@nuvin/agent-core 0.0.0-rc.2 → 0.0.0-rc.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/VERSION +2 -2
- package/dist/agent/index.js +1 -1
- package/dist/chunk-G2FR4UGO.js +1 -1
- package/dist/chunk-LXQDGX4K.js +1 -1
- package/dist/chunk-NYZR4XKO.js +1 -1
- package/dist/chunk-VFTQW5WK.js +1 -1
- package/dist/chunk-X7VAACWY.js +1 -1
- package/dist/formats/index.js +1 -1
- package/dist/models/index.d.ts +7 -9
- package/dist/models/index.js +1 -1
- package/dist/shared/index.js +1 -1
- package/dist/tools/index.d.ts +91 -1
- package/dist/tools/index.js +1 -1
- package/package.json +8 -4
package/dist/models/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x4538b7,_0x47a6cf){const _0x4855af={_0x6e6d6f:0xfa,_0x312215:0x1af,_0x2add5b:0x199,_0x7b1de3:0x15d,_0x54a770:0xeb,_0x269675:0x9a,_0x4eefce:0xd1,_0x390a5e:0xb7,_0x40f0a7:0xbc,_0x2a1379:0x118,_0x3665bb:0xb1,_0x478a58:0x17,_0x4003ee:0x6b,_0x3ff48b:0xe8,_0x2e0c0b:0xbd,_0x4daa48:0x27,_0x3a3c40:0xd7,_0x70d1aa:0x5c,_0x387c01:0x63,_0x1c5a73:0x1c,_0x523d39:0xd2,_0x10d6a6:0x30,_0x503480:0x1d,_0x52e176:0x97,_0x1961e8:0xae,_0x4e49ba:0x38,_0x5051d1:0x4e},_0x24b096={_0x2a6b05:0x259};function _0x656686(_0x5c5963,_0x213a15,_0x3fbedd,_0x212152){return _0x25f1(_0x5c5963- -_0x24b096._0x2a6b05,_0x212152);}function _0x1a2c88(_0x8872b8,_0x50cbcc,_0x33b9b4,_0x9f47c){return _0x25f1(_0x50cbcc- -0x267,_0x9f47c);}const _0x39323a=_0x4538b7();while(!![]){try{const _0x2e5541=parseInt(_0x656686(-_0x4855af._0x6e6d6f,-0x13a,-0x72,-_0x4855af._0x312215))/0x1*(-parseInt(_0x1a2c88(-_0x4855af._0x2add5b,-0x107,-0x156,-0x13a))/0x2)+parseInt(_0x1a2c88(-_0x4855af._0x7b1de3,-0xc5,-_0x4855af._0x54a770,-0xca))/0x3*(parseInt(_0x1a2c88(-_0x4855af._0x269675,-_0x4855af._0x4eefce,-_0x4855af._0x390a5e,-_0x4855af._0x40f0a7))/0x4)+-parseInt(_0x1a2c88(-0x36,-0xe4,-_0x4855af._0x2a1379,-_0x4855af._0x3665bb))/0x5*(parseInt(_0x656686(_0x4855af._0x478a58,0x5,_0x4855af._0x4003ee,0x5b))/0x6)+parseInt(_0x1a2c88(-0x16d,-_0x4855af._0x3ff48b,-_0x4855af._0x2e0c0b,-_0x4855af._0x4daa48))/0x7*(-parseInt(_0x1a2c88(_0x4855af._0x3a3c40,0x2f,-0x36,-_0x4855af._0x269675))/0x8)+-parseInt(_0x656686(-_0x4855af._0x70d1aa,_0x4855af._0x387c01,-0x4,-0xee))/0x9*(parseInt(_0x656686(-0x8c,_0x4855af._0x1c5a73,0xd,-0x7c))/0xa)+-parseInt(_0x1a2c88(-0x6e,-0x1f,-_0x4855af._0x523d39,-_0x4855af._0x10d6a6))/0xb+-parseInt(_0x656686(-_0x4855af._0x503480,-0x21,_0x4855af._0x52e176,-_0x4855af._0x1961e8))/0xc*(-parseInt(_0x1a2c88(-_0x4855af._0x4e49ba,0x1d,0xa5,_0x4855af._0x5051d1))/0xd);if(_0x2e5541===_0x47a6cf)break;else _0x39323a['push'](_0x39323a['shift']());}catch(_0x24eb97){_0x39323a['push'](_0x39323a['shift']());}}}(_0x35dd,0xb8971));import{toOpenAiResponsesRequest}from'../chunk-LXQDGX4K.js';import{resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig}from'../chunk-NYZR4XKO.js';import{getTextFromMessage,getToolResultBlocks,normalizeContent,toChatRequest,toModelRequest,toProviderModelRequest}from'../chunk-G2FR4UGO.js';import{addAbortListener,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';var ANTHROPIC_MESSAGES_SURFACE=_0x2b6123(0x28b,0x35b,0x2b7,0x22c),ANTHROPIC_MESSAGES_STREAM_SURFACE=_0x2b6123(0x1d5,0x1b7,0x239,0x245);function parseToolInput(_0x59edd8){try{return JSON['parse'](_0x59edd8);}catch{return _0x59edd8;}}function resolveReasoningVisibility(_0x19c802){const _0x37a579={_0x4caea3:0x2ca,_0x255b63:0x381,_0x5076cd:0x3c4},_0x5f185f={_0x208bd5:0x14e,_0x106891:0x76},_0x3d3e8c={_0x5cba3c:0x1cd,_0x543a28:0x9f,_0x3c3978:0x71};function _0x3533b0(_0x9cfff0,_0x4700cb,_0x4278d2,_0x24408c){return _0x2b6123(_0x9cfff0,_0x4700cb-_0x3d3e8c._0x5cba3c,_0x4278d2- -_0x3d3e8c._0x543a28,_0x24408c-_0x3d3e8c._0x3c3978);}function _0x56eec5(_0x195ede,_0x24b2c8,_0x297908,_0x1dac19){return _0x2b6123(_0x1dac19,_0x24b2c8-_0x5f185f._0x208bd5,_0x297908-0x86,_0x1dac19-_0x5f185f._0x106891);}return _0x19c802[_0x3533b0(0x2e0,0x2fc,_0x37a579._0x4caea3,_0x37a579._0x255b63)]?.[_0x56eec5(_0x37a579._0x5076cd,0x3ea,0x373,0x2f5)]??'user-visible';}function isUserVisibleThinking(_0x436f18){const _0x34e238={_0x475d89:0x253,_0x5a1475:0x19d,_0x7d10ee:0xb,_0x1809d9:0x37,_0x182477:0x32},_0x2d9917={_0xbfd783:0x1ee},_0x1febf0={_0x2dda8d:0x13c};function _0x453a1e(_0x18830e,_0x2280b7,_0x4e2942,_0x3f81e0){return _0x2b6123(_0x18830e,_0x2280b7-_0x1febf0._0x2dda8d,_0x2280b7- -0x2a9,_0x3f81e0-0x9d);}const _0x2e3f26=resolveAnthropicThinkingConfig(_0x436f18['reasoning']);function _0x2fa5c3(_0x133f0e,_0x2e2e39,_0x578672,_0x592b6d){return _0x2b6123(_0x2e2e39,_0x2e2e39-0x132,_0x133f0e- -0x4ba,_0x592b6d-_0x2d9917._0xbfd783);}return _0x2e3f26!==void 0x0&&_0x2e3f26[_0x2fa5c3(-0x1fb,-0x282,-_0x34e238._0x475d89,-_0x34e238._0x5a1475)]!=='disabled'&&resolveReasoningVisibility(_0x436f18)===_0x453a1e(-_0x34e238._0x7d10ee,0x2d,-_0x34e238._0x1809d9,-_0x34e238._0x182477);}function createAnthropicThinkingBody(_0x1ffc19){const _0x2b8257={_0x102cc2:0x200,_0x4607d9:0x1d5,_0x32fdd0:0x188,_0xe7cf63:0x10d,_0x24e76b:0x60,_0xf7d6ee:0x189,_0x422672:0xec,_0x18fc6d:0x173,_0x5c1960:0x11c,_0xfc9943:0x1eb,_0x3ec95a:0x125,_0x205618:0x10c,_0x6832b4:0x18c,_0x54d168:0x118,_0x223489:0x1c6,_0x2ab71b:0x1e0,_0x3f8818:0x200,_0x28dba1:0x1da,_0x1d3b6f:0x1a0,_0x27618a:0x143,_0x186cb9:0xc9,_0x261b63:0x23e,_0x27d00d:0x1f0,_0x333d2f:0x1ff,_0x453be5:0x246,_0x536334:0xb6,_0x30e910:0x9d,_0x59689f:0x118},_0x57153e={_0x35eff2:0xcc,_0x431d62:0x5ef,_0x7732c6:0x9a},_0x2dcd3={_0x26db6e:0x197};function _0x3debaf(_0x4611f3,_0x391cd1,_0x5135a9,_0x52455c){return _0x2b6123(_0x5135a9,_0x391cd1-0x15b,_0x391cd1- -0x1dc,_0x52455c-_0x2dcd3._0x26db6e);}function _0x131355(_0x358c2c,_0x338a67,_0x2648f0,_0x17970f){return _0x38c793(_0x2648f0,_0x338a67-_0x57153e._0x35eff2,_0x17970f- -_0x57153e._0x431d62,_0x17970f-_0x57153e._0x7732c6);}const _0xa1db61=resolveAnthropicThinkingConfig(_0x1ffc19[_0x3debaf(0x1bc,0x18d,0x111,0x118)]);if(!_0xa1db61||_0xa1db61[_0x131355(-0x1f9,-0x235,-0x29a,-_0x2b8257._0x102cc2)]===_0x3debaf(0x22d,_0x2b8257._0x4607d9,_0x2b8257._0x32fdd0,0x139))return{};const _0x37f518=_0xa1db61[_0x3debaf(0xfd,_0x2b8257._0xe7cf63,0x42,_0x2b8257._0x24e76b)]??(isUserVisibleThinking(_0x1ffc19)?_0x131355(-_0x2b8257._0xf7d6ee,-_0x2b8257._0x422672,-_0x2b8257._0x18fc6d,-_0x2b8257._0x5c1960):_0x3debaf(0xc7,0x160,0x1e3,_0x2b8257._0xfc9943)),_0x3d797a=_0xa1db61[_0x3debaf(_0x2b8257._0x3ec95a,_0x2b8257._0x205618,0x154,_0x2b8257._0x6832b4)]?{'anthropic-beta':_0x131355(-_0x2b8257._0x54d168,-0x287,-_0x2b8257._0x223489,-_0x2b8257._0x2ab71b)}:void 0x0;if(_0xa1db61[_0x131355(-0x183,-0x254,-0x19a,-_0x2b8257._0x3f8818)]===_0x131355(-0x18e,-0x15d,-_0x2b8257._0x28dba1,-_0x2b8257._0x1d3b6f))return{..._0x3d797a?{'headers':_0x3d797a}:{},'thinking':{'type':_0x3debaf(0x152,_0x2b8257._0x27618a,_0x2b8257._0x186cb9,0xd4),'budget_tokens':_0xa1db61[_0x3debaf(0x1e4,0x173,_0x2b8257._0x261b63,0x197)],'display':_0x37f518}};return{..._0x3d797a?{'headers':_0x3d797a}:{},'thinking':{'type':'adaptive',..._0xa1db61[_0x131355(-_0x2b8257._0x27d00d,-0x2f5,-_0x2b8257._0x333d2f,-_0x2b8257._0x453be5)]?{'effort':_0xa1db61[_0x3debaf(_0x2b8257._0x536334,_0x2b8257._0x30e910,_0x2b8257._0x59689f,0x150)]}:{},'display':_0x37f518}};}function toAnthropicRequestContent(_0x37f43b){const _0x4b2409={_0x3f6a27:0x694,_0x3d0948:0x699,_0x99fe26:0x52a,_0x56b0d8:0x505,_0x2e2ad9:0x4e6,_0x594f55:0x487,_0x504043:0x57c,_0xfa2b32:0x3df,_0x1d9612:0x47d,_0x55108c:0x430,_0x265166:0x3f0,_0x3892db:0x3ed,_0x17d05c:0x440,_0x56ba92:0x4ad,_0x4cb6dd:0x49b,_0x2e51bf:0x435,_0x98140:0x491,_0x4f8301:0x3a0,_0x26c3a3:0x46b,_0x44d2d6:0x31c,_0x4bb8f3:0x5f5,_0x194a33:0x5dc,_0x1d2aae:0x5b6,_0x564e3c:0x4cc,_0x14c1a6:0x4e0,_0x15d006:0x4bb,_0x37951c:0x499,_0xa82966:0x46b,_0x44d1c6:0x4cb,_0xaf6b86:0x5f4,_0x1a280f:0x4bb,_0x15ce00:0x568,_0x487d7c:0x5b9,_0x326630:0x4f5},_0x389a1e={_0x308038:0x10f};if(_0x37f43b['role']===_0x55b63f(_0x4b2409._0x3f6a27,0x636,_0x4b2409._0x3d0948,0x682)&&_0x37f43b[_0x1ab11a(_0x4b2409._0x99fe26,_0x4b2409._0x56b0d8,_0x4b2409._0x2e2ad9,0x487)]?.['anthropicAssistantContent'])return structuredClone(_0x37f43b[_0x1ab11a(0x47f,0x505,_0x4b2409._0x594f55,_0x4b2409._0x504043)][_0x1ab11a(_0x4b2409._0xfa2b32,_0x4b2409._0x1d9612,_0x4b2409._0x55108c,_0x4b2409._0x265166)]);function _0x55b63f(_0x315e0e,_0x1a0f38,_0x28ff20,_0x4f3808){return _0x2b6123(_0x4f3808,_0x1a0f38-0x117,_0x1a0f38-0x2c8,_0x4f3808-0xbd);}const _0x1d6b53=[];function _0x1ab11a(_0x44306d,_0xfe052d,_0x596ef7,_0x3ec3fd){return _0x38c793(_0x3ec3fd,_0xfe052d-_0x389a1e._0x308038,_0xfe052d-0x35,_0x3ec3fd-0x18d);}for(const _0x5c771c of normalizeContent(_0x37f43b[_0x1ab11a(_0x4b2409._0x3892db,_0x4b2409._0x17d05c,_0x4b2409._0x56ba92,0x3f3)])){if(_0x5c771c['type']===_0x1ab11a(_0x4b2409._0x4cb6dd,_0x4b2409._0x2e51bf,0x3e8,_0x4b2409._0x98140))continue;if(_0x5c771c['type']===_0x1ab11a(0x373,_0x4b2409._0x4f8301,_0x4b2409._0x26c3a3,_0x4b2409._0x44d2d6)){_0x1d6b53[_0x55b63f(_0x4b2409._0x4bb8f3,_0x4b2409._0x194a33,0x593,_0x4b2409._0x1d2aae)]({'type':_0x1ab11a(0x572,_0x4b2409._0x564e3c,_0x4b2409._0x14c1a6,0x593),'thinking':_0x5c771c['thinking'],'signature':_0x5c771c[_0x1ab11a(0x443,_0x4b2409._0x15d006,_0x4b2409._0x37951c,_0x4b2409._0xa82966)]});continue;}if(_0x5c771c[_0x55b63f(_0x4b2409._0x44d1c6,0x587,0x572,_0x4b2409._0xaf6b86)]===_0x55b63f(_0x4b2409._0x1a280f,_0x4b2409._0x15ce00,_0x4b2409._0x487d7c,0x5ca)){_0x1d6b53['push']({'type':'redacted_thinking','data':_0x5c771c['data']});continue;}_0x1d6b53[_0x1ab11a(0x51c,0x479,_0x4b2409._0x326630,0x41d)](structuredClone(_0x5c771c));}return _0x1d6b53;}function createAnthropicRequest(_0x5f15c9,_0x51e727){const _0x428363={_0x20dfd0:0x6c,_0x306262:0x73,_0x5c0a1f:0xef,_0x53877d:0x3a,_0x2f0216:0xf,_0x3caf6f:0xc1,_0x11a5dd:0x89,_0x6996e6:0x8e,_0x3b9524:0xd,_0x521bb0:0x8d,_0x5b058b:0x11,_0x23c68c:0x9a},_0x140147={_0x5d0313:0x4f2,_0x1bea98:0x4e4,_0x456d64:0x58c},_0x2cd9b8={_0x124f1b:0x4a9},_0x1e0ba5={_0xba0747:0x12b},_0xafc13e={_0x1c5334:0x46},_0xb676d0=toProviderModelRequest(_0x5f15c9);function _0x53f91a(_0x80de,_0x3cbb48,_0x3533ee,_0x58cef8){return _0x2b6123(_0x80de,_0x3cbb48-_0xafc13e._0x1c5334,_0x3533ee- -0x29b,_0x58cef8-0xd9);}const _0x4d6e17=createAnthropicThinkingBody(_0x5f15c9);function _0x229293(_0x43579a,_0x1940b9,_0xf5812c,_0x220e89){return _0x2b6123(_0x220e89,_0x1940b9-0x4a,_0xf5812c- -0x2d9,_0x220e89-_0x1e0ba5._0xba0747);}return{'accept':_0x51e727?_0x229293(-0x4d,_0x428363._0x20dfd0,_0x428363._0x306262,0x117):_0x53f91a(-0x69,0xab,-0x1a,-0xa2),'body':{..._0xb676d0,'messages':_0x5f15c9[_0x229293(-_0x428363._0x5c0a1f,-0xc3,-_0x428363._0x53877d,-0x20)]['map'](_0x1632ae=>{function _0x1a47d7(_0x1fa77b,_0x12db7d,_0x23029f,_0x180def){return _0x53f91a(_0x1fa77b,_0x12db7d-0xcd,_0x12db7d-_0x2cd9b8._0x124f1b,_0x180def-0x93);}return{'role':_0x1632ae[_0x1a47d7(_0x140147._0x5d0313,0x529,_0x140147._0x1bea98,_0x140147._0x456d64)],'content':toAnthropicRequestContent(_0x1632ae)};}),..._0x4d6e17[_0x229293(_0x428363._0x2f0216,0x44,0x8e,0x7a)]?{'thinking':_0x4d6e17[_0x229293(_0x428363._0x3caf6f,_0x428363._0x11a5dd,_0x428363._0x6996e6,0x100)]}:{},..._0x51e727?{'stream':!![]}:{}},..._0x4d6e17[_0x53f91a(_0x428363._0x3b9524,0x5e,-0x27,-_0x428363._0x521bb0)]?{'headers':_0x4d6e17['headers']}:{},'path':_0x229293(_0x428363._0x5b058b,0x11,0x9b,_0x428363._0x23c68c)};}function parseAnthropicResponse(_0x32e2f3,_0x2dfa0c){const _0x32f391={_0x459466:0x458,_0x463edc:0x49f,_0x1e1b66:0x3d1,_0x52a003:0x4ff,_0x121369:0x39e,_0x2c9dfc:0x448,_0x53887c:0x507,_0x55d3b6:0x41b,_0x4e8b5d:0x433,_0x2ac84e:0x421,_0x5add9f:0x46a,_0x12cd44:0x434,_0x4b7cfc:0x434,_0x45b796:0x451,_0x2e4f84:0x3d4,_0x1f7dbf:0x3ff,_0x1edc32:0x370,_0x5e4f6b:0x37c,_0x27b647:0x414,_0x522fba:0x3b8,_0xe0b40c:0x446,_0x34ca2e:0x4f9,_0x32f461:0x3d0,_0x4f2724:0x4f4,_0x3cae2e:0x38d,_0x1a215c:0x3c7,_0x5e8255:0x4a5,_0x21fdb4:0x4d4,_0x45a1da:0x4a2,_0x5ab588:0x397,_0x49784f:0x423,_0x359bae:0x373,_0x3bb63d:0x407,_0x4c931c:0x3d0,_0x24ca21:0x4b3,_0x22eadb:0x469,_0xf5a0c6:0x3ea,_0x2a5d98:0x380,_0xd8d982:0x436,_0x4ba89e:0x364,_0x360f1a:0x44f,_0x30e362:0x3c6,_0xfa47c7:0x34e,_0x32b3a8:0x339,_0x54d6a1:0x394},_0x959459={_0x22cb45:0x134,_0x3ce950:0x1f2},_0x82dcc2={_0x34d8e5:0x1a3},_0x1bc717=[];function _0x5d5296(_0x52ee2c,_0x1427f2,_0x30354f,_0x2c25f0){return _0x2b6123(_0x30354f,_0x1427f2-_0x82dcc2._0x34d8e5,_0x2c25f0-0x1e0,_0x2c25f0-0x1af);}const _0x2fd9d4=_0x32e2f3['content']??[];let _0x331cc7=![];function _0x429ade(_0x454524,_0x51c609,_0x18a10d,_0x1d993e){return _0x2b6123(_0x454524,_0x51c609-0xdc,_0x51c609-_0x959459._0x22cb45,_0x1d993e-_0x959459._0x3ce950);}for(const _0x2c3b05 of _0x2fd9d4){if(_0x2c3b05[_0x5d5296(0x43e,0x4bd,_0x32f391._0x459466,_0x32f391._0x463edc)]===_0x429ade(_0x32f391._0x1e1b66,0x49b,_0x32f391._0x52a003,0x433)){_0x331cc7=!![];isUserVisibleThinking(_0x2dfa0c)&&_0x1bc717[_0x429ade(_0x32f391._0x121369,_0x32f391._0x2c9dfc,0x3c5,_0x32f391._0x53887c)]({'type':_0x5d5296(0x3ee,0x3ae,0x3ad,_0x32f391._0x55d3b6),'thinking':_0x2c3b05['thinking'],'signature':_0x2c3b05[_0x429ade(_0x32f391._0x4e8b5d,0x48a,_0x32f391._0x2ac84e,_0x32f391._0x5add9f)]});continue;}if(_0x2c3b05['type']===_0x5d5296(0x382,_0x32f391._0x12cd44,0x398,_0x32f391._0x4b7cfc)){_0x331cc7=!![];isUserVisibleThinking(_0x2dfa0c)&&_0x1bc717[_0x429ade(0x42b,0x448,0x3d2,_0x32f391._0x45b796)]({'type':_0x429ade(0x38c,_0x32f391._0x2e4f84,0x3bc,_0x32f391._0x1f7dbf),'data':_0x2c3b05[_0x429ade(0x34d,0x3a4,_0x32f391._0x1edc32,_0x32f391._0x5e4f6b)]});continue;}if(_0x2c3b05[_0x5d5296(_0x32f391._0x27b647,0x4b0,0x55a,_0x32f391._0x463edc)]===_0x429ade(_0x32f391._0x522fba,_0x32f391._0xe0b40c,_0x32f391._0x34ca2e,_0x32f391._0x32f461)){_0x2c3b05[_0x429ade(0x497,0x446,0x3b9,0x49c)][_0x5d5296(0x4f9,_0x32f391._0x522fba,0x4e3,0x47b)]>0x0&&_0x1bc717[_0x5d5296(0x47f,0x44d,0x545,_0x32f391._0x4f2724)](structuredClone(_0x2c3b05));continue;}_0x1bc717[_0x429ade(0x388,0x448,_0x32f391._0x3cae2e,_0x32f391._0x1a215c)](structuredClone(_0x2c3b05));}return{'id':_0x32e2f3['id']??_0x429ade(0x487,0x40e,_0x32f391._0x5e8255,0x42d)+Date[_0x5d5296(_0x32f391._0x4b7cfc,0x428,0x4ea,_0x32f391._0x21fdb4)](),'content':_0x1bc717,'stopReason':_0x1bc717[_0x5d5296(0x61d,0x577,_0x32f391._0x45a1da,0x55d)](_0xf6f270=>_0xf6f270[_0x429ade(0x335,0x3f3,0x393,0x3f5)]==='tool_use')?'tool_use':_0x32e2f3[_0x429ade(0x2ed,_0x32f391._0x5ab588,_0x32f391._0x49784f,_0x32f391._0x359bae)]===_0x429ade(0x46c,_0x32f391._0x3bb63d,_0x32f391._0x4c931c,0x4d0)?_0x5d5296(0x546,0x433,0x4f6,_0x32f391._0x24ca21):_0x5d5296(_0x32f391._0x22eadb,_0x32f391._0xf5a0c6,_0x32f391._0x2a5d98,_0x32f391._0xd8d982),'usage':{'inputTokens':_0x32e2f3[_0x429ade(0x317,_0x32f391._0x4ba89e,0x3e4,0x2e7)]?.[_0x429ade(_0x32f391._0x360f1a,_0x32f391._0x30e362,_0x32f391._0xfa47c7,_0x32f391._0x32b3a8)]??0x0,'outputTokens':_0x32e2f3[_0x5d5296(0x3ef,0x3f0,_0x32f391._0x54d6a1,0x410)]?.['output_tokens']??0x0},..._0x331cc7?{'providerState':{'anthropicAssistantContent':structuredClone(_0x2fd9d4)}}:{}};}var AnthropicMessagesStreamParser=class{[_0x2b6123(0x267,0x1e3,0x2a6,0x2b0)]=new Map();[_0x38c793(0x4e5,0x50d,0x49a,0x3f4)]=0x0;[_0x2b6123(0x46b,0x3ca,0x3b9,0x42a)]=_0x38c793(0x3df,0x3f8,0x40a,0x3b6)+Date[_0x2b6123(0x287,0x234,0x2f4,0x25e)]();[_0x38c793(0x30e,0x390,0x36a,0x323)]=0x0;[_0x38c793(0x415,0x328,0x3dd,0x3ac)];[_0x2b6123(0x1ec,0x2d0,0x25a,0x1cb)]=_0x2b6123(0x293,0x1f3,0x256,0x2a5);constructor(_0x5150dc){const _0x10580c={_0x3c69aa:0x45e,_0x1d82c3:0x3fd},_0x387d08={_0x3d652a:0x1e6,_0x35cd09:0x126};function _0x121364(_0x2913a7,_0x42536,_0x17a6a6,_0x2a5aef){return _0x2b6123(_0x17a6a6,_0x42536-_0x387d08._0x3d652a,_0x2913a7-0x1b1,_0x2a5aef-_0x387d08._0x35cd09);}this[_0x121364(_0x10580c._0x3c69aa,0x4a9,_0x10580c._0x1d82c3,0x4ef)]=_0x5150dc;}[_0x2b6123(0x2b3,0x1e1,0x29c,0x20b)](_0x8788ff){const _0x3b432d={_0x1cd60b:0x385,_0x15470b:0x4f8,_0x2b1bc1:0x39d,_0xcc60f0:0x4ad,_0x420dbd:0x50d,_0x420d23:0x36f,_0x4984e7:0x436,_0x47c155:0x30b,_0x18abe7:0x3d2,_0x387e8d:0x4b3,_0x64de64:0x33d,_0x33ae0a:0x339,_0x5c3536:0x2b8,_0xc459bb:0x32b,_0x257b0d:0x357,_0x2000a6:0x2d1,_0x15090c:0x333,_0x289013:0x43d,_0x4f16ce:0x452,_0x3855a9:0x3d0,_0x119802:0x317,_0x4b1d3c:0x348,_0x410bde:0x431,_0x317126:0x4e4,_0x8a685f:0x4ea,_0x519faa:0x414,_0x42cd94:0x36c,_0x191632:0x46e,_0x1f98db:0x453,_0x5199e3:0x469,_0x37f3f0:0x401,_0x2ec1fd:0x3e1,_0x549a92:0x3a9,_0x237e0b:0x405,_0x446fcf:0x435,_0x44e7c2:0x3a0,_0x415dc2:0x3ec,_0x336467:0x315,_0x3e4556:0x3e7,_0x5377af:0x41f,_0x405935:0x42f,_0x838ed9:0x364,_0x40d7e1:0x453,_0x3ae5c3:0x491,_0x2e37dd:0x2ec,_0x4d8854:0x53e,_0x3edfe8:0x53e,_0x8e52e4:0x3a5,_0x3cc5ea:0x4ea,_0x91f65c:0x5ad,_0x55feba:0x3d7,_0x59f769:0x476,_0x482ae5:0x390,_0x43c062:0x409,_0x1769b7:0x36a,_0xc1e766:0x4bf,_0x2f74df:0x4fb,_0x44b4ec:0x4ce,_0x2ce060:0x4c8,_0x547f91:0x504,_0x4d2e62:0x3c8,_0x12d1f8:0x515,_0x269924:0x45f,_0x3afe78:0x480,_0xa07d4d:0x48f,_0x5c8f36:0x404,_0x51e520:0x3fa,_0xabddd4:0x43a,_0x11cfbf:0x416,_0x26ddfb:0x48c,_0x2489c9:0x448,_0x5db4ca:0x46b,_0x1153c3:0x4e8,_0x250e19:0x415,_0x11e08b:0x3d1,_0x40dd9c:0x3b2,_0x1b85ab:0x415,_0x122bec:0x464,_0x3c2164:0x408,_0x42edcd:0x42b,_0x344a31:0x420,_0x750f5f:0x4c2,_0x371e66:0x399,_0x4d9bb5:0x43f,_0x4694ee:0x4a6,_0x2b88d0:0x4fd,_0x663990:0x445,_0x534fa6:0x4bf,_0x65da1e:0x3af,_0x4cc2ec:0x444,_0x11e565:0x3bc,_0x319418:0x2ef,_0xd3b99a:0x431,_0x40fb69:0x48a,_0x150195:0x305,_0x564f9e:0x2d4,_0x10d27d:0x3ff,_0x222421:0x4cb,_0x3fec4d:0x49e,_0x29f776:0x410,_0x1838f2:0x408,_0x2deb89:0x444,_0x22abc3:0x376,_0x14dd27:0x494,_0x49fd71:0x493,_0x4a4efb:0x440,_0x19dc71:0x48e,_0x181c2b:0x46c,_0x4a162f:0x2ba,_0x57e671:0x43e,_0x43480d:0x433,_0x5d2ed6:0x3d4,_0x3b9cc2:0x460,_0x324fbf:0x42c,_0x60534d:0x37d,_0xf75e84:0x544,_0x1f3178:0x470,_0x3f395d:0x4bc,_0x220ff3:0x4fb,_0x52a7ba:0x3f4,_0x56c7b4:0x46c,_0x5b36fb:0x3df,_0x57c4b6:0x560,_0x54114c:0x54c,_0x10d5fb:0x4ea,_0x3e1233:0x457,_0x9484c4:0x4d1,_0xe7a4e1:0x3b0,_0x4077c8:0x48d,_0x7b44ef:0x50b,_0x3ba544:0x441,_0x571736:0x499,_0x48cd36:0x436,_0x255915:0x491,_0x4be047:0x472,_0x4b15c3:0x496,_0x29959c:0x31a,_0x2729f:0x3c4,_0xcbb877:0x377,_0x25e2c5:0x32c,_0x228765:0x3c8,_0x50579f:0x478,_0x5437a1:0x505,_0x3b84cd:0x44a,_0x5bbb80:0x412,_0x614c9f:0x365,_0x1979d0:0x32e,_0x39dd75:0x3dd,_0xc1f8b:0x3fd,_0x8cf38e:0x590,_0x11e30f:0x534,_0x59f83c:0x570,_0x536746:0x4d6,_0x17679a:0x497,_0xfd8106:0x3b8,_0x25d97b:0x46f,_0xc7f383:0x318},_0x1f0521={_0x8d8f8b:0x16c,_0x529b82:0x1c7},_0x3f1bcf={_0x35c9ae:0x6b,_0x2653fc:0x8};function _0x40119f(_0x3f4192,_0x4442ac,_0x178cf2,_0x4974c7){return _0x38c793(_0x4974c7,_0x4442ac-0x1db,_0x3f4192- -_0x3f1bcf._0x35c9ae,_0x4974c7-_0x3f1bcf._0x2653fc);}const _0x32e976=_0x8788ff[_0x40119f(0x3d2,0x446,_0x3b432d._0x1cd60b,0x37b)]('\x0a'),_0x924b9e=_0x32e976[_0x40119f(0x462,_0x3b432d._0x15470b,_0x3b432d._0x2b1bc1,0x406)](_0xf674dd=>_0xf674dd[_0x40119f(0x3b5,0x446,0x33e,0x43b)](_0x40119f(0x44e,0x4d8,0x420,0x384)))?.['slice'](0x6)['trim'](),_0x34ff7f=_0x32e976['filter'](_0x4a6361=>_0x4a6361['startsWith'](_0x40119f(0x33f,0x2f1,0x3dc,0x3a1)))[_0x20a203(0x522,0x516,_0x3b432d._0xcc60f0,_0x3b432d._0x420dbd)](_0x52cc48=>_0x52cc48[_0x20a203(0x4f5,0x463,0x3e5,0x4f3)](0x5)['trimStart']())['join']('\x0a')[_0x20a203(_0x3b432d._0x420d23,_0x3b432d._0x4984e7,0x3da,0x3b2)]();if(_0x34ff7f[_0x40119f(0x360,0x39d,0x2d2,_0x3b432d._0x47c155)]===0x0||_0x34ff7f==='[DONE]')return[];const _0x44b5d8=JSON[_0x20a203(_0x3b432d._0x18abe7,0x48b,0x430,_0x3b432d._0x387e8d)](_0x34ff7f);switch(_0x924b9e){case _0x40119f(_0x3b432d._0x64de64,0x34f,_0x3b432d._0x33ae0a,_0x3b432d._0x5c3536):{const _0x440e8f=_0x44b5d8['message'];this['messageId']=_0x440e8f?.['id']??this['messageId'],this['inputTokens']=_0x440e8f?.[_0x40119f(0x2f5,_0x3b432d._0xc459bb,0x236,0x2e9)]?.[_0x40119f(_0x3b432d._0x257b0d,_0x3b432d._0x2000a6,_0x3b432d._0x15090c,0x3cd)]??this[_0x40119f(0x42f,_0x3b432d._0x289013,0x3d7,_0x3b432d._0x4f16ce)];break;}case _0x40119f(_0x3b432d._0x3855a9,_0x3b432d._0x119802,_0x3b432d._0x4b1d3c,_0x3b432d._0x410bde):{const _0x4d4bb4=typeof _0x44b5d8[_0x20a203(0x54a,_0x3b432d._0x317126,_0x3b432d._0x8a685f,0x517)]===_0x20a203(0x3b3,_0x3b432d._0x519faa,_0x3b432d._0x42cd94,_0x3b432d._0x191632)?_0x44b5d8['index']:0x0,_0x352970=_0x44b5d8['content_block'];if(_0x352970?.[_0x20a203(0x494,_0x3b432d._0x1f98db,0x4c7,_0x3b432d._0x5199e3)]==='tool_use'&&_0x352970['id']&&_0x352970[_0x20a203(_0x3b432d._0x37f3f0,_0x3b432d._0x2ec1fd,_0x3b432d._0x549a92,_0x3b432d._0x237e0b)])return this['blocks'][_0x40119f(_0x3b432d._0x446fcf,0x488,0x3d8,_0x3b432d._0x44e7c2)](_0x4d4bb4,{'id':_0x352970['id'],'index':_0x4d4bb4,'inputJson':JSON[_0x20a203(_0x3b432d._0x415dc2,0x3d1,_0x3b432d._0x336467,_0x3b432d._0x3e4556)](_0x352970[_0x40119f(_0x3b432d._0x5377af,0x406,0x4ae,_0x3b432d._0x405935)]??{}),'kind':'tool_use','name':_0x352970['name']}),[{'type':'tool_use_delta','id':_0x352970['id'],'index':_0x4d4bb4,'name':_0x352970[_0x40119f(0x312,0x3cf,0x322,_0x3b432d._0x838ed9)]}];if(_0x352970?.[_0x20a203(0x48f,_0x3b432d._0x40d7e1,0x41a,0x4cb)]===_0x40119f(0x42c,_0x3b432d._0x3ae5c3,0x39b,0x481)){this[_0x40119f(0x36b,0x3fb,_0x3b432d._0x2e37dd,0x3b1)][_0x20a203(0x500,0x504,0x446,0x572)](_0x4d4bb4,{'index':_0x4d4bb4,'kind':'thinking','signature':typeof _0x352970[_0x20a203(_0x3b432d._0x4d8854,0x4ea,0x436,_0x3b432d._0x3edfe8)]===_0x40119f(0x390,0x3da,_0x3b432d._0x8e52e4,0x315)?_0x352970[_0x20a203(0x4eb,_0x3b432d._0x3cc5ea,0x4a9,_0x3b432d._0x91f65c)]:'','thinking':typeof _0x352970[_0x40119f(_0x3b432d._0x55feba,0x39b,_0x3b432d._0x59f769,0x43f)]===_0x40119f(_0x3b432d._0x482ae5,_0x3b432d._0x43c062,_0x3b432d._0x1769b7,0x34a)?_0x352970['text']:typeof _0x352970[_0x20a203(0x472,0x4fb,0x4ca,0x4be)]===_0x40119f(_0x3b432d._0x482ae5,0x3d6,0x3e9,0x32a)?String(_0x352970[_0x20a203(_0x3b432d._0xc1e766,_0x3b432d._0x2f74df,_0x3b432d._0x44b4ec,0x5b6)]):''});break;}if(_0x352970?.[_0x20a203(0x3a7,0x453,0x3fc,0x492)]==='redacted_thinking'){this[_0x40119f(0x36b,0x2a3,0x37e,0x400)][_0x20a203(_0x3b432d._0x2ce060,_0x3b432d._0x547f91,0x44e,0x47c)](_0x4d4bb4,{'index':_0x4d4bb4,'kind':_0x20a203(_0x3b432d._0x4d2e62,0x3e8,0x3c4,0x331),'data':typeof _0x352970['data']===_0x20a203(_0x3b432d._0x12d1f8,_0x3b432d._0x269924,_0x3b432d._0x3afe78,0x3fb)?String(_0x352970[_0x20a203(_0x3b432d._0xa07d4d,_0x3b432d._0x5c8f36,_0x3b432d._0x51e520,0x3d2)]):''});break;}this[_0x20a203(0x498,_0x3b432d._0xabddd4,_0x3b432d._0x11cfbf,0x425)]['set'](_0x4d4bb4,{'index':_0x4d4bb4,'kind':'text','text':_0x352970?.[_0x40119f(0x3d7,_0x3b432d._0x26ddfb,0x3ae,0x322)]??''});break;}case _0x40119f(_0x3b432d._0x2489c9,_0x3b432d._0x5db4ca,0x404,_0x3b432d._0x1153c3):{const _0xc2cff=typeof _0x44b5d8[_0x40119f(_0x3b432d._0x250e19,0x36e,_0x3b432d._0x11e08b,0x38e)]===_0x20a203(0x42a,0x414,_0x3b432d._0x40dd9c,0x483)?_0x44b5d8[_0x40119f(_0x3b432d._0x1b85ab,_0x3b432d._0x122bec,_0x3b432d._0x3c2164,0x4c4)]:0x0,_0x399b6a=this['blocks']['get'](_0xc2cff),_0x1be16a=_0x44b5d8['delta'];if(!_0x399b6a||!_0x1be16a?.['type'])break;if(_0x1be16a[_0x20a203(_0x3b432d._0x42edcd,0x453,0x47f,_0x3b432d._0x344a31)]===_0x40119f(0x3fb,_0x3b432d._0x750f5f,_0x3b432d._0x371e66,0x4bd)&&_0x399b6a['kind']==='text'&&typeof _0x1be16a[_0x20a203(_0x3b432d._0x4d9bb5,_0x3b432d._0x4694ee,_0x3b432d._0x2b88d0,_0x3b432d._0x663990)]===_0x20a203(_0x3b432d._0x534fa6,_0x3b432d._0x269924,_0x3b432d._0x65da1e,0x3dd))return _0x399b6a[_0x40119f(0x3d7,0x373,_0x3b432d._0x4cc2ec,_0x3b432d._0x11e565)]+=_0x1be16a[_0x20a203(0x56d,0x4a6,0x4de,0x414)],[{'type':'content_delta','index':_0xc2cff,'text':_0x1be16a['text']}];if(_0x1be16a[_0x40119f(0x384,0x411,_0x3b432d._0x319418,_0x3b432d._0xd3b99a)]===_0x40119f(0x3f9,_0x3b432d._0x40fb69,0x3e4,0x43f)&&_0x399b6a[_0x40119f(_0x3b432d._0x150195,_0x3b432d._0x564f9e,0x30e,0x282)]===_0x20a203(_0x3b432d._0x10d27d,0x467,0x488,_0x3b432d._0x222421)&&typeof _0x1be16a[_0x20a203(0x407,_0x3b432d._0x3fec4d,0x3f6,0x528)]==='string')return _0x399b6a[_0x40119f(_0x3b432d._0x29f776,0x364,_0x3b432d._0x1838f2,0x43e)]==='{}'&&(_0x399b6a[_0x20a203(0x452,0x4df,_0x3b432d._0x2deb89,0x473)]=''),_0x399b6a[_0x40119f(_0x3b432d._0x29f776,0x3cc,_0x3b432d._0x22abc3,_0x3b432d._0x1cd60b)]+=_0x1be16a[_0x20a203(0x502,0x49e,_0x3b432d._0x14dd27,0x47d)],[{'type':_0x20a203(0x4cd,0x476,_0x3b432d._0x49fd71,0x52f),'id':_0x399b6a['id'],'index':_0xc2cff,'inputDelta':_0x1be16a[_0x40119f(0x3cf,_0x3b432d._0x4a4efb,_0x3b432d._0x19dc71,_0x3b432d._0x181c2b)]}];if(_0x1be16a[_0x40119f(0x384,_0x3b432d._0x4a162f,0x3d2,_0x3b432d._0x57e671)]===_0x40119f(0x47a,0x3e7,0x4e0,_0x3b432d._0x43480d)&&_0x399b6a[_0x20a203(0x45e,_0x3b432d._0x5d2ed6,_0x3b432d._0x3b9cc2,0x321)]===_0x40119f(_0x3b432d._0x324fbf,0x38c,0x4af,_0x3b432d._0x60534d)){const _0x41e4a8=typeof _0x1be16a[_0x20a203(0x5a5,_0x3b432d._0x2f74df,_0x3b432d._0xf75e84,0x55a)]===_0x20a203(0x39f,_0x3b432d._0x269924,_0x3b432d._0x1f3178,0x441)?String(_0x1be16a[_0x20a203(_0x3b432d._0x3f395d,_0x3b432d._0x220ff3,0x555,0x467)]):'';if(_0x41e4a8[_0x20a203(_0x3b432d._0x181c2b,0x42f,0x3a0,_0x3b432d._0x52a7ba)]>0x0){_0x399b6a['thinking']+=_0x41e4a8;if(isUserVisibleThinking(this['request']))return[{'type':_0x40119f(0x3cd,0x39d,0x477,_0x3b432d._0x56c7b4),'index':_0xc2cff,'thinking':_0x41e4a8}];}}if(_0x1be16a['type']===_0x40119f(0x425,_0x3b432d._0x5b36fb,0x472,0x427)&&_0x399b6a['kind']===_0x20a203(_0x3b432d._0x57c4b6,0x4fb,_0x3b432d._0x54114c,0x5bf)){const _0x1d85f9=typeof _0x1be16a[_0x20a203(0x446,_0x3b432d._0x10d5fb,0x599,_0x3b432d._0x3e1233)]===_0x20a203(_0x3b432d._0x9484c4,0x45f,_0x3b432d._0xe7a4e1,_0x3b432d._0x750f5f)?String(_0x1be16a[_0x20a203(0x4e1,0x4ea,0x571,_0x3b432d._0x4077c8)]):'';if(_0x1d85f9['length']>0x0){_0x399b6a[_0x20a203(0x423,_0x3b432d._0x3cc5ea,0x436,0x423)]=_0x1d85f9;if(isUserVisibleThinking(this[_0x20a203(_0x3b432d._0x7b44ef,_0x3b432d._0x3ba544,0x4e4,0x41f)]))return[{'type':_0x20a203(_0x3b432d._0x4694ee,0x50f,0x4df,_0x3b432d._0x571736),'index':_0xc2cff,'signature':_0x1d85f9}];}}break;}case _0x20a203(_0x3b432d._0x48cd36,_0x3b432d._0x255915,_0x3b432d._0x4be047,_0x3b432d._0x4b15c3):{const _0x3a64e2=_0x44b5d8['delta'],_0x26ae5f=_0x44b5d8[_0x20a203(_0x3b432d._0x29959c,_0x3b432d._0x2729f,0x34a,_0x3b432d._0xcbb877)];this[_0x40119f(0x2ff,_0x3b432d._0x25e2c5,_0x3b432d._0x228765,0x2be)]=_0x26ae5f?.[_0x40119f(_0x3b432d._0x50579f,0x3e3,_0x3b432d._0x5437a1,_0x3b432d._0x3b84cd)]??this[_0x20a203(_0x3b432d._0x5bbb80,0x3ce,0x3e2,_0x3b432d._0x614c9f)],this['stopReason']=_0x3a64e2?.[_0x40119f(0x328,_0x3b432d._0x1979d0,0x301,0x34a)]===_0x20a203(0x4bc,0x467,0x4c8,_0x3b432d._0x40d7e1)?_0x20a203(_0x3b432d._0x39dd75,0x467,_0x3b432d._0xc1f8b,0x46a):'end_turn';break;}case _0x20a203(0x488,0x4d6,_0x3b432d._0x8cf38e,_0x3b432d._0x11e30f):{const _0x18a613=_0x44b5d8[_0x20a203(_0x3b432d._0x59f83c,_0x3b432d._0x536746,_0x3b432d._0x17679a,0x411)];throw new Error(_0x18a613?.['message']??_0x40119f(_0x3b432d._0xfd8106,_0x3b432d._0x25d97b,_0x3b432d._0xc7f383,0x403));}}function _0x20a203(_0x49517e,_0x2f05f6,_0x1b50e9,_0x5e5c8e){return _0x38c793(_0x49517e,_0x2f05f6-_0x1f0521._0x8d8f8b,_0x2f05f6-0x64,_0x5e5c8e-_0x1f0521._0x529b82);}return[];}[_0x2b6123(0x3c7,0x360,0x38e,0x458)](){const _0x4ac3a0={_0x351178:0x3b3,_0x676f32:0x468,_0x167d5b:0x3f9,_0x886451:0x4f7,_0x484c7c:0x4c3,_0x1b349b:0x4e1,_0x3a61f5:0x118,_0x18cd06:0xe1,_0x2cbe06:0x159,_0x115000:0x16d,_0x410b97:0x240,_0x44bced:0x468,_0x407c36:0x4f7,_0x21d02e:0x426,_0x50c67a:0x4e2,_0x3cba0e:0x45d,_0x258c79:0x44b,_0x2925e9:0x1b5,_0x5ef27c:0x1c5,_0x3f6670:0x12a,_0x11ad7a:0x16f,_0x2ac202:0x157,_0x30e1a6:0x390,_0x1b0261:0x36d,_0x59477e:0x402,_0x1cb3e5:0x4ca,_0x90b063:0x55f,_0x547e54:0x59d,_0x215bd3:0x520,_0x5e9589:0x58d,_0x34a2bc:0x449,_0x20af11:0x465,_0x26458b:0x1a0,_0x1bb4bb:0x208,_0x1e6dfe:0x2a1,_0xef927a:0x518,_0x329a9c:0x5cc,_0x2312e4:0x3a0,_0x52d162:0x3a2,_0x1b299f:0x3ab,_0x3233fb:0x416,_0x6a1ca:0x172,_0x59eabc:0x1b5,_0x7fad18:0x203,_0x1f6000:0x1fa,_0x499946:0x1f0,_0x2ad857:0x155,_0x334120:0x142,_0x13af06:0xd6,_0x59a3e0:0x63,_0x582ace:0x50d,_0x45f931:0x4b1,_0x2126f9:0x528,_0x13d68f:0x198,_0x317876:0x1d8,_0x9e227e:0x290,_0x1edb4a:0x42c,_0x85bbc3:0x4be,_0x37a412:0x42d,_0x3b98c2:0x43d,_0x4ae560:0x3fc,_0xdf40f0:0x431},_0x3a6827={_0x41ddf9:0x59,_0x1a7b3c:0xd1},_0x2cc983={_0xfb7e7:0x14b,_0x3e094a:0x168};function _0x58a84e(_0x426c11,_0x4f9d14,_0xb958fa,_0x27711c){return _0x2b6123(_0x426c11,_0x4f9d14-_0x2cc983._0xfb7e7,_0xb958fa-0x1c2,_0x27711c-_0x2cc983._0x3e094a);}const _0x2c2f83=Array['from'](this[_0x58a84e(0x4b3,_0x4ac3a0._0x351178,_0x4ac3a0._0x676f32,0x51e)][_0x58a84e(_0x4ac3a0._0x167d5b,0x416,0x4a9,_0x4ac3a0._0x886451)]())[_0x58a84e(0x421,0x486,_0x4ac3a0._0x484c7c,_0x4ac3a0._0x1b349b)]((_0x55e008,_0x41cd79)=>_0x55e008[_0x3eee00(0x284,0x1f1,0x13d,0x177)]-_0x41cd79[_0x3eee00(0x12c,0x1f1,0x221,0x143)]),_0x287d4c=[];function _0x3eee00(_0x23b092,_0x4b9c85,_0x180998,_0x5a70d5){return _0x38c793(_0x180998,_0x4b9c85-_0x3a6827._0x41ddf9,_0x4b9c85- -0x28f,_0x5a70d5-_0x3a6827._0x1a7b3c);}for(const _0x3d043c of _0x2c2f83){if(_0x3d043c[_0x3eee00(_0x4ac3a0._0x3a61f5,_0x4ac3a0._0x18cd06,_0x4ac3a0._0x2cbe06,0x144)]===_0x3eee00(0x22f,0x1b3,_0x4ac3a0._0x115000,_0x4ac3a0._0x410b97)){_0x3d043c[_0x58a84e(_0x4ac3a0._0x44bced,_0x4ac3a0._0x407c36,0x4d4,_0x4ac3a0._0x21d02e)][_0x58a84e(_0x4ac3a0._0x50c67a,0x49b,_0x4ac3a0._0x3cba0e,_0x4ac3a0._0x258c79)]>0x0&&_0x287d4c[_0x3eee00(0x1be,_0x4ac3a0._0x2925e9,_0x4ac3a0._0x5ef27c,0x25b)]({'type':_0x3eee00(_0x4ac3a0._0x3f6670,0x1b3,_0x4ac3a0._0x11ad7a,_0x4ac3a0._0x2ac202),'text':_0x3d043c['text']});continue;}if(_0x3d043c[_0x58a84e(_0x4ac3a0._0x30e1a6,_0x4ac3a0._0x1b0261,_0x4ac3a0._0x59477e,_0x4ac3a0._0x1cb3e5)]===_0x58a84e(_0x4ac3a0._0x90b063,_0x4ac3a0._0x547e54,0x529,_0x4ac3a0._0x215bd3)){_0x287d4c[_0x58a84e(_0x4ac3a0._0x5e9589,_0x4ac3a0._0x34a2bc,0x4d6,_0x4ac3a0._0x20af11)]({'type':'thinking','thinking':_0x3d043c[_0x3eee00(_0x4ac3a0._0x26458b,_0x4ac3a0._0x1bb4bb,_0x4ac3a0._0x1e6dfe,0x205)],'signature':_0x3d043c[_0x58a84e(0x5ba,0x46a,_0x4ac3a0._0xef927a,_0x4ac3a0._0x329a9c)]});continue;}if(_0x3d043c[_0x58a84e(_0x4ac3a0._0x2312e4,_0x4ac3a0._0x52d162,0x402,_0x4ac3a0._0x1b299f)]===_0x58a84e(0x435,0x3e9,_0x4ac3a0._0x3233fb,0x397)){_0x287d4c[_0x3eee00(_0x4ac3a0._0x6a1ca,_0x4ac3a0._0x59eabc,_0x4ac3a0._0x7fad18,0x270)]({'type':'redacted_thinking','data':_0x3d043c['data']});continue;}_0x287d4c[_0x3eee00(_0x4ac3a0._0x1f6000,0x1b5,_0x4ac3a0._0x499946,_0x4ac3a0._0x2ad857)]({'type':'tool_use','id':_0x3d043c['id'],'name':_0x3d043c[_0x3eee00(_0x4ac3a0._0x334120,0xee,_0x4ac3a0._0x13af06,_0x4ac3a0._0x59a3e0)],'input':parseToolInput(_0x3d043c[_0x58a84e(0x45b,0x570,_0x4ac3a0._0x582ace,0x571)][_0x58a84e(0x4ac,_0x4ac3a0._0x45f931,0x45d,_0x4ac3a0._0x2126f9)]>0x0?_0x3d043c['inputJson']:'{}')});}return parseAnthropicResponse({'id':this[_0x3eee00(_0x4ac3a0._0x13d68f,0x25a,_0x4ac3a0._0x317876,_0x4ac3a0._0x9e227e)],'type':_0x58a84e(_0x4ac3a0._0x1edb4a,0x3b6,0x474,_0x4ac3a0._0x85bbc3),'role':'assistant','content':_0x287d4c,'stop_reason':this['stopReason'],'stop_sequence':null,'usage':{'input_tokens':this['inputTokens'],'output_tokens':this[_0x58a84e(_0x4ac3a0._0x37a412,_0x4ac3a0._0x3b98c2,_0x4ac3a0._0x4ae560,_0x4ac3a0._0xdf40f0)]}},this['request']);}};function createAnthropicSurfaces(){const _0x1d6734={_0x17af88:0x36b,_0x424342:0xdf,_0x47f907:0xc4,_0x4eb062:0x7},_0x504f82={_0x444cf1:0x77};function _0x42194e(_0x55fd64,_0x26de0c,_0x2c187a,_0x301389){return _0x38c793(_0x301389,_0x26de0c-0x1b7,_0x2c187a- -0x29e,_0x301389-0x104);}function _0x5f42aa(_0x2fa778,_0x33568f,_0x2b3847,_0x3aa9ef){return _0x2b6123(_0x33568f,_0x33568f-0x2e,_0x2b3847-_0x504f82._0x444cf1,_0x3aa9ef-0x1d4);}return[{'id':ANTHROPIC_MESSAGES_SURFACE,'transport':_0x5f42aa(0x32a,0x2a2,0x2d0,_0x1d6734._0x17af88),'createRequest'(_0x2fa7d3){return createAnthropicRequest(_0x2fa7d3,![]);},'parseResponse'(_0xe8a2aa,_0x4782d8){return parseAnthropicResponse(_0xe8a2aa,_0x4782d8);}},{'id':ANTHROPIC_MESSAGES_STREAM_SURFACE,'transport':_0x42194e(_0x1d6734._0x424342,0x1a,_0x1d6734._0x47f907,_0x1d6734._0x4eb062),'createRequest'(_0xe120f2){return createAnthropicRequest(_0xe120f2,!![]);},'createStreamParser'(_0x1640d7){return new AnthropicMessagesStreamParser(_0x1640d7);}}];}var StaticModelSurfaceRouter=class{[_0x38c793(0x398,0x473,0x3eb,0x416)];[_0x38c793(0x2ef,0x2c6,0x35f,0x39d)];constructor(_0x53e5cc){const _0x647e9c={_0x2ccfac:0x5f8,_0x3ffca5:0x5f6,_0x130f20:0x66f,_0x463b80:0x5a4},_0x54984e={_0x1e3650:0x51};this[_0x33bcaa(0x568,_0x647e9c._0x2ccfac,0x4b9,0x5a7)]=_0x53e5cc['complete'];function _0x33bcaa(_0x2ff4ac,_0x5c5f7a,_0x5a85d7,_0x2820cb){return _0x38c793(_0x5a85d7,_0x5c5f7a-0xbb,_0x2ff4ac-0x17d,_0x2820cb-0x1b8);}function _0x5d75d2(_0x33ac4d,_0x251116,_0x4fc27a,_0x148ed5){return _0x2b6123(_0x33ac4d,_0x251116-0x7,_0x148ed5-_0x54984e._0x1e3650,_0x148ed5-0x12a);}this['streamSurface']=_0x53e5cc[_0x33bcaa(_0x647e9c._0x3ffca5,0x66c,_0x647e9c._0x130f20,_0x647e9c._0x463b80)];}['selectSurface'](_0x4d1c72,_0x5a4c1c){const _0x53d5f5={_0x3a0a93:0x265,_0x5c354a:0x1bb,_0x28958e:0x1f,_0xebfc40:0x170,_0xe11813:0x24e,_0x449d2d:0x22e},_0x546571={_0x5bd093:0x1f4};function _0x5069dd(_0xcc3702,_0x2708d9,_0x1a4941,_0xbe63bc){return _0x38c793(_0x1a4941,_0x2708d9-0x121,_0xcc3702- -0x5ac,_0xbe63bc-_0x546571._0x5bd093);}function _0x3a7b2(_0x1c2657,_0x2c4686,_0x14c0d7,_0x492520){return _0x38c793(_0x14c0d7,_0x2c4686-0x1c5,_0x2c4686- -0x410,_0x492520-0xf4);}return _0x5a4c1c[_0x5069dd(-0x1e9,-_0x53d5f5._0x3a0a93,-_0x53d5f5._0x5c354a,-0x14a)]===_0x3a7b2(-_0x53d5f5._0x28958e,0x69,0x90,0x3f)?this['streamSurface']:this[_0x5069dd(-0x1c1,-_0x53d5f5._0xebfc40,-_0x53d5f5._0xe11813,-_0x53d5f5._0x449d2d)];}};function trimTrailingSlashes(_0x48058d){const _0x272144={_0x5cf57e:0x343,_0x183e6c:0x364,_0x53fbf5:0x32a},_0x49414f={_0x25808b:0x8b,_0x3d6a1b:0x186,_0x5a08ff:0xd};function _0x22c12e(_0x584a1e,_0x100529,_0x1338f3,_0x58a2d9){return _0x38c793(_0x1338f3,_0x100529-_0x49414f._0x25808b,_0x584a1e- -_0x49414f._0x3d6a1b,_0x58a2d9-_0x49414f._0x5a08ff);}return _0x48058d[_0x22c12e(0x2da,_0x272144._0x5cf57e,_0x272144._0x183e6c,_0x272144._0x53fbf5)](/\/+$/,'');}function resolveApiCredential(_0x6bf615,_0x35b43e){const _0x395a16={_0xeefdb7:0x4cc,_0x2a4a7c:0x15d,_0x1956de:0x1c0},_0x2d6b04={_0x425961:0x98},_0x430e41={_0x34465b:0x1c8,_0x52dfcd:0x130};function _0x2e5dd0(_0x26d9ea,_0x406301,_0x32738e,_0x31a3a5){return _0x2b6123(_0x406301,_0x406301-0x134,_0x32738e- -_0x430e41._0x34465b,_0x31a3a5-_0x430e41._0x52dfcd);}if(_0x35b43e?.[_0x3c8b4d(0x359,0x41c,0x4dc,_0x395a16._0xeefdb7)])return _0x35b43e[_0x3c8b4d(0x3a7,0x41c,0x48c,0x4d7)];function _0x3c8b4d(_0x2fddbd,_0x7699be,_0x423607,_0x5aeaea){return _0x38c793(_0x5aeaea,_0x7699be-0x133,_0x7699be- -_0x2d6b04._0x425961,_0x5aeaea-0x13d);}if(!_0x6bf615)return void 0x0;return{'kind':_0x2e5dd0(_0x395a16._0x2a4a7c,0x19c,_0x395a16._0x1956de,0x238),'value':_0x6bf615};}function resolveSessionBaseUrl(_0x101d46,_0x4e3258){const _0x437532={_0x2d6ea8:0xf,_0xd76074:0x6f,_0x2ba3d3:0xe1,_0x26c003:0x35},_0x5e0c7d={_0x30338b:0x3d2,_0x4e32fa:0xb1};function _0x51cb52(_0x1d9159,_0x5d8673,_0x55bc9f,_0x16cb95){return _0x38c793(_0x16cb95,_0x5d8673-0x168,_0x5d8673-0x26,_0x16cb95-0x4d);}function _0x1d9438(_0x4a230d,_0x3b5e2a,_0x3a16ba,_0x5b772c){return _0x38c793(_0x3a16ba,_0x3b5e2a-0xd5,_0x3b5e2a- -_0x5e0c7d._0x30338b,_0x5b772c-_0x5e0c7d._0x4e32fa);}return trimTrailingSlashes(_0x4e3258?.[_0x1d9438(-_0x437532._0x2d6ea8,_0x437532._0xd76074,-0x26,_0x437532._0x2ba3d3)]?.[_0x1d9438(0xb8,_0x437532._0x26c003,0x14,0xe5)]??_0x101d46);}function toErrorMessage(_0x356af5){const _0x3670da={_0x2460a2:0x3a4,_0x113c82:0x3d,_0x40e59e:0x55,_0x4ed865:0x88,_0x407317:0x7e,_0x23478e:0x19},_0x3257ee={_0x482972:0x319,_0x38190e:0x3f},_0x496a13={_0x1f556c:0x193,_0x358d7c:0xf2,_0x1b8ae2:0xd3};function _0x87d7c0(_0x4491b5,_0x4de173,_0x5a6fd0,_0x53e808){return _0x2b6123(_0x5a6fd0,_0x4de173-_0x496a13._0x1f556c,_0x4de173-_0x496a13._0x358d7c,_0x53e808-_0x496a13._0x1b8ae2);}function _0x18af36(_0x591f5a,_0x3e1576,_0x14fff3,_0x52c302){return _0x2b6123(_0x3e1576,_0x3e1576-0x160,_0x52c302- -_0x3257ee._0x482972,_0x52c302-_0x3257ee._0x38190e);}if(_0x356af5 instanceof Error&&_0x356af5[_0x87d7c0(0x431,_0x3670da._0x2460a2,0x3dc,0x330)][_0x18af36(-_0x3670da._0x113c82,-_0x3670da._0x40e59e,-_0x3670da._0x4ed865,-_0x3670da._0x407317)]>0x0)return _0x356af5['message'];return _0x18af36(0x98,0x29,0x81,_0x3670da._0x23478e);}function createDefaultWebSocketFactory(){const _0x235696={_0x7593d4:0x4af,_0x14aa57:0x480,_0xaddc2b:0x45a},_0x3400ae={_0x23632a:0x1f1};return({headers:_0xd88590,url:_0x2b7cec})=>{const _0x4f9906=globalThis[_0x4c2e6a(_0x235696._0x7593d4,0x55b,_0x235696._0x14aa57,_0x235696._0xaddc2b)];function _0x4c2e6a(_0x43ae71,_0xa6c685,_0x48cab8,_0x247a25){return _0x25f1(_0x43ae71-_0x3400ae._0x23632a,_0x48cab8);}return new _0x4f9906(_0x2b7cec,{'headers':_0xd88590,'protocols':[]});};}async function*iterateSseEvents(_0x13b3a7,_0x187dde){const _0x4a8a2a={_0x4b17cb:0x57,_0x10fd0d:0x277,_0x1fcf8c:0x1f1,_0x26da05:0xe3,_0x413f96:0x75,_0x50b235:0x106,_0xadf783:0x164,_0x5c35f0:0x1d8,_0x33f92e:0x82,_0x22484a:0x115,_0x28fcba:0x61,_0x1b14a8:0x24d,_0x1cfacf:0x2f2},_0x509e2b={_0x1f9742:0x168,_0x1faae3:0xc3,_0x5ee7c6:0xab,_0x5a07f5:0x3b},_0x3a0d90={_0x1c87da:0x17a,_0x479ccf:0x17,_0x4ec713:0x73},_0x2f2a1d={_0x372101:0x384},_0x76a1c5={_0x2dc4e4:0x29b};function _0x53b4b9(_0x3a4e37,_0x3083cd,_0x26eb83,_0x5a2d45){return _0x38c793(_0x26eb83,_0x3083cd-0x190,_0x3083cd- -_0x76a1c5._0x2dc4e4,_0x5a2d45-0x1cd);}const _0x566e91=_0x13b3a7[_0x53b4b9(0xec,0xd4,_0x4a8a2a._0x4b17cb,0x166)]?.[_0x53b4b9(_0x4a8a2a._0x10fd0d,_0x4a8a2a._0x1fcf8c,0x245,0x24b)]();if(!_0x566e91)return;function _0x545560(_0x52c75c,_0x54776d,_0x303d09,_0x4317bb){return _0x2b6123(_0x303d09,_0x54776d-0x1c7,_0x54776d- -_0x2f2a1d._0x372101,_0x4317bb-0x2a);}const _0x4ed76b=new TextDecoder('utf-8');let _0x4f239f='';const _0x86df66=addAbortListener(_0x187dde,()=>{const _0x5b8628={_0x5bd472:0x12b,_0x1aeae4:0x5b9};function _0x4791b8(_0x56e68f,_0x3eb37e,_0x58df0b,_0x469b36){return _0x545560(_0x56e68f-_0x5b8628._0x5bd472,_0x58df0b-_0x5b8628._0x1aeae4,_0x56e68f,_0x469b36-0x71);}function _0x393533(_0x398cca,_0x44f15e,_0x57b318,_0x13475a){return _0x545560(_0x398cca-_0x3a0d90._0x1c87da,_0x13475a-_0x3a0d90._0x479ccf,_0x398cca,_0x13475a-_0x3a0d90._0x4ec713);}void _0x566e91[_0x393533(-0x127,-_0x509e2b._0x1f9742,-0xfe,-_0x509e2b._0x1faae3)](toAbortError(_0x187dde?.[_0x393533(-0x29,_0x509e2b._0x5ee7c6,0x2f,_0x509e2b._0x5a07f5)]))['catch'](()=>{});});try{while(!![]){throwIfAborted(_0x187dde);const {value:_0x3adf1e,done:_0xec4b1a}=await _0x566e91['read']();throwIfAborted(_0x187dde);if(_0xec4b1a)break;_0x4f239f+=_0x4ed76b[_0x53b4b9(0x24b,0x24d,0x1a6,0x1bb)](_0x3adf1e,{'stream':!![]});while(!![]){const _0x1c5bd0=_0x4f239f[_0x545560(-_0x4a8a2a._0x26da05,-_0x4a8a2a._0x413f96,0x34,-_0x4a8a2a._0x50b235)]('\x0a\x0a');if(_0x1c5bd0===-0x1)break;const _0x24671a=_0x4f239f['slice'](0x0,_0x1c5bd0);_0x4f239f=_0x4f239f[_0x53b4b9(0x1f3,_0x4a8a2a._0xadf783,0x12b,0x13a)](_0x1c5bd0+0x2),_0x24671a[_0x53b4b9(_0x4a8a2a._0x5c35f0,0x137,_0x4a8a2a._0x33f92e,_0x4a8a2a._0x22484a)]()[_0x545560(-0x59,-0xe9,-_0x4a8a2a._0x28fcba,-0x24)]>0x0&&(yield _0x24671a);}}_0x4f239f+=_0x4ed76b[_0x53b4b9(0x29e,_0x4a8a2a._0x1b14a8,_0x4a8a2a._0x1cfacf,0x27d)](),throwIfAborted(_0x187dde),_0x4f239f['trim']()['length']>0x0&&(yield _0x4f239f);}finally{_0x86df66();}}async function waitForWebSocketOpen(_0x57d6e3,_0x3f93fc){const _0x1aa18f={_0x16b49e:0x24b,_0x51a5ae:0x35a,_0x5cefd9:0x35f,_0x3fab36:0x2c6,_0x5a1fff:0x23a,_0x85f8e6:0x1f9,_0x5c25ce:0x337},_0x33d5e6={_0x463d13:0xcc},_0x1f198e={_0x1b23bd:0x1de,_0x523fc6:0x138,_0x32030f:0xf0,_0x482da4:0xb2},_0x59e497={_0x418814:0x2cb};if(_0x57d6e3['readyState']===WebSocket['OPEN']){throwIfAborted(_0x3f93fc);return;}throwIfAborted(_0x3f93fc),await new Promise((_0x41af25,_0x44d26a)=>{const _0x14b1ad={_0x1e8335:0x106},_0x54cdd3={_0x1a1043:0x4ef,_0x54227d:0x551,_0x25a59f:0x527,_0x5ecfbf:0x276,_0xcfc670:0x2a9,_0x59b53a:0x321,_0x5af63b:0x2cc,_0x564722:0x274,_0x581f91:0x2ba,_0x40271b:0x2a3},_0x403706={_0xac61ea:0x29b},_0x15f24d={_0x529fcd:0x62},_0x1790dd={_0x213fb3:0x3af,_0x3ce66f:0x309},_0x377d84=()=>{_0x3648c7(),_0x41af25();},_0x5bac92=_0x2dad3f=>{const _0x53d47a={_0xf8720c:0x82};_0x3648c7();function _0x55c697(_0x5e32e8,_0x1f19db,_0x3f69ea,_0x37a54e){return _0x25f1(_0x3f69ea-_0x53d47a._0xf8720c,_0x1f19db);}_0x44d26a(new Error(_0x2dad3f['message']||_0x55c697(0x33b,0x22f,_0x59e497._0x418814,0x381)));},_0x21f341=_0x1983d3=>{const _0xc39286={_0xe82ee9:0x44};_0x3648c7();function _0x2e5946(_0xd63987,_0xdb78b4,_0x243062,_0x474b6e){return _0x25f1(_0xdb78b4-_0xc39286._0xe82ee9,_0xd63987);}const _0x24f0ba=_0x1983d3;_0x44d26a(new Error(_0x24f0ba[_0x2e5946(_0x1790dd._0x213fb3,0x303,_0x1790dd._0x3ce66f,0x388)]||'WebSocket\x20closed\x20before\x20opening'));},_0x283d20=()=>{_0x3648c7();function _0xaedc23(_0x1f6e20,_0x43744b,_0x409dc7,_0x231f86){return _0x25f1(_0x231f86- -0x391,_0x1f6e20);}_0x57d6e3[_0x1d4996(_0x1f198e._0x1b23bd,0x22d,0x29c,0x1d9)]===WebSocket[_0xaedc23(-_0x1f198e._0x523fc6,-0xea,-0x39,-_0x1f198e._0x32030f)]&&_0x57d6e3['close'](0x3e8,_0xaedc23(-0x15,-_0x1f198e._0x482da4,-0x13e,-0xc0));function _0x1d4996(_0x5ca1a5,_0x4fdded,_0x3bfc86,_0x199290){return _0x25f1(_0x4fdded-_0x15f24d._0x529fcd,_0x5ca1a5);}_0x44d26a(toAbortError(_0x3f93fc?.['reason']));},_0x3648c7=()=>{const _0x28a71d={_0x14b1a9:0x1d};function _0x2c269f(_0x3bcfee,_0x4aa065,_0x5c2b05,_0x23cd76){return _0x25f1(_0x3bcfee-_0x28a71d._0x14b1a9,_0x5c2b05);}_0x57d6e3['removeEventListener'](_0x33d03f(0x56c,_0x54cdd3._0x1a1043,_0x54cdd3._0x54227d,0x512),_0x377d84);function _0x33d03f(_0x460287,_0x2a26fd,_0x3fcdfb,_0x3a0d0b){return _0x25f1(_0x2a26fd-_0x403706._0xac61ea,_0x3a0d0b);}_0x57d6e3[_0x33d03f(0x4be,_0x54cdd3._0x25a59f,0x55a,0x4bc)](_0x2c269f(_0x54cdd3._0x5ecfbf,0x2b0,0x256,0x249),_0x5bac92),_0x57d6e3['removeEventListener'](_0x2c269f(0x209,0x216,0x14d,0x2b0),_0x21f341),_0x3f93fc?.[_0x2c269f(_0x54cdd3._0xcfc670,0x33b,_0x54cdd3._0x59b53a,_0x54cdd3._0x5af63b)](_0x2c269f(_0x54cdd3._0x564722,_0x54cdd3._0x581f91,0x1e3,_0x54cdd3._0x40271b),_0x283d20);};_0x57d6e3[_0x5e3142(0x2c5,0x346,_0x1aa18f._0x16b49e,0x342)](_0x5e3142(_0x1aa18f._0x51a5ae,0x2ef,0x391,0x34a),_0x377d84);function _0x4da2b4(_0x27b363,_0x3fa21b,_0xa5f9c6,_0xf2f290){return _0x25f1(_0xa5f9c6-_0x33d5e6._0x463d13,_0x27b363);}function _0x5e3142(_0x216379,_0x1c0838,_0x29880d,_0x252b40){return _0x25f1(_0x216379-_0x14b1ad._0x1e8335,_0x252b40);}_0x57d6e3['addEventListener'](_0x5e3142(_0x1aa18f._0x5cefd9,0x409,0x3e7,_0x1aa18f._0x3fab36),_0x5bac92),_0x57d6e3[_0x5e3142(0x2c5,0x2e9,0x220,0x2f0)]('close',_0x21f341),_0x3f93fc?.[_0x4da2b4(_0x1aa18f._0x5a1fff,_0x1aa18f._0x85f8e6,0x28b,_0x1aa18f._0x5c25ce)]('abort',_0x283d20,{'once':!![]});});}function iterateWebSocketMessages(_0x3cd1c2,_0x3c4c46){const _0x198e25={_0x4569d1:0x9,_0x1a04b3:0xd0,_0x56b28a:0x1,_0x5303b1:0x62,_0x52af88:0x11,_0x21804a:0xc6,_0x56b9de:0x1ad,_0x13c4d4:0x188,_0x51e1ea:0x5b,_0x13afff:0xee,_0x4379b0:0x73,_0x25a9bc:0xd9,_0x1001fd:0x7,_0x24930f:0x59,_0x5f20d2:0x29,_0xf0321f:0x2a,_0x1e3848:0x6a},_0x5cf113={_0x4e0192:0x5be,_0x5fdd27:0x56e,_0x1b4f4a:0x524,_0x3e1a38:0x6d6,_0x53c6f9:0x41d,_0x595573:0x3cd,_0x1b94c7:0x625,_0xa86424:0x5a7,_0x135feb:0x5d7,_0x2a9f69:0x585},_0x3edcc4={_0x4c68eb:0x152,_0x18703b:0xdf},_0x17feea={_0x32de48:0x25e,_0x26ee65:0x2c2,_0x314322:0x242,_0xd34d3e:0x1a4,_0x19d99e:0x17d,_0x33be60:0x42,_0x1bdab8:0xac,_0x535983:0x2b,_0x2a3234:0x6c,_0xfaacfb:0x29c,_0x216c70:0x92,_0x1d799d:0x7},_0x356495={_0x94ee79:0x5f7,_0x1380c1:0x612,_0x580c03:0x47d},_0x2edb29={_0x3cd5f7:0x130},_0x2c877a={_0x4955f4:0x4c2,_0x32d13e:0x54a,_0x167b65:0x403,_0x227522:0x608,_0x572a52:0x5cc,_0x20ad5f:0x637},_0x529f77={_0x59c3ec:0x2f9},_0x49f1f5={_0x193599:0x383},_0x529f15={_0x4c4ad6:0x157,_0x8eb20d:0x9b},_0x1ebe02={_0x79ff6c:0x3f2,_0x4a3d85:0x46c,_0x2c15a5:0x534,_0x49553d:0x3d7,_0x223bdb:0x241,_0x97eaf4:0x2c3},_0x2408ea=[];let _0x50e148=![],_0x29c96d,_0x31d18f;const _0x1adc22=_0x4231db=>{const _0x1b8682={_0x1dfa77:0x19};function _0x5d93d4(_0xb40def,_0x2649f8,_0x494698,_0x213359){return _0x25f1(_0x2649f8-0x25e,_0x494698);}function _0xb8186d(_0x463487,_0x12bd7b,_0x4c0e29,_0x44e4d5){return _0x25f1(_0x463487- -_0x1b8682._0x1dfa77,_0x12bd7b);}const _0x19b31d=_0x4231db;try{_0x2408ea[_0x5d93d4(0x471,0x489,_0x1ebe02._0x79ff6c,0x4ef)](JSON[_0x5d93d4(0x45b,_0x1ebe02._0x4a3d85,_0x1ebe02._0x2c15a5,_0x1ebe02._0x49553d)](String(_0x19b31d['data']))),_0x31d18f?.(),_0x31d18f=void 0x0;}catch(_0x95b4eb){_0x29c96d=new Error(_0xb8186d(_0x1ebe02._0x223bdb,0x218,0x225,_0x1ebe02._0x97eaf4)+toErrorMessage(_0x95b4eb)),_0x31d18f?.(),_0x31d18f=void 0x0;}};function _0x245c8e(_0x5ea19b,_0x453553,_0x27e652,_0x40b826){return _0x2b6123(_0x5ea19b,_0x453553-_0x529f15._0x4c4ad6,_0x27e652- -0x430,_0x40b826-_0x529f15._0x8eb20d);}const _0x2248cd=_0x3cc835=>{const _0x492735=_0x3cc835;function _0xa84928(_0x432e88,_0x475a49,_0x41412f,_0x425ed4){return _0x25f1(_0x475a49-_0x49f1f5._0x193599,_0x432e88);}function _0x4b33d0(_0x557402,_0x68c1fc,_0x299210,_0x1d4ebb){return _0x25f1(_0x557402-_0x529f77._0x59c3ec,_0x1d4ebb);}_0x29c96d=new Error(_0x492735[_0x4b33d0(_0x2c877a._0x4955f4,_0x2c877a._0x32d13e,0x534,_0x2c877a._0x167b65)]||_0xa84928(_0x2c877a._0x227522,_0x2c877a._0x572a52,_0x2c877a._0x20ad5f,0x5ab)),_0x31d18f?.(),_0x31d18f=void 0x0;},_0x27e5bc=_0x413fbf=>{function _0x3c1a65(_0x121e6e,_0x48d6e9,_0xebd8ff,_0x1866cf){return _0x25f1(_0xebd8ff-_0x2edb29._0x3cd5f7,_0x121e6e);}const _0x124ba8=_0x413fbf;function _0x2eaf45(_0x2e4dc7,_0x4575a8,_0x15b901,_0x12e5b9){return _0x25f1(_0x2e4dc7-0x322,_0x15b901);}!_0x50e148&&_0x124ba8[_0x2eaf45(_0x356495._0x94ee79,0x68b,_0x356495._0x1380c1,0x581)]!==0x3e8&&!_0x29c96d&&(_0x29c96d=new Error(_0x124ba8['reason']||_0x3c1a65(_0x356495._0x580c03,0x381,0x3dd,0x3b4)+_0x124ba8[_0x2eaf45(0x5f7,0x695,0x6bd,0x543)])),_0x50e148=!![],_0x31d18f?.(),_0x31d18f=void 0x0;},_0x4eab76=addAbortListener(_0x3c4c46,()=>{_0x29c96d=toAbortError(_0x3c4c46?.[_0x201f19(_0x17feea._0x32de48,0x312,_0x17feea._0x26ee65,_0x17feea._0x314322)]);_0x3cd1c2[_0x55b2f1(-_0x17feea._0xd34d3e,-0x101,-_0x17feea._0x19d99e,-_0x17feea._0x33be60)]===WebSocket[_0x55b2f1(-_0x17feea._0x1bdab8,-_0x17feea._0x535983,0x1a,_0x17feea._0x2a3234)]&&_0x3cd1c2[_0x201f19(0x157,_0x17feea._0xfaacfb,0x1ef,0x1da)](0x3e8,_0x55b2f1(0x21,0x5,-_0x17feea._0x216c70,-_0x17feea._0x1d799d));_0x31d18f?.();function _0x201f19(_0x54f810,_0x21f022,_0x3ccfc8,_0x1f25d4){return _0x25f1(_0x3ccfc8-0x3,_0x1f25d4);}function _0x55b2f1(_0x16ac19,_0x18e1df,_0x20c6ae,_0x46a48d){return _0x25f1(_0x18e1df- -0x2cc,_0x20c6ae);}_0x31d18f=void 0x0;});_0x3cd1c2[_0x20c087(-_0x198e25._0x4569d1,-_0x198e25._0x1a04b3,0x8e,-0x29)](_0x20c087(_0x198e25._0x56b28a,_0x198e25._0x5303b1,_0x198e25._0x52af88,_0x198e25._0x21804a),_0x1adc22),_0x3cd1c2[_0x245c8e(-0x251,-_0x198e25._0x56b9de,-_0x198e25._0x13c4d4,-0x1c3)](_0x245c8e(-_0x198e25._0x51e1ea,-0x1a5,-_0x198e25._0x13afff,-_0x198e25._0x4379b0),_0x2248cd),_0x3cd1c2['addEventListener'](_0x20c087(0x24,_0x198e25._0x25a9bc,_0x198e25._0x1001fd,-_0x198e25._0x24930f),_0x27e5bc);function _0x20c087(_0x1e6a58,_0x353729,_0x276def,_0x1a688d){return _0x2b6123(_0x353729,_0x353729-0x154,_0x1e6a58- -0x2b1,_0x1a688d-0x1c7);}return{async*[Symbol[_0x20c087(_0x198e25._0x4569d1,-_0x198e25._0x5f20d2,-_0x198e25._0xf0321f,_0x198e25._0x1e3848)]](){const _0x5c5606={_0x1cb42a:0xd6};function _0x2f46be(_0x54d86a,_0xfc8bb1,_0x3f9af9,_0x430c37){return _0x20c087(_0x3f9af9-0x561,_0x54d86a,_0x3f9af9-_0x5c5606._0x1cb42a,_0x430c37-0x186);}function _0x129571(_0x206ed1,_0x372aa0,_0xc48a41,_0x47ee5a){return _0x245c8e(_0xc48a41,_0x372aa0-_0x3edcc4._0x4c68eb,_0x372aa0-0x5f8,_0x47ee5a-_0x3edcc4._0x18703b);}try{while(!![]){if(_0x29c96d)throw _0x29c96d;if(_0x2408ea['length']>0x0){yield _0x2408ea[_0x2f46be(0x607,_0x5cf113._0x4e0192,_0x5cf113._0x5fdd27,_0x5cf113._0x1b4f4a)]();continue;}if(_0x50e148)break;await new Promise(_0x107779=>{_0x31d18f=_0x107779;});}}finally{_0x3cd1c2[_0x2f46be(_0x5cf113._0x3e1a38,0x67c,0x625,0x5c1)](_0x129571(_0x5cf113._0x53c6f9,0x47a,0x43a,_0x5cf113._0x595573),_0x1adc22),_0x3cd1c2[_0x2f46be(0x5ae,0x5ce,_0x5cf113._0x1b94c7,0x6ea)](_0x2f46be(0x565,0x568,0x5f2,_0x5cf113._0xa86424),_0x2248cd),_0x3cd1c2['removeEventListener'](_0x2f46be(_0x5cf113._0x135feb,0x5ac,_0x5cf113._0x2a9f69,0x586),_0x27e5bc),_0x4eab76();}}};}function toWebSocketUrl(_0x308e1c,_0x6eca10){const _0x3e76ef={_0x5ebdde:0x492,_0x264cb6:0x4ce,_0x34bc2e:0x460,_0x1aa2ad:0x479,_0xf80d83:0x537,_0x5c9e05:0x516,_0x4f18cf:0x3cb},_0x3a7b53={_0x372599:0x64,_0x4a7289:0xa},_0xba05f={_0x3e7193:0x47f},_0x337799=new URL(_0x6eca10,_0x308e1c);function _0x4961d5(_0x42e698,_0x83529e,_0x26881b,_0x2c9aaf){return _0x2b6123(_0x83529e,_0x83529e-0x48,_0x42e698- -_0xba05f._0x3e7193,_0x2c9aaf-0x1aa);}function _0x54046a(_0x21a8c3,_0x99c35d,_0x947033,_0x3a7e23){return _0x2b6123(_0x99c35d,_0x99c35d-_0x3a7b53._0x372599,_0x21a8c3-0x1e5,_0x3a7e23-_0x3a7b53._0x4a7289);}return _0x337799['protocol']=_0x337799['protocol']===_0x54046a(0x40e,_0x3e76ef._0x5ebdde,0x368,0x450)?_0x54046a(0x48c,0x4ba,0x519,_0x3e76ef._0x264cb6):_0x54046a(0x437,0x3a9,_0x3e76ef._0x34bc2e,0x47d),_0x337799[_0x54046a(_0x3e76ef._0x1aa2ad,_0x3e76ef._0xf80d83,_0x3e76ef._0x5c9e05,_0x3e76ef._0x4f18cf)]();}var ProviderSessionManager=class{[_0x2b6123(0x403,0x289,0x341,0x32a)];[_0x38c793(0x482,0x4ed,0x494,0x53a)];constructor(_0x6e3947){const _0x1ac21a={_0x1c3465:0x1c6,_0x203279:0x140},_0x4b12d4={_0x12cd61:0xe2,_0x1d3577:0x16b};function _0x423bc2(_0x489a2c,_0x2f4a25,_0x3f65d5,_0x337db5){return _0x2b6123(_0x2f4a25,_0x2f4a25-_0x4b12d4._0x12cd61,_0x337db5- -0x481,_0x337db5-_0x4b12d4._0x1d3577);}this[_0x423bc2(-0x179,-0x193,-_0x1ac21a._0x1c3465,-_0x1ac21a._0x203279)]=_0x6e3947;}async['resolve'](_0x124ea8){const _0x59eeb1={_0x52948d:0x248,_0x2277e5:0x2d4,_0x565a38:0x183,_0x3648d9:0x1ae,_0x2eedb9:0x1c0},_0x51fb7a={_0x31304a:0x11b};function _0x4cd285(_0x13647e,_0xcf8308,_0x2d5175,_0x3352bb){return _0x38c793(_0x2d5175,_0xcf8308-0x126,_0x13647e- -0x236,_0x3352bb-0x8f);}!this[_0x4cd285(0x25e,_0x59eeb1._0x52948d,_0x59eeb1._0x2277e5,0x296)]&&(this[_0x3e107b(-0xd3,-0x106,-0x154,-0x37)]=this[_0x3e107b(-0xf6,-_0x59eeb1._0x565a38,-_0x59eeb1._0x3648d9,-_0x59eeb1._0x2eedb9)][_0x3e107b(-0x96,-0x2a,0x4,-0x118)](_0x124ea8));function _0x3e107b(_0x15ff98,_0x40904d,_0x5821bd,_0x4292b7){return _0x38c793(_0x5821bd,_0x40904d-0x2,_0x15ff98- -0x567,_0x4292b7-_0x51fb7a._0x31304a);}return structuredClone(await this['cached']);}['invalidate'](){const _0x335087={_0x4f9bb0:0xe4,_0x2a4821:0x3c},_0x46a80b={_0xbc6a2f:0x40,_0x481c1d:0x3cd};function _0x45bd1f(_0x532b17,_0x8cfad7,_0x4d9a25,_0x722975){return _0x2b6123(_0x532b17,_0x8cfad7-_0x46a80b._0xbc6a2f,_0x4d9a25- -_0x46a80b._0x481c1d,_0x722975-0xe6);}this[_0x45bd1f(-_0x335087._0x4f9bb0,-0xb7,-0x69,-_0x335087._0x2a4821)]=void 0x0;}};async function prepareProviderRequest(_0x53895f,_0x1b44dd={}){const _0x1e1523={_0x125094:0x2a3,_0x30ad18:0x1f0,_0x3852f3:0x225,_0x3b8fb3:0x21c,_0x239046:0x146,_0x1384ae:0x160,_0x5a2f72:0x196,_0x3aba3e:0xbd,_0x33fc12:0x158},_0x4b691e={_0x25b34c:0x82};function _0x4dcc2c(_0x1ca7e5,_0x42142e,_0x24eb5e,_0x174936){return _0x2b6123(_0x1ca7e5,_0x42142e-0x196,_0x24eb5e- -0x1c4,_0x174936-0x18);}function _0x475da2(_0x29cc66,_0x1e1494,_0x2ce258,_0x2600df){return _0x38c793(_0x1e1494,_0x1e1494-0xd6,_0x2600df- -0x2ee,_0x2600df-_0x4b691e._0x25b34c);}let _0x242b0c={'request':structuredClone(_0x53895f),'session':_0x1b44dd[_0x4dcc2c(0x1ce,_0x1e1523._0x125094,_0x1e1523._0x30ad18,_0x1e1523._0x3852f3)]?await _0x1b44dd[_0x4dcc2c(_0x1e1523._0x3b8fb3,_0x1e1523._0x239046,0x1f0,0x21f)]['resolve'](_0x1b44dd['signal']):void 0x0};for(const _0x2a3763 of _0x1b44dd[_0x475da2(_0x1e1523._0x1384ae,_0x1e1523._0x5a2f72,_0x1e1523._0x3aba3e,_0x1e1523._0x33fc12)]??[]){_0x242b0c=await _0x2a3763(_0x242b0c);}return _0x242b0c;}var RoutedModel=class{[_0x38c793(0x51c,0x4a9,0x4ac,0x4e2)];[_0x2b6123(0x1e9,0x1b0,0x26f,0x312)];[_0x38c793(0x498,0x3f2,0x499,0x524)];['apiKey'];[_0x2b6123(0x37a,0x356,0x399,0x463)];['fetchImpl'];[_0x38c793(0x32f,0x2e4,0x36e,0x3b7)];['requestMutators'];[_0x2b6123(0x1ef,0x262,0x27d,0x1dc)];[_0x2b6123(0x360,0x314,0x3b4,0x458)];[_0x2b6123(0x3a6,0x36d,0x3ab,0x3a6)];[_0x2b6123(0x345,0x319,0x2fb,0x3a5)]=new Map();constructor(_0x4284b0){const _0x1f43d6={_0x2238d:0x471,_0x54ac0c:0x417,_0x5ee0ec:0x3f8,_0xc11dd6:0x3f2,_0x38f177:0x425,_0x525a93:0x314,_0x2d47b2:0x200,_0x607f35:0x45e,_0x1ac183:0x442,_0x2fddcf:0x43b,_0x56f231:0x38e,_0x5b8c4e:0x48e,_0x1f9478:0x544,_0x1cbfdf:0x4fc,_0x2a203e:0x2ab,_0x2c3bab:0x452,_0x5952bb:0x3ad,_0x533bcc:0x4c2,_0x18dd2e:0x210,_0xaa497a:0x1c0,_0x43f198:0xf1,_0xb866c1:0x123,_0x1e75a8:0x40b,_0x340d9c:0x4bb,_0x5485e8:0x482,_0xcf7f6f:0x385,_0x37472b:0x360,_0x4602cc:0x2b6,_0x9f7141:0x331,_0x3fe097:0x3cf,_0x2b0011:0x130,_0x13cffa:0x189,_0x11ad19:0x9f,_0x175280:0x267,_0x5dcedc:0x343,_0x92257c:0x3a0,_0x5e6619:0x4a0,_0x509339:0x47a,_0x514980:0x25e,_0x1f6897:0x3f0,_0x3285b0:0x3ee},_0x2f4853={_0x17e8c9:0x3d,_0x22898e:0x5f},_0x3eaf1e={_0x33e9a7:0x111,_0x5022db:0xf5,_0x1b73e4:0xd};this['model']=_0x4284b0[_0x5e0b74(_0x1f43d6._0x2238d,0x513,_0x1f43d6._0x54ac0c,_0x1f43d6._0x5ee0ec)],this[_0x5e0b74(0x364,_0x1f43d6._0xc11dd6,0x3ee,_0x1f43d6._0x38f177)]=_0x4284b0[_0x5e0b74(0x364,0x3dd,0x2af,_0x1f43d6._0x525a93)]??0x4000,this[_0x5e7bea(0x21c,0x15f,_0x1f43d6._0x2d47b2,0x282)]=_0x4284b0[_0x5e0b74(_0x1f43d6._0x607f35,0x49a,0x3c1,_0x1f43d6._0x1ac183)]?structuredClone(_0x4284b0[_0x5e0b74(0x45e,0x3e4,0x4ae,_0x1f43d6._0x2fddcf)]):void 0x0,this[_0x5e0b74(0x3fc,0x364,_0x1f43d6._0x56f231,0x3ee)]=_0x4284b0['apiKey'],this['baseUrl']=_0x4284b0[_0x5e0b74(_0x1f43d6._0x5b8c4e,0x50b,_0x1f43d6._0x1f9478,_0x1f43d6._0x1cbfdf)],this[_0x5e0b74(0x35e,0x3e4,_0x1f43d6._0x2a203e,0x3b9)]=_0x4284b0[_0x5e0b74(_0x1f43d6._0x2c3bab,_0x1f43d6._0x5952bb,_0x1f43d6._0x533bcc,0x480)]??globalThis[_0x5e7bea(_0x1f43d6._0x18dd2e,_0x1f43d6._0xaa497a,0x2d5,0x146)],this['providerAdapter']=_0x4284b0[_0x5e7bea(_0x1f43d6._0x43f198,0x107,0xd6,_0x1f43d6._0xb866c1)],this[_0x5e0b74(_0x1f43d6._0x1e75a8,0x3a7,_0x1f43d6._0x340d9c,_0x1f43d6._0x5485e8)]=_0x4284b0[_0x5e0b74(_0x1f43d6._0x1e75a8,_0x1f43d6._0xcf7f6f,0x4ad,_0x1f43d6._0x37472b)]??[];function _0x5e0b74(_0x535fca,_0x401755,_0x33f63b,_0xb8402c){return _0x2b6123(_0xb8402c,_0x401755-_0x3eaf1e._0x33e9a7,_0x535fca-_0x3eaf1e._0x5022db,_0xb8402c-_0x3eaf1e._0x1b73e4);}this[_0x5e0b74(0x372,_0x1f43d6._0x4602cc,_0x1f43d6._0x9f7141,_0x1f43d6._0x3fe097)]=_0x4284b0[_0x5e7bea(_0x1f43d6._0x2b0011,_0x1f43d6._0x13cffa,0x14e,_0x1f43d6._0x11ad19)];function _0x5e7bea(_0x52b375,_0x55b01f,_0xdd10e3,_0x4e7295){return _0x2b6123(_0x55b01f,_0x55b01f-_0x2f4853._0x17e8c9,_0x52b375- -0x14d,_0x4e7295-_0x2f4853._0x22898e);}this[_0x5e7bea(_0x1f43d6._0x175280,0x2de,0x241,0x1d8)]=_0x4284b0['sessionManager']??(_0x4284b0[_0x5e0b74(_0x1f43d6._0x5dcedc,0x3d6,0x3fc,0x343)]?new ProviderSessionManager(_0x4284b0[_0x5e0b74(_0x1f43d6._0x5dcedc,0x2a6,0x3e3,_0x1f43d6._0x92257c)]):void 0x0),this[_0x5e0b74(_0x1f43d6._0x5e6619,_0x1f43d6._0x509339,0x3f1,0x4ee)]=_0x4284b0[_0x5e7bea(_0x1f43d6._0x514980,0x1b4,0x217,0x230)]??createDefaultWebSocketFactory();for(const _0x15d392 of _0x4284b0['surfaces']){this[_0x5e0b74(_0x1f43d6._0x1f6897,0x4a2,_0x1f43d6._0x3285b0,0x36c)]['set'](_0x15d392['id'],_0x15d392);}}['complete'](_0x2557d7,_0x48c980){const _0x52f91a={_0x2d1981:0x14d,_0x6d850d:0x79};function _0x5f1954(_0x5a5b95,_0x5c49d4,_0x2a4af5,_0x23057f){return _0x38c793(_0x2a4af5,_0x5c49d4-_0x52f91a._0x2d1981,_0x5a5b95-_0x52f91a._0x6d850d,_0x23057f-0x115);}return this[_0x5f1954(0x441,0x39b,0x3f7,0x484)](_0x2557d7,_0x48c980);}[_0x38c793(0x3fd,0x43b,0x479,0x4d4)](_0x240da8,_0x25ca27){const _0x146497={_0x1fa415:0x5df,_0x50ad4c:0x5ad,_0x5d6ae3:0x53b};function _0xe857d7(_0x3a17f7,_0x314e2d,_0x135e57,_0x4e6941){return _0x2b6123(_0x4e6941,_0x314e2d-0x175,_0x135e57-0x191,_0x4e6941-0xf5);}return this[_0xe857d7(_0x146497._0x1fa415,_0x146497._0x50ad4c,_0x146497._0x5d6ae3,0x5b0)](_0x240da8,_0x25ca27);}async['completeViaRouter'](_0x3dc059,_0x32b93b){const _0x2b8fef={_0x51b4ce:0x9e,_0x32941d:0x77,_0x1dcf5b:0x97,_0x5619a3:0x66,_0x95271b:0xd8,_0x511fa6:0x127,_0x4efbe5:0x33,_0x2bc98a:0x9c,_0x17ead0:0x148,_0x4640b1:0x2d},_0xea8b5={_0x5ae274:0x152,_0x1fde71:0x1d0,_0x7b822:0x16d},_0x1c0660={_0x2644c1:0x3ac,_0x56c197:0x176};function _0x1a91a1(_0x1f1d1a,_0x1f51e2,_0xab9140,_0x4cd6b1){return _0x2b6123(_0x1f1d1a,_0x1f51e2-0x1a0,_0x4cd6b1- -_0x1c0660._0x2644c1,_0x4cd6b1-_0x1c0660._0x56c197);}const _0x235b78=this[_0x1a91a1(0x16,-_0x2b8fef._0x51b4ce,0x4d,-_0x2b8fef._0x32941d)](_0x3dc059),_0x49f103=await this[_0x7ad778(0xad,_0x2b8fef._0x1dcf5b,_0x2b8fef._0x5619a3,_0x2b8fef._0x95271b)][_0x7ad778(0xdf,_0x2b8fef._0x511fa6,_0x2b8fef._0x4efbe5,_0x2b8fef._0x2bc98a)](_0x235b78,{'mode':_0x1a91a1(-0x43,-_0x2b8fef._0x17ead0,_0x2b8fef._0x4640b1,-_0x2b8fef._0x1dcf5b)});function _0x7ad778(_0x30cb9b,_0x283971,_0xb6cc7c,_0x3f3a4d){return _0x2b6123(_0x3f3a4d,_0x283971-_0xea8b5._0x5ae274,_0x30cb9b- -_0xea8b5._0x1fde71,_0x3f3a4d-_0xea8b5._0x7b822);}return this[_0x1a91a1(-0x10f,-0xaf,0x16,-0x5b)](_0x235b78,_0x49f103,_0x32b93b);}async*[_0x2b6123(0x3fb,0x36a,0x3aa,0x30b)](_0x1367e3,_0x20f9b0){const _0x42c4c7={_0x24c209:0x343,_0x307f9d:0xcc,_0x1c9e0e:0xdb,_0xd4332b:0x82,_0x45a1f4:0x234,_0x3efddc:0x225,_0x40ecc3:0x249,_0x24e3e8:0x2ce,_0x154a8b:0x1d6},_0x52a281={_0x1c9d9c:0x6c,_0x39a571:0x2ea,_0x212770:0x190},_0x425a21=this[_0x22ea9f(0x2ba,0x239,0x2b4,_0x42c4c7._0x24c209)](_0x1367e3);function _0x3217aa(_0x214472,_0x98f310,_0x5e70ed,_0x5ae0fb){return _0x2b6123(_0x5e70ed,_0x98f310-_0x52a281._0x1c9d9c,_0x5ae0fb- -_0x52a281._0x39a571,_0x5ae0fb-_0x52a281._0x212770);}function _0x22ea9f(_0xbb8f70,_0x329cf9,_0x4a9d47,_0x3ea1bf){return _0x2b6123(_0x3ea1bf,_0x329cf9-0xea,_0xbb8f70- -0x7b,_0x3ea1bf-0x5d);}const _0x29f5de=await this[_0x3217aa(-_0x42c4c7._0x307f9d,-_0x42c4c7._0x1c9e0e,-_0x42c4c7._0xd4332b,-0x6d)][_0x22ea9f(_0x42c4c7._0x45a1f4,_0x42c4c7._0x3efddc,_0x42c4c7._0x40ecc3,0x1a3)](_0x425a21,{'mode':_0x22ea9f(_0x42c4c7._0x24e3e8,0x28d,0x30e,0x32e)});yield*this[_0x22ea9f(_0x42c4c7._0x154a8b,0x18d,0x23a,0x197)](_0x425a21,_0x29f5de,_0x20f9b0);}async['completeViaSurface'](_0x45b43e,_0x3ca22b,_0x552583){const _0x1f6a80={_0x40f8f6:0x132,_0x18a6b8:0x204,_0x33cf12:0x135,_0x35aee8:0x185,_0x5d2495:0x7d,_0x453ab2:0x246,_0x2fa936:0x204,_0x48a730:0x1dc,_0x3ee904:0x155,_0x1e94b3:0xd4,_0x3c2e24:0x176,_0x62f61b:0x1a7,_0x4652da:0x189,_0x163a80:0x1ed,_0x257115:0x14e,_0x14acad:0xe9,_0x4f012d:0xb,_0x23fbe6:0x64,_0x16fee9:0x17a,_0x3a360b:0x183,_0x88b211:0x1d4,_0x2b87e7:0x1bf,_0x2a6766:0x169,_0x354911:0x1c2,_0x375f1f:0x1ac,_0x310a51:0x9c,_0x1b8ecb:0x1f3,_0x1d32c5:0x16d,_0x544b3c:0xbe,_0x514dfa:0x218,_0x23067e:0x22f,_0xe18477:0x1eb,_0x261e8e:0x1e3},_0x188590={_0x57f49f:0x12d,_0x3a58a9:0x45d,_0x1f917c:0xaf},_0x45a8c9={_0x54a9a6:0x14f,_0x5b1793:0x140};function _0x31c880(_0x30efb4,_0x2171dc,_0x1c7060,_0x1bacc3){return _0x38c793(_0x2171dc,_0x2171dc-_0x45a8c9._0x54a9a6,_0x30efb4- -0x2b4,_0x1bacc3-_0x45a8c9._0x5b1793);}function _0x547b16(_0x3c83ae,_0x194b46,_0x39a2a3,_0x1b132a){return _0x2b6123(_0x1b132a,_0x194b46-_0x188590._0x57f49f,_0x39a2a3- -_0x188590._0x3a58a9,_0x1b132a-_0x188590._0x1f917c);}const _0x34ff21=this[_0x31c880(0x1b1,_0x1f6a80._0x40f8f6,_0x1f6a80._0x18a6b8,0x11e)](_0x45b43e),_0x16fffb=this['getSurface'](_0x3ca22b);if(_0x16fffb[_0x31c880(_0x1f6a80._0x33cf12,0x19b,_0x1f6a80._0x35aee8,_0x1f6a80._0x5d2495)]===_0x547b16(-_0x1f6a80._0x453ab2,-0x2cc,-_0x1f6a80._0x2fa936,-_0x1f6a80._0x48a730)){const _0x2f622d=await this['sendHttpSurfaceRequest'](_0x34ff21,_0x16fffb,![],_0x552583?.[_0x31c880(_0x1f6a80._0x3ee904,0x143,_0x1f6a80._0x1e94b3,_0x1f6a80._0x3c2e24)]);if(!_0x2f622d['ok'])throw await this[_0x547b16(-_0x1f6a80._0x62f61b,-_0x1f6a80._0x4652da,-0x105,-0x189)](_0x2f622d);if(!_0x16fffb[_0x31c880(0x1e7,_0x1f6a80._0x163a80,0x178,0x11e)])throw new Error(_0x547b16(-_0x1f6a80._0x257115,-0xd,-0xc1,-0x39)+_0x3ca22b+_0x547b16(-_0x1f6a80._0x14acad,_0x1f6a80._0x4f012d,-0xb7,-0x14a));return _0x16fffb[_0x547b16(-0x44,-0xdf,-0xf2,-_0x1f6a80._0x23fbe6)](await _0x2f622d[_0x547b16(-_0x1f6a80._0x16fee9,-_0x1f6a80._0x3a360b,-_0x1f6a80._0x88b211,-0x15b)](),_0x34ff21);}let _0x15ebce;for await(const _0x30a447 of this[_0x547b16(-_0x1f6a80._0x2b87e7,-_0x1f6a80._0x2a6766,-0x20c,-_0x1f6a80._0x354911)](_0x34ff21,_0x3ca22b,_0x552583)){_0x30a447[_0x31c880(0x13b,_0x1f6a80._0x375f1f,_0x1f6a80._0x310a51,_0x1f6a80._0x1b8ecb)]===_0x31c880(_0x1f6a80._0x1d32c5,0x1a3,_0x1f6a80._0x544b3c,0x233)&&(_0x15ebce=_0x30a447['response']);}if(!_0x15ebce)throw new Error(_0x31c880(_0x1f6a80._0x514dfa,_0x1f6a80._0x23067e,0x162,0x24e)+_0x3ca22b+_0x31c880(_0x1f6a80._0xe18477,0x270,_0x1f6a80._0x261e8e,0x1eb));return _0x15ebce;}async*[_0x2b6123(0x1c6,0x286,0x251,0x288)](_0x30b49e,_0x1686d8,_0x264f71){const _0x1f9288={_0x14a003:0x28,_0x558bb4:0x25,_0x20db06:0x1b0,_0x5555ba:0xc0,_0x4e583c:0xeb,_0x24c962:0xdd,_0x4aa98f:0x148,_0x4fe27d:0x11e,_0x1ae7ea:0x139,_0x4ca8c5:0x18b,_0x30c69a:0x1f7,_0x43d560:0x69,_0x38e714:0x11b,_0xa3d149:0xcf,_0x45f978:0x128,_0x406307:0x160,_0x1b5381:0xa1,_0xe53e25:0x172,_0x41f701:0xbe,_0x135c6e:0x67,_0xad1b1e:0xb7},_0x2d24bc={_0x37c918:0x4c6,_0x3f33f2:0x1c1},_0x4bca05={_0xddb3b7:0x114};function _0x342a67(_0x32418d,_0x3aa56a,_0x2aaf54,_0x958fe3){return _0x38c793(_0x32418d,_0x3aa56a-_0x4bca05._0xddb3b7,_0x958fe3- -0x2c1,_0x958fe3-0x168);}const _0x10014f=this[_0x1be058(-_0x1f9288._0x14a003,0x53,-_0x1f9288._0x558bb4,-0x61)](_0x30b49e);function _0x1be058(_0x3bb915,_0x4cfe12,_0x36b702,_0x12d0d2){return _0x38c793(_0x3bb915,_0x4cfe12-0x7e,_0x12d0d2- -_0x2d24bc._0x37c918,_0x12d0d2-_0x2d24bc._0x3f33f2);}const _0x5dfddb=this[_0x342a67(0x27d,_0x1f9288._0x20db06,0x279,0x202)](_0x1686d8);if(_0x5dfddb[_0x1be058(-_0x1f9288._0x5555ba,-0x118,-_0x1f9288._0x4e583c,-_0x1f9288._0x24c962)]===_0x342a67(_0x1f9288._0x4aa98f,_0x1f9288._0x4fe27d,_0x1f9288._0x1ae7ea,0xc8)){yield{'type':_0x342a67(_0x1f9288._0x4ca8c5,0xfc,_0x1f9288._0x30c69a,0x160),'response':await this[_0x1be058(_0x1f9288._0x43d560,0x2a,0x2e,-0x45)](_0x10014f,_0x1686d8,_0x264f71)};return;}if(_0x5dfddb[_0x342a67(0xa4,_0x1f9288._0x38e714,_0x1f9288._0xa3d149,_0x1f9288._0x45f978)]===_0x342a67(0x110,0x64,_0x1f9288._0x406307,_0x1f9288._0x1b5381)){yield*this[_0x342a67(_0x1f9288._0xe53e25,0x250,0x1a5,0x1ef)](_0x10014f,_0x5dfddb,_0x264f71?.[_0x342a67(0x1c7,_0x1f9288._0x41f701,_0x1f9288._0x20db06,0x148)]);return;}yield*this[_0x1be058(0x29,0x62,_0x1f9288._0x135c6e,-_0x1f9288._0x558bb4)](_0x10014f,_0x5dfddb,_0x264f71?.[_0x1be058(-_0x1f9288._0xad1b1e,-0x130,-0x1f,-0xbd)]);}async[_0x38c793(0x36b,0x3b0,0x40d,0x4c7)](_0x2c3cc8){const _0xf210b3={_0xf4b146:0x3bf,_0x3ca674:0x4fa,_0x18c904:0x1c2,_0x47d154:0x227,_0x2b4715:0x30f},_0x11c3ae={_0x581b70:0x4a9,_0x5f5dde:0x49b,_0x38a36c:0x390,_0x4b49b8:0x3fd,_0x517cbe:0x39c,_0x446a76:0x394,_0xc460fe:0xfb,_0x2cc7a2:0x111,_0x134593:0xd6,_0x1bd035:0xb9,_0x5c38b8:0xde,_0x5ab02e:0x1a7,_0x54f293:0x1a1,_0x20bee8:0x196,_0x42973a:0x1c2,_0x2c421e:0x151,_0x31e18c:0x2d3,_0x282b35:0x242,_0x2e324c:0x279,_0x4b0140:0x205,_0x2bf8c2:0x440,_0x4cdbc7:0x468,_0x2af937:0x353,_0x4ff975:0x31b,_0x1b436b:0x493,_0x541103:0x489,_0x161bd7:0xb7,_0x2cb2c0:0x6a,_0x520f90:0x101,_0x5f1f23:0x153,_0x357269:0x1e2},_0x57e024={_0x51be6b:0x91,_0xaaa869:0x23c,_0x4005c0:0xbd};function _0x24a7be(_0x294a46,_0x3c8909,_0x3275e3,_0x4b7d48){return _0x2b6123(_0x4b7d48,_0x3c8909-_0x57e024._0x51be6b,_0x3275e3- -_0x57e024._0xaaa869,_0x4b7d48-_0x57e024._0x4005c0);}const _0x512b29=async()=>{const _0x42567d=this[_0x5b5674(0x418,0x3f1,_0x11c3ae._0x581b70,0x483)]?await this[_0x5b5674(_0x11c3ae._0x5f5dde,0x3d6,0x483,0x483)]['resolve'](_0x2c3cc8[_0x5b5674(0x388,_0x11c3ae._0x38a36c,_0x11c3ae._0x4b49b8,0x3a8)]):void 0x0,_0x2f2345=this[_0x5b5674(_0x11c3ae._0x517cbe,0x2ac,0x2db,0x30d)]['resolveCredential'](this['apiKey'],_0x42567d);if(!_0x2f2345)throw this[_0x5b5674(0x458,0x347,0x2d3,_0x11c3ae._0x446a76)]();const _0x12c64f=await this[_0x45a066(0xdf,_0x11c3ae._0xc460fe,_0x11c3ae._0x2cc7a2,_0x11c3ae._0x134593)]({'body':_0x2c3cc8[_0x45a066(_0x11c3ae._0x1bd035,0x8f,-0xc,_0x11c3ae._0x5c38b8)],'credential':_0x2f2345,'session':_0x42567d,'stream':![]},{'accept':_0x2c3cc8[_0x45a066(0x19a,0x1fd,_0x11c3ae._0x5ab02e,_0x11c3ae._0x54f293)]??'application/json','includeContentType':_0x2c3cc8[_0x5b5674(0x3d4,_0x11c3ae._0x517cbe,0x411,0x3c9)]===_0x45a066(_0x11c3ae._0x20bee8,0x246,_0x11c3ae._0x42973a,_0x11c3ae._0x2c421e)});function _0x5b5674(_0x3b43d2,_0x5411e3,_0x5945b7,_0x397e0e){return _0x25f1(_0x397e0e-0x1b8,_0x3b43d2);}function _0x45a066(_0x5a2103,_0x11a151,_0x23d839,_0x4dcb02){return _0x25f1(_0x5a2103- -0x9d,_0x23d839);}return this[_0x5b5674(0x292,0x3ca,_0x11c3ae._0x31e18c,0x338)](''+this[_0x5b5674(0x390,_0x11c3ae._0x282b35,_0x11c3ae._0x2e324c,0x30d)][_0x45a066(_0x11c3ae._0x4b0140,0x1e4,0x171,0x27b)](this[_0x5b5674(0x469,0x418,_0x11c3ae._0x2bf8c2,_0x11c3ae._0x4cdbc7)],_0x42567d)+_0x2c3cc8[_0x5b5674(_0x11c3ae._0x2af937,0x2be,0x344,_0x11c3ae._0x4ff975)],{'method':_0x2c3cc8[_0x5b5674(0x370,_0x11c3ae._0x1b436b,_0x11c3ae._0x541103,0x3c9)],'headers':_0x12c64f,..._0x2c3cc8['body']!==void 0x0?{'body':JSON[_0x45a066(_0x11c3ae._0x161bd7,0x16,0x173,_0x11c3ae._0x2cb2c0)](_0x2c3cc8[_0x45a066(_0x11c3ae._0x1bd035,0xf7,_0x11c3ae._0x520f90,0x11c)])}:{},'signal':_0x2c3cc8[_0x45a066(_0x11c3ae._0x5f1f23,0x1cf,_0x11c3ae._0x357269,0xc6)]});},_0x9ef7ff=await _0x512b29();if(_0x9ef7ff[_0x134fbf(_0xf210b3._0xf4b146,0x339,0x370,0x31c)]!==0x191||!this[_0x134fbf(0x51b,_0xf210b3._0x3ca674,0x480,0x3ee)])return _0x9ef7ff;this[_0x24a7be(_0xf210b3._0x18c904,_0xf210b3._0x47d154,0x178,0x243)][_0x134fbf(0x38d,_0xf210b3._0x2b4715,0x362,0x41e)]();function _0x134fbf(_0x4ab0fb,_0x52694b,_0x142075,_0x3fed2c){return _0x2b6123(_0x4ab0fb,_0x52694b-0x145,_0x142075-0xcc,_0x3fed2c-0x108);}return _0x512b29();}['createMissingCredentialError'](){const _0x126407={_0x30ca8b:0x86,_0x5683fa:0x33,_0x42837a:0xba},_0x157f9f={_0x566475:0x5ce},_0x248f97={_0x2070d1:0xa7};function _0x4dd26b(_0xbf0f28,_0x3a5411,_0x2183f7,_0x18e77f){return _0x2b6123(_0x3a5411,_0x3a5411-_0x248f97._0x2070d1,_0x2183f7- -0x1e9,_0x18e77f-0x4e);}function _0x2a718c(_0x18d422,_0x591011,_0x4edc3d,_0x1a4c3b){return _0x38c793(_0x1a4c3b,_0x591011-0x3a,_0x4edc3d- -_0x157f9f._0x566475,_0x1a4c3b-0x1a2);}return this[_0x4dd26b(_0x126407._0x30ca8b,-_0x126407._0x5683fa,0x55,_0x126407._0x42837a)][_0x4dd26b(0x16c,0x52,0xdc,0x12d)]();}async[_0x38c793(0x40b,0x322,0x395,0x315)](_0x588fee,_0x40d391){const _0x441b78={_0xa30260:0x23e,_0x1188d5:0xb5,_0x257d4a:0x102},_0x474655={_0x7b87a7:0x148,_0x2c3e1e:0xec};function _0x57cac4(_0x323bb3,_0x3e7a16,_0x2b2cfa,_0x466f41){return _0x38c793(_0x3e7a16,_0x3e7a16-0x192,_0x2b2cfa- -0x2e0,_0x466f41-0x157);}function _0x42c7c4(_0x297b71,_0x5ee099,_0x20d4d9,_0x26d651){return _0x38c793(_0x297b71,_0x5ee099-_0x474655._0x7b87a7,_0x5ee099- -0xf1,_0x26d651-_0x474655._0x2c3e1e);}return await this[_0x42c7c4(0x327,0x27d,_0x441b78._0xa30260,0x2e0)][_0x57cac4(0xcb,0x66,_0x441b78._0x1188d5,_0x441b78._0x257d4a)](_0x588fee,_0x40d391);}[_0x2b6123(0x215,0x1da,0x287,0x1d0)](_0x4db71a){const _0xc46189={_0xaaa3f7:0x160,_0x1182be:0x16e,_0x205661:0xf7},_0x32ae70={_0x2c9ebb:0x163,_0x55be8d:0x4ae},_0x42c285={_0x4839fb:0x331};function _0x5cb309(_0x11a0ca,_0x4d6b4f,_0x521c0d,_0x151cd5){return _0x2b6123(_0x521c0d,_0x4d6b4f-0x70,_0x4d6b4f- -_0x42c285._0x4839fb,_0x151cd5-0x193);}function _0x28f5e5(_0x41c651,_0xf0d8bd,_0x495739,_0x3c598c){return _0x38c793(_0x495739,_0xf0d8bd-_0x32ae70._0x2c9ebb,_0x3c598c- -_0x32ae70._0x55be8d,_0x3c598c-0x9d);}return this[_0x28f5e5(-_0xc46189._0xaaa3f7,-_0xc46189._0x1182be,-0xb2,-0x140)][_0x28f5e5(-0xe8,-0xba,-0x14a,-_0xc46189._0x205661)](_0x4db71a);}async[_0x2b6123(0x30c,0x358,0x358,0x3a4)](_0x867dce){const _0x387ed4={_0x4b5652:0x8e},_0x375f5f={_0x17e28d:0x24f},_0x42bb6b={_0xcb3179:0x85};function _0x1fd827(_0x2d3f9d,_0x53de3c,_0x2a374c,_0x5401f8){return _0x2b6123(_0x53de3c,_0x53de3c-0x39,_0x2a374c- -0x4c7,_0x5401f8-_0x42bb6b._0xcb3179);}function _0x2ba130(_0x1da873,_0x22944b,_0x31946b,_0x4013b5){return _0x2b6123(_0x22944b,_0x22944b-0xf3,_0x31946b- -_0x375f5f._0x17e28d,_0x4013b5-0x1d0);}return await this[_0x2ba130(-0xb0,-0x89,-0x11,0x61)][_0x2ba130(_0x387ed4._0x4b5652,0x194,0x109,0x6a)](_0x867dce);}[_0x2b6123(0x303,0x38b,0x393,0x437)](_0x312189){const _0x3254cd={_0x235ca2:0x25e,_0x5b2561:0x2fa},_0x59a3ad={_0x541fdb:0x162,_0x21f4b5:0x14c},_0x2d28e8={_0x217cf2:0x271,_0x3f3170:0x10b};function _0x1c3509(_0x470bec,_0x48ead0,_0x13445f,_0x4bb00e){return _0x2b6123(_0x4bb00e,_0x48ead0-0x112,_0x13445f-_0x2d28e8._0x217cf2,_0x4bb00e-_0x2d28e8._0x3f3170);}function _0x28c35d(_0x26f3fc,_0x4ea732,_0xbc343f,_0x9e6e0b){return _0x38c793(_0x26f3fc,_0x4ea732-_0x59a3ad._0x541fdb,_0xbc343f- -0xba,_0x9e6e0b-_0x59a3ad._0x21f4b5);}const _0x2a980e=this[_0x28c35d(0x2b1,0x2be,0x371,0x2bb)][_0x28c35d(0x2ee,_0x3254cd._0x235ca2,_0x3254cd._0x5b2561,0x2e5)](_0x312189);if(!_0x2a980e)throw new Error('Unknown\x20model\x20surface:\x20'+_0x312189);return _0x2a980e;}async[_0x38c793(0x2eb,0x341,0x373,0x2fe)](_0x297b36,_0x346993){const _0x31d684={_0x16ead1:0x5fa,_0x532edf:0x5ea,_0x492a13:0x56a,_0x3cc3b6:0x522,_0x37b306:0x4e3,_0x1841a5:0x5da,_0xf8be54:0x597,_0x4002bd:0x59c,_0x2b6ec6:0x5be,_0x538423:0x5eb,_0x86bdbc:0x54a,_0x78b328:0x55d,_0x462782:0x3f7,_0x888ab6:0x393,_0x2a85c1:0x430,_0x50a7ed:0x3f6,_0x1b687f:0x5a9,_0xc3d43a:0x311,_0x1af92a:0x3e5,_0x2f6b2e:0x462,_0xce993:0x3f7},_0x53a5fe={_0x58afc5:0x190},_0x461829={_0x2a7c64:0x177},_0x46631f=toModelRequest(_0x297b36),_0x370397=await prepareProviderRequest(_0x46631f,{'sessionManager':this['sessionManager'],'requestMutators':this[_0xc83df6(0x583,_0x31d684._0x16ead1,0x55a,_0x31d684._0x532edf)],'signal':_0x346993}),_0x1f3d76=toChatRequest(_0x370397['request']);function _0xc83df6(_0x2ada3f,_0x1807b5,_0x4bf656,_0xde74d){return _0x38c793(_0xde74d,_0x1807b5-0x1bb,_0x1807b5-0x1b4,_0xde74d-_0x461829._0x2a7c64);}const _0x47773c=this[_0xc83df6(_0x31d684._0x492a13,_0x31d684._0x3cc3b6,0x499,_0x31d684._0x37b306)][_0xc83df6(_0x31d684._0x1841a5,_0x31d684._0xf8be54,0x4d2,_0x31d684._0x4002bd)](this[_0xc83df6(_0x31d684._0x2b6ec6,_0x31d684._0x538423,_0x31d684._0x86bdbc,_0x31d684._0x78b328)],_0x370397[_0x3b0bf4(_0x31d684._0x462782,_0x31d684._0x888ab6,_0x31d684._0x2a85c1,_0x31d684._0x50a7ed)]);if(!_0x47773c)throw this[_0xc83df6(0x660,_0x31d684._0x1b687f,0x502,0x61c)]();function _0x3b0bf4(_0x2e6052,_0x38c3cb,_0x16693f,_0x107d4b){return _0x2b6123(_0x16693f,_0x38c3cb-_0x53a5fe._0x58afc5,_0x2e6052-0x6b,_0x107d4b-0x1c0);}return{'baseUrl':this[_0x3b0bf4(0x2a9,0x346,0x2b7,_0x31d684._0xc3d43a)][_0x3b0bf4(_0x31d684._0x50a7ed,0x3e0,0x447,_0x31d684._0x1af92a)](this['baseUrl'],_0x370397[_0x3b0bf4(0x3f7,_0x31d684._0x2f6b2e,0x413,0x374)]),'credential':_0x47773c,'request':_0x1f3d76,'session':_0x370397[_0x3b0bf4(_0x31d684._0xce993,0x3a1,0x34e,0x3c0)]};}['applyModelDefaults'](_0x18b2d1){const _0x757c02={_0x5e8946:0x2cf,_0x31bc08:0x288,_0x33b4d2:0x2ad,_0x183ba7:0x212},_0x180bd5={_0x2d868d:0x75,_0x24b7b3:0x439,_0x30f2b9:0x88},_0x536bea={_0x5791cc:0x63};function _0x56c740(_0x3bac85,_0x479714,_0x15a10e,_0x22bc67){return _0x2b6123(_0x22bc67,_0x479714-_0x536bea._0x5791cc,_0x15a10e- -0xe1,_0x22bc67-0x57);}function _0x376725(_0x541de4,_0x185e6c,_0x411ad9,_0x3f9e38){return _0x2b6123(_0x411ad9,_0x185e6c-_0x180bd5._0x2d868d,_0x3f9e38- -_0x180bd5._0x24b7b3,_0x3f9e38-_0x180bd5._0x30f2b9);}return{...structuredClone(_0x18b2d1),..._0x18b2d1['reasoning']===void 0x0&&this[_0x56c740(_0x757c02._0x5e8946,0x258,_0x757c02._0x31bc08,_0x757c02._0x33b4d2)]!==void 0x0?{'reasoning':structuredClone(this[_0x56c740(0x30b,0x2ac,0x288,_0x757c02._0x183ba7)])}:{}};}async[_0x2b6123(0x27d,0x326,0x329,0x26e)](_0x4dcf8e,_0x154638,_0x2bf90a,_0x391731){const _0x38e6c8={_0x110df7:0x11f,_0x177cb5:0xef,_0x1bb070:0x42d,_0xcc6704:0x489,_0x3c7547:0x48d,_0x4314e5:0x1b8,_0x219805:0x30f,_0xd617a1:0x2ec},_0x54e684={_0x23dc47:0xe3},_0x313d9e={_0x504c93:0x56,_0x2601d9:0x38,_0x513a47:0x6a,_0x37d69a:0x153,_0x50ca8a:0x207,_0x4edf02:0x20a,_0x43a7e2:0x21b,_0x27bddf:0x1d9,_0x4248ca:0x27c,_0x2f4f84:0x125,_0x547017:0x18,_0x152255:0x2e,_0x231a23:0x14d,_0x901abc:0x144,_0x569950:0x263,_0x21ea7c:0x1fb,_0x5f4660:0xaa,_0x485a6a:0x1eb,_0x3a3149:0x94,_0x54f2f1:0x12f,_0x48679f:0xe,_0x324d71:0x349,_0x5ddd8b:0x1d7,_0x373d69:0x289,_0x17bbef:0xf4,_0x40651e:0xd5,_0x543201:0x28c,_0x494290:0x254,_0x13310d:0x2f4,_0x30fddd:0x13f,_0x3afcca:0x162,_0x444105:0x166,_0x55fb95:0x202,_0x2d7e64:0x207,_0xa854c5:0x33d,_0x3cf5c9:0x2de,_0x55f41b:0x2db,_0x4d17f3:0x52,_0x4c9f9e:0x42,_0xa7eb31:0xdd},_0x46a2fa={_0x10ac22:0xca};function _0x505c03(_0x248e7b,_0xb1c76a,_0x30b0b9,_0xa4ddd3){return _0x2b6123(_0xa4ddd3,_0xb1c76a-0x181,_0xb1c76a-0x79,_0xa4ddd3-_0x46a2fa._0x10ac22);}const _0x502d6f=async()=>{const _0x35926e=await this[_0x496438(_0x313d9e._0x504c93,_0x313d9e._0x2601d9,0x107,-_0x313d9e._0x513a47)](_0x4dcf8e,_0x391731),_0x5f0446=_0x154638[_0x32df09(-_0x313d9e._0x37d69a,-0xba,-0x152,-_0x313d9e._0x50ca8a)](_0x35926e[_0x32df09(-0x187,-_0x313d9e._0x4edf02,-_0x313d9e._0x43a7e2,-_0x313d9e._0x27bddf)]);if(!_0x5f0446[_0x32df09(-0x221,-0x1fe,-_0x313d9e._0x4248ca,-0x310)])throw new Error(_0x496438(0x1af,0x205,_0x313d9e._0x2f4f84,0x189)+_0x154638['id']+_0x496438(0x9b,_0x313d9e._0x547017,0xc,_0x313d9e._0x152255));function _0x496438(_0x580c85,_0x54c564,_0x92e547,_0x577075){return _0x25f1(_0x580c85- -0x104,_0x92e547);}const _0x2c99eb=await this['createHeaders']({'request':_0x35926e['request'],'body':_0x5f0446['body'],'credential':_0x35926e[_0x32df09(-0x145,-_0x313d9e._0x231a23,-_0x313d9e._0x901abc,-0x1c9)],'session':_0x35926e[_0x496438(0x19f,_0x313d9e._0x569950,0xdd,0x12a)],'stream':_0x2bf90a},{'accept':_0x5f0446[_0x32df09(-0x269,-0x197,-0x1a8,-_0x313d9e._0x21ea7c)]??(_0x2bf90a?_0x496438(0x15f,0x1b6,_0x313d9e._0x5f4660,_0x313d9e._0x485a6a):_0x496438(_0x313d9e._0x3a3149,_0x313d9e._0x54f2f1,0x72,_0x313d9e._0x48679f)),'includeContentType':_0x5f0446[_0x32df09(-_0x313d9e._0x324d71,-_0x313d9e._0x5ddd8b,-_0x313d9e._0x373d69,-0x1ef)]!==void 0x0});function _0x32df09(_0x2b037c,_0x3e67c9,_0x1e214f,_0x1b0cc7){return _0x25f1(_0x1e214f- -0x3df,_0x3e67c9);}for(const [_0x2aa417,_0x349fd1]of Object[_0x496438(_0x313d9e._0x17bbef,_0x313d9e._0x40651e,0x85,0x60)](_0x5f0446[_0x32df09(-_0x313d9e._0x543201,-0x1ec,-_0x313d9e._0x494290,-0x242)]??{})){_0x2c99eb['set'](_0x2aa417,_0x349fd1);}return this[_0x32df09(-_0x313d9e._0x13310d,-0x1a7,-0x25f,-0x283)](''+_0x35926e[_0x32df09(-_0x313d9e._0x30fddd,-_0x313d9e._0x3afcca,-0x12f,-_0x313d9e._0x444105)]+_0x5f0446['path'],{'method':_0x32df09(-_0x313d9e._0x55fb95,-0x257,-0x1ac,-_0x313d9e._0x2d7e64),'headers':_0x2c99eb,..._0x5f0446[_0x32df09(-0x27f,-_0x313d9e._0xa854c5,-0x289,-0x238)]!==void 0x0?{'body':JSON[_0x32df09(-_0x313d9e._0x3cf5c9,-_0x313d9e._0x55f41b,-0x28b,-0x2e8)](_0x5f0446[_0x496438(_0x313d9e._0x4d17f3,-_0x313d9e._0x4c9f9e,_0x313d9e._0xa7eb31,0x0)])}:{},'signal':_0x391731});},_0xef568d=await _0x502d6f();if(_0xef568d[_0x51fc80(_0x38e6c8._0x110df7,_0x38e6c8._0x177cb5,0xa8,0x104)]!==0x191||!this[_0x505c03(0x38c,_0x38e6c8._0x1bb070,_0x38e6c8._0xcc6704,_0x38e6c8._0x3c7547)])return _0xef568d;function _0x51fc80(_0x2e0bd4,_0x36ec73,_0xd1878c,_0xc4ed34){return _0x38c793(_0x2e0bd4,_0x36ec73-_0x54e684._0x23dc47,_0xd1878c- -0x32c,_0xc4ed34-0x1c7);}return this[_0x51fc80(0x223,0x223,_0x38e6c8._0x4314e5,0x26a)][_0x505c03(0x37f,_0x38e6c8._0x219805,0x2e9,_0x38e6c8._0xd617a1)](),_0x502d6f();}async*[_0x2b6123(0x2ce,0x3a8,0x380,0x3d7)](_0x3c3690,_0xdc790f,_0x7a1ea1){const _0x1109ea={_0x27114e:0x16b,_0xe7612a:0xbf,_0x1ae754:0x144,_0x50ed78:0x13a,_0x452a1d:0xfd,_0x47a9c8:0x5b,_0x4e3196:0x31,_0x394480:0xe6,_0x15192b:0x38,_0x514255:0x1aa,_0x254d01:0x200,_0x26e8c1:0xdf,_0x1371b9:0xbb,_0x39eafc:0xe4,_0x255148:0xa9,_0x2ee6d:0x10e},_0x4f8c69={_0x1dcacb:0x1a},_0x95cb76={_0xe28fd:0x105,_0x1a1ec6:0x49c},_0x32b1eb=await this['sendHttpSurfaceRequest'](_0x3c3690,_0xdc790f,!![],_0x7a1ea1);function _0x42e3d9(_0x19b526,_0x3a8601,_0x5b0ade,_0x16d984){return _0x2b6123(_0x5b0ade,_0x3a8601-_0x95cb76._0xe28fd,_0x16d984- -_0x95cb76._0x1a1ec6,_0x16d984-0x28);}if(!_0x32b1eb['ok'])throw await this[_0x42e3d9(-0x1d3,-_0x1109ea._0x27114e,-_0x1109ea._0xe7612a,-_0x1109ea._0x1ae754)](_0x32b1eb);const _0x111a66=_0xdc790f[_0x5c4128(0xce,_0x1109ea._0x50ed78,0x17b,0xf0)]?.(_0x3c3690);if(!_0x111a66?.['consumeSseEvent'])throw new Error(_0x5c4128(0x18a,0x12d,_0x1109ea._0x452a1d,0xf2)+_0xdc790f['id']+_0x5c4128(_0x1109ea._0x47a9c8,-_0x1109ea._0x4e3196,_0x1109ea._0x394480,_0x1109ea._0x15192b));function _0x5c4128(_0x2672e2,_0x2abc97,_0x5530dd,_0x3bc47c){return _0x38c793(_0x3bc47c,_0x2abc97-_0x4f8c69._0x1dcacb,_0x2672e2- -0x342,_0x3bc47c-0x1a);}for await(const _0x3ffb56 of iterateSseEvents(_0x32b1eb,_0x7a1ea1)){yield*_0x111a66[_0x42e3d9(-0x182,-_0x1109ea._0x514255,-0x1a4,-_0x1109ea._0x254d01)](_0x3ffb56);}yield{'type':_0x5c4128(_0x1109ea._0x26e8c1,_0x1109ea._0x1371b9,0x28,0xd7),'response':_0x111a66[_0x42e3d9(-0x1d0,-_0x1109ea._0x39eafc,-_0x1109ea._0x255148,-_0x1109ea._0x2ee6d)]()};}async*['streamWebSocketSurface'](_0x1047d9,_0x2e6332,_0x113345){const _0x5d152e={_0x57f589:0x14,_0x310e34:0x92,_0x1d97b0:0x146,_0x1bd7c8:0x14a,_0x450094:0x110,_0x597f74:0x7d,_0x3c2c53:0xf2,_0xe256de:0x267,_0x46e1f3:0x2e8,_0x15984e:0x250,_0x2584f0:0x273,_0x34e4e3:0x14a,_0x54a14c:0x183,_0x37fb25:0x8a,_0x2f9407:0x17d,_0x1012d6:0x7c,_0x27245d:0x169,_0x3122cd:0xa0,_0xb42fa1:0x15b,_0x39385a:0x100,_0x539d70:0xb1,_0x7b49ec:0x111,_0x27f4ef:0x22,_0x5622fb:0x6c,_0x297c46:0x227,_0x2f3d4c:0x11b,_0x166137:0x18b,_0x2c1f67:0x35,_0x4fdf2a:0xf3,_0x4015b7:0xcb,_0x3e3c44:0xc9,_0x2bf3d6:0x121,_0x1cce94:0x1ab,_0x4eae08:0x184,_0x2983da:0x90,_0x3d0c8a:0x1df,_0x30796c:0x263,_0xa28855:0xc,_0x211e02:0x116,_0x1d6875:0x6e,_0x14d13c:0x44,_0x4bb54d:0x7e,_0x51e91c:0x4a,_0x40fa8c:0x202,_0x3d6222:0x247,_0x1ebf5d:0xe0,_0x22fdbf:0x151,_0x3b2408:0xf0,_0x3ac3fe:0xbe,_0x545aca:0x2b,_0x1406f8:0x1b5,_0x2655d5:0xb3,_0x4ce76a:0x8e,_0x4b0893:0xb1,_0x2bb58f:0xf3,_0x26c899:0x2c,_0x23856f:0x1b1,_0x32abb7:0x264,_0x1f95d4:0xde,_0x3bec79:0x217,_0x2a4809:0x3,_0x158906:0x55,_0x158df0:0xaa,_0x244b29:0x5e,_0xdd00e3:0x120,_0x4d6aaf:0x28,_0x33c6f0:0x167,_0x27201c:0x12f,_0x5936f5:0x15e,_0x131d46:0xbb,_0x32f9d0:0x1fc,_0x2762bc:0x2f3,_0x32e387:0x261,_0x520861:0x170,_0x354dc5:0x272,_0x3ac9c3:0x244,_0x4d758a:0x1ac,_0x16dd65:0x79,_0x4d99d8:0xe7,_0x118764:0xef},_0x53b691={_0xa06e0a:0x19a,_0x554206:0x230},_0x12a640=await this[_0x2342cd(0x13,-_0x5d152e._0x57f589,-_0x5d152e._0x310e34,0x3f)](_0x1047d9,_0x113345),_0x34f2ca=_0x2e6332[_0x2342cd(_0x5d152e._0x1d97b0,0x110,_0x5d152e._0x1bd7c8,_0x5d152e._0x450094)](_0x12a640[_0x2342cd(_0x5d152e._0x597f74,0x92,-0x3f,0x10d)]),_0x5255cd=_0x2e6332[_0x17948f(_0x5d152e._0x3c2c53,_0x5d152e._0xe256de,0x238,0x1b7)]?.(_0x1047d9);if(!_0x5255cd?.['consumeWebSocketEvent'])throw new Error(_0x17948f(_0x5d152e._0x46e1f3,_0x5d152e._0x15984e,0x266,_0x5d152e._0x2584f0)+_0x2e6332['id']+'\x20cannot\x20parse\x20WebSocket\x20events');const _0x2675c1=_0x34f2ca[_0x2342cd(_0x5d152e._0x34e4e3,_0x5d152e._0x54a14c,_0x5d152e._0x37fb25,_0x5d152e._0x2f9407)]??(_0x34f2ca[_0x17948f(0xfa,_0x5d152e._0x1012d6,0xea,0x123)]?(''+_0x12a640[_0x2342cd(_0x5d152e._0x27245d,_0x5d152e._0x3122cd,0x1c7,0x1c0)]+_0x34f2ca[_0x17948f(0x6d,_0x5d152e._0xb42fa1,0xdf,0x123)])[_0x2342cd(_0x5d152e._0x39385a,_0x5d152e._0x539d70,0x74,_0x5d152e._0x7b49ec)](/^http:/,_0x2342cd(_0x5d152e._0x27f4ef,0xc4,0x5f,_0x5d152e._0x5622fb))[_0x17948f(0x2af,0x20e,0x1dc,0x207)](/^https:/,_0x17948f(0x23a,0x15e,_0x5d152e._0x297c46,0x17e)):void 0x0);function _0x17948f(_0x256fa3,_0x1f605b,_0x509bb3,_0x242472){return _0x38c793(_0x509bb3,_0x1f605b-0x1eb,_0x242472- -0x259,_0x242472-0x199);}if(!_0x2675c1)throw new Error(_0x2342cd(0x16c,0x223,_0x5d152e._0x2f3d4c,_0x5d152e._0x166137)+_0x2e6332['id']+'\x20did\x20not\x20provide\x20a\x20WebSocket\x20URL\x20or\x20path');const _0x517a28=await this[_0x2342cd(_0x5d152e._0x2c1f67,_0x5d152e._0x4fdf2a,_0x5d152e._0x4015b7,_0x5d152e._0x3e3c44)]({'request':_0x12a640[_0x17948f(0x1d9,_0x5d152e._0x2bf3d6,_0x5d152e._0x1cce94,_0x5d152e._0x4eae08)],'body':_0x34f2ca[_0x17948f(_0x5d152e._0x2983da,0x142,0x160,0x14e)],'credential':_0x12a640['credential'],'session':_0x12a640[_0x17948f(0x1a5,_0x5d152e._0x3d0c8a,0x27b,_0x5d152e._0x30796c)],'stream':!![]},{'accept':_0x34f2ca['accept']??_0x2342cd(0x51,0xd1,_0x5d152e._0xa28855,-0x58),'includeContentType':![]});for(const [_0x4fc9c5,_0x29d5c7]of Object[_0x2342cd(0xb1,_0x5d152e._0x211e02,_0x5d152e._0x1d6875,0xad)](_0x34f2ca[_0x2342cd(_0x5d152e._0x14d13c,0x46,-_0x5d152e._0x4bb54d,_0x5d152e._0x51e91c)]??{})){_0x517a28[_0x17948f(0x22e,_0x5d152e._0x40fa8c,0x1fd,_0x5d152e._0x3d6222)](_0x4fc9c5,_0x29d5c7);}function _0x2342cd(_0x533024,_0xa0ee6c,_0x164730,_0x455d67){return _0x2b6123(_0x455d67,_0xa0ee6c-_0x53b691._0xa06e0a,_0x533024- -_0x53b691._0x554206,_0x455d67-0x170);}_0x517a28[_0x2342cd(_0x5d152e._0x1ebf5d,_0x5d152e._0xb42fa1,_0x5d152e._0x22fdbf,0x17)](_0x2342cd(_0x5d152e._0x3b2408,_0x5d152e._0x3ac3fe,_0x5d152e._0x545aca,0x7e));const _0x181c40=this['webSocketFactory']({'headers':Object[_0x2342cd(0x12b,_0x5d152e._0x1406f8,_0x5d152e._0x2655d5,_0x5d152e._0x4ce76a)](_0x517a28[_0x2342cd(_0x5d152e._0x4b0893,-0x15,_0x5d152e._0x2bb58f,_0x5d152e._0x26c899)]()),'url':_0x2675c1});try{throwIfAborted(_0x113345);_0x181c40['readyState']!==WebSocket[_0x17948f(_0x5d152e._0x23856f,_0x5d152e._0x32abb7,0x223,0x261)]&&await waitForWebSocketOpen(_0x181c40,_0x113345);throwIfAborted(_0x113345);_0x34f2ca['initialEvent']!==void 0x0&&_0x181c40['send'](JSON[_0x17948f(0x1d8,_0x5d152e._0x4eae08,_0x5d152e._0x1f95d4,0x114)](_0x34f2ca[_0x17948f(0x136,0x92,_0x5d152e._0x3bec79,0x14e)]));for await(const _0x216511 of iterateWebSocketMessages(_0x181c40,_0x113345)){yield*_0x5255cd[_0x2342cd(-_0x5d152e._0x2a4809,-_0x5d152e._0x158906,-_0x5d152e._0x158df0,-0xad)](_0x216511);if(_0x5255cd[_0x2342cd(_0x5d152e._0x244b29,-0x2c,_0x5d152e._0xdd00e3,-_0x5d152e._0x4d6aaf)]?.())break;}yield{'type':_0x17948f(_0x5d152e._0x33c6f0,_0x5d152e._0x27201c,0x263,0x1c8),'response':_0x5255cd[_0x2342cd(_0x5d152e._0x5936f5,_0x5d152e._0x131d46,0x104,0x171)]()};}finally{_0x181c40[_0x2342cd(0x84,-0x1d,0x64,-0x24)]===WebSocket[_0x17948f(_0x5d152e._0x32f9d0,_0x5d152e._0x2762bc,0x1a7,_0x5d152e._0x32e387)]&&_0x181c40[_0x17948f(_0x5d152e._0x520861,_0x5d152e._0x354dc5,_0x5d152e._0x3ac9c3,_0x5d152e._0x4d758a)](0x3e8,_0x113345?.['aborted']?'aborted':_0x2342cd(_0x5d152e._0x16dd65,0x144,_0x5d152e._0x4d99d8,_0x5d152e._0x118764));}}};async function createHttpError(_0x448db0){const _0x39f9e6={_0x1a4976:0x426,_0x4b9ef8:0x479,_0x46c42b:0x4ba,_0x5c9408:0x522,_0x358e5c:0x4e0,_0x11d1ac:0x469,_0x3d24d6:0x447,_0x592836:0x482,_0x3d5e55:0x363,_0x573338:0x40d},_0xc90ef2={_0x21f8c9:0x75,_0x1ad54b:0x174},_0x32dc1f=await _0x448db0[_0x1085c5(_0x39f9e6._0x1a4976,_0x39f9e6._0x4b9ef8,_0x39f9e6._0x46c42b,_0x39f9e6._0x5c9408)]();function _0x25ff55(_0xdfb45f,_0x50e9e3,_0x182aa6,_0x1d1d03){return _0x38c793(_0xdfb45f,_0x50e9e3-_0xc90ef2._0x21f8c9,_0x182aa6-0x1c,_0x1d1d03-_0xc90ef2._0x1ad54b);}const _0x1ebaed=_0x32dc1f['trim']()||_0x448db0[_0x25ff55(0x4f6,_0x39f9e6._0x358e5c,_0x39f9e6._0x11d1ac,_0x39f9e6._0x3d24d6)]||'Unknown\x20provider\x20error';function _0x1085c5(_0x53f6b8,_0x5681a6,_0x15195c,_0x1f7ba2){return _0x38c793(_0x53f6b8,_0x5681a6-0x11b,_0x15195c-0x78,_0x1f7ba2-0x11c);}return new Error(_0x25ff55(_0x39f9e6._0x592836,_0x39f9e6._0x3d5e55,_0x39f9e6._0x573338,0x3ad)+_0x448db0[_0x1085c5(0x3d5,0x39e,0x44c,0x485)]+':\x20'+_0x1ebaed);}var AnthropicProviderAdapter=class{['authScheme'];[_0x38c793(0x412,0x4bb,0x474,0x52b)];[_0x38c793(0x3f6,0x3be,0x487,0x4dd)];constructor(_0x1e3487){const _0x5ca8b5={_0x2839a2:0x269,_0x272a63:0x20f,_0x1600b2:0x1cc,_0x34fa7e:0x5b3,_0x3617e0:0x5b8,_0x14dba9:0x626,_0x55acc6:0xa8,_0x5d2f3e:0x16c,_0x7f4e33:0x1ae},_0x1cfb0d={_0x1853c1:0xb1,_0x5b8a0a:0xfe},_0x9b9856={_0x5804c6:0xe1};this[_0x1c34c5(_0x5ca8b5._0x2839a2,_0x5ca8b5._0x272a63,_0x5ca8b5._0x1600b2,0x18b)]=_0x1e3487[_0x1d5e6f(0x650,_0x5ca8b5._0x34fa7e,0x5fd,0x66f)];function _0x1c34c5(_0x216437,_0x21e94f,_0x2b326c,_0x1f0dc4){return _0x2b6123(_0x216437,_0x21e94f-_0x9b9856._0x5804c6,_0x2b326c- -0x1eb,_0x1f0dc4-0x19e);}function _0x1d5e6f(_0x464d4b,_0x1a16fb,_0x2df29b,_0x527921){return _0x2b6123(_0x1a16fb,_0x1a16fb-_0x1cfb0d._0x1853c1,_0x527921-0x2b8,_0x527921-_0x1cfb0d._0x5b8a0a);}this['headerResolver']=_0x1e3487[_0x1d5e6f(0x632,_0x5ca8b5._0x3617e0,_0x5ca8b5._0x14dba9,0x5fc)],this[_0x1c34c5(0xc8,_0x5ca8b5._0x55acc6,_0x5ca8b5._0x5d2f3e,_0x5ca8b5._0x7f4e33)]=_0x1e3487['protocolVersion'];}[_0x38c793(0x439,0x48a,0x3f5,0x400)](){const _0x58eb3f={_0x144f63:0x205,_0x2682ce:0x209};function _0x26826(_0x25b356,_0x55de83,_0x334fcd,_0x577c19){return _0x2b6123(_0x25b356,_0x55de83-0x1ef,_0x55de83- -0xf3,_0x577c19-0x13b);}return new Error(_0x26826(0x167,_0x58eb3f._0x144f63,0x1e2,_0x58eb3f._0x2682ce));}async[_0x38c793(0x402,0x420,0x395,0x2ff)](_0xfe70cd,_0x10af7d){const _0xe4a0b1={_0x330e1f:0x36e,_0x2fef9e:0x391,_0x5da239:0x3ba,_0x46d9e0:0xd8,_0x511bd3:0x33,_0xcaa43d:0x362,_0x1e5e23:0x31a,_0x261031:0x3fe,_0xdc8bb6:0x3a7,_0x4689fa:0x307,_0x435076:0xaa,_0x2b3f1c:0x14f,_0x3e574a:0x5a,_0x49b544:0x129,_0x546f50:0x22a,_0x39eadc:0x28d,_0xe3fa66:0x325,_0x58e0d6:0x38b,_0x38d123:0x2d4,_0x5738d8:0x2f7,_0x5ea53c:0x258,_0xdcbab1:0x24a,_0x3d816c:0x2fa,_0x2507cb:0x38c,_0x243c33:0x0,_0x9ceea2:0xb8,_0x33b51a:0x31a,_0x2567ec:0x339,_0x5aaeb9:0x379,_0x16068b:0x354,_0x19ad3a:0x2a0,_0x37ee84:0x2eb,_0x5312f6:0x326,_0x32a8c6:0x3,_0x18fa31:0xa,_0x1c50a2:0x197,_0x4dcd9a:0x2dd,_0x2640e5:0xc9,_0x2cf25e:0x45,_0x1e93b4:0x2b,_0x5068bd:0xc,_0x517806:0x41},_0x4d1059={_0xe8279a:0x154},_0x487c27={_0x199cbc:0x98,_0x1030c4:0x32b},_0x3a68a6=new Headers();_0x3a68a6['set']('accept',_0x10af7d[_0x4ad90a(0x255,0x2d5,_0xe4a0b1._0x330e1f,0x36c)]),_0x3a68a6[_0x4ad90a(_0xe4a0b1._0x2fef9e,0x325,0x2d9,_0xe4a0b1._0x5da239)](_0x4233e5(-0x73,-_0xe4a0b1._0x46d9e0,-0x79,_0xe4a0b1._0x511bd3),this[_0x4ad90a(0x2d2,0x30c,_0xe4a0b1._0xcaa43d,_0xe4a0b1._0x1e5e23)]);_0x10af7d[_0x4ad90a(_0xe4a0b1._0x261031,0x35a,0x362,_0xe4a0b1._0xdc8bb6)]!==![]&&_0x3a68a6['set'](_0x4ad90a(0x2c1,0x275,0x1e7,_0xe4a0b1._0x4689fa),_0x4233e5(-_0xe4a0b1._0x435076,-_0xe4a0b1._0x2b3f1c,-0xad,-0xa1));this[_0x4233e5(0x8c,_0xe4a0b1._0x3e574a,_0xe4a0b1._0x49b544,0xef)]===_0x4ad90a(_0xe4a0b1._0x546f50,0x2cf,_0xe4a0b1._0x39eadc,0x283)?_0x3a68a6[_0x4ad90a(0x3ce,_0xe4a0b1._0xe3fa66,_0xe4a0b1._0x58e0d6,0x333)](_0x4ad90a(_0xe4a0b1._0x38d123,0x359,0x2a5,_0xe4a0b1._0x5738d8),_0x4ad90a(_0xe4a0b1._0x5ea53c,_0xe4a0b1._0xdcbab1,0x302,_0xe4a0b1._0x3d816c)+_0xfe70cd[_0x4ad90a(0x298,0x339,0x35d,0x2f7)]['value']):_0x3a68a6[_0x4ad90a(_0xe4a0b1._0x2507cb,0x325,0x354,0x2ac)](_0x4233e5(_0xe4a0b1._0x243c33,-0x2c,-_0xe4a0b1._0x9ceea2,0xa3),_0xfe70cd[_0x4ad90a(_0xe4a0b1._0x33b51a,_0xe4a0b1._0x2567ec,_0xe4a0b1._0x5aaeb9,0x2c3)][_0x4ad90a(_0xe4a0b1._0x16068b,_0xe4a0b1._0x19ad3a,_0xe4a0b1._0x37ee84,_0xe4a0b1._0x5312f6)]);function _0x4233e5(_0x51fb36,_0x241175,_0x186e31,_0x45ae75){return _0x2b6123(_0x241175,_0x241175-_0x487c27._0x199cbc,_0x51fb36- -_0x487c27._0x1030c4,_0x45ae75-0xae);}function _0x4ad90a(_0x1ba5ca,_0xba0649,_0x381592,_0xb5dcb0){return _0x38c793(_0x381592,_0xba0649-_0x4d1059._0xe8279a,_0xba0649- -0x17b,_0xb5dcb0-0xf1);}const _0x2bd026=await this[_0x4233e5(0x19,-_0xe4a0b1._0x32a8c6,-0x77,_0xe4a0b1._0x18fa31)]?.({'body':_0xfe70cd[_0x4233e5(-0xec,-0x2f,-0x72,-0x75)],'credential':_0xfe70cd['credential'],'request':_0xfe70cd[_0x4ad90a(0x1d9,0x262,_0xe4a0b1._0x1c50a2,_0xe4a0b1._0x4dcd9a)],'session':_0xfe70cd['session'],'stream':_0xfe70cd[_0x4233e5(0x1e,-0x89,0xc1,_0xe4a0b1._0x2640e5)]});for(const [_0x3fa223,_0x568597]of Object['entries'](_0x2bd026??{})){_0x3a68a6[_0x4233e5(_0xe4a0b1._0x2cf25e,-_0xe4a0b1._0x1e93b4,-_0xe4a0b1._0x5068bd,-_0xe4a0b1._0x517806)](_0x3fa223,_0x568597);}return _0x3a68a6;}['mapApiError'](_0xcc4177){return _0xcc4177;}[_0x38c793(0x4c6,0x55c,0x4bb,0x3ff)](_0x1b6e50,_0x2fea13){return resolveSessionBaseUrl(_0x1b6e50,_0x2fea13);}[_0x38c793(0x42f,0x44e,0x3e3,0x41f)](_0x1f9754,_0x554e63){return resolveApiCredential(_0x1f9754,_0x554e63);}async[_0x38c793(0x47d,0x43f,0x488,0x4be)](_0x51c491){return await createHttpError(_0x51c491);}},AnthropicModel=class extends RoutedModel{constructor(_0x21e2c0={}){const _0x1263f2={_0xa8785b:0x2ea,_0x239b05:0x2ad,_0x144f8e:0x283,_0x587f29:0x2c3,_0xf95298:0x35c,_0x4172fd:0x26b,_0x368343:0x2ca,_0xbe423c:0x373,_0x40b8ee:0x215,_0xe97e51:0x2da,_0x5937e6:0x177,_0x224481:0x37d,_0x200525:0x318,_0x4eca8c:0x2d6,_0x2e3aa0:0x26f,_0x111033:0x2d1,_0x4daa2b:0x24d,_0x19a3b5:0x332,_0x47417f:0x389,_0x4ae48c:0x201,_0xb7be7:0x1d0,_0x42905e:0x1f4,_0x404e87:0x1e2,_0x79e424:0x285,_0x26df2d:0x2e2,_0x524537:0x224},_0x402cdd={_0x466eb6:0x1a,_0x3492c6:0x11b},_0x5186d2={_0x34da5e:0x93,_0x184503:0x9a};function _0x23e85f(_0x403e67,_0xf306af,_0x43b4d0,_0x185731){return _0x2b6123(_0xf306af,_0xf306af-0x192,_0x43b4d0- -_0x5186d2._0x34da5e,_0x185731-_0x5186d2._0x184503);}function _0x444adc(_0x5d7854,_0x12402f,_0x58bf7b,_0x3d628e){return _0x38c793(_0x3d628e,_0x12402f-_0x402cdd._0x466eb6,_0x12402f- -0x18a,_0x3d628e-_0x402cdd._0x3492c6);}super({'apiKey':_0x21e2c0[_0x444adc(_0x1263f2._0xa8785b,_0x1263f2._0x239b05,_0x1263f2._0x144f8e,0x34b)],'baseUrl':trimTrailingSlashes(_0x21e2c0[_0x23e85f(0x346,0x3a7,0x306,_0x1263f2._0x587f29)]??_0x23e85f(0x139,0x1f4,0x1c5,0x290)),'fetch':_0x21e2c0[_0x23e85f(_0x1263f2._0xf95298,_0x1263f2._0x4172fd,_0x1263f2._0x368343,_0x1263f2._0xbe423c)],'maxTokens':_0x21e2c0[_0x444adc(0x20c,_0x1263f2._0x40b8ee,_0x1263f2._0xe97e51,_0x1263f2._0x5937e6)]??0x4000,'model':_0x21e2c0['model']??_0x444adc(0x24e,0x2fa,0x344,0x3a4),'reasoning':_0x21e2c0[_0x23e85f(_0x1263f2._0x224481,_0x1263f2._0x200525,_0x1263f2._0x4eca8c,0x26f)],'providerAdapter':new AnthropicProviderAdapter({'authScheme':_0x21e2c0[_0x23e85f(0x377,0x333,0x324,_0x1263f2._0x2e3aa0)]??_0x444adc(0x2ee,_0x1263f2._0x111033,0x2ae,0x342),'headerResolver':_0x21e2c0[_0x444adc(_0x1263f2._0x4daa2b,_0x1263f2._0xa8785b,0x30d,_0x1263f2._0x19a3b5)],'protocolVersion':_0x21e2c0[_0x23e85f(_0x1263f2._0x47417f,_0x1263f2._0x4ae48c,0x2c4,0x249)]??'2023-06-01'}),'providerSessionResolver':_0x21e2c0[_0x444adc(_0x1263f2._0xb7be7,_0x1263f2._0x42905e,_0x1263f2._0x404e87,0x13e)],'requestMutators':_0x21e2c0[_0x23e85f(_0x1263f2._0x79e424,_0x1263f2._0x26df2d,0x283,_0x1263f2._0x524537)],'router':new StaticModelSurfaceRouter({'complete':ANTHROPIC_MESSAGES_SURFACE,'stream':ANTHROPIC_MESSAGES_STREAM_SURFACE}),'surfaces':createAnthropicSurfaces()});}['complete'](_0x30d0e5,_0x52d988){const _0x34680e={_0x42d0e6:0x622},_0x351382={_0x489629:0x177,_0x410256:0x2d1,_0x2d0dd4:0x13c};function _0x10eb34(_0x5b6c12,_0x5f1bab,_0x3f28b2,_0x429ac0){return _0x2b6123(_0x5b6c12,_0x5f1bab-_0x351382._0x489629,_0x429ac0-_0x351382._0x410256,_0x429ac0-_0x351382._0x2d0dd4);}return this[_0x10eb34(0x648,0x5b6,0x69f,_0x34680e._0x42d0e6)](_0x30d0e5,ANTHROPIC_MESSAGES_SURFACE,_0x52d988);}[_0x38c793(0x521,0x4ea,0x479,0x467)](_0x2b54e6,_0x3e1ba0){const _0x250b3e={_0x8724fa:0x429,_0xc304cb:0x364};function _0xae550b(_0x5a65fd,_0x56c4b2,_0x49147b,_0x1fc85e){return _0x2b6123(_0x49147b,_0x56c4b2-0xd1,_0x1fc85e-0x113,_0x1fc85e-0x121);}return this[_0xae550b(0x32e,0x2a8,_0x250b3e._0x8724fa,_0x250b3e._0xc304cb)](_0x2b54e6,ANTHROPIC_MESSAGES_STREAM_SURFACE,_0x3e1ba0);}},OPENAI_CHAT_COMPLETIONS_SURFACE=_0x38c793(0x2af,0x2ca,0x374,0x2ce),OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE=_0x2b6123(0x35c,0x34a,0x321,0x2ab),OPENAI_RESPONSES_SURFACE='openai-responses',OPENAI_RESPONSES_STREAM_SURFACE=_0x2b6123(0x235,0x284,0x28f,0x242),OPENAI_RESPONSES_WEBSOCKET_SURFACE='openai-responses-ws',OpenAiApiError=class extends Error{[_0x2b6123(0x361,0x24f,0x2a4,0x33f)];[_0x38c793(0x3f5,0x3c3,0x36f,0x3cd)];constructor(_0x4f2d0c,_0x10602b,_0x585067){const _0x44e696={_0x34b671:0xb9,_0x3adc09:0x49,_0x2b1fc7:0x62,_0x1c4f9:0x78,_0x3720e1:0x33,_0x3e8501:0xf6,_0x388f8e:0x417,_0x38365d:0x458},_0x28ef55={_0x4e388b:0x1ed,_0x64a81e:0x194},_0x3a4c82={_0x1baf5a:0x185,_0x3b7df3:0x1bc};function _0x599701(_0x424a01,_0x387e4d,_0x59b65b,_0x65ce00){return _0x38c793(_0x387e4d,_0x387e4d-_0x3a4c82._0x1baf5a,_0x59b65b-0xe9,_0x65ce00-_0x3a4c82._0x3b7df3);}super(_0x585067),this[_0x4268d6(-_0x44e696._0x34b671,-_0x44e696._0x3adc09,-0xba,-0xbb)]='OpenAiApiError';function _0x4268d6(_0x533ce4,_0x41792c,_0x1defff,_0xfcbb5a){return _0x38c793(_0xfcbb5a,_0x41792c-_0x28ef55._0x4e388b,_0x533ce4- -0x436,_0xfcbb5a-_0x28ef55._0x64a81e);}this[_0x4268d6(-_0x44e696._0x2b1fc7,-_0x44e696._0x1c4f9,-_0x44e696._0x3720e1,-_0x44e696._0x3e8501)]=_0x4f2d0c,this[_0x599701(0x462,_0x44e696._0x388f8e,_0x44e696._0x38365d,0x3c9)]=_0x10602b;}},OpenAiResponsesStreamError=class extends Error{['code'];[_0x2b6123(0x222,0x36f,0x2a4,0x280)];constructor(_0x3d47fc,_0x16ec8c={}){const _0x55cfb2={_0x238265:0x64,_0x31bed0:0xd9,_0x2877c3:0x3b2,_0x36dcb3:0x3e6,_0x30f181:0x231,_0x147f2e:0x239,_0x28423b:0x25e,_0x18fd54:0x39b},_0x90c825={_0x3e14a3:0x131,_0x4f24fb:0x8},_0x20b51c={_0x37fdf5:0x119,_0x361911:0x174,_0x30faea:0x1e8};super(_0x3d47fc),this[_0x20fa4b(_0x55cfb2._0x238265,_0x55cfb2._0x31bed0,0x15e,0x114)]=_0x2ef86d(_0x55cfb2._0x2877c3,0x491,_0x55cfb2._0x36dcb3,0x3f3),this[_0x20fa4b(0x243,0x24a,_0x55cfb2._0x30f181,_0x55cfb2._0x147f2e)]=_0x16ec8c[_0x20fa4b(0x242,0x24a,0x1b4,_0x55cfb2._0x28423b)];function _0x20fa4b(_0x583e11,_0x140c14,_0xc8c8dc,_0x3c1a8a){return _0x2b6123(_0x3c1a8a,_0x140c14-_0x20b51c._0x37fdf5,_0x140c14- -_0x20b51c._0x361911,_0x3c1a8a-_0x20b51c._0x30faea);}function _0x2ef86d(_0x218031,_0x2bed3d,_0x1aeab1,_0x2c2461){return _0x2b6123(_0x2bed3d,_0x2bed3d-_0x90c825._0x3e14a3,_0x1aeab1-0xf7,_0x2c2461-_0x90c825._0x4f24fb);}this[_0x2ef86d(0x301,0x3e1,_0x55cfb2._0x18fd54,0x415)]=_0x16ec8c['status'];}};function stringifySystem(_0x38c19e){const _0x490ae5={_0x390dcf:0x48,_0x40ba9d:0x6e,_0x551289:0x50,_0x2b3c88:0x8e},_0x438018={_0x2cf64e:0x19c},_0x589133={_0x4ed838:0x90,_0x566350:0x199};function _0x2d1734(_0x10a94d,_0x17781b,_0x3dd0f7,_0x12f9d3){return _0x38c793(_0x10a94d,_0x17781b-_0x589133._0x4ed838,_0x3dd0f7- -0x4f2,_0x12f9d3-_0x589133._0x566350);}function _0xa5e079(_0x2e4107,_0x3f4d6f,_0x12efd5,_0x529b2d){return _0x38c793(_0x12efd5,_0x3f4d6f-0x1a7,_0x3f4d6f- -0x4fa,_0x529b2d-_0x438018._0x2cf64e);}return _0x38c19e[_0xa5e079(0x37,-_0x490ae5._0x390dcf,-_0x490ae5._0x40ba9d,-0xff)](_0xab20a9=>_0xab20a9[_0xa5e079(-0x1b,-0xb8,-0x152,-0x154)])[_0x2d1734(-_0x490ae5._0x551289,-0xa6,-0xee,-_0x490ae5._0x2b3c88)]('\x0a\x0a');}function _0x35dd(){const _0x3c23b4=['B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','Bw9KzwXfBMrWB2LUDenHy2HL','y3jLyxrLtwLZC2LUz0nYzwrLBNrPywXfCNjVCG','CMvZCg9UC2uUCMvHC29UAw5Nx3n1Bw1HCNLFDgv4Dc5KB25L','rgLYzwn0igfUC3DLCJOG','Dgv4Dej5sw5KzxG','D2vIC29JA2v0','Dg9Rzw5fEgnOyw5NzufWAvzLCNnPB24','C3rYAw5N','C2HHCMvKuMvZCg9UC2vZu29JA2v0u2vZC2LVBNm','CMvZCg9UC2vjza','ChjVEhK','C2XPy2u','B3bLBMfPx3jLyxnVBMLUzW','CMvZCg9UC2vtB2nRzxrtDhjLyw0','B3v0Chv0x3rLEhq','Dg9VBf91C2u','AM9PBG','y2XVC2u','DxnLCI12AxnPyMXL','yxbP','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzgvSDge','C2LNBMfS','BxnNlq','y29UDgvUDa','y2HHDfn0CMvHBq','C2vUzfjHD1jLCxvLC3q','r2L0shvItw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5lcbHy2nLC3nuB2TLBIWGB3iGChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','Aw50zxjSzwf2zwqTDgHPBMTPBMCTmJaYns0Wns0Xna','y3jLyxrLu3rYzwfTugfYC2vY','zw50CMLLCW','Dg9VBf91C2vFzgvSDge','DgHLBG','BwvKAwfFDhLWzq','B3v0Chv0sw5KzxHuB1jLyxnVBMLUz0LK','nJKXnte1uwvAtMvN','DMfSDwvZ','Aw50zxjSzwf2zwq','zgLZCgXHEq','qMfZAa','DMfSDwu','zNjVBq','DMLZAwjPBgL0Eq','Bwf4x2nVBNrLEhrFD2LUzg93x3rVA2vUCW','t3bLBKfPuMvZCg9UC2vZu3rYzwfTrxjYB3i','C3rHCNrZv2L0Aa','zg9Uzq','y2HHDenVBxbSzxrPB25Zugf0Aa','qw50AhjVCgLJihn0CMvHBsbMywLSzwq','BM93','DxnLCG','Dg9VBhm','CgfYC2u','qw50AhjVCgLJtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','C3rYzwfTvMLHq29UzMLNDxjLzfn1CMzHy2u','Bwv0Ag9K','C3vYzMfJzxm','DNnJB2rLlZeUmta0lJi','BwvZC2fNzv9KzwX0yq','DhjPBvn0yxj0','y2HHDenVBxbSzxrL','B3bLBMfPlxjLC3bVBNnLCY13CW','C29YDa','C3rYzwfTvMLHuMvZCg9UC2vZu3vYzMfJzq','CMvZCg9UC2vZugf0Aa','r0vu','CMvZCg9UC2uUB3v0Chv0x2L0zw0UywrKzwq','Aw5JBhvKzxm','yxbPs2v5','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','C3rYzwfTvMLHq2HHDenVBxbSzxrPB25Zu3vYzMfJzq','CgfYDgLHBf9QC29U','y29UDgvUDf9IBg9JA19ZDgfYDa','ChjLDMLVDxnFCMvZCg9UC2vFBM90x2zVDw5K','C3bSAxq','C3rYzwfTvMLHuMvZCg9UC2vZu29JA2v0qxr0zw1WDa','Aw5KzxHpzG','zgvSzxrL','zw5KCg9PBNrZ','Dgv4Da','Dg9VBenHBgXpCMrLCG','ChvZAa','y29TCgXLDgu','CMvXDwvZDe11Dgf0B3jZ','zMLSDgvY','yw50AhjVCgLJqxnZAxn0yw50q29UDgvUDa','Dg9VBfvZzvn0yxj0rw1PDhrLza','yMvHCMvY','CM9Szq','ue9tva','C3rHDhvZvgv4Da','uMvZCg9UC2vZihn0CMvHBsbMywLSzwq','zw5HyMXLza','ywnJzxb0','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNmTC3rYzwfT','CMvHC29UAw5Nx3rVA2vUCW','y2fWywjSzv9LBMrWB2LUDhm','Dg9Rzw4','nJbwq0r2uhK','zMLUywXszxnWB25Zzq','CMvHC29UAw5NugfYDhm','y29UDgvUDf9PBMrLEa','C2vUzeH0DhbtDxjMywnLuMvXDwvZDa','C3vWCg9YDgvKx2vUzhbVAw50CW','Ec1HCgKTA2v5','CMvZCg9UC2vtB2nRzxq','qw50AhjVCgLJigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','B2f1DgGTDg9Rzw4','y29UBMvJDf9MywLSzwq','CMvWBgfJzq','mJK4otu4uvzqwwzj','v2vIu29JA2v0ihjLCxvLC3qGzMfPBgvK','zM9Yy2vgDwXSuMvWBgf5','Aw5WDxrFANnVBL9KzwX0yq','yxbWBhLnB2rLBerLzMf1BhrZ','Dgv4Df9KzwX0yq','ywnXDwLYzvjLC3bVBNnLC1nVy2TLDeXVy2S','CMvMDxnHBa','Aw52ywXPzgf0zvjLC3bVBNnLC1nVy2TLDfnLC3nPB24','Dg9VBf9JywXSCW','uMvZCg9UC2vZifDLyLnVy2TLDcbYzxf1zxn0igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','B21PDhrLza','B3bLBG','l2nOyxqVy29TCgXLDgLVBNm','y29TCgXLDgvwAwfszxnWB25ZzxntDxjMywnL','ywjVCNq','CMvZB2X2zxi','zxjYB3i','sw52ywXPzcbxzwjtB2nRzxqGBwvZC2fNztOG','AgvHzgvYuMvZB2X2zxi','BgfZDfjLC3bVBNnLswq','AgfZ','CMvZCg9UC2u','CMvZCg9UC2vtDhjLyw0','C3rYzwfT','C3vTBwfYEuj5sw5KzxG','Aw5WDxrkC29U','Dgv4Dc9LDMvUDc1ZDhjLyw0','Dg9VBf91C2vFAwq','zMXHDe1HCa','yNvKz2v0vg9Rzw5Z','Aw5KzxG','y29TCgXLDgvwAwftDxjMywnL','C2HVDwXKuhjLzMvYuMvZCg9UC2vZqxbP','yNvPBgrqyxj0AwfSt3v0Chv0','y2XHDwrLlxnVBM5LDc00ltiWmJuWnte0','Dgv4DfbHCNrZ','C2LNBMf0DxjL','ChjVDg9JB2XwzxjZAw9U','Dg9bCgLfCNjVCG','nJeWodK3mNDSDer5tW','Aw5WDxq','zNjVBuvUDhjPzxm','z2v0uMvHzgvY','zMv0y2G','o2jHC2u2ncW','Aw5WDxrFDgv4Da','C2LNBMf0DxjLx2rLBhrH','r2L0shvIq29WAwXVDenOyxqVmc4ZmY4X','B3v0Chv0sw5KzxG','zw5JCNLWDgvKq29UDgvUDa','y2fJAgvK','Dg9VBf9Yzxn1Bhq','CMvXDwvZDhm','DgHPBMTPBMC','y2fWywjPBgL0AwvZ','CMvHC29UAw5N','Aw5WDxruB2TLBNm','CgfYC2vszxnWB25Zzq','sw52ywXPzcbYzxf1zxn0oIa','mZKWotG5m21oExzNsG','yxnZAxn0yw50','igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','C2v0','C3rYzwfTv2vIu29JA2v0u3vYzMfJzq','C3vTBwfYEv90zxH0','C291CMnL','l3yXl21LC3nHz2vZ','CMvTB3zLrxzLBNrmAxn0zw5LCG','y3jLyxrLuMvXDwvZDa','y29TCgXLDgvwAwfdB25MAwD1CMvKu3vYzMfJzq','CMvZCg9UC2uUzMfPBgvK','Aw5WDxrFC2nOzw1H','DxjS','yw50AhjVCgLJx3nPz25HDhvYzv9KzwX0yq','Bw9KzwW','C29Tzq','DNnJB2rLlZeUmta2lJe','nJGZmJy0rwzhwKLU','C3rYzwfTshr0Cfn1CMzHy2u','C3rYzwfTvMLHugvYC2LZDgvUDfjLC3bVBNnLC1nVy2TLDa','BwfW','y29UDgvUDf9IBg9JA19KzwX0yq','y3jLzgvUDgLHBa','l3jLC3bVBNnLCW','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','C2L6zq','yxbPlwTLEq','zxzLBNq6','t1bftG','CMvZB2X2zujHC2vvCMW','C2vZC2LVBG','l2nVCgLSB3rFAw50zxjUywWVDJiVDg9Rzw4','zMLUAxnO','CgvUzgLUzW','C3vTBwfYEv9PBMrLEa','zgvSDge','z3b0ltrV','z2v0u3vYzMfJzq','z2v0t3jdCMvHDgvszxnWB25ZzxntB2nRzxq','oNjLyxnVBMLUzZOW','v2vIu29JA2v0ignSB3nLzcb3AxrOignVzguG','CMvZCg9UC2uUB3v0Chv0x2L0zw0Uzg9Uzq','C3rYzwfTvMLHuMvZCg9UC2vZv2vIu29JA2v0u3vYzMfJzq','yMfZzvvYBa','D2vIC29JA2v0x2nVBM5Ly3rPB25FBgLTAxrFCMvHy2HLza','y29TCgXLDgvwAwfdAgf0q29TCgXLDgLVBNntDxjMywnL','u3vYzMfJzsa','zMLUza','y29UC3vTzuv2zw50','BwfYA01VzgvSqxnszxnWB25ZzxnpBMX5','ChjVDMLKzxjtDgf0zq','CMvZB2X2zq','DgvZDa','C3vTBwfYAxPLza','yxv0Ag9YAxPHDgLVBG','Aw5JBhvKzunVBNrLBNruExbL','igrVzxmGBM90ihn1ChbVCNqGBM9Ulxn0CMvHBwLUzYbYzxnWB25Zzxm','v2vIu29JA2v0','CMvHC29U','CMvZCg9UC2vuzxH0ugfYDhm','C3rYzwfTvMLHuM91DgvY','D2vIu29JA2v0rMfJDg9YEq','ywDLBNq','y2HHDgnTCgW','Dg9VBenHBgXZqNLjBMrLEa','CMvHC29UAw5Nx2nVBNrLBNq','B3bLBKfPrgvSzwDHDgu','zgLZywjSzwq','AxnbCNjHEq','B3v0Chv0x3rVA2vUCW','C2vZC2LVBK1HBMfNzxi','DgHPBMTPBMDFzgvSDge','Dg9VBc1JywXSlq','yxv0AfnJAgvTzq','zgvJB2rL','BwvZC2fNzuLK','ywjVCNrLza','Bwv0ywrHDge','z2L0AhvIqxbPvxjS','ywnJzxnZvg9Rzw4','y29Kzq','Ahr0Chm6','zNvUy3rPB25Fy2fSBa','B3v0Chv0x3rVA2vUC19KzxrHAwXZ','yMfZzty0','y29UC3vTzvDLyLnVy2TLDev2zw50','mJaYns0Xmc0Wmq','C3rYzwfTu3vYzMfJzq','DxnHz2u','y2HVAwnLCW','Ahr0Cc1ZC2u','C3vTBwfYEq','CMvZCg9UC2uUCMvHC29UAw5Nx3n1Bw1HCNLFDgv4Dc5KzwX0yq','B3v0Chv0','y2HHDgnTCgWT','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzg9Uzq','zgvZy3jPChrPB24','yw50AhjVCgLJlw1LC3nHz2vZlxn0CMvHBq','B3v0Chv0vg9Rzw5Z','yw50AhjVCgLJx3rOAw5RAw5N','C3vYzMfJzq','C3rYAw5NAwz5','ChjVDMLKzxjbzgfWDgvY','yM9KEq','A2LUza','Aw1Hz2u','CMvZCg9UC2uUy29TCgXLDgvK','ChjLCgfYzunOyxrszxf1zxn0','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','l21VzgvSCW','yxjNDw1LBNrZ','vw5ZDxbWB3j0zwqGr2L0shvIig1VzgvSihn1CMzHy2u6ia','otC0m2zqshrIrG','nZrPA0jotxa','y2fSBeLKvg9pDxrWDxrjBMrLEa','z2v0qw50AhjVCgLJrgvSzwDHDgu','Cgf0Aa','BMfTzq','ChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','zwrPDg9YugX1z2LUvMvYC2LVBG','ywrK','C3rYzwfTvMLHu3vYzMfJzq','D3m6','CMvZCg9UC2uUy3jLyxrL','CMvKywn0zwrFDgHPBMTPBMC','t3bLBKfjigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','zw5Kx3r1CM4','Bw9JAW','Ahr0Chm6lY9HCgKUyw50AhjVCgLJlMnVBq','Ahr0Cc1QC29U','C3rVCfjLyxnVBG','z2v0t3jdCMvHDgvszwfZB25PBMDjDgvT','y29TCgXLDgLVBL90B2TLBNnFzgv0ywLSCW','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBKTLEq','C2HVDwXKuMv0CNLszxnWB25ZzxntB2nRzxrszxf1zxn0','C2vZC2LVBKLK','DgvSzw1LDhj5','qxv0AgvUDgLJyxrPB24GzMfPBgvKlIbqBgvHC2uGy2HLy2SGEw91CIbbueKGA2v5lG','B3bLBMfPuMvZCg9UC2vZuMvZCg9UC2vjza','C3rVCf9YzwfZB24','CMvHC29UAw5NsxrLBxm','y3jLyxrLsgvHzgvYCW','B2jQzwn0','Aw1Hz2vFDxjS','ntzKsxr3whK','zMv0y2HjBxbS','zNvUy3rPB24','AxrLBq','nvvgvxbdDG','ignHBM5VDcbWyxjZzsbtu0uGzxzLBNrZ','Ahr0Chm6lY9HCgKUB3bLBMfPlMnVBs92mq','Bwf4vg9Rzw5Z','zgf0yq','zw5JCNLWDgvKx2nVBNrLBNq','y2fSBf9Pza','C29JA2v0','AgvHzgvYCW','Dg9VBenHBgXZ','AxrLBv9Pza','Aw5PDgLHBev2zw50','BwvZC2fNzv9ZDgfYDa','zwzMB3j0','zgf0ytO','y29WAwXVDc1JAgf0lZaUmZeUmW','y29TCgXLDgLVBL90B2TLBNm','CM91DgvY','C3vWCg9YDgvKrw5KCg9PBNrZ','mZi4nfP3B25hEa','BNvTyMvY','yxbWBgLJyxrPB24VANnVBG','yw50AhjVCgLJrgvSzwDHDgu','B3v0Chv0x2LUzgv4','z2v0','z2v0t3bLBKfPrgvSzwDHDgu','t3bLBKfPtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','BwfWqxbPrxjYB3i','igrPzcbUB3qGChjVDMLKzsbHBIbivfrqihbHDgG','ANnVBG','yNvPBgrszxnWB25ZzxntB2nRzxrfDMvUDa','ntq2m1PywMzTAG','ChjLCgfYzvjLC3bVBNnLC1nVy2TLDfjLCxvLC3q','B3v0Chv0sw5KzxHuB0nHBgXjza','AxneB25L','B3bLBMfPlxjLC3bVBNnLCY1ZDhjLyw0','CMvHC29UAw5Nx3rLEhq','y29UBMvJDgLUzW','Aw5WDxrFDg9Rzw5Z','Bw9Kzq','Dg9tDhjPBMC','qMvHCMvYia','Aw52ywXPzgf0zq','w0rptKvD','y29TCgXLDgvwAwfsB3v0zxi','B3bLBMfPlxjLC3bVBNnLCW','DxnLC1jLC3bVBNnLC0fWAq','BgvUz3rO','y29UC3vTzvnZzuv2zw50','y29UDgvUDf9KzwX0yq','y2f0y2G','BwvZC2fNzxm','yw50AhjVCgLJx3jLzgfJDgvKx3rOAw5RAw5N','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzgvSDge','DhjPBq','ChjLDMLVDxnszxnWB25ZzuLK','C3rHDhvZ','C3LZDgvT','yMXVy2TZ','D3nZoG','ywrKrxzLBNrmAxn0zw5LCG','y29TCgXLDgvK','y2fUy2vS','B3jPz2LUlxrYywnRzxi','C2vUza','CMvXDwvZDa','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBLn0yxrL','C2vSzwn0u3vYzMfJzq','BwvZC2fNzuLUzgv4','C3bSAwnL','BwvZC2fNzq','CMvZB2X2zunYzwrLBNrPywW','CMvHzhLtDgf0zq','CMvZCc0','mJbhvMnMuKq','yw50AhjVCgLJlw1LC3nHz2vZ','yw50AhjVCgLJlxzLCNnPB24','DhjHBNnWB3j0','yxn5BMnjDgvYyxrVCG','y29TCgXLDgvtDxjMywnL','yxnZAxn0yw50lq','yxv0BW','C2HPzNq','DhLWzq','y29UDgvUDc10ExbL','uhjVDMLKzxiGCMvXDwvZDcbMywLSzwqGD2L0AcbZDgf0DxmG','zwrPDg9YvMvYC2LVBG'];_0x35dd=function(){return _0x3c23b4;};return _0x35dd();}function createToolDefinitions(_0x1ce47c){const _0x497502={_0x80ae00:0xb8,_0x293b74:0xb1,_0x358df9:0xee,_0x42fec3:0xab,_0x5a445f:0x1a0},_0x89a742={_0x868b30:0x1d,_0x4e903c:0xe,_0x4827d7:0x145,_0x2df046:0x1e3},_0x4bfb35={_0x3e74a0:0x60},_0x590930={_0x2ddf3b:0x8e,_0x2a96be:0x294,_0x21a7ac:0x3f},_0x2eda89={_0x24493c:0x4ba};function _0x19d2f9(_0x4b7284,_0x1bff1c,_0x1a0140,_0x4bb1a1){return _0x2b6123(_0x1a0140,_0x1bff1c-0xc,_0x4bb1a1- -_0x2eda89._0x24493c,_0x4bb1a1-0x1c7);}function _0x4f7e0d(_0x52e3b0,_0x31297e,_0x5c4bc7,_0x4675df){return _0x2b6123(_0x31297e,_0x31297e-_0x590930._0x2ddf3b,_0x52e3b0- -_0x590930._0x2a96be,_0x4675df-_0x590930._0x21a7ac);}if(_0x1ce47c[_0x4f7e0d(0x7,0x2f,_0x497502._0x80ae00,_0x497502._0x293b74)]===0x0)return void 0x0;return _0x1ce47c[_0x4f7e0d(_0x497502._0x358df9,_0x497502._0x42fec3,_0x497502._0x5a445f,0x79)](_0x223b19=>{const _0xd0df35={_0x148254:0x274};function _0x101eca(_0x360c3e,_0x1257d6,_0x40a732,_0x8db4a3){return _0x4f7e0d(_0x40a732-_0x4bfb35._0x3e74a0,_0x360c3e,_0x40a732-0xba,_0x8db4a3-0x28);}function _0x511d95(_0x370b42,_0x2b8f56,_0x57b7e9,_0x3c020b){return _0x19d2f9(_0x370b42-0x166,_0x2b8f56-0x20,_0x370b42,_0x57b7e9-_0xd0df35._0x148254);}return{'type':'function','function':{'name':_0x223b19[_0x101eca(0x2c,0xc9,0x19,-0x57)],'description':_0x223b19[_0x511d95(-_0x89a742._0x868b30,0xa5,-_0x89a742._0x4e903c,-0x52)],'parameters':_0x223b19[_0x101eca(0x143,0x1ad,_0x89a742._0x4827d7,_0x89a742._0x2df046)]}};});}function isImageToolResultBlock(_0x4fde29){const _0x564163={_0x2870bd:0x28,_0x354f3d:0x10f,_0xac4aed:0x8,_0x28ae62:0x96,_0x3f2862:0x99,_0x1438c5:0x8b,_0x327f29:0x10d,_0x594c40:0x86,_0x2a1132:0x1f2,_0x7ffbe0:0xd6,_0x56e709:0x12a,_0x13a809:0xba,_0x5d4c21:0x90,_0x3e357c:0xf,_0x5258cb:0x148,_0x125650:0x13d,_0x25f0a1:0x257,_0x1dbff0:0x1a3},_0x25898f={_0x1e55ba:0x1ba,_0x3673ff:0x2da,_0x754718:0x53},_0x388d95={_0x3b6dcd:0x0,_0x14c408:0x91};function _0x3ff62b(_0x1a1563,_0x37cae6,_0x820b31,_0x38ffd4){return _0x38c793(_0x37cae6,_0x37cae6-_0x388d95._0x3b6dcd,_0x820b31- -0x5b0,_0x38ffd4-_0x388d95._0x14c408);}if(typeof _0x4fde29!==_0x3bcf5b(_0x564163._0x2870bd,-0x40,-_0x564163._0x354f3d,-0x74)||_0x4fde29===null||Array['isArray'](_0x4fde29))return![];function _0x3bcf5b(_0x54c706,_0x703b39,_0x134850,_0xeb428){return _0x2b6123(_0x54c706,_0x703b39-_0x25898f._0x1e55ba,_0xeb428- -_0x25898f._0x3673ff,_0xeb428-_0x25898f._0x754718);}const _0x3d898f=_0x4fde29;return _0x3d898f[_0x3bcf5b(-0x6e,-_0x564163._0xac4aed,-0x4f,-0x1b)]===_0x3bcf5b(-_0x564163._0x28ae62,-0x14e,-0x25,-_0x564163._0x3f2862)&&_0x3d898f[_0x3ff62b(-_0x564163._0x1438c5,-0xf4,-_0x564163._0x327f29,-_0x564163._0x594c40)]?.[_0x3ff62b(-0x12f,-_0x564163._0x2a1132,-0x1c1,-0x14b)]===_0x3bcf5b(-_0x564163._0x7ffbe0,-_0x564163._0x56e709,-0xcc,-0xae)&&typeof _0x3d898f['source'][_0x3bcf5b(-_0x564163._0x13a809,-0x87,-0x57,0xa)]===_0x3bcf5b(-0xa0,0x99,-_0x564163._0x5d4c21,-_0x564163._0x3e357c)&&typeof _0x3d898f[_0x3ff62b(-0xdf,-_0x564163._0x5258cb,-0x10d,-0x10f)]['data']===_0x3ff62b(-_0x564163._0x125650,-_0x564163._0x25f0a1,-0x1b5,-_0x564163._0x1dbff0);}function getToolResultText(_0x370fb7){const _0x4b7efb={_0x476eb0:0x3be,_0x1b3bbe:0x146,_0x2f2ec0:0xa5,_0xe6cc9c:0x11d,_0xf789a5:0x31,_0x4a8e28:0x33b,_0x432800:0x375,_0x4e7311:0x367,_0x58df3a:0x3e6},_0x263a10={_0xed28b0:0xfc,_0x2f8904:0x141,_0x308b:0x11f},_0x4f30fc={_0x2e23b7:0x24c,_0x3d74d4:0x308,_0x14de29:0x31b,_0x4284ec:0x2d5,_0x440929:0x2d9,_0x2bc1c6:0x2cf,_0x5c3c13:0x27f,_0x24da0f:0x328},_0x52c7b6={_0x38a907:0x27,_0x1df4e3:0x53,_0x463289:0x1e0},_0x158353={_0x21484c:0x95,_0x3ce4f0:0x138};function _0x3bca5c(_0x2cdbd1,_0x55366b,_0x33c461,_0x4ed98d){return _0x2b6123(_0x55366b,_0x55366b-_0x158353._0x21484c,_0x33c461- -0x1b7,_0x4ed98d-_0x158353._0x3ce4f0);}if(typeof _0x370fb7===_0x591d73(0x370,0x2ba,0x29f,0x36a))return _0x370fb7;const _0xaf5711=_0x370fb7[_0x591d73(0x2df,0x306,0x314,_0x4b7efb._0x476eb0)](_0x387dfe=>{const _0x109502={_0x155bf2:0x16d,_0x2cc917:0x139};function _0x3a26be(_0x576b25,_0x5bc281,_0x241f02,_0x1a78b6){return _0x591d73(_0x5bc281,_0x1a78b6-_0x52c7b6._0x38a907,_0x241f02-_0x52c7b6._0x1df4e3,_0x1a78b6-_0x52c7b6._0x463289);}function _0x42c909(_0x23d822,_0x35c7db,_0x2f7ac3,_0x3bce41){return _0x3bca5c(_0x23d822-_0x109502._0x155bf2,_0x3bce41,_0x23d822-0x28,_0x3bce41-_0x109502._0x2cc917);}return typeof _0x387dfe===_0x3a26be(_0x4f30fc._0x2e23b7,0x1eb,_0x4f30fc._0x3d74d4,0x27c)&&_0x387dfe!==null&&_0x387dfe[_0x3a26be(0x39a,_0x4f30fc._0x14de29,0x339,_0x4f30fc._0x4284ec)]===_0x3a26be(_0x4f30fc._0x440929,_0x4f30fc._0x2bc1c6,_0x4f30fc._0x5c3c13,_0x4f30fc._0x24da0f);})['map'](_0x2c8d54=>_0x2c8d54[_0x591d73(0x3af,0x301,0x371,0x33e)])[_0x3bca5c(_0x4b7efb._0x1b3bbe,_0x4b7efb._0x2f2ec0,_0x4b7efb._0xe6cc9c,0xf0)]('\x0a\x0a')['trim']();function _0x591d73(_0x3d98be,_0x2469c4,_0x19f9aa,_0x23ea77){return _0x38c793(_0x3d98be,_0x2469c4-_0x263a10._0xed28b0,_0x2469c4- -_0x263a10._0x2f8904,_0x23ea77-_0x263a10._0x308b);}return _0xaf5711[_0x3bca5c(0xfe,_0x4b7efb._0xf789a5,0xe4,0xfb)]>0x0?_0xaf5711:_0x591d73(_0x4b7efb._0x4a8e28,_0x4b7efb._0x432800,_0x4b7efb._0x4e7311,_0x4b7efb._0x58df3a);}function getToolResultImages(_0x17040e){const _0x26c076={_0x2cd91f:0x5a8,_0x37800b:0x4b0,_0x288ec3:0x4ea,_0xead0f7:0xf1,_0x4298f0:0x23a},_0x831c67={_0x2d99aa:0x7d,_0x29fd41:0x40},_0x4bade5={_0x1ba476:0x5dd,_0x5a2f26:0x29};function _0x54f616(_0x155a74,_0x1e2632,_0x32b797,_0x2a860b){return _0x38c793(_0x155a74,_0x1e2632-0x21,_0x1e2632- -_0x4bade5._0x1ba476,_0x2a860b-_0x4bade5._0x5a2f26);}function _0x5dff45(_0x2a7642,_0x170486,_0x5850f8,_0x4a7575){return _0x38c793(_0x5850f8,_0x170486-_0x831c67._0x2d99aa,_0x2a7642-_0x831c67._0x29fd41,_0x4a7575-0x4);}return Array[_0x5dff45(0x522,_0x26c076._0x2cd91f,_0x26c076._0x37800b,_0x26c076._0x288ec3)](_0x17040e)?_0x17040e[_0x54f616(-_0x26c076._0xead0f7,-0x196,-0x169,-_0x26c076._0x4298f0)](isImageToolResultBlock):[];}function parseToolInput2(_0x16cd84){const _0x30fd35={_0x151336:0x369,_0x2774ae:0x434,_0x82e724:0x43a},_0x4934fb={_0x5eb286:0x127};function _0x3c4ec(_0x45e4d0,_0x4bf228,_0x3c471e,_0x212d09){return _0x38c793(_0x4bf228,_0x4bf228-_0x4934fb._0x5eb286,_0x45e4d0-0x61,_0x212d09-0x15a);}if(_0x16cd84[_0x3c4ec(0x42c,_0x30fd35._0x151336,_0x30fd35._0x2774ae,_0x30fd35._0x82e724)]===0x0)return{};try{return JSON['parse'](_0x16cd84);}catch{return _0x16cd84;}}function isResponsesReasoningItem(_0x276ca6){const _0x3fb770={_0x37a27e:0x4e3,_0x4432b4:0x472},_0x89efab={_0x466425:0x9f,_0x20d912:0x27d,_0x386f78:0x1ae};function _0xfe7334(_0x200986,_0x239d46,_0x7ce83d,_0x454eb3){return _0x2b6123(_0x239d46,_0x239d46-_0x89efab._0x466425,_0x200986-_0x89efab._0x20d912,_0x454eb3-_0x89efab._0x386f78);}return typeof _0x276ca6===_0xfe7334(_0x3fb770._0x37a27e,0x5ae,_0x3fb770._0x4432b4,0x477)&&_0x276ca6!==null&&'type'in _0x276ca6&&_0x276ca6['type']==='reasoning';}function isResponsesMessageItem(_0x15c239){const _0x453b19={_0x1748d2:0x13f,_0x3d22bd:0x1de,_0x55fc9a:0x184,_0x308899:0x104,_0x4398b7:0xf8,_0x37c7e2:0x177,_0x2191ab:0x12e},_0x4f0329={_0x2b91d8:0x1a4},_0x3e5351={_0x558fb9:0x26b,_0x196b52:0x1bd};function _0x5e93b5(_0x44a352,_0x13c68f,_0x39de7a,_0x3cd0f6){return _0x38c793(_0x44a352,_0x13c68f-0x195,_0x13c68f- -_0x3e5351._0x558fb9,_0x3cd0f6-_0x3e5351._0x196b52);}function _0x54a383(_0x1b79d0,_0x4bf2e0,_0x2a9a1e,_0x2bd6dc){return _0x38c793(_0x1b79d0,_0x4bf2e0-0xca,_0x2bd6dc- -0x520,_0x2bd6dc-_0x4f0329._0x2b91d8);}return typeof _0x15c239===_0x5e93b5(0x1da,0x12b,_0x453b19._0x1748d2,0x1ae)&&_0x15c239!==null&&'type'in _0x15c239&&_0x15c239[_0x5e93b5(_0x453b19._0x3d22bd,_0x453b19._0x55fc9a,_0x453b19._0x308899,_0x453b19._0x4398b7)]===_0x5e93b5(0x148,_0x453b19._0x37c7e2,_0x453b19._0x2191ab,0x13d);}function isResponsesFunctionCallItem(_0x1d8ce0){const _0x161a4a={_0x59fbc4:0x114,_0x186450:0xe1,_0x137975:0xf4,_0xa2512a:0x1d2},_0x4058b3={_0x2c8652:0xcb,_0x5cf8e4:0x2b5,_0x4f9520:0xab},_0x571a58={_0x3646c1:0x68,_0x419259:0x45,_0xb0eb99:0x1ec};function _0x56cfe9(_0x3cfd8f,_0x1c210c,_0xf15d79,_0x414c6e){return _0x2b6123(_0x414c6e,_0x1c210c-_0x571a58._0x3646c1,_0x3cfd8f- -_0x571a58._0x419259,_0x414c6e-_0x571a58._0xb0eb99);}function _0x16b09c(_0x31783d,_0x30981d,_0xb7f96c,_0x573910){return _0x38c793(_0x31783d,_0x30981d-_0x4058b3._0x2c8652,_0xb7f96c- -_0x4058b3._0x5cf8e4,_0x573910-_0x4058b3._0x4f9520);}return typeof _0x1d8ce0===_0x16b09c(_0x161a4a._0x59fbc4,0x11a,_0x161a4a._0x186450,0x1d)&&_0x1d8ce0!==null&&'type'in _0x1d8ce0&&_0x1d8ce0[_0x16b09c(_0x161a4a._0x137975,_0x161a4a._0xa2512a,0x13a,0x1b3)]==='function_call';}function createContentBlocks(_0x12c416,_0x2c54a4,_0x244a8f){const _0x31bde0={_0x4eed4a:0x5cf,_0x3241b0:0x47a,_0x415d34:0x61c,_0x7bf0d1:0x61f,_0x3dc540:0x500,_0x42b3b3:0x560,_0x39bf74:0x5eb,_0x34a3ae:0x4d1,_0x2d9db7:0x541,_0x15a339:0x55f,_0x4c914d:0x585,_0x36b899:0x5d6,_0x4e568e:0x514,_0x468365:0x4c6,_0x46eeb7:0x532,_0x173a62:0x46d,_0x2f7023:0x604,_0xc3fd03:0x542,_0x4cd3b4:0x495,_0x2bdbcc:0x436,_0x1f061b:0x566,_0x743139:0x566,_0x1d6b30:0x5a4,_0x4f2680:0x597,_0x4f91c3:0x556,_0x251012:0x654,_0x2a6629:0x4fa,_0x29f924:0x52e,_0x14b612:0x591,_0x408851:0x58b,_0x5514e0:0x504},_0x868451={_0x33e090:0x290,_0x27f39b:0x173},_0x32f6a8={_0x4be0ab:0x183,_0x4239ec:0xf6},_0x686479=[];_0x244a8f&&_0x244a8f[_0x515410(_0x31bde0._0x4eed4a,0x52b,_0x31bde0._0x3241b0,0x557)]>0x0&&_0x686479[_0x3c3edf(0x5d8,0x632,_0x31bde0._0x415d34,_0x31bde0._0x7bf0d1)]({'type':_0x515410(_0x31bde0._0x3dc540,_0x31bde0._0x42b3b3,0x5f8,_0x31bde0._0x39bf74),'summary':[],'text':_0x244a8f});function _0x3c3edf(_0x5d6911,_0x570f55,_0xa4c3b1,_0x5c3b50){return _0x38c793(_0xa4c3b1,_0x570f55-_0x32f6a8._0x4be0ab,_0x5d6911-0x194,_0x5c3b50-_0x32f6a8._0x4239ec);}_0x12c416[_0x515410(_0x31bde0._0x34a3ae,0x52b,_0x31bde0._0x2d9db7,_0x31bde0._0x15a339)]>0x0&&_0x686479[_0x515410(0x528,0x5a4,_0x31bde0._0x4c914d,0x521)]({'type':_0x3c3edf(_0x31bde0._0x36b899,_0x31bde0._0x4e568e,0x52f,0x53a),'text':_0x12c416});for(const _0x336832 of _0x2c54a4){if(_0x336832['id'][_0x515410(_0x31bde0._0x468365,_0x31bde0._0x46eeb7,0x5fa,_0x31bde0._0x173a62)]()[_0x3c3edf(_0x31bde0._0x15a339,0x4bb,_0x31bde0._0x2f7023,_0x31bde0._0xc3fd03)]===0x0||_0x336832[_0x3c3edf(0x52e,_0x31bde0._0x4cd3b4,0x487,0x4f4)][_0x515410(0x4dd,0x4dd,_0x31bde0._0x2bdbcc,0x53f)][_0x3c3edf(_0x31bde0._0x1f061b,_0x31bde0._0x743139,0x621,0x59c)]()['length']===0x0)continue;_0x686479[_0x515410(0x5bd,_0x31bde0._0x1d6b30,0x627,0x5fb)]({'type':_0x3c3edf(_0x31bde0._0x4f2680,_0x31bde0._0x4f91c3,0x52f,_0x31bde0._0x251012),'id':_0x336832['id'],'name':_0x336832[_0x515410(0x4bf,_0x31bde0._0x2a6629,0x4db,0x44c)]['name'],'input':parseToolInput2(_0x336832[_0x3c3edf(_0x31bde0._0x29f924,0x5e1,0x594,0x4c0)][_0x3c3edf(0x50a,_0x31bde0._0x14b612,_0x31bde0._0x408851,_0x31bde0._0x5514e0)])});}function _0x515410(_0x366bdb,_0x3fa656,_0x32a183,_0x4e790a){return _0x2b6123(_0x4e790a,_0x3fa656-0xb,_0x3fa656-_0x868451._0x33e090,_0x4e790a-_0x868451._0x27f39b);}return _0x686479;}function createUsage(_0x3b2c55){const _0xb3b542={_0x4db31d:0x2c8,_0x5be6ee:0x364,_0x43cea9:0x249,_0x1afdaa:0x367,_0x42cfaa:0x363,_0xf56a7f:0x2e3,_0x58100b:0x390},_0x57d603={_0x46c44a:0x1a0,_0x42146e:0x1d4},_0x18517b={_0x4791db:0x114};function _0x3dcd72(_0x56f547,_0x7e288f,_0x17b8d4,_0x398be8){return _0x2b6123(_0x398be8,_0x7e288f-_0x18517b._0x4791db,_0x56f547-0x41,_0x398be8-0xc7);}function _0x492e02(_0x308246,_0x2680da,_0x3ad168,_0x13408f){return _0x38c793(_0x13408f,_0x2680da-0x72,_0x2680da-_0x57d603._0x46c44a,_0x13408f-_0x57d603._0x42146e);}return{'inputTokens':_0x3b2c55?.['prompt_tokens']??0x0,'outputTokens':_0x3b2c55?.[_0x3dcd72(0x2bd,0x21f,0x2fd,0x332)]??0x0,..._0x3b2c55?.[_0x3dcd72(0x29d,_0xb3b542._0x4db31d,_0xb3b542._0x5be6ee,_0xb3b542._0x43cea9)]?.[_0x3dcd72(0x363,0x3ce,0x37b,0x317)]!==void 0x0?{'reasoningTokens':_0x3b2c55[_0x3dcd72(0x29d,_0xb3b542._0x1afdaa,0x339,0x27f)][_0x3dcd72(_0xb3b542._0x42cfaa,0x317,_0xb3b542._0xf56a7f,_0xb3b542._0x58100b)]}:{}};}function resolveReasoningVisibility2(_0x57b39d){const _0x36ad29={_0x16176f:0x77,_0x5a6a0e:0x32,_0x244be9:0x6a,_0x4833f2:0x3d,_0x138351:0x125,_0x2742d4:0xe6,_0x5d981e:0x195},_0x11054c={_0x4966e1:0x164,_0x1b1739:0x503},_0x18dcbc={_0x3312ad:0x13d,_0x554168:0x4b3};function _0x169a14(_0x457406,_0x133d05,_0x53a0a2,_0x141d08){return _0x38c793(_0x141d08,_0x133d05-_0x18dcbc._0x3312ad,_0x133d05- -_0x18dcbc._0x554168,_0x141d08-0xc9);}function _0x5cca0d(_0x225926,_0x593105,_0x33ba2f,_0x31893c){return _0x38c793(_0x225926,_0x593105-_0x11054c._0x4966e1,_0x33ba2f- -_0x11054c._0x1b1739,_0x31893c-0x177);}return _0x57b39d[_0x5cca0d(-_0x36ad29._0x16176f,_0x36ad29._0x5a6a0e,-_0x36ad29._0x244be9,-_0x36ad29._0x4833f2)]?.[_0x5cca0d(-0x133,-_0x36ad29._0x138351,-_0x36ad29._0x2742d4,-_0x36ad29._0x5d981e)]??'user-visible';}function isUserVisibleReasoning(_0x35d60a){const _0xc4f1ed={_0x393ead:0x544,_0x5ac841:0x568,_0x492dd4:0x4e3},_0x461ac2={_0x59dfb3:0x2b};function _0x392233(_0x3e102b,_0x5955a8,_0xd211f7,_0x36376b){return _0x2b6123(_0x5955a8,_0x5955a8-0xb5,_0xd211f7-0x1ff,_0x36376b-_0x461ac2._0x59dfb3);}return resolveOpenAiReasoningConfig(_0x35d60a[_0x392233(0x4e1,_0xc4f1ed._0x393ead,_0xc4f1ed._0x5ac841,_0xc4f1ed._0x492dd4)])!==void 0x0&&resolveReasoningVisibility2(_0x35d60a)==='user-visible';}function createChatRequestBody(_0x52989b,_0x195646){const _0x239f57={_0xa1066e:0x267,_0x24c608:0x1d1,_0x126f87:0xfe,_0x230f97:0x25e,_0x2b183c:0x240,_0x2cac0c:0x1fc,_0x5aa912:0x13a,_0x23a067:0x193,_0x1a2522:0x21f,_0x341011:0x117,_0xf82b85:0x10f,_0x2f9b50:0x11b,_0x2e23fd:0xba,_0x360795:0x16d,_0x560ad0:0x14b,_0x235407:0x28,_0x2a9fa4:0x2df,_0x53b581:0x234,_0x230999:0x240,_0x3f529e:0x2ea,_0x2be2ad:0x2ca,_0x1bcb26:0x291,_0xe82030:0x69,_0x13040b:0x133,_0x3cafb8:0xf3,_0x40fd96:0x78,_0x579268:0xee,_0x4f0aad:0xbc,_0x59f321:0x239,_0x4409d5:0x207,_0xe2ee5b:0x1cd,_0x538bc5:0x14d,_0x3f2ad9:0x1c7,_0x222e32:0x1be,_0x14ba58:0x2ea,_0x38752d:0x23e,_0x30dfd6:0x234,_0xd13189:0x303,_0x44211d:0x279,_0xec8f61:0x336,_0x539280:0x1e2,_0x106d40:0x15f,_0x1f1313:0x1e1,_0x3ce9b1:0xf1,_0x47f97b:0x155,_0x276665:0x23e,_0x4d04b1:0x1a5,_0x21edb2:0x1a7,_0x33f5ce:0x222,_0x521a29:0x2a2,_0x5cbe06:0x97,_0x25f2b9:0x112},_0x3cb694={_0x2b2814:0x3ce,_0x1dce66:0x90},_0x212e99={_0x335c1b:0x3a1,_0x4169af:0x52,_0x10b672:0x1,_0x1d580e:0x1b,_0x4f47e0:0x473,_0x4bdaad:0x3d8,_0x32a3bd:0x3b7,_0x29d379:0xa3,_0x5758c0:0x11f,_0x47bd74:0x1d,_0x4bee3f:0x42a,_0x468b05:0x3d6,_0x80225c:0x3b7,_0x511eb0:0x48,_0x573b9e:0x12b,_0x3824b4:0x18,_0x14faf1:0x34e,_0x21184b:0x3b7,_0x3691fc:0x3c,_0x57630f:0x77,_0x428edb:0x38,_0xbf8235:0x407,_0x5d1ce8:0x41d,_0x1fb716:0xea,_0x2af52b:0x120,_0x60e925:0xb6},_0x9f9f7b={_0x519fb5:0xd4,_0x2cc2de:0x5b},_0x1dca2a=[];function _0x301824(_0x322c37,_0x2cbc17,_0x12f304,_0x17892e){return _0x2b6123(_0x2cbc17,_0x2cbc17-0x22,_0x12f304- -_0x9f9f7b._0x519fb5,_0x17892e-_0x9f9f7b._0x2cc2de);}const _0x4c2a32=stringifySystem(_0x52989b[_0x301824(0x29a,_0x239f57._0xa1066e,_0x239f57._0x24c608,0x172)]);_0x4c2a32[_0x301824(_0x239f57._0x126f87,0x1bd,0x1c7,_0x239f57._0x230f97)]>0x0&&_0x1dca2a[_0x301824(0x193,0x17b,_0x239f57._0x2b183c,0x246)]({'role':_0x301824(_0x239f57._0x2cac0c,_0x239f57._0x5aa912,_0x239f57._0x24c608,_0x239f57._0x23a067),'content':_0x4c2a32});for(const _0x965ea7 of _0x52989b['messages']){const _0x3a2e0f=[],_0x1be829=[],_0x3bfae9=()=>{const _0x3f50f6={_0x15c03a:0x159,_0x155f82:0x5},_0x119094={_0x5cfb6c:0x4ea};function _0x4a7cf5(_0x1e658a,_0x45b1ee,_0x27275c,_0x23a49b){return _0x5897ac(_0x45b1ee,_0x45b1ee-0xf8,_0x23a49b-_0x119094._0x5cfb6c,_0x23a49b-0x9b);}function _0x558b99(_0x27f5db,_0x3fb917,_0xf06fc5,_0x3332e6){return _0x301824(_0x27f5db-_0x3f50f6._0x15c03a,_0xf06fc5,_0x27f5db- -0x15d,_0x3332e6-_0x3f50f6._0x155f82);}if(_0x965ea7[_0x4a7cf5(_0x212e99._0x335c1b,0x407,0x482,0x437)]===_0x558b99(0x13d,0x163,0x1d2,0xdc)){if(_0x3a2e0f[_0x558b99(0x6a,_0x212e99._0x4169af,-_0x212e99._0x10b672,_0x212e99._0x1d580e)]===0x0&&_0x1be829['length']===0x0)return;_0x1dca2a[_0x558b99(0xe3,0x6b,0x38,0x1a2)]({'role':'assistant','content':_0x3a2e0f[_0x4a7cf5(_0x212e99._0x4f47e0,_0x212e99._0x4bdaad,0x3fe,_0x212e99._0x32a3bd)]>0x0?_0x3a2e0f[_0x558b99(_0x212e99._0x29d379,_0x212e99._0x5758c0,_0x212e99._0x47bd74,0x9f)]('\x0a\x0a'):null,..._0x1be829[_0x4a7cf5(_0x212e99._0x4bee3f,_0x212e99._0x468b05,0x36d,_0x212e99._0x80225c)]>0x0?{'tool_calls':_0x1be829[_0x558b99(0x80,-_0x212e99._0x511eb0,_0x212e99._0x573b9e,-_0x212e99._0x3824b4)](0x0)}:{}}),_0x3a2e0f[_0x4a7cf5(0x406,_0x212e99._0x14faf1,0x306,_0x212e99._0x21184b)]=0x0;return;}if(_0x3a2e0f[_0x558b99(0x6a,_0x212e99._0x3691fc,_0x212e99._0x57630f,_0x212e99._0x428edb)]===0x0)return;_0x1dca2a[_0x4a7cf5(_0x212e99._0xbf8235,_0x212e99._0x5d1ce8,0x3f9,0x430)]({'role':_0x965ea7[_0x558b99(_0x212e99._0x1fb716,_0x212e99._0x2af52b,0x68,_0x212e99._0x60e925)],'content':_0x3a2e0f['join']('\x0a\x0a')}),_0x3a2e0f[_0x4a7cf5(0x392,0x34e,0x411,_0x212e99._0x80225c)]=0x0;};for(const _0xc2eea5 of normalizeContent(_0x965ea7[_0x301824(0x1d4,_0x239f57._0x1a2522,0x207,0x1c5)])){if(_0xc2eea5[_0x5897ac(-_0x239f57._0x341011,-0x1d3,-_0x239f57._0xf82b85,-_0x239f57._0x2f9b50)]==='text'){_0x3a2e0f[_0x5897ac(-0x9c,-0x57,-_0x239f57._0x2e23fd,-_0x239f57._0x360795)](_0xc2eea5[_0x5897ac(-0xc3,-_0x239f57._0x560ad0,-0xbc,-_0x239f57._0x235407)]);continue;}if(_0xc2eea5[_0x301824(0x298,0x2a4,0x1eb,0x19e)]==='tool_use'){_0x1be829[_0x301824(_0x239f57._0x2a9fa4,_0x239f57._0x53b581,_0x239f57._0x230999,0x18d)]({'id':_0xc2eea5['id'],'type':'function','function':{'name':_0xc2eea5['name'],'arguments':JSON['stringify'](_0xc2eea5[_0x301824(_0x239f57._0x3f529e,0x30e,0x286,0x1f5)]??{})}});continue;}if(_0xc2eea5['type']!==_0x301824(_0x239f57._0x2be2ad,0x2df,_0x239f57._0x1bcb26,0x20e))continue;_0x3bfae9(),_0x1dca2a['push']({'role':'tool','content':getToolResultText(_0xc2eea5[_0x5897ac(-_0x239f57._0xe82030,-_0x239f57._0x13040b,-_0x239f57._0x3cafb8,-0x15d)]),'tool_call_id':_0xc2eea5[_0x5897ac(-_0x239f57._0x40fd96,-_0x239f57._0x579268,-0x81,-_0x239f57._0x4f0aad)]});const _0x67688a=getToolResultImages(_0xc2eea5[_0x301824(0x163,_0x239f57._0x59f321,_0x239f57._0x4409d5,_0x239f57._0x560ad0)]);_0x67688a[_0x301824(_0x239f57._0xe2ee5b,_0x239f57._0x538bc5,_0x239f57._0x3f2ad9,_0x239f57._0x222e32)]>0x0&&_0x1dca2a['push']({'role':_0x301824(0x291,_0x239f57._0x14ba58,0x221,0x2de),'content':[{'type':_0x301824(0x25d,0x190,_0x239f57._0x38752d,_0x239f57._0x30dfd6),'text':'Image\x20returned\x20by\x20ViewFile\x20for\x20tool\x20result\x20'+_0xc2eea5[_0x301824(_0x239f57._0xd13189,0x21a,_0x239f57._0x44211d,_0x239f57._0xec8f61)]+'.'},..._0x67688a['map'](_0x420993=>({'type':_0x5897ac(-0x1f2,-0x137,-0x167,-0x1e9),'image_url':{'url':'data:'+_0x420993[_0x301824(0x2c7,0x216,0x29f,0x347)][_0x5897ac(-0x9d,-0x26,-0xea,-0x157)]+_0x5897ac(0x18,0x6,-0x70,-0xe5)+_0x420993[_0x301824(0x35d,0x2a8,0x29f,0x232)][_0x301824(0x17d,0x226,0x19c,0x149)]}}))]});}_0x3bfae9();}const _0x185be0=resolveOpenAiReasoningConfig(_0x52989b['reasoning']);function _0x5897ac(_0x2a729c,_0x270b6a,_0x199189,_0x119407){return _0x2b6123(_0x2a729c,_0x270b6a-0xe,_0x199189- -_0x3cb694._0x2b2814,_0x119407-_0x3cb694._0x1dce66);}return{'model':_0x52989b['model'],'messages':_0x1dca2a,'stream':_0x195646,..._0x185be0?{'max_completion_tokens':_0x52989b['maxTokens']}:{'max_tokens':_0x52989b[_0x5897ac(-_0x239f57._0x539280,-0x1ce,-_0x239f57._0x106d40,-0x1d2)]},..._0x185be0?.[_0x5897ac(-_0x239f57._0x1f1313,-_0x239f57._0x3ce9b1,-_0x239f57._0x47f97b,-0x106)]?{'reasoning_effort':_0x185be0[_0x301824(0x24b,_0x239f57._0x276665,_0x239f57._0x4d04b1,_0x239f57._0x21edb2)]}:{},...createToolDefinitions(_0x52989b[_0x301824(0x249,0x1dc,_0x239f57._0x33f5ce,_0x239f57._0x521a29)])?{'tools':createToolDefinitions(_0x52989b[_0x5897ac(-0x3f,-_0x239f57._0x5cbe06,-0xd8,-_0x239f57._0x25f2b9)])}:{}};}function createResponsesRequestBody(_0x5c53fe,_0x4b7fe3){return{...toOpenAiResponsesRequest(_0x5c53fe),..._0x4b7fe3?{'stream':!![]}:{},'store':![]};}function createOpenAiResponsesWebSocketEvent(_0x3e2204,_0x21dfb4={}){const _0x4ad6d0={_0x3b0319:0x1e2,_0x2ab3d9:0x31,_0x3c015a:0xdb,_0x3431f7:0x1a7,_0x4e2a35:0x137,_0xbe27b5:0x148},_0x4f0d28={_0x1b58ef:0x565},_0x37658e={_0x4b929b:0x5f,_0xeec54:0x1b3};function _0x208b0e(_0x51946c,_0x36fc66,_0x49a016,_0x4ac939){return _0x2b6123(_0x4ac939,_0x36fc66-_0x37658e._0x4b929b,_0x36fc66- -_0x37658e._0xeec54,_0x4ac939-0x15c);}const _0x4f4dd2=toOpenAiResponsesRequest(_0x3e2204);function _0x4cf849(_0x218cbd,_0xfc625b,_0x23b4cd,_0x5c947c){return _0x38c793(_0x23b4cd,_0xfc625b-0x149,_0x5c947c- -_0x4f0d28._0x1b58ef,_0x5c947c-0x1b3);}return{'type':_0x4cf849(-0x13b,-0x230,-0x23a,-_0x4ad6d0._0x3b0319),..._0x4f4dd2,..._0x21dfb4[_0x4cf849(-0x144,-_0x4ad6d0._0x2ab3d9,-0xd4,-_0x4ad6d0._0x3c015a)]?{'input':_0x21dfb4[_0x208b0e(0x14f,_0x4ad6d0._0x3431f7,0x157,_0x4ad6d0._0x4e2a35)]}:{},..._0x21dfb4['previousResponseId']?{'previous_response_id':_0x21dfb4[_0x208b0e(_0x4ad6d0._0xbe27b5,0xf0,0x154,0x42)]}:{},'store':![]};}function normalizeAssistantContent(_0x2273a7){const _0x835e7e={_0x53a761:0x1ab,_0x1ed018:0x260,_0x29b976:0x1ff,_0x35b7a5:0x458,_0x5b93aa:0x4b5,_0x4dda9e:0x3aa},_0x2f2d7c={_0x116ec3:0x146,_0x8f50be:0x16a,_0x457bff:0x91,_0x51801a:0x165},_0x11c049={_0x4388e1:0x1b7,_0x1ad317:0x4db};if(typeof _0x2273a7===_0x132d81(-0x253,-_0x835e7e._0x53a761,-_0x835e7e._0x1ed018,-_0x835e7e._0x29b976))return _0x2273a7;function _0x132d81(_0x4aba98,_0x37ad49,_0x5b7693,_0x4074f7){return _0x2b6123(_0x5b7693,_0x37ad49-0x123,_0x37ad49- -0x476,_0x4074f7-0xbd);}function _0x3693e6(_0x1995ba,_0x58cec0,_0x221482,_0x3e1ea6){return _0x2b6123(_0x221482,_0x58cec0-0xba,_0x58cec0-0xd6,_0x3e1ea6-0x1b0);}if(!Array['isArray'](_0x2273a7))return'';return _0x2273a7[_0x3693e6(0x47d,_0x835e7e._0x35b7a5,0x4f8,_0x835e7e._0x5b93aa)](_0x49088c=>{function _0x1637dc(_0x3d5d5e,_0x34a531,_0x5cc678,_0x12b93f){return _0x3693e6(_0x3d5d5e-_0x11c049._0x4388e1,_0x3d5d5e- -_0x11c049._0x1ad317,_0x12b93f,_0x12b93f-0xad);}return _0x49088c[_0x1637dc(-_0x2f2d7c._0x116ec3,-_0x2f2d7c._0x8f50be,-_0x2f2d7c._0x457bff,-_0x2f2d7c._0x51801a)]==='text'?_0x49088c['text']:_0x49088c['refusal'];})[_0x3693e6(0x3fa,_0x835e7e._0x4dda9e,0x37f,0x34c)]('');}function normalizeResponsesMessageContent(_0x37310c){const _0x716e4b={_0x14e073:0x6f0,_0x2d1518:0x5e8,_0x19bb00:0x719},_0xb75fff={_0x1211bb:0x133,_0x38f143:0x151,_0x3b03da:0x1be,_0x38e823:0x4c5,_0x33ee3b:0x495,_0x5ef18b:0x516,_0x259cd8:0x166,_0x1d10a9:0x113,_0x1d85a3:0xb,_0x475d71:0x466,_0x13bed5:0x492,_0x47cd70:0x4f2,_0x11c695:0x462,_0x76fc21:0x4c3,_0x350f67:0x61,_0x2892ee:0x28,_0x3f10b2:0x48,_0xd206b5:0x53c,_0x38a49b:0x479,_0x5125a9:0x508},_0x42d270={_0x1cfa2d:0xcd,_0x1c7f4b:0x1c9},_0x7d3b2e={_0x24f3c7:0xc5,_0x1d6e97:0x122};function _0x31cf68(_0x4c036d,_0x354955,_0x12f5a0,_0x3cc1ca){return _0x2b6123(_0x3cc1ca,_0x354955-0x79,_0x12f5a0-_0x7d3b2e._0x24f3c7,_0x3cc1ca-_0x7d3b2e._0x1d6e97);}function _0x3ba102(_0xbc59ab,_0x55ec52,_0x356ab1,_0x589b30){return _0x38c793(_0x55ec52,_0x55ec52-_0x42d270._0x1cfa2d,_0x589b30-0x1c8,_0x589b30-_0x42d270._0x1c7f4b);}if(!Array[_0x3ba102(_0x716e4b._0x14e073,0x612,_0x716e4b._0x2d1518,0x6aa)](_0x37310c))return'';return _0x37310c[_0x3ba102(0x668,_0x716e4b._0x19bb00,0x680,0x67a)](_0x4708fc=>{const _0x24354a={_0x10f855:0x27,_0x4f920f:0x119},_0x3876de={_0x6abdd3:0x41,_0x4a95bc:0x691};function _0x134f5e(_0x2bf28d,_0x31b371,_0x7b3bb2,_0x3c8936){return _0x3ba102(_0x2bf28d-_0x3876de._0x6abdd3,_0x3c8936,_0x7b3bb2-0x64,_0x31b371- -_0x3876de._0x4a95bc);}function _0x5ee43e(_0x1ce4bf,_0x50355d,_0x16bf36,_0x13070d){return _0x3ba102(_0x1ce4bf-_0x24354a._0x10f855,_0x50355d,_0x16bf36-_0x24354a._0x4f920f,_0x13070d- -0xf4);}if(!_0x4708fc||typeof _0x4708fc!==_0x134f5e(-0x1ae,-_0xb75fff._0x1211bb,-_0xb75fff._0x38f143,-_0xb75fff._0x3b03da))return'';const _0xcda266=_0x4708fc;if(_0xcda266['type']===_0x134f5e(-0x186,-0xc7,-0x12c,-0x179)&&typeof _0xcda266[_0x5ee43e(_0xb75fff._0x38e823,0x592,_0xb75fff._0x33ee3b,_0xb75fff._0x5ef18b)]===_0x134f5e(-_0xb75fff._0x259cd8,-0xce,-_0xb75fff._0x1d10a9,-_0xb75fff._0x1d85a3))return _0xcda266[_0x5ee43e(_0xb75fff._0x475d71,_0xb75fff._0x13bed5,0x5c8,0x516)];if(_0xcda266[_0x5ee43e(0x43e,_0xb75fff._0x47cd70,_0xb75fff._0x11c695,_0xb75fff._0x76fc21)]===_0x134f5e(-0x4b,-_0xb75fff._0x350f67,_0xb75fff._0x2892ee,-_0xb75fff._0x3f10b2)&&typeof _0xcda266[_0x5ee43e(0x55f,0x47f,0x497,_0xb75fff._0xd206b5)]==='string')return _0xcda266[_0x5ee43e(_0xb75fff._0x38a49b,_0xb75fff._0x5125a9,0x548,_0xb75fff._0xd206b5)];return'';})['join']('');}function extractOpenAiReasoningText(_0x4f8f79){const _0x3329c7={_0x2a93b0:0x11,_0x197f21:0x12,_0x2f954d:0x6f,_0x57b0bb:0x109,_0x30bcbf:0x78,_0x160906:0xa0,_0x35f0cb:0x47,_0x126f5e:0x547,_0x18a780:0x466,_0x4db679:0xee,_0x46e883:0x23,_0x386cdb:0x563,_0x519ada:0x4af,_0x4ca9f1:0x49e,_0x5927c2:0x4b5,_0x3288f2:0x508},_0x42c896={_0xd6bd4c:0x92,_0x3a9871:0x1bc},_0x1af2d4={_0x48c97f:0xdf,_0x297b0d:0x41};if(typeof _0x4f8f79[_0x461394(0x7,-0x28,_0x3329c7._0x2a93b0,_0x3329c7._0x197f21)]===_0x461394(-0xaa,-_0x3329c7._0x2f954d,-0x9,-0x125))return _0x4f8f79['text'];if(!Array[_0x461394(_0x3329c7._0x57b0bb,_0x3329c7._0x30bcbf,_0x3329c7._0x160906,-_0x3329c7._0x35f0cb)](_0x4f8f79[_0x100b86(0x4bc,0x42d,_0x3329c7._0x126f5e,_0x3329c7._0x18a780)]))return'';function _0x100b86(_0x45aaab,_0x52c889,_0x488d91,_0x17fae5){return _0x38c793(_0x52c889,_0x52c889-_0x1af2d4._0x48c97f,_0x45aaab-0xb1,_0x17fae5-_0x1af2d4._0x297b0d);}function _0x461394(_0x7bc080,_0x5472b2,_0x53ad51,_0x57d9bb){return _0x38c793(_0x53ad51,_0x5472b2-_0x42c896._0xd6bd4c,_0x5472b2- -0x46a,_0x57d9bb-_0x42c896._0x3a9871);}return _0x4f8f79['content'][_0x461394(-_0x3329c7._0x4db679,-_0x3329c7._0x46e883,-0x4d,-0x33)](_0x373075=>_0x373075['type']===_0x461394(-0x134,-0xaa,-0x158,-0x13f)&&typeof _0x373075[_0x461394(-0x86,-0x28,0x6e,0x5e)]===_0x461394(-0x6,-0x6f,-0x4b,0x3c))[_0x100b86(_0x3329c7._0x386cdb,_0x3329c7._0x519ada,_0x3329c7._0x4ca9f1,0x4ef)](_0x78f591=>_0x78f591[_0x461394(-0x13,-0x28,-0x9f,-0x41)]??'')[_0x100b86(_0x3329c7._0x5927c2,0x50e,0x56d,_0x3329c7._0x3288f2)]('');}function createOpenAiReasoningBlock(_0x14dcdc){const _0x4f6365={_0x1686bf:0x1b3,_0x14f4ae:0x1ca,_0x11562a:0x1f4,_0x576065:0x159,_0x3a90c0:0x215,_0x1ac145:0x104,_0x8df1fe:0x149,_0x576ce2:0x1c0},_0x1da0d1={_0x259d9d:0x13e,_0x484c68:0x5ca,_0x4da978:0x134},_0x4086e9={_0x12ee98:0x113,_0x452878:0x14a};function _0x488db1(_0x5c9f5c,_0x35fbf9,_0x5d0b9c,_0x2b4dee){return _0x2b6123(_0x5d0b9c,_0x35fbf9-_0x4086e9._0x12ee98,_0x5c9f5c- -0x3ca,_0x2b4dee-_0x4086e9._0x452878);}function _0x1014d4(_0xa2b495,_0x496c80,_0x8ceb7b,_0x492f21){return _0x38c793(_0x8ceb7b,_0x496c80-_0x1da0d1._0x259d9d,_0x496c80- -_0x1da0d1._0x484c68,_0x492f21-_0x1da0d1._0x4da978);}const _0x439047=extractOpenAiReasoningText(_0x14dcdc);return{'type':_0x1014d4(-_0x4f6365._0x1686bf,-_0x4f6365._0x14f4ae,-0x28e,-_0x4f6365._0x11562a),'summary':structuredClone(_0x14dcdc['summary']??[]),..._0x14dcdc['id']?{'id':_0x14dcdc['id']}:{},..._0x14dcdc[_0x488db1(-_0x4f6365._0x576065,-_0x4f6365._0x3a90c0,-_0x4f6365._0x1ac145,-0x129)]?{'encryptedContent':_0x14dcdc['encrypted_content']}:{},..._0x439047[_0x488db1(-0x12f,-_0x4f6365._0x8df1fe,-0xd8,-_0x4f6365._0x576ce2)]>0x0?{'text':_0x439047}:{}};}function hasVisibleOpenAiReasoning(_0x30739d){const _0x496f7f={_0x43acb3:0x144,_0x18ebaf:0x200,_0x7c61c4:0x1b0,_0x2fccde:0x257,_0x266517:0x207,_0x4e094a:0xf8},_0x215b54={_0x3e9626:0x21b},_0x15b6ad={_0x25d420:0x1};function _0x104a7b(_0x28b1c6,_0x5d1140,_0x550969,_0xea4343){return _0x2b6123(_0x5d1140,_0x5d1140-0x14d,_0x550969- -0x3a5,_0xea4343-_0x15b6ad._0x25d420);}function _0x382cf0(_0x2d1273,_0x37cbb6,_0x2a29d5,_0x2a1674){return _0x38c793(_0x2d1273,_0x37cbb6-0x137,_0x2a1674- -_0x215b54._0x3e9626,_0x2a1674-0x129);}return _0x30739d['summary'][_0x382cf0(0x239,_0x496f7f._0x43acb3,_0x496f7f._0x18ebaf,_0x496f7f._0x7c61c4)]>0x0||typeof _0x30739d[_0x382cf0(_0x496f7f._0x2fccde,0x282,_0x496f7f._0x266517,0x227)]===_0x104a7b(-0x180,-0x92,-0xda,-_0x496f7f._0x4e094a);}function parseChatCompletionResponse(_0x571879){const _0x3eca13={_0x35f007:0x1c8,_0x5f42d7:0x129,_0x2f343c:0x51c,_0x428d40:0x1a0,_0x49db4e:0x1c4,_0x4451d8:0x649,_0x54f990:0x5f1,_0x82d2c6:0x556,_0x4d0ea7:0x60e,_0xa7c5f1:0xe4,_0x213249:0xda,_0x5267c7:0x14b,_0x1ca9a6:0x5d4,_0x512bfd:0x5d9,_0x1df7ba:0x520,_0x59e368:0x658,_0x37f565:0x1e6,_0x4b5773:0x220},_0x207160={_0x439e32:0x127,_0x4ebe1a:0x54e},_0xde3ba7={_0x407459:0x10a,_0x4ed8af:0x174},_0x233cd4=[],_0x471882=[];let _0x1eab62=_0x363fd8(-_0x3eca13._0x35f007,-0x251,-0x237,-_0x3eca13._0x5f42d7);function _0xd667bb(_0x3bed8e,_0x3cac01,_0x59586d,_0x4a38fc){return _0x2b6123(_0x3cac01,_0x3cac01-_0xde3ba7._0x407459,_0x3bed8e-0x2dd,_0x4a38fc-_0xde3ba7._0x4ed8af);}function _0x363fd8(_0x23d17d,_0x3a21ea,_0x38341d,_0x3109c3){return _0x38c793(_0x3a21ea,_0x3a21ea-_0x207160._0x439e32,_0x23d17d- -_0x207160._0x4ebe1a,_0x3109c3-0x3e);}for(const _0x3aac3f of _0x571879[_0xd667bb(0x50e,0x5c5,0x53e,_0x3eca13._0x2f343c)]??[]){const _0x255dfa=_0x3aac3f[_0x363fd8(-0x16c,-0x211,-0x15e,-0x1a2)],_0x48cf4d=normalizeAssistantContent(_0x255dfa?.[_0x363fd8(-0x143,-_0x3eca13._0x428d40,-0x10c,-_0x3eca13._0x49db4e)]);_0x48cf4d['length']>0x0&&_0x233cd4[_0xd667bb(0x5f1,0x697,0x56e,_0x3eca13._0x4451d8)](_0x48cf4d),_0x255dfa?.['tool_calls']&&_0x471882[_0xd667bb(_0x3eca13._0x54f990,_0x3eca13._0x82d2c6,_0x3eca13._0x4d0ea7,0x5bd)](..._0x255dfa['tool_calls']),_0x3aac3f['finish_reason']===_0x363fd8(-_0x3eca13._0xa7c5f1,-0x109,-_0x3eca13._0x213249,-0xcf)&&(_0x1eab62=_0xd667bb(0x5b0,0x540,0x55a,0x57f));}return _0x471882['length']>0x0&&(_0x1eab62=_0x363fd8(-_0x3eca13._0x5267c7,-0x161,-0xae,-0x121)),{'id':_0x571879['id']??_0xd667bb(0x513,0x541,_0x3eca13._0x1ca9a6,_0x3eca13._0x512bfd)+Date[_0xd667bb(0x5d1,0x672,_0x3eca13._0x1df7ba,0x606)](),'content':createContentBlocks(_0x233cd4[_0xd667bb(0x5b1,0x53d,_0x3eca13._0x59e368,0x4e7)](''),_0x471882),'stopReason':_0x1eab62,'usage':createUsage(_0x571879[_0x363fd8(-0x1ee,-_0x3eca13._0x37f565,-_0x3eca13._0x4b5773,-0x1d0)])};}function parseResponsesResponse(_0x35dbaa,_0x169821){const _0x4f55ca={_0x3081e3:0x6a,_0x1aeada:0x70,_0x41f058:0x17,_0xf7dac5:0x2b,_0x5e2bc2:0x5a,_0x1d00d0:0x100,_0x1d0e88:0xc7,_0x485b8a:0x186,_0x2a5470:0xfe,_0x49327d:0x152,_0x5eb2c1:0xce,_0x5f04ae:0xfc,_0x2fc2ee:0x3a,_0x2e2f2c:0xff,_0x27a6db:0x8e,_0x36d599:0x9b,_0x216fdf:0x8d,_0x3e8080:0x87,_0x4fcc48:0x97,_0x1eb410:0xe,_0xa846a0:0x68,_0x11c6ae:0xb7,_0x171f67:0x12a,_0x3edd56:0xfd,_0x388bdf:0x0,_0x7e5330:0xc2,_0x390983:0x1c6,_0x6de3ef:0x13f,_0x471f09:0x16d,_0x872d3a:0x130,_0x43ae15:0x9b,_0x414856:0x39,_0x184b0f:0x2c,_0x579ac9:0x212,_0x1226b6:0xa2,_0x28016b:0x169,_0x30776b:0xab,_0x12a0c5:0x14e,_0x1e4cd0:0xbd,_0x31f0af:0xbe,_0x47a439:0x3b,_0x3cdb87:0xc1,_0x25d1be:0x19f,_0x5ed4d3:0x2a,_0x29d41f:0x9a,_0x41a5fa:0xa7,_0x38d0d1:0x78,_0x11be8f:0xcd,_0x1b4231:0x131,_0x449127:0x16e,_0x3654e4:0x6b,_0x271b32:0x96,_0x5b2ba5:0x23d,_0x25414c:0x17a,_0x3788d0:0x1b7,_0x263c8a:0xd2,_0x1b1bc8:0x25,_0x31619b:0xe5,_0x21d160:0xaf,_0x1d996d:0x17,_0x5f09f9:0x1bf,_0x19613e:0x10e,_0x3ee42b:0x8f,_0x55e32f:0xa1,_0x33e32d:0x21,_0x409983:0xd4},_0x58dd85={_0x32ddf5:0xa6},_0x486941={_0x1b0490:0x214},_0x5b7295=[];function _0x14986d(_0x2f38c3,_0x55bc87,_0x773cd3,_0x1c1a4d){return _0x2b6123(_0x55bc87,_0x55bc87-0xb9,_0x773cd3- -_0x486941._0x1b0490,_0x1c1a4d-0x15a);}function _0xc88042(_0x44730f,_0x2050b4,_0x3e50a1,_0x4d212c){return _0x2b6123(_0x3e50a1,_0x2050b4-_0x58dd85._0x32ddf5,_0x44730f- -0x2fd,_0x4d212c-0x1bd);}for(const _0x339852 of _0x35dbaa[_0x14986d(-_0x4f55ca._0x3081e3,0xb,0x21,_0x4f55ca._0x1aeada)]??[]){if(isResponsesReasoningItem(_0x339852)){if(isUserVisibleReasoning(_0x169821)){const _0x14b8d0=createOpenAiReasoningBlock(_0x339852);hasVisibleOpenAiReasoning(_0x14b8d0)&&_0x5b7295[_0xc88042(_0x4f55ca._0x41f058,0x36,_0x4f55ca._0xf7dac5,-_0x4f55ca._0x5e2bc2)](_0x14b8d0);}continue;}if(isResponsesMessageItem(_0x339852)){const _0x32844a=normalizeResponsesMessageContent(_0x339852[_0x14986d(0x55,_0x4f55ca._0x1d00d0,_0x4f55ca._0x1d0e88,_0x4f55ca._0x485b8a)]);_0x32844a['length']>0x0&&_0x5b7295['push']({'type':_0x14986d(0x17a,0x1b4,_0x4f55ca._0x2a5470,0xd2),'text':_0x32844a});continue;}if(!isResponsesFunctionCallItem(_0x339852)||typeof _0x339852[_0xc88042(-0x8b,-0x109,-_0x4f55ca._0x49327d,-_0x4f55ca._0x5eb2c1)]!==_0x14986d(0x65,0x16c,0xb7,_0x4f55ca._0x5f04ae)||_0x339852['call_id'][_0x14986d(-_0x4f55ca._0x2fc2ee,_0x4f55ca._0x2e2f2c,_0x4f55ca._0x27a6db,0x118)]()[_0x14986d(_0x4f55ca._0x36d599,_0x4f55ca._0x216fdf,0x87,_0x4f55ca._0x3e8080)]===0x0||typeof _0x339852['name']!==_0xc88042(-0x32,-0x67,-_0x4f55ca._0x4fcc48,_0x4f55ca._0x1eb410)||_0x339852['name'][_0xc88042(-0x5b,-0x4d,-0xaa,-0x99)]()[_0xc88042(-0x62,0x45,_0x4f55ca._0xa846a0,-0xbc)]===0x0||typeof _0x339852[_0xc88042(-_0x4f55ca._0x11c6ae,-_0x4f55ca._0x171f67,-_0x4f55ca._0x3edd56,_0x4f55ca._0x388bdf)]!==_0xc88042(-0x32,-_0x4f55ca._0x7e5330,-0x32,0x3b))continue;_0x5b7295[_0x14986d(_0x4f55ca._0x390983,_0x4f55ca._0x6de3ef,0x100,0xca)]({'type':_0x14986d(0x116,_0x4f55ca._0x471f09,0xbf,_0x4f55ca._0x872d3a),'id':_0x339852[_0x14986d(_0x4f55ca._0x43ae15,0xe8,0x5e,-0x27)],'name':_0x339852[_0x14986d(0x92,-0x52,_0x4f55ca._0x414856,_0x4f55ca._0x184b0f)],'input':parseToolInput2(_0x339852['arguments'])});}return!_0x5b7295[_0x14986d(_0x4f55ca._0x579ac9,_0x4f55ca._0x1226b6,_0x4f55ca._0x28016b,_0x4f55ca._0x30776b)](_0xf3061=>_0xf3061[_0xc88042(-0x3e,0x6,-0xa9,-0xb5)]===_0x14986d(0x37,0x16d,0xfe,0x7a))&&_0x35dbaa[_0x14986d(_0x4f55ca._0x12a0c5,_0x4f55ca._0x1e4cd0,_0x4f55ca._0x31f0af,_0x4f55ca._0x47a439)]&&_0x5b7295[_0x14986d(_0x4f55ca._0x3cdb87,_0x4f55ca._0x25d1be,0x100,0xb9)]({'type':'text','text':_0x35dbaa[_0x14986d(0x9d,0x106,_0x4f55ca._0x31f0af,0x154)]}),{'id':_0x35dbaa['id'],'content':_0x5b7295,'stopReason':_0x5b7295['some'](_0x2ca048=>_0x2ca048[_0xc88042(-0x3e,0x2d,0xe,-0xf3)]===_0xc88042(-0x2a,-0x97,-0x9d,-0x79))?_0xc88042(-_0x4f55ca._0x5ed4d3,_0x4f55ca._0x29d41f,0x23,-0x61):_0xc88042(-_0x4f55ca._0x41a5fa,0x1d,-0xf1,-_0x4f55ca._0x38d0d1),'usage':{'inputTokens':_0x35dbaa[_0xc88042(-_0x4f55ca._0x11be8f,-0x50,-_0x4f55ca._0x1b4231,-_0x4f55ca._0x449127)]?.[_0xc88042(-_0x4f55ca._0x3654e4,-0x108,-0x102,-0x60)]??0x0,'outputTokens':_0x35dbaa[_0x14986d(-_0x4f55ca._0x5ed4d3,-0x22,0x1c,_0x4f55ca._0x271b32)]?.[_0x14986d(_0x4f55ca._0x5b2ba5,_0x4f55ca._0x25414c,0x19f,_0x4f55ca._0x3788d0)]??0x0,..._0x35dbaa['usage']?.[_0xc88042(-_0x4f55ca._0x263c8a,-_0x4f55ca._0x31f0af,-0x5f,-0x189)]?.[_0xc88042(_0x4f55ca._0x1b1bc8,_0x4f55ca._0x31619b,0x31,0xb4)]!==void 0x0?{'reasoningTokens':_0x35dbaa['usage'][_0x14986d(-_0x4f55ca._0x21d160,0xca,_0x4f55ca._0x1d996d,-0x32)][_0x14986d(_0x4f55ca._0x5f09f9,0x1b9,_0x4f55ca._0x19613e,0x159)]}:{}},..._0x35dbaa[_0xc88042(-0xc8,-0x135,-0xbc,-0xdf)]?{'providerState':{'openaiResponsesOutput':structuredClone(_0x35dbaa[_0x14986d(-_0x4f55ca._0x3ee42b,-_0x4f55ca._0x55e32f,_0x4f55ca._0x33e32d,_0x4f55ca._0x409983)]),'openaiResponsesResponseId':_0x35dbaa['id']}}:{}};}function extractErrorMessage(_0x312449){const _0x24077f={_0x4bbf37:0xe2,_0x4ae2c1:0x73,_0x168d48:0x41d,_0xb0cbc2:0x49b,_0x4430a8:0x43f,_0x22914f:0x3fc,_0x459fa6:0x3af,_0xb02520:0x4d1,_0x187094:0x541,_0x5f5ac0:0x3d5,_0x3f07de:0x5a,_0x15470f:0x3f9,_0xe8ebc5:0x4ae,_0x2201c8:0x43,_0x433c81:0x48,_0x48d950:0x43,_0x421e55:0xfe,_0x48c780:0x4b9,_0x4e05fe:0x46a,_0x97743b:0x3f3,_0x47521f:0x4a0,_0x17bc98:0x3cb,_0x2c4c14:0x381,_0x36ad21:0x431,_0x159a21:0x54,_0x1c5b14:0xac,_0x422fff:0xb6,_0x3395a7:0x74,_0x4c6765:0xf,_0x3c8eb6:0x43,_0x2a5ad4:0x3f4},_0x587de2={_0x543202:0xc8,_0x409b11:0x107},_0x4695a6={_0x51e85d:0x29,_0x42b19f:0x1ea};if(_0x312449[_0x1bf87b(0xee,_0x24077f._0x4bbf37,0x43,-_0x24077f._0x4ae2c1)]===0x0)return'';function _0x1299d2(_0x387b41,_0x4df939,_0x4bd34f,_0x197c94){return _0x38c793(_0x4bd34f,_0x4df939-0x14d,_0x4df939-_0x4695a6._0x51e85d,_0x197c94-_0x4695a6._0x42b19f);}try{const _0x1f83c2=JSON[_0x1299d2(0x4c6,0x450,_0x24077f._0x168d48,0x449)](_0x312449);if(typeof _0x1f83c2[_0x1299d2(0x500,_0x24077f._0xb0cbc2,_0x24077f._0x4430a8,_0x24077f._0x22914f)]?.['message']===_0x1299d2(_0x24077f._0x459fa6,0x424,_0x24077f._0xb02520,0x3ad)&&_0x1f83c2[_0x1299d2(_0x24077f._0x187094,_0x24077f._0xb0cbc2,_0x24077f._0x5f5ac0,0x40e)][_0x1bf87b(0x36,0x11d,_0x24077f._0x3f07de,0xfe)][_0x1299d2(0x33a,0x3fb,_0x24077f._0x15470f,_0x24077f._0xe8ebc5)]()[_0x1bf87b(0x86,0xb6,_0x24077f._0x2201c8,_0x24077f._0x433c81)]>0x0)return _0x1f83c2['error'][_0x1bf87b(-_0x24077f._0x48d950,0xac,0x5a,_0x24077f._0x421e55)][_0x1299d2(_0x24077f._0x48c780,0x3fb,_0x24077f._0x4e05fe,_0x24077f._0x97743b)]();if(typeof _0x1f83c2[_0x1299d2(_0x24077f._0x47521f,0x40b,_0x24077f._0x17bc98,0x3c5)]===_0x1299d2(0x4bf,0x424,_0x24077f._0x2c4c14,_0x24077f._0x36ad21)&&_0x1f83c2[_0x1bf87b(0x69,_0x24077f._0x159a21,0x5a,_0x24077f._0x1c5b14)][_0x1bf87b(_0x24077f._0x422fff,-_0x24077f._0x3395a7,0x4a,-_0x24077f._0x4c6765)]()[_0x1bf87b(0x36,0x78,_0x24077f._0x3c8eb6,0x1c)]>0x0)return _0x1f83c2[_0x1299d2(0x40f,0x40b,0x3f3,_0x24077f._0x2a5ad4)]['trim']();}catch{return _0x312449;}function _0x1bf87b(_0x37db6b,_0x5b4389,_0x4a31b0,_0x5742a8){return _0x2b6123(_0x5b4389,_0x5b4389-_0x587de2._0x543202,_0x4a31b0- -0x258,_0x5742a8-_0x587de2._0x409b11);}return _0x312449;}async function createOpenAiApiError(_0x5599af){const _0x2a8ad={_0x32a6eb:0x1dd,_0x4c2982:0x115,_0x1f8f55:0x10a,_0x4e79d4:0x30,_0x33edcc:0x9,_0x4ba309:0x51,_0x583eca:0x42,_0x350df7:0x1c3,_0x469e7a:0x1ce,_0x586b45:0x161,_0x5d3c80:0x18b},_0x591a8a={_0x1b9fbe:0x1b4},_0x5199a3={_0x34b600:0x2ec},_0x143d11=(await _0x5599af[_0x44df7c(_0x2a8ad._0x32a6eb,_0x2a8ad._0x4c2982,_0x2a8ad._0x1f8f55,0x156)]())[_0x214f70(_0x2a8ad._0x4e79d4,_0x2a8ad._0x33edcc,-_0x2a8ad._0x4ba309,_0x2a8ad._0x583eca)]();function _0x44df7c(_0x22bffc,_0x2cbb07,_0x5dffc2,_0x3c76de){return _0x38c793(_0x22bffc,_0x2cbb07-0xb5,_0x3c76de- -_0x5199a3._0x34b600,_0x3c76de-0x1d5);}const _0xe29de4=extractErrorMessage(_0x143d11)||_0x5599af[_0x44df7c(_0x2a8ad._0x350df7,_0x2a8ad._0x469e7a,0x101,_0x2a8ad._0x586b45)]||'OpenAI\x20API\x20error\x20'+_0x5599af[_0x44df7c(0x174,_0x2a8ad._0x5d3c80,0x100,0xe8)];function _0x214f70(_0x2d8514,_0x5b1658,_0x3208c4,_0x111ec3){return _0x2b6123(_0x5b1658,_0x5b1658-0x21,_0x3208c4- -0x2f3,_0x111ec3-_0x591a8a._0x1b9fbe);}return new OpenAiApiError(_0x5599af['status'],_0x143d11,_0xe29de4);}function readSseData(_0x5d010c){const _0x45ee08={_0x5c49df:0x407,_0xe36405:0x3ea,_0x3eeebe:0x470,_0x44b26f:0x34d,_0x2a9285:0x498,_0x5cd729:0x4fc,_0x2ff4e9:0x4e3},_0x351722={_0x2db968:0x119},_0x5668b4={_0x11e485:0xc0};function _0x4fbb9b(_0x43c155,_0x5f0f2c,_0x5ebc4a,_0x5b8a89){return _0x2b6123(_0x5b8a89,_0x5f0f2c-0x3d,_0x5ebc4a-_0x5668b4._0x11e485,_0x5b8a89-0x51);}function _0x29e356(_0x2b7748,_0x552d34,_0x701c37,_0x54b5e8){return _0x38c793(_0x701c37,_0x552d34-0x30,_0x2b7748-0x111,_0x54b5e8-_0x351722._0x2db968);}return _0x5d010c[_0x4fbb9b(0x469,_0x45ee08._0x5c49df,0x3cd,_0x45ee08._0xe36405)]('\x0a')[_0x4fbb9b(_0x45ee08._0x3eeebe,0x37d,0x3d7,_0x45ee08._0x44b26f)](_0x5e8625=>_0x5e8625['startsWith']('data:'))[_0x4fbb9b(_0x45ee08._0x2a9285,_0x45ee08._0x5cd729,0x442,0x499)](_0x80f892=>_0x80f892[_0x29e356(0x510,0x516,0x568,0x520)](0x5)[_0x4fbb9b(0x464,0x45b,0x3be,0x3dd)]())['join']('\x0a')[_0x29e356(_0x45ee08._0x2ff4e9,0x42a,0x5aa,0x4ed)]();}function readString(_0x2ea2ba){const _0x4d8120={_0x531e16:0x16c,_0x18ad1f:0x1fe,_0x366b28:0x19f,_0xb744f5:0x1a9};function _0x233064(_0xcfba68,_0x15fdec,_0x2bedb7,_0x2c141e){return _0x2b6123(_0x2c141e,_0x15fdec-0x11,_0x15fdec- -0x499,_0x2c141e-0x199);}return typeof _0x2ea2ba==='string'&&_0x2ea2ba[_0x233064(-_0x4d8120._0x531e16,-_0x4d8120._0x18ad1f,-_0x4d8120._0x366b28,-_0x4d8120._0xb744f5)]>0x0?_0x2ea2ba:void 0x0;}function extractReasoningDetails(_0x4aa2b7){const _0x275543={_0x4d618a:0x2b0,_0x417e69:0x3be,_0x10b750:0x35c,_0x46fcbb:0x1da,_0x2c868b:0x29b,_0xce6f00:0x1a1,_0x177dd6:0x1ba},_0x2b6651={_0xd6ed18:0x25d,_0xe3211f:0x283,_0x138343:0x378,_0x2f7dc7:0x309,_0xa62bbf:0x48,_0x34bfe5:0xe5,_0x51fc89:0x27,_0x1dbd68:0x6e,_0x238f46:0x1cd,_0x2eecad:0x25b,_0x39eedc:0x204,_0x34c39b:0x372,_0x27344e:0x2cf},_0x136f65={_0x5d00b4:0x119,_0x2fc314:0x19b},_0x3a363c={_0x30bb6e:0xc7},_0x113a07={_0xb7fbe4:0xe},_0x585790={_0x2ccf0a:0x113};function _0x31e728(_0x26cf95,_0x56a63a,_0x32304c,_0x17a5be){return _0x2b6123(_0x17a5be,_0x56a63a-_0x585790._0x2ccf0a,_0x32304c- -0x475,_0x17a5be-0x1ee);}if(!Array['isArray'](_0x4aa2b7))return void 0x0;function _0x3ddddf(_0xb50611,_0x5a91a3,_0x4317d3,_0x1d3e19){return _0x2b6123(_0xb50611,_0x5a91a3-0x103,_0x1d3e19-_0x113a07._0xb7fbe4,_0x1d3e19-0x181);}const _0x353e32=_0x4aa2b7[_0x3ddddf(0x2da,_0x275543._0x4d618a,_0x275543._0x417e69,_0x275543._0x10b750)](_0x238d3f=>{if(!_0x238d3f||typeof _0x238d3f!==_0x1ecfc9(0x1b5,0x198,_0x2b6651._0xd6ed18,_0x2b6651._0xe3211f))return[];const _0x4c7fd0=_0x238d3f;if(typeof _0x4c7fd0[_0x1ecfc9(_0x2b6651._0x138343,0x23f,_0x2b6651._0x2f7dc7,0x248)]===_0x34d6ac(-_0x2b6651._0xa62bbf,_0x2b6651._0x34bfe5,-0x78,_0x2b6651._0x51fc89))return[_0x4c7fd0[_0x34d6ac(0xdf,0x9,0x8c,_0x2b6651._0x1dbd68)]];if(typeof _0x4c7fd0[_0x1ecfc9(_0x2b6651._0x238f46,_0x2b6651._0x2eecad,0x22a,_0x2b6651._0x39eedc)]===_0x1ecfc9(0x286,0x23e,0x2c2,_0x2b6651._0x34c39b))return[_0x4c7fd0[_0x1ecfc9(0x2c3,_0x2b6651._0x27344e,0x22a,0x279)]];function _0x34d6ac(_0x17d2ee,_0xcb5d41,_0x1f820c,_0x210f3d){return _0x3ddddf(_0x1f820c,_0xcb5d41-_0x3a363c._0x30bb6e,_0x1f820c-0xdf,_0x210f3d- -0x2b2);}function _0x1ecfc9(_0x3d773f,_0x1306e4,_0x530fbe,_0x306def){return _0x3ddddf(_0x306def,_0x1306e4-_0x136f65._0x5d00b4,_0x530fbe-_0x136f65._0x2fc314,_0x530fbe- -0x17);}return[];});return _0x353e32[_0x31e728(-0x182,-0x22e,-_0x275543._0x46fcbb,-_0x275543._0x2c868b)]>0x0?_0x353e32[_0x31e728(-0x24a,-0x1c7,-_0x275543._0xce6f00,-_0x275543._0x177dd6)](''):void 0x0;}function extractChatCompletionReasoningDelta(_0x34c420){const _0x850fc5={_0x28e041:0x16,_0x5a6e29:0xa3,_0x4726c3:0xda,_0x38f307:0x178,_0x91be26:0x13d,_0x139275:0x8c,_0x498dc2:0x36},_0x26aff8={_0x3d2b97:0x1cb},_0x5adcf3={_0x55a952:0x2c6,_0x283e0c:0xf0};function _0x2fc4d0(_0x388e5a,_0xb0e674,_0x5d1ed1,_0x50228e){return _0x2b6123(_0x50228e,_0xb0e674-0xe1,_0x5d1ed1- -_0x5adcf3._0x55a952,_0x50228e-_0x5adcf3._0x283e0c);}function _0xb2f9be(_0x103f2f,_0x4c79d8,_0x169c12,_0x2ea4fa){return _0x2b6123(_0x4c79d8,_0x4c79d8-0x163,_0x169c12- -0x272,_0x2ea4fa-_0x26aff8._0x3d2b97);}return extractReasoningDetails(_0x34c420?.['reasoning_details'])??readString(_0x34c420?.[_0x2fc4d0(-_0x850fc5._0x28e041,0x1a,_0x850fc5._0x5a6e29,-0x20)])??readString(_0x34c420?.[_0xb2f9be(_0x850fc5._0x4726c3,_0x850fc5._0x38f307,_0x850fc5._0x91be26,0x1ab)])??readString(_0x34c420?.[_0x2fc4d0(-_0x850fc5._0x139275,0x3f,-_0x850fc5._0x498dc2,-0x5c)])??'';}function _0x25f1(_0x247a07,_0x2b54d5){_0x247a07=_0x247a07-0x140;const _0x35ddb6=_0x35dd();let _0x25f1d4=_0x35ddb6[_0x247a07];if(_0x25f1['ijOKSH']===undefined){var _0x1bf14b=function(_0x3e671e){const _0x50591d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x59edd8='',_0x19c802='';for(let _0x436f18=0x0,_0x2e3f26,_0x1ffc19,_0xa1db61=0x0;_0x1ffc19=_0x3e671e['charAt'](_0xa1db61++);~_0x1ffc19&&(_0x2e3f26=_0x436f18%0x4?_0x2e3f26*0x40+_0x1ffc19:_0x1ffc19,_0x436f18++%0x4)?_0x59edd8+=String['fromCharCode'](0xff&_0x2e3f26>>(-0x2*_0x436f18&0x6)):0x0){_0x1ffc19=_0x50591d['indexOf'](_0x1ffc19);}for(let _0x37f518=0x0,_0x3d797a=_0x59edd8['length'];_0x37f518<_0x3d797a;_0x37f518++){_0x19c802+='%'+('00'+_0x59edd8['charCodeAt'](_0x37f518)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x19c802);};_0x25f1['PHOqdS']=_0x1bf14b,_0x25f1['Chuqvm']={},_0x25f1['ijOKSH']=!![];}const _0x427d33=_0x35ddb6[0x0],_0x4a3c51=_0x247a07+_0x427d33,_0x39b9da=_0x25f1['Chuqvm'][_0x4a3c51];return!_0x39b9da?(_0x25f1d4=_0x25f1['PHOqdS'](_0x25f1d4),_0x25f1['Chuqvm'][_0x4a3c51]=_0x25f1d4):_0x25f1d4=_0x39b9da,_0x25f1d4;}var OpenAiChatCompletionsStreamParser=class{[_0x2b6123(0x2f0,0x2dc,0x327,0x3a9)]=[];['request'];['textParts']=[];[_0x38c793(0x49d,0x41e,0x4de,0x55f)]=new Map();[_0x2b6123(0x365,0x2cf,0x313,0x343)]=[];[_0x2b6123(0x332,0x28e,0x319,0x33f)]=new Set();['responseId']='';[_0x2b6123(0x225,0x1dd,0x25a,0x2b2)]='end_turn';[_0x2b6123(0x22b,0x29c,0x230,0x247)];constructor(_0x31ef78){const _0x4622c6={_0x215ae9:0x7b,_0x288030:0x175},_0x1cbdb2={_0x1b8621:0x13a,_0x1f096e:0x4d5};function _0x249d46(_0xb070fe,_0x591a55,_0xdcc63d,_0x358ec9){return _0x38c793(_0x358ec9,_0x591a55-_0x1cbdb2._0x1b8621,_0xb070fe- -_0x1cbdb2._0x1f096e,_0x358ec9-0x122);}this[_0x249d46(-0xf8,-0x11e,-_0x4622c6._0x215ae9,-_0x4622c6._0x288030)]=_0x31ef78;}[_0x38c793(0x397,0x3ec,0x3cc,0x43d)](_0x28d9fa){const _0x3f97e5={_0x2645c6:0x9,_0x5cbc2a:0x3f,_0xda7851:0x4ad,_0x38e1cd:0x450,_0x19eebc:0x469,_0x29d056:0x3b,_0x41871d:0x80,_0x1e397c:0xb,_0x284bc5:0x35a,_0x5bc9ac:0x3e9,_0x59143c:0x618,_0x4dc15b:0x5e0},_0x241580={_0x59bcdc:0x1b8},_0x5d2db6={_0x51eb20:0x89},_0x12f1b2=readSseData(_0x28d9fa);if(_0x12f1b2[_0x34d222(-0x57,_0x3f97e5._0x2645c6,_0x3f97e5._0x5cbc2a,0x12)]===0x0||_0x12f1b2===_0x56aeec(0x43e,_0x3f97e5._0xda7851,_0x3f97e5._0x38e1cd,0x41a))return[];function _0x56aeec(_0x1c9614,_0xb4856d,_0x45e155,_0x5dfbd6){return _0x38c793(_0xb4856d,_0xb4856d-0x1a3,_0x45e155-_0x5d2db6._0x51eb20,_0x5dfbd6-0x7b);}const _0x31cbc4=JSON[_0x56aeec(0x521,0x4b1,0x4b0,_0x3f97e5._0x19eebc)](_0x12f1b2);this['responseId']=_0x31cbc4['id']??this[_0x34d222(-0x23,_0x3f97e5._0x29d056,-_0x3f97e5._0x41871d,-_0x3f97e5._0x1e397c)];function _0x34d222(_0x16c1b7,_0x48ba6f,_0x4ab316,_0x5dfa17){return _0x38c793(_0x5dfa17,_0x48ba6f-0xf6,_0x48ba6f- -0x3c2,_0x5dfa17-_0x241580._0x59bcdc);}return this[_0x34d222(-0xff,-0x62,0x40,-0x70)]=_0x31cbc4['usage']??this[_0x56aeec(_0x3f97e5._0x284bc5,0x3c8,_0x3f97e5._0x5bc9ac,0x3ae)],this[_0x56aeec(_0x3f97e5._0x59143c,_0x3f97e5._0x4dc15b,0x557,0x51a)](_0x31cbc4);}[_0x2b6123(0x305,0x2e0,0x38e,0x312)](){const _0x4dc124={_0x3e0ff9:0x25b,_0x9e4672:0x1f1,_0x5ea676:0x255,_0x43acf3:0x129,_0x2ec83c:0x1a6,_0x29df14:0x138,_0x18668b:0x1b1,_0x51bd2b:0x251,_0x5b112e:0x18b,_0x33ba30:0xae,_0x3bbea6:0xb0,_0x144465:0x8f,_0x5353c5:0x186,_0x38334f:0x1da,_0x3840a1:0x1a1,_0x2514fa:0x1b2,_0x3821fe:0x24a,_0x143303:0x1f9,_0x59a523:0x82,_0x518adb:0x131,_0x3d018d:0x6f,_0x4557bf:0x127,_0x41db48:0x1b2,_0x3585bf:0x247},_0x16e660={_0x5c7e2f:0x3d7},_0x34e9f6={_0x4dd81a:0x14f};function _0x45215c(_0x157c2d,_0x5cc362,_0x26dea1,_0x4a1ef1){return _0x2b6123(_0x4a1ef1,_0x5cc362-0x1f2,_0x26dea1- -0x122,_0x4a1ef1-_0x34e9f6._0x4dd81a);}this[_0x45215c(0x2ae,_0x4dc124._0x3e0ff9,_0x4dc124._0x9e4672,_0x4dc124._0x5ea676)]['length']>0x0&&(this[_0x45215c(_0x4dc124._0x43acf3,_0x4dc124._0x2ec83c,_0x4dc124._0x29df14,0x1b2)]=_0x45215c(0x176,0x13a,_0x4dc124._0x18668b,_0x4dc124._0x51bd2b));const _0x1aa028=isUserVisibleReasoning(this[_0x45215c(0xeb,0x238,_0x4dc124._0x5b112e,0x1b4)])?this[_0x5cd25c(-_0x4dc124._0x33ba30,-_0x4dc124._0x3bbea6,-_0x4dc124._0x144465,-0x98)]['join'](''):void 0x0;function _0x5cd25c(_0x364101,_0x2b0b3d,_0x4394a7,_0x36eb7a){return _0x2b6123(_0x364101,_0x2b0b3d-0xb,_0x2b0b3d- -_0x16e660._0x5c7e2f,_0x36eb7a-0x106);}return{'id':this[_0x45215c(_0x4dc124._0x5353c5,0x1e0,0x1ab,_0x4dc124._0x38334f)]||_0x5cd25c(-0x13c,-_0x4dc124._0x3840a1,-_0x4dc124._0x2514fa,-_0x4dc124._0x3821fe)+Date[_0x45215c(0x10d,_0x4dc124._0x143303,0x1d2,0x18c)](),'content':createContentBlocks(this[_0x5cd25c(-0x10c,-_0x4dc124._0x59a523,-_0x4dc124._0x518adb,-_0x4dc124._0x3d018d)][_0x45215c(_0x4dc124._0x4557bf,0xfd,_0x4dc124._0x41db48,_0x4dc124._0x3585bf)](''),this['toolCallOrder'],_0x1aa028),'stopReason':this['stopReason'],'usage':createUsage(this[_0x5cd25c(-0xf5,-0x1a7,-0xea,-0xf8)])};}[_0x2b6123(0x458,0x36d,0x39e,0x331)](_0xc361ae){const _0xfd0424={_0x508e3f:0x21,_0x402ae7:0xfa,_0x3d3229:0x173,_0x575f3d:0x1c9,_0x21d304:0x18c,_0x18e80f:0x360,_0x21fb7f:0x4c3,_0x4650b0:0x410,_0x22f09a:0x485,_0x4db54a:0x375,_0x378d8e:0x307,_0x1d0bf3:0x34e,_0x36fc3d:0x5b,_0x391a2b:0x11e,_0x449ae6:0x2f6,_0x30bc61:0x2fe,_0x4be6d9:0x2ee,_0xbb66c6:0x409,_0x517374:0x425,_0x1c8807:0x3ec,_0x5c27c1:0x2af,_0x3fc1be:0x8a,_0x435fd8:0x9f,_0x8b6346:0x3d,_0x54c149:0x2,_0x13f258:0x95,_0x7241fb:0x35,_0x121c4a:0xe9,_0xa20fe6:0x10d,_0x1b1134:0x181,_0x4123b4:0x20c,_0x52d9bd:0x2d9,_0x16bd04:0x200,_0x271bac:0x492,_0xfebb80:0x474,_0x53d392:0x35e,_0x456f96:0x2b8,_0x51ba0b:0x376,_0x2aca35:0x31f,_0x9eedc2:0x174,_0x354bf0:0x12e,_0x54b6f4:0x150,_0x3eab29:0x38b,_0x3d120c:0x2a0,_0x2c0d9f:0x2fd,_0x39c3fa:0x2c7,_0x25f592:0x37c,_0xd82281:0x381,_0x2cc985:0x170,_0x4b5a92:0x181,_0x5be8fa:0x352,_0x1fc883:0x343,_0x41d221:0x256,_0xd06250:0x14a,_0x16feea:0x144,_0x516912:0x126,_0x1bcdbf:0x32d,_0x3930ae:0x345,_0x5a23df:0x3ff,_0x5bf0ca:0x2b0,_0x2868dc:0x2bf,_0x286411:0x10f,_0x280748:0xd2,_0xee2514:0x5a,_0x3dddea:0x1e1,_0x29b966:0x19b,_0x261ca2:0x1a5,_0x2a2eab:0x254,_0x49c338:0x150,_0x984694:0x211,_0xd1e54c:0x329,_0x897a6d:0x2a9,_0x46732c:0x2d3,_0x2d2fda:0x25a,_0xaa9422:0xfb,_0x1aa769:0x191,_0x37743a:0x2bc,_0x4c5fb1:0x25d,_0x1627ed:0x38e,_0xf4928:0x336,_0x231472:0x377},_0x1c2d35={_0x3614e3:0x51b},_0x5990df=[];function _0x5c7f0f(_0xbb71ee,_0x5551ed,_0x5b679e,_0x123129){return _0x38c793(_0x123129,_0x5551ed-0x17f,_0x5551ed- -0xcd,_0x123129-0x93);}function _0x5e0a03(_0x3a1f9e,_0x287d63,_0x197e0d,_0x47a525){return _0x38c793(_0x287d63,_0x287d63-0x19c,_0x197e0d- -_0x1c2d35._0x3614e3,_0x47a525-0xb);}for(const _0x4d8129 of _0xc361ae['choices']??[]){const _0x12c09c=_0x4d8129[_0x5e0a03(0x4f,0x26,-0x5a,-_0xfd0424._0x508e3f)],_0x52a61f=extractChatCompletionReasoningDelta(_0x12c09c);_0x52a61f['length']>0x0&&(this[_0x5c7f0f(0x3d2,0x38a,0x3e0,0x301)][_0x5e0a03(-_0xfd0424._0x402ae7,-_0xfd0424._0x3d3229,-0xd7,-0x10e)](_0x52a61f),isUserVisibleReasoning(this[_0x5e0a03(-0x130,-_0xfd0424._0x575f3d,-0x13e,-_0xfd0424._0x21d304)])&&_0x5990df['push']({'type':'openai_reasoning_delta','contentIndex':0x0,'delta':_0x52a61f,'itemId':(this[_0x5c7f0f(0x2fc,0x330,0x306,_0xfd0424._0x18e80f)]||_0x5c7f0f(_0xfd0424._0x21fb7f,_0xfd0424._0x4650b0,0x3bb,_0xfd0424._0x22f09a))+_0x5c7f0f(_0xfd0424._0x4db54a,0x3f8,0x414,0x4b6),'outputIndex':0x0}));const _0x407f63=typeof _0x12c09c?.[_0x5c7f0f(_0xfd0424._0x378d8e,0x33e,0x401,_0xfd0424._0x1d0bf3)]==='string'?_0x12c09c['content']:typeof _0x12c09c?.['refusal']===_0x5e0a03(-0x133,-_0xfd0424._0x36fc3d,-0x120,-_0xfd0424._0x391a2b)?_0x12c09c['refusal']:'';_0x407f63[_0x5c7f0f(_0xfd0424._0x449ae6,_0xfd0424._0x30bc61,0x2e6,_0xfd0424._0x4be6d9)]>0x0&&(this[_0x5c7f0f(_0xfd0424._0xbb66c6,0x3b8,_0xfd0424._0x517374,0x47a)][_0x5c7f0f(0x2c3,0x377,_0xfd0424._0x1c8807,0x368)](_0x407f63),_0x5990df['push']({'type':_0x5c7f0f(0x2a4,0x300,_0xfd0424._0x5c27c1,0x365),'index':0x0,'text':_0x407f63}));for(const _0x447e3c of _0x12c09c?.['tool_calls']??[]){const _0x2c8bbb=_0x447e3c[_0x5e0a03(-_0xfd0424._0x3fc1be,-_0xfd0424._0x435fd8,-0x9b,-0x161)]??0x0;let _0x5efb3b=this[_0x5e0a03(0x27,0xb,-_0xfd0424._0x8b6346,-_0xfd0424._0x54c149)]['get'](_0x2c8bbb);!_0x5efb3b&&(_0x5efb3b={'id':_0x447e3c['id']??_0x5e0a03(_0xfd0424._0x13f258,-0x26,-_0xfd0424._0x7241fb,-0x1)+_0x2c8bbb,'type':'function','function':{'name':_0x447e3c[_0x5e0a03(-_0xfd0424._0x121c4a,-_0xfd0424._0xa20fe6,-_0xfd0424._0x1b1134,-0x123)]?.[_0x5c7f0f(_0xfd0424._0x4123b4,0x2b0,_0xfd0424._0x52d9bd,_0xfd0424._0x16bd04)]??'','arguments':''}},this[_0x5c7f0f(_0xfd0424._0x271bac,0x411,_0xfd0424._0xfebb80,0x4cb)][_0x5c7f0f(_0xfd0424._0x53d392,0x3d3,0x35b,0x3f4)](_0x2c8bbb,_0x5efb3b),this[_0x5c7f0f(_0xfd0424._0x456f96,_0xfd0424._0x51ba0b,0x3b5,_0xfd0424._0x2aca35)][_0x5e0a03(-0x145,-_0xfd0424._0x9eedc2,-0xd7,-0x7e)](_0x5efb3b));_0x447e3c['id']&&(_0x5efb3b['id']=_0x447e3c['id']);_0x447e3c[_0x5e0a03(-_0xfd0424._0x354bf0,-0x155,-0x181,-_0xfd0424._0x54b6f4)]?.['name']&&(_0x5efb3b[_0x5c7f0f(_0xfd0424._0x3eab29,0x2cd,_0xfd0424._0x3d120c,_0xfd0424._0x2c0d9f)]['name']=_0x447e3c['function']['name']);!this[_0x5c7f0f(_0xfd0424._0x39c3fa,_0xfd0424._0x25f592,0x33a,0x349)][_0x5c7f0f(_0xfd0424._0xd82281,0x3a9,0x3fd,0x33b)](_0x2c8bbb)&&_0x5efb3b[_0x5e0a03(-0x17c,-_0xfd0424._0x2cc985,-_0xfd0424._0x4b5a92,-0x15d)][_0x5c7f0f(_0xfd0424._0x5be8fa,0x2b0,_0xfd0424._0x1fc883,_0xfd0424._0x41d221)][_0x5e0a03(-_0xfd0424._0xd06250,-0x95,-0x149,-_0xfd0424._0x16feea)]()['length']>0x0&&(_0x5990df[_0x5e0a03(-_0xfd0424._0x516912,-0x46,-0xd7,-0xac)]({'type':_0x5c7f0f(_0xfd0424._0x1bcdbf,_0xfd0424._0x3930ae,0x3fc,_0xfd0424._0x5a23df),'id':_0x5efb3b['id'],'index':_0x2c8bbb,'name':_0x5efb3b['function'][_0x5c7f0f(0x225,_0xfd0424._0x5bf0ca,_0xfd0424._0x2868dc,0x2a6)]}),this[_0x5e0a03(-_0xfd0424._0x286411,-0x70,-_0xfd0424._0x280748,-_0xfd0424._0xee2514)][_0x5e0a03(-_0xfd0424._0x3dddea,-0x243,-_0xfd0424._0x29b966,-0x1db)](_0x2c8bbb));const _0xe3fa18=_0x447e3c['function']?.[_0x5e0a03(-0x1f5,-0x1e9,-_0xfd0424._0x261ca2,-_0xfd0424._0x2a2eab)]??'';_0xe3fa18[_0x5e0a03(-0xb3,-0x18d,-_0xfd0424._0x49c338,-0xe2)]>0x0&&(_0x5efb3b[_0x5c7f0f(0x373,0x2cd,_0xfd0424._0x984694,_0xfd0424._0xd1e54c)][_0x5c7f0f(0x257,_0xfd0424._0x897a6d,_0xfd0424._0x46732c,_0xfd0424._0x2d2fda)]+=_0xe3fa18,_0x5990df['push']({'type':_0x5e0a03(-_0xfd0424._0xaa9422,-0xc7,-0x109,-_0xfd0424._0x1aa769),'id':_0x5efb3b['id'],'index':_0x2c8bbb,'inputDelta':_0xe3fa18}));}_0x4d8129['finish_reason']==='tool_calls'&&(this[_0x5c7f0f(_0xfd0424._0x37743a,0x2bd,_0xfd0424._0x4c5fb1,0x380)]=_0x5c7f0f(_0xfd0424._0x1627ed,_0xfd0424._0xf4928,0x297,_0xfd0424._0x231472));}return _0x5990df;}},OpenAiResponsesStreamParser=class{['callIdToOutputIndex']=new Map();[_0x38c793(0x3ff,0x3d5,0x456,0x40d)];[_0x2b6123(0x32e,0x234,0x28d,0x32f)]=new Map();[_0x2b6123(0x35c,0x388,0x2e5,0x230)]=new Map();[_0x38c793(0x3bd,0x318,0x394,0x426)]=new Map();['request'];[_0x2b6123(0x38e,0x3aa,0x3a9,0x3af)]=new Map();[_0x38c793(0x367,0x2fa,0x3a5,0x3ac)]=new Map();constructor(_0x21cd5e){this['request']=_0x21cd5e;}[_0x2b6123(0x2c7,0x34d,0x29c,0x284)](_0x437d43){const _0x454abb={_0x5124af:0x49e,_0x304721:0x54a,_0x425e2d:0x658,_0x2612ad:0x5da,_0x2b2902:0x648,_0x44bb3f:0xe3,_0x3f39f8:0x9a,_0x199024:0xbd,_0x2d0e82:0xd1,_0x4e69d6:0x26,_0x4d7437:0x1d9,_0x287685:0x18f,_0x1e4a81:0x5bf,_0x4658f2:0x48b,_0x10b9a0:0x14,_0x25325e:0x11c,_0x548299:0x3d,_0x5ac0e3:0x2e,_0x5ae575:0x66,_0x2f5dc8:0x640,_0xb773b:0x600,_0x1ab550:0x5db,_0x233374:0x699},_0x109c64={_0x26373e:0x231,_0x342e66:0x13f},_0x26f618={_0x126d99:0x38},_0x2a931b=_0x437d43[_0x2d332c(0x4fe,_0x454abb._0x5124af,_0x454abb._0x304721,0x593)]('\x0a'),_0x73c4f4=_0x2a931b[_0x2d332c(0x541,_0x454abb._0x425e2d,_0x454abb._0x2612ad,_0x454abb._0x2b2902)](_0x43d493=>_0x43d493[_0x26560c(0x176,0xbf,0xf7,0x121)](_0x26560c(0xd8,0x158,0x1a3,0x10a)))?.[_0x26560c(0x48,0x9e,_0x454abb._0x44bb3f,_0x454abb._0x3f39f8)](0x6)[_0x26560c(_0x454abb._0x199024,0x71,_0x454abb._0x2d0e82,_0x454abb._0x4e69d6)]();function _0x2d332c(_0x1e738e,_0x5962f5,_0x2e6b8f,_0x46c880){return _0x38c793(_0x1e738e,_0x5962f5-_0x26f618._0x126d99,_0x2e6b8f-0x10d,_0x46c880-0x114);}function _0x26560c(_0x43e87a,_0x2b6bd1,_0x2be8d7,_0x5c6fb0){return _0x2b6123(_0x43e87a,_0x2b6bd1-0x1b1,_0x2b6bd1- -_0x109c64._0x26373e,_0x5c6fb0-_0x109c64._0x342e66);}const _0xa3a3df=_0x2a931b['filter'](_0x397f1c=>_0x397f1c['startsWith'](_0x2d332c(0x3ff,0x4d2,0x4b7,0x424)))[_0x26560c(_0x454abb._0x4d7437,0x151,0x17d,_0x454abb._0x287685)](_0xc1621e=>_0xc1621e[_0x26560c(0x94,0x9e,-0x29,0x18)](0x5)['trimStart']())[_0x2d332c(_0x454abb._0x1e4a81,_0x454abb._0x4658f2,0x511,0x46b)]('\x0a')[_0x26560c(_0x454abb._0x10b9a0,0x71,_0x454abb._0x25325e,0x12d)]();if(_0xa3a3df[_0x26560c(_0x454abb._0x548299,0x6a,0x6f,-_0x454abb._0x5ac0e3)]===0x0||_0xa3a3df===_0x26560c(0x35,_0x454abb._0x5ae575,0x67,0x27))return[];const _0x2c4148=JSON[_0x26560c(0x150,0xc6,0xc9,0xbb)](_0xa3a3df);return this[_0x2d332c(_0x454abb._0x2f5dc8,_0x454abb._0xb773b,_0x454abb._0x1ab550,_0x454abb._0x233374)](_0x73c4f4??String(_0x2c4148['type']??''),_0x2c4148);}['consumeWebSocketEvent'](_0x47fa0d){const _0x442615={_0x1dac96:0x595,_0x197b7a:0x52c},_0x4d626c={_0x3267f9:0xfc,_0x2fccea:0x5e};function _0x4af727(_0x1bca0b,_0x39edc4,_0x104186,_0x28abae){return _0x38c793(_0x39edc4,_0x39edc4-_0x4d626c._0x3267f9,_0x28abae-_0x4d626c._0x2fccea,_0x28abae-0x34);}return this[_0x4af727(0x5f2,_0x442615._0x1dac96,0x598,_0x442615._0x197b7a)](String(_0x47fa0d['type']??''),_0x47fa0d);}[_0x2b6123(0x2cc,0x2dc,0x38e,0x2d0)](){const _0x2a1cbf={_0x5e4f8f:0x227,_0x3603d7:0x297,_0x1f22a1:0x364,_0x16f0a5:0x389,_0x4c354c:0x213,_0x28fc51:0x3fa,_0x1abb24:0x270,_0x33c450:0x20f,_0x152015:0x370,_0x3f4473:0x1d1},_0x3aacfe={_0x272209:0x6d,_0x4cbb74:0x22f},_0x11f986={_0x31a16a:0x53};function _0x5aea52(_0x131282,_0x5467b1,_0xf4dafa,_0x761026){return _0x38c793(_0xf4dafa,_0x5467b1-_0x11f986._0x31a16a,_0x761026- -0x5c,_0x761026-0xdd);}function _0xc58daf(_0x28ddc1,_0x49da99,_0x1ac5c8,_0x15578c){return _0x38c793(_0x1ac5c8,_0x49da99-_0x3aacfe._0x272209,_0x49da99- -_0x3aacfe._0x4cbb74,_0x15578c-0x14d);}const _0x587edd=this[_0xc58daf(0x1ce,_0x2a1cbf._0x5e4f8f,_0x2a1cbf._0x3603d7,0x298)]??{'id':_0x5aea52(0x32d,_0x2a1cbf._0x1f22a1,0x2f3,_0x2a1cbf._0x16f0a5)+Date[_0xc58daf(0x16d,0x1f5,0x177,_0x2a1cbf._0x4c354c)](),'object':_0x5aea52(_0x2a1cbf._0x28fc51,0x4d3,0x4a2,0x41b),'status':_0xc58daf(_0x2a1cbf._0x1abb24,0x1aa,_0x2a1cbf._0x33c450,0x252),'output':this[_0x5aea52(0x385,0x414,_0x2a1cbf._0x152015,0x427)](),'usage':{'input_tokens':0x0,'output_tokens':0x0}};return parseResponsesResponse(_0x587edd,this[_0xc58daf(0x105,0x1ae,_0x2a1cbf._0x3f4473,0x1dd)]);}['isDone'](){const _0x320c2f={_0x49831d:0x120,_0x298e92:0x2b,_0x2aef31:0xe9},_0x22b041={_0x10aa82:0x5b};function _0x3c11c4(_0x400144,_0x38955f,_0x2d920f,_0x31b15d){return _0x38c793(_0x2d920f,_0x38955f-_0x22b041._0x10aa82,_0x31b15d- -0x53f,_0x31b15d-0x97);}return this[_0x3c11c4(-_0x320c2f._0x49831d,-_0x320c2f._0x298e92,-0x4a,-_0x320c2f._0x2aef31)]!==void 0x0;}[_0x38c793(0x540,0x450,0x4ce,0x46c)](_0x1da4e7,_0x554399){const _0x4864c3={_0x8298b6:0x18e,_0x106429:0x15f,_0x4ed2db:0x18b,_0x181a04:0x151,_0x3e448a:0x249,_0x2194e1:0x232,_0x5c0d97:0x21d,_0x11250a:0x5fa,_0x44d356:0x5d5,_0x2bcf0f:0x53f,_0x776a2b:0x521,_0x5168dc:0x1b9,_0x5f55de:0x145,_0x3b5fb5:0x1f2,_0x4e0a12:0x558,_0x4f1ba5:0x277,_0x1fd7fc:0x27b,_0x319b20:0x1b6,_0x21f527:0x4e1,_0x3a0303:0x18e,_0x3d0c27:0x254,_0x5cadd6:0x15e,_0x75ceed:0x105,_0x33f5f6:0x3e4,_0x1ac284:0x462,_0x3fd12c:0x511,_0x38d86e:0x503,_0x4300a8:0x595,_0x4b1abb:0x135,_0x43b157:0x141,_0x5dcabf:0x55a,_0x5077bf:0x4f6,_0x1ef33d:0x50b,_0x1f0af4:0x4d1,_0x4bb2ae:0xd8,_0x35e988:0x5b4,_0x58905d:0x4a3,_0x48f657:0x4b6,_0x517acf:0x57f,_0x6ca76c:0x3ed,_0x38efb8:0x4ae,_0x252008:0x424,_0x5eb052:0x4b7,_0x1e253d:0x1e3,_0x36d1c6:0x1b5,_0x3deaaa:0x403,_0x1f5540:0x55c,_0x2b5ad9:0x258,_0x4423e1:0x282,_0x100ea0:0xed,_0x5262ef:0x233,_0x2ffb9d:0x2a5,_0x39fcc3:0x17d,_0x65e200:0x1a2,_0x439d51:0x218,_0x56c7d1:0x170,_0x40fa58:0x158,_0x42c0a0:0xce,_0x4b116c:0xbe,_0x476f01:0x1ca,_0x23883e:0x1b1,_0x439c5d:0x26e,_0x4eb562:0x58c,_0x28e056:0x5bb,_0xb3ff25:0x166,_0x444c26:0xbd,_0x20c1fb:0x1a2,_0x57ff51:0x27b,_0x250d9c:0x327,_0x196479:0x256,_0x3ad1c4:0x1ac,_0x395943:0x129,_0x490d82:0x5a3,_0x36fe12:0x50f,_0x5f42c8:0x466,_0x5afecc:0x210,_0x5e4636:0x1df,_0x18a514:0x4c7,_0x3f0c2d:0x4fd,_0x315a01:0x18b,_0x2a1024:0x108,_0x1bc63d:0x177,_0x1a245d:0x16a,_0x5074ca:0x626,_0x495c48:0x5d5,_0x7d1795:0x564,_0x6b99dd:0x67e,_0x5d08a4:0x1d6,_0x549877:0x264,_0x3ac01b:0x5fd,_0x2e9842:0x603,_0x77da7c:0x42b,_0x18eb26:0x4d3,_0x5bea31:0x54f,_0x5e5c10:0x175,_0x286b2b:0x164,_0x30e552:0xff,_0x5d9edc:0x1a4,_0x57d42d:0x201,_0x167dba:0x521,_0x2701db:0x48e,_0x7e19aa:0x4e7,_0x474520:0x4c8,_0x59d65d:0x578,_0x11007e:0xd1,_0x1cd8ab:0x203,_0x342e3c:0x142,_0x1f6d53:0x131,_0x37cc2a:0x17d,_0x1be275:0xeb,_0x8fdc0c:0x201,_0x9fb219:0x5cd,_0x21f93c:0x559,_0x417630:0x46a,_0x556991:0x472,_0x5b23b8:0x1d4,_0xf6e0b3:0x109,_0x3eac7e:0x18b,_0x47314d:0x111,_0x4478db:0x15d,_0x1f9308:0x58c,_0x37c979:0x4c7,_0x2a21e3:0x50e,_0x235345:0x4b4,_0x1b0de2:0x58a,_0x4e8f99:0x3de,_0x50201e:0x26d,_0x56cf64:0x1b3,_0x372064:0x225,_0x4d1921:0x151,_0x195346:0x95,_0x578cc1:0x178,_0x2b5f8e:0x287,_0x372b07:0x17c,_0x598651:0x4c7,_0x2970ad:0x4cf,_0x266754:0x56f,_0x42f6fb:0x184,_0x53a29d:0x15e,_0x52d4fd:0x475,_0x20e763:0x12c,_0x30608c:0x16f,_0x4176fe:0x546,_0x454e0e:0x48a,_0x3a7094:0x3c7,_0x4df4a8:0x3ca,_0x116a8f:0x116,_0x50cdc0:0x119,_0x248d53:0x544,_0x38808c:0x5ad,_0x1d9df8:0x615,_0x588c06:0x500,_0x810085:0x49f,_0x4fc6b4:0x3e5,_0x1c74d0:0x1d6,_0x587d3e:0x1cd,_0x3f0cb1:0x169,_0x4ee902:0x13e,_0x2dbcde:0x152,_0xa538f8:0x1a6,_0x1a5bc0:0x427,_0x74cf0f:0x477,_0x2deb10:0x3db,_0x370d5e:0x128,_0x572dfe:0x215,_0x413e58:0x580,_0x5440a6:0x255,_0x3b67fc:0x21d,_0x26284e:0x270,_0x275d07:0x263,_0x3af64b:0x1ce,_0x3f8b88:0x1dc,_0x272abc:0x556,_0x1240c2:0x5db,_0x2f3008:0x4e3,_0x51a215:0x3c8,_0x5620f8:0x58a,_0x460ccb:0x638,_0x3f112f:0x1a5,_0x5addb4:0x148,_0x33bae3:0xfc,_0x2a171e:0x55e,_0x227fdd:0x4b1,_0x130506:0x160,_0x18f142:0x4e2,_0x4c6510:0x529,_0x50a841:0x519,_0x2085c4:0x52c,_0x36c2eb:0x18b,_0x386109:0x251,_0x583d63:0x156,_0x3b67ae:0xcb,_0x2be03b:0x161,_0x4e29bd:0x120,_0x3c6220:0x232,_0xac05a1:0x104,_0x5bb2f4:0x101,_0x517e06:0x51a,_0x185d19:0x3fb,_0x2a5da0:0x255,_0x3413c7:0x5b4,_0x400b71:0x5d7,_0x35b290:0x197,_0x5826a8:0x1f3,_0x23447e:0x22d,_0x11b421:0x1d1,_0x2d2a82:0x50f,_0x18f953:0x509,_0x1c7ff6:0x1c2,_0x302c23:0x189,_0x2bd10c:0x572,_0x4e5f78:0x1f0,_0x17248b:0x1e6,_0x2d74c7:0x2a8,_0x36ea10:0x567,_0x3ab7a9:0x4c7,_0x58f5ac:0x49e,_0x25fd90:0x426,_0x5a2cf6:0x52b,_0x4f95ab:0x293,_0x515d63:0x214,_0x208abb:0x5a3,_0x3036bf:0x1bb,_0x23474c:0xa6,_0x1c2eb7:0x1a7,_0x51c7bc:0x295,_0x1c9d93:0x1c1,_0x43522b:0x544,_0x43f8ae:0x11a,_0x401d1b:0x616,_0x4b369f:0x4ba,_0x49091c:0x4dc,_0x202f91:0x581,_0x14eb44:0x5c3,_0x5eba7c:0x4c4,_0x257805:0x534,_0x753287:0x529,_0x3d9154:0x4bf,_0x35b7a2:0x555,_0x3085de:0x461,_0x422b08:0xe5,_0x850de6:0x1b6,_0x1e7e35:0x4ce,_0x473d3b:0x52e,_0x220fe0:0x1a8,_0x5e8829:0x211,_0x3f54aa:0x4f8,_0x486619:0x1a6,_0x4a3382:0x16b,_0x9d06c4:0x51a,_0x10d616:0x1b8,_0x18a88b:0x507,_0x2f72bc:0x539,_0x5445da:0x1dc,_0x1698be:0xdd,_0x311197:0x172,_0x41d0d0:0x5b5,_0x39c5f3:0x4c4,_0xd247fe:0x508,_0x153990:0x195,_0x2bd826:0x4f2,_0x4e25af:0x56c,_0x4438f9:0x5d2,_0x175a87:0x259,_0x2b90b7:0x3e9,_0x3217e7:0x448,_0xc1db98:0x4ba,_0x4bfa64:0x60e,_0x3a3ba7:0x5b4,_0xc20d23:0x53a,_0x341706:0x4fd,_0x1535f5:0x486,_0x59c0d7:0x523,_0x24540d:0x426,_0x338797:0x552,_0x318d8b:0x5fd,_0x1c403f:0x283,_0xa0c143:0x259,_0x475f68:0x30e,_0x279a15:0x5f4,_0x2aa031:0x586,_0x2f961c:0x52f,_0xf37147:0x110,_0x40ed12:0x150,_0x2cf92a:0x29b,_0x42d9e6:0x5f6,_0x340cf0:0x553,_0x119142:0x46b,_0x4cf9fa:0x60b,_0x235fe0:0x65a,_0x5a0e4b:0x602,_0x551e04:0x59a,_0x5be1ff:0x228,_0x461d53:0x1fe,_0x12ab98:0x4e8,_0x5d171e:0x4cb},_0x456949={_0x1cf73c:0xa0},_0x546804={_0x85df5e:0x111,_0x22e578:0x52};function _0x5057a2(_0x16f623,_0x5b6388,_0x1e4e3e,_0x4940fc){return _0x38c793(_0x4940fc,_0x5b6388-_0x546804._0x85df5e,_0x16f623- -0x225,_0x4940fc-_0x546804._0x22e578);}function _0x136a6f(_0x4b52a5,_0xb2b6f4,_0x1bc94b,_0x199e4f){return _0x38c793(_0x4b52a5,_0xb2b6f4-_0x456949._0x1cf73c,_0xb2b6f4-0x114,_0x199e4f-0xc0);}switch(_0x1da4e7){case'response.output_text.delta':{const _0x17397b=typeof _0x554399[_0x5057a2(_0x4864c3._0x8298b6,_0x4864c3._0x106429,0x1ef,0x19d)]===_0x5057a2(_0x4864c3._0x4ed2db,_0x4864c3._0x181a04,0x140,_0x4864c3._0x3e448a)?_0x554399[_0x5057a2(0x18e,_0x4864c3._0x2194e1,0xde,0xd5)]:0x0,_0x5db512=typeof _0x554399['delta']===_0x5057a2(0x1d6,0x120,_0x4864c3._0x5c0d97,0x26f)?_0x554399[_0x136a6f(_0x4864c3._0x11250a,_0x4864c3._0x44d356,_0x4864c3._0x2bcf0f,_0x4864c3._0x776a2b)]:'';if(_0x5db512[_0x5057a2(0x1a6,_0x4864c3._0x5168dc,0x14c,_0x4864c3._0x5f55de)]>0x0){const _0xf15d9e=this[_0x5057a2(0x2b4,0x279,_0x4864c3._0x3b5fb5,0x234)]['get'](_0x17397b)??[];return _0xf15d9e[_0x136a6f(0x519,_0x4864c3._0x4e0a12,0x5f9,0x4ec)](_0x5db512),this[_0x5057a2(0x2b4,0x1f5,0x2b6,_0x4864c3._0x4f1ba5)][_0x5057a2(_0x4864c3._0x1fd7fc,_0x4864c3._0x319b20,0x1db,0x228)](_0x17397b,_0xf15d9e),[{'type':_0x136a6f(0x49e,_0x4864c3._0x21f527,0x446,0x579),'index':_0x17397b,'text':_0x5db512}];}break;}case _0x136a6f(0x4f1,0x549,0x51f,0x4ab):{const _0x2e87cb=typeof _0x554399[_0x5057a2(_0x4864c3._0x3a0303,_0x4864c3._0x3d0c27,0x1cf,_0x4864c3._0x5cadd6)]==='number'?_0x554399[_0x5057a2(_0x4864c3._0x8298b6,0x16f,_0x4864c3._0x75ceed,0x220)]:void 0x0,_0x143730=_0x554399[_0x136a6f(_0x4864c3._0x33f5f6,0x4af,_0x4864c3._0x1ac284,_0x4864c3._0x3fd12c)];if(_0x143730?.[_0x136a6f(0x51b,_0x4864c3._0x38d86e,_0x4864c3._0x4300a8,0x5ca)]===_0x5057a2(_0x4864c3._0x4b1abb,_0x4864c3._0x43b157,0x1ed,0x17c)&&_0x143730[_0x136a6f(0x3ef,0x4b6,_0x4864c3._0x5dcabf,_0x4864c3._0x5077bf)]&&_0x143730[_0x136a6f(0x4fe,0x491,_0x4864c3._0x1ef33d,_0x4864c3._0x1f0af4)])return this[_0x5057a2(0x180,_0x4864c3._0x4bb2ae,0x149,0x16d)][_0x136a6f(0x642,_0x4864c3._0x35e988,0x63e,0x551)](_0x143730['call_id'],{'id':_0x143730[_0x136a6f(_0x4864c3._0x58905d,_0x4864c3._0x48f657,_0x4864c3._0x517acf,0x489)],'type':_0x136a6f(_0x4864c3._0x6ca76c,_0x4864c3._0x38efb8,0x542,_0x4864c3._0x252008),'function':{'name':_0x143730[_0x136a6f(_0x4864c3._0x5eb052,0x491,0x4e2,0x3d9)],'arguments':''}}),_0x2e87cb!==void 0x0&&(this[_0x5057a2(0x198,0x166,_0x4864c3._0x1e253d,_0x4864c3._0x36d1c6)]['set'](_0x2e87cb,_0x143730[_0x136a6f(_0x4864c3._0x3deaaa,0x4b6,_0x4864c3._0x1f5540,0x426)]),this['callIdToOutputIndex'][_0x5057a2(0x27b,_0x4864c3._0x2b5ad9,_0x4864c3._0x4423e1,0x1da)](_0x143730[_0x5057a2(0x17d,_0x4864c3._0x100ea0,0x10f,0x221)],_0x2e87cb)),[{'type':_0x5057a2(0x1ed,_0x4864c3._0x5262ef,0x146,_0x4864c3._0x2ffb9d),'id':_0x143730[_0x5057a2(_0x4864c3._0x39fcc3,_0x4864c3._0x65e200,_0x4864c3._0x439d51,_0x4864c3._0x56c7d1)],'index':_0x2e87cb??0x0,'name':_0x143730[_0x5057a2(_0x4864c3._0x40fa58,_0x4864c3._0x42c0a0,_0x4864c3._0x4b116c,0x21f)]}];if(_0x143730?.[_0x5057a2(_0x4864c3._0x476f01,_0x4864c3._0x23883e,0x1df,_0x4864c3._0x439c5d)]===_0x136a6f(_0x4864c3._0x4eb562,0x5ad,_0x4864c3._0x28e056,0x639)&&_0x143730['id']){const _0x1cd229=this[_0x5057a2(_0x4864c3._0xb3ff25,_0x4864c3._0x444c26,_0x4864c3._0x20c1fb,0x1e3)](_0x143730['id'],_0x2e87cb);_0x2e87cb!==void 0x0&&this['outputIndexToReasoningId'][_0x5057a2(_0x4864c3._0x57ff51,_0x4864c3._0x250d9c,_0x4864c3._0x196479,0x2c3)](_0x2e87cb,_0x1cd229['id']);}break;}case _0x5057a2(_0x4864c3._0x3ad1c4,0x106,0x11c,_0x4864c3._0x395943):{const _0x47f477=typeof _0x554399['call_id']===_0x136a6f(_0x4864c3._0x490d82,_0x4864c3._0x36fe12,_0x4864c3._0x5f42c8,0x514)?_0x554399[_0x5057a2(0x17d,_0x4864c3._0x5afecc,0x113,_0x4864c3._0x5e4636)]:typeof _0x554399[_0x136a6f(0x587,_0x4864c3._0x18a514,_0x4864c3._0x3f0c2d,0x4ac)]===_0x5057a2(_0x4864c3._0x315a01,_0x4864c3._0x2a1024,0x23d,0x232)?this['outputIndexToCallId']['get'](_0x554399[_0x5057a2(0x18e,0x204,_0x4864c3._0x1bc63d,_0x4864c3._0x1a245d)]):void 0x0,_0x2bb5d4=typeof _0x554399[_0x136a6f(_0x4864c3._0x5074ca,_0x4864c3._0x495c48,_0x4864c3._0x7d1795,_0x4864c3._0x6b99dd)]===_0x5057a2(_0x4864c3._0x5d08a4,_0x4864c3._0x549877,0x13c,0x25b)?_0x554399[_0x136a6f(0x63f,_0x4864c3._0x495c48,_0x4864c3._0x3ac01b,_0x4864c3._0x2e9842)]:'',_0x89695c=_0x47f477?this[_0x136a6f(0x46d,0x4b9,_0x4864c3._0x77da7c,_0x4864c3._0x18eb26)][_0x136a6f(_0x4864c3._0x5bea31,0x4c8,0x484,0x4eb)](_0x47f477):void 0x0;if(_0x89695c&&_0x2bb5d4['length']>0x0)return _0x89695c[_0x5057a2(_0x4864c3._0x5e5c10,_0x4864c3._0x286b2b,_0x4864c3._0x30e552,_0x4864c3._0x5d9edc)]['arguments']+=_0x2bb5d4,[{'type':_0x5057a2(0x1ed,0x1e7,_0x4864c3._0x57d42d,0x268),'id':_0x89695c['id'],'index':this[_0x136a6f(_0x4864c3._0x167dba,_0x4864c3._0x2701db,0x41c,0x4db)][_0x136a6f(_0x4864c3._0x7e19aa,_0x4864c3._0x474520,_0x4864c3._0x59d65d,0x4f7)](_0x89695c['id'])??(typeof _0x554399[_0x5057a2(_0x4864c3._0x3a0303,_0x4864c3._0x11007e,0x1ef,0x1c6)]===_0x5057a2(0x18b,_0x4864c3._0x1cd8ab,0x130,_0x4864c3._0x395943)?_0x554399[_0x136a6f(0x4e6,_0x4864c3._0x18a514,0x422,0x577)]:0x0),'inputDelta':_0x2bb5d4}];break;}case _0x5057a2(_0x4864c3._0x342e3c,_0x4864c3._0x1f6d53,0xf5,0xbf):{const _0xd8aa84=typeof _0x554399[_0x5057a2(_0x4864c3._0x37cc2a,_0x4864c3._0x1be275,0x1e7,_0x4864c3._0x8fdc0c)]===_0x136a6f(_0x4864c3._0x9fb219,0x50f,0x470,_0x4864c3._0x21f93c)?_0x554399[_0x136a6f(_0x4864c3._0x417630,_0x4864c3._0x48f657,_0x4864c3._0x556991,0x3ed)]:typeof _0x554399[_0x5057a2(_0x4864c3._0x8298b6,_0x4864c3._0x5b23b8,_0x4864c3._0xf6e0b3,0xe9)]===_0x5057a2(_0x4864c3._0x3eac7e,_0x4864c3._0x47314d,_0x4864c3._0x4478db,0x22d)?this['outputIndexToCallId']['get'](_0x554399[_0x136a6f(_0x4864c3._0x1f9308,_0x4864c3._0x37c979,0x54f,_0x4864c3._0x2a21e3)]):void 0x0,_0x457eda=_0xd8aa84?this[_0x5057a2(0x180,0x162,0x216,0x1b0)][_0x136a6f(_0x4864c3._0x235345,0x4c8,_0x4864c3._0x1b0de2,0x4fc)](_0xd8aa84):void 0x0;_0x457eda&&typeof _0x554399[_0x136a6f(0x422,0x48a,0x47e,_0x4864c3._0x4e8f99)]===_0x5057a2(0x1d6,0x183,0x218,_0x4864c3._0x50201e)&&(_0x457eda[_0x5057a2(_0x4864c3._0x5e5c10,0x1b3,_0x4864c3._0x56cf64,_0x4864c3._0x372064)][_0x5057a2(_0x4864c3._0x4d1921,0x111,_0x4864c3._0x195346,_0x4864c3._0x578cc1)]=_0x554399['arguments']);break;}case _0x5057a2(0x2a2,_0x4864c3._0x2b5f8e,0x1e4,0x2cf):{const _0x16ecbf=typeof _0x554399[_0x5057a2(0x18e,0x22f,0x1f5,_0x4864c3._0x372b07)]==='number'?_0x554399[_0x136a6f(0x4ee,_0x4864c3._0x598651,_0x4864c3._0x2970ad,_0x4864c3._0x266754)]:void 0x0,_0x1c6aa5=_0x554399[_0x5057a2(0x176,0x178,_0x4864c3._0x42f6fb,0x195)];if(_0x1c6aa5?.[_0x5057a2(_0x4864c3._0x476f01,0x1b3,0x10a,_0x4864c3._0x53a29d)]===_0x5057a2(0x135,0x12f,0x122,0x10d)){const _0x3d777a=_0x1c6aa5['call_id']??(_0x16ecbf!==void 0x0?this['outputIndexToCallId']['get'](_0x16ecbf):void 0x0),_0xdeea8f=_0x3d777a?this['toolCalls']['get'](_0x3d777a):void 0x0;_0xdeea8f&&typeof _0x1c6aa5[_0x136a6f(0x532,0x48a,_0x4864c3._0x52d4fd,_0x4864c3._0x21f527)]==='string'&&(_0xdeea8f['function'][_0x5057a2(_0x4864c3._0x181a04,_0x4864c3._0x20e763,0x1f5,_0x4864c3._0x30608c)]=_0x1c6aa5[_0x136a6f(_0x4864c3._0x4176fe,_0x4864c3._0x454e0e,_0x4864c3._0x3a7094,_0x4864c3._0x4df4a8)]);break;}if(_0x1c6aa5?.[_0x5057a2(0x1ca,_0x4864c3._0x116a8f,_0x4864c3._0x50cdc0,0x214)]===_0x136a6f(_0x4864c3._0x248d53,_0x4864c3._0x38808c,0x581,_0x4864c3._0x1d9df8)&&_0x1c6aa5['id']){const _0x59c162=this[_0x136a6f(_0x4864c3._0x588c06,_0x4864c3._0x810085,0x4ac,_0x4864c3._0x4fc6b4)](_0x1c6aa5['id'],_0x16ecbf);typeof _0x1c6aa5['encrypted_content']===_0x5057a2(_0x4864c3._0x1c74d0,0x24d,0x201,_0x4864c3._0x587d3e)&&(_0x59c162['encryptedContent']=_0x1c6aa5[_0x5057a2(0x17c,0x17a,0x1ac,_0x4864c3._0x3f0cb1)]);if(Array['isArray'](_0x1c6aa5[_0x5057a2(_0x4864c3._0x4ee902,0x192,0x9e,_0x4864c3._0x2dbcde)]))for(let _0x39cc99=0x0;_0x39cc99<_0x1c6aa5[_0x5057a2(0x13e,_0x4864c3._0x30e552,0xba,_0x4864c3._0x3eac7e)][_0x5057a2(_0x4864c3._0xa538f8,0x25b,0x21f,0x1ff)];_0x39cc99+=0x1){const _0xf245c=_0x1c6aa5[_0x136a6f(_0x4864c3._0x1a5bc0,_0x4864c3._0x74cf0f,0x424,_0x4864c3._0x2deb10)][_0x39cc99];_0xf245c[_0x5057a2(_0x4864c3._0x476f01,0x1c1,_0x4864c3._0x370d5e,_0x4864c3._0x572dfe)]===_0x136a6f(0x540,0x5b6,_0x4864c3._0x413e58,0x5f5)&&typeof _0xf245c['text']===_0x5057a2(_0x4864c3._0x1c74d0,0x139,0x123,0x1f0)&&_0x59c162[_0x5057a2(_0x4864c3._0x5440a6,_0x4864c3._0x3b67fc,_0x4864c3._0x26284e,0x293)]['set'](_0x39cc99,_0xf245c[_0x5057a2(_0x4864c3._0x3b67fc,_0x4864c3._0x275d07,_0x4864c3._0x3af64b,_0x4864c3._0x3f8b88)]);}typeof _0x1c6aa5['text']===_0x136a6f(0x5da,0x50f,0x48f,0x5ab)&&_0x59c162[_0x136a6f(0x547,0x50c,0x449,0x582)][_0x5057a2(0x27b,0x212,0x337,0x2a5)](0x0,_0x1c6aa5[_0x136a6f(0x5ee,_0x4864c3._0x272abc,_0x4864c3._0x1240c2,0x51a)]);}break;}case _0x136a6f(0x454,0x478,_0x4864c3._0x2f3008,_0x4864c3._0x51a215):{const _0x50f27e=typeof _0x554399[_0x136a6f(0x5eb,0x5d5,_0x4864c3._0x5620f8,0x551)]==='string'?_0x554399[_0x136a6f(0x60e,0x5d5,0x639,_0x4864c3._0x460ccb)]:'',_0x5104f3=typeof _0x554399[_0x5057a2(0x181,_0x4864c3._0x3f112f,_0x4864c3._0x5addb4,_0x4864c3._0x33bae3)]==='string'?_0x554399['item_id']:typeof _0x554399[_0x136a6f(_0x4864c3._0x2a171e,0x4c7,_0x4864c3._0x227fdd,0x4ea)]===_0x5057a2(0x18b,_0x4864c3._0x587d3e,0x20e,_0x4864c3._0x130506)?this[_0x136a6f(_0x4864c3._0x18f142,_0x4864c3._0x4c6510,_0x4864c3._0x18f142,_0x4864c3._0x50a841)][_0x5057a2(0x18f,0x1ad,0x1a2,0x120)](_0x554399['output_index']):void 0x0,_0x37a4ea=typeof _0x554399[_0x136a6f(0x518,0x4c7,_0x4864c3._0x2085c4,0x475)]===_0x5057a2(_0x4864c3._0x36c2eb,_0x4864c3._0x386109,_0x4864c3._0x583d63,0x142)?_0x554399[_0x5057a2(0x18e,_0x4864c3._0x3b67ae,_0x4864c3._0x2be03b,0x114)]:0x0,_0x12861f=typeof _0x554399['summary_index']===_0x5057a2(0x18b,0xca,_0x4864c3._0x4e29bd,_0x4864c3._0x3c6220)?_0x554399['summary_index']:0x0;if(_0x5104f3&&_0x50f27e[_0x5057a2(_0x4864c3._0xa538f8,_0x4864c3._0xac05a1,_0x4864c3._0x286b2b,_0x4864c3._0x5bb2f4)]>0x0){const _0x59681b=this[_0x136a6f(_0x4864c3._0x517e06,_0x4864c3._0x810085,_0x4864c3._0x185d19,0x55f)](_0x5104f3,_0x37a4ea);_0x59681b[_0x5057a2(_0x4864c3._0x2a5da0,0x2d7,0x282,0x2d5)][_0x136a6f(0x5f1,_0x4864c3._0x3413c7,_0x4864c3._0x400b71,0x544)](_0x12861f,''+(_0x59681b[_0x5057a2(0x255,_0x4864c3._0x35b290,0x252,_0x4864c3._0x5826a8)][_0x5057a2(0x18f,0x1e6,_0x4864c3._0x23447e,0xd8)](_0x12861f)??'')+_0x50f27e);if(isUserVisibleReasoning(this['request']))return[{'type':'openai_reasoning_summary_delta','delta':_0x50f27e,'itemId':_0x5104f3,'outputIndex':_0x37a4ea,'summaryIndex':_0x12861f}];}break;}case _0x5057a2(_0x4864c3._0x11b421,0x181,0x255,0x140):{const _0x4282b7=typeof _0x554399['item_id']===_0x136a6f(0x44a,_0x4864c3._0x2d2a82,0x499,0x495)?_0x554399[_0x136a6f(0x4ef,0x4ba,0x578,_0x4864c3._0x18f953)]:typeof _0x554399[_0x5057a2(0x18e,_0x4864c3._0x1c7ff6,_0x4864c3._0x302c23,0xda)]===_0x136a6f(0x4cd,0x4c4,_0x4864c3._0x2bd10c,0x53b)?this[_0x5057a2(_0x4864c3._0x4e5f78,0x151,_0x4864c3._0x17248b,_0x4864c3._0x2d74c7)][_0x5057a2(0x18f,0x1ea,0x141,_0x4864c3._0x342e3c)](_0x554399['output_index']):void 0x0,_0x1219a9=typeof _0x554399[_0x136a6f(_0x4864c3._0x36ea10,_0x4864c3._0x3ab7a9,_0x4864c3._0x58f5ac,_0x4864c3._0x25fd90)]==='number'?_0x554399['output_index']:0x0,_0x1e93e5=typeof _0x554399[_0x136a6f(0x65e,0x5d4,_0x4864c3._0x5a2cf6,0x670)]===_0x5057a2(0x18b,0xd2,0x213,0x255)?_0x554399[_0x5057a2(0x29b,_0x4864c3._0x4f95ab,_0x4864c3._0x515d63,0x2c6)]:0x0,_0x331cd7=typeof _0x554399[_0x136a6f(_0x4864c3._0x208abb,0x556,0x4b1,0x50c)]==='string'?_0x554399[_0x5057a2(0x21d,0x17d,_0x4864c3._0x3036bf,0x1cf)]:'';_0x4282b7&&this[_0x5057a2(0x166,_0x4864c3._0x23474c,_0x4864c3._0x1c2eb7,0xc1)](_0x4282b7,_0x1219a9)[_0x5057a2(0x255,_0x4864c3._0x51c7bc,0x26c,_0x4864c3._0x1c9d93)][_0x136a6f(0x523,_0x4864c3._0x35e988,_0x4864c3._0x43522b,0x4ea)](_0x1e93e5,_0x331cd7);break;}case _0x5057a2(0x1e3,_0x4864c3._0x43f8ae,0x169,0x27e):{const _0x18da21=typeof _0x554399['delta']==='string'?_0x554399[_0x136a6f(0x5e7,_0x4864c3._0x495c48,0x52a,_0x4864c3._0x401d1b)]:'',_0x1ee1cf=typeof _0x554399[_0x136a6f(0x54a,_0x4864c3._0x4b369f,0x45f,_0x4864c3._0x49091c)]===_0x136a6f(_0x4864c3._0x202f91,_0x4864c3._0x2d2a82,0x50f,_0x4864c3._0x14eb44)?_0x554399['item_id']:typeof _0x554399['output_index']===_0x136a6f(0x571,_0x4864c3._0x5eba7c,_0x4864c3._0x257805,0x4d2)?this[_0x136a6f(0x5a6,_0x4864c3._0x753287,0x4c7,0x465)][_0x136a6f(_0x4864c3._0x3d9154,0x4c8,_0x4864c3._0x35b7a2,0x400)](_0x554399[_0x136a6f(0x458,0x4c7,_0x4864c3._0x3085de,0x519)]):void 0x0,_0x42c92e=typeof _0x554399['output_index']==='number'?_0x554399[_0x5057a2(0x18e,_0x4864c3._0x422b08,0x1ce,_0x4864c3._0x850de6)]:0x0,_0x410d9c=typeof _0x554399[_0x136a6f(_0x4864c3._0x1e7e35,0x56c,0x59f,_0x4864c3._0x473d3b)]===_0x5057a2(0x18b,_0x4864c3._0x220fe0,_0x4864c3._0x5e8829,0x161)?_0x554399[_0x136a6f(_0x4864c3._0x2bcf0f,0x56c,0x52d,_0x4864c3._0x3f54aa)]:0x0;if(_0x1ee1cf&&_0x18da21[_0x5057a2(_0x4864c3._0x486619,0x252,0x25c,0x17f)]>0x0){const _0x29e04c=this[_0x5057a2(0x166,0x10a,0x167,0x14e)](_0x1ee1cf,_0x42c92e);_0x29e04c[_0x5057a2(0x1d3,0x210,0x25d,_0x4864c3._0x4a3382)][_0x136a6f(0x4f4,_0x4864c3._0x3413c7,0x505,_0x4864c3._0x9d06c4)](_0x410d9c,''+(_0x29e04c[_0x136a6f(0x56c,0x50c,0x49b,0x5ac)]['get'](_0x410d9c)??'')+_0x18da21);if(isUserVisibleReasoning(this[_0x5057a2(_0x4864c3._0x10d616,_0x4864c3._0x3e448a,0x13c,0x1c9)]))return[{'type':_0x136a6f(0x464,_0x4864c3._0x18a88b,0x509,_0x4864c3._0x2f72bc),'contentIndex':_0x410d9c,'delta':_0x18da21,'itemId':_0x1ee1cf,'outputIndex':_0x42c92e}];}break;}case'response.reasoning_text.done':{const _0x555296=typeof _0x554399[_0x5057a2(0x181,_0x4864c3._0x5445da,0x186,_0x4864c3._0x1698be)]==='string'?_0x554399['item_id']:typeof _0x554399['output_index']===_0x5057a2(0x18b,0x1a2,0x1b2,_0x4864c3._0x311197)?this[_0x136a6f(0x59d,0x529,_0x4864c3._0x41d0d0,0x5cd)][_0x136a6f(_0x4864c3._0x39c5f3,0x4c8,0x4ea,_0x4864c3._0xd247fe)](_0x554399['output_index']):void 0x0,_0x54e4d8=typeof _0x554399[_0x5057a2(0x18e,0xd0,0xfc,0x133)]==='number'?_0x554399[_0x136a6f(0x4fa,0x4c7,_0x4864c3._0x3f0c2d,0x444)]:0x0,_0x50c23c=typeof _0x554399[_0x5057a2(0x233,_0x4864c3._0x153990,0x291,0x1db)]==='number'?_0x554399[_0x136a6f(_0x4864c3._0x2bd826,_0x4864c3._0x4e25af,0x603,_0x4864c3._0x4438f9)]:0x0,_0x5240cd=typeof _0x554399[_0x5057a2(0x21d,0x1b8,0x20a,_0x4864c3._0x175a87)]===_0x136a6f(0x56a,0x50f,0x545,0x571)?_0x554399['text']:'';_0x555296&&this[_0x136a6f(_0x4864c3._0x2bd826,0x49f,0x3ed,_0x4864c3._0x2b90b7)](_0x555296,_0x54e4d8)[_0x136a6f(0x584,0x50c,_0x4864c3._0x3217e7,_0x4864c3._0xc1db98)][_0x136a6f(_0x4864c3._0x4bfa64,_0x4864c3._0x3a3ba7,_0x4864c3._0xc20d23,_0x4864c3._0x4c6510)](_0x50c23c,_0x5240cd);break;}case _0x136a6f(_0x4864c3._0x341706,_0x4864c3._0x1535f5,_0x4864c3._0x59c0d7,_0x4864c3._0x24540d):{this[_0x136a6f(_0x4864c3._0x2a21e3,0x56a,0x4e3,_0x4864c3._0x338797)]=_0x554399[_0x136a6f(_0x4864c3._0x318d8b,0x58b,0x555,0x53f)];break;}case _0x5057a2(_0x4864c3._0x1c403f,_0x4864c3._0xa0c143,_0x4864c3._0x475f68,0x2e0):{const _0x363c1f=_0x554399['response'];throw new OpenAiResponsesStreamError(_0x363c1f?.[_0x136a6f(_0x4864c3._0x279a15,_0x4864c3._0x2aa031,_0x4864c3._0x2f961c,0x4f6)]?.[_0x5057a2(0x1bd,_0x4864c3._0xf37147,0x100,_0x4864c3._0x40ed12)]??'Responses\x20stream\x20failed',{'code':_0x363c1f?.['error']?.[_0x5057a2(0x2c9,_0x4864c3._0x2cf92a,0x243,0x24e)]});}case'error':{const _0x2a81c4=_0x554399[_0x136a6f(0x4e3,0x586,_0x4864c3._0x42d9e6,_0x4864c3._0x340cf0)];throw new OpenAiResponsesStreamError(_0x2a81c4?.[_0x136a6f(0x554,_0x4864c3._0x5077bf,_0x4864c3._0x119142,0x57b)]??_0x136a6f(0x554,0x562,0x51e,_0x4864c3._0x4cf9fa),{'code':_0x2a81c4?.[_0x136a6f(_0x4864c3._0x235fe0,_0x4864c3._0x5a0e4b,0x6bc,_0x4864c3._0x551e04)],'status':typeof _0x554399[_0x5057a2(0x1af,0x264,_0x4864c3._0x5be1ff,_0x4864c3._0x461d53)]==='number'?_0x554399[_0x136a6f(0x568,_0x4864c3._0x12ab98,0x437,_0x4864c3._0x5d171e)]:void 0x0});}}return[];}[_0x2b6123(0x2df,0x2c6,0x353,0x2b8)](){const _0x346931={_0x56518a:0x3a0,_0x41e5ad:0x3c6,_0x563f79:0x445,_0x1ed017:0x1c3,_0x2df147:0x14e,_0x694b88:0x137,_0x2a4c1f:0x108,_0x215884:0xc7,_0x14432c:0x13f,_0xfed7d:0xab,_0x1d8418:0x158,_0x4e7ef5:0x31,_0x44bb47:0x39e,_0x47573c:0x331,_0x318d91:0x37f,_0x5a115b:0x3ae,_0x2fed92:0x365,_0x53a127:0x318,_0x30e4e7:0x1d6,_0x2bae59:0x252,_0x3b5854:0x389,_0x45ec93:0x134,_0x5c6ece:0x24e,_0x1bed9c:0x452,_0x512e03:0xf7,_0x5912f3:0x1b7,_0x55bace:0x199,_0x2815dd:0x108,_0xcf5815:0x148,_0x153aea:0x1da,_0x21b1da:0xcf,_0x5dbe10:0x17c,_0x6371c0:0x2c8,_0x229141:0x2bd,_0x4376d3:0x1f4,_0x15120e:0x145,_0x297fb2:0x191,_0x2d83d3:0x159,_0x3250bb:0x1b0,_0xba73eb:0xe5,_0x42bd77:0x135,_0x4441ed:0xa3,_0x41150e:0x17a,_0x46eafd:0x16e,_0x772d6:0x1be,_0x43c3cb:0x2f1,_0x125998:0x241,_0x2a5abe:0x35d,_0x501d6f:0x1e8,_0x50ad55:0x1ce,_0xa50f55:0xc8,_0x2f0e58:0x178,_0x328cbf:0x106,_0x37cda2:0xfd,_0x4c2909:0x129,_0x431f13:0xf1,_0x16d1f0:0x13a,_0x13ce7e:0x7c,_0x26c46f:0x97,_0x2306c0:0x145,_0x46a8ef:0x1d3,_0x30f785:0x2ae,_0xbd95c1:0x26a,_0x400ea0:0x2e2,_0x29e16a:0x2e7,_0x2e4739:0x225,_0xcc70c0:0x177},_0x4573c6={_0x5bcafa:0x8c},_0x8ccb8={_0x269c50:0x12f,_0x22727e:0x1c3},_0x410680={_0x3b4875:0x113,_0x489163:0x19d},_0x3605b1=[];for(const [_0x43cbd0,_0x232859]of this[_0x1e8af0(_0x346931._0x56518a,_0x346931._0x41e5ad,_0x346931._0x563f79,0x382)][_0xdfd622(_0x346931._0x1ed017,0x14a,_0x346931._0x2df147,0xe8)]()){const _0x1d59cf=_0x232859['join']('');if(_0x1d59cf[_0xdfd622(_0x346931._0x694b88,0x6f,_0x346931._0x2a4c1f,0x15e)]===0x0)continue;_0x3605b1['push']({'index':_0x43cbd0,'item':{'type':_0x1e8af0(0x344,0x2cf,0x267,0x353),'role':'assistant','content':[{'type':_0xdfd622(_0x346931._0x215884,0x13e,_0x346931._0x14432c,_0x346931._0xfed7d),'text':_0x1d59cf}]}});}function _0xdfd622(_0x40e42c,_0x1c7f4c,_0x1cb0e3,_0x2fce15){return _0x2b6123(_0x1c7f4c,_0x1c7f4c-_0x410680._0x3b4875,_0x1cb0e3- -0x193,_0x2fce15-_0x410680._0x489163);}for(const _0x3e8a4d of this[_0xdfd622(_0x346931._0x1d8418,_0x346931._0x4e7ef5,0xd1,0x2a)]['values']()){_0x3605b1[_0x1e8af0(_0x346931._0x44bb47,_0x346931._0x47573c,0x2ed,0x32c)]({'index':_0x3e8a4d[_0x1e8af0(0x37d,_0x346931._0x318d91,_0x346931._0x5a115b,0x43b)]??_0x3605b1[_0x1e8af0(_0x346931._0x2fed92,0x2b8,_0x346931._0x53a127,0x233)],'item':{'type':_0xdfd622(0x254,0x250,_0x346931._0x30e4e7,_0x346931._0x2bae59),'id':_0x3e8a4d['id'],..._0x3e8a4d[_0x1e8af0(0x332,0x380,0x2cc,_0x346931._0x3b5854)]?{'encrypted_content':_0x3e8a4d['encryptedContent']}:{},..._0x3e8a4d[_0xdfd622(_0x346931._0x45ec93,0x1f7,0x1b7,_0x346931._0x5c6ece)][_0x1e8af0(0x354,0x3a4,_0x346931._0x53a127,_0x346931._0x1bed9c)]>0x0?{'summary':Array['from'](_0x3e8a4d[_0xdfd622(_0x346931._0x512e03,0x18f,_0x346931._0x5912f3,_0x346931._0x55bace)][_0xdfd622(_0x346931._0x2815dd,0x92,0x14e,_0x346931._0xcf5815)]())[_0xdfd622(_0x346931._0x153aea,_0x346931._0x21b1da,0x16e,_0x346931._0x5dbe10)]((_0x57fa41,_0x3d2c7e)=>_0x57fa41[0x0]-_0x3d2c7e[0x0])['map'](([,_0x36a0a4])=>{const _0x292a72={_0xbb199e:0x291,_0x42cfd8:0x1,_0x195a44:0x125};function _0xdc7223(_0x270d66,_0x296500,_0x1ccca1,_0x235532){return _0x1e8af0(_0x235532,_0x270d66- -_0x292a72._0xbb199e,_0x1ccca1-_0x292a72._0x42cfd8,_0x235532-_0x292a72._0x195a44);}return{'type':_0xdc7223(0xfe,_0x8ccb8._0x269c50,_0x8ccb8._0x22727e,0x19b),'text':_0x36a0a4};})}:{},..._0x3e8a4d[_0x1e8af0(0x24d,0x2e5,0x25f,_0x346931._0x6371c0)][_0xdfd622(_0x346931._0x229141,0x2a7,_0x346931._0x4376d3,_0x346931._0x15120e)]>0x0?{'text':Array[_0xdfd622(_0x346931._0x297fb2,0x95,_0x346931._0x2d83d3,_0x346931._0x3250bb)](_0x3e8a4d[_0xdfd622(0x9d,_0x346931._0xba73eb,_0x346931._0x42bd77,_0x346931._0x4441ed)]['entries']())[_0xdfd622(_0x346931._0x41150e,0x1ca,_0x346931._0x46eafd,_0x346931._0x772d6)]((_0x240f61,_0x132f71)=>_0x240f61[0x0]-_0x132f71[0x0])['map'](([,_0x2acb60])=>_0x2acb60)[_0x1e8af0(0x2b5,_0x346931._0x43c3cb,_0x346931._0x125998,_0x346931._0x2a5abe)]('')}:{}}});}function _0x1e8af0(_0x2b32cc,_0xf792bc,_0x9def45,_0x1532e7){return _0x2b6123(_0x2b32cc,_0xf792bc-0xaa,_0xf792bc-0x1d,_0x1532e7-_0x4573c6._0x5bcafa);}for(const _0x73920e of this[_0x1e8af0(0x2f5,0x292,_0x346931._0x501d6f,_0x346931._0x50ad55)][_0xdfd622(_0x346931._0xa50f55,_0x346931._0x2f0e58,0x154,_0x346931._0x328cbf)]()){_0x3605b1[_0xdfd622(_0x346931._0x37cda2,_0x346931._0x4c2909,0x181,0x109)]({'index':this[_0xdfd622(0x4e,0x8f,0xb7,0x4c)][_0xdfd622(0xaa,0x176,_0x346931._0x431f13,0x148)](_0x73920e['id'])??_0x3605b1[_0xdfd622(_0x346931._0x4441ed,_0x346931._0x16d1f0,_0x346931._0x2815dd,_0x346931._0xfed7d)],'item':{'type':_0xdfd622(_0x346931._0x13ce7e,0x41,_0x346931._0x26c46f,_0x346931._0x2306c0),'call_id':_0x73920e['id'],'name':_0x73920e[_0x1e8af0(_0x346931._0x46a8ef,0x287,0x29a,0x317)][_0x1e8af0(_0x346931._0x30f785,_0x346931._0xbd95c1,_0x346931._0x400ea0,0x23c)],'arguments':_0x73920e[_0x1e8af0(_0x346931._0x29e16a,0x287,_0x346931._0x2e4739,0x254)]['arguments']}});}return _0x3605b1[_0xdfd622(0x12a,0x226,0x16e,_0x346931._0xcc70c0)]((_0x446a36,_0x35b744)=>_0x446a36[_0x1e8af0(0x359,0x36d,0x407,0x390)]-_0x35b744[_0x1e8af0(0x301,0x36d,0x36e,0x35c)])['map'](_0x13d35c=>_0x13d35c['item']);}['getOrCreateReasoningItem'](_0x55c07d,_0x2c486d){const _0x28deed={_0x892112:0x237,_0x23c5dd:0x201,_0x82c4e3:0x2ab,_0x1d53e1:0x262,_0x3f1ad0:0x3f8,_0x5a1e35:0x28b,_0x4577d2:0x3c5,_0x5638a4:0x47e,_0x5be61a:0x1bc,_0x3ec2cc:0x205,_0x179fa2:0x473,_0x2b879b:0x444,_0x5e4188:0x4d1},_0x4f9d69={_0x39890e:0x16e},_0x2d75e6={_0x4f085d:0x140,_0x4b6da0:0xdd},_0x445bf0=this[_0x59c83c(_0x28deed._0x892112,_0x28deed._0x23c5dd,_0x28deed._0x82c4e3,_0x28deed._0x1d53e1)]['get'](_0x55c07d);function _0x5c276a(_0x386658,_0x2f17f9,_0x1e5ebd,_0x43cf93){return _0x38c793(_0x386658,_0x2f17f9-_0x2d75e6._0x4f085d,_0x43cf93- -0x22,_0x43cf93-_0x2d75e6._0x4b6da0);}if(_0x445bf0)return _0x2c486d!==void 0x0&&(_0x445bf0[_0x5c276a(_0x28deed._0x3f1ad0,0x41a,0x458,0x470)]=_0x2c486d,this[_0x59c83c(0x330,_0x28deed._0x5a1e35,0x345,0x2e3)][_0x5c276a(_0x28deed._0x4577d2,0x4c7,0x3ee,_0x28deed._0x5638a4)](_0x2c486d,_0x55c07d)),_0x445bf0;const _0x59be7a={'id':_0x55c07d,'outputIndex':_0x2c486d,'summaryByIndex':new Map(),'textByIndex':new Map()};this[_0x59c83c(_0x28deed._0x5be61a,0x2ce,_0x28deed._0x3ec2cc,0x262)][_0x5c276a(_0x28deed._0x179fa2,_0x28deed._0x2b879b,_0x28deed._0x5e4188,0x47e)](_0x55c07d,_0x59be7a);function _0x59c83c(_0x406e20,_0x24d5ae,_0x5d608a,_0xc793e6){return _0x38c793(_0x406e20,_0x24d5ae-_0x4f9d69._0x39890e,_0xc793e6- -0x132,_0xc793e6-0x100);}return _0x2c486d!==void 0x0&&this['outputIndexToReasoningId']['set'](_0x2c486d,_0x55c07d),_0x59be7a;}};function createOpenAiResponsesStreamParser(_0x515527){return new OpenAiResponsesStreamParser(_0x515527);}function createOpenAiSurfaces(_0x4fd07a={}){const _0x654cb7={_0x3e6932:0x53,_0x41100d:0x391,_0x12f859:0x43b,_0x2cb8ff:0x35a,_0x3be82f:0x356,_0x2acd0d:0x3cd,_0x8a25e2:0x2f6,_0x42c945:0x3d8,_0x52a478:0x465,_0x44ca38:0x300,_0x394592:0x278,_0x571acd:0x2ac,_0x17dcfa:0x28e,_0x9eac25:0x2a,_0x57e519:0x8e},_0xdd2230={_0x410567:0x11e,_0x53e1bb:0xd1,_0x3c1ce5:0xba},_0x310f0d={_0x102227:0x1a1,_0x2a3602:0x15d},_0x4ca949={_0x342806:0x27c,_0x42e72a:0x320},_0x148292={_0x1351f4:0xf5,_0x3b366f:0x27},_0xb08a6c={_0x2dc34d:0x6f};function _0x1a0959(_0xb3a86e,_0x152b8e,_0x3920af,_0x44c88){return _0x2b6123(_0x152b8e,_0x152b8e-0x166,_0xb3a86e-0x53,_0x44c88-_0xb08a6c._0x2dc34d);}const _0x2ed729=_0x4fd07a[_0x561caa(_0x654cb7._0x3e6932,0xcf,-0x15,0x5c)]??_0x1a0959(_0x654cb7._0x41100d,_0x654cb7._0x12f859,_0x654cb7._0x2cb8ff,0x3da);function _0x561caa(_0x61ceaa,_0x445e15,_0x7a765f,_0x37c777){return _0x38c793(_0x445e15,_0x445e15-_0x148292._0x1351f4,_0x61ceaa- -0x3cf,_0x37c777-_0x148292._0x3b366f);}const _0x33c0a3=_0x4fd07a[_0x1a0959(_0x654cb7._0x3be82f,0x2fa,_0x654cb7._0x2acd0d,_0x654cb7._0x8a25e2)]??_0x1a0959(_0x654cb7._0x42c945,_0x654cb7._0x52a478,0x377,0x446);return[{'id':OPENAI_CHAT_COMPLETIONS_SURFACE,'transport':_0x1a0959(0x2ac,_0x654cb7._0x44ca38,_0x654cb7._0x394592,0x2d3),'createRequest'(_0x32a0f0){const _0x3aa037={_0x3cc0a3:0xe1};function _0x298c52(_0x4fc307,_0x50d969,_0x5896f4,_0x3a197b){return _0x1a0959(_0x50d969-0x4c,_0x4fc307,_0x5896f4-_0x3aa037._0x3cc0a3,_0x3a197b-0x1e1);}return{'accept':_0x298c52(0x3af,0x320,_0x4ca949._0x342806,_0x4ca949._0x42e72a),'body':createChatRequestBody(_0x32a0f0,![]),'path':_0x2ed729};},'parseResponse'(_0x580326){return parseChatCompletionResponse(_0x580326);}},{'id':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,'transport':'http-sse','createRequest'(_0x46f637){const _0x35e999={_0x5819ce:0xb0,_0x35092d:0x8b};function _0x191628(_0x13f856,_0x9c712c,_0x354cc2,_0x4a452d){return _0x561caa(_0x4a452d-_0x35e999._0x5819ce,_0x9c712c,_0x354cc2-_0x35e999._0x35092d,_0x4a452d-0x5a);}return{'accept':_0x191628(0x157,0x178,_0x310f0d._0x102227,_0x310f0d._0x2a3602),'body':createChatRequestBody(_0x46f637,!![]),'path':_0x2ed729};},'createStreamParser'(_0x2cc703){return new OpenAiChatCompletionsStreamParser(_0x2cc703);}},{'id':OPENAI_RESPONSES_SURFACE,'transport':_0x1a0959(_0x654cb7._0x571acd,_0x654cb7._0x17dcfa,0x2ea,0x2fb),'createRequest'(_0x978686){return{'accept':'application/json','body':createResponsesRequestBody(_0x978686,![]),'path':_0x33c0a3};},'parseResponse'(_0x2242a9,_0x201c19){return parseResponsesResponse(_0x2242a9,_0x201c19);}},{'id':OPENAI_RESPONSES_STREAM_SURFACE,'transport':'http-sse','createRequest'(_0xe23e9b){const _0x4123de={_0x54c623:0xd,_0x1d9dad:0x4a,_0x1639ab:0x110};function _0x29b3cc(_0xb60332,_0x3d96de,_0x3204bb,_0x2e6d57){return _0x561caa(_0x2e6d57-_0x4123de._0x54c623,_0xb60332,_0x3204bb-_0x4123de._0x1d9dad,_0x2e6d57-_0x4123de._0x1639ab);}return{'accept':_0x29b3cc(_0xdd2230._0x410567,0x184,_0xdd2230._0x53e1bb,_0xdd2230._0x3c1ce5),'body':createResponsesRequestBody(_0xe23e9b,!![]),'path':_0x33c0a3};},'createStreamParser'(_0x560d5c){return new OpenAiResponsesStreamParser(_0x560d5c);}},{'id':OPENAI_RESPONSES_WEBSOCKET_SURFACE,'transport':_0x561caa(_0x654cb7._0x9eac25,-0xb,_0x654cb7._0x57e519,0x87),'createRequest'(_0x291040){return{'initialEvent':createOpenAiResponsesWebSocketEvent(_0x291040),'path':_0x33c0a3};},'createStreamParser'(_0x14299f){return createOpenAiResponsesStreamParser(_0x14299f);}}];}var OpenAiProviderAdapter=class{[_0x38c793(0x499,0x476,0x474,0x46f)];constructor(_0x151945){this['headerResolver']=_0x151945;}['createMissingCredentialError'](){const _0xcce063={_0x573cc8:0x160,_0x58dbc2:0x163};function _0x31690d(_0x164beb,_0x51b1a0,_0x1678ec,_0x4c0cc2){return _0x2b6123(_0x1678ec,_0x51b1a0-0x102,_0x4c0cc2- -0x1da,_0x4c0cc2-0x4b);}return new Error(_0x31690d(_0xcce063._0x573cc8,0x7f,_0xcce063._0x58dbc2,0xac));}async[_0x2b6123(0x205,0x239,0x265,0x249)](_0xac53a6,_0x23fcf1){const _0x4284aa={_0x197c6e:0x486,_0x1d936f:0x3d3,_0x52323d:0x482,_0x4c63cb:0x396,_0x5a94de:0x3b4,_0x3b6748:0x1f3,_0x14d791:0x4a6,_0xb59088:0x4f4,_0xcf8518:0x437,_0x303c64:0x469,_0x1042ed:0x1a2,_0xcdf612:0x1f2,_0x5c11cf:0x1ea,_0x30f730:0x411,_0x5a719a:0x458,_0x5e9ab4:0x1df,_0x4639d5:0x132,_0x5132d0:0x1bf,_0x315378:0xe8,_0x66ba7b:0x18a,_0x1bcd34:0x2cf,_0x2c2dab:0x426,_0x1ed279:0x2dc,_0x5b7918:0x2f7,_0x2ee82e:0x360,_0x5a628f:0x2e0,_0x18760f:0x258,_0x26f63d:0x3d7,_0x451431:0x3fc},_0x39feaa={_0x1afbe9:0xc9},_0x596d10={_0x28aca2:0x68,_0x81aa5e:0x40};function _0x4237c7(_0x20b865,_0x439d6f,_0x4da94b,_0x3179e7){return _0x38c793(_0x4da94b,_0x439d6f-_0x596d10._0x28aca2,_0x3179e7- -0x231,_0x3179e7-_0x596d10._0x81aa5e);}const _0x508b46=new Headers();_0x508b46['set'](_0x5e18ef(_0x4284aa._0x197c6e,0x3cb,_0x4284aa._0x1d936f,0x33d),_0x23fcf1['accept']),_0x508b46[_0x5e18ef(_0x4284aa._0x52323d,_0x4284aa._0x4c63cb,0x423,_0x4284aa._0x5a94de)]('authorization',_0x4237c7(_0x4284aa._0x3b6748,0xd8,0x13f,0x194)+_0xac53a6[_0x5e18ef(_0x4284aa._0x14d791,_0x4284aa._0xb59088,_0x4284aa._0xcf8518,_0x4284aa._0x303c64)][_0x4237c7(0x1f8,_0x4284aa._0x1042ed,_0x4284aa._0xcdf612,_0x4284aa._0x5c11cf)]);function _0x5e18ef(_0x55cef0,_0x164599,_0x463a5a,_0x2ad436){return _0x38c793(_0x2ad436,_0x164599-_0x39feaa._0x1afbe9,_0x463a5a- -0x7d,_0x2ad436-0x8f);}_0x23fcf1[_0x5e18ef(0x46f,_0x4284aa._0x30f730,_0x4284aa._0x5a719a,0x42e)]!==![]&&_0x508b46['set'](_0x4237c7(_0x4284aa._0x5e9ab4,0x159,_0x4284aa._0x4639d5,_0x4284aa._0x5132d0),_0x4237c7(_0x4284aa._0x315378,0x1a1,_0x4284aa._0x66ba7b,0x180));const _0x32c65b=await this['headerResolver']?.({'body':_0xac53a6[_0x5e18ef(_0x4284aa._0x1bcd34,0x2ab,0x2f2,0x2d0)],'credential':_0xac53a6[_0x5e18ef(0x3cb,0x4ee,_0x4284aa._0xcf8518,_0x4284aa._0x2c2dab)],'request':_0xac53a6[_0x5e18ef(_0x4284aa._0x1ed279,_0x4284aa._0x5b7918,_0x4284aa._0x2ee82e,0x40a)],'session':_0xac53a6[_0x4237c7(_0x4284aa._0x5a628f,_0x4284aa._0x18760f,0x24e,0x28b)],'stream':_0xac53a6[_0x5e18ef(0x384,_0x4284aa._0x26f63d,_0x4284aa._0x451431,0x3af)]});for(const [_0x3d3173,_0x454043]of Object['entries'](_0x32c65b??{})){_0x508b46['set'](_0x3d3173,_0x454043);}return _0x508b46;}[_0x38c793(0x3b6,0x42a,0x3b7,0x303)](_0x44c7f2){return _0x44c7f2;}[_0x38c793(0x410,0x3fd,0x4bb,0x473)](_0x2034d6,_0xcfcab8){return resolveSessionBaseUrl(_0x2034d6,_0xcfcab8);}['resolveCredential'](_0x4f838f,_0x206daf){return resolveApiCredential(_0x4f838f,_0x206daf);}async[_0x2b6123(0x325,0x2d4,0x358,0x3f0)](_0x2c759d){return await createOpenAiApiError(_0x2c759d);}};function _0x2b6123(_0x395190,_0x1d019c,_0x26217b,_0x31fc8d){return _0x25f1(_0x26217b-0xe9,_0x395190);}var OpenAiModel=class _OpenAiModel extends RoutedModel{static [_0x2b6123(0x20f,0x32d,0x2cc,0x238)]=new Map();[_0x2b6123(0x325,0x285,0x2f2,0x23c)];[_0x38c793(0x43f,0x368,0x433,0x37e)];constructor(_0x4b3b40={}){const _0xc8f903={_0x17a8a3:0xdb,_0x17ffaa:0x117,_0x2ea446:0x268,_0x3dc43a:0x224,_0x59f6f4:0x271,_0xc4c8b3:0x204,_0x97b882:0x2b8,_0x314493:0x24c,_0x4ac590:0x138,_0x5dcc22:0x18c,_0x358450:0x239,_0x52694a:0x225,_0x2d265b:0x25f,_0x17d20c:0x2ae,_0x295e56:0x265,_0xeaab70:0x253,_0xc995a4:0x223,_0x306113:0x2ca,_0x55e89f:0x26d,_0x3f31f7:0x176,_0x1cabd2:0x205,_0x2a39e2:0x1af,_0x4da556:0x2ab},_0x2273c2={_0x31f9e8:0xdd,_0x40f152:0x2f},_0x2263f2={_0x5a250c:0x1de,_0x115835:0x493,_0x3a05ec:0xb8};function _0xe7e8b7(_0x1735c5,_0x216bab,_0x3730e0,_0x28ddae){return _0x2b6123(_0x1735c5,_0x216bab-_0x2263f2._0x5a250c,_0x3730e0- -_0x2263f2._0x115835,_0x28ddae-_0x2263f2._0x3a05ec);}const _0xd553de=_0x4b3b40[_0xe7e8b7(-0xe9,-_0xc8f903._0x17a8a3,-_0xc8f903._0x17ffaa,-0x13f)]??'gpt-4o',_0x2d0d14=_0x4b3b40[_0xe7e8b7(-_0xc8f903._0x2ea446,-0x1dc,-_0xc8f903._0x3dc43a,-0x1b0)]??0x4000,_0x341c55=_0x4b3b40[_0xe7e8b7(-0x120,-0x12b,-0x1a1,-0x13a)]??_0x4e535c(0x240,_0xc8f903._0x59f6f4,0x193,_0xc8f903._0xc4c8b3),_0x19ec13=_0x4b3b40['responsesPath']??_0x4e535c(0x287,0x1d5,_0xc8f903._0x97b882,_0xc8f903._0x314493);super({'apiKey':_0x4b3b40[_0xe7e8b7(-_0xc8f903._0x4ac590,-0x1d2,-_0xc8f903._0x5dcc22,-0x13a)],'baseUrl':trimTrailingSlashes(_0x4b3b40['baseUrl']??_0xe7e8b7(-_0xc8f903._0x358450,-0x22b,-_0xc8f903._0x52694a,-0x20b)),'fetch':_0x4b3b40[_0x4e535c(_0xc8f903._0x2d265b,0x316,0x23e,_0xc8f903._0x17d20c)],'maxTokens':_0x2d0d14,'model':_0xd553de,'reasoning':_0x4b3b40[_0x4e535c(0x26b,_0xc8f903._0x295e56,_0xc8f903._0xeaab70,_0xc8f903._0xc995a4)],'providerAdapter':new OpenAiProviderAdapter(_0x4b3b40[_0x4e535c(0x246,0x200,0x2f7,_0xc8f903._0x306113)]),'providerSessionResolver':_0x4b3b40['providerSessionResolver'],'requestMutators':_0x4b3b40['requestMutators'],'router':new StaticModelSurfaceRouter({'complete':OPENAI_CHAT_COMPLETIONS_SURFACE,'stream':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE}),'sessionManager':_0x4b3b40[_0xe7e8b7(-0x65,-0x159,-0xdf,-0x146)],'surfaces':createOpenAiSurfaces({'chatCompletionsPath':_0x341c55,'responsesPath':_0x19ec13}),'webSocketFactory':_0x4b3b40[_0x4e535c(0x2ad,0x216,_0xc8f903._0x55e89f,0x306)]});function _0x4e535c(_0xc6c3e9,_0x417fbd,_0x459e9e,_0x61ebf3){return _0x2b6123(_0x417fbd,_0x417fbd-_0x2273c2._0x31f9e8,_0xc6c3e9- -0xfe,_0x61ebf3-_0x2273c2._0x40f152);}this[_0xe7e8b7(-_0xc8f903._0x3f31f7,-0x24d,-0x1a1,-0x14b)]=_0x341c55,this[_0x4e535c(_0xc8f903._0x1cabd2,_0xc8f903._0x2a39e2,_0xc8f903._0x4da556,0x2a8)]=_0x19ec13;}[_0x38c793(0x57c,0x551,0x4cb,0x567)](_0xb723e0,_0x139b0a){const _0x37399c={_0x611291:0x157,_0x1f98fc:0xf0},_0x291e37={_0x163048:0x4a8};function _0x110691(_0xe3c446,_0x476d03,_0x3403a4,_0x14b5b1){return _0x2b6123(_0x476d03,_0x476d03-0x3,_0xe3c446- -_0x291e37._0x163048,_0x14b5b1-0x1e1);}return this[_0x110691(-_0x37399c._0x611291,-_0x37399c._0x1f98fc,-0x178,-0xff)](_0xb723e0,OPENAI_CHAT_COMPLETIONS_SURFACE,_0x139b0a);}[_0x38c793(0x4a6,0x495,0x46f,0x478)](_0x49aba9,_0xc796d4){const _0x2e3d2e={_0x1659e7:0x35c,_0x550b0f:0x244,_0x46a0ec:0x392},_0x654f69={_0x403279:0x48,_0x596f96:0x1b7,_0x175b1f:0xfc};function _0xada564(_0x5b81fe,_0x4994dd,_0x3aff27,_0x5cbfd6){return _0x38c793(_0x5cbfd6,_0x4994dd-_0x654f69._0x403279,_0x5b81fe- -_0x654f69._0x596f96,_0x5cbfd6-_0x654f69._0x175b1f);}return this[_0xada564(0x2ca,_0x2e3d2e._0x1659e7,_0x2e3d2e._0x550b0f,_0x2e3d2e._0x46a0ec)](_0x49aba9,OPENAI_RESPONSES_SURFACE,_0xc796d4);}['completeViaResponsesWebSocketSurface'](_0x4486de,_0x442d64){return this['completeViaSurface'](_0x4486de,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x442d64);}[_0x2b6123(0x325,0x2ae,0x309,0x39f)](_0x258328,_0x39bcc7){return this['streamViaSurface'](_0x258328,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,_0x39bcc7);}[_0x38c793(0x4ee,0x420,0x432,0x3d5)](_0xa513e3,_0x58ee6c){const _0xf8a483={_0x4f4a66:0x1db,_0x378947:0x149};function _0x487bff(_0x1ed1d4,_0x44cf8f,_0x401638,_0x350be5){return _0x38c793(_0x44cf8f,_0x44cf8f-_0xf8a483._0x4f4a66,_0x350be5- -_0xf8a483._0x378947,_0x350be5-0x1a2);}return this[_0x487bff(0x210,0x2b5,0x19f,0x238)](_0xa513e3,OPENAI_RESPONSES_STREAM_SURFACE,_0x58ee6c);}[_0x2b6123(0x364,0x345,0x398,0x2fb)](_0x24cd44,_0x2abce7){const _0x340a87={_0x48f9cf:0xbc,_0x36daa3:0x119,_0x3c20fd:0xe5},_0x13053f={_0x5c3b0b:0x268};function _0x34567e(_0x556834,_0x2e5226,_0x12e9ce,_0x5a646f){return _0x38c793(_0x2e5226,_0x2e5226-0x134,_0x12e9ce- -_0x13053f._0x5c3b0b,_0x5a646f-0xa6);}return this[_0x34567e(0xdd,_0x340a87._0x48f9cf,_0x340a87._0x36daa3,_0x340a87._0x3c20fd)](_0x24cd44,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x2abce7);}async[_0x38c793(0x4bf,0x4ea,0x42f,0x44c)](_0x27afcc,_0x2d9d27){const _0x1add38={_0x56f91c:0x8,_0x17b372:0x32},_0x4e0fc3={_0x5648eb:0x70,_0x5b67cf:0x13f};function _0xa32c05(_0x2c62a0,_0x387ad3,_0x43fbb1,_0x28b1d3){return _0x2b6123(_0x2c62a0,_0x387ad3-_0x4e0fc3._0x5648eb,_0x43fbb1- -0x2b9,_0x28b1d3-_0x4e0fc3._0x5b67cf);}try{return await this['completeViaChatCompletionsSurface'](_0x27afcc,_0x2d9d27);}catch(_0x2e1525){if(_0x2e1525 instanceof OpenAiApiError)throw this[_0xa32c05(-0xe7,_0x1add38._0x56f91c,-_0x1add38._0x17b372,0x77)](_0x2e1525);throw _0x2e1525;}}async['response'](_0x146ba1,_0x2b4961){const _0x552d27={_0x5b861b:0x16a,_0x40f28b:0xc2,_0x352f98:0x19e,_0x23d668:0x1fa},_0x1effaf={_0x1ce0e0:0x122},_0x55b4a5={_0x198963:0x4a9,_0x1eef01:0x31};function _0x4005bd(_0x58899f,_0x438e52,_0x3a061d,_0x2526a5){return _0x2b6123(_0x58899f,_0x438e52-0xdc,_0x438e52- -_0x55b4a5._0x198963,_0x2526a5-_0x55b4a5._0x1eef01);}function _0x5017eb(_0x154b91,_0xaf0c41,_0x1ccd62,_0x4e01d6){return _0x38c793(_0x4e01d6,_0xaf0c41-0xb3,_0x154b91- -0x266,_0x4e01d6-_0x1effaf._0x1ce0e0);}try{return await this[_0x4005bd(-0x22c,-_0x552d27._0x5b861b,-_0x552d27._0x40f28b,-0x129)](_0x146ba1,_0x2b4961);}catch(_0x11ee0a){if(_0x11ee0a instanceof OpenAiApiError)throw this[_0x4005bd(-_0x552d27._0x352f98,-0x222,-_0x552d27._0x23d668,-0x2b7)](_0x11ee0a);throw _0x11ee0a;}}async[_0x2b6123(0x29f,0x3eb,0x32c,0x3ea)](_0x2c8891,_0x470f0e){const _0xb1b118={_0x55840a:0x347,_0xb61f2b:0x2f8,_0x3a6da6:0x34f,_0x2d241d:0x33d,_0x5bd141:0x3f9,_0x67aa35:0x430,_0x4d9b2c:0x2f5,_0x317ef8:0x36f,_0x1a43df:0x2c6,_0x54f61b:0x219,_0x260075:0x232,_0x1a3c7e:0x3b9,_0x262d9e:0x25c,_0x28849e:0x36d,_0x5b5c64:0x287},_0xea3dad={_0x4bea7b:0x1a6};function _0x17f3b3(_0x56de9b,_0x5700bb,_0x46cd81,_0x2a06d1){return _0x2b6123(_0x2a06d1,_0x5700bb-_0xea3dad._0x4bea7b,_0x5700bb- -0x12e,_0x2a06d1-0x1c2);}function _0x25d4d7(_0x81adb5,_0x7072c7,_0x1d84a7,_0x3b8088){return _0x38c793(_0x81adb5,_0x7072c7-0x118,_0x1d84a7- -0xb2,_0x3b8088-0x127);}try{let _0x4aef20;for await(const _0x2cb0f5 of this[_0x25d4d7(_0xb1b118._0x55840a,_0xb1b118._0xb61f2b,_0xb1b118._0x3a6da6,0x359)](_0x2c8891,_0x470f0e)){_0x2cb0f5[_0x25d4d7(0x369,0x3a7,_0xb1b118._0x2d241d,_0xb1b118._0x5bd141)]===_0x25d4d7(_0xb1b118._0x67aa35,_0xb1b118._0x4d9b2c,_0xb1b118._0x317ef8,0x2fc)&&(_0x4aef20=_0x2cb0f5[_0x17f3b3(_0xb1b118._0x1a43df,_0xb1b118._0x54f61b,0x2dd,_0xb1b118._0x260075)]);}if(!_0x4aef20)throw new Error(_0x25d4d7(0x37d,0x440,_0xb1b118._0x1a3c7e,0x2ef));return _0x4aef20;}catch(_0x4809b8){if(_0x4809b8 instanceof OpenAiApiError)throw this[_0x25d4d7(_0xb1b118._0x262d9e,_0xb1b118._0x28849e,0x305,_0xb1b118._0x5b5c64)](_0x4809b8);throw _0x4809b8;}}async*[_0x38c793(0x34e,0x4a9,0x40c,0x44c)](_0x3194b8,_0x501c19){const _0xcf3e97={_0x107c3d:0x517,_0xfc39ea:0x5aa},_0x57fcc6={_0x1f62b3:0x100},_0x243149={_0x21c5c3:0xe4,_0x35f296:0x7f};function _0x2f3f9e(_0x568393,_0x12d0d8,_0x25b268,_0x10c55e){return _0x38c793(_0x10c55e,_0x12d0d8-_0x243149._0x21c5c3,_0x25b268-0x9a,_0x10c55e-_0x243149._0x35f296);}function _0x236d0b(_0x2de424,_0x311a8c,_0x23a566,_0x575fdd){return _0x2b6123(_0x2de424,_0x311a8c-_0x57fcc6._0x1f62b3,_0x575fdd-0x2ea,_0x575fdd-0x1f2);}try{yield*this[_0x2f3f9e(0x58f,_0xcf3e97._0x107c3d,0x4d3,0x44c)](_0x3194b8,_0x501c19);}catch(_0x3ff703){if(_0x3ff703 instanceof OpenAiApiError)throw this[_0x236d0b(0x541,_0xcf3e97._0xfc39ea,0x5d9,0x571)](_0x3ff703);throw _0x3ff703;}}async*['responseStream'](_0x13ed08,_0x26353b){const _0x65dc1c={_0x56ece3:0x396,_0x222242:0x3cb,_0x236e87:0x416,_0x1fe26a:0x2f1,_0x45b7b6:0x298,_0x5aad7a:0x350},_0x4de0ec={_0x1087a9:0x123,_0x263e5f:0xc9},_0x52d20a={_0x413517:0x102};function _0x35e6b3(_0x267b98,_0x45034b,_0x6109b4,_0x33d415){return _0x38c793(_0x6109b4,_0x45034b-0x135,_0x45034b- -0x474,_0x33d415-_0x52d20a._0x413517);}function _0xee52d8(_0x2c1e54,_0x4bfa34,_0x46b501,_0x307928){return _0x2b6123(_0x46b501,_0x4bfa34-_0x4de0ec._0x1087a9,_0x307928-_0x4de0ec._0x263e5f,_0x307928-0x191);}try{yield*this[_0xee52d8(0x380,0x3e6,_0x65dc1c._0x56ece3,_0x65dc1c._0x222242)](_0x13ed08,_0x26353b);}catch(_0x55943d){if(_0x55943d instanceof OpenAiApiError)throw this[_0xee52d8(_0x65dc1c._0x236e87,_0x65dc1c._0x1fe26a,_0x65dc1c._0x45b7b6,_0x65dc1c._0x5aad7a)](_0x55943d);throw _0x55943d;}}async*[_0x38c793(0x3d6,0x353,0x401,0x42e)](_0x4ade3e,_0x342aad){const _0x589e59={_0x14fb85:0x108},_0x19a5fe={_0x16e3af:0x10};function _0x4abf6f(_0x4ce74d,_0x337523,_0x941321,_0x18c251){return _0x2b6123(_0x4ce74d,_0x337523-_0x19a5fe._0x16e3af,_0x941321- -0x3ff,_0x18c251-0x12d);}try{yield*this[_0x4abf6f(0x1a,-_0x589e59._0x14fb85,-0x7e,-0x134)](_0x4ade3e,_0x342aad);}catch(_0x5e01d1){if(_0x5e01d1 instanceof OpenAiApiError)throw this['mapApiError'](_0x5e01d1);throw _0x5e01d1;}}[_0x2b6123(0x347,0x2e2,0x315,0x2d4)](_0x550485,_0xb25c68){const _0x18c503={_0x5c5edc:0x11a,_0x1089a4:0x16d,_0x2d593a:0x126},_0x295bb6={_0x33f879:0xad,_0x1415a9:0x419};function _0x2892e6(_0x2667d7,_0x27fde9,_0x210eec,_0x373836){return _0x2b6123(_0x210eec,_0x27fde9-_0x295bb6._0x33f879,_0x27fde9- -_0x295bb6._0x1415a9,_0x373836-0x2a);}return this[_0x2892e6(-0x95,-_0x18c503._0x5c5edc,-_0x18c503._0x1089a4,-_0x18c503._0x2d593a)](_0x550485,_0xb25c68);}['stream'](_0x3ba7e0,_0x4a60a6){return this['chatStream'](_0x3ba7e0,_0x4a60a6);}['getResponsesSocketSessionState'](_0x2bf737){const _0x3251ea={_0x5a444a:0x411,_0x71d8bb:0x454,_0x5e80f1:0x50f,_0x6df0b5:0x456,_0x13a449:0x4c3,_0xfe81a4:0x44,_0x9a39b4:0x1a,_0x4d1a41:0xfb,_0x16b86e:0x506,_0x58ada7:0x598,_0x5e45ac:0xbf},_0x558ac6={_0x51cebd:0xb0,_0x3dcdbe:0x3f8},_0x482925={_0x567cfd:0xc5,_0x18f402:0x1f7,_0x210b23:0xf6},_0x376a33=this[_0x5d1919(_0x3251ea._0x5a444a,0x4fb,0x3ad,_0x3251ea._0x71d8bb)](_0x2bf737);function _0x5d1919(_0x4266e8,_0x3721f9,_0x5a0f16,_0x10fdfd){return _0x2b6123(_0x3721f9,_0x3721f9-_0x482925._0x567cfd,_0x10fdfd-_0x482925._0x18f402,_0x10fdfd-_0x482925._0x210b23);}let _0x1c7803=_OpenAiModel[_0x5d1919(0x46e,_0x3251ea._0x5e80f1,_0x3251ea._0x6df0b5,_0x3251ea._0x13a449)][_0x420d38(0x35,-_0x3251ea._0xfe81a4,-_0x3251ea._0x9a39b4,-_0x3251ea._0x4d1a41)](_0x376a33);!_0x1c7803&&(_0x1c7803={'pending':Promise[_0x5d1919(0x640,_0x3251ea._0x16b86e,0x4f5,_0x3251ea._0x58ada7)]()},_OpenAiModel[_0x420d38(-_0x3251ea._0x5e45ac,0x4,-0xc,-0x23)]['set'](_0x376a33,_0x1c7803));function _0x420d38(_0x29a535,_0x356cda,_0x5dcc40,_0x4fe03c){return _0x38c793(_0x29a535,_0x356cda-_0x558ac6._0x51cebd,_0x356cda- -_0x558ac6._0x3dcdbe,_0x4fe03c-0x30);}return _0x1c7803;}['getResponsesSocketSessionKey'](_0x2d414b){const _0x32f594={_0x467629:0x1d7,_0x56efe9:0x1a6},_0x271ff6={_0x2663b2:0x154,_0x410537:0x1c2},_0x31c64f={_0x74716d:0xfc};function _0x10d889(_0x166df4,_0x357a4a,_0x2ca025,_0x2b2fb3){return _0x2b6123(_0x357a4a,_0x357a4a-0x1df,_0x2ca025- -0x2e9,_0x2b2fb3-_0x31c64f._0x74716d);}function _0x3e97b6(_0x6bdb44,_0x38aba1,_0x597f4e,_0x30a105){return _0x2b6123(_0x30a105,_0x38aba1-_0x271ff6._0x2663b2,_0x38aba1- -_0x271ff6._0x410537,_0x30a105-0x38);}return''+trimTrailingSlashes(this[_0x3e97b6(0x127,_0x32f594._0x467629,0x210,_0x32f594._0x56efe9)])+this[_0x3e97b6(0x198,0x141,0x12b,0x1ca)]+'::'+_0x2d414b;}async[_0x2b6123(0x3e8,0x351,0x337,0x31e)](_0x274863){const _0x3667fc={_0x586f48:0x196,_0x90712c:0xa8,_0x563a46:0x71,_0x3625b4:0x21,_0x42a1d6:0x3c,_0x5b7950:0xd0,_0xc7eba7:0xad,_0x5e1b2c:0x2df,_0x5bed4b:0x28b},_0x197f76={_0x2e72d4:0x2e},_0x5b5515={_0xe49f4e:0x58,_0x386fb5:0x167},_0x19cd03=_0x274863[_0x1f4151(_0x3667fc._0x586f48,0x172,0xd0,0x10e)][_0x1f4151(_0x3667fc._0x90712c,-_0x3667fc._0x563a46,-_0x3667fc._0x3625b4,0x44)](()=>{});let _0x4e681a;function _0x1b33ac(_0x615459,_0x19398b,_0x5b5d03,_0x4c62b3){return _0x2b6123(_0x615459,_0x19398b-0x1a3,_0x5b5d03- -_0x5b5515._0xe49f4e,_0x4c62b3-_0x5b5515._0x386fb5);}function _0x1f4151(_0x355864,_0x3caf2c,_0x3b7b79,_0x3db1fe){return _0x2b6123(_0x3caf2c,_0x3caf2c-_0x197f76._0x2e72d4,_0x3b7b79- -0x2bf,_0x3db1fe-0x1f1);}const _0xff8d20=new Promise(_0x3f8630=>{_0x4e681a=_0x3f8630;});return _0x274863[_0x1f4151(0xfd,_0x3667fc._0x42a1d6,_0x3667fc._0x5b7950,_0x3667fc._0xc7eba7)]=_0x19cd03[_0x1b33ac(_0x3667fc._0x5e1b2c,0x2f7,_0x3667fc._0x5bed4b,0x2e8)](()=>_0xff8d20),await _0x19cd03,()=>{_0x4e681a?.();};}async[_0x2b6123(0x32d,0x234,0x28c,0x248)](_0x2c9084,_0x33402d){const _0x3ed171={_0x42d5ce:0x9b,_0x7c8315:0xfd,_0xea056d:0x1b7,_0x1a9f6c:0x2eb,_0x54903a:0x30d,_0x3be3bb:0x212,_0x192b33:0x185,_0x2faf77:0x104,_0x209b9b:0x117,_0x2dfc47:0x13f,_0xa68bff:0x1f4,_0x4fb14f:0x250,_0x148a7e:0x263,_0x18abaf:0x23d,_0x4b2947:0x23e,_0x1b35a4:0x34,_0x761769:0xf0,_0x3c3f94:0x19e,_0x265317:0x13f,_0x42f715:0x1d9,_0x5cb984:0xd0,_0x502d21:0xd4,_0x318fa7:0x152,_0x33e0c3:0xa6},_0x192ee3={_0x36815f:0x1d2},_0x237bea={_0x27fe17:0x432,_0x433558:0x156},_0x38456e=this[_0x51dbec(-_0x3ed171._0x42d5ce,-_0x3ed171._0x7c8315,-_0x3ed171._0xea056d,-0x16d)](_0x2c9084);function _0x51dbec(_0xcf8b0f,_0x49e083,_0x4e2490,_0x120081){return _0x2b6123(_0x4e2490,_0x49e083-0x1b0,_0x49e083- -_0x237bea._0x27fe17,_0x120081-_0x237bea._0x433558);}const _0x18cb16=toModelRequest(_0x38456e),_0x4d4cf6=await prepareProviderRequest(_0x18cb16,{'sessionManager':this[_0x226b10(0x37c,0x327,0x2a9,_0x3ed171._0x1a9f6c)],'requestMutators':this[_0x226b10(_0x3ed171._0x54903a,_0x3ed171._0x3be3bb,0x199,0x24d)],'signal':_0x33402d}),_0x11b805=toChatRequest(_0x4d4cf6[_0x51dbec(-0xdb,-_0x3ed171._0x192b33,-_0x3ed171._0x2faf77,-_0x3ed171._0x209b9b)]),_0x270163=this[_0x51dbec(-_0x3ed171._0x2dfc47,-_0x3ed171._0xa68bff,-0x15f,-0x1ff)]['resolveCredential'](this[_0x226b10(_0x3ed171._0x4fb14f,_0x3ed171._0x148a7e,_0x3ed171._0x18abaf,_0x3ed171._0x4b2947)],_0x4d4cf6[_0x51dbec(-0xcd,-0xa6,-_0x3ed171._0x1b35a4,-_0x3ed171._0x761769)]);if(!_0x270163)throw this['createMissingCredentialError']();function _0x226b10(_0x36f4bf,_0x3c2157,_0x25ea36,_0x142893){return _0x2b6123(_0x36f4bf,_0x3c2157-_0x192ee3._0x36815f,_0x142893- -0xc9,_0x142893-0x9);}return{'baseUrl':this[_0x51dbec(-_0x3ed171._0x3c3f94,-0x1f4,-_0x3ed171._0x265317,-_0x3ed171._0x42f715)][_0x226b10(0x213,0x366,0x2ed,0x2c2)](this['baseUrl'],_0x4d4cf6[_0x51dbec(-_0x3ed171._0x5cb984,-0xa6,-0x54,-_0x3ed171._0x502d21)]),'credential':_0x270163,'request':_0x11b805,'session':_0x4d4cf6[_0x51dbec(-_0x3ed171._0x318fa7,-_0x3ed171._0x33e0c3,-0x37,-0xa0)]};}['buildResponsesSocketEvent'](_0x17a737,_0xe88407,_0x2fa0f6={}){const _0x4f6ab3={_0x916cc2:0x1d6,_0x1bfd2b:0x13e,_0x5eb868:0xf3,_0x5e15c2:0xc6,_0xe80708:0x10e,_0x3dcf2a:0x98,_0xab362d:0xa9,_0x585e1a:0x51,_0x10b5ca:0x589,_0x781224:0x4f8},_0x67d597={_0x1837d7:0x48},_0x1ed7df={_0xae459a:0x115,_0xb82045:0x17e};function _0x5245b1(_0x48b0dd,_0x2865f1,_0x5a35f8,_0x1a7746){return _0x38c793(_0x5a35f8,_0x2865f1-_0x1ed7df._0xae459a,_0x2865f1-0x18c,_0x1a7746-_0x1ed7df._0xb82045);}function _0x34c736(_0x2443e9,_0x539070,_0x156f29,_0x112a41){return _0x2b6123(_0x2443e9,_0x539070-_0x67d597._0x1837d7,_0x156f29- -0x207,_0x112a41-0x40);}if(!_0x2fa0f6[_0x34c736(0x1cc,_0x4f6ab3._0x916cc2,0x12c,0x104)]){const _0x899aef=this['findResponsesSocketCheckpoint'](_0x17a737);if(_0x899aef&&_0xe88407[_0x34c736(0xe1,0xc9,_0x4f6ab3._0x1bfd2b,0xd2)]&&_0x899aef[_0x34c736(_0x4f6ab3._0x5eb868,0xb0,_0x4f6ab3._0x5e15c2,0x47)]===_0xe88407[_0x34c736(_0x4f6ab3._0xe80708,_0x4f6ab3._0x3dcf2a,_0x4f6ab3._0x1bfd2b,0xc9)]){const _0x4c9bd9=toOpenAiResponsesRequest({..._0x17a737,'messages':_0x17a737['messages']['slice'](_0x899aef[_0x34c736(0x1e,-0x8,_0x4f6ab3._0xab362d,_0x4f6ab3._0x585e1a)]+0x1)})['input'];return{'event':createOpenAiResponsesWebSocketEvent(_0x17a737,{'input':_0x4c9bd9,'previousResponseId':_0x899aef[_0x5245b1(0x5eb,_0x4f6ab3._0x10b5ca,0x502,_0x4f6ab3._0x781224)]}),'previousResponseId':_0x899aef['responseId']};}}return{'event':createOpenAiResponsesWebSocketEvent(_0x17a737)};}['findResponsesSocketCheckpoint'](_0x2d2408){const _0x155e4a={_0x48c7d8:0x579,_0x417c40:0x50d,_0x1406d2:0x179,_0xd1d598:0x1d,_0x4ae022:0xb7,_0x5329c2:0x12e,_0x21787f:0x60a,_0x2a322d:0x6a8,_0x4cbd39:0x648,_0xeeacf1:0x108,_0x4fc7df:0x12,_0x42d6b8:0x66},_0x581ecc={_0x3975a6:0xfd,_0x3c09dc:0x1e8},_0x58420b={_0x176421:0x196,_0x4679a6:0x2da,_0x5c49ea:0x1dd};function _0x4d3f1f(_0xc0cb94,_0xe4a832,_0x1861ad,_0x37cab5){return _0x2b6123(_0xe4a832,_0xe4a832-_0x58420b._0x176421,_0x1861ad-_0x58420b._0x4679a6,_0x37cab5-_0x58420b._0x5c49ea);}for(let _0x31c155=_0x2d2408[_0x4d3f1f(0x5a3,0x58e,_0x155e4a._0x48c7d8,_0x155e4a._0x417c40)][_0x2b163f(0x110,0xb3,_0x155e4a._0x1406d2,0x157)]-0x1;_0x31c155>=0x0;_0x31c155-=0x1){const _0x5035d2=_0x2d2408[_0x2b163f(_0x155e4a._0xd1d598,_0x155e4a._0x4ae022,_0x155e4a._0x5329c2,0xf6)][_0x31c155],_0x11f471=_0x5035d2[_0x4d3f1f(0x640,_0x155e4a._0x21787f,0x5f5,0x581)]===_0x4d3f1f(_0x155e4a._0x2a322d,0x623,_0x155e4a._0x4cbd39,0x6b1)?_0x5035d2[_0x4d3f1f(0x621,0x6cc,0x67a,0x6a6)]?.[_0x2b163f(_0x155e4a._0xeeacf1,0x7a,_0x155e4a._0x4fc7df,_0x155e4a._0x42d6b8)]:void 0x0;if(_0x11f471)return{'messageIndex':_0x31c155,'responseId':_0x11f471};}function _0x2b163f(_0x343dc7,_0x4c65f1,_0x17f92a,_0x319976){return _0x2b6123(_0x319976,_0x4c65f1-_0x581ecc._0x3975a6,_0x4c65f1- -_0x581ecc._0x3c09dc,_0x319976-0x67);}return void 0x0;}[_0x2b6123(0x30b,0x306,0x25e,0x1ee)](_0x743ffc){const _0x360730={_0x3de556:0x43e,_0x135adb:0x458,_0x5c5598:0x4bb,_0x4b0f24:0x40b,_0x292c36:0x415,_0x4c8e3d:0x379,_0x51898c:0x41a,_0x1f9d33:0x4dc,_0x4ed48d:0x458},_0xead5d7={_0x42e203:0xc3,_0x19ecf1:0xb7},_0x512958={_0x182f44:0xb0};function _0x2a493e(_0x5258ae,_0x30f73b,_0x584804,_0xb4fbd1){return _0x38c793(_0x584804,_0x30f73b-0x3d,_0x5258ae- -_0x512958._0x182f44,_0xb4fbd1-0x11c);}function _0x4fa5d7(_0x4b8be4,_0x1dfede,_0x3cec30,_0x30dd43){return _0x38c793(_0x1dfede,_0x1dfede-0xed,_0x30dd43- -_0xead5d7._0x42e203,_0x30dd43-_0xead5d7._0x19ecf1);}return _0x743ffc instanceof OpenAiResponsesStreamError&&(_0x743ffc[_0x2a493e(_0x360730._0x3de556,_0x360730._0x135adb,_0x360730._0x5c5598,0x441)]===_0x4fa5d7(_0x360730._0x4b0f24,_0x360730._0x292c36,0x3f7,_0x360730._0x4c8e3d)||_0x743ffc['code']===_0x2a493e(_0x360730._0x51898c,0x46b,_0x360730._0x1f9d33,_0x360730._0x4ed48d));}[_0x2b6123(0x3b7,0x2e2,0x339,0x2d9)](_0x228260){const _0x3e9a2c={_0x57555d:0x396,_0x5095e5:0x374,_0x2b1ce8:0x395,_0x1bf09a:0x392,_0x44c387:0x143,_0x29c009:0x18e,_0x1a74a6:0x65,_0x1e736f:0x135,_0x44f3c6:0x8b,_0x276008:0x4c5,_0x554683:0x54f,_0x5562c6:0x3b8,_0x3d9617:0x335,_0x519a1b:0x3ed},_0x5cd15f=_0x228260[_0x1d6758(0x11f,0x71,0x58,0x1d)];_0x228260[_0x15aa62(0x439,0x38a,_0x3e9a2c._0x57555d,_0x3e9a2c._0x5095e5)]=void 0x0,_0x228260[_0x15aa62(_0x3e9a2c._0x2b1ce8,0x3f3,0x360,_0x3e9a2c._0x1bf09a)]=void 0x0,_0x228260[_0x1d6758(0x1d6,_0x3e9a2c._0x44c387,0x17a,_0x3e9a2c._0x29c009)]=void 0x0;function _0x15aa62(_0x22dee8,_0x130b2d,_0x5e005f,_0xfdecf6){return _0x38c793(_0x130b2d,_0x130b2d-0x20,_0xfdecf6- -0x2f,_0xfdecf6-0x15f);}function _0x1d6758(_0x5a7894,_0x5c90a4,_0x8789ca,_0x344f13){return _0x38c793(_0x8789ca,_0x5c90a4-0x143,_0x5c90a4- -0x332,_0x344f13-0xba);}_0x5cd15f?.[_0x1d6758(_0x3e9a2c._0x1a74a6,0xb2,_0x3e9a2c._0x1e736f,_0x3e9a2c._0x44f3c6)]===WebSocket[_0x15aa62(_0x3e9a2c._0x276008,0x405,_0x3e9a2c._0x554683,0x48b)]&&_0x5cd15f[_0x15aa62(_0x3e9a2c._0x5562c6,_0x3e9a2c._0x3d9617,_0x3e9a2c._0x519a1b,0x3d6)](0x3e8,'reset');}async[_0x2b6123(0x334,0x2e0,0x394,0x3f3)](_0x355c22,_0x2a626a,_0x300f4a,_0x164712,_0xd182d1){const _0x2453c6={_0x22aeea:0x116,_0x3f76f2:0xec,_0x5b156f:0xcc,_0x5d823e:0x33,_0x2e8dca:0x60,_0x1756d1:0x15,_0x3d4556:0x92,_0x5034bd:0x1c5,_0x2903b9:0x16b,_0x5012d3:0x1e5,_0x1d9b26:0x78,_0x116b47:0x11,_0x5abda2:0xc3,_0x40a723:0x114,_0x6172b3:0x288},_0x27ffb3={_0x3df91c:0x1a5,_0x3b38c1:0x107,_0x1a606b:0x110,_0x5c7902:0x1e,_0x212de6:0x4a,_0x2e3fb6:0x207,_0x3ef11e:0x2c4,_0x4e74b8:0x3e,_0x1ea86c:0x40,_0xdc62a1:0x19,_0x48999a:0xc7,_0x31647f:0xbd,_0x5f5b97:0x101,_0x527068:0x64,_0x2adaa1:0x36e,_0x42c4dd:0x2af,_0x2dc7c6:0x1eb,_0xd09ef5:0x1cd,_0x17fd8f:0x36,_0x5b7749:0x4f,_0x3a54ed:0x276,_0x469223:0x215,_0x1c7f30:0x1b5,_0x17b645:0x1fd,_0x535f4a:0x22c,_0x3466e5:0x2ca,_0x3b110c:0x260,_0x283b0c:0x393,_0x5369a0:0x29,_0x8ee6c8:0x233,_0x4dfe1b:0x5c},_0xb703dc={_0x151b8a:0x1ed,_0x1eb0da:0x31},_0x5b3746={_0x4e6a01:0x1c5,_0x471dbf:0x206,_0xe36390:0x1f0,_0x2ae086:0x1dd},_0x5679fa={_0x5e5567:0x456,_0x4f3b62:0x11},_0x62c2b={_0x20fe68:0x47,_0x1b0d64:0x6f};function _0x2be7d6(_0x202bbe,_0x5a6123,_0x56fd63,_0x189fc6){return _0x2b6123(_0x189fc6,_0x5a6123-_0x62c2b._0x20fe68,_0x56fd63- -0x280,_0x189fc6-_0x62c2b._0x1b0d64);}if(_0x2a626a['socket']?.[_0x2f1ca8(-0x107,-0x1cb,-0x1a2,-_0x2453c6._0x22aeea)]===WebSocket[_0x2f1ca8(-_0x2453c6._0x3f76f2,-0x9c,-_0x2453c6._0x5b156f,-_0x2453c6._0x5d823e)])return _0x2a626a[_0x2be7d6(-_0x2453c6._0x2e8dca,0x2,-0xd,-_0x2453c6._0x1756d1)];if(_0x2a626a[_0x2be7d6(-0xb2,_0x2453c6._0x3d4556,0x11,0x12)])return await _0x2a626a[_0x2f1ca8(-0x1f7,-0x145,-_0x2453c6._0x5034bd,-0x1dc)];function _0x2f1ca8(_0x3d28d9,_0x47bac8,_0x5d12db,_0x2e7e97){return _0x2b6123(_0x3d28d9,_0x47bac8-0x1d4,_0x5d12db- -_0x5679fa._0x5e5567,_0x2e7e97-_0x5679fa._0x4f3b62);}_0x2a626a[_0x2f1ca8(-_0x2453c6._0x2903b9,-0x1b5,-0x1c5,-_0x2453c6._0x5012d3)]=((async()=>{const _0x2f3fc3={_0x4329f6:0x378,_0x2c73c9:0x13c},_0x6410f4={_0x5ba6b1:0x125,_0x1cc35f:0x1ae,_0x1be542:0x1c0},_0x29f6f0=await this[_0x240efe(0x248,_0x27ffb3._0x3df91c,0x235,0x26a)]({'request':_0x300f4a[_0x39371e(-_0x27ffb3._0x3b38c1,-_0x27ffb3._0x1a606b,_0x27ffb3._0x5c7902,-_0x27ffb3._0x212de6)],'body':_0x164712,'credential':_0x300f4a[_0x240efe(_0x27ffb3._0x2e3fb6,_0x27ffb3._0x3ef11e,0x384,0x23e)],'session':_0x300f4a['session'],'stream':!![]},{'accept':'application/json','includeContentType':![]});_0x29f6f0[_0x39371e(-0xa,-_0x27ffb3._0x4e74b8,_0x27ffb3._0x1ea86c,_0x27ffb3._0xdc62a1)](_0x39371e(-0x38,_0x27ffb3._0x48999a,_0x27ffb3._0x31647f,0x29));const _0x6137de=this['webSocketFactory']({'headers':Object[_0x39371e(0x18,_0x27ffb3._0x5f5b97,0xfb,_0x27ffb3._0x527068)](_0x29f6f0['entries']()),'url':(''+_0x300f4a[_0x240efe(0x36e,0x2d9,0x277,_0x27ffb3._0x2adaa1)]+this['responsesPath'])['replace'](/^http:/,'ws:')[_0x240efe(_0x27ffb3._0x42c4dd,0x270,_0x27ffb3._0x2dc7c6,_0x27ffb3._0xd09ef5)](/^https:/,'wss:')});function _0x240efe(_0x5f1de0,_0x1e8b52,_0x1058e6,_0x4ca565){return _0x2be7d6(_0x5f1de0-_0x6410f4._0x5ba6b1,_0x1e8b52-_0x6410f4._0x1cc35f,_0x1e8b52-_0x6410f4._0x1be542,_0x4ca565);}const _0x37e1ca=()=>{const _0x16dc02={_0x1284fd:0xd7};function _0x3ff33c(_0x4dd804,_0x285df2,_0x2388d6,_0x4cb91d){return _0x39371e(_0x2388d6,_0x285df2-_0x16dc02._0x1284fd,_0x2388d6-0x105,_0x4cb91d-0x8c);}function _0x3a2e35(_0x537e5b,_0x5d81b6,_0x32b1de,_0x34d9da){return _0x240efe(_0x537e5b-0x147,_0x5d81b6- -_0x2f3fc3._0x4329f6,_0x32b1de-_0x2f3fc3._0x2c73c9,_0x32b1de);}_0x2a626a[_0x3a2e35(-0x230,-_0x5b3746._0x4e6a01,-_0x5b3746._0x471dbf,-0x19b)]===_0x6137de&&(_0x2a626a[_0x3a2e35(-_0x5b3746._0xe36390,-_0x5b3746._0x4e6a01,-0x1ec,-_0x5b3746._0x2ae086)]=void 0x0,_0x2a626a['lastResponseId']=void 0x0);};_0x6137de[_0x39371e(0x3c,_0x27ffb3._0x17fd8f,-0x8,-_0x27ffb3._0x5b7749)](_0x240efe(_0x27ffb3._0x3a54ed,_0x27ffb3._0x469223,_0x27ffb3._0x1c7f30,_0x27ffb3._0x17b645),_0x37e1ca);function _0x39371e(_0x51b182,_0x499816,_0x5296c0,_0x687a28){return _0x2be7d6(_0x51b182-_0xb703dc._0x151b8a,_0x499816-_0xb703dc._0x1eb0da,_0x687a28- -0x77,_0x51b182);}try{return throwIfAborted(_0xd182d1),_0x6137de['readyState']!==WebSocket[_0x240efe(_0x27ffb3._0x535f4a,_0x27ffb3._0x3466e5,_0x27ffb3._0x3b110c,_0x27ffb3._0x283b0c)]&&await waitForWebSocketOpen(_0x6137de,_0xd182d1),throwIfAborted(_0xd182d1),_0x2a626a[_0x39371e(0x47,-0x117,_0x27ffb3._0x5369a0,-0x84)]=_0x6137de,_0x6137de;}catch(_0x2bac16){_0x37e1ca();_0x6137de[_0x240efe(0x224,0x1f4,0x273,0x155)]===WebSocket[_0x240efe(_0x27ffb3._0x8ee6c8,0x2ca,0x312,0x292)]&&_0x6137de['close'](0x3e8,_0x39371e(-0x8c,0x18,_0x27ffb3._0x4dfe1b,0x38));throw _0x2bac16;}})());try{return await _0x2a626a[_0x2be7d6(0x3e,_0x2453c6._0x1d9b26,_0x2453c6._0x116b47,_0x2453c6._0x5abda2)];}finally{_0x2a626a[_0x2f1ca8(-_0x2453c6._0x40a723,-_0x2453c6._0x6172b3,-0x1c5,-0x256)]=void 0x0;}}async*[_0x2b6123(0x329,0x348,0x381,0x2fe)](_0x4e6134,_0x45fd0d){const _0xffe19d={_0x581014:0x113,_0x4a2689:0x2e,_0x2a98b0:0xa,_0x58a764:0x2d,_0x2da71d:0x42,_0x489d91:0x45,_0x46e6f7:0xc9,_0x2e27c1:0x202,_0x482e63:0x274,_0x128b31:0x3bc,_0x1f3907:0x2e,_0x30c48e:0x4,_0x3f6649:0x2c6,_0xde146:0x14c,_0x5a7c39:0x7b,_0x5de4f5:0x311,_0x1bec1f:0x274,_0x512c7b:0x1ad,_0x5daa0e:0x2ee,_0xcf0af6:0x262,_0x1f900e:0x273,_0x4f65aa:0x2e6,_0x17ab6b:0x36b,_0x3c7558:0x34e,_0x3aa07a:0x37d,_0x37bb46:0x392,_0xfaca53:0x81,_0x1a1863:0xd8,_0x53a2f2:0x323,_0x122df5:0x103,_0x3d28f5:0x129,_0x49793a:0x21,_0x4b1296:0x10,_0xa9db21:0x56},_0xb670d6={_0x3d23c5:0x5,_0x455d8a:0x15e},_0x55ee9a={_0xe6190c:0x10d,_0x40d546:0x2b8};function _0x265ec1(_0x3fc16e,_0x3d9913,_0x170980,_0x3c74b){return _0x2b6123(_0x170980,_0x3d9913-_0x55ee9a._0xe6190c,_0x3fc16e- -_0x55ee9a._0x40d546,_0x3c74b-0x16b);}const _0x1d8b0a=this[_0x265ec1(0x7d,_0xffe19d._0x581014,0x78,-_0xffe19d._0x4a2689)](_0x4e6134);function _0x310c5a(_0x1057bc,_0x3d9c29,_0x224eba,_0x115fd6){return _0x2b6123(_0x224eba,_0x3d9c29-_0xb670d6._0x3d23c5,_0x3d9c29-0x15,_0x115fd6-_0xb670d6._0x455d8a);}const _0x1d3924=this[_0x265ec1(-_0xffe19d._0x2a98b0,0x66,_0xffe19d._0x58a764,-_0xffe19d._0x2da71d)](_0x1d8b0a[_0x265ec1(0x103,_0xffe19d._0x489d91,0xde,_0xffe19d._0x46e6f7)][_0x310c5a(_0xffe19d._0x2e27c1,_0xffe19d._0x482e63,0x330,0x1c5)]),_0x4f3766=await this[_0x310c5a(0x39b,0x34c,0x301,_0xffe19d._0x128b31)](_0x1d3924);try{const _0x4292e7=this[_0x265ec1(-_0xffe19d._0x1f3907,-0x78,0x4f,_0xffe19d._0x30c48e)](_0x1d8b0a,_0x1d3924);try{yield*this[_0x310c5a(0x264,0x323,0x30a,_0xffe19d._0x3f6649)](_0x1d8b0a[_0x265ec1(0x103,_0xffe19d._0xde146,0x181,_0xffe19d._0x5a7c39)][_0x310c5a(_0xffe19d._0x5de4f5,_0xffe19d._0x1bec1f,_0xffe19d._0x512c7b,0x298)],_0x1d3924,_0x1d8b0a,_0x4292e7['event'],_0x45fd0d?.[_0x310c5a(0x329,_0xffe19d._0x5daa0e,0x35d,_0xffe19d._0xcf0af6)]);return;}catch(_0x8b6663){if(!_0x4292e7['previousResponseId']||!this[_0x310c5a(0x30f,_0xffe19d._0x1f900e,_0xffe19d._0x4f65aa,0x2cc)](_0x8b6663)){this[_0x310c5a(_0xffe19d._0x17ab6b,_0xffe19d._0x3c7558,_0xffe19d._0x3aa07a,_0xffe19d._0x37bb46)](_0x1d3924);throw _0x8b6663;}}this[_0x265ec1(_0xffe19d._0xfaca53,0x71,_0xffe19d._0x1a1863,0x10f)](_0x1d3924);const _0x2f5a47=this[_0x265ec1(-0x2e,0x3,0x90,-0x61)](_0x1d8b0a,_0x1d3924,{'forceFullReplay':!![]});yield*this[_0x310c5a(0x2c1,_0xffe19d._0x53a2f2,0x3a3,0x2ea)](_0x1d8b0a[_0x265ec1(_0xffe19d._0x122df5,_0xffe19d._0x3d28f5,0x105,0x12f)]['sessionId'],_0x1d3924,_0x1d8b0a,_0x2f5a47['event'],_0x45fd0d?.[_0x265ec1(_0xffe19d._0x49793a,-_0xffe19d._0x4b1296,-0x60,-_0xffe19d._0xa9db21)]);}finally{_0x4f3766();}}async*['streamViaResponsesSocketAttempt'](_0x4cdd30,_0x128bd2,_0x207285,_0x477492,_0x10aa69){const _0x4f6f34={_0x27cfcc:0x63,_0x2cae42:0x351,_0xc246e4:0x3c3,_0x2c558c:0x85,_0x5c6a3b:0x31,_0x3f5617:0x1c0,_0x55fa79:0x1c6,_0x315c87:0x1ea,_0x3ff53f:0x16a,_0x1a3340:0x24b,_0x22b55b:0x21b,_0x4752ab:0x2ac,_0x504166:0x15e,_0x2fc71d:0x6d,_0x54d817:0xd3,_0x37906f:0x15b,_0x2ee9c8:0x40,_0x36f8b5:0x43,_0x57a673:0x3f,_0x14d0a0:0x46,_0x2f68a1:0x4c,_0x486dbb:0x16c,_0x1a752b:0x12e,_0x79e0aa:0x15,_0x141d8f:0x1c,_0x4272b2:0x2ae,_0x5bfa7b:0x318},_0xc27a93={_0x2b1c88:0x5b},_0x5e0581={_0x3fa491:0x1cb,_0x20ae88:0x361},_0x305327=await this[_0x31f7b2(-0x3c,-0x192,-0xd5,-_0x4f6f34._0x27cfcc)](_0x207285,_0x10aa69),_0x23d12c=await this[_0x29acd4(0x2da,_0x4f6f34._0x2cae42,0x35e,_0x4f6f34._0xc246e4)](_0x4cdd30,_0x128bd2,_0x305327,_0x477492,_0x10aa69);function _0x31f7b2(_0x3f6657,_0x4107b9,_0xcd1f22,_0x36fe8d){return _0x2b6123(_0x36fe8d,_0x4107b9-_0x5e0581._0x3fa491,_0xcd1f22- -_0x5e0581._0x20ae88,_0x36fe8d-0xdb);}const _0xe43159=createOpenAiResponsesStreamParser(_0x207285);throwIfAborted(_0x10aa69),_0x23d12c[_0x31f7b2(-_0x4f6f34._0x2c558c,-_0x4f6f34._0x5c6a3b,-0xb5,-0xc8)](JSON[_0x29acd4(0x1b1,0x1fa,0x254,_0x4f6f34._0x3f5617)](_0x477492));for await(const _0x420e4f of iterateWebSocketMessages(_0x23d12c,_0x10aa69)){const _0x2a0d57=_0xe43159[_0x29acd4(_0x4f6f34._0x55fa79,_0x4f6f34._0x315c87,0x1b7,_0x4f6f34._0x3ff53f)]?.(_0x420e4f)??[];yield*_0x2a0d57;if(_0xe43159[_0x29acd4(0x2b2,_0x4f6f34._0x1a3340,_0x4f6f34._0x22b55b,_0x4f6f34._0x4752ab)]?.())break;}if(!_0xe43159[_0x31f7b2(-_0x4f6f34._0x504166,-_0x4f6f34._0x2fc71d,-_0x4f6f34._0x54d817,-_0x4f6f34._0x37906f)]?.())throw new Error('Responses\x20WebSocket\x20closed\x20before\x20response.completed');const _0x712e65=_0xe43159[_0x31f7b2(_0x4f6f34._0x2ee9c8,0x2b,0x2d,-0x40)](),_0x1755eb=_0x712e65[_0x31f7b2(0x2e,-_0x4f6f34._0x36f8b5,_0x4f6f34._0x57a673,-_0x4f6f34._0x14d0a0)]?.[_0x31f7b2(-_0x4f6f34._0x2f68a1,-_0x4f6f34._0x486dbb,-0xff,-_0x4f6f34._0x1a752b)]??_0x712e65['id'];_0x1755eb&&(_0x128bd2[_0x31f7b2(-0x57,-_0x4f6f34._0x79e0aa,-_0x4f6f34._0x141d8f,-0x3e)]=_0x1755eb);function _0x29acd4(_0x122a79,_0x115857,_0x53c0d8,_0x33d003){return _0x2b6123(_0x53c0d8,_0x115857-0xbe,_0x115857- -0x43,_0x33d003-_0xc27a93._0x2b1c88);}yield{'type':_0x29acd4(0x23d,_0x4f6f34._0x4272b2,_0x4f6f34._0x5bfa7b,0x35c),'response':_0x712e65};}},AVAILABLE_CHAT_MODEL_SURFACES=[_0x38c793(0x3fc,0x38e,0x3e7,0x3c8),'openai-chat-completions','openai-responses',_0x38c793(0x3eb,0x421,0x430,0x394)];function isAnthropicSurface(_0x5a0634){const _0x1576ba={_0x52289a:0x1c8,_0x348327:0x1aa},_0x21459e={_0x15b401:0x100,_0x3c9f0d:0x2c0};function _0x31582e(_0x14c060,_0x273ad4,_0x16fd98,_0x125862){return _0x38c793(_0x273ad4,_0x273ad4-_0x21459e._0x15b401,_0x14c060- -_0x21459e._0x3c9f0d,_0x125862-0x1e4);}return _0x5a0634===_0x31582e(0x127,_0x1576ba._0x52289a,0x1ca,_0x1576ba._0x348327);}function resolveDefaultBaseUrl(_0x1eec09){const _0x1dadf0={_0x95c94a:0x290,_0x95a7d1:0x257},_0x2d207b={_0x2205d2:0x144},_0x129ff0={_0xcefaf7:0x1a0,_0x44cd7a:0x4af,_0x43283c:0x18c};function _0x1002c8(_0x1bde65,_0x1f3cd0,_0x2368f4,_0x12ab64){return _0x38c793(_0x2368f4,_0x1f3cd0-_0x129ff0._0xcefaf7,_0x1f3cd0- -_0x129ff0._0x44cd7a,_0x12ab64-_0x129ff0._0x43283c);}function _0x22e403(_0x18914d,_0x40824b,_0x3cafef,_0x5aae88){return _0x38c793(_0x5aae88,_0x40824b-0xcd,_0x18914d- -_0x2d207b._0x2205d2,_0x5aae88-0x138);}return isAnthropicSurface(_0x1eec09)?_0x22e403(0x244,0x194,0x1ab,_0x1dadf0._0x95c94a):_0x22e403(0x25a,0x211,0x2c0,_0x1dadf0._0x95a7d1);}var ChatModel=class{[_0x38c793(0x515,0x52d,0x4ac,0x3e3)];[_0x38c793(0x34d,0x3ab,0x39f,0x3b6)];[_0x2b6123(0x1ce,0x20d,0x23c,0x1fc)];['anthropicDelegate'];[_0x2b6123(0x330,0x442,0x3b0,0x36f)];constructor(_0x30b71a={}){const _0x1b46d2={_0x5396ce:0x252,_0xf27461:0x2b9,_0x1d8281:0x29c,_0x5342c2:0xe1,_0x233aae:0xbd,_0x235d87:0x156,_0x1715f7:0x59a,_0x515fdc:0x4fe,_0xeac540:0x4fc,_0x3f1693:0x470,_0x47d2f7:0x53c,_0x1e2f21:0x5c4,_0x5ea4ce:0x1cf,_0x5d5c9a:0x211,_0x542232:0x4bd,_0xaccd80:0x4da,_0x57198d:0x1a5,_0x36154d:0x28e,_0x488ce5:0x263,_0xa4d346:0x1e4,_0x3d6f88:0x225,_0x10b082:0x65f,_0x28ed21:0x5c7,_0x17995f:0x5c5,_0x3a46c0:0x646,_0x41f71e:0x60f,_0x240a2c:0x1a1,_0x2985e5:0x91,_0x46035d:0x6ca,_0x3b8319:0x67d,_0x5464b6:0x63c,_0x5c830f:0xb4,_0x18daf7:0x137,_0x47863e:0x5bc,_0x5d39db:0x56e,_0x1aad3b:0x5d6,_0x211e71:0x696,_0x20140f:0x2c5,_0x5b4067:0x248},_0x477f29={_0x209338:0x6,_0xa1eaa3:0x249},_0x3c5c6e={_0x534ea5:0x64,_0x5298c1:0x2c0};this['model']=_0x30b71a[_0x2c9f34(0x2a8,0x1f3,_0x1b46d2._0x5396ce,0x263)]??_0x2c9f34(_0x1b46d2._0xf27461,_0x1b46d2._0x1d8281,0x26b,0x279),this[_0x2c9f34(_0x1b46d2._0x5342c2,0x1a6,_0x1b46d2._0x233aae,_0x1b46d2._0x235d87)]=_0x30b71a[_0x45c0a3(0x4e7,0x51c,0x52f,0x526)]??0x4000;function _0x45c0a3(_0x3d66b9,_0x136af4,_0x27c63f,_0xf2d7ad){return _0x2b6123(_0x136af4,_0x136af4-_0x3c5c6e._0x534ea5,_0x27c63f-_0x3c5c6e._0x5298c1,_0xf2d7ad-0x153);}this[_0x45c0a3(_0x1b46d2._0x1715f7,0x436,0x4fc,0x451)]=_0x30b71a[_0x45c0a3(0x4a5,_0x1b46d2._0x515fdc,_0x1b46d2._0xeac540,_0x1b46d2._0x3f1693)]??_0x45c0a3(_0x1b46d2._0x47d2f7,_0x1b46d2._0x1e2f21,0x504,0x51b);const _0x32cd69=trimTrailingSlashes(_0x30b71a[_0x2c9f34(_0x1b46d2._0x5ea4ce,_0x1b46d2._0x5d5c9a,0x1fa,0x280)]??resolveDefaultBaseUrl(this[_0x45c0a3(_0x1b46d2._0x542232,_0x1b46d2._0xaccd80,0x4fc,0x498)]));if(isAnthropicSurface(this['surface'])){this['anthropicDelegate']=new AnthropicModel({'apiKey':_0x30b71a['apiKey'],'authScheme':_0x30b71a['authScheme'],'baseUrl':_0x32cd69,'fetch':_0x30b71a[_0x2c9f34(_0x1b46d2._0x57198d,_0x1b46d2._0x36154d,0x288,0x244)],'maxTokens':this['maxTokens'],'model':this[_0x2c9f34(0x1ed,0x31f,0x19c,_0x1b46d2._0x488ce5)],'reasoning':_0x30b71a[_0x2c9f34(0x30b,_0x1b46d2._0xa4d346,_0x1b46d2._0x3d6f88,0x250)],'providerSessionResolver':_0x30b71a['providerSessionResolver'],'requestMutators':_0x30b71a['requestMutators']});return;}function _0x2c9f34(_0x4f2483,_0x4ca95d,_0x1e2d84,_0x34615b){return _0x38c793(_0x4ca95d,_0x4ca95d-_0x477f29._0x209338,_0x34615b- -_0x477f29._0xa1eaa3,_0x34615b-0x74);}this['openAiDelegate']=new OpenAiModel({'apiKey':_0x30b71a[_0x45c0a3(_0x1b46d2._0x10b082,0x60f,_0x1b46d2._0x28ed21,0x52c)],'baseUrl':_0x32cd69,'fetch':_0x30b71a['fetch'],'headerResolver':_0x30b71a[_0x45c0a3(_0x1b46d2._0x17995f,_0x1b46d2._0x3a46c0,0x604,_0x1b46d2._0x41f71e)],'maxTokens':this[_0x2c9f34(_0x1b46d2._0x240a2c,_0x1b46d2._0x2985e5,0x1a9,0x156)],'model':this[_0x45c0a3(_0x1b46d2._0x46035d,_0x1b46d2._0x3b8319,_0x1b46d2._0x5464b6,0x574)],'reasoning':_0x30b71a['reasoning'],'providerSessionResolver':_0x30b71a[_0x2c9f34(_0x1b46d2._0x5c830f,0xc5,_0x1b46d2._0x18daf7,0x135)],'requestMutators':_0x30b71a[_0x45c0a3(_0x1b46d2._0x47863e,_0x1b46d2._0x5d39db,_0x1b46d2._0x1aad3b,_0x1b46d2._0x211e71)],'webSocketFactory':_0x30b71a[_0x2c9f34(_0x1b46d2._0x20140f,_0x1b46d2._0x5b4067,0x2e0,0x292)]});}[_0x38c793(0x324,0x429,0x37b,0x34e)](){const _0x330514={_0x283916:0x2bf,_0x287da2:0x36c,_0x259f16:0x468,_0x19b23c:0x4f6,_0x2ed16d:0x3bd,_0x3200ea:0x3c2,_0x458f2a:0x365,_0x1543e3:0x3a4,_0x28eb4d:0x44e},_0x43ca70={_0x4d58a7:0x160},_0x1117dc={_0x24f5ff:0x93,_0x3a87ad:0x46,_0x5e5ee5:0xa8};function _0x5d7d10(_0x4d921e,_0x24d49d,_0x3301d5,_0x218b03){return _0x38c793(_0x218b03,_0x24d49d-_0x1117dc._0x24f5ff,_0x3301d5- -_0x1117dc._0x3a87ad,_0x218b03-_0x1117dc._0x5e5ee5);}if(!this[_0x5d7d10(_0x330514._0x283916,0x2cc,_0x330514._0x287da2,0x329)])throw new Error(_0x9839b3(0x3ba,_0x330514._0x259f16,_0x330514._0x19b23c,0x4e1)+this[_0x5d7d10(_0x330514._0x2ed16d,_0x330514._0x3200ea,0x326,_0x330514._0x458f2a)]);function _0x9839b3(_0x42f9dd,_0xfcd69,_0x48041b,_0x341050){return _0x38c793(_0x42f9dd,_0xfcd69-0x1e2,_0xfcd69-0xb,_0x341050-_0x43ca70._0x4d58a7);}return this[_0x9839b3(0x478,0x3bd,_0x330514._0x1543e3,_0x330514._0x28eb4d)];}[_0x38c793(0x433,0x46b,0x3b5,0x459)](){const _0x26d9a2={_0x3dfe74:0x95,_0x21f00c:0x3f,_0x36f766:0x585,_0x42a3d3:0x508,_0xf8d1f3:0x2a2,_0x43dd0f:0x285},_0x32f320={_0x4fce47:0x1c5},_0x46dd85={_0x198593:0x59,_0x384327:0x2f0,_0x5263e2:0x18};if(!this['openAiDelegate'])throw new Error(_0x1d711d(0x146,-0x32,_0x26d9a2._0x3dfe74,_0x26d9a2._0x21f00c)+this[_0x170faf(_0x26d9a2._0x36f766,_0x26d9a2._0x42a3d3,0x458,0x5b8)]);function _0x1d711d(_0x1b6b49,_0x59075d,_0x172920,_0x412ef7){return _0x38c793(_0x1b6b49,_0x59075d-_0x46dd85._0x198593,_0x172920- -_0x46dd85._0x384327,_0x412ef7-_0x46dd85._0x5263e2);}function _0x170faf(_0x3d74b,_0x25353e,_0x1e41be,_0x18844a){return _0x2b6123(_0x3d74b,_0x25353e-0x83,_0x25353e-0x2cc,_0x18844a-_0x32f320._0x4fce47);}return this[_0x1d711d(_0x26d9a2._0xf8d1f3,0x241,0x1f0,_0x26d9a2._0x43dd0f)];}[_0x38c793(0x3df,0x468,0x445,0x4ec)](_0x5b20ea,_0x1a264e){const _0x4d7ccd={_0x208c19:0x109,_0x1f6c35:0x16d,_0x5913d4:0x184,_0x31dfd1:0x22f,_0x576af0:0xdd,_0x1af18e:0x118,_0x1c0423:0x1e1,_0x355be3:0x141,_0x433263:0xc9,_0x28b6e3:0x10a,_0x32b839:0x1c6,_0x1e645c:0x209,_0x259a18:0x22c,_0x33a1c8:0x178,_0x444329:0x260,_0x10102b:0x271,_0x23de00:0x25d},_0x394e92={_0x285b8b:0xe3,_0x2ef4bd:0x263},_0x424314={_0x2e7e3c:0x198,_0x22ad13:0x75};function _0xfa815b(_0x32026e,_0x12cade,_0x259ecf,_0xa60215){return _0x2b6123(_0x259ecf,_0x12cade-_0x424314._0x2e7e3c,_0xa60215- -0x188,_0xa60215-_0x424314._0x22ad13);}function _0x400bfd(_0x98618b,_0x1d0a65,_0x3e99bc,_0x3dd0c4){return _0x38c793(_0x1d0a65,_0x1d0a65-_0x394e92._0x285b8b,_0x98618b- -_0x394e92._0x2ef4bd,_0x3dd0c4-0x1c7);}switch(this[_0x400bfd(_0x4d7ccd._0x208c19,0xa4,_0x4d7ccd._0x1f6c35,0x117)]){case _0x400bfd(_0x4d7ccd._0x5913d4,_0x4d7ccd._0x31dfd1,0x1e1,_0x4d7ccd._0x576af0):return this[_0x400bfd(_0x4d7ccd._0x1af18e,_0x4d7ccd._0x1c0423,_0x4d7ccd._0x355be3,_0x4d7ccd._0x433263)]()['complete'](_0x5b20ea,_0x1a264e);case _0x400bfd(0x166,0x132,_0x4d7ccd._0x28b6e3,_0x4d7ccd._0x32b839):return this['getOpenAiDelegate']()[_0x400bfd(0x214,0x268,_0x4d7ccd._0x1e645c,0x248)](_0x5b20ea,_0x1a264e);case _0xfa815b(0x223,0xee,_0x4d7ccd._0x259a18,_0x4d7ccd._0x33a1c8):return this['getOpenAiDelegate']()[_0xfa815b(0x1cd,_0x4d7ccd._0x444329,0x200,0x1a4)](_0x5b20ea,_0x1a264e);default:return this['getOpenAiDelegate']()[_0x400bfd(0x1cc,0x187,_0x4d7ccd._0x10102b,_0x4d7ccd._0x23de00)](_0x5b20ea,_0x1a264e);}}[_0x2b6123(0x406,0x30a,0x349,0x30b)](_0x22e147,_0x1b7902){const _0x28937e={_0x56329f:0x2c7,_0x7492ac:0x2c5,_0x13e2b9:0x338,_0x127417:0x36d,_0x3261ba:0x2fd,_0x4c2966:0x3a5,_0x39d1a7:0x2d6,_0x93234c:0x2ef,_0x5842ee:0x386,_0x11d830:0x14f,_0x4e9fc9:0x324,_0x10de94:0x2cc,_0x57ab9e:0x290,_0x1b21a7:0x381,_0x37d8fa:0x3ac,_0x1a2a33:0x3d3,_0x2d903b:0x48d,_0x59147f:0x356,_0x5277a4:0x250,_0x59d8d9:0x35c,_0x5c7854:0x323,_0x45ee73:0x26,_0x1792d2:0x94,_0x55e731:0x70},_0x3b5938={_0x58f379:0xda,_0x1f04fb:0x165},_0x8c24c={_0xcd107c:0x54};function _0x3762d9(_0x1ff43f,_0x184922,_0x122a74,_0x2b5f99){return _0x2b6123(_0x1ff43f,_0x184922-0x5b,_0x184922- -0x2bb,_0x2b5f99-_0x8c24c._0xcd107c);}function _0x5c27f5(_0xda7c45,_0x22249a,_0x31075b,_0x9d8d99){return _0x2b6123(_0x22249a,_0x22249a-_0x3b5938._0x58f379,_0xda7c45-0x8b,_0x9d8d99-_0x3b5938._0x1f04fb);}switch(this[_0x5c27f5(_0x28937e._0x56329f,_0x28937e._0x7492ac,_0x28937e._0x13e2b9,_0x28937e._0x127417)]){case _0x5c27f5(0x342,_0x28937e._0x3261ba,_0x28937e._0x4c2966,0x381):return this[_0x5c27f5(_0x28937e._0x39d1a7,_0x28937e._0x93234c,0x2f5,_0x28937e._0x5842ee)]()[_0x3762d9(0xad,0x8e,0xe7,_0x28937e._0x11d830)](_0x22e147,_0x1b7902);case _0x5c27f5(_0x28937e._0x4e9fc9,_0x28937e._0x10de94,_0x28937e._0x57ab9e,0x3a7):return this[_0x5c27f5(0x310,_0x28937e._0x1b21a7,0x329,_0x28937e._0x37d8fa)]()[_0x5c27f5(_0x28937e._0x1a2a33,0x382,_0x28937e._0x2d903b,_0x28937e._0x59147f)](_0x22e147,_0x1b7902);case'openai-responses-ws':return this[_0x5c27f5(0x310,0x332,_0x28937e._0x5277a4,0x2fe)]()[_0x5c27f5(_0x28937e._0x59d8d9,_0x28937e._0x5c7854,0x31c,0x3f2)](_0x22e147,_0x1b7902);default:return this[_0x3762d9(-0xfe,-0x36,0x35,-_0x28937e._0x45ee73)]()[_0x3762d9(-0x46,0x21,-_0x28937e._0x1792d2,_0x28937e._0x55e731)](_0x22e147,_0x1b7902);}}};function _0x38c793(_0x68fcce,_0x1f99ae,_0x4add4b,_0x2a7f26){const _0x1aa9fc={_0x2a8692:0x219};return _0x25f1(_0x4add4b-_0x1aa9fc._0x2a8692,_0x68fcce);}import{randomUUID}from'crypto';var GitHubAccessTokenResolver=class{[_0x38c793(0x56b,0x43d,0x4ed,0x471)];[_0x2b6123(0x32d,0x2d3,0x399,0x432)];[_0x2b6123(0x290,0x23c,0x269,0x255)];[_0x2b6123(0x30f,0x40a,0x3bc,0x314)];['tokenExchangeApiVersion'];constructor(_0x1d1077){const _0x20431e={_0x23b451:0x4fa,_0x2e3a9d:0x56d,_0x5c20d7:0x594,_0xc0b02e:0x15c,_0x2b7d83:0xaa,_0x10466f:0x1d1,_0x44eb65:0x4d6,_0x1ad64c:0x45e,_0x4cbf34:0x2c,_0xe01d96:0x58,_0x5ed3c1:0xcb,_0x3d9ee5:0x43a,_0x410290:0x521,_0x32308a:0x4f9,_0x382214:0x561,_0x3c714a:0x8d,_0x13ea64:0x4a,_0x10a9d1:0x5a,_0x41f4d5:0x9a},_0x2cebe0={_0x5169ba:0x13d,_0x58a3eb:0x177};this[_0x5e9963(_0x20431e._0x23b451,_0x20431e._0x2e3a9d,0x4c1,0x56d)]=_0x1d1077[_0x5e9963(0x4fa,0x43a,0x541,_0x20431e._0x5c20d7)];function _0x5e9963(_0x30bbdb,_0x590cf0,_0x4eece7,_0x5cb3d9){return _0x2b6123(_0x4eece7,_0x590cf0-0xf4,_0x30bbdb-_0x2cebe0._0x5169ba,_0x5cb3d9-_0x2cebe0._0x58a3eb);}this[_0x11c68f(_0x20431e._0xc0b02e,0x158,_0x20431e._0x2b7d83,_0x20431e._0x10466f)]=trimTrailingSlashes2(_0x1d1077[_0x5e9963(_0x20431e._0x44eb65,_0x20431e._0x1ad64c,0x4b3,0x4f2)]),this[_0x11c68f(_0x20431e._0x4cbf34,_0x20431e._0xe01d96,_0x20431e._0x5ed3c1,0xa0)]=_0x1d1077[_0x5e9963(0x49a,0x547,0x497,0x52d)],this[_0x5e9963(0x4f9,_0x20431e._0x3d9ee5,_0x20431e._0x410290,0x57e)]=trimTrailingSlashes2(_0x1d1077[_0x5e9963(_0x20431e._0x32308a,_0x20431e._0x382214,0x4c2,0x4b4)]);function _0x11c68f(_0x49339c,_0x835cbc,_0x4b90bf,_0x2bfa84){return _0x38c793(_0x835cbc,_0x835cbc-0xc6,_0x49339c- -0x36d,_0x2bfa84-0xf2);}this[_0x11c68f(_0x20431e._0x3c714a,_0x20431e._0x13ea64,_0x20431e._0x10a9d1,_0x20431e._0x41f4d5)]=_0x1d1077['tokenExchangeApiVersion'];}async[_0x2b6123(0x43b,0x316,0x3a1,0x440)](_0x462498){const _0x45aec2={_0x1e2767:0x24,_0x2d9dca:0x86,_0x21e954:0x148,_0x3ec7df:0x1cc,_0x150ebd:0xbf,_0x5abd6b:0xfe,_0x4e0536:0x3c,_0x48fc88:0xb0,_0xd7cb39:0x50,_0x1b07e2:0x53,_0x228a4e:0x48,_0x2fb2bf:0x178,_0x112fca:0x1e6,_0x50f128:0x85,_0xc5bef2:0xaa,_0x2e737e:0xda,_0xe5875a:0x2f4,_0x442245:0x2e9,_0x5b6f53:0x33f,_0x3163f0:0x2d4,_0x4810ce:0x234,_0xddc60f:0x2ff,_0x53f7c5:0x190,_0x176ef9:0x277,_0x1aee16:0x23b,_0x5866c7:0x2f0,_0x1b0345:0x24c,_0x2a3b9f:0x2b0,_0x49c545:0x237,_0x4d334b:0x296,_0x1c7576:0x19c,_0x55deaf:0x10b,_0x3db763:0xee,_0x1fa584:0x66,_0x582869:0xb6,_0x2eafc9:0xcc,_0x1d7dde:0x1e,_0x59e747:0xa8,_0x47b973:0x106,_0x1104a3:0x8b,_0x56aaa0:0x104,_0x32c862:0x189,_0x4bca5b:0x222,_0x3149d5:0x177},_0xc0af6d={_0x5b1aa1:0x38,_0x5bbd1b:0xe9},_0x3a1b97={_0x3124bb:0x1dc,_0x575189:0x245};function _0x401a2d(_0x1035ca,_0x422dda,_0x1ec4ee,_0x23e04e){return _0x2b6123(_0x23e04e,_0x422dda-_0x3a1b97._0x3124bb,_0x1035ca- -_0x3a1b97._0x575189,_0x23e04e-0x11c);}const _0x481308=await this[_0x401a2d(_0x45aec2._0x1e2767,0x47,_0x45aec2._0x2d9dca,0xbd)](this['githubApiUrl']+_0x401a2d(_0x45aec2._0x21e954,0xed,0x20a,_0x45aec2._0x3ec7df),{'method':_0x401a2d(_0x45aec2._0x150ebd,0x31,_0x45aec2._0x5abd6b,0xc3),'headers':new Headers({'accept':_0x401a2d(_0x45aec2._0x4e0536,_0x45aec2._0x48fc88,-0x6d,0x4),'authorization':_0x401a2d(_0x45aec2._0xd7cb39,_0x45aec2._0x1b07e2,-_0x45aec2._0x228a4e,-0x2d)+this[_0x401a2d(_0x45aec2._0x2fb2bf,0x1e0,0x14d,0x22b)],'editor-version':_0x401a2d(0x139,0x97,_0x45aec2._0x112fca,0x121),'user-agent':_0x401a2d(0x11c,0x141,0x11d,0xa0),'x-github-api-version':this[_0x401a2d(_0x45aec2._0x50f128,-0x35,_0x45aec2._0xc5bef2,_0x45aec2._0x2e737e)]}),'signal':_0x462498});if(!_0x481308['ok'])return{'credential':{'kind':_0x401a2d(0xe9,0x14b,0x29,0x32),'value':this[_0x13a3a5(_0x45aec2._0xe5875a,_0x45aec2._0x442245,_0x45aec2._0x5b6f53,_0x45aec2._0x3163f0)]},'endpoints':{'api':this[_0x13a3a5(_0x45aec2._0x4810ce,0x29b,_0x45aec2._0xddc60f,0x2b0)]}};const _0x4f37d8=await _0x481308['json']();function _0x13a3a5(_0x36d1e9,_0x1713b9,_0x3bac62,_0x56a5e1){return _0x2b6123(_0x36d1e9,_0x1713b9-_0xc0af6d._0x5b1aa1,_0x56a5e1- -_0xc0af6d._0x5bbd1b,_0x56a5e1-0x1ad);}return{'credential':{'kind':'session-token','value':_0x4f37d8[_0x13a3a5(_0x45aec2._0x53f7c5,_0x45aec2._0x176ef9,0x240,_0x45aec2._0x1aee16)]??this['accessToken']},'endpoints':{'api':_0x4f37d8[_0x13a3a5(_0x45aec2._0x5866c7,_0x45aec2._0x1b0345,_0x45aec2._0x2a3b9f,0x228)]?.[_0x13a3a5(0x148,_0x45aec2._0x49c545,_0x45aec2._0x4d334b,0x1ee)]??this[_0x401a2d(0x154,0x1e3,_0x45aec2._0x1c7576,_0x45aec2._0x55deaf)],'originTracker':_0x4f37d8[_0x401a2d(0xcc,0x40,_0x45aec2._0x3db763,0x193)]?.[_0x401a2d(_0x45aec2._0x1fa584,-0x3c,0x104,_0x45aec2._0x582869)],'proxy':_0x4f37d8[_0x401a2d(_0x45aec2._0x2eafc9,_0x45aec2._0x1d7dde,_0x45aec2._0x59e747,0xac)]?.[_0x401a2d(0x89,_0x45aec2._0x47b973,0x71,_0x45aec2._0x1104a3)],'telemetry':_0x4f37d8[_0x401a2d(0xcc,_0x45aec2._0x56aaa0,0x7c,0x111)]?.[_0x13a3a5(_0x45aec2._0x32c862,_0x45aec2._0x4bca5b,0x17b,_0x45aec2._0x3149d5)]}};}};function trimTrailingSlashes2(_0x3e1d02){const _0x552905={_0x45fdc4:0xe6,_0x338d91:0x4c,_0x49cb09:0x52},_0xf21779={_0x223769:0x73};function _0x3a5605(_0x35bd0b,_0x3a0537,_0x2ab564,_0x33fe2b){return _0x2b6123(_0x33fe2b,_0x3a0537-0x80,_0x2ab564- -0x2de,_0x33fe2b-_0xf21779._0x223769);}return _0x3e1d02[_0x3a5605(_0x552905._0x45fdc4,-_0x552905._0x338d91,_0x552905._0x49cb09,0x78)](/\/+$/,'');}function createModelInfo(_0x5562b6){const _0x551906={_0x59ed8f:0x16d,_0x180976:0x1e1,_0x5a61b4:0x16b,_0x517330:0x6c1,_0x1bf484:0x5f2,_0x5c4961:0x613,_0x128433:0x5aa,_0x123873:0x574,_0x5efe95:0x22f,_0x80228b:0x4d8,_0x3c7428:0x45c,_0x47e6bd:0x4ae},_0x32b694={_0x3d8ce9:0x169},_0x439608={_0x58a05f:0x15,_0x253ed0:0x2bc},_0x45c919=_0x5562b6[_0x49e047(0x12f,_0x551906._0x59ed8f,0x172,0xe8)]??_0x5562b6[_0x49e047(_0x551906._0x180976,0x111,_0x551906._0x5a61b4,0x145)];function _0x1a9f84(_0x39161a,_0x2eeb63,_0x2cdaf6,_0x40bf06){return _0x2b6123(_0x39161a,_0x2eeb63-_0x439608._0x58a05f,_0x2eeb63-_0x439608._0x253ed0,_0x40bf06-0x199);}function _0x49e047(_0x3675ae,_0x456c1d,_0x3ef904,_0x3a16bf){return _0x2b6123(_0x3a16bf,_0x456c1d-_0x32b694._0x3d8ce9,_0x3ef904- -0x1b8,_0x3a16bf-0xaf);}const _0x5ed231=_0x5562b6[_0x1a9f84(_0x551906._0x517330,0x624,_0x551906._0x1bf484,0x640)]?.['limits']?.[_0x1a9f84(_0x551906._0x5c4961,_0x551906._0x128433,0x663,_0x551906._0x123873)],_0x252f81=_0x5562b6[_0x49e047(0x1d4,0x147,0x1b0,_0x551906._0x5efe95)]?.['limits']?.['max_output_tokens'],_0x281289=_0x5ed231!==void 0x0||_0x252f81!==void 0x0?{..._0x5ed231!==void 0x0?{'contextWindow':_0x5ed231}:{},..._0x252f81!==void 0x0?{'maxOutput':_0x252f81}:{}}:void 0x0;return{'id':_0x5562b6['id'],'name':_0x5562b6[_0x1a9f84(_0x551906._0x80228b,0x509,_0x551906._0x3c7428,_0x551906._0x47e6bd)]??_0x5562b6['id'],..._0x281289?{'limits':_0x281289}:{},..._0x45c919?{'supportedEndpoints':_0x45c919}:{}};}function deduplicateModels(_0x281503){const _0x36c8a2={_0x2132ef:0x20,_0x7cd1fa:0x330},_0x4676be={_0x12e1b0:0x183,_0x4cc4b1:0x3cb,_0x957d16:0x105},_0x1539c4={_0x34d694:0x178,_0x26a7e7:0x85},_0x1e8e19=new Map();for(const _0x463c6a of _0x281503){!_0x1e8e19['has'](_0x463c6a['id'])&&_0x1e8e19[_0x4d7596(-0x2,0x4f,-_0x36c8a2._0x2132ef,-0x5b)](_0x463c6a['id'],_0x463c6a);}function _0x2c8b19(_0x365b40,_0x5d594f,_0x4df7c7,_0x15eea4){return _0x2b6123(_0x5d594f,_0x5d594f-_0x1539c4._0x34d694,_0x15eea4- -_0x1539c4._0x26a7e7,_0x15eea4-0x1e5);}function _0x4d7596(_0x3ae5e6,_0x1b729d,_0x218fc2,_0x2066f7){return _0x2b6123(_0x1b729d,_0x1b729d-_0x4676be._0x12e1b0,_0x2066f7- -_0x4676be._0x4cc4b1,_0x2066f7-_0x4676be._0x957d16);}return Array[_0x2c8b19(0x2b7,0x1d1,_0x36c8a2._0x7cd1fa,0x267)](_0x1e8e19['values']());}function hasUserPromptContent(_0x361334){const _0x3b65d3={_0x2a37be:0x48e,_0x3ee49e:0x514,_0x3c3ee3:0x5ac,_0x145434:0xdb,_0x3f335d:0x102,_0x4a1125:0x16e,_0x6e9ec7:0x49,_0x5aa6b0:0x50,_0x3b4731:0x39},_0x53d95f={_0x4afe38:0x44c,_0x22b1db:0x447,_0x487c07:0x156,_0x5b3b55:0x27f,_0x1be28e:0x13c,_0x3ab369:0x87,_0x5e5644:0x14b,_0x5efb75:0x538,_0x5da2ca:0x523,_0x10433c:0x4a0,_0x27d735:0x55e,_0x4bf388:0x4ac},_0x6ad7da={_0x56d42f:0x1a,_0x225294:0xa},_0x356de1={_0x44adf0:0x9d,_0x35b81:0x474};function _0x37678e(_0x29f820,_0x4cbbf5,_0x44a163,_0x9a51e2){return _0x38c793(_0x4cbbf5,_0x4cbbf5-_0x356de1._0x44adf0,_0x9a51e2- -_0x356de1._0x35b81,_0x9a51e2-0x15f);}if(typeof _0x361334===_0x4f60e3(_0x3b65d3._0x2a37be,0x463,_0x3b65d3._0x3ee49e,_0x3b65d3._0x3c3ee3))return _0x361334[_0x37678e(-_0x3b65d3._0x145434,-0x90,-0xc0,-0xa2)]()[_0x37678e(-_0x3b65d3._0x3f335d,-_0x3b65d3._0x4a1125,-0x132,-0xa9)]>0x0;function _0x4f60e3(_0xe0a047,_0x5db5a7,_0xf54e85,_0x52b8e9){return _0x38c793(_0x52b8e9,_0x5db5a7-_0x6ad7da._0x56d42f,_0xf54e85-0x119,_0x52b8e9-_0x6ad7da._0x225294);}if(!Array['isArray'](_0x361334))return![];return _0x361334[_0x37678e(0xb6,-_0x3b65d3._0x6e9ec7,_0x3b65d3._0x5aa6b0,_0x3b65d3._0x3b4731)](_0x6a14e0=>{const _0x57ec37={_0xc37f2:0x28,_0x3a8eea:0x8e,_0x2acfed:0x6f3},_0x137cbb={_0x3faded:0x5c};if(!_0x6a14e0||typeof _0x6a14e0!==_0x32a642(0x4e6,_0x53d95f._0x4afe38,0x3d7,_0x53d95f._0x22b1db))return![];function _0x32a642(_0x138c85,_0x199682,_0x5271ed,_0x2d32c8){return _0x4f60e3(_0x138c85-_0x137cbb._0x3faded,_0x199682-0xe0,_0x2d32c8- -0x68,_0x199682);}function _0x2609fd(_0x5eca01,_0x4b045b,_0xf34500,_0x358efd){return _0x4f60e3(_0x5eca01-_0x57ec37._0xc37f2,_0x4b045b-_0x57ec37._0x3a8eea,_0x4b045b- -_0x57ec37._0x2acfed,_0xf34500);}const _0x448e11=_0x6a14e0;return(_0x448e11[_0x2609fd(-_0x53d95f._0x487c07,-0x1eb,-_0x53d95f._0x5b3b55,-_0x53d95f._0x1be28e)]===_0x2609fd(-_0x53d95f._0x3ab369,-_0x53d95f._0x5e5644,-0x153,-0x1b0)||_0x448e11[_0x32a642(_0x53d95f._0x5efb75,_0x53d95f._0x5da2ca,0x50a,_0x53d95f._0x10433c)]==='text')&&typeof _0x448e11[_0x2609fd(-0x257,-0x198,-0xe7,-0x18e)]===_0x32a642(0x49a,_0x53d95f._0x27d735,0x4ee,_0x53d95f._0x4bf388)&&_0x448e11['text']['trim']()['length']>0x0;});}function isUserPromptEntry(_0xcc3ca0){const _0x5d956b={_0x281fe6:0x1de,_0x473288:0x185,_0x4e216f:0x199,_0x2a09c5:0x163,_0x55d703:0x174,_0x564707:0x1d1,_0x47ab93:0x182,_0x5c42f5:0x32,_0x9b9ed3:0xb7,_0xd0398e:0xfd,_0x1ef3b9:0x138},_0x35eac0={_0xf11deb:0x1ee,_0x38addd:0x1b5},_0x456448={_0x3482d1:0x26d,_0x5ac13e:0xb1};if(!_0xcc3ca0||typeof _0xcc3ca0!=='object')return![];const _0x15c157=_0xcc3ca0;if(_0x15c157[_0x5b8d94(0x26c,0x23d,0x1fc,_0x5d956b._0x281fe6)]!==_0x5b8d94(_0x5d956b._0x473288,_0x5d956b._0x4e216f,_0x5d956b._0x2a09c5,0x1b8))return![];function _0x5b8d94(_0x412a87,_0x2d878f,_0x3d3e47,_0x53547f){return _0x38c793(_0x2d878f,_0x2d878f-0x19c,_0x53547f- -_0x456448._0x3482d1,_0x53547f-_0x456448._0x5ac13e);}if(_0x15c157[_0x571016(0x1c2,0x111,0x10a,0xc3)]!==void 0x0&&_0x15c157[_0x5b8d94(_0x5d956b._0x55d703,_0x5d956b._0x564707,0x13f,_0x5d956b._0x47ab93)]!==_0x571016(_0x5d956b._0x5c42f5,_0x5d956b._0x9b9ed3,_0x5d956b._0xd0398e,_0x5d956b._0x1ef3b9))return![];function _0x571016(_0x5c2804,_0x153a64,_0x5deb0f,_0x1fc48){return _0x2b6123(_0x1fc48,_0x153a64-_0x35eac0._0xf11deb,_0x5deb0f- -_0x35eac0._0x38addd,_0x1fc48-0x1e8);}return hasUserPromptContent(_0x15c157['content']);}function determineInitiator(_0x27b433){const _0x11fbc2={_0x1e8391:0x1eb,_0x59de41:0x2a9,_0x4f419d:0x323,_0x3b4ca7:0x28f,_0x4e3a81:0x25b,_0x49b9a7:0x29c,_0x101bb4:0x312,_0x4ed6b3:0x315,_0x3ddc16:0x2c7,_0x323f38:0x30c,_0x380c2e:0x20f,_0x8b688b:0x1fb,_0x157586:0x259,_0x56ab4d:0x2bb},_0x1c6ef5={_0x1c9050:0x1d0};function _0xa81127(_0x3ef944,_0x37275b,_0x3342ab,_0x274b47){return _0x38c793(_0x37275b,_0x37275b-0xa9,_0x3ef944- -0x167,_0x274b47-0x27);}function _0x536878(_0x365919,_0x189797,_0xce00f6,_0x3d13fe){return _0x38c793(_0x365919,_0x189797-0x12c,_0x3d13fe- -_0x1c6ef5._0x1c9050,_0x3d13fe-0x1f3);}if(!_0x27b433||typeof _0x27b433!=='object')return'agent';const _0x30a271=_0xa81127(0x268,_0x11fbc2._0x1e8391,_0x11fbc2._0x59de41,0x303)in _0x27b433?_0x27b433['messages']:'input'in _0x27b433?_0x27b433[_0xa81127(_0x11fbc2._0x4f419d,0x31b,0x2d6,_0x11fbc2._0x3b4ca7)]:void 0x0;if(!Array[_0x536878(_0x11fbc2._0x4e3a81,0x29c,_0x11fbc2._0x49b9a7,_0x11fbc2._0x101bb4)](_0x30a271)||_0x30a271['length']===0x0)return _0x536878(_0x11fbc2._0x4ed6b3,0x305,_0x11fbc2._0x3ddc16,_0x11fbc2._0x323f38);return isUserPromptEntry(_0x30a271[_0x30a271[_0x536878(_0x11fbc2._0x380c2e,0x1fb,0x161,_0x11fbc2._0x8b688b)]-0x1])?_0xa81127(0x2be,0x32b,_0x11fbc2._0x157586,0x35c):_0x536878(0x249,0x3aa,_0x11fbc2._0x56ab4d,0x30c);}function isUnsupportedApiForModel(_0x2e3c3b){const _0x214058={_0x339643:0x598,_0x2298bb:0x555},_0x23c856={_0x2f15de:0x48,_0x1cd090:0x4};function _0x1094b0(_0x55c235,_0x364881,_0x300d3c,_0x5f2040){return _0x38c793(_0x364881,_0x364881-_0x23c856._0x2f15de,_0x55c235-0x16b,_0x5f2040-_0x23c856._0x1cd090);}return _0x2e3c3b[_0x1094b0(0x5a1,0x5c0,_0x214058._0x339643,_0x214058._0x2298bb)]('unsupported_api_for_model');}function createResponseError(_0x35637a,_0x4cf230){const _0x24e02f={_0x3d9c34:0x22e,_0x4acbd2:0x288,_0x395f67:0x170},_0x382369={_0x45f2f5:0x109},_0x16c3d0={_0xca4e7b:0x127,_0x57a726:0x554,_0x403add:0x170};if(_0x35637a===0x191||_0x35637a===0x193)return new Error(_0x2962dd(0x2e4,_0x24e02f._0x3d9c34,_0x24e02f._0x4acbd2,0x30a));function _0x23d635(_0x2c4528,_0x4792e9,_0xcc96ab,_0x3807cb){return _0x38c793(_0x2c4528,_0x4792e9-_0x16c3d0._0xca4e7b,_0x4792e9- -_0x16c3d0._0x57a726,_0x3807cb-_0x16c3d0._0x403add);}function _0x2962dd(_0x546a80,_0x26fff9,_0x55429b,_0x5e72e6){return _0x38c793(_0x5e72e6,_0x26fff9-0x165,_0x55429b- -_0x382369._0x45f2f5,_0x5e72e6-0x7e);}if(_0x35637a===0x198||_0x35637a===0x1ad)return new Error('Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.');if(_0x35637a===0x190)return new Error(_0x23d635(-0x13e,-0xb8,-0x57,-_0x24e02f._0x395f67)+_0x4cf230);return new Error(_0x4cf230||'GitHub\x20API\x20error\x20'+_0x35637a);}var GitHubModel=class extends OpenAiModel{[_0x38c793(0x46a,0x32f,0x3b2,0x3c0)];[_0x2b6123(0x2b0,0x269,0x2c4,0x384)]=new Map();[_0x2b6123(0x276,0x22f,0x23c,0x2a4)];constructor(_0x518f32={}){const _0x254c8c={_0x5bdef4:0x37c,_0x510b26:0x492,_0x3d2b23:0x132,_0x4ad594:0x10b,_0x108a6b:0x1dd,_0x3e7d4d:0x20e,_0x20c7d8:0x254,_0x51026e:0x2a0,_0x1b54cc:0x1db,_0x5632fc:0x182,_0x52c7e5:0x25c,_0x186684:0xba,_0x3a54a6:0x3a0,_0x343db6:0x405,_0x66d4af:0x1e0,_0x3bb0e9:0x168,_0x31d9a8:0x1bf,_0x2600fe:0x3e2,_0x1abdab:0x481,_0x4ac1f0:0x34d,_0x17a4f4:0x297,_0x2a0872:0x2c4,_0x370d88:0x32e,_0x1ffbf7:0x1e5,_0x377ccf:0x260,_0x12b795:0x28d,_0x256fef:0x231,_0x339b9a:0x24d,_0x3a9fff:0x328,_0x55e764:0x2b9,_0x231e95:0x255,_0x138f19:0x31a,_0x400ae4:0x34f,_0x5b51af:0x2af,_0x40ed63:0x296,_0x56337a:0x2b8,_0x4bcade:0x246,_0x57b16f:0x1eb,_0x23f7b7:0x1fa,_0x16d3bf:0x3f8,_0x3ebb7c:0x3bc,_0x52cfdd:0x4a3,_0x156bf6:0x176,_0x56d6d2:0x153,_0x214cd5:0xda,_0x31a713:0x206,_0x5406a3:0x447,_0x4061b5:0x4fd,_0x25c43b:0x3f9,_0xb958ed:0x3f4,_0x52024a:0x4a9,_0x19e166:0x44d},_0x357daa={_0x5544f8:0x173},_0x21b783=trimTrailingSlashes2(_0x518f32['baseUrl']??'https://api.individual.githubcopilot.com');function _0x352f7e(_0x1f00ea,_0x584811,_0x121b74,_0xd3f326){return _0x2b6123(_0xd3f326,_0x584811-_0x357daa._0x5544f8,_0x584811- -0x11c,_0xd3f326-0x155);}const _0x26b541=_0x518f32[_0x25f471(0x43b,_0x254c8c._0x5bdef4,0x433,_0x254c8c._0x510b26)]??globalThis['fetch'],_0xe2391f=_0x518f32[_0x352f7e(0x7b,_0x254c8c._0x3d2b23,0x7a,_0x254c8c._0x4ad594)]??(_0x518f32[_0x352f7e(0x2f6,0x2a1,_0x254c8c._0x108a6b,_0x254c8c._0x3e7d4d)]?new GitHubAccessTokenResolver({'accessToken':_0x518f32['accessToken'],'baseUrl':_0x21b783,'fetch':_0x26b541,'githubApiUrl':_0x518f32[_0x352f7e(_0x254c8c._0x20c7d8,_0x254c8c._0x51026e,_0x254c8c._0x1b54cc,0x20e)]??'https://api.github.com','tokenExchangeApiVersion':_0x518f32[_0x352f7e(0x116,0x1ae,_0x254c8c._0x5632fc,_0x254c8c._0x52c7e5)]??_0x352f7e(0x161,0x112,_0x254c8c._0x186684,0x66)}):void 0x0),_0x19dfba=_0x518f32[_0x25f471(_0x254c8c._0x3a54a6,0x43f,0x410,_0x254c8c._0x343db6)]??_0x352f7e(0x22b,_0x254c8c._0x66d4af,_0x254c8c._0x3bb0e9,0x1d7),_0x5c08bd=_0x518f32[_0x352f7e(0x188,0x133,_0x254c8c._0x31d9a8,0x112)]??_0x25f471(0x359,_0x254c8c._0x2600fe,0x359,0x368),_0x13a5ab=({body:_0x450449})=>{return{'editor-plugin-version':_0x5c08bd,'editor-version':_0x19dfba,'x-initiator':determineInitiator(_0x450449),'x-request-id':randomUUID()};},_0x375dd0={'apiKey':_0x518f32[_0x25f471(0x3e5,0x466,_0x254c8c._0x1abdab,0x46c)],'baseUrl':_0x21b783,'fetch':_0x26b541,'maxTokens':_0x518f32[_0x25f471(_0x254c8c._0x4ac1f0,_0x254c8c._0x17a4f4,_0x254c8c._0x2a0872,_0x254c8c._0x370d88)],'model':_0x518f32[_0x352f7e(_0x254c8c._0x1ffbf7,_0x254c8c._0x377ccf,_0x254c8c._0x12b795,_0x254c8c._0x256fef)],'reasoning':_0x518f32[_0x352f7e(0x1cc,_0x254c8c._0x339b9a,0x27c,0x298)],'providerSessionResolver':_0xe2391f,'requestMutators':_0x518f32['requestMutators'],'headerResolver':_0x13a5ab};super(_0x375dd0),this[_0x25f471(0x31a,_0x254c8c._0x3a9fff,_0x254c8c._0x55e764,_0x254c8c._0x231e95)]=_0x518f32[_0x25f471(_0x254c8c._0x138f19,_0x254c8c._0x400ae4,_0x254c8c._0x5b51af,0x2cb)]??_0x25f471(0x39b,0x38e,0x41f,0x341);function _0x25f471(_0x508f1f,_0x426970,_0x33d1d2,_0x45fe00){return _0x2b6123(_0x426970,_0x426970-0x1da,_0x508f1f-0xde,_0x45fe00-0x152);}this[_0x25f471(0x360,_0x254c8c._0x40ed63,0x3ba,_0x254c8c._0x56337a)]=new AnthropicModel({'apiKey':_0x518f32[_0x352f7e(_0x254c8c._0x4bcade,_0x254c8c._0x57b16f,_0x254c8c._0x23f7b7,0x1f8)],'authScheme':_0x25f471(_0x254c8c._0x16d3bf,_0x254c8c._0x3ebb7c,0x33d,_0x254c8c._0x52cfdd),'baseUrl':_0x21b783,'fetch':_0x26b541,'headerResolver':_0x13a5ab,'maxTokens':_0x518f32[_0x352f7e(_0x254c8c._0x156bf6,_0x254c8c._0x56d6d2,_0x254c8c._0x214cd5,_0x254c8c._0x31a713)],'model':_0x518f32['model'],'reasoning':_0x518f32[_0x25f471(_0x254c8c._0x5406a3,0x394,_0x254c8c._0x4061b5,_0x254c8c._0x25c43b)],'providerSessionResolver':_0xe2391f,'requestMutators':_0x518f32[_0x25f471(_0x254c8c._0xb958ed,_0x254c8c._0x52024a,_0x254c8c._0x19e166,0x4a3)]});}['createMissingCredentialError'](){const _0x40b6d6={_0x2a043d:0x1d,_0x515d31:0x38,_0xd4bfbc:0xb},_0x15b7a0={_0xe834d8:0x1c7,_0x46d9ec:0x3d6,_0x225772:0xe8};function _0x506916(_0x550a53,_0x28f058,_0x335fea,_0x1561a7){return _0x38c793(_0x550a53,_0x28f058-_0x15b7a0._0xe834d8,_0x335fea- -_0x15b7a0._0x46d9ec,_0x1561a7-_0x15b7a0._0x225772);}return new Error(_0x506916(0x8f,_0x40b6d6._0x2a043d,_0x40b6d6._0x515d31,-_0x40b6d6._0xd4bfbc));}[_0x38c793(0x325,0x36a,0x3ca,0x3a1)](_0x3fc891){const _0x56926d={_0x24f001:0x254,_0x203a1d:0x2de,_0x32709f:0x1cb,_0x1462a8:0x45,_0x4b8dab:0x5e,_0x493aac:0x14b,_0x7fd9f:0xa,_0x258636:0x73,_0x1d5cb4:0xdc,_0x20c1fd:0xee,_0x42c760:0xe6},_0x1716b6={_0x3ddc12:0x157,_0x367a46:0x4f,_0x13a50e:0x1ea},_0x269ce6={_0x3fd3ed:0x62,_0x319c7b:0x195};function _0x5801c7(_0x5d62f9,_0x577206,_0x586e9b,_0x16ae56){return _0x38c793(_0x586e9b,_0x577206-_0x269ce6._0x3fd3ed,_0x16ae56- -0x3cf,_0x16ae56-_0x269ce6._0x319c7b);}const _0x42c48b=this[_0x566733(_0x56926d._0x24f001,0x275,_0x56926d._0x203a1d,_0x56926d._0x32709f)]['get'](_0x3fc891);if(!_0x42c48b)return![];function _0x566733(_0x36993e,_0xeb0803,_0xd7be47,_0x2e654c){return _0x2b6123(_0xd7be47,_0xeb0803-_0x1716b6._0x3ddc12,_0xeb0803- -_0x1716b6._0x367a46,_0x2e654c-_0x1716b6._0x13a50e);}return!_0x42c48b[_0x5801c7(-0x4d,0x70,-_0x56926d._0x1462a8,0x67)](_0x5801c7(_0x56926d._0x4b8dab,_0x56926d._0x493aac,-_0x56926d._0x7fd9f,0x9f))&&_0x42c48b[_0x5801c7(0x105,_0x56926d._0x258636,0x76,0x67)](_0x5801c7(_0x56926d._0x1d5cb4,_0x56926d._0x20c1fd,0x12f,_0x56926d._0x42c760));}[_0x38c793(0x510,0x436,0x482,0x4fb)](_0x3848dc){const _0x204aee={_0x56af13:0x2fd,_0x311a31:0x2f4,_0x382e4c:0x32a,_0x3ef89a:0x74,_0x8ca822:0x60,_0x53f686:0x24,_0x2a9875:0x14e,_0x6df9f:0x115,_0x36fa0a:0x13d,_0x326de1:0x12c,_0x1b4687:0x109,_0x25e1f5:0x3a9,_0xfaa0d3:0x345,_0x3cef49:0x3bc,_0x3bfe29:0x18b,_0x4dd750:0x100,_0x1e995f:0x2e2,_0x8f51f6:0x2d3,_0x4bb4fd:0x249,_0x4d2e3d:0x448,_0x26286b:0x358},_0x2ffba7={_0x3d429b:0x1ba,_0x2eac5d:0xf7,_0x48f526:0x1a3},_0x1a7346={_0x3791aa:0x260,_0x2ab422:0x5f};function _0x4416b0(_0x38628c,_0x2f7f39,_0x1e0dbf,_0x50f573){return _0x2b6123(_0x1e0dbf,_0x2f7f39-0x2e,_0x50f573- -_0x1a7346._0x3791aa,_0x50f573-_0x1a7346._0x2ab422);}const _0x4c3c2b=this[_0x2b4acc(0x2b1,_0x204aee._0x56af13,_0x204aee._0x311a31,_0x204aee._0x382e4c)][_0x4416b0(_0x204aee._0x3ef89a,-0x8,-_0x204aee._0x8ca822,_0x204aee._0x53f686)](_0x3848dc[_0x4416b0(_0x204aee._0x2a9875,_0x204aee._0x6df9f,_0x204aee._0x36fa0a,0x11c)]);if(!_0x4c3c2b)return![];function _0x2b4acc(_0x432180,_0x299cb1,_0x272332,_0x281c35){return _0x38c793(_0x281c35,_0x299cb1-_0x2ffba7._0x3d429b,_0x299cb1- -_0x2ffba7._0x2eac5d,_0x281c35-_0x2ffba7._0x48f526);}if(resolveOpenAiReasoningConfig(_0x3848dc[_0x4416b0(_0x204aee._0x326de1,0x197,0x82,_0x204aee._0x1b4687)]))return _0x4c3c2b[_0x2b4acc(_0x204aee._0x25e1f5,0x33f,_0x204aee._0xfaa0d3,_0x204aee._0x3cef49)](_0x4416b0(_0x204aee._0x3bfe29,_0x204aee._0x4dd750,0xfc,0x125));return this[_0x2b4acc(_0x204aee._0x1e995f,_0x204aee._0x8f51f6,_0x204aee._0x4bb4fd,0x24b)](_0x3848dc[_0x2b4acc(0x3a6,0x3b5,_0x204aee._0x4d2e3d,_0x204aee._0x26286b)]);}[_0x2b6123(0x3be,0x2e8,0x39f,0x30f)](_0x438f0d){const _0xb6be1a={_0x565f28:0x1d2,_0x49f662:0x1fd},_0x4e914f={_0x2221b5:0x16b,_0x4a9a85:0x496,_0x4cd059:0xa8};function _0x335081(_0x42b81f,_0x1f6dca,_0x40fc96,_0x421aee){return _0x2b6123(_0x421aee,_0x1f6dca-_0x4e914f._0x2221b5,_0x1f6dca- -_0x4e914f._0x4a9a85,_0x421aee-_0x4e914f._0x4cd059);}this[_0x335081(-0x243,-_0xb6be1a._0x565f28,-0x1c7,-_0xb6be1a._0x49f662)]['set'](_0x438f0d,['/responses']);}[_0x2b6123(0x1ee,0x1d3,0x287,0x265)](_0x592004){const _0x259a12={_0x58cfdb:0x5a,_0x2dd487:0x37d,_0x1d8898:0x70};if(_0x592004 instanceof OpenAiApiError)return createResponseError(_0x592004['status'],_0x592004[_0x211244(-0x117,-0xd5,-0x13e,-0x93)]||_0x592004['message']);function _0x211244(_0xef9109,_0x366591,_0xccf802,_0x52a19f){return _0x2b6123(_0x52a19f,_0x366591-_0x259a12._0x58cfdb,_0xccf802- -_0x259a12._0x2dd487,_0x52a19f-_0x259a12._0x1d8898);}return _0x592004;}[_0x38c793(0x4b0,0x4b5,0x4a7,0x53a)](_0x3fe7fc,_0x15c54f){const _0x144b9b={_0x4816ec:0x33,_0x40e51a:0x5d,_0x303ec8:0x5,_0x2ab9df:0x43,_0x4cf943:0x4a,_0x360957:0x56,_0x45a2f4:0xf8,_0x508a52:0x41,_0x5e6c08:0xbd,_0x47bc6e:0x155,_0x40fa93:0x4c,_0x4c0206:0xed,_0x4e43f0:0x6f,_0x334d66:0x8e,_0x1024fa:0x57,_0x2988a3:0x46,_0x5626b1:0x83,_0x3833b5:0x11a,_0x320df1:0x27,_0x166bb3:0xd2,_0x1dfad8:0x3a,_0x22dc5f:0x62,_0x3113f3:0xbc,_0x6e1159:0x9f},_0x1eee70={_0x109c7d:0x120,_0x425b21:0x379,_0x3dd235:0x1e9},_0x3e1554={_0x5c5cb2:0x121,_0x196616:0x3d9,_0x43bc9f:0x1b4};function _0x16dbd9(_0x898b7a,_0x234d03,_0x2532fb,_0x1d6ef1){return _0x38c793(_0x898b7a,_0x234d03-_0x3e1554._0x5c5cb2,_0x1d6ef1- -_0x3e1554._0x196616,_0x1d6ef1-_0x3e1554._0x43bc9f);}switch(this['surface']){case _0x16dbd9(-0x8c,0x9e,-_0x144b9b._0x4816ec,0xe):return this['anthropicDelegate']['complete'](_0x3fe7fc,_0x15c54f);case _0x4e3961(-0x39,-0xa,_0x144b9b._0x40e51a,-_0x144b9b._0x303ec8):return this[_0x16dbd9(_0x144b9b._0x2ab9df,-_0x144b9b._0x4cf943,0x9f,_0x144b9b._0x360957)](_0x3fe7fc,_0x15c54f);case _0x4e3961(_0x144b9b._0x45a2f4,_0x144b9b._0x508a52,_0x144b9b._0x5e6c08,0x50):return this[_0x16dbd9(_0x144b9b._0x47bc6e,_0x144b9b._0x40fa93,0x95,0x9e)](_0x3fe7fc,_0x15c54f);case _0x16dbd9(_0x144b9b._0x4c0206,_0x144b9b._0x4e43f0,_0x144b9b._0x334d66,_0x144b9b._0x1024fa):return this[_0x16dbd9(0x80,_0x144b9b._0x2988a3,0x11d,_0x144b9b._0x5626b1)](_0x3fe7fc,_0x15c54f);case'auto':return this[_0x16dbd9(_0x144b9b._0x3833b5,_0x144b9b._0x320df1,_0x144b9b._0x166bb3,0x6c)](_0x3fe7fc,_0x15c54f);}function _0x4e3961(_0x54bb7c,_0x33306d,_0x9fff89,_0x16b956){return _0x38c793(_0x33306d,_0x33306d-_0x1eee70._0x109c7d,_0x16b956- -_0x1eee70._0x425b21,_0x16b956-_0x1eee70._0x3dd235);}throw new Error(_0x16dbd9(_0x144b9b._0x1dfad8,-0xae,0x3b,-_0x144b9b._0x22dc5f)+String(this[_0x16dbd9(-_0x144b9b._0x3113f3,-0xac,-_0x144b9b._0x6e1159,-0x6d)]));}['streamViaConfiguredSurface'](_0xd8da7f,_0x248b0e){const _0x2facff={_0x1a0012:0x84,_0x512a4a:0x39,_0x5b579d:0x8,_0x330f34:0x8b,_0x2447b5:0xc,_0x47bbc3:0x100,_0x45878b:0x199,_0x50eb3c:0x1a7,_0x20c9d8:0x5,_0x2b7dd7:0x9d,_0x581ae8:0x74,_0x43227d:0x122,_0x5bde47:0xfc,_0x584204:0x17e,_0x203deb:0xb,_0x3cf076:0x3a,_0x512fb6:0xb3,_0x5c8227:0xfb,_0x4a4fad:0x1a,_0x50ebfc:0x1f,_0x293967:0x7a},_0x2d4aa9={_0x10d7a3:0xa0},_0x551806={_0xc831d9:0x5f,_0x3bed33:0x379};function _0xe957fa(_0x3b8a9a,_0x38f7a4,_0xca963,_0x1edf6e){return _0x38c793(_0x1edf6e,_0x38f7a4-_0x551806._0xc831d9,_0x3b8a9a- -_0x551806._0x3bed33,_0x1edf6e-0x46);}switch(this[_0xe957fa(-0xd,-0x15,-0x13,-_0x2facff._0x1a0012)]){case'anthropic-messages':return this[_0xe957fa(_0x2facff._0x512a4a,_0x2facff._0x5b579d,-_0x2facff._0x330f34,_0x2facff._0x2447b5)][_0xe957fa(_0x2facff._0x47bbc3,0x13f,_0x2facff._0x45878b,_0x2facff._0x50eb3c)](_0xd8da7f,_0x248b0e);case _0xe957fa(-_0x2facff._0x20c9d8,0x12,-_0x2facff._0x2b7dd7,_0x2facff._0x581ae8):return this[_0x208bff(_0x2facff._0x43227d,_0x2facff._0x5bde47,_0x2facff._0x584204,0x11a)](_0xd8da7f,_0x248b0e);case _0xe957fa(0x50,0xb4,_0x2facff._0x203deb,0x52):return this['responseStream'](_0xd8da7f,_0x248b0e);case'openai-responses-ws':return this[_0xe957fa(0x88,0xec,0xc3,_0x2facff._0x3cf076)](_0xd8da7f,_0x248b0e);case _0x208bff(0x11a,0x30,_0x2facff._0x512fb6,_0x2facff._0x5c8227):return this['stream'](_0xd8da7f,_0x248b0e);}function _0x208bff(_0x42fc21,_0x579704,_0x4be8f4,_0x1b80a1){return _0x38c793(_0x42fc21,_0x579704-_0x2d4aa9._0x10d7a3,_0x1b80a1- -0x2f2,_0x1b80a1-0xfc);}throw new Error(_0xe957fa(-0x2,-_0x2facff._0x4a4fad,0x70,-_0x2facff._0x50ebfc)+String(this[_0x208bff(0x11,0x2b,0x6f,_0x2facff._0x293967)]));}async[_0x38c793(0x4a5,0x3f4,0x445,0x440)](_0x2f9792,_0x5ef527){const _0x469451={_0x5abd9a:0x9d,_0x574e53:0x30f,_0x1e5b3a:0x14c,_0x206b9c:0x157,_0x32152f:0x115,_0x3f19b3:0x21,_0x313ce1:0x102,_0xbfe971:0x34,_0x42e928:0x3d,_0x2fe981:0x1ee,_0x704287:0x193,_0x287756:0x68,_0x113d93:0x386,_0x2f19fc:0x3f3,_0x4ce2b3:0x121,_0x41bd10:0x11c,_0x33c2e3:0x106,_0x43908b:0x8b,_0x5f53a2:0x13f,_0x50cbe6:0x14b},_0x4f08e6={_0x3a2cfc:0x1c,_0x2b0ca7:0x3d2,_0x35c997:0x83},_0x31850b={_0x1bc608:0x6e};function _0x57b644(_0x54c8e5,_0x3405f4,_0x4b04f0,_0x37bc70){return _0x38c793(_0x37bc70,_0x3405f4-_0x31850b._0x1bc608,_0x54c8e5- -0x10b,_0x37bc70-0x51);}const _0x4e5dbe=this[_0x3fdeb4(-0x13a,-0x54,-0x124,-_0x469451._0x5abd9a)](_0x2f9792);function _0x3fdeb4(_0x3b00b4,_0x3b8cf9,_0x2e56b7,_0x4f364f){return _0x2b6123(_0x3b00b4,_0x3b8cf9-_0x4f08e6._0x3a2cfc,_0x4f364f- -_0x4f08e6._0x2b0ca7,_0x4f364f-_0x4f08e6._0x35c997);}if(this[_0x57b644(0x261,0x2c1,0x29c,_0x469451._0x574e53)]!==_0x3fdeb4(-0x11d,-_0x469451._0x1e5b3a,-_0x469451._0x206b9c,-_0x469451._0x32152f))return this[_0x3fdeb4(-_0x469451._0x3f19b3,-_0x469451._0x313ce1,-0x73,-0x5b)](_0x4e5dbe,_0x5ef527);if(this[_0x3fdeb4(-0x83,-_0x469451._0xbfe971,-_0x469451._0x42e928,-0x80)](_0x4e5dbe))return this['response'](_0x4e5dbe,_0x5ef527);try{return await this['completeViaChatCompletionsSurface'](_0x4e5dbe,_0x5ef527);}catch(_0x3de9c5){if(_0x3de9c5 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x3de9c5[_0x3fdeb4(-0x118,-0x110,-_0x469451._0x2fe981,-_0x469451._0x704287)]))return this[_0x3fdeb4(_0x469451._0x287756,-0xc2,-0x4f,-0x33)](_0x4e5dbe[_0x57b644(0x3a1,_0x469451._0x113d93,_0x469451._0x2f19fc,0x308)]),this[_0x3fdeb4(-_0x469451._0x4ce2b3,-_0x469451._0x41bd10,-_0x469451._0x33c2e3,-_0x469451._0x43908b)](_0x4e5dbe,_0x5ef527);throw this[_0x3fdeb4(-0x190,-0x16b,-_0x469451._0x5f53a2,-_0x469451._0x50cbe6)](_0x3de9c5);}throw _0x3de9c5;}}async*[_0x38c793(0x3af,0x4e1,0x479,0x411)](_0x1744a9,_0x2e0ee1){const _0x312e27={_0x5868b1:0x5c0,_0x1f1f9b:0x59e,_0x30e5e6:0x36c,_0x14b3fd:0x3d8,_0x1704ea:0x41d,_0x23afa7:0x48f,_0x3d5e35:0x50c,_0x5a4bb2:0x675,_0x283ded:0x3f9,_0x3a62fd:0x51e,_0x3a2e5e:0x4a8,_0x1533ae:0x648,_0x56977d:0x549,_0x43a332:0x641,_0x56a837:0x4c3,_0x5835ce:0x3d0,_0x1fb68c:0x4b9},_0x2aa26d={_0x55d946:0x2d,_0x4f8842:0xe2},_0x1cedff={_0x511354:0x13e,_0x1962f2:0x139},_0xa663cf=this[_0x53f282(0x5cd,0x60c,_0x312e27._0x5868b1,_0x312e27._0x1f1f9b)](_0x1744a9);function _0x53f282(_0x2613f5,_0x3730a3,_0x2989f9,_0x501fa3){return _0x38c793(_0x3730a3,_0x3730a3-_0x1cedff._0x511354,_0x501fa3-_0x1cedff._0x1962f2,_0x501fa3-0x1bd);}if(this[_0x5bb931(_0x312e27._0x30e5e6,0x467,_0x312e27._0x14b3fd,0x331)]!==_0x5bb931(0x3f8,_0x312e27._0x1704ea,0x459,_0x312e27._0x23afa7)){yield*this[_0x53f282(0x4a6,_0x312e27._0x3d5e35,0x4cb,0x562)](_0xa663cf,_0x2e0ee1);return;}function _0x5bb931(_0x428054,_0x40dcbb,_0x20fdfe,_0x8fcd2d){return _0x2b6123(_0x8fcd2d,_0x40dcbb-_0x2aa26d._0x55d946,_0x20fdfe-0x19c,_0x8fcd2d-_0x2aa26d._0x4f8842);}if(this[_0x53f282(_0x312e27._0x3d5e35,0x5c1,_0x312e27._0x5a4bb2,0x5bb)](_0xa663cf)){yield*this[_0x53f282(0x54a,0x4f3,0x592,0x5b1)](_0xa663cf,_0x2e0ee1);return;}try{yield*this['streamViaChatCompletionsSurface'](_0xa663cf,_0x2e0ee1);}catch(_0x36cb34){if(_0x36cb34 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x36cb34[_0x53f282(0x567,_0x312e27._0x283ded,_0x312e27._0x3a62fd,_0x312e27._0x3a2e5e)])){this[_0x53f282(_0x312e27._0x1533ae,_0x312e27._0x56977d,_0x312e27._0x43a332,0x608)](_0xa663cf[_0x5bb931(0x5af,0x51e,0x518,0x4c2)]),yield*this[_0x5bb931(_0x312e27._0x56a837,0x548,0x4e4,0x4ac)](_0xa663cf,_0x2e0ee1);return;}throw this[_0x5bb931(_0x312e27._0x5835ce,0x393,0x423,_0x312e27._0x1fb68c)](_0x36cb34);}throw _0x36cb34;}}async['getModels'](_0x3c65e0){const _0x561246={_0x22cc5f:0x3af,_0x3d1066:0x2fd,_0x1581b2:0x320,_0x41d3df:0x4c4,_0x2b80b2:0x492,_0x47f8e5:0x446,_0x4a5177:0x385,_0x40d0ce:0x31e,_0x1620fb:0x3cd,_0x45beb4:0x2ba,_0x20f858:0x366,_0x12219e:0x3f3,_0x351bac:0x3fd},_0xd7fcd1={_0x4c12b7:0x3f},_0x1b0d6c={_0x3c7d48:0x73,_0x44d809:0x2a,_0x177a60:0x618,_0xdd1254:0x526},_0x525042=await this['sendRawRequest']({'path':_0x2e182e(0x33b,_0x561246._0x22cc5f,_0x561246._0x3d1066,_0x561246._0x1581b2),'method':_0x2e182e(0x3fa,0x3fb,_0x561246._0x41d3df,_0x561246._0x2b80b2),'signal':_0x3c65e0});if(!_0x525042['ok'])throw this[_0x5d1bb3(0x43f,0x3ce,_0x561246._0x47f8e5,_0x561246._0x4a5177)](await this['toApiError'](_0x525042));const _0x2c0420=await _0x525042[_0x2e182e(0x37f,_0x561246._0x40d0ce,_0x561246._0x1620fb,_0x561246._0x45beb4)](),_0x5ae229=(_0x2c0420[_0x2e182e(_0x561246._0x20f858,_0x561246._0x12219e,_0x561246._0x351bac,0x3d1)]??[])['map'](_0x1009ba=>{const _0x3e44a0={_0xde6ec4:0xf0,_0x5f111b:0x1a7};function _0x598168(_0x3773fc,_0x23239a,_0x14236a,_0x57a6a6){return _0x5d1bb3(_0x57a6a6-_0x3e44a0._0xde6ec4,_0x23239a-0x17c,_0x3773fc,_0x57a6a6-_0x3e44a0._0x5f111b);}const _0x5a20e6=createModelInfo(_0x1009ba);function _0x217198(_0x3b48a9,_0x568920,_0x16a63b,_0x2bb2b9){return _0x2e182e(_0x2bb2b9- -0x39e,_0x568920-0x12f,_0x568920,_0x2bb2b9-0x8b);}return _0x5a20e6[_0x217198(_0x1b0d6c._0x3c7d48,0x2a,-0x68,-_0x1b0d6c._0x44d809)]&&this[_0x598168(0x4a7,0x556,0x53e,0x56c)][_0x598168(0x682,0x692,0x69d,_0x1b0d6c._0x177a60)](_0x5a20e6['id'],_0x5a20e6[_0x598168(0x4ed,0x551,0x536,_0x1b0d6c._0xdd1254)]),_0x5a20e6;});function _0x5d1bb3(_0x2e0765,_0x505155,_0x5c8051,_0x3c28ac){return _0x2b6123(_0x5c8051,_0x505155-_0xd7fcd1._0x4c12b7,_0x2e0765-0x1b8,_0x3c28ac-0x146);}function _0x2e182e(_0x22b3d9,_0x34e164,_0x4dec92,_0x4d7028){return _0x38c793(_0x4dec92,_0x34e164-0x13e,_0x22b3d9- -0x3a,_0x4d7028-0x5e);}return deduplicateModels(_0x5ae229);}};function createHeaders(_0x506a3f){const _0x1c1cbc={_0x5c547e:0x271,_0x52a389:0x48e},_0x54ac6b={_0x4306ef:0x184},_0x468f93={_0x1b7d2a:0x108};function _0xbdb15d(_0x1b73a2,_0x4e7035,_0x268f95,_0x33c108){return _0x2b6123(_0x33c108,_0x4e7035-0x1f4,_0x4e7035-_0x468f93._0x1b7d2a,_0x33c108-0x133);}function _0xbe0f8c(_0x12547e,_0x3638e9,_0x494034,_0x5e295f){return _0x38c793(_0x494034,_0x3638e9-0x96,_0x3638e9- -0xd6,_0x5e295f-_0x54ac6b._0x4306ef);}const _0xdf6e9c=new Headers();for(const [_0x2e9ba3,_0x464b7b]of Object[_0xbe0f8c(_0x1c1cbc._0x5c547e,0x33b,0x36c,0x347)](_0x506a3f)){_0xdf6e9c[_0xbdb15d(0x484,0x478,0x48f,_0x1c1cbc._0x52a389)](_0x2e9ba3,_0x464b7b);}return _0xdf6e9c;}async function fetchRawResponse(_0x34211d){const _0x53e461={_0x2c9455:0xbc,_0x58c334:0x50a,_0x57b1b5:0x538,_0x5a212b:0x1f,_0x501f98:0x92,_0x5209ed:0x7d,_0x75d043:0xb9,_0x23888d:0xee,_0x4544d2:0x158,_0x4b1f4e:0x43f,_0x42139d:0x3fd,_0xb24930:0x4a8},_0x598344={_0x3d2cc8:0x426},_0xc00e87={_0x24722d:0x3,_0xc87979:0x1be,_0x555f08:0x14f};function _0xffed6d(_0x180ec3,_0x1a2ba2,_0x38f460,_0x19727b){return _0x2b6123(_0x1a2ba2,_0x1a2ba2-_0xc00e87._0x24722d,_0x38f460-_0xc00e87._0xc87979,_0x19727b-_0xc00e87._0x555f08);}const _0x4709e0=_0x34211d[_0x479743(_0x53e461._0x2c9455,0x67,0x30,0x84)]??globalThis[_0xffed6d(0x4b9,0x47a,0x51b,0x52e)];function _0x479743(_0x3e133e,_0x332d22,_0x164341,_0x4e6200){return _0x38c793(_0x164341,_0x332d22-0xa7,_0x332d22- -_0x598344._0x3d2cc8,_0x4e6200-0x8f);}return _0x4709e0(_0x34211d[_0xffed6d(0x5b7,_0x53e461._0x58c334,_0x53e461._0x57b1b5,0x53e)],{'method':'POST','headers':createHeaders(_0x34211d[_0x479743(_0x53e461._0x5a212b,-0x82,-0x1c,-_0x53e461._0x501f98)]),'body':JSON[_0x479743(-_0x53e461._0x5209ed,-_0x53e461._0x75d043,-_0x53e461._0x23888d,-_0x53e461._0x4544d2)](_0x34211d[_0xffed6d(_0x53e461._0x4b1f4e,0x4ac,_0x53e461._0x42139d,0x430)]),'signal':_0x34211d[_0xffed6d(_0x53e461._0xb24930,0x4b8,0x497,0x48d)]});}async function fetchJsonResponse(_0x582e06){const _0x1608cf={_0x41057a:0x3c1,_0x523a74:0x307,_0x5785b1:0x43c,_0x170376:0x3eb,_0x594b1b:0x250,_0x5c2abc:0x13c,_0x2e2a2a:0x1aa,_0x165434:0x22a,_0x5cb4b6:0x230,_0x53bfef:0x31c},_0x4848cb={_0x2784f4:0x133,_0x2ee9dc:0xe3},_0x5dfba9={_0x100617:0x17c,_0x364191:0x225,_0x4c156c:0x1e4};function _0x2543d4(_0x4a45d4,_0x5426e1,_0x4165a4,_0x54e763){return _0x38c793(_0x54e763,_0x5426e1-_0x5dfba9._0x100617,_0x4a45d4- -_0x5dfba9._0x364191,_0x54e763-_0x5dfba9._0x4c156c);}function _0x54ce74(_0x23eca1,_0x18efa0,_0x4914cb,_0x552cb9){return _0x2b6123(_0x4914cb,_0x18efa0-_0x4848cb._0x2784f4,_0x23eca1-0x11f,_0x552cb9-_0x4848cb._0x2ee9dc);}const _0x1cdf4e=await fetchRawResponse(_0x582e06);if(!_0x1cdf4e['ok']){const _0x52dd87=await _0x1cdf4e['text'](),_0x4ca4c0=_0x52dd87[_0x54ce74(_0x1608cf._0x41057a,0x42e,0x422,_0x1608cf._0x523a74)]()||_0x1cdf4e[_0x54ce74(_0x1608cf._0x5785b1,0x464,_0x1608cf._0x170376,0x4ef)]||'Unknown\x20provider\x20error';throw new Error(_0x2543d4(0x1cc,_0x1608cf._0x594b1b,0x142,_0x1608cf._0x5c2abc)+_0x1cdf4e[_0x2543d4(0x1af,_0x1608cf._0x2e2a2a,_0x1608cf._0x165434,_0x1608cf._0x5cb4b6)]+':\x20'+_0x4ca4c0);}return await _0x1cdf4e[_0x54ce74(0x3a8,0x392,_0x1608cf._0x53bfef,0x2de)]();}function findLastMessage(_0x38c82a,_0x4d053b){const _0x55098={_0x2b8bc6:0x438,_0x550016:0x4cd,_0xd61306:0x4d2,_0x531214:0x4b8,_0x31447c:0x46f,_0x45cfc3:0x4bf,_0xc9d915:0x4aa},_0x3da8b3={_0xea2b10:0xe1};for(let _0x17beab=_0x38c82a[_0x595067(_0x55098._0x2b8bc6,_0x55098._0x550016,_0x55098._0xd61306,0x463)]-0x1;_0x17beab>=0x0;_0x17beab-=0x1){if(_0x38c82a[_0x17beab][_0x595067(_0x55098._0x531214,_0x55098._0x31447c,_0x55098._0x45cfc3,_0x55098._0xc9d915)]===_0x4d053b)return _0x38c82a[_0x17beab];}function _0x39eedf(_0x5b9f11,_0x9b8223,_0x3f85d4,_0x529995){return _0x2b6123(_0x3f85d4,_0x9b8223-0x130,_0x5b9f11-0x3b,_0x529995-_0x3da8b3._0xea2b10);}function _0x595067(_0x120f40,_0x2f846e,_0x2a4bee,_0xbc8931){return _0x2b6123(_0xbc8931,_0x2f846e-0xb6,_0x120f40-0x19d,_0xbc8931-0x138);}return void 0x0;}function hasTool(_0x2c7c8f,_0x4e2315){const _0x44c21f={_0x33022b:0x526,_0x4f4825:0x47f,_0x196b23:0x5e4},_0x546542={_0x5821f2:0x15a,_0x3601ff:0x190};function _0x794a32(_0x595b3c,_0x2a92f1,_0xeb76b6,_0x1e72cd){return _0x2b6123(_0x595b3c,_0x2a92f1-0x1d4,_0x2a92f1-0x21e,_0x1e72cd-0xd8);}function _0x5b2aa0(_0x5e61ea,_0x240621,_0x4aa3e1,_0x12b9cd){return _0x2b6123(_0x4aa3e1,_0x240621-_0x546542._0x5821f2,_0x5e61ea-0x230,_0x12b9cd-_0x546542._0x3601ff);}return _0x2c7c8f[_0x5b2aa0(_0x44c21f._0x33022b,_0x44c21f._0x4f4825,0x4f4,_0x44c21f._0x196b23)]['some'](_0x37e2c6=>_0x37e2c6[_0x5b2aa0(0x47d,0x44e,0x4cf,0x445)]===_0x4e2315);}function createMockResponse(_0x4e6e6a,_0x322ebc,_0x12979e,_0x50dd60){return{'id':_0x4e6e6a,'content':_0x322ebc,'stopReason':_0x12979e,'usage':_0x50dd60};}var MockModel=class{['model'];[_0x38c793(0x32c,0x34c,0x39f,0x3c9)];[_0x2b6123(0x2d0,0x2c5,0x366,0x2f6)]=[];[_0x2b6123(0x3f5,0x2ea,0x369,0x33f)];constructor(_0x3cb54a={}){const _0x586dec={_0x195783:0x11d,_0x234a4b:0x7,_0x5192b8:0x31,_0x5ef5ae:0x227,_0xd37e95:0x204,_0x212791:0x1df,_0x55ce63:0x1a1,_0x34069f:0x8f,_0x5a3d30:0x87,_0x2d9662:0x86},_0x1fe9b4={_0x5edc1b:0x47e},_0x5a1ae3={_0x13f63e:0xdf,_0x595cd1:0x410};function _0xb97ee6(_0x58cd88,_0x44e8dc,_0x39fb7a,_0x3140d5){return _0x2b6123(_0x39fb7a,_0x44e8dc-_0x5a1ae3._0x13f63e,_0x3140d5- -_0x5a1ae3._0x595cd1,_0x3140d5-0x4);}function _0x17e9a3(_0x1e9855,_0x267b4a,_0x5d5356,_0x18149a){return _0x2b6123(_0x5d5356,_0x267b4a-0x10d,_0x267b4a- -_0x1fe9b4._0x5edc1b,_0x18149a-0xbf);}this['model']=_0x3cb54a[_0xb97ee6(-_0x586dec._0x195783,_0x586dec._0x234a4b,-_0x586dec._0x5192b8,-0x94)]??_0x17e9a3(-0x170,-_0x586dec._0x5ef5ae,-0x2a7,-0x2b2),this[_0x17e9a3(-0x245,-0x20f,-0x1a5,-_0x586dec._0xd37e95)]=_0x3cb54a[_0xb97ee6(-0x1ae,-_0x586dec._0x212791,-0x1e3,-_0x586dec._0x55ce63)]??0x4000,this[_0xb97ee6(-_0x586dec._0x34069f,-0x10a,-0x147,-0xa7)]=_0x3cb54a[_0x17e9a3(-_0x586dec._0x5a3d30,-0x115,-_0x586dec._0x2d9662,-0x167)]?structuredClone(_0x3cb54a['reasoning']):void 0x0;}async['complete'](_0x5257af,_0x22391e){const _0x58feb6={_0x4c87af:0x76,_0x549404:0x58,_0x32612c:0xcd,_0x2ba100:0x60,_0x2d42be:0x1bd,_0x4edaa6:0x266,_0x5c376e:0x21d,_0x2832f9:0x8c,_0x2a3000:0xa4,_0xbbd10c:0x113,_0x2d2eb9:0x197,_0x33ec82:0x77,_0x45f756:0x22,_0x160b43:0x36,_0x29d11b:0x10,_0x498f67:0x41,_0x13edd2:0x88,_0x37a218:0xad,_0x428181:0x44,_0x56f358:0x2,_0x25297e:0xc4,_0x42f3ff:0x20d,_0x3d8c8d:0x1ff,_0x2d89e0:0x1a4,_0x40a381:0x105,_0x2e18f6:0x128,_0x2ba873:0x1cb,_0x77e888:0x104,_0x38441e:0x3d,_0x26e0fb:0xac,_0x479109:0x41,_0x5e679d:0x56,_0x299ce3:0x1e5,_0xfaf48a:0x152,_0x383493:0x48,_0x1af64a:0x7c},_0x4b7b99={_0x3a2d12:0x1a9,_0x1d70ba:0x1cd},_0x5161ac={_0x5f0796:0xdb,_0x164bad:0x401,_0x365f2a:0x29},_0x35dbe9={...structuredClone(_0x5257af),..._0x5257af[_0x52e888(0x144,0x40,0x98,0x45)]===void 0x0&&this[_0x52e888(_0x58feb6._0x4c87af,_0x58feb6._0x549404,0x98,0xad)]!==void 0x0?{'reasoning':structuredClone(this[_0x52e888(_0x58feb6._0x32612c,0x140,0x98,_0x58feb6._0x2ba100)])}:{}};this[_0x59d541(_0x58feb6._0x2d42be,0x1fe,_0x58feb6._0x4edaa6,_0x58feb6._0x5c376e)]['push'](_0x35dbe9);const _0x5be058=findLastMessage(_0x35dbe9['messages'],_0x52e888(_0x58feb6._0x2832f9,_0x58feb6._0x2a3000,0x24,0x9d)),_0x3cb0eb=getToolResultBlocks(_0x5be058),_0x31c110=_0x59d541(_0x58feb6._0xbbd10c,0x96,0x92,_0x58feb6._0x2d2eb9)+this['requests']['length'];if(_0x3cb0eb[_0x52e888(-_0x58feb6._0x33ec82,-_0x58feb6._0x45f756,-_0x58feb6._0x160b43,_0x58feb6._0x29d11b)]>0x0)return createMockResponse(_0x31c110,[{'type':_0x52e888(0xfe,0x13,_0x58feb6._0x498f67,-_0x58feb6._0x13edd2),'text':'I\x20checked\x20the\x20mocked\x20tool\x20result.\x20'+_0x3cb0eb[0x0]['content']}],_0x59d541(_0x58feb6._0x37a218,0x7b,0x1,0xa2),{'inputTokens':0x78,'outputTokens':0x28});const _0x467182=getTextFromMessage(_0x5be058);function _0x52e888(_0x4bde6f,_0x2eb7aa,_0x5df2e8,_0x273fa2){return _0x38c793(_0x4bde6f,_0x2eb7aa-_0x5161ac._0x5f0796,_0x5df2e8- -_0x5161ac._0x164bad,_0x273fa2-_0x5161ac._0x365f2a);}function _0x59d541(_0x456fa8,_0xd0b08a,_0x153c28,_0x6f22cc){return _0x2b6123(_0x153c28,_0xd0b08a-0x19b,_0x456fa8- -_0x4b7b99._0x3a2d12,_0x6f22cc-_0x4b7b99._0x1d70ba);}if(/list .*files|workspace/i[_0x52e888(0xb4,0x7,0xd1,0x26)](_0x467182)&&hasTool(_0x35dbe9,'Bash'))return createMockResponse(_0x31c110,[{'type':_0x52e888(-_0x58feb6._0x428181,0x21,_0x58feb6._0x56f358,_0x58feb6._0x25297e),'id':_0x59d541(_0x58feb6._0x42f3ff,_0x58feb6._0x3d8c8d,0x23d,_0x58feb6._0x2d89e0)+this[_0x59d541(_0x58feb6._0x2d42be,0x287,_0x58feb6._0x40a381,_0x58feb6._0x2e18f6)]['length'],'name':_0x59d541(0x141,_0x58feb6._0x2ba873,0x126,_0x58feb6._0x77e888),'input':{'command':'ls\x20-la'}}],'tool_use',{'inputTokens':0x6e,'outputTokens':0x1c});return createMockResponse(_0x31c110,[{'type':_0x52e888(_0x58feb6._0x38441e,_0x58feb6._0x26e0fb,_0x58feb6._0x479109,_0x58feb6._0x5e679d),'text':_0x59d541(0x11e,_0x58feb6._0x299ce3,_0x58feb6._0xfaf48a,0x182)+_0x467182}],_0x52e888(_0x58feb6._0x383493,-_0x58feb6._0x1af64a,-0x7b,0x33),{'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(_0xd02a3a,_0x352238){const _0x51a548={_0x3207db:0x8c,_0x21e70c:0x16f,_0x32e03:0x148,_0x568c67:0x76,_0x50755e:0x12c,_0x597eeb:0x93,_0xac0349:0x23,_0x46166b:0x21,_0x41b803:0xfa,_0x258d54:0xb4,_0x1bc9b5:0x152,_0x29f5ab:0x245,_0x2c29c0:0x14,_0x2c22ea:0x123,_0x28c501:0x60,_0x4ee3b3:0xb,_0x473f6:0x1fb,_0x30c604:0x1c4,_0x438c25:0x261,_0x2ac13d:0x6d},_0x300fdc={_0x1ea094:0x213},_0x4aa2d2={_0x222aa0:0x90},_0x105282=_0xd02a3a();function _0x15e588(_0x3908a3,_0x2ecd43,_0xa972d1,_0x36dea5){return _0x2cfd(_0x2ecd43- -_0x4aa2d2._0x222aa0,_0x3908a3);}function _0x588495(_0x207cbb,_0x20a5cc,_0xccd39e,_0x54527c){return _0x2cfd(_0xccd39e- -_0x300fdc._0x1ea094,_0x54527c);}while(!![]){try{const _0x2de410=-parseInt(_0x588495(_0x51a548._0x3207db,0x14,0x6a,-0x12))/0x1*(parseInt(_0x588495(-_0x51a548._0x21e70c,-_0x51a548._0x32e03,-0xf3,-0x182))/0x2)+-parseInt(_0x15e588(-0x1a,0xa8,0x58,-0x22))/0x3+parseInt(_0x588495(_0x51a548._0x568c67,_0x51a548._0x50755e,_0x51a548._0x597eeb,_0x51a548._0xac0349))/0x4*(parseInt(_0x588495(-0x5d,0x6c,-0x18,-_0x51a548._0x46166b))/0x5)+-parseInt(_0x15e588(0xe0,_0x51a548._0x41b803,0x50,_0x51a548._0x258d54))/0x6+parseInt(_0x15e588(_0x51a548._0x1bc9b5,0x1f7,0x18c,_0x51a548._0x29f5ab))/0x7+parseInt(_0x588495(_0x51a548._0x2c29c0,_0x51a548._0x2c22ea,_0x51a548._0x28c501,_0x51a548._0x4ee3b3))/0x8+parseInt(_0x15e588(_0x51a548._0x473f6,_0x51a548._0x30c604,_0x51a548._0x438c25,0x1bd))/0x9*(-parseInt(_0x588495(_0x51a548._0x2ac13d,0x76,0x1c,_0x51a548._0x2c29c0))/0xa);if(_0x2de410===_0x352238)break;else _0x105282['push'](_0x105282['shift']());}catch(_0x4b6b21){_0x105282['push'](_0x105282['shift']());}}}(_0x521a,0x8cd4c));import{toOpenAiResponsesRequest}from'../chunk-LXQDGX4K.js';import{resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig}from'../chunk-NYZR4XKO.js';import{getTextFromMessage,getToolResultBlocks,normalizeContent,toChatRequest,toModelRequest,toProviderModelRequest}from'../chunk-G2FR4UGO.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';var ProviderRequestConstructionError=class extends Error{constructor(_0x414b70){const _0x1d4348={_0xb60870:0x5bb,_0x3dc166:0x3f7};super(_0x414b70);function _0x2a726a(_0x3005ca,_0x1514dd,_0x38e1b1,_0x43cea3){return _0x2cfd(_0x38e1b1-0x276,_0x1514dd);}function _0x432f7c(_0x31c4bc,_0x34bb2e,_0x459925,_0x1c1fc2){return _0x2cfd(_0x31c4bc-0x84,_0x459925);}this[_0x2a726a(0x59a,_0x1d4348._0xb60870,0x506,0x4ac)]=_0x2a726a(0x302,0x431,0x393,_0x1d4348._0x3dc166);}},ProviderStreamEventError=class extends Error{['code'];['retryable'];[_0x18006e(0x7b,0x24,0x33,0x8c)];constructor(_0x3af60d,_0x5e5526={}){const _0x4fcac4={_0xde9d28:0x46e,_0x1e0507:0x4eb,_0x48bd2f:0x453,_0x2180c6:0x35d,_0x4d9233:0x446,_0x5327bb:0x391,_0xb42ed4:0x357,_0x44d520:0x32c,_0x367252:0x38a,_0x3f4eff:0x2f4,_0x8535e2:0x2c7,_0x3d259a:0x3d1,_0x87cc6e:0x3a5,_0x6488b4:0x492,_0x463772:0x3a6,_0x18899d:0x38e,_0x5dc96b:0x3af},_0x2a4a3d={_0x531aa1:0x19b,_0x2d9c8f:0x153,_0x302871:0x289},_0x116e31={_0x4df2c6:0x175,_0x55dd65:0xf7};function _0x8ed590(_0x36306b,_0x4302c3,_0x16ef22,_0x32147b){return _0x18006e(_0x36306b-_0x116e31._0x4df2c6,_0x4302c3-_0x116e31._0x55dd65,_0x16ef22-0x37c,_0x32147b);}super(_0x3af60d),this[_0x8ed590(_0x4fcac4._0xde9d28,_0x4fcac4._0x1e0507,0x50d,_0x4fcac4._0x48bd2f)]=_0x379398(_0x4fcac4._0x2180c6,_0x4fcac4._0x4d9233,0x338,_0x4fcac4._0x5327bb);function _0x379398(_0x347b55,_0x5a7109,_0x58e83e,_0x48e190){return _0x18006e(_0x347b55-_0x2a4a3d._0x531aa1,_0x5a7109-_0x2a4a3d._0x2d9c8f,_0x48e190-_0x2a4a3d._0x302871,_0x5a7109);}this[_0x379398(_0x4fcac4._0xb42ed4,_0x4fcac4._0x44d520,_0x4fcac4._0x367252,0x2c7)]=_0x5e5526[_0x379398(0x36c,0x248,_0x4fcac4._0x3f4eff,_0x4fcac4._0x8535e2)],this[_0x379398(_0x4fcac4._0x3d259a,_0x4fcac4._0x87cc6e,_0x4fcac4._0x6488b4,0x3e3)]=_0x5e5526['retryable']??!![],this['status']=_0x5e5526[_0x8ed590(_0x4fcac4._0x463772,_0x4fcac4._0x18899d,_0x4fcac4._0x5dc96b,0x3bc)];}};function isRetryableProviderStreamEventError(_0x5d185d){const _0x4c0767={_0x5c0fca:0x1e4,_0x55b886:0x24d},_0x4205a5={_0x5aaba1:0xa0,_0x4802b0:0xf3};function _0x5e9c5f(_0x2dac86,_0x1ec2e2,_0x3adad6,_0x16da9d){return _0x18006e(_0x2dac86-0x1cd,_0x1ec2e2-_0x4205a5._0x5aaba1,_0x16da9d-_0x4205a5._0x4802b0,_0x3adad6);}return _0x5d185d instanceof ProviderStreamEventError&&_0x5d185d[_0x5e9c5f(0x29a,0x314,_0x4c0767._0x5c0fca,_0x4c0767._0x55b886)];}var ANTHROPIC_MESSAGES_SURFACE=_0x4d4006(0x2f,0xe9,0x27,0x85),ANTHROPIC_MESSAGES_STREAM_SURFACE=_0x18006e(0xbd,0x5,0x29,0x8d);function parseToolInput(_0x39c1eb){const _0x6bb8f9={_0x1bd7d1:0x58,_0xe7e71b:0xe9,_0x54e638:0x17},_0x1677bd={_0x27df01:0x102};function _0x5280c2(_0x2ff5cb,_0x1aeeb5,_0x3cefeb,_0x19979b){return _0x18006e(_0x2ff5cb-_0x1677bd._0x27df01,_0x1aeeb5-0x13e,_0x2ff5cb-0x46,_0x19979b);}try{return JSON[_0x5280c2(0x7c,_0x6bb8f9._0x1bd7d1,_0x6bb8f9._0xe7e71b,-_0x6bb8f9._0x54e638)](_0x39c1eb);}catch{return _0x39c1eb;}}function resolveReasoningVisibility(_0x3c8254){const _0x92e150={_0x35c7f3:0x28a,_0xb5ffa1:0x1d1,_0x4c6c81:0x269,_0x4dee05:0x43d,_0xe138fe:0x4c5,_0x5777d3:0x54b},_0x791695={_0x3da0ff:0x158},_0x377cfa={_0x128d7a:0x28,_0x10ad18:0x450};function _0x1ea997(_0x3ea13,_0x751ad8,_0x1ec1d3,_0x16e384){return _0x18006e(_0x3ea13-_0x377cfa._0x128d7a,_0x751ad8-0x16,_0x1ec1d3-_0x377cfa._0x10ad18,_0x751ad8);}function _0x4898dd(_0x1d21f7,_0x119701,_0x264171,_0x1dacf8){return _0x18006e(_0x1d21f7-0x1c0,_0x119701-0xda,_0x1d21f7-_0x791695._0x3da0ff,_0x264171);}return _0x3c8254[_0x1ea997(0x58d,0x5f4,0x55f,0x5be)]?.[_0x4898dd(0x1cf,_0x92e150._0x35c7f3,_0x92e150._0xb5ffa1,_0x92e150._0x4c6c81)]??_0x1ea997(_0x92e150._0x4dee05,_0x92e150._0xe138fe,0x4e0,_0x92e150._0x5777d3);}function isUserVisibleThinking(_0x2c344d){const _0x4b8afb={_0x1bb803:0x462,_0x580f7d:0x2ea,_0x5315ed:0x2f8,_0x84940b:0x2d2},_0x59621c={_0x5b2d9c:0x39,_0x150fc6:0x145},_0x56c7e0={_0x181683:0x27b};function _0x59dc1(_0x174489,_0x5e56aa,_0x183e72,_0x31364b){return _0x4d4006(_0x5e56aa,_0x5e56aa-0x1a3,_0x31364b-_0x56c7e0._0x181683,_0x31364b-0xa8);}const _0x1ac443=resolveAnthropicThinkingConfig(_0x2c344d[_0x59dc1(0x347,0x3f7,0x349,0x351)]);function _0x3824a8(_0x3ce5ea,_0x3b550c,_0x351dee,_0x189602){return _0x18006e(_0x3ce5ea-_0x59621c._0x5b2d9c,_0x3b550c-0x1b2,_0x3b550c- -_0x59621c._0x150fc6,_0x189602);}return _0x1ac443!==void 0x0&&_0x1ac443['type']!==_0x59dc1(0x454,_0x4b8afb._0x1bb803,0x481,0x3ec)&&resolveReasoningVisibility(_0x2c344d)===_0x59dc1(0x38a,_0x4b8afb._0x580f7d,_0x4b8afb._0x5315ed,_0x4b8afb._0x84940b);}function createAnthropicThinkingBody(_0x200c09){const _0x50d137={_0x3d6080:0x54d,_0x586725:0xb0,_0x53ce01:0x136,_0x405513:0x5af,_0x488219:0x117,_0x2d7b3e:0x1d0,_0x93fd57:0x172,_0x253dff:0x115,_0x262d2d:0x1b5,_0x1fc287:0x14f,_0xbec105:0x1f3,_0x288d4c:0x1e2,_0x55ec71:0x4f8,_0x30240e:0x548,_0x3babe4:0x58f},_0x299325={_0x1b1ed8:0x78,_0xa09393:0x134,_0x42e1c9:0x4e},_0x623d7={_0x5009dc:0x47d},_0x23c373=resolveAnthropicThinkingConfig(_0x200c09[_0x361555(0x58c,0x5d8,0x5d0,_0x50d137._0x3d6080)]);if(!_0x23c373||_0x23c373['type']==='disabled')return{};function _0x361555(_0x17e556,_0x11bc87,_0x4ead55,_0x1a9cc8){return _0x18006e(_0x17e556-0xd2,_0x11bc87-0x28,_0x17e556-_0x623d7._0x5009dc,_0x11bc87);}function _0x3effd6(_0x4b97bc,_0x356667,_0x1b889e,_0x1fc857){return _0x4d4006(_0x356667,_0x356667-_0x299325._0x1b1ed8,_0x1b889e-_0x299325._0xa09393,_0x1fc857-_0x299325._0x42e1c9);}const _0x2b632c=_0x23c373['display']??(isUserVisibleThinking(_0x200c09)?'summarized':'omitted'),_0x2d2baf=_0x23c373['interleaved']?{'anthropic-beta':_0x3effd6(0xa9,_0x50d137._0x586725,0x117,_0x50d137._0x53ce01)}:void 0x0;if(_0x23c373[_0x361555(0x52f,0x54d,_0x50d137._0x405513,0x580)]===_0x3effd6(_0x50d137._0x488219,0x16d,_0x50d137._0x53ce01,_0x50d137._0x2d7b3e))return{..._0x2d2baf?{'headers':_0x2d2baf}:{},'thinking':{'type':_0x3effd6(_0x50d137._0x93fd57,_0x50d137._0x253dff,0x136,0x174),'budget_tokens':_0x23c373[_0x3effd6(_0x50d137._0x262d2d,_0x50d137._0x1fc287,_0x50d137._0xbec105,0x1c5)],'display':_0x2b632c}};return{..._0x2d2baf?{'headers':_0x2d2baf}:{},'thinking':{'type':'adaptive',..._0x23c373[_0x3effd6(_0x50d137._0x288d4c,0x101,0x176,0x172)]?{'effort':_0x23c373[_0x361555(_0x50d137._0x55ec71,_0x50d137._0x30240e,0x53b,_0x50d137._0x3babe4)]}:{},'display':_0x2b632c}};}function toAnthropicRequestContent(_0x54c1d4){const _0x18093b={_0x5be29b:0x126,_0x318b8f:0x21e,_0x1eabaa:0xbf,_0x18de93:0x188,_0x362d08:0x265,_0x56ec61:0x2ff,_0x533960:0x25b,_0x5e1db4:0xe8,_0x337837:0x192,_0x5d7696:0xd1,_0x14dd6d:0x7d,_0x16fc54:0x27d,_0x13fb01:0x95,_0x1ba845:0x22f,_0x5b0c94:0x24e,_0x9fa23e:0x1c3,_0x512535:0x4,_0x2d8a08:0x215,_0x220921:0x1be,_0x321a86:0x9c,_0x21cbb4:0xf6,_0x350f62:0x141,_0xc2da2c:0x6f,_0x4e19e6:0xe9,_0x2b423a:0x11f},_0x16428c={_0x2e86d8:0x5a};function _0x8dfbca(_0x5c791e,_0x4177d2,_0x3708f9,_0x30d0b2){return _0x18006e(_0x5c791e-0x1b6,_0x4177d2-0x1b,_0x3708f9- -_0x16428c._0x2e86d8,_0x5c791e);}if(_0x54c1d4[_0xf52417(_0x18093b._0x5be29b,0x19c,0x1d3,_0x18093b._0x318b8f)]===_0x8dfbca(_0x18093b._0x1eabaa,0x1c6,0x11d,_0x18093b._0x18de93)&&_0x54c1d4['providerState']?.['anthropicAssistantContent'])return structuredClone(_0x54c1d4['providerState']['anthropicAssistantContent']);const _0x36317c=[];function _0xf52417(_0x219af5,_0x1b6cf0,_0x178c9e,_0x48d7c4){return _0x4d4006(_0x1b6cf0,_0x1b6cf0-0xb8,_0x178c9e-0x183,_0x48d7c4-0x127);}for(const _0x1c93ce of normalizeContent(_0x54c1d4[_0xf52417(0x227,_0x18093b._0x362d08,0x245,_0x18093b._0x56ec61)])){if(_0x1c93ce[_0xf52417(_0x18093b._0x533960,0x27d,0x1fc,0x139)]===_0x8dfbca(_0x18093b._0x5e1db4,_0x18093b._0x337837,_0x18093b._0x5d7696,_0x18093b._0x14dd6d))continue;if(_0x1c93ce['type']===_0xf52417(0x380,_0x18093b._0x16fc54,0x2e9,0x365)){_0x36317c[_0xf52417(0x276,0x2bb,0x29a,0x2ee)]({'type':_0x8dfbca(-0x2d,0x7e,0x1f,_0x18093b._0x13fb01),'thinking':_0x1c93ce[_0xf52417(_0x18093b._0x1ba845,_0x18093b._0x5b0c94,_0x18093b._0x9fa23e,0x1ff)],'signature':_0x1c93ce['signature']});continue;}if(_0x1c93ce[_0x8dfbca(0xb,-_0x18093b._0x512535,0x58,0x1c)]===_0xf52417(_0x18093b._0x2d8a08,_0x18093b._0x220921,0x257,0x2d5)){_0x36317c[_0x8dfbca(_0x18093b._0x321a86,0xf7,_0x18093b._0x21cbb4,_0x18093b._0x350f62)]({'type':_0x8dfbca(0xb8,-0x21,_0x18093b._0xc2da2c,_0x18093b._0x4e19e6),'data':_0x1c93ce['data']});continue;}_0x36317c[_0x8dfbca(_0x18093b._0x2b423a,0xaf,0xf6,0x12f)](structuredClone(_0x1c93ce));}return _0x36317c;}function createAnthropicRequest(_0x50a4a0,_0x2cccd4){const _0x3e0942={_0x257c3a:0x1c4,_0x4fb555:0x14c,_0x4553c4:0x103,_0x15638b:0xf4,_0x356fe:0xf8,_0x55cd9b:0xf8,_0x133e48:0x191,_0x5cebbb:0x94},_0x221b83={_0x307581:0x237,_0x24b394:0x300},_0x34b35d={_0x5de413:0xb2,_0xbb6ae4:0xb8,_0x4f58a8:0x43},_0x1822c6={_0x11c750:0x13a};function _0x58439a(_0x37cb37,_0x30689b,_0x3d7adc,_0x545234){return _0x18006e(_0x37cb37-0x16c,_0x30689b-_0x1822c6._0x11c750,_0x37cb37- -0x282,_0x30689b);}const _0x10206c=toProviderModelRequest(_0x50a4a0),_0x5e7b10=createAnthropicThinkingBody(_0x50a4a0);function _0x4895be(_0xfb69c8,_0x5a5919,_0x326311,_0x3aa826){return _0x4d4006(_0x326311,_0x5a5919-_0x34b35d._0x5de413,_0x5a5919-_0x34b35d._0xbb6ae4,_0x3aa826-_0x34b35d._0x4f58a8);}return{'accept':_0x2cccd4?'text/event-stream':'application/json','body':{..._0x10206c,'messages':_0x50a4a0[_0x58439a(-0x25e,-0x227,-0x2f3,-_0x3e0942._0x257c3a)][_0x4895be(_0x3e0942._0x4fb555,_0x3e0942._0x4553c4,0x9b,_0x3e0942._0x15638b)](_0x18aa02=>{const _0x531c7c={_0x4415ac:0x12f};function _0x460c50(_0x1bd9c7,_0x21c7f8,_0x37b7f5,_0x3e589e){return _0x4895be(_0x1bd9c7-0x119,_0x21c7f8-_0x531c7c._0x4415ac,_0x3e589e,_0x3e589e-0x192);}return{'role':_0x18aa02[_0x460c50(0x1fd,_0x221b83._0x307581,0x202,_0x221b83._0x24b394)],'content':toAnthropicRequestContent(_0x18aa02)};}),..._0x5e7b10['thinking']?{'thinking':_0x5e7b10[_0x4895be(_0x3e0942._0x356fe,_0x3e0942._0x55cd9b,_0x3e0942._0x133e48,0x1c2)]}:{},..._0x2cccd4?{'stream':!![]}:{}},..._0x5e7b10[_0x58439a(-0xf2,-_0x3e0942._0x5cebbb,-0x67,-0x184)]?{'headers':_0x5e7b10['headers']}:{},'path':'/v1/messages'};}function parseAnthropicResponse(_0x1dde13,_0x404aa0){const _0x390279={_0xbb8976:0x2a,_0x406e46:0x32,_0x317238:0x11,_0x2ad780:0x71,_0xf37fb:0x38,_0x297cb8:0x47,_0x3b4b05:0x127,_0x2f55d4:0x51,_0x43f1cb:0x3af,_0x1ca7ce:0x280,_0x5575bd:0x19,_0x545060:0xb5,_0x4a45eb:0x273,_0x31b19d:0x1e4,_0x49f968:0x31d,_0x346d44:0xc7,_0x53dbca:0x116,_0x37d9f9:0x2ac,_0x231700:0x353,_0x235909:0x23a,_0x20bb9d:0x2fe,_0x7ad6b6:0x46,_0x492508:0xc1,_0x46b2ec:0x34a,_0x879fef:0x3c2,_0xa2b4a6:0x3bd,_0x29093f:0x2ec,_0xf8ebc7:0x335,_0x46376d:0x3b0,_0x5202fe:0x38,_0x40fcc3:0x75,_0x2c488b:0x3c7,_0x51afdc:0x3b6,_0x5726bd:0x2ed,_0x8ab5c4:0x66,_0x5aeaea:0x112,_0x4e6ebd:0x2a7,_0x3784c6:0x3ad,_0xc1fb94:0x343,_0x566cdb:0x398,_0x487784:0x363,_0x266586:0x0,_0xc4327:0x13e,_0xca3df6:0xaf,_0x4cc3b7:0x53,_0x3cdb61:0x296,_0x56d86d:0x2c9,_0x4ccc37:0x34e,_0x56b6a5:0x2ec,_0x35f9b9:0x298,_0x2d6530:0x2af,_0x4ad7bf:0x2c3,_0x32c418:0x359,_0x1c4eb3:0x3d8,_0x4b2c96:0x4f,_0x5f53f8:0x125,_0x4efa03:0x4c,_0x259ba1:0xb7},_0x2bc50c={_0x21baff:0x12e,_0x4d3b40:0xb4,_0x15baa4:0xea},_0x23a259={_0x4719a0:0x1cb,_0x93b805:0x233,_0x26db1a:0x15f};function _0x3ecf31(_0x267620,_0xa4e11e,_0xdac197,_0x31519c){return _0x4d4006(_0xa4e11e,_0xa4e11e-_0x23a259._0x4719a0,_0x267620-_0x23a259._0x93b805,_0x31519c-_0x23a259._0x26db1a);}const _0x4fcf96=[],_0x448dc2=_0x1dde13[_0x581544(_0x390279._0xbb8976,-_0x390279._0x406e46,_0x390279._0x317238,_0x390279._0x2ad780)]??[];let _0x22684f=![];for(const _0x529e12 of _0x448dc2){if(_0x529e12[_0x581544(0x72,-0x1,-_0x390279._0xf37fb,_0x390279._0x297cb8)]===_0x581544(-0x59,-_0x390279._0x3b4b05,-_0x390279._0x2ad780,-_0x390279._0x2f55d4)){_0x22684f=!![];isUserVisibleThinking(_0x404aa0)&&_0x4fcf96[_0x3ecf31(0x34a,0x2bd,_0x390279._0x43f1cb,_0x390279._0x1ca7ce)]({'type':_0x581544(_0x390279._0x5575bd,0x121,_0x390279._0x545060,0x43),'thinking':_0x529e12[_0x3ecf31(_0x390279._0x4a45eb,_0x390279._0x31b19d,0x263,_0x390279._0x49f968)],'signature':_0x529e12[_0x581544(-0x22,-0x169,-_0x390279._0x346d44,-_0x390279._0x53dbca)]});continue;}if(_0x529e12[_0x3ecf31(_0x390279._0x37d9f9,_0x390279._0x231700,_0x390279._0x235909,_0x390279._0x20bb9d)]===_0x581544(-_0x390279._0x7ad6b6,-0x3c,-0x21,-_0x390279._0x492508)){_0x22684f=!![];isUserVisibleThinking(_0x404aa0)&&_0x4fcf96[_0x3ecf31(_0x390279._0x46b2ec,_0x390279._0x879fef,0x31d,_0x390279._0xa2b4a6)]({'type':'anthropic_redacted_thinking','data':_0x529e12[_0x3ecf31(_0x390279._0x29093f,0x28b,_0x390279._0xf8ebc7,_0x390279._0x46376d)]});continue;}if(_0x529e12[_0x581544(-0xe9,0x5d,-_0x390279._0x5202fe,-_0x390279._0x40fcc3)]===_0x3ecf31(0x305,0x2f5,_0x390279._0x2c488b,0x2d2)){_0x529e12[_0x3ecf31(0x305,0x2c0,0x3b9,0x296)][_0x3ecf31(0x31f,_0x390279._0x51afdc,_0x390279._0x5726bd,0x3b6)]>0x0&&_0x4fcf96[_0x581544(0x10d,-0x64,_0x390279._0x8ab5c4,_0x390279._0x5aeaea)](structuredClone(_0x529e12));continue;}_0x4fcf96[_0x3ecf31(0x34a,_0x390279._0x4e6ebd,_0x390279._0x3784c6,_0x390279._0xc1fb94)](structuredClone(_0x529e12));}function _0x581544(_0x5058b5,_0x38870b,_0x2bc152,_0x830c8d){return _0x18006e(_0x5058b5-_0x2bc50c._0x21baff,_0x38870b-_0x2bc50c._0x4d3b40,_0x2bc152- -_0x2bc50c._0x15baa4,_0x5058b5);}return{'id':_0x1dde13['id']??_0x3ecf31(_0x390279._0x566cdb,0x449,0x31c,_0x390279._0x487784)+Date[_0x581544(_0x390279._0x266586,_0x390279._0xc4327,_0x390279._0xca3df6,_0x390279._0x4cc3b7)](),'content':_0x4fcf96,'stopReason':_0x4fcf96['some'](_0x30cc6b=>_0x30cc6b[_0x581544(-0x49,-0xf3,-0x38,0x24)]===_0x3ecf31(0x296,0x31a,0x338,0x1dd))?_0x3ecf31(_0x390279._0x3cdb61,0x32e,_0x390279._0x56d86d,0x2db):_0x1dde13['stop_reason']===_0x3ecf31(0x296,0x308,_0x390279._0x4ccc37,_0x390279._0x56b6a5)?'tool_use':_0x3ecf31(_0x390279._0x35f9b9,_0x390279._0x2d6530,0x353,_0x390279._0x4ad7bf),'usage':{'inputTokens':_0x1dde13[_0x3ecf31(_0x390279._0x32c418,0x307,_0x390279._0x1c4eb3,0x417)]?.['input_tokens']??0x0,'outputTokens':_0x1dde13[_0x581544(-_0x390279._0x4b2c96,_0x390279._0x5f53f8,0x75,-_0x390279._0x4efa03)]?.[_0x581544(0xb2,0xe8,_0x390279._0x259ba1,0xdd)]??0x0},..._0x22684f?{'providerState':{'anthropicAssistantContent':structuredClone(_0x448dc2)}}:{}};}function _0x4d4006(_0xc65ec6,_0x41fc9e,_0x3e324b,_0x31c017){const _0xd5270f={_0x15e327:0x138};return _0x2cfd(_0x3e324b- -_0xd5270f._0x15e327,_0xc65ec6);}var AnthropicMessagesStreamParser=class{[_0x18006e(0xde,0x140,0x1a2,0x156)]=new Map();[_0x4d4006(0xe3,-0x14,0x8b,0x81)]=0x0;[_0x4d4006(0x29,0x12e,0x7c,0x10a)]='msg-'+Date[_0x4d4006(0x186,0xd5,0x160,0x20d)]();[_0x4d4006(0x190,0x10,0xcd,0x10e)]=0x0;[_0x18006e(0x35,0x17b,0xc8,0x7c)];['stopReason']='end_turn';constructor(_0x199a55){const _0x4e2181={_0x25102a:0x525,_0x2e35f2:0x4e7},_0xf54b15={_0x56241a:0x1a1,_0x17a0c3:0xfa};function _0xa37b81(_0x5a9a9e,_0xee461,_0xcbd8dd,_0x332620){return _0x18006e(_0x5a9a9e-_0xf54b15._0x56241a,_0xee461-_0xf54b15._0x17a0c3,_0xcbd8dd-0x41f,_0x5a9a9e);}this[_0xa37b81(_0x4e2181._0x25102a,0x4d5,_0x4e2181._0x2e35f2,0x523)]=_0x199a55;}[_0x18006e(0xc4,0x1f7,0x149,0xa5)](_0x336827){const _0x50e361={_0x32fc:0x4c3,_0x12a347:0x4a1,_0x17e302:0x483,_0x242761:0x401,_0x4f4add:0x40e,_0x33800b:0x391,_0x37fdc5:0x3a5,_0x544727:0x421,_0x8ed964:0x3ad,_0x425bc1:0x45f,_0x2731da:0x46d,_0x323bc6:0x47c,_0x2bc799:0x2f9,_0xc99b68:0x2f2,_0x28c72d:0x359,_0x3a6760:0x3c5,_0x3de8cc:0x35a,_0x4db91b:0x374,_0x39c060:0x47e,_0x37d8bd:0x48f,_0x20b544:0x50d,_0x2f2c8f:0x402,_0x3a88b7:0x39c,_0x5d2d55:0x44c,_0x4d9688:0x502,_0x173200:0x521,_0x5e00a3:0x4eb,_0x1deba4:0x4ed,_0x36999c:0x434,_0x5263d8:0x39b,_0x1aecef:0x2dd,_0x279b07:0x338,_0x54fa1d:0x3ab,_0x2965b7:0x3be,_0x58435f:0x478,_0x2659dc:0x3e2,_0x252e74:0x393,_0xaa6d75:0x333,_0x2504fb:0x440,_0x10b5c8:0x43a,_0x2c2776:0x3d4,_0x282f46:0x3dc,_0x3b0ee8:0x4cf,_0xdbb33:0x532,_0x4a4fe2:0x4e0,_0x4a8a27:0x492,_0x2d241d:0x483,_0x3b1a94:0x3e3,_0x276e3a:0x34c,_0x158e26:0x3b2,_0x557771:0x4ed,_0x5b4f5a:0x4b5,_0x1e9490:0x579,_0x3f204d:0x2c8,_0x35e532:0x371,_0x4b2c92:0x406,_0x5764d6:0x513,_0x56e345:0x358,_0x21d116:0x3b7,_0x1c2914:0x581,_0x1709b5:0x4c6,_0x578e3b:0x3b7,_0x122557:0x394,_0x3e55ab:0x367,_0x352b3d:0x3e9,_0x4c51d3:0x3e6,_0x40dd9f:0x49f,_0xe291dd:0x37d,_0x1c1297:0x363,_0x361552:0x449,_0x1b127f:0x468,_0xc93a3:0x32c,_0x5deb81:0x4a8,_0x48aa7c:0x3b7,_0x8e4836:0x3f0,_0x18a7aa:0x433,_0xeeee0b:0x3e9,_0x534cd9:0x3d6,_0x2fbb1e:0x329,_0x220810:0x4e0,_0x487ab3:0x4bc,_0x2d0485:0x495,_0x2fb9c0:0x399,_0x3c76c9:0x455,_0x2fec06:0x3ed,_0x114233:0x3e5,_0x26e267:0x395,_0x48ff8d:0x3ed,_0x57a566:0x4ae,_0x16026e:0x3bb,_0x43fd7d:0x4d4,_0x5b728b:0x41c,_0x401349:0x426,_0x425837:0x3d8,_0x224f59:0x492,_0x30eed7:0x360,_0xcc9d56:0x46d,_0x3520bf:0x3e8,_0x1555b5:0x38c,_0x1b8065:0x390,_0x1ff844:0x3ff,_0x47b723:0x3d4,_0x51584e:0x446,_0x1db58a:0x4a2,_0x24fcd7:0x3fe,_0x171dcf:0x447,_0x18b3b9:0x4c4,_0x3cbbc3:0x42f,_0x25f4e1:0x3c6,_0x4b2e7b:0x38e,_0x2ee0c0:0x497,_0x5cd985:0x481,_0x59fd7a:0x53f,_0x4f60a0:0x4ff,_0x2efb76:0x4ea,_0x354956:0x441,_0x4462a9:0x409,_0x2d22f5:0x3c0,_0x5168d1:0x465,_0x3d3939:0x4d1,_0x1dce7d:0x3e9,_0x29e5c7:0x32b,_0x17d0d5:0x415,_0xfe4211:0x485,_0x426d7e:0x380,_0x529716:0x430,_0x2c06f6:0x379,_0x47105b:0x408,_0x461c1d:0x4af,_0x3922e7:0x427,_0x25e8e9:0x4a8,_0x1865c9:0x31a,_0x2cd1f6:0x287,_0x5e9d96:0x343,_0x2ad700:0x4eb,_0x3984f3:0x558,_0x9338c2:0x4ae,_0x20d804:0x457,_0x5c3dc5:0x3a2,_0x3c3ffe:0x39d,_0x14c145:0x463,_0x4f0cf9:0x47c,_0x4e3178:0x32d,_0x5881bd:0x43f,_0x28ca10:0x342,_0x426fd1:0x44a,_0x347ef5:0x341,_0x544b86:0x38b,_0x5b605a:0x3f0,_0x5b8526:0x45a,_0x1541bc:0x51d,_0x121267:0x4d5,_0x36ed20:0x429,_0x14859f:0x477,_0x5034f1:0x463,_0x1f2bfd:0x319,_0x5b2785:0x37f,_0x1cdf56:0x3cf,_0x5a80d5:0x3c5,_0x79a901:0x3fc,_0x26a085:0x3ba,_0x561106:0x49c,_0x3ff552:0x386,_0x2bc006:0x381,_0x1c0f72:0x457,_0x2fbb07:0x4dc,_0xc2a7bb:0x431,_0x517056:0x506,_0x28b159:0x467,_0x3a490d:0x3fa,_0x4ed161:0x43f,_0x4d0c77:0x472,_0x5bf392:0x401,_0x5b01f1:0x3da,_0x492a1d:0x49e,_0x2bf15f:0x3ee,_0x2ff2e6:0x444,_0x3f819a:0x430,_0x19a602:0x40b,_0x2fe12a:0x370,_0x191c34:0x475,_0x1e7306:0x3c9,_0x17876d:0x3f2},_0x12db19={_0x1cc751:0xf8},_0x12d06b={_0x5de759:0x1a0,_0x2e5e6b:0x91},_0x4f866b=_0x336827['split']('\x0a'),_0xe47628=_0x4f866b['find'](_0x29bd29=>_0x29bd29[_0x2a0b75(0x46d,0x477,0x484,0x4bc)](_0x2a0b75(0x390,0x2ef,0x388,0x418)))?.[_0x3b6112(0x498,_0x50e361._0x32fc,0x459,0x502)](0x6)[_0x2a0b75(_0x50e361._0x12a347,_0x50e361._0x17e302,_0x50e361._0x242761,_0x50e361._0x4f4add)](),_0x11fcfb=_0x4f866b[_0x2a0b75(_0x50e361._0x33800b,0x3fe,_0x50e361._0x37fdc5,_0x50e361._0x544727)](_0x417009=>_0x417009[_0x3b6112(0x3c4,0x3a8,0x453,0x39f)]('data:'))['map'](_0x1e3c7c=>_0x1e3c7c['slice'](0x5)['trimStart']())[_0x2a0b75(_0x50e361._0x8ed964,0x2f6,_0x50e361._0x425bc1,0x397)]('\x0a')[_0x3b6112(0x41e,0x480,0x487,_0x50e361._0x2731da)]();function _0x2a0b75(_0x5a0278,_0x1a4a73,_0x5b8a47,_0x56e5c6){return _0x18006e(_0x5a0278-_0x12d06b._0x5de759,_0x1a4a73-_0x12d06b._0x2e5e6b,_0x5a0278-0x33e,_0x56e5c6);}if(_0x11fcfb[_0x3b6112(0x436,_0x50e361._0x323bc6,0x449,0x4d7)]===0x0||_0x11fcfb===_0x3b6112(_0x50e361._0x2bc799,_0x50e361._0xc99b68,0x3a2,0x327))return[];function _0x3b6112(_0x27641d,_0x461806,_0x1367aa,_0x492370){return _0x18006e(_0x27641d-0x98,_0x461806-_0x12db19._0x1cc751,_0x1367aa-0x324,_0x461806);}const _0xc76e0f=JSON[_0x3b6112(_0x50e361._0x28c72d,_0x50e361._0x3a6760,_0x50e361._0x3de8cc,_0x50e361._0x4db91b)](_0x11fcfb);switch(_0xe47628){case _0x2a0b75(0x45a,0x4ee,_0x50e361._0x39c060,0x46d):{const _0x29daf7=_0xc76e0f[_0x2a0b75(_0x50e361._0x37d8bd,0x3c9,_0x50e361._0x20b544,0x48d)];this[_0x2a0b75(0x3f3,0x3fd,0x44f,0x3e4)]=_0x29daf7?.['id']??this['messageId'],this[_0x2a0b75(_0x50e361._0x2f2c8f,0x38e,_0x50e361._0x3a88b7,_0x50e361._0x5d2d55)]=_0x29daf7?.[_0x3b6112(_0x50e361._0x4d9688,_0x50e361._0x173200,0x483,0x522)]?.[_0x3b6112(_0x50e361._0x5e00a3,_0x50e361._0x1deba4,0x4cd,0x4d6)]??this[_0x2a0b75(_0x50e361._0x2f2c8f,0x381,0x38c,_0x50e361._0x36999c)];break;}case _0x2a0b75(_0x50e361._0x5263d8,0x36d,_0x50e361._0x1aecef,_0x50e361._0x279b07):{const _0x169af4=typeof _0xc76e0f['index']==='number'?_0xc76e0f[_0x3b6112(_0x50e361._0x54fa1d,0x379,_0x50e361._0x2965b7,_0x50e361._0x58435f)]:0x0,_0x5d6dc6=_0xc76e0f[_0x2a0b75(0x37f,_0x50e361._0x2659dc,_0x50e361._0x252e74,0x2b6)];if(_0x5d6dc6?.[_0x2a0b75(0x3f0,_0x50e361._0xaa6d75,_0x50e361._0x2504fb,_0x50e361._0x10b5c8)]===_0x2a0b75(0x3da,0x311,_0x50e361._0x2c2776,_0x50e361._0x282f46)&&_0x5d6dc6['id']&&_0x5d6dc6[_0x2a0b75(_0x50e361._0x3b0ee8,_0x50e361._0xdbb33,0x552,0x49e)])return this[_0x2a0b75(_0x50e361._0x4a4fe2,0x43e,0x4ed,0x485)][_0x2a0b75(0x4d4,_0x50e361._0x4a8a27,0x411,0x4b1)](_0x169af4,{'id':_0x5d6dc6['id'],'index':_0x169af4,'inputJson':JSON[_0x3b6112(0x493,0x467,_0x50e361._0x544727,0x43a)](_0x5d6dc6[_0x3b6112(_0x50e361._0x2d241d,0x37c,_0x50e361._0x3b1a94,_0x50e361._0x276e3a)]??{}),'kind':_0x2a0b75(0x3da,_0x50e361._0x158e26,0x3ce,0x487),'name':_0x5d6dc6[_0x3b6112(_0x50e361._0x557771,0x4cf,_0x50e361._0x5b4f5a,_0x50e361._0x1e9490)]}),[{'type':_0x2a0b75(0x35d,_0x50e361._0x3f204d,0x3c4,_0x50e361._0x35e532),'id':_0x5d6dc6['id'],'index':_0x169af4,'name':_0x5d6dc6[_0x3b6112(0x42b,_0x50e361._0x4b2c92,0x4b5,_0x50e361._0x5764d6)]}];if(_0x5d6dc6?.[_0x3b6112(0x34a,0x480,0x3d6,_0x50e361._0x56e345)]===_0x2a0b75(_0x50e361._0x21d116,0x364,0x42b,0x409)){this[_0x3b6112(0x4c5,_0x50e361._0x1c2914,_0x50e361._0x1709b5,0x499)]['set'](_0x169af4,{'index':_0x169af4,'kind':_0x2a0b75(_0x50e361._0x578e3b,_0x50e361._0x122557,0x45c,_0x50e361._0x3e55ab),'signature':typeof _0x5d6dc6['signature']===_0x2a0b75(_0x50e361._0x352b3d,_0x50e361._0x4c51d3,_0x50e361._0x40dd9f,0x388)?_0x5d6dc6[_0x2a0b75(0x361,_0x50e361._0xe291dd,0x2dd,_0x50e361._0x1c1297)]:'','thinking':typeof _0x5d6dc6[_0x2a0b75(_0x50e361._0x361552,0x47b,_0x50e361._0x1b127f,0x477)]===_0x2a0b75(0x3e9,0x45c,_0x50e361._0xc93a3,_0x50e361._0x5deb81)?_0x5d6dc6['text']:typeof _0x5d6dc6[_0x2a0b75(_0x50e361._0x48aa7c,_0x50e361._0x8e4836,_0x50e361._0x18a7aa,0x41c)]===_0x2a0b75(_0x50e361._0xeeee0b,0x453,0x464,0x35a)?String(_0x5d6dc6['thinking']):''});break;}if(_0x5d6dc6?.[_0x3b6112(0x38d,_0x50e361._0x56e345,_0x50e361._0x534cd9,_0x50e361._0x2fbb1e)]==='redacted_thinking'){this[_0x2a0b75(_0x50e361._0x220810,_0x50e361._0x487ab3,0x532,0x53c)][_0x2a0b75(0x4d4,0x41e,0x462,_0x50e361._0x2d0485)](_0x169af4,{'index':_0x169af4,'kind':_0x3b6112(_0x50e361._0x2fb9c0,_0x50e361._0x3c76c9,_0x50e361._0x2fec06,_0x50e361._0x114233),'data':typeof _0x5d6dc6[_0x2a0b75(0x430,_0x50e361._0x26e267,_0x50e361._0x48ff8d,_0x50e361._0x57a566)]===_0x2a0b75(_0x50e361._0x352b3d,_0x50e361._0x16026e,0x418,0x475)?String(_0x5d6dc6['data']):''});break;}this['blocks'][_0x2a0b75(_0x50e361._0x43fd7d,0x4e6,_0x50e361._0x5b728b,0x558)](_0x169af4,{'index':_0x169af4,'kind':_0x3b6112(0x4ce,0x4a7,0x42f,0x3f2),'text':_0x5d6dc6?.[_0x2a0b75(0x449,0x3f2,_0x50e361._0x401349,0x511)]??''});break;}case'content_block_delta':{const _0x3330d2=typeof _0xc76e0f[_0x2a0b75(_0x50e361._0x425837,_0x50e361._0x224f59,0x418,0x462)]==='number'?_0xc76e0f[_0x2a0b75(0x3d8,0x475,_0x50e361._0x30eed7,_0x50e361._0xcc9d56)]:0x0,_0x187ec2=this[_0x3b6112(0x476,0x51a,0x4c6,0x4f7)]['get'](_0x3330d2),_0xcd04db=_0xc76e0f[_0x3b6112(_0x50e361._0x3520bf,_0x50e361._0x1555b5,_0x50e361._0x1b8065,0x446)];if(!_0x187ec2||!_0xcd04db?.[_0x3b6112(0x428,_0x50e361._0x1ff844,0x3d6,0x412)])break;if(_0xcd04db['type']==='text_delta'&&_0x187ec2['kind']===_0x2a0b75(0x449,_0x50e361._0x47b723,_0x50e361._0x425bc1,0x3cc)&&typeof _0xcd04db[_0x2a0b75(_0x50e361._0x361552,0x4e8,_0x50e361._0x51584e,_0x50e361._0x1db58a)]===_0x3b6112(_0x50e361._0x4c51d3,_0x50e361._0x24fcd7,0x3cf,_0x50e361._0x171dcf))return _0x187ec2[_0x3b6112(_0x50e361._0x18b3b9,0x4ae,_0x50e361._0x3cbbc3,_0x50e361._0x25f4e1)]+=_0xcd04db[_0x2a0b75(_0x50e361._0x361552,0x4b4,_0x50e361._0x4b2e7b,0x3b3)],[{'type':_0x3b6112(_0x50e361._0x2ee0c0,_0x50e361._0x3b0ee8,_0x50e361._0x5cd985,_0x50e361._0x59fd7a),'index':_0x3330d2,'text':_0xcd04db[_0x3b6112(0x438,0x4de,_0x50e361._0x3cbbc3,0x467)]}];if(_0xcd04db['type']===_0x2a0b75(0x483,0x475,_0x50e361._0x4f60a0,_0x50e361._0x2efb76)&&_0x187ec2[_0x3b6112(_0x50e361._0x354956,0x467,0x477,0x528)]===_0x3b6112(_0x50e361._0x4462a9,_0x50e361._0x282f46,_0x50e361._0x2d22f5,0x454)&&typeof _0xcd04db[_0x3b6112(_0x50e361._0x5168d1,0x4fa,_0x50e361._0x3d3939,0x48a)]===_0x2a0b75(_0x50e361._0x1dce7d,_0x50e361._0x29e5c7,_0x50e361._0x17d0d5,_0x50e361._0xfe4211))return _0x187ec2[_0x2a0b75(_0x50e361._0x426d7e,0x390,_0x50e361._0x529716,_0x50e361._0x2c06f6)]==='{}'&&(_0x187ec2[_0x2a0b75(0x380,0x43a,0x2da,_0x50e361._0x47105b)]=''),_0x187ec2['inputJson']+=_0xcd04db[_0x2a0b75(0x4eb,_0x50e361._0x461c1d,_0x50e361._0x3922e7,_0x50e361._0x25e8e9)],[{'type':_0x3b6112(_0x50e361._0x1865c9,_0x50e361._0x2cd1f6,_0x50e361._0x5e9d96,0x3e1),'id':_0x187ec2['id'],'index':_0x3330d2,'inputDelta':_0xcd04db[_0x2a0b75(_0x50e361._0x2ad700,0x52c,0x4b4,_0x50e361._0x3984f3)]}];if(_0xcd04db['type']===_0x2a0b75(_0x50e361._0x9338c2,0x55c,0x415,0x519)&&_0x187ec2['kind']===_0x2a0b75(_0x50e361._0x48aa7c,0x422,_0x50e361._0x20d804,0x3b0)){const _0x5160a5=typeof _0xcd04db['thinking']==='string'?String(_0xcd04db[_0x3b6112(0x32c,_0x50e361._0x5c3dc5,_0x50e361._0x3c3ffe,0x2fb)]):'';if(_0x5160a5[_0x2a0b75(_0x50e361._0x14c145,0x426,0x4cc,0x498)]>0x0){_0x187ec2[_0x2a0b75(_0x50e361._0x21d116,_0x50e361._0x4f0cf9,_0x50e361._0x4e3178,_0x50e361._0x5881bd)]+=_0x5160a5;if(isUserVisibleThinking(this[_0x3b6112(_0x50e361._0x28ca10,_0x50e361._0x426fd1,0x3ec,_0x50e361._0x16026e)]))return[{'type':_0x3b6112(_0x50e361._0x347ef5,0x42f,_0x50e361._0x544b86,0x445),'index':_0x3330d2,'thinking':_0x5160a5}];}}if(_0xcd04db[_0x2a0b75(_0x50e361._0x5b605a,0x44a,_0x50e361._0x3520bf,0x3d7)]===_0x3b6112(0x46e,_0x50e361._0x5b8526,_0x50e361._0x2d0485,_0x50e361._0x1541bc)&&_0x187ec2[_0x3b6112(_0x50e361._0x121267,_0x50e361._0x36ed20,_0x50e361._0x14859f,0x4cd)]===_0x2a0b75(0x3b7,0x3f4,_0x50e361._0x5034f1,0x3e6)){const _0x3ddb02=typeof _0xcd04db['signature']===_0x3b6112(_0x50e361._0x1f2bfd,_0x50e361._0x5b2785,_0x50e361._0x1cdf56,_0x50e361._0x5a80d5)?String(_0xcd04db['signature']):'';if(_0x3ddb02[_0x3b6112(_0x50e361._0x79a901,_0x50e361._0x25f4e1,_0x50e361._0x361552,0x4b1)]>0x0){_0x187ec2[_0x3b6112(0x3b4,_0x50e361._0x26a085,0x347,_0x50e361._0x2bc799)]=_0x3ddb02;if(isUserVisibleThinking(this[_0x2a0b75(0x406,0x3d3,0x3dd,_0x50e361._0x561106)]))return[{'type':'anthropic_signature_delta','index':_0x3330d2,'signature':_0x3ddb02}];}}break;}case'message_delta':{const _0x509b4f=_0xc76e0f[_0x3b6112(_0x50e361._0x3ff552,_0x50e361._0x2bc006,_0x50e361._0x1b8065,_0x50e361._0x1c0f72)],_0x3ebef1=_0xc76e0f[_0x2a0b75(0x49d,_0x50e361._0x2fbb07,0x431,_0x50e361._0xc2a7bb)];this[_0x3b6112(0x4cc,0x411,0x42a,0x4f1)]=_0x3ebef1?.[_0x3b6112(0x4c6,_0x50e361._0x517056,0x4c5,0x57c)]??this[_0x3b6112(0x3de,_0x50e361._0x28b159,0x42a,0x49a)],this[_0x3b6112(0x338,0x483,_0x50e361._0x3a490d,0x39b)]=_0x509b4f?.[_0x3b6112(0x3c8,_0x50e361._0x4ed161,_0x50e361._0x4d0c77,0x4cc)]===_0x3b6112(0x3ba,0x41c,0x3c0,_0x50e361._0x5bf392)?_0x2a0b75(_0x50e361._0x5b01f1,_0x50e361._0x492a1d,_0x50e361._0x2bf15f,_0x50e361._0x2ff2e6):'end_turn';break;}case _0x3b6112(0x360,_0x50e361._0x3f819a,_0x50e361._0x19a602,0x3a8):{const _0x2becef=_0xc76e0f[_0x2a0b75(0x425,0x3e8,0x3a8,_0x50e361._0x2fe12a)];throw new ProviderStreamEventError(_0x2becef?.[_0x3b6112(_0x50e361._0x4f60a0,_0x50e361._0x361552,_0x50e361._0x191c34,_0x50e361._0x2ad700)]??_0x2a0b75(0x376,0x3b8,0x33c,0x2ed),{'code':_0x2becef?.[_0x2a0b75(_0x50e361._0x5b605a,0x4ba,_0x50e361._0x1e7306,_0x50e361._0x17876d)],'retryable':!![]});}}return[];}[_0x4d4006(0x1d5,0x1e4,0x14d,0x1d7)](){const _0x2f9cd2={_0x54c4a7:0x23,_0x408c8f:0x63,_0x196c8e:0x59,_0x40b174:0x8,_0x659915:0x13,_0x54997f:0x13,_0x4635d9:0x3e,_0x2d8562:0x2c,_0x88e7fc:0x4f,_0x27465e:0xf5,_0x5f38b5:0xe4,_0x2d81b8:0xe8,_0x1ac2ca:0x57,_0x105f8c:0x8f,_0x56324b:0x5a,_0x27095b:0x27,_0x32c4e0:0x13e,_0x23d09e:0x35,_0x494c71:0x53,_0x2064ed:0xdb,_0x3f5a71:0x87,_0x51884f:0x176,_0x28708b:0x8e,_0x56c620:0x1aa,_0x5794ea:0xf6,_0x33253a:0x201,_0x5d689d:0x198,_0x1aa469:0x37,_0x5f1f1e:0x64,_0x5cfe61:0x1c8,_0x40cc63:0x1f3,_0x1f1978:0x52,_0x5a9b93:0x44,_0x1d311e:0x67,_0x15d346:0x1c4,_0x53108e:0x272,_0xd49f9d:0xb4,_0x7e3c71:0xc2,_0x53ace7:0x1d4,_0x4e8503:0xfd,_0x40d9b3:0x10e,_0x2e3929:0x90,_0x198b22:0x14,_0x11ef8e:0x14,_0x1efb50:0x170,_0xd4e353:0xaf,_0xf33a76:0x13e},_0x3106e8={_0x8a9e8a:0x146,_0x1bf210:0x1bb};function _0x333512(_0x4f5163,_0x1fd9d1,_0x3adf12,_0x1ba1de){return _0x4d4006(_0x4f5163,_0x1fd9d1-0x154,_0x1fd9d1- -_0x3106e8._0x8a9e8a,_0x1ba1de-_0x3106e8._0x1bf210);}const _0x79abe8=Array['from'](this[_0x333512(0x10,_0x2f9cd2._0x54c4a7,-_0x2f9cd2._0x408c8f,0x6f)][_0x333512(-0xbb,-0x5,_0x2f9cd2._0x196c8e,-0x66)]())[_0x333512(_0x2f9cd2._0x40b174,-_0x2f9cd2._0x659915,0x1a,-_0x2f9cd2._0x54997f)]((_0x3b99bd,_0x1e4c1c)=>_0x3b99bd['index']-_0x1e4c1c[_0x4253b5(-0x171,-0xc7,-0x1d2,-0x177)]);function _0x4253b5(_0x18fd50,_0x2e3e72,_0x246a1a,_0x30d37c){return _0x18006e(_0x18fd50-0xc7,_0x2e3e72-0x26,_0x30d37c- -0x211,_0x2e3e72);}const _0x2f0902=[];for(const _0x53dfea of _0x79abe8){if(_0x53dfea[_0x333512(-_0x2f9cd2._0x4635d9,-_0x2f9cd2._0x2d8562,_0x2f9cd2._0x88e7fc,-_0x2f9cd2._0x27465e)]===_0x4253b5(-0xcd,-_0x2f9cd2._0x5f38b5,-_0x2f9cd2._0x2d81b8,-0x106)){_0x53dfea[_0x333512(-0x66,-0x74,-_0x2f9cd2._0x1ac2ca,-_0x2f9cd2._0x105f8c)][_0x333512(-0x85,-_0x2f9cd2._0x56324b,_0x2f9cd2._0x27095b,0x49)]>0x0&&_0x2f0902[_0x4253b5(-_0x2f9cd2._0x32c4e0,-_0x2f9cd2._0x23d09e,-_0x2f9cd2._0x494c71,-0xc1)]({'type':'text','text':_0x53dfea[_0x4253b5(-0x6c,-_0x2f9cd2._0x2064ed,-0x16a,-0x106)]});continue;}if(_0x53dfea[_0x4253b5(-0x4,-_0x2f9cd2._0x3f5a71,-_0x2f9cd2._0x51884f,-0xbe)]==='thinking'){_0x2f0902[_0x333512(0x5b,-0x2f,0x5f,_0x2f9cd2._0x28708b)]({'type':_0x4253b5(-0xfd,-_0x2f9cd2._0x56c620,-0x145,-0x198),'thinking':_0x53dfea[_0x4253b5(-_0x2f9cd2._0x5794ea,-0x20d,-_0x2f9cd2._0x33253a,-_0x2f9cd2._0x5d689d)],'signature':_0x53dfea['signature']});continue;}if(_0x53dfea[_0x333512(-_0x2f9cd2._0x1aa469,-0x2c,-_0x2f9cd2._0x5f1f1e,-0x15)]===_0x4253b5(-0xfd,-_0x2f9cd2._0x5cfe61,-_0x2f9cd2._0x40cc63,-0x148)){_0x2f0902['push']({'type':'redacted_thinking','data':_0x53dfea['data']});continue;}_0x2f0902[_0x4253b5(-_0x2f9cd2._0x1f1978,-_0x2f9cd2._0x5a9b93,-0x160,-0xc1)]({'type':'tool_use','id':_0x53dfea['id'],'name':_0x53dfea[_0x333512(-0x6d,0x12,_0x2f9cd2._0x1d311e,0x34)],'input':parseToolInput(_0x53dfea[_0x4253b5(-0x1ea,-_0x2f9cd2._0x15d346,-_0x2f9cd2._0x53108e,-0x1cf)]['length']>0x0?_0x53dfea[_0x333512(-0x162,-0x13d,-_0x2f9cd2._0xd49f9d,-_0x2f9cd2._0x7e3c71)]:'{}')});}return parseAnthropicResponse({'id':this[_0x4253b5(-_0x2f9cd2._0x53ace7,-_0x2f9cd2._0x4e8503,-_0x2f9cd2._0x40d9b3,-0x15c)],'type':_0x333512(0x8,-0x2e,_0x2f9cd2._0x2e3929,0x59),'role':_0x4253b5(-_0x2f9cd2._0x198b22,-0xa,_0x2f9cd2._0x11ef8e,-0x9a),'content':_0x2f0902,'stop_reason':this['stopReason'],'stop_sequence':null,'usage':{'input_tokens':this[_0x333512(-_0x2f9cd2._0x1efb50,-0xbb,-0xe1,-_0x2f9cd2._0xd4e353)],'output_tokens':this['outputTokens']}},this[_0x4253b5(-0x87,-_0x2f9cd2._0xf33a76,-0x167,-0x149)]);}};function createAnthropicSurfaces(){const _0x59b1fa={_0x23ff78:0x2a,_0x57330a:0x92};function _0x5dd5ef(_0x57879f,_0x2ecf51,_0x21680a,_0x20dfb7){return _0x18006e(_0x57879f-0x18,_0x2ecf51-0x19,_0x20dfb7- -0x1be,_0x57879f);}return[{'id':ANTHROPIC_MESSAGES_SURFACE,'transport':'http-json','createRequest'(_0x506d3f){return createAnthropicRequest(_0x506d3f,![]);},'parseResponse'(_0x21b7d0,_0x5e6199){return parseAnthropicResponse(_0x21b7d0,_0x5e6199);}},{'id':ANTHROPIC_MESSAGES_STREAM_SURFACE,'transport':_0x5dd5ef(_0x59b1fa._0x23ff78,-0x37,-0x102,-_0x59b1fa._0x57330a),'createRequest'(_0x337f6e){return createAnthropicRequest(_0x337f6e,!![]);},'createStreamParser'(_0x311db8){return new AnthropicMessagesStreamParser(_0x311db8);}}];}var StaticModelSurfaceRouter=class{['completeSurface'];['streamSurface'];constructor(_0x266422){const _0x51a92f={_0x3daf57:0x507,_0x1081a9:0x62c,_0x2abf47:0x6c,_0x3aba10:0xec,_0x255a1a:0x5e},_0x4b77d6={_0x20347d:0x110};this['completeSurface']=_0x266422[_0x4539eb(_0x51a92f._0x3daf57,_0x51a92f._0x1081a9,0x5b5,0x4ed)];function _0x4539eb(_0x210be8,_0x19491b,_0xdebbd4,_0x35d591){return _0x4d4006(_0x35d591,_0x19491b-0x5e,_0xdebbd4-0x4d1,_0x35d591-0x178);}function _0x15de85(_0x325b2c,_0x35cdaf,_0x3196fe,_0x2f37b4){return _0x4d4006(_0x35cdaf,_0x35cdaf-0x9e,_0x3196fe- -_0x4b77d6._0x20347d,_0x2f37b4-0x1b2);}this[_0x15de85(_0x51a92f._0x2abf47,-0x2b,0x43,0x2f)]=_0x266422[_0x15de85(0x5,-_0x51a92f._0x3aba10,-_0x51a92f._0x255a1a,0x22)];}['selectSurface'](_0x52846d,_0x35ca80){const _0x528c6a={_0xe24a9a:0xf8,_0x530a3e:0x176,_0x246ef4:0x1bb,_0x1ab584:0x4b,_0x1e6604:0x67,_0x5af63e:0x52},_0x383cc8={_0x1166d6:0x162,_0x26c033:0x164};function _0x1f3a99(_0x1c2854,_0x4f23c2,_0x5adb6d,_0x2a4ab6){return _0x4d4006(_0x2a4ab6,_0x4f23c2-_0x383cc8._0x1166d6,_0x1c2854- -0xff,_0x2a4ab6-_0x383cc8._0x26c033);}function _0x111294(_0x5f064d,_0x3d78ca,_0x3b5c76,_0x155955){return _0x18006e(_0x5f064d-0x152,_0x3d78ca-0x8f,_0x5f064d-0x2f,_0x3b5c76);}return _0x35ca80[_0x1f3a99(-_0x528c6a._0xe24a9a,-0x17c,-_0x528c6a._0x530a3e,-0xaf)]===_0x111294(0x11a,0x174,0x107,0x18f)?this[_0x111294(_0x528c6a._0x246ef4,0x172,0x183,0x181)]:this[_0x1f3a99(_0x528c6a._0x1ab584,_0x528c6a._0x1e6604,-_0x528c6a._0x5af63e,-0x78)];}};function trimTrailingSlashes(_0x57964a){const _0x303bbc={_0xe6fb4a:0x3f1},_0x23c019={_0x4903dd:0x13d,_0x234858:0x449};function _0xe32ea0(_0x57cc03,_0xcf298c,_0x144035,_0x5bc091){return _0x18006e(_0x57cc03-0x7,_0xcf298c-_0x23c019._0x4903dd,_0x5bc091-_0x23c019._0x234858,_0xcf298c);}return _0x57964a[_0xe32ea0(0x492,_0x303bbc._0xe6fb4a,0x41a,0x4ad)](/\/+$/,'');}function resolveApiCredential(_0x32a749,_0x5bdda6){const _0x6a38bc={_0x55c335:0x24b,_0x5469a6:0x183,_0x160e8a:0x183,_0x4eae32:0x135,_0xbb930a:0xea,_0x232e39:0x29},_0x78e97b={_0xeca59b:0x37,_0x48d1ff:0x1a8},_0x5649f8={_0x2c28a4:0x152};function _0x50be11(_0x29b43a,_0x22a7de,_0x42375b,_0x31d561){return _0x4d4006(_0x42375b,_0x22a7de-_0x5649f8._0x2c28a4,_0x29b43a- -0x58,_0x31d561-0x1bd);}if(_0x5bdda6?.[_0x5b2626(-_0x6a38bc._0x55c335,-_0x6a38bc._0x5469a6,-0x214,-0x19f)])return _0x5bdda6[_0x5b2626(-0xc7,-_0x6a38bc._0x160e8a,-0x223,-_0x6a38bc._0x4eae32)];function _0x5b2626(_0x33bb3d,_0x20c4a9,_0x504c51,_0x19ddda){return _0x18006e(_0x33bb3d-_0x78e97b._0xeca59b,_0x20c4a9-0x1eb,_0x20c4a9- -_0x78e97b._0x48d1ff,_0x19ddda);}if(!_0x32a749)return void 0x0;return{'kind':_0x5b2626(-0x6d,-_0x6a38bc._0xbb930a,-_0x6a38bc._0x232e39,-0x2c),'value':_0x32a749};}function resolveSessionBaseUrl(_0x418a1d,_0x337841){const _0x2ce9fc={_0x2d6acf:0x4},_0x5785b1={_0x45ea07:0x139,_0x256620:0x1d8};function _0x4682f2(_0x706660,_0x440d37,_0x5653e7,_0x37b5e5){return _0x18006e(_0x706660-0x15c,_0x440d37-_0x5785b1._0x45ea07,_0x706660- -_0x5785b1._0x256620,_0x37b5e5);}return trimTrailingSlashes(_0x337841?.[_0x4682f2(-0x4e,-0x59,-_0x2ce9fc._0x2d6acf,0x46)]?.['api']??_0x418a1d);}function _0x18006e(_0x16a8b1,_0x310cab,_0x556e9f,_0x23ebb1){const _0x908d41={_0x4231ba:0xff};return _0x2cfd(_0x556e9f- -_0x908d41._0x4231ba,_0x23ebb1);}function toErrorMessage(_0x9f5ace){const _0x433467={_0xbe1b3b:0x440,_0x1e54ca:0x1d5,_0x5313f1:0x1e5},_0x44385a={_0x2d2672:0x1ca,_0x49f720:0x31b},_0x258dad={_0x4ccb7f:0x7f,_0x1e622f:0x1b6};function _0xb85057(_0x145a6a,_0x57e477,_0x256552,_0x5614b1){return _0x4d4006(_0x57e477,_0x57e477-_0x258dad._0x4ccb7f,_0x145a6a- -_0x258dad._0x1e622f,_0x5614b1-0x13b);}if(_0x9f5ace instanceof Error&&_0x9f5ace['message'][_0x1b08e3(0x3cb,_0x433467._0xbe1b3b,0x439,0x4fd)]>0x0)return _0x9f5ace['message'];function _0x1b08e3(_0x179a60,_0x5b11e6,_0x4096de,_0x2b3b3f){return _0x18006e(_0x179a60-0xb3,_0x5b11e6-_0x44385a._0x2d2672,_0x5b11e6-_0x44385a._0x49f720,_0x2b3b3f);}return _0xb85057(-_0x433467._0x1e54ca,-_0x433467._0x5313f1,-0x1b8,-0x1bc);}function createDefaultWebSocketFactory(){return({headers:_0x541af3,url:_0x137e1e})=>{const _0x44ad25=globalThis['WebSocket'];return new _0x44ad25(_0x137e1e,{'headers':_0x541af3,'protocols':[]});};}async function*iterateSseEvents(_0x211659,_0x57365e){const _0x514968={_0x19f178:0x4c8,_0x5bfa7a:0x4c6,_0x4ec3e8:0x3d3,_0x3441ab:0x3ba,_0x51899f:0xfa,_0x562802:0x40d,_0x1a2f86:0x46a,_0x3aa073:0x376,_0x434b15:0x1de,_0x303350:0x187,_0x1fae88:0x250,_0x40ab62:0x1fe,_0x2ace63:0x1d5,_0x195532:0x14c,_0x5697db:0x407,_0x13bca7:0x404},_0x4fe133={_0x388c55:0x39c,_0x4a8cea:0x323},_0x487975={_0x3d4637:0x54,_0xda2095:0x359},_0x2464fc=_0x211659[_0x459798(_0x514968._0x19f178,0x577,_0x514968._0x5bfa7a,0x419)]?.[_0x459798(0x447,_0x514968._0x4ec3e8,_0x514968._0x3441ab,0x46d)]();function _0x459798(_0x16dc47,_0x31146b,_0xa63fbe,_0x50ba4f){return _0x4d4006(_0x31146b,_0x31146b-_0x487975._0x3d4637,_0x16dc47-_0x487975._0xda2095,_0x50ba4f-0x16b);}if(!_0x2464fc)return;const _0x4306e7=new TextDecoder(_0x51138c(0xce,0x137,_0x514968._0x51899f,0x176));let _0x4c388e='';const _0x51d7e1=addAbortListener(_0x57365e,()=>{const _0x3eef15={_0x2c599a:0x64,_0x448f82:0x196};function _0x2eb11b(_0x568eca,_0x27c37f,_0x3185d7,_0x2918a8){return _0x459798(_0x2918a8- -_0x3eef15._0x2c599a,_0x568eca,_0x3185d7-0xaa,_0x2918a8-_0x3eef15._0x448f82);}void _0x2464fc[_0x2eb11b(0x438,_0x4fe133._0x388c55,_0x4fe133._0x4a8cea,0x3d2)](toAbortError(_0x57365e?.['reason']))['catch'](()=>{});});function _0x51138c(_0x24cb38,_0xb20e94,_0x5efc03,_0x415e86){return _0x4d4006(_0x24cb38,_0xb20e94-0x1a1,_0xb20e94-0xd9,_0x415e86-0xa);}try{while(!![]){throwIfAborted(_0x57365e);const {value:_0x18b1ca,done:_0x413fba}=await _0x2464fc['read']();throwIfAborted(_0x57365e);if(_0x413fba)break;_0x4c388e+=_0x4306e7[_0x459798(_0x514968._0x562802,_0x514968._0x1a2f86,_0x514968._0x3aa073,0x4cb)](_0x18b1ca,{'stream':!![]});while(!![]){const _0x3eb147=_0x4c388e[_0x51138c(0x1fd,_0x514968._0x434b15,_0x514968._0x303350,_0x514968._0x1fae88)]('\x0a\x0a');if(_0x3eb147===-0x1)break;const _0x45e6bd=_0x4c388e[_0x459798(0x455,0x3bc,0x3d0,0x4a3)](0x0,_0x3eb147);_0x4c388e=_0x4c388e[_0x51138c(_0x514968._0x40ab62,_0x514968._0x2ace63,_0x514968._0x195532,0x11f)](_0x3eb147+0x2),_0x45e6bd['trim']()[_0x459798(0x445,_0x514968._0x5697db,0x445,_0x514968._0x13bca7)]>0x0&&(yield _0x45e6bd);}}_0x4c388e+=_0x4306e7['decode'](),throwIfAborted(_0x57365e),_0x4c388e['trim']()['length']>0x0&&(yield _0x4c388e);}finally{_0x51d7e1();}}async function waitForWebSocketOpen(_0x3c6061,_0x32ec64){const _0x329b9c={_0x14cf3a:0x491,_0x1566dc:0x4d0,_0x2bcc29:0x551,_0x7780e5:0x138,_0xf01358:0x106},_0x5b54df={_0x42c256:0xed,_0x11e238:0x107,_0x202a8b:0x3df,_0xd4c858:0x345,_0x4c2231:0x2d4,_0x49618a:0x292,_0x1550e1:0x2be,_0x1574ba:0x34a,_0x180781:0x138,_0x3dac34:0xe9,_0x5c0104:0x125},_0x58876b={_0x354d47:0x1ac,_0xc8186d:0x16a,_0x27b572:0x1c5,_0x2b732b:0x21d,_0x1d04c9:0x145,_0x3508ee:0x15a,_0x1880f2:0x284},_0x19c391={_0x2bfe2c:0x9,_0x5bae12:0x32},_0x115df0={_0x6fda6d:0xda},_0x56e394={_0x17e926:0x142};if(_0x3c6061[_0x5f4775(0x525,_0x329b9c._0x14cf3a,_0x329b9c._0x1566dc,_0x329b9c._0x2bcc29)]===WebSocket[_0x14a86d(_0x329b9c._0x7780e5,0x16c,0x118,_0x329b9c._0xf01358)]){throwIfAborted(_0x32ec64);return;}throwIfAborted(_0x32ec64);function _0x14a86d(_0x533e83,_0x1101d9,_0x9c1049,_0x41eb78){return _0x18006e(_0x533e83-_0x56e394._0x17e926,_0x1101d9-0x122,_0x41eb78-0xb2,_0x1101d9);}function _0x5f4775(_0x1ef401,_0x297f59,_0x2f6096,_0x3f7615){return _0x4d4006(_0x3f7615,_0x297f59-0x126,_0x2f6096-0x3db,_0x3f7615-_0x115df0._0x6fda6d);}await new Promise((_0x2ec6a2,_0x5326fb)=>{const _0x4332af={_0x48e4f3:0x21},_0x1c286a={_0x1e5850:0xfc,_0x5c8d8e:0x7},_0x31123e={_0x1abd50:0x181,_0x37603b:0x1b0,_0x2a1d3c:0x15d},_0x5320b1={_0x319e72:0xe},_0x4b39b2={_0x105775:0x1a2},_0x21e30a=()=>{_0x8b6aa2(),_0x2ec6a2();},_0x181e05=_0x2a4911=>{const _0x111caa={_0x439394:0x282};function _0x58c5c6(_0x5c170e,_0x1c1278,_0x38daf0,_0x4da46d){return _0x2cfd(_0x38daf0- -_0x111caa._0x439394,_0x4da46d);}_0x8b6aa2(),_0x5326fb(new Error(_0x2a4911[_0x58c5c6(-_0x19c391._0x2bfe2c,0x89,-_0x19c391._0x5bae12,-0x2d)]||'WebSocket\x20request\x20failed'));};function _0x33f770(_0x2b815c,_0x4cfc32,_0x724184,_0x3f942f){return _0x5f4775(_0x2b815c-0x7e,_0x4cfc32-_0x4b39b2._0x105775,_0x4cfc32- -0x2e4,_0x2b815c);}const _0x28e780=_0x37cc1c=>{_0x8b6aa2();function _0x253386(_0x3f58b7,_0x2eb2c5,_0x364990,_0x4094d0){return _0x2cfd(_0x3f58b7- -0x395,_0x364990);}const _0x285d85=_0x37cc1c;function _0x11d9e9(_0x3513de,_0x3f06ac,_0x3632e3,_0x60a0e1){return _0x2cfd(_0x3513de-_0x5320b1._0x319e72,_0x3f06ac);}_0x5326fb(new Error(_0x285d85[_0x253386(-_0x31123e._0x1abd50,-0x1b6,-0x1de,-0x1dd)]||_0x253386(-0x1f0,-_0x31123e._0x37603b,-0x1f5,-_0x31123e._0x2a1d3c)));},_0x25cb07=()=>{const _0x39eab0={_0x24b212:0x10a};function _0x845292(_0x1f0316,_0x232c80,_0x4ed777,_0x49e107){return _0x2cfd(_0x4ed777- -_0x39eab0._0x24b212,_0x49e107);}_0x8b6aa2();_0x3c6061['readyState']===WebSocket['OPEN']&&_0x3c6061['close'](0x3e8,_0x845292(_0x1c286a._0x1e5850,-_0x1c286a._0x5c8d8e,0x8d,0x137));function _0x348cb2(_0x58f187,_0x19136e,_0x253906,_0x2010d0){return _0x2cfd(_0x58f187-0x2df,_0x2010d0);}_0x5326fb(toAbortError(_0x32ec64?.[_0x348cb2(0x4f3,0x5aa,0x505,0x5a8)]));},_0x8b6aa2=()=>{_0x3c6061['removeEventListener']('open',_0x21e30a);function _0xc6e2c8(_0x472ba8,_0xe28aa0,_0x14b739,_0x237564){return _0x2cfd(_0xe28aa0- -_0x4332af._0x48e4f3,_0x14b739);}_0x3c6061[_0xc6e2c8(_0x58876b._0x354d47,0x1c3,0x269,_0x58876b._0xc8186d)](_0xc6e2c8(0x169,_0x58876b._0x27b572,_0x58876b._0x2b732b,0x267),_0x181e05),_0x3c6061['removeEventListener'](_0xc6e2c8(0x147,0x153,_0x58876b._0x1d04c9,_0x58876b._0x3508ee),_0x28e780);function _0xee4b4a(_0x106c62,_0x46cc2b,_0x408ccf,_0x3bd8af){return _0x2cfd(_0x106c62- -0x256,_0x408ccf);}_0x32ec64?.['removeEventListener'](_0xc6e2c8(0x258,_0x58876b._0x1880f2,0x2c1,0x1d6),_0x25cb07);};_0x3c6061[_0x33f770(0x78,_0x5b54df._0x42c256,_0x5b54df._0x11e238,0x9c)](_0x1be84d(_0x5b54df._0x202a8b,0x35b,_0x5b54df._0xd4c858,0x33a),_0x21e30a),_0x3c6061[_0x1be84d(0x356,0x26f,_0x5b54df._0x4c2231,_0x5b54df._0x49618a)](_0x1be84d(0x2eb,_0x5b54df._0x1550e1,0x2b2,_0x5b54df._0x1574ba),_0x181e05),_0x3c6061[_0x33f770(_0x5b54df._0x180781,0xed,_0x5b54df._0x3dac34,0x109)]('close',_0x28e780);function _0x1be84d(_0x3edcab,_0x40fc09,_0x24a768,_0x5d3353){return _0x5f4775(_0x3edcab-0x1ae,_0x40fc09-0x103,_0x5d3353- -0x13f,_0x24a768);}_0x32ec64?.[_0x33f770(0x60,0xed,_0x5b54df._0x5c0104,0x49)]('abort',_0x25cb07,{'once':!![]});});}function iterateWebSocketMessages(_0x5904d4,_0x33f31e){const _0x461594={_0xe2f019:0x126,_0x51d13d:0x2e0,_0x2b7bcc:0x215,_0x4ee729:0x1d1,_0x1f0a62:0x1da},_0x5408f4={_0x15c46d:0x330,_0x2bbd39:0x3a7,_0x432457:0x3bf,_0x2b590f:0x3ad,_0x356590:0x439,_0x3cebb5:0x3a8,_0x9c4075:0x3ac,_0x25880e:0x11a,_0x707da0:0x188,_0x4db6eb:0x1c8,_0x5b0943:0x1e5,_0x10c3b5:0x3fe,_0x271ebc:0x364,_0x37c5fe:0x2f7},_0x4e0a6e={_0x107e78:0x5e,_0x2a0279:0x19e},_0x4330e3={_0xa74951:0x67},_0x572e36={_0x3044a8:0x107,_0x3f7ac3:0x97,_0x1b277d:0x49,_0x3c7cba:0x1d9,_0x39285b:0x2a7,_0x35b2b5:0x24c,_0x2f5626:0x276,_0x2b4858:0x26f},_0x155442={_0x462b18:0xb0,_0x1dffa7:0x15c},_0x33e16d={_0x51d1d1:0x227,_0x43e6e1:0x208,_0x26bdff:0x1aa,_0x29288f:0xb,_0x2c740f:0xd3,_0x3de1b2:0x91,_0x4720ec:0x107,_0x109983:0x14c,_0x279f6e:0x19e,_0x1b11da:0x229,_0x13a0e6:0x196,_0x12700d:0x22c,_0x5769f2:0x102},_0x377fdd={_0x58e23c:0x2e7},_0x39a1b5={_0x437676:0x507,_0x9312b:0x5a0,_0x3bb401:0x4dd,_0x5d26ac:0x63c,_0x242c19:0x541,_0x5c79d3:0x605},_0x57c8b8={_0x23e0d1:0x2ce},_0x54069e=[];let _0x139a25=![],_0x421874,_0x3b1c5b;const _0x345479=_0x293d19=>{function _0xa4759e(_0x46d1b8,_0x4f0bb0,_0x3cf9c7,_0x3a72fc){return _0x2cfd(_0x3a72fc-_0x57c8b8._0x23e0d1,_0x3cf9c7);}function _0x1fe0fe(_0x1fef22,_0x14ad41,_0x52ba7a,_0x963e52){return _0x2cfd(_0x14ad41-0x3a1,_0x963e52);}const _0x39487e=_0x293d19;try{_0x54069e[_0xa4759e(0x5b5,_0x39a1b5._0x437676,_0x39a1b5._0x9312b,0x51d)](JSON['parse'](String(_0x39487e[_0x1fe0fe(_0x39a1b5._0x3bb401,0x592,_0x39a1b5._0x5d26ac,0x585)]))),_0x3b1c5b?.(),_0x3b1c5b=void 0x0;}catch(_0x26b656){_0x421874=new Error(_0x1fe0fe(0x4a1,_0x39a1b5._0x242c19,_0x39a1b5._0x5c79d3,0x5e8)+toErrorMessage(_0x26b656)),_0x3b1c5b?.(),_0x3b1c5b=void 0x0;}},_0xb5eb97=_0x4f41bb=>{const _0x58a9ba=_0x4f41bb;_0x421874=new Error(_0x58a9ba['message']||_0x56d9d5(0x169,0x219,0x193,0x182)),_0x3b1c5b?.();function _0x56d9d5(_0x1616c8,_0x16d92d,_0x1255b2,_0x218de0){return _0x2cfd(_0x1616c8-0x50,_0x1255b2);}_0x3b1c5b=void 0x0;},_0x2cf222=_0x5a4820=>{const _0x462860={_0x3a4bb6:0x59};function _0x3f328b(_0x34c757,_0x4613ca,_0x35e1bc,_0x3503dc){return _0x2cfd(_0x35e1bc- -_0x377fdd._0x58e23c,_0x34c757);}const _0x2973f6=_0x5a4820;!_0x139a25&&_0x2973f6[_0x3f328b(-_0x33e16d._0x51d1d1,-_0x33e16d._0x43e6e1,-_0x33e16d._0x26bdff,-0x21b)]!==0x3e8&&!_0x421874&&(_0x421874=new Error(_0x2973f6[_0x3f328b(-_0x33e16d._0x29288f,-0x87,-_0x33e16d._0x2c740f,-_0x33e16d._0x3de1b2)]||_0x3f328b(-_0x33e16d._0x4720ec,-_0x33e16d._0x109983,-0x132,-_0x33e16d._0x279f6e)+_0x2973f6[_0x3f2ddd(_0x33e16d._0x1b11da,_0x33e16d._0x13a0e6,_0x33e16d._0x12700d,_0x33e16d._0x5769f2)]));function _0x3f2ddd(_0x20f37a,_0x45382c,_0x2983e7,_0x76f0f4){return _0x2cfd(_0x45382c-_0x462860._0x3a4bb6,_0x2983e7);}_0x139a25=!![],_0x3b1c5b?.(),_0x3b1c5b=void 0x0;};function _0x120e32(_0x317cef,_0x5d4a1,_0x135e1e,_0x5086ff){return _0x18006e(_0x317cef-_0x155442._0x462b18,_0x5d4a1-0x16,_0x5d4a1-_0x155442._0x1dffa7,_0x135e1e);}const _0x1548cd=addAbortListener(_0x33f31e,()=>{const _0x33009b={_0x998ac4:0xd8};_0x421874=toAbortError(_0x33f31e?.[_0x223491(_0x572e36._0x3044a8,_0x572e36._0x3f7ac3,_0x572e36._0x1b277d,-0x78)]);function _0x30edb1(_0x8bd21e,_0x2e0e02,_0x3293c9,_0x4640e8){return _0x2cfd(_0x4640e8-_0x33009b._0x998ac4,_0x3293c9);}_0x5904d4['readyState']===WebSocket['OPEN']&&_0x5904d4[_0x30edb1(_0x572e36._0x3c7cba,0x1be,_0x572e36._0x39285b,_0x572e36._0x35b2b5)](0x3e8,_0x30edb1(0x1ec,0x2c0,_0x572e36._0x2f5626,_0x572e36._0x2b4858));_0x3b1c5b?.();function _0x223491(_0x54ccc6,_0x395bcf,_0x4819a2,_0x431280){return _0x2cfd(_0x4819a2- -0x1cb,_0x54ccc6);}_0x3b1c5b=void 0x0;});_0x5904d4['addEventListener'](_0x4144d8(0x567,0x4de,0x61f,0x4a3),_0x345479),_0x5904d4[_0x120e32(_0x461594._0xe2f019,0x18b,0x206,0x1e7)](_0x120e32(0x2d7,0x243,0x2ff,_0x461594._0x51d13d),_0xb5eb97);function _0x4144d8(_0x13ac8b,_0x14e2be,_0x1a0470,_0x3725c1){return _0x18006e(_0x13ac8b-_0x4330e3._0xa74951,_0x14e2be-0x1ec,_0x13ac8b-0x416,_0x1a0470);}return _0x5904d4[_0x4144d8(0x445,0x4da,0x400,0x3ca)](_0x120e32(_0x461594._0x2b7bcc,_0x461594._0x4ee729,0x296,_0x461594._0x1f0a62),_0x2cf222),{async*[Symbol['asyncIterator']](){function _0x5718d0(_0x58c185,_0x3b30f7,_0x1f1a67,_0x2caeb0){return _0x4144d8(_0x3b30f7- -0x683,_0x3b30f7-0x29,_0x1f1a67,_0x2caeb0-0x1b8);}function _0x4f6ffd(_0x156dce,_0x3449ce,_0x1992ef,_0x1a3764){return _0x120e32(_0x156dce-_0x4e0a6e._0x107e78,_0x1a3764-0x126,_0x1992ef,_0x1a3764-_0x4e0a6e._0x2a0279);}try{while(!![]){if(_0x421874)throw _0x421874;if(_0x54069e[_0x4f6ffd(0x37e,_0x5408f4._0x15c46d,0x444,_0x5408f4._0x2bbd39)]>0x0){yield _0x54069e[_0x5718d0(-0x26e,-0x1ad,-0x13d,-0x120)]();continue;}if(_0x139a25)break;await new Promise(_0x194b3d=>{_0x3b1c5b=_0x194b3d;});}}finally{_0x5904d4[_0x4f6ffd(_0x5408f4._0x432457,_0x5408f4._0x2b590f,0x2ee,0x367)](_0x4f6ffd(_0x5408f4._0x356590,_0x5408f4._0x3cebb5,_0x5408f4._0x9c4075,0x3d3),_0x345479),_0x5904d4[_0x5718d0(-_0x5408f4._0x25880e,-_0x5408f4._0x707da0,-_0x5408f4._0x4db6eb,-_0x5408f4._0x5b0943)](_0x4f6ffd(0x424,_0x5408f4._0x10c3b5,0x40c,0x369),_0xb5eb97),_0x5904d4['removeEventListener'](_0x4f6ffd(0x34c,0x233,_0x5408f4._0x271ebc,_0x5408f4._0x37c5fe),_0x2cf222),_0x1548cd();}}};}function toWebSocketUrl(_0x355390,_0x3fcd32){const _0x769d33={_0x444dee:0x4c2,_0x343037:0x12b,_0x5b59fa:0x181,_0x914188:0x49b,_0x2d2e3f:0x258},_0x2cc40c={_0x341bdb:0x1b9,_0x25550b:0x3b2},_0x4b0665={_0x28b3d6:0x12d},_0x95b6b0=new URL(_0x3fcd32,_0x355390);function _0x28891e(_0x495597,_0x2a9555,_0x25f3b9,_0x89fe35){return _0x4d4006(_0x495597,_0x2a9555-0x182,_0x89fe35- -0x271,_0x89fe35-_0x4b0665._0x28b3d6);}_0x95b6b0[_0x203523(0x3ec,0x4b0,0x505,_0x769d33._0x444dee)]=_0x95b6b0['protocol']==='https:'?_0x28891e(-_0x769d33._0x343037,-_0x769d33._0x5b59fa,-0x16d,-0x1ce):_0x203523(0x556,_0x769d33._0x914188,0x44e,0x4d7);function _0x203523(_0x4a086d,_0x2837e8,_0x38e637,_0x2e4c08){return _0x18006e(_0x4a086d-_0x2cc40c._0x341bdb,_0x2837e8-0x4f,_0x2837e8-_0x2cc40c._0x25550b,_0x2e4c08);}return _0x95b6b0[_0x28891e(-0x18e,-_0x769d33._0x2d2e3f,-0x171,-0x225)]();}var ProviderSessionManager=class{[_0x4d4006(0x63,-0x26,0x9a,0xf0)];[_0x18006e(0x168,0x20b,0x195,0x16c)];constructor(_0x44e13a){const _0xaa8a79={_0x743969:0x1e1,_0x36194f:0x11c,_0x3010cb:0x1ca},_0x23b057={_0x54506a:0x14d,_0x345e4b:0x80};function _0x44b40e(_0x582c3c,_0x1c8d02,_0x2bc514,_0x572182){return _0x18006e(_0x582c3c-_0x23b057._0x54506a,_0x1c8d02-_0x23b057._0x345e4b,_0x582c3c-0x10e,_0x2bc514);}this[_0x44b40e(_0xaa8a79._0x743969,0x230,_0xaa8a79._0x36194f,_0xaa8a79._0x3010cb)]=_0x44e13a;}async[_0x4d4006(0x19,0xbf,0x91,0x7d)](_0x46e0bb){const _0xddc925={_0x28879b:0x62,_0x5cc8b2:0xea,_0x40919c:0x52,_0x7ee72a:0x5e,_0x915481:0x6d,_0xbb712:0x27,_0x4218d0:0xcc,_0x3d3ac8:0x1d0,_0x153601:0x10f,_0x9af6af:0x1b8,_0x2be3cf:0x91},_0x5e94ab={_0x5d8dcb:0x188,_0x55fc48:0x1a9,_0x25dc7f:0xda},_0x5f458c={_0x11b1d0:0x1c1,_0x42b8b4:0x128,_0x181bae:0x1f7};function _0x397a76(_0x4e831b,_0x355f80,_0x5e83f6,_0x283139){return _0x18006e(_0x4e831b-_0x5f458c._0x11b1d0,_0x355f80-_0x5f458c._0x42b8b4,_0x4e831b- -_0x5f458c._0x181bae,_0x283139);}!this[_0x397a76(-_0xddc925._0x28879b,-_0xddc925._0x5cc8b2,-_0xddc925._0x40919c,_0xddc925._0x7ee72a)]&&(this[_0x397a76(-0x62,-_0xddc925._0x915481,_0xddc925._0xbb712,-0xf6)]=this[_0x5b1eb4(-0xb1,-_0xddc925._0x4218d0,-_0xddc925._0x3d3ac8,-_0xddc925._0x153601)][_0x5b1eb4(-0x17e,-0x6c,-_0xddc925._0x9af6af,-0x118)](_0x46e0bb));function _0x5b1eb4(_0x33f843,_0x117317,_0x36e96c,_0x51b676){return _0x4d4006(_0x33f843,_0x117317-_0x5e94ab._0x5d8dcb,_0x51b676- -_0x5e94ab._0x55fc48,_0x51b676-_0x5e94ab._0x25dc7f);}return structuredClone(await this[_0x397a76(-0x62,-0x6f,-_0xddc925._0x2be3cf,0x27)]);}[_0x18006e(0xc9,0x6a,0x70,0x6c)](){const _0x301275={_0xb78f87:0x17a,_0x1940cd:0x1ab},_0x283d4e={_0x12905b:0x2b,_0x439afd:0x1a3};function _0x552748(_0x2baf78,_0x29969b,_0x2a98fe,_0x543024){return _0x18006e(_0x2baf78-_0x283d4e._0x12905b,_0x29969b-_0x283d4e._0x439afd,_0x29969b- -0x2d9,_0x543024);}this[_0x552748(-_0x301275._0xb78f87,-0x144,-0x1ba,-_0x301275._0x1940cd)]=void 0x0;}};async function prepareProviderRequest(_0x10f97c,_0x325d36={}){const _0x54f194={_0x31e1b8:0x408,_0x516052:0x4eb,_0x7b7e17:0x4a7,_0x28c0ca:0xbc},_0x39eb5e={_0x36a619:0x416,_0x53da3e:0x1ea},_0x133b5e={_0x587d36:0xa9};function _0x2b724e(_0x3ba694,_0x53d859,_0xc1e29,_0x1a7378){return _0x4d4006(_0x53d859,_0x53d859-0x195,_0xc1e29- -_0x133b5e._0x587d36,_0x1a7378-0x115);}let _0x3fab79={'request':structuredClone(_0x10f97c),'session':_0x325d36[_0x552754(0x393,_0x54f194._0x31e1b8,0x464,0x39a)]?await _0x325d36['sessionManager'][_0x552754(_0x54f194._0x516052,_0x54f194._0x7b7e17,0x539,0x4aa)](_0x325d36['signal']):void 0x0};function _0x552754(_0xdc7046,_0x20bd41,_0x1ae965,_0x3f4285){return _0x4d4006(_0x3f4285,_0x20bd41-0x1ae,_0x20bd41-_0x39eb5e._0x36a619,_0x3f4285-_0x39eb5e._0x53da3e);}for(const _0x51f031 of _0x325d36[_0x2b724e(0x3f,0xe0,0x7f,_0x54f194._0x28c0ca)]??[]){_0x3fab79=await _0x51f031(_0x3fab79);}return _0x3fab79;}var MAX_PROVIDER_REQUEST_ATTEMPTS=0xa,RETRYABLE_HTTP_STATUSES=new Set([0x198,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8]),DEFAULT_RETRY_DELAY_MS=0x1f4,RETRY_DELAY_STEP_CAP_MS=0x3a98,RoutedModel=class{['model'];[_0x18006e(0x18a,0x1a9,0x19d,0x170)];[_0x18006e(0x70,0xdb,0x10f,0x64)];[_0x18006e(0xed,0x175,0x14a,0xc0)];[_0x4d4006(0x1a6,0x18a,0x10d,0xef)];[_0x18006e(0xdf,0x97,0xc5,0xb0)];[_0x4d4006(-0x40,-0x6e,-0xd,0x40)];[_0x18006e(0x222,0x226,0x161,0x16b)];[_0x18006e(0x18,0x46,0x87,0xee)];['sessionManager'];[_0x4d4006(0x89,0x1aa,0xf9,0x95)];['surfaces']=new Map();constructor(_0x2392e3){const _0x5e4ee5={_0x32d5bf:0x19,_0x1d0c26:0x53,_0x29053b:0x16b,_0x21900f:0xbe,_0x1b9fa0:0x42,_0x29f0df:0x147,_0x4577c9:0xe5,_0x2dc76c:0xf7,_0x23f900:0x7a,_0x99d370:0x14d,_0x34a70a:0x3e,_0x17151a:0xe1,_0x32cca8:0x5c,_0x4d7d77:0x134,_0x32d1c7:0xaa,_0x5570d4:0x12d,_0x3b3590:0x62,_0x1881b9:0xe4,_0xca5128:0x18c,_0x436cf1:0x89,_0x5b3e34:0x12f,_0x59ec0f:0xe8,_0xd9035d:0x12e,_0x5aca77:0xf8,_0x321f2f:0xe8,_0xcce3d:0x86,_0x4b6b82:0x1ac,_0x2d84bc:0x9f,_0x2fcba9:0x14,_0x36b2de:0x7c,_0x5bc9da:0x3,_0x4b193d:0x32,_0x5e8211:0x1d,_0xf63def:0x16c,_0x5dc09a:0x15f,_0x819e9d:0x16b,_0x34d0d7:0x1c9,_0x2e8267:0x91,_0x13dd3a:0x107,_0x33e8db:0xba,_0x2c2a2a:0x195,_0x4b41f1:0x140,_0x4b8f2a:0xbf,_0x49a710:0x14b,_0x5d79f5:0x18b,_0x45746c:0xc2,_0x5a8fd4:0x11a,_0x2576bc:0x71,_0x2e0adc:0xcd,_0x5f08b8:0x96,_0x249041:0x15d,_0xa8c201:0x10e,_0x3f8ffc:0x17e,_0x555198:0x1f5,_0x1f6bc0:0x1d6,_0x59343e:0x1e2},_0x2e2fca={_0x5be018:0x1a6,_0x3900f8:0x18},_0x534b7d={_0x2acb46:0x1e,_0x35d6c0:0x4c,_0x1db9fd:0x1f4};this['model']=_0x2392e3[_0xfcea84(0x30,_0x5e4ee5._0x32d5bf,0x7e,_0x5e4ee5._0x1d0c26)],this[_0xfcea84(0x185,0xd8,0x22b,0xc0)]=_0x2392e3[_0xfcea84(0x185,0x166,_0x5e4ee5._0x29053b,_0x5e4ee5._0x21900f)]??0x4000,this[_0x5d1f14(-_0x5e4ee5._0x1b9fa0,-0x13d,-_0x5e4ee5._0x29f0df,-_0x5e4ee5._0x4577c9)]=_0x2392e3[_0xfcea84(_0x5e4ee5._0x2dc76c,_0x5e4ee5._0x23f900,0x48,_0x5e4ee5._0x99d370)]?structuredClone(_0x2392e3[_0x5d1f14(-0x159,-_0x5e4ee5._0x34a70a,-_0x5e4ee5._0x17151a,-0xe5)]):void 0x0,this[_0x5d1f14(-_0x5e4ee5._0x32cca8,-_0x5e4ee5._0x4d7d77,-0xfc,-_0x5e4ee5._0x32d1c7)]=_0x2392e3['apiKey'],this[_0x5d1f14(-_0x5e4ee5._0x5570d4,-_0x5e4ee5._0x3b3590,-0x163,-0xae)]=_0x2392e3[_0xfcea84(0x12e,0x1dc,_0x5e4ee5._0x1881b9,0xd9)],this[_0x5d1f14(-_0x5e4ee5._0xca5128,-_0x5e4ee5._0x436cf1,-_0x5e4ee5._0x5b3e34,-_0x5e4ee5._0x5b3e34)]=_0x2392e3[_0xfcea84(_0x5e4ee5._0x59ec0f,_0x5e4ee5._0xd9035d,0x17e,_0x5e4ee5._0x5aca77)]??globalThis[_0xfcea84(_0x5e4ee5._0x321f2f,_0x5e4ee5._0xcce3d,_0x5e4ee5._0x4b6b82,_0x5e4ee5._0x2d84bc)],this[_0xfcea84(_0x5e4ee5._0x2fcba9,0x2d,-_0x5e4ee5._0x36b2de,-0x4b)]=_0x2392e3[_0xfcea84(_0x5e4ee5._0x2fcba9,0x8,-0x71,-0x24)],this[_0x5d1f14(-0x154,-0x13e,-_0x5e4ee5._0x5bc9da,-0x93)]=_0x2392e3[_0x5d1f14(-0x96,-0x10f,-0x150,-0x93)]??[],this[_0xfcea84(0x6f,-_0x5e4ee5._0x4b193d,_0x5e4ee5._0x5e8211,0x46)]=_0x2392e3['router'];function _0x5d1f14(_0x38461a,_0xdaa6d,_0x54992f,_0x191085){return _0x18006e(_0x38461a-_0x534b7d._0x2acb46,_0xdaa6d-_0x534b7d._0x35d6c0,_0x191085- -_0x534b7d._0x1db9fd,_0x38461a);}this[_0x5d1f14(-_0x5e4ee5._0xf63def,-_0x5e4ee5._0x5dc09a,-_0x5e4ee5._0x819e9d,-_0x5e4ee5._0x34d0d7)]=_0x2392e3[_0xfcea84(0x13,-0x1b,-0xab,_0x5e4ee5._0x2e8267)]??(_0x2392e3[_0xfcea84(_0x5e4ee5._0x13dd3a,_0x5e4ee5._0x33e8db,_0x5e4ee5._0x2c2a2a,_0x5e4ee5._0x4b41f1)]?new ProviderSessionManager(_0x2392e3[_0xfcea84(_0x5e4ee5._0x13dd3a,0x98,_0x5e4ee5._0x4b8f2a,0x16d)]):void 0x0);function _0xfcea84(_0x558ed2,_0x78bf84,_0x26554d,_0x576b8d){return _0x18006e(_0x558ed2-0x133,_0x78bf84-_0x2e2fca._0x5be018,_0x558ed2- -_0x2e2fca._0x3900f8,_0x26554d);}this[_0x5d1f14(-_0x5e4ee5._0x49a710,-_0x5e4ee5._0x5d79f5,-0x17e,-_0x5e4ee5._0x45746c)]=_0x2392e3[_0xfcea84(_0x5e4ee5._0x5a8fd4,_0x5e4ee5._0x2576bc,_0x5e4ee5._0x2e0adc,0xf6)]??createDefaultWebSocketFactory();for(const _0x3d030a of _0x2392e3[_0x5d1f14(-0x4a,-0x145,0x24,-_0x5e4ee5._0x5f08b8)]){this[_0x5d1f14(-_0x5e4ee5._0x249041,-0x57,-_0x5e4ee5._0xa8c201,-_0x5e4ee5._0x5f08b8)][_0xfcea84(_0x5e4ee5._0x3f8ffc,_0x5e4ee5._0x555198,_0x5e4ee5._0x1f6bc0,_0x5e4ee5._0x59343e)](_0x3d030a['id'],_0x3d030a);}}['complete'](_0x4df51a,_0x3d7134){const _0x4dfa10={_0x24bca1:0x2f2,_0xb8605b:0x301},_0xd039e4={_0x3f8dc0:0x11d,_0x2b72de:0x103};function _0x5a16dd(_0x122bd7,_0x34a8f3,_0x12a9bf,_0x3a7d6e){return _0x18006e(_0x122bd7-_0xd039e4._0x3f8dc0,_0x34a8f3-0x173,_0x3a7d6e-_0xd039e4._0x2b72de,_0x122bd7);}return this[_0x5a16dd(_0x4dfa10._0x24bca1,0x24b,_0x4dfa10._0xb8605b,0x290)](_0x4df51a,_0x3d7134);}[_0x18006e(0x164,0x56,0xeb,0x24)](_0x38adea,_0x4e2924){const _0x5b3f1a={_0x5af46c:0xcb,_0x3310b4:0x126},_0x182ab1={_0x2d0341:0xa2};function _0x2c238c(_0x457042,_0x5b0af6,_0x3436a2,_0xf95b9a){return _0x4d4006(_0x5b0af6,_0x5b0af6-0x161,_0x457042-_0x182ab1._0x2d0341,_0xf95b9a-0x1d2);}return this[_0x2c238c(0xeb,0x115,_0x5b3f1a._0x5af46c,_0x5b3f1a._0x3310b4)](_0x38adea,_0x4e2924);}async['completeViaRouter'](_0x177334,_0x3c3727){const _0x13c12a={_0x583128:0x673,_0x409f7c:0x5ca,_0x43d606:0x4ea,_0x7eab8c:0x4e2,_0x464050:0x564,_0x438329:0x543,_0x4287e0:0x615},_0x2d060a={_0x4920fc:0xdb,_0x18b724:0xc5,_0x394be5:0x3d7},_0x4ce30d={_0x3109c2:0x4d,_0x4b1fc2:0x510};function _0x480dc2(_0x941c19,_0xf1b343,_0x307c73,_0x3f1e36){return _0x4d4006(_0x307c73,_0xf1b343-_0x4ce30d._0x3109c2,_0xf1b343-_0x4ce30d._0x4b1fc2,_0x3f1e36-0x197);}const _0x18e23a=this[_0x480dc2(0x5ef,_0x13c12a._0x583128,0x685,_0x13c12a._0x409f7c)](_0x177334),_0x155467=await this[_0x480dc2(_0x13c12a._0x43d606,0x55e,_0x13c12a._0x7eab8c,0x4d2)][_0x252666(_0x13c12a._0x464050,_0x13c12a._0x438329,0x56f,_0x13c12a._0x4287e0)](_0x18e23a,{'mode':'complete'});function _0x252666(_0x2e783e,_0x4e76bc,_0x386905,_0x3661ae){return _0x18006e(_0x2e783e-_0x2d060a._0x4920fc,_0x4e76bc-_0x2d060a._0x18b724,_0x386905-_0x2d060a._0x394be5,_0x2e783e);}return this['completeViaSurface'](_0x18e23a,_0x155467,_0x3c3727);}async*['streamViaRouter'](_0x321aef,_0x41889e){const _0x3872e0={_0x2abfc4:0x2,_0x328db4:0xcc,_0x324fd4:0x6f,_0x449898:0x80,_0x17afac:0x87,_0x385097:0xd1,_0x3344fc:0xf4,_0x211262:0x102},_0x342a64={_0x1f0b22:0x10e,_0x334293:0xa1},_0x25fca6={_0xec0618:0x171},_0x4ffd3b=this['applyModelDefaults'](_0x321aef);function _0x554bb9(_0x55a440,_0x56e407,_0x24076d,_0x6a6432){return _0x4d4006(_0x55a440,_0x56e407-0x1ce,_0x56e407-0x41,_0x6a6432-_0x25fca6._0xec0618);}const _0x41a5b4=await this[_0x3c7ee6(-0x128,-0xda,-_0x3872e0._0x2abfc4,-0xc0)][_0x3c7ee6(_0x3872e0._0x328db4,_0x3872e0._0x324fd4,-0x29,0x51)](_0x4ffd3b,{'mode':_0x554bb9(_0x3872e0._0x449898,0xf3,_0x3872e0._0x17afac,_0x3872e0._0x385097)});function _0x3c7ee6(_0xf94e32,_0x5a7867,_0x1b9c54,_0x3c01d9){return _0x4d4006(_0x1b9c54,_0x5a7867-0x152,_0x3c01d9- -_0x342a64._0x1f0b22,_0x3c01d9-_0x342a64._0x334293);}yield*this[_0x554bb9(0x9f,_0x3872e0._0x3344fc,_0x3872e0._0x211262,0x169)](_0x4ffd3b,_0x41a5b4,_0x41889e);}async['completeViaSurface'](_0x1d1eaf,_0x48b4e1,_0x197af7){const _0x1beac6={_0x44f10d:0x38d,_0x4c7938:0x490,_0x3b2a25:0x295,_0x185fc3:0x3e0,_0x390801:0x27d,_0xc2666c:0x267,_0x353777:0x2a7,_0x23fe57:0x374,_0x1a93b8:0x2ae,_0x48a3b6:0x36c,_0x2e87db:0x3eb,_0x1221db:0x454,_0x57cfb3:0x263,_0x82a534:0x303,_0x582c4f:0x2d0,_0x50aae7:0x374,_0x30cd9e:0x2b1,_0x1aa5bc:0x262,_0x2994af:0x28d,_0x1519a2:0x346,_0xfb3a46:0x36c,_0x2364be:0x32c,_0x2838a8:0x2c2,_0x34e81c:0x2f3,_0x3cdcd9:0x1af,_0x14a5a9:0x212},_0x249182={_0x3c37b7:0x11f},_0x26caf8={_0x27513c:0x1a3},_0xbee1a3=this[_0x2fa6fc(_0x1beac6._0x44f10d,0x46d,_0x1beac6._0x4c7938,0x3d9)](_0x1d1eaf);function _0x259805(_0x131674,_0x152da4,_0x1312b8,_0x19f679){return _0x4d4006(_0x1312b8,_0x152da4-0x197,_0x152da4-0x226,_0x19f679-_0x26caf8._0x27513c);}const _0xc5e3bc=this['getSurface'](_0x48b4e1);if(_0xc5e3bc[_0x2fa6fc(0x297,_0x1beac6._0x3b2a25,_0x1beac6._0x185fc3,0x320)]===_0x259805(_0x1beac6._0x390801,_0x1beac6._0xc2666c,_0x1beac6._0x353777,0x1e9)){const _0x4883e1=await this[_0x2fa6fc(_0x1beac6._0x23fe57,0x26e,0x2f2,_0x1beac6._0x1a93b8)](_0xbee1a3,_0xc5e3bc,![],_0x197af7?.[_0x259805(0x340,0x31a,0x3de,0x3c8)]);if(!_0x4883e1['ok'])throw await this[_0x2fa6fc(_0x1beac6._0x48a3b6,_0x1beac6._0x2e87db,_0x1beac6._0x1221db,0x3cb)](_0x4883e1);if(!_0xc5e3bc['parseResponse'])throw new Error('Surface\x20'+_0x48b4e1+_0x259805(0x1f1,_0x1beac6._0x57cfb3,_0x1beac6._0x82a534,0x272));return _0xc5e3bc['parseResponse'](await _0x4883e1['json'](),_0xbee1a3);}let _0x59fd71;for await(const _0x4ee4cd of this[_0x259805(_0x1beac6._0x582c4f,0x2d9,_0x1beac6._0x50aae7,0x387)](_0xbee1a3,_0x48b4e1,_0x197af7)){_0x4ee4cd[_0x259805(_0x1beac6._0x30cd9e,0x29f,_0x1beac6._0x1aa5bc,_0x1beac6._0x2994af)]===_0x259805(_0x1beac6._0x1519a2,_0x1beac6._0xfb3a46,0x389,_0x1beac6._0x2364be)&&(_0x59fd71=_0x4ee4cd[_0x259805(_0x1beac6._0x2838a8,0x27f,0x22c,_0x1beac6._0x34e81c)]);}function _0x2fa6fc(_0x4f762e,_0x17207f,_0x129215,_0x4725cb){return _0x18006e(_0x4f762e-0x12f,_0x17207f-_0x249182._0x3c37b7,_0x4725cb-0x23d,_0x17207f);}if(!_0x59fd71)throw new Error('Surface\x20'+_0x48b4e1+_0x259805(0x26e,0x250,_0x1beac6._0x3cdcd9,_0x1beac6._0x14a5a9));return _0x59fd71;}async*[_0x18006e(0x3a,0x4f,0xec,0x119)](_0x2d886b,_0x4f0142,_0x5f34df){const _0x5cb8b1={_0x41ebbe:0x1af,_0x45d383:0x26a,_0x1dd6dc:0x1f1,_0xf3d4fa:0x25e,_0x2dbbd4:0x1cf,_0x5ae0cf:0x287,_0x792c6:0x1ac,_0x463e2b:0xab,_0x549191:0x13a,_0x1c1366:0x169,_0x1a3176:0x116,_0x31ff7f:0x193,_0x4b592f:0x12c,_0x58a025:0x1bc,_0x2f4a89:0x1c3,_0x4b047a:0x192,_0x44fc3f:0xf6,_0x4edde3:0x16e},_0xef6e56={_0x399592:0x6e,_0x2b9773:0x2e8},_0x11a26d={_0x591049:0x1b3,_0xefa35d:0x13},_0x107c9d=this[_0x43f44c(_0x5cb8b1._0x41ebbe,_0x5cb8b1._0x45d383,_0x5cb8b1._0x1dd6dc,_0x5cb8b1._0xf3d4fa)](_0x2d886b),_0x3f2c27=this[_0x1d8eeb(-0x305,-0x2ee,-_0x5cb8b1._0x2dbbd4,-_0x5cb8b1._0x5ae0cf)](_0x4f0142);function _0x43f44c(_0x17e2b9,_0x1dfb94,_0x3bf9f6,_0x8f1b38){return _0x18006e(_0x17e2b9-_0x11a26d._0x591049,_0x1dfb94-0x178,_0x17e2b9-_0x11a26d._0xefa35d,_0x3bf9f6);}function _0x1d8eeb(_0x4b4d8d,_0x237afe,_0x4b0362,_0x3085f8){return _0x18006e(_0x4b4d8d-_0xef6e56._0x399592,_0x237afe-0x1bd,_0x3085f8- -_0xef6e56._0x2b9773,_0x237afe);}if(_0x3f2c27[_0x43f44c(0xf6,_0x5cb8b1._0x792c6,_0x5cb8b1._0x463e2b,0x5f)]==='http-json'){yield{'type':_0x1d8eeb(-_0x5cb8b1._0x549191,-0x140,-0xb7,-_0x5cb8b1._0x1c1366),'response':await this[_0x1d8eeb(-0x187,-0x229,-0x188,-0x1d8)](_0x107c9d,_0x4f0142,_0x5f34df)};return;}if(_0x3f2c27[_0x43f44c(0xf6,0x32,_0x5cb8b1._0x1a3176,_0x5cb8b1._0x31ff7f)]===_0x1d8eeb(-_0x5cb8b1._0x4b592f,-0x1ec,-0x198,-_0x5cb8b1._0x58a025)){yield*this[_0x43f44c(0x1bf,0x152,_0x5cb8b1._0x2f4a89,0x1a0)](_0x107c9d,_0x3f2c27,_0x5f34df?.[_0x43f44c(0x140,0xf1,_0x5cb8b1._0x4b047a,_0x5cb8b1._0x44fc3f)]);return;}yield*this['streamWebSocketSurface'](_0x107c9d,_0x3f2c27,_0x5f34df?.[_0x1d8eeb(-0x14d,-0x1d7,-_0x5cb8b1._0x4edde3,-0x1bb)]);}async[_0x18006e(0xf1,0x7e,0x5b,-0x30)](_0x2d003d){const _0x24e082={_0x5b27df:0x49,_0x3f7bff:0x20},_0x1fac31={_0x3a9fbb:0x3b5,_0x57dd45:0x225,_0x1dcf9a:0x1cd,_0x291913:0x575,_0x2450f2:0x4e2,_0x5cb634:0x4a6,_0x5bb55b:0x47d,_0x5b39a2:0x3b6,_0xc09cfa:0x365,_0x644718:0x4aa,_0x42b002:0x4e6,_0x19a341:0x423,_0x1679fd:0x3bc,_0xe9dc73:0x1ee,_0x552e8d:0x14d,_0x18c22d:0x105,_0x5f03c9:0x194,_0x4b02ad:0xef,_0x1da9a1:0x160,_0x42008e:0xe8,_0x1c6070:0x217,_0x4669f6:0x2de,_0x218bed:0x12c,_0x1f8c31:0x1c3,_0x226cc1:0x118,_0x2c31f3:0xaa,_0x405b79:0x1ad,_0x54bd36:0x250,_0x50a380:0x208,_0x25ba1f:0x48e,_0x171d30:0x1f8,_0x8654f2:0x15e,_0x482d7c:0xe7,_0x353316:0xd9,_0x53b550:0x16a},_0x201e86={_0x4050f:0x28b},_0x3e2395=async()=>{const _0x3ad29f=this['sessionManager']?await this[_0x17d6af(0x323,0x3f4,_0x1fac31._0x3a9fbb,0x30d)][_0x200def(-0x255,-0x1ff,-_0x1fac31._0x57dd45,-_0x1fac31._0x1dcf9a)](_0x2d003d[_0x17d6af(_0x1fac31._0x291913,_0x1fac31._0x2450f2,0x4b7,_0x1fac31._0x5cb634)]):void 0x0,_0x4797a6=this[_0x17d6af(_0x1fac31._0x5bb55b,0x426,_0x1fac31._0x5b39a2,_0x1fac31._0xc09cfa)][_0x17d6af(_0x1fac31._0x644718,_0x1fac31._0x42b002,_0x1fac31._0x19a341,_0x1fac31._0x1679fd)](this[_0x200def(-_0x1fac31._0xe9dc73,-0x1a9,-0x1fe,-_0x1fac31._0x552e8d)],_0x3ad29f);if(!_0x4797a6)throw this['createMissingCredentialError']();const _0x442e5e=await this['createHeaders']({'body':_0x2d003d[_0x200def(-0xdd,-_0x1fac31._0x18c22d,-_0x1fac31._0x5f03c9,-_0x1fac31._0x4b02ad)],'credential':_0x4797a6,'session':_0x3ad29f,'stream':![]},{'accept':_0x2d003d[_0x200def(-_0x1fac31._0x1da9a1,-0x173,-_0x1fac31._0x42008e,-0x15a)]??_0x200def(-_0x1fac31._0x1c6070,-_0x1fac31._0x4669f6,-0x164,-0x21f),'includeContentType':_0x2d003d[_0x200def(-_0x1fac31._0x218bed,-0x5c,-0x12e,-0x10c)]===_0x200def(-_0x1fac31._0x1f8c31,-_0x1fac31._0x226cc1,-_0x1fac31._0x2c31f3,-0x131)});function _0x200def(_0x3e7dff,_0x1c473c,_0x45e9ee,_0x2f683f){return _0x2cfd(_0x2f683f- -0x396,_0x1c473c);}function _0x17d6af(_0x7dd54,_0x572d29,_0x49738d,_0x281dc4){return _0x2cfd(_0x49738d-_0x201e86._0x4050f,_0x7dd54);}return this['fetchImpl'](''+this['providerAdapter'][_0x200def(-_0x1fac31._0x405b79,-0x1c4,-_0x1fac31._0x54bd36,-_0x1fac31._0x50a380)](this[_0x17d6af(0x479,0x589,0x4d0,_0x1fac31._0x25ba1f)],_0x3ad29f)+_0x2d003d[_0x200def(-0x151,-0x183,-_0x1fac31._0x171d30,-_0x1fac31._0x8654f2)],{'method':_0x2d003d['method'],'headers':_0x442e5e,..._0x2d003d[_0x200def(-0x39,-0x18e,-0x74,-_0x1fac31._0x4b02ad)]!==void 0x0?{'body':JSON['stringify'](_0x2d003d['body'])}:{},'signal':_0x2d003d[_0x200def(-0xcb,-_0x1fac31._0x482d7c,-_0x1fac31._0x353316,-_0x1fac31._0x53b550)]});};function _0x169391(_0xdcd44a,_0x3ac61e,_0x4b35c4,_0x1a1fe3){return _0x4d4006(_0x4b35c4,_0x3ac61e-0x103,_0xdcd44a- -0xab,_0x1a1fe3-0xd5);}return await this['sendWithRetries'](_0x3e2395,_0x2d003d[_0x169391(_0x24e082._0x5b27df,-0x6e,0x2d,_0x24e082._0x3f7bff)]);}[_0x18006e(0x40,0xc7,0xf6,0x4e)](_0x1aadb3,_0x30ee59){const _0x46513c={_0x587dac:0xb1,_0x2e3371:0x18e,_0x5ea2c6:0x73,_0x2b6604:0xa0,_0xab3139:0x1d4,_0x3a1245:0x1fa,_0xb63bee:0x255,_0x83ed83:0x1c7,_0x63b12b:0x87,_0xde8604:0x88,_0x534542:0x83,_0x5dce9a:0x38,_0x584b85:0xf2},_0x1f0a02={_0x299107:0x17c},_0x191532={_0x16f2af:0x144,_0x4e520d:0xfb,_0x2f2d7d:0x28b},_0x3c91da=_0x1aadb3?.['headers'][_0x51b5eb(-_0x46513c._0x587dac,-_0x46513c._0x2e3371,-0xdd,-0x112)](_0x4c278b(-0xf4,-0x36,_0x46513c._0x5ea2c6,-_0x46513c._0x2b6604));function _0x51b5eb(_0x28db9e,_0x20c2b1,_0x508c9d,_0x401a8c){return _0x18006e(_0x28db9e-_0x191532._0x16f2af,_0x20c2b1-_0x191532._0x4e520d,_0x508c9d- -_0x191532._0x2f2d7d,_0x28db9e);}if(_0x3c91da){const _0x326772=Number(_0x3c91da);if(Number[_0x51b5eb(-_0x46513c._0xab3139,-0xfe,-0x17a,-0x185)](_0x326772)&&_0x326772>=0x0)return _0x326772*0x3e8;const _0x208515=Date[_0x51b5eb(-_0x46513c._0x3a1245,-0x2f0,-_0x46513c._0xb63bee,-_0x46513c._0x83ed83)](_0x3c91da);if(Number[_0x4c278b(_0x46513c._0x63b12b,-0x37,-_0x46513c._0xde8604,-_0x46513c._0x534542)](_0x208515))return Math['max'](0x0,_0x208515-Date[_0x51b5eb(-_0x46513c._0x5dce9a,-0xde,-_0x46513c._0x584b85,-0x118)]());}const _0x485dd7=DEFAULT_RETRY_DELAY_MS*0x2**_0x30ee59;function _0x4c278b(_0x378c8c,_0x5614d2,_0x5bb145,_0x114ac1){return _0x18006e(_0x378c8c-0x68,_0x5614d2-_0x1f0a02._0x299107,_0x5614d2- -0x148,_0x114ac1);}if(_0x485dd7<RETRY_DELAY_STEP_CAP_MS)return _0x485dd7;return RETRY_DELAY_STEP_CAP_MS*0x2**(_0x30ee59-0x5);}[_0x4d4006(0x129,0xbd,0xde,0x4b)](_0x12b42c){const _0x336ff7={_0x4ab907:0x1a3,_0x27dc29:0xf5},_0x48a703={_0x498a13:0x8b,_0x17747d:0x8e,_0x3b3935:0x128};function _0x4c67fc(_0x35c650,_0x421ade,_0x1f3654,_0x1ed8c3){return _0x18006e(_0x35c650-_0x48a703._0x498a13,_0x421ade-_0x48a703._0x17747d,_0x421ade- -_0x48a703._0x3b3935,_0x1f3654);}return RETRYABLE_HTTP_STATUSES['has'](_0x12b42c[_0x4c67fc(-_0x336ff7._0x4ab907,-_0x336ff7._0x27dc29,-0x19f,-0xdc)]);}[_0x4d4006(-0x29,0x5c,0x15,0xc2)](_0x78b9fa){return!isAbortError(_0x78b9fa)&&_0x78b9fa instanceof TypeError;}[_0x18006e(0x136,0x174,0x114,0x1cb)](_0x591efb){const _0x25f199={_0x349565:0x131,_0x1f87ee:0x130},_0x5789cc={_0x477942:0xeb,_0x2135d2:0x11c};function _0x31d2ee(_0x2e6ac1,_0x2afd7e,_0x5311c9,_0x42911e){return _0x4d4006(_0x2e6ac1,_0x2afd7e-_0x5789cc._0x477942,_0x2afd7e-_0x5789cc._0x2135d2,_0x42911e-0x62);}return this[_0x31d2ee(0x170,_0x25f199._0x349565,0x1f4,_0x25f199._0x1f87ee)](_0x591efb)||isRetryableProviderStreamEventError(_0x591efb);}async['waitForRetry'](_0xcacb6f,_0x2fdffc){throwIfAborted(_0x2fdffc),await new Promise((_0x40238f,_0x10fb78)=>{const _0x3e8063={_0x3da804:0x2a2,_0x30ca0a:0x206};let _0x3345a=![];const _0x368735=addAbortListener(_0x2fdffc,()=>{if(_0x3345a)return;_0x3345a=!![];function _0x5d42cd(_0x4c26a2,_0x33dd3e,_0x508801,_0x276de1){return _0x2cfd(_0x4c26a2-0x40,_0x276de1);}clearTimeout(_0x2e8fe7),_0x10fb78(toAbortError(_0x2fdffc?.[_0x5d42cd(0x254,_0x3e8063._0x3da804,0x266,_0x3e8063._0x30ca0a)]));}),_0x2e8fe7=setTimeout(()=>{_0x3345a=!![],_0x368735(),_0x40238f();},_0xcacb6f);}),throwIfAborted(_0x2fdffc);}async[_0x18006e(0x1de,0x15a,0x176,0xf4)](_0x50daa1,_0x161633){const _0xd650cf={_0xc45f48:0x235,_0xb71fd:0x22d,_0x5c6eee:0x176,_0x43d65d:0x470,_0x5e3be3:0x41a,_0x584a03:0x379,_0x4577b0:0x463,_0xabe644:0x49f,_0x595294:0x402,_0x147d38:0x4cc,_0x5179fe:0x36b,_0x398352:0x192,_0x45c8b1:0x14a,_0x46b854:0xa7,_0x5e3d43:0x181},_0x58cd69={_0x95310b:0x1df,_0x1a497a:0xb1},_0x16be92={_0x1b7ee9:0x61,_0x51ec03:0x144};function _0x3ec857(_0x476fb9,_0x4a7f64,_0x3ee84d,_0x507667){return _0x18006e(_0x476fb9-_0x16be92._0x1b7ee9,_0x4a7f64-_0x16be92._0x51ec03,_0x476fb9- -0x268,_0x3ee84d);}let _0xb4023c=![];for(let _0x1930e4=0x0;_0x1930e4<MAX_PROVIDER_REQUEST_ATTEMPTS;_0x1930e4+=0x1){throwIfAborted(_0x161633);try{const _0x3187fc=await _0x50daa1();if(_0x3187fc[_0x3ec857(-_0xd650cf._0xc45f48,-_0xd650cf._0xb71fd,-0x17a,-0x1d2)]===0x191&&this['sessionManager']&&!_0xb4023c){_0xb4023c=!![],this[_0x3ec857(-0x23d,-0x26b,-0x1be,-_0xd650cf._0x5c6eee)][_0x3db96f(_0xd650cf._0x43d65d,_0xd650cf._0x5e3be3,_0xd650cf._0x584a03,_0xd650cf._0x4577b0)]();continue;}if(!this['shouldRetryResponse'](_0x3187fc)||_0x1930e4===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)return _0x3187fc;await this[_0x3db96f(0x46f,_0xd650cf._0xabe644,_0xd650cf._0x595294,_0xd650cf._0x147d38)](this['getRetryDelayMs'](_0x3187fc,_0x1930e4),_0x161633);}catch(_0x2f7c65){if(!this[_0x3db96f(0x351,0x3f8,_0xd650cf._0x5179fe,_0xd650cf._0xabe644)](_0x2f7c65)||_0x1930e4===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0x2f7c65;await this[_0x3ec857(-0x173,-0x235,-_0xd650cf._0x398352,-_0xd650cf._0x45c8b1)](this[_0x3ec857(-0x172,-_0xd650cf._0x46b854,-_0xd650cf._0x5e3d43,-0x23a)](void 0x0,_0x1930e4),_0x161633);}}function _0x3db96f(_0x55b459,_0x28c694,_0x588fbc,_0x77bb56){return _0x18006e(_0x55b459-_0x58cd69._0x95310b,_0x28c694-_0x58cd69._0x1a497a,_0x28c694-0x3aa,_0x77bb56);}throw new Error('Provider\x20request\x20retry\x20loop\x20exited\x20unexpectedly');}[_0x4d4006(0x18e,0x9d,0x15e,0xd4)](){const _0x52b939={_0x23d1f3:0x4c3,_0x54e2af:0x3c2};function _0x34585c(_0x14cb44,_0x328c5f,_0x2651b8,_0x45ea2a){return _0x18006e(_0x14cb44-0xbc,_0x328c5f-0xf6,_0x328c5f-0x3f5,_0x2651b8);}return this[_0x34585c(0x40d,0x421,_0x52b939._0x23d1f3,_0x52b939._0x54e2af)]['createMissingCredentialError']();}async[_0x18006e(0x7a,0x107,0x140,0x14d)](_0x2358cf,_0x1a7768){const _0x362054={_0x68562c:0xf9,_0x3651a8:0xfa,_0x33760b:0x88,_0x380375:0x245,_0x5899cd:0x2fb,_0x57dcc3:0x313},_0x30911f={_0x13912f:0x1cf,_0x3ef4c9:0x234},_0x5c3cbd={_0x275c98:0x18f,_0xad87f7:0x12e};function _0x20a132(_0x4976df,_0x4e47ca,_0x3c19a9,_0x3678d3){return _0x4d4006(_0x3c19a9,_0x4e47ca-_0x5c3cbd._0x275c98,_0x4976df-0x150,_0x3678d3-_0x5c3cbd._0xad87f7);}function _0x32a702(_0x511250,_0xfc30b4,_0x14291b,_0x57e7f5){return _0x18006e(_0x511250-0x53,_0xfc30b4-_0x30911f._0x13912f,_0x57e7f5-_0x30911f._0x3ef4c9,_0x14291b);}return await this[_0x20a132(0x143,_0x362054._0x68562c,_0x362054._0x3651a8,_0x362054._0x33760b)][_0x20a132(0x257,_0x362054._0x380375,_0x362054._0x5899cd,_0x362054._0x57dcc3)](_0x2358cf,_0x1a7768);}['mapApiError'](_0x17e351){const _0x4551dc={_0x81fecc:0x24f,_0x389237:0x17d,_0x4b725b:0x21a},_0xed07c1={_0x5ed803:0x138};function _0x1e7be0(_0x2dd1df,_0x495f33,_0x46af65,_0x5ec15e){return _0x4d4006(_0x2dd1df,_0x495f33-_0xed07c1._0x5ed803,_0x46af65- -0x21b,_0x5ec15e-0x142);}return this['providerAdapter'][_0x1e7be0(-_0x4551dc._0x81fecc,-_0x4551dc._0x389237,-_0x4551dc._0x4b725b,-0x15d)](_0x17e351);}async['toApiError'](_0x416499){const _0x37d256={_0x59c879:0x3a7,_0x1bb095:0x316,_0x5c6f8a:0x3a7,_0x5aac7d:0x2b6,_0x191b80:0x32b,_0xb7b79b:0x278,_0x42ce3c:0x29b},_0x276641={_0x10d86f:0x3b4},_0x36cc96={_0x1210bc:0x149,_0x22a507:0xa5};function _0x151f90(_0x5d99ae,_0x5832fe,_0x59976d,_0x4b32ee){return _0x18006e(_0x5d99ae-_0x36cc96._0x1210bc,_0x5832fe-_0x36cc96._0x22a507,_0x59976d-0xea,_0x5d99ae);}function _0xe6d8c2(_0x2640f9,_0x3ccb6d,_0x4a68a4,_0x13b755){return _0x4d4006(_0x4a68a4,_0x3ccb6d-0x4d,_0x2640f9-_0x276641._0x10d86f,_0x13b755-0x162);}return await this[_0xe6d8c2(_0x37d256._0x59c879,_0x37d256._0x1bb095,0x355,_0x37d256._0x5c6f8a)][_0x151f90(_0x37d256._0x5aac7d,_0x37d256._0x191b80,_0x37d256._0xb7b79b,_0x37d256._0x42ce3c)](_0x416499);}[_0x4d4006(0x1e,0xf2,0x28,-0xd)](_0x9fe07e){const _0x374bfe={_0x39b198:0x4c8,_0x3ab67c:0x3b4,_0x395fa7:0x436,_0x2a1b9a:0x509,_0x908601:0x563},_0x4be43a={_0x3add0f:0x12f,_0x2e45a4:0x6a,_0x16cbed:0x35b};function _0x5a642d(_0xfa8910,_0x96ea38,_0x200ac1,_0x1e9717){return _0x18006e(_0xfa8910-0x3b,_0x96ea38-0x3d,_0x200ac1-0x2d8,_0x96ea38);}const _0x5e4b09=this[_0x5a642d(_0x374bfe._0x39b198,_0x374bfe._0x3ab67c,_0x374bfe._0x395fa7,0x453)][_0xd75e71(_0x374bfe._0x2a1b9a,0x5bb,0x4bb,_0x374bfe._0x908601)](_0x9fe07e);function _0xd75e71(_0x38191a,_0x304dfe,_0x34357d,_0x1b094f){return _0x18006e(_0x38191a-_0x4be43a._0x3add0f,_0x304dfe-_0x4be43a._0x2e45a4,_0x38191a-_0x4be43a._0x16cbed,_0x1b094f);}if(!_0x5e4b09)throw new Error('Unknown\x20model\x20surface:\x20'+_0x9fe07e);return _0x5e4b09;}async[_0x4d4006(0x29,0x130,0xba,0x98)](_0x728547,_0x329943){const _0x5daeec={_0x4f9fe5:0x24e,_0x2caffb:0x250,_0x559d67:0xe7,_0x369a:0xf5,_0x4395c5:0x7f,_0x4baf92:0x139,_0x49bb34:0x127,_0x24c427:0x143,_0x3956bf:0x49,_0x22f43f:0xe5,_0x1f2084:0x133,_0x4e8134:0x1c7,_0x26a69b:0x22a,_0x47a2ac:0xf7},_0x30eb96={_0x1d022c:0x12d},_0x13533d={_0x4d8bce:0x1ac};function _0x1ca258(_0xd518ab,_0x261c47,_0x748124,_0x21eb79){return _0x4d4006(_0x21eb79,_0x261c47-_0x13533d._0x4d8bce,_0x261c47- -0x1c,_0x21eb79-0xed);}function _0x4e0f87(_0x2e255e,_0x23003b,_0x55ee38,_0xde2d45){return _0x4d4006(_0x55ee38,_0x23003b-_0x30eb96._0x1d022c,_0xde2d45- -0x243,_0xde2d45-0x194);}const _0x5415e0=toModelRequest(_0x728547),_0x232cac=await prepareProviderRequest(_0x5415e0,{'sessionManager':this['sessionManager'],'requestMutators':this['requestMutators'],'signal':_0x329943}),_0x189340=toChatRequest(_0x232cac['request']),_0x2c1809=this[_0x4e0f87(-_0x5daeec._0x4f9fe5,-0x213,-0x266,-_0x5daeec._0x2caffb)]['resolveCredential'](this[_0x1ca258(_0x5daeec._0x559d67,_0x5daeec._0x369a,0x95,0x173)],_0x232cac[_0x1ca258(0x12e,_0x5daeec._0x4395c5,_0x5daeec._0x4baf92,_0x5daeec._0x49bb34)]);if(!_0x2c1809)throw this[_0x4e0f87(-_0x5daeec._0x24c427,-_0x5daeec._0x3956bf,-0x136,-_0x5daeec._0x22f43f)]();return{'baseUrl':this['providerAdapter']['resolveBaseUrl'](this[_0x1ca258(_0x5daeec._0x1f2084,0xf1,0xc8,0xa7)],_0x232cac[_0x4e0f87(-_0x5daeec._0x4e8134,-_0x5daeec._0x26a69b,-0x1e2,-0x1a8)]),'credential':_0x2c1809,'request':_0x189340,'session':_0x232cac[_0x4e0f87(-0x15f,-_0x5daeec._0x47a2ac,-0x217,-0x1a8)]};}[_0x18006e(0x143,0x1ed,0x19c,0x23d)](_0x1659dc){const _0x56e1c2={_0x57d44c:0x60b,_0x1dfb6e:0x4de,_0x59101b:0x4bf,_0x5e7dd0:0x444,_0x55a941:0x4c2},_0x2244d6={_0x367dea:0x178,_0x15ea28:0x490},_0x78e804={_0xfffcd4:0x73,_0x1dad9b:0x36e};function _0x24dbba(_0xfe4770,_0x1d1b44,_0x799ac,_0x4cc01a){return _0x4d4006(_0x1d1b44,_0x1d1b44-_0x78e804._0xfffcd4,_0x799ac-_0x78e804._0x1dad9b,_0x4cc01a-0x4b);}function _0x2e1900(_0x41a014,_0x329791,_0x45377e,_0x2103c5){return _0x18006e(_0x41a014-_0x2244d6._0x367dea,_0x329791-0x83,_0x41a014-_0x2244d6._0x15ea28,_0x329791);}return{...structuredClone(_0x1659dc),..._0x1659dc[_0x2e1900(0x59f,_0x56e1c2._0x57d44c,_0x56e1c2._0x1dfb6e,0x51f)]===void 0x0&&this[_0x24dbba(_0x56e1c2._0x59101b,0x477,_0x56e1c2._0x5e7dd0,_0x56e1c2._0x55a941)]!==void 0x0?{'reasoning':structuredClone(this['reasoning'])}:{}};}async[_0x18006e(0x2a,0x118,0x71,0x21)](_0x182088,_0x17ee77,_0x10d672,_0x5717ed,_0x242894=!![]){const _0xee128b={_0xceaad3:0x16a},_0x5e7eaf={_0x25cf35:0x58},_0x212faa={_0x1f11ae:0x3e6,_0x22099a:0x44f,_0x14887e:0x4da,_0x203e40:0x413,_0x405709:0x505,_0x35c3d3:0x521,_0x279590:0x53d,_0x2367a0:0x4c6,_0x378b4f:0x516,_0x30aec9:0x4de,_0x5e9ee1:0x59f,_0x114c62:0x46b,_0xdd124f:0x41f,_0x4fcae6:0x464,_0x37faec:0x4ea,_0x2f6e82:0x504,_0x21d981:0x4bf,_0x45f6da:0x493,_0x38e93e:0x611,_0x186e54:0x55b,_0x1bbeae:0x47d,_0x287eef:0x3f0,_0x366d87:0x4ad,_0x414032:0x5d1,_0x3012ad:0x5ba,_0x20c457:0x4d9,_0x13d7f1:0x525,_0x22aa48:0x594,_0x89e532:0x534,_0x10fb89:0x530,_0x3734b6:0x5ae,_0x38a76c:0x50e},_0x27e2f8={_0x79c146:0x25d},_0x1e6296=async()=>{const _0x5e70ae={_0x7ad4a2:0x2ed},_0x45b66e=await this[_0x2784ff(0x4d0,_0x212faa._0x1f11ae,_0x212faa._0x22099a,0x519)](_0x182088,_0x5717ed);let _0x21148c;function _0x2784ff(_0x4ffb7c,_0x107e85,_0x1a4e40,_0x4a5acc){return _0x2cfd(_0x1a4e40-_0x27e2f8._0x79c146,_0x4a5acc);}function _0xe444bb(_0x4ea0bf,_0x1df384,_0x25e6fb,_0x3a675a){return _0x2cfd(_0x25e6fb-_0x5e70ae._0x7ad4a2,_0x3a675a);}try{_0x21148c=_0x17ee77[_0xe444bb(0x43b,0x46a,_0x212faa._0x14887e,_0x212faa._0x203e40)](_0x45b66e['request']);}catch(_0x4d4529){if(_0x4d4529 instanceof Error)throw new ProviderRequestConstructionError(_0x4d4529[_0xe444bb(_0x212faa._0x405709,_0x212faa._0x35c3d3,_0x212faa._0x279590,_0x212faa._0x2367a0)]);throw _0x4d4529;}if(!_0x21148c[_0x2784ff(_0x212faa._0x378b4f,_0x212faa._0x30aec9,0x495,0x4ed)])throw new ProviderRequestConstructionError('Surface\x20'+_0x17ee77['id']+'\x20did\x20not\x20provide\x20an\x20HTTP\x20path');const _0x5e1674=await this[_0xe444bb(_0x212faa._0x5e9ee1,0x54e,0x52c,_0x212faa._0x114c62)]({'request':_0x45b66e['request'],'body':_0x21148c['body'],'credential':_0x45b66e['credential'],'session':_0x45b66e['session'],'stream':_0x10d672},{'accept':_0x21148c['accept']??(_0x10d672?'text/event-stream':_0xe444bb(0x4e2,_0x212faa._0xdd124f,_0x212faa._0x4fcae6,_0x212faa._0x37faec)),'includeContentType':_0x21148c[_0x2784ff(0x4b6,0x4bf,_0x212faa._0x2f6e82,0x470)]!==void 0x0});for(const [_0x556aa4,_0x380699]of Object[_0xe444bb(_0x212faa._0x21d981,0x4bb,_0x212faa._0x45f6da,0x431)](_0x21148c[_0xe444bb(_0x212faa._0x38e93e,0x4b7,0x57c,_0x212faa._0x186e54)]??{})){_0x5e1674['set'](_0x556aa4,_0x380699);}return this[_0xe444bb(_0x212faa._0x1bbeae,_0x212faa._0x287eef,0x4b1,_0x212faa._0x366d87)](''+_0x45b66e[_0xe444bb(_0x212faa._0x414032,_0x212faa._0x3012ad,0x532,_0x212faa._0x20c457)]+_0x21148c[_0xe444bb(0x5b2,0x5c9,_0x212faa._0x13d7f1,0x494)],{'method':'POST','headers':_0x5e1674,..._0x21148c[_0xe444bb(0x538,0x5e3,_0x212faa._0x22aa48,_0x212faa._0x89e532)]!==void 0x0?{'body':JSON[_0xe444bb(_0x212faa._0x10fb89,0x438,0x4e9,0x586)](_0x21148c[_0xe444bb(_0x212faa._0x3734b6,_0x212faa._0x38a76c,_0x212faa._0x22aa48,0x658)])}:{},'signal':_0x5717ed});};function _0xf13f4(_0x3c761d,_0x38ad42,_0xf24434,_0x3a2ed2){return _0x18006e(_0x3c761d-0x12a,_0x38ad42-_0x5e7eaf._0x25cf35,_0x3a2ed2-0x7a,_0xf24434);}return _0x242894?await this[_0xf13f4(_0xee128b._0xceaad3,0x133,0x1ef,0x1f0)](_0x1e6296,_0x5717ed):await _0x1e6296();}async*[_0x4d4006(0x202,0x15d,0x173,0x17a)](_0xc715f1,_0x489e8e,_0x2de320){const _0x4bcb00={_0xe2a3d6:0x227,_0x5861a2:0x1e8,_0x404d30:0x28b,_0x1b7708:0x32e,_0x1d8154:0x31c,_0x3eafea:0x65,_0xa84699:0xc,_0x5853bf:0xb4,_0x2bb1d8:0x13,_0x246776:0x15e,_0x230407:0x18,_0x2dad78:0x45,_0x15e78d:0x22,_0x411d8c:0x27e,_0x79b37f:0x360,_0x252cdb:0x13f,_0x3f8d58:0x30,_0x4acb33:0x68,_0x5c5cc2:0x20e,_0x1a5560:0x20f,_0x14df7b:0x2e7,_0x5ed088:0x1d6,_0x1624ec:0x26d},_0x3a0bb6={_0x474cbd:0x1e,_0x2a5fb5:0x177},_0x1c1919={_0x365832:0x1dc,_0x5d58b1:0xe4};function _0x3cf99b(_0x492d30,_0x15421f,_0x3143c6,_0x2c6282){return _0x18006e(_0x492d30-0x17c,_0x15421f-_0x1c1919._0x365832,_0x492d30- -_0x1c1919._0x5d58b1,_0x2c6282);}function _0x237aa7(_0x15016f,_0x4a9f1f,_0x43f3b8,_0x21f5d6){return _0x18006e(_0x15016f-_0x3a0bb6._0x474cbd,_0x4a9f1f-0x42,_0x21f5d6-_0x3a0bb6._0x2a5fb5,_0x4a9f1f);}for(let _0x27c4d2=0x0;_0x27c4d2<MAX_PROVIDER_REQUEST_ATTEMPTS;_0x27c4d2+=0x1){let _0x25c59c=![];try{const _0x4f7aac=await this[_0x237aa7(_0x4bcb00._0xe2a3d6,0x13e,0x19a,_0x4bcb00._0x5861a2)](_0xc715f1,_0x489e8e,!![],_0x2de320,![]);if(!_0x4f7aac['ok'])throw await this['toApiError'](_0x4f7aac);const _0x6cacaf=_0x489e8e[_0x237aa7(0x3dd,_0x4bcb00._0x404d30,_0x4bcb00._0x1b7708,_0x4bcb00._0x1d8154)]?.(_0xc715f1);if(!_0x6cacaf?.[_0x3cf99b(_0x4bcb00._0x3eafea,_0x4bcb00._0xa84699,0x24,0xc4)])throw new Error(_0x3cf99b(-_0x4bcb00._0x5853bf,-0x42,_0x4bcb00._0x2bb1d8,-_0x4bcb00._0x246776)+_0x489e8e['id']+_0x3cf99b(-_0x4bcb00._0x230407,-0x33,_0x4bcb00._0x2dad78,-_0x4bcb00._0x15e78d));for await(const _0x35e20e of iterateSseEvents(_0x4f7aac,_0x2de320)){const _0x468739=_0x6cacaf[_0x3cf99b(0x65,0x110,0xd8,0x68)](_0x35e20e);for(const _0x5b4e2a of _0x468739){_0x25c59c=!![],yield _0x5b4e2a;}}yield{'type':_0x237aa7(_0x4bcb00._0x411d8c,0x380,_0x4bcb00._0x79b37f,0x2f6),'response':_0x6cacaf[_0x3cf99b(0xa2,_0x4bcb00._0x252cdb,0x16,0x12)]()};return;}catch(_0xf337ea){if(_0x25c59c||!this[_0x3cf99b(_0x4bcb00._0x3f8d58,0x48,_0x4bcb00._0x4acb33,0x5f)](_0xf337ea)||_0x27c4d2===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0xf337ea;await this[_0x237aa7(0x23f,_0x4bcb00._0x5c5cc2,_0x4bcb00._0x1a5560,0x26c)](this[_0x237aa7(0x265,_0x4bcb00._0x14df7b,_0x4bcb00._0x5ed088,_0x4bcb00._0x1624ec)](void 0x0,_0x27c4d2),_0x2de320);}}}async*[_0x18006e(0x162,0x107,0xbb,0x10a)](_0x3ac278,_0x55ecf6,_0x58f22d){const _0x5160dd={_0x1e8b91:0xb8,_0x48db66:0x13e,_0x181894:0x102,_0x3efc97:0x18e,_0x36289a:0x42,_0x518edb:0x44,_0x200c16:0x73,_0x4f4502:0x1a6,_0x4a6fff:0x26c,_0x310abe:0x121,_0x43e056:0xd5,_0x68a7d4:0x115,_0x451cd2:0x115,_0x1d4730:0x159,_0xef7c64:0xc7,_0x85919:0x293,_0x3745f2:0x1ea,_0xea87d4:0xae,_0x2e5b74:0x1c8,_0x1a5ae0:0x165,_0x46800a:0x142,_0x76f318:0x205,_0x1394f0:0x109,_0x4a15e9:0x1b6,_0x17cfec:0x172,_0x21cd78:0x178,_0x227628:0x1fe,_0x3f4995:0x21e,_0x5346f5:0xe4,_0x269c06:0x66,_0x4f6eb8:0xc1,_0x1d4a2e:0x162,_0x5309d6:0x186,_0x22c9b7:0x2b0,_0x5d0b51:0xf0,_0x1e6b6d:0xbd,_0x3a2445:0x2c,_0x564993:0x4c,_0x50aa6e:0x243,_0x223da8:0xff,_0x53a059:0x43,_0x48aad5:0xb6,_0x3ab7fc:0x1bb,_0x21a7a4:0x41,_0x2f3824:0xbe,_0x6f7484:0x10,_0x73a0e6:0x15,_0x3f5920:0xca,_0x36de05:0x1ab,_0x322e6a:0x31,_0xbb5eed:0xcf,_0x23cc77:0x148,_0x28bccb:0xfa,_0x361423:0x111,_0x2e77cb:0x38,_0x2645a7:0x61,_0x527565:0x9a,_0x5ef2c6:0x6f,_0x505b17:0x1a4,_0x25c769:0xd,_0x58e60e:0x96,_0x27aaa7:0x8d,_0x760a5:0x23,_0x265691:0x6b,_0x285872:0x13,_0xbd8cd4:0x10f,_0x345659:0x2f,_0xa14493:0x275,_0x14af8a:0x184,_0x2b4f59:0xe6,_0x3d8fda:0x1ac,_0x591738:0x128,_0x183d4a:0x240,_0x3d153c:0x1b6,_0x4c2922:0x178,_0x5ccc1e:0xa4},_0x14d5b6={_0x89a972:0x1a8,_0x297cf5:0x56},_0x10dbb9={_0x16c2a3:0x16d},_0x4b2dec=await this['prepareChatRequest'](_0x3ac278,_0x58f22d);function _0x46fc5e(_0x2dfa79,_0x25f4cc,_0x3688a7,_0x2c386a){return _0x4d4006(_0x3688a7,_0x25f4cc-0xf2,_0x2dfa79- -_0x10dbb9._0x16c2a3,_0x2c386a-0x19e);}const _0x153d22=_0x55ecf6[_0x46fc5e(-_0x5160dd._0x1e8b91,-0x116,-_0x5160dd._0x48db66,-_0x5160dd._0x181894)](_0x4b2dec[_0x46fc5e(-0xde,-_0x5160dd._0x3efc97,-0x52,-_0x5160dd._0x36289a)]),_0x18be64=_0x55ecf6[_0x46fc5e(-0x1,-_0x5160dd._0x518edb,0x34,-0xb)]?.(_0x3ac278);if(!_0x18be64?.['consumeWebSocketEvent'])throw new Error('Surface\x20'+_0x55ecf6['id']+_0x46fc5e(-0x13e,-0x1fd,-_0x5160dd._0x200c16,-0x119));function _0x5de445(_0x432649,_0x4c6709,_0x3bb34f,_0x2fbc88){return _0x4d4006(_0x432649,_0x4c6709-_0x14d5b6._0x89a972,_0x2fbc88- -0x215,_0x2fbc88-_0x14d5b6._0x297cf5);}const _0x39156f=_0x153d22[_0x5de445(-0x16e,-_0x5160dd._0x4f4502,-_0x5160dd._0x4a6fff,-0x20b)]??(_0x153d22[_0x5de445(-0x4b,-_0x5160dd._0x310abe,-_0x5160dd._0x43e056,-_0x5160dd._0x68a7d4)]?(''+_0x4b2dec[_0x5de445(-_0x5160dd._0x451cd2,-0x7f,-0xa2,-0x108)]+_0x153d22[_0x5de445(-_0x5160dd._0x1d4730,-0x1c5,-_0x5160dd._0xef7c64,-0x115)])[_0x5de445(-0x16c,-_0x5160dd._0x85919,-0x198,-_0x5160dd._0x3745f2)](/^http:/,_0x5de445(-_0x5160dd._0xea87d4,-0xe1,-_0x5160dd._0x2e5b74,-_0x5160dd._0x1a5ae0))[_0x46fc5e(-_0x5160dd._0x46800a,-0x195,-_0x5160dd._0x76f318,-0x8e)](/^https:/,_0x5de445(-_0x5160dd._0x1394f0,-_0x5160dd._0x4a15e9,-0x125,-_0x5160dd._0x17cfec)):void 0x0);if(!_0x39156f)throw new ProviderRequestConstructionError(_0x5de445(-_0x5160dd._0x21cd78,-_0x5160dd._0x227628,-0x1bf,-_0x5160dd._0x3f4995)+_0x55ecf6['id']+_0x46fc5e(-0x17c,-_0x5160dd._0x5346f5,-0x208,-0x1d5));const _0x435fdc=await this[_0x46fc5e(-_0x5160dd._0x269c06,0x38,-0x80,-_0x5160dd._0x4f6eb8)]({'request':_0x4b2dec[_0x5de445(-0x1fc,-_0x5160dd._0x1d4a2e,-0xfb,-_0x5160dd._0x5309d6)],'body':_0x153d22['initialEvent'],'credential':_0x4b2dec[_0x5de445(-0x2c9,-_0x5160dd._0x22c9b7,-0x2e8,-0x229)],'session':_0x4b2dec[_0x5de445(-_0x5160dd._0x5d0b51,-0x166,-0x124,-0x17a)],'stream':!![]},{'accept':_0x153d22[_0x46fc5e(-0x69,-_0x5160dd._0x1e6b6d,-_0x5160dd._0x3a2445,-_0x5160dd._0x564993)]??_0x5de445(-0x27b,-0x22b,-_0x5160dd._0x50aa6e,-0x1d6),'includeContentType':![]});for(const [_0x54a76b,_0x2868fd]of Object[_0x46fc5e(-_0x5160dd._0x223da8,-_0x5160dd._0x53a059,-_0x5160dd._0x48aad5,-_0x5160dd._0x3ab7fc)](_0x153d22[_0x5de445(-0x185,-_0x5160dd._0x21a7a4,-0x16b,-_0x5160dd._0x2f3824)]??{})){_0x435fdc[_0x46fc5e(-_0x5160dd._0x6f7484,_0x5160dd._0x73a0e6,0x6a,0x2f)](_0x54a76b,_0x2868fd);}_0x435fdc[_0x5de445(-0xe2,-_0x5160dd._0x3f5920,-_0x5160dd._0x36de05,-0x12a)]('accept');const _0x28dd6f=this[_0x46fc5e(-0x74,_0x5160dd._0x322e6a,-0x1e,0x24)]({'headers':Object[_0x5de445(-_0x5160dd._0xbb5eed,-0x136,-_0x5160dd._0x23cc77,-_0x5160dd._0x28bccb)](_0x435fdc[_0x46fc5e(-0xff,-_0x5160dd._0x361423,-_0x5160dd._0x2e77cb,-_0x5160dd._0x2645a7)]()),'url':_0x39156f});try{throwIfAborted(_0x58f22d);_0x28dd6f[_0x5de445(-0x1ad,-_0x5160dd._0x527565,-_0x5160dd._0x5ef2c6,-0x120)]!==WebSocket[_0x46fc5e(-0x152,-0x11f,-0xc8,-_0x5160dd._0x505b17)]&&await waitForWebSocketOpen(_0x28dd6f,_0x58f22d);throwIfAborted(_0x58f22d);_0x153d22['initialEvent']!==void 0x0&&_0x28dd6f['send'](JSON[_0x46fc5e(-0xa9,-0x16c,_0x5160dd._0x25c769,-_0x5160dd._0x58e60e)](_0x153d22[_0x46fc5e(-_0x5160dd._0x27aaa7,-0x123,-_0x5160dd._0x760a5,-0x49)]));for await(const _0x450159 of iterateWebSocketMessages(_0x28dd6f,_0x58f22d)){yield*_0x18be64[_0x46fc5e(-_0x5160dd._0x265691,-0x93,-_0x5160dd._0x285872,-_0x5160dd._0xbd8cd4)](_0x450159);if(_0x18be64[_0x46fc5e(-0xaf,-_0x5160dd._0x345659,-0x16f,-0x135)]?.())break;}yield{'type':'done','response':_0x18be64[_0x5de445(-0x22,-0x93,-0x17c,-0xc8)]()};}finally{_0x28dd6f['readyState']===WebSocket[_0x5de445(-0x2bc,-0x160,-0x1a1,-0x1fa)]&&_0x28dd6f[_0x5de445(-_0x5160dd._0xa14493,-0x145,-_0x5160dd._0x14af8a,-0x1d9)](0x3e8,_0x58f22d?.[_0x46fc5e(-0x10e,-_0x5160dd._0x2b4f59,-_0x5160dd._0x3d8fda,-_0x5160dd._0x5309d6)]?_0x5de445(-_0x5160dd._0x591738,-0x110,-_0x5160dd._0x183d4a,-_0x5160dd._0x3d153c):_0x46fc5e(-0xe9,-_0x5160dd._0x4c2922,-_0x5160dd._0x5ccc1e,-_0x5160dd._0x5346f5));}}};async function createHttpError(_0x3542c4){const _0x2f9559={_0x1a468d:0xd8,_0x5f3d16:0x117,_0x7189b0:0xda,_0x311524:0x1e3,_0x49601d:0x258},_0x2c34e7={_0xaac221:0x17f,_0x4860aa:0x47},_0x554ab1={_0x5a1e4:0x143},_0x2ccfd7=await _0x3542c4[_0x598260(-0x24a,-0x149,-0x180,-_0x2f9559._0x1a468d)]();function _0x2fb9d3(_0x3925c4,_0x50e64f,_0x4a85c3,_0x5d84a0){return _0x18006e(_0x3925c4-_0x554ab1._0x5a1e4,_0x50e64f-0x1b3,_0x4a85c3- -0x1ae,_0x50e64f);}const _0x2b3ff0=_0x2ccfd7['trim']()||_0x3542c4['statusText']||_0x598260(-0x1e7,-_0x2f9559._0x5f3d16,-0x169,-_0x2f9559._0x7189b0);function _0x598260(_0x4705ff,_0x233dae,_0x1aa783,_0x18ae4f){return _0x18006e(_0x4705ff-_0x2c34e7._0xaac221,_0x233dae-_0x2c34e7._0x4860aa,_0x1aa783- -0x28b,_0x18ae4f);}return new Error('Provider\x20request\x20failed\x20with\x20status\x20'+_0x3542c4[_0x598260(-0x1e6,-_0x2f9559._0x311524,-_0x2f9559._0x49601d,-0x280)]+':\x20'+_0x2b3ff0);}var AnthropicProviderAdapter=class{[_0x4d4006(0x2,-0x1,0x96,0x3)];[_0x18006e(0x170,0x1b9,0x120,0x170)];[_0x18006e(0xfa,0x2e,0xd5,0x11e)];constructor(_0x2b89ae){const _0x43d03e={_0x3b0ab3:0x4da,_0x252447:0x43f,_0x3765e1:0x506,_0x3009b7:0x5c4,_0x3065ce:0x614,_0x3fb18b:0x48e,_0x36b18e:0x488,_0x4492f8:0x3dc,_0x217d09:0x41d,_0x42ff45:0x4f6},_0x5c6869={_0x493c05:0x1e6},_0x2073d2={_0x3fbf2c:0x19a,_0x5145d0:0x3b3};function _0x5db6a3(_0x3389d8,_0x2de498,_0x2101a9,_0x1b7db3){return _0x18006e(_0x3389d8-_0x2073d2._0x3fbf2c,_0x2de498-0x1c1,_0x2de498-_0x2073d2._0x5145d0,_0x2101a9);}this[_0x5db6a3(0x401,0x482,0x3be,_0x43d03e._0x3b0ab3)]=_0x2b89ae[_0x2c11ac(0x5c8,0x578,_0x43d03e._0x252447,_0x43d03e._0x3765e1)];function _0x2c11ac(_0x25920f,_0x1244a4,_0x127704,_0x521e10){return _0x18006e(_0x25920f-0x19a,_0x1244a4-_0x5c6869._0x493c05,_0x521e10-0x437,_0x127704);}this['headerResolver']=_0x2b89ae[_0x2c11ac(_0x43d03e._0x3009b7,_0x43d03e._0x3065ce,0x4ee,0x557)],this[_0x5db6a3(_0x43d03e._0x3fb18b,_0x43d03e._0x36b18e,_0x43d03e._0x4492f8,_0x43d03e._0x217d09)]=_0x2b89ae[_0x5db6a3(0x454,_0x43d03e._0x36b18e,_0x43d03e._0x42ff45,0x3d0)];}[_0x4d4006(0x19b,0x218,0x15e,0xb6)](){const _0x13e6c4={_0x491f93:0x133,_0x1fe340:0x210},_0x31a358={_0x5f1df3:0x182,_0x2a5b91:0x25a};function _0x4a19fd(_0x18ddfe,_0x5d426b,_0x49a67b,_0x6875f5){return _0x4d4006(_0x5d426b,_0x5d426b-_0x31a358._0x5f1df3,_0x6875f5- -_0x31a358._0x2a5b91,_0x6875f5-0x8d);}return new Error(_0x4a19fd(-_0x13e6c4._0x491f93,-_0x13e6c4._0x1fe340,-0x133,-0x1ba));}async['createHeaders'](_0xc503a2,_0x55094d){const _0x280cc5={_0x2e584a:0x53,_0x1ed2c3:0x86,_0x5056e7:0x151,_0x1ec79e:0xcb,_0x4a621e:0xf7,_0x2bc0e9:0x3e,_0x1f6ba2:0x2d,_0x225775:0x64,_0x2d6b4d:0x1c4,_0x32ac73:0x3e,_0x57b5e3:0xf8,_0x518a67:0xf4,_0x4208fe:0x7e,_0x4775eb:0x141,_0x9a97c8:0x12,_0x316d6b:0x68,_0x54137a:0x59,_0x4ab18d:0xe0,_0x515d38:0x8c,_0xc9cb27:0xbf,_0x380618:0x118,_0x8d4320:0x5d,_0x36b2f8:0x15,_0x30741d:0x72,_0xfae4bd:0x113,_0xab33f7:0x52,_0x1bd576:0x1b,_0x56b683:0x9f,_0x1fadfb:0xb5,_0x32c575:0xfb,_0x2762b5:0x9,_0x362310:0x29,_0x219eb2:0x2e,_0xf4179:0x16a,_0x284dff:0xcd,_0x45852c:0xd8,_0x47a9d1:0xb9,_0x1c2bcd:0xa4,_0x2af3d4:0x69},_0x245cb1={_0x2af45d:0x1e6},_0x2aa69f={_0x572cf9:0x114,_0x36973c:0xdd},_0x247109=new Headers();function _0x18a5f9(_0x3018ac,_0x27f62b,_0x2b85b6,_0x3092c3){return _0x18006e(_0x3018ac-0x94,_0x27f62b-_0x2aa69f._0x572cf9,_0x3018ac- -_0x2aa69f._0x36973c,_0x3092c3);}_0x247109['set'](_0x318164(-0x91,-_0x280cc5._0x2e584a,-0x63,-_0x280cc5._0x1ed2c3),_0x55094d[_0x318164(-0x12c,-_0x280cc5._0x5056e7,-0xf4,-0x86)]);function _0x318164(_0x129e9,_0x1b4d64,_0x3cb56e,_0x3e6910){return _0x4d4006(_0x129e9,_0x1b4d64-_0x245cb1._0x2af45d,_0x3e6910- -0x18a,_0x3e6910-0x102);}_0x247109[_0x318164(-_0x280cc5._0x1ec79e,-0x5,-0x33,-0x2d)](_0x318164(-_0x280cc5._0x4a621e,-0x9e,-0x11e,-0x5b),this[_0x18a5f9(-0x8,_0x280cc5._0x2bc0e9,-0x92,-0x69)]);_0x55094d[_0x18a5f9(_0x280cc5._0x1f6ba2,_0x280cc5._0x225775,0x44,-0x74)]!==![]&&_0x247109['set']('content-type',_0x318164(-0x94,-0xa3,-_0x280cc5._0x2d6b4d,-0x14b));this[_0x318164(-_0x280cc5._0x32ac73,-_0x280cc5._0x57b5e3,-0xe2,-_0x280cc5._0x518a67)]===_0x18a5f9(_0x280cc5._0x4208fe,-0x40,0xff,_0x280cc5._0x4775eb)?_0x247109['set'](_0x18a5f9(_0x280cc5._0x9a97c8,0xc4,0x6,-_0x280cc5._0x316d6b),_0x18a5f9(_0x280cc5._0x54137a,0xc1,0x58,0x111)+_0xc503a2['credential']['value']):_0x247109[_0x318164(-_0x280cc5._0x4ab18d,-0x11,0x8e,-0x2d)](_0x18a5f9(_0x280cc5._0x515d38,_0x280cc5._0xc9cb27,_0x280cc5._0x380618,-0x18),_0xc503a2['credential'][_0x18a5f9(0x2,-_0x280cc5._0x8d4320,-_0x280cc5._0x36b2f8,-_0x280cc5._0x30741d)]);const _0x119165=await this[_0x318164(-_0x280cc5._0xfae4bd,-_0x280cc5._0xab33f7,-0xd8,-0xa3)]?.({'body':_0xc503a2[_0x318164(0x46,-0x9e,0xb,-_0x280cc5._0x1bd576)],'credential':_0xc503a2['credential'],'request':_0xc503a2[_0x318164(-0x54,-_0x280cc5._0x56b683,-_0x280cc5._0x1fadfb,-_0x280cc5._0x32c575)],'session':_0xc503a2[_0x18a5f9(-_0x280cc5._0x2762b5,-_0x280cc5._0x362310,-0x64,-_0x280cc5._0x219eb2)],'stream':_0xc503a2[_0x318164(-0xa8,-_0x280cc5._0xf4179,-_0x280cc5._0x284dff,-_0x280cc5._0x45852c)]});for(const [_0x59bd8b,_0x3c7010]of Object['entries'](_0x119165??{})){_0x247109[_0x18a5f9(_0x280cc5._0x47a9d1,_0x280cc5._0x1c2bcd,0x8e,_0x280cc5._0x2af3d4)](_0x59bd8b,_0x3c7010);}return _0x247109;}['mapApiError'](_0x272661){return _0x272661;}[_0x18006e(-0x28,0xfd,0x8f,0xe1)](_0x3ffe25,_0x4cecb8){return resolveSessionBaseUrl(_0x3ffe25,_0x4cecb8);}[_0x4d4006(0xc,0x3,0x60,0x4e)](_0x3f63e9,_0x4e9af2){return resolveApiCredential(_0x3f63e9,_0x4e9af2);}async[_0x18006e(0x256,0x228,0x18e,0x15d)](_0x30d7df){return await createHttpError(_0x30d7df);}},AnthropicModel=class extends RoutedModel{constructor(_0x22f5ca={}){const _0x9b86b0={_0x4f6ee3:0x264,_0x8b7ba8:0x4c,_0x270455:0x55,_0x208f58:0x91,_0x4b5f69:0x222,_0x304f9a:0x215,_0x34d373:0x2c7,_0x5256f9:0x259,_0xcbe5b9:0x153,_0x4a480e:0xb0,_0x36c1a1:0x1df,_0x2bfd66:0x202,_0x3b2c81:0x14b,_0x47dbd5:0x83,_0x62d4cc:0x1af,_0x53ce82:0x100},_0x1d8ac3={_0x59dc37:0xc1,_0x396a20:0x1a,_0x190f30:0x2c},_0x505fac={_0x7629fe:0xce};function _0x5dc457(_0xc1f748,_0x1baade,_0x320f6c,_0x5ecace){return _0x4d4006(_0x5ecace,_0x1baade-_0x505fac._0x7629fe,_0xc1f748-0x1f1,_0x5ecace-0xf8);}function _0x37eea9(_0x4b0c02,_0x28116e,_0x28d81e,_0x39e5ab){return _0x4d4006(_0x28d81e,_0x28116e-_0x1d8ac3._0x59dc37,_0x39e5ab-_0x1d8ac3._0x396a20,_0x39e5ab-_0x1d8ac3._0x190f30);}super({'apiKey':_0x22f5ca[_0x5dc457(0x302,0x314,0x275,_0x9b86b0._0x4f6ee3)],'baseUrl':trimTrailingSlashes(_0x22f5ca['baseUrl']??_0x37eea9(-_0x9b86b0._0x8b7ba8,_0x9b86b0._0x270455,_0x9b86b0._0x208f58,0x16)),'fetch':_0x22f5ca['fetch'],'maxTokens':_0x22f5ca['maxTokens']??0x4000,'model':_0x22f5ca[_0x5dc457(0x200,0x156,_0x9b86b0._0x4b5f69,_0x9b86b0._0x304f9a)]??'claude-sonnet-4-20250514','reasoning':_0x22f5ca[_0x5dc457(_0x9b86b0._0x34d373,0x2bf,0x281,_0x9b86b0._0x5256f9)],'providerAdapter':new AnthropicProviderAdapter({'authScheme':_0x22f5ca[_0x37eea9(0x13c,0x78,_0x9b86b0._0xcbe5b9,_0x9b86b0._0x4a480e)]??'x-api-key','headerResolver':_0x22f5ca['headerResolver'],'protocolVersion':_0x22f5ca[_0x37eea9(0x54,0x124,0xc8,0xb6)]??_0x5dc457(_0x9b86b0._0x36c1a1,_0x9b86b0._0x2bfd66,_0x9b86b0._0x3b2c81,0x291)}),'providerSessionResolver':_0x22f5ca[_0x37eea9(_0x9b86b0._0x47dbd5,0x178,_0x9b86b0._0x62d4cc,_0x9b86b0._0x53ce82)],'requestMutators':_0x22f5ca['requestMutators'],'router':new StaticModelSurfaceRouter({'complete':ANTHROPIC_MESSAGES_SURFACE,'stream':ANTHROPIC_MESSAGES_STREAM_SURFACE}),'surfaces':createAnthropicSurfaces()});}[_0x18006e(0x108,0xd4,0x11d,0x1d2)](_0x3400ce,_0x448991){const _0xa07e70={_0x3f1b0d:0x54f,_0x206d36:0x549,_0x430864:0x61a},_0x5d75f6={_0x2fc9b0:0xc1,_0x318e28:0x43f};function _0x22b724(_0x30c0a7,_0x33e514,_0x5587c3,_0x218551){return _0x18006e(_0x30c0a7-0x1ed,_0x33e514-_0x5d75f6._0x2fc9b0,_0x33e514-_0x5d75f6._0x318e28,_0x30c0a7);}return this[_0x22b724(0x5a0,_0xa07e70._0x3f1b0d,_0xa07e70._0x206d36,_0xa07e70._0x430864)](_0x3400ce,ANTHROPIC_MESSAGES_SURFACE,_0x448991);}[_0x18006e(0x188,0x9f,0xeb,0x13c)](_0x713424,_0x4da3de){const _0x344188={_0x331a16:0x177,_0x5923f8:0x114,_0x37d123:0x1ce},_0x539a1a={_0x39469e:0x110,_0x397776:0x37};function _0x2f3bbf(_0xb3a6c9,_0x1befa6,_0x33ce88,_0x1f22db){return _0x18006e(_0xb3a6c9-_0x539a1a._0x39469e,_0x1befa6-_0x539a1a._0x397776,_0x1befa6-0x28,_0x1f22db);}return this[_0x2f3bbf(_0x344188._0x331a16,_0x344188._0x5923f8,0xec,_0x344188._0x37d123)](_0x713424,ANTHROPIC_MESSAGES_STREAM_SURFACE,_0x4da3de);}},OPENAI_CHAT_COMPLETIONS_SURFACE='openai-chat-completions',OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE=_0x4d4006(0xd8,0xb2,0xcb,0x96),OPENAI_RESPONSES_SURFACE='openai-responses',OPENAI_RESPONSES_STREAM_SURFACE='openai-responses-stream',OPENAI_RESPONSES_WEBSOCKET_SURFACE=_0x4d4006(0x14c,0x19d,0x116,0xff),OpenAiApiError=class extends Error{[_0x4d4006(0x37,0x81,-0x6,-0x56)];[_0x4d4006(0x147,0x1b3,0x16f,0x1d4)];constructor(_0x500928,_0x4fbca2,_0x1c3f71){const _0x320080={_0x4d9fd8:0x64f,_0x1a47e1:0x60c,_0x33af23:0x57c,_0x2d80c9:0x5c2,_0x3fba2a:0x474,_0x684e53:0x6e7,_0x282646:0x5ba,_0x556020:0x676},_0x456a78={_0x65858e:0x47b};super(_0x1c3f71),this[_0x1e6776(0x6a2,_0x320080._0x4d9fd8,_0x320080._0x1a47e1,0x654)]=_0x1e6776(_0x320080._0x33af23,0x542,_0x320080._0x2d80c9,0x5a3),this[_0x1e6776(_0x320080._0x3fba2a,0x3f5,0x4ae,0x550)]=_0x500928;function _0x1e6776(_0x435f68,_0x3b1e86,_0x193790,_0x325b76){return _0x18006e(_0x435f68-0x1d1,_0x3b1e86-0x1d3,_0x193790-_0x456a78._0x65858e,_0x3b1e86);}function _0x5cdec6(_0x32787f,_0x3bc502,_0x266c91,_0x4d94df){return _0x4d4006(_0x266c91,_0x3bc502-0x5d,_0x3bc502-0x17c,_0x4d94df-0x190);}this[_0x1e6776(_0x320080._0x684e53,_0x320080._0x282646,0x623,_0x320080._0x556020)]=_0x4fbca2;}};function stringifySystem(_0x17562a){const _0x41883a={_0x5b4dca:0x16d},_0x5f09c8={_0x31965b:0x1dd};function _0x475f15(_0x32e95c,_0x48bc60,_0x3ff28f,_0x1d7905){return _0x18006e(_0x32e95c-_0x5f09c8._0x31965b,_0x48bc60-0x1c4,_0x1d7905- -0x284,_0x32e95c);}return _0x17562a['map'](_0x292121=>_0x292121['text'])[_0x475f15(-0x161,-_0x41883a._0x5b4dca,-0x261,-0x215)]('\x0a\x0a');}function createToolDefinitions(_0x324094){const _0x1081d1={_0x2a54cc:0x53b},_0x150757={_0x4794d8:0x42a,_0x3cf260:0x3e2,_0x440553:0x397,_0x5acde6:0xa4,_0x3f42c3:0x37,_0x7c64b1:0x2c,_0x4c512b:0xa1,_0x24c14c:0x298,_0x2990f4:0x328,_0x119985:0x318},_0xa79cac={_0x1c7389:0x5d5,_0x49e2c7:0x13f},_0x3e4617={_0x12052c:0x233,_0x27a339:0x5b},_0x9c72cf={_0x2a0ec4:0x16c};function _0x541ed0(_0x64aca1,_0x318d13,_0x4bb4e7,_0x5390e9){return _0x18006e(_0x64aca1-0x1e9,_0x318d13-_0x9c72cf._0x2a0ec4,_0x318d13-0x4b7,_0x64aca1);}if(_0x324094['length']===0x0)return void 0x0;return _0x324094[_0x541ed0(0x5dc,_0x1081d1._0x2a54cc,0x4d1,0x5c0)](_0x2b222c=>{function _0x2019fa(_0x494a83,_0x45cd8e,_0x273a60,_0x19cf62){return _0x541ed0(_0x45cd8e,_0x19cf62- -_0x3e4617._0x12052c,_0x273a60-0x19f,_0x19cf62-_0x3e4617._0x27a339);}function _0x122c81(_0x31cf99,_0x20de46,_0x5635ca,_0x408b22){return _0x541ed0(_0x20de46,_0x5635ca- -_0xa79cac._0x1c7389,_0x5635ca-_0xa79cac._0x49e2c7,_0x408b22-0xc2);}return{'type':_0x2019fa(_0x150757._0x4794d8,_0x150757._0x3cf260,0x392,_0x150757._0x440553),'function':{'name':_0x2b222c[_0x122c81(_0x150757._0x5acde6,-_0x150757._0x3f42c3,0x73,_0x150757._0x7c64b1)],'description':_0x2b222c[_0x122c81(0xa,0x22,0x76,_0x150757._0x4c512b)],'parameters':_0x2b222c[_0x2019fa(0x3bb,_0x150757._0x24c14c,_0x150757._0x2990f4,_0x150757._0x119985)]}};});}function isImageToolResultBlock(_0x4ad823){const _0xb86783={_0x5c9c86:0x355,_0x15b775:0x487,_0x90a119:0x4a7,_0x475580:0x478,_0x1b4821:0x82,_0x1004cd:0x24,_0x541427:0x6a,_0x1c292f:0xb2,_0x4a224f:0xba,_0x1081ed:0x14c},_0xd1fee3={_0x12a482:0x46,_0x36b419:0x38f,_0x19f006:0x8};if(typeof _0x4ad823!==_0x237958(0x400,_0xb86783._0x5c9c86,0x411,0x3a3)||_0x4ad823===null||Array[_0x237958(_0xb86783._0x15b775,_0xb86783._0x90a119,0x4fe,_0xb86783._0x475580)](_0x4ad823))return![];function _0x4262f7(_0xf3c807,_0x22891a,_0x14c09a,_0x21e4b4){return _0x18006e(_0xf3c807-0xb5,_0x22891a-0x6c,_0x14c09a- -0x157,_0xf3c807);}const _0x76c1e8=_0x4ad823;function _0x237958(_0x57b70e,_0x56eef2,_0x349b1b,_0xc7e519){return _0x4d4006(_0x56eef2,_0x56eef2-_0xd1fee3._0x12a482,_0x57b70e-_0xd1fee3._0x36b419,_0xc7e519-_0xd1fee3._0x19f006);}return _0x76c1e8['type']===_0x4262f7(-0xed,-_0xb86783._0x1b4821,-_0xb86783._0x1004cd,_0xb86783._0x541427)&&_0x76c1e8[_0x4262f7(-_0xb86783._0x1c292f,-0x157,-_0xb86783._0x4a224f,-_0xb86783._0x1081ed)]?.['type']==='base64'&&typeof _0x76c1e8[_0x4262f7(-0x16f,-0x15c,-0xba,-0x8f)]['media_type']==='string'&&typeof _0x76c1e8['source'][_0x237958(0x448,0x47d,0x3d6,0x4e4)]===_0x237958(0x401,0x473,0x45a,0x49c);}function getToolResultText(_0x45ada8){const _0x45f88d={_0x37662b:0xa7,_0x52335c:0x14d,_0xcda167:0x7e,_0x14912b:0x19b,_0x2a2e9f:0x12e,_0x3be403:0x15d,_0x22d664:0x115,_0x14b3a4:0x182},_0x2f9b9a={_0x5e6763:0x3df,_0x4b2c13:0x30b,_0x529d52:0x386},_0x3016d1={_0x3871a2:0x101},_0x34b1d9={_0x46c01d:0x101,_0x4c8e39:0x102};function _0x2e9b8b(_0x555363,_0x58753d,_0x34b6cd,_0x1726e7){return _0x4d4006(_0x34b6cd,_0x58753d-_0x34b1d9._0x46c01d,_0x1726e7-0xd,_0x1726e7-_0x34b1d9._0x4c8e39);}if(typeof _0x45ada8==='string')return _0x45ada8;function _0x35a86b(_0x2e2c39,_0x136f21,_0x2ac04a,_0x20f369){return _0x18006e(_0x2e2c39-0x14c,_0x136f21-0xac,_0x2e2c39-0x38,_0x20f369);}const _0x245265=_0x45ada8['filter'](_0x4817f4=>{const _0x15d9ed={_0x4b83f9:0x26c};function _0x3c8ded(_0x26469b,_0x460fc7,_0x28ff89,_0x367cc5){return _0x2cfd(_0x26469b-_0x3016d1._0x3871a2,_0x460fc7);}function _0x44f4f2(_0x20d811,_0x5d860c,_0x58f7ff,_0x35ef2b){return _0x2cfd(_0x58f7ff-_0x15d9ed._0x4b83f9,_0x20d811);}return typeof _0x4817f4==='object'&&_0x4817f4!==null&&_0x4817f4[_0x44f4f2(0x440,_0x2f9b9a._0x5e6763,0x41d,0x4b0)]===_0x3c8ded(_0x2f9b9a._0x4b2c13,0x365,_0x2f9b9a._0x529d52,0x2a3);})['map'](_0x4801cc=>_0x4801cc[_0x2e9b8b(0x107,0x29,0x7f,0xdf)])[_0x35a86b(_0x45f88d._0x37662b,_0x45f88d._0x52335c,0x5b,_0x45f88d._0xcda167)]('\x0a\x0a')[_0x35a86b(_0x45f88d._0x14912b,_0x45f88d._0x2a2e9f,0x237,0x1b5)]();return _0x245265[_0x35a86b(_0x45f88d._0x3be403,_0x45f88d._0x22d664,0x117,0x221)]>0x0?_0x245265:_0x35a86b(0x1dc,_0x45f88d._0x14b3a4,0x25d,0x194);}function getToolResultImages(_0x4d2cd3){return Array['isArray'](_0x4d2cd3)?_0x4d2cd3['filter'](isImageToolResultBlock):[];}function parseToolInput2(_0x5eb183){const _0x32d27d={_0x3ba722:0x142,_0x3ca4da:0x17c},_0x6ee867={_0x24288e:0x14f,_0x41508d:0x2d};function _0x13dfe3(_0x901ef2,_0x20ffa8,_0x258c3f,_0x2ec29a){return _0x4d4006(_0x901ef2,_0x20ffa8-0x56,_0x2ec29a- -_0x6ee867._0x24288e,_0x2ec29a-_0x6ee867._0x41508d);}function _0x5a567a(_0x502771,_0x4013fd,_0xc2316b,_0xfbc5d){return _0x4d4006(_0x502771,_0x4013fd-0x1d3,_0xc2316b- -0x14f,_0xfbc5d-0xf1);}if(_0x5eb183[_0x5a567a(-0xf8,-0x125,-0x63,-0x90)]===0x0)return{};try{return JSON[_0x5a567a(-0x1a6,-_0x32d27d._0x3ba722,-0x152,-_0x32d27d._0x3ca4da)](_0x5eb183);}catch{return _0x5eb183;}}function isResponsesReasoningItem(_0x17f58f){const _0x33c262={_0x45d8f7:0x304,_0x56036b:0x32f,_0x29711d:0x411,_0x5368cc:0x67,_0x141510:0x45,_0xb1741c:0x43},_0x524dd8={_0x584da8:0x78,_0x15e422:0x304},_0x3b73d9={_0xe307ab:0xa4,_0x255926:0x65,_0x24c2ff:0x4b};function _0x3f478a(_0x8f60d4,_0x42205b,_0x3f0971,_0x3d0130){return _0x18006e(_0x8f60d4-_0x3b73d9._0xe307ab,_0x42205b-_0x3b73d9._0x255926,_0x8f60d4- -_0x3b73d9._0x24c2ff,_0x42205b);}function _0x1e76d3(_0x55e4b0,_0x2af80d,_0x45fc47,_0x1285b2){return _0x18006e(_0x55e4b0-0xa0,_0x2af80d-_0x524dd8._0x584da8,_0x45fc47-_0x524dd8._0x15e422,_0x55e4b0);}return typeof _0x17f58f===_0x1e76d3(_0x33c262._0x45d8f7,_0x33c262._0x56036b,0x3ae,_0x33c262._0x29711d)&&_0x17f58f!==null&&_0x3f478a(_0x33c262._0x5368cc,0x28,_0x33c262._0x141510,_0x33c262._0xb1741c)in _0x17f58f&&_0x17f58f['type']==='reasoning';}function isResponsesMessageItem(_0x207593){const _0x2a0551={_0x35d587:0x442,_0x3c6898:0x4f3,_0x5d80a1:0x4da,_0x5f5108:0x4a8,_0x36ce24:0x4f7,_0xd84e5e:0x4e9,_0x24c5bf:0x562,_0x50600a:0x54e},_0x2454d4={_0x57328a:0xed,_0x5e927d:0x106},_0x2af478={_0x196e63:0x1af,_0x43043d:0x22};function _0x3ebddf(_0x545773,_0x38e321,_0x359c35,_0x10f153){return _0x18006e(_0x545773-_0x2af478._0x196e63,_0x38e321-_0x2af478._0x43043d,_0x359c35-0x445,_0x38e321);}function _0xee7c67(_0x424ee0,_0x4df327,_0x33115a,_0x108e15){return _0x4d4006(_0x4df327,_0x4df327-_0x2454d4._0x57328a,_0x108e15-0x482,_0x108e15-_0x2454d4._0x5e927d);}return typeof _0x207593===_0xee7c67(0x51c,_0x2a0551._0x35d587,0x5a6,_0x2a0551._0x3c6898)&&_0x207593!==null&&_0x3ebddf(_0x2a0551._0x5d80a1,_0x2a0551._0x5f5108,_0x2a0551._0x36ce24,_0x2a0551._0xd84e5e)in _0x207593&&_0x207593[_0xee7c67(_0x2a0551._0x24c5bf,_0x2a0551._0x50600a,0x459,0x4fb)]==='message';}function isResponsesFunctionCallItem(_0x46a0b4){const _0x48c2ea={_0x45b79a:0x4b6,_0x5d1125:0x3b7,_0x2e2de5:0x467,_0x5de2e7:0xf2},_0xc1e425={_0x18470d:0x16d,_0x57369b:0x1e0,_0x4fc87c:0x40},_0x17a858={_0x24d7e3:0x196,_0xa745d4:0x3bd};function _0x2dfdbe(_0x705a63,_0xf8f09,_0x3dd122,_0x4cf141){return _0x18006e(_0x705a63-_0x17a858._0x24d7e3,_0xf8f09-0x13e,_0x4cf141-_0x17a858._0xa745d4,_0x3dd122);}function _0x50f1fd(_0xaf80e,_0x18069f,_0x4e64ec,_0x24b5fc){return _0x18006e(_0xaf80e-_0xc1e425._0x18470d,_0x18069f-_0xc1e425._0x57369b,_0xaf80e-_0xc1e425._0x4fc87c,_0x24b5fc);}return typeof _0x46a0b4===_0x2dfdbe(0x51f,_0x48c2ea._0x45b79a,_0x48c2ea._0x5d1125,_0x48c2ea._0x2e2de5)&&_0x46a0b4!==null&&'type'in _0x46a0b4&&_0x46a0b4[_0x50f1fd(_0x48c2ea._0x5de2e7,0xf1,0x14c,0x1bc)]==='function_call';}function createContentBlocks(_0x20b7f3,_0x3a2d9c,_0x5d79e0){const _0x13195c={_0x3d5383:0xf6,_0x56acef:0xf1,_0x23221c:0x73,_0x179d49:0x1bd,_0x1feeb1:0x26f,_0x162d21:0x86,_0x3f8c8c:0xc7,_0x19f7c5:0x16c,_0x3d018e:0x99,_0x1492cf:0x1df,_0x4ffe52:0x280,_0x53b891:0x257,_0x46853c:0x8a,_0x19997d:0x110,_0x153845:0x159,_0x1a767c:0x90,_0x1f2649:0x14b,_0x9d6167:0x309,_0x43793e:0x34e,_0x3b1e58:0x17f,_0x334a9f:0x12d,_0x45e7bf:0xba,_0x42c772:0x211,_0x3ba09c:0x1ad},_0x419cde={_0x28e1e0:0x4,_0x1d38bc:0x17d},_0x3ef5ef={_0x541e51:0xa3,_0x9f5eb4:0x21b},_0x29738d=[];_0x5d79e0&&_0x5d79e0[_0x550d23(-_0x13195c._0x3d5383,-0x39,-0x1c0,-_0x13195c._0x56acef)]>0x0&&_0x29738d[_0x550d23(-0xcb,-_0x13195c._0x23221c,-0x174,-0x15f)]({'type':_0x564233(_0x13195c._0x179d49,0x22d,0x33a,_0x13195c._0x1feeb1),'summary':[],'text':_0x5d79e0});function _0x550d23(_0x223ced,_0x315f33,_0x41c33b,_0x38d126){return _0x18006e(_0x223ced-_0x3ef5ef._0x541e51,_0x315f33-0x196,_0x223ced- -_0x3ef5ef._0x9f5eb4,_0x38d126);}_0x20b7f3[_0x550d23(-0xf6,-_0x13195c._0x162d21,-0x59,-_0x13195c._0x3f8c8c)]>0x0&&_0x29738d['push']({'type':'text','text':_0x20b7f3});function _0x564233(_0x3b25b4,_0x5e9cf7,_0x8c7bf,_0x240587){return _0x4d4006(_0x3b25b4,_0x5e9cf7-_0x419cde._0x28e1e0,_0x240587-_0x419cde._0x1d38bc,_0x240587-0xa7);}for(const _0x212eb4 of _0x3a2d9c){if(_0x212eb4['id'][_0x550d23(-0xb8,-_0x13195c._0x19f7c5,-0x18,-_0x13195c._0x3d018e)]()['length']===0x0||_0x212eb4[_0x564233(0x19b,_0x13195c._0x1492cf,_0x13195c._0x4ffe52,_0x13195c._0x53b891)][_0x550d23(-_0x13195c._0x46853c,-0x100,-0x60,-_0x13195c._0x19997d)][_0x550d23(-0xb8,-_0x13195c._0x153845,-_0x13195c._0x1a767c,-_0x13195c._0x1f2649)]()[_0x550d23(-_0x13195c._0x3d5383,-0x11c,-0xcf,-0x177)]===0x0)continue;_0x29738d[_0x564233(_0x13195c._0x9d6167,_0x13195c._0x43793e,0x2e0,0x294)]({'type':_0x550d23(-_0x13195c._0x3b1e58,-0xf2,-0x134,-_0x13195c._0x334a9f),'id':_0x212eb4['id'],'name':_0x212eb4[_0x564233(0x1db,0x261,0x1cf,0x257)]['name'],'input':parseToolInput2(_0x212eb4[_0x550d23(-0x108,-0xa1,-0x81,-_0x13195c._0x45e7bf)][_0x550d23(-0x18e,-_0x13195c._0x42c772,-_0x13195c._0x3ba09c,-0xef)])});}return _0x29738d;}function createUsage(_0x59f715){const _0x2940d7={_0x59cdd5:0xae,_0x5d15f5:0x1b5,_0x163849:0x3e5,_0x3a396e:0x35c,_0x517053:0x3f1,_0x119774:0x327,_0x1467f4:0x469,_0x146724:0x65,_0x748a87:0x6},_0x29d689={_0x3489eb:0x1c6,_0x58f4c6:0xa8},_0x4626f4={_0x281ee2:0x181,_0x40d3e4:0x50,_0x27976e:0x1d1};function _0x4db4c7(_0x2d596c,_0x45d188,_0x29e12e,_0x2e333c){return _0x4d4006(_0x2d596c,_0x45d188-_0x4626f4._0x281ee2,_0x45d188- -_0x4626f4._0x40d3e4,_0x2e333c-_0x4626f4._0x27976e);}function _0x377369(_0x46e8b3,_0x1032d6,_0x172dac,_0x117176){return _0x4d4006(_0x172dac,_0x1032d6-_0x29d689._0x3489eb,_0x46e8b3-0x3fd,_0x117176-_0x29d689._0x58f4c6);}return{'inputTokens':_0x59f715?.['prompt_tokens']??0x0,'outputTokens':_0x59f715?.[_0x4db4c7(_0x2940d7._0x59cdd5,0x111,_0x2940d7._0x5d15f5,0x1d3)]??0x0,..._0x59f715?.[_0x377369(0x3f1,_0x2940d7._0x163849,_0x2940d7._0x3a396e,0x39c)]?.[_0x4db4c7(0x53,-0x69,0x1e,0x28)]!==void 0x0?{'reasoningTokens':_0x59f715[_0x377369(_0x2940d7._0x517053,_0x2940d7._0x119774,0x328,_0x2940d7._0x1467f4)][_0x4db4c7(-_0x2940d7._0x146724,-0x69,-_0x2940d7._0x748a87,-0x22)]}:{}};}function resolveReasoningVisibility2(_0x49786b){const _0x294810={_0x2646d2:0x21e,_0x408ba5:0x22d},_0x4bc7ae={_0xcb6fe:0x1c9,_0xcda990:0x19};function _0x546a79(_0x2b4c27,_0x43c13a,_0x440e95,_0x2c9415){return _0x18006e(_0x2b4c27-_0x4bc7ae._0xcb6fe,_0x43c13a-_0x4bc7ae._0xcda990,_0x2c9415- -0x2bd,_0x440e95);}return _0x49786b['reasoning']?.['visibility']??_0x546a79(-_0x294810._0x2646d2,-0x1ec,-0x247,-_0x294810._0x408ba5);}function isUserVisibleReasoning(_0x24bc35){const _0x921131={_0x2ea496:0x547,_0x485a20:0x60b},_0x38c725={_0x5c2a18:0x2ae},_0x30a8b0={_0x17bcee:0x1e9,_0x45cc7a:0x4de};function _0x3a0100(_0x1fa93d,_0x47ffae,_0x1e294e,_0x410bf5){return _0x18006e(_0x1fa93d-_0x30a8b0._0x17bcee,_0x47ffae-0x72,_0x1e294e-_0x30a8b0._0x45cc7a,_0x410bf5);}function _0x1c7f5c(_0x363494,_0x46221c,_0x370ccc,_0x44fa57){return _0x18006e(_0x363494-0x86,_0x46221c-0x1c3,_0x46221c- -_0x38c725._0x5c2a18,_0x370ccc);}return resolveOpenAiReasoningConfig(_0x24bc35[_0x3a0100(0x665,0x5e6,0x5ed,0x6ad)])!==void 0x0&&resolveReasoningVisibility2(_0x24bc35)===_0x3a0100(_0x921131._0x2ea496,0x4cc,0x56e,_0x921131._0x485a20);}function createChatRequestBody(_0x440420,_0x49bb39){const _0x105eba={_0x9c3fba:0x136,_0x44483a:0xb9,_0x5a90ed:0xb3,_0xeb368b:0xd,_0xcb21b4:0x2d,_0x2fdf51:0x9c,_0x123ce5:0xe9,_0x3af4af:0x148,_0x4625e3:0x41,_0xb16c0e:0xd0,_0x2cb895:0x28d,_0x23b4be:0x28e,_0x50dc81:0xc6,_0x1464aa:0x1dc,_0x2d7abe:0x222,_0xcb60b5:0x12e,_0x558abb:0xac,_0x32832f:0x94,_0x1fd599:0x82,_0x19115b:0x89,_0x25fba6:0x78,_0x3d0f6b:0x80,_0x248950:0x6f,_0x1bae2f:0x18d,_0x597f7e:0x235,_0xfa008c:0xc2,_0x4d11ad:0xe5,_0x676796:0x6,_0x5e4841:0x1a6,_0x4597b4:0x11f,_0x4e2d99:0x23,_0x3efc1e:0x15e,_0x481dec:0x2,_0x6e88f1:0x167,_0x69c17:0x132,_0x17a36c:0x157,_0x5d0c14:0x1fb,_0x1e76f0:0x161,_0x4db76b:0xc6,_0xa5fb7e:0x76,_0x4b9b81:0x114,_0x3e6181:0x118,_0x2bf403:0xa4,_0x3944d0:0xe2,_0x30bd20:0x266,_0x470482:0x11c,_0x507fcc:0x19b,_0x5d78c4:0xf4,_0x285a5b:0x12e,_0x1d380d:0xb6,_0x7e272f:0x25d,_0x46a622:0x12,_0x548705:0x14b,_0xe7d0c5:0xfd,_0x3dd1d4:0x194,_0x5012b8:0x134},_0x33db5a={_0x51b5e5:0x201,_0x1b7275:0x1a3,_0x514b4c:0x254,_0x345c4c:0x1b5,_0x4e61f6:0x329,_0x34c6d0:0x2c9,_0x362c20:0x3ca,_0x22015c:0x222,_0x3d79b7:0x30d,_0x4068db:0x345,_0x53d5d6:0x363,_0x410028:0x336,_0x100d38:0x2e0,_0x163934:0x2ea,_0x38c034:0x2ce,_0x357fb1:0x280,_0x1d64e2:0x1b4,_0x238bc4:0x2f5,_0x37507f:0x2a7,_0x41ae49:0x1d0,_0x2ae4d4:0x23f,_0x477f76:0x24c,_0x4d3785:0x23c,_0x125efe:0x22a,_0x579653:0x2d8},_0x4faca0={_0x336db2:0x165},_0x25d9ab={_0x1224f7:0xb1},_0x28abd0=[],_0x912555=stringifySystem(_0x440420[_0x56b43e(-_0x105eba._0x9c3fba,-_0x105eba._0x44483a,-0x124,-_0x105eba._0x5a90ed)]);function _0x48b9fd(_0x327151,_0x4ff199,_0x56b8da,_0x5e57e4){return _0x4d4006(_0x4ff199,_0x4ff199-0x149,_0x56b8da- -0x188,_0x5e57e4-0x1d9);}_0x912555[_0x48b9fd(-_0x105eba._0xeb368b,_0x105eba._0xcb21b4,-_0x105eba._0x2fdf51,0x8)]>0x0&&_0x28abd0[_0x56b43e(-0x16c,-_0x105eba._0x123ce5,-0x151,-_0x105eba._0x3af4af)]({'role':_0x48b9fd(-0x3,0x1d,-_0x105eba._0x4625e3,-_0x105eba._0xb16c0e),'content':_0x912555});function _0x56b43e(_0x59f84b,_0x441285,_0x5b5e7b,_0x550074){return _0x4d4006(_0x5b5e7b,_0x441285-0xb2,_0x441285- -0x200,_0x550074-_0x25d9ab._0x1224f7);}for(const _0x2165d8 of _0x440420[_0x56b43e(-_0x105eba._0x2cb895,-0x215,-0x1ce,-_0x105eba._0x23b4be)]){const _0x37fb10=[],_0x51eadc=[],_0x1edf6f=()=>{const _0x4f3ba7={_0x2fcb60:0x3,_0x777fcf:0x353,_0xb888d8:0x8a};if(_0x2165d8[_0xaa6bdc(_0x33db5a._0x51b5e5,_0x33db5a._0x1b7275,_0x33db5a._0x514b4c,_0x33db5a._0x345c4c)]===_0x4bd115(_0x33db5a._0x4e61f6,0x315,0x330,0x332)){if(_0x37fb10[_0xaa6bdc(0x2ae,0x23f,0x28c,0x21c)]===0x0&&_0x51eadc[_0x4bd115(0x2cb,0x336,_0x33db5a._0x34c6d0,0x2e0)]===0x0)return;_0x28abd0[_0x4bd115(0x2b0,_0x33db5a._0x362c20,0x2e5,0x30b)]({'role':_0xaa6bdc(_0x33db5a._0x22015c,0x291,0x354,_0x33db5a._0x3d79b7),'content':_0x37fb10[_0x4bd115(_0x33db5a._0x4068db,_0x33db5a._0x53d5d6,_0x33db5a._0x410028,_0x33db5a._0x100d38)]>0x0?_0x37fb10[_0x4bd115(_0x33db5a._0x163934,_0x33db5a._0x38c034,_0x33db5a._0x357fb1,0x22a)]('\x0a\x0a'):null,..._0x51eadc['length']>0x0?{'tool_calls':_0x51eadc[_0xaa6bdc(_0x33db5a._0x1d64e2,0x159,0x8e,0x20f)](0x0)}:{}}),_0x37fb10[_0x4bd115(_0x33db5a._0x238bc4,_0x33db5a._0x37507f,0x284,0x2e0)]=0x0;return;}function _0x4bd115(_0x35d89a,_0x53be0a,_0x2db550,_0x10e028){return _0x48b9fd(_0x35d89a-0x31,_0x53be0a,_0x10e028-0x37c,_0x10e028-_0x4faca0._0x336db2);}function _0xaa6bdc(_0x2278fa,_0x17a3df,_0x28b5c5,_0x3f79f6){return _0x56b43e(_0x2278fa-_0x4f3ba7._0x2fcb60,_0x17a3df-_0x4f3ba7._0x777fcf,_0x3f79f6,_0x3f79f6-_0x4f3ba7._0xb888d8);}if(_0x37fb10[_0xaa6bdc(_0x33db5a._0x41ae49,_0x33db5a._0x2ae4d4,_0x33db5a._0x477f76,_0x33db5a._0x4d3785)]===0x0)return;_0x28abd0[_0xaa6bdc(0x2c0,0x26a,_0x33db5a._0x1b7275,0x32a)]({'role':_0x2165d8['role'],'content':_0x37fb10[_0x4bd115(0x25f,0x235,0x2bb,_0x33db5a._0x125efe)]('\x0a\x0a')}),_0x37fb10[_0xaa6bdc(0x22c,_0x33db5a._0x2ae4d4,_0x33db5a._0x579653,0x26c)]=0x0;};for(const _0x2e0740 of normalizeContent(_0x2165d8[_0x48b9fd(-0x24,-0x5b,-_0x105eba._0x50dc81,-0xc0)])){if(_0x2e0740[_0x56b43e(-_0x105eba._0x1464aa,-0x187,-0xeb,-_0x105eba._0x2d7abe)]===_0x56b43e(-0xa2,-_0x105eba._0xcb60b5,-0x185,-0xd0)){_0x37fb10[_0x48b9fd(-_0x105eba._0x558abb,0x3b,-0x71,-_0x105eba._0x32832f)](_0x2e0740[_0x56b43e(-0x186,-0x12e,-_0x105eba._0x1fd599,-_0x105eba._0x19115b)]);continue;}if(_0x2e0740[_0x48b9fd(-_0x105eba._0x25fba6,-_0x105eba._0x3d0f6b,-0x10f,-_0x105eba._0x248950)]===_0x56b43e(-_0x105eba._0x1bae2f,-0x19d,-_0x105eba._0x597f7e,-0x21b)){_0x51eadc[_0x56b43e(-0x19d,-0xe9,-0x33,-_0x105eba._0xfa008c)]({'id':_0x2e0740['id'],'type':_0x48b9fd(-0x102,-0x75,-0xae,-0x5c),'function':{'name':_0x2e0740[_0x48b9fd(-_0x105eba._0x4d11ad,-0xfa,-0x30,-_0x105eba._0x676796)],'arguments':JSON['stringify'](_0x2e0740[_0x56b43e(-_0x105eba._0x5e4841,-0x17a,-0x13b,-0x15b)]??{})}});continue;}if(_0x2e0740[_0x56b43e(-0x11e,-0x187,-0xcf,-0x188)]!==_0x56b43e(-_0x105eba._0x4597b4,-0x11e,-0x8b,-0x6b))continue;_0x1edf6f(),_0x28abd0['push']({'role':'tool','content':getToolResultText(_0x2e0740[_0x48b9fd(-_0x105eba._0x4e2d99,-_0x105eba._0x3efc1e,-0xc6,-_0x105eba._0x481dec)]),'tool_call_id':_0x2e0740[_0x56b43e(-_0x105eba._0x6e88f1,-_0x105eba._0x69c17,-_0x105eba._0x17a36c,-_0x105eba._0x5d0c14)]});const _0x2bd928=getToolResultImages(_0x2e0740[_0x48b9fd(-0x8,-_0x105eba._0x1e76f0,-_0x105eba._0x4db76b,-0x15d)]);_0x2bd928[_0x56b43e(-_0x105eba._0xa5fb7e,-_0x105eba._0x4b9b81,-_0x105eba._0x3e6181,-0x1dc)]>0x0&&_0x28abd0[_0x48b9fd(-0x5e,-_0x105eba._0x2bf403,-0x71,-_0x105eba._0x3944d0)]({'role':_0x48b9fd(-_0x105eba._0x30bd20,-_0x105eba._0x470482,-_0x105eba._0x507fcc,-_0x105eba._0x5d78c4),'content':[{'type':_0x56b43e(-0x123,-_0x105eba._0x285a5b,-0x10f,-0x12c),'text':_0x48b9fd(-0x1f5,-_0x105eba._0x1d380d,-0x17a,-0xb8)+_0x2e0740['tool_use_id']+'.'},..._0x2bd928[_0x56b43e(-_0x105eba._0x7e272f,-0x1b5,-0x1e4,-0x1e8)](_0x3d3ab1=>({'type':_0x56b43e(-0x26,-0xd4,-0xd1,-0xaf),'image_url':{'url':_0x56b43e(-0x6e,-0x12d,-0xea,-0x19f)+_0x3d3ab1[_0x56b43e(-0x24a,-0x19c,-0x130,-0x1bf)][_0x48b9fd(-0xff,-0x153,-0x11e,-0x190)]+_0x48b9fd(-0xe2,-0xe7,-0xe0,-0x124)+_0x3d3ab1['source'][_0x48b9fd(-0x184,-0x74,-0xcf,-0x175)]}}))]});}_0x1edf6f();}const _0x340b27=resolveOpenAiReasoningConfig(_0x440420[_0x56b43e(-0xea,-0x12a,-0xcd,-0x183)]);return{'model':_0x440420['model'],'messages':_0x28abd0,'stream':_0x49bb39,..._0x340b27?{'max_completion_tokens':_0x440420[_0x56b43e(-0x60,-0x9c,-_0x105eba._0x46a622,0x29)]}:{'max_tokens':_0x440420['maxTokens']},..._0x340b27?.[_0x56b43e(-_0x105eba._0x548705,-0x1be,-0x248,-_0x105eba._0xe7d0c5)]?{'reasoning_effort':_0x340b27['effort']}:{},...createToolDefinitions(_0x440420[_0x56b43e(-0x166,-_0x105eba._0x3dd1d4,-_0x105eba._0x5012b8,-0xe5)])?{'tools':createToolDefinitions(_0x440420['tools'])}:{}};}function createResponsesRequestBody(_0x5cc09e,_0x2608bf){return{...toOpenAiResponsesRequest(_0x5cc09e),..._0x2608bf?{'stream':!![]}:{},'store':![]};}function createOpenAiResponsesWebSocketEvent(_0x284ca6,_0x522ebb={}){const _0x22d902={_0x174682:0x18e,_0x129596:0xdf,_0x191f8a:0x14,_0x27c9:0xc6,_0x5295c1:0x1a},_0x342a40={_0x4f6834:0x163,_0x400b0b:0xe,_0x3b479c:0x274};function _0x24af7f(_0x50eb8a,_0x43fe64,_0x4ded36,_0x486427){return _0x18006e(_0x50eb8a-0x16f,_0x43fe64-0xbc,_0x43fe64- -0x24d,_0x4ded36);}const _0xa11c75=toOpenAiResponsesRequest(_0x284ca6);function _0x272017(_0x4849fa,_0x169c41,_0x40f819,_0x3d8928){return _0x18006e(_0x4849fa-_0x342a40._0x4f6834,_0x169c41-_0x342a40._0x400b0b,_0x40f819- -_0x342a40._0x3b479c,_0x169c41);}return{'type':_0x272017(-0x2b7,-0x160,-0x216,-0x25f),..._0xa11c75,..._0x522ebb['input']?{'input':_0x522ebb[_0x24af7f(-0x16c,-_0x22d902._0x174682,-_0x22d902._0x129596,-0x22d)]}:{},..._0x522ebb[_0x24af7f(-_0x22d902._0x191f8a,-_0x22d902._0x27c9,-_0x22d902._0x5295c1,-0x51)]?{'previous_response_id':_0x522ebb[_0x24af7f(-0x10e,-_0x22d902._0x27c9,-0xe9,-0x178)]}:{},'store':![]};}function normalizeAssistantContent(_0x271b21){const _0x3ac8ac={_0x25c777:0xe4,_0x56ba34:0xbf,_0x8ab0ca:0x2b,_0x596c6e:0x119},_0xaf5dfb={_0x3964e1:0x119,_0xfb315f:0x108,_0x5167d7:0xc1,_0x57578e:0x239},_0x3e01a9={_0x5a84e3:0x1f7,_0x4996d1:0xc5},_0x5a235b={_0x1f555e:0xc5,_0x409eb1:0x160};if(typeof _0x271b21===_0x5288d6(-0x122,-0x63,-_0x3ac8ac._0x25c777,-0x118))return _0x271b21;if(!Array[_0x5288d6(0x18,0x23,_0x3ac8ac._0x56ba34,_0x3ac8ac._0x8ab0ca)](_0x271b21))return'';function _0x5288d6(_0x2c87,_0x485b76,_0x4e09a0,_0xc85a88){return _0x4d4006(_0x4e09a0,_0x485b76-_0x5a235b._0x1f555e,_0x485b76- -0xd5,_0xc85a88-_0x5a235b._0x409eb1);}function _0x1e00d3(_0x423c4a,_0x2b3e54,_0x271235,_0x44903c){return _0x4d4006(_0x44903c,_0x2b3e54-0x13f,_0x423c4a- -_0x3e01a9._0x5a84e3,_0x44903c-_0x3e01a9._0x4996d1);}return _0x271b21[_0x1e00d3(-0x1ac,-0x1e2,-0x233,-_0x3ac8ac._0x596c6e)](_0x4de4a2=>{const _0x116de9={_0x3010cd:0x19,_0x5c14c0:0x10e};function _0xaf1c09(_0x52eccc,_0x135372,_0x4220f6,_0x2259b5){return _0x1e00d3(_0x135372-0x22d,_0x135372-_0x116de9._0x3010cd,_0x4220f6-_0x116de9._0x5c14c0,_0x2259b5);}function _0x2a9de5(_0x2e8c70,_0x3b75fe,_0x3521a7,_0x4e715a){return _0x1e00d3(_0x3b75fe- -0xa4,_0x3b75fe-0x13f,_0x3521a7-0x1a5,_0x4e715a);}return _0x4de4a2['type']===_0xaf1c09(_0xaf5dfb._0x3964e1,_0xaf5dfb._0xfb315f,_0xaf5dfb._0x5167d7,0x80)?_0x4de4a2['text']:_0x4de4a2[_0x2a9de5(-0x150,-0x1cb,-0x17d,-_0xaf5dfb._0x57578e)];})['join']('');}function normalizeResponsesMessageContent(_0x33961f){const _0x41158c={_0x3997b3:0x48,_0x48bb05:0x55,_0x37c5e6:0xb0,_0x4a74e9:0x3a,_0x30d764:0xc4},_0x397e22={_0x46bb4b:0x240,_0x1f997b:0x21b,_0x4c6cdb:0x2dc,_0x844638:0x1e8,_0x3cd79b:0x33a,_0x442f16:0x3ea,_0x390ad2:0x337,_0x3f8c60:0x248,_0x36029b:0x1fa,_0x49d77:0x411,_0x3f3f13:0x318},_0x3a4919={_0x35fe50:0xa1},_0x2a003b={_0x3fc904:0x44,_0x31eda4:0x60},_0x37c79f={_0x38b61d:0x17e,_0x426bed:0xa1};function _0x23c32e(_0x4f0108,_0x5d237d,_0x188807,_0x2d7745){return _0x18006e(_0x4f0108-0x7b,_0x5d237d-_0x37c79f._0x38b61d,_0x188807- -_0x37c79f._0x426bed,_0x5d237d);}if(!Array[_0x23c32e(_0x41158c._0x3997b3,_0x41158c._0x48bb05,0x90,_0x41158c._0x37c5e6)](_0x33961f))return'';function _0x254e0b(_0xd2a510,_0x4f4fbe,_0x66ed07,_0x36c3c0){return _0x4d4006(_0x36c3c0,_0x4f4fbe-_0x2a003b._0x3fc904,_0xd2a510-_0x2a003b._0x31eda4,_0x36c3c0-0x1a8);}return _0x33961f[_0x23c32e(0x1a,-0xb4,-0x1d,0x62)](_0x41c46a=>{const _0x3af93b={_0x4690b8:0x34b};if(!_0x41c46a||typeof _0x41c46a!==_0x520bca(_0x397e22._0x46bb4b,0x2e0,0x291,_0x397e22._0x1f997b))return'';const _0x5bfd9f=_0x41c46a;if(_0x5bfd9f[_0x520bca(0x248,_0x397e22._0x4c6cdb,_0x397e22._0x844638,0x2ed)]==='output_text'&&typeof _0x5bfd9f['text']===_0x3882e2(0x327,_0x397e22._0x3cd79b,0x355,_0x397e22._0x442f16))return _0x5bfd9f[_0x520bca(0x2a1,0x2d0,0x35c,_0x397e22._0x390ad2)];if(_0x5bfd9f[_0x520bca(_0x397e22._0x3f8c60,_0x397e22._0x36029b,0x2c0,0x257)]===_0x3882e2(0x3d0,_0x397e22._0x49d77,0x3b3,0x44f)&&typeof _0x5bfd9f['refusal']===_0x3882e2(0x3cd,0x2d9,0x355,_0x397e22._0x3f3f13))return _0x5bfd9f['refusal'];function _0x3882e2(_0x5f2237,_0x23b55f,_0x20f02c,_0x23b8cf){return _0x23c32e(_0x5f2237-0xf1,_0x23b8cf,_0x20f02c-_0x3af93b._0x4690b8,_0x23b8cf-0x49);}function _0x520bca(_0x421a8e,_0x258dd0,_0x4951c7,_0x478ca2){return _0x254e0b(_0x421a8e-0x16f,_0x258dd0-0xaa,_0x4951c7-_0x3a4919._0x35fe50,_0x4951c7);}return'';})[_0x254e0b(0x96,_0x41158c._0x4a74e9,0x6e,_0x41158c._0x30d764)]('');}function extractOpenAiReasoningText(_0x3f0102){const _0x42ad8b={_0x13f32a:0x5e8,_0x3a9911:0x54c,_0x2952a0:0x78,_0x1f41e9:0x105,_0x32c4fc:0x18,_0x5f140e:0x18,_0x475eaa:0x5a5,_0x95503b:0x544,_0x229a52:0x58c,_0x5c7230:0x5b7,_0x3ed370:0x50e,_0x2fe159:0xfc,_0x169a6d:0xd0,_0x390b50:0x6,_0x44d82f:0x17,_0x2ab064:0x500,_0x57217c:0x502},_0xe9ac62={_0x18413b:0xd5,_0x5b7841:0xea,_0x12c4fb:0x181},_0x3da2d2={_0x3d9a33:0x80,_0x395a32:0x4ca};if(typeof _0x3f0102[_0x1fb3de(0x59c,_0x42ad8b._0x13f32a,_0x42ad8b._0x3a9911,0x4d2)]===_0x5bcd23(-0xf,-0xfa,-_0x42ad8b._0x2952a0,-_0x42ad8b._0x1f41e9))return _0x3f0102[_0x5bcd23(0x19,-0xb3,-_0x42ad8b._0x32c4fc,_0x42ad8b._0x5f140e)];function _0x1fb3de(_0x47529e,_0x9c875b,_0x1499e3,_0x1e93a3){return _0x4d4006(_0x1e93a3,_0x9c875b-_0x3da2d2._0x3d9a33,_0x47529e-_0x3da2d2._0x395a32,_0x1e93a3-0x80);}function _0x5bcd23(_0x4e5986,_0x1dcb5d,_0x194130,_0x5013ce){return _0x4d4006(_0x4e5986,_0x1dcb5d-_0xe9ac62._0x18413b,_0x194130- -_0xe9ac62._0x5b7841,_0x5013ce-_0xe9ac62._0x12c4fb);}if(!Array[_0x1fb3de(0x5c2,_0x42ad8b._0x475eaa,0x609,_0x42ad8b._0x95503b)](_0x3f0102[_0x1fb3de(_0x42ad8b._0x229a52,0x5d1,0x63a,_0x42ad8b._0x5c7230)]))return'';return _0x3f0102[_0x1fb3de(_0x42ad8b._0x229a52,0x557,0x649,_0x42ad8b._0x3ed370)][_0x5bcd23(-0x126,-_0x42ad8b._0x2fe159,-_0x42ad8b._0x169a6d,-0x18c)](_0x4175c4=>_0x4175c4[_0x1fb3de(0x543,0x4db,0x5c4,0x4c8)]===_0x1fb3de(0x5f3,0x6b1,0x682,0x645)&&typeof _0x4175c4[_0x1fb3de(0x59c,0x531,0x576,0x4f0)]===_0x1fb3de(0x53c,0x4bf,0x4f8,0x478))[_0x5bcd23(-_0x42ad8b._0x390b50,_0x42ad8b._0x44d82f,-0x9f,0x3)](_0x20bbf7=>_0x20bbf7[_0x5bcd23(-0x5a,0x8a,-0x18,-0x75)]??'')[_0x1fb3de(_0x42ad8b._0x2ab064,0x45e,_0x42ad8b._0x57217c,0x456)]('');}function createOpenAiReasoningBlock(_0x32b2cc){const _0x556c9b={_0xe3d97d:0x37a,_0x4a4ddb:0x3ee,_0x436f41:0x306,_0x2ee8ef:0x32b,_0x45fb44:0x3c9,_0x361f9c:0x4b8,_0x1907eb:0x547,_0x53d278:0x58f},_0x373111={_0x3d0111:0x1dc,_0x3e1b2a:0x7e},_0x53a81e=extractOpenAiReasoningText(_0x32b2cc);function _0x26eab9(_0x125722,_0x194484,_0x21fd7a,_0x2eb62b){return _0x18006e(_0x125722-0x192,_0x194484-0x140,_0x21fd7a-0x4b3,_0x194484);}function _0x10e185(_0x39c044,_0x54cd1d,_0x3b2f1f,_0x2635e9){return _0x18006e(_0x39c044-_0x373111._0x3d0111,_0x54cd1d-_0x373111._0x3e1b2a,_0x39c044-0x270,_0x2635e9);}return{'type':_0x10e185(0x39b,_0x556c9b._0xe3d97d,0x3d3,_0x556c9b._0x4a4ddb),'summary':structuredClone(_0x32b2cc[_0x10e185(_0x556c9b._0x436f41,0x365,_0x556c9b._0x2ee8ef,_0x556c9b._0x45fb44)]??[]),..._0x32b2cc['id']?{'id':_0x32b2cc['id']}:{},..._0x32b2cc[_0x26eab9(0x45d,_0x556c9b._0x361f9c,0x4d0,0x4e4)]?{'encryptedContent':_0x32b2cc[_0x26eab9(_0x556c9b._0x1907eb,_0x556c9b._0x53d278,0x4d0,0x508)]}:{},..._0x53a81e['length']>0x0?{'text':_0x53a81e}:{}};}function hasVisibleOpenAiReasoning(_0x13f2e6){const _0xd97136={_0x140176:0x412,_0x191331:0x39e,_0x546071:0x2a4,_0x3075a8:0x304,_0x31ba45:0x31a},_0x53b077={_0x4cb3c2:0xd8},_0x254aee={_0x15984c:0x292};function _0x461073(_0x24fa5b,_0x8af3f,_0x2f6794,_0x10953f){return _0x4d4006(_0x24fa5b,_0x8af3f-0x119,_0x2f6794-_0x254aee._0x15984c,_0x10953f-0x1e4);}function _0x86ebba(_0x43232a,_0x81cfa7,_0x26adc0,_0x310b01){return _0x4d4006(_0x26adc0,_0x81cfa7-0xee,_0x81cfa7- -_0x53b077._0x4cb3c2,_0x310b01-0x174);}return _0x13f2e6[_0x86ebba(-0x3e,-0x7b,-0xc5,-0x138)]['length']>0x0||typeof _0x13f2e6[_0x461073(0x429,0x3e0,0x364,_0xd97136._0x140176)]===_0x461073(_0xd97136._0x191331,_0xd97136._0x546071,_0xd97136._0x3075a8,_0xd97136._0x31ba45);}function parseChatCompletionResponse(_0x5524cf){const _0x37395f={_0x30fa05:0x298,_0x2b4702:0x1e5,_0x5908ec:0x30a,_0x2597e9:0x2c4,_0x352822:0x23b,_0x4c35c3:0x305,_0x4eb54d:0x2db,_0x2b36a6:0x2fe,_0x47d1e6:0x2a5,_0x4c51c9:0x3ad,_0x579794:0x353,_0x5015b4:0x32d,_0x569623:0x288,_0xbf5412:0x216,_0x854049:0x287,_0x2a5b78:0x27e,_0x341a02:0x236,_0x4307e1:0x273,_0x3c515a:0x2aa,_0x22becf:0x294,_0x50f870:0x28d},_0x3113ea={_0x34c571:0x1ca,_0x54c218:0xea},_0x1db242={_0xf1fddc:0x84,_0xaba0a9:0x224,_0x259392:0x58},_0x5da47f=[],_0x319068=[];let _0x2dcabd='end_turn';for(const _0x2139ab of _0x5524cf[_0x5b4a42(_0x37395f._0x30fa05,0x2a7,_0x37395f._0x2b4702,_0x37395f._0x5908ec)]??[]){const _0x20880f=_0x2139ab[_0x4a41f3(_0x37395f._0x2597e9,0x1ed,_0x37395f._0x352822,0x2dc)],_0x5b178e=normalizeAssistantContent(_0x20880f?.['content']);_0x5b178e['length']>0x0&&_0x5da47f['push'](_0x5b178e),_0x20880f?.[_0x5b4a42(0x2af,_0x37395f._0x4c35c3,0x2e6,_0x37395f._0x4eb54d)]&&_0x319068[_0x4a41f3(_0x37395f._0x2b36a6,_0x37395f._0x47d1e6,0x23a,0x227)](..._0x20880f[_0x5b4a42(_0x37395f._0x4c51c9,_0x37395f._0x4c35c3,0x2d5,_0x37395f._0x579794)]),_0x2139ab['finish_reason']===_0x5b4a42(0x334,0x305,_0x37395f._0x5015b4,_0x37395f._0x569623)&&(_0x2dcabd=_0x5b4a42(_0x37395f._0xbf5412,_0x37395f._0x854049,0x1e6,0x2d5));}function _0x5b4a42(_0xf366f5,_0x5380a6,_0x272f4e,_0x5e73f1){return _0x4d4006(_0xf366f5,_0x5380a6-_0x1db242._0xf1fddc,_0x5380a6-_0x1db242._0xaba0a9,_0x5e73f1-_0x1db242._0x259392);}function _0x4a41f3(_0x1c2400,_0x1a218c,_0x3ee4a5,_0x6090c8){return _0x18006e(_0x1c2400-0x30,_0x1a218c-_0x3113ea._0x34c571,_0x3ee4a5-_0x3113ea._0x54c218,_0x1a218c);}return _0x319068[_0x4a41f3(0x247,0x272,0x20f,0x25b)]>0x0&&(_0x2dcabd='tool_use'),{'id':_0x5524cf['id']??_0x5b4a42(0x240,_0x37395f._0x2a5b78,_0x37395f._0x341a02,0x1f7)+Date['now'](),'content':createContentBlocks(_0x5da47f[_0x5b4a42(_0x37395f._0x4307e1,0x25a,0x319,_0x37395f._0x3c515a)](''),_0x319068),'stopReason':_0x2dcabd,'usage':createUsage(_0x5524cf[_0x5b4a42(_0x37395f._0x22becf,0x34a,_0x37395f._0x50f870,0x355)])};}function parseResponsesResponse(_0x2fe194,_0x6f3132){const _0x5b07c4={_0x578647:0x4ed,_0x574a18:0x462,_0xb82b12:0x43b,_0x1d8a39:0x520,_0x217c92:0x502,_0x205d0d:0x603,_0x34b70f:0x594,_0x31d819:0x498,_0x30a939:0x48a,_0x2d4267:0x476,_0xb9f3f3:0x4cf,_0x13d039:0x539,_0x130548:0x4ce,_0x2eaff1:0x620,_0x34d7b3:0x6a2,_0x4c86f0:0x4e1,_0x2bf0f7:0x644,_0x4ac6e0:0x677,_0x3ac13d:0x694,_0x393c5c:0x55b,_0x1e0a71:0x54a,_0x21d475:0x44d,_0x4a99a8:0x4d5,_0x2e4812:0x57a,_0x3f334e:0x4d0,_0x3949a4:0x65d,_0x54cc64:0x5cf,_0x160486:0x4b2,_0x3221b4:0x53d,_0x569310:0x671,_0x5a139b:0x4ac,_0x57e594:0x4c8,_0xe6a9a2:0x3cf,_0x4feba8:0x499,_0x1ccf83:0x555,_0x15d6cc:0x463,_0x408350:0x694,_0x41144b:0x53b,_0x5ee21e:0x55a,_0x38c8ca:0x541,_0x1da562:0x405,_0x13c2fb:0x584,_0xc347a2:0x612,_0xb00862:0x649,_0xb2492:0x59a,_0x5deea1:0x683,_0x38b457:0x5fc,_0x2edec4:0x610,_0x4400df:0x69e,_0x30d765:0x531,_0x2dcedc:0x553,_0x39bcac:0x584,_0x2b89f3:0x636,_0x2dad3d:0x4d3,_0x2fba9c:0x433,_0x4d5b08:0x559,_0x39df77:0x4ed,_0x5285e4:0x58f,_0x5d266a:0x4d3,_0x5b281c:0x424,_0x4e7eb3:0x467,_0x1ffffe:0x462,_0x34efab:0x491,_0x2aa2c4:0x572},_0x456e00={_0x31dcf9:0x4a,_0x52785f:0x1c2},_0x912b5a=[];for(const _0x326642 of _0x2fe194[_0xc8b618(_0x5b07c4._0x578647,0x3ba,_0x5b07c4._0x574a18,_0x5b07c4._0xb82b12)]??[]){if(isResponsesReasoningItem(_0x326642)){if(isUserVisibleReasoning(_0x6f3132)){const _0x52aabb=createOpenAiReasoningBlock(_0x326642);hasVisibleOpenAiReasoning(_0x52aabb)&&_0x912b5a['push'](_0x52aabb);}continue;}if(isResponsesMessageItem(_0x326642)){const _0x4952e2=normalizeResponsesMessageContent(_0x326642[_0xc8b618(0x559,_0x5b07c4._0x1d8a39,0x520,_0x5b07c4._0x217c92)]);_0x4952e2['length']>0x0&&_0x912b5a[_0x5e771a(_0x5b07c4._0x205d0d,0x6b5,_0x5b07c4._0x34b70f,0x64e)]({'type':'text','text':_0x4952e2});continue;}if(!isResponsesFunctionCallItem(_0x326642)||typeof _0x326642[_0xc8b618(_0x5b07c4._0x31d819,_0x5b07c4._0x30a939,_0x5b07c4._0x2d4267,_0x5b07c4._0xb9f3f3)]!==_0xc8b618(_0x5b07c4._0x13d039,0x4f8,0x4d0,_0x5b07c4._0x130548)||_0x326642[_0x5e771a(0x504,0x485,0x587,0x4e2)][_0xc8b618(_0x5b07c4._0x2eaff1,0x4d7,0x588,0x4f7)]()[_0x5e771a(0x5d8,0x608,_0x5b07c4._0x34d7b3,0x5d2)]===0x0||typeof _0x326642['name']!==_0x5e771a(0x55e,0x57a,_0x5b07c4._0x4c86f0,0x572)||_0x326642[_0x5e771a(_0x5b07c4._0x2bf0f7,_0x5b07c4._0x4ac6e0,0x5eb,_0x5b07c4._0x3ac13d)]['trim']()[_0xc8b618(_0x5b07c4._0x393c5c,0x5b2,_0x5b07c4._0x1e0a71,0x4c2)]===0x0||typeof _0x326642[_0xc8b618(0x4a9,_0x5b07c4._0x21d475,0x4b2,_0x5b07c4._0x4a99a8)]!==_0xc8b618(_0x5b07c4._0x2e4812,0x534,_0x5b07c4._0x3f334e,0x4be))continue;_0x912b5a[_0x5e771a(0x603,_0x5b07c4._0x3949a4,0x602,_0x5b07c4._0x54cc64)]({'type':_0x5e771a(0x54f,_0x5b07c4._0x160486,0x568,_0x5b07c4._0x3221b4),'id':_0x326642[_0x5e771a(0x504,0x557,0x590,0x4a0)],'name':_0x326642[_0x5e771a(0x644,0x5bb,_0x5b07c4._0x569310,0x5bd)],'input':parseToolInput2(_0x326642[_0x5e771a(0x540,0x4d6,0x489,_0x5b07c4._0x5a139b)])});}!_0x912b5a[_0xc8b618(_0x5b07c4._0x57e594,_0x5b07c4._0xe6a9a2,_0x5b07c4._0x4feba8,0x561)](_0x4ef22d=>_0x4ef22d[_0xc8b618(0x555,0x4ca,0x4d7,0x530)]==='text')&&_0x2fe194[_0x5e771a(_0x5b07c4._0x217c92,_0x5b07c4._0x1ccf83,0x4f7,_0x5b07c4._0x15d6cc)]&&_0x912b5a[_0x5e771a(_0x5b07c4._0x205d0d,_0x5b07c4._0x408350,_0x5b07c4._0x41144b,_0x5b07c4._0x5ee21e)]({'type':_0x5e771a(0x5be,0x594,0x5d1,_0x5b07c4._0x38c8ca),'text':_0x2fe194[_0xc8b618(0x47c,0x3f8,0x474,_0x5b07c4._0x1da562)]});function _0x5e771a(_0x255656,_0x4b4fd0,_0x2f1e46,_0x2f95a5){return _0x4d4006(_0x2f95a5,_0x4b4fd0-0x1b4,_0x255656-0x4ec,_0x2f95a5-0x33);}function _0xc8b618(_0x265e99,_0x5949fc,_0x22f1d9,_0x32f040){return _0x18006e(_0x265e99-_0x456e00._0x31dcf9,_0x5949fc-_0x456e00._0x52785f,_0x22f1d9-0x425,_0x32f040);}return{'id':_0x2fe194['id'],'content':_0x912b5a,'stopReason':_0x912b5a[_0x5e771a(0x527,0x53d,0x46e,_0x5b07c4._0x13c2fb)](_0x40a70b=>_0x40a70b[_0xc8b618(0x488,0x50e,0x4d7,0x578)]===_0xc8b618(0x405,0x485,0x4c1,0x468))?'tool_use':'end_turn','usage':{'inputTokens':_0x2fe194[_0x5e771a(_0x5b07c4._0xc347a2,_0x5b07c4._0xb00862,0x675,_0x5b07c4._0xb2492)]?.[_0xc8b618(0x60c,0x5ca,0x5ce,_0x5b07c4._0x5deea1)]??0x0,'outputTokens':_0x2fe194[_0xc8b618(0x63c,_0x5b07c4._0x38b457,0x584,0x54d)]?.[_0x5e771a(0x654,0x707,_0x5b07c4._0x2edec4,_0x5b07c4._0x4400df)]??0x0,..._0x2fe194[_0xc8b618(_0x5b07c4._0x30d765,_0x5b07c4._0x2dcedc,_0x5b07c4._0x39bcac,_0x5b07c4._0x2b89f3)]?.[_0xc8b618(0x4e1,0x61e,0x58f,0x606)]?.[_0x5e771a(_0x5b07c4._0x2dad3d,_0x5b07c4._0x2fba9c,0x553,_0x5b07c4._0x4d5b08)]!==void 0x0?{'reasoningTokens':_0x2fe194['usage'][_0xc8b618(_0x5b07c4._0x39df77,0x585,_0x5b07c4._0x5285e4,0x5e1)][_0x5e771a(_0x5b07c4._0x5d266a,0x4fe,0x55f,_0x5b07c4._0x5b281c)]}:{}},..._0x2fe194[_0xc8b618(0x48d,_0x5b07c4._0x4e7eb3,_0x5b07c4._0x1ffffe,0x52a)]?{'providerState':{'openaiResponsesOutput':structuredClone(_0x2fe194[_0x5e771a(0x4f0,0x4b1,_0x5b07c4._0x34efab,_0x5b07c4._0x2aa2c4)]),'openaiResponsesResponseId':_0x2fe194['id']}}:{}};}function extractErrorMessage(_0x6b0c3d){const _0x38c67a={_0x3c5ae7:0x10f,_0x5cfe40:0x174,_0x1c4e35:0x119,_0x56b670:0x3f,_0x51001a:0xf2,_0x396981:0x1e5,_0x5ac83d:0x19c,_0x259367:0x1af,_0x5b11bc:0x303,_0x9ad901:0x255,_0xe12969:0x1a2,_0x2cc9e7:0x291,_0x493a01:0x197,_0x11372d:0x1cf,_0x3f850c:0x161,_0x11d497:0x1eb,_0x591e8d:0x14c,_0x1f846e:0x2c0,_0x17edd3:0x2e1,_0x3d915c:0x267,_0x5948c2:0x247,_0x9c0f40:0x120,_0x147d81:0x18d,_0x7963f2:0x143,_0x3b07e7:0x102,_0x1e2862:0x18d,_0x36e96f:0x229,_0x536cad:0x2c7},_0x975aa9={_0x2448be:0x6a};function _0xfef3bc(_0x2670fa,_0x4ea6da,_0x45029c,_0x377918){return _0x18006e(_0x2670fa-0x145,_0x4ea6da-0x42,_0x377918-0x3c,_0x2670fa);}function _0x47d653(_0x428fa0,_0x5c1d0f,_0x12d570,_0x1a9db7){return _0x18006e(_0x428fa0-_0x975aa9._0x2448be,_0x5c1d0f-0x1c8,_0x5c1d0f-0x104,_0x428fa0);}if(_0x6b0c3d[_0xfef3bc(0xc6,_0x38c67a._0x3c5ae7,_0x38c67a._0x5cfe40,0x161)]===0x0)return'';try{const _0x2e14ca=JSON[_0xfef3bc(_0x38c67a._0x1c4e35,-_0x38c67a._0x56b670,0xa3,0x72)](_0x6b0c3d);if(typeof _0x2e14ca[_0xfef3bc(_0x38c67a._0x51001a,_0x38c67a._0x396981,_0x38c67a._0x5ac83d,0x123)]?.['message']===_0x47d653(0x128,_0x38c67a._0x259367,0x1a6,0x1d0)&&_0x2e14ca['error'][_0x47d653(_0x38c67a._0x5b11bc,_0x38c67a._0x9ad901,_0x38c67a._0xe12969,_0x38c67a._0x2cc9e7)]['trim']()[_0xfef3bc(0x172,_0x38c67a._0x493a01,_0x38c67a._0x11372d,_0x38c67a._0x3f850c)]>0x0)return _0x2e14ca[_0x47d653(0x206,_0x38c67a._0x11d497,_0x38c67a._0x591e8d,0x133)][_0x47d653(_0x38c67a._0x1f846e,0x255,_0x38c67a._0x17edd3,0x30c)][_0x47d653(0x314,_0x38c67a._0x3d915c,0x21a,0x2c5)]();if(typeof _0x2e14ca[_0xfef3bc(_0x38c67a._0x5948c2,_0x38c67a._0x9c0f40,0x235,_0x38c67a._0x147d81)]===_0x47d653(_0x38c67a._0x7963f2,0x1af,_0x38c67a._0x3b07e7,0x22d)&&_0x2e14ca[_0xfef3bc(0x226,0x199,0x14e,_0x38c67a._0x1e2862)]['trim']()[_0x47d653(0x1ad,_0x38c67a._0x36e96f,_0x38c67a._0x536cad,0x24c)]>0x0)return _0x2e14ca['message']['trim']();}catch{return _0x6b0c3d;}return _0x6b0c3d;}async function createOpenAiApiError(_0xa9bd2d){const _0x5d9257={_0x2ff50e:0x455,_0x5981ad:0x456,_0x42f40e:0x42f,_0xc6d262:0x533,_0x5d317a:0x4a0,_0x181758:0x4f1,_0x67353e:0x5a9,_0x4ab797:0x462,_0x5b3035:0x37d,_0x31ff1a:0x43a,_0x5ea1b3:0x338},_0x5603d9={_0x5285cd:0x139,_0x1321bb:0x34a},_0x1f9d2a=(await _0xa9bd2d[_0x13edc7(_0x5d9257._0x2ff50e,_0x5d9257._0x5981ad,_0x5d9257._0x42f40e,0x457)]())['trim']();function _0x13edc7(_0x17ecd2,_0x537c3f,_0x13fa99,_0x2afe11){return _0x18006e(_0x17ecd2-0x18a,_0x537c3f-_0x5603d9._0x5285cd,_0x17ecd2-_0x5603d9._0x1321bb,_0x13fa99);}function _0x1484cc(_0x26eda2,_0x3af87e,_0x2e5421,_0xf621fc){return _0x18006e(_0x26eda2-0x13d,_0x3af87e-0x158,_0xf621fc-0x42f,_0x3af87e);}const _0x53ebc1=extractErrorMessage(_0x1f9d2a)||_0xa9bd2d[_0x1484cc(_0x5d9257._0xc6d262,0x578,_0x5d9257._0x5d317a,_0x5d9257._0x181758)]||_0x1484cc(_0x5d9257._0x67353e,0x4d1,0x536,0x531)+_0xa9bd2d[_0x1484cc(0x3bc,0x4bb,0x430,_0x5d9257._0x4ab797)];return new OpenAiApiError(_0xa9bd2d[_0x13edc7(_0x5d9257._0x5b3035,_0x5d9257._0x31ff1a,_0x5d9257._0x5ea1b3,0x420)],_0x1f9d2a,_0x53ebc1);}function readSseData(_0x52ee6a){const _0x400e98={_0x132ef0:0xd1,_0x45a79a:0x177,_0x20a4fa:0x6f,_0x91bb9f:0x36,_0x16eecb:0x92},_0x297d58={_0x14653d:0x102,_0x3e36b7:0x5b},_0x23a662={_0x42d536:0x1c1};function _0x5002f3(_0x42f1ad,_0x4f4cc2,_0x1a3d83,_0x6c6797){return _0x18006e(_0x42f1ad-0x189,_0x4f4cc2-0x57,_0x6c6797- -_0x23a662._0x42d536,_0x1a3d83);}function _0x1efba2(_0x2abc16,_0x95fc38,_0x269a5d,_0x6e2098){return _0x18006e(_0x2abc16-_0x297d58._0x14653d,_0x95fc38-0x90,_0x95fc38- -_0x297d58._0x3e36b7,_0x6e2098);}return _0x52ee6a[_0x5002f3(-_0x400e98._0x132ef0,-0x4e,-_0x400e98._0x45a79a,-0xc2)]('\x0a')[_0x1efba2(-0xc8,-0x8,0x81,0x5f)](_0x5037a3=>_0x5037a3['startsWith'](_0x1efba2(0x62,0xb1,0x54,0x130)))[_0x1efba2(-_0x400e98._0x20a4fa,0x29,0x8e,-0x67)](_0x1368eb=>_0x1368eb[_0x1efba2(0x19a,0xda,0x141,0x123)](0x5)['trimStart']())['join']('\x0a')[_0x5002f3(_0x400e98._0x91bb9f,-_0x400e98._0x16eecb,0x5b,-0x5e)]();}function readString(_0x568de4){const _0x1e79ba={_0x49f5ec:0x4d,_0x349632:0x48,_0x56c295:0x76,_0x20df16:0x68,_0x37a875:0x7c},_0x4f0960={_0xc83a69:0x1c7,_0x47eeea:0xec},_0x5cb33a={_0x487566:0x1a4};function _0x21ee87(_0x3802d8,_0x2c6bac,_0x590cb3,_0x1a0ad4){return _0x4d4006(_0x2c6bac,_0x2c6bac-0x1ca,_0x3802d8- -0xbf,_0x1a0ad4-_0x5cb33a._0x487566);}function _0x52e7d2(_0x91b1c6,_0x2fbc51,_0xaa60ee,_0x399512){return _0x4d4006(_0x399512,_0x2fbc51-_0x4f0960._0xc83a69,_0x91b1c6- -0x239,_0x399512-_0x4f0960._0x47eeea);}return typeof _0x568de4===_0x21ee87(-_0x1e79ba._0x49f5ec,_0x1e79ba._0x349632,-_0x1e79ba._0x56c295,0x41)&&_0x568de4[_0x21ee87(0x2d,_0x1e79ba._0x20df16,0x89,_0x1e79ba._0x37a875)]>0x0?_0x568de4:void 0x0;}function extractReasoningDetails(_0x1f9096){const _0x12dfa3={_0x4c85cd:0x297,_0x32e562:0x239,_0x2ed3ce:0x1f5,_0x383d1a:0x1e1,_0x238209:0x23e},_0x1d909a={_0xdd6f9e:0x9f,_0x477300:0x37f,_0x1e2839:0x2f3,_0x581bfa:0x1,_0x5b14c5:0x9,_0x28ab97:0x338},_0x1851cd={_0x4dfa14:0x177,_0x3159b9:0x172},_0x33bdd0={_0x103a04:0x272};function _0x41a92b(_0x52b7bf,_0x1e7ba7,_0x4a2d55,_0x2df846){return _0x18006e(_0x52b7bf-0x167,_0x1e7ba7-0x190,_0x4a2d55-_0x33bdd0._0x103a04,_0x52b7bf);}if(!Array['isArray'](_0x1f9096))return void 0x0;function _0x18f6ea(_0x3b2f71,_0x53d1a2,_0x335332,_0x5a4800){return _0x18006e(_0x3b2f71-0x17,_0x53d1a2-_0x1851cd._0x4dfa14,_0x3b2f71-_0x1851cd._0x3159b9,_0x335332);}const _0x21f809=_0x1f9096['flatMap'](_0x513ebf=>{const _0x4da160={_0x1bc7fd:0x10a};function _0x2c01cf(_0x23e75b,_0x451647,_0x1db222,_0x5bddc5){return _0x2cfd(_0x1db222- -_0x4da160._0x1bc7fd,_0x451647);}if(!_0x513ebf||typeof _0x513ebf!==_0x2c01cf(-0x1e,0x152,_0x1d909a._0xdd6f9e,0x167))return[];const _0x4afdb1=_0x513ebf;function _0x35759d(_0x2e5b99,_0x2f2b2,_0x3e1276,_0x2f3d8e){return _0x2cfd(_0x2f3d8e-0xe9,_0x3e1276);}if(typeof _0x4afdb1[_0x35759d(0x2e5,_0x1d909a._0x477300,0x2ff,_0x1d909a._0x1e2839)]===_0x2c01cf(0x11c,_0x1d909a._0x581bfa,0xa0,-_0x1d909a._0x5b14c5))return[_0x4afdb1['text']];if(typeof _0x4afdb1[_0x35759d(0x28f,0x2cf,0x285,0x27e)]===_0x2c01cf(0x15f,0x97,0xa0,0x119))return[_0x4afdb1[_0x35759d(0x23e,_0x1d909a._0x28ab97,0x2a2,0x27e)]];return[];});return _0x21f809[_0x18f6ea(_0x12dfa3._0x4c85cd,_0x12dfa3._0x32e562,0x22b,_0x12dfa3._0x2ed3ce)]>0x0?_0x21f809[_0x18f6ea(_0x12dfa3._0x383d1a,0x13d,_0x12dfa3._0x238209,0x1c6)](''):void 0x0;}function extractChatCompletionReasoningDelta(_0x4e4883){const _0xd7722b={_0x439e96:0xdc,_0x3cf2ac:0x8a,_0x1fe2ba:0x30,_0x3f5f3:0x13d,_0xa56e9f:0x1,_0x49258b:0x24,_0x460813:0x46,_0x3c6782:0x5e,_0x1df8b0:0x73,_0x5b1ae5:0xc1,_0x124619:0x67,_0x2c587d:0xaf,_0x59d223:0x165,_0x11c698:0xd5},_0x17a006={_0x59eec2:0x77},_0x4ecd58={_0x17df08:0x54,_0x4b5378:0x1b0};function _0x36937c(_0x1daf8e,_0x3fab4d,_0x549210,_0x2d2e1d){return _0x4d4006(_0x1daf8e,_0x3fab4d-0x11b,_0x2d2e1d- -_0x4ecd58._0x17df08,_0x2d2e1d-_0x4ecd58._0x4b5378);}function _0x18768d(_0x1729dd,_0x529393,_0x4da2cf,_0x5f0ff6){return _0x4d4006(_0x4da2cf,_0x529393-0x1d8,_0x1729dd- -0xd7,_0x5f0ff6-_0x17a006._0x59eec2);}return extractReasoningDetails(_0x4e4883?.[_0x18768d(-_0xd7722b._0x439e96,-_0xd7722b._0x3cf2ac,-_0xd7722b._0x1fe2ba,-_0xd7722b._0x3f5f3)])??readString(_0x4e4883?.[_0x18768d(-_0xd7722b._0xa56e9f,-_0xd7722b._0x49258b,-_0xd7722b._0x460813,_0xd7722b._0x3c6782)])??readString(_0x4e4883?.[_0x36937c(_0xd7722b._0x1df8b0,0x93,_0xd7722b._0x5b1ae5,_0xd7722b._0x124619)])??readString(_0x4e4883?.[_0x36937c(_0xd7722b._0x2c587d,_0xd7722b._0x59d223,0x81,_0xd7722b._0x11c698)])??'';}var OpenAiChatCompletionsStreamParser=class{[_0x18006e(0x170,0x139,0xe0,0x156)]=[];[_0x4d4006(0x3,0x48,0x8f,0x145)];[_0x18006e(0xf4,0x55,0xa2,0x150)]=[];['toolCallsByIndex']=new Map();[_0x4d4006(0xc0,0x4a,0xab,0x13a)]=[];[_0x4d4006(0x132,0x128,0xed,0x151)]=new Set();[_0x18006e(0x122,0x149,0xb3,0x4)]='';[_0x4d4006(-0x11,0x5a,0x9d,0x14d)]=_0x4d4006(0x83,0xd4,0x65,0x60);[_0x18006e(0x204,0x16c,0x15f,0x20a)];constructor(_0x19829c){const _0x553b75={_0x5c4008:0x5a,_0x4a3679:0xa5},_0x4791b0={_0x9453e1:0x17};function _0x252657(_0x1b1532,_0xaceb7c,_0x3636f0,_0x2c6cf6){return _0x4d4006(_0x2c6cf6,_0xaceb7c-0x33,_0xaceb7c- -0x35,_0x2c6cf6-_0x4791b0._0x9453e1);}this[_0x252657(0xd2,_0x553b75._0x5c4008,_0x553b75._0x4a3679,0xe2)]=_0x19829c;}[_0x18006e(0x204,0x85,0x149,0xcd)](_0x4a88e){const _0xbc0c27={_0xcde89f:0x15c,_0x5e87b1:0x12e,_0x521756:0x3a7,_0x3aaca6:0x33e,_0xda1cd4:0x42a,_0x419bb7:0x34e,_0x22a805:0x2f3,_0x4c0383:0x304,_0x2375aa:0x279,_0x5b632e:0x2c0,_0x1e2f08:0x25f,_0x3a6938:0x299,_0x448501:0x39c,_0x5d8b87:0x364,_0x57c79e:0x3bc},_0x21b580={_0x2a93f3:0x2f4},_0xbfcd7={_0x48fbfa:0x16f,_0x20dc57:0x11a};function _0x213f39(_0x3fb636,_0x4f81b8,_0x2d6649,_0x301501){return _0x18006e(_0x3fb636-_0xbfcd7._0x48fbfa,_0x4f81b8-0xaf,_0x3fb636-_0xbfcd7._0x20dc57,_0x2d6649);}function _0x2c9da6(_0x375304,_0x586c46,_0x342cfd,_0x416596){return _0x18006e(_0x375304-0x1e8,_0x586c46-0xe3,_0x375304-_0x21b580._0x2a93f3,_0x416596);}const _0x5dffa5=readSseData(_0x4a88e);if(_0x5dffa5['length']===0x0||_0x5dffa5==='[DONE]')return[];const _0x11b54a=JSON[_0x213f39(0x150,_0xbc0c27._0xcde89f,0x12f,_0xbc0c27._0x5e87b1)](_0x5dffa5);return this[_0x2c9da6(_0xbc0c27._0x521756,_0xbc0c27._0x3aaca6,0x3b1,_0xbc0c27._0xda1cd4)]=_0x11b54a['id']??this[_0x2c9da6(0x3a7,0x3ea,_0xbc0c27._0x419bb7,_0xbc0c27._0x22a805)],this[_0x213f39(0x279,0x208,0x32b,_0xbc0c27._0x4c0383)]=_0x11b54a[_0x213f39(_0xbc0c27._0x2375aa,_0xbc0c27._0x5b632e,_0xbc0c27._0x1e2f08,0x2ab)]??this[_0x213f39(0x279,0x221,_0xbc0c27._0x3a6938,0x1fb)],this[_0x2c9da6(_0xbc0c27._0x448501,_0xbc0c27._0x5d8b87,_0xbc0c27._0x57c79e,0x30d)](_0x11b54a);}[_0x18006e(0xe8,0x1e3,0x186,0xff)](){const _0x404ff2={_0x2f1098:0x462,_0x207ec9:0x3a3,_0x342ebc:0x507,_0x336572:0x4a3,_0x2e22aa:0x464,_0x14e9c8:0x5cb,_0x749fcf:0x599,_0x1f2149:0x5ee,_0x331a88:0x3ed,_0x5cddde:0x35f,_0x2e541c:0x371,_0x339ca6:0x460,_0x2cc0fb:0x368,_0x50eb02:0x670,_0x21fd4b:0x712,_0xc2f57a:0x403,_0x5cbc6a:0x5e2,_0x2abe73:0x546,_0x1be5d3:0x610,_0x3c0098:0x649,_0x1cd4e2:0x5ad,_0x261bed:0x50b,_0x1744fc:0x4e7,_0x1c455f:0x56c,_0x24db93:0x43c},_0x31673a={_0x377b38:0xcb},_0x3a4661={_0x50594c:0x1cc,_0x51474f:0x37e};function _0x20ea1a(_0x3e8451,_0x4b8c84,_0x1bcbed,_0x4fd9e3){return _0x18006e(_0x3e8451-_0x3a4661._0x50594c,_0x4b8c84-0x190,_0x3e8451-_0x3a4661._0x51474f,_0x4fd9e3);}this[_0x20ea1a(_0x404ff2._0x2f1098,_0x404ff2._0x207ec9,_0x404ff2._0x342ebc,0x501)][_0x20ea1a(_0x404ff2._0x336572,0x4e6,_0x404ff2._0x2e22aa,0x47d)]>0x0&&(this['stopReason']=_0x2eea18(_0x404ff2._0x14e9c8,0x573,0x4c1,_0x404ff2._0x749fcf));const _0x38944c=isUserVisibleReasoning(this[_0x2eea18(0x5c7,0x59f,_0x404ff2._0x1f2149,0x596)])?this['reasoningParts'][_0x20ea1a(_0x404ff2._0x331a88,0x454,_0x404ff2._0x5cddde,_0x404ff2._0x2e541c)](''):void 0x0;function _0x2eea18(_0x57fe0f,_0x62c062,_0x47287e,_0x52dd5d){return _0x18006e(_0x57fe0f-_0x31673a._0x377b38,_0x62c062-0x1bd,_0x62c062-0x4d7,_0x52dd5d);}return{'id':this[_0x20ea1a(0x431,0x3e9,_0x404ff2._0x339ca6,_0x404ff2._0x2cc0fb)]||'chatcmpl-'+Date[_0x2eea18(0x6f5,_0x404ff2._0x50eb02,0x604,_0x404ff2._0x21fd4b)](),'content':createContentBlocks(this[_0x20ea1a(0x420,0x4a8,_0x404ff2._0xc2f57a,0x4c2)][_0x2eea18(_0x404ff2._0x5cbc6a,_0x404ff2._0x2abe73,0x568,_0x404ff2._0x1be5d3)](''),this['toolCallOrder'],_0x38944c),'stopReason':this[_0x2eea18(_0x404ff2._0x3c0098,_0x404ff2._0x1cd4e2,0x60b,_0x404ff2._0x261bed)],'usage':createUsage(this[_0x20ea1a(0x4dd,_0x404ff2._0x1744fc,_0x404ff2._0x1c455f,_0x404ff2._0x24db93)])};}[_0x18006e(0x167,0xf2,0xa8,0xb7)](_0xa0147f){const _0x512a21={_0x249d72:0x15b,_0x541127:0x118,_0xd719ae:0xff,_0x4f0052:0xf2,_0x221a4e:0x176,_0x46a773:0x280,_0x3fdb58:0x181,_0x2b7915:0x260,_0x3be19e:0x2af,_0x4b0fc1:0x204,_0x1c64e3:0x1f1,_0x3bc1c6:0x294,_0x6ff25:0xc7,_0x8b2013:0x34,_0x1c4447:0x178,_0x55af8e:0x263,_0x19a8ab:0x1be,_0x515012:0x1ed,_0x34c5b6:0x25b,_0x5039a:0x113,_0x324314:0x77,_0x5ce3c6:0x65,_0xee2a36:0x6c,_0x209dea:0x2c1,_0xcc8a2e:0x25f,_0x2d6dc7:0x2e5,_0x52c99f:0xb5,_0x53ca20:0xf4,_0x544800:0x16c,_0x27a722:0x103,_0x30dc52:0x1b4,_0x5b6ce1:0x161,_0x1aee35:0x1cd,_0x5e9174:0x2bc,_0x3ab5b6:0x26f,_0x248229:0x19b,_0x432ec1:0x4b,_0x1a75dc:0x6b,_0xc450e5:0x307,_0x55bb5e:0x279,_0x2b8524:0x2b0,_0x5ebb4a:0xc7,_0x259746:0xba,_0xaddc91:0x1c3,_0x3fdb26:0x28b,_0xc21fe1:0xd1,_0x540355:0x17d,_0xe4f0bb:0x104,_0x12b871:0x86,_0x516438:0x17d,_0x257899:0x3e,_0x3747ba:0x2d,_0x253007:0x2a4,_0x4e065b:0x281,_0x3c83f3:0x328,_0x4973ef:0x339,_0x419af6:0x37d,_0x1a71b8:0xb3,_0x22d4a6:0xbc,_0x3eeccd:0x108,_0x1b257e:0x2d5,_0xafaf70:0x285,_0x6d9707:0x23c,_0x2a0975:0x1fe,_0x4daafc:0x104,_0x1bcaf6:0x8f,_0x469145:0x14a,_0x57b06b:0x23c,_0x29a3ca:0x2cc,_0x3c6638:0xf1,_0x473b49:0x1aa,_0x439764:0x1af,_0x2b9b2b:0x70,_0x42d26d:0x8f,_0x49c051:0xb4,_0x3c36fd:0xad,_0x1af87a:0x21,_0x218360:0x166,_0x1f213b:0x1fb,_0x183987:0x13e,_0x512675:0x36f,_0x540370:0x2ba,_0xee2b26:0x2db,_0x2dc7fd:0xf1,_0x2f20c0:0x7d,_0x12d54d:0x126,_0x14785e:0x11d,_0x17df3c:0x357,_0x498ac2:0x28d,_0x480557:0x331,_0x11769a:0x5b,_0x56ef9b:0x82,_0x40139d:0x174,_0x5275a3:0x1b6,_0x4a2253:0x1c2,_0x42c633:0xf2,_0x517045:0x4d,_0x5c025e:0x25c,_0x5bc57d:0x18a,_0x388032:0x23a,_0x1d3ece:0x1f8,_0x24e077:0x2a1,_0x323954:0xdf,_0x3a5436:0x16,_0x3d190d:0x1ff,_0x3055d4:0x139,_0x3bb8f0:0x1e1},_0xefdb35={_0x173db9:0x1c9},_0x54379b={_0x415090:0xcc,_0x4117af:0x217};function _0x3feb76(_0x533a5f,_0x315573,_0xc56212,_0x283b29){return _0x18006e(_0x533a5f-_0x54379b._0x415090,_0x315573-0x18,_0x533a5f- -_0x54379b._0x4117af,_0x315573);}const _0x3d265b=[];for(const _0x575886 of _0xa0147f[_0x3feb76(-_0x512a21._0x249d72,-0x183,-0x1e0,-_0x512a21._0x541127)]??[]){const _0x19468b=_0x575886[_0x183ae5(0x217,_0x512a21._0xd719ae,0x195,0x191)],_0x410555=extractChatCompletionReasoningDelta(_0x19468b);_0x410555[_0x3feb76(-_0x512a21._0x4f0052,-_0x512a21._0x221a4e,-0xe0,-0x89)]>0x0&&(this[_0x183ae5(_0x512a21._0x46a773,0x286,0x209,_0x512a21._0x3fdb58)][_0x183ae5(_0x512a21._0x2b7915,_0x512a21._0x3be19e,0x279,_0x512a21._0x4b0fc1)](_0x410555),isUserVisibleReasoning(this[_0x183ae5(0x1b8,0x146,_0x512a21._0x1c64e3,_0x512a21._0x3bc1c6)])&&_0x3d265b[_0x3feb76(-_0x512a21._0x6ff25,-_0x512a21._0x8b2013,-_0x512a21._0x1c4447,-0x42)]({'type':_0x183ae5(0x26c,_0x512a21._0x55af8e,_0x512a21._0x19a8ab,0x15f),'contentIndex':0x0,'delta':_0x410555,'itemId':(this[_0x183ae5(_0x512a21._0x515012,_0x512a21._0x34c5b6,0x1dc,_0x512a21._0x5039a)]||_0x3feb76(-_0x512a21._0x324314,-_0x512a21._0x5ce3c6,-_0x512a21._0xee2a36,-0x99))+_0x183ae5(_0x512a21._0x209dea,_0x512a21._0xcc8a2e,0x2cc,_0x512a21._0x2d6dc7),'outputIndex':0x0}));const _0x5f1df4=typeof _0x19468b?.[_0x3feb76(-0x11c,-_0x512a21._0x52c99f,-0x1c1,-_0x512a21._0x53ca20)]===_0x3feb76(-_0x512a21._0x544800,-_0x512a21._0x27a722,-_0x512a21._0x30dc52,-_0x512a21._0x5b6ce1)?_0x19468b[_0x183ae5(_0x512a21._0x1aee35,_0x512a21._0x5e9174,0x224,0x1d4)]:typeof _0x19468b?.[_0x183ae5(0x239,0x286,0x232,0x2ca)]===_0x183ae5(_0x512a21._0x3ab5b6,_0x512a21._0x248229,0x1d4,0x12a)?_0x19468b[_0x3feb76(-0x10e,-_0x512a21._0x432ec1,-_0x512a21._0x1a75dc,-0xb6)]:'';_0x5f1df4['length']>0x0&&(this['textParts'][_0x183ae5(_0x512a21._0xc450e5,0x29a,_0x512a21._0x55bb5e,_0x512a21._0x2b8524)](_0x5f1df4),_0x3d265b[_0x3feb76(-_0x512a21._0x5ebb4a,-0x48,-0x151,-0x102)]({'type':_0x3feb76(-_0x512a21._0x259746,0xd,-0xe,-0x8b),'index':0x0,'text':_0x5f1df4}));for(const _0x457397 of _0x19468b?.['tool_calls']??[]){const _0x1e26d3=_0x457397[_0x183ae5(0x14e,0x17f,_0x512a21._0xaddc91,0x24f)]??0x0;let _0x1e0866=this[_0x183ae5(0x20e,0x299,0x281,0x1c9)]['get'](_0x1e26d3);!_0x1e0866&&(_0x1e0866={'id':_0x457397['id']??_0x183ae5(_0x512a21._0x3fdb26,0x2a5,0x27f,0x259)+_0x1e26d3,'type':_0x3feb76(-0x104,-_0x512a21._0xee2a36,-_0x512a21._0xc21fe1,-_0x512a21._0x540355),'function':{'name':_0x457397[_0x3feb76(-_0x512a21._0xe4f0bb,-0x89,-_0x512a21._0x12b871,-_0x512a21._0x516438)]?.[_0x3feb76(-0x86,_0x512a21._0x257899,-0xb2,_0x512a21._0x3747ba)]??'','arguments':''}},this[_0x183ae5(_0x512a21._0x253007,0x2ed,_0x512a21._0x4e065b,_0x512a21._0x3c83f3)][_0x183ae5(_0x512a21._0x4973ef,_0x512a21._0x419af6,0x2bf,0x32d)](_0x1e26d3,_0x1e0866),this[_0x3feb76(-0x133,-0x9a,-_0x512a21._0x1a71b8,-_0x512a21._0x22d4a6)][_0x3feb76(-_0x512a21._0x5ebb4a,-0x17b,-0x54,-_0x512a21._0x3eeccd)](_0x1e0866));_0x457397['id']&&(_0x1e0866['id']=_0x457397['id']);_0x457397[_0x183ae5(_0x512a21._0x1b257e,_0x512a21._0xafaf70,_0x512a21._0x6d9707,_0x512a21._0x2a0975)]?.['name']&&(_0x1e0866[_0x3feb76(-_0x512a21._0x4daafc,-_0x512a21._0x1bcaf6,-_0x512a21._0x469145,-0x16a)]['name']=_0x457397[_0x183ae5(0x24f,0x2c5,_0x512a21._0x57b06b,_0x512a21._0x29a3ca)]['name']);!this[_0x3feb76(-_0x512a21._0x3c6638,-0x6e,-_0x512a21._0x473b49,-0xc1)][_0x3feb76(-0x191,-0x1c5,-0x1e7,-_0x512a21._0x439764)](_0x1e26d3)&&_0x1e0866[_0x3feb76(-_0x512a21._0xe4f0bb,-0xd9,-_0x512a21._0x2b9b2b,-_0x512a21._0x42d26d)]['name'][_0x3feb76(-_0x512a21._0x49c051,-_0x512a21._0x3c36fd,-0x119,-_0x512a21._0x1af87a)]()['length']>0x0&&(_0x3d265b['push']({'type':_0x3feb76(-0x1f8,-_0x512a21._0x218360,-_0x512a21._0x1f213b,-_0x512a21._0x183987),'id':_0x1e0866['id'],'index':_0x1e26d3,'name':_0x1e0866['function'][_0x183ae5(_0x512a21._0x512675,0x246,_0x512a21._0x540370,_0x512a21._0xee2b26)]}),this[_0x3feb76(-_0x512a21._0x2dc7fd,-_0x512a21._0x2f20c0,-_0x512a21._0x12d54d,-_0x512a21._0x14785e)][_0x183ae5(_0x512a21._0x17df3c,0x312,_0x512a21._0x498ac2,_0x512a21._0x480557)](_0x1e26d3));const _0x142b45=_0x457397[_0x3feb76(-_0x512a21._0x4daafc,-_0x512a21._0x11769a,-0x1c8,-_0x512a21._0x56ef9b)]?.[_0x183ae5(_0x512a21._0x40139d,0x26c,_0x512a21._0x5275a3,_0x512a21._0x4a2253)]??'';_0x142b45[_0x3feb76(-_0x512a21._0x42c633,-_0x512a21._0x517045,-0x176,-0x3d)]>0x0&&(_0x1e0866[_0x183ae5(_0x512a21._0x5c025e,0x178,0x23c,0x302)][_0x3feb76(-_0x512a21._0x5bc57d,-0xdb,-0x23b,-_0x512a21._0x388032)]+=_0x142b45,_0x3d265b['push']({'type':_0x3feb76(-_0x512a21._0x1d3ece,-0x18a,-_0x512a21._0x24e077,-0x258),'id':_0x1e0866['id'],'index':_0x1e26d3,'inputDelta':_0x142b45}));}_0x575886[_0x3feb76(-_0x512a21._0x323954,-0x16d,-_0x512a21._0x3a5436,-0x3e)]==='tool_calls'&&(this[_0x183ae5(0x1b0,0x1cd,_0x512a21._0x3d190d,_0x512a21._0x3055d4)]=_0x3feb76(-0x17b,-0x13e,-_0x512a21._0x3bb8f0,-0x1d8));}function _0x183ae5(_0x139a4a,_0x5c10b6,_0x401084,_0x5a9057){return _0x4d4006(_0x139a4a,_0x5c10b6-_0xefdb35._0x173db9,_0x401084-0x162,_0x5a9057-0x1c4);}return _0x3d265b;}},OpenAiResponsesStreamParser=class{[_0x18006e(-0x1d,0x6,0x9f,0xbf)]=new Map();[_0x18006e(-0x7,0x13e,0xad,0xb8)];[_0x4d4006(0xb1,0x80,0x17,0x17)]=new Map();[_0x18006e(0x15d,0x15e,0x15c,0x168)]=new Map();['reasoningItems']=new Map();[_0x18006e(0x83,0x17d,0xc8,0xa)];[_0x4d4006(0xcf,0x12f,0x15a,0xcd)]=new Map();[_0x18006e(0x196,0x1aa,0xfa,0x8d)]=new Map();constructor(_0x3c37c6){const _0x33400c={_0xdbada0:0x12b},_0x3727e7={_0x281397:0x17a};function _0x51d418(_0xde9c3e,_0x51aeda,_0x286063,_0x4f7132){return _0x4d4006(_0x4f7132,_0x51aeda-_0x3727e7._0x281397,_0xde9c3e-0x2e,_0x4f7132-0x8d);}this[_0x51d418(0xbd,_0x33400c._0xdbada0,0x2f,0xbb)]=_0x3c37c6;}[_0x4d4006(0x16e,0x8e,0x110,0x19b)](_0x19d37b){const _0x4a9bb1={_0xff41f0:0x1e3,_0x26175e:0x1d9,_0x233bdf:0x258,_0x6a0531:0x37d,_0x3cdab5:0x2d1,_0x544ac2:0x412,_0x54db34:0x3ab,_0x27bc66:0x457,_0x1d47c6:0x39b,_0x193d1c:0x132,_0x25dd54:0x2e2,_0x184a95:0x3ce,_0x2c2efb:0x31d,_0x3c6157:0x1d6,_0x3286b0:0x1fa,_0x28433e:0x255,_0x2a56c5:0x3b4,_0x17b431:0x257,_0x27eaa9:0x28e},_0x3a15dd={_0x42681e:0x191,_0x3f2022:0x95},_0x40d48c={_0x106b7c:0x17d},_0x33c73a=_0x19d37b['split']('\x0a'),_0x5a6bfd=_0x33c73a[_0x2ea155(_0x4a9bb1._0xff41f0,_0x4a9bb1._0x26175e,_0x4a9bb1._0x233bdf,0x27a)](_0x16c80e=>_0x16c80e[_0x3c201c(0x40e,0x377,0x302,0x436)](_0x2ea155(0x18c,0x1aa,0x23a,0x252)))?.[_0x3c201c(_0x4a9bb1._0x6a0531,0x37d,0x3ad,_0x4a9bb1._0x3cdab5)](0x6)[_0x3c201c(_0x4a9bb1._0x544ac2,_0x4a9bb1._0x54db34,_0x4a9bb1._0x27bc66,_0x4a9bb1._0x1d47c6)]();function _0x3c201c(_0xdbff73,_0x49b289,_0x4bba0f,_0x31f9b9){return _0x18006e(_0xdbff73-0x1aa,_0x49b289-_0x40d48c._0x106b7c,_0x49b289-0x248,_0x31f9b9);}const _0x480c98=_0x33c73a[_0x2ea155(_0x4a9bb1._0x193d1c,0x1ab,0x186,0x147)](_0x3d04a0=>_0x3d04a0[_0x2ea155(0x2b9,0x287,0x340,0x1e4)](_0x2ea155(0x22e,0x264,0x2aa,0x292)))['map'](_0x16acbc=>_0x16acbc['slice'](0x5)[_0x3c201c(0x35e,0x3b6,0x3f6,0x3cb)]())['join']('\x0a')[_0x3c201c(_0x4a9bb1._0x25dd54,_0x4a9bb1._0x54db34,_0x4a9bb1._0x184a95,0x3d5)]();if(_0x480c98[_0x3c201c(0x39f,0x36d,0x2e8,_0x4a9bb1._0x2c2efb)]===0x0||_0x480c98===_0x2ea155(0x15b,_0x4a9bb1._0x3c6157,0x282,_0x4a9bb1._0x3286b0))return[];function _0x2ea155(_0x5d5421,_0x1420bf,_0x33fec9,_0x145a62){return _0x4d4006(_0x5d5421,_0x1420bf-0x14b,_0x1420bf-_0x3a15dd._0x42681e,_0x145a62-_0x3a15dd._0x3f2022);}const _0x40afb6=JSON[_0x2ea155(0x106,0x18e,0xfd,_0x4a9bb1._0x28433e)](_0x480c98);return this[_0x3c201c(_0x4a9bb1._0x2a56c5,0x2f0,0x355,_0x4a9bb1._0x17b431)](_0x5a6bfd??String(_0x40afb6[_0x2ea155(0x1b6,0x20a,0x297,_0x4a9bb1._0x27eaa9)]??''),_0x40afb6);}[_0x18006e(0x1b1,0x152,0x13b,0xc1)](_0x1e37e4){return this['consumeEvent'](String(_0x1e37e4['type']??''),_0x1e37e4);}['finish'](){const _0x314b47={_0x155ef6:0x180,_0x19bee3:0x4d2,_0x9c0b52:0x597,_0x1a4087:0x639,_0x506ec5:0x286,_0x5d234a:0x58a,_0x5f4401:0x62e,_0x231557:0x5c1},_0x51817b={_0x596f81:0x1bf,_0x3d8019:0x167};function _0x2b8108(_0x3f99ab,_0x56ec74,_0x2f3b72,_0x42b378){return _0x18006e(_0x3f99ab-_0x51817b._0x596f81,_0x56ec74-_0x51817b._0x3d8019,_0x42b378-0x4a0,_0x56ec74);}function _0x1db5d2(_0x41114f,_0x5ca164,_0xff330f,_0x3222af){return _0x4d4006(_0x41114f,_0x5ca164-0xad,_0x5ca164- -0x25d,_0x3222af-0x6b);}const _0x5ef9ba=this[_0x1db5d2(-0x1c8,-0x1e9,-_0x314b47._0x155ef6,-0x20b)]??{'id':_0x2b8108(0x461,0x438,0x496,_0x314b47._0x19bee3)+Date[_0x2b8108(0x5b7,_0x314b47._0x9c0b52,0x682,_0x314b47._0x1a4087)](),'object':_0x1db5d2(-0x173,-0x204,-0x215,-_0x314b47._0x506ec5),'status':_0x2b8108(_0x314b47._0x5d234a,0x58c,0x4cf,0x55d),'output':this[_0x2b8108(0x6b7,_0x314b47._0x5f4401,0x619,0x62f)](),'usage':{'input_tokens':0x0,'output_tokens':0x0}};return parseResponsesResponse(_0x5ef9ba,this[_0x2b8108(0x4f3,_0x314b47._0x231557,0x5c5,0x568)]);}[_0x4d4006(0x5d,0x118,0xbe,0x9b)](){const _0x4753a2={_0x52a552:0x253,_0x587525:0x1a9,_0x3b7762:0x1d7},_0x46a44c={_0x1cb99d:0x5d,_0x18a346:0x1df};function _0x3fb556(_0x46bc61,_0x574f0a,_0xad6a56,_0x153067){return _0x4d4006(_0x574f0a,_0x574f0a-_0x46a44c._0x1cb99d,_0x46bc61-_0x46a44c._0x18a346,_0x153067-0xe7);}return this[_0x3fb556(_0x4753a2._0x52a552,_0x4753a2._0x587525,_0x4753a2._0x3b7762,0x253)]!==void 0x0;}[_0x18006e(0x100,0x16a,0xa8,0xb)](_0x110c76,_0x1e40cf){const _0xbea379={_0x275d93:0x27c,_0xd17512:0x109,_0x3b56e2:0x130,_0x574347:0x14d,_0x425ef1:0x84,_0x55e5ba:0x14c,_0x3e4ece:0x1fd,_0xc83ceb:0x1b1,_0x47ee98:0x14e,_0x118061:0x1b5,_0x4b4a58:0x10e,_0x1eee9b:0x2b4,_0x3c3c0b:0x29d,_0x34eee1:0x269,_0x2c2563:0x237,_0x134a85:0x254,_0x49b8a6:0x1fe,_0x35aecc:0x210,_0x498cda:0x13f,_0x1143aa:0x1c1,_0x10a9f7:0x1e7,_0x25efbe:0x1f0,_0x5caa6d:0x143,_0x59af78:0x20e,_0x2b4d86:0x1cc,_0x59014d:0x1ed,_0x33b85e:0x267,_0x4ac354:0x199,_0x3a7b0e:0x153,_0x4ba108:0x1ef,_0x463b23:0x8d,_0x44c81c:0xc9,_0x14f0fb:0x1e3,_0x7020fe:0x11c,_0x15dcca:0x21d,_0x41cdef:0x27b,_0x596685:0x1a9,_0x19060f:0x19b,_0x147723:0x129,_0x11a6ad:0x237,_0x9cb31e:0x194,_0x2c3621:0x24c,_0x25e461:0xfb,_0x337828:0xba,_0x3c2339:0xf2,_0x10a27a:0x71,_0x462d4d:0x1b4,_0x29323d:0x270,_0x449939:0x1b2,_0xe18f44:0x278,_0x593981:0xdb,_0x7c3c3e:0x12a,_0x5ba85f:0x14f,_0x525ba2:0x1b3,_0x44403a:0x232,_0x4cc453:0x1dd,_0x56439f:0x19d,_0x14e4ce:0x19b,_0x4d6ae3:0x178,_0x318201:0xc8,_0x2a5b46:0x19f,_0x577b57:0x169,_0x1c68e7:0xde,_0x2f95b0:0x1e6,_0x3990d0:0x7c,_0x1a09c6:0x1f9,_0x4cef43:0x2a3,_0x2ddee2:0x1a8,_0x12e26c:0x134,_0x426a16:0xf1,_0x3823bf:0xce,_0x47b4b5:0x24e,_0x1f9b5a:0xd2,_0x65309:0x1f8,_0x4df969:0x17a,_0x19ecd4:0x11b,_0x5c8a13:0x1a7,_0x3d0be4:0x1ca,_0x27493a:0x214,_0xc199fa:0x140,_0x153c65:0x12c,_0x486ffb:0x27e,_0x340e65:0x22d,_0x4cde81:0x158,_0x3f92f4:0x18c,_0x58c36d:0x20e,_0x3749ab:0x2d7,_0x4956c4:0xdd,_0x3c35c2:0x12e,_0x5434bd:0x55,_0x5ea9a0:0x9d,_0x1945ef:0x1c7,_0x4721ac:0x1e4,_0x5b324:0x26f,_0x125d6e:0x186,_0x36862a:0x1f6,_0x143ded:0x108,_0x12aea2:0x218,_0x258871:0x30f,_0x5c7cd1:0x2c3,_0x496a14:0x17b,_0x46f466:0xd8,_0x2bd1d9:0x20b,_0x4d74a9:0xfd,_0x5561c0:0x119,_0x4be824:0x150,_0x107d5e:0xc3,_0x56fc84:0x9a,_0x4ff45e:0xb6,_0x41af51:0x1ce,_0x44db9e:0x25c,_0x26e799:0x12c,_0x5471db:0x152,_0x2bcb36:0x1a2,_0x3e6722:0x17f,_0x995e40:0x12f,_0x1f208f:0xdd,_0x303c65:0x2f9,_0x3eae80:0x247,_0x53d6eb:0x24f,_0x4a073e:0x2c5,_0xb47d23:0x26c,_0x4f9769:0x1a8,_0x4f663f:0xff,_0x5d8eb2:0xba,_0x5b1078:0x1a8,_0x19fc83:0x151,_0x4a1a04:0xfb,_0x363008:0xd1,_0x9767b:0xd0,_0x2ce940:0xfc,_0x58210d:0x4f,_0x6b11d7:0xa9,_0x5c8f6b:0x12d,_0x4a90e8:0x215,_0xda1616:0x282,_0x3e3885:0x137,_0x208183:0x100,_0x27094b:0x18b,_0x460b5d:0x1be,_0x54250c:0x1e1,_0x5ac8d8:0x14a,_0x3c5594:0x1c6,_0x2304e4:0x10a,_0x27a5b4:0x1e3,_0x186176:0x1e6,_0x29fdec:0x20d,_0x541323:0xea,_0x58c329:0xe2,_0x1ab84b:0x234,_0x42ca02:0x1bb,_0x52acf0:0x222,_0x14473f:0x16d,_0x4945f6:0x1da,_0x21983a:0x1ac,_0x3bebb4:0xfa,_0x2a206f:0x190,_0x9e06be:0x1d1,_0x5c70c2:0xc4,_0x145481:0x125,_0x4cc415:0x1b6,_0x32b5d3:0x117,_0x311d90:0x10d,_0x4bec25:0x1d3,_0x22c749:0xfe,_0x2b7fe5:0x159,_0x1b8f84:0x126,_0x12b620:0xdc,_0x1ea093:0x18e,_0x2bba24:0x1b2,_0x57c1a0:0x227,_0x4c9994:0x1fd,_0x455bd6:0x2b4,_0x3ee003:0x23a,_0x32d7a8:0x1d2,_0x23373f:0x237,_0x25b803:0x2c2,_0x43a769:0x1aa,_0x55fe3c:0x1a7,_0x468f42:0x20e,_0x577dd0:0x1ac,_0x51dec7:0x213,_0x5d3eec:0x1d5,_0xe4905b:0x13a,_0x3cb942:0xe5,_0x5fffe3:0x169,_0xfcc8b1:0x212,_0xa60fad:0x228,_0x55c480:0x1fa,_0x2244b3:0x1bf,_0x409dc7:0x2ed,_0x487af5:0x233,_0x40ae50:0x186,_0x4da3c9:0x2b5,_0x210c6d:0x167,_0x98e69b:0x184,_0xf19723:0x21b,_0x142bcc:0xef,_0x1b1b67:0x265,_0x46aac3:0x1e8,_0x2d240a:0x2eb,_0xc68a03:0x198,_0x2f20dc:0x18f,_0x1b598a:0x1f9,_0x1c8db2:0x21c,_0x126a7c:0x1d9,_0x5bea9a:0x1a6,_0x5b5b34:0x258,_0x563843:0x148,_0x583338:0x1ac,_0x1ee413:0x19e,_0x239f37:0x114,_0xdcd08c:0xac,_0x13774a:0x272,_0xd1d152:0x1bf,_0xfc8f94:0x13a,_0x3d775c:0xbd,_0x5d4e14:0x120,_0x24b565:0x222,_0x171f8d:0x214,_0x28e969:0x1ee,_0x1b5cdc:0x16f,_0x20280c:0xf8,_0x57bf4e:0x118,_0x6b6d55:0x137,_0x1ce9ec:0xa2,_0x44719c:0x18d,_0x5cb762:0x2b1,_0x25d905:0x1a8,_0x4f701e:0x2b1,_0x2341b9:0x20d,_0x494fab:0x105,_0x216bc8:0x20e,_0x50be61:0x2a1,_0x397b43:0x8a,_0x103005:0x1aa,_0xac32:0x1f4,_0x1b8d95:0x1bf,_0x140b49:0x185,_0x5265a1:0x230,_0x3957fa:0x23a,_0x265a7c:0x294,_0x16286e:0x204,_0x379f52:0x154,_0x52204f:0x94,_0x3fbf2e:0x90,_0x2c0f8c:0x160,_0x1d676d:0x201,_0x11674f:0x154,_0x56d30f:0x2af,_0x566837:0x1c4,_0xd39a0f:0x14c,_0x395b60:0x116,_0x52e386:0x131,_0x497e2c:0x16e,_0x598d7d:0x155,_0x569afc:0x158,_0x563a79:0x1bb,_0x5c0b40:0x20e,_0x439827:0x2c0,_0x1af25e:0x1bf,_0x2b8873:0x144,_0x2c0a48:0x1c2,_0x57713b:0x1ba,_0xc2fb9e:0x176,_0x5d9a44:0x174,_0x5e2e2e:0x197,_0x49c081:0x180,_0x243d6e:0xf9,_0x4da261:0x133,_0x43101b:0xc1,_0x18bc15:0xd6,_0xe40850:0x6d,_0x873951:0x188,_0x3d0e60:0x1a8,_0x4998ae:0x1f3,_0x2708c6:0xdf,_0x3ee1c9:0x188,_0x22c5ce:0xc6,_0x2adec5:0xbf,_0x4f05d2:0x2a9,_0xc75ae2:0x15c,_0x587166:0xca,_0xe4e5b0:0x14d,_0x40c440:0xbf,_0x3c0007:0x2b,_0x55ac20:0x1d},_0x3870aa={_0x56e591:0x1e0,_0x49f85d:0x37,_0x345d18:0x8c};function _0xa78179(_0x25ed95,_0x4ea1d0,_0xb232e0,_0x2c1707){return _0x18006e(_0x25ed95-_0x3870aa._0x56e591,_0x4ea1d0-_0x3870aa._0x49f85d,_0x25ed95-_0x3870aa._0x345d18,_0x2c1707);}function _0x210bc2(_0x566f26,_0xb35003,_0x4fccd7,_0x42c45d){return _0x4d4006(_0x4fccd7,_0xb35003-0x58,_0x566f26-0xda,_0x42c45d-0x157);}switch(_0x110c76){case _0xa78179(0x20d,0x208,_0xbea379._0x275d93,0x245):{const _0x2a7d9d=typeof _0x1e40cf['output_index']===_0x210bc2(0x158,_0xbea379._0xd17512,_0xbea379._0x3b56e2,0xe7)?_0x1e40cf['output_index']:0x0,_0x5b3b49=typeof _0x1e40cf[_0x210bc2(0x10d,0x191,_0xbea379._0x574347,_0xbea379._0x425ef1)]===_0x210bc2(_0xbea379._0x55e5ba,0x100,_0xbea379._0x3e4ece,0xf9)?_0x1e40cf['delta']:'';if(_0x5b3b49[_0xa78179(_0xbea379._0xc83ceb,_0xbea379._0x47ee98,_0xbea379._0x118061,_0xbea379._0x4b4a58)]>0x0){const _0x2bcfb6=this['responseTextParts'][_0xa78179(0x23a,0x24e,_0xbea379._0x1eee9b,_0xbea379._0x3c3c0b)](_0x2a7d9d)??[];return _0x2bcfb6['push'](_0x5b3b49),this[_0xa78179(0x21f,_0xbea379._0x34eee1,0x249,0x1ac)][_0x210bc2(_0xbea379._0x2c2563,0x2fd,0x184,_0xbea379._0x134a85)](_0x2a7d9d,_0x2bcfb6),[{'type':_0x210bc2(_0xbea379._0x49b8a6,0x1a2,_0xbea379._0x35aecc,_0xbea379._0x498cda),'index':_0x2a7d9d,'text':_0x5b3b49}];}break;}case _0xa78179(0x215,_0xbea379._0x1143aa,_0xbea379._0x10a9f7,0x1a2):{const _0x22cb8d=typeof _0x1e40cf[_0x210bc2(0x20e,0x2ad,0x1a0,_0xbea379._0x25efbe)]===_0xa78179(_0xbea379._0x5caa6d,0x19d,0x1ca,0x1a9)?_0x1e40cf[_0x210bc2(_0xbea379._0x59af78,_0xbea379._0x2b4d86,0x209,_0xbea379._0x59014d)]:void 0x0,_0x5aec80=_0x1e40cf[_0x210bc2(0x1e3,_0xbea379._0x33b85e,_0xbea379._0x4ac354,0x296)];if(_0x5aec80?.[_0x210bc2(_0xbea379._0x3a7b0e,0x134,0x1e2,_0xbea379._0x4ba108)]===_0x210bc2(0x152,_0xbea379._0x463b23,_0xbea379._0x44c81c,_0xbea379._0x14f0fb)&&_0x5aec80[_0x210bc2(0xf2,0x1ba,_0xbea379._0x7020fe,0xc9)]&&_0x5aec80[_0xa78179(_0xbea379._0x15dcca,0x2a7,_0xbea379._0x41cdef,_0xbea379._0x596685)])return this[_0x210bc2(_0xbea379._0x19060f,_0xbea379._0x147723,0x19c,0x22f)][_0x210bc2(_0xbea379._0x11a6ad,0x2b5,_0xbea379._0x9cb31e,_0xbea379._0x2c3621)](_0x5aec80[_0xa78179(0xdd,_0xbea379._0x25e461,_0xbea379._0x337828,0x58)],{'id':_0x5aec80[_0x210bc2(_0xbea379._0x3c2339,0x17c,_0xbea379._0x10a27a,0x4c)],'type':_0x210bc2(_0xbea379._0x462d4d,_0xbea379._0x29323d,_0xbea379._0x449939,_0xbea379._0xe18f44),'function':{'name':_0x5aec80['name'],'arguments':''}}),_0x22cb8d!==void 0x0&&(this[_0xa78179(0xdc,_0xbea379._0x593981,0x113,_0xbea379._0x7c3c3e)]['set'](_0x22cb8d,_0x5aec80[_0x210bc2(0xf2,_0xbea379._0x5ba85f,0x184,_0xbea379._0x525ba2)]),this['callIdToOutputIndex']['set'](_0x5aec80[_0x210bc2(0xf2,0x3c,0xad,0x12e)],_0x22cb8d)),[{'type':'tool_use_delta','id':_0x5aec80[_0xa78179(0xdd,0x1a1,0x184,0x19e)],'index':_0x22cb8d??0x0,'name':_0x5aec80[_0x210bc2(_0xbea379._0x44403a,0x1fb,0x2f0,_0xbea379._0x4cc453)]}];if(_0x5aec80?.[_0xa78179(0x13e,0x105,_0xbea379._0x56439f,0x139)]===_0xa78179(_0xbea379._0x14e4ce,0x168,0x222,0x1ed)&&_0x5aec80['id']){const _0x2e358=this[_0xa78179(0x13a,_0xbea379._0x4d6ae3,0x1f9,_0xbea379._0x318201)](_0x5aec80['id'],_0x22cb8d);_0x22cb8d!==void 0x0&&this[_0x210bc2(_0xbea379._0x3e4ece,0x1fa,_0xbea379._0x2a5b46,_0xbea379._0x577b57)]['set'](_0x22cb8d,_0x2e358['id']);}break;}case _0x210bc2(0x121,0x173,0x84,_0xbea379._0x1c68e7):{const _0x24fdca=typeof _0x1e40cf[_0x210bc2(0xf2,0x18c,0xbf,_0xbea379._0x1c68e7)]===_0x210bc2(_0xbea379._0x55e5ba,_0xbea379._0x2f95b0,0x208,0xd7)?_0x1e40cf[_0x210bc2(0xf2,_0xbea379._0x3990d0,0x17a,0x70)]:typeof _0x1e40cf[_0xa78179(_0xbea379._0x1a09c6,_0xbea379._0x4cef43,0x1c3,0x1fd)]===_0x210bc2(0x158,_0xbea379._0x2ddee2,_0xbea379._0x12e26c,0xa1)?this[_0x210bc2(_0xbea379._0x426a16,_0xbea379._0x3823bf,0x6d,0x135)][_0xa78179(0x23a,0x1cc,_0xbea379._0x47b4b5,0x1f3)](_0x1e40cf['output_index']):void 0x0,_0x3a251d=typeof _0x1e40cf['delta']===_0xa78179(0x137,_0xbea379._0x1f9b5a,_0xbea379._0x65309,_0xbea379._0x4df969)?_0x1e40cf['delta']:'',_0x5acb2c=_0x24fdca?this[_0xa78179(0x186,0xfa,0x1a7,0x11a)]['get'](_0x24fdca):void 0x0;if(_0x5acb2c&&_0x3a251d[_0xa78179(0x1b1,_0xbea379._0x19ecd4,_0xbea379._0x449939,_0xbea379._0x5c8a13)]>0x0)return _0x5acb2c[_0x210bc2(0x1b4,0x1a1,_0xbea379._0x3d0be4,_0xbea379._0x27493a)]['arguments']+=_0x3a251d,[{'type':'tool_use_delta','id':_0x5acb2c['id'],'index':this[_0x210bc2(_0xbea379._0xc199fa,_0xbea379._0x153c65,0x84,0xa8)]['get'](_0x5acb2c['id'])??(typeof _0x1e40cf[_0x210bc2(0x20e,_0xbea379._0x486ffb,_0xbea379._0x340e65,0x1ce)]===_0x210bc2(_0xbea379._0x4cde81,_0xbea379._0x3f92f4,0x172,0x195)?_0x1e40cf[_0x210bc2(_0xbea379._0x58c36d,_0xbea379._0x3749ab,0x210,0x14b)]:0x0),'inputDelta':_0x3a251d}];break;}case'response.function_call_arguments.done':{const _0x995747=typeof _0x1e40cf[_0xa78179(_0xbea379._0x4956c4,0x121,_0xbea379._0x3c35c2,0x14b)]==='string'?_0x1e40cf[_0x210bc2(0xf2,_0xbea379._0x5434bd,0x13a,_0xbea379._0x5ea9a0)]:typeof _0x1e40cf[_0xa78179(0x1f9,_0xbea379._0x3b56e2,0x179,0x258)]===_0xa78179(_0xbea379._0x5caa6d,_0xbea379._0x1945ef,0xba,0x198)?this[_0xa78179(0xdc,0x165,0x72,0x10d)]['get'](_0x1e40cf[_0xa78179(_0xbea379._0x1a09c6,_0xbea379._0x4721ac,_0xbea379._0x5b324,0x154)]):void 0x0,_0xa4c721=_0x995747?this[_0xa78179(_0xbea379._0x125d6e,0x234,_0xbea379._0x36862a,_0xbea379._0x143ded)][_0x210bc2(0x24f,_0xbea379._0x12aea2,_0xbea379._0x258871,_0xbea379._0x5c7cd1)](_0x995747):void 0x0;_0xa4c721&&typeof _0x1e40cf['arguments']===_0xa78179(0x137,_0xbea379._0x496a14,0xef,_0xbea379._0x5ba85f)&&(_0xa4c721[_0xa78179(_0xbea379._0x2a5b46,_0xbea379._0x46f466,_0xbea379._0x2bd1d9,_0xbea379._0x4d74a9)][_0xa78179(_0xbea379._0x5561c0,0xaa,_0xbea379._0x4be824,0xe0)]=_0x1e40cf['arguments']);break;}case _0xa78179(0xae,-0x11,_0xbea379._0x107d5e,_0xbea379._0x56fc84):{const _0x158a7d=typeof _0x1e40cf['output_index']===_0xa78179(0x143,0x1fa,_0xbea379._0x4ff45e,0x137)?_0x1e40cf['output_index']:void 0x0,_0x27d61d=_0x1e40cf[_0xa78179(_0xbea379._0x41af51,_0xbea379._0x44db9e,_0xbea379._0x26e799,0x208)];if(_0x27d61d?.[_0xa78179(0x13e,_0xbea379._0x498cda,0x157,0x1c4)]===_0x210bc2(_0xbea379._0x5471db,_0xbea379._0x2bcb36,_0xbea379._0x3e6722,_0xbea379._0x995e40)){const _0x375f04=_0x27d61d[_0xa78179(_0xbea379._0x1f208f,0x160,0xa8,0x16e)]??(_0x158a7d!==void 0x0?this['outputIndexToCallId'][_0xa78179(0x23a,0x29e,_0xbea379._0x303c65,0x267)](_0x158a7d):void 0x0),_0x11e61d=_0x375f04?this[_0xa78179(_0xbea379._0x125d6e,0x184,0x17a,_0xbea379._0x3eae80)][_0x210bc2(_0xbea379._0x53d6eb,0x2a9,0x1d3,_0xbea379._0x4a073e)](_0x375f04):void 0x0;_0x11e61d&&typeof _0x27d61d['arguments']==='string'&&(_0x11e61d[_0x210bc2(_0xbea379._0x462d4d,0x27b,_0xbea379._0xb47d23,_0xbea379._0x12e26c)][_0x210bc2(_0xbea379._0x3c35c2,_0xbea379._0x4f9769,_0xbea379._0xd17512,0x6a)]=_0x27d61d[_0x210bc2(0x12e,_0xbea379._0x4f663f,0x198,_0xbea379._0x5d8eb2)]);break;}if(_0x27d61d?.[_0x210bc2(0x153,_0xbea379._0x5b1078,0x172,0x117)]===_0xa78179(_0xbea379._0x19060f,0x14a,_0xbea379._0x19fc83,0x10f)&&_0x27d61d['id']){const _0x6b4e56=this[_0x210bc2(0x14f,_0xbea379._0x4a1a04,0x129,_0xbea379._0x363008)](_0x27d61d['id'],_0x158a7d);typeof _0x27d61d[_0x210bc2(0xbe,_0xbea379._0x9767b,_0xbea379._0x2ce940,_0xbea379._0x58210d)]==='string'&&(_0x6b4e56['encryptedContent']=_0x27d61d[_0xa78179(_0xbea379._0x6b11d7,0x54,_0xbea379._0x5c8f6b,0x65)]);if(Array[_0x210bc2(0x1d2,_0xbea379._0x4a90e8,0x18c,_0xbea379._0xda1616)](_0x27d61d[_0x210bc2(_0xbea379._0x3e3885,_0xbea379._0x208183,_0xbea379._0x27094b,0x157)]))for(let _0x189491=0x0;_0x189491<_0x27d61d[_0x210bc2(_0xbea379._0x3e3885,_0xbea379._0x460b5d,_0xbea379._0x54250c,_0xbea379._0x5ac8d8)][_0x210bc2(_0xbea379._0x3c5594,0x1c8,0x24f,0x141)];_0x189491+=0x1){const _0x554016=_0x27d61d[_0x210bc2(0x137,0x17e,0x1f0,_0xbea379._0x2304e4)][_0x189491];_0x554016[_0x210bc2(0x153,_0xbea379._0x27a5b4,_0xbea379._0x186176,_0xbea379._0x29fdec)]==='summary_text'&&typeof _0x554016[_0xa78179(0x197,0x25b,_0xbea379._0x541323,0x138)]==='string'&&_0x6b4e56[_0xa78179(_0xbea379._0x577b57,_0xbea379._0x58c329,_0xbea379._0x1ab84b,_0xbea379._0x42ca02)][_0xa78179(_0xbea379._0x52acf0,0x250,_0xbea379._0x14473f,_0xbea379._0x4945f6)](_0x189491,_0x554016[_0x210bc2(_0xbea379._0x21983a,_0xbea379._0x3bebb4,_0xbea379._0x2a206f,_0xbea379._0x9e06be)]);}typeof _0x27d61d[_0x210bc2(0x1ac,0x137,0x212,0xfa)]===_0xa78179(_0xbea379._0x3e3885,_0xbea379._0x55e5ba,_0xbea379._0x5c70c2,_0xbea379._0x145481)&&_0x6b4e56['textByIndex'][_0xa78179(0x222,0x178,_0xbea379._0x4cc415,_0xbea379._0x3c5594)](0x0,_0x27d61d[_0xa78179(0x197,0x162,0xfb,0x147)]);}break;}case _0x210bc2(0x141,0xcc,0x1a8,_0xbea379._0x32b5d3):{const _0x484ec1=typeof _0x1e40cf[_0x210bc2(_0xbea379._0x311d90,0x19e,_0xbea379._0x4bec25,0xa1)]==='string'?_0x1e40cf[_0xa78179(0xf8,0xd6,_0xbea379._0x22c749,0x167)]:'',_0x43f3c6=typeof _0x1e40cf[_0xa78179(_0xbea379._0x2b7fe5,0x191,_0xbea379._0x1b8f84,0xf0)]===_0x210bc2(0x14c,_0xbea379._0x12b620,_0xbea379._0x1ea093,_0xbea379._0x2bba24)?_0x1e40cf['item_id']:typeof _0x1e40cf[_0x210bc2(0x20e,_0xbea379._0x57c1a0,0x20f,0x27a)]==='number'?this[_0x210bc2(_0xbea379._0x4c9994,_0xbea379._0x455bd6,0x2a5,0x1a0)][_0xa78179(_0xbea379._0x3ee003,_0xbea379._0x32d7a8,0x2ac,_0xbea379._0x23373f)](_0x1e40cf[_0xa78179(_0xbea379._0x1a09c6,0x133,0x133,_0xbea379._0x25b803)]):void 0x0,_0x456917=typeof _0x1e40cf[_0xa78179(0x1f9,_0xbea379._0x43a769,0x20f,_0xbea379._0x55fe3c)]==='number'?_0x1e40cf[_0x210bc2(_0xbea379._0x468f42,0x207,_0xbea379._0x577dd0,0x214)]:0x0,_0x7d53d6=typeof _0x1e40cf[_0xa78179(0x191,0xe2,_0xbea379._0x51dec7,0x239)]===_0x210bc2(0x158,_0xbea379._0x5d3eec,0x111,0x221)?_0x1e40cf['summary_index']:0x0;if(_0x43f3c6&&_0x484ec1[_0x210bc2(0x1c6,0x125,0x125,0x24f)]>0x0){const _0x513de0=this[_0xa78179(_0xbea379._0xe4905b,_0xbea379._0x995e40,_0xbea379._0x3d0be4,_0xbea379._0x3cb942)](_0x43f3c6,_0x456917);_0x513de0[_0xa78179(_0xbea379._0x5fffe3,_0xbea379._0xfcc8b1,_0xbea379._0x460b5d,0x1c8)]['set'](_0x7d53d6,''+(_0x513de0[_0x210bc2(0x17e,_0xbea379._0xa60fad,0x183,0x14e)][_0x210bc2(0x24f,_0xbea379._0x55c480,_0xbea379._0x2244b3,_0xbea379._0x409dc7)](_0x7d53d6)??'')+_0x484ec1);if(isUserVisibleReasoning(this['request']))return[{'type':_0x210bc2(_0xbea379._0x487af5,0x1b9,_0xbea379._0x40ae50,_0xbea379._0x4da3c9),'delta':_0x484ec1,'itemId':_0x43f3c6,'outputIndex':_0x456917,'summaryIndex':_0x7d53d6}];}break;}case'response.reasoning_summary_text.done':{const _0x2f5a0b=typeof _0x1e40cf[_0x210bc2(0x16e,_0xbea379._0x210c6d,0x1c5,0x22e)]===_0x210bc2(0x14c,0x202,_0xbea379._0x98e69b,0x18f)?_0x1e40cf[_0xa78179(_0xbea379._0x2b7fe5,_0xbea379._0xf19723,_0xbea379._0x142bcc,0xb7)]:typeof _0x1e40cf[_0x210bc2(_0xbea379._0x59af78,_0xbea379._0x1b1b67,0x21f,0x18d)]==='number'?this[_0xa78179(_0xbea379._0x46aac3,0x282,_0xbea379._0x340e65,0x22e)][_0xa78179(_0xbea379._0x3ee003,0x2e8,_0xbea379._0x2d240a,0x24b)](_0x1e40cf['output_index']):void 0x0,_0x7c22c3=typeof _0x1e40cf[_0x210bc2(0x20e,_0xbea379._0xc68a03,0x1d1,0x148)]===_0xa78179(0x143,_0xbea379._0x47ee98,_0xbea379._0x2f20dc,_0xbea379._0x4be824)?_0x1e40cf[_0xa78179(_0xbea379._0x1b598a,0x237,0x141,_0xbea379._0x1c8db2)]:0x0,_0x478976=typeof _0x1e40cf[_0x210bc2(0x1a6,0x207,0xf5,_0xbea379._0x126a7c)]==='number'?_0x1e40cf[_0x210bc2(_0xbea379._0x5bea9a,_0xbea379._0xa60fad,_0xbea379._0x5b5b34,_0xbea379._0x563843)]:0x0,_0x3099d9=typeof _0x1e40cf[_0x210bc2(_0xbea379._0x583338,_0xbea379._0x4945f6,0x125,0xe8)]===_0xa78179(_0xbea379._0x3e3885,_0xbea379._0x1ee413,_0xbea379._0x239f37,_0xbea379._0xdcd08c)?_0x1e40cf[_0x210bc2(0x1ac,_0xbea379._0x13774a,_0xbea379._0xd1d152,0x125)]:'';_0x2f5a0b&&this[_0xa78179(_0xbea379._0xfc8f94,0xa5,0xa8,_0xbea379._0x3d775c)](_0x2f5a0b,_0x7c22c3)[_0xa78179(0x169,0x1f4,0x175,_0xbea379._0x5d4e14)][_0xa78179(_0xbea379._0x24b565,_0xbea379._0x171f8d,_0xbea379._0x28e969,0x2a5)](_0x478976,_0x3099d9);break;}case _0x210bc2(_0xbea379._0x1b5cdc,0x103,0x110,0x1fa):{const _0x193e78=typeof _0x1e40cf[_0xa78179(_0xbea379._0x20280c,_0xbea379._0x496a14,0xb6,_0xbea379._0x57bf4e)]===_0xa78179(_0xbea379._0x6b6d55,0x17e,_0xbea379._0x210c6d,0xcd)?_0x1e40cf['delta']:'',_0x1def8e=typeof _0x1e40cf[_0xa78179(0x159,0xc0,0xf7,_0xbea379._0x1ce9ec)]===_0x210bc2(0x14c,0x1bf,0x16a,_0xbea379._0x44719c)?_0x1e40cf[_0xa78179(_0xbea379._0x2b7fe5,0x15c,0x200,0x119)]:typeof _0x1e40cf[_0xa78179(_0xbea379._0x1b598a,_0xbea379._0x5cb762,0x16c,0x1a1)]==='number'?this['outputIndexToReasoningId'][_0x210bc2(0x24f,_0xbea379._0x25d905,_0xbea379._0x1eee9b,_0xbea379._0x4f701e)](_0x1e40cf['output_index']):void 0x0,_0x44e810=typeof _0x1e40cf['output_index']===_0xa78179(0x143,_0xbea379._0x2341b9,0x17c,_0xbea379._0x494fab)?_0x1e40cf[_0x210bc2(_0xbea379._0x216bc8,0x1ea,_0xbea379._0x4945f6,_0xbea379._0x50be61)]:0x0,_0x5d7b61=typeof _0x1e40cf[_0xa78179(0xf1,0x1a5,0x1a0,0x10d)]==='number'?_0x1e40cf[_0x210bc2(0x106,0x181,0xf1,_0xbea379._0x397b43)]:0x0;if(_0x1def8e&&_0x193e78['length']>0x0){const _0x1fcbc3=this['getOrCreateReasoningItem'](_0x1def8e,_0x44e810);_0x1fcbc3[_0xa78179(_0xbea379._0x103005,0x12c,_0xbea379._0x143ded,0xf2)][_0xa78179(0x222,0x200,0x24d,_0xbea379._0xac32)](_0x5d7b61,''+(_0x1fcbc3[_0x210bc2(_0xbea379._0x1b8d95,_0xbea379._0x140b49,_0xbea379._0x5265a1,0x236)][_0xa78179(_0xbea379._0x3957fa,0x2e5,_0xbea379._0x265a7c,_0xbea379._0x16286e)](_0x5d7b61)??'')+_0x193e78);if(isUserVisibleReasoning(this[_0xa78179(_0xbea379._0x379f52,_0xbea379._0x52204f,_0xbea379._0x3fbf2e,_0xbea379._0xfcc8b1)]))return[{'type':_0x210bc2(0x136,_0xbea379._0x2c0f8c,_0xbea379._0x5d4e14,0x6e),'contentIndex':_0x5d7b61,'delta':_0x193e78,'itemId':_0x1def8e,'outputIndex':_0x44e810}];}break;}case _0x210bc2(_0xbea379._0x1d676d,_0xbea379._0x11674f,0x27a,_0xbea379._0x56d30f):{const _0x43cef1=typeof _0x1e40cf[_0x210bc2(0x16e,0xc6,0x134,_0xbea379._0x566837)]===_0x210bc2(_0xbea379._0xd39a0f,_0xbea379._0x395b60,_0xbea379._0x52e386,0x216)?_0x1e40cf[_0x210bc2(_0xbea379._0x497e2c,0x182,0x160,0x181)]:typeof _0x1e40cf[_0xa78179(_0xbea379._0x1a09c6,_0xbea379._0x10a9f7,_0xbea379._0x6b6d55,_0xbea379._0x598d7d)]===_0x210bc2(_0xbea379._0x569afc,0x192,_0xbea379._0x563a79,0xd8)?this['outputIndexToReasoningId']['get'](_0x1e40cf[_0x210bc2(_0xbea379._0x5c0b40,0x1f4,0x184,0x1e1)]):void 0x0,_0x6792c6=typeof _0x1e40cf[_0xa78179(_0xbea379._0x1b598a,0x169,_0xbea379._0x439827,_0xbea379._0x1af25e)]==='number'?_0x1e40cf['output_index']:0x0,_0x237369=typeof _0x1e40cf[_0xa78179(0xf1,0xee,_0xbea379._0x2b8873,_0xbea379._0x145481)]===_0x210bc2(_0xbea379._0x4cde81,_0xbea379._0x2c0a48,_0xbea379._0x57713b,_0xbea379._0xc2fb9e)?_0x1e40cf[_0xa78179(0xf1,0xd3,0x102,_0xbea379._0x5d9a44)]:0x0,_0x2ccdc4=typeof _0x1e40cf[_0xa78179(_0xbea379._0x5e2e2e,_0xbea379._0x49c081,0x202,0x1a4)]===_0x210bc2(0x14c,0x1ae,_0xbea379._0x4ba108,0x1ee)?_0x1e40cf['text']:'';_0x43cef1&&this[_0x210bc2(0x14f,0x14c,0x20b,_0xbea379._0x58c329)](_0x43cef1,_0x6792c6)['textByIndex']['set'](_0x237369,_0x2ccdc4);break;}case'response.completed':{this[_0xa78179(0x139,_0xbea379._0x243d6e,0x9b,0xe9)]=_0x1e40cf[_0x210bc2(_0xbea379._0x4da261,0x167,_0xbea379._0x43101b,_0xbea379._0x18bc15)];break;}case'response.failed':{const _0x152a3d=_0x1e40cf[_0x210bc2(_0xbea379._0x4da261,0xf0,_0xbea379._0x55e5ba,_0xbea379._0xe40850)];throw new ProviderStreamEventError(_0x152a3d?.[_0x210bc2(_0xbea379._0x873951,0xeb,0x158,0x139)]?.[_0x210bc2(0x1f2,0x29a,_0xbea379._0x3d0e60,_0xbea379._0x4998ae)]??'Responses\x20stream\x20failed',{'code':_0x152a3d?.['error']?.[_0x210bc2(_0xbea379._0x2708c6,0xcc,0x186,0xe9)],'retryable':!![]});}case'error':{const _0x3e665b=_0x1e40cf[_0x210bc2(_0xbea379._0x3ee1c9,_0xbea379._0x22c5ce,0x214,_0xbea379._0x2adec5)];throw new ProviderStreamEventError(_0x3e665b?.[_0x210bc2(0x1f2,0x1aa,0x237,_0xbea379._0x4f05d2)]??_0xa78179(_0xbea379._0xc75ae2,0x202,0x222,0x1c7),{'code':_0x3e665b?.[_0xa78179(_0xbea379._0x587166,0x17d,0x8,0x61)],'retryable':!![],'status':typeof _0x1e40cf[_0x210bc2(0xd4,_0xbea379._0x49c081,0x31,0x47)]===_0x210bc2(0x158,0xb9,_0xbea379._0xe4e5b0,0xab)?_0x1e40cf[_0xa78179(_0xbea379._0x40c440,0x76,_0xbea379._0x3c0007,_0xbea379._0x55ac20)]:void 0x0});}}return[];}['buildPartialOutput'](){const _0x378cc1={_0x583997:0x4d1,_0x1cce1d:0x536,_0x57c607:0x5d7,_0x4560eb:0x1d2,_0x2a8c0c:0x4b,_0x35c15b:0x15b,_0x21a45b:0x16f,_0x57d089:0x47,_0x3ebdb7:0x59,_0xc3f8c4:0xb,_0x5cb376:0x3f,_0x22f241:0xe1,_0xbd4b6f:0x18a,_0x56dec4:0xe9,_0x209fb1:0x4ba,_0x6c8d78:0x4bc,_0x4f25f7:0x53f,_0x57a56:0x556,_0x6ab8b6:0x74,_0x3cf3bc:0x8a,_0x5a9100:0x25,_0x30bc5a:0x6b,_0x1a57b3:0x4c6,_0x555036:0x5dc,_0x25e254:0x5b6,_0x2dad98:0xd8,_0x4bc25b:0x6b,_0xac57d6:0x586,_0x27dc80:0x517,_0x37393c:0x40a,_0x4742cb:0x580,_0x433189:0x67f,_0x4f9a0c:0x5ce,_0x51b984:0x515,_0x36e9a7:0x55c,_0x41d749:0x493,_0x40832f:0x1e4,_0x447922:0x13e,_0x2ea572:0xf1,_0x54bd76:0x14a,_0x16c4f8:0xce,_0x470a56:0x22,_0x1ffc4c:0x63,_0x5e694f:0xf2,_0xe42e7f:0x15e,_0x689dcb:0x172,_0x3c2765:0x5ea,_0x5e4ddb:0x5a1,_0x2fa24c:0xad,_0x1c4ab9:0x155,_0x56e574:0x5c7,_0x141a1e:0x4cd,_0x2bd47f:0x575,_0x4ba5b9:0x649,_0x515c6f:0x5ce,_0x49100e:0x5a9,_0x454256:0x4e6,_0x2bd864:0x52b},_0x422fab={_0x4d2859:0x49b,_0x259040:0x13d},_0x3d59b4={_0x1e9845:0x2d6,_0x49b8e9:0x27d,_0xd3898d:0x2f2},_0x555282={_0x1faa75:0xb0,_0x366029:0x2aa},_0x228b04={_0x426679:0x1b},_0x270563=[];for(const [_0x4add10,_0x35325f]of this['responseTextParts']['entries']()){const _0x50c66e=_0x35325f[_0x40501c(0x51b,0x429,_0x378cc1._0x583997,0x4b2)]('');if(_0x50c66e[_0x40501c(0x565,_0x378cc1._0x1cce1d,0x587,_0x378cc1._0x57c607)]===0x0)continue;_0x270563[_0x24d68d(0x18b,0x83,_0x378cc1._0x4560eb,0x114)]({'index':_0x4add10,'item':{'type':_0x24d68d(_0x378cc1._0x2a8c0c,_0x378cc1._0x35c15b,0x6f,0x115),'role':_0x24d68d(_0x378cc1._0x21a45b,0x198,0x203,0x13b),'content':[{'type':_0x24d68d(-0x8f,-_0x378cc1._0x57d089,-_0x378cc1._0x3ebdb7,0x13),'text':_0x50c66e}]}});}function _0x24d68d(_0x50ab14,_0x30bc97,_0x1fe793,_0x4c4ecc){return _0x4d4006(_0x1fe793,_0x30bc97-_0x228b04._0x426679,_0x4c4ecc- -0x3,_0x4c4ecc-0x185);}for(const _0xe3b14b of this['reasoningItems']['values']()){_0x270563['push']({'index':_0xe3b14b[_0x24d68d(_0x378cc1._0xc3f8c4,-_0x378cc1._0x5cb376,_0x378cc1._0x22f241,0x6d)]??_0x270563[_0x24d68d(0xd9,0x18a,_0x378cc1._0xbd4b6f,_0x378cc1._0x56dec4)],'item':{'type':'reasoning','id':_0xe3b14b['id'],..._0xe3b14b[_0x40501c(0x454,0x49a,0x4f0,_0x378cc1._0x209fb1)]?{'encrypted_content':_0xe3b14b['encryptedContent']}:{},..._0xe3b14b[_0x40501c(_0x378cc1._0x6c8d78,0x530,_0x378cc1._0x4f25f7,_0x378cc1._0x57a56)][_0x24d68d(_0x378cc1._0x6ab8b6,-_0x378cc1._0x3cf3bc,-0x1e,0x1e)]>0x0?{'summary':Array[_0x24d68d(-_0x378cc1._0x5a9100,_0x378cc1._0x30bc5a,0x11b,0x7c)](_0xe3b14b[_0x40501c(_0x378cc1._0x1a57b3,_0x378cc1._0x555036,0x53f,_0x378cc1._0x25e254)][_0x24d68d(0xf2,_0x378cc1._0x2dad98,0xde,_0x378cc1._0x4bc25b)]())['sort']((_0x53c0ca,_0x409946)=>_0x53c0ca[0x0]-_0x409946[0x0])['map'](([,_0x1172a6])=>{function _0x255118(_0x1a3e59,_0x31325d,_0x559c55,_0x35e9a2){return _0x24d68d(_0x1a3e59-_0x555282._0x1faa75,_0x31325d-0x162,_0x1a3e59,_0x559c55- -_0x555282._0x366029);}return{'type':_0x255118(-0x231,-_0x3d59b4._0x1e9845,-_0x3d59b4._0x49b8e9,-_0x3d59b4._0xd3898d),'text':_0x1172a6};})}:{},..._0xe3b14b[_0x40501c(_0x378cc1._0xac57d6,0x50c,0x580,_0x378cc1._0x27dc80)][_0x40501c(0x42f,_0x378cc1._0x37393c,0x4bc,0x4af)]>0x0?{'text':Array['from'](_0xe3b14b[_0x40501c(0x57d,0x5a0,_0x378cc1._0x4742cb,0x5e5)]['entries']())[_0x40501c(_0x378cc1._0x433189,0x62a,_0x378cc1._0x4f9a0c,0x663)]((_0x251ee4,_0x49a2e9)=>_0x251ee4[0x0]-_0x49a2e9[0x0])['map'](([,_0x4468a1])=>_0x4468a1)['join']('')}:{}}});}function _0x40501c(_0x3de6f2,_0x356976,_0x418c31,_0x2e2127){return _0x4d4006(_0x356976,_0x356976-0x1e2,_0x418c31-_0x422fab._0x4d2859,_0x2e2127-_0x422fab._0x259040);}for(const _0x4e28f8 of this[_0x40501c(0x5c2,_0x378cc1._0x51b984,_0x378cc1._0x36e9a7,_0x378cc1._0x41d749)][_0x24d68d(0xfe,0x128,_0x378cc1._0x40832f,_0x378cc1._0x447922)]()){_0x270563[_0x24d68d(0xa0,_0x378cc1._0x2ea572,_0x378cc1._0x54bd76,0x114)]({'index':this[_0x24d68d(_0x378cc1._0x16c4f8,0x34,-_0x378cc1._0x470a56,_0x378cc1._0x1ffc4c)][_0x24d68d(_0x378cc1._0x5e694f,0x20f,_0x378cc1._0xe42e7f,_0x378cc1._0x689dcb)](_0x4e28f8['id'])??_0x270563['length'],'item':{'type':'function_call','call_id':_0x4e28f8['id'],'name':_0x4e28f8[_0x40501c(_0x378cc1._0x3c2765,0x58d,0x575,_0x378cc1._0x5e4ddb)][_0x24d68d(_0x378cc1._0x2fa24c,0x15d,0x213,_0x378cc1._0x1c4ab9)],'arguments':_0x4e28f8[_0x40501c(_0x378cc1._0x56e574,_0x378cc1._0x141a1e,_0x378cc1._0x2bd47f,0x5e7)]['arguments']}});}return _0x270563[_0x40501c(0x57f,_0x378cc1._0x4ba5b9,_0x378cc1._0x515c6f,_0x378cc1._0x49100e)]((_0x259770,_0x728e63)=>_0x259770[_0x40501c(0x4dc,0x490,0x4fc,0x546)]-_0x728e63['index'])[_0x40501c(0x53f,0x539,_0x378cc1._0x454256,_0x378cc1._0x2bd864)](_0x4ff190=>_0x4ff190['item']);}[_0x4d4006(0x128,0x135,0x75,0x116)](_0x2d269f,_0x4315f3){const _0x2dde5a={_0x4a31e0:0x276,_0x31316c:0x1da,_0x109b44:0x222,_0x515f77:0xc1,_0x5d975c:0x15b,_0x74d305:0x44,_0x3bf0bd:0xd8,_0x2c1685:0x7c,_0x1a4225:0x5e,_0x17ae9b:0x28c,_0x52f758:0x199,_0x330688:0x32a,_0x454751:0x262},_0x46c5fd={_0x1942dd:0x14,_0x528d23:0x10f},_0x451306={_0x12b072:0x125,_0x1bf4e6:0x42},_0x105979=this[_0x1d6a9b(_0x2dde5a._0x4a31e0,_0x2dde5a._0x31316c,0x28d,_0x2dde5a._0x109b44)][_0xcfc3e4(_0x2dde5a._0x515f77,0x175,0x11a,_0x2dde5a._0x5d975c)](_0x2d269f);if(_0x105979)return _0x4315f3!==void 0x0&&(_0x105979[_0xcfc3e4(-_0x2dde5a._0x74d305,0x4e,-_0x2dde5a._0x3bf0bd,-0xc9)]=_0x4315f3,this[_0xcfc3e4(0x6f,_0x2dde5a._0x2c1685,0x9c,_0x2dde5a._0x1a4225)][_0x1d6a9b(0x281,0x262,_0x2dde5a._0x17ae9b,_0x2dde5a._0x52f758)](_0x4315f3,_0x2d269f)),_0x105979;function _0xcfc3e4(_0x12289d,_0x4cfc9b,_0x18ddd6,_0x509555){return _0x18006e(_0x12289d-_0x451306._0x12b072,_0x4cfc9b-_0x451306._0x1bf4e6,_0x12289d- -0xed,_0x18ddd6);}const _0x1cd1ec={'id':_0x2d269f,'outputIndex':_0x4315f3,'summaryByIndex':new Map(),'textByIndex':new Map()};this[_0x1d6a9b(0x194,0x1da,0x158,0x1fe)]['set'](_0x2d269f,_0x1cd1ec);_0x4315f3!==void 0x0&&this[_0x1d6a9b(0x1c5,0x228,0x2ba,0x2c8)][_0x1d6a9b(_0x2dde5a._0x330688,_0x2dde5a._0x454751,0x30f,0x2f1)](_0x4315f3,_0x2d269f);function _0x1d6a9b(_0x146ca7,_0x4884a2,_0x416f2d,_0x55e1f7){return _0x18006e(_0x146ca7-_0x46c5fd._0x1942dd,_0x4884a2-_0x46c5fd._0x528d23,_0x4884a2-0xcc,_0x416f2d);}return _0x1cd1ec;}};function createOpenAiResponsesStreamParser(_0x28ca6c){return new OpenAiResponsesStreamParser(_0x28ca6c);}function _0x521a(){const _0x433da0=['AM9PBG','Aw52ywXPzgf0zq','C2vUzeH0DhbtDxjMywnLuMvXDwvZDa','D2vIC29JA2v0','C3vWCg9YDgvKrw5KCg9PBNrZ','C29Tzq','y2XVC2u','igrVzxmGBM90ihn1ChbVCNqGBM9Ulxn0CMvHBwLUzYbYzxnWB25Zzxm','DMLZAwjPBgL0Eq','yxbWBgLJyxrPB24VANnVBG','DgHPBMTPBMC','Ahr0Cc1QC29U','zwzMB3j0','C3vYzMfJzq','ywnXDwLYzvjLC3bVBNnLC1nVy2TLDeXVy2S','w0rptKvD','zM9Yy2vgDwXSuMvWBgf5','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzgvSDge','zMLUza','C3rYzwfTvMLHuM91DgvY','mJaYns0Xmc0Wmq','BwfW','Dg9tDhjPBMC','AgfZ','CM91DgvY','yxbP','CM9Szq','C3rYzwfTvMLHuMvZCg9UC2vZv2vIu29JA2v0u3vYzMfJzq','mtm3ntu2mgnvt1jfyq','z2v0tw9KzwXZ','yxjNDw1LBNrZ','zw5JCNLWDgvKq29UDgvUDa','CMvZB2X2zujHC2vvCMW','DxnLCI12AxnPyMXL','qMfZAa','CMvZCg9UC2u','y2HHDgnTCgWT','Aw5WDxrFC2nOzw1H','B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','C3vTBwfYEq','DxrMltG','ywjVCNrLza','CMvZB2X2zunYzwrLBNrPywW','Aw5KzxG','C2HVDwXKuhjLzMvYuMvZCg9UC2vZqxbP','Dg9VBf91C2u','C291CMnL','zw5Kx3r1CM4','y2fSBeLKvg9pDxrWDxrjBMrLEa','CMvZCg9UC2uUCMvHC29UAw5Nx3n1Bw1HCNLFDgv4Dc5KzwX0yq','sw52ywXPzcbxzwjtB2nRzxqGBwvZC2fNztOG','Dgv4DfbHCNrZ','BwvKAwfFDhLWzq','z2L0AhvIqxbPvxjS','Dg9VBhm','v2vIu29JA2v0ignSB3nLzcbIzwzVCMuGB3bLBMLUzW','zw50CMLLCW','y29UC3vTzuv2zw50','B3v0Chv0sw5KzxG','B2jQzwn0','C3rYAw5N','y29TCgXLDgvwAwfdAgf0q29TCgXLDgLVBNntDxjMywnL','zMLUywXszxnWB25Zzq','z2v0t3jdCMvHDgvszwfZB25PBMDjDgvT','zxzLBNq','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBLn0yxrL','zNvUy3rPB25Fy2fSBa','DhLWzq','CMvZCg9UC2vjza','C3rYzwfTvMLHugvYC2LZDgvUDfjLC3bVBNnLC1nVy2TLDa','BwvZC2fNzuLK','v2vIu29JA2v0ignSB3nLzcb3AxrOignVzguG','BNvTyMvY','zNjVBq','l2nVCgLSB3rFAw50zxjUywWVDJiVDg9Rzw4','uMvZCg9UC2vZifDLyLnVy2TLDcbJBg9ZzwqGyMvMB3jLihjLC3bVBNnLlMnVBxbSzxrLza','C3rYzwfTv2vIu29JA2v0u3vYzMfJzq','y2HVAwnLCW','y29TCgXLDgvK','yxbPlwTLEq','Aw5WDxq','C2HPzNq','C2vZC2LVBKLK','C3rHDhvZvgv4Da','CgvUzgLUzW','Aw5WDxruB2TLBNm','zMv0y2HjBxbS','y29TCgXLDgvwAwfdB25MAwD1CMvKu3vYzMfJzq','zMLUzfjLC3bVBNnLC1nVy2TLDenOzwnRCg9PBNq','CMvXDwvZDa','CMvKywn0zwrFDgHPBMTPBMC','CMvZB2X2zq','Ahr0Chm6lY9HCgKUz2L0AhvIlMnVBq','ignHBM5VDcbWyxjZzsbtu0uGzxzLBNrZ','AxrLBv9Pza','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzgvSDge','yxv0AfnJAgvTzq','uMvZCg9UC2vZihn0CMvHBsbMywLSzwq','BgLTAxrZ','yNvPBgrszxnWB25ZzxntB2nRzxrfDMvUDa','CMvZB2X2zxi','C2vZC2LVBG','ChjVDg9JB2XwzxjZAw9U','C3rVCfjLyxnVBG','B3bLBG','C3rYzwfTvMLHq2HHDenVBxbSzxrPB25Zu3vYzMfJzq','qw50AhjVCgLJtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','l3jLC3bVBNnLCW','ChjVDMLKzxjtDgf0zq','D3nZoG','C3vTBwfYEuj5sw5KzxG','yw50AhjVCgLJrgvSzwDHDgu','DMfSDwu','CMvHC29UAw5NugfYDhm','o2jHC2u2ncW','ywnJzxnZvg9Rzw4','DhjHBNnWB3j0','Dg9VBenHBgXpCMrLCG','CMvTB3zLrxzLBNrmAxn0zw5LCG','C2HVDwXKuMv0CNLszxnWB25ZzxntB2nRzxrszxf1zxn0','zxjYB3i','B3bLBMfPuMvZCg9UC2vZuMvZCg9UC2vjza','D3m6','y29TCgXLDgvwAwfszxnWB25ZzxntDxjMywnL','C3rYzwfT','C3rYzwfTvMLHu3vYzMfJzq','zgvJB2rL','y3jLyxrLuMvXDwvZDa','yxv0Ag9YAxPHDgLVBG','z2v0qw50AhjVCgLJrgvSzwDHDgu','CMvZCg9UC2vtB2nRzxrtDhjLyw0','zgf0yq','ChjLCgfYzunOyxrszxf1zxn0','CMvHC29UAw5Nx2nVBNrLBNq','D2fPDezVCLjLDhj5','z2v0uMv0CNLezwXHEu1Z','AxneB25L','yNvKz2v0vg9Rzw5Z','Bwv0ywrHDge','Dg9VBenHBgXZ','y29UDgvUDa','mZm1mJiXnwfNzLrZwa','C3rYAw5NAwz5','ChjVDg9JB2W','C3bSAxq','zMv0y2G','qxv0AgvUDgLJyxrPB24GzMfPBgvKlIbqBgvHC2uGy2HLy2SGEw91CIbbueKGA2v5lG','t3bLBKfjiefqssbLCNjVCIa','qw50AhjVCgLJigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNmTC3rYzwfT','C3vTBwfYEv9PBMrLEa','B3v0Chv0vg9Rzw5Z','Dg9VBf91C2vFAwq','uhjVDMLKzxjtDhjLyw1fDMvUDevYCM9Y','CMvMDxnHBa','Aw5JBhvKzunVBNrLBNruExbL','Dgv4Da','zgf0ytO','yw50AhjVCgLJx3jLzgfJDgvKx3rOAw5RAw5N','CMvHC29UAw5NsxrLBxm','CMvHC29UAw5N','y29TCgXLDgvwAwftDxjMywnL','AxngAw5PDgu','CMv0CNKTywz0zxi','zNvUy3rPB24','C2HVDwXKuMv0CNLtDhjLyw1bDhrLBxb0rxjYB3i','CMvHC29U','y2fUy2vS','C2HVDwXKuMv0CNLszxnWB25Zzq','ywDLBNq','Aw5PDgLHBev2zw50','Dg9VBf9JywXSCW','Dg9VBf9Yzxn1Bhq','BwvZC2fNzv9ZDgfYDa','y29TCgXLDgu','Dgv4Dej5sw5KzxG','ChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','AgvHzgvYuMvZB2X2zxi','Aw5WDxrFDgv4Da','vw5RBM93BIbWCM92AwrLCIbLCNjVCG','uMvZCg9UC2vZifDLyLnVy2TLDcbYzxf1zxn0igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','zgvSzxrL','BgvUz3rO','Dg9VBfvZzvn0yxj0rw1PDhrLza','z2v0uMvHzgvY','y2fWywjSzv9LBMrWB2LUDhm','Aw5JBhvKzxm','CMvXDwvZDhm','B3bLBMfPx3jLyxnVBMLUzW','Ahr0Cc1ZC2u','C2LNBMfS','CMvHzhLtDgf0zq','C3rHCNrZv2L0Aa','odmWBuHquuTR','AxnbCNjHEq','D2vIu29JA2v0rMfJDg9YEq','Aw1Hz2u','Bwf4x291Dhb1Df90B2TLBNm','C2XPy2u','qMvHCMvYia','ssbJAgvJA2vKihrOzsbTB2nRzwqGDg9VBcbYzxn1BhqUia','zMLUAxnOx3jLyxnVBG','Cgf0Aa','r2L0shvIiefqssbLCNjVCIa','y29UC3vTzvDLyLnVy2TLDev2zw50','Dw5ZDxbWB3j0zwrFyxbPx2zVCL9TB2rLBa','ywnJzxb0','Aw5KzxHpzG','DNnJB2rLlZeUmta2lJe','y3jLyxrLsgvHzgvYCW','yxv0BW','AxrLBq','y2HHDenVBxbSzxrPB25Zugf0Aa','C3rYzwfTvMLHuMvZCg9UC2vZu29JA2v0qxr0zw1WDa','Aw5WDxrFANnVBL9KzwX0yq','yMfZzvvYBa','t3bLBKfPqxbPrxjYB3i','C2vUza','y29UC3vTzvnZzuv2zw50','yxbPs2v5','z3b0ltrV','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBKTLEq','uhjVDMLKzxiGCMvXDwvZDcbMywLSzwqGD2L0AcbZDgf0DxmG','C3rVCf9YzwfZB24','B3bLBMfPlxjLC3bVBNnLCY13CW','ChvZAa','BwvZC2fNzq','DNnJB2rLlZeUmta0lJi','A2LUza','zNjVBuvUDhjPzxm','mZCXndnXsMfsCKG','Dg9VBc1JywXSlq','B3jPz2LUlxrYywnRzxi','Dg9VBenHBgXZqNLjBMrLEa','z2v0t3jdCMvHDgvszxnWB25ZzxntB2nRzxq','CMv0CNLHyMXL','yMvHCMvY','B3v0Chv0sw5KzxHuB1jLyxnVBMLUz0LK','y29UDgvUDf9KzwX0yq','C3vYzMfJzxm','DxnHz2u','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzg9Uzq','CMvXDwvZDe11Dgf0B3jZ','CMvHC29UAw5Nx3rLEhq','DhjPBq','ywrK','Aw1Hz2vFDxjS','ue9tva','Bw9KzwXfBMrWB2LUDenHy2HL','yw50AhjVCgLJlxzLCNnPB24','Ec1HCgKTA2v5','B3v0Chv0x3rVA2vUC19KzxrHAwXZ','y29UBMvJDgLUzW','C29YDa','B3v0Chv0x2LUzgv4','DhjPBvn0yxj0','ChjVEhK','DgHPBMTPBMDFzgvSDge','C2LNBMf0DxjLx2rLBhrH','y2f0y2G','y2HHDfn0CMvHBq','odG4mte4ngfSAgHbBa','DgHLBG','C2vUzfDPDgHszxrYAwvZ','yxnZAxn0yw50','y2HHDenVBxbSzxrL','l2nOyxqVy29TCgXLDgLVBNm','DMfSDwvZ','DxnLC1jLC3bVBNnLC0fWAq','Dg9Rzw5fEgnOyw5NzufWAvzLCNnPB24','Bw9JAW','ntCZngfJz2rZvG','zg9Uzq','C3LZDgvT','CMvZCg9UC2uUB3v0Chv0x3rLEhqUzgvSDge','B3bLBMfPlxjLC3bVBNnLCW','y29TCgXLDgvtDxjMywnL','B3bLBKfPrgvSzwDHDgu','r0vu','zMLUAxnO','ChjLDMLVDxnszxnWB25ZzuLK','nJC2mJbUs0TzqLq','CMvZCg9UC2uUB3v0Chv0x2L0zw0UywrKzwq','zw5KCg9PBNrZ','Bwv0Ag9K','C3rYzwfTu3vYzMfJzq','y29TCgXLDgvwAwfsB3v0zxi','Dg9bCgLfCNjVCG','yNvPBgrqyxj0AwfSt3v0Chv0','AgvHzgvYCW','BMfTzq','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','CMvZCg9UC2vuzxH0ugfYDhm','zgvZy3jPChrPB24','y2fJAgvK','C2v0','y3jLyxrLtwLZC2LUz0nYzwrLBNrPywXfCNjVCG','C2vSzwn0u3vYzMfJzq','BM93','y29TCgXLDgLVBL90B2TLBNm','ANnVBG','yxbWBhLnB2rLBerLzMf1BhrZ','Bwf4vg9Rzw5Z','BxnNlq','yw50AhjVCgLJx3rOAw5RAw5N','y2HHDgnTCgW','B3v0Chv0x3rVA2vUCW','yMXVy2TZ','oNjLyxnVBMLUzZOW','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','y3jLyxrLu3rYzwfTugfYC2vY','ywjVCNq','nhPotKDcBW','yM9KEq','Aw5WDxrFDg9Rzw5Z','zgLZywjSzwq','y29WAwXVDc1JAgf0lZaUmZeUmW','C3rYzwfTshr0Cfn1CMzHy2u','CgfYDgLHBf9QC29U','z2v0','v2vIu29JA2v0ihjLCxvLC3qGzMfPBgvK','BwfYA01VzgvSqxnszxnWB25ZzxnpBMX5','Aw50zxjSzwf2zwqTDgHPBMTPBMCTmJaYns0Wns0Xna','zw5JCNLWDgvKx2nVBNrLBNq','uhjVDMLKzxjszxf1zxn0q29UC3rYDwn0Aw9UrxjYB3i','Dg9VBf91C2vFzgvSDge','CMvHC29UAw5Nx3rVA2vUCW','mtu4zfzQwuHk','CMvZCg9UC2uUB3v0Chv0x2L0zw0Uzg9Uzq','C2LNBMf0DxjL','BwvZC2fNzxm','y3jLzgvUDgLHBa','DxnLCG','mJaYmY0WnI0Wmq','C3rYzwfTvMLHuMvZCg9UC2vZu3vYzMfJzq','yw50AhjVCgLJlw1LC3nHz2vZlxn0CMvHBq','igrPzcbUB3qGChjVDMLKzsbHifDLyLnVy2TLDcbvuKWGB3iGCgf0Aa','C2vZC2LVBK1HBMfNzxi','ChjVDMLKzxjbzgfWDgvY','y29TCgXLDgLVBL90B2TLBNnFzgv0ywLSCW','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','ywrKrxzLBNrmAxn0zw5LCG','u3vYzMfJzsa','CMvZCg9UC2vZugf0Aa','CMvZCc0','C3rHDhvZ','CMvHC29UAw5Nx2rLDgfPBhm','Ahr0Chm6lY9HCgKUyw50AhjVCgLJlMnVBq','CgfYC2u','C29JA2v0','qw50AhjVCgLJihn0CMvHBsbMywLSzwq','nty1odyWCLr5y0vu','BwfWqxbPrxjYB3i','zw5HyMXLza','vw5ZDxbWB3j0zwqGr2L0shvIig1VzgvSihn1CMzHy2u6ia','B3v0Chv0','y29Kzq','C3bSAwnL','Bw9Kzq','y29UDgvUDf9IBg9JAW','Aw5WDxrkC29U','DxjS','C3rYzwfTvMLHq29UzMLNDxjLzfn1CMzHy2u','Aw52ywXPzgf0zvjLC3bVBNnLC1nVy2TLDfnLC3nPB24','CMvZCg9UC2vtB2nRzxq','sw1Hz2uGCMv0DxjUzwqGyNKGvMLLD0zPBguGzM9YihrVB2WGCMvZDwX0ia','Bw9KzwW','ChjLDMLVDxnFCMvZCg9UC2vFBM90x2zVDw5K','Dgv4Dc9LDMvUDc1ZDhjLyw0','zwrPDg9YugX1z2LUvMvYC2LVBG','BwvZC2fNzuLUzgv4','CMvZzxq','C2HVDwXKuMv0CNLszxf1zxn0rxjYB3i','B3v0Chv0x3rLEhq','B3v0Chv0sw5KzxHuB0nHBgXjza','y2fSBf9Pza','zxzLBNq6','zMLSDgvY','t1bftG','C3vWCg9YDgvKx2vUzhbVAw50CW','CMvZCg9UC2vtDhjLyw0','BgfZDfjLC3bVBNnLswq','C2vZC2LVBI10B2TLBG','l21VzgvSCW','C2L6zq','C2vUzfjHD1jLCxvLC3q','t3bLBKfjigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','y29UDgvUDf9IBg9JA19ZDgfYDa','CMvZCg9UC2uUy3jLyxrL','uMf0zsbSAw1PDcbLEgnLzwrLzc4GugXLyxnLihrYEsbHz2fPBIbSyxrLCI4','yw50AhjVCgLJlw1LC3nHz2vZ','z2v0u3vYzMfJzq','ChjLCgfYzvjLC3bVBNnLC1nVy2TLDfjLCxvLC3q','igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','CMvWBgfJzq','y29UDgvUDf9PBMrLEa','B2f1DgGTDg9Rzw4','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','ignHBM5VDcbWyxjZzsbxzwjtB2nRzxqGzxzLBNrZ','C3vTBwfYEv90zxH0','z2v0t3bLBKfPrgvSzwDHDgu','D2vIC29JA2v0x2nVBM5Ly3rPB25FBgLTAxrFCMvHy2HLza','zgvSDge','y29UBMvJDf9MywLSzwq','Ahr0Chm6lY9HCgKUB3bLBMfPlMnVBs92mq'];_0x521a=function(){return _0x433da0;};return _0x521a();}function createOpenAiSurfaces(_0x3c9c89={}){const _0x3d2925={_0x5e63a9:0x6d8,_0x146267:0x5e8,_0x5ef840:0x55d,_0x28f57e:0x4c0,_0x3246f6:0x599,_0x13d80:0x495,_0x546d31:0x69b,_0x27876a:0x558,_0x337801:0x4ec},_0x2e2b7f={_0xe01fc:0x297,_0xa62a8c:0x2de},_0x2a8355={_0x465bb8:0x28c,_0x19a227:0x1ff,_0xf9fab2:0x306},_0x58968b={_0x138117:0x267},_0x24436c={_0x5afe25:0x92,_0x557054:0x2},_0xb218a7=_0x3c9c89[_0x177195(0x82,0xbd,0x4a,0x23)]??_0x300a9b(0x622,0x64a,0x67a,_0x3d2925._0x5e63a9);function _0x300a9b(_0x5ec720,_0x3aac7e,_0x11e56a,_0x2bd9a1){return _0x18006e(_0x5ec720-_0x24436c._0x5afe25,_0x3aac7e-_0x24436c._0x557054,_0x5ec720-0x4a9,_0x3aac7e);}function _0x177195(_0x322b40,_0x1f31c1,_0x530601,_0x86cafe){return _0x4d4006(_0x530601,_0x1f31c1-0x153,_0x1f31c1- -0x4d,_0x86cafe-0x185);}const _0xe8ac5c=_0x3c9c89['responsesPath']??_0x300a9b(0x583,_0x3d2925._0x146267,_0x3d2925._0x5ef840,_0x3d2925._0x28f57e);return[{'id':OPENAI_CHAT_COMPLETIONS_SURFACE,'transport':'http-json','createRequest'(_0x105452){return{'accept':'application/json','body':createChatRequestBody(_0x105452,![]),'path':_0xb218a7};},'parseResponse'(_0x202014){return parseChatCompletionResponse(_0x202014);}},{'id':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,'transport':_0x300a9b(0x5d5,0x627,_0x3d2925._0x3246f6,0x64a),'createRequest'(_0x3253d0){function _0x227d63(_0x5f09ef,_0x2d0684,_0x4c6b4a,_0x32482a){return _0x300a9b(_0x5f09ef- -_0x58968b._0x138117,_0x2d0684,_0x4c6b4a-0x1bc,_0x32482a-0x11);}return{'accept':_0x227d63(_0x2a8355._0x465bb8,_0x2a8355._0x19a227,_0x2a8355._0xf9fab2,0x1c3),'body':createChatRequestBody(_0x3253d0,!![]),'path':_0xb218a7};},'createStreamParser'(_0x42ef96){return new OpenAiChatCompletionsStreamParser(_0x42ef96);}},{'id':OPENAI_RESPONSES_SURFACE,'transport':_0x300a9b(0x523,0x5a1,0x4af,_0x3d2925._0x13d80),'createRequest'(_0xa20850){const _0x496a7b={_0x43303d:0xa8,_0x9068ec:0xa7};function _0x30115b(_0x4f4720,_0x3b2434,_0x16e2ab,_0x17499c){return _0x177195(_0x4f4720-_0x496a7b._0x43303d,_0x16e2ab-0x280,_0x4f4720,_0x17499c-_0x496a7b._0x9068ec);}return{'accept':_0x30115b(_0x2e2b7f._0xe01fc,0x1a7,0x272,_0x2e2b7f._0xa62a8c),'body':createResponsesRequestBody(_0xa20850,![]),'path':_0xe8ac5c};},'parseResponse'(_0x258cab,_0x4f7413){return parseResponsesResponse(_0x258cab,_0x4f7413);}},{'id':OPENAI_RESPONSES_STREAM_SURFACE,'transport':_0x300a9b(0x5d5,0x668,0x621,_0x3d2925._0x546d31),'createRequest'(_0x24d4a3){return{'accept':'text/event-stream','body':createResponsesRequestBody(_0x24d4a3,!![]),'path':_0xe8ac5c};},'createStreamParser'(_0x3bedda){return new OpenAiResponsesStreamParser(_0x3bedda);}},{'id':OPENAI_RESPONSES_WEBSOCKET_SURFACE,'transport':_0x300a9b(0x51b,0x5aa,_0x3d2925._0x27876a,_0x3d2925._0x337801),'createRequest'(_0x209a57){return{'initialEvent':createOpenAiResponsesWebSocketEvent(_0x209a57),'path':_0xe8ac5c};},'createStreamParser'(_0x2098ca){return createOpenAiResponsesStreamParser(_0x2098ca);}}];}var OpenAiProviderAdapter=class{['headerResolver'];constructor(_0x390c71){const _0x299762={_0x8f508d:0x1c5},_0x3920d5={_0x249954:0x14b,_0x4cd155:0x21};function _0x2c3ddc(_0x4f1bac,_0x593d4d,_0x12d17b,_0xcef2ff){return _0x18006e(_0x4f1bac-0x126,_0x593d4d-_0x3920d5._0x249954,_0xcef2ff-_0x3920d5._0x4cd155,_0x12d17b);}this[_0x2c3ddc(0x184,0x1cf,_0x299762._0x8f508d,0x141)]=_0x390c71;}[_0x4d4006(0x211,0x223,0x15e,0xba)](){return new Error('OpenAiModel\x20requires\x20an\x20apiKey\x20or\x20providerSessionResolver');}async['createHeaders'](_0x1eaedc,_0x4044bb){const _0x5b0468={_0x28b717:0x573,_0x4eed4f:0x5cc,_0x4a9925:0x5a3,_0x5c4893:0x4ff,_0x3ef1bd:0x508,_0x4dec9a:0x8f,_0x175441:0x145,_0x5bea74:0x3f2,_0x2da41d:0x48b,_0xdec50b:0x1ab,_0x929bc0:0x1bd,_0x256856:0x61e,_0x73b8e:0x683,_0x2e4eed:0x32f,_0xd8e97a:0x275,_0x132481:0x362,_0xc83ab8:0x4d5,_0x157c5f:0x5dd,_0x57d3c6:0x53a,_0x440cec:0x5f7,_0x45d15e:0x5c4,_0x24c3f8:0x474,_0x544f35:0x56d},_0x232795={_0x34bf11:0x1d8,_0x5f0b29:0x49f},_0x158658={_0x5a8f1c:0x2db},_0x3c1c28=new Headers();_0x3c1c28['set'](_0x3fb75e(_0x5b0468._0x28b717,0x50b,_0x5b0468._0x4eed4f,_0x5b0468._0x4a9925),_0x4044bb[_0x3fb75e(0x503,_0x5b0468._0x5c4893,_0x5b0468._0x3ef1bd,0x5a3)]);function _0x140157(_0x2fb3ba,_0x380112,_0x56280a,_0x3c404f){return _0x18006e(_0x2fb3ba-0x17c,_0x380112-0x83,_0x3c404f- -_0x158658._0x5a8f1c,_0x56280a);}_0x3c1c28[_0x140157(-_0x5b0468._0x4dec9a,-0xf6,-0x155,-_0x5b0468._0x175441)]('authorization','Bearer\x20'+_0x1eaedc[_0x3fb75e(_0x5b0468._0x5bea74,0x518,0x535,_0x5b0468._0x2da41d)][_0x140157(-0x14e,-_0x5b0468._0xdec50b,-_0x5b0468._0x929bc0,-0x1fc)]);_0x4044bb[_0x140157(-0x28c,-0x12d,-0x22d,-0x1d1)]!==![]&&_0x3c1c28[_0x3fb75e(_0x5b0468._0x256856,0x56c,_0x5b0468._0x73b8e,0x5fc)]('content-type','application/json');function _0x3fb75e(_0x25da47,_0xf4420d,_0x8e36f2,_0xbde560){return _0x4d4006(_0x25da47,_0xf4420d-_0x232795._0x34bf11,_0xbde560-_0x232795._0x5f0b29,_0xbde560-0xab);}const _0x18168f=await this['headerResolver']?.({'body':_0x1eaedc['body'],'credential':_0x1eaedc[_0x140157(-_0x5b0468._0x2e4eed,-_0x5b0468._0xd8e97a,-_0x5b0468._0x132481,-0x2b6)],'request':_0x1eaedc['request'],'session':_0x1eaedc[_0x3fb75e(_0x5b0468._0xc83ab8,0x4a9,_0x5b0468._0x157c5f,_0x5b0468._0x57d3c6)],'stream':_0x1eaedc[_0x3fb75e(_0x5b0468._0x440cec,_0x5b0468._0x45d15e,0x593,0x551)]});for(const [_0x1a7ed0,_0x5215a3]of Object[_0x3fb75e(0x4ce,_0x5b0468._0x24c3f8,_0x5b0468._0x544f35,0x50d)](_0x18168f??{})){_0x3c1c28['set'](_0x1a7ed0,_0x5215a3);}return _0x3c1c28;}[_0x18006e(0x59,0x1f,0x3a,0x4e)](_0x5c020e){return _0x5c020e;}[_0x18006e(0xd2,0x41,0x8f,-0x2a)](_0x2bbdcc,_0x5370ec){return resolveSessionBaseUrl(_0x2bbdcc,_0x5370ec);}[_0x4d4006(0x115,0xdf,0x60,-0x4d)](_0x36ede9,_0x569bb5){return resolveApiCredential(_0x36ede9,_0x569bb5);}async['toApiError'](_0x167774){return await createOpenAiApiError(_0x167774);}},OpenAiModel=class _OpenAiModel extends RoutedModel{static ['sharedResponsesSocketSessions']=new Map();[_0x18006e(0x13e,0xca,0x143,0x97)];[_0x4d4006(0x3f,0x76,-0x8,0x44)];constructor(_0xc351a7={}){const _0xa66e16={_0x25e232:0x463,_0x5756e7:0x3ca,_0x124c3b:0x4f3,_0x398e4c:0x3e1,_0x12f7c7:0x1cd,_0xf10e9a:0x218,_0x5be427:0x27a,_0x45bc47:0x2cf,_0x43011e:0x303,_0x175618:0x1e3,_0x28eb55:0x2a4,_0x519a4a:0x489,_0x2af140:0x495,_0x1a773f:0x54a,_0x458c91:0x4f4,_0x420b85:0x5da,_0x4d6871:0x51b,_0x2f6840:0x5e1,_0x3e37ce:0x2ea,_0x1b676d:0x324,_0x263c1f:0x2e9,_0x35fa1c:0x202,_0x5ce7d2:0x283,_0x47bc3a:0x2fc,_0xc03f89:0x44c,_0x1d9760:0x3df,_0x1fce20:0x466},_0x94bf35={_0x254bc7:0x203,_0x34ee95:0x1f0},_0x1aadef={_0x498127:0x454,_0x17250f:0x22};function _0x37c95f(_0x2c0dc6,_0xd2dbec,_0x2b62d4,_0x49699f){return _0x4d4006(_0x49699f,_0xd2dbec-0x1d2,_0x2c0dc6-_0x1aadef._0x498127,_0x49699f-_0x1aadef._0x17250f);}function _0x8a0186(_0x45cd77,_0x46f0d0,_0x3f0c3a,_0x31567a){return _0x4d4006(_0x45cd77,_0x46f0d0-0x20,_0x31567a-_0x94bf35._0x254bc7,_0x31567a-_0x94bf35._0x34ee95);}const _0x5e7509=_0xc351a7[_0x37c95f(_0xa66e16._0x25e232,0x4fc,0x415,_0xa66e16._0x5756e7)]??_0x37c95f(0x566,0x51d,0x596,_0xa66e16._0x124c3b),_0x33b873=_0xc351a7[_0x8a0186(_0xa66e16._0x398e4c,0x39d,0x2b1,0x367)]??0x4000,_0x53ef8e=_0xc351a7['chatCompletionsPath']??_0x37c95f(0x594,0x54d,0x4ef,0x51d),_0x1db39e=_0xc351a7[_0x8a0186(_0xa66e16._0x12f7c7,_0xa66e16._0xf10e9a,_0xa66e16._0x5be427,0x1fb)]??_0x8a0186(_0xa66e16._0x45bc47,_0xa66e16._0x43011e,_0xa66e16._0x175618,_0xa66e16._0x28eb55);super({'apiKey':_0xc351a7['apiKey'],'baseUrl':trimTrailingSlashes(_0xc351a7['baseUrl']??_0x37c95f(_0xa66e16._0x519a4a,_0xa66e16._0x2af140,_0xa66e16._0x1a773f,_0xa66e16._0x458c91)),'fetch':_0xc351a7['fetch'],'maxTokens':_0x33b873,'model':_0x5e7509,'reasoning':_0xc351a7[_0x37c95f(0x52a,_0xa66e16._0x420b85,_0xa66e16._0x4d6871,_0xa66e16._0x2f6840)],'providerAdapter':new OpenAiProviderAdapter(_0xc351a7[_0x8a0186(0x3af,0x2a3,0x2ce,_0xa66e16._0x3e37ce)]),'providerSessionResolver':_0xc351a7[_0x8a0186(0x387,_0xa66e16._0x1b676d,0x2fd,_0xa66e16._0x263c1f)],'requestMutators':_0xc351a7['requestMutators'],'router':new StaticModelSurfaceRouter({'complete':OPENAI_CHAT_COMPLETIONS_SURFACE,'stream':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE}),'sessionManager':_0xc351a7[_0x8a0186(0x1d1,0x256,_0xa66e16._0x35fa1c,0x1f5)],'surfaces':createOpenAiSurfaces({'chatCompletionsPath':_0x53ef8e,'responsesPath':_0x1db39e}),'webSocketFactory':_0xc351a7[_0x8a0186(_0xa66e16._0x5ce7d2,0x28a,0x3b9,_0xa66e16._0x47bc3a)]}),this['chatCompletionsPath']=_0x53ef8e,this[_0x37c95f(_0xa66e16._0xc03f89,0x3d5,_0xa66e16._0x1d9760,_0xa66e16._0x1fce20)]=_0x1db39e;}[_0x18006e(0x98,0x119,0xac,0x7)](_0x3b89c1,_0x395cca){const _0x2d843e={_0x126358:0x34,_0x3cd886:0x51,_0x131589:0x94},_0x2fd087={_0x283754:0x15c,_0x417040:0xa3};function _0x278374(_0x8c42de,_0x1243b1,_0x3a7fd7,_0x2ffad8){return _0x4d4006(_0x3a7fd7,_0x1243b1-_0x2fd087._0x283754,_0x1243b1- -_0x2fd087._0x417040,_0x2ffad8-0x145);}return this[_0x278374(-0x91,_0x2d843e._0x126358,-_0x2d843e._0x3cd886,-_0x2d843e._0x131589)](_0x3b89c1,OPENAI_CHAT_COMPLETIONS_SURFACE,_0x395cca);}[_0x4d4006(0xcd,0x12f,0xb1,0xa0)](_0x5bf4f0,_0x2c4e5d){return this['completeViaSurface'](_0x5bf4f0,OPENAI_RESPONSES_SURFACE,_0x2c4e5d);}['completeViaResponsesWebSocketSurface'](_0x517c04,_0x7f9496){return this['completeViaSurface'](_0x517c04,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x7f9496);}['streamViaChatCompletionsSurface'](_0x3cad1d,_0x3a51ca){const _0x38961e={_0x13998:0x5ee},_0x30a1f9={_0x4465d4:0x115,_0x484b01:0x45d};function _0x8ca9c2(_0x351c13,_0x183d94,_0x72304f,_0x4f1144){return _0x18006e(_0x351c13-_0x30a1f9._0x4465d4,_0x183d94-0x10b,_0x351c13-_0x30a1f9._0x484b01,_0x72304f);}return this[_0x8ca9c2(0x549,0x577,0x561,_0x38961e._0x13998)](_0x3cad1d,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,_0x3a51ca);}[_0x4d4006(0x9f,-0x39,-0x11,-0xd2)](_0xa128cf,_0x19752e){return this['streamViaSurface'](_0xa128cf,OPENAI_RESPONSES_STREAM_SURFACE,_0x19752e);}[_0x4d4006(0x1c,0xea,0x51,0xf3)](_0x56b226,_0x5d2a42){return this['streamViaSurface'](_0x56b226,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x5d2a42);}async['chatComplete'](_0x1449ac,_0x25c958){const _0x4a0b8a={_0x12384a:0x1e6},_0x4246ca={_0x6a36d9:0x30,_0x28d2af:0x19c},_0x2902de={_0x198a54:0xf8};function _0x50800f(_0x1352cb,_0x44ae18,_0x236e4b,_0x162fc7){return _0x4d4006(_0x162fc7,_0x44ae18-0x45,_0x236e4b-_0x2902de._0x198a54,_0x162fc7-0x1e2);}function _0x37c447(_0x1eb23f,_0x531caa,_0x5b37bd,_0x4db4b7){return _0x18006e(_0x1eb23f-_0x4246ca._0x6a36d9,_0x531caa-0x185,_0x1eb23f-_0x4246ca._0x28d2af,_0x531caa);}try{return await this[_0x37c447(0x248,0x265,0x266,0x2f0)](_0x1449ac,_0x25c958);}catch(_0x544665){if(_0x544665 instanceof OpenAiApiError)throw this[_0x37c447(0x1d6,_0x4a0b8a._0x12384a,0x277,0x155)](_0x544665);throw _0x544665;}}async[_0x18006e(-0x7,0xd3,0x92,-0x2b)](_0x16abca,_0xcfdf21){const _0x3a99e2={_0x440340:0x2cc,_0x3f3531:0x239},_0xd49f32={_0x5e3f52:0x6b,_0x5caf99:0x238};function _0x2c071c(_0x54c407,_0x3a1af5,_0x50b275,_0x27b724){return _0x4d4006(_0x27b724,_0x3a1af5-_0xd49f32._0x5e3f52,_0x3a1af5-_0xd49f32._0x5caf99,_0x27b724-0xbb);}try{return await this['completeViaResponsesSurface'](_0x16abca,_0xcfdf21);}catch(_0x3e04e6){if(_0x3e04e6 instanceof OpenAiApiError)throw this[_0x2c071c(_0x3a99e2._0x440340,_0x3a99e2._0x3f3531,0x173,0x257)](_0x3e04e6);throw _0x3e04e6;}}async[_0x4d4006(0x56,0xc7,0xd,-0x37)](_0x3eca4b,_0x353299){const _0x18a177={_0x5406db:0x3ca,_0x3fa661:0x424,_0x214004:0x4c0,_0x44f28e:0x449,_0x5de7d7:0x1d7,_0x56f2cb:0x1a6,_0x6d026:0x3ce,_0x259609:0x44a,_0x32a0bf:0x375,_0x3d6a6c:0x4ba},_0x1b2c3e={_0x280eeb:0x397},_0x36dc15={_0x8694c8:0x4};function _0x40f44c(_0x2ffcd3,_0xcf2b37,_0x166a5f,_0xf66b9f){return _0x18006e(_0x2ffcd3-0x10a,_0xcf2b37-_0x36dc15._0x8694c8,_0x166a5f-0x27,_0xf66b9f);}function _0x57c5e5(_0x39c41e,_0x1e94e9,_0x5028ac,_0x33efe5){return _0x18006e(_0x39c41e-0x18f,_0x1e94e9-0x33,_0x33efe5-_0x1b2c3e._0x280eeb,_0x1e94e9);}try{let _0x2977bf;for await(const _0x3eb96e of this[_0x57c5e5(0x52c,_0x18a177._0x5406db,_0x18a177._0x3fa661,0x488)](_0x3eca4b,_0x353299)){_0x3eb96e[_0x57c5e5(0x3b2,0x400,_0x18a177._0x214004,_0x18a177._0x44f28e)]===_0x40f44c(0x1d8,_0x18a177._0x5de7d7,_0x18a177._0x56f2cb,0x105)&&(_0x2977bf=_0x3eb96e[_0x57c5e5(_0x18a177._0x6d026,_0x18a177._0x259609,_0x18a177._0x32a0bf,0x429)]);}if(!_0x2977bf)throw new Error(_0x57c5e5(0x470,0x548,0x54e,_0x18a177._0x3d6a6c));return _0x2977bf;}catch(_0x318bb9){if(_0x318bb9 instanceof OpenAiApiError)throw this[_0x57c5e5(0x364,0x320,0x360,0x3d1)](_0x318bb9);throw _0x318bb9;}}async*[_0x4d4006(0x1e1,0x116,0x13a,0x188)](_0x5a440c,_0x340542){const _0x26495f={_0x4e2703:0xc,_0x25cbf0:0x15f,_0xd50c49:0x203,_0x2c7dd2:0x2e4},_0xf1816c={_0x4541e4:0x72},_0xdc9f76={_0x31150b:0x15c};function _0x6fa04d(_0x8a30cc,_0xc90847,_0x5085d3,_0x279d1b){return _0x4d4006(_0xc90847,_0xc90847-0x106,_0x8a30cc- -_0xdc9f76._0x31150b,_0x279d1b-0x26);}function _0xfc84bf(_0x23d3c5,_0x542bf1,_0x40efc9,_0xe1595c){return _0x18006e(_0x23d3c5-_0xf1816c._0x4541e4,_0x542bf1-0xc5,_0x542bf1- -0x259,_0x23d3c5);}try{yield*this[_0x6fa04d(-0xbd,-0xfc,-0x16f,-_0x26495f._0x4e2703)](_0x5a440c,_0x340542);}catch(_0x32c322){if(_0x32c322 instanceof OpenAiApiError)throw this[_0xfc84bf(-_0x26495f._0x25cbf0,-0x21f,-_0x26495f._0xd50c49,-_0x26495f._0x2c7dd2)](_0x32c322);throw _0x32c322;}}async*[_0x18006e(-0xd,0x70,0x56,0xae)](_0x33414e,_0x502189){const _0x42ca77={_0x7e9247:0xfc,_0x28a8f8:0xd0,_0x486809:0xed,_0x305ad2:0x12a},_0x45e2f9={_0x3df7c5:0xb3},_0x1b1f24={_0x2a3da4:0xce,_0x5d1e6a:0x5c,_0x60558:0x138};function _0x12aed7(_0x333e98,_0x3a10c6,_0xaa3a58,_0x5175e1){return _0x18006e(_0x333e98-_0x1b1f24._0x2a3da4,_0x3a10c6-_0x1b1f24._0x5d1e6a,_0x5175e1- -_0x1b1f24._0x60558,_0xaa3a58);}function _0xdf78df(_0x1a1b50,_0x4594d0,_0x1880cd,_0x2e0559){return _0x18006e(_0x1a1b50-0x1a6,_0x4594d0-0xb8,_0x1880cd-_0x45e2f9._0x3df7c5,_0x1a1b50);}try{yield*this[_0xdf78df(0x11a,0x139,0xdb,_0x42ca77._0x7e9247)](_0x33414e,_0x502189);}catch(_0x5bd50a){if(_0x5bd50a instanceof OpenAiApiError)throw this[_0xdf78df(0x6d,_0x42ca77._0x28a8f8,_0x42ca77._0x486809,_0x42ca77._0x305ad2)](_0x5bd50a);throw _0x5bd50a;}}async*[_0x4d4006(0xd3,0x12e,0xb8,0x17a)](_0x150802,_0x4ba883){const _0xd4c0ba={_0x488d50:0xc9,_0xda06e5:0x0},_0x1da2f1={_0x4e7317:0x13e};function _0x5435f6(_0x1b37bf,_0x59dd2a,_0x1793f6,_0x3bb764){return _0x4d4006(_0x1793f6,_0x59dd2a-0x1bd,_0x1b37bf- -0xe,_0x3bb764-0x6b);}function _0x300528(_0x30de6d,_0x44de50,_0x12dfa5,_0x6cf18){return _0x4d4006(_0x30de6d,_0x44de50-0xdd,_0x6cf18-0x2e,_0x6cf18-_0x1da2f1._0x4e7317);}try{yield*this[_0x300528(0xd3,_0xd4c0ba._0x488d50,_0xd4c0ba._0xda06e5,0xa9)](_0x150802,_0x4ba883);}catch(_0x24a3e9){if(_0x24a3e9 instanceof OpenAiApiError)throw this[_0x5435f6(-0xd,0x2d,0x95,0x75)](_0x24a3e9);throw _0x24a3e9;}}['complete'](_0x55fe85,_0x515e90){const _0x1de1c4={_0x19c0ec:0x32,_0x3000da:0x56},_0x8ddf09={_0x47e56c:0x135};function _0x43e59e(_0x80f2a0,_0x2e39f6,_0x55baca,_0x446c9f){return _0x18006e(_0x80f2a0-0x8f,_0x2e39f6-0x151,_0x446c9f- -_0x8ddf09._0x47e56c,_0x55baca);}return this[_0x43e59e(_0x1de1c4._0x19c0ec,-0x4e,-_0x1de1c4._0x3000da,0x43)](_0x55fe85,_0x515e90);}[_0x4d4006(0x152,0x112,0xb2,0xd3)](_0x12a9ee,_0x14449a){const _0x2ebef2={_0x1f8aaf:0x444,_0x204e1a:0x381},_0x57ea55={_0x315d42:0x5};function _0xb8ba27(_0x320757,_0x370f3a,_0x313ba7,_0x3c4751){return _0x18006e(_0x320757-_0x57ea55._0x315d42,_0x370f3a-0x14a,_0x313ba7-0x20e,_0x3c4751);}return this[_0xb8ba27(_0x2ebef2._0x1f8aaf,0x2c7,_0x2ebef2._0x204e1a,0x3ba)](_0x12a9ee,_0x14449a);}[_0x18006e(0xd0,0x61,0xb0,0x15b)](_0x4b8534){const _0x2f1ce7={_0x2c92e1:0x493,_0x64545e:0x445,_0x491023:0x52e,_0x2c39e:0x4c3,_0x251b12:0x463,_0x315f69:0x373,_0x394462:0x2e4,_0x3ebfe3:0x3d1},_0x516ff7={_0x1f4243:0x16,_0x33cfaf:0x2e2,_0x1e2e18:0xd7},_0x37f76d={_0x244ea4:0x2ee},_0xd1fc2f=this[_0x3cbc14(_0x2f1ce7._0x2c92e1,0x4c0,0x3ab,0x401)](_0x4b8534);function _0x3cbc14(_0x4596ec,_0x2d5c61,_0x1f48a5,_0x45741f){return _0x4d4006(_0x1f48a5,_0x2d5c61-0x75,_0x45741f-_0x37f76d._0x244ea4,_0x45741f-0x64);}function _0x12a6d9(_0x277b7d,_0x27614b,_0x4abd18,_0x1a2b65){return _0x4d4006(_0x27614b,_0x27614b-_0x516ff7._0x1f4243,_0x277b7d-_0x516ff7._0x33cfaf,_0x1a2b65-_0x516ff7._0x1e2e18);}let _0x3a9f68=_OpenAiModel['sharedResponsesSocketSessions'][_0x3cbc14(_0x2f1ce7._0x64545e,_0x2f1ce7._0x491023,_0x2f1ce7._0x2c39e,_0x2f1ce7._0x251b12)](_0xd1fc2f);return!_0x3a9f68&&(_0x3a9f68={'pending':Promise[_0x12a6d9(_0x2f1ce7._0x315f69,0x3e4,0x389,_0x2f1ce7._0x394462)]()},_OpenAiModel['sharedResponsesSocketSessions'][_0x12a6d9(0x43f,0x43c,_0x2f1ce7._0x3ebfe3,0x3ae)](_0xd1fc2f,_0x3a9f68)),_0x3a9f68;}['getResponsesSocketSessionKey'](_0x227687){const _0x186faf={_0x92f280:0x1c2},_0x5c7d62={_0x5baacf:0x13f,_0x3c316d:0x171};function _0x354770(_0x2c8870,_0x3d644c,_0x587cf0,_0x1beb75){return _0x18006e(_0x2c8870-_0x5c7d62._0x5baacf,_0x3d644c-_0x5c7d62._0x3c316d,_0x587cf0-0x10c,_0x1beb75);}return''+trimTrailingSlashes(this[_0x354770(_0x186faf._0x92f280,0x1bb,0x252,0x2bf)])+this['responsesPath']+'::'+_0x227687;}async[_0x18006e(-0x42,0xf4,0x7d,0xc8)](_0x1d7da7){const _0x3f4ef1={_0x2e0ab7:0x510,_0x1f3c5a:0x4f4,_0x21cd1f:0x48d,_0x26837d:0x472,_0x11b66e:0x561,_0x53c7c7:0x60f,_0xfb5cd4:0x5c2},_0x19fd28={_0x318ac9:0x19b,_0x37f72b:0x8f},_0x3a2747=_0x1d7da7[_0x5bc154(0x53c,0x458,0x5a5,_0x3f4ef1._0x2e0ab7)][_0x48e296(0x59b,_0x3f4ef1._0x1f3c5a,_0x3f4ef1._0x21cd1f,_0x3f4ef1._0x26837d)](()=>{});let _0x4446a4;const _0x2f4672=new Promise(_0x5ee779=>{_0x4446a4=_0x5ee779;});function _0x48e296(_0x106a7e,_0x1b2ce8,_0x4ca0d2,_0x4e7b49){return _0x4d4006(_0x106a7e,_0x1b2ce8-_0x19fd28._0x318ac9,_0x1b2ce8-0x3bb,_0x4e7b49-_0x19fd28._0x37f72b);}function _0x5bc154(_0xeb0825,_0x46c44d,_0x4604c4,_0x294a96){return _0x18006e(_0xeb0825-0xe0,_0x46c44d-0x15,_0x294a96-0x44d,_0x46c44d);}return _0x1d7da7['pending']=_0x3a2747[_0x5bc154(_0x3f4ef1._0x11b66e,0x5b2,_0x3f4ef1._0x53c7c7,_0x3f4ef1._0xfb5cd4)](()=>_0x2f4672),await _0x3a2747,()=>{_0x4446a4?.();};}async['prepareResponsesSocketRequest'](_0x560d5a,_0x45d304){const _0x446271={_0x2256b4:0x40f,_0x46ffe6:0x39f,_0x4aaa3e:0x4ab,_0x19cc02:0x45e,_0x593d53:0x623,_0x1a487f:0x5d3,_0x37006d:0x30e,_0x3c163d:0x2ef,_0x5c2424:0x42f,_0x17b143:0x38a,_0x5d60c0:0x548,_0x3b434e:0x4f7,_0x1aa3a3:0x4ee,_0x4f7d95:0x56a,_0x311c15:0x4dc,_0x38a87e:0x52a,_0x5d57e5:0x549,_0x2e72fd:0x6b6,_0x3bf16c:0x233,_0x4a6fdf:0x245,_0x2b90bb:0x2ee,_0x1c854c:0x44e,_0x33d90c:0x376,_0x3cb244:0x362,_0xcb6b5b:0x64e,_0x573b40:0x596},_0x457e2f={_0x43c656:0x8,_0xf5738c:0x2fb},_0x12229c=this[_0x812a03(_0x446271._0x2256b4,_0x446271._0x46ffe6,_0x446271._0x4aaa3e,_0x446271._0x19cc02)](_0x560d5a),_0x4f0ee7=toModelRequest(_0x12229c),_0x42292c=await prepareProviderRequest(_0x4f0ee7,{'sessionManager':this['sessionManager'],'requestMutators':this[_0x2e5ced(0x5ba,0x5fb,_0x446271._0x593d53,_0x446271._0x1a487f)],'signal':_0x45d304});function _0x812a03(_0xe5de4e,_0x3d2a46,_0x440fd3,_0x4ee438){return _0x4d4006(_0xe5de4e,_0x3d2a46-_0x457e2f._0x43c656,_0x4ee438-_0x457e2f._0xf5738c,_0x4ee438-0x1a1);}const _0x4d9718=toChatRequest(_0x42292c[_0x812a03(_0x446271._0x37006d,_0x446271._0x3c163d,_0x446271._0x5c2424,_0x446271._0x17b143)]),_0x168940=this[_0x2e5ced(_0x446271._0x5d60c0,_0x446271._0x3b434e,_0x446271._0x1aa3a3,_0x446271._0x4f7d95)]['resolveCredential'](this['apiKey'],_0x42292c[_0x2e5ced(_0x446271._0x311c15,_0x446271._0x38a87e,0x596,_0x446271._0x5d57e5)]);function _0x2e5ced(_0x16c91d,_0x16a6af,_0x459aff,_0x1fe076){return _0x18006e(_0x16c91d-0x3a,_0x16a6af-0xf,_0x459aff-0x4c2,_0x16a6af);}if(!_0x168940)throw this[_0x2e5ced(0x6fb,_0x446271._0x2e72fd,0x659,0x593)]();return{'baseUrl':this[_0x812a03(_0x446271._0x3bf16c,0x2b7,_0x446271._0x4a6fdf,_0x446271._0x2b90bb)]['resolveBaseUrl'](this[_0x812a03(_0x446271._0x1c854c,_0x446271._0x33d90c,_0x446271._0x3cb244,0x408)],_0x42292c['session']),'credential':_0x168940,'request':_0x4d9718,'session':_0x42292c[_0x2e5ced(_0x446271._0xcb6b5b,0x584,_0x446271._0x573b40,0x52f)]};}[_0x18006e(0x136,0x7d,0xd2,0x125)](_0x396cca,_0xd32e4c,_0x509a46={}){const _0x16d9e1={_0x232a76:0x55,_0x474e08:0x1b,_0x1202c4:0xdb,_0x356b59:0x1e9,_0x54bc76:0x1f5,_0x59abb5:0x40,_0x388fea:0x79,_0x5b7652:0x53,_0x2f26be:0x8a,_0x42ddb2:0xe7,_0x443b1b:0xa,_0x573e53:0x159,_0x6de383:0x218,_0x28ccce:0xe5,_0x3cfd2f:0xf1},_0x5a1925={_0x239fc5:0x98,_0x54325e:0x16c},_0x48cb13={_0x1dbb7b:0x59,_0x2b5c90:0x61,_0x37d9e7:0xf3};function _0x5d28c1(_0x5eab55,_0x1c4d9a,_0x37d57b,_0x364f76){return _0x18006e(_0x5eab55-_0x48cb13._0x1dbb7b,_0x1c4d9a-_0x48cb13._0x2b5c90,_0x5eab55- -_0x48cb13._0x37d9e7,_0x1c4d9a);}if(!_0x509a46[_0x5d28c1(-0x74,_0x16d9e1._0x232a76,0x4a,-0x122)]){const _0x451d90=this[_0x40502b(-0xde,-_0x16d9e1._0x474e08,-_0x16d9e1._0x1202c4,-0xa2)](_0x396cca);if(_0x451d90&&_0xd32e4c[_0x40502b(-0x14e,-_0x16d9e1._0x356b59,-_0x16d9e1._0x54bc76,-0x12e)]&&_0x451d90[_0x5d28c1(-_0x16d9e1._0x59abb5,_0x16d9e1._0x388fea,-_0x16d9e1._0x5b7652,-_0x16d9e1._0x2f26be)]===_0xd32e4c['lastResponseId']){const _0x43b0d7=toOpenAiResponsesRequest({..._0x396cca,'messages':_0x396cca[_0x5d28c1(-0xcf,-_0x16d9e1._0x42ddb2,-0x164,-_0x16d9e1._0x443b1b)]['slice'](_0x451d90[_0x40502b(-_0x16d9e1._0x573e53,-_0x16d9e1._0x6de383,-0x211,-0x90)]+0x1)})['input'];return{'event':createOpenAiResponsesWebSocketEvent(_0x396cca,{'input':_0x43b0d7,'previousResponseId':_0x451d90[_0x5d28c1(-_0x16d9e1._0x59abb5,-0x4d,0x19,0x66)]}),'previousResponseId':_0x451d90[_0x5d28c1(-0x40,-_0x16d9e1._0x28ccce,-0x103,-_0x16d9e1._0x3cfd2f)]};}}function _0x40502b(_0x40ab4d,_0x280512,_0xf66591,_0x5f4374){return _0x4d4006(_0x280512,_0x280512-_0x5a1925._0x239fc5,_0x40ab4d- -_0x5a1925._0x54325e,_0x5f4374-0x75);}return{'event':createOpenAiResponsesWebSocketEvent(_0x396cca)};}[_0x18006e(0x9e,0x161,0xc7,0x80)](_0x5ae8c7){const _0x4d8de2={_0x2880dc:0x23e,_0x1118d3:0x1ff,_0x51cc5f:0x2c6,_0x4e396e:0x4e3,_0x5dd9af:0x497,_0xb70102:0x173,_0x324f23:0x8c,_0x13ba0e:0x542},_0x2dda36={_0x43332b:0x3e,_0x1c8336:0x1a9},_0x60f337={_0xa0ecd3:0x1a3,_0x14cb22:0x9b,_0xc48736:0x223};function _0x5d1ed1(_0x193a4e,_0x568a67,_0x1dbdad,_0x33a885){return _0x18006e(_0x193a4e-_0x60f337._0xa0ecd3,_0x568a67-_0x60f337._0x14cb22,_0x33a885- -_0x60f337._0xc48736,_0x1dbdad);}function _0x45ba78(_0x436817,_0x2e7534,_0x5b6b47,_0xf1e704){return _0x18006e(_0x436817-_0x2dda36._0x43332b,_0x2e7534-_0x2dda36._0x1c8336,_0x436817-0x45a,_0xf1e704);}for(let _0x3d4eaa=_0x5ae8c7[_0x5d1ed1(-0x250,-0x215,-_0x4d8de2._0x2880dc,-_0x4d8de2._0x1118d3)]['length']-0x1;_0x3d4eaa>=0x0;_0x3d4eaa-=0x1){const _0x5af37c=_0x5ae8c7[_0x5d1ed1(-_0x4d8de2._0x51cc5f,-0x229,-0x1fa,-_0x4d8de2._0x1118d3)][_0x3d4eaa],_0x166e15=_0x5af37c[_0x45ba78(_0x4d8de2._0x4e396e,0x4c9,0x445,_0x4d8de2._0x5dd9af)]==='assistant'?_0x5af37c[_0x5d1ed1(-0x14a,-_0x4d8de2._0xb70102,-_0x4d8de2._0x324f23,-0x148)]?.[_0x45ba78(_0x4d8de2._0x13ba0e,0x4dd,0x55d,0x478)]:void 0x0;if(_0x166e15)return{'messageIndex':_0x3d4eaa,'responseId':_0x166e15};}return void 0x0;}['shouldRetryResponsesSocketRequest'](_0x29d1af){const _0x1e0ac7={_0x4babbd:0x291,_0x4b4da5:0x296,_0x43469f:0x1d9,_0x24b788:0x33b,_0x349a03:0x2f6},_0x38251e={_0x4f0e0a:0x14b,_0x462196:0x24d},_0x13f3a0={_0x5ef03a:0x309};function _0x5ce6f7(_0x33681f,_0x3b2edd,_0x262b3a,_0x5b9177){return _0x4d4006(_0x3b2edd,_0x3b2edd-0x15,_0x262b3a-_0x13f3a0._0x5ef03a,_0x5b9177-0xf9);}function _0xe7d44c(_0x21df8d,_0x35049e,_0x223dde,_0x9d9ff6){return _0x18006e(_0x21df8d-0x22,_0x35049e-_0x38251e._0x4f0e0a,_0x223dde-_0x38251e._0x462196,_0x35049e);}return _0x29d1af instanceof ProviderStreamEventError&&(_0x29d1af['code']===_0xe7d44c(0x214,_0x1e0ac7._0x4babbd,_0x1e0ac7._0x4b4da5,_0x1e0ac7._0x43469f)||_0x29d1af['code']===_0x5ce6f7(0x381,0x2fe,_0x1e0ac7._0x24b788,_0x1e0ac7._0x349a03));}[_0x18006e(0x101,0x4c,0x45,0x5a)](_0x49b291){const _0xd6d5a0={_0x584fae:0x220,_0x12947f:0x30e,_0x445523:0x332,_0x3b3689:0x1b5,_0x290ea9:0xf9,_0x26f2f6:0x98,_0x3e3e7c:0xb,_0x3825a6:0x178,_0xe9ee8d:0x1d6,_0x39b08b:0x2b9,_0x1a2776:0xbf,_0x58bb76:0x1f3,_0x58fdf5:0x2b9},_0xb8fa={_0x82c486:0x185,_0x564249:0x4a},_0x41f8c1={_0x39ba9e:0x44},_0x4207b6=_0x49b291['socket'];_0x49b291[_0x433d77(_0xd6d5a0._0x584fae,_0xd6d5a0._0x12947f,_0xd6d5a0._0x445523,0x2a3)]=void 0x0;function _0x433d77(_0x455869,_0x229cef,_0x3f883b,_0x3d8c3a){return _0x4d4006(_0x455869,_0x229cef-_0x41f8c1._0x39ba9e,_0x3d8c3a-0x2a5,_0x3d8c3a-0x184);}_0x49b291[_0x158aab(_0xd6d5a0._0x3b3689,0x10a,_0xd6d5a0._0x290ea9,0x23b)]=void 0x0,_0x49b291[_0x158aab(0xa1,_0xd6d5a0._0x26f2f6,_0xd6d5a0._0x3e3e7c,0x65)]=void 0x0;function _0x158aab(_0x4413ba,_0x45062c,_0x57df04,_0x2fb282){return _0x18006e(_0x4413ba-0xcd,_0x45062c-_0xb8fa._0x82c486,_0x4413ba-_0xb8fa._0x564249,_0x45062c);}_0x4207b6?.[_0x158aab(_0xd6d5a0._0x3825a6,0x20a,0xf4,_0xd6d5a0._0xe9ee8d)]===WebSocket[_0x433d77(_0xd6d5a0._0x39b08b,0x361,0x315,0x2c0)]&&_0x4207b6[_0x158aab(_0xd6d5a0._0x1a2776,0x188,0xeb,0x153)](0x3e8,_0x433d77(_0xd6d5a0._0x58bb76,0x36c,0x1ff,_0xd6d5a0._0x58fdf5));}async['getOrCreateResponsesSocket'](_0x1ee1a1,_0x176d83,_0xd05af1,_0x525489,_0x174c43){const _0xa0bb25={_0x1d21f9:0x316,_0x5204cc:0x334,_0x4e1ba9:0x2f1,_0x1577bf:0x40d,_0x5f574d:0x3c1,_0x2205ee:0x270,_0x237dbc:0x131,_0x4dce36:0x254,_0x51c982:0x140,_0x4b6420:0x9b,_0x5cd1db:0x44a,_0x60bdac:0x4aa,_0x399a2f:0x3c6,_0x27152c:0x477,_0x317a2c:0x90,_0x2419b7:0x8a,_0xe6f52c:0x44a},_0x2e78ff={_0x4982e1:0x2e4,_0x1b84c5:0x8c,_0x51f21e:0x137,_0x32dfeb:0x18,_0x49020f:0x302,_0x1fcad0:0x18b,_0x156e13:0x24a,_0x4bde09:0x1c2,_0x236e13:0x2f8,_0x183916:0x3e8,_0x4a23a1:0x2e9,_0x240ab4:0x33f,_0x4ea8fc:0x374,_0x48e106:0x1da,_0x31f78c:0x1c5,_0x16e775:0x2e2,_0x43409d:0x2b7,_0x5e1772:0x34a,_0x5b9e60:0x292,_0x3da300:0x284,_0x3e314a:0x2de,_0x2673ea:0x317,_0x4b6ed4:0x2d4,_0x2ecfd5:0x152,_0x1da0bb:0x17b,_0x49cc63:0x26,_0x13d81a:0x11b,_0x3135eb:0xd1,_0x58dcdc:0x123,_0x4ef432:0x32,_0x41f367:0x2a5,_0x22e8d3:0x2bc,_0x39568e:0x1db,_0x21ab7e:0x238,_0x8f2105:0x32d,_0x181c7a:0x2a3,_0x11817a:0x2e6,_0x52beef:0x34a,_0x448743:0x29b,_0x5044d8:0x2ae},_0x4c5fa5={_0x53eeab:0xb1},_0x4d2655={_0x34a1e4:0x3d5,_0x237468:0x473,_0x4ebb05:0x45e,_0x42baa8:0x483,_0x12a685:0x473,_0x2b875f:0x4ce},_0x26d3b2={_0x19da81:0x16d,_0x249fb7:0xcd},_0x539597={_0x26a998:0x95,_0x1d6680:0x318,_0x3cda2e:0x1de},_0x58ae01={_0xfddc89:0x1cd,_0x154bc0:0x59};if(_0x176d83[_0x3c7f93(_0xa0bb25._0x1d21f9,_0xa0bb25._0x5204cc,0x2e4,_0xa0bb25._0x4e1ba9)]?.[_0x3c7f93(_0xa0bb25._0x1577bf,0x452,_0xa0bb25._0x5f574d,0x380)]===WebSocket[_0x353373(-0x150,-0x185,-0x1b2,-_0xa0bb25._0x2205ee)])return _0x176d83[_0x353373(-_0xa0bb25._0x237dbc,-0x122,-0x1cf,-_0xa0bb25._0x4dce36)];function _0x353373(_0x1e28c1,_0x4ebb08,_0x2a6bc5,_0x37f37f){return _0x4d4006(_0x1e28c1,_0x4ebb08-0x104,_0x2a6bc5- -_0x58ae01._0xfddc89,_0x37f37f-_0x58ae01._0x154bc0);}function _0x3c7f93(_0x28a269,_0x55900e,_0x2b6224,_0x2004d7){return _0x4d4006(_0x55900e,_0x55900e-_0x539597._0x26a998,_0x28a269-_0x539597._0x1d6680,_0x2004d7-_0x539597._0x3cda2e);}if(_0x176d83[_0x353373(-0x102,-_0xa0bb25._0x51c982,-_0xa0bb25._0x4b6420,-0x1c)])return await _0x176d83[_0x3c7f93(_0xa0bb25._0x5cd1db,_0xa0bb25._0x60bdac,_0xa0bb25._0x399a2f,_0xa0bb25._0x27152c)];_0x176d83[_0x353373(-_0xa0bb25._0x317a2c,-0x31,-_0xa0bb25._0x4b6420,-_0xa0bb25._0x2419b7)]=((async()=>{const _0x222ab0={_0x22613b:0x15a,_0x11493e:0x189},_0x253b3e=await this[_0x546cd4(_0x2e78ff._0x4982e1,0x3f0,0x36e,0x3f2)]({'request':_0xd05af1['request'],'body':_0x525489,'credential':_0xd05af1[_0x1d894e(_0x2e78ff._0x1b84c5,_0x2e78ff._0x51f21e,0x14a,-_0x2e78ff._0x32dfeb)],'session':_0xd05af1[_0x546cd4(0x371,0x303,_0x2e78ff._0x49020f,0x3a6)],'stream':!![]},{'accept':_0x1d894e(0xdf,0x135,0x150,0x118),'includeContentType':![]});function _0x1d894e(_0x2bd24c,_0xce1d4b,_0x2552ab,_0x3bc23f){return _0x3c7f93(_0x2bd24c- -0x278,_0xce1d4b,_0x2552ab-_0x26d3b2._0x19da81,_0x3bc23f-_0x26d3b2._0x249fb7);}_0x253b3e[_0x1d894e(_0x2e78ff._0x1fcad0,_0x2e78ff._0x156e13,0x19a,_0x2e78ff._0x4bde09)](_0x546cd4(0x3c7,_0x2e78ff._0x236e13,0x36b,0x326));const _0x187601=this['webSocketFactory']({'headers':Object[_0x546cd4(_0x2e78ff._0x183916,_0x2e78ff._0x4a23a1,0x382,0x429)](_0x253b3e['entries']()),'url':(''+_0xd05af1[_0x546cd4(_0x2e78ff._0x240ab4,0x3fe,_0x2e78ff._0x4ea8fc,0x35f)]+this[_0x546cd4(_0x2e78ff._0x48e106,_0x2e78ff._0x31f78c,0x25f,_0x2e78ff._0x16e775)])[_0x546cd4(_0x2e78ff._0x43409d,_0x2e78ff._0x5e1772,_0x2e78ff._0x5b9e60,_0x2e78ff._0x3da300)](/^http:/,_0x546cd4(0x301,_0x2e78ff._0x3e314a,_0x2e78ff._0x2673ea,_0x2e78ff._0x4b6ed4))[_0x1d894e(0xcb,_0x2e78ff._0x2ecfd5,_0x2e78ff._0x1da0bb,_0x2e78ff._0x49cc63)](/^https:/,_0x546cd4(0x3ba,0x261,0x30a,0x356))}),_0x225e69=()=>{const _0x4dabf9={_0x466286:0x3d5,_0x268853:0x35,_0x976850:0x1d0};function _0x3f2150(_0x716ee,_0x40e604,_0x176283,_0x114723){return _0x1d894e(_0x716ee-0x17d,_0x114723,_0x176283-_0x222ab0._0x22613b,_0x114723-_0x222ab0._0x11493e);}function _0xb1384f(_0x25a0ee,_0x5abfe,_0x308d86,_0x345084){return _0x1d894e(_0x308d86-_0x4dabf9._0x466286,_0x5abfe,_0x308d86-_0x4dabf9._0x268853,_0x345084-_0x4dabf9._0x976850);}_0x176d83[_0xb1384f(0x4a6,_0x4d2655._0x34a1e4,_0x4d2655._0x237468,_0x4d2655._0x4ebb05)]===_0x187601&&(_0x176d83[_0xb1384f(_0x4d2655._0x42baa8,0x3d2,_0x4d2655._0x12a685,_0x4d2655._0x2b875f)]=void 0x0,_0x176d83['lastResponseId']=void 0x0);};_0x187601['addEventListener'](_0x1d894e(0xdc,_0x2e78ff._0x13d81a,0x2e,0x7e),_0x225e69);function _0x546cd4(_0x654554,_0x1f037f,_0x5c9740,_0x5bed2b){return _0x3c7f93(_0x5c9740- -_0x4c5fa5._0x53eeab,_0x654554,_0x5c9740-0x68,_0x5bed2b-0x128);}try{return throwIfAborted(_0x174c43),_0x187601['readyState']!==WebSocket['OPEN']&&await waitForWebSocketOpen(_0x187601,_0x174c43),throwIfAborted(_0x174c43),_0x176d83[_0x1d894e(0x9e,_0x2e78ff._0x3135eb,_0x2e78ff._0x58dcdc,_0x2e78ff._0x4ef432)]=_0x187601,_0x187601;}catch(_0x5a8b1c){_0x225e69();_0x187601[_0x546cd4(_0x2e78ff._0x41f367,_0x2e78ff._0x22e8d3,0x35c,0x3cf)]===WebSocket[_0x546cd4(_0x2e78ff._0x39568e,_0x2e78ff._0x21ab7e,0x282,_0x2e78ff._0x8f2105)]&&_0x187601[_0x546cd4(0x2e1,0x243,_0x2e78ff._0x181c7a,0x24b)](0x3e8,_0x546cd4(_0x2e78ff._0x11817a,_0x2e78ff._0x52beef,_0x2e78ff._0x448743,_0x2e78ff._0x5044d8));throw _0x5a8b1c;}})());try{return await _0x176d83[_0x3c7f93(_0xa0bb25._0xe6f52c,0x44e,0x3d1,0x3f7)];}finally{_0x176d83['connecting']=void 0x0;}}async*[_0x4d4006(0xcf,0xbb,0x7b,0xa1)](_0x441081,_0x2d7698){const _0x20eccf={_0x449895:0x40b,_0x50835d:0x4c1,_0x5dffe6:0x4e1,_0x376054:0x1eb,_0x3f796e:0x387,_0x4c61ba:0x41e,_0x1c6e62:0x35c,_0x302230:0x74,_0x567371:0x1a4,_0x4d2e18:0x380,_0x593aab:0x238,_0x192ead:0x499,_0x108264:0xf2,_0x416143:0x14a,_0x4eb548:0xd9,_0x52645a:0x13f,_0x469046:0x452,_0x221fe5:0x4b4,_0x4f53af:0x4ac,_0x2ae00b:0x43e,_0x263f5c:0x439,_0x567df9:0x36a,_0x1e0472:0x3d8,_0x284698:0x145,_0x59719a:0xfe,_0x1aaa29:0xb7,_0x7d03f2:0x1b4,_0x72b73f:0x469,_0x54616d:0x513,_0x163312:0x37d,_0x46b389:0x3e6,_0x1d1be6:0x333,_0x492e2a:0x198,_0x4f3f38:0x7e,_0x232cd4:0x111,_0x5d41d9:0x219,_0x504f8e:0x1bd},_0xe24f06={_0x2e72d0:0xc9};function _0xfdab6b(_0x4af597,_0x388c09,_0xacdb02,_0x1df6d7){return _0x4d4006(_0x388c09,_0x388c09-0xc4,_0x1df6d7-_0xe24f06._0x2e72d0,_0x1df6d7-0x11);}const _0x3c65ef=this[_0x5b7d58(_0x20eccf._0x449895,_0x20eccf._0x50835d,_0x20eccf._0x5dffe6,0x57e)](_0x441081),_0x19ae5b=this[_0xfdab6b(0xe2,0x19a,_0x20eccf._0x376054,0x140)](_0x3c65ef[_0x5b7d58(_0x20eccf._0x3f796e,_0x20eccf._0x4c61ba,_0x20eccf._0x1c6e62,0x3e8)]['sessionId']);function _0x5b7d58(_0x47276e,_0xfdc47b,_0x4d5331,_0x545192){return _0x18006e(_0x47276e-0xe5,_0xfdc47b-0x1de,_0xfdc47b-0x325,_0x47276e);}const _0x3a04ea=await this[_0xfdab6b(0x62,_0x20eccf._0x302230,_0x20eccf._0x567371,0x10d)](_0x19ae5b);try{const _0x3dfff6=this[_0x5b7d58(_0x20eccf._0x4d2e18,0x3f7,0x4b9,0x47d)](_0x3c65ef,_0x19ae5b);try{yield*this['streamViaResponsesSocketAttempt'](_0x3c65ef[_0xfdab6b(0xf9,0x1d3,_0x20eccf._0x593aab,0x189)][_0x5b7d58(_0x20eccf._0x192ead,0x3e6,0x3b0,0x3de)],_0x19ae5b,_0x3c65ef,_0x3dfff6[_0xfdab6b(_0x20eccf._0x108264,_0x20eccf._0x416143,_0x20eccf._0x4eb548,_0x20eccf._0x52645a)],_0x2d7698?.[_0x5b7d58(0x4aa,_0x20eccf._0x469046,0x3bd,0x3dd)]);return;}catch(_0x2e00c0){if(!_0x3dfff6[_0x5b7d58(_0x20eccf._0x221fe5,_0x20eccf._0x4f53af,_0x20eccf._0x2ae00b,_0x20eccf._0x263f5c)]||!this[_0x5b7d58(0x4d5,0x40b,_0x20eccf._0x567df9,_0x20eccf._0x1e0472)](_0x2e00c0)){this[_0xfdab6b(_0x20eccf._0x284698,0x120,_0x20eccf._0x59719a,0xd5)](_0x19ae5b);throw _0x2e00c0;}}this[_0xfdab6b(0x78,_0x20eccf._0x1aaa29,0x198,0xd5)](_0x19ae5b);const _0x24817d=this[_0xfdab6b(0xc5,_0x20eccf._0x7d03f2,0x9a,0x162)](_0x3c65ef,_0x19ae5b,{'forceFullReplay':!![]});yield*this[_0x5b7d58(0x42b,_0x20eccf._0x72b73f,_0x20eccf._0x54616d,0x4ca)](_0x3c65ef[_0x5b7d58(0x394,0x41e,0x478,_0x20eccf._0x163312)][_0x5b7d58(0x453,_0x20eccf._0x46b389,_0x20eccf._0x1d1be6,0x43f)],_0x19ae5b,_0x3c65ef,_0x24817d[_0xfdab6b(_0x20eccf._0x492e2a,_0x20eccf._0x4f3f38,0x1f9,0x13f)],_0x2d7698?.[_0xfdab6b(0x201,_0x20eccf._0x232cd4,_0x20eccf._0x5d41d9,_0x20eccf._0x504f8e)]);}finally{_0x3a04ea();}}async*[_0x4d4006(0x1b3,0x18c,0x10b,0x138)](_0x3f497a,_0x26909c,_0xa3f3e3,_0x3b4a72,_0xe254bd){const _0x535222={_0x24f939:0x400,_0x4f2d10:0x399,_0x35c66b:0x37c,_0x3c897f:0x532,_0x16d161:0x4cf,_0x2b38ec:0x4de,_0x21ee2a:0x32e,_0xe05aec:0x30f,_0x88d8ef:0x4e1,_0x42fe77:0x473,_0xfbdb91:0x460,_0xd1bf0a:0x367,_0x49ad21:0x250,_0x4703fa:0x2d7,_0x538e95:0x311,_0x2e4b5a:0x2db,_0xfb7b19:0x217,_0x14bd34:0x55c,_0xc11f8:0x4fc,_0x106b5:0x3be,_0x4b9129:0x3a6,_0x56e8f3:0x2f5,_0x30ccc9:0x3ab,_0x1c406f:0x353,_0x573860:0x276,_0x45c64f:0x469,_0xe45ab2:0x441,_0x16f1b1:0x3cd,_0x4cff94:0x464,_0x53bdc7:0x5bb,_0x402c53:0x4f5,_0x46d81f:0x511},_0x411787={_0x2ebc7b:0x2c,_0x15ee84:0x25,_0x4ea16b:0x21a},_0x4ed85f={_0x1c5b0a:0x15f},_0x1a90f4=await this[_0x500d7b(_0x535222._0x24f939,_0x535222._0x4f2d10,0x3d8,_0x535222._0x35c66b)](_0xa3f3e3,_0xe254bd),_0x2e0bf2=await this[_0x500d7b(_0x535222._0x3c897f,0x550,_0x535222._0x16d161,_0x535222._0x2b38ec)](_0x3f497a,_0x26909c,_0x1a90f4,_0x3b4a72,_0xe254bd),_0x38baef=createOpenAiResponsesStreamParser(_0xa3f3e3);throwIfAborted(_0xe254bd),_0x2e0bf2[_0x17c458(_0x535222._0x21ee2a,_0x535222._0xe05aec,0x362,0x29c)](JSON[_0x500d7b(_0x535222._0x88d8ef,0x44d,_0x535222._0x42fe77,_0x535222._0xfbdb91)](_0x3b4a72));function _0x500d7b(_0x47ad05,_0x257485,_0x1bb91f,_0x210ea4){return _0x4d4006(_0x47ad05,_0x257485-_0x4ed85f._0x1c5b0a,_0x1bb91f-0x3af,_0x210ea4-0xaf);}for await(const _0x161169 of iterateWebSocketMessages(_0x2e0bf2,_0xe254bd)){const _0x533a1c=_0x38baef[_0x17c458(0x32e,0x331,0x355,_0x535222._0xd1bf0a)]?.(_0x161169)??[];yield*_0x533a1c;if(_0x38baef[_0x17c458(_0x535222._0x49ad21,_0x535222._0x4703fa,_0x535222._0x538e95,0x2b4)]?.())break;}if(!_0x38baef['isDone']?.())throw new Error(_0x17c458(_0x535222._0x2e4b5a,0x35c,0x2d4,_0x535222._0xfb7b19));const _0x894833=_0x38baef[_0x500d7b(0x598,_0x535222._0x14bd34,_0x535222._0xc11f8,0x57f)](),_0x24d192=_0x894833[_0x17c458(_0x535222._0x106b5,_0x535222._0x4b9129,_0x535222._0x56e8f3,_0x535222._0x30ccc9)]?.[_0x17c458(_0x535222._0x1c406f,0x343,0x302,_0x535222._0x573860)]??_0x894833['id'];function _0x17c458(_0x2a5049,_0x204b4f,_0x32047f,_0x1c3925){return _0x18006e(_0x2a5049-_0x411787._0x2ebc7b,_0x204b4f-_0x411787._0x15ee84,_0x32047f-_0x411787._0x4ea16b,_0x1c3925);}_0x24d192&&(_0x26909c[_0x500d7b(_0x535222._0x45c64f,_0x535222._0xe45ab2,_0x535222._0x16f1b1,_0x535222._0x4cff94)]=_0x24d192),yield{'type':_0x500d7b(_0x535222._0x53bdc7,0x4c4,_0x535222._0x402c53,_0x535222._0x46d81f),'response':_0x894833};}},AVAILABLE_CHAT_MODEL_SURFACES=['anthropic-messages',_0x4d4006(-0x75,-0x33,-0xb,-0x77),_0x4d4006(0x1c6,0xdf,0x149,0xd0),'openai-responses-ws'];function isAnthropicSurface(_0x6a8084){const _0x5e92db={_0x6da96b:0x343,_0x2edeaf:0x401},_0xff3010={_0x371495:0x3da,_0x4de8f7:0x39};function _0x44ac3d(_0x5381ed,_0x31c543,_0x2df38b,_0x15e858){return _0x4d4006(_0x31c543,_0x31c543-0x1de,_0x15e858-_0xff3010._0x371495,_0x15e858-_0xff3010._0x4de8f7);}return _0x6a8084===_0x44ac3d(_0x5e92db._0x6da96b,0x39d,0x347,_0x5e92db._0x2edeaf);}function resolveDefaultBaseUrl(_0x622b51){const _0x3ae362={_0x59d24c:0x4b,_0xa6d685:0x77,_0x235f7a:0x47,_0x5452f2:0x2c,_0x5e0155:0x1f},_0x416133={_0x2204f9:0x89},_0x3ddae8={_0x298622:0xf9};function _0xb3692f(_0x15353a,_0x103a55,_0x378965,_0x4c65a2){return _0x18006e(_0x15353a-_0x3ddae8._0x298622,_0x103a55-0x10b,_0x378965-0xaf,_0x4c65a2);}function _0x2cff67(_0x34cf8f,_0x33b06f,_0x2bf591,_0x534f7d){return _0x4d4006(_0x34cf8f,_0x33b06f-_0x416133._0x2204f9,_0x33b06f- -0x73,_0x534f7d-0x156);}return isAnthropicSurface(_0x622b51)?_0x2cff67(_0x3ae362._0x59d24c,-_0x3ae362._0xa6d685,-_0x3ae362._0x235f7a,_0x3ae362._0x5452f2):_0x2cff67(-0x94,-0x3e,_0x3ae362._0x5e0155,0x8a);}var ChatModel=class{[_0x4d4006(0x72,0xa4,0xf,0x3)];[_0x4d4006(0x182,0x159,0x164,0x1db)];['surface'];[_0x4d4006(0x107,0x5b,0xa5,0x1)];[_0x4d4006(0x158,0x143,0x14b,0x8f)];constructor(_0x495196={}){const _0x2ff22f={_0x211a25:0x361,_0x17d8e1:0x3ca,_0x1d7e28:0x13e,_0x1cc2bb:0x1e4,_0x7f8df0:0x244,_0xadf678:0x1eb,_0x24960c:0x13a,_0x2d25d5:0x1c9,_0x3580bb:0x237,_0x147e5f:0x1ae,_0x347282:0x1f9,_0x1b9513:0x1d2,_0x347ce9:0x1ed,_0x2937a9:0x26f,_0x3126e1:0x36f,_0x5a28cb:0x30c,_0x1957fe:0x1d7,_0x41ab13:0x291,_0x1175bc:0x287,_0x59be02:0x2e0,_0x4c110a:0x28a,_0x3c79ce:0x2c9,_0x5c4f70:0x27c,_0x2866e6:0x278,_0x38e257:0x3b9,_0xa345be:0x2f3,_0x5a610f:0x35e,_0x455ba8:0x2b9,_0x2ef521:0x1cd,_0x204bbb:0x291,_0x3d689c:0x32d,_0xe9fa06:0x28f,_0x3da4a0:0x377,_0x792f8c:0x377,_0x17f109:0x1fb,_0x261f83:0x1b0,_0x58e0f6:0x171,_0x2f1512:0x27e,_0x3c1949:0x2bc,_0x2c92d8:0x2bb},_0x26983f={_0x243933:0xb2},_0x11d6c0={_0x5ba3f4:0x9f,_0x1e2939:0x1a1,_0x98534f:0x120};this['model']=_0x495196['model']??_0x2c768b(0x2fb,0x2b3,_0x2ff22f._0x211a25,0x2a6);function _0x2c768b(_0x3a0754,_0x4672c6,_0x593390,_0x21c5ae){return _0x4d4006(_0x3a0754,_0x4672c6-_0x11d6c0._0x5ba3f4,_0x4672c6-_0x11d6c0._0x1e2939,_0x21c5ae-_0x11d6c0._0x98534f);}this[_0x5266ea(_0x2ff22f._0x17d8e1,0x31a,0x3c2,0x30c)]=_0x495196['maxTokens']??0x4000,this[_0x2c768b(_0x2ff22f._0x1d7e28,_0x2ff22f._0x1cc2bb,0x1b6,0x146)]=_0x495196[_0x5266ea(0x1bc,0x1c4,_0x2ff22f._0x7f8df0,_0x2ff22f._0xadf678)]??'openai-chat-completions';const _0x374085=trimTrailingSlashes(_0x495196['baseUrl']??resolveDefaultBaseUrl(this[_0x2c768b(0x1dd,_0x2ff22f._0x1cc2bb,0x13c,0x1b6)]));function _0x5266ea(_0x31f7f8,_0x18deda,_0x33172f,_0xb9514e){return _0x18006e(_0x31f7f8-0x28,_0x18deda-_0x26983f._0x243933,_0xb9514e-0x16f,_0x31f7f8);}if(isAnthropicSurface(this[_0x2c768b(0x213,0x1e4,0x231,_0x2ff22f._0x24960c)])){this[_0x5266ea(0x28c,_0x2ff22f._0x2d25d5,0x1ce,0x24d)]=new AnthropicModel({'apiKey':_0x495196['apiKey'],'authScheme':_0x495196[_0x2c768b(0x24b,_0x2ff22f._0x3580bb,0x1d4,_0x2ff22f._0x147e5f)],'baseUrl':_0x374085,'fetch':_0x495196[_0x5266ea(_0x2ff22f._0x347282,_0x2ff22f._0x1b9513,_0x2ff22f._0x347ce9,_0x2ff22f._0x2937a9)],'maxTokens':this[_0x5266ea(0x397,_0x2ff22f._0x3126e1,0x2a7,_0x2ff22f._0x5a28cb)],'model':this['model'],'reasoning':_0x495196[_0x2c768b(0x1f4,0x277,0x2df,_0x2ff22f._0x1957fe)],'providerSessionResolver':_0x495196[_0x2c768b(_0x2ff22f._0x41ab13,_0x2ff22f._0x1175bc,_0x2ff22f._0x59be02,_0x2ff22f._0x4c110a)],'requestMutators':_0x495196[_0x2c768b(0x308,_0x2ff22f._0x3c79ce,0x332,0x241)]});return;}this[_0x5266ea(_0x2ff22f._0x5c4f70,_0x2ff22f._0x2866e6,_0x2ff22f._0x38e257,_0x2ff22f._0xa345be)]=new OpenAiModel({'apiKey':_0x495196[_0x5266ea(0x27a,_0x2ff22f._0x5a610f,0x2f4,_0x2ff22f._0x455ba8)],'baseUrl':_0x374085,'fetch':_0x495196[_0x5266ea(0x2d5,_0x2ff22f._0x2ef521,0x1e4,_0x2ff22f._0x2937a9)],'headerResolver':_0x495196[_0x5266ea(_0x2ff22f._0x204bbb,_0x2ff22f._0x3d689c,0x2ad,_0x2ff22f._0xe9fa06)],'maxTokens':this[_0x5266ea(_0x2ff22f._0x3da4a0,_0x2ff22f._0x792f8c,_0x2ff22f._0x211a25,0x30c)],'model':this[_0x2c768b(_0x2ff22f._0x17f109,_0x2ff22f._0x261f83,0x1ea,_0x2ff22f._0x58e0f6)],'reasoning':_0x495196[_0x5266ea(0x259,0x1bb,0x1ce,_0x2ff22f._0x2f1512)],'providerSessionResolver':_0x495196[_0x5266ea(_0x2ff22f._0x3c1949,_0x2ff22f._0x2c92d8,0x317,0x28e)],'requestMutators':_0x495196['requestMutators'],'webSocketFactory':_0x495196['webSocketFactory']});}[_0x4d4006(0x11c,0x160,0xb7,0x70)](){const _0x2eb0ce={_0x30f911:0x115,_0x40e119:0xf9,_0x45958f:0x179},_0xd20d4a={_0x29e228:0x6c,_0x423ff8:0x153};function _0x1d20ba(_0x177c98,_0x209638,_0x3c0410,_0x4ebf6c){return _0x4d4006(_0x209638,_0x209638-_0xd20d4a._0x29e228,_0x4ebf6c- -0x1bc,_0x4ebf6c-_0xd20d4a._0x423ff8);}if(!this['anthropicDelegate'])throw new Error(_0x2749cd(0x2b6,0x1cb,0x199,0x24d)+this[_0x1d20ba(-_0x2eb0ce._0x30f911,-0x235,-_0x2eb0ce._0x40e119,-_0x2eb0ce._0x45958f)]);function _0x2749cd(_0x598b57,_0x5ce2b4,_0x2f3ff4,_0x2c1ea7){return _0x18006e(_0x598b57-0x1a5,_0x5ce2b4-0xb0,_0x2c1ea7-0x14a,_0x5ce2b4);}return this['anthropicDelegate'];}['getOpenAiDelegate'](){const _0x345ff3={_0x599e87:0x420,_0x304efa:0x332,_0x1c2d99:0x40d,_0xa6d918:0x3cf},_0x350e39={_0x1542b4:0xf5},_0x303eef={_0x15cedd:0x1d4};if(!this['openAiDelegate'])throw new Error(_0xc03e63(0x40f,0x39e,0x3f8,_0x345ff3._0x599e87)+this[_0x373d25(0x209,0x2c7,_0x345ff3._0x304efa,0x229)]);function _0xc03e63(_0x49e06c,_0xdd380b,_0x3a078a,_0x337d10){return _0x4d4006(_0x49e06c,_0xdd380b-_0x303eef._0x15cedd,_0xdd380b-0x37b,_0x337d10-0x147);}function _0x373d25(_0x5efdd7,_0x22649b,_0xb44345,_0x30442e){return _0x18006e(_0x5efdd7-_0x350e39._0x1542b4,_0x22649b-0x102,_0x22649b-0x24b,_0x30442e);}return this[_0x373d25(_0x345ff3._0x1c2d99,_0x345ff3._0xa6d918,0x3f7,0x411)];}[_0x18006e(0x160,0x9c,0x11d,0x13c)](_0x44b80b,_0x2c27c8){const _0x31e77d={_0x22fd2d:0x127,_0x522ea0:0x14c,_0x34d021:0x209,_0x197448:0x103,_0x4e5fad:0x13b,_0x488218:0x182,_0x3e4952:0x32f,_0x5e7c84:0x42d,_0x4dd5e1:0x4b3,_0xfd0dca:0x158,_0x29bb2f:0x285,_0x54ba40:0x267,_0x502c6b:0x2ff,_0x1df684:0x148,_0x3fe6c6:0x2d7,_0x41d826:0x35c,_0xa4b410:0x3e5},_0x21c426={_0x4370de:0x2a6},_0x186e73={_0x47952a:0x1e2};function _0x32f7f8(_0x5c2111,_0x476b6d,_0x213d70,_0x22a4e8){return _0x18006e(_0x5c2111-0x185,_0x476b6d-0x107,_0x22a4e8- -_0x186e73._0x47952a,_0x213d70);}function _0x35d12a(_0x386a92,_0x1bc1ea,_0x50ec2c,_0x33d1a7){return _0x4d4006(_0x50ec2c,_0x1bc1ea-0x198,_0x33d1a7-_0x21c426._0x4370de,_0x33d1a7-0x125);}switch(this[_0x32f7f8(-0x177,-_0x31e77d._0x22fd2d,-_0x31e77d._0x522ea0,-0x166)]){case _0x32f7f8(-_0x31e77d._0x34d021,-_0x31e77d._0x197448,-_0x31e77d._0x4e5fad,-_0x31e77d._0x488218):return this[_0x35d12a(0x415,_0x31e77d._0x3e4952,0x400,0x35d)]()[_0x35d12a(0x394,0x3de,_0x31e77d._0x5e7c84,0x38a)](_0x44b80b,_0x2c27c8);case _0x35d12a(_0x31e77d._0x4dd5e1,0x3fc,0x411,0x3ef):return this[_0x32f7f8(-_0x31e77d._0xfd0dca,-0xc1,-0x1a7,-0x178)]()[_0x35d12a(_0x31e77d._0x29bb2f,_0x31e77d._0x54ba40,0x286,_0x31e77d._0x502c6b)](_0x44b80b,_0x2c27c8);case'openai-responses-ws':return this[_0x32f7f8(-0x1e7,-_0x31e77d._0x1df684,-0x227,-0x178)]()['responseSocket'](_0x44b80b,_0x2c27c8);default:return this[_0x35d12a(0x2be,0x275,0x333,_0x31e77d._0x3fe6c6)]()[_0x35d12a(0x3ae,_0x31e77d._0x41d826,0x3a5,_0x31e77d._0xa4b410)](_0x44b80b,_0x2c27c8);}}[_0x18006e(0x19b,0x10d,0xeb,0x93)](_0x4fad29,_0x2fdec2){const _0x306261={_0x16a529:0xe7,_0x52c793:0x27,_0x499198:0x1f2,_0x332f78:0x6c,_0x250715:0xa,_0x24b3af:0x32,_0x334daa:0xe8,_0x2f8d0b:0xfa,_0x245ca1:0x57,_0x36c246:0x9f,_0x5565b4:0x2a},_0x15c959={_0x58620e:0xf3,_0x3342c5:0x19d},_0x564cd9={_0x241a7c:0xdf,_0x2c1695:0x147};function _0x44095f(_0x54c363,_0x150686,_0x484913,_0x37dada){return _0x18006e(_0x54c363-0x90,_0x150686-_0x564cd9._0x241a7c,_0x150686- -_0x564cd9._0x2c1695,_0x54c363);}function _0x5ec8ec(_0x31002f,_0x5ac8f4,_0x2a5423,_0x2cca80){return _0x18006e(_0x31002f-0xf3,_0x5ac8f4-_0x15c959._0x58620e,_0x2a5423-_0x15c959._0x3342c5,_0x31002f);}switch(this['surface']){case _0x44095f(-0xd8,-_0x306261._0x16a529,-0xf3,-0x116):return this[_0x44095f(-0xf9,-0x57,0x43,-_0x306261._0x52c793)]()['stream'](_0x4fad29,_0x2fdec2);case'openai-responses':return this[_0x44095f(-0x183,-0xdd,-0xd1,-0x3b)]()[_0x5ec8ec(_0x306261._0x499198,0x21e,0x1f3,0x13e)](_0x4fad29,_0x2fdec2);case _0x44095f(_0x306261._0x332f78,0x8,-_0x306261._0x250715,-0x7b):return this[_0x44095f(-_0x306261._0x24b3af,-0xdd,-0x77,-_0x306261._0x334daa)]()[_0x44095f(-0xea,-0x56,0x2a,-_0x306261._0x2f8d0b)](_0x4fad29,_0x2fdec2);default:return this['getOpenAiDelegate']()[_0x44095f(-_0x306261._0x245ca1,0x2c,_0x306261._0x36c246,-_0x306261._0x5565b4)](_0x4fad29,_0x2fdec2);}}};import{randomUUID}from'crypto';var GitHubAccessTokenResolver=class{[_0x4d4006(0x129,0xb3,0xa9,0xa)];[_0x4d4006(0x194,0x75,0x10d,0x151)];[_0x18006e(0x26,0x9,0xc5,0x65)];['githubApiUrl'];[_0x4d4006(0x1e0,0xd3,0x143,0xe0)];constructor(_0x3f8815){const _0x2f5173={_0xd76473:0x49f,_0x4d7327:0x503,_0x5c6776:0x53e,_0x12cf73:0x54b,_0x1ff35f:0x3fc,_0x20192f:0x410,_0x5bb3df:0x4c9,_0x476ecb:0x55c,_0x19a5f3:0x527},_0x585de7={_0x467b60:0x153,_0x6e6cce:0x32},_0x1da4c0={_0x5a81d6:0x34d};this[_0x1cac27(_0x2f5173._0xd76473,0x542,0x4d8,0x4b0)]=_0x3f8815['accessToken'],this[_0x1cac27(_0x2f5173._0x4d7327,_0x2f5173._0x5c6776,0x486,_0x2f5173._0x12cf73)]=trimTrailingSlashes2(_0x3f8815['baseUrl']);function _0x38e301(_0x4f923e,_0x3764b0,_0x304d7b,_0x13fb00){return _0x18006e(_0x4f923e-0x1a2,_0x3764b0-0x8b,_0x3764b0-_0x1da4c0._0x5a81d6,_0x13fb00);}this[_0x38e301(0x466,0x412,0x4a2,0x3ca)]=_0x3f8815['fetch'],this['githubApiUrl']=trimTrailingSlashes2(_0x3f8815[_0x1cac27(0x461,0x414,_0x2f5173._0x1ff35f,0x412)]);function _0x1cac27(_0x309627,_0x3613f7,_0x561c72,_0x2f4a70){return _0x4d4006(_0x2f4a70,_0x3613f7-_0x585de7._0x467b60,_0x309627-0x3f6,_0x2f4a70-_0x585de7._0x6e6cce);}this[_0x38e301(_0x2f5173._0x20192f,_0x2f5173._0x5bb3df,0x4d4,0x461)]=_0x3f8815[_0x38e301(0x52f,0x4c9,_0x2f5173._0x476ecb,_0x2f5173._0x19a5f3)];}async['resolve'](_0x109842){const _0x1df73e={_0x3fea0d:0x47e,_0x438792:0x38e,_0x5d9e99:0x3c2,_0x285f3b:0x38c,_0x48ec01:0x301,_0x483a45:0x2b4,_0x596b40:0x474,_0x136dd6:0x32c,_0x5725d1:0x2d1,_0x536bb1:0x3c9,_0x401063:0x46a,_0x43bfad:0x416,_0x567e89:0x4fe,_0x191366:0x4a8,_0x6c5bf3:0x4ca,_0x3e81d1:0x433,_0x12658c:0x341,_0x149bfb:0x3b4,_0x48146b:0x46e,_0x3d4eff:0x430,_0x1ac89c:0x381,_0x22ba8e:0x3e3,_0x2279d4:0x47c,_0x3cd4ae:0x468,_0x48d5b2:0x1ed,_0x2e90b1:0x498,_0x11be39:0x4d8,_0x41548c:0x2d0,_0xfb0ba5:0x34c,_0x7f92cd:0x494,_0x5210d3:0x58b,_0x3c266b:0x58d,_0x29c7b8:0x43b,_0x530fcb:0x4a5,_0x1b2220:0x451,_0x451e5e:0x3d2,_0x57de81:0x32f},_0x5748c3={_0x48dcbe:0x281},_0x39ead3={_0x18c965:0x1ef},_0x24dff0=await this[_0x223583(_0x1df73e._0x3fea0d,0x3ab,0x413,_0x1df73e._0x438792)](this[_0x223583(_0x1df73e._0x5d9e99,0x3d5,0x3f2,_0x1df73e._0x285f3b)]+_0xab4e93(_0x1df73e._0x48ec01,0x2a6,_0x1df73e._0x483a45,0x2e9),{'method':_0xab4e93(0x3cd,_0x1df73e._0x596b40,_0x1df73e._0x136dd6,0x43a),'headers':new Headers({'accept':_0xab4e93(0x2c0,_0x1df73e._0x5725d1,0x24d,0x1f8),'authorization':'Bearer\x20'+this[_0x223583(_0x1df73e._0x536bb1,0x491,0x430,_0x1df73e._0x401063)],'editor-version':_0x223583(_0x1df73e._0x43bfad,0x3ff,0x48d,0x3e9),'user-agent':'GitHubCopilotChat/0.33.1','x-github-api-version':this[_0x223583(_0x1df73e._0x567e89,_0x1df73e._0x191366,_0x1df73e._0x6c5bf3,_0x1df73e._0x3e81d1)]}),'signal':_0x109842});if(!_0x24dff0['ok'])return{'credential':{'kind':_0x223583(_0x1df73e._0x12658c,0x43b,_0x1df73e._0x149bfb,0x42a),'value':this[_0x223583(_0x1df73e._0x438792,_0x1df73e._0x48146b,_0x1df73e._0x3d4eff,0x388)]},'endpoints':{'api':this[_0xab4e93(0x38e,0x2cd,0x2fd,_0x1df73e._0x1ac89c)]}};function _0x223583(_0x4a5977,_0x77efa2,_0x399ab,_0x5c1d71){return _0x18006e(_0x4a5977-_0x39ead3._0x18c965,_0x77efa2-0x53,_0x399ab-0x34e,_0x5c1d71);}const _0x501077=await _0x24dff0[_0xab4e93(_0x1df73e._0x22ba8e,_0x1df73e._0x2279d4,_0x1df73e._0x3cd4ae,0x3be)]();function _0xab4e93(_0x2c05bc,_0x229a62,_0x560747,_0x25fc08){return _0x4d4006(_0x25fc08,_0x229a62-0x194,_0x2c05bc-_0x5748c3._0x48dcbe,_0x25fc08-0x42);}return{'credential':{'kind':_0xab4e93(0x2a0,_0x1df73e._0x48d5b2,0x35e,0x1f3),'value':_0x501077['token']??this[_0xab4e93(0x32a,0x303,0x304,0x305)]},'endpoints':{'api':_0x501077[_0x223583(0x52b,_0x1df73e._0x2e90b1,_0x1df73e._0x11be39,0x447)]?.[_0xab4e93(_0x1df73e._0x41548c,_0x1df73e._0xfb0ba5,0x2c7,0x274)]??this[_0x223583(0x3e7,0x42f,_0x1df73e._0x7f92cd,0x547)],'originTracker':_0x501077[_0x223583(0x4d2,_0x1df73e._0x5210d3,0x4d8,_0x1df73e._0x3c266b)]?.[_0x223583(_0x1df73e._0x29c7b8,0x461,_0x1df73e._0x530fcb,_0x1df73e._0x1b2220)],'proxy':_0x501077[_0xab4e93(_0x1df73e._0x451e5e,0x426,0x493,_0x1df73e._0x57de81)]?.[_0x223583(0x493,0x588,0x4bd,0x462)],'telemetry':_0x501077['endpoints']?.['telemetry']}};}};function trimTrailingSlashes2(_0x44e8a0){const _0x41da11={_0x582ec7:0x520,_0x5a3d02:0x5b2},_0x3a1142={_0x487896:0x4f5};function _0x24f0eb(_0x4dd945,_0xd34d7c,_0x2e06a4,_0x5ad3b7){return _0x4d4006(_0x4dd945,_0xd34d7c-0x1e1,_0xd34d7c-_0x3a1142._0x487896,_0x5ad3b7-0x13d);}return _0x44e8a0[_0x24f0eb(0x5e6,_0x41da11._0x582ec7,0x50f,_0x41da11._0x5a3d02)](/\/+$/,'');}function createModelInfo(_0x1fdabc){const _0x38b67f={_0x16c7ca:0xb1,_0x882793:0x2f,_0x3b2e00:0x71,_0x1e835b:0x66,_0x38feba:0x97,_0x19e67c:0xd6,_0x56478a:0x41,_0x576694:0x114,_0x4e35e5:0x49,_0x5eb539:0x45,_0x192f35:0x125,_0x4a0577:0x19a},_0x5cefd9={_0x104f98:0x149},_0x54d4f2={_0x21655b:0x55,_0x4549bc:0xf},_0x4f2d05=_0x1fdabc[_0x207f8e(-_0x38b67f._0x16c7ca,_0x38b67f._0x882793,-_0x38b67f._0x3b2e00,-0x33)]??_0x1fdabc[_0x207f8e(_0x38b67f._0x1e835b,0x26,_0x38b67f._0x38feba,0xa0)];function _0x233197(_0xe8ab57,_0x50ef8c,_0x22e751,_0x5836e9){return _0x18006e(_0xe8ab57-0xd7,_0x50ef8c-_0x54d4f2._0x21655b,_0x50ef8c- -_0x54d4f2._0x4549bc,_0x5836e9);}const _0x5befe8=_0x1fdabc['capabilities']?.[_0x207f8e(_0x38b67f._0x19e67c,-_0x38b67f._0x56478a,_0x38b67f._0x576694,_0x38b67f._0x4e35e5)]?.['max_context_window_tokens'];function _0x207f8e(_0x5917b6,_0x2e339c,_0x1abc31,_0x18bff6){return _0x4d4006(_0x5917b6,_0x2e339c-_0x5cefd9._0x104f98,_0x18bff6- -0x4f,_0x18bff6-0x88);}const _0x37d2a9=_0x1fdabc['capabilities']?.[_0x207f8e(0x85,-_0x38b67f._0x5eb539,0x114,_0x38b67f._0x4e35e5)]?.[_0x233197(0x1bb,_0x38b67f._0x192f35,0x1dc,0x1a4)],_0xbc9b70=_0x5befe8!==void 0x0||_0x37d2a9!==void 0x0?{..._0x5befe8!==void 0x0?{'contextWindow':_0x5befe8}:{},..._0x37d2a9!==void 0x0?{'maxOutput':_0x37d2a9}:{}}:void 0x0;return{'id':_0x1fdabc['id'],'name':_0x1fdabc[_0x207f8e(_0x38b67f._0x4a0577,0xb6,0x119,0x109)]??_0x1fdabc['id'],..._0xbc9b70?{'limits':_0xbc9b70}:{},..._0x4f2d05?{'supportedEndpoints':_0x4f2d05}:{}};}function deduplicateModels(_0x45f225){const _0x4cfb2d={_0x3923bb:0xf0,_0x3e0ed6:0x19b,_0x4878de:0x244,_0x3c6059:0x1eb,_0xe49551:0x25e,_0x26ce85:0x41f},_0x41cdb1={_0x21a0c6:0x351},_0x34ff34={_0xe33ec:0xe7};function _0x2b27d1(_0x2c191c,_0x118874,_0x3b5418,_0xfde1bb){return _0x4d4006(_0x2c191c,_0x118874-0x113,_0x118874-_0x34ff34._0xe33ec,_0xfde1bb-0x1c8);}const _0x3d5f32=new Map();function _0x41a386(_0x25e11c,_0x270688,_0x469a06,_0x18dfa7){return _0x18006e(_0x25e11c-0x197,_0x270688-0x13f,_0x25e11c-_0x41cdb1._0x21a0c6,_0x18dfa7);}for(const _0x2013ef of _0x45f225){!_0x3d5f32[_0x2b27d1(_0x4cfb2d._0x3923bb,0x134,0x1ec,0x152)](_0x2013ef['id'])&&_0x3d5f32[_0x2b27d1(_0x4cfb2d._0x3e0ed6,_0x4cfb2d._0x4878de,_0x4cfb2d._0x3c6059,_0x4cfb2d._0xe49551)](_0x2013ef['id'],_0x2013ef);}return Array[_0x41a386(0x409,_0x4cfb2d._0x26ce85,0x3d3,0x357)](_0x3d5f32['values']());}function hasUserPromptContent(_0x30eaf2){const _0x2e31d8={_0x215833:0x10c,_0x5c172e:0x143,_0x4bb9fc:0x211,_0x41d9b8:0xef,_0x21a50c:0x177,_0x183637:0xf8,_0x376110:0x257,_0x307552:0x234,_0xe88dc2:0x16d},_0x1cfbed={_0x440dc5:0x26c,_0x145164:0x31f,_0x594e53:0x1f3,_0x12a618:0x229,_0x408755:0x2b0,_0x2066ca:0x339,_0x154bee:0x228,_0x3772ac:0x2af,_0x502d48:0x218,_0x418877:0x3e6,_0x238098:0x361,_0x1f2a97:0x36e,_0x231a71:0x32e,_0x309055:0x29e},_0xbe2347={_0x566b6a:0x1c5,_0x4f79a7:0x4a6},_0x57583c={_0x68ef64:0x26c,_0x38f823:0x150},_0x16d879={_0x161534:0x1b1},_0x21e5f9={_0x2800db:0x66};function _0x4f6c97(_0x43b641,_0x324234,_0x25617f,_0xf94f9c){return _0x4d4006(_0x324234,_0x324234-0x3e,_0x25617f- -0x26f,_0xf94f9c-_0x21e5f9._0x2800db);}function _0x39b4da(_0xcda5da,_0xb6adf,_0x8905ec,_0x256458){return _0x18006e(_0xcda5da-_0x16d879._0x161534,_0xb6adf-0x14a,_0xcda5da- -0x57,_0x8905ec);}if(typeof _0x30eaf2==='string')return _0x30eaf2[_0x39b4da(_0x2e31d8._0x215833,0x4e,_0x2e31d8._0x5c172e,0x13a)]()['length']>0x0;if(!Array[_0x4f6c97(-_0x2e31d8._0x4bb9fc,-_0x2e31d8._0x41d9b8,-_0x2e31d8._0x21a50c,-_0x2e31d8._0x183637)](_0x30eaf2))return![];return _0x30eaf2[_0x4f6c97(-0x218,-_0x2e31d8._0x376110,-_0x2e31d8._0x307552,-_0x2e31d8._0xe88dc2)](_0x5245c9=>{if(!_0x5245c9||typeof _0x5245c9!==_0x12d1a0(-0x1bb,-0x219,-0x22d,-0x27d))return![];function _0x12d1a0(_0x5b9df5,_0x569309,_0x23ab25,_0x4465a8){return _0x39b4da(_0x569309- -_0x57583c._0x68ef64,_0x569309-0x5a,_0x23ab25,_0x4465a8-_0x57583c._0x38f823);}function _0x514e69(_0x1eca05,_0x21fd92,_0x2233b9,_0x136a27){return _0x4f6c97(_0x1eca05-_0xbe2347._0x566b6a,_0x1eca05,_0x136a27-_0xbe2347._0x4f79a7,_0x136a27-0x141);}const _0x47bb49=_0x5245c9;return(_0x47bb49['type']===_0x514e69(0x348,_0x1cfbed._0x440dc5,0x377,_0x1cfbed._0x145164)||_0x47bb49[_0x514e69(0x1ef,_0x1cfbed._0x594e53,_0x1cfbed._0x12a618,_0x1cfbed._0x408755)]===_0x514e69(0x320,_0x1cfbed._0x2066ca,0x287,0x309))&&typeof _0x47bb49[_0x12d1a0(-0x233,-0x1b8,-0x10c,-_0x1cfbed._0x154bee)]===_0x12d1a0(-_0x1cfbed._0x3772ac,-_0x1cfbed._0x502d48,-0x1c3,-0x1e4)&&_0x47bb49['text'][_0x514e69(0x346,0x328,_0x1cfbed._0x418877,_0x1cfbed._0x238098)]()[_0x514e69(_0x1cfbed._0x1f2a97,_0x1cfbed._0x231a71,_0x1cfbed._0x309055,0x323)]>0x0;});}function isUserPromptEntry(_0xc8732c){const _0x19dd23={_0x393bf2:0x3e,_0x10c04b:0x233,_0x108296:0x7},_0x5c678d={_0x18afe6:0xde,_0x26fc5f:0x1c},_0x2709b0={_0x330847:0x1cd};if(!_0xc8732c||typeof _0xc8732c!==_0x39d34c(-_0x19dd23._0x393bf2,-0xe7,0xb,-0xc5))return![];function _0x39d34c(_0x5ebd7e,_0x3c72f2,_0x5404f7,_0x3a97b0){return _0x18006e(_0x5ebd7e-_0x2709b0._0x330847,_0x3c72f2-0x174,_0x5ebd7e- -0xe8,_0x3a97b0);}const _0x4a443c=_0xc8732c;if(_0x4a443c['role']!==_0x574d9e(-0x2f4,-0x245,-0x2ea,-_0x19dd23._0x10c04b))return![];function _0x574d9e(_0x5e455f,_0x93ca59,_0x342dec,_0x553aab){return _0x4d4006(_0x93ca59,_0x93ca59-_0x5c678d._0x18afe6,_0x553aab- -0x220,_0x553aab-_0x5c678d._0x26fc5f);}if(_0x4a443c[_0x39d34c(-0x36,0x49,_0x19dd23._0x108296,0x22)]!==void 0x0&&_0x4a443c['type']!=='message')return![];return hasUserPromptContent(_0x4a443c[_0x574d9e(-0x1eb,-0x1dc,-0xa0,-0x15e)]);}function determineInitiator(_0x48d9d6){const _0x974db9={_0x119e1d:0x19a,_0xe060f2:0x15c,_0x1ef6e0:0x211,_0x187dae:0x3fe,_0x2ae726:0x3ab,_0x3b3d69:0x1a3,_0x470ede:0x1be,_0x243644:0x4f2,_0x26a808:0x494,_0x51aee2:0x50e,_0x45f82c:0x16b},_0x5c67ea={_0x54bea9:0xcf,_0x278b58:0x105},_0x3ee253={_0x302f1a:0x12f};if(!_0x48d9d6||typeof _0x48d9d6!==_0x3f9a22(0x17a,0x128,_0x974db9._0x119e1d,_0x974db9._0xe060f2))return _0x3f9a22(_0x974db9._0x1ef6e0,0x196,0x125,0x1d5);function _0x3f9a22(_0x1bbaee,_0xb08e03,_0x189aab,_0x49b97a){return _0x4d4006(_0x1bbaee,_0xb08e03-_0x3ee253._0x302f1a,_0xb08e03-0xb7,_0x49b97a-0x1c4);}function _0x96186b(_0x5d4246,_0x415fd3,_0x371ed1,_0x92de2b){return _0x4d4006(_0x371ed1,_0x415fd3-_0x5c67ea._0x54bea9,_0x5d4246-0x413,_0x92de2b-_0x5c67ea._0x278b58);}const _0x7957c6='messages'in _0x48d9d6?_0x48d9d6[_0x96186b(_0x974db9._0x187dae,0x353,0x3bb,_0x974db9._0x2ae726)]:_0x96186b(0x499,0x442,0x4a4,0x4c7)in _0x48d9d6?_0x48d9d6['input']:void 0x0;if(!Array['isArray'](_0x7957c6)||_0x7957c6[_0x3f9a22(0x142,_0x974db9._0x3b3d69,0x23d,_0x974db9._0x470ede)]===0x0)return _0x96186b(_0x974db9._0x243644,_0x974db9._0x26a808,_0x974db9._0x51aee2,0x46d);return isUserPromptEntry(_0x7957c6[_0x7957c6[_0x3f9a22(_0x974db9._0x45f82c,0x1a3,0x10d,0x1f1)]-0x1])?'user':'agent';}function isUnsupportedApiForModel(_0x91f189){const _0xaa5a3b={_0x1e441d:0x4d5,_0x3cb1d6:0x5ba,_0x5573aa:0x615};function _0xde7692(_0x4d0a3b,_0x126b7f,_0x595e06,_0x1543d0){return _0x4d4006(_0x126b7f,_0x126b7f-0x37,_0x595e06-0x498,_0x1543d0-0x16);}return _0x91f189['includes'](_0xde7692(_0xaa5a3b._0x1e441d,_0xaa5a3b._0x3cb1d6,0x59b,_0xaa5a3b._0x5573aa));}function createResponseError(_0x690f9a,_0x2480d1){const _0x8bdc0={_0x44df0e:0x294,_0x3e1422:0x2b5,_0x5744a4:0x37a,_0xfce499:0x213,_0x9e63b9:0x47c,_0x3631b8:0x3bc},_0x15c422={_0x2790be:0x10,_0x1169d5:0x37b,_0x149745:0x6d};function _0x34fa99(_0x52cad9,_0x1b3f66,_0x418e63,_0xccd2ae){return _0x4d4006(_0xccd2ae,_0x1b3f66-0x59,_0x1b3f66-0x1ed,_0xccd2ae-0x148);}if(_0x690f9a===0x191||_0x690f9a===0x193)return new Error(_0x34fa99(_0x8bdc0._0x44df0e,_0x8bdc0._0x3e1422,0x2f6,_0x8bdc0._0x5744a4));function _0x171d28(_0x92220b,_0x3f5952,_0xde7972,_0x808c39){return _0x4d4006(_0x808c39,_0x3f5952-_0x15c422._0x2790be,_0x92220b-_0x15c422._0x1169d5,_0x808c39-_0x15c422._0x149745);}if(_0x690f9a===0x198||_0x690f9a===0x1ad)return new Error(_0x34fa99(0x1a4,_0x8bdc0._0xfce499,0x1d5,0x259));if(_0x690f9a===0x190)return new Error('Invalid\x20request:\x20'+_0x2480d1);return new Error(_0x2480d1||_0x171d28(_0x8bdc0._0x9e63b9,_0x8bdc0._0x3631b8,0x4fd,0x44b)+_0x690f9a);}function _0x2cfd(_0x4f9e14,_0x39f3f9){_0x4f9e14=_0x4f9e14-0x119;const _0x521a58=_0x521a();let _0x2cfd5b=_0x521a58[_0x4f9e14];if(_0x2cfd['aexqJb']===undefined){var _0x53f76f=function(_0x2a112c){const _0x3ca786='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x414b70='',_0x3af60d='';for(let _0x5e5526=0x0,_0x5d185d,_0x39c1eb,_0x3c8254=0x0;_0x39c1eb=_0x2a112c['charAt'](_0x3c8254++);~_0x39c1eb&&(_0x5d185d=_0x5e5526%0x4?_0x5d185d*0x40+_0x39c1eb:_0x39c1eb,_0x5e5526++%0x4)?_0x414b70+=String['fromCharCode'](0xff&_0x5d185d>>(-0x2*_0x5e5526&0x6)):0x0){_0x39c1eb=_0x3ca786['indexOf'](_0x39c1eb);}for(let _0x2c344d=0x0,_0x1ac443=_0x414b70['length'];_0x2c344d<_0x1ac443;_0x2c344d++){_0x3af60d+='%'+('00'+_0x414b70['charCodeAt'](_0x2c344d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3af60d);};_0x2cfd['RwAHDv']=_0x53f76f,_0x2cfd['GZVmrA']={},_0x2cfd['aexqJb']=!![];}const _0x18dcf2=_0x521a58[0x0],_0x28ceab=_0x4f9e14+_0x18dcf2,_0xa4fa67=_0x2cfd['GZVmrA'][_0x28ceab];return!_0xa4fa67?(_0x2cfd5b=_0x2cfd['RwAHDv'](_0x2cfd5b),_0x2cfd['GZVmrA'][_0x28ceab]=_0x2cfd5b):_0x2cfd5b=_0xa4fa67,_0x2cfd5b;}var GitHubModel=class extends OpenAiModel{[_0x18006e(0x67,0x14c,0xde,0x15)];[_0x18006e(0x1f3,0xa3,0x167,0xfd)]=new Map();[_0x4d4006(0x70,0xa5,0x43,0xf7)];constructor(_0xb0969f={}){const _0x371a76={_0x42b181:0x445,_0x238061:0x45e,_0x4bf6a5:0x3b9,_0xd6979:0x52d,_0x38ff87:0x3bb,_0x506ff2:0x17e,_0x39c44a:0x1d1,_0x434027:0x408,_0xc2269c:0x4ee,_0x15c42f:0x4d7,_0x26d971:0x4da,_0x2c02c1:0x3e1,_0x346de9:0x432,_0x1b3210:0x27c,_0xb1024b:0x299,_0x56e889:0x1f8,_0x450cb2:0x5c9,_0x4d72ae:0x55b,_0x386937:0x4fb,_0x51f1b3:0x354,_0x3f9125:0x33a,_0x5e9c25:0x1a1,_0x341d48:0x2a0,_0x5c2811:0x256,_0x473762:0x2e8,_0x116a87:0x411,_0x3973e1:0x543,_0x5ee18f:0x226,_0x39981e:0x428,_0xe20318:0x49f,_0x3bfb16:0x537,_0x911e6c:0x1d5,_0xf7f03:0x232,_0x551af3:0x291,_0x566c34:0x4f7,_0x5a0c0d:0x18f,_0x507013:0x242,_0x11d2b8:0x456,_0x4afa11:0x505},_0x5123e5={_0x1c7709:0x180,_0x4ad401:0x8},_0x3284d4={_0x4ff9d2:0x397,_0x53191a:0x34},_0x3d3bcb=trimTrailingSlashes2(_0xb0969f['baseUrl']??'https://api.individual.githubcopilot.com'),_0x52d38d=_0xb0969f[_0x248241(0x4bb,_0x371a76._0x42b181,_0x371a76._0x238061,0x3c4)]??globalThis[_0x248241(0x3c2,0x3a7,0x45e,_0x371a76._0x4bf6a5)];function _0x248241(_0x4e74e0,_0x84e084,_0x40aed1,_0x32b604){return _0x4d4006(_0x32b604,_0x84e084-0x115,_0x40aed1-_0x3284d4._0x4ff9d2,_0x32b604-_0x3284d4._0x53191a);}const _0x3a222c=_0xb0969f[_0x248241(_0x371a76._0xd6979,_0x371a76._0x38ff87,0x47d,_0x371a76._0x4bf6a5)]??(_0xb0969f['accessToken']?new GitHubAccessTokenResolver({'accessToken':_0xb0969f['accessToken'],'baseUrl':_0x3d3bcb,'fetch':_0x52d38d,'githubApiUrl':_0xb0969f[_0x1f1dc2(0x259,_0x371a76._0x506ff2,0x1eb,_0x371a76._0x39c44a)]??_0x248241(_0x371a76._0x434027,_0x371a76._0xc2269c,0x429,_0x371a76._0x15c42f),'tokenExchangeApiVersion':_0xb0969f[_0x248241(0x432,0x487,_0x371a76._0x26d971,0x4c7)]??_0x248241(0x40d,0x38d,_0x371a76._0x2c02c1,_0x371a76._0x346de9)}):void 0x0),_0x32a773=_0xb0969f['editorVersion']??_0x1f1dc2(0x203,_0x371a76._0x1b3210,_0x371a76._0xb1024b,0x364),_0x44ca2e=_0xb0969f[_0x1f1dc2(0x189,0x16b,0x192,_0x371a76._0x56e889)]??_0x248241(_0x371a76._0x450cb2,0x47b,0x509,0x4a6),_0x311fca=({body:_0x40d2ee})=>{return{'editor-plugin-version':_0x44ca2e,'editor-version':_0x32a773,'x-initiator':determineInitiator(_0x40d2ee),'x-request-id':randomUUID()};},_0xe61d4b={'apiKey':_0xb0969f['apiKey'],'baseUrl':_0x3d3bcb,'fetch':_0x52d38d,'maxTokens':_0xb0969f[_0x248241(_0x371a76._0x4d72ae,0x49a,_0x371a76._0x386937,0x4c5)],'model':_0xb0969f[_0x248241(_0x371a76._0x51f1b3,_0x371a76._0x3f9125,0x3a6,0x324)],'reasoning':_0xb0969f[_0x1f1dc2(_0x371a76._0x5e9c25,_0x371a76._0x341d48,_0x371a76._0x5c2811,_0x371a76._0x473762)],'providerSessionResolver':_0x3a222c,'requestMutators':_0xb0969f[_0x248241(_0x371a76._0x116a87,_0x371a76._0x3973e1,0x4bf,0x45e)],'headerResolver':_0x311fca};super(_0xe61d4b);function _0x1f1dc2(_0x3469bd,_0x4af6d3,_0x2edfd2,_0x5cd10e){return _0x4d4006(_0x4af6d3,_0x4af6d3-0xb1,_0x2edfd2-_0x5123e5._0x1c7709,_0x5cd10e-_0x5123e5._0x4ad401);}this['surface']=_0xb0969f[_0x1f1dc2(0x124,_0x371a76._0x5ee18f,0x1c3,0x153)]??_0x248241(0x4c6,_0x371a76._0x39981e,_0x371a76._0xe20318,_0x371a76._0x3bfb16),this[_0x1f1dc2(0x2be,0x22a,0x225,_0x371a76._0x911e6c)]=new AnthropicModel({'apiKey':_0xb0969f[_0x1f1dc2(_0x371a76._0xf7f03,0x342,_0x371a76._0x551af3,0x21b)],'authScheme':_0x248241(0x52a,_0x371a76._0x566c34,0x4b9,0x517),'baseUrl':_0x3d3bcb,'fetch':_0x52d38d,'headerResolver':_0x311fca,'maxTokens':_0xb0969f['maxTokens'],'model':_0xb0969f[_0x1f1dc2(0x1c3,0x162,_0x371a76._0x5a0c0d,_0x371a76._0x507013)],'reasoning':_0xb0969f[_0x1f1dc2(0x262,0x269,_0x371a76._0x5c2811,0x1a0)],'providerSessionResolver':_0x3a222c,'requestMutators':_0xb0969f[_0x248241(0x57d,_0x371a76._0x11d2b8,0x4bf,_0x371a76._0x4afa11)]});}[_0x18006e(0xe1,0xdc,0x197,0x195)](){return new Error('GitHubModel\x20requires\x20an\x20apiKey,\x20accessToken,\x20or\x20providerSessionResolver');}['usesResponsesApi'](_0x576467){const _0x26f9f9={_0x1de32a:0x32c,_0x5a4351:0x1cd,_0x172e28:0x218,_0x34e0ee:0x298,_0xfc08dd:0x472,_0x119dda:0x3ed,_0x3a7cb1:0x4ab,_0x2691ee:0x4c2,_0xb0bcd6:0x4f6,_0x4e777a:0x45b,_0x4a987d:0x498,_0x33787a:0x25a,_0x2fdf7e:0x423,_0x599cc3:0x4a6,_0x33cf76:0x3f5},_0x4a2510={_0x18df5d:0x382},_0x464ad4={_0x1b53f3:0xaa},_0x2616f0=this[_0x21b2bc(_0x26f9f9._0x1de32a,_0x26f9f9._0x5a4351,_0x26f9f9._0x172e28,_0x26f9f9._0x34e0ee)]['get'](_0x576467);function _0x21b2bc(_0x4c1c56,_0x26de81,_0x4a2561,_0x162a6b){return _0x18006e(_0x4c1c56-_0x464ad4._0x1b53f3,_0x26de81-0x57,_0x162a6b-0x131,_0x4a2561);}function _0x476017(_0x4ceb7f,_0x56fa94,_0x2e6a5e,_0x331a8c){return _0x4d4006(_0x331a8c,_0x56fa94-0x17a,_0x4ceb7f-_0x4a2510._0x18df5d,_0x331a8c-0x78);}if(!_0x2616f0)return![];return!_0x2616f0[_0x476017(_0x26f9f9._0xfc08dd,_0x26f9f9._0x119dda,_0x26f9f9._0x3a7cb1,0x4e8)](_0x476017(_0x26f9f9._0x2691ee,_0x26f9f9._0xb0bcd6,_0x26f9f9._0x4e777a,_0x26f9f9._0x4a987d))&&_0x2616f0[_0x21b2bc(0x2a1,0x30a,_0x26f9f9._0x33787a,_0x26f9f9._0x33787a)](_0x476017(_0x26f9f9._0x2fdf7e,0x412,_0x26f9f9._0x599cc3,_0x26f9f9._0x33cf76));}['shouldPreferResponsesApi'](_0xf6ca30){const _0x522cbf={_0x2d3292:0x233,_0x557bac:0x302,_0x5be036:0x25c,_0x8d0842:0x7b,_0x4fe0ca:0x38,_0x23b8ee:0x15,_0x454520:0xbc,_0x33b8eb:0xb8,_0x2898f6:0x107,_0x364801:0x136,_0x1d64a3:0x81},_0x44b8d4={_0x144afe:0xc7,_0x1138b4:0xc2},_0x2996aa={_0x27a9a1:0x9f},_0x5a8ca7=this[_0x153653(_0x522cbf._0x2d3292,0x259,0x2e9,0x29e)]['get'](_0xf6ca30[_0x1426d5(-0xb8,-0xe5,-0x174,-0x140)]);if(!_0x5a8ca7)return![];function _0x153653(_0x5977c9,_0x389277,_0x3a8074,_0xa3e236){return _0x18006e(_0x5977c9-_0x2996aa._0x27a9a1,_0x389277-0xe1,_0x3a8074-0x182,_0x389277);}if(resolveOpenAiReasoningConfig(_0xf6ca30[_0x153653(0x24c,0x33b,0x291,0x293)]))return _0x5a8ca7['includes'](_0x153653(0x29c,_0x522cbf._0x557bac,_0x522cbf._0x5be036,0x319));function _0x1426d5(_0x1b2382,_0x4e8d8b,_0x26e15b,_0x431f65){return _0x4d4006(_0x431f65,_0x4e8d8b-0x118,_0x1b2382- -_0x44b8d4._0x144afe,_0x431f65-_0x44b8d4._0x1138b4);}return this[_0x1426d5(_0x522cbf._0x8d0842,_0x522cbf._0x4fe0ca,-_0x522cbf._0x23b8ee,_0x522cbf._0x454520)](_0xf6ca30[_0x1426d5(-_0x522cbf._0x33b8eb,-_0x522cbf._0x2898f6,-_0x522cbf._0x364801,-_0x522cbf._0x1d64a3)]);}['markModelAsResponsesOnly'](_0x5dd513){const _0x1cab02={_0x155bd6:0x3b9,_0x3ec098:0x3f4,_0x2c0519:0x3ab,_0x2c85bd:0x41b},_0x44231b={_0x1139bb:0x130},_0x3d6547={_0x14def4:0x75,_0x472016:0xe9};function _0x41a524(_0x1e82d7,_0x21758d,_0x211c08,_0xcc13c1){return _0x18006e(_0x1e82d7-_0x3d6547._0x14def4,_0x21758d-_0x3d6547._0x472016,_0xcc13c1-0x411,_0x1e82d7);}function _0x3098ff(_0x1d5936,_0x14a232,_0x3551c0,_0x24fb59){return _0x4d4006(_0x14a232,_0x14a232-0x11f,_0x24fb59-0x2be,_0x24fb59-_0x44231b._0x1139bb);}this[_0x3098ff(0x33f,0x329,0x409,0x3ec)][_0x3098ff(_0x1cab02._0x155bd6,_0x1cab02._0x3ec098,_0x1cab02._0x2c0519,_0x1cab02._0x2c85bd)](_0x5dd513,['/responses']);}[_0x18006e(-0x5f,0xa4,0x3a,0xd9)](_0x5919a6){const _0x219c06={_0x295041:0x206,_0x22fb50:0x1a2},_0x5a570a={_0x58e260:0x1c2};if(_0x5919a6 instanceof OpenAiApiError)return createResponseError(_0x5919a6['status'],_0x5919a6[_0x12ab1f(0x2cd,_0x219c06._0x295041,0x226,0x21b)]||_0x5919a6[_0x12ab1f(0x257,0x1af,0x1ba,_0x219c06._0x22fb50)]);function _0x12ab1f(_0x3bd491,_0x349bc5,_0x44d123,_0x58012f){return _0x18006e(_0x3bd491-0x1,_0x349bc5-_0x5a570a._0x58e260,_0x349bc5-0x5e,_0x3bd491);}function _0x4cfa21(_0x7d92b9,_0x54f5c0,_0xb95598,_0x5b806d){return _0x18006e(_0x7d92b9-0x10d,_0x54f5c0-0x146,_0xb95598-0x3c,_0x7d92b9);}return _0x5919a6;}[_0x18006e(0xee,0x12b,0xc6,0x166)](_0x1da5e1,_0x3f77cb){const _0x15e866={_0x3498c3:0x37,_0x58ef1b:0x85,_0x5ec148:0x7,_0x47237a:0x59,_0x1f04a5:0x13,_0xc77923:0x7c,_0x14680e:0x192,_0x4089a9:0x7b,_0x44d2e4:0x114,_0x781294:0x17,_0x205f31:0x58,_0x25a0d7:0x4d,_0x141044:0x1f8,_0x1b15d7:0xba,_0x3c732f:0x2,_0x2da5b0:0xc8,_0x2092b8:0x11c,_0xb799:0xf3,_0x593c3b:0x97,_0x258381:0x27,_0x43be8e:0x7c,_0x341094:0x4d,_0x806b61:0x177,_0x5c0383:0x203,_0x1cc3bf:0x84,_0x59280c:0x57,_0x31971e:0x8f,_0x160767:0x27,_0x29ea53:0x1f,_0x831cb8:0xaf},_0x2edf0e={_0x35b114:0x13e,_0x5ee13f:0x6f,_0x11f44d:0x1ed};switch(this[_0x597c2a(_0x15e866._0x3498c3,-_0x15e866._0x58ef1b,-_0x15e866._0x5ec148,-_0x15e866._0x47237a)]){case _0x597c2a(0x1b,-0x5,-_0x15e866._0x1f04a5,-_0x15e866._0xc77923):return this[_0x1fafc1(_0x15e866._0x14680e,_0x15e866._0x4089a9,_0x15e866._0x44d2e4,0x8c)]['complete'](_0x1da5e1,_0x3f77cb);case _0x597c2a(-_0x15e866._0x781294,-_0x15e866._0x205f31,0x80,_0x15e866._0x25a0d7):return this['chatComplete'](_0x1da5e1,_0x3f77cb);case _0x597c2a(0x13d,_0x15e866._0x141044,_0x15e866._0x1b15d7,0x75):return this[_0x1fafc1(0x16f,_0x15e866._0x3c732f,_0x15e866._0x2da5b0,0x62)](_0x1da5e1,_0x3f77cb);case _0x1fafc1(_0x15e866._0x2092b8,_0x15e866._0xb799,0x185,0x218):return this[_0x1fafc1(_0x15e866._0x593c3b,_0x15e866._0x258381,_0x15e866._0x43be8e,-_0x15e866._0x341094)](_0x1da5e1,_0x3f77cb);case _0x1fafc1(0x1e3,0xd6,_0x15e866._0x806b61,_0x15e866._0x5c0383):return this['complete'](_0x1da5e1,_0x3f77cb);}function _0x1fafc1(_0x16ea5c,_0x37d0a2,_0x546d09,_0x5b8da9){return _0x4d4006(_0x16ea5c,_0x37d0a2-_0x2edf0e._0x35b114,_0x546d09-_0x2edf0e._0x5ee13f,_0x5b8da9-_0x2edf0e._0x11f44d);}function _0x597c2a(_0x41945b,_0x1ff39e,_0x5ed06a,_0x1e095a){return _0x18006e(_0x41945b-0x73,_0x1ff39e-0x10f,_0x41945b- -0x45,_0x1ff39e);}throw new Error(_0x597c2a(-0x9,-_0x15e866._0x1cc3bf,_0x15e866._0x59280c,_0x15e866._0x31971e)+String(this[_0x597c2a(0x37,_0x15e866._0x160767,-_0x15e866._0x29ea53,_0x15e866._0x831cb8)]));}['streamViaConfiguredSurface'](_0xec447,_0x2108d7){const _0x36bded={_0x4e621c:0x69,_0x1ebbc3:0xa3,_0x13dfab:0x9e,_0xc3fd3e:0x15,_0xa227da:0x37,_0x1d1610:0x87,_0x46e73d:0x7a,_0x2c85e2:0xca,_0x24a454:0x34,_0x51600f:0xea,_0x45c557:0x104,_0x16eb88:0x114,_0x29ffa3:0x61,_0x3c23fb:0x30,_0x4f43a9:0xdb,_0xd96016:0xc9,_0x4d539b:0x43,_0x2ecf97:0x13,_0x3816bb:0xec},_0x428e31={_0x5cc9f9:0x14f,_0xd27e32:0x152,_0x254865:0xfe},_0x4cf2d8={_0x2286b6:0xe6,_0x20e287:0xc};switch(this[_0x4b15b6(-_0x36bded._0x4e621c,-0xb4,-_0x36bded._0x1ebbc3,-0xf5)]){case _0x37ea9a(-_0x36bded._0x13dfab,_0x36bded._0xc3fd3e,-_0x36bded._0xa227da,0xe):return this[_0x4b15b6(-_0x36bded._0x1d1610,_0x36bded._0x46e73d,-0x41,-0xec)][_0x4b15b6(-_0x36bded._0x2c85e2,-0x59,-_0x36bded._0x24a454,-0x28)](_0xec447,_0x2108d7);case _0x37ea9a(-0xd0,-_0x36bded._0x51600f,-_0x36bded._0x45c557,-0x155):return this[_0x37ea9a(0x75,_0x36bded._0x16eb88,-0x2f,_0x36bded._0x29ffa3)](_0xec447,_0x2108d7);case _0x4b15b6(_0x36bded._0x3c23fb,-0xd,0x63,0x6c):return this[_0x4b15b6(-_0x36bded._0x4f43a9,-0xfe,-_0x36bded._0xd96016,-0x2a)](_0xec447,_0x2108d7);case'openai-responses-ws':return this['responseSocketStream'](_0xec447,_0x2108d7);case _0x37ea9a(_0x36bded._0x4d539b,-0x68,0xed,-0x2a):return this[_0x37ea9a(-_0x36bded._0x2ecf97,-0x5c,-0xa3,0x76)](_0xec447,_0x2108d7);}function _0x4b15b6(_0x3ac337,_0x2a134c,_0x49a83f,_0x3eac85){return _0x4d4006(_0x3eac85,_0x2a134c-0xbf,_0x49a83f- -_0x4cf2d8._0x2286b6,_0x3eac85-_0x4cf2d8._0x20e287);}function _0x37ea9a(_0x36cd85,_0x5105b9,_0x177266,_0x2e7fae){return _0x18006e(_0x36cd85-_0x428e31._0x5cc9f9,_0x5105b9-_0x428e31._0xd27e32,_0x36cd85- -_0x428e31._0x254865,_0x177266);}throw new Error('Unsupported\x20GitHub\x20model\x20surface:\x20'+String(this[_0x37ea9a(-0x82,-0x132,-_0x36bded._0x3816bb,-0xdb)]));}async[_0x18006e(0x136,0x157,0x11d,0xa4)](_0x56682e,_0xdc7fb7){const _0x37933a={_0x460c10:0x2c,_0x19db4c:0xb1,_0x4fe69d:0x110,_0x10acaf:0x164,_0x57a41c:0x51,_0x150bb4:0xc3,_0x13d228:0x24,_0x27fc48:0x62,_0x262eb9:0x7c,_0x33f63b:0x194,_0x209066:0x113,_0x374b0b:0xb0,_0x1a7a54:0xa7,_0x55e320:0x3,_0xa9ce34:0xd8},_0xec6f5e={_0x331bfc:0xd7,_0x1b9357:0x8};function _0x465c74(_0x53f5bf,_0x3335d5,_0x7f1187,_0x4ebcc3){return _0x4d4006(_0x53f5bf,_0x3335d5-0x142,_0x4ebcc3-_0xec6f5e._0x331bfc,_0x4ebcc3-_0xec6f5e._0x1b9357);}const _0x417f50=this['applyModelDefaults'](_0x56682e);if(this[_0x26aeaa(0x7,-_0x37933a._0x460c10,0x4e,-0x19)]!=='auto')return this[_0x465c74(_0x37933a._0x19db4c,_0x37933a._0x4fe69d,0x225,_0x37933a._0x10acaf)](_0x417f50,_0xdc7fb7);if(this[_0x26aeaa(0xaf,-_0x37933a._0x57a41c,-0x6b,0x6)](_0x417f50))return this[_0x26aeaa(_0x37933a._0x150bb4,-0x27,-_0x37933a._0x13d228,-0x3)](_0x417f50,_0xdc7fb7);function _0x26aeaa(_0x548c5c,_0x756b6d,_0x781c78,_0x57824b){return _0x4d4006(_0x548c5c,_0x756b6d-0x1e1,_0x57824b- -0x5c,_0x57824b-0xb9);}try{return await this[_0x26aeaa(-0x6a,-0xa5,-0x42,0x17)](_0x417f50,_0xdc7fb7);}catch(_0x1fb0fd){if(_0x1fb0fd instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x1fb0fd[_0x26aeaa(_0x37933a._0x27fc48,_0x37933a._0x262eb9,_0x37933a._0x33f63b,_0x37933a._0x209066)]))return this['markModelAsResponsesOnly'](_0x417f50['model']),this[_0x26aeaa(0xf,-_0x37933a._0x374b0b,_0x37933a._0x1a7a54,-_0x37933a._0x55e320)](_0x417f50,_0xdc7fb7);throw this[_0x465c74(0x125,0x51,0x8c,_0x37933a._0xa9ce34)](_0x1fb0fd);}throw _0x1fb0fd;}}async*[_0x4d4006(0x14e,0x27,0xb2,0x12e)](_0x412711,_0x4b9982){const _0x32a277={_0x1a8159:0x678,_0x43e2ab:0x6c7,_0x578058:0x51c,_0x562374:0x499,_0x4a1249:0x49b,_0x32fb17:0x39b,_0xf72b32:0x355,_0x15051b:0x350,_0x37b90f:0x3e2,_0x39f9b2:0x26e,_0x4ea456:0x432,_0x6dbbcb:0x3b4,_0x3a30db:0x3d0,_0x4943dd:0x687,_0x4ca73e:0x2b7,_0x326552:0x4e8,_0x2ed047:0x45b,_0x488c2f:0x45c,_0xc4ab50:0x4de,_0x34d8ab:0x58c,_0x293682:0x226,_0xde708c:0x2d6,_0x56e567:0x28e},_0x44d24b={_0x145021:0x4d9,_0x452a42:0x113},_0x2ed5a3={_0x22aeaf:0x163};function _0x32601c(_0x66a5d4,_0x5b0e9f,_0x5715cd,_0x3beb3d){return _0x18006e(_0x66a5d4-_0x2ed5a3._0x22aeaf,_0x5b0e9f-0x2c,_0x5715cd-0x29c,_0x66a5d4);}const _0x1e756f=this[_0x43afd4(0x63c,_0x32a277._0x1a8159,_0x32a277._0x43e2ab,0x6bc)](_0x412711);function _0x43afd4(_0x31d932,_0x41fc55,_0x411ede,_0x3a7bb2){return _0x4d4006(_0x41fc55,_0x41fc55-0x11b,_0x31d932-_0x44d24b._0x145021,_0x3a7bb2-_0x44d24b._0x452a42);}if(this[_0x43afd4(_0x32a277._0x578058,_0x32a277._0x562374,_0x32a277._0x4a1249,0x59c)]!==_0x32601c(0x3f5,_0x32a277._0x32fb17,0x3dd,0x372)){yield*this[_0x32601c(0x289,0x2a9,0x2e0,0x26c)](_0x1e756f,_0x4b9982);return;}if(this[_0x32601c(_0x32a277._0xf72b32,_0x32a277._0x15051b,0x337,_0x32a277._0x37b90f)](_0x1e756f)){yield*this[_0x32601c(_0x32a277._0x39f9b2,0x24a,0x2f2,0x319)](_0x1e756f,_0x4b9982);return;}try{yield*this[_0x32601c(_0x32a277._0x4ea456,_0x32a277._0x6dbbcb,0x374,_0x32a277._0x3a30db)](_0x1e756f,_0x4b9982);}catch(_0x3d26f1){if(_0x3d26f1 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x3d26f1[_0x43afd4(0x648,_0x32a277._0x4943dd,0x5b1,0x5b2)])){this[_0x32601c(0x2bf,0x32a,_0x32a277._0x4ca73e,0x254)](_0x1e756f[_0x43afd4(_0x32a277._0x326552,_0x32a277._0x2ed047,_0x32a277._0x488c2f,_0x32a277._0xc4ab50)]),yield*this[_0x43afd4(0x4f6,_0x32a277._0x34d8ab,0x540,0x4b3)](_0x1e756f,_0x4b9982);return;}throw this[_0x32601c(0x35f,_0x32a277._0x293682,_0x32a277._0xde708c,_0x32a277._0x56e567)](_0x3d26f1);}throw _0x3d26f1;}}async[_0x18006e(0xac,0x97,0x8c,0x16)](_0x237f54){const _0x3ea4aa={_0x276648:0x2d9,_0x510386:0x279,_0x1133ee:0x27b,_0x385908:0x9d,_0x35a712:0x404,_0x37b703:0x456,_0x2ee88f:0x25,_0x53e6e7:0xef,_0x3a4d0c:0x64,_0x443a6f:0x85,_0x5201eb:0x9f,_0x4805d2:0x2be,_0x32ac43:0x312},_0xc7ac98={_0x1d4814:0x306,_0x4cb73f:0x8d,_0x431c3c:0x1c3,_0x2f9e83:0x1b0,_0x4aea6b:0x1eb},_0x113f41={_0x878fae:0x220};function _0x1c57f7(_0x56d20a,_0xd62d10,_0x2b37a5,_0x3d178a){return _0x4d4006(_0x56d20a,_0xd62d10-0x1bf,_0x2b37a5- -0xdd,_0x3d178a-0x10f);}const _0x2051d8=await this[_0xffb86(_0x3ea4aa._0x276648,_0x3ea4aa._0x510386,0x273,_0x3ea4aa._0x1133ee)]({'path':_0x1c57f7(-0x124,-0x15,-0xbd,-_0x3ea4aa._0x385908),'method':_0xffb86(0x363,_0x3ea4aa._0x35a712,_0x3ea4aa._0x37b703,0x3a5),'signal':_0x237f54});if(!_0x2051d8['ok'])throw this['mapApiError'](await this[_0x1c57f7(0xa2,-_0x3ea4aa._0x2ee88f,0x78,_0x3ea4aa._0x53e6e7)](_0x2051d8));function _0xffb86(_0x1965f9,_0x2ca85c,_0xf43f6d,_0x3de336){return _0x18006e(_0x1965f9-0x1c3,_0x2ca85c-0x18b,_0x3de336-_0x113f41._0x878fae,_0x2ca85c);}const _0x5cb8cb=await _0x2051d8[_0x1c57f7(-0x23,_0x3ea4aa._0x3a4d0c,_0x3ea4aa._0x443a6f,_0x3ea4aa._0x5201eb)](),_0xa0b2d5=(_0x5cb8cb[_0xffb86(0x2f3,_0x3ea4aa._0x4805d2,0x3d0,_0x3ea4aa._0x32ac43)]??[])['map'](_0x2fa26f=>{const _0x364fc8={_0x4032df:0x66};function _0x3e71ec(_0x33f21e,_0x322a90,_0x47b025,_0x3e263d){return _0x1c57f7(_0x47b025,_0x322a90-0x33,_0x322a90- -0x10d,_0x3e263d-0x7c);}const _0x12f2bb=createModelInfo(_0x2fa26f);function _0x53101d(_0x5794f5,_0x5e3977,_0x4f9b89,_0x1c2a5c){return _0x1c57f7(_0x5794f5,_0x5e3977-0x1b8,_0x4f9b89-0x46e,_0x1c2a5c-_0x364fc8._0x4032df);}return _0x12f2bb[_0x53101d(0x44d,_0xc7ac98._0x1d4814,0x3cb,0x3f2)]&&this['modelEndpointCache'][_0x3e71ec(-0x2b,-_0xc7ac98._0x4cb73f,-0x91,-0x9d)](_0x12f2bb['id'],_0x12f2bb[_0x3e71ec(-_0xc7ac98._0x431c3c,-_0xc7ac98._0x2f9e83,-_0xc7ac98._0x4aea6b,-0x218)]),_0x12f2bb;});return deduplicateModels(_0xa0b2d5);}};function createHeaders(_0x2f5f98){const _0x41dae1={_0x13b71f:0x168,_0x556c48:0x451,_0x423fa4:0x4d8},_0x5845c8={_0x694cae:0x161,_0x1c926a:0x38},_0x5e038d={_0x4d3ad3:0x88,_0x529534:0x15e},_0x225c2d=new Headers();function _0x319b85(_0x4884e6,_0x5a75f6,_0x28390d,_0x15a3b4){return _0x4d4006(_0x5a75f6,_0x5a75f6-0x4,_0x28390d-_0x5e038d._0x4d3ad3,_0x15a3b4-_0x5e038d._0x529534);}for(const [_0x15bd27,_0x1f6d44]of Object[_0x319b85(0x5a,0xfa,0xf6,_0x41dae1._0x13b71f)](_0x2f5f98)){_0x225c2d[_0xe3cfb3(0x4bd,0x571,_0x41dae1._0x556c48,_0x41dae1._0x423fa4)](_0x15bd27,_0x1f6d44);}function _0xe3cfb3(_0x2e29b9,_0x24b6e9,_0x5edfde,_0xe163cb){return _0x4d4006(_0x24b6e9,_0x24b6e9-_0x5845c8._0x694cae,_0x2e29b9-0x360,_0xe163cb-_0x5845c8._0x1c926a);}return _0x225c2d;}async function fetchRawResponse(_0x348588){const _0x5620f8={_0x4524c5:0x459,_0x1adfd5:0x30d,_0x102b66:0x3b2,_0x113148:0x2fc,_0x4a6dab:0x3a3,_0x483d35:0x455,_0x5412b8:0x49d,_0x17d2fc:0x599,_0x34b7c2:0x527,_0x22d055:0x486},_0x11efcf={_0x28ec85:0x1ce},_0x4d87e7={_0x209004:0xb1};function _0xdc44b1(_0x9761f1,_0x42a8b9,_0x330df4,_0x4157a5){return _0x18006e(_0x9761f1-0x137,_0x42a8b9-_0x4d87e7._0x209004,_0x330df4-0x359,_0x4157a5);}function _0x3f675d(_0x55e7bf,_0x27fe6c,_0x5d5eb3,_0xb74746){return _0x4d4006(_0x27fe6c,_0x27fe6c-_0x11efcf._0x28ec85,_0xb74746-0x2f2,_0xb74746-0x59);}const _0x5b9e52=_0x348588['fetch']??globalThis[_0xdc44b1(0x436,0x3f3,_0x5620f8._0x4524c5,0x426)];return _0x5b9e52(_0x348588[_0x3f675d(_0x5620f8._0x1adfd5,_0x5620f8._0x102b66,0x239,_0x5620f8._0x113148)],{'method':_0x3f675d(0x3f6,_0x5620f8._0x4a6dab,0x3b7,0x41f),'headers':createHeaders(_0x348588[_0xdc44b1(_0x5620f8._0x483d35,0x5a5,0x4e9,_0x5620f8._0x5412b8)]),'body':JSON['stringify'](_0x348588[_0xdc44b1(_0x5620f8._0x17d2fc,0x46b,0x501,_0x5620f8._0x34b7c2)]),'signal':_0x348588[_0xdc44b1(0x45e,0x434,_0x5620f8._0x22d055,0x3e0)]});}async function fetchJsonResponse(_0x2cdbbf){const _0x25a7ab={_0x35d4d1:0x247,_0x133693:0x2fb,_0x10c6b4:0x3d2,_0x5d4afa:0x31f,_0x15e28d:0x2f2,_0x5e69bc:0x35e,_0x15a38c:0x59,_0x147ce9:0x7b,_0x2d048b:0xc,_0x254e05:0x34a,_0x471c6a:0x309,_0x214f01:0x39d},_0x2bfe61={_0x166f97:0xa2,_0x579666:0x95,_0xc04ed2:0x3b},_0x29d993={_0x1a7108:0x36,_0x157634:0x1bc},_0xb379cb=await fetchRawResponse(_0x2cdbbf);function _0x2f80f0(_0x4c3c0b,_0x234e6e,_0x548389,_0xf7adc8){return _0x18006e(_0x4c3c0b-0x2e,_0x234e6e-_0x29d993._0x1a7108,_0x234e6e-_0x29d993._0x157634,_0x548389);}function _0x23a531(_0x1ae2db,_0x3b9b1b,_0x4224ad,_0x5c3cf5){return _0x4d4006(_0x5c3cf5,_0x3b9b1b-_0x2bfe61._0x166f97,_0x4224ad- -_0x2bfe61._0x579666,_0x5c3cf5-_0x2bfe61._0xc04ed2);}if(!_0xb379cb['ok']){const _0x56409e=await _0xb379cb[_0x2f80f0(0x2cb,0x2c7,_0x25a7ab._0x35d4d1,_0x25a7ab._0x133693)](),_0x990a78=_0x56409e[_0x2f80f0(_0x25a7ab._0x10c6b4,_0x25a7ab._0x5d4afa,_0x25a7ab._0x15e28d,_0x25a7ab._0x5e69bc)]()||_0xb379cb[_0x23a531(_0x25a7ab._0x15a38c,_0x25a7ab._0x147ce9,-_0x25a7ab._0x2d048b,-0x5a)]||'Unknown\x20provider\x20error';throw new Error(_0x2f80f0(_0x25a7ab._0x254e05,_0x25a7ab._0x471c6a,_0x25a7ab._0x214f01,0x3b2)+_0xb379cb['status']+':\x20'+_0x990a78);}return await _0xb379cb['json']();}function findLastMessage(_0xa98cb2,_0x3f1c39){for(let _0x45bb81=_0xa98cb2['length']-0x1;_0x45bb81>=0x0;_0x45bb81-=0x1){if(_0xa98cb2[_0x45bb81]['role']===_0x3f1c39)return _0xa98cb2[_0x45bb81];}return void 0x0;}function hasTool(_0x5ec286,_0x37ed62){const _0xa7da64={_0x496c09:0x299,_0x5092e:0x1b5,_0x924c23:0x236},_0x2b4a1d={_0x372c5f:0xe8,_0x2d8051:0x12e},_0x4cfa0a={_0x19f0d9:0x1fb,_0x29fe11:0x24};function _0x3d55ca(_0x2815b8,_0x4f13fe,_0x3ae066,_0xc99e2e){return _0x4d4006(_0x3ae066,_0x4f13fe-0x81,_0xc99e2e-_0x4cfa0a._0x19f0d9,_0xc99e2e-_0x4cfa0a._0x29fe11);}function _0x143e59(_0x6053e7,_0x1073cb,_0x50a8fe,_0xf98f5d){return _0x18006e(_0x6053e7-_0x2b4a1d._0x372c5f,_0x1073cb-0x19f,_0x6053e7- -_0x2b4a1d._0x2d8051,_0x50a8fe);}return _0x5ec286[_0x3d55ca(0x22c,0x31f,0x32e,0x267)][_0x3d55ca(_0xa7da64._0x496c09,_0xa7da64._0x5092e,0x2b9,_0xa7da64._0x924c23)](_0x26deac=>_0x26deac[_0x3d55ca(0x316,0x3ae,0x3e4,0x353)]===_0x37ed62);}function createMockResponse(_0x2e927a,_0x342813,_0x1f455c,_0x52fc4f){return{'id':_0x2e927a,'content':_0x342813,'stopReason':_0x1f455c,'usage':_0x52fc4f};}var MockModel=class{[_0x18006e(0x89,-0x43,0x48,0x4a)];['maxTokens'];[_0x18006e(0x1c4,0x1b4,0x12a,0x179)]=[];[_0x4d4006(0x15a,0x191,0xd6,0xe5)];constructor(_0x7bd564={}){const _0x2b0220={_0x4a0acc:0x1c4,_0x1a545a:0x226,_0x1b0cbe:0x160,_0x18dacc:0x7a,_0x5c88f2:0x11,_0x1fee72:0x8f,_0x5c7647:0x110,_0x5b2617:0x7,_0x481e73:0x67,_0x185035:0x111,_0x26f2e7:0xd7,_0x264f60:0x88,_0x32c439:0xf5,_0x48737f:0x111,_0x368941:0xfd,_0x146e75:0x1c6,_0x57d0e9:0x99,_0x496401:0xfb},_0x1924d6={_0x391d6c:0x1d3},_0x4dceed={_0x23a6d0:0x106};this[_0x3f6eb4(-_0x2b0220._0x4a0acc,-_0x2b0220._0x1a545a,-_0x2b0220._0x1b0cbe,-0x1b7)]=_0x7bd564[_0x16df09(_0x2b0220._0x18dacc,_0x2b0220._0x5c88f2,-0x44,-0xc4)]??_0x3f6eb4(-_0x2b0220._0x1fee72,-_0x2b0220._0x5c7647,_0x2b0220._0x5b2617,-0xb2);function _0x16df09(_0x2783c9,_0x312a91,_0x2de6e7,_0x3719ad){return _0x4d4006(_0x2783c9,_0x312a91-_0x4dceed._0x23a6d0,_0x2de6e7- -0x53,_0x3719ad-0x144);}function _0x3f6eb4(_0x1cab31,_0x33a667,_0x31afa4,_0x3f4d8d){return _0x4d4006(_0x33a667,_0x33a667-0xed,_0x1cab31- -_0x1924d6._0x391d6c,_0x3f4d8d-0x1d3);}this[_0x16df09(0x1b3,_0x2b0220._0x481e73,_0x2b0220._0x185035,_0x2b0220._0x26f2e7)]=_0x7bd564[_0x16df09(_0x2b0220._0x264f60,_0x2b0220._0x32c439,_0x2b0220._0x48737f,0x88)]??0x4000,this['reasoning']=_0x7bd564[_0x3f6eb4(-_0x2b0220._0x368941,-_0x2b0220._0x146e75,-0xed,-_0x2b0220._0x57d0e9)]?structuredClone(_0x7bd564[_0x16df09(-0x38,_0x2b0220._0x496401,0x83,0x30)]):void 0x0;}async[_0x4d4006(0x195,0xaf,0xe4,0xed)](_0x5e14a4,_0x4d29c9){const _0xd1d6c1={_0xf6a6c3:0x159,_0x239935:0x1f7,_0x2a0816:0x500,_0x331998:0x4c9,_0x5f0928:0x4e8,_0x2218da:0x1ff,_0x48ad75:0x2af,_0x486208:0x238,_0x3086fc:0x3ed,_0xf1e3ca:0x471,_0x403d44:0x46d,_0x58ac7c:0x16e,_0x1855a8:0x1fb,_0x341549:0x212,_0x303452:0x4c4,_0x1eb37a:0x45d,_0x1acb41:0x452,_0x4f045a:0x4b4,_0x26f6d0:0x255,_0x5a6562:0x19a,_0x4a6293:0x483,_0x414807:0x574,_0x38a336:0x419,_0x470466:0xe6,_0x200d6d:0xff,_0x78f6d5:0x186,_0x2c3165:0x2e6,_0x115da2:0x185,_0x22a901:0x23e,_0x24bef1:0x297,_0x150f52:0x4bd,_0x2ddbff:0x3d9,_0x7b289a:0x42a,_0x6ef9:0x472,_0xa57e46:0x190,_0x2ee365:0x1f3},_0x1c8c8e={_0x209736:0x5b,_0x244909:0x121},_0x2f2523={_0x19488c:0x5f,_0x58959d:0xac},_0x220b59={...structuredClone(_0x5e14a4),..._0x5e14a4['reasoning']===void 0x0&&this['reasoning']!==void 0x0?{'reasoning':structuredClone(this[_0x3fec9b(_0xd1d6c1._0xf6a6c3,0x12c,0x218,_0xd1d6c1._0x239935)])}:{}};this[_0x49e9e2(0x448,_0xd1d6c1._0x2a0816,_0xd1d6c1._0x331998,_0xd1d6c1._0x5f0928)][_0x3fec9b(_0xd1d6c1._0x2218da,_0xd1d6c1._0x48ad75,0x23b,_0xd1d6c1._0x486208)](_0x220b59);function _0x49e9e2(_0x12b0b7,_0x5882f9,_0x182a83,_0x5e1026){return _0x4d4006(_0x12b0b7,_0x5882f9-_0x2f2523._0x19488c,_0x5882f9-0x40f,_0x5e1026-_0x2f2523._0x58959d);}const _0x1c4295=findLastMessage(_0x220b59[_0x49e9e2(0x46f,0x3fa,0x339,_0xd1d6c1._0x3086fc)],_0x49e9e2(0x35f,0x3fc,_0xd1d6c1._0xf1e3ca,_0xd1d6c1._0x403d44));function _0x3fec9b(_0x1a300e,_0x4372f3,_0x54081e,_0x3f1104){return _0x4d4006(_0x1a300e,_0x4372f3-_0x1c8c8e._0x209736,_0x3f1104-_0x1c8c8e._0x244909,_0x3f1104-0x1a3);}const _0x964e7=getToolResultBlocks(_0x1c4295),_0x202f79='assistant-'+this[_0x3fec9b(_0xd1d6c1._0x58ac7c,0x209,_0xd1d6c1._0x1855a8,_0xd1d6c1._0x341549)][_0x49e9e2(_0xd1d6c1._0x303452,0x4fb,0x539,0x5bb)];if(_0x964e7['length']>0x0)return createMockResponse(_0x202f79,[{'type':_0x49e9e2(_0xd1d6c1._0x1eb37a,0x4e1,_0xd1d6c1._0x1acb41,_0xd1d6c1._0x4f045a),'text':_0x3fec9b(0x2e5,_0xd1d6c1._0x26f6d0,_0xd1d6c1._0x5a6562,0x21f)+_0x964e7[0x0][_0x49e9e2(_0xd1d6c1._0x4a6293,0x4d1,_0xd1d6c1._0x414807,_0xd1d6c1._0x38a336)]}],_0x3fec9b(_0xd1d6c1._0x470466,_0xd1d6c1._0x200d6d,0x14f,_0xd1d6c1._0x78f6d5),{'inputTokens':0x78,'outputTokens':0x28});const _0x488b46=getTextFromMessage(_0x1c4295);if(/list .*files|workspace/i['test'](_0x488b46)&&hasTool(_0x220b59,_0x3fec9b(0x12d,0x1e1,0xef,0x179)))return createMockResponse(_0x202f79,[{'type':'tool_use','id':_0x3fec9b(_0xd1d6c1._0x2c3165,0x189,_0xd1d6c1._0x115da2,_0xd1d6c1._0x22a901)+this[_0x3fec9b(0x24d,0x1f3,_0xd1d6c1._0x24bef1,0x212)][_0x49e9e2(_0xd1d6c1._0x150f52,0x4fb,0x53f,0x460)],'name':_0x49e9e2(_0xd1d6c1._0x2ddbff,0x467,0x3ca,_0xd1d6c1._0x7b289a),'input':{'command':'ls\x20-la'}}],_0x49e9e2(0x404,_0xd1d6c1._0x6ef9,0x4fb,0x4b3),{'inputTokens':0x6e,'outputTokens':0x1c});return createMockResponse(_0x202f79,[{'type':_0x3fec9b(_0xd1d6c1._0xa57e46,0x1bd,0x283,_0xd1d6c1._0x2ee365),'text':'Direct\x20answer:\x20'+_0x488b46}],_0x3fec9b(0x1ef,0xc2,0x207,0x186),{'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,ProviderSessionManager,RoutedModel,StaticModelSurfaceRouter,createAnthropicSurfaces,createDefaultWebSocketFactory,createOpenAiApiError,createOpenAiResponsesStreamParser,createOpenAiResponsesWebSocketEvent,createOpenAiSurfaces,fetchJsonResponse,fetchRawResponse,iterateSseEvents,iterateWebSocketMessages,prepareProviderRequest,resolveApiCredential,resolveSessionBaseUrl,toWebSocketUrl,trimTrailingSlashes,waitForWebSocketOpen};
|