@nuvin/agent-core 0.0.0-rc.1 → 0.0.0-rc.3
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.d.ts +525 -17
- package/dist/agent/index.js +1 -1
- package/dist/chunk-G2FR4UGO.js +1 -0
- package/dist/chunk-LXQDGX4K.js +1 -0
- package/dist/chunk-NYZR4XKO.js +1 -1
- package/dist/chunk-VFTQW5WK.js +1 -0
- package/dist/chunk-X7VAACWY.js +1 -1
- package/dist/formats/index.d.ts +319 -23
- package/dist/formats/index.js +1 -1
- package/dist/models/index.d.ts +634 -332
- package/dist/models/index.js +1 -1
- package/dist/{provider-adapters-F0kn75gb.d.ts → provider-adapters-Cb5hUJoD.d.ts} +1 -1
- package/dist/shared/index.d.ts +709 -14
- package/dist/shared/index.js +1 -1
- package/dist/tools/index.d.ts +969 -421
- package/dist/tools/index.js +1 -1
- package/dist/{types-D11KxtW1.d.ts → types-QPBW5jHO.d.ts} +22 -3
- package/package.json +6 -4
- package/dist/chunk-C6OLKGP6.js +0 -1
- package/dist/chunk-U2BLX7Y5.js +0 -1
- package/dist/chunk-WVVWOCQ5.js +0 -1
package/dist/models/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x577caa,_0xbd6c48){const _0xbe9bca={_0x2a9c64:0x1de,_0x8f2e8d:0x19b,_0x334e5c:0x169,_0x3b16bf:0xcc,_0x4266a7:0xa6,_0xf34f54:0x342,_0x321a6a:0x36c,_0x205a27:0x277,_0x39819d:0x253,_0x360a6f:0x4d,_0x4bc086:0x10e,_0x197a0b:0x16f,_0x27c6f0:0x38a,_0x3e6665:0x3b3},_0x1b603b={_0xc73f8d:0x11},_0x23f295={_0x10a783:0x1b8},_0x5006e2=_0x577caa();function _0x524ec2(_0x13db8b,_0xa55f55,_0x3b4347,_0x414e97){return _0x3920(_0x414e97-_0x23f295._0x10a783,_0xa55f55);}function _0x3853a8(_0x1ffba1,_0x3e62c8,_0x5e4054,_0x8de3f6){return _0x3920(_0x5e4054- -_0x1b603b._0xc73f8d,_0x8de3f6);}while(!![]){try{const _0x35e580=parseInt(_0x3853a8(0x1bb,_0xbe9bca._0x2a9c64,_0xbe9bca._0x8f2e8d,_0xbe9bca._0x334e5c))/0x1*(-parseInt(_0x3853a8(0xfb,_0xbe9bca._0x3b16bf,0x146,0x1c4))/0x2)+parseInt(_0x3853a8(-0x2,0x10,_0xbe9bca._0x4266a7,0x168))/0x3+parseInt(_0x524ec2(0x28c,0x3cd,_0xbe9bca._0xf34f54,0x327))/0x4+-parseInt(_0x524ec2(0x3c6,_0xbe9bca._0x321a6a,0x3bb,0x32e))/0x5+-parseInt(_0x524ec2(0x1c7,_0xbe9bca._0x205a27,_0xbe9bca._0x39819d,0x253))/0x6+-parseInt(_0x3853a8(0x1a8,_0xbe9bca._0x360a6f,_0xbe9bca._0x4bc086,_0xbe9bca._0x197a0b))/0x7+parseInt(_0x524ec2(0x443,0x384,_0xbe9bca._0x27c6f0,_0xbe9bca._0x3e6665))/0x8;if(_0x35e580===_0xbd6c48)break;else _0x5006e2['push'](_0x5006e2['shift']());}catch(_0x2dbafa){_0x5006e2['push'](_0x5006e2['shift']());}}}(_0xb3ca,0x5a118));import{toOpenAiResponsesRequest}from'../chunk-U2BLX7Y5.js';import{resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig}from'../chunk-NYZR4XKO.js';import{getTextFromMessage,getToolResultBlocks,normalizeContent,toChatRequest,toModelRequest,toProviderModelRequest}from'../chunk-C6OLKGP6.js';import{addAbortListener,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';var ANTHROPIC_MESSAGES_SURFACE='anthropic-messages',ANTHROPIC_MESSAGES_STREAM_SURFACE='anthropic-messages-stream';function parseToolInput(_0x4a0030){const _0x405dc3={_0x2e5e88:0x44e,_0xe9196f:0x443};function _0x3df144(_0x51e660,_0x59ad13,_0x2576ed,_0x47168c){return _0x3920(_0x59ad13-0x2eb,_0x2576ed);}try{return JSON[_0x3df144(0x3f2,_0x405dc3._0x2e5e88,_0x405dc3._0xe9196f,0x3a1)](_0x4a0030);}catch{return _0x4a0030;}}function resolveReasoningVisibility(_0x187dc8){const _0x122583={_0x56b8e0:0x8d,_0x23af57:0x136,_0x55372d:0xab,_0x46b398:0x90,_0x3cb5d7:0x44},_0x3d6545={_0x39cfce:0xb7};function _0x1c0850(_0x75d43f,_0x45d21c,_0x380614,_0x2a3aef){return _0x3920(_0x2a3aef- -0x1a3,_0x380614);}function _0x517e95(_0xd9fa58,_0x4fb76d,_0x48a4fb,_0x8e34f2){return _0x3920(_0x8e34f2- -_0x3d6545._0x39cfce,_0x48a4fb);}return _0x187dc8[_0x1c0850(_0x122583._0x56b8e0,0x28,0xbe,0x4d)]?.[_0x1c0850(0xe,-_0x122583._0x23af57,-0x3e,-_0x122583._0x55372d)]??_0x1c0850(0x5e,-0xb,_0x122583._0x46b398,_0x122583._0x3cb5d7);}function isUserVisibleThinking(_0x28f6fa){const _0x125f14={_0xc1cc21:0x40,_0x53f03c:0x171,_0x2f949b:0x21c,_0x45f31e:0x28d},_0x54fe43={_0x38af7c:0x164};function _0x2dfdf4(_0x5cc831,_0x557f16,_0xb8c2a6,_0x233534){return _0x3920(_0x5cc831-_0x54fe43._0x38af7c,_0xb8c2a6);}const _0xc631e2=resolveAnthropicThinkingConfig(_0x28f6fa[_0x4e3228(-_0x125f14._0xc1cc21,-0xc2,-0x9,-_0x125f14._0x53f03c)]);function _0x4e3228(_0x1fdf2e,_0x1b6062,_0x25684d,_0x1f391c){return _0x3920(_0x1b6062- -0x2b2,_0x25684d);}return _0xc631e2!==void 0x0&&_0xc631e2[_0x2dfdf4(0x266,0x21d,_0x125f14._0x2f949b,_0x125f14._0x45f31e)]!=='disabled'&&resolveReasoningVisibility(_0x28f6fa)==='user-visible';}function createAnthropicThinkingBody(_0x61bc8d){const _0x3e215f={_0x54526c:0x3ad,_0x167d35:0x25e,_0x3ee4d0:0x2bf,_0x5809fe:0x4b,_0x193cb6:0x1c,_0x3023c6:0x24e,_0x251dac:0x44,_0x153c74:0x3d,_0x2e6ac2:0x248,_0xc5a6aa:0x13f,_0x31f9ae:0xc0,_0x1896c6:0x1d,_0x5471d3:0x8d,_0x477418:0x41,_0x1d04c4:0x281,_0x1e442a:0x21b,_0x1ebe7a:0x352,_0x183fec:0x70,_0x1befd3:0x104,_0x392612:0x14e,_0x45fbff:0x28b,_0x573f48:0x2ec},_0x2d9cfa={_0x1b06d0:0xc1},_0x27595e=resolveAnthropicThinkingConfig(_0x61bc8d[_0x3d3021(0x464,0x302,_0x3e215f._0x54526c,0x2fd)]);function _0x3d3021(_0x37c44f,_0x53db77,_0x21d153,_0x4c5f59){return _0x3920(_0x21d153-0x1bd,_0x4c5f59);}if(!_0x27595e||_0x27595e[_0x3d3021(0x24c,_0x3e215f._0x167d35,_0x3e215f._0x3ee4d0,0x317)]===_0x2e811c(0xca,0x7c,_0x3e215f._0x5809fe,-_0x3e215f._0x193cb6))return{};const _0x1a51ed=_0x27595e[_0x3d3021(0x2f4,0x202,_0x3e215f._0x3023c6,0x1eb)]??(isUserVisibleThinking(_0x61bc8d)?_0x2e811c(-_0x3e215f._0x251dac,_0x3e215f._0x153c74,-0x9,-0x93):'omitted'),_0x18f512=_0x27595e[_0x3d3021(0x232,0x2f8,_0x3e215f._0x2e6ac2,0x1e2)]?{'anthropic-beta':_0x2e811c(_0x3e215f._0xc5a6aa,0xbe,_0x3e215f._0x31f9ae,0x8b)}:void 0x0;if(_0x27595e[_0x2e811c(_0x3e215f._0x1896c6,_0x3e215f._0x5471d3,_0x3e215f._0x477418,0x38)]===_0x3d3021(0x223,0x313,_0x3e215f._0x1d04c4,0x245))return{..._0x18f512?{'headers':_0x18f512}:{},'thinking':{'type':_0x3d3021(0x229,0x2c4,_0x3e215f._0x1d04c4,_0x3e215f._0x1e442a),'budget_tokens':_0x27595e[_0x3d3021(0x26d,0x28c,0x2a4,_0x3e215f._0x1ebe7a)],'display':_0x1a51ed}};function _0x2e811c(_0x1de073,_0x4426a9,_0x168c88,_0x1dec97){return _0x3920(_0x168c88- -_0x2d9cfa._0x1b06d0,_0x4426a9);}return{..._0x18f512?{'headers':_0x18f512}:{},'thinking':{'type':_0x2e811c(_0x3e215f._0x183fec,0x64,_0x3e215f._0x1befd3,_0x3e215f._0x392612),..._0x27595e[_0x3d3021(0x2c0,0x36d,0x2ec,_0x3e215f._0x45fbff)]?{'effort':_0x27595e[_0x3d3021(0x378,0x275,_0x3e215f._0x573f48,0x24c)]}:{},'display':_0x1a51ed}};}function toAnthropicRequestContent(_0x24889a){const _0x963811={_0x4316df:0x48c,_0x11ab76:0x53f,_0x3ca957:0x489,_0x5f27d9:0x464,_0x31df0a:0x4fb,_0xbefa51:0x530,_0x25d5aa:0x548,_0x1ea7b5:0x2b0,_0x3dedbb:0x1b6,_0x1986aa:0x1b1,_0x347e61:0x4e8,_0x259fdc:0x4a5,_0x3f63f4:0x525,_0xe6eace:0x5dd,_0x5d64ba:0x447,_0x276d20:0x471,_0x188554:0x476,_0x154ca1:0x1ee,_0x568ea0:0x225,_0xe6624c:0x1f9,_0x19faae:0x1c7,_0x405c1b:0x56e,_0x305677:0x52d,_0x16810a:0x64f,_0x344419:0x5d1,_0x269f68:0x115,_0x50c305:0x1c8};function _0x471c35(_0x202a2a,_0x1cbd19,_0x3a12fc,_0x1064b){return _0x3920(_0x1cbd19-0x132,_0x202a2a);}if(_0x24889a[_0x471c35(0x33c,0x285,0x311,0x269)]==='assistant'&&_0x24889a[_0x44ea8a(_0x963811._0x4316df,_0x963811._0x11ab76,0x3ed,_0x963811._0x3ca957)]?.[_0x44ea8a(_0x963811._0x5f27d9,0x585,0x4cd,_0x963811._0x31df0a)])return structuredClone(_0x24889a[_0x44ea8a(_0x963811._0xbefa51,0x45f,_0x963811._0x25d5aa,0x489)][_0x471c35(_0x963811._0x1ea7b5,0x24d,0x1a3,_0x963811._0x3dedbb)]);const _0x5ca368=[];for(const _0x5432a1 of normalizeContent(_0x24889a[_0x471c35(_0x963811._0x1986aa,0x1e3,0x1ad,0x1fb)])){if(_0x5432a1['type']===_0x44ea8a(0x50e,_0x963811._0x347e61,0x584,0x502))continue;if(_0x5432a1[_0x44ea8a(_0x963811._0x259fdc,0x4d4,0x4d6,0x4e2)]===_0x44ea8a(0x541,0x660,_0x963811._0x3f63f4,_0x963811._0xe6eace)){_0x5ca368[_0x44ea8a(0x4a3,_0x963811._0x5d64ba,_0x963811._0x276d20,_0x963811._0x188554)]({'type':_0x471c35(_0x963811._0x154ca1,_0x963811._0x568ea0,0x201,_0x963811._0xe6624c),'thinking':_0x5432a1[_0x471c35(0x1c9,0x225,0x299,_0x963811._0x19faae)],'signature':_0x5432a1[_0x44ea8a(_0x963811._0x405c1b,0x4da,0x50c,_0x963811._0x305677)]});continue;}if(_0x5432a1['type']===_0x44ea8a(0x5ca,0x556,_0x963811._0x16810a,_0x963811._0x344419)){_0x5ca368[_0x471c35(_0x963811._0x269f68,_0x963811._0x50c305,0x285,0x1d1)]({'type':'redacted_thinking','data':_0x5432a1['data']});continue;}_0x5ca368['push'](structuredClone(_0x5432a1));}function _0x44ea8a(_0x236079,_0x1f176c,_0x2dd654,_0x3b56e2){return _0x3920(_0x3b56e2-0x3e0,_0x1f176c);}return _0x5ca368;}function createAnthropicRequest(_0x38e6ee,_0x442cd2){const _0x63fb1={_0x24ce27:0x44e,_0x20bb89:0x3cc,_0x5b7310:0x130,_0x322192:0x310,_0x18a517:0x3d5,_0x272550:0x35d,_0xb1ad39:0x324,_0xb83b6:0x3de},_0x2dd259={_0x4073f3:0x28c,_0x4d3359:0x25f,_0x2c8334:0x316},_0x1107c6={_0x4bfc93:0x16c,_0x2d587c:0x53},_0x3122e1=toProviderModelRequest(_0x38e6ee),_0x483483=createAnthropicThinkingBody(_0x38e6ee);function _0xc778ad(_0x1fe495,_0x5b29e6,_0x589761,_0x1fca1d){return _0x3920(_0x5b29e6-0x231,_0x1fca1d);}function _0x5b44c3(_0x350943,_0x161bb9,_0x245a1e,_0x4fd1c8){return _0x3920(_0x245a1e- -0x246,_0x350943);}return{'accept':_0x442cd2?'text/event-stream':_0xc778ad(0x42a,0x392,_0x63fb1._0x24ce27,_0x63fb1._0x20bb89),'body':{..._0x3122e1,'messages':_0x38e6ee[_0x5b44c3(-0xf4,-0x138,-_0x63fb1._0x5b7310,-0xd8)][_0xc778ad(_0x63fb1._0x322192,0x36c,_0x63fb1._0x18a517,_0x63fb1._0x272550)](_0x29969e=>{function _0x49f6c7(_0x515932,_0x3964c6,_0x3da86e,_0x5ac198){return _0x5b44c3(_0x5ac198,_0x3964c6-0x155,_0x3964c6- -_0x1107c6._0x4bfc93,_0x5ac198-_0x1107c6._0x2d587c);}return{'role':_0x29969e[_0x49f6c7(-_0x2dd259._0x4073f3,-_0x2dd259._0x4d3359,-_0x2dd259._0x2c8334,-0x2b2)],'content':toAnthropicRequestContent(_0x29969e)};}),..._0x483483['thinking']?{'thinking':_0x483483[_0xc778ad(0x315,_0x63fb1._0xb1ad39,0x2ef,_0x63fb1._0xb83b6)]}:{},..._0x442cd2?{'stream':!![]}:{}},..._0x483483['headers']?{'headers':_0x483483['headers']}:{},'path':'/v1/messages'};}function parseAnthropicResponse(_0x4c7d9a,_0x2fe7d4){const _0xbef6e1={_0x12fa64:0xa2,_0x3e7b63:0x13e,_0x2584db:0x7,_0x297ef3:0x308,_0x11f019:0x30e,_0x3a8d07:0x380,_0x26fa62:0x3da,_0x3d0b57:0x53,_0x2bd7f5:0x58,_0x4d87c8:0x4d,_0x58a0b4:0x1e,_0x465e29:0x481,_0x245438:0x52b,_0x5dd326:0x92,_0x1cec90:0x120,_0x2ccc0d:0x5a,_0x4e5ccc:0x13c,_0x250ad7:0xaa,_0x2d851e:0x43d,_0x5c8501:0x345,_0x5cb559:0x3f9,_0x59dc5a:0x7c,_0x143a25:0x144,_0x534072:0x10e,_0x4df477:0x4e,_0x5ade95:0x142,_0x1bf2e4:0x492,_0x17e7b4:0x71,_0x4a5493:0x8a,_0x2e0b1a:0x54,_0x10c27c:0x344,_0x1cae8b:0x3b2,_0x215977:0x326,_0x8cfcf5:0x2bd,_0x116824:0x36b,_0x23faa3:0x10b,_0x17583c:0xa4,_0x385e47:0x78,_0x15b215:0x1b8,_0x3a41cb:0x3a0,_0x246315:0x406,_0x1f0fe2:0x44b,_0x3094ea:0x1c,_0x139acb:0x6,_0xb2d531:0x3d7,_0x159eab:0x43b},_0x21c413={_0x5a5934:0x1a4},_0x7d06ba=[],_0x498556=_0x4c7d9a['content']??[];let _0x4cadac=![];function _0x50fc98(_0x29ca00,_0x17727c,_0x3ecdd9,_0x1ec10a){return _0x3920(_0x3ecdd9-0x28d,_0x29ca00);}for(const _0xd2d348 of _0x498556){if(_0xd2d348[_0x4f5ef0(-_0xbef6e1._0x12fa64,-0x10c,-_0xbef6e1._0x3e7b63,_0xbef6e1._0x2584db)]==='thinking'){_0x4cadac=!![];isUserVisibleThinking(_0x2fe7d4)&&_0x7d06ba['push']({'type':'anthropic_thinking','thinking':_0xd2d348[_0x50fc98(_0xbef6e1._0x297ef3,_0xbef6e1._0x11f019,_0xbef6e1._0x3a8d07,0x313)],'signature':_0xd2d348[_0x50fc98(0x3fe,0x3c2,_0xbef6e1._0x26fa62,0x37f)]});continue;}if(_0xd2d348['type']===_0x4f5ef0(-_0xbef6e1._0x3d0b57,0x22,-0x33,-0x113)){_0x4cadac=!![];isUserVisibleThinking(_0x2fe7d4)&&_0x7d06ba[_0x4f5ef0(-0x10e,-0x146,-_0xbef6e1._0x2bd7f5,-0xf9)]({'type':_0x4f5ef0(_0xbef6e1._0x4d87c8,0x34,-_0xbef6e1._0x58a0b4,0xbe),'data':_0xd2d348[_0x50fc98(0x438,0x444,_0xbef6e1._0x465e29,_0xbef6e1._0x245438)]});continue;}if(_0xd2d348[_0x4f5ef0(-_0xbef6e1._0x12fa64,-_0xbef6e1._0x5dd326,-_0xbef6e1._0x1cec90,-0xfd)]===_0x4f5ef0(-0x86,-_0xbef6e1._0x2ccc0d,-_0xbef6e1._0x4e5ccc,-_0xbef6e1._0x250ad7)){_0xd2d348[_0x50fc98(0x378,0x428,0x3ab,0x2f5)][_0x50fc98(_0xbef6e1._0x2d851e,_0xbef6e1._0x5c8501,_0xbef6e1._0x5cb559,0x3a4)]>0x0&&_0x7d06ba[_0x4f5ef0(-0x10e,-0x63,-_0xbef6e1._0x59dc5a,-_0xbef6e1._0x143a25)](structuredClone(_0xd2d348));continue;}_0x7d06ba[_0x4f5ef0(-_0xbef6e1._0x534072,-0xe6,-_0xbef6e1._0x4df477,-_0xbef6e1._0x5ade95)](structuredClone(_0xd2d348));}function _0x4f5ef0(_0x5557ad,_0xc3253f,_0x81aabd,_0x4be465){return _0x3920(_0x5557ad- -_0x21c413._0x5a5934,_0xc3253f);}return{'id':_0x4c7d9a['id']??_0x50fc98(0x4a2,_0xbef6e1._0x1bf2e4,0x454,0x3c2)+Date[_0x4f5ef0(-0x4b,_0xbef6e1._0x17e7b4,-_0xbef6e1._0x4a5493,-_0xbef6e1._0x2e0b1a)](),'content':_0x7d06ba,'stopReason':_0x7d06ba['some'](_0x5b2f66=>_0x5b2f66[_0x50fc98(0x43a,0x449,0x38f,0x425)]===_0x50fc98(0x2d8,0x2e0,0x326,0x2fc))?_0x50fc98(_0xbef6e1._0x10c27c,_0xbef6e1._0x1cae8b,_0xbef6e1._0x215977,0x373):_0x4c7d9a['stop_reason']===_0x50fc98(_0xbef6e1._0x8cfcf5,_0xbef6e1._0x116824,0x326,0x34f)?_0x4f5ef0(-_0xbef6e1._0x23faa3,-_0xbef6e1._0x17583c,-_0xbef6e1._0x385e47,-_0xbef6e1._0x15b215):'end_turn','usage':{'inputTokens':_0x4c7d9a[_0x50fc98(_0xbef6e1._0x3a41cb,_0xbef6e1._0x246315,_0xbef6e1._0x1f0fe2,0x3f4)]?.[_0x4f5ef0(-_0xbef6e1._0x3094ea,-_0xbef6e1._0x4df477,0x2f,-_0xbef6e1._0x139acb)]??0x0,'outputTokens':_0x4c7d9a[_0x4f5ef0(0x1a,-0x14,-0xa2,0x95)]?.[_0x50fc98(0x475,0x444,_0xbef6e1._0xb2d531,_0xbef6e1._0x159eab)]??0x0},..._0x4cadac?{'providerState':{'anthropicAssistantContent':structuredClone(_0x498556)}}:{}};}var AnthropicMessagesStreamParser=class{[_0x55f0a4(-0x13b,-0x221,-0x17f,-0x1ad)]=new Map();[_0x55f0a4(-0x356,-0x268,-0x325,-0x2dc)]=0x0;['messageId']='msg-'+Date[_0x2e041c(-0xb3,-0x65,-0x76,-0xff)]();['outputTokens']=0x0;[_0x2e041c(-0x72,-0x23,0x13,0x17)];[_0x2e041c(0x6d,0x12,0x23,0x44)]='end_turn';constructor(_0x1b49e5){const _0x50301b={_0x3e46f2:0xba,_0x5ebc7d:0x436};function _0x299d18(_0x5676a2,_0x14fd24,_0x59413c,_0x5a1dd1){return _0x55f0a4(_0x5676a2-_0x50301b._0x3e46f2,_0x14fd24-0xc0,_0x14fd24,_0x59413c-_0x50301b._0x5ebc7d);}this[_0x299d18(0x276,0x2e0,0x29c,0x331)]=_0x1b49e5;}[_0x2e041c(-0x112,-0x17,-0x5c,-0x6d)](_0x4f987d){const _0x1a85e1={_0x50f122:0x14c,_0x4e9f45:0x11b,_0x59c9d2:0x238,_0x34e03b:0x1ee,_0x24d808:0x1b9,_0x1e7d69:0x3a,_0x229f08:0xc0,_0x1d9ef3:0x47,_0x5cf4ea:0x6a,_0x1f32e1:0x285,_0x4ca7a5:0x43,_0xb593f0:0x4d,_0x198083:0x1bd,_0x1fc686:0x1ff,_0x4bcd94:0x181,_0x3331f4:0x1fd,_0x1d323e:0x178,_0x45f524:0x23,_0xc1f3aa:0x1d5,_0x5867f6:0x1b2,_0x16e664:0x252,_0x2996f3:0x1cb,_0x2c0aac:0x199,_0x518020:0x183,_0x53f6c2:0x1b1,_0x49c68d:0x20d,_0x9b266:0x27a,_0xa6b832:0xdc,_0x404851:0x1d2,_0x15fc6d:0x153,_0xbc2062:0x211,_0x198676:0x84,_0x5e0be7:0xde,_0x4bcc64:0x1ad,_0x5493ea:0x7a,_0x3024e4:0x87,_0x2801bf:0xb1,_0xd267f8:0xf8,_0x9c9b95:0x102,_0x1ca469:0x21,_0x38f3ec:0x9b,_0x1889ce:0x4f,_0xa82568:0xd5,_0x8f4200:0xbd,_0x230b7c:0x34,_0x34919d:0x1,_0x2b137b:0x119,_0x19d3b6:0x185,_0x563705:0x100,_0x50e0af:0x195,_0x302aeb:0xa6,_0x1817d1:0x8c,_0x4842ea:0xed,_0xf21f74:0x109,_0x801e04:0xf1,_0xbcc53f:0x1d9,_0x1fc50d:0x247,_0x351e62:0x1e8,_0x5439f7:0x1f5,_0x1a5dce:0x141,_0x4b02a8:0x1c1,_0x4de02e:0x13,_0x169ec4:0x22,_0x349bfd:0x151,_0x2c4d59:0x256,_0x3175b2:0x137,_0x5143d2:0x227,_0x4d3c4d:0x8d,_0x3ce8ec:0x20,_0x36f482:0x81,_0x203803:0x188,_0x4b2392:0x18a,_0x5b0491:0x59,_0x3c09b4:0x38,_0x4c8aad:0xbb,_0x1aca97:0x21a,_0x443424:0x1b8,_0x15daad:0x1f,_0x25ea67:0x67,_0x233b17:0x93,_0x51e4c7:0x62,_0x432279:0x31,_0x5256eb:0x110,_0x38c464:0xce,_0x59c2cb:0x158,_0x1f01e2:0x27f,_0x2d296a:0x1df,_0xbedd1e:0x8a,_0x2bf233:0x13a,_0x4b8e0b:0x9b,_0x54a6e8:0x17c,_0x1a7a3a:0x120,_0x2ae9f5:0x1d0,_0x18ce3c:0xe9,_0x2d6c9d:0x11e,_0xff13c7:0xf1,_0x1a5005:0x106,_0x48f4e0:0x7d,_0x4b59ed:0x4,_0x2d8879:0x7d,_0x299cb0:0xe5,_0x2f60e0:0x16e,_0x1f9ea7:0x14d,_0x3cbb4d:0x193,_0x23c41b:0x22a,_0x2f1192:0x15b,_0x380611:0xd3,_0x3ec88b:0x41,_0x39ceda:0x102,_0x45a537:0x15c,_0x1586be:0xf9,_0x4d2a33:0x0,_0x13e306:0x6b,_0x11dbe0:0x5e,_0x5cc897:0x24,_0x1657f1:0x13f,_0x2528a2:0x199,_0x512b57:0x241,_0x3e3eeb:0x164,_0x134659:0x272,_0x1dfb40:0x1d9,_0x5e2d87:0x80,_0x9a86e4:0x4b,_0x1e7f57:0xd,_0x300bd8:0x1bf,_0x4c35df:0x29f,_0x16ab7a:0x4e,_0x2c7f63:0x1d4,_0x54bade:0x2b9,_0x23274d:0x24c,_0x479559:0x4e,_0x1fa611:0x140,_0xefbe07:0x18e,_0xaa64a:0x218,_0x10e550:0x57,_0x4ebfdb:0xf9,_0x15a6cb:0x70,_0x1c0dd0:0x136,_0x59a226:0x9d,_0x1a9d92:0x121,_0x331844:0x7d,_0x4b70da:0x189,_0x474744:0x133,_0x5bc59a:0x238,_0x25974d:0x1b5,_0xbacd28:0x16f,_0x6bb19e:0x102,_0x2db67d:0xac,_0x36192f:0x99,_0x2b18ac:0x44,_0x355fe3:0x115,_0x147852:0xb0,_0x296819:0x11e,_0x2471e3:0x24f,_0x1d7bae:0x1f8,_0x36082c:0xa9,_0x2bbc1e:0x31},_0x3b2436={_0x2accae:0x124,_0x3b2856:0x2a},_0x3e3eaf={_0x8756a6:0x34};function _0x59b8e3(_0x2eeeb3,_0x3c9740,_0x205703,_0x3de982){return _0x2e041c(_0x2eeeb3-0x1a6,_0x3c9740-0xcd,_0x3de982-_0x3e3eaf._0x8756a6,_0x2eeeb3);}const _0x1f92b7=_0x4f987d[_0x22b394(-0x151,-_0x1a85e1._0x50f122,-0x136,-_0x1a85e1._0x4e9f45)]('\x0a'),_0x3b5ce6=_0x1f92b7[_0x22b394(-_0x1a85e1._0x59c9d2,-0x1c1,-_0x1a85e1._0x34e03b,-_0x1a85e1._0x24d808)](_0x11a30d=>_0x11a30d[_0x22b394(-0x141,-0x15e,-0x185,-0x1b2)]('event:'))?.[_0x22b394(-0x1b2,-0x19b,-0x206,-0x156)](0x6)['trim'](),_0x43b41a=_0x1f92b7['filter'](_0x48509f=>_0x48509f[_0x22b394(-0x13a,-0x1a8,-0x185,-0xdf)](_0x22b394(-0x222,-0x2de,-0x248,-0x1a5)))[_0x59b8e3(-0xff,_0x1a85e1._0x1e7d69,-_0x1a85e1._0x229f08,-0x60)](_0x45a125=>_0x45a125['slice'](0x5)[_0x59b8e3(-0x9c,-0x2f,-0x29,-0x31)]())[_0x59b8e3(_0x1a85e1._0x1d9ef3,-0xb6,-0xa,-_0x1a85e1._0x5cf4ea)]('\x0a')[_0x22b394(-0x2ab,-_0x1a85e1._0x1f32e1,-_0x1a85e1._0x59c9d2,-0x268)]();if(_0x43b41a[_0x59b8e3(-0x8b,-_0x1a85e1._0x4ca7a5,_0x1a85e1._0xb593f0,-0x2f)]===0x0||_0x43b41a===_0x22b394(-_0x1a85e1._0x198083,-0x298,-_0x1a85e1._0x1fc686,-0x22f))return[];function _0x22b394(_0x54cb37,_0x1f0aa3,_0x1d16da,_0x335806){return _0x2e041c(_0x54cb37-_0x3b2436._0x2accae,_0x1f0aa3-_0x3b2436._0x3b2856,_0x1d16da- -0x10c,_0x1f0aa3);}const _0x1feed7=JSON[_0x22b394(-_0x1a85e1._0x4bcd94,-_0x1a85e1._0x3331f4,-_0x1a85e1._0x1d323e,-0x1e6)](_0x43b41a);switch(_0x3b5ce6){case _0x59b8e3(0x2a,0x28,-_0x1a85e1._0x45f524,-0x2):{const _0x2ac626=_0x1feed7[_0x22b394(-_0x1a85e1._0xc1f3aa,-0x20b,-_0x1a85e1._0x5867f6,-0x260)];this[_0x22b394(-0x1e6,-_0x1a85e1._0x16e664,-_0x1a85e1._0x2996f3,-0x21f)]=_0x2ac626?.['id']??this[_0x22b394(-_0x1a85e1._0x2c0aac,-0x278,-0x1cb,-_0x1a85e1._0x518020)],this[_0x22b394(-_0x1a85e1._0x53f6c2,-_0x1a85e1._0x49c68d,-0x23b,-_0x1a85e1._0x9b266)]=_0x2ac626?.['usage']?.[_0x22b394(-_0x1a85e1._0xa6b832,-_0x1a85e1._0x404851,-_0x1a85e1._0x15fc6d,-0x1d4)]??this[_0x22b394(-_0x1a85e1._0xbc2062,-0x29d,-0x23b,-0x2dc)];break;}case _0x22b394(-_0x1a85e1._0x198676,-_0x1a85e1._0x5e0be7,-0x110,-0x10f):{const _0x19741a=typeof _0x1feed7['index']===_0x22b394(-0x176,-0x1bb,-0x1df,-_0x1a85e1._0x4bcc64)?_0x1feed7['index']:0x0,_0x1f3852=_0x1feed7[_0x59b8e3(-_0x1a85e1._0x5493ea,-0x10b,-0x134,-_0x1a85e1._0x3024e4)];if(_0x1f3852?.['type']===_0x59b8e3(-0x141,-_0x1a85e1._0x2801bf,-_0x1a85e1._0xd267f8,-_0x1a85e1._0x9c9b95)&&_0x1f3852['id']&&_0x1f3852[_0x59b8e3(_0x1a85e1._0x1ca469,-0x25,_0x1a85e1._0x38f3ec,_0x1a85e1._0x1889ce)])return this[_0x22b394(-0x12a,-0x116,-0x10c,-_0x1a85e1._0xa82568)][_0x59b8e3(-_0x1a85e1._0x8f4200,_0x1a85e1._0x230b7c,0x16,-_0x1a85e1._0x34919d)](_0x19741a,{'id':_0x1f3852['id'],'index':_0x19741a,'inputJson':JSON['stringify'](_0x1f3852[_0x22b394(-_0x1a85e1._0x2b137b,-_0x1a85e1._0x19d3b6,-0x111,-_0x1a85e1._0x563705)]??{}),'kind':_0x59b8e3(-0x94,-_0x1a85e1._0x50e0af,-0x7d,-0x102),'name':_0x1f3852[_0x59b8e3(_0x1a85e1._0x302aeb,_0x1a85e1._0x1817d1,0x8b,_0x1a85e1._0x1889ce)]}),[{'type':_0x59b8e3(-_0x1a85e1._0x4842ea,-0x190,-0xe9,-0x101),'id':_0x1f3852['id'],'index':_0x19741a,'name':_0x1f3852[_0x22b394(-0x58,-_0x1a85e1._0xf21f74,-_0x1a85e1._0x801e04,-_0x1a85e1._0x5493ea)]}];if(_0x1f3852?.[_0x22b394(-0x20b,-0x12c,-_0x1a85e1._0xbcc53f,-_0x1a85e1._0x1fc50d)]===_0x22b394(-0x237,-0x14e,-_0x1a85e1._0x351e62,-0x1e1)){this['blocks'][_0x22b394(-_0x1a85e1._0x5439f7,-0x10c,-_0x1a85e1._0x1a5dce,-0x1b3)](_0x19741a,{'index':_0x19741a,'kind':_0x22b394(-0x149,-0x134,-_0x1a85e1._0x351e62,-_0x1a85e1._0x4b02a8),'signature':typeof _0x1f3852['signature']===_0x59b8e3(-_0x1a85e1._0x4de02e,0xa2,-0x18,_0x1a85e1._0x169ec4)?_0x1f3852[_0x22b394(-0x133,-0x1d9,-0x18e,-0xd0)]:'','thinking':typeof _0x1f3852[_0x59b8e3(_0x1a85e1._0x4ca7a5,-0x125,-0x112,-0x7d)]==='string'?_0x1f3852['text']:typeof _0x1f3852[_0x59b8e3(-0x92,-0x116,-0x13e,-0xa8)]===_0x59b8e3(0x8c,0x6a,-0x95,_0x1a85e1._0x169ec4)?String(_0x1f3852[_0x22b394(-0x190,-_0x1a85e1._0x349bfd,-0x1e8,-0x23a)]):''});break;}if(_0x1f3852?.[_0x22b394(-0x120,-0x1fa,-0x1d9,-_0x1a85e1._0x2c4d59)]===_0x22b394(-_0x1a85e1._0x3175b2,-_0x1a85e1._0x5143d2,-0x18a,-0x151)){this[_0x59b8e3(_0x1a85e1._0x4d3c4d,_0x1a85e1._0x3ce8ec,-0x10,0x34)][_0x22b394(-_0x1a85e1._0x36f482,-0x13f,-0x141,-0xe6)](_0x19741a,{'index':_0x19741a,'kind':_0x22b394(-_0x1a85e1._0x203803,-0x1c5,-_0x1a85e1._0x4b2392,-0x144),'data':typeof _0x1f3852[_0x59b8e3(0x102,0xa1,0x100,_0x1a85e1._0x5b0491)]==='string'?String(_0x1f3852[_0x22b394(-0xef,-0xb9,-0xe7,-0xb4)]):''});break;}this[_0x59b8e3(_0x1a85e1._0x3c09b4,0x39,0x4,0x34)][_0x59b8e3(_0x1a85e1._0x4c8aad,0x9b,_0x1a85e1._0x1e7d69,-_0x1a85e1._0x34919d)](_0x19741a,{'index':_0x19741a,'kind':_0x22b394(-_0x1a85e1._0x1aca97,-_0x1a85e1._0x443424,-0x1bd,-0x13e),'text':_0x1f3852?.[_0x59b8e3(_0x1a85e1._0x15daad,-_0x1a85e1._0x25ea67,-_0x1a85e1._0x233b17,-0x7d)]??''});break;}case _0x59b8e3(-0x170,-_0x1a85e1._0x51e4c7,-_0x1a85e1._0x432279,-0xdc):{const _0x523a03=typeof _0x1feed7[_0x22b394(-_0x1a85e1._0x5256eb,-_0x1a85e1._0x38c464,-_0x1a85e1._0x59c2cb,-0x1b8)]===_0x22b394(-_0x1a85e1._0x1f01e2,-0x188,-_0x1a85e1._0x2d296a,-0x193)?_0x1feed7['index']:0x0,_0xae0650=this['blocks'][_0x22b394(-_0x1a85e1._0x3024e4,-_0x1a85e1._0xbedd1e,-_0x1a85e1._0x2bf233,-_0x1a85e1._0x4b8e0b)](_0x523a03),_0x284f5c=_0x1feed7['delta'];if(!_0xae0650||!_0x284f5c?.[_0x22b394(-_0x1a85e1._0x54a6e8,-0x14f,-0x1d9,-_0x1a85e1._0x15fc6d)])break;if(_0x284f5c[_0x59b8e3(0x17,-_0x1a85e1._0x1a7a3a,-0x10,-0x99)]===_0x22b394(-_0x1a85e1._0x2ae9f5,-0x1e1,-0x144,-_0x1a85e1._0x18ce3c)&&_0xae0650[_0x22b394(-0x22c,-0x17b,-0x1fd,-0x13c)]==='text'&&typeof _0x284f5c['text']===_0x22b394(-0xd9,-0x77,-_0x1a85e1._0x2d6c9d,-0x85))return _0xae0650[_0x59b8e3(-_0x1a85e1._0xff13c7,-_0x1a85e1._0x1a5005,-0x12e,-_0x1a85e1._0x48f4e0)]+=_0x284f5c[_0x59b8e3(0x1,-_0x1a85e1._0x4b59ed,-0xc3,-_0x1a85e1._0x2d8879)],[{'type':_0x59b8e3(-0x52,_0x1a85e1._0x299cb0,0x72,0x3b),'index':_0x523a03,'text':_0x284f5c[_0x22b394(-0x211,-0x1ca,-0x1bd,-_0x1a85e1._0x2f60e0)]}];if(_0x284f5c[_0x59b8e3(-0x12f,-_0x1a85e1._0x1f9ea7,-0xa9,-0x99)]===_0x22b394(-0x294,-_0x1a85e1._0x3cbb4d,-0x23d,-_0x1a85e1._0x23c41b)&&_0xae0650[_0x22b394(-_0x1a85e1._0x2f1192,-0x2a3,-0x1fd,-0x15c)]===_0x59b8e3(-_0x1a85e1._0x380611,-_0x1a85e1._0x3ec88b,-0x96,-_0x1a85e1._0x39ceda)&&typeof _0x284f5c['partial_json']===_0x22b394(-_0x1a85e1._0x45a537,-0xb6,-_0x1a85e1._0x2d6c9d,-_0x1a85e1._0x1586be))return _0xae0650[_0x59b8e3(_0x1a85e1._0x4d2a33,_0x1a85e1._0x13e306,0x117,_0x1a85e1._0x11dbe0)]==='{}'&&(_0xae0650[_0x22b394(-_0x1a85e1._0x5cc897,-_0x1a85e1._0x1657f1,-0xe2,-0xe5)]=''),_0xae0650['inputJson']+=_0x284f5c['partial_json'],[{'type':_0x22b394(-0x1d4,-_0x1a85e1._0x2528a2,-_0x1a85e1._0x512b57,-0x29e),'id':_0xae0650['id'],'index':_0x523a03,'inputDelta':_0x284f5c['partial_json']}];if(_0x284f5c[_0x22b394(-_0x1a85e1._0x3e3eeb,-_0x1a85e1._0x134659,-_0x1a85e1._0x1dfb40,-0x217)]===_0x59b8e3(0xb5,_0x1a85e1._0x5e2d87,-0x2d,_0x1a85e1._0x9a86e4)&&_0xae0650['kind']===_0x59b8e3(-_0x1a85e1._0x1e7f57,-_0x1a85e1._0xbedd1e,-0x13c,-0xa8)){const _0x4183e6=typeof _0x284f5c[_0x22b394(-0x20d,-_0x1a85e1._0x300bd8,-0x1e8,-_0x1a85e1._0x4c35df)]===_0x59b8e3(_0x1a85e1._0x16ab7a,-0x11,-0x78,_0x1a85e1._0x169ec4)?String(_0x284f5c[_0x22b394(-0x1c5,-0x243,-0x1e8,-_0x1a85e1._0x349bfd)]):'';if(_0x4183e6['length']>0x0){_0xae0650[_0x22b394(-_0x1a85e1._0x2c7f63,-0x1a3,-0x1e8,-_0x1a85e1._0x512b57)]+=_0x4183e6;if(isUserVisibleThinking(this[_0x59b8e3(-0x62,-0x48,0x102,_0x1a85e1._0x1d9ef3)]))return[{'type':'anthropic_thinking_delta','index':_0x523a03,'thinking':_0x4183e6}];}}if(_0x284f5c[_0x59b8e3(-0x15b,_0x1a85e1._0x3ce8ec,-0x2c,-0x99)]===_0x22b394(-0x1d9,-_0x1a85e1._0x54bade,-0x24f,-_0x1a85e1._0x23274d)&&_0xae0650[_0x22b394(-0x255,-0x1d1,-0x1fd,-0x193)]==='thinking'){const _0x374d17=typeof _0x284f5c[_0x59b8e3(-0x4d,-0xff,-0xd7,-_0x1a85e1._0x479559)]==='string'?String(_0x284f5c[_0x22b394(-_0x1a85e1._0x1fa611,-0x1e9,-_0x1a85e1._0xefbe07,-_0x1a85e1._0xaa64a)]):'';if(_0x374d17['length']>0x0){_0xae0650[_0x22b394(-0x103,-0x1f5,-0x18e,-0x119)]=_0x374d17;if(isUserVisibleThinking(this[_0x22b394(-_0x1a85e1._0x10e550,-0xb2,-_0x1a85e1._0x4ebfdb,-0x4e)]))return[{'type':_0x22b394(-0xba,-_0x1a85e1._0x15a6cb,-0xef,-0x7d),'index':_0x523a03,'signature':_0x374d17}];}}break;}case _0x22b394(-_0x1a85e1._0x1c0dd0,-_0x1a85e1._0x59a226,-_0x1a85e1._0x1a9d92,-_0x1a85e1._0x331844):{const _0xd29b42=_0x1feed7['delta'],_0x5f41f7=_0x1feed7[_0x22b394(-0x1d7,-0xd6,-0x11d,-0x14b)];this['outputTokens']=_0x5f41f7?.['output_tokens']??this[_0x22b394(-_0x1a85e1._0x4b70da,-0x1d5,-0x170,-_0x1a85e1._0x474744)],this['stopReason']=_0xd29b42?.[_0x22b394(-0x1af,-_0x1a85e1._0x5bc59a,-0x176,-_0x1a85e1._0x25974d)]===_0x59b8e3(-_0x1a85e1._0xbacd28,-_0x1a85e1._0x518020,-0x9d,-_0x1a85e1._0x6bb19e)?_0x59b8e3(-_0x1a85e1._0x2db67d,-_0x1a85e1._0x203803,-0xde,-0x102):_0x59b8e3(-_0x1a85e1._0x36192f,0x47,-_0x1a85e1._0x2b18ac,-0x6d);break;}case _0x59b8e3(-_0x1a85e1._0x355fe3,-_0x1a85e1._0x147852,-_0x1a85e1._0x296819,-0xd0):{const _0x2cb1f1=_0x1feed7[_0x22b394(-0x221,-_0x1a85e1._0x2471e3,-0x210,-_0x1a85e1._0x1d7bae)];throw new Error(_0x2cb1f1?.[_0x59b8e3(-0xfd,-_0x1a85e1._0x36082c,-0xe8,-0x72)]??_0x59b8e3(0x8c,-0xf,_0x1a85e1._0x2bbc1e,-0x14));}}return[];}[_0x55f0a4(-0x1e4,-0x18f,-0xeb,-0x1a8)](){const _0x24a519={_0x477022:0x279,_0x51fd7c:0x1e3,_0x9b2b16:0x223,_0x1d0ecd:0x23d,_0x8fda4f:0x319,_0xc0fdd2:0x3d7,_0x5b88c0:0x3af,_0x558549:0x38b,_0x319d44:0x357,_0x435b18:0x2b8,_0xe10fc4:0x1e4,_0x9dd0a1:0x238,_0x2af204:0x2c0,_0x4895b0:0x312,_0x5997f4:0x2ec,_0x3456af:0x2c3,_0x71157c:0x295,_0x520948:0x2eb,_0x478b1c:0x2f6,_0x2abfc3:0x360,_0x5e3224:0x3e4,_0x36a6fb:0x304,_0x1beee6:0x34e,_0x405c0d:0x2f3,_0x5f3ec6:0x3be,_0x3c7893:0x3cb,_0x5a8c42:0x453,_0x28d618:0x461,_0x30b0a7:0x4e7,_0x342b6e:0x412,_0x593daa:0x1a4,_0x19c63c:0x236,_0x10d2df:0x238,_0x3cdfbf:0x1e7,_0x52956e:0x457,_0x4a09c2:0x3c6,_0x516cfa:0x41b,_0x969087:0x3ce,_0x3c3e94:0x3d9,_0x236c80:0x427,_0x1f3fbb:0x3ad,_0x579f19:0x425,_0x5de1bd:0x396,_0x3d41aa:0x2f5,_0x92ad18:0x325,_0x28963f:0x30d,_0x28fa1a:0x358,_0x55b2a4:0x3fe,_0x1a1c51:0x34a,_0x30bab0:0x384},_0x4869d5={_0x405efa:0xee,_0x519b49:0x43c},_0x32b181=Array[_0x40399a(_0x24a519._0x477022,_0x24a519._0x51fd7c,_0x24a519._0x9b2b16,_0x24a519._0x1d0ecd)](this['blocks'][_0x1d20b3(_0x24a519._0x8fda4f,0x3ac,0x332,0x2fa)]())['sort']((_0x128d71,_0x3d4d94)=>_0x128d71[_0x40399a(0x283,0x3a3,0x325,0x379)]-_0x3d4d94[_0x1d20b3(0x36a,0x3f0,0x484,0x375)]);function _0x1d20b3(_0x4d54ca,_0x7c4abc,_0x21538d,_0x33d88d){return _0x2e041c(_0x4d54ca-_0x4869d5._0x405efa,_0x7c4abc-0x109,_0x7c4abc-_0x4869d5._0x519b49,_0x33d88d);}const _0x4b1861=[];for(const _0x1c8648 of _0x32b181){if(_0x1c8648[_0x1d20b3(0x36f,0x34b,_0x24a519._0xc0fdd2,0x2b7)]===_0x1d20b3(_0x24a519._0x5b88c0,_0x24a519._0x558549,0x371,_0x24a519._0x319d44)){_0x1c8648['text']['length']>0x0&&_0x4b1861[_0x40399a(_0x24a519._0x435b18,_0x24a519._0xe10fc4,_0x24a519._0x9dd0a1,0x2f1)]({'type':'text','text':_0x1c8648[_0x40399a(0x343,0x236,_0x24a519._0x2af204,0x30e)]});continue;}if(_0x1c8648[_0x40399a(0x229,_0x24a519._0x4895b0,0x280,_0x24a519._0x5997f4)]===_0x40399a(_0x24a519._0x3456af,0x2d0,_0x24a519._0x71157c,_0x24a519._0x520948)){_0x4b1861['push']({'type':_0x40399a(0x34c,0x1e6,0x295,0x1d3),'thinking':_0x1c8648[_0x1d20b3(_0x24a519._0x478b1c,_0x24a519._0x2abfc3,_0x24a519._0x5e3224,0x3af)],'signature':_0x1c8648[_0x1d20b3(_0x24a519._0x36a6fb,0x3ba,_0x24a519._0x1beee6,0x3b0)]});continue;}if(_0x1c8648['kind']===_0x40399a(0x2a4,0x2fd,_0x24a519._0x405c0d,0x3b3)){_0x4b1861['push']({'type':_0x1d20b3(0x384,_0x24a519._0x5f3ec6,0x44f,_0x24a519._0x3c7893),'data':_0x1c8648[_0x1d20b3(_0x24a519._0x5a8c42,_0x24a519._0x28d618,_0x24a519._0x30b0a7,_0x24a519._0x342b6e)]});continue;}_0x4b1861[_0x40399a(_0x24a519._0x593daa,_0x24a519._0x19c63c,_0x24a519._0x10d2df,_0x24a519._0x3cdfbf)]({'type':'tool_use','id':_0x1c8648['id'],'name':_0x1c8648[_0x1d20b3(0x4a4,_0x24a519._0x52956e,0x39d,0x4b9)],'input':parseToolInput(_0x1c8648[_0x1d20b3(_0x24a519._0x4a09c2,0x466,0x446,_0x24a519._0x516cfa)][_0x1d20b3(_0x24a519._0x969087,_0x24a519._0x3c3e94,_0x24a519._0x236c80,_0x24a519._0x1f3fbb)]>0x0?_0x1c8648['inputJson']:'{}')});}function _0x40399a(_0x5b7982,_0x347ca0,_0xc85d49,_0x15f607){return _0x55f0a4(_0x5b7982-0x39,_0x347ca0-0x11a,_0x347ca0,_0xc85d49-0x51e);}return parseAnthropicResponse({'id':this['messageId'],'type':_0x1d20b3(_0x24a519._0x579f19,_0x24a519._0x5de1bd,0x2de,0x2d9),'role':'assistant','content':_0x4b1861,'stop_reason':this['stopReason'],'stop_sequence':null,'usage':{'input_tokens':this['inputTokens'],'output_tokens':this[_0x40399a(_0x24a519._0x3d41aa,_0x24a519._0x92ad18,_0x24a519._0x28963f,_0x24a519._0x28fa1a)]}},this[_0x40399a(_0x24a519._0x55b2a4,_0x24a519._0x1a1c51,_0x24a519._0x30bab0,0x405)]);}};function createAnthropicSurfaces(){const _0x15d5dc={_0x1875a2:0x4f6,_0x938d38:0x438},_0x33be1e={_0x2f527b:0x92,_0x5ac260:0x20,_0x575ff5:0x634};function _0x3c964b(_0x539385,_0x1e873d,_0x3623e3,_0x57c39e){return _0x55f0a4(_0x539385-_0x33be1e._0x2f527b,_0x1e873d-_0x33be1e._0x5ac260,_0x57c39e,_0x3623e3-_0x33be1e._0x575ff5);}return[{'id':ANTHROPIC_MESSAGES_SURFACE,'transport':_0x3c964b(0x3cf,_0x15d5dc._0x1875a2,_0x15d5dc._0x938d38,0x456),'createRequest'(_0x1eece1){return createAnthropicRequest(_0x1eece1,![]);},'parseResponse'(_0x1946e9,_0x279c5b){return parseAnthropicResponse(_0x1946e9,_0x279c5b);}},{'id':ANTHROPIC_MESSAGES_STREAM_SURFACE,'transport':'http-sse','createRequest'(_0x14a656){return createAnthropicRequest(_0x14a656,!![]);},'createStreamParser'(_0x354c67){return new AnthropicMessagesStreamParser(_0x354c67);}}];}var StaticModelSurfaceRouter=class{[_0x2e041c(-0x123,-0xa1,-0xf7,-0x135)];[_0x2e041c(-0xa4,-0x6d,-0xe,0x79)];constructor(_0xf8ca03){const _0x49cf8c={_0x459ae9:0x17,_0x2ccaa8:0x24a,_0x300a7c:0x25c,_0x4e530c:0x223,_0xcebee9:0x1da,_0x352613:0x28b},_0x41fc7d={_0x454dbc:0x11b,_0x506f8e:0x2e0},_0x523ca9={_0x1cd92b:0x16e,_0x40d44d:0x1ec,_0x43b018:0x1d5};function _0x4f7758(_0x22d175,_0x2d5b83,_0x59a27c,_0x3ee757){return _0x55f0a4(_0x22d175-_0x523ca9._0x1cd92b,_0x2d5b83-_0x523ca9._0x40d44d,_0x3ee757,_0x59a27c-_0x523ca9._0x43b018);}this[_0x4f7758(-0xe7,-0x183,-0xcf,-_0x49cf8c._0x459ae9)]=_0xf8ca03[_0x94df6e(_0x49cf8c._0x2ccaa8,0x29c,_0x49cf8c._0x300a7c,_0x49cf8c._0x4e530c)];function _0x94df6e(_0x26c4fd,_0x340c3f,_0x3f0b58,_0x3bcbc7){return _0x2e041c(_0x26c4fd-0x155,_0x340c3f-_0x41fc7d._0x454dbc,_0x3bcbc7-_0x41fc7d._0x506f8e,_0x3f0b58);}this['streamSurface']=_0xf8ca03[_0x94df6e(0x312,0x334,_0x49cf8c._0xcebee9,_0x49cf8c._0x352613)];}[_0x2e041c(-0x4e,-0x50,-0x25,0x28)](_0x2d633e,_0x272cbb){const _0x4e2a5b={_0x49c30e:0x3aa,_0x1729f9:0x367},_0x1477e7={_0x20710f:0x28,_0x507153:0xa0},_0x4a1ee1={_0x15d37a:0x139,_0xb6653d:0x2d7};function _0x50dba4(_0x2f0f13,_0x7942f,_0x160c92,_0x33c7dd){return _0x2e041c(_0x2f0f13-_0x4a1ee1._0x15d37a,_0x7942f-0x99,_0x2f0f13-_0x4a1ee1._0xb6653d,_0x33c7dd);}function _0x1e4790(_0x2687e1,_0xff4e10,_0x143053,_0x587f4c){return _0x2e041c(_0x2687e1-_0x1477e7._0x20710f,_0xff4e10-_0x1477e7._0x507153,_0x143053-0x46c,_0xff4e10);}return _0x272cbb[_0x1e4790(_0x4e2a5b._0x49c30e,0x31f,0x353,_0x4e2a5b._0x1729f9)]===_0x50dba4(0x282,0x1e6,0x321,0x1cc)?this['streamSurface']:this['completeSurface'];}};function trimTrailingSlashes(_0xa418bd){const _0x17411b={_0x5cfba2:0x4dd,_0x2f77ea:0x467},_0x35a71f={_0x2a6665:0xe3,_0x2dda48:0x1f2,_0x7b068:0x6da};function _0x1197b2(_0x37e0f8,_0x183321,_0x119273,_0x4d4946){return _0x55f0a4(_0x37e0f8-_0x35a71f._0x2a6665,_0x183321-_0x35a71f._0x2dda48,_0x37e0f8,_0x183321-_0x35a71f._0x7b068);}return _0xa418bd[_0x1197b2(0x49c,_0x17411b._0x5cfba2,_0x17411b._0x2f77ea,0x580)](/\/+$/,'');}function resolveApiCredential(_0x35301a,_0x1a711){const _0x55384b={_0x1bb598:0x18f,_0x156c90:0x7d,_0x16edbd:0x45,_0x3cfd79:0x1ec,_0x25f18d:0x20c},_0x252564={_0x156a6e:0x136,_0x4cba13:0x120,_0x2fd142:0x0},_0x16f18c={_0x5a77a6:0x11f};function _0x2e613e(_0x5273e4,_0x5620d6,_0x3bbde2,_0x4c9743){return _0x2e041c(_0x5273e4-0x18a,_0x5620d6-_0x16f18c._0x5a77a6,_0x3bbde2-0xe5,_0x5620d6);}if(_0x1a711?.[_0x51b74f(-0x285,-0x277,-0x215,-_0x55384b._0x1bb598)])return _0x1a711[_0x2e613e(0xc9,-0x20,_0x55384b._0x156c90,_0x55384b._0x16edbd)];if(!_0x35301a)return void 0x0;function _0x51b74f(_0x3ec046,_0x97ddc2,_0x27a65d,_0x4dbe66){return _0x55f0a4(_0x3ec046-_0x252564._0x156a6e,_0x97ddc2-_0x252564._0x4cba13,_0x4dbe66,_0x27a65d-_0x252564._0x2fd142);}return{'kind':_0x51b74f(-0x193,-_0x55384b._0x3cfd79,-0x1ae,-_0x55384b._0x25f18d),'value':_0x35301a};}function resolveSessionBaseUrl(_0x42d755,_0x1b8955){const _0x5aafad={_0x1d452b:0x31c,_0x20c8fa:0x3c2},_0x177d41={_0x3fad28:0x1df};function _0x1c7ed7(_0x5c4ba4,_0x868ad8,_0x438929,_0x1d859d){return _0x55f0a4(_0x5c4ba4-0x1c,_0x868ad8-_0x177d41._0x3fad28,_0x1d859d,_0x5c4ba4-0x50d);}return trimTrailingSlashes(_0x1b8955?.[_0x1c7ed7(0x302,0x357,_0x5aafad._0x1d452b,_0x5aafad._0x20c8fa)]?.['api']??_0x42d755);}function toErrorMessage(_0x1c9785){const _0x4a5a55={_0x28b5ba:0xc8,_0x1a4cc1:0xf4,_0x56f200:0x44,_0x32c5f8:0x45b,_0x3dd702:0x496,_0x142462:0x137,_0x1564dd:0xf4,_0x21eb16:0x408},_0x21ff3e={_0x32bc65:0x1a8};function _0x2b8a86(_0x5e0718,_0x40b731,_0x343ebf,_0x53b6fa){return _0x2e041c(_0x5e0718-0xb,_0x40b731-0x16e,_0x40b731-0x19a,_0x343ebf);}if(_0x1c9785 instanceof Error&&_0x1c9785[_0x2b8a86(_0x4a5a55._0x28b5ba,_0x4a5a55._0x1a4cc1,_0x4a5a55._0x56f200,0x11d)][_0x53d954(_0x4a5a55._0x32c5f8,0x424,0x474,_0x4a5a55._0x3dd702)]>0x0)return _0x1c9785[_0x2b8a86(_0x4a5a55._0x142462,_0x4a5a55._0x1564dd,0x117,0x40)];function _0x53d954(_0x1022fa,_0x55dd87,_0x52e377,_0x3fabfe){return _0x55f0a4(_0x1022fa-_0x21ff3e._0x32bc65,_0x55dd87-0x10d,_0x52e377,_0x55dd87-0x634);}return _0x53d954(_0x4a5a55._0x21eb16,0x467,0x479,0x4a7);}function createDefaultWebSocketFactory(){return({headers:_0x201b9a,url:_0x32c990})=>{const _0x539a04=globalThis['WebSocket'];return new _0x539a04(_0x32c990,{'headers':_0x201b9a,'protocols':[]});};}async function*iterateSseEvents(_0x135c51,_0x574cd6){const _0x8245dc={_0x2a9f5c:0x7d,_0x555125:0x43,_0x25d62c:0x66,_0x2a1053:0xea,_0x378f09:0x291,_0x4dd1b0:0x1f7,_0x415d32:0x177,_0x3c5ee3:0xe9,_0xd401ee:0xf,_0x4184c5:0x35,_0x4e5d61:0x26,_0x1cf69c:0x2f3,_0xf71c1d:0xa1,_0x5dccdc:0x3e,_0x350b70:0x80,_0x475455:0x26,_0x545503:0xa1,_0x4dd080:0xf8,_0x46c919:0x2a,_0x2dd083:0x1d6,_0x2cac09:0x2e1,_0x42df64:0x25c,_0x158ff7:0x1ca},_0x86f010={_0x16a0f5:0x215,_0x44ab9e:0x200,_0x4cefa0:0x178},_0x5ba638={_0x27e0dd:0xd8,_0x56ada9:0x238},_0x526e2c={_0xb5ef1b:0x131,_0x454301:0x10c,_0x13df63:0x1f9};function _0x7ce4b4(_0x49f1e0,_0x3e4038,_0x343d7b,_0x5b38f1){return _0x2e041c(_0x49f1e0-_0x526e2c._0xb5ef1b,_0x3e4038-_0x526e2c._0x454301,_0x343d7b- -_0x526e2c._0x13df63,_0x5b38f1);}const _0x4bc79f=_0x135c51[_0x4d1f3f(-_0x8245dc._0x2a9f5c,-_0x8245dc._0x555125,_0x8245dc._0x25d62c,-_0x8245dc._0x2a1053)]?.[_0x7ce4b4(-0x131,-0x206,-0x1eb,-_0x8245dc._0x378f09)]();if(!_0x4bc79f)return;function _0x4d1f3f(_0xb2a5e1,_0xf21730,_0x295c40,_0x4f91d7){return _0x55f0a4(_0xb2a5e1-_0x5ba638._0x27e0dd,_0xf21730-0x1c9,_0xb2a5e1,_0xf21730-_0x5ba638._0x56ada9);}const _0x52bfb0=new TextDecoder(_0x7ce4b4(-0x1bc,-0x1d4,-_0x8245dc._0x4dd1b0,-_0x8245dc._0x415d32));let _0x17c918='';const _0x26251c=addAbortListener(_0x574cd6,()=>{const _0x47ae74={_0x1b846e:0x1a6,_0x157369:0x132,_0x43cec1:0x41d};function _0x1c5241(_0x8dae0f,_0x3bc6a1,_0x273e30,_0x123ce5){return _0x7ce4b4(_0x8dae0f-_0x47ae74._0x1b846e,_0x3bc6a1-_0x47ae74._0x157369,_0x123ce5-_0x47ae74._0x43cec1,_0x273e30);}void _0x4bc79f['cancel'](toAbortError(_0x574cd6?.[_0x1c5241(_0x86f010._0x16a0f5,_0x86f010._0x44ab9e,0xc2,_0x86f010._0x4cefa0)]))['catch'](()=>{});});try{while(!![]){throwIfAborted(_0x574cd6);const {value:_0x5b4518,done:_0x4097e7}=await _0x4bc79f[_0x4d1f3f(-0x39,-0x86,-_0x8245dc._0x3c5ee3,_0x8245dc._0xd401ee)]();throwIfAborted(_0x574cd6);if(_0x4097e7)break;_0x17c918+=_0x52bfb0['decode'](_0x5b4518,{'stream':!![]});while(!![]){const _0x155c30=_0x17c918[_0x4d1f3f(-0x5c,-_0x8245dc._0x4184c5,_0x8245dc._0x4e5d61,-0xf2)]('\x0a\x0a');if(_0x155c30===-0x1)break;const _0x2c4940=_0x17c918['slice'](0x0,_0x155c30);_0x17c918=_0x17c918[_0x7ce4b4(-0x270,-0x313,-_0x8245dc._0x1cf69c,-0x2ee)](_0x155c30+0x2),_0x2c4940[_0x4d1f3f(-0x138,-_0x8245dc._0xf71c1d,-0x10c,-_0x8245dc._0x5dccdc)]()['length']>0x0&&(yield _0x2c4940);}}_0x17c918+=_0x52bfb0[_0x4d1f3f(_0x8245dc._0x350b70,-0x28,-_0x8245dc._0x475455,-0xaa)](),throwIfAborted(_0x574cd6),_0x17c918[_0x4d1f3f(0xe,-_0x8245dc._0x545503,-_0x8245dc._0x4dd080,-_0x8245dc._0x46c919)]()[_0x7ce4b4(-_0x8245dc._0x2dd083,-_0x8245dc._0x2cac09,-_0x8245dc._0x42df64,-_0x8245dc._0x158ff7)]>0x0&&(yield _0x17c918);}finally{_0x26251c();}}async function waitForWebSocketOpen(_0x1baa98,_0x417cb5){const _0x4fb753={_0x318a33:0x19b,_0xf222e8:0x6a,_0x1a9f36:0xfe,_0x61177a:0x8d},_0x29e5d3={_0x1cdba9:0x6d,_0x581de5:0xca,_0x419417:0x40,_0x59cb25:0x7a,_0x6604f3:0x9,_0x25d916:0x74,_0x883f8b:0x80,_0x50c3e8:0x5a,_0x232996:0x9f,_0x2af315:0xcb,_0x2c4819:0x3e,_0x2fcca1:0x9,_0x1e5a08:0xab,_0x2b2f53:0x31,_0x249a6f:0xc5,_0x3f82a1:0x134,_0x474641:0x1d3,_0x5dfffd:0x14f,_0x2a56f3:0xa3},_0x1882dc={_0x449172:0xff,_0x4bf69e:0x7d},_0x2e95f7={_0x576faf:0x293,_0xbe5c81:0x29b,_0x4c1bb9:0x1fd,_0x5a3ad7:0x210,_0x446111:0x297,_0x244442:0x243,_0x1f1a04:0x2de},_0x760487={_0x54a856:0xdb,_0xddb752:0x22c},_0x220389={_0x589174:0x4a};if(_0x1baa98[_0x12fb8f(-_0x4fb753._0x318a33,-0x19a,-_0x4fb753._0xf222e8,-_0x4fb753._0x1a9f36)]===WebSocket[_0x545d70(0x7c,-0x29,-0xe2,_0x4fb753._0x61177a)]){throwIfAborted(_0x417cb5);return;}throwIfAborted(_0x417cb5);function _0x12fb8f(_0x4159d9,_0x302cf7,_0x3427cd,_0x5c204c){return _0x2e041c(_0x4159d9-0x1c7,_0x302cf7-_0x220389._0x589174,_0x5c204c- -0x6b,_0x302cf7);}function _0x545d70(_0x3f3367,_0x24df15,_0x1cf389,_0x2e7ea1){return _0x55f0a4(_0x3f3367-0x7c,_0x24df15-_0x760487._0x54a856,_0x3f3367,_0x24df15-_0x760487._0xddb752);}await new Promise((_0x200f0c,_0x9be043)=>{const _0x527f3c={_0x12115a:0x358,_0x10101c:0x255,_0x153c99:0x3a1,_0x240cd1:0x456,_0x4ddf4d:0x487,_0x147cc5:0x3c7,_0x5328fc:0x260,_0x28e742:0x3ae},_0x391eb5={_0x22176e:0x290},_0x2694bb={_0x10477f:0x85,_0x51147d:0x1d0},_0xeea006={_0x3159f4:0x3ba},_0x4df673={_0x1e798a:0x51},_0x17f825={_0x529398:0xd9,_0x3280cc:0x1e},_0xe16172={_0x4f5a4b:0x226},_0x1fe956=()=>{_0x41dc90(),_0x200f0c();},_0x5a46b3=_0x5e2b34=>{function _0x5747c1(_0x58b326,_0x586d0f,_0x1687cf,_0x507330){return _0x3920(_0x507330- -_0xe16172._0x4f5a4b,_0x586d0f);}_0x41dc90(),_0x9be043(new Error(_0x5e2b34['message']||_0x5747c1(0x3e,-_0x17f825._0x529398,_0x17f825._0x3280cc,-0x77)));},_0x330263=_0x58df8a=>{const _0x11d6e3={_0x5ac48f:0x174};_0x41dc90();const _0x308240=_0x58df8a;function _0x41c608(_0x29cad4,_0x58860e,_0x38c981,_0xe5be9b){return _0x3920(_0x38c981- -_0x11d6e3._0x5ac48f,_0x29cad4);}_0x9be043(new Error(_0x308240[_0x41c608(-0x50,-0x3f,-_0x4df673._0x1e798a,0x2d)]||'WebSocket\x20closed\x20before\x20opening'));},_0x23da68=()=>{function _0x7fbc59(_0x48f72f,_0x5204c7,_0x4c308c,_0x42a00c){return _0x3920(_0x48f72f- -0x12,_0x42a00c);}function _0x22106d(_0x4188f0,_0xc60a12,_0x2d06f3,_0x14655b){return _0x3920(_0x4188f0- -_0xeea006._0x3159f4,_0x14655b);}_0x41dc90(),_0x1baa98['readyState']===WebSocket[_0x22106d(-_0x2e95f7._0x576faf,-_0x2e95f7._0xbe5c81,-0x21a,-0x1f5)]&&_0x1baa98[_0x22106d(-0x1f4,-_0x2e95f7._0x4c1bb9,-_0x2e95f7._0x5a3ad7,-0x1cd)](0x3e8,'aborted'),_0x9be043(toAbortError(_0x417cb5?.[_0x22106d(-_0x2e95f7._0x446111,-_0x2e95f7._0x244442,-0x29b,-_0x2e95f7._0x1f1a04)]));};function _0x42d78c(_0x451855,_0x9f493a,_0x3fa683,_0x4228e8){return _0x12fb8f(_0x451855-_0x2694bb._0x10477f,_0x3fa683,_0x3fa683-0x8c,_0x4228e8-_0x2694bb._0x51147d);}const _0x41dc90=()=>{_0x1baa98['removeEventListener'](_0x2d59df(0x2d5,_0x527f3c._0x12115a,0x2ea,0x3ef),_0x1fe956),_0x1baa98[_0x2d59df(0x50f,0x487,0x464,0x43b)](_0x1e652d(0x2c9,0x349,0x23a,_0x527f3c._0x10101c),_0x5a46b3),_0x1baa98['removeEventListener'](_0x2d59df(_0x527f3c._0x153c99,_0x527f3c._0x240cd1,0x44e,0x4d3),_0x330263);function _0x1e652d(_0x3f9d92,_0x1a32f9,_0xc01f06,_0x5293d2){return _0x3920(_0x3f9d92-0x1fe,_0x5293d2);}function _0x2d59df(_0x369d48,_0x566d7e,_0x509cb0,_0x5e2f72){return _0x3920(_0x566d7e-_0x391eb5._0x22176e,_0x5e2f72);}_0x417cb5?.[_0x2d59df(0x4a4,_0x527f3c._0x4ddf4d,0x500,_0x527f3c._0x147cc5)](_0x2d59df(0x3a9,0x319,_0x527f3c._0x5328fc,_0x527f3c._0x28e742),_0x23da68);};_0x1baa98[_0x2fd185(-_0x29e5d3._0x1cdba9,-_0x29e5d3._0x581de5,-0x9,-0x61)](_0x42d78c(_0x29e5d3._0x419417,_0x29e5d3._0x59cb25,-0x50,0x5e),_0x1fe956);function _0x2fd185(_0x14559f,_0x363c30,_0x557073,_0x38b958){return _0x12fb8f(_0x14559f-_0x1882dc._0x449172,_0x557073,_0x557073-0x1a3,_0x14559f-_0x1882dc._0x4bf69e);}_0x1baa98[_0x2fd185(-_0x29e5d3._0x1cdba9,-_0x29e5d3._0x6604f3,-0x54,-_0x29e5d3._0x25d916)](_0x42d78c(0x93,_0x29e5d3._0x883f8b,_0x29e5d3._0x50c3e8,0x61),_0x5a46b3),_0x1baa98[_0x2fd185(-0x6d,-_0x29e5d3._0x232996,-_0x29e5d3._0x2af315,_0x29e5d3._0x2c4819)](_0x2fd185(_0x29e5d3._0x2fcca1,-0x1c,_0x29e5d3._0x1e5a08,0xbe),_0x330263),_0x417cb5?.[_0x2fd185(-0x6d,_0x29e5d3._0x2b2f53,-_0x29e5d3._0x249a6f,-0x9c)](_0x2fd185(-_0x29e5d3._0x3f82a1,-_0x29e5d3._0x474641,-_0x29e5d3._0x5dfffd,-_0x29e5d3._0x2a56f3),_0x23da68,{'once':!![]});});}function iterateWebSocketMessages(_0x215ea7,_0xb9b646){const _0x3c3a89={_0x1121be:0x89,_0x4b32ac:0xa6,_0x5e9fc6:0x49b,_0x28877c:0x465,_0x1ff0c1:0x3bc,_0x4a1b10:0x89,_0x1b3f2f:0x1d,_0x4acce6:0x548,_0x5e1c60:0x57f,_0x45b22a:0x470},_0xa4b470={_0x411e0a:0x11b,_0xe15c92:0x60,_0x5537f1:0x37,_0x3aebaa:0x2b1,_0x1004de:0x1e3,_0xf2f9db:0x2ff,_0x51816a:0x131,_0x1110e3:0x185},_0x53affc={_0x2949db:0xb6,_0x197992:0x7a},_0x3871f5={_0x858704:0x58,_0x4a2455:0xbd},_0x20c7a1={_0xee6360:0x7c,_0x1db8f1:0x3d,_0x531d95:0xbc,_0x4ef088:0x37f,_0x2f1efe:0x287,_0x43fc47:0x78,_0x419593:0x9a,_0x10968e:0x34,_0x234f48:0x44,_0x16137a:0x398,_0x46c5d9:0x424,_0x24b261:0x2ee,_0x28717b:0x3c7,_0x2f0e4e:0x2d},_0x4c9d79={_0xb560e3:0xb9,_0x23ea2e:0x176,_0x4f4bad:0xd5,_0x186871:0xef,_0x19b7a9:0x136,_0x2b7cd2:0x16,_0x382f2e:0x8a},_0x19f54c={_0x189356:0x337,_0x158cc9:0x29a,_0x1a8000:0x306},_0x3cce65={_0x57e77d:0x406,_0x43d477:0x394,_0x4abdb8:0x394,_0x46afc7:0x461,_0x3a5c8b:0x3a0,_0x2f7fbf:0x5c,_0x3736b3:0x16,_0x21dfd6:0x81,_0x269580:0x50c},_0x532d28={_0x4942a7:0xea,_0x5ac453:0x1b2,_0x2fdc81:0x551},_0x53fffb=[];let _0x55c275=![],_0x586d57;function _0xa4504a(_0x41846e,_0x49eb7a,_0x51a2d3,_0x2830d4){return _0x2e041c(_0x41846e-_0x532d28._0x4942a7,_0x49eb7a-_0x532d28._0x5ac453,_0x41846e-_0x532d28._0x2fdc81,_0x2830d4);}let _0x378515;const _0x339fcf=_0x5b9056=>{function _0x320936(_0x38bf0e,_0x1061f6,_0x8eb093,_0x31813f){return _0x3920(_0x8eb093-0x2fe,_0x31813f);}function _0x52d954(_0x56bf9a,_0x479602,_0x2502d7,_0x2d9a4d){return _0x3920(_0x479602- -0x1de,_0x56bf9a);}const _0x1b5def=_0x5b9056;try{_0x53fffb[_0x320936(0x3e1,_0x3cce65._0x57e77d,_0x3cce65._0x43d477,_0x3cce65._0x4abdb8)](JSON[_0x320936(0x434,0x4f9,_0x3cce65._0x46afc7,_0x3cce65._0x3a5c8b)](String(_0x1b5def[_0x52d954(-_0x3cce65._0x2f7fbf,_0x3cce65._0x3736b3,-0x5c,-_0x3cce65._0x21dfd6)]))),_0x378515?.(),_0x378515=void 0x0;}catch(_0x3b4e46){_0x586d57=new Error(_0x320936(0x3c2,_0x3cce65._0x269580,0x44d,0x48f)+toErrorMessage(_0x3b4e46)),_0x378515?.(),_0x378515=void 0x0;}},_0x33afd6=_0x3d507e=>{const _0x352bd0={_0xa8fc96:0x157};function _0x16e1f4(_0x78fea9,_0x24b31b,_0x1f3d2f,_0x1c62d7){return _0x3920(_0x1c62d7-0x3c1,_0x1f3d2f);}const _0x259cac=_0x3d507e;_0x586d57=new Error(_0x259cac[_0x5d8b2a(_0x19f54c._0x189356,0x1cc,_0x19f54c._0x158cc9,0x280)]||_0x5d8b2a(0x37f,0x2e3,0x30d,_0x19f54c._0x1a8000));function _0x5d8b2a(_0x5d5a8f,_0x1a4a08,_0x6a43aa,_0x517869){return _0x3920(_0x517869-_0x352bd0._0xa8fc96,_0x6a43aa);}_0x378515?.(),_0x378515=void 0x0;},_0x2841e2=_0x36f3db=>{const _0x584f22=_0x36f3db;!_0x55c275&&_0x584f22[_0x401353(-_0x4c9d79._0xb560e3,-_0x4c9d79._0x23ea2e,-_0x4c9d79._0x4f4bad,-_0x4c9d79._0x186871)]!==0x3e8&&!_0x586d57&&(_0x586d57=new Error(_0x584f22[_0x401353(-0xf9,-0x129,-0x8d,-0x1e0)]||_0x547db8(0xff,0xc0,_0x4c9d79._0x19b7a9,0x132)+_0x584f22[_0x547db8(_0x4c9d79._0x2b7cd2,0x7e,_0x4c9d79._0x382f2e,0xb4)]));_0x55c275=!![],_0x378515?.();function _0x401353(_0x1b5d0f,_0x1e7b33,_0x1e4a51,_0x5c93ef){return _0x3920(_0x1e7b33- -0x24c,_0x1b5d0f);}function _0x547db8(_0x25befa,_0x4ed7cd,_0x501a0e,_0x147973){return _0x3920(_0x25befa- -0xc0,_0x501a0e);}_0x378515=void 0x0;},_0x5bb33b=addAbortListener(_0xb9b646,()=>{function _0x42077a(_0x9f1e34,_0xfd3d9,_0x4bc628,_0x5059cc){return _0x3920(_0x9f1e34- -0x19f,_0x4bc628);}_0x586d57=toAbortError(_0xb9b646?.[_0x42077a(-_0x20c7a1._0xee6360,-0x5c,-_0x20c7a1._0x1db8f1,-_0x20c7a1._0x531d95)]);function _0x16c005(_0x174bad,_0x292cec,_0x321363,_0x384398){return _0x3920(_0x174bad-0x1d2,_0x292cec);}_0x215ea7[_0x16c005(0x30e,0x264,_0x20c7a1._0x4ef088,_0x20c7a1._0x2f1efe)]===WebSocket[_0x42077a(-_0x20c7a1._0x43fc47,-_0x20c7a1._0x419593,-_0x20c7a1._0x10968e,-_0x20c7a1._0x234f48)]&&_0x215ea7[_0x16c005(_0x20c7a1._0x16137a,_0x20c7a1._0x46c5d9,_0x20c7a1._0x24b261,_0x20c7a1._0x28717b)](0x3e8,_0x42077a(_0x20c7a1._0x2f0e4e,0x3c,-0x2,0x96)),_0x378515?.(),_0x378515=void 0x0;});_0x215ea7[_0x1e92ca(_0x3c3a89._0x1121be,0xe0,0x4c,0xb2)](_0x1e92ca(0x62,_0x3c3a89._0x4b32ac,0x61,0xaf),_0x339fcf),_0x215ea7['addEventListener'](_0xa4504a(0x44d,_0x3c3a89._0x5e9fc6,_0x3c3a89._0x28877c,_0x3c3a89._0x1ff0c1),_0x33afd6);function _0x1e92ca(_0x1b0e73,_0x5b5f71,_0x2c03c5,_0x1b429d){return _0x55f0a4(_0x1b0e73-_0x3871f5._0x858704,_0x5b5f71-_0x3871f5._0x4a2455,_0x1b429d,_0x1b0e73-0x2b5);}return _0x215ea7[_0x1e92ca(_0x3c3a89._0x4a1b10,0x98,0x42,_0x3c3a89._0x1b3f2f)](_0xa4504a(_0x3c3a89._0x4acce6,_0x3c3a89._0x5e1c60,0x4bf,0x54c),_0x2841e2),{async*[Symbol[_0xa4504a(0x43b,0x4a7,_0x3c3a89._0x45b22a,0x409)]](){const _0x54683e={_0x1263cd:0x76};function _0x59fd6d(_0x340806,_0x4845e3,_0x427431,_0x49dc69){return _0x1e92ca(_0x340806-_0x54683e._0x1263cd,_0x4845e3-0x1d8,_0x427431-0xf5,_0x427431);}function _0x30c523(_0x8d1cf0,_0x21381e,_0x2a5f9a,_0x647da7){return _0x1e92ca(_0x21381e-0x181,_0x21381e-_0x53affc._0x2949db,_0x2a5f9a-_0x53affc._0x197992,_0x8d1cf0);}try{while(!![]){if(_0x586d57)throw _0x586d57;if(_0x53fffb[_0x59fd6d(_0xa4b470._0x411e0a,_0xa4b470._0xe15c92,0x1be,0x164)]>0x0){yield _0x53fffb[_0x59fd6d(0xe9,0xe9,0x143,_0xa4b470._0x5537f1)]();continue;}if(_0x55c275)break;await new Promise(_0x49381f=>{_0x378515=_0x49381f;});}}finally{_0x215ea7[_0x30c523(0x328,_0xa4b470._0x3aebaa,0x2f4,0x2c0)](_0x30c523(0x259,_0xa4b470._0x1004de,0x15c,0x25b),_0x339fcf),_0x215ea7[_0x30c523(_0xa4b470._0xf2f9db,0x2b1,0x30b,0x35b)](_0x30c523(_0xa4b470._0x51816a,0x185,0x1db,0x1c0),_0x33afd6),_0x215ea7['removeEventListener'](_0x59fd6d(0x175,0xf8,0x1df,_0xa4b470._0x1110e3),_0x2841e2),_0x5bb33b();}}};}function toWebSocketUrl(_0x129f9e,_0x5aa104){const _0x2c581c={_0x430b35:0x53,_0x1a39ce:0x113,_0x348ed9:0x5f,_0x5ab282:0x126,_0x412933:0xc5,_0xd60830:0x1aa,_0x49a9f6:0x41,_0x2c11a3:0xf8},_0x2b2d8e={_0xbefe77:0x114},_0x3951e3={_0x247013:0x17f,_0x3b140c:0x31a};function _0x4df4b3(_0xb112bb,_0x4a24a3,_0x220296,_0x179f47){return _0x55f0a4(_0xb112bb-0x144,_0x4a24a3-_0x3951e3._0x247013,_0xb112bb,_0x179f47-_0x3951e3._0x3b140c);}const _0x5e2185=new URL(_0x5aa104,_0x129f9e);function _0x129b9f(_0x5e8752,_0x2c2cd9,_0x52feb2,_0x1bd245){return _0x2e041c(_0x5e8752-_0x2b2d8e._0xbefe77,_0x2c2cd9-0x128,_0x52feb2-0x1d8,_0x5e8752);}return _0x5e2185['protocol']=_0x5e2185['protocol']===_0x129b9f(0x8b,_0x2c581c._0x430b35,_0x2c581c._0x1a39ce,_0x2c581c._0x348ed9)?'wss:':_0x129b9f(_0x2c581c._0x5ab282,0x179,_0x2c581c._0x412933,0x150),_0x5e2185[_0x129b9f(_0x2c581c._0xd60830,_0x2c581c._0x49a9f6,_0x2c581c._0x2c11a3,0x45)]();}var ProviderSessionManager=class{[_0x55f0a4(-0x240,-0x220,-0x281,-0x28a)];[_0x55f0a4(-0x213,-0x1e7,-0x25c,-0x1e9)];constructor(_0x3d962f){const _0x2dd529={_0x36883f:0x120,_0x51647e:0x175,_0x15ea74:0x5e},_0x5441be={_0x5aaf03:0x1c,_0x1ff360:0x1dc};function _0x27b9ce(_0x3723b2,_0x57a31f,_0x153a04,_0x3cd0be){return _0x2e041c(_0x3723b2-0x1b2,_0x57a31f-_0x5441be._0x5aaf03,_0x3cd0be-_0x5441be._0x1ff360,_0x3723b2);}this[_0x27b9ce(_0x2dd529._0x36883f,_0x2dd529._0x51647e,_0x2dd529._0x15ea74,0xff)]=_0x3d962f;}async[_0x2e041c(-0x197,-0x1f2,-0x14b,-0xc8)](_0x1c60d3){const _0x2db970={_0x1c2da9:0x35c,_0x340823:0x42,_0x3352fe:0xcd,_0x205925:0x58},_0xa68abf={_0x113b97:0x4e9};function _0x57d26f(_0x51082a,_0x2b4706,_0x4221d2,_0x27428e){return _0x2e041c(_0x51082a-0x17f,_0x2b4706-0xfc,_0x51082a-0x109,_0x2b4706);}!this['cached']&&(this['cached']=this[_0x36587f(_0x2db970._0x1c2da9,0x40c,0x429,0x393)][_0x57d26f(-_0x2db970._0x340823,0x0,-0x102,-0x24)](_0x1c60d3));function _0x36587f(_0x49d3d5,_0x348fee,_0x4b2ca3,_0x40c4df){return _0x2e041c(_0x49d3d5-0xe7,_0x348fee-0x155,_0x348fee-_0xa68abf._0x113b97,_0x49d3d5);}return structuredClone(await this[_0x57d26f(_0x2db970._0x3352fe,0xcf,_0x2db970._0x205925,0x78)]);}[_0x2e041c(-0x42,-0x29,-0xbe,-0x4a)](){this['cached']=void 0x0;}};function _0xb3ca(){const _0x364397=['igrPzcbUB3qGChjVDMLKzsbHBIbivfrqihbHDgG','r2L0shvItw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5lcbHy2nLC3nuB2TLBIWGB3iGChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','l2nOyxqVy29TCgXLDgLVBNm','Bw9Kzq','mtGZnJK0mKnjsKzcva','C3vTBwfYAxPLza','yxn5BMnjDgvYyxrVCG','y2fSBf9Pza','qw50AhjVCgLJtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','D3m6','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBLn0yxrL','CMvHza','y29UDgvUDf9IBg9JA19KzwX0yq','B2jQzwn0','DNnJB2rLlZeUmta2lJe','yNvPBgrszxnWB25ZzxntB2nRzxrfDMvUDa','B3v0Chv0','zw5HyMXLza','CMvZB2X2zunYzwrLBNrPywW','Ahr0Chm6lY9HCgKUyw50AhjVCgLJlMnVBq','CMvZCg9UC2vZugf0Aa','B3bLBG','t3bLBKfPuMvZCg9UC2vZu3rYzwfTrxjYB3i','D3nZoG','zxjYB3i','y3jLyxrLtwLZC2LUz0nYzwrLBNrPywXfCNjVCG','C3rYzwfTshr0Cfn1CMzHy2u','zg9Uzq','yxbP','Bw9KzwW','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBKTLEq','CMvZCg9UC2vtB2nRzxrtDhjLyw0','C3LZDgvT','C3rHDhvZ','C2XPy2u','y29Kzq','CMvZCg9UC2uUy3jLyxrL','y29TCgXLDgvtDxjMywnL','BgLTAxrZ','DxnLCG','CMvZCg9UC2uUB3v0Chv0x3rLEhqUzgvSDge','w0rptKvD','zMLUAxnOx3jLyxnVBG','A2LUza','C3vTBwfYEv9PBMrLEa','z2v0u3vYzMfJzq','zMLSDgvY','DxnLC1jLC3bVBNnLC0fWAq','ANnVBG','Dg9VBenHBgXpCMrLCG','z2v0tw9KzwXZ','BwfYA01VzgvSqxnszxnWB25ZzxnpBMX5','yNvKz2v0vg9Rzw5Z','yxjNDw1LBNrZ','Aw5JBhvKzunVBNrLBNruExbL','zgvSDge','y2HVAwnLCW','CMvZCg9UC2uUCMvHC29UAw5Nx3n1Bw1HCNLFDgv4Dc5KB25L','zMLUza','z2L0AhvIqxbPvxjS','Dg9tDhjPBMC','zwrPDg9YvMvYC2LVBG','l2nVCgLSB3rFAw50zxjUywWVDJiVDg9Rzw4','CMvZB2X2zxi','DgHPBMTPBMC','y2fWywjPBgL0AwvZ','CMvZCg9UC2vuzxH0ugfYDhm','ChjVDg9JB2XwzxjZAw9U','DgvZDa','DMLZAwjPBgL0Eq','r2L0shvIiefqssbLCNjVCIa','ChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','C3rYzwfTvMLHuMvZCg9UC2vZu29JA2v0qxr0zw1WDa','BNvTyMvY','ChjLCgfYzunOyxrszxf1zxn0','C3rYzwfTv2vIu29JA2v0u3vYzMfJzq','ywnJzxnZvg9Rzw4','AxrLBv9Pza','yM9KEq','DhLWzq','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNmTC3rYzwfT','AgvHzgvYuMvZB2X2zxi','l3jLC3bVBNnLCW','C3rYzwfTvMLHu3vYzMfJzq','z2v0t3jdCMvHDgvszxnWB25ZzxntB2nRzxq','AxrLBq','ywDLBNq','Ahr0Chm6','BwfWqxbPrxjYB3i','zgLZywjSzwq','y29UDgvUDc10ExbL','yxv0BW','Aw5KzxHpzG','BwvZC2fNzuLK','Aw52ywXPzgf0zq','y29TCgXLDgu','yxv0Ag9YAxPHDgLVBG','y29UDgvUDf9IBg9JAW','B3v0Chv0sw5KzxHuB0nHBgXjza','BwvZC2fNzxm','Bwf4x291Dhb1Df90B2TLBNm','Dg9VBf91C2vFAwq','uMvZCg9UC2vZifDLyLnVy2TLDcbYzxf1zxn0igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','AxneB25L','yw50AhjVCgLJqxnZAxn0yw50q29UDgvUDa','zgvJB2rL','Cgf0Aa','Dgv4Da','mJy1mtu1murzsgn4Aq','C2HVDwXKuhjLzMvYuMvZCg9UC2vZqxbP','C3vWCg9YDgvKx2vUzhbVAw50CW','B3bLBMfPx3jLyxnVBMLUzW','CMvHC29U','igrPzcbUB3qGChjVDMLKzsbHifDLyLnVy2TLDcbvuKWGB3iGCgf0Aa','zxzLBNq','C3vYzMfJzq','t1bftG','y3jLyxrLsgvHzgvYCW','BwvZC2fNzq','yxbPs2v5','ue9tva','ignHBM5VDcbWyxjZzsbtu0uGzxzLBNrZ','yxv0AfnJAgvTzq','zw5Kx3r1CM4','zwzMB3j0','Dg9VBc1JywXSlq','AM9PBG','CMvZCg9UC2vjza','zMLUywXszxnWB25Zzq','D2vIu29JA2v0rMfJDg9YEq','Bwv0Ag9K','Dgv4Dej5sw5KzxG','B3v0Chv0x3rVA2vUC19KzxrHAwXZ','yNvPBgrqyxj0AwfSt3v0Chv0','D2vIC29JA2v0x2nVBM5Ly3rPB25FBgLTAxrFCMvHy2HLza','C2HPzNq','BwfW','CMvHzhLtDgf0zq','t3bLBKfjiefqssbLCNjVCIa','yMfZzvvYBa','DMfSDwvZ','uMvZCg9UC2vZifDLyLnVy2TLDcbJBg9ZzwqGyMvMB3jLihjLC3bVBNnLlMnVBxbSzxrLza','CMvHC29UAw5NsxrLBxm','CMvZCg9UC2uUB3v0Chv0x2L0zw0Uzg9Uzq','AgfZ','y2HHDenVBxbSzxrPB25Zugf0Aa','B3bLBMfPlxjLC3bVBNnLCW','Ec1HCgKTA2v5','yMvHCMvY','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzg9Uzq','CMvHC29UAw5Nx3rVA2vUCW','B3v0Chv0x3rVA2vUCW','qMvHCMvYia','l21VzgvSCW','C2LNBMf0DxjL','ChjVDMLKzxjbzgfWDgvY','sw52ywXPzcbxzwjtB2nRzxqGBwvZC2fNztOG','ywrKrxzLBNrmAxn0zw5LCG','CMvKywn0zwrFDgHPBMTPBMC','Dgv4DfbHCNrZ','CM9Szq','y2HHDenVBxbSzxrL','C3vWCg9YDgvKrw5KCg9PBNrZ','C3rHCNrZv2L0Aa','mte4mtG2nK1RAhzLrW','B3v0Chv0x3rLEhq','BM93','Bwv0ywrHDge','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzgvSDge','BwvZC2fNzuLUzgv4','Dg9VBhm','C2vZC2LVBKLK','DxjS','mJaYns0Xmc0Wmq','yxbWBgLJyxrPB24VANnVBG','C3rHDhvZvgv4Da','CgfYC2u','y2f0y2G','C3rVCf9YzwfZB24','CMvZCg9UC2u','y3jLzgvUDgLHBa','B3bLBMfPuMvZCg9UC2vZuMvZCg9UC2vjza','C2vUzeH0DhbtDxjMywnLuMvXDwvZDa','DhjPBvn0yxj0','B3v0Chv0vg9Rzw5Z','BgvUz3rO','qxv0AgvUDgLJyxrPB24GzMfPBgvKlIbqBgvHC2uGy2HLy2SGEw91CIbbueKGA2v5lG','Bw9KzwXfBMrWB2LUDenHy2HL','nJq4mZmYsuLREwfp','CgfYC2vszxnWB25Zzq','zw5KCg9PBNrZ','Ahr0Cc1ZC2u','y29UC3vTzvnZzuv2zw50','ChjVBxb0x3rVA2vUCW','C29JA2v0','mZaXmtuYnvDKq0rNAq','C3vTBwfYEv90zxH0','r0vu','Dg9VBfvZzvn0yxj0rw1PDhrLza','C3rYzwfT','Aw5PDgLHBev2zw50','z2v0t3bLBKfPrgvSzwDHDgu','Aw5JBhvKzxm','yxbWBhLnB2rLBerLzMf1BhrZ','CMvWBgfJzq','Ahr0Cc1QC29U','Aw50zxjSzwf2zwqTDgHPBMTPBMCTmJaYns0Wns0Xna','Dg9Rzw5fEgnOyw5NzufWAvzLCNnPB24','Aw5KzxG','DgHLBG','ywnXDwLYzvjLC3bVBNnLC1nVy2TLDeXVy2S','Ahr0Chm6lY9HCgKUB3bLBMfPlMnVBs92mq','qw50AhjVCgLJihn0CMvHBsbMywLSzwq','Aw5WDxrFDg9Rzw5Z','CgvUzgLUzW','y29TCgXLDgvwAwfdAgf0q29TCgXLDgLVBNntDxjMywnL','yxnZAxn0yw50','vw5RBM93BIbTB2rLBcbZDxjMywnLoIa','CM91DgvY','ignHBM5VDcbWyxjZzsbxzwjtB2nRzxqGzxzLBNrZ','y29UC3vTzvDLyLnVy2TLDev2zw50','y29TCgXLDgvwAwfsB3v0zxi','y29UC3vTzuv2zw50','qMfZAa','y2fJAgvK','y29TCgXLDgvwAwftDxjMywnL','C3rYzwfTvMLHuM91DgvY','C3bSAwnL','Dgv4Df9KzwX0yq','zNvUy3rPB25Fy2fSBa','BwvZC2fNzv9ZDgfYDa','C2v0','C2vZC2LVBK1HBMfNzxi','DNnJB2rLlZeUmta0lJi','C3rYzwfTvMLHq29UzMLNDxjLzfn1CMzHy2u','zNjVBuvUDhjPzxm','C3rYzwfTvMLHuMvZCg9UC2vZv2vIu29JA2v0u3vYzMfJzq','uhjVDMLKzxiGCMvXDwvZDcbMywLSzwqGD2L0AcbZDgf0DxmG','z2v0','y29UBMvJDf9MywLSzwq','y29WAwXVDc1JAgf0lZaUmZeUmW','CMvXDwvZDe11Dgf0B3jZ','C3bSAxq','CMvZCg9UC2vtB2nRzxq','AgvHzgvYCW','BhmGlwXH','u3vYzMfJzsa','C2vSzwn0u3vYzMfJzq','B3v0Chv0sw5KzxHuB1jLyxnVBMLUz0LK','mwHszuPxBG','t3bLBKfjigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','yw50AhjVCgLJlxzLCNnPB24','v2vIu29JA2v0ihjLCxvLC3qGzMfPBgvK','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzgvSDge','CMvZCg9UC2uUzMfPBgvK','y2fWywjSzv9LBMrWB2LUDhm','Dg9bCgLfCNjVCG','rgLYzwn0igfUC3DLCJOG','Aw5WDxrFC2nOzw1H','C29YDa','Bwf4x2nVBNrLEhrFD2LUzg93x3rVA2vUCW','CMvZCg9UC2vtDhjLyw0','y29UBMvJDgLUzW','BwvZC2fNzv9KzwX0yq','C3vTBwfYEuj5sw5KzxG','vw5ZDxbWB3j0zwqGr2L0shvIig1VzgvSihn1CMzHy2u6ia','C3rYAw5N','DxnHz2u','v2vIu29JA2v0ignSB3nLzcb3AxrOignVzguG','CMvZB2X2zujHC2vvCMW','C3rYzwfTu3vYzMfJzq','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','C2HVDwXKuMv0CNLszxnWB25ZzxntB2nRzxrszxf1zxn0','y2HHDgnTCgWT','ywrHChrPDMu','y2XVC2u','BxnNlq','C3rYzwfTvMLHuMvZCg9UC2vZu3vYzMfJzq','C2HHCMvKuMvZCg9UC2vZu29JA2v0u2vZC2LVBNm','Aw5WDxq','y29UDgvUDf9IBg9JA19ZDgfYDa','ywjVCNrLza','B3v0Chv0sw5KzxG','yxbPlwTLEq','yMXVy2TZ','zw50CMLLCW','DxrMltG','y2XHDwrLlxnVBM5LDc00ltiWmJuWnte0','DhjHBNnWB3j0','zMLUAxnO','C3rYzwfTvMLHq2HHDenVBxbSzxrPB25Zu3vYzMfJzq','y29UDgvUDf9KzwX0yq','zwrPDg9YugX1z2LUvMvYC2LVBG','z3b0ltrV','zgvSzxrL','C2vUza','y3jLyxrLu3rYzwfTugfYC2vY','C29Tzq','z2v0uMvHzgvY','zw5JCNLWDgvKx2nVBNrLBNq','C3rYzwfTvMLHugvYC2LZDgvUDfjLC3bVBNnLC1nVy2TLDa','zMv0y2HjBxbS','z2v0t3jdCMvHDgvszwfZB25PBMDjDgvT','CMvXDwvZDa','Ahr0Chm6lY9HCgKUAw5KAxzPzhvHBc5NAxrODwjJB3bPBg90lMnVBq','ChjLDMLVDxnszxnWB25ZzuLK','C3vTBwfYEq','DgHPBMTPBMDFzgvSDge','DxnLCI12AxnPyMXL','y29UDgvUDf9PBMrLEa','yw50AhjVCgLJrgvSzwDHDgu','BMfTzq','C2vZC2LVBI10B2TLBG','yw50AhjVCgLJx3nPz25HDhvYzv9KzwX0yq','vw5RBM93BIbWCM92AwrLCIbLCNjVCG','r2L0shvIq29WAwXVDenOyxqVmc4ZmY4X','CMvZCg9UC2uUy29TCgXLDgvK','CMvHC29UAw5N','yw50AhjVCgLJx3jLzgfJDgvKx3rOAw5RAw5N','C3rVCfjLyxnVBG','B3bLBMfPlxjLC3bVBNnLCY1ZDhjLyw0','zgf0yq','ywnJzxb0','Dg9Rzw4','CMvTB3zLrxzLBNrmAxn0zw5LCG','Dg9VBa','Aw5WDxrkC29U','Dg9VBf9Yzxn1Bhq','mteWmJGWndburvrfzMy','zw5JCNLWDgvKq29UDgvUDa','yw50AhjVCgLJx3rOAw5RAw5N','AxnbCNjHEq','y29TCgXLDgvwAwfszxnWB25ZzxnxzwjtB2nRzxrtDxjMywnL','zNvUy3rPB24','y2fSBeLKvg9pDxrWDxrjBMrLEa','Dg9VBenHBgXZqNLjBMrLEa','yw50AhjVCgLJlw1LC3nHz2vZ','CMvZzxq','zNjVBq','CMvMDxnHBa','B3v0Chv0x2LUzgv4','CMvZB2X2zq','C3rYAw5NAwz5','Dg9VBf9JywXSCW','CMvXDwvZDhm','Dg9VBenHBgXZ','ywjVCNq','DMfSDwu','Aw50zxjSzwf2zwq','C2LNBMf0DxjLx2rLBhrH','z2v0qw50AhjVCgLJrgvSzwDHDgu','CMvHC29UAw5Nx3rLEhq','zgvZy3jPChrPB24','y29TCgXLDgvwAwfdB25MAwD1CMvKu3vYzMfJzq','zgLZCgXHEq','zMv0y2G','zgf0ytO','y29TCgXLDgvK','y3jLyxrLuMvXDwvZDa','ChvZAa','Dgv4Dc9LDMvUDc1ZDhjLyw0','y29TCgXLDgLVBL90B2TLBNm','Dg9VBf91C2u','Dg9VBf91C2vFzgvSDge','mti3mtCWnMLJDKHvqq','B3jPz2LUlxrYywnRzxi','C2L6zq','Aw5WDxrFANnVBL9KzwX0yq','zMLUzfjLC3bVBNnLC1nVy2TLDenOzwnRCg9PBNq','Aw5WDxruB2TLBNm','BgfZDfjLC3bVBNnLswq','y29TCgXLDgvwAwfszxnWB25ZzxntDxjMywnL','DhjPBq','yxnZAxn0yw50lq','C2vZC2LVBG','B3bLBMfPlxjLC3bVBNnLCY13CW','C3vYzMfJzxm','sw52ywXPzcbYzxf1zxn0oIa','ChjVDMLKzxjtDgf0zq','C2LNBMfS','ChjVEhK','ChjLCgfYzvjLC3bVBNnLC1nVy2TLDfjLCxvLC3q','y2HHDfn0CMvHBq','Aw52ywXPzgf0zvjLC3bVBNnLC1nVy2TLDfnLC3nPB24','igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','B3bLBKfPrgvSzwDHDgu','y29UDgvUDa','Bwf4vg9Rzw5Z'];_0xb3ca=function(){return _0x364397;};return _0xb3ca();}async function prepareProviderRequest(_0x97214f,_0x4bdb35={}){const _0x2154df={_0x34a029:0xd9,_0x382cb7:0x80,_0x5a43ac:0x101,_0x27a901:0x6c,_0x71e508:0x6a},_0x39d59a={_0x3a8c9c:0x3b};function _0x463ee3(_0x2b54f0,_0x458779,_0x4a739f,_0x1417c0){return _0x55f0a4(_0x2b54f0-0x13b,_0x458779-_0x39d59a._0x3a8c9c,_0x2b54f0,_0x4a739f-0x50d);}let _0x55ff69={'request':structuredClone(_0x97214f),'session':_0x4bdb35[_0x4f86b8(_0x2154df._0x34a029,_0x2154df._0x382cb7,_0x2154df._0x5a43ac,0x1b)]?await _0x4bdb35[_0x4f86b8(0xd9,_0x2154df._0x27a901,0x4f,0xe2)]['resolve'](_0x4bdb35['signal']):void 0x0};function _0x4f86b8(_0x2c4a26,_0x17bd61,_0x4cd6f7,_0x4e0dc9){return _0x55f0a4(_0x2c4a26-0xb8,_0x17bd61-0x129,_0x17bd61,_0x2c4a26-0x2ba);}for(const _0x1d67ae of _0x4bdb35[_0x4f86b8(0xe2,0x91,_0x2154df._0x71e508,0x75)]??[]){_0x55ff69=await _0x1d67ae(_0x55ff69);}return _0x55ff69;}var RoutedModel=class{[_0x55f0a4(-0x358,-0x32e,-0x22d,-0x2ac)];[_0x55f0a4(-0x24a,-0x318,-0x273,-0x2ca)];['reasoning'];['apiKey'];[_0x2e041c(0x19,0x26,-0x91,-0x124)];[_0x2e041c(0x88,0x82,0x11,-0x1b)];['providerAdapter'];['requestMutators'];[_0x2e041c(-0x7c,-0xc1,-0x42,-0xc1)];[_0x55f0a4(-0x134,-0x20c,-0x12a,-0x1e1)];[_0x55f0a4(-0x299,-0x1eb,-0x1e3,-0x248)];[_0x55f0a4(-0x34d,-0x2a1,-0x303,-0x2d5)]=new Map();constructor(_0xf0b697){const _0x243592={_0x380e96:0x147,_0x40b778:0x135,_0x48537d:0x165,_0x355e64:0xac,_0xca2a9d:0xa8,_0x1ca0ce:0x488,_0x3d00c0:0x418,_0x269a0a:0x3f8,_0x408c2d:0x4e6,_0x58499a:0x4c0,_0x39bad3:0x433,_0x298590:0x3f9,_0x334ef5:0x3ce,_0x2bef62:0xed,_0x5a0d55:0x66,_0x2df027:0x478,_0x2a9357:0x4e5,_0x4d86c7:0x2f6,_0x63b453:0x2f1,_0x415c9b:0x185,_0x57795c:0x243,_0x422bad:0x74,_0x4b7325:0x73,_0x2f7391:0x2c,_0xaf97fb:0x73,_0x16ed74:0x127,_0x3fda36:0x2f,_0x303506:0x425,_0x352b9e:0x3c4,_0x54cea0:0x383,_0x255607:0x1f,_0x272305:0x1f,_0x2f180b:0x392,_0x9e1800:0x376,_0x1b7a4c:0x3a7,_0x4573fc:0x3b3,_0x28fee6:0x3cc,_0x46af0a:0x403,_0x2d0945:0xe3,_0x2d3ea0:0x11f,_0x294bdf:0x159,_0x2251b4:0x170,_0x181e0e:0x181},_0x14e0dd={_0x1370d5:0x1c9,_0x59e4f9:0x48},_0x537595={_0x21987d:0x12b,_0x4db338:0x614};this['model']=_0xf0b697[_0x2bcda7(-_0x243592._0x380e96,-0x1c8,-_0x243592._0x40b778,-0xfd)],this['maxTokens']=_0xf0b697[_0x2bcda7(-_0x243592._0x48537d,-_0x243592._0x355e64,-_0x243592._0xca2a9d,-0x216)]??0x4000;function _0x596c3b(_0x2b992d,_0x411fef,_0x1e0af6,_0xa1f2de){return _0x55f0a4(_0x2b992d-0xcd,_0x411fef-_0x537595._0x21987d,_0x411fef,_0x2b992d-_0x537595._0x4db338);}this[_0x596c3b(_0x243592._0x1ca0ce,_0x243592._0x3d00c0,_0x243592._0x269a0a,_0x243592._0x408c2d)]=_0xf0b697[_0x596c3b(_0x243592._0x1ca0ce,_0x243592._0x58499a,_0x243592._0x39bad3,0x4fa)]?structuredClone(_0xf0b697[_0x596c3b(0x488,_0x243592._0x298590,_0x243592._0x334ef5,0x3cf)]):void 0x0,this['apiKey']=_0xf0b697[_0x2bcda7(-_0x243592._0x2bef62,-0x53,-_0x243592._0x5a0d55,-0x154)],this['baseUrl']=_0xf0b697[_0x596c3b(0x3d6,0x3da,0x46e,0x3bf)],this[_0x596c3b(_0x243592._0x2df027,0x3d8,0x462,_0x243592._0x2a9357)]=_0xf0b697[_0x596c3b(0x32a,0x392,_0x243592._0x4d86c7,_0x243592._0x63b453)]??globalThis[_0x2bcda7(-_0x243592._0x415c9b,-0x183,-0x240,-_0x243592._0x57795c)];function _0x2bcda7(_0x168570,_0x3866ac,_0x10c573,_0x399a82){return _0x2e041c(_0x168570-_0x14e0dd._0x1370d5,_0x3866ac-0xaa,_0x168570- -_0x14e0dd._0x59e4f9,_0x3866ac);}this['providerAdapter']=_0xf0b697[_0x2bcda7(-0xc9,-0x5d,-0x7,-_0x243592._0x422bad)],this[_0x2bcda7(-_0x243592._0x4b7325,-0xbd,-_0x243592._0x2f7391,-0x9c)]=_0xf0b697[_0x2bcda7(-_0x243592._0xaf97fb,-_0x243592._0x16ed74,0x18,-0xe1)]??[],this[_0x2bcda7(-0x8a,-0x101,0x29,_0x243592._0x3fda36)]=_0xf0b697[_0x596c3b(_0x243592._0x303506,0x39a,_0x243592._0x352b9e,_0x243592._0x54cea0)],this['sessionManager']=_0xf0b697[_0x2bcda7(-0x7c,-_0x243592._0x255607,-0xd8,_0x243592._0x272305)]??(_0xf0b697[_0x596c3b(_0x243592._0x2f180b,0x2d1,0x39f,_0x243592._0x9e1800)]?new ProviderSessionManager(_0xf0b697[_0x596c3b(0x392,_0x243592._0x1b7a4c,0x30e,_0x243592._0x4573fc)]):void 0x0),this[_0x596c3b(_0x243592._0x28fee6,0x3db,_0x243592._0x46af0a,0x486)]=_0xf0b697[_0x2bcda7(-_0x243592._0x2d0945,-0x145,-_0x243592._0x2d3ea0,-_0x243592._0x294bdf)]??createDefaultWebSocketFactory();for(const _0x1fed6c of _0xf0b697[_0x2bcda7(-_0x243592._0x2251b4,-0x135,-0x166,-_0x243592._0x181e0e)]){this['surfaces']['set'](_0x1fed6c['id'],_0x1fed6c);}}[_0x55f0a4(-0x20b,-0x21f,-0x317,-0x26a)](_0x1218bc,_0x18e408){const _0x2ec5e9={_0x5c8127:0x385,_0x177bf4:0x311},_0x5f1209={_0xb6b41a:0xac};function _0x26b47e(_0x1d2941,_0x1e6bee,_0xb4f5fb,_0x229eca){return _0x55f0a4(_0x1d2941-0x164,_0x1e6bee-_0x5f1209._0xb6b41a,_0xb4f5fb,_0x1d2941-0x59c);}return this[_0x26b47e(0x3b0,0x3a7,_0x2ec5e9._0x5c8127,_0x2ec5e9._0x177bf4)](_0x1218bc,_0x18e408);}[_0x55f0a4(-0x22f,-0x15e,-0x204,-0x202)](_0x58ea08,_0xc82304){return this['streamViaRouter'](_0x58ea08,_0xc82304);}async[_0x55f0a4(-0x17b,-0x23e,-0x21f,-0x1ec)](_0x10179b,_0x497447){const _0x48c597=this['applyModelDefaults'](_0x10179b),_0x53723e=await this['router']['selectSurface'](_0x48c597,{'mode':'complete'});return this['completeViaSurface'](_0x48c597,_0x53723e,_0x497447);}async*[_0x2e041c(-0x64,-0x9f,-0x3a,0x78)](_0xa8bf08,_0x394ef3){const _0xe6ea8e={_0x8cfb12:0x17b,_0x564596:0x8,_0x4ef910:0xc1,_0x28f9f1:0x22,_0x391899:0x227,_0x208f8f:0x207,_0x56708c:0x222},_0xf7a889={_0x780740:0x77},_0x47d316={_0x523039:0x1e7};function _0x57e460(_0x3079bb,_0x37de55,_0x224c2c,_0x2e442a){return _0x55f0a4(_0x3079bb-0x6f,_0x37de55-0x1a4,_0x2e442a,_0x3079bb-_0x47d316._0x523039);}function _0x3e3a93(_0x3b3c7e,_0x4a780f,_0x1cbf11,_0x1efb38){return _0x55f0a4(_0x3b3c7e-0x141,_0x4a780f-_0xf7a889._0x780740,_0x1cbf11,_0x1efb38-0x379);}const _0x1c0e0b=this[_0x3e3a93(0x14d,0xd2,0x22f,_0xe6ea8e._0x8cfb12)](_0xa8bf08),_0x4f3e61=await this[_0x57e460(-_0xe6ea8e._0x564596,-_0xe6ea8e._0x4ef910,-0x98,_0xe6ea8e._0x28f9f1)][_0x3e3a93(_0xe6ea8e._0x391899,_0xe6ea8e._0x208f8f,_0xe6ea8e._0x56708c,0x1a7)](_0x1c0e0b,{'mode':'stream'});yield*this['streamViaSurface'](_0x1c0e0b,_0x4f3e61,_0x394ef3);}async[_0x55f0a4(-0x198,-0x279,-0x26d,-0x1e8)](_0x382470,_0x203855,_0xbd2efe){const _0x3f0016={_0x2f31c2:0x44e,_0x2f1bb6:0x3ef,_0x550bcf:0x541,_0x5bfa5e:0x1e2,_0x233911:0x5e1,_0x1ad248:0x1f2,_0x34fe7c:0x291,_0x4c8839:0x1ef,_0x4e3b11:0x4de,_0x3d8a32:0x521,_0x3c8065:0x281,_0x1e7775:0x234,_0x362356:0x3be,_0x5ec038:0x3f3,_0x36f4f9:0x1fc,_0x5cb938:0x567,_0x513655:0x30e},_0x41174={_0x936231:0xc8},_0x25ca66={_0x2e540d:0x161,_0x574bb6:0xba,_0x34619e:0x6ea},_0x46b165=this['applyModelDefaults'](_0x382470),_0x584d46=this[_0x4f2e6a(_0x3f0016._0x2f31c2,0x4b3,_0x3f0016._0x2f1bb6,0x3c5)](_0x203855);if(_0x584d46[_0x4f2e6a(_0x3f0016._0x550bcf,0x577,0x58a,0x4a4)]===_0x2640d0(-_0x3f0016._0x5bfa5e,-0x1c9,-0x221,-0x1c8)){const _0x484dcd=await this['sendHttpSurfaceRequest'](_0x46b165,_0x584d46,![],_0xbd2efe?.['signal']);if(!_0x484dcd['ok'])throw await this[_0x4f2e6a(0x521,0x4dd,_0x3f0016._0x233911,0x47b)](_0x484dcd);if(!_0x584d46[_0x2640d0(-_0x3f0016._0x1ad248,-_0x3f0016._0x34fe7c,-0x24a,-_0x3f0016._0x4c8839)])throw new Error('Surface\x20'+_0x203855+'\x20does\x20not\x20support\x20non-streaming\x20responses');return _0x584d46[_0x4f2e6a(_0x3f0016._0x4e3b11,0x5a0,_0x3f0016._0x3d8a32,0x53f)](await _0x484dcd[_0x2640d0(-0x27f,-0x2c0,-_0x3f0016._0x3c8065,-_0x3f0016._0x1e7775)](),_0x46b165);}let _0x26df68;function _0x4f2e6a(_0x43cebe,_0x2f8337,_0x3243c2,_0x5cfdfa){return _0x55f0a4(_0x43cebe-_0x25ca66._0x2e540d,_0x2f8337-_0x25ca66._0x574bb6,_0x2f8337,_0x43cebe-_0x25ca66._0x34619e);}function _0x2640d0(_0x32ab69,_0x1fdd3e,_0x23aa56,_0x535fbd){return _0x2e041c(_0x32ab69-0xe8,_0x1fdd3e-_0x41174._0x936231,_0x32ab69- -0x193,_0x1fdd3e);}for await(const _0x253be6 of this[_0x4f2e6a(0x474,_0x3f0016._0x362356,0x41b,_0x3f0016._0x5ec038)](_0x46b165,_0x203855,_0xbd2efe)){_0x253be6['type']==='done'&&(_0x26df68=_0x253be6[_0x2640d0(-_0x3f0016._0x36f4f9,-0x1d2,-0x1af,-0x21c)]);}if(!_0x26df68)throw new Error(_0x4f2e6a(0x517,_0x3f0016._0x5cb938,0x529,0x55a)+_0x203855+_0x2640d0(-0x2b3,-0x306,-0x2fc,-_0x3f0016._0x513655));return _0x26df68;}async*[_0x55f0a4(-0x2e8,-0x2e9,-0x28d,-0x276)](_0x68ed7e,_0x54562b,_0x3e79eb){const _0x4f3e29={_0x2a8f74:0x22c,_0x569dc2:0x286,_0x93b4f3:0x260,_0x34b47f:0x27b,_0x4e7a54:0x76,_0x3d947a:0x1b,_0x2f1ad3:0x7e,_0x3dd5ad:0xd2,_0x5d2aa7:0x1ca,_0x8fdd13:0x23,_0x53a709:0x25,_0x1e877d:0x197,_0x1b3795:0x174,_0x7a5e15:0x112,_0x231028:0x16b},_0x591aaf={_0x3e5495:0x20},_0x1b2b8a={_0x29c3ac:0x107,_0x3b1f72:0x16},_0x56f000=this[_0x33b416(0x1fd,0x248,_0x4f3e29._0x2a8f74,0x2ca)](_0x68ed7e),_0x5b5ef7=this[_0x33b416(0x250,0x1aa,0x240,0x23b)](_0x54562b);if(_0x5b5ef7[_0x33b416(_0x4f3e29._0x569dc2,0x29d,_0x4f3e29._0x93b4f3,_0x4f3e29._0x34b47f)]===_0x5d5a38(-_0x4f3e29._0x4e7a54,-_0x4f3e29._0x3d947a,-_0x4f3e29._0x2f1ad3,-0xda)){yield{'type':_0x5d5a38(-0x128,-0x1ea,-_0x4f3e29._0x3dd5ad,-_0x4f3e29._0x5d2aa7),'response':await this['completeViaSurface'](_0x56f000,_0x54562b,_0x3e79eb)};return;}if(_0x5b5ef7[_0x5d5a38(-_0x4f3e29._0x8fdd13,-0x2b,-_0x4f3e29._0x53a709,0x1)]==='http-sse'){yield*this[_0x33b416(0x216,_0x4f3e29._0x1e877d,0xec,0x228)](_0x56f000,_0x5b5ef7,_0x3e79eb?.[_0x33b416(_0x4f3e29._0x1b3795,0x174,0x186,0xd5)]);return;}function _0x5d5a38(_0x3d41c1,_0x3ebf90,_0x2a00d8,_0x1272be){return _0x55f0a4(_0x3d41c1-_0x1b2b8a._0x29c3ac,_0x3ebf90-_0x1b2b8a._0x3b1f72,_0x1272be,_0x3d41c1-0x186);}function _0x33b416(_0x53435b,_0x5993de,_0x11af6c,_0x5e144f){return _0x2e041c(_0x53435b-_0x591aaf._0x3e5495,_0x5993de-0x32,_0x5993de-0x299,_0x53435b);}yield*this[_0x5d5a38(-0xf8,-_0x4f3e29._0x7a5e15,-0xa2,-_0x4f3e29._0x231028)](_0x56f000,_0x5b5ef7,_0x3e79eb?.['signal']);}async['sendRawRequest'](_0x484d7c){const _0x4fde14={_0x19187b:0x12e,_0x64e4ad:0xdf,_0x515163:0x56,_0x87715e:0x449,_0x854420:0x3ee,_0x84a548:0x3e9,_0x3d5b21:0x408,_0x13fbfa:0xf8,_0x198272:0x11c,_0x272385:0x11a},_0x55948a={_0xb88414:0x3a},_0x134137={_0x2d6293:0x91,_0x572681:0x244,_0x32a8b1:0xf5,_0x2879f0:0x197,_0x5c6a41:0x22e,_0x264569:0xf4,_0x4dc9cb:0x182,_0x5f0245:0x291,_0x3a87b3:0x265,_0x251a4f:0x12f,_0x57c4b5:0xf6,_0x4662c8:0x80,_0x32ca37:0x37,_0x11b2e8:0x215,_0x14baa6:0x28f,_0x17b296:0x219,_0x1e997f:0x248,_0x349b95:0x10d,_0x517b17:0x171,_0x4ef951:0x252,_0x4495ee:0x249,_0x21ab54:0x25a,_0x3f6d36:0x1a3},_0xbda1c3={_0x5cea72:0x34a},_0x5d5a83={_0x2a3c14:0x22c},_0x227fc6=async()=>{const _0x9493f4=this[_0x4006d4(-0x93,-0x46,-0x144,-_0x134137._0x2d6293)]?await this[_0x1f0d02(-0x1af,-0x1cf,-0x124,-_0x134137._0x572681)][_0x4006d4(-_0x134137._0x32a8b1,-0x13f,-_0x134137._0x2879f0,-0x1a8)](_0x484d7c[_0x4006d4(-0x23c,-_0x134137._0x5c6a41,-_0x134137._0x264569,-_0x134137._0x4dc9cb)]):void 0x0;function _0x4006d4(_0x2ac111,_0x3604bb,_0x42fb5c,_0x5eceb0){return _0x3920(_0x5eceb0- -_0x5d5a83._0x2a3c14,_0x42fb5c);}const _0x233786=this['providerAdapter'][_0x1f0d02(-0x285,-_0x134137._0x5f0245,-0x2e1,-_0x134137._0x3a87b3)](this['apiKey'],_0x9493f4);if(!_0x233786)throw this[_0x4006d4(-_0x134137._0x251a4f,-0xbc,-0x1fc,-0x160)]();const _0x3aaffe=await this['createHeaders']({'body':_0x484d7c[_0x4006d4(-_0x134137._0x57c4b5,-0x1cf,-0x18f,-0x12b)],'credential':_0x233786,'session':_0x9493f4,'stream':![]},{'accept':_0x484d7c[_0x4006d4(-_0x134137._0x4662c8,-0x3b,-0x7c,-0x37)]??_0x4006d4(-0x27,-_0x134137._0x32ca37,-0x122,-0xcb),'includeContentType':_0x484d7c[_0x1f0d02(-_0x134137._0x11b2e8,-0x23b,-0x2ad,-0x2c9)]===_0x1f0d02(-0x21f,-_0x134137._0x14baa6,-_0x134137._0x17b296,-_0x134137._0x1e997f)});function _0x1f0d02(_0x3c42fb,_0x46cc80,_0x3e6678,_0x1e2aaf){return _0x3920(_0x3c42fb- -_0xbda1c3._0x5cea72,_0x3e6678);}return this[_0x1f0d02(-0x16a,-0x1cc,-0xed,-_0x134137._0x349b95)](''+this['providerAdapter'][_0x1f0d02(-0x18a,-0xcc,-0x139,-0x12d)](this['baseUrl'],_0x9493f4)+_0x484d7c[_0x1f0d02(-0x22d,-0x200,-0x1ab,-_0x134137._0x517b17)],{'method':_0x484d7c[_0x4006d4(-0x1a0,-0x6a,-0x120,-0xf7)],'headers':_0x3aaffe,..._0x484d7c['body']!==void 0x0?{'body':JSON[_0x1f0d02(-0x2c5,-_0x134137._0x4ef951,-0x240,-0x29e)](_0x484d7c[_0x1f0d02(-_0x134137._0x4495ee,-0x222,-_0x134137._0x21ab54,-0x1ae)])}:{},'signal':_0x484d7c[_0x4006d4(-_0x134137._0x3f6d36,-0x199,-0x176,-0x182)]});},_0xe64cdf=await _0x227fc6();if(_0xe64cdf[_0x3f3a77(_0x4fde14._0x19187b,_0x4fde14._0x64e4ad,_0x4fde14._0x515163,0xc0)]!==0x191||!this[_0x2b86a1(0x3ba,_0x4fde14._0x87715e,_0x4fde14._0x854420,0x3f5)])return _0xe64cdf;function _0x3f3a77(_0x4b8f2d,_0x5933ad,_0x12292b,_0x41b452){return _0x2e041c(_0x4b8f2d-0x18f,_0x5933ad-0x151,_0x5933ad-0x1da,_0x4b8f2d);}function _0x2b86a1(_0x3f9c73,_0x1dffa6,_0x5a649f,_0x4a24f6){return _0x55f0a4(_0x3f9c73-_0x55948a._0xb88414,_0x1dffa6-0x10e,_0x1dffa6,_0x5a649f-0x5cf);}return this[_0x2b86a1(_0x4fde14._0x84a548,_0x4fde14._0x3d5b21,0x3ee,0x39c)][_0x3f3a77(_0x4fde14._0x13fbfa,_0x4fde14._0x198272,_0x4fde14._0x272385,0x1a5)](),_0x227fc6();}[_0x2e041c(-0x1b7,-0x138,-0x103,-0x13d)](){const _0x95f40={_0x2ab9e6:0x48d,_0x323a2b:0x424,_0x5e490c:0x3ca,_0x139102:0x32c},_0x3951d2={_0x864044:0x11a},_0x214626={_0x1bdd8d:0xe3,_0x31cbf9:0x56a};function _0x253b4e(_0x5315b7,_0x136d33,_0x1f5609,_0x34b503){return _0x2e041c(_0x5315b7-_0x214626._0x1bdd8d,_0x136d33-0x1b0,_0x1f5609-_0x214626._0x31cbf9,_0x34b503);}function _0x2052f5(_0x5062c0,_0x3e3439,_0x17a7f0,_0x17431c){return _0x2e041c(_0x5062c0-0x16,_0x3e3439-_0x3951d2._0x864044,_0x3e3439-0x4cd,_0x17431c);}return this[_0x2052f5(_0x95f40._0x2ab9e6,0x44c,_0x95f40._0x323a2b,0x4ef)][_0x2052f5(0x3f5,_0x95f40._0x5e490c,0x3ae,_0x95f40._0x139102)]();}async[_0x55f0a4(-0x298,-0x1b1,-0x2f4,-0x254)](_0x1e3c41,_0x4f50ce){const _0x3e918a={_0xfba73e:0xb9},_0x16d634={_0x437fe1:0x2b,_0x3c02f9:0x28};function _0x1cc629(_0x4784b1,_0x3e3b1d,_0x12f1c6,_0x473860){return _0x2e041c(_0x4784b1-_0x16d634._0x437fe1,_0x3e3b1d-_0x16d634._0x3c02f9,_0x4784b1-0x145,_0x473860);}return await this[_0x1cc629(0xc4,0x127,0x16b,_0x3e918a._0xfba73e)]['createHeaders'](_0x1e3c41,_0x4f50ce);}['mapApiError'](_0xf8b0ad){const _0x280826={_0x16a25e:0xab,_0x35212e:0xab},_0x2e8b3d={_0x470721:0x27},_0x72c49e={_0x1df0d3:0x15b,_0x3dee8c:0x13e};function _0x3b00ba(_0x4a3652,_0x53807e,_0x2d8354,_0x599ce5){return _0x55f0a4(_0x4a3652-_0x72c49e._0x1df0d3,_0x53807e-_0x72c49e._0x3dee8c,_0x2d8354,_0x4a3652-0x1c6);}function _0x3f52dc(_0x4f0076,_0xf9aeee,_0x5b088b,_0x13eb4e){return _0x2e041c(_0x4f0076-0x1d2,_0xf9aeee-_0x2e8b3d._0x470721,_0x4f0076-0x216,_0x13eb4e);}return this[_0x3f52dc(0x195,0x1b0,0x199,0xe2)][_0x3b00ba(-_0x280826._0x16a25e,0xb,-_0x280826._0x35212e,-0x1e)](_0xf8b0ad);}async['toApiError'](_0x3f580a){const _0x2efb33={_0x42b3a3:0xf5,_0x28de1b:0x52,_0x4d4456:0x3f0},_0x36be1d={_0x33f9bf:0x1,_0x5ebf6d:0x1ed},_0x512b8f={_0x1236ed:0x6d,_0x2131ff:0x431};function _0xdd1b77(_0x17b299,_0x4f9156,_0x275b72,_0x3ffc64){return _0x2e041c(_0x17b299-0x3,_0x4f9156-_0x512b8f._0x1236ed,_0x4f9156-_0x512b8f._0x2131ff,_0x17b299);}function _0x4f8407(_0x4dc6bf,_0x3e0ecd,_0x471b46,_0x2f6c3b){return _0x2e041c(_0x4dc6bf-_0x36be1d._0x33f9bf,_0x3e0ecd-_0x36be1d._0x5ebf6d,_0x2f6c3b-0x2f,_0x471b46);}return await this[_0x4f8407(0x2d,0x11,-_0x2efb33._0x42b3a3,-_0x2efb33._0x28de1b)][_0xdd1b77(0x3b4,0x415,0x426,_0x2efb33._0x4d4456)](_0x3f580a);}[_0x55f0a4(-0x2f1,-0x33e,-0x319,-0x29c)](_0x58d100){const _0x4e8004={_0x5a9cc1:0x380,_0xda2579:0x462,_0x2c186b:0x4a0,_0x253259:0x3ad},_0x2026b8={_0x4cc68c:0x77},_0xfcb641={_0x1e2217:0x4},_0x32fdae=this[_0x4a6243(0x2ea,0x37a,_0x4e8004._0x5a9cc1,0x356)][_0x4a6243(_0x4e8004._0xda2579,_0x4e8004._0x2c186b,0x47a,0x4d6)](_0x58d100);function _0x4a6243(_0x1b8e33,_0x56c294,_0x5e36c,_0x3fe9a5){return _0x55f0a4(_0x1b8e33-0x87,_0x56c294-_0xfcb641._0x1e2217,_0x56c294,_0x5e36c-0x655);}function _0x556390(_0x465ec7,_0x5db428,_0xa6a63a,_0xa9a89a){return _0x2e041c(_0x465ec7-_0x2026b8._0x4cc68c,_0x5db428-0x104,_0x465ec7-0x242,_0xa6a63a);}if(!_0x32fdae)throw new Error(_0x4a6243(0x3f3,_0x4e8004._0x253259,0x465,0x4e3)+_0x58d100);return _0x32fdae;}async[_0x55f0a4(-0x2d6,-0x2f8,-0x24c,-0x27f)](_0x44c5fa,_0x452916){const _0x2ff464={_0x21f68b:0x2,_0x1809bb:0xbf,_0x6c5d9d:0x4cc,_0x2f9303:0x528,_0x1d39c0:0x4b9,_0x51cb8c:0x10c,_0x54ab17:0xbf,_0x2e17fb:0x78,_0x5f395b:0x10c,_0x2920d4:0x13d,_0xd5706c:0x137,_0x42a7b2:0x128,_0x39ece0:0xe1,_0x2b63d5:0x195,_0x5af383:0x202,_0x33b15c:0x256,_0x38fe2b:0x1b5,_0x387347:0x1b7,_0x3c91ed:0x18e,_0x4f1bcc:0x7a,_0x2c0a74:0x10c,_0x171b1f:0x589,_0x52edba:0x4a7,_0x48817e:0x4f5,_0x102149:0x4d5,_0x5d39e2:0x276,_0x3d7e19:0x17b,_0x2b76a5:0x11e,_0x5566c1:0x1b5},_0x402f99={_0x444d2f:0x178,_0xb495a0:0x111,_0x1cc7f2:0x122},_0x567a1c={_0x2844dc:0x103};function _0x48e10c(_0x70ea66,_0x49561e,_0x158ea4,_0x503aec){return _0x2e041c(_0x70ea66-0x1a3,_0x49561e-_0x567a1c._0x2844dc,_0x503aec-0x4e4,_0x49561e);}function _0x286a2f(_0x3e8a0c,_0x2cfb51,_0x54af44,_0xed7fd7){return _0x55f0a4(_0x3e8a0c-_0x402f99._0x444d2f,_0x2cfb51-_0x402f99._0xb495a0,_0x3e8a0c,_0xed7fd7-_0x402f99._0x1cc7f2);}const _0xb77486=toModelRequest(_0x44c5fa),_0x34a434=await prepareProviderRequest(_0xb77486,{'sessionManager':this[_0x286a2f(-0x119,-_0x2ff464._0x21f68b,-0x172,-_0x2ff464._0x1809bb)],'requestMutators':this[_0x48e10c(_0x2ff464._0x6c5d9d,0x438,_0x2ff464._0x2f9303,_0x2ff464._0x1d39c0)],'signal':_0x452916}),_0x3c2e55=toChatRequest(_0x34a434[_0x286a2f(-_0x2ff464._0x51cb8c,-0x63,-_0x2ff464._0x54ab17,-_0x2ff464._0x2e17fb)]),_0x31a504=this[_0x286a2f(-_0x2ff464._0x5f395b,-0x1a8,-_0x2ff464._0x2920d4,-0x10c)][_0x286a2f(-_0x2ff464._0xd5706c,-_0x2ff464._0x42a7b2,-_0x2ff464._0x39ece0,-_0x2ff464._0x2b63d5)](this['apiKey'],_0x34a434[_0x286a2f(-_0x2ff464._0x5af383,-_0x2ff464._0x33b15c,-0xff,-_0x2ff464._0x38fe2b)]);if(!_0x31a504)throw this[_0x286a2f(-0x1fe,-_0x2ff464._0x387347,-0x245,-_0x2ff464._0x3c91ed)]();return{'baseUrl':this[_0x286a2f(-0x99,-_0x2ff464._0x4f1bcc,-0x11d,-_0x2ff464._0x2c0a74)][_0x48e10c(_0x2ff464._0x171b1f,_0x2ff464._0x52edba,_0x2ff464._0x48817e,_0x2ff464._0x102149)](this['baseUrl'],_0x34a434[_0x286a2f(-_0x2ff464._0x5d39e2,-_0x2ff464._0x3d7e19,-_0x2ff464._0x2b76a5,-_0x2ff464._0x5566c1)]),'credential':_0x31a504,'request':_0x3c2e55,'session':_0x34a434['session']};}[_0x2e041c(-0x3b,-0xaa,-0x51,0x24)](_0x40232d){const _0x1509d2={_0x3f5fac:0x4fa,_0x55620e:0x560,_0x299c9d:0x57f},_0x918d5e={_0x4951ab:0x89,_0x548b31:0x145,_0x3bc15a:0x6d7},_0x58f0e7={_0x26c29f:0x118};function _0xd64bdb(_0x164a6f,_0x309bad,_0xfa526c,_0x3d427f){return _0x55f0a4(_0x164a6f-0x8e,_0x309bad-_0x58f0e7._0x26c29f,_0x309bad,_0x3d427f-0x737);}function _0x2e520b(_0x57d75b,_0x23e29f,_0x1109ee,_0x59f896){return _0x55f0a4(_0x57d75b-_0x918d5e._0x4951ab,_0x23e29f-_0x918d5e._0x548b31,_0x57d75b,_0x1109ee-_0x918d5e._0x3bc15a);}return{...structuredClone(_0x40232d),..._0x40232d[_0x2e520b(_0x1509d2._0x3f5fac,0x579,0x54b,_0x1509d2._0x55620e)]===void 0x0&&this['reasoning']!==void 0x0?{'reasoning':structuredClone(this[_0x2e520b(_0x1509d2._0x299c9d,0x5ed,0x54b,0x52f)])}:{}};}async['sendHttpSurfaceRequest'](_0x4fcaa4,_0xfe5b87,_0x310510,_0x420afd){const _0x12024c={_0x2b4c09:0x1b4,_0x15a834:0x1c3,_0x70fc86:0x1e3},_0x19c4a5={_0x1db073:0x1c7,_0x551e79:0x41},_0x4c6cb8={_0x3d2a56:0x49,_0x1db745:0x18f},_0x3c7f62={_0x3d6a1b:0x269,_0x41dbfe:0x275,_0x1dce22:0x440,_0x15c562:0x424,_0xa237fa:0x407,_0x5ab058:0xe0,_0x57ec3d:0x2b3,_0x4f3357:0x251,_0x3ce19b:0x491,_0x23216a:0x4b7,_0x5403fe:0x609,_0x17b6a4:0x296,_0x24c029:0x299,_0x3f2c09:0x19c,_0x4d1cf2:0x169,_0xdbd2c7:0x449,_0x219d56:0x434,_0x12653e:0x45d,_0xcb57b4:0xb9,_0x592113:0x402,_0x29414a:0x426,_0x48e529:0x381,_0x51fe1f:0x43c,_0x754c5e:0x146,_0x46a1ed:0x529,_0x77b2af:0x50b,_0x511bd6:0x16d,_0x28b830:0x190,_0x15c944:0x153,_0x4bb075:0x48b,_0x15c49c:0x249,_0x4dc168:0x2b5,_0x3c2933:0x18b,_0x4a9047:0x23a,_0x14b982:0x278,_0x4abda0:0x2e4,_0x365c89:0x2aa,_0x4d52a6:0x265,_0xae853e:0x24c,_0x4551f3:0x229,_0x571176:0x282,_0x46179f:0x2e1,_0x31e9bd:0x2f0},_0x383061=async()=>{const _0x1442ca=await this[_0x196e64(-_0x3c7f62._0x3d6a1b,-_0x3c7f62._0x41dbfe,-0x2c1,-0x2df)](_0x4fcaa4,_0x420afd);function _0x196e64(_0x178adf,_0x48e0a,_0x559a59,_0x586892){return _0x3920(_0x178adf- -0x366,_0x559a59);}const _0x167812=_0xfe5b87[_0x5cc810(_0x3c7f62._0x1dce22,_0x3c7f62._0x15c562,_0x3c7f62._0xa237fa,0x4e0)](_0x1442ca[_0x196e64(-0x184,-0x188,-_0x3c7f62._0x5ab058,-0x1e1)]);if(!_0x167812['path'])throw new Error('Surface\x20'+_0xfe5b87['id']+_0x196e64(-_0x3c7f62._0x57ec3d,-0x272,-0x23a,-_0x3c7f62._0x4f3357));function _0x5cc810(_0x431d3b,_0x44efca,_0xa5cdb,_0x3583f1){return _0x3920(_0x44efca-0x38f,_0xa5cdb);}const _0x3ef983=await this[_0x5cc810(_0x3c7f62._0x3ce19b,_0x3c7f62._0x23216a,0x489,0x3fa)]({'request':_0x1442ca[_0x5cc810(_0x3c7f62._0x5403fe,0x571,0x501,0x631)],'body':_0x167812[_0x196e64(-0x265,-0x25f,-0x1aa,-_0x3c7f62._0x17b6a4)],'credential':_0x1442ca[_0x196e64(-0x1ff,-_0x3c7f62._0x24c029,-_0x3c7f62._0x3f2c09,-_0x3c7f62._0x4d1cf2)],'session':_0x1442ca[_0x5cc810(_0x3c7f62._0xdbd2c7,_0x3c7f62._0x219d56,0x4a0,_0x3c7f62._0x12653e)],'stream':_0x310510},{'accept':_0x167812[_0x196e64(-0x171,-0x1de,-0x158,-_0x3c7f62._0xcb57b4)]??(_0x310510?_0x5cc810(_0x3c7f62._0x592113,_0x3c7f62._0x29414a,_0x3c7f62._0x48e529,0x3ac):_0x5cc810(0x4b2,0x4f0,_0x3c7f62._0x51fe1f,0x522)),'includeContentType':_0x167812['body']!==void 0x0});for(const [_0x2ba0d4,_0x19590a]of Object[_0x196e64(-0x196,-0x218,-0x216,-_0x3c7f62._0x754c5e)](_0x167812[_0x5cc810(0x5c6,0x536,0x495,0x508)]??{})){_0x3ef983[_0x5cc810(0x49a,_0x3c7f62._0x46a1ed,_0x3c7f62._0x77b2af,0x531)](_0x2ba0d4,_0x19590a);}return this[_0x196e64(-0x186,-_0x3c7f62._0x511bd6,-_0x3c7f62._0x28b830,-_0x3c7f62._0x15c944)](''+_0x1442ca[_0x5cc810(0x48c,0x4cd,0x414,_0x3c7f62._0x4bb075)]+_0x167812[_0x196e64(-_0x3c7f62._0x15c49c,-_0x3c7f62._0x4dc168,-_0x3c7f62._0x3c2933,-_0x3c7f62._0x4a9047)],{'method':_0x196e64(-0x23b,-_0x3c7f62._0x14b982,-_0x3c7f62._0x4abda0,-_0x3c7f62._0x365c89),'headers':_0x3ef983,..._0x167812[_0x196e64(-_0x3c7f62._0x4d52a6,-_0x3c7f62._0xae853e,-_0x3c7f62._0x4551f3,-_0x3c7f62._0x571176)]!==void 0x0?{'body':JSON[_0x196e64(-_0x3c7f62._0x46179f,-0x338,-_0x3c7f62._0x31e9bd,-0x250)](_0x167812['body'])}:{},'signal':_0x420afd});};function _0x5ccba8(_0x41354c,_0xe73ac9,_0x5821ae,_0xb2a4b6){return _0x2e041c(_0x41354c-_0x4c6cb8._0x3d2a56,_0xe73ac9-0xe5,_0x5821ae- -_0x4c6cb8._0x1db745,_0xe73ac9);}function _0x5bd503(_0x695cd7,_0x219e69,_0x3af37d,_0xb6dc97){return _0x2e041c(_0x695cd7-0x14d,_0x219e69-_0x19c4a5._0x1db073,_0x219e69- -_0x19c4a5._0x551e79,_0x3af37d);}const _0x577fab=await _0x383061();if(_0x577fab['status']!==0x191||!this[_0x5ccba8(-0x1c3,-_0x12024c._0x2b4c09,-_0x12024c._0x15a834,-0x13f)])return _0x577fab;return this[_0x5ccba8(-0x1ff,-0x1de,-0x1c3,-_0x12024c._0x70fc86)][_0x5ccba8(-0x2db,-0x251,-0x24d,-0x2ee)](),_0x383061();}async*[_0x2e041c(-0x182,-0x17d,-0x102,-0x10b)](_0x73355a,_0x1a119b,_0x42604d){const _0x16713e={_0x422ff2:0x4ab,_0x5952d4:0x4ed,_0x2ac979:0x52a,_0x564d6b:0x4c3,_0x278f7d:0x55f,_0x35bb57:0x55f,_0xe1ecbb:0x4fe,_0x1657fc:0x48e,_0x59e458:0x429,_0x26d5fc:0x413,_0x2272b1:0x462,_0x25ce95:0x47c,_0x216ced:0x590,_0x45e9e7:0x422,_0x49dbf8:0x397,_0x164ac4:0x463},_0x39a2f2={_0x3de614:0x158,_0x47a11d:0xea,_0x4605ad:0x4d5},_0x59e3da={_0x138850:0x700},_0x198c9a=await this[_0x7d7a92(0x4da,_0x16713e._0x422ff2,_0x16713e._0x5952d4,_0x16713e._0x2ac979)](_0x73355a,_0x1a119b,!![],_0x42604d);function _0x7d7a92(_0x1634d,_0x56091d,_0x49afe0,_0x410ae9){return _0x55f0a4(_0x1634d-0x3c,_0x56091d-0x148,_0x1634d,_0x49afe0-_0x59e3da._0x138850);}if(!_0x198c9a['ok'])throw await this['toApiError'](_0x198c9a);const _0x4c98bf=_0x1a119b[_0x7d7a92(0x4c3,_0x16713e._0x564d6b,_0x16713e._0x278f7d,_0x16713e._0x35bb57)]?.(_0x73355a);function _0x5772c4(_0x51da16,_0x28b274,_0x4f5452,_0x40130b){return _0x2e041c(_0x51da16-_0x39a2f2._0x3de614,_0x28b274-_0x39a2f2._0x47a11d,_0x40130b-_0x39a2f2._0x4605ad,_0x51da16);}if(!_0x4c98bf?.['consumeSseEvent'])throw new Error(_0x7d7a92(0x523,_0x16713e._0xe1ecbb,0x52d,_0x16713e._0x1657fc)+_0x1a119b['id']+_0x7d7a92(_0x16713e._0x59e458,0x4f7,0x4b0,_0x16713e._0x26d5fc));for await(const _0x2bfb9b of iterateSseEvents(_0x198c9a,_0x42604d)){yield*_0x4c98bf[_0x7d7a92(_0x16713e._0x2272b1,_0x16713e._0x25ce95,0x4f7,_0x16713e._0x216ced)](_0x2bfb9b);}yield{'type':_0x7d7a92(_0x16713e._0x45e9e7,0x4d0,0x452,_0x16713e._0x49dbf8),'response':_0x4c98bf[_0x5772c4(_0x16713e._0x164ac4,0x578,0x48c,0x4da)]()};}async*['streamWebSocketSurface'](_0x51078c,_0x1b60fd,_0x5b1bd6){const _0x4567ad={_0x279ad9:0x3cb,_0x1b393c:0x382,_0x39310c:0x2e5,_0x10f72f:0x3a5,_0x47dab2:0x31a,_0x54fea2:0x467,_0x34fbcc:0x3e0,_0x208cb9:0x499,_0x27301e:0x2b5,_0x145565:0x43d,_0x32f857:0x414,_0x26540b:0x313,_0x3d52f2:0x25c,_0x39cfee:0x27a,_0x3445e1:0x268,_0x5f3c3d:0x317,_0x1eb7f9:0x327,_0x15575e:0x400,_0x4417e5:0x3c3,_0x43d76a:0x47e,_0x1c5352:0x404,_0x1edf4c:0x46b,_0x3d4646:0x479,_0x4f1d73:0x284,_0x44495c:0x341,_0x500146:0x322,_0xa84157:0x326,_0x576a26:0x292,_0x141976:0x34f,_0x11ad93:0x283,_0x247f2e:0x23f,_0x3e99d6:0x320,_0x53c1f0:0x194,_0x1ba9be:0x2b4,_0x29982a:0x368,_0x104c9c:0x329,_0x196dfd:0x311,_0x5dbcb3:0x3d2,_0x4f0823:0x3ec,_0x484fdd:0x44c,_0x2bc93d:0x384,_0x4371d6:0x17f,_0x1b7dc2:0xd6,_0x385297:0xe9,_0x299bff:0x48f,_0xfd15cf:0x475,_0x2da1b1:0x390,_0x1ac552:0x3b9,_0x5c7a3f:0x4eb,_0x29ed15:0x434,_0x289b9d:0x274,_0x928dc3:0x260,_0x5357ef:0x2b3,_0x2908d7:0x230,_0x54239b:0x29c,_0x24b9c6:0x214,_0x1aa4c4:0x244,_0x364db4:0x333,_0xfb2860:0x377,_0xd47026:0x278,_0x1e566e:0x2fb,_0x3f7d01:0x20f,_0x5ad561:0x2b4,_0x4cb5c8:0x4a3,_0x5f57ad:0x49a,_0x4d4646:0x470,_0x2bcb35:0x41e,_0x3b7e89:0x400,_0x4c6a6a:0x3fd,_0x506dbd:0x2ee,_0x2b8c24:0x2d7,_0x57ee25:0x2e3,_0x1e1517:0x2ae,_0x2ed44a:0x20e,_0x27f069:0x216,_0x4e53a8:0x179,_0x37293f:0x261,_0x25fe98:0x3ac,_0x302c9d:0x3a8,_0x249287:0x42f,_0x27ff75:0x39e,_0x8ede11:0x1f1,_0x538743:0x437,_0x3f50f4:0x451,_0xd8d2ef:0x1e0,_0x5c7c1a:0x104,_0x50c23b:0x189},_0x1fa0e0={_0x510eed:0xe3,_0xe04c0b:0x141,_0x556314:0x454},_0x30157d=await this[_0x3aaa74(_0x4567ad._0x279ad9,_0x4567ad._0x1b393c,_0x4567ad._0x39310c,0x3b4)](_0x51078c,_0x5b1bd6);function _0x1e0665(_0x2c3a82,_0x38d1ff,_0x1e3d21,_0x3d8d8a){return _0x2e041c(_0x2c3a82-0x1cf,_0x38d1ff-0x10c,_0x2c3a82-0x2a9,_0x1e3d21);}const _0x26ae41=_0x1b60fd[_0x3aaa74(_0x4567ad._0x10f72f,_0x4567ad._0x47dab2,0x30c,0x37b)](_0x30157d[_0x3aaa74(0x3be,_0x4567ad._0x54fea2,_0x4567ad._0x34fbcc,_0x4567ad._0x208cb9)]),_0x2f9fe4=_0x1b60fd[_0x1e0665(_0x4567ad._0x27301e,0x2d0,0x29a,0x34b)]?.(_0x51078c);if(!_0x2f9fe4?.[_0x3aaa74(_0x4567ad._0x145565,_0x4567ad._0x32f857,0x4cc,0x401)])throw new Error(_0x1e0665(0x283,_0x4567ad._0x26540b,_0x4567ad._0x3d52f2,_0x4567ad._0x39cfee)+_0x1b60fd['id']+_0x1e0665(_0x4567ad._0x3445e1,0x1b4,_0x4567ad._0x5f3c3d,0x2cd));const _0x37d854=_0x26ae41[_0x3aaa74(0x38e,0x3e4,_0x4567ad._0x1eb7f9,_0x4567ad._0x15575e)]??(_0x26ae41['path']?(''+_0x30157d[_0x3aaa74(0x405,_0x4567ad._0x4417e5,0x419,0x36b)]+_0x26ae41['path'])[_0x3aaa74(_0x4567ad._0x43d76a,_0x4567ad._0x1c5352,_0x4567ad._0x1edf4c,_0x4567ad._0x3d4646)](/^http:/,_0x3aaa74(_0x4567ad._0x4f1d73,_0x4567ad._0x44495c,_0x4567ad._0x500146,_0x4567ad._0xa84157))[_0x3aaa74(0x436,0x404,0x3a9,0x476)](/^https:/,_0x3aaa74(_0x4567ad._0x576a26,_0x4567ad._0x141976,0x3b7,0x341)):void 0x0);if(!_0x37d854)throw new Error(_0x1e0665(_0x4567ad._0x11ad93,0x255,_0x4567ad._0x247f2e,_0x4567ad._0x3e99d6)+_0x1b60fd['id']+_0x1e0665(0x1fe,0x14c,_0x4567ad._0x53c1f0,_0x4567ad._0x1ba9be));const _0x21e332=await this[_0x3aaa74(_0x4567ad._0x29982a,0x3ad,0x438,0x3f3)]({'request':_0x30157d[_0x1e0665(0x2bc,_0x4567ad._0x104c9c,0x2fa,_0x4567ad._0x196dfd)],'body':_0x26ae41[_0x3aaa74(0x38d,0x400,0x43d,0x42d)],'credential':_0x30157d[_0x3aaa74(_0x4567ad._0x5dbcb3,_0x4567ad._0x4f0823,_0x4567ad._0x484fdd,_0x4567ad._0x2bc93d)],'session':_0x30157d[_0x1e0665(_0x4567ad._0x4371d6,0x178,_0x4567ad._0x1b7dc2,_0x4567ad._0x385297)],'stream':!![]},{'accept':_0x26ae41[_0x3aaa74(_0x4567ad._0x299bff,0x47a,0x423,0x3dc)]??_0x3aaa74(_0x4567ad._0xfd15cf,0x3e6,0x40c,_0x4567ad._0x2da1b1),'includeContentType':![]});function _0x3aaa74(_0x2b72b5,_0x2dd07d,_0x3ed8a2,_0x928d12){return _0x2e041c(_0x2b72b5-_0x1fa0e0._0x510eed,_0x2dd07d-_0x1fa0e0._0xe04c0b,_0x2dd07d-_0x1fa0e0._0x556314,_0x3ed8a2);}for(const [_0x18e17f,_0x288096]of Object[_0x3aaa74(_0x4567ad._0x1ac552,0x455,0x4da,0x501)](_0x26ae41[_0x3aaa74(0x3a3,0x42c,_0x4567ad._0x5c7a3f,_0x4567ad._0x29ed15)]??{})){_0x21e332[_0x1e0665(_0x4567ad._0x289b9d,_0x4567ad._0x928dc3,0x243,0x297)](_0x18e17f,_0x288096);}_0x21e332[_0x1e0665(_0x4567ad._0x5357ef,_0x4567ad._0x2908d7,_0x4567ad._0x54239b,_0x4567ad._0x24b9c6)](_0x1e0665(0x2cf,_0x4567ad._0x1aa4c4,_0x4567ad._0x364db4,_0x4567ad._0xfb2860));const _0x3c64c0=this[_0x3aaa74(0x31a,0x3b9,0x3e8,0x45b)]({'headers':Object[_0x1e0665(_0x4567ad._0xd47026,_0x4567ad._0x1e566e,_0x4567ad._0x3f7d01,0x289)](_0x21e332[_0x3aaa74(0x4d8,0x455,0x508,0x4e7)]()),'url':_0x37d854});try{throwIfAborted(_0x5b1bd6);_0x3c64c0['readyState']!==WebSocket[_0x1e0665(0x201,0x29f,0x153,_0x4567ad._0x5ad561)]&&await waitForWebSocketOpen(_0x3c64c0,_0x5b1bd6);throwIfAborted(_0x5b1bd6);_0x26ae41[_0x3aaa74(_0x4567ad._0x4cb5c8,_0x4567ad._0x15575e,_0x4567ad._0x5f57ad,_0x4567ad._0x4d4646)]!==void 0x0&&_0x3c64c0['send'](JSON['stringify'](_0x26ae41[_0x3aaa74(_0x4567ad._0x2bcb35,_0x4567ad._0x3b7e89,_0x4567ad._0x4c6a6a,0x36d)]));for await(const _0x5d6dab of iterateWebSocketMessages(_0x3c64c0,_0x5b1bd6)){yield*_0x2f9fe4[_0x1e0665(0x269,_0x4567ad._0x506dbd,0x1dd,_0x4567ad._0x2b8c24)](_0x5d6dab);if(_0x2f9fe4[_0x3aaa74(_0x4567ad._0x57ee25,0x39f,0x40c,0x452)]?.())break;}yield{'type':'done','response':_0x2f9fe4[_0x1e0665(_0x4567ad._0x1e1517,_0x4567ad._0x2ed44a,0x302,0x2f1)]()};}finally{_0x3c64c0[_0x1e0665(_0x4567ad._0x27f069,_0x4567ad._0x4e53a8,_0x4567ad._0x37293f,0x2c0)]===WebSocket[_0x3aaa74(_0x4567ad._0x34fbcc,_0x4567ad._0x25fe98,_0x4567ad._0x302c9d,_0x4567ad._0x249287)]&&_0x3c64c0[_0x3aaa74(_0x4567ad._0x27ff75,0x44b,0x4fd,0x4d4)](0x3e8,_0x5b1bd6?.[_0x1e0665(0x2a6,0x282,_0x4567ad._0x8ede11,0x2a8)]?_0x3aaa74(_0x4567ad._0x538743,_0x4567ad._0x3f50f4,0x489,0x44c):_0x1e0665(0x16e,_0x4567ad._0xd8d2ef,_0x4567ad._0x5c7c1a,_0x4567ad._0x50c23b));}}};function _0x2e041c(_0x3081f4,_0x3ed828,_0x40f213,_0x332589){return _0x3920(_0x40f213- -0x1cf,_0x332589);}async function createHttpError(_0x1f9941){const _0x430500={_0x2c21c0:0x50,_0x4a4f79:0x4ac,_0x456d93:0x44f,_0x29d7eb:0x3da,_0x18488f:0x458,_0x39e73f:0x49e,_0x418f09:0x4b1,_0x50eaa8:0xf0,_0x8045fe:0xcb,_0x4221a7:0x130,_0x543475:0x4e8,_0x148db0:0x5c1,_0x5e7c67:0x29,_0x6f8fad:0xdd,_0x8d9bdf:0xe2},_0x450d2c={_0x63a300:0x17a};function _0x3a7277(_0xc73dcb,_0x40dd27,_0x33e9ac,_0x24b87f){return _0x55f0a4(_0xc73dcb-0x8a,_0x40dd27-0x1a,_0x33e9ac,_0x40dd27-0x728);}const _0x2af4d6=await _0x1f9941[_0x56adff(0x21,-_0x430500._0x2c21c0,0x58,-0x60)](),_0x11ed88=_0x2af4d6[_0x3a7277(_0x430500._0x4a4f79,_0x430500._0x456d93,_0x430500._0x29d7eb,_0x430500._0x18488f)]()||_0x1f9941[_0x3a7277(_0x430500._0x39e73f,0x50e,_0x430500._0x418f09,0x536)]||_0x56adff(_0x430500._0x50eaa8,0x103,_0x430500._0x8045fe,_0x430500._0x4221a7);function _0x56adff(_0x4bb8d3,_0x325e53,_0x22cd3a,_0x7ea793){return _0x2e041c(_0x4bb8d3-0x33,_0x325e53-_0x450d2c._0x63a300,_0x4bb8d3-0xd2,_0x7ea793);}return new Error(_0x3a7277(_0x430500._0x543475,0x54c,_0x430500._0x148db0,0x5f8)+_0x1f9941[_0x56adff(-_0x430500._0x5e7c67,-0x78,-_0x430500._0x6f8fad,-_0x430500._0x8d9bdf)]+':\x20'+_0x11ed88);}var AnthropicProviderAdapter=class{[_0x2e041c(0x1b,-0x13a,-0xa2,-0xf1)];[_0x2e041c(-0x112,-0xeb,-0xcb,-0xc1)];[_0x2e041c(-0x7d,-0xe8,-0xd9,-0xd6)];constructor(_0x278b7d){const _0x8578f2={_0x22e8be:0x251,_0x37c1ed:0x215,_0x5599f1:0x28e,_0x5cb6c6:0x2e8,_0x538ff5:0x338,_0x5d6851:0x223,_0x23916f:0x24e,_0x59a7fc:0x326},_0x13ab8c={_0xff5a30:0x12f},_0x576433={_0x15c00f:0x182,_0x8f3153:0xa2,_0x59f211:0x16};function _0x388435(_0x43e6f3,_0x48acf5,_0x5f4b10,_0x2dfdee){return _0x55f0a4(_0x43e6f3-_0x576433._0x15c00f,_0x48acf5-_0x576433._0x8f3153,_0x48acf5,_0x2dfdee- -_0x576433._0x59f211);}function _0x16e99f(_0x5187fb,_0x3bf927,_0x48c326,_0x41043a){return _0x2e041c(_0x5187fb-0x6,_0x3bf927-0x1,_0x3bf927- -_0x13ab8c._0xff5a30,_0x48c326);}this['authScheme']=_0x278b7d['authScheme'],this[_0x388435(-0x1f6,-_0x8578f2._0x22e8be,-_0x8578f2._0x37c1ed,-_0x8578f2._0x5599f1)]=_0x278b7d[_0x388435(-0x300,-_0x8578f2._0x5cb6c6,-_0x8578f2._0x538ff5,-_0x8578f2._0x5599f1)],this[_0x388435(-_0x8578f2._0x5d6851,-_0x8578f2._0x23916f,-_0x8578f2._0x59a7fc,-0x29c)]=_0x278b7d['protocolVersion'];}[_0x2e041c(-0x91,-0x18f,-0x103,-0x7a)](){const _0x41dbdc={_0x5d26fd:0x1ff,_0x347d70:0x2b1,_0x5da845:0x2f8},_0x315776={_0x1b30ef:0x6d,_0x1fe03d:0x19d};function _0x577d8d(_0x542bf1,_0x54f488,_0x5daaf7,_0x4b730c){return _0x2e041c(_0x542bf1-_0x315776._0x1b30ef,_0x54f488-0x5,_0x5daaf7- -_0x315776._0x1fe03d,_0x4b730c);}return new Error(_0x577d8d(-_0x41dbdc._0x5d26fd,-0x30c,-_0x41dbdc._0x347d70,-_0x41dbdc._0x5da845));}async[_0x2e041c(-0x105,-0xa0,-0xa7,-0x11b)](_0xc7f162,_0x44e8dd){const _0x3a32cc={_0x1dfdbc:0xa5,_0x6b04c2:0x221,_0x491db6:0x3f5,_0x3b09db:0xb4,_0x15cee7:0xc3,_0x424b6e:0x117,_0x47842a:0x346,_0x561589:0x412,_0x28b4cc:0x38c,_0x1ec4cd:0x16f,_0x44a9de:0x1a2,_0x49be57:0x164,_0x3642ac:0x33f,_0xa9ce14:0x3ec,_0x143593:0x325,_0x14beee:0x2f0,_0x554bdf:0x2ed,_0x568c35:0x1ae,_0x485e5f:0x1b3,_0x202411:0x18e,_0x212b8a:0x392,_0x4e6167:0x3e4,_0x21cca3:0x268,_0x1d60fc:0x2e1,_0x4375e5:0x261,_0x5c51fe:0x1fb,_0x5a8d18:0x24c,_0x49ac33:0xf6,_0x59c091:0x197,_0x1b6aa9:0x233,_0x2e2775:0x223,_0x131f54:0x22a,_0x4eebff:0x1fd,_0x3ba864:0x1fa,_0x23fa21:0x1fd,_0x1e4731:0x1d5,_0x283690:0x11c,_0x55ef3b:0x288,_0x4ace40:0x1ab,_0x3c1a20:0x184,_0x490cfe:0x21a,_0x2f4bf7:0x378,_0x43481:0x325},_0x445f80={_0x530668:0xad,_0x199e52:0x19a,_0xa86c4e:0x3ad},_0x511fa8=new Headers();function _0x39c748(_0x3552c5,_0x70bdb4,_0x81cd66,_0xf6bb6d){return _0x55f0a4(_0x3552c5-0x9e,_0x70bdb4-0x70,_0xf6bb6d,_0x81cd66-0x7e);}_0x511fa8[_0x39c748(-_0x3a32cc._0x1dfdbc,-_0x3a32cc._0x6b04c2,-0x164,-0x147)](_0x12ae5f(0x3d3,_0x3a32cc._0x491db6,0x418,0x3a4),_0x44e8dd[_0x39c748(-_0x3a32cc._0x3b09db,-_0x3a32cc._0x15cee7,-0x109,-_0x3a32cc._0x424b6e)]),_0x511fa8[_0x12ae5f(0x378,_0x3a32cc._0x47842a,0x301,_0x3a32cc._0x561589)](_0x12ae5f(_0x3a32cc._0x28b4cc,0x3d3,0x352,0x3c7),this[_0x39c748(-0x196,-_0x3a32cc._0x1ec4cd,-0x208,-_0x3a32cc._0x44a9de)]);_0x44e8dd['includeContentType']!==![]&&_0x511fa8[_0x39c748(-0x1e2,-0x192,-_0x3a32cc._0x49be57,-0xd1)]('content-type',_0x12ae5f(_0x3a32cc._0x3642ac,0x289,0x2a7,_0x3a32cc._0xa9ce14));this['authScheme']===_0x12ae5f(_0x3a32cc._0x143593,0x296,_0x3a32cc._0x14beee,_0x3a32cc._0x554bdf)?_0x511fa8[_0x12ae5f(0x378,0x424,0x381,0x2e6)]('authorization',_0x39c748(-0x23d,-_0x3a32cc._0x568c35,-_0x3a32cc._0x485e5f,-_0x3a32cc._0x202411)+_0xc7f162[_0x12ae5f(0x345,0x379,_0x3a32cc._0x212b8a,_0x3a32cc._0x4e6167)][_0x12ae5f(_0x3a32cc._0x21cca3,_0x3a32cc._0x1d60fc,_0x3a32cc._0x4375e5,_0x3a32cc._0x5c51fe)]):_0x511fa8['set'](_0x39c748(-0x12d,-_0x3a32cc._0x5a8d18,-0x1b8,-_0x3a32cc._0x49ac33),_0xc7f162[_0x39c748(-0x130,-0x108,-_0x3a32cc._0x59c091,-_0x3a32cc._0x1b6aa9)][_0x12ae5f(0x268,0x2e9,_0x3a32cc._0x14beee,_0x3a32cc._0x2e2775)]);const _0xa57a33=await this[_0x39c748(-_0x3a32cc._0x131f54,-_0x3a32cc._0x4eebff,-_0x3a32cc._0x3ba864,-0x252)]?.({'body':_0xc7f162[_0x39c748(-0x170,-0x205,-_0x3a32cc._0x23fa21,-0x22a)],'credential':_0xc7f162[_0x39c748(-0x182,-0x243,-0x197,-0x248)],'request':_0xc7f162[_0x39c748(-0xb1,-_0x3a32cc._0x1e4731,-_0x3a32cc._0x283690,-0x10f)],'session':_0xc7f162[_0x39c748(-_0x3a32cc._0x55ef3b,-0x300,-0x259,-0x2d4)],'stream':_0xc7f162[_0x39c748(-0x222,-_0x3a32cc._0x4ace40,-_0x3a32cc._0x3c1a20,-_0x3a32cc._0x490cfe)]});function _0x12ae5f(_0x19dc09,_0xfafe6a,_0x424117,_0x5da2ee){return _0x2e041c(_0x19dc09-_0x445f80._0x530668,_0xfafe6a-_0x445f80._0x199e52,_0x19dc09-_0x445f80._0xa86c4e,_0xfafe6a);}for(const [_0x2589df,_0x450681]of Object[_0x39c748(-0x162,-0x1bf,-0x12e,-0x1c9)](_0xa57a33??{})){_0x511fa8[_0x12ae5f(_0x3a32cc._0x2f4bf7,0x42e,0x2dc,_0x3a32cc._0x43481)](_0x2589df,_0x450681);}return _0x511fa8;}[_0x2e041c(-0xe5,-0x16f,-0xc4,-0x7f)](_0x12389f){return _0x12389f;}['resolveBaseUrl'](_0x2eaa36,_0x35aacb){return resolveSessionBaseUrl(_0x2eaa36,_0x35aacb);}[_0x55f0a4(-0x33c,-0x2e1,-0x242,-0x2b7)](_0x1b74c3,_0x20a526){return resolveApiCredential(_0x1b74c3,_0x20a526);}async['toApiError'](_0x36c0c4){return await createHttpError(_0x36c0c4);}},AnthropicModel=class extends RoutedModel{constructor(_0x393ea6={}){const _0x1e92e7={_0x34d9c3:0x59,_0x4926d5:0x101,_0x5b7a34:0x5f,_0x3b8715:0x25,_0x51144b:0x5d,_0x370d1d:0x100,_0xa4d14e:0x1b8,_0x18f2bb:0xbe,_0x29986a:0x1d6,_0x87b24d:0x162,_0x5ad78f:0x52,_0x4eeb70:0x24,_0x1bf89d:0x7d,_0x4e2a90:0x13e,_0x3c4f0e:0x12f,_0x3210a8:0x4e,_0x21958b:0x47,_0x17df4c:0x1b,_0x32c39e:0x1b,_0x2ac197:0x52},_0x592a52={_0x122292:0xdd,_0x48ce56:0x29d},_0x101bcf={_0x5c4e13:0x18f,_0x5ac79b:0x193};function _0x4f3f7d(_0x3a5ad3,_0x18d6da,_0x3edb7e,_0x4c21c4){return _0x55f0a4(_0x3a5ad3-0x40,_0x18d6da-_0x101bcf._0x5c4e13,_0x18d6da,_0x3edb7e-_0x101bcf._0x5ac79b);}function _0x21137b(_0xa0b903,_0x13b4b7,_0x23a7c2,_0x23d55e){return _0x55f0a4(_0xa0b903-_0x592a52._0x122292,_0x13b4b7-0x33,_0x23d55e,_0xa0b903-_0x592a52._0x48ce56);}super({'apiKey':_0x393ea6[_0x21137b(0x4b,0xd0,-_0x1e92e7._0x34d9c3,_0x1e92e7._0x4926d5)],'baseUrl':trimTrailingSlashes(_0x393ea6[_0x21137b(_0x1e92e7._0x5b7a34,-0x26,-_0x1e92e7._0x3b8715,_0x1e92e7._0x51144b)]??_0x4f3f7d(-_0x1e92e7._0x370d1d,-_0x1e92e7._0xa4d14e,-0x123,-_0x1e92e7._0x18f2bb)),'fetch':_0x393ea6[_0x4f3f7d(-0xed,-_0x1e92e7._0x29986a,-0x157,-_0x1e92e7._0x87b24d)],'maxTokens':_0x393ea6[_0x21137b(-0x2d,-0x2d,0x40,_0x1e92e7._0x5ad78f)]??0x4000,'model':_0x393ea6[_0x21137b(-0xf,_0x1e92e7._0x4eeb70,-_0x1e92e7._0x1bf89d,-0xa2)]??_0x21137b(0xf3,_0x1e92e7._0x4e2a90,_0x1e92e7._0x3c4f0e,0x12f),'reasoning':_0x393ea6['reasoning'],'providerAdapter':new AnthropicProviderAdapter({'authScheme':_0x393ea6[_0x21137b(_0x1e92e7._0x3210a8,0x63,_0x1e92e7._0x21958b,_0x1e92e7._0x17df4c)]??'x-api-key','headerResolver':_0x393ea6['headerResolver'],'protocolVersion':_0x393ea6['protocolVersion']??'2023-06-01'}),'providerSessionResolver':_0x393ea6[_0x21137b(_0x1e92e7._0x32c39e,0x6c,_0x1e92e7._0x2ac197,-0x3e)],'requestMutators':_0x393ea6[_0x4f3f7d(-0x43,-0xf4,-0x45,0x3c)],'router':new StaticModelSurfaceRouter({'complete':ANTHROPIC_MESSAGES_SURFACE,'stream':ANTHROPIC_MESSAGES_STREAM_SURFACE}),'surfaces':createAnthropicSurfaces()});}[_0x55f0a4(-0x25b,-0x207,-0x2ee,-0x26a)](_0x116dd7,_0x58ce35){const _0x3d4316={_0x22130f:0x3b9,_0x22baa8:0x3d9},_0x354aa8={_0x3f13f1:0x126,_0x273fd6:0x355};function _0x580acd(_0x2a8a8b,_0x1ecffd,_0x19b01c,_0x3b0cb8){return _0x2e041c(_0x2a8a8b-0x1c8,_0x1ecffd-_0x354aa8._0x3f13f1,_0x2a8a8b-_0x354aa8._0x273fd6,_0x3b0cb8);}return this[_0x580acd(0x31a,0x38f,_0x3d4316._0x22130f,_0x3d4316._0x22baa8)](_0x116dd7,ANTHROPIC_MESSAGES_SURFACE,_0x58ce35);}['stream'](_0x3afc69,_0x6aa703){const _0x2a82e8={_0xb38a80:0x1ad},_0x401c9d={_0x3ebbe8:0x15e};function _0x1f78cc(_0x4ad73e,_0xb1d3a5,_0x2000dd,_0x58e61c){return _0x2e041c(_0x4ad73e-0x153,_0xb1d3a5-0x70,_0x4ad73e- -_0x401c9d._0x3ebbe8,_0x58e61c);}return this[_0x1f78cc(-0x227,-0x1a0,-0x1c6,-_0x2a82e8._0xb38a80)](_0x3afc69,ANTHROPIC_MESSAGES_STREAM_SURFACE,_0x6aa703);}},OPENAI_CHAT_COMPLETIONS_SURFACE=_0x2e041c(0x8,0x70,-0xd,0x50),OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE=_0x55f0a4(-0x20f,-0x257,-0x2d6,-0x279),OPENAI_RESPONSES_SURFACE='openai-responses',OPENAI_RESPONSES_STREAM_SURFACE=_0x2e041c(0x49,-0x5c,0x24,0xb8),OPENAI_RESPONSES_WEBSOCKET_SURFACE=_0x2e041c(-0xef,-0xf2,-0x129,-0x74),OpenAiApiError=class extends Error{[_0x55f0a4(-0x34e,-0x233,-0x299,-0x2a8)];['body'];constructor(_0x734067,_0x6a59fe,_0x22aef0){const _0x5059ad={_0x568172:0x1e0,_0x12414b:0x208,_0x32cfaf:0x2b2,_0x208e8a:0x1d6,_0x50dcb2:0x247,_0x10b5b9:0x1cc},_0x331e27={_0x45fffa:0xfc};super(_0x22aef0),this['name']='OpenAiApiError',this[_0x291bf5(-_0x5059ad._0x568172,-_0x5059ad._0x12414b,-0x1f9,-_0x5059ad._0x32cfaf)]=_0x734067;function _0xae14bc(_0x348854,_0x523c80,_0x1a8656,_0x337a45){return _0x55f0a4(_0x348854-0x3c,_0x523c80-0x141,_0x337a45,_0x1a8656-0x26f);}function _0x291bf5(_0x31082c,_0x1428a7,_0x1304f7,_0x557114){return _0x2e041c(_0x31082c-_0x331e27._0x45fffa,_0x1428a7-0x50,_0x1304f7- -0xfe,_0x557114);}this[_0x291bf5(-_0x5059ad._0x208e8a,-_0x5059ad._0x50dcb2,-_0x5059ad._0x10b5b9,-0x22d)]=_0x6a59fe;}},OpenAiResponsesStreamError=class extends Error{['code'];[_0x2e041c(-0x8e,-0x106,-0xfb,-0x1b5)];constructor(_0x3ba4e7,_0x1b076f={}){const _0x23227b={_0x4abae8:0x13,_0x3f8cf5:0x48,_0x287faf:0x89,_0x5ca8fc:0x134,_0x2f2eb7:0x1e1,_0x5d7e8e:0x1a9,_0x26999d:0x10c,_0x5dbf7b:0x1a3,_0x3749fb:0x8f,_0x5e94a1:0x19f,_0x3aa964:0x12b,_0x120bfe:0xed,_0x301ad9:0x4bc,_0x443f10:0x49f,_0x3d6c82:0x489,_0xc2969c:0x506},_0x4b117a={_0x429ca8:0x9a},_0x245b00={_0x166c7c:0x178,_0x5bca4d:0x1b4};function _0x9d4375(_0x152a66,_0x13d2b0,_0x26dc20,_0xf49904){return _0x55f0a4(_0x152a66-_0x245b00._0x166c7c,_0x13d2b0-_0x245b00._0x5bca4d,_0x152a66,_0x13d2b0-0x731);}super(_0x3ba4e7),this[_0x5cfadb(-_0x23227b._0x4abae8,0x91,_0x23227b._0x3f8cf5,-_0x23227b._0x287faf)]=_0x5cfadb(-_0x23227b._0x5ca8fc,-_0x23227b._0x2f2eb7,-_0x23227b._0x5d7e8e,-_0x23227b._0x26999d);function _0x5cfadb(_0x25e1f2,_0x3a1601,_0x33f680,_0x19b4cb){return _0x55f0a4(_0x25e1f2-0xe7,_0x3a1601-_0x4b117a._0x429ca8,_0x19b4cb,_0x25e1f2-0x17f);}this[_0x5cfadb(-0x127,-_0x23227b._0x5dbf7b,-_0x23227b._0x3749fb,-_0x23227b._0x5e94a1)]=_0x1b076f[_0x5cfadb(-0x127,-0x156,-_0x23227b._0x3aa964,-_0x23227b._0x120bfe)],this[_0x9d4375(0x452,0x489,_0x23227b._0x301ad9,0x4b9)]=_0x1b076f[_0x9d4375(_0x23227b._0x443f10,_0x23227b._0x3d6c82,_0x23227b._0xc2969c,0x51a)];}};function stringifySystem(_0x45a999){const _0x12e907={_0x108e99:0x2e7,_0x43a80d:0x22b,_0x7d982b:0x31b,_0x4bd866:0x309,_0x219ed0:0x24e},_0x45e29f={_0x49f3a2:0x107},_0x3fc9d4={_0x3670f6:0x175,_0x64aeaa:0x1c1,_0x4cffc1:0x6b5};function _0x292e31(_0x40562b,_0xf9af6d,_0x5bffc4,_0x2ac1e3){return _0x55f0a4(_0x40562b-_0x3fc9d4._0x3670f6,_0xf9af6d-_0x3fc9d4._0x64aeaa,_0x2ac1e3,_0xf9af6d-_0x3fc9d4._0x4cffc1);}function _0x2843f7(_0xba0602,_0x22acc2,_0x45918c,_0x639f1c){return _0x2e041c(_0xba0602-0xf4,_0x22acc2-_0x45e29f._0x49f3a2,_0x22acc2-0x30d,_0x45918c);}return _0x45a999[_0x2843f7(_0x12e907._0x108e99,0x279,0x20b,_0x12e907._0x43a80d)](_0x5a9748=>_0x5a9748['text'])[_0x2843f7(_0x12e907._0x7d982b,0x26f,_0x12e907._0x4bd866,_0x12e907._0x219ed0)]('\x0a\x0a');}function createToolDefinitions(_0xc78a41){const _0x22218e={_0x3b1ab0:0x570,_0x23719a:0x515},_0xd8256a={_0x235d7c:0xde,_0x135e57:0x205,_0x7df886:0x36b,_0x42246e:0x380,_0x26ef85:0x2f1,_0x5c67bf:0x1fe},_0x353db6={_0xbe8874:0x42,_0x45e9ef:0x14f};if(_0xc78a41['length']===0x0)return void 0x0;function _0x21e05b(_0x57def2,_0x1ac32c,_0x42ccc2,_0x63f894){return _0x55f0a4(_0x57def2-_0x353db6._0xbe8874,_0x1ac32c-_0x353db6._0x45e9ef,_0x63f894,_0x42ccc2-0x756);}return _0xc78a41[_0x21e05b(_0x22218e._0x3b1ab0,0x550,_0x22218e._0x23719a,0x4f1)](_0x3c938c=>{const _0x23c499={_0x53b945:0x113,_0x32334c:0x6,_0x31719f:0x2a6},_0x27a443={_0x5ba666:0x75a};function _0x188205(_0x54ec95,_0x4bbb7c,_0xbb5344,_0x5be477){return _0x21e05b(_0x54ec95-0x9d,_0x4bbb7c-0x1ab,_0x5be477- -_0x27a443._0x5ba666,_0xbb5344);}function _0x38dbbc(_0x5cc0f0,_0x20b759,_0x6508c7,_0x58f22d){return _0x21e05b(_0x5cc0f0-_0x23c499._0x53b945,_0x20b759-_0x23c499._0x32334c,_0x5cc0f0- -_0x23c499._0x31719f,_0x20b759);}return{'type':'function','function':{'name':_0x3c938c[_0x188205(-_0xd8256a._0x235d7c,-0x13d,-_0xd8256a._0x135e57,-0x196)],'description':_0x3c938c[_0x188205(-_0xd8256a._0x7df886,-_0xd8256a._0x42246e,-0x399,-_0xd8256a._0x26ef85)],'parameters':_0x3c938c[_0x188205(-_0xd8256a._0x5c67bf,-0x163,-0x1b3,-0x1cb)]}};});}function stringifyValue(_0x2c3289){const _0x475ac2={_0x569c3c:0x1b2,_0x5ab6ff:0x189,_0x2382cd:0x127,_0x3a218d:0x283,_0x1bbb9b:0x317},_0x177cf9={_0x17e5fa:0x2d2},_0x4da420={_0x1d50a6:0x60,_0x94411e:0x170};function _0x146184(_0x3aa353,_0x1e4e8d,_0xe0ec6a,_0x1f8a03){return _0x2e041c(_0x3aa353-_0x4da420._0x1d50a6,_0x1e4e8d-_0x4da420._0x94411e,_0xe0ec6a-0x3ab,_0x1e4e8d);}function _0x44ac53(_0x28e71f,_0x2df090,_0x1b9fdf,_0x29ae08){return _0x55f0a4(_0x28e71f-0x5c,_0x2df090-0x122,_0x28e71f,_0x1b9fdf-_0x177cf9._0x17e5fa);}return typeof _0x2c3289===_0x44ac53(_0x475ac2._0x569c3c,_0x475ac2._0x5ab6ff,0x113,_0x475ac2._0x2382cd)?_0x2c3289:JSON[_0x146184(0x254,_0x475ac2._0x3a218d,0x261,_0x475ac2._0x1bbb9b)](_0x2c3289);}function parseToolInput2(_0x4e72df){const _0x18b430={_0x562b36:0xd2,_0x2e799e:0x110};function _0x27beec(_0x47a1b1,_0xd9e6ab,_0x3ebec3,_0xc56118){return _0x55f0a4(_0x47a1b1-0xb1,_0xd9e6ab-0xa,_0xc56118,_0xd9e6ab-0x147);}try{return JSON[_0x27beec(-0xe9,-_0x18b430._0x562b36,-_0x18b430._0x2e799e,-0xda)](_0x4e72df);}catch{return _0x4e72df;}}function isResponsesReasoningItem(_0x34ccbd){const _0x26cb32={_0x5158d8:0x3fc,_0x49fb50:0x35c,_0x4821af:0x3b6,_0x390c7b:0x376,_0x2c335f:0x2c5},_0x3dd144={_0x2a69e0:0x1ec,_0x46243c:0xd4,_0x318bc5:0x5f0},_0x182f45={_0x4bfb27:0x6a6};function _0x593176(_0x501ce0,_0x2ddacf,_0x885ff8,_0xe8da8c){return _0x55f0a4(_0x501ce0-0x1f3,_0x2ddacf-0xb6,_0x885ff8,_0xe8da8c-_0x182f45._0x4bfb27);}function _0x21772d(_0x2c35d8,_0x59ab00,_0xd7c9b8,_0x4f98a8){return _0x55f0a4(_0x2c35d8-_0x3dd144._0x2a69e0,_0x59ab00-_0x3dd144._0x46243c,_0x59ab00,_0x2c35d8-_0x3dd144._0x318bc5);}return typeof _0x34ccbd===_0x593176(0x364,_0x26cb32._0x5158d8,_0x26cb32._0x49fb50,0x3ea)&&_0x34ccbd!==null&&_0x21772d(0x376,0x41f,_0x26cb32._0x4821af,0x3be)in _0x34ccbd&&_0x34ccbd[_0x21772d(_0x26cb32._0x390c7b,0x400,_0x26cb32._0x2c335f,0x2c0)]==='reasoning';}function isResponsesMessageItem(_0x39a874){const _0x12e1c1={_0x33725b:0x85,_0x15773c:0x13,_0x486f23:0x305,_0xc264f6:0x2f9,_0x417497:0x295},_0x4581aa={_0x4407d8:0x1f4},_0xe1d301={_0xcb116b:0x15,_0x26b899:0x4f2};function _0xfa1127(_0x11b724,_0x38b509,_0x26da05,_0x10ceb0){return _0x55f0a4(_0x11b724-_0xe1d301._0xcb116b,_0x38b509-0x131,_0x38b509,_0x10ceb0-_0xe1d301._0x26b899);}function _0x211b0b(_0x5a6293,_0x738b42,_0x3dba5b,_0x2a70d1){return _0x2e041c(_0x5a6293-_0x4581aa._0x4407d8,_0x738b42-0xdf,_0x5a6293-0x194,_0x738b42);}return typeof _0x39a874===_0x211b0b(_0x12e1c1._0x33725b,0x11c,0x44,-_0x12e1c1._0x15773c)&&_0x39a874!==null&&_0xfa1127(0x1fe,_0x12e1c1._0x486f23,0x1bf,0x278)in _0x39a874&&_0x39a874[_0xfa1127(_0x12e1c1._0xc264f6,0x2b4,_0x12e1c1._0x417497,0x278)]===_0xfa1127(0x285,0x1fe,0x208,0x29f);}function isResponsesFunctionCallItem(_0x761fc0){const _0x44d763={_0x158208:0x3af,_0x46fd29:0x3fa,_0xf5f965:0x3a9,_0x3f66b6:0x39e,_0x593497:0x332,_0x59814a:0x37d,_0x5b0e6d:0x38d,_0x41e1e9:0x413},_0x1deab7={_0x414c16:0x74,_0x2948a3:0x1e3},_0x387961={_0x4c4d1a:0x4c,_0x559759:0x44a};function _0x17f30e(_0x2be5f3,_0x440683,_0x3bf3dd,_0x53d3bb){return _0x2e041c(_0x2be5f3-_0x387961._0x4c4d1a,_0x440683-0xd7,_0x53d3bb-_0x387961._0x559759,_0x2be5f3);}function _0x1357a2(_0x2cbc71,_0xbcd4e9,_0x167d1f,_0x5655ab){return _0x2e041c(_0x2cbc71-_0x1deab7._0x414c16,_0xbcd4e9-_0x1deab7._0x2948a3,_0x5655ab-0x114,_0x2cbc71);}return typeof _0x761fc0==='object'&&_0x761fc0!==null&&_0x17f30e(0x355,_0x44d763._0x158208,_0x44d763._0x46fd29,0x37d)in _0x761fc0&&_0x761fc0[_0x17f30e(_0x44d763._0xf5f965,_0x44d763._0x3f66b6,_0x44d763._0x593497,_0x44d763._0x59814a)]===_0x17f30e(0x392,_0x44d763._0x5b0e6d,0x35f,_0x44d763._0x41e1e9);}function createContentBlocks(_0x3751e6,_0x1b93af){const _0x52c3ce={_0x5b1f39:0x25b,_0x16bce6:0x1b2,_0x4230e8:0x5c,_0x2690e2:0x20d,_0x34b647:0x1d5,_0x2c3b22:0x120,_0xef25b6:0x1b8,_0x46cdb2:0x1e7,_0x340837:0xa4,_0x161fb8:0x25b,_0x490272:0xca,_0x3ddf13:0x10d,_0x5d56d3:0x311,_0x486ff8:0x2ef,_0xb66b65:0x339,_0x199d1c:0x36f,_0x552432:0x181},_0x17756c={_0x2be744:0x166,_0x172cc6:0x65},_0x540a5d={_0x20a228:0x51};function _0x4d497a(_0x5e9112,_0x56f39f,_0x59b1e0,_0x4a41ab){return _0x55f0a4(_0x5e9112-0x130,_0x56f39f-_0x540a5d._0x20a228,_0x59b1e0,_0x56f39f-0x46b);}function _0x39af8b(_0x297cca,_0x43e896,_0x26ecbb,_0x1ba5e3){return _0x2e041c(_0x297cca-_0x17756c._0x2be744,_0x43e896-_0x17756c._0x172cc6,_0x297cca-0x1d0,_0x43e896);}const _0x23972a=[];_0x3751e6[_0x4d497a(0x303,_0x52c3ce._0x5b1f39,0x1ea,_0x52c3ce._0x16bce6)]>0x0&&_0x23972a[_0x39af8b(0x97,_0x52c3ce._0x4230e8,0x137,0xd3)]({'type':_0x4d497a(0x251,_0x52c3ce._0x2690e2,0x15c,0x168),'text':_0x3751e6});for(const _0x9d548b of _0x1b93af){if(_0x9d548b['id'][_0x4d497a(_0x52c3ce._0x34b647,0x192,0x234,0x1d9)]()[_0x39af8b(0x16d,_0x52c3ce._0x2c3b22,_0x52c3ce._0xef25b6,_0x52c3ce._0x46cdb2)]===0x0||_0x9d548b['function']['name'][_0x39af8b(_0x52c3ce._0x340837,0xdf,0x6a,0x1)]()[_0x4d497a(0x1a8,_0x52c3ce._0x161fb8,0x2cf,0x1fe)]===0x0)continue;_0x23972a[_0x4d497a(0xd4,0x185,_0x52c3ce._0x490272,_0x52c3ce._0x3ddf13)]({'type':'tool_use','id':_0x9d548b['id'],'name':_0x9d548b[_0x4d497a(_0x52c3ce._0x5d56d3,_0x52c3ce._0x486ff8,_0x52c3ce._0xb66b65,_0x52c3ce._0x199d1c)][_0x39af8b(0x1eb,0x15f,_0x52c3ce._0x552432,0x1b2)],'input':parseToolInput2(_0x9d548b['function']['arguments'])});}return _0x23972a;}function createUsage(_0x644f05){const _0x526261={_0x50e1ad:0x30e,_0x11e9a9:0x350,_0x411013:0x436,_0x54d5c2:0x27f,_0xa43fbf:0x203,_0x33dca0:0x401,_0x5b9c5d:0x39f,_0x1a896c:0x446},_0x32c359={_0x27421d:0x1ce,_0x1b355e:0x160},_0x4fc089={_0x2c041d:0x16,_0x886f7d:0x89,_0xe6e1ea:0x5b7};function _0x47ec8f(_0x479f47,_0x5372dd,_0x54e9e4,_0x2e16d4){return _0x55f0a4(_0x479f47-_0x4fc089._0x2c041d,_0x5372dd-_0x4fc089._0x886f7d,_0x54e9e4,_0x5372dd-_0x4fc089._0xe6e1ea);}function _0x1b64b4(_0x5e7b9a,_0x3ae4be,_0x5bfca1,_0x381a3d){return _0x2e041c(_0x5e7b9a-_0x32c359._0x27421d,_0x3ae4be-0x15,_0x5bfca1- -_0x32c359._0x1b355e,_0x5e7b9a);}return{'inputTokens':_0x644f05?.[_0x47ec8f(_0x526261._0x50e1ad,0x3af,_0x526261._0x11e9a9,_0x526261._0x411013)]??0x0,'outputTokens':_0x644f05?.[_0x1b64b4(-0x285,-_0x526261._0x54d5c2,-0x297,-_0x526261._0xa43fbf)]??0x0,..._0x644f05?.['completion_tokens_details']?.[_0x47ec8f(0x3ba,0x384,_0x526261._0x33dca0,0x365)]!==void 0x0?{'reasoningTokens':_0x644f05['completion_tokens_details'][_0x47ec8f(0x2fd,0x384,_0x526261._0x5b9c5d,_0x526261._0x1a896c)]}:{}};}function resolveReasoningVisibility2(_0xbc1720){const _0x45995f={_0x2b0ca2:0x2a1,_0x3818e9:0x27e,_0xdd32e8:0x28f,_0x1ea63e:0x143,_0x5b7908:0x122},_0x3bee31={_0x7e92a8:0xf7,_0x2d5463:0x14a},_0x5c7257={_0x28b4ee:0xf,_0x19fd13:0x13a};function _0x972138(_0x4d76da,_0x1a1372,_0x2aa4ed,_0x268a18){return _0x2e041c(_0x4d76da-0x5e,_0x1a1372-_0x5c7257._0x28b4ee,_0x1a1372- -_0x5c7257._0x19fd13,_0x268a18);}function _0x4adf9d(_0x4224e0,_0x59ddbc,_0x277c18,_0x12cd5e){return _0x55f0a4(_0x4224e0-_0x3bee31._0x7e92a8,_0x59ddbc-_0x3bee31._0x2d5463,_0x59ddbc,_0x12cd5e-0x1fe);}return _0xbc1720[_0x4adf9d(-0x14,0x49,0x8c,0x72)]?.[_0x972138(-_0x45995f._0x2b0ca2,-0x211,-_0x45995f._0x3818e9,-_0x45995f._0xdd32e8)]??_0x972138(-_0x45995f._0x1ea63e,-_0x45995f._0x5b7908,-0x148,-0x1ce);}function isUserVisibleReasoning(_0x1c6b00){const _0x32c8d1={_0x3fb230:0x209,_0x294411:0x2ad,_0x2898f6:0x237,_0x10c218:0x29d},_0x1b65f4={_0x94f38a:0x357},_0x4d1c10={_0x2a0c3b:0x1d4,_0x274992:0x28c};function _0x3cc447(_0x3e0b0f,_0xf7b1a2,_0x4a1360,_0x400b49){return _0x2e041c(_0x3e0b0f-0x1e9,_0xf7b1a2-_0x4d1c10._0x2a0c3b,_0x4a1360-_0x4d1c10._0x274992,_0x3e0b0f);}function _0x2329c7(_0x5f22f1,_0x1d9c72,_0x2265d1,_0x4814a9){return _0x2e041c(_0x5f22f1-0x94,_0x1d9c72-0x60,_0x1d9c72-_0x1b65f4._0x94f38a,_0x5f22f1);}return resolveOpenAiReasoningConfig(_0x1c6b00[_0x3cc447(_0x32c8d1._0x3fb230,0x2ee,_0x32c8d1._0x294411,0x354)])!==void 0x0&&resolveReasoningVisibility2(_0x1c6b00)===_0x3cc447(0x346,_0x32c8d1._0x2898f6,0x2a4,_0x32c8d1._0x10c218);}function createChatRequestBody(_0x3488d8,_0x2c8990){const _0x386945={_0x8a2fac:0x2c4,_0x4a1cd5:0x223,_0x25f3ce:0x49b,_0x22234a:0x45c,_0x1387d3:0x298,_0x579235:0x26d,_0x4b9fb6:0x30a,_0x54bd29:0x19e,_0x176b76:0x23e,_0x1613ee:0x3f9,_0xb727df:0x3ff,_0x35baed:0x272,_0x5e947b:0x287,_0x286884:0x19c,_0x1b756a:0x27f,_0x2e650d:0x4c3,_0x4a39d3:0x40f,_0x56c879:0x579,_0x58ebe8:0x524,_0x142539:0x563,_0x11c952:0x4b7,_0x1ba8d5:0x5e9,_0x33cbdc:0x515,_0x6ea36e:0x387,_0x4edc3a:0x3a0,_0x32bac4:0x459,_0x147e4a:0x355,_0x24c126:0x385,_0x17c895:0x19b,_0x2c5bbc:0x260,_0x3b7691:0x23e,_0x59d86b:0x2af,_0x2d3c5f:0x2b7,_0x52f80e:0x2a5,_0x3bf8d7:0x1f9,_0x42fce1:0x25d,_0x23faf3:0x340,_0x100e2c:0x317,_0x2935b9:0x360,_0x4dffd2:0x534,_0x23c7ae:0x4af},_0x156b89={_0x35dc14:0x19f},_0x22a3bb={_0x1e6883:0x106},_0x232df4={_0x2e3087:0x1cb,_0x4c6540:0x1dc,_0x43605c:0x25f,_0x2db651:0x26b,_0x4e6e2b:0x265,_0x1cdbfa:0x235,_0x503029:0x2d8,_0x48db20:0xc8,_0x184c7a:0x19e,_0x154808:0x2e1,_0x29ba37:0x26e,_0x4d7183:0x211,_0x260efb:0x18b,_0x3246e5:0x24c,_0x2f8802:0x351,_0x1d07eb:0x2a2,_0x534978:0x236,_0x1b974c:0x2ed,_0x216181:0x231,_0x48c2fd:0x24c,_0x5db4b4:0x1cf,_0x14b43e:0x244,_0x3f804a:0x1e6,_0x2cc5ab:0x233,_0x593a8e:0x27f,_0x1b50d1:0x229,_0x1efa5e:0x28f,_0x37cf3a:0x1de,_0x5a72ad:0x194,_0x4308df:0x306,_0x5304b9:0x278},_0x37f260={_0x57a812:0x299},_0x582441=[],_0x47ba87=stringifySystem(_0x3488d8['system']);_0x47ba87['length']>0x0&&_0x582441[_0x324054(_0x386945._0x8a2fac,0x192,_0x386945._0x4a1cd5,0x2b1)]({'role':_0x3ccec8(_0x386945._0x25f3ce,0x44c,_0x386945._0x22234a,0x4fc),'content':_0x47ba87});for(const _0x3fbe04 of _0x3488d8[_0x324054(_0x386945._0x1387d3,_0x386945._0x579235,0x2a3,_0x386945._0x4b9fb6)]){const _0x3933d3=[],_0x309cc3=[],_0x443ba0=()=>{const _0x193d6a={_0x367c72:0xb};if(_0x3fbe04[_0x8b74c9(_0x232df4._0x2e3087,0x26d,_0x232df4._0x4c6540,_0x232df4._0x43605c)]===_0x6ea9a7(_0x232df4._0x2db651,_0x232df4._0x4e6e2b,_0x232df4._0x1cdbfa,_0x232df4._0x503029)){if(_0x3933d3['length']===0x0&&_0x309cc3['length']===0x0)return;_0x582441[_0x6ea9a7(0x176,_0x232df4._0x48db20,0x16f,_0x232df4._0x184c7a)]({'role':'assistant','content':_0x3933d3[_0x8b74c9(0x260,_0x232df4._0x154808,_0x232df4._0x29ba37,0x278)]>0x0?_0x3933d3[_0x6ea9a7(_0x232df4._0x4d7183,0x1d5,0x2c9,_0x232df4._0x260efb)]('\x0a\x0a'):null,..._0x309cc3[_0x6ea9a7(_0x232df4._0x3246e5,0x22a,0x21b,0x2fa)]>0x0?{'tool_calls':_0x309cc3[_0x8b74c9(_0x232df4._0x2f8802,0x221,0x338,_0x232df4._0x1d07eb)](0x0)}:{}}),_0x3933d3[_0x6ea9a7(_0x232df4._0x3246e5,_0x232df4._0x534978,_0x232df4._0x1b974c,_0x232df4._0x216181)]=0x0;return;}if(_0x3933d3[_0x6ea9a7(_0x232df4._0x48c2fd,_0x232df4._0x5db4b4,0x215,0x265)]===0x0)return;function _0x8b74c9(_0x503c52,_0x1c1f1f,_0x3c83c1,_0x2da079){return _0x3ccec8(_0x3c83c1,_0x2da079- -0x26d,_0x3c83c1-_0x193d6a._0x367c72,_0x2da079-0x27);}function _0x6ea9a7(_0x3a58b7,_0x358f1c,_0x1888dd,_0x48fbe2){return _0x3ccec8(_0x48fbe2,_0x3a58b7- -_0x37f260._0x57a812,_0x1888dd-0x186,_0x48fbe2-0x2);}_0x582441[_0x8b74c9(_0x232df4._0x14b43e,_0x232df4._0x4d7183,_0x232df4._0x3f804a,0x1a2)]({'role':_0x3fbe04[_0x6ea9a7(_0x232df4._0x2cc5ab,0x21b,_0x232df4._0x593a8e,_0x232df4._0x1b50d1)],'content':_0x3933d3[_0x6ea9a7(0x211,_0x232df4._0x1efa5e,_0x232df4._0x37cf3a,_0x232df4._0x5a72ad)]('\x0a\x0a')}),_0x3933d3[_0x8b74c9(0x234,0x1c4,_0x232df4._0x4308df,_0x232df4._0x5304b9)]=0x0;};for(const _0x5ae62b of normalizeContent(_0x3fbe04[_0x324054(_0x386945._0x54bd29,0x196,_0x386945._0x176b76,0x2f5)])){if(_0x5ae62b[_0x3ccec8(0x4b0,0x47b,_0x386945._0x1613ee,0x3da)]==='text'){_0x3933d3[_0x3ccec8(0x4af,0x40f,_0x386945._0xb727df,0x48a)](_0x5ae62b[_0x3ccec8(0x4b3,0x497,0x3ed,0x51a)]);continue;}if(_0x5ae62b[_0x324054(_0x386945._0x35baed,_0x386945._0x5e947b,0x28f,0x211)]===_0x324054(0x1a9,_0x386945._0x286884,0x226,_0x386945._0x1b756a)){_0x309cc3[_0x3ccec8(_0x386945._0x2e650d,_0x386945._0x4a39d3,0x3ad,0x4a4)]({'id':_0x5ae62b['id'],'type':_0x3ccec8(0x5fa,_0x386945._0x56c879,0x596,0x610),'function':{'name':_0x5ae62b[_0x3ccec8(_0x386945._0x58ebe8,_0x386945._0x142539,_0x386945._0x11c952,_0x386945._0x1ba8d5)],'arguments':JSON['stringify'](_0x5ae62b['input']??{})}});continue;}if(_0x5ae62b[_0x3ccec8(0x42f,0x47b,_0x386945._0x33cbdc,0x4ea)]!==_0x324054(0x33b,0x339,_0x386945._0x6ea36e,_0x386945._0x4edc3a))continue;_0x443ba0(),_0x582441[_0x3ccec8(_0x386945._0x32bac4,0x40f,0x416,0x45e)]({'role':_0x324054(_0x386945._0x147e4a,0x3c3,_0x386945._0x24c126,0x423),'content':stringifyValue(_0x5ae62b[_0x324054(_0x386945._0x17c895,_0x386945._0x2c5bbc,_0x386945._0x3b7691,_0x386945._0x59d86b)]),'tool_call_id':_0x5ae62b[_0x324054(_0x386945._0x2d3c5f,0x230,_0x386945._0x52f80e,0x343)]});}_0x443ba0();}function _0x3ccec8(_0x158005,_0x11b5be,_0x2e092f,_0x18ddf2){return _0x55f0a4(_0x158005-0x56,_0x11b5be-_0x22a3bb._0x1e6883,_0x158005,_0x11b5be-0x6f5);}function _0x324054(_0x20927e,_0x2af84d,_0x3d63b5,_0x12fdfd){return _0x55f0a4(_0x20927e-0x131,_0x2af84d-_0x156b89._0x35dc14,_0x20927e,_0x3d63b5-0x509);}const _0x52dd6e=resolveOpenAiReasoningConfig(_0x3488d8['reasoning']);return{'model':_0x3488d8[_0x324054(0x27f,_0x386945._0x3bf8d7,_0x386945._0x42fce1,0x1c9)],'messages':_0x582441,'stream':_0x2c8990,..._0x52dd6e?{'max_completion_tokens':_0x3488d8[_0x3ccec8(0x426,0x42b,0x44f,0x3c0)]}:{'max_tokens':_0x3488d8[_0x3ccec8(0x4b7,0x42b,0x392,0x3e5)]},..._0x52dd6e?.[_0x324054(_0x386945._0x23faf3,_0x386945._0x100e2c,0x2bc,_0x386945._0x2935b9)]?{'reasoning_effort':_0x52dd6e[_0x3ccec8(0x47c,0x4a8,0x426,0x518)]}:{},...createToolDefinitions(_0x3488d8['tools'])?{'tools':createToolDefinitions(_0x3488d8[_0x3ccec8(_0x386945._0x4dffd2,0x4d6,_0x386945._0x23c7ae,0x47a)])}:{}};}function createResponsesRequestBody(_0x2d0b4c,_0x377199){return{...toOpenAiResponsesRequest(_0x2d0b4c),..._0x377199?{'stream':!![]}:{},'store':![]};}function createOpenAiResponsesWebSocketEvent(_0x4c2212,_0x2098f2={}){const _0x39e3ea={_0x488e6f:0x3ef,_0x169eac:0x5b9,_0x5c3e24:0x4b1,_0xf51727:0x51f,_0x10027d:0x52f},_0x59dc70={_0x5aa35b:0x13d},_0x2404d1={_0xf2d42d:0x6f3};function _0x30c9bd(_0xdb2c20,_0x41636d,_0x236961,_0x607bdd){return _0x55f0a4(_0xdb2c20-0x82,_0x41636d-0x8,_0xdb2c20,_0x41636d-_0x2404d1._0xf2d42d);}function _0x51cfb5(_0x182abc,_0x50b680,_0x38706a,_0x549bf7){return _0x2e041c(_0x182abc-0x1d3,_0x50b680-_0x59dc70._0x5aa35b,_0x38706a-0x52e,_0x50b680);}const _0x7094c8=toOpenAiResponsesRequest(_0x4c2212);return{'type':_0x30c9bd(0x4b5,0x44e,_0x39e3ea._0x488e6f,0x423),..._0x7094c8,..._0x2098f2['input']?{'input':_0x2098f2[_0x51cfb5(_0x39e3ea._0x169eac,0x5a0,0x529,0x5e4)]}:{},..._0x2098f2['previousResponseId']?{'previous_response_id':_0x2098f2[_0x30c9bd(_0x39e3ea._0x5c3e24,0x55b,_0x39e3ea._0xf51727,_0x39e3ea._0x10027d)]}:{},'store':![]};}function normalizeAssistantContent(_0x56fb79){const _0x29aa51={_0x17e80f:0x11a,_0x4c1a55:0x6e,_0x370a1a:0x1f1,_0x4221a5:0x11d,_0x645ef1:0x1e},_0x5073c2={_0x55dc17:0x18d,_0x8cc4ae:0x243,_0x54114d:0x2b3,_0x582778:0x178,_0x7e507b:0x18b,_0x5d1abd:0x210},_0x5dfe34={_0x4c3a12:0x15b,_0x57aadf:0x145},_0x21c96d={_0x75e534:0x1c8},_0x402437={_0x1a6318:0x11e};function _0x4f4e8a(_0x1cc767,_0x5d94aa,_0x5e1a59,_0x40902f){return _0x2e041c(_0x1cc767-0x10d,_0x5d94aa-_0x402437._0x1a6318,_0x5e1a59- -0x188,_0x5d94aa);}function _0x547704(_0x2d2f61,_0x1ace8a,_0x2b3f43,_0x557aee){return _0x2e041c(_0x2d2f61-0x25,_0x1ace8a-0x97,_0x2b3f43-0x80,_0x1ace8a);}if(typeof _0x56fb79===_0x547704(_0x29aa51._0x17e80f,0x12e,_0x29aa51._0x4c1a55,-0x47))return _0x56fb79;if(!Array[_0x4f4e8a(-_0x29aa51._0x370a1a,-0xff,-0x159,-_0x29aa51._0x4221a5)](_0x56fb79))return'';return _0x56fb79[_0x547704(-0xc0,-0x54,-0x14,-0xad)](_0x4b8b6e=>{function _0xad728a(_0x4c9443,_0x4f2155,_0x453192,_0x442995){return _0x4f4e8a(_0x4c9443-0x54,_0x442995,_0x4c9443-0x3b4,_0x442995-_0x21c96d._0x75e534);}function _0x39eb33(_0x30bf65,_0x1b1594,_0xe050db,_0x2d062a){return _0x547704(_0x30bf65-_0x5dfe34._0x4c3a12,_0x30bf65,_0xe050db-0x290,_0x2d062a-_0x5dfe34._0x57aadf);}return _0x4b8b6e[_0x39eb33(0x2b7,_0x5073c2._0x55dc17,_0x5073c2._0x8cc4ae,_0x5073c2._0x54114d)]===_0xad728a(0x17b,0x1fc,0x212,_0x5073c2._0x582778)?_0x4b8b6e['text']:_0x4b8b6e[_0x39eb33(_0x5073c2._0x7e507b,0x11f,0x1c3,_0x5073c2._0x5d1abd)];})[_0x547704(-0x2c,0x11,-_0x29aa51._0x645ef1,-0x1)]('');}function normalizeResponsesMessageContent(_0x3fe7c9){const _0x31e18d={_0x5bdc93:0x140,_0x2ca95a:0x1e8,_0x553601:0x10d,_0x42b479:0x62,_0x197478:0x1d,_0x20e3de:0x74,_0x51e4a8:0xb1},_0x341653={_0x49b773:0xf9,_0x596c48:0x10c,_0x3571e0:0x1bd,_0x4a8134:0x121,_0x13c532:0x145,_0x402f98:0x223,_0x10f68a:0x1a1,_0x27104a:0x1ae,_0x2690c2:0x185,_0x219c4d:0xe0,_0x1146e0:0x77,_0x2cc3bc:0xef,_0x529720:0x106,_0x4d9aad:0x2c8,_0x469417:0x23d,_0x2ae390:0x2ca},_0x53c9ec={_0x5b6ed9:0xf3},_0x122625={_0x532a90:0xaa,_0x45aa76:0x1d3,_0x4744e5:0x5e},_0x376b12={_0x181914:0x166,_0x23ffe5:0x2fc},_0xcfc5a9={_0x20a255:0x116};function _0x339db4(_0x3fa0da,_0xa772ad,_0x2fef51,_0x360240){return _0x2e041c(_0x3fa0da-0x12,_0xa772ad-_0xcfc5a9._0x20a255,_0xa772ad- -0x185,_0x360240);}if(!Array[_0x2788ce(_0x31e18d._0x5bdc93,_0x31e18d._0x2ca95a,_0x31e18d._0x553601,0x17e)](_0x3fe7c9))return'';function _0x2788ce(_0x4d240a,_0x338dd6,_0x149cec,_0x431101){return _0x55f0a4(_0x4d240a-_0x376b12._0x181914,_0x338dd6-0x5d,_0x338dd6,_0x431101-_0x376b12._0x23ffe5);}return _0x3fe7c9[_0x2788ce(0x144,_0x31e18d._0x42b479,_0x31e18d._0x197478,0xbb)](_0x5840e1=>{if(!_0x5840e1||typeof _0x5840e1!==_0x25e154(_0x341653._0x49b773,_0x341653._0x596c48,0x9e,-0x1a))return'';function _0x25e154(_0x558124,_0x3a0721,_0x3a98bf,_0x2a7c72){return _0x2788ce(_0x558124-_0x122625._0x532a90,_0x558124,_0x3a98bf-_0x122625._0x45aa76,_0x3a98bf-_0x122625._0x4744e5);}const _0x3c308a=_0x5840e1;if(_0x3c308a[_0x5c4bf0(-0x21f,-0x134,-_0x341653._0x3571e0,-0x1dc)]===_0x25e154(0x164,_0x341653._0x4a8134,0x136,0x1bc)&&typeof _0x3c308a[_0x25e154(_0x341653._0x13c532,0x50,0xfc,0xd8)]==='string')return _0x3c308a[_0x5c4bf0(-_0x341653._0x402f98,-0x1a8,-_0x341653._0x10f68a,-_0x341653._0x27104a)];if(_0x3c308a[_0x25e154(0x54,_0x341653._0x2690c2,_0x341653._0x219c4d,_0x341653._0x1146e0)]===_0x25e154(0x70,_0x341653._0x2cc3bc,0x60,_0x341653._0x529720)&&typeof _0x3c308a[_0x25e154(0xf8,0xd6,0x60,0xbb)]==='string')return _0x3c308a[_0x5c4bf0(-_0x341653._0x4d9aad,-0x283,-_0x341653._0x469417,-_0x341653._0x2ae390)];function _0x5c4bf0(_0x33efd6,_0x544ef7,_0x3659f4,_0x53d7da){return _0x339db4(_0x33efd6-_0x53c9ec._0x5b6ed9,_0x3659f4-0x95,_0x3659f4-0x1ee,_0x544ef7);}return'';})[_0x2788ce(0x132,0x11b,_0x31e18d._0x20e3de,_0x31e18d._0x51e4a8)]('');}function extractOpenAiReasoningText(_0x486fe3){const _0x46dd72={_0x1e8174:0x2f3,_0x8f5b5:0x2d5,_0x5abc8d:0x3b3,_0x182fe2:0x34b,_0x116f5b:0x38c,_0x5e4d2d:0x392,_0x2d70b5:0x27d,_0xc3ce29:0x26f,_0x1308af:0x1b3,_0x286a27:0x202,_0x35571b:0x1a3,_0x2b2d0d:0x1c7},_0x55ab36={_0x7540a4:0x171,_0x166658:0x1c8};if(typeof _0x486fe3[_0x54678b(0x2b4,0x2ac,_0x46dd72._0x1e8174,_0x46dd72._0x8f5b5)]===_0x54678b(_0x46dd72._0x5abc8d,_0x46dd72._0x182fe2,0x2ef,0x2f5))return _0x486fe3['text'];function _0x54678b(_0x296d08,_0x3c9e8e,_0x255713,_0x4694fd){return _0x55f0a4(_0x296d08-0x53,_0x3c9e8e-0x14,_0x4694fd,_0x3c9e8e-0x50a);}function _0x4f6938(_0x1af8f8,_0x103b05,_0x3a84b3,_0x32bf4e){return _0x2e041c(_0x1af8f8-_0x55ab36._0x7540a4,_0x103b05-_0x55ab36._0x166658,_0x1af8f8- -0x188,_0x103b05);}if(!Array[_0x54678b(0x2e9,_0x46dd72._0x116f5b,_0x46dd72._0x5e4d2d,0x3b0)](_0x486fe3[_0x4f6938(-0x2a6,-0x242,-_0x46dd72._0x2d70b5,-0x250)]))return'';return _0x486fe3['content'][_0x54678b(0x1b4,_0x46dd72._0xc3ce29,_0x46dd72._0x1308af,_0x46dd72._0x286a27)](_0x5447ac=>_0x5447ac[_0x54678b(0x318,0x290,0x335,0x2d0)]===_0x54678b(0x2d1,0x21c,0x164,0x1d5)&&typeof _0x5447ac['text']===_0x54678b(0x349,0x34b,0x2dd,0x2f7))[_0x4f6938(-0x21c,-0x2b7,-_0x46dd72._0x35571b,-_0x46dd72._0x2b2d0d)](_0x3c7d9f=>_0x3c7d9f[_0x4f6938(-0x239,-0x278,-0x19b,-0x29d)]??'')['join']('');}function createOpenAiReasoningBlock(_0x4eeb56){const _0x2b5e68={_0x32baca:0x41,_0x8d849:0x90,_0x134842:0x237,_0x756909:0x1ab},_0x399bae={_0x32c49e:0x34},_0x2b88c5={_0x78cca4:0x1f0,_0x2d7c80:0x1bc};function _0x5c78da(_0xcf7146,_0x6a4ec7,_0x17223a,_0x7690dc){return _0x2e041c(_0xcf7146-_0x2b88c5._0x78cca4,_0x6a4ec7-_0x2b88c5._0x2d7c80,_0x6a4ec7- -0x1d4,_0xcf7146);}const _0x5b43d6=extractOpenAiReasoningText(_0x4eeb56);function _0x555e16(_0xb6f822,_0x5a0600,_0x23dc4a,_0x57f1a9){return _0x55f0a4(_0xb6f822-0x19a,_0x5a0600-_0x399bae._0x32c49e,_0x5a0600,_0x23dc4a-0x278);}return{'type':'openai_reasoning','summary':structuredClone(_0x4eeb56['summary']??[]),..._0x4eeb56['id']?{'id':_0x4eeb56['id']}:{},..._0x4eeb56['encrypted_content']?{'encryptedContent':_0x4eeb56[_0x555e16(_0x2b5e68._0x32baca,_0x2b5e68._0x8d849,0xda,0x17a)]}:{},..._0x5b43d6[_0x5c78da(-0x29b,-_0x2b5e68._0x134842,-0x234,-_0x2b5e68._0x756909)]>0x0?{'text':_0x5b43d6}:{}};}function hasVisibleOpenAiReasoning(_0x3e3926){const _0x5eb9df={_0x5c54cb:0x145,_0x59e8f8:0x27c,_0x4625ec:0x1d3,_0x41ac30:0x20b,_0x1ae21e:0x1e8,_0x14ae82:0x16c},_0x2a45da={_0xbb51c9:0xd,_0x18e1b3:0x9a,_0x4888d4:0x392},_0x322b6f={_0x5ca06b:0x1d8};function _0x51814c(_0x392a8e,_0x401562,_0x339227,_0x849e92){return _0x2e041c(_0x392a8e-0x18c,_0x401562-0xd3,_0x392a8e- -_0x322b6f._0x5ca06b,_0x339227);}function _0x15c42c(_0x542428,_0xc40bf4,_0x1e9428,_0x53863b){return _0x55f0a4(_0x542428-_0x2a45da._0xbb51c9,_0xc40bf4-_0x2a45da._0x18e1b3,_0xc40bf4,_0x542428-_0x2a45da._0x4888d4);}return _0x3e3926[_0x15c42c(0x1fb,_0x5eb9df._0x5c54cb,_0x5eb9df._0x59e8f8,0x194)]['length']>0x0||typeof _0x3e3926['text']===_0x15c42c(_0x5eb9df._0x4625ec,_0x5eb9df._0x41ac30,_0x5eb9df._0x1ae21e,_0x5eb9df._0x14ae82);}function parseChatCompletionResponse(_0x292ae6){const _0x329bc7={_0x483e9e:0xf3,_0x5b7060:0x126,_0x3dabe6:0x16a,_0x8f49c:0x1d5,_0x2f8d81:0xac,_0x399c10:0x121,_0x320a09:0xde,_0x350d06:0xaf,_0x22adea:0x53,_0xea1ac2:0xa9,_0x15bce4:0x16,_0x3b0bc9:0xa,_0x3e4500:0x99,_0x28542a:0xb2,_0x168fef:0x138,_0x487663:0x1e6,_0x1a0cc5:0x158,_0x160188:0xb6,_0x273798:0xe2,_0x5f8e8c:0x25d,_0x17ef8a:0xe6,_0x3296f0:0x11f,_0x6a79d9:0x17,_0x423a11:0xd4,_0x11e42e:0xf4,_0x11a8c2:0xbe,_0x1ff73c:0x136},_0x266188={_0x271e5c:0x11e,_0x309bbd:0x374},_0x5a92b7={_0x2ddd5e:0xad};function _0x39999d(_0xad5ada,_0x379ab6,_0x3ffac8,_0x4534b3){return _0x2e041c(_0xad5ada-0x144,_0x379ab6-0xaa,_0xad5ada- -_0x5a92b7._0x2ddd5e,_0x3ffac8);}const _0x3a89a7=[],_0x436bfc=[];let _0x390bf0=_0x5d8fbe(_0x329bc7._0x483e9e,_0x329bc7._0x5b7060,_0x329bc7._0x3dabe6,_0x329bc7._0x8f49c);for(const _0x28d18b of _0x292ae6[_0x5d8fbe(_0x329bc7._0x2f8d81,0xe3,0x156,_0x329bc7._0x399c10)]??[]){const _0x106596=_0x28d18b[_0x5d8fbe(0x1ca,0x121,_0x329bc7._0x320a09,_0x329bc7._0x350d06)],_0x91cd1=normalizeAssistantContent(_0x106596?.[_0x5d8fbe(_0x329bc7._0x22adea,_0x329bc7._0xea1ac2,_0x329bc7._0x15bce4,-_0x329bc7._0x3b0bc9)]);_0x91cd1[_0x39999d(-0x110,-_0x329bc7._0x3e4500,-_0x329bc7._0x28542a,-_0x329bc7._0x168fef)]>0x0&&_0x3a89a7[_0x39999d(-_0x329bc7._0x487663,-_0x329bc7._0x1a0cc5,-0x22f,-0x1f2)](_0x91cd1),_0x106596?.[_0x5d8fbe(_0x329bc7._0x160188,0x7e,_0x329bc7._0x273798,0x123)]&&_0x436bfc['push'](..._0x106596['tool_calls']),_0x28d18b['finish_reason']===_0x39999d(-0x1f6,-0x13c,-0x149,-_0x329bc7._0x5f8e8c)&&(_0x390bf0=_0x5d8fbe(_0x329bc7._0x17ef8a,0x91,_0x329bc7._0x3296f0,_0x329bc7._0x6a79d9));}function _0x5d8fbe(_0x30664c,_0x25674c,_0x1d67c9,_0x2a96d3){return _0x55f0a4(_0x30664c-_0x266188._0x271e5c,_0x25674c-0xd5,_0x30664c,_0x25674c-_0x266188._0x309bbd);}return _0x436bfc['length']>0x0&&(_0x390bf0=_0x5d8fbe(0x15,0x91,0x4b,_0x329bc7._0x423a11)),{'id':_0x292ae6['id']??_0x39999d(-0xb8,-0xe4,-_0x329bc7._0x11e42e,-0x88)+Date['now'](),'content':createContentBlocks(_0x3a89a7[_0x5d8fbe(0xb8,0x129,0x78,0x11c)](''),_0x436bfc),'stopReason':_0x390bf0,'usage':createUsage(_0x292ae6[_0x39999d(-_0x329bc7._0x11a8c2,-_0x329bc7._0x1ff73c,-0x4c,-0x5e)])};}function parseResponsesResponse(_0x3a5b33,_0x3d1f6b){const _0x490b00={_0x29c1c6:0x295,_0x5178a0:0x327,_0x15ca9a:0x2d6,_0x3ff86c:0x29a,_0x554ec9:0x2b1,_0x3e424e:0x2a9,_0x2f55a8:0x16,_0x464142:0x6e,_0x322958:0x213,_0x2c35bc:0x237,_0x1ffba0:0x3e2,_0x11da4b:0x34f,_0x47e467:0x2cf,_0x2b90de:0x331,_0x242b83:0x60,_0x238e49:0x3d0,_0x358e8c:0x2d4,_0xc4667b:0x376,_0xa5d7b:0x49,_0x28dccd:0x3b0,_0x3705a0:0x37f,_0x1c4de0:0x122,_0x1d6874:0x244,_0x24d1c3:0x2b6,_0x16e99b:0x2b2,_0x248ee0:0x39c,_0x488c6b:0x2fb,_0x2fc1a2:0x480,_0x2ce72b:0x45d,_0x32a942:0x3d0,_0x4411f8:0x369,_0x406455:0x1f1,_0x59a8de:0x2fa,_0x10c5d5:0x24e,_0x3c6218:0x1cc,_0x57b259:0x303,_0x11f11a:0x2d2,_0x311285:0x70,_0x4b0d26:0x56,_0x2fdef7:0x83,_0x3fc046:0xc4,_0x5dc8cd:0x8,_0x45110a:0x141,_0x464ca1:0x102,_0x2823a3:0x3f2,_0x2847f4:0x39b,_0x4363d0:0x40c,_0x11e139:0x123,_0x445199:0x3b6,_0x19b8b0:0x388,_0xa5dfbe:0x34a,_0x1ada87:0x313,_0xcbfd99:0x472,_0x9cdc0e:0x3b2,_0x185495:0x3d1,_0x39bedd:0x317,_0xaf0c5f:0x2aa,_0x202146:0x2d6,_0x4bffe2:0x28,_0x4eff96:0xc5,_0x21a43d:0xbe,_0x1836f1:0x6d},_0x570425={_0x413ba0:0x93,_0x3ff2b2:0xd3,_0x3f0c7a:0x3e2},_0x5e4437={_0x55b0db:0x69};function _0x446c48(_0x2bc925,_0x1926cb,_0x52851d,_0x78f183){return _0x55f0a4(_0x2bc925-0x167,_0x1926cb-_0x5e4437._0x55b0db,_0x52851d,_0x2bc925-0x2e1);}const _0x2e5408=[];function _0x473c64(_0x49dc80,_0x2a3bf5,_0x105f0b,_0x13eeea){return _0x2e041c(_0x49dc80-_0x570425._0x413ba0,_0x2a3bf5-_0x570425._0x3ff2b2,_0x13eeea-_0x570425._0x3f0c7a,_0x105f0b);}for(const _0x2c2f7c of _0x3a5b33[_0x473c64(_0x490b00._0x29c1c6,0x2f0,_0x490b00._0x5178a0,_0x490b00._0x15ca9a)]??[]){if(isResponsesReasoningItem(_0x2c2f7c)){if(isUserVisibleReasoning(_0x3d1f6b)){const _0x270877=createOpenAiReasoningBlock(_0x2c2f7c);hasVisibleOpenAiReasoning(_0x270877)&&_0x2e5408[_0x473c64(_0x490b00._0x3ff86c,_0x490b00._0x554ec9,0x2f7,_0x490b00._0x3e424e)](_0x270877);}continue;}if(isResponsesMessageItem(_0x2c2f7c)){const _0x224694=normalizeResponsesMessageContent(_0x2c2f7c[_0x446c48(_0x490b00._0x2f55a8,_0x490b00._0x464142,0x36,0x1d)]);_0x224694[_0x473c64(0x42a,0x3a5,0x324,0x37f)]>0x0&&_0x2e5408[_0x473c64(_0x490b00._0x322958,_0x490b00._0x2c35bc,0x26a,0x2a9)]({'type':_0x473c64(_0x490b00._0x1ffba0,_0x490b00._0x11da4b,_0x490b00._0x47e467,_0x490b00._0x2b90de),'text':_0x224694});continue;}if(!isResponsesFunctionCallItem(_0x2c2f7c)||typeof _0x2c2f7c[_0x446c48(0x1f,0x77,_0x490b00._0x242b83,0x23)]!==_0x473c64(0x3b0,0x378,0x47a,_0x490b00._0x238e49)||_0x2c2f7c[_0x473c64(0x253,_0x490b00._0x358e8c,_0x490b00._0xc4667b,0x2cd)][_0x446c48(0x8,-0x9d,0x35,_0x490b00._0xa5d7b)]()[_0x473c64(0x34a,0x3d1,_0x490b00._0x28dccd,_0x490b00._0x3705a0)]===0x0||typeof _0x2c2f7c['name']!==_0x446c48(_0x490b00._0x1c4de0,0x101,0x1d7,0xab)||_0x2c2f7c['name'][_0x473c64(0x207,_0x490b00._0x1d6874,0x34d,_0x490b00._0x24d1c3)]()['length']===0x0||typeof _0x2c2f7c[_0x473c64(0x269,_0x490b00._0x16e99b,_0x490b00._0x248ee0,_0x490b00._0x488c6b)]!==_0x473c64(0x3da,_0x490b00._0x2fc1a2,_0x490b00._0x2ce72b,_0x490b00._0x32a942))continue;_0x2e5408[_0x473c64(0x32b,_0x490b00._0x4411f8,0x353,0x2a9)]({'type':_0x473c64(0x2cf,0x31e,_0x490b00._0x406455,0x2ac),'id':_0x2c2f7c['call_id'],'name':_0x2c2f7c['name'],'input':parseToolInput2(_0x2c2f7c[_0x473c64(_0x490b00._0x59a8de,0x2f8,_0x490b00._0x10c5d5,0x2fb)])});}return!_0x2e5408[_0x446c48(0x141,0x169,_0x490b00._0x3c6218,0x163)](_0x23b0af=>_0x23b0af[_0x446c48(0x67,0xab,0x40,0x86)]===_0x446c48(0x83,0x82,0x94,0xa8))&&_0x3a5b33[_0x473c64(_0x490b00._0x57b259,_0x490b00._0x11f11a,0x39a,0x36b)]&&_0x2e5408[_0x446c48(-0x5,-_0x490b00._0x311285,-_0x490b00._0x4b0d26,0x2b)]({'type':_0x446c48(_0x490b00._0x2fdef7,0xb3,_0x490b00._0x3fc046,_0x490b00._0x5dc8cd),'text':_0x3a5b33[_0x446c48(0xbd,0x128,0x177,0x32)]}),{'id':_0x3a5b33['id'],'content':_0x2e5408,'stopReason':_0x2e5408[_0x446c48(_0x490b00._0x45110a,0x129,0x175,0x18b)](_0x2dfa9f=>_0x2dfa9f[_0x446c48(0x67,-0x1,0x3d,0x88)]===_0x473c64(0x234,0x358,0x201,0x2ac))?'tool_use':'end_turn','usage':{'inputTokens':_0x3a5b33[_0x446c48(0x123,0xb7,0xc4,_0x490b00._0x464ca1)]?.[_0x473c64(0x410,0x3fb,_0x490b00._0x2823a3,_0x490b00._0x2847f4)]??0x0,'outputTokens':_0x3a5b33[_0x473c64(_0x490b00._0x4363d0,0x335,0x418,0x3d1)]?.['output_tokens']??0x0,..._0x3a5b33[_0x446c48(_0x490b00._0x11e139,0x157,0xf7,0x164)]?.[_0x473c64(0x359,_0x490b00._0x445199,_0x490b00._0x19b8b0,_0x490b00._0xa5dfbe)]?.[_0x473c64(_0x490b00._0x1ada87,0x37a,0x363,0x35c)]!==void 0x0?{'reasoningTokens':_0x3a5b33[_0x473c64(_0x490b00._0xcbfd99,_0x490b00._0x9cdc0e,0x45b,_0x490b00._0x185495)][_0x473c64(0x3a6,_0x490b00._0x39bedd,0x395,0x34a)]['reasoning_tokens']}:{}},..._0x3a5b33[_0x473c64(_0x490b00._0xaf0c5f,0x2eb,0x258,_0x490b00._0x202146)]?{'providerState':{'openaiResponsesOutput':structuredClone(_0x3a5b33[_0x446c48(_0x490b00._0x4bffe2,_0x490b00._0x4eff96,_0x490b00._0x21a43d,_0x490b00._0x1836f1)]),'openaiResponsesResponseId':_0x3a5b33['id']}}:{}};}function extractErrorMessage(_0x391d42){const _0x1b03bc={_0x355814:0x4b,_0x276650:0x1a2,_0x322e02:0x178,_0x874230:0x1c2,_0x28d6ff:0x162,_0x433c53:0x223,_0xb71b5c:0x14f,_0x393a87:0xd0,_0x21f8d3:0xab,_0x230e5c:0x141,_0x4ae92d:0x202,_0x341e59:0x164,_0x32ae7a:0x14c,_0x236c5f:0x19d,_0x44fbe5:0x201,_0x1653f6:0x198,_0x1b64f6:0x218,_0x34dfa4:0x19e,_0x41db76:0x1ba,_0x166481:0x1f6,_0x56124e:0x79,_0x2cffea:0xcf,_0x43cd72:0x161,_0x55b569:0x187,_0x4c3d5f:0x21a},_0x4f3c15={_0x1bd9cc:0x176,_0x342789:0x141};function _0x27bff3(_0x4972d5,_0x449e7a,_0x359cbc,_0x1f569c){return _0x2e041c(_0x4972d5-0xc6,_0x449e7a-0x170,_0x449e7a- -0xbe,_0x4972d5);}if(_0x391d42[_0xd7aeff(-0x4f,-0xcf,-_0x1b03bc._0x355814,-0x6d)]===0x0)return'';try{const _0xae99b1=JSON[_0x27bff3(-0x16a,-0x12a,-_0x1b03bc._0x276650,-0x1c6)](_0x391d42);if(typeof _0xae99b1[_0x27bff3(-_0x1b03bc._0x322e02,-_0x1b03bc._0x874230,-0x122,-_0x1b03bc._0x28d6ff)]?.[_0x27bff3(-_0x1b03bc._0x433c53,-0x164,-0x17c,-0x223)]===_0x27bff3(-_0x1b03bc._0xb71b5c,-_0x1b03bc._0x393a87,-_0x1b03bc._0x21f8d3,-_0x1b03bc._0x230e5c)&&_0xae99b1[_0xd7aeff(-0x18c,-0x170,-_0x1b03bc._0x4ae92d,-0x1a5)][_0x27bff3(-0x20a,-_0x1b03bc._0x341e59,-0x113,-0x13b)][_0xd7aeff(-0x124,-0x198,-0x1fb,-_0x1b03bc._0x32ae7a)]()['length']>0x0)return _0xae99b1['error'][_0x27bff3(-_0x1b03bc._0x236c5f,-_0x1b03bc._0x341e59,-_0x1b03bc._0x44fbe5,-0xe2)][_0xd7aeff(-0x146,-_0x1b03bc._0x1653f6,-0x11f,-0x147)]();if(typeof _0xae99b1[_0x27bff3(-0xbb,-_0x1b03bc._0x341e59,-_0x1b03bc._0x1b64f6,-_0x1b03bc._0x34dfa4)]==='string'&&_0xae99b1[_0x27bff3(-0x1e3,-0x164,-_0x1b03bc._0x41db76,-0xc8)][_0xd7aeff(-0x178,-0x198,-0x1b1,-_0x1b03bc._0x166481)]()[_0xd7aeff(-_0x1b03bc._0x56124e,-_0x1b03bc._0x2cffea,-_0x1b03bc._0x43cd72,-0x59)]>0x0)return _0xae99b1[_0x27bff3(-_0x1b03bc._0x55b569,-0x164,-0x1d1,-_0x1b03bc._0x4c3d5f)]['trim']();}catch{return _0x391d42;}function _0xd7aeff(_0x50d64a,_0x2b2598,_0x12634d,_0x4153bd){return _0x55f0a4(_0x50d64a-0x131,_0x2b2598-_0x4f3c15._0x1bd9cc,_0x4153bd,_0x2b2598-_0x4f3c15._0x342789);}return _0x391d42;}async function createOpenAiApiError(_0x4338fe){const _0x391ef5={_0x2e3111:0xe8,_0x5d00b8:0x1a3,_0x247f00:0x123,_0x373020:0x1bd,_0x389351:0x1db,_0x59268f:0x131,_0x4bcd6c:0xa7},_0x354d2b={_0x56d9d2:0x117,_0x55f753:0xeb},_0x4233e2={_0x4327f3:0x183};function _0x376f45(_0x403f0b,_0x3d5b8c,_0x430b06,_0x57ee75){return _0x2e041c(_0x403f0b-_0x4233e2._0x4327f3,_0x3d5b8c-0x175,_0x3d5b8c-0x1a2,_0x57ee75);}const _0x18fbe9=(await _0x4338fe[_0x4bcca9(-_0x391ef5._0x2e3111,-0x173,-0x212,-0x15e)]())['trim']();function _0x4bcca9(_0x51bc22,_0x34c70a,_0x48a174,_0x595799){return _0x55f0a4(_0x51bc22-0x125,_0x34c70a-_0x354d2b._0x56d9d2,_0x51bc22,_0x34c70a-_0x354d2b._0x55f753);}const _0x57044b=extractErrorMessage(_0x18fbe9)||_0x4338fe['statusText']||_0x4bcca9(-_0x391ef5._0x5d00b8,-0x154,-_0x391ef5._0x247f00,-0x1cc)+_0x4338fe[_0x4bcca9(-0x15b,-_0x391ef5._0x373020,-_0x391ef5._0x389351,-_0x391ef5._0x59268f)];return new OpenAiApiError(_0x4338fe[_0x376f45(0xfb,_0x391ef5._0x4bcd6c,0x15,0x116)],_0x18fbe9,_0x57044b);}function readSseData(_0x20a36a){const _0x119b92={_0x57e3d5:0x14f,_0x50f03e:0x285,_0x3335ef:0x1e0,_0x5c9ba9:0x25a,_0x5044ad:0x2f1,_0x88ba11:0x2a4,_0x2b9ae0:0x307,_0x34b2fa:0x136,_0x3877cd:0x1ed,_0x47d3b4:0x216,_0x4fb6d1:0x24c};function _0x4c7070(_0x20a94d,_0x4ee834,_0x39e8d4,_0x5c6fb0){return _0x2e041c(_0x20a94d-0x6c,_0x4ee834-0x1de,_0x5c6fb0- -0x159,_0x20a94d);}function _0x335179(_0x482951,_0x4f3782,_0x23d9b6,_0x57ec8d){return _0x55f0a4(_0x482951-0x1bb,_0x4f3782-0xd4,_0x57ec8d,_0x23d9b6- -0x9);}return _0x20a36a[_0x335179(-_0x119b92._0x57e3d5,-_0x119b92._0x50f03e,-_0x119b92._0x3335ef,-_0x119b92._0x5c9ba9)]('\x0a')[_0x335179(-_0x119b92._0x5044ad,-0x252,-_0x119b92._0x88ba11,-_0x119b92._0x2b9ae0)](_0x4af879=>_0x4af879[_0x4c7070(-0x12e,-0x28d,-0x1c8,-0x1d2)]('data:'))[_0x4c7070(-0x245,-0x29f,-_0x119b92._0x34b2fa,-_0x119b92._0x3877cd)](_0x508208=>_0x508208[_0x335179(-0x24f,-0x31b,-0x2b0,-0x2c6)](0x5)[_0x4c7070(-0x1ab,-0x207,-0x13b,-0x1be)]())['join']('\x0a')[_0x4c7070(-_0x119b92._0x47d3b4,-_0x119b92._0x4fb6d1,-0x33c,-0x285)]();}var OpenAiChatCompletionsStreamParser=class{[_0x2e041c(-0xed,-0x9c,-0x7d,-0x6b)]=[];[_0x2e041c(-0x181,-0x1d6,-0x151,-0xdf)]=new Map();['toolCallOrder']=[];['toolUseStartEmitted']=new Set();[_0x55f0a4(-0x19e,-0x222,-0x2e6,-0x24a)]='';[_0x55f0a4(-0x12d,-0x19a,-0x137,-0x18a)]='end_turn';['usage'];[_0x2e041c(-0xb3,-0x9b,-0x5c,-0x4e)](_0x8beac2){const _0x3ee415={_0x4530cb:0x2,_0x2b6312:0xa8,_0x2b7e07:0xfa,_0x591815:0x146,_0x3c45c3:0x8f,_0x5ea6f1:0x27a,_0x1f6ae9:0x21c,_0xfaa2a8:0x255},_0x4d4632={_0x3cdb38:0xf8},_0x2188ed={_0x6d6551:0x180,_0x9519d1:0x63},_0x37bca6=readSseData(_0x8beac2);if(_0x37bca6['length']===0x0||_0x37bca6==='[DONE]')return[];const _0x3fc229=JSON[_0x36d050(_0x3ee415._0x4530cb,-_0x3ee415._0x2b6312,-_0x3ee415._0x2b7e07,-0x65)](_0x37bca6);this[_0x36d050(-0x196,-0xd9,-_0x3ee415._0x591815,-0xdb)]=_0x3fc229['id']??this['responseId'];function _0x1db3fe(_0xe5345a,_0x374493,_0x4f15b0,_0x34b35b){return _0x55f0a4(_0xe5345a-0x1a9,_0x374493-_0x2188ed._0x6d6551,_0x34b35b,_0x4f15b0- -_0x2188ed._0x9519d1);}function _0x36d050(_0x176888,_0x406972,_0x1c412b,_0x289484){return _0x2e041c(_0x176888-_0x4d4632._0x3cdb38,_0x406972-0x1c8,_0x406972- -0x3c,_0x1c412b);}return this[_0x36d050(-_0x3ee415._0x3c45c3,-0x4d,-0x8c,-0x88)]=_0x3fc229[_0x1db3fe(-_0x3ee415._0x5ea6f1,-_0x3ee415._0x1f6ae9,-0x221,-_0x3ee415._0xfaa2a8)]??this['usage'],this['consumeEvent'](_0x3fc229);}['finish'](){const _0x4075f4={_0x2ef2b3:0x41,_0x450ef0:0x12b,_0x172719:0x77,_0x3be83f:0x1,_0x60725a:0x1f,_0x54e13a:0xad,_0xd01d94:0x362,_0x9ff0a7:0x328,_0x32dbf0:0x139},_0x1d1381={_0x10d7ff:0x45},_0x523f2b={_0x48c754:0xf2,_0x45d369:0x22};function _0x321c4c(_0xda0560,_0x5f0ada,_0x18e5ae,_0x45a88){return _0x55f0a4(_0xda0560-_0x523f2b._0x48c754,_0x5f0ada-_0x523f2b._0x45d369,_0x5f0ada,_0x18e5ae-0x5ad);}function _0x2a24e5(_0x257df8,_0x1c86e5,_0x1ed46f,_0x5760b3){return _0x2e041c(_0x257df8-_0x1d1381._0x10d7ff,_0x1c86e5-0x12a,_0x1ed46f-0xbf,_0x5760b3);}return this[_0x2a24e5(0xa,-0x50,-0x2c,0x45)]['length']>0x0&&(this['stopReason']=_0x2a24e5(-_0x4075f4._0x2ef2b3,-_0x4075f4._0x450ef0,-_0x4075f4._0x172719,-0xc9)),{'id':this[_0x2a24e5(-0x50,-_0x4075f4._0x3be83f,0x22,0xba)]||'chatcmpl-'+Date['now'](),'content':createContentBlocks(this[_0x2a24e5(-_0x4075f4._0x60725a,0xcd,0x42,_0x4075f4._0x54e13a)][_0x321c4c(0x3ea,0x320,_0x4075f4._0xd01d94,_0x4075f4._0x9ff0a7)](''),this[_0x321c4c(0x39f,0x297,0x315,0x254)]),'stopReason':this['stopReason'],'usage':createUsage(this[_0x2a24e5(_0x4075f4._0x32dbf0,0x10f,0xae,0x70)])};}['consumeEvent'](_0x274ac3){const _0x13fee6={_0x4fc219:0x12e,_0x38b300:0x9a,_0x2dd933:0x195,_0x84f596:0x5b,_0x1586ad:0xc6,_0x5a8d30:0x2,_0x7e5c4f:0x273,_0x2dfa3f:0x1b0,_0x4d8ee9:0x1e3,_0x32c55e:0x21f,_0x5184da:0xc6,_0x2f5edf:0xda,_0x1c0749:0x314,_0x55e3fe:0x28a,_0x4d723c:0x29b,_0x7182b2:0x197,_0x48d33e:0x1df,_0x241868:0x1f7,_0x36e3f0:0x2d0,_0x47af27:0x3a5,_0x4c742c:0x15f,_0x364d01:0x194,_0x3af41c:0x1f4,_0x123b5b:0x23d,_0xc2d3d:0x2ed,_0x5cc8a1:0xcf,_0x1f0fe1:0x1dc,_0x5c092b:0x2e,_0x286586:0xbc,_0x1a461d:0x51,_0x53c6c7:0x7e,_0x191cd2:0x6c,_0x153528:0x4,_0x2d6feb:0x37,_0x974eb7:0x28e,_0x3b4da:0x1fa,_0x1cc714:0x270,_0x3a764c:0x358,_0x3ee12f:0x329,_0x2cd9cc:0x16d,_0xb2084:0x1d4,_0x388b88:0xd1,_0x5af8bb:0xea,_0x4884ff:0x1e0,_0x1378fd:0x183,_0x592192:0xe6,_0x73ec39:0x2e,_0x2c7ecd:0x49,_0x4384ac:0x158,_0x375bb0:0x14b,_0x17dda4:0x110,_0x2c07aa:0x2ca,_0x3a0a54:0x360,_0x325a3b:0x248,_0x808c4f:0x343,_0x3b5609:0x371,_0x43eb71:0x15d,_0x2dfded:0x1b3,_0x4fb92a:0xf6,_0x1f77b7:0x1f4,_0x325b8c:0x26b,_0x1f27e9:0x95,_0x2d2e4f:0x2e,_0x357919:0xa6,_0x123038:0x155,_0x176dd1:0x201,_0x10b6df:0x1a9,_0x8134dd:0x26d,_0x365981:0x147,_0x511052:0x363,_0x5dfeea:0x314,_0x11e667:0x2d3,_0x5fa07b:0x2d7,_0x49254d:0x271,_0x18c544:0x107,_0x24c82c:0x218},_0x2b3c7e={_0x120930:0x0,_0x44b48a:0x164},_0x56488d={_0x49724b:0x1eb},_0x31dcbc=[];function _0x34992c(_0x45dd2e,_0x367ad5,_0x5bb213,_0x4abff9){return _0x2e041c(_0x45dd2e-0x1d5,_0x367ad5-_0x56488d._0x49724b,_0x45dd2e- -0x19e,_0x4abff9);}function _0x48ae03(_0x3ff4a9,_0x51a39a,_0x667988,_0x2c5e66){return _0x55f0a4(_0x3ff4a9-0x14b,_0x51a39a-_0x2b3c7e._0x120930,_0x51a39a,_0x3ff4a9-_0x2b3c7e._0x44b48a);}for(const _0x1be3b9 of _0x274ac3['choices']??[]){const _0xa1cad=_0x1be3b9[_0x48ae03(-_0x13fee6._0x4fc219,-_0x13fee6._0x38b300,-0x1ba,-_0x13fee6._0x2dd933)],_0xdf6b20=typeof _0xa1cad?.['content']===_0x48ae03(-_0x13fee6._0x84f596,-_0x13fee6._0x1586ad,-0x17,_0x13fee6._0x5a8d30)?_0xa1cad['content']:typeof _0xa1cad?.[_0x34992c(-0x2eb,-0x3a0,-_0x13fee6._0x7e5c4f,-0x30b)]===_0x34992c(-_0x13fee6._0x2dfa3f,-_0x13fee6._0x4d8ee9,-_0x13fee6._0x32c55e,-0x1df)?_0xa1cad['refusal']:'';_0xdf6b20['length']>0x0&&(this[_0x48ae03(-_0x13fee6._0x5184da,-_0x13fee6._0x2f5edf,-0x12e,-0x132)][_0x34992c(-0x2d7,-_0x13fee6._0x1c0749,-0x2f1,-0x33e)](_0xdf6b20),_0x31dcbc[_0x34992c(-0x2d7,-0x362,-_0x13fee6._0x55e3fe,-_0x13fee6._0x4d723c)]({'type':_0x34992c(-_0x13fee6._0x7182b2,-_0x13fee6._0x48d33e,-_0x13fee6._0x241868,-0x148),'index':0x0,'text':_0xdf6b20}));for(const _0x14c7d3 of _0xa1cad?.[_0x34992c(-0x2e7,-0x35b,-_0x13fee6._0x36e3f0,-_0x13fee6._0x47af27)]??[]){const _0x3d781d=_0x14c7d3['index']??0x0;let _0x1401d8=this[_0x48ae03(-0x19a,-_0x13fee6._0x4c742c,-_0x13fee6._0x364d01,-0x19b)][_0x34992c(-0x1cc,-0x1fa,-_0x13fee6._0x3af41c,-0x25a)](_0x3d781d);!_0x1401d8&&(_0x1401d8={'id':_0x14c7d3['id']??_0x34992c(-_0x13fee6._0x123b5b,-_0x13fee6._0xc2d3d,-0x216,-0x219)+_0x3d781d,'type':'function','function':{'name':_0x14c7d3[_0x34992c(-0x16d,-0x15a,-_0x13fee6._0x5cc8a1,-_0x13fee6._0x1f0fe1)]?.[_0x48ae03(-_0x13fee6._0x5c092b,-_0x13fee6._0x286586,-_0x13fee6._0x1a461d,-0x9e)]??'','arguments':''}},this['toolCallsByIndex'][_0x48ae03(-_0x13fee6._0x53c6c7,-_0x13fee6._0x191cd2,-_0x13fee6._0x153528,_0x13fee6._0x2d6feb)](_0x3d781d,_0x1401d8),this[_0x34992c(-0x289,-0x2f7,-_0x13fee6._0x974eb7,-_0x13fee6._0x3b4da)][_0x34992c(-0x2d7,-_0x13fee6._0x1cc714,-_0x13fee6._0x3a764c,-_0x13fee6._0x3ee12f)](_0x1401d8));_0x14c7d3['id']&&(_0x1401d8['id']=_0x14c7d3['id']);_0x14c7d3[_0x34992c(-_0x13fee6._0x2cd9cc,-0x1fc,-0xac,-_0x13fee6._0xb2084)]?.[_0x34992c(-0x183,-_0x13fee6._0x388b88,-_0x13fee6._0x5af8bb,-0x16d)]&&(_0x1401d8[_0x34992c(-0x16d,-0x20f,-0x134,-_0x13fee6._0x4884ff)][_0x34992c(-_0x13fee6._0x1378fd,-0x181,-_0x13fee6._0x592192,-0x112)]=_0x14c7d3['function'][_0x48ae03(-_0x13fee6._0x73ec39,-_0x13fee6._0x2c7ecd,0x32,-0x6b)]);!this[_0x34992c(-0x1f4,-0x1a0,-0x1a6,-_0x13fee6._0x4384ac)]['has'](_0x3d781d)&&_0x1401d8[_0x34992c(-0x16d,-0x198,-0xca,-0x174)][_0x34992c(-0x183,-0xd6,-_0x13fee6._0x375bb0,-_0x13fee6._0x17dda4)][_0x34992c(-_0x13fee6._0x2c07aa,-0x38b,-_0x13fee6._0x3a0a54,-_0x13fee6._0x325a3b)]()['length']>0x0&&(_0x31dcbc[_0x34992c(-0x2d7,-_0x13fee6._0x808c4f,-_0x13fee6._0x3b5609,-0x271)]({'type':_0x48ae03(-0x17e,-_0x13fee6._0x43eb71,-0x1a5,-0x101),'id':_0x1401d8['id'],'index':_0x3d781d,'name':_0x1401d8['function'][_0x34992c(-0x183,-0x20f,-_0x13fee6._0x2dfded,-_0x13fee6._0x4fb92a)]}),this[_0x34992c(-_0x13fee6._0x1f77b7,-0x18d,-_0x13fee6._0x325b8c,-_0x13fee6._0x364d01)]['add'](_0x3d781d));const _0x4b8f86=_0x14c7d3[_0x48ae03(-0x18,-_0x13fee6._0x1f27e9,-_0x13fee6._0x2d2e4f,-0x7a)]?.[_0x48ae03(-0x130,-0x15d,-_0x13fee6._0x357919,-_0x13fee6._0x123038)]??'';_0x4b8f86[_0x34992c(-_0x13fee6._0x176dd1,-_0x13fee6._0x10b6df,-_0x13fee6._0x8134dd,-_0x13fee6._0x365981)]>0x0&&(_0x1401d8['function']['arguments']+=_0x4b8f86,_0x31dcbc[_0x34992c(-0x2d7,-_0x13fee6._0x511052,-0x28e,-_0x13fee6._0x5dfeea)]({'type':_0x34992c(-_0x13fee6._0x11e667,-0x317,-0x214,-0x24e),'id':_0x1401d8['id'],'index':_0x3d781d,'inputDelta':_0x4b8f86}));}_0x1be3b9[_0x34992c(-0x290,-_0x13fee6._0x5fa07b,-0x266,-_0x13fee6._0x49254d)]===_0x48ae03(-0x192,-_0x13fee6._0x18c544,-_0x13fee6._0x24c82c,-0x1bf)&&(this['stopReason']='tool_use');}return _0x31dcbc;}},OpenAiResponsesStreamParser=class{[_0x2e041c(-0x125,-0xb1,-0x152,-0xad)]=new Map();[_0x2e041c(0x15,-0x37,-0x9c,0x0)];[_0x2e041c(-0x96,-0xa7,-0xba,-0x4d)]=new Map();[_0x2e041c(-0xe5,0x87,-0x24,0x14)]=new Map();['reasoningItems']=new Map();[_0x55f0a4(-0x1ae,-0x188,-0xda,-0x19a)];[_0x55f0a4(-0x207,-0x263,-0x239,-0x287)]=new Map();[_0x55f0a4(-0x27e,-0x2f7,-0x27d,-0x2f4)]=new Map();constructor(_0x51d0f4){const _0x31cf17={_0x58d19a:0x4dc,_0x107624:0x506},_0x1ffe18={_0xcdc119:0x15b};function _0x6718bf(_0x15b34b,_0x2b6ec7,_0x1a0524,_0x2710ae){return _0x2e041c(_0x15b34b-0x11a,_0x2b6ec7-_0x1ffe18._0xcdc119,_0x2710ae-0x4f3,_0x2b6ec7);}this[_0x6718bf(0x4ee,0x54e,_0x31cf17._0x58d19a,_0x31cf17._0x107624)]=_0x51d0f4;}[_0x2e041c(-0x98,-0x43,-0x5c,0x5a)](_0x2f4fe3){const _0x114940={_0x1c3e8a:0x15a,_0x1ff222:0x1ec,_0x11919c:0x265,_0x4ed232:0x1e9,_0x5bbaa3:0x2b5,_0x56e541:0x27d,_0x5ce497:0x30a,_0x450a5c:0x1f5,_0x5643b8:0x239,_0x585310:0x306,_0x5e71ba:0x260,_0x4f30a2:0x2d3,_0x4676e0:0x2be,_0x2fe359:0x21d,_0x161652:0x276,_0x3e4def:0x2a2,_0x3c3039:0x22e,_0x513133:0x2e4,_0x657edb:0x237,_0x3cc8af:0x200,_0x4dd823:0x188,_0x562fb5:0x250,_0x33499b:0x24d,_0x39257a:0x1ea},_0x3e8e41={_0x2c5dc9:0xf1,_0x590546:0x2a},_0x264e68=_0x2f4fe3[_0x1cf9b2(-_0x114940._0x1c3e8a,-_0x114940._0x1ff222,-0x29e,-0x143)]('\x0a');function _0x4a2c8c(_0x256534,_0x239e2a,_0x224cff,_0xcc73e2){return _0x55f0a4(_0x256534-_0x3e8e41._0x2c5dc9,_0x239e2a-0x1e2,_0x256534,_0x239e2a-_0x3e8e41._0x590546);}const _0x4e62a6=_0x264e68[_0x4a2c8c(-0x1de,-_0x114940._0x11919c,-_0x114940._0x4ed232,-0x1a4)](_0x18985f=>_0x18985f[_0x4a2c8c(-0x172,-0x1fc,-0x1f0,-0x1a9)]('event:'))?.[_0x4a2c8c(-_0x114940._0x5bbaa3,-_0x114940._0x56e541,-_0x114940._0x5ce497,-_0x114940._0x450a5c)](0x6)[_0x1cf9b2(-0x3ae,-0x2ee,-_0x114940._0x5643b8,-_0x114940._0x585310)](),_0x232504=_0x264e68[_0x1cf9b2(-0x319,-0x2b0,-0x238,-0x2af)](_0x1b0355=>_0x1b0355[_0x4a2c8c(-0x186,-0x1fc,-0x255,-0x210)](_0x4a2c8c(-0x31c,-0x2bf,-0x37b,-0x253)))[_0x4a2c8c(-0x2bf,-0x217,-0x18e,-0x28e)](_0x4f3390=>_0x4f3390[_0x4a2c8c(-0x2f2,-0x27d,-0x310,-0x224)](0x5)[_0x4a2c8c(-0x196,-0x1e8,-0x28b,-0x248)]())[_0x1cf9b2(-0x1d1,-_0x114940._0x5e71ba,-0x23f,-0x204)]('\x0a')['trim']();function _0x1cf9b2(_0x46da29,_0x372cf3,_0x109956,_0x41c4d8){return _0x2e041c(_0x46da29-0x15f,_0x372cf3-0x158,_0x372cf3- -0x1c2,_0x41c4d8);}if(_0x232504[_0x1cf9b2(-_0x114940._0x4f30a2,-0x225,-_0x114940._0x4676e0,-0x288)]===0x0||_0x232504===_0x4a2c8c(-_0x114940._0x2fe359,-_0x114940._0x161652,-_0x114940._0x3e4def,-0x2b7))return[];const _0x4a3221=JSON[_0x1cf9b2(-0x2d5,-_0x114940._0x3c3039,-_0x114940._0x513133,-0x1f8)](_0x232504);return this[_0x1cf9b2(-_0x114940._0x657edb,-_0x114940._0x3cc8af,-0x286,-_0x114940._0x4dd823)](_0x4e62a6??String(_0x4a3221[_0x4a2c8c(-0x21d,-_0x114940._0x562fb5,-_0x114940._0x33499b,-_0x114940._0x39257a)]??''),_0x4a3221);}[_0x55f0a4(-0x22b,-0x1c0,-0x1fd,-0x1ed)](_0x557220){const _0x549872={_0x2561da:0x1a3},_0x209a6e={_0x37f207:0x15c,_0xce012f:0x308};function _0x5500d5(_0xe63f45,_0x403f26,_0x578865,_0x59c486){return _0x55f0a4(_0xe63f45-0xba,_0x403f26-_0x209a6e._0x37f207,_0x59c486,_0xe63f45-_0x209a6e._0xce012f);}return this[_0x5500d5(0x11d,0x14a,0x107,_0x549872._0x2561da)](String(_0x557220['type']??''),_0x557220);}['finish'](){const _0x5d277a={_0x54dd49:0x4e6,_0x555711:0x4aa,_0x5117de:0x4f9,_0x1d55b6:0x4e7,_0xba9ba8:0x498,_0x2c0bac:0x447,_0x5779f5:0x3a9,_0x177164:0x4eb,_0x33c513:0x58d,_0x5f0dfa:0x563},_0x27540a={_0x12c36b:0x72f},_0x1aad67=this[_0x326953(0x5a3,_0x5d277a._0x54dd49,0x58c,0x582)]??{'id':'resp-'+Date['now'](),'object':_0x2b9051(_0x5d277a._0x555711,_0x5d277a._0x5117de,_0x5d277a._0x1d55b6,0x4a1),'status':_0x326953(_0x5d277a._0xba9ba8,_0x5d277a._0x2c0bac,0x4a4,_0x5d277a._0x5779f5),'output':this[_0x326953(0x4df,_0x5d277a._0x177164,0x533,_0x5d277a._0x33c513)](),'usage':{'input_tokens':0x0,'output_tokens':0x0}};function _0x326953(_0xab9d8d,_0x1b2876,_0x134233,_0x6ce45d){return _0x55f0a4(_0xab9d8d-0x6c,_0x1b2876-0x10c,_0x134233,_0x1b2876-_0x27540a._0x12c36b);}function _0x2b9051(_0x246f67,_0x18be7b,_0x48c2c8,_0x1ffc5b){return _0x2e041c(_0x246f67-0x1f0,_0x18be7b-0x1ee,_0x48c2c8-0x550,_0x18be7b);}return parseResponsesResponse(_0x1aad67,this[_0x2b9051(0x580,0x4a9,_0x5d277a._0x5f0dfa,0x5bb)]);}[_0x55f0a4(-0x22a,-0x222,-0x314,-0x262)](){return this['finalResponse']!==void 0x0;}['consumeEvent'](_0x982a5a,_0x26a19d){const _0x544f92={_0x1557d6:0x359,_0x3e6e72:0x2c7,_0x271b02:0x1eb,_0x3916c4:0x2a2,_0x4a6140:0x265,_0x5664d8:0x4db,_0x370084:0x344,_0x4b3d53:0x34a,_0x5a1a9d:0x270,_0x255038:0x3c2,_0x2e2ac6:0x2f2,_0x49ac2b:0x2a0,_0x435082:0x373,_0x5dbf0b:0x35b,_0x531c7e:0x42a,_0x4b8501:0x4a6,_0x1a81e3:0x2b3,_0x52e2e6:0x2d0,_0x5aae1a:0x229,_0x542225:0x222,_0x5c3dfd:0x360,_0x60c282:0x269,_0x505b8c:0x2ba,_0x465c62:0x2a1,_0x2894da:0x3fc,_0x2f8cad:0x227,_0x5dc178:0x27b,_0x563a60:0x339,_0x267c4d:0x29b,_0x12eb16:0x2fa,_0x40f94b:0x3c3,_0x5eb4ad:0x389,_0x33473c:0x418,_0x3ba300:0x3e1,_0x319b97:0x4a3,_0x41b1fd:0x1c7,_0xe60107:0x261,_0x377cac:0x219,_0x51951a:0x313,_0x2c2617:0x3a7,_0xb97c9e:0x2de,_0x19c1a6:0x2b2,_0x2cc977:0x259,_0x27d9b9:0x259,_0x4c8408:0x45f,_0x3953cf:0x3c8,_0x5248bc:0x45d,_0x333118:0x46a,_0x31a854:0x369,_0x2cf6fa:0x368,_0x8f5bfb:0x38c,_0x19e6f9:0x24f,_0x4ef9de:0x301,_0x1a41e6:0x30c,_0xc161ae:0x37a,_0x21a9ec:0x39f,_0x3a9b0b:0x393,_0x5a4420:0x3ca,_0x5a13fa:0x395,_0x7faa72:0x291,_0x51a2b3:0x20c,_0x280b64:0x214,_0x44fd06:0x2d6,_0x24af57:0x35c,_0x1609f4:0x2dc,_0x41f91b:0x2fe,_0x252de7:0x3b2,_0x5a737b:0x3ba,_0xdf27ee:0x47e,_0x4ff776:0x48e,_0x5c6a79:0x1e8,_0x578d4d:0x283,_0x563285:0x209,_0x31a6e2:0x287,_0x3456bd:0x2cb,_0x589de0:0x23a,_0xbc41ec:0x2af,_0x1aba52:0x27a,_0x2ca34b:0x21c,_0x37c6b7:0x215,_0x25976c:0x333,_0x8b437d:0x363,_0x140db0:0x3c6,_0x509179:0x483,_0x207ad5:0x1a0,_0x31642b:0x376,_0x2b3057:0x3a6,_0x522537:0x39b,_0x3e5a7a:0x338,_0x289e60:0x278,_0x10cbba:0x399,_0x598e9b:0x28e,_0x455b05:0x2fe,_0x26db50:0x302,_0x2bfefc:0x301,_0x1c3b9f:0x27e,_0x18d7ca:0x3f2,_0x3d2a55:0x506,_0x32df38:0x316,_0xa7cb46:0x287,_0x572314:0x3c0,_0x4ec115:0x309,_0x173187:0x2c4,_0x321d69:0x2d0,_0x56db4e:0x2a1,_0x2ffc63:0x294,_0x2a72e9:0x2fc,_0x3662ba:0x2e5,_0x2e13a0:0x259,_0x2fe1fd:0x35f,_0x2bc981:0x2ae,_0x352b3a:0x23f,_0x5deb06:0x3d6,_0xf7e520:0x37e,_0x2c564d:0x34d,_0x6eda9:0x373,_0x1718bd:0x2e7,_0x1849be:0x238,_0x3b6a4a:0x315,_0x4be3ae:0x50f,_0x5f1af6:0x43b,_0x1f02bb:0x41e,_0x54ddc6:0x4d9,_0x33d7d3:0x465,_0x7d651e:0x3f0,_0x55b478:0x323,_0x584c8a:0x437,_0x19baf0:0x463,_0x552790:0x50c,_0x34486f:0x424,_0x3aa4fe:0x4d1,_0xca75f4:0x3ea,_0x1b3322:0x4a0,_0x54b820:0x36e,_0xa80b02:0x4ab,_0x2226e6:0x3b3,_0xc5f37d:0x398,_0xeebfcc:0x2e7,_0x2e09e3:0x2d4,_0x159a6b:0x316,_0x372d68:0x2f5,_0x1d00b9:0x33e,_0x429f82:0x41d,_0x4b4e49:0x4ba,_0x20f030:0x2e3,_0xa2ba6:0x39e,_0x1be1a2:0x4fc,_0x3a9dc5:0x2db,_0x145e94:0x225,_0x26e013:0x2d5,_0x4e097a:0x2c5,_0x45de2f:0x2a9,_0x1546ad:0x38c,_0x28dcfe:0x415,_0x3e63b5:0x421,_0x44230a:0x2b0,_0x4bb737:0x1d9,_0x54a5a1:0x289,_0xad0fd1:0x33b,_0x265c8f:0x327,_0x516a68:0x2d3,_0x309064:0x29f,_0xd89bcc:0x28f,_0x1d08e5:0x1e9,_0x53ab6f:0x222,_0x43bff3:0x2ec,_0x1aad34:0x29b,_0x3cc173:0x464,_0x4edb03:0x41f,_0xa4443a:0x376,_0x5ecf17:0x31b,_0xf750b3:0x1de,_0x303090:0x222,_0x709c17:0x370,_0x35adbf:0x1f1,_0x3b37d8:0x1be,_0x441cac:0x33c,_0x11c47d:0x32f,_0x5cff0c:0x43a,_0x3158c6:0x3ab,_0x3083c8:0x30d,_0x2adf33:0x380,_0x2990ba:0x314,_0x4403bb:0x35a,_0x9bc850:0x339,_0x3abe47:0x2a8,_0x12ddd9:0x340,_0x2f4911:0x460,_0x44b507:0x439,_0x2031ab:0x237,_0x573574:0x24e,_0x1dad8a:0x28b,_0x549a1b:0x2b6,_0x474603:0x20d,_0x5d01a5:0x2fa,_0x88bb97:0x31c,_0x3a7b09:0x438,_0xddf15c:0x429,_0x563b10:0x4e7,_0x25c673:0x3d5,_0x5c7c76:0x367,_0x19e79d:0x301,_0x4c2bbd:0x3bb,_0x59da1f:0x2ff,_0x12220a:0x202,_0x39bdd2:0x35d,_0x2f1e1a:0x394,_0x2d6fcf:0x39a,_0x208b9c:0x327,_0x508465:0x311,_0x237fde:0x338,_0xf536d0:0x42e,_0x3a41ec:0x466,_0x9a5e1d:0x3c9,_0x3f5b49:0x3e6,_0x5015a3:0x3a5,_0x59adde:0x4fb,_0x4c017d:0x32d,_0xb0cb98:0x2f0,_0x57fd45:0x289,_0x1e3634:0x37e,_0x3cb909:0x37b,_0x26459b:0x33d,_0x31bfea:0x321,_0x5cfc6d:0x429,_0x33cd12:0x292,_0x2c2cee:0x2f5,_0x45ef52:0x4d0,_0x11926c:0x48f,_0x33889b:0x372,_0x5b53b7:0x36b,_0x206df7:0x37a,_0x4ba554:0x355,_0x30db8a:0x33e,_0x2954e4:0x2d9,_0x3e0896:0x30b,_0x4d8de8:0x338,_0x580795:0x2e4,_0x38a851:0x21f,_0x2f26b9:0x25c,_0x5cefd5:0x21e,_0x1ec9a6:0x366,_0x32ef92:0x31e,_0x20427f:0x381,_0x23c8b4:0x354,_0x2f91f5:0x300,_0x18ecc8:0x32d,_0x380087:0x43b,_0x5930d5:0x3f8,_0x22c0f1:0x37e,_0x3e38ce:0x3ec,_0x1d67db:0x339,_0x10b4e6:0x2c6,_0x51daa3:0x362,_0x308210:0x270,_0x5023b6:0x37a,_0x251e9e:0x2da,_0x52fc09:0x2eb,_0x10bdb5:0x450,_0x3258c7:0x3ca,_0x7014fc:0x4ad,_0x5278d1:0x39c,_0x112f71:0x44b,_0x251d24:0x43b,_0x34dcf5:0x440,_0x466a56:0x459,_0x1d2e2e:0x4a9,_0x14c720:0x335,_0x283d67:0x28d,_0x4fecdc:0x339,_0x166a84:0x4a2,_0x1307b3:0x342,_0x2b6066:0x3c6,_0x38a05d:0x398,_0x2b8be5:0x304,_0x4153ff:0x2d6,_0x522a08:0x409,_0x4b5325:0x2ed,_0x26889f:0x2e2,_0x3b2eee:0x275,_0x3ccac8:0x349,_0x4811e5:0x2c8,_0x3a7651:0x1f0,_0x4ac7f8:0x20b,_0x499659:0x2f3,_0x2c84de:0x24a,_0x3dd951:0x212,_0x6541dd:0x2b4,_0x5853ac:0x22f,_0x3f899f:0x352,_0x3069dd:0x40c},_0x4b06a9={_0x2c8174:0xc7,_0x298e78:0x51b},_0xf0978={_0xb60a67:0x10f};function _0xf613aa(_0x25f5eb,_0x4a9e12,_0x3f3f83,_0x580672){return _0x55f0a4(_0x25f5eb-0x1e9,_0x4a9e12-_0xf0978._0xb60a67,_0x4a9e12,_0x25f5eb-0x5fa);}switch(_0x982a5a){case _0xf613aa(_0x544f92._0x1557d6,0x2a8,_0x544f92._0x3e6e72,0x373):{const _0x2e38b1=typeof _0x26a19d[_0x627e01(_0x544f92._0x271b02,0x2ab,0x27f,0x222)]===_0x627e01(_0x544f92._0x3916c4,0x1f9,_0x544f92._0x4a6140,0x29b)?_0x26a19d[_0x627e01(0x239,0x296,0x1fb,0x222)]:0x0,_0x4ff231=typeof _0x26a19d['delta']===_0xf613aa(0x43b,0x45c,_0x544f92._0x5664d8,0x4b1)?_0x26a19d[_0x627e01(_0x544f92._0x370084,0x2ec,0x33a,0x289)]:'';if(_0x4ff231[_0x627e01(_0x544f92._0x4b3d53,0x2e4,_0x544f92._0x5a1a9d,0x30b)]>0x0){const _0x565cc1=this[_0xf613aa(0x373,0x3ed,0x2cb,_0x544f92._0x255038)]['get'](_0x2e38b1)??[];return _0x565cc1[_0x627e01(_0x544f92._0x2e2ac6,_0x544f92._0x49ac2b,0x277,0x235)](_0x4ff231),this[_0xf613aa(_0x544f92._0x435082,0x3e4,0x355,_0x544f92._0x5dbf0b)][_0xf613aa(0x418,_0x544f92._0x531c7e,0x454,_0x544f92._0x4b8501)](_0x2e38b1,_0x565cc1),[{'type':'content_delta','index':_0x2e38b1,'text':_0x4ff231}];}break;}case'response.output_item.added':{const _0x30db6a=typeof _0x26a19d[_0x627e01(_0x544f92._0x1a81e3,_0x544f92._0x52e2e6,_0x544f92._0x5aae1a,_0x544f92._0x542225)]==='number'?_0x26a19d[_0xf613aa(0x301,_0x544f92._0x5c3dfd,0x39f,0x349)]:void 0x0,_0x5178fb=_0x26a19d['item'];if(_0x5178fb?.[_0x627e01(_0x544f92._0x60c282,_0x544f92._0x505b8c,0x2b3,_0x544f92._0x465c62)]==='function_call'&&_0x5178fb['call_id']&&_0x5178fb[_0x627e01(0x33e,0x35b,_0x544f92._0x2894da,0x389)])return this[_0x627e01(0x2e4,0x280,0x1eb,_0x544f92._0x2f8cad)][_0x627e01(_0x544f92._0x5dc178,0x332,0x3f3,_0x544f92._0x563a60)](_0x5178fb[_0x627e01(_0x544f92._0x267c4d,0x2c2,_0x544f92._0x12eb16,0x259)],{'id':_0x5178fb['call_id'],'type':_0xf613aa(0x47e,0x3f9,0x518,_0x544f92._0x40f94b),'function':{'name':_0x5178fb[_0x627e01(0x355,0x31d,0x2cc,_0x544f92._0x5eb4ad)],'arguments':''}}),_0x30db6a!==void 0x0&&(this['outputIndexToCallId'][_0xf613aa(_0x544f92._0x33473c,0x412,_0x544f92._0x3ba300,_0x544f92._0x319b97)](_0x30db6a,_0x5178fb[_0x627e01(_0x544f92._0x41b1fd,_0x544f92._0xe60107,_0x544f92._0x377cac,0x259)]),this[_0xf613aa(0x2fb,_0x544f92._0x51951a,0x31c,_0x544f92._0x51951a)][_0x627e01(0x3b1,_0x544f92._0x2c2617,0x33f,0x339)](_0x5178fb[_0x627e01(0x228,_0x544f92._0xb97c9e,_0x544f92._0x19c1a6,_0x544f92._0x2cc977)],_0x30db6a)),[{'type':_0x627e01(_0x544f92._0x27d9b9,0x2a8,0x1b7,0x239),'id':_0x5178fb['call_id'],'index':_0x30db6a??0x0,'name':_0x5178fb[_0x627e01(0x354,_0x544f92._0x370084,0x43e,_0x544f92._0x5eb4ad)]}];if(_0x5178fb?.['type']==='reasoning'&&_0x5178fb['id']){const _0x5251e0=this[_0xf613aa(_0x544f92._0x4c8408,0x4e2,_0x544f92._0x3953cf,_0x544f92._0x5248bc)](_0x5178fb['id'],_0x30db6a);_0x30db6a!==void 0x0&&this[_0xf613aa(0x429,_0x544f92._0x333118,_0x544f92._0x31a854,0x425)][_0x627e01(0x2e4,0x2dd,0x329,0x339)](_0x30db6a,_0x5251e0['id']);}break;}case _0xf613aa(0x3d9,0x38f,_0x544f92._0x2cf6fa,0x345):{const _0x2c0848=typeof _0x26a19d[_0xf613aa(0x338,_0x544f92._0x8f5bfb,0x35e,0x3a3)]===_0xf613aa(0x43b,0x40c,0x410,0x465)?_0x26a19d[_0x627e01(0x2a0,0x267,_0x544f92._0x19e6f9,0x259)]:typeof _0x26a19d[_0xf613aa(_0x544f92._0x4ef9de,_0x544f92._0x1a41e6,_0x544f92._0xc161ae,0x390)]===_0xf613aa(_0x544f92._0xc161ae,0x3f9,0x3da,_0x544f92._0x21a9ec)?this[_0xf613aa(_0x544f92._0x3a9b0b,0x3ce,0x307,_0x544f92._0x5a4420)][_0x627e01(_0x544f92._0x5a13fa,_0x544f92._0x7faa72,0x2c8,0x340)](_0x26a19d['output_index']):void 0x0,_0xea1cb9=typeof _0x26a19d[_0x627e01(_0x544f92._0x51a2b3,0x230,_0x544f92._0x280b64,0x289)]===_0x627e01(0x3df,_0x544f92._0x44fd06,0x3f5,_0x544f92._0x24af57)?_0x26a19d[_0xf613aa(0x368,_0x544f92._0x1609f4,_0x544f92._0x41f91b,0x3d5)]:'',_0x33164b=_0x2c0848?this[_0xf613aa(0x306,0x2b1,0x250,_0x544f92._0x252de7)]['get'](_0x2c0848):void 0x0;if(_0x33164b&&_0xea1cb9[_0x627e01(0x315,0x312,_0x544f92._0x5a737b,0x30b)]>0x0)return _0x33164b[_0xf613aa(_0x544f92._0xdf27ee,0x3ea,_0x544f92._0x4ff776,0x3fa)][_0x627e01(_0x544f92._0x5c6a79,_0x544f92._0x578d4d,_0x544f92._0x563285,_0x544f92._0x31a6e2)]+=_0xea1cb9,[{'type':_0x627e01(_0x544f92._0x3456bd,0x196,_0x544f92._0x589de0,0x239),'id':_0x33164b['id'],'index':this[_0x627e01(0x221,_0x544f92._0xbc41ec,_0x544f92._0x1aba52,_0x544f92._0x2ca34b)][_0x627e01(0x383,0x299,0x37d,0x340)](_0x33164b['id'])??(typeof _0x26a19d[_0x627e01(0x1e4,0x1b4,_0x544f92._0x37c6b7,0x222)]==='number'?_0x26a19d[_0xf613aa(_0x544f92._0x4ef9de,_0x544f92._0x25976c,_0x544f92._0x8b437d,0x37a)]:0x0),'inputDelta':_0xea1cb9}];break;}case _0xf613aa(_0x544f92._0x140db0,0x3ab,_0x544f92._0x509179,0x46c):{const _0x347f0b=typeof _0x26a19d[_0x627e01(_0x544f92._0x207ad5,0x26a,0x2c5,_0x544f92._0x27d9b9)]===_0x627e01(_0x544f92._0x31642b,_0x544f92._0x2b3057,_0x544f92._0x522537,_0x544f92._0x24af57)?_0x26a19d[_0xf613aa(_0x544f92._0x3e5a7a,_0x544f92._0x289e60,0x2a8,0x3b0)]:typeof _0x26a19d[_0xf613aa(0x301,_0x544f92._0x10cbba,_0x544f92._0x598e9b,_0x544f92._0x455b05)]==='number'?this[_0x627e01(_0x544f92._0x26db50,0x2ce,0x2c2,0x2b4)]['get'](_0x26a19d[_0xf613aa(_0x544f92._0x2bfefc,_0x544f92._0x1c3b9f,0x33b,0x3bc)]):void 0x0,_0x5ed2ec=_0x347f0b?this[_0xf613aa(0x306,0x2c3,0x2a1,0x331)][_0x627e01(_0x544f92._0x18d7ca,0x3ea,0x286,0x340)](_0x347f0b):void 0x0;_0x5ed2ec&&typeof _0x26a19d['arguments']==='string'&&(_0x5ed2ec[_0xf613aa(0x47e,0x495,0x461,_0x544f92._0x3d2a55)]['arguments']=_0x26a19d[_0x627e01(0x27f,0x1c7,_0x544f92._0x32df38,_0x544f92._0xa7cb46)]);break;}case _0xf613aa(_0x544f92._0x572314,0x35e,_0x544f92._0x4ec115,0x3a6):{const _0x3f519e=typeof _0x26a19d['output_index']==='number'?_0x26a19d['output_index']:void 0x0,_0x3d373a=_0x26a19d['item'];if(_0x3d373a?.[_0x627e01(_0x544f92._0x173187,0x22b,_0x544f92._0x321d69,_0x544f92._0x56db4e)]===_0x627e01(0x3b0,0x3db,_0x544f92._0x2ffc63,0x337)){const _0x5a6eaf=_0x3d373a[_0x627e01(_0x544f92._0x2a72e9,_0x544f92._0x3662ba,0x204,_0x544f92._0x2e13a0)]??(_0x3f519e!==void 0x0?this[_0xf613aa(0x393,_0x544f92._0x2fe1fd,0x303,0x3d1)]['get'](_0x3f519e):void 0x0),_0x1c47de=_0x5a6eaf?this[_0x627e01(_0x544f92._0x2bc981,_0x544f92._0x352b3a,0x1ba,_0x544f92._0x2f8cad)]['get'](_0x5a6eaf):void 0x0;_0x1c47de&&typeof _0x3d373a[_0xf613aa(0x366,0x40d,_0x544f92._0x5deb06,0x401)]==='string'&&(_0x1c47de['function']['arguments']=_0x3d373a[_0xf613aa(0x366,_0x544f92._0xf7e520,_0x544f92._0x2c564d,_0x544f92._0x6eda9)]);break;}if(_0x3d373a?.[_0x627e01(_0x544f92._0x1718bd,0x2c0,_0x544f92._0x1849be,_0x544f92._0x56db4e)]==='reasoning'&&_0x3d373a['id']){const _0xbb9630=this[_0x627e01(_0x544f92._0x5eb4ad,_0x544f92._0x3b6a4a,0x2c3,0x380)](_0x3d373a['id'],_0x3f519e);typeof _0x3d373a[_0xf613aa(0x45c,0x499,_0x544f92._0x4be3ae,0x439)]===_0xf613aa(_0x544f92._0x5f1af6,_0x544f92._0x1f02bb,_0x544f92._0x54ddc6,_0x544f92._0x33d7d3)&&(_0xbb9630[_0xf613aa(0x47a,_0x544f92._0x7d651e,0x3f7,0x408)]=_0x3d373a['encrypted_content']);if(Array[_0x627e01(_0x544f92._0x55b478,_0x544f92._0x584c8a,_0x544f92._0x5a4420,0x39d)](_0x3d373a[_0xf613aa(_0x544f92._0x19baf0,_0x544f92._0x5248bc,_0x544f92._0x552790,_0x544f92._0x34486f)]))for(let _0x4a0f07=0x0;_0x4a0f07<_0x3d373a[_0xf613aa(0x463,_0x544f92._0x3aa4fe,0x519,0x3b2)][_0xf613aa(_0x544f92._0xca75f4,_0x544f92._0x1b3322,_0x544f92._0x54b820,_0x544f92._0xa80b02)];_0x4a0f07+=0x1){const _0x1f6d2e=_0x3d373a[_0xf613aa(0x463,_0x544f92._0x2226e6,0x475,0x466)][_0x4a0f07];_0x1f6d2e[_0xf613aa(0x380,0x34a,_0x544f92._0xc5f37d,_0x544f92._0xeebfcc)]===_0x627e01(_0x544f92._0x2e09e3,0x37a,0x2d4,_0x544f92._0x159a6b)&&typeof _0x1f6d2e[_0x627e01(_0x544f92._0x372d68,_0x544f92._0x1d00b9,0x333,0x2bd)]==='string'&&_0xbb9630['summaryByIndex'][_0xf613aa(_0x544f92._0x33473c,_0x544f92._0x429f82,_0x544f92._0x4b4e49,_0x544f92._0x40f94b)](_0x4a0f07,_0x1f6d2e[_0x627e01(0x318,_0x544f92._0x435082,_0x544f92._0x20f030,0x2bd)]);}typeof _0x3d373a[_0x627e01(0x32a,0x22c,0x298,0x2bd)]===_0xf613aa(_0x544f92._0x5f1af6,_0x544f92._0xa2ba6,_0x544f92._0x1be1a2,0x481)&&_0xbb9630[_0x627e01(0x328,_0x544f92._0x3a9dc5,_0x544f92._0x145e94,_0x544f92._0x26e013)][_0x627e01(_0x544f92._0x4e097a,_0x544f92._0x45de2f,_0x544f92._0x1546ad,0x339)](0x0,_0x3d373a[_0xf613aa(0x39c,0x305,_0x544f92._0x28dcfe,_0x544f92._0x3e63b5)]);}break;}case'response.reasoning_summary_text.delta':{const _0x5e0e07=typeof _0x26a19d[_0x627e01(_0x544f92._0x44230a,0x2f3,0x218,0x289)]===_0xf613aa(0x43b,0x472,0x49a,0x399)?_0x26a19d[_0x627e01(0x1c8,_0x544f92._0x4bb737,0x2b7,_0x544f92._0x54a5a1)]:'',_0xc3f16=typeof _0x26a19d[_0xf613aa(0x37e,0x2fd,0x322,_0x544f92._0xad0fd1)]===_0x627e01(0x3ab,_0x544f92._0x265c8f,0x2a8,_0x544f92._0x24af57)?_0x26a19d[_0x627e01(_0x544f92._0x516a68,0x1e2,0x1f9,_0x544f92._0x309064)]:typeof _0x26a19d[_0x627e01(_0x544f92._0xd89bcc,_0x544f92._0x1d08e5,0x26c,_0x544f92._0x53ab6f)]===_0x627e01(0x30d,0x290,_0x544f92._0x43bff3,_0x544f92._0x1aad34)?this[_0xf613aa(0x429,0x39f,0x3e2,_0x544f92._0x3cc173)][_0xf613aa(_0x544f92._0x4edb03,_0x544f92._0xa4443a,0x3a7,0x3dc)](_0x26a19d['output_index']):void 0x0,_0x41c349=typeof _0x26a19d[_0xf613aa(0x301,0x2b8,0x243,_0x544f92._0x5ecf17)]===_0x627e01(0x2c1,_0x544f92._0xe60107,0x26a,0x29b)?_0x26a19d[_0x627e01(0x241,_0x544f92._0xf750b3,0x2e2,_0x544f92._0x303090)]:0x0,_0x4014cc=typeof _0x26a19d[_0xf613aa(0x35d,_0x544f92._0x709c17,0x29d,0x317)]===_0x627e01(0x33d,0x232,_0x544f92._0x35adbf,_0x544f92._0x267c4d)?_0x26a19d[_0x627e01(_0x544f92._0x3b37d8,0x2e3,0x28d,0x27e)]:0x0;if(_0xc3f16&&_0x5e0e07[_0x627e01(_0x544f92._0x441cac,_0x544f92._0x11c47d,_0x544f92._0xe60107,0x30b)]>0x0){const _0x3e07d7=this[_0x627e01(_0x544f92._0x5cff0c,_0x544f92._0x3158c6,_0x544f92._0x3083c8,_0x544f92._0x2adf33)](_0xc3f16,_0x41c349);_0x3e07d7[_0x627e01(0x3a0,_0x544f92._0x2990ba,0x332,_0x544f92._0x4403bb)][_0x627e01(0x3d6,0x3c0,0x2d7,_0x544f92._0x9bc850)](_0x4014cc,''+(_0x3e07d7['summaryByIndex'][_0x627e01(0x2a9,_0x544f92._0x3abe47,0x342,_0x544f92._0x12ddd9)](_0x4014cc)??'')+_0x5e0e07);if(isUserVisibleReasoning(this[_0xf613aa(_0x544f92._0x2f4911,_0x544f92._0x44b507,0x3cf,0x4b4)]))return[{'type':'openai_reasoning_summary_delta','delta':_0x5e0e07,'itemId':_0xc3f16,'outputIndex':_0x41c349,'summaryIndex':_0x4014cc}];}break;}case _0x627e01(0x2e2,_0x544f92._0x2031ab,_0x544f92._0x573574,_0x544f92._0x1dad8a):{const _0x35e0b5=typeof _0x26a19d[_0x627e01(_0x544f92._0x549a1b,0x213,_0x544f92._0x474603,0x29f)]===_0x627e01(_0x544f92._0x5d01a5,0x3bb,0x2e0,0x35c)?_0x26a19d['item_id']:typeof _0x26a19d['output_index']===_0xf613aa(_0x544f92._0xc161ae,0x32c,_0x544f92._0x88bb97,_0x544f92._0x3a7b09)?this[_0xf613aa(_0x544f92._0xddf15c,_0x544f92._0x563b10,0x41f,_0x544f92._0x25c673)][_0xf613aa(0x41f,0x43e,_0x544f92._0x5c7c76,0x3ae)](_0x26a19d[_0x627e01(0x174,0x1a9,0x2be,0x222)]):void 0x0,_0x506655=typeof _0x26a19d[_0xf613aa(_0x544f92._0x19e79d,0x338,0x3bb,_0x544f92._0x4c2bbd)]===_0x627e01(_0x544f92._0x59da1f,_0x544f92._0x12220a,0x33d,0x29b)?_0x26a19d[_0x627e01(0x1a4,0x229,0x1b2,_0x544f92._0x53ab6f)]:0x0,_0x3ad3a0=typeof _0x26a19d[_0xf613aa(_0x544f92._0x39bdd2,_0x544f92._0x2f1e1a,_0x544f92._0x2d6fcf,_0x544f92._0x25976c)]==='number'?_0x26a19d['summary_index']:0x0,_0x56f28e=typeof _0x26a19d[_0x627e01(0x205,_0x544f92._0x208b9c,0x225,0x2bd)]==='string'?_0x26a19d['text']:'';_0x35e0b5&&this['getOrCreateReasoningItem'](_0x35e0b5,_0x506655)[_0x627e01(_0x544f92._0x508465,_0x544f92._0x237fde,0x2ea,0x35a)]['set'](_0x3ad3a0,_0x56f28e);break;}case _0xf613aa(_0x544f92._0xf536d0,_0x544f92._0x3a41ec,_0x544f92._0x9a5e1d,_0x544f92._0x3f5b49):{const _0x2c03c1=typeof _0x26a19d[_0xf613aa(0x368,0x3ad,0x420,_0x544f92._0x5015a3)]===_0xf613aa(0x43b,0x39d,_0x544f92._0x59adde,0x4d4)?_0x26a19d[_0x627e01(_0x544f92._0x4c017d,_0x544f92._0xb0cb98,0x1eb,_0x544f92._0x57fd45)]:'',_0x50d01f=typeof _0x26a19d[_0xf613aa(_0x544f92._0x1e3634,_0x544f92._0x3cb909,_0x544f92._0x26459b,_0x544f92._0x31bfea)]===_0xf613aa(_0x544f92._0x5f1af6,_0x544f92._0x5cfc6d,0x410,0x441)?_0x26a19d['item_id']:typeof _0x26a19d['output_index']===_0x627e01(0x2a9,0x1e3,_0x544f92._0x33cd12,0x29b)?this[_0x627e01(_0x544f92._0x2c2cee,0x308,0x33a,0x34a)][_0xf613aa(_0x544f92._0x4edb03,0x4dd,_0x544f92._0x45ef52,_0x544f92._0x11926c)](_0x26a19d[_0xf613aa(_0x544f92._0x4ef9de,_0x544f92._0x33889b,_0x544f92._0x4c2bbd,0x3a0)]):void 0x0,_0x2fb0a0=typeof _0x26a19d[_0xf613aa(0x301,_0x544f92._0x5b53b7,_0x544f92._0x12ddd9,0x324)]===_0xf613aa(_0x544f92._0x206df7,_0x544f92._0x4ba554,0x3c7,0x2b8)?_0x26a19d['output_index']:0x0,_0x3cdef4=typeof _0x26a19d['content_index']==='number'?_0x26a19d[_0x627e01(0x419,0x352,0x442,0x387)]:0x0;if(_0x50d01f&&_0x2c03c1[_0x627e01(0x2ca,_0x544f92._0x30db8a,_0x544f92._0x2954e4,_0x544f92._0x3e0896)]>0x0){const _0x442565=this[_0x627e01(_0x544f92._0x4d8de8,0x3ec,_0x544f92._0x580795,0x380)](_0x50d01f,_0x2fb0a0);_0x442565[_0x627e01(_0x544f92._0x38a851,_0x544f92._0x2f26b9,_0x544f92._0x5cefd5,_0x544f92._0x26e013)]['set'](_0x3cdef4,''+(_0x442565[_0xf613aa(0x3b4,0x383,_0x544f92._0x2a72e9,0x3de)][_0xf613aa(0x41f,0x38b,0x496,0x3ab)](_0x3cdef4)??'')+_0x2c03c1);if(isUserVisibleReasoning(this[_0x627e01(0x359,_0x544f92._0x1ec9a6,_0x544f92._0x32ef92,_0x544f92._0x20427f)]))return[{'type':'openai_reasoning_delta','contentIndex':_0x3cdef4,'delta':_0x2c03c1,'itemId':_0x50d01f,'outputIndex':_0x2fb0a0}];}break;}case'response.reasoning_text.done':{const _0x230fd5=typeof _0x26a19d[_0xf613aa(0x37e,_0x544f92._0x23c8b4,_0x544f92._0x2f91f5,_0x544f92._0x18ecc8)]===_0xf613aa(_0x544f92._0x380087,0x3d0,_0x544f92._0x5930d5,0x4f0)?_0x26a19d[_0xf613aa(_0x544f92._0x22c0f1,0x32e,0x34c,_0x544f92._0x3e38ce)]:typeof _0x26a19d[_0x627e01(0x16d,_0x544f92._0x4a6140,0x253,0x222)]==='number'?this[_0x627e01(0x2b0,0x304,_0x544f92._0x1d67db,0x34a)][_0x627e01(0x2bc,0x362,0x29e,0x340)](_0x26a19d['output_index']):void 0x0,_0x5a63db=typeof _0x26a19d[_0xf613aa(0x301,_0x544f92._0x10b4e6,_0x544f92._0x51daa3,_0x544f92._0x308210)]==='number'?_0x26a19d[_0x627e01(0x1e2,0x2d1,0x2d1,0x222)]:0x0,_0x327689=typeof _0x26a19d['content_index']===_0xf613aa(_0x544f92._0x5023b6,_0x544f92._0x251e9e,_0x544f92._0x52fc09,0x36e)?_0x26a19d[_0xf613aa(_0x544f92._0x3a41ec,_0x544f92._0x10bdb5,_0x544f92._0x3258c7,_0x544f92._0x7014fc)]:0x0,_0x1a8a3a=typeof _0x26a19d[_0xf613aa(_0x544f92._0x5278d1,0x36a,_0x544f92._0x112f71,_0x544f92._0x25c673)]===_0xf613aa(_0x544f92._0x251d24,0x4e8,_0x544f92._0x255038,0x4fa)?_0x26a19d[_0xf613aa(0x39c,0x341,_0x544f92._0x34dcf5,0x393)]:'';_0x230fd5&&this[_0xf613aa(0x45f,_0x544f92._0x466a56,_0x544f92._0x1d2e2e,0x481)](_0x230fd5,_0x5a63db)['textByIndex'][_0x627e01(_0x544f92._0x14c720,_0x544f92._0x51daa3,_0x544f92._0x283d67,_0x544f92._0x4fecdc)](_0x327689,_0x1a8a3a);break;}case _0xf613aa(0x46d,_0x544f92._0x166a84,0x515,0x41f):{this['finalResponse']=_0x26a19d[_0xf613aa(0x3e4,0x3c3,0x46f,_0x544f92._0x1307b3)];break;}case _0xf613aa(0x42f,0x444,0x446,0x3f9):{const _0x2591d1=_0x26a19d['response'];throw new OpenAiResponsesStreamError(_0x2591d1?.[_0xf613aa(0x349,_0x544f92._0x2b6066,_0x544f92._0x21a9ec,_0x544f92._0x38a05d)]?.['message']??'Responses\x20stream\x20failed',{'code':_0x2591d1?.[_0xf613aa(0x349,_0x544f92._0x2b8be5,_0x544f92._0x4153ff,_0x544f92._0x522a08)]?.[_0x627e01(0x2b3,_0x544f92._0x4b5325,_0x544f92._0x26889f,_0x544f92._0x3b2eee)]});}case _0xf613aa(_0x544f92._0x3ccac8,0x33b,0x2bd,0x2bc):{const _0x36365d=_0x26a19d[_0x627e01(_0x544f92._0x3a9dc5,0x241,0x26d,0x26a)];throw new OpenAiResponsesStreamError(_0x36365d?.[_0x627e01(0x258,0x253,0x30b,_0x544f92._0x4811e5)]??'Responses\x20stream\x20failed',{'code':_0x36365d?.[_0x627e01(_0x544f92._0x3a7651,_0x544f92._0x4ac7f8,_0x544f92._0x499659,0x275)],'status':typeof _0x26a19d[_0x627e01(_0x544f92._0x2c84de,_0x544f92._0x3dd951,_0x544f92._0x6541dd,0x273)]===_0x627e01(0x218,0x33b,_0x544f92._0x5853ac,_0x544f92._0x1aad34)?_0x26a19d[_0xf613aa(_0x544f92._0x3f899f,0x389,_0x544f92._0x3069dd,0x32c)]:void 0x0});}}function _0x627e01(_0x111866,_0x36b702,_0x563817,_0x1ecd09){return _0x55f0a4(_0x111866-0xdf,_0x36b702-_0x4b06a9._0x2c8174,_0x563817,_0x1ecd09-_0x4b06a9._0x298e78);}return[];}[_0x55f0a4(-0x1e8,-0x284,-0x1fd,-0x244)](){const _0x5f047c={_0x2ee5a7:0x2a5,_0xabeb10:0x3f8,_0x470c5b:0x439,_0x42fd2c:0x3a5,_0x49c4ac:0x393,_0x562ffd:0x328,_0x33b35a:0x391,_0x499664:0x372,_0x22bb3a:0x3ad,_0xf95334:0x31f,_0x835cfb:0x23a,_0x53c6b4:0x252,_0x3795d7:0x35e,_0x2b67e4:0x336,_0x111b50:0x3fc,_0xe48e75:0x347,_0x1ea61b:0x32c,_0x2b4225:0x3a8,_0x3f39f9:0x322,_0x57b989:0x493,_0x925ed9:0x35b,_0x2a04fe:0x341,_0x51be37:0x428,_0x513dd0:0x3b9,_0x19eeb2:0x413,_0x4477f:0x3c1,_0x1be0fc:0x307,_0x3cacdf:0x2a3,_0x1ccfdb:0x277,_0x1778fe:0x256,_0x15f8ab:0x1fe,_0x595541:0x39b,_0x3d95f5:0x3c0,_0x1c3e3a:0x36e,_0x50e981:0x393,_0x28f197:0x2c4,_0x2c6459:0x3ab,_0x15aa46:0x33c,_0x2092a2:0x323,_0x3ac5c3:0x2d9,_0x11f782:0x2b9,_0xb11751:0x3e9,_0x4f61ab:0x2d0,_0x3124b3:0x3a0,_0x9667e0:0x2e8,_0x58c1fe:0x310,_0x527d8d:0x2e8,_0x5b72de:0x306,_0x1c316e:0x34b,_0xd4d0b5:0x314,_0x565623:0x314,_0x242158:0x20a,_0x40eae0:0x376,_0x2e01a8:0x331,_0x190c0e:0x376,_0x674bbc:0x3c2,_0x17231d:0x2de,_0x4b6525:0x39e,_0x5005f1:0x36d,_0x26dbed:0x3d5,_0x55a370:0x313,_0x472634:0x371,_0x4d4e4b:0x3d5,_0x44042b:0x30f,_0xc6390d:0x2bd,_0x5830cd:0x3bc,_0x330417:0x36d,_0x5be1ed:0x2a0,_0x34061e:0x341},_0x5c1dcb={_0x328e0a:0x582},_0x5461b9={_0x54c75f:0xca,_0x34a1c0:0xb},_0xccda9e=[];for(const [_0x4186fb,_0x1fcf1c]of this[_0x39bfcd(0x2c6,_0x5f047c._0x2ee5a7,0x2ca,0x27c)][_0x39bfcd(_0x5f047c._0xabeb10,_0x5f047c._0x470c5b,_0x5f047c._0x42fd2c,_0x5f047c._0x49c4ac)]()){const _0x2fe1b6=_0x1fcf1c[_0x57eea8(_0x5f047c._0x562ffd,_0x5f047c._0x33b35a,0x337,0x32e)]('');if(_0x2fe1b6[_0x57eea8(0x36f,0x355,_0x5f047c._0x499664,_0x5f047c._0x22bb3a)]===0x0)continue;_0xccda9e[_0x39bfcd(_0x5f047c._0xf95334,_0x5f047c._0x835cfb,0x26b,_0x5f047c._0x53c6b4)]({'index':_0x4186fb,'item':{'type':'message','role':'assistant','content':[{'type':_0x57eea8(0x3ce,0x2fd,_0x5f047c._0x3795d7,_0x5f047c._0x2b67e4),'text':_0x2fe1b6}]}});}for(const _0x3cae41 of this[_0x57eea8(_0x5f047c._0x111b50,0x3d0,_0x5f047c._0xe48e75,_0x5f047c._0x1ea61b)][_0x39bfcd(0x3b6,0x292,0x314,_0x5f047c._0x2b4225)]()){_0xccda9e['push']({'index':_0x3cae41['outputIndex']??_0xccda9e[_0x57eea8(0x2ec,0x2e0,0x372,_0x5f047c._0x3f39f9)],'item':{'type':_0x57eea8(_0x5f047c._0x57b989,0x489,0x3f6,_0x5f047c._0x925ed9),'id':_0x3cae41['id'],..._0x3cae41[_0x57eea8(_0x5f047c._0x2a04fe,_0x5f047c._0x51be37,0x402,0x3c6)]?{'encrypted_content':_0x3cae41[_0x39bfcd(_0x5f047c._0x513dd0,0x41f,0x3d1,0x318)]}:{},..._0x3cae41[_0x57eea8(_0x5f047c._0x111b50,_0x5f047c._0x19eeb2,_0x5f047c._0x4477f,0x421)][_0x57eea8(0x2c1,_0x5f047c._0x1be0fc,_0x5f047c._0x3cacdf,0x231)]>0x0?{'summary':Array[_0x39bfcd(0x258,_0x5f047c._0x1ccfdb,_0x5f047c._0x1778fe,_0x5f047c._0x15f8ab)](_0x3cae41[_0x39bfcd(_0x5f047c._0x595541,0x324,0x390,_0x5f047c._0x3d95f5)]['entries']())[_0x39bfcd(0x2d8,_0x5f047c._0x1c3e3a,0x38b,0x401)]((_0x1831cb,_0x2bbd51)=>_0x1831cb[0x0]-_0x2bbd51[0x0])[_0x39bfcd(0x27f,_0x5f047c._0x50e981,0x310,_0x5f047c._0x28f197)](([,_0x47940c])=>{return{'type':'summary_text','text':_0x47940c};})}:{},..._0x3cae41[_0x57eea8(0x2de,_0x5f047c._0x2c6459,_0x5f047c._0x15aa46,0x33f)][_0x57eea8(0x208,_0x5f047c._0x2092a2,_0x5f047c._0x3cacdf,_0x5f047c._0x3ac5c3)]>0x0?{'text':Array[_0x57eea8(0x1db,0x289,0x287,_0x5f047c._0x11f782)](_0x3cae41['textByIndex']['entries']())[_0x39bfcd(_0x5f047c._0xb11751,0x416,0x38b,_0x5f047c._0x4f61ab)]((_0x13ed8b,_0x2a3890)=>_0x13ed8b[0x0]-_0x2a3890[0x0])[_0x39bfcd(_0x5f047c._0x3124b3,_0x5f047c._0x9667e0,_0x5f047c._0x58c1fe,_0x5f047c._0x527d8d)](([,_0x10340b])=>_0x10340b)[_0x39bfcd(0x253,0x36b,_0x5f047c._0x5b72de,0x253)]('')}:{}}});}function _0x39bfcd(_0x40c2e9,_0x43ef75,_0x5771e9,_0x31c0ea){return _0x2e041c(_0x40c2e9-_0x5461b9._0x54c75f,_0x43ef75-_0x5461b9._0x34a1c0,_0x5771e9-0x3a4,_0x40c2e9);}function _0x57eea8(_0x35a345,_0x4fe7d3,_0x30d3f5,_0x35cd33){return _0x55f0a4(_0x35a345-0xe,_0x4fe7d3-0x50,_0x35cd33,_0x30d3f5-_0x5c1dcb._0x328e0a);}for(const _0x4f56b8 of this['toolCalls'][_0x39bfcd(0x2ac,_0x5f047c._0x1c316e,_0x5f047c._0xd4d0b5,0x37b)]()){_0xccda9e['push']({'index':this[_0x39bfcd(0x195,_0x5f047c._0x565623,0x252,_0x5f047c._0x242158)][_0x39bfcd(0x2ef,0x3d4,_0x5f047c._0x40eae0,0x3e0)](_0x4f56b8['id'])??_0xccda9e[_0x57eea8(_0x5f047c._0x2e01a8,_0x5f047c._0x190c0e,_0x5f047c._0x499664,0x3cd)],'item':{'type':_0x57eea8(_0x5f047c._0x674bbc,_0x5f047c._0x17231d,_0x5f047c._0x4b6525,_0x5f047c._0x5005f1),'call_id':_0x4f56b8['id'],'name':_0x4f56b8[_0x39bfcd(0x365,0x3a1,_0x5f047c._0x26dbed,0x425)][_0x57eea8(0x43b,0x43f,0x3f0,0x343)],'arguments':_0x4f56b8[_0x39bfcd(_0x5f047c._0x55a370,_0x5f047c._0x472634,_0x5f047c._0x4d4e4b,0x3ae)][_0x39bfcd(0x31e,_0x5f047c._0x44042b,_0x5f047c._0xc6390d,0x34f)]}});}return _0xccda9e[_0x57eea8(0x3a6,0x367,_0x5f047c._0x5830cd,0x3e5)]((_0x293fb4,_0x4814a3)=>_0x293fb4[_0x39bfcd(0x36d,0x336,0x358,0x3ef)]-_0x4814a3[_0x57eea8(0x3e7,0x30e,0x389,0x395)])[_0x57eea8(_0x5f047c._0x330417,_0x5f047c._0x5be1ed,_0x5f047c._0x34061e,0x2e2)](_0x280d60=>_0x280d60[_0x57eea8(0x3ad,0x332,0x30e,0x3aa)]);}[_0x55f0a4(-0xe8,-0x225,-0x24c,-0x19b)](_0x5b82db,_0x1ccfc0){const _0x4a9994={_0x136636:0xbf,_0x154532:0xb5,_0x5a12bd:0xd5,_0x5d922d:0x78,_0x1bc308:0xc8,_0xcaca88:0x8e,_0x5300d8:0x7f,_0x408ec8:0x91,_0x3ba4d7:0x14,_0x51a0cb:0x74,_0x228e61:0x29,_0x15923a:0x63,_0xe45a01:0xaa,_0xc73550:0xa,_0x57bcec:0x9,_0x574626:0x13,_0x4c63e1:0x9f},_0x3aa248={_0xfb9642:0x1d7,_0x43b0cf:0x9,_0x20efc2:0x245},_0x2dd241={_0x23942a:0x1af,_0x2c3a81:0x82,_0x84020:0x16};function _0x299c34(_0xe38f1c,_0x185462,_0x458280,_0x36445d){return _0x2e041c(_0xe38f1c-_0x2dd241._0x23942a,_0x185462-_0x2dd241._0x2c3a81,_0x36445d-_0x2dd241._0x84020,_0x458280);}const _0x467cfc=this[_0x299c34(-_0x4a9994._0x136636,-_0x4a9994._0x154532,-_0x4a9994._0x5a12bd,-_0x4a9994._0x5d922d)][_0x299c34(-0xb9,-_0x4a9994._0x1bc308,_0x4a9994._0xcaca88,-0x18)](_0x5b82db);if(_0x467cfc)return _0x1ccfc0!==void 0x0&&(_0x467cfc[_0x299c34(0x14,-_0x4a9994._0x5300d8,_0x4a9994._0x408ec8,_0x4a9994._0x3ba4d7)]=_0x1ccfc0,this[_0x16a259(0x1,_0x4a9994._0x51a0cb,_0x4a9994._0x228e61,0x117)][_0x16a259(0x101,_0x4a9994._0x15923a,0x87,_0x4a9994._0xe45a01)](_0x1ccfc0,_0x5b82db)),_0x467cfc;const _0x24e6e2={'id':_0x5b82db,'outputIndex':_0x1ccfc0,'summaryByIndex':new Map(),'textByIndex':new Map()};this[_0x16a259(-0x7e,_0x4a9994._0xc73550,_0x4a9994._0x57bcec,-0x9)][_0x16a259(_0x4a9994._0x574626,0x63,0x11c,_0x4a9994._0x4c63e1)](_0x5b82db,_0x24e6e2);function _0x16a259(_0x53edbf,_0x52e6dc,_0x5c14f3,_0x3107ac){return _0x55f0a4(_0x53edbf-_0x3aa248._0xfb9642,_0x52e6dc-_0x3aa248._0x43b0cf,_0x3107ac,_0x52e6dc-_0x3aa248._0x20efc2);}return _0x1ccfc0!==void 0x0&&this['outputIndexToReasoningId'][_0x16a259(-_0x4a9994._0x57bcec,0x63,0xce,0xea)](_0x1ccfc0,_0x5b82db),_0x24e6e2;}};function createOpenAiResponsesStreamParser(_0x4af040){return new OpenAiResponsesStreamParser(_0x4af040);}function createOpenAiSurfaces(_0x3dff38={}){const _0x9d0f53={_0x4615ea:0x7e,_0x5df3d9:0x17c,_0x4a5869:0xcf,_0x51402c:0x2c,_0x554922:0x31,_0x115acd:0x40,_0x2155e4:0x231,_0x4f00a2:0x18b,_0x11a0cd:0x182,_0x3925da:0x19c,_0x2ad146:0x1b7,_0x4657d8:0x125,_0x7edda5:0xb8,_0x5267e3:0x1f5,_0x7995d0:0x14a,_0x6899dd:0xd0,_0x29ffdf:0x152,_0x3116f2:0xc2,_0x3f6bd5:0x1fe},_0x1f298c={_0x55db7b:0x17b,_0xa7f692:0x1f9},_0x4c982f={_0x1057c5:0x13a},_0x237c6c={_0x164511:0x3e9,_0x714287:0x479},_0x361770={_0xc3cc87:0x73,_0x36455f:0x15a},_0x508682={_0x3ac662:0x1da,_0x17d5de:0x7f},_0x22c69e=_0x3dff38[_0xaffba2(_0x9d0f53._0x4615ea,_0x9d0f53._0x5df3d9,0x9e,_0x9d0f53._0x4a5869)]??_0xaffba2(0xfd,_0x9d0f53._0x51402c,-_0x9d0f53._0x554922,_0x9d0f53._0x115acd);function _0xc9427a(_0x2dcc1d,_0x16176d,_0x59f1f6,_0x4ab8af){return _0x55f0a4(_0x2dcc1d-_0x508682._0x3ac662,_0x16176d-_0x508682._0x17d5de,_0x2dcc1d,_0x59f1f6-0xc0);}function _0xaffba2(_0x1c64e3,_0xef827b,_0xe2acef,_0x4c31fb){return _0x2e041c(_0x1c64e3-_0x361770._0xc3cc87,_0xef827b-0x12b,_0x4c31fb-_0x361770._0x36455f,_0x1c64e3);}const _0x207f45=_0x3dff38[_0xc9427a(-_0x9d0f53._0x2155e4,-_0x9d0f53._0x4f00a2,-0x1f5,-_0x9d0f53._0x11a0cd)]??_0xc9427a(-_0x9d0f53._0x3925da,-0x25e,-_0x9d0f53._0x2ad146,-0x25c);return[{'id':OPENAI_CHAT_COMPLETIONS_SURFACE,'transport':_0xaffba2(_0x9d0f53._0x4657d8,0x93,_0x9d0f53._0x7edda5,0x10b),'createRequest'(_0x3f1300){return{'accept':'application/json','body':createChatRequestBody(_0x3f1300,![]),'path':_0x22c69e};},'parseResponse'(_0xba861f){return parseChatCompletionResponse(_0xba861f);}},{'id':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,'transport':_0xc9427a(-_0x9d0f53._0x5267e3,-0xcd,-_0x9d0f53._0x7995d0,-_0x9d0f53._0x6899dd),'createRequest'(_0x1f9468){return{'accept':'text/event-stream','body':createChatRequestBody(_0x1f9468,!![]),'path':_0x22c69e};},'createStreamParser'(){return new OpenAiChatCompletionsStreamParser();}},{'id':OPENAI_RESPONSES_SURFACE,'transport':_0xc9427a(-_0x9d0f53._0x29ffdf,-_0x9d0f53._0x3116f2,-0x13c,-_0x9d0f53._0x3f6bd5),'createRequest'(_0x523040){function _0xe64a56(_0x3db84e,_0x21baaa,_0x13dec5,_0xdb4361){return _0xc9427a(_0xdb4361,_0x21baaa-0x1d,_0x13dec5-0x583,_0xdb4361-0xf0);}return{'accept':_0xe64a56(0x449,_0x237c6c._0x164511,0x428,_0x237c6c._0x714287),'body':createResponsesRequestBody(_0x523040,![]),'path':_0x207f45};},'parseResponse'(_0xbaab85,_0x506d4c){return parseResponsesResponse(_0xbaab85,_0x506d4c);}},{'id':OPENAI_RESPONSES_STREAM_SURFACE,'transport':'http-sse','createRequest'(_0x302826){function _0x17cfd9(_0x1496b5,_0x4fd5f7,_0x496e9a,_0xff5a01){return _0xc9427a(_0x1496b5,_0x4fd5f7-0x2f,_0x4fd5f7-0x59,_0xff5a01-_0x4c982f._0x1057c5);}return{'accept':_0x17cfd9(-_0x1f298c._0x55db7b,-0x1cc,-_0x1f298c._0xa7f692,-0x25b),'body':createResponsesRequestBody(_0x302826,!![]),'path':_0x207f45};},'createStreamParser'(_0x1da7e6){return new OpenAiResponsesStreamParser(_0x1da7e6);}},{'id':OPENAI_RESPONSES_WEBSOCKET_SURFACE,'transport':'websocket','createRequest'(_0x1199c7){return{'initialEvent':createOpenAiResponsesWebSocketEvent(_0x1199c7),'path':_0x207f45};},'createStreamParser'(_0x59cbf8){return createOpenAiResponsesStreamParser(_0x59cbf8);}}];}var OpenAiProviderAdapter=class{[_0x2e041c(-0xbd,-0xbf,-0xcb,-0xc4)];constructor(_0x49c0ff){const _0x1c3feb={_0x4c5ed0:0x1bf,_0x1a03be:0x1c6,_0x58f379:0x266},_0x55686e={_0x1e3f14:0x12d,_0x1d207d:0x4b};function _0x1fcf28(_0x437884,_0x35d6bc,_0x539f6f,_0xb47eb8){return _0x55f0a4(_0x437884-_0x55686e._0x1e3f14,_0x35d6bc-_0x55686e._0x1d207d,_0x35d6bc,_0xb47eb8-0x4de);}this[_0x1fcf28(_0x1c3feb._0x4c5ed0,_0x1c3feb._0x1a03be,0x261,_0x1c3feb._0x58f379)]=_0x49c0ff;}[_0x55f0a4(-0x24d,-0x24e,-0x283,-0x2b0)](){return new Error('OpenAiModel\x20requires\x20an\x20apiKey\x20or\x20providerSessionResolver');}async[_0x55f0a4(-0x311,-0x215,-0x1d7,-0x254)](_0x1988f7,_0x4c7627){const _0x4b12e1={_0x4ceb48:0x3cd,_0xf349ea:0x450,_0x591c6c:0x3de,_0x52fb63:0x29f,_0x2b1879:0x327,_0x130889:0x1e0,_0xcf634a:0x2fb,_0x4e9683:0x3f4,_0x4f6967:0x38f,_0x440a1d:0x3cb,_0x372681:0x216,_0x2a2e79:0x1e8,_0x120137:0x20d,_0x5c8f8c:0x275,_0x3c6893:0x2b6,_0x500ac5:0x310,_0x5186cf:0x2ed,_0x52c4ae:0x351,_0xbd07aa:0x2a3,_0x4f4667:0x300,_0x333cda:0x3c7,_0x540c2b:0x3a5,_0x57db19:0x2e3,_0x405261:0x292,_0x5827cf:0x36e,_0x1c1ddf:0x378,_0x7c3614:0x3d7},_0xe8099c={_0x2e41ab:0x0,_0x11b0eb:0x508},_0x5ea744={_0x5bd035:0x1d6,_0x596cce:0x89},_0x546388=new Headers();function _0xdbe538(_0x1dd4f0,_0x26fcd9,_0x52eaf7,_0x50ea1a){return _0x55f0a4(_0x1dd4f0-_0x5ea744._0x5bd035,_0x26fcd9-_0x5ea744._0x596cce,_0x26fcd9,_0x52eaf7-0x5c0);}_0x546388[_0xdbe538(_0x4b12e1._0x4ceb48,_0x4b12e1._0xf349ea,_0x4b12e1._0x591c6c,0x3bc)]('accept',_0x4c7627['accept']);function _0x55bc4a(_0xc72e4c,_0x109013,_0x257f6d,_0x201b96){return _0x55f0a4(_0xc72e4c-_0xe8099c._0x2e41ab,_0x109013-0x113,_0x257f6d,_0xc72e4c-_0xe8099c._0x11b0eb);}_0x546388['set'](_0x55bc4a(_0x4b12e1._0x52fb63,_0x4b12e1._0x2b1879,_0x4b12e1._0x130889,_0x4b12e1._0xcf634a),_0xdbe538(0x418,_0x4b12e1._0x4e9683,_0x4b12e1._0x4f6967,_0x4b12e1._0x440a1d)+_0x1988f7['credential'][_0x55bc4a(_0x4b12e1._0x372681,0x1d0,_0x4b12e1._0x2a2e79,_0x4b12e1._0x120137)]);_0x4c7627[_0x55bc4a(_0x4b12e1._0x5c8f8c,0x2ec,_0x4b12e1._0x3c6893,_0x4b12e1._0x500ac5)]!==![]&&_0x546388[_0xdbe538(0x3f5,0x357,0x3de,_0x4b12e1._0x591c6c)](_0xdbe538(0x38e,_0x4b12e1._0x5186cf,_0x4b12e1._0x52c4ae,_0x4b12e1._0xbd07aa),_0xdbe538(_0x4b12e1._0x4f4667,_0x4b12e1._0x333cda,_0x4b12e1._0x540c2b,_0x4b12e1._0x57db19));const _0x2e8227=await this['headerResolver']?.({'body':_0x1988f7[_0x55bc4a(0x28d,0x27b,0x280,_0x4b12e1._0x405261)],'credential':_0x1988f7['credential'],'request':_0x1988f7[_0x55bc4a(_0x4b12e1._0x5827cf,0x376,_0x4b12e1._0x1c1ddf,0x357)],'session':_0x1988f7['session'],'stream':_0x1988f7[_0xdbe538(_0x4b12e1._0x7c3614,0x478,0x3be,0x303)]});for(const [_0x115afb,_0x349f66]of Object['entries'](_0x2e8227??{})){_0x546388['set'](_0x115afb,_0x349f66);}return _0x546388;}[_0x55f0a4(-0x284,-0x240,-0x25e,-0x271)](_0x353897){return _0x353897;}[_0x55f0a4(-0x251,-0x201,-0x11a,-0x1bc)](_0x16ab2f,_0x5ceed2){return resolveSessionBaseUrl(_0x16ab2f,_0x5ceed2);}[_0x55f0a4(-0x22e,-0x2ef,-0x2e9,-0x2b7)](_0x3fd928,_0x2ba429){return resolveApiCredential(_0x3fd928,_0x2ba429);}async[_0x2e041c(-0xc7,-0xba,-0x1c,0x9e)](_0x15a25b){return await createOpenAiApiError(_0x15a25b);}},OpenAiModel=class _OpenAiModel extends RoutedModel{static [_0x2e041c(0x4e,-0x8,-0x6,-0x28)]=new Map();['chatCompletionsPath'];[_0x55f0a4(-0x2fc,-0x365,-0x2d8,-0x2b5)];constructor(_0x321f72={}){const _0x5b0d54={_0x1ca77a:0x110,_0x4753e8:0xe5,_0x102ea9:0xfd,_0x31755e:0x1a2,_0x49c5f6:0x1b3,_0x39ef23:0x56,_0x45206f:0xdf,_0xb26ee6:0x77,_0x5c7663:0x52,_0xb55104:0x11e,_0x2c46f9:0x28,_0x25cef5:0x69,_0x2f909c:0x6d,_0x3ab4ec:0xa8,_0x1e5535:0x1a3,_0x34361b:0x6c,_0x1a2b03:0xac,_0x194a35:0x8e,_0x5df3f8:0x9d,_0x52c005:0x63,_0x3d6db2:0x53,_0x49331a:0x17,_0x2ece99:0xd1,_0x2601a5:0xce,_0x171306:0x7a},_0x1a529c={_0x537703:0x7e,_0x51cd44:0x1e5},_0x3097c0={_0x4b6c48:0x1a9},_0x374027=_0x321f72[_0x52ef6d(_0x5b0d54._0x1ca77a,0x139,-0x1d,0x83)]??'gpt-4o';function _0x52ef6d(_0x5397eb,_0xd6b68a,_0x4a142e,_0x68281a){return _0x2e041c(_0x5397eb-_0x3097c0._0x4b6c48,_0xd6b68a-0xd8,_0x68281a-0x182,_0x5397eb);}const _0x42067a=_0x321f72[_0xecd6e1(-0x109,-0x65,-_0x5b0d54._0x4753e8,-_0x5b0d54._0x102ea9)]??0x4000;function _0xecd6e1(_0x445aba,_0x55052d,_0x258d03,_0x1d8f9f){return _0x55f0a4(_0x445aba-_0x1a529c._0x537703,_0x55052d-0x1aa,_0x445aba,_0x258d03-_0x1a529c._0x51cd44);}const _0x14c77e=_0x321f72[_0x52ef6d(_0x5b0d54._0x31755e,_0x5b0d54._0x49c5f6,0x78,0xf7)]??_0x52ef6d(-0x17,0xdd,_0x5b0d54._0x39ef23,0x68),_0x4669de=_0x321f72[_0xecd6e1(-_0x5b0d54._0x45206f,-_0x5b0d54._0xb26ee6,-0xd0,-0x77)]??_0x52ef6d(_0x5b0d54._0x5c7663,_0x5b0d54._0xb55104,_0x5b0d54._0x2c46f9,0xb8);super({'apiKey':_0x321f72[_0xecd6e1(-_0x5b0d54._0x25cef5,-0xba,-_0x5b0d54._0x2f909c,-_0x5b0d54._0x3ab4ec)],'baseUrl':trimTrailingSlashes(_0x321f72['baseUrl']??_0xecd6e1(-0x1e,0xa9,-0x11,0xb1)),'fetch':_0x321f72['fetch'],'maxTokens':_0x42067a,'model':_0x374027,'reasoning':_0x321f72[_0x52ef6d(0x1d9,0x188,0x1cc,_0x5b0d54._0x1e5535)],'providerAdapter':new OpenAiProviderAdapter(_0x321f72[_0xecd6e1(0xc,_0x5b0d54._0x2c46f9,-0x93,-_0x5b0d54._0x34361b)]),'providerSessionResolver':_0x321f72[_0xecd6e1(-_0x5b0d54._0x1a2b03,-_0x5b0d54._0x194a35,-_0x5b0d54._0x5df3f8,-0xd3)],'requestMutators':_0x321f72['requestMutators'],'router':new StaticModelSurfaceRouter({'complete':OPENAI_CHAT_COMPLETIONS_SURFACE,'stream':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE}),'sessionManager':_0x321f72['sessionManager'],'surfaces':createOpenAiSurfaces({'chatCompletionsPath':_0x14c77e,'responsesPath':_0x4669de}),'webSocketFactory':_0x321f72[_0xecd6e1(0x26,0x43,-_0x5b0d54._0x52c005,0x18)]}),this[_0xecd6e1(0x3a,-0x78,-_0x5b0d54._0x3d6db2,_0x5b0d54._0x49331a)]=_0x14c77e,this[_0x52ef6d(_0x5b0d54._0x2ece99,_0x5b0d54._0x2601a5,0xe,_0x5b0d54._0x171306)]=_0x4669de;}['completeViaChatCompletionsSurface'](_0xc624e3,_0x43f4e9){const _0x21a16d={_0x36a8fd:0x10c,_0xb068da:0x63},_0x3a4d8a={_0x49f059:0xef,_0x9658c:0x2f4};function _0x4a8df4(_0x21aab9,_0x251260,_0x5d7c47,_0x22a89b){return _0x55f0a4(_0x21aab9-_0x3a4d8a._0x49f059,_0x251260-0x1d4,_0x22a89b,_0x251260-_0x3a4d8a._0x9658c);}return this[_0x4a8df4(0xc5,_0x21a16d._0x36a8fd,0x1b4,_0x21a16d._0xb068da)](_0xc624e3,OPENAI_CHAT_COMPLETIONS_SURFACE,_0x43f4e9);}[_0x55f0a4(-0x2db,-0x328,-0x37c,-0x2da)](_0x4bca2d,_0x5294d8){const _0x41e631={_0x875029:0xd5};function _0x552994(_0x127d8e,_0x413227,_0x2c2187,_0x30389d){return _0x2e041c(_0x127d8e-0xef,_0x413227-0x8e,_0x127d8e- -0x9a,_0x30389d);}return this[_0x552994(-_0x41e631._0x875029,-0xf3,-0x55,-0x75)](_0x4bca2d,OPENAI_RESPONSES_SURFACE,_0x5294d8);}[_0x55f0a4(-0x1d6,-0xec,-0xc7,-0x17d)](_0xc00003,_0x14ca02){const _0x50f961={_0x212e47:0x191},_0x2aa837={_0x4f0caf:0x95,_0x260b2e:0x8c,_0x5739b0:0x379};function _0xe43afd(_0x28f1e4,_0x5d2f62,_0xaad6e6,_0x57b021){return _0x55f0a4(_0x28f1e4-_0x2aa837._0x4f0caf,_0x5d2f62-_0x2aa837._0x260b2e,_0x57b021,_0x28f1e4-_0x2aa837._0x5739b0);}return this[_0xe43afd(_0x50f961._0x212e47,0x23b,0x135,0xd7)](_0xc00003,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x14ca02);}['streamViaChatCompletionsSurface'](_0x169bd0,_0x566b2e){return this['streamViaSurface'](_0x169bd0,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,_0x566b2e);}[_0x2e041c(0x69,0x3a,-0x7,-0x15)](_0x33b3f6,_0x2d57c2){const _0x146ade={_0x22bfe3:0x13b,_0x23223a:0x12b},_0x156f3b={_0x424fe7:0xd0,_0x1ccd8c:0x3b1};function _0x290137(_0x32f5d9,_0x34eb5f,_0x577af8,_0x3fe01f){return _0x55f0a4(_0x32f5d9-0x3f,_0x34eb5f-_0x156f3b._0x424fe7,_0x577af8,_0x32f5d9-_0x156f3b._0x1ccd8c);}return this[_0x290137(_0x146ade._0x22bfe3,0x1dd,_0x146ade._0x23223a,0x10e)](_0x33b3f6,OPENAI_RESPONSES_STREAM_SURFACE,_0x2d57c2);}[_0x55f0a4(-0x1c6,-0x1e8,-0x250,-0x1dd)](_0x108345,_0x1874a4){const _0x282d48={_0x2b8efe:0x6a,_0x1264d0:0x6c},_0x405768={_0x28d0ce:0x44,_0x308f1d:0xb3};function _0x110463(_0xaabe57,_0x95de52,_0x30ed14,_0x40cf18){return _0x2e041c(_0xaabe57-_0x405768._0x28d0ce,_0x95de52-0x1ab,_0x40cf18-_0x405768._0x308f1d,_0x30ed14);}return this[_0x110463(_0x282d48._0x2b8efe,-_0x282d48._0x1264d0,0x63,-0x16)](_0x108345,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x1874a4);}async[_0x2e041c(-0x1c,-0x124,-0x7b,-0x36)](_0x581ea6,_0x4de56a){const _0x72574b={_0x56efb6:0x1be},_0x2a474a={_0x2fd38:0x5c};function _0x2fda7a(_0x4fa3c8,_0x41616f,_0x1010ea,_0xc364d7){return _0x2e041c(_0x4fa3c8-_0x2a474a._0x2fd38,_0x41616f-0x12b,_0x1010ea-0x205,_0xc364d7);}try{return await this[_0x2fda7a(_0x72574b._0x56efb6,0x155,0x1c0,0x147)](_0x581ea6,_0x4de56a);}catch(_0x4c2188){if(_0x4c2188 instanceof OpenAiApiError)throw this['mapApiError'](_0x4c2188);throw _0x4c2188;}}async[_0x2e041c(-0x81,-0x53,-0x69,-0xe)](_0x3114c1,_0x234222){const _0x1360c3={_0x5af913:0x398,_0x2a8e43:0x308,_0x143473:0x48},_0x253133={_0x3764f1:0x9e,_0x3da07b:0x156,_0x148af0:0x1be},_0x23a438={_0x3f0b23:0x215};function _0x3ba47e(_0x1ccc7e,_0x36da2c,_0x11f1d2,_0x54e3e2){return _0x55f0a4(_0x1ccc7e-0xce,_0x36da2c-0x166,_0x1ccc7e,_0x54e3e2-_0x23a438._0x3f0b23);}function _0xc9a932(_0x9325fc,_0x240436,_0x39fcfa,_0x2079ed){return _0x2e041c(_0x9325fc-_0x253133._0x3764f1,_0x240436-_0x253133._0x3da07b,_0x9325fc- -_0x253133._0x148af0,_0x240436);}try{return await this[_0xc9a932(-0x2eb,-_0x1360c3._0x5af913,-0x2eb,-_0x1360c3._0x2a8e43)](_0x3114c1,_0x234222);}catch(_0x3fc5be){if(_0x3fc5be instanceof OpenAiApiError)throw this[_0x3ba47e(-0x94,_0x1360c3._0x143473,-0xce,-0x5c)](_0x3fc5be);throw _0x3fc5be;}}async[_0x55f0a4(-0x218,-0x139,-0x288,-0x1d6)](_0x3c985b,_0x58dd01){const _0x1580e3={_0x35c221:0xb0,_0x3d521a:0x98,_0x24efdc:0xb4,_0xcf9e2c:0x7,_0x4201bb:0xa2,_0x1be0f4:0x8c,_0xc221ca:0x5e,_0x4a56e2:0x8,_0x1e3018:0x82,_0x4596be:0x50},_0x4a3917={_0x57e626:0xe0,_0x32d5e9:0x10a,_0x2ed4b3:0x51};function _0x2f7d0c(_0x5c19f6,_0x3351df,_0x887fcb,_0x2aefbe){return _0x2e041c(_0x5c19f6-_0x4a3917._0x57e626,_0x3351df-_0x4a3917._0x32d5e9,_0x5c19f6-_0x4a3917._0x2ed4b3,_0x3351df);}function _0x24d063(_0x44d015,_0x47bbc6,_0x1adc14,_0x4b9ca9){return _0x55f0a4(_0x44d015-0xde,_0x47bbc6-0x199,_0x1adc14,_0x4b9ca9-0x2c1);}try{let _0x5a7313;for await(const _0x59a98c of this['responseSocketStream'](_0x3c985b,_0x58dd01)){_0x59a98c['type']===_0x2f7d0c(-_0x1580e3._0x35c221,-_0x1580e3._0x3d521a,-0x14f,-0x34)&&(_0x5a7313=_0x59a98c[_0x2f7d0c(-0x18,-0x5f,-_0x1580e3._0x24efdc,_0x1580e3._0xcf9e2c)]);}if(!_0x5a7313)throw new Error(_0x24d063(-0x1f,_0x1580e3._0x4201bb,_0x1580e3._0x1be0f4,_0x1580e3._0xc221ca));return _0x5a7313;}catch(_0x51fe0e){if(_0x51fe0e instanceof OpenAiApiError)throw this[_0x24d063(-_0x1580e3._0x4a56e2,_0x1580e3._0x1e3018,0x7a,_0x1580e3._0x4596be)](_0x51fe0e);throw _0x51fe0e;}}async*[_0x55f0a4(-0x354,-0x269,-0x323,-0x2cf)](_0x53cb61,_0x1a9ff1){const _0x440a4e={_0x1ee2c9:0x2be,_0x4d2060:0x344,_0x28ebb8:0x1c2,_0x3e1032:0x1bd},_0x5ca860={_0x1d5b23:0x149},_0x3d0a35={_0x54cd62:0xf9};function _0x21bb25(_0x44badd,_0x1eb237,_0x2468db,_0x2056ff){return _0x2e041c(_0x44badd-0x18b,_0x1eb237-0xdc,_0x2468db- -_0x3d0a35._0x54cd62,_0x44badd);}function _0x212685(_0x3c6e01,_0x18ef1d,_0x2659d9,_0x4498db){return _0x2e041c(_0x3c6e01-_0x5ca860._0x1d5b23,_0x18ef1d-0x18b,_0x18ef1d-0x2b8,_0x2659d9);}try{yield*this[_0x212685(0x351,_0x440a4e._0x1ee2c9,0x20f,_0x440a4e._0x4d2060)](_0x53cb61,_0x1a9ff1);}catch(_0x4f1893){if(_0x4f1893 instanceof OpenAiApiError)throw this[_0x21bb25(-_0x440a4e._0x28ebb8,-0x1dd,-_0x440a4e._0x3e1032,-0x1c8)](_0x4f1893);throw _0x4f1893;}}async*[_0x55f0a4(-0x1da,-0x20b,-0x1e5,-0x1c4)](_0x2862b8,_0x20f118){const _0x167eea={_0x1b52af:0x2f,_0x4184c9:0x93,_0x4f036a:0x45,_0xbeed46:0x419,_0x372a7f:0x4a5},_0x35e705={_0x1fad52:0x6b5},_0x5f1e9f={_0x2f793f:0x1cf,_0x26a47d:0x36};function _0x727098(_0x2e2ce7,_0x2e7afd,_0x2f537d,_0x265c06){return _0x2e041c(_0x2e2ce7-0x167,_0x2e7afd-_0x5f1e9f._0x2f793f,_0x2e2ce7-_0x5f1e9f._0x26a47d,_0x265c06);}function _0x558457(_0x3b4dc5,_0x4d3936,_0x58f406,_0x4fb2cd){return _0x55f0a4(_0x3b4dc5-0x10e,_0x4d3936-0xb8,_0x4d3936,_0x3b4dc5-_0x35e705._0x1fad52);}try{yield*this[_0x727098(_0x167eea._0x1b52af,-0x2b,_0x167eea._0x4184c9,-_0x167eea._0x4f036a)](_0x2862b8,_0x20f118);}catch(_0x266121){if(_0x266121 instanceof OpenAiApiError)throw this[_0x558457(0x444,_0x167eea._0xbeed46,0x382,_0x167eea._0x372a7f)](_0x266121);throw _0x266121;}}async*['responseSocketStream'](_0x2f0281,_0x2996c8){const _0xc64db9={_0x332ce2:0x126,_0x34db5a:0x1bb,_0x2328d6:0x1b1,_0x535ce3:0x261,_0x5bd16e:0x34a,_0x2c43be:0x2b5,_0x40ebb2:0x2a8},_0x28bedf={_0x180bf2:0x7c,_0x4690b9:0x14},_0x3a6ceb={_0x5ebe8d:0x3b,_0x58885d:0x111,_0x3d07f3:0x1f1};function _0x5c8a2c(_0x175a51,_0x5ccf24,_0x904487,_0x3b4d1c){return _0x2e041c(_0x175a51-_0x3a6ceb._0x5ebe8d,_0x5ccf24-_0x3a6ceb._0x58885d,_0x904487- -_0x3a6ceb._0x3d07f3,_0x5ccf24);}function _0x469ce0(_0x5a508f,_0x30cc78,_0x410e86,_0x4d4354){return _0x55f0a4(_0x5a508f-0x6f,_0x30cc78-_0x28bedf._0x180bf2,_0x410e86,_0x4d4354- -_0x28bedf._0x4690b9);}try{yield*this[_0x469ce0(-_0xc64db9._0x332ce2,-0x18e,-_0xc64db9._0x34db5a,-_0xc64db9._0x2328d6)](_0x2f0281,_0x2996c8);}catch(_0x57f998){if(_0x57f998 instanceof OpenAiApiError)throw this[_0x5c8a2c(-_0xc64db9._0x535ce3,-_0xc64db9._0x5bd16e,-_0xc64db9._0x2c43be,-_0xc64db9._0x40ebb2)](_0x57f998);throw _0x57f998;}}['complete'](_0xfda35e,_0x3b5868){const _0x55ba4f={_0x7a2db6:0xa1,_0x4e9a80:0x15,_0x5c552a:0x92,_0x3bb8fa:0x115},_0x13d46a={_0x5d3d43:0x122,_0x58ee19:0x10f,_0x1f3519:0x26};function _0x99d3e1(_0x1d5854,_0x399edc,_0x3c798f,_0x1f5b6f){return _0x2e041c(_0x1d5854-_0x13d46a._0x5d3d43,_0x399edc-_0x13d46a._0x58ee19,_0x1d5854- -_0x13d46a._0x1f3519,_0x1f5b6f);}return this[_0x99d3e1(-_0x55ba4f._0x7a2db6,_0x55ba4f._0x4e9a80,-_0x55ba4f._0x5c552a,-_0x55ba4f._0x3bb8fa)](_0xfda35e,_0x3b5868);}['stream'](_0x1a8f58,_0x1e6d2b){const _0x4efbf5={_0x597ccd:0x20,_0x477d3c:0x5},_0x4ec472={_0x3d18c3:0x5b,_0xb25138:0x18c,_0x38b984:0x2ca};function _0x122b47(_0x11193f,_0x3993c6,_0x46baff,_0x386b8b){return _0x55f0a4(_0x11193f-_0x4ec472._0x3d18c3,_0x3993c6-_0x4ec472._0xb25138,_0x386b8b,_0x46baff-_0x4ec472._0x38b984);}return this[_0x122b47(-0x6f,_0x4efbf5._0x597ccd,-_0x4efbf5._0x477d3c,0x20)](_0x1a8f58,_0x1e6d2b);}[_0x2e041c(-0x1d2,-0x137,-0x112,-0xa3)](_0x585726){const _0x2aae63={_0x488340:0x14,_0xa09b74:0x9c,_0xe8f2ce:0xbe,_0x1827c2:0x122,_0x2fd5c1:0xb3,_0x21913a:0x65,_0x1504bf:0xf3},_0x157f7c={_0x459f78:0x11,_0xc855e6:0x2d5};function _0x339968(_0x3dd742,_0x24eb1d,_0x551a9b,_0xdd8616){return _0x55f0a4(_0x3dd742-0x123,_0x24eb1d-_0x157f7c._0x459f78,_0x24eb1d,_0x551a9b-_0x157f7c._0xc855e6);}const _0x54f49e=this[_0x16594e(0x2a,_0x2aae63._0x488340,_0x2aae63._0xa09b74,0x3a)](_0x585726);let _0x1188e9=_OpenAiModel[_0x339968(0xbe,_0x2aae63._0xe8f2ce,_0x2aae63._0x1827c2,0x1a4)]['get'](_0x54f49e);function _0x16594e(_0x1d30e9,_0x523277,_0x40996c,_0xfeb71a){return _0x55f0a4(_0x1d30e9-0x101,_0x523277-0xd5,_0x1d30e9,_0xfeb71a-0x2e5);}return!_0x1188e9&&(_0x1188e9={'pending':Promise[_0x16594e(-_0x2aae63._0x2fd5c1,0x46,0x97,-0x13)]()},_OpenAiModel[_0x16594e(0xf0,0x189,0x160,0x132)][_0x339968(0xbc,_0x2aae63._0x21913a,_0x2aae63._0x1504bf,0x3d)](_0x54f49e,_0x1188e9)),_0x1188e9;}[_0x55f0a4(-0x2af,-0x328,-0x2cd,-0x2ab)](_0x589ef0){const _0x407370={_0x1853ec:0x194,_0x381a50:0x3d9,_0x3cce0b:0x479},_0x40dd29={_0x514211:0xa,_0x156935:0x1bb,_0x26e742:0x52d};function _0x5a1d3a(_0x245afa,_0x22ff41,_0x2f6e46,_0xe7db02){return _0x2e041c(_0x245afa-_0x40dd29._0x514211,_0x22ff41-_0x40dd29._0x156935,_0x2f6e46-_0x40dd29._0x26e742,_0x245afa);}function _0x3d687a(_0x5cc779,_0x1f67b3,_0x56979c,_0x5abfae){return _0x55f0a4(_0x5cc779-0x18,_0x1f67b3-0x68,_0x5abfae,_0x5cc779-0x483);}return''+trimTrailingSlashes(this[_0x3d687a(0x245,0x192,_0x407370._0x1853ec,0x298)])+this[_0x5a1d3a(_0x407370._0x381a50,0x452,0x425,_0x407370._0x3cce0b)]+'::'+_0x589ef0;}async[_0x2e041c(-0xf9,-0xef,-0x4a,0x46)](_0x843cea){const _0x33d268={_0x2fd1f1:0x3d5,_0x52685c:0x328,_0x106abd:0x9e,_0x3626f4:0x82,_0x4750e2:0x5f,_0x8ca2d8:0x26,_0x568480:0x9e,_0x35a7c7:0x47},_0x406943={_0x1defdf:0x570};function _0x314d01(_0x20bab9,_0x2e6931,_0x233306,_0x2ece8b){return _0x55f0a4(_0x20bab9-0x5d,_0x2e6931-0xd4,_0x20bab9,_0x2ece8b-0x23f);}const _0x48225a=_0x843cea[_0x11b989(_0x33d268._0x2fd1f1,_0x33d268._0x52685c,0x37d,0x2fd)][_0x314d01(_0x33d268._0x106abd,0x9d,-0x43,0x27)](()=>{});let _0x270e44;const _0x4831e8=new Promise(_0x5edec0=>{_0x270e44=_0x5edec0;});_0x843cea[_0x314d01(_0x33d268._0x3626f4,-_0x33d268._0x4750e2,-0x3d,0x4c)]=_0x48225a[_0x314d01(-_0x33d268._0x8ca2d8,0xdc,_0x33d268._0x568480,_0x33d268._0x35a7c7)](()=>_0x4831e8),await _0x48225a;function _0x11b989(_0x1b24d3,_0x3b6baf,_0x303f52,_0x1e9591){return _0x55f0a4(_0x1b24d3-0xc5,_0x3b6baf-0xa7,_0x3b6baf,_0x303f52-_0x406943._0x1defdf);}return()=>{_0x270e44?.();};}async[_0x55f0a4(-0x2b4,-0x256,-0x285,-0x2d0)](_0x172c37,_0x220cb6){const _0x4a0451={_0x10f9ae:0x163,_0x440557:0x1a5,_0x2f5484:0x146,_0x131e15:0x157,_0x41c82d:0xcd,_0x426ae2:0x48,_0x3720f0:0xe5,_0x39623f:0x1ee,_0x302fcd:0x21c,_0x2b80c7:0x1b5,_0x18348d:0x220,_0x23b83f:0x1b7,_0x31fc65:0x23a,_0xcdf15f:0x215,_0x70693d:0x1c4,_0x3fad99:0x430,_0x48547c:0x3cd,_0x5c87b5:0x47b,_0x23bb35:0x459,_0x27a426:0x112,_0x3f79c6:0xf5,_0x272985:0x1dd,_0x3ce1d6:0x268,_0x2cee13:0x1e3,_0x5d625f:0x1b9},_0x3bd817={_0x2b3b74:0xaf,_0x444b68:0x1ce,_0x32dac1:0x4da},_0x395e64={_0x28ec6f:0x12e,_0x39c12f:0x1dd,_0x5708ab:0x9b};function _0x1e81bc(_0x4f63f2,_0x246b70,_0x1afcdf,_0x8e4492){return _0x55f0a4(_0x4f63f2-_0x395e64._0x28ec6f,_0x246b70-_0x395e64._0x39c12f,_0x1afcdf,_0x246b70-_0x395e64._0x5708ab);}const _0x22e5dc=this[_0x1e81bc(-0x1c1,-_0x4a0451._0x10f9ae,-0x11c,-0xa1)](_0x172c37),_0xf3fd54=toModelRequest(_0x22e5dc);function _0x343b40(_0x25be9b,_0xe29042,_0x40c454,_0x48f66c){return _0x2e041c(_0x25be9b-_0x3bd817._0x2b3b74,_0xe29042-_0x3bd817._0x444b68,_0x48f66c-_0x3bd817._0x32dac1,_0xe29042);}const _0x63c413=await prepareProviderRequest(_0xf3fd54,{'sessionManager':this[_0x1e81bc(-_0x4a0451._0x440557,-_0x4a0451._0x2f5484,-_0x4a0451._0x131e15,-_0x4a0451._0x41c82d)],'requestMutators':this[_0x1e81bc(-0x1b7,-0x13d,-0x136,-0x1c2)],'signal':_0x220cb6}),_0x534721=toChatRequest(_0x63c413[_0x1e81bc(-0x121,-0xff,-_0x4a0451._0x426ae2,-_0x4a0451._0x3720f0)]),_0x4fbf66=this['providerAdapter'][_0x1e81bc(-_0x4a0451._0x39623f,-_0x4a0451._0x302fcd,-0x170,-_0x4a0451._0x2b80c7)](this[_0x1e81bc(-_0x4a0451._0x18348d,-_0x4a0451._0x23b83f,-_0x4a0451._0x31fc65,-0x1b8)],_0x63c413['session']);if(!_0x4fbf66)throw this[_0x1e81bc(-0x154,-_0x4a0451._0xcdf15f,-_0x4a0451._0x70693d,-0x208)]();return{'baseUrl':this[_0x343b40(_0x4a0451._0x3fad99,_0x4a0451._0x48547c,_0x4a0451._0x5c87b5,_0x4a0451._0x23bb35)]['resolveBaseUrl'](this[_0x1e81bc(-_0x4a0451._0x27a426,-0x1a3,-_0x4a0451._0x3f79c6,-_0x4a0451._0x272985)],_0x63c413['session']),'credential':_0x4fbf66,'request':_0x534721,'session':_0x63c413[_0x1e81bc(-_0x4a0451._0x3ce1d6,-0x23c,-_0x4a0451._0x2cee13,-_0x4a0451._0x5d625f)]};}['buildResponsesSocketEvent'](_0x5c805e,_0x2467be,_0x2456c1={}){const _0x39a0fc={_0x35ad9f:0x12e,_0x4e0aa3:0xc9,_0x42632d:0x1fc,_0x216e79:0x319,_0x5345bd:0x175,_0xf55e6f:0x1c1,_0x49ec14:0xa8,_0x5c5037:0x130,_0x2350a0:0x306,_0x4779e1:0x3bf,_0x1169e2:0x3b5,_0x1426c1:0x2c8,_0x3d3577:0x1c1,_0x18790d:0x105},_0x205605={_0x1c2538:0x192},_0x10bc90={_0x395741:0x3bf};function _0x3fe73c(_0x19a0e5,_0x36bdf8,_0xdcca65,_0x13ad19){return _0x2e041c(_0x19a0e5-0xfd,_0x36bdf8-0x136,_0x36bdf8-_0x10bc90._0x395741,_0xdcca65);}function _0x3ea1fd(_0x19c3cb,_0x2f3d92,_0x306b64,_0x5a6557){return _0x2e041c(_0x19c3cb-0x43,_0x2f3d92-_0x205605._0x1c2538,_0x2f3d92-0x25e,_0x5a6557);}if(!_0x2456c1['forceFullReplay']){const _0x59f102=this[_0x3ea1fd(0x1cc,_0x39a0fc._0x35ad9f,_0x39a0fc._0x4e0aa3,0xd1)](_0x5c805e);if(_0x59f102&&_0x2467be[_0x3fe73c(_0x39a0fc._0x42632d,0x291,0x1f5,_0x39a0fc._0x216e79)]&&_0x59f102[_0x3ea1fd(_0x39a0fc._0x5345bd,_0x39a0fc._0xf55e6f,0x14d,0x1a5)]===_0x2467be[_0x3ea1fd(_0x39a0fc._0x49ec14,_0x39a0fc._0x5c5037,0x18c,0x8a)]){const _0x2fed31=toOpenAiResponsesRequest({..._0x5c805e,'messages':_0x5c805e[_0x3fe73c(0x303,_0x39a0fc._0x2350a0,_0x39a0fc._0x4779e1,0x36c)]['slice'](_0x59f102[_0x3fe73c(0x390,0x34c,0x36d,_0x39a0fc._0x1169e2)]+0x1)})[_0x3ea1fd(_0x39a0fc._0x1426c1,0x259,0x1f7,0x2ec)];return{'event':createOpenAiResponsesWebSocketEvent(_0x5c805e,{'input':_0x2fed31,'previousResponseId':_0x59f102['responseId']}),'previousResponseId':_0x59f102[_0x3ea1fd(0x255,_0x39a0fc._0x3d3577,0x1dd,_0x39a0fc._0x18790d)]};}}return{'event':createOpenAiResponsesWebSocketEvent(_0x5c805e)};}[_0x55f0a4(-0x299,-0x2bc,-0x275,-0x2dd)](_0x40b486){const _0x275bd1={_0x39cc58:0x15c,_0x37728a:0x204,_0x41dd40:0x1f5,_0x165da2:0x1ba,_0x24e33e:0xc1,_0x93852e:0x11e,_0x410cee:0xef,_0x4ad12c:0x142},_0x25a0b1={_0x9b9f10:0xbd,_0x2d75fa:0x267},_0x4a70bd={_0x58d877:0x4a};for(let _0x31d008=_0x40b486[_0x84507d(0x1c4,0xda,_0x275bd1._0x39cc58,0x1aa)][_0x1729e3(_0x275bd1._0x37728a,0x24a,0x172,_0x275bd1._0x41dd40)]-0x1;_0x31d008>=0x0;_0x31d008-=0x1){const _0x793b91=_0x40b486[_0x84507d(_0x275bd1._0x165da2,0xfc,0x15c,0xfe)][_0x31d008],_0x2178a9=_0x793b91['role']==='assistant'?_0x793b91[_0x84507d(_0x275bd1._0x24e33e,_0x275bd1._0x93852e,_0x275bd1._0x410cee,_0x275bd1._0x4ad12c)]?.['openaiResponsesResponseId']:void 0x0;if(_0x2178a9)return{'messageIndex':_0x31d008,'responseId':_0x2178a9};}function _0x84507d(_0x541285,_0x462386,_0x40b1be,_0x45406b){return _0x55f0a4(_0x541285-_0x4a70bd._0x58d877,_0x462386-0x18d,_0x45406b,_0x40b1be-0x3c2);}function _0x1729e3(_0x53f91a,_0x26d0ba,_0x4bcd83,_0x26fa09){return _0x2e041c(_0x53f91a-0x134,_0x26d0ba-_0x25a0b1._0x9b9f10,_0x53f91a-_0x25a0b1._0x2d75fa,_0x26fa09);}return void 0x0;}['shouldRetryResponsesSocketRequest'](_0x5ede2f){const _0x81475f={_0x5d341d:0x303},_0x1dd759={_0x159499:0x7a},_0x21dd68={_0x3e42a5:0x18b,_0x13f66f:0x1ac,_0x182dbb:0x3c7};function _0x5964e3(_0x1d2fc1,_0x4ce5a9,_0x4d6acc,_0x4600fe){return _0x2e041c(_0x1d2fc1-_0x21dd68._0x3e42a5,_0x4ce5a9-_0x21dd68._0x13f66f,_0x4600fe-_0x21dd68._0x182dbb,_0x4ce5a9);}function _0x15c0eb(_0x2f36b7,_0x15e7bb,_0x23188f,_0x4655f8){return _0x2e041c(_0x2f36b7-_0x1dd759._0x159499,_0x15e7bb-0x32,_0x2f36b7-0x172,_0x4655f8);}return _0x5ede2f instanceof OpenAiResponsesStreamError&&(_0x5ede2f['code']==='previous_response_not_found'||_0x5ede2f[_0x5964e3(0x28f,_0x81475f._0x5d341d,0x2f8,0x2ce)]===_0x15c0eb(0xdc,0xa7,0xcb,0x18c));}[_0x55f0a4(-0x2a0,-0x336,-0x255,-0x2ce)](_0x32299d){const _0xa3661f={_0x44956f:0xe3,_0x442da5:0xc3,_0x44dbda:0xf6,_0x3676ff:0x198,_0x5f0a00:0x155,_0x1be28c:0x20f,_0x9c4137:0x179,_0x22531e:0x1b9,_0xd792cf:0xcb,_0x4be78e:0x194,_0x2c3246:0x89,_0x35612d:0x36},_0xca5b98={_0x5367c8:0x1be},_0x34fc6c={_0x42b40f:0x1f,_0x4b5fb3:0x126},_0xd289af=_0x32299d[_0x30810d(-0x16c,-0x180,-_0xa3661f._0x44956f,-_0xa3661f._0x442da5)];function _0x30810d(_0x382663,_0x42e049,_0x2e0a45,_0x35f1c3){return _0x2e041c(_0x382663-_0x34fc6c._0x42b40f,_0x42e049-0x1df,_0x42e049- -_0x34fc6c._0x4b5fb3,_0x2e0a45);}_0x32299d[_0x30810d(-_0xa3661f._0x44dbda,-0x180,-_0xa3661f._0x3676ff,-0xe2)]=void 0x0,_0x32299d[_0x234c3f(_0xa3661f._0x5f0a00,0x192,0x1a8,0x1ab)]=void 0x0;function _0x234c3f(_0x477f9e,_0x39a9ee,_0x1a734b,_0x304183){return _0x2e041c(_0x477f9e-0x73,_0x39a9ee-0x156,_0x1a734b-_0xca5b98._0x5367c8,_0x39a9ee);}_0x32299d[_0x30810d(-0x1d4,-0x254,-0x2ea,-_0xa3661f._0x1be28c)]=void 0x0,_0xd289af?.[_0x30810d(-_0xa3661f._0x9c4137,-_0xa3661f._0x22531e,-0x175,-0x198)]===WebSocket['OPEN']&&_0xd289af[_0x30810d(-_0xa3661f._0xd792cf,-0x12f,-0xe8,-_0xa3661f._0x4be78e)](0x3e8,_0x234c3f(_0xa3661f._0x2c3246,0x5e,0x6f,-_0xa3661f._0x35612d));}async[_0x2e041c(-0x34,-0xce,-0xc8,-0x16)](_0x34d1af,_0x4fac4b,_0x5e5738,_0xbe91ea,_0x24ad53){const _0x1ccb6e={_0x55f493:0x8d,_0x30b3f1:0x84,_0x493973:0x2f,_0xd76d52:0x91,_0x3f57c4:0x9e,_0x45a80c:0xb2,_0x45e43e:0x9c,_0x17f423:0x1ec,_0x28f4a4:0x12e,_0x56bae5:0x38,_0x2cd15f:0x12d,_0x1fc141:0x8d},_0x1f64ab={_0x39ba5f:0x12a,_0x4c1efa:0x3fa,_0x26884e:0x47e,_0x28ca42:0x3d9,_0x4a5eb4:0x477,_0x31bd37:0x468,_0x43b168:0xf1,_0x5e97bd:0xd6,_0x2951ae:0xd0,_0x523058:0x1f,_0x859021:0x5d,_0x2c1298:0x468,_0x436c41:0x3b6,_0x1c7f21:0x10f,_0x45b172:0xb4,_0x41b50b:0x154,_0x201017:0x21e,_0x151b10:0x258,_0x1f1c27:0x196,_0x29dad3:0x231,_0x12659a:0xd3,_0x3e7c83:0xa8,_0x294ab1:0x4ec,_0x69d87b:0x522,_0x8d1118:0x3c8,_0x4b42cb:0x4fa,_0xdaaa23:0x47a,_0x3fdd5c:0x537,_0x5e11e4:0x16e,_0x2c6ae0:0x4a9,_0x2ea13c:0x45b,_0x5000b5:0xa5,_0x365f3e:0x170,_0x38df08:0xb0},_0x2a790b={_0x5e191e:0x17b,_0x166231:0x166,_0x5e9b01:0x2f0};if(_0x4fac4b['socket']?.[_0x242e2c(-0x1a,0x91,_0x1ccb6e._0x55f493,_0x1ccb6e._0x30b3f1)]===WebSocket[_0x242e2c(-_0x1ccb6e._0x493973,_0x1ccb6e._0xd76d52,-_0x1ccb6e._0x3f57c4,0x61)])return _0x4fac4b[_0x585538(0xe9,_0x1ccb6e._0x45a80c,_0x1ccb6e._0x45e43e,0x17e)];function _0x585538(_0x2c4f36,_0x3411b6,_0x4e3069,_0x2090d8){return _0x55f0a4(_0x2c4f36-_0x2a790b._0x5e191e,_0x3411b6-_0x2a790b._0x166231,_0x4e3069,_0x2c4f36-_0x2a790b._0x5e9b01);}if(_0x4fac4b[_0x585538(0x12d,_0x1ccb6e._0x17f423,0x18f,0x148)])return await _0x4fac4b[_0x585538(0x12d,0x1a0,0x1d9,_0x1ccb6e._0x28f4a4)];function _0x242e2c(_0xa4bdad,_0x5a9762,_0x4cbde2,_0x3feba2){return _0x2e041c(_0xa4bdad-0xbf,_0x5a9762-0x12c,_0xa4bdad-0x79,_0x5a9762);}_0x4fac4b['connecting']=((async()=>{const _0x3d2e6f={_0x18422f:0x1ea,_0x511bfa:0x24b,_0xf77c10:0x1fb,_0x1d7287:0x3bc,_0x141707:0x34c},_0x3a0530={_0x40eb86:0x3c0},_0x54746b=await this[_0x57bd61(-0xa4,-0x111,-_0x1f64ab._0x39ba5f,-0x19f)]({'request':_0x5e5738['request'],'body':_0xbe91ea,'credential':_0x5e5738[_0x141a04(0x49b,_0x1f64ab._0x4c1efa,_0x1f64ab._0x26884e,0x429)],'session':_0x5e5738[_0x141a04(_0x1f64ab._0x28ca42,_0x1f64ab._0x4a5eb4,0x3cf,_0x1f64ab._0x31bd37)],'stream':!![]},{'accept':_0x57bd61(-0x99,-0x1a1,-_0x1f64ab._0x43b168,-0x164),'includeContentType':![]});function _0x141a04(_0x3b5bed,_0xdcc9f4,_0x36092b,_0x328f79){return _0x585538(_0x3b5bed-_0x3a0530._0x40eb86,_0xdcc9f4-0x102,_0x328f79,_0x328f79-0x137);}_0x54746b[_0x57bd61(-_0x1f64ab._0x5e97bd,-_0x1f64ab._0x2951ae,-0x79,-_0x1f64ab._0x523058)](_0x57bd61(-0x73,-0xb4,-_0x1f64ab._0x859021,0x19));const _0x2d0c21=this[_0x141a04(_0x1f64ab._0x2c1298,_0x1f64ab._0x436c41,0x443,0x44a)]({'headers':Object[_0x57bd61(-_0x1f64ab._0x1c7f21,-0x81,-_0x1f64ab._0x45b172,-_0x1f64ab._0x41b50b)](_0x54746b[_0x141a04(0x504,0x49e,0x479,0x474)]()),'url':(''+_0x5e5738['baseUrl']+this['responsesPath'])[_0x141a04(0x4b3,0x4f4,0x42a,0x558)](/^http:/,_0x57bd61(-_0x1f64ab._0x201017,-_0x1f64ab._0x151b10,-_0x1f64ab._0x1f1c27,-_0x1f64ab._0x29dad3))[_0x57bd61(-0x97,-0x75,-_0x1f64ab._0x12659a,-_0x1f64ab._0x3e7c83)](/^https:/,'wss:')});function _0x57bd61(_0x5084a3,_0x40d66a,_0x24c4ea,_0x15dd1f){return _0x242e2c(_0x24c4ea- -0xfc,_0x15dd1f,_0x24c4ea-0x16e,_0x15dd1f-0xc4);}const _0x2059b1=()=>{const _0x407672={_0x571098:0x46,_0x16793e:0x19d},_0x15eb59={_0x48339b:0x18b};function _0x495901(_0x13941c,_0x219bd4,_0x445d63,_0x99965){return _0x141a04(_0x99965- -0x66,_0x219bd4-_0x15eb59._0x48339b,_0x445d63-0x1a3,_0x219bd4);}function _0xda1e6c(_0x4adf3e,_0x3aef66,_0x256583,_0x118113){return _0x141a04(_0x256583- -0x25e,_0x3aef66-_0x407672._0x571098,_0x256583-_0x407672._0x16793e,_0x4adf3e);}_0x4fac4b[_0xda1e6c(0x2d2,0x18e,0x24b,_0x3d2e6f._0x18422f)]===_0x2d0c21&&(_0x4fac4b[_0xda1e6c(0x297,0x221,_0x3d2e6f._0x511bfa,_0x3d2e6f._0xf77c10)]=void 0x0,_0x4fac4b[_0x495901(_0x3d2e6f._0x1d7287,_0x3d2e6f._0x141707,0x306,0x36f)]=void 0x0);};_0x2d0c21[_0x141a04(0x484,_0x1f64ab._0x294ab1,_0x1f64ab._0x69d87b,_0x1f64ab._0x8d1118)](_0x141a04(_0x1f64ab._0x4b42cb,_0x1f64ab._0xdaaa23,0x4c2,_0x1f64ab._0x3fdd5c),_0x2059b1);try{return throwIfAborted(_0x24ad53),_0x2d0c21[_0x57bd61(-0xae,-_0x1f64ab._0x5e11e4,-0x116,-0x133)]!==WebSocket['OPEN']&&await waitForWebSocketOpen(_0x2d0c21,_0x24ad53),throwIfAborted(_0x24ad53),_0x4fac4b[_0x141a04(_0x1f64ab._0x2c6ae0,0x56b,0x3fe,0x511)]=_0x2d0c21,_0x2d0c21;}catch(_0x472584){_0x2059b1();_0x2d0c21['readyState']===WebSocket[_0x141a04(_0x1f64ab._0x2ea13c,0x457,0x3d7,0x3dc)]&&_0x2d0c21[_0x141a04(_0x1f64ab._0x4b42cb,0x4eb,0x464,0x485)](0x3e8,_0x57bd61(-_0x1f64ab._0x5000b5,-_0x1f64ab._0x365f3e,-_0x1f64ab._0x38df08,-0x87));throw _0x472584;}})());try{return await _0x4fac4b[_0x242e2c(0x63,-0xd,-_0x1ccb6e._0x56bae5,0x26)];}finally{_0x4fac4b[_0x585538(_0x1ccb6e._0x2cd15f,0x142,_0x1ccb6e._0x1fc141,0xba)]=void 0x0;}}async*[_0x55f0a4(-0x245,-0x1c1,-0x1b7,-0x19d)](_0x18bb23,_0x50dea4){const _0x298680={_0x503c0d:0x19c,_0x135694:0x1e4,_0x2726eb:0x1ca,_0x368c0b:0x3bd,_0x2f46c2:0x45e,_0x320124:0x45a,_0xfe934:0x50c,_0x10db4c:0x45f,_0x2b090f:0x4f5,_0x5a7759:0x28a,_0xb40756:0x1c4,_0x41e156:0x1c3,_0x5b25a4:0x304,_0x131b63:0x1be,_0xd34df1:0x1ee,_0x2e9e32:0x181,_0xc919f1:0x3aa,_0x292cfe:0x3d4,_0x252679:0x1f8,_0x39ca62:0x3ae,_0xd0f26d:0x41e,_0x827842:0x26c,_0x22d5e5:0x30d,_0x46e34d:0x473,_0x270ca6:0x168,_0x59fe54:0x207,_0x51d1f4:0x3f9},_0x51a8fc={_0xcf0d3e:0x1a5,_0x10d32c:0x42,_0x527729:0x67c},_0x2e485a=this[_0x4d2dd5(-0x224,-_0x298680._0x503c0d,-_0x298680._0x135694,-_0x298680._0x2726eb)](_0x18bb23);function _0x4d2dd5(_0x194c6e,_0x1adf72,_0x6dbc7e,_0x10fadb){return _0x55f0a4(_0x194c6e-0x17c,_0x1adf72-0x1ac,_0x194c6e,_0x10fadb-0x34);}const _0x19524b=this[_0x5f5569(_0x298680._0x368c0b,_0x298680._0x2f46c2,0x396,0x46f)](_0x2e485a[_0x5f5569(_0x298680._0x320124,_0x298680._0xfe934,_0x298680._0x10db4c,_0x298680._0x2b090f)][_0x4d2dd5(-_0x298680._0x5a7759,-0x178,-_0x298680._0xb40756,-0x1ea)]),_0x5901d9=await this[_0x4d2dd5(-0x230,-0x1de,-0x258,-_0x298680._0x41e156)](_0x19524b);function _0x5f5569(_0x22cec2,_0x3bf37d,_0x202799,_0x16df87){return _0x55f0a4(_0x22cec2-_0x51a8fc._0xcf0d3e,_0x3bf37d-_0x51a8fc._0x10d32c,_0x202799,_0x22cec2-_0x51a8fc._0x527729);}try{const _0x19a1b1=this['buildResponsesSocketEvent'](_0x2e485a,_0x19524b);try{yield*this[_0x4d2dd5(-0x1aa,-_0x298680._0x5b25a4,-0x1de,-0x24d)](_0x2e485a[_0x4d2dd5(-0x272,-0x1fe,-_0x298680._0x131b63,-_0x298680._0xd34df1)]['sessionId'],_0x19524b,_0x2e485a,_0x19a1b1[_0x4d2dd5(-0x194,-_0x298680._0x2e9e32,-0x1b0,-0x223)],_0x50dea4?.[_0x5f5569(_0x298680._0xc919f1,0x465,0x464,_0x298680._0x292cfe)]);return;}catch(_0x26de17){if(!_0x19a1b1['previousResponseId']||!this[_0x4d2dd5(-0x12a,-0x202,-_0x298680._0x252679,-0x185)](_0x26de17)){this[_0x5f5569(_0x298680._0x39ca62,_0x298680._0xd0f26d,0x336,0x30b)](_0x19524b);throw _0x26de17;}}this[_0x4d2dd5(-0x34f,-_0x298680._0x827842,-0x2b0,-0x29a)](_0x19524b);const _0x3606b2=this[_0x5f5569(0x3c2,_0x298680._0x22d5e5,0x418,_0x298680._0x46e34d)](_0x2e485a,_0x19524b,{'forceFullReplay':!![]});yield*this[_0x4d2dd5(-0x2c5,-0x287,-0x18f,-0x24d)](_0x2e485a[_0x4d2dd5(-0x1e0,-_0x298680._0x270ca6,-_0x298680._0x59fe54,-_0x298680._0xd34df1)][_0x5f5569(_0x298680._0x2f46c2,_0x298680._0x51d1f4,0x43c,0x461)],_0x19524b,_0x2e485a,_0x3606b2[_0x4d2dd5(-0x2c2,-0x19c,-0x1a7,-0x223)],_0x50dea4?.['signal']);}finally{_0x5901d9();}}async*['streamViaResponsesSocketAttempt'](_0x2da20e,_0x3732c2,_0x5ca903,_0xc729db,_0x1a7502){const _0x30105d={_0x1b45a7:0x2d1,_0x1e1f80:0x262,_0x3476c3:0x28e,_0x456a58:0x242,_0x3c472e:0x385,_0x3f8b38:0x315,_0xf0f1fb:0x223,_0x10ead2:0x1e0,_0x3d3444:0x1c0,_0x100399:0x209,_0x2e4c84:0x27e,_0x23dc70:0x340,_0x42b4d5:0x27e,_0x2349ea:0x32b,_0x49f354:0x2d5,_0x46526b:0x35c,_0x2e45a4:0x1f8,_0x3effa5:0x3b5,_0x5b889a:0x390,_0x9af28c:0x209},_0x26a1ec={_0x31bbe1:0xf1},_0x1db65b=await this[_0x17c4f0(-0x2ec,-_0x30105d._0x1b45a7,-0x240,-_0x30105d._0x1e1f80)](_0x5ca903,_0x1a7502),_0x14d33c=await this[_0x46e69b(_0x30105d._0x3476c3,0x264,0x2f2,_0x30105d._0x456a58)](_0x2da20e,_0x3732c2,_0x1db65b,_0xc729db,_0x1a7502),_0xd255c8=createOpenAiResponsesStreamParser(_0x5ca903);throwIfAborted(_0x1a7502),_0x14d33c[_0x46e69b(0x3a4,_0x30105d._0x3c472e,0x3ba,_0x30105d._0x3f8b38)](JSON[_0x46e69b(0x171,_0x30105d._0xf0f1fb,_0x30105d._0x10ead2,_0x30105d._0x3d3444)](_0xc729db));function _0x17c4f0(_0x5993cd,_0x66521b,_0x4e2714,_0xd01e0d){return _0x2e041c(_0x5993cd-0x6a,_0x66521b-_0x26a1ec._0x31bbe1,_0x5993cd- -0x1c9,_0x4e2714);}for await(const _0x31debd of iterateWebSocketMessages(_0x14d33c,_0x1a7502)){const _0x5f0665=_0xd255c8[_0x17c4f0(-_0x30105d._0x100399,-0x283,-0x177,-0x218)]?.(_0x31debd)??[];yield*_0x5f0665;if(_0xd255c8[_0x17c4f0(-_0x30105d._0x2e4c84,-_0x30105d._0x23dc70,-0x30b,-0x2e3)]?.())break;}if(!_0xd255c8[_0x17c4f0(-_0x30105d._0x42b4d5,-0x305,-_0x30105d._0x2349ea,-0x233)]?.())throw new Error(_0x17c4f0(-0x258,-0x2cf,-0x2d6,-_0x30105d._0x49f354));const _0x55aacf=_0xd255c8[_0x46e69b(0x338,_0x30105d._0x46526b,0x3a4,0x30f)](),_0x144ab4=_0x55aacf[_0x46e69b(0x1c2,0x1da,0x294,0x1e4)]?.[_0x17c4f0(-0x230,-0x19c,-_0x30105d._0x2e45a4,-0x18e)]??_0x55aacf['id'];_0x144ab4&&(_0x3732c2[_0x17c4f0(-0x2f7,-0x3b1,-_0x30105d._0x3effa5,-_0x30105d._0x5b889a)]=_0x144ab4);function _0x46e69b(_0x4123a2,_0x387943,_0x8e9c2,_0x21cf21){return _0x2e041c(_0x4123a2-0x168,_0x387943-0x11a,_0x21cf21-0x30a,_0x8e9c2);}yield{'type':_0x46e69b(0x19a,0x1b7,0x204,_0x30105d._0x9af28c),'response':_0x55aacf};}},AVAILABLE_CHAT_MODEL_SURFACES=[_0x2e041c(-0xa2,-0x123,-0x150,-0x1ff),_0x2e041c(0x76,-0x7f,-0xd,-0x68),_0x2e041c(-0xef,-0x34,-0x8a,-0x110),'openai-responses-ws'];function isAnthropicSurface(_0x4a13da){const _0x223724={_0x225efb:0x6c,_0x599fa7:0x97,_0x19c2a7:0x15,_0x409c7c:0x32},_0x5c7a04={_0x348968:0xd1};function _0x30dab0(_0x7df7a1,_0x39aca2,_0x5ab55a,_0x3b9c31){return _0x2e041c(_0x7df7a1-_0x5c7a04._0x348968,_0x39aca2-0x12b,_0x5ab55a-0x13b,_0x3b9c31);}return _0x4a13da===_0x30dab0(_0x223724._0x225efb,-_0x223724._0x599fa7,-_0x223724._0x19c2a7,_0x223724._0x409c7c);}function resolveDefaultBaseUrl(_0x293ecd){const _0x3fa59a={_0x19c185:0x493,_0xce1918:0x455,_0x468ac4:0x47b},_0x5cc911={_0x116bd1:0xbe};function _0x53709d(_0x5b0b64,_0x23ff95,_0x4ff94c,_0x70c954){return _0x2e041c(_0x5b0b64-_0x5cc911._0x116bd1,_0x23ff95-0xde,_0x70c954-0x4ec,_0x4ff94c);}return isAnthropicSurface(_0x293ecd)?_0x53709d(_0x3fa59a._0x19c185,_0x3fa59a._0xce1918,_0x3fa59a._0x468ac4,0x3e3):'https://api.openai.com/v1';}var ChatModel=class{[_0x55f0a4(-0x2d5,-0x279,-0x255,-0x2ac)];[_0x2e041c(-0x1c3,-0x15e,-0x11d,-0xff)];[_0x2e041c(-0x15b,-0x93,-0xa9,-0x85)];['anthropicDelegate'];['openAiDelegate'];constructor(_0x45d866={}){const _0x20facb={_0x447502:0x35,_0x48b573:0xf1,_0x77e085:0x16f,_0x283bbd:0x34a,_0x1f6cb5:0x337,_0x4ab3a2:0x3ab,_0x4bfc8f:0x3c1,_0x1aa4a7:0x3a0,_0x26dc40:0x40a,_0x349012:0x4e,_0x4c72b:0x1c,_0x5410bd:0x3ab,_0x3f0971:0x14e,_0x40800e:0x2fb,_0x1bd7b2:0x3af,_0x44e014:0x417,_0x38d214:0x36f,_0xa8c0d:0x3b2,_0x5e987a:0x9,_0x3d047b:0x2fc,_0x280e93:0x27b,_0x3edf0b:0x2bb,_0x19eadf:0x337,_0x478449:0x5f,_0x41eba5:0x66,_0x20a344:0x1a,_0x10f1b0:0x1ac,_0x2f948e:0x98,_0x25f7b0:0x1,_0x7f9f50:0x8f,_0x207a85:0x80,_0x2346f1:0x3c,_0x244bed:0x6b,_0x3cc551:0x17,_0x2c0d99:0xbc,_0x2cfab9:0x109,_0x5c8cce:0x3aa},_0x5bc30f={_0x4e8328:0x141,_0x63f0e4:0x169,_0x3706c9:0x454},_0x4e25af={_0x1cc929:0xf5,_0xf65b9f:0x1b2};function _0x43794b(_0x30e7b9,_0x28d8ca,_0x122dad,_0x35e95a){return _0x2e041c(_0x30e7b9-_0x4e25af._0x1cc929,_0x28d8ca-_0x4e25af._0xf65b9f,_0x30e7b9-0x134,_0x28d8ca);}function _0x5b6894(_0x4d45b4,_0x45194f,_0x3c3b81,_0x195b66){return _0x2e041c(_0x4d45b4-_0x5bc30f._0x4e8328,_0x45194f-_0x5bc30f._0x63f0e4,_0x195b66-_0x5bc30f._0x3706c9,_0x4d45b4);}this[_0x43794b(_0x20facb._0x447502,-0x8a,-0x6,0x97)]=_0x45d866['model']??_0x43794b(0x13d,0xa3,_0x20facb._0x48b573,_0x20facb._0x77e085),this['maxTokens']=_0x45d866[_0x5b6894(_0x20facb._0x283bbd,0x3f5,0x3da,_0x20facb._0x1f6cb5)]??0x4000,this[_0x5b6894(0x348,0x41c,0x32c,_0x20facb._0x4ab3a2)]=_0x45d866['surface']??_0x5b6894(_0x20facb._0x4bfc8f,_0x20facb._0x1aa4a7,_0x20facb._0x26dc40,0x447);const _0x3a9c53=trimTrailingSlashes(_0x45d866[_0x43794b(0xa3,_0x20facb._0x349012,-_0x20facb._0x4c72b,0xdf)]??resolveDefaultBaseUrl(this[_0x5b6894(0x2f9,0x318,0x357,_0x20facb._0x5410bd)]));if(isAnthropicSurface(this['surface'])){this[_0x43794b(_0x20facb._0x3f0971,0x16d,0x1ff,0x14c)]=new AnthropicModel({'apiKey':_0x45d866[_0x5b6894(0x3aa,0x335,_0x20facb._0x40800e,_0x20facb._0x1bd7b2)],'authScheme':_0x45d866[_0x5b6894(0x383,_0x20facb._0x44e014,_0x20facb._0x38d214,_0x20facb._0xa8c0d)],'baseUrl':_0x3a9c53,'fetch':_0x45d866[_0x43794b(-_0x20facb._0x5e987a,-0x60,-0x41,0xa6)],'maxTokens':this[_0x5b6894(_0x20facb._0x3d047b,_0x20facb._0x280e93,_0x20facb._0x3edf0b,_0x20facb._0x19eadf)],'model':this['model'],'reasoning':_0x45d866['reasoning'],'providerSessionResolver':_0x45d866[_0x43794b(_0x20facb._0x478449,0x92,_0x20facb._0x41eba5,_0x20facb._0x20a344)],'requestMutators':_0x45d866[_0x43794b(0x109,0x134,_0x20facb._0x10f1b0,0x69)]});return;}this[_0x43794b(0x15,_0x20facb._0x2f948e,0x9c,_0x20facb._0x25f7b0)]=new OpenAiModel({'apiKey':_0x45d866[_0x43794b(_0x20facb._0x7f9f50,_0x20facb._0x207a85,0x146,_0x20facb._0x2346f1)],'baseUrl':_0x3a9c53,'fetch':_0x45d866['fetch'],'headerResolver':_0x45d866[_0x43794b(0x69,_0x20facb._0x244bed,-0x42,0x59)],'maxTokens':this[_0x43794b(_0x20facb._0x3cc551,_0x20facb._0x2c0d99,0x39,-0x30)],'model':this['model'],'reasoning':_0x45d866['reasoning'],'providerSessionResolver':_0x45d866[_0x43794b(0x5f,0xd6,0x66,0x3a)],'requestMutators':_0x45d866[_0x43794b(_0x20facb._0x2cfab9,0x110,0x178,0x13c)],'webSocketFactory':_0x45d866[_0x5b6894(_0x20facb._0x5c8cce,0x302,0x448,0x3b9)]});}[_0x2e041c(-0x19b,-0x179,-0x142,-0x169)](){const _0x1df945={_0x2379fa:0x223,_0x364817:0x1fd,_0x424a3e:0x259,_0xb748e:0x4a1,_0x15d5ec:0x4ab,_0x2a18a6:0x465},_0x3e27cf={_0x129ab7:0x102},_0x38cdcf={_0x1fb631:0x56,_0x11e7d1:0x554};function _0x58fb03(_0x47e9b8,_0x191c8a,_0x23d2e6,_0x482c1d){return _0x2e041c(_0x47e9b8-0x38,_0x191c8a-_0x38cdcf._0x1fb631,_0x191c8a-_0x38cdcf._0x11e7d1,_0x47e9b8);}if(!this[_0xcac8ae(_0x1df945._0x2379fa,_0x1df945._0x364817,_0x1df945._0x424a3e,0x1cb)])throw new Error('Anthropic\x20delegate\x20is\x20not\x20initialized\x20for\x20surface:\x20'+this[_0x58fb03(_0x1df945._0xb748e,_0x1df945._0x15d5ec,_0x1df945._0x2a18a6,0x4a4)]);function _0xcac8ae(_0x2b30a4,_0x56e7db,_0x46e01d,_0x31135f){return _0x55f0a4(_0x2b30a4-0x156,_0x56e7db-_0x3e27cf._0x129ab7,_0x46e01d,_0x31135f-0x35e);}return this[_0xcac8ae(0x1ab,0x18d,0x263,0x1cb)];}['getOpenAiDelegate'](){const _0x2d637c={_0x114a54:0x456,_0x295cf5:0x482,_0x37f52c:0x437,_0x522c0a:0x1e2,_0x4809af:0x149},_0x4e949a={_0x2a6638:0x37,_0x390e29:0x136},_0x1846af={_0x5b440d:0xc4};function _0x514cca(_0x5b9acc,_0x9daa9d,_0x2413e4,_0x56d53d){return _0x55f0a4(_0x5b9acc-_0x1846af._0x5b440d,_0x9daa9d-0x3f,_0x2413e4,_0x5b9acc-0x74);}if(!this['openAiDelegate'])throw new Error(_0x5bd93b(_0x2d637c._0x114a54,_0x2d637c._0x295cf5,0x44a,_0x2d637c._0x37f52c)+this[_0x514cca(-_0x2d637c._0x522c0a,-0x26b,-0x15a,-_0x2d637c._0x4809af)]);function _0x5bd93b(_0x35496d,_0x10c712,_0x3e56f9,_0x1a53d1){return _0x2e041c(_0x35496d-_0x4e949a._0x2a6638,_0x10c712-_0x4e949a._0x390e29,_0x10c712-0x4a4,_0x3e56f9);}return this['openAiDelegate'];}['complete'](_0x546a45,_0x59f04d){const _0x3b908f={_0x55989b:0x1c6,_0x358303:0x180,_0x5183e7:0x195,_0x3a7b3b:0xe6,_0x89bc37:0x1fe,_0x214ce9:0x23c,_0x40be37:0x2fa,_0x309051:0x294,_0x1c29f8:0x221,_0x482713:0x216,_0x47e7fb:0x1a9,_0x120633:0x186,_0x760f98:0x339,_0x189910:0x3ef,_0x22d5ce:0x13f,_0x24cc0a:0x1ba,_0x59533b:0x115,_0x275943:0x81},_0x28e1a9={_0x1445df:0x1e5,_0x327458:0xec};function _0x32a1cf(_0x3291f8,_0x4dd38a,_0x1a39e9,_0x50429f){return _0x2e041c(_0x3291f8-_0x28e1a9._0x1445df,_0x4dd38a-0x1d2,_0x1a39e9- -_0x28e1a9._0x327458,_0x4dd38a);}function _0x315ab6(_0x510b1c,_0x5f5a66,_0x5c3bb5,_0x479f2e){return _0x55f0a4(_0x510b1c-0x17e,_0x5f5a66-0xcb,_0x479f2e,_0x5f5a66-0x583);}switch(this[_0x32a1cf(-_0x3b908f._0x55989b,-_0x3b908f._0x358303,-_0x3b908f._0x5183e7,-_0x3b908f._0x3a7b3b)]){case _0x32a1cf(-_0x3b908f._0x89bc37,-0x1b9,-_0x3b908f._0x214ce9,-0x293):return this[_0x315ab6(_0x3b908f._0x40be37,_0x3b908f._0x309051,_0x3b908f._0x1c29f8,_0x3b908f._0x482713)]()[_0x32a1cf(-0x269,-0x150,-_0x3b908f._0x47e7fb,-_0x3b908f._0x120633)](_0x546a45,_0x59f04d);case _0x315ab6(_0x3b908f._0x760f98,0x34c,0x399,_0x3b908f._0x189910):return this[_0x32a1cf(-0x1e4,-0xe1,-_0x3b908f._0x22d5ce,-0xbe)]()['response'](_0x546a45,_0x59f04d);case'openai-responses-ws':return this['getOpenAiDelegate']()[_0x32a1cf(-0xf4,-_0x3b908f._0x24cc0a,-_0x3b908f._0x59533b,-_0x3b908f._0x275943)](_0x546a45,_0x59f04d);default:return this['getOpenAiDelegate']()['chatComplete'](_0x546a45,_0x59f04d);}}['stream'](_0x4a7b91,_0x35796f){const _0x5c0e63={_0x1c5c15:0x2ca,_0x20b4d2:0x354,_0x3cf187:0x2a1,_0x2ff0bc:0x12a,_0x579f1f:0xdd,_0x45932e:0x1e0,_0x11e916:0x208,_0x3ba1f2:0x76,_0x58fbff:0x51,_0x40cbd0:0xa,_0x5659b1:0x171,_0x53338b:0x2dc,_0x3b9802:0x238,_0x525e2d:0x221,_0x37d273:0xc5,_0x2d3a54:0xa7,_0x16d15c:0x4f,_0x15e0e0:0x21,_0x1cf3a0:0x103,_0xae092d:0x79,_0x13d955:0x59,_0x22f07f:0x49},_0x13b32b={_0x50834f:0x13,_0x3d7f56:0x21},_0x499774={_0x2d6d31:0xc8};function _0x4f9521(_0xdb481e,_0x333ab2,_0x1cc3dc,_0x1ee55c){return _0x55f0a4(_0xdb481e-0xc7,_0x333ab2-_0x499774._0x2d6d31,_0xdb481e,_0x1cc3dc-0x276);}function _0x5202ed(_0x3c3ec8,_0x5cb24b,_0x5065b8,_0x47fa19){return _0x2e041c(_0x3c3ec8-_0x13b32b._0x50834f,_0x5cb24b-_0x13b32b._0x3d7f56,_0x47fa19-0x34a,_0x5cb24b);}switch(this[_0x5202ed(_0x5c0e63._0x1c5c15,0x203,_0x5c0e63._0x20b4d2,_0x5c0e63._0x3cf187)]){case _0x4f9521(-_0x5c0e63._0x2ff0bc,-0x13b,-0x87,-_0x5c0e63._0x579f1f):return this[_0x5202ed(_0x5c0e63._0x45932e,0x240,_0x5c0e63._0x45932e,_0x5c0e63._0x11e916)]()['stream'](_0x4a7b91,_0x35796f);case'openai-responses':return this[_0x4f9521(0x91,0xed,_0x5c0e63._0x3ba1f2,_0x5c0e63._0x58fbff)]()[_0x4f9521(_0x5c0e63._0x40cbd0,_0x5c0e63._0x5659b1,0xb2,0x129)](_0x4a7b91,_0x35796f);case _0x5202ed(_0x5c0e63._0x53338b,_0x5c0e63._0x3b9802,0x270,_0x5c0e63._0x525e2d):return this[_0x4f9521(-0x2f,_0x5c0e63._0x37d273,0x76,0x65)]()[_0x4f9521(-_0x5c0e63._0x2d3a54,_0x5c0e63._0x16d15c,-0x34,-_0x5c0e63._0x15e0e0)](_0x4a7b91,_0x35796f);default:return this['getOpenAiDelegate']()[_0x4f9521(-_0x5c0e63._0x1cf3a0,-_0x5c0e63._0xae092d,-_0x5c0e63._0x13d955,-_0x5c0e63._0x22f07f)](_0x4a7b91,_0x35796f);}}};import{randomUUID}from'crypto';var GitHubAccessTokenResolver=class{[_0x2e041c(-0x25,-0xd3,-0xd0,-0x4a)];[_0x2e041c(-0x93,-0x135,-0x91,0x1d)];[_0x2e041c(0x98,0x9f,0x11,-0x15)];[_0x2e041c(-0x14a,-0xb5,-0xe1,-0x45)];[_0x2e041c(-0xb7,0x68,-0x4d,0x63)];constructor(_0x5f1a1d){const _0x561b92={_0x5f5a35:0x10f,_0xa3ce43:0x10d,_0x567ae2:0x1ca,_0x5963c9:0x15e,_0x49ff17:0x163,_0x4d4da8:0x1f2,_0x308224:0x213,_0x3e859d:0x1f0,_0x52e25e:0x1c1,_0xb53a8f:0x26,_0x2aab6e:0xa2,_0x4f6c53:0x1d4,_0x69d63b:0x150,_0x271fbb:0x10b,_0x2d4245:0xfe,_0x1172aa:0x12d,_0x54cdf4:0x192,_0x301fc3:0x20b},_0x15f67c={_0x3fca35:0x83,_0x4c50c4:0x1df},_0x9309dc={_0x210075:0x3ef};this[_0x31e22d(0xdc,0xa2,_0x561b92._0x5f5a35,_0x561b92._0xa3ce43)]=_0x5f1a1d['accessToken'],this[_0x56d49a(_0x561b92._0x567ae2,0x15c,_0x561b92._0x5963c9,0x1b1)]=trimTrailingSlashes2(_0x5f1a1d[_0x31e22d(0x177,_0x561b92._0x49ff17,0x14e,_0x561b92._0x4d4da8)]),this[_0x31e22d(_0x561b92._0x308224,0x18e,_0x561b92._0x3e859d,_0x561b92._0x52e25e)]=_0x5f1a1d[_0x31e22d(-0x11,_0x561b92._0xb53a8f,_0x561b92._0x2aab6e,0xfd)],this[_0x56d49a(_0x561b92._0x4f6c53,0x16d,_0x561b92._0x69d63b,0x161)]=trimTrailingSlashes2(_0x5f1a1d[_0x31e22d(0xc3,_0x561b92._0x271fbb,_0x561b92._0x2d4245,0x14e)]);function _0x56d49a(_0x29839c,_0x49a5f3,_0x1ae4e9,_0x2f80a2){return _0x55f0a4(_0x29839c-0xe5,_0x49a5f3-0x8,_0x29839c,_0x2f80a2-_0x9309dc._0x210075);}function _0x31e22d(_0xe35b25,_0x17391c,_0x1d4661,_0x4d9d3b){return _0x2e041c(_0xe35b25-0x1b1,_0x17391c-_0x15f67c._0x3fca35,_0x1d4661-_0x15f67c._0x4c50c4,_0x4d9d3b);}this['tokenExchangeApiVersion']=_0x5f1a1d[_0x31e22d(_0x561b92._0x1172aa,0xef,_0x561b92._0x54cdf4,_0x561b92._0x301fc3)];}async[_0x55f0a4(-0x2d3,-0x2f1,-0x392,-0x2f8)](_0x45f79f){const _0x5c7584={_0x1f814b:0x59a,_0x11c66b:0x4ff,_0x5443fa:0x502,_0x27b3af:0x52d,_0x531481:0x4ab,_0x2fdc2d:0x4c9,_0x2609b7:0x532,_0x59fbbd:0x580,_0xbd347d:0x53c,_0x4e1e8d:0x3b6,_0x2d6ea8:0x476,_0x1ddd3a:0x505,_0x5bf6cf:0x4fb,_0x4fbeba:0x36b,_0xa65fc0:0x2ba,_0x4f0f87:0x5a8,_0x3a5dab:0x4ed,_0x182441:0x375,_0xebc6f9:0x32b,_0x1073d7:0x419,_0x24d473:0x39a,_0x5bb5d:0x2da,_0x221794:0x435,_0x633b9c:0x4cd,_0x15082d:0x482,_0x4f2595:0x395,_0x56ea0b:0x45b,_0x4e387a:0x452,_0x139d46:0x462,_0x3599f6:0x3cd,_0x45ddea:0x40e,_0x31fca7:0x32b,_0x28dc89:0x272,_0x1d58cd:0x2d2,_0x1ef24a:0x4f8,_0x2eadf4:0x4b3,_0x3e7b71:0x2f8,_0xcb31d0:0x37b,_0x3d7759:0x23c,_0x4f7f04:0x465,_0xd3d885:0x50b,_0xda0a:0x3cd,_0x47714b:0x3fc},_0x36f77b={_0x5e1097:0x89,_0x389689:0xd7,_0x2a0239:0x736},_0x4f5ad0={_0x2f3ac8:0x1df,_0x1da934:0x42b};function _0x5aed76(_0x272cc0,_0x532a19,_0x563deb,_0xf18fc4){return _0x2e041c(_0x272cc0-_0x4f5ad0._0x2f3ac8,_0x532a19-0x163,_0x272cc0-_0x4f5ad0._0x1da934,_0x563deb);}const _0x5882ed=await this[_0x3d1c8b(_0x5c7584._0x1f814b,_0x5c7584._0x11c66b,0x5d8,_0x5c7584._0x5443fa)](this[_0x3d1c8b(0x4a8,0x4a7,0x4a3,_0x5c7584._0x27b3af)]+_0x3d1c8b(_0x5c7584._0x531481,_0x5c7584._0x2fdc2d,0x56d,0x4db),{'method':_0x3d1c8b(_0x5c7584._0x2609b7,_0x5c7584._0x59fbbd,_0x5c7584._0xbd347d,0x532),'headers':new Headers({'accept':_0x5aed76(0x3bd,_0x5c7584._0x4e1e8d,_0x5c7584._0x2d6ea8,0x368),'authorization':_0x3d1c8b(_0x5c7584._0x1ddd3a,0x59e,0x509,_0x5c7584._0x5bf6cf)+this[_0x5aed76(0x35b,0x310,_0x5c7584._0x4fbeba,0x379)],'editor-version':_0x5aed76(0x31d,0x39e,0x33b,_0x5c7584._0xa65fc0),'user-agent':_0x3d1c8b(_0x5c7584._0x4f0f87,_0x5c7584._0x3a5dab,0x5e5,0x60e),'x-github-api-version':this[_0x5aed76(0x3de,_0x5c7584._0x182441,_0x5c7584._0xebc6f9,_0x5c7584._0x1073d7)]}),'signal':_0x45f79f});if(!_0x5882ed['ok'])return{'credential':{'kind':'oauth-token','value':this['accessToken']},'endpoints':{'api':this[_0x5aed76(_0x5c7584._0x24d473,_0x5c7584._0x5bb5d,0x3a0,0x427)]}};function _0x3d1c8b(_0x986ae9,_0x4d6329,_0x47b2cd,_0x4378b2){return _0x55f0a4(_0x986ae9-_0x36f77b._0x5e1097,_0x4d6329-_0x36f77b._0x389689,_0x47b2cd,_0x986ae9-_0x36f77b._0x2a0239);}const _0x51ec13=await _0x5882ed[_0x3d1c8b(0x49d,_0x5c7584._0x221794,0x4df,_0x5c7584._0x633b9c)]();return{'credential':{'kind':_0x5aed76(0x447,_0x5c7584._0x15082d,_0x5c7584._0x4f2595,_0x5c7584._0x56ea0b),'value':_0x51ec13[_0x5aed76(_0x5c7584._0x4e387a,0x3e9,_0x5c7584._0x139d46,0x47b)]??this['accessToken']},'endpoints':{'api':_0x51ec13[_0x5aed76(_0x5c7584._0x3599f6,0x3c2,_0x5c7584._0x45ddea,0x3b7)]?.[_0x5aed76(_0x5c7584._0x31fca7,_0x5c7584._0x28dc89,0x302,_0x5c7584._0x1d58cd)]??this[_0x3d1c8b(_0x5c7584._0x1ef24a,0x44b,_0x5c7584._0x2eadf4,0x502)],'originTracker':_0x51ec13['endpoints']?.[_0x5aed76(_0x5c7584._0x3e7b71,_0x5c7584._0xcb31d0,0x241,_0x5c7584._0x3d7759)],'proxy':_0x51ec13[_0x3d1c8b(0x52b,0x5ab,0x489,0x5ae)]?.[_0x3d1c8b(_0x5c7584._0x4f7f04,0x3f3,0x3c8,_0x5c7584._0xd3d885)],'telemetry':_0x51ec13[_0x5aed76(_0x5c7584._0xda0a,_0x5c7584._0x47714b,0x40f,0x44a)]?.['telemetry']}};}};function trimTrailingSlashes2(_0x4ad303){return _0x4ad303['replace'](/\/+$/,'');}function createModelInfo(_0x56e9d4){const _0x219378={_0x6c5729:0x459,_0x1ff764:0xdb,_0x393908:0x6d,_0x207af5:0x16b,_0x42c38d:0x12b,_0x5a9845:0x463,_0x252256:0x503,_0x29e470:0x5a0,_0xba7bdb:0x526,_0x24ec41:0x400,_0x21e4ca:0x3ec,_0x5ee488:0x448,_0xd8b330:0x396,_0x358c99:0x486,_0x6e9bc1:0x49d},_0x3742b3={_0x36324d:0xca,_0x5cb1a3:0xe2};function _0x2d8358(_0x118ffe,_0x474141,_0x39486a,_0x514510){return _0x2e041c(_0x118ffe-0x17c,_0x474141-0xea,_0x474141-0x53e,_0x39486a);}const _0x3baea1=_0x56e9d4[_0x2d8358(0x463,0x490,_0x219378._0x6c5729,0x519)]??_0x56e9d4[_0x17c99a(-_0x219378._0x1ff764,-_0x219378._0x393908,-_0x219378._0x207af5,-_0x219378._0x42c38d)];function _0x17c99a(_0x475a4b,_0x4e49c2,_0x22b534,_0x369842){return _0x55f0a4(_0x475a4b-_0x3742b3._0x36324d,_0x4e49c2-_0x3742b3._0x5cb1a3,_0x4e49c2,_0x475a4b-0xef);}const _0x15b441=_0x56e9d4[_0x2d8358(0x3b4,_0x219378._0x5a9845,0x42b,_0x219378._0x252256)]?.['limits']?.[_0x2d8358(_0x219378._0x29e470,_0x219378._0xba7bdb,0x583,0x4bd)],_0x1e540c=_0x56e9d4[_0x2d8358(0x495,0x463,_0x219378._0x24ec41,0x3d1)]?.[_0x2d8358(_0x219378._0x21e4ca,_0x219378._0x5ee488,_0x219378._0xd8b330,0x509)]?.[_0x2d8358(0x515,_0x219378._0x358c99,0x514,_0x219378._0x6e9bc1)],_0x595cef=_0x15b441!==void 0x0||_0x1e540c!==void 0x0?{..._0x15b441!==void 0x0?{'contextWindow':_0x15b441}:{},..._0x1e540c!==void 0x0?{'maxOutput':_0x1e540c}:{}}:void 0x0;return{'id':_0x56e9d4['id'],'name':_0x56e9d4['name']??_0x56e9d4['id'],..._0x595cef?{'limits':_0x595cef}:{},..._0x3baea1?{'supportedEndpoints':_0x3baea1}:{}};}function deduplicateModels(_0x40f69a){const _0x438b97={_0x4b7012:0x288,_0xc4dfa0:0x2c9,_0x2ec079:0x301,_0x3a0d72:0x204,_0x357b46:0x36b,_0x2e6c23:0x2a1},_0x25c522={_0x215015:0xb5,_0x49cdfa:0xf2,_0x4b5f23:0x355},_0x209d45={_0x4568a6:0xb9};function _0x6df925(_0x49002c,_0x5e3ec2,_0x12785a,_0x178611){return _0x2e041c(_0x49002c-0x167,_0x5e3ec2-_0x209d45._0x4568a6,_0x178611- -0x18d,_0x5e3ec2);}const _0x983f3f=new Map();function _0x714e4f(_0xffcbe7,_0xdca873,_0x5285b9,_0x4fdd3e){return _0x2e041c(_0xffcbe7-_0x25c522._0x215015,_0xdca873-_0x25c522._0x49cdfa,_0x4fdd3e-_0x25c522._0x4b5f23,_0xdca873);}for(const _0x360136 of _0x40f69a){!_0x983f3f[_0x714e4f(_0x438b97._0x4b7012,0x367,0x355,_0x438b97._0xc4dfa0)](_0x360136['id'])&&_0x983f3f[_0x714e4f(0x26f,0x3c4,0x330,0x320)](_0x360136['id'],_0x360136);}return Array[_0x6df925(-_0x438b97._0x2ec079,-0x27e,-0x266,-0x2db)](_0x983f3f[_0x714e4f(_0x438b97._0x3a0d72,_0x438b97._0x357b46,_0x438b97._0x2e6c23,0x2c5)]());}function _0x3920(_0x390f00,_0x47763d){_0x390f00=_0x390f00-0x7d;const _0xb3ca3d=_0xb3ca();let _0x392005=_0xb3ca3d[_0x390f00];if(_0x3920['RAARJp']===undefined){var _0x3b698e=function(_0xff2b0b){const _0x152159='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4a0030='',_0x187dc8='';for(let _0x28f6fa=0x0,_0xc631e2,_0x61bc8d,_0x27595e=0x0;_0x61bc8d=_0xff2b0b['charAt'](_0x27595e++);~_0x61bc8d&&(_0xc631e2=_0x28f6fa%0x4?_0xc631e2*0x40+_0x61bc8d:_0x61bc8d,_0x28f6fa++%0x4)?_0x4a0030+=String['fromCharCode'](0xff&_0xc631e2>>(-0x2*_0x28f6fa&0x6)):0x0){_0x61bc8d=_0x152159['indexOf'](_0x61bc8d);}for(let _0x1a51ed=0x0,_0x18f512=_0x4a0030['length'];_0x1a51ed<_0x18f512;_0x1a51ed++){_0x187dc8+='%'+('00'+_0x4a0030['charCodeAt'](_0x1a51ed)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x187dc8);};_0x3920['RPauKz']=_0x3b698e,_0x3920['PBfgmm']={},_0x3920['RAARJp']=!![];}const _0x1dab79=_0xb3ca3d[0x0],_0x385ee8=_0x390f00+_0x1dab79,_0x30e923=_0x3920['PBfgmm'][_0x385ee8];return!_0x30e923?(_0x392005=_0x3920['RPauKz'](_0x392005),_0x3920['PBfgmm'][_0x385ee8]=_0x392005):_0x392005=_0x30e923,_0x392005;}function hasUserPromptContent(_0x5c0870){const _0x143c18={_0x6ae552:0x475,_0x50ab99:0x41f,_0x485749:0x4b9,_0x4ed1d5:0x2f9,_0x318219:0x328},_0x191797={_0x21ba9f:0x24d,_0x255d3a:0x190,_0x5db7d:0x16f,_0x1192e2:0x14e,_0x5c9910:0x1f6,_0x3892ec:0xd,_0xc9d260:0x77,_0x4f047d:0x35,_0x514072:0x11f,_0x2b27c7:0x1bd,_0x55ed41:0x132,_0x610a9e:0x72,_0x2c3e70:0x1c1,_0x2896c4:0x132,_0x10a45c:0x186,_0x217f0b:0x97,_0x177b20:0x60,_0xa33b2c:0x9f,_0x51b130:0x155,_0x5a55c8:0x162},_0x16978f={_0x4dd03d:0x28,_0x1a5d5b:0x54},_0xd3fc96={_0x63c6ae:0x171},_0x3ad96a={_0x29b250:0xa9},_0x30b451={_0x37f713:0x487};function _0x39d174(_0x3fa740,_0x1b73e5,_0x15987d,_0x3bde19){return _0x2e041c(_0x3fa740-0xf7,_0x1b73e5-0x64,_0x3fa740-_0x30b451._0x37f713,_0x15987d);}if(typeof _0x5c0870===_0x39d174(_0x143c18._0x6ae552,0x43e,_0x143c18._0x50ab99,_0x143c18._0x485749))return _0x5c0870[_0x39d174(0x35b,0x3b6,_0x143c18._0x4ed1d5,_0x143c18._0x318219)]()['length']>0x0;function _0x25cdd2(_0x3c0740,_0x5816b9,_0x4df77e,_0x556626){return _0x2e041c(_0x3c0740-0xac,_0x5816b9-_0x3ad96a._0x29b250,_0x5816b9-0x2a,_0x4df77e);}if(!Array['isArray'](_0x5c0870))return![];return _0x5c0870[_0x25cdd2(0xe3,0x37,0xb5,0xf8)](_0x2870f0=>{function _0x15d188(_0x34d1e0,_0x5df779,_0x11fb25,_0x39a18b){return _0x25cdd2(_0x34d1e0-_0xd3fc96._0x63c6ae,_0x5df779-0x11a,_0x11fb25,_0x39a18b-0x51);}if(!_0x2870f0||typeof _0x2870f0!==_0x57e951(-0xce,-_0x191797._0x21ba9f,-_0x191797._0x255d3a,-_0x191797._0x5db7d))return![];const _0x5268df=_0x2870f0;function _0x57e951(_0x5425d2,_0x33e833,_0x9ae777,_0x29e801){return _0x25cdd2(_0x5425d2-_0x16978f._0x4dd03d,_0x9ae777- -0xab,_0x33e833,_0x29e801-_0x16978f._0x1a5d5b);}return(_0x5268df[_0x57e951(-0xd7,-0xfb,-_0x191797._0x1192e2,-_0x191797._0x5c9910)]==='input_text'||_0x5268df[_0x15d188(-_0x191797._0x3892ec,_0x191797._0xc9d260,-_0x191797._0x4f047d,0x7f)]===_0x57e951(-_0x191797._0x514072,-0x9c,-0x132,-0x8b))&&typeof _0x5268df[_0x15d188(0x29,0x93,0x140,0x9b)]===_0x15d188(_0x191797._0x2b27c7,_0x191797._0x55ed41,_0x191797._0x610a9e,0x1c4)&&_0x5268df[_0x57e951(-0xbe,-_0x191797._0x2c3e70,-_0x191797._0x2896c4,-_0x191797._0x10a45c)][_0x15d188(0xc,0x18,-_0x191797._0x217f0b,-_0x191797._0x177b20)]()[_0x15d188(_0x191797._0xa33b2c,0xe1,_0x191797._0x51b130,_0x191797._0x5a55c8)]>0x0;});}function isUserPromptEntry(_0x2d8a93){const _0x5b6807={_0x42b6ba:0x41e,_0x4c02a2:0x382,_0x1a3134:0x407,_0x23ca7e:0x469,_0x1f8649:0x4b1,_0x3f48b1:0x158,_0x444db0:0x18c,_0x1ea3eb:0x118,_0x316ae5:0x18f,_0x398804:0x1a1,_0x331b8b:0x460,_0x11f9d8:0x3f1,_0x15550b:0x115,_0x3ef8d5:0x1bc,_0x65d1a0:0x141},_0x5c1ed7={_0x9cf075:0x7b};function _0x334207(_0x398ff3,_0x3e8ba7,_0x3ab95d,_0x5a8465){return _0x2e041c(_0x398ff3-0xd9,_0x3e8ba7-0xfa,_0x5a8465- -0x23,_0x3ab95d);}if(!_0x2d8a93||typeof _0x2d8a93!==_0x40bbec(0x3a3,0x424,_0x5b6807._0x42b6ba,_0x5b6807._0x4c02a2))return![];const _0x45233e=_0x2d8a93;if(_0x45233e[_0x40bbec(_0x5b6807._0x1a3134,_0x5b6807._0x23ca7e,_0x5b6807._0x1f8649,0x3f3)]!==_0x334207(-0x81,-_0x5b6807._0x3f48b1,-_0x5b6807._0x444db0,-_0x5b6807._0x1ea3eb))return![];function _0x40bbec(_0x40c894,_0x1beda2,_0x46caaf,_0x20b942){return _0x2e041c(_0x40c894-0x38,_0x1beda2-_0x5c1ed7._0x9cf075,_0x46caaf-0x52d,_0x1beda2);}if(_0x45233e[_0x334207(-_0x5b6807._0x316ae5,-_0x5b6807._0x398804,-0x8f,-0xf0)]!==void 0x0&&_0x45233e[_0x40bbec(0x520,0x462,_0x5b6807._0x331b8b,0x515)]!==_0x40bbec(0x44c,_0x5b6807._0x11f9d8,0x487,0x410))return![];return hasUserPromptContent(_0x45233e[_0x334207(-_0x5b6807._0x15550b,-_0x5b6807._0x3ef8d5,-0x82,-_0x5b6807._0x65d1a0)]);}function determineInitiator(_0x128d0d){const _0x12330c={_0x30f32b:0x182,_0x188e7b:0x131,_0x2fad83:0x142,_0x2543a3:0x151,_0x3f9307:0x45,_0x19f115:0xdb,_0x57259a:0xa3,_0x596959:0xdb,_0x2bc850:0xbc,_0x49e002:0xd,_0x2c9011:0x27,_0x164fa9:0xad,_0x267f0b:0x43,_0x2e06be:0x3e,_0x3d0a0c:0x18c,_0x49b159:0x1ee,_0x4df393:0x1de,_0x532248:0x106,_0x5e68fe:0x5f,_0x37dda2:0x119,_0x428b4a:0x85,_0x59c39a:0x11c,_0xda0e84:0x166,_0x482df7:0x11f,_0x4d8180:0x14c},_0x548047={_0x1b9ba5:0x1c,_0x3d754e:0x52},_0x4c469b={_0x28e852:0x22};if(!_0x128d0d||typeof _0x128d0d!==_0x5e968d(-0x1d3,-_0x12330c._0x30f32b,-_0x12330c._0x188e7b,-_0x12330c._0x2fad83))return _0x5e968d(-_0x12330c._0x2543a3,-_0x12330c._0x3f9307,-0xe8,-0xbc);const _0x4f9bed=_0x5e968d(-0x161,-0xa4,-_0x12330c._0x19f115,-_0x12330c._0x57259a)in _0x128d0d?_0x128d0d[_0x5e968d(-0xff,-0x10a,-_0x12330c._0x596959,-_0x12330c._0x2bc850)]:_0x5e968d(0x7f,_0x12330c._0x49e002,-_0x12330c._0x2c9011,-_0x12330c._0x164fa9)in _0x128d0d?_0x128d0d[_0x5e968d(0x91,0xb,-0x27,_0x12330c._0x267f0b)]:void 0x0;if(!Array[_0x5e968d(-_0x12330c._0x2e06be,0x36,0xd,0x13)](_0x4f9bed)||_0x4f9bed[_0x2496f5(_0x12330c._0x3d0a0c,_0x12330c._0x49b159,0x15f,_0x12330c._0x4df393)]===0x0)return _0x5e968d(-0xa8,-_0x12330c._0x532248,-0xe8,-_0x12330c._0x5e68fe);function _0x5e968d(_0x57306d,_0x142302,_0x1220ea,_0x2432fc){return _0x2e041c(_0x57306d-0x95,_0x142302-0xf5,_0x1220ea- -_0x4c469b._0x28e852,_0x2432fc);}function _0x2496f5(_0x11f240,_0xc4b041,_0x479c12,_0x12618f){return _0x2e041c(_0x11f240-_0x548047._0x1b9ba5,_0xc4b041-_0x548047._0x3d754e,_0x12618f-0x241,_0x11f240);}return isUserPromptEntry(_0x4f9bed[_0x4f9bed[_0x5e968d(-_0x12330c._0x37dda2,-0x5c,-_0x12330c._0x428b4a,-_0x12330c._0x59c39a)]-0x1])?_0x2496f5(_0x12330c._0xda0e84,0x1cf,_0x12330c._0x482df7,_0x12330c._0x4d8180):'agent';}function isUnsupportedApiForModel(_0x561367){const _0x4c9dae={_0x325a2c:0xcb,_0x46fec7:0xee,_0x177816:0x152,_0xde7202:0x197},_0x4bd4f5={_0x23d54d:0x196,_0x2e06c4:0xad};function _0x1ce601(_0x420f02,_0x2fc587,_0x32d3a0,_0x4c6b9b){return _0x55f0a4(_0x420f02-0xa1,_0x2fc587-_0x4bd4f5._0x23d54d,_0x420f02,_0x32d3a0-_0x4bd4f5._0x2e06c4);}return _0x561367[_0x1ce601(-_0x4c9dae._0x325a2c,-_0x4c9dae._0x46fec7,-_0x4c9dae._0x177816,-_0x4c9dae._0xde7202)]('unsupported_api_for_model');}function createResponseError(_0xf88351,_0x17f5ca){const _0x5801f2={_0x4baf5c:0x218,_0x778410:0x2e0},_0x40d373={_0x47cb7f:0x5d};if(_0xf88351===0x191||_0xf88351===0x193)return new Error(_0x2450d8(-0x301,-0x264,-0x26c,-_0x5801f2._0x4baf5c));if(_0xf88351===0x198||_0xf88351===0x1ad)return new Error('Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.');function _0x2450d8(_0x352c78,_0x2ed4b7,_0x59edfc,_0x38b66e){return _0x55f0a4(_0x352c78-0x129,_0x2ed4b7-0x9a,_0x38b66e,_0x59edfc- -_0x40d373._0x47cb7f);}if(_0xf88351===0x190)return new Error(_0x3cea95(-0x74,-0x9b,-0xe3,-0xd0)+_0x17f5ca);function _0x3cea95(_0x4aa1fb,_0x53ca1c,_0x16c21f,_0x50d0dd){return _0x55f0a4(_0x4aa1fb-0x164,_0x53ca1c-0x6a,_0x16c21f,_0x50d0dd-0x204);}return new Error(_0x17f5ca||_0x2450d8(-0x31f,-0x22a,-_0x5801f2._0x778410,-0x236)+_0xf88351);}var GitHubModel=class extends OpenAiModel{[_0x55f0a4(-0x244,-0x169,-0x1b6,-0x193)];[_0x2e041c(-0xcf,0x50,-0x61,-0xa2)]=new Map();[_0x2e041c(-0x40,-0x1f,-0xa9,-0x87)];constructor(_0x5afc06={}){const _0x245195={_0x245c7e:0x132,_0x14e5fa:0xd7,_0x109c60:0x42,_0x13be76:0x400,_0x479678:0x332,_0x2c8111:0x34a,_0x7f798c:0x105,_0x395b1a:0xe2,_0x8d8f5e:0x3bc,_0x20e9a1:0x3bb,_0x28195b:0x315,_0x54b8da:0x3a6,_0x135a24:0x44a,_0x35f7f7:0x49d,_0x3d62e4:0x43a,_0x1cb99f:0x36e,_0x8394ad:0x466,_0xf9ff62:0x3ba,_0x1a105e:0x3a8,_0xc7ed6c:0x41e,_0x364465:0x3c6,_0x471781:0x6c,_0x130db0:0x76,_0x241f21:0x346,_0x6c781d:0x42a,_0xf095fe:0x388,_0xf2396:0x189,_0x4931cc:0xfb,_0x59447d:0x398,_0x29606a:0x3de,_0x350fa7:0x105,_0x53f127:0xa4,_0x4627fa:0xbf,_0x58725f:0x1,_0x415586:0x167,_0x315fad:0xa7,_0x2bc6ff:0x32d,_0x4e69cc:0x3e2,_0x456120:0x112,_0x38e8a7:0x31,_0x2b506a:0xe0,_0x140de0:0xc0,_0x4f8872:0x4ba},_0x4b4ed0={_0x225b0c:0x199},_0x2f19c1={_0xeec20f:0x1df,_0x2a3cf0:0x315},_0x5020f2=trimTrailingSlashes2(_0x5afc06[_0x3c3320(0x34,0x178,_0x245195._0x245c7e,_0x245195._0x14e5fa)]??_0x3c3320(0xfd,0x166,0xe0,0x17c)),_0x1c2faf=_0x5afc06[_0x3c3320(-0x8b,-0x58,_0x245195._0x109c60,0x2b)]??globalThis[_0x7c66da(_0x245195._0x13be76,0x384,_0x245195._0x479678,_0x245195._0x2c8111)];function _0x3c3320(_0x31796f,_0x5185e6,_0x386dcb,_0x4253fa){return _0x55f0a4(_0x31796f-0x194,_0x5185e6-_0x2f19c1._0xeec20f,_0x31796f,_0x4253fa-_0x2f19c1._0x2a3cf0);}const _0x158353=_0x5afc06[_0x3c3320(_0x245195._0x7f798c,0x100,0x38,0x93)]??(_0x5afc06[_0x3c3320(-0x26,_0x245195._0x395b1a,0xe9,0x98)]?new GitHubAccessTokenResolver({'accessToken':_0x5afc06[_0x7c66da(_0x245195._0x8d8f5e,_0x245195._0x20e9a1,0x45d,0x3b7)],'baseUrl':_0x5020f2,'fetch':_0x1c2faf,'githubApiUrl':_0x5afc06[_0x7c66da(0x410,0x350,_0x245195._0x28195b,_0x245195._0x54b8da)]??'https://api.github.com','tokenExchangeApiVersion':_0x5afc06[_0x7c66da(0x454,_0x245195._0x135a24,_0x245195._0x35f7f7,_0x245195._0x3d62e4)]??_0x7c66da(0x398,0x46b,_0x245195._0x1cb99f,0x418)}):void 0x0);function _0x7c66da(_0xbf573f,_0x318177,_0x32769f,_0x511d0d){return _0x55f0a4(_0xbf573f-_0x4b4ed0._0x225b0c,_0x318177-0x89,_0x318177,_0x511d0d-0x634);}const _0x23e1a0=_0x5afc06[_0x7c66da(0x374,_0x245195._0x8394ad,_0x245195._0xf9ff62,_0x245195._0x1a105e)]??_0x3c3320(0x125,0xe8,0xc9,0x135),_0x2d7476=_0x5afc06[_0x3c3320(0xb5,0x22b,0x17f,0x170)]??_0x7c66da(0x46c,_0x245195._0xc7ed6c,0x455,0x45b),_0x176cb4=({body:_0x6e1102})=>{return{'editor-plugin-version':_0x2d7476,'editor-version':_0x23e1a0,'x-initiator':determineInitiator(_0x6e1102),'x-request-id':randomUUID()};},_0x42a7f0={'apiKey':_0x5afc06[_0x7c66da(0x461,0x46b,_0x245195._0x364465,0x3e2)],'baseUrl':_0x5020f2,'fetch':_0x1c2faf,'maxTokens':_0x5afc06[_0x3c3320(-_0x245195._0x471781,0x48,_0x245195._0x130db0,0x4b)],'model':_0x5afc06[_0x7c66da(_0x245195._0x241f21,_0x245195._0x6c781d,0x313,_0x245195._0xf095fe)],'reasoning':_0x5afc06[_0x3c3320(0x115,0x157,0xec,_0x245195._0xf2396)],'providerSessionResolver':_0x158353,'requestMutators':_0x5afc06[_0x3c3320(0xde,0xe4,_0x245195._0x4931cc,0x13d)],'headerResolver':_0x176cb4};super(_0x42a7f0),this[_0x7c66da(0x3de,_0x245195._0x59447d,0x408,_0x245195._0x29606a)]=_0x5afc06[_0x3c3320(_0x245195._0x350fa7,_0x245195._0x7f798c,_0x245195._0x53f127,_0x245195._0x4627fa)]??_0x3c3320(_0x245195._0x58725f,0x6b,_0x245195._0x415586,_0x245195._0x315fad),this[_0x7c66da(0x4c0,0x506,0x547,0x4a1)]=new AnthropicModel({'apiKey':_0x5afc06[_0x7c66da(0x446,_0x245195._0x2bc6ff,0x3ca,_0x245195._0x4e69cc)],'authScheme':_0x3c3320(_0x245195._0x456120,0xa9,_0x245195._0x38e8a7,_0x245195._0x2b506a),'baseUrl':_0x5020f2,'fetch':_0x1c2faf,'headerResolver':_0x176cb4,'maxTokens':_0x5afc06['maxTokens'],'model':_0x5afc06[_0x3c3320(_0x245195._0x140de0,-0x3e,0xc4,0x69)],'reasoning':_0x5afc06['reasoning'],'providerSessionResolver':_0x158353,'requestMutators':_0x5afc06[_0x7c66da(0x3c8,_0x245195._0x4f8872,0x4f1,0x45c)]});}[_0x55f0a4(-0x356,-0x2b7,-0x261,-0x2b0)](){const _0x2f0032={_0x5f742:0x6d},_0x263c75={_0x511d48:0x155,_0x366eea:0x188};function _0x4ee92b(_0x2e407b,_0x1d4a73,_0x39b19a,_0x333f9c){return _0x2e041c(_0x2e407b-0x130,_0x1d4a73-_0x263c75._0x511d48,_0x1d4a73-_0x263c75._0x366eea,_0x2e407b);}return new Error(_0x4ee92b(0x45,_0x2f0032._0x5f742,0xe1,0x118));}[_0x55f0a4(-0x2b3,-0x31b,-0x307,-0x29a)](_0x2de223){const _0x376a11={_0x42e5f0:0x175,_0x3cd826:0x230,_0x47d7e2:0x1d4,_0x3ccce4:0x100,_0x1a878f:0xe3,_0x4adc72:0xca,_0x33fffc:0x66,_0x3de9ab:0xb7,_0x116343:0x10c,_0xfc854:0x7a},_0x378d9b={_0x13500f:0x56,_0x1b63f3:0x157},_0x2eb186=this[_0x1ca199(0x103,0x1cc,_0x376a11._0x42e5f0,0x217)][_0x1ca199(_0x376a11._0x3cd826,0x1a5,0x1a8,_0x376a11._0x47d7e2)](_0x2de223);if(!_0x2eb186)return![];function _0x1ca199(_0x1f759b,_0xaeb268,_0x79d8a2,_0x3867d9){return _0x55f0a4(_0x1f759b-0x10e,_0xaeb268-0x1bc,_0x3867d9,_0x79d8a2-0x383);}function _0x38f496(_0x93f9ad,_0x48fa2f,_0x51eaa2,_0x23f3cb){return _0x2e041c(_0x93f9ad-0x61,_0x48fa2f-_0x378d9b._0x13500f,_0x51eaa2-_0x378d9b._0x1b63f3,_0x48fa2f);}return!_0x2eb186[_0x38f496(_0x376a11._0x3ccce4,0xda,0x105,_0x376a11._0x1a878f)]('/chat/completions')&&_0x2eb186[_0x1ca199(_0x376a11._0x4adc72,0xff,0x184,0xf7)](_0x1ca199(_0x376a11._0x33fffc,_0x376a11._0x3de9ab,_0x376a11._0x116343,_0x376a11._0xfc854));}['shouldPreferResponsesApi'](_0x2488f2){const _0x522c2c={_0x1962ff:0x446,_0x42d772:0x395,_0x3a8435:0x3a1,_0x49b0b6:0x1c7,_0xd461d:0x37,_0x5b9195:0xb,_0x1aab27:0x415,_0x18d9a3:0x369,_0x280a5e:0x263,_0x3f680a:0x2e2,_0xe051cd:0x23b},_0x23f865={_0xcc516e:0x16},_0x2285fd={_0x2e3c68:0x1c1,_0x487fcc:0x57c},_0x3f60b3=this['modelEndpointCache'][_0x1c45a5(0x41d,_0x522c2c._0x1962ff,_0x522c2c._0x42d772,_0x522c2c._0x3a8435)](_0x2488f2[_0x4e7ab9(-0xcc,-0x83,-_0x522c2c._0x49b0b6,-0x115)]);if(!_0x3f60b3)return![];if(resolveOpenAiReasoningConfig(_0x2488f2[_0x4e7ab9(-0x1f,-_0x522c2c._0xd461d,0x11,_0x522c2c._0x5b9195)]))return _0x3f60b3[_0x1c45a5(0x2eb,_0x522c2c._0x1aab27,0x40e,0x37d)]('/responses');function _0x1c45a5(_0x5e8c33,_0x218980,_0x3a120f,_0x54278d){return _0x55f0a4(_0x5e8c33-0x8d,_0x218980-_0x2285fd._0x2e3c68,_0x218980,_0x54278d-_0x2285fd._0x487fcc);}function _0x4e7ab9(_0x24431,_0xa6d67,_0x292f8d,_0x378f0b){return _0x2e041c(_0x24431-0x4a,_0xa6d67-0x6f,_0x378f0b- -_0x23f865._0xcc516e,_0x24431);}return this[_0x1c45a5(0x31e,_0x522c2c._0x18d9a3,_0x522c2c._0x280a5e,_0x522c2c._0x3f680a)](_0x2488f2[_0x1c45a5(_0x522c2c._0xe051cd,0x371,0x372,0x2d0)]);}[_0x55f0a4(-0x32e,-0x286,-0x1fe,-0x296)](_0x5c12d0){const _0x57c9f8={_0x393bc0:0xa7,_0x8e8c8e:0x10e,_0x4e66ca:0x119},_0x413cf8={_0x29cfba:0xa8,_0x4e48db:0xd4};function _0x187e62(_0x42c8b8,_0x2e29bf,_0x4b7d6f,_0x4019b8){return _0x55f0a4(_0x42c8b8-_0x413cf8._0x29cfba,_0x2e29bf-0x13b,_0x4019b8,_0x4b7d6f-_0x413cf8._0x4e48db);}this['modelEndpointCache'][_0x187e62(-0x89,-_0x57c9f8._0x393bc0,-_0x57c9f8._0x8e8c8e,-_0x57c9f8._0x4e66ca)](_0x5c12d0,['/responses']);}['mapApiError'](_0x55e7f7){const _0x277b37={_0x43c80c:0x123,_0x43dfc2:0x171,_0x248d5f:0x150,_0x22d44a:0xf2,_0x11a3f2:0x73,_0x340b6c:0x2e,_0x456ac3:0x9b,_0x8e43a8:0x9},_0x523ec4={_0x32a3ca:0x13b,_0x188948:0x84},_0x3b2e73={_0x11637e:0x1b2,_0x5be6a4:0x2c6};if(_0x55e7f7 instanceof OpenAiApiError)return createResponseError(_0x55e7f7[_0x46cf54(0x171,_0x277b37._0x43c80c,0xba,0x1c0)],_0x55e7f7[_0x46cf54(_0x277b37._0x43dfc2,_0x277b37._0x248d5f,0xa0,_0x277b37._0x22d44a)]||_0x55e7f7[_0x2c1243(_0x277b37._0x11a3f2,_0x277b37._0x340b6c,_0x277b37._0x456ac3,-_0x277b37._0x8e43a8)]);function _0x2c1243(_0x2e1e72,_0x30280c,_0x3f26c0,_0x336be6){return _0x55f0a4(_0x2e1e72-_0x3b2e73._0x11637e,_0x30280c-0x1df,_0x336be6,_0x2e1e72-_0x3b2e73._0x5be6a4);}function _0x46cf54(_0x3a2786,_0x381378,_0x2e72d6,_0x1e4561){return _0x2e041c(_0x3a2786-_0x523ec4._0x32a3ca,_0x381378-_0x523ec4._0x188948,_0x381378-0x21e,_0x1e4561);}return _0x55e7f7;}[_0x55f0a4(-0x352,-0x389,-0x23b,-0x2ec)](_0x1ce060,_0x1d9c6e){const _0x109857={_0x49300d:0x120,_0x45390c:0x4a7,_0x1aa162:0x3ad,_0x4dda2d:0x49d,_0xf6a67a:0x204,_0x100997:0x201,_0x565228:0xd7,_0x4ba364:0x41f,_0x65f98f:0xc7,_0x2c401f:0x8c,_0x37a652:0x283,_0x7817f4:0x1c7,_0x3ea82f:0x16f,_0xb84921:0x47b,_0x5c0893:0x3c7,_0x420cf8:0x1ac,_0x50448c:0x163,_0x5c4f29:0x91,_0x498c77:0x475},_0x54999e={_0x1cdf17:0x1af},_0x14d7cf={_0x3c77c4:0x635};switch(this[_0x2e64a3(0x86,_0x109857._0x49300d,0x147,0x1eb)]){case'anthropic-messages':return this['anthropicDelegate'][_0x2e64a3(0xce,0x188,0x133,0x1ae)](_0x1ce060,_0x1d9c6e);case _0x264969(0x4ef,0x3e9,0x47b,_0x109857._0x45390c):return this[_0x264969(_0x109857._0x1aa162,0x431,0x40d,_0x109857._0x4dda2d)](_0x1ce060,_0x1d9c6e);case _0x2e64a3(_0x109857._0xf6a67a,_0x109857._0x100997,0x166,_0x109857._0x565228):return this[_0x264969(0x4db,0x3b9,_0x109857._0x4ba364,0x44a)](_0x1ce060,_0x1d9c6e);case _0x2e64a3(0x72,0x12e,_0x109857._0x65f98f,_0x109857._0x2c401f):return this[_0x2e64a3(0x1e4,_0x109857._0x37a652,_0x109857._0x7817f4,_0x109857._0x3ea82f)](_0x1ce060,_0x1d9c6e);case _0x264969(0x32c,_0x109857._0xb84921,_0x109857._0x5c0893,0x317):return this[_0x2e64a3(_0x109857._0x420cf8,_0x109857._0x50448c,0x133,_0x109857._0x5c4f29)](_0x1ce060,_0x1d9c6e);}function _0x264969(_0x1eb80a,_0xd249cc,_0x1b236,_0x42a95d){return _0x55f0a4(_0x1eb80a-0x19d,_0xd249cc-0x3a,_0x42a95d,_0x1b236-_0x14d7cf._0x3c77c4);}function _0x2e64a3(_0x561114,_0x43d3a1,_0x55d7c8,_0x5be636){return _0x55f0a4(_0x561114-_0x54999e._0x1cdf17,_0x43d3a1-0x18c,_0x561114,_0x55d7c8-0x39d);}throw new Error(_0x264969(0x4b9,0x4a4,_0x109857._0x498c77,_0x109857._0x4dda2d)+String(this['surface']));}[_0x2e041c(-0xdc,0x8a,-0x32,0x6c)](_0x3a8731,_0x130d8a){const _0x2a9ae4={_0x2b6d86:0x11b,_0xe36865:0x16b,_0x37567b:0x1e1,_0x3e4da2:0x29a,_0x2adbf2:0x33b,_0x945e73:0x1fa,_0x53e309:0x1c3,_0x761faf:0x25a,_0x25ab0a:0x164,_0x101be3:0x1d1,_0x9e382f:0x42c,_0x3d4522:0x377,_0x42cea8:0x3dd,_0x10013a:0x429,_0xaa1285:0x2c8,_0x4ccc96:0x325,_0x146a84:0x3cc,_0xe22571:0x326,_0x2251bf:0x360,_0x4abd20:0x3d3,_0x369ff7:0x423,_0x2e4d68:0x134,_0x430e71:0x2ee,_0x1788a0:0x319,_0x1507fe:0x3ba,_0x1827a2:0x3d6,_0x339fd7:0x37f,_0x2a6bd5:0x3e2},_0x5493a7={_0x5466eb:0x3ea},_0x2f1d58={_0x5ccde5:0x7};function _0x48827a(_0xc09b1f,_0x61bf8f,_0x45fbfe,_0x1d469f){return _0x2e041c(_0xc09b1f-0x100,_0x61bf8f-_0x2f1d58._0x5ccde5,_0x61bf8f-0x20e,_0xc09b1f);}function _0x472f03(_0x5e479b,_0x473024,_0x46698c,_0x5c96ff){return _0x2e041c(_0x5e479b-0x6e,_0x473024-0x152,_0x46698c-_0x5493a7._0x5466eb,_0x5e479b);}switch(this[_0x48827a(_0x2a9ae4._0x2b6d86,0x165,0x100,_0x2a9ae4._0xe36865)]){case _0x472f03(_0x2a9ae4._0x37567b,0x2ec,_0x2a9ae4._0x3e4da2,_0x2a9ae4._0x2adbf2):return this[_0x48827a(_0x2a9ae4._0x945e73,0x228,_0x2a9ae4._0x53e309,_0x2a9ae4._0x761faf)][_0x48827a(0x184,0x1b9,_0x2a9ae4._0x25ab0a,_0x2a9ae4._0x101be3)](_0x3a8731,_0x130d8a);case _0x472f03(_0x2a9ae4._0x9e382f,_0x2a9ae4._0x3d4522,_0x2a9ae4._0x42cea8,_0x2a9ae4._0x10013a):return this[_0x472f03(0x239,0x216,_0x2a9ae4._0xaa1285,_0x2a9ae4._0x4ccc96)](_0x3a8731,_0x130d8a);case _0x472f03(_0x2a9ae4._0x146a84,_0x2a9ae4._0xe22571,_0x2a9ae4._0x2251bf,0x364):return this[_0x472f03(0x40c,0x329,_0x2a9ae4._0x4abd20,_0x2a9ae4._0x369ff7)](_0x3a8731,_0x130d8a);case _0x48827a(0x57,0xe5,0x89,_0x2a9ae4._0x2e4d68):return this[_0x472f03(0x330,0x381,0x2ed,_0x2a9ae4._0x430e71)](_0x3a8731,_0x130d8a);case _0x472f03(_0x2a9ae4._0x1788a0,_0x2a9ae4._0x1507fe,0x329,0x354):return this[_0x472f03(_0x2a9ae4._0x1827a2,_0x2a9ae4._0x339fd7,0x395,_0x2a9ae4._0x2a6bd5)](_0x3a8731,_0x130d8a);}throw new Error(_0x48827a(0x174,0x1fb,0x16a,0x1cc)+String(this['surface']));}async['complete'](_0x26832a,_0x35c1ed){const _0x289dab={_0x1c33ed:0x473,_0x235065:0x41a,_0x5095e1:0x47e,_0x37d05e:0x3c2,_0x30e498:0x381,_0x487dfa:0x3aa,_0x57749a:0x31e,_0x57943f:0x2d8,_0x29fa2b:0x2fd,_0x4e9f1e:0x343,_0x71f685:0x368,_0x32b3a8:0x34a,_0x4bc3de:0x345,_0x19c580:0x346,_0x4be02d:0x384,_0x3a96e1:0x367,_0x550ca7:0x286,_0x2c36c3:0x385,_0x543c6c:0x3fd,_0x34bb89:0x3a7},_0x596a1b={_0x10a43f:0xa2},_0xeb3404={_0x25a7ce:0x18,_0x668635:0x5c4};function _0x23a5ee(_0x178945,_0x327216,_0xc0ba5a,_0x59969e){return _0x55f0a4(_0x178945-_0xeb3404._0x25a7ce,_0x327216-0xda,_0x59969e,_0x327216-_0xeb3404._0x668635);}const _0x25ed7b=this[_0x2a0aad(0x4c6,_0x289dab._0x1c33ed,_0x289dab._0x235065,0x3d6)](_0x26832a);if(this[_0x2a0aad(0x42a,_0x289dab._0x5095e1,_0x289dab._0x37d05e,_0x289dab._0x30e498)]!==_0x2a0aad(0x3ac,0x367,_0x289dab._0x487dfa,_0x289dab._0x57749a))return this[_0x23a5ee(0x269,_0x289dab._0x57943f,0x328,_0x289dab._0x29fa2b)](_0x25ed7b,_0x35c1ed);function _0x2a0aad(_0x12ff83,_0x1dd0d6,_0x22ef28,_0x3e473e){return _0x55f0a4(_0x12ff83-0x1e1,_0x1dd0d6-_0x596a1b._0x10a43f,_0x1dd0d6,_0x22ef28-0x618);}if(this[_0x23a5ee(_0x289dab._0x4e9f1e,_0x289dab._0x71f685,0x3b0,0x30f)](_0x25ed7b))return this['response'](_0x25ed7b,_0x35c1ed);try{return await this[_0x23a5ee(_0x289dab._0x32b3a8,0x3d2,_0x289dab._0x4bc3de,_0x289dab._0x19c580)](_0x25ed7b,_0x35c1ed);}catch(_0x512340){if(_0x512340 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x512340['body']))return this[_0x2a0aad(_0x289dab._0x4be02d,_0x289dab._0x3a96e1,0x382,0x2c1)](_0x25ed7b[_0x23a5ee(0x33a,0x318,_0x289dab._0x550ca7,_0x289dab._0x2c36c3)]),this['response'](_0x25ed7b,_0x35c1ed);throw this[_0x2a0aad(_0x289dab._0x543c6c,_0x289dab._0x235065,_0x289dab._0x34bb89,0x2f6)](_0x512340);}throw _0x512340;}}async*[_0x55f0a4(-0x166,-0x1cd,-0x209,-0x202)](_0x33630a,_0x938e6b){const _0x4a2730={_0x1a589f:0x160,_0x52dd21:0xd4,_0x1a17c5:0x93,_0x4667b0:0xf0,_0x22591c:0x44,_0x1f2be9:0xbd,_0x509cab:0xb9,_0x52ad01:0x178,_0x5e752f:0x11a,_0x268023:0x21b,_0x36349d:0x14d,_0x2ce35d:0x18d,_0x3e2cca:0x183,_0x2d7bda:0x178,_0x151254:0x171,_0x2ea404:0x1b2,_0x2eaa5f:0xbe},_0x4a6d1c={_0x1f476f:0x12c,_0x145418:0x18f},_0x28a02f={_0x3b4a12:0x18b};function _0x33e2cb(_0x4e3930,_0x4b2100,_0x2216f4,_0x50c286){return _0x55f0a4(_0x4e3930-0x1d6,_0x4b2100-_0x28a02f._0x3b4a12,_0x4e3930,_0x2216f4-0x29c);}const _0x57a40f=this[_0x52a221(0x112,0x13e,_0x4a2730._0x1a589f,_0x4a2730._0x52dd21)](_0x33630a);if(this[_0x33e2cb(-0x7,0x48,0x46,-0x62)]!==_0x52a221(0x176,0xce,_0x4a2730._0x1a17c5,_0x4a2730._0x4667b0)){yield*this[_0x33e2cb(0x84,_0x4a2730._0x22591c,_0x4a2730._0x1f2be9,_0x4a2730._0x509cab)](_0x57a40f,_0x938e6b);return;}if(this['shouldPreferResponsesApi'](_0x57a40f)){yield*this[_0x52a221(0xb7,_0x4a2730._0x52ad01,_0x4a2730._0x5e752f,_0x4a2730._0x268023)](_0x57a40f,_0x938e6b);return;}function _0x52a221(_0x42fade,_0x425fcd,_0x23f72d,_0x1f4db0){return _0x2e041c(_0x42fade-_0x4a6d1c._0x1f476f,_0x425fcd-0x96,_0x425fcd-_0x4a6d1c._0x145418,_0x23f72d);}try{yield*this[_0x33e2cb(_0x4a2730._0x36349d,0x97,0xf5,_0x4a2730._0x2ce35d)](_0x57a40f,_0x938e6b);}catch(_0x14478f){if(_0x14478f instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x14478f['body'])){this['markModelAsResponsesOnly'](_0x57a40f[_0x33e2cb(0x6e,-0x1c,-0x10,0x2d)]),yield*this[_0x52a221(_0x4a2730._0x3e2cca,_0x4a2730._0x2d7bda,_0x4a2730._0x151254,_0x4a2730._0x2ea404)](_0x57a40f,_0x938e6b);return;}throw this[_0x52a221(0x112,0xcb,_0x4a2730._0x2eaa5f,0xd6)](_0x14478f);}throw _0x14478f;}}async[_0x55f0a4(-0x242,-0x2a3,-0x2d6,-0x297)](_0x3cacdd){const _0x2f53b5={_0x33b293:0xaf,_0x2d7325:0x144,_0x2cac10:0xaa,_0x178a72:0x56,_0x183dc8:0x9d,_0xb2167f:0xf3,_0x9b3575:0x15b,_0x267fc7:0x252},_0x44a521={_0x27330a:0x1ed,_0x5267c4:0x17a},_0x291bcf={_0x491b0e:0x1e7,_0x588072:0x28f,_0x1cd136:0x256,_0x5ea653:0x219,_0x859ca6:0x1c4,_0x382767:0x13d},_0x37e81a={_0x528da7:0x0},_0x530140={_0x21a692:0x6b,_0x4e95ea:0x1d5,_0x46d0e5:0x374},_0x42c8f=await this['sendRawRequest']({'path':_0x5bb7c4(0x99,_0x2f53b5._0x33b293,_0x2f53b5._0x2d7325,_0x2f53b5._0x2cac10),'method':'GET','signal':_0x3cacdd});if(!_0x42c8f['ok'])throw this[_0x33d622(_0x2f53b5._0x178a72,0x10c,_0x2f53b5._0x183dc8,_0x2f53b5._0xb2167f)](await this['toApiError'](_0x42c8f));const _0x453b2c=await _0x42c8f['json']();function _0x5bb7c4(_0x540581,_0x595592,_0x5cce2e,_0x4060a1){return _0x55f0a4(_0x540581-_0x530140._0x21a692,_0x595592-_0x530140._0x4e95ea,_0x4060a1,_0x5cce2e-_0x530140._0x46d0e5);}const _0x4c59cc=(_0x453b2c[_0x5bb7c4(_0x2f53b5._0x9b3575,0x16a,0x1ec,_0x2f53b5._0x267fc7)]??[])['map'](_0x5d5b70=>{const _0x344117={_0x4c81c9:0x9a},_0x3325b6=createModelInfo(_0x5d5b70);function _0x24bb8e(_0x2c0925,_0x353399,_0xc193c4,_0x559191){return _0x5bb7c4(_0x2c0925-0xda,_0x353399-0x1dc,_0xc193c4-_0x344117._0x4c81c9,_0x2c0925);}_0x3325b6[_0x24bb8e(0x28e,0x16a,_0x291bcf._0x491b0e,_0x291bcf._0x588072)]&&this['modelEndpointCache'][_0x513cb4(0x202,0x21b,0x209,_0x291bcf._0x1cd136)](_0x3325b6['id'],_0x3325b6[_0x513cb4(_0x291bcf._0x5ea653,0x248,_0x291bcf._0x859ca6,_0x291bcf._0x382767)]);function _0x513cb4(_0x216787,_0x355076,_0x270361,_0x1e7937){return _0x5bb7c4(_0x216787-_0x37e81a._0x528da7,_0x355076-0x8b,_0x270361-0x77,_0x216787);}return _0x3325b6;});function _0x33d622(_0xed5bd0,_0x154b01,_0x523528,_0x6a9087){return _0x2e041c(_0xed5bd0-_0x44a521._0x27330a,_0x154b01-_0x44a521._0x5267c4,_0x6a9087-0x1b7,_0x523528);}return deduplicateModels(_0x4c59cc);}};function createHeaders(_0x456083){const _0x34b7b5={_0x3b133d:0x263,_0x524859:0x201,_0x3576e0:0x22d,_0x274f10:0x1dd,_0x35fbd0:0x255,_0x4feb65:0x260},_0x2335c9={_0x5c9682:0x136},_0x434215={_0xed0740:0x94};function _0x1a13a6(_0x3a7830,_0x5d4278,_0x1fc7ca,_0x12f836){return _0x55f0a4(_0x3a7830-_0x434215._0xed0740,_0x5d4278-0xd3,_0x3a7830,_0x12f836-0x5f3);}function _0x537026(_0x9d0475,_0x176953,_0x3ed0e2,_0x3d0ac5){return _0x55f0a4(_0x9d0475-0x12f,_0x176953-_0x2335c9._0x5c9682,_0x3d0ac5,_0x9d0475-0x40f);}const _0x11d905=new Headers();for(const [_0x4ae346,_0xc50af9]of Object[_0x537026(_0x34b7b5._0x3b133d,0x2c0,0x20e,_0x34b7b5._0x524859)](_0x456083)){_0x11d905[_0x537026(_0x34b7b5._0x3576e0,_0x34b7b5._0x274f10,_0x34b7b5._0x35fbd0,_0x34b7b5._0x4feb65)](_0x4ae346,_0xc50af9);}return _0x11d905;}async function fetchRawResponse(_0x136097){const _0x1f2819={_0x16a318:0xda,_0x426703:0x1d5,_0x2eefee:0x269,_0x5abd01:0x1ec,_0x378294:0x2a2,_0x173b6c:0x284,_0x246314:0x2db,_0x2b1a2f:0x282,_0x358b55:0x26e,_0xcf2dee:0x25e,_0x171b7a:0xa7,_0x6b3300:0x60,_0xe95640:0x203,_0x228a77:0x13a,_0x177f0c:0x2be,_0x46e5fd:0x244,_0x2e0341:0x1c9,_0x4bc78a:0x189},_0x3a78d6={_0x532543:0x13c},_0x48a4b3={_0x35345c:0x135,_0x388ada:0xad,_0x1828ff:0x312};function _0x4efed3(_0x459334,_0x1e2fc8,_0x4d1279,_0x199364){return _0x2e041c(_0x459334-_0x48a4b3._0x35345c,_0x1e2fc8-_0x48a4b3._0x388ada,_0x1e2fc8-_0x48a4b3._0x1828ff,_0x459334);}const _0x568ddd=_0x136097[_0x2dbda9(-_0x1f2819._0x16a318,-0x143,-0x175,-0x13d)]??globalThis[_0x4efed3(0x160,_0x1f2819._0x426703,_0x1f2819._0x2eefee,_0x1f2819._0x5abd01)];function _0x2dbda9(_0x226f8a,_0x373230,_0x3b2c65,_0x32576c){return _0x55f0a4(_0x226f8a-_0x3a78d6._0x532543,_0x373230-0x2a,_0x32576c,_0x3b2c65-0x175);}return _0x568ddd(_0x136097[_0x4efed3(0x298,_0x1f2819._0x378294,_0x1f2819._0x173b6c,_0x1f2819._0x246314)],{'method':_0x4efed3(_0x1f2819._0x2b1a2f,_0x1f2819._0x358b55,_0x1f2819._0xcf2dee,0x1ae),'headers':createHeaders(_0x136097[_0x2dbda9(-0x105,-_0x1f2819._0x171b7a,-_0x1f2819._0x6b3300,-0x80)]),'body':JSON[_0x2dbda9(-_0x1f2819._0xe95640,-0x22b,-0x182,-_0x1f2819._0x228a77)](_0x136097[_0x4efed3(_0x1f2819._0x177f0c,_0x1f2819._0x46e5fd,_0x1f2819._0x2e0341,0x1ff)]),'signal':_0x136097[_0x4efed3(0x24a,0x1ed,_0x1f2819._0x4bc78a,0x181)]});}async function fetchJsonResponse(_0x30ea66){const _0x3ad840={_0x57c8ad:0x417,_0x263ec5:0x4a2,_0x46dcb3:0x297,_0x4d19ad:0x266,_0x1388a7:0x2f9,_0x1552b5:0x2e5},_0x42b930={_0x296b29:0x182},_0x5a4a88={_0x5e4502:0x1ea};function _0x4c905a(_0x42aa0d,_0x5ce6cd,_0x56b78f,_0x4905c0){return _0x2e041c(_0x42aa0d-0x1ba,_0x5ce6cd-0x108,_0x4905c0- -_0x5a4a88._0x5e4502,_0x5ce6cd);}const _0x5bc293=await fetchRawResponse(_0x30ea66);if(!_0x5bc293['ok']){const _0x3cfc41=await _0x5bc293[_0x444be2(0x4c7,0x503,0x468,0x4e3)](),_0x26e557=_0x3cfc41[_0x444be2(_0x3ad840._0x57c8ad,0x476,0x3ed,_0x3ad840._0x263ec5)]()||_0x5bc293['statusText']||_0x4c905a(-0x13e,-0x200,-0x1d7,-0x1cc);throw new Error(_0x4c905a(-_0x3ad840._0x46dcb3,-0x24a,-0x2b0,-0x219)+_0x5bc293[_0x4c905a(-_0x3ad840._0x4d19ad,-0x2a2,-_0x3ad840._0x1388a7,-_0x3ad840._0x1552b5)]+':\x20'+_0x26e557);}function _0x444be2(_0x51929a,_0x3d5f44,_0x4a0880,_0x43bc0e){return _0x2e041c(_0x51929a-0x23,_0x3d5f44-_0x42b930._0x296b29,_0x4a0880-0x519,_0x43bc0e);}return await _0x5bc293['json']();}function findLastMessage(_0x4c59cb,_0x2a33ba){const _0x2e5f71={_0x13dc01:0x154,_0x3112cb:0x123,_0x3676d1:0x15e,_0x4ef2f4:0x1aa,_0x11fe0f:0x10f,_0x49b041:0x12a},_0xfd5f8e={_0x4c0179:0xe8};function _0x5be83c(_0x411d74,_0x566db4,_0x3e6d2d,_0x3d31c9){return _0x55f0a4(_0x411d74-0x111,_0x566db4-0x125,_0x566db4,_0x3d31c9-0x280);}for(let _0x29a738=_0x4c59cb[_0x584b54(0x1c3,_0x2e5f71._0x13dc01,_0x2e5f71._0x3112cb,_0x2e5f71._0x3676d1)]-0x1;_0x29a738>=0x0;_0x29a738-=0x1){if(_0x4c59cb[_0x29a738][_0x584b54(_0x2e5f71._0x4ef2f4,_0x2e5f71._0x11fe0f,_0x2e5f71._0x49b041,0x1ea)]===_0x2a33ba)return _0x4c59cb[_0x29a738];}function _0x584b54(_0x191bf7,_0x1e6c87,_0x540544,_0x4fbecc){return _0x55f0a4(_0x191bf7-_0xfd5f8e._0x4c0179,_0x1e6c87-0x192,_0x1e6c87,_0x191bf7-0x3d3);}return void 0x0;}function hasTool(_0xef5bf4,_0x23d300){const _0xc66b8d={_0x209d71:0x132,_0x4e6c41:0xcb},_0x13cef0={_0x27b1da:0x17a,_0x2fcc3e:0x79},_0x21cede={_0x52d976:0x11b,_0x5599bd:0x2ea};function _0x4cedc2(_0x3931ad,_0x580f66,_0xf6aa63,_0x15b812){return _0x55f0a4(_0x3931ad-0x172,_0x580f66-_0x21cede._0x52d976,_0x3931ad,_0x15b812-_0x21cede._0x5599bd);}function _0x14896c(_0x549e58,_0x20e159,_0x39759f,_0x3bd60a){return _0x2e041c(_0x549e58-_0x13cef0._0x27b1da,_0x20e159-0x60,_0x20e159- -_0x13cef0._0x2fcc3e,_0x39759f);}return _0xef5bf4[_0x4cedc2(_0xc66b8d._0x209d71,0x153,0x175,_0xc66b8d._0x4e6c41)]['some'](_0x276692=>_0x276692[_0x4cedc2(0x211,0x1cb,0x192,0x158)]===_0x23d300);}function createMockResponse(_0x4b831f,_0x31e293,_0x851dc7,_0x48d0e5){return{'id':_0x4b831f,'content':_0x31e293,'stopReason':_0x851dc7,'usage':_0x48d0e5};}function _0x55f0a4(_0x396e30,_0x412d42,_0x4cc489,_0x923e24){return _0x3920(_0x923e24- -0x37c,_0x4cc489);}var MockModel=class{[_0x55f0a4(-0x27a,-0x2ab,-0x21c,-0x2ac)];[_0x55f0a4(-0x2f3,-0x317,-0x272,-0x2ca)];[_0x2e041c(-0x154,-0x1c5,-0x148,-0x9b)]=[];[_0x55f0a4(-0x1d9,-0x1bf,-0x1ba,-0x18c)];constructor(_0x571357={}){const _0x566f55={_0x25d875:0x318,_0x4aa157:0x34d,_0x3176be:0x30e,_0x57852b:0x1d9,_0x34fae9:0x1bd,_0x5c5ae0:0x152},_0x2f3d72={_0x54f97b:0x19b},_0x12355a={_0xfef192:0xcd};function _0x5f0d99(_0x530fbd,_0x894eb,_0x12aa16,_0x2477e0){return _0x2e041c(_0x530fbd-0x55,_0x894eb-_0x12355a._0xfef192,_0x530fbd- -0x1fa,_0x12aa16);}this[_0x5f0d99(-0x2f9,-0x291,-_0x566f55._0x25d875,-0x343)]=_0x571357[_0x5f0d99(-0x2f9,-0x3ba,-0x288,-0x368)]??'mock',this[_0x5f0d99(-0x317,-0x31c,-_0x566f55._0x4aa157,-_0x566f55._0x3176be)]=_0x571357['maxTokens']??0x4000;function _0x412377(_0x53fbb3,_0x49919f,_0xdfe5f6,_0x22a41d){return _0x2e041c(_0x53fbb3-0x1,_0x49919f-0x49,_0xdfe5f6- -_0x2f3d72._0x54f97b,_0x53fbb3);}this[_0x5f0d99(-_0x566f55._0x57852b,-0x229,-0x194,-0x154)]=_0x571357[_0x5f0d99(-0x1d9,-_0x566f55._0x34fae9,-0x20a,-_0x566f55._0x5c5ae0)]?structuredClone(_0x571357['reasoning']):void 0x0;}async[_0x55f0a4(-0x24e,-0x264,-0x22e,-0x26a)](_0xd49851,_0x36bab9){const _0x33087f={_0x27e209:0x3f5,_0x33b875:0x4f5,_0x477032:0x337,_0x51f466:0x222,_0x4fbb5f:0x385,_0x429ef4:0x2be,_0x293617:0x282,_0x2f7c74:0x229,_0x4fe3e2:0x2f2,_0xec02da:0x2a9,_0x5e89ff:0x2b8,_0x20fdce:0x20d,_0x2cb866:0x4ac,_0xb09f4c:0x400,_0x3c53e5:0x170,_0x4f8bb1:0x1b7,_0x3f7c64:0x2c0,_0x1d712c:0x20b,_0x114455:0x263,_0x21f3f6:0x2ab,_0x4e438d:0x215,_0x289f2f:0x30e,_0x23982f:0x1ca,_0x55246c:0x2a7,_0x28f65c:0x32d,_0x110fd7:0x3b9,_0x448d2d:0x49e,_0xd1abbd:0x45f,_0x147b26:0x2a3,_0x1cc477:0x35c,_0x3f7eba:0x370,_0x3282fd:0x3b2,_0x5098cb:0x1a8,_0x454711:0x1d1,_0x4dd02d:0x2b2,_0x5c4e8a:0x198},_0x449b96={_0x3d0d31:0x1eb},_0x2ab67f={_0x5f4ec5:0x149,_0x10bd83:0x1a,_0xd7677b:0x463},_0x307f8e={...structuredClone(_0xd49851),..._0xd49851[_0x3ca06a(_0x33087f._0x27e209,0x418,_0x33087f._0x33b875,0x484)]===void 0x0&&this['reasoning']!==void 0x0?{'reasoning':structuredClone(this['reasoning'])}:{}};this['requests'][_0x280bb4(-_0x33087f._0x477032,-0x2c6,-_0x33087f._0x51f466,-_0x33087f._0x4fbb5f)](_0x307f8e);const _0x182b66=findLastMessage(_0x307f8e['messages'],_0x280bb4(-_0x33087f._0x429ef4,-_0x33087f._0x293617,-_0x33087f._0x2f7c74,-_0x33087f._0x4fe3e2)),_0x5cad60=getToolResultBlocks(_0x182b66),_0x4c4975=_0x280bb4(-_0x33087f._0xec02da,-_0x33087f._0x5e89ff,-_0x33087f._0x20fdce,-0x36c)+this['requests'][_0x3ca06a(_0x33087f._0x2cb866,0x3b6,0x40c,_0x33087f._0xb09f4c)];function _0x3ca06a(_0x23f4ab,_0x46e7c1,_0x1e05c3,_0x251d9b){return _0x2e041c(_0x23f4ab-_0x2ab67f._0x5f4ec5,_0x46e7c1-_0x2ab67f._0x10bd83,_0x251d9b-_0x2ab67f._0xd7677b,_0x1e05c3);}if(_0x5cad60[_0x280bb4(-_0x33087f._0x3c53e5,-0x1f0,-0x276,-_0x33087f._0x4f8bb1)]>0x0)return createMockResponse(_0x4c4975,[{'type':_0x280bb4(-_0x33087f._0x3f7c64,-0x23e,-_0x33087f._0x1d712c,-_0x33087f._0x114455),'text':'I\x20checked\x20the\x20mocked\x20tool\x20result.\x20'+_0x5cad60[0x0][_0x280bb4(-0x334,-_0x33087f._0x21f3f6,-0x280,-_0x33087f._0x4e438d)]}],'end_turn',{'inputTokens':0x78,'outputTokens':0x28});const _0x996b20=getTextFromMessage(_0x182b66);function _0x280bb4(_0x191b94,_0x4829a6,_0x3bab54,_0xe3efb5){return _0x2e041c(_0x191b94-0x1dd,_0x4829a6-_0x449b96._0x3d0d31,_0x4829a6- -0x18d,_0x191b94);}if(/list .*files|workspace/i[_0x3ca06a(0x392,_0x33087f._0x289f2f,0x431,0x38b)](_0x996b20)&&hasTool(_0x307f8e,_0x280bb4(-0x123,-_0x33087f._0x23982f,-0x243,-0x199)))return createMockResponse(_0x4c4975,[{'type':_0x3ca06a(0x33f,_0x33087f._0x55246c,0x279,_0x33087f._0x28f65c),'id':'tool-call-'+this['requests']['length'],'name':_0x3ca06a(_0x33087f._0x110fd7,0x3c7,_0x33087f._0x448d2d,0x426),'input':{'command':_0x3ca06a(0x407,_0x33087f._0xd1abbd,0x427,0x43c)}}],_0x280bb4(-_0x33087f._0x147b26,-0x2c3,-0x287,-0x31b),{'inputTokens':0x6e,'outputTokens':0x1c});return createMockResponse(_0x4c4975,[{'type':_0x3ca06a(0x3a4,_0x33087f._0x1cc477,_0x33087f._0x3f7eba,_0x33087f._0x3282fd),'text':_0x280bb4(-0x14a,-_0x33087f._0x5098cb,-_0x33087f._0x454711,-0x1fa)+_0x996b20}],_0x280bb4(-_0x33087f._0x4dd02d,-0x22e,-_0x33087f._0x5c4e8a,-0x2a5),{'inputTokens':0x50,'outputTokens':0x12});}};export{ANTHROPIC_MESSAGES_STREAM_SURFACE,ANTHROPIC_MESSAGES_SURFACE,AVAILABLE_CHAT_MODEL_SURFACES,AnthropicModel,ChatModel,GitHubModel,MockModel,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,OPENAI_CHAT_COMPLETIONS_SURFACE,OPENAI_RESPONSES_STREAM_SURFACE,OPENAI_RESPONSES_SURFACE,OPENAI_RESPONSES_WEBSOCKET_SURFACE,OpenAiApiError,OpenAiModel,OpenAiResponsesStreamError,ProviderSessionManager,RoutedModel,StaticModelSurfaceRouter,createAnthropicSurfaces,createDefaultWebSocketFactory,createOpenAiApiError,createOpenAiResponsesStreamParser,createOpenAiResponsesWebSocketEvent,createOpenAiSurfaces,fetchJsonResponse,fetchRawResponse,iterateSseEvents,iterateWebSocketMessages,prepareProviderRequest,resolveApiCredential,resolveSessionBaseUrl,toWebSocketUrl,trimTrailingSlashes,waitForWebSocketOpen};
|
|
1
|
+
(function(_0x1f3a6e,_0x251387){const _0x2da3e8={_0x4d0316:0x144,_0x559496:0x110,_0x39a24c:0x110,_0x2d874c:0x76,_0x4b3094:0x73,_0x3e4679:0x142,_0x38bcce:0x133,_0x50c44f:0x133,_0x8c5d29:0x196,_0x1cc816:0xa0,_0x1b51e2:0xd7,_0x4d0475:0x195,_0x2bffa9:0x5f,_0x11e951:0x7c,_0x1308f9:0x5f,_0x2c5ca1:0x1c9,_0x2152d6:0x26d,_0x5a541c:0x1a1,_0xe8be5f:0x1e7,_0x20623c:0x13a,_0x25962c:0x179,_0x46ee6e:0x19d},_0x3cb152={_0x3bf065:0x335},_0x3226e7=_0x1f3a6e();function _0x4f2818(_0x563128,_0x5d56e5,_0x2cce08,_0x522e08){return _0x6b39(_0x563128- -_0x3cb152._0x3bf065,_0x2cce08);}function _0x2055ed(_0x165c11,_0x47b907,_0x254830,_0x4515e5){return _0x6b39(_0x165c11- -0x382,_0x47b907);}while(!![]){try{const _0x15f9d1=parseInt(_0x4f2818(-0x9f,-_0x2da3e8._0x4d0316,-0x48,-_0x2da3e8._0x559496))/0x1+-parseInt(_0x2055ed(-_0x2da3e8._0x39a24c,-_0x2da3e8._0x2d874c,-0x135,-_0x2da3e8._0x4b3094))/0x2+-parseInt(_0x4f2818(-_0x2da3e8._0x3e4679,-0x1e1,-_0x2da3e8._0x38bcce,-_0x2da3e8._0x50c44f))/0x3*(parseInt(_0x2055ed(-0x1c5,-_0x2da3e8._0x8c5d29,-0x1b4,-0x197))/0x4)+-parseInt(_0x4f2818(-0x72,-_0x2da3e8._0x1cc816,0x30,-0xb6))/0x5*(-parseInt(_0x2055ed(-0x10c,-_0x2da3e8._0x1b51e2,-0xe2,-_0x2da3e8._0x4d0475))/0x6)+parseInt(_0x4f2818(-_0x2da3e8._0x2bffa9,-0x60,-_0x2da3e8._0x11e951,-_0x2da3e8._0x1308f9))/0x7*(parseInt(_0x2055ed(-0x132,-_0x2da3e8._0x2c5ca1,-0x1c3,-0x131))/0x8)+parseInt(_0x2055ed(-0x1f5,-_0x2da3e8._0x2152d6,-_0x2da3e8._0x5a541c,-_0x2da3e8._0xe8be5f))/0x9+parseInt(_0x2055ed(-0x166,-0x1f6,-_0x2da3e8._0x20623c,-0x113))/0xa*(-parseInt(_0x4f2818(-_0x2da3e8._0x25962c,-_0x2da3e8._0x46ee6e,-0x1b0,-0x1de))/0xb);if(_0x15f9d1===_0x251387)break;else _0x3226e7['push'](_0x3226e7['shift']());}catch(_0x3ee950){_0x3226e7['push'](_0x3226e7['shift']());}}}(_0xa677,0x8ca7e));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=_0x4abdca(0x437,0x43b,0x461,0x3eb),ANTHROPIC_MESSAGES_STREAM_SURFACE=_0x3921cc(0x3c6,0x406,0x437,0x371);function parseToolInput(_0x313c06){const _0x5c53bc={_0x524a41:0x344},_0x35a3ab={_0x10375c:0x6a};function _0x3c4975(_0x5b44d5,_0x2cbc1f,_0x62a6f7,_0x7a6c3c){return _0x3921cc(_0x5b44d5-_0x35a3ab._0x10375c,_0x2cbc1f-0x42,_0x5b44d5,_0x7a6c3c-0x100);}try{return JSON[_0x3c4975(_0x5c53bc._0x524a41,0x3ba,0x45c,0x3d0)](_0x313c06);}catch{return _0x313c06;}}function resolveReasoningVisibility(_0x44602e){const _0x49941d={_0xf05863:0x1ba,_0x309e04:0x185,_0x1fd278:0x1bd,_0x4c7872:0x58,_0x378f72:0x150},_0x55aa25={_0x32cb92:0x2c,_0x51e10d:0x1bf};function _0x40b012(_0x53323f,_0x388680,_0x4d5f58,_0xdfd48){return _0x4abdca(_0x53323f-_0x55aa25._0x32cb92,_0x388680- -0x40a,_0x4d5f58-_0x55aa25._0x51e10d,_0x4d5f58);}function _0x3ae379(_0x47969e,_0x1cf9f5,_0x32d37a,_0x4c42bb){return _0x3921cc(_0x47969e-0x1a2,_0x32d37a-0x271,_0x1cf9f5,_0x4c42bb-0x2f);}return _0x44602e['reasoning']?.[_0x40b012(_0x49941d._0xf05863,_0x49941d._0x309e04,_0x49941d._0x1fd278,0x22c)]??_0x40b012(_0x49941d._0x4c7872,0xcb,_0x49941d._0x378f72,0xa6);}function isUserVisibleThinking(_0x3bb009){const _0x41040b={_0x463fbe:0x7e,_0x25b0aa:0x10,_0x1f65b7:0x32d,_0x5e0612:0x3e5,_0x390672:0x4a4,_0x26a260:0x401,_0x16f3b2:0x3b0,_0x4b1567:0x41b,_0x42e65f:0x4b,_0x831c7b:0x1c},_0x1e226f={_0x3a5c52:0x4e8},_0x1e372f={_0x118265:0xd2,_0x3b97cb:0xe6,_0x3e6d55:0x15e};function _0x41c947(_0x235452,_0x1d4237,_0x244adf,_0x218161){return _0x3921cc(_0x235452-_0x1e372f._0x118265,_0x244adf-_0x1e372f._0x3b97cb,_0x1d4237,_0x218161-_0x1e372f._0x3e6d55);}function _0xaea3fe(_0x1ddbec,_0x143f2e,_0x111cc2,_0x3720e2){return _0x4abdca(_0x1ddbec-0x122,_0x3720e2- -_0x1e226f._0x3a5c52,_0x111cc2-0x36,_0x111cc2);}const _0x133420=resolveAnthropicThinkingConfig(_0x3bb009[_0xaea3fe(-_0x41040b._0x463fbe,0x27,0x9a,-_0x41040b._0x25b0aa)]);return _0x133420!==void 0x0&&_0x133420[_0x41c947(_0x41040b._0x1f65b7,0x368,_0x41040b._0x5e0612,_0x41040b._0x390672)]!==_0x41c947(0x312,_0x41040b._0x26a260,_0x41040b._0x16f3b2,_0x41040b._0x4b1567)&&resolveReasoningVisibility(_0x3bb009)===_0xaea3fe(_0x41040b._0x42e65f,_0x41040b._0x831c7b,0xaf,-0x13);}function createAnthropicThinkingBody(_0x2778a4){const _0x3bdec1={_0xff50b0:0x148,_0x177f18:0x11e,_0x4c532a:0x56d,_0x17e203:0x3e,_0x4d7888:0x37,_0x358ad2:0x5,_0x3d676a:0x89,_0x10fad3:0xe8,_0x210c90:0x51,_0x1b64f2:0x82,_0x1412b4:0x7c,_0x882072:0x548,_0x69640:0x5e8,_0x1727dc:0x580,_0x293954:0x585,_0x226449:0x1f9,_0x25a1f8:0x1dc},_0x5871e0={_0x1fa540:0x1cb,_0x33faba:0x5b2,_0x2ba22a:0x0},_0x579101={_0x5987d4:0x6f,_0x26e863:0x153},_0x5622f6=resolveAnthropicThinkingConfig(_0x2778a4['reasoning']);if(!_0x5622f6||_0x5622f6['type']===_0x203eaa(-0x198,-_0x3bdec1._0xff50b0,-_0x3bdec1._0x177f18,-0x1f4))return{};const _0xc68e90=_0x5622f6[_0x121504(0x5c0,0x646,_0x3bdec1._0x4c532a,0x529)]??(isUserVisibleThinking(_0x2778a4)?_0x203eaa(_0x3bdec1._0x17e203,-_0x3bdec1._0x4d7888,-_0x3bdec1._0x358ad2,0x72):_0x203eaa(-0x11b,-_0x3bdec1._0x3d676a,-0x16,-_0x3bdec1._0x10fad3)),_0x3b3fb5=_0x5622f6[_0x121504(0x541,0x480,0x51f,0x4cf)]?{'anthropic-beta':_0x203eaa(-_0x3bdec1._0x210c90,-0x1e,-_0x3bdec1._0x1b64f2,-_0x3bdec1._0x1412b4)}:void 0x0;function _0x121504(_0x47e4d7,_0x3069fb,_0xa9e5d0,_0x50c546){return _0x4abdca(_0x47e4d7-_0x579101._0x5987d4,_0x47e4d7-0x8e,_0xa9e5d0-_0x579101._0x26e863,_0xa9e5d0);}function _0x203eaa(_0xc3fced,_0x2dd177,_0x23f371,_0x18576b){return _0x4abdca(_0xc3fced-_0x5871e0._0x1fa540,_0x2dd177- -_0x5871e0._0x33faba,_0x23f371-_0x5871e0._0x2ba22a,_0x23f371);}if(_0x5622f6[_0x121504(0x52d,_0x3bdec1._0x882072,0x4a9,_0x3bdec1._0x69640)]===_0x121504(0x4bf,0x497,_0x3bdec1._0x1727dc,_0x3bdec1._0x293954))return{..._0x3b3fb5?{'headers':_0x3b3fb5}:{},'thinking':{'type':_0x203eaa(-0x1c9,-0x181,-0x1ef,-_0x3bdec1._0x226449),'budget_tokens':_0x5622f6['budgetTokens'],'display':_0xc68e90}};return{..._0x3b3fb5?{'headers':_0x3b3fb5}:{},'thinking':{'type':'adaptive',..._0x5622f6[_0x203eaa(-_0x3bdec1._0x25a1f8,-0x14a,-0xd4,-0xc3)]?{'effort':_0x5622f6['effort']}:{},'display':_0xc68e90}};}function toAnthropicRequestContent(_0x3fb559){const _0x4140ac={_0x1bc57b:0xb5,_0x12e63f:0xab,_0x5416e9:0x3d,_0x360fdc:0x26e,_0x37ab5d:0x2fd,_0x3de92f:0x405,_0x5ce69f:0x6,_0x3153c7:0xba,_0xffdb8a:0x151,_0x3b2415:0x9c,_0xe6aabf:0x145,_0x3dd6e7:0x2c0,_0x43cb07:0x3ae,_0x1f6916:0x334,_0x5c4707:0x21a,_0x493fba:0x218,_0x38dae9:0x2f5,_0x561bd0:0xf6,_0x53d0fa:0x184,_0x396e6a:0x137,_0x41afc3:0x34a,_0x37f32a:0x397,_0x2942ee:0x394,_0x4dce4f:0x2bb,_0x4fc661:0x232,_0x1d3331:0xb4,_0x476408:0x46,_0x582846:0x157,_0x398185:0xbe,_0x5756cc:0xb9,_0x480702:0xdc,_0x245c1b:0xd0,_0x10ff1e:0x7b,_0x1bc63c:0x24a,_0x37d23d:0x19c},_0x437efb={_0x3bdba0:0x1e3},_0x26db51={_0x2011d1:0x1df,_0xc9866:0x2f};function _0x15a900(_0xd9663,_0x591881,_0x18ebe5,_0x425f4f){return _0x4abdca(_0xd9663-0x6a,_0xd9663- -_0x26db51._0x2011d1,_0x18ebe5-_0x26db51._0xc9866,_0x591881);}if(_0x3fb559[_0x478e95(-_0x4140ac._0x1bc57b,-0x96,-_0x4140ac._0x12e63f,-_0x4140ac._0x5416e9)]===_0x15a900(_0x4140ac._0x360fdc,_0x4140ac._0x37ab5d,0x239,0x262)&&_0x3fb559['providerState']?.[_0x15a900(0x36f,0x3fb,_0x4140ac._0x3de92f,0x344)])return structuredClone(_0x3fb559['providerState'][_0x478e95(_0x4140ac._0x5ce69f,-_0x4140ac._0x3153c7,-_0x4140ac._0xffdb8a,-_0x4140ac._0x3b2415)]);const _0x57d6b1=[];for(const _0x3bd7bf of normalizeContent(_0x3fb559[_0x478e95(-0x17a,-_0x4140ac._0xe6aabf,-0x18c,-0x1f3)])){if(_0x3bd7bf[_0x15a900(_0x4140ac._0x3dd6e7,0x243,0x2d7,0x228)]===_0x15a900(_0x4140ac._0x43cb07,0x393,0x385,_0x4140ac._0x1f6916))continue;if(_0x3bd7bf[_0x478e95(-_0x4140ac._0x5c4707,-0x169,-_0x4140ac._0x493fba,-0x193)]===_0x15a900(0x2c1,0x322,0x30b,_0x4140ac._0x38dae9)){_0x57d6b1[_0x478e95(-_0x4140ac._0x561bd0,-_0x4140ac._0x53d0fa,-_0x4140ac._0x396e6a,-0x244)]({'type':_0x15a900(0x397,_0x4140ac._0x41afc3,0x395,0x3e8),'thinking':_0x3bd7bf[_0x15a900(_0x4140ac._0x37f32a,0x386,_0x4140ac._0x2942ee,0x410)],'signature':_0x3bd7bf[_0x15a900(_0x4140ac._0x4dce4f,_0x4140ac._0x4fc661,0x32c,0x232)]});continue;}if(_0x3bd7bf['type']===_0x478e95(-0x162,-_0x4140ac._0x1d3331,-_0x4140ac._0x476408,-0x93)){_0x57d6b1[_0x478e95(-0x219,-_0x4140ac._0x53d0fa,-0x170,-_0x4140ac._0x582846)]({'type':_0x478e95(-0x53,-_0x4140ac._0x398185,-_0x4140ac._0x5756cc,-_0x4140ac._0x480702),'data':_0x3bd7bf[_0x478e95(0x40,-0x80,-_0x4140ac._0x245c1b,-_0x4140ac._0x10ff1e)]});continue;}_0x57d6b1[_0x478e95(-_0x4140ac._0x1bc63c,-0x184,-0x1a0,-_0x4140ac._0x37d23d)](structuredClone(_0x3bd7bf));}function _0x478e95(_0x52bb92,_0x3ca7e6,_0x5e575d,_0x314333){return _0x4abdca(_0x52bb92-_0x437efb._0x3bdba0,_0x3ca7e6- -0x608,_0x5e575d-0x135,_0x314333);}return _0x57d6b1;}function createAnthropicRequest(_0xe1e582,_0x2f0ff8){const _0x1dbf69={_0x118203:0xbf,_0x344dc6:0x29,_0x513aee:0x37,_0x35cf96:0x189,_0x39c7ad:0x11d,_0x5a69c5:0x11,_0x98d211:0x278,_0x322626:0x240,_0x305463:0x2cb,_0x2883d4:0x20,_0x4f68b0:0x0},_0x4dadcc={_0x1a3877:0xde,_0x176f37:0x100},_0x5568ba={_0x5006c7:0x1ef},_0x1eec90={_0x1504b3:0xff,_0x3d51de:0x9a},_0x52fc7f=toProviderModelRequest(_0xe1e582);function _0x37d232(_0x4123cb,_0x59a05f,_0xd65159,_0x4d57df){return _0x3921cc(_0x4123cb-_0x1eec90._0x1504b3,_0x4123cb- -0x15e,_0x59a05f,_0x4d57df-_0x1eec90._0x3d51de);}const _0x3c271f=createAnthropicThinkingBody(_0xe1e582);function _0x131f83(_0x3289f6,_0x520f4b,_0x22981f,_0x26421e){return _0x3921cc(_0x3289f6-0x89,_0x22981f- -0x337,_0x26421e,_0x26421e-0x5c);}return{'accept':_0x2f0ff8?_0x131f83(-0x1b,0x3,-0x9d,-_0x1dbf69._0x118203):_0x131f83(-0x61,_0x1dbf69._0x344dc6,_0x1dbf69._0x513aee,0x46),'body':{..._0x52fc7f,'messages':_0xe1e582[_0x37d232(_0x1dbf69._0x35cf96,_0x1dbf69._0x39c7ad,0x206,0x1e5)]['map'](_0x2d1f0f=>{function _0x4e64bf(_0x54c7bf,_0x2b5cf0,_0x247ec4,_0x5654d0){return _0x131f83(_0x54c7bf-_0x5568ba._0x5006c7,_0x2b5cf0-0x1ac,_0x2b5cf0- -0x191,_0x5654d0);}return{'role':_0x2d1f0f[_0x4e64bf(-_0x4dadcc._0x1a3877,-0xf6,-0xd2,-_0x4dadcc._0x176f37)],'content':toAnthropicRequestContent(_0x2d1f0f)};}),..._0x3c271f[_0x131f83(0x9e,0xa0,0x9f,-_0x1dbf69._0x5a69c5)]?{'thinking':_0x3c271f[_0x37d232(_0x1dbf69._0x98d211,0x1c5,0x239,0x1c4)]}:{},..._0x2f0ff8?{'stream':!![]}:{}},..._0x3c271f[_0x37d232(0x26c,0x1ca,_0x1dbf69._0x322626,_0x1dbf69._0x305463)]?{'headers':_0x3c271f['headers']}:{},'path':_0x131f83(-0xc1,-_0x1dbf69._0x2883d4,-0x8,_0x1dbf69._0x4f68b0)};}function parseAnthropicResponse(_0x34951f,_0x23edaa){const _0x401729={_0x8a063f:0x18c,_0x14f632:0x1d3,_0x55a9f7:0x106,_0x529043:0x160,_0x33a9e3:0x1c3,_0x234418:0x1ec,_0x4e822b:0x1a7,_0x50db21:0x98,_0x39893c:0x111,_0x245e5c:0xe7,_0x4a18af:0x105,_0x3bf02c:0x1ad,_0x1cace7:0x5f4,_0x52fad1:0x55c,_0x30c4a5:0x606,_0x8fa8aa:0x64c,_0x4475f9:0x580,_0x48b6af:0x166,_0x486862:0x69,_0x5aac47:0xa3,_0xac0b57:0x176,_0x52ca1e:0x1a8,_0x3ed9dd:0x63d,_0x2690cd:0x60c,_0x518c20:0x61a,_0x5ee689:0x60f,_0x226136:0x656,_0x344a33:0x160,_0x5382a1:0x162,_0x2f1312:0x1c3,_0x5eea9c:0x135,_0x282433:0x42,_0x47033c:0x214,_0x59756f:0x15f,_0x625a41:0x1f2,_0x2ea688:0x19d,_0x126f60:0x576,_0x4948f4:0x528,_0x3131f4:0x18a,_0x44ab25:0x102,_0x9c169c:0x18d,_0x28b9fb:0x4d2,_0x363849:0x5d1,_0x47b2e8:0x60f,_0x323ebb:0x5fa,_0x345c56:0x583,_0x7c7e43:0x6c4,_0x2d2df7:0xde,_0x3d26b4:0x0,_0x14f959:0xa7,_0x4117b7:0x8c,_0x143a57:0x15b,_0x1e6483:0x252},_0x3b32f6={_0x4ffed2:0x19a},_0x15a0d3={_0x4eda83:0xf8,_0x1e9a7d:0x647,_0x2fde24:0xc2},_0x432a11=[],_0x1ffe82=_0x34951f[_0xf76870(-0x102,-_0x401729._0x8a063f,-_0x401729._0x14f632,-0x184)]??[];function _0xf76870(_0x21da6b,_0x447660,_0x2be69f,_0x5ea324){return _0x4abdca(_0x21da6b-_0x15a0d3._0x4eda83,_0x5ea324- -_0x15a0d3._0x1e9a7d,_0x2be69f-_0x15a0d3._0x2fde24,_0x2be69f);}function _0x29832a(_0x36b30f,_0x1e1493,_0x4f10fd,_0x4902b5){return _0x4abdca(_0x36b30f-0xd2,_0x36b30f-0xbc,_0x4f10fd-_0x3b32f6._0x4ffed2,_0x4f10fd);}let _0x297162=![];for(const _0x507003 of _0x1ffe82){if(_0x507003['type']===_0xf76870(-_0x401729._0x55a9f7,-0x16e,-0xb9,-0xd1)){_0x297162=!![];isUserVisibleThinking(_0x23edaa)&&_0x432a11[_0xf76870(-_0x401729._0x529043,-0x279,-0x132,-_0x401729._0x33a9e3)]({'type':_0xf76870(-_0x401729._0x234418,-0x100,-0x17d,-_0x401729._0x4e822b),'thinking':_0x507003[_0xf76870(-0x53,-_0x401729._0x50db21,-_0x401729._0x39893c,-0xd1)],'signature':_0x507003[_0xf76870(-0x188,-_0x401729._0x245e5c,-_0x401729._0x4a18af,-_0x401729._0x3bf02c)]});continue;}if(_0x507003[_0x29832a(0x55b,_0x401729._0x1cace7,_0x401729._0x52fad1,0x5c3)]===_0x29832a(_0x401729._0x30c4a5,_0x401729._0x8fa8aa,_0x401729._0x4475f9,0x693)){_0x297162=!![];isUserVisibleThinking(_0x23edaa)&&_0x432a11[_0x29832a(0x540,0x59f,0x5c2,0x588)]({'type':_0xf76870(-0x2e,-0x6e,-_0x401729._0x48b6af,-0xf3),'data':_0x507003[_0xf76870(-_0x401729._0x486862,-_0x401729._0x5aac47,-0xaf,-0xbf)]});continue;}if(_0x507003[_0xf76870(-0x1dd,-0x17d,-_0x401729._0xac0b57,-_0x401729._0x52ca1e)]===_0x29832a(_0x401729._0x3ed9dd,_0x401729._0x3ed9dd,0x64a,_0x401729._0x2690cd)){_0x507003[_0x29832a(0x63d,0x630,0x5cc,0x613)][_0x29832a(_0x401729._0x518c20,0x590,_0x401729._0x5ee689,_0x401729._0x226136)]>0x0&&_0x432a11['push'](structuredClone(_0x507003));continue;}_0x432a11[_0xf76870(-0x26d,-_0x401729._0x344a33,-_0x401729._0x5382a1,-_0x401729._0x2f1312)](structuredClone(_0x507003));}return{'id':_0x34951f['id']??_0xf76870(-0xf5,-_0x401729._0x5eea9c,-_0x401729._0x282433,-0xdb)+Date[_0xf76870(-0x15c,-0x18d,-_0x401729._0x47033c,-_0x401729._0x59756f)](),'content':_0x432a11,'stopReason':_0x432a11[_0xf76870(-0x20c,-0x1c9,-_0x401729._0x625a41,-_0x401729._0x2ea688)](_0x14e001=>_0x14e001['type']===_0xf76870(-0x19d,-0x1bc,-0x144,-0x18d))?_0x29832a(_0x401729._0x126f60,_0x401729._0x4948f4,0x4fd,0x51f):_0x34951f['stop_reason']===_0xf76870(-0x1c4,-_0x401729._0x3131f4,-_0x401729._0x44ab25,-_0x401729._0x9c169c)?'tool_use':_0x29832a(0x54e,_0x401729._0x28b9fb,_0x401729._0x363849,0x5a1),'usage':{'inputTokens':_0x34951f[_0x29832a(_0x401729._0x47b2e8,_0x401729._0x323ebb,_0x401729._0x345c56,_0x401729._0x7c7e43)]?.[_0xf76870(-_0x401729._0x2d2df7,_0x401729._0x3d26b4,-0xab,-_0x401729._0x14f959)]??0x0,'outputTokens':_0x34951f[_0xf76870(-0x122,-0x10e,-_0x401729._0x4117b7,-0xf4)]?.[_0xf76870(-_0x401729._0x143a57,-0x1c0,-_0x401729._0x1e6483,-0x1af)]??0x0},..._0x297162?{'providerState':{'anthropicAssistantContent':structuredClone(_0x1ffe82)}}:{}};}var AnthropicMessagesStreamParser=class{['blocks']=new Map();['inputTokens']=0x0;['messageId']=_0x3921cc(0x388,0x3cc,0x46f,0x392)+Date['now']();[_0x4abdca(0x591,0x4d4,0x551,0x4e3)]=0x0;[_0x3921cc(0x21d,0x28a,0x322,0x1f6)];['stopReason']='end_turn';constructor(_0x2e724c){const _0x4c929a={_0x220148:0x51,_0x1dccd6:0x48},_0x5170ca={_0x47f3d7:0xb0,_0x4177d0:0x47b,_0x3b2098:0x19d};function _0x2d1b4e(_0x5edea2,_0x4400d5,_0x3944c1,_0x2f4248){return _0x4abdca(_0x5edea2-_0x5170ca._0x47f3d7,_0x4400d5- -_0x5170ca._0x4177d0,_0x3944c1-_0x5170ca._0x3b2098,_0x2f4248);}this[_0x2d1b4e(-0x18,-_0x4c929a._0x220148,-0x6f,-_0x4c929a._0x1dccd6)]=_0x2e724c;}[_0x4abdca(0x429,0x4b8,0x416,0x46b)](_0x260b97){const _0x525c81={_0x31c623:0x536,_0x298f6a:0x478,_0x31339f:0x48a,_0x16ffae:0x73,_0x3f6771:0x7a,_0x20a607:0x105,_0xceb59b:0x9b,_0x34c800:0x46,_0x408f08:0x40,_0x163ec7:0x55a,_0x581cee:0x5a2,_0x43d32b:0xbc,_0x6d6068:0x31,_0x4e041a:0x7,_0x1dac41:0x26,_0x1cbefb:0x6,_0x3fede4:0x4cc,_0x1c21a4:0x73,_0x567fa3:0x71,_0x2f6d56:0x692,_0x4d9bad:0x621,_0x4cc913:0x531,_0x585504:0x542,_0xb7053f:0x142,_0x37292b:0x8e,_0x5df1dd:0x2b,_0x5a187f:0x117,_0x272e3d:0x7a,_0x77cb50:0x16,_0x295f19:0x52d,_0x40c6b9:0x4c9,_0x5723a1:0x30,_0x33cc5b:0x1a,_0x5254f0:0xca,_0x3ad1b0:0x4f,_0x4d5c68:0x545,_0x4933f7:0x5ce,_0x511fc7:0x6f1,_0xe02b33:0x90,_0x32fa39:0x5e,_0x71b2a3:0x63c,_0x37f12:0x571,_0x2d8208:0x2f,_0xe306c8:0x537,_0x561233:0x54b,_0x4a1051:0x44a,_0x1a9ca2:0x535,_0x50f329:0x601,_0x2fa3ea:0x596,_0xdae83b:0x10b,_0x1d7c23:0x7f,_0x443533:0xf7,_0x3c8a1b:0x40,_0x45277b:0x19,_0x142d67:0x7f,_0x70707f:0x11f,_0x23d101:0x557,_0x204b0c:0x655,_0x1c30a1:0x110,_0x1f59c2:0x68,_0x385858:0x56e,_0xe91104:0x5ca,_0x2c6005:0x64b,_0xcce5d4:0x617,_0x1de177:0x5d8,_0x542641:0x96,_0x25fd58:0x92,_0x2fdfaf:0x4a1,_0x128459:0x47c,_0x4f9a16:0x47f,_0x21cce2:0x4da,_0x3788a5:0x4d2,_0x2cf5eb:0xad,_0xdbc7a3:0x60c,_0xdb312:0x2a,_0x4d6c74:0x77,_0x2597f4:0x6bd,_0x48271d:0x5ab,_0x709a49:0x127,_0x8aeb37:0x68,_0x4ae191:0x60c,_0x256993:0x5d1,_0x5dec3f:0x575,_0x479932:0x58c,_0x219bc7:0x521,_0x1c6e67:0x41,_0x7c5ad5:0xe5,_0x3afaf2:0x518,_0x18e8e1:0x4e1,_0x2a5706:0x498,_0x264244:0x1e,_0x2d426c:0x528,_0x140bef:0x39,_0x1f0213:0x24,_0x38c7e0:0x567,_0xe80e8a:0x4b7,_0x3e9d22:0x57b,_0x17261f:0x54f,_0x269a43:0xf6,_0x15a588:0x54,_0x51a988:0x100,_0x176bb6:0xb6,_0x1c31d3:0x641,_0x10500f:0x568,_0xebae20:0x6ce,_0x315f5a:0x6a,_0x5c4075:0x72,_0x28c9aa:0x52a,_0x5a2c4b:0x563,_0x4f7a61:0x4fc,_0x4e5dea:0xed,_0x2b02ef:0xb2,_0x1b2f98:0x1f,_0x39da83:0x13b,_0x3cb299:0x73,_0x594ddf:0xdb,_0x3a89e3:0x5f2,_0x3ba887:0x5fd,_0x5760e7:0x56a,_0x14820e:0x4e,_0x124692:0x60,_0x3a5a11:0x5e,_0x1c9dcf:0x4c,_0x33a5f7:0x127,_0x36c55f:0x87,_0x3d2963:0x2a,_0x6f38ea:0x5bb,_0x28ac4a:0x5b0,_0x631833:0x61b,_0x4fe110:0x569,_0x3892b8:0x8b,_0x3ed017:0x5d,_0x519743:0x5f,_0x13e678:0x28,_0x2c914e:0x1a6,_0x2eb5c5:0xef,_0x186562:0x74,_0x30489b:0x81,_0x3c3382:0x12,_0x12bc68:0x44,_0x4b48dc:0x490,_0x189b5d:0xce,_0x38b544:0x13a,_0x26751b:0x9,_0x107834:0x61b,_0x358685:0x6dd,_0x352a1a:0x6e0,_0x5df2:0x67e,_0x5284fb:0x503,_0x18048b:0x525,_0x5fdb5f:0x1b1,_0x2c28df:0x66,_0x5e534b:0x642,_0x49f3f5:0x9d,_0x3a95c:0xa5,_0x18aa82:0x7,_0x27c797:0x81,_0x5ac655:0x575,_0x5601c5:0x5a1,_0x413adf:0x6a8,_0x531d47:0x5a9,_0x283a2e:0x3e,_0xef1be1:0x16,_0x5852ca:0x99,_0x283f94:0x53,_0x502d88:0x482,_0x371903:0x4a8,_0x26dc79:0x10e,_0x4c9c22:0x5d,_0x525326:0x1a,_0x1b8264:0x2e},_0x5dd921={_0x7f0b77:0x46},_0x3cde05={_0x2bdc29:0x114,_0x43f6ac:0x8b},_0xf276aa=_0x260b97[_0x681ff9(_0x525c81._0x31c623,0x4db,_0x525c81._0x298f6a,0x5ee)]('\x0a'),_0x321eed=_0xf276aa[_0x681ff9(0x51b,_0x525c81._0x31339f,0x538,0x59e)](_0xc4d1d8=>_0xc4d1d8[_0x45ce9f(-0x51,0x25,0x1d,0x88)](_0x45ce9f(0x122,0x133,0x84,0xc7)))?.[_0x45ce9f(_0x525c81._0x16ffae,0x2a,0x52,_0x525c81._0x3f6771)](0x6)['trim'](),_0x49ea56=_0xf276aa['filter'](_0x3e9e36=>_0x3e9e36[_0x681ff9(0x5c1,0x668,0x593,0x5f3)](_0x45ce9f(-0x27,-0x48,-0x2b,-0x94)))['map'](_0x598ec8=>_0x598ec8[_0x45ce9f(-0x64,0x15,0x52,0x10d)](0x5)[_0x681ff9(0x5e0,0x5d9,0x635,0x552)]())[_0x45ce9f(-_0x525c81._0x20a607,-0x101,-_0x525c81._0xceb59b,-0xce)]('\x0a')[_0x45ce9f(0x1c,0xe7,_0x525c81._0x34c800,-_0x525c81._0x408f08)]();if(_0x49ea56[_0x681ff9(0x5e9,_0x525c81._0x163ec7,0x57e,_0x525c81._0x581cee)]===0x0||_0x49ea56===_0x45ce9f(0xee,0xdb,0x98,_0x525c81._0x43d32b))return[];function _0x681ff9(_0x13c76f,_0x474dcb,_0x124165,_0x25e87c){return _0x4abdca(_0x13c76f-_0x3cde05._0x2bdc29,_0x13c76f-_0x3cde05._0x43f6ac,_0x124165-0xec,_0x474dcb);}const _0x1ed4c0=JSON['parse'](_0x49ea56);switch(_0x321eed){case _0x45ce9f(_0x525c81._0x6d6068,-_0x525c81._0x4e041a,-_0x525c81._0x1dac41,-_0x525c81._0x1cbefb):{const _0x153e56=_0x1ed4c0['message'];this['messageId']=_0x153e56?.['id']??this[_0x681ff9(0x553,0x5cc,_0x525c81._0x3fede4,0x5da)],this[_0x45ce9f(-_0x525c81._0x1c21a4,-0xe0,-_0x525c81._0x567fa3,-_0x525c81._0x567fa3)]=_0x153e56?.['usage']?.['input_tokens']??this['inputTokens'];break;}case _0x681ff9(0x5dc,_0x525c81._0x2f6d56,_0x525c81._0x4d9bad,_0x525c81._0x4cc913):{const _0x4ab5cb=typeof _0x1ed4c0[_0x681ff9(0x518,_0x525c81._0x585504,0x4ed,0x530)]===_0x45ce9f(-0x2d,0xe9,0x91,_0x525c81._0xb7053f)?_0x1ed4c0['index']:0x0,_0x14f755=_0x1ed4c0[_0x45ce9f(0x6b,-_0x525c81._0x37292b,_0x525c81._0x5df1dd,-0x15)];if(_0x14f755?.[_0x45ce9f(-_0x525c81._0x5a187f,-0xd8,-_0x525c81._0x272e3d,_0x525c81._0x77cb50)]===_0x681ff9(0x545,0x5af,_0x525c81._0x295f19,_0x525c81._0x40c6b9)&&_0x14f755['id']&&_0x14f755['name'])return this[_0x45ce9f(-0x115,-_0x525c81._0x5723a1,-0x6d,_0x525c81._0x33cc5b)][_0x45ce9f(-0x3a,-0x96,-_0x525c81._0x5254f0,-_0x525c81._0x3ad1b0)](_0x4ab5cb,{'id':_0x14f755['id'],'index':_0x4ab5cb,'inputJson':JSON['stringify'](_0x14f755['input']??{}),'kind':_0x681ff9(_0x525c81._0x4d5c68,0x586,0x5a9,_0x525c81._0x4933f7),'name':_0x14f755[_0x681ff9(0x634,0x5d1,_0x525c81._0x511fc7,0x6c8)]}),[{'type':_0x45ce9f(_0x525c81._0xe02b33,0x70,_0x525c81._0x32fa39,0x0),'id':_0x14f755['id'],'index':_0x4ab5cb,'name':_0x14f755[_0x681ff9(0x634,_0x525c81._0x71b2a3,0x6c2,_0x525c81._0x37f12)]}];if(_0x14f755?.['type']===_0x45ce9f(-0x58,0x11a,0x5d,-_0x525c81._0x2d8208)){this[_0x681ff9(_0x525c81._0xe306c8,0x4c7,0x5a7,_0x525c81._0x561233)][_0x681ff9(0x4da,0x4c9,_0x525c81._0x4a1051,_0x525c81._0x1a9ca2)](_0x4ab5cb,{'index':_0x4ab5cb,'kind':_0x681ff9(_0x525c81._0x50f329,_0x525c81._0x2fa3ea,0x58f,0x5da),'signature':typeof _0x14f755[_0x45ce9f(-_0x525c81._0xdae83b,-0x59,-_0x525c81._0x1d7c23,-_0x525c81._0x443533)]==='string'?_0x14f755[_0x45ce9f(_0x525c81._0x3c8a1b,_0x525c81._0x45277b,-_0x525c81._0x142d67,-_0x525c81._0x70707f)]:'','thinking':typeof _0x14f755[_0x681ff9(0x60c,0x6d0,0x557,_0x525c81._0x23d101)]===_0x681ff9(0x61b,0x696,0x6bd,_0x525c81._0x204b0c)?_0x14f755[_0x45ce9f(_0x525c81._0x1c30a1,0xe1,_0x525c81._0x1f59c2,-0x1b)]:typeof _0x14f755[_0x681ff9(0x601,_0x525c81._0x385858,0x6b6,0x654)]===_0x681ff9(0x61b,_0x525c81._0xe91104,_0x525c81._0x2c6005,0x6c1)?String(_0x14f755[_0x681ff9(_0x525c81._0x50f329,0x647,_0x525c81._0xcce5d4,_0x525c81._0x1de177)]):''});break;}if(_0x14f755?.[_0x45ce9f(0x1f,-0xff,-_0x525c81._0x3f6771,-_0x525c81._0x542641)]===_0x45ce9f(-0x86,-_0x525c81._0x25fd58,_0x525c81._0x6d6068,-0x36)){this[_0x681ff9(0x537,_0x525c81._0x2fdfaf,_0x525c81._0x128459,_0x525c81._0x4f9a16)][_0x681ff9(_0x525c81._0x21cce2,0x546,0x4e8,_0x525c81._0x3788a5)](_0x4ab5cb,{'index':_0x4ab5cb,'kind':_0x45ce9f(0x60,_0x525c81._0x2cf5eb,0x31,-0x76),'data':typeof _0x14f755[_0x681ff9(0x613,0x63d,0x66c,_0x525c81._0xdbc7a3)]===_0x45ce9f(-_0x525c81._0xdb312,0xb4,_0x525c81._0x4d6c74,0xd7)?String(_0x14f755[_0x681ff9(0x613,0x631,_0x525c81._0x2597f4,_0x525c81._0x48271d)]):''});break;}this[_0x681ff9(_0x525c81._0xe306c8,0x4b6,0x5d1,0x4fd)]['set'](_0x4ab5cb,{'index':_0x4ab5cb,'kind':_0x45ce9f(_0x525c81._0x709a49,0xe2,_0x525c81._0x8aeb37,0x116),'text':_0x14f755?.[_0x681ff9(_0x525c81._0x4ae191,_0x525c81._0x256993,0x69b,_0x525c81._0x5dec3f)]??''});break;}case'content_block_delta':{const _0x58295c=typeof _0x1ed4c0[_0x681ff9(0x518,0x4f9,_0x525c81._0x479932,_0x525c81._0x219bc7)]===_0x45ce9f(_0x525c81._0x1c6e67,0x49,0x91,_0x525c81._0x7c5ad5)?_0x1ed4c0[_0x681ff9(_0x525c81._0x3afaf2,_0x525c81._0x18e8e1,_0x525c81._0x2a5706,0x593)]:0x0,_0x2f42b0=this[_0x45ce9f(-0xef,-0x101,-0x6d,_0x525c81._0x264244)][_0x681ff9(0x4eb,_0x525c81._0x2d426c,0x5a5,0x54c)](_0x58295c),_0x25e0a0=_0x1ed4c0[_0x45ce9f(0x31,-0xac,-_0x525c81._0x140bef,_0x525c81._0x1f0213)];if(!_0x2f42b0||!_0x25e0a0?.['type'])break;if(_0x25e0a0['type']===_0x681ff9(0x4f0,0x437,0x47e,_0x525c81._0x38c7e0)&&_0x2f42b0[_0x681ff9(_0x525c81._0xe80e8a,0x431,_0x525c81._0x3e9d22,_0x525c81._0x17261f)]===_0x45ce9f(0xa0,_0x525c81._0x269a43,_0x525c81._0x1f59c2,0x96)&&typeof _0x25e0a0[_0x45ce9f(_0x525c81._0x32fa39,-_0x525c81._0x15a588,0x68,_0x525c81._0x77cb50)]===_0x45ce9f(_0x525c81._0x51a988,_0x525c81._0x176bb6,0x77,0xd4))return _0x2f42b0[_0x681ff9(0x60c,0x5e7,_0x525c81._0x1c31d3,_0x525c81._0x10500f)]+=_0x25e0a0[_0x681ff9(0x60c,_0x525c81._0xebae20,0x6cc,0x5a5)],[{'type':_0x45ce9f(-0x27,_0x525c81._0x315f5a,0x6d,0x11),'index':_0x58295c,'text':_0x25e0a0[_0x45ce9f(_0x525c81._0x5c4075,0xf2,0x68,-0xa)]}];if(_0x25e0a0[_0x681ff9(_0x525c81._0x28c9aa,0x585,0x5b6,_0x525c81._0x5a2c4b)]===_0x681ff9(0x4e3,0x599,0x465,_0x525c81._0x4f7a61)&&_0x2f42b0[_0x45ce9f(-0xe7,-0x10c,-_0x525c81._0x4e5dea,-_0x525c81._0x2b02ef)]==='tool_use'&&typeof _0x25e0a0[_0x45ce9f(-_0x525c81._0x1b2f98,-_0x525c81._0x39da83,-0x9a,-_0x525c81._0x3cb299)]===_0x45ce9f(0x10c,_0x525c81._0x594ddf,0x77,0xf1))return _0x2f42b0[_0x681ff9(_0x525c81._0x3a89e3,0x613,_0x525c81._0x3ba887,_0x525c81._0x5760e7)]==='{}'&&(_0x2f42b0[_0x45ce9f(0x11,0x8b,_0x525c81._0x14820e,0x83)]=''),_0x2f42b0[_0x45ce9f(-0x51,0xc0,0x4e,-_0x525c81._0x124692)]+=_0x25e0a0['partial_json'],[{'type':_0x45ce9f(-0x7,0x11a,_0x525c81._0x3a5a11,0x10c),'id':_0x2f42b0['id'],'index':_0x58295c,'inputDelta':_0x25e0a0[_0x45ce9f(-_0x525c81._0x1c9dcf,-0x120,-0x9a,-_0x525c81._0x33a5f7)]}];if(_0x25e0a0[_0x45ce9f(0x3e,-0xda,-0x7a,-_0x525c81._0x36c55f)]==='thinking_delta'&&_0x2f42b0['kind']===_0x45ce9f(_0x525c81._0x3d2963,0x116,0x5d,_0x525c81._0x264244)){const _0x20ee2e=typeof _0x25e0a0[_0x681ff9(0x601,_0x525c81._0x6f38ea,_0x525c81._0x28ac4a,0x59a)]===_0x681ff9(_0x525c81._0x631833,_0x525c81._0x4fe110,0x6a7,0x663)?String(_0x25e0a0[_0x45ce9f(_0x525c81._0x3892b8,-0x43,_0x525c81._0x3ed017,0x0)]):'';if(_0x20ee2e[_0x45ce9f(_0x525c81._0x519743,_0x525c81._0x13e678,0x45,0x14)]>0x0){_0x2f42b0[_0x681ff9(0x601,0x550,0x690,0x545)]+=_0x20ee2e;if(isUserVisibleThinking(this[_0x45ce9f(-0x130,-_0x525c81._0x2c914e,-_0x525c81._0x2eb5c5,-_0x525c81._0x186562)]))return[{'type':_0x45ce9f(_0x525c81._0x30489b,0x1,-_0x525c81._0x3c3382,-_0x525c81._0x12bc68),'index':_0x58295c,'thinking':_0x20ee2e}];}}if(_0x25e0a0['type']==='signature_delta'&&_0x2f42b0[_0x681ff9(0x4b7,0x4b1,0x3f5,_0x525c81._0x4b48dc)]==='thinking'){const _0x3dec81=typeof _0x25e0a0[_0x45ce9f(-_0x525c81._0x189b5d,-_0x525c81._0x38b544,-0x7f,-_0x525c81._0x26751b)]===_0x681ff9(_0x525c81._0x107834,_0x525c81._0x358685,0x656,_0x525c81._0x352a1a)?String(_0x25e0a0['signature']):'';if(_0x3dec81[_0x681ff9(0x5e9,_0x525c81._0x5df2,0x5c4,0x613)]>0x0){_0x2f42b0[_0x681ff9(0x525,0x524,_0x525c81._0x5284fb,_0x525c81._0x18048b)]=_0x3dec81;if(isUserVisibleThinking(this[_0x45ce9f(-_0x525c81._0x5fdb5f,-0xee,-0xef,-_0x525c81._0x2c28df)]))return[{'type':_0x681ff9(_0x525c81._0xcce5d4,0x6ad,0x65b,_0x525c81._0x5e534b),'index':_0x58295c,'signature':_0x3dec81}];}}break;}case'message_delta':{const _0x3e12ea=_0x1ed4c0['delta'],_0x27f1d3=_0x1ed4c0[_0x45ce9f(_0x525c81._0x49f3f5,-0x71,0x3a,_0x525c81._0x3a95c)];this['outputTokens']=_0x27f1d3?.[_0x45ce9f(-0x4e,-_0x525c81._0x18aa82,-_0x525c81._0x27c797,-0x60)]??this[_0x681ff9(0x55f,_0x525c81._0x5ac655,0x5e9,_0x525c81._0x5601c5)],this[_0x681ff9(_0x525c81._0x4d9bad,_0x525c81._0x413adf,0x5f4,_0x525c81._0x531d47)]=_0x3e12ea?.[_0x45ce9f(-_0x525c81._0x283a2e,-_0x525c81._0xef1be1,-0xd5,-_0x525c81._0x5852ca)]==='tool_use'?_0x45ce9f(0x18,_0x525c81._0x283f94,-0x5f,-0x59):_0x681ff9(0x51d,0x578,0x5a9,_0x525c81._0x502d88);break;}case _0x681ff9(0x4b3,0x4e4,0x505,_0x525c81._0x371903):{const _0x38fe69=_0x1ed4c0[_0x45ce9f(-_0x525c81._0x26dc79,-_0x525c81._0x33a5f7,-0xf1,-0x49)];throw new Error(_0x38fe69?.[_0x45ce9f(-_0x525c81._0x4c9c22,_0x525c81._0x525326,-_0x525c81._0x1b8264,-0xd1)]??'Anthropic\x20stream\x20failed');}}function _0x45ce9f(_0x156c99,_0x25a75c,_0x233342,_0xa7600d){return _0x3921cc(_0x156c99-0x3b,_0x233342- -0x379,_0x156c99,_0xa7600d-_0x5dd921._0x7f0b77);}return[];}[_0x3921cc(0x3be,0x327,0x32a,0x280)](){const _0x30f39e={_0x391214:0x125,_0xdc438a:0x138,_0x25d144:0x679,_0x5b4975:0x5cc,_0x54ed9e:0x12e,_0x576775:0x196,_0x30cc33:0x550,_0x9eb7bd:0x544,_0x16aa50:0x75d,_0x39fd8a:0x699,_0x34358a:0x1ec,_0x129417:0x20d,_0x211291:0x6b3,_0x5945d6:0x62b,_0x327c24:0x751,_0x56df94:0x28d,_0x306f24:0x185,_0xf32a6b:0x21e,_0x289430:0x202,_0x3d5742:0x6bc,_0x1bb564:0x6b0,_0x3cdced:0x68e,_0x4e0173:0x646,_0x4870d8:0x555,_0x262e89:0x5b2,_0x3e92ba:0x280,_0x36748f:0x1d6,_0x2f05df:0x51d,_0x553a9d:0x659,_0x4e114b:0x649,_0x58aed5:0x662,_0x226400:0x6d5,_0x4aa400:0x6bb,_0x25ee1c:0x6a0,_0x3afe1f:0x54f,_0x51d7b6:0x557,_0x571e32:0x59c,_0x4378ec:0x63c,_0x1fb80c:0x5d2,_0x3bcc3e:0x17c,_0x355d17:0xcf,_0x4eb2ba:0x177,_0x39e1e7:0xb4,_0x153249:0x177,_0x4b7806:0x141,_0x3a2e45:0x90,_0x3f31af:0x134,_0x1fa4f1:0x600,_0x1c7597:0x5f6,_0x3d4fa9:0x529,_0x236c43:0x603},_0x4bd285={_0x7eff02:0x179,_0x413aa5:0x374,_0x34e1bd:0x19e},_0x218dad={_0x57ffc7:0x169,_0x219cca:0x2b8,_0x5188b6:0x5a};function _0x360684(_0x3f13c5,_0x35568e,_0x1710da,_0x44354a){return _0x3921cc(_0x3f13c5-_0x218dad._0x57ffc7,_0x44354a-_0x218dad._0x219cca,_0x35568e,_0x44354a-_0x218dad._0x5188b6);}const _0x434364=Array['from'](this[_0x191791(0x113,0x1cb,_0x30f39e._0x391214,_0x30f39e._0xdc438a)][_0x360684(_0x30f39e._0x25d144,0x66f,0x588,_0x30f39e._0x5b4975)]())[_0x191791(0x5d,_0x30f39e._0x54ed9e,_0x30f39e._0x576775,0xeb)]((_0x31f567,_0x5b7d04)=>_0x31f567[_0x191791(0xfa,0x139,0x13d,0x119)]-_0x5b7d04[_0x360684(0x607,0x51e,0x55c,0x5a5)]),_0x924053=[];function _0x191791(_0xdd9335,_0x437979,_0x2f9d83,_0x2207a){return _0x4abdca(_0xdd9335-_0x4bd285._0x7eff02,_0x2207a- -_0x4bd285._0x413aa5,_0x2f9d83-_0x4bd285._0x34e1bd,_0x437979);}for(const _0x2b6bf4 of _0x434364){if(_0x2b6bf4[_0x360684(0x576,0x52c,_0x30f39e._0x30cc33,_0x30f39e._0x9eb7bd)]===_0x360684(_0x30f39e._0x16aa50,0x676,0x709,_0x30f39e._0x39fd8a)){_0x2b6bf4[_0x191791(0x294,_0x30f39e._0x34358a,0x19f,_0x30f39e._0x129417)][_0x360684(_0x30f39e._0x211291,0x6d8,_0x30f39e._0x5945d6,0x676)]>0x0&&_0x924053[_0x191791(0x184,0x101,0x152,0x110)]({'type':_0x360684(_0x30f39e._0x327c24,0x750,0x63f,_0x30f39e._0x39fd8a),'text':_0x2b6bf4[_0x191791(0x299,_0x30f39e._0x56df94,0x1ec,0x20d)]});continue;}if(_0x2b6bf4['kind']===_0x191791(_0x30f39e._0x306f24,0x2bf,_0x30f39e._0xf32a6b,_0x30f39e._0x289430)){_0x924053[_0x360684(0x548,0x5f6,0x64b,0x59c)]({'type':_0x360684(_0x30f39e._0x3d5742,_0x30f39e._0x1bb564,0x61e,0x68e),'thinking':_0x2b6bf4[_0x360684(0x635,0x699,0x601,_0x30f39e._0x3cdced)],'signature':_0x2b6bf4[_0x360684(0x5e8,_0x30f39e._0x4e0173,_0x30f39e._0x4870d8,_0x30f39e._0x262e89)]});continue;}if(_0x2b6bf4['kind']===_0x191791(0x25b,0x27e,_0x30f39e._0x3e92ba,_0x30f39e._0x36748f)){_0x924053[_0x360684(_0x30f39e._0x2f05df,0x627,_0x30f39e._0x553a9d,0x59c)]({'type':_0x360684(0x634,_0x30f39e._0x4e114b,0x5eb,_0x30f39e._0x58aed5),'data':_0x2b6bf4[_0x360684(_0x30f39e._0x226400,_0x30f39e._0x4aa400,0x60b,_0x30f39e._0x25ee1c)]});continue;}_0x924053[_0x360684(0x60c,_0x30f39e._0x3afe1f,_0x30f39e._0x51d7b6,_0x30f39e._0x571e32)]({'type':_0x360684(_0x30f39e._0x4378ec,0x5e3,0x629,_0x30f39e._0x1fb80c),'id':_0x2b6bf4['id'],'name':_0x2b6bf4['name'],'input':parseToolInput(_0x2b6bf4['inputJson'][_0x191791(_0x30f39e._0x3bcc3e,0x18a,0x16a,0x1ea)]>0x0?_0x2b6bf4['inputJson']:'{}')});}return parseAnthropicResponse({'id':this['messageId'],'type':_0x191791(_0x30f39e._0x355d17,_0x30f39e._0x4eb2ba,_0x30f39e._0x39e1e7,_0x30f39e._0x153249),'role':_0x191791(_0x30f39e._0x4b7806,0x7e,0x53,0xd9),'content':_0x924053,'stop_reason':this['stopReason'],'stop_sequence':null,'usage':{'input_tokens':this[_0x191791(0x139,_0x30f39e._0x3a2e45,0x9a,_0x30f39e._0x3f31af)],'output_tokens':this[_0x360684(0x564,_0x30f39e._0x1fa4f1,_0x30f39e._0x1c7597,0x5ec)]}},this[_0x360684(_0x30f39e._0x3d4fa9,_0x30f39e._0x236c43,0x4d3,0x542)]);}};function createAnthropicSurfaces(){const _0x29f8cc={_0x2f9064:0x3fa,_0x19413e:0x382},_0x55dfdb={_0x12f732:0x137};function _0x3bfbea(_0x492638,_0x2a7205,_0x32daa9,_0x1a907e){return _0x4abdca(_0x492638-0x154,_0x1a907e- -_0x55dfdb._0x12f732,_0x32daa9-0x30,_0x492638);}return[{'id':ANTHROPIC_MESSAGES_SURFACE,'transport':_0x3bfbea(_0x29f8cc._0x2f9064,0x492,_0x29f8cc._0x19413e,0x3e2),'createRequest'(_0x26d6a3){return createAnthropicRequest(_0x26d6a3,![]);},'parseResponse'(_0x1bf41e,_0x2ec9da){return parseAnthropicResponse(_0x1bf41e,_0x2ec9da);}},{'id':ANTHROPIC_MESSAGES_STREAM_SURFACE,'transport':'http-sse','createRequest'(_0x7a07b0){return createAnthropicRequest(_0x7a07b0,!![]);},'createStreamParser'(_0x38e9fe){return new AnthropicMessagesStreamParser(_0x38e9fe);}}];}var StaticModelSurfaceRouter=class{['completeSurface'];[_0x4abdca(0x54d,0x559,0x4a8,0x4a2)];constructor(_0x37ffe8){const _0x362e41={_0x263af5:0x3e4},_0x1269d9={_0x553880:0x162,_0x142f32:0x88};this['completeSurface']=_0x37ffe8['complete'];function _0x148415(_0x3f706e,_0x5c055a,_0x36ef42,_0x50681d){return _0x4abdca(_0x3f706e-_0x1269d9._0x553880,_0x50681d- -0xf0,_0x36ef42-_0x1269d9._0x142f32,_0x3f706e);}this[_0x148415(0x41b,_0x362e41._0x263af5,0x453,0x469)]=_0x37ffe8['stream'];}[_0x4abdca(0x4cc,0x459,0x39b,0x3bd)](_0x1cc622,_0x38ed3e){const _0x42626f={_0x26598f:0x629,_0x425812:0x5cd,_0x5a9068:0x526,_0x14af18:0x6a0,_0x3f9ca5:0x5e5},_0x2f3bc3={_0x5ddac5:0x147,_0x10bc82:0x17a,_0x8c3072:0x8a};function _0x4e62cc(_0x4f29cf,_0x20bab1,_0x1a4ee3,_0x5117aa){return _0x4abdca(_0x4f29cf-_0x2f3bc3._0x5ddac5,_0x4f29cf- -_0x2f3bc3._0x10bc82,_0x1a4ee3-_0x2f3bc3._0x8c3072,_0x1a4ee3);}function _0x3ec47a(_0x567ba3,_0x3f3134,_0x206216,_0xb37246){return _0x3921cc(_0x567ba3-0x26,_0x206216-0x22c,_0x567ba3,_0xb37246-0x12f);}return _0x38ed3e[_0x3ec47a(0x661,_0x42626f._0x26598f,_0x42626f._0x425812,_0x42626f._0x5a9068)]==='stream'?this[_0x3ec47a(_0x42626f._0x14af18,0x676,_0x42626f._0x3f9ca5,0x583)]:this['completeSurface'];}};function trimTrailingSlashes(_0x4e86bd){const _0x5788c4={_0x1d2f5a:0x563,_0x1eb3dd:0x5c8,_0x18fe87:0x581},_0x3c1c66={_0x334e0c:0x25};function _0x2db0f8(_0x5a991f,_0x3b8a4b,_0x5ed5b1,_0x37f4c7){return _0x4abdca(_0x5a991f-0x12f,_0x5ed5b1-_0x3c1c66._0x334e0c,_0x5ed5b1-0x1f2,_0x3b8a4b);}return _0x4e86bd[_0x2db0f8(_0x5788c4._0x1d2f5a,_0x5788c4._0x1eb3dd,0x549,_0x5788c4._0x18fe87)](/\/+$/,'');}function resolveApiCredential(_0x4bf4d0,_0x5d940a){const _0x11d14f={_0x2a56b6:0x278,_0x4dc9d0:0x21f,_0x57c71b:0x2c8,_0x560948:0xcc},_0x5132e8={_0x99d040:0xf2},_0x1c293a={_0x2b708c:0xd6};function _0x1c06cd(_0x37d6fa,_0x56f444,_0x1491d,_0x4b2a72){return _0x4abdca(_0x37d6fa-_0x1c293a._0x2b708c,_0x37d6fa- -0x425,_0x1491d-0x1d3,_0x56f444);}if(_0x5d940a?.[_0x541e04(0x20b,_0x11d14f._0x2a56b6,_0x11d14f._0x4dc9d0,_0x11d14f._0x57c71b)])return _0x5d940a['credential'];if(!_0x4bf4d0)return void 0x0;function _0x541e04(_0x2af7ce,_0x4dc551,_0x50bddc,_0x5a5172){return _0x3921cc(_0x2af7ce-0x71,_0x2af7ce- -_0x5132e8._0x99d040,_0x4dc551,_0x5a5172-0x190);}return{'kind':_0x1c06cd(0x52,0xd3,_0x11d14f._0x560948,0x17),'value':_0x4bf4d0};}function resolveSessionBaseUrl(_0x5c3098,_0x23f88b){const _0x4bd1ea={_0x24a706:0x4a6,_0x23245f:0x495,_0x41fe61:0x45f,_0x2945a9:0xae,_0x4b5bec:0x160,_0x385c27:0xbb},_0x3f1ae7={_0x58676c:0x87};function _0xf7db08(_0x3261b1,_0x522e8c,_0x3156bb,_0x27e8f0){return _0x3921cc(_0x3261b1-0x67,_0x522e8c- -0x28e,_0x3261b1,_0x27e8f0-0x146);}function _0x557d35(_0x7f4a4,_0x1ad84d,_0x272c78,_0xe7eef6){return _0x4abdca(_0x7f4a4-0x1b9,_0x7f4a4- -_0x3f1ae7._0x58676c,_0x272c78-0xd,_0xe7eef6);}return trimTrailingSlashes(_0x23f88b?.[_0x557d35(_0x4bd1ea._0x24a706,_0x4bd1ea._0x23245f,0x41d,_0x4bd1ea._0x41fe61)]?.[_0xf7db08(_0x4bd1ea._0x2945a9,_0x4bd1ea._0x4b5bec,0xd5,_0x4bd1ea._0x385c27)]??_0x5c3098);}function toErrorMessage(_0x45bc19){if(_0x45bc19 instanceof Error&&_0x45bc19['message']['length']>0x0)return _0x45bc19['message'];return'WebSocket\x20request\x20failed';}function createDefaultWebSocketFactory(){const _0x108d36={_0x14c550:0xbe};return({headers:_0x848762,url:_0x2f07d2})=>{const _0x4a40fc={_0x47b29b:0x2c0};function _0x57f8a4(_0x251aac,_0x54da0e,_0x49f01b,_0x69b2b8){return _0x6b39(_0x49f01b- -_0x4a40fc._0x47b29b,_0x54da0e);}const _0x323bbb=globalThis[_0x57f8a4(0xe,-_0x108d36._0x14c550,-0x26,-0x60)];return new _0x323bbb(_0x2f07d2,{'headers':_0x848762,'protocols':[]});};}async function*iterateSseEvents(_0x1b3071,_0x51a59b){const _0x543838={_0x41c56f:0x687,_0x4901df:0x690,_0x1121cb:0x6e4,_0x26b97b:0x250,_0x3127af:0x1d7,_0x1a7ed1:0x1ca,_0x1cfe9b:0x244,_0x385170:0x24b,_0x271395:0x1b7,_0x536b8c:0x22b,_0x9fad7e:0x200,_0xa6f6c6:0x274,_0x2cda9e:0x23c,_0x11a749:0x23f,_0x21d046:0x1d2,_0x5ad016:0x1f8,_0x1f1d8b:0x679,_0x17e9ac:0x5cd,_0x2a19a8:0x638,_0x3b35fb:0x682,_0x1dda79:0x6d0},_0x23e23a={_0xd58df4:0x6d,_0x655e6d:0x320,_0x2e8f87:0x4a},_0x2ff425={_0x1f7ede:0x2b2},_0xc0c040=_0x1b3071['body']?.[_0x1f487e(_0x543838._0x41c56f,0x607,0x5fa,_0x543838._0x4901df)]();if(!_0xc0c040)return;function _0x1f487e(_0x2a88e9,_0x409168,_0x14593e,_0x534389){return _0x3921cc(_0x2a88e9-0x167,_0x534389-_0x2ff425._0x1f7ede,_0x2a88e9,_0x534389-0x1c);}const _0x131ba5=new TextDecoder(_0x1f487e(0x662,_0x543838._0x1121cb,0x668,0x6a5));let _0x3556af='';function _0x1d3b77(_0x4f06dc,_0x2d0b38,_0x17036f,_0x2a6cc1){return _0x4abdca(_0x4f06dc-_0x23e23a._0xd58df4,_0x4f06dc- -_0x23e23a._0x655e6d,_0x17036f-_0x23e23a._0x2e8f87,_0x17036f);}const _0x1bc1e7=addAbortListener(_0x51a59b,()=>{void _0xc0c040['cancel'](toAbortError(_0x51a59b?.['reason']))['catch'](()=>{});});try{while(!![]){throwIfAborted(_0x51a59b);const {value:_0x452b0b,done:_0x10e383}=await _0xc0c040[_0x1d3b77(_0x543838._0x26b97b,0x234,_0x543838._0x3127af,0x242)]();throwIfAborted(_0x51a59b);if(_0x10e383)break;_0x3556af+=_0x131ba5['decode'](_0x452b0b,{'stream':!![]});while(!![]){const _0x227a12=_0x3556af[_0x1d3b77(_0x543838._0x1a7ed1,0x154,0x1c9,_0x543838._0x1cfe9b)]('\x0a\x0a');if(_0x227a12===-0x1)break;const _0x440c0d=_0x3556af[_0x1d3b77(_0x543838._0x385170,_0x543838._0x271395,_0x543838._0x536b8c,0x207)](0x0,_0x227a12);_0x3556af=_0x3556af[_0x1d3b77(0x24b,_0x543838._0x9fad7e,_0x543838._0xa6f6c6,_0x543838._0x2cda9e)](_0x227a12+0x2),_0x440c0d[_0x1d3b77(_0x543838._0x11a749,_0x543838._0x21d046,_0x543838._0x5ad016,0x1b2)]()['length']>0x0&&(yield _0x440c0d);}}_0x3556af+=_0x131ba5[_0x1f487e(_0x543838._0x1f1d8b,_0x543838._0x17e9ac,_0x543838._0x2a19a8,0x5bb)](),throwIfAborted(_0x51a59b),_0x3556af[_0x1f487e(0x5eb,0x6d0,0x6bf,0x671)]()[_0x1f487e(_0x543838._0x3b35fb,_0x543838._0x1dda79,0x5dc,0x670)]>0x0&&(yield _0x3556af);}finally{_0x1bc1e7();}}async function waitForWebSocketOpen(_0x449fb5,_0x38cd3f){const _0x4d9448={_0x3ae6ff:0x397,_0x391d22:0x405},_0xe34ce={_0x51516a:0x54,_0x50a8b8:0x163,_0x5127a9:0x5f,_0x2d9585:0x36,_0x1fa1eb:0x1ef,_0x4a804b:0x17,_0x396f21:0x9e,_0x595463:0x92,_0x115a90:0x1fc},_0x1f4edb={_0x534cf1:0x73,_0x3837e7:0xe0,_0x7c1174:0x138,_0x245412:0x119,_0x1281e0:0x182,_0x349099:0x256,_0x362179:0x1b5,_0x7485e3:0x50,_0x1a30cb:0x194},_0x2ab195={_0x3c2cf4:0x15f,_0x5a6038:0x15e,_0x35a7ff:0x17f,_0x5ba346:0x18b,_0x4ffdd0:0x17f,_0xf9b6fb:0xe6,_0x3a7311:0x1b0},_0xbfe015={_0x31c370:0x17d,_0x28601b:0x1df,_0xb4d65d:0xbb},_0x393558={_0x25f9ac:0x80,_0x316b9c:0x2b};if(_0x449fb5[_0x2b04d0(_0x4d9448._0x3ae6ff,0x34c,_0x4d9448._0x391d22,0x3b2)]===WebSocket['OPEN']){throwIfAborted(_0x38cd3f);return;}throwIfAborted(_0x38cd3f);function _0x2b04d0(_0x57c63,_0x843ab4,_0x2eabe1,_0x324954){return _0x3921cc(_0x57c63-0x69,_0x843ab4-_0x393558._0x25f9ac,_0x2eabe1,_0x324954-_0x393558._0x316b9c);}await new Promise((_0x46a7de,_0x4dfaf0)=>{const _0x32b54a={_0x4a3343:0x2d1,_0x2bea29:0x2de,_0x4fa03f:0x281,_0x5334cb:0x12e,_0x3aa7c2:0x1c8,_0x1f29c0:0x1b6,_0x205f47:0x231,_0x160943:0x156,_0x698647:0x1c3,_0x4dcdc:0x14d,_0x31ff44:0x20e,_0xd4fee7:0x22e,_0x2480e4:0x232,_0x1ccb46:0x20c,_0x4f1f65:0x16a,_0x1ca1f3:0x114},_0x1f8d38={_0x13f746:0xda},_0x36623e={_0x532eaa:0xe0,_0x2fbea0:0x4ef,_0x5c8861:0x149},_0x44ca00={_0x57ee70:0x48},_0x3dab62=()=>{_0x17b16a(),_0x46a7de();};function _0x458993(_0x2ac15e,_0x342c6e,_0x2ce4ee,_0x460762){return _0x2b04d0(_0x2ac15e-_0x44ca00._0x57ee70,_0x2ac15e- -0x33e,_0x342c6e,_0x460762-0xc7);}function _0x54200c(_0x2ea0a7,_0x465b42,_0xa10747,_0xe1e7e8){return _0x2b04d0(_0x2ea0a7-_0x36623e._0x532eaa,_0x465b42- -_0x36623e._0x2fbea0,_0xa10747,_0xe1e7e8-_0x36623e._0x5c8861);}const _0x4e5859=_0x7df4ee=>{const _0x4292d5={_0x2c1dc3:0x38f};_0x17b16a();function _0x24edf7(_0x10ff8b,_0x300817,_0xdaafdd,_0x3a1f5b){return _0x6b39(_0x10ff8b- -_0x4292d5._0x2c1dc3,_0x3a1f5b);}function _0x2828f7(_0x378df1,_0x5b816c,_0x3399ee,_0x5e36ae){return _0x6b39(_0x5b816c- -0xea,_0x378df1);}_0x4dfaf0(new Error(_0x7df4ee[_0x24edf7(-0x155,-_0xbfe015._0x31c370,-0x1e0,-0x97)]||_0x2828f7(0x21f,0x15f,_0xbfe015._0x28601b,_0xbfe015._0xb4d65d)));},_0x207e7d=_0x1d4ee4=>{_0x17b16a();function _0x57e9b0(_0x1a5a3a,_0x5f33c1,_0x45ef47,_0x32de09){return _0x6b39(_0x5f33c1- -0x392,_0x45ef47);}function _0x35c849(_0x1d0ede,_0x51bbee,_0x3c1a8a,_0x1a0d4c){return _0x6b39(_0x1a0d4c- -0x3b,_0x1d0ede);}const _0x136275=_0x1d4ee4;_0x4dfaf0(new Error(_0x136275[_0x35c849(_0x2ab195._0x3c2cf4,0x19b,_0x2ab195._0x5a6038,_0x2ab195._0x35a7ff)]||_0x57e9b0(-_0x2ab195._0x5ba346,-_0x2ab195._0x4ffdd0,-_0x2ab195._0xf9b6fb,-_0x2ab195._0x3a7311)));},_0x438e74=()=>{const _0x1f034f={_0x598a54:0xf};function _0x2a740c(_0x516856,_0x1c3311,_0x3f3ba2,_0x17208a){return _0x6b39(_0x1c3311- -_0x1f034f._0x598a54,_0x516856);}function _0x3d3458(_0x4fda17,_0x207cde,_0x38dd85,_0x1e31d2){return _0x6b39(_0x1e31d2- -_0x1f8d38._0x13f746,_0x4fda17);}_0x17b16a(),_0x449fb5[_0x3d3458(0x182,0x10e,_0x1f4edb._0x534cf1,0xe1)]===WebSocket[_0x3d3458(_0x1f4edb._0x3837e7,_0x1f4edb._0x7c1174,_0x1f4edb._0x245412,_0x1f4edb._0x1281e0)]&&_0x449fb5[_0x2a740c(_0x1f4edb._0x349099,0x1b5,0x144,_0x1f4edb._0x362179)](0x3e8,'aborted'),_0x4dfaf0(toAbortError(_0x38cd3f?.[_0x3d3458(_0x1f4edb._0x7485e3,_0x1f4edb._0x1a30cb,0x47,0xe0)]));},_0x17b16a=()=>{const _0x54bf91={_0xda33d5:0xf8};_0x449fb5[_0x28f4b2(_0x32b54a._0x4a3343,_0x32b54a._0x2bea29,_0x32b54a._0x4fa03f,0x25a)](_0x5939d2(-_0x32b54a._0x5334cb,-_0x32b54a._0x3aa7c2,-0x14f,-_0x32b54a._0x1f29c0),_0x3dab62),_0x449fb5['removeEventListener'](_0x5939d2(-_0x32b54a._0x205f47,-0x1e4,-0x225,-0x2b9),_0x4e5859),_0x449fb5[_0x5939d2(-_0x32b54a._0x160943,-0x13d,-_0x32b54a._0x698647,-_0x32b54a._0x4dcdc)](_0x5939d2(-_0x32b54a._0x31ff44,-_0x32b54a._0xd4fee7,-0x1d8,-0x21b),_0x207e7d);function _0x28f4b2(_0x54d82c,_0x392d97,_0x8f5417,_0x29df6d){return _0x6b39(_0x54d82c-_0x54bf91._0xda33d5,_0x29df6d);}function _0x5939d2(_0x155532,_0x21d24d,_0x380346,_0x5900e9){return _0x6b39(_0x380346- -0x39c,_0x155532);}_0x38cd3f?.[_0x28f4b2(0x2d1,0x37b,_0x32b54a._0x2480e4,_0x32b54a._0x1ccb46)](_0x5939d2(-_0x32b54a._0x4f1f65,-0xf1,-_0x32b54a._0x1ca1f3,-0x6c),_0x438e74);};_0x449fb5[_0x458993(-0x1f,0x59,_0xe34ce._0x51516a,0x80)](_0x54200c(-_0xe34ce._0x50a8b8,-0x111,-0xb3,-_0xe34ce._0x5127a9),_0x3dab62),_0x449fb5['addEventListener'](_0x458993(-_0xe34ce._0x2d9585,0x61,0x8c,-0xf1),_0x4e5859),_0x449fb5[_0x54200c(-_0xe34ce._0x1fa1eb,-0x1d0,-0x254,-0x1f5)](_0x458993(_0xe34ce._0x4a804b,0xae,-_0xe34ce._0x396f21,-_0xe34ce._0x595463),_0x207e7d),_0x38cd3f?.[_0x54200c(-_0xe34ce._0x115a90,-0x1d0,-0x26d,-0x1a2)]('abort',_0x438e74,{'once':!![]});});}function iterateWebSocketMessages(_0x4b89cb,_0x3f86ec){const _0x1b1832={_0x39cc9e:0xfd,_0x2c5a9d:0x166,_0x51a8e9:0xcf,_0x2417de:0x42,_0x4e2e23:0x51,_0x5f5a1f:0x5d,_0x20c392:0x3c,_0x287f9c:0x4e4,_0x56543b:0x5a8,_0x27cfe9:0x5d9,_0x4c25cc:0x585,_0x5175a5:0x684},_0x239d8={_0x1813a2:0x12e,_0x2c64a0:0x186,_0x394f58:0xae,_0x276a52:0x229,_0x3277eb:0x1a1,_0x4b61b9:0x224,_0x3112c4:0x2c5,_0x5833c3:0x264,_0xa45d01:0x1d1,_0x21e5a8:0x221},_0x9f3020={_0x4a2465:0x3ac,_0x1d3b31:0x4d4,_0x545487:0x424,_0x274590:0x4e8,_0x38b4bc:0x4c6,_0x4f18c1:0x46,_0x804f22:0x2,_0x1ae3ae:0x21,_0x5e2e8e:0x439,_0x785055:0x474},_0x57cdf6={_0x50bbb4:0x26a},_0x46f016={_0x11bc69:0x41,_0x24758f:0x24,_0x2e0bc5:0xd7,_0x50e995:0x82,_0xc5b1b7:0x16,_0x3643f4:0x48,_0x4494b7:0x52,_0x281e14:0x1f},_0x4cde5f={_0x3a40ae:0x3a3,_0x304dff:0x30b,_0x2b1dc8:0x3a7,_0x104e9d:0x31a},_0x176dff={_0xd91d55:0x1bf,_0x3e3626:0xa9},_0x260274={_0x23a5e5:0x2e8,_0x5a5cb7:0x2bd,_0x4617ce:0x2fa,_0x5d1a74:0x4ab},_0x5c5ba0={_0x352af0:0x115},_0xad0cfd={_0x37252c:0xeb,_0x40cb84:0x53c,_0x38cdf0:0x18a},_0x42d910=[];function _0x110f8c(_0x178141,_0x1965eb,_0xb79a8,_0x5d45a3){return _0x4abdca(_0x178141-_0xad0cfd._0x37252c,_0x178141- -_0xad0cfd._0x40cb84,_0xb79a8-_0xad0cfd._0x38cdf0,_0x5d45a3);}let _0x248aa1=![],_0x10dfdd,_0x5bb654;const _0x4f4b66=_0x5d6659=>{const _0x4c835b=_0x5d6659;function _0x5bddb4(_0x5afd64,_0x242048,_0x496817,_0xb0fe87){return _0x6b39(_0x496817-0x15,_0x5afd64);}function _0x1719d1(_0x5c6027,_0x1ae376,_0xd43f7b,_0x288adc){return _0x6b39(_0x5c6027-_0x5c5ba0._0x352af0,_0xd43f7b);}try{_0x42d910[_0x1719d1(_0x260274._0x23a5e5,0x399,_0x260274._0x5a5cb7,_0x260274._0x4617ce)](JSON[_0x5bddb4(0x211,0x1bd,0x27c,0x2d4)](String(_0x4c835b[_0x1719d1(0x3ec,_0x260274._0x5d1a74,0x440,0x36a)]))),_0x5bb654?.(),_0x5bb654=void 0x0;}catch(_0x5b9017){_0x10dfdd=new Error('Invalid\x20WebSocket\x20message:\x20'+toErrorMessage(_0x5b9017)),_0x5bb654?.(),_0x5bb654=void 0x0;}};function _0x48df77(_0x59ad2d,_0x17337a,_0x4f6b0c,_0x287c0c){return _0x4abdca(_0x59ad2d-_0x176dff._0xd91d55,_0x17337a-_0x176dff._0x3e3626,_0x4f6b0c-0x7d,_0x287c0c);}const _0x568230=_0x404f22=>{const _0x3e8280={_0x55c8d6:0xd1},_0x35088c=_0x404f22;_0x10dfdd=new Error(_0x35088c[_0x542208(_0x4cde5f._0x3a40ae,0x2a8,0x35a,_0x4cde5f._0x304dff)]||_0x542208(_0x4cde5f._0x2b1dc8,0x259,0x368,_0x4cde5f._0x104e9d));function _0x542208(_0x1d9629,_0xf6edc6,_0x36072e,_0x1b06c6){return _0x6b39(_0x1b06c6-_0x3e8280._0x55c8d6,_0xf6edc6);}_0x5bb654?.();function _0x23a3cf(_0x189859,_0x23a7f3,_0x4f5d47,_0x572e29){return _0x6b39(_0x572e29- -0xe7,_0x189859);}_0x5bb654=void 0x0;},_0x842f79=_0x3311b7=>{const _0x3cddbe={_0x1c0c10:0x23c};function _0x2195bd(_0x3472f4,_0xf203ae,_0x25ff03,_0xc3f01){return _0x6b39(_0xc3f01-0x337,_0x25ff03);}const _0x431565=_0x3311b7;!_0x248aa1&&_0x431565[_0x2c2fcd(-0x7,0x92,_0x46f016._0x11bc69,_0x46f016._0x24758f)]!==0x3e8&&!_0x10dfdd&&(_0x10dfdd=new Error(_0x431565[_0x2c2fcd(-_0x46f016._0x2e0bc5,-_0x46f016._0x50e995,-0x143,0x2c)]||_0x2c2fcd(0x78,_0x46f016._0xc5b1b7,0x4b,-_0x46f016._0x3643f4)+_0x431565[_0x2c2fcd(0x6e,0x92,_0x46f016._0x4494b7,_0x46f016._0x281e14)]));function _0x2c2fcd(_0x25a901,_0x51a792,_0x14c981,_0x2946c0){return _0x6b39(_0x51a792- -_0x3cddbe._0x1c0c10,_0x25a901);}_0x248aa1=!![],_0x5bb654?.(),_0x5bb654=void 0x0;},_0x5cacd9=addAbortListener(_0x3f86ec,()=>{_0x10dfdd=toAbortError(_0x3f86ec?.[_0x57603b(_0x9f3020._0x4a2465,_0x9f3020._0x1d3b31,0x4c1,_0x9f3020._0x545487)]);_0x4b89cb['readyState']===WebSocket[_0x57603b(0x496,_0x9f3020._0x274590,0x44e,_0x9f3020._0x38b4bc)]&&_0x4b89cb[_0x1d8ed3(-_0x9f3020._0x4f18c1,-0x11,-_0x9f3020._0x804f22,_0x9f3020._0x1ae3ae)](0x3e8,_0x57603b(_0x9f3020._0x5e2e8e,0x4f5,_0x9f3020._0x785055,0x4c2));function _0x1d8ed3(_0x184ac7,_0x59a73c,_0x557e67,_0x1bdbd0){return _0x6b39(_0x557e67- -0x1c6,_0x1bdbd0);}function _0x57603b(_0x529616,_0x5177a5,_0x52c165,_0x5c22fe){return _0x6b39(_0x5c22fe-_0x57cdf6._0x50bbb4,_0x529616);}_0x5bb654?.(),_0x5bb654=void 0x0;});return _0x4b89cb[_0x110f8c(-_0x1b1832._0x39cc9e,-_0x1b1832._0x2c5a9d,-_0x1b1832._0x51a8e9,-_0x1b1832._0x2417de)](_0x110f8c(-_0x1b1832._0x4e2e23,_0x1b1832._0x5f5a1f,-_0x1b1832._0x20c392,0x2f),_0x4f4b66),_0x4b89cb[_0x48df77(0x4d9,0x4e8,0x42c,_0x1b1832._0x287f9c)]('error',_0x568230),_0x4b89cb['addEventListener'](_0x48df77(0x556,0x51e,0x4a8,0x4ed),_0x842f79),{async*[Symbol[_0x48df77(_0x1b1832._0x56543b,_0x1b1832._0x27cfe9,_0x1b1832._0x4c25cc,_0x1b1832._0x5175a5)]](){const _0x6ccc13={_0x4cb4fd:0x9e},_0x158d8e={_0xe6bacf:0x150,_0x12b389:0x5a,_0x4d9026:0x122};function _0x2c6484(_0x5466e7,_0x44086b,_0x400fe1,_0x5acfc9){return _0x110f8c(_0x5466e7- -_0x158d8e._0xe6bacf,_0x44086b-_0x158d8e._0x12b389,_0x400fe1-_0x158d8e._0x4d9026,_0x5acfc9);}function _0x5ea0d4(_0x29d6f5,_0x479c58,_0x53f383,_0x3a9912){return _0x110f8c(_0x479c58-0x22a,_0x479c58-_0x6ccc13._0x4cb4fd,_0x53f383-0xcb,_0x53f383);}try{while(!![]){if(_0x10dfdd)throw _0x10dfdd;if(_0x42d910[_0x2c6484(-_0x239d8._0x1813a2,-0xd5,-_0x239d8._0x2c64a0,-_0x239d8._0x394f58)]>0x0){yield _0x42d910['shift']();continue;}if(_0x248aa1)break;await new Promise(_0x5305f7=>{_0x5bb654=_0x5305f7;});}}finally{_0x4b89cb[_0x2c6484(-0x202,-0x2a3,-_0x239d8._0x276a52,-0x18b)](_0x2c6484(-_0x239d8._0x3277eb,-0x18a,-0x18a,-0x185),_0x4f4b66),_0x4b89cb[_0x2c6484(-0x202,-0x2a3,-_0x239d8._0x4b61b9,-_0x239d8._0x3112c4)](_0x2c6484(-_0x239d8._0x5833c3,-_0x239d8._0xa45d01,-0x2e9,-_0x239d8._0x21e5a8),_0x568230),_0x4b89cb['removeEventListener'](_0x2c6484(-0x217,-0x197,-0x1a4,-0x291),_0x842f79),_0x5cacd9();}}};}function _0x6b39(_0xf9ef70,_0x3e219b){_0xf9ef70=_0xf9ef70-0x175;const _0xa6777f=_0xa677();let _0x6b3968=_0xa6777f[_0xf9ef70];if(_0x6b39['FEvExn']===undefined){var _0x280065=function(_0x40cf5e){const _0x456456='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x313c06='',_0x44602e='';for(let _0x3bb009=0x0,_0x133420,_0x2778a4,_0x5622f6=0x0;_0x2778a4=_0x40cf5e['charAt'](_0x5622f6++);~_0x2778a4&&(_0x133420=_0x3bb009%0x4?_0x133420*0x40+_0x2778a4:_0x2778a4,_0x3bb009++%0x4)?_0x313c06+=String['fromCharCode'](0xff&_0x133420>>(-0x2*_0x3bb009&0x6)):0x0){_0x2778a4=_0x456456['indexOf'](_0x2778a4);}for(let _0xc68e90=0x0,_0x3b3fb5=_0x313c06['length'];_0xc68e90<_0x3b3fb5;_0xc68e90++){_0x44602e+='%'+('00'+_0x313c06['charCodeAt'](_0xc68e90)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x44602e);};_0x6b39['wYijQG']=_0x280065,_0x6b39['ukVfUa']={},_0x6b39['FEvExn']=!![];}const _0x472114=_0xa6777f[0x0],_0x41d88d=_0xf9ef70+_0x472114,_0x94aa3d=_0x6b39['ukVfUa'][_0x41d88d];return!_0x94aa3d?(_0x6b3968=_0x6b39['wYijQG'](_0x6b3968),_0x6b39['ukVfUa'][_0x41d88d]=_0x6b3968):_0x6b3968=_0x94aa3d,_0x6b3968;}function toWebSocketUrl(_0x32de0f,_0x3d0508){const _0x2a93f4={_0x51a8da:0x4e9,_0x4b854b:0x525,_0x42691f:0x4db,_0xe1daaf:0x97,_0x573d12:0x653,_0x294ed1:0x5f6},_0x1d591b={_0x4651a3:0x109},_0x59620c={_0x35ecf7:0x5a,_0x43d40c:0xfc},_0x1248f9=new URL(_0x3d0508,_0x32de0f);function _0x3fed38(_0x5b2559,_0x2217f9,_0x1bf38d,_0x1bbe62){return _0x4abdca(_0x5b2559-0x9b,_0x1bf38d-_0x59620c._0x35ecf7,_0x1bf38d-_0x59620c._0x43d40c,_0x5b2559);}function _0x947af2(_0x283685,_0x593dd4,_0x46f174,_0x1eab17){return _0x3921cc(_0x283685-0xd5,_0x1eab17- -0x456,_0x593dd4,_0x1eab17-_0x1d591b._0x4651a3);}return _0x1248f9[_0x3fed38(0x596,_0x2a93f4._0x51a8da,_0x2a93f4._0x4b854b,_0x2a93f4._0x42691f)]=_0x1248f9[_0x947af2(-0xe0,-0x1c5,-0xf4,-0x12b)]===_0x947af2(-_0x2a93f4._0xe1daaf,-0xb7,-0x105,-0x144)?_0x3fed38(0x66c,_0x2a93f4._0x573d12,_0x2a93f4._0x294ed1,0x5bf):'ws:',_0x1248f9['toString']();}var ProviderSessionManager=class{['resolver'];[_0x4abdca(0x571,0x534,0x5c8,0x5f9)];constructor(_0x1eaeb6){const _0x3be2ec={_0xdcb494:0x506},_0x498a07={_0x5eab6e:0x4d,_0x30e42e:0x190};function _0x4e8d8b(_0x437670,_0x30e599,_0x52807c,_0x5565c4){return _0x4abdca(_0x437670-0x1cc,_0x52807c-_0x498a07._0x5eab6e,_0x52807c-_0x498a07._0x30e42e,_0x30e599);}this[_0x4e8d8b(0x574,0x599,_0x3be2ec._0xdcb494,0x575)]=_0x1eaeb6;}async[_0x4abdca(0x4d9,0x4c6,0x4dd,0x508)](_0x3c9dc0){const _0x3be62b={_0x2aba06:0x49,_0x3c302a:0xcb,_0x32a7ac:0x490,_0x1f70e7:0x5c6,_0x551302:0xdd,_0xefecd0:0x38,_0x7f8a98:0x5,_0x3a9604:0x5d4,_0x5f0fe4:0x64d},_0x1fe695={_0x2598ff:0x180},_0x86a8dc={_0x296bd8:0x1e6,_0x1ac546:0x2ee,_0x558a49:0x164};function _0x534a13(_0x397392,_0x450a89,_0x11d9ac,_0xc03d08){return _0x3921cc(_0x397392-_0x86a8dc._0x296bd8,_0x450a89- -_0x86a8dc._0x1ac546,_0xc03d08,_0xc03d08-_0x86a8dc._0x558a49);}!this[_0x534a13(0x162,0xa6,_0x3be62b._0x2aba06,0xec)]&&(this[_0x534a13(0xd6,0xa6,_0x3be62b._0x3c302a,0x13d)]=this[_0x4dee87(_0x3be62b._0x32a7ac,0x5c7,0x51f,_0x3be62b._0x1f70e7)][_0x534a13(_0x3be62b._0x551302,_0x3be62b._0xefecd0,0x6,_0x3be62b._0x7f8a98)](_0x3c9dc0));function _0x4dee87(_0xc91017,_0x1f2dd6,_0x4cc494,_0xd25ef0){return _0x4abdca(_0xc91017-0xf1,_0x4cc494-0x66,_0x4cc494-_0x1fe695._0x2598ff,_0xc91017);}return structuredClone(await this[_0x4dee87(0x5c5,_0x3be62b._0x3a9604,0x59a,_0x3be62b._0x5f0fe4)]);}[_0x4abdca(0x44e,0x4b0,0x544,0x4b4)](){const _0x48e3ab={_0x1c2f51:0x16a,_0x56ac8e:0x187};function _0x47b860(_0x48bbe9,_0x1e1f76,_0xd3d627,_0x5c2d72){return _0x3921cc(_0x48bbe9-_0x48e3ab._0x1c2f51,_0x48bbe9- -0x150,_0x5c2d72,_0x5c2d72-_0x48e3ab._0x56ac8e);}this[_0x47b860(0x244,0x2f8,0x2ad,0x2f0)]=void 0x0;}};async function prepareProviderRequest(_0x19621f,_0x5cdd02={}){const _0x3a5db0={_0x344c74:0x24a,_0xa98beb:0x1a6,_0x2aff1c:0x1ea,_0x380996:0x415},_0x239c49={_0x4ba3fc:0x3af,_0xf178a7:0x1ef},_0xd9d972={_0x503e09:0x178,_0x48c137:0xe};function _0x3bfce9(_0x5e00b2,_0x1fd4ef,_0x272a07,_0x570a63){return _0x3921cc(_0x5e00b2-_0xd9d972._0x503e09,_0x570a63-0x105,_0x1fd4ef,_0x570a63-_0xd9d972._0x48c137);}let _0x285875={'request':structuredClone(_0x19621f),'session':_0x5cdd02[_0x9dcd63(_0x3a5db0._0x344c74,0x1ee,_0x3a5db0._0xa98beb,0x199)]?await _0x5cdd02[_0x9dcd63(_0x3a5db0._0x2aff1c,0x205,0x12a,0x199)][_0x3bfce9(_0x3a5db0._0x380996,0x40f,0x41f,0x42b)](_0x5cdd02['signal']):void 0x0};function _0x9dcd63(_0x4ec9da,_0x449db7,_0x9e04ce,_0x1e25f7){return _0x4abdca(_0x4ec9da-0x153,_0x1e25f7- -_0x239c49._0x4ba3fc,_0x9e04ce-_0x239c49._0xf178a7,_0x9e04ce);}for(const _0x43f889 of _0x5cdd02['requestMutators']??[]){_0x285875=await _0x43f889(_0x285875);}return _0x285875;}var RoutedModel=class{[_0x3921cc(0x317,0x38e,0x441,0x447)];[_0x4abdca(0x4cf,0x4be,0x550,0x4bf)];['reasoning'];[_0x3921cc(0x35c,0x410,0x499,0x4a7)];[_0x4abdca(0x51c,0x45b,0x4fb,0x494)];['fetchImpl'];[_0x4abdca(0x550,0x49b,0x401,0x438)];[_0x4abdca(0x567,0x4b1,0x51f,0x55a)];[_0x3921cc(0x2e0,0x2eb,0x2aa,0x26e)];['sessionManager'];[_0x3921cc(0x370,0x333,0x3d8,0x3e2)];[_0x4abdca(0x64b,0x591,0x561,0x56e)]=new Map();constructor(_0x5df69e){const _0x13024a={_0xfe9ea0:0x1d,_0x44bb4d:0x608,_0x350aee:0x522,_0xf79779:0x577,_0x55d0aa:0xaa,_0x5db6bd:0x512,_0x37550e:0x5fa,_0x41f554:0x50e,_0x301c26:0x1e,_0x1eba83:0x11,_0x346064:0x57,_0x4af2f4:0x33,_0x12ea65:0x614,_0x13a276:0x5e8,_0x3c1264:0x5a9,_0x2248eb:0x614,_0x39ed35:0x5ba,_0x507c69:0x4bf,_0x45f1c2:0x4ca,_0x39a73d:0x420,_0x5eb985:0x6c,_0x2fa544:0xf8,_0x5cc8d0:0x123,_0x38ce63:0x7,_0x32730c:0x4d,_0x30eec5:0x61,_0x2fc35b:0xc5,_0x10a3bf:0x578,_0x369e42:0x531,_0x424516:0x5bb,_0x18ab3a:0xc,_0x5ea09a:0x16,_0x3a2fac:0x13,_0x90a919:0x515,_0x3b6457:0x4f0,_0xebf52d:0x53a,_0x14b5a9:0x4d7,_0xa5583e:0x4d6,_0x55c019:0x4ef,_0x47ceb3:0x4d4,_0x9e9eea:0x514,_0x10c66d:0x5f5,_0x70fc7d:0x142,_0x9b1d67:0x36,_0x57db41:0x78},_0x421bc5={_0x1013e7:0x116,_0x13b8cd:0x4c7,_0x18500c:0x180};function _0xa7b904(_0x27b5a,_0x8aecac,_0x4e9789,_0x524db0){return _0x4abdca(_0x27b5a-_0x421bc5._0x1013e7,_0x8aecac- -_0x421bc5._0x13b8cd,_0x4e9789-_0x421bc5._0x18500c,_0x524db0);}this[_0xa7b904(_0x13024a._0xfe9ea0,0x67,0xfc,0x85)]=_0x5df69e[_0x45d76c(0x592,0x4f4,_0x13024a._0x44bb4d,0x5be)],this[_0x45d76c(_0x13024a._0x350aee,0x468,0x52b,_0x13024a._0xf79779)]=_0x5df69e[_0xa7b904(_0x13024a._0x55d0aa,-0x9,-0x5d,-0x8d)]??0x4000,this[_0x45d76c(0x53c,_0x13024a._0x5db6bd,_0x13024a._0x37550e,0x574)]=_0x5df69e[_0x45d76c(0x53c,0x5c5,0x5f7,_0x13024a._0x41f554)]?structuredClone(_0x5df69e[_0xa7b904(-_0x13024a._0x301c26,_0x13024a._0x1eba83,-_0x13024a._0x346064,-_0x13024a._0x4af2f4)]):void 0x0,this[_0x45d76c(_0x13024a._0x12ea65,_0x13024a._0x13a276,0x585,_0x13024a._0x3c1264)]=_0x5df69e[_0x45d76c(_0x13024a._0x2248eb,0x5e9,_0x13024a._0x39ed35,0x669)],this[_0x45d76c(_0x13024a._0x507c69,0x56d,_0x13024a._0x45f1c2,_0x13024a._0x39a73d)]=_0x5df69e[_0xa7b904(-0x35,-_0x13024a._0x5eb985,-_0x13024a._0x2fa544,-_0x13024a._0x5cc8d0)],this['fetchImpl']=_0x5df69e[_0xa7b904(_0x13024a._0x38ce63,_0x13024a._0x32730c,-_0x13024a._0x30eec5,_0x13024a._0x2fc35b)]??globalThis[_0x45d76c(_0x13024a._0x10a3bf,_0x13024a._0x369e42,_0x13024a._0x424516,0x4d2)],this['providerAdapter']=_0x5df69e['providerAdapter'],this[_0xa7b904(_0x13024a._0x18ab3a,-_0x13024a._0x5ea09a,-0x26,_0x13024a._0x3a2fac)]=_0x5df69e[_0x45d76c(_0x13024a._0x90a919,0x4aa,_0x13024a._0x3b6457,_0x13024a._0xebf52d)]??[],this[_0x45d76c(0x4ef,_0x13024a._0x14b5a9,_0x13024a._0xa5583e,0x4d2)]=_0x5df69e[_0x45d76c(_0x13024a._0x55c019,0x4f9,0x52a,_0x13024a._0x47ceb3)],this[_0xa7b904(0x35,0x81,0xc8,0xfe)]=_0x5df69e['sessionManager']??(_0x5df69e['providerSessionResolver']?new ProviderSessionManager(_0x5df69e['providerSessionResolver']):void 0x0);function _0x45d76c(_0x3b2e0e,_0x383dc3,_0x3efbec,_0xbeb468){return _0x4abdca(_0x3b2e0e-0x1f2,_0x3b2e0e-0x64,_0x3efbec-0xfe,_0x3efbec);}this[_0x45d76c(0x537,_0x13024a._0x9e9eea,0x5c3,0x5cb)]=_0x5df69e['webSocketFactory']??createDefaultWebSocketFactory();for(const _0x8d4698 of _0x5df69e[_0x45d76c(_0x13024a._0x10c66d,0x545,0x663,0x5c0)]){this[_0xa7b904(0xae,0xca,_0x13024a._0x70fc7d,0x10a)][_0xa7b904(_0x13024a._0x9b1d67,-_0x13024a._0x57db41,-0x85,-0x136)](_0x8d4698['id'],_0x8d4698);}}['complete'](_0x577b0b,_0x508cb){const _0x3fa938={_0x1335c4:0x595,_0x3fe2f7:0x4a8,_0xa21aeb:0x545,_0x2941bd:0x4e8},_0x46646c={_0x1b2dad:0x1c2,_0x200a81:0x116,_0x25d7dd:0x5c};function _0x1cf036(_0x45f812,_0x1603f4,_0x2a1461,_0x4926c7){return _0x4abdca(_0x45f812-_0x46646c._0x1b2dad,_0x2a1461-_0x46646c._0x200a81,_0x2a1461-_0x46646c._0x25d7dd,_0x1603f4);}return this[_0x1cf036(_0x3fa938._0x1335c4,_0x3fa938._0x3fe2f7,_0x3fa938._0xa21aeb,_0x3fa938._0x2941bd)](_0x577b0b,_0x508cb);}[_0x3921cc(0x2d2,0x2b4,0x245,0x315)](_0x5b41f0,_0x216bd9){const _0x49c4c4={_0x2b5151:0xde,_0x31ed00:0x14a,_0x189c26:0x6b},_0x2daa3f={_0x43b72c:0x1fb};function _0x260ad4(_0x1c034f,_0x12df3f,_0x240983,_0x136b02){return _0x3921cc(_0x1c034f-0xef,_0x1c034f- -_0x2daa3f._0x43b72c,_0x136b02,_0x136b02-0xbb);}return this[_0x260ad4(_0x49c4c4._0x2b5151,0xa8,_0x49c4c4._0x31ed00,_0x49c4c4._0x189c26)](_0x5b41f0,_0x216bd9);}async[_0x4abdca(0x494,0x42f,0x496,0x493)](_0x5acfe2,_0x77b6f6){const _0x4429cc={_0x5aec70:0x246,_0x5150ac:0x1f3,_0x5a6db3:0x325,_0x213475:0x367,_0x46b493:0x36e,_0x4c6443:0x2d6,_0x248f2a:0x2c3,_0x36a288:0x33f,_0x1aa899:0x423,_0x4cc73f:0x385},_0x1a2999={_0x1667ac:0xe5},_0x470f0a={_0x1f9a4e:0x110,_0x24b58e:0x17d};function _0x365d93(_0x299e6e,_0xd7029d,_0x4b0fef,_0x2918bf){return _0x3921cc(_0x299e6e-_0x470f0a._0x1f9a4e,_0x299e6e- -0x53,_0xd7029d,_0x2918bf-_0x470f0a._0x24b58e);}const _0x9f6970=this[_0x365d93(0x28f,0x319,_0x4429cc._0x5aec70,_0x4429cc._0x5150ac)](_0x5acfe2);function _0x998e2d(_0x3e8cbc,_0x5395d2,_0x3a7239,_0x21e998){return _0x4abdca(_0x3e8cbc-_0x1a2999._0x1667ac,_0x3e8cbc- -0x134,_0x3a7239-0x138,_0x3a7239);}const _0x1fd74a=await this['router'][_0x998e2d(_0x4429cc._0x5a6db3,_0x4429cc._0x213475,_0x4429cc._0x46b493,0x3bd)](_0x9f6970,{'mode':_0x365d93(0x2bc,_0x4429cc._0x4c6443,_0x4429cc._0x248f2a,_0x4429cc._0x36a288)});return this[_0x998e2d(0x39e,0x43b,_0x4429cc._0x1aa899,_0x4429cc._0x4cc73f)](_0x9f6970,_0x1fd74a,_0x77b6f6);}async*[_0x3921cc(0x2a6,0x2d9,0x2a0,0x309)](_0x1c8182,_0xb05153){const _0x3cfe91={_0x2df9db:0x2f0,_0x4dca50:0x32b,_0x515be9:0x388,_0x35bd5b:0x58,_0x1397e5:0x1d,_0x42641a:0x9d,_0x59df43:0x75,_0x28425d:0x4a,_0x58b1a8:0x335,_0x236dac:0x3fe,_0x41571e:0x4bd,_0x536ad5:0x503},_0x2ee70a={_0x4b38ac:0x3ee,_0x5e817a:0x1bc},_0x469f62={_0x344211:0xa6},_0x5cbd46=this[_0x3f99f9(_0x3cfe91._0x2df9db,_0x3cfe91._0x4dca50,_0x3cfe91._0x515be9,0x424)](_0x1c8182);function _0x3f99f9(_0x3d6628,_0x1b8b61,_0x1fb28b,_0x519989){return _0x3921cc(_0x3d6628-0x50,_0x1fb28b-_0x469f62._0x344211,_0x519989,_0x519989-0x198);}function _0xb15918(_0x181cc2,_0x2e30a3,_0x5a28b9,_0x431bbc){return _0x4abdca(_0x181cc2-0xe0,_0x5a28b9- -_0x2ee70a._0x4b38ac,_0x5a28b9-_0x2ee70a._0x5e817a,_0x2e30a3);}const _0x80df6e=await this[_0xb15918(_0x3cfe91._0x35bd5b,-_0x3cfe91._0x1397e5,_0x3cfe91._0x42641a,0x1b)][_0xb15918(_0x3cfe91._0x59df43,0x60,0x6b,_0x3cfe91._0x28425d)](_0x5cbd46,{'mode':_0x3f99f9(0x3e7,_0x3cfe91._0x58b1a8,0x35a,_0x3cfe91._0x236dac)});yield*this[_0x3f99f9(_0x3cfe91._0x41571e,_0x3cfe91._0x536ad5,0x480,0x4b7)](_0x5cbd46,_0x80df6e,_0xb05153);}async[_0x4abdca(0x417,0x4d2,0x595,0x530)](_0x157ff5,_0x30b4e8,_0x45371b){const _0x59e53d={_0x3a2557:0x144,_0x2a653f:0x2f,_0xac4839:0x48,_0x4ac9b6:0x34,_0x193794:0x2d,_0x51bad1:0x4c4,_0x15a619:0x4e4,_0x409234:0x540,_0x1a961a:0xb,_0x27ae7b:0x97,_0x4d4010:0x1d8,_0x53cd71:0x10d,_0x4fd621:0x13f,_0x27ebf9:0x1c0,_0x41c6a5:0x425,_0xcfd981:0x186,_0x3c7d6d:0x1b8,_0x5a7d9d:0x123,_0x596a13:0x48d,_0x18a7de:0x49a,_0x3d6f67:0x57,_0x370928:0x1c0,_0x36719d:0x12f},_0x336fcd={_0x476247:0x55},_0x7436b={_0x362247:0x134},_0x528573=this[_0x3a9747(0x8e,0xfa,_0x59e53d._0x3a2557,-_0x59e53d._0x2a653f)](_0x157ff5),_0x2041da=this[_0x3a9747(_0x59e53d._0xac4839,_0x59e53d._0x4ac9b6,-_0x59e53d._0x193794,0x9b)](_0x30b4e8);if(_0x2041da['transport']===_0x4fb9e7(_0x59e53d._0x51bad1,0x4e9,_0x59e53d._0x15a619,_0x59e53d._0x409234)){const _0x119cd9=await this[_0x3a9747(0x32,-_0x59e53d._0x1a961a,0x1c,_0x59e53d._0x27ae7b)](_0x528573,_0x2041da,![],_0x45371b?.['signal']);if(!_0x119cd9['ok'])throw await this['toApiError'](_0x119cd9);if(!_0x2041da['parseResponse'])throw new Error('Surface\x20'+_0x30b4e8+_0x3a9747(0x149,_0x59e53d._0x4d4010,_0x59e53d._0x53cd71,0x130));return _0x2041da[_0x3a9747(_0x59e53d._0x4fd621,0xbd,0x136,_0x59e53d._0x27ebf9)](await _0x119cd9[_0x4fb9e7(_0x59e53d._0x41c6a5,0x3b5,0x4b3,0x3bc)](),_0x528573);}let _0x20fed9;function _0x3a9747(_0x1dd0b6,_0x163ae5,_0x5c258a,_0x2ec2f4){return _0x4abdca(_0x1dd0b6-0x30,_0x1dd0b6- -0x3f4,_0x5c258a-_0x7436b._0x362247,_0x163ae5);}for await(const _0x5d6fce of this[_0x3a9747(_0x59e53d._0xcfd981,0x239,_0x59e53d._0x3c7d6d,_0x59e53d._0x5a7d9d)](_0x528573,_0x30b4e8,_0x45371b)){_0x5d6fce[_0x4fb9e7(0x44a,0x4b6,_0x59e53d._0x596a13,_0x59e53d._0x18a7de)]===_0x3a9747(0x6f,0xe2,-_0x59e53d._0x3d6f67,-0x16)&&(_0x20fed9=_0x5d6fce[_0x3a9747(0xfd,0x103,_0x59e53d._0x370928,_0x59e53d._0x36719d)]);}function _0x4fb9e7(_0xb60fe4,_0x5d41c7,_0xf7500a,_0x126fa4){return _0x4abdca(_0xb60fe4-0x3a,_0xb60fe4- -_0x336fcd._0x476247,_0xf7500a-0x16f,_0x5d41c7);}if(!_0x20fed9)throw new Error('Surface\x20'+_0x30b4e8+'\x20did\x20not\x20produce\x20a\x20final\x20response');return _0x20fed9;}async*['streamViaSurface'](_0x2a28ad,_0x1c9fd2,_0x2a0a5b){const _0x13897f={_0x247936:0x110,_0xb6d866:0x1a0,_0x58b5cf:0x86,_0x258397:0x11a,_0x381540:0xa7,_0x3f7ad2:0x127,_0x303caa:0x1bd,_0x5792e8:0x66,_0x34b691:0x40,_0x50a76a:0x72,_0x1d5504:0x1fb,_0x54cb17:0x1f1,_0x37aed1:0x161,_0x4dac4c:0xcc,_0x152848:0x131,_0x1d6441:0x6f,_0x1fcbd5:0x212,_0x2a3fb0:0x13b,_0x43838f:0x84},_0x36de76={_0x5a2472:0xaa,_0x49ac51:0x2f2,_0x5f331c:0xa0};function _0x5aa4d0(_0x38ea80,_0x17c3c3,_0x962b20,_0x43a8a9){return _0x4abdca(_0x38ea80-0x14d,_0x38ea80- -0x372,_0x962b20-0x102,_0x43a8a9);}function _0x53c7ec(_0x2fe970,_0x3825bf,_0x53fe28,_0x278d84){return _0x3921cc(_0x2fe970-_0x36de76._0x5a2472,_0x3825bf- -_0x36de76._0x49ac51,_0x2fe970,_0x278d84-_0x36de76._0x5f331c);}const _0x2c42ff=this[_0x5aa4d0(_0x13897f._0x247936,_0x13897f._0xb6d866,0x189,0x125)](_0x2a28ad),_0x358d7c=this[_0x5aa4d0(0xca,0xc8,0x120,_0x13897f._0x58b5cf)](_0x1c9fd2);if(_0x358d7c[_0x5aa4d0(_0x13897f._0x258397,0x139,0x109,_0x13897f._0x381540)]===_0x5aa4d0(0x1a7,_0x13897f._0x3f7ad2,0x194,_0x13897f._0x303caa)){yield{'type':_0x53c7ec(0x26,-0x2f,0x3f,-_0x13897f._0x5792e8),'response':await this[_0x53c7ec(0x32,_0x13897f._0x34b691,_0x13897f._0x50a76a,0x5)](_0x2c42ff,_0x1c9fd2,_0x2a0a5b)};return;}if(_0x358d7c[_0x5aa4d0(_0x13897f._0x258397,0x12b,0xc2,0x63)]===_0x5aa4d0(_0x13897f._0x1d5504,0x1f3,_0x13897f._0x54cb17,_0x13897f._0x37aed1)){yield*this[_0x53c7ec(_0x13897f._0x4dac4c,0x76,_0x13897f._0x152848,_0x13897f._0x1d6441)](_0x2c42ff,_0x358d7c,_0x2a0a5b?.[_0x5aa4d0(0x1ee,0x253,_0x13897f._0x1fcbd5,_0x13897f._0x2a3fb0)]);return;}yield*this[_0x53c7ec(0x5,0x84,_0x13897f._0x43838f,0x100)](_0x2c42ff,_0x358d7c,_0x2a0a5b?.['signal']);}async[_0x4abdca(0x371,0x435,0x4b2,0x3fa)](_0x67cc00){const _0x4707a7={_0x342037:0x29f,_0x52dd28:0x275,_0x1c6bbc:0xe6,_0x339f5a:0xad},_0xd28372={_0x318063:0x36,_0x59e8a4:0x5d7},_0x8aa109={_0x5b42d6:0x1a9,_0x3057b0:0x109},_0x577191={_0x395a62:0x521,_0x461322:0x4de,_0xee5778:0x467,_0x5d519f:0x32,_0x52ba76:0x61,_0x4ab5ac:0x4d0,_0x2a3918:0x4f3,_0x21d3d5:0x7b,_0x28c37d:0xff,_0x87b15b:0x23,_0x1d7768:0x4ea,_0x6a9c91:0x468,_0x338993:0x103,_0x1523e1:0x9a,_0x4ff74c:0x80,_0xedd03:0x93,_0x188585:0xa7,_0x51304b:0x7,_0x3d346f:0x6b,_0x345870:0x16,_0x136774:0xb3,_0x50892c:0xb4,_0x556292:0x4fb,_0x11c7ce:0x4d2,_0x476c0b:0x55e,_0x9c79c4:0x50d,_0xf9b1ae:0x42,_0x57225f:0x52,_0x29a59c:0x37,_0x512853:0x404,_0x567b32:0x510,_0x8aaf3:0x4f1,_0x37cde2:0x4ff,_0x51e61b:0x8e,_0x4d17b6:0xb,_0x186ad0:0x4df,_0x2fe477:0x57c},_0x2be242={_0x197a63:0x28a},_0x45f971=async()=>{const _0x3b2038={_0x2e01be:0x265},_0x20ffdc=this[_0x4d4988(0x555,_0x577191._0x395a62,_0x577191._0x461322,_0x577191._0xee5778)]?await this[_0x57767b(-0x78,_0x577191._0x5d519f,-_0x577191._0x52ba76,0x36)][_0x57767b(-0xb0,-0x50,-0x1,0x58)](_0x67cc00[_0x4d4988(_0x577191._0x4ab5ac,0x539,_0x577191._0x2a3918,0x50f)]):void 0x0,_0x2cba2d=this[_0x57767b(-0x60,-_0x577191._0x21d3d5,-_0x577191._0x28c37d,_0x577191._0x87b15b)][_0x4d4988(0x3b2,0x46f,_0x577191._0x1d7768,_0x577191._0x6a9c91)](this[_0x57767b(_0x577191._0x338993,_0x577191._0x1523e1,_0x577191._0x4ff74c,_0x577191._0xedd03)],_0x20ffdc);if(!_0x2cba2d)throw this['createMissingCredentialError']();function _0x57767b(_0x456aa4,_0x3d479e,_0x5dff92,_0x31a1e7){return _0x6b39(_0x3d479e- -_0x3b2038._0x2e01be,_0x456aa4);}function _0x4d4988(_0x583496,_0x393cad,_0x56e2db,_0x4cecdc){return _0x6b39(_0x393cad-_0x2be242._0x197a63,_0x4cecdc);}const _0x5df75f=await this[_0x57767b(_0x577191._0x188585,_0x577191._0x51304b,-_0x577191._0x3d346f,-_0x577191._0x345870)]({'body':_0x67cc00['body'],'credential':_0x2cba2d,'session':_0x20ffdc,'stream':![]},{'accept':_0x67cc00[_0x4d4988(0x43c,0x47e,0x3e2,0x4e1)]??_0x57767b(-_0x577191._0x136774,-0x8,_0x577191._0x50892c,0x2d),'includeContentType':_0x67cc00[_0x4d4988(0x503,0x510,0x4bc,0x523)]===_0x4d4988(0x463,_0x577191._0x556292,0x482,0x5bd)});return this[_0x4d4988(_0x577191._0x11c7ce,_0x577191._0x476c0b,0x578,_0x577191._0x9c79c4)](''+this[_0x57767b(0x13,-0x7b,0x3d,-_0x577191._0xf9b1ae)][_0x57767b(0x29,_0x577191._0x57225f,-_0x577191._0x29a59c,0xb7)](this['baseUrl'],_0x20ffdc)+_0x67cc00[_0x4d4988(_0x577191._0x512853,0x41b,0x36a,0x360)],{'method':_0x67cc00[_0x4d4988(0x4af,_0x577191._0x567b32,_0x577191._0x8aaf3,_0x577191._0x37cde2)],'headers':_0x5df75f,..._0x67cc00[_0x57767b(-_0x577191._0x51e61b,_0x577191._0x4d17b6,0xad,-0xb9)]!==void 0x0?{'body':JSON[_0x4d4988(_0x577191._0x186ad0,_0x577191._0x2fe477,0x5da,0x53c)](_0x67cc00['body'])}:{},'signal':_0x67cc00['signal']});};function _0xe1ca4(_0x4b0782,_0x19124d,_0x39c186,_0x11e1ba){return _0x3921cc(_0x4b0782-_0x8aa109._0x5b42d6,_0x4b0782- -_0x8aa109._0x3057b0,_0x19124d,_0x11e1ba-0x70);}function _0x3ccec4(_0xd6f620,_0x708d0d,_0x4b57d3,_0xb1b505){return _0x4abdca(_0xd6f620-_0xd28372._0x318063,_0x4b57d3- -_0xd28372._0x59e8a4,_0x4b57d3-0x128,_0x708d0d);}const _0x6c7710=await _0x45f971();if(_0x6c7710['status']!==0x191||!this[_0xe1ca4(_0x4707a7._0x342037,_0x4707a7._0x52dd28,0x2e5,0x338)])return _0x6c7710;return this[_0x3ccec4(-0x13f,-0xbf,-0x8f,-_0x4707a7._0x1c6bbc)][_0x3ccec4(-0x177,-0x1ec,-0x127,-_0x4707a7._0x339f5a)](),_0x45f971();}[_0x4abdca(0x3c8,0x42e,0x3db,0x494)](){const _0x2ccb7f={_0x4b48e9:0x41a,_0xaeb2c8:0x43c,_0x2b2f82:0x3ab,_0x3962f3:0x3ad},_0x1168bd={_0x31ae97:0xdc,_0x371bb1:0x11f},_0x1a345d={_0xa9aaa6:0x10,_0x24cb6a:0x1e2};function _0x5c46c8(_0x173d74,_0x5e51f7,_0x53940d,_0x15753c){return _0x3921cc(_0x173d74-_0x1a345d._0xa9aaa6,_0x53940d-_0x1a345d._0x24cb6a,_0x173d74,_0x15753c-0x15e);}function _0x307f56(_0x2ab7c4,_0x5532a4,_0x3ee1c0,_0x48facb){return _0x3921cc(_0x2ab7c4-_0x1168bd._0x31ae97,_0x3ee1c0-_0x1168bd._0x371bb1,_0x2ab7c4,_0x48facb-0x7a);}return this[_0x307f56(0x4c9,0x4ac,_0x2ccb7f._0x4b48e9,0x3f1)][_0x307f56(_0x2ccb7f._0xaeb2c8,_0x2ccb7f._0x2b2f82,_0x2ccb7f._0x3962f3,0x3a7)]();}async[_0x4abdca(0x47b,0x51d,0x5d6,0x4a2)](_0x52ed79,_0x463553){const _0x5138cd={_0x14eebe:0x508,_0x4e307d:0x4cf,_0x51f3bd:0x566,_0x42efa7:0x73},_0xae2e0f={_0x156658:0x32f},_0x2d9fb6={_0x3068ba:0x1b6,_0xf89b7f:0x20d};function _0x5da603(_0x3bcc2e,_0x359ee6,_0x298612,_0x2fd07c){return _0x3921cc(_0x3bcc2e-_0x2d9fb6._0x3068ba,_0x359ee6-_0x2d9fb6._0xf89b7f,_0x3bcc2e,_0x2fd07c-0x1c6);}function _0x58f48d(_0x4af755,_0x412b31,_0x5df85e,_0x36d670){return _0x3921cc(_0x4af755-0x1ba,_0x36d670- -_0xae2e0f._0x156658,_0x5df85e,_0x36d670-0x2c);}return await this[_0x5da603(0x550,_0x5138cd._0x14eebe,_0x5138cd._0x4e307d,_0x5138cd._0x51f3bd)][_0x58f48d(-0xa,-0x2d,_0x5138cd._0x42efa7,0x4e)](_0x52ed79,_0x463553);}['mapApiError'](_0x50db5d){const _0x3e4f3c={_0x127fbc:0x288},_0x15fcd7={_0x5e162b:0x1ec};function _0x736288(_0x23d7f6,_0x311442,_0x17c8ae,_0x35d580){return _0x4abdca(_0x23d7f6-0x1bb,_0x35d580- -_0x15fcd7._0x5e162b,_0x17c8ae-0x190,_0x17c8ae);}return this[_0x736288(0x246,_0x3e4f3c._0x127fbc,0x1f6,0x2af)]['mapApiError'](_0x50db5d);}async['toApiError'](_0x3665c5){const _0x131fd2={_0x555b3e:0x128,_0x474cd9:0x14c,_0xdc5497:0x5a,_0x1dc76f:0x20,_0x1e039a:0x42},_0x581209={_0x432e2f:0xb0};function _0x55674a(_0x5b4da3,_0x573ae9,_0x1f78a9,_0x267855){return _0x3921cc(_0x5b4da3-0x148,_0x267855- -0x3c8,_0x573ae9,_0x267855-0x1c9);}function _0x1ee744(_0x29d3b7,_0x3733eb,_0x5abf83,_0x1aafe9){return _0x4abdca(_0x29d3b7-0x11,_0x29d3b7- -0x1da,_0x5abf83-_0x581209._0x432e2f,_0x3733eb);}return await this[_0x55674a(-_0x131fd2._0x555b3e,-_0x131fd2._0x474cd9,-0x18b,-0xcd)][_0x55674a(_0x131fd2._0xdc5497,-0xc1,_0x131fd2._0x1dc76f,-_0x131fd2._0x1e039a)](_0x3665c5);}[_0x4abdca(0x4f9,0x43c,0x4cc,0x4ae)](_0x488d8a){const _0x293cdb={_0x3bac37:0x643,_0x52dc03:0x9a,_0xcabdf7:0x10e,_0x9b7277:0x78,_0x4860b5:0x45},_0x1c50bd={_0x3672bb:0x1b1,_0x478ec3:0x157},_0x1b72fc=this[_0x554da6(0x66c,_0x293cdb._0x3bac37,0x5a6,0x661)][_0xbe58b6(-0x3e,-0x71,-_0x293cdb._0x52dc03,-_0x293cdb._0xcabdf7)](_0x488d8a);function _0x554da6(_0x396a1f,_0x42c7c1,_0x4e1050,_0x1f6479){return _0x4abdca(_0x396a1f-_0x1c50bd._0x3672bb,_0x1f6479-0xd0,_0x4e1050-_0x1c50bd._0x478ec3,_0x42c7c1);}if(!_0x1b72fc)throw new Error(_0xbe58b6(0x9a,_0x293cdb._0x9b7277,0xe3,_0x293cdb._0x4860b5)+_0x488d8a);function _0xbe58b6(_0x56ffc6,_0x42f314,_0x5b1c85,_0x20fa3d){return _0x3921cc(_0x56ffc6-0x117,_0x42f314- -0x331,_0x56ffc6,_0x20fa3d-0x8b);}return _0x1b72fc;}async[_0x3921cc(0x311,0x2d8,0x32c,0x384)](_0x5d514f,_0x1d6658){const _0x5b1105={_0x11c363:0x169,_0x4bbf23:0x142,_0x2929bc:0x1b2,_0x13261e:0x181,_0x25b102:0x1d9,_0x2922be:0x35f,_0x2b6e4a:0x312,_0x3fde00:0x40d,_0x1275ca:0x39d,_0x428cd1:0x2b5,_0x57fd14:0x44,_0xc3fca3:0xda,_0x16360d:0x3c4,_0x34192c:0x3c5,_0x5cf9e3:0x339,_0x126d29:0x3b4,_0x1aec8a:0x330,_0xa6871e:0x1c9,_0x2b4955:0x2e5,_0x207010:0x3f0,_0x408106:0x241,_0x297528:0x1dc},_0x3b6651={_0x23859e:0xf5,_0x7e828a:0x9e};function _0x340ce2(_0x18a4ee,_0x1a873e,_0x5a3eea,_0x209f15){return _0x4abdca(_0x18a4ee-0x98,_0x18a4ee- -_0x3b6651._0x23859e,_0x5a3eea-_0x3b6651._0x7e828a,_0x5a3eea);}function _0x361ef2(_0x470ee8,_0xe33ca1,_0x227349,_0x4d2a8e){return _0x3921cc(_0x470ee8-0x1ed,_0xe33ca1- -0x4ea,_0x227349,_0x4d2a8e-0x12);}const _0x2b226f=toModelRequest(_0x5d514f),_0x513c2c=await prepareProviderRequest(_0x2b226f,{'sessionManager':this[_0x361ef2(-_0x5b1105._0x11c363,-_0x5b1105._0x4bbf23,-_0x5b1105._0x2929bc,-_0x5b1105._0x13261e)],'requestMutators':this[_0x361ef2(-0x24a,-_0x5b1105._0x25b102,-0x21a,-0x29b)],'signal':_0x1d6658}),_0x3eb8c3=toChatRequest(_0x513c2c[_0x340ce2(0x335,0x3d9,_0x5b1105._0x2922be,0x3d3)]),_0x53a536=this[_0x340ce2(0x3a6,_0x5b1105._0x2b6e4a,_0x5b1105._0x3fde00,_0x5b1105._0x1275ca)][_0x361ef2(-0x2ac,-0x1f4,-0x201,-_0x5b1105._0x428cd1)](this[_0x361ef2(-_0x5b1105._0x57fd14,-_0x5b1105._0xc3fca3,-0x19c,-0xca)],_0x513c2c[_0x340ce2(0x354,_0x5b1105._0x16360d,0x3cd,_0x5b1105._0x34192c)]);if(!_0x53a536)throw this[_0x340ce2(_0x5b1105._0x5cf9e3,_0x5b1105._0x126d29,_0x5b1105._0x1aec8a,0x363)]();return{'baseUrl':this['providerAdapter'][_0x361ef2(-0xf7,-0x122,-0x164,-_0x5b1105._0xa6871e)](this[_0x340ce2(0x366,_0x5b1105._0x2b4955,_0x5b1105._0x207010,0x338)],_0x513c2c['session']),'credential':_0x53a536,'request':_0x3eb8c3,'session':_0x513c2c[_0x361ef2(-0x250,-_0x5b1105._0x408106,-_0x5b1105._0x297528,-0x1f3)]};}['applyModelDefaults'](_0xa73de6){const _0x54c3e2={_0x42786a:0x15b,_0x4d1523:0x167,_0x496989:0x12b,_0x5b9d5c:0xfe},_0x445414={_0xd12ab9:0x133,_0x2fe27a:0x633,_0x41bae2:0x80},_0x2ac2c2={_0x1b65e6:0xfe,_0x4b5b8a:0x1ae};function _0x12aa0c(_0x3bbbb4,_0xfa65ba,_0x36a3b7,_0x2b5150){return _0x4abdca(_0x3bbbb4-0x7,_0xfa65ba-_0x2ac2c2._0x1b65e6,_0x36a3b7-_0x2ac2c2._0x4b5b8a,_0x3bbbb4);}function _0x13bc7d(_0x1d37cb,_0x6eee30,_0x39e537,_0x5d1c05){return _0x4abdca(_0x1d37cb-_0x445414._0xd12ab9,_0x1d37cb- -_0x445414._0x2fe27a,_0x39e537-_0x445414._0x41bae2,_0x5d1c05);}return{...structuredClone(_0xa73de6),..._0xa73de6[_0x13bc7d(-0x15b,-0x1e6,-0x13a,-0x1cb)]===void 0x0&&this[_0x13bc7d(-_0x54c3e2._0x42786a,-_0x54c3e2._0x4d1523,-0xdc,-0x141)]!==void 0x0?{'reasoning':structuredClone(this[_0x13bc7d(-_0x54c3e2._0x42786a,-0x178,-_0x54c3e2._0x496989,-_0x54c3e2._0x5b9d5c)])}:{}};}async[_0x3921cc(0x2e3,0x286,0x24f,0x1f6)](_0x4642f2,_0x46fcaa,_0xb68be,_0x196fbe){const _0x2834a9={_0x46791e:0x42,_0x4a4197:0x4c,_0x44029e:0x231,_0x20d18c:0xc2,_0x116c5b:0x18c,_0x39bc32:0x17a,_0x1aed7e:0x15b,_0x1b699d:0x67b,_0x4d0c42:0x618,_0x567fae:0x55a},_0x3b6253={_0x23a5e2:0x5c,_0x1e41c8:0x2b5},_0xdfb889={_0x3a6189:0xad,_0x56d6ff:0xf0},_0x1de3d8={_0x33475b:0x3db,_0x19b3ba:0x360,_0xf7755e:0x318,_0xabf744:0x31b,_0xf7fe18:0x3c5,_0x44236b:0x329,_0xe1694b:0x2a4,_0x19e24c:0x341,_0x42907d:0x269,_0x5c40c3:0x2b7,_0x7cbd53:0x172,_0x2c5da3:0x31f,_0x13605a:0x31d,_0x1b055b:0x3ae,_0x53edac:0x434,_0x195f87:0x39c,_0x16b32e:0x25a,_0x568fb8:0x1f6,_0xa60a7a:0x236,_0x32df71:0x28a,_0x4ec2e7:0x182,_0xccfe29:0x4cd,_0x429633:0x46a,_0x776c91:0x30a,_0x2fca12:0x3eb,_0x1da961:0x34e,_0x243f0d:0x45e,_0x395da3:0x484,_0x262c6b:0x320,_0x196a2c:0x403,_0xc513b2:0x3c2,_0x41f0cb:0x31e,_0x5e0cdd:0x2ee,_0x576616:0x322,_0x37b640:0x2cb},_0x5ad7c1={_0x3e819e:0xad},_0x4a1b7b=async()=>{const _0x1bc2ab={_0x416964:0x1b0},_0x2fea1c=await this['prepareChatRequest'](_0x4642f2,_0x196fbe),_0x1e15dd=_0x46fcaa[_0x4cd3ea(_0x1de3d8._0x33475b,_0x1de3d8._0x19b3ba,_0x1de3d8._0xf7755e,_0x1de3d8._0xabf744)](_0x2fea1c[_0x5d0aa3(0x2a7,0x295,_0x1de3d8._0xf7fe18,_0x1de3d8._0x44236b)]);function _0x5d0aa3(_0x129bb5,_0x1792bf,_0xc59c91,_0x1060ef){return _0x6b39(_0x1060ef-_0x1bc2ab._0x416964,_0x129bb5);}if(!_0x1e15dd[_0x5d0aa3(_0x1de3d8._0xe1694b,0x380,0x2f9,_0x1de3d8._0x19e24c)])throw new Error('Surface\x20'+_0x46fcaa['id']+'\x20did\x20not\x20provide\x20an\x20HTTP\x20path');const _0x5932ea=await this[_0x5d0aa3(0x38a,0x441,0x442,0x41c)]({'request':_0x2fea1c[_0x4cd3ea(_0x1de3d8._0x42907d,0x226,_0x1de3d8._0x5c40c3,_0x1de3d8._0x7cbd53)],'body':_0x1e15dd[_0x4cd3ea(_0x1de3d8._0x2c5da3,_0x1de3d8._0x13605a,0x3dd,_0x1de3d8._0x1b055b)],'credential':_0x2fea1c[_0x5d0aa3(_0x1de3d8._0x53edac,0x455,0x43b,_0x1de3d8._0x195f87)],'session':_0x2fea1c[_0x4cd3ea(0x2cb,0x245,0x1d2,_0x1de3d8._0x16b32e)],'stream':_0xb68be},{'accept':_0x1e15dd[_0x5d0aa3(0x36c,0x3fc,0x37b,0x3a4)]??(_0xb68be?_0x4cd3ea(_0x1de3d8._0x568fb8,_0x1de3d8._0xa60a7a,_0x1de3d8._0x32df71,_0x1de3d8._0x4ec2e7):'application/json'),'includeContentType':_0x1e15dd['body']!==void 0x0});for(const [_0x48bb51,_0x3c8d11]of Object['entries'](_0x1e15dd[_0x5d0aa3(_0x1de3d8._0xccfe29,_0x1de3d8._0x429633,0x4fa,0x469)]??{})){_0x5932ea[_0x5d0aa3(0x39c,_0x1de3d8._0x776c91,_0x1de3d8._0x2fca12,_0x1de3d8._0x1da961)](_0x48bb51,_0x3c8d11);}function _0x4cd3ea(_0x5b64c9,_0x173054,_0x5b2760,_0x4b6d70){return _0x6b39(_0x173054-_0x5ad7c1._0x3e819e,_0x4b6d70);}return this[_0x5d0aa3(0x4d8,_0x1de3d8._0x243f0d,0x464,_0x1de3d8._0x395da3)](''+_0x2fea1c['baseUrl']+_0x1e15dd[_0x5d0aa3(0x321,_0x1de3d8._0x262c6b,_0x1de3d8._0x196a2c,_0x1de3d8._0x19e24c)],{'method':_0x4cd3ea(_0x1de3d8._0xc513b2,_0x1de3d8._0x41f0cb,0x30f,_0x1de3d8._0x5e0cdd),'headers':_0x5932ea,..._0x1e15dd[_0x4cd3ea(_0x1de3d8._0x576616,0x31d,_0x1de3d8._0x37b640,0x35c)]!==void 0x0?{'body':JSON[_0x4cd3ea(0x461,0x39f,0x394,0x312)](_0x1e15dd['body'])}:{},'signal':_0x196fbe});},_0x488fe6=await _0x4a1b7b();function _0x12803a(_0x13be9d,_0x651ec3,_0x53432e,_0x599b73){return _0x3921cc(_0x13be9d-_0xdfb889._0x3a6189,_0x599b73- -0x22e,_0x53432e,_0x599b73-_0xdfb889._0x56d6ff);}if(_0x488fe6[_0x12803a(_0x2834a9._0x46791e,-_0x2834a9._0x4a4197,-0x6,0x65)]!==0x191||!this[_0x12803a(_0x2834a9._0x44029e,_0x2834a9._0x20d18c,_0x2834a9._0x116c5b,_0x2834a9._0x39bc32)])return _0x488fe6;this[_0x12803a(_0x2834a9._0x1aed7e,0x11d,0x119,_0x2834a9._0x39bc32)][_0x169f8c(_0x2834a9._0x1b699d,_0x2834a9._0x4d0c42,0x5c5,_0x2834a9._0x567fae)]();function _0x169f8c(_0x2c39b6,_0x1c677b,_0xa2bc07,_0x21a730){return _0x3921cc(_0x2c39b6-_0x3b6253._0x23a5e2,_0xa2bc07-_0x3b6253._0x1e41c8,_0x21a730,_0x21a730-0x10f);}return _0x4a1b7b();}async*['streamHttpSurface'](_0x5d1a38,_0x26c5b5,_0x1f4bf6){const _0x5d2e8c={_0x2c779e:0x54e,_0xb3393a:0x58d,_0x339999:0x83,_0x545749:0x92,_0x1b247f:0xf7,_0x5c447c:0xe7,_0x2de082:0xc3,_0xc50451:0x5c6,_0x284a1c:0x194,_0x2541cc:0x164},_0x435274={_0x18f7c7:0x434,_0x5e7725:0xb},_0x55e37c=await this[_0x5a1408(0x4c4,_0x5d2e8c._0x2c779e,0x4fc,_0x5d2e8c._0xb3393a)](_0x5d1a38,_0x26c5b5,!![],_0x1f4bf6);function _0x5a1408(_0x89c2ca,_0x393198,_0x3b426d,_0xe668ae){return _0x3921cc(_0x89c2ca-0x1f2,_0x3b426d-0x276,_0x89c2ca,_0xe668ae-0x6c);}if(!_0x55e37c['ok'])throw await this[_0x5caf01(-0xf9,-0xd,-_0x5d2e8c._0x339999,-0xae)](_0x55e37c);const _0x4c65a1=_0x26c5b5[_0x5caf01(-0x127,-_0x5d2e8c._0x545749,-0xf9,-_0x5d2e8c._0x1b247f)]?.(_0x5d1a38);if(!_0x4c65a1?.[_0x5caf01(-_0x5d2e8c._0x5c447c,-0x15a,-_0x5d2e8c._0x2de082,-0x11c)])throw new Error(_0x5a1408(0x535,0x515,_0x5d2e8c._0xc50451,0x661)+_0x26c5b5['id']+_0x5caf01(-_0x5d2e8c._0x284a1c,-_0x5d2e8c._0x2541cc,-0xb6,-0x177));function _0x5caf01(_0x1fb2b0,_0x4222c6,_0x2567c6,_0x5b4601){return _0x3921cc(_0x1fb2b0-0x1eb,_0x5b4601- -_0x435274._0x18f7c7,_0x2567c6,_0x5b4601-_0x435274._0x5e7725);}for await(const _0x2da0b3 of iterateSseEvents(_0x55e37c,_0x1f4bf6)){yield*_0x4c65a1['consumeSseEvent'](_0x2da0b3);}yield{'type':'done','response':_0x4c65a1['finish']()};}async*[_0x4abdca(0x4cd,0x516,0x50c,0x460)](_0x1bf0b2,_0x3fc718,_0x27cd8c){const _0xe7a8e1={_0x2682fa:0x498,_0x5216da:0x4b0,_0x3c1e05:0x500,_0x3436cc:0x11c,_0x449a2d:0xe8,_0x348642:0x3,_0x3468c7:0x582,_0x247533:0x598,_0x456536:0x50c,_0x58e4c5:0x60,_0x25f835:0x13e,_0x2990b8:0xd5,_0x318e48:0x148,_0x159167:0x5c,_0x53a6d5:0x65,_0x1c9948:0x56,_0x40d667:0x2d,_0x1f8709:0x27,_0x33ef14:0x5d,_0x29ab27:0x109,_0x3ad6a3:0x1b2,_0x50ce47:0x14,_0x4b93bc:0x37,_0x1902f5:0xe2,_0x3b159f:0x67,_0x519501:0xf5,_0x453e3f:0x5ab,_0x409c86:0x5f0,_0x155f6a:0x54b,_0x5f5a9b:0x573,_0x2054bf:0x4e5,_0x599e99:0x5d8,_0xbf93f8:0x51a,_0x27e5bd:0x559,_0x12ff10:0xd0,_0xb9cbbe:0x9,_0x2e7d7c:0x84,_0xfb07a4:0x141,_0x1b44fb:0xaa,_0x2297d1:0x113,_0xc1ebfc:0x66b,_0x2c0d77:0x625,_0x15e74d:0x90,_0x43fe14:0x9e,_0x446ae5:0x54b,_0x38d923:0x5a3,_0x547c4c:0x550,_0x59baf0:0x560,_0x1a8de3:0x4eb,_0x488bfa:0x47e,_0x3d4dd8:0x5be,_0x1eb0aa:0x680,_0x185ac0:0x55a,_0x5bda16:0x5c8,_0x12e621:0x541,_0x454c0e:0x619,_0x5bb0eb:0x633,_0x334734:0x656,_0x29202b:0x114,_0x17b24a:0x11c,_0x210e5f:0x188,_0x589e35:0xc2,_0x1be238:0x559,_0x259821:0x626,_0x25cd99:0x56b,_0xd451ac:0x668,_0x46185d:0x5da,_0x356342:0x121,_0x463291:0x59,_0xb39cc1:0xac,_0x43268a:0x5a9,_0x494401:0x5a5,_0x701cf3:0x527,_0x709221:0xd3,_0x846c90:0x159,_0x204533:0x660,_0x379acb:0x4ff,_0x10361e:0x5bc,_0x3efbb6:0x5c4,_0x334b7b:0xcb},_0x26d6de={_0x53e3e9:0x41b},_0x8fd864={_0x2c670e:0xbb},_0x13f9cc=await this[_0x4af7d5(_0xe7a8e1._0x2682fa,_0xe7a8e1._0x5216da,_0xe7a8e1._0x3c1e05,0x533)](_0x1bf0b2,_0x27cd8c),_0x3cf8c1=_0x3fc718[_0x3f2035(0x1ce,_0xe7a8e1._0x3436cc,0x149,_0xe7a8e1._0x449a2d)](_0x13f9cc[_0x3f2035(-0x53,-0x8c,0xf,-_0xe7a8e1._0x348642)]);function _0x4af7d5(_0x387157,_0x599ebf,_0x304fb7,_0x2d16c2){return _0x4abdca(_0x387157-0xc4,_0x2d16c2-_0x8fd864._0x2c670e,_0x304fb7-0x1bc,_0x304fb7);}const _0x2f9e1c=_0x3fc718[_0x4af7d5(_0xe7a8e1._0x3468c7,0x56b,0x569,_0xe7a8e1._0x247533)]?.(_0x1bf0b2);if(!_0x2f9e1c?.[_0x4af7d5(0x46a,0x556,0x512,_0xe7a8e1._0x456536)])throw new Error(_0x3f2035(_0xe7a8e1._0x58e4c5,_0xe7a8e1._0x25f835,_0xe7a8e1._0x2990b8,_0xe7a8e1._0x318e48)+_0x3fc718['id']+'\x20cannot\x20parse\x20WebSocket\x20events');const _0x2d09aa=_0x3cf8c1[_0x3f2035(-_0xe7a8e1._0x159167,-_0xe7a8e1._0x53a6d5,_0xe7a8e1._0x1c9948,_0xe7a8e1._0x40d667)]??(_0x3cf8c1[_0x3f2035(0xbf,0x4d,_0xe7a8e1._0x1f8709,0x3a)]?(''+_0x13f9cc['baseUrl']+_0x3cf8c1['path'])[_0x3f2035(_0xe7a8e1._0x33ef14,0xef,_0xe7a8e1._0x29ab27,_0xe7a8e1._0x3ad6a3)](/^http:/,_0x3f2035(-0x5a,-_0xe7a8e1._0x50ce47,_0xe7a8e1._0x4b93bc,0xe9))[_0x3f2035(_0xe7a8e1._0x1902f5,_0xe7a8e1._0x3b159f,_0xe7a8e1._0x29ab27,_0xe7a8e1._0x519501)](/^https:/,'wss:'):void 0x0);if(!_0x2d09aa)throw new Error(_0x4af7d5(0x5ec,0x62e,0x66a,_0xe7a8e1._0x453e3f)+_0x3fc718['id']+_0x4af7d5(_0xe7a8e1._0x409c86,_0xe7a8e1._0x155f6a,0x554,0x59c));const _0x55d390=await this[_0x4af7d5(_0xe7a8e1._0x5f5a9b,0x534,0x56a,0x5d8)]({'request':_0x13f9cc[_0x4af7d5(0x4ac,_0xe7a8e1._0x5f5a9b,0x543,_0xe7a8e1._0x2054bf)],'body':_0x3cf8c1[_0x4af7d5(_0xe7a8e1._0x599e99,_0xe7a8e1._0xbf93f8,0x580,_0xe7a8e1._0x27e5bd)],'credential':_0x13f9cc[_0x3f2035(_0xe7a8e1._0x12ff10,0xfe,0x82,0x1e)],'session':_0x13f9cc[_0x3f2035(-0x42,-_0xe7a8e1._0xb9cbbe,0x2e,_0xe7a8e1._0x449a2d)],'stream':!![]},{'accept':_0x3cf8c1['accept']??_0x3f2035(_0xe7a8e1._0x2e7d7c,0x15b,0xf3,_0xe7a8e1._0xfb07a4),'includeContentType':![]});for(const [_0x3653fb,_0x4b1e0d]of Object[_0x3f2035(0x37,_0xe7a8e1._0x29ab27,_0xe7a8e1._0x1b44fb,_0xe7a8e1._0x2297d1)](_0x3cf8c1[_0x4af7d5(0x63e,0x5d1,_0xe7a8e1._0xc1ebfc,_0xe7a8e1._0x2c0d77)]??{})){_0x55d390[_0x3f2035(-_0xe7a8e1._0x15e74d,-0x6c,0x34,_0xe7a8e1._0x43fe14)](_0x3653fb,_0x4b1e0d);}_0x55d390['delete'](_0x4af7d5(_0xe7a8e1._0x446ae5,_0xe7a8e1._0x38d923,_0xe7a8e1._0x547c4c,_0xe7a8e1._0x59baf0));const _0x1037a4=this[_0x3f2035(0xb1,0x14d,0xb8,0x18)]({'headers':Object[_0x4af7d5(0x566,0x4d1,0x5e1,0x536)](_0x55d390['entries']()),'url':_0x2d09aa});function _0x3f2035(_0x5dcb29,_0x3e5cc6,_0x7b40bc,_0x1a8dbd){return _0x4abdca(_0x5dcb29-0x188,_0x7b40bc- -_0x26d6de._0x53e3e9,_0x7b40bc-0xa,_0x5dcb29);}try{throwIfAborted(_0x27cd8c);_0x1037a4[_0x4af7d5(_0xe7a8e1._0x1a8de3,_0xe7a8e1._0x488bfa,_0xe7a8e1._0x3d4dd8,0x527)]!==WebSocket[_0x4af7d5(0x64c,_0xe7a8e1._0x1eb0aa,_0xe7a8e1._0x185ac0,_0xe7a8e1._0x5bda16)]&&await waitForWebSocketOpen(_0x1037a4,_0x27cd8c);throwIfAborted(_0x27cd8c);_0x3cf8c1[_0x4af7d5(0x569,_0xe7a8e1._0x12e621,0x4e9,0x559)]!==void 0x0&&_0x1037a4[_0x4af7d5(0x5f6,_0xe7a8e1._0x454c0e,_0xe7a8e1._0x5bb0eb,_0xe7a8e1._0x334734)](JSON[_0x3f2035(_0xe7a8e1._0x29202b,_0xe7a8e1._0x17b24a,_0xe7a8e1._0x210e5f,_0xe7a8e1._0x589e35)](_0x3cf8c1[_0x4af7d5(0x4fe,0x581,0x5d4,_0xe7a8e1._0x1be238)]));for await(const _0x37bb50 of iterateWebSocketMessages(_0x1037a4,_0x27cd8c)){yield*_0x2f9e1c[_0x4af7d5(0x55a,0x49b,0x484,0x50c)](_0x37bb50);if(_0x2f9e1c[_0x4af7d5(_0xe7a8e1._0x259821,_0xe7a8e1._0x25cd99,_0xe7a8e1._0xd451ac,_0xe7a8e1._0x46185d)]?.())break;}yield{'type':'done','response':_0x2f9e1c[_0x3f2035(_0xe7a8e1._0x356342,_0xe7a8e1._0x463291,_0xe7a8e1._0xb39cc1,0x56)]()};}finally{_0x1037a4[_0x4af7d5(_0xe7a8e1._0x43268a,_0xe7a8e1._0x494401,0x539,_0xe7a8e1._0x701cf3)]===WebSocket[_0x3f2035(_0xe7a8e1._0x709221,_0xe7a8e1._0x846c90,0xf2,0xaf)]&&_0x1037a4['close'](0x3e8,_0x27cd8c?.[_0x4af7d5(_0xe7a8e1._0x204533,_0xe7a8e1._0x379acb,_0xe7a8e1._0x10361e,_0xe7a8e1._0x3efbb6)]?'aborted':_0x3f2035(0x3a,0xbd,_0xe7a8e1._0x334b7b,0x52));}}};async function createHttpError(_0x23c871){const _0x19058a={_0xd845ae:0x3f8,_0x297ce7:0x380,_0x5dac47:0x213,_0x4e5064:0x1ca,_0x38b87e:0x3df,_0x4ce758:0x436,_0x2d77eb:0x438,_0x2cfc8f:0x2e5,_0x1c3a8b:0x249,_0x29433f:0x232,_0x509ccf:0x28d},_0x463639={_0x57ffb6:0x1af,_0x16784c:0x120},_0x2599ec={_0x59dd45:0x53};function _0x70b80b(_0x5ed90e,_0x32158a,_0xde1147,_0x361559){return _0x3921cc(_0x5ed90e-0x0,_0x32158a- -0x61,_0x361559,_0x361559-_0x2599ec._0x59dd45);}function _0x5f0968(_0x5a799e,_0x5244db,_0x39ebe1,_0xd96729){return _0x4abdca(_0x5a799e-_0x463639._0x57ffb6,_0x5244db- -0x309,_0x39ebe1-_0x463639._0x16784c,_0x5a799e);}const _0x26b1cc=await _0x23c871[_0x70b80b(_0x19058a._0xd845ae,_0x19058a._0x297ce7,0x3fc,0x39f)](),_0x3757d8=_0x26b1cc[_0x5f0968(_0x19058a._0x5dac47,0x256,_0x19058a._0x4e5064,0x250)]()||_0x23c871['statusText']||_0x70b80b(_0x19058a._0x38b87e,0x39d,_0x19058a._0x4ce758,0x3d9);return new Error(_0x70b80b(0x390,0x38a,_0x19058a._0x2d77eb,_0x19058a._0x2cfc8f)+_0x23c871[_0x70b80b(_0x19058a._0x1c3a8b,_0x19058a._0x29433f,0x19f,_0x19058a._0x509ccf)]+':\x20'+_0x3757d8);}var AnthropicProviderAdapter=class{[_0x3921cc(0x371,0x2e9,0x3aa,0x2d6)];['headerResolver'];[_0x3921cc(0x263,0x2a5,0x29d,0x321)];constructor(_0xe74e6){const _0x25bccd={_0x15c1e4:0x304,_0x1fa4e7:0x24a,_0x46b3a1:0x2c0,_0x5ce56:0x30c,_0xeccd99:0x304,_0x21f049:0x414,_0x75a754:0x3f4,_0x54edd5:0x3a7},_0x222676={_0x42332d:0xca,_0x4b4a89:0x185},_0x26df69={_0x5cd5fa:0x182};this[_0x48d036(0x29d,_0x25bccd._0x15c1e4,_0x25bccd._0x1fa4e7,_0x25bccd._0x46b3a1)]=_0xe74e6[_0x48d036(_0x25bccd._0x5ce56,_0x25bccd._0xeccd99,0x2ef,0x367)],this[_0x48d036(_0x25bccd._0x21f049,_0x25bccd._0x75a754,0x33e,_0x25bccd._0x54edd5)]=_0xe74e6['headerResolver'];function _0x1b6f98(_0x4fd19e,_0x4349b0,_0x5546e1,_0x509071){return _0x4abdca(_0x4fd19e-0x87,_0x4fd19e- -0x3fe,_0x5546e1-_0x26df69._0x5cd5fa,_0x509071);}function _0x48d036(_0x1e1b26,_0x13659f,_0x2a7173,_0x2ac751){return _0x4abdca(_0x1e1b26-_0x222676._0x42332d,_0x13659f- -_0x222676._0x4b4a89,_0x2a7173-0x1e,_0x1e1b26);}this[_0x1b6f98(0x47,-0x5f,-0x5b,-0x36)]=_0xe74e6[_0x1b6f98(0x47,-0x2e,0xd7,0x108)];}[_0x3921cc(0x1cb,0x28e,0x279,0x1e0)](){const _0x342ce9={_0x55d21d:0x65,_0x25e4ab:0x117},_0x68a5c4={_0x49d20a:0x16c};function _0x59e86b(_0x47c897,_0x395ee8,_0x244452,_0x1c661a){return _0x4abdca(_0x47c897-0x14d,_0x395ee8- -0x4f3,_0x244452-_0x68a5c4._0x49d20a,_0x244452);}return new Error(_0x59e86b(0x67,_0x342ce9._0x55d21d,0x128,_0x342ce9._0x25e4ab));}async[_0x4abdca(0x49a,0x51d,0x47b,0x5cf)](_0x21cab3,_0xe57d2f){const _0x318a62={_0x5c54a9:0x48e,_0x42b4c4:0x3cf,_0x3e4cad:0x491,_0x2bd436:0x478,_0x4cba3e:0x2a3,_0x54d286:0x36c,_0x2651af:0x2d7,_0x4cc9bb:0x3e0,_0x38ecb1:0x1a7,_0x1c8f33:0x2e5,_0x34b7cd:0x219,_0x479bc8:0x250,_0x435d27:0x2af,_0x45ca0d:0x2ca,_0x4ca9df:0x45d,_0x3ebf54:0x1e3,_0x360af1:0x2d5,_0x404e8c:0x408,_0x443ef3:0x3a0,_0x349b50:0x413,_0x5caabd:0x4ba,_0x343130:0x4b7,_0xaec777:0x49b,_0xfd9df2:0x2a8,_0x104414:0x3d8,_0x2a7b3a:0x28f,_0x50a415:0x352,_0x3f5585:0x350},_0x3c6aa5={_0x108b79:0x72},_0x513f94=new Headers();_0x513f94[_0x19f4aa(0x219,0x21a,0x246,0x1c0)](_0x4d4154(_0x318a62._0x5c54a9,0x470,0x43b,0x4bb),_0xe57d2f['accept']),_0x513f94[_0x4d4154(0x3f3,0x344,0x3e5,0x33b)](_0x4d4154(0x376,0x41e,_0x318a62._0x42b4c4,_0x318a62._0x3e4cad),this['protocolVersion']);_0xe57d2f[_0x4d4154(0x31d,_0x318a62._0x2bd436,0x3c3,0x2fe)]!==![]&&_0x513f94[_0x19f4aa(0x219,_0x318a62._0x4cba3e,0x25f,0x29b)](_0x19f4aa(_0x318a62._0x54d286,_0x318a62._0x2651af,_0x318a62._0x4cc9bb,0x3bd),'application/json');this[_0x19f4aa(0x253,0x2e3,_0x318a62._0x38ecb1,_0x318a62._0x1c8f33)]==='bearer'?_0x513f94[_0x19f4aa(_0x318a62._0x34b7cd,_0x318a62._0x479bc8,_0x318a62._0x435d27,0x2d7)](_0x19f4aa(_0x318a62._0x45ca0d,0x36a,0x24f,0x2a4),'Bearer\x20'+_0x21cab3[_0x19f4aa(0x267,0x226,0x28d,0x293)][_0x4d4154(0x441,0x3ad,0x413,_0x318a62._0x4ca9df)]):_0x513f94[_0x19f4aa(0x219,0x2bf,_0x318a62._0x3ebf54,0x1d3)]('x-api-key',_0x21cab3[_0x19f4aa(0x267,0x249,_0x318a62._0x34b7cd,_0x318a62._0x360af1)][_0x4d4154(_0x318a62._0x404e8c,_0x318a62._0x443ef3,_0x318a62._0x349b50,0x378)]);function _0x19f4aa(_0x1dc18c,_0x12732b,_0x347673,_0x5869cf){return _0x3921cc(_0x1dc18c-0xdf,_0x1dc18c- -0x96,_0x347673,_0x5869cf-0xf7);}const _0x1c3ee7=await this['headerResolver']?.({'body':_0x21cab3[_0x4d4154(0x44d,_0x318a62._0x5caabd,_0x318a62._0x343130,_0x318a62._0xaec777)],'credential':_0x21cab3['credential'],'request':_0x21cab3[_0x19f4aa(0x1f4,0x1a9,_0x318a62._0xfd9df2,0x291)],'session':_0x21cab3['session'],'stream':_0x21cab3[_0x4d4154(_0x318a62._0x104414,0x422,0x3ea,0x41d)]});for(const [_0x2ea4e1,_0x52eecd]of Object[_0x19f4aa(_0x318a62._0x2a7b3a,0x2b7,_0x318a62._0x50a415,_0x318a62._0x3f5585)](_0x1c3ee7??{})){_0x513f94['set'](_0x2ea4e1,_0x52eecd);}function _0x4d4154(_0x36751f,_0x55b4ac,_0x1bbeed,_0x29820d){return _0x3921cc(_0x36751f-_0x3c6aa5._0x108b79,_0x1bbeed-0x136,_0x36751f,_0x29820d-0x133);}return _0x513f94;}[_0x4abdca(0x3a1,0x456,0x4de,0x3d4)](_0x2f2e2d){return _0x2f2e2d;}[_0x3921cc(0x3c8,0x3c8,0x41f,0x3d0)](_0x4c2b2,_0x11a44a){return resolveSessionBaseUrl(_0x4c2b2,_0x11a44a);}[_0x3921cc(0x2f7,0x2f6,0x338,0x292)](_0xf21065,_0x47ae4f){return resolveApiCredential(_0xf21065,_0x47ae4f);}async[_0x3921cc(0x34d,0x386,0x328,0x435)](_0x231890){return await createHttpError(_0x231890);}},AnthropicModel=class extends RoutedModel{constructor(_0x582f09={}){const _0x3604c9={_0x49f080:0xef,_0x5318bb:0x39,_0x4e6d45:0x90,_0x5707ca:0x2c,_0x2daddc:0x320,_0x341fa6:0x39f,_0x25ad98:0x2b7,_0x28a262:0x335,_0x3de6d3:0x293,_0x152f8b:0x2a0,_0x5189f7:0x325,_0x40e060:0x29f,_0x1e042f:0x303,_0x364f24:0x338,_0x5c7186:0x282,_0x41b8ef:0x21e,_0x40f24a:0x2d2,_0x16be05:0x2,_0x363243:0xa5,_0x212d25:0x79,_0x469c4c:0x75,_0x5c3d41:0x132,_0x51126c:0x80,_0x557c82:0x23,_0x2de8a9:0x265,_0x4e8b8e:0x286},_0x597999={_0x4aa6e1:0x1c3};function _0x4eef9e(_0xbe9896,_0x1c173,_0x44ade9,_0x30d9eb){return _0x3921cc(_0xbe9896-0x1ca,_0x1c173- -0x3d7,_0xbe9896,_0x30d9eb-0x16);}function _0x4c547d(_0xfab0b1,_0x5cdc31,_0x13ba58,_0x160314){return _0x3921cc(_0xfab0b1-0x1e6,_0x160314- -0x8b,_0x13ba58,_0x160314-_0x597999._0x4aa6e1);}super({'apiKey':_0x582f09[_0x4eef9e(_0x3604c9._0x49f080,_0x3604c9._0x5318bb,_0x3604c9._0x4e6d45,_0x3604c9._0x5707ca)],'baseUrl':trimTrailingSlashes(_0x582f09['baseUrl']??_0x4c547d(_0x3604c9._0x2daddc,0x32f,_0x3604c9._0x341fa6,0x357)),'fetch':_0x582f09[_0x4c547d(_0x3604c9._0x25ad98,0x29b,0x38e,0x2e9)],'maxTokens':_0x582f09[_0x4c547d(0x20a,0x263,_0x3604c9._0x28a262,_0x3604c9._0x3de6d3)]??0x4000,'model':_0x582f09[_0x4c547d(_0x3604c9._0x152f8b,_0x3604c9._0x5189f7,_0x3604c9._0x40e060,_0x3604c9._0x1e042f)]??_0x4c547d(0x2cc,_0x3604c9._0x364f24,0x297,_0x3604c9._0x5c7186),'reasoning':_0x582f09[_0x4c547d(_0x3604c9._0x41b8ef,0x28a,_0x3604c9._0x40f24a,0x2ad)],'providerAdapter':new AnthropicProviderAdapter({'authScheme':_0x582f09['authScheme']??'x-api-key','headerResolver':_0x582f09[_0x4eef9e(0x7e,_0x3604c9._0x16be05,-_0x3604c9._0x363243,_0x3604c9._0x212d25)],'protocolVersion':_0x582f09[_0x4eef9e(-_0x3604c9._0x469c4c,-_0x3604c9._0x5c3d41,-0x168,-0xfb)]??'2023-06-01'}),'providerSessionResolver':_0x582f09[_0x4eef9e(0x1b,-_0x3604c9._0x51126c,-0x10b,-_0x3604c9._0x557c82)],'requestMutators':_0x582f09[_0x4c547d(0x217,0x29b,_0x3604c9._0x2de8a9,_0x3604c9._0x4e8b8e)],'router':new StaticModelSurfaceRouter({'complete':ANTHROPIC_MESSAGES_SURFACE,'stream':ANTHROPIC_MESSAGES_STREAM_SURFACE}),'surfaces':createAnthropicSurfaces()});}['complete'](_0xe5e7e9,_0x157607){return this['completeViaSurface'](_0xe5e7e9,ANTHROPIC_MESSAGES_SURFACE,_0x157607);}['stream'](_0x2d9389,_0x1457c3){const _0x580d4d={_0x48d40c:0x37,_0x1c83a5:0x6e,_0x185377:0xcb},_0x7bc13e={_0x4c1041:0xf0};function _0x46bb57(_0x11abfd,_0x228054,_0x133ee2,_0x4c66db){return _0x3921cc(_0x11abfd-_0x7bc13e._0x4c1041,_0x11abfd- -0x411,_0x228054,_0x4c66db-0x1a9);}return this[_0x46bb57(-_0x580d4d._0x48d40c,_0x580d4d._0x1c83a5,-_0x580d4d._0x185377,-0xeb)](_0x2d9389,ANTHROPIC_MESSAGES_STREAM_SURFACE,_0x1457c3);}},OPENAI_CHAT_COMPLETIONS_SURFACE=_0x4abdca(0x623,0x5af,0x623,0x658),OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE=_0x4abdca(0x628,0x56f,0x58c,0x5e6),OPENAI_RESPONSES_SURFACE=_0x4abdca(0x564,0x4e5,0x4e1,0x562),OPENAI_RESPONSES_STREAM_SURFACE=_0x3921cc(0x324,0x2b7,0x219,0x259),OPENAI_RESPONSES_WEBSOCKET_SURFACE=_0x4abdca(0x4b5,0x56e,0x60d,0x52b),OpenAiApiError=class extends Error{[_0x4abdca(0x496,0x433,0x3ea,0x4f3)];['body'];constructor(_0x2372b8,_0x3cb4c5,_0x1ea2ff){const _0xdb8fca={_0x1acd4f:0x590,_0x52b9cb:0x57f,_0x3e8046:0x3ad,_0x2011fb:0x470,_0x266bf0:0x4f7},_0x186853={_0x2b6a9b:0x156},_0x4974d6={_0x8ce4da:0x12e,_0x37e89a:0x1cf};function _0x49cc5f(_0x2eaf62,_0x3dd862,_0xdc9225,_0x420997){return _0x4abdca(_0x2eaf62-_0x4974d6._0x8ce4da,_0x420997- -0x2a,_0xdc9225-_0x4974d6._0x37e89a,_0x2eaf62);}super(_0x1ea2ff);function _0xfe1f17(_0x19747a,_0x2dd85d,_0x185f55,_0x33d529){return _0x4abdca(_0x19747a-_0x186853._0x2b6a9b,_0x185f55-0xc,_0x185f55-0x10e,_0x2dd85d);}this[_0x49cc5f(0x544,0x4e2,_0xdb8fca._0x1acd4f,_0xdb8fca._0x52b9cb)]=_0x49cc5f(0x4ab,0x4aa,_0xdb8fca._0x3e8046,0x416),this['status']=_0x2372b8,this[_0x49cc5f(_0xdb8fca._0x2011fb,0x441,0x547,_0xdb8fca._0x266bf0)]=_0x3cb4c5;}},OpenAiResponsesStreamError=class extends Error{['code'];[_0x3921cc(0x1fd,0x293,0x340,0x2f7)];constructor(_0x3935d3,_0x10404f={}){const _0x543868={_0x35377c:0xef,_0x43e8ad:0x16c,_0x31cbbe:0x119,_0x21053f:0x57,_0x4d2766:0x172,_0xed23ce:0x5a1,_0x22d7ce:0x64f,_0x5d717a:0x229},_0x326c28={_0x42c4b4:0x2f,_0x271929:0xf5},_0x4b8005={_0x1df23c:0x698,_0x500120:0x108};super(_0x3935d3);function _0x1f6048(_0x72c1f6,_0x9f52fe,_0x2b0d05,_0x3dfc3e){return _0x4abdca(_0x72c1f6-0xa4,_0x72c1f6- -_0x4b8005._0x1df23c,_0x2b0d05-_0x4b8005._0x500120,_0x2b0d05);}this[_0x1f6048(-_0x543868._0x35377c,-0xc5,-0x181,-_0x543868._0x43e8ad)]='OpenAiResponsesStreamError';function _0x54044c(_0x46b4a5,_0x35624e,_0x4428db,_0x585d4a){return _0x4abdca(_0x46b4a5-0x187,_0x585d4a-_0x326c28._0x42c4b4,_0x4428db-_0x326c28._0x271929,_0x4428db);}this[_0x1f6048(-_0x543868._0x31cbbe,-_0x543868._0x21053f,-0x1a1,-_0x543868._0x4d2766)]=_0x10404f[_0x54044c(0x65f,_0x543868._0xed23ce,_0x543868._0x22d7ce,0x5ae)],this[_0x1f6048(-0x265,-0x1fc,-_0x543868._0x5d717a,-0x1be)]=_0x10404f['status'];}};function stringifySystem(_0x5d95b9){const _0x2399a1={_0x59a46f:0xd3,_0x4a66fc:0xd7,_0x4f7ce9:0x86,_0x87aaba:0x11},_0x56d81d={_0x325ade:0x10e,_0x2b9307:0xe2},_0x5a4713={_0x341f29:0x165};function _0x15f45e(_0x6865bc,_0x49125d,_0x2e1bf2,_0x1d14f0){return _0x3921cc(_0x6865bc-0x16e,_0x49125d- -0x17d,_0x2e1bf2,_0x1d14f0-_0x5a4713._0x341f29);}function _0x30f9ff(_0x1b8419,_0x3a18e6,_0x38ed71,_0x2a000d){return _0x3921cc(_0x1b8419-_0x56d81d._0x325ade,_0x1b8419- -0x332,_0x3a18e6,_0x2a000d-_0x56d81d._0x2b9307);}return _0x5d95b9[_0x30f9ff(_0x2399a1._0x59a46f,_0x2399a1._0x4a66fc,0xa5,_0x2399a1._0x4f7ce9)](_0x129e80=>_0x129e80[_0x15f45e(0x2dc,0x264,0x216,0x1fd)])[_0x30f9ff(-0x54,-0xe9,-_0x2399a1._0x87aaba,-0x106)]('\x0a\x0a');}function createToolDefinitions(_0x4c8865){const _0x554115={_0x1dae3b:0x11c,_0x5ed14c:0x1a0},_0x36bcf7={_0x3c9a75:0x79,_0x1f0aa3:0x39,_0x3a9a39:0x2e7},_0x159934={_0x409458:0x77,_0x3842b4:0x1ab},_0x2b443b={_0x5a78ee:0x3,_0x43f2d0:0x43f,_0x3a8a65:0x43};if(_0x4c8865['length']===0x0)return void 0x0;function _0x2f36b1(_0x4d901a,_0x1f98b2,_0x3c9ae9,_0x11667b){return _0x4abdca(_0x4d901a-0xe,_0x3c9ae9- -0x699,_0x3c9ae9-0x77,_0x1f98b2);}return _0x4c8865[_0x2f36b1(-0xbe,-_0x554115._0x1dae3b,-0xf4,-_0x554115._0x5ed14c)](_0x4307b8=>{function _0x5ccdaf(_0x5c6e2c,_0x5550d4,_0x488e97,_0x20f900){return _0x2f36b1(_0x5c6e2c-_0x2b443b._0x5a78ee,_0x20f900,_0x488e97-_0x2b443b._0x43f2d0,_0x20f900-_0x2b443b._0x3a8a65);}function _0x353814(_0x519e90,_0x2b9328,_0x3273da,_0xf2409f){return _0x2f36b1(_0x519e90-0x18f,_0x519e90,_0x3273da-_0x159934._0x409458,_0xf2409f-_0x159934._0x3842b4);}return{'type':'function','function':{'name':_0x4307b8[_0x353814(-0xa1,-0xe0,-_0x36bcf7._0x3c9a75,_0x36bcf7._0x1f0aa3)],'description':_0x4307b8[_0x5ccdaf(0x363,0x2b9,0x308,_0x36bcf7._0x3a9a39)],'parameters':_0x4307b8['input_schema']}};});}function isImageToolResultBlock(_0x51e9a4){const _0x2e1996={_0xbb81db:0x21,_0x4fff00:0x32,_0x2f4410:0x78,_0x48209b:0x12f,_0x11f5d3:0x81,_0x527cb8:0x13b,_0x4bc3cf:0xc2,_0x2f3b56:0x3a,_0x45cdc5:0x1d,_0x28d793:0x79,_0x2908c8:0x188,_0x502b77:0x34,_0x1937ea:0xbb,_0x19e8e2:0x85,_0x1c56d3:0x1c,_0x32239d:0x13,_0x28748d:0x120,_0x538c03:0xaf,_0x2b4d93:0x2f,_0x58ed7:0x2b,_0x4cb6f0:0x11f},_0x2d7916={_0x24460e:0x10b,_0x3785be:0x339},_0x5249c8={_0x2cb3cf:0x51c,_0x2d3449:0x37};function _0x1597f5(_0x4066cc,_0x5222d8,_0x11d256,_0xd69da3){return _0x4abdca(_0x4066cc-0xb,_0x4066cc- -_0x5249c8._0x2cb3cf,_0x11d256-_0x5249c8._0x2d3449,_0x11d256);}if(typeof _0x51e9a4!==_0x538cb9(-_0x2e1996._0xbb81db,-0x81,_0x2e1996._0x4fff00,_0x2e1996._0x2f4410)||_0x51e9a4===null||Array[_0x538cb9(0x12c,_0x2e1996._0x48209b,_0x2e1996._0x11f5d3,_0x2e1996._0x527cb8)](_0x51e9a4))return![];function _0x538cb9(_0x1f4b1a,_0x31b591,_0x30dc24,_0x5cb844){return _0x3921cc(_0x1f4b1a-_0x2d7916._0x24460e,_0x30dc24- -_0x2d7916._0x3785be,_0x5cb844,_0x5cb844-0x17f);}const _0x658242=_0x51e9a4;return _0x658242['type']==='image'&&_0x658242['source']?.[_0x538cb9(-_0x2e1996._0x4bc3cf,-0x40,-_0x2e1996._0x2f3b56,_0x2e1996._0x45cdc5)]===_0x538cb9(0x98,_0x2e1996._0x28d793,0xd2,_0x2e1996._0x2908c8)&&typeof _0x658242[_0x1597f5(-0x30,-0x1,_0x2e1996._0x502b77,-_0x2e1996._0x1937ea)][_0x538cb9(-0x8e,-0xa0,-0x63,-0x36)]==='string'&&typeof _0x658242[_0x538cb9(-_0x2e1996._0x19e8e2,_0x2e1996._0x1c56d3,_0x2e1996._0x32239d,-0x79)][_0x538cb9(0x92,_0x2e1996._0x28748d,_0x2e1996._0x538c03,0x113)]===_0x1597f5(0x74,-_0x2e1996._0x2b4d93,-_0x2e1996._0x58ed7,_0x2e1996._0x4cb6f0);}function getToolResultText(_0x1f4778){const _0x2a1afd={_0x1832f5:0x1a4,_0x31e0b5:0x16f,_0x2db0ab:0x12c,_0x8f0739:0x18d,_0x3da480:0xf8,_0x57ef02:0xb3,_0x45c401:0x673,_0x28e40d:0x20,_0x55c4aa:0x30},_0x5016d4={_0x55288e:0x278,_0x18ef39:0x1e6},_0x272e3e={_0x4f6509:0x18e,_0x1b6d31:0x1eb,_0x3dae85:0x366,_0x2af75f:0x2b8,_0x529d26:0x221},_0xd14a5c={_0x1399be:0x146,_0x142ec1:0x169,_0x46b271:0x281},_0x3d68b9={_0x33c5ce:0x14f,_0x55743f:0x85},_0x868268={_0x465dc2:0x1dc,_0x43b64b:0x2b5,_0x482400:0x193};if(typeof _0x1f4778==='string')return _0x1f4778;function _0x1a6a30(_0x4275a5,_0x2a5b50,_0x4d56c3,_0x121b78){return _0x3921cc(_0x4275a5-_0x868268._0x465dc2,_0x4275a5-_0x868268._0x43b64b,_0x2a5b50,_0x121b78-_0x868268._0x482400);}const _0x5d36e5=_0x1f4778[_0x2b8e3f(0x221,0x176,_0x2a1afd._0x1832f5,0x17f)](_0x200e31=>{function _0x952df2(_0x164af3,_0x3ea5bd,_0xde61eb,_0xcc47f4){return _0x2b8e3f(_0x164af3-_0x3d68b9._0x33c5ce,_0xcc47f4,_0xde61eb-_0x3d68b9._0x55743f,_0x3ea5bd-0x231);}function _0x42a0f2(_0x523c3b,_0x404d84,_0x16b099,_0x24a5d4){return _0x2b8e3f(_0x523c3b-_0xd14a5c._0x1399be,_0x16b099,_0x16b099-_0xd14a5c._0x142ec1,_0x523c3b- -_0xd14a5c._0x46b271);}return typeof _0x200e31===_0x42a0f2(-_0x272e3e._0x4f6509,-0x168,-0x1f0,-_0x272e3e._0x1b6d31)&&_0x200e31!==null&&_0x200e31[_0x952df2(_0x272e3e._0x3dae85,_0x272e3e._0x2af75f,_0x272e3e._0x529d26,0x2b0)]===_0x42a0f2(-0x118,-0x195,-0x1b7,-0x162);})[_0x2b8e3f(_0x2a1afd._0x31e0b5,_0x2a1afd._0x2db0ab,0x108,_0x2a1afd._0x8f0739)](_0x123a70=>_0x123a70[_0x1a6a30(0x696,0x71d,0x687,0x5e3)])[_0x2b8e3f(_0x2a1afd._0x3da480,0x62,_0x2a1afd._0x57ef02,0x66)]('\x0a\x0a')['trim']();function _0x2b8e3f(_0x797bbc,_0x50a569,_0x3d6b6a,_0x583a55){return _0x3921cc(_0x797bbc-0xc3,_0x583a55- -_0x5016d4._0x55288e,_0x50a569,_0x583a55-_0x5016d4._0x18ef39);}return _0x5d36e5[_0x1a6a30(_0x2a1afd._0x45c401,0x714,0x6aa,0x647)]>0x0?_0x5d36e5:_0x2b8e3f(-0x3e,-_0x2a1afd._0x28e40d,0x8e,_0x2a1afd._0x55c4aa);}function getToolResultImages(_0x248918){const _0x1f547c={_0x2757fc:0x11d},_0x512130={_0x2e76c2:0x134,_0x29007d:0x2f5,_0x4a36a3:0xfb};function _0x5837fd(_0x427c85,_0x202bc2,_0x4b4bb4,_0x32550a){return _0x3921cc(_0x427c85-_0x512130._0x2e76c2,_0x32550a- -_0x512130._0x29007d,_0x4b4bb4,_0x32550a-_0x512130._0x4a36a3);}return Array[_0x5837fd(0x144,_0x1f547c._0x2757fc,0x171,0xc5)](_0x248918)?_0x248918['filter'](isImageToolResultBlock):[];}function parseToolInput2(_0x537c56){const _0x4bdc2c={_0x1ef507:0x12c,_0x163b38:0x6d,_0x18f12e:0x11,_0x58f6e3:0xb,_0x454155:0x11,_0x59e526:0x173},_0x25ff92={_0x9c8a88:0xf,_0x4d675b:0xd1},_0x57e166={_0x3374f1:0x119,_0x2d6936:0x20};function _0x434468(_0x34fd0b,_0x59db69,_0x48ea7d,_0x255493){return _0x3921cc(_0x34fd0b-_0x57e166._0x3374f1,_0x59db69- -0x42b,_0x34fd0b,_0x255493-_0x57e166._0x2d6936);}if(_0x537c56[_0x434468(-_0x4bdc2c._0x1ef507,-_0x4bdc2c._0x163b38,_0x4bdc2c._0x18f12e,_0x4bdc2c._0x58f6e3)]===0x0)return{};function _0x250db2(_0x86b4f6,_0x80d7a9,_0x215890,_0x1cd052){return _0x4abdca(_0x86b4f6-_0x25ff92._0x9c8a88,_0x86b4f6-_0x25ff92._0x4d675b,_0x215890-0xcb,_0x80d7a9);}try{return JSON[_0x434468(-0xba,-0xb3,_0x4bdc2c._0x454155,-_0x4bdc2c._0x59e526)](_0x537c56);}catch{return _0x537c56;}}function isResponsesReasoningItem(_0x43812a){const _0x46812f={_0x96bd82:0x236,_0x17e408:0x1b9,_0x47e5cd:0x136,_0x1cfba2:0x233,_0x341ecb:0x19f,_0x26d1f5:0x106,_0x139720:0x182},_0x110b3f={_0x3f2263:0x39,_0x13b67f:0x300};function _0x2d85af(_0x1d471c,_0x4c8949,_0x3bcd2b,_0x18e210){return _0x4abdca(_0x1d471c-_0x110b3f._0x3f2263,_0x3bcd2b- -_0x110b3f._0x13b67f,_0x3bcd2b-0x8b,_0x4c8949);}function _0x56750b(_0x36502e,_0x4857ed,_0x2ccd29,_0x33e7f1){return _0x3921cc(_0x36502e-0x111,_0x4857ed-0x7f,_0x33e7f1,_0x33e7f1-0x73);}return typeof _0x43812a===_0x2d85af(0x2b0,_0x46812f._0x96bd82,0x20b,_0x46812f._0x17e408)&&_0x43812a!==null&&_0x2d85af(_0x46812f._0x47e5cd,_0x46812f._0x1cfba2,_0x46812f._0x341ecb,0x176)in _0x43812a&&_0x43812a[_0x2d85af(_0x46812f._0x26d1f5,0x235,0x19f,0x212)]===_0x2d85af(0x19f,0x12f,0x1d8,_0x46812f._0x139720);}function isResponsesMessageItem(_0x183d29){const _0x330903={_0x44e88e:0xd9,_0x2f6883:0xc7,_0xca6c83:0x189,_0x4be79e:0xb},_0x1cf52={_0x2869d5:0xac,_0x20a989:0x19f},_0x4fc81e={_0x2903e6:0x191};function _0x42b322(_0x2c93a6,_0x3b3378,_0x5f2849,_0x3965b4){return _0x3921cc(_0x2c93a6-0x66,_0x5f2849- -0x488,_0x2c93a6,_0x3965b4-_0x4fc81e._0x2903e6);}function _0x10f30d(_0x6ed999,_0x43acd7,_0x35e4ca,_0x1df786){return _0x3921cc(_0x6ed999-_0x1cf52._0x2869d5,_0x35e4ca- -0x2a4,_0x1df786,_0x1df786-_0x1cf52._0x20a989);}return typeof _0x183d29===_0x42b322(-0x6f,-_0x330903._0x44e88e,-0x11d,-0x10e)&&_0x183d29!==null&&_0x42b322(-_0x330903._0x2f6883,-0x134,-_0x330903._0xca6c83,-0x110)in _0x183d29&&_0x183d29['type']===_0x10f30d(0x95,-_0x330903._0x4be79e,0xa7,0x168);}function isResponsesFunctionCallItem(_0x299586){const _0x3a92d0={_0x5d05f3:0xe0,_0x5311ee:0xd4,_0x591c5c:0xe2,_0x5224a8:0x15c},_0x4349bf={_0x5d7745:0x1d2,_0x2fa2c1:0x21f};function _0x3083e2(_0x51c2f,_0x493449,_0xc96684,_0x8a30e){return _0x3921cc(_0x51c2f-_0x4349bf._0x5d7745,_0x493449- -_0x4349bf._0x2fa2c1,_0x51c2f,_0x8a30e-0x84);}function _0x569f5b(_0xa52b65,_0x2840b1,_0x215675,_0x2aaba7){return _0x3921cc(_0xa52b65-0x1db,_0x2840b1- -0x29e,_0x215675,_0x2aaba7-0x140);}return typeof _0x299586==='object'&&_0x299586!==null&&_0x3083e2(0x10e,_0x3a92d0._0x5d05f3,0x8e,0x186)in _0x299586&&_0x299586['type']===_0x569f5b(_0x3a92d0._0x5311ee,_0x3a92d0._0x591c5c,_0x3a92d0._0x5224a8,0x80);}function createContentBlocks(_0x109d65,_0x2fe169,_0x1c65bf){const _0x332207={_0x4fb1fb:0x368,_0x455830:0x371,_0x5863e0:0x319,_0x5cf219:0x37f,_0xd7450a:0x692,_0x576d19:0x648,_0x3c683b:0x3c0,_0x38c7aa:0x387,_0x2d03b7:0x465,_0x2aa97e:0x4d7,_0x18ae6d:0x3d7,_0x367bf3:0x443,_0x5c32d5:0x419,_0x4c24ca:0x466,_0x30f89c:0x4c8,_0x3034ef:0x442,_0x196ae1:0x499,_0x47b462:0x447,_0xc28caf:0x48b,_0x2b6927:0x454,_0x5d73f2:0x464,_0x29ce4d:0x550,_0x259915:0x676,_0x59d151:0x674,_0x122c4d:0x611,_0x13b437:0x67b,_0x44891e:0x5ee,_0x2480b6:0x610,_0x4e98a7:0x6a1,_0x5914a7:0x706,_0x27beab:0x659,_0x4a6155:0x62b,_0x18a41f:0x695,_0x401f34:0x3e1},_0x2ea3f3={_0x484218:0xe5,_0x2e86ee:0x84,_0x2791f2:0xad},_0x4ec862={_0x5be544:0x1e},_0x56aa56=[];_0x1c65bf&&_0x1c65bf['length']>0x0&&_0x56aa56[_0x4127b6(_0x332207._0x4fb1fb,_0x332207._0x455830,_0x332207._0x5863e0,_0x332207._0x5cf219)]({'type':_0x402f7b(_0x332207._0xd7450a,0x619,0x63f,_0x332207._0x576d19),'summary':[],'text':_0x1c65bf});function _0x402f7b(_0x577e78,_0x3684aa,_0x4d3a2e,_0x1646ec){return _0x4abdca(_0x577e78-0xcd,_0x4d3a2e-0xb2,_0x4d3a2e-_0x4ec862._0x5be544,_0x1646ec);}_0x109d65[_0x4127b6(0x442,0x3da,_0x332207._0x3c683b,_0x332207._0x38c7aa)]>0x0&&_0x56aa56['push']({'type':_0x4127b6(_0x332207._0x2d03b7,_0x332207._0x2aa97e,0x4a2,_0x332207._0x18ae6d),'text':_0x109d65});for(const _0x41f6ae of _0x2fe169){if(_0x41f6ae['id'][_0x4127b6(_0x332207._0x367bf3,_0x332207._0x5c32d5,_0x332207._0x4c24ca,_0x332207._0x30f89c)]()[_0x4127b6(_0x332207._0x3034ef,_0x332207._0x196ae1,_0x332207._0x47b462,0x466)]===0x0||_0x41f6ae[_0x4127b6(_0x332207._0xc28caf,_0x332207._0x2b6927,_0x332207._0x5d73f2,_0x332207._0x29ce4d)][_0x402f7b(0x6ae,0x65b,0x65b,0x65b)][_0x402f7b(_0x332207._0x259915,_0x332207._0x59d151,_0x332207._0x122c4d,_0x332207._0x13b437)]()[_0x402f7b(_0x332207._0x44891e,0x6a7,_0x332207._0x2480b6,_0x332207._0x4e98a7)]===0x0)continue;_0x56aa56['push']({'type':'tool_use','id':_0x41f6ae['id'],'name':_0x41f6ae[_0x402f7b(_0x332207._0x5914a7,0x68c,_0x332207._0x27beab,0x715)][_0x402f7b(_0x332207._0x4a6155,_0x332207._0x18a41f,0x65b,0x6b3)],'input':parseToolInput2(_0x41f6ae[_0x4127b6(_0x332207._0xc28caf,_0x332207._0x401f34,0x50c,0x539)]['arguments'])});}function _0x4127b6(_0x15d4e5,_0x4bab05,_0x45e467,_0x3d092e){return _0x3921cc(_0x15d4e5-_0x2ea3f3._0x484218,_0x15d4e5-_0x2ea3f3._0x2e86ee,_0x4bab05,_0x3d092e-_0x2ea3f3._0x2791f2);}return _0x56aa56;}function createUsage(_0x20e6b4){const _0x2656da={_0xef6974:0x5d5,_0x22fff4:0x5ec,_0x12adce:0x6e8,_0xa096b1:0x624,_0x55b0a0:0x666,_0x2765f7:0x60f,_0x2f016a:0x64c,_0x1758d6:0x656},_0x367350={_0x123174:0x65,_0x268b39:0x126,_0x20f002:0x1e},_0x504c69={_0x1a7cb2:0x1f0};function _0x246aca(_0x1da99c,_0x45cf0c,_0x47277c,_0x2790b7){return _0x3921cc(_0x1da99c-_0x504c69._0x1a7cb2,_0x45cf0c-0x27f,_0x47277c,_0x2790b7-0xfc);}function _0x3ec332(_0x31cc6f,_0x2541ef,_0x18a712,_0x5bf800){return _0x4abdca(_0x31cc6f-_0x367350._0x123174,_0x5bf800-_0x367350._0x268b39,_0x18a712-_0x367350._0x20f002,_0x31cc6f);}return{'inputTokens':_0x20e6b4?.['prompt_tokens']??0x0,'outputTokens':_0x20e6b4?.[_0x246aca(_0x2656da._0xef6974,0x5bb,0x572,_0x2656da._0x22fff4)]??0x0,..._0x20e6b4?.[_0x3ec332(0x653,_0x2656da._0x12adce,_0x2656da._0xa096b1,_0x2656da._0x55b0a0)]?.[_0x3ec332(0x49b,_0x2656da._0x2765f7,0x5d8,0x55c)]!==void 0x0?{'reasoningTokens':_0x20e6b4[_0x246aca(_0x2656da._0x2f016a,0x61f,_0x2656da._0x1758d6,0x643)]['reasoning_tokens']}:{}};}function resolveReasoningVisibility2(_0x352ec2){const _0x9c8ffe={_0x3632b9:0x11a,_0x2efe23:0x1cd,_0x4b7003:0x2fa,_0x282143:0x455,_0x6d3e99:0x489,_0x1cef25:0x4cd},_0x3d8961={_0xfe6468:0x28,_0x1811a7:0xe5},_0x425b5e={_0x4b94d8:0x30b};function _0x1c41aa(_0x4c1ead,_0x18c9bc,_0x5bc14f,_0x3f6ce3){return _0x4abdca(_0x4c1ead-0x162,_0x5bc14f- -_0x425b5e._0x4b94d8,_0x5bc14f-0x98,_0x18c9bc);}function _0xe285e4(_0x27bfe5,_0x4fd847,_0x23d6e8,_0x2d08ce){return _0x4abdca(_0x27bfe5-_0x3d8961._0xfe6468,_0x4fd847- -0x4c,_0x23d6e8-_0x3d8961._0x1811a7,_0x27bfe5);}return _0x352ec2[_0x1c41aa(_0x9c8ffe._0x3632b9,0x17a,_0x9c8ffe._0x2efe23,0x255)]?.[_0x1c41aa(_0x9c8ffe._0x4b7003,0x1ff,0x284,0x1fa)]??_0xe285e4(_0x9c8ffe._0x282143,_0x9c8ffe._0x6d3e99,0x545,_0x9c8ffe._0x1cef25);}function isUserVisibleReasoning(_0x4d932c){const _0x1694e0={_0x2f9bec:0x504},_0x3038db={_0x12f76f:0xac,_0x2bc130:0x2f,_0x34888c:0xfb};function _0xb041bb(_0xbdadf1,_0xd3a8ff,_0x4d1ef2,_0x5f3238){return _0x4abdca(_0xbdadf1-_0x3038db._0x12f76f,_0xbdadf1-_0x3038db._0x2bc130,_0x4d1ef2-_0x3038db._0x34888c,_0xd3a8ff);}return resolveOpenAiReasoningConfig(_0x4d932c['reasoning'])!==void 0x0&&resolveReasoningVisibility2(_0x4d932c)===_0xb041bb(_0x1694e0._0x2f9bec,0x57c,0x479,0x472);}function createChatRequestBody(_0x133a0e,_0x1fdce4){const _0x4e83e8={_0x2821aa:0x465,_0x3fa25f:0x46d,_0x17183c:0x492,_0x2e656d:0x4d2,_0x245374:0x392,_0x538e92:0x4a3,_0x181617:0x415,_0x118e96:0x406,_0x1e5fcf:0x262,_0x363114:0x2bc,_0x466de1:0x249,_0x1501c8:0x3f3,_0x11f4ca:0x4d3,_0x38e0a8:0x4a6,_0x16f989:0x4e2,_0x13bf06:0x3b6,_0x419666:0x41a,_0x22963a:0x391,_0x4a4777:0x2f1,_0x4cad91:0x5bc,_0x4d97be:0x468,_0x5a52be:0x586,_0x33a352:0x290,_0x1117bf:0x34e,_0x3e78e2:0x353,_0x1b12c3:0x437,_0x2eec94:0x3b1,_0x3ca71d:0x49d,_0x230a0d:0x470,_0x4cdc33:0x485,_0x2036b2:0x424,_0x5decff:0x46a,_0x2c48b4:0x40c,_0x5448da:0x3e5,_0xa025f5:0x39d,_0x504960:0x253,_0x4384b2:0x25d,_0x1aa672:0x302,_0x3885a6:0x497,_0x3d571e:0x3a5,_0x12bb3e:0x329,_0x589136:0x396,_0x2fd1c2:0x323,_0x1d3c80:0x45a,_0x5a36b4:0x41a,_0x5bf260:0x3cd,_0x29dc81:0x4ce,_0x1c6d8b:0x36a,_0x4bcd52:0x1bb,_0x47a415:0x2ee,_0x2c85f1:0x392,_0x44f6ff:0x39f,_0x3998bf:0x392,_0x265e13:0x343},_0x25827f={_0x4f242f:0x570,_0x544609:0x632,_0x1a7314:0x31d,_0x5a85e0:0x6dd,_0x2d4a1a:0x654,_0x580188:0x66e,_0x50c369:0x514,_0x11d95f:0x51b,_0x359b2e:0x4b5,_0x3bbe40:0x460,_0xc7baf8:0x539,_0x352f47:0x619,_0x42602f:0x3e6,_0x40454a:0x378,_0x487090:0x31b,_0x439f49:0x3e4,_0x3ccaf0:0x66f,_0x2ebe88:0x62d,_0x100899:0x6d6,_0x51854e:0x5b8,_0x235855:0x5cc},_0x1a7f7b={_0x4f7761:0x1ea,_0x37bf2c:0x1bb},_0x1059ee={_0x4cb5af:0x72,_0x348c1b:0x20f,_0x427a8d:0x13},_0x128240={_0x4c0157:0xcc,_0x10b8aa:0x61},_0x1c4988=[];function _0x23654c(_0x373176,_0x55fa6a,_0x47564e,_0xa7eed6){return _0x3921cc(_0x373176-_0x128240._0x4c0157,_0x373176-0x101,_0x47564e,_0xa7eed6-_0x128240._0x10b8aa);}const _0xd67514=stringifySystem(_0x133a0e[_0x23654c(_0x4e83e8._0x2821aa,_0x4e83e8._0x3fa25f,_0x4e83e8._0x17183c,_0x4e83e8._0x2e656d)]);_0xd67514[_0x8fbc4d(0x34f,_0x4e83e8._0x245374,0x38d,0x372)]>0x0&&_0x1c4988[_0x23654c(0x3e5,0x497,_0x4e83e8._0x538e92,0x35d)]({'role':_0x23654c(0x465,0x4cf,_0x4e83e8._0x181617,_0x4e83e8._0x118e96),'content':_0xd67514});function _0x8fbc4d(_0x5a63cc,_0x3207b6,_0x12fba1,_0x5bd2f0){return _0x4abdca(_0x5a63cc-_0x1059ee._0x4cb5af,_0x5a63cc- -_0x1059ee._0x348c1b,_0x12fba1-_0x1059ee._0x427a8d,_0x12fba1);}for(const _0x576171 of _0x133a0e[_0x8fbc4d(0x278,_0x4e83e8._0x1e5fcf,_0x4e83e8._0x363114,_0x4e83e8._0x466de1)]){const _0x9f67ec=[],_0x227216=[],_0xa19a06=()=>{const _0x2693c4={_0x36487b:0xf2};function _0x28e949(_0x10dede,_0x247161,_0x57f0af,_0x53ded3){return _0x8fbc4d(_0x247161-0x2ca,_0x247161-0x1c4,_0x53ded3,_0x53ded3-_0x2693c4._0x36487b);}function _0x657686(_0x43ed30,_0x142c1c,_0x8d89cf,_0x22a62d){return _0x8fbc4d(_0x142c1c-0xb7,_0x142c1c-_0x1a7f7b._0x4f7761,_0x22a62d,_0x22a62d-_0x1a7f7b._0x37bf2c);}if(_0x576171[_0x28e949(0x642,0x62d,_0x25827f._0x4f242f,_0x25827f._0x544609)]===_0x657686(0x349,0x2f5,0x336,_0x25827f._0x1a7314)){if(_0x9f67ec[_0x28e949(_0x25827f._0x5a85e0,0x619,0x5aa,0x64e)]===0x0&&_0x227216[_0x28e949(_0x25827f._0x2d4a1a,0x619,0x5eb,_0x25827f._0x580188)]===0x0)return;_0x1c4988[_0x28e949(0x530,0x53f,_0x25827f._0x50c369,0x4fd)]({'role':_0x28e949(_0x25827f._0x11d95f,0x508,_0x25827f._0x359b2e,_0x25827f._0x3bbe40),'content':_0x9f67ec['length']>0x0?_0x9f67ec[_0x28e949(0x4f4,_0x25827f._0xc7baf8,0x560,0x556)]('\x0a\x0a'):null,..._0x227216[_0x28e949(0x5e1,0x619,0x55a,0x667)]>0x0?{'tool_calls':_0x227216['splice'](0x0)}:{}}),_0x9f67ec[_0x28e949(0x572,_0x25827f._0x352f47,0x6c6,0x5a6)]=0x0;return;}if(_0x9f67ec[_0x657686(_0x25827f._0x42602f,0x406,_0x25827f._0x40454a,0x45b)]===0x0)return;_0x1c4988[_0x657686(_0x25827f._0x487090,0x32c,0x34c,_0x25827f._0x439f49)]({'role':_0x576171[_0x28e949(_0x25827f._0x3ccaf0,_0x25827f._0x2ebe88,_0x25827f._0x100899,0x6b4)],'content':_0x9f67ec[_0x28e949(_0x25827f._0x51854e,0x539,0x484,0x5b0)]('\x0a\x0a')}),_0x9f67ec[_0x28e949(_0x25827f._0x235855,0x619,0x56d,0x576)]=0x0;};for(const _0x42ac7d of normalizeContent(_0x576171[_0x23654c(0x424,_0x4e83e8._0x1501c8,_0x4e83e8._0x11f4ca,_0x4e83e8._0x38e0a8)])){if(_0x42ac7d['type']===_0x23654c(_0x4e83e8._0x16f989,0x4ce,0x45d,0x424)){_0x9f67ec[_0x23654c(0x3e5,_0x4e83e8._0x13bf06,_0x4e83e8._0x419666,0x348)](_0x42ac7d['text']);continue;}if(_0x42ac7d['type']==='tool_use'){_0x227216[_0x8fbc4d(0x275,0x32b,0x1c5,0x1d5)]({'id':_0x42ac7d['id'],'type':'function','function':{'name':_0x42ac7d[_0x8fbc4d(0x39a,0x309,_0x4e83e8._0x22963a,_0x4e83e8._0x4a4777)],'arguments':JSON[_0x23654c(0x504,_0x4e83e8._0x4cad91,_0x4e83e8._0x4d97be,_0x4e83e8._0x5a52be)](_0x42ac7d['input']??{})}});continue;}if(_0x42ac7d[_0x8fbc4d(_0x4e83e8._0x33a352,_0x4e83e8._0x1117bf,0x1fa,_0x4e83e8._0x3e78e2)]!==_0x23654c(0x48b,0x428,_0x4e83e8._0x1b12c3,0x510))continue;_0xa19a06(),_0x1c4988['push']({'role':_0x23654c(0x3c8,0x3a8,0x44d,_0x4e83e8._0x2eec94),'content':getToolResultText(_0x42ac7d[_0x23654c(0x424,0x3e6,_0x4e83e8._0x3ca71d,0x4c9)]),'tool_call_id':_0x42ac7d[_0x23654c(_0x4e83e8._0x230a0d,0x432,0x4ed,_0x4e83e8._0x4cdc33)]});const _0xb097c3=getToolResultImages(_0x42ac7d[_0x23654c(_0x4e83e8._0x2036b2,_0x4e83e8._0x5decff,0x421,_0x4e83e8._0x2c48b4)]);_0xb097c3['length']>0x0&&_0x1c4988[_0x23654c(_0x4e83e8._0x5448da,0x450,0x364,_0x4e83e8._0xa025f5)]({'role':_0x8fbc4d(_0x4e83e8._0x504960,0x2ae,_0x4e83e8._0x4384b2,_0x4e83e8._0x1aa672),'content':[{'type':_0x23654c(0x4e2,_0x4e83e8._0x3885a6,0x480,0x489),'text':'Image\x20returned\x20by\x20ViewFile\x20for\x20tool\x20result\x20'+_0x42ac7d[_0x8fbc4d(0x300,0x39c,_0x4e83e8._0x3d571e,_0x4e83e8._0x12bb3e)]+'.'},..._0xb097c3[_0x8fbc4d(_0x4e83e8._0x589136,0x305,_0x4e83e8._0x2fd1c2,_0x4e83e8._0x1d3c80)](_0x52f7f6=>({'type':_0x8fbc4d(0x362,0x355,0x373,0x2fb),'image_url':{'url':'data:'+_0x52f7f6[_0x23654c(0x44d,0x487,0x3a6,0x490)][_0x8fbc4d(0x267,0x2c6,0x250,0x307)]+_0x23654c(0x3dd,0x3ec,0x486,0x33a)+_0x52f7f6['source'][_0x8fbc4d(0x379,0x406,0x3c9,0x395)]}}))]});}_0xa19a06();}const _0x3990db=resolveOpenAiReasoningConfig(_0x133a0e['reasoning']);return{'model':_0x133a0e[_0x23654c(0x48f,0x3ea,_0x4e83e8._0x5a36b4,_0x4e83e8._0x5bf260)],'messages':_0x1c4988,'stream':_0x1fdce4,..._0x3990db?{'max_completion_tokens':_0x133a0e[_0x23654c(0x41f,_0x4e83e8._0x29dc81,0x3e8,0x49b)]}:{'max_tokens':_0x133a0e[_0x8fbc4d(0x2af,0x34a,0x344,_0x4e83e8._0x1c6d8b)]},..._0x3990db?.[_0x8fbc4d(0x259,0x319,_0x4e83e8._0x4bcd52,_0x4e83e8._0x47a415)]?{'reasoning_effort':_0x3990db[_0x23654c(0x3c9,0x33f,0x476,0x472)]}:{},...createToolDefinitions(_0x133a0e[_0x8fbc4d(_0x4e83e8._0x2c85f1,0x32f,0x39c,_0x4e83e8._0x44f6ff)])?{'tools':createToolDefinitions(_0x133a0e[_0x8fbc4d(_0x4e83e8._0x3998bf,0x300,_0x4e83e8._0x265e13,0x3f5)])}:{}};}function _0x3921cc(_0x4daf11,_0x176d05,_0x280cf0,_0x22c8e5){const _0x37cec9={_0x1fe1d1:0x111};return _0x6b39(_0x176d05-_0x37cec9._0x1fe1d1,_0x280cf0);}function createResponsesRequestBody(_0x458020,_0x913bbc){return{...toOpenAiResponsesRequest(_0x458020),..._0x913bbc?{'stream':!![]}:{},'store':![]};}function createOpenAiResponsesWebSocketEvent(_0x39b619,_0x2536c2={}){const _0x35e629={_0x4618e0:0x447,_0x24a361:0x458,_0x2ff7b0:0x380,_0x482078:0x4b6,_0x1eff47:0x45b,_0x25a0b9:0x18a,_0x46ebab:0x14d},_0x1f53b2={_0x18fb60:0xde},_0x222ab6={_0x240a17:0xeb,_0x2c501e:0xb7,_0x1aa634:0x1b8},_0xcad0f2=toOpenAiResponsesRequest(_0x39b619);function _0x414ba8(_0x33ee7a,_0x45127d,_0x2c963c,_0x10b2ad){return _0x4abdca(_0x33ee7a-_0x222ab6._0x240a17,_0x45127d- -_0x222ab6._0x2c501e,_0x2c963c-_0x222ab6._0x1aa634,_0x10b2ad);}function _0x52b0b6(_0x59a809,_0x354d54,_0x453acc,_0x4cfcfa){return _0x4abdca(_0x59a809-0x3e,_0x4cfcfa- -0x40f,_0x453acc-_0x1f53b2._0x18fb60,_0x59a809);}return{'type':_0x414ba8(0x4f5,0x4be,_0x35e629._0x4618e0,_0x35e629._0x24a361),..._0xcad0f2,..._0x2536c2['input']?{'input':_0x2536c2[_0x414ba8(_0x35e629._0x2ff7b0,0x3bb,0x365,0x41d)]}:{},..._0x2536c2[_0x414ba8(_0x35e629._0x482078,_0x35e629._0x1eff47,0x519,0x452)]?{'previous_response_id':_0x2536c2[_0x52b0b6(_0x35e629._0x25a0b9,0x177,_0x35e629._0x46ebab,0x103)]}:{},'store':![]};}function normalizeAssistantContent(_0x5a0443){const _0x317be8={_0x284c55:0x375,_0x42520d:0x28a,_0x18bdef:0x261,_0x5abec0:0x28e,_0xabd1cd:0x17b,_0x5915b3:0x1f8},_0x2129c1={_0x1696f7:0x181,_0xc3c304:0x19c,_0x1ea84c:0x463,_0x395dc8:0x504,_0x2e3fee:0x498,_0x4d940c:0x427,_0x58812e:0x4e7,_0x167c0f:0x4a8,_0x4211c2:0x498,_0x117b52:0x1bd,_0x237029:0x136,_0x2be828:0x12f},_0x51d845={_0x33f0a7:0x13b,_0x3ca55e:0x47,_0x584e1d:0x32e},_0x271cb3={_0x70d7d9:0x36b,_0x3d81c0:0x1b1},_0xe508d5={_0x4d6b70:0xb8,_0x285042:0x157},_0x2e481a={_0x4665b6:0x1ef};function _0x43e2de(_0x3f0be0,_0xeacb6b,_0x2f51f0,_0x304525){return _0x4abdca(_0x3f0be0-0x1b1,_0x304525- -0x417,_0x2f51f0-_0x2e481a._0x4665b6,_0xeacb6b);}if(typeof _0x5a0443===_0x45679e(0x2c0,0x2d8,_0x317be8._0x284c55,0x345))return _0x5a0443;if(!Array[_0x45679e(_0x317be8._0x42520d,0x327,_0x317be8._0x18bdef,_0x317be8._0x5abec0)](_0x5a0443))return'';function _0x45679e(_0x36fd6b,_0x5725b8,_0x57cae8,_0x353a1d){return _0x3921cc(_0x36fd6b-_0xe508d5._0x4d6b70,_0x36fd6b- -0x130,_0x5725b8,_0x353a1d-_0xe508d5._0x285042);}return _0x5a0443[_0x43e2de(_0x317be8._0xabd1cd,0x11a,_0x317be8._0x5915b3,0x18e)](_0xdf97b1=>{function _0x3c84b0(_0x33b74f,_0x152ff1,_0x2bb163,_0x99ec8a){return _0x45679e(_0x152ff1- -_0x271cb3._0x70d7d9,_0x2bb163,_0x2bb163-_0x271cb3._0x3d81c0,_0x99ec8a-0x1ef);}function _0xccd07d(_0x345384,_0x419be6,_0x2ae6fa,_0x450752){return _0x43e2de(_0x345384-_0x51d845._0x33f0a7,_0x345384,_0x2ae6fa-_0x51d845._0x3ca55e,_0x2ae6fa-_0x51d845._0x584e1d);}return _0xdf97b1[_0x3c84b0(-_0x2129c1._0x1696f7,-_0x2129c1._0xc3c304,-0xe3,-0x20c)]===_0xccd07d(_0x2129c1._0x1ea84c,_0x2129c1._0x395dc8,_0x2129c1._0x2e3fee,_0x2129c1._0x4d940c)?_0xdf97b1[_0xccd07d(_0x2129c1._0x58812e,_0x2129c1._0x167c0f,_0x2129c1._0x4211c2,0x4fd)]:_0xdf97b1[_0x3c84b0(-_0x2129c1._0x117b52,-_0x2129c1._0x237029,-0x119,-_0x2129c1._0x2be828)];})['join']('');}function normalizeResponsesMessageContent(_0x2ced84){const _0x5191b7={_0x51f392:0xdc,_0x425d96:0xa0,_0x4e1356:0x36b},_0x544eb3={_0x409195:0x494,_0x26fcdc:0x554,_0x4c9f8f:0x57f,_0x29d50d:0x483,_0x4b39e1:0x3bf,_0x3b266b:0x32b,_0x4e927b:0x438,_0x150f81:0x45a,_0x36d2e1:0x400,_0x520633:0x203,_0x473659:0x536,_0x10226f:0x49e,_0x43e9b8:0x296,_0x5ee794:0x485,_0x250ab4:0x521},_0x2dccc3={_0x400891:0x17b},_0x591069={_0x20e8f3:0xb6},_0xd653a={_0x558515:0x2db,_0x5e2561:0x1bf};function _0x35dc72(_0x379530,_0x4abc32,_0x1a4b29,_0x526e4e){return _0x4abdca(_0x379530-0x17e,_0x379530- -_0xd653a._0x558515,_0x1a4b29-_0xd653a._0x5e2561,_0x1a4b29);}function _0x336085(_0x5e3fc9,_0x5b80c5,_0x43b7d8,_0xb75219){return _0x4abdca(_0x5e3fc9-_0x591069._0x20e8f3,_0x43b7d8- -0x57e,_0x43b7d8-0x1d2,_0x5b80c5);}if(!Array[_0x336085(-_0x5191b7._0x51f392,-0x35,-0x24,_0x5191b7._0x425d96)](_0x2ced84))return'';return _0x2ced84[_0x35dc72(0x2ca,0x2c9,0x2a7,_0x5191b7._0x4e1356)](_0x240298=>{const _0x554f71={_0x2c987d:0x1f4};if(!_0x240298||typeof _0x240298!=='object')return'';function _0x431c79(_0x1215e9,_0x319612,_0x419342,_0x2a853b){return _0x336085(_0x1215e9-0x184,_0x2a853b,_0x319612-0x517,_0x2a853b-_0x554f71._0x2c987d);}const _0x3c28d3=_0x240298;function _0x482cc7(_0x4bcd8d,_0x340871,_0x43b4d6,_0x72bc61){return _0x35dc72(_0x72bc61-0x76,_0x340871-_0x2dccc3._0x400891,_0x4bcd8d,_0x72bc61-0x158);}if(_0x3c28d3[_0x482cc7(0x1e9,0x218,0x2f1,0x23a)]===_0x431c79(0x4ab,0x4d4,0x529,_0x544eb3._0x409195)&&typeof _0x3c28d3[_0x431c79(_0x544eb3._0x26fcdc,0x51a,_0x544eb3._0x4c9f8f,_0x544eb3._0x29d50d)]===_0x482cc7(_0x544eb3._0x4b39e1,0x373,0x2cf,_0x544eb3._0x3b266b))return _0x3c28d3['text'];if(_0x3c28d3[_0x431c79(0x4e8,_0x544eb3._0x4e927b,_0x544eb3._0x150f81,_0x544eb3._0x36d2e1)]===_0x482cc7(_0x544eb3._0x520633,0x253,0x270,0x2a0)&&typeof _0x3c28d3[_0x431c79(_0x544eb3._0x473659,_0x544eb3._0x10226f,0x518,0x4c2)]===_0x482cc7(_0x544eb3._0x43e9b8,0x2a9,0x3d3,_0x544eb3._0x3b266b))return _0x3c28d3[_0x431c79(_0x544eb3._0x5ee794,_0x544eb3._0x10226f,0x3e8,_0x544eb3._0x250ab4)];return'';})[_0x35dc72(0x1a3,0xdd,0x158,0x1c5)]('');}function extractOpenAiReasoningText(_0x1637b5){const _0x24c876={_0x53c0ef:0x37f,_0xc3496e:0x399,_0x19c9f3:0x3e2,_0x256eb8:0x376,_0x5bd1e5:0x3d3,_0x56b28f:0x3ed,_0x28c788:0x81,_0x52038f:0x96,_0x4343c7:0x31,_0x4a4c4d:0x15,_0xb4e9bc:0x92,_0x3b872b:0x3b,_0x2dfcde:0xcd,_0xb6eaf1:0x13a,_0x153766:0x106,_0x7ad70c:0x4a,_0x2e7a05:0x5a,_0xcdf8f7:0x55},_0x312f77={_0x39767f:0x43,_0x1d1770:0x338,_0xd65284:0xd4},_0x27f958={_0x95e2c4:0xe,_0x3d79e2:0x60};function _0x2fd95a(_0x421f16,_0xa97f04,_0x302985,_0xfa4319){return _0x3921cc(_0x421f16-0xc9,_0x421f16- -_0x27f958._0x95e2c4,_0x302985,_0xfa4319-_0x27f958._0x3d79e2);}if(typeof _0x1637b5[_0x2fd95a(0x3d3,_0x24c876._0x53c0ef,_0x24c876._0xc3496e,0x31c)]===_0x2fd95a(_0x24c876._0x19c9f3,0x3e7,0x481,_0x24c876._0x256eb8))return _0x1637b5[_0x2fd95a(_0x24c876._0x5bd1e5,0x32d,_0x24c876._0x56b28f,0x484)];if(!Array[_0x50d72d(_0x24c876._0x28c788,0x82,_0x24c876._0x52038f,-_0x24c876._0x4343c7)](_0x1637b5['content']))return'';function _0x50d72d(_0x1a7896,_0x1d99fb,_0x40747d,_0x28782f){return _0x3921cc(_0x1a7896-_0x312f77._0x39767f,_0x1d99fb- -_0x312f77._0x1d1770,_0x1a7896,_0x28782f-_0x312f77._0xd65284);}return _0x1637b5[_0x50d72d(-0x6e,-_0x24c876._0x4a4c4d,-_0x24c876._0xb4e9bc,_0x24c876._0x3b872b)]['filter'](_0x5278a5=>_0x5278a5['type']===_0x2fd95a(0x282,0x32c,0x300,0x2c4)&&typeof _0x5278a5[_0x2fd95a(0x3d3,0x40f,0x480,0x469)]===_0x50d72d(0x7f,0xb8,0xf1,0xbc))[_0x50d72d(0x91,_0x24c876._0x2dfcde,_0x24c876._0xb6eaf1,_0x24c876._0x153766)](_0x296124=>_0x296124[_0x2fd95a(0x3d3,0x35a,0x3ac,0x3a8)]??'')[_0x50d72d(-_0x24c876._0x7ad70c,-_0x24c876._0x2e7a05,-_0x24c876._0xcdf8f7,0x8)]('');}function createOpenAiReasoningBlock(_0x14990c){const _0x485f77={_0x224f8c:0x3bb,_0x411064:0x456,_0x376aa9:0x11c},_0x5d7530={_0x36e5e7:0x3,_0x409c80:0x498},_0x432730={_0x4d73a8:0x38};function _0x185bac(_0x1ccc5f,_0x117c37,_0x1cc80e,_0xdd8579){return _0x4abdca(_0x1ccc5f-0x13d,_0x1cc80e- -0x1d2,_0x1cc80e-_0x432730._0x4d73a8,_0x117c37);}function _0x5bff02(_0x61887e,_0x6b2745,_0x3cd839,_0x41cb08){return _0x3921cc(_0x61887e-_0x5d7530._0x36e5e7,_0x41cb08- -_0x5d7530._0x409c80,_0x6b2745,_0x41cb08-0x1aa);}const _0x4485ac=extractOpenAiReasoningText(_0x14990c);return{'type':_0x185bac(0x33c,0x43b,_0x485f77._0x224f8c,_0x485f77._0x411064),'summary':structuredClone(_0x14990c[_0x5bff02(-0x1e1,-0xf8,-_0x485f77._0x376aa9,-0x1a1)]??[]),..._0x14990c['id']?{'id':_0x14990c['id']}:{},..._0x14990c['encrypted_content']?{'encryptedContent':_0x14990c['encrypted_content']}:{},..._0x4485ac['length']>0x0?{'text':_0x4485ac}:{}};}function hasVisibleOpenAiReasoning(_0x5d984a){const _0x7d75fc={_0x3faa73:0x148,_0xe053c3:0x1b9,_0x1523b3:0x1ce,_0x526a40:0x12f,_0x3800d5:0xb1,_0xbf852d:0xdb,_0x6f4f8c:0xe4,_0x3f3dd3:0x176,_0x3877ee:0xd5},_0x27063e={_0xf49ccf:0x5d,_0x261f23:0x17e};function _0x552873(_0x21d458,_0x4c51b0,_0x2ba73b,_0x30bae3){return _0x4abdca(_0x21d458-_0x27063e._0xf49ccf,_0x30bae3- -0x665,_0x2ba73b-_0x27063e._0x261f23,_0x21d458);}function _0x160783(_0x2339a5,_0x1353b1,_0x13befd,_0x575686){return _0x3921cc(_0x2339a5-0x143,_0x2339a5- -0x4dd,_0x13befd,_0x575686-0x14c);}return _0x5d984a[_0x552873(-_0x7d75fc._0x3faa73,-0x21d,-_0x7d75fc._0xe053c3,-_0x7d75fc._0x1523b3)]['length']>0x0||typeof _0x5d984a[_0x552873(-_0x7d75fc._0x526a40,-_0x7d75fc._0x3800d5,-_0x7d75fc._0xbf852d,-_0x7d75fc._0x6f4f8c)]===_0x552873(-0x193,-0xb9,-_0x7d75fc._0x3f3dd3,-_0x7d75fc._0x3877ee);}function parseChatCompletionResponse(_0x424e1e){const _0x34b7e7={_0x335c2a:0x148,_0x5553b7:0x298,_0x249ca5:0x1f2,_0x410dfd:0x77,_0x424f36:0x97,_0xc76064:0x150,_0x53b633:0x271,_0x47ab0e:0x252,_0x36e108:0x28a,_0xf441e7:0x11c,_0x3177ba:0x12e,_0x2626f9:0xa6,_0x1dbfe9:0x21,_0x25a559:0x8f,_0x60d7e4:0x127,_0x6f4f36:0x1e6,_0x3c90f6:0x67,_0x259838:0x83,_0xdec760:0x27,_0x23b826:0x72,_0x1f0555:0x21e,_0x3a433d:0x2cb,_0x121d97:0x47,_0x57452:0xeb,_0x4acf54:0x2b,_0x47cab3:0xb7,_0x24fed0:0xc9,_0x56f9e0:0x10b},_0x417521={_0x167ea6:0x21d,_0x5c8f21:0x69},_0x3456da={_0x297b1c:0x1dd,_0x52e525:0x437,_0x53cb34:0x1e1};function _0xa5448c(_0x1b8ce7,_0x3951b0,_0x416dc7,_0x2d5d38){return _0x4abdca(_0x1b8ce7-_0x3456da._0x297b1c,_0x3951b0- -_0x3456da._0x52e525,_0x416dc7-_0x3456da._0x53cb34,_0x2d5d38);}function _0x183b98(_0x53fd61,_0x4f0354,_0x2335e3,_0x3a8914){return _0x4abdca(_0x53fd61-0x133,_0x3a8914- -_0x417521._0x167ea6,_0x2335e3-_0x417521._0x5c8f21,_0x2335e3);}const _0x349638=[],_0x2b0874=[];let _0x3e0913='end_turn';for(const _0x31509b of _0x424e1e[_0xa5448c(0xa5,0xc4,0x15d,0x131)]??[]){const _0x25914f=_0x31509b['message'],_0x34b19b=normalizeAssistantContent(_0x25914f?.['content']);_0x34b19b[_0xa5448c(_0x34b7e7._0x335c2a,0x127,0x14a,0x192)]>0x0&&_0x349638[_0x183b98(0x27b,_0x34b7e7._0x5553b7,_0x34b7e7._0x249ca5,0x267)](_0x34b19b),_0x25914f?.[_0xa5448c(0x134,0x97,0x1c,0x9d)]&&_0x2b0874[_0x183b98(0x2e1,0x27d,0x220,0x267)](..._0x25914f[_0xa5448c(_0x34b7e7._0x410dfd,_0x34b7e7._0x424f36,_0x34b7e7._0xc76064,0x24)]),_0x31509b[_0x183b98(_0x34b7e7._0x53b633,0x212,_0x34b7e7._0x47ab0e,_0x34b7e7._0x36e108)]===_0xa5448c(_0x34b7e7._0xf441e7,0x97,_0x34b7e7._0x3177ba,0x65)&&(_0x3e0913=_0xa5448c(_0x34b7e7._0x2626f9,0x83,0x5,-_0x34b7e7._0x1dbfe9));}return _0x2b0874[_0xa5448c(_0x34b7e7._0x25a559,_0x34b7e7._0x60d7e4,_0x34b7e7._0x6f4f36,0x6e)]>0x0&&(_0x3e0913=_0xa5448c(_0x34b7e7._0x3c90f6,_0x34b7e7._0x259838,_0x34b7e7._0xdec760,0x10d)),{'id':_0x424e1e['id']??_0xa5448c(-0x3f,-0xe,0x1f,-_0x34b7e7._0x23b826)+Date[_0x183b98(_0x34b7e7._0x1f0555,0x236,0x29a,_0x34b7e7._0x3a433d)](),'content':createContentBlocks(_0x349638[_0xa5448c(0x47,_0x34b7e7._0x121d97,_0x34b7e7._0x57452,_0x34b7e7._0x4acf54)](''),_0x2b0874),'stopReason':_0x3e0913,'usage':createUsage(_0x424e1e[_0xa5448c(_0x34b7e7._0x47cab3,0x11c,_0x34b7e7._0x24fed0,_0x34b7e7._0x56f9e0)])};}function parseResponsesResponse(_0x56c559,_0x352d37){const _0x2dc5cd={_0x13f495:0x244,_0x318e73:0x38a,_0x31053f:0x352,_0x5818fd:0x3af,_0x4c8296:0x1c0,_0x1fab3d:0x299,_0x1cbac4:0x21b,_0x3faa6f:0x271,_0x4f8254:0x42c,_0x525bec:0x384,_0x9b5ff4:0x482,_0x490739:0x2f7,_0x42c63c:0x2b7,_0x5d4104:0x271,_0x332c28:0x351,_0x57b9a9:0x3c1,_0x332ad5:0x3d8,_0x685461:0x3d9,_0x33cb8a:0x2d9,_0x1d5581:0x301,_0x247f28:0x2ef,_0x5f16dc:0x32a,_0x29dd26:0x36f,_0x2c82be:0x3c4,_0x33a9b:0x33e,_0x3348f3:0x3b3,_0x5175d6:0x32d,_0x42393e:0x394,_0x46f81e:0x388,_0x3c355d:0x2cb,_0x2471f8:0x2fe,_0x1608ff:0x1d3,_0x3fedb9:0x24f,_0x1b12c6:0x409,_0x512ded:0x3ff,_0x27c31a:0x474,_0x1cdb91:0x434,_0x22a204:0x1cf,_0x36e080:0x28c,_0x213c37:0x25f,_0x2afa71:0x296,_0x17bd20:0x28d,_0x53e49b:0x2fe,_0x22e66e:0x3db,_0x32812d:0x421,_0x936ba8:0x422,_0x1229c2:0x2bc,_0xb0c208:0x326,_0x10bdd8:0x38e,_0x5a66a2:0x3ea,_0x477a88:0x1ee,_0xaba8d0:0x164,_0x2f8748:0x277,_0xaa0294:0x304,_0x5293e2:0x2fa,_0x1b4f01:0x1ea,_0x4bae07:0x1d4,_0x4a22fc:0x247},_0x49d3c4={_0xf6636c:0x100},_0x3ad2ff=[];function _0x29cc0a(_0x59c269,_0x424e80,_0x594bcd,_0x55ac07){return _0x4abdca(_0x59c269-0x125,_0x55ac07- -0x252,_0x594bcd-0xf2,_0x594bcd);}for(const _0x597d24 of _0x56c559[_0x29cc0a(0x250,0x2d5,_0x2dc5cd._0x13f495,0x247)]??[]){if(isResponsesReasoningItem(_0x597d24)){if(isUserVisibleReasoning(_0x352d37)){const _0x366345=createOpenAiReasoningBlock(_0x597d24);hasVisibleOpenAiReasoning(_0x366345)&&_0x3ad2ff[_0x14ad6e(_0x2dc5cd._0x318e73,_0x2dc5cd._0x31053f,_0x2dc5cd._0x5818fd,0x2cd)](_0x366345);}continue;}if(isResponsesMessageItem(_0x597d24)){const _0x47ce1f=normalizeResponsesMessageContent(_0x597d24[_0x29cc0a(_0x2dc5cd._0x4c8296,_0x2dc5cd._0x1fab3d,_0x2dc5cd._0x1cbac4,_0x2dc5cd._0x3faa6f)]);_0x47ce1f[_0x14ad6e(0x389,_0x2dc5cd._0x4f8254,_0x2dc5cd._0x525bec,_0x2dc5cd._0x9b5ff4)]>0x0&&_0x3ad2ff['push']({'type':_0x29cc0a(_0x2dc5cd._0x490739,0x26e,_0x2dc5cd._0x42c63c,0x32f),'text':_0x47ce1f});continue;}if(!isResponsesFunctionCallItem(_0x597d24)||typeof _0x597d24[_0x29cc0a(0x34a,_0x2dc5cd._0x5d4104,0x2b5,0x2fd)]!=='string'||_0x597d24[_0x29cc0a(0x3b9,0x3ab,_0x2dc5cd._0x332c28,0x2fd)]['trim']()[_0x14ad6e(0x403,0x42c,_0x2dc5cd._0x57b9a9,_0x2dc5cd._0x332ad5)]===0x0||typeof _0x597d24['name']!==_0x29cc0a(0x27e,0x3af,0x2be,0x33e)||_0x597d24[_0x29cc0a(_0x2dc5cd._0x685461,_0x2dc5cd._0x33cb8a,_0x2dc5cd._0x1d5581,0x357)]['trim']()[_0x29cc0a(_0x2dc5cd._0x247f28,0x381,_0x2dc5cd._0x5f16dc,0x30c)]===0x0||typeof _0x597d24[_0x14ad6e(0x2b6,_0x2dc5cd._0x29dd26,0x2e6,0x3af)]!==_0x29cc0a(0x402,0x3cf,_0x2dc5cd._0x2c82be,_0x2dc5cd._0x33a9b))continue;_0x3ad2ff[_0x14ad6e(_0x2dc5cd._0x3348f3,0x352,_0x2dc5cd._0x5175d6,_0x2dc5cd._0x42393e)]({'type':_0x14ad6e(0x33d,_0x2dc5cd._0x46f81e,_0x2dc5cd._0x3c355d,0x2e8),'id':_0x597d24['call_id'],'name':_0x597d24['name'],'input':parseToolInput2(_0x597d24[_0x29cc0a(_0x2dc5cd._0x2471f8,_0x2dc5cd._0x1608ff,0x1cf,_0x2dc5cd._0x3fedb9)])});}!_0x3ad2ff['some'](_0x357be2=>_0x357be2[_0x29cc0a(0x2e3,0x239,0x1ae,0x24d)]===_0x14ad6e(0x3e2,0x44f,0x3f8,0x3d5))&&_0x56c559[_0x14ad6e(0x432,_0x2dc5cd._0x1b12c6,0x431,_0x2dc5cd._0x512ded)]&&_0x3ad2ff['push']({'type':'text','text':_0x56c559[_0x14ad6e(_0x2dc5cd._0x27c31a,_0x2dc5cd._0x1b12c6,_0x2dc5cd._0x1cdb91,0x4c8)]});function _0x14ad6e(_0x1ba027,_0x5abae7,_0x5d8736,_0x17e9dc){return _0x4abdca(_0x1ba027-0xb3,_0x5abae7- -0x132,_0x5d8736-_0x49d3c4._0xf6636c,_0x1ba027);}return{'id':_0x56c559['id'],'content':_0x3ad2ff,'stopReason':_0x3ad2ff[_0x29cc0a(_0x2dc5cd._0x22a204,0x271,0x255,0x258)](_0x14a88a=>_0x14a88a[_0x14ad6e(0x334,0x36d,0x336,0x413)]===_0x14ad6e(0x2ed,0x388,0x41a,0x387))?'tool_use':'end_turn','usage':{'inputTokens':_0x56c559[_0x29cc0a(_0x2dc5cd._0x36e080,_0x2dc5cd._0x213c37,_0x2dc5cd._0x2afa71,_0x2dc5cd._0x1d5581)]?.[_0x29cc0a(_0x2dc5cd._0x17bd20,_0x2dc5cd._0x53e49b,0x2aa,0x34e)]??0x0,'outputTokens':_0x56c559[_0x14ad6e(_0x2dc5cd._0x22e66e,_0x2dc5cd._0x32812d,0x4b9,0x491)]?.[_0x14ad6e(0x304,0x366,_0x2dc5cd._0x936ba8,0x2bf)]??0x0,..._0x56c559['usage']?.[_0x29cc0a(0x218,0x15d,0x150,0x20c)]?.[_0x14ad6e(_0x2dc5cd._0x1229c2,0x304,_0x2dc5cd._0xb0c208,0x2bc)]!==void 0x0?{'reasoningTokens':_0x56c559[_0x14ad6e(_0x2dc5cd._0x10bdd8,0x421,0x47f,_0x2dc5cd._0x5a66a2)][_0x29cc0a(_0x2dc5cd._0x477a88,_0x2dc5cd._0xaba8d0,_0x2dc5cd._0x2f8748,0x20c)][_0x14ad6e(0x356,_0x2dc5cd._0xaa0294,0x33e,0x397)]}:{}},..._0x56c559['output']?{'providerState':{'openaiResponsesOutput':structuredClone(_0x56c559[_0x29cc0a(_0x2dc5cd._0x5293e2,_0x2dc5cd._0x1b4f01,_0x2dc5cd._0x4bae07,_0x2dc5cd._0x4a22fc)]),'openaiResponsesResponseId':_0x56c559['id']}}:{}};}function extractErrorMessage(_0x305936){const _0x2fd8b9={_0x249ad5:0x14f,_0x4aebcf:0x486,_0x23422e:0x47b,_0x532d0b:0x3c0,_0x52d81f:0x50,_0x403d95:0x96,_0x4a0e7b:0x119,_0x32e8f9:0x25,_0x39dca2:0x48,_0x2739e2:0x4b,_0x59487e:0xd5,_0x362282:0x118,_0x2feb39:0x3b4,_0x23edc0:0x38b,_0xb389cd:0x4b0,_0x39f6d3:0x459,_0xd18c7b:0x4dd,_0x26fbe8:0x466,_0x30017d:0x507,_0x4a4130:0x459,_0x29766d:0x440,_0x245aee:0x445,_0x29d145:0x4f5},_0x1fa83e={_0x40c0af:0x179,_0x195a46:0x70},_0xc935aa={_0x771c30:0x92};function _0x28690b(_0x12b50c,_0x25215b,_0x2cab8c,_0x237525){return _0x4abdca(_0x12b50c-0x1cc,_0x12b50c- -_0xc935aa._0x771c30,_0x2cab8c-0x152,_0x237525);}if(_0x305936[_0x1ced94(0x106,_0x2fd8b9._0x249ad5,0x148,0x122)]===0x0)return'';function _0x1ced94(_0x6f46b9,_0x9694f7,_0x426458,_0x415efa){return _0x4abdca(_0x6f46b9-_0x1fa83e._0x40c0af,_0x426458- -0x416,_0x426458-_0x1fa83e._0x195a46,_0x6f46b9);}try{const _0xf29064=JSON[_0x28690b(_0x2fd8b9._0x4aebcf,_0x2fd8b9._0x23422e,0x470,_0x2fd8b9._0x532d0b)](_0x305936);if(typeof _0xf29064[_0x1ced94(-0x3d,-_0x2fd8b9._0x52d81f,0x12,-_0x2fd8b9._0x403d95)]?.[_0x1ced94(_0x2fd8b9._0x4a0e7b,0x165,0xd5,_0x2fd8b9._0x32e8f9)]==='string'&&_0xf29064['error'][_0x1ced94(_0x2fd8b9._0x39dca2,_0x2fd8b9._0x2739e2,_0x2fd8b9._0x59487e,0xff)][_0x1ced94(0x111,_0x2fd8b9._0x362282,0x149,0xd5)]()['length']>0x0)return _0xf29064[_0x28690b(0x396,0x337,_0x2fd8b9._0x2feb39,_0x2fd8b9._0x23edc0)]['message'][_0x28690b(0x4cd,0x461,_0x2fd8b9._0xb389cd,0x415)]();if(typeof _0xf29064[_0x28690b(0x459,_0x2fd8b9._0x39f6d3,0x42b,0x40a)]===_0x28690b(0x4fe,_0x2fd8b9._0xd18c7b,_0x2fd8b9._0x26fbe8,_0x2fd8b9._0x30017d)&&_0xf29064[_0x28690b(_0x2fd8b9._0x4a4130,_0x2fd8b9._0x29766d,0x472,0x4d1)]['trim']()['length']>0x0)return _0xf29064[_0x28690b(_0x2fd8b9._0x4a4130,0x3e6,0x48b,_0x2fd8b9._0x245aee)][_0x28690b(0x4cd,0x575,_0x2fd8b9._0x29d145,0x469)]();}catch{return _0x305936;}return _0x305936;}async function createOpenAiApiError(_0x3db863){const _0x511518={_0x32bbda:0x5d1,_0x4d2f63:0xa8,_0x514b9c:0x1a,_0x11e29a:0xfc,_0x269801:0x3d8,_0x2a5a33:0x43e,_0x2b83a4:0x466},_0x3b476b={_0x6ff94:0xe8,_0x3e19b4:0xe7},_0x185f87=(await _0x3db863[_0x24bd6f(0x1fe,0x1f5,0x1c8,0x24d)]())[_0x2b9d50(0x63f,0x52f,_0x511518._0x32bbda,0x592)]();function _0x2b9d50(_0x3b7815,_0x3297f5,_0x47c1c9,_0x354c3c){return _0x3921cc(_0x3b7815-_0x3b476b._0x6ff94,_0x354c3c-0x1d3,_0x3b7815,_0x354c3c-_0x3b476b._0x3e19b4);}const _0x43ec4e=extractErrorMessage(_0x185f87)||_0x3db863[_0x24bd6f(0xb1,_0x511518._0x4d2f63,_0x511518._0x514b9c,_0x511518._0x11e29a)]||_0x24bd6f(0xf,0xb5,0x15,-0x9)+_0x3db863['status'];function _0x24bd6f(_0x1ee7c6,_0x237c59,_0x381e9e,_0x7c8652){return _0x3921cc(_0x1ee7c6-0x16a,_0x237c59- -0x1ec,_0x7c8652,_0x7c8652-0xb0);}return new OpenAiApiError(_0x3db863[_0x2b9d50(0x3ea,_0x511518._0x269801,_0x511518._0x2a5a33,_0x511518._0x2b83a4)],_0x185f87,_0x43ec4e);}function readSseData(_0x30a036){const _0x9eeaf={_0xab9186:0x597,_0x2e845a:0x5dc,_0x1074a6:0x14e,_0x30eddf:0xfc,_0xc68b2b:0x155,_0x2636a0:0x5f3,_0x428141:0x619,_0x3284d9:0x5af},_0x2b92f9={_0x97d8b:0x12b},_0x52c70d={_0x4e892d:0x1c4,_0x382f20:0x131};function _0x36a20e(_0x21dd5f,_0x10e83d,_0xd97d6b,_0x277442){return _0x4abdca(_0x21dd5f-_0x52c70d._0x4e892d,_0x277442-_0x52c70d._0x382f20,_0xd97d6b-0x1c,_0xd97d6b);}function _0x23016c(_0x5a19cf,_0x2c8023,_0x2649f9,_0x24b7b5){return _0x3921cc(_0x5a19cf-0x1b2,_0x2c8023- -0x331,_0x24b7b5,_0x24b7b5-_0x2b92f9._0x97d8b);}return _0x30a036[_0x36a20e(_0x9eeaf._0xab9186,0x587,0x5f8,_0x9eeaf._0x2e845a)]('\x0a')[_0x23016c(0xce,0xc6,_0x9eeaf._0x1074a6,_0x9eeaf._0x30eddf)](_0x361bb9=>_0x361bb9[_0x23016c(0x11f,0x65,0x94,0x61)](_0x23016c(0x67,0x1d,-0x28,-0xb)))[_0x23016c(_0x9eeaf._0xc68b2b,0xd4,0x93,0x86)](_0x29f7b1=>_0x29f7b1[_0x23016c(0x2b,0x9a,0x48,0x2a)](0x5)[_0x36a20e(0x726,0x6fe,0x69d,0x686)]())[_0x36a20e(_0x9eeaf._0x2636a0,_0x9eeaf._0x428141,0x52c,_0x9eeaf._0x3284d9)]('\x0a')['trim']();}function readString(_0x54b736){return typeof _0x54b736==='string'&&_0x54b736['length']>0x0?_0x54b736:void 0x0;}function extractReasoningDetails(_0x284964){const _0x413375={_0x2e3d3e:0x41,_0xd26933:0x56,_0x48732f:0x3f,_0x548d94:0x14,_0x2d08de:0x52,_0x25af9d:0x98,_0x329f90:0x132,_0x1005f3:0x101},_0x3ef248={_0x2961f6:0x1d8},_0x59058b={_0xa2e377:0x20b,_0x6ac021:0x24c,_0x3f7271:0x9e,_0x3f36f3:0x98,_0x522633:0xa7,_0x5b98b7:0x2d,_0xa84868:0x98,_0x12ec6c:0x197,_0xbcc9ad:0x290,_0x48c8dd:0x30d,_0x441b63:0x1cb},_0x3cc795={_0x207f5e:0x145,_0x3cea0d:0x164};if(!Array[_0x487814(-_0x413375._0x2e3d3e,-_0x413375._0xd26933,-_0x413375._0x48732f,-0xb6)](_0x284964))return void 0x0;function _0xa34def(_0x2e5a66,_0x53a71f,_0x1e3e2a,_0xc77ac9){return _0x4abdca(_0x2e5a66-_0x3cc795._0x207f5e,_0x1e3e2a- -0x624,_0x1e3e2a-_0x3cc795._0x3cea0d,_0x2e5a66);}const _0x1248a8=_0x284964[_0x487814(_0x413375._0x548d94,-0x4d,0x3e,0x48)](_0x547ab8=>{const _0x5032d5={_0x41a557:0x12d},_0x23355f={_0x479496:0xc7,_0x997488:0x167};if(!_0x547ab8||typeof _0x547ab8!==_0x1ae4e9(_0x59058b._0xa2e377,0x1da,_0x59058b._0x6ac021,0x188))return[];const _0xeecf99=_0x547ab8;function _0x28f39f(_0x43b2cf,_0x4286cc,_0x5b7e0d,_0x1ffc0c){return _0x487814(_0x1ffc0c,_0x4286cc-_0x23355f._0x479496,_0x5b7e0d-0x1d5,_0x1ffc0c-_0x23355f._0x997488);}if(typeof _0xeecf99[_0x28f39f(_0x59058b._0x3f7271,_0x59058b._0x3f36f3,0xbb,0xdb)]===_0x28f39f(0xfe,_0x59058b._0x522633,0x6e,0xe4))return[_0xeecf99[_0x28f39f(-_0x59058b._0x5b98b7,_0x59058b._0xa84868,0xe7,0xcd)]];if(typeof _0xeecf99[_0x1ae4e9(_0x59058b._0x12ec6c,0x20a,0x186,0x1fc)]===_0x1ae4e9(_0x59058b._0xbcc9ad,0x205,_0x59058b._0x48c8dd,0x1e0))return[_0xeecf99[_0x1ae4e9(0x197,0x19a,_0x59058b._0x441b63,0x17c)]];function _0x1ae4e9(_0x43c781,_0x536ee6,_0x5a86fd,_0x2cf85f){return _0xa34def(_0x536ee6,_0x536ee6-_0x5032d5._0x41a557,_0x43c781-0x324,_0x2cf85f-0x183);}return[];});function _0x487814(_0x20362e,_0x2834e7,_0xdd0a29,_0x57543c){return _0x3921cc(_0x20362e-_0x3ef248._0x2961f6,_0x2834e7- -0x410,_0x20362e,_0x57543c-0x156);}return _0x1248a8[_0x487814(0x15,-_0x413375._0x2d08de,0x37,0x69)]>0x0?_0x1248a8[_0x487814(-_0x413375._0x25af9d,-_0x413375._0x329f90,-_0x413375._0x1005f3,-0xe6)](''):void 0x0;}function extractChatCompletionReasoningDelta(_0x47f83c){const _0x3dd44f={_0x3ea790:0x134,_0x1eb5c9:0xeb,_0x167f52:0x110,_0x5a18d5:0x59,_0x5e323:0xdd},_0x1c1a0d={_0x4427a5:0x47b},_0x389ddc={_0x132277:0x1d0,_0x190209:0x5c3};function _0x61628b(_0x3e6024,_0x421d98,_0x812ff5,_0x28d08e){return _0x4abdca(_0x3e6024-_0x389ddc._0x132277,_0x421d98- -_0x389ddc._0x190209,_0x812ff5-0x26,_0x28d08e);}function _0x63aa9c(_0x5aeb77,_0xfc0e1,_0xf8c41f,_0x2e144e){return _0x3921cc(_0x5aeb77-0x19d,_0x2e144e- -_0x1c1a0d._0x4427a5,_0x5aeb77,_0x2e144e-0x86);}return extractReasoningDetails(_0x47f83c?.[_0x63aa9c(-_0x3dd44f._0x3ea790,-0x75,0xe,-0x89)])??readString(_0x47f83c?.[_0x61628b(-0x6f,-_0x3dd44f._0x1eb5c9,-0xbf,-_0x3dd44f._0x167f52)])??readString(_0x47f83c?.[_0x63aa9c(-0xcb,-0xc4,-_0x3dd44f._0x5a18d5,-_0x3dd44f._0x5e323)])??readString(_0x47f83c?.['reasoning_text'])??'';}var OpenAiChatCompletionsStreamParser=class{['reasoningParts']=[];[_0x4abdca(0x43c,0x42a,0x3fd,0x44c)];[_0x4abdca(0x4b2,0x52f,0x544,0x55b)]=[];[_0x4abdca(0x3ce,0x488,0x509,0x531)]=new Map();[_0x3921cc(0x3c5,0x366,0x412,0x321)]=[];[_0x3921cc(0x3cc,0x3a5,0x360,0x326)]=new Set();[_0x4abdca(0x54f,0x4d7,0x41f,0x4e0)]='';['stopReason']=_0x3921cc(0x391,0x2f2,0x2dd,0x319);[_0x4abdca(0x4f7,0x553,0x574,0x4ba)];constructor(_0x3b8982){const _0x3d5743={_0x37f4d4:0x46a,_0x3cc959:0x4d5},_0x4aefbf={_0x5beeed:0x192,_0x524d5e:0x40};function _0x51de29(_0x3bc30f,_0x575dce,_0x1d39f0,_0x4ae083){return _0x4abdca(_0x3bc30f-_0x4aefbf._0x5beeed,_0x3bc30f-_0x4aefbf._0x524d5e,_0x1d39f0-0x8a,_0x1d39f0);}this[_0x51de29(_0x3d5743._0x37f4d4,_0x3d5743._0x3cc959,0x3e9,0x4f8)]=_0x3b8982;}[_0x3921cc(0x2fe,0x318,0x29e,0x35f)](_0x319cc4){const _0x2d7db3={_0x4e717c:0x320,_0x32eb6d:0x384,_0x17c32e:0x568,_0xa9e0a:0x4a3,_0x35678d:0x55d,_0x1dd934:0x3a7,_0x129b4c:0x462,_0x1cfc47:0x35c,_0x6bcbac:0x2fd,_0x4cc5b1:0x2e9,_0x28f9d8:0x526,_0x1cc903:0x4de,_0x4ab40d:0x528,_0x564225:0x4de,_0x367273:0x44d,_0x307ce4:0x4a7},_0x3f77d1=readSseData(_0x319cc4);if(_0x3f77d1[_0x3ff664(_0x2d7db3._0x4e717c,_0x2d7db3._0x32eb6d,0x413,0x423)]===0x0||_0x3f77d1==='[DONE]')return[];function _0x2f0171(_0x3aa343,_0x4d3fd0,_0x56ad97,_0x890d7c){return _0x4abdca(_0x3aa343-0x131,_0x56ad97- -0x75,_0x56ad97-0x46,_0x890d7c);}function _0x3ff664(_0x1edba5,_0x329ca2,_0x3deb06,_0x194805){return _0x3921cc(_0x1edba5-0x13f,_0x329ca2- -0x3a,_0x1edba5,_0x194805-0xad);}const _0x3371cb=JSON[_0x2f0171(_0x2d7db3._0x17c32e,0x457,_0x2d7db3._0xa9e0a,_0x2d7db3._0x35678d)](_0x3f77d1);return this[_0x2f0171(_0x2d7db3._0x1dd934,0x4f8,_0x2d7db3._0x129b4c,0x40c)]=_0x3371cb['id']??this[_0x3ff664(_0x2d7db3._0x1cfc47,_0x2d7db3._0x6bcbac,_0x2d7db3._0x4cc5b1,0x25f)],this[_0x2f0171(0x439,_0x2d7db3._0x28f9d8,_0x2d7db3._0x1cc903,0x504)]=_0x3371cb[_0x2f0171(0x48a,_0x2d7db3._0x4ab40d,0x4de,0x4a1)]??this[_0x2f0171(0x4b8,0x469,_0x2d7db3._0x564225,0x4ed)],this[_0x2f0171(0x40f,0x4d2,_0x2d7db3._0x367273,_0x2d7db3._0x307ce4)](_0x3371cb);}[_0x4abdca(0x493,0x4c7,0x4c8,0x57e)](){const _0x3e84fb={_0x4d466d:0x19d,_0x1f37aa:0x141,_0x27515f:0xa1,_0x13e875:0xc4,_0x3f7b35:0xc2,_0x45a743:0x49,_0x1bcc4c:0x84,_0x15dfbe:0x130,_0x58c880:0x1c1,_0x545148:0x15f,_0x19ad71:0x15e,_0x40befa:0x114,_0x286483:0xa7,_0x5d02df:0xa6,_0x535ddc:0xe9,_0x4db5a2:0x9c},_0x15636a={_0x279d0f:0xe9},_0x1a5959={_0x5dab7b:0xf5};this['toolCallOrder'][_0x1bf34a(0x168,0x150,0x1f4,0x24c)]>0x0&&(this['stopReason']=_0x1bf34a(_0x3e84fb._0x4d466d,0xca,0x150,_0x3e84fb._0x1f37aa));function _0x1bf34a(_0x17564c,_0x1e8a41,_0x27b3b4,_0x362dd7){return _0x3921cc(_0x17564c-_0x1a5959._0x5dab7b,_0x27b3b4- -0x1ca,_0x362dd7,_0x362dd7-0xf8);}function _0x4b217a(_0xc151fc,_0x2bebaa,_0x1ea522,_0x3e0e02){return _0x4abdca(_0xc151fc-_0x15636a._0x279d0f,_0xc151fc- -0x4f0,_0x1ea522-0x40,_0x1ea522);}const _0x182da1=isUserVisibleReasoning(this[_0x4b217a(-0xc6,-0x3,-0xc7,-0x1b)])?this[_0x4b217a(0x2c,0x57,-0x4b,_0x3e84fb._0x27515f)]['join'](''):void 0x0;return{'id':this[_0x4b217a(-0x19,-_0x3e84fb._0x13e875,-_0x3e84fb._0x3f7b35,-_0x3e84fb._0x45a743)]||_0x1bf34a(0x150,_0x3e84fb._0x1bcc4c,0xbf,_0x3e84fb._0x15dfbe)+Date[_0x1bf34a(_0x3e84fb._0x58c880,0xde,0x17e,_0x3e84fb._0x545148)](),'content':createContentBlocks(this['textParts'][_0x1bf34a(0x1a5,_0x3e84fb._0x19ad71,_0x3e84fb._0x40befa,_0x3e84fb._0x286483)](''),this['toolCallOrder'],_0x182da1),'stopReason':this[_0x4b217a(_0x3e84fb._0x5d02df,-0x4,0x97,0x43)],'usage':createUsage(this[_0x4b217a(0x63,_0x3e84fb._0x535ddc,_0x3e84fb._0x4db5a2,0x1)])};}['consumeEvent'](_0x5b6b2a){const _0x5c489d={_0x38f705:0x5c1,_0x53b82f:0x51c,_0x500092:0x29e,_0x1bacbc:0x32b,_0xabb982:0x554,_0x177090:0x65d,_0x170a3e:0x5a7,_0x2dbaba:0x29d,_0x4f638b:0x31a,_0x1b1ff7:0x245,_0x7bee41:0x21b,_0x1c1da7:0x660,_0x291a14:0x5b9,_0x294743:0x225,_0x285667:0x3c5,_0xdcb8e7:0x287,_0x2c31b6:0x216,_0x543182:0x323,_0x33e39a:0x2e0,_0x3c0412:0x5ff,_0x342c3b:0x623,_0x198a47:0x243,_0x13f4d8:0x1dd,_0x327644:0x206,_0x484c79:0x15b,_0x1016c4:0x2c3,_0x19202d:0x38f,_0x3933f2:0x39f,_0x5964c4:0x251,_0x3f7e6e:0x24f,_0x4c1219:0x219,_0x2ad50d:0x4b4,_0x37059e:0x5e8,_0x9309b2:0x241,_0x454223:0x677,_0x53a2ed:0x615,_0x340d9b:0x6f1,_0x1e9483:0x677,_0x1cce0b:0x32b,_0xc152d8:0x2c6,_0x5e2cb8:0x2b2,_0x5d55ec:0x38a,_0xcd5729:0x4f6,_0x34c70d:0x5b2,_0x36457f:0x206,_0x188840:0x1a0,_0x3a1d22:0x2ff,_0x2c37df:0x283,_0x38dac4:0x2ee,_0x3e2ad0:0x3cf,_0x28c361:0x396,_0x587d43:0x6cd,_0x54f1e2:0x651,_0x3d1c58:0x3c8,_0x3a6c1b:0x329,_0x298fc4:0x2cd,_0x3239ac:0x3e7,_0x46cfd5:0x3ef,_0x14c543:0x57d,_0x5285a:0x34c,_0x173e78:0x554,_0x1f9057:0x57a,_0x390834:0x33e,_0x13a395:0x2e1,_0x31cf2a:0x3ca,_0x462e7f:0x640,_0x265a78:0x615,_0x2d98eb:0x233,_0x5dcd64:0x329,_0x366ce4:0x272,_0x3f0447:0x3a8,_0x1ff2f4:0x23e,_0x5b641c:0x3c2,_0x35d2e3:0x55c,_0x1c7ca8:0x4d1,_0x5a4094:0x5a9,_0x468492:0x59f,_0x24fbde:0x647,_0x54dda7:0x5fc,_0x4d7f2a:0x586,_0x4068a2:0x577,_0x375985:0x5c2,_0x258c67:0x620,_0x32e4ea:0x250,_0x30c6f5:0x2f0,_0x24a857:0x307,_0xbf467b:0x241,_0x2a5e88:0x17a},_0x1713a5={_0x529627:0xde},_0x85b3a8={_0x1cb936:0x53,_0xab75bc:0xd0};function _0x568ebe(_0x191c60,_0x3e0123,_0x9b89e0,_0x380dc8){return _0x4abdca(_0x191c60-_0x85b3a8._0x1cb936,_0x3e0123-_0x85b3a8._0xab75bc,_0x9b89e0-0x14d,_0x380dc8);}const _0xfca549=[];for(const _0x55df1d of _0x5b6b2a[_0x568ebe(0x651,0x5cb,0x550,0x68b)]??[]){const _0x1a4310=_0x55df1d[_0x568ebe(_0x5c489d._0x38f705,0x5b0,_0x5c489d._0x53b82f,0x533)],_0x52225b=extractChatCompletionReasoningDelta(_0x1a4310);_0x52225b['length']>0x0&&(this[_0xdd13e(_0x5c489d._0x500092,0x331,_0x5c489d._0x1bacbc,0x256)]['push'](_0x52225b),isUserVisibleReasoning(this['request'])&&_0xfca549[_0x568ebe(0x54d,_0x5c489d._0xabb982,0x4a3,0x5e7)]({'type':'openai_reasoning_delta','contentIndex':0x0,'delta':_0x52225b,'itemId':(this[_0x568ebe(_0x5c489d._0x177090,_0x5c489d._0x170a3e,0x5d5,0x5dc)]||'chatcmpl')+_0xdd13e(0x26f,0x23f,_0x5c489d._0x2dbaba,_0x5c489d._0x4f638b),'outputIndex':0x0}));const _0x3a04cb=typeof _0x1a4310?.[_0xdd13e(_0x5c489d._0x1b1ff7,0x2d3,0x204,_0x5c489d._0x7bee41)]===_0x568ebe(0x6da,_0x5c489d._0x1c1da7,0x613,_0x5c489d._0x291a14)?_0x1a4310[_0xdd13e(0x245,0x202,0x1e7,_0x5c489d._0x294743)]:typeof _0x1a4310?.['refusal']===_0xdd13e(0x312,_0x5c489d._0x285667,0x3b8,0x2a9)?_0x1a4310[_0xdd13e(_0x5c489d._0xdcb8e7,_0x5c489d._0x2c31b6,_0x5c489d._0x543182,0x2aa)]:'';_0x3a04cb[_0xdd13e(_0x5c489d._0x33e39a,0x32d,0x395,0x2df)]>0x0&&(this[_0x568ebe(0x581,_0x5c489d._0x3c0412,0x664,_0x5c489d._0x342c3b)][_0xdd13e(0x206,0x2aa,_0x5c489d._0x198a47,_0x5c489d._0x13f4d8)](_0x3a04cb),_0xfca549[_0xdd13e(_0x5c489d._0x327644,_0x5c489d._0x484c79,0x148,_0x5c489d._0x1016c4)]({'type':_0xdd13e(0x308,0x37b,_0x5c489d._0x19202d,_0x5c489d._0x3933f2),'index':0x0,'text':_0x3a04cb}));for(const _0x161197 of _0x1a4310?.[_0xdd13e(0x250,0x23c,_0x5c489d._0x5964c4,_0x5c489d._0x3f7e6e)]??[]){const _0xdfa35d=_0x161197['index']??0x0;let _0x40dd73=this[_0xdd13e(0x20a,0x1b9,0x243,_0x5c489d._0x4c1219)][_0x568ebe(_0x5c489d._0x2ad50d,0x530,_0x5c489d._0x37059e,0x575)](_0xdfa35d);!_0x40dd73&&(_0x40dd73={'id':_0x161197['id']??_0xdd13e(0x2ff,0x32d,0x292,_0x5c489d._0x9309b2)+_0xdfa35d,'type':_0x568ebe(0x6c8,_0x5c489d._0x454223,_0x5c489d._0x53a2ed,0x6fd),'function':{'name':_0x161197[_0x568ebe(_0x5c489d._0x340d9b,_0x5c489d._0x1e9483,0x678,0x6dc)]?.[_0xdd13e(_0x5c489d._0x1cce0b,_0x5c489d._0xc152d8,_0x5c489d._0x5e2cb8,_0x5c489d._0x5d55ec)]??'','arguments':''}},this[_0x568ebe(0x60b,0x558,_0x5c489d._0xcd5729,_0x5c489d._0x34c70d)]['set'](_0xdfa35d,_0x40dd73),this['toolCallOrder'][_0xdd13e(_0x5c489d._0x36457f,_0x5c489d._0x188840,0x29a,0x206)](_0x40dd73));_0x161197['id']&&(_0x40dd73['id']=_0x161197['id']);_0x161197[_0xdd13e(0x329,_0x5c489d._0x3a1d22,0x32e,_0x5c489d._0x2c37df)]?.[_0xdd13e(0x32b,_0x5c489d._0x38dac4,_0x5c489d._0x3e2ad0,_0x5c489d._0x28c361)]&&(_0x40dd73[_0x568ebe(_0x5c489d._0x587d43,_0x5c489d._0x454223,0x64d,_0x5c489d._0x54f1e2)][_0xdd13e(0x32b,0x3b2,0x2ab,_0x5c489d._0x3d1c58)]=_0x161197[_0xdd13e(_0x5c489d._0x3a6c1b,_0x5c489d._0x298fc4,_0x5c489d._0x3239ac,0x338)][_0xdd13e(0x32b,0x33b,0x2e9,_0x5c489d._0x46cfd5)]);!this[_0x568ebe(_0x5c489d._0x14c543,0x615,0x68f,0x63f)]['has'](_0xdfa35d)&&_0x40dd73['function'][_0xdd13e(0x32b,0x2db,0x340,_0x5c489d._0x5285a)]['trim']()['length']>0x0&&(_0xfca549[_0x568ebe(0x4ee,_0x5c489d._0x173e78,0x5c4,_0x5c489d._0x1f9057)]({'type':'tool_use_delta','id':_0x40dd73['id'],'index':_0xdfa35d,'name':_0x40dd73[_0xdd13e(_0x5c489d._0x3a6c1b,_0x5c489d._0x390834,_0x5c489d._0x13a395,_0x5c489d._0x31cf2a)][_0x568ebe(0x627,0x679,0x6b2,0x5b5)]}),this[_0x568ebe(_0x5c489d._0x462e7f,_0x5c489d._0x265a78,0x622,0x695)][_0xdd13e(0x224,_0x5c489d._0x2d98eb,0x1b7,0x21c)](_0xdfa35d));const _0x12567e=_0x161197[_0xdd13e(_0x5c489d._0x5dcd64,0x2e0,_0x5c489d._0x366ce4,_0x5c489d._0x3f0447)]?.['arguments']??'';_0x12567e[_0xdd13e(0x2e0,_0x5c489d._0x1ff2f4,0x376,0x341)]>0x0&&(_0x40dd73[_0xdd13e(0x329,0x2ab,_0x5c489d._0x5b641c,0x3a6)][_0x568ebe(_0x5c489d._0x35d2e3,0x571,0x575,0x5d4)]+=_0x12567e,_0xfca549[_0x568ebe(0x4bb,0x554,_0x5c489d._0x1c7ca8,_0x5c489d._0x5a4094)]({'type':_0x568ebe(_0x5c489d._0x468492,_0x5c489d._0x24fbde,_0x5c489d._0x54dda7,_0x5c489d._0x4d7f2a),'id':_0x40dd73['id'],'index':_0xdfa35d,'inputDelta':_0x12567e}));}_0x55df1d[_0x568ebe(0x5f2,_0x5c489d._0x4068a2,_0x5c489d._0x375985,_0x5c489d._0x258c67)]===_0xdd13e(_0x5c489d._0x32e4ea,0x29f,_0x5c489d._0x30c6f5,_0x5c489d._0x24a857)&&(this['stopReason']=_0xdd13e(0x23c,_0x5c489d._0xbf467b,_0x5c489d._0x2a5e88,0x23d));}function _0xdd13e(_0x2a3ba1,_0x8c40f6,_0x33e556,_0x1103c6){return _0x3921cc(_0x2a3ba1-0xe6,_0x2a3ba1- -_0x1713a5._0x529627,_0x8c40f6,_0x1103c6-0x143);}return _0xfca549;}},OpenAiResponsesStreamParser=class{[_0x3921cc(0x38f,0x39a,0x35a,0x40f)]=new Map();[_0x4abdca(0x5f5,0x53c,0x51c,0x547)];[_0x4abdca(0x468,0x44b,0x3c2,0x45b)]=new Map();[_0x3921cc(0x379,0x2cf,0x34c,0x20a)]=new Map();[_0x3921cc(0x3c0,0x30e,0x321,0x28e)]=new Map();[_0x3921cc(0x2cc,0x28a,0x1d8,0x2f3)];['responseTextParts']=new Map();['toolCalls']=new Map();constructor(_0x5e9d73){const _0x5c8886={_0x70acfe:0x68},_0x19168e={_0x2a50bc:0x147,_0x579e9a:0x38d};function _0x9848d1(_0x15ada6,_0x55dd62,_0x5218f4,_0x2a6692){return _0x3921cc(_0x15ada6-_0x19168e._0x2a50bc,_0x5218f4- -_0x19168e._0x579e9a,_0x15ada6,_0x2a6692-0x1e7);}this[_0x9848d1(-0x149,-_0x5c8886._0x70acfe,-0x103,-0x19e)]=_0x5e9d73;}['consumeSseEvent'](_0x22d860){const _0x5c7a6d={_0x1facf5:0x43d,_0x16e7ee:0x419,_0x22eed1:0xb3,_0x50794b:0x25,_0x262089:0x59e,_0xb62934:0x580,_0x5bb012:0x47c,_0x57fd0b:0x4c4,_0x2e3237:0x503,_0x23b85d:0x3d6,_0x30005c:0x4b5,_0x4465c9:0x4f2,_0x17ba6b:0x4d2,_0x5c2e51:0x188,_0x34d420:0x551,_0x2ad46e:0x544,_0x531d70:0x496,_0x4575b4:0x475,_0x19cc72:0x443,_0x5067cb:0xc},_0x1704df={_0x2773e4:0x1b1,_0x10bc90:0x416},_0x1443a5={_0x50e5af:0x133,_0x35911b:0x4e},_0x3f135a=_0x22d860[_0x428ab1(_0x5c7a6d._0x1facf5,0x3b9,0x43e,_0x5c7a6d._0x16e7ee)]('\x0a');function _0x428ab1(_0x21a777,_0x3ea2ea,_0x776c4e,_0x408ae5){return _0x3921cc(_0x21a777-0x175,_0x776c4e-_0x1443a5._0x50e5af,_0x21a777,_0x408ae5-_0x1443a5._0x35911b);}const _0x2a0790=_0x3f135a[_0x846ab(_0x5c7a6d._0x22eed1,0x139,-_0x5c7a6d._0x50794b,0x7a)](_0x3b8443=>_0x3b8443['startsWith'](_0x428ab1(0x4c9,0x490,0x530,0x5c6)))?.['slice'](0x6)[_0x428ab1(_0x5c7a6d._0x262089,_0x5c7a6d._0xb62934,0x4f2,_0x5c7a6d._0x5bb012)](),_0x22f73f=_0x3f135a[_0x846ab(0x177,0x153,0x20d,0x181)](_0x5f1126=>_0x5f1126[_0x428ab1(0x548,0x40a,0x4c9,0x420)](_0x846ab(0x198,0x176,0x188,0xd8)))[_0x428ab1(0x4d6,_0x5c7a6d._0x57fd0b,0x538,_0x5c7a6d._0x2e3237)](_0x34ebe1=>_0x34ebe1[_0x428ab1(0x521,0x5c4,0x4fe,0x4d2)](0x5)[_0x428ab1(0x505,0x527,0x4e8,0x566)]())[_0x428ab1(0x4a3,_0x5c7a6d._0x23b85d,0x411,0x3c1)]('\x0a')[_0x428ab1(0x598,_0x5c7a6d._0x30005c,_0x5c7a6d._0x4465c9,_0x5c7a6d._0x17ba6b)]();if(_0x22f73f[_0x846ab(_0x5c7a6d._0x5c2e51,0x18c,0xe1,0x148)]===0x0||_0x22f73f===_0x428ab1(_0x5c7a6d._0x34d420,0x5dc,_0x5c7a6d._0x2ad46e,0x5a5))return[];function _0x846ab(_0x383eb3,_0x3c51ec,_0x367bef,_0x569cab){return _0x4abdca(_0x383eb3-_0x1704df._0x2773e4,_0x569cab- -_0x1704df._0x10bc90,_0x367bef-0xec,_0x3c51ec);}const _0x3f9b28=JSON[_0x428ab1(_0x5c7a6d._0x531d70,_0x5c7a6d._0x4575b4,0x4ab,_0x5c7a6d._0x19cc72)](_0x22f73f);return this[_0x846ab(0x34,_0x5c7a6d._0x5067cb,0x172,0xac)](_0x2a0790??String(_0x3f9b28['type']??''),_0x3f9b28);}['consumeWebSocketEvent'](_0x6641a8){const _0xa96acc={_0x546c14:0xbf,_0x1d2c46:0x1f3,_0x30df7:0x146,_0x22c394:0x176},_0x5e2aff={_0x30d909:0x1b9};function _0x1af1ea(_0x2febf7,_0x39c721,_0x2e7e2e,_0x4f6da5){return _0x3921cc(_0x2febf7-0x152,_0x2e7e2e- -_0x5e2aff._0x30d909,_0x4f6da5,_0x4f6da5-0x189);}return this['consumeEvent'](String(_0x6641a8[_0x1af1ea(_0xa96acc._0x546c14,_0xa96acc._0x1d2c46,_0xa96acc._0x30df7,_0xa96acc._0x22c394)]??''),_0x6641a8);}[_0x3921cc(0x270,0x327,0x26e,0x2d3)](){const _0x29d816={_0x4d2afa:0x53,_0x3be638:0x612,_0x2c358e:0x56b,_0x55c027:0x4c3,_0x24fb2d:0x534,_0x927a11:0x567,_0x2bc467:0x4c9,_0x133379:0x4d1,_0x21976a:0x105,_0x17903c:0x3f,_0x3f9fb7:0x8a},_0x341746={_0x4972bd:0x176},_0x63a481={_0x4889ac:0x65};function _0x350767(_0x125ed9,_0x2564c9,_0x19c355,_0x38f3b8){return _0x4abdca(_0x125ed9-_0x63a481._0x4889ac,_0x2564c9- -0x469,_0x19c355-0x6,_0x19c355);}function _0xf59797(_0x3e798f,_0x437389,_0x1f50ca,_0x4cb277){return _0x3921cc(_0x3e798f-_0x341746._0x4972bd,_0x1f50ca-0x221,_0x437389,_0x4cb277-0xfd);}const _0x2b691a=this['finalResponse']??{'id':_0x350767(-0x33,-0x42,_0x29d816._0x4d2afa,-0xfc)+Date[_0xf59797(0x5d0,_0x29d816._0x3be638,0x569,0x5b3)](),'object':_0xf59797(0x563,_0x29d816._0x2c358e,0x572,_0x29d816._0x55c027),'status':_0xf59797(0x616,_0x29d816._0x24fb2d,_0x29d816._0x927a11,_0x29d816._0x2bc467),'output':this[_0xf59797(0x576,0x42b,_0x29d816._0x133379,0x41d)](),'usage':{'input_tokens':0x0,'output_tokens':0x0}};return parseResponsesResponse(_0x2b691a,this[_0x350767(-_0x29d816._0x21976a,-_0x29d816._0x17903c,-_0x29d816._0x3f9fb7,-0x2f)]);}['isDone'](){return this['finalResponse']!==void 0x0;}[_0x4abdca(0x444,0x4c2,0x514,0x4c0)](_0x537de4,_0x1ab176){const _0x4c2b1b={_0x3dfa9c:0x196,_0x2bc35c:0x1e2,_0x1634ab:0x201,_0x471786:0x6f,_0x5794c1:0x1be,_0xc179a9:0x10b,_0x3cd380:0x5f1,_0x5cf848:0x5eb,_0x5be06d:0x124,_0x8c56be:0x177,_0x3fbe70:0x5fb,_0x1d946f:0x631,_0x719dd3:0x6a4,_0xac3886:0x6f3,_0x4be6fe:0x586,_0xb9bff9:0x50b,_0x2b22a9:0x54a,_0x323025:0xe6,_0x1a6e5a:0x659,_0x157251:0x660,_0x2827fd:0x5ab,_0x2241fd:0x554,_0x2d458b:0x547,_0x41a4db:0x4ee,_0x1a2132:0x67d,_0x1b2e91:0x93,_0x24463f:0x5a,_0x4dc6bf:0xeb,_0x4071d3:0x136,_0x28f3c5:0x6a4,_0x5d3e6:0x57a,_0xa116bf:0x617,_0x3f50a3:0x25b,_0x77b3c3:0x2c9,_0x40f439:0x2a2,_0x57784d:0x240,_0xad2b07:0x14c,_0x1c10dc:0x59a,_0x3cc5f0:0x561,_0x1ee524:0x1f4,_0xe51ab1:0x274,_0x187b7e:0x1e6,_0x5d94e2:0x260,_0xb86393:0x1cc,_0xa6d536:0x23e,_0x1c7657:0x220,_0xa2b2ff:0x1f1,_0x1bce3a:0x51e,_0x3e0a0e:0x4a1,_0x351402:0x68e,_0x599b97:0x5a8,_0x40bb5b:0x5f0,_0x12e282:0x5c0,_0x254854:0x6fe,_0x4844c8:0x64a,_0x55a581:0x621,_0x1d127a:0x622,_0x567640:0x5ec,_0x1ece31:0x2d1,_0x2f8665:0x284,_0x23e336:0x1ce,_0x394547:0x19d,_0x1e0c17:0x186,_0x467486:0x655,_0x525a8e:0x546,_0x6462f2:0x57f,_0x33bb07:0x5e3,_0x2658fc:0x686,_0x46e0ab:0x533,_0x44c15d:0x542,_0xbde05:0x561,_0x4be7ab:0x50b,_0x3434d2:0x16b,_0x2c8abd:0xe6,_0x26a24d:0x1d2,_0x1aa801:0x1da,_0x4fe9b1:0x252,_0x4e34ae:0x2eb,_0x2e8fea:0x625,_0x2f54ff:0x533,_0x5db94f:0x47e,_0x268458:0xc4,_0x4b8628:0x588,_0x2200b8:0x50a,_0x4362cf:0x64d,_0x48b582:0x18d,_0x10fc11:0x6d,_0x20c870:0xcd,_0x5c4169:0x288,_0x36a4c8:0x29d,_0x317832:0x1b3,_0x2686b1:0x1f5,_0x20c16e:0xe4,_0x1b58f5:0x1eb,_0x5604b6:0x118,_0x221539:0x138,_0x3e1cdf:0x6b7,_0xd77ca1:0x64a,_0xfa0167:0x6d2,_0x421530:0x6b2,_0x3ec606:0x60d,_0x4b25da:0x125,_0x411781:0x17a,_0x5d3d9b:0x3d,_0x110196:0xf7,_0x2f4a7f:0x4a5,_0x38dc03:0x63f,_0x524ab1:0x61f,_0x54fc18:0x1e6,_0x155c8d:0x28d,_0x490918:0x1cd,_0x476cf0:0x10b,_0x126364:0x67d,_0x44440a:0x66c,_0x2a2db1:0x720,_0x1f9b53:0x50,_0x215b86:0x12c,_0x39dfe5:0xe2,_0x4cb318:0xd3,_0xbbc62f:0xa9,_0x4ecffc:0x4d6,_0xd08924:0x4fb,_0x324a5e:0x2a7,_0x3a2161:0x227,_0x394e96:0x629,_0x398154:0x4fc,_0xc09b10:0x5e0,_0x495797:0xc4,_0x98b859:0x4c5,_0x41c3da:0x4f3,_0x2c25bf:0x184,_0x45868c:0xd2,_0xac2e86:0x4d0,_0x56c62b:0x622,_0x31e281:0x53e,_0x2e6c07:0x531,_0x55afe8:0x586,_0x398c78:0x5b8,_0x45e206:0x574,_0x4eef6c:0x544,_0x229421:0x1dd,_0x3c2caa:0x19c,_0x347829:0x5e3,_0x49927b:0x11a,_0x561b37:0x13d,_0x3f275c:0x597,_0x5a2ca6:0x10e,_0xda9d81:0x1bf,_0xb0d907:0x5f1,_0x5b3d18:0x1ad,_0x142e88:0x19f,_0x4319bd:0x1f5,_0x1538c9:0x8a,_0x160498:0x136,_0x37cf36:0x62b,_0x2a8533:0x654,_0x56dac9:0x6d9,_0x3044c2:0x6c3,_0x58e7a9:0x67e,_0x18965d:0x139,_0x1f5c5e:0xe6,_0x12cbcf:0x2a0,_0x11b90c:0x218,_0x427556:0x19b,_0x3b3c70:0x58f,_0xd4ee4d:0x543,_0x22f634:0x515,_0x12fe96:0x518,_0x3c51b0:0x54b,_0x1dac5f:0x663,_0x30043d:0x5b3,_0x748020:0x4f6,_0x2d9fb5:0xfc,_0x747d52:0x1fe,_0x407170:0x1b5,_0x2f61bb:0x533,_0x12ac9a:0x578,_0xb09360:0x547,_0x1d0521:0x4d8,_0x59db98:0x4d4,_0x56c1b1:0x238,_0x511cdb:0x241,_0x3a8f29:0x8d,_0x2a705c:0x73,_0x25bfde:0x6b0,_0x468e4a:0x231,_0x2dec9f:0x1d3,_0x37d330:0x13c,_0x206571:0x19a,_0xb94110:0x1db,_0x339bff:0x21b,_0x1414c7:0x248,_0xa5cef7:0x613,_0x2dd571:0x66d,_0x4dade1:0x5f5,_0x2cd7b4:0xf7,_0x4ec913:0x58e,_0x1a214b:0x5cb,_0x225140:0x534,_0x54dbd9:0x52e,_0x43dbc4:0x663,_0x4d891b:0x690,_0x313528:0x624,_0x226011:0x641,_0x39b054:0xef,_0x133db0:0x146,_0x481caf:0x106,_0x803ad9:0x148,_0x52ef3f:0x5fd,_0x3cb1f9:0x58d,_0x40297d:0x91,_0x694158:0x12f,_0x26d0a2:0x723,_0x29b172:0x5be,_0x2b618e:0x6ce,_0x286025:0x226,_0x16ea2a:0x616,_0x45e279:0x685,_0x241f9f:0x163,_0x5ce40e:0x26c,_0x2b4642:0x226,_0x108185:0x1a7,_0x3703c8:0x633,_0x25ca2e:0x67c,_0x4712a4:0x5b,_0x1b0fa5:0x1cc,_0x4defe1:0x6ca,_0x513911:0x6b0,_0x12306f:0x1b0,_0x185915:0x177,_0x225ca7:0x583,_0x1ee136:0x5d1,_0x303467:0x542,_0x4c5045:0x47d,_0x6a89ab:0xca,_0x66d2fe:0x107,_0x12fd50:0x67d,_0xe67ce8:0xb7,_0x556934:0x105,_0x5e1c1a:0x63c,_0x4af278:0x6a5,_0x1b47f0:0x2e2,_0x1e6811:0x639,_0x456906:0x157,_0x5c1e50:0x1f5,_0x478e5f:0x67f,_0xc28ff6:0x4cd,_0x433c2e:0x522,_0x441a3e:0x1be,_0x28f4e7:0x449,_0xc7018c:0x536,_0x598352:0x5e3,_0x5c2aa1:0x1d8,_0x3f7471:0x117,_0x4ee2e9:0x5d4,_0x54ddc8:0x663,_0x45807b:0x656,_0xf6a9f4:0x59e,_0x2d4feb:0x532,_0x2f8a08:0x5c8,_0x40ac43:0x60c,_0x2b32a2:0x88,_0x216467:0x1a1,_0xf82e14:0xcd,_0x1706e3:0x151,_0x26eae0:0x1b9,_0x4ca77c:0x10b,_0x4d5310:0x10b,_0x55ecee:0x711,_0x41c784:0x1ea,_0x23d936:0x155,_0x12da7c:0x1fd,_0x1ebfc6:0x5cf,_0x57806d:0x67d,_0x118678:0x6a9,_0x25922c:0x1ea,_0x1e326b:0x594,_0x467f6d:0x632,_0x3518a0:0x56f,_0x49f0d9:0x540,_0x3184cf:0x4dc,_0x2d6673:0x547,_0x339f64:0x1a9,_0x3dfa8a:0x16a,_0x5a2ad5:0x5c4,_0x323e7d:0x5b7,_0x2fd544:0x1bc,_0x5013b6:0x1dd,_0x5f221a:0x1aa,_0x257916:0x62,_0x4e148a:0xbf,_0x217e7b:0x5be,_0x10b059:0x606,_0x240ac8:0xeb,_0x5e7a0b:0xe1,_0x505d58:0x240,_0x230a25:0x199,_0x1b0e9b:0x25d,_0x5831ad:0xdc,_0x5d5a57:0x3d,_0x54e662:0xca},_0x2d10c1={_0x464a16:0x194,_0xd0e502:0x3b},_0x3ae470={_0x44198e:0x190,_0x4c100a:0xd3,_0x8848eb:0x1b8};function _0x2a7dc6(_0x35e6ff,_0x6d5693,_0xfe551c,_0x2cf06c){return _0x4abdca(_0x35e6ff-_0x3ae470._0x44198e,_0x6d5693-_0x3ae470._0x4c100a,_0xfe551c-_0x3ae470._0x8848eb,_0x35e6ff);}function _0x3e6735(_0xdde266,_0x32387a,_0x28c5f2,_0x468f98){return _0x3921cc(_0xdde266-_0x2d10c1._0x464a16,_0x468f98- -0x1c9,_0x28c5f2,_0x468f98-_0x2d10c1._0xd0e502);}switch(_0x537de4){case'response.output_text.delta':{const _0x4a341d=typeof _0x1ab176[_0x3e6735(0x18a,_0x4c2b1b._0x3dfa9c,0x111,0x10b)]===_0x3e6735(_0x4c2b1b._0x2bc35c,_0x4c2b1b._0x1634ab,0x1e5,0x241)?_0x1ab176[_0x3e6735(0x98,_0x4c2b1b._0x471786,_0x4c2b1b._0x5794c1,_0x4c2b1b._0xc179a9)]:0x0,_0x21401e=typeof _0x1ab176['delta']===_0x2a7dc6(_0x4c2b1b._0x3cd380,0x663,0x601,_0x4c2b1b._0x5cf848)?_0x1ab176[_0x3e6735(0x113,_0x4c2b1b._0x5be06d,0x20a,_0x4c2b1b._0x8c56be)]:'';if(_0x21401e[_0x2a7dc6(_0x4c2b1b._0x3fbe70,_0x4c2b1b._0x1d946f,_0x4c2b1b._0x719dd3,_0x4c2b1b._0xac3886)]>0x0){const _0x1e4c13=this['responseTextParts']['get'](_0x4a341d)??[];return _0x1e4c13[_0x2a7dc6(0x5e6,0x557,0x517,0x527)](_0x21401e),this[_0x2a7dc6(_0x4c2b1b._0x4be6fe,_0x4c2b1b._0xb9bff9,_0x4c2b1b._0x2b22a9,0x46b)][_0x3e6735(0x8e,0xe2,0xa3,_0x4c2b1b._0x323025)](_0x4a341d,_0x1e4c13),[{'type':_0x2a7dc6(0x6f1,_0x4c2b1b._0x1a6e5a,_0x4c2b1b._0x157251,_0x4c2b1b._0x2827fd),'index':_0x4a341d,'text':_0x21401e}];}break;}case'response.output_item.added':{const _0x10f29f=typeof _0x1ab176[_0x2a7dc6(_0x4c2b1b._0x2241fd,_0x4c2b1b._0x2d458b,0x5a1,_0x4c2b1b._0x41a4db)]===_0x2a7dc6(0x715,_0x4c2b1b._0x1a2132,0x6d2,0x691)?_0x1ab176[_0x3e6735(0xe2,0x50,0x17d,0x10b)]:void 0x0,_0xb7727c=_0x1ab176[_0x3e6735(_0x4c2b1b._0x1b2e91,_0x4c2b1b._0x24463f,0x135,0x100)];if(_0xb7727c?.[_0x3e6735(0xd3,0x128,_0x4c2b1b._0x4dc6bf,_0x4c2b1b._0x4071d3)]===_0x2a7dc6(0x582,0x5f3,0x696,0x5d2)&&_0xb7727c[_0x2a7dc6(_0x4c2b1b._0x28f3c5,0x622,_0x4c2b1b._0x5d3e6,_0x4c2b1b._0xa116bf)]&&_0xb7727c[_0x3e6735(_0x4c2b1b._0x3f50a3,_0x4c2b1b._0x77b3c3,_0x4c2b1b._0x40f439,_0x4c2b1b._0x57784d)])return this[_0x3e6735(0x138,0x18c,0x1f9,_0x4c2b1b._0xad2b07)][_0x2a7dc6(_0x4c2b1b._0xb9bff9,0x522,0x506,_0x4c2b1b._0x1c10dc)](_0xb7727c[_0x2a7dc6(0x5b8,0x622,0x609,_0x4c2b1b._0x3cc5f0)],{'id':_0xb7727c[_0x3e6735(_0x4c2b1b._0x1ee524,0x270,_0x4c2b1b._0xe51ab1,_0x4c2b1b._0x187b7e)],'type':_0x3e6735(_0x4c2b1b._0x5d94e2,0x2a5,_0x4c2b1b._0xb86393,_0x4c2b1b._0xa6d536),'function':{'name':_0xb7727c[_0x3e6735(_0x4c2b1b._0x1c7657,0x28b,_0x4c2b1b._0xa2b2ff,_0x4c2b1b._0x57784d)],'arguments':''}}),_0x10f29f!==void 0x0&&(this[_0x2a7dc6(0x53d,_0x4c2b1b._0x1bce3a,0x459,_0x4c2b1b._0x3e0a0e)]['set'](_0x10f29f,_0xb7727c[_0x2a7dc6(_0x4c2b1b._0x351402,0x622,_0x4c2b1b._0x599b97,0x67f)]),this[_0x2a7dc6(0x6ad,0x60d,0x6b0,_0x4c2b1b._0x40bb5b)][_0x2a7dc6(0x4c3,0x522,0x501,_0x4c2b1b._0x12e282)](_0xb7727c['call_id'],_0x10f29f)),[{'type':_0x2a7dc6(_0x4c2b1b._0x254854,_0x4c2b1b._0x4844c8,0x63d,0x608),'id':_0xb7727c[_0x2a7dc6(_0x4c2b1b._0x55a581,_0x4c2b1b._0x1d127a,_0x4c2b1b._0x567640,0x6ba)],'index':_0x10f29f??0x0,'name':_0xb7727c[_0x3e6735(_0x4c2b1b._0x1ece31,_0x4c2b1b._0x2f8665,_0x4c2b1b._0x23e336,_0x4c2b1b._0x57784d)]}];if(_0xb7727c?.[_0x3e6735(_0x4c2b1b._0x394547,0xfa,_0x4c2b1b._0x1e0c17,0x136)]===_0x2a7dc6(_0x4c2b1b._0x467486,0x5ab,_0x4c2b1b._0x525a8e,0x4ea)&&_0xb7727c['id']){const _0x4a81fb=this[_0x2a7dc6(_0x4c2b1b._0x6462f2,_0x4c2b1b._0x33bb07,_0x4c2b1b._0x2658fc,_0x4c2b1b._0x46e0ab)](_0xb7727c['id'],_0x10f29f);_0x10f29f!==void 0x0&&this[_0x2a7dc6(0x5a7,_0x4c2b1b._0x44c15d,_0x4c2b1b._0xbde05,_0x4c2b1b._0x4be7ab)][_0x3e6735(0x92,0xea,_0x4c2b1b._0x3434d2,_0x4c2b1b._0x2c8abd)](_0x10f29f,_0x4a81fb['id']);}break;}case _0x3e6735(_0x4c2b1b._0x26a24d,0x1d9,0x144,_0x4c2b1b._0x1aa801):{const _0x1a85a6=typeof _0x1ab176['call_id']===_0x3e6735(0x25d,_0x4c2b1b._0x4fe9b1,_0x4c2b1b._0x4e34ae,0x227)?_0x1ab176['call_id']:typeof _0x1ab176['output_index']===_0x2a7dc6(0x5fe,0x67d,0x636,_0x4c2b1b._0x2e8fea)?this[_0x2a7dc6(0x569,0x51e,0x5e3,0x51e)][_0x2a7dc6(0x5b6,_0x4c2b1b._0x2f54ff,_0x4c2b1b._0x5db94f,0x4ca)](_0x1ab176[_0x3e6735(0x1ad,0xca,_0x4c2b1b._0x268458,_0x4c2b1b._0xc179a9)]):void 0x0,_0x3be32a=typeof _0x1ab176['delta']==='string'?_0x1ab176[_0x3e6735(0xb3,0x1ce,0x205,_0x4c2b1b._0x8c56be)]:'',_0x49784e=_0x1a85a6?this[_0x2a7dc6(0x5e2,_0x4c2b1b._0x4b8628,_0x4c2b1b._0x2200b8,_0x4c2b1b._0x4362cf)][_0x3e6735(_0x4c2b1b._0x48b582,_0x4c2b1b._0x10fc11,_0x4c2b1b._0x20c870,0xf7)](_0x1a85a6):void 0x0;if(_0x49784e&&_0x3be32a[_0x3e6735(_0x4c2b1b._0x5c4169,_0x4c2b1b._0x36a4c8,_0x4c2b1b._0x317832,_0x4c2b1b._0x2686b1)]>0x0)return _0x49784e['function'][_0x3e6735(_0x4c2b1b._0x20c16e,_0x4c2b1b._0x1b58f5,_0x4c2b1b._0x5604b6,_0x4c2b1b._0x221539)]+=_0x3be32a,[{'type':_0x2a7dc6(_0x4c2b1b._0x3e1cdf,_0x4c2b1b._0xd77ca1,_0x4c2b1b._0xfa0167,0x6a4),'id':_0x49784e['id'],'index':this[_0x2a7dc6(_0x4c2b1b._0x421530,_0x4c2b1b._0x3ec606,0x6b8,0x55c)][_0x3e6735(_0x4c2b1b._0x4b25da,_0x4c2b1b._0x411781,_0x4c2b1b._0x5d3d9b,_0x4c2b1b._0x110196)](_0x49784e['id'])??(typeof _0x1ab176[_0x3e6735(0x8a,0x83,0x98,_0x4c2b1b._0xc179a9)]==='number'?_0x1ab176[_0x2a7dc6(0x543,_0x4c2b1b._0x2d458b,_0x4c2b1b._0x2f4a7f,0x482)]:0x0),'inputDelta':_0x3be32a}];break;}case _0x2a7dc6(_0x4c2b1b._0x38dc03,0x67b,0x5c0,_0x4c2b1b._0x524ab1):{const _0x1b827b=typeof _0x1ab176[_0x3e6735(0x14b,0x238,0x18c,_0x4c2b1b._0x54fc18)]===_0x2a7dc6(0x628,0x663,0x681,0x6bb)?_0x1ab176[_0x3e6735(0x1a9,_0x4c2b1b._0x155c8d,0x194,0x1e6)]:typeof _0x1ab176[_0x3e6735(0x18a,_0x4c2b1b._0x490918,_0x4c2b1b._0x110196,_0x4c2b1b._0x476cf0)]===_0x2a7dc6(0x743,_0x4c2b1b._0x126364,_0x4c2b1b._0x44440a,_0x4c2b1b._0x2a2db1)?this[_0x3e6735(_0x4c2b1b._0x1f9b53,0x18b,_0x4c2b1b._0x215b86,_0x4c2b1b._0x39dfe5)][_0x3e6735(0xd2,_0x4c2b1b._0x4cb318,0x103,_0x4c2b1b._0x110196)](_0x1ab176['output_index']):void 0x0,_0x168f2f=_0x1b827b?this['toolCalls'][_0x3e6735(0xa0,_0x4c2b1b._0xbbc62f,0x138,_0x4c2b1b._0x110196)](_0x1b827b):void 0x0;_0x168f2f&&typeof _0x1ab176[_0x2a7dc6(_0x4c2b1b._0x4ecffc,0x574,_0x4c2b1b._0xd08924,0x4cb)]===_0x3e6735(_0x4c2b1b._0x324a5e,0x1b7,0x1a0,_0x4c2b1b._0x3a2161)&&(_0x168f2f[_0x2a7dc6(0x651,0x67a,0x5c1,_0x4c2b1b._0x394e96)]['arguments']=_0x1ab176[_0x2a7dc6(_0x4c2b1b._0x398154,0x574,_0x4c2b1b._0xc09b10,0x55a)]);break;}case _0x3e6735(_0x4c2b1b._0x495797,0xf7,0x1e5,0x154):{const _0x4ed945=typeof _0x1ab176[_0x2a7dc6(_0x4c2b1b._0x98b859,0x547,0x540,_0x4c2b1b._0x41c3da)]==='number'?_0x1ab176[_0x3e6735(_0x4c2b1b._0x2c25bf,_0x4c2b1b._0x45868c,0x129,_0x4c2b1b._0x476cf0)]:void 0x0,_0x283289=_0x1ab176['item'];if(_0x283289?.[_0x2a7dc6(_0x4c2b1b._0xac2e86,0x572,0x4f9,_0x4c2b1b._0x40bb5b)]==='function_call'){const _0x1c9a72=_0x283289[_0x2a7dc6(0x619,_0x4c2b1b._0x56c62b,0x5cf,0x56e)]??(_0x4ed945!==void 0x0?this['outputIndexToCallId'][_0x3e6735(0x1b7,_0x4c2b1b._0x1f9b53,0x15a,0xf7)](_0x4ed945):void 0x0),_0x3d79c5=_0x1c9a72?this[_0x2a7dc6(_0x4c2b1b._0x31e281,0x588,_0x4c2b1b._0x2e6c07,0x554)][_0x2a7dc6(_0x4c2b1b._0x55afe8,0x533,_0x4c2b1b._0x398c78,0x58d)](_0x1c9a72):void 0x0;_0x3d79c5&&typeof _0x283289[_0x2a7dc6(0x561,_0x4c2b1b._0x45e206,_0x4c2b1b._0x4b8628,_0x4c2b1b._0x4eef6c)]===_0x3e6735(_0x4c2b1b._0x229421,0x280,0x167,0x227)&&(_0x3d79c5['function']['arguments']=_0x283289[_0x3e6735(0x1ae,0x1fb,_0x4c2b1b._0x3c2caa,0x138)]);break;}if(_0x283289?.['type']==='reasoning'&&_0x283289['id']){const _0x3b74a2=this[_0x2a7dc6(0x662,_0x4c2b1b._0x347829,0x574,0x626)](_0x283289['id'],_0x4ed945);typeof _0x283289[_0x3e6735(_0x4c2b1b._0x49927b,0x93,_0x4c2b1b._0x20c870,_0x4c2b1b._0x561b37)]==='string'&&(_0x3b74a2[_0x2a7dc6(0x50b,0x546,0x544,_0x4c2b1b._0x3f275c)]=_0x283289[_0x3e6735(0x1cc,_0x4c2b1b._0x5a2ca6,_0x4c2b1b._0xda9d81,0x13d)]);if(Array['isArray'](_0x283289[_0x2a7dc6(0x5cc,0x56a,_0x4c2b1b._0xb0d907,0x577)]))for(let _0x3a7ea3=0x0;_0x3a7ea3<_0x283289['summary'][_0x3e6735(0x142,_0x4c2b1b._0x5b3d18,_0x4c2b1b._0x142e88,_0x4c2b1b._0x4319bd)];_0x3a7ea3+=0x1){const _0xbade69=_0x283289['summary'][_0x3a7ea3];_0xbade69[_0x3e6735(_0x4c2b1b._0x1538c9,0x85,0x80,_0x4c2b1b._0x160498)]===_0x2a7dc6(_0x4c2b1b._0x599b97,0x5ad,0x556,_0x4c2b1b._0x37cf36)&&typeof _0xbade69[_0x2a7dc6(0x5b5,_0x4c2b1b._0x2a8533,0x597,_0x4c2b1b._0x56dac9)]==='string'&&_0x3b74a2[_0x2a7dc6(0x637,0x66d,_0x4c2b1b._0x3044c2,_0x4c2b1b._0x58e7a9)][_0x3e6735(0x29,_0x4c2b1b._0x18965d,0x188,_0x4c2b1b._0x1f5c5e)](_0x3a7ea3,_0xbade69['text']);}typeof _0x283289[_0x3e6735(0x2ca,_0x4c2b1b._0x12cbcf,0x226,_0x4c2b1b._0x11b90c)]==='string'&&_0x3b74a2['textByIndex'][_0x3e6735(_0x4c2b1b._0x20c870,_0x4c2b1b._0x427556,0xef,_0x4c2b1b._0x1f5c5e)](0x0,_0x283289['text']);}break;}case _0x2a7dc6(_0x4c2b1b._0x3b3c70,_0x4c2b1b._0xd4ee4d,_0x4c2b1b._0x22f634,_0x4c2b1b._0x12fe96):{const _0x1c8886=typeof _0x1ab176[_0x2a7dc6(0x50c,0x5b3,_0x4c2b1b._0x3c51b0,_0x4c2b1b._0x2e8fea)]===_0x2a7dc6(0x6c8,_0x4c2b1b._0x1dac5f,0x5eb,0x62a)?_0x1ab176[_0x2a7dc6(0x626,_0x4c2b1b._0x30043d,_0x4c2b1b._0x748020,0x55f)]:'',_0x1f40e4=typeof _0x1ab176[_0x3e6735(_0x4c2b1b._0x2d9fb5,_0x4c2b1b._0x747d52,0xf2,_0x4c2b1b._0x407170)]==='string'?_0x1ab176['item_id']:typeof _0x1ab176['output_index']==='number'?this['outputIndexToReasoningId'][_0x2a7dc6(0x54b,_0x4c2b1b._0x2f61bb,0x5f9,0x50a)](_0x1ab176[_0x2a7dc6(_0x4c2b1b._0x12ac9a,_0x4c2b1b._0xb09360,_0x4c2b1b._0x1d0521,_0x4c2b1b._0x59db98)]):void 0x0,_0x3ddb1f=typeof _0x1ab176[_0x2a7dc6(0x5e5,0x547,0x51a,0x564)]===_0x3e6735(0x17c,_0x4c2b1b._0x56c1b1,0x1c7,_0x4c2b1b._0x511cdb)?_0x1ab176[_0x3e6735(_0x4c2b1b._0x3a8f29,0x1a6,_0x4c2b1b._0x2a705c,0x10b)]:0x0,_0x2aef42=typeof _0x1ab176['summary_index']===_0x3e6735(0x2ab,0x213,0x2b6,0x241)?_0x1ab176[_0x2a7dc6(0x6dc,_0x4c2b1b._0x394e96,_0x4c2b1b._0x25bfde,0x669)]:0x0;if(_0x1f40e4&&_0x1c8886[_0x3e6735(_0x4c2b1b._0x468e4a,_0x4c2b1b._0x2dec9f,_0x4c2b1b._0x37d330,0x1f5)]>0x0){const _0x46c15d=this[_0x3e6735(0x1c7,0x126,_0x4c2b1b._0x206571,0x1a7)](_0x1f40e4,_0x3ddb1f);_0x46c15d[_0x3e6735(_0x4c2b1b._0xb94110,_0x4c2b1b._0x339bff,_0x4c2b1b._0x1414c7,0x231)]['set'](_0x2aef42,''+(_0x46c15d[_0x2a7dc6(_0x4c2b1b._0xa5cef7,_0x4c2b1b._0x2dd571,_0x4c2b1b._0x4dade1,0x696)][_0x3e6735(0x10a,0x61,0xa9,_0x4c2b1b._0x2cd7b4)](_0x2aef42)??'')+_0x1c8886);if(isUserVisibleReasoning(this[_0x2a7dc6(0x55d,0x4fd,_0x4c2b1b._0x4ec913,0x588)]))return[{'type':_0x2a7dc6(_0x4c2b1b._0x1dac5f,_0x4c2b1b._0x1a214b,_0x4c2b1b._0x225140,_0x4c2b1b._0x54dbd9),'delta':_0x1c8886,'itemId':_0x1f40e4,'outputIndex':_0x3ddb1f,'summaryIndex':_0x2aef42}];}break;}case _0x2a7dc6(0x567,0x5a4,_0x4c2b1b._0x4844c8,0x658):{const _0x5d756b=typeof _0x1ab176[_0x2a7dc6(0x6ae,0x5f1,0x531,0x569)]===_0x2a7dc6(0x700,_0x4c2b1b._0x43dbc4,0x6b7,0x6fb)?_0x1ab176[_0x2a7dc6(0x603,0x5f1,_0x4c2b1b._0x4d891b,0x686)]:typeof _0x1ab176['output_index']===_0x2a7dc6(_0x4c2b1b._0x313528,0x67d,_0x4c2b1b._0x226011,0x672)?this[_0x3e6735(_0x4c2b1b._0x39b054,0x109,_0x4c2b1b._0x133db0,_0x4c2b1b._0x481caf)][_0x3e6735(0x14c,0x113,_0x4c2b1b._0x803ad9,0xf7)](_0x1ab176[_0x2a7dc6(0x4b1,_0x4c2b1b._0x2d458b,_0x4c2b1b._0x52ef3f,_0x4c2b1b._0x3cb1f9)]):void 0x0,_0x2f4995=typeof _0x1ab176[_0x3e6735(0x141,_0x4c2b1b._0x40297d,_0x4c2b1b._0x694158,0x10b)]===_0x2a7dc6(_0x4c2b1b._0x26d0a2,_0x4c2b1b._0x1a2132,_0x4c2b1b._0x29b172,_0x4c2b1b._0x2b618e)?_0x1ab176['output_index']:0x0,_0x3b7475=typeof _0x1ab176[_0x3e6735(0x236,0x2a2,_0x4c2b1b._0x286025,0x1ed)]==='number'?_0x1ab176[_0x2a7dc6(_0x4c2b1b._0x16ea2a,0x629,0x5d2,_0x4c2b1b._0x45e279)]:0x0,_0x3f7463=typeof _0x1ab176[_0x3e6735(_0x4c2b1b._0x511cdb,0x23b,_0x4c2b1b._0x241f9f,0x218)]===_0x3e6735(_0x4c2b1b._0x5ce40e,0x191,0x29b,0x227)?_0x1ab176['text']:'';_0x5d756b&&this[_0x3e6735(_0x4c2b1b._0x2b4642,0x122,_0x4c2b1b._0x5794c1,_0x4c2b1b._0x108185)](_0x5d756b,_0x2f4995)[_0x2a7dc6(_0x4c2b1b._0x3703c8,_0x4c2b1b._0x2dd571,_0x4c2b1b._0x25ca2e,0x5c7)][_0x3e6735(_0x4c2b1b._0x4712a4,0x35,0xb6,0xe6)](_0x3b7475,_0x3f7463);break;}case _0x3e6735(0x19b,0x275,0x1e7,_0x4c2b1b._0x1b0fa5):{const _0x3df8fe=typeof _0x1ab176['delta']===_0x2a7dc6(_0x4c2b1b._0x4defe1,0x663,_0x4c2b1b._0x513911,0x5cc)?_0x1ab176[_0x3e6735(_0x4c2b1b._0x12306f,0x134,0x1c9,_0x4c2b1b._0x185915)]:'',_0x236039=typeof _0x1ab176['item_id']==='string'?_0x1ab176[_0x2a7dc6(0x679,0x5f1,_0x4c2b1b._0x225ca7,0x6b3)]:typeof _0x1ab176['output_index']==='number'?this[_0x2a7dc6(_0x4c2b1b._0x1ee136,_0x4c2b1b._0x303467,0x4c2,_0x4c2b1b._0x4c5045)]['get'](_0x1ab176['output_index']):void 0x0,_0x29ba3f=typeof _0x1ab176[_0x3e6735(_0x4c2b1b._0x6a89ab,_0x4c2b1b._0x66d2fe,0x7f,_0x4c2b1b._0x476cf0)]===_0x2a7dc6(0x636,_0x4c2b1b._0x12fd50,0x5bd,0x679)?_0x1ab176[_0x3e6735(_0x4c2b1b._0xe67ce8,0xa3,_0x4c2b1b._0x556934,0x10b)]:0x0,_0x3e7850=typeof _0x1ab176[_0x2a7dc6(0x600,0x639,_0x4c2b1b._0x5e1c1a,_0x4c2b1b._0x4af278)]===_0x3e6735(_0x4c2b1b._0x1b47f0,0x1bc,0x287,0x241)?_0x1ab176[_0x2a7dc6(0x669,_0x4c2b1b._0x1e6811,0x60b,0x692)]:0x0;if(_0x236039&&_0x3df8fe[_0x3e6735(0x188,_0x4c2b1b._0x456906,0x229,_0x4c2b1b._0x5c1e50)]>0x0){const _0x39ba7c=this[_0x2a7dc6(_0x4c2b1b._0x478e5f,_0x4c2b1b._0x33bb07,0x5de,0x5bd)](_0x236039,_0x29ba3f);_0x39ba7c[_0x2a7dc6(_0x4c2b1b._0x41c3da,0x56f,_0x4c2b1b._0xc28ff6,0x557)][_0x2a7dc6(0x587,_0x4c2b1b._0x433c2e,0x56d,0x5b3)](_0x3e7850,''+(_0x39ba7c[_0x3e6735(_0x4c2b1b._0x441a3e,0x141,0x13e,0x133)]['get'](_0x3e7850)??'')+_0x3df8fe);if(isUserVisibleReasoning(this[_0x2a7dc6(0x54e,0x4fd,_0x4c2b1b._0x28f4e7,0x582)]))return[{'type':_0x2a7dc6(_0x4c2b1b._0xc7018c,0x589,0x612,_0x4c2b1b._0x598352),'contentIndex':_0x3e7850,'delta':_0x3df8fe,'itemId':_0x236039,'outputIndex':_0x29ba3f}];}break;}case _0x3e6735(0x1b8,_0x4c2b1b._0x5c2aa1,0x140,_0x4c2b1b._0x3f7471):{const _0x31a83e=typeof _0x1ab176[_0x3e6735(0x217,0x19c,0x165,0x1b5)]===_0x2a7dc6(_0x4c2b1b._0x4ee2e9,_0x4c2b1b._0x54ddc8,0x5f6,_0x4c2b1b._0x45807b)?_0x1ab176[_0x2a7dc6(_0x4c2b1b._0xf6a9f4,0x5f1,0x5ff,_0x4c2b1b._0x351402)]:typeof _0x1ab176[_0x2a7dc6(_0x4c2b1b._0x2d4feb,0x547,0x5b5,0x594)]===_0x2a7dc6(_0x4c2b1b._0x2f8a08,0x67d,0x655,_0x4c2b1b._0x40ac43)?this[_0x3e6735(_0x4c2b1b._0x2b32a2,0x5f,_0x4c2b1b._0x216467,_0x4c2b1b._0x481caf)][_0x3e6735(_0x4c2b1b._0xf82e14,0x13d,_0x4c2b1b._0x1706e3,_0x4c2b1b._0x110196)](_0x1ab176[_0x3e6735(_0x4c2b1b._0x26eae0,_0x4c2b1b._0xe67ce8,0x59,_0x4c2b1b._0x4ca77c)]):void 0x0,_0x172d3f=typeof _0x1ab176[_0x3e6735(0x1a8,0xbb,0x1b5,_0x4c2b1b._0x4d5310)]===_0x2a7dc6(_0x4c2b1b._0x55ecee,0x67d,0x6b1,0x6fb)?_0x1ab176[_0x2a7dc6(0x5ac,0x547,0x4ce,0x5e5)]:0x0,_0xc5311d=typeof _0x1ab176[_0x3e6735(0x289,_0x4c2b1b._0x41c784,_0x4c2b1b._0x23d936,_0x4c2b1b._0x12da7c)]===_0x2a7dc6(_0x4c2b1b._0x1ebfc6,_0x4c2b1b._0x57806d,_0x4c2b1b._0x118678,0x727)?_0x1ab176[_0x3e6735(0x281,_0x4c2b1b._0x25922c,0x178,_0x4c2b1b._0x12da7c)]:0x0,_0xebe856=typeof _0x1ab176[_0x3e6735(0x1ea,0x1ce,0x267,_0x4c2b1b._0x11b90c)]==='string'?_0x1ab176['text']:'';_0x31a83e&&this[_0x2a7dc6(0x656,0x5e3,_0x4c2b1b._0x1e326b,_0x4c2b1b._0x467f6d)](_0x31a83e,_0x172d3f)[_0x2a7dc6(_0x4c2b1b._0x56c62b,_0x4c2b1b._0x3518a0,_0x4c2b1b._0x49f0d9,0x4f0)][_0x2a7dc6(0x546,0x522,_0x4c2b1b._0x3184cf,_0x4c2b1b._0x2d6673)](_0xc5311d,_0xebe856);break;}case _0x3e6735(_0x4c2b1b._0x339f64,_0x4c2b1b._0x3dfa8a,0xcb,0x118):{this['finalResponse']=_0x1ab176[_0x2a7dc6(0x623,_0x4c2b1b._0x5a2ad5,_0x4c2b1b._0x323e7d,0x5fe)];break;}case _0x3e6735(_0x4c2b1b._0x2fd544,_0x4c2b1b._0x5013b6,0xfc,_0x4c2b1b._0x5f221a):{const _0x2a3e64=_0x1ab176['response'];throw new OpenAiResponsesStreamError(_0x2a3e64?.[_0x3e6735(0xe8,_0x4c2b1b._0x257916,0xf,_0x4c2b1b._0x4e148a)]?.[_0x2a7dc6(0x523,0x5be,_0x4c2b1b._0x217e7b,0x577)]??_0x2a7dc6(0x5fa,0x5d5,_0x4c2b1b._0x10b059,_0x4c2b1b._0x29b172),{'code':_0x2a3e64?.['error']?.['code']});}case _0x3e6735(0x122,_0x4c2b1b._0x4e148a,0xdf,0xbf):{const _0x3fcafd=_0x1ab176[_0x3e6735(_0x4c2b1b._0x240ac8,0x13,0x123,0xbf)];throw new OpenAiResponsesStreamError(_0x3fcafd?.[_0x3e6735(0x244,0x127,0x1ea,0x182)]??_0x3e6735(_0x4c2b1b._0x5e7a0b,0xd4,_0x4c2b1b._0x505d58,_0x4c2b1b._0x230a25),{'code':_0x3fcafd?.[_0x3e6735(0x25c,0x26a,_0x4c2b1b._0x1b0e9b,0x216)],'status':typeof _0x1ab176['status']===_0x3e6735(0x270,0x1e4,0x2d3,_0x4c2b1b._0x511cdb)?_0x1ab176[_0x3e6735(_0x4c2b1b._0x5831ad,_0x4c2b1b._0x5d5a57,0xcc,_0x4c2b1b._0x54e662)]:void 0x0});}}return[];}['buildPartialOutput'](){const _0x234aa3={_0x3f5e48:0xd3,_0x2e0cd0:0x8c,_0x4477f0:0x231,_0x7a2400:0x16c,_0xe67baf:0x7,_0x2115b4:0xf9,_0x38d893:0x138,_0x19b09e:0x7e,_0x13e854:0xf6,_0x12d0c5:0x65,_0x2cf0e5:0xc2,_0x110f54:0x15e,_0x182306:0x92,_0x428133:0x101,_0x1a126c:0x55,_0xbc5244:0x100,_0x3e97b7:0xdf,_0x2838b2:0x165,_0x497ab9:0x102,_0x530ed2:0x22a,_0x4dbb3f:0xe3,_0x46991e:0x218,_0x4a76de:0x1b3,_0x56c1a2:0x75,_0x261a08:0xaa,_0x5c9cbd:0x160,_0x3c6c4f:0x18a,_0x41474f:0x2a,_0x5a0b5d:0x158,_0x1508ba:0x1b3,_0x158fcd:0x174,_0x138cf8:0x18b,_0x3208f9:0xc6,_0x1bb5d8:0x7c,_0xb8766a:0xfd,_0xd841a9:0xd0,_0x379ef8:0x2,_0x4b9ba8:0x92,_0x57e746:0x127,_0x6671b2:0x217,_0x5b17d5:0x237,_0x57c858:0x182,_0x42168b:0x1fe,_0x14adce:0xa8,_0xb79663:0xb,_0x4b1d93:0x16c,_0x2c1bd0:0x191,_0x1523a5:0x1ef,_0x28837d:0x151,_0x120b03:0x142,_0x8e379c:0x1f1,_0x21083f:0x181,_0xce4410:0xa6,_0x4303af:0x60,_0x33550e:0x126,_0x541a73:0x1a,_0x24afe5:0xc1,_0x26a826:0x1c7},_0x423e72={_0x2241ee:0xd5,_0x52e658:0x252,_0x31c166:0x187},_0x2262ed={_0x123a85:0x141,_0x31fc5a:0x218},_0x3705f1={_0x22d0ad:0x205,_0x224bbc:0x295},_0x5d417d={_0x1302d3:0xe3,_0x53a74d:0x1ad},_0x1e6cf0=[];for(const [_0x37cbef,_0x2dbe81]of this[_0x55d36e(0xa1,0x46,0x1f,0x79)][_0x55d36e(0xc0,_0x234aa3._0x3f5e48,0x76,0x48)]()){const _0x572285=_0x2dbe81[_0x55d36e(0x140,_0x234aa3._0x2e0cd0,0xa2,0x2)]('');if(_0x572285[_0x55d36e(_0x234aa3._0x4477f0,_0x234aa3._0x7a2400,0xc5,0xbe)]===0x0)continue;_0x1e6cf0[_0x4f9f4e(0x8c,_0x234aa3._0xe67baf,0xcc,0x185)]({'index':_0x37cbef,'item':{'type':_0x55d36e(0x1b1,_0x234aa3._0x2115b4,_0x234aa3._0x38d893,0x1af),'role':'assistant','content':[{'type':'output_text','text':_0x572285}]}});}for(const _0xceb036 of this[_0x4f9f4e(0x7c,_0x234aa3._0x19b09e,_0x234aa3._0x13e854,_0x234aa3._0x12d0c5)][_0x55d36e(0x152,_0x234aa3._0x2cf0e5,_0x234aa3._0x110f54,0x9e)]()){_0x1e6cf0[_0x55d36e(-0x21,_0x234aa3._0x182306,0xe2,0x13e)]({'index':_0xceb036[_0x55d36e(_0x234aa3._0x428133,_0x234aa3._0x1a126c,0x9d,0x29)]??_0x1e6cf0[_0x55d36e(_0x234aa3._0xbc5244,_0x234aa3._0x7a2400,0x203,_0x234aa3._0x3e97b7)],'item':{'type':_0x55d36e(0x11d,0xe6,_0x234aa3._0x2838b2,0x9a),'id':_0xceb036['id'],..._0xceb036['encryptedContent']?{'encrypted_content':_0xceb036[_0x55d36e(0x37,0x81,-0x20,_0x234aa3._0x497ab9)]}:{},..._0xceb036['summaryByIndex'][_0x4f9f4e(_0x234aa3._0x530ed2,_0x234aa3._0x4dbb3f,0x19a,_0x234aa3._0x46991e)]>0x0?{'summary':Array['from'](_0xceb036['summaryByIndex'][_0x55d36e(0xec,_0x234aa3._0x3f5e48,0xb7,0x98)]())['sort']((_0x58d936,_0x1c7238)=>_0x58d936[0x0]-_0x1c7238[0x0])[_0x55d36e(0x17c,_0x234aa3._0x4a76de,0x123,0x120)](([,_0x17d73e])=>{function _0x2e0110(_0x15cdc4,_0x3c9659,_0x21c428,_0x20495a){return _0x55d36e(_0x15cdc4-_0x5d417d._0x1302d3,_0x20495a-_0x5d417d._0x53a74d,_0x21c428-0x163,_0x15cdc4);}return{'type':_0x2e0110(_0x3705f1._0x22d0ad,0x24d,0x294,_0x3705f1._0x224bbc),'text':_0x17d73e};})}:{},..._0xceb036[_0x55d36e(_0x234aa3._0x56c1a2,_0x234aa3._0x261a08,-0xf,0x52)][_0x55d36e(0x1e4,_0x234aa3._0x5c9cbd,0x9e,0x201)]>0x0?{'text':Array[_0x4f9f4e(0x2b4,_0x234aa3._0x3c6c4f,0x1f5,0x25b)](_0xceb036[_0x55d36e(_0x234aa3._0x41474f,_0x234aa3._0x261a08,_0x234aa3._0x5a0b5d,0xb1)]['entries']())['sort']((_0x5d718a,_0x2fd8d5)=>_0x5d718a[0x0]-_0x2fd8d5[0x0])[_0x55d36e(0xff,_0x234aa3._0x1508ba,_0x234aa3._0x158fcd,_0x234aa3._0x138cf8)](([,_0x5c50dc])=>_0x5c50dc)[_0x4f9f4e(0x5d,_0x234aa3._0x261a08,_0x234aa3._0x3208f9,0x130)]('')}:{}}});}function _0x4f9f4e(_0x5d100c,_0x11d37c,_0x1faeba,_0x5be496){return _0x3921cc(_0x5d100c-_0x2262ed._0x123a85,_0x1faeba- -_0x2262ed._0x31fc5a,_0x5d100c,_0x5be496-0xec);}function _0x55d36e(_0x1fe0a8,_0x760e7a,_0x1aa131,_0x11f569){return _0x3921cc(_0x1fe0a8-_0x423e72._0x2241ee,_0x760e7a- -_0x423e72._0x52e658,_0x11f569,_0x11f569-_0x423e72._0x31c166);}for(const _0x42a6ef of this[_0x4f9f4e(0xfe,_0x234aa3._0x1bb5d8,_0x234aa3._0xb8766a,_0x234aa3._0xd841a9)]['values']()){_0x1e6cf0[_0x55d36e(_0x234aa3._0x379ef8,_0x234aa3._0x4b9ba8,0x30,_0x234aa3._0x57e746)]({'index':this[_0x4f9f4e(_0x234aa3._0x6671b2,_0x234aa3._0x5b17d5,_0x234aa3._0x57c858,_0x234aa3._0x42168b)][_0x4f9f4e(0x61,-0x2,_0x234aa3._0x14adce,-_0x234aa3._0xb79663)](_0x42a6ef['id'])??_0x1e6cf0[_0x55d36e(0x10a,_0x234aa3._0x4b1d93,_0x234aa3._0x497ab9,0x165)],'item':{'type':_0x4f9f4e(0x203,0x102,0x168,_0x234aa3._0x2c1bd0),'call_id':_0x42a6ef['id'],'name':_0x42a6ef[_0x4f9f4e(0x1ed,0x13d,_0x234aa3._0x1523a5,0x265)][_0x4f9f4e(_0x234aa3._0x28837d,_0x234aa3._0x120b03,_0x234aa3._0x8e379c,_0x234aa3._0x21083f)],'arguments':_0x42a6ef['function'][_0x4f9f4e(0xed,_0x234aa3._0xce4410,0xe9,_0x234aa3._0x4303af)]}});}return _0x1e6cf0[_0x55d36e(_0x234aa3._0x33550e,0x6d,_0x234aa3._0x541a73,_0x234aa3._0x24afe5)]((_0x4d8efe,_0x4da2f1)=>_0x4d8efe['index']-_0x4da2f1[_0x4f9f4e(0x5c,0x7f,0xd5,0xa5)])[_0x55d36e(_0x234aa3._0x26a826,0x1b3,0x120,0x1b6)](_0x102e70=>_0x102e70[_0x55d36e(0x7f,0x77,0x112,0x13b)]);}[_0x4abdca(0x4a5,0x510,0x45d,0x5ac)](_0x1dc931,_0x1d1851){const _0x401d9c={_0x3bf333:0x25e,_0x5ce14f:0x1cf,_0x1b9237:0x190,_0x3a5751:0x2c7,_0x11953a:0x182,_0x683889:0x96,_0x3959d7:0x302,_0x22abc4:0x21f,_0x18cc58:0x255,_0x102a40:0x17c,_0x577e30:0xd,_0x592b94:0x84},_0x174133={_0xf745da:0x180,_0xfc159a:0xb0},_0x5c10e6={_0x1851c4:0x1d8,_0x52d653:0x127},_0x2b34ae=this[_0x1a8e75(_0x401d9c._0x3bf333,_0x401d9c._0x5ce14f,0x242,0x204)][_0x1a8e75(0x210,_0x401d9c._0x1b9237,_0x401d9c._0x3a5751,_0x401d9c._0x11953a)](_0x1dc931);function _0x2a6472(_0x22541f,_0x185f63,_0x3e1e1f,_0x35b15a){return _0x4abdca(_0x22541f-_0x5c10e6._0x1851c4,_0x3e1e1f- -0x457,_0x3e1e1f-_0x5c10e6._0x52d653,_0x185f63);}function _0x1a8e75(_0x3f16cc,_0x2a8416,_0x532e5f,_0x3cc49a){return _0x3921cc(_0x3f16cc-_0x174133._0xf745da,_0x3f16cc- -_0x174133._0xfc159a,_0x532e5f,_0x3cc49a-0x17b);}if(_0x2b34ae)return _0x1d1851!==void 0x0&&(_0x2b34ae['outputIndex']=_0x1d1851,this[_0x2a6472(_0x401d9c._0x683889,0x3c,0x18,0xa5)]['set'](_0x1d1851,_0x1dc931)),_0x2b34ae;const _0x287d64={'id':_0x1dc931,'outputIndex':_0x1d1851,'summaryByIndex':new Map(),'textByIndex':new Map()};return this[_0x1a8e75(_0x401d9c._0x3bf333,0x1a0,0x1a6,_0x401d9c._0x3959d7)]['set'](_0x1dc931,_0x287d64),_0x1d1851!==void 0x0&&this[_0x1a8e75(_0x401d9c._0x22abc4,0x16a,_0x401d9c._0x18cc58,_0x401d9c._0x102a40)][_0x2a6472(-_0x401d9c._0x577e30,0x4d,-0x8,_0x401d9c._0x592b94)](_0x1d1851,_0x1dc931),_0x287d64;}};function createOpenAiResponsesStreamParser(_0x13e6e6){return new OpenAiResponsesStreamParser(_0x13e6e6);}function createOpenAiSurfaces(_0x1e4b1a={}){const _0x47511f={_0x23555b:0xee,_0xfb8c55:0x611,_0xea1e9f:0x69b,_0x2e1231:0x120,_0xa9fd42:0x134,_0xc8cf5a:0x14b,_0x5b6513:0x1d1,_0x217e22:0x1be,_0x12801b:0x615,_0x4a15e9:0x614,_0x252a93:0x14b,_0x21fc83:0x1a2},_0x45b07f={_0x8fe37b:0x142,_0x1eddc5:0x5f,_0x3cebf1:0xf5},_0xceb63e={_0x1f5df6:0x4b8,_0x5a08da:0x415},_0x1fa11f={_0x5cc0f6:0x9f},_0x16008d={_0x107147:0x469,_0x2fde79:0x434,_0x2f1449:0x472},_0x314958={_0x223ab6:0x30a},_0x503e42={_0x407ade:0xf,_0x4b069c:0x3af,_0x107a0f:0x3f},_0x1afdef={_0x2ab349:0x2c8};function _0x32c8ab(_0x5cb604,_0x573ab4,_0x3a0375,_0x3e02cb){return _0x3921cc(_0x5cb604-0x4c,_0x3a0375-_0x1afdef._0x2ab349,_0x5cb604,_0x3e02cb-0x19e);}const _0x162679=_0x1e4b1a[_0x1a4180(0x8b,_0x47511f._0x23555b,0xb7,0xeb)]??_0x32c8ab(_0x47511f._0xfb8c55,0x6dd,_0x47511f._0xea1e9f,0x5eb),_0x2b7486=_0x1e4b1a[_0x1a4180(0x10a,_0x47511f._0x2e1231,_0x47511f._0xa9fd42,_0x47511f._0xc8cf5a)]??'/responses';function _0x1a4180(_0xc0465,_0x13e0a8,_0x606038,_0x58998a){return _0x4abdca(_0xc0465-_0x503e42._0x407ade,_0x606038- -_0x503e42._0x4b069c,_0x606038-_0x503e42._0x107a0f,_0x13e0a8);}return[{'id':OPENAI_CHAT_COMPLETIONS_SURFACE,'transport':'http-json','createRequest'(_0x372f3e){function _0x4538c4(_0x2b779a,_0x334ff8,_0x3109f8,_0x3e6dae){return _0x1a4180(_0x2b779a-0x18f,_0x3e6dae,_0x2b779a-_0x314958._0x223ab6,_0x3e6dae-0xab);}return{'accept':_0x4538c4(_0x16008d._0x107147,_0x16008d._0x2fde79,0x4f5,_0x16008d._0x2f1449),'body':createChatRequestBody(_0x372f3e,![]),'path':_0x162679};},'parseResponse'(_0x26904b){return parseChatCompletionResponse(_0x26904b);}},{'id':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,'transport':_0x1a4180(0x164,_0x47511f._0x5b6513,_0x47511f._0x217e22,0x20b),'createRequest'(_0x3d3b60){const _0x186be1={_0x17314f:0xc7,_0x556108:0x4b7,_0x422ef4:0x188};function _0x2d41ed(_0x1c42a6,_0x538286,_0x5eb762,_0x7fdba2){return _0x32c8ab(_0x5eb762,_0x538286-_0x186be1._0x17314f,_0x1c42a6- -_0x186be1._0x556108,_0x7fdba2-_0x186be1._0x422ef4);}return{'accept':_0x2d41ed(0xab,_0x1fa11f._0x5cc0f6,0x29,0x39),'body':createChatRequestBody(_0x3d3b60,!![]),'path':_0x162679};},'createStreamParser'(_0xb282b4){return new OpenAiChatCompletionsStreamParser(_0xb282b4);}},{'id':OPENAI_RESPONSES_SURFACE,'transport':_0x32c8ab(0x68d,_0x47511f._0x12801b,0x641,_0x47511f._0x4a15e9),'createRequest'(_0x1bbbff){const _0x4f7c4c={_0x20c47c:0x359};function _0xaa952f(_0x51af2e,_0x2d69cd,_0x2a1c90,_0x47620b){return _0x1a4180(_0x51af2e-0x12a,_0x2d69cd,_0x2a1c90-_0x4f7c4c._0x20c47c,_0x47620b-0x24);}return{'accept':_0xaa952f(0x519,0x4c5,_0xceb63e._0x1f5df6,_0xceb63e._0x5a08da),'body':createResponsesRequestBody(_0x1bbbff,![]),'path':_0x2b7486};},'parseResponse'(_0x1c0629,_0x18575e){return parseResponsesResponse(_0x1c0629,_0x18575e);}},{'id':OPENAI_RESPONSES_STREAM_SURFACE,'transport':_0x1a4180(0x1e8,_0x47511f._0x252a93,0x1be,_0x47511f._0x21fc83),'createRequest'(_0x3e64f3){const _0x3da5ce={_0x13008e:0xf2,_0x687f54:0x46d};function _0x4c160d(_0x3dbd6b,_0x5c31df,_0x40afec,_0x55d637){return _0x32c8ab(_0x3dbd6b,_0x5c31df-_0x3da5ce._0x13008e,_0x55d637- -_0x3da5ce._0x687f54,_0x55d637-0xa3);}return{'accept':_0x4c160d(_0x45b07f._0x8fe37b,0x13a,_0x45b07f._0x1eddc5,_0x45b07f._0x3cebf1),'body':createResponsesRequestBody(_0x3e64f3,!![]),'path':_0x2b7486};},'createStreamParser'(_0x334a6e){return new OpenAiResponsesStreamParser(_0x334a6e);}},{'id':OPENAI_RESPONSES_WEBSOCKET_SURFACE,'transport':'websocket','createRequest'(_0x45281e){return{'initialEvent':createOpenAiResponsesWebSocketEvent(_0x45281e),'path':_0x2b7486};},'createStreamParser'(_0x5474dc){return createOpenAiResponsesStreamParser(_0x5474dc);}}];}var OpenAiProviderAdapter=class{[_0x3921cc(0x385,0x3d9,0x330,0x33c)];constructor(_0x1ad6f3){const _0x10e9ae={_0x4923cd:0x3a2},_0x21f6bf={_0x579603:0xf8};function _0x4a16a8(_0x18bde3,_0x7a4cdc,_0xc13059,_0x2ff191){return _0x3921cc(_0x18bde3-0x140,_0xc13059- -_0x21f6bf._0x579603,_0x18bde3,_0x2ff191-0xdf);}this[_0x4a16a8(0x371,_0x10e9ae._0x4923cd,0x2e1,0x2e3)]=_0x1ad6f3;}[_0x4abdca(0x3f5,0x42e,0x36d,0x41f)](){const _0x47889f={_0x38648d:0x28,_0xf9b3ec:0x40};function _0x20555a(_0xfbf7b4,_0x154892,_0x60f64a,_0x3324d9){return _0x4abdca(_0xfbf7b4-0x94,_0x60f64a- -0x4a2,_0x60f64a-0x3b,_0xfbf7b4);}return new Error(_0x20555a(-_0x47889f._0x38648d,-0x6d,_0x47889f._0xf9b3ec,0x6f));}async[_0x3921cc(0x325,0x37d,0x3fd,0x3be)](_0x2b114a,_0x46c64b){const _0x4437c6={_0x59c9d4:0x150,_0x2fa42f:0x130,_0x302176:0x13b,_0x48072e:0x1d8,_0x5567c2:0x127,_0x1c1a9e:0x213,_0x1a7020:0x78,_0xf6fb35:0xa8,_0x49222c:0x38,_0x41f0a6:0x9a,_0x59368b:0xfa,_0x46adf0:0x7c,_0x13e401:0x12e,_0x334484:0x12b,_0x5331b3:0x1c1,_0x5cbd3b:0x1f1,_0x47e3ba:0x117,_0x511148:0x164,_0x19ba35:0xaf,_0x112637:0x33,_0x20e228:0x85,_0xccfba4:0x166,_0x899aee:0x17e,_0x5261f2:0x100,_0x3867b8:0xd1,_0x51a634:0x10a,_0x3a5f7a:0x13e,_0x364ad5:0xfb,_0x4bf43b:0x120,_0x30faca:0x1a4,_0x3a8a8f:0x159},_0x57f86d={_0x469d29:0x17,_0x32dad0:0x11b},_0x1240ba={_0x30b5d5:0x67d},_0x3a46c6=new Headers();function _0x5e46aa(_0x27e2ef,_0x21140e,_0x56682d,_0x4c6262){return _0x4abdca(_0x27e2ef-0x198,_0x56682d- -_0x1240ba._0x30b5d5,_0x56682d-0x1d4,_0x21140e);}_0x3a46c6['set'](_0x5e46aa(-_0x4437c6._0x59c9d4,-_0x4437c6._0x2fa42f,-0x1d8,-0x1ac),_0x46c64b[_0x5e46aa(-_0x4437c6._0x302176,-0x205,-_0x4437c6._0x48072e,-0x17f)]),_0x3a46c6[_0x5a590a(-0xe4,-_0x4437c6._0x5567c2,-0x159,-_0x4437c6._0x1c1a9e)](_0x5a590a(-0x164,-_0x4437c6._0x1a7020,-_0x4437c6._0xf6fb35,-0x139),_0x5e46aa(-_0x4437c6._0x49222c,-_0x4437c6._0x41f0a6,-_0x4437c6._0x59368b,-_0x4437c6._0x46adf0)+_0x2b114a['credential'][_0x5a590a(-0x17c,-_0x4437c6._0x13e401,-_0x4437c6._0x334484,-_0x4437c6._0x5331b3)]);_0x46c64b[_0x5a590a(-0x204,-0x227,-0x17b,-_0x4437c6._0x5cbd3b)]!==![]&&_0x3a46c6['set'](_0x5e46aa(-_0x4437c6._0x47e3ba,-_0x4437c6._0x511148,-0xdb,-0x16d),_0x5e46aa(-0x221,-_0x4437c6._0x19ba35,-0x16f,-0xe7));function _0x5a590a(_0x4559a3,_0x1466cb,_0x2155a3,_0x48b47b){return _0x4abdca(_0x4559a3-_0x57f86d._0x469d29,_0x2155a3- -0x5a8,_0x2155a3-_0x57f86d._0x32dad0,_0x4559a3);}const _0x1d6302=await this[_0x5a590a(0x4f,-_0x4437c6._0x112637,-0x2f,-_0x4437c6._0x20e228)]?.({'body':_0x2b114a['body'],'credential':_0x2b114a[_0x5a590a(-0x7d,-0x9c,-0x10b,-_0x4437c6._0xccfba4)],'request':_0x2b114a[_0x5a590a(-0x1c0,-0x1e9,-_0x4437c6._0x899aee,-_0x4437c6._0x5261f2)],'session':_0x2b114a[_0x5e46aa(-0x26e,-0x2a1,-0x234,-0x24a)],'stream':_0x2b114a[_0x5a590a(-_0x4437c6._0x3867b8,-0x142,-0x154,-_0x4437c6._0x51a634)]});for(const [_0xfcfef9,_0x339e03]of Object[_0x5a590a(-0x57,-_0x4437c6._0x3a5f7a,-0xe3,-_0x4437c6._0x364ad5)](_0x1d6302??{})){_0x3a46c6[_0x5a590a(-_0x4437c6._0x4bf43b,-_0x4437c6._0x30faca,-_0x4437c6._0x3a8a8f,-0x1f9)](_0xfcfef9,_0x339e03);}return _0x3a46c6;}[_0x4abdca(0x404,0x456,0x50c,0x4e5)](_0x2c2e7b){return _0x2c2e7b;}['resolveBaseUrl'](_0x2d367e,_0x24032d){return resolveSessionBaseUrl(_0x2d367e,_0x24032d);}[_0x4abdca(0x441,0x496,0x42e,0x41c)](_0x242161,_0x3fe1b7){return resolveApiCredential(_0x242161,_0x3fe1b7);}async[_0x4abdca(0x4db,0x526,0x4ea,0x549)](_0x298923){return await createOpenAiApiError(_0x298923);}},OpenAiModel=class _OpenAiModel extends RoutedModel{static ['sharedResponsesSocketSessions']=new Map();[_0x3921cc(0x327,0x2c6,0x223,0x22b)];[_0x4abdca(0x4f2,0x4e3,0x427,0x496)];constructor(_0x1f9906={}){const _0xebc6e8={_0x1c8465:0xc7,_0x548941:0x433,_0x1b9f9c:0x397,_0x40c409:0xa2,_0x4cf05a:0xab,_0x20af28:0x35f,_0x58e816:0x2ff,_0x24c01b:0x402,_0x5be451:0x2d7,_0x495634:0x421,_0x21d65f:0x19,_0x255f58:0xa1,_0x491ea3:0xeb,_0x2a7f3e:0x47,_0x2eb4a6:0x2ea,_0x7916e1:0x2bf,_0x578aaa:0x10b,_0x347977:0xfe,_0x533f81:0x4bc,_0x51c212:0x421,_0x4e0cc0:0x3be,_0x4178e4:0xb8,_0x311f9a:0xa7,_0x289314:0x44,_0x5239d8:0x32,_0x581945:0x96,_0x24a6fb:0xdb,_0x4f700e:0x35f,_0x5d1c68:0x3bc},_0x24843c={_0x3cf4d5:0xcc,_0xda0e2b:0x1a4},_0x25d717={_0x13655d:0x37,_0x5e5c98:0x3c9,_0x51684f:0x151};function _0x5e4db9(_0x52e056,_0x3bc612,_0xe33366,_0x2da085){return _0x3921cc(_0x52e056-_0x25d717._0x13655d,_0x3bc612- -_0x25d717._0x5e5c98,_0x2da085,_0x2da085-_0x25d717._0x51684f);}const _0x39c0a8=_0x1f9906[_0x5e4db9(-0xb1,-0x3b,-_0xebc6e8._0x1c8465,0x43)]??_0x50b2ca(0x421,_0xebc6e8._0x548941,0x37d,_0xebc6e8._0x1b9f9c),_0x5aa639=_0x1f9906[_0x5e4db9(-_0xebc6e8._0x40c409,-_0xebc6e8._0x4cf05a,-0x15f,-0x16f)]??0x4000,_0x3abb7e=_0x1f9906[_0x50b2ca(_0xebc6e8._0x20af28,_0xebc6e8._0x58e816,_0xebc6e8._0x24c01b,_0xebc6e8._0x5be451)]??_0x50b2ca(0x46c,0x51f,0x517,_0xebc6e8._0x495634),_0x9fd553=_0x1f9906['responsesPath']??_0x5e4db9(0x63,-_0xebc6e8._0x21d65f,_0xebc6e8._0x255f58,0x2);super({'apiKey':_0x1f9906[_0x5e4db9(_0xebc6e8._0x491ea3,_0xebc6e8._0x2a7f3e,-0x3a,0x41)],'baseUrl':trimTrailingSlashes(_0x1f9906[_0x50b2ca(0x354,_0xebc6e8._0x2eb4a6,_0xebc6e8._0x7916e1,0x2f5)]??_0x5e4db9(-_0xebc6e8._0x578aaa,-0x13e,-0x1d1,-_0xebc6e8._0x347977)),'fetch':_0x1f9906[_0x50b2ca(0x40d,0x3a4,0x3b1,_0xebc6e8._0x533f81)],'maxTokens':_0x5aa639,'model':_0x39c0a8,'reasoning':_0x1f9906[_0x50b2ca(0x3d1,_0xebc6e8._0x51c212,0x464,_0xebc6e8._0x4e0cc0)],'providerAdapter':new OpenAiProviderAdapter(_0x1f9906[_0x50b2ca(0x472,0x4cb,0x475,0x4ce)]),'providerSessionResolver':_0x1f9906['providerSessionResolver'],'requestMutators':_0x1f9906[_0x5e4db9(-0x21,-_0xebc6e8._0x4178e4,-_0xebc6e8._0x311f9a,-_0xebc6e8._0x289314)],'router':new StaticModelSurfaceRouter({'complete':OPENAI_CHAT_COMPLETIONS_SURFACE,'stream':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE}),'sessionManager':_0x1f9906['sessionManager'],'surfaces':createOpenAiSurfaces({'chatCompletionsPath':_0x3abb7e,'responsesPath':_0x9fd553}),'webSocketFactory':_0x1f9906[_0x5e4db9(-_0xebc6e8._0x5239d8,-_0xebc6e8._0x581945,-0xb6,-_0xebc6e8._0x24a6fb)]}),this[_0x50b2ca(_0xebc6e8._0x4f700e,_0xebc6e8._0x5d1c68,0x2de,0x399)]=_0x3abb7e;function _0x50b2ca(_0x4997ce,_0x453171,_0x9d2420,_0x2e768c){return _0x3921cc(_0x4997ce-_0x24843c._0x3cf4d5,_0x4997ce-0x99,_0x2e768c,_0x2e768c-_0x24843c._0xda0e2b);}this['responsesPath']=_0x9fd553;}[_0x3921cc(0x255,0x2ef,0x34c,0x27d)](_0x23103b,_0x1c40dc){return this['completeViaSurface'](_0x23103b,OPENAI_CHAT_COMPLETIONS_SURFACE,_0x1c40dc);}[_0x4abdca(0x519,0x561,0x4e7,0x549)](_0x29e9fb,_0x60130d){const _0x26bc56={_0x901886:0x310,_0x1065c6:0x2e9,_0x3eb4fb:0x2d5,_0x41e3e6:0x29f},_0x152018={_0xff6b97:0x1d,_0x564edb:0x151};function _0x575c9a(_0x34ece2,_0x4af516,_0x49471b,_0x38fcbe){return _0x3921cc(_0x34ece2-_0x152018._0xff6b97,_0x4af516- -0x49,_0x38fcbe,_0x38fcbe-_0x152018._0x564edb);}return this[_0x575c9a(_0x26bc56._0x901886,_0x26bc56._0x1065c6,_0x26bc56._0x3eb4fb,_0x26bc56._0x41e3e6)](_0x29e9fb,OPENAI_RESPONSES_SURFACE,_0x60130d);}[_0x4abdca(0x564,0x578,0x592,0x590)](_0x2f5556,_0x829d77){return this['completeViaSurface'](_0x2f5556,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x829d77);}['streamViaChatCompletionsSurface'](_0x1cabbd,_0x58a0c3){const _0x102ac6={_0x1df853:0x10a,_0x43bed9:0x5e},_0xe9ae1d={_0x3d390a:0x37c};function _0x218c0b(_0x1117ce,_0x473793,_0x563282,_0x18e7dd){return _0x3921cc(_0x1117ce-0xf6,_0x18e7dd- -_0xe9ae1d._0x3d390a,_0x563282,_0x18e7dd-0x1bd);}return this[_0x218c0b(0x33,_0x102ac6._0x1df853,-0x46,_0x102ac6._0x43bed9)](_0x1cabbd,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,_0x58a0c3);}[_0x4abdca(0x411,0x437,0x3c5,0x3f9)](_0x540e6c,_0x541804){const _0x294672={_0x1edc2d:0x66},_0x4a21ec={_0x18b613:0xf3};function _0x351ae1(_0x164549,_0x3addc7,_0xd73ffd,_0x31261b){return _0x3921cc(_0x164549-0x71,_0x31261b- -0x2c5,_0xd73ffd,_0x31261b-_0x4a21ec._0x18b613);}return this[_0x351ae1(0x9f,_0x294672._0x1edc2d,0x5b,0x115)](_0x540e6c,OPENAI_RESPONSES_STREAM_SURFACE,_0x541804);}[_0x3921cc(0x300,0x31f,0x2fa,0x25e)](_0x5c7bfd,_0x129aa2){return this['streamViaSurface'](_0x5c7bfd,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x129aa2);}async['chatComplete'](_0x3d340c,_0x3bf6c0){const _0x238332={_0x23880c:0xc8,_0x589817:0x8e,_0x26aeca:0xbc,_0x2d7498:0xe1,_0x1f0b63:0x108},_0x31faaf={_0x51b1d1:0x9},_0x5f41e2={_0x59d5f1:0xfa,_0x38d607:0x54b,_0x2c9887:0x1cd};function _0x526767(_0x4c426a,_0x37df91,_0xaaa4d7,_0x474443){return _0x4abdca(_0x4c426a-_0x5f41e2._0x59d5f1,_0x474443- -_0x5f41e2._0x38d607,_0xaaa4d7-_0x5f41e2._0x2c9887,_0xaaa4d7);}function _0xbdd1ef(_0x3acf6e,_0x5c5c5d,_0x3be152,_0x5b04b8){return _0x4abdca(_0x3acf6e-0x39,_0x3acf6e-_0x31faaf._0x51b1d1,_0x3be152-0x1,_0x5b04b8);}try{return await this[_0x526767(-_0x238332._0x23880c,-0x164,-_0x238332._0x589817,-_0x238332._0x26aeca)](_0x3d340c,_0x3bf6c0);}catch(_0x17ef2e){if(_0x17ef2e instanceof OpenAiApiError)throw this[_0x526767(-0x1a2,-_0x238332._0x2d7498,-_0x238332._0x1f0b63,-0xf5)](_0x17ef2e);throw _0x17ef2e;}}async['response'](_0x88beef,_0x5ca6de){const _0x671caa={_0x7f1f81:0x9b,_0x11e7f7:0x159,_0xb2e3ff:0x20},_0x5a4c35={_0x57a747:0x1a5};function _0x24b63e(_0xeb5c6b,_0x183496,_0xeb4ca9,_0x40d059){return _0x3921cc(_0xeb5c6b-0x8e,_0xeb4ca9- -0x125,_0x40d059,_0x40d059-0x17c);}function _0x7156c4(_0x5a18b9,_0x1c2919,_0x5e8c12,_0x28f3ab){return _0x3921cc(_0x5a18b9-_0x5a4c35._0x57a747,_0x1c2919- -0x326,_0x28f3ab,_0x28f3ab-0x16d);}try{return await this[_0x7156c4(0x80,_0x671caa._0x7f1f81,_0x671caa._0x11e7f7,0x14b)](_0x88beef,_0x5ca6de);}catch(_0x33f53a){if(_0x33f53a instanceof OpenAiApiError)throw this[_0x7156c4(0x20,-0x70,-_0x671caa._0xb2e3ff,-0x10f)](_0x33f53a);throw _0x33f53a;}}async[_0x3921cc(0x2b6,0x320,0x29d,0x3bf)](_0x2cd9f1,_0x3d7af2){const _0x2a933b={_0x3a5b36:0xca,_0x4741b0:0x4,_0x572d9c:0x8,_0x108568:0x7a,_0x51856c:0x72,_0x1074c5:0xab,_0x7810e5:0x7f,_0x5930e0:0x13b,_0x3911fd:0xcd,_0x45cf35:0x3b,_0x17595d:0x21,_0x1d6c17:0xcb},_0x5614aa={_0xbd8ec7:0x4a7,_0x262f75:0x1},_0x4ffe9e={_0x4f91e8:0xe};function _0x3a4312(_0x307dcd,_0x2ac9ec,_0x127a49,_0x5e79f5){return _0x4abdca(_0x307dcd-_0x4ffe9e._0x4f91e8,_0x2ac9ec- -0x477,_0x127a49-0xdb,_0x5e79f5);}function _0x37dcfb(_0x2fc332,_0x31c9a4,_0x4da6a7,_0x3303b6){return _0x4abdca(_0x2fc332-0xdb,_0x3303b6- -_0x5614aa._0xbd8ec7,_0x4da6a7-_0x5614aa._0x262f75,_0x2fc332);}try{let _0x35baef;for await(const _0x404714 of this[_0x3a4312(0x82,-0x22,-_0x2a933b._0x3a5b36,-0x48)](_0x2cd9f1,_0x3d7af2)){_0x404714[_0x37dcfb(-0xa3,-_0x2a933b._0x4741b0,0x19,-_0x2a933b._0x572d9c)]==='done'&&(_0x35baef=_0x404714[_0x3a4312(0xa0,_0x2a933b._0x108568,-0x3c,_0x2a933b._0x51856c)]);}if(!_0x35baef)throw new Error(_0x3a4312(_0x2a933b._0x1074c5,_0x2a933b._0x7810e5,_0x2a933b._0x5930e0,_0x2a933b._0x3911fd));return _0x35baef;}catch(_0x2ded9b){if(_0x2ded9b instanceof OpenAiApiError)throw this[_0x3a4312(_0x2a933b._0x45cf35,-_0x2a933b._0x17595d,0x10,-_0x2a933b._0x1d6c17)](_0x2ded9b);throw _0x2ded9b;}}async*[_0x3921cc(0x3ab,0x3ad,0x3c9,0x3bb)](_0xd59d48,_0x2a1f9e){try{yield*this['streamViaChatCompletionsSurface'](_0xd59d48,_0x2a1f9e);}catch(_0x159cbe){if(_0x159cbe instanceof OpenAiApiError)throw this['mapApiError'](_0x159cbe);throw _0x159cbe;}}async*['responseStream'](_0x59ef96,_0x4f81ec){const _0x19b728={_0x54f6fc:0x57,_0x2e1932:0x14e,_0x239327:0x1f1,_0x1bc260:0x143,_0x126dc6:0x2b7},_0x1eae9b={_0x521283:0x17a},_0x27ea47={_0x527f92:0x94,_0x1a73d4:0xed};function _0x280e88(_0x5a6b67,_0x386c8c,_0x483603,_0x3f87ad){return _0x4abdca(_0x5a6b67-_0x27ea47._0x527f92,_0x5a6b67- -0x265,_0x483603-_0x27ea47._0x1a73d4,_0x483603);}function _0x26cf8b(_0x544a1f,_0xa58ed2,_0x5d8c31,_0x1404bc){return _0x3921cc(_0x544a1f-0x1f,_0x1404bc- -_0x1eae9b._0x521283,_0xa58ed2,_0x1404bc-0xa5);}try{yield*this[_0x26cf8b(0x70,_0x19b728._0x54f6fc,_0x19b728._0x2e1932,0x11d)](_0x59ef96,_0x4f81ec);}catch(_0x574fd8){if(_0x574fd8 instanceof OpenAiApiError)throw this[_0x280e88(_0x19b728._0x239327,0x152,_0x19b728._0x1bc260,_0x19b728._0x126dc6)](_0x574fd8);throw _0x574fd8;}}async*[_0x3921cc(0x294,0x2b5,0x234,0x275)](_0x50aba6,_0xab17f0){const _0x2549a5={_0x47791c:0x1ef},_0x27961f={_0x4787ca:0xec};function _0x7d0be3(_0x4ee111,_0x475987,_0x26496a,_0x4f9efd){return _0x3921cc(_0x4ee111-0x1c6,_0x4ee111- -_0x27961f._0x4787ca,_0x475987,_0x4f9efd-0x1b7);}try{yield*this['streamViaPersistentResponsesSocket'](_0x50aba6,_0xab17f0);}catch(_0x3501e5){if(_0x3501e5 instanceof OpenAiApiError)throw this[_0x7d0be3(0x1ca,_0x2549a5._0x47791c,0x1d3,0x132)](_0x3501e5);throw _0x3501e5;}}[_0x3921cc(0x315,0x30f,0x2a9,0x36b)](_0x4ee4d4,_0x1e25b5){const _0x3224b8={_0x49cf38:0x407,_0x42a6b4:0x38c,_0x52d0ee:0x425},_0x42fd7a={_0x522329:0x12};function _0x1858db(_0x579482,_0x38a129,_0x455f65,_0x524b69){return _0x3921cc(_0x579482-0x6e,_0x455f65-_0x42fd7a._0x522329,_0x524b69,_0x524b69-0x1c1);}return this[_0x1858db(_0x3224b8._0x49cf38,0x440,_0x3224b8._0x42a6b4,_0x3224b8._0x52d0ee)](_0x4ee4d4,_0x1e25b5);}[_0x4abdca(0x452,0x454,0x488,0x44d)](_0x1145be,_0x23fbdf){const _0x45eed2={_0x494881:0xe2,_0x425934:0x8f},_0x183438={_0x3bdf39:0xef,_0x4a5cab:0x83};function _0x18cf70(_0x2cb95e,_0x1ea009,_0x4b8f6f,_0xbb741c){return _0x4abdca(_0x2cb95e-_0x183438._0x3bdf39,_0x1ea009- -0x62f,_0x4b8f6f-_0x183438._0x4a5cab,_0xbb741c);}return this[_0x18cf70(-0xa6,-_0x45eed2._0x494881,-0x20,-_0x45eed2._0x425934)](_0x1145be,_0x23fbdf);}[_0x4abdca(0x4f1,0x495,0x4c8,0x4ff)](_0x1eee80){const _0x19b5d6={_0x4f8abc:0x430,_0x164bda:0x48a,_0x5b4e8d:0x234,_0x4c002a:0x2e2,_0x92dfaa:0x284,_0x278d2b:0x431,_0x34d62d:0x42f,_0x260bc8:0x440,_0x3352e5:0x390,_0x223f3f:0x37c,_0x5e80ef:0x252,_0x31f55e:0x2b7,_0x3f9dea:0x268,_0x1e6677:0x1c7},_0x310d73={_0x131b63:0x123},_0x404cf7={_0x58f115:0x1f0},_0x2d42db=this[_0x49c1b0(_0x19b5d6._0x4f8abc,0x3df,_0x19b5d6._0x164bda,0x42d)](_0x1eee80);function _0x510826(_0x1a6d45,_0x1dcb97,_0x17bbad,_0x4ebed0){return _0x4abdca(_0x1a6d45-0xd0,_0x4ebed0- -0x20f,_0x17bbad-_0x404cf7._0x58f115,_0x1dcb97);}function _0x49c1b0(_0x3b8c33,_0x107932,_0xcb8c13,_0x9b566a){return _0x4abdca(_0x3b8c33-0x104,_0x9b566a- -0xd0,_0xcb8c13-_0x310d73._0x131b63,_0xcb8c13);}let _0x315952=_OpenAiModel[_0x510826(_0x19b5d6._0x5b4e8d,_0x19b5d6._0x4c002a,0x300,_0x19b5d6._0x92dfaa)][_0x49c1b0(_0x19b5d6._0x278d2b,_0x19b5d6._0x34d62d,_0x19b5d6._0x260bc8,_0x19b5d6._0x3352e5)](_0x2d42db);return!_0x315952&&(_0x315952={'pending':Promise[_0x510826(_0x19b5d6._0x223f3f,0x2bf,_0x19b5d6._0x5e80ef,_0x19b5d6._0x31f55e)]()},_OpenAiModel['sharedResponsesSocketSessions'][_0x510826(0x2db,_0x19b5d6._0x3f9dea,_0x19b5d6._0x1e6677,0x240)](_0x2d42db,_0x315952)),_0x315952;}[_0x4abdca(0x549,0x4fd,0x579,0x493)](_0x32fd83){const _0x274efa={_0x3d66b7:0x127,_0x1b7abf:0x4d4,_0x58c577:0x4b0},_0x57a611={_0x50bbe0:0x126};function _0x4ba528(_0x5381e8,_0x4cf3a4,_0x1829d7,_0x2d7234){return _0x3921cc(_0x5381e8-0x1a9,_0x1829d7-0x16d,_0x5381e8,_0x2d7234-0x6c);}function _0x15ff6b(_0x152cc4,_0x46c670,_0x56e443,_0xd32c33){return _0x3921cc(_0x152cc4-_0x57a611._0x50bbe0,_0x46c670- -0xdb,_0x152cc4,_0xd32c33-0x5b);}return''+trimTrailingSlashes(this[_0x15ff6b(0x204,0x1e0,0x2a0,_0x274efa._0x3d66b7)])+this[_0x4ba528(_0x274efa._0x1b7abf,0x575,_0x274efa._0x58c577,0x554)]+'::'+_0x32fd83;}async['acquireResponsesSocketLock'](_0x57cd50){const _0x157b7f={_0x5f0ca5:0x561,_0x5c0dbe:0x538,_0x3dbb93:0x564,_0x18dd1d:0x55a},_0x39d8df={_0xe58cbb:0x1b,_0x1a6a76:0xa8},_0xb621e3={_0x31b4a1:0x3c},_0x1bed54=_0x57cd50[_0x5c8278(_0x157b7f._0x5f0ca5,_0x157b7f._0x5c0dbe,0x507,0x4fd)][_0x343d61(0x59d,0x4ef,0x514,_0x157b7f._0x3dbb93)](()=>{});let _0x4fe798;const _0x331ee6=new Promise(_0x54d988=>{_0x4fe798=_0x54d988;});_0x57cd50[_0x5c8278(_0x157b7f._0x5f0ca5,0x5d3,0x575,0x5e9)]=_0x1bed54[_0x343d61(0x597,_0x157b7f._0x18dd1d,0x55c,0x629)](()=>_0x331ee6),await _0x1bed54;function _0x5c8278(_0xb06b6b,_0x230489,_0x57d536,_0x17a243){return _0x4abdca(_0xb06b6b-0x1bc,_0xb06b6b-_0xb621e3._0x31b4a1,_0x57d536-0x13c,_0x17a243);}function _0x343d61(_0x325efd,_0x4cd8e3,_0x38593c,_0x3bc2c2){return _0x4abdca(_0x325efd-_0x39d8df._0xe58cbb,_0x325efd-_0x39d8df._0x1a6a76,_0x38593c-0xad,_0x38593c);}return()=>{_0x4fe798?.();};}async[_0x3921cc(0x362,0x3ea,0x38a,0x3e1)](_0x46169c,_0x3f26be){const _0x3c9cea={_0x6bdf17:0x226,_0x3536b8:0x2a2,_0x14dceb:0x32d,_0x1f53da:0x2c5,_0x3eb0af:0xb1,_0x2fd71c:0x4,_0x388c18:0xeb,_0x3899ef:0x192,_0x15ed4a:0xbd,_0x4e3c12:0x20f,_0x1a9bf4:0x1be,_0x522264:0x278,_0x15acbb:0x2b,_0x19ef3f:0x9,_0x10e44b:0x195,_0x2097f9:0x211,_0x462985:0xa,_0x187458:0x20b,_0x17c48c:0xc},_0x238c00={_0x51700f:0x121},_0x58c902=this[_0x1caad4(0x267,_0x3c9cea._0x6bdf17,0x2dc,_0x3c9cea._0x3536b8)](_0x46169c);function _0x271515(_0x1d5e8a,_0x56b0fe,_0x4ee595,_0x4f5a10){return _0x3921cc(_0x1d5e8a-0x127,_0x1d5e8a- -0x210,_0x4f5a10,_0x4f5a10-0x1ca);}function _0x1caad4(_0x4c020e,_0x613377,_0x2d9b62,_0xd48fb7){return _0x4abdca(_0x4c020e-0x199,_0x4c020e- -0x21b,_0x2d9b62-_0x238c00._0x51700f,_0x613377);}const _0x4c7165=toModelRequest(_0x58c902),_0x22cddd=await prepareProviderRequest(_0x4c7165,{'sessionManager':this[_0x1caad4(_0x3c9cea._0x14dceb,0x34e,0x3b6,_0x3c9cea._0x1f53da)],'requestMutators':this['requestMutators'],'signal':_0x3f26be}),_0x4cb041=toChatRequest(_0x22cddd[_0x271515(0x7a,0x71,_0x3c9cea._0x3eb0af,_0x3c9cea._0x2fd71c)]),_0xc199f8=this[_0x271515(_0x3c9cea._0x388c18,_0x3c9cea._0x3899ef,_0x3c9cea._0x15ed4a,0x48)][_0x1caad4(0x27b,_0x3c9cea._0x4e3c12,_0x3c9cea._0x1a9bf4,_0x3c9cea._0x522264)](this['apiKey'],_0x22cddd['session']);if(!_0xc199f8)throw this[_0x271515(0x7e,-_0x3c9cea._0x15acbb,-_0x3c9cea._0x19ef3f,0xff)]();return{'baseUrl':this['providerAdapter'][_0x271515(0x1b8,_0x3c9cea._0x10e44b,_0x3c9cea._0x2097f9,0x1b3)](this[_0x271515(0xab,0xfd,0x12d,-_0x3c9cea._0x462985)],_0x22cddd[_0x1caad4(0x22e,_0x3c9cea._0x187458,0x206,0x25a)]),'credential':_0xc199f8,'request':_0x4cb041,'session':_0x22cddd[_0x271515(0x99,0x96,0x8,_0x3c9cea._0x17c48c)]};}['buildResponsesSocketEvent'](_0x56c782,_0x3f64c0,_0x49ca5e={}){const _0x331f1a={_0x42e111:0x50c,_0x2acbfb:0x4da,_0x588d6d:0x22,_0x559ea9:0x21,_0x23fd18:0x5de,_0x4f82de:0x4fc,_0x3e4dc6:0xd9,_0x1f71fa:0x76,_0x2d1d3e:0x15b,_0x395c8b:0x123,_0x55af15:0x10d,_0x2948af:0x526},_0x119263={_0x19986f:0x199},_0xae699a={_0x2f7ffe:0x1ef,_0x34436e:0xcb};function _0x1e6d32(_0x5d6bfc,_0x2c5634,_0x180a07,_0x70eb5b){return _0x3921cc(_0x5d6bfc-0x191,_0x180a07-_0xae699a._0x2f7ffe,_0x2c5634,_0x70eb5b-_0xae699a._0x34436e);}function _0x3a9391(_0x5324db,_0x43d29e,_0x5e7101,_0x14ff1e){return _0x4abdca(_0x5324db-0x1,_0x14ff1e- -0x57f,_0x5e7101-_0x119263._0x19986f,_0x43d29e);}if(!_0x49ca5e[_0x1e6d32(_0x331f1a._0x42e111,_0x331f1a._0x2acbfb,0x595,0x645)]){const _0x111cff=this[_0x3a9391(_0x331f1a._0x588d6d,-0x23,_0x331f1a._0x559ea9,-0x23)](_0x56c782);if(_0x111cff&&_0x3f64c0[_0x1e6d32(0x59e,_0x331f1a._0x23fd18,0x55b,_0x331f1a._0x4f82de)]&&_0x111cff['responseId']===_0x3f64c0[_0x3a9391(-0x6a,-_0x331f1a._0x3e4dc6,-_0x331f1a._0x1f71fa,-0x73)]){const _0x29422c=toOpenAiResponsesRequest({..._0x56c782,'messages':_0x56c782[_0x3a9391(-_0x331f1a._0x2d1d3e,-0xa9,-_0x331f1a._0x395c8b,-0xf8)]['slice'](_0x111cff['messageIndex']+0x1)})[_0x3a9391(-0xd2,-0x1c2,-0x189,-_0x331f1a._0x55af15)];return{'event':createOpenAiResponsesWebSocketEvent(_0x56c782,{'input':_0x29422c,'previousResponseId':_0x111cff[_0x1e6d32(0x4ad,0x53d,_0x331f1a._0x2948af,0x5ab)]}),'previousResponseId':_0x111cff['responseId']};}}return{'event':createOpenAiResponsesWebSocketEvent(_0x56c782)};}[_0x4abdca(0x4a5,0x55c,0x5ef,0x561)](_0x2a880e){const _0x1c7818={_0x13ed94:0x437,_0x3e4a3b:0x38d,_0x4ab1bc:0x68,_0x40f43f:0x5d,_0x54f311:0x1b,_0x5096bd:0x4c,_0x37fbdc:0x7f,_0x41fbe0:0x4b,_0x44b7ba:0x29,_0x26bc0c:0xfb,_0x3d1c8a:0x86,_0xe1043e:0x78},_0x2fea37={_0x4ba602:0x53};function _0x493996(_0x30b5e3,_0x66b858,_0x2244b5,_0x456e8b){return _0x4abdca(_0x30b5e3-0x140,_0x456e8b- -0x46c,_0x2244b5-0x10,_0x2244b5);}for(let _0x3f6884=_0x2a880e[_0x5981b3(_0x1c7818._0x13ed94,0x41f,_0x1c7818._0x3e4a3b,0x450)]['length']-0x1;_0x3f6884>=0x0;_0x3f6884-=0x1){const _0x3e91d5=_0x2a880e[_0x493996(-0x43,-_0x1c7818._0x4ab1bc,-_0x1c7818._0x40f43f,_0x1c7818._0x54f311)][_0x3f6884],_0xce27f1=_0x3e91d5[_0x493996(0xa7,_0x1c7818._0x5096bd,0xcc,0x106)]===_0x493996(-_0x1c7818._0x37fbdc,-_0x1c7818._0x41fbe0,_0x1c7818._0x44b7ba,-0x1f)?_0x3e91d5['providerState']?.[_0x493996(_0x1c7818._0x44b7ba,_0x1c7818._0x26bc0c,_0x1c7818._0x3d1c8a,_0x1c7818._0xe1043e)]:void 0x0;if(_0xce27f1)return{'messageIndex':_0x3f6884,'responseId':_0xce27f1};}function _0x5981b3(_0x535940,_0x2f62f2,_0x4db6b7,_0x234e4e){return _0x3921cc(_0x535940-0x1eb,_0x234e4e-0x169,_0x535940,_0x234e4e-_0x2fea37._0x4ba602);}return void 0x0;}['shouldRetryResponsesSocketRequest'](_0x5ce094){const _0x5d4705={_0x30f362:0x4d6,_0x29478f:0x561,_0x91631b:0x582},_0x1cdd6d={_0x527c42:0x96,_0x57114e:0xa9,_0x441dbf:0x1e5};function _0x46bd2f(_0x37dc8b,_0x1a4729,_0x26f4e2,_0x390e07){return _0x4abdca(_0x37dc8b-_0x1cdd6d._0x527c42,_0x37dc8b- -_0x1cdd6d._0x57114e,_0x26f4e2-_0x1cdd6d._0x441dbf,_0x26f4e2);}function _0x1fbf44(_0xe7b17b,_0x485a0c,_0x51787a,_0x1245b8){return _0x4abdca(_0xe7b17b-0xb3,_0x51787a- -0x365,_0x51787a-0x80,_0xe7b17b);}return _0x5ce094 instanceof OpenAiResponsesStreamError&&(_0x5ce094[_0x46bd2f(_0x5d4705._0x30f362,_0x5d4705._0x29478f,0x413,_0x5d4705._0x91631b)]==='previous_response_not_found'||_0x5ce094['code']===_0x1fbf44(0x8a,0x1b9,0x129,0x104));}[_0x4abdca(0x486,0x4b7,0x56f,0x4c2)](_0x490bbc){const _0x36e397={_0x8c325:0x561,_0x4a9832:0x536,_0x883a67:0x4fc,_0x563bde:0x4fe,_0x4b2365:0x476,_0x22d299:0x456,_0x25e627:0x592},_0x947cbc={_0x1a59eb:0x1aa,_0x562a09:0x1cb},_0x487370={_0x29d885:0x20f,_0x387b18:0x1d1},_0x353e95=_0x490bbc[_0x5a835e(_0x36e397._0x8c325,_0x36e397._0x4a9832,_0x36e397._0x883a67,0x5a7)];_0x490bbc['socket']=void 0x0;function _0x5a835e(_0x48415b,_0x8265de,_0x1e46c4,_0x3c0721){return _0x3921cc(_0x48415b-0x1c7,_0x48415b-_0x487370._0x29d885,_0x8265de,_0x3c0721-_0x487370._0x387b18);}function _0x33ef62(_0x894fa4,_0x35d396,_0x398fdd,_0x4c2218){return _0x3921cc(_0x894fa4-0xa2,_0x398fdd-_0x947cbc._0x1a59eb,_0x35d396,_0x4c2218-_0x947cbc._0x562a09);}_0x490bbc['connecting']=void 0x0,_0x490bbc['lastResponseId']=void 0x0,_0x353e95?.[_0x33ef62(_0x36e397._0x563bde,0x4df,_0x36e397._0x4b2365,0x4e0)]===WebSocket[_0x5a835e(0x57c,0x58e,0x5a6,0x4f4)]&&_0x353e95[_0x5a835e(0x4e4,0x435,_0x36e397._0x22d299,_0x36e397._0x25e627)](0x3e8,'reset');}async[_0x4abdca(0x4ce,0x4ca,0x535,0x4c2)](_0x6a03da,_0x5c3e6a,_0x4c3e4e,_0x298a06,_0x5df95a){const _0xeb1f80={_0x1d00f1:0x10b,_0x1e29af:0xba,_0x2e2c5c:0x73,_0x13df1c:0xba,_0x228e7e:0x97,_0x3fbbd0:0xba,_0x164277:0x80,_0x6bb6e9:0x6c,_0x355910:0x150,_0x58ba84:0x131,_0x1b3fb6:0x121,_0x1ddda8:0x1cf},_0x34a2e0={_0xe49181:0x3b2},_0x44d0ee={_0x208752:0x239,_0x1b3e09:0x18c,_0x17b6c8:0xb2,_0xba203c:0x114,_0x5aca4e:0x67,_0x2c6423:0xc7,_0x1aa517:0xdd,_0x393db0:0x434,_0x56cb16:0x28d,_0x25715c:0x1f8,_0x3c1919:0xf9,_0x17a21b:0x22f,_0x4ee222:0x23d,_0x4e9266:0x55a,_0x2bb327:0x4ff,_0x197610:0x147,_0x287cb0:0x201,_0x1672eb:0x1cd,_0x3c80e1:0x1e5,_0xd6be88:0x1d4,_0x2bab53:0x650,_0x109629:0x60d,_0x12eb5d:0x129,_0x14c2d2:0x20d,_0x339679:0x156,_0x571224:0x135,_0x189c98:0x187,_0x4d0243:0x1dc,_0x356bff:0x1dc,_0x3e317c:0x481,_0x16a16f:0x280,_0x42b58a:0x62c,_0x4e7e51:0x580,_0x47e38c:0x59c,_0x18370e:0x591},_0x21843a={_0x58b849:0x138,_0x4025e2:0x149,_0x2126cf:0x173,_0x2d0e68:0x163,_0x5e7650:0xe2},_0x515b1d={_0x3110f5:0x68d},_0x4229a5={_0x3e8660:0x9c,_0x15d9fd:0x180,_0x5e589e:0x198},_0x380e90={_0x2ddf93:0x74};function _0xf55e96(_0x343c1f,_0x5a4e99,_0x3fa3a3,_0x4dd7c1){return _0x3921cc(_0x343c1f-_0x380e90._0x2ddf93,_0x343c1f- -0x4b3,_0x4dd7c1,_0x4dd7c1-0x199);}if(_0x5c3e6a[_0x11931b(0x140,0x147,_0xeb1f80._0x1d00f1,0xa4)]?.[_0x11931b(_0xeb1f80._0x1e29af,0x3e,0x6b,_0xeb1f80._0x2e2c5c)]===WebSocket['OPEN'])return _0x5c3e6a['socket'];if(_0x5c3e6a[_0xf55e96(-0xba,-0x14d,-0xfd,-0x69)])return await _0x5c3e6a[_0xf55e96(-_0xeb1f80._0x13df1c,-0x3f,-_0xeb1f80._0x228e7e,-0x12f)];_0x5c3e6a[_0xf55e96(-_0xeb1f80._0x3fbbd0,-_0xeb1f80._0x164277,-0x13d,-_0xeb1f80._0x6bb6e9)]=((async()=>{const _0x5a15a4={_0x4263a0:0x345},_0x4ac32d=await this[_0xa07a21(0x1ba,_0x44d0ee._0x208752,0x207,0x14a)]({'request':_0x4c3e4e[_0xa07a21(_0x44d0ee._0x1b3e09,_0x44d0ee._0x17b6c8,_0x44d0ee._0xba203c,_0x44d0ee._0x5aca4e)],'body':_0x298a06,'credential':_0x4c3e4e[_0xa07a21(_0x44d0ee._0x2c6423,0x23d,0x187,_0x44d0ee._0x1aa517)],'session':_0x4c3e4e[_0x25f995(0x4ee,0x45c,_0x44d0ee._0x393db0,0x483)],'stream':!![]},{'accept':_0xa07a21(0x205,_0x44d0ee._0x56cb16,_0x44d0ee._0x25715c,0x261),'includeContentType':![]});function _0xa07a21(_0x4e381d,_0x672b0f,_0x3d68c5,_0x3ab326){return _0x11931b(_0x3d68c5-_0x4229a5._0x3e8660,_0x672b0f-_0x4229a5._0x15d9fd,_0x3d68c5-_0x4229a5._0x5e589e,_0x672b0f);}_0x4ac32d['delete'](_0xa07a21(_0x44d0ee._0x3c1919,_0x44d0ee._0x17a21b,0x18f,_0x44d0ee._0x4ee222));function _0x25f995(_0xa1ae34,_0x54c8b8,_0x339066,_0x4a2681){return _0xf55e96(_0x4a2681-_0x515b1d._0x3110f5,_0x54c8b8-0x106,_0x339066-0x1de,_0x54c8b8);}const _0x33642f=this[_0x25f995(_0x44d0ee._0x4e9266,0x529,0x525,0x50d)]({'headers':Object['fromEntries'](_0x4ac32d[_0x25f995(0x497,0x526,0x598,_0x44d0ee._0x2bb327)]()),'url':(''+_0x4c3e4e[_0xa07a21(0x134,0x12e,0x145,_0x44d0ee._0x197610)]+this[_0xa07a21(_0x44d0ee._0x287cb0,0x16c,_0x44d0ee._0x1672eb,0x14b)])['replace'](/^http:/,'ws:')[_0xa07a21(_0x44d0ee._0x3c80e1,0x1a2,0x20e,_0x44d0ee._0xd6be88)](/^https:/,_0x25f995(_0x44d0ee._0x2bab53,_0x44d0ee._0x109629,0x5d4,0x5d6))}),_0x543d22=()=>{const _0x3527da={_0x189210:0x4c};function _0x6a108c(_0x5b9e34,_0x38c5c0,_0x2942fd,_0x5e056a){return _0x25f995(_0x5b9e34-_0x3527da._0x189210,_0x5b9e34,_0x2942fd-0x189,_0x38c5c0- -0x3e3);}function _0x5ce7fd(_0x2dd6b0,_0x538b43,_0x34f0fc,_0x30d92b){return _0x25f995(_0x2dd6b0-0x1e1,_0x538b43,_0x34f0fc-0x22,_0x2dd6b0- -_0x5a15a4._0x4263a0);}_0x5c3e6a[_0x6a108c(_0x21843a._0x58b849,_0x21843a._0x4025e2,0x138,0x1dc)]===_0x33642f&&(_0x5c3e6a[_0x5ce7fd(0x1e7,0x126,_0x21843a._0x2126cf,0x25c)]=void 0x0,_0x5c3e6a[_0x6a108c(0x16c,_0x21843a._0x2d0e68,0xe8,_0x21843a._0x5e7650)]=void 0x0);};_0x33642f[_0xa07a21(0x1bb,0x13f,_0x44d0ee._0x12eb5d,0x15e)]('close',_0x543d22);try{return throwIfAborted(_0x5df95a),_0x33642f[_0xa07a21(0x210,_0x44d0ee._0x14c2d2,_0x44d0ee._0x339679,_0x44d0ee._0x571224)]!==WebSocket['OPEN']&&await waitForWebSocketOpen(_0x33642f,_0x5df95a),throwIfAborted(_0x5df95a),_0x5c3e6a[_0xa07a21(0x165,_0x44d0ee._0x189c98,_0x44d0ee._0x4d0243,_0x44d0ee._0x356bff)]=_0x33642f,_0x33642f;}catch(_0x1de063){_0x543d22();_0x33642f[_0x25f995(0x472,0x4ae,_0x44d0ee._0x3e317c,0x4a6)]===WebSocket[_0xa07a21(_0x44d0ee._0x16a16f,0x1bd,0x1f7,0x1ac)]&&_0x33642f['close'](0x3e8,_0x25f995(_0x44d0ee._0x42b58a,_0x44d0ee._0x4e7e51,_0x44d0ee._0x47e38c,_0x44d0ee._0x18370e));throw _0x1de063;}})());function _0x11931b(_0x1cc609,_0x54fd7a,_0x29029b,_0x3c9e63){return _0x4abdca(_0x1cc609-0x14b,_0x1cc609- -_0x34a2e0._0xe49181,_0x29029b-0x6c,_0x3c9e63);}try{return await _0x5c3e6a[_0xf55e96(-0xba,-_0xeb1f80._0x355910,-0x4c,-_0xeb1f80._0x58ba84)];}finally{_0x5c3e6a[_0x11931b(0x1e7,0x189,_0xeb1f80._0x1b3fb6,_0xeb1f80._0x1ddda8)]=void 0x0;}}async*['streamViaPersistentResponsesSocket'](_0x13fbbe,_0x47192b){const _0x1bb862={_0x4d3ac5:0x100,_0x2d91e3:0x140,_0x5c108a:0x20f,_0x59d8e2:0x2a8,_0x48c262:0x33f,_0xd59ca9:0x25a,_0x523b2c:0x35f,_0x4d898d:0x447,_0x18b2a9:0x397,_0x2afef4:0x3b5,_0x171daa:0x1e0,_0x3dbde5:0x1b8,_0x506043:0x131,_0x1b7de2:0x21b,_0x49c281:0x1d1,_0xd2dbe4:0x24f,_0x2ebdcd:0x1e2,_0x2b1f99:0x21d,_0x2d6b73:0x2d0,_0x31ab49:0x303,_0x5ef975:0x307,_0x3a6589:0x325,_0x43d41f:0x3a0,_0x5a821c:0x324,_0x2f1ab5:0x254,_0xd793ff:0x185,_0x22e386:0x218,_0xada7d5:0x15d,_0x19260a:0x1b8,_0x206cb4:0x14c,_0x35769f:0x1d3,_0x4d7086:0x15f,_0xdf30be:0x1c2,_0x123c55:0x1d1,_0x23a659:0x342,_0x540b0d:0x41a,_0x42edef:0x3c0},_0x2217e8={_0x3a1d50:0x130},_0x4d201f={_0xa565ed:0x2eb,_0x3f5d0f:0xcc};function _0x39a95c(_0x23b81b,_0x51dfe1,_0x51d89f,_0x5aae01){return _0x4abdca(_0x23b81b-0xd6,_0x51d89f- -_0x4d201f._0xa565ed,_0x51d89f-_0x4d201f._0x3f5d0f,_0x51dfe1);}function _0x8098c5(_0x2302e8,_0xcde74d,_0x263d4e,_0x183a17){return _0x4abdca(_0x2302e8-0x140,_0xcde74d- -0x1ed,_0x263d4e-_0x2217e8._0x3a1d50,_0x183a17);}const _0x1ed882=this[_0x39a95c(_0x1bb862._0x4d3ac5,_0x1bb862._0x2d91e3,0x197,_0x1bb862._0x5c108a)](_0x13fbbe),_0x259131=this[_0x8098c5(0x2f2,_0x1bb862._0x59d8e2,_0x1bb862._0x48c262,_0x1bb862._0xd59ca9)](_0x1ed882['metadata'][_0x8098c5(0x27a,0x33e,0x2f9,_0x1bb862._0x523b2c)]),_0x4d142e=await this[_0x8098c5(_0x1bb862._0x4d898d,_0x1bb862._0x18b2a9,_0x1bb862._0x2afef4,0x309)](_0x259131);try{const _0x3ef1e0=this[_0x39a95c(0x248,_0x1bb862._0x171daa,_0x1bb862._0x3dbde5,_0x1bb862._0x506043)](_0x1ed882,_0x259131);try{yield*this['streamViaResponsesSocketAttempt'](_0x1ed882[_0x39a95c(_0x1bb862._0x1b7de2,0x163,_0x1bb862._0x49c281,_0x1bb862._0xd2dbe4)][_0x39a95c(_0x1bb862._0x2ebdcd,_0x1bb862._0x2b1f99,0x240,0x2e6)],_0x259131,_0x1ed882,_0x3ef1e0[_0x8098c5(0x32f,0x31d,_0x1bb862._0x2d6b73,_0x1bb862._0x31ab49)],_0x47192b?.['signal']);return;}catch(_0x285e8e){if(!_0x3ef1e0[_0x8098c5(_0x1bb862._0x5ef975,_0x1bb862._0x3a6589,0x26c,_0x1bb862._0x43d41f)]||!this[_0x8098c5(0x2e2,0x393,0x37c,_0x1bb862._0x5a821c)](_0x285e8e)){this['invalidateResponsesSocketSession'](_0x259131);throw _0x285e8e;}}this[_0x39a95c(_0x1bb862._0x2f1ab5,_0x1bb862._0xd793ff,0x1cc,0x1db)](_0x259131);const _0x6deb0a=this[_0x39a95c(_0x1bb862._0x22e386,_0x1bb862._0xada7d5,_0x1bb862._0x19260a,0x1ea)](_0x1ed882,_0x259131,{'forceFullReplay':!![]});yield*this[_0x39a95c(_0x1bb862._0x206cb4,_0x1bb862._0x35769f,_0x1bb862._0x4d7086,_0x1bb862._0xdf30be)](_0x1ed882[_0x39a95c(0x1ab,0x1dc,_0x1bb862._0x123c55,0x196)][_0x39a95c(0x26c,0x2a4,0x240,0x240)],_0x259131,_0x1ed882,_0x6deb0a[_0x8098c5(_0x1bb862._0x23a659,0x31d,0x2b5,0x294)],_0x47192b?.[_0x8098c5(0x3e7,0x373,_0x1bb862._0x540b0d,_0x1bb862._0x42edef)]);}finally{_0x4d142e();}}async*[_0x4abdca(0x45f,0x44a,0x3ba,0x46f)](_0x4238f8,_0x4145c6,_0x32d6af,_0x11cab1,_0x2d778){const _0x56723c={_0x282521:0x14f,_0x2e7aa4:0x14a,_0x2c06f1:0x186,_0x318586:0x46a,_0x5d79ce:0x41f,_0x12942b:0x597,_0x312767:0x546,_0x1a590b:0x4c4,_0x230d0f:0x4e0,_0x12cc63:0x58b,_0x19f7b7:0x4ca,_0x5255f4:0x587,_0x1b527a:0x55f,_0x4000d0:0x557,_0xfb4c53:0x4a5,_0x54f5d9:0xd2,_0x23613d:0x28},_0x53aea0={_0x144e6e:0x12d,_0x355811:0x440,_0x5236dc:0x1d5},_0x164aac=await this[_0xfe2ef5(_0x56723c._0x282521,0x1b6,_0x56723c._0x2e7aa4,_0x56723c._0x2c06f1)](_0x32d6af,_0x2d778),_0x41df8b=await this[_0xe3356f(_0x56723c._0x318586,0x475,0x50b,_0x56723c._0x5d79ce)](_0x4238f8,_0x4145c6,_0x164aac,_0x11cab1,_0x2d778),_0x57ae1a=createOpenAiResponsesStreamParser(_0x32d6af);throwIfAborted(_0x2d778);function _0xe3356f(_0x567d30,_0x2005f3,_0x59217b,_0x165608){return _0x3921cc(_0x567d30-0x1df,_0x2005f3-0x14b,_0x59217b,_0x165608-0x11c);}_0x41df8b[_0xe3356f(_0x56723c._0x12942b,_0x56723c._0x312767,0x52d,0x5c5)](JSON['stringify'](_0x11cab1));function _0xfe2ef5(_0x19f4f0,_0x103836,_0x24f14d,_0x268011){return _0x4abdca(_0x19f4f0-_0x53aea0._0x144e6e,_0x24f14d- -_0x53aea0._0x355811,_0x24f14d-_0x53aea0._0x5236dc,_0x19f4f0);}for await(const _0x27fe02 of iterateWebSocketMessages(_0x41df8b,_0x2d778)){const _0x3dfb80=_0x57ae1a['consumeWebSocketEvent']?.(_0x27fe02)??[];yield*_0x3dfb80;if(_0x57ae1a[_0xe3356f(_0x56723c._0x1a590b,0x4ca,_0x56723c._0x230d0f,_0x56723c._0x12cc63)]?.())break;}if(!_0x57ae1a[_0xe3356f(0x501,_0x56723c._0x19f7b7,0x471,_0x56723c._0x5255f4)]?.())throw new Error('Responses\x20WebSocket\x20closed\x20before\x20response.completed');const _0x4fed8f=_0x57ae1a['finish'](),_0x1c171c=_0x4fed8f[_0xe3356f(_0x56723c._0x1b527a,_0x56723c._0x4000d0,0x5a6,_0x56723c._0xfb4c53)]?.[_0xfe2ef5(-0x12,_0x56723c._0x54f5d9,0xa4,_0x56723c._0x23613d)]??_0x4fed8f['id'];_0x1c171c&&(_0x4145c6['lastResponseId']=_0x1c171c),yield{'type':'done','response':_0x4fed8f};}};function _0x4abdca(_0x4c4129,_0x4e9564,_0x5e99ab,_0x77a6a){const _0x15c0a8={_0x1eac61:0x2b1};return _0x6b39(_0x4e9564-_0x15c0a8._0x1eac61,_0x77a6a);}var AVAILABLE_CHAT_MODEL_SURFACES=[_0x3921cc(0x30e,0x29b,0x262,0x2b3),'openai-chat-completions',_0x3921cc(0x290,0x345,0x3af,0x348),_0x3921cc(0x47d,0x3ce,0x35e,0x40e)];function isAnthropicSurface(_0x259e2e){const _0x470f2d={_0xf3e295:0x3d3},_0x2dcb31={_0x551d4e:0x1a8,_0x2b7cb5:0x138,_0xfe8084:0xb5};function _0x5e2aca(_0x3e347f,_0x4f8888,_0x394b40,_0x575277){return _0x3921cc(_0x3e347f-_0x2dcb31._0x551d4e,_0x394b40-_0x2dcb31._0x2b7cb5,_0x4f8888,_0x575277-_0x2dcb31._0xfe8084);}return _0x259e2e===_0x5e2aca(0x47e,0x313,_0x470f2d._0xf3e295,0x3de);}function resolveDefaultBaseUrl(_0x4ca6e2){const _0x2cbd73={_0x3ada5a:0x4f6,_0x2452d2:0x1f},_0x8299ce={_0x4a5533:0x4a6,_0x2df48b:0x2d},_0x17909e={_0x5dc41c:0x4a,_0x121c8e:0x13e};function _0x3f5049(_0x33357a,_0x4364d6,_0x523d95,_0xd0ca3a){return _0x4abdca(_0x33357a-_0x17909e._0x5dc41c,_0x523d95- -0x51,_0x523d95-_0x17909e._0x121c8e,_0x4364d6);}function _0x485ef1(_0x313420,_0x2d7394,_0x431a63,_0x3e46c1){return _0x4abdca(_0x313420-0xd2,_0x313420- -_0x8299ce._0x4a5533,_0x431a63-_0x8299ce._0x2df48b,_0x3e46c1);}return isAnthropicSurface(_0x4ca6e2)?_0x3f5049(0x4e1,_0x2cbd73._0x3ada5a,0x531,0x4c6):_0x485ef1(-0x7b,-0x40,-0x13f,-_0x2cbd73._0x2452d2);}var ChatModel=class{[_0x4abdca(0x46d,0x52e,0x574,0x4a9)];['maxTokens'];[_0x3921cc(0x2aa,0x354,0x2da,0x295)];[_0x3921cc(0x3b7,0x33f,0x2b4,0x3b0)];[_0x4abdca(0x497,0x4d0,0x458,0x42c)];constructor(_0x53d9ea={}){const _0x3676f9={_0x2ea5fc:0x37,_0x539e6d:0x3b,_0x2f6fa2:0xcf,_0x4e4a7f:0x27d,_0x2c9719:0x2e8,_0x457221:0x218,_0x1e933e:0x39,_0x1ea481:0x15b,_0x40d45c:0x162,_0x44916f:0xd5,_0x433927:0x275,_0x2856fb:0x30b,_0x38bd00:0x24c,_0x15a7b1:0x2f2,_0x15534c:0x222,_0x469097:0x282,_0x34b6b3:0x1e4,_0x4e2151:0x310,_0xa5210c:0x300,_0x2882ac:0x33d,_0x2ea9a9:0x3c6,_0x2b64b4:0x282,_0x3bc99c:0x154,_0x5b6753:0x19d,_0x1e2514:0xeb,_0x16e0a3:0x1c9,_0x2942cd:0x252,_0xc63cc8:0x2df,_0x7788e8:0x266,_0x209b82:0x19e,_0x385696:0x181,_0xa16316:0x1a9,_0x42f0b2:0x1aa,_0x2a8f89:0x33e,_0x41c994:0x37a,_0x3c07b0:0x37e,_0x11c43b:0x333,_0x84241b:0x4a,_0x17a86b:0xcf,_0x365d31:0x266,_0x3bbc42:0x278,_0x15f459:0x233,_0x4277ec:0x22a,_0x435a7f:0x261},_0x319e5b={_0x281351:0xd2,_0x4429c8:0xbb},_0x8927a7={_0x449cfe:0x15f,_0x2228dd:0x5fd,_0x305a40:0x1a};function _0x586062(_0x1b64f3,_0x3b624c,_0x1e6bba,_0x582161){return _0x4abdca(_0x1b64f3-_0x8927a7._0x449cfe,_0x582161- -_0x8927a7._0x2228dd,_0x1e6bba-_0x8927a7._0x305a40,_0x3b624c);}function _0x5ac8a0(_0x6ee9bd,_0x196348,_0x3c2456,_0x3d8d49){return _0x3921cc(_0x6ee9bd-0x17a,_0x6ee9bd- -_0x319e5b._0x281351,_0x196348,_0x3d8d49-_0x319e5b._0x4429c8);}this[_0x586062(-0x105,-_0x3676f9._0x2ea5fc,-_0x3676f9._0x539e6d,-_0x3676f9._0x2f6fa2)]=_0x53d9ea[_0x5ac8a0(0x2bc,_0x3676f9._0x4e4a7f,_0x3676f9._0x2c9719,_0x3676f9._0x457221)]??_0x586062(-_0x3676f9._0x1e933e,-_0x3676f9._0x1ea481,-_0x3676f9._0x40d45c,-_0x3676f9._0x44916f),this[_0x5ac8a0(0x24c,_0x3676f9._0x433927,0x27d,_0x3676f9._0x2856fb)]=_0x53d9ea[_0x5ac8a0(_0x3676f9._0x38bd00,0x186,_0x3676f9._0x15a7b1,_0x3676f9._0x15534c)]??0x4000,this[_0x5ac8a0(_0x3676f9._0x469097,_0x3676f9._0x34b6b3,0x32c,_0x3676f9._0x4e2151)]=_0x53d9ea[_0x5ac8a0(0x282,0x234,0x281,_0x3676f9._0xa5210c)]??_0x5ac8a0(_0x3676f9._0x2882ac,0x3b2,0x289,_0x3676f9._0x2ea9a9);const _0x3df855=trimTrailingSlashes(_0x53d9ea['baseUrl']??resolveDefaultBaseUrl(this[_0x5ac8a0(_0x3676f9._0x2b64b4,0x304,0x33d,0x1d2)]));if(isAnthropicSurface(this['surface'])){this['anthropicDelegate']=new AnthropicModel({'apiKey':_0x53d9ea['apiKey'],'authScheme':_0x53d9ea[_0x5ac8a0(0x217,0x1fd,_0x3676f9._0x3bc99c,_0x3676f9._0x5b6753)],'baseUrl':_0x3df855,'fetch':_0x53d9ea[_0x586062(-0xd9,-_0x3676f9._0x1e2514,-0xca,-0xe9)],'maxTokens':this[_0x586062(-0xa1,-_0x3676f9._0x16e0a3,-0x93,-0x13f)],'model':this[_0x5ac8a0(0x2bc,_0x3676f9._0x2942cd,_0x3676f9._0xc63cc8,0x218)],'reasoning':_0x53d9ea[_0x5ac8a0(_0x3676f9._0x7788e8,0x2fc,0x1e7,0x213)],'providerSessionResolver':_0x53d9ea[_0x586062(-0xa6,-_0x3676f9._0x209b82,-_0x3676f9._0x385696,-0x106)],'requestMutators':_0x53d9ea[_0x586062(-_0x3676f9._0xa16316,-_0x3676f9._0x42f0b2,-0x86,-0x14c)]});return;}this[_0x5ac8a0(0x25e,0x235,0x1bb,0x24f)]=new OpenAiModel({'apiKey':_0x53d9ea[_0x5ac8a0(_0x3676f9._0x2a8f89,_0x3676f9._0x41c994,0x337,_0x3676f9._0x3c07b0)],'baseUrl':_0x3df855,'fetch':_0x53d9ea[_0x5ac8a0(0x2a2,0x368,0x35a,0x268)],'headerResolver':_0x53d9ea[_0x5ac8a0(0x307,0x2ee,0x2fd,_0x3676f9._0x11c43b)],'maxTokens':this['maxTokens'],'model':this[_0x586062(-_0x3676f9._0x84241b,-0x14b,-0x70,-_0x3676f9._0x17a86b)],'reasoning':_0x53d9ea[_0x5ac8a0(_0x3676f9._0x365d31,_0x3676f9._0x3bbc42,0x260,0x2a3)],'providerSessionResolver':_0x53d9ea[_0x5ac8a0(0x285,0x271,_0x3676f9._0x15f459,_0x3676f9._0x4277ec)],'requestMutators':_0x53d9ea['requestMutators'],'webSocketFactory':_0x53d9ea[_0x5ac8a0(_0x3676f9._0x435a7f,0x2f4,0x2e4,0x2a8)]});}[_0x4abdca(0x54e,0x55b,0x56c,0x58a)](){const _0x50d5f4={_0x33e209:0x4be,_0x5aebd7:0x45a,_0xd235ac:0x4b3,_0x2be70e:0x3fa},_0x3a7725={_0x194f3c:0x99},_0x17574f={_0x1b20b9:0x18,_0xb64006:0x113};function _0x53f608(_0x29c076,_0x26f92d,_0x1c4894,_0x3138eb){return _0x3921cc(_0x29c076-_0x17574f._0x1b20b9,_0x29c076-0x48,_0x26f92d,_0x3138eb-_0x17574f._0xb64006);}if(!this['anthropicDelegate'])throw new Error('Anthropic\x20delegate\x20is\x20not\x20initialized\x20for\x20surface:\x20'+this[_0x37a997(_0x50d5f4._0x33e209,_0x50d5f4._0x5aebd7,0x494,_0x50d5f4._0xd235ac)]);function _0x37a997(_0x576e75,_0x1ebc67,_0x4df23a,_0x25bac9){return _0x3921cc(_0x576e75-_0x3a7725._0x194f3c,_0x1ebc67-0x106,_0x576e75,_0x25bac9-0x6d);}return this[_0x53f608(0x387,_0x50d5f4._0x2be70e,0x2f5,0x31a)];}[_0x4abdca(0x4a9,0x491,0x43d,0x504)](){const _0x3c9bbd={_0x3ef497:0x1fd,_0x5bd1bc:0x1ad,_0x4cb273:0x192,_0x1bbf68:0x228,_0x579c75:0xb8,_0x52f905:0x14c,_0x2a7d8c:0x11c,_0x24fdee:0x10e,_0x2121a7:0x128},_0x11128a={_0x18336f:0x43e},_0x2fe4ab={_0x197ee2:0xe};function _0x4690a6(_0x389dd,_0x26ce2d,_0x245f95,_0x48196f){return _0x4abdca(_0x389dd-0x1dd,_0x389dd- -0x383,_0x245f95-_0x2fe4ab._0x197ee2,_0x245f95);}if(!this[_0x4690a6(0x14d,0xd7,0x9c,_0x3c9bbd._0x3ef497)])throw new Error(_0x5c2c94(-_0x3c9bbd._0x5bd1bc,-0x19a,-_0x3c9bbd._0x4cb273,-_0x3c9bbd._0x1bbf68)+this[_0x4690a6(0x171,0x1b1,_0x3c9bbd._0x579c75,_0x3c9bbd._0x52f905)]);function _0x5c2c94(_0x4cdb0d,_0x428506,_0xe3985f,_0x28ede5){return _0x3921cc(_0x4cdb0d-0x1b8,_0xe3985f- -_0x11128a._0x18336f,_0x28ede5,_0x28ede5-0x2c);}return this[_0x5c2c94(-0x58,-_0x3c9bbd._0x2a7d8c,-_0x3c9bbd._0x24fdee,-_0x3c9bbd._0x2121a7)];}[_0x4abdca(0x46a,0x4af,0x449,0x516)](_0x403b80,_0x511bb8){const _0x30cbc3={_0x27d500:0x2cf,_0x2b2d6f:0x284,_0x2a8996:0x31f,_0x2be2c3:0x31e,_0x39918a:0x2ff,_0x2992c7:0x342,_0x4ae19d:0x394,_0x4299f9:0x3a7,_0x112832:0x467,_0x5ca12f:0x401,_0xddcd1:0x400,_0x27428d:0x354,_0x52bd5c:0x415,_0x587f22:0x4ae,_0xeef5cb:0x1cf,_0x174b92:0xe6,_0x256bbf:0x32c,_0x4a4ee8:0x34e,_0x543666:0x353,_0xa356fa:0x414,_0x4acc6c:0x3e2},_0x4daf1c={_0x4f10f0:0x130},_0x3a886c={_0x30ded:0x188};function _0x4ebb9c(_0x31ba43,_0x50ee2e,_0x248722,_0x42d773){return _0x4abdca(_0x31ba43-0x119,_0x50ee2e- -0x13e,_0x248722-_0x3a886c._0x30ded,_0x42d773);}function _0x1f6ea3(_0x2bb3fd,_0x593487,_0x1ba94d,_0xd877b2){return _0x3921cc(_0x2bb3fd-_0x4daf1c._0x4f10f0,_0xd877b2- -0x15b,_0x1ba94d,_0xd877b2-0xab);}switch(this['surface']){case _0x4ebb9c(_0x30cbc3._0x27d500,0x2fd,_0x30cbc3._0x2b2d6f,_0x30cbc3._0x2a8996):return this[_0x1f6ea3(0x324,0x28d,_0x30cbc3._0x2be2c3,0x260)]()[_0x4ebb9c(_0x30cbc3._0x39918a,0x371,_0x30cbc3._0x2992c7,_0x30cbc3._0x4ae19d)](_0x403b80,_0x511bb8);case _0x4ebb9c(0x3a7,_0x30cbc3._0x4299f9,_0x30cbc3._0x112832,_0x30cbc3._0x5ca12f):return this['getOpenAiDelegate']()[_0x4ebb9c(_0x30cbc3._0xddcd1,0x3b3,_0x30cbc3._0x27428d,_0x30cbc3._0x52bd5c)](_0x403b80,_0x511bb8);case _0x4ebb9c(_0x30cbc3._0x587f22,0x430,0x426,0x3f5):return this[_0x1f6ea3(0x1d6,_0x30cbc3._0xeef5cb,_0x30cbc3._0x174b92,0x196)]()[_0x4ebb9c(0x322,0x382,_0x30cbc3._0x256bbf,0x2e5)](_0x403b80,_0x511bb8);default:return this[_0x4ebb9c(_0x30cbc3._0x4a4ee8,_0x30cbc3._0x543666,_0x30cbc3._0xa356fa,_0x30cbc3._0x4acc6c)]()[_0x4ebb9c(0x42b,0x3dc,0x45a,0x345)](_0x403b80,_0x511bb8);}}[_0x3921cc(0x2c0,0x2b4,0x331,0x2cd)](_0x14cbb2,_0x54e6d3){const _0x403bf5={_0x3e4b4c:0x3df,_0x21e52f:0x44c,_0xfc7460:0x280,_0x66f59f:0x25a,_0xe01c86:0x168,_0x554129:0x2e6,_0x36bd83:0x394,_0x4a7c9b:0x56e,_0x14b2f7:0x3ad,_0x17e1ef:0x419,_0x3ce789:0x362,_0x4039bf:0x3e9,_0x4648cd:0x463},_0x5a2f36={_0x375a55:0x16e,_0x2a1b38:0xa8},_0x4436ea={_0x3e9bf9:0x1c,_0x40121b:0x191};function _0x15a258(_0x23e46b,_0x2a6471,_0x599b09,_0x4e3b47){return _0x3921cc(_0x23e46b-_0x4436ea._0x3e9bf9,_0x599b09- -_0x4436ea._0x40121b,_0x23e46b,_0x4e3b47-0x15d);}function _0x4eab66(_0xbe9d5b,_0x35494e,_0x597584,_0x47d3c0){return _0x4abdca(_0xbe9d5b-_0x5a2f36._0x375a55,_0x35494e- -_0x5a2f36._0x2a1b38,_0x597584-0xd1,_0xbe9d5b);}switch(this[_0x4eab66(_0x403bf5._0x3e4b4c,_0x403bf5._0x21e52f,0x392,0x3aa)]){case'anthropic-messages':return this[_0x15a258(_0x403bf5._0xfc7460,_0x403bf5._0x66f59f,0x22a,_0x403bf5._0xe01c86)]()[_0x4eab66(0x359,0x3ac,0x322,_0x403bf5._0x554129)](_0x14cbb2,_0x54e6d3);case'openai-responses':return this[_0x4eab66(_0x403bf5._0x36bd83,0x3e9,0x3b2,0x39c)]()['responseStream'](_0x14cbb2,_0x54e6d3);case _0x4eab66(0x48b,0x4c6,0x44b,_0x403bf5._0x4a7c9b):return this['getOpenAiDelegate']()[_0x4eab66(0x3f3,_0x403bf5._0x14b2f7,_0x403bf5._0x17e1ef,_0x403bf5._0x3ce789)](_0x14cbb2,_0x54e6d3);default:return this[_0x4eab66(0x3cd,_0x403bf5._0x4039bf,0x396,0x34b)]()[_0x4eab66(0x4a3,0x4a5,0x523,_0x403bf5._0x4648cd)](_0x14cbb2,_0x54e6d3);}}};import{randomUUID}from'crypto';var GitHubAccessTokenResolver=class{[_0x4abdca(0x576,0x511,0x4a6,0x477)];[_0x3921cc(0x227,0x2bb,0x299,0x29b)];[_0x3921cc(0x49b,0x3e5,0x3ed,0x366)];[_0x4abdca(0x482,0x542,0x5ac,0x5fe)];[_0x4abdca(0x4f8,0x461,0x3a3,0x3ce)];constructor(_0x12b3a8){const _0x429a8b={_0x483191:0x19b,_0x84b362:0x102,_0x2ff0bb:0x137,_0x2c4e6f:0x672,_0x3aeeb4:0x67f,_0x18a691:0x714,_0x3b458f:0x239,_0x5f0ee3:0x5f2,_0x456487:0x25a,_0x167c3e:0x1bd},_0x3ad245={_0xcd7ad9:0x61},_0x3706b0={_0x456647:0xde};function _0x145dc7(_0x512bba,_0x19c43c,_0xb00d2,_0x3b7d3c){return _0x4abdca(_0x512bba-0x6a,_0x512bba-0x108,_0xb00d2-_0x3706b0._0x456647,_0x3b7d3c);}function _0x214c59(_0x36dc8d,_0x42cea8,_0x2a0a43,_0x4395d8){return _0x4abdca(_0x36dc8d-_0x3ad245._0xcd7ad9,_0x2a0a43- -0x385,_0x2a0a43-0xb3,_0x42cea8);}this[_0x214c59(0x134,_0x429a8b._0x483191,0x18c,_0x429a8b._0x84b362)]=_0x12b3a8[_0x214c59(0x130,0x135,0x18c,_0x429a8b._0x2ff0bb)],this['baseUrl']=trimTrailingSlashes2(_0x12b3a8['baseUrl']),this[_0x145dc7(0x68d,_0x429a8b._0x2c4e6f,_0x429a8b._0x3aeeb4,_0x429a8b._0x18a691)]=_0x12b3a8[_0x214c59(_0x429a8b._0x3b458f,0x14e,0x18f,0x17e)],this[_0x145dc7(0x64a,0x5d6,_0x429a8b._0x5f0ee3,0x58b)]=trimTrailingSlashes2(_0x12b3a8[_0x214c59(0x186,_0x429a8b._0x456487,_0x429a8b._0x167c3e,0x257)]),this[_0x145dc7(0x569,0x4a7,0x518,0x5bf)]=_0x12b3a8['tokenExchangeApiVersion'];}async[_0x4abdca(0x544,0x4c6,0x457,0x496)](_0x513395){const _0x3b4860={_0x49d683:0x604,_0x2dd7c5:0x589,_0x5488e5:0x64b,_0x4850de:0x5e0,_0x3be626:0x6a3,_0x55c130:0x9,_0x1e6428:0x11f,_0xbe6684:0x72,_0x39092c:0xde,_0x1eb448:0x644,_0x32a63f:0x5f2,_0x1cf5e0:0x5bd,_0x992a2c:0x613,_0xc6b94a:0x505,_0x154956:0x4a5,_0x2fd829:0x5aa,_0xb7379d:0x51e,_0x457d87:0x5bf,_0x543702:0x5a6,_0x2a4b94:0x63e,_0x2ba3e7:0x2a,_0x1a0641:0x42,_0x17bb6a:0x4f3,_0x55acba:0x4f8,_0x1cd81a:0x100,_0x441ef7:0x17b,_0x39d602:0x98,_0x8d5488:0x648,_0x4118c0:0x5fa,_0x4f1632:0x5f2,_0x3bbe7c:0x5e5,_0x55e153:0x49,_0x465d04:0x107,_0xb0c45d:0x5e0,_0x261b1e:0x5ef,_0x1211f1:0x679,_0x106478:0x60e,_0x4081bb:0x6a7},_0x212464={_0x4fa096:0x161,_0x1a75ae:0x1},_0x5589ad=await this[_0x627e3d(_0x3b4860._0x49d683,0x65e,0x666,0x71b)](this[_0x627e3d(0x6d7,_0x3b4860._0x2dd7c5,0x623,_0x3b4860._0x5488e5)]+'/copilot_internal/v2/token',{'method':_0x627e3d(0x65c,0x540,_0x3b4860._0x4850de,_0x3b4860._0x3be626),'headers':new Headers({'accept':_0x473d7e(0x6a,-0x43,_0x3b4860._0x55c130,_0x3b4860._0x1e6428),'authorization':_0x473d7e(0xdf,_0x3b4860._0xbe6684,_0x3b4860._0x39092c,0x1a2)+this[_0x627e3d(_0x3b4860._0x1eb448,0x5dd,_0x3b4860._0x32a63f,_0x3b4860._0x1cf5e0)],'editor-version':_0x627e3d(0x657,_0x3b4860._0x992a2c,0x66a,0x6c6),'user-agent':'GitHubCopilotChat/0.33.1','x-github-api-version':this[_0x627e3d(_0x3b4860._0xc6b94a,0x50b,0x542,0x55a)]}),'signal':_0x513395});function _0x627e3d(_0x477448,_0x55f84e,_0x204645,_0x3b3f30){return _0x3921cc(_0x477448-_0x212464._0x4fa096,_0x204645-0x281,_0x3b3f30,_0x3b3f30-_0x212464._0x1a75ae);}if(!_0x5589ad['ok'])return{'credential':{'kind':_0x627e3d(_0x3b4860._0x154956,_0x3b4860._0x2fd829,_0x3b4860._0xb7379d,_0x3b4860._0x457d87),'value':this[_0x627e3d(_0x3b4860._0x543702,0x68e,_0x3b4860._0x32a63f,_0x3b4860._0x2a4b94)]},'endpoints':{'api':this['baseUrl']}};function _0x473d7e(_0x29542,_0x28b183,_0x4a81c9,_0x4c8e2e){return _0x4abdca(_0x29542-0x1ca,_0x29542- -0x4a4,_0x4a81c9-0x180,_0x4c8e2e);}const _0x3a5803=await _0x5589ad[_0x473d7e(-_0x3b4860._0x2ba3e7,-_0x3b4860._0x1a0641,0x72,-0xa)]();return{'credential':{'kind':_0x627e3d(0x580,_0x3b4860._0x17bb6a,0x5b7,_0x3b4860._0x55acba),'value':_0x3a5803[_0x473d7e(_0x3b4860._0x1cd81a,_0x3b4860._0x441ef7,0x14d,_0x3b4860._0x39d602)]??this[_0x627e3d(_0x3b4860._0x8d5488,_0x3b4860._0x4118c0,_0x3b4860._0x4f1632,_0x3b4860._0x3bbe7c)]},'endpoints':{'api':_0x3a5803['endpoints']?.['api']??this[_0x473d7e(-_0x3b4860._0x55e153,-0xf7,0x7d,-_0x3b4860._0x465d04)],'originTracker':_0x3a5803[_0x627e3d(0x6b9,_0x3b4860._0xb0c45d,0x60e,0x6c2)]?.[_0x627e3d(0x683,_0x3b4860._0x261b1e,_0x3b4860._0x1211f1,0x6fb)],'proxy':_0x3a5803[_0x473d7e(0x89,0x137,0x14d,0x4d)]?.[_0x473d7e(0x71,-0x26,0xc2,0x51)],'telemetry':_0x3a5803[_0x627e3d(0x67b,0x5af,_0x3b4860._0x106478,0x596)]?.[_0x627e3d(0x58b,_0x3b4860._0x4081bb,0x646,0x6e0)]}};}};function trimTrailingSlashes2(_0x21b394){const _0x511f3b={_0x1402c:0x255},_0x2a05fd={_0x31b81a:0x10,_0x483918:0xb8,_0x58ccfe:0x10d};function _0x39cbbb(_0x15d3b6,_0x33dfe1,_0x2720bd,_0xdaddce){return _0x3921cc(_0x15d3b6-_0x2a05fd._0x31b81a,_0x2720bd- -_0x2a05fd._0x483918,_0x33dfe1,_0xdaddce-_0x2a05fd._0x58ccfe);}return _0x21b394[_0x39cbbb(0x301,0x2f5,0x2cc,_0x511f3b._0x1402c)](/\/+$/,'');}function createModelInfo(_0x4c254e){const _0xe2bfef={_0x346aa9:0x1f1,_0xdc111:0x220,_0x6be923:0x288,_0x3d9e74:0x1fe,_0x59c73f:0x240,_0x486f76:0x223,_0x310620:0xd3,_0x2807eb:0x19b,_0x470825:0x113,_0x1d19f8:0x1be},_0x40198e={_0x2c4e71:0x171,_0x4796ae:0x242};function _0x55e0ae(_0x479ca2,_0x498de0,_0x119931,_0x4b7317){return _0x3921cc(_0x479ca2-0xcb,_0x4b7317- -0x139,_0x119931,_0x4b7317-0x1bb);}const _0x270f04=_0x4c254e['supported_endpoints']??_0x4c254e[_0x55e0ae(0x216,0x22b,_0xe2bfef._0x346aa9,_0xe2bfef._0xdc111)],_0x4c5308=_0x4c254e[_0x55e0ae(_0xe2bfef._0x6be923,_0xe2bfef._0x3d9e74,_0xe2bfef._0x59c73f,_0xe2bfef._0x486f76)]?.['limits']?.[_0x3a5ac1(_0xe2bfef._0x310620,0x61,0x152,0xfc)],_0x41f7ce=_0x4c254e[_0x55e0ae(0x297,_0xe2bfef._0x2807eb,0x1b1,0x223)]?.[_0x55e0ae(_0xe2bfef._0x470825,0x9c,_0xe2bfef._0x1d19f8,0x159)]?.[_0x55e0ae(0x233,0xfb,0x11f,0x175)],_0x1cd075=_0x4c5308!==void 0x0||_0x41f7ce!==void 0x0?{..._0x4c5308!==void 0x0?{'contextWindow':_0x4c5308}:{},..._0x41f7ce!==void 0x0?{'maxOutput':_0x41f7ce}:{}}:void 0x0;function _0x3a5ac1(_0x2f9463,_0x33f90b,_0x311ff3,_0x2fd69a){return _0x3921cc(_0x2f9463-_0x40198e._0x2c4e71,_0x2fd69a- -_0x40198e._0x4796ae,_0x311ff3,_0x2fd69a-0x18b);}return{'id':_0x4c254e['id'],'name':_0x4c254e['name']??_0x4c254e['id'],..._0x1cd075?{'limits':_0x1cd075}:{},..._0x270f04?{'supportedEndpoints':_0x270f04}:{}};}function deduplicateModels(_0x11431a){const _0x2f5378={_0xe19867:0x30b,_0x15b030:0x306,_0x282f64:0x359,_0x13a3bf:0x31f,_0x55ccc9:0x18c,_0x517dc5:0x12d,_0x1a23b2:0x216,_0x5545ed:0x395,_0x1d9723:0x21b},_0x7b0efc={_0x3d7ef7:0x186,_0x350b43:0x3e},_0x229087={_0x1d7b9b:0x1ca,_0x40ca82:0x19},_0x37d3b5=new Map();function _0x5b873c(_0x3d2d55,_0x273c95,_0x1b1a3e,_0x3eb60b){return _0x3921cc(_0x3d2d55-_0x229087._0x1d7b9b,_0x273c95- -0x86,_0x3eb60b,_0x3eb60b-_0x229087._0x40ca82);}function _0x295490(_0x1fc41e,_0x51adbb,_0x22983d,_0xe1f0b1){return _0x4abdca(_0x1fc41e-_0x7b0efc._0x3d7ef7,_0x22983d- -0x2c5,_0x22983d-_0x7b0efc._0x350b43,_0xe1f0b1);}for(const _0x25a295 of _0x11431a){!_0x37d3b5[_0x5b873c(_0x2f5378._0xe19867,_0x2f5378._0x15b030,_0x2f5378._0x282f64,_0x2f5378._0x13a3bf)](_0x25a295['id'])&&_0x37d3b5[_0x295490(_0x2f5378._0x55ccc9,_0x2f5378._0x517dc5,0x18a,_0x2f5378._0x1a23b2)](_0x25a295['id'],_0x25a295);}return Array[_0x5b873c(0x410,0x387,_0x2f5378._0x5545ed,0x3c4)](_0x37d3b5[_0x295490(_0x2f5378._0x1d9723,0x255,0x1ef,0x23e)]());}function hasUserPromptContent(_0x87b125){const _0x361acd={_0x208de1:0xe0,_0x95c504:0x116,_0x20dc55:0x1c0,_0x3dd12f:0xb6,_0x41a3c8:0x71,_0x45a76d:0x91},_0x4ce000={_0x29c09a:0xce,_0x540c35:0x8d,_0x4a9016:0xc1,_0xfbea4a:0xee,_0x568997:0xaa,_0x288d33:0x21c,_0x364421:0x164,_0x25fb79:0x4a8,_0x2ac7a8:0x400,_0x5a48ce:0x4f2,_0x45b615:0x459},_0x19aac2={_0x5de7f2:0x6a,_0x19106:0x149},_0x36b0ee={_0x542a64:0x142,_0x787aa3:0x44b,_0x2673c4:0xb4};if(typeof _0x87b125===_0x141873(-0xfc,-_0x361acd._0x208de1,-0x66,-0x78))return _0x87b125[_0x3ad991(0x34,-_0x361acd._0x95c504,-0x8c,-0xa9)]()[_0x141873(-0x12e,-0x1bc,-_0x361acd._0x20dc55,-_0x361acd._0x3dd12f)]>0x0;if(!Array[_0x3ad991(-_0x361acd._0x41a3c8,-0x56,-_0x361acd._0x45a76d,-0x73)](_0x87b125))return![];function _0x3ad991(_0x1e9f76,_0x4f965c,_0x155364,_0x21d744){return _0x3921cc(_0x1e9f76-_0x36b0ee._0x542a64,_0x155364- -_0x36b0ee._0x787aa3,_0x21d744,_0x21d744-_0x36b0ee._0x2673c4);}function _0x141873(_0x7b192c,_0x4ace31,_0x41e6e0,_0x1b513a){return _0x3921cc(_0x7b192c-_0x19aac2._0x5de7f2,_0x7b192c- -0x4ec,_0x4ace31,_0x1b513a-_0x19aac2._0x19106);}return _0x87b125['some'](_0x2403fb=>{const _0x46fb64={_0x6b5219:0x11,_0x5dbfc4:0x4b7};function _0x2d60b6(_0x52261c,_0x184691,_0x4a5db3,_0x3b0c9d){return _0x141873(_0x3b0c9d-0x26f,_0x4a5db3,_0x4a5db3-0x17a,_0x3b0c9d-0x19c);}function _0x57d267(_0x817846,_0x5947e4,_0x3b87d7,_0x3250a4){return _0x3ad991(_0x817846-0x90,_0x5947e4-_0x46fb64._0x6b5219,_0x817846-_0x46fb64._0x5dbfc4,_0x5947e4);}if(!_0x2403fb||typeof _0x2403fb!==_0x2d60b6(_0x4ce000._0x29c09a,_0x4ce000._0x540c35,_0x4ce000._0x4a9016,_0x4ce000._0xfbea4a))return![];const _0x3509bc=_0x2403fb;return(_0x3509bc['type']==='input_text'||_0x3509bc[_0x2d60b6(0x4d,-0x3c,_0x4ce000._0x568997,0x82)]===_0x2d60b6(0x157,0xe1,_0x4ce000._0x288d33,_0x4ce000._0x364421))&&typeof _0x3509bc[_0x57d267(0x44d,0x430,_0x4ce000._0x25fb79,_0x4ce000._0x2ac7a8)]===_0x57d267(0x45c,_0x4ce000._0x5a48ce,_0x4ce000._0x45b615,0x3bd)&&_0x3509bc['text']['trim']()['length']>0x0;});}function isUserPromptEntry(_0x5eecc7){const _0x3ea39b={_0x358638:0x498,_0x59d095:0x3f1,_0xa603c:0x8f,_0x1fa0f6:0xcd,_0x365f7b:0x4b,_0x46976c:0x1e9,_0x185346:0x1dd,_0x4d253f:0x208,_0xb37452:0x41e,_0x4d94cf:0x423,_0x3bc8d0:0x3e8,_0x3f5e5f:0x468,_0x440dc1:0x466},_0x109a99={_0x708419:0x60,_0x253ab0:0xd8,_0x1c25da:0x155},_0x17a210={_0x3f56ab:0x16e};if(!_0x5eecc7||typeof _0x5eecc7!==_0x192eb0(0x443,0x387,_0x3ea39b._0x358638,_0x3ea39b._0x59d095))return![];function _0x2c4f2d(_0x6979a8,_0x401b9d,_0x561497,_0x404d58){return _0x3921cc(_0x6979a8-0x1ce,_0x401b9d- -0x49f,_0x404d58,_0x404d58-_0x17a210._0x3f56ab);}function _0x192eb0(_0x47f4cb,_0x3bac9f,_0x19575e,_0x2d6af4){return _0x3921cc(_0x47f4cb-_0x109a99._0x708419,_0x47f4cb-_0x109a99._0x253ab0,_0x3bac9f,_0x2d6af4-_0x109a99._0x1c25da);}const _0x4d87ab=_0x5eecc7;if(_0x4d87ab[_0x2c4f2d(-_0x3ea39b._0xa603c,-_0x3ea39b._0x1fa0f6,-_0x3ea39b._0x365f7b,-0x97)]!==_0x2c4f2d(-_0x3ea39b._0x46976c,-_0x3ea39b._0x185346,-0x1c9,-0x257))return![];if(_0x4d87ab[_0x2c4f2d(-0x178,-0x1a0,-_0x3ea39b._0x4d253f,-0xe9)]!==void 0x0&&_0x4d87ab[_0x192eb0(0x3d7,_0x3ea39b._0xb37452,0x422,0x382)]!==_0x192eb0(_0x3ea39b._0x4d94cf,_0x3ea39b._0x3bc8d0,_0x3ea39b._0x3f5e5f,_0x3ea39b._0x440dc1))return![];return hasUserPromptContent(_0x4d87ab['content']);}function determineInitiator(_0x39ea59){const _0x5defa9={_0x425fef:0xb7,_0x627393:0x109,_0x313c2b:0xee,_0x1e8385:0x169,_0x4f24d3:0x146,_0x3e0342:0x18c,_0x4d8b2f:0xab,_0x4ce376:0x1e1,_0x413fde:0x1df,_0x21cb41:0x1b5,_0xfa532:0x134,_0x5d44da:0x200,_0x85ac6:0xef,_0x125098:0x46,_0x448015:0x185,_0x549bf7:0x1ad,_0x7b0e45:0x2b,_0x2de795:0x1e6,_0x10c429:0x220,_0x4bf30c:0x21c,_0x3c100a:0x169,_0x2f2c2b:0x228},_0x3faccd={_0x798206:0x181,_0x1745f2:0x3},_0x331823={_0xb73911:0xa3};if(!_0x39ea59||typeof _0x39ea59!==_0x58e986(-0x1da,-0x140,-_0x5defa9._0x425fef,-0x1de))return _0x58e986(-_0x5defa9._0x627393,-_0x5defa9._0x313c2b,-_0x5defa9._0x1e8385,-0x183);const _0x1c9ba3=_0x1497d4(0x1c3,_0x5defa9._0x4f24d3,_0x5defa9._0x3e0342,_0x5defa9._0x4d8b2f)in _0x39ea59?_0x39ea59[_0x58e986(-_0x5defa9._0x4ce376,-0x1c4,-0x1b6,-_0x5defa9._0x413fde)]:_0x58e986(-_0x5defa9._0x21cb41,-0x1d9,-0x171,-0x122)in _0x39ea59?_0x39ea59[_0x58e986(-_0x5defa9._0xfa532,-0x1d9,-_0x5defa9._0x5d44da,-0x227)]:void 0x0;function _0x58e986(_0x355d3d,_0x16238d,_0x46a09a,_0x39ae10){return _0x3921cc(_0x355d3d-0xf5,_0x16238d- -0x4ab,_0x46a09a,_0x39ae10-_0x331823._0xb73911);}function _0x1497d4(_0x2f73a0,_0x3e4bd4,_0xec79c,_0x2dff1d){return _0x4abdca(_0x2f73a0-_0x3faccd._0x798206,_0x3e4bd4- -0x341,_0xec79c-_0x3faccd._0x1745f2,_0xec79c);}if(!Array[_0x58e986(-_0x5defa9._0x85ac6,-0xf1,-0x121,-0xa8)](_0x1c9ba3)||_0x1c9ba3[_0x58e986(-_0x5defa9._0x125098,-0xed,-_0x5defa9._0x448015,-_0x5defa9._0x549bf7)]===0x0)return'agent';return isUserPromptEntry(_0x1c9ba3[_0x1c9ba3[_0x58e986(-_0x5defa9._0x7b0e45,-0xed,-0x11d,-0x18f)]-0x1])?_0x1497d4(_0x5defa9._0x2de795,0x121,_0x5defa9._0x4f24d3,0xb6):_0x1497d4(_0x5defa9._0x10c429,_0x5defa9._0x4bf30c,_0x5defa9._0x3c100a,_0x5defa9._0x2f2c2b);}function isUnsupportedApiForModel(_0x404a2d){const _0x1fcfb9={_0x371ddc:0x209,_0x317fcc:0x1b9,_0x53b806:0x117},_0x2762bd={_0x4d5c09:0x6};function _0x246073(_0x3e1e16,_0x3c9e48,_0x40b01e,_0x3a15fd){return _0x4abdca(_0x3e1e16-_0x2762bd._0x4d5c09,_0x40b01e- -0x362,_0x40b01e-0x1a2,_0x3a15fd);}return _0x404a2d[_0x246073(0x246,_0x1fcfb9._0x371ddc,_0x1fcfb9._0x317fcc,_0x1fcfb9._0x53b806)]('unsupported_api_for_model');}function createResponseError(_0x3721f9,_0x4feebb){const _0x5abaf0={_0x2b9680:0x272,_0xd3f2fd:0x22c,_0xc7905f:0x2d5,_0x39c0d5:0xef,_0x2e3ca9:0xdf,_0x1390d3:0x55},_0x481921={_0x23dc3c:0x23c,_0x48f675:0x11b},_0x335744={_0x12f229:0x6,_0x4dc907:0x21};if(_0x3721f9===0x191||_0x3721f9===0x193)return new Error(_0x5cc14a(_0x5abaf0._0x2b9680,0x302,_0x5abaf0._0xd3f2fd,_0x5abaf0._0xc7905f));function _0x5cc14a(_0x4589df,_0x1bbb45,_0xd5ef98,_0x35f7f9){return _0x3921cc(_0x4589df-_0x335744._0x12f229,_0x4589df- -0x157,_0x35f7f9,_0x35f7f9-_0x335744._0x4dc907);}if(_0x3721f9===0x198||_0x3721f9===0x1ad)return new Error(_0x28ee84(0x155,0x169,_0x5abaf0._0x39c0d5,0x215));if(_0x3721f9===0x190)return new Error('Invalid\x20request:\x20'+_0x4feebb);function _0x28ee84(_0x24e368,_0x11e885,_0x3cb53f,_0x127f98){return _0x3921cc(_0x24e368-0x126,_0x24e368- -_0x481921._0x23dc3c,_0x127f98,_0x127f98-_0x481921._0x48f675);}return new Error(_0x4feebb||_0x28ee84(_0x5abaf0._0x2e3ca9,0xd0,0x1f,_0x5abaf0._0x1390d3)+_0x3721f9);}var GitHubModel=class extends OpenAiModel{[_0x4abdca(0x4bc,0x4df,0x553,0x531)];[_0x4abdca(0x3c5,0x485,0x4b4,0x499)]=new Map();['surface'];constructor(_0x2eaa79={}){const _0x21bf07={_0x55c00c:0x198,_0x500115:0x1c4,_0x202a71:0x156,_0x2ca2cd:0x232,_0x5c495c:0x10b,_0xf67048:0x11,_0x3a511f:0x129,_0x26284f:0x91,_0x3a3e60:0x17a,_0x4d3161:0x1ab,_0x2bc079:0xbe,_0x2b9b1c:0xa2,_0x39be79:0xc,_0x188e6c:0x1cc,_0x73bd1b:0x60,_0x3f12ee:0x11f,_0x2cd74c:0xa2,_0x4be79b:0x59,_0x1a1ecf:0x74,_0x54639a:0x184,_0x232b43:0xca,_0x3d86ca:0x7,_0x437842:0x12b,_0x1f891c:0xe2,_0x16d1b1:0x62,_0x1f1d41:0x86,_0x5b3136:0x1c9,_0xac8aa0:0x11c,_0x749a97:0xdb,_0x53500f:0x16d,_0x3f8c2f:0x147,_0x422f61:0xbc,_0x4c49dc:0xf0,_0x1684db:0xc8,_0x21608b:0xe2,_0x416213:0xf1},_0xa5569f={_0x1f06ab:0x47f,_0x3a6d21:0x1f2},_0x362c2e={_0x394f42:0x1d8};function _0x3db0b6(_0x277e5b,_0x6eab24,_0x5e26dc,_0x3bec5c){return _0x4abdca(_0x277e5b-0x192,_0x3bec5c- -0x5a2,_0x5e26dc-_0x362c2e._0x394f42,_0x6eab24);}const _0x5bf61a=trimTrailingSlashes2(_0x2eaa79[_0x18ac98(-_0x21bf07._0x55c00c,-_0x21bf07._0x500115,-_0x21bf07._0x202a71,-_0x21bf07._0x2ca2cd)]??_0x3db0b6(-0x71,-0xa1,-0x1b2,-0x11c)),_0xd1d278=_0x2eaa79[_0x18ac98(-0x1c2,-_0x21bf07._0x5c495c,-0x7b,-0x103)]??globalThis['fetch'],_0x252540=_0x2eaa79['providerSessionResolver']??(_0x2eaa79[_0x3db0b6(_0x21bf07._0xf67048,-0x126,-_0x21bf07._0x3a511f,-_0x21bf07._0x26284f)]?new GitHubAccessTokenResolver({'accessToken':_0x2eaa79[_0x18ac98(-0x161,-0x10e,-0x76,-0x7e)],'baseUrl':_0x5bf61a,'fetch':_0xd1d278,'githubApiUrl':_0x2eaa79['githubApiUrl']??_0x3db0b6(-0x1ab,-_0x21bf07._0x3a3e60,-_0x21bf07._0x4d3161,-0x13e),'tokenExchangeApiVersion':_0x2eaa79['tokenExchangeApiVersion']??'2025-10-01'}):void 0x0),_0x33987f=_0x2eaa79[_0x3db0b6(_0x21bf07._0x2bc079,-0xa9,-_0x21bf07._0x2b9b1c,_0x21bf07._0x39be79)]??_0x18ac98(-0x1c5,-_0x21bf07._0x188e6c,-0x1ea,-0x203);function _0x18ac98(_0x251d32,_0xbaa58e,_0x33124e,_0x122437){return _0x3921cc(_0x251d32-0x1d8,_0xbaa58e- -_0xa5569f._0x1f06ab,_0x251d32,_0x122437-_0xa5569f._0x3a6d21);}const _0x196e58=_0x2eaa79['editorPluginVersion']??_0x3db0b6(-0xc8,-_0x21bf07._0x73bd1b,-0xb0,-_0x21bf07._0x3f12ee),_0x978e99=({body:_0x1b56ae})=>{return{'editor-plugin-version':_0x196e58,'editor-version':_0x33987f,'x-initiator':determineInitiator(_0x1b56ae),'x-request-id':randomUUID()};},_0x1a7174={'apiKey':_0x2eaa79['apiKey'],'baseUrl':_0x5bf61a,'fetch':_0xd1d278,'maxTokens':_0x2eaa79[_0x3db0b6(-_0x21bf07._0x2cd74c,-0x169,-0x62,-0xe4)],'model':_0x2eaa79[_0x3db0b6(-0x36,0x14,-_0x21bf07._0x4be79b,-_0x21bf07._0x1a1ecf)],'reasoning':_0x2eaa79[_0x3db0b6(-0x175,-_0x21bf07._0x54639a,-0x4f,-_0x21bf07._0x232b43)],'providerSessionResolver':_0x252540,'requestMutators':_0x2eaa79['requestMutators'],'headerResolver':_0x978e99};super(_0x1a7174),this[_0x3db0b6(_0x21bf07._0x3d86ca,-0x170,-0x91,-0xae)]=_0x2eaa79[_0x18ac98(-0x16f,-_0x21bf07._0x437842,-0xb0,-0xb7)]??_0x18ac98(-0xf7,-0xd3,-_0x21bf07._0x1f891c,-0x12),this['anthropicDelegate']=new AnthropicModel({'apiKey':_0x2eaa79[_0x3db0b6(-_0x21bf07._0x16d1b1,_0x21bf07._0x1f1d41,0x0,0xe)],'authScheme':_0x18ac98(-0x20e,-0x1c3,-0x13c,-_0x21bf07._0x5b3136),'baseUrl':_0x5bf61a,'fetch':_0xd1d278,'headerResolver':_0x978e99,'maxTokens':_0x2eaa79[_0x18ac98(-0x157,-0x161,-_0x21bf07._0xac8aa0,-_0x21bf07._0x749a97)],'model':_0x2eaa79['model'],'reasoning':_0x2eaa79[_0x18ac98(-_0x21bf07._0x53500f,-_0x21bf07._0x3f8c2f,-0x14d,-_0x21bf07._0x422f61)],'providerSessionResolver':_0x252540,'requestMutators':_0x2eaa79[_0x3db0b6(-_0x21bf07._0x4c49dc,-_0x21bf07._0x1684db,-_0x21bf07._0x21608b,-_0x21bf07._0x416213)]});}['createMissingCredentialError'](){const _0x49c805={_0x4435de:0xa4},_0x1900c4={_0x1febcc:0x125,_0x2fdb35:0x281,_0x304ea6:0x1d};function _0x10f8d2(_0x25b4b9,_0x43ab8a,_0xe4eb9,_0x2c71bf){return _0x3921cc(_0x25b4b9-_0x1900c4._0x1febcc,_0x43ab8a- -_0x1900c4._0x2fdb35,_0x2c71bf,_0x2c71bf-_0x1900c4._0x304ea6);}return new Error(_0x10f8d2(0x9f,0xb8,_0x49c805._0x4435de,0x110));}[_0x4abdca(0x54e,0x57c,0x56c,0x628)](_0x4256bd){const _0x31edf5={_0x19f122:0xd0,_0x6ca815:0x19,_0x4bddca:0x1b,_0x30e5f7:0x37e,_0x56ada1:0x433,_0x5e9c7d:0x49c,_0x3950e3:0x48d,_0x4c371d:0x479},_0x91d9e3={_0x5e43fc:0x198,_0xdf15bf:0x19e},_0x4b6ce9={_0x1e79d4:0x7a,_0x4bfc5b:0xc9,_0x4d6944:0x10c};function _0x51a359(_0xdba88a,_0x4d1338,_0x329dee,_0x1eec8c){return _0x3921cc(_0xdba88a-_0x4b6ce9._0x1e79d4,_0x1eec8c-_0x4b6ce9._0x4bfc5b,_0x4d1338,_0x1eec8c-_0x4b6ce9._0x4d6944);}const _0x3740af=this[_0x5bd7e7(-_0x31edf5._0x19f122,-0xf8,_0x31edf5._0x6ca815,-0x75)][_0x5bd7e7(-0xe9,-_0x31edf5._0x4bddca,-0x15a,-0x9a)](_0x4256bd);function _0x5bd7e7(_0x39f928,_0x3c2288,_0x149ebf,_0xc14571){return _0x4abdca(_0x39f928-_0x91d9e3._0x5e43fc,_0xc14571- -0x4fa,_0x149ebf-_0x91d9e3._0xdf15bf,_0x39f928);}if(!_0x3740af)return![];return!_0x3740af[_0x51a359(_0x31edf5._0x30e5f7,0x4a7,_0x31edf5._0x56ada1,0x444)](_0x51a359(0x4f8,0x455,0x52d,_0x31edf5._0x5e9c7d))&&_0x3740af['includes'](_0x51a359(0x47d,_0x31edf5._0x3950e3,0x52a,_0x31edf5._0x4c371d));}[_0x4abdca(0x561,0x4cc,0x47f,0x4d4)](_0x14127c){const _0x4aeeda={_0x58ef58:0x3d1,_0x5209e5:0x36a,_0x3d35c7:0x393,_0xe883ca:0xf7,_0x51c08a:0xf9,_0x33abb5:0x4ec,_0x558373:0x425,_0x311fde:0x469,_0x23ab79:0x4c4,_0x588232:0x5a0,_0x5500fd:0x439,_0x187415:0x4f9,_0x2fc1ac:0x4c8,_0x136d2f:0x48e,_0x349c9c:0x525},_0x170fdf={_0x492401:0x1b8,_0x31be51:0x41b,_0x5bcad3:0x1a},_0x4b2f75={_0xe53259:0x35,_0x380cf9:0x57,_0x463543:0x1c3},_0x5679b0=this[_0x7149c1(-0x23,0x16,0x6a,0x58)][_0x636917(_0x4aeeda._0x58ef58,_0x4aeeda._0x5209e5,_0x4aeeda._0x3d35c7,0x409)](_0x14127c[_0x7149c1(0x9b,_0x4aeeda._0xe883ca,0x113,_0x4aeeda._0x51c08a)]);function _0x636917(_0x1355b0,_0xabbc79,_0x38d420,_0x6cc633){return _0x4abdca(_0x1355b0-_0x4b2f75._0xe53259,_0x6cc633- -_0x4b2f75._0x380cf9,_0x38d420-_0x4b2f75._0x463543,_0x1355b0);}if(!_0x5679b0)return![];function _0x7149c1(_0x39dc81,_0x16311f,_0xf2f19b,_0x1068d8){return _0x4abdca(_0x39dc81-_0x170fdf._0x492401,_0xf2f19b- -_0x170fdf._0x31be51,_0xf2f19b-_0x170fdf._0x5bcad3,_0x16311f);}if(resolveOpenAiReasoningConfig(_0x14127c[_0x636917(0x4d3,0x3fa,0x3dc,0x481)]))return _0x5679b0[_0x636917(_0x4aeeda._0x33abb5,_0x4aeeda._0x558373,_0x4aeeda._0x311fde,_0x4aeeda._0x23ab79)](_0x636917(0x543,_0x4aeeda._0x588232,_0x4aeeda._0x5500fd,_0x4aeeda._0x187415));return this[_0x636917(_0x4aeeda._0x2fc1ac,0x481,_0x4aeeda._0x136d2f,_0x4aeeda._0x349c9c)](_0x14127c[_0x7149c1(0x112,0x1cb,0x113,0x14e)]);}[_0x3921cc(0x420,0x3ff,0x353,0x407)](_0x28afa1){const _0x4e3ed9={_0xf2129f:0x1a1,_0x38c6f3:0x229,_0x4af2c7:0x2f4},_0x267b8b={_0x15b08c:0x176},_0x5d36fc={_0x5429e7:0xef,_0x354dba:0x9};function _0x20ba47(_0x1493ff,_0x584e65,_0x733369,_0x4b6f85){return _0x3921cc(_0x1493ff-_0x5d36fc._0x5429e7,_0x1493ff- -0x11b,_0x584e65,_0x4b6f85-_0x5d36fc._0x354dba);}function _0x3a13ae(_0x54b441,_0x5c2d11,_0x4b0c0e,_0x2de574){return _0x3921cc(_0x54b441-0x57,_0x5c2d11- -0x450,_0x54b441,_0x2de574-_0x267b8b._0x15b08c);}this['modelEndpointCache'][_0x3a13ae(-0x1ca,-_0x4e3ed9._0xf2129f,-0x213,-_0x4e3ed9._0x38c6f3)](_0x28afa1,[_0x20ba47(0x295,0x1ec,_0x4e3ed9._0x4af2c7,0x210)]);}['mapApiError'](_0x5cc537){const _0x4643ff={_0x21ad96:0x2a4,_0x3a88bd:0x1a3,_0x269529:0x7d,_0x3d02ce:0x19c,_0x31aed0:0x117,_0xdc96e5:0xfb},_0x47ab3d={_0x2a86eb:0x498},_0x4ac81f={_0x5c118c:0x0,_0xedda6d:0x159};function _0x157ee6(_0x5ef803,_0x4d994b,_0x4e094e,_0x5b0bcf){return _0x4abdca(_0x5ef803-0xd9,_0x5ef803-_0x4ac81f._0x5c118c,_0x4e094e-_0x4ac81f._0xedda6d,_0x5b0bcf);}if(_0x5cc537 instanceof OpenAiApiError)return createResponseError(_0x5cc537[_0x6bcbcc(-_0x4643ff._0x21ad96,-0x171,-0x205,-_0x4643ff._0x3a88bd)],_0x5cc537[_0x6bcbcc(-_0x4643ff._0x269529,-_0x4643ff._0x3d02ce,-_0x4643ff._0x31aed0,-0x123)]||_0x5cc537[_0x6bcbcc(-0x144,-0x156,-0x14d,-_0x4643ff._0xdc96e5)]);function _0x6bcbcc(_0x276636,_0x398a00,_0x285e69,_0x16f838){return _0x3921cc(_0x276636-0x183,_0x285e69- -_0x47ab3d._0x2a86eb,_0x276636,_0x16f838-0xe2);}return _0x5cc537;}[_0x4abdca(0x504,0x4c9,0x432,0x4af)](_0x27d264,_0x4082b9){const _0x224bd3={_0x35d063:0x25c,_0x2b0317:0xe6,_0x5cc75c:0x360,_0x587ee4:0x294,_0x2242e7:0x83,_0x2f261e:0x14,_0x56bf17:0x98,_0x5ada1e:0x9d,_0xf3bbd0:0x143,_0x4dba93:0xa4,_0x8a396d:0x174,_0x489063:0x121,_0x38d672:0x303,_0x3e6bfa:0x264,_0x18bdfc:0x227,_0x559d2:0xbe,_0x2d2154:0x13f,_0x743f2:0xa,_0x5cb486:0x14,_0x313a25:0x9c,_0x2a52d4:0x2ea,_0x1b8cf3:0x298,_0x37e33d:0x2e9},_0x1d6a21={_0x301f11:0x8f,_0x8c319e:0xec},_0x46e4dc={_0x1f45cc:0x123};function _0x4f4499(_0x31e703,_0x49ab2f,_0x9ffdd1,_0x553da8){return _0x4abdca(_0x31e703-0x173,_0x9ffdd1- -0x25c,_0x9ffdd1-_0x46e4dc._0x1f45cc,_0x49ab2f);}function _0x471ff1(_0x66b871,_0x5ad5ad,_0x33d53a,_0x5b1250){return _0x4abdca(_0x66b871-_0x1d6a21._0x301f11,_0x5b1250- -0x44d,_0x33d53a-_0x1d6a21._0x8c319e,_0x33d53a);}switch(this[_0x4f4499(_0x224bd3._0x35d063,0x207,0x298,0x270)]){case'anthropic-messages':return this[_0x471ff1(_0x224bd3._0x2b0317,0x69,-0x3,0x92)]['complete'](_0x27d264,_0x4082b9);case _0x4f4499(_0x224bd3._0x5cc75c,_0x224bd3._0x587ee4,0x353,0x369):return this[_0x471ff1(0x2a,0x83,0x7b,0xcd)](_0x27d264,_0x4082b9);case _0x471ff1(0x8e,_0x224bd3._0x2242e7,-_0x224bd3._0x2f261e,_0x224bd3._0x56bf17):return this[_0x471ff1(_0x224bd3._0x5ada1e,_0x224bd3._0xf3bbd0,0x3f,_0x224bd3._0x4dba93)](_0x27d264,_0x4082b9);case _0x471ff1(0x6d,0xa6,_0x224bd3._0x8a396d,_0x224bd3._0x489063):return this[_0x4f4499(0x1dd,_0x224bd3._0x38d672,_0x224bd3._0x3e6bfa,_0x224bd3._0x18bdfc)](_0x27d264,_0x4082b9);case _0x4f4499(0x300,0x2b0,0x2f0,0x298):return this[_0x471ff1(_0x224bd3._0x559d2,0x11,0x108,0x62)](_0x27d264,_0x4082b9);}throw new Error(_0x471ff1(_0x224bd3._0x2d2154,-_0x224bd3._0x743f2,_0x224bd3._0x5cb486,_0x224bd3._0x313a25)+String(this[_0x4f4499(_0x224bd3._0x2a52d4,0x23a,_0x224bd3._0x1b8cf3,_0x224bd3._0x37e33d)]));}[_0x3921cc(0x24a,0x2a3,0x26f,0x272)](_0xfb6092,_0x2d74c6){const _0x4f22a5={_0x58b3d6:0x147,_0x3e4962:0x81,_0xc5d236:0x512,_0xa7874f:0x11d,_0x3c2676:0x6c,_0x102d44:0x5d9,_0x5d39d5:0x590,_0x229a02:0x5f3,_0x187fc7:0x557,_0x15a701:0x20,_0x1df2d1:0x52c,_0x5f4e2e:0x487,_0x2cf9b6:0x7,_0x9d219b:0x19,_0x7d4d64:0x11b,_0x28d55f:0xdc,_0x49ac2d:0x76,_0x13a283:0x643,_0x3894c5:0x5cb,_0x4eeb94:0x527},_0x23a5b0={_0x2943a0:0x192},_0x1cc566={_0x33662f:0x1bd,_0x4af6ed:0xd7};function _0x294f7b(_0x5e6a4d,_0x4e64f5,_0x57886f,_0x58303e){return _0x4abdca(_0x5e6a4d-_0x1cc566._0x33662f,_0x4e64f5-_0x1cc566._0x4af6ed,_0x57886f-0x48,_0x57886f);}switch(this[_0x5b9e75(-0x13,0x78,_0x4f22a5._0x58b3d6,_0x4f22a5._0x3e4962)]){case _0x294f7b(0x502,_0x4f22a5._0xc5d236,0x582,0x56f):return this[_0x5b9e75(-0x1,0x99,_0x4f22a5._0xa7874f,_0x4f22a5._0x3c2676)][_0x294f7b(_0x4f22a5._0x102d44,0x52b,_0x4f22a5._0x5d39d5,0x4a7)](_0xfb6092,_0x2d74c6);case'openai-chat-completions':return this['chatStream'](_0xfb6092,_0x2d74c6);case _0x294f7b(_0x4f22a5._0x229a02,0x5bc,0x616,_0x4f22a5._0x187fc7):return this[_0x5b9e75(_0x4f22a5._0x15a701,0x14,-0x8e,-0x2d)](_0xfb6092,_0x2d74c6);case'openai-responses-ws':return this[_0x294f7b(0x5ae,_0x4f22a5._0x1df2d1,0x5d1,_0x4f22a5._0x5f4e2e)](_0xfb6092,_0x2d74c6);case'auto':return this[_0x5b9e75(-_0x4f22a5._0x2cf9b6,-_0x4f22a5._0x9d219b,-0x4c,-0x1f)](_0xfb6092,_0x2d74c6);}function _0x5b9e75(_0x21d49a,_0xe1741f,_0x4ba325,_0x4885a9){return _0x4abdca(_0x21d49a-_0x23a5b0._0x2943a0,_0x4885a9- -0x473,_0x4ba325-0x105,_0x21d49a);}throw new Error(_0x5b9e75(_0x4f22a5._0x7d4d64,0xe5,_0x4f22a5._0x28d55f,_0x4f22a5._0x49ac2d)+String(this[_0x294f7b(_0x4f22a5._0x13a283,_0x4f22a5._0x3894c5,0x5f4,_0x4f22a5._0x4eeb94)]));}async[_0x4abdca(0x430,0x4af,0x538,0x3fe)](_0x5b5828,_0x979c59){const _0xc57636={_0x353dc5:0x212,_0x55bdd6:0x1ed,_0xc6fcb0:0x1b8,_0x2f0b3a:0x312,_0x9cb698:0x231,_0x3d4e43:0x257,_0x11ec74:0x306,_0xcb39c:0x2ca,_0x1ef73b:0x1f3,_0x55ffcf:0x344,_0x13c184:0x4cb,_0x43a8ab:0x55d,_0x14d4b7:0x454,_0x354955:0x575,_0x14b1de:0x216,_0x380b55:0x1fe,_0x39affd:0x247},_0x1de566={_0x7888c3:0x15c},_0x41e8a8={_0x2f6fe6:0xb8,_0x36a0ae:0x14e},_0x24c3e5=this[_0x5b1eb3(_0xc57636._0x353dc5,_0xc57636._0x55bdd6,0x22a,_0xc57636._0xc6fcb0)](_0x5b5828);if(this[_0x5b1eb3(0x237,_0xc57636._0x2f0b3a,0x29c,0x1dc)]!==_0x5b1eb3(_0xc57636._0x9cb698,0x230,0x2f4,_0xc57636._0x3d4e43))return this['completeViaConfiguredSurface'](_0x24c3e5,_0x979c59);function _0x5b1eb3(_0x306c6c,_0x3eb56b,_0x4cf2f3,_0x2ecac1){return _0x3921cc(_0x306c6c-0x71,_0x4cf2f3- -_0x41e8a8._0x2f6fe6,_0x306c6c,_0x2ecac1-_0x41e8a8._0x36a0ae);}function _0x3fbf4f(_0x3f4093,_0x14d277,_0x56820b,_0x4abdee){return _0x3921cc(_0x3f4093-0xb2,_0x3f4093-0x17a,_0x14d277,_0x4abdee-_0x1de566._0x7888c3);}if(this[_0x5b1eb3(_0xc57636._0x11ec74,_0xc57636._0xcb39c,0x274,0x299)](_0x24c3e5))return this['response'](_0x24c3e5,_0x979c59);try{return await this[_0x5b1eb3(_0xc57636._0x1ef73b,0x294,0x237,0x2ad)](_0x24c3e5,_0x979c59);}catch(_0x520004){if(_0x520004 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x520004['body']))return this['markModelAsResponsesOnly'](_0x24c3e5[_0x5b1eb3(0x22e,0x2dd,0x2d6,_0xc57636._0x55ffcf)]),this[_0x3fbf4f(_0xc57636._0x13c184,_0xc57636._0x43a8ab,_0xc57636._0x14d4b7,_0xc57636._0x354955)](_0x24c3e5,_0x979c59);throw this[_0x5b1eb3(_0xc57636._0x14b1de,0x215,_0xc57636._0x380b55,_0xc57636._0x39affd)](_0x520004);}throw _0x520004;}}async*[_0x4abdca(0x39b,0x454,0x4aa,0x46e)](_0x3f7d3b,_0x257bd7){const _0x13e514={_0x49dc39:0x40,_0x48abd8:0x5a,_0x1691b1:0x4e,_0x478851:0xf5,_0xc70818:0x59,_0x55063f:0x95,_0xee74bf:0x7,_0x535380:0x1e,_0x325291:0x152,_0x4d338e:0x66,_0x4ffe96:0x80,_0x56d72c:0x189,_0x5b4db0:0xcb,_0xd6ba96:0x1ae,_0x39a5b5:0x126,_0xe0dd0c:0x108,_0x31f3e9:0x5e,_0xd328b9:0x3b},_0x16a055={_0x1cc025:0x19c},_0xed9815=this[_0x3f5a34(-0x18,-_0x13e514._0x49dc39,-0xaf,-0x8a)](_0x3f7d3b);if(this[_0x3f5a34(_0x13e514._0x48abd8,-_0x13e514._0x1691b1,_0x13e514._0x478851,-_0x13e514._0xc70818)]!==_0x3f5a34(0xb2,_0x13e514._0x55063f,-_0x13e514._0xee74bf,0x143)){yield*this['streamViaConfiguredSurface'](_0xed9815,_0x257bd7);return;}function _0x3f5a34(_0x1c570b,_0xcf4bc1,_0x2294c7,_0x578b32){return _0x3921cc(_0x1c570b-0x10c,_0x1c570b- -0x2fa,_0xcf4bc1,_0x578b32-0x1ce);}if(this[_0x3953dd(-_0x13e514._0x535380,0x131,0xa6,_0x13e514._0x325291)](_0xed9815)){yield*this['responseStream'](_0xed9815,_0x257bd7);return;}function _0x3953dd(_0x6c22c5,_0x2c3eb4,_0x17a512,_0x19ab07){return _0x4abdca(_0x6c22c5-_0x16a055._0x1cc025,_0x17a512- -0x426,_0x17a512-0xd1,_0x19ab07);}try{yield*this['streamViaChatCompletionsSurface'](_0xed9815,_0x257bd7);}catch(_0x130e71){if(_0x130e71 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x130e71[_0x3f5a34(0x87,0xce,_0x13e514._0x4d338e,_0x13e514._0x4ffe96)])){this[_0x3953dd(_0x13e514._0x56d72c,_0x13e514._0x5b4db0,0x179,0x165)](_0xed9815[_0x3953dd(_0x13e514._0xd6ba96,_0x13e514._0x39a5b5,_0x13e514._0xe0dd0c,0x12a)]),yield*this[_0x3f5a34(-0x54,_0x13e514._0x31f3e9,_0x13e514._0xd328b9,-0x10d)](_0xed9815,_0x257bd7);return;}throw this['mapApiError'](_0x130e71);}throw _0x130e71;}}async[_0x3921cc(0x3bf,0x321,0x3cd,0x3be)](_0x1785cd){const _0x22a5d0={_0x237f9a:0x583,_0x785299:0x558,_0x2d80cb:0x603,_0x43beab:0x5bb,_0x921b78:0x665,_0x46d1a9:0x6c1,_0x2c03da:0x622,_0x131d60:0x5be,_0x59fc80:0x6a7,_0x535831:0x45c},_0x5c764c={_0x251e6e:0x123,_0x370bc4:0x1ec},_0x3bc97f={_0x56aeb9:0x250,_0x15d947:0x315,_0x515bae:0x28b,_0x2fb731:0x7f,_0x143bdb:0x71,_0x5485a3:0x130},_0x5ba221={_0x305293:0x7b},_0x5146f8={_0x54669b:0x11b},_0x31b0c9=await this[_0x2985f4(0x5ca,_0x22a5d0._0x237f9a,0x4b9,_0x22a5d0._0x785299)]({'path':_0x2985f4(0x6a0,0x642,_0x22a5d0._0x2d80cb,0x662),'method':_0x2985f4(_0x22a5d0._0x43beab,_0x22a5d0._0x921b78,_0x22a5d0._0x46d1a9,_0x22a5d0._0x2c03da),'signal':_0x1785cd});if(!_0x31b0c9['ok'])throw this['mapApiError'](await this[_0x2985f4(_0x22a5d0._0x131d60,0x5fa,_0x22a5d0._0x59fc80,0x649)](_0x31b0c9));function _0x3739ce(_0x6df3ef,_0x227163,_0x45b167,_0xdbf783){return _0x3921cc(_0x6df3ef-0x19e,_0xdbf783-0x74,_0x6df3ef,_0xdbf783-_0x5146f8._0x54669b);}const _0x124a95=await _0x31b0c9['json'](),_0x4a1a46=(_0x124a95[_0x3739ce(0x508,0x518,0x39e,_0x22a5d0._0x535831)]??[])[_0x3739ce(0x52d,0x3d4,0x3f1,0x479)](_0x3c0939=>{const _0x5f0c8c={_0x264163:0x9b},_0x3c972c=createModelInfo(_0x3c0939);function _0x46ca43(_0x3cbce2,_0x4e7086,_0x16b4ab,_0x45184a){return _0x2985f4(_0x3cbce2-0x97,_0x4e7086-_0x5f0c8c._0x264163,_0x3cbce2,_0x4e7086- -0x5ee);}function _0xac7ee5(_0x5156b7,_0x4d46a4,_0x115d65,_0x2bbb17){return _0x3739ce(_0x4d46a4,_0x4d46a4-0x5,_0x115d65-_0x5ba221._0x305293,_0x115d65- -0x19);}return _0x3c972c[_0xac7ee5(_0x3bc97f._0x56aeb9,0x2ab,_0x3bc97f._0x15d947,0x2ee)]&&this['modelEndpointCache'][_0xac7ee5(_0x3bc97f._0x515bae,0x2d4,0x30a,0x2d5)](_0x3c972c['id'],_0x3c972c[_0x46ca43(-_0x3bc97f._0x2fb731,-_0x3bc97f._0x143bdb,-0x13,-_0x3bc97f._0x5485a3)]),_0x3c972c;});function _0x2985f4(_0x2acc32,_0x30e809,_0x4a4be8,_0x37f877){return _0x4abdca(_0x2acc32-0x11f,_0x37f877-_0x5c764c._0x251e6e,_0x4a4be8-_0x5c764c._0x370bc4,_0x4a4be8);}return deduplicateModels(_0x4a1a46);}};function _0xa677(){const _0x15fd3a=['C3rYzwfTvMLHq29UzMLNDxjLzfn1CMzHy2u','C3rVCf9YzwfZB24','ChjVDg9JB2XwzxjZAw9U','CMvZCg9UC2vtDhjLyw0','B3v0Chv0sw5KzxG','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','C2vZC2LVBG','C3rYzwfTvMLHuMvZCg9UC2vZu29JA2v0qxr0zw1WDa','B3v0Chv0sw5KzxHuB0nHBgXjza','t3bLBKfjigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','yxnZAxn0yw50','Bwf4x291Dhb1Df90B2TLBNm','C2v0','yNvPBgrqyxj0AwfSt3v0Chv0','y29UC3vTzvDLyLnVy2TLDev2zw50','D3m6','DNnJB2rLlZeUmta0lJi','C3rYzwfT','CMvZCg9UC2vtB2nRzxrtDhjLyw0','BwfWqxbPrxjYB3i','B3bLBMfPlxjLC3bVBNnLCY1ZDhjLyw0','Aw5WDxrFANnVBL9KzwX0yq','C2vSzwn0u3vYzMfJzq','C3vWCg9YDgvKrw5KCg9PBNrZ','yMfZzvvYBa','yMvHCMvY','ignHBM5VDcbWyxjZzsbtu0uGzxzLBNrZ','B3v0Chv0x3rVA2vUC19KzxrHAwXZ','C29YDa','z2v0','Dg9Rzw5fEgnOyw5NzufWAvzLCNnPB24','DxnLCG','zg9Uzq','Ahr0Chm6lY9HCgKUz2L0AhvIlMnVBq','Dgv4Df9KzwX0yq','y2HHDenVBxbSzxrPB25Zugf0Aa','Dg9VBa','zwzMB3j0','AxrLBq','zgLZywjSzwq','CMvHC29U','CMvHzhLtDgf0zq','nZKXodi0sgn1s253','mta0DuDlD1nk','B3v0Chv0sw5KzxHuB1jLyxnVBMLUz0LK','CMvZCg9UC2uUCMvHC29UAw5Nx3n1Bw1HCNLFDgv4Dc5KzwX0yq','DxjS','Aw5WDxq','zw5JCNLWDgvKq29UDgvUDa','B3v0Chv0x2LUzgv4','y2XVC2u','BwvKAwfFDhLWzq','yxbPlwTLEq','ChjLCgfYzunOyxrszxf1zxn0','C3rYzwfTvMLHuM91DgvY','ANnVBG','zNjVBuvUDhjPzxm','o2jHC2u2ncW','DMfSDwu','AM9PBG','CgfYDgLHBf9QC29U','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzg9Uzq','CMvZCg9UC2uUy29TCgXLDgvK','yxbWBhLnB2rLBerLzMf1BhrZ','y29WAwXVDc1JAgf0lZaUmZeUmW','ChvZAa','Bw9KzwXfBMrWB2LUDenHy2HL','Ahr0Chm6lY9HCgKUAw5KAxzPzhvHBc5NAxrODwjJB3bPBg90lMnVBq','BwvZC2fNzxm','Dg9VBenHBgXZqNLjBMrLEa','yxv0AfnJAgvTzq','CMvTB3zLrxzLBNrmAxn0zw5LCG','CM91DgvY','DhjHBNnWB3j0','Aw5KzxG','D2vIC29JA2v0x2nVBM5Ly3rPB25FBgLTAxrFCMvHy2HLza','y29TCgXLDgvwAwfdAgf0q29TCgXLDgLVBNntDxjMywnL','zMLUza','z2v0t3bLBKfPrgvSzwDHDgu','zw5Kx3r1CM4','C2HHCMvKuMvZCg9UC2vZu29JA2v0u2vZC2LVBNm','qMfZAa','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBLn0yxrL','CMvZB2X2zunYzwrLBNrPywW','C3vTBwfYEq','B3v0Chv0x3rVA2vUCW','B3v0Chv0','C2LNBMf0DxjL','ChjVDMLKzxjbzgfWDgvY','Dgv4Dej5sw5KzxG','y3jLzgvUDgLHBa','Aw5PDgLHBev2zw50','DhLWzq','yw50AhjVCgLJx3rOAw5RAw5N','yxjNDw1LBNrZ','ywrK','yNvPBgrszxnWB25ZzxntB2nRzxrfDMvUDa','ndeWotrgqwn1B0C','ywnJzxb0','zw5JCNLWDgvKx2nVBNrLBNq','zMLUAxnOx3jLyxnVBG','Aw5WDxruB2TLBNm','zgvJB2rL','C29Tzq','C3bSAxq','yMXVy2TZ','y2XHDwrLlxnVBM5LDc00ltiWmJuWnte0','CMvHC29UAw5NsxrLBxm','y29TCgXLDgu','Aw52ywXPzgf0zq','CMvXDwvZDe11Dgf0B3jZ','Ahr0Chm6','Aw50zxjSzwf2zwq','DMfSDwvZ','Dg9VBenHBgXZ','B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','Aw52ywXPzgf0zvjLC3bVBNnLC1nVy2TLDfnLC3nPB24','y29UC3vTzvnZzuv2zw50','CMvZB2X2zxi','Dg9VBf91C2u','r2L0shvIiefqssbLCNjVCIa','Bwv0ywrHDge','CMvZCg9UC2uUB3v0Chv0x2L0zw0Uzg9Uzq','Bwf4vg9Rzw5Z','C3rYzwfTvMLHuMvZCg9UC2vZv2vIu29JA2v0u3vYzMfJzq','CMvZCg9UC2vtB2nRzxq','z2v0tw9KzwXZ','y29UC3vTzuv2zw50','y29UDgvUDa','v2vIu29JA2v0ignSB3nLzcbIzwzVCMuGB3bLBMLUzW','zw50CMLLCW','CMvZB2X2zq','zMLUAxnO','BwvZC2fNzuLK','y29TCgXLDgvwAwfdB25MAwD1CMvKu3vYzMfJzq','z2v0t3jdCMvHDgvszxnWB25ZzxntB2nRzxq','ChjVDg9JB2W','C2HVDwXKuhjLzMvYuMvZCg9UC2vZqxbP','mtaWEffkA0fO','Dg9VBf9JywXSCW','l3yXl21LC3nHz2vZ','B3bLBKfPrgvSzwDHDgu','CMvZCg9UC2uUCMvHC29UAw5Nx3n1Bw1HCNLFDgv4Dc5KB25L','y29TCgXLDgvwAwftDxjMywnL','D2vIu29JA2v0rMfJDg9YEq','B3v0Chv0vg9Rzw5Z','DxnLCI12AxnPyMXL','C2vZC2LVBI10B2TLBG','CMvZCg9UC2vjza','CMvHC29UAw5N','r2L0shvItw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5lcbHy2nLC3nuB2TLBIWGB3iGChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','C3vTBwfYEv90zxH0','yxnZAxn0yw50lq','y29TCgXLDgLVBL90B2TLBNm','y3jLyxrLu3rYzwfTugfYC2vY','Bwf4x2nVBNrLEhrFD2LUzg93x3rVA2vUCW','yw50AhjVCgLJrgvSzwDHDgu','zgvSDge','igrPzcbUB3qGChjVDMLKzsbHifDLyLnVy2TLDcbvuKWGB3iGCgf0Aa','t3bLBKfPtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','CMvZCg9UC2vZugf0Aa','B3bLBMfPuMvZCg9UC2vZuMvZCg9UC2vjza','B3bLBMfPlxjLC3bVBNnLCW','y29TCgXLDgvK','CMvXDwvZDhm','BM93','vw5ZDxbWB3j0zwqGr2L0shvIig1VzgvSihn1CMzHy2u6ia','Aw5KzxHpzG','BwvZC2fNzq','C291CMnL','oNjLyxnVBMLUzZOW','zgf0ytO','DgHLBG','u3vYzMfJzsa','CMvZCg9UC2u','C29JA2v0','BwvZC2fNzv9ZDgfYDa','C3vYzMfJzq','y2f0y2G','uMvZCg9UC2vZifDLyLnVy2TLDcbYzxf1zxn0igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','ChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','y2fWywjSzv9LBMrWB2LUDhm','v2vIu29JA2v0ihjLCxvLC3qGzMfPBgvK','y2HVAwnLCW','y2fWywjPBgL0AwvZ','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBKTLEq','B3bLBG','r0vu','yxv0Ag9YAxPHDgLVBG','ntu0otK0nezdBMzMBG','uMvZCg9UC2vZihn0CMvHBsbMywLSzwq','v2vIu29JA2v0ignSB3nLzcb3AxrOignVzguG','C3LZDgvT','CMvMDxnHBa','Dg9VBenHBgXpCMrLCG','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','C3rYzwfTshr0Cfn1CMzHy2u','ywjVCNrLza','zxzLBNq','B2jQzwn0','BgfZDfjLC3bVBNnLswq','t1bftG','yxbWBgLJyxrPB24VANnVBG','Dg9VBf91C2vFAwq','z2v0t3jdCMvHDgvszwfZB25PBMDjDgvT','ywnJzxnZvg9Rzw4','ChjLDMLVDxnszxnWB25ZzuLK','CMvZCg9UC2uUzMfPBgvK','zMv0y2G','ChjVEhK','C3rYzwfTv2vIu29JA2v0u3vYzMfJzq','rgLYzwn0igfUC3DLCJOG','CgfYC2u','Ahr0Cc1QC29U','y2HHDenVBxbSzxrL','Aw5JBhvKzxm','CMvHC29UAw5NugfYDhm','y3jLyxrLsgvHzgvYCW','AxrLBv9Pza','AxneB25L','zNvUy3rPB25Fy2fSBa','yM9KEq','ue9tva','mtq2mtmXnhvkD3vlva','CMvWBgfJzq','CgvUzgLUzW','Dg9bCgLfCNjVCG','mtGWsKryuK5c','z3b0ltrV','B21PDhrLza','Dg9VBf9Yzxn1Bhq','C2vZC2LVBKLK','AgfZ','zw5KCg9PBNrZ','Bw9KzwW','Dgv4DfbHCNrZ','yxn5BMnjDgvYyxrVCG','uMf0zsbSAw1PDcbLEgnLzwrLzc4GugXLyxnLihrYEsbHz2fPBIbSyxrLCI4','zgLZCgXHEq','CgfYC2vszxnWB25Zzq','y2fJAgvK','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzgvSDge','C3rHCNrZv2L0Aa','Bwv0Ag9K','DgvZDa','ywjVCNq','y2fSBeLKvg9pDxrWDxrjBMrLEa','B3v0Chv0x3rLEhq','zMLUywXszxnWB25Zzq','igrVzxmGBM90ihn1ChbVCNqGBM9Ulxn0CMvHBwLUzYbYzxnWB25Zzxm','CMvHC29UAw5Nx2nVBNrLBNq','l21VzgvSCW','y29TCgXLDgLVBL90B2TLBNnFzgv0ywLSCW','Bw9Kzq','z2L0AhvIqxbPvxjS','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzgvSDge','y29UDgvUDf9IBg9JAW','Dg9VBfvZzvn0yxj0rw1PDhrLza','zM9Yy2vgDwXSuMvWBgf5','ntyWntqYwgrsy3ry','C2vZC2LVBK1HBMfNzxi','vw5RBM93BIbTB2rLBcbZDxjMywnLoIa','CMvKywn0zwrFDgHPBMTPBMC','v2vIu29JA2v0','yxv0BW','y2HHDfn0CMvHBq','yw50AhjVCgLJqxnZAxn0yw50q29UDgvUDa','y2fSBf9Pza','l3jLC3bVBNnLCW','y29UDgvUDf9IBg9JA19ZDgfYDa','C2L6zq','DxnHz2u','yw50AhjVCgLJx3jLzgfJDgvKx3rOAw5RAw5N','DhjPBvn0yxj0','C3vTBwfYEv9PBMrLEa','y29UBMvJDf9MywLSzwq','qw50AhjVCgLJtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','C3rYzwfTu3vYzMfJzq','AxnbCNjHEq','z2v0qw50AhjVCgLJrgvSzwDHDgu','zMLUzfjLC3bVBNnLC1nVy2TLDenOzwnRCg9PBNq','ywDLBNq','BgvUz3rO','DhjPBq','C2LNBMfS','y29TCgXLDgvwAwfszxnWB25ZzxntDxjMywnL','zgvZy3jPChrPB24','zMXHDe1HCa','y3jLyxrLuMvXDwvZDa','DgvSzw1LDhj5','y29UDgvUDf9PBMrLEa','Aw5WDxrkC29U','CMvZB2X2zujHC2vvCMW','qxv0AgvUDgLJyxrPB24GzMfPBgvKlIbqBgvHC2uGy2HLy2SGEw91CIbbueKGA2v5lG','AgvHzgvYCW','C2XPy2u','BxnNlq','Ahr0Cc1ZC2u','B3bLBMfPlxjLC3bVBNnLCY13CW','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNmTC3rYzwfT','CMvHza','Aw1Hz2vFDxjS','CM9Szq','l2nOyxqVy29TCgXLDgLVBNm','odC1mdvMufnLB1a','CMvZCg9UC2uUy3jLyxrL','DgHPBMTPBMC','Dg9VBf91C2vFzgvSDge','y29TCgXLDgvwAwfszxnWB25ZzxnxzwjtB2nRzxrtDxjMywnL','AgvHzgvYuMvZB2X2zxi','C3rYzwfTvMLHu3vYzMfJzq','C3vTBwfYAxPLza','DxnLC1jLC3bVBNnLC0fWAq','Dg9VBc1JywXSlq','z2v0uMvHzgvY','y29Kzq','C2HVDwXKuMv0CNLszxnWB25ZzxntB2nRzxrszxf1zxn0','Dgv4Da','Ahr0Chm6lY9HCgKUyw50AhjVCgLJlMnVBq','qMvHCMvYia','ywnXDwLYzvjLC3bVBNnLC1nVy2TLDeXVy2S','zMv0y2HjBxbS','y29UDgvUDf9KzwX0yq','n2PYA2LoBq','zgf0yq','DNnJB2rLlZeUmta2lJe','ChjLCgfYzvjLC3bVBNnLC1nVy2TLDfjLCxvLC3q','uhjVDMLKzxiGCMvXDwvZDcbMywLSzwqGD2L0AcbZDgf0DxmG','yw50AhjVCgLJx3nPz25HDhvYzv9KzwX0yq','B3bLBMfPx3jLyxnVBMLUzW','yxbP','DMLZAwjPBgL0Eq','C3rYAw5N','C3vYzMfJzxm','CMvHC29UAw5Nx2rLDgfPBhm','DxrMltG','Aw50zxjSzwf2zwqTDgHPBMTPBMCTmJaYns0Wns0Xna','BhmGlwXH','C3rVCfjLyxnVBG','zMLSDgvY','B3jPz2LUlxrYywnRzxi','y29UBMvJDgLUzW','C3vTBwfYEuj5sw5KzxG','C2vUza','D3nZoG','zxzLBNq6','vw5RBM93BIbWCM92AwrLCIbLCNjVCG','BwfYA01VzgvSqxnszxnWB25ZzxnpBMX5','Aw5WDxrFDg9Rzw5Z','Dg9VBhm','y29UDgvUDc10ExbL','C3rYAw5NAwz5','Dg9Rzw4','BwfW','yw50AhjVCgLJlw1LC3nHz2vZlxn0CMvHBq','zNvUy3rPB24','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzg9Uzq','BMfTzq','BNvTyMvY','yMfZzty0','ChjVDMLKzxjtDgf0zq','zNjVBq','zwrPDg9YvMvYC2LVBG','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','yxbPs2v5','w0rptKvD','C2vUzeH0DhbtDxjMywnLuMvXDwvZDa','CMvZCc0','zxjYB3i','y2HHDgnTCgWT','CMvXDwvZDa','Ahr0Chm6lY9HCgKUB3bLBMfPlMnVBs92mq','A2LUza','Aw5JBhvKzunVBNrLBNruExbL','y3jLyxrLtwLZC2LUz0nYzwrLBNrPywXfCNjVCG','y29TCgXLDgvwAwfsB3v0zxi','CMvHC29UAw5Nx3rLEhq','zw5HyMXLza','BgLTAxrZ','C3rHDhvZ','C3rHDhvZvgv4Da','C2vUzfjHD1jLCxvLC3q','CMvHC29UAw5Nx3rVA2vUCW','C3rYzwfTvMLHuMvZCg9UC2vZu3vYzMfJzq','CMvZCg9UC2vuzxH0ugfYDhm','yw50AhjVCgLJlxzLCNnPB24','Dgv4Dc9LDMvUDc1ZDhjLyw0','yw50AhjVCgLJlw1LC3nHz2vZ','z2v0u3vYzMfJzq','B2f1DgGTDg9Rzw4','ntqZmteWne9lsg9OCG','ywrKrxzLBNrmAxn0zw5LCG','t3bLBKfPqxbPrxjYB3i','t3bLBKfjiefqssbLCNjVCIa','Cgf0Aa'];_0xa677=function(){return _0x15fd3a;};return _0xa677();}function createHeaders(_0x520f51){const _0xec5f1c={_0x22b6aa:0x297,_0x3cb0b5:0x303},_0xf71c57={_0x2c58ff:0xbb,_0x2ea722:0xc8},_0xbf0b10={_0x3dee48:0x104,_0x3cd169:0x73};function _0x3e798d(_0x23b218,_0x4d7fa4,_0x28cdc4,_0x28974c){return _0x4abdca(_0x23b218-_0xbf0b10._0x3dee48,_0x28cdc4- -0x178,_0x28cdc4-_0xbf0b10._0x3cd169,_0x4d7fa4);}const _0x2c42bc=new Headers();function _0x200968(_0x4b74ad,_0x5598b0,_0x2b13ec,_0x5180f6){return _0x3921cc(_0x4b74ad-0x46,_0x5598b0- -_0xf71c57._0x2c58ff,_0x5180f6,_0x5180f6-_0xf71c57._0x2ea722);}for(const [_0x9d48d3,_0x4a6877]of Object[_0x3e798d(_0xec5f1c._0x22b6aa,_0xec5f1c._0x3cb0b5,0x34d,0x2af)](_0x520f51)){_0x2c42bc[_0x200968(0x1d3,0x1f4,0x133,0x2b8)](_0x9d48d3,_0x4a6877);}return _0x2c42bc;}async function fetchRawResponse(_0x14e1ef){const _0x958854={_0xacf670:0xcb,_0x2f9d68:0x61,_0x493663:0x30,_0x500fe7:0x13,_0x657bf5:0x47,_0x3a3987:0x9e,_0x59205e:0xb,_0x198547:0xaf,_0x4b761c:0x55,_0x36a541:0x130,_0x4dd484:0x1a3,_0x5e84a6:0x198,_0x2533dd:0x8f},_0x19d915=_0x14e1ef[_0x2f0cca(-0xf,-_0x958854._0xacf670,-_0x958854._0x2f9d68,-0xeb)]??globalThis[_0x2f0cca(-0x51,-_0x958854._0x493663,-0x61,_0x958854._0x500fe7)];function _0x2f0cca(_0x306b3e,_0x156d7e,_0x4f5790,_0xd51620){return _0x3921cc(_0x306b3e-0x8,_0x4f5790- -0x3d5,_0x156d7e,_0xd51620-0xb0);}function _0x49fd9a(_0x19c59b,_0x253b38,_0x1b70ba,_0x19f6ff){return _0x3921cc(_0x19c59b-0x1e3,_0x19f6ff- -0x1e9,_0x253b38,_0x19f6ff-0x88);}return _0x19d915(_0x14e1ef[_0x2f0cca(-0x1c5,-0x192,-0x104,-_0x958854._0x657bf5)],{'method':'POST','headers':createHeaders(_0x14e1ef[_0x2f0cca(-_0x958854._0x3a3987,-0xba,-_0x958854._0x59205e,_0x958854._0x198547)]),'body':JSON[_0x2f0cca(0x3c,-0x8a,0x2e,_0x958854._0x4b761c)](_0x14e1ef[_0x49fd9a(_0x958854._0x36a541,_0x958854._0x4dd484,0xdd,_0x958854._0x5e84a6)]),'signal':_0x14e1ef[_0x2f0cca(-0x54,0x1a,-0x15,_0x958854._0x2533dd)]});}async function fetchJsonResponse(_0x2df744){const _0x37d73c={_0x485a0e:0xdb,_0x440a98:0x104,_0xf2b9c4:0x547,_0x20fbf4:0x5ac},_0x4bed16={_0x6f6baf:0x1b8},_0x3ecdf2={_0x49e00f:0x50,_0x150331:0x132},_0x2510f1=await fetchRawResponse(_0x2df744);function _0x31c28d(_0x4d4e91,_0x4ac0c0,_0x27e945,_0x22f2d0){return _0x4abdca(_0x4d4e91-_0x3ecdf2._0x49e00f,_0x27e945-_0x3ecdf2._0x150331,_0x27e945-0x36,_0x4ac0c0);}if(!_0x2510f1['ok']){const _0x1a0929=await _0x2510f1[_0x2e69d3(-_0x37d73c._0x485a0e,-0x1a,-0x63,-_0x37d73c._0x440a98)](),_0x326932=_0x1a0929['trim']()||_0x2510f1['statusText']||'Unknown\x20provider\x20error';throw new Error('Provider\x20request\x20failed\x20with\x20status\x20'+_0x2510f1['status']+':\x20'+_0x326932);}function _0x2e69d3(_0xf317b0,_0x5baf85,_0x143f88,_0x112b3d){return _0x4abdca(_0xf317b0-_0x4bed16._0x6f6baf,_0xf317b0- -0x65c,_0x143f88-0x13d,_0x143f88);}return await _0x2510f1[_0x31c28d(_0x37d73c._0xf2b9c4,0x4fc,_0x37d73c._0x20fbf4,0x5dc)]();}function findLastMessage(_0x3e1fc5,_0x30092a){const _0x42e358={_0x2fb6f9:0x5a9,_0x305157:0x5a9,_0x28039f:0x467,_0x24e01e:0x51a},_0x43ec06={_0x370f18:0x18,_0x41efeb:0x58},_0x1b5d56={_0x18b8eb:0x14,_0x25274f:0x1d9};function _0x5606e6(_0x4794ed,_0x21ece2,_0x3a66d6,_0x27e44e){return _0x3921cc(_0x4794ed-_0x1b5d56._0x18b8eb,_0x21ece2-0x17d,_0x4794ed,_0x27e44e-_0x1b5d56._0x25274f);}for(let _0x425d3b=_0x3e1fc5[_0x532f4c(_0x42e358._0x2fb6f9,_0x42e358._0x305157,0x506,_0x42e358._0x28039f)]-0x1;_0x425d3b>=0x0;_0x425d3b-=0x1){if(_0x3e1fc5[_0x425d3b][_0x532f4c(0x543,0x50e,_0x42e358._0x24e01e,0x51f)]===_0x30092a)return _0x3e1fc5[_0x425d3b];}function _0x532f4c(_0x49a683,_0x1eba2b,_0x1557e2,_0x151ebf){return _0x4abdca(_0x49a683-_0x43ec06._0x370f18,_0x1557e2- -_0x43ec06._0x41efeb,_0x1557e2-0x4b,_0x49a683);}return void 0x0;}function hasTool(_0xc31d61,_0x1962ff){const _0x2c5e93={_0x31381c:0x379,_0x52f57a:0x297,_0x4250ab:0x32f},_0x5ee38f={_0x44713a:0x55},_0x12fed2={_0x4947d9:0xc1,_0x2c4f9a:0x145};function _0x27d701(_0x5e8281,_0x4f3528,_0xeeff4c,_0xec3e4){return _0x3921cc(_0x5e8281-_0x12fed2._0x4947d9,_0xeeff4c- -0x36,_0xec3e4,_0xec3e4-_0x12fed2._0x2c4f9a);}function _0x21a4b7(_0x347a99,_0x5525ff,_0x539708,_0x1ff4c9){return _0x4abdca(_0x347a99-0xc3,_0x539708- -0x17b,_0x539708-_0x5ee38f._0x44713a,_0x1ff4c9);}return _0xc31d61[_0x27d701(0x317,0x33a,0x3cb,_0x2c5e93._0x31381c)][_0x21a4b7(_0x2c5e93._0x52f57a,0x2a8,_0x2c5e93._0x4250ab,0x3b8)](_0x55d40e=>_0x55d40e[_0x27d701(0x3c6,0x352,0x3d3,0x425)]===_0x1962ff);}function createMockResponse(_0x33e3bb,_0x5e9173,_0x3547de,_0x170452){return{'id':_0x33e3bb,'content':_0x5e9173,'stopReason':_0x3547de,'usage':_0x170452};}var MockModel=class{[_0x3921cc(0x2f8,0x38e,0x3bb,0x3d1)];[_0x4abdca(0x50b,0x4be,0x4d1,0x57b)];[_0x4abdca(0x586,0x4e7,0x4ef,0x47c)]=[];[_0x3921cc(0x3d1,0x338,0x38e,0x36e)];constructor(_0xfcc2a0={}){const _0x52c7c7={_0x585cc4:0x14e,_0x4647c3:0x132,_0x47d241:0x185,_0x2c1ba6:0x1f6,_0x56b2f6:0x201,_0x2a80fa:0x173,_0x482a2a:0x136,_0x2902d0:0x1f5,_0x3d94bf:0x632,_0x5abb8e:0x541,_0x177ad0:0x5a0,_0x526ce7:0x51b},_0x2235d0={_0x2cfa73:0x1f1,_0x5a025b:0x1c5},_0x237cbf={_0x429fa8:0xc8};function _0x7aef14(_0x5b2fbc,_0x55b31e,_0x2c38f8,_0x318921){return _0x4abdca(_0x5b2fbc-0xc6,_0x2c38f8-_0x237cbf._0x429fa8,_0x2c38f8-0x175,_0x318921);}this['model']=_0xfcc2a0[_0xdcb130(0x129,0x147,0x1c9,_0x52c7c7._0x585cc4)]??'mock',this[_0xdcb130(_0x52c7c7._0x4647c3,_0x52c7c7._0x47d241,0x159,_0x52c7c7._0x2c1ba6)]=_0xfcc2a0['maxTokens']??0x4000;function _0xdcb130(_0x5cc41d,_0x744e48,_0x34ed66,_0x2dbb35){return _0x3921cc(_0x5cc41d-_0x2235d0._0x2cfa73,_0x34ed66- -_0x2235d0._0x5a025b,_0x744e48,_0x2dbb35-0x2a);}this[_0xdcb130(0xc2,_0x52c7c7._0x56b2f6,_0x52c7c7._0x2a80fa,_0x52c7c7._0x482a2a)]=_0xfcc2a0[_0xdcb130(0xff,0x1ae,0x173,_0x52c7c7._0x2902d0)]?structuredClone(_0xfcc2a0[_0x7aef14(_0x52c7c7._0x3d94bf,_0x52c7c7._0x5abb8e,_0x52c7c7._0x177ad0,_0x52c7c7._0x526ce7)]):void 0x0;}async[_0x3921cc(0x24a,0x30f,0x29c,0x32c)](_0x328f5b,_0x10df0d){const _0x1ac3d2={_0x4b85ed:0x62,_0x32200e:0x171,_0x12eaf1:0x208,_0x77d99f:0x205,_0x1b1c77:0x100,_0x3a9338:0x105,_0x56bea3:0x100,_0x1bd4fb:0x13d,_0x10539a:0x12e,_0xfc3a32:0x159,_0x3b84b9:0x8c,_0x58a22f:0x143,_0x3d462c:0x54,_0x492213:0x21,_0x24948e:0xce,_0x514306:0x268,_0x410d2f:0x1a5,_0x327905:0x1dd,_0x84f9fa:0xcb,_0x4efd6e:0x272,_0x35df2c:0x2a5,_0x2781db:0x4a,_0x1763e4:0x56,_0x379e7c:0x40,_0x290d20:0x263,_0x29533e:0x1d7,_0x37fd42:0xcf,_0x3c7035:0x14,_0x2030b1:0xbe,_0x8273f:0x250,_0x32d625:0x1fa,_0x28a916:0x20e},_0x4688af={_0x16848a:0x1ce,_0x3d832d:0x38},_0x408758={_0x297fd9:0x19b,_0x59b4b5:0x4ec,_0x557901:0xf5},_0x2b0fcd={...structuredClone(_0x328f5b),..._0x328f5b['reasoning']===void 0x0&&this[_0xbab5b8(-0x1a8,-0x195,-_0x1ac3d2._0x4b85ed,-0xfd)]!==void 0x0?{'reasoning':structuredClone(this[_0xbab5b8(-0x121,-0x6c,-0x7d,-0xfd)])}:{}};this[_0xbab5b8(-0x28,-_0x1ac3d2._0x32200e,-0x193,-0xee)][_0x13e21c(-0x1cc,-0x21d,-_0x1ac3d2._0x12eaf1,-0x258)](_0x2b0fcd);function _0x13e21c(_0x19919b,_0x5dd544,_0x1dad1c,_0x1d26c0){return _0x3921cc(_0x19919b-_0x408758._0x297fd9,_0x1dad1c- -_0x408758._0x59b4b5,_0x1d26c0,_0x1d26c0-_0x408758._0x557901);}const _0x2b1fa2=findLastMessage(_0x2b0fcd['messages'],_0xbab5b8(-0x129,-0xf1,-_0x1ac3d2._0x77d99f,-0x173));function _0xbab5b8(_0x389d9c,_0x4c59db,_0x562f01,_0x2b7f8b){return _0x4abdca(_0x389d9c-_0x4688af._0x16848a,_0x2b7f8b- -0x5d5,_0x562f01-_0x4688af._0x3d832d,_0x389d9c);}const _0x3c1f85=getToolResultBlocks(_0x2b1fa2),_0x3c1ac4=_0x13e21c(-_0x1ac3d2._0x1b1c77,-_0x1ac3d2._0x3a9338,-0x1b1,-_0x1ac3d2._0x56bea3)+this[_0x13e21c(-_0x1ac3d2._0x1bd4fb,-0x183,-0x1a5,-0x239)][_0x13e21c(-0x193,-0x84,-_0x1ac3d2._0x10539a,-0x1d9)];if(_0x3c1f85['length']>0x0)return createMockResponse(_0x3c1ac4,[{'type':_0x13e21c(-0xab,-0xe1,-0x10b,-0x58),'text':'I\x20checked\x20the\x20mocked\x20tool\x20result.\x20'+_0x3c1f85[0x0]['content']}],_0x13e21c(-_0x1ac3d2._0xfc3a32,-0x205,-0x1fa,-0x140),{'inputTokens':0x78,'outputTokens':0x28});const _0x2cb7ef=getTextFromMessage(_0x2b1fa2);if(/list .*files|workspace/i[_0xbab5b8(-0x160,-0xe7,-_0x1ac3d2._0x3b84b9,-0x9d)](_0x2cb7ef)&&hasTool(_0x2b0fcd,_0x13e21c(-0x26e,-0x23e,-0x1f8,-_0x1ac3d2._0x58a22f)))return createMockResponse(_0x3c1ac4,[{'type':'tool_use','id':_0xbab5b8(-_0x1ac3d2._0x3d462c,_0x1ac3d2._0x492213,-_0x1ac3d2._0x24948e,-0x58)+this[_0x13e21c(-0x140,-_0x1ac3d2._0x514306,-_0x1ac3d2._0x410d2f,-_0x1ac3d2._0x327905)][_0xbab5b8(-0xdf,-_0x1ac3d2._0x84f9fa,-0x68,-0x77)],'name':_0x13e21c(-0x13f,-_0x1ac3d2._0x4efd6e,-0x1f8,-_0x1ac3d2._0x35df2c),'input':{'command':_0xbab5b8(-_0x1ac3d2._0x2781db,_0x1ac3d2._0x1763e4,-0xbc,-_0x1ac3d2._0x379e7c)}}],_0x13e21c(-_0x1ac3d2._0x290d20,-_0x1ac3d2._0x29533e,-0x1d2,-0x1ef),{'inputTokens':0x6e,'outputTokens':0x1c});return createMockResponse(_0x3c1ac4,[{'type':_0xbab5b8(-0x74,-_0x1ac3d2._0x37fd42,-0x2a,-0x54),'text':_0xbab5b8(-0x36,-_0x1ac3d2._0x3c7035,-0x10e,-_0x1ac3d2._0x2030b1)+_0x2cb7ef}],_0x13e21c(-0x13f,-_0x1ac3d2._0x8273f,-_0x1ac3d2._0x32d625,-_0x1ac3d2._0x28a916),{'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};
|