@nuvin/agent-core 0.0.0-rc.17 → 0.0.0-rc.18
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 +4 -2
- package/dist/agent/index.js +1 -1
- package/dist/chunk-FFIZ6TKW.js +1 -1
- package/dist/chunk-HRU363DY.js +1 -0
- package/dist/chunk-NHBKADBW.js +1 -0
- package/dist/chunk-NYZR4XKO.js +1 -1
- package/dist/chunk-QDOE7NWO.js +1 -0
- package/dist/chunk-X7VAACWY.js +1 -1
- package/dist/formats/index.d.ts +2 -2
- package/dist/formats/index.js +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/models/index.d.ts +53 -4
- package/dist/models/index.js +1 -1
- package/dist/{provider-adapters-Bupd2RBH.d.ts → provider-adapters-D1hQNeFc.d.ts} +1 -1
- package/dist/shared/index.d.ts +2 -2
- package/dist/shared/index.js +1 -1
- package/dist/tools/index.d.ts +3 -2
- package/dist/tools/index.js +1 -1
- package/dist/{types-3UUDPpJs.d.ts → types-11Znykt2.d.ts} +11 -1
- package/package.json +1 -1
- package/dist/chunk-SEP4YYY3.js +0 -1
- package/dist/chunk-T7UKN6FZ.js +0 -1
- package/dist/chunk-WHYFEBOU.js +0 -1
package/dist/models/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x11bfe5,_0x53fa8c){const _0x4aead0={_0x391e5c:0x5e6,_0x44cb59:0x536,_0x1ca908:0x6bd,_0xf583c2:0x616,_0x3fcde7:0x4d0,_0x285459:0x44f,_0x42ad16:0x4bf,_0x17d267:0x627,_0x2a088:0x626,_0x13014c:0x525,_0x337202:0x5d0,_0x5f9823:0x606,_0x24f4b1:0x677,_0x1711b1:0x66e,_0x403ac0:0x5aa,_0x2307dc:0x639,_0x249b83:0x61c},_0x1251f3={_0xff0ef6:0x1c6};function _0x2eb8e9(_0x1e71f6,_0x13f779,_0x31afc5,_0x387c80){return _0x17ab(_0x1e71f6-0x3a5,_0x387c80);}const _0x13858a=_0x11bfe5();function _0x51e309(_0x1b248a,_0x4b46ed,_0x30f1ee,_0xbaf5ad){return _0x17ab(_0xbaf5ad-_0x1251f3._0xff0ef6,_0x30f1ee);}while(!![]){try{const _0x3a3d83=parseInt(_0x2eb8e9(_0x4aead0._0x391e5c,0x5f9,_0x4aead0._0x44cb59,0x581))/0x1+parseInt(_0x2eb8e9(_0x4aead0._0x1ca908,_0x4aead0._0xf583c2,0x77b,0x753))/0x2*(parseInt(_0x51e309(_0x4aead0._0x3fcde7,_0x4aead0._0x285459,_0x4aead0._0x42ad16,0x511))/0x3)+parseInt(_0x2eb8e9(0x560,_0x4aead0._0x17d267,_0x4aead0._0x2a088,_0x4aead0._0x13014c))/0x4+-parseInt(_0x2eb8e9(_0x4aead0._0x337202,0x63b,_0x4aead0._0x5f9823,0x519))/0x5+parseInt(_0x2eb8e9(_0x4aead0._0x24f4b1,0x71a,0x5a3,0x69e))/0x6+-parseInt(_0x51e309(0x43c,0x2b7,0x297,0x35d))/0x7+-parseInt(_0x2eb8e9(_0x4aead0._0x1711b1,_0x4aead0._0x403ac0,_0x4aead0._0x2307dc,_0x4aead0._0x249b83))/0x8;if(_0x3a3d83===_0x53fa8c)break;else _0x13858a['push'](_0x13858a['shift']());}catch(_0xc315ff){_0x13858a['push'](_0x13858a['shift']());}}}(_0x266c,0xa0a71));import{toOpenAiResponsesRequest}from'../chunk-T7UKN6FZ.js';import{resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig}from'../chunk-NYZR4XKO.js';import{getTextFromMessage,getToolResultBlocks,normalizeContent,toChatRequest,toModelRequest,toProviderModelRequest}from'../chunk-SEP4YYY3.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';var ProviderRequestConstructionError=class extends Error{constructor(_0x46530e){const _0x2c630f={_0x5c813a:0x10e,_0x5e3f1c:0x149,_0x40dd93:0x317,_0x90aa2b:0x2d4,_0x14712a:0x297};function _0xec3780(_0x160fe1,_0x226346,_0x21e1b7,_0x1e291b){return _0x17ab(_0x1e291b- -0x7f,_0x160fe1);}super(_0x46530e);function _0x327538(_0x27652d,_0xcb3761,_0x49c6b7,_0x36e279){return _0x17ab(_0x27652d- -0xa3,_0x36e279);}this[_0x327538(0x134,_0x2c630f._0x5c813a,0x155,_0x2c630f._0x5e3f1c)]=_0xec3780(_0x2c630f._0x40dd93,_0x2c630f._0x90aa2b,0x366,_0x2c630f._0x14712a);}},ProviderStreamEventError=class extends Error{[_0x532739(-0x246,-0x1dc,-0x223,-0x11d)];[_0x22e674(0x3c9,0x38c,0x378,0x422)];[_0x532739(-0xab,-0x10d,-0xdb,-0x149)];constructor(_0x2f4cc0,_0x298fdb={}){const _0x459487={_0x4179ae:0x170,_0x2e33d5:0xe9,_0x3a129f:0x516,_0x4933d2:0x4e8,_0x476630:0x54d,_0x174cfb:0x589},_0x3e7a85={_0x3eec7d:0x18a,_0x53ece6:0xcc,_0x5b1615:0x12b},_0x3b82ff={_0xd1e9d6:0x19e,_0x112f00:0x4b7};super(_0x2f4cc0),this['name']=_0x14ed75(0x25,-0x14,-0xa9,-0x31),this[_0x14ed75(-_0x459487._0x4179ae,-_0x459487._0x2e33d5,-0x1f6,-0x191)]=_0x298fdb[_0x49d76(0x451,_0x459487._0x3a129f,0x452,_0x459487._0x4933d2)];function _0x14ed75(_0x3e1c27,_0x5b4481,_0x3d17b4,_0x368afa){return _0x22e674(_0x3e1c27-_0x3b82ff._0xd1e9d6,_0x5b4481-0x86,_0x5b4481,_0x368afa- -_0x3b82ff._0x112f00);}function _0x49d76(_0x41ea70,_0x321d22,_0x5df546,_0x318ef9){return _0x22e674(_0x41ea70-_0x3e7a85._0x3eec7d,_0x321d22-_0x3e7a85._0x53ece6,_0x321d22,_0x41ea70-_0x3e7a85._0x5b1615);}this['retryable']=_0x298fdb[_0x49d76(_0x459487._0x476630,_0x459487._0x174cfb,0x503,0x5c7)]??!![],this['status']=_0x298fdb['status'];}};function isRetryableProviderStreamEventError(_0xe1b1b1){return _0xe1b1b1 instanceof ProviderStreamEventError&&_0xe1b1b1['retryable'];}var ANTHROPIC_MESSAGES_SURFACE=_0x22e674(0x4df,0x54a,0x449,0x47f),ANTHROPIC_MESSAGES_STREAM_SURFACE=_0x532739(-0xc0,-0x104,-0x1da,-0xd2);function parseToolInput(_0x2fc6e9){const _0x168724={_0x31d211:0x33a,_0x5cdd40:0x2c5},_0x62ee26={_0x1eaa75:0x6d,_0x29cc85:0x1c8};function _0x3029f1(_0x2bf850,_0x26dd7d,_0x29f5e1,_0x13ab86){return _0x22e674(_0x2bf850-_0x62ee26._0x1eaa75,_0x26dd7d-_0x62ee26._0x29cc85,_0x29f5e1,_0x26dd7d- -0xf9);}try{return JSON[_0x3029f1(_0x168724._0x31d211,0x313,_0x168724._0x5cdd40,0x2cb)](_0x2fc6e9);}catch{return _0x2fc6e9;}}function resolveReasoningVisibility(_0xeba392){const _0x2d2063={_0x19b455:0x3b7,_0x3d2325:0x396},_0x23e939={_0x22feb3:0x6d},_0x1310a8={_0x4848f1:0x1f3,_0x58e7c5:0x112};function _0x5d7c0c(_0x5986fe,_0x2ef202,_0x3266f3,_0x8f3e9a){return _0x532739(_0x2ef202,_0x3266f3-0x586,_0x3266f3-_0x1310a8._0x4848f1,_0x8f3e9a-_0x1310a8._0x58e7c5);}function _0x141c3f(_0x2970cc,_0x271971,_0x1b6a3e,_0x284a0c){return _0x22e674(_0x2970cc-_0x23e939._0x22feb3,_0x271971-0x152,_0x284a0c,_0x271971-0x1ae);}return _0xeba392['reasoning']?.[_0x5d7c0c(_0x2d2063._0x19b455,0x3b0,_0x2d2063._0x3d2325,0x2f5)]??_0x141c3f(0x56b,0x5f3,0x68d,0x679);}function isUserVisibleThinking(_0x117730){const _0xbf343f={_0x2ab7da:0x575,_0x9a0749:0x5b0,_0x2c113d:0x54b,_0x610344:0x483,_0x2e36a7:0x537,_0x82a8c3:0x60e},_0x223900={_0x2e11f6:0x66,_0x11fe4:0x136,_0x114aa4:0x1e8},_0x5e9d0d={_0x1c0165:0x252};function _0x3343b5(_0x1d6189,_0x3e92d1,_0x1868e4,_0x2c9b83){return _0x22e674(_0x1d6189-0x180,_0x3e92d1-0x138,_0x2c9b83,_0x1d6189- -_0x5e9d0d._0x1c0165);}const _0x3a4863=resolveAnthropicThinkingConfig(_0x117730[_0x347b1c(_0xbf343f._0x2ab7da,_0xbf343f._0x9a0749,_0xbf343f._0x2c113d,_0xbf343f._0x610344)]);function _0x347b1c(_0x4332af,_0x2c7372,_0x23d636,_0x5f4d6e){return _0x22e674(_0x4332af-_0x223900._0x2e11f6,_0x2c7372-_0x223900._0x11fe4,_0x2c7372,_0x23d636-_0x223900._0x114aa4);}return _0x3a4863!==void 0x0&&_0x3a4863[_0x347b1c(0x5bc,0x522,0x5a8,_0xbf343f._0x2e36a7)]!=='disabled'&&resolveReasoningVisibility(_0x117730)===_0x347b1c(0x64d,_0xbf343f._0x82a8c3,0x62d,0x709);}function createAnthropicThinkingBody(_0x5e7800){const _0x2427ff={_0x87fd1d:0x38,_0x1c980b:0x1d,_0x7a504f:0x22f,_0x533944:0x18d,_0x1a76a0:0x151,_0x597c58:0x1ff,_0x571ec8:0x22b,_0x55b40b:0x1bc,_0xb2240c:0xed,_0x1d409c:0x1d9,_0x1bc2d6:0x60,_0x4d1e66:0x23,_0x2cf91e:0x8b,_0x454532:0x12,_0x526e71:0x1a7,_0x2e7ce7:0xec,_0x1c17cc:0x169,_0x30a746:0x2fd,_0xb1f347:0x238,_0x4ffa55:0x21b,_0x362c44:0x27c},_0x59f54d={_0x29f582:0x132,_0x3f03ef:0x114},_0x1e872f={_0x18e312:0x1c7},_0x587188=resolveAnthropicThinkingConfig(_0x5e7800[_0x1f0dab(0x6e,-0x3a,_0x2427ff._0x87fd1d,-_0x2427ff._0x1c980b)]);if(!_0x587188||_0x587188['type']===_0x3baa56(_0x2427ff._0x7a504f,_0x2427ff._0x533944,0x227,_0x2427ff._0x1a76a0))return{};function _0x3baa56(_0x4a98b3,_0xcdeded,_0xa04822,_0x53c719){return _0x22e674(_0x4a98b3-0x7a,_0xcdeded-_0x1e872f._0x18e312,_0x53c719,_0xa04822- -0x28a);}const _0x59d80d=_0x587188['display']??(isUserVisibleThinking(_0x5e7800)?_0x3baa56(0x2ca,0x126,_0x2427ff._0x597c58,0x11a):_0x3baa56(_0x2427ff._0x571ec8,0x248,_0x2427ff._0x55b40b,_0x2427ff._0xb2240c));function _0x1f0dab(_0x1c737a,_0x32d6b2,_0x17e41d,_0x2ca1ec){return _0x532739(_0x2ca1ec,_0x32d6b2-0x165,_0x17e41d-_0x59f54d._0x29f582,_0x2ca1ec-_0x59f54d._0x3f03ef);}const _0xf0f6bd=_0x587188[_0x3baa56(0x1c2,_0x2427ff._0x1d409c,0x146,0xb8)]?{'anthropic-beta':'interleaved-thinking-2025-05-14'}:void 0x0;if(_0x587188[_0x1f0dab(_0x2427ff._0x1bc2d6,_0x2427ff._0x4d1e66,-_0x2427ff._0x2cf91e,0x91)]==='enabled')return{..._0xf0f6bd?{'headers':_0xf0f6bd}:{},'thinking':{'type':_0x1f0dab(-_0x2427ff._0x454532,0xae,0xa2,0x156),'budget_tokens':_0x587188[_0x1f0dab(0xcf,0x19,0x0,-0xf)],'display':_0x59d80d}};return{..._0xf0f6bd?{'headers':_0xf0f6bd}:{},'thinking':{'type':_0x1f0dab(_0x2427ff._0x526e71,0xd6,_0x2427ff._0x2e7ce7,_0x2427ff._0x1c17cc),..._0x587188[_0x3baa56(_0x2427ff._0x30a746,_0x2427ff._0xb1f347,_0x2427ff._0x4ffa55,0x211)]?{'effort':_0x587188[_0x3baa56(0x292,0x142,_0x2427ff._0x4ffa55,_0x2427ff._0x362c44)]}:{},'display':_0x59d80d}};}function toAnthropicRequestContent(_0x1d7ced){const _0x4be118={_0x4ce662:0x67,_0x36e789:0x22,_0x1934dc:0x38,_0x434586:0x148,_0x244356:0x180,_0x333eeb:0x23d,_0x53f865:0x16,_0x16111b:0xf0,_0x3d67bc:0x17b,_0x3607ad:0x21e,_0x4b6218:0x158,_0x5da4a7:0x23a,_0x3027c5:0x195,_0x3e0c62:0x26e,_0x34ab70:0x42,_0x2b2e2d:0x48,_0xbe9296:0x100,_0x3abe17:0x41,_0x4a54f7:0x4d,_0x2cbe53:0x48,_0x1f6f29:0x53,_0x395a6b:0x19,_0x4cd8dc:0x8,_0x10251b:0x75,_0x1c17e5:0x82,_0x2370b4:0x205,_0x55629d:0x293,_0x1a72a8:0x30,_0x5470ab:0x215,_0x57165f:0x186,_0x2d5931:0x129,_0x468f71:0x1fc,_0x41b62e:0xa9,_0xe24efc:0xa6,_0x4bb369:0xc4,_0x3a19ca:0x3f,_0x350a3e:0xd6},_0xc21335={_0x55369f:0x44,_0x4ca112:0x127},_0x45528d={_0x175c2c:0x41,_0x2ea2b4:0x408};if(_0x1d7ced[_0x282408(_0x4be118._0x4ce662,_0x4be118._0x36e789,0x7a,-_0x4be118._0x1934dc)]===_0x69c75b(-_0x4be118._0x434586,-_0x4be118._0x244356,-_0x4be118._0x333eeb,-0x16f)&&_0x1d7ced[_0x282408(-_0x4be118._0x53f865,-_0x4be118._0x16111b,-_0x4be118._0x3d67bc,-0x1ca)]?.[_0x69c75b(-_0x4be118._0x3607ad,-0x208,-_0x4be118._0x4b6218,-_0x4be118._0x5da4a7)])return structuredClone(_0x1d7ced[_0x69c75b(-0x2fb,-0x22e,-_0x4be118._0x3027c5,-0x21d)][_0x69c75b(-0x12a,-0x208,-0x235,-_0x4be118._0x3e0c62)]);function _0x282408(_0x3d03c7,_0x47c716,_0x3cc25e,_0x26b962){return _0x22e674(_0x3d03c7-0x9d,_0x47c716-_0x45528d._0x175c2c,_0x3d03c7,_0x47c716- -_0x45528d._0x2ea2b4);}const _0x11bd15=[];function _0x69c75b(_0x464c0f,_0x3f2d56,_0x3e88f8,_0x45034c){return _0x532739(_0x3e88f8,_0x3f2d56- -_0xc21335._0x55369f,_0x3e88f8-_0xc21335._0x4ca112,_0x45034c-0xe4);}for(const _0x144f5f of normalizeContent(_0x1d7ced[_0x282408(0xab,_0x4be118._0x34ab70,0x7d,0xb)])){if(_0x144f5f[_0x282408(-0x54,-_0x4be118._0x2b2e2d,-_0x4be118._0xbe9296,-0x1)]===_0x282408(-_0x4be118._0x3abe17,_0x4be118._0x4a54f7,0x10c,0x39))continue;if(_0x144f5f[_0x282408(-0xe8,-_0x4be118._0x2cbe53,-_0x4be118._0x1f6f29,_0x4be118._0x395a6b)]===_0x282408(0x1c,_0x4be118._0x4cd8dc,_0x4be118._0x10251b,_0x4be118._0x1c17e5)){_0x11bd15['push']({'type':_0x69c75b(-0x224,-_0x4be118._0x2370b4,-0x215,-_0x4be118._0x55629d),'thinking':_0x144f5f['thinking'],'signature':_0x144f5f[_0x69c75b(-0x124,-0xc5,-0x42,-_0x4be118._0x1a72a8)]});continue;}if(_0x144f5f[_0x69c75b(-_0x4be118._0x5470ab,-_0x4be118._0x57165f,-0xf6,-0x12e)]==='anthropic_redacted_thinking'){_0x11bd15[_0x69c75b(-0x1e1,-0x1ac,-_0x4be118._0x2d5931,-_0x4be118._0x468f71)]({'type':_0x282408(-_0x4be118._0x41b62e,-_0x4be118._0xe24efc,-_0x4be118._0x4bb369,-_0x4be118._0x3a19ca),'data':_0x144f5f['data']});continue;}_0x11bd15[_0x282408(-_0x4be118._0x350a3e,-0x6e,0x27,0x1e)](structuredClone(_0x144f5f));}return _0x11bd15;}function createAnthropicRequest(_0x535474,_0x40d8e7){const _0x4f8125={_0x5838ea:0x241,_0xf2690d:0x1ab,_0xc3dd1e:0x1be,_0x1f5d41:0x366,_0x43f2a8:0x223,_0x4bc0f8:0x1b5,_0x5e8432:0x1c8,_0x51f22e:0x1e2,_0x374547:0xf8,_0x39e5e4:0xb4,_0x1a69de:0x2cc,_0x3f74e6:0x22c,_0x19e9e8:0x30a,_0x5d76da:0x29d,_0x4c7e50:0x2c5},_0x9feba7={_0x3c628e:0x30,_0x3d110d:0x113},_0x2b08f6={_0x2aaf06:0x198},_0x110813=toProviderModelRequest(_0x535474),_0xa11d10=createAnthropicThinkingBody(_0x535474);function _0xe4ea80(_0x46c02e,_0x51c972,_0x1d2af5,_0x310d19){return _0x22e674(_0x46c02e-0x114,_0x51c972-0x148,_0x46c02e,_0x1d2af5- -0x1ca);}function _0x450145(_0x2a42cd,_0x16455f,_0x449e2d,_0x1fc4e9){return _0x22e674(_0x2a42cd-0x5b,_0x16455f-0x1aa,_0x449e2d,_0x16455f- -_0x2b08f6._0x2aaf06);}return{'accept':_0x40d8e7?_0x450145(0x266,_0x4f8125._0x5838ea,_0x4f8125._0xf2690d,_0x4f8125._0xc3dd1e):_0xe4ea80(0x322,0x322,0x2b4,_0x4f8125._0x1f5d41),'body':{..._0x110813,'messages':_0x535474[_0xe4ea80(0x116,_0x4f8125._0x43f2a8,0x1a6,_0x4f8125._0x4bc0f8)][_0x450145(0x22d,_0x4f8125._0x5e8432,_0x4f8125._0x51f22e,0x253)](_0x180f67=>{const _0x1b1c21={_0x582f70:0x1a3,_0x1a49d5:0x1f1};function _0x218253(_0x387108,_0xe370de,_0x534185,_0x4ba8c2){return _0x450145(_0x387108-_0x1b1c21._0x582f70,_0x534185- -0x36e,_0x387108,_0x4ba8c2-_0x1b1c21._0x1a49d5);}return{'role':_0x180f67[_0x218253(-0x15f,-_0x9feba7._0x3c628e,-0xdc,-_0x9feba7._0x3d110d)],'content':toAnthropicRequestContent(_0x180f67)};}),..._0xa11d10['thinking']?{'thinking':_0xa11d10[_0xe4ea80(_0x4f8125._0x374547,_0x4f8125._0x39e5e4,0x177,0xca)]}:{},..._0x40d8e7?{'stream':!![]}:{}},..._0xa11d10[_0xe4ea80(_0x4f8125._0x1a69de,0x287,0x2d8,_0x4f8125._0x3f74e6)]?{'headers':_0xa11d10[_0x450145(0x3f0,_0x4f8125._0x19e9e8,0x31c,0x38a)]}:{},'path':_0x450145(_0x4f8125._0x5d76da,_0x4f8125._0x4c7e50,0x24e,0x344)};}function parseAnthropicResponse(_0x7e75fb,_0x2660b8){const _0x52bb4c={_0x1501ec:0x53b,_0xdfd7c6:0x50c,_0x4dd0d1:0x415,_0x21acb6:0x497,_0x19c79b:0x3f4,_0x4eedc8:0xdd,_0x3150c8:0x7,_0x22e07d:0x349,_0xd33f68:0x85,_0x183ded:0xee,_0x2dd3e4:0x4a,_0x184f8b:0x132,_0xca0a0c:0x1d,_0x20169b:0x54f,_0x2298d5:0x487,_0x48604b:0x519,_0x347aea:0x125,_0x779ed:0x10d,_0x36009d:0x110,_0x409372:0x169,_0x45e641:0x82,_0x3c3947:0x45e,_0x57b529:0x488,_0x42d469:0x4bc,_0x18fe89:0x511,_0x444cd6:0x54c,_0x4e3c72:0x46e,_0xc75f53:0x44c,_0x141e83:0x3c8,_0x61c0d2:0x5f,_0x3303b6:0x4d,_0x3aa4c5:0x154,_0x38376e:0x7a,_0x24090c:0x44a,_0x23cf77:0x464,_0x5058ea:0x42a,_0x4c1f8c:0x26,_0x4cc5fb:0x43,_0x50bffd:0x470,_0x5a9a24:0x3bf,_0x78952e:0x348,_0x346eb7:0x4b6,_0x51aa51:0x47f,_0x551537:0xa4,_0x3ba214:0x41f,_0x33506b:0x3c9,_0xbd7ef9:0x58,_0x54bf26:0x89,_0x200ada:0x5b,_0x559ff6:0x77,_0x5e32df:0x578,_0x46bcab:0x56e,_0x2e44cd:0x4fc,_0x4188c1:0x3e,_0x1ea5cd:0x89,_0x505eec:0x587,_0x37412c:0x4a2,_0x7f0c32:0x3fd,_0x3076bf:0x45c,_0x2b8892:0x572},_0x2bee9f={_0x30c0a1:0xb1},_0x2481d6={_0xb37de4:0x1d4},_0x3e4135=[];function _0x264eae(_0x4338cd,_0x509cfa,_0x598c6e,_0x1e4079){return _0x22e674(_0x4338cd-_0x2481d6._0xb37de4,_0x509cfa-0x58,_0x4338cd,_0x509cfa-0xd4);}const _0x5a7c1c=_0x7e75fb[_0x264eae(0x583,0x51e,0x4b8,_0x52bb4c._0x1501ec)]??[];let _0x49395a=![];function _0x29b2db(_0x3e977d,_0x17b18e,_0x5c9488,_0x3eafa0){return _0x22e674(_0x3e977d-0x192,_0x17b18e-_0x2bee9f._0x30c0a1,_0x5c9488,_0x3eafa0- -0x359);}for(const _0x3b0b84 of _0x5a7c1c){if(_0x3b0b84[_0x264eae(_0x52bb4c._0xdfd7c6,0x494,0x451,0x3ad)]===_0x264eae(0x3be,_0x52bb4c._0x4dd0d1,_0x52bb4c._0x21acb6,_0x52bb4c._0x19c79b)){_0x49395a=!![];isUserVisibleThinking(_0x2660b8)&&_0x3e4135[_0x29b2db(_0x52bb4c._0x4eedc8,0xa9,_0x52bb4c._0x3150c8,0x41)]({'type':'anthropic_thinking','thinking':_0x3b0b84[_0x264eae(0x3e3,0x415,_0x52bb4c._0x22e07d,0x4f9)],'signature':_0x3b0b84['signature']});continue;}if(_0x3b0b84[_0x29b2db(0x6e,_0x52bb4c._0xd33f68,_0x52bb4c._0x183ded,0x67)]==='redacted_thinking'){_0x49395a=!![];isUserVisibleThinking(_0x2660b8)&&_0x3e4135[_0x29b2db(0x1f,-_0x52bb4c._0x2dd3e4,-0x45,0x41)]({'type':_0x29b2db(-_0x52bb4c._0x184f8b,-_0x52bb4c._0xca0a0c,-0x14,-0x70),'data':_0x3b0b84[_0x264eae(_0x52bb4c._0x20169b,_0x52bb4c._0x2298d5,0x479,_0x52bb4c._0x48604b)]});continue;}if(_0x3b0b84['type']===_0x29b2db(_0x52bb4c._0x347aea,0x141,_0x52bb4c._0x779ed,_0x52bb4c._0x36009d)){_0x3b0b84[_0x29b2db(_0x52bb4c._0x409372,_0x52bb4c._0x45e641,0x93,0x110)][_0x264eae(_0x52bb4c._0x3c3947,0x41e,_0x52bb4c._0x57b529,_0x52bb4c._0x42d469)]>0x0&&_0x3e4135[_0x264eae(0x4bb,0x46e,_0x52bb4c._0x18fe89,0x52d)](structuredClone(_0x3b0b84));continue;}_0x3e4135[_0x264eae(_0x52bb4c._0x444cd6,_0x52bb4c._0x4e3c72,0x39b,0x4b0)](structuredClone(_0x3b0b84));}return{'id':_0x7e75fb['id']??_0x264eae(_0x52bb4c._0xc75f53,_0x52bb4c._0x141e83,0x428,0x49d)+Date[_0x29b2db(0x4e,-0xfa,-_0x52bb4c._0x61c0d2,-0x31)](),'content':_0x3e4135,'stopReason':_0x3e4135[_0x29b2db(_0x52bb4c._0x3303b6,_0x52bb4c._0x3aa4c5,0x13e,_0x52bb4c._0x38376e)](_0x42752d=>_0x42752d[_0x264eae(0x3db,0x494,0x463,0x4b2)]===_0x29b2db(-0x2e,-0x2b,0x119,0x53))?'tool_use':_0x7e75fb[_0x264eae(_0x52bb4c._0x24090c,_0x52bb4c._0x23cf77,_0x52bb4c._0x5058ea,0x50b)]===_0x29b2db(-_0x52bb4c._0x4c1f8c,_0x52bb4c._0x4cc5fb,-0x7d,0x53)?_0x264eae(_0x52bb4c._0x50bffd,0x480,_0x52bb4c._0x5a9a24,0x464):_0x264eae(0x47f,0x3ff,_0x52bb4c._0x78952e,0x36b),'usage':{'inputTokens':(_0x7e75fb['usage']?.['input_tokens']??0x0)+(_0x7e75fb['usage']?.['cache_read_input_tokens']??0x0)+(_0x7e75fb[_0x264eae(0x4c1,_0x52bb4c._0x346eb7,_0x52bb4c._0x51aa51,0x42d)]?.[_0x29b2db(_0x52bb4c._0x551537,0x103,0x52,0xea)]??0x0),'outputTokens':_0x7e75fb['usage']?.[_0x264eae(0x49a,_0x52bb4c._0x3ba214,0x4f0,_0x52bb4c._0x33506b)]??0x0,..._0x7e75fb[_0x29b2db(0x145,_0x52bb4c._0xbd7ef9,0xbc,_0x52bb4c._0x54bf26)]?.[_0x29b2db(-_0x52bb4c._0x200ada,0xe8,_0x52bb4c._0x559ff6,0x32)]?{'cacheReadInputTokens':_0x7e75fb[_0x264eae(0x3d6,0x4b6,_0x52bb4c._0x5e32df,_0x52bb4c._0x46bcab)][_0x264eae(0x391,0x45f,0x444,_0x52bb4c._0x2e44cd)]}:{},..._0x7e75fb[_0x29b2db(0xc5,0x107,_0x52bb4c._0x4188c1,_0x52bb4c._0x1ea5cd)]?.[_0x264eae(_0x52bb4c._0x505eec,0x517,0x44b,_0x52bb4c._0x37412c)]?{'cacheCreationInputTokens':_0x7e75fb[_0x264eae(0x435,0x4b6,0x486,_0x52bb4c._0x7f0c32)][_0x264eae(_0x52bb4c._0x3076bf,0x517,0x5f0,_0x52bb4c._0x2b8892)]}:{}},..._0x49395a?{'providerState':{'anthropicAssistantContent':structuredClone(_0x5a7c1c)}}:{}};}var AnthropicMessagesStreamParser=class{['blocks']=new Map();['cacheCreationInputTokens']=0x0;['cacheReadInputTokens']=0x0;[_0x22e674(0x36a,0x3fe,0x397,0x321)]=0x0;[_0x532739(-0x28,-0xb4,-0x17a,-0x179)]=_0x22e674(0x264,0x364,0x35a,0x2f4)+Date[_0x22e674(0x27a,0x2a2,0x3a1,0x328)]();[_0x22e674(0x324,0x324,0x2d8,0x3a4)]=0x0;['request'];[_0x532739(-0x17b,-0xd3,-0xee,-0x17f)]=_0x22e674(0x37f,0x2d2,0x35e,0x32b);constructor(_0xc4af8a){const _0x447e7e={_0x4de7ae:0x469,_0x54f982:0x433,_0x3b09c7:0x529},_0x4603ca={_0x109462:0x5ba,_0xc90fe4:0x1ce};function _0x2939bf(_0x1d2106,_0x5f2f38,_0x407323,_0x3d111a){return _0x532739(_0x5f2f38,_0x1d2106-_0x4603ca._0x109462,_0x407323-0x137,_0x3d111a-_0x4603ca._0xc90fe4);}this[_0x2939bf(_0x447e7e._0x4de7ae,_0x447e7e._0x54f982,0x4ab,_0x447e7e._0x3b09c7)]=_0xc4af8a;}['consumeSseEvent'](_0xcde074){const _0x562af8={_0x515274:0x92,_0x94681:0x10f,_0x11e899:0xbf,_0x252bb2:0x14b,_0x2f0d42:0x3ad,_0x519000:0x420,_0x59d336:0x438,_0x171ef8:0x466,_0x29b540:0x11e,_0x2059a5:0x13a,_0x55f6e3:0x9c,_0x48b3f9:0x2e,_0x2698dc:0xb9,_0x5e023c:0x200,_0x276655:0x16f,_0x3cb593:0x502,_0x2db240:0x4b9,_0x11b3b5:0x429,_0x15c0e3:0x502,_0xdc135c:0x4f8,_0x19b49e:0x48a,_0x226d04:0x432,_0x265199:0x4a,_0x3ca16a:0x3f,_0x32aac9:0x2d,_0x5b57b8:0x13d,_0x3c2976:0xe8,_0x26a605:0x1d9,_0xb462aa:0xab,_0x16d007:0xcf,_0x6a72e9:0x179,_0x5d15ef:0x43f,_0x32fd05:0x399,_0x238773:0x468,_0x1710c8:0x442,_0x24b751:0x51a,_0x42b685:0x4bc,_0x5b8cd4:0x590,_0x1c3a40:0x566,_0x372173:0x567,_0xa7e3bc:0x496,_0xa43c8:0x4e1,_0x4108e7:0x423,_0x3b313c:0x82,_0x14c1b5:0x1e,_0x33a0f4:0x153,_0x9385c5:0x1bb,_0x4e5121:0x190,_0x2b40a7:0xa2,_0x29c3f2:0xd8,_0xa1e8d:0x13c,_0x4af3e0:0x3f9,_0x4ae652:0x3e2,_0x5ec98d:0x3a5,_0x4c9156:0x43b,_0xf293d6:0x149,_0x35cf73:0x1bf,_0x11db17:0x166,_0x57e357:0x155,_0x255307:0x4b8,_0x30ded0:0x42e,_0xd6c911:0x392,_0x134d37:0x3f5,_0x37f285:0x368,_0x22c65f:0x2e5,_0x2c0580:0x2e1,_0x3447ad:0x31e,_0xe95ac5:0x433,_0x2d4194:0x59,_0x2c3291:0xae,_0x5ae439:0x17,_0x3d283b:0x55f,_0x71aee0:0x3c8,_0x58e519:0x3f7,_0x34f97d:0x143,_0xb67a03:0x116,_0x38f6e5:0xc4,_0xf30c21:0xad,_0x24f172:0x416,_0x515480:0x426,_0x28ec43:0x198,_0x499e5d:0xc9,_0x1b1303:0x27f,_0x438dd5:0x122,_0x2c4800:0x1a2,_0x53c97d:0xd1,_0x3cbb20:0xbe,_0x43dc06:0x534,_0x57c524:0x4cc,_0x511594:0x4be,_0x12827a:0x40c,_0x44fd3b:0x19d,_0x38af23:0x1a4,_0x502d54:0x38a,_0x5c51f2:0x453,_0x45852c:0x51d,_0x3e9be8:0x5f3,_0x383f13:0x512,_0x2394bb:0x5f1,_0x440c96:0x11b,_0x4c59c2:0x71,_0x29cef7:0x52,_0x211386:0xc4,_0x170745:0xa,_0xfa7ae6:0x4c7,_0x8a8ac2:0x429,_0x4b4112:0x3fc,_0x8365e5:0x39b,_0x4f6753:0x477,_0x77cfd8:0x3d2,_0x14cbed:0x427,_0x282eba:0x1a7,_0x442e97:0x79,_0x4e0131:0x199,_0x19ddc8:0x474,_0x4118ff:0x482,_0x1457fb:0x4a3,_0x2a4a42:0x491,_0xcfb43f:0xc4,_0x2aef37:0x48a,_0x1b9a3e:0x4d7,_0x40fad1:0x48e,_0x41a5ed:0x52f,_0x255207:0x78,_0x6c387d:0x46,_0x1daacd:0x1b,_0x4e80c2:0x8a,_0x81f15e:0x52b,_0x26e4ab:0x45c,_0x4c62b1:0x35c,_0x3774fd:0x4fd,_0x545bcf:0x56d,_0x4c28e1:0x47a,_0x1963a3:0x3de,_0x53f155:0x426,_0x560daa:0x4a7,_0x267a51:0x4b6,_0x80b7a3:0x4ab,_0x15d451:0x52b,_0x522266:0x46b,_0x3cd096:0x22b,_0x41eb4c:0x18a,_0xa2b833:0xc4,_0x287a8c:0xd0,_0x3a9fb9:0xab,_0x5a729d:0x103,_0x2b10c6:0x10,_0x6bd1c7:0x429,_0x391e5d:0x344,_0x526fa8:0x40,_0x3187b9:0xf3,_0x190267:0x42f,_0x3daab0:0x4c2,_0x54d052:0x465,_0x3cc287:0x3a9,_0x5a1021:0x3f2,_0x5894f9:0xaf,_0x46cb35:0x6f,_0x594b8e:0x131,_0x53fd89:0xc4,_0x2c360a:0x78,_0x45d284:0x429,_0x57cfe7:0x394,_0x1ab42a:0xee,_0x400f4b:0x8f,_0x51b290:0x178,_0x22409b:0x3fe,_0x157824:0x334,_0x307710:0x440,_0x3dcb53:0x45,_0x435b86:0x87,_0x371aa6:0xcb,_0x437ab0:0x496,_0x4e576a:0x50a,_0x241163:0x185,_0x2417e6:0x3fb,_0x201457:0x388,_0xaf7269:0x425,_0x4f4fef:0x48c,_0xed498c:0x151,_0x40cadd:0x163,_0xb6706c:0x18,_0x58ea66:0xd0,_0x492931:0x14f,_0x5cbf95:0x468,_0x3775b0:0x47c,_0xb56e5:0x412,_0x1779a3:0x3e3,_0x160cc6:0x4bc,_0x2bdec6:0x4c6,_0x23fbca:0x192,_0x3bd3f6:0x458,_0x4cbf67:0x518,_0x2d5cca:0x440,_0x29b059:0x3ca,_0x591d11:0x3df,_0x219015:0x470,_0x28a288:0x187,_0x289fd5:0x100,_0x23522f:0x1dc,_0x1b4522:0xaa,_0x2e979c:0x547,_0x26b570:0x5cd},_0x32778d={_0x3163e9:0x122},_0x1bf248={_0x2b9126:0x4c,_0x31f32a:0x484},_0x134b72=_0xcde074[_0x3c7a89(-0xaa,-_0x562af8._0x515274,0x6,-_0x562af8._0x94681)]('\x0a'),_0x23e012=_0x134b72['find'](_0x5ac718=>_0x5ac718[_0x1428d9(0x420,0x419,0x3d9,0x3c5)]('event:'))?.['slice'](0x6)[_0x3c7a89(-0xc2,-0x18a,-0xf5,-0x112)](),_0x3e7fa4=_0x134b72[_0x3c7a89(-_0x562af8._0x11e899,-0xa8,0x17,-_0x562af8._0x252bb2)](_0x45a9fd=>_0x45a9fd[_0x3c7a89(-0x58,-0x118,-0x57,-0x1ef)](_0x3c7a89(-0xac,-0x4f,0x57,0x36)))['map'](_0x2b7b9e=>_0x2b7b9e['slice'](0x5)['trimStart']())[_0x1428d9(_0x562af8._0x2f0d42,_0x562af8._0x519000,_0x562af8._0x59d336,_0x562af8._0x171ef8)]('\x0a')[_0x3c7a89(-0x24f,-0x18a,-_0x562af8._0x29b540,-0xd2)]();if(_0x3e7fa4[_0x3c7a89(-0x143,-_0x562af8._0x2059a5,-0x64,-_0x562af8._0x55f6e3)]===0x0||_0x3e7fa4==='[DONE]')return[];function _0x3c7a89(_0x55bab8,_0x42f732,_0x5d2409,_0x2a7a3f){return _0x22e674(_0x55bab8-0x54,_0x42f732-_0x1bf248._0x2b9126,_0x5d2409,_0x42f732- -_0x1bf248._0x31f32a);}function _0x1428d9(_0x4f9400,_0x7afa7b,_0x32101e,_0x32598f){return _0x532739(_0x7afa7b,_0x4f9400-0x5b6,_0x32101e-_0x32778d._0x3163e9,_0x32598f-0x7e);}const _0x1b146b=JSON[_0x3c7a89(_0x562af8._0x48b3f9,-0x78,-_0x562af8._0x2698dc,-0xc6)](_0x3e7fa4);switch(_0x23e012){case'message_start':{const _0x2a267a=_0x1b146b[_0x3c7a89(-_0x562af8._0x5e023c,-_0x562af8._0x276655,-0x1a7,-0xa3)];this[_0x1428d9(0x502,_0x562af8._0x3cb593,_0x562af8._0x2db240,_0x562af8._0x11b3b5)]=_0x2a267a?.['id']??this[_0x1428d9(_0x562af8._0x15c0e3,_0x562af8._0xdc135c,_0x562af8._0x19b49e,_0x562af8._0x226d04)],this['inputTokens']=_0x2a267a?.[_0x3c7a89(-_0x562af8._0x265199,-0xa2,_0x562af8._0x3ca16a,-_0x562af8._0x32aac9)]?.[_0x3c7a89(-0x161,-_0x562af8._0x5b57b8,-0x104,-_0x562af8._0x3c2976)]??this[_0x3c7a89(-_0x562af8._0x26a605,-0x163,-_0x562af8._0xb462aa,-0x7f)],this[_0x3c7a89(-_0x562af8._0x16d007,-0xd0,-0x58,-_0x562af8._0x6a72e9)]=_0x2a267a?.['usage']?.[_0x1428d9(_0x562af8._0x5d15ef,0x4f5,_0x562af8._0x32fd05,0x521)]??this[_0x1428d9(_0x562af8._0x238773,_0x562af8._0x1710c8,0x482,_0x562af8._0x24b751)],this[_0x1428d9(_0x562af8._0x42b685,_0x562af8._0x5b8cd4,_0x562af8._0x1c3a40,_0x562af8._0x372173)]=_0x2a267a?.[_0x1428d9(_0x562af8._0xa7e3bc,_0x562af8._0xa43c8,0x47f,_0x562af8._0x4108e7)]?.[_0x3c7a89(_0x562af8._0x3b313c,-0x41,-0xae,_0x562af8._0x14c1b5)]??this['cacheCreationInputTokens'];break;}case _0x3c7a89(-0x229,-_0x562af8._0x33a0f4,-_0x562af8._0x9385c5,-_0x562af8._0x4e5121):{const _0x36a97c=typeof _0x1b146b[_0x3c7a89(0x53,-0x71,-0x152,-0x123)]===_0x3c7a89(-_0x562af8._0x2b40a7,-0x60,-_0x562af8._0x32aac9,-0x13)?_0x1b146b['index']:0x0,_0x473b26=_0x1b146b[_0x1428d9(0x3c7,0x47b,0x449,0x387)];if(_0x473b26?.['type']===_0x3c7a89(-0x2f,-_0x562af8._0x29c3f2,-0x1e,-0x11e)&&_0x473b26['id']&&_0x473b26['name'])return this['blocks'][_0x3c7a89(-_0x562af8._0xa1e8d,-0x105,-0x12d,-0xdb)](_0x36a97c,{'id':_0x473b26['id'],'index':_0x36a97c,'inputJson':JSON[_0x1428d9(_0x562af8._0x4af3e0,0x31c,0x4ae,_0x562af8._0x4ae652)](_0x473b26[_0x1428d9(_0x562af8._0x5ec98d,_0x562af8._0x4c9156,0x474,0x400)]??{}),'kind':'tool_use','name':_0x473b26[_0x3c7a89(-0x9f,-_0x562af8._0xf293d6,-_0x562af8._0x35cf73,-0x67)]}),[{'type':_0x3c7a89(-0x125,-_0x562af8._0x11db17,-0xa7,-_0x562af8._0x57e357),'id':_0x473b26['id'],'index':_0x36a97c,'name':_0x473b26[_0x1428d9(0x3ef,_0x562af8._0x255307,_0x562af8._0x30ded0,_0x562af8._0xd6c911)]}];if(_0x473b26?.['type']===_0x1428d9(_0x562af8._0x134d37,0x394,0x322,_0x562af8._0x37f285)){this[_0x1428d9(0x39b,_0x562af8._0x22c65f,_0x562af8._0x2c0580,_0x562af8._0x3447ad)][_0x1428d9(_0x562af8._0xe95ac5,_0x562af8._0x2f0d42,0x427,0x4a6)](_0x36a97c,{'index':_0x36a97c,'kind':'thinking','signature':typeof _0x473b26['signature']===_0x3c7a89(-_0x562af8._0x2d4194,-0xae,-0x79,-0x142)?_0x473b26['signature']:'','thinking':typeof _0x473b26['text']===_0x3c7a89(-0x190,-_0x562af8._0x2c3291,_0x562af8._0x5ae439,-0x7e)?_0x473b26[_0x1428d9(0x51d,_0x562af8._0x3d283b,0x475,0x436)]:typeof _0x473b26[_0x1428d9(0x3f5,_0x562af8._0x71aee0,0x39f,_0x562af8._0x58e519)]==='string'?String(_0x473b26[_0x3c7a89(-_0x562af8._0x16d007,-_0x562af8._0x34f97d,-0x20f,-0x178)]):''});break;}if(_0x473b26?.[_0x3c7a89(-_0x562af8._0xb67a03,-_0x562af8._0x38f6e5,-0x115,-_0x562af8._0xf30c21)]===_0x1428d9(_0x562af8._0x24f172,_0x562af8._0x515480,0x3a9,0x36e)){this[_0x3c7a89(-_0x562af8._0x28ec43,-0x19d,-_0x562af8._0x499e5d,-_0x562af8._0x1b1303)]['set'](_0x36a97c,{'index':_0x36a97c,'kind':_0x3c7a89(-0x1b8,-_0x562af8._0x438dd5,-0x1ee,-0x8d),'data':typeof _0x473b26[_0x3c7a89(-_0x562af8._0x2c4800,-_0x562af8._0x53c97d,-_0x562af8._0x3cbb20,-0x85)]===_0x1428d9(_0x562af8._0x19b49e,_0x562af8._0x43dc06,0x46c,_0x562af8._0x57c524)?String(_0x473b26[_0x1428d9(0x467,_0x562af8._0x511594,0x46c,_0x562af8._0x12827a)]):''});break;}this[_0x3c7a89(-0x20f,-_0x562af8._0x44fd3b,-_0x562af8._0x38af23,-0x14a)][_0x1428d9(0x433,_0x562af8._0x502d54,_0x562af8._0x5c51f2,0x502)](_0x36a97c,{'index':_0x36a97c,'kind':_0x1428d9(_0x562af8._0x45852c,0x4ae,0x4df,0x5b5),'text':_0x473b26?.[_0x1428d9(0x51d,_0x562af8._0x3e9be8,0x48f,0x5dc)]??''});break;}case _0x1428d9(_0x562af8._0x383f13,0x4e4,0x5c1,_0x562af8._0x2394bb):{const _0xec3d75=typeof _0x1b146b[_0x3c7a89(-_0x562af8._0x440c96,-_0x562af8._0x4c59c2,-0x158,_0x562af8._0x29cef7)]===_0x3c7a89(-_0x562af8._0x211386,-0x60,_0x562af8._0x170745,-0x2d)?_0x1b146b[_0x1428d9(_0x562af8._0xfa7ae6,_0x562af8._0x8a8ac2,_0x562af8._0x4b4112,0x53e)]:0x0,_0x5c89e5=this[_0x1428d9(_0x562af8._0x8365e5,_0x562af8._0x4f6753,0x332,0x2bb)][_0x1428d9(_0x562af8._0x5c51f2,_0x562af8._0x77cfd8,0x4bc,_0x562af8._0x14cbed)](_0xec3d75),_0x3caeed=_0x1b146b[_0x3c7a89(-_0x562af8._0x282eba,-0xcb,-_0x562af8._0x442e97,-_0x562af8._0x4e0131)];if(!_0x5c89e5||!_0x3caeed?.[_0x1428d9(_0x562af8._0x19ddc8,_0x562af8._0x4118ff,_0x562af8._0x1457fb,_0x562af8._0x2a4a42)])break;if(_0x3caeed[_0x3c7a89(-0x152,-_0x562af8._0xcfb43f,-0x125,-0x15b)]===_0x1428d9(0x4f0,0x517,0x461,0x458)&&_0x5c89e5[_0x1428d9(0x429,0x3a9,0x49e,0x39d)]==='text'&&typeof _0x3caeed['text']===_0x1428d9(_0x562af8._0x2aef37,_0x562af8._0x1b9a3e,0x548,_0x562af8._0x40fad1))return _0x5c89e5[_0x3c7a89(0x60,-0x1b,-0xf7,0x84)]+=_0x3caeed[_0x1428d9(0x51d,_0x562af8._0x3e9be8,0x59d,_0x562af8._0x41a5ed)],[{'type':_0x3c7a89(-0x61,-0x54,_0x562af8._0x255207,-0x7e),'index':_0xec3d75,'text':_0x3caeed[_0x3c7a89(-_0x562af8._0x6c387d,-_0x562af8._0x1daacd,_0x562af8._0x4e80c2,-0x79)]}];if(_0x3caeed[_0x1428d9(0x474,0x51b,_0x562af8._0x81f15e,0x426)]===_0x1428d9(0x434,0x3c3,0x4f0,_0x562af8._0x26e4ab)&&_0x5c89e5[_0x1428d9(0x429,_0x562af8._0x4c62b1,0x449,0x3e8)]==='tool_use'&&typeof _0x3caeed[_0x1428d9(_0x562af8._0x3774fd,_0x562af8._0x545bcf,0x53f,0x4a7)]==='string')return _0x5c89e5[_0x1428d9(0x4b6,0x4c0,0x417,_0x562af8._0x4c28e1)]==='{}'&&(_0x5c89e5[_0x1428d9(0x4b6,_0x562af8._0x1963a3,_0x562af8._0x53f155,_0x562af8._0x560daa)]=''),_0x5c89e5[_0x1428d9(_0x562af8._0x267a51,_0x562af8._0x80b7a3,_0x562af8._0x15d451,_0x562af8._0x522266)]+=_0x3caeed['partial_json'],[{'type':_0x3c7a89(-_0x562af8._0x3cd096,-0x166,-0x1e6,-_0x562af8._0x41eb4c),'id':_0x5c89e5['id'],'index':_0xec3d75,'inputDelta':_0x3caeed['partial_json']}];if(_0x3caeed[_0x3c7a89(-0xf4,-_0x562af8._0xa2b833,-_0x562af8._0x287a8c,-_0x562af8._0x3a9fb9)]===_0x3c7a89(-_0x562af8._0x5a729d,-0xa7,-_0x562af8._0x2b10c6,-0x2d)&&_0x5c89e5[_0x1428d9(_0x562af8._0x6bd1c7,0x348,_0x562af8._0x391e5d,0x453)]==='thinking'){const _0x3341e0=typeof _0x3caeed['thinking']===_0x3c7a89(-0x28,-_0x562af8._0x2c3291,-_0x562af8._0x526fa8,-_0x562af8._0x3187b9)?String(_0x3caeed[_0x1428d9(0x3f5,0x3f7,0x410,0x490)]):'';if(_0x3341e0[_0x1428d9(0x3fe,_0x562af8._0x190267,_0x562af8._0x3daab0,0x357)]>0x0){_0x5c89e5[_0x1428d9(0x3f5,0x324,0x313,0x4ae)]+=_0x3341e0;if(isUserVisibleThinking(this[_0x1428d9(_0x562af8._0x54d052,0x42e,_0x562af8._0x3cc287,_0x562af8._0x5a1021)]))return[{'type':_0x3c7a89(-0xdd,-_0x562af8._0x5894f9,-_0x562af8._0x46cb35,-_0x562af8._0x594b8e),'index':_0xec3d75,'thinking':_0x3341e0}];}}if(_0x3caeed[_0x3c7a89(-0x4c,-_0x562af8._0x53fd89,-_0x562af8._0x2c360a,-0x75)]==='signature_delta'&&_0x5c89e5[_0x1428d9(_0x562af8._0x45d284,_0x562af8._0x57cfe7,0x478,0x407)]===_0x3c7a89(-0x213,-0x143,-_0x562af8._0x1ab42a,-_0x562af8._0x400f4b)){const _0x8ddafc=typeof _0x3caeed['signature']===_0x3c7a89(-_0x562af8._0x51b290,-0xae,-0xcc,-0xf8)?String(_0x3caeed['signature']):'';if(_0x8ddafc[_0x1428d9(_0x562af8._0x22409b,0x3f1,_0x562af8._0x157824,_0x562af8._0x307710)]>0x0){_0x5c89e5['signature']=_0x8ddafc;if(isUserVisibleThinking(this['request']))return[{'type':_0x3c7a89(-_0x562af8._0x3dcb53,-_0x562af8._0x435b86,_0x562af8._0x5ae439,-0x1a),'index':_0xec3d75,'signature':_0x8ddafc}];}}break;}case _0x3c7a89(-0xdd,-0x18,0x6d,0xbb):{const _0x27730c=_0x1b146b[_0x3c7a89(-0xed,-_0x562af8._0x371aa6,-0xaf,-0x53)],_0x3d03c0=_0x1b146b[_0x1428d9(_0x562af8._0x437ab0,0x4d1,_0x562af8._0x4e576a,0x4db)];this[_0x3c7a89(-_0x562af8._0x440c96,-0x163,-0x203,-_0x562af8._0x241163)]=_0x3d03c0?.[_0x1428d9(_0x562af8._0x2417e6,_0x562af8._0x201457,_0x562af8._0xaf7269,_0x562af8._0x4f4fef)]??this[_0x3c7a89(-_0x562af8._0xed498c,-_0x562af8._0x40cadd,-0x17a,-0x236)],this[_0x3c7a89(-_0x562af8._0xb6706c,-_0x562af8._0x58ea66,-_0x562af8._0x492931,-0xef)]=_0x3d03c0?.[_0x1428d9(0x43f,0x4d0,0x4b2,0x42b)]??this[_0x1428d9(_0x562af8._0x5cbf95,_0x562af8._0x3775b0,_0x562af8._0xb56e5,_0x562af8._0x1779a3)],this['cacheCreationInputTokens']=_0x3d03c0?.['cache_creation_input_tokens']??this[_0x1428d9(_0x562af8._0x160cc6,0x40e,_0x562af8._0x2bdec6,0x503)],this['outputTokens']=_0x3d03c0?.[_0x3c7a89(-0x211,-0x139,-_0x562af8._0x23fbca,-0xcf)]??this[_0x1428d9(_0x562af8._0x3bd3f6,_0x562af8._0x4cbf67,0x4e7,0x4de)],this['stopReason']=_0x27730c?.['stop_reason']===_0x1428d9(0x460,0x540,_0x562af8._0x2d5cca,_0x562af8._0x29b059)?'tool_use':_0x1428d9(_0x562af8._0x591d11,0x304,_0x562af8._0x219015,0x310);break;}case _0x3c7a89(-0x1b5,-0x148,-0x89,-_0x562af8._0x28a288):{const _0xc292ce=_0x1b146b[_0x3c7a89(-_0x562af8._0x289fd5,-0x148,-_0x562af8._0x23522f,-_0x562af8._0x1b4522)];throw new ProviderStreamEventError(_0xc292ce?.['message']??_0x1428d9(_0x562af8._0x2e979c,0x5d4,0x524,_0x562af8._0x26b570),{'code':_0xc292ce?.['type'],'retryable':!![]});}}return[];}[_0x22e674(0x4a1,0x487,0x394,0x3ec)](){const _0x27de5d={_0x4d12b6:0x390,_0xe65a2f:0x6d6,_0x399c32:0x5ff,_0x4fdbdf:0x5d0,_0x521dc2:0x3df,_0x5a0a11:0x4be,_0x1b7c31:0x564,_0x336683:0x488,_0x482c91:0x4d3,_0x588335:0x543,_0x48f1fd:0x65c,_0x2d29ef:0x57f,_0x307260:0x6aa,_0xf7e4f6:0x38d,_0x406086:0x619,_0x32c7f4:0x5af,_0x221759:0x593,_0x5b4eab:0x624,_0xb9aaea:0x380,_0x14a17c:0x2c7,_0x55354c:0x434,_0x1d392e:0x48a,_0x173796:0x4eb,_0x1c0fc5:0x528,_0x824ad6:0x585,_0x5b92ef:0x530,_0x5e1c06:0x621,_0x50b194:0x638,_0x6c29d0:0x5ff,_0x2e4b84:0x54c,_0x5846dd:0x608,_0x5331f8:0x5fe,_0x159e1c:0x4c4,_0x191a71:0x3a5,_0x5277da:0x400,_0x2bf95c:0x46c,_0x1ca2ec:0x47d,_0x5aa4a6:0x44d,_0x1bdb6f:0x46c,_0x9c41ef:0x3e5,_0x867813:0x3ff,_0x4c996b:0x768,_0x220d7b:0x69d,_0x27fbe7:0x763,_0x44c76e:0x622,_0x412732:0x5f9,_0xd6aa6f:0x472,_0x4abc35:0x4b4},_0x3b2a02={_0x488292:0x770,_0x41251c:0xd9};function _0x90a8d8(_0x1d9f59,_0x8950ff,_0x4afa74,_0x4e6bdf){return _0x532739(_0x4afa74,_0x8950ff-_0x3b2a02._0x488292,_0x4afa74-0x11,_0x4e6bdf-_0x3b2a02._0x41251c);}const _0x5457fa=Array[_0x362334(0x3ce,_0x27de5d._0x4d12b6,0x36e,0x360)](this['blocks'][_0x90a8d8(_0x27de5d._0xe65a2f,_0x27de5d._0x399c32,_0x27de5d._0x4fdbdf,0x555)]())['sort']((_0x5e5eea,_0x1fa6e0)=>_0x5e5eea[_0x362334(0x3a6,0x40a,0x47d,0x3c4)]-_0x1fa6e0[_0x362334(0x564,0x50b,0x47d,0x54c)]),_0x359f54=[];function _0x362334(_0x4cb7e3,_0x30d602,_0x325ee8,_0x523d70){return _0x22e674(_0x4cb7e3-0x11b,_0x30d602-0xcf,_0x523d70,_0x325ee8-0x6a);}for(const _0xe8eb5c of _0x5457fa){if(_0xe8eb5c[_0x362334(0x3f2,0x349,_0x27de5d._0x521dc2,_0x27de5d._0x5a0a11)]==='text'){_0xe8eb5c[_0x362334(_0x27de5d._0x1b7c31,_0x27de5d._0x336683,_0x27de5d._0x482c91,0x563)][_0x90a8d8(0x54a,0x5b8,_0x27de5d._0x588335,_0x27de5d._0x48f1fd)]>0x0&&_0x359f54[_0x90a8d8(_0x27de5d._0x2d29ef,0x608,_0x27de5d._0x307260,0x55c)]({'type':'text','text':_0xe8eb5c['text']});continue;}if(_0xe8eb5c[_0x362334(0x34c,0x3f8,0x3df,_0x27de5d._0xf7e4f6)]===_0x90a8d8(_0x27de5d._0x406086,_0x27de5d._0x32c7f4,_0x27de5d._0x221759,_0x27de5d._0x5b4eab)){_0x359f54['push']({'type':_0x362334(_0x27de5d._0xb9aaea,_0x27de5d._0x14a17c,0x3ab,0x48e),'thinking':_0xe8eb5c['thinking'],'signature':_0xe8eb5c[_0x362334(_0x27de5d._0x55354c,_0x27de5d._0x1d392e,_0x27de5d._0x173796,0x55d)]});continue;}if(_0xe8eb5c[_0x362334(0x309,0x389,0x3df,0x351)]===_0x362334(0x38c,0x454,0x3cc,0x48d)){_0x359f54[_0x90a8d8(0x533,0x608,_0x27de5d._0x1c0fc5,_0x27de5d._0x824ad6)]({'type':_0x90a8d8(_0x27de5d._0x5b92ef,0x5d0,0x577,0x6a9),'data':_0xe8eb5c[_0x90a8d8(0x6bd,_0x27de5d._0x5e1c06,_0x27de5d._0x50b194,_0x27de5d._0x6c29d0)]});continue;}_0x359f54[_0x90a8d8(_0x27de5d._0x2e4b84,_0x27de5d._0x5846dd,0x53f,_0x27de5d._0x5331f8)]({'type':_0x362334(_0x27de5d._0x159e1c,0x3c4,0x416,0x36f),'id':_0xe8eb5c['id'],'name':_0xe8eb5c[_0x362334(0x2d0,0x46e,_0x27de5d._0x191a71,0x2eb)],'input':parseToolInput(_0xe8eb5c[_0x362334(_0x27de5d._0x5277da,0x46e,_0x27de5d._0x2bf95c,_0x27de5d._0x1ca2ec)]['length']>0x0?_0xe8eb5c[_0x362334(_0x27de5d._0x5aa4a6,0x3af,_0x27de5d._0x1bdb6f,_0x27de5d._0x9c41ef)]:'{}')});}return parseAnthropicResponse({'id':this[_0x362334(0x45f,0x50b,0x4b8,0x4f8)],'type':_0x362334(0x38e,_0x27de5d._0x867813,0x37f,0x3fe),'role':'assistant','content':_0x359f54,'stop_reason':this[_0x90a8d8(_0x27de5d._0x4c996b,_0x27de5d._0x220d7b,0x739,_0x27de5d._0x27fbe7)],'stop_sequence':null,'usage':{'input_tokens':this['inputTokens'],'output_tokens':this[_0x90a8d8(0x595,0x612,0x65d,0x6b9)],'cache_read_input_tokens':this[_0x90a8d8(0x659,_0x27de5d._0x44c76e,_0x27de5d._0x412732,0x57f)],'cache_creation_input_tokens':this[_0x362334(0x4da,0x3a6,_0x27de5d._0xd6aa6f,_0x27de5d._0x4abc35)]}},this['request']);}};function createAnthropicSurfaces(){const _0x5a710a={_0x42a9df:0x2d5,_0xf193d1:0x2c6,_0x21138c:0x210,_0x77610b:0xb3,_0x99b1ce:0x3b,_0xd2b79b:0x1b6},_0x4102b2={_0x19d604:0x1b4,_0x133703:0x138},_0x2d84dc={_0x1cbe72:0x174};function _0x59a978(_0x31d912,_0x4c7abe,_0x4c2b87,_0x48c2ac){return _0x22e674(_0x31d912-_0x2d84dc._0x1cbe72,_0x4c7abe-0xd3,_0x31d912,_0x4c2b87- -0x48b);}function _0x3c3a53(_0x397451,_0x12928a,_0x271934,_0x3588ac){return _0x22e674(_0x397451-_0x4102b2._0x19d604,_0x12928a-_0x4102b2._0x133703,_0x397451,_0x271934- -0x8a);}return[{'id':ANTHROPIC_MESSAGES_SURFACE,'transport':_0x3c3a53(0x315,_0x5a710a._0x42a9df,_0x5a710a._0xf193d1,_0x5a710a._0x21138c),'createRequest'(_0x2cdce1){return createAnthropicRequest(_0x2cdce1,![]);},'parseResponse'(_0x5585ce,_0x465d34){return parseAnthropicResponse(_0x5585ce,_0x465d34);}},{'id':ANTHROPIC_MESSAGES_STREAM_SURFACE,'transport':_0x59a978(-_0x5a710a._0x77610b,-_0x5a710a._0x99b1ce,-0x119,-_0x5a710a._0xd2b79b),'createRequest'(_0x34102e){return createAnthropicRequest(_0x34102e,!![]);},'createStreamParser'(_0x223666){return new AnthropicMessagesStreamParser(_0x223666);}}];}var StaticModelSurfaceRouter=class{[_0x22e674(0x41e,0x412,0x4c3,0x480)];[_0x22e674(0x425,0x356,0x34a,0x415)];constructor(_0x1888ce){const _0x3fc3bc={_0x141225:0x65b,_0x35a507:0x69b,_0x1848af:0x2fc,_0x1a1fef:0x2c6},_0x907721={_0x3873bf:0x434,_0x20bf79:0x12c,_0x14afc9:0x187},_0x49c819={_0x501fcd:0x6d};this[_0x26b4da(_0x3fc3bc._0x141225,_0x3fc3bc._0x35a507,0x5af,0x634)]=_0x1888ce[_0x254395(0x36e,_0x3fc3bc._0x1848af,_0x3fc3bc._0x1a1fef,0x39c)];function _0x26b4da(_0x4ae8d2,_0x193ff0,_0x5ce32a,_0x4d0533){return _0x22e674(_0x4ae8d2-_0x49c819._0x501fcd,_0x193ff0-0x6b,_0x4d0533,_0x4ae8d2-0x1db);}function _0x254395(_0x4fb51f,_0xc8a6e6,_0x34dfec,_0x5f23b6){return _0x532739(_0x34dfec,_0xc8a6e6-_0x907721._0x3873bf,_0x34dfec-_0x907721._0x20bf79,_0x5f23b6-_0x907721._0x14afc9);}this['streamSurface']=_0x1888ce['stream'];}[_0x532739(-0x18d,-0x17d,-0x1c5,-0x1f8)](_0x26f860,_0x536d0d){const _0x4592e6={_0x2dda18:0x3a5,_0x153bf0:0x447,_0x56573d:0x41d,_0x36c58d:0x4b2,_0x461bd6:0x43b,_0x4a12d9:0x3e9,_0x3e125e:0x49e,_0x42847a:0x3d3,_0x1de441:0x4e8},_0x10ec03={_0x9d3714:0x1ac,_0x54903e:0x1f3},_0x115c81={_0x476484:0x4b};function _0x121cc0(_0x420241,_0x51ed9e,_0x5d5308,_0x2e7d83){return _0x532739(_0x420241,_0x51ed9e-0x1a4,_0x5d5308-_0x115c81._0x476484,_0x2e7d83-0xa1);}function _0x5317fb(_0x560e5d,_0x14a9df,_0x268fe0,_0x19382c){return _0x532739(_0x268fe0,_0x560e5d-0x58b,_0x268fe0-_0x10ec03._0x9d3714,_0x19382c-_0x10ec03._0x54903e);}return _0x536d0d[_0x5317fb(_0x4592e6._0x2dda18,_0x4592e6._0x153bf0,0x352,_0x4592e6._0x56573d)]===_0x5317fb(_0x4592e6._0x36c58d,_0x4592e6._0x461bd6,0x53e,_0x4592e6._0x4a12d9)?this[_0x5317fb(_0x4592e6._0x3e125e,_0x4592e6._0x42847a,0x527,_0x4592e6._0x1de441)]:this['completeSurface'];}};function trimTrailingSlashes(_0x48b641){const _0x34f226={_0x12b8dc:0xec,_0x335486:0x9e},_0x456d2a={_0xb81f36:0x1a0,_0x1ca81d:0x412};function _0x223ec7(_0x5e1eef,_0x252db7,_0x288e3c,_0x5c5e01){return _0x22e674(_0x5e1eef-0xca,_0x252db7-_0x456d2a._0xb81f36,_0x5c5e01,_0x252db7- -_0x456d2a._0x1ca81d);}return _0x48b641[_0x223ec7(-_0x34f226._0x12b8dc,-0x9,_0x34f226._0x335486,0x9f)](/\/+$/,'');}function resolveApiCredential(_0x1e9afd,_0x35c3ca){const _0x51c09f={_0x405120:0x131,_0x2103fb:0xcb,_0x32d8a3:0x103,_0x1b269d:0x18a},_0x213c8a={_0x2e2977:0x217,_0x808361:0x171},_0x4ea42f={_0x31222f:0x19b,_0xe4de6d:0x1b4};function _0x12afd0(_0x441d0b,_0x2fbbc3,_0x4813d0,_0x1789d1){return _0x22e674(_0x441d0b-_0x4ea42f._0x31222f,_0x2fbbc3-0x1a7,_0x4813d0,_0x441d0b-_0x4ea42f._0xe4de6d);}if(_0x35c3ca?.['credential'])return _0x35c3ca[_0x5ade70(_0x51c09f._0x405120,0xd6,_0x51c09f._0x2103fb,0x125)];if(!_0x1e9afd)return void 0x0;function _0x5ade70(_0x576d84,_0xdc93b,_0x103bab,_0x1337ac){return _0x532739(_0x1337ac,_0xdc93b-_0x213c8a._0x2e2977,_0x103bab-0x9f,_0x1337ac-_0x213c8a._0x808361);}return{'kind':_0x5ade70(0x13d,_0x51c09f._0x32d8a3,_0x51c09f._0x1b269d,0x7d),'value':_0x1e9afd};}function resolveSessionBaseUrl(_0x24a4c6,_0x59be46){const _0x378781={_0x4ab435:0x464};function _0x10b271(_0xdf414f,_0x5194f7,_0x3e9270,_0x19b646){return _0x22e674(_0xdf414f-0x1d1,_0x5194f7-0xfc,_0x3e9270,_0x5194f7-0x15b);}return trimTrailingSlashes(_0x59be46?.[_0x10b271(0x415,_0x378781._0x4ab435,0x533,0x4c7)]?.['api']??_0x24a4c6);}var model_registry_default={'defaultMaxTokens':0x4000,'defaultModel':_0x22e674(0x3d0,0x3bb,0x42b,0x35d),'cliDefaultModel':_0x22e674(0x514,0x551,0x4c0,0x476),'providers':{'anthropic':{'label':_0x22e674(0x46d,0x4fc,0x4c7,0x46b),'baseUrl':_0x22e674(0x411,0x383,0x3ae,0x437),'surface':_0x22e674(0x400,0x505,0x47c,0x47f),'authScheme':_0x532739(-0x120,-0xea,-0x81,-0x32),'defaultModel':_0x22e674(0x476,0x568,0x4cf,0x4a0),'defaultModels':['claude-sonnet-4-20250514',_0x22e674(0x39c,0x46e,0x46c,0x3c4)],'supportsModelFetch':![],'models':{'claude-sonnet-4-20250514':{'contextWindow':0x30d40,'maxOutput':0x3e80},'claude-3-5-sonnet-20241022':{'contextWindow':0x30d40,'maxOutput':0x2000}}},'zai':{'label':_0x532739(-0x62,-0x78,-0x156,-0x12),'baseUrl':'https://api.z.ai/api/coding/paas/v4','anthropicBaseUrl':_0x22e674(0x324,0x42b,0x3ae,0x3cc),'surface':_0x22e674(0x4ba,0x4d8,0x4d4,0x47f),'authScheme':_0x22e674(0x403,0x42d,0x2e9,0x3a7),'defaultModel':_0x532739(-0x156,-0x8c,-0x5c,-0x8b),'defaultModels':[_0x532739(-0x1e0,-0x122,-0x140,-0xe1),_0x532739(-0x11d,-0x8c,-0x45,-0xba),_0x532739(-0x92,-0x174,-0x1b4,-0x1c1),'glm-4.5'],'supportsModelFetch':![],'models':{'glm-5.1':{'contextWindow':0x30d40,'maxOutput':0x1f400},'glm-4.7':{'contextWindow':0x30d40,'maxOutput':0x1f400},'glm-4.6':{'contextWindow':0x30d40,'maxOutput':0x1f400},'glm-4.5':{'contextWindow':0x30d40,'maxOutput':0x1f400}}},'openrouter':{'label':_0x22e674(0x478,0x420,0x379,0x3de),'baseUrl':_0x532739(-0x166,-0x1ce,-0xfc,-0x1bc),'surface':_0x532739(-0x12a,-0x1b1,-0x12e,-0x1fc),'authScheme':_0x532739(-0x22e,-0x15b,-0x169,-0xd8),'defaultModel':_0x22e674(0x32b,0x306,0x3b6,0x396),'defaultModels':[_0x22e674(0x3d6,0x421,0x454,0x396),'openai/gpt-4o-mini'],'supportsModelFetch':!![],'models':{'anthropic/claude-3.5-sonnet':{'contextWindow':0x30d40,'maxOutput':0x2000},'openai/gpt-4o':{'contextWindow':0x1f400,'maxOutput':0x4000},'openai/gpt-4.1':{'contextWindow':0x1f400,'maxOutput':0x8000}}},'github':{'label':'GitHub\x20Models\x20/\x20Copilot','surface':'openai-responses','defaultModel':'gpt-5.2-codex','defaultModels':['claude-sonnet-4.5',_0x22e674(0x399,0x40a,0x42b,0x423),_0x532739(0x6,-0xc4,-0x1a2,-0xfa),_0x22e674(0x3af,0x499,0x467,0x3d4),_0x532739(-0x23b,-0x1c3,-0x17a,-0x1f4),'claude-sonnet-4'],'supportsModelFetch':!![],'models':{'claude-sonnet-4.5':{'contextWindow':0x30d40,'maxOutput':0x3e80,'surface':_0x532739(-0x7,-0x83,0x62,-0xa7)},'claude-sonnet-4':{'contextWindow':0x30d40,'maxOutput':0x3e80,'surface':_0x532739(-0x10f,-0x83,0x20,-0xdf)},'gpt-5.1-codex':{'contextWindow':0x30d40,'maxOutput':0x186a0},'gpt-5':{'contextWindow':0x30d40,'maxOutput':0x186a0},'gpt-5-mini':{'contextWindow':0x30d40,'maxOutput':0x186a0},'gpt-4.1':{'contextWindow':0x1f400,'maxOutput':0x4000},'gpt-4o':{'contextWindow':0x1f400,'maxOutput':0x4000}}},'openai':{'label':_0x532739(-0x199,-0x204,-0x126,-0x150),'baseUrl':_0x22e674(0x587,0x3d3,0x463,0x4ac),'surface':'openai-chat-completions','authScheme':_0x22e674(0x339,0x3e3,0x399,0x3a7),'defaultModel':_0x22e674(0x2ab,0x300,0x372,0x35d),'defaultModels':[],'supportsModelFetch':![],'models':{}},'deepseek':{'label':_0x22e674(0x3e8,0x44e,0x3bd,0x412),'baseUrl':_0x532739(-0x14e,-0x1e0,-0x255,-0x12a),'surface':'anthropic-messages','authScheme':'bearer','defaultModel':_0x532739(-0x1b0,-0x19b,-0x168,-0x18e),'defaultModels':['deepseek-v4-pro',_0x22e674(0x47b,0x4e3,0x3b3,0x43a)],'supportsModelFetch':![],'models':{'deepseek-v4-pro':{'contextWindow':0xf4240,'maxOutput':0x5dc00},'deepseek-v4-flash':{'contextWindow':0xf4240,'maxOutput':0x5dc00}}},'minimax':{'label':'MiniMax','baseUrl':'https://api.minimax.io/anthropic','surface':'anthropic-messages','authScheme':_0x532739(-0x13c,-0x15b,-0x76,-0x193),'defaultModel':_0x22e674(0x3d7,0x345,0x2af,0x2fd),'defaultModels':[_0x22e674(0x361,0x2b4,0x289,0x2fd)],'supportsModelFetch':![],'models':{'MiniMax-M3':{'contextWindow':0xf4240,'maxOutput':0x7d000},'MiniMax-M2.7':{'contextWindow':0x32000,'maxOutput':0x7d00}}},'commandcode':{'label':'CommandCode','baseUrl':_0x22e674(0x393,0x2cc,0x2dc,0x369),'modelsBaseUrl':_0x22e674(0x3e3,0x4ac,0x45b,0x456),'surface':_0x22e674(0x415,0x46a,0x3eb,0x47f),'authScheme':'x-api-key','defaultModel':_0x532739(0x5a,-0x62,0x59,0x1f),'defaultModels':[],'supportsModelFetch':!![],'models':{}},'xiaomi':{'label':_0x532739(-0x23d,-0x1f1,-0x1b6,-0x190),'baseUrl':_0x22e674(0x524,0x4b5,0x536,0x4a9),'modelsBaseUrl':_0x532739(-0x13e,-0x8d,-0x171,-0x8b),'surface':_0x22e674(0x3a0,0x3f6,0x551,0x47f),'authScheme':_0x532739(-0x1a,-0xea,-0x9a,-0x188),'defaultModel':'mimo-v2.5-pro','defaultModels':[],'supportsModelFetch':!![],'models':{}}}},data=model_registry_default;function findProviderKey(_0x3aab37){const _0x56f960={_0x43cc94:0x9c,_0x597b31:0x6e,_0x29ff34:0x2a5,_0x1f336c:0x2f5,_0x4911ad:0x102,_0x35e2ff:0x82,_0x1031b2:0x10a,_0x1d329a:0x1b},_0x4031a5={_0x54fd55:0x146,_0x3edc5d:0x3d},_0x17fabb={_0x15aa13:0x213,_0x2f7b64:0x1f1},_0x3c930f=_0x3aab37[_0x5311c7(-0x1e,-_0x56f960._0x43cc94,-_0x56f960._0x597b31,0x16)]();function _0x5311c7(_0x2d2cdb,_0x1599b0,_0xfa1ef3,_0x1f9874){return _0x532739(_0x2d2cdb,_0x1f9874-_0x17fabb._0x15aa13,_0xfa1ef3-_0x17fabb._0x2f7b64,_0x1f9874-0xc3);}function _0x2b8d72(_0x56f65f,_0x2cc2c4,_0x4ebe1f,_0x42d28b){return _0x22e674(_0x56f65f-_0x4031a5._0x54fd55,_0x2cc2c4-_0x4031a5._0x3edc5d,_0x42d28b,_0x2cc2c4- -0x93);}return Object[_0x2b8d72(_0x56f960._0x29ff34,_0x56f960._0x1f336c,0x2c7,_0x56f960._0x29ff34)](data[_0x5311c7(_0x56f960._0x4911ad,0x87,_0x56f960._0x35e2ff,_0x56f960._0x1031b2)])[_0x5311c7(_0x56f960._0x1d329a,0x10,0x7b,0x55)](_0x2a4cb5=>_0x2a4cb5['toLowerCase']()===_0x3c930f);}function getProviderProfile(_0x2636db){const _0x4faa09={_0x85323e:0x2ca,_0x523fc9:0x280,_0xcb7141:0x2d8,_0x3f066e:0x2fe,_0x1a0205:0x2f1,_0x5ae47e:0x318,_0x14d700:0x3e8,_0x5a6da5:0x363,_0x20791c:0x44a,_0x553975:0x319,_0x32857e:0x2ae,_0x4ac4b1:0x2e1,_0x501f8c:0x2b4,_0x2a423f:0x3d0,_0x791874:0x2f3,_0x192dae:0x289,_0x37f316:0x2e6,_0x4ce97b:0x2de,_0x222852:0x30c},_0x8f0620={_0x3685b8:0x120},_0x5ec40a={_0x4a8412:0x477,_0x29835f:0x10e},_0x457cb2=findProviderKey(_0x2636db);if(!_0x457cb2)return void 0x0;const _0x235d8e=data['providers'][_0x457cb2],_0x2ad09a={};function _0x2d8777(_0x32dd85,_0x3824cc,_0x16ed38,_0x2c727b){return _0x532739(_0x32dd85,_0x16ed38-_0x5ec40a._0x4a8412,_0x16ed38-_0x5ec40a._0x29835f,_0x2c727b-0x7d);}for(const [_0x2c52bb,_0x53464b]of Object['entries'](_0x235d8e[_0x3fa9f0(0x29b,_0x4faa09._0x85323e,_0x4faa09._0x523fc9,_0x4faa09._0xcb7141)])){_0x2ad09a[_0x2c52bb]=_0x53464b;}function _0x3fa9f0(_0x1dc239,_0x268fd0,_0x270804,_0x3aec1a){return _0x532739(_0x3aec1a,_0x270804-0x45d,_0x270804-_0x8f0620._0x3685b8,_0x3aec1a-0x4a);}return{'label':_0x235d8e[_0x2d8777(0x21f,0x305,_0x4faa09._0x3f066e,_0x4faa09._0x1a0205)],'baseUrl':_0x235d8e[_0x3fa9f0(_0x4faa09._0x5ae47e,0x3b7,_0x4faa09._0x14d700,_0x4faa09._0x5a6da5)],'modelsBaseUrl':_0x235d8e[_0x2d8777(0x31e,_0x4faa09._0x20791c,0x403,0x3c1)],'anthropicBaseUrl':_0x235d8e[_0x3fa9f0(_0x4faa09._0x553975,_0x4faa09._0x32857e,_0x4faa09._0x4ac4b1,_0x4faa09._0x501f8c)],'surface':_0x235d8e['surface'],'authScheme':_0x235d8e[_0x2d8777(0x3aa,0x3ea,0x37f,_0x4faa09._0x2a423f)],'defaultModel':_0x235d8e[_0x2d8777(0x228,0x31b,_0x4faa09._0x791874,0x25d)],'defaultModels':_0x235d8e[_0x2d8777(0x223,_0x4faa09._0x192dae,0x283,_0x4faa09._0x37f316)]??[],'supportsModelFetch':_0x235d8e[_0x2d8777(0x3bb,_0x4faa09._0x4ce97b,_0x4faa09._0x222852,0x398)]??![],'models':_0x2ad09a};}function getModelProfile(_0x20e514,_0x33bf4c){const _0x5e68d7={_0x5778dd:0x18a,_0x479cdb:0x212,_0x2b569a:0x23f,_0x54511d:0x301,_0x312a68:0x3d3,_0x383016:0x34d},_0x6d2f1c={_0x58cbb9:0x24},_0x12c1f0={_0x3f9f21:0x305,_0xc5c403:0x114};function _0x3b68e4(_0x224d45,_0x5790c5,_0x19de90,_0x1195b0){return _0x532739(_0x5790c5,_0x224d45-_0x12c1f0._0x3f9f21,_0x19de90-0x3e,_0x1195b0-_0x12c1f0._0xc5c403);}const _0x533d44=findProviderKey(_0x20e514);function _0x112f43(_0x14306d,_0x111c4e,_0x335731,_0x133ed3){return _0x22e674(_0x14306d-0xe2,_0x111c4e-0x14f,_0x335731,_0x14306d- -_0x6d2f1c._0x58cbb9);}if(!_0x533d44)return void 0x0;return data[_0x3b68e4(0x1fc,_0x5e68d7._0x5778dd,_0x5e68d7._0x479cdb,_0x5e68d7._0x2b569a)][_0x533d44][_0x112f43(_0x5e68d7._0x54511d,_0x5e68d7._0x312a68,_0x5e68d7._0x383016,0x22f)][_0x33bf4c];}function resolveModelProfile(_0x205c72,_0x5ccc61){const _0x29b6ea={_0x5cc278:0x1e,_0x272884:0xbf,_0x43dcd7:0xab,_0x3aa5ca:0xfe,_0x2fa9f1:0x165,_0x414204:0x99,_0x4ae0c3:0x140,_0x173b93:0x97,_0x232e37:0x9,_0x24487c:0x97,_0x5c9c56:0xa5,_0xa0e417:0x77,_0x2c08e7:0x3a,_0x394063:0x17c,_0x532f37:0xc8,_0x4386d7:0x9e,_0x43e589:0x62,_0x1140ed:0x11,_0x6f9523:0xc,_0x21cbfd:0x6c,_0x4f7ea4:0x41,_0x407b32:0xbc,_0x5f50a0:0x2},_0xe1dd16={_0x451d20:0x2b,_0x4135ac:0x2e,_0x2a49f8:0x34e},_0x5c26e5={_0x59ebab:0x173},_0x29735a=findProviderKey(_0x205c72);if(!_0x29735a)return void 0x0;function _0x2a213b(_0x49d0d5,_0xbf2b3e,_0x1c8c2a,_0x43b4c9){return _0x532739(_0xbf2b3e,_0x1c8c2a-_0x5c26e5._0x59ebab,_0x1c8c2a-0xe,_0x43b4c9-0x10a);}function _0x34893b(_0x3bbc57,_0x2d19d3,_0x4df00c,_0x1707c3){return _0x22e674(_0x3bbc57-_0xe1dd16._0x451d20,_0x2d19d3-_0xe1dd16._0x4135ac,_0x3bbc57,_0x1707c3- -_0xe1dd16._0x2a49f8);}const _0x7862f2=data[_0x34893b(0xf,-_0x29b6ea._0x5cc278,_0x29b6ea._0x272884,_0x29b6ea._0x43dcd7)][_0x29735a],_0x14203b=_0x7862f2['models'][_0x5ccc61];return{'label':_0x7862f2['label'],'baseUrl':_0x7862f2[_0x2a213b(0x1a1,0xac,_0x29b6ea._0x3aa5ca,0x1bd)],'modelsBaseUrl':_0x7862f2[_0x34893b(_0x29b6ea._0x2fa9f1,0xc5,_0x29b6ea._0x414204,_0x29b6ea._0x4ae0c3)],'anthropicBaseUrl':_0x7862f2[_0x2a213b(-0x9d,-_0x29b6ea._0x173b93,-_0x29b6ea._0x232e37,_0x29b6ea._0x24487c)],'surface':_0x14203b?.[_0x34893b(_0x29b6ea._0x5c9c56,_0x29b6ea._0xa0e417,_0x29b6ea._0x2c08e7,0xa6)]??_0x7862f2[_0x34893b(0x180,0xbe,0x108,0xa6)],'authScheme':_0x7862f2[_0x34893b(_0x29b6ea._0x394063,_0x29b6ea._0x532f37,_0x29b6ea._0x4386d7,0xbc)],'defaultModel':_0x7862f2[_0x2a213b(-_0x29b6ea._0x43e589,0xc2,-_0x29b6ea._0x1140ed,-_0x29b6ea._0x6f9523)],'defaultModels':_0x7862f2[_0x2a213b(-0x118,-_0x29b6ea._0x21cbfd,-0x81,-0x159)],'supportsModelFetch':_0x7862f2[_0x34893b(0x73,-0x3,_0x29b6ea._0x4f7ea4,0x49)],'contextWindow':_0x14203b?.[_0x34893b(_0x29b6ea._0x407b32,0xfe,0xfe,0x111)],'maxOutput':_0x14203b?.[_0x2a213b(0x54,0xd2,0x54,_0x29b6ea._0x5f50a0)]};}function getDefaultMaxTokens(){const _0x5bfa8a={_0x187a97:0x187,_0x586072:0x2c1},_0x93204={_0x11ff17:0x41f,_0x19a6ce:0x72};function _0x31b2cf(_0x8aa6a9,_0x3d60ad,_0x455f17,_0x579cee){return _0x532739(_0x8aa6a9,_0x455f17-_0x93204._0x11ff17,_0x455f17-_0x93204._0x19a6ce,_0x579cee-0x18);}return data[_0x31b2cf(_0x5bfa8a._0x187a97,_0x5bfa8a._0x586072,0x25f,0x334)];}function getDefaultModel(){const _0xf10053={_0x2f2acd:0x1b0,_0x4291f7:0x205,_0x23939c:0x141},_0x4a9f9d={_0x5cacb2:0x43};function _0x32d23b(_0x30dfad,_0x54e56f,_0x59016b,_0x59b43b){return _0x532739(_0x54e56f,_0x59b43b-_0x4a9f9d._0x5cacb2,_0x59016b-0x166,_0x59b43b-0x3f);}return data[_0x32d23b(-_0xf10053._0x2f2acd,-0x15a,-_0xf10053._0x4291f7,-_0xf10053._0x23939c)];}function getCliDefaultModel(){const _0x443a8b={_0x549707:0xe3,_0x256fa3:0x220},_0x2f6d8f={_0x2dd87f:0xed};function _0x1c86e2(_0x292b74,_0x19ec8e,_0x1f9449,_0x299a15){return _0x532739(_0x19ec8e,_0x292b74- -0x48,_0x1f9449-0x129,_0x299a15-_0x2f6d8f._0x2dd87f);}return data[_0x1c86e2(-0x162,-_0x443a8b._0x549707,-0xdf,-_0x443a8b._0x256fa3)];}function getProviderLabel(_0x565e78){const _0x4451ad={_0x4c2caa:0x5ae,_0xa10bc7:0x695,_0x4de604:0x647},_0x5135be={_0x59f7c2:0x225},_0x2f9cf3={_0x535a3a:0xcb};function _0x4c3950(_0x1d64da,_0x45ef8d,_0x46989d,_0x1bd9a9){return _0x22e674(_0x1d64da-_0x2f9cf3._0x535a3a,_0x45ef8d-0x152,_0x1bd9a9,_0x45ef8d- -0x4e9);}const _0x17e654=findProviderKey(_0x565e78);function _0x278bc4(_0x37f4f2,_0x5ae5e2,_0x3c6721,_0x4d6f88){return _0x22e674(_0x37f4f2-0x32,_0x5ae5e2-0x1a2,_0x4d6f88,_0x5ae5e2-_0x5135be._0x59f7c2);}return _0x17e654?data[_0x4c3950(-0x1d0,-0xf0,-0xda,-0x5e)][_0x17e654][_0x278bc4(0x538,_0x4451ad._0x4c2caa,_0x4451ad._0xa10bc7,_0x4451ad._0x4de604)]:void 0x0;}function _0x22e674(_0x1781bc,_0x9a846f,_0x31358b,_0x4bb2aa){const _0x580ccf={_0x209e6d:0x164};return _0x17ab(_0x4bb2aa-_0x580ccf._0x209e6d,_0x31358b);}function getProviderDefaultModel(_0x44389c){const _0x3e118d={_0x554664:0x463,_0x28696c:0x522,_0x52efb6:0x498,_0xa9fa08:0x542},_0x1e0c2d={_0x21da80:0x5};function _0x2cf7b2(_0x3a3ae6,_0x4ba04f,_0x159ed4,_0x58233d){return _0x532739(_0x58233d,_0x4ba04f-0x62b,_0x159ed4-_0x1e0c2d._0x21da80,_0x58233d-0x120);}const _0x112407=findProviderKey(_0x44389c);function _0x5e52ba(_0x358a35,_0x28d0bf,_0x145e68,_0x2fd8b4){return _0x532739(_0x358a35,_0x2fd8b4-0x73f,_0x145e68-0x18f,_0x2fd8b4-0x53);}if(!_0x112407)return void 0x0;return data[_0x2cf7b2(_0x3e118d._0x554664,_0x3e118d._0x28696c,0x535,_0x3e118d._0x52efb6)][_0x112407][_0x2cf7b2(0x4b8,0x4a7,_0x3e118d._0xa9fa08,0x3e8)];}function getProviderDefaultModels(_0x240039){const _0x32e926={_0x1e000f:0x2f7,_0x34bada:0x417},_0x296af0={_0x17e0e:0x196},_0x57196f=findProviderKey(_0x240039);if(!_0x57196f)return[];function _0x1916bc(_0x12bdd4,_0x15a50a,_0x16a79f,_0x58a4fb){return _0x22e674(_0x12bdd4-0x1ec,_0x15a50a-_0x296af0._0x17e0e,_0x58a4fb,_0x15a50a- -0xbb);}return[...data[_0x1916bc(0x33b,0x33e,_0x32e926._0x1e000f,_0x32e926._0x34bada)][_0x57196f]['defaultModels']??[]];}function providerSupportsModelFetch(_0x20d616){const _0x858c9c={_0x11ba4a:0x597,_0x5810ea:0x498},_0x136587={_0x427a47:0x110,_0x3fb7a1:0x67},_0x2c4d4c={_0x3c6218:0x129,_0x5d116d:0x19e};function _0x179a8e(_0x2b4c16,_0x5b9a73,_0x28e249,_0x4fcbbf){return _0x22e674(_0x2b4c16-0x106,_0x5b9a73-_0x2c4d4c._0x3c6218,_0x28e249,_0x5b9a73-_0x2c4d4c._0x5d116d);}const _0x27d3a1=findProviderKey(_0x20d616);if(!_0x27d3a1)return![];function _0x835ce8(_0x2822e5,_0x3b7128,_0x423f81,_0x5206c2){return _0x22e674(_0x2822e5-_0x136587._0x427a47,_0x3b7128-0x115,_0x5206c2,_0x3b7128- -_0x136587._0x3fb7a1);}return data[_0x179a8e(0x632,_0x858c9c._0x11ba4a,0x65f,0x4d5)][_0x27d3a1][_0x179a8e(0x584,0x535,0x55c,_0x858c9c._0x5810ea)]??![];}function getOnboardingProviderKeys(){const _0x109ed2={_0x4822ed:0x214,_0x3b2f6c:0x1d4},_0x2a5f30={_0x1bd18f:0x183},_0x545d06={_0x3b759a:0xba,_0x17f3ca:0x11d,_0x1e76ac:0x181};function _0x62d2e3(_0x3c7b6b,_0x1eaeaa,_0x35425a,_0x101d76){return _0x22e674(_0x3c7b6b-_0x545d06._0x3b759a,_0x1eaeaa-_0x545d06._0x17f3ca,_0x3c7b6b,_0x35425a- -_0x545d06._0x1e76ac);}function _0x58c1cc(_0x4e280c,_0x4cad45,_0x275481,_0x4fa116){return _0x532739(_0x4fa116,_0x275481-0x1f4,_0x275481-0x43,_0x4fa116-_0x2a5f30._0x1bd18f);}return Object[_0x62d2e3(_0x109ed2._0x4822ed,0x293,0x207,_0x109ed2._0x3b2f6c)](data[_0x62d2e3(0x19e,0x1b8,0x278,0x2e9)]);}function toErrorMessage(_0x1404ac){const _0x3bbadc={_0x5d442e:0x19a,_0x49875f:0x2f4},_0x416b3e={_0x1b3a04:0x527},_0x48f6be={_0x1c50e8:0x1a1,_0x3c79c8:0xde};if(_0x1404ac instanceof Error&&_0x1404ac['message']['length']>0x0)return _0x1404ac[_0x4b567a(0x249,0x1c2,0x237,_0x3bbadc._0x5d442e)];function _0x4b567a(_0x3a15f2,_0x40ec0d,_0xf8db61,_0x181fe9){return _0x22e674(_0x3a15f2-0x126,_0x40ec0d-_0x48f6be._0x1c50e8,_0x181fe9,_0xf8db61- -_0x48f6be._0x3c79c8);}function _0x1eb4a4(_0x40076b,_0x34d3fd,_0xf0739e,_0x46dc7b){return _0x532739(_0x34d3fd,_0x46dc7b-_0x416b3e._0x1b3a04,_0xf0739e-0xf8,_0x46dc7b-0x152);}return _0x1eb4a4(_0x3bbadc._0x49875f,0x243,0x3ea,0x328);}function createDefaultWebSocketFactory(){const _0x3b7b83={_0x5a80ac:0x538};return({headers:_0x376d9e,url:_0x224356})=>{const _0x2c240f=globalThis[_0x29189c(0x5fc,0x506,0x469,_0x3b7b83._0x5a80ac)];function _0x29189c(_0x5dc917,_0x3c482c,_0x1e1762,_0x1bae07){return _0x17ab(_0x1bae07-0x3a7,_0x5dc917);}return new _0x2c240f(_0x224356,{'headers':_0x376d9e,'protocols':[]});};}async function*iterateSseEvents(_0x20f2b1,_0x8cf802){const _0x12e1c3={_0x3d46d7:0x29c,_0x16b9fa:0x3f7,_0x3610aa:0x2c0,_0x25a2ef:0x1b0,_0x5f3624:0x20f,_0x299dbf:0x342,_0xeaff71:0x1e5,_0x13b6a8:0x13a,_0x20e6c1:0x201,_0x2b7379:0x1fe,_0x360db7:0x2ac,_0x516b42:0x267,_0x3f8a61:0x2c2,_0x297f86:0x263,_0x478719:0x1fc,_0x372df5:0x247,_0x2bf765:0x68,_0x202a8a:0xda,_0x1ab393:0xb5,_0x26d179:0x6e},_0x3cd812={_0x5f51a4:0x3b6,_0x112702:0x131},_0x104500={_0x83889b:0x549,_0x400c72:0x4c9,_0x544786:0x624,_0x47b113:0x6bf,_0x4b552d:0x67e,_0x544f95:0x721},_0x3f083b=_0x20f2b1['body']?.[_0x58b984(_0x12e1c3._0x3d46d7,_0x12e1c3._0x16b9fa,_0x12e1c3._0x3610aa,0x310)]();if(!_0x3f083b)return;const _0x340592=new TextDecoder(_0x552551(0x1a5,_0x12e1c3._0x25a2ef,_0x12e1c3._0x5f3624,0x157));let _0x50e6cb='';function _0x552551(_0x4d28ab,_0x11ddb5,_0x1683f5,_0x5bccec){return _0x532739(_0x11ddb5,_0x5bccec-0x226,_0x1683f5-0x137,_0x5bccec-0x181);}const _0x38642e=addAbortListener(_0x8cf802,()=>{const _0x809576={_0x54faee:0xec};function _0x166124(_0xf9aecd,_0x38bba5,_0x57bd93,_0x37778e){return _0x58b984(_0xf9aecd-0x29,_0x38bba5-0x125,_0x57bd93,_0xf9aecd-0x9c);}function _0x16ef1c(_0x305674,_0xc1f15b,_0x569a63,_0x558c0f){return _0x552551(_0x305674-_0x809576._0x54faee,_0x305674,_0x569a63-0x3,_0xc1f15b-0x532);}void _0x3f083b[_0x16ef1c(0x518,_0x104500._0x83889b,_0x104500._0x400c72,_0x104500._0x544786)](toAbortError(_0x8cf802?.[_0x16ef1c(_0x104500._0x47b113,_0x104500._0x4b552d,0x5c7,_0x104500._0x544f95)]))['catch'](()=>{});});function _0x58b984(_0x1f9ba3,_0x447c7a,_0x18ccc4,_0x454abd){return _0x532739(_0x18ccc4,_0x454abd-_0x3cd812._0x5f51a4,_0x18ccc4-_0x3cd812._0x112702,_0x454abd-0x57);}try{while(!![]){throwIfAborted(_0x8cf802);const {value:_0x58367e,done:_0x21737f}=await _0x3f083b['read']();throwIfAborted(_0x8cf802);if(_0x21737f)break;_0x50e6cb+=_0x340592['decode'](_0x58367e,{'stream':!![]});while(!![]){const _0x4c474f=_0x50e6cb['indexOf']('\x0a\x0a');if(_0x4c474f===-0x1)break;const _0x4ede32=_0x50e6cb[_0x58b984(0x394,_0x12e1c3._0x299dbf,0x2c7,0x346)](0x0,_0x4c474f);_0x50e6cb=_0x50e6cb['slice'](_0x4c474f+0x2),_0x4ede32['trim']()[_0x58b984(_0x12e1c3._0xeaff71,_0x12e1c3._0x13b6a8,_0x12e1c3._0x20e6c1,_0x12e1c3._0x2b7379)]>0x0&&(yield _0x4ede32);}}_0x50e6cb+=_0x340592[_0x58b984(_0x12e1c3._0x360db7,_0x12e1c3._0x516b42,_0x12e1c3._0x3f8a61,_0x12e1c3._0x297f86)](),throwIfAborted(_0x8cf802),_0x50e6cb[_0x58b984(0x1ac,_0x12e1c3._0x478719,_0x12e1c3._0x372df5,0x1ae)]()[_0x552551(-_0x12e1c3._0x2bf765,_0x12e1c3._0x202a8a,_0x12e1c3._0x1ab393,_0x12e1c3._0x26d179)]>0x0&&(yield _0x50e6cb);}finally{_0x38642e();}}async function waitForWebSocketOpen(_0x1cf48f,_0x3ff378){const _0xb2af07={_0x154038:0x29e,_0x4d5a12:0x23c,_0x3d22c7:0x30c},_0x258e75={_0x19c988:0xd2,_0x2de96a:0xc3,_0x1206bc:0x7a,_0xf37c63:0x25,_0x5d196b:0xe4,_0x5b60d4:0x86,_0x1023b9:0xd5,_0x1d0302:0xd2,_0x1923c9:0x84,_0x21fbf1:0xe0,_0x56a7ee:0x122,_0x3e9c11:0x7e,_0xf37d6e:0x136,_0x675564:0x5,_0x2e023c:0x13a},_0xfaae01={_0x2a18c4:0x3c7,_0x43a460:0x92},_0x249b57={_0x11ef34:0x45b,_0xd87674:0x4ce,_0x5ed1fb:0x4ae,_0x4c32f8:0x516,_0x38b735:0x43e,_0x3515bd:0x520,_0x2eb03e:0x449,_0x4f72d6:0x3ff,_0x28e227:0x31f,_0x164488:0x515,_0x53a77d:0x498,_0x88c749:0x457,_0xed9815:0x53c},_0x490bc0={_0x435474:0x191,_0x44e9ad:0x391,_0x4fcd46:0x386,_0x35b850:0x2b3,_0x1995f4:0x427,_0x24e782:0x3db,_0x38af02:0x4bf,_0x5df7e9:0x1b0,_0xf089a4:0x23e},_0x31f1a4={_0x6fe94f:0x538,_0x573eb1:0xd6,_0x46e4c9:0x0,_0x13e9ee:0x57,_0x51973f:0x6e},_0x3deb11={_0x47a0ea:0x25e,_0x68479:0x23},_0x436c77={_0x193aa8:0x46b,_0x39d451:0xd9};if(_0x1cf48f[_0x5b88ab(_0xb2af07._0x154038,_0xb2af07._0x4d5a12,0x313,_0xb2af07._0x3d22c7)]===WebSocket['OPEN']){throwIfAborted(_0x3ff378);return;}function _0x5b88ab(_0xa38e9a,_0xa6274f,_0xa198c3,_0x57792f){return _0x532739(_0x57792f,_0xa38e9a-_0x436c77._0x193aa8,_0xa198c3-_0x436c77._0x39d451,_0x57792f-0x7d);}throwIfAborted(_0x3ff378),await new Promise((_0x5f48c2,_0x46baff)=>{const _0x3f8840={_0xe7e207:0x182},_0x25856d={_0x4ad43d:0x45,_0xf460b4:0x66,_0x101833:0x6,_0x30ca56:0x18e,_0x330ef1:0x173,_0x378778:0x1c0},_0xc35bd4={_0x30164a:0x1f6},_0x61f084=()=>{_0x28b0fb(),_0x5f48c2();},_0x7f29b8=_0xc1c3dc=>{function _0xe0e349(_0x34d18f,_0x3e18e1,_0x4b87f6,_0x4fb95f){return _0x17ab(_0x4b87f6- -0x2ab,_0x3e18e1);}function _0x3ab62f(_0x2725f5,_0x5bdbaf,_0x117d13,_0x58e501){return _0x17ab(_0x2725f5- -_0xc35bd4._0x30164a,_0x5bdbaf);}_0x28b0fb(),_0x46baff(new Error(_0xc1c3dc[_0x3ab62f(-_0x25856d._0x4ad43d,_0x25856d._0xf460b4,-0xc0,_0x25856d._0x101833)]||_0xe0e349(-_0x25856d._0x30ca56,-_0x25856d._0x330ef1,-0x10c,-_0x25856d._0x378778)));};function _0x377360(_0x3f5392,_0x2ca972,_0x5b4722,_0x5c12e2){return _0x5b88ab(_0x5c12e2- -_0x3deb11._0x47a0ea,_0x2ca972-0x1f,_0x5b4722-_0x3deb11._0x68479,_0x3f5392);}const _0xaf5583=_0x460f93=>{function _0x169e4(_0x5140f2,_0x3cf36c,_0x3733c6,_0x92df38){return _0x17ab(_0x92df38- -_0x3f8840._0xe7e207,_0x3cf36c);}_0x28b0fb();const _0x421e3c=_0x460f93;function _0x2fa09c(_0x4e7ba0,_0x51adb7,_0x26a2a0,_0x14bfb5){return _0x17ab(_0x14bfb5-0x2d9,_0x26a2a0);}_0x46baff(new Error(_0x421e3c[_0x2fa09c(_0x31f1a4._0x6fe94f,0x5aa,0x4bf,0x59d)]||_0x169e4(_0x31f1a4._0x573eb1,_0x31f1a4._0x46e4c9,-_0x31f1a4._0x13e9ee,_0x31f1a4._0x51973f)));},_0xb5785f=()=>{const _0x3ca6a8={_0x172cf6:0x86};function _0x2db958(_0x579f1f,_0xe96255,_0x5b61b9,_0x51d1e0){return _0x17ab(_0x51d1e0- -_0x3ca6a8._0x172cf6,_0xe96255);}_0x28b0fb();_0x1cf48f[_0x2db958(_0x490bc0._0x435474,0x13f,0x217,0x14b)]===WebSocket[_0x2db958(_0x490bc0._0x44e9ad,_0x490bc0._0x4fcd46,0x354,_0x490bc0._0x35b850)]&&_0x1cf48f[_0x353a80(0x37f,_0x490bc0._0x1995f4,_0x490bc0._0x24e782,0x4b7)](0x3e8,_0x353a80(0x41a,0x4fd,0x5b0,_0x490bc0._0x38af02));function _0x353a80(_0xd3bccf,_0x146f2d,_0x3e5330,_0xdea98){return _0x17ab(_0x146f2d-0x212,_0xdea98);}_0x46baff(toAbortError(_0x3ff378?.[_0x2db958(0x2e1,_0x490bc0._0x5df7e9,0x183,_0x490bc0._0xf089a4)]));},_0x28b0fb=()=>{const _0x47f21a={_0x18e734:0x227};_0x1cf48f[_0x491db5(_0x249b57._0x11ef34,_0x249b57._0xd87674,0x56f,_0x249b57._0x5ed1fb)](_0x491db5(_0x249b57._0x4c32f8,_0x249b57._0x38b735,_0x249b57._0x3515bd,_0x249b57._0x2eb03e),_0x61f084);function _0x491db5(_0x44e9eb,_0x28a9fa,_0x23b386,_0x5a56ff){return _0x17ab(_0x28a9fa-_0x47f21a._0x18e734,_0x23b386);}_0x1cf48f[_0x491db5(0x56a,_0x249b57._0xd87674,0x481,0x5b2)](_0x491db5(0x333,_0x249b57._0x4f72d6,_0x249b57._0x4f72d6,_0x249b57._0x28e227),_0x7f29b8);function _0x5d7163(_0xacfead,_0x201f6c,_0x273b74,_0x22a03e){return _0x17ab(_0x22a03e-0x34c,_0x201f6c);}_0x1cf48f['removeEventListener'](_0x491db5(0x3a3,0x43c,_0x249b57._0x164488,0x3c9),_0xaf5583),_0x3ff378?.['removeEventListener'](_0x491db5(_0x249b57._0x53a77d,_0x249b57._0x88c749,0x3b1,_0x249b57._0xed9815),_0xb5785f);};function _0x381ff7(_0x340349,_0x51bbbe,_0x3c9771,_0x2ef7f1){return _0x5b88ab(_0x51bbbe- -_0xfaae01._0x2a18c4,_0x51bbbe-_0xfaae01._0x43a460,_0x3c9771-0x155,_0x340349);}_0x1cf48f[_0x381ff7(-0x115,-_0x258e75._0x19c988,-_0x258e75._0x2de96a,-_0x258e75._0x1206bc)](_0x377360(-_0x258e75._0xf37c63,0x17,_0x258e75._0x5d196b,_0x258e75._0x5b60d4),_0x61f084),_0x1cf48f[_0x381ff7(-_0x258e75._0x1023b9,-_0x258e75._0x1d0302,-_0x258e75._0x1923c9,-_0x258e75._0x21fbf1)](_0x381ff7(-0x166,-_0x258e75._0x56a7ee,-_0x258e75._0x3e9c11,-_0x258e75._0xf37d6e),_0x7f29b8),_0x1cf48f[_0x381ff7(-_0x258e75._0x675564,-0xd2,-_0x258e75._0x2e023c,-0x125)]('close',_0xaf5583),_0x3ff378?.['addEventListener'](_0x377360(0x142,0x28,0x11b,0x9f),_0xb5785f,{'once':!![]});});}function iterateWebSocketMessages(_0x683ef,_0x47db66){const _0x464360={_0x11ed9c:0xe1,_0x5d6c41:0x7f,_0x562fc1:0x72,_0x428f6b:0xcf,_0x470036:0x4b,_0x1f5f99:0x4f9,_0x325f3e:0x511,_0xc6e215:0x55d,_0x546157:0x4b9,_0x157954:0x4c2,_0x2d3923:0x4c0,_0x21db48:0x47e},_0x4b915c={_0x16d3ec:0x284,_0x2e1d2e:0x32c,_0x5ef0ff:0x3e1,_0xd35a37:0x319,_0x216e89:0x3bd,_0x15d994:0xe6,_0xae109e:0xc1,_0x46435e:0xf6,_0x1683e6:0x19c,_0x2a55e1:0x3d9,_0x6afdc8:0x433,_0x18d74d:0x37d,_0x5b0c6c:0x3db,_0x5405e5:0x3da},_0x40c359={_0x5d95ec:0x4d},_0x5be269={_0x494c07:0x3dc,_0x18bd82:0x152},_0x397a81={_0x5bfc4e:0x288,_0xe4a6b8:0x30d,_0x143130:0x57},_0x571fe0={_0x2da4c3:0x16e},_0x4c03c1={_0x4f9c23:0x24e,_0x5c081a:0x261,_0x5e7b62:0x25e,_0x134506:0x41b,_0x1f4f2f:0x369,_0x20a2d5:0x38b},_0x36baea={_0x21afcf:0x18c},_0x701ea9={_0x2ee6fd:0x4fe,_0x41c970:0x465,_0x4c9619:0x4ec,_0x3ba3c8:0x581},_0x422559={_0x2cb878:0x34d},_0x5422b4={_0x2c7626:0x335,_0x2f0cfb:0x2e5,_0x3eb7d4:0x40},_0xc29ddc=[];let _0x5b721c=![],_0x26c6a0,_0x1c9ef6;const _0x507256=_0x5b8f89=>{const _0x1e7dd7={_0x33c253:0x134};function _0x378154(_0x3105c0,_0x43ffd3,_0x37c55f,_0x467f0c){return _0x17ab(_0x467f0c-0xaf,_0x3105c0);}function _0x48b901(_0x215fbc,_0x159c0a,_0x1d50a7,_0x2974bb){return _0x17ab(_0x2974bb- -_0x1e7dd7._0x33c253,_0x215fbc);}const _0x269f3c=_0x5b8f89;try{_0xc29ddc[_0x378154(_0x5422b4._0x2c7626,0x300,0x2ce,_0x5422b4._0x2f0cfb)](JSON['parse'](String(_0x269f3c[_0x48b901(0xf6,_0x5422b4._0x3eb7d4,0x158,0x11b)]))),_0x1c9ef6?.(),_0x1c9ef6=void 0x0;}catch(_0x1597b5){_0x26c6a0=new Error('Invalid\x20WebSocket\x20message:\x20'+toErrorMessage(_0x1597b5)),_0x1c9ef6?.(),_0x1c9ef6=void 0x0;}},_0x1699ba=_0x23b32f=>{const _0x16272b={_0x3115ba:0x390},_0xcc00f6=_0x23b32f;function _0x47acd0(_0x4df0b6,_0x5379f6,_0x40915a,_0x1b16e6){return _0x17ab(_0x4df0b6-_0x422559._0x2cb878,_0x1b16e6);}_0x26c6a0=new Error(_0xcc00f6[_0x47acd0(_0x701ea9._0x2ee6fd,0x4e3,_0x701ea9._0x41c970,0x55a)]||_0x47acd0(_0x701ea9._0x4c9619,_0x701ea9._0x3ba3c8,0x44d,0x450));function _0xfdc08d(_0x2bd735,_0x1b2cd1,_0x2f0cd7,_0x355e45){return _0x17ab(_0x1b2cd1-_0x16272b._0x3115ba,_0x2f0cd7);}_0x1c9ef6?.(),_0x1c9ef6=void 0x0;},_0x48c825=_0xb02f65=>{const _0x15c7d2=_0xb02f65;!_0x5b721c&&_0x15c7d2[_0x62f85a(_0x4c03c1._0x4f9c23,_0x4c03c1._0x5c081a,_0x4c03c1._0x5e7b62,0x1c1)]!==0x3e8&&!_0x26c6a0&&(_0x26c6a0=new Error(_0x15c7d2[_0x3f59b7(_0x4c03c1._0x134506,0x49b,_0x4c03c1._0x1f4f2f,0x450)]||_0x62f85a(0x28d,0x358,_0x4c03c1._0x20a2d5,0x424)+_0x15c7d2[_0x62f85a(0x2fe,_0x4c03c1._0x5c081a,0x226,0x1c2)]));_0x5b721c=!![],_0x1c9ef6?.();function _0x3f59b7(_0x42f3e9,_0x207fec,_0x4e7851,_0x1aa003){return _0x17ab(_0x1aa003-_0x36baea._0x21afcf,_0x4e7851);}function _0x62f85a(_0xad00cc,_0x4d4ca7,_0x4f1fb4,_0x160833){return _0x17ab(_0x4d4ca7-0x9f,_0x160833);}_0x1c9ef6=void 0x0;};function _0x2e6eba(_0x413b0d,_0x442a15,_0x1527f5,_0x4a5ab0){return _0x532739(_0x1527f5,_0x413b0d-0x66f,_0x1527f5-0x4,_0x4a5ab0-0x1d);}function _0x11b510(_0xf0f4fd,_0x5a7816,_0x480472,_0x20ca04){return _0x532739(_0x5a7816,_0x20ca04-_0x571fe0._0x2da4c3,_0x480472-0x73,_0x20ca04-0x17a);}const _0x3f1858=addAbortListener(_0x47db66,()=>{_0x26c6a0=toAbortError(_0x47db66?.['reason']);_0x683ef[_0x543359(0x3b5,_0x397a81._0x5bfc4e,0x223,0x2e0)]===WebSocket['OPEN']&&_0x683ef[_0x543359(0x357,0x2ee,_0x397a81._0xe4a6b8,0x324)](0x3e8,_0x3c0e26(-0x2,-_0x397a81._0x143130,-0x39,0x0));function _0x543359(_0x5062a9,_0x33c730,_0x58d13d,_0xf258f){return _0x17ab(_0xf258f-0x10f,_0x58d13d);}function _0x3c0e26(_0x3048f0,_0x5ac29d,_0x574259,_0x620968){return _0x17ab(_0x5ac29d- -0x342,_0x574259);}_0x1c9ef6?.(),_0x1c9ef6=void 0x0;});return _0x683ef['addEventListener'](_0x11b510(0x4,-_0x464360._0x11ed9c,-0xa6,-_0x464360._0x5d6c41),_0x507256),_0x683ef[_0x11b510(-0x6d,_0x464360._0x562fc1,-0x5f,-0x8)](_0x11b510(-_0x464360._0x428f6b,-_0x464360._0x470036,-0xfb,-0x58),_0x1699ba),_0x683ef[_0x2e6eba(_0x464360._0x1f5f99,0x4f1,0x584,0x469)](_0x2e6eba(0x4e6,_0x464360._0x325f3e,_0x464360._0xc6e215,_0x464360._0x546157),_0x48c825),{async*[Symbol[_0x2e6eba(_0x464360._0x157954,0x515,_0x464360._0x2d3923,_0x464360._0x21db48)]](){function _0x8f71ea(_0x3b5ab1,_0x17a86a,_0x22e8b7,_0x39f080){return _0x2e6eba(_0x39f080- -_0x5be269._0x494c07,_0x17a86a-0xb6,_0x3b5ab1,_0x39f080-_0x5be269._0x18bd82);}function _0x3ac07e(_0x20db81,_0x4c2104,_0x4fd83f,_0xa2611f){return _0x11b510(_0x20db81-0x1a4,_0x20db81,_0x4fd83f-_0x40c359._0x5d95ec,_0x4c2104-0x398);}try{while(!![]){if(_0x26c6a0)throw _0x26c6a0;if(_0xc29ddc[_0x3ac07e(_0x4b915c._0x16d3ec,0x34e,_0x4b915c._0x2e1d2e,0x2e3)]>0x0){yield _0xc29ddc[_0x3ac07e(_0x4b915c._0x5ef0ff,0x49c,0x42a,0x3e8)]();continue;}if(_0x5b721c)break;await new Promise(_0x705a9d=>{_0x1c9ef6=_0x705a9d;});}}finally{_0x683ef['removeEventListener'](_0x3ac07e(0x2dd,_0x4b915c._0xd35a37,_0x4b915c._0x216e89,0x336),_0x507256),_0x683ef[_0x8f71ea(_0x4b915c._0x15d994,_0x4b915c._0xae109e,_0x4b915c._0x46435e,_0x4b915c._0x1683e6)]('error',_0x1699ba),_0x683ef[_0x3ac07e(_0x4b915c._0x2a55e1,0x40f,0x359,_0x4b915c._0x6afdc8)](_0x3ac07e(0x2c5,_0x4b915c._0x18d74d,_0x4b915c._0x5b0c6c,_0x4b915c._0x5405e5),_0x48c825),_0x3f1858();}}};}function toWebSocketUrl(_0x338596,_0x32c68c){const _0x532203={_0x20dc1a:0x29b,_0x2563b2:0x27c,_0x1e49c9:0x337,_0x253bb0:0x32b,_0x2d425d:0x3cd,_0x2df3a7:0x38d,_0xef5a93:0x316,_0x286ce6:0x3b2,_0x5f0478:0x3f8,_0x21cb50:0x2a4,_0x55a265:0x3df,_0x328028:0x372,_0x1dd142:0x4dc,_0x4f10ce:0x487},_0x521090={_0x3ad12c:0x53,_0x5f5129:0xd6},_0x34fba8={_0x825edb:0x4eb,_0xd66bf9:0x1dc};function _0x38c356(_0x40894c,_0x8c50a7,_0x4a7bd6,_0x667ab){return _0x532739(_0x4a7bd6,_0x667ab-_0x34fba8._0x825edb,_0x4a7bd6-0x51,_0x667ab-_0x34fba8._0xd66bf9);}const _0x4863b8=new URL(_0x32c68c,_0x338596);function _0x377db1(_0x5c7a6d,_0x43e6d0,_0x1eba45,_0xcf2a0){return _0x532739(_0x43e6d0,_0x1eba45-0x5a2,_0x1eba45-_0x521090._0x3ad12c,_0xcf2a0-_0x521090._0x5f5129);}return _0x4863b8[_0x38c356(0x3dd,_0x532203._0x20dc1a,_0x532203._0x2563b2,_0x532203._0x1e49c9)]=_0x4863b8['protocol']===_0x38c356(0x490,0x321,_0x532203._0x253bb0,_0x532203._0x2d425d)?_0x38c356(_0x532203._0x2df3a7,_0x532203._0xef5a93,_0x532203._0x286ce6,_0x532203._0x5f0478):_0x38c356(_0x532203._0x21cb50,_0x532203._0x55a265,_0x532203._0x328028,0x36a),_0x4863b8[_0x38c356(0x545,0x477,_0x532203._0x1dd142,_0x532203._0x4f10ce)]();}var ProviderSessionManager=class{['resolver'];[_0x22e674(0x349,0x32f,0x37f,0x395)];constructor(_0x22ade3){const _0x23d2bb={_0xd3cfa:0x38f,_0x2c714d:0x423,_0x4c1f5d:0x36e,_0x51c91e:0x40b},_0x5b08a7={_0x25edb6:0x50b};function _0xaf4b70(_0xc5f76e,_0x23ca48,_0x52ed00,_0x5ebc06){return _0x532739(_0x52ed00,_0x23ca48-_0x5b08a7._0x25edb6,_0x52ed00-0x12c,_0x5ebc06-0x1c0);}this[_0xaf4b70(_0x23d2bb._0xd3cfa,_0x23d2bb._0x2c714d,_0x23d2bb._0x4c1f5d,_0x23d2bb._0x51c91e)]=_0x22ade3;}async[_0x532739(-0x13b,-0xfc,-0x166,-0x3a)](_0x58b76b){const _0x5ee7ea={_0x558808:0x412,_0x5e977b:0x34a,_0x2c4feb:0x307,_0x1140b4:0x284,_0x2f8b21:0x3c0,_0x357c68:0x2ea},_0x2ce0e7={_0x12776a:0x11d,_0x498ac9:0xaf},_0x4321fa={_0x17ad4d:0x1ae,_0x277e7b:0xef},_0xb6a062={_0x4f8389:0x70,_0x34d83d:0x1f4,_0x56e74b:0x8},_0x3f713e={_0x491f26:0x3a5};function _0x7ca2d3(_0x25bb11,_0x47bfbe,_0x5dae40,_0x1629a5){return _0x532739(_0x47bfbe,_0x5dae40-_0x3f713e._0x491f26,_0x5dae40-0x35,_0x1629a5-0x7f);}function _0x5e8eda(_0x24cab2,_0x1cb399,_0x14e3bb,_0x322ced){return _0x22e674(_0x24cab2-_0xb6a062._0x4f8389,_0x1cb399-_0xb6a062._0x34d83d,_0x322ced,_0x24cab2- -_0xb6a062._0x56e74b);}if(!this['cached']){const _0x8f304e=this[_0x5e8eda(_0x5ee7ea._0x558808,_0x5ee7ea._0x5e977b,0x3a3,0x496)]['resolve'](_0x58b76b);_0x8f304e[_0x5e8eda(_0x5ee7ea._0x2c4feb,0x3b0,0x348,_0x5ee7ea._0x1140b4)](()=>{function _0x39b213(_0x510127,_0x519437,_0x1bfa72,_0x402781){return _0x5e8eda(_0x1bfa72- -0x4aa,_0x519437-_0x4321fa._0x17ad4d,_0x1bfa72-_0x4321fa._0x277e7b,_0x510127);}this['cached']===_0x8f304e&&(this[_0x39b213(-0x184,-0x12c,-_0x2ce0e7._0x12776a,-_0x2ce0e7._0x498ac9)]=void 0x0);}),this[_0x5e8eda(0x38d,_0x5ee7ea._0x2f8b21,0x348,0x3aa)]=_0x8f304e;}return structuredClone(await this[_0x5e8eda(0x38d,0x2b6,0x2b7,_0x5ee7ea._0x357c68)]);}[_0x532739(-0xef,-0x113,-0x70,-0x1e9)](){const _0x393c6a={_0x14d2a9:0x285,_0x1406fe:0x32a,_0x544832:0x3bc,_0x10f70c:0x3d4};function _0x36b83b(_0x5ad786,_0x56a6a6,_0x1113a9,_0x5a0c48){return _0x22e674(_0x5ad786-0x11f,_0x56a6a6-0x164,_0x1113a9,_0x56a6a6- -0x6b);}this[_0x36b83b(_0x393c6a._0x14d2a9,_0x393c6a._0x1406fe,_0x393c6a._0x544832,_0x393c6a._0x10f70c)]=void 0x0;}};async function prepareProviderRequest(_0x1587d1,_0x41f73b={}){const _0x462eb9={_0x4164ef:0x489,_0x37d074:0x51c,_0x4c6b08:0x536,_0x920a24:0x16d,_0x479861:0x189,_0x4e82dd:0x176,_0x5c637f:0x28b,_0x1b7080:0x1c2,_0x24869d:0x73,_0x200fc9:0xcf,_0x2cd699:0x80,_0x10956f:0xa1},_0x18596f={_0x3c7d51:0x2ad};function _0x518456(_0xd32710,_0x45c906,_0x93dae0,_0x365869){return _0x532739(_0x93dae0,_0x45c906-_0x18596f._0x3c7d51,_0x93dae0-0x159,_0x365869-0x7e);}let _0xb762eb={'request':structuredClone(_0x1587d1),'session':_0x41f73b[_0x109c14(_0x462eb9._0x4164ef,_0x462eb9._0x37d074,0x4f7,_0x462eb9._0x4c6b08)]?await _0x41f73b[_0x518456(0x17d,_0x462eb9._0x920a24,_0x462eb9._0x479861,_0x462eb9._0x4e82dd)][_0x518456(0x1d6,0x1b1,0x145,0x1bc)](_0x41f73b[_0x518456(_0x462eb9._0x5c637f,0x1b2,0x251,_0x462eb9._0x1b7080)]):void 0x0};function _0x109c14(_0x437eee,_0x3c3553,_0x3a2545,_0x11a59f){return _0x22e674(_0x437eee-0x1a8,_0x3c3553-0x181,_0x3c3553,_0x3a2545-0x135);}for(const _0x771441 of _0x41f73b[_0x518456(_0x462eb9._0x24869d,_0x462eb9._0x200fc9,_0x462eb9._0x2cd699,_0x462eb9._0x10956f)]??[]){_0xb762eb=await _0x771441(_0xb762eb);}return _0xb762eb;}var MAX_PROVIDER_REQUEST_ATTEMPTS=0xa,RETRYABLE_HTTP_STATUSES=new Set([0x198,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8]),DEFAULT_RETRY_DELAY_MS=0x1f4,RETRY_DELAY_STEP_CAP_MS=0x3a98,RoutedModel=class{[_0x22e674(0x527,0x48e,0x46e,0x49c)];['maxTokens'];[_0x532739(-0x17f,-0x19f,-0xff,-0x144)];[_0x22e674(0x3cc,0x325,0x3ff,0x3ba)];[_0x22e674(0x486,0x3c4,0x56e,0x48d)];['fetchImpl'];[_0x22e674(0x511,0x406,0x378,0x444)];[_0x22e674(0x381,0x30d,0x3d1,0x324)];['router'];[_0x22e674(0x3bf,0x305,0x48e,0x3c2)];['webSocketFactory'];[_0x22e674(0x2e1,0x2ce,0x2b6,0x2e8)]=new Map();constructor(_0x546873){const _0x300313={_0x30dc95:0x3cb,_0x4229bf:0x221,_0x5f2d9e:0x3b2,_0x129373:0x2f5,_0x1f9b8e:0x329,_0x44610b:0x61,_0x10a7e9:0x49,_0x1ef2d3:0x42,_0x4dbbd8:0x134,_0x96f4cb:0x8d,_0x432c75:0x7,_0x48efec:0xeb,_0x23785f:0x165,_0x3b80a7:0x130,_0x1259e7:0x2b6,_0x4adfd2:0x315,_0x4a9a8e:0x2ac,_0x327f7c:0x311,_0x418c8d:0x3f,_0x13f814:0xf3,_0x50888b:0x69,_0x3a3819:0x5d,_0x468769:0x128,_0x55fe37:0x354,_0x28a6eb:0x272,_0x5ad133:0x39c,_0x440432:0x2d4,_0x3d2885:0x291,_0x2b6339:0x22e,_0x4f3842:0x3b6,_0x5a1b2c:0x265,_0x28141c:0x25a,_0x162426:0x311,_0x29fb49:0x362,_0x12dc26:0x2c9,_0x4bf722:0x2b0},_0x822c37={_0x1d801b:0x1a8,_0x48117f:0x359};this['model']=_0x546873['model'],this['maxTokens']=_0x546873[_0x1e3149(_0x300313._0x30dc95,0x3b4,0x499,0x3a1)]??getDefaultMaxTokens(),this[_0x1e3149(0x2f5,_0x300313._0x4229bf,_0x300313._0x5f2d9e,0x2fb)]=_0x546873[_0x1e3149(_0x300313._0x129373,0x318,_0x300313._0x1f9b8e,0x356)]?structuredClone(_0x546873['reasoning']):void 0x0,this[_0x1e3149(0x34c,0x418,0x2ec,0x357)]=_0x546873[_0x185649(_0x300313._0x44610b,_0x300313._0x10a7e9,-_0x300313._0x1ef2d3,-0x74)],this[_0x185649(_0x300313._0x4dbbd8,0x17b,0xed,_0x300313._0x96f4cb)]=_0x546873['baseUrl'];function _0x185649(_0x5b4d54,_0x5c194b,_0x44a92d,_0x2447b7){return _0x22e674(_0x5b4d54-_0x822c37._0x1d801b,_0x5c194b-0x11,_0x44a92d,_0x5b4d54- -_0x822c37._0x48117f);}this[_0x185649(0xdf,-_0x300313._0x432c75,0x79,0x95)]=_0x546873['fetch']??globalThis['fetch'],this['providerAdapter']=_0x546873[_0x185649(_0x300313._0x48efec,_0x300313._0x23785f,_0x300313._0x3b80a7,0x2c)],this[_0x1e3149(_0x300313._0x1259e7,_0x300313._0x4adfd2,0x33f,0x396)]=_0x546873[_0x1e3149(_0x300313._0x1259e7,0x34d,0x346,0x304)]??[],this[_0x1e3149(_0x300313._0x4a9a8e,0x223,_0x300313._0x327f7c,0x2d4)]=_0x546873[_0x185649(-_0x300313._0x418c8d,_0x300313._0x96f4cb,-_0x300313._0x13f814,0xa2)],this[_0x185649(_0x300313._0x50888b,_0x300313._0x3a3819,_0x300313._0x468769,0xe5)]=_0x546873[_0x1e3149(_0x300313._0x55fe37,_0x300313._0x28a6eb,_0x300313._0x5ad133,_0x300313._0x440432)]??(_0x546873['providerSessionResolver']?new ProviderSessionManager(_0x546873[_0x1e3149(_0x300313._0x3d2885,0x2ae,0x31b,_0x300313._0x2b6339)]):void 0x0);function _0x1e3149(_0x4f80a7,_0x9fdf6a,_0x5e0a57,_0x454248){return _0x22e674(_0x4f80a7-0x157,_0x9fdf6a-0xa3,_0x9fdf6a,_0x4f80a7- -0x6e);}this['webSocketFactory']=_0x546873[_0x1e3149(0x32a,_0x300313._0x4f3842,_0x300313._0x5a1b2c,0x2f1)]??createDefaultWebSocketFactory();for(const _0x2c6d28 of _0x546873[_0x1e3149(0x27a,_0x300313._0x28141c,0x2f7,0x27e)]){this['surfaces'][_0x1e3149(_0x300313._0x162426,_0x300313._0x29fb49,_0x300313._0x12dc26,_0x300313._0x4bf722)](_0x2c6d28['id'],_0x2c6d28);}}[_0x532739(-0xac,-0x138,-0x175,-0x9b)](_0x2870d4,_0x160eb0){const _0x4206f4={_0x332417:0x688,_0x3e6309:0x656,_0x32fa35:0x6fb},_0x1961e2={_0xecf05:0x66f};function _0x2c465a(_0x54c7b0,_0xf0ac85,_0x2b431f,_0x149ef5){return _0x532739(_0x149ef5,_0xf0ac85-_0x1961e2._0xecf05,_0x2b431f-0x121,_0x149ef5-0x1e0);}return this[_0x2c465a(_0x4206f4._0x332417,0x61f,_0x4206f4._0x3e6309,_0x4206f4._0x32fa35)](_0x2870d4,_0x160eb0);}[_0x532739(-0x6d,-0xd9,-0x154,-0x72)](_0xdf8bc8,_0x2b3dd5){const _0x3c1a92={_0x39b8e2:0x25a},_0x18342f={_0x2bf4db:0x29,_0x56af62:0x162};function _0x29bdc4(_0xf919a1,_0x4628e4,_0x16098d,_0x1e5320){return _0x22e674(_0xf919a1-0x19a,_0x4628e4-_0x18342f._0x2bf4db,_0xf919a1,_0x16098d- -_0x18342f._0x56af62);}return this[_0x29bdc4(_0x3c1a92._0x39b8e2,0x1b1,0x249,0x216)](_0xdf8bc8,_0x2b3dd5);}async[_0x532739(0x7f,-0x50,-0xe9,-0xdd)](_0x3e1daf,_0x6c0eac){const _0x4afab4={_0x4ecdbc:0xb2,_0x17f947:0xc,_0x29316d:0x114,_0x54c036:0xd0,_0xfa378a:0x108},_0x3bc60c={_0x12af5e:0x199};function _0x266886(_0x2a3411,_0xb5e170,_0x22da63,_0x360e2e){return _0x22e674(_0x2a3411-0x173,_0xb5e170-_0x3bc60c._0x12af5e,_0x2a3411,_0xb5e170- -0x4de);}const _0x1232c2=this[_0x36d54a(0xea,0x17,-0xb8,0xd5)](_0x3e1daf);function _0x36d54a(_0x344537,_0x5c640b,_0x4b6ddd,_0x33a43c){return _0x532739(_0x344537,_0x5c640b-0x22f,_0x4b6ddd-0x1a9,_0x33a43c-0x1db);}const _0x16f240=await this['router'][_0x36d54a(0x16a,_0x4afab4._0x4ecdbc,-_0x4afab4._0x17f947,0xdd)](_0x1232c2,{'mode':_0x266886(-0x196,-_0x4afab4._0x29316d,-_0x4afab4._0x54c036,-0xf6)});return this[_0x36d54a(0x2,0xa4,_0x4afab4._0xfa378a,0xbb)](_0x1232c2,_0x16f240,_0x6c0eac);}async*[_0x22e674(0x3ba,0x3d9,0x37a,0x3ab)](_0x572175,_0x46a57c){const _0x548a51={_0x4f2ada:0x146,_0x4b0896:0xa3,_0x1ae0a4:0xce,_0x4a202d:0xc4,_0x583e6c:0xe,_0x4cc124:0x1f},_0x564e51={_0x47fd2d:0x1ab,_0x3e05de:0x55,_0x278a58:0x430};function _0x3b0dfa(_0x2d23de,_0x559b44,_0x1faf4d,_0x568ba5){return _0x22e674(_0x2d23de-0x13a,_0x559b44-0x1b5,_0x2d23de,_0x1faf4d- -0x326);}const _0x5d1bd5=this[_0x463fe5(-_0x548a51._0x4f2ada,-_0x548a51._0x4b0896,-0x18f,-_0x548a51._0x1ae0a4)](_0x572175);function _0x463fe5(_0xe41b9e,_0x28c0c8,_0xce7fb7,_0x1c9d64){return _0x22e674(_0xe41b9e-_0x564e51._0x47fd2d,_0x28c0c8-_0x564e51._0x3e05de,_0x1c9d64,_0xe41b9e- -_0x564e51._0x278a58);}const _0x1c9ca3=await this['router']['selectSurface'](_0x5d1bd5,{'mode':_0x463fe5(-0x7,-_0x548a51._0x4a202d,-_0x548a51._0x583e6c,0xcf)});yield*this[_0x463fe5(-0x71,-0x127,-0xd5,_0x548a51._0x4cc124)](_0x5d1bd5,_0x1c9ca3,_0x46a57c);}async[_0x22e674(0x3e5,0x31a,0x45d,0x377)](_0x249da0,_0x383853,_0x20f885){const _0x3cd832={_0x3e1605:0x20d,_0x5c2b96:0x1fd,_0x3b631e:0x1f3,_0x176dc2:0x114,_0x1dfe54:0x2c4,_0x3484e3:0x35a,_0x29c3cf:0x76,_0x5764df:0x15b,_0x511d6d:0xe,_0x3a3b3e:0x13c,_0x45d0f7:0xfc,_0x29221e:0x71,_0x7ac63d:0x3c,_0x206f42:0x27,_0x91e39:0xa,_0x547630:0x16},_0x17f1c7={_0x54f3c3:0x32},_0x4c091e=this[_0x4e6bbe(_0x3cd832._0x3e1605,_0x3cd832._0x5c2b96,_0x3cd832._0x3b631e,_0x3cd832._0x176dc2)](_0x249da0),_0x2c49ca=this[_0x4e6bbe(0x33f,0x230,_0x3cd832._0x1dfe54,_0x3cd832._0x3484e3)](_0x383853);if(_0x2c49ca['transport']==='http-json'){const _0x1ee898=await this['sendHttpSurfaceRequest'](_0x4c091e,_0x2c49ca,![],_0x20f885);if(!_0x1ee898['ok'])throw await this['toApiError'](_0x1ee898);if(!_0x2c49ca[_0x1724bf(0x44,-0xb3,-_0x3cd832._0x29c3cf,-0x147)])throw new Error('Surface\x20'+_0x383853+_0x4e6bbe(_0x3cd832._0x5764df,0x174,0x224,0x20f));return _0x2c49ca[_0x1724bf(0x5b,-0x103,-_0x3cd832._0x29c3cf,_0x3cd832._0x511d6d)](await _0x1ee898[_0x1724bf(-0x34,-_0x3cd832._0x3a3b3e,-_0x3cd832._0x45d0f7,-_0x3cd832._0x29221e)](),_0x4c091e);}let _0x2aff0a;function _0x1724bf(_0x1fbbbc,_0x26c34a,_0x439e2e,_0x619edc){return _0x532739(_0x1fbbbc,_0x439e2e-0x66,_0x439e2e-0x1b5,_0x619edc-_0x17f1c7._0x54f3c3);}for await(const _0x284079 of this['streamViaSurface'](_0x4c091e,_0x383853,_0x20f885)){_0x284079['type']==='done'&&(_0x2aff0a=_0x284079['response']);}function _0x4e6bbe(_0x44ef60,_0x15f2e0,_0x1d28f7,_0x52a27f){return _0x22e674(_0x44ef60-0x31,_0x15f2e0-0x187,_0x44ef60,_0x1d28f7- -0xf7);}if(!_0x2aff0a)throw new Error(_0x1724bf(_0x3cd832._0x7ac63d,-_0x3cd832._0x206f42,_0x3cd832._0x91e39,-_0x3cd832._0x547630)+_0x383853+'\x20did\x20not\x20produce\x20a\x20final\x20response');return _0x2aff0a;}async*[_0x22e674(0x3eb,0x363,0x2fc,0x3bf)](_0x24c25b,_0x226e56,_0x2d1a78){const _0x589928={_0x252415:0x37a,_0x5d3c54:0x2d5,_0xd5f9d2:0x389,_0x51ecbf:0x31d,_0x485765:0x31e,_0x3e0d3e:0x361,_0x23a156:0x4c9,_0x497947:0x466,_0x5b15d4:0x462,_0x3b783d:0x4aa,_0x476fa5:0x51f,_0x40213d:0x589,_0x56cda6:0x587,_0x28ae66:0x53c,_0x10eceb:0x646,_0x42c93a:0x59d,_0x12e0fb:0x5a6,_0x27c3ea:0x320},_0x2b6c23={_0x2ec0b0:0x175,_0x521f5f:0x138},_0x100568=this[_0x1451b3(0x2d8,0x24b,0x39f,0x2b8)](_0x24c25b),_0x1fb996=this[_0x1451b3(_0x589928._0x252415,0x381,_0x589928._0x5d3c54,_0x589928._0xd5f9d2)](_0x226e56);if(_0x1fb996['transport']===_0x1451b3(0x313,0x32e,_0x589928._0x51ecbf,_0x589928._0x485765)){const _0x5b6f24=await this[_0x1451b3(0x2f8,0x415,_0x589928._0x3e0d3e,0x345)](_0x100568,_0x226e56,_0x2d1a78);yield{'type':'done','response':_0x5b6f24};return;}if(_0x1fb996[_0x1451b3(_0x589928._0x23a156,0x504,_0x589928._0x497947,_0x589928._0x5b15d4)]===_0x3335fd(0x414,0x564,0x444,_0x589928._0x3b783d)){yield*this[_0x3335fd(_0x589928._0x476fa5,_0x589928._0x40213d,_0x589928._0x56cda6,_0x589928._0x28ae66)](_0x100568,_0x1fb996,_0x2d1a78);return;}function _0x3335fd(_0x2967d6,_0x4a723a,_0x15b3f6,_0x17eb76){return _0x22e674(_0x2967d6-0xdf,_0x4a723a-_0x2b6c23._0x2ec0b0,_0x2967d6,_0x17eb76-_0x2b6c23._0x521f5f);}function _0x1451b3(_0x18f841,_0x24791a,_0x468696,_0x4c6ab9){return _0x22e674(_0x18f841-0xe0,_0x24791a-0x104,_0x468696,_0x4c6ab9- -0x32);}yield*this[_0x3335fd(_0x589928._0x10eceb,0x54a,_0x589928._0x42c93a,_0x589928._0x12e0fb)](_0x100568,_0x1fb996,_0x2d1a78?.[_0x1451b3(0x2f9,_0x589928._0x27c3ea,0x45c,0x3d5)]);}async[_0x532739(-0x64,-0x5a,-0x7b,-0x73)](_0x5ef238){const _0x3d1c44={_0x1b6315:0x3fa,_0xd34fd7:0x2ce,_0x222fb0:0x213,_0x442e13:0x24c,_0x4559f1:0x3f7,_0x4bb79c:0x4a2,_0x97afce:0x54b,_0xf7ee75:0x4ce,_0x219b33:0x30b,_0x27407e:0x30c,_0x1d5018:0x2f2,_0x493449:0x3ed,_0x4495d3:0x33f,_0x3c13ac:0x38b,_0x1f9436:0x40a,_0x546f26:0x4c7,_0x389126:0x56d,_0x3f3f56:0x2d6,_0x22fae0:0x4df,_0x287a2d:0x55c,_0xae79eb:0x551,_0x43fb07:0x4e7,_0x48d6ef:0x222,_0x290da1:0x46b,_0x16e1c5:0x4fe,_0x4f1d64:0xd2,_0x436fac:0x25b,_0x4a07b0:0x2ca},_0x3e2503={_0x210bb9:0x1ff},_0x5382bc=async()=>{const _0x345758=this[_0x50022d(_0x3d1c44._0x1b6315,0x45d,0x502,0x37c)]?await this['sessionManager'][_0x442beb(_0x3d1c44._0xd34fd7,_0x3d1c44._0x222fb0,_0x3d1c44._0x442e13,0x25d)](_0x5ef238[_0x50022d(_0x3d1c44._0x4559f1,_0x3d1c44._0x4bb79c,_0x3d1c44._0x97afce,_0x3d1c44._0xf7ee75)]):void 0x0,_0x4f353f=this[_0x442beb(_0x3d1c44._0x219b33,0x210,_0x3d1c44._0x27407e,0x29b)]['resolveCredential'](this['apiKey'],_0x345758);function _0x442beb(_0x2b745d,_0x26ac5b,_0x966126,_0x474db7){return _0x17ab(_0x474db7- -0x45,_0x966126);}if(!_0x4f353f)throw this['createMissingCredentialError']();function _0x50022d(_0x1ac85e,_0x528959,_0x1b3c14,_0xb0af42){return _0x17ab(_0x528959-_0x3e2503._0x210bb9,_0xb0af42);}const _0x42930b=await this[_0x442beb(0x2bb,0x2c1,0x2aa,_0x3d1c44._0x1d5018)]({'body':_0x5ef238['body'],'credential':_0x4f353f,'session':_0x345758,'stream':![]},{'accept':_0x5ef238[_0x50022d(0x404,_0x3d1c44._0x493449,0x3bc,_0x3d1c44._0x4495d3)]??_0x442beb(0x21d,_0x3d1c44._0x3c13ac,0x259,0x2d5),'includeContentType':_0x5ef238[_0x50022d(0x36a,_0x3d1c44._0x1f9436,_0x3d1c44._0x546f26,0x3e8)]===_0x50022d(0x60f,0x52c,0x5e2,_0x3d1c44._0x389126)});return this[_0x442beb(0x1c2,0x22e,_0x3d1c44._0x3f3f56,0x28f)](''+this[_0x50022d(0x580,_0x3d1c44._0x22fae0,_0x3d1c44._0x287a2d,_0x3d1c44._0xae79eb)][_0x50022d(_0x3d1c44._0x43fb07,0x4ed,0x567,0x42b)](this['baseUrl'],_0x345758)+_0x5ef238[_0x442beb(0x286,0x23b,0x264,_0x3d1c44._0x48d6ef)],{'method':_0x5ef238['method'],'headers':_0x42930b,..._0x5ef238[_0x50022d(_0x3d1c44._0x290da1,0x4d6,_0x3d1c44._0x16e1c5,0x43b)]!==void 0x0?{'body':JSON[_0x442beb(0x1d2,0x243,_0x3d1c44._0x4f1d64,0x19c)](_0x5ef238['body'])}:{},'signal':_0x5ef238[_0x442beb(_0x3d1c44._0x436fac,0x235,_0x3d1c44._0x4a07b0,0x25e)]});};return await this['sendWithRetries'](_0x5382bc,_0x5ef238);}['getRetryDelayMs'](_0x3c5b0c,_0x588fc4){const _0x40c3d2={_0x284af7:0x9,_0x3962af:0xc0,_0x23f312:0xbf,_0x10f9de:0x54,_0x49faaa:0x4f,_0x4d4a4b:0x5,_0x5ccf4e:0xf0,_0x3ba000:0x27,_0x38b4e0:0x97,_0x538c3a:0x8b,_0x2a4a51:0x73},_0x80bf1={_0x6f45a5:0x50,_0x3f6490:0x45f},_0x4d5dac={_0x5ec2e8:0x102},_0x3d16a5=_0x3c5b0c?.['headers'][_0x42cc25(-_0x40c3d2._0x284af7,-0xcf,-_0x40c3d2._0x3962af,-_0x40c3d2._0x23f312)](_0x42cc25(-_0x40c3d2._0x10f9de,0x10f,_0x40c3d2._0x49faaa,_0x40c3d2._0x4d4a4b));function _0x4e8a76(_0x545a35,_0x5ad91d,_0x4553d9,_0x5382ff){return _0x532739(_0x4553d9,_0x545a35-_0x4d5dac._0x5ec2e8,_0x4553d9-0x166,_0x5382ff-0xe8);}if(_0x3d16a5){const _0x1ec086=Number(_0x3d16a5);if(Number[_0x4e8a76(-_0x40c3d2._0x5ccf4e,-_0x40c3d2._0x3ba000,-0x1b5,-_0x40c3d2._0x38b4e0)](_0x1ec086)&&_0x1ec086>=0x0)return _0x1ec086*0x3e8;const _0x15054a=Date['parse'](_0x3d16a5);if(Number[_0x4e8a76(-_0x40c3d2._0x5ccf4e,-0x30,-0x1bb,-0x7b)](_0x15054a))return Math[_0x4e8a76(_0x40c3d2._0x538c3a,0xbf,0x13c,_0x40c3d2._0x2a4a51)](0x0,_0x15054a-Date['now']());}const _0x115c97=DEFAULT_RETRY_DELAY_MS*0x2**_0x588fc4;function _0x42cc25(_0x587938,_0x59e80a,_0x5f550a,_0xa7d251){return _0x22e674(_0x587938-_0x80bf1._0x6f45a5,_0x59e80a-0x50,_0xa7d251,_0x5f550a- -_0x80bf1._0x3f6490);}if(_0x115c97<RETRY_DELAY_STEP_CAP_MS)return _0x115c97;return RETRY_DELAY_STEP_CAP_MS*0x2**(_0x588fc4-0x5);}[_0x22e674(0x37d,0x3a7,0x2a9,0x35e)](_0x269e3a){const _0x54fa1a={_0x1d6506:0x4};function _0x2c6d3b(_0x7584f4,_0x1b698c,_0x1627c2,_0x36c33a){return _0x22e674(_0x7584f4-0xbe,_0x1b698c-0xd8,_0x36c33a,_0x1627c2- -0x41c);}return RETRYABLE_HTTP_STATUSES[_0x2c6d3b(-0x20,0x8b,_0x54fa1a._0x1d6506,-0xd8)](_0x269e3a['status']);}['shouldRetryRequestError'](_0x1ae07d){return!isAbortError(_0x1ae07d)&&_0x1ae07d instanceof TypeError;}[_0x22e674(0x290,0x286,0x3b1,0x30b)](_0x47559b){return this['shouldRetryRequestError'](_0x47559b)||isRetryableProviderStreamEventError(_0x47559b);}async[_0x22e674(0x297,0x3ca,0x2b8,0x364)](_0x5c3de1,_0x2eb774){throwIfAborted(_0x2eb774),await new Promise((_0x2906a2,_0x48cf3e)=>{let _0x4c8042=![];const _0x33e195=addAbortListener(_0x2eb774,()=>{if(_0x4c8042)return;_0x4c8042=!![],clearTimeout(_0x5866e4),_0x48cf3e(toAbortError(_0x2eb774?.['reason']));}),_0x5866e4=setTimeout(()=>{_0x4c8042=!![],_0x33e195(),_0x2906a2();},_0x5c3de1);}),throwIfAborted(_0x2eb774);}async[_0x22e674(0x2af,0x40b,0x3a0,0x374)](_0x43c7ec,_0x2ce11f={}){const _0x5d6510={_0x4759f5:0x1ef,_0x765fdd:0x2d6,_0x12dcb0:0x317,_0x5af1af:0x237,_0x5c76fd:0x387,_0xb9a901:0x2c9,_0x348a8e:0x328,_0x2dd740:0xbd,_0x453309:0x1b9,_0xa436fd:0x2d3,_0x15acae:0x3d9,_0x1acabf:0x371,_0x2fbcb4:0x245,_0x4a8c1f:0x204,_0x3acd1d:0x189,_0x506955:0xe2,_0x5aa23d:0xf6,_0x2c10a3:0x207,_0x386504:0xe4},_0x10987a={_0x481dfc:0x47,_0x1b67b7:0x11f},{signal:_0x37caa8}=_0x2ce11f;function _0x24e5a3(_0x1fff1c,_0x191b28,_0x405d33,_0x6b8bc){return _0x22e674(_0x1fff1c-0x9b,_0x191b28-_0x10987a._0x481dfc,_0x1fff1c,_0x405d33- -_0x10987a._0x1b67b7);}function _0x59b02f(_0x2a54c6,_0x448995,_0x372988,_0x37a581){return _0x532739(_0x448995,_0x372988-0x14,_0x372988-0x14e,_0x37a581-0x1d6);}let _0x2c2910=![];for(let _0x1c8a69=0x0;_0x1c8a69<MAX_PROVIDER_REQUEST_ATTEMPTS;_0x1c8a69+=0x1){throwIfAborted(_0x37caa8);try{const _0x40c091=await _0x43c7ec();if(_0x40c091[_0x24e5a3(_0x5d6510._0x4759f5,0x20c,_0x5d6510._0x765fdd,_0x5d6510._0x12dcb0)]===0x191&&this[_0x24e5a3(_0x5d6510._0x5af1af,0x1cc,0x2a3,_0x5d6510._0x5c76fd)]&&!_0x2c2910){_0x2c2910=!![],this[_0x24e5a3(_0x5d6510._0xb9a901,0x2f9,0x2a3,_0x5d6510._0x348a8e)][_0x59b02f(-0x19a,-0xf0,-0xff,-_0x5d6510._0x2dd740)]();continue;}if(!this[_0x59b02f(-0x20b,-0x213,-0x190,-_0x5d6510._0x453309)](_0x40c091)||_0x1c8a69===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)return _0x40c091;const _0x1887c7=this[_0x24e5a3(_0x5d6510._0xa436fd,_0x5d6510._0x15acae,_0x5d6510._0x1acabf,0x2dc)](_0x40c091,_0x1c8a69);await this[_0x24e5a3(0x24a,0x20a,_0x5d6510._0x2fbcb4,_0x5d6510._0x4a8c1f)](_0x1887c7,_0x37caa8);}catch(_0xecc611){if(!this[_0x59b02f(-_0x5d6510._0x3acd1d,-0x70,-0x153,-_0x5d6510._0x506955)](_0xecc611)||_0x1c8a69===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0xecc611;const _0x1f395c=this['getRetryDelayMs'](void 0x0,_0x1c8a69);await this[_0x59b02f(-0x251,-_0x5d6510._0x5aa23d,-0x18a,-_0x5d6510._0x2c10a3)](_0x1f395c,_0x37caa8);}}throw new Error(_0x59b02f(-_0x5d6510._0x386504,-0x113,-0x1ab,-0x1b2));}[_0x22e674(0x2c7,0x2d1,0x339,0x307)](){const _0x4396de={_0x2ed1a8:0x15e,_0x5e0ac6:0x1d,_0x4fe581:0x48},_0x22a653={_0x1ae983:0x4c6};function _0x207b38(_0x377f06,_0x21d333,_0x329305,_0x4040c5){return _0x22e674(_0x377f06-0x2d,_0x21d333-0x10d,_0x377f06,_0x21d333- -_0x22a653._0x1ae983);}return this[_0x207b38(-_0x4396de._0x2ed1a8,-0x82,_0x4396de._0x5e0ac6,_0x4396de._0x4fe581)]['createMissingCredentialError']();}async[_0x22e674(0x3e8,0x485,0x3e1,0x49b)](_0x27a193,_0x44f064){return await this['providerAdapter']['createHeaders'](_0x27a193,_0x44f064);}[_0x532739(-0x12b,-0x9d,-0xc,-0x163)](_0x55645b){const _0x10950d={_0xbff2bc:0x256,_0x36fcb2:0x310,_0x57a0c8:0x305,_0x377b3c:0x249},_0x35ee4b={_0x40c1f9:0x187,_0x50f647:0x1ee},_0x56e76d={_0xdaf16e:0x2c2,_0x299703:0x13b,_0x161047:0x1f0};function _0xf82654(_0x33f9c9,_0x2c4c2b,_0x147c0f,_0x695fa8){return _0x532739(_0x695fa8,_0x33f9c9-_0x56e76d._0xdaf16e,_0x147c0f-_0x56e76d._0x299703,_0x695fa8-_0x56e76d._0x161047);}function _0x499224(_0x5bdef9,_0x3dcafc,_0x2670df,_0x50a9fd){return _0x22e674(_0x5bdef9-_0x35ee4b._0x40c1f9,_0x3dcafc-0xa9,_0x3dcafc,_0x2670df- -_0x35ee4b._0x50f647);}return this[_0x499224(0x300,0x1ab,_0x10950d._0xbff2bc,_0x10950d._0x36fcb2)][_0x499224(0x287,_0x10950d._0x57a0c8,0x277,_0x10950d._0x377b3c)](_0x55645b);}async['toApiError'](_0x5ba9c7){return await this['providerAdapter']['toApiError'](_0x5ba9c7);}['getSurface'](_0x4ec722){const _0x2c91d6={_0x795d95:0x16a,_0x8abe43:0x246,_0x5390c0:0x265},_0x301ff5={_0x38a37a:0x460,_0x9171f:0xb8},_0x5ab482=this[_0x4672d4(_0x2c91d6._0x795d95,_0x2c91d6._0x8abe43,_0x2c91d6._0x5390c0,0x1ca)]['get'](_0x4ec722);if(!_0x5ab482)throw new Error('Unknown\x20model\x20surface:\x20'+_0x4ec722);function _0x4672d4(_0x4f30e5,_0x3b49e2,_0x4f0c68,_0xbfc1c3){return _0x532739(_0x4f30e5,_0x3b49e2-_0x301ff5._0x38a37a,_0x4f0c68-_0x301ff5._0x9171f,_0xbfc1c3-0x166);}return _0x5ab482;}async['prepareChatRequest'](_0x9a3cbb,_0x392864){const _0x8c5d5d={_0x1eef41:0xe5,_0x103a3c:0xeb,_0x236506:0x36,_0x5d5841:0x5db,_0x6296f8:0x580,_0x23bba1:0x573,_0x4022a5:0x18b,_0x21cc45:0xad,_0x3767b2:0x81,_0x2074ea:0x56b,_0x2a38a0:0x6f7,_0x16519f:0x621,_0x1a25bf:0x613,_0x4e2dda:0x164,_0x67af20:0x160,_0x5c6a3e:0x235,_0x45c170:0xd1,_0x49217e:0x5fc,_0x35a897:0x55a,_0x31798c:0x57d,_0x180b05:0x5ce,_0x31f9e3:0x67c,_0x3400dd:0x596},_0x3652de={_0x54d210:0xe0,_0x590b3c:0x2ee},_0x4016a0={_0x4dacc1:0x6d1,_0x57ae17:0xb4};function _0x192162(_0x1c03e5,_0x574cb7,_0x592c9d,_0x3876f9){return _0x532739(_0x592c9d,_0x3876f9-_0x4016a0._0x4dacc1,_0x592c9d-_0x4016a0._0x57ae17,_0x3876f9-0x89);}const _0x47d21f=toModelRequest(_0x9a3cbb);function _0x26d679(_0x5cd446,_0x2be55e,_0x124326,_0x3f4039){return _0x22e674(_0x5cd446-0x19b,_0x2be55e-_0x3652de._0x54d210,_0x2be55e,_0x5cd446- -_0x3652de._0x590b3c);}const _0x2c7b22=await prepareProviderRequest(_0x47d21f,{'sessionManager':this[_0x26d679(0xd4,0x139,_0x8c5d5d._0x1eef41,_0x8c5d5d._0x103a3c)],'requestMutators':this[_0x26d679(_0x8c5d5d._0x236506,0x72,-0x95,0x4a)],'signal':_0x392864}),_0xac13e6=toChatRequest(_0x2c7b22[_0x192162(_0x8c5d5d._0x5d5841,0x64f,0x56b,_0x8c5d5d._0x6296f8)]),_0x2a928f=this[_0x192162(_0x8c5d5d._0x23bba1,0x6f5,0x6b0,0x613)][_0x26d679(0xe1,_0x8c5d5d._0x4022a5,0x112,0xdd)](this[_0x26d679(0xcc,0x15a,0xc7,0x53)],_0x2c7b22['session']);if(!_0x2a928f)throw this[_0x26d679(0x19,-_0x8c5d5d._0x21cc45,-_0x8c5d5d._0x3767b2,-0x13)]();return{'baseUrl':this[_0x192162(_0x8c5d5d._0x2074ea,_0x8c5d5d._0x2a38a0,_0x8c5d5d._0x16519f,_0x8c5d5d._0x1a25bf)][_0x26d679(_0x8c5d5d._0x4e2dda,_0x8c5d5d._0x67af20,0x148,0x1f5)](this[_0x26d679(0x19f,_0x8c5d5d._0x5c6a3e,_0x8c5d5d._0x45c170,0x1a8)],_0x2c7b22[_0x192162(_0x8c5d5d._0x49217e,_0x8c5d5d._0x35a897,_0x8c5d5d._0x31798c,_0x8c5d5d._0x180b05)]),'credential':_0x2a928f,'request':_0xac13e6,'session':_0x2c7b22[_0x192162(_0x8c5d5d._0x31f9e3,_0x8c5d5d._0x3400dd,0x4f9,_0x8c5d5d._0x180b05)]};}['applyModelDefaults'](_0x32c2fa){const _0x24cf60={_0x4655d2:0x339,_0x5e3357:0x2cb,_0x2ae9c2:0x303,_0x585748:0x2ba,_0x35210a:0x2a9},_0x2ce421={_0xca0bd5:0x46a,_0x2ce1a0:0xbc};function _0x392887(_0x1b65bb,_0x2f7984,_0xb48dd6,_0x6462da){return _0x532739(_0xb48dd6,_0x6462da-_0x2ce421._0xca0bd5,_0xb48dd6-_0x2ce421._0x2ce1a0,_0x6462da-0x6d);}function _0x447b34(_0x180928,_0x1f9545,_0x7ea67c,_0xaf27c9){return _0x22e674(_0x180928-0x50,_0x1f9545-0xbf,_0xaf27c9,_0x7ea67c- -0x60);}return{...structuredClone(_0x32c2fa),..._0x32c2fa[_0x392887(0x319,_0x24cf60._0x4655d2,0x228,_0x24cf60._0x5e3357)]===void 0x0&&this[_0x447b34(0x239,0x2d5,_0x24cf60._0x2ae9c2,_0x24cf60._0x585748)]!==void 0x0?{'reasoning':structuredClone(this[_0x392887(0x260,0x382,_0x24cf60._0x35210a,0x2cb)])}:{}};}async['sendHttpSurfaceRequest'](_0x269b72,_0xcffd94,_0x1d8144,_0x1f7034={},_0x147de3=!![]){const _0x5b1a68={_0x14358a:0x199,_0x3f4654:0x155,_0x235ed4:0x159,_0x4f226b:0x20b,_0x16ac38:0x24d,_0x226228:0x142,_0x93bf4f:0x2dd,_0x1f81ef:0x164,_0x4c5ee3:0x335,_0x151504:0x2f2,_0xef2f92:0x1d8,_0x1165ed:0x193,_0x10b5c4:0x1ad,_0x252443:0x18f,_0x482e98:0x1cc,_0x1372ea:0x20d,_0x351def:0x1ec,_0x359169:0x207,_0x5d42e2:0xc8,_0x6073fa:0x39b,_0x394e7a:0x46b,_0x433d1b:0x5b3,_0x1d78bf:0x485,_0x304d5a:0x510,_0x5f498a:0x586,_0x4a12bb:0x1a9,_0x1eab95:0x322,_0x5e9419:0x340,_0x5aab4f:0x287,_0x4b409b:0x2eb,_0x52bc77:0x2ec,_0x1c0426:0x3b9,_0xde7b14:0x2f7,_0x550af9:0x2ee,_0x397fb5:0x143,_0x20bdd5:0x19f,_0x3cebf5:0x2c1,_0x46a97e:0x287,_0x303179:0x2d9,_0x1d482a:0x478,_0x3d256e:0x401,_0xc3de0f:0x351,_0xc549e:0x202,_0x1bcc4f:0x249,_0x4043bb:0xb2,_0x533e49:0x191},{signal:_0x178836}=_0x1f7034,_0x402bbd=async()=>{const _0x51aec9={_0x1597c6:0x1f6},_0x429f62=await this[_0x406e5b(_0x5b1a68._0x14358a,_0x5b1a68._0x3f4654,0x199,_0x5b1a68._0x235ed4)](_0x269b72,_0x178836);let _0x263d68;function _0x406e5b(_0xb21f74,_0xfcafc8,_0x16f3c3,_0x1f6b0e){return _0x17ab(_0x1f6b0e- -0x50,_0x16f3c3);}try{_0x263d68=_0xcffd94[_0x406e5b(0x268,_0x5b1a68._0x4f226b,_0x5b1a68._0x16ac38,0x25d)](_0x429f62[_0x406e5b(_0x5b1a68._0x226228,0x1ea,0x283,0x1fd)]);}catch(_0xbd82e8){if(_0xbd82e8 instanceof Error)throw new ProviderRequestConstructionError(_0xbd82e8['message']);throw _0xbd82e8;}if(!_0x263d68[_0x406e5b(0x2e9,_0x5b1a68._0x93bf4f,_0x5b1a68._0x1f81ef,0x217)])throw new ProviderRequestConstructionError(_0x406e5b(0x381,_0x5b1a68._0x4c5ee3,0x295,_0x5b1a68._0x151504)+_0xcffd94['id']+_0x406e5b(_0x5b1a68._0xef2f92,_0x5b1a68._0x1165ed,0x1e0,_0x5b1a68._0x10b5c4));const _0x1c6a47=await this['createHeaders']({'request':_0x429f62['request'],'body':_0x263d68['body'],'credential':_0x429f62[_0x406e5b(_0x5b1a68._0x252443,_0x5b1a68._0x482e98,0x261,_0x5b1a68._0x1372ea)],'session':_0x429f62['session'],'stream':_0x1d8144},{'accept':_0x263d68[_0x406e5b(_0x5b1a68._0x351def,_0x5b1a68._0x359169,_0x5b1a68._0x5d42e2,0x19e)]??(_0x1d8144?_0x370989(_0x5b1a68._0x6073fa,0x388,_0x5b1a68._0x394e7a,0x3f2):_0x370989(_0x5b1a68._0x433d1b,_0x5b1a68._0x1d78bf,_0x5b1a68._0x304d5a,_0x5b1a68._0x5f498a)),'includeContentType':_0x263d68[_0x406e5b(_0x5b1a68._0x4a12bb,_0x5b1a68._0x1eab95,_0x5b1a68._0x5e9419,_0x5b1a68._0x5aab4f)]!==void 0x0});for(const [_0x5ec1be,_0x35a243]of Object[_0x370989(_0x5b1a68._0x4b409b,_0x5b1a68._0x52bc77,_0x5b1a68._0x1c0426,0x386)](_0x263d68[_0x406e5b(0x3b4,_0x5b1a68._0xde7b14,0x305,_0x5b1a68._0x550af9)]??{})){_0x1c6a47[_0x406e5b(0x1f2,_0x5b1a68._0x397fb5,_0x5b1a68._0x20bdd5,0x1cb)](_0x5ec1be,_0x35a243);}function _0x370989(_0x2dad4b,_0x2e5a3b,_0x335157,_0x309d99){return _0x17ab(_0x335157-_0x51aec9._0x1597c6,_0x2dad4b);}return this['fetchImpl'](''+_0x429f62[_0x406e5b(_0x5b1a68._0x3cebf5,_0x5b1a68._0x46a97e,0x355,_0x5b1a68._0x303179)]+_0x263d68[_0x370989(0x4c4,_0x5b1a68._0x1d482a,0x45d,_0x5b1a68._0x3d256e)],{'method':'POST','headers':_0x1c6a47,..._0x263d68[_0x406e5b(_0x5b1a68._0xc3de0f,_0x5b1a68._0xc549e,_0x5b1a68._0x1bcc4f,0x287)]!==void 0x0?{'body':JSON[_0x406e5b(_0x5b1a68._0x4043bb,0x230,0x15d,_0x5b1a68._0x533e49)](_0x263d68['body'])}:{},'signal':_0x178836});};return _0x147de3?await this['sendWithRetries'](_0x402bbd,_0x1f7034):await _0x402bbd();}async*['streamHttpSurface'](_0x41789b,_0x43fa78,_0x1cbaf0={}){const _0x13211a={_0x1c741b:0x54c,_0x5cc286:0x5e0,_0x51496c:0x3a2,_0x9a09ae:0x579,_0x3d869f:0x556,_0x3534aa:0x4df,_0x31d0d1:0x583,_0x5f3e7f:0x556,_0x361b92:0x53f,_0x153752:0x4eb,_0x4acce2:0x49d,_0x4e9720:0x5af,_0x1b62e0:0x58e,_0x3d6f4e:0x2bd,_0x526ede:0x238,_0x5c1441:0x647,_0x210e03:0x4fd,_0x365cdb:0x40b,_0x27a065:0x403,_0x3a5572:0x3bc,_0x55e04e:0x319,_0x5d64fb:0x335,_0x565e3c:0x404,_0x1aa24f:0x329,_0x31e160:0x34b,_0x4f83d8:0x406,_0x253f7b:0x288},_0x2745ad={_0x55baf0:0x18};function _0x41c1f9(_0x378fc2,_0x5b9514,_0x446c6b,_0x402eba){return _0x532739(_0x446c6b,_0x5b9514-0x4e5,_0x446c6b-0x9c,_0x402eba-_0x2745ad._0x55baf0);}const {signal:_0x932c5d}=_0x1cbaf0;let _0x387029=![];function _0x24ed78(_0x177fc1,_0x556c58,_0x5b87c2,_0x37f93a){return _0x22e674(_0x177fc1-0x3f,_0x556c58-0x194,_0x5b87c2,_0x556c58-0x194);}for(let _0x52c3e=0x0;_0x52c3e<MAX_PROVIDER_REQUEST_ATTEMPTS;_0x52c3e+=0x1){let _0x51658a=![];try{const _0x1c4c0c=await this[_0x24ed78(0x5be,_0x13211a._0x1c741b,_0x13211a._0x5cc286,0x492)](_0x41789b,_0x43fa78,!![],_0x1cbaf0,![]);if(_0x1c4c0c[_0x41c1f9(0x403,0x3d8,_0x13211a._0x51496c,0x43e)]===0x191&&this[_0x24ed78(_0x13211a._0x9a09ae,_0x13211a._0x3d869f,_0x13211a._0x3534aa,_0x13211a._0x31d0d1)]&&!_0x387029){_0x387029=!![],this[_0x24ed78(0x4a9,_0x13211a._0x5f3e7f,_0x13211a._0x361b92,_0x13211a._0x153752)][_0x24ed78(_0x13211a._0x4acce2,0x583,_0x13211a._0x4e9720,_0x13211a._0x1b62e0)]();continue;}if(!_0x1c4c0c['ok'])throw await this[_0x41c1f9(0x27a,0x2e3,_0x13211a._0x3d6f4e,_0x13211a._0x526ede)](_0x1c4c0c);const _0x3aab55=_0x43fa78['createStreamParser']?.(_0x41789b);if(!_0x3aab55?.['consumeSseEvent'])throw new Error(_0x41c1f9(0x3c9,0x489,0x4e4,0x3a6)+_0x43fa78['id']+_0x24ed78(0x687,_0x13211a._0x5c1441,0x5c4,0x5c9));for await(const _0x46d645 of iterateSseEvents(_0x1c4c0c,_0x932c5d)){const _0x3e72ea=_0x3aab55[_0x41c1f9(_0x13211a._0x210e03,0x437,0x3f6,0x49a)](_0x46d645);for(const _0x5107a7 of _0x3e72ea){_0x51658a=!![],yield _0x5107a7;}}yield{'type':_0x41c1f9(_0x13211a._0x365cdb,0x3bd,0x39f,0x358),'response':_0x3aab55['finish']()};return;}catch(_0x568789){if(_0x51658a||!this['shouldRetryStreamAttemptError'](_0x568789)||_0x52c3e===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0x568789;const _0x2f08e5=this[_0x41c1f9(0x40f,0x473,0x446,_0x13211a._0x27a065)](void 0x0,_0x52c3e),_0x41e39a={'type':_0x41c1f9(_0x13211a._0x3a5572,_0x13211a._0x55e04e,0x314,0x29c),'attempt':_0x52c3e+0x1,'maxAttempts':MAX_PROVIDER_REQUEST_ATTEMPTS,'error':_0x568789 instanceof Error?_0x568789[_0x24ed78(0x578,0x4a9,0x4dc,0x46f)]:String(_0x568789),'delayMs':_0x2f08e5,'reason':this[_0x41c1f9(_0x13211a._0x5d64fb,0x37e,_0x13211a._0x565e3c,0x31b)](_0x568789)?_0x41c1f9(_0x13211a._0x1aa24f,_0x13211a._0x31e160,_0x13211a._0x4f83d8,_0x13211a._0x253f7b):'stream_error'};yield _0x41e39a,await this['waitForRetry'](_0x2f08e5,_0x932c5d);}}}async*['streamWebSocketSurface'](_0x5e5767,_0x16aa90,_0x2f0a74){const _0x2be524={_0xc968a5:0x51f,_0x4a80b0:0x461,_0x3bb016:0x61,_0xd089f1:0x8f,_0x4dbb50:0x6a,_0x14ea44:0x5d1,_0xd1625b:0x6ba,_0x5d45b5:0x4ac,_0x2dfcd3:0x61c,_0x29a9c6:0x62d,_0x10ef10:0x631,_0x51f69a:0xc9,_0x1db5ac:0x1b,_0x1ccb36:0x57,_0xe1ca83:0x5e1,_0x95165e:0x5d8,_0x35a717:0x621,_0x5caadb:0xf5,_0x59490b:0x8b,_0x18532e:0x111,_0x4319e1:0x5c6,_0x755cef:0x47e,_0x4ee094:0x499,_0x23261a:0x533,_0x361bd1:0x5b5,_0x3212a5:0x516,_0x49bc8c:0x50e,_0x1dcf7a:0x458,_0x1a7bb2:0x4fa,_0x354c32:0x52a,_0x422de0:0x553,_0x59beab:0x613,_0x4fa5b4:0x5e,_0x51d5ed:0xee,_0x24650c:0x142,_0x2d3035:0x89,_0x9c8567:0x14f,_0x1b73ee:0x4,_0x5a7651:0x55e,_0x4a7865:0x565,_0x5481ca:0x47c,_0x432e9b:0x548,_0x4b8627:0x49b,_0x56d518:0x4a6,_0x55ae22:0x158,_0x22628a:0x71,_0x3bb603:0xab,_0x2ffe85:0x527,_0x5b2ef0:0x557,_0x1a29a1:0x125,_0x247ff2:0x78,_0x571cb8:0x13f,_0x33879f:0x55b,_0x4f1e8d:0x4fa,_0xc9853d:0x447,_0x158486:0x128,_0x7947e:0x116,_0x2f9aba:0x4a,_0x52e89d:0x7b,_0x5ae528:0xea,_0x2b4279:0xed,_0x364bd0:0x2d,_0x136b97:0x544,_0x5a02cc:0x5a3,_0x12dd67:0x56,_0x2a2861:0x74,_0x461fbe:0xa3},_0x195188={_0x5d8c89:0x656,_0x530b75:0x21},_0x26be71={_0x228a9b:0x1a7};function _0x135b39(_0x1e9180,_0x43a91c,_0x197948,_0x2a6fea){return _0x22e674(_0x1e9180-_0x26be71._0x228a9b,_0x43a91c-0x13c,_0x197948,_0x1e9180- -0x3b0);}const _0x1c3eae=await this[_0x4c32cf(_0x2be524._0xc968a5,_0x2be524._0x4a80b0,0x4ba,0x494)](_0x5e5767,_0x2f0a74);function _0x4c32cf(_0x2679b8,_0x2a4e77,_0x858dd7,_0x5e9027){return _0x532739(_0x2679b8,_0x2a4e77-_0x195188._0x5d8c89,_0x858dd7-_0x195188._0x530b75,_0x5e9027-0xd4);}const _0x2a7f99=_0x16aa90[_0x135b39(_0x2be524._0x3bb016,-0x63,_0x2be524._0xd089f1,-_0x2be524._0x4dbb50)](_0x1c3eae['request']),_0x3e253b=_0x16aa90[_0x4c32cf(_0x2be524._0x14ea44,0x5eb,0x5b1,_0x2be524._0xd1625b)]?.(_0x5e5767);if(!_0x3e253b?.[_0x4c32cf(0x401,0x4af,_0x2be524._0x5d45b5,0x49d)])throw new Error(_0x4c32cf(_0x2be524._0x2dfcd3,0x5fa,_0x2be524._0x29a9c6,_0x2be524._0x10ef10)+_0x16aa90['id']+'\x20cannot\x20parse\x20WebSocket\x20events');const _0x5a6db1=_0x2a7f99[_0x135b39(_0x2be524._0x51f69a,0x95,0xe6,0x90)]??(_0x2a7f99[_0x135b39(_0x2be524._0x1db5ac,0xa9,-_0x2be524._0x1ccb36,-0x57)]?(''+_0x1c3eae[_0x4c32cf(0x53d,_0x2be524._0xe1ca83,_0x2be524._0x95165e,_0x2be524._0x35a717)]+_0x2a7f99[_0x135b39(0x1b,-0x2d,_0x2be524._0x5caadb,0x74)])['replace'](/^http:/,'ws:')[_0x135b39(0x59,-_0x2be524._0x59490b,_0x2be524._0x18532e,0x136)](/^https:/,_0x4c32cf(_0x2be524._0x4319e1,0x563,_0x2be524._0x755cef,_0x2be524._0x4ee094)):void 0x0);if(!_0x5a6db1)throw new ProviderRequestConstructionError(_0x4c32cf(_0x2be524._0x23261a,0x5fa,0x6c8,0x6c2)+_0x16aa90['id']+'\x20did\x20not\x20provide\x20a\x20WebSocket\x20URL\x20or\x20path');const _0x348d19=await this['createHeaders']({'request':_0x1c3eae[_0x4c32cf(_0x2be524._0x361bd1,0x505,_0x2be524._0x3212a5,_0x2be524._0x49bc8c)],'body':_0x2a7f99[_0x4c32cf(_0x2be524._0x1dcf7a,_0x2be524._0x1a7bb2,0x5bd,0x4e4)],'credential':_0x1c3eae['credential'],'session':_0x1c3eae[_0x4c32cf(_0x2be524._0x354c32,_0x2be524._0x422de0,_0x2be524._0x59beab,0x5b3)],'stream':!![]},{'accept':_0x2a7f99[_0x135b39(-_0x2be524._0x4fa5b4,-0x70,-_0x2be524._0x51d5ed,-_0x2be524._0x24650c)]??'application/json','includeContentType':![]});for(const [_0x574de5,_0x49129c]of Object[_0x135b39(-_0x2be524._0x2d3035,-_0x2be524._0x9c8567,-0x17,-_0x2be524._0x1b73ee)](_0x2a7f99['headers']??{})){_0x348d19[_0x4c32cf(_0x2be524._0x5a7651,0x4d3,0x56e,_0x2be524._0x4a7865)](_0x574de5,_0x49129c);}_0x348d19[_0x4c32cf(_0x2be524._0x5481ca,0x562,0x575,_0x2be524._0x432e9b)](_0x4c32cf(_0x2be524._0x4b8627,_0x2be524._0x56d518,0x419,0x47d));const _0x37bf1b=this['webSocketFactory']({'headers':Object[_0x135b39(0xc2,_0x2be524._0x55ae22,_0x2be524._0x22628a,_0x2be524._0x3bb603)](_0x348d19[_0x4c32cf(_0x2be524._0x2ffe85,0x47b,_0x2be524._0x5b2ef0,0x3ae)]()),'url':_0x5a6db1});try{throwIfAborted(_0x2f0a74);_0x37bf1b[_0x135b39(-0x7b,0x2c,-_0x2be524._0x1a29a1,-0x60)]!==WebSocket[_0x135b39(0xed,_0x2be524._0x247ff2,_0x2be524._0x571cb8,0x17c)]&&await waitForWebSocketOpen(_0x37bf1b,_0x2f0a74);throwIfAborted(_0x2f0a74);_0x2a7f99['initialEvent']!==void 0x0&&_0x37bf1b[_0x135b39(0xdf,0x102,0x1a,0x4c)](JSON[_0x4c32cf(0x402,0x499,0x3e4,_0x2be524._0x755cef)](_0x2a7f99[_0x4c32cf(_0x2be524._0x33879f,_0x2be524._0x4f1e8d,0x476,_0x2be524._0xc9853d)]));for await(const _0xc4d8d7 of iterateWebSocketMessages(_0x37bf1b,_0x2f0a74)){yield*_0x3e253b['consumeWebSocketEvent'](_0xc4d8d7);if(_0x3e253b[_0x135b39(-0xa8,-_0x2be524._0x158486,-0xe0,-_0x2be524._0x7947e)]?.())break;}yield{'type':'done','response':_0x3e253b[_0x135b39(0x3c,0x116,-_0x2be524._0x2f9aba,-0x4d)]()};}finally{_0x37bf1b[_0x135b39(-_0x2be524._0x52e89d,-_0x2be524._0x5ae528,0x4b,-0x3e)]===WebSocket[_0x135b39(_0x2be524._0x2b4279,0xf0,0x115,_0x2be524._0x364bd0)]&&_0x37bf1b['close'](0x3e8,_0x2f0a74?.[_0x4c32cf(_0x2be524._0x136b97,_0x2be524._0x5a02cc,0x531,0x58d)]?_0x135b39(0x9f,0x13,_0x2be524._0x12dd67,_0x2be524._0x2a2861):_0x135b39(0x21,0x5a,-0x90,_0x2be524._0x461fbe));}}};async function createHttpError(_0x52add5){const _0x502e41={_0x1559ff:0x54a,_0x91e06a:0x60d,_0x5cfbf4:0x527,_0x305d34:0x59f,_0x4f6d2a:0x61a,_0x2416a0:0x645},_0x291f8f={_0x3b4f7a:0x752,_0x448cae:0x197},_0x12ce66={_0x23a5d1:0xa3};function _0x1fb8c1(_0x248f1e,_0x47850e,_0x24dd81,_0x5231c0){return _0x22e674(_0x248f1e-0xad,_0x47850e-_0x12ce66._0x23a5d1,_0x248f1e,_0x47850e-0xeb);}const _0x1d9ad7=await _0x52add5['text']();function _0x3ae50b(_0x466f64,_0x28742a,_0x21cf1d,_0x4bab87){return _0x532739(_0x4bab87,_0x21cf1d-_0x291f8f._0x3b4f7a,_0x21cf1d-_0x291f8f._0x448cae,_0x4bab87-0x1d2);}const _0x2386ec=_0x1d9ad7[_0x3ae50b(0x574,0x533,_0x502e41._0x1559ff,_0x502e41._0x91e06a)]()||_0x52add5[_0x3ae50b(0x60a,0x565,0x5ec,_0x502e41._0x5cfbf4)]||_0x1fb8c1(0x575,_0x502e41._0x305d34,_0x502e41._0x4f6d2a,0x533);return new Error('Provider\x20request\x20failed\x20with\x20status\x20'+_0x52add5[_0x3ae50b(0x568,0x6bb,_0x502e41._0x2416a0,0x62a)]+':\x20'+_0x2386ec);}var AnthropicProviderAdapter=class{[_0x22e674(0x42b,0x463,0x497,0x40a)];[_0x22e674(0x372,0x476,0x406,0x3b7)];[_0x532739(-0x13b,-0x198,-0x1f3,-0x195)];constructor(_0x3e658f){const _0x24bb70={_0x56c082:0x69,_0x482818:0x14e,_0x117de2:0x175,_0x228774:0x137,_0x2098a6:0x11b,_0x10d898:0x100,_0x213c55:0x11c,_0x59cf95:0xc8,_0x4b43ae:0x16,_0x5d3aff:0x14,_0x53649f:0xcc,_0x208168:0x37,_0x3d825f:0x31,_0x23dae1:0x3d,_0x3ad7ca:0x64,_0x16fa10:0x7b},_0x5cea4e={_0x4b9e7a:0x1c4},_0x2af0fb={_0x12ab25:0xbb,_0x41f316:0x52};function _0x3119c9(_0x259bd3,_0x218820,_0x10ab8a,_0x1fc670){return _0x22e674(_0x259bd3-_0x2af0fb._0x12ab25,_0x218820-_0x2af0fb._0x41f316,_0x218820,_0x259bd3- -0x3a1);}this[_0x3119c9(_0x24bb70._0x56c082,0x147,_0x24bb70._0x482818,0x21)]=_0x3e658f[_0x4d71a1(0x4c,_0x24bb70._0x117de2,_0x24bb70._0x228774,_0x24bb70._0x2098a6)],this[_0x4d71a1(_0x24bb70._0x10d898,_0x24bb70._0x213c55,0x57,_0x24bb70._0x59cf95)]=_0x3e658f[_0x3119c9(_0x24bb70._0x4b43ae,0xdb,_0x24bb70._0x5d3aff,_0x24bb70._0x53649f)];function _0x4d71a1(_0x2a0e44,_0x34b762,_0x9b94c6,_0x3757b4){return _0x22e674(_0x2a0e44-_0x5cea4e._0x4b9e7a,_0x34b762-0xda,_0x9b94c6,_0x3757b4- -0x2ef);}this[_0x3119c9(-_0x24bb70._0x208168,_0x24bb70._0x3d825f,-0xae,-0xf4)]=_0x3e658f[_0x4d71a1(_0x24bb70._0x23dae1,_0x24bb70._0x3ad7ca,0x43,_0x24bb70._0x16fa10)];}[_0x532739(-0x191,-0x1fb,-0x1e9,-0x20b)](){return new Error('AnthropicModel\x20requires\x20an\x20apiKey\x20or\x20providerSessionResolver');}async[_0x22e674(0x4cd,0x530,0x3f0,0x49b)](_0x2d232f,_0xfab1e4){const _0x49907d={_0x5d0bbd:0x496,_0x4bfd77:0x6c9,_0x2de04b:0x5e3,_0x5599b8:0x699,_0x11d1b6:0x292,_0x41da2e:0x579,_0x2bbcae:0x670,_0x192832:0x4d2,_0xb2802b:0x23f,_0x505803:0x547,_0x49c783:0x3ea,_0x3813e5:0x308,_0x2ee03c:0x5f4,_0x2d45ae:0x698,_0x147e98:0x6b3,_0x3a2449:0x3a0,_0x59f43e:0x2e9,_0x1e938c:0x3bc,_0x2be91a:0x267,_0x3618a2:0x310,_0xf49b64:0x340,_0x560b1a:0x254,_0x295785:0x289,_0x5dfd76:0x2e9,_0x1efba8:0x372,_0x578f87:0x518,_0x48de8c:0x57f,_0x52099e:0x5b3,_0xfbe7fc:0x4e8,_0x5f241d:0x347,_0x2f1819:0x2f3,_0x405966:0x495,_0x423459:0x4f5,_0x10ee39:0x420,_0x4ce79e:0x56d,_0x291de5:0x4fa,_0x12d352:0x229,_0x34ddec:0x16c,_0x2bd425:0x2be,_0x421d4d:0x2a7},_0x386318={_0x44b5a9:0x11a,_0x37c9d6:0x16b,_0x2d5912:0x144},_0x5d84c3={_0x23991c:0xd8},_0x204dd6=new Headers();function _0x38f03b(_0x26e1c6,_0x2b825e,_0x584bf4,_0x2261c4){return _0x22e674(_0x26e1c6-0x140,_0x2b825e-0xfd,_0x26e1c6,_0x584bf4- -_0x5d84c3._0x23991c);}_0x204dd6[_0x50e7c7(0x566,0x4c3,0x3fe,0x473)]('accept',_0xfab1e4[_0x50e7c7(0x469,_0x49907d._0x5d0bbd,0x557,0x40e)]),_0x204dd6[_0x50e7c7(0x46a,0x4c3,0x3e7,0x56b)](_0x50e7c7(_0x49907d._0x4bfd77,_0x49907d._0x2de04b,0x5a0,_0x49907d._0x5599b8),this[_0x38f03b(0x1c2,0x1eb,_0x49907d._0x11d1b6,0x227)]);_0xfab1e4[_0x50e7c7(0x51d,0x590,_0x49907d._0x41da2e,_0x49907d._0x2bbcae)]!==![]&&_0x204dd6[_0x50e7c7(_0x49907d._0x192832,0x4c3,0x4ef,0x4ad)](_0x38f03b(0x221,0x179,_0x49907d._0xb2802b,0x227),'application/json');this['authScheme']===_0x50e7c7(0x5ae,0x4eb,0x488,_0x49907d._0x505803)?_0x204dd6[_0x50e7c7(_0x49907d._0x49c783,0x4c3,0x505,0x561)](_0x38f03b(0x30a,_0x49907d._0x3813e5,0x31b,0x33a),_0x50e7c7(0x6b5,_0x49907d._0x2ee03c,_0x49907d._0x2d45ae,_0x49907d._0x147e98)+_0x2d232f[_0x38f03b(0x377,_0x49907d._0x3a2449,_0x49907d._0x59f43e,_0x49907d._0x1e938c)]['value']):_0x204dd6[_0x38f03b(_0x49907d._0x2be91a,0x267,0x2a7,0x295)](_0x38f03b(0x2b3,_0x49907d._0x3618a2,_0x49907d._0xf49b64,0x420),_0x2d232f[_0x38f03b(_0x49907d._0x560b1a,_0x49907d._0x295785,_0x49907d._0x5dfd76,0x250)]['value']);const _0x4b5b7b=await this[_0x38f03b(0x2e9,_0x49907d._0x1efba8,0x2df,0x2d6)]?.({'body':_0x2d232f[_0x50e7c7(_0x49907d._0x578f87,_0x49907d._0x48de8c,_0x49907d._0x52099e,_0x49907d._0xfbe7fc)],'credential':_0x2d232f[_0x38f03b(_0x49907d._0x5f241d,_0x49907d._0x2f1819,0x2e9,0x2df)],'request':_0x2d232f[_0x50e7c7(_0x49907d._0x405966,_0x49907d._0x423459,_0x49907d._0x10ee39,0x4e1)],'session':_0x2d232f['session'],'stream':_0x2d232f[_0x50e7c7(0x64d,_0x49907d._0x4ce79e,_0x49907d._0x291de5,0x51c)]});for(const [_0x948e2,_0x5d6da3]of Object[_0x38f03b(_0x49907d._0x12d352,0x32b,0x24f,_0x49907d._0x34ddec)](_0x4b5b7b??{})){_0x204dd6[_0x38f03b(_0x49907d._0x2bd425,0x385,_0x49907d._0x421d4d,0x255)](_0x948e2,_0x5d6da3);}function _0x50e7c7(_0x205018,_0xba0241,_0x484fa3,_0x3326f4){return _0x22e674(_0x205018-_0x386318._0x44b5a9,_0xba0241-_0x386318._0x37c9d6,_0x3326f4,_0xba0241-_0x386318._0x2d5912);}return _0x204dd6;}[_0x22e674(0x4ac,0x3a1,0x420,0x465)](_0x4fe177){return _0x4fe177;}[_0x532739(-0xfc,-0xb0,-0xc4,0xf)](_0x3c85f6,_0x2e7254){return resolveSessionBaseUrl(_0x3c85f6,_0x2e7254);}[_0x22e674(0x398,0x47c,0x378,0x3cf)](_0x3f172e,_0x5d3788){return resolveApiCredential(_0x3f172e,_0x5d3788);}async[_0x22e674(0x27a,0x2cf,0x338,0x300)](_0x28f3c4){return await createHttpError(_0x28f3c4);}},AnthropicModel=class extends RoutedModel{constructor(_0x2c8097={}){const _0x184add={_0x24ad37:0x601,_0x59fe77:0x530,_0x169d9f:0x502,_0x1f8dc8:0x599,_0x34cb56:0x5b3,_0x1ce66e:0x64f,_0x4d6f3c:0x5fa,_0xbaab5f:0x5b5,_0x5892aa:0x9,_0x3d8079:0x661,_0x210cbb:0x50b,_0x3513b0:0x542,_0x3fc43a:0x5b2,_0x507fea:0x594,_0x443fce:0x585,_0x1cda39:0x13f,_0x4b5898:0x8f,_0x4afbe2:0x32,_0x57f185:0x194,_0x1f33f9:0x514,_0x314a98:0x522,_0x5f57e0:0x524},_0x54fef1={_0x4ee161:0x12,_0x1aefe0:0x493},_0x493b13={_0x129051:0x82};function _0x10e793(_0x6397bd,_0x343827,_0x13e804,_0x30dd52){return _0x22e674(_0x6397bd-0x86,_0x343827-_0x493b13._0x129051,_0x343827,_0x30dd52-0x17c);}function _0x2da51c(_0xb46273,_0x1de24f,_0x50b17b,_0x24eb24){return _0x22e674(_0xb46273-0x80,_0x1de24f-_0x54fef1._0x4ee161,_0xb46273,_0x24eb24- -_0x54fef1._0x1aefe0);}super({'apiKey':_0x2c8097['apiKey'],'baseUrl':trimTrailingSlashes(_0x2c8097[_0x10e793(_0x184add._0x24ad37,0x5fd,0x6c8,0x609)]??_0x10e793(_0x184add._0x59fe77,_0x184add._0x169d9f,_0x184add._0x1f8dc8,_0x184add._0x34cb56)),'fetch':_0x2c8097['fetch'],'maxTokens':_0x2c8097[_0x10e793(0x573,_0x184add._0x1ce66e,_0x184add._0x4d6f3c,_0x184add._0xbaab5f)]??0x4000,'model':_0x2c8097[_0x2da51c(-0x27,0x31,-0x70,_0x184add._0x5892aa)]??_0x10e793(0x5da,_0x184add._0x3d8079,0x6ec,0x61c),'reasoning':_0x2c8097['reasoning'],'providerAdapter':new AnthropicProviderAdapter({'authScheme':_0x2c8097['authScheme']??_0x10e793(_0x184add._0x210cbb,_0x184add._0x3513b0,_0x184add._0x3fc43a,_0x184add._0x507fea),'headerResolver':_0x2c8097[_0x10e793(0x5a8,0x4fd,_0x184add._0x443fce,0x533)],'protocolVersion':_0x2c8097[_0x2da51c(-0xdc,-_0x184add._0x1cda39,-0x16f,-0x129)]??_0x2da51c(0x9f,_0x184add._0x4b5898,-0xac,-_0x184add._0x4afbe2)}),'providerSessionResolver':_0x2c8097[_0x2da51c(-0x136,-0xf5,-0x129,-_0x184add._0x57f185)],'requestMutators':_0x2c8097[_0x10e793(_0x184add._0x1f33f9,_0x184add._0x314a98,_0x184add._0x5f57e0,0x4a0)],'router':new StaticModelSurfaceRouter({'complete':ANTHROPIC_MESSAGES_SURFACE,'stream':ANTHROPIC_MESSAGES_STREAM_SURFACE}),'surfaces':createAnthropicSurfaces()});}[_0x532739(-0x1e4,-0x138,-0x1b6,-0x84)](_0x364bd7,_0x46feb2){const _0x458cd8={_0x4566ad:0x73,_0x93dcd0:0x11c},_0x1aed16={_0x58a876:0xf6,_0x14e976:0x493};function _0x2886ed(_0x47485a,_0x19adf9,_0x3bdf57,_0x32d18a){return _0x22e674(_0x47485a-_0x1aed16._0x58a876,_0x19adf9-0x1ad,_0x3bdf57,_0x32d18a- -_0x1aed16._0x14e976);}return this[_0x2886ed(-0x84,-_0x458cd8._0x4566ad,-0x128,-_0x458cd8._0x93dcd0)](_0x364bd7,ANTHROPIC_MESSAGES_SURFACE,_0x46feb2);}[_0x22e674(0x42e,0x40d,0x48b,0x429)](_0x5767f6,_0x3c1e82){const _0x1fec58={_0x228f5d:0x385},_0x44afcd={_0x382f14:0x1f0};function _0x3d25d1(_0x384821,_0x233cfe,_0x56ad2f,_0x4ec002){return _0x22e674(_0x384821-_0x44afcd._0x382f14,_0x233cfe-0x9a,_0x384821,_0x4ec002- -0x3a);}return this[_0x3d25d1(0x386,0x321,0x2a8,_0x1fec58._0x228f5d)](_0x5767f6,ANTHROPIC_MESSAGES_STREAM_SURFACE,_0x3c1e82);}},OPENAI_CHAT_COMPLETIONS_SURFACE=_0x532739(-0x280,-0x1b1,-0x282,-0x215),OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE='openai-chat-completions-stream',OPENAI_RESPONSES_SURFACE='openai-responses',OPENAI_RESPONSES_STREAM_SURFACE=_0x22e674(0x42e,0x3fa,0x3dc,0x3d2),OPENAI_RESPONSES_WEBSOCKET_SURFACE='openai-responses-ws',OpenAiApiError=class extends Error{[_0x22e674(0x39f,0x3be,0x31a,0x3f5)];[_0x532739(-0x19e,-0xc7,-0x158,-0x106)];constructor(_0x4bd080,_0x1120ee,_0x4530e2){const _0x3afa25={_0xc6f858:0x3e4,_0x2bc009:0x4bb,_0x3a5e62:0x444,_0x3a6b4e:0x394,_0x50da90:0x442,_0x149573:0x505,_0x1eb3ff:0x580,_0x31c442:0x430,_0x4d29da:0x454},_0x1916c8={_0x237a54:0x47b,_0x30767e:0x1d9},_0x3b8a00={_0x17bcb8:0x9a};super(_0x4530e2);function _0x23cc51(_0x459497,_0x901272,_0x575e83,_0x569bba){return _0x22e674(_0x459497-_0x3b8a00._0x17bcb8,_0x901272-0x174,_0x569bba,_0x575e83-0x180);}this[_0x23cc51(0x559,_0x3afa25._0xc6f858,_0x3afa25._0x2bc009,_0x3afa25._0x3a5e62)]=_0x62958b(0x3f7,_0x3afa25._0x3a6b4e,_0x3afa25._0x50da90,0x434),this[_0x23cc51(_0x3afa25._0x149573,_0x3afa25._0x1eb3ff,0x575,0x5fc)]=_0x4bd080;function _0x62958b(_0x29554a,_0x4ba63d,_0x4a5b69,_0x1835c5){return _0x532739(_0x1835c5,_0x4ba63d-_0x1916c8._0x237a54,_0x4a5b69-0x55,_0x1835c5-_0x1916c8._0x30767e);}this[_0x62958b(_0x3afa25._0x31c442,0x3b4,0x3dc,_0x3afa25._0x4d29da)]=_0x1120ee;}};function stringifySystem(_0x9c8e91){const _0x1c1de0={_0x137ff7:0xb2},_0x2a0b95={_0x8ba7dd:0x15d},_0xda61b={_0x204ba8:0xa6};function _0x43e74d(_0xe6e4e5,_0x183b25,_0x476666,_0xaaf6a9){return _0x22e674(_0xe6e4e5-_0xda61b._0x204ba8,_0x183b25-0xfc,_0xaaf6a9,_0xe6e4e5- -0x2ad);}function _0x25ae94(_0x4c38a0,_0x421562,_0x19d9d6,_0xaa2a81){return _0x532739(_0xaa2a81,_0x421562-0x11a,_0x19d9d6-_0x2a0b95._0x8ba7dd,_0xaa2a81-0x103);}return _0x9c8e91['map'](_0x5d9bd8=>_0x5d9bd8[_0x25ae94(0x95,0x81,0x110,0x86)])[_0x25ae94(-_0x1c1de0._0x137ff7,-0xef,-0x4d,-0x13b)]('\x0a\x0a');}function createToolDefinitions(_0xf0e34c){const _0x302ae8={_0x41e278:0x15f,_0x3681a3:0x9,_0x2bf4c0:0x92,_0x8cbc17:0x134,_0x369151:0xcd,_0x54ca41:0x128},_0x43b39f={_0x3babe0:0x547,_0xe82071:0x3d5,_0x348164:0x46e},_0x283e6f={_0x3a6367:0x88},_0x887389={_0x130572:0x26f};function _0x4e6ffc(_0x3d426c,_0x10fd1a,_0x1b0e2e,_0x26399d){return _0x532739(_0x26399d,_0x10fd1a-_0x887389._0x130572,_0x1b0e2e-0x1e3,_0x26399d-0xa8);}function _0x2df539(_0x452f28,_0x1b1728,_0x519bc1,_0x3d3906){return _0x532739(_0x452f28,_0x3d3906-0x24a,_0x519bc1-0x126,_0x3d3906-0xb5);}if(_0xf0e34c[_0x2df539(_0x302ae8._0x41e278,-0x35,_0x302ae8._0x3681a3,_0x302ae8._0x2bf4c0)]===0x0)return void 0x0;return _0xf0e34c[_0x4e6ffc(_0x302ae8._0x8cbc17,_0x302ae8._0x369151,0x3b,_0x302ae8._0x54ca41)](_0xd42030=>{function _0x8bf9bc(_0x4d870d,_0x28c507,_0x2d0a55,_0xe36c0f){return _0x2df539(_0x2d0a55,_0x28c507-_0x283e6f._0x3a6367,_0x2d0a55-0x165,_0xe36c0f-0x307);}function _0x119613(_0x276ebc,_0x25e5ef,_0x463fe1,_0x12e85b){return _0x4e6ffc(_0x276ebc-0x1c7,_0x463fe1-0x1d7,_0x463fe1-0xf4,_0x276ebc);}return{'type':_0x8bf9bc(0x535,0x5ad,_0x43b39f._0x3babe0,0x4ca),'function':{'name':_0xd42030[_0x119613(0x31b,0x356,0x27f,0x241)],'description':_0xd42030[_0x119613(0x3f5,0x2ac,0x38b,0x2c1)],'parameters':_0xd42030[_0x8bf9bc(0x43a,_0x43b39f._0xe82071,0x507,_0x43b39f._0x348164)]}};});}function isImageToolResultBlock(_0x42f990){const _0x510ca7={_0x35e9e5:0x686,_0xd4b505:0x52f,_0x44a657:0x59f,_0x1e9fe5:0x4e8,_0x3aa1fc:0x444,_0x5f20ef:0x160,_0x398ae4:0x60,_0x163450:0x9,_0x52e417:0x7e,_0x43b90a:0xf4,_0x44a20a:0x153,_0x202536:0xa2,_0x3d1967:0x152,_0x2825ca:0x6c,_0x58abdc:0x128},_0x168b6f={_0x405dbf:0x62a,_0x4d19f9:0x18c,_0x4b2ffc:0x10c};function _0x51dc3a(_0x11b9d1,_0x13bb61,_0xa6ac65,_0x2d94e3){return _0x532739(_0x13bb61,_0xa6ac65-_0x168b6f._0x405dbf,_0xa6ac65-_0x168b6f._0x4d19f9,_0x2d94e3-_0x168b6f._0x4b2ffc);}function _0x24514c(_0x1ad789,_0x3afcf7,_0xe42994,_0x2b1ec6){return _0x532739(_0x1ad789,_0xe42994-0x1bb,_0xe42994-0x159,_0x2b1ec6-0x1c2);}if(typeof _0x42f990!==_0x51dc3a(_0x510ca7._0x35e9e5,0x50d,0x5c9,0x517)||_0x42f990===null||Array[_0x51dc3a(0x676,_0x510ca7._0xd4b505,_0x510ca7._0x44a657,0x5cc)](_0x42f990))return![];const _0x1387e6=_0x42f990;return _0x1387e6[_0x51dc3a(0x491,0x511,_0x510ca7._0x1e9fe5,_0x510ca7._0x3aa1fc)]==='image'&&_0x1387e6['source']?.[_0x24514c(_0x510ca7._0x5f20ef,-_0x510ca7._0x398ae4,0x79,_0x510ca7._0x163450)]===_0x24514c(0x62,_0x510ca7._0x52e417,0xf6,_0x510ca7._0x43b90a)&&typeof _0x1387e6[_0x24514c(0x123,_0x510ca7._0x44a20a,_0x510ca7._0x202536,_0x510ca7._0x3d1967)][_0x24514c(0x117,0x12d,0x11c,0x1d3)]==='string'&&typeof _0x1387e6['source'][_0x24514c(0xce,-0x2e,_0x510ca7._0x2825ca,_0x510ca7._0x58abdc)]==='string';}function getToolResultText(_0x5e860b){const _0x6fa8a={_0x3f1ef0:0x225,_0x5e4c10:0x2e7,_0x423176:0x210,_0x1b0a0a:0x28c,_0x75d6f6:0x310,_0x440c7a:0x133,_0x122edc:0x3c1,_0x43440c:0x395},_0x565f57={_0x4d9193:0x5cb,_0x8fe7ad:0x74a,_0x3cc6ca:0x6a6,_0x46164f:0x544,_0x29b8b6:0x579,_0x39a7b0:0x544,_0x4e084f:0x5ed,_0x182e3d:0x582},_0xd752fa={_0x100c2a:0x506,_0x1ce312:0x125,_0x406405:0x1a3},_0x396785={_0x4f96c5:0x195,_0x211aae:0x15c,_0x18bd49:0x1c6};if(typeof _0x5e860b===_0x150cca(_0x6fa8a._0x3f1ef0,_0x6fa8a._0x5e4c10,_0x6fa8a._0x423176,_0x6fa8a._0x1b0a0a))return _0x5e860b;function _0x150cca(_0x3cb00b,_0x3bdbfe,_0xa64bb7,_0x33176d){return _0x22e674(_0x3cb00b-_0x396785._0x4f96c5,_0x3bdbfe-_0x396785._0x211aae,_0x33176d,_0xa64bb7- -_0x396785._0x18bd49);}function _0x4bbf9f(_0x55128d,_0x11a4db,_0x26ec29,_0x22da93){return _0x532739(_0x55128d,_0x26ec29-_0xd752fa._0x100c2a,_0x26ec29-_0xd752fa._0x1ce312,_0x22da93-_0xd752fa._0x406405);}const _0x6db0ac=_0x5e860b[_0x150cca(0x1da,0x24b,0x216,0x1f7)](_0x3b5aa5=>{const _0x1c9f55={_0x370bc5:0x30},_0x3c8328={_0x2057d4:0xbe};function _0x239f9a(_0x2b5f8b,_0x4f44ae,_0x53cc1f,_0x4d4efd){return _0x4bbf9f(_0x4f44ae,_0x4f44ae-0x1c2,_0x4d4efd-0x201,_0x4d4efd-_0x3c8328._0x2057d4);}function _0x3f93d2(_0x4cbb11,_0x4fb5f1,_0x1d81cc,_0x167011){return _0x150cca(_0x4cbb11-_0x1c9f55._0x370bc5,_0x4fb5f1-0x90,_0x4cbb11-0x34a,_0x1d81cc);}return typeof _0x3b5aa5===_0x239f9a(_0x565f57._0x4d9193,0x6f5,_0x565f57._0x8fe7ad,_0x565f57._0x3cc6ca)&&_0x3b5aa5!==null&&_0x3b5aa5[_0x3f93d2(_0x565f57._0x46164f,_0x565f57._0x29b8b6,0x5f5,_0x565f57._0x39a7b0)]===_0x3f93d2(_0x565f57._0x4e084f,_0x565f57._0x182e3d,0x605,0x5ee);})[_0x4bbf9f(0x314,_0x6fa8a._0x75d6f6,0x364,0x2f5)](_0x476624=>_0x476624['text'])[_0x150cca(0xfd,0x138,_0x6fa8a._0x440c7a,0x1c3)]('\x0a\x0a')['trim']();return _0x6db0ac[_0x4bbf9f(_0x6fa8a._0x122edc,0x38b,0x34e,_0x6fa8a._0x43440c)]>0x0?_0x6db0ac:'Tool\x20returned\x20image\x20content.';}function getToolResultImages(_0x246832){const _0x547204={_0x50ecfa:0x351,_0x26b25d:0x3a0,_0x435ae4:0x32e},_0x16585d={_0x58e67d:0x1c8},_0x1bc354={_0x44579c:0x67,_0x1ccd15:0x5f,_0x1cce87:0x18e};function _0x40bf43(_0x5ce32b,_0x33585d,_0x4661a3,_0x29a3da){return _0x22e674(_0x5ce32b-_0x1bc354._0x44579c,_0x33585d-_0x1bc354._0x1ccd15,_0x4661a3,_0x29a3da- -_0x1bc354._0x1cce87);}function _0x2f2495(_0x1b0459,_0x38da1e,_0x2837a5,_0x19abf1){return _0x532739(_0x2837a5,_0x19abf1-0x419,_0x2837a5-_0x16585d._0x58e67d,_0x19abf1-0x1be);}return Array[_0x2f2495(0x2ac,0x3be,0x2c0,0x38e)](_0x246832)?_0x246832[_0x2f2495(_0x547204._0x50ecfa,_0x547204._0x26b25d,_0x547204._0x435ae4,0x2f3)](isImageToolResultBlock):[];}function parseToolInput2(_0x2cbfba){if(_0x2cbfba['length']===0x0)return{};try{return JSON['parse'](_0x2cbfba);}catch{return _0x2cbfba;}}function isResponsesReasoningItem(_0x4d13f3){return typeof _0x4d13f3==='object'&&_0x4d13f3!==null&&'type'in _0x4d13f3&&_0x4d13f3['type']==='reasoning';}function isResponsesMessageItem(_0x36c0b9){const _0x17b7cc={_0x4dcb1c:0x22,_0x41d0af:0x27a,_0x115f32:0x2e3},_0x3e908a={_0x29c0b7:0x348},_0x2f419d={_0x23d213:0x99};function _0x8755f4(_0x29ba84,_0x351057,_0x4c639f,_0x3a5b01){return _0x532739(_0x3a5b01,_0x4c639f-0x418,_0x4c639f-0x8e,_0x3a5b01-_0x2f419d._0x23d213);}function _0x31f677(_0xb2ec4e,_0x294914,_0x165aac,_0x4d1bfc){return _0x22e674(_0xb2ec4e-0x6,_0x294914-0xd5,_0x4d1bfc,_0x294914- -_0x3e908a._0x29c0b7);}return typeof _0x36c0b9===_0x8755f4(0x338,0x352,0x3b7,0x2e8)&&_0x36c0b9!==null&&_0x31f677(-_0x17b7cc._0x4dcb1c,0x78,0xc2,-0x23)in _0x36c0b9&&_0x36c0b9[_0x8755f4(_0x17b7cc._0x41d0af,0x2b5,0x2d6,_0x17b7cc._0x115f32)]==='message';}function isResponsesFunctionCallItem(_0x21ea64){const _0x3983c3={_0x22ab1f:0x3e0,_0x389eee:0x4bc,_0x2ad80b:0x413,_0x4b1a25:0x3db,_0x13cf99:0x4f7},_0x571ca2={_0x6d1f0b:0x68,_0x3a37f4:0x15},_0x9c0a3f={_0xd83d48:0x453,_0x31b358:0x11};function _0x3e4860(_0x4e8f2a,_0x1b6ee5,_0x51b6c0,_0x526139){return _0x532739(_0x51b6c0,_0x4e8f2a-_0x9c0a3f._0xd83d48,_0x51b6c0-0xfc,_0x526139-_0x9c0a3f._0x31b358);}function _0x4dddad(_0x4b0ff3,_0x3a7aa8,_0x1f9ec0,_0x5813f1){return _0x22e674(_0x4b0ff3-_0x571ca2._0x6d1f0b,_0x3a7aa8-_0x571ca2._0x3a37f4,_0x5813f1,_0x3a7aa8-0x1b);}return typeof _0x21ea64===_0x4dddad(_0x3983c3._0x22ab1f,_0x3983c3._0x389eee,0x55d,0x456)&&_0x21ea64!==null&&_0x4dddad(_0x3983c3._0x2ad80b,_0x3983c3._0x4b1a25,0x3ed,0x49e)in _0x21ea64&&_0x21ea64['type']===_0x4dddad(0x42d,0x439,0x455,_0x3983c3._0x13cf99);}function createContentBlocks(_0xd78a66,_0x3c7937,_0x50a7e0){const _0x32e9c6={_0xe45e2f:0x490,_0xfd9cae:0x48d,_0x40713b:0x50b,_0x3ff6d4:0x4dd,_0x38cc5d:0x57b,_0x2f907e:0x4d0,_0x17c71e:0x598,_0x2a6e7c:0x5f2,_0x54fb1d:0x5a1,_0x47338e:0x3d2,_0x38c34a:0x3a5,_0x4320f3:0x4f0,_0x433294:0x538,_0x104855:0x501,_0x40c775:0x4f1,_0x4d1bb4:0x510,_0x5f4511:0x41f,_0x60b5cb:0x5c0,_0x36e4a0:0x47e,_0x4c0890:0x462,_0x88956e:0x422,_0x51db3c:0x434,_0x3fd81e:0x387,_0x328495:0x2f8,_0x4890dd:0x3c3,_0x150606:0x48b,_0x94aac3:0x4e0,_0x1b9cdf:0x481,_0x7f3aff:0x5e6,_0x1d9ee8:0x4e5,_0x4bb55a:0x48c,_0x526efc:0x546},_0x272e7d={_0x155892:0x58a,_0x545a1c:0x1,_0x44d637:0xbc},_0x53c5a7=[];_0x50a7e0&&_0x50a7e0[_0x1ae3cc(_0x32e9c6._0xe45e2f,_0x32e9c6._0xfd9cae,0x4c5,_0x32e9c6._0x40713b)]>0x0&&_0x53c5a7[_0x1ae3cc(0x565,_0x32e9c6._0x3ff6d4,0x57c,_0x32e9c6._0x38cc5d)]({'type':_0x1ae3cc(_0x32e9c6._0x2f907e,_0x32e9c6._0x17c71e,_0x32e9c6._0x2a6e7c,_0x32e9c6._0x54fb1d),'summary':[],'text':_0x50a7e0});function _0x3d5537(_0x468e71,_0x2886e2,_0x28aa01,_0x1b84b4){return _0x532739(_0x468e71,_0x28aa01-_0x272e7d._0x155892,_0x28aa01-_0x272e7d._0x545a1c,_0x1b84b4-_0x272e7d._0x44d637);}function _0x1ae3cc(_0x34c809,_0x1443ef,_0xc1cc1c,_0x5aac80){return _0x22e674(_0x34c809-0xac,_0x1443ef-0x72,_0xc1cc1c,_0x1443ef-0x143);}_0xd78a66[_0x3d5537(0x349,0x467,_0x32e9c6._0x47338e,_0x32e9c6._0x38c34a)]>0x0&&_0x53c5a7[_0x1ae3cc(0x434,0x4dd,_0x32e9c6._0x4320f3,0x4a6)]({'type':_0x3d5537(_0x32e9c6._0x433294,_0x32e9c6._0x104855,_0x32e9c6._0x40c775,_0x32e9c6._0x4d1bb4),'text':_0xd78a66});for(const _0x333191 of _0x3c7937){if(_0x333191['id'][_0x1ae3cc(0x4d7,0x43d,0x3b9,0x408)]()[_0x3d5537(_0x32e9c6._0x5f4511,0x3c3,0x3d2,0x43e)]===0x0||_0x333191[_0x1ae3cc(0x63b,0x5be,0x5a9,_0x32e9c6._0x60b5cb)][_0x1ae3cc(0x4ab,_0x32e9c6._0x36e4a0,0x50f,_0x32e9c6._0x4c0890)]['trim']()[_0x3d5537(0x4a8,0x470,0x3d2,0x467)]===0x0)continue;_0x53c5a7[_0x3d5537(0x3ab,0x3ea,_0x32e9c6._0x88956e,0x452)]({'type':_0x3d5537(0x4be,0x469,_0x32e9c6._0x51db3c,0x4a2),'id':_0x333191['id'],'name':_0x333191['function'][_0x3d5537(_0x32e9c6._0x3fd81e,_0x32e9c6._0x328495,_0x32e9c6._0x4890dd,_0x32e9c6._0x150606)],'input':parseToolInput2(_0x333191[_0x3d5537(_0x32e9c6._0x94aac3,_0x32e9c6._0x1b9cdf,0x503,_0x32e9c6._0x7f3aff)][_0x1ae3cc(_0x32e9c6._0x1d9ee8,_0x32e9c6._0x4bb55a,0x3d8,_0x32e9c6._0x526efc)])});}return _0x53c5a7;}function createUsage(_0x38d94e){const _0x439bdb={_0x4651e7:0x9f,_0x1bbdfa:0x39e,_0x3e099e:0x23c,_0x4d0f5a:0x2f,_0xc48773:0x2a,_0x3f6069:0xda,_0x2c26ec:0xd8},_0x3dad1b={_0x479ea8:0x258},_0x378493={_0x1407b5:0x196};function _0x48da22(_0x36b0d7,_0x4a76dd,_0x1ce281,_0x52c18f){return _0x532739(_0x52c18f,_0x1ce281-0x35e,_0x1ce281-_0x378493._0x1407b5,_0x52c18f-0x3c);}function _0x4dcf25(_0x27f051,_0x572ff6,_0x5d0fd4,_0x406d05){return _0x22e674(_0x27f051-0x1a0,_0x572ff6-0xa7,_0x5d0fd4,_0x406d05- -_0x3dad1b._0x479ea8);}return{'inputTokens':_0x38d94e?.[_0x4dcf25(_0x439bdb._0x4651e7,0x1b8,0x95,0xff)]??0x0,'outputTokens':_0x38d94e?.[_0x48da22(0x297,_0x439bdb._0x1bbdfa,0x2d9,_0x439bdb._0x3e099e)]??0x0,..._0x38d94e?.[_0x4dcf25(_0x439bdb._0x4d0f5a,0x1b,0x144,0xd8)]?.[_0x48da22(0x163,0x297,0x1b4,0xff)]!==void 0x0?{'reasoningTokens':_0x38d94e[_0x4dcf25(0xcc,_0x439bdb._0xc48773,_0x439bdb._0x3f6069,_0x439bdb._0x2c26ec)]['reasoning_tokens']}:{}};}function resolveReasoningVisibility2(_0x3e4cb8){const _0x3bea9b={_0x3a54a3:0x4d8,_0x53e6a6:0x439,_0x393cfe:0x59e,_0x38f1cb:0x58c,_0x2f5222:0x5b1,_0x3dce9b:0x569},_0xb83b80={_0x6a5a84:0x124},_0x307bd3={_0x272370:0x1b6};function _0x1230eb(_0x52c0d3,_0x5272f2,_0xec8ed4,_0x51e6b5){return _0x22e674(_0x52c0d3-0x17b,_0x5272f2-_0x307bd3._0x272370,_0x5272f2,_0xec8ed4- -0x1f7);}function _0x243c7b(_0x256f5d,_0x15e385,_0x5dbf82,_0x1f93bc){return _0x22e674(_0x256f5d-0x104,_0x15e385-0x149,_0x5dbf82,_0x1f93bc-_0xb83b80._0x6a5a84);}return _0x3e4cb8[_0x243c7b(_0x3bea9b._0x3a54a3,_0x3bea9b._0x53e6a6,0x467,0x487)]?.['visibility']??_0x243c7b(_0x3bea9b._0x393cfe,_0x3bea9b._0x38f1cb,_0x3bea9b._0x2f5222,_0x3bea9b._0x3dce9b);}function isUserVisibleReasoning(_0x3e1164){const _0x331e62={_0x27ec2f:0x218},_0x3966f2={_0x561544:0x85,_0x31e0fd:0x131};function _0xfce7d7(_0xe2432c,_0x128683,_0xa29731,_0xe7af48){return _0x22e674(_0xe2432c-_0x3966f2._0x561544,_0x128683-_0x3966f2._0x31e0fd,_0xe7af48,_0xa29731- -0x205);}return resolveOpenAiReasoningConfig(_0x3e1164[_0xfce7d7(_0x331e62._0x27ec2f,0x22a,0x15e,0x9a)])!==void 0x0&&resolveReasoningVisibility2(_0x3e1164)==='user-visible';}function createChatRequestBody(_0x441f94,_0x9c530e){const _0x1db63a={_0xbfb957:0x2d1,_0x3c9507:0x386,_0x100562:0xb9,_0x58a92a:0xb2,_0x541687:0xe3,_0x39a743:0x9,_0x3c09c8:0x3fc,_0xd8fa4b:0x515,_0x3f8cfb:0x541,_0x5d548e:0x475,_0xc8390a:0x42b,_0x2b1861:0x3ee,_0x1280fb:0x3e2,_0x2e2cee:0x426,_0x70da1c:0xb9,_0x2402c1:0x120,_0x42876e:0x19d,_0x396ee8:0x33d,_0x2be16d:0x3ed,_0x5ed6d9:0x40a,_0x232fe0:0x29,_0x2420f6:0x3f1,_0x1af7a1:0x53,_0x36a20a:0x43,_0x4c7df0:0x89,_0x22d22a:0x86,_0x499548:0x13,_0x5e7a53:0x37,_0x3d67bd:0xaf,_0x5ebc20:0x443,_0x4f8ed3:0x518,_0x474a68:0x49f,_0xd37a0:0x4cd,_0x49ae39:0x45f,_0x236368:0x6a,_0x4c7aba:0x3f,_0x3a4e62:0x93,_0x147fd7:0x16c,_0x372b76:0x82,_0x158d0f:0x2d,_0xe3fcd8:0xb9,_0x4bebdb:0x11,_0x5331af:0x2fc,_0x5c9de0:0x377,_0x498862:0x10a,_0x4aa826:0x158,_0x2cf24c:0x162,_0x226378:0x173,_0x1bf8c4:0x1ec,_0x384e1b:0x195,_0x297e2b:0x2c,_0x103363:0x113,_0x2ae861:0x490,_0x1264fd:0x34c,_0x287a38:0x399,_0x133afa:0x3f1,_0x5554a8:0x45d,_0x5393de:0x3d6,_0x543cdd:0x3ae,_0x105304:0x535,_0x465ff4:0x46b,_0xa12a08:0x46e,_0x85687a:0x395,_0x578b3f:0x9,_0x32d134:0x70,_0x598fcc:0xd1,_0x2a1494:0xb9,_0x47feb7:0x132,_0x3e1224:0x7a,_0x54cf02:0x501,_0x384b9e:0x46e,_0x27f7c8:0x41a,_0x1a8ca0:0x426,_0x1d6904:0xb0,_0x4393a2:0x54e,_0x49c6e0:0x41a,_0x8c825:0x56d,_0x4526da:0x4a9,_0x191904:0x104,_0x149d54:0xed,_0x384f52:0x143,_0x1c743f:0x3f6,_0x223c18:0x2b8,_0x377b84:0x39c,_0x30d253:0xf0,_0x5b070d:0xc9,_0x17b6a8:0x66,_0x23e650:0xc7,_0x53bdb8:0x1a,_0x54c081:0x465,_0x43c02d:0x506,_0x3eb15c:0x4e1,_0x50daaf:0x3dd,_0x1308ad:0x330,_0x52171f:0x3ec,_0x40b668:0xfc,_0x33df46:0x10c},_0x3b0362={_0x1e5335:0x5a3,_0xde9c3c:0x5f0,_0x269844:0x161,_0x486724:0x61f,_0x49f300:0x596,_0x1efa8e:0x635,_0x19e41e:0x1d4,_0x154c7b:0x1d9,_0x47b6dd:0x552,_0x2eaa9b:0x53c,_0x4dfb4:0x4e9,_0x3a9dee:0x76c,_0x357ced:0x6b2,_0x2ae313:0x249,_0x1749f1:0x2a3,_0x45b727:0x2af,_0x307b8a:0x683,_0x1a149d:0x70c,_0x3f986f:0x274,_0x21577a:0x1d6,_0xb674ed:0x2b2,_0x9486:0x25d,_0x5e9778:0x30b,_0x11a5e2:0x224,_0x43558f:0x1f6,_0x47240e:0x217,_0x2d7557:0x264,_0x3ab2b4:0x63f,_0x135208:0x51a,_0x2e4f3a:0x4be,_0x2d4e8a:0x2a0,_0x23c136:0x28b,_0x5efcbc:0x2df,_0x581971:0x2b4,_0x341351:0x1e1,_0x3ddf9b:0x1db,_0x13d7a3:0x367},_0x12cdf2={_0x366c25:0x21d},_0x46c116={_0x17bd7d:0xca},_0x4e87d0={_0x10db59:0xd,_0x247729:0xf8},_0x135bfb=[];function _0x397014(_0x2e4258,_0x3e8232,_0x5e7139,_0x217611){return _0x532739(_0x3e8232,_0x217611-0x53e,_0x5e7139-_0x4e87d0._0x10db59,_0x217611-_0x4e87d0._0x247729);}function _0x58fe92(_0x843fb,_0x5b5d4a,_0x1591cc,_0x3ada82){return _0x22e674(_0x843fb-0xf7,_0x5b5d4a-_0x46c116._0x17bd7d,_0x3ada82,_0x843fb- -0x453);}const _0x721ccb=stringifySystem(_0x441f94['system']);_0x721ccb[_0x397014(_0x1db63a._0xbfb957,0x3fe,0x36a,_0x1db63a._0x3c9507)]>0x0&&_0x135bfb[_0x58fe92(-_0x1db63a._0x100562,-_0x1db63a._0x58a92a,-0x9a,-0x8c)]({'role':'system','content':_0x721ccb});for(const _0x8611a3 of _0x441f94[_0x58fe92(-_0x1db63a._0x541687,-0x159,-0xa6,-0x193)]){const _0x61d439=[],_0x566823=[],_0x8bb99e=[],_0x5c0f79=()=>{function _0x49caab(_0x33c3f5,_0x27a82c,_0x312788,_0x4efc03){return _0x58fe92(_0x33c3f5-0x2dd,_0x27a82c-0x105,_0x312788-0x16c,_0x312788);}function _0x4373ee(_0x1cfe6a,_0x559325,_0x5bbb52,_0x3b106d){return _0x397014(_0x1cfe6a-0xaf,_0x559325,_0x5bbb52-0x67,_0x1cfe6a-_0x12cdf2._0x366c25);}if(_0x8611a3['role']===_0x49caab(0x250,0x2cf,0x189,0x29f)){if(_0x61d439[_0x4373ee(_0x3b0362._0x1e5335,_0x3b0362._0xde9c3c,0x626,0x5f7)]===0x0&&_0x566823[_0x4373ee(_0x3b0362._0x1e5335,0x57d,0x538,0x5e0)]===0x0)return;_0x135bfb[_0x49caab(0x224,0x229,_0x3b0362._0x269844,0x298)]({'role':_0x4373ee(_0x3b0362._0x486724,_0x3b0362._0x49f300,_0x3b0362._0x1efa8e,0x5ef),'content':_0x61d439[_0x49caab(_0x3b0362._0x19e41e,_0x3b0362._0x154c7b,0x1e9,0x17c)]>0x0?_0x61d439['join']('\x0a\x0a'):null,..._0x566823[_0x4373ee(_0x3b0362._0x1e5335,_0x3b0362._0x47b6dd,_0x3b0362._0x2eaa9b,_0x3b0362._0x4dfb4)]>0x0?{'tool_calls':_0x566823[_0x4373ee(0x6aa,_0x3b0362._0x3a9dee,_0x3b0362._0x357ced,0x611)](0x0)}:{}}),_0x61d439[_0x49caab(_0x3b0362._0x19e41e,_0x3b0362._0x2ae313,_0x3b0362._0x1749f1,_0x3b0362._0x45b727)]=0x0;return;}if(_0x8611a3[_0x4373ee(_0x3b0362._0x307b8a,_0x3b0362._0x1a149d,0x5c2,0x5d9)]===_0x49caab(_0x3b0362._0x3f986f,0x237,_0x3b0362._0x21577a,_0x3b0362._0xb674ed)){if(_0x8bb99e['length']===0x0)return;const _0x2a9193=_0x8bb99e[_0x49caab(_0x3b0362._0x9486,0x31a,_0x3b0362._0x5e9778,0x219)](_0x4f34e3=>_0x4f34e3[_0x4373ee(0x619,0x563,0x64a,0x679)]===_0x4373ee(0x6bf,0x674,0x669,0x67e));_0x135bfb[_0x49caab(_0x3b0362._0x11a5e2,_0x3b0362._0x43558f,0x1ab,0x17c)]({'role':_0x49caab(0x274,_0x3b0362._0x47240e,0x1cd,_0x3b0362._0x2d7557),'content':_0x2a9193?_0x8bb99e['splice'](0x0):_0x8bb99e['splice'](0x0)[_0x4373ee(_0x3b0362._0x1efa8e,_0x3b0362._0x3ab2b4,0x707,0x55f)](_0x21af8f=>_0x21af8f[_0x4373ee(0x619,0x666,0x648,0x699)]===_0x49caab(0x2f3,0x350,0x2e8,0x222))[_0x4373ee(0x5b9,0x5fc,0x690,0x4e9)](_0x2ca7cb=>_0x2ca7cb[_0x49caab(0x2f3,0x39a,0x364,0x29b)])[_0x4373ee(0x552,_0x3b0362._0x135208,0x49a,_0x3b0362._0x2e4f3a)]('\x0a\x0a')});return;}if(_0x61d439['length']===0x0)return;_0x135bfb[_0x49caab(_0x3b0362._0x11a5e2,_0x3b0362._0x2d4e8a,_0x3b0362._0x23c136,_0x3b0362._0x5efcbc)]({'role':_0x8611a3[_0x49caab(_0x3b0362._0x581971,_0x3b0362._0x341351,_0x3b0362._0x3ddf9b,_0x3b0362._0x13d7a3)],'content':_0x61d439[_0x49caab(0x183,0x256,0x222,0x116)]('\x0a\x0a')}),_0x61d439[_0x49caab(_0x3b0362._0x19e41e,0xfd,0x293,0x2b9)]=0x0;};for(const _0x162e06 of normalizeContent(_0x8611a3[_0x58fe92(-0x9,-0x44,0x51,_0x1db63a._0x39a743)])){if(_0x162e06[_0x397014(0x381,0x3dc,0x395,_0x1db63a._0x3c09c8)]===_0x397014(0x546,_0x1db63a._0xd8fa4b,0x4f6,0x4a5)){_0x8611a3[_0x397014(_0x1db63a._0x3f8cfb,_0x1db63a._0x5d548e,0x517,0x466)]===_0x397014(_0x1db63a._0xc8390a,_0x1db63a._0x2b1861,_0x1db63a._0x1280fb,_0x1db63a._0x2e2cee)?_0x8bb99e[_0x58fe92(-_0x1db63a._0x70da1c,-0x190,-_0x1db63a._0x2402c1,-_0x1db63a._0x42876e)]({'type':'text','text':_0x162e06['text']}):_0x61d439[_0x397014(_0x1db63a._0x396ee8,0x3db,_0x1db63a._0x2be16d,0x3d6)](_0x162e06[_0x397014(_0x1db63a._0x5ed6d9,0x571,0x453,0x4a5)]);continue;}if(_0x8611a3[_0x58fe92(-_0x1db63a._0x232fe0,-0x5f,-0xb,-0xba)]===_0x397014(_0x1db63a._0x2420f6,0x509,0x353,0x426)&&_0x162e06[_0x58fe92(-0x93,-_0x1db63a._0x1af7a1,_0x1db63a._0x36a20a,-_0x1db63a._0x4c7df0)]===_0x58fe92(0x5a,-_0x1db63a._0x22d22a,0x84,0xf)){_0x8bb99e['push']({'type':_0x58fe92(_0x1db63a._0x499548,-_0x1db63a._0x5e7a53,-_0x1db63a._0x3d67bd,0x61),'image_url':{'url':_0x397014(0x3eb,_0x1db63a._0x5ebc20,0x3fe,0x471)+_0x162e06['source'][_0x397014(0x507,_0x1db63a._0x4f8ed3,0x520,_0x1db63a._0x474a68)]+_0x397014(_0x1db63a._0xd37a0,0x457,_0x1db63a._0x49ae39,0x496)+_0x162e06[_0x58fe92(-_0x1db63a._0x236368,-0x23,0x20,-_0x1db63a._0x4c7aba)]['data']}});continue;}if(_0x162e06[_0x58fe92(-_0x1db63a._0x3a4e62,-_0x1db63a._0x147fd7,-0x116,-0x3f)]===_0x58fe92(-0xa7,-_0x1db63a._0x372b76,0x1a,_0x1db63a._0x158d0f)){_0x566823[_0x58fe92(-_0x1db63a._0xe3fcd8,-_0x1db63a._0x4bebdb,-0x15e,-0x173)]({'id':_0x162e06['id'],'type':'function','function':{'name':_0x162e06[_0x397014(0x3a0,0x446,_0x1db63a._0x5331af,_0x1db63a._0x5c9de0)],'arguments':JSON[_0x58fe92(-0x10e,-_0x1db63a._0x498862,-_0x1db63a._0x4aa826,-0x1c9)](_0x162e06[_0x58fe92(-_0x1db63a._0x2cf24c,-_0x1db63a._0x226378,-_0x1db63a._0x1bf8c4,-_0x1db63a._0x384e1b)]??{})}});continue;}if(_0x162e06[_0x58fe92(-_0x1db63a._0x3a4e62,-_0x1db63a._0x297e2b,-_0x1db63a._0x103363,-0x12c)]!==_0x397014(_0x1db63a._0x2ae861,_0x1db63a._0x1264fd,_0x1db63a._0x287a38,_0x1db63a._0x133afa))continue;_0x5c0f79(),_0x135bfb[_0x397014(0x325,0x3d3,_0x1db63a._0x5554a8,_0x1db63a._0x5393de)]({'role':_0x397014(_0x1db63a._0x543cdd,_0x1db63a._0x105304,_0x1db63a._0x465ff4,_0x1db63a._0xa12a08),'content':getToolResultText(_0x162e06['content']),'tool_call_id':_0x162e06[_0x397014(0x329,_0x1db63a._0x85687a,0x446,0x38b)]});const _0x208daf=getToolResultImages(_0x162e06[_0x58fe92(-_0x1db63a._0x578b3f,_0x1db63a._0x32d134,0x42,-0x17)]);_0x208daf[_0x58fe92(-0x109,-_0x1db63a._0x598fcc,-0x39,-0x96)]>0x0&&_0x135bfb[_0x58fe92(-_0x1db63a._0x2a1494,-_0x1db63a._0x47feb7,-_0x1db63a._0x3e1224,-0xc1)]({'role':_0x397014(_0x1db63a._0x54cf02,_0x1db63a._0x384b9e,_0x1db63a._0x27f7c8,_0x1db63a._0x1a8ca0),'content':[{'type':_0x58fe92(0x16,-_0x1db63a._0x1d6904,-0xcb,-0xbb),'text':_0x397014(_0x1db63a._0x4393a2,_0x1db63a._0x49c6e0,_0x1db63a._0x8c825,_0x1db63a._0x4526da)+_0x162e06[_0x58fe92(-_0x1db63a._0x191904,-_0x1db63a._0x149d54,-0x1d4,-_0x1db63a._0x384f52)]+'.'},..._0x208daf[_0x397014(0x2ed,_0x1db63a._0x1c743f,_0x1db63a._0x223c18,_0x1db63a._0x377b84)](_0x1efdf4=>({'type':_0x397014(0x580,0x54e,0x49d,0x4a2),'image_url':{'url':_0x397014(0x38b,0x49d,0x474,0x471)+_0x1efdf4[_0x397014(0x4b0,0x379,0x417,0x425)]['media_type']+_0x397014(0x4f3,0x4d7,0x3fc,0x496)+_0x1efdf4[_0x397014(0x36b,0x438,0x482,0x425)]['data']}}))]});}_0x5c0f79();}const _0x3786c6=resolveOpenAiReasoningConfig(_0x441f94[_0x58fe92(-_0x1db63a._0x30d253,-0x19a,-0x1ba,-0x1ab)]);return{'model':_0x441f94[_0x58fe92(0x49,_0x1db63a._0x5b070d,-_0x1db63a._0x17b6a8,_0x1db63a._0x23e650)],'messages':_0x135bfb,'stream':_0x9c530e,..._0x3786c6?{'max_completion_tokens':_0x441f94[_0x58fe92(-_0x1db63a._0x53bdb8,-0x2f,-0xdc,0x4)]}:{'max_tokens':_0x441f94[_0x397014(_0x1db63a._0x54c081,0x3f2,_0x1db63a._0x43c02d,_0x1db63a._0x5d548e)]},..._0x3786c6?.['effort']?{'reasoning_effort':_0x3786c6[_0x397014(0x522,0x514,0x54f,_0x1db63a._0x3eb15c)]}:{},...createToolDefinitions(_0x441f94[_0x397014(_0x1db63a._0x50daaf,_0x1db63a._0x2420f6,_0x1db63a._0x1308ad,_0x1db63a._0x52171f)])?{'tools':createToolDefinitions(_0x441f94[_0x58fe92(-0xa3,-_0x1db63a._0x40b668,-_0x1db63a._0x33df46,-0x3d)])}:{}};}function _0x17ab(_0x24c38d,_0x327a05){_0x24c38d=_0x24c38d-0x183;const _0x266c4b=_0x266c();let _0x17ab83=_0x266c4b[_0x24c38d];if(_0x17ab['ZouseJ']===undefined){var _0x29c48b=function(_0x1a8bd9){const _0x4ee8a2='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x46530e='',_0x2f4cc0='';for(let _0x298fdb=0x0,_0xe1b1b1,_0x2fc6e9,_0xeba392=0x0;_0x2fc6e9=_0x1a8bd9['charAt'](_0xeba392++);~_0x2fc6e9&&(_0xe1b1b1=_0x298fdb%0x4?_0xe1b1b1*0x40+_0x2fc6e9:_0x2fc6e9,_0x298fdb++%0x4)?_0x46530e+=String['fromCharCode'](0xff&_0xe1b1b1>>(-0x2*_0x298fdb&0x6)):0x0){_0x2fc6e9=_0x4ee8a2['indexOf'](_0x2fc6e9);}for(let _0x117730=0x0,_0x3a4863=_0x46530e['length'];_0x117730<_0x3a4863;_0x117730++){_0x2f4cc0+='%'+('00'+_0x46530e['charCodeAt'](_0x117730)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2f4cc0);};_0x17ab['HIoGLB']=_0x29c48b,_0x17ab['kZozcp']={},_0x17ab['ZouseJ']=!![];}const _0x7dfbfc=_0x266c4b[0x0],_0x1e2e62=_0x24c38d+_0x7dfbfc,_0x13d1b5=_0x17ab['kZozcp'][_0x1e2e62];return!_0x13d1b5?(_0x17ab83=_0x17ab['HIoGLB'](_0x17ab83),_0x17ab['kZozcp'][_0x1e2e62]=_0x17ab83):_0x17ab83=_0x13d1b5,_0x17ab83;}function createResponsesRequestBody(_0x4723b3,_0x4ae25d){return{...toOpenAiResponsesRequest(_0x4723b3),..._0x4ae25d?{'stream':!![]}:{},'store':![]};}function createOpenAiResponsesWebSocketEvent(_0x1d842f,_0x404c55={}){const _0x1a567f={_0x20e106:0x2a1,_0x20f1ea:0x24b,_0x5155bc:0x31b,_0x5e2dc3:0x320,_0x1c2ee2:0x3a0,_0x37fcb4:0x363,_0x66cd13:0x3cc,_0xe1b985:0x412},_0xd303c={_0x1aa6fa:0x119},_0x1b9811={_0x75e577:0x153,_0x2375b3:0x279},_0x160a93=toOpenAiResponsesRequest(_0x1d842f);function _0x211221(_0x5e335a,_0x2a8cce,_0x34bf80,_0x20a029){return _0x22e674(_0x5e335a-_0x1b9811._0x75e577,_0x2a8cce-0x189,_0x20a029,_0x2a8cce- -_0x1b9811._0x2375b3);}function _0x3c7d5a(_0x4cdd89,_0x1f1cbb,_0x4812b9,_0x416fb7){return _0x22e674(_0x4cdd89-_0xd303c._0x1aa6fa,_0x1f1cbb-0x55,_0x4812b9,_0x4cdd89- -0x50);}return{'type':'response.create',..._0x160a93,..._0x404c55[_0x3c7d5a(0x2a1,0x332,0x2c4,0x32c)]?{'input':_0x404c55[_0x3c7d5a(_0x1a567f._0x20e106,0x367,0x350,_0x1a567f._0x20f1ea)]}:{},..._0x404c55[_0x3c7d5a(0x3a0,_0x1a567f._0x5155bc,0x429,_0x1a567f._0x5e2dc3)]?{'previous_response_id':_0x404c55[_0x3c7d5a(_0x1a567f._0x1c2ee2,_0x1a567f._0x37fcb4,_0x1a567f._0x66cd13,_0x1a567f._0xe1b985)]}:{},'store':![]};}function normalizeAssistantContent(_0xe16491){const _0x245e80={_0x3416e7:0x472,_0x39d0f9:0x2fb,_0x597aeb:0x36e,_0x279553:0x391,_0x2b2ab5:0x12f,_0xec86b7:0xb8,_0x21bb06:0x8c},_0x194d9c={_0x297401:0x108,_0x545d18:0x49f},_0x44fce3={_0xaa9763:0x117,_0x3ae204:0x11b},_0x26efcb={_0x2448ed:0xcc,_0x4d111e:0x38},_0x285326={_0x10dfcc:0x1c6,_0x20de6e:0x45};function _0x54a020(_0x533806,_0x2e8aeb,_0x587679,_0x276bae){return _0x22e674(_0x533806-0x155,_0x2e8aeb-_0x285326._0x10dfcc,_0x533806,_0x276bae- -_0x285326._0x20de6e);}if(typeof _0xe16491===_0x54a020(_0x245e80._0x3416e7,_0x245e80._0x39d0f9,_0x245e80._0x597aeb,_0x245e80._0x279553))return _0xe16491;if(!Array[_0x2e0117(_0x245e80._0x2b2ab5,0x151,_0x245e80._0xec86b7,_0x245e80._0x21bb06)](_0xe16491))return'';function _0x2e0117(_0x22540e,_0x2782a5,_0x294e26,_0x5983a7){return _0x532739(_0x294e26,_0x2782a5-0x1dc,_0x294e26-_0x26efcb._0x2448ed,_0x5983a7-_0x26efcb._0x4d111e);}return _0xe16491['map'](_0x43a3a6=>{const _0x4e3b6b={_0x8f5dfd:0x15b,_0x2bb87e:0x1f6};function _0x491421(_0x3dfa1d,_0x1a19eb,_0x4ce259,_0x349d34){return _0x54a020(_0x349d34,_0x1a19eb-0x1a9,_0x4ce259-_0x4e3b6b._0x8f5dfd,_0x3dfa1d- -_0x4e3b6b._0x2bb87e);}function _0x343848(_0x16ffa3,_0x19d546,_0x38b74c,_0x3224ef){return _0x2e0117(_0x16ffa3-_0x44fce3._0xaa9763,_0x3224ef-0x4d6,_0x38b74c,_0x3224ef-_0x44fce3._0x3ae204);}return _0x43a3a6[_0x491421(0x185,0xa3,0x239,_0x194d9c._0x297401)]==='text'?_0x43a3a6['text']:_0x43a3a6[_0x343848(0x461,0x495,_0x194d9c._0x545d18,0x4bc)];})[_0x2e0117(-0x28,-0x2d,-0x112,-0xd2)]('');}function normalizeResponsesMessageContent(_0x15df4b){const _0x48a053={_0x4724dc:0x5ff,_0x5ea6f8:0x6ed,_0x28edae:0x6ef,_0xc9baec:0x506,_0x4021f1:0x55d},_0x24e711={_0x261802:0x4dc,_0x262a5a:0x51b,_0x10e8d1:0x3c7,_0x477e9a:0x3b0,_0xff17a3:0x82,_0x1e53e5:0x67,_0x47d036:0x31,_0x2b157f:0x4b9,_0x108e9a:0xf7,_0x33432a:0xf,_0x414f5a:0x84,_0x4e4a69:0x4e,_0xf7ece1:0x3af,_0x5d8852:0x33f,_0x56fb24:0x2a4,_0x1b7d6e:0x507,_0x4036b5:0x3b5,_0x144437:0x465,_0x433efc:0x32f},_0x5e4354={_0x2f6e35:0x1da};function _0x5e2e86(_0x5be691,_0x2c4fe2,_0x1045bc,_0x29a05b){return _0x532739(_0x5be691,_0x2c4fe2-0x71f,_0x1045bc-0x10a,_0x29a05b-0x99);}function _0x5b3838(_0x5e199c,_0x26d2cb,_0x23e19b,_0x5916b4){return _0x532739(_0x23e19b,_0x5916b4-0x31e,_0x23e19b-_0x5e4354._0x2f6e35,_0x5916b4-0x1b2);}if(!Array[_0x5e2e86(_0x48a053._0x4724dc,0x694,_0x48a053._0x5ea6f8,_0x48a053._0x28edae)](_0x15df4b))return'';return _0x15df4b[_0x5e2e86(_0x48a053._0xc9baec,0x57d,0x4d0,0x535)](_0x7c0a0=>{const _0x5821e2={_0x3aa66f:0x18a},_0x593b61={_0x2b0e58:0x58f,_0x5d23aa:0xc1,_0xda7e9c:0x1c8};if(!_0x7c0a0||typeof _0x7c0a0!==_0x2bd6b7(_0x24e711._0x261802,_0x24e711._0x262a5a,0x4ec,0x4f1))return'';function _0x4fb2d3(_0x29ee44,_0x1d45a2,_0x53b2e1,_0x2d8dca){return _0x5e2e86(_0x29ee44,_0x2d8dca- -_0x593b61._0x2b0e58,_0x53b2e1-_0x593b61._0x5d23aa,_0x2d8dca-_0x593b61._0xda7e9c);}function _0x2bd6b7(_0x171ae8,_0x5f26ba,_0xca4bfb,_0x4753e7){return _0x5b3838(_0x171ae8-_0x5821e2._0x3aa66f,_0x5f26ba-0x42,_0x171ae8,_0x4753e7-0x234);}const _0xc36fc3=_0x7c0a0;if(_0xc36fc3[_0x2bd6b7(_0x24e711._0x10e8d1,_0x24e711._0x477e9a,0x4bf,0x410)]==='output_text'&&typeof _0xc36fc3['text']===_0x4fb2d3(-_0x24e711._0xff17a3,-_0x24e711._0x1e53e5,_0x24e711._0x47d036,0x64))return _0xc36fc3[_0x2bd6b7(0x44b,0x51b,0x4f1,_0x24e711._0x2b157f)];if(_0xc36fc3[_0x4fb2d3(_0x24e711._0x108e9a,_0x24e711._0x33432a,-_0x24e711._0x414f5a,_0x24e711._0x4e4a69)]==='refusal'&&typeof _0xc36fc3[_0x2bd6b7(_0x24e711._0xf7ece1,_0x24e711._0x5d8852,_0x24e711._0x56fb24,0x35c)]===_0x2bd6b7(_0x24e711._0x1b7d6e,_0x24e711._0x4036b5,_0x24e711._0x144437,0x426))return _0xc36fc3[_0x2bd6b7(0x3a7,_0x24e711._0x433efc,0x3c8,0x35c)];return'';})[_0x5e2e86(0x4fa,0x516,_0x48a053._0x4021f1,0x5cc)]('');}function extractOpenAiReasoningText(_0x3dde74){const _0x89744a={_0xecf432:0xe3,_0x1582c3:0x1ef,_0x3960a2:0x247,_0x19a4f5:0x297,_0x5f1fa7:0x2f0,_0x113896:0x2c8,_0x4fcb41:0x194,_0x2b3273:0x1ec,_0x4a455e:0x82,_0x191fd9:0x3f,_0x20fd2b:0x108,_0x8c0346:0x163,_0x46b51a:0x14f,_0x40787d:0xe,_0x4dd29d:0x16},_0xae751f={_0x3872ba:0x12b,_0x26d8c4:0x6c},_0x330565={_0x4e100f:0xf3,_0x5a2cfb:0x184};function _0x51277d(_0x333847,_0x15e25e,_0x162bf6,_0x3e904b){return _0x22e674(_0x333847-_0x330565._0x4e100f,_0x15e25e-_0x330565._0x5a2cfb,_0x333847,_0x3e904b- -0x1a1);}if(typeof _0x3dde74[_0x3bf036(_0x89744a._0xecf432,0x107,0x155,0x186)]===_0x51277d(_0x89744a._0x1582c3,_0x89744a._0x3960a2,0x2dc,0x235))return _0x3dde74[_0x51277d(_0x89744a._0x19a4f5,0x276,_0x89744a._0x5f1fa7,_0x89744a._0x113896)];if(!Array[_0x3bf036(0x1a9,0x1ec,0xda,_0x89744a._0x4fcb41)](_0x3dde74[_0x3bf036(_0x89744a._0x2b3273,0x246,_0x89744a._0x4a455e,0x167)]))return'';function _0x3bf036(_0x3a4e96,_0x1c2e61,_0x196720,_0x552b8b){return _0x22e674(_0x3a4e96-_0xae751f._0x3872ba,_0x1c2e61-_0xae751f._0x26d8c4,_0x1c2e61,_0x552b8b- -0x2e3);}return _0x3dde74['content'][_0x3bf036(_0x89744a._0x191fd9,0xda,_0x89744a._0x20fd2b,0xf9)](_0x3e3ddc=>_0x3e3ddc[_0x3bf036(0x146,0x1,0xca,0xdd)]===_0x51277d(0x286,0x350,0x362,0x2e2)&&typeof _0x3e3ddc['text']==='string')[_0x3bf036(0x14d,_0x89744a._0x8c0346,_0x89744a._0x46b51a,0x7d)](_0x4afd52=>_0x4afd52[_0x3bf036(0x23a,0x20f,0x26a,0x186)]??'')[_0x3bf036(-0x58,_0x89744a._0x40787d,-0x55,_0x89744a._0x4dd29d)]('');}function createOpenAiReasoningBlock(_0x4e165a){const _0x1ed025={_0x2d3bf5:0x332,_0x4fd8e8:0x35e,_0x4735c2:0x391,_0x4e49de:0x31a,_0x64e49:0x2f4,_0x55f7b2:0x24f,_0x4a26aa:0x22c,_0x40af4b:0x2c6},_0xda8837={_0x4d3e67:0x40b},_0x4fb841={_0xdf286e:0x570};function _0x250564(_0x2d2a87,_0x2ca126,_0x28c700,_0x2e1d14){return _0x532739(_0x2ca126,_0x2d2a87-_0x4fb841._0xdf286e,_0x28c700-0x70,_0x2e1d14-0x5b);}function _0x7b43fb(_0x3adf7c,_0x110a07,_0xee88e9,_0x3a82d3){return _0x532739(_0xee88e9,_0x3a82d3-_0xda8837._0x4d3e67,_0xee88e9-0x6b,_0x3a82d3-0x183);}const _0x41a533=extractOpenAiReasoningText(_0x4e165a);return{'type':_0x7b43fb(0x2c4,_0x1ed025._0x2d3bf5,0x3da,_0x1ed025._0x4fd8e8),'summary':structuredClone(_0x4e165a['summary']??[]),..._0x4e165a['id']?{'id':_0x4e165a['id']}:{},..._0x4e165a[_0x250564(_0x1ed025._0x4735c2,_0x1ed025._0x4e49de,_0x1ed025._0x64e49,0x345)]?{'encryptedContent':_0x4e165a[_0x7b43fb(_0x1ed025._0x55f7b2,0x1e7,0x146,_0x1ed025._0x4a26aa)]}:{},..._0x41a533[_0x7b43fb(0x2e3,0x17f,_0x1ed025._0x40af4b,0x253)]>0x0?{'text':_0x41a533}:{}};}function hasVisibleOpenAiReasoning(_0x4bc672){const _0x2d8863={_0x1e51dc:0x47,_0x1c70bd:0x114},_0x327572={_0x3030b9:0x3b,_0x4ead26:0x13f};function _0x189d61(_0x455f39,_0x34d4b2,_0x170632,_0x5421c9){return _0x22e674(_0x455f39-_0x327572._0x3030b9,_0x34d4b2-_0x327572._0x4ead26,_0x455f39,_0x5421c9- -0x30b);}return _0x4bc672['summary']['length']>0x0||typeof _0x4bc672['text']===_0x189d61(_0x2d8863._0x1e51dc,_0x2d8863._0x1c70bd,0x44,0xcb);}function parseChatCompletionResponse(_0x5d6a04){const _0x24387b={_0x5b32f1:0x15d,_0x24d0e0:0x378,_0x1f25cf:0x34a,_0x24f98a:0xba,_0x5ea0ed:0x57,_0x38a619:0xb5,_0x1c30ec:0xcf,_0x8f0756:0x8,_0x28a8c1:0x2e6,_0x320f01:0x254,_0x2ade75:0x2e2,_0x41755e:0x21d,_0x55b7bf:0x2ee,_0x5810a9:0x14c,_0x373b44:0x2fd,_0x40b855:0x226,_0x17113e:0xe9,_0x4c8709:0x14b,_0x277118:0x80,_0xd66c72:0x34d,_0x2941cd:0x2db,_0x57d22e:0x2c9,_0x290938:0x30b,_0x53f43:0x3ae,_0x415d07:0x16a,_0x706fca:0x13e,_0x18c921:0xd1,_0x381c5b:0x38c,_0x556505:0x322},_0x162b1a={_0x1a3fdc:0x0},_0x5e412c={_0xd1c8b:0x4a3,_0x873a01:0x153,_0xb2aee1:0x11f};function _0x56855e(_0x2d9cc4,_0x44a642,_0x56b576,_0x1edc2e){return _0x532739(_0x1edc2e,_0x44a642-_0x5e412c._0xd1c8b,_0x56b576-_0x5e412c._0x873a01,_0x1edc2e-_0x5e412c._0xb2aee1);}const _0x46fc83=[],_0x295658=[];let _0x3b5163=_0x5ea991(-0x55,-_0x24387b._0x5b32f1,-0x16b,-0x9f);for(const _0x256ff4 of _0x5d6a04[_0x56855e(_0x24387b._0x24d0e0,_0x24387b._0x1f25cf,0x42a,0x40a)]??[]){const _0x256283=_0x256ff4[_0x5ea991(-_0x24387b._0x24f98a,-0x163,-_0x24387b._0x5ea0ed,-_0x24387b._0x38a619)],_0x14ac46=normalizeAssistantContent(_0x256283?.[_0x5ea991(_0x24387b._0x1c30ec,0xf6,_0x24387b._0x8f0756,0x80)]);_0x14ac46['length']>0x0&&_0x46fc83[_0x56855e(_0x24387b._0x28a8c1,0x33b,_0x24387b._0x320f01,_0x24387b._0x2ade75)](_0x14ac46),_0x256283?.[_0x56855e(_0x24387b._0x41755e,_0x24387b._0x55b7bf,0x283,0x344)]&&_0x295658[_0x56855e(0x2e9,0x33b,0x368,0x390)](..._0x256283[_0x5ea991(-0x60,0x35,-_0x24387b._0x5810a9,-0x7d)]),_0x256ff4[_0x56855e(0x3e4,_0x24387b._0x373b44,0x23d,_0x24387b._0x40b855)]==='tool_calls'&&(_0x3b5163='tool_use');}function _0x5ea991(_0x15f5a7,_0x3eb8f0,_0x43c6c4,_0x211b32){return _0x22e674(_0x15f5a7-_0x162b1a._0x1a3fdc,_0x3eb8f0-0x62,_0x3eb8f0,_0x211b32- -0x3ca);}return _0x295658[_0x5ea991(-0x113,-_0x24387b._0x17113e,-_0x24387b._0x4c8709,-_0x24387b._0x277118)]>0x0&&(_0x3b5163=_0x56855e(0x3bc,_0x24387b._0xd66c72,0x40d,_0x24387b._0x2941cd)),{'id':_0x5d6a04['id']??'chatcmpl-'+Date[_0x56855e(0x24f,_0x24387b._0x57d22e,_0x24387b._0x290938,_0x24387b._0x53f43)](),'content':createContentBlocks(_0x46fc83[_0x5ea991(-_0x24387b._0x415d07,-_0x24387b._0x706fca,-0x8e,-_0x24387b._0x18c921)](''),_0x295658),'stopReason':_0x3b5163,'usage':createUsage(_0x5d6a04[_0x56855e(0x42e,0x383,_0x24387b._0x381c5b,_0x24387b._0x556505)])};}function parseResponsesResponse(_0x4b2b7e,_0x29b308){const _0x408ccd={_0x598e39:0x453,_0x1e5d4c:0x3da,_0x1ae418:0x440,_0x20eba8:0x465,_0x1eee50:0x520,_0x27360b:0x542,_0x5e5c81:0x515,_0x3994bd:0x4c7,_0x482994:0x5a8,_0x5ba25d:0x51c,_0x1e11da:0x56e,_0x4d5bcd:0x62a,_0x356a4c:0x40c,_0x236d0b:0x4d7,_0x399741:0x5ac,_0x52b7b2:0x4e2,_0x44cf18:0x3fb,_0x4e63da:0x4e1,_0x4a4e4c:0x56a,_0x7399b3:0x56e,_0x431dc9:0x508,_0x422e3d:0x2bd,_0x27f775:0x544,_0x6b2986:0x525,_0x21ab63:0x592,_0x1700f8:0x4e6,_0x2c89d9:0x414,_0x1bdb0d:0x2fc,_0x35cf33:0x320,_0x125322:0x400,_0x2c8510:0x4fb,_0x2c3cc5:0x539,_0x7ef4da:0x332,_0x3549de:0x36a,_0x42f010:0x371,_0x3d0f2e:0x445,_0x44ea8b:0x46b,_0x28181a:0x395,_0x3ddead:0x371,_0x1518f7:0x565,_0x58cdd8:0x5e6,_0x3ac5e2:0x426,_0x1218b7:0x3d6,_0x4602a6:0x2cf,_0x112c36:0x31e,_0xa0d81a:0x48e,_0x2d1c0e:0x557,_0x322184:0x465,_0x14546f:0x489,_0x532748:0x392,_0x76b334:0x3f0,_0x3b1629:0x4ad,_0x1e40be:0x3da,_0x71f111:0x459},_0x277d57={_0x4c7f3b:0x55},_0x4f2cbc={_0x3b6c53:0xf8};function _0x1b46de(_0x1b89f6,_0x2a1042,_0x153c86,_0x52abc7){return _0x532739(_0x1b89f6,_0x153c86-0x4d9,_0x153c86-_0x4f2cbc._0x3b6c53,_0x52abc7-0x30);}const _0xbcf346=[];for(const _0x2d7ab4 of _0x4b2b7e[_0x1b46de(0x39d,_0x408ccd._0x598e39,_0x408ccd._0x1e5d4c,_0x408ccd._0x1ae418)]??[]){if(isResponsesReasoningItem(_0x2d7ab4)){if(isUserVisibleReasoning(_0x29b308)){const _0x1b3bc3=createOpenAiReasoningBlock(_0x2d7ab4);hasVisibleOpenAiReasoning(_0x1b3bc3)&&_0xbcf346['push'](_0x1b3bc3);}continue;}if(isResponsesMessageItem(_0x2d7ab4)){const _0x202db9=normalizeResponsesMessageContent(_0x2d7ab4['content']);_0x202db9[_0x2b6b39(0x463,0x4e3,0x4e2,_0x408ccd._0x20eba8)]>0x0&&_0xbcf346[_0x2b6b39(_0x408ccd._0x1eee50,_0x408ccd._0x27360b,0x532,_0x408ccd._0x5e5c81)]({'type':_0x1b46de(0x40e,_0x408ccd._0x3994bd,_0x408ccd._0x1ae418,0x474),'text':_0x202db9});continue;}if(!isResponsesFunctionCallItem(_0x2d7ab4)||typeof _0x2d7ab4['call_id']!=='string'||_0x2d7ab4['call_id']['trim']()[_0x2b6b39(0x4a8,_0x408ccd._0x482994,0x4e2,_0x408ccd._0x5ba25d)]===0x0||typeof _0x2d7ab4['name']!==_0x2b6b39(0x5cd,0x4f6,_0x408ccd._0x1e11da,_0x408ccd._0x4d5bcd)||_0x2d7ab4[_0x2b6b39(_0x408ccd._0x356a4c,_0x408ccd._0x236d0b,0x4d3,0x46b)]['trim']()[_0x2b6b39(_0x408ccd._0x399741,0x430,_0x408ccd._0x52b7b2,0x553)]===0x0||typeof _0x2d7ab4[_0x2b6b39(0x44c,_0x408ccd._0x44cf18,_0x408ccd._0x4e63da,0x438)]!==_0x2b6b39(_0x408ccd._0x4a4e4c,0x551,_0x408ccd._0x7399b3,_0x408ccd._0x431dc9))continue;_0xbcf346[_0x1b46de(_0x408ccd._0x422e3d,0x318,0x371,0x3f1)]({'type':_0x2b6b39(0x50a,0x511,_0x408ccd._0x27f775,0x614),'id':_0x2d7ab4[_0x2b6b39(0x5a1,0x4d3,_0x408ccd._0x6b2986,_0x408ccd._0x21ab63)],'name':_0x2d7ab4[_0x2b6b39(0x426,_0x408ccd._0x1700f8,0x4d3,_0x408ccd._0x2c89d9)],'input':parseToolInput2(_0x2d7ab4[_0x1b46de(_0x408ccd._0x1bdb0d,0x275,_0x408ccd._0x35cf33,_0x408ccd._0x125322)])});}!_0xbcf346[_0x2b6b39(_0x408ccd._0x2c8510,0x5c8,0x56b,_0x408ccd._0x2c3cc5)](_0x520916=>_0x520916[_0x1b46de(0x316,0x2cd,0x397,0x3cd)]===_0x2b6b39(0x67f,0x6bd,0x601,0x535))&&_0x4b2b7e[_0x1b46de(0x45c,_0x408ccd._0x7ef4da,0x395,0x304)]&&_0xbcf346[_0x1b46de(0x29e,_0x408ccd._0x3549de,_0x408ccd._0x42f010,_0x408ccd._0x3d0f2e)]({'type':_0x1b46de(0x359,0x43a,0x440,_0x408ccd._0x44ea8b),'text':_0x4b2b7e[_0x1b46de(0x40d,0x370,_0x408ccd._0x28181a,_0x408ccd._0x3ddead)]});function _0x2b6b39(_0x298b1e,_0x558168,_0xd3b12d,_0x4633b3){return _0x22e674(_0x298b1e-_0x277d57._0x4c7f3b,_0x558168-0x25,_0x558168,_0xd3b12d-0x198);}return{'id':_0x4b2b7e['id'],'content':_0xbcf346,'stopReason':_0xbcf346[_0x2b6b39(0x4f2,_0x408ccd._0x1518f7,0x56b,_0x408ccd._0x58cdd8)](_0x424d99=>_0x424d99[_0x2b6b39(0x4a7,0x5eb,0x558,0x50e)]===_0x1b46de(0x306,0x420,0x383,0x3f5))?'tool_use':_0x2b6b39(0x401,0x58c,0x4c3,0x4bf),'usage':{'inputTokens':_0x4b2b7e[_0x1b46de(_0x408ccd._0x3ac5e2,0x3c3,0x3b9,0x38e)]?.[_0x1b46de(_0x408ccd._0x1218b7,_0x408ccd._0x4602a6,_0x408ccd._0x112c36,0x3f8)]??0x0,'outputTokens':_0x4b2b7e[_0x1b46de(0x3ed,_0x408ccd._0xa0d81a,0x3b9,0x3b0)]?.['output_tokens']??0x0,..._0x4b2b7e['usage']?.[_0x2b6b39(0x518,_0x408ccd._0x2d1c0e,0x565,0x5b1)]?.['reasoning_tokens']!==void 0x0?{'reasoningTokens':_0x4b2b7e[_0x1b46de(_0x408ccd._0x322184,_0x408ccd._0x14546f,0x3b9,0x3c4)]['output_tokens_details']['reasoning_tokens']}:{}},..._0x4b2b7e[_0x1b46de(0x342,0x43e,0x3da,_0x408ccd._0x532748)]?{'providerState':{'openaiResponsesOutput':structuredClone(_0x4b2b7e[_0x1b46de(_0x408ccd._0x76b334,_0x408ccd._0x3b1629,_0x408ccd._0x1e40be,_0x408ccd._0x71f111)]),'openaiResponsesResponseId':_0x4b2b7e['id']}}:{}};}function extractErrorMessage(_0xc5d1aa){const _0x421f7a={_0x103daf:0xe9,_0x255672:0xb1,_0x47babf:0x11d,_0x16b3b2:0x181,_0x21d160:0xa1,_0x5a3d54:0xd,_0xaadb4d:0xf8,_0x3d4615:0x185,_0x1dc007:0x170,_0x24ccf7:0x143,_0x2892d4:0x1f,_0x2c12c3:0x76,_0x37110c:0xce,_0x18fd61:0xd1,_0x40451e:0x9b,_0xc4ba4e:0xdb,_0x5ebb3c:0x25,_0x853fcd:0x12b,_0x2cea2a:0x180,_0x50febc:0xe3,_0x178673:0x16,_0x2e1d8d:0x54,_0x279606:0xef,_0x1f8bd2:0x6f},_0x47248f={_0x203d61:0x369},_0x5cd39c={_0x328d4d:0x104,_0x213d98:0x1e9,_0x14f783:0x21f};function _0x40a33e(_0x796722,_0x1532c9,_0x5e0a87,_0x5033d6){return _0x22e674(_0x796722-_0x5cd39c._0x328d4d,_0x1532c9-_0x5cd39c._0x213d98,_0x1532c9,_0x796722- -_0x5cd39c._0x14f783);}if(_0xc5d1aa['length']===0x0)return'';try{const _0x64ea2c=JSON[_0xd56905(_0x421f7a._0x103daf,0xbe,0xa3,_0x421f7a._0x255672)](_0xc5d1aa);if(typeof _0x64ea2c[_0x40a33e(_0x421f7a._0x47babf,_0x421f7a._0x16b3b2,0x193,_0x421f7a._0x21d160)]?.['message']===_0xd56905(-_0x421f7a._0x5a3d54,_0x421f7a._0xaadb4d,0x6d,-0x3d)&&_0x64ea2c[_0x40a33e(0x11d,0x49,0x1d9,_0x421f7a._0x3d4615)][_0x40a33e(0xf6,_0x421f7a._0x1dc007,0x139,0x41)][_0xd56905(-_0x421f7a._0x5a3d54,-_0x421f7a._0x24ccf7,-0x6f,0x73)]()[_0xd56905(-0xa5,0x15,-_0x421f7a._0x2892d4,_0x421f7a._0x2c12c3)]>0x0)return _0x64ea2c[_0x40a33e(_0x421f7a._0x47babf,0x14a,0x1dc,0x1c9)]['message'][_0x40a33e(0xdb,_0x421f7a._0x37110c,_0x421f7a._0x18fd61,0x32)]();if(typeof _0x64ea2c[_0xd56905(-0x66,-_0x421f7a._0x40451e,-0x54,-0x2f)]==='string'&&_0x64ea2c['message'][_0x40a33e(_0x421f7a._0xc4ba4e,0x68,0xb3,_0x421f7a._0x5ebb3c)]()[_0x40a33e(_0x421f7a._0x853fcd,0x1ec,_0x421f7a._0x2cea2a,_0x421f7a._0x50febc)]>0x0)return _0x64ea2c[_0xd56905(_0x421f7a._0x178673,0x40,-_0x421f7a._0x2e1d8d,-0xf3)][_0xd56905(-0x116,-_0x421f7a._0x279606,-_0x421f7a._0x1f8bd2,-0xca)]();}catch{return _0xc5d1aa;}function _0xd56905(_0x5ec09b,_0x3e468f,_0x1e1aad,_0x2be4ee){return _0x22e674(_0x5ec09b-0x1e4,_0x3e468f-0x105,_0x2be4ee,_0x1e1aad- -_0x47248f._0x203d61);}return _0xc5d1aa;}function _0x266c(){const _0x42225e=['DMfSDwvZ','Dg9VBenHBgXZ','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBKTLEq','ywjVCNq','y2fJAgvK','B3bLBMfPl2DWDc00BW','C3vWCg9YDhnnB2rLBezLDgnO','D2vIu29JA2v0rMfJDg9YEq','Aw5WDxrFDgv4Da','ChvZAa','C2HVDwXKuMv0CNLszxf1zxn0rxjYB3i','C3rHDhvZvgv4Da','B3v0Chv0x2LUzgv4','y2HHDenVBxbSzxrPB25Zugf0Aa','z2v0','ANnVBG','y2fWywjPBgL0AwvZ','qMfZAa','C3rYzwfTvMLHuMvZCg9UC2vZu3vYzMfJzq','B3v0Chv0vg9Rzw5Z','nJy0nJe0sMXywLrx','Aw5PDgLHBev2zw50','yMvHCMvY','rgLYzwn0igfUC3DLCJOG','y2HVAwnLCW','D2vIC29JA2v0x2nVBM5Ly3rPB25FBgLTAxrFCMvHy2HLza','C3rYzwfTvMLHuM91DgvY','Dg9VBf91C2u','zMv0y2G','y2HHDgnTCgW','zgvJB2rL','Dg9VBhm','CMvXDwvZDa','B3bLBMfPuMvZCg9UC2vZuMvZCg9UC2vjza','zgf0yq','y2fJAgvszwfKsw5WDxruB2TLBNm','Dg9VBf9Yzxn1Bhq','yNvKz2v0vg9Rzw5Z','AgvHzgvYuMvZB2X2zxi','C2vUzeH0DhbtDxjMywnLuMvXDwvZDa','zgvSDge','yxbPs2v5','z2v0u3vYzMfJzq','y29UDgv4Df9Szw5NDgG','y2HHDgnTCgWT','B3v0Chv0x3rLEhq','C3rYzwfTvMLHu3vYzMfJzq','DhLWzq','y3jLzgvUDgLHBa','C2vZC2LVBK1HBMfNzxi','Dg9Rzw5fEgnOyw5NzufWAvzLCNnPB24','y2XHDwrLltmTns1ZB25UzxqTmJaYndeWmJi','C2HHCMvKuMvZCg9UC2vZu29JA2v0u2vZC2LVBNm','yxnZAxn0yw50','D2vIC29JA2v0','DMfSDwu','yxv0BW','y29TCgXLDgu','Cgf0Aa','Ahr0Chm6lY9HCgKUEI5HAs9HCgKVyw50AhjVCgLJ','B3v0Chv0x3rVA2vUC19KzxrHAwXZ','ywnJzxnZvg9Rzw4','CMvZB2X2zunYzwrLBNrPywW','Aw50zxjSzwf2zwq','y29TCgXLDgvK','B3bLBMfPlxjLC3bVBNnLCY1ZDhjLyw0','C29Tzq','z3b0ltuTBwLUAq','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','C3rYAw5N','Bw9JAW','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzg9Uzq','Dgv4Dc9LDMvUDc1ZDhjLyw0','zg9Uzq','BgLTAxrZ','zMLSDgvY','DgHPBMTPBMDFzgvSDge','t3bLBLjVDxrLCG','C3rYzwfTvMLHuMvZCg9UC2vZu29JA2v0qxr0zw1WDa','z2XTltuUmq','DhjPBvn0yxj0','DxnHz2u','Bwf4t3v0Chv0','Ahr0Chm6','C3vTBwfYEv9PBMrLEa','B3bLBMfPlxjLC3bVBNnLCY13CW','C2vZC2LVBKLK','y2XPrgvMyxvSDe1VzgvS','C291CMnL','DxnLCG','B3v0Chv0sw5KzxHuB0nHBgXjza','zMLUAxnO','C29JA2v0','yxbPlwTLEq','Aw52ywXPzgf0zq','ChjLDMLVDxnszxnWB25ZzuLK','y2HHDfn0CMvHBq','C3bSAxq','yxv0Ag9YAxPHDgLVBG','C3vYzMfJzq','C3rHDhvZ','y2fWywjSzv9LBMrWB2LUDhm','C2vZC2LVBI10B2TLBG','Aw5JBhvKzxm','ChjVDMLKzxjZ','CMvZCg9UC2uUB3v0Chv0x2L0zw0Uzg9Uzq','ywnXDwLYzvjLC3bVBNnLC1nVy2TLDeXVy2S','C2HVDwXKuhjLzMvYuMvZCg9UC2vZqxbP','yw50AhjVCgLJx3nPz25HDhvYzv9KzwX0yq','yw50AhjVCgLJlw1LC3nHz2vZlxn0CMvHBq','C2vZC2LVBG','C3vWCg9YDgvKrw5KCg9PBNrZ','ywrK','Aw5WDxrkC29U','B3v0Chv0','C3rYzwfTshr0Cfn1CMzHy2u','CMvZCg9UC2uUB3v0Chv0x2L0zw0UywrKzwq','CMvZB2X2zq','C2LNBMfS','y2fJAgvdCMvHDgLVBKLUChv0vg9Rzw5Z','CMvWBgfJzq','yxv0AfnJAgvTzq','CMvTB3zLrxzLBNrmAxn0zw5LCG','CgfYC2u','CMvZCg9UC2vtB2nRzxq','zgvSzxrL','D3nZoG','yw50AhjVCgLJx3rOAw5RAw5N','y3jLyxrLuMvXDwvZDa','rgvLCfnLzwS','Aw5KzxG','B2f1DgGTDg9Rzw4','C3rYzwfTu3vYzMfJzq','CMvZCg9UC2uUCMvHC29UAw5Nx3n1Bw1HCNLFDgv4Dc5KzwX0yq','Bwf4x3rVA2vUCW','Ec1HCgKTA2v5','z2v0t3jdCMvHDgvszwfZB25PBMDjDgvT','CMvZB2X2zxi','t3bLBKfPqxbPrxjYB3i','CMvZCg9UC2vuzxH0ugfYDhm','v2vIu29JA2v0ignSB3nLzcb3AxrOignVzguG','zNvUy3rPB25Fy2fSBa','Aw5WDxrFC2nOzw1H','AgfZ','BwfYA01VzgvSqxnszxnWB25ZzxnpBMX5','CMv0CNLHyMXL','z3b0ltqUmq','BNvTyMvY','CMvZCg9UC2vjza','CgfYC2vszxnWB25Zzq','C3vTBwfYEuj5sw5KzxG','CMvHC29U','C3rYzwfT','CM9Szq','vw5ZDxbWB3j0zwqGr2L0shvIig1VzgvSihn1CMzHy2u6ia','CMvZCg9UC2uUB3v0Chv0x3rLEhqUzgvSDge','mZG4mZG1nK5gCKTPrG','uMf0zsbSAw1PDcbLEgnLzwrLzc4GugXLyxnLihrYEsbHz2fPBIbSyxrLCI4','C3rVCfjLyxnVBG','y29UDgvUDf9KzwX0yq','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBLn0yxrL','Dg9VBa','DxrMltG','BhmGlwXH','zgf0ytO','mJuYmtq4mKj3yuztzG','Ahr0Chm6lY9HCgKUyw50AhjVCgLJlMnVBq','zMv0y2HjBxbS','Bwf4vg9Rzw5Z','zgvLChnLzwSTDJqTzMXHC2G','yM9KEq','Dgv4Df9KzwX0yq','yMfZzty0','z3b0ltu','t3bLBKfjiefqssbLCNjVCIa','uMvZCg9UC2vZifDLyLnVy2TLDcbYzxf1zxn0igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','DgHLBG','AxrLBq','y2fJAgvFy3jLyxrPB25FAw5WDxrFDg9Rzw5Z','ChjVDMLKzxjbzgfWDgvY','DxnLCI12AxnPyMXL','B21PDhrLza','zgvZy3jPChrPB24','CMvZzxq','CgfYDgLHBf9QC29U','y29UDgvUDa','zw5HyMXLza','Aw5JBhvKzunVBNrLBNruExbL','zMLUywXszxnWB25Zzq','BwvZC2fNzuLK','ywjVCNrLza','t3bLBKfjigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','C3bSAwnL','CMvZB2X2zujHC2vvCMW','CMvHC29UAw5NugfYDhm','y29UC3vTzvnZzuv2zw50','B3bLBMfPx3jLyxnVBMLUzW','Ahr0Chm6lY9HCgKUy29TBwfUzgnVzguUywKVChjVDMLKzxiVDJe','l2nOyxqVy29TCgXLDgLVBNm','z2L0AhvI','CMvZCg9UC2vZugf0Aa','o2jHC2u2ncW','Dg9VBfvZzvn0yxj0rw1PDhrLza','z2v0uMvHzgvY','l3yXl21LC3nHz2vZ','y29UDgvUDf9IBg9JA19KzwX0yq','y29UDgv4DfDPBMrVDW','uMvZCg9UC2vZihn0CMvHBsbMywLSzwq','mJaYmY0WnI0Wmq','mJaYns0Xmc0Wmq','BwvKAwfFDhLWzq','C2L6zq','BwfWqxbPrxjYB3i','Aw1Hz2vFDxjS','l3jLC3bVBNnLCW','Dg9VBc1JywXSlq','Dgv4Da','y29TCgXLDgvwAwfdAgf0q29TCgXLDgLVBNntDxjMywnL','qw50AhjVCgLJ','BwvZC2fNzv9KzwX0yq','sw1Hz2uGCMv0DxjUzwqGyNKGvMLLD0zPBguGzM9YihrVB2WGCMvZDwX0ia','C3rYzwfTv2vIu29JA2v0u3vYzMfJzq','DgvSzw1LDhj5','uMvZCg9UC2vZifDLyLnVy2TLDcbJBg9ZzwqGyMvMB3jLihjLC3bVBNnLlMnVBxbSzxrLza','B3bLBKfPrgvSzwDHDgu','zNjVBuvUDhjPzxm','ywrHChrPDMu','ChjLDMLVDxnFCMvZCg9UC2vFBM90x2zVDw5K','Ahr0Chm6lY90B2TLBI1WBgfUlxnNCc54AwfVBwLTAw1VlMnVBs92mq','z2XTltqUnW','AxnbCNjHEq','CMvZCg9UC2uUCMvHC29UAw5Nx3n1Bw1HCNLFDgv4Dc5KB25L','DxjS','uhjVDMLKzxjszxf1zxn0q29UC3rYDwn0Aw9UrxjYB3i','zNvUy3rPB24','mJeXnZqYBgr5rhHf','y29TCgXLDgLVBL90B2TLBNm','yxbWBgLJyxrPB24VANnVBG','yw50AhjVCgLJlw1LC3nHz2vZ','y29TCgXLDgvtDxjMywnL','C2LNBMf0DxjL','DgvZDa','CMvHC29UAw5Nx3rLEhq','CMvZCg9UC2uUy29TCgXLDgvK','z2v0t3jdCMvHDgvszxnWB25ZzxntB2nRzxq','uhjVDMLKzxjtDhjLyw1fDMvUDevYCM9Y','Bwf4x291Dhb1Df90B2TLBNm','B3bLBMfPlxjLC3bVBNnLCW','C3vTBwfYAxPLza','wI5bsq','Bwf4','qw50AhjVCgLJigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','yMfZzvvYBa','Bw9KzwXZqMfZzvvYBa','C2vUza','z2v0uMv0CNLezwXHEu1Z','ue9tva','C2XPy2u','qw50AhjVCgLJihn0CMvHBsbMywLSzwq','DhjHBNnWB3j0','C3vTBwfYEq','z2L0AhvIqxbPvxjS','y3jLyxrLu3rYzwfTugfYC2vY','C2HPzNq','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzgvSDge','Dg9Rzw4','y3jLyxrLsgvHzgvYCW','Bw9KzwW','t1bftG','Dg9tDhjPBMC','yw50AhjVCgLJlxzLCNnPB24','y2XHDwrLlxnVBM5LDc00ltiWmJuWnte0','B2jQzwn0','AgvHzgvYCW','y29WAwXVDc1JAgf0lZaUmZeUmW','C2HVDwXKuMv0CNLszxnWB25ZzxntB2nRzxrszxf1zxn0','zwzMB3j0','u3vYzMfJzsa','y29UBMvJDgLUzW','C2vUzfjHD1jLCxvLC3q','Ahr0Chm6lY90B2TLBI1WBgfUlxnNCc54AwfVBwLTAw1VlMnVBs9HBNrOCM9WAwm','DxnLC1jLC3bVBNnLC0fWAq','zxzLBNq6','Ahr0Chm6lY9HCgKUB3bLBMfPlMnVBs92mq','Aw1Hz2u','CMv0CNKTywz0zxi','ounYs0Lpwa','qMvHCMvYia','zgLZywjSzwq','y29TCgXLDgvwAwfsB3v0zxi','ignHBM5VDcbWyxjZzsbtu0uGzxzLBNrZ','vw5RBM93BIbWCM92AwrLCIbLCNjVCG','yMXVy2TZ','C3vYzMfJzxm','yw50AhjVCgLJx3jLzgfJDgvKx3rOAw5RAw5N','yxbWBhLnB2rLBerLzMf1BhrZ','CMvHC29UAw5Nx2nVBNrLBNq','C3rYzwfTvMLHq2HHDenVBxbSzxrPB25Zu3vYzMfJzq','CMvXDwvZDhm','C29YDa','AxrLBv9Pza','CMvZCg9UC2vtB2nRzxrtDhjLyw0','Aw5WDxq','z2v0tw9KzwXZ','y2fUy2vS','BxnNlq','v2vIu29JA2v0','CMvHC29UAw5NsxrLBxm','Bwf4x2nVBxbSzxrPB25FDg9Rzw5Z','zwrPDg9YugX1z2LUvMvYC2LVBG','AM9PBG','DhjPBq','nJaWodi1neXVr3fAtW','Dg9VBenHBgXZqNLjBMrLEa','twLUAu1HEc1nmW','t3bLBKfj','ChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','Dg9bCgLfCNjVCG','y29UC3vTzuv2zw50','B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','v2vIu29JA2v0ihjLCxvLC3qGzMfPBgvK','zNjVBq','Dg9mB3DLCKnHC2u','w0rptKvD','y3jLyxrLtwLZC2LUz0nYzwrLBNrPywXfCNjVCG','AxneB25L','zw5KCg9PBNrZ','BwvZC2fNzuLUzgv4','C2HVDwXKuMv0CNLtDhjLyw1bDhrLBxb0rxjYB3i','CMvMDxnHBa','ChjLCgfYzunOyxrszxf1zxn0','zgvMyxvSDe1VzgvSCW','y2f0y2G','AxngAw5PDgu','wgLHB21P','DMLZAwjPBgL0Eq','y29UDgvUDf9IBg9JAW','C3rYzwfTvMLHugvYC2LZDgvUDfjLC3bVBNnLC1nVy2TLDa','BwvZC2fNzq','C3vWCg9YDgvKx2vUzhbVAw50CW','y29UDgvUDc10ExbL','ChjVDMLKzxjtDgf0zq','zwrPDg9YvMvYC2LVBG','CM91DgvY','igrVzxmGBM90ihn1ChbVCNqGBM9Ulxn0CMvHBwLUzYbYzxnWB25Zzxm','Bw9Kzq','Ahr0Chm6lY9HCgKUz2L0AhvIlMnVBq','Dg9VBf91C2vFzgvSDge','mZm1otG1nM13y1DgDG','Dgv4DfbHCNrZ','Aw5WDxruB2TLBNm','Ahr0Chm6lY9HCgKUzgvLChnLzwSUy29Tl2fUDgHYB3bPyW','zw5JCNLWDgvKx2nVBNrLBNq','CMvXDwvZDe11Dgf0B3jZ','Bw9KzwXZ','y29Kzq','zw50CMLLCW','BM93','Bw9KzwXfBMrWB2LUDenHy2HL','yNvPBgrszxnWB25ZzxntB2nRzxrfDMvUDa','zw5Kx3r1CM4','yNvPBgrqyxj0AwfSt3v0Chv0','y29TCgXLDgvwAwfdB25MAwD1CMvKu3vYzMfJzq','sw52ywXPzcbYzxf1zxn0oIa','B3jPz2LUlxrYywnRzxi','y29TCgXLDgLVBL90B2TLBNnFzgv0ywLSCW','y29UDgvUDf9IBg9JA19ZDgfYDa','yxbP','y29UDgvUDf9PBMrLEa','Ahr0Chm6lY9VCgvUCM91DgvYlMfPl2fWAs92mq','CMvHzhLtDgf0zq','ChjVDMLKzxjFCMv0CNK','zMLUzfjLC3bVBNnLC1nVy2TLDenOzwnRCg9PBNq','y2HHDenVBxbSzxrL','C3vTBwfYEv90zxH0','C3rYzwfTvMLHq29UzMLNDxjLzfn1CMzHy2u','BMfTzq','zxjYB3i','ywDLBNq','yw50AhjVCgLJqxnZAxn0yw50q29UDgvUDa','z3jVAY1JB2rLlwzHC3qTmq','ssbJAgvJA2vKihrOzsbTB2nRzwqGDg9VBcbYzxn1BhqUia','DgHPBMTPBMC','zgvMyxvSDe1HEfrVA2vUCW','uhjVDMLKzxiGCMvXDwvZDcbYzxrYEsbSB29Wigv4AxrLzcb1BMv4CgvJDgvKBhK','zMLUza','C3rYAw5NAwz5','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','Aw5WDxrFDg9Rzw5Z','Dg9Wx3bYB3zPzgvY','yxjNDw1LBNrZ','BgvUz3rO','B3v0Chv0x3rVA2vUCW','Dg9VBenHBgXpCMrLCG','Dg9VBf9JywXSCW','ChjVDg9JB2W','Dg9VBf91C2vFAwq','Ahr0Cc1QC29U','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','ywnJzxb0','Dw5ZDxbWB3j0zwrFyxbPx2zVCL9TB2rLBa','v2vIu29JA2v0ignSB3nLzcbIzwzVCMuGB3bLBMLUzW','yxn5BMnjDgvYyxrVCG','BgfZDfjLC3bVBNnLswq','ChjVBxb0x3rVA2vUCW','CMvHC29UAw5Nx3rVA2vUCW','Dgv4Dej5sw5KzxG','B3bLBMfP','y29UC3vTzvDLyLnVy2TLDev2zw50','zMLUAxnOx3jLyxnVBG','z3b0ltrV','C2HVDwXKuMv0CNLszxnWB25Zzq','zxzLBNq','BwfW','igrPzcbUB3qGChjVDMLKzsbHBIbivfrqihbHDgG','CMvKywn0zwrFDgHPBMTPBMC','CMvHC29UAw5N','D2fPDezVCLjLDhj5','r0vu','CMvZCg9UC2u','zgvLChnLzwSTDJqTChjV','DhjHBNnWB3j0x2vYCM9Y','Ahr0Chm6lY9HCgKUy29TBwfUzgnVzguUywKVChjVDMLKzxi','ChjVDg9JB2XwzxjZAw9U','CMvZCg9UC2vtDhjLyw0','C3rHCNrZv2L0Aa','Aw52ywXPzgf0zvjLC3bVBNnLC1nVy2TLDfnLC3nPB24','zw5JCNLWDgvKq29UDgvUDa','Bwv0Ag9K','BwvZC2fNzxm','z2v0qw50AhjVCgLJrgvSzwDHDgu','Ahr0Cc1ZC2u','r2L0shvIq29WAwXVDenOyxqVmc4ZmY4X','C2vUzfDPDgHszxrYAwvZ','A2LUza','l21VzgvSCW','y29TCgXLDgvwAwftDxjMywnL','y2fSBeLKvg9pDxrWDxrjBMrLEa','y2XVC2u','Bwf4x2nVBNrLEhrFD2LUzg93x3rVA2vUCW','B3bLBG','zM9Yy2vgDwXSuMvWBgf5','z2v0t3bLBKfPrgvSzwDHDgu','zgvMyxvSDe1VzgvS','C2v0','Aw5WDxrFANnVBL9KzwX0yq','D3m6','yw50AhjVCgLJrgvSzwDHDgu','B3v0Chv0sw5KzxHuB1jLyxnVBMLUz0LK','Bwv0ywrHDge','C2vSzwn0u3vYzMfJzq','yw50AhjVCgLJqMfZzvvYBa','B3v0Chv0sw5KzxG','A2v5CW','BgfIzwW','y29TCgXLDgvwAwfszxnWB25ZzxntDxjMywnL','y2fJAgvFCMvHzf9PBNb1Df90B2TLBNm','ywrKrxzLBNrmAxn0zw5LCG','y2fSBf9Pza','z2XTltqUnG','mtiWmZaWnwzXD29dDa','C3rVCf9YzwfZB24'];_0x266c=function(){return _0x42225e;};return _0x266c();}function _0x532739(_0x21b699,_0xcc16e7,_0x3881cb,_0x3b9c38){const _0x378352={_0x14f173:0x39e};return _0x17ab(_0xcc16e7- -_0x378352._0x14f173,_0x21b699);}async function createOpenAiApiError(_0x42e139){const _0x3a20f3={_0x4701bc:0xa2,_0x1ff960:0x113,_0x27cab2:0x34,_0x4336ec:0x17,_0x1e7058:0x9d,_0x384edf:0x146,_0x4e712f:0x53,_0x4e2106:0x2e,_0x46165d:0xe6,_0x295bbd:0x1f3,_0x415007:0x198,_0x3db4c6:0x1e3},_0x186aa0={_0x31f6b4:0x12a},_0x58e4b0={_0xedb668:0x13b,_0x3fc9f8:0x63,_0x384235:0x49};function _0x2350eb(_0x8d008a,_0x17da19,_0x3f706b,_0xaab127){return _0x532739(_0x8d008a,_0x17da19-_0x58e4b0._0xedb668,_0x3f706b-_0x58e4b0._0x3fc9f8,_0xaab127-_0x58e4b0._0x384235);}const _0x5a4aec=(await _0x42e139[_0x2350eb(0x36,_0x3a20f3._0x4701bc,_0x3a20f3._0x1ff960,_0x3a20f3._0x27cab2)]())[_0xd3cc72(0x10d,-_0x3a20f3._0x4336ec,_0x3a20f3._0x1e7058,_0x3a20f3._0x384edf)]();function _0xd3cc72(_0x2a8c6a,_0x3f0f56,_0x1ba64a,_0x253d69){return _0x22e674(_0x2a8c6a-_0x186aa0._0x31f6b4,_0x3f0f56-0x115,_0x253d69,_0x1ba64a- -0x25d);}const _0xa2e1fe=extractErrorMessage(_0x5a4aec)||_0x42e139['statusText']||_0x2350eb(-0x2e,0x78,-_0x3a20f3._0x4e712f,0x17)+_0x42e139[_0x2350eb(-0xa6,_0x3a20f3._0x4e2106,-0xa1,-0x5e)];return new OpenAiApiError(_0x42e139[_0xd3cc72(_0x3a20f3._0x46165d,_0x3a20f3._0x295bbd,_0x3a20f3._0x415007,_0x3a20f3._0x3db4c6)],_0x5a4aec,_0xa2e1fe);}function readSseData(_0x3c0388){const _0x54132b={_0x4571bb:0x16e,_0x2857fa:0xea,_0x6d7f66:0x162,_0x477383:0xc7,_0x27097c:0x3f,_0x2fae14:0xb2,_0x1ed2dc:0x7,_0x3bd1b5:0xe3,_0x449c37:0x93,_0x53cd9e:0x8,_0x1372b9:0x1e},_0x230370={_0x334346:0x45,_0x2babb0:0xf0},_0x480dba={_0x42849f:0x1a9};function _0x122ba1(_0x3ddbe9,_0xa56eca,_0x4c1eff,_0x3e07a7){return _0x22e674(_0x3ddbe9-_0x480dba._0x42849f,_0xa56eca-0x12b,_0x4c1eff,_0x3ddbe9- -0x534);}function _0x3affbd(_0x1d88de,_0x37710c,_0x244a01,_0x2a1e47){return _0x532739(_0x2a1e47,_0x37710c-0x210,_0x244a01-_0x230370._0x334346,_0x2a1e47-_0x230370._0x2babb0);}return _0x3c0388[_0x122ba1(-0x142,-0x197,-0x94,-0x169)]('\x0a')[_0x3affbd(_0x54132b._0x4571bb,_0x54132b._0x2857fa,_0x54132b._0x6d7f66,_0x54132b._0x477383)](_0x54874b=>_0x54874b[_0x122ba1(-0x1c8,-0x25b,-0x179,-0x140)](_0x122ba1(-0xff,-0x173,-0xc8,-0x19)))[_0x3affbd(0x14b,0x6e,0xb8,-_0x54132b._0x27097c)](_0x5ba513=>_0x5ba513[_0x3affbd(0x1cc,0x1a0,0xea,0x1cd)](0x5)[_0x122ba1(-0x153,-0x1f3,-0x1a0,-0x209)]())[_0x3affbd(_0x54132b._0x2fae14,_0x54132b._0x1ed2dc,_0x54132b._0x3bd1b5,_0x54132b._0x449c37)]('\x0a')[_0x3affbd(0xd5,_0x54132b._0x53cd9e,-_0x54132b._0x1372b9,0xe6)]();}function readString(_0x1a4a4b){const _0x449012={_0x241a2f:0x354,_0x1a7de7:0x40b};function _0x4674fb(_0x34fee9,_0x45e9cd,_0x48a78c,_0x469e12){return _0x22e674(_0x34fee9-0x1cd,_0x45e9cd-0x19e,_0x45e9cd,_0x34fee9-0x34);}return typeof _0x1a4a4b==='string'&&_0x1a4a4b[_0x4674fb(0x37e,0x317,_0x449012._0x241a2f,_0x449012._0x1a7de7)]>0x0?_0x1a4a4b:void 0x0;}function extractReasoningDetails(_0x3be52d){const _0xd735c9={_0x12813f:0xa7,_0x263f7c:0x7d,_0x367e7c:0x5d},_0x3b1a14={_0x1c176a:0x780,_0x52f138:0x6a9,_0x49d2ca:0x740,_0x296139:0x5ae,_0x266620:0x671,_0x14c168:0x58e,_0x41dcb1:0x5e6,_0x39983e:0x5d9,_0x10f170:0x6bf,_0x479f1a:0x4b5,_0x55acc8:0x69d,_0x4f85ef:0x73d},_0x1fbcd3={_0x4a6f00:0x36c},_0x1a7050={_0xe4d823:0xb7,_0x4aa991:0x37e};function _0x74d8d0(_0x48a517,_0x590fba,_0x57e1ba,_0x492e1f){return _0x22e674(_0x48a517-_0x1a7050._0xe4d823,_0x590fba-0xc9,_0x57e1ba,_0x492e1f- -_0x1a7050._0x4aa991);}if(!Array['isArray'](_0x3be52d))return void 0x0;const _0x56780a=_0x3be52d['flatMap'](_0x57b8c3=>{const _0x4d469c={_0x545ef5:0x2a8};if(!_0x57b8c3||typeof _0x57b8c3!==_0x36fafb(_0x3b1a14._0x1c176a,_0x3b1a14._0x52f138,0x694,_0x3b1a14._0x49d2ca))return[];function _0x7a8c71(_0x47bd70,_0x569840,_0x533f93,_0x5d3422){return _0x17ab(_0x533f93-_0x4d469c._0x545ef5,_0x5d3422);}const _0x4814c2=_0x57b8c3;if(typeof _0x4814c2['text']===_0x7a8c71(0x5ce,_0x3b1a14._0x296139,0x51a,0x553))return[_0x4814c2[_0x36fafb(0x670,_0x3b1a14._0x266620,_0x3b1a14._0x14c168,_0x3b1a14._0x41dcb1)]];if(typeof _0x4814c2[_0x7a8c71(0x69c,0x5ab,_0x3b1a14._0x39983e,_0x3b1a14._0x10f170)]===_0x7a8c71(_0x3b1a14._0x479f1a,0x5ad,0x51a,0x44f))return[_0x4814c2[_0x36fafb(0x713,_0x3b1a14._0x55acc8,_0x3b1a14._0x4f85ef,0x5ce)]];function _0x36fafb(_0x303858,_0x3074bd,_0xad0a7d,_0x5500f5){return _0x17ab(_0x3074bd-_0x1fbcd3._0x4a6f00,_0x5500f5);}return[];});return _0x56780a[_0x74d8d0(_0xd735c9._0x12813f,-_0xd735c9._0x263f7c,-_0xd735c9._0x367e7c,-0x34)]>0x0?_0x56780a['join'](''):void 0x0;}function extractChatCompletionReasoningDelta(_0x512f4b){const _0x232fb2={_0x357e24:0x1f9,_0x4fe084:0x13d,_0x502aaf:0x205,_0x214cab:0x270,_0x58cbe4:0x268,_0x213bd0:0x3f7,_0x2ea0e0:0x419},_0x1592da={_0x50a96d:0x183,_0x2ab2d5:0x4c};function _0x25fe8a(_0x31af42,_0x1be223,_0x2eb05c,_0x4134c0){return _0x22e674(_0x31af42-0x73,_0x1be223-0xee,_0x31af42,_0x2eb05c- -0x7b);}function _0xab55a7(_0x32deac,_0x427378,_0x3af4de,_0x191bb6){return _0x22e674(_0x32deac-_0x1592da._0x50a96d,_0x427378-_0x1592da._0x2ab2d5,_0x32deac,_0x427378- -0x235);}return extractReasoningDetails(_0x512f4b?.['reasoning_details'])??readString(_0x512f4b?.[_0xab55a7(0x165,0x12e,_0x232fb2._0x357e24,_0x232fb2._0x4fe084)])??readString(_0x512f4b?.[_0x25fe8a(_0x232fb2._0x502aaf,0x19f,_0x232fb2._0x214cab,_0x232fb2._0x58cbe4)])??readString(_0x512f4b?.[_0x25fe8a(0x336,_0x232fb2._0x213bd0,0x408,_0x232fb2._0x2ea0e0)])??'';}var OpenAiChatCompletionsStreamParser=class{[_0x532739(-0x10,-0xaf,-0xf6,0x24)]=[];[_0x22e674(0x400,0x42f,0x498,0x3b1)];['textParts']=[];[_0x532739(-0x2c2,-0x206,-0x2c4,-0x1d4)]=new Map();[_0x22e674(0x302,0x387,0x28c,0x34c)]=[];[_0x532739(-0x6a,-0xa7,-0x99,-0xf8)]=new Set();['responseId']='';[_0x22e674(0x3a2,0x3c7,0x4e2,0x42f)]='end_turn';[_0x22e674(0x3e6,0x45a,0x42b,0x3e2)];constructor(_0x2f4de0){this['request']=_0x2f4de0;}[_0x532739(-0x1b,-0xae,-0x170,-0x165)](_0x13a43e){const _0x32a0ca={_0x4ee484:0x10,_0x539c9b:0xbe,_0x3343a6:0xd,_0x4216e8:0xd2,_0x2e739c:0x157,_0x50766f:0x12d,_0xbc1147:0xee,_0x25a0ac:0x6c,_0xd8499b:0x3a,_0x4e6cc5:0x1e,_0x57d741:0x39,_0x5cb263:0xa8,_0x1f0485:0x1c,_0x23cbb0:0x2c0,_0x1b690f:0x1f0,_0x1ebe16:0x205,_0xdc0da8:0x2ba},_0x5ad236={_0x3b5725:0x11},_0x11fe1c={_0x39026f:0x1c8,_0x14160c:0x14d},_0x3745a5=readSseData(_0x13a43e);if(_0x3745a5[_0x5cb043(0x8,_0x32a0ca._0x4ee484,_0x32a0ca._0x539c9b,-0xb4)]===0x0||_0x3745a5==='[DONE]')return[];const _0x3a910e=JSON[_0x5cb043(-_0x32a0ca._0x3343a6,_0x32a0ca._0x4216e8,_0x32a0ca._0x2e739c,_0x32a0ca._0x50766f)](_0x3745a5);function _0x5cb043(_0x215871,_0x546e2f,_0x5c7e64,_0xdb5215){return _0x532739(_0xdb5215,_0x546e2f-_0x11fe1c._0x39026f,_0x5c7e64-0x13d,_0xdb5215-_0x11fe1c._0x14160c);}function _0x2b8125(_0x10c9b1,_0x105774,_0x1e27e3,_0x5305d4){return _0x532739(_0x10c9b1,_0x105774-_0x5ad236._0x3b5725,_0x1e27e3-0xd8,_0x5305d4-0x1cc);}return this[_0x5cb043(0xf,0xeb,_0x32a0ca._0xbc1147,_0x32a0ca._0x25a0ac)]=_0x3a910e['id']??this['responseId'],this[_0x5cb043(_0x32a0ca._0xd8499b,0xa8,_0x32a0ca._0x4e6cc5,0x15d)]=_0x3a910e[_0x5cb043(-_0x32a0ca._0x57d741,_0x32a0ca._0x5cb263,_0x32a0ca._0x1f0485,0xcb)]??this['usage'],this[_0x2b8125(-_0x32a0ca._0x23cbb0,-_0x32a0ca._0x1b690f,-_0x32a0ca._0x1ebe16,-_0x32a0ca._0xdc0da8)](_0x3a910e);}[_0x532739(-0x7b,-0x116,-0x182,-0x16f)](){const _0x25e5c8={_0x315368:0x2f4,_0x4ec2e5:0x2ca,_0x5d631a:0x4d,_0x4cd0e5:0x4be,_0x20ef45:0x39c,_0x210dc1:0x3e6,_0x13a80d:0x192,_0x2660b2:0x2f,_0x2a4323:0x359,_0x3f9389:0x2b9,_0x1e9b71:0xb6,_0x295758:0x3,_0x322ee3:0xa1,_0x6e51bd:0x3cd,_0x19fd7c:0x3c3,_0x2805e7:0x48d,_0x276c25:0x2d,_0x1dcadf:0xfe,_0x409220:0x2b,_0x29a6ce:0x10c,_0x45726c:0x2c8,_0x3c7f3b:0x286,_0x29a360:0x79,_0x44f54d:0x17,_0x93a5c2:0x4,_0x5051b3:0x4f,_0x5765d7:0x1b9,_0x2a1e9e:0x38a},_0x4182eb={_0x34572e:0x2fd},_0x2f9edf={_0x33a4a3:0x1e9,_0x197f15:0x58};this[_0x36d583(_0x25e5c8._0x315368,0x31e,_0x25e5c8._0x4ec2e5,0x34e)][_0x45b898(-0x4d,0x87,_0x25e5c8._0x5d631a,0xf9)]>0x0&&(this[_0x36d583(0x3d7,_0x25e5c8._0x4cd0e5,_0x25e5c8._0x20ef45,_0x25e5c8._0x210dc1)]=_0x45b898(_0x25e5c8._0x13a80d,0x17d,0xaf,_0x25e5c8._0x2660b2));function _0x36d583(_0x5c2cd4,_0x2be9c7,_0x265de0,_0x396010){return _0x22e674(_0x5c2cd4-_0x2f9edf._0x33a4a3,_0x2be9c7-0x11c,_0x265de0,_0x5c2cd4- -_0x2f9edf._0x197f15);}const _0x33492d=isUserVisibleReasoning(this[_0x36d583(_0x25e5c8._0x2a4323,0x326,0x2df,_0x25e5c8._0x3f9389)])?this[_0x45b898(_0x25e5c8._0x1e9b71,0xf4,0x156,0xbb)][_0x45b898(-0x8a,-_0x25e5c8._0x295758,-0x4,_0x25e5c8._0x322ee3)](''):void 0x0;function _0x45b898(_0x7c1879,_0x4dc4eb,_0x2c62d3,_0x36baa5){return _0x22e674(_0x7c1879-0x8d,_0x4dc4eb-0x6f,_0x7c1879,_0x2c62d3- -_0x4182eb._0x34572e);}return{'id':this[_0x36d583(_0x25e5c8._0x6e51bd,0x302,_0x25e5c8._0x19fd7c,_0x25e5c8._0x2805e7)]||_0x45b898(-0x22,0x185,0xc0,0x150)+Date[_0x45b898(-_0x25e5c8._0x276c25,_0x25e5c8._0x1dcadf,_0x25e5c8._0x409220,_0x25e5c8._0x29a6ce)](),'content':createContentBlocks(this[_0x36d583(_0x25e5c8._0x45726c,_0x25e5c8._0x3c7f3b,0x32a,0x21e)][_0x45b898(-_0x25e5c8._0x29a360,_0x25e5c8._0x44f54d,-_0x25e5c8._0x93a5c2,-0x27)](''),this[_0x45b898(0xe2,0x5f,_0x25e5c8._0x5051b3,0xc4)],_0x33492d),'stopReason':this[_0x45b898(0xbd,_0x25e5c8._0x5765d7,0x132,0x209)],'usage':createUsage(this[_0x36d583(_0x25e5c8._0x2a1e9e,0x3d8,0x3e2,0x415)])};}[_0x22e674(0x23c,0x3d2,0x25a,0x301)](_0xfe6251){const _0x255346={_0x197e37:0x2d3,_0x481db8:0x21,_0x550ce6:0x1a,_0x10a07a:0x210,_0x58b0e6:0x2e1,_0x5e036b:0x45b,_0x16cd83:0x3f5,_0x3ffca3:0x3ea,_0x3f3c38:0x19,_0x4695f9:0xcc,_0x5b6d3d:0x96,_0x56f208:0x166,_0x20a3de:0x8d,_0x48be04:0x13c,_0x4a6201:0x5b,_0x2e871b:0x89,_0x3375ef:0xb2,_0xb2def2:0x126,_0x3c8b85:0x17a,_0x1ad827:0xb0,_0x304d92:0x302,_0x2035b2:0x2e1,_0x189b8f:0x33c,_0x2059b9:0x264,_0x4f61f8:0x413,_0x48159b:0x331,_0x3f8e3f:0xb5,_0x5eee2a:0x98,_0x1def3e:0xdf,_0x1e5929:0x216,_0x107a16:0x2e4,_0x151007:0x1e,_0x451b62:0xa6,_0x30bedb:0x38d,_0x3eddc6:0x325,_0x5c34e5:0x4d3,_0x480396:0x3ff,_0x3c1f45:0x374,_0x412204:0x4a8,_0x14853:0x422,_0x288a08:0x412,_0x26c9b5:0x46,_0x41d1c9:0x34c,_0x5d1388:0x2d2,_0x2035b6:0x2ff,_0x148f53:0x316,_0x4e3823:0x2df,_0x3ebdf8:0x2e3,_0x1b5ca7:0x228,_0x1550b1:0x300,_0x2c8435:0x481,_0x416f4f:0x335,_0x41c721:0xe3,_0x297f09:0x447,_0x156907:0xe2,_0x4f48c0:0x22f,_0x5e703b:0x30a,_0x3d5041:0x179,_0x1c87b7:0xaa,_0x531bd8:0x100,_0x5aba72:0x80,_0x494402:0x109,_0x6af1a8:0x15d,_0x2103dd:0x2f1,_0x4a5732:0x293,_0x3f1881:0x2d2,_0x5616ce:0xf6,_0x255d62:0x4,_0x4fcd48:0x4f,_0x3093e8:0x1d,_0x4b45aa:0x367,_0x4f626d:0x2f7,_0x1c135f:0x3ef,_0x3ca093:0xd7,_0x44fa24:0xb9,_0xca77ff:0xd2,_0xac2d07:0x2eb,_0x5b3cce:0x387,_0x406737:0x409,_0x263a56:0x331,_0x2ab803:0x394,_0x5b6481:0x3af,_0x51244d:0x3c6,_0x2d75f2:0x2f4},_0x1d4289={_0x56dc69:0x499,_0x26b415:0x1a1},_0x37075c={_0x430965:0x14b,_0x166edf:0x398},_0x39a793=[];function _0x36e804(_0xf1805f,_0x4debaf,_0x84ad15,_0xe77b5c){return _0x22e674(_0xf1805f-0x180,_0x4debaf-_0x37075c._0x430965,_0x4debaf,_0xf1805f- -_0x37075c._0x166edf);}for(const _0x4253b0 of _0xfe6251[_0x3a6903(_0x255346._0x197e37,0x3bf,0x2d1,0x340)]??[]){const _0x4db39c=_0x4253b0[_0x36e804(_0x255346._0x481db8,-0x8a,-0x6b,_0x255346._0x550ce6)],_0x2b38b8=extractChatCompletionReasoningDelta(_0x4db39c);_0x2b38b8[_0x3a6903(0x25a,0x3a6,_0x255346._0x10a07a,_0x255346._0x58b0e6)]>0x0&&(this[_0x3a6903(0x46e,_0x255346._0x5e036b,_0x255346._0x16cd83,_0x255346._0x3ffca3)]['push'](_0x2b38b8),isUserVisibleReasoning(this[_0x36e804(_0x255346._0x3f3c38,-_0x255346._0x4695f9,-_0x255346._0x481db8,-0xa0)])&&_0x39a793['push']({'type':_0x36e804(-_0x255346._0x5b6d3d,-_0x255346._0x56f208,0x30,-0x53),'contentIndex':0x0,'delta':_0x2b38b8,'itemId':(this[_0x36e804(_0x255346._0x20a3de,0xb0,_0x255346._0x48be04,0x6b)]||_0x36e804(0x16,_0x255346._0x4a6201,0xae,_0x255346._0x2e871b))+':reasoning:0','outputIndex':0x0}));const _0x5e3995=typeof _0x4db39c?.[_0x36e804(_0x255346._0x3375ef,_0x255346._0xb2def2,_0x255346._0x3c8b85,_0x255346._0x1ad827)]==='string'?_0x4db39c['content']:typeof _0x4db39c?.['refusal']==='string'?_0x4db39c['refusal']:'';_0x5e3995[_0x3a6903(0x261,0x3c3,_0x255346._0x304d92,_0x255346._0x2035b2)]>0x0&&(this[_0x3a6903(0x308,0x375,_0x255346._0x189b8f,0x2b7)][_0x3a6903(_0x255346._0x2059b9,0x28f,_0x255346._0x4f61f8,_0x255346._0x48159b)](_0x5e3995),_0x39a793[_0x36e804(0x2,0x47,_0x255346._0x3f8e3f,0x8)]({'type':_0x36e804(_0x255346._0x5eee2a,-0x6,_0x255346._0x1def3e,0x4),'index':0x0,'text':_0x5e3995}));for(const _0xc7f328 of _0x4db39c?.[_0x3a6903(0x345,0x23f,_0x255346._0x1e5929,_0x255346._0x107a16)]??[]){const _0x3700b6=_0xc7f328['index']??0x0;let _0xba1457=this[_0x36e804(-0x9c,-_0x255346._0x151007,-_0x255346._0x451b62,-0xba)]['get'](_0x3700b6);!_0xba1457&&(_0xba1457={'id':_0xc7f328['id']??_0x3a6903(_0x255346._0x30bedb,_0x255346._0x3eddc6,_0x255346._0x5c34e5,_0x255346._0x480396)+_0x3700b6,'type':_0x3a6903(_0x255346._0x3c1f45,_0x255346._0x412204,_0x255346._0x14853,_0x255346._0x288a08),'function':{'name':_0xc7f328[_0x36e804(0xe3,_0x255346._0x26c9b5,0x7d,0x110)]?.[_0x3a6903(0x2e7,0x269,_0x255346._0x41d1c9,_0x255346._0x5d1388)]??'','arguments':''}},this['toolCallsByIndex'][_0x3a6903(0x2af,0x2cb,_0x255346._0x2035b6,_0x255346._0x148f53)](_0x3700b6,_0xba1457),this[_0x3a6903(0x225,_0x255346._0x4e3823,0x327,_0x255346._0x3ebdf8)]['push'](_0xba1457));_0xc7f328['id']&&(_0xba1457['id']=_0xc7f328['id']);_0xc7f328[_0x36e804(0xe3,0xb3,0x1ab,0x1a8)]?.[_0x3a6903(_0x255346._0x1b5ca7,_0x255346._0x1550b1,_0x255346._0x30bedb,0x2d2)]&&(_0xba1457[_0x3a6903(_0x255346._0x2c8435,0x37e,_0x255346._0x416f4f,_0x255346._0x288a08)]['name']=_0xc7f328[_0x36e804(_0x255346._0x41c721,0x68,0xef,0x154)]['name']);!this[_0x3a6903(0x467,0x3c3,_0x255346._0x297f09,0x3f2)]['has'](_0x3700b6)&&_0xba1457[_0x36e804(0xe3,_0x255346._0x156907,0xda,0x12c)][_0x3a6903(0x230,_0x255346._0x4f48c0,_0x255346._0x5e703b,0x2d2)][_0x36e804(-0x9e,0x46,0x21,-_0x255346._0x3d5041)]()[_0x36e804(-0x4e,-_0x255346._0x1c87b7,-_0x255346._0x531bd8,-_0x255346._0x5aba72)]>0x0&&(_0x39a793['push']({'type':'tool_use_delta','id':_0xba1457['id'],'index':_0x3700b6,'name':_0xba1457[_0x36e804(_0x255346._0x41c721,_0x255346._0x494402,_0x255346._0x6af1a8,0xcb)][_0x3a6903(_0x255346._0x2103dd,_0x255346._0x4a5732,0x39f,_0x255346._0x3f1881)]}),this[_0x36e804(0xc3,0x0,_0x255346._0x5616ce,0x129)][_0x36e804(0x69,-0x34,0x29,_0x255346._0x255d62)](_0x3700b6));const _0x54dae4=_0xc7f328[_0x36e804(0xe3,0x11b,0x117,0x1a6)]?.[_0x36e804(-_0x255346._0x4fcd48,-0x10d,_0x255346._0x3093e8,-0xc0)]??'';_0x54dae4[_0x3a6903(_0x255346._0x4b45aa,_0x255346._0x4f626d,0x2ed,_0x255346._0x2035b2)]>0x0&&(_0xba1457[_0x3a6903(_0x255346._0x1c135f,0x3b9,0x4c2,_0x255346._0x288a08)][_0x36e804(-_0x255346._0x4fcd48,-_0x255346._0x3ca093,-_0x255346._0x44fa24,-_0x255346._0xca77ff)]+=_0x54dae4,_0x39a793[_0x3a6903(_0x255346._0xac2d07,_0x255346._0x5b3cce,_0x255346._0x406737,_0x255346._0x263a56)]({'type':_0x3a6903(0x383,0x304,0x246,0x2b5),'id':_0xba1457['id'],'index':_0x3700b6,'inputDelta':_0x54dae4}));}_0x4253b0['finish_reason']===_0x3a6903(0x252,0x348,_0x255346._0x2ab803,0x2e4)&&(this[_0x3a6903(0x440,_0x255346._0x5b6481,0x492,_0x255346._0x51244d)]=_0x3a6903(0x317,_0x255346._0x2d75f2,0x302,0x343));}function _0x3a6903(_0x30a313,_0x61040b,_0x24ef6c,_0x5ca87f){return _0x532739(_0x61040b,_0x5ca87f-_0x1d4289._0x56dc69,_0x24ef6c-0x1a6,_0x5ca87f-_0x1d4289._0x26b415);}return _0x39a793;}},OpenAiResponsesStreamParser=class{[_0x532739(-0xd1,-0x18a,-0x12f,-0xe0)]=new Map();[_0x22e674(0x3e3,0x523,0x516,0x44d)];[_0x532739(-0x16e,-0x117,-0x146,-0x1ad)]=new Map();[_0x22e674(0x3ee,0x366,0x2e5,0x383)]=new Map();[_0x532739(-0x17e,-0x20c,-0x132,-0x1a9)]=new Map();[_0x22e674(0x3cb,0x36f,0x336,0x3b1)];[_0x22e674(0x408,0x502,0x4de,0x41c)]=new Map();['toolCalls']=new Map();constructor(_0x822de1){const _0x157f3c={_0x3eb648:0x79};function _0x335ac5(_0x41ca3d,_0x9e575c,_0x208ad7,_0x36c548){return _0x532739(_0x208ad7,_0x41ca3d-0x27d,_0x208ad7-0x4c,_0x36c548-0xec);}this[_0x335ac5(0x12c,0x10c,0x198,_0x157f3c._0x3eb648)]=_0x822de1;}[_0x532739(-0xe9,-0xae,-0x10a,-0x10)](_0x2eaa79){const _0x5589a1={_0x5770d5:0x63e,_0x4579f3:0x578,_0xe83879:0x496,_0x33d6e7:0x5d8,_0x5bac1f:0x46c,_0x16b94a:0x588,_0x539052:0x428,_0x29433b:0x9a,_0x55783d:0x77,_0x4c6b96:0x15a,_0x18f534:0x4d0,_0x2291f0:0x494,_0x3c7f42:0x4da,_0x38818e:0x592,_0x301ce7:0x61a,_0x4e2c50:0x5d5,_0xfe4bca:0x195,_0x12bcbb:0xfd,_0x36d67f:0x88,_0x2be9d9:0x153,_0x4786b0:0x14d,_0x2e136a:0x94},_0x3c519f={_0x2dbf8c:0xfe,_0x2781c0:0x15a},_0x35af66={_0x17b5c9:0xae,_0x253075:0x77},_0x3a281a=_0x2eaa79[_0x43a387(_0x5589a1._0x5770d5,_0x5589a1._0x4579f3,_0x5589a1._0xe83879,_0x5589a1._0x33d6e7)]('\x0a'),_0x305433=_0x3a281a[_0x43a387(0x4dd,0x4ca,_0x5589a1._0x5bac1f,0x4d5)](_0x1e5b48=>_0x1e5b48['startsWith'](_0x2bc13b(0x94,0xaa,0x1f,0x57)))?.[_0x43a387(0x6e4,0x618,0x661,0x618)](0x6)['trim'](),_0x286369=_0x3a281a['filter'](_0x3302cf=>_0x3302cf[_0x2bc13b(-0x10b,-0x143,-0x174,-0xe8)](_0x2bc13b(-0x6f,-0xc6,0x63,-0x1f)))[_0x43a387(_0x5589a1._0x16b94a,0x4e6,_0x5589a1._0x539052,0x539)](_0x394c38=>_0x394c38[_0x2bc13b(0xff,-0x67,-0x91,0x3e)](0x5)[_0x43a387(0x52e,0x567,0x560,0x4d0)]())[_0x2bc13b(-_0x5589a1._0x29433b,-_0x5589a1._0x55783d,-0x185,-0x15b)]('\x0a')[_0x2bc13b(-0xfa,-0x21b,-0x221,-_0x5589a1._0x4c6b96)]();if(_0x286369[_0x43a387(0x58c,_0x5589a1._0x18f534,0x4ab,0x52b)]===0x0||_0x286369===_0x43a387(_0x5589a1._0x2291f0,0x48c,0x4ed,_0x5589a1._0x3c7f42))return[];function _0x2bc13b(_0x5d0f4e,_0x3e46c2,_0x5c80a5,_0x210a13){return _0x532739(_0x5c80a5,_0x210a13-_0x35af66._0x17b5c9,_0x5c80a5-_0x35af66._0x253075,_0x210a13-0x1ea);}function _0x43a387(_0x167ed1,_0x4c3dcb,_0x36dd19,_0xda3b8d){return _0x532739(_0x167ed1,_0x4c3dcb-0x688,_0x36dd19-_0x3c519f._0x2dbf8c,_0xda3b8d-_0x3c519f._0x2781c0);}const _0x483e84=JSON[_0x43a387(_0x5589a1._0x4579f3,_0x5589a1._0x38818e,_0x5589a1._0x301ce7,_0x5589a1._0x4e2c50)](_0x286369);return this[_0x2bc13b(-_0x5589a1._0xfe4bca,-_0x5589a1._0x12bcbb,-_0x5589a1._0x36d67f,-_0x5589a1._0x2be9d9)](_0x305433??String(_0x483e84[_0x2bc13b(-0x134,-_0x5589a1._0x4786b0,-0x107,-_0x5589a1._0x2e136a)]??''),_0x483e84);}[_0x22e674(0x348,0x2f2,0x2ad,0x35b)](_0x59f16f){const _0x27980d={_0x2c2fe4:0x1a,_0x2e3fb9:0x9c,_0xf8b9f3:0x1b3},_0x1324ec={_0x1e10bb:0x82};function _0x3e01de(_0x46f072,_0x56d32d,_0x1495b8,_0x4fd47d){return _0x532739(_0x1495b8,_0x46f072-0xf2,_0x1495b8-_0x1324ec._0x1e10bb,_0x4fd47d-0x10);}function _0x12a0c0(_0x180c07,_0x624ab6,_0x36a14f,_0x380dd0){return _0x532739(_0x36a14f,_0x624ab6- -_0x27980d._0x2c2fe4,_0x36a14f-_0x27980d._0x2e3fb9,_0x380dd0-_0x27980d._0xf8b9f3);}return this[_0x12a0c0(-0x2f3,-0x21b,-0x1b7,-0x171)](String(_0x59f16f[_0x3e01de(-0x50,0x97,0x96,-0x118)]??''),_0x59f16f);}[_0x532739(-0x1ad,-0x116,-0x1a2,-0x1e5)](){const _0x5dde75={_0x30a952:0x4ae,_0x374dc5:0x2f8,_0x3109d3:0x3b9,_0x382a00:0x312,_0x2cbeda:0x3b8,_0x291a34:0x49f,_0x506da2:0x31e,_0x39103d:0x4d6,_0x51239a:0x462,_0x4832d2:0x461,_0x53ce9c:0x426},_0x37ff56={_0x4a7c8a:0x16d,_0x1427f7:0x27},_0x198afe={_0xd6eb40:0x9e};function _0xb766ca(_0xabb11a,_0x44fb49,_0x5e7956,_0x52ed35){return _0x22e674(_0xabb11a-0x43,_0x44fb49-_0x198afe._0xd6eb40,_0x52ed35,_0x5e7956-0x91);}const _0x5db36e=this[_0x23e4a5(0x3d3,0x474,0x42e,_0x5dde75._0x30a952)]??{'id':'resp-'+Date[_0xb766ca(_0x5dde75._0x374dc5,0x2ff,_0x5dde75._0x3109d3,_0x5dde75._0x382a00)](),'object':_0xb766ca(_0x5dde75._0x2cbeda,_0x5dde75._0x291a34,0x3f7,_0x5dde75._0x506da2),'status':_0xb766ca(0x404,_0x5dde75._0x39103d,_0x5dde75._0x51239a,0x52d),'output':this[_0xb766ca(_0x5dde75._0x4832d2,0x469,0x3bd,0x2f2)](),'usage':{'input_tokens':0x0,'output_tokens':0x0}};function _0x23e4a5(_0x2598e3,_0x5ee7ab,_0x1dff89,_0x280524){return _0x22e674(_0x2598e3-_0x37ff56._0x4a7c8a,_0x5ee7ab-0x74,_0x280524,_0x5ee7ab-_0x37ff56._0x1427f7);}return parseResponsesResponse(_0x5db36e,this[_0x23e4a5(_0x5dde75._0x53ce9c,0x3d8,0x434,0x400)]);}[_0x532739(-0x12e,-0x1fa,-0x182,-0x267)](){const _0x5725e5={_0x7ad6eb:0x279},_0x227b83={_0x43beac:0x14d};function _0xea20a2(_0x168ccf,_0x31ba42,_0x120035,_0x521f96){return _0x532739(_0x521f96,_0x120035-0x31c,_0x120035-_0x227b83._0x43beac,_0x521f96-0x20);}return this[_0xea20a2(0x1b4,_0x5725e5._0x7ad6eb,0x267,0x1e8)]!==void 0x0;}[_0x532739(-0x2c2,-0x201,-0x280,-0x1e3)](_0x2bbbdb,_0x4b5861){const _0x3eaea5={_0x74375f:0x40b,_0x20a171:0x297,_0x1fe77d:0x36f,_0x45bf97:0x12b,_0x438a9f:0x198,_0x137541:0x109,_0x4a8e9c:0x107,_0x2f60b3:0x1b8,_0xfc8c6a:0xa6,_0x267ec9:0x3af,_0x438c44:0x8b,_0x156343:0x161,_0x44a69d:0xee,_0x475dd5:0x2eb,_0x1228d6:0x315,_0x412ffa:0x342,_0x161085:0x359,_0xab6f6e:0x47d,_0x1718ec:0x269,_0x2af5de:0x2df,_0x47dfc0:0x43b,_0x1232b1:0x32f,_0x52e8b3:0x3b7,_0x4a7e85:0x336,_0x145b30:0x330,_0x50c33c:0x1dd,_0x187650:0x2c4,_0x552944:0x204,_0x1d517b:0x263,_0x1dc3bf:0x2f4,_0x24e1aa:0x31d,_0x391ae9:0x2c2,_0x208b8b:0x320,_0x107158:0x308,_0x1c63d6:0x25d,_0x3ae179:0x34b,_0xd0ef74:0x325,_0x491a4f:0xc1,_0x493ffb:0x95,_0xd721ef:0x3a6,_0x4fd0a:0x401,_0xecaf24:0x3ed,_0x5654da:0x33f,_0x39d54f:0x3ec,_0x4cf35f:0x37e,_0x55e30b:0x3a0,_0x3a0e70:0x388,_0x39e995:0x2d9,_0x77dd42:0x379,_0x343341:0x3f4,_0x559072:0x320,_0x104dbf:0x140,_0x2d7ee9:0x1c1,_0x2707dc:0xc0,_0x29b864:0x3fb,_0x4b1185:0x395,_0x2e7929:0x3c0,_0x23b15a:0x228,_0x3f56b5:0x38c,_0x3c9c9b:0x2b1,_0x475cf8:0x1da,_0x1a9362:0xe3,_0x52be53:0x209,_0x1e829b:0x3b3,_0xef79e6:0x2f6,_0x2d95a7:0x38b,_0x2f9976:0x316,_0x33d605:0x5e,_0xf0ed50:0x160,_0x3da5ba:0x185,_0x170cb7:0x385,_0x5164d0:0x2d3,_0x3f7a11:0x369,_0x23f56:0x9b,_0xad0ddc:0x14f,_0x3db2e0:0x3bf,_0x59c540:0x332,_0xc893c7:0x106,_0x1a52fc:0x8c,_0x1a370c:0x17b,_0x5d4b07:0x157,_0xbeacf8:0x2b4,_0x46f07c:0x283,_0x4b7fe7:0x2b4,_0x5b6f48:0x357,_0x6bbbaa:0x332,_0x334014:0x2f5,_0x5a2bd3:0x143,_0x401962:0x16e,_0x100f18:0x1fe,_0x5534e3:0x215,_0x36ff9c:0x39e,_0x4f26c1:0x1d8,_0x382d31:0xd3,_0x508d31:0x15f,_0x4053fb:0x1f2,_0x3ddb1a:0x469,_0x40ad68:0x45d,_0x4b3b68:0x3b7,_0xa1a626:0x1ad,_0x1261dc:0x1f7,_0x1d1ac4:0x3a0,_0x18b3f6:0x337,_0x32f424:0x330,_0x5eb51b:0x13b,_0x348b7d:0x353,_0x589d2b:0x2e0,_0x4847de:0x37f,_0x30621d:0x292,_0x1b52a5:0x23d,_0x19e5f0:0x250,_0x12656c:0x2a4,_0xa4f36a:0x27b,_0x4303d4:0x2dc,_0x288b26:0x21e,_0x17422c:0x14a,_0x54274c:0x1bc,_0x1768eb:0x223,_0x5e2e6a:0x1e6,_0x38405d:0x121,_0x4b79b0:0x173,_0x1fc8eb:0xc6,_0x529aa0:0x129,_0x4e534e:0x3c8,_0x58cb30:0x3b1,_0x50d883:0x10a,_0x1ec9a9:0x105,_0xeaa9d6:0x452,_0x225b4b:0x37e,_0xaf5c23:0xda,_0x2a746e:0x23a,_0x53f5c1:0x2be,_0x1e8b44:0x2ab,_0x50ccc4:0x44a,_0x5a3657:0x3c7,_0x453b00:0x369,_0x5656bb:0x10b,_0x5e1d2b:0xb0,_0x426f4e:0x297,_0x514a61:0x222,_0x47b5fa:0x2d7,_0x14e0a4:0x324,_0x377eee:0x442,_0x4ca727:0x32c,_0x19bfaf:0x2b6,_0x5cc7f8:0x44d,_0x48d465:0x192,_0x1ccedd:0x9a,_0x5df7c2:0x130,_0x14df72:0x18a,_0x1c5eaa:0x12a,_0x37dfb1:0xaf,_0x3fb6f4:0x1bd,_0x39d6b3:0x393,_0x25d683:0x3fe,_0x22ac0e:0x40a,_0x3d5fb1:0x391,_0x6e828a:0x4f1,_0x5d0bc5:0x428,_0xc8944a:0x345,_0x5d9c8d:0x41e,_0x3dc903:0x3f1,_0xd1db9d:0x428,_0x11813f:0x223,_0x2f9465:0x2cd,_0x275c7b:0xf5,_0x3aebb4:0x130,_0x533126:0x26c,_0x1b3f32:0x293,_0x3f69d9:0x132,_0x12f6df:0x3ba,_0x5abae4:0x4e2,_0x356d73:0x3fc,_0x25eda2:0x3c0,_0x4de1d7:0x35e,_0x147751:0x448,_0x314a6d:0x3fc,_0xf09648:0x426,_0x202e35:0x3f7,_0x4238c7:0xf1,_0x151998:0x11b,_0x23e47f:0x197,_0x406bda:0x499,_0x2efb1d:0x466,_0x5abb3e:0x181,_0x116dc7:0x6c,_0x4db730:0x14b,_0x3d04ff:0x13,_0x16e629:0x127,_0x35cfb9:0x16a,_0x294c42:0x1fc,_0x568511:0x1e6,_0x1872fa:0xde,_0x365328:0x176,_0x3b5e73:0x382,_0x48583d:0x378,_0x241015:0x240,_0x3211fe:0x232,_0x1a45be:0x2dd,_0x11e628:0x24b,_0x59b23a:0xf5,_0x1f266e:0x141,_0x142e07:0x3d5,_0x274223:0x394,_0x2bae4b:0x333,_0x410e8b:0x332,_0xa12986:0x230,_0xbe4293:0x108,_0x403f56:0x289,_0x9e7267:0x23a,_0x4813d9:0xb1,_0x47d3ea:0x448,_0x42cbb1:0x1ff,_0x285092:0x15c,_0x378082:0x31e,_0x16b4b1:0x1ce,_0x39c9d9:0x145,_0x25b93a:0x7b,_0xda2927:0x23d,_0x23a847:0x161,_0xc4eec9:0x331,_0x2891c1:0x3b5,_0x5be483:0x332,_0x1763be:0x224,_0x54fc8b:0x17a,_0x2bb4cf:0x1de,_0x4086f6:0x349,_0xb2d555:0x378,_0xea83fd:0x413,_0x2e9420:0x3ad,_0x1f51b9:0x41f,_0x159141:0xe9,_0x123551:0x2c0,_0x51102d:0x1a1,_0x2adad6:0x169,_0x48e537:0x319,_0x3239e7:0x3ac,_0x2cd4ba:0x3a1,_0x5d5e55:0x36d,_0x15f99a:0x2ea,_0x5cb82a:0x262,_0x5d08fb:0x25b,_0x25e7aa:0x244,_0x11874c:0xd1,_0x5a5d84:0x15a,_0x2b4809:0x1e1,_0x69286e:0x25d,_0x197ab0:0x198,_0x254780:0xcf,_0x5d48b0:0x2ae,_0x48ee07:0x282,_0x22bb99:0x3a3,_0x222882:0x2ca,_0x56e146:0x43d,_0x16e137:0x70,_0x46f4a5:0x11d,_0x5d08c9:0x200,_0x47d7c9:0x1be,_0x34ba36:0x1db,_0x37f4fb:0x1af,_0x5f58f5:0xb7,_0x138a9a:0xc9,_0x2f1a27:0x216,_0x3e6254:0xf6,_0x1de2c3:0x173,_0x43018c:0x3b1,_0x4d6748:0xc2,_0x674576:0x198,_0x51c5f7:0x255,_0x288d9a:0x3a2,_0x56d938:0x2dc,_0x34f295:0x223,_0x24f6f8:0x3de,_0x308851:0x34f,_0x45a799:0xf2,_0x48805d:0x1cb,_0x3223e9:0x2e,_0x4a2ec2:0xf5,_0x3c4923:0xb0,_0x69ab23:0x314,_0x5f53ee:0x408,_0x3662ad:0x306,_0xcf55c2:0x12d,_0x4a084b:0x206,_0x3c3e7e:0x2e9,_0x5569c8:0x3ac,_0x51f3fe:0x49d,_0xee1712:0x3e0,_0x21a5ef:0x76,_0x5c964b:0x1e3,_0x1c1255:0x420,_0x71e474:0x3f3,_0x4a1a46:0x203,_0x274256:0x28f,_0x446e23:0x2cf,_0x3722f5:0xc0,_0x1c05d5:0xe8,_0x2f7caa:0x14c,_0x37320d:0x12e,_0x52423e:0x157,_0x122662:0x1c4,_0x4b9254:0x32f,_0x182713:0x2a8,_0x3dfafe:0x49f,_0x2f83b9:0x3f3,_0x1e7da3:0xd9,_0x32f196:0x238,_0x2db9a8:0x1a6,_0x5e6d9b:0x1e6,_0x21cd7c:0x131,_0x19e9c8:0x136,_0x4da34c:0x1cf,_0x4664a9:0x1b7,_0x1dfd65:0xdc},_0x585fb3={_0x458c54:0x495,_0x789e07:0xd7};function _0x5781fd(_0x11d1ae,_0x5977d5,_0x591285,_0x501c1d){return _0x22e674(_0x11d1ae-0x1b7,_0x5977d5-0x19d,_0x501c1d,_0x591285- -0x23e);}switch(_0x2bbbdb){case _0x5781fd(0x182,0x158,0x1ee,0x289):{const _0x50339b=typeof _0x4b5861[_0x34ca9e(0x314,0x25d,0x287,0x330)]==='number'?_0x4b5861['output_index']:0x0,_0x34629e=typeof _0x4b5861[_0x34ca9e(_0x3eaea5._0x74375f,_0x3eaea5._0x20a171,_0x3eaea5._0x1fe77d,0x34c)]===_0x5781fd(_0x3eaea5._0x45bf97,0x140,_0x3eaea5._0x438a9f,_0x3eaea5._0x137541)?_0x4b5861[_0x5781fd(_0x3eaea5._0x4a8e9c,0x96,0x17b,_0x3eaea5._0x2f60b3)]:'';if(_0x34629e[_0x5781fd(_0x3eaea5._0xfc8c6a,0x162,0x10c,0x119)]>0x0){const _0x1b5c1c=this[_0x34ca9e(0x3fb,0x32c,0x313,_0x3eaea5._0x267ec9)][_0x5781fd(_0x3eaea5._0x438c44,0x162,_0x3eaea5._0x156343,_0x3eaea5._0x44a69d)](_0x50339b)??[];return _0x1b5c1c['push'](_0x34629e),this[_0x34ca9e(_0x3eaea5._0x475dd5,0x303,0x45a,0x3af)][_0x34ca9e(_0x3eaea5._0x1228d6,_0x3eaea5._0x412ffa,0x333,0x312)](_0x50339b,_0x1b5c1c),[{'type':_0x34ca9e(_0x3eaea5._0x161085,0x314,_0x3eaea5._0xab6f6e,0x3c3),'index':_0x50339b,'text':_0x34629e}];}break;}case _0x5781fd(0xf0,0x221,0x1c7,_0x3eaea5._0x1718ec):{const _0x44faa2=typeof _0x4b5861[_0x34ca9e(_0x3eaea5._0x2af5de,0x2b7,0x34f,0x330)]===_0x34ca9e(_0x3eaea5._0x47dfc0,_0x3eaea5._0x1232b1,0x3b1,_0x3eaea5._0x52e8b3)?_0x4b5861[_0x34ca9e(0x410,_0x3eaea5._0x4a7e85,0x415,_0x3eaea5._0x145b30)]:void 0x0,_0x5288dc=_0x4b5861[_0x5781fd(_0x3eaea5._0x50c33c,_0x3eaea5._0x187650,_0x3eaea5._0x552944,_0x3eaea5._0x1d517b)];if(_0x5288dc?.['type']===_0x34ca9e(0x3b7,_0x3eaea5._0x1dc3bf,_0x3eaea5._0x24e1aa,0x3b1)&&_0x5288dc[_0x34ca9e(0x2e1,0x332,_0x3eaea5._0x391ae9,_0x3eaea5._0x208b8b)]&&_0x5288dc['name'])return this[_0x34ca9e(_0x3eaea5._0x107158,_0x3eaea5._0x1c63d6,_0x3eaea5._0x3ae179,_0x3eaea5._0xd0ef74)]['set'](_0x5288dc[_0x5781fd(0x8c,_0x3eaea5._0x491a4f,0x14f,_0x3eaea5._0x493ffb)],{'id':_0x5288dc[_0x34ca9e(_0x3eaea5._0xd721ef,0x2e3,0x318,_0x3eaea5._0x208b8b)],'type':_0x34ca9e(_0x3eaea5._0x4fd0a,0x3de,_0x3eaea5._0xecaf24,0x40e),'function':{'name':_0x5288dc[_0x5781fd(0x111,0x6d,0xfd,0x77)],'arguments':''}}),_0x44faa2!==void 0x0&&(this[_0x34ca9e(_0x3eaea5._0x5654da,0x453,_0x3eaea5._0x39d54f,_0x3eaea5._0x4cf35f)][_0x34ca9e(_0x3eaea5._0x55e30b,_0x3eaea5._0x3a0e70,_0x3eaea5._0x39e995,0x312)](_0x44faa2,_0x5288dc[_0x34ca9e(0x2e2,_0x3eaea5._0x77dd42,_0x3eaea5._0x343341,_0x3eaea5._0x559072)]),this[_0x5781fd(_0x3eaea5._0x104dbf,_0x3eaea5._0x2d7ee9,0x13a,_0x3eaea5._0x2707dc)]['set'](_0x5288dc[_0x34ca9e(_0x3eaea5._0x29b864,_0x3eaea5._0x4b1185,_0x3eaea5._0x2e7929,0x320)],_0x44faa2)),[{'type':_0x34ca9e(_0x3eaea5._0x23b15a,0x295,_0x3eaea5._0x3f56b5,_0x3eaea5._0x3c9c9b),'id':_0x5288dc['call_id'],'index':_0x44faa2??0x0,'name':_0x5288dc[_0x5781fd(_0x3eaea5._0x475cf8,0x3a,0xfd,_0x3eaea5._0x1a9362)]}];if(_0x5288dc?.[_0x5781fd(0x1a1,0x104,0x182,_0x3eaea5._0x52be53)]===_0x34ca9e(0x347,_0x3eaea5._0x1e829b,0x348,_0x3eaea5._0xef79e6)&&_0x5288dc['id']){const _0x419edd=this['getOrCreateReasoningItem'](_0x5288dc['id'],_0x44faa2);_0x44faa2!==void 0x0&&this[_0x34ca9e(_0x3eaea5._0x2d95a7,0x315,0x2e2,_0x3eaea5._0x2f9976)][_0x5781fd(_0x3eaea5._0x33d605,_0x3eaea5._0xf0ed50,0x141,_0x3eaea5._0x3da5ba)](_0x44faa2,_0x419edd['id']);}break;}case'response.function_call_arguments.delta':{const _0x2e55f7=typeof _0x4b5861[_0x34ca9e(0x2af,0x3e7,_0x3eaea5._0x170cb7,0x320)]===_0x34ca9e(0x3d9,_0x3eaea5._0x5164d0,0x354,_0x3eaea5._0x3f7a11)?_0x4b5861[_0x5781fd(0x20d,_0x3eaea5._0x23f56,_0x3eaea5._0xad0ddc,0x233)]:typeof _0x4b5861[_0x34ca9e(0x367,0x3d2,0x320,0x330)]===_0x5781fd(0x12c,0x107,0x1e6,0x200)?this['outputIndexToCallId'][_0x34ca9e(0x3a1,0x2ff,_0x3eaea5._0x3db2e0,_0x3eaea5._0x59c540)](_0x4b5861[_0x5781fd(0x11d,_0x3eaea5._0xc893c7,0x15f,_0x3eaea5._0x1a52fc)]):void 0x0,_0x22aca2=typeof _0x4b5861[_0x5781fd(_0x3eaea5._0x23f56,0x1a1,_0x3eaea5._0x1a370c,_0x3eaea5._0x5d4b07)]===_0x5781fd(0x219,0x1a4,_0x3eaea5._0x438a9f,0xb3)?_0x4b5861['delta']:'',_0x2a643c=_0x2e55f7?this[_0x34ca9e(_0x3eaea5._0xbeacf8,_0x3eaea5._0x46f07c,_0x3eaea5._0x4b7fe7,_0x3eaea5._0xd0ef74)][_0x34ca9e(0x2fc,0x401,_0x3eaea5._0x5b6f48,_0x3eaea5._0x6bbbaa)](_0x2e55f7):void 0x0;if(_0x2a643c&&_0x22aca2['length']>0x0)return _0x2a643c[_0x34ca9e(0x447,0x458,0x488,0x40e)][_0x34ca9e(_0x3eaea5._0x334014,0x250,0x355,0x2dc)]+=_0x22aca2,[{'type':_0x5781fd(_0x3eaea5._0x5a2bd3,0x120,0xe0,0xd2),'id':_0x2a643c['id'],'index':this[_0x5781fd(_0x3eaea5._0x401962,0x19f,0x13a,_0x3eaea5._0x100f18)][_0x5781fd(0xef,0x8c,0x161,0x227)](_0x2a643c['id'])??(typeof _0x4b5861['output_index']==='number'?_0x4b5861['output_index']:0x0),'inputDelta':_0x22aca2}];break;}case'response.function_call_arguments.done':{const _0x4c8143=typeof _0x4b5861['call_id']===_0x5781fd(0x17d,_0x3eaea5._0x5534e3,0x198,0x23b)?_0x4b5861[_0x34ca9e(0x36f,0x2b9,_0x3eaea5._0x36ff9c,_0x3eaea5._0x208b8b)]:typeof _0x4b5861[_0x5781fd(_0x3eaea5._0x4f26c1,_0x3eaea5._0x382d31,_0x3eaea5._0x508d31,_0x3eaea5._0x4053fb)]===_0x34ca9e(_0x3eaea5._0x3ddb1a,_0x3eaea5._0x3ae179,_0x3eaea5._0x40ad68,_0x3eaea5._0x4b3b68)?this[_0x5781fd(0x282,0x1ce,_0x3eaea5._0xa1a626,_0x3eaea5._0x1261dc)][_0x5781fd(0xa3,0x1e5,0x161,0x1ca)](_0x4b5861[_0x34ca9e(_0x3eaea5._0x1d1ac4,_0x3eaea5._0x18b3f6,0x323,_0x3eaea5._0x32f424)]):void 0x0,_0x46082e=_0x4c8143?this['toolCalls']['get'](_0x4c8143):void 0x0;_0x46082e&&typeof _0x4b5861[_0x5781fd(0x1a9,_0x3eaea5._0x5eb51b,0x10b,0x27)]===_0x34ca9e(_0x3eaea5._0x348b7d,_0x3eaea5._0x589d2b,_0x3eaea5._0x4847de,0x369)&&(_0x46082e[_0x5781fd(0x1a2,_0x3eaea5._0x30621d,_0x3eaea5._0x1b52a5,_0x3eaea5._0x19e5f0)]['arguments']=_0x4b5861[_0x34ca9e(0x34e,_0x3eaea5._0x12656c,_0x3eaea5._0xa4f36a,_0x3eaea5._0x4303d4)]);break;}case _0x5781fd(_0x3eaea5._0x288b26,_0x3eaea5._0x17422c,_0x3eaea5._0x54274c,0x246):{const _0x29873b=typeof _0x4b5861[_0x5781fd(0x19f,0x206,_0x3eaea5._0x508d31,0x12d)]===_0x5781fd(0x275,_0x3eaea5._0x1768eb,_0x3eaea5._0x5e2e6a,0x273)?_0x4b5861['output_index']:void 0x0,_0x5bf205=_0x4b5861[_0x5781fd(0x2ac,_0x3eaea5._0x38405d,0x204,_0x3eaea5._0x4b79b0)];if(_0x5bf205?.[_0x5781fd(_0x3eaea5._0x1fc8eb,_0x3eaea5._0x529aa0,0x182,0x11b)]===_0x34ca9e(_0x3eaea5._0x4e534e,0x305,0x2d2,_0x3eaea5._0x58cb30)){const _0x46ae23=_0x5bf205[_0x5781fd(0x1e8,_0x3eaea5._0x50d883,0x14f,_0x3eaea5._0x1ec9a9)]??(_0x29873b!==void 0x0?this[_0x34ca9e(0x325,_0x3eaea5._0xeaa9d6,0x3bc,_0x3eaea5._0x225b4b)][_0x5781fd(_0x3eaea5._0xaf5c23,0x10f,0x161,_0x3eaea5._0x2a746e)](_0x29873b):void 0x0),_0x44bd4d=_0x46ae23?this['toolCalls'][_0x34ca9e(0x2f0,0x410,0x321,0x332)](_0x46ae23):void 0x0;_0x44bd4d&&typeof _0x5bf205[_0x34ca9e(0x2ed,0x31d,_0x3eaea5._0x53f5c1,0x2dc)]===_0x34ca9e(_0x3eaea5._0x1e8b44,_0x3eaea5._0x50ccc4,_0x3eaea5._0x5a3657,_0x3eaea5._0x453b00)&&(_0x44bd4d['function'][_0x5781fd(0x188,0xce,_0x3eaea5._0x5656bb,_0x3eaea5._0x5e1d2b)]=_0x5bf205[_0x34ca9e(_0x3eaea5._0x426f4e,_0x3eaea5._0x514a61,_0x3eaea5._0x47b5fa,0x2dc)]);break;}if(_0x5bf205?.[_0x34ca9e(0x270,_0x3eaea5._0x14e0a4,0x32f,_0x3eaea5._0x348b7d)]==='reasoning'&&_0x5bf205['id']){const _0x554d80=this[_0x34ca9e(0x421,0x37f,_0x3eaea5._0x377eee,0x3ac)](_0x5bf205['id'],_0x29873b);typeof _0x5bf205[_0x34ca9e(_0x3eaea5._0x4ca727,0x224,0x2ae,_0x3eaea5._0x19bfaf)]===_0x34ca9e(0x410,0x2f6,_0x3eaea5._0x5cc7f8,_0x3eaea5._0x453b00)&&(_0x554d80[_0x5781fd(_0x3eaea5._0x48d465,_0x3eaea5._0x1ccedd,_0x3eaea5._0x5df7c2,_0x3eaea5._0x14df72)]=_0x5bf205[_0x5781fd(_0x3eaea5._0x1c5eaa,_0x3eaea5._0x37dfb1,0xe5,_0x3eaea5._0x3fb6f4)]);if(Array[_0x34ca9e(0x419,_0x3eaea5._0x39d6b3,_0x3eaea5._0x25d683,_0x3eaea5._0x22ac0e)](_0x5bf205[_0x34ca9e(_0x3eaea5._0x3d5fb1,0x444,_0x3eaea5._0x6e828a,0x428)]))for(let _0x3a3b27=0x0;_0x3a3b27<_0x5bf205[_0x34ca9e(_0x3eaea5._0x4cf35f,0x386,0x450,_0x3eaea5._0x5d0bc5)]['length'];_0x3a3b27+=0x1){const _0x302d15=_0x5bf205[_0x34ca9e(_0x3eaea5._0xc8944a,_0x3eaea5._0x5d9c8d,_0x3eaea5._0x3dc903,_0x3eaea5._0xd1db9d)][_0x3a3b27];_0x302d15['type']===_0x34ca9e(0x215,_0x3eaea5._0x11813f,_0x3eaea5._0x58cb30,0x2cc)&&typeof _0x302d15[_0x5781fd(_0x3eaea5._0x2f9465,0x312,0x22b,0x2a9)]===_0x5781fd(_0x3eaea5._0x275c7b,_0x3eaea5._0x3aebb4,0x198,_0x3eaea5._0x533126)&&_0x554d80[_0x5781fd(0x24d,_0x3eaea5._0x1b3f32,0x1e9,_0x3eaea5._0x3f69d9)]['set'](_0x3a3b27,_0x302d15[_0x34ca9e(_0x3eaea5._0x12f6df,_0x3eaea5._0x5abae4,0x33f,_0x3eaea5._0x356d73)]);}typeof _0x5bf205[_0x34ca9e(_0x3eaea5._0x25eda2,_0x3eaea5._0x4de1d7,_0x3eaea5._0x147751,_0x3eaea5._0x314a6d)]===_0x34ca9e(_0x3eaea5._0xf09648,0x3dd,_0x3eaea5._0x202e35,0x369)&&_0x554d80[_0x5781fd(_0x3eaea5._0x4238c7,0x17b,_0x3eaea5._0x151998,_0x3eaea5._0x3da5ba)][_0x5781fd(0x1a5,_0x3eaea5._0x23e47f,0x141,0x21c)](0x0,_0x5bf205[_0x34ca9e(_0x3eaea5._0x406bda,_0x3eaea5._0x2efb1d,0x4c4,0x3fc)]);}break;}case _0x34ca9e(_0x3eaea5._0x3ae179,0x2d8,_0x3eaea5._0x39e995,0x3a9):{const _0x2a8b33=typeof _0x4b5861[_0x5781fd(_0x3eaea5._0x50c33c,_0x3eaea5._0x5abb3e,_0x3eaea5._0x1a370c,0x163)]==='string'?_0x4b5861['delta']:'',_0x2f6b5c=typeof _0x4b5861[_0x5781fd(_0x3eaea5._0x116dc7,_0x3eaea5._0x4db730,0xb1,0x91)]==='string'?_0x4b5861[_0x5781fd(_0x3eaea5._0x3d04ff,0xee,0xb1,_0x3eaea5._0x16e629)]:typeof _0x4b5861[_0x5781fd(0x17a,_0x3eaea5._0x35cfb9,0x15f,0x1db)]===_0x5781fd(0x1dd,_0x3eaea5._0x294c42,_0x3eaea5._0x568511,0x24f)?this['outputIndexToReasoningId'][_0x5781fd(0xb0,_0x3eaea5._0x1872fa,0x161,_0x3eaea5._0x365328)](_0x4b5861[_0x5781fd(0x12b,0xff,0x15f,0x188)]):void 0x0,_0x3c0a70=typeof _0x4b5861[_0x5781fd(0x13a,0x168,0x15f,0x154)]===_0x34ca9e(_0x3eaea5._0x3b5e73,0x328,0x397,0x3b7)?_0x4b5861['output_index']:0x0,_0xa7d6da=typeof _0x4b5861[_0x34ca9e(0x390,0x31c,0x313,0x378)]==='number'?_0x4b5861[_0x34ca9e(_0x3eaea5._0x53f5c1,0x3f0,0x2ce,_0x3eaea5._0x48583d)]:0x0;if(_0x2f6b5c&&_0x2a8b33[_0x34ca9e(0x32c,_0x3eaea5._0x241015,_0x3eaea5._0x3211fe,_0x3eaea5._0x1a45be)]>0x0){const _0x1099f5=this[_0x5781fd(0x104,0x1f8,0x1db,0x298)](_0x2f6b5c,_0x3c0a70);_0x1099f5[_0x5781fd(0x22e,_0x3eaea5._0x11e628,0x1e9,0x179)][_0x5781fd(_0x3eaea5._0x59b23a,0xf3,_0x3eaea5._0x1f266e,0x1a1)](_0xa7d6da,''+(_0x1099f5[_0x34ca9e(_0x3eaea5._0x142e07,_0x3eaea5._0x274223,0x482,0x3ba)][_0x34ca9e(_0x3eaea5._0x2bae4b,0x3df,0x3a9,_0x3eaea5._0x410e8b)](_0xa7d6da)??'')+_0x2a8b33);if(isUserVisibleReasoning(this[_0x5781fd(_0x3eaea5._0xa12986,0xc1,0x173,_0x3eaea5._0xbe4293)]))return[{'type':_0x34ca9e(0x2c0,0x242,0x2c7,0x2d9),'delta':_0x2a8b33,'itemId':_0x2f6b5c,'outputIndex':_0x3c0a70,'summaryIndex':_0xa7d6da}];}break;}case _0x5781fd(0x20d,_0x3eaea5._0x403f56,_0x3eaea5._0x9e7267,0x31b):{const _0x394563=typeof _0x4b5861[_0x5781fd(0x178,0x4d,_0x3eaea5._0x4813d9,0x173)]===_0x34ca9e(_0x3eaea5._0x47d3ea,0x3ac,0x3ce,0x369)?_0x4b5861['item_id']:typeof _0x4b5861[_0x5781fd(0x1da,_0x3eaea5._0x42cbb1,_0x3eaea5._0x508d31,_0x3eaea5._0x285092)]===_0x34ca9e(0x477,0x354,_0x3eaea5._0x378082,0x3b7)?this[_0x5781fd(0x198,_0x3eaea5._0x16b4b1,_0x3eaea5._0x39c9d9,_0x3eaea5._0x25b93a)][_0x5781fd(_0x3eaea5._0xda2927,_0x3eaea5._0x5df7c2,_0x3eaea5._0x23a847,0xfa)](_0x4b5861[_0x34ca9e(_0x3eaea5._0xc4eec9,0x2c0,0x304,0x330)]):void 0x0,_0x152221=typeof _0x4b5861[_0x34ca9e(0x3b2,0x26c,0x29f,_0x3eaea5._0x145b30)]===_0x34ca9e(_0x3eaea5._0x2891c1,_0x3eaea5._0x5be483,_0x3eaea5._0x202e35,_0x3eaea5._0x52e8b3)?_0x4b5861[_0x5781fd(_0x3eaea5._0x1763be,_0x3eaea5._0x54fc8b,_0x3eaea5._0x508d31,_0x3eaea5._0x2bb4cf)]:0x0,_0x290116=typeof _0x4b5861[_0x34ca9e(0x35e,_0x3eaea5._0x14e0a4,_0x3eaea5._0x4086f6,_0x3eaea5._0xb2d555)]===_0x34ca9e(_0x3eaea5._0xea83fd,_0x3eaea5._0x2e9420,_0x3eaea5._0x1f51b9,_0x3eaea5._0x4b3b68)?_0x4b5861[_0x5781fd(0x136,_0x3eaea5._0x159141,0x1a7,0xcb)]:0x0,_0x5df104=typeof _0x4b5861[_0x5781fd(_0x3eaea5._0x123551,_0x3eaea5._0x51102d,0x22b,_0x3eaea5._0x2adad6)]==='string'?_0x4b5861['text']:'';_0x394563&&this[_0x34ca9e(0x3d9,_0x3eaea5._0x48e537,0x321,0x3ac)](_0x394563,_0x152221)[_0x34ca9e(_0x3eaea5._0x3239e7,_0x3eaea5._0x2cd4ba,_0x3eaea5._0x5d5e55,0x3ba)][_0x34ca9e(0x2d6,_0x3eaea5._0x15f99a,0x315,0x312)](_0x290116,_0x5df104);break;}case _0x5781fd(_0x3eaea5._0x514a61,_0x3eaea5._0x5cb82a,_0x3eaea5._0x5d08fb,_0x3eaea5._0x25e7aa):{const _0x300f1f=typeof _0x4b5861[_0x5781fd(0xe4,_0x3eaea5._0x11874c,0x17b,_0x3eaea5._0x5a5d84)]===_0x5781fd(_0x3eaea5._0x2b4809,_0x3eaea5._0x69286e,_0x3eaea5._0x197ab0,_0x3eaea5._0x254780)?_0x4b5861['delta']:'',_0x2adac6=typeof _0x4b5861['item_id']==='string'?_0x4b5861[_0x34ca9e(0x23a,_0x3eaea5._0x5d48b0,0x23c,_0x3eaea5._0x48ee07)]:typeof _0x4b5861['output_index']==='number'?this[_0x34ca9e(_0x3eaea5._0x1e8b44,0x2b1,0x342,_0x3eaea5._0x2f9976)]['get'](_0x4b5861[_0x34ca9e(0x2c7,_0x3eaea5._0x22bb99,0x28e,0x330)]):void 0x0,_0x4c947e=typeof _0x4b5861[_0x34ca9e(_0x3eaea5._0x222882,0x35d,0x391,0x330)]===_0x34ca9e(0x471,0x475,_0x3eaea5._0x56e146,0x3b7)?_0x4b5861['output_index']:0x0,_0x15f7be=typeof _0x4b5861[_0x5781fd(0xc8,0xd1,_0x3eaea5._0x275c7b,_0x3eaea5._0x16e137)]===_0x5781fd(_0x3eaea5._0x46f4a5,_0x3eaea5._0x5d08c9,0x1e6,0x1ec)?_0x4b5861[_0x34ca9e(0x393,0x365,0x296,0x2c6)]:0x0;if(_0x2adac6&&_0x300f1f['length']>0x0){const _0x11b955=this[_0x5781fd(0x1a4,_0x3eaea5._0x47d7c9,_0x3eaea5._0x34ba36,0x26f)](_0x2adac6,_0x4c947e);_0x11b955[_0x5781fd(0x1e2,_0x3eaea5._0x37f4fb,_0x3eaea5._0x151998,_0x3eaea5._0x5f58f5)][_0x5781fd(_0x3eaea5._0x138a9a,0x1ad,_0x3eaea5._0x1f266e,_0x3eaea5._0x2f1a27)](_0x15f7be,''+(_0x11b955[_0x5781fd(0x1b8,0x8f,0x11b,_0x3eaea5._0x3e6254)][_0x5781fd(_0x3eaea5._0x288b26,0x19b,0x161,0x10d)](_0x15f7be)??'')+_0x300f1f);if(isUserVisibleReasoning(this[_0x5781fd(0x17f,0x103,_0x3eaea5._0x1de2c3,0x244)]))return[{'type':'openai_reasoning_delta','contentIndex':_0x15f7be,'delta':_0x300f1f,'itemId':_0x2adac6,'outputIndex':_0x4c947e}];}break;}case _0x34ca9e(_0x3eaea5._0x43018c,0x346,0x3e2,0x36b):{const _0x2c6ddf=typeof _0x4b5861['item_id']===_0x5781fd(0x13e,_0x3eaea5._0x4d6748,_0x3eaea5._0x674576,0x1e8)?_0x4b5861[_0x5781fd(0x64,0x83,0xb1,0xe3)]:typeof _0x4b5861[_0x34ca9e(_0x3eaea5._0x51c5f7,0x2cd,0x34c,0x330)]===_0x34ca9e(0x3c6,_0x3eaea5._0x288d9a,_0x3eaea5._0x56d938,0x3b7)?this[_0x5781fd(0x7a,_0x3eaea5._0x34f295,0x145,0x152)][_0x34ca9e(_0x3eaea5._0x24f6f8,0x327,0x331,0x332)](_0x4b5861[_0x34ca9e(0x2e7,_0x3eaea5._0x308851,0x28f,0x330)]):void 0x0,_0x424f89=typeof _0x4b5861[_0x5781fd(_0x3eaea5._0x45a799,0xd8,0x15f,_0x3eaea5._0x37f4fb)]==='number'?_0x4b5861[_0x5781fd(0x86,0x1f0,_0x3eaea5._0x508d31,_0x3eaea5._0x48805d)]:0x0,_0xb9e082=typeof _0x4b5861[_0x5781fd(_0x3eaea5._0x3223e9,_0x3eaea5._0x493ffb,_0x3eaea5._0x4a2ec2,_0x3eaea5._0x3c4923)]===_0x34ca9e(_0x3eaea5._0x69ab23,_0x3eaea5._0x5f53ee,_0x3eaea5._0x3662ad,_0x3eaea5._0x4b3b68)?_0x4b5861['content_index']:0x0,_0x5c124d=typeof _0x4b5861['text']===_0x5781fd(_0x3eaea5._0xcf55c2,_0x3eaea5._0x514a61,0x198,0x1ca)?_0x4b5861[_0x5781fd(0x2d6,_0x3eaea5._0x1261dc,0x22b,_0x3eaea5._0x4a084b)]:'';_0x2c6ddf&&this[_0x34ca9e(_0x3eaea5._0x3c3e7e,0x2d9,0x2de,_0x3eaea5._0x5569c8)](_0x2c6ddf,_0x424f89)['textByIndex']['set'](_0xb9e082,_0x5c124d);break;}case _0x34ca9e(_0x3eaea5._0x51f3fe,0x387,0x376,0x417):{this[_0x34ca9e(0x428,_0x3eaea5._0x36ff9c,0x382,_0x3eaea5._0xee1712)]=_0x4b5861[_0x5781fd(0x17b,_0x3eaea5._0x21a5ef,0x128,_0x3eaea5._0x5c964b)];break;}case'response.failed':{const _0x9950c=_0x4b5861['response'];throw new ProviderStreamEventError(_0x9950c?.['error']?.['message']??_0x34ca9e(0x3ac,0x42b,_0x3eaea5._0x1c1255,_0x3eaea5._0x71e474),{'code':_0x9950c?.[_0x34ca9e(_0x3eaea5._0x4a1a46,_0x3eaea5._0x274256,0x223,_0x3eaea5._0x446e23)]?.[_0x5781fd(_0x3eaea5._0x3722f5,0xac,_0x3eaea5._0x1c05d5,_0x3eaea5._0x2f7caa)],'retryable':!![]});}case _0x5781fd(_0x3eaea5._0x37320d,_0x3eaea5._0x52423e,0xfe,0x4b):{const _0x4ef699=_0x4b5861['error'];throw new ProviderStreamEventError(_0x4ef699?.[_0x34ca9e(0x224,_0x3eaea5._0x122662,_0x3eaea5._0x4b9254,_0x3eaea5._0x182713)]??_0x34ca9e(0x31e,0x357,_0x3eaea5._0x3dfafe,_0x3eaea5._0x2f83b9),{'code':_0x4ef699?.['code'],'retryable':!![],'status':typeof _0x4b5861[_0x5781fd(0x127,_0x3eaea5._0x1e7da3,0x1b7,_0x3eaea5._0x32f196)]===_0x5781fd(_0x3eaea5._0x2db9a8,_0x3eaea5._0x294c42,_0x3eaea5._0x5e6d9b,_0x3eaea5._0x21cd7c)?_0x4b5861[_0x5781fd(_0x3eaea5._0x19e9c8,_0x3eaea5._0x4da34c,_0x3eaea5._0x4664a9,_0x3eaea5._0x1dfd65)]:void 0x0});}}function _0x34ca9e(_0x3d07cf,_0x3a762d,_0xfcfdb7,_0xbe9c7d){return _0x532739(_0x3d07cf,_0xbe9c7d-_0x585fb3._0x458c54,_0xfcfdb7-0x86,_0xbe9c7d-_0x585fb3._0x789e07);}return[];}[_0x532739(-0x16d,-0x1d6,-0x285,-0x155)](){const _0x46de80={_0x4e0929:0x494,_0x4ca041:0x55e,_0x24733e:0x357,_0x4c5aa5:0x329,_0x21d1d3:0x2c7,_0x4fca20:0x33d,_0x1ae9c4:0x332,_0x38a46e:0x3bd,_0x45373d:0x409,_0x1ea54d:0x3e4,_0x1eb5e6:0x3ca,_0x241d20:0x448,_0x6c54ae:0x3ff,_0x457f10:0x480,_0x21af56:0x304,_0x2b0548:0x393,_0x2375d0:0x374,_0x1009f4:0x319,_0x3a2b87:0x3e6,_0x11b1eb:0x34f,_0x2fc816:0x39e,_0x4bdc14:0x3c0,_0x5a2589:0x56a,_0x4e4e92:0x4c2,_0x275e01:0x4dc,_0x11bdef:0x4b4,_0x56837a:0x36a,_0x2d75fb:0x4af,_0x242177:0x577,_0x17baf7:0x357,_0x35d564:0x272,_0x2a00ee:0x366,_0x20e2bb:0x37b,_0x427092:0x32e,_0x3d755d:0x30c,_0x1b2f82:0x3d8,_0x4a0cc5:0x37f,_0x3fdafb:0x41e,_0x2f84fd:0x352,_0x454623:0x389,_0x123b75:0x440,_0xa5bd9f:0x44c,_0x57d325:0x473,_0xf443cd:0x363,_0x448240:0x329,_0x58b165:0x30f,_0x5c72fd:0x2f7,_0x410b27:0x3ec,_0x3c3833:0x406,_0x5a6ea4:0x2ff,_0xfe7b15:0x400,_0x4f0da7:0x311,_0xa75d2e:0x3f0,_0x3385c5:0x381,_0x184543:0x43c,_0x615153:0x3c2,_0x1566e6:0x48d,_0xb9b739:0x36b,_0x7111cd:0x2e9,_0x5680f2:0x43a,_0x48d5dc:0x35d,_0x5a6e99:0x391},_0x4d0a2c={_0x2a6406:0x532,_0x304762:0x73},_0x34914e={_0x102339:0x51},_0x4e3db9=[];for(const [_0x5d8a1a,_0x54758e]of this[_0x1bb382(0x3e2,0x4eb,_0x46de80._0x4e0929,_0x46de80._0x4ca041)][_0x2b7bbb(_0x46de80._0x24733e,0x2a0,0x2d2,0x365)]()){const _0x228651=_0x54758e[_0x2b7bbb(_0x46de80._0x4c5aa5,_0x46de80._0x21d1d3,_0x46de80._0x4fca20,_0x46de80._0x1ae9c4)]('');if(_0x228651[_0x1bb382(0x489,0x3c8,0x3c2,_0x46de80._0x38a46e)]===0x0)continue;_0x4e3db9['push']({'index':_0x5d8a1a,'item':{'type':'message','role':_0x2b7bbb(0x3f6,0x360,_0x46de80._0x45373d,_0x46de80._0x1ea54d),'content':[{'type':_0x1bb382(_0x46de80._0x38a46e,0x4ae,0x436,_0x46de80._0x1eb5e6),'text':_0x228651}]}});}for(const _0x983517 of this['reasoningItems']['values']()){_0x4e3db9['push']({'index':_0x983517[_0x1bb382(_0x46de80._0x241d20,0x32e,_0x46de80._0x6c54ae,_0x46de80._0x457f10)]??_0x4e3db9[_0x1bb382(0x369,0x3fb,0x3c2,_0x46de80._0x21af56)],'item':{'type':_0x2b7bbb(_0x46de80._0x2b0548,_0x46de80._0x2375d0,0x3a6,_0x46de80._0x1009f4),'id':_0x983517['id'],..._0x983517[_0x1bb382(0x30a,0x42b,_0x46de80._0x3a2b87,_0x46de80._0x11b1eb)]?{'encrypted_content':_0x983517[_0x2b7bbb(_0x46de80._0x2fc816,0x46d,0x2f1,_0x46de80._0x4bdc14)]}:{},..._0x983517['summaryByIndex'][_0x1bb382(_0x46de80._0x5a2589,_0x46de80._0x4e4e92,_0x46de80._0x275e01,_0x46de80._0x11bdef)]>0x0?{'summary':Array[_0x2b7bbb(0x334,0x357,0x361,_0x46de80._0x56837a)](_0x983517[_0x1bb382(_0x46de80._0x2d75fb,_0x46de80._0x242177,0x49f,0x586)][_0x2b7bbb(_0x46de80._0x17baf7,0x2e8,0x3f3,_0x46de80._0x35d564)]())[_0x1bb382(0x31d,0x2e4,_0x46de80._0x2a00ee,_0x46de80._0x20e2bb)]((_0x1547ec,_0xfdb27)=>_0x1547ec[0x0]-_0xfdb27[0x0])[_0x1bb382(_0x46de80._0x427092,_0x46de80._0x3d755d,_0x46de80._0x1b2f82,0x443)](([,_0x16422e])=>{function _0x1df0bd(_0x25ae4a,_0x224a43,_0x44f581,_0x5cd754){return _0x2b7bbb(_0x44f581- -0x31a,_0x224a43-0x1db,_0x224a43,_0x5cd754-0x1cd);}return{'type':_0x1df0bd(-_0x34914e._0x102339,0x122,0x4f,0x105),'text':_0x16422e};})}:{},..._0x983517[_0x2b7bbb(0x389,_0x46de80._0x4a0cc5,0x3e7,0x306)][_0x2b7bbb(0x494,0x513,0x487,_0x46de80._0x3fdafb)]>0x0?{'text':Array[_0x1bb382(0x2e2,0x34d,0x37c,_0x46de80._0x2f84fd)](_0x983517[_0x2b7bbb(_0x46de80._0x454623,0x3b4,_0x46de80._0x123b75,_0x46de80._0xa5bd9f)][_0x1bb382(0x431,0x3a3,0x39f,_0x46de80._0x57d325)]())[_0x1bb382(0x2f4,0x426,_0x46de80._0x2a00ee,_0x46de80._0xf443cd)]((_0x492393,_0x5345bf)=>_0x492393[0x0]-_0x5345bf[0x0])['map'](([,_0x998b95])=>_0x998b95)[_0x2b7bbb(_0x46de80._0x448240,_0x46de80._0x58b165,_0x46de80._0x5c72fd,_0x46de80._0x410b27)]('')}:{}}});}function _0x2b7bbb(_0x1c77d4,_0x48c091,_0x1c4f94,_0x4c20a7){return _0x532739(_0x1c4f94,_0x1c77d4-_0x4d0a2c._0x2a6406,_0x1c4f94-0xaa,_0x4c20a7-_0x4d0a2c._0x304762);}function _0x1bb382(_0x20e25d,_0x3931c9,_0x4e6f7b,_0x38822f){return _0x22e674(_0x20e25d-0x7a,_0x3931c9-0x11c,_0x38822f,_0x4e6f7b-0x78);}for(const _0x134124 of this[_0x2b7bbb(0x3c2,_0x46de80._0x3c3833,0x386,0x3df)][_0x2b7bbb(0x3c1,_0x46de80._0x5a6ea4,0x318,0x38a)]()){_0x4e3db9['push']({'index':this[_0x1bb382(_0x46de80._0xfe7b15,_0x46de80._0x4f0da7,_0x46de80._0xa75d2e,_0x46de80._0x3385c5)]['get'](_0x134124['id'])??_0x4e3db9[_0x1bb382(_0x46de80._0x184543,0x382,_0x46de80._0x615153,0x392)],'item':{'type':_0x1bb382(0x508,_0x46de80._0x1566e6,0x496,0x51e),'call_id':_0x134124['id'],'name':_0x134124['function'][_0x2b7bbb(_0x46de80._0xb9b739,_0x46de80._0x7111cd,0x29a,0x305)],'arguments':_0x134124['function'][_0x2b7bbb(0x379,0x3f7,_0x46de80._0x5680f2,0x45b)]}});}return _0x4e3db9[_0x1bb382(0x41a,0x425,0x366,_0x46de80._0x48d5dc)]((_0x22e790,_0x12875c)=>_0x22e790[_0x2b7bbb(0x443,0x3b8,0x3ef,0x36b)]-_0x12875c['index'])[_0x1bb382(0x42c,_0x46de80._0x5a6e99,0x3d8,0x417)](_0xbae92b=>_0xbae92b[_0x1bb382(0x489,0x4ab,0x4ba,0x443)]);}[_0x532739(-0x187,-0xe9,-0x194,-0xfb)](_0x13f941,_0xad807c){const _0x4650c4={_0x3703aa:0x24a,_0xb86306:0x1c1,_0xc48989:0x1b5,_0x30fa1d:0x2fa,_0x2c342f:0x430,_0x7e4f35:0x2d7,_0xf9ac3f:0x206,_0xe8babc:0x391,_0x2de6d6:0x133},_0x5a7c05={_0x29a53a:0x26},_0x1832b5=this[_0x3477c1(0x356,0x2e2,0x3c4,_0x4650c4._0x3703aa)]['get'](_0x13f941);if(_0x1832b5)return _0xad807c!==void 0x0&&(_0x1832b5[_0x3abcca(-0x175,-0x12f,-_0x4650c4._0xb86306,-_0x4650c4._0xc48989)]=_0xad807c,this[_0x3477c1(_0x4650c4._0x30fa1d,0x36f,_0x4650c4._0x2c342f,0x327)]['set'](_0xad807c,_0x13f941)),_0x1832b5;const _0x23fe9c={'id':_0x13f941,'outputIndex':_0xad807c,'summaryByIndex':new Map(),'textByIndex':new Map()};function _0x3abcca(_0x38a219,_0x195e99,_0x379dfd,_0x459c04){return _0x22e674(_0x38a219-0x165,_0x195e99-0x1c0,_0x38a219,_0x195e99- -0x4b6);}this[_0x3477c1(_0x4650c4._0x7e4f35,0x2e2,_0x4650c4._0xf9ac3f,_0x4650c4._0xe8babc)]['set'](_0x13f941,_0x23fe9c);function _0x3477c1(_0x4562f3,_0x460141,_0x11fc8b,_0x12fac6){return _0x22e674(_0x4562f3-_0x5a7c05._0x29a53a,_0x460141-0xf3,_0x4562f3,_0x460141- -0x14);}return _0xad807c!==void 0x0&&this[_0x3abcca(-0x117,-_0x4650c4._0x2de6d6,-0xc5,-0x219)][_0x3477c1(0x3c8,0x36b,0x3b8,0x2aa)](_0xad807c,_0x13f941),_0x23fe9c;}};function createOpenAiResponsesStreamParser(_0x37fb0c){return new OpenAiResponsesStreamParser(_0x37fb0c);}function createOpenAiSurfaces(_0x413609={}){const _0x15bbbc={_0x308c49:0x505,_0x3ea7a1:0x4e0,_0x6c6609:0x4cb,_0xa8bca8:0x5b8,_0x1fde86:0x5e0,_0x2d629f:0x5bc,_0x1ec5c5:0x578,_0x224567:0x4c3,_0x28962b:0x581,_0x55d685:0x4b2,_0x5bda11:0x4b1,_0x177469:0x48a,_0x122a27:0x488,_0x2d6300:0x52a,_0x177a01:0x531},_0x4fa539={_0x428f9b:0x3ff,_0x22903f:0x3c3},_0x164382={_0x4a7722:0x4b,_0x966686:0x172,_0x5a9e33:0x1e0},_0x23cbbe={_0x173145:0x156},_0x1f3d02={_0xf7f814:0x1db,_0x215c89:0x14e,_0x4702b6:0x163};function _0x13684f(_0x48d2ae,_0x3d3949,_0x2642fa,_0x32757a){return _0x22e674(_0x48d2ae-_0x1f3d02._0xf7f814,_0x3d3949-_0x1f3d02._0x215c89,_0x2642fa,_0x3d3949-_0x1f3d02._0x4702b6);}const _0xb15045=_0x413609[_0x13684f(_0x15bbbc._0x308c49,0x501,_0x15bbbc._0x3ea7a1,_0x15bbbc._0x6c6609)]??_0x10b350(0x5da,0x56d,0x596,_0x15bbbc._0xa8bca8);function _0x10b350(_0x31db98,_0x21e4b6,_0x47f2ff,_0x2442b3){return _0x22e674(_0x31db98-_0x23cbbe._0x173145,_0x21e4b6-0xe2,_0x21e4b6,_0x47f2ff-0x13f);}const _0xc05596=_0x413609[_0x13684f(_0x15bbbc._0x1fde86,_0x15bbbc._0x2d629f,0x5dc,_0x15bbbc._0x1ec5c5)]??'/responses';return[{'id':OPENAI_CHAT_COMPLETIONS_SURFACE,'transport':_0x13684f(0x46a,0x4b3,_0x15bbbc._0x224567,0x483),'createRequest'(_0x4ce27c){return{'accept':'application/json','body':createChatRequestBody(_0x4ce27c,![]),'path':_0xb15045};},'parseResponse'(_0x39ae86){return parseChatCompletionResponse(_0x39ae86);}},{'id':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,'transport':_0x10b350(_0x15bbbc._0x28962b,_0x15bbbc._0x55d685,_0x15bbbc._0x5bda11,0x4b8),'createRequest'(_0x56314b){return{'accept':'text/event-stream','body':createChatRequestBody(_0x56314b,!![]),'path':_0xb15045};},'createStreamParser'(_0x2cfb0d){return new OpenAiChatCompletionsStreamParser(_0x2cfb0d);}},{'id':OPENAI_RESPONSES_SURFACE,'transport':_0x10b350(_0x15bbbc._0x177469,_0x15bbbc._0x122a27,0x48f,0x48f),'createRequest'(_0x5788ef){return{'accept':'application/json','body':createResponsesRequestBody(_0x5788ef,![]),'path':_0xc05596};},'parseResponse'(_0x5acf39,_0x4213a5){return parseResponsesResponse(_0x5acf39,_0x4213a5);}},{'id':OPENAI_RESPONSES_STREAM_SURFACE,'transport':'http-sse','createRequest'(_0x39e119){function _0xeeedea(_0x11a622,_0x4aa3e3,_0x5acc35,_0x307ac9){return _0x13684f(_0x11a622-_0x164382._0x4a7722,_0x5acc35- -_0x164382._0x966686,_0x307ac9,_0x307ac9-_0x164382._0x5a9e33);}return{'accept':_0xeeedea(0x3d5,_0x4fa539._0x428f9b,0x3ca,_0x4fa539._0x22903f),'body':createResponsesRequestBody(_0x39e119,!![]),'path':_0xc05596};},'createStreamParser'(_0x300e83){return new OpenAiResponsesStreamParser(_0x300e83);}},{'id':OPENAI_RESPONSES_WEBSOCKET_SURFACE,'transport':_0x13684f(0x582,_0x15bbbc._0x2d6300,0x4bc,_0x15bbbc._0x177a01),'createRequest'(_0x66bc1e){return{'initialEvent':createOpenAiResponsesWebSocketEvent(_0x66bc1e),'path':_0xc05596};},'createStreamParser'(_0x40ba01){return createOpenAiResponsesStreamParser(_0x40ba01);}}];}var OpenAiProviderAdapter=class{[_0x22e674(0x379,0x46d,0x2fe,0x3b7)];constructor(_0x4cad14){const _0x5f42f0={_0x207271:0x222,_0x17d6e8:0xee};function _0x379afb(_0x2c697f,_0x3905c2,_0x5f43ea,_0x34d505){return _0x532739(_0x5f43ea,_0x2c697f-_0x5f42f0._0x207271,_0x5f43ea-0x161,_0x34d505-_0x5f42f0._0x17d6e8);}this[_0x379afb(0xd7,0x77,0x28,0x178)]=_0x4cad14;}[_0x22e674(0x354,0x327,0x310,0x307)](){return new Error('OpenAiModel\x20requires\x20an\x20apiKey\x20or\x20providerSessionResolver');}async[_0x22e674(0x514,0x4b0,0x45c,0x49b)](_0x4998ca,_0x336c17){const _0x1858ef={_0x5dfb31:0x93,_0xdb27b9:0x89,_0x3626fb:0xf2,_0x163ea9:0x298,_0xd4628f:0x26b,_0xa22f13:0x1ae,_0x30bf00:0x257,_0x95ee56:0x193,_0x1aefe6:0x12a,_0x56c2d4:0x2ac,_0x52b717:0x21b,_0x14df48:0xaa,_0x47164f:0xfa,_0x5ee0cd:0x62,_0x369f75:0xd2,_0x526e7c:0x1a4,_0x48281f:0x2e5,_0x5f48d4:0x249,_0x133d25:0x223,_0xf3921a:0x1ca,_0x5e00ca:0x139,_0x51e7e3:0x29d,_0x72f806:0x18c,_0x572b0d:0x16c,_0x5ac769:0x16b,_0x37cae5:0x109,_0x2f6685:0x1ba,_0x582d6b:0x1f4,_0x20ef8b:0x133,_0x35e2bf:0xf2,_0x12cea6:0x7d,_0x4b19bf:0x157,_0x5e0f60:0x1cc},_0x1a7660={_0x32d5bf:0x70},_0x99cea8={_0x483bac:0x2cd,_0x23e4f2:0x28};function _0x5dc262(_0x314c17,_0x55f936,_0x2ad116,_0x2dfe82){return _0x532739(_0x314c17,_0x2ad116-_0x99cea8._0x483bac,_0x2ad116-_0x99cea8._0x23e4f2,_0x2dfe82-0x41);}function _0x24ddc3(_0x1995ab,_0x188b74,_0x2fc311,_0x359061){return _0x532739(_0x188b74,_0x359061-0x2bd,_0x2fc311-0x5f,_0x359061-_0x1a7660._0x32d5bf);}const _0x18c4b1=new Headers();_0x18c4b1['set']('accept',_0x336c17[_0x5dc262(_0x1858ef._0x5dfb31,_0x1858ef._0xdb27b9,0x11d,_0x1858ef._0x3626fb)]),_0x18c4b1['set']('authorization',_0x24ddc3(0x34d,0x2bf,_0x1858ef._0x163ea9,_0x1858ef._0xd4628f)+_0x4998ca['credential'][_0x5dc262(_0x1858ef._0xa22f13,_0x1858ef._0x30bf00,_0x1858ef._0x95ee56,0x203)]);_0x336c17[_0x24ddc3(_0x1858ef._0x1aefe6,_0x1858ef._0x56c2d4,0x15f,0x207)]!==![]&&_0x18c4b1[_0x5dc262(0xe3,_0x1858ef._0x52b717,0x14a,0xaa)](_0x24ddc3(_0x1858ef._0x14df48,_0x1858ef._0x47164f,_0x1858ef._0x5ee0cd,_0x1858ef._0x369f75),_0x5dc262(_0x1858ef._0x526e7c,_0x1858ef._0x48281f,_0x1858ef._0x5f48d4,_0x1858ef._0x133d25));const _0xb9d390=await this[_0x24ddc3(0x1b8,_0x1858ef._0xf3921a,_0x1858ef._0x5e00ca,0x172)]?.({'body':_0x4998ca[_0x5dc262(0x2d5,_0x1858ef._0x51e7e3,0x206,0x263)],'credential':_0x4998ca[_0x5dc262(0x117,0x151,_0x1858ef._0x72f806,0x117)],'request':_0x4998ca[_0x24ddc3(0x233,0x1f9,0xed,_0x1858ef._0x572b0d)],'session':_0x4998ca[_0x24ddc3(0x21f,_0x1858ef._0x5ac769,_0x1858ef._0x37cae5,_0x1858ef._0x2f6685)],'stream':_0x4998ca[_0x5dc262(0x1a4,0x151,_0x1858ef._0x582d6b,0x1c6)]});for(const [_0x4466f6,_0x294362]of Object[_0x5dc262(0x71,_0x1858ef._0x20ef8b,_0x1858ef._0x35e2bf,_0x1858ef._0x12cea6)](_0xb9d390??{})){_0x18c4b1[_0x5dc262(_0x1858ef._0x4b19bf,0x146,0x14a,_0x1858ef._0x5e0f60)](_0x4466f6,_0x294362);}return _0x18c4b1;}[_0x532739(-0x177,-0x9d,0x7,-0x86)](_0xbdd84e){return _0xbdd84e;}[_0x532739(-0x126,-0xb0,-0x64,0x4)](_0x5ce4f3,_0x3f9b77){return resolveSessionBaseUrl(_0x5ce4f3,_0x3f9b77);}[_0x22e674(0x430,0x3b2,0x44b,0x3cf)](_0x4cbc59,_0x37e40d){return resolveApiCredential(_0x4cbc59,_0x37e40d);}async[_0x22e674(0x271,0x28b,0x277,0x300)](_0x261baf){return await createOpenAiApiError(_0x261baf);}},OpenAiModel=class _OpenAiModel extends RoutedModel{static [_0x532739(-0x138,-0x13d,-0x172,-0x16f)]=new Map();[_0x532739(-0x206,-0x164,-0x1e4,-0xe4)];['responsesPath'];constructor(_0x37ed2b={}){const _0x1984f3={_0x136503:0x72a,_0x1e03da:0xc7,_0x16db8f:0x17b,_0x35025c:0x582,_0x8ccee7:0x58f,_0x4078d9:0x537,_0x286204:0x64e,_0x3be97c:0x104,_0x5dc775:0x1df,_0x39cc5c:0x519,_0x5f2995:0x51a,_0x3b1a25:0x56f,_0xd976e1:0x5d7,_0x4a9b47:0x5cd,_0x289957:0x642,_0x4b3000:0x719,_0x1bdb0a:0x14e,_0x300ff4:0x224,_0x4270aa:0x578,_0xd1ca4a:0x4b1,_0x4c7937:0x56c,_0x35da4b:0x4df,_0x387add:0xd4,_0x13a1ad:0x77,_0x252ed3:0x5b0,_0x33b4fd:0x643,_0x4af7bb:0x577,_0x4c36f7:0x5d5,_0x248df4:0x13c,_0x270597:0x71,_0x242288:0x110,_0x4df0b2:0x1c1,_0x5d4d7b:0x116},_0x38870b={_0x2be592:0x15},_0x189d04={_0xd2bd04:0x6b7},_0x1a28ca=_0x37ed2b[_0x2c0fbf(0x65e,0x580,0x651,_0x1984f3._0x136503)]??_0x324445(_0x1984f3._0x1e03da,0x1c,_0x1984f3._0x16db8f,0xd5),_0x1fba48=_0x37ed2b[_0x2c0fbf(0x591,0x672,0x5ee,0x556)]??getDefaultMaxTokens(),_0x31ff9f=_0x37ed2b['chatCompletionsPath']??_0x2c0fbf(_0x1984f3._0x35025c,_0x1984f3._0x8ccee7,0x60c,_0x1984f3._0x4078d9);function _0x2c0fbf(_0x2b890b,_0x304baa,_0x16d0fe,_0x139631){return _0x532739(_0x139631,_0x16d0fe-_0x189d04._0xd2bd04,_0x16d0fe-0x90,_0x139631-0x2a);}const _0x50587f=_0x37ed2b[_0x2c0fbf(0x642,_0x1984f3._0x286204,0x60e,0x600)]??_0x324445(0x26a,_0x1984f3._0x3be97c,0x106,_0x1984f3._0x5dc775);function _0x324445(_0x3f941b,_0x12cda5,_0x577265,_0x35cc47){return _0x532739(_0x3f941b,_0x35cc47-0x27a,_0x577265-_0x38870b._0x2be592,_0x35cc47-0x9a);}super({'apiKey':_0x37ed2b[_0x2c0fbf(_0x1984f3._0x39cc5c,_0x1984f3._0x5f2995,_0x1984f3._0x3b1a25,_0x1984f3._0xd976e1)],'baseUrl':trimTrailingSlashes(_0x37ed2b[_0x2c0fbf(_0x1984f3._0x4a9b47,0x63b,_0x1984f3._0x289957,_0x1984f3._0x4b3000)]??_0x324445(0x1b9,_0x1984f3._0x1bdb0a,0x1db,_0x1984f3._0x300ff4)),'fetch':_0x37ed2b['fetch'],'maxTokens':_0x1fba48,'model':_0x1a28ca,'reasoning':_0x37ed2b[_0x2c0fbf(_0x1984f3._0x4270aa,_0x1984f3._0xd1ca4a,0x518,0x5b1)],'providerAdapter':new OpenAiProviderAdapter(_0x37ed2b[_0x2c0fbf(0x614,0x577,_0x1984f3._0x4c7937,_0x1984f3._0x35da4b)]),'providerSessionResolver':_0x37ed2b[_0x324445(0xfe,_0x1984f3._0x387add,0x156,_0x1984f3._0x13a1ad)],'requestMutators':_0x37ed2b[_0x2c0fbf(0x43b,_0x1984f3._0x252ed3,0x4d9,0x47b)],'router':new StaticModelSurfaceRouter({'complete':OPENAI_CHAT_COMPLETIONS_SURFACE,'stream':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE}),'sessionManager':_0x37ed2b[_0x2c0fbf(_0x1984f3._0x33b4fd,0x628,_0x1984f3._0x4af7bb,_0x1984f3._0x4c36f7)],'surfaces':createOpenAiSurfaces({'chatCompletionsPath':_0x31ff9f,'responsesPath':_0x50587f}),'webSocketFactory':_0x37ed2b[_0x324445(_0x1984f3._0x248df4,_0x1984f3._0x270597,0x4c,_0x1984f3._0x242288)]}),this[_0x324445(0x170,0xf5,_0x1984f3._0x4df0b2,_0x1984f3._0x5d4d7b)]=_0x31ff9f,this['responsesPath']=_0x50587f;}[_0x532739(0xe,-0x98,-0x109,-0xa4)](_0x319ea3,_0x422c45){const _0x3709eb={_0x48f8a2:0x247,_0x18b655:0x204,_0x4448b2:0x327},_0x70476b={_0x28a5b8:0x35,_0x5ae36e:0xbb};function _0x2a7e12(_0x49c0e7,_0xf7d052,_0x3d0c9b,_0x139bc2){return _0x22e674(_0x49c0e7-_0x70476b._0x28a5b8,_0xf7d052-_0x70476b._0x5ae36e,_0x3d0c9b,_0x49c0e7- -0x130);}return this[_0x2a7e12(_0x3709eb._0x48f8a2,0x2fb,_0x3709eb._0x18b655,_0x3709eb._0x4448b2)](_0x319ea3,OPENAI_CHAT_COMPLETIONS_SURFACE,_0x422c45);}[_0x22e674(0x35d,0x3c4,0x419,0x38a)](_0x2a34fb,_0x4d74a1){const _0x5567f0={_0x4f2a4b:0x1cf,_0x107d5c:0x167,_0x1f2e76:0x1c0};function _0x28cb94(_0x680a50,_0x2b2d9f,_0x5c5272,_0xcb3e32){return _0x22e674(_0x680a50-_0x5567f0._0x4f2a4b,_0x2b2d9f-_0x5567f0._0x107d5c,_0x5c5272,_0x680a50- -_0x5567f0._0x1f2e76);}return this[_0x28cb94(0x1b7,0x10b,0x26b,0x126)](_0x2a34fb,OPENAI_RESPONSES_SURFACE,_0x4d74a1);}['completeViaResponsesWebSocketSurface'](_0x235e16,_0x38a507){return this['completeViaSurface'](_0x235e16,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x38a507);}[_0x532739(-0x2c4,-0x216,-0x2ae,-0x1d8)](_0x2c8fc0,_0x56a1d2){return this['streamViaSurface'](_0x2c8fc0,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,_0x56a1d2);}[_0x532739(-0xb5,-0x15f,-0x204,-0x1bd)](_0x25046f,_0x4ef67a){const _0x114ec0={_0x1730f9:0x565},_0x47cdfc={_0x35b8fa:0x166,_0x247ad4:0x15a};function _0x346701(_0xa5af73,_0x53e1a2,_0x16aaac,_0x31cf0c){return _0x22e674(_0xa5af73-0x183,_0x53e1a2-_0x47cdfc._0x35b8fa,_0x31cf0c,_0xa5af73-_0x47cdfc._0x247ad4);}return this[_0x346701(0x519,0x4ac,0x460,_0x114ec0._0x1730f9)](_0x25046f,OPENAI_RESPONSES_STREAM_SURFACE,_0x4ef67a);}['streamViaResponsesWebSocketSurface'](_0x36a59a,_0x247233){const _0x5933f6={_0x1c2c69:0x1aa,_0x3a81c0:0x4a},_0x486163={_0x18e270:0xeb};function _0x3b7cf2(_0x54d3f0,_0x1a76b2,_0x187a76,_0x596156){return _0x22e674(_0x54d3f0-_0x486163._0x18e270,_0x1a76b2-0x183,_0x187a76,_0x596156- -0x489);}return this[_0x3b7cf2(-_0x5933f6._0x1c2c69,-0x14f,-_0x5933f6._0x3a81c0,-0xca)](_0x36a59a,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x247233);}async[_0x22e674(0x32f,0x362,0x386,0x338)](_0x1023c5,_0x494a5b){const _0x2228f1={_0x4e0528:0x1e,_0x11e1d2:0x44},_0x596dbe={_0x1d6687:0xcc};function _0x116772(_0x5bb55e,_0x54a4f2,_0x4f4e80,_0x1ca9e7){return _0x532739(_0x1ca9e7,_0x4f4e80-0x54,_0x4f4e80-_0x596dbe._0x1d6687,_0x1ca9e7-0x1b8);}try{return await this[_0x116772(0x5b,-_0x2228f1._0x4e0528,-_0x2228f1._0x11e1d2,-0xba)](_0x1023c5,_0x494a5b);}catch(_0x53f54c){if(_0x53f54c instanceof OpenAiApiError)throw this['mapApiError'](_0x53f54c);throw _0x53f54c;}}async['response'](_0x3320aa,_0x2d193c){const _0x1a084c={_0x1b4496:0x383,_0x2338b0:0x315,_0x12c754:0x3f7,_0x16bf3b:0x3bd,_0x3b6939:0x42d},_0x477284={_0x10b5d9:0x112};function _0x5317fd(_0x5b2c5c,_0x3447bd,_0x44eda,_0x372322){return _0x22e674(_0x5b2c5c-0xcc,_0x3447bd-0x142,_0x3447bd,_0x44eda- -0x38);}function _0x5ccc77(_0x393941,_0x254737,_0x3df1c1,_0x3848c9){return _0x22e674(_0x393941-_0x477284._0x10b5d9,_0x254737-0x157,_0x254737,_0x3848c9- -0x218);}try{return await this[_0x5317fd(_0x1a084c._0x1b4496,_0x1a084c._0x2338b0,0x352,0x41c)](_0x3320aa,_0x2d193c);}catch(_0x150096){if(_0x150096 instanceof OpenAiApiError)throw this[_0x5317fd(_0x1a084c._0x12c754,_0x1a084c._0x16bf3b,_0x1a084c._0x3b6939,0x4e4)](_0x150096);throw _0x150096;}}async[_0x22e674(0x358,0x432,0x3e8,0x40d)](_0x1a1458,_0x1a93f2){const _0x31d429={_0x4d4681:0x11c,_0x1bd6ee:0xe4,_0x36fd8a:0x16,_0x53b070:0x62,_0x5c79b6:0x22,_0x2e026e:0x109,_0x2e134b:0x142,_0x239f19:0x13,_0x24d805:0x41d,_0x123a98:0x422,_0x5c76a2:0x487},_0x4276ce={_0x2e0f4c:0x3c4},_0x13b7d0={_0x5bcde4:0x70,_0x4b1cfc:0xb6};function _0xf8620e(_0x23ad17,_0x5440a3,_0x394c62,_0xe01d4){return _0x22e674(_0x23ad17-_0x13b7d0._0x5bcde4,_0x5440a3-_0x13b7d0._0x4b1cfc,_0x23ad17,_0xe01d4-0x22);}function _0x16c083(_0x10e0f4,_0x476f47,_0x36e897,_0x4d9e18){return _0x22e674(_0x10e0f4-0x17b,_0x476f47-0x1e5,_0x4d9e18,_0x36e897- -_0x4276ce._0x2e0f4c);}try{let _0x48b057;for await(const _0xa056cc of this[_0x16c083(-0x10,-0x11e,-0xd4,-_0x31d429._0x4d4681)](_0x1a1458,_0x1a93f2)){_0xa056cc[_0xf8620e(0x3c7,0x30f,0x3b6,0x3e2)]===_0x16c083(0xa6,_0x31d429._0x1bd6ee,_0x31d429._0x36fd8a,-_0x31d429._0x53b070)&&(_0x48b057=_0xa056cc[_0x16c083(-0x31,_0x31d429._0x5c79b6,-0x5e,-_0x31d429._0x2e026e)]);}if(!_0x48b057)throw new Error(_0x16c083(-0x1,_0x31d429._0x2e134b,0x7c,-_0x31d429._0x239f19));return _0x48b057;}catch(_0x2fb25b){if(_0x2fb25b instanceof OpenAiApiError)throw this[_0xf8620e(_0x31d429._0x24d805,_0x31d429._0x123a98,0x4fb,_0x31d429._0x5c76a2)](_0x2fb25b);throw _0x2fb25b;}}async*['chatStream'](_0x1eac07,_0x56319f){const _0x42c800={_0x3ca1e5:0x4a4,_0x178c9a:0x3ff,_0x6dc481:0x34,_0x156e02:0xd},_0x436961={_0x12b965:0x6ba,_0x24b614:0x125};function _0x10bd97(_0x2ac002,_0x3966e3,_0x446bcd,_0x5a1f2b){return _0x532739(_0x3966e3,_0x2ac002-_0x436961._0x12b965,_0x446bcd-_0x436961._0x24b614,_0x5a1f2b-0x1d0);}function _0x546d48(_0x48fcb3,_0x420b2b,_0x5059fd,_0x43e966){return _0x532739(_0x43e966,_0x420b2b-0x11,_0x5059fd-0xc9,_0x43e966-0x114);}try{yield*this[_0x10bd97(_0x42c800._0x3ca1e5,0x3da,_0x42c800._0x178c9a,0x567)](_0x1eac07,_0x56319f);}catch(_0x381f52){if(_0x381f52 instanceof OpenAiApiError)throw this[_0x546d48(_0x42c800._0x6dc481,-0x8c,-0x11d,_0x42c800._0x156e02)](_0x381f52);throw _0x381f52;}}async*['responseStream'](_0x4538f6,_0x5529af){const _0x154a0f={_0x576d41:0x287,_0x14f52e:0x226,_0x532734:0x640,_0xb24c0e:0x631},_0x50f26f={_0x340cbb:0x71};function _0x153f3c(_0x2405b4,_0x2cbc56,_0x2d16e5,_0x6399fc){return _0x22e674(_0x2405b4-0x140,_0x2cbc56-0x143,_0x6399fc,_0x2cbc56-0x175);}function _0x3b5519(_0x13a067,_0x19fe46,_0x4ae937,_0xfee8b9){return _0x22e674(_0x13a067-_0x50f26f._0x340cbb,_0x19fe46-0xf3,_0x4ae937,_0x19fe46- -0xb2);}try{yield*this[_0x3b5519(_0x154a0f._0x576d41,0x2f1,0x37e,_0x154a0f._0x14f52e)](_0x4538f6,_0x5529af);}catch(_0x26bceb){if(_0x26bceb instanceof OpenAiApiError)throw this[_0x153f3c(0x5a9,0x5da,_0x154a0f._0x532734,_0x154a0f._0xb24c0e)](_0x26bceb);throw _0x26bceb;}}async*[_0x22e674(0x22f,0x35f,0x29c,0x2f0)](_0x3b6b3e,_0x5b3aa0){const _0x10c9c5={_0x365c6a:0x500,_0x46ec3c:0x543,_0x24a7b1:0x6e9,_0x438676:0x714},_0x2d47ae={_0x2d9c02:0x74,_0x3510e3:0x13f},_0xb0811d={_0x3e3325:0x786,_0x243c4c:0x1f1};function _0x5d0e70(_0x16174d,_0x3d7e58,_0x3fa5d9,_0x251726){return _0x532739(_0x251726,_0x3d7e58-_0xb0811d._0x3e3325,_0x3fa5d9-0x181,_0x251726-_0xb0811d._0x243c4c);}function _0x2f2787(_0x4e0b8b,_0x3978ce,_0x4c21e2,_0x27fe4b){return _0x532739(_0x4c21e2,_0x3978ce-0x6bc,_0x4c21e2-_0x2d47ae._0x2d9c02,_0x27fe4b-_0x2d47ae._0x3510e3);}try{yield*this[_0x5d0e70(_0x10c9c5._0x365c6a,0x598,_0x10c9c5._0x46ec3c,0x5cf)](_0x3b6b3e,_0x5b3aa0);}catch(_0x3c6a7f){if(_0x3c6a7f instanceof OpenAiApiError)throw this[_0x5d0e70(0x609,_0x10c9c5._0x24a7b1,0x6a2,_0x10c9c5._0x438676)](_0x3c6a7f);throw _0x3c6a7f;}}['complete'](_0x31b5eb,_0xbca6f2){return this['chatComplete'](_0x31b5eb,_0xbca6f2);}[_0x532739(-0x34,-0xd9,-0x104,-0x17f)](_0x2f443f,_0x36232e){const _0x59ee8d={_0x41e3f0:0x40b};function _0x9807b7(_0x3845b1,_0x40edf8,_0x1017df,_0x389f96){return _0x532739(_0x389f96,_0x3845b1-0x451,_0x1017df-0x91,_0x389f96-0x131);}return this[_0x9807b7(0x340,0x3b3,0x3c9,_0x59ee8d._0x41e3f0)](_0x2f443f,_0x36232e);}[_0x22e674(0x433,0x4fc,0x484,0x431)](_0x59c181){const _0x30458a={_0x301634:0xef,_0x46e085:0x9c,_0x10cddb:0x15d,_0x4e84c6:0xe0,_0xba3534:0xb3,_0x4c2a7d:0x83,_0xdfaeb9:0x8,_0x7edeed:0x15,_0x1e954d:0x2d,_0x41d580:0xf9,_0x3cd971:0x10a},_0x598b08={_0x813c58:0x1ee},_0x26a45a={_0x4c2dce:0x83},_0x4d2f37=this[_0xbde988(-0xf6,-0x1a3,-0x92,-_0x30458a._0x301634)](_0x59c181);function _0x2c3405(_0x56a7d0,_0xa11eda,_0x4eebf5,_0x778d96){return _0x532739(_0x4eebf5,_0x56a7d0-_0x26a45a._0x4c2dce,_0x4eebf5-0x140,_0x778d96-0x104);}let _0x1ef245=_OpenAiModel[_0x2c3405(-0xba,-_0x30458a._0x46e085,-_0x30458a._0x10cddb,0x9)][_0x2c3405(-_0x30458a._0x4e84c6,-_0x30458a._0xba3534,-0x4b,-0x23)](_0x4d2f37);function _0xbde988(_0x47afd0,_0x5b6d2c,_0x3ad788,_0x53578d){return _0x22e674(_0x47afd0-_0x598b08._0x813c58,_0x5b6d2c-0x134,_0x3ad788,_0x47afd0- -0x489);}return!_0x1ef245&&(_0x1ef245={'pending':Promise[_0xbde988(-_0x30458a._0x4c2a7d,_0x30458a._0xdfaeb9,_0x30458a._0x7edeed,_0x30458a._0x1e954d)]()},_OpenAiModel[_0xbde988(-0xc4,-0x5a,-_0x30458a._0x41d580,-0xa0)][_0xbde988(-_0x30458a._0x3cd971,-0x7f,-0x151,-0xfa)](_0x4d2f37,_0x1ef245)),_0x1ef245;}[_0x22e674(0x2c6,0x2fe,0x354,0x393)](_0x4eeac4){const _0x4910b4={_0x5d5e56:0x562,_0x1747f1:0x4d9,_0x15afc3:0x5bf,_0xaf49b9:0x510},_0x426d04={_0x4d871e:0x109};function _0x3659d8(_0x4beee8,_0x16e90b,_0x1aa6a0,_0x279625){return _0x22e674(_0x4beee8-0x184,_0x16e90b-0x1c7,_0x16e90b,_0x4beee8-_0x426d04._0x4d871e);}return''+trimTrailingSlashes(this['baseUrl'])+this[_0x3659d8(_0x4910b4._0x5d5e56,_0x4910b4._0x1747f1,_0x4910b4._0x15afc3,_0x4910b4._0xaf49b9)]+'::'+_0x4eeac4;}async['acquireResponsesSocketLock'](_0x4e45cd){const _0x246f9f={_0x227cc2:0x464,_0x2ea839:0x4bb},_0x352be9={_0x5945bc:0x52},_0x277900={_0x279190:0x5a},_0x6fc5be=_0x4e45cd['pending'][_0x3c0795(0x48b,0x3e1,_0x246f9f._0x227cc2,0x481)](()=>{});function _0x3c0795(_0x1c5f7b,_0x296058,_0x1a4f19,_0x298d1f){return _0x22e674(_0x1c5f7b-_0x277900._0x279190,_0x296058-0x11a,_0x1a4f19,_0x296058-0xd2);}function _0x13451f(_0x8f599d,_0xea184d,_0x555e3a,_0x472604){return _0x22e674(_0x8f599d-0xde,_0xea184d-_0x352be9._0x5945bc,_0x472604,_0x8f599d- -0x4f3);}let _0x55e2b7;const _0x2365ff=new Promise(_0xb438d=>{_0x55e2b7=_0xb438d;});return _0x4e45cd['pending']=_0x6fc5be[_0x3c0795(_0x246f9f._0x2ea839,0x513,0x596,0x5c2)](()=>_0x2365ff),await _0x6fc5be,()=>{_0x55e2b7?.();};}async['prepareResponsesSocketRequest'](_0x1dde19,_0x30801d){const _0x294965={_0x30c910:0x2ab,_0xf0a98b:0x2d3,_0x87b7b9:0x2e5,_0x290b7b:0x1a4,_0x4cd6ec:0x221,_0x50bbdb:0x114,_0x46af3a:0x28b,_0x48b062:0x2bf,_0x495ff4:0x234,_0x160fe4:0x1c2,_0x5f100b:0x293,_0x240791:0xeb,_0x1406fa:0x36a,_0x29e7fc:0x306,_0x4708f8:0x9f,_0x4fcf50:0x275,_0x4ce181:0x220,_0x288a4b:0x32a,_0x6b8e06:0x1f2,_0x55cf3e:0x2c0,_0x54c2b0:0x2a3,_0x4fbf89:0x1d9},_0x3b4bcd={_0x4127fa:0xcd,_0x3f2ba2:0x3b},_0x38c73f={_0x72d366:0x2f5,_0x47b03f:0xf5};function _0x39860c(_0x285d9c,_0x397b52,_0x3592b6,_0x25f7ce){return _0x532739(_0x25f7ce,_0x285d9c-_0x38c73f._0x72d366,_0x3592b6-_0x38c73f._0x47b03f,_0x25f7ce-0xc1);}const _0x359871=this[_0x211a33(_0x294965._0x30c910,0x20d,0x2b8,_0x294965._0xf0a98b)](_0x1dde19),_0x1da721=toModelRequest(_0x359871),_0x22011f=await prepareProviderRequest(_0x1da721,{'sessionManager':this['sessionManager'],'requestMutators':this[_0x211a33(_0x294965._0x87b7b9,_0x294965._0x87b7b9,0x2db,0x216)],'signal':_0x30801d}),_0x4e8d4b=toChatRequest(_0x22011f[_0x39860c(_0x294965._0x290b7b,_0x294965._0x4cd6ec,0x18f,_0x294965._0x50bbdb)]),_0x5ec205=this[_0x39860c(0x237,_0x294965._0x46af3a,_0x294965._0x48b062,_0x294965._0x495ff4)][_0x39860c(_0x294965._0x160fe4,_0x294965._0x5f100b,0x26e,_0x294965._0x240791)](this['apiKey'],_0x22011f[_0x211a33(0x3c0,_0x294965._0x1406fa,_0x294965._0x29e7fc,0x340)]);if(!_0x5ec205)throw this[_0x39860c(0xfa,0xb7,0x164,_0x294965._0x4708f8)]();function _0x211a33(_0x59129b,_0x200f1c,_0x5644b1,_0x47a8b0){return _0x22e674(_0x59129b-_0x3b4bcd._0x4127fa,_0x200f1c-_0x3b4bcd._0x3f2ba2,_0x5644b1,_0x59129b- -0x3f);}return{'baseUrl':this['providerAdapter'][_0x39860c(0x245,_0x294965._0x4fcf50,_0x294965._0x4ce181,_0x294965._0x288a4b)](this['baseUrl'],_0x22011f[_0x39860c(_0x294965._0x6b8e06,0x2ba,_0x294965._0x55cf3e,0x2a6)]),'credential':_0x5ec205,'request':_0x4e8d4b,'session':_0x22011f[_0x39860c(0x1f2,_0x294965._0x54c2b0,0x1c9,_0x294965._0x4fbf89)]};}[_0x22e674(0x324,0x31e,0x3d5,0x32a)](_0x231067,_0x2b2c7c,_0x58d5de={}){const _0x29392f={_0x50af4b:0xc1,_0x56b219:0x99,_0x47585a:0x7,_0x10dccf:0x83,_0x2c8377:0x346,_0x458dc2:0x358,_0x3c2d7b:0x310,_0x370ba0:0x3c4,_0x3d16ca:0x13,_0xe5eb27:0x173,_0x53f544:0x10f,_0x1e8812:0x123,_0x8734cf:0x2fa,_0x752d71:0x2f2,_0x3635d8:0x371,_0x4f9106:0x28c,_0xf62c01:0x287,_0x22993b:0xa2,_0x48492c:0x7c,_0x4749cc:0x167,_0x12e80e:0x151,_0x402c89:0x15e},_0x554f64={_0x2e78be:0x4f2,_0x1ef8d2:0x13d};function _0x224ad2(_0x3bacd7,_0x1fdd24,_0x40172c,_0x1c6e9b){return _0x532739(_0x1c6e9b,_0x40172c-0x17f,_0x40172c-0xe8,_0x1c6e9b-0x0);}if(!_0x58d5de[_0x224ad2(_0x29392f._0x50af4b,_0x29392f._0x56b219,-_0x29392f._0x47585a,-0xa0)]){const _0x109ec9=this['findResponsesSocketCheckpoint'](_0x231067);if(_0x109ec9&&_0x2b2c7c[_0x224ad2(_0x29392f._0x10dccf,0x6d,-0x2d,-0x113)]&&_0x109ec9[_0x59d296(0x415,0x387,0x3d4,0x3fc)]===_0x2b2c7c[_0x59d296(_0x29392f._0x2c8377,_0x29392f._0x458dc2,_0x29392f._0x3c2d7b,_0x29392f._0x370ba0)]){const _0x177bd7=toOpenAiResponsesRequest({..._0x231067,'messages':_0x231067[_0x224ad2(0x63,0xbc,-_0x29392f._0x3d16ca,0x4d)][_0x224ad2(_0x29392f._0xe5eb27,0x89,_0x29392f._0x53f544,_0x29392f._0x1e8812)](_0x109ec9[_0x59d296(_0x29392f._0x8734cf,_0x29392f._0x752d71,_0x29392f._0x3635d8,_0x29392f._0x4f9106)]+0x1)})[_0x59d296(0x2e1,0x38d,_0x29392f._0xf62c01,0x2db)];return{'event':createOpenAiResponsesWebSocketEvent(_0x231067,{'input':_0x177bd7,'previousResponseId':_0x109ec9[_0x224ad2(-0x18,0x24,_0x29392f._0x22993b,_0x29392f._0x48492c)]}),'previousResponseId':_0x109ec9[_0x224ad2(_0x29392f._0x4749cc,_0x29392f._0x12e80e,_0x29392f._0x22993b,_0x29392f._0x402c89)]};}}function _0x59d296(_0x2c908f,_0x443f0e,_0x5192af,_0x4a472f){return _0x532739(_0x443f0e,_0x2c908f-_0x554f64._0x2e78be,_0x5192af-_0x554f64._0x1ef8d2,_0x4a472f-0x1b4);}return{'event':createOpenAiResponsesWebSocketEvent(_0x231067)};}[_0x532739(-0x2b2,-0x1cb,-0x175,-0x21f)](_0x511617){const _0x3a13f1={_0xa8334b:0x5db,_0x3c3837:0x565,_0x52eb3d:0x4e6,_0x39875d:0x5b5,_0xa10842:0x695,_0x412d77:0x6ae,_0x179298:0x631,_0x19c519:0x70d,_0x1a9b0f:0x6b2,_0x27bd3d:0x25f,_0xf72038:0x16d},_0x44e89f={_0x1f3617:0x1ba,_0xf961ff:0x29},_0x38481e={_0x466209:0x1a4,_0x2a5b6f:0x175};function _0x49a3b9(_0x51c4ac,_0x4acc15,_0x62f2be,_0x268c34){return _0x22e674(_0x51c4ac-_0x38481e._0x466209,_0x4acc15-0x172,_0x4acc15,_0x268c34- -_0x38481e._0x2a5b6f);}for(let _0x26ff73=_0x511617[_0x4eaa84(0x5cd,_0x3a13f1._0xa8334b,_0x3a13f1._0x3c3837,0x546)][_0x4eaa84(_0x3a13f1._0x52eb3d,_0x3a13f1._0x39875d,0x558,0x60c)]-0x1;_0x26ff73>=0x0;_0x26ff73-=0x1){const _0x4e913e=_0x511617['messages'][_0x26ff73],_0x5a5255=_0x4e913e[_0x4eaa84(0x6a6,_0x3a13f1._0xa10842,0x6a3,_0x3a13f1._0x412d77)]===_0x4eaa84(0x562,_0x3a13f1._0x179298,_0x3a13f1._0x19c519,_0x3a13f1._0x1a9b0f)?_0x4e913e['providerState']?.[_0x49a3b9(_0x3a13f1._0x27bd3d,0x184,_0x3a13f1._0xf72038,0x23d)]:void 0x0;if(_0x5a5255)return{'messageIndex':_0x26ff73,'responseId':_0x5a5255};}function _0x4eaa84(_0x56df4a,_0x2b131e,_0x5d7837,_0x50a832){return _0x22e674(_0x56df4a-_0x44e89f._0x1f3617,_0x2b131e-_0x44e89f._0xf961ff,_0x5d7837,_0x2b131e-0x26b);}return void 0x0;}[_0x22e674(0x4ad,0x48b,0x3d9,0x4a4)](_0x40888a){const _0x8455a3={_0x1ea3de:0x37f,_0x2d7fcf:0x555,_0x528419:0x4b3,_0x9813d0:0x51b,_0x86e7ef:0x264,_0x5d0715:0x1ed,_0x2af08a:0x2f2,_0x1432f3:0x402},_0xb68b89={_0x679cfa:0x3f,_0x4f096d:0x28},_0x2c506f={_0x469077:0x11d,_0x72c952:0xa7};function _0x4ee0a8(_0x4d2da0,_0x4de2c1,_0x1891c2,_0x3e609c){return _0x22e674(_0x4d2da0-0x80,_0x4de2c1-_0x2c506f._0x469077,_0x4d2da0,_0x3e609c-_0x2c506f._0x72c952);}function _0x5d6d4a(_0x4c0c7b,_0x5c3751,_0x5673c6,_0x4e9266){return _0x22e674(_0x4c0c7b-_0xb68b89._0x679cfa,_0x5c3751-_0xb68b89._0x4f096d,_0x5c3751,_0x5673c6- -0x83);}return _0x40888a instanceof ProviderStreamEventError&&(_0x40888a[_0x5d6d4a(0x1d9,_0x8455a3._0x1ea3de,0x2a3,0x327)]===_0x4ee0a8(0x5f6,_0x8455a3._0x2d7fcf,_0x8455a3._0x528419,_0x8455a3._0x9813d0)||_0x40888a[_0x5d6d4a(_0x8455a3._0x86e7ef,0x384,0x2a3,_0x8455a3._0x5d0715)]===_0x5d6d4a(0x296,_0x8455a3._0x2af08a,0x327,_0x8455a3._0x1432f3));}[_0x532739(-0xb6,-0x195,-0x251,-0x135)](_0x52441b){const _0x2d413b={_0x1a44b4:0x5e8,_0x23127e:0x51e,_0x44418c:0x2c1,_0x365c02:0x305,_0xa1ac88:0x2c3,_0x10b6cc:0x42a,_0x313532:0x4e9,_0x330d3d:0x2e4,_0x5f28b9:0x2fb,_0x5b3a09:0x3b3,_0x2136d6:0x407,_0x415676:0x454},_0x5e3f32={_0x1d4f32:0xd4},_0x17c5b4={_0x82ed68:0x73},_0x2603c0=_0x52441b[_0x107c65(0x358,0x353,0x3dc,0x2a0)];function _0x107c65(_0xa1c523,_0x523a90,_0xe172b2,_0x5580ca){return _0x22e674(_0xa1c523-_0x17c5b4._0x82ed68,_0x523a90-0x32,_0xe172b2,_0xa1c523- -0x95);}function _0x158749(_0x19c5de,_0x402b97,_0x33eeab,_0x5336de){return _0x22e674(_0x19c5de-0x123,_0x402b97-0x60,_0x19c5de,_0x33eeab-_0x5e3f32._0x1d4f32);}_0x52441b['socket']=void 0x0,_0x52441b[_0x158749(0x639,_0x2d413b._0x1a44b4,0x57b,_0x2d413b._0x23127e)]=void 0x0,_0x52441b[_0x107c65(_0x2d413b._0x44418c,_0x2d413b._0x365c02,0x252,_0x2d413b._0xa1ac88)]=void 0x0,_0x2603c0?.[_0x107c65(0x2a0,0x2cb,0x377,0x381)]===WebSocket[_0x107c65(0x408,0x3b6,_0x2d413b._0x10b6cc,_0x2d413b._0x313532)]&&_0x2603c0[_0x107c65(_0x2d413b._0x330d3d,_0x2d413b._0x5f28b9,0x320,0x367)](0x3e8,_0x107c65(_0x2d413b._0x5b3a09,0x323,_0x2d413b._0x2136d6,_0x2d413b._0x415676));}async[_0x22e674(0x42b,0x413,0x527,0x485)](_0x3e976f,_0x35e38a,_0xf5cebc,_0x48cfcf,_0x8870c4){const _0xb40531={_0x266e30:0x317,_0x5d052c:0x24d,_0xae6484:0x3d7,_0x440e31:0x2f8,_0x322864:0x32e,_0x4fb121:0x417,_0x32dc7f:0x337,_0x3c25ec:0x42f,_0x54f147:0x34a,_0x55dc6f:0x42f,_0x196d02:0x373,_0x55dd30:0x3ff,_0x51fed6:0x3bc,_0x1a864f:0x3c1},_0x197708={_0x34f2ef:0x2d8,_0x297c9c:0x341,_0x54d6c4:0x1cb,_0x5b853f:0x236,_0x5ce136:0x267,_0x46ccf7:0x29e,_0x394e27:0x295,_0x423de1:0x4c4,_0x432b7f:0x594,_0x3aa85c:0x524,_0x17c826:0x1c1,_0x1c2f65:0x2ac,_0x65ea52:0x1fb,_0x49a532:0x23e,_0x43df47:0x3b5,_0x6f8cbb:0x279,_0x2bd68d:0x1f3,_0x421f0a:0x283,_0x98b823:0x2cd,_0x52cade:0x2ff,_0x85a71f:0x1f2,_0x1657d0:0x4a2,_0xbc06cb:0x480,_0x4c34c0:0x17a,_0x4e0e1b:0x212,_0x5d421b:0x11c,_0xe21edc:0x5b3,_0x2db41a:0x651,_0x33e4c3:0x2e7,_0x13a349:0x44b,_0x50fee8:0x37c,_0x12fcb1:0x4b1},_0x33651a={_0x34fe25:0xc6},_0x34ff4f={_0x5b1273:0x1b3};if(_0x35e38a[_0x3c05ac(0x3d2,0x375,0x435,0x3f7)]?.[_0x5e4536(0x26f,_0xb40531._0x266e30,_0xb40531._0x5d052c,0x2bc)]===WebSocket[_0x5e4536(_0xb40531._0xae6484,_0xb40531._0x440e31,0x47e,_0xb40531._0x322864)])return _0x35e38a['socket'];if(_0x35e38a[_0x5e4536(0x3e1,_0xb40531._0x4fb121,0x330,_0xb40531._0x32dc7f)])return await _0x35e38a[_0x3c05ac(0x41d,_0xb40531._0x3c25ec,0x489,0x417)];function _0x3c05ac(_0x2b55c3,_0x4bf069,_0x59107b,_0x31777c){return _0x532739(_0x2b55c3,_0x4bf069-0x48a,_0x59107b-_0x34ff4f._0x5b1273,_0x31777c-0x194);}function _0x5e4536(_0x1aa953,_0x21486b,_0x15cdbf,_0x356e5c){return _0x22e674(_0x1aa953-0x2,_0x21486b-0x17b,_0x15cdbf,_0x1aa953- -_0x33651a._0x34fe25);}_0x35e38a[_0x5e4536(0x3e1,_0xb40531._0x54f147,0x449,0x397)]=((async()=>{const _0xfdfed={_0x1863a5:0x2ee,_0x247b79:0x423,_0x1294b7:0x2ae,_0x23fe5d:0x2b5},_0x426677={_0x331e8c:0x54,_0x52563d:0x426},_0x215ce2={_0x2f26d4:0x1d7},_0x13e94a=await this[_0x5f866f(0x2d7,0x426,_0x197708._0x34f2ef,_0x197708._0x297c9c)]({'request':_0xf5cebc[_0x5f866f(_0x197708._0x54d6c4,0x2cc,0x228,0x257)],'body':_0x48cfcf,'credential':_0xf5cebc[_0x5f866f(0x322,_0x197708._0x5b853f,0x206,_0x197708._0x5ce136)],'session':_0xf5cebc[_0x5f866f(_0x197708._0x46ccf7,_0x197708._0x394e27,0x1ca,0x2a5)],'stream':!![]},{'accept':_0xc8c558(_0x197708._0x423de1,_0x197708._0x432b7f,0x534,0x4f6),'includeContentType':![]});function _0x5f866f(_0x4a0b79,_0x5883ad,_0x2b6d21,_0x6b8f4c){return _0x5e4536(_0x6b8f4c- -0x94,_0x5883ad-0x110,_0x5883ad,_0x6b8f4c-0x2a);}function _0xc8c558(_0x3c0325,_0x39f466,_0x53848c,_0x116d7d){return _0x5e4536(_0x39f466-0x1dc,_0x39f466-0xb7,_0x116d7d,_0x116d7d-0x1ca);}_0x13e94a[_0xc8c558(0x545,_0x197708._0x3aa85c,0x600,0x5ea)]('accept');const _0x9a0881=this[_0x5f866f(_0x197708._0x17c826,_0x197708._0x1c2f65,_0x197708._0x65ea52,_0x197708._0x49a532)]({'headers':Object[_0x5f866f(_0x197708._0x43df47,0x2fd,_0x197708._0x6f8cbb,0x318)](_0x13e94a[_0x5f866f(_0x197708._0x2bd68d,0x2a6,_0x197708._0x421f0a,0x1cd)]()),'url':(''+_0xf5cebc['baseUrl']+this[_0x5f866f(0x363,0x39f,_0x197708._0x98b823,_0x197708._0x52cade)])[_0x5f866f(0x2e3,0x293,0x2d5,0x2af)](/^http:/,_0x5f866f(_0x197708._0x85a71f,0x15d,0x2bc,0x227))['replace'](/^https:/,'wss:')}),_0x338ac8=()=>{function _0xa157c1(_0x57f9e9,_0x4d645f,_0x1b8e0c,_0x43f8bc){return _0xc8c558(_0x57f9e9-0x44,_0x4d645f- -0x1b7,_0x1b8e0c-_0x215ce2._0x2f26d4,_0x57f9e9);}function _0x35dae1(_0x301c2d,_0x35ca6b,_0x1a8875,_0x1fed6){return _0xc8c558(_0x301c2d-_0x426677._0x331e8c,_0x1a8875- -_0x426677._0x52563d,_0x1a8875-0x102,_0x301c2d);}_0x35e38a[_0xa157c1(0x40d,0x34c,_0xfdfed._0x1863a5,_0xfdfed._0x247b79)]===_0x9a0881&&(_0x35e38a['socket']=void 0x0,_0x35e38a[_0xa157c1(_0xfdfed._0x1294b7,_0xfdfed._0x23fe5d,0x1ce,0x360)]=void 0x0);};_0x9a0881[_0xc8c558(0x417,_0x197708._0x1657d0,_0x197708._0xbc06cb,0x3fb)](_0x5f866f(_0x197708._0x4c34c0,_0x197708._0x4e0e1b,0x171,0x21f),_0x338ac8);try{return throwIfAborted(_0x8870c4),_0x9a0881[_0x5f866f(_0x197708._0x5d421b,0x113,0x123,0x1db)]!==WebSocket[_0xc8c558(0x507,_0x197708._0xe21edc,_0x197708._0x2db41a,0x53a)]&&await waitForWebSocketOpen(_0x9a0881,_0x8870c4),throwIfAborted(_0x8870c4),_0x35e38a[_0x5f866f(_0x197708._0x33e4c3,0x1c3,0x2c3,0x293)]=_0x9a0881,_0x9a0881;}catch(_0x5d752c){_0x338ac8();_0x9a0881[_0xc8c558(0x3a4,_0x197708._0x13a349,_0x197708._0x50fee8,_0x197708._0x12fcb1)]===WebSocket['OPEN']&&_0x9a0881['close'](0x3e8,'connect_failed');throw _0x5d752c;}})());try{return await _0x35e38a[_0x3c05ac(0x4bf,_0xb40531._0x55dc6f,_0xb40531._0x196d02,0x36a)];}finally{_0x35e38a[_0x3c05ac(_0xb40531._0x55dd30,0x42f,_0xb40531._0x51fed6,_0xb40531._0x1a864f)]=void 0x0;}}async*[_0x532739(-0x10e,-0x1ee,-0x2ae,-0x17f)](_0x356898,_0x56f76d){const _0x4072e3={_0x57a879:0x275,_0x43d42d:0x3d9,_0x5623c7:0x44a,_0x38a252:0x433,_0x5c4587:0x450,_0x125bf4:0x4a7,_0x22aab8:0x31d,_0x15b91e:0x25a,_0xc707f8:0x3d9,_0x1994eb:0x3ef,_0x413770:0x453,_0x1c6f5b:0x443,_0x267063:0x518,_0x34d610:0x473,_0x492abe:0x3b9,_0x8b43c1:0x45c,_0x635e94:0x3a6,_0x7de68d:0x445,_0x34c00e:0x4ec,_0xc597a:0x59d,_0x3e5a22:0x5b5,_0x52304b:0x1e4,_0x13401b:0x1df,_0x278fc0:0x115,_0x1619ac:0x3c2,_0x2ab929:0x45d,_0x46a59c:0x3ad,_0x13dded:0x1b5,_0x5396e7:0x1ae,_0x535f86:0x16f,_0x26fa96:0x20c,_0xa5a001:0x263,_0x334964:0x2a9,_0xfd1022:0x26b,_0x561f92:0x237,_0x52957b:0x1c0,_0x23fa40:0x1e3,_0x2349a0:0x220},_0x278b51={_0x473266:0x71,_0x7bf5df:0x7c},_0x302e26={_0x214b71:0x64,_0x3170fe:0x125,_0xd725d4:0x17c},_0x5029f6=this['applyModelDefaults'](_0x356898),_0x1c3086=this[_0x9bec64(_0x4072e3._0x57a879,0x268,0x2b5,0x34c)](_0x5029f6[_0x244382(_0x4072e3._0x43d42d,_0x4072e3._0x5623c7,0x374,_0x4072e3._0x38a252)]['sessionId']);function _0x9bec64(_0xf67feb,_0x2d0139,_0x3070c0,_0x4e5dc6){return _0x22e674(_0xf67feb-_0x302e26._0x214b71,_0x2d0139-_0x302e26._0x3170fe,_0xf67feb,_0x3070c0- -_0x302e26._0xd725d4);}function _0x244382(_0xe9d82f,_0x323079,_0x27140d,_0x583576){return _0x22e674(_0xe9d82f-_0x278b51._0x473266,_0x323079-_0x278b51._0x7bf5df,_0x323079,_0xe9d82f-0x55);}const _0x183ff5=await this[_0x244382(_0x4072e3._0x5c4587,0x4e4,0x50a,_0x4072e3._0x125bf4)](_0x1c3086);try{const _0x1ef9fc=this['buildResponsesSocketEvent'](_0x5029f6,_0x1c3086);try{yield*this[_0x9bec64(0x1c7,_0x4072e3._0x22aab8,0x263,_0x4072e3._0x15b91e)](_0x5029f6[_0x244382(_0x4072e3._0xc707f8,_0x4072e3._0x1994eb,_0x4072e3._0x413770,_0x4072e3._0x1c6f5b)][_0x244382(0x43c,_0x4072e3._0x267063,_0x4072e3._0x34d610,_0x4072e3._0x492abe)],_0x1c3086,_0x5029f6,_0x1ef9fc['event'],_0x56f76d?.[_0x244382(_0x4072e3._0x8b43c1,_0x4072e3._0x635e94,0x410,0x498)]);return;}catch(_0x3a2591){if(!_0x1ef9fc[_0x244382(_0x4072e3._0x7de68d,0x524,0x426,_0x4072e3._0x34c00e)]||!this[_0x244382(0x4f9,0x5ca,_0x4072e3._0xc597a,_0x4072e3._0x3e5a22)](_0x3a2591)){this[_0x9bec64(_0x4072e3._0x52304b,_0x4072e3._0x13401b,0x1f1,_0x4072e3._0x278fc0)](_0x1c3086);throw _0x3a2591;}}this[_0x244382(_0x4072e3._0x1619ac,_0x4072e3._0x2ab929,_0x4072e3._0x46a59c,0x425)](_0x1c3086);const _0x56e80a=this[_0x9bec64(0x116,_0x4072e3._0x13dded,_0x4072e3._0x5396e7,_0x4072e3._0x535f86)](_0x5029f6,_0x1c3086,{'forceFullReplay':!![]});yield*this[_0x9bec64(0x2d6,_0x4072e3._0x26fa96,_0x4072e3._0xa5a001,_0x4072e3._0x334964)](_0x5029f6['metadata'][_0x9bec64(0x318,0x352,_0x4072e3._0xfd1022,0x1d6)],_0x1c3086,_0x5029f6,_0x56e80a[_0x9bec64(_0x4072e3._0x561f92,_0x4072e3._0x52957b,_0x4072e3._0x23fa40,_0x4072e3._0x2349a0)],_0x56f76d?.['signal']);}finally{_0x183ff5();}}async*[_0x532739(-0x9d,-0x123,-0x1b9,-0xd7)](_0x576c11,_0x3a8819,_0x4dbc6e,_0xe0ee0d,_0x1add9e){const _0x39c2d3={_0x5ee909:0x548,_0x86a0b9:0x46f,_0xafd78c:0x31b,_0x24c20f:0x3aa,_0x51fcad:0x31f,_0x5cfd46:0x2f3,_0x59336a:0x22f,_0x2f84a4:0x210,_0x15c008:0x1ce,_0x52c6f0:0x483,_0x41df45:0x407,_0x537910:0x17b},_0x19161b={_0xc9d0c2:0xf0},_0x1f3acf={_0x5b32d4:0x2c,_0x68f7a7:0x65},_0x1b5b3f=await this['prepareResponsesSocketRequest'](_0x4dbc6e,_0x1add9e),_0xcbb2a4=await this[_0x252086(_0x39c2d3._0x5ee909,0x4a0,0x453,_0x39c2d3._0x86a0b9)](_0x576c11,_0x3a8819,_0x1b5b3f,_0xe0ee0d,_0x1add9e);function _0x556279(_0x35c440,_0x2c8079,_0x1dd1d3,_0x2aa18e){return _0x532739(_0x1dd1d3,_0x2aa18e-_0x1f3acf._0x5b32d4,_0x1dd1d3-_0x1f3acf._0x68f7a7,_0x2aa18e-0x1e8);}const _0x283d0b=createOpenAiResponsesStreamParser(_0x4dbc6e);throwIfAborted(_0x1add9e);function _0x252086(_0x2baf48,_0x2859b2,_0x16c0a1,_0x335ab7){return _0x22e674(_0x2baf48-0x1e3,_0x2859b2-_0x19161b._0xc9d0c2,_0x335ab7,_0x2859b2-0x1b);}_0xcbb2a4['send'](JSON['stringify'](_0xe0ee0d));for await(const _0x3eecfe of iterateWebSocketMessages(_0xcbb2a4,_0x1add9e)){const _0x405d39=_0x283d0b[_0x252086(0x40d,0x376,_0x39c2d3._0xafd78c,_0x39c2d3._0x24c20f)]?.(_0x3eecfe)??[];yield*_0x405d39;if(_0x283d0b[_0x252086(0x391,0x323,_0x39c2d3._0x51fcad,_0x39c2d3._0x5cfd46)]?.())break;}if(!_0x283d0b[_0x556279(-0x1e9,-_0x39c2d3._0x59336a,-_0x39c2d3._0x2f84a4,-_0x39c2d3._0x15c008)]?.())throw new Error(_0x252086(_0x39c2d3._0x52c6f0,0x48b,0x476,0x436));const _0x1430c5=_0x283d0b[_0x252086(0x349,_0x39c2d3._0x41df45,0x386,0x363)](),_0x128de9=_0x1430c5['providerState']?.[_0x556279(-_0x39c2d3._0x537910,-0x1a8,-0x158,-0x124)]??_0x1430c5['id'];_0x128de9&&(_0x3a8819['lastResponseId']=_0x128de9),yield{'type':'done','response':_0x1430c5};}},AVAILABLE_CHAT_MODEL_SURFACES=[_0x22e674(0x54f,0x4b8,0x3ca,0x47f),_0x22e674(0x39b,0x3b9,0x2f3,0x351),_0x532739(-0xe,-0x7a,-0x28,0x61),_0x532739(-0x80,-0x11c,-0x11c,-0xbb)];function isAnthropicSurface(_0x1f19e5){const _0x502755={_0x11bc65:0x2a6,_0x6970d:0x1af},_0x780cc1={_0x5792c0:0x2d5,_0x1e1fc2:0xed};function _0x2ce1bc(_0x2f1aab,_0x22e468,_0x4f884d,_0x298a57){return _0x532739(_0x298a57,_0x4f884d-_0x780cc1._0x5792c0,_0x4f884d-0x19a,_0x298a57-_0x780cc1._0x1e1fc2);}return _0x1f19e5===_0x2ce1bc(_0x502755._0x11bc65,0x22e,0x252,_0x502755._0x6970d);}function resolveDefaultBaseUrl(_0x5a6939){const _0x356534={_0x3d2717:0xa3,_0x1c41c1:0x9a,_0x32a7a6:0x26,_0x36408d:0x4fb,_0x2ac6b5:0x3f6,_0x1aca10:0x4ad,_0x4c7d8e:0x465,_0x440a34:0x4dc,_0x3e606f:0x14d,_0x20946a:0x404,_0x4242c0:0x4cc,_0x5d44a2:0x445},_0x55dbb0={_0x7b04d0:0x522};if(_0x5a6939===_0x4f4ad0(_0x356534._0x3d2717,0xae,_0x356534._0x1c41c1,-_0x356534._0x32a7a6))return getProviderProfile('anthropic')?.[_0x1c0f42(_0x356534._0x36408d,_0x356534._0x2ac6b5,_0x356534._0x1aca10,0x53a)]??_0x1c0f42(_0x356534._0x4c7d8e,_0x356534._0x440a34,0x457,0x471);function _0x1c0f42(_0x4e469e,_0x3900a1,_0x26eb28,_0x551b6e){return _0x532739(_0x551b6e,_0x26eb28-_0x55dbb0._0x7b04d0,_0x26eb28-0xa2,_0x551b6e-0x1d9);}function _0x4f4ad0(_0x13b418,_0x1e59c8,_0x34ae03,_0x47161b){return _0x532739(_0x47161b,_0x34ae03-0x11d,_0x34ae03-0xa9,_0x47161b-0x7e);}return getProviderProfile(_0x4f4ad0(-0x10f,-0x72,-0x8b,-_0x356534._0x3e606f))?.['baseUrl']??_0x1c0f42(0x4b0,_0x356534._0x20946a,_0x356534._0x4242c0,_0x356534._0x5d44a2);}var ChatModel=class{[_0x532739(-0x43,-0x66,-0x87,-0x14)];['maxTokens'];[_0x532739(-0x6a,-0x10e,-0x16a,-0x137)];[_0x22e674(0x32d,0x3e6,0x309,0x382)];[_0x22e674(0x520,0x3e0,0x50e,0x471)];constructor(_0x2fb6de={}){const _0x3783cb={_0x42b9c5:0x1ce,_0x11ed2d:0x1bb,_0x279bf6:0x102,_0x489536:0x258,_0x3e6b69:0x141,_0x36579f:0x158,_0x5db671:0x51d,_0xdcefa3:0xe9,_0x539d2b:0x1b1,_0x55780f:0x37c,_0x523a65:0x383,_0xdad296:0x45d,_0x218e7a:0x498,_0x4398fa:0x426,_0xc0020a:0x411,_0xf175fc:0x18b,_0x221d90:0x113,_0x3777b3:0x12c,_0x5597a4:0x12e,_0x574c97:0x388,_0x3e2d0c:0x3b4,_0x4b3b03:0x387,_0x564e6d:0x14,_0x570140:0x123,_0x1b5e48:0x129,_0x4ac5f1:0x331,_0x43325d:0x28f,_0x12e4bd:0x43,_0x9e7514:0x6f,_0x3f393b:0xa0,_0x234b77:0x1f8,_0x1f7e28:0xb6,_0x28b718:0x3dd,_0x3119e6:0x3ec,_0x422028:0x1b,_0x370b9e:0xd1,_0x18435d:0x158,_0x32d01e:0x145,_0x5e4b79:0x50b,_0x5e7d91:0x467,_0x48fd16:0x467,_0x5e6410:0x395,_0x2f64c5:0x29a,_0x47b84d:0x33d,_0x51c5e7:0x3a,_0xaee4b4:0x3ca,_0x4fc315:0x388,_0xc0a1cb:0x489},_0x53fd91={_0x5d3d65:0x221},_0x36e514={_0x47229f:0x53,_0x52ab48:0x32};this[_0x2af7fc(0x223,0x1bb,_0x3783cb._0x42b9c5,0x1b9)]=_0x2fb6de[_0x2af7fc(0x230,_0x3783cb._0x11ed2d,_0x3783cb._0x279bf6,_0x3783cb._0x489536)]??getDefaultModel();function _0x57a83b(_0x1c9440,_0x1845e7,_0x9a79e,_0x1b7580){return _0x22e674(_0x1c9440-_0x36e514._0x47229f,_0x1845e7-0x1ef,_0x9a79e,_0x1845e7-_0x36e514._0x52ab48);}this[_0x2af7fc(_0x3783cb._0x3e6b69,_0x3783cb._0x36579f,0x1d9,0x21b)]=_0x2fb6de[_0x57a83b(0x52d,0x46b,0x50c,_0x3783cb._0x5db671)]??getDefaultMaxTokens();function _0x2af7fc(_0x32d102,_0xc72231,_0x1520ed,_0x79e29a){return _0x532739(_0x79e29a,_0xc72231-_0x53fd91._0x5d3d65,_0x1520ed-0x127,_0x79e29a-0x11b);}this[_0x2af7fc(_0x3783cb._0xdcefa3,0x113,0x1bd,_0x3783cb._0x539d2b)]=_0x2fb6de['surface']??_0x57a83b(_0x3783cb._0x55780f,_0x3783cb._0x523a65,0x2c7,_0x3783cb._0xdad296);const _0x3acb3d=trimTrailingSlashes(_0x2fb6de['baseUrl']??resolveDefaultBaseUrl(this[_0x57a83b(_0x3783cb._0x218e7a,_0x3783cb._0x4398fa,_0x3783cb._0xc0020a,0x3a1)]));if(isAnthropicSurface(this[_0x2af7fc(_0x3783cb._0xf175fc,_0x3783cb._0x221d90,_0x3783cb._0x3777b3,_0x3783cb._0x5597a4)])){this[_0x57a83b(_0x3783cb._0x574c97,_0x3783cb._0x3e2d0c,_0x3783cb._0x4b3b03,0x491)]=new AnthropicModel({'apiKey':_0x2fb6de[_0x2af7fc(_0x3783cb._0x564e6d,0xd9,0x182,0xa2)],'authScheme':_0x2fb6de[_0x2af7fc(_0x3783cb._0x570140,_0x3783cb._0x1b5e48,0x201,0x10c)],'baseUrl':_0x3acb3d,'fetch':_0x2fb6de['fetch'],'maxTokens':this[_0x2af7fc(0x19c,_0x3783cb._0x36579f,0x22c,0xd9)],'model':this['model'],'reasoning':_0x2fb6de['reasoning'],'providerSessionResolver':_0x2fb6de[_0x57a83b(0x374,_0x3783cb._0x4ac5f1,_0x3783cb._0x43325d,0x2e9)],'requestMutators':_0x2fb6de[_0x2af7fc(-0x61,_0x3783cb._0x12e4bd,-_0x3783cb._0x9e7514,_0x3783cb._0x3f393b)]});return;}this[_0x2af7fc(_0x3783cb._0x234b77,0x190,0x1ca,_0x3783cb._0x1f7e28)]=new OpenAiModel({'apiKey':_0x2fb6de[_0x57a83b(_0x3783cb._0x28b718,_0x3783cb._0x3119e6,0x422,0x41c)],'baseUrl':_0x3acb3d,'fetch':_0x2fb6de[_0x2af7fc(_0x3783cb._0x422028,0xcc,0x6,0x2)],'headerResolver':_0x2fb6de['headerResolver'],'maxTokens':this[_0x2af7fc(_0x3783cb._0x370b9e,_0x3783cb._0x18435d,_0x3783cb._0x32d01e,0xfb)],'model':this[_0x57a83b(0x4f3,0x4ce,_0x3783cb._0x5e4b79,_0x3783cb._0x5e7d91)],'reasoning':_0x2fb6de[_0x57a83b(_0x3783cb._0x48fd16,_0x3783cb._0x5e6410,0x46b,0x32f)],'providerSessionResolver':_0x2fb6de[_0x57a83b(_0x3783cb._0x2f64c5,0x331,0x2c0,_0x3783cb._0x47b84d)],'requestMutators':_0x2fb6de[_0x2af7fc(-0x33,_0x3783cb._0x12e4bd,_0x3783cb._0x51c5e7,-0x74)],'webSocketFactory':_0x2fb6de[_0x57a83b(0x32d,_0x3783cb._0xaee4b4,_0x3783cb._0x4fc315,_0x3783cb._0xc0a1cb)]});}['getAnthropicDelegate'](){const _0x1dff39={_0x52324c:0x477,_0x37a515:0x4f9,_0x228cfe:0x3ad,_0x1326d5:0x461,_0x16bdec:0x530,_0x497881:0x3c9,_0x247a18:0x338},_0x4a1993={_0x413b00:0x536},_0x5b3baa={_0x4bcb8a:0x12a,_0x4abe3e:0x83,_0x247d0f:0x6d};function _0x124ee1(_0x10854f,_0x2665e8,_0x14eea3,_0x21306d){return _0x22e674(_0x10854f-_0x5b3baa._0x4bcb8a,_0x2665e8-_0x5b3baa._0x4abe3e,_0x10854f,_0x14eea3-_0x5b3baa._0x247d0f);}function _0x569521(_0x1ce5dc,_0x3bf396,_0xe1c094,_0x36eb3d){return _0x532739(_0x1ce5dc,_0xe1c094-_0x4a1993._0x413b00,_0xe1c094-0x30,_0x36eb3d-0x15d);}if(!this['anthropicDelegate'])throw new Error(_0x124ee1(_0x1dff39._0x52324c,0x41c,_0x1dff39._0x37a515,0x46c)+this[_0x124ee1(0x3a7,_0x1dff39._0x228cfe,_0x1dff39._0x1326d5,_0x1dff39._0x16bdec)]);return this[_0x124ee1(_0x1dff39._0x497881,0x45b,0x3ef,_0x1dff39._0x247a18)];}[_0x532739(-0x112,-0x185,-0xaf,-0xd9)](){const _0x16cd54={_0x2c4813:0x34b,_0x2fe67a:0x2f2,_0xcc3251:0x2b3,_0x10468e:0x206,_0x444844:0xfe,_0x200f0e:0x355,_0x3bdcb9:0x19d,_0x3afae6:0x257},_0x20e4f7={_0x2b5f6d:0x1a1,_0x3f27fa:0x126};function _0x51fff9(_0x36afad,_0x1e1655,_0x80e5d9,_0x1dfed3){return _0x532739(_0x80e5d9,_0x1dfed3-0x221,_0x80e5d9-0x30,_0x1dfed3-0x14);}function _0x281912(_0x45a160,_0xf2c0f4,_0xc72ecd,_0x4d24d9){return _0x22e674(_0x45a160-_0x20e4f7._0x2b5f6d,_0xf2c0f4-0x12d,_0xf2c0f4,_0x45a160- -_0x20e4f7._0x3f27fa);}if(!this[_0x281912(_0x16cd54._0x2c4813,_0x16cd54._0x2fe67a,0x287,_0x16cd54._0xcc3251)])throw new Error(_0x51fff9(_0x16cd54._0x10468e,0x225,_0x16cd54._0x444844,0x16f)+this[_0x281912(0x2ce,0x382,_0x16cd54._0x200f0e,0x1ed)]);return this[_0x51fff9(_0x16cd54._0x3bdcb9,0x198,_0x16cd54._0x3afae6,0x190)];}[_0x22e674(0x404,0x32f,0x404,0x3ca)](_0x4c6f34,_0x590ac9){const _0x475ecf={_0x26c73b:0x35a,_0x14e860:0x3d8,_0x3902fb:0x350,_0x28db14:0x4a2,_0x48f291:0x3a0,_0x594d8a:0x1e4,_0x242b43:0x297,_0x23cd8c:0x10d,_0x45a8e0:0x1a0,_0x45dee2:0x1f2,_0x4c38c9:0x38d,_0xcb2871:0x46c,_0xde8109:0x453,_0x14b5de:0x3c9,_0x5a2117:0x34a,_0x4fb0ce:0x2bd,_0x46c574:0x29a,_0xc5f0a:0x361,_0x535aaf:0x351,_0x5740e4:0x24d,_0x4e9ea3:0xc5},_0x4fe3a0={_0x5637b6:0x55};function _0x5974ea(_0x208871,_0x38f217,_0x441b42,_0x3517c2){return _0x532739(_0x3517c2,_0x208871-0x375,_0x441b42-0x146,_0x3517c2-0x189);}function _0x3a1b4c(_0x3e6ea1,_0x3c2171,_0x116170,_0x55d1d6){return _0x532739(_0x55d1d6,_0x3c2171-0x4e6,_0x116170-0x19d,_0x55d1d6-_0x4fe3a0._0x5637b6);}switch(this[_0x3a1b4c(_0x475ecf._0x26c73b,_0x475ecf._0x14e860,0x472,_0x475ecf._0x3902fb)]){case _0x3a1b4c(0x3d6,0x463,_0x475ecf._0x28db14,_0x475ecf._0x48f291):return this[_0x5974ea(_0x475ecf._0x594d8a,_0x475ecf._0x242b43,0x1cd,_0x475ecf._0x23cd8c)]()[_0x5974ea(0x23d,_0x475ecf._0x45a8e0,0x1c9,_0x475ecf._0x45dee2)](_0x4c6f34,_0x590ac9);case _0x3a1b4c(_0x475ecf._0x4c38c9,_0x475ecf._0xcb2871,_0x475ecf._0xde8109,_0x475ecf._0x14b5de):return this[_0x3a1b4c(0x348,0x361,0x27f,_0x475ecf._0x5a2117)]()[_0x3a1b4c(0x32a,0x34a,0x308,_0x475ecf._0x4fb0ce)](_0x4c6f34,_0x590ac9);case'openai-responses-ws':return this[_0x3a1b4c(_0x475ecf._0x46c574,_0x475ecf._0xc5f0a,_0x475ecf._0x535aaf,0x3d0)]()['responseSocket'](_0x4c6f34,_0x590ac9);default:return this['getOpenAiDelegate']()[_0x5974ea(0x1ab,0x183,_0x475ecf._0x5740e4,_0x475ecf._0x4e9ea3)](_0x4c6f34,_0x590ac9);}}[_0x22e674(0x3f9,0x394,0x411,0x429)](_0x19e242,_0x474f63){const _0x3ecbf4={_0x432d9b:0x1b7,_0x1ff085:0x294,_0x341a54:0x1b7,_0x794194:0x15d,_0x47533b:0x13b,_0x1c6a68:0x84,_0x9a9272:0xae,_0x501fef:0x51,_0x5482a0:0x7c,_0x4ad2f0:0xa9,_0x48d884:0x122,_0x2a229b:0x20c,_0x49b993:0x166,_0x480764:0x96,_0x394cdd:0x99,_0x44e876:0x143,_0x444273:0x70,_0x3b0894:0xe0,_0x1a8eeb:0xa3,_0x632e5a:0x25},_0x22129d={_0x5c0fd3:0xd0,_0x1503a9:0x101,_0x1b20b7:0x2c3},_0x3e638e={_0x3eceea:0xf2,_0x37e46c:0x146,_0x53b030:0x280};function _0x1ff7ba(_0x20f815,_0x14f646,_0x3ccdd3,_0xe93713){return _0x22e674(_0x20f815-_0x3e638e._0x3eceea,_0x14f646-_0x3e638e._0x37e46c,_0x3ccdd3,_0xe93713- -_0x3e638e._0x53b030);}function _0x43c5f5(_0x8af8ab,_0x1ff916,_0x597fe8,_0x4a8ef6){return _0x22e674(_0x8af8ab-_0x22129d._0x5c0fd3,_0x1ff916-_0x22129d._0x1503a9,_0x4a8ef6,_0x597fe8- -_0x22129d._0x1b20b7);}switch(this[_0x43c5f5(0x1eb,0x205,0x131,_0x3ecbf4._0x432d9b)]){case _0x43c5f5(_0x3ecbf4._0x1ff085,0x10e,0x1bc,_0x3ecbf4._0x341a54):return this[_0x1ff7ba(_0x3ecbf4._0x794194,_0x3ecbf4._0x47533b,0x162,0xf1)]()[_0x43c5f5(_0x3ecbf4._0x1c6a68,0x132,0x166,_0x3ecbf4._0x9a9272)](_0x19e242,_0x474f63);case'openai-responses':return this['getOpenAiDelegate']()[_0x43c5f5(_0x3ecbf4._0x501fef,_0x3ecbf4._0x5482a0,0xa8,-0xf)](_0x19e242,_0x474f63);case _0x1ff7ba(_0x3ecbf4._0x4ad2f0,_0x3ecbf4._0x48d884,_0x3ecbf4._0x2a229b,_0x3ecbf4._0x49b993):return this['getOpenAiDelegate']()[_0x1ff7ba(_0x3ecbf4._0x480764,_0x3ecbf4._0x394cdd,_0x3ecbf4._0x44e876,_0x3ecbf4._0x444273)](_0x19e242,_0x474f63);default:return this[_0x43c5f5(_0x3ecbf4._0x3b0894,_0x3ecbf4._0x1a8eeb,0xba,-_0x3ecbf4._0x632e5a)]()[_0x1ff7ba(0x23b,0x204,0x115,0x171)](_0x19e242,_0x474f63);}}};import{randomUUID}from'crypto';var GitHubAccessTokenResolver=class{[_0x22e674(0x496,0x359,0x373,0x3ce)];[_0x22e674(0x4d2,0x47f,0x540,0x48d)];[_0x22e674(0x47d,0x507,0x47b,0x438)];[_0x532739(-0xc,-0x6c,-0xf0,-0x11c)];[_0x22e674(0x3b0,0x365,0x42c,0x3c3)];constructor(_0x476193){const _0x5d1cff={_0x41e8ab:0x35a,_0x795f76:0x32e,_0x9f5480:0x35e,_0x120388:0x301,_0xf4babd:0x373,_0xd40065:0x396,_0x3748b5:0x33b,_0xa916b7:0x359,_0x56ee02:0x3c8,_0x4b602a:0x387,_0x1626fb:0x1e6,_0xfadb7c:0x17a,_0x291d51:0x2b8,_0x2df589:0x3c2,_0x163a32:0x315},_0x197b88={_0x19d46f:0x101,_0x4befca:0x1dc,_0x330667:0x1c7},_0x3aa87c={_0x350880:0x114,_0x54df94:0x14e};this['accessToken']=_0x476193[_0x39b632(_0x5d1cff._0x41e8ab,_0x5d1cff._0x795f76,_0x5d1cff._0x9f5480,_0x5d1cff._0x120388)],this[_0x83896f(0x2c6,_0x5d1cff._0xf4babd,0x247,_0x5d1cff._0xd40065)]=trimTrailingSlashes2(_0x476193[_0x39b632(0x383,0x3ff,0x41d,_0x5d1cff._0x3748b5)]),this[_0x39b632(_0x5d1cff._0xa916b7,0x46f,_0x5d1cff._0x56ee02,_0x5d1cff._0x4b602a)]=_0x476193[_0x83896f(_0x5d1cff._0x1626fb,_0x5d1cff._0xfadb7c,0x251,_0x5d1cff._0x291d51)],this[_0x39b632(0x367,0x42b,0x426,_0x5d1cff._0x2df589)]=trimTrailingSlashes2(_0x476193[_0x83896f(0x2cf,_0x5d1cff._0x163a32,0x2b4,0x3af)]);function _0x39b632(_0x47e774,_0x138bc5,_0x3a5bea,_0x2d5b2d){return _0x22e674(_0x47e774-_0x3aa87c._0x350880,_0x138bc5-_0x3aa87c._0x54df94,_0x47e774,_0x3a5bea- -0x70);}function _0x83896f(_0x43f58b,_0xe3ad24,_0x2c5f0b,_0x4d538c){return _0x22e674(_0x43f58b-_0x197b88._0x19d46f,_0xe3ad24-_0x197b88._0x4befca,_0x2c5f0b,_0x43f58b- -_0x197b88._0x330667);}this['tokenExchangeApiVersion']=_0x476193['tokenExchangeApiVersion'];}async['resolve'](_0x5f0f13){const _0x1861aa={_0x1f9578:0x36,_0x1ba9de:0x20,_0x48c9ef:0xec,_0x4e9728:0x41,_0x1152d2:0x15f,_0xe5fcfc:0x16d,_0x2dd102:0x1b2,_0x1b5509:0xf3,_0x2f5d70:0x65,_0x3ca656:0x26,_0x4f7bd5:0x243,_0x2533ac:0x1ee,_0x4028b2:0x140,_0x1e598f:0x30,_0x43c8f0:0x8a,_0x156528:0xf0,_0x564758:0x35,_0x4a76a4:0x8a,_0x4af89e:0x43,_0x317bf4:0x81,_0x1cf6e1:0x55,_0x4c0712:0x66,_0x161a13:0x10d,_0x2ceac2:0x111,_0x40e664:0x2f,_0x1ab771:0x28,_0x38b7b8:0x9,_0x321863:0x13e,_0x1d91ce:0x9c,_0x1e03cb:0x6b,_0x31af17:0x42,_0x45c983:0x67,_0x16545a:0x20,_0x4b0fe4:0xa8,_0x265ea3:0xc1,_0x37d94f:0x1d,_0x2e0989:0x9,_0x3bfe89:0x87,_0x139c41:0x9a,_0x12e86a:0x1e7,_0x5727bb:0x18b},_0x220a33={_0x571ac9:0xaa},_0x535340={_0xe7866c:0x145,_0x2c51ef:0x312};function _0x58c8a6(_0x206bbd,_0x51ffdf,_0x1d698a,_0x4b4fe0){return _0x22e674(_0x206bbd-0x1b8,_0x51ffdf-_0x535340._0xe7866c,_0x4b4fe0,_0x206bbd- -_0x535340._0x2c51ef);}const _0x3f5542=await this[_0x20f6fa(-0x89,-0x2e,_0x1861aa._0x1f9578,-_0x1861aa._0x1ba9de)](this[_0x20f6fa(_0x1861aa._0x48c9ef,-_0x1861aa._0x4e9728,0x10a,0x3e)]+'/copilot_internal/v2/token',{'method':_0x20f6fa(-_0x1861aa._0x1152d2,-_0x1861aa._0xe5fcfc,-_0x1861aa._0x2dd102,-_0x1861aa._0x1b5509),'headers':new Headers({'accept':_0x20f6fa(-0x38,-_0x1861aa._0x2f5d70,0x4d,_0x1861aa._0x3ca656),'authorization':_0x58c8a6(0x19e,_0x1861aa._0x4f7bd5,0xf5,_0x1861aa._0x2533ac)+this[_0x20f6fa(0x3b,-_0x1861aa._0x4028b2,_0x1861aa._0x1e598f,-_0x1861aa._0x43c8f0)],'editor-version':'vscode/1.106.1','user-agent':_0x20f6fa(-_0x1861aa._0x156528,-_0x1861aa._0x564758,-0x168,-0xe5),'x-github-api-version':this[_0x20f6fa(-0x9f,-_0x1861aa._0x4a76a4,0x7,-0x95)]}),'signal':_0x5f0f13});function _0x20f6fa(_0x2bbb5e,_0x2826ec,_0x441672,_0x3d82f8){return _0x532739(_0x2826ec,_0x3d82f8-_0x220a33._0x571ac9,_0x441672-0x192,_0x3d82f8-0x1c1);}if(!_0x3f5542['ok'])return{'credential':{'kind':_0x58c8a6(0x102,0x1a9,0x14e,0x138),'value':this[_0x20f6fa(-_0x1861aa._0x4af89e,-_0x1861aa._0x317bf4,-_0x1861aa._0x1cf6e1,-0x8a)]},'endpoints':{'api':this[_0x20f6fa(_0x1861aa._0x4c0712,_0x1861aa._0x161a13,_0x1861aa._0x2ceac2,0x35)]}};const _0x878aa=await _0x3f5542[_0x20f6fa(-_0x1861aa._0x40e664,_0x1861aa._0x1ab771,_0x1861aa._0x38b7b8,-0xb8)]();return{'credential':{'kind':_0x20f6fa(-0x4c,-_0x1861aa._0x321863,-0x4d,-0x61),'value':_0x878aa[_0x20f6fa(0xc8,-_0x1861aa._0x1d91ce,-_0x1861aa._0x1e03cb,_0x1861aa._0x31af17)]??this['accessToken']},'endpoints':{'api':_0x878aa[_0x58c8a6(-_0x1861aa._0x38b7b8,0xc3,-_0x1861aa._0x45c983,_0x1861aa._0x40e664)]?.[_0x58c8a6(_0x1861aa._0x16545a,_0x1861aa._0x4b0fe4,0xc6,-0x68)]??this[_0x20f6fa(_0x1861aa._0x265ea3,-0x8a,0x107,0x35)],'originTracker':_0x878aa['endpoints']?.[_0x58c8a6(_0x1861aa._0x37d94f,0xec,-0x45,0x41)],'proxy':_0x878aa['endpoints']?.['proxy'],'telemetry':_0x878aa[_0x58c8a6(-_0x1861aa._0x2e0989,_0x1861aa._0x3bfe89,_0x1861aa._0x139c41,0xc5)]?.[_0x58c8a6(0x15d,_0x1861aa._0x12e86a,_0x1861aa._0x5727bb,0x166)]}};}};function trimTrailingSlashes2(_0x1ce964){const _0x443422={_0x5b8ce4:0x42e},_0x3c37a3={_0x32625f:0x44f,_0x91ffdc:0xd3,_0x10c914:0xc6};function _0x2f2347(_0x5d70b3,_0x3ad880,_0x59db85,_0x1882e0){return _0x532739(_0x5d70b3,_0x3ad880-_0x3c37a3._0x32625f,_0x59db85-_0x3c37a3._0x91ffdc,_0x1882e0-_0x3c37a3._0x10c914);}return _0x1ce964[_0x2f2347(_0x443422._0x5b8ce4,0x356,0x2a3,0x2b5)](/\/+$/,'');}function createModelInfo(_0xa3dddd){const _0xc1d978={_0x3c1e5b:0x175,_0x2a5c8d:0x103,_0x5c402d:0xba,_0x278d35:0x1d0,_0x6a7986:0x1b3,_0x3d4fa9:0x3a7,_0x517386:0x3bd,_0x28b81d:0x128,_0xddfbab:0x4b4,_0xf482a2:0x4fc},_0x5b32ec={_0xef1ca0:0x52f,_0x194c7a:0x175,_0x586026:0x6f},_0x26f7c8={_0x12ac58:0x106,_0x279b71:0x279},_0x318524=_0xa3dddd[_0xf14285(0x343,0x397,0x2e9,0x393)]??_0xa3dddd[_0x2c7984(_0xc1d978._0x3c1e5b,_0xc1d978._0x2a5c8d,0x17d,_0xc1d978._0x5c402d)],_0x4c2430=_0xa3dddd['capabilities']?.[_0x2c7984(0x238,_0xc1d978._0x278d35,0x162,_0xc1d978._0x6a7986)]?.[_0xf14285(_0xc1d978._0x3d4fa9,0x385,0x2e8,_0xc1d978._0x517386)],_0x1598b3=_0xa3dddd[_0x2c7984(0x4f,0x46,_0xc1d978._0x28b81d,0x1eb)]?.['limits']?.[_0xf14285(_0xc1d978._0xddfbab,_0xc1d978._0xf482a2,0x3f0,0x531)];function _0x2c7984(_0x53f5b2,_0x1c3f1b,_0x245221,_0x4d8347){return _0x22e674(_0x53f5b2-_0x26f7c8._0x12ac58,_0x1c3f1b-0xec,_0x1c3f1b,_0x245221- -_0x26f7c8._0x279b71);}function _0xf14285(_0x12777d,_0x25797d,_0x5d4fa6,_0x1ee10e){return _0x532739(_0x1ee10e,_0x12777d-_0x5b32ec._0xef1ca0,_0x5d4fa6-_0x5b32ec._0x194c7a,_0x1ee10e-_0x5b32ec._0x586026);}const _0x5f075a=_0x4c2430!==void 0x0||_0x1598b3!==void 0x0?{..._0x4c2430!==void 0x0?{'contextWindow':_0x4c2430}:{},..._0x1598b3!==void 0x0?{'maxOutput':_0x1598b3}:{}}:void 0x0;return{'id':_0xa3dddd['id'],'name':_0xa3dddd['name']??_0xa3dddd['id'],..._0x5f075a?{'limits':_0x5f075a}:{},..._0x318524?{'supportedEndpoints':_0x318524}:{}};}function deduplicateModels(_0x385ea6){const _0x1b197e={_0xef1ac0:0xbe,_0x253a34:0x514,_0x52f3a5:0x53b,_0x55ed9b:0x5bd,_0x12dae2:0x64b,_0x85e9c:0x5a1},_0x293e96={_0x57560e:0x19},_0x4bebc1={_0x541248:0x3a},_0x542e03=new Map();function _0x490b8e(_0x5d79df,_0x5b67c6,_0x151cab,_0x932976){return _0x22e674(_0x5d79df-_0x4bebc1._0x541248,_0x5b67c6-0x4c,_0x5b67c6,_0x932976- -0x2c1);}for(const _0x11d3f8 of _0x385ea6){!_0x542e03['has'](_0x11d3f8['id'])&&_0x542e03[_0x490b8e(0x33,0xfa,0x113,_0x1b197e._0xef1ac0)](_0x11d3f8['id'],_0x11d3f8);}function _0x3735d0(_0x517013,_0x4df2ce,_0x50ef69,_0x419e1b){return _0x532739(_0x517013,_0x4df2ce-0x712,_0x50ef69-_0x293e96._0x57560e,_0x419e1b-0x10c);}return Array[_0x3735d0(0x5af,_0x1b197e._0x253a34,_0x1b197e._0x52f3a5,_0x1b197e._0x55ed9b)](_0x542e03[_0x3735d0(_0x1b197e._0x12dae2,_0x1b197e._0x85e9c,_0x1b197e._0x253a34,0x56c)]());}function hasUserPromptContent(_0x7dd77f){const _0x3b5937={_0xdce5ce:0x130,_0x591871:0x35,_0x3b00b5:0x140,_0x49af0f:0x58,_0x4ce248:0x12d},_0x3321a9={_0x3f0f67:0x208,_0x4bea79:0x179,_0x3cfc2b:0x196,_0x24d969:0xfd,_0x34c605:0x191,_0xfb9243:0xa5,_0x2789e9:0x35,_0x2a5273:0x106,_0x9bae5:0x1a1,_0x32637a:0x1d7,_0x51855c:0x14f,_0x39ea1b:0x19,_0x2ce84a:0x70,_0xae1813:0x77,_0x5a7b38:0x37,_0x1a64af:0x2b,_0x31855e:0xb6},_0x555976={_0x106cb7:0x1d},_0x5e83ad={_0x17c2af:0x1b7,_0x64e86f:0x3e0};function _0x5e2ab0(_0x1b0a04,_0xec506c,_0x577124,_0x5f0e04){return _0x22e674(_0x1b0a04-0xf5,_0xec506c-_0x5e83ad._0x17c2af,_0x1b0a04,_0xec506c- -_0x5e83ad._0x64e86f);}function _0x571779(_0x3c84ca,_0x3b4103,_0x12ae2e,_0x51a618){return _0x532739(_0x51a618,_0x3c84ca-0x25c,_0x12ae2e-0x123,_0x51a618-0x104);}if(typeof _0x7dd77f===_0x571779(_0x3b5937._0xdce5ce,0xbd,0x155,0x1c5))return _0x7dd77f[_0x5e2ab0(-_0x3b5937._0x591871,-0xe6,-0x20,-0x129)]()['length']>0x0;if(!Array[_0x5e2ab0(_0x3b5937._0x3b00b5,0x97,-0x2c,_0x3b5937._0x49af0f)](_0x7dd77f))return![];return _0x7dd77f[_0x571779(_0x3b5937._0x4ce248,0x180,0xec,0x174)](_0x17ec7a=>{const _0x2aed0a={_0x40b8ac:0x1b4};if(!_0x17ec7a||typeof _0x17ec7a!==_0x3c2bde(_0x3321a9._0x3f0f67,0x1de,0x223,_0x3321a9._0x4bea79))return![];function _0x3c2bde(_0x582d44,_0x29e392,_0xca7cc0,_0x2789e2){return _0x571779(_0x29e392- -_0x555976._0x106cb7,_0x29e392-0x135,_0xca7cc0-0x9d,_0xca7cc0);}function _0x5d5679(_0x2432bf,_0x43ff58,_0x1d8641,_0x154567){return _0x5e2ab0(_0x1d8641,_0x154567-0x81,_0x1d8641-_0x2aed0a._0x40b8ac,_0x154567-0xb1);}const _0x211001=_0x17ec7a;return(_0x211001[_0x3c2bde(_0x3321a9._0x3cfc2b,_0x3321a9._0x24d969,_0x3321a9._0x34c605,0x91)]===_0x5d5679(-_0x3321a9._0xfb9243,-0x38,_0x3321a9._0x2789e9,0x3a)||_0x211001[_0x3c2bde(_0x3321a9._0x2a5273,0xfd,0xc6,_0x3321a9._0x9bae5)]===_0x3c2bde(0x187,0x1a6,0x1a9,_0x3321a9._0x32637a))&&typeof _0x211001['text']===_0x5d5679(_0x3321a9._0x51855c,-_0x3321a9._0x39ea1b,_0x3321a9._0x2ce84a,_0x3321a9._0xae1813)&&_0x211001[_0x5d5679(0x35,0x1c1,0x14a,0x10a)][_0x3c2bde(0xc5,_0x3321a9._0x5a7b38,-_0x3321a9._0x1a64af,_0x3321a9._0x31855e)]()['length']>0x0;});}function _isUserPromptEntry(_0x129280){const _0x3ae59c={_0x3c128c:0x84,_0x2ed096:0x8,_0x2ab52b:0x3a,_0x5c04fa:0x2a,_0x51723d:0x15},_0x337a97={_0x1de147:0x474,_0x53f558:0x40,_0x36b7b6:0x155},_0x5ec7b5={_0x27bdc4:0x41d};if(!_0x129280||typeof _0x129280!==_0x3c9d9c(0x7a,_0x3ae59c._0x3c128c,0xf4,0x97))return![];function _0x3c9d9c(_0x4c7b7c,_0x2884d9,_0x46e97a,_0x41b843){return _0x22e674(_0x4c7b7c-0x17a,_0x2884d9-0x1a1,_0x41b843,_0x2884d9- -_0x5ec7b5._0x27bdc4);}const _0x5f673b=_0x129280;if(_0x5f673b[_0x35881c(0x414,0x2ba,0x3b2,0x39c)]!=='user')return![];function _0x35881c(_0x39346e,_0x321650,_0x4276b5,_0x4be49d){return _0x532739(_0x39346e,_0x4be49d-_0x337a97._0x1de147,_0x4276b5-_0x337a97._0x53f558,_0x4be49d-_0x337a97._0x36b7b6);}if(_0x5f673b[_0x3c9d9c(-_0x3ae59c._0x2ed096,-0x5d,-0xc5,-0x32)]!==void 0x0&&_0x5f673b[_0x3c9d9c(-0x11d,-0x5d,_0x3ae59c._0x2ab52b,-_0x3ae59c._0x5c04fa)]!=='message')return![];return hasUserPromptContent(_0x5f673b[_0x3c9d9c(_0x3ae59c._0x51723d,0x2d,-0x38,0xab)]);}function determineInitiator(_0x5c5059){const _0x430e80={_0x21c9fa:0x25a,_0x3bd1c3:0x125,_0x5790b4:0x8d,_0x46f36a:0x49c,_0x196305:0x3f6,_0x479e77:0x4d4,_0xdedaf6:0x45f,_0x6a2fc1:0x3fc,_0x44879e:0x455,_0xe302bc:0xcc,_0x2d5a8e:0xda,_0x32c5c5:0x439,_0x2049c8:0x48c,_0x465bed:0x482,_0x651736:0x13a,_0x55096f:0x13b},_0x2b8c76={_0x12ae34:0x18c},_0x355d2e={_0x4e022c:0x86,_0x257a18:0x164};if(!_0x5c5059||typeof _0x5c5059!==_0x358929(0x1f1,_0x430e80._0x21c9fa,0x1fd,_0x430e80._0x3bd1c3))return _0x358929(_0x430e80._0x5790b4,0x6a,-0x57,0x67);function _0x47d518(_0x2a713b,_0x3e3bff,_0x225632,_0xf13798){return _0x22e674(_0x2a713b-0x13b,_0x3e3bff-_0x355d2e._0x4e022c,_0x3e3bff,_0xf13798-_0x355d2e._0x257a18);}const _0x7d7025=_0x47d518(0x4ef,_0x430e80._0x46f36a,_0x430e80._0x196305,_0x430e80._0x479e77)in _0x5c5059?_0x5c5059[_0x47d518(_0x430e80._0xdedaf6,0x45f,0x410,0x4d4)]:_0x47d518(0x52a,_0x430e80._0x6a2fc1,0x3cd,_0x430e80._0x44879e)in _0x5c5059?_0x5c5059[_0x358929(0x41,0xd0,-0x21,-0x14)]:void 0x0;function _0x358929(_0x14e90a,_0x5f633c,_0x180bee,_0x4971ac){return _0x22e674(_0x14e90a-_0x2b8c76._0x12ae34,_0x5f633c-0xca,_0x180bee,_0x14e90a- -0x2b0);}if(!Array[_0x358929(0x1c7,0xf8,0x10f,0x105)](_0x7d7025)||_0x7d7025[_0x47d518(0x489,0x487,0x4a0,0x4ae)]===0x0)return _0x358929(0x8d,_0x430e80._0xe302bc,_0x430e80._0x2d5a8e,0x142);return _isUserPromptEntry(_0x7d7025[_0x7d7025[_0x47d518(_0x430e80._0x32c5c5,_0x430e80._0x2049c8,_0x430e80._0x465bed,0x4ae)]-0x1])?_0x358929(_0x430e80._0x651736,0x107,0xe3,_0x430e80._0x55096f):'agent';}function isUnsupportedApiForModel(_0x5692c6){const _0x417ecc={_0x20464e:0x71,_0x2b2fc3:0x1f,_0x1f8391:0x225},_0x4f40da={_0x1bdf3e:0x6e,_0x3da5c2:0x4e8},_0x2451f0={_0x9794d4:0x417};function _0x5dbf7e(_0x3f3b36,_0x4bd9c9,_0x3d2aff,_0x391071){return _0x22e674(_0x3f3b36-0x86,_0x4bd9c9-0x9c,_0x4bd9c9,_0x391071- -_0x2451f0._0x9794d4);}function _0x3c35ee(_0x16bf7b,_0x378090,_0x465d4b,_0x53b14c){return _0x22e674(_0x16bf7b-0x12b,_0x378090-_0x4f40da._0x1bdf3e,_0x378090,_0x16bf7b- -_0x4f40da._0x3da5c2);}return _0x5692c6[_0x5dbf7e(_0x417ecc._0x20464e,-0x39,-0xf5,-_0x417ecc._0x2b2fc3)](_0x3c35ee(-0x195,-0x11b,-_0x417ecc._0x1f8391,-0x202));}function createResponseError(_0x1ec60c,_0x25df6c){const _0x4d5446={_0x56c86c:0x4,_0xbe51e1:0xde,_0x162163:0xda,_0x3168ba:0xb1,_0x4f3a7b:0x22},_0x1f2456={_0x43ec97:0x1a6,_0x1c2803:0x102,_0x2ba656:0x350},_0xd46870={_0x16d472:0x60d,_0x525b58:0x67};if(_0x1ec60c===0x191||_0x1ec60c===0x193)return new Error('Authentication\x20failed.\x20Please\x20check\x20your\x20API\x20key.');function _0x2bf713(_0x27d692,_0xd042e9,_0x1030a3,_0x461828){return _0x532739(_0xd042e9,_0x1030a3-_0xd46870._0x16d472,_0x1030a3-_0xd46870._0x525b58,_0x461828-0x10c);}if(_0x1ec60c===0x198||_0x1ec60c===0x1ad)return new Error(_0x454c36(-_0x4d5446._0x56c86c,_0x4d5446._0xbe51e1,_0x4d5446._0x162163,0x0));function _0x454c36(_0x1e3872,_0x44bb4c,_0x5a2f71,_0x49d1d3){return _0x22e674(_0x1e3872-_0x1f2456._0x43ec97,_0x44bb4c-_0x1f2456._0x1c2803,_0x5a2f71,_0x44bb4c- -_0x1f2456._0x2ba656);}if(_0x1ec60c===0x190)return new Error(_0x454c36(-_0x4d5446._0x3168ba,-_0x4d5446._0x4f3a7b,-0x5a,-0x92)+_0x25df6c);return new Error(_0x25df6c||'GitHub\x20API\x20error\x20'+_0x1ec60c);}var GitHubModel=class extends OpenAiModel{[_0x22e674(0x43d,0x2cc,0x3ee,0x382)];[_0x22e674(0x341,0x3b2,0x24d,0x329)]=new Map();[_0x532739(-0x153,-0x10e,-0x89,-0x3e)];constructor(_0xd08fba={}){const _0x33154f={_0xe8088a:0x91,_0x713881:0x6f,_0x8c6f57:0x43c,_0x3ff3fe:0x38e,_0x3e2a8a:0x2fa,_0x1b7ed2:0x11,_0x2e0429:0xe1,_0x34b866:0xa6,_0x5b639e:0x2ee,_0x3a5199:0x487,_0x19689b:0x38a,_0x4fcdbb:0x452,_0x37b8df:0x3d8,_0x3bf58e:0x41,_0x2c60be:0x2e7,_0x2c8853:0x3a8,_0x52550a:0x3ad,_0x4fff37:0x532,_0x27cff9:0x4eb,_0x114c80:0x573,_0x5598cc:0x605,_0x31ab58:0x349,_0x556547:0xbb,_0x469b44:0x84,_0xfb2e5:0x483,_0x213f43:0x17b,_0x4fae75:0xf4,_0x20e0e6:0x449,_0x20dfbd:0x471,_0xf0714b:0x4c8,_0x1e18fa:0x50e,_0x5e5136:0x4c7,_0x393b4e:0x517},_0x1bc6cb={_0x22c6e0:0xa1},_0x14b3b1={_0x54e522:0x17e},_0x203613=trimTrailingSlashes2(_0xd08fba['baseUrl']??'https://api.individual.githubcopilot.com');function _0xf0f84a(_0x130728,_0x16cabc,_0x5aa83f,_0x258ad3){return _0x532739(_0x5aa83f,_0x16cabc-0x591,_0x5aa83f-_0x14b3b1._0x54e522,_0x258ad3-0x135);}const _0x21c58b=_0xd08fba[_0x27154b(-_0x33154f._0xe8088a,-0x102,-_0x33154f._0x713881,-0x2f)]??globalThis[_0xf0f84a(0x40d,_0x33154f._0x8c6f57,0x41f,0x3c0)],_0x377427=_0xd08fba[_0xf0f84a(0x36c,_0x33154f._0x3ff3fe,0x2b8,_0x33154f._0x3e2a8a)]??(_0xd08fba[_0x27154b(-_0x33154f._0x1b7ed2,-_0x33154f._0x2e0429,-_0x33154f._0x34b866,-0x1be)]?new GitHubAccessTokenResolver({'accessToken':_0xd08fba['accessToken'],'baseUrl':_0x203613,'fetch':_0x21c58b,'githubApiUrl':_0xd08fba['githubApiUrl']??_0xf0f84a(_0x33154f._0x5b639e,0x3ac,0x3b3,_0x33154f._0x3a5199),'tokenExchangeApiVersion':_0xd08fba[_0xf0f84a(_0x33154f._0x19689b,_0x33154f._0x4fcdbb,_0x33154f._0x37b8df,0x3d5)]??_0x27154b(_0x33154f._0x3bf58e,-0x4d,0x62,-0xd1)}):void 0x0);function _0x27154b(_0x2e5c86,_0x46c592,_0x297e47,_0xf9c8af){return _0x22e674(_0x2e5c86-_0x1bc6cb._0x22c6e0,_0x46c592-0x1c9,_0x2e5c86,_0x46c592- -0x4af);}const _0x2d879b=_0xd08fba[_0xf0f84a(_0x33154f._0x2c60be,_0x33154f._0x2c8853,0x322,0x43e)]??'vscode/1.104.2',_0x291942=_0xd08fba[_0xf0f84a(_0x33154f._0x52550a,0x387,0x2bc,0x335)]??_0xf0f84a(0x5a2,_0x33154f._0x4fff37,0x51d,0x5b3),_0x154bec=({body:_0xfd095b})=>{return{'editor-plugin-version':_0x291942,'editor-version':_0x2d879b,'x-initiator':determineInitiator(_0xfd095b),'x-request-id':randomUUID()};},_0x12ebbe={'apiKey':_0xd08fba['apiKey'],'baseUrl':_0x203613,'fetch':_0x21c58b,'maxTokens':_0xd08fba[_0xf0f84a(0x405,0x4c8,_0x33154f._0x27cff9,0x52a)],'model':_0xd08fba[_0xf0f84a(_0x33154f._0x114c80,0x52b,0x5fa,_0x33154f._0x5598cc)],'reasoning':_0xd08fba['reasoning'],'providerSessionResolver':_0x377427,'requestMutators':_0xd08fba[_0xf0f84a(0x31b,0x3b3,_0x33154f._0x31ab58,0x38e)],'headerResolver':_0x154bec};super(_0x12ebbe),this[_0x27154b(-0x5a,-_0x33154f._0x556547,-_0x33154f._0x469b44,-0x8a)]=_0xd08fba[_0xf0f84a(0x4da,_0x33154f._0xfb2e5,0x425,0x493)]??_0x27154b(-_0x33154f._0x213f43,-0xe6,-_0x33154f._0x4fae75,-0x1c7),this['anthropicDelegate']=new AnthropicModel({'apiKey':_0xd08fba[_0xf0f84a(0x3d9,_0x33154f._0x20e0e6,_0x33154f._0x20dfbd,0x521)],'authScheme':'bearer','baseUrl':_0x203613,'fetch':_0x21c58b,'headerResolver':_0x154bec,'maxTokens':_0xd08fba[_0xf0f84a(0x58a,_0x33154f._0xf0714b,_0x33154f._0x1e18fa,_0x33154f._0x5e5136)],'model':_0xd08fba[_0xf0f84a(0x5c5,0x52b,_0x33154f._0x393b4e,0x4c6)],'reasoning':_0xd08fba['reasoning'],'providerSessionResolver':_0x377427,'requestMutators':_0xd08fba['requestMutators']});}[_0x532739(-0x14e,-0x1fb,-0x279,-0x15c)](){return new Error('GitHubModel\x20requires\x20an\x20apiKey,\x20accessToken,\x20or\x20providerSessionResolver');}['usesResponsesApi'](_0x110af6){const _0x288985={_0x3b9d59:0x3a6,_0x35cc8d:0x355,_0x1d03dc:0x3db,_0x4f5eee:0x4db,_0x253acf:0x43a,_0x4ac7a0:0x4d5,_0x45ce24:0x38a},_0xf580f8={_0x163caa:0x113},_0x492ffc={_0x5a8635:0x4e5,_0x1f073f:0x145},_0x154b2d=this[_0x4c95b7(0x2c5,0x30c,_0x288985._0x3b9d59,0x3d6)]['get'](_0x110af6);if(!_0x154b2d)return![];function _0x4c95b7(_0x46ae47,_0x218aa6,_0x5d9e17,_0x6f1d7f){return _0x532739(_0x5d9e17,_0x218aa6-_0x492ffc._0x5a8635,_0x5d9e17-0x82,_0x6f1d7f-_0x492ffc._0x1f073f);}function _0x281f3a(_0x5252cf,_0x8392e2,_0x3a4523,_0x43ec4d){return _0x532739(_0x5252cf,_0x3a4523-_0xf580f8._0x163caa,_0x3a4523-0x164,_0x43ec4d-0x146);}return!_0x154b2d[_0x4c95b7(_0x288985._0x35cc8d,_0x288985._0x1d03dc,0x34d,0x44e)](_0x4c95b7(_0x288985._0x4f5eee,_0x288985._0x253acf,_0x288985._0x4ac7a0,0x514))&&_0x154b2d['includes'](_0x4c95b7(0x46d,0x44a,_0x288985._0x45ce24,0x3f2));}[_0x532739(-0xa6,-0x106,-0xe8,-0xa1)](_0x39cc3f){const _0x529f1a={_0xaa39f4:0x2e2,_0x199c5e:0x32b,_0x7b47d2:0x4ef,_0x4d44dd:0x437,_0x4f9d20:0x585,_0x1b8051:0x4ce,_0x222c5f:0x5ec,_0x453e1f:0x673,_0x3518e5:0x2e4,_0x4b0b58:0x2ea,_0x6b43b3:0x2d1,_0x125df6:0x3fa,_0x2a9b1b:0x44c,_0x331d6f:0x500,_0x75d641:0x551,_0x3011fc:0x567,_0x2607e4:0x530,_0x1d0ae8:0x3d1},_0x5a8974={_0x180ac6:0x504,_0x51a8ba:0x1d4,_0x508577:0xdf};function _0x55f6d0(_0x35d81f,_0x95612d,_0x3ba065,_0x148523){return _0x532739(_0x3ba065,_0x148523-_0x5a8974._0x180ac6,_0x3ba065-_0x5a8974._0x51a8ba,_0x148523-_0x5a8974._0x508577);}const _0xfb231f=this[_0x55f6d0(0x37e,_0x529f1a._0xaa39f4,0x342,_0x529f1a._0x199c5e)][_0x1a4698(_0x529f1a._0x7b47d2,_0x529f1a._0x4d44dd,_0x529f1a._0x4f9d20,_0x529f1a._0x1b8051)](_0x39cc3f[_0x1a4698(_0x529f1a._0x222c5f,0x5e8,_0x529f1a._0x453e1f,0x568)]);if(!_0xfb231f)return![];if(resolveOpenAiReasoningConfig(_0x39cc3f[_0x55f6d0(_0x529f1a._0x3518e5,_0x529f1a._0x4b0b58,_0x529f1a._0x6b43b3,0x365)]))return _0xfb231f[_0x55f6d0(0x3f7,0x4e0,0x4c7,_0x529f1a._0x125df6)](_0x55f6d0(_0x529f1a._0x2a9b1b,0x49c,_0x529f1a._0x331d6f,0x469));function _0x1a4698(_0x1faa72,_0x5a0ea2,_0x172192,_0x5afb7f){return _0x22e674(_0x1faa72-0xb,_0x5a0ea2-0x182,_0x5afb7f,_0x1faa72-0x150);}return this[_0x55f6d0(_0x529f1a._0x75d641,0x3f8,_0x529f1a._0x3011fc,0x4ac)](_0x39cc3f[_0x55f6d0(0x54e,_0x529f1a._0x2607e4,_0x529f1a._0x1d0ae8,0x49e)]);}[_0x532739(-0x1ad,-0xe1,-0x187,-0x58)](_0x47a680){const _0x13c229={_0x289290:0x44f,_0x2fb462:0x339,_0x5c6726:0x366,_0x2091c0:0x410},_0x574d59={_0x37d219:0x83},_0xae2dce={_0x33cc39:0x15c};function _0x4adabc(_0x27f34c,_0x26c76a,_0x27c960,_0x336053){return _0x532739(_0x27c960,_0x26c76a-0x56f,_0x27c960-0xf8,_0x336053-_0xae2dce._0x33cc39);}function _0x59b357(_0xd6a031,_0x4c2fc3,_0x24ecab,_0x4620a6){return _0x22e674(_0xd6a031-_0x574d59._0x37d219,_0x4c2fc3-0x7a,_0xd6a031,_0x4620a6- -0x333);}this[_0x4adabc(_0x13c229._0x289290,0x396,0x3ca,0x2ea)][_0x4adabc(_0x13c229._0x2fb462,0x3ec,_0x13c229._0x5c6726,_0x13c229._0x2091c0)](_0x47a680,['/responses']);}[_0x22e674(0x42a,0x456,0x544,0x465)](_0x614ffd){const _0x4a365d={_0x53c318:0x564,_0x736e7d:0x4ee,_0x5a35a8:0x4f9,_0x1536f5:0x519},_0x32810e={_0x226e67:0x18f},_0xaa79c6={_0x2e4daa:0x79,_0x45f520:0x426};function _0x267944(_0xa987ba,_0x274965,_0x239f9f,_0x584fa3){return _0x22e674(_0xa987ba-_0xaa79c6._0x2e4daa,_0x274965-0x98,_0x274965,_0x239f9f- -_0xaa79c6._0x45f520);}function _0x446729(_0x26accb,_0x52292e,_0x4f91df,_0x48949b){return _0x532739(_0x48949b,_0x4f91df-0x64d,_0x4f91df-_0x32810e._0x226e67,_0x48949b-0x79);}if(_0x614ffd instanceof OpenAiApiError)return createResponseError(_0x614ffd['status'],_0x614ffd[_0x446729(_0x4a365d._0x53c318,0x63c,0x586,0x5f5)]||_0x614ffd[_0x446729(_0x4a365d._0x736e7d,_0x4a365d._0x5a35a8,0x460,_0x4a365d._0x1536f5)]);return _0x614ffd;}[_0x22e674(0x2f6,0x2da,0x340,0x32d)](_0x3dc762,_0x3a51d3){const _0x52b114={_0x2636c2:0xa8,_0x2bb6a7:0x9,_0x443c7f:0x402,_0x64fb24:0x3a9,_0x32142d:0x379,_0x548f5a:0x3f1,_0x29359c:0x4c8,_0x21bd21:0x33d,_0x29f960:0x38c,_0x2108c5:0x18d,_0x4d8829:0xcd,_0x59b42c:0x1ae,_0x2f0dbf:0x4bf,_0x4374fd:0x588,_0x56faa4:0x1f,_0x22c9b1:0x95,_0x3f2c6d:0xcc,_0x44accd:0x38,_0x1c4976:0x47a,_0x128299:0x4cf,_0x4061e0:0x4fa,_0x2c4f82:0x41b},_0x330efc={_0x24d176:0x19f,_0x512c36:0x172,_0x5a47b2:0x405},_0x54bf96={_0x2d6136:0x1c9,_0x51252b:0x27};switch(this['surface']){case _0x2c6d73(_0x52b114._0x2636c2,-_0x52b114._0x2bb6a7,0x7a,0x121):return this[_0x4645f4(0x3a7,_0x52b114._0x443c7f,_0x52b114._0x64fb24,_0x52b114._0x32142d)][_0x4645f4(0x404,0x482,_0x52b114._0x548f5a,_0x52b114._0x29359c)](_0x3dc762,_0x3a51d3);case _0x4645f4(0x43e,_0x52b114._0x21bd21,0x378,_0x52b114._0x29f960):return this[_0x2c6d73(-_0x52b114._0x2108c5,-0xb7,-_0x52b114._0x4d8829,-_0x52b114._0x59b42c)](_0x3dc762,_0x3a51d3);case _0x4645f4(_0x52b114._0x2f0dbf,_0x52b114._0x4374fd,0x4af,0x4e6):return this[_0x4645f4(0x3f7,0x405,0x38d,0x2f6)](_0x3dc762,_0x3a51d3);case _0x2c6d73(-0x6e,0x58,-_0x52b114._0x56faa4,_0x52b114._0x22c9b1):return this[_0x2c6d73(0xee,-_0x52b114._0x3f2c6d,0x8,_0x52b114._0x44accd)](_0x3dc762,_0x3a51d3);case'auto':return this[_0x2c6d73(0x66,-0x109,-0x3b,0x7c)](_0x3dc762,_0x3a51d3);}function _0x4645f4(_0x218609,_0x3417c3,_0x1b13aa,_0x557b17){return _0x22e674(_0x218609-_0x54bf96._0x2d6136,_0x3417c3-0x89,_0x3417c3,_0x1b13aa-_0x54bf96._0x51252b);}function _0x2c6d73(_0x56dfbd,_0x130344,_0x58730d,_0x32d6a4){return _0x22e674(_0x56dfbd-_0x330efc._0x24d176,_0x130344-_0x330efc._0x512c36,_0x32d6a4,_0x58730d- -_0x330efc._0x5a47b2);}throw new Error(_0x4645f4(0x3ca,_0x52b114._0x1c4976,0x452,0x3f4)+String(this[_0x4645f4(_0x52b114._0x128299,_0x52b114._0x4061e0,_0x52b114._0x2c4f82,0x451)]));}[_0x22e674(0x365,0x27f,0x392,0x33a)](_0xe96083,_0x1a6178){const _0x2dc2a1={_0x502a2f:0x6e2,_0x5ab95f:0x652,_0x3c1ad1:0x634,_0x4a2789:0x73e,_0x5c04f5:0x6c5,_0x3b8bca:0x693,_0x127010:0x6e6,_0x556afe:0x4b3,_0x10ccd3:0x4b0,_0x5ad5f5:0x644,_0x300786:0x705,_0x304c0a:0x57a,_0x52836a:0x571,_0x483e24:0x51d,_0x5efb7b:0x511,_0xb313ee:0x4cc,_0x4dc73e:0x4b3,_0x281df7:0x61b,_0x49c516:0x5b7,_0x3642e0:0x53c,_0x1ef8f2:0x48e},_0x2f3b89={_0x257bf6:0xa0,_0x2771ec:0x1c0},_0x16736b={_0x32de7b:0x64a,_0x57333e:0x1c4};function _0x50ac4d(_0x441fc8,_0x1dd9e3,_0x29ffea,_0x137a14){return _0x532739(_0x1dd9e3,_0x29ffea-_0x16736b._0x32de7b,_0x29ffea-0x165,_0x137a14-_0x16736b._0x57333e);}function _0x5f1da3(_0x524072,_0x2ab334,_0x3efdd4,_0x2cab10){return _0x22e674(_0x524072-_0x2f3b89._0x257bf6,_0x2ab334-_0x2f3b89._0x2771ec,_0x2cab10,_0x2ab334-0x25e);}switch(this[_0x5f1da3(_0x2dc2a1._0x502a2f,_0x2dc2a1._0x5ab95f,0x5eb,_0x2dc2a1._0x3c1ad1)]){case _0x5f1da3(0x7ab,0x6dd,_0x2dc2a1._0x4a2789,0x792):return this['anthropicDelegate']['stream'](_0xe96083,_0x1a6178);case'openai-chat-completions':return this[_0x5f1da3(0x5ce,0x64f,_0x2dc2a1._0x5c04f5,_0x2dc2a1._0x3b8bca)](_0xe96083,_0x1a6178);case _0x5f1da3(0x77a,_0x2dc2a1._0x127010,0x71b,0x67b):return this[_0x50ac4d(0x424,0x45a,_0x2dc2a1._0x556afe,_0x2dc2a1._0x10ccd3)](_0xe96083,_0x1a6178);case _0x5f1da3(0x604,_0x2dc2a1._0x5ad5f5,_0x2dc2a1._0x300786,0x6f8):return this[_0x5f1da3(_0x2dc2a1._0x304c0a,0x54e,0x4bd,_0x2dc2a1._0x52836a)](_0xe96083,_0x1a6178);case _0x50ac4d(0x577,_0x2dc2a1._0x483e24,_0x2dc2a1._0x5efb7b,_0x2dc2a1._0xb313ee):return this[_0x5f1da3(0x5ea,0x687,0x612,0x746)](_0xe96083,_0x1a6178);}throw new Error(_0x50ac4d(_0x2dc2a1._0x4dc73e,_0x2dc2a1._0x281df7,0x573,0x5c4)+String(this[_0x50ac4d(_0x2dc2a1._0x49c516,0x55f,_0x2dc2a1._0x3642e0,_0x2dc2a1._0x1ef8f2)]));}async[_0x22e674(0x3e1,0x3a0,0x3cc,0x3ca)](_0x4c4516,_0x2d4c31){const _0x5c9b5e={_0x379e42:0x78,_0x28ac87:0x4a,_0x620d18:0x109,_0x19cfe9:0x13e,_0x49d013:0x4c1,_0x4b3b07:0x115,_0x96436b:0x146,_0x201275:0x126,_0x51c214:0xc6,_0x4d2d02:0x185,_0x446168:0x208,_0x144855:0x14c,_0x5f3422:0x16b,_0x252571:0xa4,_0x111a9b:0x666,_0x2c5767:0x73f,_0x2c5a1e:0x160,_0x3f69e0:0xb0,_0x48f4c8:0xdb,_0x284b99:0x26a,_0x252a49:0x226,_0x5a57f2:0x209},_0x2b11ee={_0x26e30d:0x1b0,_0x386d5c:0x180},_0x20e774={_0x5c17f3:0x1d0,_0x28d428:0x190,_0x512571:0x1ca};function _0x3c104f(_0x115f3a,_0x702127,_0x565f77,_0x24ee02){return _0x22e674(_0x115f3a-_0x20e774._0x5c17f3,_0x702127-_0x20e774._0x28d428,_0x24ee02,_0x115f3a-_0x20e774._0x512571);}const _0x6a3c06=this[_0x304f75(_0x5c9b5e._0x379e42,0x34,_0x5c9b5e._0x28ac87,0x2)](_0x4c4516);if(this[_0x304f75(_0x5c9b5e._0x620d18,_0x5c9b5e._0x19cfe9,0x1de,0x8c)]!==_0x3c104f(0x593,0x57d,0x642,_0x5c9b5e._0x49d013))return this['completeViaConfiguredSurface'](_0x6a3c06,_0x2d4c31);if(this[_0x304f75(_0x5c9b5e._0x4b3b07,_0x5c9b5e._0x96436b,_0x5c9b5e._0x201275,0x1ed)](_0x6a3c06))return this[_0x3c104f(0x530,0x52b,0x4a1,0x4c3)](_0x6a3c06,_0x2d4c31);function _0x304f75(_0x1d5127,_0x443d75,_0x1eb193,_0x15e4d4){return _0x22e674(_0x1d5127-_0x2b11ee._0x26e30d,_0x443d75-_0x2b11ee._0x386d5c,_0x1d5127,_0x443d75- -0x2b6);}try{return await this['completeViaChatCompletionsSurface'](_0x6a3c06,_0x2d4c31);}catch(_0x186cf3){if(_0x186cf3 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x186cf3[_0x304f75(_0x5c9b5e._0x51c214,_0x5c9b5e._0x4d2d02,0x20a,_0x5c9b5e._0x446168)]))return this[_0x304f75(_0x5c9b5e._0x144855,_0x5c9b5e._0x5f3422,_0x5c9b5e._0x252571,0x1ce)](_0x6a3c06[_0x3c104f(_0x5c9b5e._0x111a9b,0x69b,0x5d9,_0x5c9b5e._0x2c5767)]),this[_0x304f75(_0x5c9b5e._0x2c5a1e,_0x5c9b5e._0x3f69e0,0x3e,_0x5c9b5e._0x48f4c8)](_0x6a3c06,_0x2d4c31);throw this[_0x304f75(_0x5c9b5e._0x284b99,0x1af,_0x5c9b5e._0x252a49,_0x5c9b5e._0x5a57f2)](_0x186cf3);}throw _0x186cf3;}}async*['stream'](_0x1c3a39,_0x2a95d4){const _0x5cde9c={_0x305418:0xd5,_0x18bd64:0x7d,_0x9c1de5:0xb4,_0x1d70cb:0x137,_0x2d1880:0x7e,_0x3c4993:0x142,_0xd24e82:0x217,_0x416e97:0x1f2,_0x1dcf04:0x36,_0x22389e:0x50,_0x5746a1:0x1be,_0x285e29:0x3c},_0xf1e0f4={_0x538bd7:0xb7,_0x131ca6:0x19c};function _0xd18d1(_0x4d52c0,_0xa1604,_0xeab7b3,_0x1df8be){return _0x22e674(_0x4d52c0-0x46,_0xa1604-0xef,_0x1df8be,_0xeab7b3- -0x471);}const _0x5e19c7=this['applyModelDefaults'](_0x1c3a39);if(this[_0xd18d1(-_0x5cde9c._0x305418,-0x4b,-_0x5cde9c._0x18bd64,-_0x5cde9c._0x9c1de5)]!=='auto'){yield*this[_0xd18d1(-0x217,-0x79,-_0x5cde9c._0x1d70cb,-_0x5cde9c._0x2d1880)](_0x5e19c7,_0x2a95d4);return;}if(this[_0x15b162(-_0x5cde9c._0x3c4993,-0x5c,-0x115,-0xf6)](_0x5e19c7)){yield*this[_0x15b162(-_0x5cde9c._0xd24e82,-0x16a,-_0x5cde9c._0x416e97,-0x187)](_0x5e19c7,_0x2a95d4);return;}function _0x15b162(_0x4db512,_0x52f123,_0x40bbde,_0x318b9c){return _0x532739(_0x52f123,_0x318b9c-0x10,_0x40bbde-_0xf1e0f4._0x538bd7,_0x318b9c-_0xf1e0f4._0x131ca6);}try{yield*this['streamViaChatCompletionsSurface'](_0x5e19c7,_0x2a95d4);}catch(_0x2091fd){if(_0x2091fd instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x2091fd[_0xd18d1(-0x11a,-0x2f,-_0x5cde9c._0x1dcf04,-0xa7)])){this[_0xd18d1(-0xc4,0x48,-_0x5cde9c._0x22389e,-_0x5cde9c._0x305418)](_0x5e19c7['model']),yield*this[_0xd18d1(-0x1d7,-0x32,-0x106,-_0x5cde9c._0x5746a1)](_0x5e19c7,_0x2a95d4);return;}throw this[_0x15b162(-0x111,-0x51,-_0x5cde9c._0x285e29,-0x8d)](_0x2091fd);}throw _0x2091fd;}}async[_0x22e674(0x3b8,0x320,0x2d6,0x2f2)](_0x65844e){const _0x2467b3={_0x507db6:0x70,_0x1dbf51:0x104,_0x50b39c:0x12c,_0x5b8d59:0x1bb,_0x29f538:0x123,_0x546754:0x1f3,_0x26a276:0x3f,_0x36a370:0x78,_0x59211c:0x62,_0x16f458:0xc1,_0x579753:0x49,_0x25fd32:0x4,_0x2576fb:0x8b,_0x42e024:0x85,_0x121958:0xf,_0x5898ef:0x1a5},_0x367258={_0x2c5b60:0x59,_0x4a5887:0x38,_0x37bda0:0x2d,_0x5de017:0x9,_0x1aae36:0x9a,_0x1bfead:0x8a},_0x4af578={_0x26dc77:0x347,_0x355929:0xc4},_0x43d07b={_0x44c8f6:0x15e};function _0x34776d(_0x3c4118,_0x18cd8b,_0x320faf,_0x3512be){return _0x532739(_0x3512be,_0x320faf-_0x43d07b._0x44c8f6,_0x320faf-0xe3,_0x3512be-0x18f);}const _0x449a1f=await this[_0x34776d(_0x2467b3._0x507db6,0xe8,_0x2467b3._0x1dbf51,0x174)]({'path':_0x17277f(_0x2467b3._0x50b39c,_0x2467b3._0x5b8d59,_0x2467b3._0x29f538,_0x2467b3._0x546754),'method':_0x34776d(0x65,-0xd3,-_0x2467b3._0x26a276,-0xf7),'signal':_0x65844e});function _0x17277f(_0x120de2,_0xba11de,_0x5c9906,_0x491989){return _0x532739(_0x5c9906,_0xba11de-_0x4af578._0x26dc77,_0x5c9906-_0x4af578._0x355929,_0x491989-0x1b6);}if(!_0x449a1f['ok'])throw this[_0x34776d(_0x2467b3._0x36a370,_0x2467b3._0x59211c,_0x2467b3._0x16f458,0x116)](await this['toApiError'](_0x449a1f));const _0x37b058=await _0x449a1f[_0x34776d(-0x8,-_0x2467b3._0x579753,-_0x2467b3._0x25fd32,_0x2467b3._0x2576fb)](),_0x206adb=(_0x37b058[_0x34776d(-_0x2467b3._0x42e024,0x22,_0x2467b3._0x121958,0x62)]??[])[_0x17277f(0x255,_0x2467b3._0x5898ef,0x197,0x215)](_0x58ae41=>{const _0x619f3e={_0x4c00c0:0x3d0};function _0x53412c(_0x139897,_0x2954ac,_0x569935,_0x430e9e){return _0x17277f(_0x139897-0x198,_0x569935-_0x619f3e._0x4c00c0,_0x2954ac,_0x430e9e-0xf5);}function _0x1727fb(_0x7648e3,_0x29eed0,_0x28b689,_0x2b084e){return _0x17277f(_0x7648e3-0x85,_0x2b084e- -0x1bb,_0x28b689,_0x2b084e-0x3d);}const _0x2e71e4=createModelInfo(_0x58ae41);return _0x2e71e4[_0x1727fb(0x96,-_0x367258._0x2c5b60,0x15c,0x8a)]&&this[_0x1727fb(0x5c,-0xee,0x5c,-0x4d)][_0x1727fb(-_0x367258._0x4a5887,_0x367258._0x37bda0,-0x42,_0x367258._0x5de017)](_0x2e71e4['id'],_0x2e71e4[_0x1727fb(-0x3c,-0x5b,_0x367258._0x1aae36,_0x367258._0x1bfead)]),_0x2e71e4;});return deduplicateModels(_0x206adb);}};function createHeaders(_0xcd1ea2){const _0x12f69f={_0x46fa02:0x6f,_0x326f8f:0x8},_0x1ee6f2={_0x5cede7:0x11a,_0x5c28cb:0x1b3};function _0x4b1ce6(_0x12de60,_0x253b13,_0x101eb9,_0x33e419){return _0x22e674(_0x12de60-_0x1ee6f2._0x5cede7,_0x253b13-_0x1ee6f2._0x5c28cb,_0x12de60,_0x101eb9-0x231);}const _0x1d9176=new Headers();for(const [_0x5dca2a,_0x49d807]of Object[_0x460ac6(-0xf8,-0x16,_0x12f69f._0x46fa02,0x6e)](_0xcd1ea2)){_0x1d9176[_0x460ac6(-0x5d,0x42,_0x12f69f._0x326f8f,0xb4)](_0x5dca2a,_0x49d807);}function _0x460ac6(_0x130739,_0x4619cf,_0x6862e9,_0x247920){return _0x22e674(_0x130739-0x1b,_0x4619cf-0x171,_0x6862e9,_0x4619cf- -0x33d);}return _0x1d9176;}async function fetchRawResponse(_0x54bac7){const _0x4cf301={_0x3ef825:0x410,_0x213eac:0x4c4,_0x369457:0x576,_0x56a10b:0x57b,_0xaa95f4:0x590,_0x4eb98b:0x5a8,_0x296b1c:0x5bf,_0x2d1958:0x310,_0x1328ef:0x33c,_0x5f17e7:0x1ed,_0x2e1c49:0xee,_0x2c40e1:0x1eb,_0x6c0443:0x136,_0x2eba63:0x26a,_0x549593:0x247,_0x5f028c:0x1f8},_0x4cd4a9={_0x276cc4:0x2f3},_0x12597b={_0x5a2e22:0xbf,_0x42d129:0x190,_0xedac5c:0x117};function _0x245d97(_0x339afc,_0x41f3f1,_0x182d0b,_0x254020){return _0x22e674(_0x339afc-_0x12597b._0x5a2e22,_0x41f3f1-_0x12597b._0x42d129,_0x182d0b,_0x41f3f1-_0x12597b._0xedac5c);}const _0x446102=_0x54bac7[_0x245d97(_0x4cf301._0x3ef825,_0x4cf301._0x213eac,0x42e,0x4b3)]??globalThis[_0x245d97(0x450,0x4c4,_0x4cf301._0x369457,0x545)];function _0x448217(_0x1d1e5e,_0x3dedef,_0x21bce2,_0x241c23){return _0x532739(_0x1d1e5e,_0x241c23-_0x4cd4a9._0x276cc4,_0x21bce2-0x119,_0x241c23-0x18e);}return _0x446102(_0x54bac7[_0x245d97(_0x4cf301._0x56a10b,_0x4cf301._0xaa95f4,0x62b,0x4b8)],{'method':_0x245d97(0x555,_0x4cf301._0x4eb98b,_0x4cf301._0x296b1c,0x65f),'headers':createHeaders(_0x54bac7[_0x448217(0x28c,_0x4cf301._0x2d1958,_0x4cf301._0x1328ef,0x293)]),'body':JSON[_0x448217(_0x4cf301._0x5f17e7,_0x4cf301._0x2e1c49,_0x4cf301._0x2c40e1,_0x4cf301._0x6c0443)](_0x54bac7[_0x448217(0x2d2,0x253,0x2fb,0x22c)]),'signal':_0x54bac7[_0x448217(_0x4cf301._0x2eba63,_0x4cf301._0x549593,0x2d7,_0x4cf301._0x5f028c)]});}async function fetchJsonResponse(_0xbd2126){const _0x47b722={_0x2809ed:0x3e1,_0x5279d9:0x395,_0x31d055:0x3e6,_0x43a6a3:0x47d,_0x376aa5:0x49a,_0xb8028d:0x3f2,_0x14bbb6:0x574,_0x476255:0x508,_0x24cbf6:0x4ce,_0x271ab0:0x49a,_0x1c903b:0x48c},_0xca6fa9={_0x249105:0x5c2,_0x1b5bca:0x1dd,_0x15c4bd:0x1ad},_0x44dce2=await fetchRawResponse(_0xbd2126);function _0x1755d4(_0x1d4bcb,_0x9b822a,_0xb9ce56,_0x501751){return _0x532739(_0x9b822a,_0x1d4bcb-_0xca6fa9._0x249105,_0xb9ce56-_0xca6fa9._0x1b5bca,_0x501751-_0xca6fa9._0x15c4bd);}if(!_0x44dce2['ok']){const _0x1508c0=await _0x44dce2['text'](),_0x2fc4a9=_0x1508c0[_0x554d2e(_0x47b722._0x2809ed,_0x47b722._0x5279d9,0x4a2,_0x47b722._0x31d055)]()||_0x44dce2[_0x1755d4(0x45c,_0x47b722._0x43a6a3,_0x47b722._0x376aa5,_0x47b722._0xb8028d)]||_0x1755d4(_0x47b722._0x14bbb6,_0x47b722._0x476255,0x527,_0x47b722._0x24cbf6);throw new Error('Provider\x20request\x20failed\x20with\x20status\x20'+_0x44dce2[_0x1755d4(0x4b5,0x3d4,_0x47b722._0x271ab0,0x4ed)]+':\x20'+_0x2fc4a9);}function _0x554d2e(_0x9841fb,_0x547b11,_0x121a71,_0xb504b8){return _0x532739(_0x9841fb,_0xb504b8-0x5ee,_0x121a71-0x9c,_0xb504b8-0x19f);}return await _0x44dce2[_0x554d2e(0x51c,0x56e,0x43e,_0x47b722._0x1c903b)]();}function findLastMessage(_0x27138e,_0xe8225d){const _0x576ec9={_0x56a7de:0x451,_0x2e39c8:0x51c,_0x28dc86:0x3cf,_0x1d6be4:0x679,_0x2bda5b:0x78e},_0x278433={_0x37e46b:0x105,_0x4a7098:0x38,_0x137029:0x284},_0x3af059={_0x4164f7:0x609,_0xdc4e26:0xb8};for(let _0x32bad1=_0x27138e[_0x1787cf(_0x576ec9._0x56a7de,_0x576ec9._0x2e39c8,_0x576ec9._0x28dc86,0x39a)]-0x1;_0x32bad1>=0x0;_0x32bad1-=0x1){if(_0x27138e[_0x32bad1][_0x43ca1d(0x6ae,_0x576ec9._0x1d6be4,_0x576ec9._0x2bda5b,0x623)]===_0xe8225d)return _0x27138e[_0x32bad1];}function _0x1787cf(_0x51aaee,_0xef4b65,_0x3cd56,_0x52bfde){return _0x532739(_0xef4b65,_0x51aaee-_0x3af059._0x4164f7,_0x3cd56-0x3e,_0x52bfde-_0x3af059._0xdc4e26);}function _0x43ca1d(_0xbe98f5,_0x3bc594,_0x503a82,_0x4687d1){return _0x22e674(_0xbe98f5-_0x278433._0x37e46b,_0x3bc594-_0x278433._0x4a7098,_0x4687d1,_0xbe98f5-_0x278433._0x137029);}return void 0x0;}function hasTool(_0x1a1236,_0x1a9df1){const _0x3cc799={_0xde7b09:0x509,_0x2787cd:0x540,_0x32d284:0x481,_0x12980e:0x563,_0x1ad565:0x56a},_0x1194c6={_0x2987ec:0x175,_0x5e321b:0x95},_0x42bf4e={_0x3e2726:0x1d8};function _0x167e31(_0x3ea1b2,_0x306e84,_0x2a9d34,_0x2f9521){return _0x22e674(_0x3ea1b2-_0x42bf4e._0x3e2726,_0x306e84-0xe,_0x2f9521,_0x306e84-0x190);}function _0x436b81(_0x149526,_0x3c5060,_0xe2c287,_0x3954fe){return _0x22e674(_0x149526-_0x1194c6._0x2987ec,_0x3c5060-0xba,_0x3954fe,_0x3c5060- -_0x1194c6._0x5e321b);}return _0x1a1236[_0x167e31(_0x3cc799._0xde7b09,_0x3cc799._0x2787cd,_0x3cc799._0x32d284,0x58b)][_0x167e31(0x513,_0x3cc799._0x12980e,_0x3cc799._0x1ad565,0x4e4)](_0x18ddcf=>_0x18ddcf['name']===_0x1a9df1);}function createMockResponse(_0x231b9c,_0x5b386d,_0x101aa2,_0xa52fb4){return{'id':_0x231b9c,'content':_0x5b386d,'stopReason':_0x101aa2,'usage':_0xa52fb4};}var MockModel=class{[_0x532739(0x6c,-0x66,-0xfd,-0xf4)];[_0x22e674(0x4c5,0x4f9,0x4a6,0x439)];[_0x532739(-0x28d,-0x215,-0x248,-0x28c)]=[];[_0x532739(-0xde,-0x19f,-0x27c,-0x177)];constructor(_0x2256ed={}){const _0x3410fe={_0x4ec3fc:0x25c,_0x3b801e:0x2e0,_0x4abd1f:0xa6,_0x8c90d1:0x22,_0x46f185:0x79,_0x30ff86:0xa8,_0x4616b5:0xd9,_0x424d81:0x1,_0x5dc343:0x15e,_0x558ed1:0x223,_0x156bc:0x1ea},_0x120279={_0x572dc7:0x2c2,_0xee5583:0x17c},_0x3cf771={_0x52d4bc:0xc8,_0x110e3f:0x194,_0xed8e76:0x1ca};function _0x5d36b2(_0x35bcdd,_0x857963,_0x12a35c,_0x594e45){return _0x532739(_0x35bcdd,_0x594e45-_0x3cf771._0x52d4bc,_0x12a35c-_0x3cf771._0x110e3f,_0x594e45-_0x3cf771._0xed8e76);}this[_0x5e25e7(_0x3410fe._0x4ec3fc,0x1e4,0x294,_0x3410fe._0x3b801e)]=_0x2256ed[_0x5d36b2(_0x3410fe._0x4abd1f,0x6e,_0x3410fe._0x8c90d1,0x62)]??_0x5d36b2(-0xa0,-_0x3410fe._0x46f185,-0x84,-0x63),this[_0x5d36b2(-_0x3410fe._0x30ff86,_0x3410fe._0x4616b5,-0x68,-_0x3410fe._0x424d81)]=_0x2256ed[_0x5e25e7(0x1f9,_0x3410fe._0x5dc343,0x206,_0x3410fe._0x558ed1)]??getDefaultMaxTokens();function _0x5e25e7(_0x22d560,_0x416f56,_0x9d8062,_0x5aeb9e){return _0x532739(_0x9d8062,_0x22d560-_0x120279._0x572dc7,_0x9d8062-0x8c,_0x5aeb9e-_0x120279._0xee5583);}this[_0x5e25e7(0x123,0x18d,0xa7,_0x3410fe._0x156bc)]=_0x2256ed['reasoning']?structuredClone(_0x2256ed['reasoning']):void 0x0;}async[_0x22e674(0x3ff,0x3e1,0x443,0x3ca)](_0x263f76,_0x61a24c){const _0xaa462c={_0x2738b6:0xec,_0x316938:0x184,_0x49d40a:0x117,_0x1a0b58:0xff,_0x3c6d11:0x45,_0x5d629b:0x41d,_0x335e0a:0x3b8,_0x45e97c:0x3b6,_0x1f8f92:0x542,_0x55e786:0x43b,_0x46137d:0x3d5,_0x2933a8:0x16,_0x30c52d:0x78,_0x4909ef:0x9c,_0x578586:0x3a3,_0x4952cc:0x466,_0x10ec5e:0x1c3,_0x2f1f0:0x1c8,_0x3a5050:0x337,_0x50a963:0x386,_0x2cd913:0x3d2,_0x651a16:0x35a,_0x362021:0x8a,_0x513a84:0x46d,_0x1f1579:0x52a,_0x1f1684:0x412,_0x3cd68f:0x18,_0x4c1648:0x533,_0x1c1fb3:0x3fe,_0x56891c:0x3f7,_0x151bf9:0x560,_0x329c59:0x458,_0x45a5d5:0x477,_0x12aba6:0x4c7,_0x59067f:0x193,_0x292b0b:0x18c},_0x36f35b={_0x4dc442:0x462},_0x2c93cb={_0x25f01f:0x5cd,_0x23fcec:0x45,_0x56b33a:0x142},_0x568120={...structuredClone(_0x263f76),..._0x263f76[_0x197607(-_0xaa462c._0x2738b6,-_0xaa462c._0x316938,-0xff,-0x1af)]===void 0x0&&this['reasoning']!==void 0x0?{'reasoning':structuredClone(this[_0x197607(-_0xaa462c._0x49d40a,-0x108,-_0xaa462c._0x1a0b58,-_0xaa462c._0x3c6d11)])}:{}};function _0x23c6f7(_0x345a4d,_0x32b774,_0x521326,_0x24025b){return _0x532739(_0x521326,_0x32b774-_0x2c93cb._0x25f01f,_0x521326-_0x2c93cb._0x23fcec,_0x24025b-_0x2c93cb._0x56b33a);}this[_0x23c6f7(_0xaa462c._0x5d629b,_0xaa462c._0x335e0a,_0xaa462c._0x45e97c,0x419)][_0x23c6f7(_0xaa462c._0x1f8f92,0x465,0x4d4,0x456)](_0x568120);const _0x3e9a64=findLastMessage(_0x568120[_0x23c6f7(0x380,_0xaa462c._0x55e786,_0xaa462c._0x46137d,0x47f)],_0x197607(_0xaa462c._0x2933a8,-0xb8,-_0xaa462c._0x30c52d,-_0xaa462c._0x4909ef));function _0x197607(_0xe35840,_0x5e67a3,_0x325852,_0x552e13){return _0x22e674(_0xe35840-0x1e5,_0x5e67a3-0x4f,_0x552e13,_0x325852- -_0x36f35b._0x4dc442);}const _0x4c8f0b=getToolResultBlocks(_0x3e9a64),_0x1c3223='assistant-'+this[_0x23c6f7(_0xaa462c._0x578586,_0xaa462c._0x335e0a,0x3f1,_0xaa462c._0x4952cc)]['length'];if(_0x4c8f0b[_0x197607(-0x152,-_0xaa462c._0x10ec5e,-0x118,-_0xaa462c._0x2f1f0)]>0x0)return createMockResponse(_0x1c3223,[{'type':'text','text':_0x23c6f7(_0xaa462c._0x3a5050,0x40b,0x43f,0x358)+_0x4c8f0b[0x0]['content']}],_0x23c6f7(_0xaa462c._0x50a963,0x3f6,_0xaa462c._0x2cd913,_0xaa462c._0x651a16),{'inputTokens':0x78,'outputTokens':0x28});const _0x571f67=getTextFromMessage(_0x3e9a64);if(/list .*files|workspace/i[_0x197607(-_0xaa462c._0x362021,0x106,0x20,0x35)](_0x571f67)&&hasTool(_0x568120,_0x23c6f7(0x40e,_0xaa462c._0x513a84,_0xaa462c._0x1f1579,_0xaa462c._0x1f1684)))return createMockResponse(_0x1c3223,[{'type':_0x197607(_0xaa462c._0x3cd68f,-0x60,-0xb6,-0xed),'id':_0x23c6f7(0x5b8,_0xaa462c._0x4c1648,0x56c,0x5f4)+this[_0x23c6f7(0x3ef,0x3b8,_0xaa462c._0x1c1fb3,_0xaa462c._0x56891c)]['length'],'name':'Bash','input':{'command':_0x23c6f7(0x4d4,0x4ff,_0xaa462c._0x151bf9,0x4a0)}}],_0x23c6f7(_0xaa462c._0x329c59,_0xaa462c._0x45a5d5,0x3b2,_0xaa462c._0x12aba6),{'inputTokens':0x6e,'outputTokens':0x1c});return createMockResponse(_0x1c3223,[{'type':'text','text':_0x197607(-0x19f,-_0xaa462c._0x59067f,-0xba,-_0xaa462c._0x292b0b)+_0x571f67}],'end_turn',{'inputTokens':0x50,'outputTokens':0x12});}};function getFallbackModelLimits(_0x3b88a7,_0xfe0830){const _0x3cccac={_0x69eef2:0x2b6,_0x1bc869:0x2d4,_0x2466b2:0x2a6,_0x521081:0x188,_0x43d6f9:0x14,_0x5a4095:0x13c},_0x5886b8={_0x5779d0:0x73},_0x4106bb={_0x456d49:0x377},_0x2f71a6=getModelProfile(_0x3b88a7,_0xfe0830);function _0xbc66d2(_0x25db46,_0x5f4353,_0x599364,_0x2b4506){return _0x532739(_0x5f4353,_0x2b4506-_0x4106bb._0x456d49,_0x599364-0x1f,_0x2b4506-0x9c);}if(!_0x2f71a6?.[_0x4166fd(0x10f,0xc3,0xf9,0x10c)]&&!_0x2f71a6?.[_0xbc66d2(0x214,_0x3cccac._0x69eef2,0x273,0x258)])return void 0x0;function _0x4166fd(_0x5eff88,_0x2a98c7,_0x3a9ff1,_0x2538f4){return _0x532739(_0x2538f4,_0x5eff88-0x1b2,_0x3a9ff1-_0x5886b8._0x5779d0,_0x2538f4-0x1dd);}return{..._0x2f71a6['contextWindow']?{'contextWindow':_0x2f71a6[_0xbc66d2(0x2bc,0x37c,0x222,_0x3cccac._0x1bc869)]}:{},..._0x2f71a6[_0xbc66d2(_0x3cccac._0x2466b2,_0x3cccac._0x521081,0x1fc,0x258)]?{'maxOutput':_0x2f71a6[_0x4166fd(0x93,-_0x3cccac._0x43d6f9,0x176,_0x3cccac._0x5a4095)]}:{}};}function normalizeModelInfo(_0x3aacc1,_0x2251e0){const _0x4d288c={_0x517a66:0x2b2,_0x498cc6:0xa5,_0x27b53f:0x18f,_0x4303b5:0x2e6,_0x151607:0x253,_0x13c86b:0x2d3,_0x9b31a0:0x1f2,_0x54e5ad:0x2cb,_0xa302c7:0x222,_0x2d0db6:0x334,_0x5cd5be:0x263,_0x77e8d6:0x375,_0x47eb00:0x3ce,_0xdd1cd8:0x160,_0x159320:0x1f7,_0x1bda3f:0x2b8,_0x49879a:0x369,_0xbe2cf:0x230},_0x4e18f5={_0x8efe1:0xc1,_0xec5dd6:0x269},_0x5c132e={_0x121434:0x172},_0x5a19b5=typeof _0x2251e0['id']===_0x1bd52c(0x228,_0x4d288c._0x517a66,0x2f6,0x331)?_0x2251e0['id']:'',_0xe761ff=typeof _0x2251e0['name']===_0x420a02(_0x4d288c._0x498cc6,_0x4d288c._0x27b53f,0x16d,0xdf)?_0x2251e0['name']:_0x5a19b5,_0x1a0f1d=normalizeModelLimits(_0x3aacc1,_0x2251e0)??getFallbackModelLimits(_0x3aacc1,_0x5a19b5),_0x1d1e39=Array[_0x420a02(_0x4d288c._0x4303b5,0x22f,0x20e,_0x4d288c._0x151607)](_0x2251e0['supported_endpoints'])?_0x2251e0[_0x1bd52c(_0x4d288c._0x13c86b,_0x4d288c._0x9b31a0,_0x4d288c._0x54e5ad,_0x4d288c._0xa302c7)][_0x1bd52c(0x221,0x2b8,_0x4d288c._0x2d0db6,_0x4d288c._0x5cd5be)](_0x220e36=>typeof _0x220e36==='string'):Array[_0x1bd52c(_0x4d288c._0x77e8d6,0x353,_0x4d288c._0x47eb00,0x2dc)](_0x2251e0['capable_endpoints'])?_0x2251e0[_0x420a02(0x247,_0x4d288c._0xdd1cd8,0x18d,0x141)][_0x1bd52c(_0x4d288c._0x159320,_0x4d288c._0x1bda3f,_0x4d288c._0x49879a,_0x4d288c._0xbe2cf)](_0x26e646=>typeof _0x26e646===_0x420a02(0xee,0x233,0x16d,0x1ac)):void 0x0;function _0x1bd52c(_0x4f9992,_0x11e2d7,_0xb3266b,_0x21bdbd){return _0x22e674(_0x4f9992-_0x5c132e._0x121434,_0x11e2d7-0xad,_0x21bdbd,_0x11e2d7- -0x124);}function _0x420a02(_0x43fdcd,_0x329bb4,_0x1faf95,_0x29ff0c){return _0x22e674(_0x43fdcd-_0x4e18f5._0x8efe1,_0x329bb4-0x1ac,_0x29ff0c,_0x1faf95- -_0x4e18f5._0xec5dd6);}return{'id':_0x5a19b5,'name':_0xe761ff,..._0x1a0f1d?{'limits':_0x1a0f1d}:{},..._0x1d1e39?{'supportedEndpoints':_0x1d1e39}:{}};}function normalizeModelLimits(_0x5e7243,_0x3092a4){const _0x57a6dc={_0x32a923:0x58c,_0x4ea436:0x652,_0x11a8b3:0x5db,_0xfbf8ee:0x73,_0x1069d9:0x77,_0x5d434a:0x3e,_0x5692d3:0xa3,_0x97f98e:0x26,_0x342e1a:0x2e,_0x2610a2:0xa,_0x364ea5:0x563,_0x5f1ad6:0x560,_0x13b4f2:0x8e,_0x518378:0x8e,_0x28a6fc:0x9e,_0x1aa0bb:0x162,_0x87f814:0x61,_0x7c9fcf:0xc0,_0x3f6a48:0x5,_0x4e4d88:0x6b0,_0x41b3f4:0x13f,_0x3f63e9:0x87,_0x596a3d:0x5d,_0x5be831:0xa,_0x523a01:0x8d,_0x30db38:0x53,_0x433e27:0x48,_0x3ed774:0x61,_0x1f6a07:0x57,_0xbe4dcc:0xea,_0x3ba318:0x5d5,_0x2db54d:0x5a9,_0x2bd2a6:0x680,_0x50269f:0x638,_0x342bc2:0x63d,_0x1df62e:0x4d,_0x528fac:0x34,_0x4b82d5:0x4f9,_0x1a582e:0x419,_0xee1717:0x56d,_0x38fb82:0x573,_0x51897d:0x536,_0x3bffe6:0x7,_0xd26c87:0x632,_0x52db64:0x99,_0x39e847:0xd0,_0x189701:0x15,_0x4971f5:0x2,_0x5c57c8:0xfb,_0x3cd0f6:0x555,_0x5785e1:0x618,_0x3ac34c:0x106,_0x2cfbd8:0x5c8,_0x5c724d:0x553,_0x3f973d:0x4a8,_0x552fed:0x4b0,_0x30b6d0:0xc8},_0x457b10={_0x26113c:0x146};if(_0x3092a4[_0x157fed(_0x57a6dc._0x32a923,0x60d,_0x57a6dc._0x4ea436,_0x57a6dc._0x11a8b3)]&&typeof _0x3092a4[_0x107a9f(-_0x57a6dc._0xfbf8ee,0xa,-_0x57a6dc._0x1069d9,_0x57a6dc._0x5d434a)]===_0x107a9f(_0x57a6dc._0x5692d3,0xd0,_0x57a6dc._0x97f98e,0x36)){const _0x659ad0=_0x3092a4[_0x107a9f(-_0x57a6dc._0x342e1a,_0x57a6dc._0x2610a2,0xa0,-0x39)];if(typeof _0x659ad0[_0x157fed(0x610,_0x57a6dc._0x364ea5,0x594,_0x57a6dc._0x5f1ad6)]===_0x107a9f(-_0x57a6dc._0x13b4f2,0x53,-0x41,0x90))return{'contextWindow':_0x659ad0[_0x107a9f(-0x10,_0x57a6dc._0x518378,_0x57a6dc._0x28a6fc,_0x57a6dc._0x1aa0bb)],...typeof _0x659ad0[_0x107a9f(-_0x57a6dc._0x87f814,0x12,_0x57a6dc._0x7c9fcf,_0x57a6dc._0x3f6a48)]===_0x157fed(0x5d5,0x596,0x5af,_0x57a6dc._0x4e4d88)?{'maxOutput':_0x659ad0['maxOutput']}:{}};}if(_0x5e7243[_0x157fed(0x4b6,0x4ea,0x418,0x410)]()===_0x107a9f(_0x57a6dc._0x41b3f4,_0x57a6dc._0x3f63e9,0xb7,0x11c)){const _0x59db1b=_0x3092a4['capabilities'],_0x316dd4=_0x59db1b?.[_0x107a9f(_0x57a6dc._0x596a3d,_0x57a6dc._0x5be831,0xb3,_0x57a6dc._0x523a01)];if(typeof _0x316dd4?.['max_context_window_tokens']===_0x107a9f(0x7f,_0x57a6dc._0x30db38,_0x57a6dc._0x433e27,-_0x57a6dc._0x3ed774))return{'contextWindow':_0x316dd4[_0x107a9f(0x19,-_0x57a6dc._0x1f6a07,0x2a,-_0x57a6dc._0xbe4dcc)],...typeof _0x316dd4['max_output_tokens']===_0x157fed(_0x57a6dc._0x3ba318,_0x57a6dc._0x2db54d,_0x57a6dc._0x2bd2a6,0x5e4)?{'maxOutput':_0x316dd4[_0x157fed(_0x57a6dc._0x50269f,_0x57a6dc._0x342bc2,0x6bb,0x5fc)]}:{}};}function _0x157fed(_0x31b666,_0x39c5bb,_0x5c585c,_0x18a22e){return _0x22e674(_0x31b666-0xd9,_0x39c5bb-0xb7,_0x39c5bb,_0x31b666-0x1b1);}const _0x4e1c4d=_0x3092a4[_0x107a9f(-0x117,-_0x57a6dc._0x1df62e,_0x57a6dc._0x528fac,0x47)],_0x3ed8dd=_0x3092a4[_0x157fed(_0x57a6dc._0x4b82d5,0x4ee,_0x57a6dc._0x1a582e,0x446)];function _0x107a9f(_0x412956,_0x177c1c,_0x42841b,_0x5e41c0){return _0x532739(_0x5e41c0,_0x177c1c-0x131,_0x42841b-_0x457b10._0x26113c,_0x5e41c0-0x85);}const _0x294a4c=typeof _0x3092a4[_0x157fed(_0x57a6dc._0xee1717,_0x57a6dc._0x38fb82,0x523,_0x57a6dc._0x51897d)]==='number'?_0x3092a4[_0x107a9f(-_0x57a6dc._0x3bffe6,-0x15,-0x30,0x4c)]:typeof _0x4e1c4d?.['context_length']===_0x157fed(_0x57a6dc._0x3ba318,0x650,0x5b4,_0x57a6dc._0xd26c87)?_0x4e1c4d[_0x107a9f(-_0x57a6dc._0x52db64,-0x15,-0xd1,-0x57)]:typeof _0x3ed8dd?.[_0x107a9f(_0x57a6dc._0x39e847,-_0x57a6dc._0x189701,-_0x57a6dc._0x4971f5,-_0x57a6dc._0x5c57c8)]==='number'?_0x3ed8dd[_0x157fed(0x56d,_0x57a6dc._0x3cd0f6,0x5b2,0x49e)]:void 0x0;if(_0x294a4c===void 0x0)return void 0x0;return{'contextWindow':_0x294a4c,...typeof _0x4e1c4d?.[_0x157fed(0x5c8,_0x57a6dc._0x5785e1,0x655,0x55e)]===_0x107a9f(-0x63,0x53,_0x57a6dc._0x3ac34c,0x74)?{'maxOutput':_0x4e1c4d[_0x157fed(_0x57a6dc._0x2cfbd8,_0x57a6dc._0x5c724d,0x5a3,0x514)]}:typeof _0x3ed8dd?.[_0x157fed(_0x57a6dc._0x3f973d,0x4f3,0x501,_0x57a6dc._0x552fed)]===_0x107a9f(_0x57a6dc._0x30b6d0,_0x57a6dc._0x30db38,0x121,0x2f)?{'maxOutput':_0x3ed8dd['max_completion_tokens']}:{}};}export{ANTHROPIC_MESSAGES_STREAM_SURFACE,ANTHROPIC_MESSAGES_SURFACE,AVAILABLE_CHAT_MODEL_SURFACES,AnthropicModel,ChatModel,GitHubModel,MockModel,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,OPENAI_CHAT_COMPLETIONS_SURFACE,OPENAI_RESPONSES_STREAM_SURFACE,OPENAI_RESPONSES_SURFACE,OPENAI_RESPONSES_WEBSOCKET_SURFACE,OpenAiApiError,OpenAiModel,ProviderSessionManager,RoutedModel,StaticModelSurfaceRouter,createAnthropicSurfaces,createDefaultWebSocketFactory,createOpenAiApiError,createOpenAiResponsesStreamParser,createOpenAiResponsesWebSocketEvent,createOpenAiSurfaces,fetchJsonResponse,fetchRawResponse,getCliDefaultModel,getDefaultMaxTokens,getDefaultModel,getFallbackModelLimits,getModelProfile,getOnboardingProviderKeys,getProviderDefaultModel,getProviderDefaultModels,getProviderLabel,getProviderProfile,iterateSseEvents,iterateWebSocketMessages,normalizeModelInfo,normalizeModelLimits,prepareProviderRequest,providerSupportsModelFetch,resolveApiCredential,resolveModelProfile,resolveSessionBaseUrl,toWebSocketUrl,trimTrailingSlashes,waitForWebSocketOpen};
|
|
1
|
+
(function(_0x5b3bb7,_0x357259){const _0x39c148={_0x3e579f:0x626,_0x355957:0x689,_0x5434d2:0x59e,_0x4e7490:0x63c,_0x335484:0x5a8,_0xd97eb8:0x4f5,_0x52fe75:0x55a,_0x2d08e8:0x519,_0x31e9d9:0x487,_0x4279f3:0x11c,_0x15fe87:0xb,_0x5d0cb2:0x66f,_0x1ffadb:0x693,_0x5e2109:0x55,_0x1b9089:0x133,_0x39f6ef:0x8,_0x140464:0x13b,_0x39c42f:0xa2,_0x159d94:0x77,_0x5116c8:0x19,_0x4032d3:0x75,_0x6ee71e:0x6f},_0x21b352={_0x33f002:0x20c};function _0x470487(_0x250bf8,_0x43d077,_0x44022f,_0x4ac7a5){return _0x245a(_0x43d077-0x3e4,_0x4ac7a5);}function _0x1e158d(_0x39208f,_0x459221,_0x17e656,_0xc70ba2){return _0x245a(_0x17e656- -_0x21b352._0x33f002,_0x39208f);}const _0xb3ba31=_0x5b3bb7();while(!![]){try{const _0x3522e9=-parseInt(_0x470487(_0x39c148._0x3e579f,0x5a4,_0x39c148._0x355957,0x4ef))/0x1*(-parseInt(_0x470487(_0x39c148._0x5434d2,0x559,0x49e,0x52a))/0x2)+parseInt(_0x470487(_0x39c148._0x4e7490,0x595,_0x39c148._0x335484,_0x39c148._0xd97eb8))/0x3+parseInt(_0x470487(0x66e,0x5c3,_0x39c148._0x52fe75,0x54a))/0x4*(-parseInt(_0x470487(0x58c,_0x39c148._0x2d08e8,_0x39c148._0x31e9d9,0x4c7))/0x5)+-parseInt(_0x1e158d(-0x10a,-_0x39c148._0x4279f3,-0xa8,_0x39c148._0x15fe87))/0x6+parseInt(_0x470487(_0x39c148._0x5d0cb2,_0x39c148._0x1ffadb,0x5b0,0x65b))/0x7*(-parseInt(_0x1e158d(_0x39c148._0x5e2109,_0x39c148._0x1b9089,0x61,0x139))/0x8)+parseInt(_0x1e158d(_0x39c148._0x39f6ef,_0x39c148._0x140464,0xaa,0x140))/0x9*(parseInt(_0x1e158d(_0x39c148._0x39c42f,-_0x39c148._0x159d94,-_0x39c148._0x5116c8,_0x39c148._0x4032d3))/0xa)+-parseInt(_0x1e158d(0x4f,-0x79,0x8,_0x39c148._0x6ee71e))/0xb;if(_0x3522e9===_0x357259)break;else _0xb3ba31['push'](_0xb3ba31['shift']());}catch(_0x22e45f){_0xb3ba31['push'](_0xb3ba31['shift']());}}}(_0x858b,0x54800));import{toOpenAiResponsesRequest}from'../chunk-NHBKADBW.js';import{resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig}from'../chunk-NYZR4XKO.js';import{getTextFromMessage,getToolResultBlocks,normalizeContent,toChatRequest,toModelRequest,toProviderModelRequest}from'../chunk-QDOE7NWO.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';function _0x4de126(_0x4f5c37,_0x57eed5,_0x4619a1,_0x5241a3){return _0x245a(_0x5241a3- -0x1f,_0x4f5c37);}var ProviderRequestConstructionError=class extends Error{constructor(_0x38deb5){const _0x4863bd={_0x31a6c7:0x1d5,_0xffb524:0x220,_0x764c9a:0x167,_0x22de47:0xc5,_0x57c3df:0xa6,_0x58ee6a:0xd8};super(_0x38deb5);function _0x5bb614(_0x56cf43,_0xc76c9c,_0x4d671d,_0x30c295){return _0x245a(_0x56cf43- -0x394,_0xc76c9c);}function _0xd8ccf5(_0x59b893,_0x49a5e0,_0x412eca,_0x575171){return _0x245a(_0x575171- -0x344,_0x59b893);}this[_0xd8ccf5(-_0x4863bd._0x31a6c7,-_0x4863bd._0xffb524,-_0x4863bd._0x764c9a,-0x18b)]=_0x5bb614(-_0x4863bd._0x22de47,-_0x4863bd._0x57c3df,-_0x4863bd._0x58ee6a,-0xe1);}},ProviderStreamEventError=class extends Error{[_0x4de126(0x288,0x1c2,0x1ce,0x1aa)];['retryable'];[_0x4de126(0x132,0xa6,0x179,0x162)];constructor(_0x399814,_0x2a5b62={}){const _0x52d7a6={_0x303545:0xd5,_0x4889a7:0x9b,_0x566dd8:0x24,_0x10d43e:0x52,_0xc5f558:0x229,_0x594e8f:0x24e,_0x4fab8f:0x2a,_0x55914a:0xa5,_0x548d67:0x15,_0x2a9821:0x25,_0x530a51:0x42,_0x114d2a:0x281,_0x38f58f:0x1e,_0x3c72df:0x149,_0x7455e7:0x3d,_0x22704e:0x4},_0xcfeb8f={_0x1afbd3:0x6e,_0x2e621c:0x1ec},_0x5a4b0c={_0x2ba713:0x248,_0x5ba65d:0x1c4,_0xaed4b2:0x5d};super(_0x399814);function _0x7e8c07(_0xbbaf4f,_0x2b782e,_0x2d43fb,_0x19d816){return _0x18ceca(_0x2d43fb,_0x2b782e- -_0x5a4b0c._0x2ba713,_0x2d43fb-_0x5a4b0c._0x5ba65d,_0x19d816-_0x5a4b0c._0xaed4b2);}function _0x26c898(_0x3004e6,_0x12eb40,_0x6f38f4,_0xad8d63){return _0x4de126(_0x6f38f4,_0x12eb40-0x118,_0x6f38f4-_0xcfeb8f._0x1afbd3,_0xad8d63- -_0xcfeb8f._0x2e621c);}this[_0x26c898(-_0x52d7a6._0x303545,_0x52d7a6._0x4889a7,-_0x52d7a6._0x566dd8,-_0x52d7a6._0x10d43e)]=_0x7e8c07(_0x52d7a6._0xc5f558,_0x52d7a6._0x594e8f,0x1ad,0x195),this[_0x26c898(0x58,-_0x52d7a6._0x4fab8f,-0x32,-0x42)]=_0x2a5b62[_0x26c898(-_0x52d7a6._0x55914a,-_0x52d7a6._0x548d67,_0x52d7a6._0x2a9821,-_0x52d7a6._0x530a51)],this[_0x7e8c07(_0x52d7a6._0x114d2a,0x330,0x3b5,0x25b)]=_0x2a5b62[_0x26c898(0xcd,-0x4a,-0x61,0x2b)]??!![],this[_0x26c898(-0x4d,_0x52d7a6._0x38f58f,-_0x52d7a6._0x3c72df,-0x8a)]=_0x2a5b62[_0x26c898(-_0x52d7a6._0x7455e7,0x4b,-_0x52d7a6._0x22704e,-0x8a)];}};function isRetryableProviderStreamEventError(_0x45df6c){const _0x40ce93={_0x1bf97f:0x4ce,_0x5ef14c:0x517,_0x213de5:0x5cb},_0xf64f66={_0x429ecd:0x2b,_0x23fdab:0x1de,_0x2d318f:0x300};function _0x3c7f56(_0x536ba7,_0x21aff9,_0x407292,_0x107aa6){return _0x4de126(_0x107aa6,_0x21aff9-_0xf64f66._0x429ecd,_0x407292-_0xf64f66._0x23fdab,_0x407292-_0xf64f66._0x2d318f);}return _0x45df6c instanceof ProviderStreamEventError&&_0x45df6c[_0x3c7f56(_0x40ce93._0x1bf97f,0x4df,_0x40ce93._0x5ef14c,_0x40ce93._0x213de5)];}var ANTHROPIC_MESSAGES_SURFACE=_0x4de126(0x200,0x24e,0x166,0x15f),ANTHROPIC_MESSAGES_STREAM_SURFACE=_0x18ceca(0x483,0x4f2,0x4ab,0x49c);function parseToolInput(_0x824e05){const _0x1557a5={_0x56ddef:0x62,_0xe9893e:0xed},_0x242984={_0xc28dfa:0x5a};function _0x247971(_0x28b655,_0x38ed24,_0x436f3f,_0x4b7eef){return _0x18ceca(_0x4b7eef,_0x28b655- -0x537,_0x436f3f-_0x242984._0xc28dfa,_0x4b7eef-0x7a);}try{return JSON[_0x247971(-0x49,-_0x1557a5._0x56ddef,-0x42,-_0x1557a5._0xe9893e)](_0x824e05);}catch{return _0x824e05;}}function resolveReasoningVisibility(_0x317951){const _0x3f29af={_0x81ae17:0x7c,_0x10e49e:0x68,_0x332247:0xa1,_0x53782c:0x97,_0x3a9884:0x219,_0xe1c384:0x15f,_0x4a2705:0x1c5,_0x22a4fd:0x11d},_0x426006={_0x1cd555:0xde},_0x20316f={_0x487e16:0x5f4};function _0x26d7d3(_0x43867a,_0x1645b2,_0x1e3e27,_0x4cc455){return _0x18ceca(_0x4cc455,_0x1e3e27- -_0x20316f._0x487e16,_0x1e3e27-0x13b,_0x4cc455-0x14a);}function _0x2dbe08(_0x7926b7,_0x4ddcf2,_0x3de140,_0x5d5bc6){return _0x18ceca(_0x3de140,_0x5d5bc6- -0x43b,_0x3de140-0x11a,_0x5d5bc6-_0x426006._0x1cd555);}return _0x317951[_0x2dbe08(0x158,0x13e,-_0x3f29af._0x81ae17,_0x3f29af._0x10e49e)]?.[_0x2dbe08(_0x3f29af._0x332247,_0x3f29af._0x53782c,_0x3f29af._0x3a9884,0x12e)]??_0x2dbe08(0x165,_0x3f29af._0xe1c384,_0x3f29af._0x4a2705,_0x3f29af._0x22a4fd);}function isUserVisibleThinking(_0x5dfca7){const _0x3b6e37={_0x3cce2f:0x14c,_0x4685a6:0xd3,_0x38146d:0x280,_0x2c9c34:0x1f7,_0x43f318:0x10d,_0x1dc05f:0x123},_0x42ffa9={_0x4d8c4d:0x33,_0x16809e:0x2ca},_0x42fcfd={_0x37fdc5:0x8c};function _0x4d4bc0(_0x379dcf,_0x3a9870,_0x4a4511,_0x3b8f4d){return _0x18ceca(_0x3a9870,_0x379dcf- -0x579,_0x4a4511-0x4e,_0x3b8f4d-_0x42fcfd._0x37fdc5);}const _0x19d9f0=resolveAnthropicThinkingConfig(_0x5dfca7[_0x4d4bc0(-0xd6,-_0x3b6e37._0x3cce2f,-_0x3b6e37._0x4685a6,-0x5a)]);function _0x52c660(_0x5b8edc,_0x4028f0,_0x3bb679,_0x4c4853){return _0x4de126(_0x5b8edc,_0x4028f0-_0x42ffa9._0x4d8c4d,_0x3bb679-0x47,_0x4c4853- -_0x42ffa9._0x16809e);}return _0x19d9f0!==void 0x0&&_0x19d9f0[_0x52c660(-_0x3b6e37._0x38146d,-_0x3b6e37._0x2c9c34,-0x113,-0x1b2)]!==_0x52c660(-_0x3b6e37._0x43f318,-0x141,-_0x3b6e37._0x1dc05f,-0x198)&&resolveReasoningVisibility(_0x5dfca7)==='user-visible';}function createAnthropicThinkingBody(_0x21305a){const _0x2c8dfc={_0x16ec00:0xfb,_0x58a5c4:0x21,_0x952c93:0x10e,_0x3a8beb:0x9,_0x8568f5:0xa0,_0x3fc69c:0x60c,_0x5c22b8:0x5f9,_0x23c649:0x5c1,_0x265561:0x449,_0x379e14:0x226,_0x5f2403:0x17f,_0x2c96f9:0x240,_0x316436:0x638,_0x307c4e:0x5d1,_0x8a6bc5:0x611,_0x5826ba:0x552,_0x330db0:0x94,_0x36a996:0xe5,_0x4c1fce:0x41,_0x5b34b6:0x36,_0x3e6a50:0x96,_0x155e2d:0x3f,_0x39f543:0x629,_0x40e483:0x50f},_0x45c2a0={_0xbb64ed:0xc7,_0x48047e:0x141},_0x3b19bc={_0x21815a:0x121},_0x339af3=resolveAnthropicThinkingConfig(_0x21305a[_0x2b3ee3(_0x2c8dfc._0x16ec00,_0x2c8dfc._0x58a5c4,_0x2c8dfc._0x952c93,0xdd)]);if(!_0x339af3||_0x339af3['type']==='disabled')return{};const _0x5735ff=_0x339af3[_0x2b3ee3(0x1b,0x2b,-_0x2c8dfc._0x3a8beb,-_0x2c8dfc._0x8568f5)]??(isUserVisibleThinking(_0x21305a)?'summarized':'omitted');function _0x2b3ee3(_0x4075fd,_0x481196,_0xf0a424,_0xe4a61e){return _0x4de126(_0xf0a424,_0x481196-0xb9,_0xf0a424-0x108,_0x481196- -_0x3b19bc._0x21815a);}function _0x165fcc(_0x1bbf01,_0x941c6d,_0x8dcdc4,_0x3b4ab3){return _0x18ceca(_0x8dcdc4,_0x1bbf01-0x37,_0x8dcdc4-_0x45c2a0._0xbb64ed,_0x3b4ab3-_0x45c2a0._0x48047e);}const _0x49e656=_0x339af3[_0x165fcc(0x5a5,_0x2c8dfc._0x3fc69c,_0x2c8dfc._0x5c22b8,_0x2c8dfc._0x23c649)]?{'anthropic-beta':'interleaved-thinking-2025-05-14'}:void 0x0;if(_0x339af3[_0x165fcc(0x4b0,0x4b4,_0x2c8dfc._0x265561,0x505)]===_0x2b3ee3(_0x2c8dfc._0x379e14,_0x2c8dfc._0x5f2403,_0x2c8dfc._0x2c96f9,0x182))return{..._0x49e656?{'headers':_0x49e656}:{},'thinking':{'type':_0x165fcc(_0x2c8dfc._0x316436,_0x2c8dfc._0x307c4e,_0x2c8dfc._0x8a6bc5,_0x2c8dfc._0x5826ba),'budget_tokens':_0x339af3[_0x2b3ee3(0x110,_0x2c8dfc._0x330db0,_0x2c8dfc._0x36a996,_0x2c8dfc._0x4c1fce)],'display':_0x5735ff}};return{..._0x49e656?{'headers':_0x49e656}:{},'thinking':{'type':_0x2b3ee3(0xd3,0x88,0xf4,0x13),..._0x339af3[_0x2b3ee3(_0x2c8dfc._0x5b34b6,_0x2c8dfc._0x3e6a50,0x11f,_0x2c8dfc._0x155e2d)]?{'effort':_0x339af3[_0x165fcc(0x54f,0x4b6,_0x2c8dfc._0x39f543,_0x2c8dfc._0x40e483)]}:{},'display':_0x5735ff}};}function toAnthropicRequestContent(_0xf1777f){const _0x4c42da={_0x16265f:0x117,_0x245f5e:0x3,_0x44e641:0x7d,_0x5ea35a:0xcc,_0x99714b:0x5ec,_0x4dbcc5:0x593,_0x39595f:0x566,_0x2e21b4:0x668,_0x2475f7:0x6e0,_0x1830d8:0x9,_0x4695cb:0xf8,_0x3d2cd4:0xd6,_0x88653b:0x9a,_0x23afd1:0x76,_0x349293:0x2e,_0x5d9430:0x4e4,_0x4ac90f:0xdd,_0x44281e:0x60b,_0x1ad7f6:0x647,_0xdd79e9:0x608,_0x1fc927:0x6f7,_0x1fe574:0x79,_0x2814be:0x20,_0x328495:0x54,_0x1a2721:0xee,_0x3fd9d5:0xc0,_0x545638:0xf1,_0x3382b5:0x1d5,_0x1956c6:0x35,_0x16cc4c:0x14,_0x465839:0xb5,_0x81a57a:0x61,_0x4255eb:0xe,_0x590482:0x576,_0x4014d5:0x4df,_0x2f3fa4:0x132},_0x5cc081={_0x3aaae5:0x18d,_0x326f1d:0x54},_0xeab797={_0xa6b60f:0x17c};if(_0xf1777f[_0x237d06(-0xf0,-0x51,-0x160,-_0x4c42da._0x16265f)]===_0x237d06(_0x4c42da._0x245f5e,-0x9c,_0x4c42da._0x44e641,_0x4c42da._0x5ea35a)&&_0xf1777f[_0x178749(0x561,_0x4c42da._0x99714b,_0x4c42da._0x4dbcc5,_0x4c42da._0x39595f)]?.[_0x178749(0x6ac,_0x4c42da._0x2e21b4,0x601,_0x4c42da._0x2475f7)])return structuredClone(_0xf1777f['providerState']['anthropicAssistantContent']);const _0x181581=[];for(const _0x52f5ad of normalizeContent(_0xf1777f[_0x237d06(-_0x4c42da._0x1830d8,-0xee,-_0x4c42da._0x4695cb,0x28)])){if(_0x52f5ad[_0x237d06(-0xf1,-_0x4c42da._0x3d2cd4,-0x22,-_0x4c42da._0x88653b)]===_0x237d06(-_0x4c42da._0x23afd1,0x29,-0x104,-_0x4c42da._0x349293))continue;if(_0x52f5ad[_0x178749(0x44c,0x4f8,_0x4c42da._0x5d9430,0x552)]===_0x237d06(-0x41,-0x9a,-_0x4c42da._0x4ac90f,0x36)){_0x181581[_0x178749(0x6cb,_0x4c42da._0x44281e,_0x4c42da._0x1ad7f6,_0x4c42da._0xdd79e9)]({'type':_0x178749(0x671,0x656,0x64e,_0x4c42da._0x1fc927),'thinking':_0x52f5ad[_0x237d06(_0x4c42da._0x1fe574,_0x4c42da._0x2814be,_0x4c42da._0x328495,_0x4c42da._0x1a2721)],'signature':_0x52f5ad[_0x237d06(_0x4c42da._0x3fd9d5,0x45,0xef,0x48)]});continue;}if(_0x52f5ad[_0x237d06(-_0x4c42da._0x545638,-0x141,-_0x4c42da._0x3382b5,-_0x4c42da._0x1956c6)]===_0x237d06(-0x7b,-_0x4c42da._0x16cc4c,0x56,-_0x4c42da._0x465839)){_0x181581['push']({'type':_0x237d06(-_0x4c42da._0x3fd9d5,-0x113,-_0x4c42da._0x81a57a,_0x4c42da._0x4255eb),'data':_0x52f5ad[_0x178749(0x430,_0x4c42da._0x590482,_0x4c42da._0x4014d5,0x4c8)]});continue;}_0x181581[_0x237d06(0x72,0x9a,_0x4c42da._0x2f3fa4,-0x6f)](structuredClone(_0x52f5ad));}function _0x237d06(_0x40db27,_0x4d0b02,_0x1356d5,_0x7675d3){return _0x18ceca(_0x1356d5,_0x40db27- -0x56a,_0x1356d5-0x1a7,_0x7675d3-_0xeab797._0xa6b60f);}function _0x178749(_0x377cda,_0x52c914,_0xe999a2,_0x435b17){return _0x4de126(_0x52c914,_0x52c914-_0x5cc081._0x3aaae5,_0xe999a2-_0x5cc081._0x326f1d,_0xe999a2-0x3cc);}return _0x181581;}function createAnthropicRequest(_0x54156e,_0xf628a6){const _0x5bbfb7={_0x1bda70:0x444,_0x2a29c1:0x3e0,_0x134621:0x430,_0x26283a:0x41d,_0x30d073:0x6f,_0x5c0d44:0x3a6,_0x35dcc9:0x4a9,_0x1a56be:0x46e,_0x47530a:0x437,_0x37ce1d:0x3c3,_0x1120fa:0x2ad,_0x55ffe9:0x2d6,_0x19ad0a:0x309,_0x2435bd:0x395,_0x2704db:0x3e6,_0x530976:0x3c0,_0x98be9d:0x25f,_0x205c16:0x31e,_0x52af99:0x327,_0x2ccdd6:0x3fd,_0x18678d:0x344,_0x28ceeb:0x83,_0x438371:0x3b},_0x4be5e6={_0x13013e:0x3a1,_0x1f68cd:0x2f3},_0x379d12={_0x151f59:0x7c},_0x54df35={_0x5b3d01:0x132},_0x9a8a1b={_0xea8ce6:0xf,_0x435665:0x49,_0x280f1c:0x164},_0x4dbe61=toProviderModelRequest(_0x54156e),_0x3ff2d6=createAnthropicThinkingBody(_0x54156e);function _0x5c2bce(_0x438dc8,_0x19c416,_0x577b2d,_0x437c66){return _0x4de126(_0x577b2d,_0x19c416-_0x9a8a1b._0xea8ce6,_0x577b2d-_0x9a8a1b._0x435665,_0x19c416- -_0x9a8a1b._0x280f1c);}function _0x3f3347(_0x5b8b61,_0x4f6b31,_0x159b6a,_0x4b3f51){return _0x18ceca(_0x159b6a,_0x4f6b31- -0x1ac,_0x159b6a-_0x54df35._0x5b3d01,_0x4b3f51-0x140);}return{'accept':_0xf628a6?'text/event-stream':_0x3f3347(_0x5bbfb7._0x1bda70,0x458,0x521,_0x5bbfb7._0x2a29c1),'body':{..._0x4dbe61,'messages':_0x54156e[_0x3f3347(_0x5bbfb7._0x134621,0x3e2,0x357,_0x5bbfb7._0x26283a)][_0x5c2bce(-0x78,0x62,0xde,_0x5bbfb7._0x30d073)](_0x5dd7ab=>{function _0x479cbb(_0x16340f,_0x409139,_0x3d0099,_0x2a21f2){return _0x5c2bce(_0x16340f-0x6e,_0x16340f-0x347,_0x2a21f2,_0x2a21f2-_0x379d12._0x151f59);}return{'role':_0x5dd7ab[_0x479cbb(0x2fc,_0x4be5e6._0x13013e,_0x4be5e6._0x1f68cd,0x307)],'content':toAnthropicRequestContent(_0x5dd7ab)};}),..._0x3ff2d6[_0x3f3347(0x4c7,0x437,_0x5bbfb7._0x5c0d44,_0x5bbfb7._0x35dcc9)]?{'thinking':_0x3ff2d6[_0x3f3347(_0x5bbfb7._0x1a56be,_0x5bbfb7._0x47530a,_0x5bbfb7._0x37ce1d,0x495)]}:{},..._0xf628a6?{'stream':!![]}:{},..._0x54156e['outputFormat']?{'output_config':{'format':{'type':_0x3f3347(0x387,_0x5bbfb7._0x1120fa,0x363,0x23f),'schema':_0x54156e[_0x3f3347(_0x5bbfb7._0x55ffe9,_0x5bbfb7._0x19ad0a,_0x5bbfb7._0x2435bd,_0x5bbfb7._0x2704db)][_0x3f3347(0x4b4,0x3f0,_0x5bbfb7._0x530976,0x4c0)]}}}:{}},..._0x3ff2d6[_0x3f3347(_0x5bbfb7._0x98be9d,_0x5bbfb7._0x205c16,0x2dc,0x311)]?{'headers':_0x3ff2d6[_0x3f3347(_0x5bbfb7._0x52af99,0x31e,_0x5bbfb7._0x2ccdd6,_0x5bbfb7._0x18678d)]}:{},'path':_0x5c2bce(0xdc,0x69,_0x5bbfb7._0x28ceeb,-_0x5bbfb7._0x438371)};}function parseAnthropicResponse(_0xcec2aa,_0x9dd8c4){const _0x441a75={_0x3705ee:0x125,_0xf6080b:0x203,_0xf3368a:0x16b,_0x45ed13:0x1c7,_0x329eec:0xcf,_0x374c1d:0x1ab,_0x5cd942:0x228,_0x51c19a:0x237,_0x3ff5ec:0x229,_0xaa82e2:0x184,_0x13877e:0x1fd,_0x70dd59:0x26a,_0x6c42de:0x270,_0x4e18f8:0x1,_0x1db773:0xde,_0x48e18e:0x32,_0x6c596b:0x23e,_0x348a43:0x56,_0x21abed:0x53,_0x27c79d:0x77,_0x2ba8b9:0x9c,_0x2c2a81:0x19,_0x4ce4d8:0xba,_0x35633b:0xbf,_0x148050:0x26e,_0x33cbe2:0x29d,_0x12c941:0x218,_0x32f70c:0x16a,_0x60fc45:0x24e,_0x3b65fa:0x2ac,_0x48f0b8:0x152,_0x46d47a:0x17c,_0x17a341:0x222,_0x248958:0x29c,_0x483705:0x1fd,_0x9d9618:0x269,_0x58b17a:0x68,_0x6d1dd:0x53,_0x5dc8ac:0x18c,_0x55f679:0x208,_0x15c306:0x153,_0x40e973:0xf6,_0x4fc267:0x78,_0x277a3c:0x4b,_0x15a268:0x1bf,_0x4875c4:0x148,_0x57e8fb:0x87,_0x18bc8f:0x136,_0x49048e:0x40,_0x1091ad:0x78,_0x31b6ae:0x66,_0x45983d:0x115,_0x44fddc:0xc3,_0x439356:0x273,_0x17efc0:0xbc,_0x74fc72:0x10a,_0x234184:0x154,_0x1f5665:0x22,_0x32d292:0x1eb,_0xf3c0a0:0x2e2,_0x1de612:0x277,_0x20b460:0x1fb,_0x518d4c:0xef},_0x5b2b67={_0x590f52:0x1ba,_0x4ef1dc:0x117};function _0x68cffa(_0x2503bb,_0x5d8b93,_0x5b1423,_0x2ea079){return _0x4de126(_0x2503bb,_0x5d8b93-0xdd,_0x5b1423-_0x5b2b67._0x590f52,_0x2ea079- -_0x5b2b67._0x4ef1dc);}const _0x4e237b=[],_0x442536=_0xcec2aa[_0x526c02(0x1df,0x203,0xe3,0x1a7)]??[];let _0x516e9b=![];function _0x526c02(_0x8f01eb,_0x544128,_0x3fd0ad,_0x4a55e4){return _0x4de126(_0x3fd0ad,_0x544128-0x1cd,_0x3fd0ad-0xee,_0x4a55e4- -0x59);}for(const _0x20af54 of _0x442536){if(_0x20af54['type']===_0x68cffa(_0x441a75._0x3705ee,_0x441a75._0xf6080b,0x23d,_0x441a75._0xf3368a)){_0x516e9b=!![];isUserVisibleThinking(_0x9dd8c4)&&_0x4e237b[_0x68cffa(_0x441a75._0x45ed13,_0x441a75._0x329eec,_0x441a75._0x374c1d,0x164)]({'type':'anthropic_thinking','thinking':_0x20af54[_0x526c02(0x226,_0x441a75._0x5cd942,_0x441a75._0x51c19a,_0x441a75._0x3ff5ec)],'signature':_0x20af54[_0x526c02(_0x441a75._0xaa82e2,_0x441a75._0x13877e,_0x441a75._0x70dd59,_0x441a75._0x6c42de)]});continue;}if(_0x20af54[_0x68cffa(-0x75,-0x79,-0x1a,_0x441a75._0x4e18f8)]===_0x68cffa(_0x441a75._0x1db773,-0x43,0x113,_0x441a75._0x48e18e)){_0x516e9b=!![];isUserVisibleThinking(_0x9dd8c4)&&_0x4e237b[_0x526c02(0x2ed,_0x441a75._0x6c596b,0x2db,0x222)]({'type':_0x68cffa(0x68,_0x441a75._0x348a43,_0x441a75._0x21abed,_0x441a75._0x27c79d),'data':_0x20af54[_0x526c02(0x160,_0x441a75._0x2ba8b9,-_0x441a75._0x2c2a81,_0x441a75._0x4ce4d8)]});continue;}if(_0x20af54[_0x526c02(0xa,0x72,0x13e,_0x441a75._0x35633b)]==='text'){_0x20af54[_0x526c02(_0x441a75._0x148050,0x165,_0x441a75._0x33cbe2,_0x441a75._0x12c941)][_0x526c02(_0x441a75._0x32f70c,0x221,0x2fa,_0x441a75._0x60fc45)]>0x0&&_0x4e237b['push'](structuredClone(_0x20af54));continue;}_0x4e237b[_0x526c02(_0x441a75._0x3b65fa,_0x441a75._0x48f0b8,_0x441a75._0x46d47a,_0x441a75._0x17a341)](structuredClone(_0x20af54));}return{'id':_0xcec2aa['id']??_0x526c02(_0x441a75._0x248958,0x1f9,_0x441a75._0x483705,_0x441a75._0x9d9618)+Date[_0x68cffa(0x79,-_0x441a75._0x58b17a,-0x93,_0x441a75._0x6d1dd)](),'content':_0x4e237b,'stopReason':_0x4e237b[_0x526c02(_0x441a75._0x5dc8ac,_0x441a75._0x55f679,0xe1,_0x441a75._0x15c306)](_0x39c04=>_0x39c04[_0x526c02(0x18f,0x100,-0x1e,0xbf)]===_0x68cffa(0x5c,0x76,-0x5e,0x78))?_0x68cffa(0x12,_0x441a75._0x40e973,0x99,_0x441a75._0x4fc267):_0xcec2aa[_0x526c02(0x67,_0x441a75._0x277a3c,0x1ce,0x115)]===_0x526c02(_0x441a75._0x15a268,_0x441a75._0x4875c4,_0x441a75._0x57e8fb,_0x441a75._0x18bc8f)?_0x68cffa(-_0x441a75._0x49048e,-0x3a,0xa5,_0x441a75._0x1091ad):_0x68cffa(-0x13,-0x2e,_0x441a75._0x31b6ae,0xa),'usage':{'inputTokens':(_0xcec2aa[_0x526c02(0x17d,0x28f,0x2b7,0x212)]?.['input_tokens']??0x0)+(_0xcec2aa[_0x68cffa(_0x441a75._0x45983d,0x133,_0x441a75._0x44fddc,0x154)]?.['cache_read_input_tokens']??0x0)+(_0xcec2aa['usage']?.['cache_creation_input_tokens']??0x0),'outputTokens':_0xcec2aa[_0x526c02(0x2a4,_0x441a75._0x439356,0x147,0x212)]?.[_0x526c02(_0x441a75._0x17efc0,0x110,0xff,0xa1)]??0x0,..._0xcec2aa[_0x68cffa(_0x441a75._0x74fc72,0x172,0xf3,_0x441a75._0x234184)]?.[_0x68cffa(-0x62,-_0x441a75._0x1f5665,0xfd,0x3e)]?{'cacheReadInputTokens':_0xcec2aa[_0x526c02(0x164,_0x441a75._0x32d292,_0x441a75._0xf3c0a0,0x212)][_0x68cffa(0xcc,-0x63,0x11f,0x3e)]}:{},..._0xcec2aa['usage']?.[_0x526c02(0x14c,0x286,_0x441a75._0x1de612,_0x441a75._0x20b460)]?{'cacheCreationInputTokens':_0xcec2aa[_0x68cffa(0x70,0x153,_0x441a75._0x518d4c,0x154)]['cache_creation_input_tokens']}:{}},..._0x516e9b?{'providerState':{'anthropicAssistantContent':structuredClone(_0x442536)}}:{}};}var AnthropicMessagesStreamParser=class{[_0x18ceca(0x5a9,0x52b,0x53d,0x474)]=new Map();[_0x4de126(0xc1,0x22d,0x9d,0x161)]=0x0;[_0x18ceca(0x507,0x543,0x51f,0x459)]=0x0;[_0x18ceca(0x555,0x51f,0x4e8,0x49e)]=0x0;[_0x18ceca(0x4a1,0x53b,0x46f,0x543)]=_0x4de126(0x222,0x327,0x2d2,0x2c2)+Date[_0x4de126(0x167,0xfe,0x11e,0x16a)]();[_0x18ceca(0x523,0x4e2,0x489,0x412)]=0x0;[_0x18ceca(0x56b,0x50f,0x533,0x42a)];[_0x4de126(0x1ed,0x2ab,0x266,0x276)]=_0x18ceca(0x451,0x482,0x46c,0x3bd);constructor(_0x10951a){const _0x1e5437={_0x5d6e44:0x10a,_0x3f8c7d:0x12f};function _0x18c8ca(_0x26d7cd,_0xfa2b68,_0x30e878,_0x59c859){return _0x18ceca(_0xfa2b68,_0x59c859- -0x63e,_0x30e878-0x98,_0x59c859-0x6c);}this[_0x18c8ca(-_0x1e5437._0x5d6e44,-0xe5,-0x160,-_0x1e5437._0x3f8c7d)]=_0x10951a;}[_0x4de126(0x45,0x7a,0xe7,0x126)](_0x3d2280){const _0x253e2d={_0x108aa7:0x5b4,_0x25f9b0:0x624,_0xdd276e:0x5c1,_0x4bc323:0x638,_0xd25579:0x4d7,_0x6c94c:0x43e,_0xb618c7:0x28d,_0x50a657:0x3c0,_0x4bf6d0:0x593,_0x1a14cd:0x4db,_0x37d5a7:0x4dd,_0x47bc1b:0x4fc,_0x54dceb:0x445,_0x19b920:0x558,_0x44126d:0x533,_0xa534cc:0x48c,_0x844e8e:0x2b1,_0x254f29:0x351,_0x2c3d13:0x39f,_0x3c5fff:0x379,_0x2f9181:0x37f,_0x5ed1f4:0x443,_0x1d35b2:0x44e,_0x5b5a27:0x322,_0x330d2f:0x580,_0x3fee03:0x600,_0x1e4bb0:0x4bf,_0x53e6c6:0x2c2,_0x38af83:0x3d5,_0x2e4521:0x35c,_0x9d30b0:0x53e,_0x4fd934:0x519,_0x209c39:0x2a2,_0x135a33:0x364,_0x344c31:0x588,_0x4f7fde:0x4d4,_0x2c3cbe:0x374,_0x14978a:0x458,_0x218023:0x4c8,_0x4be8c7:0x5d9,_0x39f5c4:0x507,_0x4565f1:0x537,_0x53965e:0x611,_0x3a0090:0x5d2,_0x2c2fa8:0x691,_0x2ea9ee:0x2ff,_0x48b9a2:0x5cf,_0x2eaf8b:0x4cf,_0x20bfa5:0x54c,_0x4aef79:0x4af,_0x2bfb90:0x5fe,_0x4f961c:0x61f,_0x15d87c:0x2b2,_0x4679aa:0x535,_0x26b186:0x4c5,_0x5ef4e8:0x59d,_0x128c14:0x540,_0x3d65c9:0x59e,_0x4f5a99:0x5e8,_0x4c5040:0x39d,_0x49cbf3:0x38a,_0x4ea0f1:0x368,_0x3ad460:0x70f,_0x38372e:0x568,_0x3a2bdd:0x5f9,_0x29fdcb:0x521,_0xf31aa2:0x535,_0xeef160:0x523,_0x444661:0x538,_0x3ea148:0x463,_0xc26d1d:0x24d,_0x1cbd86:0x570,_0x5c0a6e:0x406,_0x2ae6c5:0x42c,_0x55a80b:0x433,_0x3d2f86:0x710,_0x3d0fe5:0x701,_0xe24e6a:0x385,_0x1c4034:0x27c,_0x2ec0e3:0x3d7,_0x23ddfe:0x46f,_0x28e84c:0x40f,_0x41e99e:0x51c,_0x57fbea:0x30c,_0x422646:0x2d0,_0x31b3de:0x2c3,_0x17bcb7:0x45e,_0x2a5c56:0x3f1,_0x404aae:0x45a,_0x535652:0x4fe,_0x445348:0x4f4,_0x8dfd46:0x4e5,_0x23138a:0x4ef,_0xdc0e3c:0x4af,_0xa75735:0x58e,_0x1b77dc:0x4ba,_0x3f1135:0x58e,_0x5e897b:0x2e7,_0x4274d9:0x378,_0x28ae77:0x22a,_0x5b4c5b:0x398,_0x47168b:0x4bf,_0x17aaf1:0x490,_0x1da075:0x6bc,_0x23bada:0x553,_0x250bd4:0x576,_0x68ad86:0x459,_0x5d55b6:0x40f,_0x226465:0x62f,_0x227651:0x5c3,_0x8d9306:0x532,_0x535c9c:0x571,_0x18c425:0x370,_0x596d3c:0x2ab,_0x2146cb:0x41c,_0x53fb18:0x3e7,_0x18ad1e:0x309,_0x3667fa:0x398,_0x29391b:0x495,_0x4b6fe8:0x4ad,_0x4d14eb:0x275,_0x543fca:0x2c0,_0x2349d9:0x39f,_0x12427d:0x2fb,_0x2df522:0x42d,_0x457cff:0x480,_0x35987b:0x416,_0x585016:0x5ac,_0x1f1ea5:0x5a8,_0x48a0a8:0x679,_0x2bfb35:0x617,_0x573f60:0x614,_0x37400b:0x579,_0x332751:0x5a5,_0x334fcf:0x545,_0x3e1d8e:0x5db,_0xbc88d6:0x4cf,_0x5b64ba:0x44d,_0x5322b6:0x476,_0x4ff39c:0x6a4,_0x21641f:0x73c,_0x2bb4c0:0x630,_0x30f19d:0x551,_0x5cd73a:0x5f4,_0x4c220f:0x3bd,_0x5ddb09:0x38c,_0x5480c3:0x45f,_0x281efb:0x5ce,_0x46d0ba:0x2e6,_0x478fbe:0x281,_0x4a3339:0x384,_0x176658:0x2b6,_0x12a333:0x700,_0x28b4b9:0x568,_0x7780ff:0x478,_0x4fb76c:0x4fd,_0x256b47:0x420,_0x57a634:0x2f5,_0x7aa690:0x334,_0x3ecea6:0x4f5,_0x1dea89:0x3fa,_0x914ecf:0x61e,_0x56c1a3:0x5dd,_0x2d906a:0x3d6,_0x4e50b5:0x3b9,_0x3b6305:0x706,_0x455a0b:0x1d8,_0x4a28c1:0x2c7,_0xae8fb3:0x4af,_0x4d264f:0x37b,_0xb15fd7:0x4f3,_0x3ea41f:0x467,_0x556da0:0x343,_0x591b1c:0x35a,_0x81f28d:0x332,_0xcb7e3d:0x28d,_0x56379b:0x492,_0x4b7dcf:0x466,_0x3f2706:0x4af,_0xe77d6:0x3aa,_0x171985:0x457,_0x232ded:0x59f,_0x3fa9f7:0x30e,_0x47bc35:0x588,_0x36c0b8:0x4a1,_0x444a69:0x4fb,_0xcc7e77:0x57b,_0x240fe0:0x320,_0x342695:0x408,_0x3865a9:0x363,_0x2d0f87:0x3f2,_0x6e2360:0x4f2,_0x514d88:0x50b,_0xa73940:0x4a0,_0x5b51c2:0x3c7,_0x2cc135:0x467,_0x363d14:0x514,_0x55ba71:0x4aa,_0x73a10d:0x3ae,_0x4ef184:0x373,_0x3797d3:0x2d7,_0x3067b8:0x267,_0x3bdeda:0x3de,_0x530a67:0x338,_0x24ae20:0x32d,_0x2098db:0x499,_0x587672:0x451,_0x19ac4d:0x37a,_0x2885cc:0x3d9,_0x20d6da:0x447,_0xdcecee:0x1c7},_0x5563d5={_0x38d98e:0x1c3,_0x9b7266:0xf7},_0x6bee35={_0x4b6b1a:0x163,_0x53b1c:0x3a6},_0x561913=_0x3d2280[_0x4a9605(_0x253e2d._0x108aa7,_0x253e2d._0x25f9b0,0x5c9,0x612)]('\x0a');function _0x4a9605(_0x446cfa,_0x2c5242,_0xbff6,_0x4db285){return _0x4de126(_0x2c5242,_0x2c5242-_0x6bee35._0x4b6b1a,_0xbff6-0x2f,_0x446cfa-_0x6bee35._0x53b1c);}const _0x4d495c=_0x561913['find'](_0x4138af=>_0x4138af[_0x4a9605(0x5f6,0x630,0x62a,0x5fc)]('event:'))?.[_0x4a9605(_0x253e2d._0xdd276e,_0x253e2d._0x4bc323,0x524,0x50b)](0x6)[_0x10b2e9(_0x253e2d._0xd25579,0x35f,_0x253e2d._0x6c94c,0x413)](),_0xf74977=_0x561913['filter'](_0x5e9c85=>_0x5e9c85[_0x4a9605(0x5f6,0x657,0x6d5,0x697)](_0x10b2e9(0x24c,0x29d,0x1de,0x28a)))[_0x10b2e9(_0x253e2d._0xb618c7,_0x253e2d._0x50a657,0x36d,0x364)](_0x2861f4=>_0x2861f4['slice'](0x5)['trimStart']())[_0x4a9605(_0x253e2d._0x4bf6d0,_0x253e2d._0x1a14cd,0x4c1,0x614)]('\x0a')['trim']();if(_0xf74977[_0x10b2e9(_0x253e2d._0x37d5a7,0x44e,_0x253e2d._0x47bc1b,_0x253e2d._0x54dceb)]===0x0||_0xf74977===_0x4a9605(_0x253e2d._0x19b920,0x485,0x48c,0x4e5))return[];const _0x112660=JSON[_0x4a9605(_0x253e2d._0x44126d,0x596,_0x253e2d._0xa534cc,0x59e)](_0xf74977);switch(_0x4d495c){case _0x10b2e9(_0x253e2d._0x844e8e,_0x253e2d._0x254f29,0x342,_0x253e2d._0x2c3d13):{const _0x5f1cad=_0x112660[_0x10b2e9(_0x253e2d._0x3c5fff,0x309,0x31c,_0x253e2d._0x2f9181)];this[_0x10b2e9(_0x253e2d._0x5ed1f4,_0x253e2d._0x1d35b2,_0x253e2d._0x5b5a27,0x378)]=_0x5f1cad?.['id']??this[_0x4a9605(_0x253e2d._0x330d2f,_0x253e2d._0x3fee03,_0x253e2d._0x1e4bb0,0x62e)],this[_0x10b2e9(0x2cf,_0x253e2d._0x53e6c6,_0x253e2d._0x38af83,_0x253e2d._0x2e4521)]=_0x5f1cad?.[_0x4a9605(0x611,0x6e1,0x6b9,0x62b)]?.[_0x4a9605(_0x253e2d._0x9d30b0,0x53f,_0x253e2d._0x4fd934,0x5b7)]??this[_0x10b2e9(_0x253e2d._0x209c39,_0x253e2d._0x135a33,0x327,_0x253e2d._0x2e4521)],this[_0x4a9605(_0x253e2d._0x344c31,0x51c,0x665,0x5fa)]=_0x5f1cad?.[_0x10b2e9(_0x253e2d._0x4f7fde,0x33a,_0x253e2d._0x2c3cbe,0x409)]?.[_0x4a9605(0x4fb,0x4a6,_0x253e2d._0x14978a,_0x253e2d._0x218023)]??this[_0x4a9605(_0x253e2d._0x344c31,0x4ea,_0x253e2d._0x4be8c7,0x4d4)],this[_0x4a9605(_0x253e2d._0x39f5c4,_0x253e2d._0x4565f1,0x461,0x58b)]=_0x5f1cad?.[_0x4a9605(_0x253e2d._0x53965e,0x6b2,0x5b1,_0x253e2d._0x3a0090)]?.[_0x4a9605(0x5fa,0x636,0x626,_0x253e2d._0x2c2fa8)]??this[_0x10b2e9(0x2d8,0x317,0x3d8,_0x253e2d._0x2ea9ee)];break;}case _0x4a9605(0x5bf,_0x253e2d._0x48b9a2,_0x253e2d._0x2eaf8b,0x670):{const _0x5db64f=typeof _0x112660[_0x4a9605(_0x253e2d._0x20bfa5,0x589,_0x253e2d._0x4aef79,_0x253e2d._0x2bfb90)]===_0x4a9605(0x569,_0x253e2d._0x4f961c,0x56d,0x533)?_0x112660['index']:0x0,_0x24da20=_0x112660[_0x10b2e9(0x2de,_0x253e2d._0x15d87c,0x354,0x383)];if(_0x24da20?.['type']===_0x4a9605(_0x253e2d._0x4679aa,0x5e3,_0x253e2d._0x26b186,_0x253e2d._0x5ef4e8)&&_0x24da20['id']&&_0x24da20[_0x4a9605(_0x253e2d._0x128c14,_0x253e2d._0x3d65c9,0x56f,_0x253e2d._0x4f5a99)])return this[_0x10b2e9(0x33a,_0x253e2d._0x4c5040,_0x253e2d._0x49cbf3,_0x253e2d._0x4ea0f1)][_0x4a9605(0x63b,_0x253e2d._0x3ad460,_0x253e2d._0x38372e,0x668)](_0x5db64f,{'id':_0x24da20['id'],'index':_0x5db64f,'inputJson':JSON[_0x4a9605(_0x253e2d._0x3a2bdd,_0x253e2d._0x29fdcb,0x5ff,0x681)](_0x24da20['input']??{}),'kind':_0x4a9605(_0x253e2d._0xf31aa2,0x5fe,_0x253e2d._0xeef160,_0x253e2d._0x444661),'name':_0x24da20['name']}),[{'type':'tool_use_delta','id':_0x24da20['id'],'index':_0x5db64f,'name':_0x24da20[_0x4a9605(_0x253e2d._0x128c14,0x4ad,0x475,_0x253e2d._0x3ea148)]}];if(_0x24da20?.[_0x10b2e9(0x390,_0x253e2d._0xc26d1d,0x23a,0x2b6)]==='thinking'){this[_0x4a9605(_0x253e2d._0x1cbd86,0x5e9,0x5b9,0x497)][_0x10b2e9(0x37e,_0x253e2d._0x5c0a6e,_0x253e2d._0x2ae6c5,_0x253e2d._0x55a80b)](_0x5db64f,{'index':_0x5db64f,'kind':_0x4a9605(0x628,0x576,_0x253e2d._0x3d2f86,_0x253e2d._0x3d0fe5),'signature':typeof _0x24da20['signature']===_0x10b2e9(_0x253e2d._0xe24e6a,_0x253e2d._0x1c4034,0x321,0x2c3)?_0x24da20[_0x4a9605(0x66f,0x6a2,0x706,0x67b)]:'','thinking':typeof _0x24da20[_0x10b2e9(_0x253e2d._0x2ec0e3,0x4ff,_0x253e2d._0x23ddfe,_0x253e2d._0x28e84c)]===_0x4a9605(0x4cb,0x466,_0x253e2d._0x41e99e,0x506)?_0x24da20[_0x10b2e9(0x383,_0x253e2d._0x50a657,0x4c5,0x40f)]:typeof _0x24da20['thinking']===_0x10b2e9(_0x253e2d._0x57fbea,_0x253e2d._0x422646,0x21f,_0x253e2d._0x31b3de)?String(_0x24da20[_0x10b2e9(_0x253e2d._0x17bcb7,_0x253e2d._0x2a5c56,_0x253e2d._0x404aae,0x420)]):''});break;}if(_0x24da20?.[_0x4a9605(0x4be,_0x253e2d._0x535652,_0x253e2d._0x445348,_0x253e2d._0x8dfd46)]===_0x4a9605(_0x253e2d._0x23138a,_0x253e2d._0xdc0e3c,_0x253e2d._0xa75735,0x49c)){this[_0x4a9605(0x570,_0x253e2d._0x1b77dc,0x53a,_0x253e2d._0x3f1135)]['set'](_0x5db64f,{'index':_0x5db64f,'kind':_0x10b2e9(0x228,0x347,0x231,_0x253e2d._0x5e897b),'data':typeof _0x24da20[_0x10b2e9(_0x253e2d._0x4274d9,_0x253e2d._0x28ae77,0x232,0x2b1)]===_0x4a9605(0x4cb,0x58e,0x493,0x499)?String(_0x24da20[_0x10b2e9(_0x253e2d._0x5b4c5b,0x1ec,0x2f6,_0x253e2d._0x844e8e)]):''});break;}this[_0x4a9605(0x570,_0x253e2d._0x47168b,_0x253e2d._0x17aaf1,0x653)]['set'](_0x5db64f,{'index':_0x5db64f,'kind':_0x4a9605(0x617,_0x253e2d._0x1da075,_0x253e2d._0x23bada,_0x253e2d._0x250bd4),'text':_0x24da20?.[_0x10b2e9(_0x253e2d._0x68ad86,0x488,0x373,_0x253e2d._0x5d55b6)]??''});break;}case _0x4a9605(0x5ad,_0x253e2d._0x226465,_0x253e2d._0x227651,0x5cc):{const _0x71bf50=typeof _0x112660[_0x4a9605(_0x253e2d._0x20bfa5,_0x253e2d._0x8d9306,_0x253e2d._0x535c9c,0x57c)]==='number'?_0x112660[_0x10b2e9(_0x253e2d._0x18c425,_0x253e2d._0x596d3c,_0x253e2d._0x2146cb,0x344)]:0x0,_0x3a9c56=this[_0x10b2e9(_0x253e2d._0x53fb18,0x343,_0x253e2d._0x18ad1e,0x368)][_0x10b2e9(0x452,0x3f2,_0x253e2d._0x3667fa,0x44c)](_0x71bf50),_0xa7c181=_0x112660[_0x10b2e9(0x3f5,_0x253e2d._0x29391b,0x44e,0x3fb)];if(!_0x3a9c56||!_0xa7c181?.[_0x4a9605(0x4be,0x457,_0x253e2d._0x535652,_0x253e2d._0x4b6fe8)])break;if(_0xa7c181['type']===_0x10b2e9(_0x253e2d._0x4d14eb,_0x253e2d._0x543fca,_0x253e2d._0x2349d9,_0x253e2d._0x12427d)&&_0x3a9c56[_0x10b2e9(_0x253e2d._0x2df522,_0x253e2d._0x457cff,0x34f,_0x253e2d._0x35987b)]==='text'&&typeof _0xa7c181['text']===_0x4a9605(0x4cb,0x48d,_0x253e2d._0x585016,_0x253e2d._0x1f1ea5))return _0x3a9c56[_0x4a9605(0x617,0x548,_0x253e2d._0x48a0a8,0x5c7)]+=_0xa7c181[_0x4a9605(_0x253e2d._0x2bfb35,0x5c6,_0x253e2d._0x573f60,0x548)],[{'type':_0x10b2e9(0x39d,0x466,0x324,0x3e1),'index':_0x71bf50,'text':_0xa7c181['text']}];if(_0xa7c181[_0x4a9605(0x4be,_0x253e2d._0x37400b,_0x253e2d._0x332751,0x4af)]===_0x4a9605(_0x253e2d._0x334fcf,0x4d2,_0x253e2d._0x3e1d8e,_0x253e2d._0xbc88d6)&&_0x3a9c56[_0x10b2e9(0x487,0x3c9,_0x253e2d._0x5b64ba,_0x253e2d._0x35987b)]===_0x4a9605(0x535,_0x253e2d._0x5322b6,0x4f4,0x493)&&typeof _0xa7c181[_0x4a9605(0x667,_0x253e2d._0x4ff39c,0x709,_0x253e2d._0x21641f)]===_0x10b2e9(0x21d,0x2ef,0x315,_0x253e2d._0x31b3de))return _0x3a9c56['inputJson']==='{}'&&(_0x3a9c56[_0x4a9605(0x620,_0x253e2d._0x2bb4c0,0x5ab,0x625)]=''),_0x3a9c56[_0x4a9605(0x620,0x6b4,_0x253e2d._0x30f19d,_0x253e2d._0x5cd73a)]+=_0xa7c181[_0x10b2e9(0x3e6,_0x253e2d._0x4c220f,_0x253e2d._0x5ddb09,_0x253e2d._0x5480c3)],[{'type':_0x10b2e9(0x3ba,0x445,0x3ab,0x3b6),'id':_0x3a9c56['id'],'index':_0x71bf50,'inputDelta':_0xa7c181[_0x4a9605(0x667,0x74c,_0x253e2d._0x281efb,0x699)]}];if(_0xa7c181[_0x10b2e9(_0x253e2d._0x46d0ba,_0x253e2d._0x478fbe,_0x253e2d._0x4a3339,_0x253e2d._0x176658)]==='thinking_delta'&&_0x3a9c56['kind']===_0x4a9605(0x628,_0x253e2d._0x12a333,0x67a,0x5fc)){const _0x2e65a3=typeof _0xa7c181[_0x4a9605(0x628,_0x253e2d._0x28b4b9,0x63d,0x53b)]==='string'?String(_0xa7c181['thinking']):'';if(_0x2e65a3['length']>0x0){_0x3a9c56[_0x10b2e9(_0x253e2d._0x7780ff,_0x253e2d._0x4fb76c,0x4c0,_0x253e2d._0x256b47)]+=_0x2e65a3;if(isUserVisibleThinking(this[_0x10b2e9(_0x253e2d._0x57a634,0x3f2,_0x253e2d._0x7aa690,0x34c)]))return[{'type':_0x4a9605(_0x253e2d._0x3ecea6,0x540,0x55e,_0x253e2d._0x3ecea6),'index':_0x71bf50,'thinking':_0x2e65a3}];}}if(_0xa7c181[_0x10b2e9(0x25b,0x2a2,0x221,_0x253e2d._0x176658)]===_0x10b2e9(0x455,0x437,0x4c6,_0x253e2d._0x1dea89)&&_0x3a9c56[_0x4a9605(_0x253e2d._0x914ecf,0x5b4,0x5bf,_0x253e2d._0x56c1a3)]===_0x10b2e9(_0x253e2d._0x2d906a,0x46f,_0x253e2d._0x4e50b5,_0x253e2d._0x256b47)){const _0x254417=typeof _0xa7c181[_0x4a9605(0x66f,_0x253e2d._0x3b6305,0x5a8,0x6ff)]===_0x10b2e9(0x361,_0x253e2d._0x455a0b,_0x253e2d._0x4a28c1,0x2c3)?String(_0xa7c181['signature']):'';if(_0x254417[_0x10b2e9(0x4d2,_0x253e2d._0xae8fb3,0x389,0x445)]>0x0){_0x3a9c56[_0x10b2e9(0x3a3,_0x253e2d._0x4d264f,_0x253e2d._0xb15fd7,_0x253e2d._0x3ea41f)]=_0x254417;if(isUserVisibleThinking(this['request']))return[{'type':_0x10b2e9(0x374,_0x253e2d._0x556da0,0x3a8,_0x253e2d._0x591b1c),'index':_0x71bf50,'signature':_0x254417}];}}break;}case _0x10b2e9(_0x253e2d._0x81f28d,_0x253e2d._0xcb7e3d,0x3ca,0x337):{const _0x5821d5=_0x112660[_0x10b2e9(0x37f,0x37a,0x314,0x3fb)],_0x144bf2=_0x112660[_0x10b2e9(_0x253e2d._0x56379b,_0x253e2d._0x4b7dcf,_0x253e2d._0x3f2706,0x409)];this[_0x10b2e9(0x28f,0x35e,_0x253e2d._0xe77d6,_0x253e2d._0x2e4521)]=_0x144bf2?.[_0x4a9605(0x53e,_0x253e2d._0x171985,_0x253e2d._0x232ded,0x52d)]??this[_0x10b2e9(0x2cf,0x3f6,_0x253e2d._0x3fa9f7,0x35c)],this[_0x4a9605(_0x253e2d._0x47bc35,0x5ac,0x4c5,_0x253e2d._0x36c0b8)]=_0x144bf2?.[_0x4a9605(_0x253e2d._0x444a69,_0x253e2d._0xcc7e77,0x428,_0x253e2d._0x585016)]??this['cacheReadInputTokens'],this['cacheCreationInputTokens']=_0x144bf2?.[_0x10b2e9(_0x253e2d._0x240fe0,_0x253e2d._0x342695,_0x253e2d._0x3865a9,_0x253e2d._0x2d0f87)]??this[_0x4a9605(0x507,_0x253e2d._0x6e2360,_0x253e2d._0x514d88,0x46c)],this['outputTokens']=_0x144bf2?.[_0x4a9605(_0x253e2d._0xa73940,_0x253e2d._0x5b51c2,0x496,_0x253e2d._0x2cc135)]??this[_0x10b2e9(0x367,0x2e3,0x3f2,0x31f)],this['stopReason']=_0x5821d5?.[_0x4a9605(_0x253e2d._0x363d14,0x562,_0x253e2d._0x55ba71,0x44e)]===_0x10b2e9(_0x253e2d._0x73a10d,_0x253e2d._0x4ef184,_0x253e2d._0x3797d3,0x32d)?_0x10b2e9(_0x253e2d._0x3067b8,_0x253e2d._0x3bdeda,_0x253e2d._0x530a67,_0x253e2d._0x24ae20):'end_turn';break;}case _0x4a9605(0x4bd,_0x253e2d._0x2098db,_0x253e2d._0x587672,0x525):{const _0xe012bb=_0x112660[_0x10b2e9(0x337,_0x253e2d._0x19ac4d,0x318,0x2b5)];throw new ProviderStreamEventError(_0xe012bb?.['message']??_0x4a9605(0x4b0,_0x253e2d._0x2885cc,_0x253e2d._0x20d6da,0x4c2),{'code':_0xe012bb?.[_0x10b2e9(0x1ce,_0x253e2d._0xdcecee,0x248,0x2b6)],'retryable':!![]});}}function _0x10b2e9(_0x885d28,_0x39f5b5,_0x2fa479,_0x2d0e85){return _0x18ceca(_0x885d28,_0x2d0e85- -_0x5563d5._0x38d98e,_0x2fa479-0x14b,_0x2d0e85-_0x5563d5._0x9b7266);}return[];}[_0x4de126(0x321,0x345,0x292,0x27e)](){const _0x21e125={_0x26fdd8:0x227,_0x1fbba0:0x5b9,_0x46e9ec:0x68c,_0x3d5353:0x53d,_0x426b40:0x633,_0x372a66:0x62c,_0x10cd19:0x682,_0x4a9f83:0x57e,_0x3d87d3:0x568,_0x3ac8df:0x70f,_0x10d566:0x60a,_0x191933:0x575,_0x1d293d:0x62c,_0x369de4:0x56f,_0x352df7:0x646,_0x490cc6:0x63d,_0x5ed914:0x6af,_0x325020:0x636,_0x338cbe:0x26e,_0x538d0a:0x29b,_0x592897:0x1a6,_0x336398:0x1fe,_0x5585bc:0x158,_0x3ac01e:0x194,_0x470ff5:0x633,_0x3c913a:0x504,_0x10545c:0x4d4,_0x27e897:0x41e,_0x4d6812:0xff,_0x4c9f53:0x42,_0x144697:0x3c,_0x367300:0x62b,_0x2886df:0x5e8,_0x643c9b:0x16b,_0xd1c8d8:0x27d,_0x455d68:0x24a,_0x229fef:0x1dc,_0x20f839:0x248,_0x2e5cb9:0x635,_0x3b5bb9:0x5c9,_0x1a09a7:0x621,_0x1b204d:0x10f,_0x3eeacc:0x17d,_0x494217:0x116,_0x1bf617:0x162,_0x39274f:0x89,_0x83f4d9:0x540,_0x45d1e3:0x2c,_0x528c8b:0xd5,_0x3e7277:0x6a,_0x15e755:0x57,_0x48633c:0x1c,_0x37a99c:0x5b5,_0x288c47:0x550,_0x5eb061:0x504,_0x2746e0:0x5b0},_0x1fa997={_0x57345a:0x7c,_0x488943:0x65},_0x59e82b={_0x538b84:0x46,_0x15c73d:0x3bb};function _0x1c6c93(_0x9852c,_0x5960a6,_0x34500b,_0x1babe6){return _0x4de126(_0x9852c,_0x5960a6-_0x59e82b._0x538b84,_0x34500b-0xbe,_0x5960a6-_0x59e82b._0x15c73d);}const _0x4ad542=Array[_0xb2b88(0x1f8,0x224,_0x21e125._0x26fdd8,0x1f5)](this['blocks'][_0x1c6c93(_0x21e125._0x1fbba0,0x683,_0x21e125._0x46e9ec,0x756)]())[_0x1c6c93(_0x21e125._0x3d5353,0x61c,0x60f,0x5be)]((_0x5154db,_0x5346ae)=>_0x5154db[_0x1c6c93(0x646,0x561,0x59c,0x5ba)]-_0x5346ae[_0x1c6c93(0x5f0,0x561,0x624,0x4bb)]),_0x4a2098=[];for(const _0x4deb15 of _0x4ad542){if(_0x4deb15[_0x1c6c93(0x6c9,_0x21e125._0x426b40,0x591,0x5af)]==='text'){_0x4deb15[_0x1c6c93(0x68b,_0x21e125._0x372a66,_0x21e125._0x10cd19,_0x21e125._0x4a9f83)]['length']>0x0&&_0x4a2098[_0x1c6c93(0x607,0x636,_0x21e125._0x3d87d3,_0x21e125._0x3ac8df)]({'type':_0x1c6c93(_0x21e125._0x10d566,_0x21e125._0x372a66,_0x21e125._0x191933,0x57b),'text':_0x4deb15[_0x1c6c93(0x626,_0x21e125._0x1d293d,0x698,_0x21e125._0x369de4)]});continue;}if(_0x4deb15[_0x1c6c93(0x71e,_0x21e125._0x426b40,0x59b,0x561)]===_0x1c6c93(_0x21e125._0x352df7,_0x21e125._0x490cc6,0x55f,_0x21e125._0x5ed914)){_0x4a2098[_0x1c6c93(0x6c6,_0x21e125._0x325020,0x6aa,0x64d)]({'type':_0xb2b88(0x1b7,_0x21e125._0x338cbe,_0x21e125._0x538d0a,0xce),'thinking':_0x4deb15[_0xb2b88(0x1b7,0x128,0x184,_0x21e125._0x592897)],'signature':_0x4deb15[_0xb2b88(_0x21e125._0x336398,_0x21e125._0x5585bc,_0x21e125._0x3ac01e,0x1f5)]});continue;}if(_0x4deb15[_0x1c6c93(0x669,_0x21e125._0x470ff5,0x561,0x711)]===_0x1c6c93(0x46a,_0x21e125._0x3c913a,_0x21e125._0x10545c,_0x21e125._0x27e897)){_0x4a2098['push']({'type':_0xb2b88(0x7e,_0x21e125._0x4d6812,0x23,0x83),'data':_0x4deb15[_0xb2b88(0x48,-0x45,_0x21e125._0x4c9f53,_0x21e125._0x144697)]});continue;}_0x4a2098['push']({'type':'tool_use','id':_0x4deb15['id'],'name':_0x4deb15[_0x1c6c93(0x481,0x555,_0x21e125._0x367300,_0x21e125._0x2886df)],'input':parseToolInput(_0x4deb15[_0xb2b88(0x1af,_0x21e125._0x643c9b,_0x21e125._0xd1c8d8,_0x21e125._0x455d68)][_0xb2b88(_0x21e125._0x229fef,0x118,_0x21e125._0x20f839,0x180)]>0x0?_0x4deb15[_0x1c6c93(0x677,_0x21e125._0x2e5cb9,_0x21e125._0x3b5bb9,_0x21e125._0x1a09a7)]:'{}')});}function _0xb2b88(_0x38c1c3,_0x46f182,_0x4f3bbc,_0x4bb105){return _0x18ceca(_0x46f182,_0x38c1c3- -0x42c,_0x4f3bbc-_0x1fa997._0x57345a,_0x4bb105-_0x1fa997._0x488943);}return parseAnthropicResponse({'id':this[_0xb2b88(_0x21e125._0x1b204d,0xa8,0x16f,_0x21e125._0x3eeacc)],'type':_0xb2b88(_0x21e125._0x494217,0xc4,_0x21e125._0x1bf617,_0x21e125._0x39274f),'role':_0x1c6c93(_0x21e125._0x83f4d9,0x5c7,0x4e3,0x655),'content':_0x4a2098,'stop_reason':this['stopReason'],'stop_sequence':null,'usage':{'input_tokens':this[_0xb2b88(0xf3,_0x21e125._0x45d1e3,_0x21e125._0x528c8b,_0x21e125._0x3e7277)],'output_tokens':this[_0xb2b88(0xb6,_0x21e125._0x15e755,_0x21e125._0x48633c,0x19c)],'cache_read_input_tokens':this[_0x1c6c93(_0x21e125._0x37a99c,0x59d,0x610,0x618)],'cache_creation_input_tokens':this['cacheCreationInputTokens']}},this[_0x1c6c93(_0x21e125._0x288c47,0x569,_0x21e125._0x5eb061,_0x21e125._0x2746e0)]);}};function createAnthropicSurfaces(){const _0x59ee60={_0x515309:0x2bd,_0x3a6421:0x2b6,_0x5cf16c:0x2b3,_0xb9e9fb:0x37c},_0x220f13={_0x2b1987:0x6,_0x46c04f:0x1c,_0x45cb37:0xb9},_0x146ca8={_0x107f08:0x477,_0x7e7b3a:0x61};function _0x46ec5d(_0x165f58,_0x197c8a,_0x226852,_0x589d3b){return _0x18ceca(_0x197c8a,_0x165f58- -_0x146ca8._0x107f08,_0x226852-0x147,_0x589d3b-_0x146ca8._0x7e7b3a);}function _0x33b9a9(_0x34e923,_0x29d02f,_0x2ef076,_0x2a0d2f){return _0x4de126(_0x2ef076,_0x29d02f-_0x220f13._0x2b1987,_0x2ef076-_0x220f13._0x46c04f,_0x29d02f-_0x220f13._0x45cb37);}return[{'id':ANTHROPIC_MESSAGES_SURFACE,'transport':_0x33b9a9(0x39b,_0x59ee60._0x515309,0x222,0x1f9),'createRequest'(_0x14054b){return createAnthropicRequest(_0x14054b,![]);},'parseResponse'(_0x5d98e9,_0x10de27){return parseAnthropicResponse(_0x5d98e9,_0x10de27);}},{'id':ANTHROPIC_MESSAGES_STREAM_SURFACE,'transport':_0x33b9a9(_0x59ee60._0x3a6421,_0x59ee60._0x5cf16c,0x26f,_0x59ee60._0xb9e9fb),'createRequest'(_0x3ec97b){return createAnthropicRequest(_0x3ec97b,!![]);},'createStreamParser'(_0x1dbad9){return new AnthropicMessagesStreamParser(_0x1dbad9);}}];}var StaticModelSurfaceRouter=class{[_0x4de126(0x1dc,0x1c2,0x1fa,0x16f)];[_0x4de126(0x1be,0x125,0x1e1,0x1a8)];constructor(_0x4b7d43){const _0x15a3e7={_0x45a230:0x40c,_0x54f516:0x360,_0x164562:0x42c,_0xd074c6:0x4e8,_0x146ffd:0x542,_0x3b197f:0x5ee},_0x3b214e={_0x103127:0x1d2},_0x4749={_0x1c0e26:0x6};function _0x59a1b0(_0x3301fb,_0x233bbe,_0x4822ee,_0x1d660f){return _0x18ceca(_0x4822ee,_0x3301fb- -0xc4,_0x4822ee-0x13c,_0x1d660f-_0x4749._0x1c0e26);}function _0x17aa1f(_0xc4d242,_0xea9fbe,_0x149971,_0x209df2){return _0x18ceca(_0xea9fbe,_0x149971- -0xc7,_0x149971-0x1c5,_0x209df2-_0x3b214e._0x103127);}this[_0x59a1b0(_0x15a3e7._0x45a230,0x4a0,_0x15a3e7._0x54f516,_0x15a3e7._0x164562)]=_0x4b7d43[_0x59a1b0(0x4de,0x443,_0x15a3e7._0xd074c6,0x530)],this['streamSurface']=_0x4b7d43[_0x59a1b0(_0x15a3e7._0x146ffd,0x5a1,_0x15a3e7._0x3b197f,0x4c8)];}[_0x18ceca(0x556,0x567,0x4f9,0x5df)](_0x4e4b96,_0x534a6a){const _0x1a8048={_0x3a156d:0x238,_0x376a5c:0x2b1,_0x11ea67:0x278,_0x21ee7a:0x26b,_0x576692:0x34b,_0xc7352f:0x339,_0x1b24aa:0x2ac,_0x4d1c06:0x210,_0x1a96cf:0x1ed,_0x367ec6:0x273,_0x50f6c3:0x212},_0x2745bc={_0x53dd3d:0xdd,_0x9e318f:0x113,_0x2954cf:0x8},_0x5553f1={_0x48d64:0x55};function _0x371b5e(_0x4f9347,_0x1653cf,_0x9ff788,_0xb2712b){return _0x18ceca(_0x1653cf,_0x9ff788- -0x25d,_0x9ff788-0x12b,_0xb2712b-_0x5553f1._0x48d64);}function _0x10fc7a(_0x58f2e5,_0x280d07,_0x3885f8,_0x4df461){return _0x4de126(_0x58f2e5,_0x280d07-_0x2745bc._0x53dd3d,_0x3885f8-_0x2745bc._0x9e318f,_0x4df461-_0x2745bc._0x2954cf);}return _0x534a6a[_0x10fc7a(_0x1a8048._0x3a156d,_0x1a8048._0x376a5c,_0x1a8048._0x11ea67,_0x1a8048._0x21ee7a)]==='stream'?this[_0x371b5e(_0x1a8048._0x576692,_0x1a8048._0xc7352f,_0x1a8048._0x1b24aa,_0x1a8048._0x4d1c06)]:this[_0x371b5e(0x285,_0x1a8048._0x1a96cf,_0x1a8048._0x367ec6,_0x1a8048._0x50f6c3)];}};function trimTrailingSlashes(_0x531825){const _0x37a6a0={_0x11ebec:0x9b,_0x37a1b3:0x59,_0x56ef4e:0x71,_0x910106:0x8d};function _0x2be25a(_0x47541f,_0x5b22e0,_0x53acce,_0x3a2d5e){return _0x18ceca(_0x5b22e0,_0x3a2d5e- -0x457,_0x53acce-0xdb,_0x3a2d5e-0x18a);}return _0x531825[_0x2be25a(_0x37a6a0._0x11ebec,_0x37a6a0._0x37a1b3,_0x37a6a0._0x56ef4e,_0x37a6a0._0x910106)](/\/+$/,'');}function resolveApiCredential(_0x35f382,_0x38a6ac){const _0x2dd85c={_0x3aea3d:0x5e7,_0x52a5ff:0x5c5},_0x44c8db={_0x5a415e:0x11a,_0xa42a1e:0x3ee};if(_0x38a6ac?.['credential'])return _0x38a6ac['credential'];if(!_0x35f382)return void 0x0;function _0x48de2e(_0x1b601f,_0x315fed,_0x3775c8,_0xb84bb2){return _0x4de126(_0xb84bb2,_0x315fed-0x8,_0x3775c8-_0x44c8db._0x5a415e,_0x3775c8-_0x44c8db._0xa42a1e);}return{'kind':_0x48de2e(_0x2dd85c._0x3aea3d,0x609,_0x2dd85c._0x52a5ff,0x5ee),'value':_0x35f382};}function resolveSessionBaseUrl(_0x18fcb2,_0x578250){const _0x168c00={_0x41c7e2:0xa0,_0x4701a2:0x14d,_0x5be7be:0x438,_0xb14773:0x467},_0xcf83f={_0x2249a1:0x24a},_0x1a903d={_0x78398b:0x7a};function _0xbcd29f(_0x29a9ed,_0x46c24b,_0x5cebf2,_0x1a3000){return _0x18ceca(_0x1a3000,_0x5cebf2- -0x4ca,_0x5cebf2-0x8c,_0x1a3000-_0x1a903d._0x78398b);}function _0x188d3c(_0x4e62af,_0x51f3d6,_0x19e8f3,_0x329806){return _0x18ceca(_0x51f3d6,_0x329806- -_0xcf83f._0x2249a1,_0x19e8f3-0x3d,_0x329806-0xb0);}return trimTrailingSlashes(_0x578250?.[_0xbcd29f(0x18f,_0x168c00._0x41c7e2,_0x168c00._0x4701a2,0x1ba)]?.[_0x188d3c(_0x168c00._0x5be7be,_0x168c00._0xb14773,0x407,0x3cb)]??_0x18fcb2);}var model_registry_default={'defaultMaxTokens':0x4000,'defaultModel':_0x18ceca(0x662,0x57b,0x48f,0x563),'cliDefaultModel':_0x18ceca(0x41e,0x4d1,0x483,0x571),'providers':{'anthropic':{'label':_0x4de126(0x29a,0x1db,0x240,0x1e8),'baseUrl':_0x18ceca(0x698,0x5aa,0x689,0x60c),'surface':'anthropic-messages','authScheme':_0x18ceca(0x6b1,0x60d,0x57c,0x6e3),'defaultModel':_0x4de126(0x133,0x1b1,0x58,0x13a),'defaultModels':[_0x4de126(0x1fd,0xca,0x104,0x13a),'claude-3-5-sonnet-20241022'],'supportsModelFetch':![],'models':{'claude-sonnet-4-20250514':{'contextWindow':0x30d40,'maxOutput':0x3e80},'claude-3-5-sonnet-20241022':{'contextWindow':0x30d40,'maxOutput':0x2000}}},'zai':{'label':'Z.AI','baseUrl':_0x4de126(0xe1,0xd4,0x1cb,0x13d),'anthropicBaseUrl':_0x4de126(0x98,0x1b9,0x18d,0x151),'surface':'anthropic-messages','authScheme':_0x18ceca(0x4cb,0x470,0x4d8,0x450),'defaultModel':_0x18ceca(0x3fb,0x4d1,0x431,0x538),'defaultModels':[_0x4de126(0x137,0x35,0xed,0x109),_0x18ceca(0x433,0x490,0x3c3,0x4e5),_0x4de126(0x20c,0x1bf,0x1fa,0x170),_0x18ceca(0x5bc,0x5fb,0x57e,0x571),_0x18ceca(0x637,0x5e9,0x631,0x545)],'supportsModelFetch':![],'models':{'glm-5.2':{'contextWindow':0xf4240,'maxOutput':0x1f400},'glm-5.1':{'contextWindow':0x30d40,'maxOutput':0x1f400},'glm-4.7':{'contextWindow':0x30d40,'maxOutput':0x1f400},'glm-4.6':{'contextWindow':0x30d40,'maxOutput':0x1f400},'glm-4.5':{'contextWindow':0x30d40,'maxOutput':0x1f400}}},'openrouter':{'label':_0x18ceca(0x51a,0x4ab,0x515,0x3f1),'baseUrl':_0x18ceca(0x3cc,0x4a5,0x53f,0x4bd),'surface':_0x4de126(0x26b,0x171,0x2ce,0x245),'authScheme':'bearer','defaultModel':_0x4de126(0x1ec,0x237,0x138,0x17c),'defaultModels':[_0x18ceca(0x495,0x4dd,0x544,0x571),_0x4de126(0x2a5,0x1a5,0x1cb,0x1ea)],'supportsModelFetch':!![],'models':{'anthropic/claude-3.5-sonnet':{'contextWindow':0x30d40,'maxOutput':0x2000},'openai/gpt-4o':{'contextWindow':0x1f400,'maxOutput':0x4000},'openai/gpt-4.1':{'contextWindow':0x1f400,'maxOutput':0x8000}}},'github':{'label':'GitHub\x20Models\x20/\x20Copilot','surface':'openai-responses','defaultModel':_0x18ceca(0x534,0x588,0x5cf,0x5a4),'defaultModels':[_0x4de126(0x2c7,0x2c7,0x209,0x258),_0x4de126(0xea,0x83,0x12c,0x12e),_0x4de126(0x1d4,0x32a,0x1a4,0x294),_0x4de126(0x185,0x12a,0x285,0x1d8),'grok-code-fast-1','claude-sonnet-4'],'supportsModelFetch':!![],'models':{'claude-sonnet-4.5':{'contextWindow':0x30d40,'maxOutput':0x3e80,'surface':'anthropic-messages'},'claude-sonnet-4':{'contextWindow':0x30d40,'maxOutput':0x3e80,'surface':_0x18ceca(0x536,0x4c0,0x531,0x4d4)},'gpt-5.1-codex':{'contextWindow':0x30d40,'maxOutput':0x186a0},'gpt-5':{'contextWindow':0x30d40,'maxOutput':0x186a0},'gpt-5-mini':{'contextWindow':0x30d40,'maxOutput':0x186a0},'gpt-4.1':{'contextWindow':0x1f400,'maxOutput':0x4000},'gpt-4o':{'contextWindow':0x1f400,'maxOutput':0x4000}}},'openai':{'label':_0x18ceca(0x46d,0x522,0x459,0x549),'baseUrl':'https://api.openai.com/v1','surface':_0x18ceca(0x67c,0x5a6,0x562,0x5e3),'authScheme':_0x4de126(0x137,0xdb,0x185,0x10f),'defaultModel':_0x4de126(0x1b4,0x14f,0x246,0x21a),'defaultModels':[],'supportsModelFetch':![],'models':{}},'deepseek':{'label':_0x18ceca(0x59a,0x612,0x6ae,0x604),'baseUrl':_0x4de126(0x12c,0x141,0x188,0x213),'surface':'anthropic-messages','authScheme':'bearer','defaultModel':'deepseek-v4-pro','defaultModels':['deepseek-v4-pro',_0x4de126(0x34d,0x2d1,0x306,0x26a)],'supportsModelFetch':![],'models':{'deepseek-v4-pro':{'contextWindow':0xf4240,'maxOutput':0x5dc00},'deepseek-v4-flash':{'contextWindow':0xf4240,'maxOutput':0x5dc00}}},'minimax':{'label':_0x18ceca(0x5b7,0x628,0x6a6,0x652),'baseUrl':_0x18ceca(0x50c,0x4a8,0x439,0x3eb),'surface':_0x4de126(0x16e,0xee,0x1ed,0x15f),'authScheme':_0x4de126(0x122,0x17b,0xbd,0x10f),'defaultModel':_0x18ceca(0x50f,0x4c4,0x590,0x460),'defaultModels':[_0x4de126(0x18d,0x127,0x1eb,0x163)],'supportsModelFetch':![],'models':{'MiniMax-M3':{'contextWindow':0xf4240,'maxOutput':0x7d000},'MiniMax-M2.7':{'contextWindow':0x32000,'maxOutput':0x7d00}}},'commandcode':{'label':_0x4de126(0xea,0x7f,0x1ba,0x10e),'baseUrl':'https://api.commandcode.ai/provider','modelsBaseUrl':_0x4de126(0x190,0x23a,0x1ee,0x238),'surface':'anthropic-messages','authScheme':_0x18ceca(0x5ef,0x60d,0x686,0x67a),'defaultModel':_0x18ceca(0x516,0x49b,0x4eb,0x3f7),'defaultModels':[],'supportsModelFetch':!![],'models':{}},'xiaomi':{'label':_0x18ceca(0x565,0x60b,0x67c,0x63a),'baseUrl':'https://token-plan-sgp.xiaomimimo.com/anthropic','modelsBaseUrl':_0x18ceca(0x4da,0x533,0x5a9,0x4ec),'surface':'anthropic-messages','authScheme':_0x18ceca(0x6bf,0x60d,0x52f,0x54b),'defaultModel':'mimo-v2.5-pro','defaultModels':[],'supportsModelFetch':!![],'models':{}}}},data=model_registry_default;function findProviderKey(_0x31b2b9){const _0x497495={_0x245cbe:0x70d,_0x33ef6a:0x1e},_0x1ec804=_0x31b2b9['toLowerCase']();function _0x1c6feb(_0x3a8b4c,_0x3cbebf,_0x18e510,_0x27855f){return _0x18ceca(_0x3a8b4c,_0x3cbebf- -_0x497495._0x245cbe,_0x18e510-0x9a,_0x27855f-_0x497495._0x33ef6a);}return Object['keys'](data['providers'])['find'](_0x248666=>_0x248666[_0x1c6feb(-0x1c6,-0xf2,-0x8d,-0x1da)]()===_0x1ec804);}function getProviderProfile(_0x1625b0){const _0x555fb1={_0xc2692:0x468,_0x49a025:0x53b,_0x146087:0xfb,_0x2b44bd:0x1c5,_0x39a95a:0x18c,_0x2ada8f:0x1b,_0x188740:0x1e,_0x4b8761:0x15,_0x3b0daa:0x102,_0x4d2dec:0x1b1,_0xfb6140:0x62d,_0x2b2484:0x585,_0x4b8c19:0x526,_0x565ea1:0x4b9,_0x577f98:0x454,_0x3e5f48:0x51f,_0x13a2e6:0x46e},_0x311ed1={_0x57b719:0x1c4},_0x5ddd6a={_0x5544fd:0xaa},_0x2bcb15=findProviderKey(_0x1625b0);if(!_0x2bcb15)return void 0x0;const _0x4ef584=data[_0x54924b(0x4e2,0x40f,_0x555fb1._0xc2692,_0x555fb1._0x49a025)][_0x2bcb15],_0x54f0ad={};for(const [_0x57c7ac,_0x2fed99]of Object[_0x3931b9(-_0x555fb1._0x146087,-_0x555fb1._0x2b44bd,-0x2d,-_0x555fb1._0x39a95a)](_0x4ef584[_0x3931b9(-0x12e,-0x200,-0x20b,-0xf7)])){_0x54f0ad[_0x57c7ac]=_0x2fed99;}function _0x3931b9(_0x51ea62,_0x163f9d,_0x12ed40,_0x188708){return _0x4de126(_0x163f9d,_0x163f9d-0x8f,_0x12ed40-_0x5ddd6a._0x5544fd,_0x51ea62- -0x26d);}function _0x54924b(_0x5da5e8,_0x267cb3,_0x534800,_0x394ee1){return _0x4de126(_0x394ee1,_0x267cb3-_0x311ed1._0x57b719,_0x534800-0x1b6,_0x534800-0x2e1);}return{'label':_0x4ef584[_0x3931b9(0x3c,-_0x555fb1._0x2ada8f,-0x7f,-0x1c)],'baseUrl':_0x4ef584[_0x3931b9(-_0x555fb1._0x188740,0x3b,_0x555fb1._0x4b8761,-0xc0)],'modelsBaseUrl':_0x4ef584[_0x54924b(0x5b7,0x5de,0x506,0x4ed)],'anthropicBaseUrl':_0x4ef584['anthropicBaseUrl'],'surface':_0x4ef584[_0x3931b9(-0x140,-0x83,-_0x555fb1._0x3b0daa,-_0x555fb1._0x4d2dec)],'authScheme':_0x4ef584[_0x54924b(0x58f,_0x555fb1._0xfb6140,_0x555fb1._0x2b2484,_0x555fb1._0x4b8c19)],'defaultModel':_0x4ef584['defaultModel'],'defaultModels':_0x4ef584[_0x54924b(0x42a,0x491,0x3e5,_0x555fb1._0x565ea1)]??[],'supportsModelFetch':_0x4ef584[_0x54924b(_0x555fb1._0x577f98,0x42f,_0x555fb1._0x3e5f48,_0x555fb1._0x13a2e6)]??![],'models':_0x54f0ad};}function getModelProfile(_0x255d5e,_0x4afa73){const _0x5e501e={_0x3ce90e:0x3d5,_0x212376:0x438},_0x2c174e={_0x3a78da:0xb4},_0x5c10f2=findProviderKey(_0x255d5e);if(!_0x5c10f2)return void 0x0;function _0x4c626c(_0x7eb8aa,_0x4bdc0e,_0x11dea3,_0x3ad5df){return _0x4de126(_0x7eb8aa,_0x4bdc0e-0x109,_0x11dea3-_0x2c174e._0x3a78da,_0x3ad5df-0x2b1);}return data[_0x4c626c(_0x5e501e._0x3ce90e,0x476,0x4d9,_0x5e501e._0x212376)][_0x5c10f2]['models'][_0x4afa73];}function resolveModelProfile(_0x1ed0a8,_0x16c7c0){const _0x4d683d={_0x398085:0x10e,_0x53a758:0x14a,_0x5e2c6e:0x7f,_0x3c93b1:0x10e,_0x2b456b:0x14,_0x4cf279:0x33,_0x2cff14:0xee,_0x33be0c:0x5cd,_0x437786:0x675,_0x2f9965:0x64b,_0x11ee46:0x6c7,_0x887a43:0x97,_0x2962ab:0x1e6,_0x1aaa4d:0x168,_0x4a797c:0xec,_0x2b945a:0x1d7,_0x21b01e:0x6b1,_0x56a010:0x4e,_0x27728d:0xd6,_0x381553:0x191,_0x5aa597:0x1d6,_0xb24cd:0x57,_0x4d56ac:0xe6,_0x17d07a:0x108,_0xe88216:0x2c,_0x3faa01:0x8d,_0x4df3e3:0x5d2},_0x320779={_0x1ede45:0x86,_0x24b789:0x295},_0x4ccbc5=findProviderKey(_0x1ed0a8);if(!_0x4ccbc5)return void 0x0;const _0x522843=data[_0x3b7903(-_0x4d683d._0x398085,-_0x4d683d._0x53a758,-_0x4d683d._0x5e2c6e,-_0x4d683d._0x3c93b1)][_0x4ccbc5];function _0x3b7903(_0x4fddb7,_0x576d90,_0x5dd1ff,_0x1c4417){return _0x4de126(_0x576d90,_0x576d90-0x20,_0x5dd1ff-_0x320779._0x1ede45,_0x4fddb7- -_0x320779._0x24b789);}const _0x4f6686=_0x522843['models'][_0x16c7c0];function _0x3104af(_0x437718,_0x4824db,_0xcfc3f0,_0x3a6735){return _0x4de126(_0x3a6735,_0x4824db-0xd8,_0xcfc3f0-0x10b,_0xcfc3f0-0x374);}return{'label':_0x522843[_0x3b7903(_0x4d683d._0x2b456b,_0x4d683d._0x5e2c6e,_0x4d683d._0x4cf279,_0x4d683d._0x2cff14)],'baseUrl':_0x522843['baseUrl'],'modelsBaseUrl':_0x522843[_0x3104af(_0x4d683d._0x33be0c,_0x4d683d._0x437786,0x599,0x542)],'anthropicBaseUrl':_0x522843[_0x3104af(_0x4d683d._0x2f9965,0x571,0x5e4,_0x4d683d._0x11ee46)],'surface':_0x4f6686?.[_0x3b7903(-0x168,-_0x4d683d._0x887a43,-0x213,-_0x4d683d._0x2962ab)]??_0x522843[_0x3b7903(-_0x4d683d._0x1aaa4d,-0x88,-_0x4d683d._0x4a797c,-_0x4d683d._0x2b945a)],'authScheme':_0x522843[_0x3104af(0x674,0x594,0x618,_0x4d683d._0x21b01e)],'defaultModel':_0x522843[_0x3b7903(-_0x4d683d._0x56a010,-0xa0,-_0x4d683d._0x27728d,-0x6f)],'defaultModels':_0x522843[_0x3b7903(-_0x4d683d._0x381553,-_0x4d683d._0x5aa597,-0x15a,-0x15d)],'supportsModelFetch':_0x522843[_0x3b7903(-_0x4d683d._0xb24cd,-0x110,-_0x4d683d._0x4d56ac,-_0x4d683d._0x17d07a)],'contextWindow':_0x4f6686?.[_0x3b7903(-0xa9,-0x12d,_0x4d683d._0xe88216,-_0x4d683d._0x3faa01)],'maxOutput':_0x4f6686?.[_0x3104af(0x522,0x50a,0x4fc,_0x4d683d._0x4df3e3)]};}function getDefaultMaxTokens(){const _0x5e6375={_0x5935c6:0x6bf,_0x4efcc7:0xd5,_0xaac940:0x106};function _0x49743b(_0x48ee4d,_0x474560,_0x15e115,_0xb41875){return _0x18ceca(_0x15e115,_0x48ee4d- -_0x5e6375._0x5935c6,_0x15e115-_0x5e6375._0x4efcc7,_0xb41875-_0x5e6375._0xaac940);}return data[_0x49743b(-0x223,-0x161,-0x23c,-0x1a7)];}function getDefaultModel(){const _0xcf2096={_0x55633d:0x6c},_0x159675={_0x595117:0x465,_0x3e3067:0xd1};function _0xd0dd61(_0x2587ca,_0x1bfb59,_0x1b6fba,_0x50166c){return _0x18ceca(_0x1bfb59,_0x1b6fba- -_0x159675._0x595117,_0x1b6fba-0x19d,_0x50166c-_0x159675._0x3e3067);}return data[_0xd0dd61(_0xcf2096._0x55633d,0xda,0x143,0x111)];}function getCliDefaultModel(){const _0x4ec040={_0x30d03d:0x1a0};function _0x16ba13(_0x1816b4,_0x36c895,_0x390b5e,_0x493a43){return _0x4de126(_0x1816b4,_0x36c895-0xef,_0x390b5e-_0x4ec040._0x30d03d,_0x390b5e-0x2);}return data[_0x16ba13(0x1c9,0x1ae,0x288,0x366)];}function getProviderLabel(_0x5a4d75){const _0x5a0ab6={_0x461559:0x126,_0x564d3a:0x18,_0x3da945:0x4,_0xc47434:0x7b},_0x4e6457={_0xed542e:0x20d},_0x4fa6f8={_0x87a49a:0x1f0,_0x328102:0x2ad};function _0x59d931(_0x56b4aa,_0x1627c8,_0x4d7147,_0x2811de){return _0x4de126(_0x1627c8,_0x1627c8-_0x4fa6f8._0x87a49a,_0x4d7147-0x1b2,_0x4d7147- -_0x4fa6f8._0x328102);}function _0x1dee92(_0x3609fa,_0x82c1df,_0x1b6ec6,_0x5b0816){return _0x18ceca(_0x82c1df,_0x1b6ec6- -_0x4e6457._0xed542e,_0x1b6ec6-0x164,_0x5b0816-0x70);}const _0x20eeee=findProviderKey(_0x5a4d75);return _0x20eeee?data[_0x59d931(-0x141,-0x132,-_0x5a0ab6._0x461559,-0x36)][_0x20eeee][_0x59d931(0x4,-_0x5a0ab6._0x564d3a,-_0x5a0ab6._0x3da945,_0x5a0ab6._0xc47434)]:void 0x0;}function getProviderDefaultModel(_0x4f6ccb){const _0x490661={_0x375a1a:0xd5,_0x5e1812:0x8b},_0x434294={_0x4d5ade:0xcf},_0x30b435=findProviderKey(_0x4f6ccb);if(!_0x30b435)return void 0x0;function _0x5d6309(_0x574b0d,_0x227457,_0x17faa8,_0x2a618d){return _0x4de126(_0x17faa8,_0x227457-0xd2,_0x17faa8-0x186,_0x2a618d- -_0x434294._0x4d5ade);}return data['providers'][_0x30b435][_0x5d6309(_0x490661._0x375a1a,0x1e4,_0x490661._0x5e1812,0x178)];}function getProviderDefaultModels(_0x3b81f8){const _0x4ec9bd={_0x30c3cb:0x424,_0x3ae476:0x3e4,_0xf3176:0x390,_0x47cb80:0x399},_0x39dc63={_0x3ca17e:0x15a},_0x201d07={_0x2f4eb7:0x1bd,_0x280b3b:0x3};function _0x456cd8(_0x25a231,_0x5755a6,_0x346ad5,_0x2419b7){return _0x18ceca(_0x5755a6,_0x2419b7- -0xcc,_0x346ad5-_0x201d07._0x2f4eb7,_0x2419b7-_0x201d07._0x280b3b);}const _0x4e0c2e=findProviderKey(_0x3b81f8);if(!_0x4e0c2e)return[];function _0x291440(_0x33b27c,_0x46a571,_0x1420f2,_0x406faf){return _0x4de126(_0x46a571,_0x46a571-0x18d,_0x1420f2-_0x39dc63._0x3ca17e,_0x1420f2-0x120);}return[...data[_0x456cd8(_0x4ec9bd._0x30c3cb,0x3a1,_0x4ec9bd._0x3ae476,0x41c)][_0x4e0c2e][_0x456cd8(_0x4ec9bd._0xf3176,0x39d,0x413,_0x4ec9bd._0x47cb80)]??[]];}function providerSupportsModelFetch(_0x2fb4c6){const _0x29f3d8={_0x3f9c90:0x5c9},_0x3a8088={_0x42bcb4:0x58c};function _0x1a4ad8(_0xb459f6,_0xa5b8f6,_0x35daca,_0x2bd2d1){return _0x4de126(_0xb459f6,_0xa5b8f6-0x37,_0x35daca-0x172,_0xa5b8f6-0x2d4);}const _0x27d5b6=findProviderKey(_0x2fb4c6);if(!_0x27d5b6)return![];function _0x477059(_0x24f351,_0x4a3009,_0xedf552,_0x24796f){return _0x18ceca(_0xedf552,_0x24796f- -_0x3a8088._0x42bcb4,_0xedf552-0x197,_0x24796f-0x9d);}return data[_0x1a4ad8(0x412,0x45b,0x43c,0x479)][_0x27d5b6][_0x1a4ad8(_0x29f3d8._0x3f9c90,0x512,0x5cf,0x54c)]??![];}function getOnboardingProviderKeys(){const _0x8c9bd9={_0x156bc6:0x6d5,_0xaa574d:0x64d,_0x41f39d:0x6cd,_0x2e7f5d:0x493,_0x829714:0x456},_0x9b2072={_0x411cff:0x61};function _0x59122c(_0x437162,_0x3a57b2,_0x37bfec,_0x37f46e){return _0x4de126(_0x437162,_0x3a57b2-0x1e4,_0x37bfec-0x1d7,_0x37f46e-0x2cf);}function _0x3263e0(_0x3c38c7,_0x3c73fb,_0x18d708,_0x543998){return _0x4de126(_0x3c73fb,_0x3c73fb-0x1a,_0x18d708-_0x9b2072._0x411cff,_0x3c38c7-0x3f7);}return Object[_0x3263e0(0x66b,_0x8c9bd9._0x156bc6,_0x8c9bd9._0xaa574d,_0x8c9bd9._0x41f39d)](data[_0x59122c(0x373,0x400,_0x8c9bd9._0x2e7f5d,_0x8c9bd9._0x829714)]);}function toErrorMessage(_0x1713d4){const _0x4972d6={_0x4aa063:0x20a,_0x1bb711:0x347,_0x3d177a:0x28c,_0x55c285:0x477},_0x3dfe91={_0x5c762b:0x73,_0x537049:0x89},_0x54662a={_0x1c47ce:0x16c,_0x537596:0xc4};if(_0x1713d4 instanceof Error&&_0x1713d4[_0x16071f(0x26a,0x2e7,_0x4972d6._0x4aa063,_0x4972d6._0x1bb711)][_0x16071f(0x330,_0x4972d6._0x3d177a,0x322,0x3eb)]>0x0)return _0x1713d4['message'];function _0x1b3672(_0x114bae,_0x7a3f75,_0x32570e,_0x54b9c6){return _0x4de126(_0x54b9c6,_0x7a3f75-_0x54662a._0x1c47ce,_0x32570e-_0x54662a._0x537596,_0x32570e-0x1d5);}function _0x16071f(_0x3334de,_0x63533c,_0x2829d4,_0x83d50e){return _0x4de126(_0x83d50e,_0x63533c-0x8e,_0x2829d4-_0x3dfe91._0x5c762b,_0x3334de-_0x3dfe91._0x537049);}return _0x1b3672(_0x4972d6._0x55c285,0x3be,0x493,0x568);}function createDefaultWebSocketFactory(){const _0x2ceeb9={_0x13e4d9:0xa2,_0x58a0ef:0x93,_0x44124b:0xef,_0x51d16b:0x14f};return({headers:_0xc12526,url:_0x248dc9})=>{const _0x4887d0=globalThis[_0x250103(_0x2ceeb9._0x13e4d9,_0x2ceeb9._0x58a0ef,_0x2ceeb9._0x44124b,_0x2ceeb9._0x51d16b)];function _0x250103(_0x576f81,_0x27c30c,_0x2f5deb,_0x5ab8c8){return _0x245a(_0x2f5deb- -0x1b9,_0x27c30c);}return new _0x4887d0(_0x248dc9,{'headers':_0xc12526,'protocols':[]});};}function _0x18ceca(_0x10d3ef,_0x2006fa,_0x43c299,_0x3df8f6){return _0x245a(_0x2006fa-0x342,_0x10d3ef);}async function*iterateSseEvents(_0x1d1435,_0x6db13a){const _0x1f2eca={_0x341e3f:0xdd,_0x524947:0x1c,_0x206863:0xfe,_0x44ba38:0xe7,_0x2bb107:0x2c,_0x5beab8:0x1cb,_0x19c8e9:0xb5,_0x25710b:0x57,_0x3c2610:0x48,_0x5e5fa2:0x5b,_0x13e0d9:0x49,_0x16b31a:0x119,_0x238d67:0x90},_0x4d67c6={_0x4de51e:0xae,_0x369fbd:0x79,_0x2349a3:0xb,_0x3ed0cb:0xdd,_0x3e03e6:0x89},_0xe5d160={_0x289ff1:0xf7,_0x369867:0x143},_0x3c31ab=_0x1d1435[_0x147e20(-0x11,_0x1f2eca._0x341e3f,-_0x1f2eca._0x524947,0x54)]?.[_0x328735(0x16,_0x1f2eca._0x206863,_0x1f2eca._0x44ba38,0x15f)]();if(!_0x3c31ab)return;const _0x1d53bc=new TextDecoder(_0x147e20(-0xda,-0x14d,-_0x1f2eca._0x2bb107,-0xed));function _0x328735(_0x1c46de,_0x281a76,_0xff2c4e,_0x58d86d){return _0x18ceca(_0x1c46de,_0x281a76- -0x3c1,_0xff2c4e-_0xe5d160._0x289ff1,_0x58d86d-_0xe5d160._0x369867);}function _0x147e20(_0x542cdc,_0x475dba,_0xa53386,_0x50b359){return _0x18ceca(_0x50b359,_0x542cdc- -0x631,_0xa53386-0x147,_0x50b359-0x9);}let _0x4e441c='';const _0x1dd2e7=addAbortListener(_0x6db13a,()=>{const _0x39222d={_0x3ce5a3:0x7a,_0x117cd3:0xd5},_0x1a6258={_0x44b603:0xeb};function _0x5e70f3(_0x592676,_0x2cc784,_0x28f439,_0x230040){return _0x328735(_0x28f439,_0x2cc784- -0x14d,_0x28f439-0x44,_0x230040-_0x1a6258._0x44b603);}function _0x3da3da(_0x25df86,_0x374e49,_0x48291d,_0x59849d){return _0x328735(_0x374e49,_0x59849d- -0x1f5,_0x48291d-_0x39222d._0x3ce5a3,_0x59849d-_0x39222d._0x117cd3);}void _0x3c31ab[_0x3da3da(-0x1c1,-_0x4d67c6._0x4de51e,-0x160,-0x166)](toAbortError(_0x6db13a?.['reason']))[_0x5e70f3(-_0x4d67c6._0x369fbd,_0x4d67c6._0x2349a3,-_0x4d67c6._0x3ed0cb,-_0x4d67c6._0x3e03e6)](()=>{});});try{while(!![]){throwIfAborted(_0x6db13a);const {value:_0x3151e7,done:_0xe46291}=await _0x3c31ab[_0x328735(0xfb,0x11f,0x1f2,0x105)]();throwIfAborted(_0x6db13a);if(_0xe46291)break;_0x4e441c+=_0x1d53bc['decode'](_0x3151e7,{'stream':!![]});while(!![]){const _0x4c06bc=_0x4e441c[_0x147e20(-0x1ac,-0xfc,-0x27c,-_0x1f2eca._0x5beab8)]('\x0a\x0a');if(_0x4c06bc===-0x1)break;const _0x32abc7=_0x4e441c[_0x147e20(-_0x1f2eca._0x19c8e9,-0x4d,-0xff,-0x172)](0x0,_0x4c06bc);_0x4e441c=_0x4e441c['slice'](_0x4c06bc+0x2),_0x32abc7['trim']()[_0x147e20(-0x29,0x70,-_0x1f2eca._0x25710b,-_0x1f2eca._0x3c2610)]>0x0&&(yield _0x32abc7);}}_0x4e441c+=_0x1d53bc[_0x147e20(-0x16a,-0x158,-0x24f,-0x17e)](),throwIfAborted(_0x6db13a),_0x4e441c[_0x147e20(-_0x1f2eca._0x5e5fa2,-_0x1f2eca._0x13e0d9,-_0x1f2eca._0x16b31a,-_0x1f2eca._0x238d67)]()['length']>0x0&&(yield _0x4e441c);}finally{_0x1dd2e7();}}async function waitForWebSocketOpen(_0x16d8be,_0x2dd704){const _0x211242={_0x35c09f:0x2c2},_0x398c01={_0x5f1aad:0x1a3,_0x371449:0x1e5,_0x3ac42c:0x167,_0x846bc8:0xac,_0x4c1e5d:0x100,_0x4cbf7e:0x86,_0x4cef74:0xb1,_0x84b180:0x11c,_0x289a6b:0xc0,_0x538e5f:0x78,_0xf038a:0x106,_0x4adaf2:0x146,_0x23bd7b:0x7},_0xfe2119={_0xe3c87:0x331,_0x332c8b:0x1ea};function _0x4543db(_0x159f56,_0x455ac2,_0x368ffb,_0x441885){return _0x18ceca(_0x455ac2,_0x368ffb- -_0xfe2119._0xe3c87,_0x368ffb-0x18d,_0x441885-_0xfe2119._0x332c8b);}if(_0x16d8be[_0x4543db(0x2f2,0x389,_0x211242._0x35c09f,0x37d)]===WebSocket['OPEN']){throwIfAborted(_0x2dd704);return;}throwIfAborted(_0x2dd704),await new Promise((_0xb7050f,_0x59a01c)=>{const _0x42cb59={_0x144d14:0x33c},_0x3fd926={_0x67b657:0x25,_0x500842:0x2e,_0x546a52:0xb1,_0x5c30ac:0x62,_0x522938:0x27,_0xa68117:0xd6,_0xf32eab:0x62},_0x4181ad={_0x1597ff:0x16b},_0x4ac973={_0xe337:0xea,_0x5f1202:0x259,_0x23e137:0x161,_0xab7789:0x105,_0xdaee25:0x4d6},_0x64422a={_0x3ee401:0x160},_0xea0c1c={_0x14b7e9:0x264,_0x594444:0x352,_0xb3755f:0x2ba},_0x274e1d={_0x53176d:0x34};function _0x55c9b1(_0x283413,_0x2b1f93,_0x28d13f,_0x488b66){return _0x4543db(_0x283413-_0x274e1d._0x53176d,_0x283413,_0x28d13f- -0x37e,_0x488b66-0x71);}const _0x1ab385=()=>{_0x386095(),_0xb7050f();},_0x4d8628=_0x501ef5=>{function _0x20b5d3(_0x35a644,_0x16fd60,_0x47f838,_0x2ed98d){return _0x245a(_0x35a644-0x64,_0x16fd60);}_0x386095(),_0x59a01c(new Error(_0x501ef5[_0x20b5d3(_0xea0c1c._0x14b7e9,0x210,_0xea0c1c._0x594444,_0xea0c1c._0xb3755f)]||'WebSocket\x20request\x20failed'));},_0x1fdafd=_0x8d7e91=>{function _0x52bd98(_0x47bd4f,_0x1983d2,_0x1c337a,_0x47cfa0){return _0x245a(_0x1c337a- -_0x64422a._0x3ee401,_0x47bd4f);}_0x386095();const _0x3c72e5=_0x8d7e91;_0x59a01c(new Error(_0x3c72e5['reason']||_0x52bd98(0xc1,0x1df,0x118,0x58)));},_0x2b127c=()=>{function _0x40088f(_0x2fbf52,_0x230493,_0x37d79a,_0x41d3f7){return _0x245a(_0x2fbf52- -0xf0,_0x230493);}_0x386095();function _0x188f71(_0x4cc9b9,_0x1bd847,_0x1bd70a,_0x2ed495){return _0x245a(_0x1bd70a-0x383,_0x2ed495);}_0x16d8be[_0x40088f(0x1c1,0x1a2,_0x4ac973._0xe337,_0x4ac973._0x5f1202)]===WebSocket['OPEN']&&_0x16d8be[_0x40088f(_0x4ac973._0x23e137,0x20d,_0x4ac973._0xab7789,0xe9)](0x3e8,'aborted'),_0x59a01c(toAbortError(_0x2dd704?.[_0x188f71(0x59f,0x69c,0x5b2,_0x4ac973._0xdaee25)]));},_0x386095=()=>{const _0xbb70bd={_0x486e1d:0x2f7};function _0x8bb518(_0x1446da,_0x46de1d,_0x2baa3d,_0x4d2827){return _0x245a(_0x46de1d- -_0x4181ad._0x1597ff,_0x1446da);}_0x16d8be[_0x39236c(0x3f9,0x3b5,0x434,0x4a8)](_0x8bb518(0x4c,-_0x3fd926._0x67b657,-0xe0,0x7d),_0x1ab385),_0x16d8be[_0x8bb518(0x9b,-_0x3fd926._0x500842,-_0x3fd926._0x546a52,-_0x3fd926._0x5c30ac)](_0x8bb518(_0x3fd926._0x522938,-0x35,-_0x3fd926._0xa68117,0xae),_0x4d8628),_0x16d8be[_0x8bb518(0x44,-0x2e,-_0x3fd926._0xf32eab,-0x25)]('close',_0x1fdafd);function _0x39236c(_0xf33482,_0x863662,_0x14e1fa,_0x5b5847){return _0x245a(_0x14e1fa-_0xbb70bd._0x486e1d,_0x863662);}_0x2dd704?.['removeEventListener']('abort',_0x2b127c);};function _0x36c8bb(_0x5281d1,_0x2b032e,_0x54fc64,_0x140014){return _0x4543db(_0x5281d1-0x10e,_0x5281d1,_0x54fc64- -_0x42cb59._0x144d14,_0x140014-0x17f);}_0x16d8be['addEventListener'](_0x36c8bb(-0x244,-_0x398c01._0x5f1aad,-_0x398c01._0x371449,-_0x398c01._0x3ac42c),_0x1ab385),_0x16d8be[_0x36c8bb(-_0x398c01._0x846bc8,0x23,-0xc4,-_0x398c01._0x4c1e5d)]('error',_0x4d8628),_0x16d8be['addEventListener'](_0x55c9b1(-_0x398c01._0x4cbf7e,-_0x398c01._0x4cef74,-_0x398c01._0x84b180,-_0x398c01._0x289a6b),_0x1fdafd),_0x2dd704?.[_0x55c9b1(-0x88,-_0x398c01._0x538e5f,-_0x398c01._0xf038a,-_0x398c01._0x4adaf2)](_0x36c8bb(0x28,-_0x398c01._0x23bd7b,-0xb6,-0xe3),_0x2b127c,{'once':!![]});});}function iterateWebSocketMessages(_0x43689a,_0xfe452f){const _0xf163e2={_0x511709:0x2b6,_0x50e007:0x272,_0x10439e:0x378,_0x369dac:0x344,_0x538b75:0x336,_0x29f821:0x2a3,_0x2080a:0x10c,_0x1c6bd4:0x87,_0x2533b9:0x19,_0x99d7d0:0x75},_0x1aeb44={_0x53de94:0x3f4,_0x1b255c:0x497,_0x1cc93c:0x4d1,_0x20694a:0x32e,_0x4b03ff:0x2b6,_0x1b1c0b:0x3ae,_0x5b18bf:0xaa,_0x40b892:0x228,_0x9e4f65:0x264,_0x4e61d4:0x15},_0x450c51={_0x182806:0xf5,_0x2803fd:0x5b,_0x4f8690:0x197},_0x5739d3={_0x35501c:0x56c,_0x290a2a:0x197},_0x59d3ff={_0x4d9e83:0x243,_0x4108ba:0x225,_0x20e1b:0x184,_0xaca684:0x200,_0x5dd5ef:0x162},_0x975902={_0x5af637:0x1ae},_0x4774a8={_0x572135:0x312,_0x295d9c:0x31e,_0x397e0d:0x43,_0x255fe6:0x7,_0x194e02:0xb2,_0x3b92d7:0x67,_0x34f3c4:0x59},_0x1526bf={_0x365f2c:0x222},_0xdfef71={_0x23120f:0x156,_0x5f542a:0x607,_0x43e166:0x5c8},_0x83fdaa={_0x20c288:0x32a},_0x3729da={_0x49adef:0x22f,_0x519605:0x256,_0x729381:0x22c,_0x4ebdc2:0x258,_0xd36ec1:0x23d,_0x2c0b08:0x264},_0x3abc13={_0x46c8f6:0x361},_0x5da10f=[];let _0x1528b1=![],_0x413d9e,_0x56145e;const _0x157198=_0x3cc79f=>{function _0x367ddd(_0x411703,_0x27ae2d,_0x375d4f,_0x281feb){return _0x245a(_0x411703- -_0x3abc13._0x46c8f6,_0x375d4f);}const _0x2f2ffe=_0x3cc79f;function _0x483c17(_0x2fa77d,_0x197f15,_0xe0da99,_0x14897a){return _0x245a(_0xe0da99- -0x1ef,_0x197f15);}try{_0x5da10f['push'](JSON['parse'](String(_0x2f2ffe[_0x367ddd(-_0x3729da._0x49adef,-_0x3729da._0x519605,-0x251,-_0x3729da._0x729381)]))),_0x56145e?.(),_0x56145e=void 0x0;}catch(_0x4e8ca8){_0x413d9e=new Error(_0x367ddd(-_0x3729da._0x4ebdc2,-_0x3729da._0xd36ec1,-_0x3729da._0x2c0b08,-0x31c)+toErrorMessage(_0x4e8ca8)),_0x56145e?.(),_0x56145e=void 0x0;}},_0x104f01=_0x1e1803=>{const _0x385d2e={_0x563fb3:0x14e},_0x25debc=_0x1e1803;function _0x6d38ba(_0x19efe4,_0x3e399c,_0x146f06,_0x3d947b){return _0x245a(_0x146f06- -_0x385d2e._0x563fb3,_0x19efe4);}_0x413d9e=new Error(_0x25debc[_0x6d38ba(0x9d,0xd,0xb2,_0xdfef71._0x23120f)]||_0x43271c(_0xdfef71._0x5f542a,_0xdfef71._0x43e166,0x64f,0x6c4));function _0x43271c(_0x250b6f,_0x54d856,_0x1aa3c2,_0x2ecb76){return _0x245a(_0x250b6f-_0x83fdaa._0x20c288,_0x54d856);}_0x56145e?.(),_0x56145e=void 0x0;},_0x1badb3=_0x540158=>{const _0x4063f5={_0x3abe9b:0x219},_0x900a48=_0x540158;!_0x1528b1&&_0x900a48[_0x2a70c2(_0x4774a8._0x572135,0x4aa,_0x4774a8._0x295d9c,0x3e2)]!==0x3e8&&!_0x413d9e&&(_0x413d9e=new Error(_0x900a48[_0x2d665f(0xd,-_0x4774a8._0x397e0d,-0x28,-0x3e)]||_0x2d665f(-_0x4774a8._0x255fe6,_0x4774a8._0x194e02,-0xdb,_0x4774a8._0x3b92d7)+_0x900a48[_0x2d665f(-_0x4774a8._0x34f3c4,-0x30,-0x8e,0x8e)]));function _0x2a70c2(_0x5131c7,_0x704510,_0x1c9d2c,_0x493b37){return _0x245a(_0x493b37-_0x4063f5._0x3abe9b,_0x5131c7);}function _0x2d665f(_0x5239d1,_0x35fdb7,_0x2a2362,_0xe09f62){return _0x245a(_0x5239d1- -_0x1526bf._0x365f2c,_0x2a2362);}_0x1528b1=!![],_0x56145e?.(),_0x56145e=void 0x0;};function _0xb49fd2(_0xad8db3,_0x274cf2,_0x47b084,_0x18a8e5){return _0x4de126(_0x18a8e5,_0x274cf2-0x143,_0x47b084-_0x975902._0x5af637,_0x274cf2-0xf2);}const _0x2b819c=addAbortListener(_0xfe452f,()=>{_0x413d9e=toAbortError(_0xfe452f?.[_0x940294(0x2e5,_0x59d3ff._0x4d9e83,0x3b9,_0x59d3ff._0x4108ba)]);function _0xfb20dc(_0x538571,_0x547147,_0x1a5d43,_0x781527){return _0x245a(_0x1a5d43- -0x3b3,_0x781527);}_0x43689a['readyState']===WebSocket['OPEN']&&_0x43689a[_0xfb20dc(-_0x59d3ff._0x20e1b,-_0x59d3ff._0xaca684,-_0x59d3ff._0x5dd5ef,-0x85)](0x3e8,'aborted');_0x56145e?.();function _0x940294(_0x142f6c,_0x55a049,_0x3ed030,_0x2aae58){return _0x245a(_0x142f6c-0xb6,_0x55a049);}_0x56145e=void 0x0;});_0x43689a[_0xb49fd2(_0xf163e2._0x511709,0x33a,_0xf163e2._0x50e007,_0xf163e2._0x511709)](_0xb49fd2(0x289,0x2d3,_0xf163e2._0x10439e,_0xf163e2._0x369dac),_0x157198),_0x43689a[_0xb49fd2(_0xf163e2._0x538b75,0x33a,0x3b7,_0xf163e2._0x29f821)](_0x38cd9a(-0x101,-0x98,-0xf4,-_0xf163e2._0x2080a),_0x104f01),_0x43689a[_0xb49fd2(0x2a3,0x33a,0x2cb,0x383)](_0x38cd9a(_0xf163e2._0x1c6bd4,-0x70,0x27,-0x5d),_0x1badb3);function _0x38cd9a(_0x14e360,_0x46e05c,_0x51c367,_0x42a7e2){return _0x18ceca(_0x46e05c,_0x51c367- -_0x5739d3._0x35501c,_0x51c367-_0x5739d3._0x290a2a,_0x42a7e2-0x1a8);}return{async*[Symbol[_0x38cd9a(0x157,_0xf163e2._0x2533b9,_0xf163e2._0x99d7d0,0x11b)]](){const _0x3b94db={_0x28efaa:0x115,_0x92480c:0x18,_0x3142a5:0x1b5};function _0x7786ce(_0x9c3df6,_0x1d62cb,_0x4d7829,_0x2a4723){return _0x38cd9a(_0x9c3df6-_0x3b94db._0x28efaa,_0x2a4723,_0x4d7829- -_0x3b94db._0x92480c,_0x2a4723-_0x3b94db._0x3142a5);}function _0x150506(_0x4aa3ea,_0x15f3cb,_0x125ba7,_0x7dba92){return _0xb49fd2(_0x4aa3ea-_0x450c51._0x182806,_0x15f3cb-_0x450c51._0x2803fd,_0x125ba7-_0x450c51._0x4f8690,_0x7dba92);}try{while(!![]){if(_0x413d9e)throw _0x413d9e;if(_0x5da10f[_0x150506(0x31b,_0x1aeb44._0x53de94,_0x1aeb44._0x1b255c,_0x1aeb44._0x1cc93c)]>0x0){yield _0x5da10f['shift']();continue;}if(_0x1528b1)break;await new Promise(_0x356b46=>{_0x56145e=_0x356b46;});}}finally{_0x43689a['removeEventListener'](_0x150506(0x2e5,_0x1aeb44._0x20694a,_0x1aeb44._0x4b03ff,_0x1aeb44._0x1b1c0b),_0x157198),_0x43689a[_0x7786ce(-0xef,-_0x1aeb44._0x5b18bf,-0x105,-0x75)](_0x150506(_0x1aeb44._0x40b892,_0x1aeb44._0x9e4f65,0x178,0x21b),_0x104f01),_0x43689a[_0x7786ce(-0xe8,-_0x1aeb44._0x4e61d4,-0x105,-0x194)]('close',_0x1badb3),_0x2b819c();}}};}function toWebSocketUrl(_0x388cb3,_0x3d66f5){const _0x462d49={_0x25a15d:0x3f,_0x34c1d8:0x71,_0x25a864:0xa3,_0x315a89:0x14,_0x266617:0xf8,_0x28abbb:0x70,_0x311a3a:0x11a,_0x2cb4d4:0x29},_0x1bf4f9={_0x200eec:0x5ac,_0x1c8b42:0x16d,_0x343bb3:0x181},_0x56c79d={_0x268a53:0x1af},_0x53699f=new URL(_0x3d66f5,_0x388cb3);function _0x996c3c(_0x127730,_0x3d7769,_0x8dafa1,_0xe857c5){return _0x18ceca(_0x8dafa1,_0xe857c5- -0x67f,_0x8dafa1-0x57,_0xe857c5-_0x56c79d._0x268a53);}_0x53699f[_0x428c17(_0x462d49._0x25a15d,0x4d,-_0x462d49._0x34c1d8,_0x462d49._0x25a864)]=_0x53699f[_0x996c3c(-0x113,_0x462d49._0x315a89,-0x8,-0x86)]===_0x428c17(-0x16b,-_0x462d49._0x266617,-_0x462d49._0x28abbb,-0x9e)?_0x428c17(-0x66,-0xe0,-_0x462d49._0x311a3a,-_0x462d49._0x2cb4d4):'ws:';function _0x428c17(_0x576a41,_0x297a4c,_0x3adeff,_0x25e151){return _0x18ceca(_0x25e151,_0x297a4c- -_0x1bf4f9._0x200eec,_0x3adeff-_0x1bf4f9._0x1c8b42,_0x25e151-_0x1bf4f9._0x343bb3);}return _0x53699f['toString']();}var ProviderSessionManager=class{[_0x4de126(0x1a0,0x277,0x191,0x190)];[_0x18ceca(0x3a1,0x466,0x49e,0x441)];constructor(_0x30ae63){const _0x2ecb12={_0x2103d3:0x32f,_0xd277cb:0x426,_0x1af0c0:0x39c},_0xb6d550={_0x3b9c7d:0x155};function _0x43da23(_0x3a544c,_0x472359,_0x311931,_0x1cf66c){return _0x18ceca(_0x1cf66c,_0x311931- -_0xb6d550._0x3b9c7d,_0x311931-0x1ca,_0x1cf66c-0x1ce);}this[_0x43da23(_0x2ecb12._0x2103d3,_0x2ecb12._0xd277cb,_0x2ecb12._0x1af0c0,0x43b)]=_0x30ae63;}async[_0x18ceca(0x5d3,0x52f,0x4fe,0x49d)](_0x1e6f65){const _0x275bde={_0x828775:0x299,_0x572da6:0x2b2,_0x4b7289:0x231,_0x36b2b4:0xc3,_0x36cb75:0x24,_0xb851c4:0x183,_0xd22564:0x1e9},_0x45875b={_0x1d20ec:0x283,_0x110528:0x2cf,_0x1c9e4f:0x1be,_0x42adb9:0x231,_0x52207f:0x219,_0x24085f:0x328},_0x331d5c={_0x5d784d:0xcb,_0x4442ad:0x1c0,_0x10f92d:0xc3},_0x315e51={_0x566030:0x529,_0x136907:0x16a,_0x43ab48:0x1a5},_0x2d5cc3={_0x36ea1d:0x165};function _0x5ab1bd(_0x42c127,_0x7265c,_0x1c0966,_0x4dd5f3){return _0x18ceca(_0x4dd5f3,_0x7265c- -0x27d,_0x1c0966-_0x2d5cc3._0x36ea1d,_0x4dd5f3-0x1d1);}function _0x39d66d(_0x15f21e,_0x28ec98,_0x46f2d8,_0x446c07){return _0x18ceca(_0x46f2d8,_0x28ec98- -_0x315e51._0x566030,_0x46f2d8-_0x315e51._0x136907,_0x446c07-_0x315e51._0x43ab48);}if(!this['cached']){const _0x30991a=this[_0x5ab1bd(0x351,0x274,_0x275bde._0x828775,0x267)][_0x5ab1bd(0x37f,_0x275bde._0x572da6,_0x275bde._0x4b7289,0x238)](_0x1e6f65);_0x30991a[_0x5ab1bd(0x30c,0x29c,0x1ad,0x27c)](()=>{function _0x4fb847(_0x4e58e7,_0x51b570,_0x496a89,_0x409554){return _0x39d66d(_0x4e58e7-_0x331d5c._0x5d784d,_0x4e58e7- -_0x331d5c._0x4442ad,_0x51b570,_0x409554-_0x331d5c._0x10f92d);}function _0x2857a9(_0x126ab1,_0x5e1244,_0x58a922,_0x45a7c2){return _0x5ab1bd(_0x126ab1-0x1f,_0x5e1244- -0x2eb,_0x58a922-0x163,_0x58a922);}this[_0x4fb847(-_0x45875b._0x1d20ec,-_0x45875b._0x110528,-_0x45875b._0x1c9e4f,-0x1a5)]===_0x30991a&&(this[_0x4fb847(-0x283,-_0x45875b._0x42adb9,-_0x45875b._0x52207f,-_0x45875b._0x24085f)]=void 0x0);}),this[_0x39d66d(-0xee,-_0x275bde._0x36b2b4,-0x186,-_0x275bde._0x36cb75)]=_0x30991a;}return structuredClone(await this[_0x5ab1bd(_0x275bde._0xb851c4,_0x275bde._0xd22564,0x250,0x14c)]);}[_0x18ceca(0x482,0x4d6,0x446,0x3ef)](){const _0xffc0fd={_0x15ebaa:0x1de,_0x1e608e:0x146,_0x16227b:0x200},_0x1b0c74={_0x42d4c8:0x5ac,_0x4c2bd8:0xbd};function _0xda5ff7(_0xacc8d4,_0x544e84,_0x570e47,_0x5e212f){return _0x18ceca(_0x5e212f,_0x570e47- -_0x1b0c74._0x42d4c8,_0x570e47-_0x1b0c74._0x4c2bd8,_0x5e212f-0x10);}this[_0xda5ff7(-_0xffc0fd._0x15ebaa,-0x13e,-_0xffc0fd._0x1e608e,-_0xffc0fd._0x16227b)]=void 0x0;}};async function prepareProviderRequest(_0x381f2c,_0x2bc930={}){const _0xfcfb97={_0x1b673d:0x469,_0x4d7352:0x560,_0x409ca6:0x42e,_0x2e61b1:0x44e,_0x6e3631:0x407,_0x34ff8d:0x387,_0x4dfedb:0xb2,_0x5105f1:0x142,_0x497cf0:0xac,_0x45603e:0x40c,_0x561c75:0x375,_0x1ecae8:0x4d1},_0x20e61c={_0x3a20c2:0x127,_0x4efffc:0x1ee,_0x54cc3a:0x280},_0x572d10={_0x1f4937:0x5ed};function _0x32dfec(_0x1e4df7,_0x50c44f,_0x3bc77b,_0x40adf2){return _0x18ceca(_0x50c44f,_0x1e4df7- -_0x572d10._0x1f4937,_0x3bc77b-0xb,_0x40adf2-0x14d);}function _0x2dbc59(_0x1dda12,_0x3fd39e,_0x5f5812,_0xdb6c0a){return _0x4de126(_0x5f5812,_0x3fd39e-_0x20e61c._0x3a20c2,_0x5f5812-_0x20e61c._0x4efffc,_0x3fd39e-_0x20e61c._0x54cc3a);}let _0x5542f0={'request':structuredClone(_0x381f2c),'session':_0x2bc930['sessionManager']?await _0x2bc930[_0x2dbc59(_0xfcfb97._0x1b673d,0x4df,_0xfcfb97._0x4d7352,_0xfcfb97._0x409ca6)][_0x2dbc59(0x4b0,_0xfcfb97._0x2e61b1,_0xfcfb97._0x6e3631,_0xfcfb97._0x34ff8d)](_0x2bc930[_0x32dfec(-0x134,-_0xfcfb97._0x4dfedb,-_0xfcfb97._0x5105f1,-_0xfcfb97._0x497cf0)]):void 0x0};for(const _0xc1f71b of _0x2bc930[_0x2dbc59(0x425,_0xfcfb97._0x45603e,_0xfcfb97._0x561c75,_0xfcfb97._0x1ecae8)]??[]){_0x5542f0=await _0xc1f71b(_0x5542f0);}return _0x5542f0;}var MAX_PROVIDER_REQUEST_ATTEMPTS=0xa,RETRYABLE_HTTP_STATUSES=new Set([0x198,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8]),DEFAULT_RETRY_DELAY_MS=0x1f4,RETRY_DELAY_STEP_CAP_MS=0x3a98,RoutedModel=class{[_0x4de126(0x82,0x19c,0x1ac,0x16c)];['maxTokens'];[_0x4de126(0x119,0x1ff,0x102,0x142)];['apiKey'];[_0x4de126(0x321,0x228,0x160,0x24f)];['fetchImpl'];[_0x18ceca(0x6c3,0x61c,0x679,0x613)];['requestMutators'];[_0x4de126(0x159,0x1da,0x230,0x246)];[_0x18ceca(0x5ff,0x5c0,0x580,0x4e1)];[_0x4de126(0x9b,0x1dd,0xd2,0x184)];[_0x4de126(0x324,0x2e7,0x166,0x23c)]=new Map();constructor(_0x595ed5){const _0x252470={_0x56f867:0x137,_0x3a1359:0x1c1,_0x2ba6ad:0x26e,_0x2392f5:0x197,_0x40c453:0x264,_0x21e372:0x187,_0xed7ec7:0x187,_0x332cd5:0xa4,_0xe6b4fd:0x517,_0x22971e:0x394,_0x3766fe:0x1fe,_0x41b00a:0x10d,_0x377cb6:0x1f9,_0x4fcec8:0xe0,_0x53072f:0x19c,_0x48ee6b:0x17c,_0x2ba046:0x269,_0x227025:0x2ae,_0x39175b:0x564,_0x248e45:0x515,_0x43729a:0x4ce,_0x2efe64:0x5f5,_0xf5fa2:0x5c9,_0x864744:0x28b,_0x225993:0x28c,_0x4cc2aa:0x4bc,_0x1a7e2f:0x580,_0x6aab84:0x330,_0x16b9fd:0x3a4,_0xadd215:0x381,_0x3e5898:0x214,_0x482e4a:0x26c,_0xfb715d:0x2d9,_0x15aab7:0x1c9,_0x587062:0x122,_0x26bc7d:0x4d3,_0x5df045:0x4be,_0x5cf295:0x560,_0x594319:0x486,_0x481c4b:0x5ab,_0x476eff:0x576,_0x3d4d16:0x2a3,_0x44eb11:0x281,_0xb3391d:0x1c4},_0x497b6a={_0x781e66:0x23};this[_0xf88659(_0x252470._0x56f867,0x253,0x1b1,_0x252470._0x3a1359)]=_0x595ed5[_0xf88659(_0x252470._0x2ba6ad,0x195,0x1b1,_0x252470._0x2392f5)],this[_0xf88659(0x210,0x240,0x2e0,0x2fa)]=_0x595ed5[_0x26004d(0x5cb,0x622,0x5d5,0x61b)]??getDefaultMaxTokens(),this[_0xf88659(_0x252470._0x40c453,_0x252470._0x21e372,_0x252470._0xed7ec7,_0x252470._0x332cd5)]=_0x595ed5[_0x26004d(_0x252470._0xe6b4fd,_0x252470._0x22971e,0x47c,0x463)]?structuredClone(_0x595ed5[_0xf88659(_0x252470._0x3766fe,_0x252470._0x41b00a,0x187,_0x252470._0x377cb6)]):void 0x0,this[_0xf88659(0x166,_0x252470._0x4fcec8,_0x252470._0x53072f,0xbd)]=_0x595ed5['apiKey'],this['baseUrl']=_0x595ed5['baseUrl'];function _0x26004d(_0x2f23d1,_0x4f1013,_0x4614db,_0x37b6eb){return _0x4de126(_0x37b6eb,_0x4f1013-0xb1,_0x4614db-_0x497b6a._0x781e66,_0x4614db-0x33a);}this[_0xf88659(_0x252470._0x48ee6b,_0x252470._0x2ba046,0x22e,_0x252470._0x227025)]=_0x595ed5[_0xf88659(0x276,0x158,0x220,0x1b6)]??globalThis[_0x26004d(_0x252470._0x39175b,0x475,_0x252470._0x248e45,_0x252470._0x43729a)],this['providerAdapter']=_0x595ed5[_0x26004d(_0x252470._0x2efe64,0x51e,0x5f5,_0x252470._0xf5fa2)],this['requestMutators']=_0x595ed5['requestMutators']??[],this[_0xf88659(0x1d7,0x357,_0x252470._0x864744,_0x252470._0x225993)]=_0x595ed5[_0x26004d(0x5ef,_0x252470._0x4cc2aa,_0x252470._0x1a7e2f,0x4a0)],this['sessionManager']=_0x595ed5[_0xf88659(_0x252470._0x6aab84,0x22c,0x2a4,0x388)]??(_0x595ed5[_0xf88659(_0x252470._0x16b9fd,0x284,0x2e4,_0x252470._0xadd215)]?new ProviderSessionManager(_0x595ed5[_0xf88659(_0x252470._0x3e5898,_0x252470._0x482e4a,0x2e4,_0x252470._0xfb715d)]):void 0x0),this[_0xf88659(0x29c,0x134,_0x252470._0x15aab7,_0x252470._0x587062)]=_0x595ed5[_0x26004d(0x445,_0x252470._0x26bc7d,_0x252470._0x5df045,_0x252470._0x5cf295)]??createDefaultWebSocketFactory();function _0xf88659(_0xaaa70,_0x1264cd,_0x251349,_0x3f49d0){return _0x4de126(_0xaaa70,_0x1264cd-0xd5,_0x251349-0xc4,_0x251349-0x45);}for(const _0x19bb6b of _0x595ed5[_0x26004d(_0x252470._0x594319,_0x252470._0x481c4b,_0x252470._0x476eff,0x54f)]){this[_0xf88659(0x1b1,_0x252470._0x3d4d16,_0x252470._0x44eb11,_0x252470._0xb3391d)]['set'](_0x19bb6b['id'],_0x19bb6b);}}['complete'](_0x2bcc47,_0x305d26){const _0x3e6843={_0x1b2274:0x32c},_0x163454={_0x386faf:0x2aa};function _0x9e8c7b(_0x550ca1,_0x23d0bb,_0x168080,_0x40d579){return _0x18ceca(_0x168080,_0x40d579- -_0x163454._0x386faf,_0x168080-0x13d,_0x40d579-0xe6);}return this[_0x9e8c7b(0x39e,0x236,_0x3e6843._0x1b2274,0x2e2)](_0x2bcc47,_0x305d26);}[_0x4de126(0x313,0x1e3,0x25e,0x2a5)](_0x48c11c,_0xa3c88e){const _0xcbee0f={_0x521c0b:0x8d,_0x5155ee:0x5d},_0x3b6177={_0x503f5a:0x659,_0x1db8d9:0x185};function _0x50e651(_0x23a2cd,_0x359a41,_0x23335f,_0x36f8d1){return _0x18ceca(_0x36f8d1,_0x359a41- -_0x3b6177._0x503f5a,_0x23335f-0xcd,_0x36f8d1-_0x3b6177._0x1db8d9);}return this[_0x50e651(-_0xcbee0f._0x521c0b,-0x6b,-_0xcbee0f._0x5155ee,-0xe9)](_0x48c11c,_0xa3c88e);}async[_0x18ceca(0x5aa,0x58c,0x4dd,0x532)](_0x51c560,_0x2837f6){const _0x8cc692={_0x38b297:0xbd,_0x24c274:0x56,_0x2f54ad:0x444,_0x636656:0x3e4,_0x428b62:0x3af,_0x413bdc:0x3f,_0x35c710:0x6a,_0x38bd54:0x352,_0x3d1700:0x21a},_0x1e5407={_0x43a50a:0x163,_0x2522cf:0x154},_0x596cf0={_0x24dfef:0x134,_0x5dd853:0x1c7};function _0x10cfea(_0x1e6f06,_0x39da58,_0x31eebf,_0x14b888){return _0x4de126(_0x39da58,_0x39da58-_0x596cf0._0x24dfef,_0x31eebf-0x67,_0x1e6f06- -_0x596cf0._0x5dd853);}const _0x242689=this[_0x10cfea(-0xc6,-0xa0,-_0x8cc692._0x38b297,-_0x8cc692._0x24c274)](_0x51c560),_0x158777=await this[_0x13f184(0x41d,_0x8cc692._0x2f54ad,_0x8cc692._0x636656,_0x8cc692._0x428b62)][_0x10cfea(_0x8cc692._0x413bdc,-0x9b,0xa8,_0x8cc692._0x35c710)](_0x242689,{'mode':_0x13f184(0x455,0x43f,_0x8cc692._0x38bd54,0x412)});function _0x13f184(_0x250fbb,_0x425cb1,_0x5e394f,_0x1cb016){return _0x18ceca(_0x5e394f,_0x425cb1- -_0x1e5407._0x43a50a,_0x5e394f-0x104,_0x1cb016-_0x1e5407._0x2522cf);}return this[_0x13f184(0x27d,0x309,0x34c,_0x8cc692._0x3d1700)](_0x242689,_0x158777,_0x2837f6);}async*[_0x18ceca(0x560,0x5ee,0x6d2,0x661)](_0x62f061,_0x599791){const _0x19c3cd={_0x40d8d8:0x1e8,_0x5dfb15:0x2bc,_0x52927b:0x240,_0x23c613:0x72,_0x5274e8:0x154,_0x175ccf:0xb3,_0x3dda57:0x35},_0x21374d={_0x5ab4b7:0x68d},_0x23d338={_0x17254d:0x12,_0x58b57c:0x35a},_0x53c85d=this[_0x33a0db(-_0x19c3cd._0x40d8d8,-0x1ac,-0x22b,-_0x19c3cd._0x5dfb15)](_0x62f061);function _0x498894(_0x538865,_0x199f01,_0xee00de,_0x10c5db){return _0x4de126(_0x199f01,_0x199f01-0x133,_0xee00de-_0x23d338._0x17254d,_0x10c5db- -_0x23d338._0x58b57c);}function _0x33a0db(_0x5c3d4b,_0x26393d,_0x596ee9,_0x1c6969){return _0x18ceca(_0x1c6969,_0x596ee9- -_0x21374d._0x5ab4b7,_0x596ee9-0x7c,_0x1c6969-0x115);}const _0x5b3bc8=await this[_0x498894(-0x17d,-0x1be,-0x16e,-0x114)][_0x498894(-_0x19c3cd._0x52927b,-0x1f6,-_0x19c3cd._0x23c613,-_0x19c3cd._0x5274e8)](_0x53c85d,{'mode':'stream'});yield*this[_0x498894(-_0x19c3cd._0x175ccf,_0x19c3cd._0x3dda57,-0x15a,-0xa8)](_0x53c85d,_0x5b3bc8,_0x599791);}async['completeViaSurface'](_0x26c974,_0x8db809,_0x232562){const _0x197feb={_0x561229:0x388,_0x5b89b2:0x2a9,_0x4cac7b:0x175,_0x3f3561:0x20d,_0x7ce9ed:0x29a,_0x3502ea:0x290,_0x3f0e8:0x141,_0x5a7488:0x1a6,_0x110d64:0x38d,_0x4ffc13:0x444,_0x22d845:0x2e5,_0x1cc284:0x46b,_0x382e42:0x372,_0x1e2508:0x44f,_0x618758:0x36d,_0x4f9251:0x2db,_0x49df89:0x44d,_0xb5a38f:0x532,_0x30f152:0x385,_0x234f67:0x3a2,_0x59f670:0x416,_0x4b5f38:0x3d6,_0x1314da:0x41c,_0x545989:0x392,_0x3db7f3:0x3eb,_0x15fc43:0x1c9,_0x14421a:0x322,_0xc94fb2:0x24a},_0x4c65d2={_0x3d8ce4:0x6},_0x2dae33={_0x21d710:0x24,_0x5685d3:0x47},_0xa548af=this[_0x24eb37(-_0x197feb._0x561229,-0x386,-0x21d,-_0x197feb._0x5b89b2)](_0x26c974),_0x15fb06=this[_0x24eb37(-_0x197feb._0x4cac7b,-0x225,-0x29d,-_0x197feb._0x3f3561)](_0x8db809);if(_0x15fb06[_0x24eb37(-_0x197feb._0x7ce9ed,-0x338,-_0x197feb._0x3502ea,-0x24f)]===_0x24eb37(-0x231,-0x169,-_0x197feb._0x3f0e8,-_0x197feb._0x5a7488)){const _0x4a604d=await this[_0x121b72(_0x197feb._0x110d64,0x3b6,_0x197feb._0x4ffc13,_0x197feb._0x22d845)](_0xa548af,_0x15fb06,![],_0x232562);if(!_0x4a604d['ok'])throw await this['toApiError'](_0x4a604d);if(!_0x15fb06[_0x121b72(0x385,_0x197feb._0x1cc284,_0x197feb._0x382e42,_0x197feb._0x1e2508)])throw new Error(_0x121b72(_0x197feb._0x618758,_0x197feb._0x4f9251,_0x197feb._0x49df89,0x454)+_0x8db809+_0x121b72(0x4a6,0x465,0x4a8,_0x197feb._0xb5a38f));return _0x15fb06[_0x121b72(_0x197feb._0x30f152,_0x197feb._0x234f67,0x3ed,_0x197feb._0x59f670)](await _0x4a604d['json'](),_0xa548af);}function _0x121b72(_0x510e13,_0x48ccd7,_0x21eb85,_0x44c506){return _0x4de126(_0x44c506,_0x48ccd7-_0x2dae33._0x21d710,_0x21eb85-_0x2dae33._0x5685d3,_0x510e13-0x20d);}let _0x500ffc;for await(const _0xafcaa8 of this['streamViaSurface'](_0xa548af,_0x8db809,_0x232562)){_0xafcaa8['type']==='done'&&(_0x500ffc=_0xafcaa8[_0x121b72(_0x197feb._0x4b5f38,_0x197feb._0x1314da,_0x197feb._0x545989,_0x197feb._0x3db7f3)]);}if(!_0x500ffc)throw new Error(_0x24eb37(-0x1f6,-_0x197feb._0x15fc43,-_0x197feb._0x14421a,-_0x197feb._0xc94fb2)+_0x8db809+'\x20did\x20not\x20produce\x20a\x20final\x20response');function _0x24eb37(_0x3b3252,_0x190e14,_0x430e25,_0x5cd11e){return _0x4de126(_0x430e25,_0x190e14-_0x4c65d2._0x3d8ce4,_0x430e25-0x1f,_0x5cd11e- -0x3aa);}return _0x500ffc;}async*[_0x4de126(0x34e,0x354,0x378,0x2b2)](_0x5a9569,_0x2c1d6d,_0x44bda9){const _0x13fffe={_0x3c8143:0xc0,_0x2444b7:0xfd,_0x336e1a:0x85,_0x514cf6:0xce,_0x170838:0xe0,_0x371d6f:0x24,_0x3d076f:0xb9,_0x344444:0x3cc,_0x2506d2:0x364,_0xc5a58d:0x39e,_0x576734:0x17,_0x2f3966:0x7f,_0x47a732:0x79,_0xcfeed7:0x80,_0x799a66:0x5e,_0x114691:0xcb,_0xd02703:0x33c,_0xc4d43a:0x39a},_0x15bf50={_0x16ff2a:0x83},_0x1975d3={_0x51753d:0xc4,_0x3158c1:0x242};function _0x2b7c54(_0x5a79e7,_0x50804a,_0x4966dc,_0x52edcd){return _0x4de126(_0x52edcd,_0x50804a-0xdb,_0x4966dc-_0x1975d3._0x51753d,_0x50804a-_0x1975d3._0x3158c1);}const _0x12685b=this['applyModelDefaults'](_0x5a9569),_0x1298ca=this[_0x4cf6d2(-0x43,-0x10d,-_0x13fffe._0x3c8143,-_0x13fffe._0x2444b7)](_0x2c1d6d);if(_0x1298ca[_0x4cf6d2(-_0x13fffe._0x336e1a,-0x32,-_0x13fffe._0x514cf6,-_0x13fffe._0x170838)]===_0x4cf6d2(_0x13fffe._0x371d6f,-0x54,-_0x13fffe._0x3d076f,0x1e)){const _0x19fecc=await this[_0x2b7c54(0x403,0x34d,0x318,0x37f)](_0x12685b,_0x2c1d6d,_0x44bda9);yield{'type':_0x2b7c54(0x49c,_0x13fffe._0x344444,_0x13fffe._0x2506d2,_0x13fffe._0xc5a58d),'response':_0x19fecc};return;}function _0x4cf6d2(_0x13448b,_0x59a0ed,_0x5e6ae7,_0x21621f){return _0x18ceca(_0x5e6ae7,_0x13448b- -0x541,_0x5e6ae7-0xa8,_0x21621f-_0x15bf50._0x16ff2a);}if(_0x1298ca['transport']===_0x4cf6d2(0x1a,-0xb4,-_0x13fffe._0x576734,0xed)){yield*this[_0x4cf6d2(-0x15,0xa2,-_0x13fffe._0x2f3966,-_0x13fffe._0x47a732)](_0x12685b,_0x1298ca,_0x44bda9);return;}yield*this[_0x4cf6d2(_0x13fffe._0xcfeed7,_0x13fffe._0x799a66,_0x13fffe._0x114691,0x116)](_0x12685b,_0x1298ca,_0x44bda9?.[_0x2b7c54(_0x13fffe._0xd02703,_0x13fffe._0xc4d43a,0x45c,0x2b6)]);}async[_0x4de126(0x1bd,0x317,0x25f,0x22c)](_0x11467c){const _0x17a149={_0x54a4ab:0x441},_0x5f3b5a={_0x3cbbc4:0xf4},_0x44eb37={_0x147a8a:0x8c,_0xa09cf4:0xe8,_0x56a3d1:0x40,_0x1954cd:0x3b,_0x592708:0xb6,_0x3e124b:0x759,_0x4945de:0x25,_0x4cae6f:0x61d,_0x2f39c9:0x5ff,_0x1e2122:0x74,_0xdb3723:0xcc,_0x1ae8fd:0xb0,_0x14f5d6:0x8e,_0x6b2edf:0xab,_0x149825:0x74c,_0x1307ef:0x5e3,_0x5d3019:0x87,_0x1e32f1:0x32,_0x3b827b:0x34,_0x1afcd9:0x9d,_0x44a230:0x102,_0x53c8c1:0x12,_0x36bd7b:0x2d,_0x290d95:0x4f,_0x2835f3:0x4eb,_0x1fc033:0x584,_0x528db9:0x6a,_0x348ffc:0x28,_0x433a9d:0x23,_0x1e3983:0x554,_0x452b6b:0x5ad,_0x35fba1:0x536,_0x322f6f:0x21,_0x3b790a:0x15f,_0xf85db3:0xb1,_0x306937:0x640,_0x1a5e7d:0x6c5,_0x358e7:0x711},_0x426319=async()=>{const _0x15381={_0x8dfa57:0x22d};function _0x1644ad(_0x1ffbdf,_0x24a50f,_0x54d7f8,_0x6d3988){return _0x245a(_0x1ffbdf-0x3ce,_0x54d7f8);}const _0x3ba561=this['sessionManager']?await this[_0x3c6a5a(_0x44eb37._0x147a8a,0x9c,0x115,0x51)][_0x3c6a5a(-_0x44eb37._0xa09cf4,-0x104,-0xa4,-_0x44eb37._0x56a3d1)](_0x11467c[_0x3c6a5a(-0x7f,-_0x44eb37._0x1954cd,0x1c,-_0x44eb37._0x592708)]):void 0x0,_0x2267e0=this[_0x1644ad(0x6a8,0x6b9,0x632,_0x44eb37._0x3e124b)]['resolveCredential'](this[_0x3c6a5a(-0xbe,-0x15e,_0x44eb37._0x4945de,-0xb7)],_0x3ba561);function _0x3c6a5a(_0xf44dc8,_0x1946f9,_0x424281,_0x5cb40a){return _0x245a(_0x5cb40a- -_0x15381._0x8dfa57,_0xf44dc8);}if(!_0x2267e0)throw this[_0x1644ad(0x547,_0x44eb37._0x4cae6f,0x57f,_0x44eb37._0x2f39c9)]();const _0xf9dc82=await this[_0x3c6a5a(0x3b,-0xc,_0x44eb37._0x1e2122,-0x2a)]({'body':_0x11467c[_0x3c6a5a(0x15d,0x146,_0x44eb37._0xdb3723,0xb1)],'credential':_0x2267e0,'session':_0x3ba561,'stream':![]},{'accept':_0x11467c[_0x3c6a5a(0x7a,_0x44eb37._0x1ae8fd,_0x44eb37._0x14f5d6,_0x44eb37._0x6b2edf)]??_0x1644ad(0x690,_0x44eb37._0x149825,0x677,_0x44eb37._0x1307ef),'includeContentType':_0x11467c[_0x3c6a5a(-_0x44eb37._0x5d3019,_0x44eb37._0x1e32f1,-_0x44eb37._0x3b827b,-_0x44eb37._0x1afcd9)]===_0x3c6a5a(-_0x44eb37._0x44a230,0x58,-0x6b,-0x78)});return this[_0x3c6a5a(-_0x44eb37._0x53c8c1,_0x44eb37._0x36bd7b,_0x44eb37._0x290d95,-0x25)](''+this['providerAdapter'][_0x1644ad(0x59e,_0x44eb37._0x2835f3,0x55a,_0x44eb37._0x1fc033)](this[_0x3c6a5a(-_0x44eb37._0x528db9,_0x44eb37._0x348ffc,-_0x44eb37._0x433a9d,0x41)],_0x3ba561)+_0x11467c[_0x1644ad(_0x44eb37._0x1e3983,0x61e,_0x44eb37._0x452b6b,_0x44eb37._0x35fba1)],{'method':_0x11467c['method'],'headers':_0xf9dc82,..._0x11467c[_0x3c6a5a(0xce,_0x44eb37._0x322f6f,_0x44eb37._0x3b790a,_0x44eb37._0xf85db3)]!==void 0x0?{'body':JSON[_0x1644ad(_0x44eb37._0x306937,_0x44eb37._0x1a5e7d,0x5c0,_0x44eb37._0x358e7)](_0x11467c[_0x3c6a5a(0xa2,0x14,0x2b,0xb1)])}:{},'signal':_0x11467c['signal']});};function _0x69127b(_0x39030b,_0x599472,_0x1d5fbd,_0x258b74){return _0x18ceca(_0x39030b,_0x258b74- -_0x5f3b5a._0x3cbbc4,_0x1d5fbd-0x1cb,_0x258b74-0x75);}return await this[_0x69127b(0x41d,_0x17a149._0x54a4ab,0x43f,0x39d)](_0x426319,_0x11467c);}[_0x18ceca(0x675,0x5da,0x6a4,0x629)](_0x8f998,_0x48eb60){const _0x45c0e3={_0x5eb9ae:0x14e,_0x5b0e5a:0x8f,_0xd8ea17:0x4d8,_0x489f3b:0x6e,_0xa9e774:0x12,_0x479a92:0x7f,_0x59d123:0x1bf,_0xd3802f:0x10f,_0x290073:0x1b0,_0x92e8bc:0x125,_0x4d6e87:0x112,_0x4c6504:0x144,_0xbf81a5:0xae},_0x4f282b={_0x13f0d1:0x127,_0x4162f7:0x1cf},_0x2e6706={_0x2084b3:0x137,_0xdb84e7:0x1cc},_0x3ad7ac=_0x8f998?.[_0xfc7fd0(_0x45c0e3._0x5eb9ae,_0x45c0e3._0x5b0e5a,0x195,0xeb)][_0x4669f5(0x519,0x530,_0x45c0e3._0xd8ea17,0x54a)](_0xfc7fd0(-_0x45c0e3._0x489f3b,0x12f,_0x45c0e3._0xa9e774,_0x45c0e3._0x479a92));function _0x4669f5(_0x3dd53e,_0x44ecd9,_0x316516,_0x1565ff){return _0x18ceca(_0x1565ff,_0x316516- -_0x2e6706._0x2084b3,_0x316516-_0x2e6706._0xdb84e7,_0x1565ff-0x1be);}if(_0x3ad7ac){const _0x31cafb=Number(_0x3ad7ac);if(Number[_0xfc7fd0(_0x45c0e3._0x59d123,_0x45c0e3._0xd3802f,0x174,0x144)](_0x31cafb)&&_0x31cafb>=0x0)return _0x31cafb*0x3e8;const _0x284c11=Date[_0xfc7fd0(0x77,_0x45c0e3._0x290073,0x1d6,0x10f)](_0x3ad7ac);if(Number[_0xfc7fd0(_0x45c0e3._0x92e8bc,0x18b,_0x45c0e3._0x4d6e87,_0x45c0e3._0x4c6504)](_0x284c11))return Math[_0xfc7fd0(0x16d,0xaf,0x90,_0x45c0e3._0xbf81a5)](0x0,_0x284c11-Date['now']());}const _0x3643d1=DEFAULT_RETRY_DELAY_MS*0x2**_0x48eb60;if(_0x3643d1<RETRY_DELAY_STEP_CAP_MS)return _0x3643d1;function _0xfc7fd0(_0x139e0a,_0x6f426b,_0x55ec5f,_0xe4a34d){return _0x18ceca(_0x55ec5f,_0xe4a34d- -0x3df,_0x55ec5f-_0x4f282b._0x13f0d1,_0xe4a34d-_0x4f282b._0x4162f7);}return RETRY_DELAY_STEP_CAP_MS*0x2**(_0x48eb60-0x5);}['shouldRetryResponse'](_0x355b9f){const _0x1a66ef={_0x5409bf:0x1ff,_0x2408e2:0x2af,_0x4937c1:0x2a8},_0xe8e3fd={_0x306f9c:0xd8};function _0x18d901(_0x4146de,_0x15b0b5,_0x447b36,_0x38df24){return _0x18ceca(_0x447b36,_0x4146de- -0x6ab,_0x447b36-_0xe8e3fd._0x306f9c,_0x38df24-0x93);}return RETRYABLE_HTTP_STATUSES[_0x18d901(-_0x1a66ef._0x5409bf,-_0x1a66ef._0x2408e2,-_0x1a66ef._0x4937c1,-0x1f7)](_0x355b9f['status']);}['shouldRetryRequestError'](_0x13b517){return!isAbortError(_0x13b517)&&_0x13b517 instanceof TypeError;}[_0x18ceca(0x378,0x452,0x4c8,0x4a4)](_0xd3b3cc){const _0x578089={_0x5a85e1:0x43a,_0x56a675:0x454,_0x41b813:0x425};function _0x1e2ddb(_0x316911,_0xc95088,_0x2c7306,_0x4614bf){return _0x4de126(_0x2c7306,_0xc95088-0x3d,_0x2c7306-0x29,_0x4614bf-0x2ab);}return this[_0x1e2ddb(_0x578089._0x5a85e1,_0x578089._0x56a675,0x40f,_0x578089._0x41b813)](_0xd3b3cc)||isRetryableProviderStreamEventError(_0xd3b3cc);}async[_0x18ceca(0x6b5,0x5e4,0x5c4,0x64e)](_0x47ffba,_0x10608a){const _0x1da1af={_0x337199:0x118,_0x4e1305:0x4b};throwIfAborted(_0x10608a),await new Promise((_0x580457,_0x19d706)=>{let _0x2281e5=![];const _0x17badf=addAbortListener(_0x10608a,()=>{if(_0x2281e5)return;_0x2281e5=!![];function _0x3e34e4(_0x2b076a,_0x78bc86,_0x48d3a4,_0xadcf99){return _0x245a(_0xadcf99- -0x1d8,_0x48d3a4);}clearTimeout(_0x378d54),_0x19d706(toAbortError(_0x10608a?.[_0x3e34e4(_0x1da1af._0x337199,0x25,-_0x1da1af._0x4e1305,0x57)]));}),_0x378d54=setTimeout(()=>{_0x2281e5=!![],_0x17badf(),_0x580457();},_0x47ffba);}),throwIfAborted(_0x10608a);}async[_0x18ceca(0x4f5,0x491,0x4fb,0x3ef)](_0x2b6462,_0x1030d8={}){const _0x427db1={_0x4b6ffe:0x28e,_0x228760:0x3c3,_0x39c1e6:0x30a,_0x31cffb:0x19a,_0x388875:0x1c4,_0x5edc6b:0x1df,_0x48ebb7:0x315,_0x244618:0x26e,_0x50f333:0x262,_0x106a68:0x3ad,_0x13c1bc:0x46f,_0x32495a:0x469,_0xbf4523:0x465,_0xee8dec:0x4c2,_0x3841ef:0x211,_0x4768cd:0x2fe,_0x5693ee:0x208},_0x152613={_0x5eadc4:0x9f};function _0x567015(_0x3bf25f,_0x31ef22,_0x1a486b,_0x4efe97){return _0x18ceca(_0x3bf25f,_0x4efe97- -0x175,_0x1a486b-_0x152613._0x5eadc4,_0x4efe97-0x1b1);}const {signal:_0x2fc959}=_0x1030d8;function _0x258d28(_0x2f2194,_0x188ec3,_0x33b14b,_0x5d7af5){return _0x4de126(_0x33b14b,_0x188ec3-0xd9,_0x33b14b-0x2c,_0x2f2194- -0xb);}let _0x18688c=![];for(let _0xf96886=0x0;_0xf96886<MAX_PROVIDER_REQUEST_ATTEMPTS;_0xf96886+=0x1){throwIfAborted(_0x2fc959);try{const _0x2f0146=await _0x2b6462();if(_0x2f0146[_0x567015(_0x427db1._0x4b6ffe,0x2f5,_0x427db1._0x228760,0x34e)]===0x191&&this[_0x258d28(0x254,0x1d7,_0x427db1._0x39c1e6,_0x427db1._0x31cffb)]&&!_0x18688c){_0x18688c=!![],this['sessionManager'][_0x258d28(0x16a,0xd5,0x1f0,_0x427db1._0x388875)]();continue;}if(!this[_0x258d28(0x283,_0x427db1._0x5edc6b,0x1c4,_0x427db1._0x48ebb7)](_0x2f0146)||_0xf96886===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)return _0x2f0146;const _0x28c418=this[_0x258d28(_0x427db1._0x244618,0x333,0x279,_0x427db1._0x50f333)](_0x2f0146,_0xf96886);await this[_0x567015(0x396,0x42d,_0x427db1._0x106a68,_0x427db1._0x13c1bc)](_0x28c418,_0x2fc959);}catch(_0x19c077){if(!this['shouldRetryRequestError'](_0x19c077)||_0xf96886===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0x19c077;const _0x25cbe6=this[_0x567015(0x465,_0x427db1._0x32495a,0x43d,_0x427db1._0xbf4523)](void 0x0,_0xf96886);await this[_0x567015(0x4a9,0x424,_0x427db1._0xee8dec,0x46f)](_0x25cbe6,_0x2fc959);}}throw new Error(_0x258d28(_0x427db1._0x3841ef,0x26e,_0x427db1._0x4768cd,_0x427db1._0x5693ee));}[_0x18ceca(0x531,0x4bb,0x444,0x470)](){const _0x412813={_0x355ba2:0x8e,_0x16b637:0x16e},_0x135595={_0x4fa5c7:0x34d,_0x350aca:0x34};function _0x5b25b2(_0x33c76e,_0x369858,_0x5b8060,_0x41ddb2){return _0x18ceca(_0x33c76e,_0x369858- -_0x135595._0x4fa5c7,_0x5b8060-_0x135595._0x350aca,_0x41ddb2-0x164);}return this['providerAdapter'][_0x5b25b2(_0x412813._0x355ba2,_0x412813._0x16b637,0x12f,0xf2)]();}async[_0x4de126(0x15d,0x164,0x13a,0x1e4)](_0x1b85cc,_0x16d576){const _0x3e25ac={_0x2281d5:0x307,_0x3be6be:0x457,_0x1aeb80:0x50,_0x7e345b:0x34},_0x3fb9f3={_0x5ddbae:0x1e1,_0x152cb0:0x1e},_0x42b77f={_0xa6473b:0x44,_0x5f4f82:0xc5,_0x21a2e0:0x26f};function _0x3f885d(_0x5de4a8,_0x33167d,_0x5560d3,_0x3dd579){return _0x4de126(_0x5de4a8,_0x33167d-_0x42b77f._0xa6473b,_0x5560d3-_0x42b77f._0x5f4f82,_0x3dd579- -_0x42b77f._0x21a2e0);}function _0x5812e8(_0x334a60,_0x3af323,_0x1c4a49,_0x4e8bf5){return _0x18ceca(_0x3af323,_0x334a60- -0x2a3,_0x1c4a49-_0x3fb9f3._0x5ddbae,_0x4e8bf5-_0x3fb9f3._0x152cb0);}return await this[_0x5812e8(0x379,_0x3e25ac._0x2281d5,_0x3e25ac._0x3be6be,0x2cf)][_0x3f885d(_0x3e25ac._0x1aeb80,-_0x3e25ac._0x7e345b,-0x21,-0x8b)](_0x1b85cc,_0x16d576);}[_0x18ceca(0x450,0x50e,0x4f8,0x56a)](_0x2bcf6b){const _0x828836={_0x5317f3:0x690,_0x326e61:0x63a,_0x38885c:0xae,_0x4c35f1:0x56},_0x1b563d={_0x65701f:0x1e,_0x182844:0x93,_0x594833:0x45},_0xf983d={_0x52e81c:0x5c9};function _0x3bba9a(_0x35b567,_0x40604a,_0x58cd3f,_0x4636a4){return _0x18ceca(_0x58cd3f,_0x4636a4- -_0xf983d._0x52e81c,_0x58cd3f-0x13d,_0x4636a4-0xa6);}function _0x49b666(_0x11dd5d,_0x549276,_0x28c3a9,_0x4c300d){return _0x18ceca(_0x11dd5d,_0x4c300d-_0x1b563d._0x65701f,_0x28c3a9-_0x1b563d._0x182844,_0x4c300d-_0x1b563d._0x594833);}return this[_0x49b666(_0x828836._0x5317f3,0x6bf,0x591,_0x828836._0x326e61)][_0x3bba9a(-0x10e,-_0x828836._0x38885c,-_0x828836._0x4c35f1,-0xbb)](_0x2bcf6b);}async[_0x18ceca(0x599,0x510,0x5e8,0x45c)](_0x5cf632){const _0x7897e6={_0x3475c8:0x148},_0x2f4701={_0x216377:0x176,_0x39a9de:0x13c};function _0x4147d5(_0x530353,_0x221f07,_0x4a0305,_0x59a02f){return _0x4de126(_0x221f07,_0x221f07-_0x2f4701._0x216377,_0x4a0305-_0x2f4701._0x39a9de,_0x4a0305- -0x33c);}return await this[_0x4147d5(-0x158,-0xca,-0x81,-_0x7897e6._0x3475c8)]['toApiError'](_0x5cf632);}[_0x18ceca(0x4c6,0x4fe,0x496,0x51a)](_0x570821){const _0xc451b8={_0x5d8c5a:0x433,_0x11ea24:0x483,_0x22c2dd:0x4d2,_0x4cf4be:0x399},_0x27b202={_0x2aa1ff:0x16,_0x208271:0x80,_0x530be9:0x1c7},_0x10d30a=this[_0x2156f3(0x403,0x39d,_0xc451b8._0x5d8c5a,_0xc451b8._0x11ea24)]['get'](_0x570821);function _0x2156f3(_0x3721b3,_0x4695a1,_0x3a6aab,_0x17db0d){return _0x4de126(_0x4695a1,_0x4695a1-_0x27b202._0x2aa1ff,_0x3a6aab-_0x27b202._0x208271,_0x3721b3-_0x27b202._0x530be9);}if(!_0x10d30a)throw new Error(_0x2156f3(0x451,0x452,_0xc451b8._0x22c2dd,_0xc451b8._0x4cf4be)+_0x570821);function _0x22e525(_0x2219d4,_0x28e60b,_0x151158,_0x537cde){return _0x18ceca(_0x537cde,_0x2219d4- -0x1c8,_0x151158-0x6d,_0x537cde-0x184);}return _0x10d30a;}async[_0x4de126(0x23a,0x249,0x193,0x177)](_0x3018d3,_0xccf152){const _0x5c7b12={_0xf96aa7:0x3d2,_0x48a282:0x467,_0x5c9e09:0x2fb,_0x22da6d:0xeb,_0xcd70a8:0xca,_0x3512d9:0x72,_0x4b61fa:0x4c,_0x5ae7bc:0x1fb,_0x2cf03d:0x4c,_0x387274:0x33,_0x433947:0x156,_0x3352a0:0xc7,_0x52ee60:0xb8,_0x1edbaa:0xc,_0x1fd2c3:0x187,_0x5db572:0x132},_0x529ed3={_0x374218:0x668,_0x4f369b:0x149},_0x2eb072={_0x413fa7:0x1e5},_0x513c5b=toModelRequest(_0x3018d3),_0x591307=await prepareProviderRequest(_0x513c5b,{'sessionManager':this[_0x220f6a(0x369,_0x5c7b12._0xf96aa7,_0x5c7b12._0x48a282,_0x5c7b12._0x5c9e09)],'requestMutators':this['requestMutators'],'signal':_0xccf152});function _0x220f6a(_0x3c781f,_0x40d9f1,_0x370c96,_0x4e4397){return _0x18ceca(_0x370c96,_0x40d9f1- -0x1ee,_0x370c96-_0x2eb072._0x413fa7,_0x4e4397-0x78);}function _0x1eda30(_0x324fcd,_0x76e277,_0x45def3,_0x1f6366){return _0x18ceca(_0x324fcd,_0x76e277- -_0x529ed3._0x374218,_0x45def3-_0x529ed3._0x4f369b,_0x1f6366-0xad);}const _0x2e6089=toChatRequest(_0x591307[_0x1eda30(-0x19c,-0x159,-_0x5c7b12._0x22da6d,-_0x5c7b12._0xcd70a8)]),_0x49e218=this[_0x1eda30(-_0x5c7b12._0x3512d9,-_0x5c7b12._0x4b61fa,0xa4,-0x5b)]['resolveCredential'](this[_0x220f6a(0x22c,0x2ca,_0x5c7b12._0x5ae7bc,0x3ad)],_0x591307['session']);if(!_0x49e218)throw this[_0x220f6a(0x39a,0x2cd,0x1e1,0x34a)]();return{'baseUrl':this[_0x1eda30(0x9b,-_0x5c7b12._0x2cf03d,_0x5c7b12._0x387274,-0xf9)][_0x1eda30(-0x1a8,-_0x5c7b12._0x433947,-_0x5c7b12._0x3352a0,-0x1ba)](this[_0x1eda30(-0xae,-_0x5c7b12._0x52ee60,_0x5c7b12._0x1edbaa,-_0x5c7b12._0x1fd2c3)],_0x591307['session']),'credential':_0x49e218,'request':_0x2e6089,'session':_0x591307[_0x1eda30(-0xe3,-_0x5c7b12._0x5db572,-0x21b,-0xde)]};}[_0x18ceca(0x53e,0x462,0x41d,0x38a)](_0x389ba5){const _0x11e315={_0x5c2229:0x420,_0x224e29:0x3fa,_0x9718:0xb1,_0x39fee7:0x11c,_0x17537c:0x7b,_0x284293:0x5,_0x199b21:0x40b,_0x4dfed8:0x521},_0x13330b={_0x2f46f2:0x103};function _0x1658f5(_0x1b8ce0,_0x1d0c38,_0x421856,_0x1bab18){return _0x4de126(_0x1bab18,_0x1d0c38-0xc2,_0x421856-0x7c,_0x1b8ce0- -0x91);}function _0xc48289(_0x381a7f,_0x2f2bb6,_0x3ddfb8,_0x5b2f05){return _0x18ceca(_0x3ddfb8,_0x2f2bb6- -0x48,_0x3ddfb8-_0x13330b._0x2f46f2,_0x5b2f05-0x17f);}return{...structuredClone(_0x389ba5),..._0x389ba5[_0xc48289(_0x11e315._0x5c2229,0x45b,_0x11e315._0x224e29,0x3f2)]===void 0x0&&this[_0x1658f5(_0x11e315._0x9718,_0x11e315._0x39fee7,_0x11e315._0x17537c,-_0x11e315._0x284293)]!==void 0x0?{'reasoning':structuredClone(this[_0xc48289(_0x11e315._0x199b21,0x45b,_0x11e315._0x4dfed8,0x3b8)])}:{}};}async['sendHttpSurfaceRequest'](_0x45a4b6,_0x2d2312,_0x17d741,_0x1b046a={},_0x5ce09e=!![]){const _0x55016c={_0x356969:0xd3,_0xdf44ee:0x9c,_0x48c887:0x188},_0x1d9135={_0x488069:0x2fe,_0x163364:0x37c,_0x397b7c:0x2d7,_0x5eaf1a:0x2ca,_0x4b7856:0x2b2,_0x2aef49:0x369,_0x2f2325:0x256,_0x166c3a:0x166,_0x1ae380:0x18b,_0x3a68ab:0x289,_0x106fa7:0x291,_0x306e57:0x31e,_0xbf8079:0x132,_0x4d608d:0x266,_0x1d5f3b:0x298,_0x52a4cd:0x2e7,_0xf0dbb9:0x2f8,_0xe496b5:0x36e,_0x422722:0x3f6,_0x5223aa:0x335,_0x4d3d9a:0x24c,_0x599b27:0x34c,_0x4bbe17:0x352,_0x5b3fce:0x31d,_0x2c01ac:0x3d4,_0x4d1302:0x3d3,_0x5cd52a:0x341,_0x44c7ee:0x4f0,_0x28d9f0:0x4ee,_0x12babe:0x299,_0x3f4ddd:0x2e2,_0x25a04e:0x152,_0x13f38f:0x1ec,_0x45e2d3:0x41c,_0x3862b7:0x2f7,_0x3c445e:0x32f,_0x4f0ebe:0x3e7,_0x380633:0x2a1,_0x4c08ef:0x365,_0x17997c:0x396,_0x4cf12f:0x2fb,_0x267572:0x413},_0x3df6ac={_0x53721b:0x168},_0x399f5d={_0x2b3be2:0x190,_0x308e62:0x4d,_0x25d46c:0x1ee};function _0x520e3c(_0x551987,_0x1591d0,_0x5b8ceb,_0x336f5c){return _0x4de126(_0x1591d0,_0x1591d0-_0x399f5d._0x2b3be2,_0x5b8ceb-_0x399f5d._0x308e62,_0x551987- -_0x399f5d._0x25d46c);}const {signal:_0xe0307c}=_0x1b046a,_0x4a26a9=async()=>{const _0x5d65ec=await this[_0x5a22be(0x2a6,_0x1d9135._0x488069,_0x1d9135._0x163364,_0x1d9135._0x397b7c)](_0x45a4b6,_0xe0307c);let _0x571e45;try{_0x571e45=_0x2d2312[_0x5d4863(_0x1d9135._0x5eaf1a,_0x1d9135._0x4b7856,_0x1d9135._0x2aef49,0x2e6)](_0x5d65ec[_0x5d4863(_0x1d9135._0x2f2325,0x2d9,_0x1d9135._0x166c3a,_0x1d9135._0x1ae380)]);}catch(_0x2620e8){if(_0x2620e8 instanceof Error)throw new ProviderRequestConstructionError(_0x2620e8[_0x5d4863(_0x1d9135._0x3a68ab,0x374,_0x1d9135._0x106fa7,_0x1d9135._0x306e57)]);throw _0x2620e8;}if(!_0x571e45[_0x5d4863(0x20f,_0x1d9135._0xbf8079,_0x1d9135._0x4d608d,_0x1d9135._0x1d5f3b)])throw new ProviderRequestConstructionError(_0x5a22be(0x23a,_0x1d9135._0x52a4cd,0x319,_0x1d9135._0xf0dbb9)+_0x2d2312['id']+_0x5a22be(0x286,0x367,0x2ac,_0x1d9135._0xe496b5));const _0x2ee64e=await this['createHeaders']({'request':_0x5d65ec[_0x5a22be(_0x1d9135._0x422722,_0x1d9135._0x5223aa,_0x1d9135._0x4d3d9a,_0x1d9135._0x599b27)],'body':_0x571e45['body'],'credential':_0x5d65ec['credential'],'session':_0x5d65ec[_0x5d4863(0x27d,_0x1d9135._0x4bbe17,0x2f6,_0x1d9135._0x5b3fce)],'stream':_0x17d741},{'accept':_0x571e45[_0x5d4863(0x361,0x2ac,_0x1d9135._0x2c01ac,0x448)]??(_0x17d741?_0x5a22be(0x3c6,_0x1d9135._0x4d1302,_0x1d9135._0x5cd52a,0x3dd):_0x5a22be(_0x1d9135._0x44c7ee,0x42a,_0x1d9135._0x28d9f0,0x407)),'includeContentType':_0x571e45['body']!==void 0x0});for(const [_0x2d4073,_0xe97446]of Object[_0x5d4863(0x21a,0x1d7,_0x1d9135._0x12babe,_0x1d9135._0x3f4ddd)](_0x571e45[_0x5d4863(0x211,_0x1d9135._0x25a04e,0x276,_0x1d9135._0x13f38f)]??{})){_0x2ee64e[_0x5a22be(0x4d3,_0x1d9135._0x45e2d3,0x43d,0x3fc)](_0x2d4073,_0xe97446);}function _0x5a22be(_0x20a991,_0x4c2f73,_0x1d3f39,_0x3faf67){return _0x245a(_0x4c2f73-_0x3df6ac._0x53721b,_0x20a991);}function _0x5d4863(_0x11e56,_0xe41172,_0x2f0608,_0x57246a){return _0x245a(_0x11e56-0x89,_0x2f0608);}return this['fetchImpl'](''+_0x5d65ec[_0x5d4863(_0x1d9135._0x3862b7,_0x1d9135._0x3c445e,_0x1d9135._0x4f0ebe,_0x1d9135._0x380633)]+_0x571e45[_0x5a22be(0x37a,0x2ee,0x26b,0x255)],{'method':_0x5a22be(_0x1d9135._0x4c08ef,0x31d,_0x1d9135._0x17997c,0x2a0),'headers':_0x2ee64e,..._0x571e45['body']!==void 0x0?{'body':JSON[_0x5d4863(_0x1d9135._0x4cf12f,0x29e,0x37d,0x396)](_0x571e45[_0x5a22be(0x48b,0x446,0x35f,_0x1d9135._0x267572)])}:{},'signal':_0xe0307c});};return _0x5ce09e?await this[_0x520e3c(-0xbe,-_0x55016c._0x356969,-_0x55016c._0xdf44ee,-_0x55016c._0x48c887)](_0x4a26a9,_0x1b046a):await _0x4a26a9();}async*[_0x4de126(0x1ef,0x16e,0x26e,0x1cb)](_0x524daf,_0x4b531c,_0x546d29={}){const _0x2782bd={_0x1bb6f5:0x137,_0x4830f2:0x72,_0x4da536:0x54d,_0x31bad6:0x4b3,_0x200459:0x58a,_0xdc7af3:0x1a9,_0x57192f:0x248,_0x1f8296:0x9e,_0x70943d:0xfb,_0x52f666:0x10d,_0x5cae2f:0x451,_0x1066bc:0x558,_0x2787d9:0x518,_0x29a748:0x5a9,_0xdb7b0f:0x463,_0x150673:0x3d4,_0x4c4c8b:0x41c,_0x3acf86:0x571,_0x9761ce:0x61b,_0x3f1de3:0x4ea,_0xebbe68:0x5a4,_0x2346dd:0x59d,_0xfe3856:0x131,_0x2ed925:0x219,_0x9b5e7c:0x7f,_0x14d86c:0x176,_0x4b8b4c:0x14a,_0x391a12:0x23a,_0x2f3c18:0x190,_0xd32d09:0x166},_0x48917a={_0x3596bb:0x14d,_0xe62157:0x1a8,_0x1fc6f7:0x49};function _0x505003(_0x32e228,_0x6da519,_0x154b21,_0x8f53f7){return _0x4de126(_0x154b21,_0x6da519-_0x48917a._0x3596bb,_0x154b21-_0x48917a._0xe62157,_0x32e228- -_0x48917a._0x1fc6f7);}function _0x3d1e47(_0x32fa8d,_0x5c095a,_0x39a2b4,_0x2f673a){return _0x18ceca(_0x39a2b4,_0x2f673a- -0x36,_0x39a2b4-0x3a,_0x2f673a-0xeb);}const {signal:_0x571997}=_0x546d29;let _0x4b5063=![];for(let _0x4a5cd1=0x0;_0x4a5cd1<MAX_PROVIDER_REQUEST_ATTEMPTS;_0x4a5cd1+=0x1){let _0x405073=![];try{const _0x5ed83a=await this[_0x505003(_0x2782bd._0x1bb6f5,_0x2782bd._0x4830f2,0xc9,0x59)](_0x524daf,_0x4b531c,!![],_0x546d29,![]);if(_0x5ed83a[_0x3d1e47(0x43f,0x419,_0x2782bd._0x4da536,0x48d)]===0x191&&this[_0x3d1e47(0x5a0,_0x2782bd._0x31bad6,0x4ea,_0x2782bd._0x200459)]&&!_0x4b5063){_0x4b5063=!![],this[_0x505003(0x216,_0x2782bd._0xdc7af3,0x191,0x28c)]['invalidate']();continue;}if(!_0x5ed83a['ok'])throw await this[_0x505003(0x166,_0x2782bd._0x57192f,_0x2782bd._0x1f8296,_0x2782bd._0x70943d)](_0x5ed83a);const _0x3177b3=_0x4b531c[_0x505003(0xb2,0x102,0x82,_0x2782bd._0x52f666)]?.(_0x524daf);if(!_0x3177b3?.[_0x3d1e47(0x417,0x4d1,0x530,_0x2782bd._0x5cae2f)])throw new Error('Surface\x20'+_0x4b531c['id']+'\x20cannot\x20parse\x20SSE\x20events');for await(const _0x5f1206 of iterateSseEvents(_0x5ed83a,_0x571997)){const _0x113b14=_0x3177b3['consumeSseEvent'](_0x5f1206);for(const _0x3694ff of _0x113b14){_0x405073=!![],yield _0x3694ff;}}yield{'type':'done','response':_0x3177b3[_0x3d1e47(_0x2782bd._0x1066bc,_0x2782bd._0x2787d9,0x5f3,_0x2782bd._0x29a748)]()};return;}catch(_0x418660){if(_0x405073||!this[_0x3d1e47(_0x2782bd._0xdb7b0f,0x43a,_0x2782bd._0x150673,_0x2782bd._0x4c4c8b)](_0x418660)||_0x4a5cd1===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0x418660;const _0x12c7bd=this[_0x3d1e47(_0x2782bd._0x3acf86,_0x2782bd._0x9761ce,_0x2782bd._0x3f1de3,_0x2782bd._0xebbe68)](void 0x0,_0x4a5cd1),_0x3b39fc={'type':_0x3d1e47(0x48e,0x5ad,0x4f8,0x4d6),'attempt':_0x4a5cd1+0x1,'maxAttempts':MAX_PROVIDER_REQUEST_ATTEMPTS,'error':_0x418660 instanceof Error?_0x418660[_0x3d1e47(0x562,0x42b,_0x2782bd._0x2346dd,0x50c)]:String(_0x418660),'delayMs':_0x12c7bd,'reason':this[_0x505003(_0x2782bd._0xfe3856,_0x2782bd._0x2ed925,_0x2782bd._0x9b5e7c,0x1cb)](_0x418660)?'transport_error':_0x505003(0xbe,0x18b,_0x2782bd._0x14d86c,_0x2782bd._0x4b8b4c)};yield _0x3b39fc,await this[_0x505003(_0x2782bd._0x391a12,_0x2782bd._0x2f3c18,_0x2782bd._0xd32d09,0x30e)](_0x12c7bd,_0x571997);}}}async*[_0x4de126(0x31e,0x27b,0x2e0,0x260)](_0x4021e7,_0x5f1ec9,_0x5b9c5d){const _0x24e064={_0x2953e8:0x2f0,_0x556ea5:0x221,_0x2d04bc:0x187,_0x417bed:0x23c,_0x43dbdd:0x24c,_0x45e039:0x239,_0x1930e8:0x14f,_0x911de4:0x189,_0x2a55e8:0x248,_0xaa0b6e:0x1f9,_0x3069f5:0x286,_0x14e6e4:0x299,_0x849e01:0x297,_0xf32b61:0x314,_0x4e10af:0x213,_0x3fa97d:0x2db,_0x37ab7f:0x3c3,_0xaa834b:0x1f2,_0xddf838:0x20f,_0x2a105f:0x1bf,_0x3b6080:0x24a,_0x52906a:0x2fc,_0x4792f3:0x2dd,_0x35c497:0x2f3,_0x5bfcd5:0x1ba,_0x4ed6ab:0x266,_0x464a74:0x1f9,_0x193fcd:0x2c9,_0x4e8b41:0x1f5,_0x1eb5f5:0x1ee,_0x1c639c:0x250,_0x1e417c:0x274,_0x48e11e:0x316,_0x38269c:0x368,_0xf25282:0x319,_0x42817b:0x22a,_0x41a96a:0x1d0,_0x56d0e5:0x167,_0x5093a1:0x22b,_0x5570e1:0x1f7,_0x158c54:0x2ab,_0xcf0f7f:0x323,_0x52c80:0x38c,_0x32d4bc:0x428,_0x215e45:0x517,_0x2690c3:0x4c0,_0x5ccdce:0x2fd,_0x1473fa:0x19f,_0x46c0fb:0x19a,_0x1abdf9:0x21c,_0x3444be:0x298,_0x418f04:0x200,_0x2624a6:0x19c,_0x1af86f:0x1b3,_0x44c88a:0x252,_0xf92182:0x404,_0x3bdadb:0x183,_0x28156e:0x14b,_0x28bc5c:0x1e0,_0x228c51:0x12d,_0xa5ea3a:0x2c9,_0x14ebc1:0x218,_0x1c98e4:0x3f7,_0x18cad3:0x4d7,_0x222efd:0x4b5,_0x493d0e:0x31b,_0x1826f5:0x255,_0x59734c:0x33d,_0x583573:0x1db,_0x23a6b1:0x2b2,_0x3f98ea:0x2ac,_0x396149:0x3c2,_0x358af0:0x392},_0x53a776={_0x3adeae:0x2,_0x898fe0:0x179},_0x71a77b={_0x1b0b3e:0x196},_0x359e06=await this[_0x4deefe(0x244,_0x24e064._0x2953e8,_0x24e064._0x556ea5,0x26c)](_0x4021e7,_0x5b9c5d),_0x50655c=_0x5f1ec9[_0x260e1e(0x306,0x34f,0x29c,0x2b0)](_0x359e06[_0x260e1e(0x30c,0x299,_0x24e064._0x2d04bc,_0x24e064._0x417bed)]),_0x555c74=_0x5f1ec9[_0x260e1e(_0x24e064._0x43dbdd,_0x24e064._0x45e039,_0x24e064._0x1930e8,_0x24e064._0x911de4)]?.(_0x4021e7);if(!_0x555c74?.[_0x4deefe(_0x24e064._0x2a55e8,0x2cb,0x2c8,0x276)])throw new Error(_0x4deefe(_0x24e064._0xaa0b6e,0x2d9,_0x24e064._0x3069f5,0x216)+_0x5f1ec9['id']+'\x20cannot\x20parse\x20WebSocket\x20events');const _0x24568a=_0x50655c[_0x260e1e(_0x24e064._0x14e6e4,0x374,0x2e0,_0x24e064._0x849e01)]??(_0x50655c['path']?(''+_0x359e06[_0x260e1e(_0x24e064._0xf32b61,0x3c8,_0x24e064._0x4e10af,0x2dd)]+_0x50655c[_0x4deefe(_0x24e064._0x3fa97d,0x2e0,_0x24e064._0x37ab7f,0x227)])['replace'](/^http:/,_0x260e1e(0x1f6,_0x24e064._0xaa834b,_0x24e064._0xddf838,_0x24e064._0x2a105f))[_0x4deefe(_0x24e064._0x3b6080,_0x24e064._0x52906a,_0x24e064._0x4792f3,_0x24e064._0x35c497)](/^https:/,_0x260e1e(0x275,_0x24e064._0x5bfcd5,_0x24e064._0x4ed6ab,_0x24e064._0x464a74)):void 0x0);function _0x260e1e(_0x49bc7f,_0x150040,_0x15ccc3,_0x280ece){return _0x4de126(_0x49bc7f,_0x150040-_0x71a77b._0x1b0b3e,_0x15ccc3-0xf5,_0x280ece-0x8e);}if(!_0x24568a)throw new ProviderRequestConstructionError(_0x260e1e(0x1d4,_0x24e064._0x193fcd,_0x24e064._0x4e8b41,_0x24e064._0x1eb5f5)+_0x5f1ec9['id']+_0x260e1e(0x1fe,_0x24e064._0x1c639c,0x319,0x2b2));function _0x4deefe(_0x4833bd,_0x57afc4,_0x296e86,_0x25c11c){return _0x4de126(_0x296e86,_0x57afc4-_0x53a776._0x3adeae,_0x296e86-0x126,_0x57afc4-_0x53a776._0x898fe0);}const _0x1b88a9=await this[_0x4deefe(0x405,0x35d,0x28e,0x30e)]({'request':_0x359e06[_0x4deefe(_0x24e064._0x1e417c,0x327,0x282,_0x24e064._0x48e11e)],'body':_0x50655c[_0x260e1e(_0x24e064._0x38269c,0x303,0x2f5,_0x24e064._0xf25282)],'credential':_0x359e06[_0x4deefe(0x2b8,0x310,0x305,0x308)],'session':_0x359e06['session'],'stream':!![]},{'accept':_0x50655c['accept']??'application/json','includeContentType':![]});for(const [_0x5249f2,_0x4644be]of Object[_0x260e1e(_0x24e064._0x42817b,_0x24e064._0x41a96a,0x22e,0x200)](_0x50655c[_0x260e1e(0x27f,_0x24e064._0x56d0e5,_0x24e064._0x5093a1,_0x24e064._0x5570e1)]??{})){_0x1b88a9[_0x260e1e(0x277,0x30c,_0x24e064._0x158c54,_0x24e064._0xcf0f7f)](_0x5249f2,_0x4644be);}_0x1b88a9[_0x4deefe(0x344,0x35c,_0x24e064._0x52c80,_0x24e064._0x32d4bc)](_0x4deefe(_0x24e064._0x215e45,0x432,0x453,_0x24e064._0x2690c3));const _0x3274a8=this[_0x4deefe(0x343,_0x24e064._0x5ccdce,0x2a3,0x250)]({'headers':Object[_0x260e1e(_0x24e064._0x1473fa,0x25a,0x1b3,_0x24e064._0x46c0fb)](_0x1b88a9[_0x260e1e(_0x24e064._0x1abdf9,0x2b1,_0x24e064._0x3444be,_0x24e064._0x418f04)]()),'url':_0x24568a});try{throwIfAborted(_0x5b9c5d);_0x3274a8['readyState']!==WebSocket[_0x260e1e(_0x24e064._0x2624a6,0x2cc,_0x24e064._0x1af86f,_0x24e064._0x44c88a)]&&await waitForWebSocketOpen(_0x3274a8,_0x5b9c5d);throwIfAborted(_0x5b9c5d);_0x50655c[_0x4deefe(0x40a,_0x24e064._0xf92182,0x3a9,0x354)]!==void 0x0&&_0x3274a8['send'](JSON['stringify'](_0x50655c['initialEvent']));for await(const _0x222c1b of iterateWebSocketMessages(_0x3274a8,_0x5b9c5d)){yield*_0x555c74[_0x260e1e(_0x24e064._0x3bdadb,0x175,_0x24e064._0x28156e,_0x24e064._0x28bc5c)](_0x222c1b);if(_0x555c74['isDone']?.())break;}yield{'type':_0x260e1e(_0x24e064._0x228c51,0x2a1,_0x24e064._0xa5ea3a,_0x24e064._0x14ebc1),'response':_0x555c74[_0x4deefe(0x493,_0x24e064._0x1c98e4,_0x24e064._0x18cad3,0x400)]()};}finally{_0x3274a8[_0x4deefe(_0x24e064._0x222efd,0x40b,_0x24e064._0x493d0e,0x400)]===WebSocket[_0x4deefe(_0x24e064._0x1826f5,_0x24e064._0x59734c,0x39f,0x347)]&&_0x3274a8['close'](0x3e8,_0x5b9c5d?.[_0x260e1e(_0x24e064._0x583573,0x2bb,_0x24e064._0x23a6b1,_0x24e064._0x3f98ea)]?'aborted':_0x4deefe(0x38d,0x372,_0x24e064._0x396149,_0x24e064._0x358af0));}}};async function createHttpError(_0x3d9f2a){const _0x5ad621={_0x28c293:0x102,_0x1c2423:0xdd,_0x3a4205:0x6bf,_0xbb4e72:0x23,_0x3414e5:0x56,_0x361326:0x54,_0x12b204:0x3e,_0x6406f2:0x4d,_0x4409ee:0x95,_0x25462d:0x69,_0xab3a9c:0xeb},_0x1f2300={_0x5c7561:0xe6,_0x228ac5:0x1d5},_0x273898={_0x3e0f91:0x143};function _0x424556(_0x50640b,_0x1346a8,_0x543da0,_0x1cf8f5){return _0x4de126(_0x1cf8f5,_0x1346a8-_0x273898._0x3e0f91,_0x543da0-0x90,_0x1346a8-0x361);}const _0x432314=await _0x3d9f2a[_0x490db0(_0x5ad621._0x28c293,_0x5ad621._0x1c2423,0x46,0x93)](),_0x4a996d=_0x432314[_0x424556(_0x5ad621._0x3a4205,0x5d6,0x52d,0x5e2)]()||_0x3d9f2a[_0x490db0(-0x3c,_0x5ad621._0xbb4e72,_0x5ad621._0x3414e5,0x3c)]||_0x490db0(0x8c,-_0x5ad621._0x361326,_0x5ad621._0x12b204,_0x5ad621._0x6406f2);function _0x490db0(_0x4055e5,_0x18d147,_0x54e6f2,_0x2c7a4e){return _0x4de126(_0x18d147,_0x18d147-_0x1f2300._0x5c7561,_0x54e6f2-_0x1f2300._0x228ac5,_0x4055e5- -0x16f);}return new Error(_0x490db0(-0x38,-0x16,_0x5ad621._0x4409ee,-0x8d)+_0x3d9f2a[_0x490db0(-0xd,0xae,_0x5ad621._0x25462d,-_0x5ad621._0xab3a9c)]+':\x20'+_0x4a996d);}var AnthropicProviderAdapter=class{[_0x4de126(0x243,0x2da,0x1c3,0x2a4)];[_0x18ceca(0x4bc,0x58b,0x560,0x5e0)];['protocolVersion'];constructor(_0x56d148){const _0x561921={_0x283fa5:0xd9,_0x193a3a:0x19d,_0x23fe7b:0x5f,_0x38eafe:0xfb,_0x164392:0xbc,_0x296e59:0xd8,_0x47c417:0x170,_0x2f9ae4:0x84,_0x4a9f0a:0xd8},_0x4d6b1c={_0xea86c8:0x158,_0x51ce25:0xde},_0x32f06b={_0x2a10f8:0x1cb};this['authScheme']=_0x56d148[_0x412d50(_0x561921._0x283fa5,0x11e,0x109,_0x561921._0x193a3a)];function _0x412d50(_0x2d7af7,_0x3b4e22,_0x52d3b7,_0x578da7){return _0x4de126(_0x578da7,_0x3b4e22-0x135,_0x52d3b7-0xbc,_0x2d7af7- -_0x32f06b._0x2a10f8);}function _0x45a954(_0x550bd7,_0x4558ce,_0x5ced94,_0x46b253){return _0x4de126(_0x46b253,_0x4558ce-_0x4d6b1c._0xea86c8,_0x5ced94-_0x4d6b1c._0x51ce25,_0x4558ce- -0x2ec);}this[_0x412d50(_0x561921._0x23fe7b,0x62,_0x561921._0x38eafe,_0x561921._0x164392)]=_0x56d148['headerResolver'],this[_0x412d50(-_0x561921._0x296e59,-_0x561921._0x47c417,-0x73,-_0x561921._0x2f9ae4)]=_0x56d148[_0x412d50(-_0x561921._0x4a9f0a,-0x36,-0xfd,-0xbf)];}[_0x18ceca(0x401,0x4bb,0x4cc,0x3f8)](){const _0x3f3e35={_0x27f8f4:0x298,_0x1026fa:0x26c,_0x26d143:0x304,_0x361336:0x266},_0xa45d29={_0x1ac458:0x31e};function _0xbfb1e5(_0x35f875,_0xbeab93,_0x204a35,_0x434bb7){return _0x18ceca(_0x434bb7,_0xbeab93- -_0xa45d29._0x1ac458,_0x204a35-0xc7,_0x434bb7-0x86);}return new Error(_0xbfb1e5(_0x3f3e35._0x27f8f4,_0x3f3e35._0x1026fa,_0x3f3e35._0x26d143,_0x3f3e35._0x361336));}async['createHeaders'](_0x1c514a,_0x2e2ec6){const _0xf6febc={_0xff4c60:0x45f,_0x505c2b:0x3a8,_0x2e0d61:0x42c,_0x378d8b:0x372,_0x332864:0x43b,_0x4a747c:0x502,_0x36d11b:0x4ee,_0x309839:0x443,_0x1225a0:0x2db,_0x439cf9:0x3fe,_0x2fc204:0x485,_0x182072:0x5d4,_0x20f1f4:0x44a,_0x17d72a:0x4f4,_0x50eca0:0x518,_0x10be7d:0x49f,_0x208d87:0x4f5,_0xadcdda:0x5c9,_0x36cdd9:0x4b2,_0x5dbcd3:0x41b,_0x4bfe5f:0x56d,_0x2e0e1d:0x560,_0x1178a3:0x4b4,_0x424937:0x426,_0x565b23:0x458,_0x10c8c4:0x385,_0x1c4613:0x2fb,_0x27deb1:0x3d0,_0x2ef341:0x3aa,_0x5b7c83:0x47c,_0x50e1a6:0x440,_0x53ffe2:0x2d1,_0x166c01:0x354,_0x5d1b92:0x535,_0x8e76:0x496,_0x3c07e8:0x566,_0x151468:0x4c3},_0x27b36c={_0x52b596:0x143,_0x129bce:0x1a6},_0xe291ea=new Headers();function _0xf3621(_0x244a17,_0x3ac09d,_0x415ab3,_0x460155){return _0x4de126(_0x3ac09d,_0x3ac09d-_0x27b36c._0x52b596,_0x415ab3-0x1e9,_0x460155-_0x27b36c._0x129bce);}function _0x48cb27(_0x14711e,_0x9e2da7,_0x2fe62e,_0x25d4cd){return _0x4de126(_0x14711e,_0x9e2da7-0x137,_0x2fe62e-0x1b8,_0x2fe62e-0x2c1);}_0xe291ea['set'](_0xf3621(0x480,0x4ef,0x4ba,_0xf6febc._0xff4c60),_0x2e2ec6[_0xf3621(_0xf6febc._0x505c2b,0x458,0x499,_0xf6febc._0xff4c60)]),_0xe291ea[_0xf3621(_0xf6febc._0x2e0d61,0x41a,_0xf6febc._0x378d8b,_0xf6febc._0x332864)](_0xf3621(_0xf6febc._0x4a747c,_0xf6febc._0x36d11b,0x4f1,_0xf6febc._0x309839),this[_0x48cb27(_0xf6febc._0x1225a0,_0xf6febc._0x439cf9,0x3b4,0x39c)]);_0x2e2ec6['includeContentType']!==![]&&_0xe291ea[_0x48cb27(0x56c,_0xf6febc._0x2fc204,0x556,_0xf6febc._0x182072)](_0xf3621(0x1e4,0x28b,0x32e,0x2c6),'application/json');this[_0xf3621(0x4b9,0x3f1,0x45b,_0xf6febc._0x20f1f4)]==='bearer'?_0xe291ea['set'](_0x48cb27(0x54a,_0xf6febc._0x17d72a,_0xf6febc._0x50eca0,0x4ca),'Bearer\x20'+_0x1c514a['credential'][_0x48cb27(_0xf6febc._0x10be7d,0x517,_0xf6febc._0x208d87,_0xf6febc._0xadcdda)]):_0xe291ea[_0xf3621(_0xf6febc._0x36cdd9,_0xf6febc._0x5dbcd3,0x4df,0x43b)](_0x48cb27(0x657,0x57d,_0xf6febc._0x4bfe5f,_0xf6febc._0x2e0e1d),_0x1c514a[_0x48cb27(_0xf6febc._0x1178a3,_0xf6febc._0x424937,_0xf6febc._0x565b23,_0xf6febc._0x10c8c4)][_0x48cb27(0x4bf,0x4cc,_0xf6febc._0x208d87,0x490)]);const _0x24ecac=await this[_0xf3621(_0xf6febc._0x1c4613,0x33b,0x403,_0xf6febc._0x27deb1)]?.({'body':_0x1c514a[_0xf3621(_0xf6febc._0x2ef341,_0xf6febc._0x5b7c83,0x546,0x465)],'credential':_0x1c514a['credential'],'request':_0x1c514a[_0xf3621(0x412,_0xf6febc._0x50e1a6,_0xf6febc._0x53ffe2,_0xf6febc._0x166c01)],'session':_0x1c514a[_0x48cb27(_0xf6febc._0x5d1b92,0x461,_0xf6febc._0x8e76,0x444)],'stream':_0x1c514a[_0x48cb27(0x4a3,0x4e1,_0xf6febc._0x3c07e8,_0xf6febc._0x151468)]});for(const [_0xdbb395,_0x1ebd01]of Object['entries'](_0x24ecac??{})){_0xe291ea['set'](_0xdbb395,_0x1ebd01);}return _0xe291ea;}[_0x4de126(0xf1,0x1ca,0x140,0x1ad)](_0x2bf5fb){return _0x2bf5fb;}[_0x4de126(0x2a0,0x138,0x178,0x1b1)](_0x1cf26b,_0xfdec36){return resolveSessionBaseUrl(_0x1cf26b,_0xfdec36);}[_0x18ceca(0x569,0x4d4,0x4fd,0x55d)](_0x231d53,_0x2b5bc5){return resolveApiCredential(_0x231d53,_0x2b5bc5);}async[_0x4de126(0x297,0x12f,0x264,0x1af)](_0x405c3b){return await createHttpError(_0x405c3b);}},AnthropicModel=class extends RoutedModel{constructor(_0x2da847={}){const _0x29e96e={_0x239094:0x5d2,_0x43b310:0x5c0,_0x3719d9:0x5ec,_0x21164d:0x8d,_0x4c04b8:0x145,_0x543247:0x53f,_0x50795c:0x6f5,_0x43e997:0x57c,_0x46d14e:0x4dd,_0x540936:0x3f5,_0x4c1f42:0x513,_0x650d02:0x4ab,_0x2a3756:0x3eb,_0x1b7bff:0x3c4,_0x2cfba2:0x5a0,_0x400cb4:0x446,_0x812973:0x63f,_0x487bc1:0x615,_0x6b401:0x6e9,_0x48fbdc:0x68c,_0x5d20cf:0x4b8,_0x29f264:0x59b,_0x51b62d:0x537,_0x30d2db:0x527,_0x40d258:0x1a4,_0x56a67b:0x4b5,_0x4a9cfd:0x4fc,_0x44d94e:0x50f,_0x2ba4c7:0x7d,_0x442032:0x146,_0x2844df:0x111,_0x31dd18:0x1a1,_0x936ff5:0x153},_0x360316={_0x5036b0:0x10,_0x3647b8:0x1};function _0x2cab94(_0x3be569,_0x38a75a,_0x31660e,_0x2dd0b6){return _0x18ceca(_0x31660e,_0x3be569- -0x68e,_0x31660e-0xf5,_0x2dd0b6-0x1d7);}function _0x3aa78c(_0xf12086,_0x3f5e28,_0x4872e1,_0x4a241e){return _0x18ceca(_0xf12086,_0x3f5e28-_0x360316._0x5036b0,_0x4872e1-0x71,_0x4a241e-_0x360316._0x3647b8);}super({'apiKey':_0x2da847[_0x3aa78c(0x571,0x4c8,0x551,0x528)],'baseUrl':trimTrailingSlashes(_0x2da847[_0x3aa78c(_0x29e96e._0x239094,_0x29e96e._0x43b310,_0x29e96e._0x3719d9,0x581)]??_0x2cab94(-0xe4,-_0x29e96e._0x21164d,-0x2d,-_0x29e96e._0x4c04b8)),'fetch':_0x2da847[_0x2cab94(-0x152,-0x1a1,-0x1ba,-0x137)],'maxTokens':_0x2da847[_0x3aa78c(_0x29e96e._0x543247,0x60c,0x688,_0x29e96e._0x50795c)]??0x4000,'model':_0x2da847[_0x3aa78c(_0x29e96e._0x43e997,_0x29e96e._0x46d14e,_0x29e96e._0x540936,0x4d0)]??_0x3aa78c(_0x29e96e._0x4c1f42,_0x29e96e._0x650d02,_0x29e96e._0x2a3756,_0x29e96e._0x1b7bff),'reasoning':_0x2da847[_0x3aa78c(0x424,0x4b3,_0x29e96e._0x2cfba2,_0x29e96e._0x400cb4)],'providerAdapter':new AnthropicProviderAdapter({'authScheme':_0x2da847[_0x3aa78c(_0x29e96e._0x812973,_0x29e96e._0x487bc1,_0x29e96e._0x6b401,_0x29e96e._0x48fbdc)]??'x-api-key','headerResolver':_0x2da847[_0x3aa78c(_0x29e96e._0x5d20cf,_0x29e96e._0x29f264,_0x29e96e._0x51b62d,_0x29e96e._0x30d2db)],'protocolVersion':_0x2da847[_0x2cab94(-0x23a,-0x2fd,-_0x29e96e._0x40d258,-0x2c9)]??_0x3aa78c(_0x29e96e._0x56a67b,_0x29e96e._0x4a9cfd,_0x29e96e._0x44d94e,0x5e4)}),'providerSessionResolver':_0x2da847[_0x2cab94(-0x8e,-_0x29e96e._0x2ba4c7,-_0x29e96e._0x442032,-_0x29e96e._0x2844df)],'requestMutators':_0x2da847[_0x2cab94(-_0x29e96e._0x31dd18,-0x23b,-_0x29e96e._0x936ff5,-0x190)],'router':new StaticModelSurfaceRouter({'complete':ANTHROPIC_MESSAGES_SURFACE,'stream':ANTHROPIC_MESSAGES_STREAM_SURFACE}),'surfaces':createAnthropicSurfaces()});}[_0x4de126(0x1d1,0x2b6,0x2ca,0x241)](_0x2d0186,_0x2d20d8){const _0x35a134={_0x500e8c:0x3};function _0x365869(_0x1b7f63,_0x48cd2b,_0x1f5421,_0x7fb11b){return _0x4de126(_0x1f5421,_0x48cd2b-0x1b,_0x1f5421-0x197,_0x7fb11b- -0x108);}return this[_0x365869(-0x4b,0x37,-0x9e,_0x35a134._0x500e8c)](_0x2d0186,ANTHROPIC_MESSAGES_SURFACE,_0x2d20d8);}[_0x18ceca(0x52c,0x606,0x5ce,0x560)](_0x41ce63,_0x377f79){const _0x671d41={_0x9bacd:0x1ff,_0x29ab5a:0x2e4},_0x4455ff={_0x5416e3:0x398,_0x1c6d60:0x13f};function _0x56fe76(_0x5e1a4a,_0x12b582,_0x16e26c,_0x3b5b7a){return _0x18ceca(_0x3b5b7a,_0x12b582- -_0x4455ff._0x5416e3,_0x16e26c-_0x4455ff._0x1c6d60,_0x3b5b7a-0xc9);}return this[_0x56fe76(0x1b7,0x27b,_0x671d41._0x9bacd,_0x671d41._0x29ab5a)](_0x41ce63,ANTHROPIC_MESSAGES_STREAM_SURFACE,_0x377f79);}},OPENAI_CHAT_COMPLETIONS_SURFACE='openai-chat-completions',OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE='openai-chat-completions-stream',OPENAI_RESPONSES_SURFACE='openai-responses',OPENAI_RESPONSES_STREAM_SURFACE=_0x18ceca(0x4d7,0x4ff,0x448,0x4ea),OPENAI_RESPONSES_WEBSOCKET_SURFACE='openai-responses-ws',OpenAiApiError=class extends Error{[_0x18ceca(0x560,0x4c3,0x3db,0x4d2)];[_0x4de126(0x256,0x30f,0x2cc,0x2bf)];constructor(_0x30edf2,_0x557f8f,_0x9cd987){const _0x56c612={_0x1366e5:0xb5,_0x4c217e:0x2c,_0x632879:0x1c,_0x423dc7:0x88,_0x5a7ce3:0x2a},_0x54e87d={_0x280d81:0x1e2,_0x45e358:0x2db},_0x92ebcf={_0x1dab2d:0x106,_0x22c331:0x71};super(_0x9cd987),this['name']='OpenAiApiError',this[_0x3b5e15(-_0x56c612._0x1366e5,-0x179,-0xae,-0x11f)]=_0x30edf2;function _0x468839(_0x547f5e,_0x505364,_0xa7ba29,_0x796d69){return _0x4de126(_0x796d69,_0x505364-_0x92ebcf._0x1dab2d,_0xa7ba29-_0x92ebcf._0x22c331,_0xa7ba29-0x28e);}function _0x3b5e15(_0x374fdd,_0x210eb0,_0x5476ea,_0x49ed4e){return _0x4de126(_0x374fdd,_0x210eb0-_0x54e87d._0x280d81,_0x5476ea-0xd6,_0x210eb0- -_0x54e87d._0x45e358);}this[_0x3b5e15(_0x56c612._0x4c217e,-_0x56c612._0x632879,-_0x56c612._0x423dc7,_0x56c612._0x5a7ce3)]=_0x557f8f;}};function stringifySystem(_0x25ea29){const _0x4dbc51={_0x425e40:0x2a9,_0x370b57:0x3bf},_0x1583ec={_0x5d8640:0x209,_0x29fa17:0x19b};function _0x525886(_0x44e707,_0x255409,_0x5ef356,_0x4574e7){return _0x18ceca(_0x5ef356,_0x255409- -_0x1583ec._0x5d8640,_0x5ef356-0x18c,_0x4574e7-_0x1583ec._0x29fa17);}return _0x25ea29['map'](_0x583d75=>_0x583d75['text'])[_0x525886(_0x4dbc51._0x425e40,0x345,_0x4dbc51._0x370b57,0x35d)]('\x0a\x0a');}function createToolDefinitions(_0x224be2){const _0x193d79={_0x2da2dc:0x159},_0x154b0f={_0x164c33:0x266};if(_0x224be2['length']===0x0)return void 0x0;function _0x4df111(_0x5a0d72,_0x91d60e,_0x1f72df,_0x314ab6){return _0x4de126(_0x1f72df,_0x91d60e-0x1de,_0x1f72df-0x1a4,_0x5a0d72- -0x6d);}return _0x224be2[_0x4df111(_0x193d79._0x2da2dc,0x1ed,0x1bc,0x16e)](_0x372140=>{const _0x3b72f4={_0x11946a:0xbd},_0x1b7073={_0x17655b:0x345,_0x51147d:0x16c};function _0x54bd17(_0x3ed09e,_0x3adde4,_0x54d3df,_0xbb732e){return _0x4df111(_0x3ed09e-_0x1b7073._0x17655b,_0x3adde4-_0x1b7073._0x51147d,_0x3adde4,_0xbb732e-0xef);}function _0x592521(_0x5d974a,_0xacfcd8,_0x1cc77e,_0x298b2f){return _0x4df111(_0x5d974a-0x1c2,_0xacfcd8-_0x3b72f4._0x11946a,_0xacfcd8,_0x298b2f-0x1aa);}return{'type':'function','function':{'name':_0x372140['name'],'description':_0x372140[_0x592521(0x29b,0x22b,0x33e,0x1c6)],'parameters':_0x372140[_0x592521(_0x154b0f._0x164c33,0x289,0x201,0x202)]}};});}function isImageToolResultBlock(_0x5227d4){const _0x1c1615={_0x50b2e5:0x2db,_0x495271:0xb,_0x48c0ed:0x69,_0x3af624:0x1c,_0x38983f:0x207,_0x5dcf94:0x233,_0x270688:0x439,_0x2073ed:0x3db,_0x5834ee:0x35f,_0x45f6ad:0x376,_0x2eaf06:0x1bd,_0x12d1a0:0x1ef,_0xbe7a2e:0x15a,_0x26b9d4:0x2e9,_0x282bc4:0xdb,_0x38318e:0x126,_0x39f900:0x1da,_0x54982c:0x2d2,_0x1ec0ff:0x2b7,_0x1a2220:0x2ed,_0x2c8262:0x174},_0x39d61f={_0x12724f:0x40},_0x3a9e33={_0x11f28b:0x270,_0x514afe:0x177};function _0x582229(_0x139069,_0xf9453d,_0x4f7f5a,_0x24841a){return _0x18ceca(_0x139069,_0x4f7f5a- -_0x3a9e33._0x11f28b,_0x4f7f5a-_0x3a9e33._0x514afe,_0x24841a-0x1c5);}if(typeof _0x5227d4!=='object'||_0x5227d4===null||Array[_0x582229(0x2ac,0x416,0x331,_0x1c1615._0x50b2e5)](_0x5227d4))return![];function _0x544818(_0x43de6f,_0x2b049f,_0x13a3a0,_0x553fd2){return _0x4de126(_0x2b049f,_0x2b049f-_0x39d61f._0x12724f,_0x13a3a0-0x5a,_0x553fd2- -0x221);}const _0x2c4cf4=_0x5227d4;return _0x2c4cf4['type']===_0x544818(-_0x1c1615._0x495271,-_0x1c1615._0x48c0ed,-0x63,_0x1c1615._0x3af624)&&_0x2c4cf4[_0x582229(0x1bd,0x252,0x1ef,_0x1c1615._0x38983f)]?.[_0x582229(0x156,_0x1c1615._0x5dcf94,0x209,0x212)]===_0x582229(_0x1c1615._0x270688,_0x1c1615._0x2073ed,_0x1c1615._0x5834ee,_0x1c1615._0x45f6ad)&&typeof _0x2c4cf4[_0x582229(_0x1c1615._0x2eaf06,0x271,_0x1c1615._0x12d1a0,_0x1c1615._0xbe7a2e)][_0x582229(0x191,_0x1c1615._0x26b9d4,0x213,0x139)]===_0x544818(-0x3e,-0x1a7,-_0x1c1615._0x282bc4,-0xfc)&&typeof _0x2c4cf4[_0x544818(-0xba,-_0x1c1615._0x38318e,-_0x1c1615._0x39f900,-0x123)][_0x582229(_0x1c1615._0x54982c,_0x1c1615._0x1ec0ff,0x204,0x140)]===_0x582229(0x270,_0x1c1615._0x1a2220,0x216,_0x1c1615._0x2c8262);}function getToolResultText(_0x3b482b){const _0x513d9a={_0x5f35d1:0x3d,_0x3eba7:0xfd,_0x345566:0x42,_0xc491fb:0x189,_0xd12bf8:0x4c,_0x419225:0xa6,_0x344c2c:0x109,_0x236be5:0x1c6,_0x23886f:0x1d7,_0x20546f:0x27f,_0x2c48c9:0x2d1,_0x42a508:0xa7,_0x5c4116:0x36},_0x33a9b2={_0x189fc7:0x4a6,_0xf4813b:0x136,_0x19e3a5:0x137},_0x571077={_0x21a2fe:0x18a,_0x29af44:0x1de};if(typeof _0x3b482b===_0x16c4ec(_0x513d9a._0x5f35d1,_0x513d9a._0x3eba7,_0x513d9a._0x345566,_0x513d9a._0xc491fb))return _0x3b482b;function _0x16c4ec(_0x405972,_0x249995,_0x3edf6a,_0x28f6de){return _0x4de126(_0x405972,_0x249995-_0x571077._0x21a2fe,_0x3edf6a-_0x571077._0x29af44,_0x249995- -0x28);}const _0x3cfdc0=_0x3b482b['filter'](_0x8255f2=>{return typeof _0x8255f2==='object'&&_0x8255f2!==null&&_0x8255f2['type']==='text';})['map'](_0x39314f=>_0x39314f[_0x16c4ec(0x268,0x249,0x31e,0x279)])[_0x5dddb1(_0x513d9a._0xd12bf8,0xa8,_0x513d9a._0x419225,_0x513d9a._0x344c2c)]('\x0a\x0a')[_0x5dddb1(_0x513d9a._0x236be5,0x130,0x82,0x17f)]();function _0x5dddb1(_0x21f200,_0x4998f0,_0x273c7a,_0x53122c){return _0x18ceca(_0x273c7a,_0x4998f0- -_0x33a9b2._0x189fc7,_0x273c7a-_0x33a9b2._0xf4813b,_0x53122c-_0x33a9b2._0x19e3a5);}return _0x3cfdc0[_0x16c4ec(_0x513d9a._0x23886f,_0x513d9a._0x20546f,_0x513d9a._0x2c48c9,0x237)]>0x0?_0x3cfdc0:_0x5dddb1(_0x513d9a._0x42a508,_0x513d9a._0x5c4116,-0x24,_0x513d9a._0x5c4116);}function getToolResultImages(_0x29a618){const _0xcf639e={_0x4fa634:0x4a,_0x21a3b2:0xb0,_0x463e91:0x25},_0x1b3a71={_0x56c5b8:0x184};function _0x3773ba(_0x2b05fe,_0x594e54,_0x222394,_0x1808f9){return _0x4de126(_0x594e54,_0x594e54-_0x1b3a71._0x56c5b8,_0x222394-0x83,_0x2b05fe- -0x15a);}return Array['isArray'](_0x29a618)?_0x29a618[_0x3773ba(-_0xcf639e._0x4fa634,0x78,-_0xcf639e._0x21a3b2,-_0xcf639e._0x463e91)](isImageToolResultBlock):[];}function parseToolInput2(_0x4c035f){const _0x309934={_0x4d2e13:0x406,_0x87ac80:0x4bf,_0x576326:0x45e,_0x2c7702:0x3ce},_0x530f8d={_0x2b1f51:0x9f,_0x80b5c8:0x20f},_0x231aa7={_0x35bb80:0x15a,_0x3aed81:0x379};if(_0x4c035f[_0x190126(_0x309934._0x4d2e13,0x4b6,_0x309934._0x87ac80,0x586)]===0x0)return{};function _0x10ae4d(_0x27b5c7,_0x5566ef,_0x48012b,_0x556d91){return _0x4de126(_0x556d91,_0x5566ef-0x12b,_0x48012b-_0x231aa7._0x35bb80,_0x48012b-_0x231aa7._0x3aed81);}function _0x190126(_0x3ea58a,_0x47ab96,_0x2fdfa7,_0x1b80f3){return _0x4de126(_0x3ea58a,_0x47ab96-_0x530f8d._0x2b1f51,_0x2fdfa7-0x1b2,_0x47ab96-_0x530f8d._0x80b5c8);}try{return JSON[_0x190126(_0x309934._0x576326,0x39c,0x2fa,_0x309934._0x2c7702)](_0x4c035f);}catch{return _0x4c035f;}}function isResponsesReasoningItem(_0x57017f){const _0x85cd8c={_0x570207:0x47a,_0x12d17f:0x51c,_0x3080a7:0x46d,_0xa9fa55:0x473,_0x5535a3:0x3de,_0x2973be:0x491,_0x483c13:0x3c3,_0x2363d5:0x420,_0x4da87c:0x3de,_0x3b3694:0x4ab,_0x44162e:0x3d2,_0x541bb5:0x408,_0x29f882:0x4b5},_0x3a71ea={_0x18a35f:0x80,_0x2444c0:0x6b};function _0x192dd6(_0x3eda4f,_0x53f345,_0x23ab4c,_0x40feab){return _0x4de126(_0x40feab,_0x53f345-0x91,_0x23ab4c-0xfe,_0x23ab4c- -0xe8);}function _0x218892(_0x3b4021,_0x529298,_0x32885c,_0x283688){return _0x18ceca(_0x529298,_0x32885c- -0x9b,_0x32885c-_0x3a71ea._0x18a35f,_0x283688-_0x3a71ea._0x2444c0);}return typeof _0x57017f===_0x218892(_0x85cd8c._0x570207,_0x85cd8c._0x12d17f,_0x85cd8c._0x3080a7,0x54f)&&_0x57017f!==null&&_0x218892(0x47f,_0x85cd8c._0xa9fa55,_0x85cd8c._0x5535a3,_0x85cd8c._0x2973be)in _0x57017f&&_0x57017f[_0x218892(_0x85cd8c._0x483c13,_0x85cd8c._0x2363d5,_0x85cd8c._0x4da87c,0x3dd)]===_0x218892(_0x85cd8c._0x3b3694,_0x85cd8c._0x44162e,_0x85cd8c._0x541bb5,_0x85cd8c._0x29f882);}function isResponsesMessageItem(_0x30253a){const _0x12ef0d={_0x144ff8:0xe7,_0x27619f:0x18a,_0x50736b:0x1f6,_0xb178fb:0x1bd,_0x431ad2:0x2a1,_0x1c95bd:0x1a1,_0x318666:0x1bb,_0x44c00d:0x3ba,_0x1a033e:0x3d6},_0x566a6c={_0x35a42e:0x6a},_0x1a78bc={_0x2e4382:0x1dd};function _0x2d5dcf(_0x2359be,_0x51a267,_0x45b515,_0x5b8959){return _0x18ceca(_0x5b8959,_0x2359be- -0x66f,_0x45b515-_0x1a78bc._0x2e4382,_0x5b8959-0xc5);}function _0x11eb4b(_0xe45729,_0x436fa8,_0x86b2ed,_0x118b07){return _0x4de126(_0x86b2ed,_0x436fa8-_0x566a6c._0x35a42e,_0x86b2ed-0x1f3,_0xe45729-0x1b1);}return typeof _0x30253a===_0x2d5dcf(-0x167,-_0x12ef0d._0x144ff8,-_0x12ef0d._0x27619f,-0x123)&&_0x30253a!==null&&_0x2d5dcf(-_0x12ef0d._0x50736b,-0x20b,-_0x12ef0d._0xb178fb,-0x10a)in _0x30253a&&_0x30253a[_0x2d5dcf(-0x1f6,-_0x12ef0d._0x431ad2,-_0x12ef0d._0x1c95bd,-_0x12ef0d._0x318666)]===_0x11eb4b(0x392,0x442,_0x12ef0d._0x44c00d,_0x12ef0d._0x1a033e);}function isResponsesFunctionCallItem(_0x31b27a){const _0x6e73c2={_0x1159ec:0x3c2,_0x2023c2:0x393},_0x3b5257={_0x5e1c2c:0x215,_0x3007a3:0x1b3},_0x111374={_0x3f7505:0x1f,_0x39054c:0x1c4};function _0x195f7d(_0x2b47bb,_0x89bb4a,_0x23921a,_0x239e85){return _0x4de126(_0x23921a,_0x89bb4a-_0x111374._0x3f7505,_0x23921a-0x10e,_0x89bb4a-_0x111374._0x39054c);}function _0x57fdf7(_0x15cf62,_0x1832cf,_0x202a03,_0x47d02d){return _0x18ceca(_0x202a03,_0x1832cf- -_0x3b5257._0x5e1c2c,_0x202a03-0xd2,_0x47d02d-_0x3b5257._0x3007a3);}return typeof _0x31b27a==='object'&&_0x31b27a!==null&&_0x195f7d(0x27d,0x2dc,0x363,0x288)in _0x31b27a&&_0x31b27a[_0x195f7d(0x290,0x2dc,0x312,0x349)]===_0x195f7d(0x36b,_0x6e73c2._0x1159ec,0x4af,_0x6e73c2._0x2023c2);}function createContentBlocks(_0x4a260a,_0x12ea75,_0xbd25f9){const _0x3b37fd={_0x153257:0x64,_0x5e4b8e:0x28,_0x6e5ec2:0xef,_0x20ea71:0xb5,_0x349fde:0x8f,_0x581716:0x3ef,_0x300e28:0x4b4,_0x35cbd5:0x32c,_0x1baecf:0x453,_0x233402:0x4d7,_0x20adaa:0x50d,_0x4c16d7:0x7d,_0x496426:0xe,_0xa88ea3:0xdb,_0x8ee422:0xd,_0x3b8e11:0x3e6,_0x4c5206:0x458,_0x489782:0x51f,_0x1d5e74:0x93,_0x131a71:0xe7,_0x22642c:0x442,_0x4ca30d:0x4c6,_0x43af96:0x495,_0x3fa37b:0xbb,_0x4213b4:0x8a,_0x38e5c6:0x4d1,_0x318c86:0x4ba,_0x2c6367:0x492,_0x207105:0x5b,_0x5d2d8d:0xca,_0x2525c7:0x491,_0x1b72c6:0x50a,_0x5406b7:0x442,_0x287006:0x42c,_0x336972:0x35b,_0x4c5067:0x3f0,_0x123e67:0x430},_0x1a9827={_0x2b20fe:0x5e0,_0x271c42:0x22},_0x4a6cda={_0x17d9bd:0x69,_0xe7706a:0x15e,_0x2bb323:0x25c},_0xfaeb0a=[];function _0x564ce5(_0x45f134,_0x1fc70b,_0x34039c,_0xd6711d){return _0x4de126(_0xd6711d,_0x1fc70b-_0x4a6cda._0x17d9bd,_0x34039c-_0x4a6cda._0xe7706a,_0x45f134-_0x4a6cda._0x2bb323);}_0xbd25f9&&_0xbd25f9[_0x3df28e(-_0x3b37fd._0x153257,_0x3b37fd._0x5e4b8e,-0x53,_0x3b37fd._0x6e5ec2)]>0x0&&_0xfaeb0a[_0x3df28e(_0x3b37fd._0x20ea71,-0x4,0xe4,-_0x3b37fd._0x349fde)]({'type':_0x564ce5(_0x3b37fd._0x581716,_0x3b37fd._0x300e28,_0x3b37fd._0x35cbd5,_0x3b37fd._0x1baecf),'summary':[],'text':_0xbd25f9});_0x4a260a['length']>0x0&&_0xfaeb0a[_0x564ce5(_0x3b37fd._0x233402,0x435,_0x3b37fd._0x20adaa,0x579)]({'type':_0x3df28e(-_0x3b37fd._0x4c16d7,-_0x3b37fd._0x496426,-_0x3b37fd._0xa88ea3,_0x3b37fd._0x8ee422),'text':_0x4a260a});function _0x3df28e(_0x32116e,_0x92a5ee,_0x3c11c9,_0x576a2a){return _0x18ceca(_0x32116e,_0x92a5ee- -_0x1a9827._0x2b20fe,_0x3c11c9-_0x1a9827._0x271c42,_0x576a2a-0xd8);}for(const _0x3c2b4f of _0x12ea75){if(_0x3c2b4f['id'][_0x564ce5(0x4d1,_0x3b37fd._0x3b8e11,_0x3b37fd._0x4c5206,_0x3b37fd._0x489782)]()[_0x3df28e(-_0x3b37fd._0x1d5e74,0x28,_0x3b37fd._0x131a71,0x2c)]===0x0||_0x3c2b4f[_0x564ce5(_0x3b37fd._0x22642c,_0x3b37fd._0x4ca30d,0x4e0,_0x3b37fd._0x43af96)][_0x3df28e(-0x186,-0xe5,-_0x3b37fd._0x3fa37b,-_0x3b37fd._0x4213b4)][_0x564ce5(_0x3b37fd._0x38e5c6,_0x3b37fd._0x318c86,_0x3b37fd._0x2c6367,0x3f9)]()[_0x3df28e(_0x3b37fd._0x207105,0x28,_0x3b37fd._0x5d2d8d,0xf7)]===0x0)continue;_0xfaeb0a['push']({'type':'tool_use','id':_0x3c2b4f['id'],'name':_0x3c2b4f[_0x564ce5(0x442,_0x3b37fd._0x2525c7,_0x3b37fd._0x1b72c6,0x4a0)]['name'],'input':parseToolInput2(_0x3c2b4f[_0x564ce5(_0x3b37fd._0x5406b7,0x4ac,_0x3b37fd._0x287006,_0x3b37fd._0x336972)][_0x564ce5(_0x3b37fd._0x4c5067,_0x3b37fd._0x123e67,0x445,0x319)])});}return _0xfaeb0a;}function createUsage(_0x36b31b){const _0x790e73={_0x1594f0:0x3ed,_0x2d67df:0x453,_0x4c62b1:0x3fa,_0x55cdd0:0x514,_0x369ca4:0x4e2,_0xb0809e:0x47e,_0x465c59:0x597,_0x2b5cfa:0x4ac,_0x203ae7:0x51d,_0x53bdcd:0x3a7,_0x3ef9d8:0x3d1,_0x1ed3c5:0x4ae,_0x50fe53:0xeb,_0xed8da6:0xb8},_0x279dcf={_0x34b0f8:0x674},_0x5e775a={_0x2c53a1:0xb3,_0x4dfdb4:0x49};function _0x35b45c(_0x34434b,_0x1e0b8d,_0x1823f4,_0x319957){return _0x4de126(_0x319957,_0x1e0b8d-_0x5e775a._0x2c53a1,_0x1823f4-_0x5e775a._0x4dfdb4,_0x1823f4-0x284);}function _0x2e23a8(_0xcdd8b,_0x496706,_0x1e8f96,_0x2ccb51){return _0x18ceca(_0x496706,_0xcdd8b- -_0x279dcf._0x34b0f8,_0x1e8f96-0x1dd,_0x2ccb51-0x1e4);}return{'inputTokens':_0x36b31b?.[_0x35b45c(_0x790e73._0x1594f0,0x485,_0x790e73._0x2d67df,_0x790e73._0x4c62b1)]??0x0,'outputTokens':_0x36b31b?.[_0x35b45c(_0x790e73._0x55cdd0,0x4c5,_0x790e73._0x369ca4,0x476)]??0x0,..._0x36b31b?.['completion_tokens_details']?.[_0x35b45c(_0x790e73._0xb0809e,_0x790e73._0x465c59,_0x790e73._0x2b5cfa,_0x790e73._0x203ae7)]!==void 0x0?{'reasoningTokens':_0x36b31b[_0x35b45c(_0x790e73._0x53bdcd,0x456,_0x790e73._0x3ef9d8,_0x790e73._0x1ed3c5)][_0x2e23a8(-_0x790e73._0x50fe53,-0x125,-_0x790e73._0xed8da6,-0x1a8)]}:{}};}function resolveReasoningVisibility2(_0x558dc4){const _0x205d3a={_0x45b6e8:0x169,_0x55c152:0x128},_0x331348={_0x2ffebf:0x19,_0x5b1acb:0x26a},_0x153c7e={_0x46fefd:0x58,_0x3325d2:0xc4};function _0x40bec2(_0x49737d,_0x17205b,_0x58df23,_0x2cb0a4){return _0x4de126(_0x49737d,_0x17205b-_0x153c7e._0x46fefd,_0x58df23-_0x153c7e._0x3325d2,_0x2cb0a4-0x392);}function _0x35e4dc(_0x40114d,_0x47e332,_0x2b47a4,_0x1978d4){return _0x4de126(_0x1978d4,_0x47e332-0x28,_0x2b47a4-_0x331348._0x2ffebf,_0x2b47a4- -_0x331348._0x5b1acb);}return _0x558dc4[_0x35e4dc(-_0x205d3a._0x45b6e8,-0xd9,-_0x205d3a._0x55c152,-0x19e)]?.['visibility']??_0x35e4dc(-0x13d,0x71,-0x73,-0xed);}function isUserVisibleReasoning(_0x2114e4){const _0x3d194e={_0x2151b4:0x32,_0x3b4d5d:0x9d,_0x129010:0xd6};function _0x48dfc6(_0x203004,_0x523b0c,_0x2aed43,_0x2e808f){return _0x4de126(_0x2e808f,_0x523b0c-0x1e9,_0x2aed43-0xc1,_0x2aed43- -0x2d9);}return resolveOpenAiReasoningConfig(_0x2114e4['reasoning'])!==void 0x0&&resolveReasoningVisibility2(_0x2114e4)===_0x48dfc6(-_0x3d194e._0x2151b4,-_0x3d194e._0x3b4d5d,-0xe2,-_0x3d194e._0x129010);}function createChatRequestBody(_0x12f2ec,_0x5452c7){const _0x5a419d={_0x2c7fa5:0x14a,_0x3351b7:0x168,_0x1fcc0a:0x6,_0x4a7b23:0xf5,_0x227915:0x3a,_0xd335e2:0x52,_0x23292d:0x128,_0x28b107:0xa1,_0x53aafb:0xaa,_0x184339:0x119,_0x432274:0x189,_0x3407ab:0x123,_0x25967f:0x1e4,_0x328f2d:0x1e3,_0x2988cd:0xb7,_0x4d2539:0x17,_0x3b0262:0xd7,_0x305846:0x112,_0x1da535:0x1fd,_0x59793a:0x1ee,_0x270f1b:0x292,_0x3e4fc2:0x118,_0x19638e:0x30,_0x27128c:0x4d,_0xb12bee:0xa0,_0x2b99aa:0x26,_0x194f38:0x25,_0x191050:0xb5,_0x326e02:0x11d,_0x486bcf:0x10,_0x3436de:0x57,_0x114006:0x34,_0x43fa62:0x1c9,_0x4c24bb:0x189,_0x27bcb8:0x124,_0x237946:0x15a,_0x6e67a6:0x1b0,_0xbd4472:0x104,_0x48dc52:0x17f,_0x3573fb:0x1d8,_0x50732:0x29,_0x2d62fc:0x115,_0x3e1bd6:0xe8,_0x30ad98:0x21a,_0x249460:0x1fb,_0x20ef2a:0x18e,_0x434f43:0x119,_0x2ba925:0x127,_0x3d13fb:0x3,_0x3c47e0:0x8b,_0x1294ba:0x5c,_0xe8e905:0x154,_0x2070c3:0x4e,_0x41ae11:0xbb,_0x46590e:0xe5,_0x435e30:0x195,_0x19bd10:0x1ce,_0xff50da:0x1dc,_0x265f0e:0x18b,_0x3abff0:0x189,_0x562539:0x140,_0x2490f7:0x10f,_0x480344:0x144,_0x1a6913:0x173,_0x65cf62:0xbd,_0x65b3f:0x154,_0x953654:0x88,_0x5b67de:0x70,_0x535278:0x83,_0x591bd8:0xfe,_0x33e1bd:0x80,_0x1b9e3d:0x14,_0x5a3d70:0xb2,_0xcb8529:0x78,_0x492ae9:0xdb,_0x2a3e12:0xb3,_0x912016:0x180,_0x305e68:0x21f,_0x3d804a:0x13a,_0x142954:0x20e,_0x5dc5d3:0xdc,_0x20f116:0xe9,_0x483d29:0xd2,_0x30b28e:0x12a,_0x5d0f7e:0x192,_0x5694f7:0xd5,_0x1b2312:0xda,_0x55243a:0x159,_0x2450cd:0xc4,_0x557a77:0x123,_0x1413d3:0x1ba,_0x3f6320:0x1b2,_0x2f1eb8:0x1c5,_0x859ab8:0x12d,_0x22ebb1:0x156,_0x3d161d:0xc7,_0x48b7ff:0x103,_0x4fd164:0x1ae,_0x201e0c:0x274},_0x4f0b52={_0x4cd6f0:0x330,_0x58c3d0:0x50c,_0x5c06db:0x4d7,_0x330f05:0x610,_0x32cc81:0x5c4,_0x3c916b:0x5c5,_0x1fc07e:0x651,_0x558e01:0x574,_0x2e3c00:0x64d,_0x1d2b69:0x57f,_0x44d939:0x48f,_0xb2862e:0x542,_0x5a0f16:0x5e7,_0x4915c2:0x5c4,_0x21f450:0x4d8,_0x3f9790:0x548,_0x35b6ba:0x48b,_0x5a3d31:0x4a1,_0x2570b8:0x566,_0x43102b:0x5c4,_0x54ae3d:0x404,_0x3ae910:0x442,_0x592f69:0x436,_0x129981:0x608,_0x127870:0x5ab,_0x50c68f:0x62c,_0x51f064:0x58c,_0x424d9e:0x521,_0x39eb9b:0x543,_0x5915c8:0x448,_0x4d3889:0x52d,_0x1150a0:0x50d,_0x3e8c96:0x42d,_0x3cef12:0x478,_0x985aa4:0x3ff,_0x3cde2a:0x5ab,_0x1a175e:0x68d},_0x314121={_0x349294:0xd1,_0x18dd4c:0xd0,_0x34eb16:0x2a1},_0x115545={_0x1b76eb:0x11d,_0x3a0ee0:0x8d},_0x2c8325=[],_0x530b39=stringifySystem(_0x12f2ec[_0x3c15b5(-_0x5a419d._0x2c7fa5,-0xd0,-0xa,-_0x5a419d._0x3351b7)]);function _0x2bf2c7(_0x2ec010,_0x5828d6,_0x3beab8,_0x589041){return _0x4de126(_0x5828d6,_0x5828d6-_0x115545._0x1b76eb,_0x3beab8-0x18e,_0x3beab8- -_0x115545._0x3a0ee0);}function _0x3c15b5(_0x501ab8,_0x1cfabc,_0x57f659,_0x422f6a){return _0x4de126(_0x501ab8,_0x1cfabc-_0x314121._0x349294,_0x57f659-_0x314121._0x18dd4c,_0x1cfabc- -_0x314121._0x34eb16);}_0x530b39[_0x3c15b5(0x84,_0x5a419d._0x1fcc0a,0x52,_0x5a419d._0x4a7b23)]>0x0&&_0x2c8325[_0x3c15b5(-_0x5a419d._0x227915,-0x26,_0x5a419d._0xd335e2,0x7)]({'role':'system','content':_0x530b39});for(const _0x1c7068 of _0x12f2ec[_0x2bf2c7(0x120,0x263,0x1a0,_0x5a419d._0x23292d)]){const _0x12a46e=[],_0xbac543=[],_0x1da394=[],_0x560f29=()=>{const _0x3ff447={_0x2e9fa6:0x5a5,_0x45d941:0x96},_0x1dda86={_0xb41843:0xa6,_0x3a0902:0x73};if(_0x1c7068[_0x5ce91e(0x41d,0x41c,0x460,_0x4f0b52._0x4cd6f0)]===_0x5ce91e(0x510,_0x4f0b52._0x58c3d0,0x49d,_0x4f0b52._0x5c06db)){if(_0x12a46e[_0x1a34c3(_0x4f0b52._0x330f05,0x647,_0x4f0b52._0x32cc81,_0x4f0b52._0x3c916b)]===0x0&&_0xbac543[_0x1a34c3(_0x4f0b52._0x1fc07e,_0x4f0b52._0x558e01,_0x4f0b52._0x32cc81,_0x4f0b52._0x2e3c00)]===0x0)return;_0x2c8325[_0x5ce91e(_0x4f0b52._0x1d2b69,_0x4f0b52._0x44d939,_0x4f0b52._0x32cc81,0x66c)]({'role':_0x5ce91e(0x510,0x48c,0x5db,_0x4f0b52._0xb2862e),'content':_0x12a46e[_0x1a34c3(_0x4f0b52._0x5a0f16,0x679,_0x4f0b52._0x4915c2,_0x4f0b52._0x21f450)]>0x0?_0x12a46e[_0x5ce91e(0x4f1,0x550,0x48b,_0x4f0b52._0x3f9790)]('\x0a\x0a'):null,..._0xbac543['length']>0x0?{'tool_calls':_0xbac543[_0x1a34c3(_0x4f0b52._0x35b6ba,0x59e,0x52c,_0x4f0b52._0x5a3d31)](0x0)}:{}}),_0x12a46e[_0x1a34c3(_0x4f0b52._0x2570b8,0x670,_0x4f0b52._0x43102b,0x68d)]=0x0;return;}if(_0x1c7068[_0x1a34c3(_0x4f0b52._0x54ae3d,_0x4f0b52._0x3ae910,_0x4f0b52._0x592f69,0x351)]===_0x5ce91e(0x5bc,0x68d,0x69b,_0x4f0b52._0x129981)){if(_0x1da394[_0x5ce91e(_0x4f0b52._0x127870,_0x4f0b52._0x50c68f,_0x4f0b52._0x127870,_0x4f0b52._0x51f064)]===0x0)return;const _0x4f536b=_0x1da394['some'](_0x34449f=>_0x34449f[_0x5ce91e(0x41c,0x4cb,0x4ea,0x356)]==='image_url');_0x2c8325[_0x5ce91e(0x57f,_0x4f0b52._0x424d9e,0x61c,0x599)]({'role':_0x1a34c3(_0x4f0b52._0x39eb9b,0x56d,0x5d5,0x6a5),'content':_0x4f536b?_0x1da394['splice'](0x0):_0x1da394[_0x1a34c3(_0x4f0b52._0x5915c8,_0x4f0b52._0x4d3889,0x52c,0x4bb)](0x0)[_0x1a34c3(0x44d,_0x4f0b52._0x1150a0,_0x4f0b52._0x3e8c96,_0x4f0b52._0x3cef12)](_0x158d77=>_0x158d77['type']==='text')[_0x5ce91e(0x4ca,0x403,_0x4f0b52._0x985aa4,0x52b)](_0x3dce6d=>_0x3dce6d[_0x1a34c3(0x4fb,0x558,0x58e,0x4f2)])['join']('\x0a\x0a')});return;}if(_0x12a46e[_0x5ce91e(_0x4f0b52._0x3cde2a,0x5df,0x68d,_0x4f0b52._0x1a175e)]===0x0)return;_0x2c8325['push']({'role':_0x1c7068['role'],'content':_0x12a46e['join']('\x0a\x0a')});function _0x1a34c3(_0x54bd36,_0x156400,_0x16f0ab,_0x82ae3d){return _0x3c15b5(_0x54bd36,_0x16f0ab-0x5be,_0x16f0ab-_0x1dda86._0xb41843,_0x82ae3d-_0x1dda86._0x3a0902);}function _0x5ce91e(_0x4ee870,_0x2d0d34,_0x304bc6,_0x11f95e){return _0x3c15b5(_0x11f95e,_0x4ee870-_0x3ff447._0x2e9fa6,_0x304bc6-_0x3ff447._0x45d941,_0x11f95e-0x190);}_0x12a46e[_0x1a34c3(0x63a,0x4e7,0x5c4,0x68b)]=0x0;};for(const _0xeb68ae of normalizeContent(_0x1c7068[_0x3c15b5(-0x12e,-_0x5a419d._0x28b107,-_0x5a419d._0x3351b7,-_0x5a419d._0x53aafb)])){if(_0xeb68ae[_0x3c15b5(-_0x5a419d._0x184339,-0x189,-_0x5a419d._0x432274,-0x1ac)]===_0x2bf2c7(_0x5a419d._0x3407ab,0x291,_0x5a419d._0x25967f,_0x5a419d._0x328f2d)){_0x1c7068['role']===_0x3c15b5(-_0x5a419d._0x2988cd,_0x5a419d._0x4d2539,_0x5a419d._0x3b0262,0x9)?_0x1da394[_0x2bf2c7(_0x5a419d._0x305846,_0x5a419d._0x1da535,_0x5a419d._0x59793a,_0x5a419d._0x270f1b)]({'type':_0x2bf2c7(0x20f,_0x5a419d._0x3e4fc2,0x1e4,0x1bc),'text':_0xeb68ae[_0x3c15b5(-0x37,-_0x5a419d._0x19638e,-_0x5a419d._0x27128c,-_0x5a419d._0xb12bee)]}):_0x12a46e[_0x3c15b5(-0x7f,-_0x5a419d._0x2b99aa,-_0x5a419d._0x194f38,_0x5a419d._0x191050)](_0xeb68ae[_0x3c15b5(-_0x5a419d._0x326e02,-0x30,-0xac,_0x5a419d._0x486bcf)]);continue;}if(_0x1c7068['role']===_0x3c15b5(0xf3,0x17,_0x5a419d._0x3436de,-_0x5a419d._0x114006)&&_0xeb68ae[_0x3c15b5(-_0x5a419d._0x43fa62,-_0x5a419d._0x4c24bb,-_0x5a419d._0x27bcb8,-0x151)]===_0x2bf2c7(_0x5a419d._0x237946,0x1d6,_0x5a419d._0x6e67a6,_0x5a419d._0xbd4472)){_0x1da394['push']({'type':'image_url','image_url':{'url':'data:'+_0xeb68ae['source'][_0x3c15b5(-0x135,-_0x5a419d._0x48dc52,-_0x5a419d._0x3573fb,-0x198)]+_0x2bf2c7(_0x5a419d._0x50732,0x196,_0x5a419d._0x2d62fc,_0x5a419d._0x3e1bd6)+_0xeb68ae[_0x3c15b5(-_0x5a419d._0x30ad98,-0x1a3,-0x144,-_0x5a419d._0x249460)][_0x3c15b5(-0x125,-_0x5a419d._0x20ef2a,-_0x5a419d._0x434f43,-0xc0)]}});continue;}if(_0xeb68ae[_0x2bf2c7(_0x5a419d._0x2ba925,-_0x5a419d._0x3d13fb,_0x5a419d._0x3c47e0,0x15d)]===_0x3c15b5(-0x1c2,-0x112,-0xaa,-0x191)){_0xbac543[_0x3c15b5(-0xc3,-0x26,-_0x5a419d._0x1294ba,-0xd0)]({'id':_0xeb68ae['id'],'type':'function','function':{'name':_0xeb68ae[_0x2bf2c7(0x143,0xd2,0x10d,_0x5a419d._0xe8e905)],'arguments':JSON[_0x3c15b5(-0x108,-_0x5a419d._0x2070c3,-_0x5a419d._0x41ae11,-_0x5a419d._0x46590e)](_0xeb68ae[_0x2bf2c7(0x14a,_0x5a419d._0x435e30,_0x5a419d._0x19bd10,_0x5a419d._0xff50da)]??{})}});continue;}if(_0xeb68ae[_0x3c15b5(-_0x5a419d._0x265f0e,-_0x5a419d._0x3abff0,-0x26e,-0x1c0)]!==_0x3c15b5(-_0x5a419d._0x562539,-0xa9,-0x7b,-0x33))continue;_0x560f29(),_0x2c8325['push']({'role':_0x2bf2c7(_0x5a419d._0x326e02,0x55,_0x5a419d._0x2490f7,0xca),'content':getToolResultText(_0xeb68ae[_0x2bf2c7(0xaa,_0x5a419d._0x480344,_0x5a419d._0x1a6913,_0x5a419d._0x65cf62)]),'tool_call_id':_0xeb68ae[_0x2bf2c7(_0x5a419d._0x65b3f,0xa8,0x162,0x1e4)]});const _0x20c562=getToolResultImages(_0xeb68ae['content']);_0x20c562[_0x3c15b5(-_0x5a419d._0x953654,0x6,-0x9c,-_0x5a419d._0x5b67de)]>0x0&&_0x2c8325['push']({'role':_0x3c15b5(-0x8f,_0x5a419d._0x4d2539,_0x5a419d._0x535278,_0x5a419d._0x591bd8),'content':[{'type':'text','text':_0x3c15b5(-0x37,-_0x5a419d._0x33e1bd,-0x15b,-_0x5a419d._0x1b9e3d)+_0xeb68ae[_0x3c15b5(-0x16,-_0x5a419d._0x5a3d70,-0x14,-0x77)]+'.'},..._0x20c562[_0x3c15b5(-_0x5a419d._0xcb8529,-_0x5a419d._0x492ae9,-0x2,-_0x5a419d._0x2a3e12)](_0x11afaf=>({'type':_0x3c15b5(-0x43,0x23,0x26,0x43),'image_url':{'url':_0x2bf2c7(-0x71,-0x3e,0x5f,0xb1)+_0x11afaf[_0x3c15b5(-0x277,-0x1a3,-0xff,-0x1f5)][_0x2bf2c7(-0x40,-0x2d,0x95,0x8d)]+_0x3c15b5(-0x1a6,-0xff,-0x131,-0x15)+_0x11afaf[_0x3c15b5(-0xc2,-0x1a3,-0x105,-0x148)]['data']}}))]});}_0x560f29();}const _0x1d58dd=resolveOpenAiReasoningConfig(_0x12f2ec[_0x3c15b5(-0x155,-0x15f,-_0x5a419d._0x912016,-_0x5a419d._0x305e68)]);return{'model':_0x12f2ec['model'],'messages':_0x2c8325,'stream':_0x5452c7,..._0x1d58dd?{'max_completion_tokens':_0x12f2ec[_0x2bf2c7(0x1f4,_0x5a419d._0x3d804a,_0x5a419d._0x142954,0x267)]}:{'max_tokens':_0x12f2ec[_0x3c15b5(_0x5a419d._0x5dc5d3,-_0x5a419d._0x1fcc0a,-0x4d,-_0x5a419d._0x3c47e0)]},..._0x1d58dd?.['effort']?{'reasoning_effort':_0x1d58dd[_0x2bf2c7(_0x5a419d._0x20f116,_0x5a419d._0x483d29,_0x5a419d._0x30b28e,_0x5a419d._0x5d0f7e)]}:{},...createToolDefinitions(_0x12f2ec[_0x3c15b5(-_0x5a419d._0x5694f7,-0x8d,-_0x5a419d._0x1b2312,-0x146)])?{'tools':createToolDefinitions(_0x12f2ec[_0x2bf2c7(_0x5a419d._0x55243a,0xb0,0x187,0x25e)])}:{},..._0x12f2ec[_0x2bf2c7(0x108,_0x5a419d._0x2450cd,0xc7,_0x5a419d._0x557a77)]?{'response_format':{'type':'json_schema','json_schema':{'name':_0x12f2ec['outputFormat']['name']??_0x2bf2c7(0x19d,_0x5a419d._0x1413d3,_0x5a419d._0x3f6320,_0x5a419d._0x2f1eb8),'schema':_0x12f2ec[_0x2bf2c7(_0x5a419d._0x859ab8,_0x5a419d._0x22ebb1,_0x5a419d._0x3d161d,0xcd)][_0x2bf2c7(0x183,_0x5a419d._0x48b7ff,_0x5a419d._0x4fd164,_0x5a419d._0x201e0c)],'strict':_0x12f2ec['outputFormat']['strict']??!![]}}}:{}};}function createResponsesRequestBody(_0x121b1b,_0x5d08d2){return{...toOpenAiResponsesRequest(_0x121b1b),..._0x5d08d2?{'stream':!![]}:{},'store':![]};}function createOpenAiResponsesWebSocketEvent(_0x2e5217,_0x5011e1={}){const _0x161824={_0xc35c89:0x36,_0x1288db:0x7d,_0x512364:0xf7,_0x1dc992:0x1b,_0x31b0b8:0x32e,_0x4ec280:0x35c,_0x5238d2:0x2eb},_0x4bee82={_0x29d376:0x134,_0x540d81:0xe3,_0x2dc18b:0xd3},_0x37ef10={_0x2ade8f:0x126};function _0x50666(_0x39eac9,_0x3863c1,_0x177337,_0x523159){return _0x18ceca(_0x523159,_0x39eac9- -0x575,_0x177337-_0x37ef10._0x2ade8f,_0x523159-0x1c3);}function _0x3d0877(_0xbfe821,_0x173471,_0x215515,_0x16e7d3){return _0x4de126(_0x16e7d3,_0x173471-_0x4bee82._0x29d376,_0x215515-_0x4bee82._0x540d81,_0x173471-_0x4bee82._0x2dc18b);}const _0xdb9dbe=toOpenAiResponsesRequest(_0x2e5217);return{'type':_0x50666(-_0x161824._0xc35c89,_0x161824._0x1288db,-_0x161824._0x512364,_0x161824._0x1dc992),..._0xdb9dbe,..._0x5011e1[_0x3d0877(0x2b8,_0x161824._0x31b0b8,0x2cb,0x352)]?{'input':_0x5011e1[_0x3d0877(0x3b0,0x32e,0x29c,_0x161824._0x4ec280)]}:{},..._0x5011e1[_0x3d0877(_0x161824._0x5238d2,0x207,0x1f0,0x28f)]?{'previous_response_id':_0x5011e1[_0x50666(-0xe0,-0xa1,-0x14b,-0xe3)]}:{},'store':![]};}function normalizeAssistantContent(_0x497a21){const _0x4f9fe2={_0x346bd3:0x23,_0x4cf637:0x75,_0x3d6391:0xdc,_0x43ef53:0x54,_0xcb0609:0x13,_0xaaaa00:0xbb,_0x3b76c1:0xa7,_0x234689:0x120},_0x18ef83={_0x2df0e1:0xf1,_0x4c0d36:0x20b,_0x9780bd:0x97,_0x1cc155:0x12b,_0x57c1cb:0xfe,_0x5eacfa:0xa3,_0x1c6fd3:0x1d,_0x302869:0xf0,_0x5b9f2b:0x7e},_0x597f22={_0xb60ff5:0xf8,_0x28c7e9:0x27,_0x3487da:0x1d9},_0x34b98c={_0x5dea94:0x17,_0x345dba:0xcd};function _0x5029b4(_0x5ec0c7,_0x1f7d3a,_0xd8f4d7,_0x2ef89c){return _0x4de126(_0x1f7d3a,_0x1f7d3a-_0x34b98c._0x5dea94,_0xd8f4d7-0xbf,_0x2ef89c- -_0x34b98c._0x345dba);}if(typeof _0x497a21==='string')return _0x497a21;function _0x24a1ae(_0x40f78c,_0x4a4ef7,_0x34e7fa,_0x174c3e){return _0x4de126(_0x4a4ef7,_0x4a4ef7-_0x597f22._0xb60ff5,_0x34e7fa-_0x597f22._0x28c7e9,_0x174c3e- -_0x597f22._0x3487da);}if(!Array[_0x24a1ae(_0x4f9fe2._0x346bd3,-_0x4f9fe2._0x4cf637,_0x4f9fe2._0x3d6391,0x67)](_0x497a21))return'';return _0x497a21[_0x24a1ae(0x30,_0x4f9fe2._0x43ef53,-0xe4,-_0x4f9fe2._0xcb0609)](_0x213ae7=>{const _0x201641={_0x5cb87f:0xb2},_0x563ef5={_0x2aa4ab:0x20,_0x42fac3:0x1d1};function _0x36496c(_0x29728f,_0x25aef2,_0x5d55a3,_0x501a1e){return _0x24a1ae(_0x29728f-_0x563ef5._0x2aa4ab,_0x25aef2,_0x5d55a3-_0x563ef5._0x42fac3,_0x501a1e- -0x6a);}function _0x468604(_0x58ccbc,_0x3f9791,_0x905c7,_0x477b7b){return _0x5029b4(_0x58ccbc-_0x201641._0x5cb87f,_0x905c7,_0x905c7-0x140,_0x477b7b- -0x187);}return _0x213ae7[_0x36496c(-_0x18ef83._0x2df0e1,-_0x18ef83._0x4c0d36,-_0x18ef83._0x9780bd,-_0x18ef83._0x1cc155)]===_0x468604(0x34,_0x18ef83._0x57c1cb,_0x18ef83._0x5eacfa,_0x18ef83._0x1c6fd3)?_0x213ae7['text']:_0x213ae7[_0x468604(-0x115,-_0x18ef83._0x302869,0x2c,-_0x18ef83._0x5b9f2b)];})[_0x5029b4(_0x4f9fe2._0xaaaa00,0x4d,_0x4f9fe2._0x3b76c1,_0x4f9fe2._0x234689)]('');}function normalizeResponsesMessageContent(_0x36677e){const _0x1c04e4={_0x3cfc00:0x582,_0x472566:0x4d1,_0x4bccc5:0x50a,_0x5ce68a:0x145,_0x265c44:0x23d,_0x1c3893:0x47e,_0x3575df:0x3b7},_0x5644fc={_0x51f570:0xe,_0x7c412a:0x226,_0x5ca764:0x2,_0x365926:0x474,_0x5dfe4c:0x33f,_0x3affc2:0x16,_0x6bfd62:0x10e,_0x2cb2b6:0x19,_0xf1d503:0xe8,_0x42b49f:0xac,_0x518afc:0x5,_0x4ac69e:0x2a,_0x3a02e7:0x350,_0xe9d3f2:0x266,_0x3fa765:0x32d,_0x1ee86a:0x1c8,_0x5967c7:0x3ef},_0x3b324c={_0x2a726b:0xe1,_0x5e37db:0x15c},_0x377b89={_0x282f7c:0x69e,_0x44783a:0x74};function _0x5753ef(_0x1dab17,_0x2dd182,_0x4a67e4,_0x811075){return _0x18ceca(_0x811075,_0x4a67e4- -_0x377b89._0x282f7c,_0x4a67e4-0x35,_0x811075-_0x377b89._0x44783a);}function _0x3a0547(_0x379eb7,_0x5a1e00,_0x1a9aff,_0x1ddef9){return _0x18ceca(_0x1ddef9,_0x1a9aff- -0xd0,_0x1a9aff-_0x3b324c._0x2a726b,_0x1ddef9-_0x3b324c._0x5e37db);}if(!Array[_0x3a0547(0x4a0,_0x1c04e4._0x3cfc00,_0x1c04e4._0x472566,_0x1c04e4._0x4bccc5)](_0x36677e))return'';return _0x36677e[_0x5753ef(-0xf5,-_0x1c04e4._0x5ce68a,-0x177,-_0x1c04e4._0x265c44)](_0x24910b=>{const _0x7c900b={_0x378219:0x15},_0x2fed08={_0x3ae0de:0x117};if(!_0x24910b||typeof _0x24910b!==_0xff3593(-0x59,-0x19,-0x69,-_0x5644fc._0x51f570))return'';const _0x51c046=_0x24910b;if(_0x51c046[_0x2f413e(0x2f2,0x286,_0x5644fc._0x7c412a,0x26f)]===_0xff3593(-0x23,_0x5644fc._0x5ca764,-0xb,0x59)&&typeof _0x51c046[_0x2f413e(0x426,_0x5644fc._0x365926,_0x5644fc._0x5dfe4c,0x3c8)]==='string')return _0x51c046[_0xff3593(0x71,_0x5644fc._0x3affc2,_0x5644fc._0x6bfd62,-_0x5644fc._0x2cb2b6)];if(_0x51c046[_0xff3593(-_0x5644fc._0xf1d503,-_0x5644fc._0x42b49f,-_0x5644fc._0x518afc,-0x18b)]===_0xff3593(-_0x5644fc._0x4ac69e,-0x98,0x7c,-0xe2)&&typeof _0x51c046[_0x2f413e(_0x5644fc._0x3a02e7,0x2e3,_0x5644fc._0xe9d3f2,_0x5644fc._0x3fa765)]===_0xff3593(-0xdb,-0x50,-0x11a,-_0x5644fc._0x1ee86a))return _0x51c046[_0x2f413e(0x258,_0x5644fc._0x5967c7,0x3d8,_0x5644fc._0x3fa765)];function _0x2f413e(_0x5d3f52,_0x63a4e9,_0x5ceef5,_0x4c2106){return _0x5753ef(_0x5d3f52-_0x2fed08._0x3ae0de,_0x63a4e9-0x8a,_0x4c2106-0x494,_0x63a4e9);}function _0xff3593(_0xee295c,_0x55b61f,_0x1fe9a4,_0x2a1b26){return _0x3a0547(_0xee295c-0x100,_0x55b61f-_0x7c900b._0x378219,_0xee295c- -0x491,_0x55b61f);}return'';})[_0x3a0547(0x404,0x430,_0x1c04e4._0x1c3893,_0x1c04e4._0x3575df)]('');}function extractOpenAiReasoningText(_0x3ce524){const _0x337b03={_0x10f3f6:0x2a6,_0x4ec11b:0x154,_0xfe5063:0x2a6,_0x2f3852:0x335,_0x28124f:0x579,_0x5a81dc:0x588,_0x680c20:0x90,_0x23c833:0x12f,_0x52bdfb:0x608,_0x3e09a8:0x5ef,_0x5c868d:0x22e},_0x2e4b54={_0x17176b:0x35},_0x595c5c={_0x3ff2c5:0x103,_0x342def:0x379};if(typeof _0x3ce524[_0x40e18f(0x1f5,0x296,_0x337b03._0x10f3f6,0x388)]===_0x40e18f(0x97,_0x337b03._0x4ec11b,0x15a,0x194))return _0x3ce524[_0x40e18f(0x1f3,0x2bb,_0x337b03._0xfe5063,_0x337b03._0x2f3852)];function _0x624ac7(_0x13fb72,_0x1af3ec,_0x11b8a4,_0x10efe1){return _0x4de126(_0x10efe1,_0x1af3ec-0x57,_0x11b8a4-_0x595c5c._0x3ff2c5,_0x11b8a4-_0x595c5c._0x342def);}if(!Array['isArray'](_0x3ce524['content']))return'';function _0x40e18f(_0x44ea7f,_0x57f179,_0x2cfe05,_0x3c7a68){return _0x4de126(_0x44ea7f,_0x57f179-0x37,_0x2cfe05-0x8b,_0x2cfe05-_0x2e4b54._0x17176b);}return _0x3ce524[_0x624ac7(0x5bc,0x5a4,_0x337b03._0x28124f,_0x337b03._0x5a81dc)][_0x40e18f(_0x337b03._0x680c20,_0x337b03._0x23c833,0x145,0x97)](_0x40e315=>_0x40e315['type']===_0x40e18f(0xad,0x16c,0x131,0x1ff)&&typeof _0x40e315[_0x40e18f(0x1d5,0x23f,0x2a6,0x1cb)]===_0x624ac7(0x3e9,0x56a,0x49e,0x3cd))[_0x624ac7(_0x337b03._0x52bdfb,_0x337b03._0x3e09a8,0x53f,0x4be)](_0x53230a=>_0x53230a[_0x624ac7(0x669,0x5bd,0x5ea,0x5fb)]??'')[_0x40e18f(0x2ae,_0x337b03._0x5c868d,0x222,0x1b4)]('');}function createOpenAiReasoningBlock(_0x23bd82){const _0x178115={_0x3e9e06:0x66,_0x5a156a:0x11f,_0x4d9f46:0x1fb,_0x1613fc:0xae,_0x2bba42:0x1ec,_0x52bdd9:0xe7,_0x3ce44a:0x174,_0x2c17ef:0x19a,_0x5abdfe:0x2fe,_0x59230b:0x36e,_0x26540b:0x334},_0x57fe4f={_0x3d8887:0x7e};function _0x1440c0(_0x3fa68c,_0x34c88c,_0x1bff05,_0x36152d){return _0x4de126(_0x36152d,_0x34c88c-_0x57fe4f._0x3d8887,_0x1bff05-0x88,_0x1bff05- -0x2b3);}const _0x20e7e3=extractOpenAiReasoningText(_0x23bd82);function _0x32a11e(_0x426608,_0x5b0258,_0x4537bb,_0x1729e7){return _0x4de126(_0x426608,_0x5b0258-0xa1,_0x4537bb-0xbf,_0x5b0258-0x57);}return{'type':_0x1440c0(-0xe1,-0x1a1,-0x120,-_0x178115._0x3e9e06),'summary':structuredClone(_0x23bd82[_0x32a11e(_0x178115._0x5a156a,_0x178115._0x4d9f46,0x2da,0x1ae)]??[]),..._0x23bd82['id']?{'id':_0x23bd82['id']}:{},..._0x23bd82[_0x1440c0(-_0x178115._0x1613fc,-0xb6,-0x196,-_0x178115._0x2bba42)]?{'encryptedContent':_0x23bd82[_0x32a11e(_0x178115._0x52bdd9,_0x178115._0x3ce44a,0x24c,_0x178115._0x2c17ef)]}:{},..._0x20e7e3[_0x32a11e(0x348,_0x178115._0x5abdfe,_0x178115._0x59230b,_0x178115._0x26540b)]>0x0?{'text':_0x20e7e3}:{}};}function hasVisibleOpenAiReasoning(_0x1fb152){const _0x4462a0={_0xde3e75:0x177,_0xa5b386:0x262,_0xfd4bf2:0x310,_0x897c68:0x2b8},_0x4da5c7={_0x253442:0x45},_0x17103a={_0x42c97d:0x2c8,_0x4062e4:0x16a};function _0x329857(_0x796871,_0x49ee1a,_0x1fc6ee,_0x3424d3){return _0x18ceca(_0x49ee1a,_0x796871- -_0x17103a._0x42c97d,_0x1fc6ee-0x1a6,_0x3424d3-_0x17103a._0x4062e4);}function _0x1dfcf1(_0x2c94fe,_0x13fc48,_0x3defae,_0x28d814){return _0x4de126(_0x2c94fe,_0x13fc48-0xc4,_0x3defae-0x2a,_0x3defae- -_0x4da5c7._0x253442);}return _0x1fb152[_0x1dfcf1(0x16f,0x11b,0x15f,0x155)][_0x1dfcf1(_0x4462a0._0xde3e75,0x22f,_0x4462a0._0xa5b386,0x1f4)]>0x0||typeof _0x1fb152[_0x329857(0x30a,_0x4462a0._0xfd4bf2,0x3ca,_0x4462a0._0x897c68)]==='string';}function parseChatCompletionResponse(_0x4403be){const _0xc1ff15={_0x4049ef:0x25a,_0x2e6adf:0x2d0,_0x16767e:0x339,_0x3a7e2f:0x379,_0x332aa9:0x31f,_0x44c475:0x35b,_0xd4d89:0x301,_0x4710ed:0x3e5,_0x13167a:0x37c,_0x3dd830:0x43d,_0x56e329:0x2e0,_0xdb0dd7:0x231,_0x250d05:0x2dd,_0x23cd79:0x37f,_0x1c4970:0x2a7,_0x47ae84:0x29a,_0x40acdf:0x2aa,_0x4d2bda:0x290,_0x75d080:0x2da,_0x1820b8:0x53f,_0x250855:0x405,_0x529f5f:0x2d3,_0x11fbed:0x2ee,_0x5df6b4:0x2e2},_0x37367c={_0x158869:0x165,_0x1b5d03:0x76,_0x144497:0x101},_0x26f831={_0x191a9f:0x1a9},_0x2c13da=[];function _0x284207(_0x4f93b1,_0x45f984,_0x3418ef,_0x2b0aae){return _0x4de126(_0x3418ef,_0x45f984-0x162,_0x3418ef-_0x26f831._0x191a9f,_0x45f984-0x201);}const _0x28d00e=[];let _0x3da2a9=_0x3326e1(_0xc1ff15._0x4049ef,0x19d,0x222,0x292);function _0x3326e1(_0x522ed6,_0x51a614,_0x1fe8f2,_0x231c68){return _0x4de126(_0x51a614,_0x51a614-_0x37367c._0x158869,_0x1fe8f2-_0x37367c._0x1b5d03,_0x1fe8f2-_0x37367c._0x144497);}for(const _0x670d23 of _0x4403be[_0x284207(_0xc1ff15._0x2e6adf,0x38a,0x40a,_0xc1ff15._0x16767e)]??[]){const _0x44d4d6=_0x670d23[_0x3326e1(_0xc1ff15._0x3a7e2f,_0xc1ff15._0x332aa9,0x2e2,0x25e)],_0xbc54fb=normalizeAssistantContent(_0x44d4d6?.[_0x3326e1(_0xc1ff15._0x44c475,0x39f,_0xc1ff15._0xd4d89,0x376)]);_0xbc54fb[_0x3326e1(0x493,0x2d2,0x3a8,_0xc1ff15._0x4710ed)]>0x0&&_0x2c13da[_0x3326e1(0x44e,0x3c3,_0xc1ff15._0x13167a,_0xc1ff15._0x3dd830)](_0xbc54fb),_0x44d4d6?.['tool_calls']&&_0x28d00e[_0x3326e1(_0xc1ff15._0x56e329,0x2a0,0x37c,0x2e0)](..._0x44d4d6[_0x3326e1(_0xc1ff15._0xdb0dd7,0x3c8,_0xc1ff15._0x250d05,0x249)]),_0x670d23[_0x284207(0x3d3,_0xc1ff15._0x23cd79,0x2ee,0x42e)]===_0x3326e1(_0xc1ff15._0x1c4970,_0xc1ff15._0x47ae84,0x2dd,0x2b9)&&(_0x3da2a9=_0x3326e1(_0xc1ff15._0x40acdf,0x2e3,_0xc1ff15._0x4d2bda,_0xc1ff15._0x75d080));}return _0x28d00e[_0x284207(0x481,0x4a8,_0xc1ff15._0x1820b8,_0xc1ff15._0x250855)]>0x0&&(_0x3da2a9=_0x284207(0x465,0x390,0x2ee,0x3d2)),{'id':_0x4403be['id']??'chatcmpl-'+Date['now'](),'content':createContentBlocks(_0x2c13da[_0x3326e1(_0xc1ff15._0x529f5f,0x303,_0xc1ff15._0x11fbed,_0xc1ff15._0x5df6b4)](''),_0x28d00e),'stopReason':_0x3da2a9,'usage':createUsage(_0x4403be['usage'])};}function parseResponsesResponse(_0x3af92f,_0x1cf12f){const _0x2bd1c5={_0x370100:0x265,_0x1c2aa6:0x314,_0x3cea66:0x367,_0x4e2afd:0x252,_0xfb6802:0x2f1,_0x1318b6:0x569,_0x2e318c:0x405,_0xf1a156:0x3d5,_0xa59185:0x2ec,_0x3f448f:0xa2,_0x59df73:0x15c,_0x8e021e:0x2b5,_0x3f34bd:0x256,_0x59e566:0x2fc,_0x8e2237:0x38a,_0x3b4199:0x14e,_0x4f8132:0x215,_0x3d38b1:0x29f,_0x41430f:0x2cf,_0x32275d:0x344,_0x440e1c:0x12e,_0x153914:0x181,_0x3176ce:0x14b,_0x282592:0x215,_0x1806a5:0x385,_0x15fdc4:0x2ed,_0x4df562:0x28b,_0x2bd228:0x488,_0x2192c:0x4e2,_0x50b86b:0x489,_0x4dec63:0x364,_0x26bed1:0x26a,_0x565a99:0x307,_0x11ab77:0x2fd,_0x96d140:0x2eb,_0xa6871a:0x3bf,_0x2f6a1e:0x2f6,_0xf1b5a1:0x3d6,_0x59bad8:0x486,_0x320447:0x453,_0x409eb0:0x27a,_0x491437:0x1a7,_0x18188c:0x3f4,_0x3ebcd3:0x3f7,_0x25771a:0x44d,_0x1fb2d8:0x1d6,_0x44fdfa:0xf0,_0x43118c:0x175,_0x5970b9:0x4c7,_0x41c9cb:0x366,_0x294c7d:0x4da,_0x843111:0x44d,_0x6c984:0x4fe,_0x5ffe2e:0x418,_0x197bf5:0x4fd,_0x139f80:0x393,_0x341146:0x40a,_0x131c37:0x30a,_0x5f1c28:0x348,_0x59993d:0x2ac,_0x51f8d4:0x41d,_0x53a4a6:0x413},_0x3a2678={_0x11dfc2:0x2e6},_0x1bde05={_0x3d06c6:0x19f,_0x2f5247:0x1e2},_0x2cca07=[];function _0xc13993(_0x181072,_0x3c394f,_0x4ab00c,_0x2a84de){return _0x4de126(_0x181072,_0x3c394f-_0x1bde05._0x3d06c6,_0x4ab00c-0x6e,_0x2a84de-_0x1bde05._0x2f5247);}for(const _0x2e5706 of _0x3af92f[_0x11f43e(0x266,_0x2bd1c5._0x370100,_0x2bd1c5._0x1c2aa6,0x2ac)]??[]){if(isResponsesReasoningItem(_0x2e5706)){if(isUserVisibleReasoning(_0x1cf12f)){const _0x320683=createOpenAiReasoningBlock(_0x2e5706);hasVisibleOpenAiReasoning(_0x320683)&&_0x2cca07[_0x11f43e(_0x2bd1c5._0x3cea66,_0x2bd1c5._0x4e2afd,_0x2bd1c5._0xfb6802,0x2f6)](_0x320683);}continue;}if(isResponsesMessageItem(_0x2e5706)){const _0x3f4660=normalizeResponsesMessageContent(_0x2e5706['content']);_0x3f4660[_0xc13993(_0x2bd1c5._0x1318b6,0x3d5,0x4d3,0x489)]>0x0&&_0x2cca07[_0xc13993(_0x2bd1c5._0x2e318c,_0x2bd1c5._0xf1a156,0x4cf,0x45d)]({'type':_0x11f43e(0x350,0x35b,0x2cb,_0x2bd1c5._0xa59185),'text':_0x3f4660});continue;}if(!isResponsesFunctionCallItem(_0x2e5706)||typeof _0x2e5706['call_id']!=='string'||_0x2e5706[_0x11f43e(_0x2bd1c5._0x3f448f,_0x2bd1c5._0x59df73,0x19b,0x168)][_0x11f43e(_0x2bd1c5._0x8e021e,0x2f6,_0x2bd1c5._0x3f34bd,0x2f0)]()[_0x11f43e(_0x2bd1c5._0x59e566,0x334,_0x2bd1c5._0x8e2237,0x322)]===0x0||typeof _0x2e5706[_0x11f43e(_0x2bd1c5._0x3b4199,0x275,0x237,_0x2bd1c5._0x4f8132)]!==_0xc13993(_0x2bd1c5._0x3d38b1,_0x2bd1c5._0x41430f,_0x2bd1c5._0x32275d,0x307)||_0x2e5706[_0x11f43e(_0x2bd1c5._0x440e1c,_0x2bd1c5._0x153914,_0x2bd1c5._0x3176ce,_0x2bd1c5._0x282592)][_0x11f43e(_0x2bd1c5._0x1806a5,_0x2bd1c5._0x15fdc4,_0x2bd1c5._0x4df562,0x2f0)]()[_0xc13993(_0x2bd1c5._0x2bd228,0x428,_0x2bd1c5._0x2192c,_0x2bd1c5._0x50b86b)]===0x0||typeof _0x2e5706['arguments']!==_0xc13993(_0x2bd1c5._0x4dec63,0x335,_0x2bd1c5._0x26bed1,_0x2bd1c5._0x565a99))continue;_0x2cca07['push']({'type':'tool_use','id':_0x2e5706[_0x11f43e(0xf9,0x1ff,0x23e,0x168)],'name':_0x2e5706[_0x11f43e(0x15c,0x2d6,0x1cc,_0x2bd1c5._0x4f8132)],'input':parseToolInput2(_0x2e5706[_0xc13993(_0x2bd1c5._0x4df562,0x331,_0x2bd1c5._0x11ab77,0x376)])});}!_0x2cca07['some'](_0x2ae636=>_0x2ae636[_0x11f43e(0xeb,0x157,0x240,0x193)]===_0x11f43e(0x31e,0x376,0x33a,0x2ec))&&_0x3af92f[_0xc13993(_0x2bd1c5._0x96d140,0x37b,0x433,_0x2bd1c5._0xa6871a)]&&_0x2cca07[_0x11f43e(0x27a,0x2ff,0x2dd,_0x2bd1c5._0x2f6a1e)]({'type':_0xc13993(_0x2bd1c5._0xf1b5a1,_0x2bd1c5._0x59bad8,0x435,_0x2bd1c5._0x320447),'text':_0x3af92f[_0xc13993(0x3c9,0x403,0x370,0x3bf)]});function _0x11f43e(_0x444054,_0x2e0954,_0xb519b7,_0x4d3411){return _0x18ceca(_0x2e0954,_0x4d3411- -_0x3a2678._0x11dfc2,_0xb519b7-0xcb,_0x4d3411-0x1a3);}return{'id':_0x3af92f['id'],'content':_0x2cca07,'stopReason':_0x2cca07['some'](_0x25cd01=>_0x25cd01['type']===_0x11f43e(0x28b,0x251,0x219,0x20a))?_0x11f43e(0x1d4,_0x2bd1c5._0x409eb0,0x1d8,0x20a):'end_turn','usage':{'inputTokens':_0x3af92f['usage']?.[_0x11f43e(0x290,_0x2bd1c5._0x491437,0x1b7,0x213)]??0x0,'outputTokens':_0x3af92f[_0xc13993(_0x2bd1c5._0x18188c,_0x2bd1c5._0x3ebcd3,0x460,_0x2bd1c5._0x25771a)]?.[_0x11f43e(0x17e,_0x2bd1c5._0x1fb2d8,_0x2bd1c5._0x44fdfa,_0x2bd1c5._0x43118c)]??0x0,..._0x3af92f[_0xc13993(_0x2bd1c5._0x5970b9,_0x2bd1c5._0x41c9cb,_0x2bd1c5._0x294c7d,_0x2bd1c5._0x843111)]?.[_0xc13993(_0x2bd1c5._0x6c984,0x4d2,0x4d6,_0x2bd1c5._0x5ffe2e)]?.[_0xc13993(0x323,0x340,0x31d,0x40a)]!==void 0x0?{'reasoningTokens':_0x3af92f[_0xc13993(0x39f,_0x2bd1c5._0x197bf5,0x362,_0x2bd1c5._0x25771a)]['output_tokens_details'][_0xc13993(_0x2bd1c5._0x139f80,0x4e8,0x360,_0x2bd1c5._0x341146)]}:{}},..._0x3af92f[_0x11f43e(_0x2bd1c5._0x131c37,_0x2bd1c5._0x5f1c28,0x37e,_0x2bd1c5._0x59993d)]?{'providerState':{'openaiResponsesOutput':structuredClone(_0x3af92f[_0xc13993(_0x2bd1c5._0x51f8d4,0x44f,0x4b7,_0x2bd1c5._0x53a4a6)]),'openaiResponsesResponseId':_0x3af92f['id']}}:{}};}function extractErrorMessage(_0x570f0d){const _0x2e7d30={_0x1dc991:0x284,_0x21083b:0x1ce,_0x337fd7:0x1c4,_0x45bf12:0x236,_0x182d26:0x11a,_0x3a8c91:0x13a,_0x19a456:0x245,_0x44f612:0x23e,_0x22b57d:0xb7,_0x19a767:0xe6,_0x5d2c32:0x186,_0x323f7a:0x1da,_0x34c68e:0x244,_0x40aee2:0x1e6,_0x269872:0x252,_0x3611af:0x98,_0x4aaddf:0x17a,_0x390e6e:0x153,_0x12d437:0x4b6,_0x516336:0x3ca,_0x3ba934:0x341,_0x56dd26:0x336,_0x97b383:0x270,_0x2e6b03:0x266,_0xbfa07e:0x1e8,_0x5e9160:0xee,_0x1d1cf6:0x3fc,_0x27833b:0x331,_0xfb3e53:0x1e8,_0x4bee7a:0x7e,_0x1dec36:0x126,_0x452ecc:0x6},_0x1a4347={_0x36084c:0x11e},_0x49ff45={_0x4583cc:0x35b};function _0x19ac6f(_0x51cec3,_0x397e2c,_0x445dc5,_0x427584){return _0x4de126(_0x51cec3,_0x397e2c-0x122,_0x445dc5-0x46,_0x445dc5- -_0x49ff45._0x4583cc);}function _0x2a9fbc(_0x1ec9e9,_0x349ac7,_0x463705,_0x26ee68){return _0x18ceca(_0x26ee68,_0x349ac7- -0x20c,_0x463705-_0x1a4347._0x36084c,_0x26ee68-0x1d6);}if(_0x570f0d['length']===0x0)return'';try{const _0x4af0ea=JSON[_0x19ac6f(-0x11a,-_0x2e7d30._0x1dc991,-_0x2e7d30._0x21083b,-_0x2e7d30._0x337fd7)](_0x570f0d);if(typeof _0x4af0ea['error']?.[_0x19ac6f(-_0x2e7d30._0x45bf12,-_0x2e7d30._0x182d26,-0x17a,-_0x2e7d30._0x3a8c91)]===_0x2a9fbc(_0x2e7d30._0x19a456,0x27a,0x283,0x333)&&_0x4af0ea[_0x19ac6f(-_0x2e7d30._0x44f612,-0x1ec,-0x244,-0x2d4)]['message'][_0x19ac6f(-0xc1,-_0x2e7d30._0x22b57d,-_0x2e7d30._0x19a767,-_0x2e7d30._0x5d2c32)]()['length']>0x0)return _0x4af0ea[_0x19ac6f(-0x2f5,-_0x2e7d30._0x323f7a,-_0x2e7d30._0x34c68e,-_0x2e7d30._0x40aee2)][_0x19ac6f(-_0x2e7d30._0x269872,-_0x2e7d30._0x3611af,-_0x2e7d30._0x4aaddf,-_0x2e7d30._0x390e6e)][_0x2a9fbc(_0x2e7d30._0x12d437,_0x2e7d30._0x516336,0x2eb,_0x2e7d30._0x3ba934)]();if(typeof _0x4af0ea[_0x2a9fbc(0x3d0,_0x2e7d30._0x56dd26,_0x2e7d30._0x97b383,_0x2e7d30._0x2e6b03)]===_0x19ac6f(-_0x2e7d30._0xbfa07e,-0x253,-0x236,-0x25b)&&_0x4af0ea['message'][_0x19ac6f(-0xa,-_0x2e7d30._0x5e9160,-_0x2e7d30._0x19a767,-0x16f)]()[_0x2a9fbc(0x4da,_0x2e7d30._0x1d1cf6,0x36d,_0x2e7d30._0x27833b)]>0x0)return _0x4af0ea[_0x19ac6f(-0x13c,-0xfb,-_0x2e7d30._0x4aaddf,-_0x2e7d30._0xfb3e53)][_0x19ac6f(-_0x2e7d30._0x4bee7a,-_0x2e7d30._0x1dec36,-_0x2e7d30._0x19a767,-_0x2e7d30._0x452ecc)]();}catch{return _0x570f0d;}return _0x570f0d;}async function createOpenAiApiError(_0x12bd3c){const _0x1c4be9={_0x215042:0x208,_0x1e82a4:0x173,_0x382bf0:0xb1,_0x352a77:0x5a,_0x129171:0x1,_0x26b3ae:0x22f,_0x172fd9:0x165,_0x353663:0x244,_0x2025d0:0x82},_0x27afff={_0x919efa:0x1af,_0x399f4d:0x134},_0x3297c3={_0x57e8f0:0x86,_0x20d929:0x87},_0x3f2ff1=(await _0x12bd3c[_0xf1cfee(0xf5,_0x1c4be9._0x215042,0x18e,0x13d)]())[_0xf1cfee(_0x1c4be9._0x1e82a4,0x1f7,_0x1c4be9._0x382bf0,0x141)]();function _0x27eb29(_0x33ec9f,_0x3807f9,_0x572d0e,_0xa74f60){return _0x4de126(_0x572d0e,_0x3807f9-_0x3297c3._0x57e8f0,_0x572d0e-_0x3297c3._0x20d929,_0xa74f60-0x95);}function _0xf1cfee(_0x5d0e91,_0x5ba7fd,_0x272905,_0x57b52f){return _0x4de126(_0x5d0e91,_0x5ba7fd-0x36,_0x272905-_0x27afff._0x919efa,_0x57b52f- -_0x27afff._0x399f4d);}const _0x2855e0=extractErrorMessage(_0x3f2ff1)||_0x12bd3c[_0xf1cfee(-_0x1c4be9._0x352a77,-0x54,-0xb,-_0x1c4be9._0x129171)]||_0x27eb29(_0x1c4be9._0x26b3ae,_0x1c4be9._0x172fd9,_0x1c4be9._0x353663,0x1e5)+_0x12bd3c['status'];return new OpenAiApiError(_0x12bd3c[_0xf1cfee(0x69,-0x78,_0x1c4be9._0x2025d0,0x2e)],_0x3f2ff1,_0x2855e0);}function readSseData(_0x5c835a){const _0x4e5f1c={_0x59976f:0x280,_0x5a3cac:0x19a,_0x58c988:0x1e4,_0x563e16:0x24e,_0x55c349:0xdb,_0x17d628:0x1bb,_0x5c7316:0x1f5,_0x57f389:0x2c1},_0x4893e4={_0x55dcd4:0x1db,_0x6400a:0xd4};function _0x1ed7ef(_0x5f30e9,_0x4f5d63,_0x240844,_0x156c14){return _0x4de126(_0x240844,_0x4f5d63-0x197,_0x240844-_0x4893e4._0x55dcd4,_0x156c14-_0x4893e4._0x6400a);}function _0x265e10(_0x521b4e,_0x1ab9bd,_0x432c5a,_0x49fdd6){return _0x18ceca(_0x521b4e,_0x49fdd6- -0x36c,_0x432c5a-0x18f,_0x49fdd6-0x1cd);}return _0x5c835a[_0x265e10(0x27c,0x2ae,0x1ac,0x203)]('\x0a')[_0x1ed7ef(0x2a5,_0x4e5f1c._0x59976f,_0x4e5f1c._0x5a3cac,_0x4e5f1c._0x58c988)](_0x280b15=>_0x280b15[_0x265e10(0x2e3,0x2c0,0x2b5,0x245)](_0x265e10(0x196,0x198,0x1d,0xe1)))[_0x265e10(0x195,_0x4e5f1c._0x563e16,_0x4e5f1c._0x55c349,_0x4e5f1c._0x17d628)](_0x331bb5=>_0x331bb5[_0x265e10(0x226,0x20b,0x145,0x210)](0x5)[_0x265e10(0x1fc,0x1bb,0x4a,0x135)]())[_0x1ed7ef(0x395,0x270,_0x4e5f1c._0x5c7316,_0x4e5f1c._0x57f389)]('\x0a')['trim']();}function readString(_0x4e0d3f){const _0x105b16={_0x58e289:0x138,_0x4a48fc:0x8d,_0x27cdf1:0x241,_0x4776bd:0x162,_0x21380d:0x50a,_0x3e49c6:0x5a6,_0x528c68:0x48a},_0x520c25={_0x37fba6:0x1f2,_0x429852:0x12b,_0x24fb4c:0x215},_0x30bac2={_0x3ebf8c:0x152,_0x35264c:0x9f,_0x212e9e:0x3d};function _0xc387a1(_0x52f4cb,_0x377f68,_0x2b786b,_0x5c3273){return _0x4de126(_0x377f68,_0x377f68-_0x30bac2._0x3ebf8c,_0x2b786b-_0x30bac2._0x35264c,_0x5c3273-_0x30bac2._0x212e9e);}function _0x41ee75(_0x575173,_0x29e9bb,_0x407a05,_0x235e66){return _0x4de126(_0x407a05,_0x29e9bb-_0x520c25._0x37fba6,_0x407a05-_0x520c25._0x429852,_0x235e66-_0x520c25._0x24fb4c);}return typeof _0x4e0d3f===_0xc387a1(_0x105b16._0x58e289,_0x105b16._0x4a48fc,_0x105b16._0x27cdf1,_0x105b16._0x4776bd)&&_0x4e0d3f[_0x41ee75(_0x105b16._0x21380d,_0x105b16._0x3e49c6,_0x105b16._0x528c68,0x4bc)]>0x0?_0x4e0d3f:void 0x0;}function extractReasoningDetails(_0x2d9689){const _0x562e56={_0xf4c2d8:0x274,_0x5d5e47:0x2d0,_0x352641:0x28e},_0x48cfb4={_0x16a22d:0x65},_0x5dcc7f={_0x1e707e:0x188,_0x27fcc4:0x11d,_0x54e8eb:0x1e6,_0x2be456:0x2cb,_0x2c8337:0x305,_0x5149b9:0x211,_0x4e8dad:0x252,_0x5c49fb:0x19b},_0x4a89e0={_0x4d3d54:0x28d},_0x4254d8={_0x502b02:0x1dd,_0x1165d7:0x296};function _0x12ec1e(_0x14889b,_0x14732a,_0x4b1d13,_0x20d973){return _0x4de126(_0x4b1d13,_0x14732a-0x9d,_0x4b1d13-_0x4254d8._0x502b02,_0x20d973- -_0x4254d8._0x1165d7);}if(!Array[_0xad2934(0x352,0x2c9,_0x562e56._0xf4c2d8,0x33c)](_0x2d9689))return void 0x0;const _0x432cd9=_0x2d9689[_0xad2934(0x401,_0x562e56._0x5d5e47,_0x562e56._0x352641,0x365)](_0x474119=>{const _0x50ae35={_0x20ae16:0xaa};if(!_0x474119||typeof _0x474119!=='object')return[];const _0x93ad83=_0x474119;if(typeof _0x93ad83['text']===_0x417bdb(0x33a,0x2cb,0x347,0x32e))return[_0x93ad83[_0x2d3ea4(_0x5dcc7f._0x1e707e,0x190,0x204,0x268)]];if(typeof _0x93ad83[_0x2d3ea4(0x23c,0x18b,_0x5dcc7f._0x27fcc4,0x19b)]===_0x417bdb(_0x5dcc7f._0x54e8eb,_0x5dcc7f._0x2be456,_0x5dcc7f._0x2c8337,0x23c))return[_0x93ad83[_0x2d3ea4(0x1a3,_0x5dcc7f._0x5149b9,_0x5dcc7f._0x4e8dad,_0x5dcc7f._0x5c49fb)]];function _0x417bdb(_0x2a0987,_0x532a6f,_0x58d82a,_0x5da221){return _0xad2934(_0x2a0987-0x10f,_0x2a0987,_0x58d82a-0x176,_0x532a6f-_0x50ae35._0x20ae16);}function _0x2d3ea4(_0x243e30,_0x46f7d5,_0x16e858,_0x412205){return _0x12ec1e(_0x243e30-0x3e,_0x46f7d5-0xc0,_0x243e30,_0x412205-_0x4a89e0._0x4d3d54);}return[];});function _0xad2934(_0x56b0d7,_0x1432e0,_0x20665f,_0x46a66f){return _0x4de126(_0x1432e0,_0x1432e0-0x17a,_0x20665f-_0x48cfb4._0x16a22d,_0x46a66f-0xfc);}return _0x432cd9['length']>0x0?_0x432cd9[_0x12ec1e(-0x13f,-0x152,0x47,-0xa9)](''):void 0x0;}function extractChatCompletionReasoningDelta(_0xe15d55){const _0x3248a1={_0x1dc8b0:0x272,_0x4f0abe:0x2ca,_0x17ad95:0x27b,_0x23b513:0x129,_0x42578b:0x96,_0x65faee:0x79,_0x82f6e:0xc1},_0x13436c={_0x410a4f:0x689,_0x27f96c:0x76},_0x53aa04={_0x20cdb7:0x7d};function _0x2f1c0c(_0x15ca73,_0x423181,_0x4b56f0,_0x431fa5){return _0x4de126(_0x431fa5,_0x423181-_0x53aa04._0x20cdb7,_0x4b56f0-0x1ab,_0x15ca73- -0x1db);}function _0x4d0276(_0x1060bb,_0x324d66,_0x405c8f,_0x4b319b){return _0x18ceca(_0x4b319b,_0x1060bb- -_0x13436c._0x410a4f,_0x405c8f-_0x13436c._0x27f96c,_0x4b319b-0x6a);}return extractReasoningDetails(_0xe15d55?.['reasoning_details'])??readString(_0xe15d55?.[_0x4d0276(-0x1e6,-_0x3248a1._0x1dc8b0,-_0x3248a1._0x4f0abe,-_0x3248a1._0x17ad95)])??readString(_0xe15d55?.[_0x4d0276(-_0x3248a1._0x23b513,-_0x3248a1._0x42578b,-0x8a,-0x63)])??readString(_0xe15d55?.[_0x2f1c0c(-0xdf,-0x98,-_0x3248a1._0x65faee,-_0x3248a1._0x82f6e)])??'';}var OpenAiChatCompletionsStreamParser=class{['reasoningParts']=[];[_0x18ceca(0x556,0x50f,0x53e,0x5f5)];[_0x4de126(0x2c9,0x14c,0x17f,0x1eb)]=[];[_0x18ceca(0x4a5,0x453,0x403,0x4a9)]=new Map();[_0x4de126(0x1a4,0x12c,0x163,0x1bd)]=[];[_0x4de126(0x29e,0x235,0x1bf,0x262)]=new Set();[_0x18ceca(0x63a,0x61e,0x5fb,0x68c)]='';['stopReason']=_0x18ceca(0x56f,0x482,0x45a,0x565);[_0x18ceca(0x6b3,0x5cc,0x58f,0x50c)];constructor(_0xf855b){const _0x4f8ba8={_0x55c9be:0x374,_0x3c4f23:0x38a},_0x2b2117={_0x5e6e1b:0xf7,_0x436dc3:0x1d8};function _0x9d4587(_0x2fa06e,_0xb29d10,_0x41e7b5,_0x59b899){return _0x4de126(_0x59b899,_0xb29d10-0x9e,_0x41e7b5-_0x2b2117._0x5e6e1b,_0xb29d10-_0x2b2117._0x436dc3);}this[_0x9d4587(0x3de,0x386,_0x4f8ba8._0x55c9be,_0x4f8ba8._0x3c4f23)]=_0xf855b;}[_0x18ceca(0x47b,0x487,0x54c,0x3f4)](_0x54e468){const _0x3ab1ad={_0x1f7078:0x4fc,_0x6578b5:0x541,_0x99a1c7:0x5b6,_0x28fba0:0x4ea,_0x341191:0x37e,_0x1ad48f:0x91,_0xebab44:0xf3,_0x4917af:0x544,_0x542c8f:0x5d0,_0x36c2e1:0x4d3,_0x550058:0x268,_0x16e0f1:0x259,_0x2d7b90:0x1c2,_0xff6834:0x1a1},_0x7817df={_0xf4f758:0x94,_0x24e6ad:0x12},_0x4df9f2=readSseData(_0x54e468);if(_0x4df9f2[_0x901083(_0x3ab1ad._0x1f7078,0x52b,_0x3ab1ad._0x6578b5,_0x3ab1ad._0x99a1c7)]===0x0||_0x4df9f2===_0x901083(0x459,0x436,_0x3ab1ad._0x28fba0,_0x3ab1ad._0x341191))return[];function _0x3f7ce7(_0x116264,_0xaf0e62,_0x2bd92b,_0x1d7ab3){return _0x4de126(_0xaf0e62,_0xaf0e62-_0x7817df._0xf4f758,_0x2bd92b-0x191,_0x1d7ab3- -_0x7817df._0x24e6ad);}function _0x901083(_0x4a2425,_0xc00ddc,_0x4f781b,_0x361d2d){return _0x4de126(_0x4f781b,_0xc00ddc-0x54,_0x4f781b-0x14c,_0xc00ddc-0x284);}const _0x1eed2f=JSON[_0x3f7ce7(_0x3ab1ad._0x1ad48f,_0x3ab1ad._0xebab44,0xd1,0x17b)](_0x4df9f2);return this[_0x901083(0x581,0x541,_0x3ab1ad._0x4917af,_0x3ab1ad._0x542c8f)]=_0x1eed2f['id']??this['responseId'],this['usage']=_0x1eed2f[_0x901083(0x4c1,0x4ef,_0x3ab1ad._0x36c2e1,0x47c)]??this[_0x3f7ce7(_0x3ab1ad._0x550058,0x301,0x331,_0x3ab1ad._0x16e0f1)],this[_0x3f7ce7(_0x3ab1ad._0x2d7b90,0x11c,0x17f,_0x3ab1ad._0xff6834)](_0x1eed2f);}['finish'](){const _0x57908e={_0x12abaf:0x1e2,_0x178010:0x2da,_0x549c1f:0x178,_0x37b919:0x145,_0x2bb887:0x134,_0x2ad5ab:0x168,_0x8426e:0x126,_0x55c38a:0xe0,_0x1f5767:0x2e3,_0x40549a:0x16f,_0x1f2473:0x1f,_0x392606:0x17,_0x5f3597:0x85,_0x2c6ffb:0x104,_0x4883d2:0xa4,_0x24a41a:0x1fe,_0x3731fd:0x16a,_0x22ea42:0x1bf,_0x217e89:0x65,_0x4f85e2:0xfd,_0x35c560:0x1ce,_0x1fce0e:0x139,_0x10e193:0x32e},_0x218f87={_0x268161:0x14d,_0x4d03e8:0x1d6},_0x3d98bd={_0x326ba5:0x15c};this['toolCallOrder'][_0x42f113(_0x57908e._0x12abaf,0x2ca,_0x57908e._0x178010,0x273)]>0x0&&(this['stopReason']=_0x184141(-0xc5,-_0x57908e._0x549c1f,-_0x57908e._0x37b919,-_0x57908e._0x2bb887));function _0x184141(_0x3bdff7,_0x294c80,_0x36ddeb,_0x6a12c9){return _0x4de126(_0x6a12c9,_0x294c80-0x61,_0x36ddeb-_0x3d98bd._0x326ba5,_0x36ddeb- -0x2d4);}const _0x168d46=isUserVisibleReasoning(this[_0x184141(-0x148,-_0x57908e._0x2ad5ab,-_0x57908e._0x8426e,-_0x57908e._0x55c38a)])?this[_0x42f113(0x201,0x22e,0x142,_0x57908e._0x1f5767)][_0x42f113(0x24e,0x210,0x231,_0x57908e._0x40549a)](''):void 0x0;function _0x42f113(_0x139495,_0x1a3593,_0x5cf99c,_0x297882){return _0x18ceca(_0x5cf99c,_0x1a3593- -0x33e,_0x5cf99c-_0x218f87._0x268161,_0x297882-_0x218f87._0x4d03e8);}return{'id':this[_0x184141(-_0x57908e._0x1f2473,0x87,-_0x57908e._0x392606,-0x37)]||_0x184141(-0xf9,-_0x57908e._0x5f3597,-_0x57908e._0x2c6ffb,-_0x57908e._0x4883d2)+Date[_0x184141(-_0x57908e._0x24a41a,-0x17a,-_0x57908e._0x3731fd,-_0x57908e._0x22ea42)](),'content':createContentBlocks(this['textParts'][_0x184141(-_0x57908e._0x217e89,-_0x57908e._0x4f85e2,-0xe7,-_0x57908e._0x35c560)](''),this[_0x42f113(0xfe,0x1e0,0x207,_0x57908e._0x1fce0e)],_0x168d46),'stopReason':this['stopReason'],'usage':createUsage(this[_0x42f113(0x30a,0x28e,0x247,_0x57908e._0x10e193)])};}[_0x18ceca(0x5a6,0x514,0x49c,0x495)](_0x454763){const _0x51eb06={_0x1b6d9b:0x184,_0x204e00:0x143,_0x3ffae6:0x532,_0x276f30:0x2d3,_0x18d9c6:0x2fd,_0xbee6bd:0x194,_0x3cae8c:0x25a,_0x9d145b:0x331,_0x4645db:0x349,_0xd165de:0x324,_0x41c112:0x3f4,_0x32d4c7:0x350,_0x2e2d0c:0x3d8,_0x59e134:0x3d9,_0x462bc9:0x552,_0x169aee:0x1fc,_0x175e41:0x1f6,_0xabe252:0x2cd,_0x4031d4:0x195,_0x470c41:0x4a2,_0x3b25bb:0x42a,_0x3544a6:0x34a,_0x39429d:0x17a,_0x312d64:0x313,_0x54c043:0x392,_0x112577:0x31e,_0x2e0ec8:0x400,_0xdf32fe:0x17b,_0x4ba517:0x455,_0x3bb07d:0x4e9,_0x50ecc4:0x431,_0x569519:0x4a5,_0x220d12:0x192,_0x5c1d3c:0x232,_0x4e19c4:0x2c2,_0x3c4030:0x22e,_0x2e86e0:0x31c,_0x14ba97:0x4e7,_0xd4eabc:0x23c,_0x1e0854:0x1ce,_0x5b832f:0x3c7,_0x783d21:0x281,_0x479bf2:0x2f7,_0x3f04eb:0x405,_0x592604:0x326,_0x43bdf6:0x2eb,_0x40b537:0x2cf,_0x24be90:0x34c,_0x90b857:0x3e7,_0x162bc8:0x2da,_0x46a97e:0x2d1,_0x1c60ad:0x46e,_0x113d33:0x38b,_0x4739c7:0x337,_0xe0beef:0x33b,_0x1a1005:0x410,_0x54a3e7:0x2f0,_0x3135ee:0x431,_0x4d027c:0x3c4,_0x5adf66:0x3c4,_0x4e6276:0x300,_0x3bdb11:0x375,_0x4cb86a:0x3b2,_0x4c4657:0x25b,_0x351133:0x1f0,_0x5d19fe:0x409,_0x2b8eb2:0x57c,_0x4d72a8:0x50a,_0x591f88:0x442,_0x561b8c:0x32d,_0x2738c5:0x39a,_0x412cf7:0x3c4,_0x1f187a:0x229,_0x13e9ee:0x155,_0x2f6c24:0x134,_0x327d4a:0x153,_0x5b0056:0x2d4,_0x5582c1:0x21c,_0x55dade:0x29d,_0x3105d3:0x2df,_0x5cab1a:0x22a,_0x1f10ff:0x349,_0x719dfa:0x41a,_0x396f6d:0x2d1,_0x546d8b:0x211,_0x43b2ac:0x26e,_0x470a79:0x1cf,_0x2c4d1c:0x232,_0x4c5ab0:0x173,_0x351178:0x4a0,_0x1491bd:0x345},_0x14969d={_0x17069e:0xec,_0x2fba75:0x60,_0x4f5a22:0x22a},_0x551c56={_0x2d72b0:0x97},_0x42d8f0=[];function _0x417c41(_0x16e699,_0x37adc1,_0x5554f2,_0x499628){return _0x4de126(_0x5554f2,_0x37adc1-0x96,_0x5554f2-_0x551c56._0x2d72b0,_0x37adc1-0x56);}for(const _0x553f74 of _0x454763[_0x417c41(_0x51eb06._0x1b6d9b,0x1df,0x19d,_0x51eb06._0x204e00)]??[]){const _0x3d5efe=_0x553f74[_0x3a4a61(_0x51eb06._0x3ffae6,0x4e4,0x3c1,0x487)],_0x234368=extractChatCompletionReasoningDelta(_0x3d5efe);_0x234368[_0x417c41(_0x51eb06._0x276f30,_0x51eb06._0x18d9c6,0x2a5,0x346)]>0x0&&(this[_0x417c41(_0x51eb06._0xbee6bd,0x261,_0x51eb06._0x3cae8c,_0x51eb06._0x9d145b)][_0x417c41(_0x51eb06._0x4645db,0x2d1,_0x51eb06._0xd165de,0x3bd)](_0x234368),isUserVisibleReasoning(this[_0x3a4a61(0x458,_0x51eb06._0x41c112,_0x51eb06._0x32d4c7,_0x51eb06._0x2e2d0c)])&&_0x42d8f0[_0x3a4a61(_0x51eb06._0x59e134,0x429,_0x51eb06._0x462bc9,0x4a5)]({'type':_0x417c41(_0x51eb06._0x169aee,_0x51eb06._0x175e41,0x176,_0x51eb06._0xabe252),'contentIndex':0x0,'delta':_0x234368,'itemId':(this[_0x3a4a61(0x48e,0x53e,0x43a,0x4e7)]||'chatcmpl')+_0x417c41(_0x51eb06._0x4031d4,0x144,0x6f,0x15a),'outputIndex':0x0}));const _0x5141f7=typeof _0x3d5efe?.[_0x3a4a61(_0x51eb06._0x470c41,0x47e,0x4ca,_0x51eb06._0x3b25bb)]===_0x3a4a61(0x2b2,0x3b4,_0x51eb06._0x3544a6,0x34f)?_0x3d5efe[_0x417c41(0x195,0x256,0x272,_0x51eb06._0x39429d)]:typeof _0x3d5efe?.[_0x3a4a61(_0x51eb06._0x312d64,_0x51eb06._0x54c043,_0x51eb06._0x112577,_0x51eb06._0x2e0ec8)]===_0x417c41(0x11a,_0x51eb06._0xdf32fe,0x245,0xbc)?_0x3d5efe[_0x3a4a61(0x381,0x468,0x429,_0x51eb06._0x2e0ec8)]:'';_0x5141f7['length']>0x0&&(this[_0x3a4a61(0x4c7,0x4a1,_0x51eb06._0x4ba517,0x415)][_0x3a4a61(_0x51eb06._0x3bb07d,0x436,_0x51eb06._0x50ecc4,_0x51eb06._0x569519)](_0x5141f7),_0x42d8f0['push']({'type':'content_delta','index':0x0,'text':_0x5141f7}));for(const _0x2e0135 of _0x3d5efe?.[_0x417c41(_0x51eb06._0x220d12,_0x51eb06._0x5c1d3c,0x1e0,_0x51eb06._0x4e19c4)]??[]){const _0x5b3ff7=_0x2e0135['index']??0x0;let _0x36cb85=this[_0x3a4a61(0x3bd,0x3e6,_0x51eb06._0x3c4030,_0x51eb06._0x2e86e0)][_0x3a4a61(0x50b,_0x51eb06._0x14ba97,0x5ba,0x4d8)](_0x5b3ff7);!_0x36cb85&&(_0x36cb85={'id':_0x2e0135['id']??'tool-call-'+_0x5b3ff7,'type':_0x417c41(0x25d,_0x51eb06._0xd4eabc,_0x51eb06._0x1e0854,0x2d5),'function':{'name':_0x2e0135['function']?.[_0x3a4a61(0x449,_0x51eb06._0x5b832f,0x429,0x3c4)]??'','arguments':''}},this[_0x3a4a61(_0x51eb06._0x783d21,_0x51eb06._0x479bf2,_0x51eb06._0x3f04eb,0x31c)][_0x417c41(_0x51eb06._0x592604,_0x51eb06._0x43bdf6,_0x51eb06._0x40b537,_0x51eb06._0x24be90)](_0x5b3ff7,_0x36cb85),this[_0x3a4a61(0x312,_0x51eb06._0x3b25bb,0x3df,_0x51eb06._0x90b857)][_0x417c41(_0x51eb06._0x162bc8,_0x51eb06._0x46a97e,0x2f7,0x32d)](_0x36cb85));_0x2e0135['id']&&(_0x36cb85['id']=_0x2e0135['id']);_0x2e0135[_0x3a4a61(0x409,_0x51eb06._0x1c60ad,_0x51eb06._0x113d33,0x410)]?.['name']&&(_0x36cb85[_0x3a4a61(_0x51eb06._0x4739c7,0x3f8,_0x51eb06._0xe0beef,_0x51eb06._0x1a1005)][_0x3a4a61(_0x51eb06._0x54a3e7,_0x51eb06._0x3135ee,0x445,_0x51eb06._0x4d027c)]=_0x2e0135['function'][_0x3a4a61(0x3d9,0x45f,0x383,_0x51eb06._0x5adf66)]);!this['toolUseStartEmitted'][_0x3a4a61(0x2a9,_0x51eb06._0x4e6276,0x2c2,_0x51eb06._0x3bdb11)](_0x5b3ff7)&&_0x36cb85[_0x3a4a61(0x372,_0x51eb06._0x4cb86a,0x47d,_0x51eb06._0x1a1005)][_0x417c41(_0x51eb06._0x4c4657,_0x51eb06._0x351133,0x15a,0x1e5)][_0x3a4a61(_0x51eb06._0x5d19fe,0x3c5,_0x51eb06._0x2b8eb2,0x49f)]()['length']>0x0&&(_0x42d8f0[_0x3a4a61(0x50d,0x429,0x495,0x4a5)]({'type':_0x3a4a61(_0x51eb06._0x4d72a8,0x491,0x366,_0x51eb06._0x591f88),'id':_0x36cb85['id'],'index':_0x5b3ff7,'name':_0x36cb85[_0x417c41(0x1f4,0x23c,0x267,0x254)][_0x3a4a61(_0x51eb06._0x561b8c,_0x51eb06._0x2738c5,0x462,_0x51eb06._0x412cf7)]}),this['toolUseStartEmitted'][_0x417c41(_0x51eb06._0x1f187a,_0x51eb06._0x13e9ee,_0x51eb06._0x2f6c24,0x10d)](_0x5b3ff7));const _0x58cd80=_0x2e0135[_0x417c41(_0x51eb06._0x327d4a,_0x51eb06._0xd4eabc,_0x51eb06._0x5b0056,_0x51eb06._0x5582c1)]?.[_0x417c41(0x276,0x1ea,_0x51eb06._0x55dade,0x110)]??'';_0x58cd80[_0x417c41(0x3c4,0x2fd,_0x51eb06._0x3105d3,_0x51eb06._0x5cab1a)]>0x0&&(_0x36cb85[_0x3a4a61(0x45a,_0x51eb06._0x1f10ff,0x3e7,0x410)][_0x3a4a61(0x3bc,_0x51eb06._0x719dfa,0x2eb,0x3be)]+=_0x58cd80,_0x42d8f0[_0x417c41(0x2bd,_0x51eb06._0x396f6d,_0x51eb06._0x546d8b,0x373)]({'type':_0x417c41(0x278,_0x51eb06._0x43b2ac,0x193,_0x51eb06._0x470a79),'id':_0x36cb85['id'],'index':_0x5b3ff7,'inputDelta':_0x58cd80}));}_0x553f74['finish_reason']===_0x417c41(0x293,_0x51eb06._0x2c4d1c,0x202,_0x51eb06._0x4c5ab0)&&(this[_0x3a4a61(0x584,0x583,0x550,_0x51eb06._0x351178)]=_0x3a4a61(_0x51eb06._0x1491bd,0x32d,0x43a,0x3b9));}function _0x3a4a61(_0x3e6450,_0x5e6e42,_0x3dfe8c,_0x3abfe8){return _0x4de126(_0x3dfe8c,_0x5e6e42-_0x14969d._0x17069e,_0x3dfe8c-_0x14969d._0x2fba75,_0x3abfe8-_0x14969d._0x4f5a22);}return _0x42d8f0;}},OpenAiResponsesStreamParser=class{['callIdToOutputIndex']=new Map();['finalResponse'];[_0x4de126(0x12e,0x265,0x159,0x21d)]=new Map();[_0x4de126(0x2f7,0x188,0x163,0x24b)]=new Map();[_0x18ceca(0x48a,0x4e3,0x4ca,0x42b)]=new Map();[_0x4de126(0x1de,0x195,0x15e,0x1ae)];['responseTextParts']=new Map();[_0x18ceca(0x4c9,0x489,0x4cf,0x443)]=new Map();constructor(_0x29ded8){const _0x3c0c3e={_0x288dfa:0xf8,_0x3932ac:0xf4},_0x5e049d={_0x237606:0x1d9};function _0x1d8f36(_0x509551,_0x87c342,_0x28f007,_0x462d82){return _0x18ceca(_0x28f007,_0x462d82- -0x603,_0x28f007-0x90,_0x462d82-_0x5e049d._0x237606);}this[_0x1d8f36(-_0x3c0c3e._0x288dfa,-0x23,-_0x3c0c3e._0x288dfa,-_0x3c0c3e._0x3932ac)]=_0x29ded8;}['consumeSseEvent'](_0x5003ce){const _0x4d0681={_0x10ea8a:0x164,_0x293882:0xa7,_0x28a159:0x4e,_0x168d6c:0x171,_0x4fa206:0x1a9,_0x4451db:0x1e9,_0x4dc9eb:0x1c7,_0x337c42:0x16b,_0x117081:0x10e,_0x5306bd:0xca,_0x1648cd:0x57,_0x2ae870:0x76,_0x43b5a5:0x13c,_0x1579eb:0x85,_0x1e4229:0x17a,_0x27361b:0x140,_0x1c938b:0x3c,_0x5d15a4:0x4b,_0x3cfa22:0x10f,_0x36758a:0x1b,_0x3aefdc:0x79,_0x2e3003:0x5a,_0x35ba46:0xa8,_0x2768b0:0x4c,_0x5ead0b:0x13b,_0x102a17:0x4f},_0x232ca6={_0x18ab15:0x4f},_0x2dc272={_0xa52a6f:0x14c},_0x3cf7ca=_0x5003ce[_0x3f1bfa(_0x4d0681._0x10ea8a,0x9,_0x4d0681._0x293882,_0x4d0681._0x28a159)]('\x0a');function _0x45e1fe(_0x5e7524,_0x22377d,_0x13a05f,_0x5e03f0){return _0x18ceca(_0x22377d,_0x13a05f- -0x3b5,_0x13a05f-_0x2dc272._0xa52a6f,_0x5e03f0-0x4f);}const _0x15f9b5=_0x3cf7ca[_0x45e1fe(0xf2,_0x4d0681._0x168d6c,_0x4d0681._0x4fa206,_0x4d0681._0x4451db)](_0x1bffc1=>_0x1bffc1[_0x45e1fe(0x29c,0x116,0x1fc,0x14d)](_0x3f1bfa(0xb4,0x2f,0xf,0xea)))?.[_0x45e1fe(0x123,0x20e,_0x4d0681._0x4dc9eb,_0x4d0681._0x337c42)](0x6)[_0x3f1bfa(0x47,0x1d2,_0x4d0681._0x117081,0x16d)](),_0x206a1c=_0x3cf7ca[_0x3f1bfa(-_0x4d0681._0x5306bd,-0x124,-_0x4d0681._0x1648cd,_0x4d0681._0x2ae870)](_0x3856aa=>_0x3856aa[_0x3f1bfa(0x62,0x12f,0xe9,0x12b)](_0x3f1bfa(0x2d,-0x7f,-0x7b,0x67)))[_0x45e1fe(0x238,_0x4d0681._0x43b5a5,0x172,_0x4d0681._0x1579eb)](_0x10b85d=>_0x10b85d['slice'](0x5)[_0x3f1bfa(-0xff,0x45,-0x27,0x43)]())[_0x3f1bfa(_0x4d0681._0x10ea8a,0xd4,0x86,0x5e)]('\x0a')[_0x45e1fe(0x209,0x295,0x221,0x278)]();if(_0x206a1c[_0x3f1bfa(0xad,_0x4d0681._0x1e4229,_0x4d0681._0x27361b,0xae)]===0x0||_0x206a1c===_0x3f1bfa(_0x4d0681._0x1c938b,0x119,_0x4d0681._0x5d15a4,_0x4d0681._0x3cfa22))return[];const _0x7f6eb5=JSON[_0x3f1bfa(_0x4d0681._0x36758a,-_0x4d0681._0x3aefdc,0x26,0x99)](_0x206a1c);function _0x3f1bfa(_0xa77dac,_0x41fc8a,_0x4bf3e1,_0x189ae0){return _0x4de126(_0x41fc8a,_0x41fc8a-_0x232ca6._0x18ab15,_0x4bf3e1-0x119,_0x4bf3e1- -0x167);}return this[_0x3f1bfa(-_0x4d0681._0x2e3003,_0x4d0681._0x35ba46,_0x4d0681._0x2768b0,_0x4d0681._0x5ead0b)](_0x15f9b5??String(_0x7f6eb5[_0x3f1bfa(-0x6c,-0xd4,-_0x4d0681._0x102a17,0x84)]??''),_0x7f6eb5);}[_0x18ceca(0x579,0x4b3,0x4cb,0x540)](_0x46e9f4){const _0x4a1c7f={_0x3bb30a:0x357},_0x3cbd3d={_0x4c116c:0x56};function _0xe29fbb(_0x4ceb1d,_0x21a75b,_0x2d2fcc,_0x30dac4){return _0x4de126(_0x4ceb1d,_0x21a75b-_0x3cbd3d._0x4c116c,_0x2d2fcc-0xbc,_0x2d2fcc-0x25d);}return this['consumeEvent'](String(_0x46e9f4[_0xe29fbb(0x3e0,0x430,0x375,_0x4a1c7f._0x3bb30a)]??''),_0x46e9f4);}[_0x4de126(0x2b5,0x1a8,0x347,0x27e)](){const _0x2ab165={_0x3f3c55:0x14f,_0x42a488:0x93,_0x596113:0x19a,_0x53e266:0x1b7,_0x5c1a4e:0x158},_0x54d8ea={_0x112e19:0x1b1},_0x2b01eb={_0x705462:0x9a,_0x24625c:0x1c},_0x161b86=this[_0x14a16f(-_0x2ab165._0x3f3c55,-0xcc,-_0x2ab165._0x42a488,-0x12c)]??{'id':'resp-'+Date[_0x5f1f69(-_0x2ab165._0x596113,-0x267,-_0x2ab165._0x53e266,-0x20e)](),'object':_0x5f1f69(-0x209,-0xb5,-_0x2ab165._0x5c1a4e,-0x109),'status':'completed','output':this['buildPartialOutput'](),'usage':{'input_tokens':0x0,'output_tokens':0x0}};function _0x14a16f(_0x2e8ee1,_0x37e5ba,_0x1b0cd7,_0x1494fd){return _0x4de126(_0x37e5ba,_0x37e5ba-_0x2b01eb._0x705462,_0x1b0cd7-_0x2b01eb._0x24625c,_0x1494fd- -0x2dc);}function _0x5f1f69(_0x4d1de7,_0x57edd2,_0x2a18dc,_0x428334){return _0x4de126(_0x4d1de7,_0x57edd2-_0x54d8ea._0x112e19,_0x2a18dc-0xa,_0x2a18dc- -0x321);}return parseResponsesResponse(_0x161b86,this['request']);}[_0x4de126(0x108,0x29a,0x131,0x1b9)](){const _0x55af97={_0x1e95c7:0x25b,_0x2e0a2a:0x293},_0x1cdfda={_0x59f71f:0x6ef,_0x250d5c:0xd};function _0x5d6730(_0x3c6359,_0x482080,_0x29e982,_0x44526d){return _0x18ceca(_0x482080,_0x3c6359- -_0x1cdfda._0x59f71f,_0x29e982-_0x1cdfda._0x250d5c,_0x44526d-0x51);}return this[_0x5d6730(-0x1de,-_0x55af97._0x1e95c7,-0x22c,-_0x55af97._0x2e0a2a)]!==void 0x0;}[_0x4de126(0x25f,0x15a,0x1b8,0x1b3)](_0x3faf98,_0x1a4cf1){const _0x2d90ad={_0x454720:0x172,_0x3db5aa:0x13b,_0x4f52c7:0x163,_0x44f4b6:0xf3,_0x5127e8:0x29,_0x597b4a:0x112,_0x4c44db:0xfa,_0x18cbc1:0x13c,_0x246bcd:0xf2,_0xafb146:0x1a2,_0x410546:0xca,_0x8d2018:0x97,_0x26b41c:0xed,_0x28e86c:0x87,_0x3d077a:0x6a,_0x1e5d11:0x163,_0x3cb5c3:0x9e,_0x3b10d9:0x1e0,_0x2d561e:0x20c,_0x1df7c0:0x1cb,_0x18daac:0x9c,_0x4dec91:0xa4,_0x367c16:0x65,_0x40f675:0x2a,_0x59c5c4:0x27,_0x51ece9:0xcd,_0x34124f:0x286,_0x10230d:0x13a,_0x26dce1:0x255,_0x13eccc:0x186,_0x32dbb6:0x11b,_0x25943d:0x24,_0x540bfe:0x61,_0x1ad9fe:0x88,_0x463406:0xd9,_0x324170:0x8d,_0x9fb273:0x8e,_0x49bdb6:0x1f,_0x588424:0x43,_0x3bb03a:0xd8,_0x2a9b1e:0xba,_0x5efe78:0xd9,_0x360dc3:0x1d,_0x496753:0x10f,_0x407653:0xcf,_0x2903f6:0x5b,_0x2bf162:0xbe,_0x4b4f10:0x5c,_0x1d3ea5:0x12e,_0x5d9851:0x71,_0x473644:0x104,_0x4193f1:0x22,_0x102bbd:0xa4,_0x4cd066:0x122,_0x119dd1:0x236,_0x24a819:0xbb,_0x176b54:0xad,_0xa52041:0x7f,_0x57aa78:0xb3,_0x3679c7:0xa2,_0x2994de:0x93,_0x4b8d1e:0xc0,_0xe2d15e:0xc4,_0x74e596:0x7,_0x5e79f9:0x81,_0x51fcb0:0xc9,_0x1f4af7:0x16c,_0xf44890:0x291,_0x2a65d4:0x162,_0xc2db5e:0x4,_0x427e7d:0xc8,_0x5d6f3a:0x23b,_0x27c545:0x14e,_0x3248d8:0x106,_0x8d4c7c:0x21,_0x189234:0xb4,_0x37fb84:0x68,_0x3d1f51:0xcc,_0x5883ee:0x13b,_0xd2d2fd:0x1c7,_0x1c73e0:0x67,_0x3e94b2:0x75,_0x312d5a:0x18,_0xc9a427:0xcf,_0x46f4bf:0x1c,_0x1d49df:0xac,_0xde47ae:0x159,_0x213bae:0x66,_0x47804f:0x61,_0x1bf45c:0x2ed,_0x401ac1:0x85,_0x36e92f:0x1a1,_0x4cc80a:0xb7,_0x411078:0x14,_0x45968b:0x28,_0x51dae8:0x160,_0x18b603:0xfc,_0x5e6083:0x114,_0x3324d8:0x17a,_0x13b07e:0x97,_0x74e231:0xa7,_0x572b19:0xdd,_0x16a616:0x1ab,_0xd55dce:0x218,_0x23e6f0:0x20c,_0x4b8800:0x32,_0x5d0375:0xb8,_0x549563:0xba,_0x436cf1:0xe5,_0x41ebe7:0x46,_0x1a0175:0x61,_0x250c9f:0x306,_0x21f489:0x16,_0x2dd529:0xab,_0x22a7ed:0x122,_0x16f6c6:0x97,_0x3138c3:0x15,_0x2f95f9:0x5,_0x384a56:0x3a,_0x57a74d:0xef,_0x5a9498:0x138,_0x22243f:0x1e0,_0x5e21fb:0x2cd,_0x222161:0xee,_0x57e6b7:0x144,_0x3b0af1:0x16e,_0x14f956:0x181,_0x257bc6:0x247,_0x2c929b:0x9d,_0x58034b:0x100,_0x1e00f6:0x18,_0x4dd86f:0x24e,_0x3a2779:0x1ea,_0x566c75:0x19c,_0x3c9b53:0x1a3,_0x2378df:0x173,_0xbc5dea:0x27,_0x4ace0d:0x7e,_0x4a227a:0x79,_0x47a738:0xbc,_0x19d209:0xd9,_0x5c68d1:0x1a0,_0x335c59:0x176,_0x2f38a6:0x157,_0x29201f:0x147,_0x48357e:0x2b7,_0x11acea:0x1f0,_0x313434:0x235,_0x4e27a4:0x2cc,_0xac4c90:0x6,_0x4258d7:0x164,_0x18e37c:0xb5,_0x2bab07:0x2b,_0x67e91a:0x5a,_0x37cb02:0x2d,_0x3e4787:0x18b,_0x2880c6:0x6a,_0xdfead7:0xb,_0x5a7f9a:0xcb,_0x1e6f67:0x36,_0x2b0087:0x13e,_0x25d870:0xf6,_0x3f4a5f:0x170,_0x58335b:0xcb,_0x35359d:0xb9,_0x3fe89f:0xe9,_0x1c8dcf:0x5e,_0x3c82c8:0x8f,_0x5c5702:0x3a,_0x1c2e4e:0x99,_0x2612a4:0x13b,_0x13ba49:0xd7,_0xbe2e5c:0x10d,_0x3f2c33:0x195,_0x41e885:0x163,_0x4cddad:0xf0,_0x5dd377:0x98,_0x414c4f:0x59,_0x5eb507:0x12c,_0x1bd09b:0x145,_0x890d70:0x2e1,_0x591996:0x235,_0x5679e4:0x1bd,_0x1b091a:0x109,_0x53dd26:0x1f8,_0x32d5f0:0x31e,_0x34d633:0x1d5,_0xb82c5c:0x233,_0x48a6b6:0x140,_0x408520:0x52,_0x19f371:0x74,_0x4ad666:0x3c,_0x51095b:0x46,_0x3db529:0x13f,_0x3f2cb7:0xcb,_0x5a6424:0x1a9,_0x2c4377:0xc5,_0x27903b:0x183,_0x460d87:0x202,_0x35c592:0x1ce,_0x181e92:0x3f,_0x44f852:0x47,_0x55d4cf:0x163,_0x37e218:0x1d0,_0x20d567:0x1b5,_0x2026eb:0x117,_0x504289:0xe3,_0x4bdaa9:0x235,_0x1d0c16:0x3b,_0x569e77:0xb6,_0x56c29e:0xec,_0xd1d411:0x48,_0x56e3dc:0x12f,_0x51bf16:0x4d,_0x3d4782:0x2,_0x2d22e6:0x14f,_0x5e925d:0x13b,_0x420aa2:0xa,_0x37b691:0xdf,_0x5db598:0x219,_0x445b98:0x1ed,_0x2a334b:0x1ad,_0x4a99e0:0x230,_0x478bb4:0xab,_0x4f4c10:0x84,_0x1f896a:0x7,_0x3e3bc1:0x177,_0x2dbe17:0xbf,_0x4e4824:0xf2,_0x10e612:0xa9,_0x10da43:0x22b,_0x2f9c7f:0xa,_0x3126b8:0x274,_0x262dfc:0x17a,_0x59aae1:0x225,_0x63e5f7:0x1c3,_0x4dab20:0x235,_0x1d1f7d:0x2ee,_0x412588:0x2ae,_0x3172e7:0x1c0,_0x3d2f8c:0xe,_0x18b97c:0x2fd,_0x9a16d8:0x236,_0x5e6518:0x62,_0x458626:0x19,_0x19d2b0:0x17c,_0x3015d6:0x4b,_0x483ea2:0xd8,_0x5937d4:0x1eb,_0x5e9122:0x214,_0x26041b:0x259,_0x98c032:0x13b,_0x1f8b8e:0x1d7,_0x26dd3f:0xea,_0x46d228:0x72,_0x42f40b:0x1fe,_0x29767b:0xb7,_0x5b8355:0x59,_0x3dfc5e:0x256,_0x36ef84:0x2fa,_0x568bfb:0x129,_0x418aa8:0x1f2,_0x42379a:0x13a,_0x3c9197:0x150,_0x41da7a:0x17,_0x1d86d3:0x173,_0x38218e:0x10f,_0xb223be:0xa5,_0x54a484:0x25,_0x3565c4:0x26,_0x23638f:0x82,_0x1f0cf9:0xa5,_0x1447b1:0x10b,_0x3d9fee:0x140,_0x3b860f:0x115,_0x229818:0xbb,_0x5094e2:0xa5,_0x5d5263:0x75,_0x38aaac:0x1c,_0x56c66d:0x31,_0x1c5a2b:0x9a,_0x596e5a:0x102,_0xacde04:0x100},_0x1e3721={_0x42f2f3:0x3c1,_0x2a5145:0x115,_0x24bf74:0x117};switch(_0x3faf98){case'response.output_text.delta':{const _0x439310=typeof _0x1a4cf1[_0x345aa5(0x132,_0x2d90ad._0x454720,_0x2d90ad._0x3db5aa,0x183)]===_0x345aa5(0x1ff,0xde,_0x2d90ad._0x4f52c7,0x253)?_0x1a4cf1[_0x3c1488(-_0x2d90ad._0x44f4b6,0xbd,0x83,-0x21)]:0x0,_0x560dcf=typeof _0x1a4cf1[_0x3c1488(-0x28,-_0x2d90ad._0x5127e8,_0x2d90ad._0x597b4a,0xa1)]===_0x3c1488(-0xcb,-_0x2d90ad._0x4c44db,-0xa2,-0x97)?_0x1a4cf1['delta']:'';if(_0x560dcf['length']>0x0){const _0x3f8204=this['responseTextParts'][_0x3c1488(0x106,_0x2d90ad._0x18cbc1,0x8d,_0x2d90ad._0x246bcd)](_0x439310)??[];return _0x3f8204[_0x3c1488(_0x2d90ad._0xafb146,0xaa,-0x17,0xbf)](_0x560dcf),this[_0x345aa5(_0x2d90ad._0x410546,0x119,_0x2d90ad._0x8d2018,_0x2d90ad._0x26b41c)]['set'](_0x439310,_0x3f8204),[{'type':_0x3c1488(0x11b,-0x11,0x150,_0x2d90ad._0x28e86c),'index':_0x439310,'text':_0x560dcf}];}break;}case _0x345aa5(0xa8,0x4e,0x108,_0x2d90ad._0x3d077a):{const _0x3be75c=typeof _0x1a4cf1['output_index']===_0x345aa5(0xac,0x141,_0x2d90ad._0x1e5d11,0xe9)?_0x1a4cf1[_0x3c1488(-_0x2d90ad._0x3cb5c3,0x3d,-0xb2,-0x21)]:void 0x0,_0x1205b1=_0x1a4cf1[_0x345aa5(_0x2d90ad._0x3b10d9,0x248,_0x2d90ad._0x2d561e,_0x2d90ad._0x1df7c0)];if(_0x1205b1?.[_0x3c1488(-_0x2d90ad._0x18daac,-0x81,-0x12a,-_0x2d90ad._0x4dec91)]===_0x3c1488(-_0x2d90ad._0x367c16,-0xc,-_0x2d90ad._0x40f675,0x42)&&_0x1205b1['call_id']&&_0x1205b1['name'])return this[_0x3c1488(-_0x2d90ad._0x59c5c4,0x1f,-_0x2d90ad._0x51ece9,-0x94)][_0x345aa5(_0x2d90ad._0x34124f,0x16d,0x235,0x2ff)](_0x1205b1[_0x345aa5(-0x45,0x43,0x8d,0xf7)],{'id':_0x1205b1[_0x345aa5(0x13a,_0x2d90ad._0x10230d,0x8d,0x4)],'type':_0x345aa5(0xe4,_0x2d90ad._0x26dce1,_0x2d90ad._0x13eccc,0x1d6),'function':{'name':_0x1205b1['name'],'arguments':''}}),_0x3be75c!==void 0x0&&(this[_0x3c1488(0xa3,_0x2d90ad._0x32dbb6,-_0x2d90ad._0x25943d,_0x2d90ad._0x540bfe)][_0x3c1488(_0x2d90ad._0x1ad9fe,0xa,0x180,_0x2d90ad._0x463406)](_0x3be75c,_0x1205b1[_0x345aa5(0x81,0x148,_0x2d90ad._0x324170,_0x2d90ad._0x9fb273)]),this[_0x3c1488(0x49,-0xf5,_0x2d90ad._0x49bdb6,-_0x2d90ad._0x588424)][_0x3c1488(_0x2d90ad._0x3bb03a,0x1a,_0x2d90ad._0x2a9b1e,_0x2d90ad._0x5efe78)](_0x1205b1[_0x3c1488(-0x1a,_0x2d90ad._0x360dc3,-_0x2d90ad._0x496753,-_0x2d90ad._0x407653)],_0x3be75c)),[{'type':_0x3c1488(_0x2d90ad._0x2903f6,_0x2d90ad._0x2bf162,0xe2,_0x2d90ad._0x4b4f10),'id':_0x1205b1[_0x3c1488(-0x112,-_0x2d90ad._0x1d3ea5,-_0x2d90ad._0x5d9851,-_0x2d90ad._0x407653)],'index':_0x3be75c??0x0,'name':_0x1205b1[_0x3c1488(-0xcb,-0x6a,-_0x2d90ad._0x473644,-_0x2d90ad._0x4193f1)]}];if(_0x1205b1?.[_0x3c1488(-0x186,-0x73,0x14,-_0x2d90ad._0x102bbd)]===_0x345aa5(0x5e,0x1e,0xe2,_0x2d90ad._0x4cd066)&&_0x1205b1['id']){const _0xc29194=this['getOrCreateReasoningItem'](_0x1205b1['id'],_0x3be75c);_0x3be75c!==void 0x0&&this['outputIndexToReasoningId'][_0x345aa5(_0x2d90ad._0x119dd1,0x2a8,0x235,0x2ba)](_0x3be75c,_0xc29194['id']);}break;}case _0x345aa5(_0x2d90ad._0x24a819,0x126,_0x2d90ad._0x176b54,_0x2d90ad._0xa52041):{const _0x3f3e9d=typeof _0x1a4cf1['call_id']==='string'?_0x1a4cf1[_0x345aa5(-0x1a,-0x3a,0x8d,-0x3d)]:typeof _0x1a4cf1[_0x3c1488(0x5c,_0x2d90ad._0x57aa78,-_0x2d90ad._0x3679c7,-0x21)]===_0x3c1488(-_0x2d90ad._0x2994de,_0x2d90ad._0x4b8d1e,-_0x2d90ad._0xe2d15e,_0x2d90ad._0x74e596)?this['outputIndexToCallId'][_0x3c1488(0x18,_0x2d90ad._0x5e79f9,_0x2d90ad._0x51fcb0,0xf2)](_0x1a4cf1['output_index']):void 0x0,_0x31a418=typeof _0x1a4cf1[_0x345aa5(_0x2d90ad._0x1f4af7,0x185,0x1fd,_0x2d90ad._0xf44890)]==='string'?_0x1a4cf1['delta']:'',_0x14cb2f=_0x3f3e9d?this[_0x345aa5(_0x2d90ad._0x2a65d4,_0x2d90ad._0xc2db5e,_0x2d90ad._0x427e7d,0xd3)]['get'](_0x3f3e9d):void 0x0;if(_0x14cb2f&&_0x31a418['length']>0x0)return _0x14cb2f[_0x345aa5(0x115,0x154,_0x2d90ad._0x13eccc,_0x2d90ad._0x5d6f3a)]['arguments']+=_0x31a418,[{'type':_0x345aa5(0x130,0x19c,0x1b8,0x26e),'id':_0x14cb2f['id'],'index':this[_0x345aa5(_0x2d90ad._0x27c545,0x1ec,0x119,0x1ad)][_0x3c1488(0x176,0x8d,0x155,_0x2d90ad._0x246bcd)](_0x14cb2f['id'])??(typeof _0x1a4cf1[_0x3c1488(-0x16,-0xf9,-_0x2d90ad._0x3248d8,-_0x2d90ad._0x8d4c7c)]===_0x3c1488(_0x2d90ad._0x189234,-_0x2d90ad._0x37fb84,0x34,_0x2d90ad._0x74e596)?_0x1a4cf1[_0x345aa5(_0x2d90ad._0x3d1f51,0x7c,_0x2d90ad._0x5883ee,0xdf)]:0x0),'inputDelta':_0x31a418}];break;}case _0x345aa5(0x1ad,_0x2d90ad._0xd2d2fd,0x1e4,0x1e7):{const _0x128eec=typeof _0x1a4cf1[_0x3c1488(-_0x2d90ad._0x1c73e0,-0xea,0x21,-0xcf)]==='string'?_0x1a4cf1[_0x3c1488(-_0x2d90ad._0x3e94b2,_0x2d90ad._0x312d5a,-0x15f,-_0x2d90ad._0xc9a427)]:typeof _0x1a4cf1[_0x3c1488(-0xe1,_0x2d90ad._0x46f4bf,_0x2d90ad._0x1d49df,-0x21)]===_0x345aa5(0x15c,_0x2d90ad._0xde47ae,0x163,0x226)?this[_0x3c1488(-0x66,-_0x2d90ad._0x213bae,-0x22,_0x2d90ad._0x47804f)][_0x345aa5(0x1a1,_0x2d90ad._0x1bf45c,0x24e,0x1a7)](_0x1a4cf1['output_index']):void 0x0,_0x3d0a59=_0x128eec?this[_0x3c1488(-0x135,-_0x2d90ad._0x401ac1,-0xdb,-0x94)][_0x3c1488(0x17,_0x2d90ad._0x36e92f,0x2e,0xf2)](_0x128eec):void 0x0;_0x3d0a59&&typeof _0x1a4cf1[_0x3c1488(-_0x2d90ad._0x4cc80a,_0x2d90ad._0x411078,0x25,-_0x2d90ad._0x45968b)]==='string'&&(_0x3d0a59[_0x345aa5(0xef,0xc3,0x186,0x1c3)][_0x345aa5(_0x2d90ad._0x51dae8,0x82,0x134,0x19f)]=_0x1a4cf1[_0x345aa5(_0x2d90ad._0x18b603,_0x2d90ad._0x5e6083,0x134,_0x2d90ad._0x3324d8)]);break;}case _0x345aa5(0x244,_0x2d90ad._0x13b07e,0x173,0xd9):{const _0x82ee2f=typeof _0x1a4cf1['output_index']===_0x3c1488(-_0x2d90ad._0x74e231,0x81,_0x2d90ad._0x572b19,0x7)?_0x1a4cf1[_0x345aa5(0x1ca,_0x2d90ad._0x3324d8,0x13b,0x163)]:void 0x0,_0x440cc3=_0x1a4cf1[_0x345aa5(_0x2d90ad._0x16a616,_0x2d90ad._0xd55dce,_0x2d90ad._0x23e6f0,0x1ca)];if(_0x440cc3?.[_0x345aa5(_0x2d90ad._0x4b8800,0x18d,_0x2d90ad._0x5d0375,0x162)]==='function_call'){const _0x4fd645=_0x440cc3[_0x3c1488(-_0x2d90ad._0x549563,-0x1e,-0x62,-0xcf)]??(_0x82ee2f!==void 0x0?this[_0x3c1488(_0x2d90ad._0x436cf1,_0x2d90ad._0x41ebe7,-0x31,_0x2d90ad._0x1a0175)][_0x345aa5(_0x2d90ad._0x250c9f,0x210,0x24e,0x252)](_0x82ee2f):void 0x0),_0x56fbe1=_0x4fd645?this['toolCalls'][_0x3c1488(0x171,_0x2d90ad._0x21f489,0x99,_0x2d90ad._0x246bcd)](_0x4fd645):void 0x0;_0x56fbe1&&typeof _0x440cc3[_0x345aa5(0x174,_0x2d90ad._0x2dd529,0x134,0x92)]===_0x3c1488(-_0x2d90ad._0x22a7ed,-0x14d,-0xce,-_0x2d90ad._0x16f6c6)&&(_0x56fbe1['function'][_0x345aa5(0x207,0x207,0x134,0x20f)]=_0x440cc3['arguments']);break;}if(_0x440cc3?.[_0x3c1488(-0x113,-0x123,-_0x2d90ad._0x3138c3,-0xa4)]==='reasoning'&&_0x440cc3['id']){const _0x1893f0=this[_0x3c1488(0xb9,0x60,0x76,0x59)](_0x440cc3['id'],_0x82ee2f);typeof _0x440cc3[_0x345aa5(0x124,0xef,0xbd,_0x2d90ad._0x2f95f9)]==='string'&&(_0x1893f0['encryptedContent']=_0x440cc3[_0x345aa5(0x156,_0x2d90ad._0x384a56,0xbd,_0x2d90ad._0x57a74d)]);if(Array[_0x345aa5(_0x2d90ad._0x5a9498,0x2cb,_0x2d90ad._0x22243f,_0x2d90ad._0x5e21fb)](_0x440cc3[_0x345aa5(_0x2d90ad._0x222161,0x6f,_0x2d90ad._0x57e6b7,0x113)]))for(let _0x57025c=0x0;_0x57025c<_0x440cc3[_0x345aa5(_0x2d90ad._0x3b0af1,0x21b,0x144,0x8b)][_0x345aa5(_0x2d90ad._0x14f956,0x26c,_0x2d90ad._0x257bc6,0x30e)];_0x57025c+=0x1){const _0x406c05=_0x440cc3[_0x3c1488(-_0x2d90ad._0x74e596,_0x2d90ad._0x2c929b,-_0x2d90ad._0x58034b,-_0x2d90ad._0x1e00f6)][_0x57025c];_0x406c05['type']===_0x345aa5(_0x2d90ad._0x4dd86f,0x210,_0x2d90ad._0x3a2779,0x285)&&typeof _0x406c05[_0x345aa5(_0x2d90ad._0x566c75,0x253,0x211,_0x2d90ad._0x3c9b53)]===_0x345aa5(_0x2d90ad._0x2378df,0x199,0xc5,0xf9)&&_0x1893f0[_0x3c1488(-_0x2d90ad._0xbc5dea,-0xc8,-_0x2d90ad._0x4ace0d,-_0x2d90ad._0x4a227a)][_0x3c1488(0x1b7,_0x2d90ad._0x47a738,0x158,_0x2d90ad._0x19d209)](_0x57025c,_0x406c05[_0x345aa5(_0x2d90ad._0x5c68d1,0x2bb,0x211,_0x2d90ad._0x335c59)]);}typeof _0x440cc3['text']==='string'&&_0x1893f0[_0x3c1488(0x157,_0x2d90ad._0x2f38a6,_0x2d90ad._0x29201f,0xc9)][_0x345aa5(_0x2d90ad._0x48357e,_0x2d90ad._0x11acea,_0x2d90ad._0x313434,_0x2d90ad._0x4e27a4)](0x0,_0x440cc3[_0x3c1488(-_0x2d90ad._0xac4c90,_0x2d90ad._0x4258d7,0x169,_0x2d90ad._0x18e37c)]);}break;}case _0x3c1488(-0x5,_0x2d90ad._0x2bab07,_0x2d90ad._0x67e91a,-0x27):{const _0x6be050=typeof _0x1a4cf1[_0x3c1488(0x15f,_0x2d90ad._0x37cb02,0x131,0xa1)]==='string'?_0x1a4cf1[_0x3c1488(0x128,_0x2d90ad._0x3e4787,_0x2d90ad._0x2880c6,0xa1)]:'',_0x485993=typeof _0x1a4cf1[_0x3c1488(0x19d,0xa4,_0x2d90ad._0xdfead7,_0x2d90ad._0x5a7f9a)]===_0x3c1488(-_0x2d90ad._0x1e6f67,-0x183,-_0x2d90ad._0x2b0087,-0x97)?_0x1a4cf1[_0x3c1488(_0x2d90ad._0x25d870,_0x2d90ad._0x3f4a5f,0x158,_0x2d90ad._0x58335b)]:typeof _0x1a4cf1['output_index']===_0x3c1488(-0x3e,_0x2d90ad._0x35359d,0xb2,0x7)?this[_0x3c1488(0xa0,_0x2d90ad._0x3fe89f,-_0x2d90ad._0x1c8dcf,_0x2d90ad._0x3c82c8)]['get'](_0x1a4cf1[_0x3c1488(_0x2d90ad._0x51fcb0,_0x2d90ad._0x5c5702,-0x106,-0x21)]):void 0x0,_0x58ec7b=typeof _0x1a4cf1[_0x345aa5(0xe1,_0x2d90ad._0x1c2e4e,_0x2d90ad._0x2612a4,_0x2d90ad._0x13ba49)]==='number'?_0x1a4cf1[_0x345aa5(_0x2d90ad._0xbe2e5c,0xec,0x13b,0x20d)]:0x0,_0x447794=typeof _0x1a4cf1[_0x345aa5(0x313,0x239,0x255,_0x2d90ad._0x3f2c33)]===_0x345aa5(0x161,0xf5,_0x2d90ad._0x41e885,0x1c5)?_0x1a4cf1['summary_index']:0x0;if(_0x485993&&_0x6be050['length']>0x0){const _0x53334a=this[_0x3c1488(0xf1,_0x2d90ad._0x4cddad,_0x2d90ad._0x5dd377,_0x2d90ad._0x414c4f)](_0x485993,_0x58ec7b);_0x53334a[_0x3c1488(-_0x2d90ad._0x5eb507,-_0x2d90ad._0x1bd09b,-0x169,-0x79)][_0x345aa5(0x286,_0x2d90ad._0x890d70,_0x2d90ad._0x591996,_0x2d90ad._0x5679e4)](_0x447794,''+(_0x53334a[_0x345aa5(0x18a,0x5d,0xe3,_0x2d90ad._0x1b091a)][_0x345aa5(_0x2d90ad._0x53dd26,_0x2d90ad._0x32d5f0,_0x2d90ad._0x4dd86f,0x1e9)](_0x447794)??'')+_0x6be050);if(isUserVisibleReasoning(this[_0x345aa5(_0x2d90ad._0x34d633,_0x2d90ad._0xb82c5c,0x14e,0x82)]))return[{'type':_0x3c1488(-_0x2d90ad._0x48a6b6,_0x2d90ad._0x408520,-_0x2d90ad._0x4a227a,-_0x2d90ad._0x19f371),'delta':_0x6be050,'itemId':_0x485993,'outputIndex':_0x58ec7b,'summaryIndex':_0x447794}];}break;}case'response.reasoning_summary_text.done':{const _0x60124d=typeof _0x1a4cf1[_0x3c1488(_0x2d90ad._0x4ad666,_0x2d90ad._0x51095b,_0x2d90ad._0x3db529,_0x2d90ad._0x3f2cb7)]===_0x345aa5(_0x2d90ad._0x5a6424,0x14d,_0x2d90ad._0x2c4377,0x19d)?_0x1a4cf1[_0x345aa5(_0x2d90ad._0x27903b,0x221,0x227,_0x2d90ad._0x460d87)]:typeof _0x1a4cf1[_0x345aa5(0x138,0xb3,0x13b,_0x2d90ad._0x35c592)]==='number'?this['outputIndexToReasoningId'][_0x3c1488(0x130,0xe2,0x1ac,_0x2d90ad._0x246bcd)](_0x1a4cf1['output_index']):void 0x0,_0x358c3c=typeof _0x1a4cf1[_0x3c1488(-0x7c,_0x2d90ad._0x181e92,_0x2d90ad._0x44f852,-_0x2d90ad._0x8d4c7c)]==='number'?_0x1a4cf1[_0x345aa5(0x9b,0x123,0x13b,0x107)]:0x0,_0x5ad837=typeof _0x1a4cf1['summary_index']===_0x345aa5(0xe7,0x142,_0x2d90ad._0x55d4cf,0x201)?_0x1a4cf1[_0x3c1488(0x1e1,0x17,_0x2d90ad._0x37e218,0xf9)]:0x0,_0x37ec92=typeof _0x1a4cf1['text']==='string'?_0x1a4cf1['text']:'';_0x60124d&&this[_0x345aa5(0x185,0x1c9,_0x2d90ad._0x20d567,0x25d)](_0x60124d,_0x358c3c)[_0x345aa5(_0x2d90ad._0x2026eb,0xe6,_0x2d90ad._0x504289,0x17b)][_0x345aa5(0x289,0x1c9,_0x2d90ad._0x4bdaa9,_0x2d90ad._0x13eccc)](_0x5ad837,_0x37ec92);break;}case _0x3c1488(_0x2d90ad._0x1d0c16,0x51,0x3a,_0x2d90ad._0x569e77):{const _0x24cbc0=typeof _0x1a4cf1[_0x3c1488(-0x10,_0x2d90ad._0x47a738,0x14f,0xa1)]===_0x345aa5(_0x2d90ad._0x56c29e,_0x2d90ad._0xd1d411,0xc5,_0x2d90ad._0x56e3dc)?_0x1a4cf1[_0x3c1488(_0x2d90ad._0x1d3ea5,0xc9,_0x2d90ad._0x37cb02,0xa1)]:'',_0x25b611=typeof _0x1a4cf1[_0x3c1488(_0x2d90ad._0x51bf16,0x27,0x136,0xcb)]===_0x3c1488(-_0x2d90ad._0x3d4782,0x29,-0x13,-0x97)?_0x1a4cf1[_0x3c1488(_0x2d90ad._0x2d22e6,0xa9,0x21,_0x2d90ad._0x5a7f9a)]:typeof _0x1a4cf1[_0x345aa5(0xf6,_0x2d90ad._0x410546,_0x2d90ad._0x5e925d,_0x2d90ad._0x10230d)]===_0x3c1488(0x79,_0x2d90ad._0x420aa2,-_0x2d90ad._0x37b691,_0x2d90ad._0x74e596)?this[_0x345aa5(_0x2d90ad._0x5db598,_0x2d90ad._0x445b98,0x1eb,_0x2d90ad._0x2a334b)][_0x345aa5(0x21b,_0x2d90ad._0x4a99e0,0x24e,0x1cf)](_0x1a4cf1[_0x3c1488(_0x2d90ad._0x67e91a,_0x2d90ad._0x478bb4,_0x2d90ad._0x4f4c10,-0x21)]):void 0x0,_0x201a31=typeof _0x1a4cf1[_0x3c1488(0x9c,0x63,-_0x2d90ad._0x3d1f51,-0x21)]===_0x3c1488(-0x3e,-0x79,-0x24,_0x2d90ad._0x1f896a)?_0x1a4cf1[_0x345aa5(_0x2d90ad._0x3e3bc1,0x120,0x13b,0x177)]:0x0,_0xf4f79b=typeof _0x1a4cf1[_0x345aa5(0xf0,_0x2d90ad._0x2dbe17,0xa3,_0x2d90ad._0x4e4824)]===_0x345aa5(_0x2d90ad._0x10e612,0x11f,0x163,_0x2d90ad._0x10da43)?_0x1a4cf1[_0x3c1488(-_0x2d90ad._0x2f9c7f,-0x2c,-0x115,-_0x2d90ad._0x35359d)]:0x0;if(_0x25b611&&_0x24cbc0[_0x345aa5(0x163,_0x2d90ad._0x3126b8,0x247,0x1bb)]>0x0){const _0x8f7a7b=this[_0x345aa5(_0x2d90ad._0x262dfc,0x148,_0x2d90ad._0x20d567,0x284)](_0x25b611,_0x201a31);_0x8f7a7b[_0x345aa5(0x1f5,0x204,_0x2d90ad._0x59aae1,0x244)][_0x345aa5(0x2ce,_0x2d90ad._0x63e5f7,_0x2d90ad._0x4dab20,0x183)](_0xf4f79b,''+(_0x8f7a7b[_0x345aa5(_0x2d90ad._0x1d1f7d,0x156,0x225,_0x2d90ad._0x412588)][_0x3c1488(0x1c6,0x186,_0x2d90ad._0x3172e7,_0x2d90ad._0x246bcd)](_0xf4f79b)??'')+_0x24cbc0);if(isUserVisibleReasoning(this[_0x3c1488(0xd7,0xdc,0x5f,-_0x2d90ad._0x3d2f8c)]))return[{'type':_0x345aa5(0x1c3,0x211,0x140,0x188),'contentIndex':_0xf4f79b,'delta':_0x24cbc0,'itemId':_0x25b611,'outputIndex':_0x201a31}];}break;}case _0x345aa5(_0x2d90ad._0x18b97c,0x190,_0x2d90ad._0x9a16d8,0x19b):{const _0x1ead66=typeof _0x1a4cf1[_0x3c1488(0x15b,0x154,_0x2d90ad._0x5e6518,0xcb)]===_0x345aa5(0x16,0x79,0xc5,_0x2d90ad._0x27903b)?_0x1a4cf1[_0x3c1488(_0x2d90ad._0x458626,_0x2d90ad._0x19d2b0,_0x2d90ad._0x312d5a,0xcb)]:typeof _0x1a4cf1[_0x3c1488(0x4c,-_0x2d90ad._0x3015d6,-0xd4,-0x21)]===_0x3c1488(_0x2d90ad._0x483ea2,0x34,-0x25,0x7)?this[_0x345aa5(0x292,0x195,_0x2d90ad._0x5937d4,_0x2d90ad._0x5e9122)][_0x345aa5(0x1ee,_0x2d90ad._0x26041b,0x24e,0x1de)](_0x1a4cf1[_0x345aa5(0x195,_0x2d90ad._0x5e79f9,_0x2d90ad._0x98c032,_0x2d90ad._0x1f8b8e)]):void 0x0,_0x488186=typeof _0x1a4cf1['output_index']===_0x345aa5(0x21b,0x17d,0x163,0xb8)?_0x1a4cf1['output_index']:0x0,_0x3efc26=typeof _0x1a4cf1['content_index']===_0x3c1488(-_0x2d90ad._0x2903f6,_0x2d90ad._0x1a0175,-_0x2d90ad._0x8d4c7c,_0x2d90ad._0x74e596)?_0x1a4cf1[_0x3c1488(-0x185,-_0x2d90ad._0x26dd3f,-_0x2d90ad._0x46d228,-_0x2d90ad._0x35359d)]:0x0,_0x379fd4=typeof _0x1a4cf1['text']==='string'?_0x1a4cf1[_0x345aa5(0x232,_0x2d90ad._0x42f40b,0x211,0x150)]:'';_0x1ead66&&this[_0x3c1488(0x52,_0x2d90ad._0x29767b,_0x2d90ad._0x4cddad,_0x2d90ad._0x5b8355)](_0x1ead66,_0x488186)[_0x345aa5(0x2fd,0x14d,_0x2d90ad._0x59aae1,0x2a7)][_0x345aa5(_0x2d90ad._0x3dfc5e,_0x2d90ad._0x36ef84,0x235,0x2fd)](_0x3efc26,_0x379fd4);break;}case _0x345aa5(0x231,_0x2d90ad._0x568bfb,_0x2d90ad._0x418aa8,0x162):{this[_0x345aa5(_0x2d90ad._0x42379a,0xc0,_0x2d90ad._0x3c9197,0xc8)]=_0x1a4cf1['response'];break;}case _0x3c1488(0x41,0x79,_0x2d90ad._0x41da7a,0x64):{const _0x4615ad=_0x1a4cf1['response'];throw new ProviderStreamEventError(_0x4615ad?.[_0x3c1488(-_0x2d90ad._0x1d86d3,-0xa4,-_0x2d90ad._0x38218e,-_0x2d90ad._0xb223be)]?.[_0x3c1488(-0x16,0x80,-0x4a,_0x2d90ad._0x54a484)]??_0x345aa5(_0x2d90ad._0x5eb507,0x19c,0x125,0x1d5),{'code':_0x4615ad?.[_0x3c1488(_0x2d90ad._0x3565c4,-0x25,-_0x2d90ad._0x23638f,-_0x2d90ad._0x1f0cf9)]?.[_0x345aa5(_0x2d90ad._0x1447b1,0x19b,0x14a,_0x2d90ad._0x3d9fee)],'retryable':!![]});}case _0x3c1488(-0x131,-_0x2d90ad._0x3b860f,-_0x2d90ad._0x229818,-_0x2d90ad._0x5094e2):{const _0x27ff9c=_0x1a4cf1[_0x345aa5(0x191,0xfe,_0x2d90ad._0x29767b,_0x2d90ad._0x5d5263)];throw new ProviderStreamEventError(_0x27ff9c?.[_0x3c1488(-0x2c,_0x2d90ad._0x38aaac,-_0x2d90ad._0x56c66d,_0x2d90ad._0x54a484)]??_0x3c1488(-0x4,0x29,-0x91,-0x37),{'code':_0x27ff9c?.['code'],'retryable':!![],'status':typeof _0x1a4cf1[_0x345aa5(_0x2d90ad._0x35359d,_0x2d90ad._0x1c5a2b,_0x2d90ad._0x596e5a,0x18)]===_0x345aa5(0x80,_0x2d90ad._0xacde04,_0x2d90ad._0x1e5d11,0x1c7)?_0x1a4cf1[_0x3c1488(-0x8f,-0x8c,-0x102,-0x5a)]:void 0x0});}}function _0x3c1488(_0x12be64,_0x261c14,_0x1bcc55,_0x1fc8c8){return _0x4de126(_0x12be64,_0x261c14-0x1e2,_0x1bcc55-0x121,_0x1fc8c8- -0x1bc);}function _0x345aa5(_0x23c852,_0x5ef89f,_0x49db05,_0x58419f){return _0x18ceca(_0x23c852,_0x49db05- -_0x1e3721._0x42f2f3,_0x49db05-_0x1e3721._0x2a5145,_0x58419f-_0x1e3721._0x24bf74);}return[];}[_0x18ceca(0x66c,0x5d8,0x5f4,0x57d)](){const _0x33a017={_0x2db9e8:0xb4,_0x323e67:0x198,_0x701b38:0x131,_0x3b2043:0xdf,_0x48d98f:0x278,_0x25d634:0x1b2,_0x5836a3:0x451,_0x480516:0x4e5,_0x333386:0x5bc,_0x5c3fee:0x263,_0x528d6d:0x26e,_0xf47630:0x17f,_0x11f569:0x24c,_0x328643:0x4f4,_0x257c55:0x2e4,_0x3cd040:0x2a4,_0x4d28fc:0x35c,_0x5abfa2:0x295,_0x2fe551:0x366,_0x32b25f:0x696,_0x2beb72:0x3e8,_0x57655c:0xcd,_0x2252ea:0x204,_0x20bc98:0x55a,_0x4f1da4:0x1fe,_0x1d3b07:0x2da,_0x58bebc:0x235,_0x55ddb3:0x1ea,_0x3e918f:0x13d,_0x297524:0x5e1,_0x17188e:0x63a,_0x4d2364:0x574,_0x57d544:0x49a,_0x7f1b51:0x580,_0x351811:0x5d4,_0x3fe0d9:0x5a0,_0x33daa0:0x4c1,_0x46de2a:0x5d8,_0x3adeaf:0x1f2,_0x31f8ce:0x2c3,_0x207314:0x485},_0x43e25f={_0x232aec:0x68,_0x465fad:0x2},_0x54d1e1={_0x13aec4:0x18d,_0x4b3b32:0x3};function _0x43d595(_0x51062c,_0x263548,_0x5d0d9d,_0x3d40a3){return _0x4de126(_0x51062c,_0x263548-_0x54d1e1._0x13aec4,_0x5d0d9d-0x13,_0x263548- -_0x54d1e1._0x4b3b32);}const _0x31a99e=[];for(const [_0x5f5149,_0x414622]of this[_0x43d595(0xf9,0xf4,_0x33a017._0x2db9e8,_0x33a017._0x323e67)][_0x43d595(_0x33a017._0x701b38,0x16f,_0x33a017._0x3b2043,0xc6)]()){const _0xb00114=_0x414622[_0x43d595(0x223,0x1ea,0x18c,0x198)]('');if(_0xb00114['length']===0x0)continue;_0x31a99e[_0x43d595(0x295,_0x33a017._0x48d98f,0x1da,_0x33a017._0x25d634)]({'index':_0x5f5149,'item':{'type':_0x3aa4b2(_0x33a017._0x5836a3,0x577,0x4da,_0x33a017._0x480516),'role':_0x3aa4b2(_0x33a017._0x333386,0x495,0x505,0x549),'content':[{'type':_0x43d595(0x27a,0x1da,0x276,_0x33a017._0x5c3fee),'text':_0xb00114}]}});}function _0x3aa4b2(_0x3db2fb,_0x58c8cb,_0xa5b797,_0x218bee){return _0x18ceca(_0x218bee,_0xa5b797- -_0x43e25f._0x232aec,_0xa5b797-_0x43e25f._0x465fad,_0x218bee-0x176);}for(const _0x4a75f9 of this[_0x43d595(_0x33a017._0x528d6d,_0x33a017._0xf47630,_0x33a017._0x11f569,0x170)]['values']()){_0x31a99e[_0x3aa4b2(_0x33a017._0x328643,0x520,0x574,0x527)]({'index':_0x4a75f9['outputIndex']??_0x31a99e[_0x43d595(_0x33a017._0x257c55,_0x33a017._0x3cd040,_0x33a017._0x4d28fc,_0x33a017._0x5abfa2)],'item':{'type':_0x3aa4b2(0x3ed,_0x33a017._0x2fe551,0x43b,0x470),'id':_0x4a75f9['id'],..._0x4a75f9[_0x3aa4b2(0x531,0x542,0x5ac,_0x33a017._0x32b25f)]?{'encrypted_content':_0x4a75f9[_0x43d595(0x26d,0x2b0,0x1de,0x39e)]}:{},..._0x4a75f9['summaryByIndex']['size']>0x0?{'summary':Array['from'](_0x4a75f9[_0x3aa4b2(0x405,0x513,0x43c,_0x33a017._0x2beb72)][_0x43d595(0x23d,0x16f,_0x33a017._0x57655c,_0x33a017._0x2252ea)]())[_0x3aa4b2(0x4c9,0x5c7,_0x33a017._0x20bc98,0x53c)]((_0xce4f94,_0x1b3512)=>_0xce4f94[0x0]-_0x1b3512[0x0])['map'](([,_0x24da94])=>{const _0x3dd25f={_0x519030:0x387,_0x56d3af:0xe1,_0x160611:0x10e};function _0x4af273(_0x1fc9fd,_0x36a603,_0x1bd830,_0x49f1dd){return _0x43d595(_0x1bd830,_0x49f1dd- -_0x3dd25f._0x519030,_0x1bd830-_0x3dd25f._0x56d3af,_0x49f1dd-_0x3dd25f._0x160611);}return{'type':_0x4af273(-0x1c0,-0x1a1,-0x1d6,-0x140),'text':_0x24da94};})}:{},..._0x4a75f9['textByIndex'][_0x43d595(_0x33a017._0x4f1da4,0x264,_0x33a017._0x1d3b07,0x24c)]>0x0?{'text':Array['from'](_0x4a75f9['textByIndex']['entries']())['sort']((_0x149f27,_0x2463e3)=>_0x149f27[0x0]-_0x2463e3[0x0])['map'](([,_0x30aebc])=>_0x30aebc)[_0x43d595(_0x33a017._0x58bebc,_0x33a017._0x55ddb3,0x18e,_0x33a017._0x3e918f)]('')}:{}}});}for(const _0x4ae2fe of this['toolCalls'][_0x43d595(0x22b,0x2c5,0x263,0x337)]()){_0x31a99e[_0x3aa4b2(_0x33a017._0x297524,_0x33a017._0x17188e,_0x33a017._0x4d2364,_0x33a017._0x57d544)]({'index':this[_0x43d595(0x254,0x176,0xb2,0xd8)]['get'](_0x4ae2fe['id'])??_0x31a99e[_0x3aa4b2(_0x33a017._0x7f1b51,_0x33a017._0x351811,_0x33a017._0x3fe0d9,0x578)],'item':{'type':_0x3aa4b2(_0x33a017._0x33daa0,_0x33a017._0x33daa0,0x4f7,_0x33a017._0x46de2a),'call_id':_0x4ae2fe['id'],'name':_0x4ae2fe['function'][_0x43d595(0x282,0x197,0x1e9,_0x33a017._0x3adeaf)],'arguments':_0x4ae2fe[_0x43d595(_0x33a017._0x323e67,0x1e3,0x2b6,_0x33a017._0x31f8ce)]['arguments']}});}return _0x31a99e[_0x3aa4b2(0x600,0x60b,0x55a,_0x33a017._0x207314)]((_0xca534f,_0x3e74e3)=>_0xca534f[_0x43d595(0x196,0x1a3,0x222,0x1ef)]-_0x3e74e3[_0x3aa4b2(0x478,0x42f,0x49f,0x53c)])['map'](_0x5abb82=>_0x5abb82['item']);}[_0x18ceca(0x558,0x576,0x5dd,0x52f)](_0x3b8b70,_0x449577){const _0xd205d3={_0x19c46d:0x290,_0x41f8ac:0x2d9,_0x488f1e:0x419,_0x375d5e:0x433,_0xb96ad5:0x4cb,_0x2bc2db:0x257,_0x429fa8:0x26d,_0x1e6265:0x48d,_0x4fea5e:0x3b5,_0xd24593:0x533,_0x545a65:0x312,_0x366998:0x3ec,_0xc17702:0x414,_0x429e60:0x479,_0x3de93e:0x311,_0x274632:0x3f7},_0xe725de={_0x8d61dc:0xd5,_0x37d384:0x22e},_0x225b9e={_0x2e0dc6:0x9d,_0x32f3db:0x157},_0x152f20=this[_0x471d85(0x214,_0xd205d3._0x19c46d,_0xd205d3._0x41f8ac,0x2d9)][_0x471d85(_0xd205d3._0x488f1e,_0xd205d3._0x375d5e,_0xd205d3._0xb96ad5,0x405)](_0x3b8b70);function _0x471d85(_0x4fe1e8,_0x10fd81,_0x431633,_0x52e6e6){return _0x4de126(_0x4fe1e8,_0x10fd81-_0x225b9e._0x2e0dc6,_0x431633-0x166,_0x52e6e6-_0x225b9e._0x32f3db);}if(_0x152f20)return _0x449577!==void 0x0&&(_0x152f20[_0x471d85(_0xd205d3._0x2bc2db,_0xd205d3._0x429fa8,0x232,0x2fc)]=_0x449577,this[_0x535a58(_0xd205d3._0x1e6265,_0xd205d3._0x4fea5e,0x479,_0xd205d3._0xd24593)][_0x471d85(_0xd205d3._0x545a65,0x322,0x3b6,0x3ec)](_0x449577,_0x3b8b70)),_0x152f20;const _0x370adc={'id':_0x3b8b70,'outputIndex':_0x449577,'summaryByIndex':new Map(),'textByIndex':new Map()};this['reasoningItems'][_0x471d85(0x4db,0x373,0x482,_0xd205d3._0x366998)](_0x3b8b70,_0x370adc);function _0x535a58(_0x3fbcee,_0x341620,_0xfca976,_0x579f36){return _0x4de126(_0x3fbcee,_0x341620-_0xe725de._0x8d61dc,_0xfca976-0x1cd,_0xfca976-_0xe725de._0x37d384);}return _0x449577!==void 0x0&&this[_0x535a58(0x536,_0xd205d3._0xc17702,_0xd205d3._0x429e60,0x500)][_0x471d85(0x35c,_0xd205d3._0x3de93e,_0xd205d3._0x274632,_0xd205d3._0x366998)](_0x449577,_0x3b8b70),_0x370adc;}};function createOpenAiResponsesStreamParser(_0xa7d512){return new OpenAiResponsesStreamParser(_0xa7d512);}function createOpenAiSurfaces(_0x2cdb7e={}){const _0x4aa4c0={_0x1d2a57:0x37e,_0x2cd3c5:0x235,_0x14e976:0x1ec,_0x3d6701:0x30d,_0xd3ea90:0x3ec,_0x30c4d3:0x344,_0x19c921:0xa9,_0x556370:0xe0,_0x224c8b:0x178,_0x2d7bb6:0x1d6,_0x4fe114:0x19b,_0x12c7f5:0x121,_0x6b6f80:0x1ea,_0x22385d:0x23d,_0x19cd9e:0x18c,_0x4ea0da:0x16c},_0x1dd513={_0x5aa7f3:0x19d,_0x14b6aa:0x10b,_0x348aea:0x146,_0x151b34:0x178},_0x156945={_0x506127:0x36,_0x4ba936:0x6f},_0x4f9ccd={_0x247b46:0x726,_0xde79a6:0xe4,_0x359c77:0x13a},_0x523056={_0x1cd054:0x2e2,_0xa83e9a:0x1d2,_0x37f637:0x12e},_0x30b7a0=_0x2cdb7e['chatCompletionsPath']??_0xc5c84b(-_0x4aa4c0._0x1d2a57,-0x2b0,-_0x4aa4c0._0x2cd3c5,-_0x4aa4c0._0x14e976);function _0xb27c78(_0x10310e,_0x465f63,_0x4562cb,_0x26a5a7){return _0x18ceca(_0x26a5a7,_0x4562cb- -_0x523056._0x1cd054,_0x4562cb-_0x523056._0xa83e9a,_0x26a5a7-_0x523056._0x37f637);}function _0xc5c84b(_0x28b71c,_0x5350c7,_0x33d9aa,_0x26742f){return _0x18ceca(_0x26742f,_0x5350c7- -_0x4f9ccd._0x247b46,_0x33d9aa-_0x4f9ccd._0xde79a6,_0x26742f-_0x4f9ccd._0x359c77);}const _0x382de0=_0x2cdb7e[_0xb27c78(_0x4aa4c0._0x3d6701,_0x4aa4c0._0xd3ea90,_0x4aa4c0._0x30c4d3,0x289)]??_0xb27c78(_0x4aa4c0._0x19c921,_0x4aa4c0._0x556370,_0x4aa4c0._0x224c8b,0x19f);return[{'id':OPENAI_CHAT_COMPLETIONS_SURFACE,'transport':_0xb27c78(0x2dc,0x22b,0x283,0x237),'createRequest'(_0x474f8a){return{'accept':'application/json','body':createChatRequestBody(_0x474f8a,![]),'path':_0x30b7a0};},'parseResponse'(_0x4f1f12){return parseChatCompletionResponse(_0x4f1f12);}},{'id':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,'transport':_0xc5c84b(-_0x4aa4c0._0x2d7bb6,-0x1cb,-_0x4aa4c0._0x4fe114,-_0x4aa4c0._0x12c7f5),'createRequest'(_0x319889){const _0x3c9d14={_0x3b0a8d:0x12a};function _0x1f4702(_0x12262e,_0x1317c8,_0x46a310,_0x59b630){return _0xb27c78(_0x12262e-0xb8,_0x1317c8-_0x3c9d14._0x3b0a8d,_0x46a310- -0x25c,_0x1317c8);}return{'accept':_0x1f4702(_0x156945._0x506127,-0x17,_0x156945._0x4ba936,0x119),'body':createChatRequestBody(_0x319889,!![]),'path':_0x30b7a0};},'createStreamParser'(_0x4f852a){return new OpenAiChatCompletionsStreamParser(_0x4f852a);}},{'id':OPENAI_RESPONSES_SURFACE,'transport':_0xb27c78(0x370,_0x4aa4c0._0x6b6f80,0x283,_0x4aa4c0._0x22385d),'createRequest'(_0x1db268){return{'accept':'application/json','body':createResponsesRequestBody(_0x1db268,![]),'path':_0x382de0};},'parseResponse'(_0x29783c,_0x2e36e5){return parseResponsesResponse(_0x29783c,_0x2e36e5);}},{'id':OPENAI_RESPONSES_STREAM_SURFACE,'transport':'http-sse','createRequest'(_0x42e4e2){const _0x9f2b7c={_0x45052a:0x60};function _0xe2a8ad(_0x4e1621,_0x2a85f9,_0x476605,_0x28005a){return _0xc5c84b(_0x4e1621-0x23,_0x476605-0x2bf,_0x476605-_0x9f2b7c._0x45052a,_0x2a85f9);}return{'accept':_0xe2a8ad(_0x1dd513._0x5aa7f3,_0x1dd513._0x14b6aa,_0x1dd513._0x348aea,_0x1dd513._0x151b34),'body':createResponsesRequestBody(_0x42e4e2,!![]),'path':_0x382de0};},'createStreamParser'(_0x31b23b){return new OpenAiResponsesStreamParser(_0x31b23b);}},{'id':OPENAI_RESPONSES_WEBSOCKET_SURFACE,'transport':_0xb27c78(_0x4aa4c0._0x19cd9e,0x207,0x1cd,_0x4aa4c0._0x4ea0da),'createRequest'(_0x1976a8){return{'initialEvent':createOpenAiResponsesWebSocketEvent(_0x1976a8),'path':_0x382de0};},'createStreamParser'(_0x193cb1){return createOpenAiResponsesStreamParser(_0x193cb1);}}];}var OpenAiProviderAdapter=class{[_0x18ceca(0x5d5,0x58b,0x575,0x5f9)];constructor(_0x5c8b22){const _0xb5a762={_0x40ccd5:0x1df,_0x63b649:0x15b},_0x1a0925={_0x43a1a4:0xa0};function _0x59d724(_0x13db2d,_0x15d22f,_0x553e4d,_0x9faa86){return _0x18ceca(_0x553e4d,_0x15d22f- -0x6b8,_0x553e4d-_0x1a0925._0x43a1a4,_0x9faa86-0x1ef);}this[_0x59d724(-_0xb5a762._0x40ccd5,-0x12d,-0x88,-_0xb5a762._0x63b649)]=_0x5c8b22;}[_0x18ceca(0x506,0x4bb,0x413,0x57f)](){const _0x1c611b={_0x5125f8:0x92,_0x5c137d:0x1cc};function _0x515f8e(_0x3398e3,_0xf888b0,_0x230869,_0x3308cc){return _0x18ceca(_0xf888b0,_0x3308cc-0x2b,_0x230869-_0x1c611b._0x5125f8,_0x3308cc-_0x1c611b._0x5c137d);}return new Error(_0x515f8e(0x3f8,0x4ab,0x400,0x4a8));}async[_0x18ceca(0x4a5,0x545,0x5da,0x57e)](_0xe2a58e,_0xa25bb){const _0x438ed0={_0x5dd0d0:0x591,_0x5d1070:0x54a,_0x48d7b0:0x5be,_0xd6da6e:0x599,_0x4937d5:0x111,_0x20213f:0x132,_0xfea9b4:0x60,_0x30bb1b:0x547,_0x366520:0x141,_0x368af6:0x18e,_0x585ac1:0x47c,_0x3f0064:0x477,_0x41564e:0x3b4,_0x562bf3:0x402,_0x152ccc:0x5d1,_0x59a577:0x51d,_0x640cd0:0x5a6,_0x2f3cf7:0x257,_0x169855:0x2a7,_0x3e5243:0x20d,_0x4c4206:0x346,_0xf0a91:0x60b,_0x4d77cf:0x543,_0x5c9bbc:0x604,_0x2f5b6e:0x550,_0x37fef5:0x501,_0x14603d:0x487,_0x52c412:0x428,_0x4e75e0:0x45b,_0x4df956:0x34f,_0x4d027b:0x2a2,_0x19a4a9:0x466,_0x8a767a:0x486,_0x20ac70:0x536,_0x31839d:0x4c3,_0x29fb64:0x477,_0xf43ec7:0x1c7,_0x534a97:0x192},_0x3cd36b={_0x11eb7f:0x728,_0x1dedf4:0x14d},_0x1ddc77={_0x4228d2:0xd0,_0x5241db:0xd1},_0x58f5d4=new Headers();_0x58f5d4[_0x437a88(0x526,0x53b,0x504,_0x438ed0._0x5dd0d0)]('accept',_0xa25bb[_0x437a88(_0x438ed0._0x5d1070,_0x438ed0._0x48d7b0,0x529,_0x438ed0._0xd6da6e)]),_0x58f5d4[_0x429cd5(-_0x438ed0._0x4937d5,-_0x438ed0._0x20213f,-_0x438ed0._0xfea9b4,-0x18f)](_0x437a88(0x4e8,0x500,0x501,_0x438ed0._0x30bb1b),_0x429cd5(-_0x438ed0._0x366520,-0x18d,-_0x438ed0._0x368af6,-0xe2)+_0xe2a58e[_0x437a88(0x428,_0x438ed0._0x585ac1,_0x438ed0._0x3f0064,0x4fc)]['value']);_0xa25bb[_0x437a88(_0x438ed0._0x41564e,0x393,0x32e,_0x438ed0._0x562bf3)]!==![]&&_0x58f5d4[_0x437a88(0x526,_0x438ed0._0x152ccc,_0x438ed0._0x59a577,_0x438ed0._0x640cd0)](_0x429cd5(-_0x438ed0._0x2f3cf7,-_0x438ed0._0x169855,-_0x438ed0._0x3e5243,-_0x438ed0._0x4c4206),_0x437a88(0x534,_0x438ed0._0xf0a91,_0x438ed0._0x4d77cf,_0x438ed0._0x5c9bbc));function _0x437a88(_0x2717fa,_0x4871bc,_0x1a726b,_0x4f7474){return _0x18ceca(_0x4f7474,_0x2717fa- -_0x1ddc77._0x4228d2,_0x1a726b-0x107,_0x4f7474-_0x1ddc77._0x5241db);}function _0x429cd5(_0xcf27a4,_0x59acab,_0x3b1f72,_0xedaee2){return _0x18ceca(_0xcf27a4,_0x59acab- -_0x3cd36b._0x11eb7f,_0x3b1f72-_0x3cd36b._0x1dedf4,_0xedaee2-0x1a5);}const _0x293e7f=await this['headerResolver']?.({'body':_0xe2a58e[_0x437a88(_0x438ed0._0x2f5b6e,_0x438ed0._0x37fef5,0x4b7,_0x438ed0._0x14603d)],'credential':_0xe2a58e[_0x437a88(_0x438ed0._0x52c412,_0x438ed0._0x4e75e0,_0x438ed0._0x4df956,0x431)],'request':_0xe2a58e[_0x429cd5(-_0x438ed0._0x4d027b,-0x219,-0x1bb,-0x281)],'session':_0xe2a58e[_0x437a88(_0x438ed0._0x19a4a9,_0x438ed0._0x8a767a,0x3bd,0x4f7)],'stream':_0xe2a58e[_0x437a88(_0x438ed0._0x20ac70,_0x438ed0._0x31839d,_0x438ed0._0x29fb64,0x4d1)]});for(const [_0x42e4eb,_0x24850b]of Object['entries'](_0x293e7f??{})){_0x58f5d4[_0x429cd5(-_0x438ed0._0xf43ec7,-0x132,-0x1fd,-_0x438ed0._0x534a97)](_0x42e4eb,_0x24850b);}return _0x58f5d4;}['mapApiError'](_0x46780b){return _0x46780b;}[_0x18ceca(0x49b,0x512,0x528,0x488)](_0xd7438,_0x8facaa){return resolveSessionBaseUrl(_0xd7438,_0x8facaa);}[_0x18ceca(0x40b,0x4d4,0x55a,0x403)](_0x233732,_0xd85a8b){return resolveApiCredential(_0x233732,_0xd85a8b);}async['toApiError'](_0x34ec3b){return await createOpenAiApiError(_0x34ec3b);}},OpenAiModel=class _OpenAiModel extends RoutedModel{static [_0x4de126(0x2ad,0x2cd,0x30f,0x230)]=new Map();['chatCompletionsPath'];[_0x18ceca(0x6ec,0x626,0x650,0x65c)];constructor(_0x4169b8={}){const _0x4076d4={_0x547af2:0xd,_0x799685:0x5b,_0x490f59:0xab,_0x1121da:0x119,_0x160e94:0x178,_0xf8b98b:0x11d,_0x2a2937:0x159,_0x202d2b:0x21,_0x14fdd1:0x6e,_0x36360d:0x174,_0xa4b38d:0x1ce,_0x16b6a5:0x489,_0x584a1d:0x532,_0x502296:0x5d9,_0x65b6a3:0x51e,_0x9c433b:0x11f,_0x1d9c7b:0x80,_0x3b0a73:0x13e,_0x130703:0x76f,_0x3b8ec9:0x5d4,_0x279eec:0x11b,_0x10cf46:0x207,_0x216849:0x5e7,_0x3b5af2:0x10b,_0x175107:0x6a9,_0x50f8b1:0x614,_0x32b97a:0x729,_0x2847a6:0x5cb,_0x2358cb:0x6c3,_0x52a6d:0x6cb,_0x5aa8bb:0x5e0,_0x103063:0x684},_0x9288dc={_0x10a066:0x12b},_0x27b7e2={_0x25a3ac:0x2,_0x3ff09a:0xac},_0x2823ce=_0x4169b8['model']??'gpt-4o',_0x36f213=_0x4169b8[_0x1a20d3(-0x6b,-0x19,-_0x4076d4._0x547af2,-0x7e)]??getDefaultMaxTokens();function _0x1a20d3(_0x4f9b6e,_0x40a3f5,_0x4efc81,_0x2960cf){return _0x4de126(_0x4efc81,_0x40a3f5-_0x27b7e2._0x25a3ac,_0x4efc81-_0x27b7e2._0x3ff09a,_0x4f9b6e- -0x306);}const _0x2fd23c=_0x4169b8[_0x1a20d3(-_0x4076d4._0x799685,-0x18,-_0x4076d4._0x490f59,-_0x4076d4._0x1121da)]??_0x1a20d3(-0x1f1,-_0x4076d4._0x160e94,-_0x4076d4._0xf8b98b,-_0x4076d4._0x2a2937),_0x503d6d=_0x4169b8[_0x1a20d3(-0x41,-_0x4076d4._0x202d2b,_0x4076d4._0x14fdd1,-0x7b)]??_0x1a20d3(-0x20d,-_0x4076d4._0x36360d,-_0x4076d4._0xa4b38d,-0x1b7);super({'apiKey':_0x4169b8[_0x4a712b(0x555,_0x4076d4._0x16b6a5,0x5a0,_0x4076d4._0x584a1d)],'baseUrl':trimTrailingSlashes(_0x4169b8['baseUrl']??'https://api.openai.com/v1'),'fetch':_0x4169b8[_0x4a712b(_0x4076d4._0x502296,0x62c,0x6ac,_0x4076d4._0x65b6a3)],'maxTokens':_0x36f213,'model':_0x2823ce,'reasoning':_0x4169b8['reasoning'],'providerAdapter':new OpenAiProviderAdapter(_0x4169b8[_0x1a20d3(-0xdc,-_0x4076d4._0x9c433b,-_0x4076d4._0x1d9c7b,-_0x4076d4._0x3b0a73)]),'providerSessionResolver':_0x4169b8[_0x4a712b(0x69d,0x70f,_0x4076d4._0x130703,_0x4076d4._0x3b8ec9)],'requestMutators':_0x4169b8[_0x1a20d3(-0x17a,-0x119,-_0x4076d4._0x279eec,-_0x4076d4._0x10cf46)],'router':new StaticModelSurfaceRouter({'complete':OPENAI_CHAT_COMPLETIONS_SURFACE,'stream':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE}),'sessionManager':_0x4169b8[_0x4a712b(0x65d,_0x4076d4._0x216849,0x679,0x58c)],'surfaces':createOpenAiSurfaces({'chatCompletionsPath':_0x2fd23c,'responsesPath':_0x503d6d}),'webSocketFactory':_0x4169b8[_0x1a20d3(-0x182,-0x20d,-_0x4076d4._0x3b5af2,-0x1c9)]});function _0x4a712b(_0x1ddc0a,_0x22c004,_0x45734a,_0x13bc44){return _0x18ceca(_0x22c004,_0x1ddc0a-0x9d,_0x45734a-0x7b,_0x13bc44-_0x9288dc._0x10a066);}this[_0x4a712b(_0x4076d4._0x175107,_0x4076d4._0x50f8b1,_0x4076d4._0x32b97a,_0x4076d4._0x2847a6)]=_0x2fd23c,this[_0x4a712b(_0x4076d4._0x2358cb,_0x4076d4._0x52a6d,_0x4076d4._0x5aa8bb,_0x4076d4._0x103063)]=_0x503d6d;}['completeViaChatCompletionsSurface'](_0x5b93fd,_0x2d0810){const _0x5423cc={_0x1e7280:0x7f,_0xb4e1c4:0x336};function _0x24d93e(_0x37b8fe,_0xca6634,_0xfda7c,_0x32f88a){return _0x4de126(_0x32f88a,_0xca6634-_0x5423cc._0x1e7280,_0xfda7c-0x15f,_0xfda7c-_0x5423cc._0xb4e1c4);}return this[_0x24d93e(0x441,0x3c6,0x441,0x3ef)](_0x5b93fd,OPENAI_CHAT_COMPLETIONS_SURFACE,_0x2d0810);}[_0x4de126(0x1bd,0x133,0x115,0x1a3)](_0x3dd54f,_0x39b361){const _0x13ceb0={_0x2494f1:0x335,_0x2bd78b:0x27d,_0x29cdb0:0x2a0},_0xd1fe69={_0x1303a7:0x56,_0x1fa647:0x9d};function _0x51bb18(_0x38efee,_0x1a5590,_0x22e4d0,_0x58f8f4){return _0x4de126(_0x1a5590,_0x1a5590-_0xd1fe69._0x1303a7,_0x22e4d0-_0xd1fe69._0x1fa647,_0x58f8f4- -0x3ab);}return this[_0x51bb18(-_0x13ceb0._0x2494f1,-_0x13ceb0._0x2bd78b,-0x24f,-_0x13ceb0._0x29cdb0)](_0x3dd54f,OPENAI_RESPONSES_SURFACE,_0x39b361);}['completeViaResponsesWebSocketSurface'](_0x287d84,_0x3dcb19){const _0x3ac812={_0x3dfbdb:0x1a4,_0xba581d:0x1cf},_0x1cab9b={_0x4fdf96:0x108};function _0x3fcc24(_0x407a5e,_0x5402c5,_0x13ac1b,_0x1d0a5e){return _0x4de126(_0x1d0a5e,_0x5402c5-0x9d,_0x13ac1b-_0x1cab9b._0x4fdf96,_0x407a5e-0x99);}return this[_0x3fcc24(_0x3ac812._0x3dfbdb,0x139,0xb4,_0x3ac812._0xba581d)](_0x287d84,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x3dcb19);}['streamViaChatCompletionsSurface'](_0x3f98f9,_0x4b2853){return this['streamViaSurface'](_0x3f98f9,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,_0x4b2853);}[_0x4de126(0x1b9,0x5a,0x218,0x139)](_0x500731,_0x29bfab){const _0xe7de17={_0x532a86:0x15e,_0x5d25b1:0x7f},_0x3c730b={_0x3c77d1:0x7c};function _0x4f60a8(_0x52df4b,_0x54e9da,_0x5e1831,_0x4420e1){return _0x18ceca(_0x52df4b,_0x54e9da- -0x692,_0x5e1831-0x7,_0x4420e1-_0x3c730b._0x3c77d1);}return this[_0x4f60a8(-_0xe7de17._0x532a86,-_0xe7de17._0x5d25b1,0x45,-0xf9)](_0x500731,OPENAI_RESPONSES_STREAM_SURFACE,_0x29bfab);}['streamViaResponsesWebSocketSurface'](_0x486b74,_0x26c06a){const _0x1a66fe={_0x167b5f:0x3e6,_0x1e3a97:0x2d7},_0x188a77={_0x259864:0x9f,_0x4d80a3:0x116};function _0x38b1b8(_0x398cd2,_0x1bec17,_0xebc7e8,_0x37745f){return _0x18ceca(_0x37745f,_0x1bec17- -0x2bf,_0xebc7e8-_0x188a77._0x259864,_0x37745f-_0x188a77._0x4d80a3);}return this[_0x38b1b8(0x3f5,0x354,_0x1a66fe._0x167b5f,_0x1a66fe._0x1e3a97)](_0x486b74,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x26c06a);}async['chatComplete'](_0x3163be,_0x5237fa){const _0x3931a0={_0xcab31e:0x217,_0x26cb41:0x1cb},_0x9decc3={_0x5565e9:0x1b1,_0x5bbbce:0x3a5},_0x260b0e={_0x3f8aa7:0x6d9,_0x491374:0x77,_0x41c296:0xb2};function _0x49b692(_0x5d2584,_0x108623,_0x1c99ba,_0x3d537b){return _0x18ceca(_0x1c99ba,_0x108623- -_0x260b0e._0x3f8aa7,_0x1c99ba-_0x260b0e._0x491374,_0x3d537b-_0x260b0e._0x41c296);}function _0x326b1e(_0x36c290,_0x400edd,_0x2380d4,_0x5ae7a6){return _0x4de126(_0x36c290,_0x400edd-0x192,_0x2380d4-_0x9decc3._0x5565e9,_0x400edd- -_0x9decc3._0x5bbbce);}try{return await this[_0x326b1e(-_0x3931a0._0xcab31e,-0x27a,-0x2fd,-0x34c)](_0x3163be,_0x5237fa);}catch(_0x2fa93f){if(_0x2fa93f instanceof OpenAiApiError)throw this[_0x49b692(-0x24c,-_0x3931a0._0x26cb41,-0x20f,-0x218)](_0x2fa93f);throw _0x2fa93f;}}async[_0x4de126(0x1c4,0x175,0x1c4,0x1c9)](_0xe787cb,_0x28c47d){const _0xab78da={_0x35cbef:0x6d,_0x2909ce:0x1e6},_0x26d5f6={_0x359219:0x71b},_0x128726={_0x189172:0x152};function _0x29c8d2(_0x241cd9,_0x414826,_0x160b4a,_0x11998c){return _0x4de126(_0x160b4a,_0x414826-0x176,_0x160b4a-_0x128726._0x189172,_0x241cd9- -0xf9);}function _0x303c11(_0x51a307,_0x1a3a1c,_0x2d3075,_0x282cfa){return _0x18ceca(_0x2d3075,_0x282cfa- -_0x26d5f6._0x359219,_0x2d3075-0x27,_0x282cfa-0xb0);}try{return await this[_0x29c8d2(0xaa,_0xab78da._0x35cbef,0xc7,0x51)](_0xe787cb,_0x28c47d);}catch(_0x153e2a){if(_0x153e2a instanceof OpenAiApiError)throw this[_0x303c11(-_0xab78da._0x2909ce,-0x1e1,-0x12a,-0x20d)](_0x153e2a);throw _0x153e2a;}}async[_0x4de126(0x18c,0x1f3,0x1e4,0x1f0)](_0x18fceb,_0x535774){const _0x56a60d={_0x29d079:0x315,_0x58f5ae:0x3f3,_0x50cc68:0x503,_0xf38d2:0x49d,_0xa2e0bd:0x4a1,_0x45640b:0x57c},_0x3e42cd={_0xac3734:0x2d4},_0xa9a4e={_0x4fae81:0x23e,_0x35d4a8:0x1e3,_0x17da6b:0x146};function _0x42c493(_0x51130b,_0x4aede2,_0x57fca6,_0x2928b8){return _0x18ceca(_0x57fca6,_0x2928b8- -_0xa9a4e._0x4fae81,_0x57fca6-_0xa9a4e._0x35d4a8,_0x2928b8-_0xa9a4e._0x17da6b);}function _0x3c9b37(_0x2ea97a,_0x38c4f1,_0x2d211d,_0x293dbb){return _0x4de126(_0x2ea97a,_0x38c4f1-0xe7,_0x2d211d-0xd4,_0x293dbb-_0x3e42cd._0xac3734);}try{let _0x175b96;for await(const _0x31e8e2 of this['responseSocketStream'](_0x18fceb,_0x535774)){_0x31e8e2[_0x3c9b37(_0x56a60d._0x29d079,0x3a3,0x3f1,0x3ec)]==='done'&&(_0x175b96=_0x31e8e2[_0x3c9b37(_0x56a60d._0x58f5ae,0x45b,_0x56a60d._0x50cc68,_0x56a60d._0xf38d2)]);}if(!_0x175b96)throw new Error(_0x3c9b37(0x654,_0x56a60d._0xa2e0bd,0x5d0,_0x56a60d._0x45640b));return _0x175b96;}catch(_0x2cf293){if(_0x2cf293 instanceof OpenAiApiError)throw this['mapApiError'](_0x2cf293);throw _0x2cf293;}}async*['chatStream'](_0x5ae1c9,_0x2e317f){const _0x110fba={_0x124970:0x64e,_0x552a30:0x5fc,_0x2ceeeb:0x643,_0x19c952:0x1c7,_0xbc7a1c:0xec},_0x3650b7={_0x494c89:0x1c8},_0x959bf1={_0x5e91ae:0xae,_0xab9283:0x2c};function _0x438798(_0x4da5ce,_0x3269ef,_0x2d452a,_0x2a664f){return _0x4de126(_0x2d452a,_0x3269ef-0x52,_0x2d452a-_0x959bf1._0x5e91ae,_0x2a664f-_0x959bf1._0xab9283);}function _0x3ed8f4(_0xa8cfb3,_0x4e3827,_0xffd0eb,_0x2d7d4b){return _0x18ceca(_0xffd0eb,_0x2d7d4b-0x26,_0xffd0eb-_0x3650b7._0x494c89,_0x2d7d4b-0xda);}try{yield*this[_0x3ed8f4(_0x110fba._0x124970,0x68f,_0x110fba._0x552a30,_0x110fba._0x2ceeeb)](_0x5ae1c9,_0x2e317f);}catch(_0x31f303){if(_0x31f303 instanceof OpenAiApiError)throw this[_0x438798(0xed,_0x110fba._0x19c952,_0x110fba._0xbc7a1c,0x1d9)](_0x31f303);throw _0x31f303;}}async*[_0x18ceca(0x460,0x480,0x485,0x50f)](_0x2de3f1,_0x3856c5){const _0x268cb9={_0x2cd94a:0x34a,_0x377460:0x244,_0x5c6729:0x3c7,_0x1e7e37:0x1f8,_0x5f3ded:0x200,_0x590642:0x287},_0x4e621f={_0x2cb194:0x1a1},_0x557e70={_0x5bc4df:0x70e,_0x42d83e:0xfe};function _0x5e9cbf(_0x2299bc,_0x161ede,_0x2dfcd5,_0x4ae71c){return _0x18ceca(_0x4ae71c,_0x2dfcd5- -_0x557e70._0x5bc4df,_0x2dfcd5-0x52,_0x4ae71c-_0x557e70._0x42d83e);}function _0x355e33(_0x5ec96d,_0x1036a4,_0x433489,_0x2e4c77){return _0x4de126(_0x1036a4,_0x1036a4-0x127,_0x433489-0x98,_0x2e4c77-_0x4e621f._0x2cb194);}try{yield*this[_0x355e33(_0x268cb9._0x2cd94a,_0x268cb9._0x377460,_0x268cb9._0x5c6729,0x2da)](_0x2de3f1,_0x3856c5);}catch(_0x1fd557){if(_0x1fd557 instanceof OpenAiApiError)throw this[_0x5e9cbf(-_0x268cb9._0x1e7e37,-0x13a,-_0x268cb9._0x5f3ded,-_0x268cb9._0x590642)](_0x1fd557);throw _0x1fd557;}}async*[_0x4de126(0x1ee,0x213,0x223,0x273)](_0x3eb5b5,_0xc93e2e){const _0x35cf1c={_0x28f6cf:0x22d,_0x4256a3:0x5f},_0x5e052f={_0x4a0d8f:0x43a,_0x240e01:0x11c},_0x2ced38={_0x4f3d5b:0x65};function _0x468d3b(_0x529a25,_0x37964e,_0x4f517a,_0xe0a5ee){return _0x4de126(_0x529a25,_0x37964e-0x13a,_0x4f517a-_0x2ced38._0x4f3d5b,_0x4f517a- -0x15c);}function _0x70e525(_0x565f02,_0x2cd4e4,_0x1c8075,_0x5a72f5){return _0x18ceca(_0x565f02,_0x2cd4e4- -_0x5e052f._0x4a0d8f,_0x1c8075-_0x5e052f._0x240e01,_0x5a72f5-0xb8);}try{yield*this[_0x70e525(0x20c,0x15a,0x238,_0x35cf1c._0x28f6cf)](_0x3eb5b5,_0xc93e2e);}catch(_0x43d4b2){if(_0x43d4b2 instanceof OpenAiApiError)throw this[_0x468d3b(0x41,-_0x35cf1c._0x4256a3,0x51,0x10b)](_0x43d4b2);throw _0x43d4b2;}}[_0x18ceca(0x5a5,0x5a2,0x4ff,0x634)](_0x40c72e,_0x339682){const _0x44a019={_0x2be9fc:0x182},_0x4f20cd={_0x163380:0x20,_0x250438:0x1d3};function _0x30cd37(_0x2e3a8b,_0x534ca8,_0x11f517,_0x249a28){return _0x4de126(_0x11f517,_0x534ca8-0x173,_0x11f517-_0x4f20cd._0x163380,_0x2e3a8b- -_0x4f20cd._0x250438);}return this[_0x30cd37(-0x9b,-_0x44a019._0x2be9fc,-0x8d,-0x73)](_0x40c72e,_0x339682);}['stream'](_0x39be70,_0x346369){return this['chatStream'](_0x39be70,_0x346369);}['getResponsesSocketSessionState'](_0x5393b8){const _0x308848={_0x3397b8:0x5fd,_0x27ce41:0x5e4,_0x25f638:0x516,_0x37fede:0x602},_0x52e874={_0x262f29:0x83,_0x1681e8:0x23},_0xacfede={_0xfb803d:0xf5,_0x2f4e5c:0x15b,_0x47b325:0x31a},_0x408405=this[_0x1ff8a7(0x584,_0x308848._0x3397b8,0x5ea,_0x308848._0x27ce41)](_0x5393b8);function _0x59e888(_0xc5e877,_0x15d7fc,_0x22b6de,_0x4e791b){return _0x4de126(_0xc5e877,_0x15d7fc-_0xacfede._0xfb803d,_0x22b6de-_0xacfede._0x2f4e5c,_0x15d7fc-_0xacfede._0x47b325);}let _0x16e7b3=_OpenAiModel['sharedResponsesSocketSessions'][_0x59e888(0x6b7,0x5c8,_0x308848._0x25f638,0x62a)](_0x408405);!_0x16e7b3&&(_0x16e7b3={'pending':Promise['resolve']()},_OpenAiModel['sharedResponsesSocketSessions'][_0x1ff8a7(0x52e,0x6aa,_0x308848._0x37fede,0x53d)](_0x408405,_0x16e7b3));function _0x1ff8a7(_0x5e9c70,_0x21d2f6,_0x12e8a6,_0x532446){return _0x4de126(_0x532446,_0x21d2f6-_0x52e874._0x262f29,_0x12e8a6-_0x52e874._0x1681e8,_0x12e8a6-0x36d);}return _0x16e7b3;}['getResponsesSocketSessionKey'](_0x20581a){const _0x149a6b={_0x492e26:0x16d};function _0x1a2014(_0x432b8a,_0x5aa212,_0x3c445b,_0x4a5ecc){return _0x4de126(_0x5aa212,_0x5aa212-0x10f,_0x3c445b-0xfc,_0x3c445b- -_0x149a6b._0x492e26);}return''+trimTrailingSlashes(this['baseUrl'])+this[_0x1a2014(0x6b,0x22a,0x158,0xf2)]+'::'+_0x20581a;}async[_0x4de126(0x77,0xa9,0xdc,0xf6)](_0x36045d){const _0x2e5e00={_0x29b25f:0x65c,_0x1d6503:0x650,_0x53d0de:0x59d,_0x3ffcf4:0x55e,_0x386223:0x4d9},_0xc8ff1f={_0x2e86e4:0x68c,_0x3a0f73:0x1e0},_0x11caab={_0x1cf45c:0x3ea},_0x114803=_0x36045d[_0x30d129(0x650,0x61d,0x5d4,0x571)][_0x30d129(0x5a2,0x685,_0x2e5e00._0x29b25f,0x585)](()=>{});let _0x27043d;const _0x4bc06a=new Promise(_0x208b08=>{_0x27043d=_0x208b08;});function _0x30d129(_0x261b8a,_0x49e24c,_0x4834c1,_0x22e63c){return _0x4de126(_0x22e63c,_0x49e24c-0x1bf,_0x4834c1-0x92,_0x261b8a-_0x11caab._0x1cf45c);}_0x36045d[_0x30d129(_0x2e5e00._0x1d6503,0x729,0x700,_0x2e5e00._0x53d0de)]=_0x114803[_0x30d129(_0x2e5e00._0x3ffcf4,0x62c,0x4f6,_0x2e5e00._0x386223)](()=>_0x4bc06a);function _0x145f87(_0x5da33a,_0x3cd626,_0x4d88d2,_0x5b8699){return _0x18ceca(_0x3cd626,_0x5da33a- -_0xc8ff1f._0x2e86e4,_0x4d88d2-_0xc8ff1f._0x3a0f73,_0x5b8699-0xd7);}return await _0x114803,()=>{_0x27043d?.();};}async[_0x4de126(0x1d7,0x1c5,0x27a,0x268)](_0x1dddcf,_0x3b9b88){const _0x184b9e={_0x2b339e:0x581,_0x4cbb0d:0x583,_0x5c1e66:0x584,_0x5de9bc:0x4d0,_0x18e044:0x52b,_0x2b5a99:0x29b,_0x468f89:0x370,_0x58d273:0x425,_0x2e52d3:0x484,_0x42546c:0x407,_0x4aff78:0x30f,_0x4fdc91:0x1a6,_0x11162d:0x47c,_0x53dd3f:0x456,_0x438a90:0x4b3,_0x585b84:0x266,_0x3e7af8:0x34b},_0x3179c8={_0x3c3c0a:0x0,_0x1a2413:0xb5},_0x33a1c0={_0x39b8f5:0x1e1},_0x1777aa=this[_0x28a8a1(0x27e,0xeb,0x134,0x1b6)](_0x1dddcf),_0x2325b9=toModelRequest(_0x1777aa),_0x1c0676=await prepareProviderRequest(_0x2325b9,{'sessionManager':this[_0x2a97e1(_0x184b9e._0x2b339e,0x5b6,_0x184b9e._0x4cbb0d,_0x184b9e._0x5c1e66)],'requestMutators':this['requestMutators'],'signal':_0x3b9b88}),_0x5cac96=toChatRequest(_0x1c0676[_0x2a97e1(_0x184b9e._0x5de9bc,0x4f8,_0x184b9e._0x18e044,0x4ea)]);function _0x2a97e1(_0x47af8d,_0x369ebf,_0x17e620,_0x5a4450){return _0x4de126(_0x5a4450,_0x369ebf-_0x33a1c0._0x39b8f5,_0x17e620-0xa8,_0x47af8d-0x322);}const _0x39f39d=this[_0x28a8a1(0x412,_0x184b9e._0x2b5a99,0x407,_0x184b9e._0x468f89)]['resolveCredential'](this[_0x2a97e1(0x479,_0x184b9e._0x58d273,_0x184b9e._0x2e52d3,_0x184b9e._0x42546c)],_0x1c0676[_0x28a8a1(_0x184b9e._0x4aff78,_0x184b9e._0x4fdc91,0x349,0x28a)]);if(!_0x39f39d)throw this[_0x2a97e1(_0x184b9e._0x11162d,0x43b,_0x184b9e._0x53dd3f,_0x184b9e._0x438a90)]();function _0x28a8a1(_0xc8e004,_0x1b1910,_0x580906,_0x4e6eb5){return _0x4de126(_0x1b1910,_0x1b1910-_0x3179c8._0x3c3c0a,_0x580906-0xc6,_0x4e6eb5-_0x3179c8._0x1a2413);}return{'baseUrl':this['providerAdapter'][_0x28a8a1(0x25e,0x1ef,0x190,_0x184b9e._0x585b84)](this['baseUrl'],_0x1c0676['session']),'credential':_0x39f39d,'request':_0x5cac96,'session':_0x1c0676[_0x28a8a1(0x2c6,0x308,_0x184b9e._0x3e7af8,0x28a)]};}['buildResponsesSocketEvent'](_0x208d91,_0x34f7b7,_0x9dae64={}){const _0x55b86e={_0x3cf0a0:0x1a1,_0x5075cc:0x11a,_0x328b34:0x1a4,_0x2f9dd5:0x161,_0x28d747:0xfe,_0x45aa3d:0xf,_0x246e61:0x2cc,_0x5c64c:0x1c1,_0x527ce1:0x2df,_0x3b51fd:0xaf,_0x2814a0:0x1c9,_0x5a8442:0x167,_0x93ecfc:0x157,_0x54e8fe:0x15b,_0x5c179d:0x96,_0x1f308a:0xb},_0x1c744e={_0x49aad5:0x19f},_0x4eb914={_0x251bc6:0x49};function _0x37ee22(_0x205b25,_0x3a038e,_0x1db303,_0x425cac){return _0x4de126(_0x425cac,_0x3a038e-_0x4eb914._0x251bc6,_0x1db303-0x7,_0x3a038e- -0x353);}if(!_0x9dae64[_0x37ee22(-_0x55b86e._0x3cf0a0,-_0x55b86e._0x5075cc,-_0x55b86e._0x328b34,-_0x55b86e._0x2f9dd5)]){const _0x3026ac=this[_0x37ee22(-0x5e,-_0x55b86e._0x28d747,-0x1cc,-_0x55b86e._0x45aa3d)](_0x208d91);if(_0x3026ac&&_0x34f7b7[_0x358548(0x244,0x1a1,0x30a,_0x55b86e._0x246e61)]&&_0x3026ac['responseId']===_0x34f7b7[_0x358548(0x244,_0x55b86e._0x5c64c,0x176,_0x55b86e._0x527ce1)]){const _0x2b6ed2=toOpenAiResponsesRequest({..._0x208d91,'messages':_0x208d91[_0x37ee22(-_0x55b86e._0x3b51fd,-0x126,-0x1b0,-0x19d)][_0x358548(0x1c3,_0x55b86e._0x2814a0,_0x55b86e._0x5a8442,_0x55b86e._0x93ecfc)](_0x3026ac[_0x358548(0x229,0x15e,0x216,0x2d3)]+0x1)})['input'];return{'event':createOpenAiResponsesWebSocketEvent(_0x208d91,{'input':_0x2b6ed2,'previousResponseId':_0x3026ac[_0x37ee22(-_0x55b86e._0x54e8fe,-_0x55b86e._0x5c179d,-0x138,_0x55b86e._0x1f308a)]}),'previousResponseId':_0x3026ac[_0x37ee22(-0xa1,-0x96,-0x4a,-0x7a)]};}}function _0x358548(_0x34f4bd,_0x40a07e,_0x24cb04,_0xa9a0de){return _0x18ceca(_0x24cb04,_0x34f4bd- -0x3b9,_0x24cb04-_0x1c744e._0x49aad5,_0xa9a0de-0x10f);}return{'event':createOpenAiResponsesWebSocketEvent(_0x208d91)};}[_0x4de126(0x226,0x318,0x29b,0x255)](_0x3b0678){const _0x3e3283={_0xb7069d:0x74,_0x1fd41c:0xdc,_0x524696:0x88,_0x4e4947:0xdb,_0x11b887:0x38,_0x2269f6:0x297,_0x4687b1:0x176,_0x46ff02:0x1fe,_0x20bb9c:0x2d0},_0x192000={_0x2a80d6:0x336},_0x322b41={_0x3c2207:0x1e2};for(let _0x4e6a71=_0x3b0678['messages'][_0x374fb4(_0x3e3283._0xb7069d,-_0x3e3283._0x1fd41c,-0x61,-0xb6)]-0x1;_0x4e6a71>=0x0;_0x4e6a71-=0x1){const _0x3b1249=_0x3b0678[_0x374fb4(-0x145,-_0x3e3283._0x524696,-_0x3e3283._0x4e4947,-_0x3e3283._0x11b887)][_0x4e6a71],_0x47ac9a=_0x3b1249[_0x374fb4(-_0x3e3283._0x2269f6,-_0x3e3283._0x4687b1,-0x1ef,-0x2a0)]===_0x374fb4(-0x12b,-0x191,-0xfc,-0xdd)?_0x3b1249[_0x374fb4(-0xd2,-0x5e,-0x141,-0x16d)]?.[_0xa46fd4(_0x3e3283._0x46ff02,0x29a,0x246,_0x3e3283._0x20bb9c)]:void 0x0;if(_0x47ac9a)return{'messageIndex':_0x4e6a71,'responseId':_0x47ac9a};}function _0x374fb4(_0x4a47f1,_0x34ab0f,_0x593e13,_0x24f2fc){return _0x4de126(_0x4a47f1,_0x34ab0f-_0x322b41._0x3c2207,_0x593e13-0x1cd,_0x593e13- -0x308);}function _0xa46fd4(_0x43e681,_0x96ebf6,_0x733958,_0x396854){return _0x18ceca(_0x733958,_0x96ebf6- -_0x192000._0x2a80d6,_0x733958-0xbf,_0x396854-0x152);}return void 0x0;}[_0x4de126(0x170,0x17c,0x115,0x13c)](_0x133408){const _0x2c176f={_0x75b8bb:0x52e,_0x51ab3d:0x52a,_0x4d6bbf:0x5d3,_0xc6bbab:0x44a,_0x162821:0x54f},_0x1d8927={_0x4753f4:0x63},_0x545a33={_0x529442:0x60};function _0xb2ce64(_0x491e05,_0x2c3169,_0x547dec,_0x3a22d8){return _0x4de126(_0x491e05,_0x2c3169-0x9b,_0x547dec-_0x545a33._0x529442,_0x547dec-0x284);}function _0x1e893f(_0x115c41,_0x2d9692,_0x3c60c8,_0x3cc91c){return _0x4de126(_0x2d9692,_0x2d9692-0x37,_0x3c60c8-_0x1d8927._0x4753f4,_0x115c41-0x37c);}return _0x133408 instanceof ProviderStreamEventError&&(_0x133408[_0x1e893f(0x526,0x469,0x485,_0x2c176f._0x75b8bb)]===_0x1e893f(0x581,_0x2c176f._0x51ab3d,_0x2c176f._0x4d6bbf,0x5cf)||_0x133408[_0xb2ce64(0x4e6,0x4c0,0x42e,0x3c7)]===_0x1e893f(0x4e9,0x4d0,_0x2c176f._0xc6bbab,_0x2c176f._0x162821));}[_0x4de126(0x201,0x291,0x22c,0x265)](_0x5a294d){const _0x523d86={_0x68ec91:0x20,_0x42611f:0xc7,_0x4cffcd:0x55f,_0x4c7cd8:0x4c6,_0x56feae:0xb3,_0x7bbb06:0x32f,_0x1b87a5:0x54,_0x20b64c:0x48,_0x20bc5c:0x1a1},_0x3e85ce={_0x5a951e:0x1e3,_0x21e5fc:0x113},_0x298d36={_0x4da94d:0x155,_0x3988df:0x286},_0xec8dbc=_0x5a294d[_0x56a404(0x3ee,0x510,0x521,0x43b)];_0x5a294d['socket']=void 0x0;function _0x2179d2(_0x42c420,_0x59d40f,_0x557c3f,_0x344678){return _0x4de126(_0x344678,_0x59d40f-0x1f,_0x557c3f-_0x298d36._0x4da94d,_0x42c420- -_0x298d36._0x3988df);}_0x5a294d[_0x2179d2(_0x523d86._0x68ec91,-0xc8,0xd,-_0x523d86._0x42611f)]=void 0x0;function _0x56a404(_0x45b252,_0x1c502f,_0x1cccc4,_0xe81551){return _0x4de126(_0x1c502f,_0x1c502f-_0x3e85ce._0x5a951e,_0x1cccc4-_0x3e85ce._0x21e5fc,_0xe81551-0x22a);}_0x5a294d[_0x56a404(0x595,0x440,_0x523d86._0x4cffcd,_0x523d86._0x4c7cd8)]=void 0x0,_0xec8dbc?.[_0x2179d2(0xc,0x48,0x95,_0x523d86._0x56feae)]===WebSocket[_0x56a404(_0x523d86._0x7bbb06,0x390,0x341,0x3ee)]&&_0xec8dbc[_0x2179d2(-_0x523d86._0x1b87a5,-0x94,-0x5f,-_0x523d86._0x20b64c)](0x3e8,_0x2179d2(-0x12d,-0xdc,-_0x523d86._0x20bc5c,-0xe3));}async[_0x4de126(0x138,0x272,0x1c0,0x203)](_0x1e2c0d,_0x3cd5c6,_0x25e42f,_0x3c0d33,_0x3c4279){const _0x403509={_0xdc6e40:0xa4,_0x406475:0xf2,_0x4ce200:0x198,_0x1a6eb4:0x6c,_0x26f6c3:0xb9,_0x4932d3:0x8d,_0x36362e:0x3d,_0x2912d0:0x29,_0x230085:0x49,_0x2bf581:0x2a,_0x286a87:0x1ba},_0x145a74={_0x3b2332:0x10b,_0x62c621:0xb4,_0x3a47a6:0x2c,_0x5c8db5:0xd,_0x521a99:0xd3,_0x1239bb:0x1a9,_0xe398de:0xdb,_0x41b980:0x1c,_0x229c27:0x1b,_0x20afc8:0x23,_0x25dd46:0x17e,_0x774cf1:0x78,_0x4292f7:0x53,_0x1322b3:0x12a,_0x4bb7ae:0x66,_0x4758d0:0xd5,_0x1eb9be:0x2f,_0x349bd4:0x37,_0x14cb6d:0x9f,_0x313d46:0x5d,_0x4ac760:0xbe,_0x1a97fd:0x1a2,_0x1ede5b:0x13f,_0xfcba54:0x94,_0x499244:0xfc,_0x5a70f9:0x3a,_0x225382:0x19e,_0x17a37e:0x12c,_0x33e753:0xa9,_0x28cfb1:0x8f,_0x2e7535:0xe,_0x1a7610:0xa8},_0x616e5f={_0x3a6ccb:0x55e,_0x1ace32:0x4ca,_0x4e791a:0x48d,_0x1a9b7:0x48d,_0x1ce876:0x515},_0xc74954={_0x30148f:0x17},_0x2aa0dd={_0x312a01:0x40,_0x2cb165:0x1c0},_0x555cf3={_0x2addf7:0xcb,_0xb4c8dd:0x7d,_0x40cef2:0x384};function _0x2976b9(_0x187e78,_0x4f10e2,_0x1ff218,_0x20a89d){return _0x4de126(_0x187e78,_0x4f10e2-_0x555cf3._0x2addf7,_0x1ff218-_0x555cf3._0xb4c8dd,_0x1ff218- -_0x555cf3._0x40cef2);}function _0xce62d3(_0x1e2bcf,_0x33ffb7,_0x1a35a4,_0x47a169){return _0x4de126(_0x47a169,_0x33ffb7-_0x2aa0dd._0x312a01,_0x1a35a4-_0x2aa0dd._0x2cb165,_0x1a35a4- -0x27d);}if(_0x3cd5c6['socket']?.[_0x2976b9(-0x109,-_0x403509._0xdc6e40,-_0x403509._0x406475,-0x6a)]===WebSocket[_0xce62d3(-_0x403509._0x4ce200,-_0x403509._0x1a6eb4,-_0x403509._0x26f6c3,-0x9)])return _0x3cd5c6['socket'];if(_0x3cd5c6[_0xce62d3(-0x15,-0xb5,0x29,-_0x403509._0x4932d3)])return await _0x3cd5c6['connecting'];_0x3cd5c6[_0xce62d3(-_0x403509._0x36362e,0x5b,_0x403509._0x2912d0,-_0x403509._0x230085)]=((async()=>{const _0x2e91c9={_0xe9f611:0x5},_0x51c7d9=await this[_0x214914(0xf0,_0x145a74._0x3b2332,_0x145a74._0x62c621,_0x145a74._0x3a47a6)]({'request':_0x25e42f['request'],'body':_0x3c0d33,'credential':_0x25e42f['credential'],'session':_0x25e42f[_0xd24aa1(-0x84,-0x5d,_0x145a74._0x5c8db5,_0x145a74._0x521a99)],'stream':!![]},{'accept':_0xd24aa1(_0x145a74._0x1239bb,0xf2,_0x145a74._0xe398de,0xcd),'includeContentType':![]});function _0x214914(_0x3ef2b1,_0x244613,_0x5bfc74,_0x303085){return _0x2976b9(_0x303085,_0x244613-0x7e,_0x5bfc74-0x254,_0x303085-0x41);}function _0xd24aa1(_0x556c17,_0x281a9e,_0x2a7d0a,_0x2858cc){return _0x2976b9(_0x2858cc,_0x281a9e-0xea,_0x2a7d0a-0x1bc,_0x2858cc-_0xc74954._0x30148f);}_0x51c7d9[_0xd24aa1(_0x145a74._0x41b980,0x4a,_0x145a74._0x229c27,_0x145a74._0x20afc8)](_0xd24aa1(_0x145a74._0x25dd46,_0x145a74._0x774cf1,0xf1,0xec));const _0xd79a5b=this[_0xd24aa1(-0xae,0xd,-0x44,_0x145a74._0x4292f7)]({'headers':Object[_0xd24aa1(-_0x145a74._0x1322b3,-0x16d,-0xbc,-_0x145a74._0x4bb7ae)](_0x51c7d9['entries']()),'url':(''+_0x25e42f['baseUrl']+this['responsesPath'])[_0x214914(0x129,0x32,_0x145a74._0x4292f7,0xd0)](/^http:/,_0x214914(_0x145a74._0x4758d0,_0x145a74._0x1eb9be,0x1,-0x56))['replace'](/^https:/,_0xd24aa1(-_0x145a74._0x349bd4,-_0x145a74._0x14cb6d,-_0x145a74._0x313d46,-0x93))}),_0x1cdf4e=()=>{function _0x5f72b0(_0x2fe7bd,_0x51a2d2,_0x2e28b3,_0x3956f8){return _0xd24aa1(_0x2fe7bd-0x106,_0x51a2d2-_0x2e91c9._0xe9f611,_0x2e28b3-0x1ea,_0x3956f8);}function _0x3f4749(_0x7fb980,_0x16d151,_0x5211b6,_0x569bbc){return _0xd24aa1(_0x7fb980-0x1dd,_0x16d151-0x32,_0x5211b6-0x444,_0x16d151);}_0x3cd5c6[_0x3f4749(_0x616e5f._0x3a6ccb,0x3cb,0x48d,0x551)]===_0xd79a5b&&(_0x3cd5c6[_0x3f4749(_0x616e5f._0x1ace32,0x4ac,_0x616e5f._0x4e791a,_0x616e5f._0x1a9b7)]=void 0x0,_0x3cd5c6[_0x3f4749(_0x616e5f._0x1ce876,0x479,0x518,0x555)]=void 0x0);};_0xd79a5b[_0xd24aa1(0x12c,0x5,0x80,_0x145a74._0x4ac760)](_0x214914(0xc3,0x1b5,0x102,_0x145a74._0x1a97fd),_0x1cdf4e);try{return throwIfAborted(_0x3c4279),_0xd79a5b[_0x214914(0xde,0x158,0x162,_0x145a74._0x1ede5b)]!==WebSocket[_0x214914(0x17,-0x1d,_0x145a74._0xfcba54,0x45)]&&await waitForWebSocketOpen(_0xd79a5b,_0x3c4279),throwIfAborted(_0x3c4279),_0x3cd5c6[_0x214914(_0x145a74._0x499244,_0x145a74._0x5a70f9,0xe1,_0x145a74._0x225382)]=_0xd79a5b,_0xd79a5b;}catch(_0x5c0570){_0x1cdf4e();_0xd79a5b['readyState']===WebSocket['OPEN']&&_0xd79a5b[_0x214914(_0x145a74._0x17a37e,_0x145a74._0x33e753,0x102,0x3f)](0x3e8,_0x214914(0x96,_0x145a74._0x28cfb1,_0x145a74._0x2e7535,-_0x145a74._0x1a7610));throw _0x5c0570;}})());try{return await _0x3cd5c6[_0xce62d3(-_0x403509._0x2bf581,-0x97,0x29,0xcf)];}finally{_0x3cd5c6[_0x2976b9(-_0x403509._0x286a87,-0xe9,-0xde,-0x80)]=void 0x0;}}async*[_0x18ceca(0x5ed,0x594,0x5da,0x5a8)](_0xd69bbb,_0x46d58a){const _0x39851f={_0x5c7ba6:0xb4,_0x2d75c1:0x1d3,_0x557a3b:0x4ca,_0x12a18e:0x522,_0x570e15:0x416,_0x32b5a1:0x118,_0x5ac8f1:0x57f,_0x1825b1:0x5e5,_0x42f4af:0x4d6,_0x10f297:0x4cc,_0x333c0d:0x2f,_0x160fc5:0x4f,_0x161405:0x422,_0x236fff:0x4a7,_0x2ca1c7:0x3fd,_0x28c072:0x32a,_0x19e687:0x13a,_0x837a1:0x9b,_0x1aabfc:0x428,_0x442166:0x48f,_0x2509fb:0x4b5,_0x138ec6:0x33,_0x5874a2:0x72,_0x15d0f0:0xd4,_0x56030f:0x89,_0x380a84:0x5f0,_0x311979:0xce,_0x23ccc1:0x9a,_0x2b208e:0x18,_0x14c851:0x15a,_0x447da4:0x1f,_0x578463:0x30},_0x356b22={_0x155702:0x3d,_0x381f0f:0x2ec},_0x637887={_0x23c461:0x3e},_0x1c7381=this[_0x57536f(-0x28,-_0x39851f._0x5c7ba6,-_0x39851f._0x2d75c1,-0xf2)](_0xd69bbb);function _0x57536f(_0x5358e3,_0x59a987,_0x506542,_0x5258fa){return _0x18ceca(_0x5358e3,_0x5258fa- -0x554,_0x506542-_0x637887._0x23c461,_0x5258fa-0x1f2);}const _0x58ebc1=this[_0x55a2e7(0x448,0x4fa,_0x39851f._0x557a3b,_0x39851f._0x12a18e)](_0x1c7381['metadata'][_0x55a2e7(0x422,0x4aa,_0x39851f._0x570e15,0x342)]),_0x176f85=await this['acquireResponsesSocketLock'](_0x58ebc1);function _0x55a2e7(_0x597392,_0x5785d6,_0x17ac5c,_0x51f23b){return _0x4de126(_0x51f23b,_0x5785d6-0x11e,_0x17ac5c-_0x356b22._0x155702,_0x597392-_0x356b22._0x381f0f);}try{const _0x4e22cf=this[_0x57536f(-0x58,_0x39851f._0x32b5a1,0xf9,0x89)](_0x1c7381,_0x58ebc1);try{yield*this[_0x55a2e7(_0x39851f._0x5ac8f1,_0x39851f._0x1825b1,_0x39851f._0x42f4af,_0x39851f._0x10f297)](_0x1c7381[_0x57536f(-_0x39851f._0x333c0d,0xb,_0x39851f._0x160fc5,0x1f)][_0x55a2e7(_0x39851f._0x161405,_0x39851f._0x236fff,0x340,0x495)],_0x58ebc1,_0x1c7381,_0x4e22cf[_0x55a2e7(0x3d7,_0x39851f._0x2ca1c7,0x36b,_0x39851f._0x28c072)],_0x46d58a?.[_0x57536f(-0x5c,-_0x39851f._0x19e687,-0x12a,-_0x39851f._0x837a1)]);return;}catch(_0x4197f6){if(!_0x4e22cf['previousResponseId']||!this[_0x55a2e7(_0x39851f._0x1aabfc,_0x39851f._0x442166,0x48b,_0x39851f._0x2509fb)](_0x4197f6)){this['invalidateResponsesSocketSession'](_0x58ebc1);throw _0x4197f6;}}this[_0x57536f(0x8d,0x67,-_0x39851f._0x138ec6,_0x39851f._0x5874a2)](_0x58ebc1);const _0x452c3a=this[_0x57536f(0x66,_0x39851f._0x15d0f0,0x92,_0x39851f._0x56030f)](_0x1c7381,_0x58ebc1,{'forceFullReplay':!![]});yield*this[_0x55a2e7(_0x39851f._0x5ac8f1,0x5b3,0x504,_0x39851f._0x380a84)](_0x1c7381[_0x57536f(_0x39851f._0x311979,_0x39851f._0x23ccc1,0x105,0x1f)][_0x57536f(_0x39851f._0x2b208e,-_0x39851f._0x23ccc1,-_0x39851f._0x14c851,-0xbd)],_0x58ebc1,_0x1c7381,_0x452c3a[_0x57536f(-0xd4,-0x183,-0x4b,-0x108)],_0x46d58a?.[_0x57536f(-0x80,-_0x39851f._0x447da4,-_0x39851f._0x578463,-_0x39851f._0x837a1)]);}finally{_0x176f85();}}async*[_0x4de126(0x346,0x32a,0x36c,0x293)](_0x4cb7b0,_0x186bee,_0x110b5d,_0x4930f7,_0x2f2e8d){const _0x54d7c9={_0x40dd7c:0x47,_0x3536e0:0x72,_0x28141b:0x58,_0x71e7cc:0x29,_0x4e0a26:0x14,_0x2389b8:0x5d,_0x2f7bbf:0x260,_0x46839c:0x207,_0x9d80f8:0x2ef,_0xf2d8e9:0x2c7,_0x3fa875:0x2aa,_0x4bcd7d:0x385,_0x91969a:0x3ac,_0xc0c0a:0x2a0,_0x194d4a:0x2f,_0x75518d:0x468,_0x3e6c77:0x459,_0x2a51f6:0x38f,_0x5d7d4b:0x3b0,_0x5b497c:0x383,_0x158663:0x373},_0x2f9547={_0x2d6c58:0x80},_0x38906d=await this[_0x1081eb(_0x54d7c9._0x40dd7c,_0x54d7c9._0x3536e0,0x129,-_0x54d7c9._0x28141b)](_0x110b5d,_0x2f2e8d),_0x2e66e0=await this['getOrCreateResponsesSocket'](_0x4cb7b0,_0x186bee,_0x38906d,_0x4930f7,_0x2f2e8d),_0x3cf38e=createOpenAiResponsesStreamParser(_0x110b5d);function _0xb8a557(_0x216d46,_0x3f45d2,_0x26258b,_0x4b4d5e){return _0x4de126(_0x3f45d2,_0x3f45d2-_0x2f9547._0x2d6c58,_0x26258b-0x79,_0x216d46-0x10e);}throwIfAborted(_0x2f2e8d);function _0x1081eb(_0x5d9364,_0x2b1d50,_0x555414,_0x4300ff){return _0x4de126(_0x555414,_0x2b1d50-0xf5,_0x555414-0x56,_0x2b1d50- -0x1f6);}_0x2e66e0[_0x1081eb(0xcd,_0x54d7c9._0x71e7cc,0x17,0x9)](JSON[_0x1081eb(_0x54d7c9._0x4e0a26,_0x54d7c9._0x2389b8,0xd6,-0x1b)](_0x4930f7));for await(const _0x1c23f9 of iterateWebSocketMessages(_0x2e66e0,_0x2f2e8d)){const _0xe98f5=_0x3cf38e[_0xb8a557(_0x54d7c9._0x2f7bbf,0x205,0x265,_0x54d7c9._0x46839c)]?.(_0x1c23f9)??[];yield*_0xe98f5;if(_0x3cf38e[_0xb8a557(0x2c7,0x38f,0x398,_0x54d7c9._0x9d80f8)]?.())break;}if(!_0x3cf38e[_0xb8a557(_0x54d7c9._0xf2d8e9,_0x54d7c9._0x3fa875,_0x54d7c9._0x4bcd7d,0x2c3)]?.())throw new Error('Responses\x20WebSocket\x20closed\x20before\x20response.completed');const _0x1c55af=_0x3cf38e[_0xb8a557(0x38c,0x32a,_0x54d7c9._0x91969a,_0x54d7c9._0xc0c0a)](),_0x800176=_0x1c55af[_0x1081eb(-0x101,-_0x54d7c9._0x194d4a,0xb9,0xb8)]?.[_0xb8a557(0x37d,_0x54d7c9._0x75518d,0x3ba,0x341)]??_0x1c55af['id'];_0x800176&&(_0x186bee[_0xb8a557(0x3aa,_0x54d7c9._0x3e6c77,_0x54d7c9._0x2a51f6,_0x54d7c9._0x5d7d4b)]=_0x800176),yield{'type':_0xb8a557(0x298,_0x54d7c9._0x5b497c,0x292,_0x54d7c9._0x158663),'response':_0x1c55af};}},AVAILABLE_CHAT_MODEL_SURFACES=['anthropic-messages',_0x4de126(0x260,0x193,0x2e7,0x245),_0x4de126(0x6b,0x67,0xea,0x114),_0x18ceca(0x537,0x5c5,0x63d,0x5d9)];function _0x858b(){const _0x718824=['y29TCgXLDgLVBL90B2TLBNnFzgv0ywLSCW','D2vIC29JA2v0','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','t3bLBKfjiefqssbLCNjVCIa','Ahr0Chm6lY9HCgKUEI5HAs9HCgKVyw50AhjVCgLJ','y29UC3vTzvDLyLnVy2TLDev2zw50','Ahr0Chm6','B3v0Chv0rM9YBwf0','y2fJAgvFCMvHzf9PBNb1Df90B2TLBNm','otm4y29ly2ji','yxbPs2v5','C2LNBMfS','CMvZzxq','y3jLyxrLtwLZC2LUz0nYzwrLBNrPywXfCNjVCG','DhjHBNnWB3j0','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBLn0yxrL','Dgv4Df9KzwX0yq','z2v0uMvHzgvY','yw50AhjVCgLJlw1LC3nHz2vZ','u3vYzMfJzsa','y2fJAgvdCMvHDgLVBKLUChv0vg9Rzw5Z','C3rHDhvZ','twLUAu1HEc1nmW','z2v0t3bLBKfPrgvSzwDHDgu','C3rYzwfTvMLHq29UzMLNDxjLzfn1CMzHy2u','zgvJB2rL','Cgf0Aa','CMvZCg9UC2uUB3v0Chv0x2L0zw0UywrKzwq','AgvHzgvYCW','BM93','D3nZoG','Bw9KzwW','D2vIC29JA2v0x2nVBM5Ly3rPB25FBgLTAxrFCMvHy2HLza','C3rVCf9YzwfZB24','y29TCgXLDgvtDxjMywnL','z2XTltqUnW','Bwv0Ag9K','zw50CMLLCW','CMvZB2X2zunYzwrLBNrPywW','DgHLBG','Aw52ywXPzgf0zq','zxzLBNq6','ChjLCgfYzunOyxrszxf1zxn0','CgfYC2vszxnWB25Zzq','y2fSBeLKvg9pDxrWDxrjBMrLEa','C2HVDwXKuMv0CNLszxf1zxn0rxjYB3i','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','B3bLBMfPl2DWDc00BW','Bwf4x2nVBxbSzxrPB25FDg9Rzw5Z','zMLUAxnOx3jLyxnVBG','CMvHza','C2vUzeH0DhbtDxjMywnLuMvXDwvZDa','B3v0Chv0vg9Rzw5Z','CMvHC29UAw5NsxrLBxm','CMvWBgfJzq','D2vIu29JA2v0rMfJDg9YEq','uMvZCg9UC2vZihn0CMvHBsbMywLSzwq','z2L0AhvIqxbPvxjS','ChjVDMLKzxjZ','Bwf4t3v0Chv0','y2HVAwnLCW','zg9Uzq','mJaYmY0WnI0Wmq','CMvXDwvZDe11Dgf0B3jZ','CgfYC2u','yw50AhjVCgLJx3jLzgfJDgvKx3rOAw5RAw5N','Dg9VBf91C2u','CMvZB2X2zxi','yw50AhjVCgLJlw1LC3nHz2vZlxn0CMvHBq','mtG1mJy4m0LMENfHqq','B3bLBMfPx3jLyxnVBMLUzW','yxjNDw1LBNrZ','CMvZCg9UC2uUCMvHC29UAw5Nx3n1Bw1HCNLFDgv4Dc5KzwX0yq','ue9tva','y3jLzgvUDgLHBa','Aw5WDxrFDg9Rzw5Z','BwvZC2fNzv9KzwX0yq','BMfTzq','B3v0Chv0x2LUzgv4','Dg9VBa','z2v0u3vYzMfJzq','B3bLBMfPlxjLC3bVBNnLCY1ZDhjLyw0','Aw5WDxrFANnVBL9KzwX0yq','B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','ntuZuNbyrezw','o2jHC2u2ncW','y29TCgXLDgvwAwfszxnWB25ZzxntDxjMywnL','C3vTBwfYEq','B3v0Chv0sw5KzxG','Aw5KzxG','B2jQzwn0','C3rYzwfTu3vYzMfJzq','ywrHChrPDMu','y29Kzq','ChjVDMLKzxjFCMv0CNK','C29Tzq','BwfWqxbPrxjYB3i','CMvXDwvZDa','Dg9bCgLfCNjVCG','zMLUywXszxnWB25Zzq','CMvZB2X2zujHC2vvCMW','w0rptKvD','y29UC3vTzuv2zw50','ywDLBNq','yNvKz2v0vg9Rzw5Z','y29UDgv4Df9Szw5NDgG','zwzMB3j0','y2f0y2G','AxneB25L','Ahr0Chm6lY9HCgKUz2L0AhvIlMnVBq','Ahr0Chm6lY9HCgKUAw5KAxzPzhvHBc5NAxrODwjJB3bPBg90lMnVBq','yw50AhjVCgLJx3nPz25HDhvYzv9KzwX0yq','Dg9VBenHBgXpCMrLCG','Aw5WDxruB2TLBNm','y2fWywjSzv9LBMrWB2LUDhm','nduYmgvdsLDQvW','t3bLBKfj','AxngAw5PDgu','BNvTyMvY','t1bftG','ChjVEhK','BwfW','ChjVDMLKzxjtDgf0zq','yw50AhjVCgLJx3rOAw5RAw5N','CMvZCg9UC2u','yMXVy2TZ','C3rYzwfTshr0Cfn1CMzHy2u','uMf0zsbSAw1PDcbLEgnLzwrLzc4GugXLyxnLihrYEsbHz2fPBIbSyxrLCI4','l3yXl21LC3nHz2vZ','CMvZB2X2zq','ChjVBxb0x3rVA2vUCW','y2HHDgnTCgWT','C3LZDgvT','Ahr0Chm6lY90B2TLBI1WBgfUlxnNCc54AwfVBwLTAw1VlMnVBs92mq','CMvZCg9UC2uUB3v0Chv0x2L0zw0Uzg9Uzq','nZKWmtb0thnoAuK','C2vZC2LVBG','CMvMDxnHBa','yxbPlwTLEq','z3b0ltuTBwLUAq','y29WAwXVDc1JAgf0lZaUmZeUmW','BwvZC2fNzuLK','zMv0y2G','Dg9VBf9JywXSCW','B3v0Chv0x3rLEhq','CMvZCg9UC2uUy3jLyxrL','DgvSzw1LDhj5','igrPzcbUB3qGChjVDMLKzsbHBIbivfrqihbHDgG','BwvZC2fNzq','y2fJAgvszwfKsw5WDxruB2TLBNm','zgvSzxrL','y3jLyxrLsgvHzgvYCW','y29UDgvUDf9IBg9JAW','zNvUy3rPB24','Aw5WDxrFDgv4Da','qw50AhjVCgLJ','zMv0y2HjBxbS','B3bLBMfPl2DWDc00BY1TAw5P','Dgv4DfbHCNrZ','y29UDgv4DfDPBMrVDW','AM9PBG','Bwf4x2nVBNrLEhrFD2LUzg93x3rVA2vUCW','Dg9VBf91C2vFAwq','CMvZCg9UC2vtB2nRzxq','ANnVBG','Bw9KzwXfBMrWB2LUDenHy2HL','ywnJzxnZvg9Rzw4','B3bLBKfPrgvSzwDHDgu','nty2ndeYBfvlvMLd','DxrMltG','DxnLCI12AxnPyMXL','Dg9VBf9Yzxn1Bhq','y29TCgXLDgvK','Ahr0Cc1ZC2u','vw5RBM93BIbWCM92AwrLCIbLCNjVCG','v2vIu29JA2v0ignSB3nLzcb3AxrOignVzguG','zMLUza','zNvUy3rPB25Fy2fSBa','CMvHC29UAw5Nx2nVBNrLBNq','y29UDgvUDa','BwvZC2fNzv9ZDgfYDa','r2L0shvIiefqssbLCNjVCIa','z2v0t3jdCMvHDgvszxnWB25ZzxntB2nRzxq','Ahr0Cc1QC29U','ChjLDMLVDxnFCMvZCg9UC2vFBM90x2zVDw5K','C2vSzwn0u3vYzMfJzq','y29UDgvUDf9IBg9JA19KzwX0yq','DMLZAwjPBgL0Eq','DxjS','r0vu','CMvHC29UAw5NugfYDhm','yxnZAxn0yw50','Aw50zxjSzwf2zwq','C3bSAxq','C3bSAwnL','CMvHC29U','C29JA2v0','Bwv0ywrHDge','Ahr0Chm6lY9HCgKUzgvLChnLzwSUy29Tl2fUDgHYB3bPyW','Dg9VBhm','z2v0t3jdCMvHDgvszwfZB25PBMDjDgvT','C2HVDwXKuhjLzMvYuMvZCg9UC2vZqxbP','CMv0CNLHyMXL','Dg9VBf91C2vFzgvSDge','y29UDgvUDf9IBg9JA19ZDgfYDa','z3b0ltrV','C2XPy2u','uhjVDMLKzxiGCMvXDwvZDcbYzxrYEsbSB29Wigv4AxrLzcb1BMv4CgvJDgvKBhK','B3v0Chv0sw5KzxHuB0nHBgXjza','ywjVCNrLza','C2vUza','CMvZCg9UC2uUzMfPBgvK','sw1Hz2uGCMv0DxjUzwqGyNKGvMLLD0zPBguGzM9YihrVB2WGCMvZDwX0ia','y3jLyxrLuMvXDwvZDa','mJaYns0Xmc0Wmq','igrPzcbUB3qGChjVDMLKzsbHifDLyLnVy2TLDcbvuKWGB3iGCgf0Aa','Bw9KzwXZqMfZzvvYBa','l21VzgvSCW','z3b0ltuUmI1JB2rLEa','CMvHC29UAw5Nx3rVA2vUCW','qw50AhjVCgLJtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','AgvHzgvYuMvZB2X2zxi','y29TCgXLDgvwAwfsB3v0zxi','C2vUzfjHD1jLCxvLC3q','BwvZC2fNzxm','qMfZAa','l2nVCgLSB3rFAw50zxjUywWVDJiVDg9Rzw4','C2HHCMvKuMvZCg9UC2vZu29JA2v0u2vZC2LVBNm','B3v0Chv0','y2XVC2u','C3rYzwfTvMLHugvYC2LZDgvUDfjLC3bVBNnLC1nVy2TLDa','DMfSDwu','yw50AhjVCgLJqxnZAxn0yw50q29UDgvUDa','B3v0Chv0x3rVA2vUC19KzxrHAwXZ','C3vWCg9YDgvKx2vUzhbVAw50CW','Ahr0Chm6lY9HCgKUy29TBwfUzgnVzguUywKVChjVDMLKzxiVDJe','zM9Yy2vgDwXSuMvWBgf5','qMvHCMvYia','C2nOzw1H','C3vYzMfJzxm','Aw1Hz2u','C3vWCg9YDhnnB2rLBezLDgnO','C3rYDwn0DxjLzf9VDxrWDxq','AxnbCNjHEq','y29TCgXLDgu','z2v0qw50AhjVCgLJrgvSzwDHDgu','y29UDgvUDf9KzwX0yq','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzg9Uzq','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','CM91DgvY','zgvMyxvSDe1VzgvS','ywrKrxzLBNrmAxn0zw5LCG','Ahr0Chm6lY9HCgKUyw50AhjVCgLJlMnVBq','C3vTBwfYEv90zxH0','B3v0Chv0sw5KzxHuB1jLyxnVBMLUz0LK','Dgv4Dc9LDMvUDc1ZDhjLyw0','vw5ZDxbWB3j0zwqGr2L0shvIig1VzgvSihn1CMzHy2u6ia','mZj1B0zcD1i','yMfZzvvYBa','C3rHCNrZv2L0Aa','yw50AhjVCgLJrgvSzwDHDgu','CMvZCg9UC2uUy29TCgXLDgvK','C3rYAw5NAwz5','y2fJAgvFy3jLyxrPB25FAw5WDxrFDg9Rzw5Z','zMLUzfjLC3bVBNnLC1nVy2TLDenOzwnRCg9PBNq','ywjVCNq','yxv0Ag9YAxPHDgLVBG','y2XHDwrLlxnVBM5LDc00lJu','v2vIu29JA2v0ignSB3nLzcbIzwzVCMuGB3bLBMLUzW','Bwf4x3rVA2vUCW','Aw5WDxq','C2LNBMf0DxjLx2rLBhrH','zgvSDge','y29TCgXLDgLVBL90B2TLBNm','C2vZC2LVBK1HBMfNzxi','C3rYzwfTv2vIu29JA2v0u3vYzMfJzq','C29YDa','Dg9VBfvZzvn0yxj0rw1PDhrLza','Bw9Kzq','B3bLBMfPlxjLC3bVBNnLCY13CW','Aw52ywXPzgf0zvjLC3bVBNnLC1nVy2TLDfnLC3nPB24','CgvUzgLUzW','C2L6zq','ChjLCgfYzvjLC3bVBNnLC1nVy2TLDfjLCxvLC3q','zMXHDe1HCa','zgvLChnLzwSTDJqTzMXHC2G','DxnHz2u','AxrLBq','DgvZDa','yMfZzty0','B3bLBMfPuMvZCg9UC2vZuMvZCg9UC2vjza','yw50AhjVCgLJqMfZzvvYBa','Dgv4Da','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzgvSDge','CMvZCg9UC2vtB2nRzxrtDhjLyw0','A2v5CW','DhjPBq','C3rVCfjLyxnVBG','yNvPBgrqyxj0AwfSt3v0Chv0','A2LUza','z2v0uMv0CNLezwXHEu1Z','Aw5WDxrkC29U','ChvZAa','yNvPBgrszxnWB25ZzxntB2nRzxrfDMvUDa','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBKTLEq','zMLUAxnO','rgLYzwn0igfUC3DLCJOG','yxn5BMnjDgvYyxrVCG','BwvZC2fNzuLUzgv4','DgHPBMTPBMC','D2fPDezVCLjLDhj5','y2fWywjPBgL0AwvZ','Dgv4Dej5sw5KzxG','y2XPrgvMyxvSDe1VzgvS','AxrLBv9Pza','z2XTltqUnq','v2vIu29JA2v0','vw5RBM93BIbTB2rLBcbZDxjMywnLoIa','Aw5PDgLHBev2zw50','Bwf4x291Dhb1Df90B2TLBNm','C3rYzwfTvMLHuM91DgvY','C2HVDwXKuMv0CNLszxnWB25Zzq','B2f1DgGTDg9Rzw4','odyXmZG1Bxr0Euzh','C3vWCg9YDgvKrw5KCg9PBNrZ','CMvHzhLtDgf0zq','C3rYzwfTvMLHuMvZCg9UC2vZu29JA2v0qxr0zw1WDa','z3b0ltu','C2v0','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzg9Uzq','mZuXDMzbzg9l','ChjVDg9JB2W','igrVzxmGBM90ihn1ChbVCNqGBM9Ulxn0CMvHBwLUzYbYzxnWB25Zzxm','z2XTltqUnG','Bwf4vg9Rzw5Z','BgfZDfjLC3bVBNnLswq','yw50AhjVCgLJlxzLCNnPB24','Dg9Rzw5fEgnOyw5NzufWAvzLCNnPB24','ChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','zw5HyMXLza','yxv0BW','BhmGlwXH','yxbWBgLJyxrPB24VANnVBG','yxv0AfnJAgvTzq','C3rYzwfT','y29UBMvJDgLUzW','BgvUz3rO','uMvZCg9UC2vZifDLyLnVy2TLDcbYzxf1zxn0igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','BgfIzwW','wgLHB21P','y2HHDenVBxbSzxrPB25Zugf0Aa','Ec1HCgKTA2v5','BgLTAxrZ','z2v0','yw50AhjVCgLJ','uhjVDMLKzxjszxf1zxn0q29UC3rYDwn0Aw9UrxjYB3i','rgvLCfnLzwS','C3rYzwfTvMLHu3vYzMfJzq','zw5JCNLWDgvKq29UDgvUDa','yxbP','C3vTBwfYEv9PBMrLEa','zw5KCg9PBNrZ','z2L0AhvI','DxnLCG','ywnJzxb0','Dg9mB3DLCKnHC2u','ChjVDMLKzxjbzgfWDgvY','C3rYzwfTvMLHq2HHDenVBxbSzxrPB25Zu3vYzMfJzq','CMvZCg9UC2vjza','v2vIu29JA2v0ihjLCxvLC3qGzMfPBgvK','yM9KEq','CMvXDwvZDhm','CgfYDgLHBf9QC29U','BxnNlq','zNjVBq','Aw1Hz2vFDxjS','CMvZCg9UC2vZugf0Aa','qw50AhjVCgLJigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','twLUAu1HEa','DMfSDwvZ','C2LNBMf0DxjL','sw52ywXPzcbxzwjtB2nRzxqGBwvZC2fNztOG','zxzLBNq','zgf0ytO','y2fSBf9Pza','oNjLyxnVBMLUzZOW','y2fUy2vS','qxv0AgvUDgLJyxrPB24GzMfPBgvKlIbqBgvHC2uGy2HLy2SGEw91CIbbueKGA2v5lG','C2HVDwXKuMv0CNLtDhjLyw1bDhrLBxb0rxjYB3i','Dg9VBenHBgXZqNLjBMrLEa','ChjVDg9JB2XwzxjZAw9U','DxnLC1jLC3bVBNnLC0fWAq','ssbJAgvJA2vKihrOzsbTB2nRzwqGDg9VBcbYzxn1BhqUia','ywnXDwLYzvjLC3bVBNnLC1nVy2TLDeXVy2S','CMvZCg9UC2vuzxH0ugfYDhm','ANnVBL9Zy2HLBwe','l3jLC3bVBNnLCW','B3v0Chv0x3rVA2vUCW','y3jLyxrLu3rYzwfTugfYC2vY','CMvHC29UAw5Nx3rLEhq','CMv0CNKTywz0zxi','C291CMnL','ywrK','t3bLBKfjigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','yxbWBhLnB2rLBerLzMf1BhrZ','Dg9VBc1JywXSlq','y29UDgvUDf9PBMrLEa','zgvMyxvSDe1VzgvSCW','y2fJAgvK','Aw5JBhvKzxm','C3rYzwfTx2vYCM9Y','zwrPDg9YugX1z2LUvMvYC2LVBG','z2XTltuUmG','qw50AhjVCgLJihn0CMvHBsbMywLSzwq','y29TCgXLDgvwAwftDxjMywnL','zNjVBuvUDhjPzxm','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzgvSDge','q29TBwfUzenVzgu','yMvHCMvY','zMLSDgvY','Aw5WDxrFC2nOzw1H','C2vZC2LVBI10B2TLBG','zgf0yq','B3bLBMfPlxjLC3bVBNnLCW','l2nOyxqVy29TCgXLDgLVBNm','ntbVy1rrvwy','zxjYB3i','DhLWzq','CM9Szq','r2L0shvIq29WAwXVDenOyxqVmc4ZmY4X','y2HHDfn0CMvHBq','t3bLBKfPtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','zw5JCNLWDgvKx2nVBNrLBNq','CMvTB3zLrxzLBNrmAxn0zw5LCG','CMvZCg9UC2vtDhjLyw0','y29UDgvUDc10ExbL','zw5Kx3r1CM4','BwvKAwfFDhLWzq','Aw5JBhvKzunVBNrLBNruExbL','Aw5KzxHpzG','C3rYAw5N','y29UC3vTzvnZzuv2zw50','B3bLBG','Dg9VBenHBgXZ','DNnJB2rLlZeUmta2lJe','Bw9JAW','y29TCgXLDgvwAwfdAgf0q29TCgXLDgLVBNntDxjMywnL','Bwf4','C3vYzMfJzq','z3b0ltqUmq','z2XTltuUmq','C2vUzfDPDgHszxrYAwvZ','D3m6','zgLZywjSzwq','C3rHDhvZvgv4Da','ChjLDMLVDxnszxnWB25ZzuLK','uhjVDMLKzxjtDhjLyw1fDMvUDevYCM9Y','C2vZC2LVBKLK','uhjVDMLKzxiGCMvXDwvZDcbMywLSzwqGD2L0AcbZDgf0DxmG','y2HHDenVBxbSzxrL','C3rYzwfTvMLHuMvZCg9UC2vZu3vYzMfJzq','y2XHDwrLlxnVBM5LDc00ltiWmJuWnte0','zgvMyxvSDe1HEfrVA2vUCW','C2HVDwXKuMv0CNLszxnWB25ZzxntB2nRzxrszxf1zxn0','Ahr0Chm6lY9HCgKUEI5HAs9HCgKVy29KAw5Nl3bHyxmVDJq','y29UBMvJDf9MywLSzwq','Bw9KzwXZ','DhjPBvn0yxj0','zwrPDg9YvMvYC2LVBG','CMvHC29UAw5N','C3vTBwfYEuj5sw5KzxG','Ahr0Chm6lY9VCgvUCM91DgvYlMfPl2fWAs92mq','mtCWmZu5ohfoCffovq','zgvZy3jPChrPB24','Ahr0Chm6lY9HCgKUBwLUAw1HEc5PBY9HBNrOCM9WAwm','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','CMvKywn0zwrFDgHPBMTPBMC','t3bLBLjVDxrLCG','AgfZ','zgLZCgXHEq'];_0x858b=function(){return _0x718824;};return _0x858b();}function isAnthropicSurface(_0x36c777){const _0x1e0926={_0x670086:0x206,_0x4c1ea3:0x1af};function _0xb3a9c4(_0x54dd1d,_0x6ef09a,_0x40edd5,_0x4387c7){return _0x18ceca(_0x40edd5,_0x6ef09a- -0x6c6,_0x40edd5-0x1b9,_0x4387c7-0x11a);}return _0x36c777===_0xb3a9c4(-0x289,-_0x1e0926._0x670086,-0x214,-_0x1e0926._0x4c1ea3);}function resolveDefaultBaseUrl(_0x1d0563){const _0x2bcb59={_0x175078:0x123,_0x41e847:0x5d,_0x1b81db:0xc4,_0xf064aa:0x548,_0x490a81:0x449,_0x5b5f15:0x4ac,_0xe4cc87:0x4d9},_0x1dff7e={_0x208817:0x164,_0x1872b7:0x30c};function _0x1642fc(_0x5d6a6a,_0x34771b,_0x3fbc25,_0x5d36b9){return _0x4de126(_0x5d36b9,_0x34771b-0x1af,_0x3fbc25-0x1cb,_0x34771b-0x263);}if(_0x1d0563==='anthropic-messages')return getProviderProfile(_0x26c71b(-_0x2bcb59._0x175078,-_0x2bcb59._0x41e847,0x66,-_0x2bcb59._0x1b81db))?.[_0x1642fc(0x3ea,0x4b2,_0x2bcb59._0xf064aa,0x464)]??_0x1642fc(_0x2bcb59._0x490a81,_0x2bcb59._0x5b5f15,_0x2bcb59._0xe4cc87,0x416);function _0x26c71b(_0x3e39ef,_0x429de4,_0x561368,_0x16802e){return _0x4de126(_0x561368,_0x429de4-_0x1dff7e._0x208817,_0x561368-0xfb,_0x429de4- -_0x1dff7e._0x1872b7);}return getProviderProfile('openai')?.['baseUrl']??'https://api.openai.com/v1';}var ChatModel=class{[_0x4de126(0x1d2,0x1fc,0x115,0x16c)];['maxTokens'];['surface'];[_0x4de126(0x318,0x31b,0x2a9,0x251)];[_0x4de126(0x16c,0x2ab,0x272,0x1f4)];constructor(_0x26eb41={}){const _0x10b985={_0xfa7c7f:0x3ae,_0x19b110:0x4d5,_0x39ffe8:0x5,_0x246c11:0x1a,_0x8042e6:0x204,_0x399ab2:0x1c8,_0x4c44ab:0x149,_0x4f4fdc:0x2ec,_0x5b91c4:0x443,_0x388e81:0x4c6,_0x51a4a2:0x43a,_0x34a486:0x47c,_0x2d32a0:0x4a6,_0x5f535a:0x535,_0x3fc255:0x41,_0x1acb77:0x92,_0x39e5ef:0xa9,_0x54aae7:0x25,_0x2ec389:0x4d2,_0x1872a5:0x583,_0x52498a:0xd4,_0x37b4dd:0x15,_0x1cb767:0x573,_0x22ecdc:0x94,_0x2c4b14:0x50,_0xf2c509:0x3fc,_0x1d26c5:0x42e,_0x134afd:0x34,_0x5d3863:0x45c,_0x3b0e8a:0x1b9,_0xb00f27:0x175,_0x264e27:0x1be,_0x2cd36f:0x159,_0x5c11da:0xc4,_0x39a922:0x8f,_0x3243c3:0x15,_0x10ab91:0x24,_0x4de706:0x10,_0x2d84a0:0x520,_0x474ad1:0x5b8,_0xe9e54c:0x40d,_0x20a0cd:0x467,_0x46b7bc:0x340,_0x1253d3:0x3c9,_0x43ff4e:0x405,_0x42ed54:0x3d2,_0xfabd59:0x4be},_0x52b80c={_0x5340fd:0x10,_0x4e904c:0x152},_0x531d1e={_0x16d269:0xe0};function _0x46f860(_0x381f17,_0x35ff1d,_0x5df86b,_0x351382){return _0x18ceca(_0x381f17,_0x35ff1d- -_0x531d1e._0x16d269,_0x5df86b-0x38,_0x351382-0xe3);}this[_0x46f860(_0x10b985._0xfa7c7f,0x3ed,_0x10b985._0x19b110,0x47e)]=_0x26eb41[_0x288912(-_0x10b985._0x39ffe8,-0xb1,0xa2,_0x10b985._0x246c11)]??getDefaultModel(),this[_0x288912(_0x10b985._0x8042e6,0x16f,_0x10b985._0x399ab2,_0x10b985._0x4c44ab)]=_0x26eb41['maxTokens']??getDefaultMaxTokens(),this[_0x46f860(0x361,0x3ae,_0x10b985._0x4f4fdc,0x2d3)]=_0x26eb41['surface']??_0x46f860(_0x10b985._0x5b91c4,_0x10b985._0x388e81,_0x10b985._0x51a4a2,_0x10b985._0x34a486);function _0x288912(_0xd78091,_0x30ba5f,_0x51485b,_0x2afb2b){return _0x4de126(_0x51485b,_0x30ba5f-0x107,_0x51485b-_0x52b80c._0x5340fd,_0x2afb2b- -_0x52b80c._0x4e904c);}const _0x1df784=trimTrailingSlashes(_0x26eb41[_0x46f860(_0x10b985._0x2d32a0,0x4d0,0x5a0,_0x10b985._0x5f535a)]??resolveDefaultBaseUrl(this[_0x288912(-_0x10b985._0x3fc255,_0x10b985._0x1acb77,_0x10b985._0x39e5ef,-_0x10b985._0x54aae7)]));if(isAnthropicSurface(this[_0x46f860(0x35b,_0x10b985._0xfa7c7f,0x361,0x2bf)])){this[_0x46f860(0x539,_0x10b985._0x2ec389,0x420,_0x10b985._0x1872a5)]=new AnthropicModel({'apiKey':_0x26eb41[_0x288912(_0x10b985._0x52498a,_0x10b985._0x37b4dd,0x48,_0x10b985._0x39ffe8)],'authScheme':_0x26eb41[_0x46f860(0x4a9,0x525,_0x10b985._0x1cb767,0x5f6)],'baseUrl':_0x1df784,'fetch':_0x26eb41['fetch'],'maxTokens':this['maxTokens'],'model':this['model'],'reasoning':_0x26eb41[_0x288912(-0x67,-_0x10b985._0x22ecdc,_0x10b985._0x2c4b14,-0x10)],'providerSessionResolver':_0x26eb41['providerSessionResolver'],'requestMutators':_0x26eb41[_0x46f860(_0x10b985._0xf2c509,0x40d,_0x10b985._0x1d26c5,0x374)]});return;}this[_0x288912(_0x10b985._0x134afd,0x21,0xa2,0xa2)]=new OpenAiModel({'apiKey':_0x26eb41['apiKey'],'baseUrl':_0x1df784,'fetch':_0x26eb41[_0x46f860(0x4b3,_0x10b985._0x5d3863,0x4c6,0x395)],'headerResolver':_0x26eb41[_0x288912(_0x10b985._0x3b0e8a,_0x10b985._0xb00f27,_0x10b985._0x264e27,0xd8)],'maxTokens':this[_0x288912(0xff,_0x10b985._0x2cd36f,_0x10b985._0x5c11da,_0x10b985._0x4c44ab)],'model':this[_0x288912(_0x10b985._0x39a922,-0x1c,-_0x10b985._0x3243c3,0x1a)],'reasoning':_0x26eb41[_0x288912(_0x10b985._0x10ab91,0x75,0x73,-_0x10b985._0x4de706)],'providerSessionResolver':_0x26eb41[_0x46f860(0x4db,_0x10b985._0x2d84a0,0x5d7,_0x10b985._0x474ad1)],'requestMutators':_0x26eb41[_0x46f860(0x464,_0x10b985._0xe9e54c,_0x10b985._0x20a0cd,_0x10b985._0x46b7bc)],'webSocketFactory':_0x26eb41[_0x46f860(_0x10b985._0x1253d3,_0x10b985._0x43ff4e,_0x10b985._0x42ed54,_0x10b985._0xfabd59)]});}[_0x4de126(0x1e3,0x160,0x22e,0x242)](){const _0x3f00d2={_0x4b3603:0x24b,_0x21fe91:0x1ee,_0x19c5aa:0x1a6,_0x1b6655:0x5e8,_0x4c3150:0x117},_0x451403={_0x551b25:0x14c,_0x350c88:0x165,_0x4e2f96:0x36};if(!this[_0x5701f3(_0x3f00d2._0x4b3603,_0x3f00d2._0x21fe91,0x287,_0x3f00d2._0x19c5aa)])throw new Error(_0x455518(0x4ba,_0x3f00d2._0x1b6655,0x4cf,0x520)+this[_0x5701f3(0x104,_0x3f00d2._0x4c3150,0x163,0x1e6)]);function _0x5701f3(_0x52252b,_0x4130fd,_0x3e28da,_0x4412f9){return _0x4de126(_0x52252b,_0x4130fd-_0x451403._0x551b25,_0x3e28da-_0x451403._0x350c88,_0x3e28da-_0x451403._0x4e2f96);}function _0x455518(_0x206371,_0x23a44b,_0x3fcb53,_0x336380){return _0x18ceca(_0x3fcb53,_0x336380- -0x107,_0x3fcb53-0x5f,_0x336380-0x177);}return this['anthropicDelegate'];}['getOpenAiDelegate'](){const _0x2038b5={_0x12e2a7:0xe0,_0x495ce0:0x110,_0x3e6b7a:0x6d,_0x4dc639:0x423,_0x41d6c1:0x509},_0x59623c={_0x205d83:0x17},_0x2098ad={_0x455811:0x16d};function _0x40a6dd(_0x5d2c13,_0x464d3c,_0x37610a,_0x3d0286){return _0x4de126(_0x5d2c13,_0x464d3c-0xeb,_0x37610a-0x87,_0x37610a- -_0x2098ad._0x455811);}if(!this[_0x40a6dd(-0x6,_0x2038b5._0x12e2a7,0x87,0xc)])throw new Error(_0x40a6dd(-_0x2038b5._0x495ce0,-0xdb,-_0x2038b5._0x3e6b7a,-0x14a)+this[_0x37e0aa(0x512,_0x2038b5._0x4dc639,_0x2038b5._0x41d6c1,0x3a8)]);function _0x37e0aa(_0xe48a1f,_0x117e1b,_0x4603a9,_0x312ab0){return _0x4de126(_0x312ab0,_0x117e1b-0x9e,_0x4603a9-_0x59623c._0x205d83,_0x117e1b-0x2f6);}return this['openAiDelegate'];}[_0x18ceca(0x518,0x5a2,0x5bd,0x5ae)](_0x5aec8e,_0x576a95){const _0x4a9056={_0x34ceec:0x16c,_0x412e88:0x244,_0xcba95c:0x1d1,_0x570ff2:0x327,_0x237e5b:0x289,_0x1210de:0x315,_0x22898d:0x2fb,_0x10a63c:0x4b1,_0x34ce00:0x2cb,_0x3d55da:0x349,_0x269d41:0x3c1,_0x2bb280:0x490,_0x640a7f:0x41b,_0x29d21a:0x492,_0x370a50:0x535,_0x4b60b0:0x4a7,_0x32d2e0:0x252,_0x39166a:0x221,_0x2eada3:0x21d,_0xf6bb00:0x1c8},_0x478af7={_0x1b5b58:0x2d,_0x15f198:0xe5};function _0x5ed9db(_0x13f90b,_0x4a04ad,_0x2f8c66,_0x517736){return _0x18ceca(_0x13f90b,_0x2f8c66- -0xaa,_0x2f8c66-0x149,_0x517736-0xe0);}function _0x74d65d(_0x334213,_0x3b96d3,_0x299b77,_0x7f9b62){return _0x4de126(_0x334213,_0x3b96d3-0xb0,_0x299b77-_0x478af7._0x1b5b58,_0x3b96d3-_0x478af7._0x15f198);}switch(this[_0x5ed9db(0x3e8,0x3ba,0x3e4,0x48d)]){case _0x74d65d(_0x4a9056._0x34ceec,_0x4a9056._0x412e88,_0x4a9056._0xcba95c,0x1cb):return this[_0x74d65d(0x398,_0x4a9056._0x570ff2,_0x4a9056._0x237e5b,_0x4a9056._0x1210de)]()[_0x74d65d(0x367,0x326,_0x4a9056._0x22898d,0x308)](_0x5aec8e,_0x576a95);case _0x74d65d(0x13d,0x1f9,0x12b,0x270):return this['getOpenAiDelegate']()[_0x5ed9db(0x3e9,0x39f,0x480,_0x4a9056._0x10a63c)](_0x5aec8e,_0x576a95);case _0x74d65d(_0x4a9056._0x34ce00,_0x4a9056._0x3d55da,_0x4a9056._0x269d41,0x2a9):return this[_0x5ed9db(_0x4a9056._0x2bb280,0x387,_0x4a9056._0x640a7f,0x378)]()[_0x5ed9db(_0x4a9056._0x29d21a,_0x4a9056._0x370a50,_0x4a9056._0x4b60b0,0x47f)](_0x5aec8e,_0x576a95);default:return this[_0x74d65d(0x21f,0x249,_0x4a9056._0x32d2e0,0x1e1)]()[_0x74d65d(_0x4a9056._0x39166a,_0x4a9056._0x2eada3,0x134,_0x4a9056._0xf6bb00)](_0x5aec8e,_0x576a95);}}[_0x18ceca(0x57a,0x606,0x5a1,0x525)](_0x32f113,_0x366787){const _0x3c9a72={_0x34701d:0x68,_0x2f196a:0xe7,_0x4cd9a9:0x24,_0x254314:0xef,_0xbf487d:0x2f7,_0x5b9978:0x155,_0x48abb7:0x89,_0x1c1fd2:0x6,_0x4284c6:0xde,_0x8b4545:0x82,_0x457eac:0xe9,_0x284f81:0x37,_0x4340e6:0x22e,_0x50e568:0x2b6,_0x4c46cb:0x125,_0x24b412:0x138,_0x10005a:0x127,_0x503226:0x125,_0x239c3a:0x12e},_0x103d65={_0x5d83cf:0x185},_0x1b214b={_0x5b1249:0x57d,_0x4cc722:0x1de,_0x196d5f:0x116};function _0x2571fe(_0x3c289d,_0x1355c2,_0x383e93,_0x2468cb){return _0x18ceca(_0x3c289d,_0x2468cb- -_0x1b214b._0x5b1249,_0x383e93-_0x1b214b._0x4cc722,_0x2468cb-_0x1b214b._0x196d5f);}function _0x1ecbb0(_0x1ed064,_0x46a11b,_0x3918a0,_0x3fecc8){return _0x18ceca(_0x3fecc8,_0x46a11b- -0x397,_0x3918a0-_0x103d65._0x5d83cf,_0x3fecc8-0xaf);}switch(this[_0x2571fe(-_0x3c9a72._0x34701d,-_0x3c9a72._0x2f196a,-_0x3c9a72._0x4cd9a9,-_0x3c9a72._0x254314)]){case'anthropic-messages':return this[_0x1ecbb0(0x2ae,0x20c,_0x3c9a72._0xbf487d,0x29a)]()[_0x2571fe(_0x3c9a72._0x5b9978,0x6a,-0x15,_0x3c9a72._0x48abb7)](_0x32f113,_0x366787);case _0x1ecbb0(_0x3c9a72._0x1c1fd2,_0x3c9a72._0x4284c6,_0x3c9a72._0x8b4545,0x1ad):return this[_0x2571fe(-0x103,-0x67,-0xe,-0xb8)]()[_0x1ecbb0(0x61,_0x3c9a72._0x457eac,0xf3,_0x3c9a72._0x284f81)](_0x32f113,_0x366787);case _0x1ecbb0(0x216,_0x3c9a72._0x4340e6,0x282,_0x3c9a72._0x50e568):return this[_0x2571fe(-_0x3c9a72._0x4c46cb,-_0x3c9a72._0x24b412,-_0x3c9a72._0x10005a,-0xb8)]()['responseSocketStream'](_0x32f113,_0x366787);default:return this[_0x1ecbb0(_0x3c9a72._0x503226,_0x3c9a72._0x239c3a,0xe8,0x117)]()['chatStream'](_0x32f113,_0x366787);}}};import{randomUUID}from'crypto';var GitHubAccessTokenResolver=class{[_0x18ceca(0x544,0x554,0x5ee,0x515)];[_0x18ceca(0x580,0x5b0,0x539,0x5be)];['fetchImpl'];['githubApiUrl'];['tokenExchangeApiVersion'];constructor(_0x4adaef){const _0x4e7545={_0x2926d2:0x23b,_0x4cd975:0x271,_0x50f38a:0x128,_0x1e1581:0xe,_0x3fe170:0x292,_0x49aeb8:0x367,_0x507736:0x2f0,_0x5d3279:0x5f,_0xd65a63:0x23,_0x582497:0x3c7,_0x4b6707:0x2f3,_0x2e50c3:0x293,_0xbe5990:0x25a,_0x2cba96:0x29e,_0x2362a4:0x1c3,_0x58d206:0x2c,_0x50fc75:0xbc,_0x45bb2b:0x119},_0xe88ddd={_0x55b68d:0x5f,_0xef77ac:0x118},_0xb97767={_0x434a29:0x103};this[_0x30f990(_0x4e7545._0x2926d2,0x30b,0x37d,_0x4e7545._0x4cd975)]=_0x4adaef[_0x48bfcd(-_0x4e7545._0x50f38a,-0xbe,_0x4e7545._0x1e1581,-0x7f)],this[_0x30f990(_0x4e7545._0x3fe170,_0x4e7545._0x49aeb8,_0x4e7545._0x507736,0x332)]=trimTrailingSlashes2(_0x4adaef[_0x48bfcd(_0x4e7545._0x5d3279,-0xb1,-0xaa,-_0x4e7545._0xd65a63)]);function _0x48bfcd(_0x54ed53,_0x551fb6,_0x133b24,_0x354ee8){return _0x4de126(_0x551fb6,_0x551fb6-0x89,_0x133b24-_0xb97767._0x434a29,_0x354ee8- -0x272);}this['fetchImpl']=_0x4adaef[_0x30f990(_0x4e7545._0x582497,_0x4e7545._0x4b6707,0x3b1,_0x4e7545._0x2e50c3)];function _0x30f990(_0x5ad98a,_0x131ed7,_0x2a75fa,_0x55082c){return _0x4de126(_0x5ad98a,_0x131ed7-_0xe88ddd._0x55b68d,_0x2a75fa-0x157,_0x131ed7-_0xe88ddd._0xef77ac);}this[_0x48bfcd(-0x8b,-0x3a,-0x1d7,-0xec)]=trimTrailingSlashes2(_0x4adaef[_0x30f990(_0x4e7545._0xbe5990,_0x4e7545._0x2cba96,0x1e5,_0x4e7545._0x2362a4)]),this[_0x48bfcd(0x37,0x8d,0x9c,_0x4e7545._0x58d206)]=_0x4adaef[_0x48bfcd(0xce,-_0x4e7545._0x50fc75,_0x4e7545._0x45bb2b,0x2c)];}async[_0x4de126(0x1e2,0xeb,0x1b5,0x1ce)](_0x4bf06c){const _0x2162cb={_0x124b61:0x378,_0x4b2779:0x3a1,_0x3cf9a8:0x45b,_0x226579:0x41b,_0xf22ca3:0x220,_0x2f75bc:0x262,_0x349590:0x3d6,_0xe39c8a:0x38e,_0xfb2e18:0x27b,_0x2232dd:0x3b7,_0x2ebb0b:0x392,_0x405da0:0x355,_0x15d40d:0x308,_0x2e8fdd:0x13d,_0x4cfa47:0x273,_0x5e4a9d:0x1b5,_0x375533:0x1c0,_0x3dcb5:0x412,_0x298056:0x4bb,_0x408915:0x44f,_0x2ebe24:0x41f,_0x19ef07:0x478,_0x20cec0:0x1bf,_0x5a65dc:0x32e,_0x5da4f0:0x23a,_0xe04e7f:0x10f,_0x36d2f5:0x44f,_0xd4182f:0x380,_0x27ce08:0x583,_0x590ffd:0x5ca,_0x3c0e61:0x270,_0x427ca0:0x4f6,_0x45fdbe:0x4bd,_0x228dd1:0x596,_0x3fea55:0x351,_0x1815d9:0x3f1,_0xfc945f:0x3d8,_0xccedcf:0x435,_0x6b429c:0x43c,_0x1b7512:0x40b,_0x18c90d:0x4ef},_0x308e4e={_0x49415c:0x135,_0xcea49e:0x141},_0x172872={_0x452865:0x17c,_0x588d5c:0x70,_0x514727:0x9b},_0x5c1e3c=await this['fetchImpl'](this[_0x58846a(_0x2162cb._0x124b61,0x3b2,0x426,0x332)]+_0x58846a(_0x2162cb._0x4b2779,_0x2162cb._0x3cf9a8,_0x2162cb._0x226579,0x529),{'method':_0x4cb6a7(_0x2162cb._0xf22ca3,_0x2162cb._0x2f75bc,0x2a5,0x37b),'headers':new Headers({'accept':_0x4cb6a7(_0x2162cb._0x349590,_0x2162cb._0xe39c8a,0x33e,_0x2162cb._0xfb2e18),'authorization':_0x4cb6a7(_0x2162cb._0x2232dd,0x28e,0x2d5,_0x2162cb._0x2ebb0b)+this['accessToken'],'editor-version':_0x58846a(0x3e1,_0x2162cb._0x405da0,_0x2162cb._0x15d40d,0x35a),'user-agent':_0x4cb6a7(_0x2162cb._0x2e8fdd,_0x2162cb._0x4cfa47,_0x2162cb._0x5e4a9d,_0x2162cb._0x375533),'x-github-api-version':this['tokenExchangeApiVersion']}),'signal':_0x4bf06c});if(!_0x5c1e3c['ok'])return{'credential':{'kind':_0x58846a(_0x2162cb._0x3dcb5,_0x2162cb._0x298056,0x3e3,0x437),'value':this[_0x58846a(_0x2162cb._0x408915,_0x2162cb._0x2ebe24,_0x2162cb._0x19ef07,0x4a5)]},'endpoints':{'api':this['baseUrl']}};function _0x4cb6a7(_0x2c8ae3,_0x5ed3c2,_0x306e52,_0x3598ea){return _0x4de126(_0x2c8ae3,_0x5ed3c2-_0x172872._0x452865,_0x306e52-_0x172872._0x588d5c,_0x306e52-_0x172872._0x514727);}const _0x1783f2=await _0x5c1e3c[_0x4cb6a7(_0x2162cb._0x20cec0,0x27e,0x28c,_0x2162cb._0x5a65dc)]();function _0x58846a(_0x129056,_0x362b8c,_0x193489,_0x252f49){return _0x18ceca(_0x252f49,_0x362b8c- -_0x308e4e._0x49415c,_0x193489-_0x308e4e._0xcea49e,_0x252f49-0x1a7);}return{'credential':{'kind':_0x4cb6a7(_0x2162cb._0x5da4f0,0x27b,0x1ad,_0x2162cb._0xe04e7f),'value':_0x1783f2['token']??this[_0x58846a(_0x2162cb._0x36d2f5,0x41f,_0x2162cb._0xd4182f,0x39e)]},'endpoints':{'api':_0x1783f2['endpoints']?.[_0x58846a(_0x2162cb._0x27ce08,0x4e0,_0x2162cb._0x590ffd,0x3f0)]??this[_0x4cb6a7(0x3d0,0x2d8,0x2ea,_0x2162cb._0x3c0e61)],'originTracker':_0x1783f2[_0x58846a(_0x2162cb._0x427ca0,0x4e2,_0x2162cb._0x45fdbe,_0x2162cb._0x228dd1)]?.['origin-tracker'],'proxy':_0x1783f2[_0x4cb6a7(0x3e1,0x3a1,_0x2162cb._0x3fea55,0x438)]?.[_0x58846a(0x38b,_0x2162cb._0x1815d9,0x35a,0x38a)],'telemetry':_0x1783f2[_0x4cb6a7(_0x2162cb._0xfc945f,0x2bf,_0x2162cb._0x3fea55,_0x2162cb._0xccedcf)]?.[_0x58846a(_0x2162cb._0x6b429c,_0x2162cb._0x1b7512,0x3c0,_0x2162cb._0x18c90d)]}};}};function trimTrailingSlashes2(_0x39bcf8){const _0x55935d={_0x202949:0xbe,_0x10fa71:0x2c,_0x1dbe9f:0x70},_0x578ca4={_0x25aae1:0xaa,_0x4f78ea:0x1a1};function _0x334b23(_0x3b0668,_0x3696ec,_0x267b97,_0x5ebcbb){return _0x4de126(_0x3b0668,_0x3696ec-_0x578ca4._0x25aae1,_0x267b97-_0x578ca4._0x4f78ea,_0x3696ec- -0x157);}return _0x39bcf8[_0x334b23(-_0x55935d._0x202949,_0x55935d._0x10fa71,-_0x55935d._0x1dbe9f,0xa8)](/\/+$/,'');}function _0x245a(_0x9a09e8,_0x18ff9a){_0x9a09e8=_0x9a09e8-0x109;const _0x858baf=_0x858b();let _0x245a86=_0x858baf[_0x9a09e8];if(_0x245a['AiWjFb']===undefined){var _0x234fbc=function(_0x36d27c){const _0x2f07ad='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x38deb5='',_0x399814='';for(let _0x2a5b62=0x0,_0x45df6c,_0x824e05,_0x317951=0x0;_0x824e05=_0x36d27c['charAt'](_0x317951++);~_0x824e05&&(_0x45df6c=_0x2a5b62%0x4?_0x45df6c*0x40+_0x824e05:_0x824e05,_0x2a5b62++%0x4)?_0x38deb5+=String['fromCharCode'](0xff&_0x45df6c>>(-0x2*_0x2a5b62&0x6)):0x0){_0x824e05=_0x2f07ad['indexOf'](_0x824e05);}for(let _0x5dfca7=0x0,_0x19d9f0=_0x38deb5['length'];_0x5dfca7<_0x19d9f0;_0x5dfca7++){_0x399814+='%'+('00'+_0x38deb5['charCodeAt'](_0x5dfca7)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x399814);};_0x245a['jKOHdO']=_0x234fbc,_0x245a['kecdBu']={},_0x245a['AiWjFb']=!![];}const _0x5ee5a7=_0x858baf[0x0],_0x5f202d=_0x9a09e8+_0x5ee5a7,_0x45ac23=_0x245a['kecdBu'][_0x5f202d];return!_0x45ac23?(_0x245a86=_0x245a['jKOHdO'](_0x245a86),_0x245a['kecdBu'][_0x5f202d]=_0x245a86):_0x245a86=_0x45ac23,_0x245a86;}function createModelInfo(_0x545d31){const _0x58c79a={_0x199c3d:0x47e,_0x1c1279:0x482,_0x165545:0x524,_0x9cf534:0x1f2,_0x269422:0x11f,_0x38415c:0x23a,_0x220d57:0x596,_0x4b16cf:0x452,_0x4acdf0:0x435,_0x5dd6c2:0x424,_0x9c3a5a:0x362,_0x4c0c50:0x4cb,_0x11c288:0x52e,_0x9c8b4:0x423,_0x51c08e:0x2e0,_0x3cedf1:0x2b6,_0x3bf520:0x282,_0x46924e:0x40a,_0x10c373:0x40f},_0xc8d5fa={_0x25d7de:0x3b,_0x1cf374:0x14f,_0x3b254e:0x33},_0x53b736={_0x3653da:0x4a,_0x18b932:0x61,_0x5b3746:0x247},_0x53de20=_0x545d31[_0x5466ff(_0x58c79a._0x199c3d,_0x58c79a._0x1c1279,_0x58c79a._0x165545,0x461)]??_0x545d31[_0x270b96(_0x58c79a._0x9cf534,_0x58c79a._0x269422,0x27d,0x1de)];function _0x5466ff(_0x43f93a,_0x44aa82,_0x50c9bc,_0x2c4e53){return _0x4de126(_0x44aa82,_0x44aa82-_0x53b736._0x3653da,_0x50c9bc-_0x53b736._0x18b932,_0x43f93a-_0x53b736._0x5b3746);}const _0x217103=_0x545d31[_0x270b96(0x2b7,_0x58c79a._0x38415c,0x297,0x2aa)]?.[_0x5466ff(0x4f4,_0x58c79a._0x220d57,_0x58c79a._0x4b16cf,0x51a)]?.[_0x5466ff(_0x58c79a._0x4acdf0,0x49b,_0x58c79a._0x5dd6c2,_0x58c79a._0x9c3a5a)];function _0x270b96(_0x14136a,_0x186988,_0x24392a,_0x28f012){return _0x4de126(_0x24392a,_0x186988-_0xc8d5fa._0x25d7de,_0x24392a-_0xc8d5fa._0x1cf374,_0x14136a-_0xc8d5fa._0x3b254e);}const _0x5abe01=_0x545d31[_0x5466ff(_0x58c79a._0x4c0c50,_0x58c79a._0x11c288,0x588,_0x58c79a._0x9c8b4)]?.[_0x270b96(_0x58c79a._0x51c08e,0x33b,_0x58c79a._0x3cedf1,_0x58c79a._0x3bf520)]?.[_0x5466ff(0x4d3,_0x58c79a._0x46924e,0x436,0x46b)],_0x41e948=_0x217103!==void 0x0||_0x5abe01!==void 0x0?{..._0x217103!==void 0x0?{'contextWindow':_0x217103}:{},..._0x5abe01!==void 0x0?{'maxOutput':_0x5abe01}:{}}:void 0x0;return{'id':_0x545d31['id'],'name':_0x545d31[_0x5466ff(0x3e1,0x3ee,_0x58c79a._0x10c373,0x42d)]??_0x545d31['id'],..._0x41e948?{'limits':_0x41e948}:{},..._0x53de20?{'supportedEndpoints':_0x53de20}:{}};}function deduplicateModels(_0x10eb37){const _0x451de6={_0xd70aa1:0xd9,_0x473a0c:0x2d2,_0x17a79b:0x2d8},_0x5b3326={_0x310398:0x7d},_0x4359dd={_0x1a85d8:0x1df};function _0x1f9593(_0x26b2b1,_0x525f39,_0x37d5fe,_0x51e642){return _0x4de126(_0x51e642,_0x525f39-0xc7,_0x37d5fe-_0x4359dd._0x1a85d8,_0x26b2b1- -0x201);}const _0x259794=new Map();for(const _0x291eee of _0x10eb37){!_0x259794['has'](_0x291eee['id'])&&_0x259794['set'](_0x291eee['id'],_0x291eee);}function _0x3c74ba(_0x190c23,_0x28c413,_0x35904c,_0x1b6f57){return _0x18ceca(_0x190c23,_0x1b6f57- -0x2a5,_0x35904c-0x30,_0x1b6f57-_0x5b3326._0x310398);}return Array[_0x1f9593(0xc2,0x176,0xdc,_0x451de6._0xd70aa1)](_0x259794[_0x3c74ba(0x3e2,_0x451de6._0x473a0c,_0x451de6._0x17a79b,0x384)]());}function hasUserPromptContent(_0x55e95c){const _0xb27f47={_0x1fa3ea:0x38b,_0x1ed069:0x1cf,_0xa2956c:0xdb,_0x31a6a2:0x127,_0x5ce91f:0xfc,_0x33f34f:0x147,_0x3008cc:0x67,_0x15df6f:0x213},_0x1f0c7d={_0x12800d:0x184,_0x2d7f61:0x19b,_0x1ecc19:0x1dc,_0x59df41:0x211,_0x424dda:0x1c7,_0x474a9c:0x230,_0x58fc16:0x430,_0x59c432:0x444,_0x4ff338:0x411,_0x14b3a1:0x2d1,_0x3e0ce4:0x2b2,_0x19f794:0x206},_0x319e52={_0x24589d:0xcb},_0x4f2674={_0x5dc9fe:0x1b4};function _0x127c8c(_0x4d3a24,_0x3ed2d1,_0x2265e3,_0x49f626){return _0x4de126(_0x2265e3,_0x3ed2d1-0x1e7,_0x2265e3-0xd5,_0x4d3a24- -0x387);}function _0x31fcb6(_0x15e649,_0x11c616,_0x216701,_0x58dcda){return _0x4de126(_0x11c616,_0x11c616-0x180,_0x216701-_0x4f2674._0x5dc9fe,_0x58dcda-0x29e);}if(typeof _0x55e95c===_0x31fcb6(0x493,0x429,_0xb27f47._0x1fa3ea,0x3c3))return _0x55e95c[_0x127c8c(-0x112,-_0xb27f47._0x1ed069,-_0xb27f47._0xa2956c,-0x36)]()[_0x127c8c(-0xe0,-_0xb27f47._0x31a6a2,-0x27,-_0xb27f47._0x5ce91f)]>0x0;if(!Array[_0x127c8c(-_0xb27f47._0x33f34f,-_0xb27f47._0x3008cc,-0x15a,-_0xb27f47._0x15df6f)](_0x55e95c))return![];return _0x55e95c['some'](_0x2ec896=>{function _0x3974f7(_0x532543,_0x9baee4,_0x3344ad,_0x201f8c){return _0x31fcb6(_0x532543-0xf0,_0x201f8c,_0x3344ad-0x1d9,_0x3344ad- -_0x319e52._0x24589d);}function _0x5c0cde(_0xf0bdd9,_0x4a73be,_0x114e88,_0x3edc3b){return _0x127c8c(_0xf0bdd9-0x3b1,_0x4a73be-0x1e9,_0x3edc3b,_0x3edc3b-0xf7);}if(!_0x2ec896||typeof _0x2ec896!==_0x5c0cde(0x1d1,0x24c,0x1ff,_0x1f0c7d._0x12800d))return![];const _0x17751a=_0x2ec896;return(_0x17751a[_0x5c0cde(0x142,_0x1f0c7d._0x2d7f61,0x1b3,_0x1f0c7d._0x1ecc19)]===_0x5c0cde(_0x1f0c7d._0x59df41,0x2fb,_0x1f0c7d._0x424dda,_0x1f0c7d._0x474a9c)||_0x17751a['type']===_0x3974f7(0x372,0x40c,0x444,0x3e6))&&typeof _0x17751a['text']==='string'&&_0x17751a[_0x3974f7(0x432,_0x1f0c7d._0x58fc16,_0x1f0c7d._0x59c432,_0x1f0c7d._0x4ff338)]['trim']()[_0x5c0cde(_0x1f0c7d._0x14b3a1,_0x1f0c7d._0x3e0ce4,0x2f8,_0x1f0c7d._0x19f794)]>0x0;});}function _isUserPromptEntry(_0x2f38e8){const _0x292a8f={_0x11aa5b:0x331,_0x19d6ad:0x1c0,_0x4c5eeb:0x2a6,_0x26e65b:0x79,_0x2c9aaf:0x14f,_0x2ac99a:0x153,_0x2cc392:0x13f,_0x5e17c5:0x438,_0x24e252:0x3a5,_0x149f2d:0x373},_0x8b4d80={_0x115c1a:0x1a3},_0x483672={_0x27a2cc:0x9b};if(!_0x2f38e8||typeof _0x2f38e8!==_0xfb7efa(0x36f,0x290,0x334,_0x292a8f._0x11aa5b))return![];function _0xfb7efa(_0x39525f,_0x24a82a,_0x5d6f88,_0x581b0e){return _0x4de126(_0x581b0e,_0x24a82a-_0x483672._0x27a2cc,_0x5d6f88-0x1f4,_0x5d6f88-0x18d);}const _0x22d174=_0x2f38e8;if(_0x22d174[_0xfb7efa(0x255,_0x292a8f._0x19d6ad,_0x292a8f._0x4c5eeb,0x231)]!=='user')return![];function _0x435ece(_0x55d472,_0x3fba96,_0x58c89c,_0x5f294f){return _0x4de126(_0x3fba96,_0x3fba96-_0x8b4d80._0x115c1a,_0x58c89c-0x195,_0x58c89c- -0x9f);}if(_0x22d174[_0x435ece(0xf6,0x2,_0x292a8f._0x26e65b,_0x292a8f._0x2c9aaf)]!==void 0x0&&_0x22d174[_0x435ece(_0x292a8f._0x2ac99a,0x58,0x79,_0x292a8f._0x2cc392)]!==_0xfb7efa(_0x292a8f._0x5e17c5,0x39c,0x36e,0x3da))return![];return hasUserPromptContent(_0x22d174[_0xfb7efa(0x3d0,_0x292a8f._0x24e252,0x38d,_0x292a8f._0x149f2d)]);}function determineInitiator(_0x6d813b){const _0x58d202={_0x512336:0x592,_0x4875a3:0x4e7,_0xad5d09:0x545,_0x48adfa:0x52f,_0x517303:0x55d,_0x8c972b:0x4f7,_0x2635d5:0x4ef,_0x251137:0x5df,_0x91d683:0x4fd,_0x30d4b3:0x641,_0x246367:0x63f,_0x4c3c84:0x582},_0x3fcbb1={_0x2b6a76:0x107},_0x4aa5c2={_0x134272:0x302};if(!_0x6d813b||typeof _0x6d813b!=='object')return _0x2c7cda(0x516,0x40f,0x4b6,_0x58d202._0x512336);const _0x5d39b7=_0x2c7cda(0x48f,0x482,0x52f,_0x58d202._0x4875a3)in _0x6d813b?_0x6d813b[_0x2c7cda(_0x58d202._0xad5d09,0x596,_0x58d202._0x48adfa,0x495)]:'input'in _0x6d813b?_0x6d813b[_0x2c7cda(0x552,0x529,_0x58d202._0x517303,0x5e8)]:void 0x0;function _0x2c7cda(_0xc0f1ba,_0x3c4c0e,_0x3d4ca2,_0x856d99){return _0x4de126(_0x3c4c0e,_0x3c4c0e-0xfb,_0x3d4ca2-0x5f,_0x3d4ca2-_0x4aa5c2._0x134272);}function _0x5e55f6(_0x34b0a0,_0x31c64f,_0xda1a61,_0x50b0dc){return _0x4de126(_0x31c64f,_0x31c64f-_0x3fcbb1._0x2b6a76,_0xda1a61-0x1dc,_0x50b0dc-0x39f);}if(!Array[_0x5e55f6(_0x58d202._0x8c972b,0x6a9,_0x58d202._0x2635d5,_0x58d202._0x251137)](_0x5d39b7)||_0x5d39b7['length']===0x0)return _0x5e55f6(0x621,_0x58d202._0x91d683,0x597,0x553);return _isUserPromptEntry(_0x5d39b7[_0x5d39b7['length']-0x1])?'user':_0x5e55f6(_0x58d202._0x30d4b3,_0x58d202._0x246367,_0x58d202._0x4c3c84,0x553);}function isUnsupportedApiForModel(_0x3981bb){const _0x2602f1={_0x84b2a1:0xf6},_0x27673f={_0x281006:0x21c};function _0x478409(_0x1367a5,_0x139093,_0xe466e2,_0x49706e){return _0x4de126(_0xe466e2,_0x139093-0x16,_0xe466e2-0xe8,_0x49706e- -_0x27673f._0x281006);}return _0x3981bb[_0x478409(-0xc7,-0xaf,-_0x2602f1._0x84b2a1,-0x116)]('unsupported_api_for_model');}function createResponseError(_0x2cd572,_0x4f0ea3){const _0x3e35ae={_0xd7c473:0x31e,_0x3fffaa:0x274,_0x5bbaad:0x3ac,_0x15425b:0x3fa,_0x38c274:0x3cf,_0x531120:0x37e},_0x58bf49={_0x472922:0xc2},_0x4c5ed4={_0x40c71a:0x81,_0x482e7d:0x3bb};function _0x188b82(_0x6bed6d,_0x4ff221,_0x49ec34,_0x289cf2){return _0x4de126(_0x49ec34,_0x4ff221-0xee,_0x49ec34-_0x4c5ed4._0x40c71a,_0x6bed6d- -_0x4c5ed4._0x482e7d);}if(_0x2cd572===0x191||_0x2cd572===0x193)return new Error(_0x1f6852(0x2e1,_0x3e35ae._0xd7c473,_0x3e35ae._0x3fffaa,_0x3e35ae._0x5bbaad));function _0x1f6852(_0x5e28bf,_0x1ddaa1,_0x4a34fa,_0x406fb6){return _0x4de126(_0x5e28bf,_0x1ddaa1-_0x58bf49._0x472922,_0x4a34fa-0x67,_0x1ddaa1-0x22e);}if(_0x2cd572===0x198||_0x2cd572===0x1ad)return new Error(_0x1f6852(0x42b,_0x3e35ae._0x15425b,_0x3e35ae._0x38c274,0x44c));if(_0x2cd572===0x190)return new Error('Invalid\x20request:\x20'+_0x4f0ea3);return new Error(_0x4f0ea3||_0x1f6852(0x483,0x430,_0x3e35ae._0x531120,0x4bd)+_0x2cd572);}var GitHubModel=class extends OpenAiModel{[_0x18ceca(0x4ee,0x5b2,0x5db,0x69f)];[_0x18ceca(0x593,0x553,0x591,0x4fb)]=new Map();[_0x18ceca(0x45c,0x48e,0x517,0x53c)];constructor(_0x53c937={}){const _0x4b6419={_0x2d6e23:0x4f8,_0x5a7669:0x341,_0x12ff64:0x3d0,_0x5bea89:0x2f5,_0x5b84e9:0x442,_0x242009:0x45a,_0x561815:0x49c,_0x3e5563:0x47e,_0x140543:0x345,_0x65d9b9:0x2c0,_0x1726fc:0x2a1,_0x480aec:0x373,_0x530b24:0x20a,_0x2dc8d9:0x2f4,_0x1a4996:0x547,_0x1e6020:0x508,_0x3f8dd5:0x28a,_0x90da7d:0x31c,_0x45d30f:0x35d,_0x5b0df8:0x272,_0x59dbdc:0x2c5,_0xaedd3b:0x428,_0x71afca:0x3a3,_0x95ff23:0x400,_0x30ef97:0x5ae,_0x3886f0:0x555,_0x155f01:0x415,_0x2e7cc5:0x44b,_0x4701b7:0x413,_0x4daa1f:0x3ad,_0x1a45d5:0x435,_0x4cd935:0x488,_0x27fb70:0x1a1,_0x1ac0dc:0x322,_0x2909a0:0x212,_0x44f5fd:0x1c4,_0x542c21:0x291,_0x38c178:0x215,_0x569de6:0x2e7,_0x48753d:0x284,_0x3bd333:0x1cb,_0x40fe69:0x3b3,_0x5f497e:0x45a,_0x526512:0x368,_0x25d7a6:0x296},_0x5141fe={_0x51f62d:0x160},_0x2c1ffc={_0x2d9423:0x227,_0x45b034:0xcd},_0x299645=trimTrailingSlashes2(_0x53c937[_0x141485(0x578,0x589,_0x4b6419._0x2d6e23,0x5d8)]??_0x57bad5(_0x4b6419._0x5a7669,0x385,_0x4b6419._0x12ff64,_0x4b6419._0x5bea89)),_0x18fc81=_0x53c937['fetch']??globalThis[_0x141485(_0x4b6419._0x5b84e9,0x4f6,0x484,_0x4b6419._0x242009)];function _0x57bad5(_0x2e42d8,_0x5c0eb5,_0x5aeb01,_0xee7e61){return _0x18ceca(_0x5aeb01,_0xee7e61- -_0x2c1ffc._0x2d9423,_0x5aeb01-0xe6,_0xee7e61-_0x2c1ffc._0x45b034);}const _0x2c082a=_0x53c937['providerSessionResolver']??(_0x53c937[_0x141485(0x429,0x48f,_0x4b6419._0x561815,_0x4b6419._0x3e5563)]?new GitHubAccessTokenResolver({'accessToken':_0x53c937['accessToken'],'baseUrl':_0x299645,'fetch':_0x18fc81,'githubApiUrl':_0x53c937[_0x57bad5(0x356,0x201,_0x4b6419._0x140543,_0x4b6419._0x65d9b9)]??_0x57bad5(_0x4b6419._0x1726fc,_0x4b6419._0x480aec,_0x4b6419._0x530b24,_0x4b6419._0x2dc8d9),'tokenExchangeApiVersion':_0x53c937[_0x141485(0x4f8,0x50f,_0x4b6419._0x1a4996,_0x4b6419._0x1e6020)]??_0x57bad5(_0x4b6419._0x3f8dd5,_0x4b6419._0x5b84e9,_0x4b6419._0x90da7d,_0x4b6419._0x45d30f)}):void 0x0);function _0x141485(_0x497913,_0x10ed39,_0x1dc19f,_0x30e910){return _0x18ceca(_0x10ed39,_0x1dc19f- -0xb8,_0x1dc19f-0x17e,_0x30e910-_0x5141fe._0x51f62d);}const _0x2564a2=_0x53c937[_0x57bad5(0x34d,0x2b5,_0x4b6419._0x5b0df8,0x27b)]??'vscode/1.104.2',_0x284ca5=_0x53c937[_0x141485(_0x4b6419._0x59dbdc,_0x4b6419._0xaedd3b,0x3b1,0x304)]??_0x57bad5(0x262,0x233,0x2a6,0x313),_0x43915c=({body:_0x1f7130})=>{return{'editor-plugin-version':_0x284ca5,'editor-version':_0x2564a2,'x-initiator':determineInitiator(_0x1f7130),'x-request-id':randomUUID()};},_0x39e30b={'apiKey':_0x53c937[_0x141485(_0x4b6419._0x71afca,0x474,_0x4b6419._0x95ff23,0x468)],'baseUrl':_0x299645,'fetch':_0x18fc81,'maxTokens':_0x53c937[_0x141485(_0x4b6419._0x30ef97,_0x4b6419._0x3886f0,0x544,0x5d5)],'model':_0x53c937[_0x141485(0x4a0,0x4ab,_0x4b6419._0x155f01,_0x4b6419._0x2e7cc5)],'reasoning':_0x53c937[_0x141485(_0x4b6419._0x4701b7,_0x4b6419._0x4daa1f,0x3eb,0x49f)],'providerSessionResolver':_0x2c082a,'requestMutators':_0x53c937[_0x141485(0x366,0x3f2,_0x4b6419._0x1a45d5,_0x4b6419._0x4cd935)],'headerResolver':_0x43915c};super(_0x39e30b),this[_0x57bad5(0x2b2,_0x4b6419._0x27fb70,_0x4b6419._0x1ac0dc,0x267)]=_0x53c937[_0x57bad5(_0x4b6419._0x2909a0,_0x4b6419._0x44f5fd,_0x4b6419._0x542c21,0x267)]??'auto',this['anthropicDelegate']=new AnthropicModel({'apiKey':_0x53c937[_0x57bad5(_0x4b6419._0x38c178,_0x4b6419._0x569de6,0x2e8,0x291)],'authScheme':_0x57bad5(_0x4b6419._0x48753d,0x290,_0x4b6419._0x3bd333,0x249),'baseUrl':_0x299645,'fetch':_0x18fc81,'headerResolver':_0x43915c,'maxTokens':_0x53c937[_0x57bad5(_0x4b6419._0x40fe69,_0x4b6419._0x5f497e,_0x4b6419._0x526512,0x3d5)],'model':_0x53c937[_0x57bad5(0x221,0x343,0x284,0x2a6)],'reasoning':_0x53c937['reasoning'],'providerSessionResolver':_0x2c082a,'requestMutators':_0x53c937[_0x57bad5(0x310,_0x4b6419._0x25d7a6,0x1de,0x2c6)]});}[_0x18ceca(0x3f6,0x4bb,0x4c5,0x43b)](){return new Error('GitHubModel\x20requires\x20an\x20apiKey,\x20accessToken,\x20or\x20providerSessionResolver');}[_0x18ceca(0x439,0x455,0x37b,0x494)](_0xa8b60e){const _0x32fbdc={_0x20ef83:0x122,_0x2b54e1:0x164,_0x44d354:0xcb,_0x28f6b1:0x250,_0xa47d7c:0x24a,_0x5b604d:0x191,_0x3f4e97:0x238,_0x19ab47:0x15c,_0xaec7a8:0x167,_0x591840:0xeb,_0x2275c3:0x1ce,_0x57de9f:0x260,_0x1c6dbd:0x10c},_0x98f1aa={_0x38490c:0x607,_0x59cd92:0x175,_0x328ef7:0x1c2},_0xd8bae4=this[_0x1a1b63(-0xd5,-0x135,-_0x32fbdc._0x20ef83,-_0x32fbdc._0x2b54e1)][_0x1a1b63(-0x19,-0x30,-_0x32fbdc._0x44d354,-0x81)](_0xa8b60e);function _0x2af8df(_0x3d0f7b,_0x2f9b3c,_0x2b4e76,_0x3a27a8){return _0x18ceca(_0x3a27a8,_0x3d0f7b- -_0x98f1aa._0x38490c,_0x2b4e76-_0x98f1aa._0x59cd92,_0x3a27a8-_0x98f1aa._0x328ef7);}if(!_0xd8bae4)return![];function _0x1a1b63(_0x1f5d38,_0x2a8121,_0xcf60,_0x1268dc){return _0x18ceca(_0x1268dc,_0x1f5d38- -0x628,_0xcf60-0xf7,_0x1268dc-0x195);}return!_0xd8bae4[_0x2af8df(-0x1a0,-_0x32fbdc._0x28f6b1,-0x238,-_0x32fbdc._0xa47d7c)](_0x2af8df(-_0x32fbdc._0x5b604d,-0xe0,-_0x32fbdc._0x3f4e97,-_0x32fbdc._0x19ab47))&&_0xd8bae4[_0x1a1b63(-0x1c1,-0x21e,-_0x32fbdc._0xaec7a8,-_0x32fbdc._0x591840)](_0x1a1b63(-_0x32fbdc._0x2275c3,-0x18f,-_0x32fbdc._0x57de9f,-_0x32fbdc._0x1c6dbd));}['shouldPreferResponsesApi'](_0x5dfe8e){const _0x12d05={_0x2f079:0x10,_0x457e9f:0xa6,_0x481010:0xfe,_0x269d9a:0x3a6,_0x2b9599:0x2fa,_0x28be07:0x27b,_0x5d940e:0x384,_0x11373e:0x3d6,_0x3a6da7:0x30},_0x5c3907={_0x5c5bd8:0x1c8,_0x27cb20:0x201},_0x2b704e={_0x5ad07d:0xf3},_0x5b9b08=this[_0x2bb0d2(0xf,-_0x12d05._0x2f079,_0x12d05._0x457e9f,0x56)]['get'](_0x5dfe8e['model']);if(!_0x5b9b08)return![];if(resolveOpenAiReasoningConfig(_0x5dfe8e['reasoning']))return _0x5b9b08[_0x2bb0d2(-0xf7,-_0x12d05._0x481010,-0x121,-0x96)](_0xa6e90e(0x279,_0x12d05._0x269d9a,_0x12d05._0x2b9599,0x3e4));function _0x2bb0d2(_0x584b54,_0x15430e,_0xdf16e,_0x242d6b){return _0x4de126(_0x584b54,_0x15430e-_0x2b704e._0x5ad07d,_0xdf16e-0x1da,_0x242d6b- -0x19c);}function _0xa6e90e(_0x3d7ee7,_0x112d25,_0x5b6539,_0x5ece45){return _0x4de126(_0x112d25,_0x112d25-_0x5c3907._0x5c5bd8,_0x5b6539-0xf4,_0x5b6539-_0x5c3907._0x27cb20);}return this[_0xa6e90e(_0x12d05._0x28be07,_0x12d05._0x5d940e,0x2f5,_0x12d05._0x11373e)](_0x5dfe8e[_0x2bb0d2(0xb4,0x76,-0x47,-_0x12d05._0x3a6da7)]);}['markModelAsResponsesOnly'](_0x2573b7){const _0xa206de={_0x13e85e:0x1c7,_0x5e5965:0x19e,_0x8cc628:0x220,_0x2add7e:0x7c,_0xb742c6:0x372},_0x265f37={_0x5dec98:0x6f1};function _0x3423bb(_0x403153,_0x6b6a64,_0x33a126,_0x41f5da){return _0x18ceca(_0x403153,_0x33a126- -_0x265f37._0x5dec98,_0x33a126-0x108,_0x41f5da-0x132);}function _0x39d869(_0x20541f,_0x370f34,_0x59a287,_0x2a2990){return _0x4de126(_0x370f34,_0x370f34-0x13e,_0x59a287-0x71,_0x59a287- -0x166);}this[_0x3423bb(-0x280,-_0xa206de._0x13e85e,-_0xa206de._0x5e5965,-_0xa206de._0x8cc628)][_0x39d869(_0xa206de._0x2add7e,0x13f,0x12f,0x121)](_0x2573b7,[_0x3423bb(-0x2bb,-0x353,-0x297,-_0xa206de._0xb742c6)]);}[_0x4de126(0x27c,0x1e7,0x24a,0x1ad)](_0x3819d2){const _0x188199={_0x396759:0x1c4,_0x4226f4:0x30a,_0x47f47f:0x2cd,_0x52aec6:0xf3,_0x5de1fe:0x184};if(_0x3819d2 instanceof OpenAiApiError)return createResponseError(_0x3819d2[_0xae5c60(-0x250,-_0x188199._0x396759,-_0x188199._0x4226f4,-_0x188199._0x47f47f)],_0x3819d2[_0xae5c60(-_0x188199._0x52aec6,-0x87,-_0x188199._0x5de1fe,-0x12f)]||_0x3819d2['message']);function _0x178a40(_0x16128c,_0x46e57d,_0x544d21,_0x3c7532){return _0x18ceca(_0x3c7532,_0x16128c- -0x426,_0x544d21-0x164,_0x3c7532-0x27);}function _0xae5c60(_0x2bb763,_0x344e37,_0x274e2c,_0x13f8ea){return _0x4de126(_0x13f8ea,_0x344e37-0x11e,_0x274e2c-0x16,_0x2bb763- -0x3b2);}return _0x3819d2;}['completeViaConfiguredSurface'](_0x51da94,_0xf51688){const _0x1555d4={_0x454748:0x1a5,_0x288255:0x279,_0x5b513b:0x2bd,_0x47c3a3:0x36b,_0x36781f:0x417,_0x3b46b7:0x46a,_0x258624:0x3ae,_0xea5901:0x438,_0x33b106:0x350,_0x1f6800:0x3e3,_0x49218c:0x276,_0x301382:0x289,_0x2be6ce:0x252,_0x5c3dee:0x300,_0x5678e7:0x2e3,_0x4febd9:0x287,_0x5eb489:0x325,_0x557546:0x377,_0xb3012a:0x2c4,_0x4fc3d9:0x3d0,_0x4105a5:0x367,_0x400aef:0x2dc,_0x5a5042:0x239},_0x458993={_0x50ab64:0x156,_0x5bcc69:0x58},_0x4bbfa3={_0x57c9da:0xd3,_0x479950:0x16d};switch(this[_0x33334e(0x2df,0x1c9,0x24f,0x29a)]){case _0x3e40e8(0x2f8,_0x1555d4._0x454748,_0x1555d4._0x288255,_0x1555d4._0x5b513b):return this[_0x3e40e8(0x413,0x2c7,_0x1555d4._0x47c3a3,0x369)][_0x33334e(0x34a,_0x1555d4._0x36781f,_0x1555d4._0x3b46b7,_0x1555d4._0x258624)](_0x51da94,_0xf51688);case _0x3e40e8(_0x1555d4._0xea5901,_0x1555d4._0x33b106,0x35f,_0x1555d4._0x1f6800):return this[_0x3e40e8(_0x1555d4._0x49218c,_0x1555d4._0x301382,_0x1555d4._0x2be6ce,0x19d)](_0x51da94,_0xf51688);case'openai-responses':return this[_0x3e40e8(0x21b,_0x1555d4._0x5c3dee,_0x1555d4._0x5678e7,_0x1555d4._0x4febd9)](_0x51da94,_0xf51688);case _0x3e40e8(0x3c8,_0x1555d4._0x5eb489,0x37e,0x30c):return this[_0x3e40e8(_0x1555d4._0x557546,0x221,0x30a,0x334)](_0x51da94,_0xf51688);case'auto':return this[_0x33334e(_0x1555d4._0xb3012a,_0x1555d4._0x4fc3d9,0x452,0x3ae)](_0x51da94,_0xf51688);}function _0x33334e(_0x5f4a46,_0x89635e,_0x5be536,_0x1c7f91){return _0x4de126(_0x5f4a46,_0x89635e-0x7e,_0x5be536-_0x4bbfa3._0x57c9da,_0x1c7f91-_0x4bbfa3._0x479950);}function _0x3e40e8(_0x49999a,_0x2b896,_0x33e25e,_0x9d9890){return _0x18ceca(_0x2b896,_0x33e25e- -0x247,_0x33e25e-_0x458993._0x50ab64,_0x9d9890-_0x458993._0x5bcc69);}throw new Error(_0x3e40e8(0x399,0x295,_0x1555d4._0x4105a5,0x369)+String(this[_0x3e40e8(0x15e,_0x1555d4._0x400aef,0x247,_0x1555d4._0x5a5042)]));}[_0x4de126(0x20a,0xfe,0x14c,0x165)](_0x3b4ac4,_0x9b300e){const _0x4906c7={_0x5b74da:0x480,_0x5b9617:0x3f2,_0x15fc0e:0x4b2,_0x54ccad:0x408,_0x4efdc0:0x4b8,_0x2bdec0:0x4cc,_0xb7b328:0x43c,_0x5ee5b7:0x35b,_0x15c492:0x3f5,_0x147afb:0x3e0,_0x5a089e:0x552,_0x4dc6f:0x2fe,_0xb8be8b:0x3dd,_0x5385bc:0x348,_0x7dec11:0x2ff,_0xd6d285:0x356,_0x3694d7:0x472,_0x5ef5f2:0x3e9,_0x42c0d5:0x5b7,_0x189299:0x521,_0x4436ae:0x56b,_0x7e193b:0x3d5,_0x4dbd27:0x436,_0x13abda:0x5f4,_0x457d69:0x661,_0x5482b4:0x5f8,_0x37db4c:0x5c5,_0x235618:0x5aa,_0x3d725c:0x609,_0x262a8c:0x484,_0x12ded5:0x532},_0x2ea7fa={_0x103f83:0x176,_0x58da1a:0x47},_0x4dc562={_0x2d0220:0x1da,_0x366162:0x353};function _0x3d229c(_0x37b672,_0x17f90f,_0x3c5e4d,_0x2ea8a7){return _0x4de126(_0x3c5e4d,_0x17f90f-_0x4dc562._0x2d0220,_0x3c5e4d-0xd2,_0x37b672-_0x4dc562._0x366162);}function _0x1c9294(_0x59d225,_0x410113,_0x2a0dd9,_0x5b456f){return _0x18ceca(_0x59d225,_0x2a0dd9- -_0x2ea7fa._0x103f83,_0x2a0dd9-0xdf,_0x5b456f-_0x2ea7fa._0x58da1a);}switch(this[_0x3d229c(_0x4906c7._0x5b74da,_0x4906c7._0x5b9617,0x460,0x550)]){case _0x3d229c(_0x4906c7._0x15fc0e,_0x4906c7._0x54ccad,0x554,_0x4906c7._0x4efdc0):return this[_0x1c9294(_0x4906c7._0x2bdec0,0x450,_0x4906c7._0xb7b328,_0x4906c7._0x5ee5b7)][_0x1c9294(_0x4906c7._0x15c492,_0x4906c7._0x147afb,0x490,0x3eb)](_0x3b4ac4,_0x9b300e);case _0x3d229c(0x598,_0x4906c7._0x5a089e,0x66b,0x5d6):return this[_0x1c9294(_0x4906c7._0x4dc6f,_0x4906c7._0xb8be8b,0x306,_0x4906c7._0x5385bc)](_0x3b4ac4,_0x9b300e);case _0x1c9294(0x3c6,0x277,_0x4906c7._0x7dec11,_0x4906c7._0xd6d285):return this[_0x3d229c(_0x4906c7._0x3694d7,0x40f,0x3df,_0x4906c7._0x5ef5f2)](_0x3b4ac4,_0x9b300e);case _0x3d229c(_0x4906c7._0x42c0d5,_0x4906c7._0x189299,0x547,_0x4906c7._0x4436ae):return this[_0x1c9294(_0x4906c7._0x7e193b,0x373,0x45e,_0x4906c7._0x4dbd27)](_0x3b4ac4,_0x9b300e);case _0x3d229c(_0x4906c7._0x13abda,0x526,0x515,_0x4906c7._0x457d69):return this[_0x3d229c(_0x4906c7._0x5482b4,_0x4906c7._0x37db4c,_0x4906c7._0x235618,_0x4906c7._0x3d725c)](_0x3b4ac4,_0x9b300e);}throw new Error('Unsupported\x20GitHub\x20model\x20surface:\x20'+String(this[_0x3d229c(0x480,0x4ac,_0x4906c7._0x262a8c,_0x4906c7._0x12ded5)]));}async[_0x4de126(0x2a2,0x29f,0x19f,0x241)](_0x580807,_0x1b2746){const _0x58a590={_0x32b02b:0x26e,_0x255f91:0x249,_0x49138a:0x1c7,_0x431baa:0x34b,_0x5df086:0x353,_0x58c9d7:0x228,_0x20a151:0x236,_0x114845:0x305,_0x844848:0x232,_0x20609f:0x3c0,_0x3a8bd2:0x446,_0x21135b:0x431,_0x2be914:0x4c6,_0xec12a1:0x3d8},_0x6cce0b={_0x130ec4:0x139,_0x1f757d:0x114,_0x5655da:0x299},_0x37c8c0={_0x283996:0x29b,_0x5da07f:0x184,_0x2ca997:0x3},_0x28863e=this[_0x451e6b(_0x58a590._0x32b02b,0x166,_0x58a590._0x255f91,_0x58a590._0x49138a)](_0x580807);function _0x451e6b(_0x1e2431,_0x52d81a,_0x23b853,_0x5d6430){return _0x18ceca(_0x52d81a,_0x5d6430- -_0x37c8c0._0x283996,_0x23b853-_0x37c8c0._0x5da07f,_0x5d6430-_0x37c8c0._0x2ca997);}function _0x336776(_0x4f77d4,_0x9446e,_0x420b09,_0x463672){return _0x4de126(_0x420b09,_0x9446e-_0x6cce0b._0x130ec4,_0x420b09-_0x6cce0b._0x1f757d,_0x4f77d4-_0x6cce0b._0x5655da);}if(this['surface']!=='auto')return this['completeViaConfiguredSurface'](_0x28863e,_0x1b2746);if(this[_0x451e6b(_0x58a590._0x431baa,0x394,_0x58a590._0x5df086,0x2dc)](_0x28863e))return this[_0x451e6b(_0x58a590._0x58c9d7,0x1b3,0x1b7,0x28f)](_0x28863e,_0x1b2746);try{return await this['completeViaChatCompletionsSurface'](_0x28863e,_0x1b2746);}catch(_0x1b8080){if(_0x1b8080 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x1b8080['body']))return this['markModelAsResponsesOnly'](_0x28863e[_0x451e6b(_0x58a590._0x20a151,0x2dd,_0x58a590._0x114845,_0x58a590._0x844848)]),this[_0x336776(0x462,_0x58a590._0x20609f,0x41c,0x440)](_0x28863e,_0x1b2746);throw this[_0x336776(_0x58a590._0x3a8bd2,_0x58a590._0x21135b,_0x58a590._0x2be914,_0x58a590._0xec12a1)](_0x1b8080);}throw _0x1b8080;}}async*['stream'](_0x20ceb8,_0x1a09cb){const _0x46475e={_0x120b82:0x546,_0x5cc894:0x2a5,_0x370160:0x537,_0x54e82:0x456,_0x3ab41b:0x5bf,_0x2f74fd:0x54b,_0x4b9533:0x5e8},_0x593c91={_0x37d7a4:0xd4,_0x361493:0x7d},_0x4798dc={_0x2d09f3:0x136,_0x43d3d4:0xd2};function _0x5696db(_0x3ccedc,_0x1f01e0,_0x39bb5c,_0x13e43b){return _0x18ceca(_0x13e43b,_0x3ccedc-0x71,_0x39bb5c-_0x4798dc._0x2d09f3,_0x13e43b-_0x4798dc._0x43d3d4);}const _0x26ed26=this[_0x5696db(0x4d3,0x47f,0x4e5,_0x46475e._0x120b82)](_0x20ceb8);if(this['surface']!==_0x465162(_0x46475e._0x5cc894,0x36e,0x3f2,0x416)){yield*this[_0x5696db(_0x46475e._0x370160,_0x46475e._0x54e82,_0x46475e._0x3ab41b,_0x46475e._0x2f74fd)](_0x26ed26,_0x1a09cb);return;}function _0x465162(_0x4969e5,_0x10ddf3,_0x51c7a5,_0x14a8cb){return _0x18ceca(_0x4969e5,_0x10ddf3- -0x294,_0x51c7a5-_0x593c91._0x37d7a4,_0x14a8cb-_0x593c91._0x361493);}if(this[_0x5696db(_0x46475e._0x4b9533,0x676,0x680,0x669)](_0x26ed26)){yield*this['responseStream'](_0x26ed26,_0x1a09cb);return;}try{yield*this['streamViaChatCompletionsSurface'](_0x26ed26,_0x1a09cb);}catch(_0x4ad5b9){if(_0x4ad5b9 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x4ad5b9['body'])){this['markModelAsResponsesOnly'](_0x26ed26['model']),yield*this['responseStream'](_0x26ed26,_0x1a09cb);return;}throw this['mapApiError'](_0x4ad5b9);}throw _0x4ad5b9;}}async['getModels'](_0x20b032){const _0x5303c9={_0x2cb9c7:0xd0,_0x1927a5:0xe,_0x53ae3c:0x2a6,_0x116f38:0x20b,_0x3c8e86:0x25b,_0x133173:0x1c9,_0x5a89c1:0x27,_0x50ae27:0x8b,_0x3b2663:0x90,_0x51edce:0x40,_0x4d01dc:0x1f,_0xe493bc:0x49,_0x920e01:0xc9,_0x39c1db:0x4a,_0x114962:0x11},_0xbb662d={_0x1ef17e:0x5},_0x4a1031={_0x5e2171:0x19d,_0x52ecfd:0x9a,_0x282c7a:0x1f8,_0x5ad44d:0x150,_0x4c6128:0x571},_0x2c94da={_0x34b63a:0x1d,_0x44181c:0x355},_0x4ba986={_0x562be1:0x85},_0x4d37ad={_0x324a14:0x59b,_0x6e139e:0xe0,_0x583adf:0x1ab},_0x4cd224=await this[_0x204b28(_0x5303c9._0x2cb9c7,-_0x5303c9._0x1927a5,-0x74,-0xf0)]({'path':_0x141e17(_0x5303c9._0x53ae3c,_0x5303c9._0x116f38,_0x5303c9._0x3c8e86,_0x5303c9._0x133173),'method':_0x204b28(-0x25,-0x30,-0x59,-_0x5303c9._0x5a89c1),'signal':_0x20b032});if(!_0x4cd224['ok'])throw this['mapApiError'](await this[_0x204b28(0x60,-_0x5303c9._0x50ae27,-_0x5303c9._0x3b2663,-_0x5303c9._0x51edce)](_0x4cd224));const _0x38396d=await _0x4cd224[_0x204b28(-_0x5303c9._0x4d01dc,-_0x5303c9._0xe493bc,0x28,-_0x5303c9._0x920e01)]();function _0x204b28(_0x113c3b,_0x2f16ae,_0xdb703b,_0x334b3f){return _0x18ceca(_0x334b3f,_0x2f16ae- -_0x4d37ad._0x324a14,_0xdb703b-_0x4d37ad._0x6e139e,_0x334b3f-_0x4d37ad._0x583adf);}const _0x5be657=(_0x38396d[_0x141e17(0x195,_0x5303c9._0x39c1db,-_0x5303c9._0x114962,0xb6)]??[])[_0x141e17(0x20f,0xe3,0xef,0x169)](_0x561735=>{function _0x568756(_0x4ae1ae,_0x5192e3,_0xac3447,_0x12b3fe){return _0x204b28(_0x4ae1ae-_0x4ba986._0x562be1,_0x12b3fe-0xf9,_0xac3447-0x1da,_0x5192e3);}const _0x224c1b=createModelInfo(_0x561735);_0x224c1b[_0x568756(_0x4a1031._0x5e2171,_0x4a1031._0x52ecfd,_0x4a1031._0x282c7a,_0x4a1031._0x5ad44d)]&&this['modelEndpointCache'][_0x4c9658(_0x4a1031._0x4c6128,0x622,0x4a3,0x58d)](_0x224c1b['id'],_0x224c1b[_0x568756(0x72,0x98,0x17d,_0x4a1031._0x5ad44d)]);function _0x4c9658(_0xb6060c,_0x5c44c9,_0x176c11,_0x24023e){return _0x141e17(_0xb6060c-0x69,_0x5c44c9-_0x2c94da._0x34b63a,_0x5c44c9,_0x24023e-_0x2c94da._0x44181c);}return _0x224c1b;});function _0x141e17(_0x136771,_0xe7eef9,_0xae7749,_0x448a00){return _0x18ceca(_0xae7749,_0x448a00- -0x3be,_0xae7749-_0xbb662d._0x1ef17e,_0x448a00-0x78);}return deduplicateModels(_0x5be657);}};function createHeaders(_0x278c02){const _0x4a7798={_0x45b155:0x513,_0x1ec07d:0x4c4,_0x1fdcac:0x5ed,_0x41a86f:0x636,_0x174a00:0x706},_0x198da5={_0x3f0714:0xe};function _0x5190d6(_0x17c61d,_0x1fc8e9,_0x54cec5,_0x2abd8e){return _0x18ceca(_0x1fc8e9,_0x17c61d- -0x3af,_0x54cec5-_0x198da5._0x3f0714,_0x2abd8e-0x4b);}function _0x2da50a(_0x3cf516,_0x28bf7d,_0x512582,_0x1a4ed6){return _0x18ceca(_0x1a4ed6,_0x28bf7d-0x40,_0x512582-0x124,_0x1a4ed6-0x34);}const _0x47f7db=new Headers();for(const [_0x3317d2,_0x290692]of Object[_0x2da50a(0x532,_0x4a7798._0x45b155,_0x4a7798._0x1ec07d,0x440)](_0x278c02)){_0x47f7db[_0x2da50a(_0x4a7798._0x1fdcac,_0x4a7798._0x41a86f,_0x4a7798._0x174a00,0x707)](_0x3317d2,_0x290692);}return _0x47f7db;}async function fetchRawResponse(_0x30e3c7){const _0x35856b={_0x1c30b3:0x4f0,_0x410360:0x40f,_0x55d12b:0x428,_0x3cf0f9:0x480,_0x2cc4d7:0x403,_0x398aa7:0x428,_0x5cc0ea:0x3a8,_0x160377:0x3b2,_0x52fb78:0x3b6,_0x506a1b:0x309,_0x21ec47:0x262,_0xdac127:0x3d8,_0x3db23f:0x330,_0x4ceb02:0x3a5},_0x117be0={_0x5e1a86:0x114};function _0x1f1044(_0x4dd7ce,_0x31bfdf,_0x5280fa,_0x59db71){return _0x18ceca(_0x5280fa,_0x31bfdf- -0x2e3,_0x5280fa-0xd6,_0x59db71-0x41);}const _0x3a8603=_0x30e3c7[_0x38e6cf(_0x35856b._0x1c30b3,_0x35856b._0x410360,_0x35856b._0x55d12b,_0x35856b._0x3cf0f9)]??globalThis[_0x38e6cf(0x4ca,_0x35856b._0x2cc4d7,_0x35856b._0x398aa7,_0x35856b._0x5cc0ea)];function _0x38e6cf(_0x46ec84,_0x56d3ed,_0x3b358e,_0x36fda8){return _0x18ceca(_0x36fda8,_0x3b358e- -_0x117be0._0x5e1a86,_0x3b358e-0xd4,_0x36fda8-0x6d);}return _0x3a8603(_0x30e3c7['url'],{'method':'POST','headers':createHeaders(_0x30e3c7[_0x38e6cf(_0x35856b._0x160377,0x3c2,_0x35856b._0x52fb78,_0x35856b._0x506a1b)]),'body':JSON['stringify'](_0x30e3c7[_0x1f1044(_0x35856b._0x21ec47,0x33d,0x34c,_0x35856b._0xdac127)]),'signal':_0x30e3c7[_0x38e6cf(0x2bb,_0x35856b._0x3db23f,_0x35856b._0x4ceb02,0x386)]});}async function fetchJsonResponse(_0x404114){const _0x2342c2={_0x2db225:0x447,_0x59a41a:0x51b,_0x51f5da:0x3ea,_0x2a5316:0x1b5,_0x4f54b7:0x30d,_0x2dcb92:0x304,_0x286c3e:0x329,_0x5567af:0x229,_0x16247b:0x45e,_0x1f55d4:0x472},_0x1172d6={_0x257370:0x1d6},_0x62873c=await fetchRawResponse(_0x404114);function _0x515e74(_0x55e097,_0x3ca8e3,_0xc5f9a8,_0x3beeb7){return _0x18ceca(_0x3beeb7,_0x3ca8e3- -0x453,_0xc5f9a8-0x15a,_0x3beeb7-0x4b);}function _0x673086(_0x4859f8,_0x5e686e,_0x2fe85f,_0x746b52){return _0x4de126(_0x5e686e,_0x5e686e-0x1d9,_0x2fe85f-0xee,_0x4859f8-_0x1172d6._0x257370);}if(!_0x62873c['ok']){const _0x84f35d=await _0x62873c[_0x673086(_0x2342c2._0x2db225,_0x2342c2._0x59a41a,_0x2342c2._0x51f5da,0x482)](),_0xcb6991=_0x84f35d[_0x515e74(0x143,0x183,0x248,_0x2342c2._0x2a5316)]()||_0x62873c['statusText']||_0x673086(0x3d1,0x440,0x400,0x46a);throw new Error(_0x673086(_0x2342c2._0x4f54b7,_0x2342c2._0x2dcb92,_0x2342c2._0x286c3e,_0x2342c2._0x5567af)+_0x62873c['status']+':\x20'+_0xcb6991);}return await _0x62873c[_0x673086(0x3c7,_0x2342c2._0x16247b,_0x2342c2._0x1f55d4,0x328)]();}function findLastMessage(_0x2909f1,_0x3db84f){const _0x3fee41={_0x4e51b4:0x13e,_0x5206c8:0xed,_0x178dfd:0xd4,_0x468db2:0xa8},_0x55854={_0x3f7396:0xf4,_0x1c6328:0x9e,_0x2d8750:0x1ff};for(let _0x5999c5=_0x2909f1[_0x2ff964(_0x3fee41._0x4e51b4,_0x3fee41._0x5206c8,_0x3fee41._0x178dfd,_0x3fee41._0x468db2)]-0x1;_0x5999c5>=0x0;_0x5999c5-=0x1){if(_0x2909f1[_0x5999c5]['role']===_0x3db84f)return _0x2909f1[_0x5999c5];}function _0x2ff964(_0x4254dc,_0x31b579,_0x16381f,_0x1a0e7f){return _0x4de126(_0x16381f,_0x31b579-_0x55854._0x3f7396,_0x16381f-_0x55854._0x1c6328,_0x1a0e7f- -_0x55854._0x2d8750);}return void 0x0;}function hasTool(_0xe00bc9,_0x57ae34){const _0x17f092={_0x1af41b:0x47d,_0x53f332:0x40b,_0xc7eb1a:0x3f3,_0x304c60:0x67b,_0x45943b:0x504},_0x24724c={_0x3c15d5:0x1e8,_0x486e89:0x23};function _0x4d9110(_0xe3126b,_0x1659d9,_0x2e9a12,_0x1e4627){return _0x4de126(_0x1e4627,_0x1659d9-0x37,_0x2e9a12-0xad,_0x1659d9-0x1f7);}function _0x3366ef(_0x5d126d,_0x5bdc94,_0x18dcea,_0x1fbf68){return _0x18ceca(_0x1fbf68,_0x18dcea-0x84,_0x18dcea-_0x24724c._0x3c15d5,_0x1fbf68-_0x24724c._0x486e89);}return _0xe00bc9[_0x4d9110(_0x17f092._0x1af41b,_0x17f092._0x53f332,_0x17f092._0xc7eb1a,0x4e1)][_0x3366ef(0x650,_0x17f092._0x304c60,0x591,_0x17f092._0x45943b)](_0x518a47=>_0x518a47[_0x4d9110(0x43f,0x391,0x2b3,0x2ff)]===_0x57ae34);}function createMockResponse(_0x56ad77,_0x17b00e,_0xf134ff,_0x26ddea){return{'id':_0x56ad77,'content':_0x17b00e,'stopReason':_0xf134ff,'usage':_0x26ddea};}var MockModel=class{[_0x18ceca(0x3f7,0x4cd,0x59c,0x4e2)];[_0x18ceca(0x6ea,0x5fc,0x67f,0x523)];[_0x18ceca(0x5db,0x621,0x670,0x5e7)]=[];[_0x18ceca(0x518,0x4a3,0x45b,0x490)];constructor(_0x457d29={}){const _0xbf46f0={_0x3f14a4:0x46,_0x2a195c:0xe,_0x4c904b:0x89,_0xf81963:0xdc,_0x5c1f81:0x5c,_0x1e680a:0x201,_0x5254f4:0x13f,_0x58f1db:0x184,_0x178905:0x153,_0x519120:0x1d8,_0x1f18af:0xd6,_0x50f81d:0x1f3,_0x28f51f:0x33,_0x115af1:0x95,_0x10dd15:0x6c,_0x19660a:0x31},_0x4384aa={_0x2073d1:0x1ae,_0x2e3911:0xe3},_0x4cf871={_0x30a1eb:0x4a9};this[_0x12f901(_0xbf46f0._0x3f14a4,-_0xbf46f0._0x2a195c,_0xbf46f0._0x4c904b,_0xbf46f0._0xf81963)]=_0x457d29['model']??_0x5eb3ce(-_0xbf46f0._0x5c1f81,-0x1f,-0x4b,-0x1e),this[_0x5eb3ce(_0xbf46f0._0x1e680a,_0xbf46f0._0x5254f4,_0xbf46f0._0x58f1db,_0xbf46f0._0x178905)]=_0x457d29[_0x12f901(_0xbf46f0._0x519120,_0xbf46f0._0x1f18af,0x1b8,_0xbf46f0._0x50f81d)]??getDefaultMaxTokens();function _0x5eb3ce(_0x1e35a2,_0x22ebc7,_0x19bf11,_0x516553){return _0x18ceca(_0x1e35a2,_0x516553- -_0x4cf871._0x30a1eb,_0x19bf11-0x98,_0x516553-0xd);}function _0x12f901(_0x356029,_0xfa7f44,_0x232ed7,_0x94814c){return _0x4de126(_0x94814c,_0xfa7f44-_0x4384aa._0x2073d1,_0x232ed7-0x1ac,_0x232ed7- -_0x4384aa._0x2e3911);}this[_0x12f901(_0xbf46f0._0x28f51f,_0xbf46f0._0x115af1,0x5f,-0x28)]=_0x457d29[_0x12f901(0xda,0x14e,0x5f,_0xbf46f0._0x10dd15)]?structuredClone(_0x457d29[_0x5eb3ce(-_0xbf46f0._0x19660a,0xe9,0x77,-0x6)]):void 0x0;}async['complete'](_0x1a54c3,_0x2b18f5){const _0xca4b1={_0x2154bd:0x8b,_0x37fd1b:0xcd,_0x29ca7c:0x9f,_0x3b1bb5:0xe4,_0x41c1bb:0x49,_0x5bfcbf:0x10a,_0x390a23:0x62,_0x1c72cb:0xc4,_0x50a5dd:0xb1,_0x3d9225:0x3,_0x562703:0xd6,_0xf28468:0xdd,_0x8448b6:0x175,_0xe46e03:0xd7,_0x30c83e:0xfc,_0x3bb9e3:0x1e,_0x248d18:0x91,_0x261256:0x34,_0xa084dd:0xa9,_0x2043e9:0xb7,_0x23852b:0x3b,_0x4ad60f:0x2b,_0x171b0a:0xf8,_0x4aaaa4:0x103,_0x5b6df4:0x7e,_0x519664:0x21,_0x5dc470:0x2c,_0x47878d:0xf,_0x2030ef:0x9c,_0x24a6a9:0x3d,_0x2c89f8:0x1f,_0xdb8778:0x78,_0x334aaf:0x67,_0x5b5312:0x3b,_0x39ac7b:0x64,_0x3d5ec9:0x56,_0x5c93bf:0x108,_0x5db7d7:0x98,_0x2f1b0b:0x62,_0x3bea08:0x17,_0x26c3dd:0x1f,_0x5a5a8c:0x10a,_0x407ded:0x93,_0xc6bfc6:0x13f,_0x29d935:0x3c,_0x281df4:0xb},_0xe815c2={_0x316760:0x505,_0x2c65a3:0xec},_0x129329={_0x1000c7:0x113,_0x4ea86f:0x20f},_0x596672={...structuredClone(_0x1a54c3),..._0x1a54c3[_0x521c71(-0xcd,-_0xca4b1._0x2154bd,-0x144,-0xc5)]===void 0x0&&this[_0x521c71(-_0xca4b1._0x37fd1b,0x1a,-_0xca4b1._0x29ca7c,-_0xca4b1._0x3b1bb5)]!==void 0x0?{'reasoning':structuredClone(this[_0x5375e1(-_0xca4b1._0x41c1bb,-_0xca4b1._0x5bfcbf,-_0xca4b1._0x390a23,-_0xca4b1._0x1c72cb)])}:{}};this[_0x521c71(_0xca4b1._0x50a5dd,-_0xca4b1._0x3d9225,_0xca4b1._0x562703,_0xca4b1._0xf28468)][_0x5375e1(0x138,_0xca4b1._0x8448b6,_0xca4b1._0xe46e03,_0xca4b1._0x30c83e)](_0x596672);const _0x3bb34f=findLastMessage(_0x596672[_0x521c71(_0xca4b1._0x3bb9e3,_0xca4b1._0x248d18,0x7f,_0xca4b1._0x261256)],_0x521c71(_0xca4b1._0xa084dd,0x136,0x63,_0xca4b1._0x2043e9));function _0x521c71(_0x1c1adb,_0x3ebe0b,_0x46e0a6,_0xdca1a9){return _0x4de126(_0x46e0a6,_0x3ebe0b-0x1e3,_0x46e0a6-_0x129329._0x1000c7,_0x1c1adb- -_0x129329._0x4ea86f);}const _0x15e2b7=getToolResultBlocks(_0x3bb34f),_0x44f529='assistant-'+this[_0x521c71(0xb1,-_0xca4b1._0x23852b,-_0xca4b1._0x4ad60f,_0xca4b1._0x171b0a)][_0x5375e1(0x6f,0x5b,_0xca4b1._0x4aaaa4,_0xca4b1._0x5b6df4)];if(_0x15e2b7['length']>0x0)return createMockResponse(_0x44f529,[{'type':_0x5375e1(0xde,0x134,0xcd,_0xca4b1._0x519664),'text':_0x5375e1(0x30,-_0xca4b1._0x5dc470,-0xaf,0x10)+_0x15e2b7[0x0][_0x521c71(-_0xca4b1._0x47878d,-0xab,0x23,-_0xca4b1._0x2030ef)]}],'end_turn',{'inputTokens':0x78,'outputTokens':0x28});function _0x5375e1(_0x12dccf,_0x531d17,_0x205ed5,_0x4f1606){return _0x18ceca(_0x12dccf,_0x205ed5- -_0xe815c2._0x316760,_0x205ed5-0x11b,_0x4f1606-_0xe815c2._0x2c65a3);}const _0x23d7a3=getTextFromMessage(_0x3bb34f);if(/list .*files|workspace/i[_0x521c71(0x5e,_0xca4b1._0x24a6a9,0xaa,0x130)](_0x23d7a3)&&hasTool(_0x596672,_0x521c71(_0xca4b1._0x2c89f8,0x52,_0xca4b1._0xdb8778,-_0xca4b1._0x334aaf)))return createMockResponse(_0x44f529,[{'type':'tool_use','id':_0x521c71(-0x10d,-_0xca4b1._0x5b5312,-0x16a,-0x14c)+this[_0x521c71(0xb1,_0xca4b1._0x39ac7b,_0xca4b1._0x3d5ec9,_0xca4b1._0x5c93bf)][_0x521c71(_0xca4b1._0x5db7d7,_0xca4b1._0x2f1b0b,_0xca4b1._0x3bea08,0xec)],'name':_0x521c71(_0xca4b1._0x26c3dd,0x2,_0xca4b1._0x5a5a8c,-0x1f),'input':{'command':_0x521c71(_0xca4b1._0x407ded,0x23,_0xca4b1._0xc6bfc6,-_0xca4b1._0x3bea08)}}],'tool_use',{'inputTokens':0x6e,'outputTokens':0x1c});return createMockResponse(_0x44f529,[{'type':_0x5375e1(0x4f,0x75,0xcd,_0xca4b1._0x29d935),'text':_0x5375e1(0x70,-_0xca4b1._0x281df4,0xdb,0x44)+_0x23d7a3}],'end_turn',{'inputTokens':0x50,'outputTokens':0x12});}};function getFallbackModelLimits(_0x2d518b,_0x9479e9){const _0x1847e4={_0xc51944:0x542,_0x535cc9:0x4ee,_0x53f890:0x591,_0x3afbe3:0x550,_0x5adfde:0x47a,_0x33e2f0:0x56f},_0x1cbb0a={_0x42ca63:0x3e0},_0x5528ac={_0x4b8b3d:0x63f,_0x292a37:0xf,_0x1f8315:0x1b1},_0x10469c=getModelProfile(_0x2d518b,_0x9479e9);function _0x303aec(_0x28dd11,_0x812f0f,_0x3a1dad,_0x38a39b){return _0x18ceca(_0x3a1dad,_0x812f0f- -_0x5528ac._0x4b8b3d,_0x3a1dad-_0x5528ac._0x292a37,_0x38a39b-_0x5528ac._0x1f8315);}if(!_0x10469c?.['contextWindow']&&!_0x10469c?.['maxOutput'])return void 0x0;function _0x3c8ece(_0x2ffbfd,_0x14b905,_0x1489da,_0x320e38){return _0x4de126(_0x2ffbfd,_0x14b905-0x136,_0x1489da-0x1f1,_0x320e38-_0x1cbb0a._0x42ca63);}return{..._0x10469c[_0x3c8ece(0x662,0x585,_0x1847e4._0xc51944,0x5cc)]?{'contextWindow':_0x10469c[_0x3c8ece(_0x1847e4._0x535cc9,_0x1847e4._0x53f890,0x5ed,0x5cc)]}:{},..._0x10469c['maxOutput']?{'maxOutput':_0x10469c[_0x3c8ece(_0x1847e4._0x3afbe3,_0x1847e4._0x5adfde,_0x1847e4._0x33e2f0,0x568)]}:{}};}function normalizeModelInfo(_0x373a34,_0x2838c0){const _0x25868f={_0x131c07:0x1c0,_0x485788:0x145,_0x20fca0:0x100,_0x6a87f6:0x17e,_0x3915e0:0x1bc,_0x1604aa:0x17e,_0x5ef5f4:0x127,_0x3a65ea:0xff,_0x19067c:0xae,_0x12c154:0xb7,_0x466576:0x13a,_0x4ddbb3:0x2e5},_0x4c8512={_0x506152:0x64f,_0x9131a:0xe9},_0x4e6d94={_0xeaa4cb:0x153,_0x420599:0xdb},_0x9d65d=typeof _0x2838c0['id']==='string'?_0x2838c0['id']:'',_0x55f3b7=typeof _0x2838c0[_0x6f13c9(-_0x25868f._0x131c07,-_0x25868f._0x485788,-_0x25868f._0x20fca0,-_0x25868f._0x6a87f6)]===_0x250319(-0x1ac,-0x10b,-0x1a7,-0x1c9)?_0x2838c0[_0x6f13c9(-0x197,-_0x25868f._0x3915e0,-0xcb,-_0x25868f._0x1604aa)]:_0x9d65d;function _0x6f13c9(_0x43a9e4,_0x22e902,_0x817887,_0x4d56e9){return _0x18ceca(_0x43a9e4,_0x4d56e9- -0x679,_0x817887-_0x4e6d94._0xeaa4cb,_0x4d56e9-_0x4e6d94._0x420599);}const _0x5ac02f=normalizeModelLimits(_0x373a34,_0x2838c0)??getFallbackModelLimits(_0x373a34,_0x9d65d);function _0x250319(_0x51178f,_0x2ba537,_0x140e4d,_0x5961f6){return _0x18ceca(_0x51178f,_0x5961f6- -_0x4c8512._0x506152,_0x140e4d-_0x4c8512._0x9131a,_0x5961f6-0x96);}const _0x5c81ce=Array[_0x250319(0xe,-_0x25868f._0x5ef5f4,-_0x25868f._0x3a65ea,-_0x25868f._0x19067c)](_0x2838c0[_0x250319(-0xb7,-0x20,-0x88,-_0x25868f._0x12c154)])?_0x2838c0[_0x250319(-0x15a,0xd,-_0x25868f._0x485788,-_0x25868f._0x12c154)][_0x6f13c9(-0x158,-0x28e,-0x2e8,-0x208)](_0x447a9a=>typeof _0x447a9a===_0x6f13c9(-0x167,-0x117,-0x2b4,-0x1f3)):Array['isArray'](_0x2838c0[_0x6f13c9(-0x118,-0x21a,-0xd8,-0x159)])?_0x2838c0['capable_endpoints'][_0x6f13c9(-_0x25868f._0x466576,-_0x25868f._0x4ddbb3,-0x2e8,-0x208)](_0x4f56f3=>typeof _0x4f56f3===_0x250319(-0x178,-0x16d,-0x245,-0x1c9)):void 0x0;return{'id':_0x9d65d,'name':_0x55f3b7,..._0x5ac02f?{'limits':_0x5ac02f}:{},..._0x5c81ce?{'supportedEndpoints':_0x5c81ce}:{}};}function normalizeModelLimits(_0x26d28c,_0x4d00d2){const _0x2b46e6={_0x2750a9:0x46d,_0x2539bd:0x34f,_0xb6a88:0x3fc,_0xf010d6:0x2b2,_0x491e9d:0x3a5,_0xd7b335:0x2f6,_0x52f762:0x4cd,_0x5caa4a:0xd3,_0x21fecc:0x37,_0x28e815:0xd4,_0x385836:0xfa,_0x14299d:0x1ee,_0x233b3e:0xe,_0x6892ff:0xde,_0x117fd8:0x15,_0x357dca:0x4,_0x37d4b3:0x6b,_0x3571c5:0x406,_0x485ffa:0x449,_0x5aac95:0x409,_0x2eb1c1:0x4a3,_0x10ea19:0x46e,_0x4fc45b:0x406,_0x1811c4:0x108,_0x47966d:0x373,_0x2e4354:0x3fc,_0x546643:0x39,_0x5ce499:0x86,_0x17deb0:0x79,_0x39562e:0x11a,_0x19e4d1:0x2a,_0x41819b:0x68,_0x2412f1:0x40,_0x707d62:0x221,_0x599de6:0x337,_0xc913f1:0x2bf,_0x37f8b9:0x322,_0xaccc30:0x305,_0x53e7b7:0x2c7,_0x5e8e54:0x3f4,_0x4dadc9:0x110,_0x59ca98:0x34f,_0x56df01:0x2ec,_0x24e70b:0x37,_0x4ea808:0x3,_0xcc6e27:0x38e,_0xbf4d3e:0x3a5,_0x1a20c0:0xde,_0x14fd7f:0xce,_0x4be4af:0x8b,_0x3ee06c:0x1c,_0x35fb56:0xe3,_0x37a1a7:0xe8,_0x26f255:0xf,_0x3271a9:0xfa,_0x597b2e:0x13,_0xa5d04f:0x250,_0x5aee7f:0x366,_0x4fe6f4:0x312,_0x2e48e5:0x210,_0x1e3243:0x356},_0x47c692={_0x4cac69:0x47},_0x2dc6b2={_0x57c110:0x31,_0x2b463e:0x11b};if(_0x4d00d2[_0x5e4ca9(_0x2b46e6._0x2750a9,0x38b,_0x2b46e6._0x2539bd,_0x2b46e6._0xb6a88)]&&typeof _0x4d00d2['limits']===_0x5e4ca9(0x332,_0x2b46e6._0xf010d6,_0x2b46e6._0x491e9d,_0x2b46e6._0xd7b335)){const _0x58bbd3=_0x4d00d2[_0x5e4ca9(0x420,0x385,_0x2b46e6._0x52f762,0x3fc)];if(typeof _0x58bbd3['contextWindow']===_0x25d105(_0x2b46e6._0x5caa4a,_0x2b46e6._0x21fecc,_0x2b46e6._0x28e815,_0x2b46e6._0x385836))return{'contextWindow':_0x58bbd3['contextWindow'],...typeof _0x58bbd3[_0x5e4ca9(_0x2b46e6._0x14299d,0x26a,0x202,0x2d7)]===_0x25d105(-0x8c,0x37,_0x2b46e6._0x233b3e,_0x2b46e6._0x6892ff)?{'maxOutput':_0x58bbd3[_0x25d105(_0x2b46e6._0x117fd8,-_0x2b46e6._0x357dca,-0x30,_0x2b46e6._0x37d4b3)]}:{}};}if(_0x26d28c[_0x5e4ca9(0x4e3,_0x2b46e6._0x3571c5,_0x2b46e6._0x485ffa,_0x2b46e6._0x5aac95)]()===_0x5e4ca9(_0x2b46e6._0x2eb1c1,_0x2b46e6._0x10ea19,0x400,_0x2b46e6._0x4fc45b)){const _0x5c9a04=_0x4d00d2[_0x25d105(_0x2b46e6._0x1811c4,0xf8,0x187,0x130)],_0x5a4f03=_0x5c9a04?.[_0x5e4ca9(_0x2b46e6._0x47966d,0x378,0x38c,_0x2b46e6._0x2e4354)];if(typeof _0x5a4f03?.['max_context_window_tokens']===_0x25d105(-0x3a,_0x2b46e6._0x21fecc,0xff,0x3e))return{'contextWindow':_0x5a4f03['max_context_window_tokens'],...typeof _0x5a4f03[_0x5e4ca9(0x42e,0x363,0x47d,0x3db)]==='number'?{'maxOutput':_0x5a4f03['max_output_tokens']}:{}};}function _0x25d105(_0x58a1c0,_0x11b3d8,_0x4a1685,_0x4a1b43){return _0x18ceca(_0x4a1685,_0x11b3d8- -0x4ed,_0x4a1685-_0x2dc6b2._0x57c110,_0x4a1b43-_0x2dc6b2._0x2b463e);}function _0x5e4ca9(_0x27b094,_0xf8943f,_0x4e988d,_0x141704){return _0x4de126(_0xf8943f,_0xf8943f-0xfa,_0x4e988d-_0x47c692._0x4cac69,_0x141704-0x14f);}const _0xfb3344=_0x4d00d2[_0x25d105(_0x2b46e6._0x546643,_0x2b46e6._0x5ce499,_0x2b46e6._0x17deb0,0xaa)],_0x49179f=_0x4d00d2['top_provider'],_0x2813b7=typeof _0x4d00d2[_0x25d105(_0x2b46e6._0x39562e,_0x2b46e6._0x19e4d1,-_0x2b46e6._0x41819b,-_0x2b46e6._0x2412f1)]==='number'?_0x4d00d2[_0x5e4ca9(0x2b4,_0x2b46e6._0x707d62,_0x2b46e6._0x599de6,0x305)]:typeof _0xfb3344?.[_0x5e4ca9(_0x2b46e6._0xc913f1,_0x2b46e6._0x37f8b9,0x2a4,_0x2b46e6._0xaccc30)]===_0x5e4ca9(_0x2b46e6._0x53e7b7,_0x2b46e6._0x5e8e54,0x400,0x312)?_0xfb3344[_0x25d105(0x111,0x2a,_0x2b46e6._0x4dadc9,0xc0)]:typeof _0x49179f?.[_0x5e4ca9(0x3c9,_0x2b46e6._0x59ca98,_0x2b46e6._0x56df01,_0x2b46e6._0xaccc30)]===_0x25d105(0xfd,_0x2b46e6._0x24e70b,-_0x2b46e6._0x4ea808,0x59)?_0x49179f[_0x5e4ca9(_0x2b46e6._0xcc6e27,0x35a,_0x2b46e6._0xbf4d3e,0x305)]:void 0x0;if(_0x2813b7===void 0x0)return void 0x0;return{'contextWindow':_0x2813b7,...typeof _0xfb3344?.[_0x25d105(_0x2b46e6._0x1a20c0,_0x2b46e6._0x14fd7f,_0x2b46e6._0x4be4af,-_0x2b46e6._0x3ee06c)]===_0x25d105(_0x2b46e6._0x35fb56,_0x2b46e6._0x21fecc,-0x1e,0x63)?{'maxOutput':_0xfb3344['max_tokens']}:typeof _0x49179f?.[_0x25d105(-_0x2b46e6._0x37a1a7,-_0x2b46e6._0x26f255,-_0x2b46e6._0x3271a9,_0x2b46e6._0x597b2e)]===_0x5e4ca9(_0x2b46e6._0xa5d04f,_0x2b46e6._0x5aee7f,0x2d0,_0x2b46e6._0x4fe6f4)?{'maxOutput':_0x49179f[_0x5e4ca9(_0x2b46e6._0x2e48e5,_0x2b46e6._0x1e3243,0x315,0x2cc)]}:{}};}export{ANTHROPIC_MESSAGES_STREAM_SURFACE,ANTHROPIC_MESSAGES_SURFACE,AVAILABLE_CHAT_MODEL_SURFACES,AnthropicModel,ChatModel,GitHubModel,MockModel,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,OPENAI_CHAT_COMPLETIONS_SURFACE,OPENAI_RESPONSES_STREAM_SURFACE,OPENAI_RESPONSES_SURFACE,OPENAI_RESPONSES_WEBSOCKET_SURFACE,OpenAiApiError,OpenAiModel,ProviderSessionManager,RoutedModel,StaticModelSurfaceRouter,createAnthropicSurfaces,createChatRequestBody,createDefaultWebSocketFactory,createOpenAiApiError,createOpenAiResponsesStreamParser,createOpenAiResponsesWebSocketEvent,createOpenAiSurfaces,fetchJsonResponse,fetchRawResponse,getCliDefaultModel,getDefaultMaxTokens,getDefaultModel,getFallbackModelLimits,getModelProfile,getOnboardingProviderKeys,getProviderDefaultModel,getProviderDefaultModels,getProviderLabel,getProviderProfile,iterateSseEvents,iterateWebSocketMessages,normalizeModelInfo,normalizeModelLimits,prepareProviderRequest,providerSupportsModelFetch,resolveApiCredential,resolveModelProfile,resolveSessionBaseUrl,toWebSocketUrl,trimTrailingSlashes,waitForWebSocketOpen};
|