@nuvin/agent-core 0.0.0-rc.19 → 0.0.0-rc.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/VERSION +2 -2
- package/dist/agent/index.js +1 -1
- package/dist/chunk-FFIZ6TKW.js +1 -1
- package/dist/chunk-HRU363DY.js +1 -1
- package/dist/chunk-NHBKADBW.js +1 -1
- package/dist/chunk-NYZR4XKO.js +1 -1
- package/dist/chunk-QDOE7NWO.js +1 -1
- package/dist/chunk-X7VAACWY.js +1 -1
- package/dist/formats/index.js +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/models/index.js +1 -1
- package/dist/models/openai-model.d.ts +8 -1
- package/dist/shared/index.js +1 -1
- package/dist/tools/index.js +1 -1
- package/dist/tools/safe-fetch.d.ts +36 -0
- package/dist/tools/web-fetch-tool.d.ts +3 -0
- package/dist/tools/web-search-tool.d.ts +3 -0
- package/package.json +1 -1
package/dist/models/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x57b03f,_0x597a0b){const _0x41c80c={_0x40d2b9:0xbd,_0xd1530b:0x47,_0x4f88f3:0xb,_0x3232f1:0x59,_0x5a706d:0x124,_0x1de771:0x1a,_0x287d49:0x8e,_0x13516d:0x2d,_0x5538b8:0xd6,_0x402be9:0x2,_0x31bb04:0x91,_0x9e553:0x10f,_0x1c2484:0x134,_0x4cef3a:0x73,_0x578a44:0x12c,_0x2bb39d:0x5c,_0x3a3ec3:0x25,_0x2ce5d8:0xb8,_0x2fc16e:0x33},_0x2349c9={_0x548585:0x2a4};function _0x411eee(_0x6339b1,_0x165bc5,_0x2f91c3,_0x2e55b1){return _0x4abb(_0x165bc5- -_0x2349c9._0x548585,_0x2f91c3);}const _0xe97947=_0x57b03f();function _0x59c1ab(_0x1bc542,_0x268d1e,_0x211e9e,_0x31ee80){return _0x4abb(_0x268d1e- -0x27a,_0x1bc542);}while(!![]){try{const _0x1117cc=parseInt(_0x59c1ab(-0x45,-_0x41c80c._0x40d2b9,-_0x41c80c._0xd1530b,-0x1a7))/0x1+parseInt(_0x59c1ab(-_0x41c80c._0x4f88f3,_0x41c80c._0x3232f1,-0x6c,_0x41c80c._0x5a706d))/0x2*(-parseInt(_0x59c1ab(-0x23,-0x4f,-_0x41c80c._0x1de771,-0x87))/0x3)+parseInt(_0x411eee(-_0x41c80c._0x287d49,-0x1f,-_0x41c80c._0x13516d,0x7e))/0x4*(parseInt(_0x411eee(-_0x41c80c._0x5538b8,-0x9f,0x2f,-_0x41c80c._0x402be9))/0x5)+parseInt(_0x59c1ab(-0x4f,0x24,-_0x41c80c._0x31bb04,0xb5))/0x6+-parseInt(_0x411eee(-_0x41c80c._0x9e553,-0x10a,-0x156,-0x59))/0x7+-parseInt(_0x59c1ab(-_0x41c80c._0x1c2484,-_0x41c80c._0x4cef3a,-_0x41c80c._0x578a44,_0x41c80c._0x2bb39d))/0x8*(parseInt(_0x59c1ab(-0x163,-0xac,-0x11,_0x41c80c._0x3a3ec3))/0x9)+-parseInt(_0x59c1ab(_0x41c80c._0x2ce5d8,-_0x41c80c._0x2fc16e,-0x11d,-0xbb))/0xa;if(_0x1117cc===_0x597a0b)break;else _0xe97947['push'](_0xe97947['shift']());}catch(_0x1cdcac){_0xe97947['push'](_0xe97947['shift']());}}}(_0x4483,0x9b8f1));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';var ProviderRequestConstructionError=class extends Error{constructor(_0x4881e8){const _0x187302={_0x76c507:0x2c3,_0x2ecd46:0x2ad,_0x5063c1:0x2af},_0x49d0d9={_0x13b133:0x126};function _0x129f29(_0x39405f,_0x48fae6,_0x457e73,_0x2c5ee9){return _0x4abb(_0x457e73-_0x49d0d9._0x13b133,_0x2c5ee9);}super(_0x4881e8),this['name']=_0x129f29(_0x187302._0x76c507,_0x187302._0x2ecd46,_0x187302._0x5063c1,0x2bf);}},ProviderStreamEventError=class extends Error{['code'];[_0x11bd88(0x4ad,0x3eb,0x54d,0x566)];[_0xd1496a(0x4c3,0x3e2,0x505,0x469)];constructor(_0x4eb608,_0x3f5b9b={}){const _0xcdae48={_0x31b7fc:0x20f,_0x2da387:0x147,_0xf618bf:0x1cc,_0x526e49:0x203,_0x1d1996:0x13e,_0x2e55e6:0x191,_0x5744d7:0xb8,_0x18ca5c:0xdf,_0x4ad4e9:0x1b5,_0x1771e5:0x142,_0x42d792:0xdf},_0x3ad47f={_0x147f31:0x3},_0x5790e5={_0x56aa11:0x3e4,_0x58d31f:0x17};function _0x2c6451(_0x5d7038,_0x55362f,_0x118ee3,_0x3d8064){return _0xd1496a(_0x3d8064- -_0x5790e5._0x56aa11,_0x55362f-_0x5790e5._0x58d31f,_0x5d7038,_0x3d8064-0xa8);}function _0x32b7d6(_0x17662b,_0x5b4aa9,_0x240a07,_0x53fd10){return _0xd1496a(_0x53fd10- -0x431,_0x5b4aa9-0x188,_0x5b4aa9,_0x53fd10-_0x3ad47f._0x147f31);}super(_0x4eb608),this['name']='ProviderStreamEventError',this[_0x32b7d6(0x176,_0xcdae48._0x31b7fc,0x288,0x1d4)]=_0x3f5b9b['code'],this[_0x2c6451(_0xcdae48._0x2da387,_0xcdae48._0xf618bf,_0xcdae48._0x526e49,_0xcdae48._0x1d1996)]=_0x3f5b9b[_0x32b7d6(0x136,0xcd,0x12,0xf1)]??!![],this[_0x2c6451(0xe1,_0xcdae48._0x2e55e6,_0xcdae48._0x5744d7,_0xcdae48._0x18ca5c)]=_0x3f5b9b[_0x2c6451(_0xcdae48._0x4ad4e9,0x55,_0xcdae48._0x1771e5,_0xcdae48._0x42d792)];}};function isRetryableProviderStreamEventError(_0x5b8384){function _0x4bdecc(_0x4832a0,_0x399868,_0x43b917,_0x1af0c8){return _0x11bd88(_0x43b917-0x13b,_0x4832a0,_0x43b917-0x68,_0x1af0c8-0x48);}return _0x5b8384 instanceof ProviderStreamEventError&&_0x5b8384[_0x4bdecc(0x557,0x530,0x5e8,0x66c)];}var ANTHROPIC_MESSAGES_SURFACE='anthropic-messages',ANTHROPIC_MESSAGES_STREAM_SURFACE='anthropic-messages-stream';function parseToolInput(_0x5a84a0){const _0x2c5b37={_0x490846:0x498};function _0x14d5dd(_0x3551d5,_0x404044,_0x1a2145,_0x4b8047){return _0x11bd88(_0x3551d5-0x4c,_0x404044,_0x1a2145-0x78,_0x4b8047-0x163);}try{return JSON[_0x14d5dd(0x43e,0x3d3,0x4e7,_0x2c5b37._0x490846)](_0x5a84a0);}catch{return _0x5a84a0;}}function resolveReasoningVisibility(_0x39b5ba){const _0x48bb78={_0x1c93b3:0x26e},_0x10d019={_0x64fc14:0x169,_0x328d40:0x1e};function _0x2b75a7(_0x89c03d,_0xb9f0aa,_0xb36eb4,_0x4904c8){return _0x11bd88(_0xb36eb4- -0x251,_0xb9f0aa,_0xb36eb4-_0x10d019._0x64fc14,_0x4904c8-_0x10d019._0x328d40);}return _0x39b5ba['reasoning']?.[_0x2b75a7(0x2dc,0x1a1,_0x48bb78._0x1c93b3,0x1eb)]??'user-visible';}function isUserVisibleThinking(_0x46c8d7){const _0x129746={_0x33400e:0xeb,_0x5ee3a8:0x3b,_0x4dcd3d:0x247,_0x46a688:0x42a,_0x214036:0x42b,_0x4f57f2:0x363},_0x42a8a9={_0x38f36b:0x1c1,_0x5dc43d:0x117,_0x296c30:0x1c3},_0x15741c={_0xfd585f:0xf2},_0x4efdd3=resolveAnthropicThinkingConfig(_0x46c8d7[_0x193714(-0xf0,-0x18c,-0x109,-0x135)]);function _0x193714(_0x1ed941,_0x3ce6b0,_0xb18cca,_0x3a8992){return _0xd1496a(_0xb18cca- -0x560,_0x3ce6b0-0x143,_0x1ed941,_0x3a8992-_0x15741c._0xfd585f);}function _0x48687e(_0x530103,_0x1b7a28,_0x589a74,_0x39f2de){return _0xd1496a(_0x1b7a28- -_0x42a8a9._0x38f36b,_0x1b7a28-_0x42a8a9._0x5dc43d,_0x39f2de,_0x39f2de-_0x42a8a9._0x296c30);}return _0x4efdd3!==void 0x0&&_0x4efdd3[_0x193714(-_0x129746._0x33400e,_0x129746._0x5ee3a8,-0x13,-0x4e)]!==_0x48687e(_0x129746._0x4dcd3d,0x323,0x3d5,0x2be)&&resolveReasoningVisibility(_0x46c8d7)===_0x48687e(_0x129746._0x46a688,0x3e3,_0x129746._0x214036,_0x129746._0x4f57f2);}function createAnthropicThinkingBody(_0xb53e12){const _0x28fdd8={_0x5c09d5:0x295,_0x449284:0x20b,_0x572c47:0x1c9,_0x1bd990:0x8a,_0x470479:0xce,_0xd3c144:0x11,_0x38b272:0x208,_0x2bc9e9:0x173,_0x50f98f:0x18a,_0x4c4d97:0x86,_0x477e8f:0x33,_0x12c677:0xf6,_0xcf529a:0x6c,_0x196126:0x174,_0x16caf1:0x1cd,_0x192081:0x78,_0xf92769:0x5d,_0xa644c2:0x1e3,_0x4212f2:0x198,_0x5bccb8:0x157,_0x145c0b:0x55,_0x241230:0x59,_0x1acdfa:0x117,_0x3802dc:0x3a,_0x4fdd06:0xdf,_0x72d856:0xb0,_0x200fab:0x1b7,_0x4b3a62:0x137},_0x1833dc={_0x525a57:0x5,_0xc8d6d3:0xe7},_0x15ad1a={_0x161b1d:0x530};function _0x2a9bb7(_0x24e9b2,_0x12652f,_0x1c4d10,_0x5b091d){return _0x11bd88(_0x5b091d- -_0x15ad1a._0x161b1d,_0x1c4d10,_0x1c4d10-0x114,_0x5b091d-0x67);}const _0x4496c2=resolveAnthropicThinkingConfig(_0xb53e12[_0x4adb44(-_0x28fdd8._0x5c09d5,-_0x28fdd8._0x449284,-_0x28fdd8._0x572c47,-0x1fa)]);if(!_0x4496c2||_0x4496c2[_0x2a9bb7(-_0x28fdd8._0x1bd990,-_0x28fdd8._0x470479,-_0x28fdd8._0xd3c144,-0x58)]===_0x4adb44(-_0x28fdd8._0x38b272,-_0x28fdd8._0x2bc9e9,-_0x28fdd8._0x50f98f,-0x140))return{};const _0x9df3bd=_0x4496c2['display']??(isUserVisibleThinking(_0xb53e12)?_0x2a9bb7(-0x11b,0x3,_0x28fdd8._0x4c4d97,-_0x28fdd8._0x477e8f):_0x2a9bb7(-0x1a,-0x35,-_0x28fdd8._0x12c677,-_0x28fdd8._0xcf529a));function _0x4adb44(_0x554b8a,_0x33295d,_0x495e57,_0x7bedc8){return _0xd1496a(_0x554b8a- -0x6ec,_0x33295d-_0x1833dc._0x525a57,_0x7bedc8,_0x7bedc8-_0x1833dc._0xc8d6d3);}const _0x50bb00=_0x4496c2[_0x4adb44(-0x21b,-0x1ec,-_0x28fdd8._0x196126,-_0x28fdd8._0x16caf1)]?{'anthropic-beta':'interleaved-thinking-2025-05-14'}:void 0x0;if(_0x4496c2[_0x2a9bb7(-0xdc,_0x28fdd8._0x192081,-_0x28fdd8._0xf92769,-0x58)]===_0x4adb44(-0x1c4,-_0x28fdd8._0xa644c2,-_0x28fdd8._0x4212f2,-_0x28fdd8._0x5bccb8))return{..._0x50bb00?{'headers':_0x50bb00}:{},'thinking':{'type':_0x2a9bb7(-_0x28fdd8._0x145c0b,-_0x28fdd8._0x241230,-_0x28fdd8._0x1acdfa,-0x7d),'budget_tokens':_0x4496c2[_0x2a9bb7(_0x28fdd8._0x3802dc,-_0x28fdd8._0x4fdd06,-0xa,-0x72)],'display':_0x9df3bd}};return{..._0x50bb00?{'headers':_0x50bb00}:{},'thinking':{'type':'adaptive',..._0x4496c2[_0x2a9bb7(-0xf4,-_0x28fdd8._0x72d856,-_0x28fdd8._0x200fab,-_0x28fdd8._0x4b3a62)]?{'effort':_0x4496c2['effort']}:{},'display':_0x9df3bd}};}function toAnthropicRequestContent(_0x26ecf5){const _0x5406ec={_0xc280e9:0x75,_0x5022fc:0xe1,_0x405ed4:0x5e,_0x45df2e:0x7c,_0x304b6f:0x101,_0x44c29b:0x1f,_0x1d0c56:0x20e,_0x241a17:0x4e,_0x4cf4de:0x58,_0x40c934:0xef,_0x568492:0x123,_0x293934:0x109,_0x120699:0x3d,_0x3a9fa3:0xb9,_0x34004e:0xc9,_0x1b62ad:0x83,_0xecb0e9:0x135,_0x596847:0x83,_0x40290b:0x3f,_0x552263:0x13e,_0x167d26:0x1c9,_0xcecbd9:0x17,_0x25e2c6:0xac,_0x598b43:0x5d,_0x2acb60:0xd7,_0x387f7d:0x2b,_0xf7f1db:0xc7,_0x2aaa5d:0xf8,_0x5e1b13:0x137,_0x5f1da7:0x175},_0x26d03e={_0xdd57ab:0x515},_0x264937={_0x5dd1e9:0x16d};function _0x17088d(_0x352990,_0x475e0,_0x4880b2,_0x5e8a9c){return _0xd1496a(_0x352990- -0x63e,_0x475e0-0x159,_0x475e0,_0x5e8a9c-_0x264937._0x5dd1e9);}if(_0x26ecf5[_0x17088d(-_0x5406ec._0xc280e9,-_0x5406ec._0x5022fc,-0x103,-_0x5406ec._0x405ed4)]===_0x17088d(-_0x5406ec._0x45df2e,-_0x5406ec._0x304b6f,-0x123,-_0x5406ec._0x44c29b)&&_0x26ecf5['providerState']?.['anthropicAssistantContent'])return structuredClone(_0x26ecf5[_0x27a5be(-0x131,-_0x5406ec._0x1d0c56,-_0x5406ec._0x241a17,-0xb4)][_0x27a5be(-_0x5406ec._0x4cf4de,-0xdc,0x92,-0xfa)]);const _0x4faac1=[];function _0x27a5be(_0x47ff0a,_0x451f9d,_0x252674,_0x248900){return _0x11bd88(_0x47ff0a- -_0x26d03e._0xdd57ab,_0x252674,_0x252674-0x13,_0x248900-0x11);}for(const _0x40157c of normalizeContent(_0x26ecf5[_0x27a5be(-_0x5406ec._0x40c934,-0x13e,-_0x5406ec._0x568492,-_0x5406ec._0x293934)])){if(_0x40157c[_0x17088d(-0xf1,-0xe4,-0x110,-0x1ac)]===_0x27a5be(-0x117,-0x1c2,-0x119,-0x155))continue;if(_0x40157c[_0x27a5be(-_0x5406ec._0x120699,0x4c,-_0x5406ec._0x3a9fa3,-_0x5406ec._0x34004e)]==='anthropic_thinking'){_0x4faac1[_0x27a5be(-_0x5406ec._0x1b62ad,-_0x5406ec._0xecb0e9,-0x7f,-_0x5406ec._0x596847)]({'type':_0x27a5be(-0x8a,-0x144,-0x104,_0x5406ec._0x40290b),'thinking':_0x40157c[_0x17088d(-_0x5406ec._0x552263,-_0x5406ec._0x167d26,-0x1e6,-0x84)],'signature':_0x40157c[_0x17088d(-0xbd,-_0x5406ec._0xcecbd9,-0x15c,-_0x5406ec._0x25e2c6)]});continue;}if(_0x40157c[_0x27a5be(-_0x5406ec._0x120699,-0x1d,-_0x5406ec._0x598b43,-_0x5406ec._0x2acb60)]===_0x17088d(-0x93,_0x5406ec._0x387f7d,-0xf4,-0x25)){_0x4faac1['push']({'type':_0x17088d(-_0x5406ec._0xf7f1db,-_0x5406ec._0x2aaa5d,-0x91,-0x14b),'data':_0x40157c['data']});continue;}_0x4faac1[_0x17088d(-_0x5406ec._0x5e1b13,-0xea,-_0x5406ec._0x5f1da7,-0xff)](structuredClone(_0x40157c));}return _0x4faac1;}function createAnthropicRequest(_0xf266ec,_0x2947b2){const _0x1e6098={_0x2f22fd:0x211,_0x319340:0xcb,_0x4d97c1:0x1b3,_0x2ed6af:0x2b,_0x25de46:0x1d5,_0x8426ce:0x26e,_0x5b462c:0x147,_0xbc816c:0x133,_0x1491fe:0x2a3,_0x443df9:0x1a7,_0x15d7f0:0x234,_0x221c7e:0x212,_0xde4829:0x247,_0x46fada:0x165,_0x3fa25b:0x14d,_0x3207ec:0x1d9,_0x2dda8b:0x245,_0x4eaa66:0xda,_0x310c9e:0x86},_0x2cc130={_0x4548a8:0x5b5,_0x59a135:0x17b,_0x39dc56:0x1d3};function _0x561160(_0x1d107f,_0x2ba1de,_0x3d181e,_0x1501d5){return _0xd1496a(_0x1501d5- -0x336,_0x2ba1de-0x141,_0x2ba1de,_0x1501d5-0x18c);}function _0x17e797(_0x15862f,_0x14f7af,_0x36afb7,_0x48ec73){return _0x11bd88(_0x14f7af- -_0x2cc130._0x4548a8,_0x36afb7,_0x36afb7-_0x2cc130._0x59a135,_0x48ec73-_0x2cc130._0x39dc56);}const _0x54562c=toProviderModelRequest(_0xf266ec),_0x5decc6=createAnthropicThinkingBody(_0xf266ec);return{'accept':_0x2947b2?_0x561160(_0x1e6098._0x2f22fd,_0x1e6098._0x319340,0x15b,_0x1e6098._0x4d97c1):_0x17e797(-_0x1e6098._0x2ed6af,-0x9d,-0x137,-0xc3),'body':{..._0x54562c,'messages':_0xf266ec[_0x17e797(-0x291,-_0x1e6098._0x25de46,-0x1de,-_0x1e6098._0x8426ce)][_0x561160(_0x1e6098._0x5b462c,_0x1e6098._0xbc816c,_0x1e6098._0x1491fe,0x1c1)](_0x29480d=>{return{'role':_0x29480d['role'],'content':toAnthropicRequestContent(_0x29480d)};}),..._0x5decc6['thinking']?{'thinking':_0x5decc6[_0x17e797(-_0x1e6098._0x443df9,-0x12a,-0x1b5,-0x120)]}:{},..._0x2947b2?{'stream':!![]}:{},..._0xf266ec[_0x561160(0x171,_0x1e6098._0x15d7f0,_0x1e6098._0x221c7e,0x177)]?{'output_config':{'format':{'type':_0x17e797(-0x22a,-0x17f,-0x1e9,-0x195),'schema':_0xf266ec[_0x17e797(-_0x1e6098._0xde4829,-0x17d,-0xdd,-_0x1e6098._0x46fada)][_0x17e797(-_0x1e6098._0x3fa25b,-0x137,-0x1af,-0xc2)]}}}:{}},..._0x5decc6['headers']?{'headers':_0x5decc6[_0x17e797(-0x297,-_0x1e6098._0x3207ec,-0x1da,-_0x1e6098._0x2dda8b)]}:{},'path':_0x17e797(-0x74,-0x14e,-_0x1e6098._0x4eaa66,-_0x1e6098._0x310c9e)};}function parseAnthropicResponse(_0x3be02a,_0x888b99){const _0x130e74={_0x123bf5:0x12a,_0x30f967:0x11a,_0x4b8ccc:0x151,_0xa31845:0xe4,_0xb8a3e8:0x5,_0x5c6a71:0xd9,_0x484524:0x12a,_0x8e8c7d:0x1e2,_0x59adea:0x23e,_0x22d23d:0x2af,_0x56c893:0x58,_0xed5830:0x134,_0x3715a8:0xd2,_0x9b607e:0xc7,_0x37e8fe:0x142,_0x2bc611:0xc6,_0xa516c9:0x27f,_0x2650ff:0x1a9,_0x44d35e:0x1d1,_0x4f95b8:0x186,_0xa738dc:0x1ad,_0x1c833a:0x17b,_0x4c40c3:0x1f7,_0x2cba7e:0x17d,_0x4ab212:0xde,_0x391538:0x20,_0x5d3590:0x27c,_0x53aa3b:0x1cc,_0x4616a7:0x1a6,_0x3f4e0c:0x221,_0x1420cf:0xab,_0xc104b1:0xaa,_0x102c17:0xbf,_0x593cdf:0x146,_0x452e05:0x61,_0x41539d:0xd6,_0x4e294f:0x228,_0x451562:0x68,_0x3292b8:0x14a,_0x3a90e8:0x172,_0x48e6d0:0x1af,_0x3f73b9:0x171,_0x821df4:0x1c4,_0x3f9d1e:0x131,_0x2114a7:0x4d,_0x5f01fc:0x26f,_0x3f0573:0x231,_0x413ee4:0x40,_0x56fe9e:0xf5,_0x15ee5f:0x16f,_0x20cb74:0x80,_0x54e2d2:0x13e,_0x52ac47:0x28e,_0x21e333:0x35e,_0x52f14b:0xb2,_0x5e6a97:0x187,_0x2dd0b6:0x1ca,_0x2577d9:0xe8,_0xcce17f:0x15,_0x2aebc5:0x22,_0x59c754:0x10b,_0x5a5ad6:0x18e,_0x5f2af3:0xe1,_0x34b83b:0xa3,_0x28ba09:0x157,_0x4e8852:0xf8,_0x22a7fe:0x116},_0xd65784={_0x310639:0x11a,_0x3d40e0:0x72},_0x45ac7c={_0x3a9694:0x3b9,_0x54ad38:0xc4};function _0x50b910(_0x1199dd,_0x2533a6,_0x202b5e,_0xb0d1fa){return _0x11bd88(_0x202b5e- -_0x45ac7c._0x3a9694,_0xb0d1fa,_0x202b5e-0x172,_0xb0d1fa-_0x45ac7c._0x54ad38);}const _0x536a32=[],_0x264e33=_0x3be02a[_0x14cd19(_0x130e74._0x123bf5,_0x130e74._0x30f967,0x100,0x1e6)]??[];function _0x14cd19(_0x5f64fa,_0x4d48bd,_0x121a52,_0x32e92f){return _0xd1496a(_0x4d48bd- -0x381,_0x4d48bd-_0xd65784._0x310639,_0x121a52,_0x32e92f-_0xd65784._0x3d40e0);}let _0x1ed711=![];for(const _0x55d52b of _0x264e33){if(_0x55d52b[_0x50b910(0x12f,_0x130e74._0x4b8ccc,0x11f,0x5d)]==='thinking'){_0x1ed711=!![];isUserVisibleThinking(_0x888b99)&&_0x536a32[_0x50b910(_0x130e74._0xa31845,_0x130e74._0xb8a3e8,_0x130e74._0x5c6a71,_0x130e74._0x484524)]({'type':_0x14cd19(_0x130e74._0x8e8c7d,_0x130e74._0x59adea,0x188,_0x130e74._0x22d23d),'thinking':_0x55d52b[_0x50b910(_0x130e74._0x56c893,_0x130e74._0xed5830,_0x130e74._0x3715a8,_0x130e74._0x9b607e)],'signature':_0x55d52b['signature']});continue;}if(_0x55d52b[_0x50b910(_0x130e74._0x37e8fe,_0x130e74._0x2bc611,0x11f,0x1fc)]===_0x14cd19(_0x130e74._0xa516c9,0x1f6,_0x130e74._0x2650ff,_0x130e74._0x44d35e)){_0x1ed711=!![];isUserVisibleThinking(_0x888b99)&&_0x536a32[_0x14cd19(0x1eb,_0x130e74._0x4f95b8,0xdb,_0x130e74._0xa738dc)]({'type':_0x50b910(_0x130e74._0x1c833a,_0x130e74._0x4c40c3,_0x130e74._0x2cba7e,0x188),'data':_0x55d52b[_0x50b910(-0xa1,_0x130e74._0x4ab212,_0x130e74._0x391538,-0x2)]});continue;}if(_0x55d52b[_0x14cd19(_0x130e74._0x5d3590,_0x130e74._0x53aa3b,_0x130e74._0x4616a7,_0x130e74._0x3f4e0c)]===_0x50b910(0x5e,-0xd,_0x130e74._0x1420cf,_0x130e74._0xc104b1)){_0x55d52b['text'][_0x50b910(_0x130e74._0x102c17,_0x130e74._0x593cdf,0x76,-_0x130e74._0x452e05)]>0x0&&_0x536a32['push'](structuredClone(_0x55d52b));continue;}_0x536a32['push'](structuredClone(_0x55d52b));}return{'id':_0x3be02a['id']??_0x14cd19(_0x130e74._0x41539d,0x17b,0x221,0x186)+Date[_0x14cd19(0x227,0x1dc,0x1d5,_0x130e74._0x4e294f)](),'content':_0x536a32,'stopReason':_0x536a32[_0x50b910(_0x130e74._0x451562,0x112,_0x130e74._0x3292b8,0x10f)](_0x13047d=>_0x13047d[_0x50b910(0x16f,0x40,0x11f,0x12f)]===_0x50b910(0xb3,-0x12,0xc4,0xac))?'tool_use':_0x3be02a[_0x50b910(0x167,0xf4,_0x130e74._0x3a90e8,_0x130e74._0x48e6d0)]===_0x14cd19(0x15b,_0x130e74._0x3f73b9,_0x130e74._0x821df4,_0x130e74._0x3f9d1e)?_0x50b910(_0x130e74._0x2114a7,0x47,0xc4,0x9f):_0x14cd19(0x1ff,_0x130e74._0x5f01fc,0x2b5,_0x130e74._0x3f0573),'usage':{'inputTokens':(_0x3be02a['usage']?.[_0x14cd19(0x161,0x181,0xa4,0x113)]??0x0)+(_0x3be02a[_0x14cd19(0x194,0x279,0x314,0x217)]?.[_0x14cd19(_0x130e74._0x413ee4,0xcf,_0x130e74._0x56fe9e,_0x130e74._0x15ee5f)]??0x0)+(_0x3be02a[_0x50b910(0x124,0x1ef,_0x130e74._0x53aa3b,0x239)]?.[_0x14cd19(_0x130e74._0x20cb74,0xf5,_0x130e74._0x54e2d2,0x92)]??0x0),'outputTokens':_0x3be02a[_0x14cd19(_0x130e74._0x52ac47,0x279,_0x130e74._0x21e333,0x2dd)]?.[_0x50b910(0xe2,_0x130e74._0x52f14b,_0x130e74._0x5e6a97,0x121)]??0x0,..._0x3be02a[_0x50b910(_0x130e74._0x2dd0b6,0x29b,0x1cc,_0x130e74._0x2577d9)]?.[_0x50b910(0x54,-_0x130e74._0xcce17f,_0x130e74._0x2aebc5,_0x130e74._0x59c754)]?{'cacheReadInputTokens':_0x3be02a[_0x50b910(_0x130e74._0x5a5ad6,0x269,0x1cc,0x1a2)][_0x50b910(_0x130e74._0x5f2af3,-0x40,0x22,-0x45)]}:{},..._0x3be02a['usage']?.[_0x14cd19(_0x130e74._0x34b83b,0xf5,0xb7,0xd6)]?{'cacheCreationInputTokens':_0x3be02a['usage'][_0x14cd19(_0x130e74._0x28ba09,_0x130e74._0x56fe9e,_0x130e74._0x4e8852,_0x130e74._0x22a7fe)]}:{}},..._0x1ed711?{'providerState':{'anthropicAssistantContent':structuredClone(_0x264e33)}}:{}};}var AnthropicMessagesStreamParser=class{['blocks']=new Map();[_0xd1496a(0x45a,0x502,0x39b,0x542)]=0x0;[_0x11bd88(0x592,0x4bf,0x4bf,0x527)]=0x0;[_0xd1496a(0x484,0x466,0x44a,0x4ac)]=0x0;[_0x11bd88(0x3da,0x426,0x42d,0x3b5)]=_0x11bd88(0x487,0x51e,0x511,0x4d9)+Date[_0xd1496a(0x55d,0x546,0x4d8,0x5e5)]();[_0xd1496a(0x43b,0x357,0x49d,0x39f)]=0x0;[_0x11bd88(0x552,0x597,0x50b,0x51f)];[_0x11bd88(0x455,0x514,0x3f2,0x48d)]='end_turn';constructor(_0x36b105){const _0x139344={_0x597e09:0x50e,_0x31f170:0x51a,_0x24a7a9:0x4e0,_0x1efd13:0x5cd},_0x3c1d11={_0x33c029:0xb9};function _0x11b007(_0x32b12c,_0x38ff8f,_0xfbde53,_0x381401){return _0xd1496a(_0x32b12c- -_0x3c1d11._0x33c029,_0x38ff8f-0x82,_0x381401,_0x381401-0x69);}this[_0x11b007(_0x139344._0x597e09,_0x139344._0x31f170,_0x139344._0x24a7a9,_0x139344._0x1efd13)]=_0x36b105;}[_0x11bd88(0x3c9,0x39e,0x42e,0x347)](_0x2e112e){const _0x3c7be1={_0x21fad8:0x43a,_0x45aacc:0x224,_0x4c72f6:0x32b,_0x341f1a:0x3f8,_0xcb168e:0x439,_0x170f8e:0x484,_0x1f1061:0x446,_0x150d72:0x430,_0x25d932:0x1f6,_0x4b4836:0x206,_0x599da2:0x49a,_0x2ad443:0x402,_0x737ed1:0x274,_0x49528a:0x329,_0x321d60:0x3ef,_0x9afbb6:0x34c,_0x50e5b3:0x2c8,_0x34f055:0x18e,_0x1b453e:0x166,_0x521677:0x389,_0x209797:0x2d5,_0x2607bb:0x1b5,_0x390b7f:0x20e,_0x31e3e4:0x3e9,_0x54672c:0x396,_0x74d9ca:0x2ab,_0x527c2d:0x234,_0x220203:0x17b,_0x23befb:0x4c8,_0xeeede7:0x3f0,_0x1cc1e4:0x410,_0x176b97:0x428,_0x33c0c8:0x3bd,_0x172cec:0x40c,_0x49dc3d:0x2af,_0x22fe49:0x275,_0x3888fc:0x386,_0x3b04cf:0x523,_0x1c9ba2:0x490,_0x2bff07:0x1bc,_0x27cfac:0x493,_0x4d232e:0x427,_0x1751ea:0x488,_0x46f73c:0x270,_0x23e06e:0x225,_0x47439f:0x248,_0x3acfb2:0x327,_0x258bb9:0x5ad,_0x3add13:0x542,_0x5057a2:0x4a8,_0x27d5d4:0x2c5,_0x103346:0x451,_0x422c26:0x4ac,_0x421f6b:0x4e3,_0x10d961:0x55e,_0x368fb0:0x496,_0x11e031:0x57c,_0x33b52f:0x265,_0x3e4a78:0x33b,_0x58741c:0x2c1,_0x1074b0:0x3c5,_0x1ea02b:0x249,_0x12f4cc:0x4a1,_0x55f66a:0x3e0,_0x1708a2:0x2bb,_0x178975:0x4e7,_0x39c845:0x529,_0x3d09f6:0x403,_0x1398af:0x3a1,_0x5a4e14:0x41d,_0x4eb7dc:0x46f,_0x927be7:0x320,_0x6c516b:0x28f,_0x4cd1cf:0x1eb,_0x3b548c:0x585,_0x2cf2a8:0x4be,_0x3b3bd9:0x256,_0x58bd35:0x317,_0x3de46e:0x2e9,_0x4bccb0:0x15e,_0x3f7528:0x216,_0x52983c:0x236,_0x3a53d8:0x1dd,_0x327dd4:0x208,_0x99609c:0x4d6,_0x181163:0x59f,_0x512e3e:0x287,_0x29891a:0x481,_0x19dc74:0x1ca,_0x5d79dd:0x2fc,_0x3f20a0:0x34b,_0x13c6e5:0x4ca,_0x187503:0x620,_0x59d0f0:0x58d,_0x1f4e3b:0x289,_0x21b7e8:0x2a0,_0x20eeb5:0x2f9,_0x220981:0x27e,_0x707a30:0x395,_0x340d21:0x4ab,_0x1dfb31:0x2c0,_0x5e0a13:0x36e,_0x4012a0:0x388,_0xa8f4f2:0x20f,_0xc3fc69:0x268,_0xd90394:0x342,_0x4b9e8f:0x540,_0x2db899:0x40a,_0x36be89:0x5a8,_0x4e0258:0x5e3,_0x509847:0x1fc,_0x2e76d1:0x2dc,_0x4c1c33:0x29b,_0x394769:0x4bf,_0x3e54c2:0x281,_0x1e3583:0x5a0,_0xac92d8:0x56a,_0x3025c8:0x4e8,_0xb74c12:0x401,_0x38f25b:0x2ab,_0x3c2699:0x2bd,_0x1bf376:0x2d6,_0x24efc0:0x367,_0x7b891e:0x50b,_0x178463:0x5ae,_0x253d0a:0x5b1,_0xc137d3:0x375,_0x1f372a:0x466,_0x4f1b38:0x4c7,_0x3d38fd:0x496,_0x37c741:0x3cd,_0x23ea6f:0x3a9,_0xbd6bbd:0x4e9,_0x4de98d:0x261,_0x312e18:0x2c9,_0x42da11:0x304,_0x3e5373:0x24f,_0xa9c4d1:0x28f,_0x2c2b4b:0x1fe,_0x441ef3:0x5c6,_0x12c5f5:0x58f,_0x20198d:0x55d,_0x4ea8c1:0x354,_0x176a7d:0x3e1,_0x3eef8e:0x2ee,_0x1fa4d3:0x279,_0x25b066:0x46d,_0x34a517:0x551,_0x29c80c:0x423,_0x473d05:0x517,_0x82be74:0x171,_0x28feb6:0x233,_0x56e83d:0x3fa,_0x5ba124:0x32d,_0x594b60:0x328,_0x18140f:0x382,_0x19a90d:0x57b,_0xe90a55:0x4c1,_0x52441e:0x45f,_0x41d00b:0x3a4,_0x17f609:0x2e7,_0x5b44c1:0x2ed,_0x5544a4:0x26a,_0x52b7ef:0x396,_0x18a8a3:0x34d,_0x2bf4f0:0x265,_0x16d4cf:0x553,_0x5c46d1:0x65a,_0x3bb693:0x59d,_0x584158:0x5cc,_0x5ba2cf:0x1bf,_0x5f2597:0x1e9,_0x484b73:0x125,_0x365185:0x442,_0x2020c2:0x249,_0xbcd004:0x1d7,_0x5a4124:0x5a6,_0x2b0e71:0x50b,_0x28bfd0:0x536,_0x4b75dd:0x3a0,_0x42f4b2:0x437,_0x4e6d3c:0x3f4,_0x48d8f5:0x3d7,_0x1946b4:0x405,_0x9a3c7d:0x397,_0x66162e:0x329,_0x3e9b35:0x28a,_0x1a7cf7:0x2a2,_0x1c5025:0x2a2,_0x4a028c:0x546,_0x31c427:0x43c},_0xfb7cc2={_0x55a4d5:0xb,_0x45bfca:0xb4},_0x1df8b2={_0x594ba3:0x271},_0x361c6a=_0x2e112e[_0x2f28d6(0x4ce,_0x3c7be1._0x21fad8,0x400,0x3da)]('\x0a'),_0x20ae25=_0x361c6a['find'](_0x3b4932=>_0x3b4932[_0x2f28d6(0x487,0x4a8,0x432,0x3ef)](_0x2a5f8e(0x308,0x34f,0x2ea,0x34a)))?.[_0x2a5f8e(0x219,_0x3c7be1._0x45aacc,0x1b0,0x15d)](0x6)['trim'](),_0x4b83f3=_0x361c6a[_0x2a5f8e(0x403,_0x3c7be1._0x4c72f6,0x3d2,0x268)](_0x3ebb71=>_0x3ebb71[_0x2f28d6(0x3ac,0x4a9,0x432,0x400)](_0x2f28d6(0x516,0x5e2,0x565,0x61b)))[_0x2f28d6(0x4ed,_0x3c7be1._0x341f1a,0x48d,0x3c7)](_0x5332ae=>_0x5332ae[_0x2a5f8e(0x2b8,0x224,0x26c,0x2e7)](0x5)[_0x2a5f8e(0x3d8,0x354,0x37e,0x32c)]())['join']('\x0a')[_0x2f28d6(0x44d,0x4b9,_0x3c7be1._0xcb168e,0x355)]();function _0x2a5f8e(_0x38c3b2,_0xc068ee,_0xe71a36,_0x313873){return _0xd1496a(_0xc068ee- -_0x1df8b2._0x594ba3,_0xc068ee-0xaf,_0xe71a36,_0x313873-0x1cb);}if(_0x4b83f3['length']===0x0||_0x4b83f3===_0x2a5f8e(_0x3c7be1._0x170f8e,0x39d,_0x3c7be1._0x1f1061,_0x3c7be1._0x150d72))return[];const _0xa983ce=JSON[_0x2a5f8e(0x20d,_0x3c7be1._0x25d932,_0x3c7be1._0x4b4836,0x236)](_0x4b83f3);switch(_0x20ae25){case _0x2f28d6(_0x3c7be1._0x599da2,0x4ae,_0x3c7be1._0x2ad443,0x321):{const _0x122c50=_0xa983ce[_0x2a5f8e(_0x3c7be1._0x737ed1,_0x3c7be1._0x49528a,_0x3c7be1._0x321d60,_0x3c7be1._0x9afbb6)];this[_0x2a5f8e(_0x3c7be1._0x50e5b3,0x1de,_0x3c7be1._0x34f055,_0x3c7be1._0x1b453e)]=_0x122c50?.['id']??this['messageId'],this['inputTokens']=_0x122c50?.[_0x2a5f8e(0x40b,_0x3c7be1._0x521677,0x3d8,0x419)]?.[_0x2a5f8e(_0x3c7be1._0x209797,0x291,_0x3c7be1._0x2607bb,_0x3c7be1._0x390b7f)]??this[_0x2f28d6(0x424,0x3f6,0x41a,_0x3c7be1._0x31e3e4)],this[_0x2a5f8e(0x2c1,_0x3c7be1._0x54672c,0x441,_0x3c7be1._0x74d9ca)]=_0x122c50?.['usage']?.[_0x2a5f8e(_0x3c7be1._0x527c2d,0x1df,0x2b5,_0x3c7be1._0x220203)]??this[_0x2f28d6(_0x3c7be1._0x23befb,0x5d0,0x59d,0x683)],this[_0x2f28d6(0x3e3,0x3f9,_0x3c7be1._0xeeede7,_0x3c7be1._0x1cc1e4)]=_0x122c50?.[_0x2a5f8e(_0x3c7be1._0x176b97,_0x3c7be1._0x521677,0x31f,_0x3c7be1._0x33c0c8)]?.[_0x2f28d6(0x4b1,0x494,_0x3c7be1._0x172cec,0x4b7)]??this[_0x2a5f8e(_0x3c7be1._0x737ed1,0x1e9,_0x3c7be1._0x49dc3d,_0x3c7be1._0x22fe49)];break;}case'content_block_start':{const _0x34b6fe=typeof _0xa983ce['index']===_0x2a5f8e(0x454,_0x3c7be1._0x3888fc,0x338,0x3cb)?_0xa983ce[_0x2f28d6(0x536,_0x3c7be1._0x3b04cf,_0x3c7be1._0x1c9ba2,0x45d)]:0x0,_0xe142dc=_0xa983ce[_0x2a5f8e(0x2f1,0x29a,_0x3c7be1._0x2bff07,0x35e)];if(_0xe142dc?.['type']===_0x2f28d6(_0x3c7be1._0x27cfac,_0x3c7be1._0x4d232e,_0x3c7be1._0x1751ea,0x4ed)&&_0xe142dc['id']&&_0xe142dc[_0x2a5f8e(_0x3c7be1._0x46f73c,_0x3c7be1._0x23e06e,0x30e,0x229)])return this[_0x2a5f8e(_0x3c7be1._0x47439f,_0x3c7be1._0x3acfb2,0x3c6,0x368)][_0x2f28d6(0x4ca,_0x3c7be1._0x258bb9,_0x3c7be1._0x3add13,0x4e3)](_0x34b6fe,{'id':_0xe142dc['id'],'index':_0x34b6fe,'inputJson':JSON[_0x2a5f8e(0x293,0x2df,0x25e,0x285)](_0xe142dc['input']??{}),'kind':'tool_use','name':_0xe142dc[_0x2f28d6(_0x3c7be1._0x5057a2,0x4e8,0x42c,0x3d8)]}),[{'type':'tool_use_delta','id':_0xe142dc['id'],'index':_0x34b6fe,'name':_0xe142dc[_0x2a5f8e(0x237,0x225,_0x3c7be1._0x27d5d4,0x264)]}];if(_0xe142dc?.[_0x2f28d6(_0x3c7be1._0x103346,_0x3c7be1._0x422c26,_0x3c7be1._0x421f6b,_0x3c7be1._0x10d961)]===_0x2f28d6(0x3cc,0x51f,_0x3c7be1._0x368fb0,_0x3c7be1._0x11e031)){this[_0x2a5f8e(_0x3c7be1._0x33b52f,0x327,0x271,0x3c6)][_0x2a5f8e(0x392,_0x3c7be1._0x3e4a78,_0x3c7be1._0x58741c,_0x3c7be1._0x1074b0)](_0x34b6fe,{'index':_0x34b6fe,'kind':'thinking','signature':typeof _0xe142dc['signature']===_0x2a5f8e(_0x3c7be1._0x1ea02b,0x216,0x29b,0x29d)?_0xe142dc[_0x2f28d6(_0x3c7be1._0x12f4cc,0x566,0x517,0x568)]:'','thinking':typeof _0xe142dc['text']===_0x2f28d6(0x505,_0x3c7be1._0x55f66a,0x41d,0x387)?_0xe142dc[_0x2a5f8e(0x19d,0x268,0x1c1,_0x3c7be1._0x1708a2)]:typeof _0xe142dc[_0x2f28d6(0x4f1,_0x3c7be1._0x178975,_0x3c7be1._0x368fb0,_0x3c7be1._0x39c845)]===_0x2f28d6(_0x3c7be1._0x3d09f6,_0x3c7be1._0x1398af,_0x3c7be1._0x5a4e14,_0x3c7be1._0x4eb7dc)?String(_0xe142dc[_0x2a5f8e(_0x3c7be1._0x927be7,_0x3c7be1._0x6c516b,_0x3c7be1._0x4cd1cf,0x29a)]):''});break;}if(_0xe142dc?.[_0x2f28d6(_0x3c7be1._0x3b548c,_0x3c7be1._0x2cf2a8,0x4e3,0x5aa)]==='redacted_thinking'){this['blocks'][_0x2a5f8e(_0x3c7be1._0x3b3bd9,_0x3c7be1._0x3e4a78,_0x3c7be1._0x58bd35,_0x3c7be1._0x3de46e)](_0x34b6fe,{'index':_0x34b6fe,'kind':'redacted_thinking','data':typeof _0xe142dc['data']===_0x2a5f8e(_0x3c7be1._0x4bccb0,_0x3c7be1._0x3f7528,0x1c1,_0x3c7be1._0x52983c)?String(_0xe142dc[_0x2a5f8e(0x258,_0x3c7be1._0x3a53d8,_0x3c7be1._0x327dd4,0x18f)]):''});break;}this[_0x2f28d6(_0x3c7be1._0x99609c,_0x3c7be1._0x181163,0x52e,0x49b)][_0x2a5f8e(0x263,_0x3c7be1._0x3e4a78,_0x3c7be1._0x512e3e,0x304)](_0x34b6fe,{'index':_0x34b6fe,'kind':_0x2f28d6(_0x3c7be1._0x29891a,0x3c9,0x46f,0x48b),'text':_0xe142dc?.[_0x2a5f8e(0x2ea,0x268,0x321,_0x3c7be1._0x19dc74)]??''});break;}case _0x2a5f8e(0x39f,_0x3c7be1._0x5d79dd,_0x3c7be1._0x3f20a0,0x2b4):{const _0x36bd15=typeof _0xa983ce['index']===_0x2f28d6(_0x3c7be1._0x13c6e5,_0x3c7be1._0x187503,_0x3c7be1._0x59d0f0,0x64a)?_0xa983ce[_0x2a5f8e(0x2d8,_0x3c7be1._0x1f4e3b,_0x3c7be1._0x21b7e8,0x2f7)]:0x0,_0x4936cf=this['blocks'][_0x2a5f8e(0x1f8,0x21a,0x2c5,_0x3c7be1._0x20eeb5)](_0x36bd15),_0x3e1233=_0xa983ce[_0x2a5f8e(_0x3c7be1._0x220981,0x2f2,_0x3c7be1._0x707a30,0x292)];if(!_0x4936cf||!_0x3e1233?.['type'])break;if(_0x3e1233[_0x2f28d6(0x473,0x455,0x4e3,_0x3c7be1._0x340d21)]==='text_delta'&&_0x4936cf[_0x2a5f8e(_0x3c7be1._0x1dfb31,0x2b8,0x362,_0x3c7be1._0x5e0a13)]===_0x2f28d6(_0x3c7be1._0x4012a0,0x3d9,0x46f,0x3ab)&&typeof _0x3e1233[_0x2a5f8e(0x1f5,0x268,0x2dd,0x252)]==='string')return _0x4936cf[_0x2a5f8e(_0x3c7be1._0xa8f4f2,_0x3c7be1._0xc3fc69,_0x3c7be1._0xd90394,0x2a1)]+=_0x3e1233[_0x2f28d6(_0x3c7be1._0x4b9e8f,_0x3c7be1._0x2db899,0x46f,0x47c)],[{'type':_0x2f28d6(_0x3c7be1._0x36be89,0x604,_0x3c7be1._0x3b548c,_0x3c7be1._0x4e0258),'index':_0x36bd15,'text':_0x3e1233['text']}];if(_0x3e1233[_0x2a5f8e(_0x3c7be1._0x509847,_0x3c7be1._0x2e76d1,_0x3c7be1._0x4c1c33,0x24f)]==='input_json_delta'&&_0x4936cf[_0x2f28d6(0x476,0x3df,_0x3c7be1._0x394769,0x424)]===_0x2a5f8e(0x1da,_0x3c7be1._0x3e54c2,0x2c8,0x33c)&&typeof _0x3e1233[_0x2f28d6(0x50f,_0x3c7be1._0x1e3583,_0x3c7be1._0xac92d8,0x649)]===_0x2f28d6(0x3e0,_0x3c7be1._0x3025c8,_0x3c7be1._0x5a4e14,_0x3c7be1._0xb74c12))return _0x4936cf['inputJson']==='{}'&&(_0x4936cf[_0x2a5f8e(0x274,0x297,0x1cc,0x207)]=''),_0x4936cf['inputJson']+=_0x3e1233[_0x2a5f8e(_0x3c7be1._0x38f25b,0x363,0x2f7,0x2af)],[{'type':_0x2a5f8e(_0x3c7be1._0x3c2699,_0x3c7be1._0x1bf376,_0x3c7be1._0x24efc0,_0x3c7be1._0xd90394),'id':_0x4936cf['id'],'index':_0x36bd15,'inputDelta':_0x3e1233[_0x2f28d6(_0x3c7be1._0x10d961,0x48b,0x56a,0x632)]}];if(_0x3e1233[_0x2f28d6(_0x3c7be1._0x7b891e,_0x3c7be1._0x178463,0x4e3,_0x3c7be1._0x253d0a)]===_0x2a5f8e(0x3ec,_0x3c7be1._0xc137d3,0x377,0x355)&&_0x4936cf['kind']===_0x2f28d6(_0x3c7be1._0x1f372a,_0x3c7be1._0x4f1b38,_0x3c7be1._0x3d38fd,_0x3c7be1._0x37c741)){const _0x2a77dc=typeof _0x3e1233['thinking']===_0x2f28d6(_0x3c7be1._0x23ea6f,0x355,0x41d,_0x3c7be1._0xbd6bbd)?String(_0x3e1233[_0x2a5f8e(0x21c,0x28f,_0x3c7be1._0x4de98d,_0x3c7be1._0x312e18)]):'';if(_0x2a77dc[_0x2a5f8e(0x191,0x233,0x2ea,_0x3c7be1._0x42da11)]>0x0){_0x4936cf[_0x2a5f8e(_0x3c7be1._0x3e5373,_0x3c7be1._0xa9c4d1,_0x3c7be1._0x2c2b4b,0x271)]+=_0x2a77dc;if(isUserVisibleThinking(this[_0x2f28d6(_0x3c7be1._0x441ef3,_0x3c7be1._0x12c5f5,_0x3c7be1._0x20198d,0x5ce)]))return[{'type':_0x2a5f8e(_0x3c7be1._0x4ea8c1,0x332,0x3e8,_0x3c7be1._0x176a7d),'index':_0x36bd15,'thinking':_0x2a77dc}];}}if(_0x3e1233['type']==='signature_delta'&&_0x4936cf[_0x2a5f8e(0x2b4,0x2b8,0x24a,_0x3c7be1._0x3eef8e)]===_0x2a5f8e(_0x3c7be1._0x1fa4d3,0x28f,0x1ff,0x216)){const _0x5e5abc=typeof _0x3e1233[_0x2f28d6(_0x3c7be1._0x25b066,_0x3c7be1._0x34a517,0x517,0x43f)]===_0x2f28d6(0x4f1,_0x3c7be1._0x29c80c,0x41d,_0x3c7be1._0x2db899)?String(_0x3e1233[_0x2f28d6(0x566,0x582,_0x3c7be1._0x473d05,0x433)]):'';if(_0x5e5abc[_0x2a5f8e(_0x3c7be1._0x82be74,_0x3c7be1._0x28feb6,0x238,_0x3c7be1._0x42da11)]>0x0){_0x4936cf['signature']=_0x5e5abc;if(isUserVisibleThinking(this[_0x2a5f8e(_0x3c7be1._0x56e83d,0x356,0x3d5,_0x3c7be1._0x5ba124)]))return[{'type':_0x2a5f8e(0x298,_0x3c7be1._0x594b60,_0x3c7be1._0x18140f,0x3f1),'index':_0x36bd15,'signature':_0x5e5abc}];}}break;}case'message_delta':{const _0x273bd7=_0xa983ce[_0x2f28d6(_0x3c7be1._0x19a90d,_0x3c7be1._0xe90a55,0x4f9,_0x3c7be1._0x52441e)],_0x32fe7a=_0xa983ce[_0x2a5f8e(_0x3c7be1._0x41d00b,_0x3c7be1._0x521677,_0x3c7be1._0x17f609,0x384)];this['inputTokens']=_0x32fe7a?.[_0x2a5f8e(0x235,0x291,_0x3c7be1._0x5b44c1,_0x3c7be1._0x5544a4)]??this['inputTokens'],this[_0x2a5f8e(0x2d9,_0x3c7be1._0x52b7ef,0x395,_0x3c7be1._0x18a8a3)]=_0x32fe7a?.[_0x2a5f8e(0x163,0x1df,0x2c1,_0x3c7be1._0x2bf4f0)]??this[_0x2f28d6(_0x3c7be1._0x16d4cf,_0x3c7be1._0x5c46d1,_0x3c7be1._0x3bb693,_0x3c7be1._0x584158)],this[_0x2a5f8e(_0x3c7be1._0x5ba2cf,_0x3c7be1._0x5f2597,_0x3c7be1._0x484b73,0x209)]=_0x32fe7a?.['cache_creation_input_tokens']??this[_0x2f28d6(_0x3c7be1._0x365185,0x465,0x3f0,0x312)],this[_0x2a5f8e(0x1ac,_0x3c7be1._0x19dc74,_0x3c7be1._0x2020c2,_0x3c7be1._0xbcd004)]=_0x32fe7a?.[_0x2f28d6(0x5b1,_0x3c7be1._0x5a4124,0x54b,_0x3c7be1._0x2b0e71)]??this[_0x2a5f8e(0xf9,0x1ca,0x23e,_0x3c7be1._0xc3fc69)],this[_0x2a5f8e(0x1ce,0x259,0x243,0x2b8)]=_0x273bd7?.[_0x2f28d6(0x51c,0x4f2,_0x3c7be1._0x28bfd0,0x55a)]===_0x2f28d6(_0x3c7be1._0x4b75dd,0x463,_0x3c7be1._0x1751ea,_0x3c7be1._0x42f4b2)?_0x2f28d6(0x4ab,_0x3c7be1._0x4e6d3c,0x488,_0x3c7be1._0x48d8f5):'end_turn';break;}case'error':{const _0x1b63f8=_0xa983ce[_0x2f28d6(0x352,0x4a5,_0x3c7be1._0x1946b4,0x33e)];throw new ProviderStreamEventError(_0x1b63f8?.[_0x2a5f8e(_0x3c7be1._0x9a3c7d,_0x3c7be1._0x66162e,0x359,_0x3c7be1._0x3e9b35)]??_0x2a5f8e(0x262,_0x3c7be1._0x1a7cf7,_0x3c7be1._0x1c5025,0x2d4),{'code':_0x1b63f8?.[_0x2f28d6(0x4a4,_0x3c7be1._0x4a028c,0x4e3,_0x3c7be1._0x31c427)],'retryable':!![]});}}function _0x2f28d6(_0x2803f6,_0x521684,_0x25c7a4,_0x52090e){return _0x11bd88(_0x25c7a4-_0xfb7cc2._0x55a4d5,_0x2803f6,_0x25c7a4-0xf4,_0x52090e-_0xfb7cc2._0x45bfca);}return[];}[_0xd1496a(0x4c7,0x556,0x4d2,0x47e)](){const _0x26e07d={_0x1123c0:0x1fd,_0x50a47b:0x220,_0x3ee79a:0x1e7,_0x5b9abd:0x110,_0x33f5c4:0xc7,_0x55c93c:0x129,_0x2357ad:0x16f,_0x1af2bb:0x175,_0x97f8b2:0x1e2,_0x13aa88:0x1c4,_0x52c5a5:0x15a,_0x441f23:0x153,_0x58479a:0xd8,_0x12535c:0x12c,_0x5c4d6a:0x103,_0x1bddef:0x15a,_0x907f01:0x80,_0x4f9d9c:0x1c2,_0x113ff1:0xb5,_0x238d4e:0x238,_0x2ed4b3:0x153,_0x27f55e:0x23c,_0x16b348:0x1df,_0x88f9f5:0x214,_0x238915:0xfa,_0x1711df:0x14e,_0x2b64f2:0x223,_0x4c7eac:0x20b,_0x19e7cc:0xea,_0x401785:0x39,_0x5deb80:0x17b,_0x2227cd:0x2b,_0x3c988:0xe9,_0x3f679e:0x150,_0x41c7d5:0x189,_0x2ca307:0x251,_0x4cbcd3:0x1a4,_0x544c36:0x272,_0x1780a4:0x277,_0x564d9e:0xa2,_0x3ce03b:0x42,_0x28ca98:0x6b,_0x50ebc1:0x176,_0x58b078:0x21,_0x1a3fae:0xd7,_0x59719f:0x1,_0x3de4b4:0x2a3,_0x5a367a:0x1d2,_0x3237d4:0xf6,_0x3713b0:0x11a,_0x581043:0x12c,_0x41b1be:0x2ca},_0x478e80={_0x522540:0x338,_0x1f3f02:0x14},_0x5d0135={_0x276e5e:0x2ef,_0xeaa44a:0x47,_0x31747d:0x5b};function _0x4ef25a(_0x4133b7,_0x300993,_0x3d1264,_0x2de567){return _0x11bd88(_0x4133b7- -_0x5d0135._0x276e5e,_0x300993,_0x3d1264-_0x5d0135._0xeaa44a,_0x2de567-_0x5d0135._0x31747d);}const _0x22aef7=Array[_0x4ef25a(0x1f7,0x1f0,0x187,0x2a6)](this[_0x4ef25a(0x234,_0x26e07d._0x1123c0,_0x26e07d._0x50a47b,_0x26e07d._0x3ee79a)][_0x4f0ad1(_0x26e07d._0x5b9abd,_0x26e07d._0x33f5c4,_0x26e07d._0x55c93c,0x40)]())[_0x4f0ad1(_0x26e07d._0x2357ad,0x135,0x210,0x172)]((_0x23f483,_0x65a486)=>_0x23f483['index']-_0x65a486[_0x4f0ad1(0x18a,0x14d,0x1a6,0x19a)]),_0x534e96=[];function _0x4f0ad1(_0x311a4f,_0x4a82a4,_0x7532c,_0x388377){return _0x11bd88(_0x4a82a4- -_0x478e80._0x522540,_0x7532c,_0x7532c-0x10d,_0x388377-_0x478e80._0x1f3f02);}for(const _0x260caa of _0x22aef7){if(_0x260caa['kind']==='text'){_0x260caa[_0x4ef25a(_0x26e07d._0x1af2bb,_0x26e07d._0x97f8b2,_0x26e07d._0x13aa88,0x13c)]['length']>0x0&&_0x534e96[_0x4f0ad1(0x233,_0x26e07d._0x52c5a5,0x18b,_0x26e07d._0x441f23)]({'type':'text','text':_0x260caa[_0x4f0ad1(_0x26e07d._0x58479a,_0x26e07d._0x12535c,0x13f,0x1b1)]});continue;}if(_0x260caa['kind']==='thinking'){_0x534e96[_0x4f0ad1(_0x26e07d._0x5c4d6a,_0x26e07d._0x1bddef,_0x26e07d._0x907f01,0x9e)]({'type':_0x4f0ad1(_0x26e07d._0x4f9d9c,0x153,_0x26e07d._0x113ff1,0x1c1),'thinking':_0x260caa[_0x4f0ad1(_0x26e07d._0x238d4e,_0x26e07d._0x2ed4b3,0xa0,0x1c7)],'signature':_0x260caa[_0x4ef25a(0x21d,0x136,_0x26e07d._0x27f55e,_0x26e07d._0x16b348)]});continue;}if(_0x260caa[_0x4f0ad1(_0x26e07d._0x88f9f5,0x17c,0x197,_0x26e07d._0x238915)]==='redacted_thinking'){_0x534e96[_0x4f0ad1(0x93,_0x26e07d._0x1bddef,_0x26e07d._0x1711df,0xcb)]({'type':_0x4ef25a(0x213,_0x26e07d._0x2b64f2,0x19f,_0x26e07d._0x4c7eac),'data':_0x260caa[_0x4ef25a(_0x26e07d._0x19e7cc,_0x26e07d._0x401785,_0x26e07d._0x5deb80,_0x26e07d._0x2227cd)]});continue;}_0x534e96[_0x4ef25a(0x1a3,0x1b5,0x20a,0x142)]({'type':'tool_use','id':_0x260caa['id'],'name':_0x260caa[_0x4f0ad1(0x138,_0x26e07d._0x3c988,0x48,0xa6)],'input':parseToolInput(_0x260caa[_0x4ef25a(0x1a4,_0x26e07d._0x3f679e,_0x26e07d._0x41c7d5,_0x26e07d._0x2ca307)]['length']>0x0?_0x260caa[_0x4ef25a(_0x26e07d._0x4cbcd3,_0x26e07d._0x544c36,0x237,_0x26e07d._0x1780a4)]:'{}')});}return parseAnthropicResponse({'id':this[_0x4f0ad1(0xfa,_0x26e07d._0x564d9e,_0x26e07d._0x3ce03b,_0x26e07d._0x28ca98)],'type':'message','role':'assistant','content':_0x534e96,'stop_reason':this['stopReason'],'stop_sequence':null,'usage':{'input_tokens':this[_0x4f0ad1(_0x26e07d._0x50ebc1,0xd7,_0x26e07d._0x58b078,0x182)],'output_tokens':this[_0x4ef25a(_0x26e07d._0x1a3fae,0x2f,0xe1,-_0x26e07d._0x59719f)],'cache_read_input_tokens':this[_0x4ef25a(_0x26e07d._0x3de4b4,_0x26e07d._0x5a367a,0x1f4,0x2c6)],'cache_creation_input_tokens':this[_0x4ef25a(_0x26e07d._0x3237d4,_0x26e07d._0x3713b0,_0x26e07d._0x581043,0x24)]}},this[_0x4ef25a(0x263,0x26b,0x2b0,_0x26e07d._0x41b1be)]);}};function createAnthropicSurfaces(){const _0x508808={_0x4c7931:0x626,_0x35deb1:0x598,_0x4c2bf8:0x202,_0x534997:0x260,_0x1b3659:0x1bc},_0xedca8d={_0x1d4ac9:0xc,_0x4cd30d:0x18e,_0xd6357a:0x117},_0xb8d906={_0x1079ec:0xd3,_0x326bc6:0xc4};function _0x159eea(_0x22f262,_0x59806e,_0x2ea896,_0x93a8e){return _0xd1496a(_0x2ea896- -0x356,_0x59806e-_0xb8d906._0x1079ec,_0x22f262,_0x93a8e-_0xb8d906._0x326bc6);}function _0x40ec54(_0x1f0ab6,_0x3d0d38,_0x1b2b5c,_0x3522da){return _0xd1496a(_0x1b2b5c- -_0xedca8d._0x1d4ac9,_0x3d0d38-_0xedca8d._0x4cd30d,_0x3d0d38,_0x3522da-_0xedca8d._0xd6357a);}return[{'id':ANTHROPIC_MESSAGES_SURFACE,'transport':_0x40ec54(_0x508808._0x4c7931,_0x508808._0x35deb1,0x59e,0x553),'createRequest'(_0x2554a2){return createAnthropicRequest(_0x2554a2,![]);},'parseResponse'(_0x4d4524,_0x3f3d5a){return parseAnthropicResponse(_0x4d4524,_0x3f3d5a);}},{'id':ANTHROPIC_MESSAGES_STREAM_SURFACE,'transport':_0x159eea(_0x508808._0x4c2bf8,_0x508808._0x534997,_0x508808._0x1b3659,0x253),'createRequest'(_0x3a9541){return createAnthropicRequest(_0x3a9541,!![]);},'createStreamParser'(_0x579141){return new AnthropicMessagesStreamParser(_0x579141);}}];}var StaticModelSurfaceRouter=class{[_0x11bd88(0x58e,0x5b8,0x4e8,0x4b4)];[_0xd1496a(0x444,0x3e8,0x4b6,0x3e9)];constructor(_0xa27cb9){const _0x16cb7b={_0x5d27df:0x444,_0x101960:0x4d4,_0x259474:0x45d,_0x475018:0xb0,_0x5380bc:0x38a,_0x2bf969:0x52a,_0x4beb99:0x44a},_0x3f9913={_0x511027:0x31},_0x176e2f={_0x2bac16:0x1dd};function _0x2d67e8(_0x40c0e3,_0x5ccaa6,_0x30bdd7,_0x25a96e){return _0xd1496a(_0x5ccaa6- -0x4d8,_0x5ccaa6-_0x176e2f._0x2bac16,_0x25a96e,_0x25a96e-0x6b);}function _0x35d68b(_0x5e2162,_0x19f71e,_0x3501a1,_0x2172bd){return _0x11bd88(_0x2172bd- -0x12d,_0x19f71e,_0x3501a1-_0x3f9913._0x511027,_0x2172bd-0x4b);}this[_0x35d68b(_0x16cb7b._0x5d27df,_0x16cb7b._0x101960,0x482,0x461)]=_0xa27cb9[_0x35d68b(0x4c9,0x39f,0x42c,_0x16cb7b._0x259474)],this[_0x2d67e8(0x33,-0x94,-_0x16cb7b._0x475018,-0x53)]=_0xa27cb9[_0x35d68b(_0x16cb7b._0x5380bc,_0x16cb7b._0x2bf969,0x472,_0x16cb7b._0x4beb99)];}[_0xd1496a(0x50d,0x5a0,0x428,0x54b)](_0x32a8a9,_0x1c5035){const _0x120e48={_0x466cf9:0x2c1,_0x42c795:0x31d,_0x33367f:0x191,_0x367e33:0x1f7,_0x495b57:0x119,_0x354990:0x5d,_0x55df71:0x14},_0x513ec8={_0x25e790:0x120,_0x42192a:0x122};function _0x1f371f(_0x528bf7,_0x11e4b3,_0x118d7d,_0x28d367){return _0xd1496a(_0x28d367- -0x32b,_0x11e4b3-0x13b,_0x528bf7,_0x28d367-0x14b);}function _0x2cdeef(_0x4d5e46,_0x3b72b4,_0x526070,_0x133a49){return _0xd1496a(_0x526070- -0x5a2,_0x3b72b4-_0x513ec8._0x25e790,_0x3b72b4,_0x133a49-_0x513ec8._0x42192a);}return _0x1c5035[_0x2cdeef(-0xde,-0x56,-0x7e,0x0)]===_0x1f371f(_0x120e48._0x466cf9,_0x120e48._0x42c795,0x245,0x2c1)?this[_0x1f371f(0x79,_0x120e48._0x33367f,_0x120e48._0x367e33,_0x120e48._0x495b57)]:this[_0x2cdeef(0x59,-_0x120e48._0x354990,0x61,_0x120e48._0x55df71)];}};function trimTrailingSlashes(_0xb831fd){return _0xb831fd['replace'](/\/+$/,'');}function resolveApiCredential(_0xef8d53,_0x30063d){const _0x1e8d50={_0x389928:0x48f,_0x33d401:0x3eb,_0x1ca88c:0x532,_0x54b5db:0x54f,_0x4fea5c:0x48b,_0x3897aa:0x44d,_0x3692b6:0x196,_0x2e4054:0x5},_0x418efe={_0x1b5cc0:0x6c3,_0xfe5f7c:0x158},_0x118d3f={_0x66732f:0x56,_0x441606:0x6e};if(_0x30063d?.[_0xcfb944(_0x1e8d50._0x389928,_0x1e8d50._0x33d401,0x48b,_0x1e8d50._0x1ca88c)])return _0x30063d[_0xcfb944(0x3dc,_0x1e8d50._0x54b5db,_0x1e8d50._0x4fea5c,_0x1e8d50._0x3897aa)];function _0xcfb944(_0x297205,_0x578ad9,_0x42dc90,_0x2bbff2){return _0x11bd88(_0x42dc90-_0x118d3f._0x66732f,_0x297205,_0x42dc90-0x73,_0x2bbff2-_0x118d3f._0x441606);}if(!_0xef8d53)return void 0x0;function _0x4afa5e(_0xa51035,_0x43c38f,_0x447e49,_0x4e7755){return _0xd1496a(_0xa51035- -_0x418efe._0x1b5cc0,_0x43c38f-0x170,_0x43c38f,_0x4e7755-_0x418efe._0xfe5f7c);}return{'kind':_0x4afa5e(-0xca,-_0x1e8d50._0x3692b6,-0x12c,_0x1e8d50._0x2e4054),'value':_0xef8d53};}function resolveSessionBaseUrl(_0x453829,_0xfdaa6c){const _0x47f33f={_0x11f286:0x557,_0x481179:0xb7,_0x565315:0xd9},_0x202bba={_0x335040:0xa1,_0xd4eef4:0x1f2,_0xae25d5:0x17a},_0x5f2b21={_0x249d9c:0x523,_0x31abb6:0x1ad};function _0x1f673b(_0x4bcc8e,_0x478336,_0x4634e4,_0x5e6610){return _0x11bd88(_0x5e6610- -_0x5f2b21._0x249d9c,_0x478336,_0x4634e4-_0x5f2b21._0x31abb6,_0x5e6610-0x1c3);}function _0x5563ae(_0x3b95a6,_0x334456,_0x90fc9,_0x19f59f){return _0xd1496a(_0x3b95a6-_0x202bba._0x335040,_0x334456-_0x202bba._0xd4eef4,_0x90fc9,_0x19f59f-_0x202bba._0xae25d5);}return trimTrailingSlashes(_0xfdaa6c?.[_0x5563ae(_0x47f33f._0x11f286,0x4e2,0x5ff,0x4f7)]?.[_0x1f673b(-_0x47f33f._0x481179,0xe,0xc,-_0x47f33f._0x565315)]??_0x453829);}var model_registry_default={'defaultMaxTokens':0x4000,'defaultModel':_0xd1496a(0x4f5,0x4d3,0x55a,0x4e4),'cliDefaultModel':_0xd1496a(0x594,0x557,0x585,0x51c),'providers':{'anthropic':{'label':'Anthropic','baseUrl':_0xd1496a(0x4b9,0x4b3,0x5a1,0x41d),'surface':_0x11bd88(0x40b,0x45f,0x447,0x464),'authScheme':_0xd1496a(0x4a0,0x4d0,0x550,0x575),'defaultModel':_0x11bd88(0x40e,0x336,0x4d4,0x330),'defaultModels':['claude-sonnet-4-20250514',_0x11bd88(0x494,0x564,0x3fa,0x56b)],'supportsModelFetch':![],'models':{'claude-sonnet-4-20250514':{'contextWindow':0x30d40,'maxOutput':0x3e80},'claude-3-5-sonnet-20241022':{'contextWindow':0x30d40,'maxOutput':0x2000}}},'zai':{'label':_0x11bd88(0x4ba,0x555,0x4e2,0x45f),'baseUrl':_0xd1496a(0x5cd,0x67d,0x567,0x63c),'anthropicBaseUrl':_0xd1496a(0x5a7,0x5a8,0x543,0x584),'surface':'anthropic-messages','authScheme':'bearer','defaultModel':_0xd1496a(0x594,0x4ec,0x5f2,0x648),'defaultModels':['glm-5.2',_0x11bd88(0x443,0x495,0x373,0x3f3),_0x11bd88(0x51f,0x462,0x476,0x446),_0xd1496a(0x593,0x5ef,0x672,0x59e),'glm-4.5'],'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':_0x11bd88(0x561,0x5cb,0x5c6,0x54b),'baseUrl':'https://openrouter.ai/api/v1','surface':'openai-chat-completions','authScheme':_0x11bd88(0x4a5,0x484,0x532,0x53e),'defaultModel':_0xd1496a(0x51c,0x606,0x5a4,0x583),'defaultModels':[_0x11bd88(0x4a7,0x43f,0x50e,0x48e),_0x11bd88(0x41e,0x4c2,0x400,0x3a8)],'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':_0xd1496a(0x505,0x4fd,0x549,0x48d),'surface':_0x11bd88(0x41b,0x3b4,0x393,0x43f),'defaultModel':_0xd1496a(0x4c1,0x4b7,0x52f,0x496),'defaultModels':[_0xd1496a(0x499,0x539,0x54c,0x3f5),_0xd1496a(0x44c,0x4a1,0x3b9,0x38d),'gpt-5',_0xd1496a(0x5e5,0x631,0x626,0x570),'grok-code-fast-1',_0x11bd88(0x56e,0x5f4,0x567,0x4a0)],'supportsModelFetch':!![],'models':{'claude-sonnet-4.5':{'contextWindow':0x30d40,'maxOutput':0x3e80,'surface':_0x11bd88(0x40b,0x4eb,0x47e,0x4ca)},'claude-sonnet-4':{'contextWindow':0x30d40,'maxOutput':0x3e80,'surface':_0xd1496a(0x480,0x4b7,0x49d,0x4d6)},'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':_0xd1496a(0x477,0x482,0x4ea,0x531),'baseUrl':_0xd1496a(0x588,0x634,0x53f,0x561),'surface':_0xd1496a(0x538,0x4c7,0x4ac,0x4f8),'authScheme':_0x11bd88(0x4a5,0x425,0x409,0x4ee),'defaultModel':'gpt-4o','defaultModels':[],'supportsModelFetch':![],'models':{}},'deepseek':{'label':_0xd1496a(0x5e4,0x54d,0x571,0x5b5),'baseUrl':'https://api.deepseek.com/anthropic','surface':'anthropic-messages','authScheme':_0x11bd88(0x4a5,0x535,0x46e,0x41e),'defaultModel':_0x11bd88(0x55c,0x57b,0x471,0x4b7),'defaultModels':[_0x11bd88(0x55c,0x5e7,0x49c,0x5be),'deepseek-v4-flash'],'supportsModelFetch':![],'models':{'deepseek-v4-pro':{'contextWindow':0xf4240,'maxOutput':0x5dc00},'deepseek-v4-flash':{'contextWindow':0xf4240,'maxOutput':0x5dc00}}},'minimax':{'label':_0x11bd88(0x423,0x49b,0x417,0x482),'baseUrl':_0x11bd88(0x46e,0x3fb,0x3d1,0x51d),'surface':_0x11bd88(0x40b,0x33c,0x3eb,0x3d6),'authScheme':_0x11bd88(0x4a5,0x499,0x4b3,0x549),'defaultModel':_0xd1496a(0x5f5,0x614,0x601,0x59d),'defaultModels':[_0xd1496a(0x5f5,0x678,0x61b,0x5d4)],'supportsModelFetch':![],'models':{'MiniMax-M3':{'contextWindow':0xf4240,'maxOutput':0x7d000},'MiniMax-M2.7':{'contextWindow':0x32000,'maxOutput':0x7d00}}},'commandcode':{'label':_0x11bd88(0x52d,0x529,0x4ec,0x449),'baseUrl':'https://api.commandcode.ai/provider','modelsBaseUrl':'https://api.commandcode.ai/provider/v1','surface':_0xd1496a(0x480,0x3ce,0x48b,0x487),'authScheme':_0xd1496a(0x4a0,0x4a7,0x45b,0x489),'defaultModel':_0xd1496a(0x483,0x542,0x4f0,0x477),'defaultModels':[],'supportsModelFetch':!![],'models':{}},'xiaomi':{'label':'Xiaomi','baseUrl':_0x11bd88(0x4cb,0x578,0x581,0x548),'modelsBaseUrl':_0xd1496a(0x458,0x4bc,0x525,0x3d8),'surface':_0xd1496a(0x480,0x4ef,0x3d4,0x4b1),'authScheme':_0x11bd88(0x42b,0x499,0x495,0x43f),'defaultModel':_0xd1496a(0x531,0x5a5,0x513,0x476),'defaultModels':[],'supportsModelFetch':!![],'models':{}}}},data=model_registry_default;function findProviderKey(_0x217919){const _0x35b31a={_0x33664f:0x1b5,_0xdf8379:0x16c,_0x45a5f7:0x4fc,_0xb2fcdb:0x53a,_0x92b695:0x466},_0x4242fd={_0x3af8d3:0x339,_0x4f0a1e:0x67,_0x1fa41f:0x1f2},_0x447e35={_0x13217c:0x1be,_0x2903f3:0x1c4};function _0x3418ae(_0x39b970,_0x409d09,_0x364644,_0x1fabec){return _0x11bd88(_0x39b970- -0x3c,_0x409d09,_0x364644-_0x447e35._0x13217c,_0x1fabec-_0x447e35._0x2903f3);}function _0x3e4beb(_0x38cc01,_0x57b385,_0x20bc08,_0x319ab5){return _0x11bd88(_0x20bc08- -_0x4242fd._0x3af8d3,_0x57b385,_0x20bc08-_0x4242fd._0x4f0a1e,_0x319ab5-_0x4242fd._0x1fa41f);}const _0x116f2a=_0x217919[_0x3e4beb(_0x35b31a._0x33664f,0x27b,0x1b3,_0x35b31a._0xdf8379)]();return Object[_0x3418ae(0x4fe,_0x35b31a._0x45a5f7,0x5ce,0x521)](data[_0x3418ae(0x530,_0x35b31a._0xb2fcdb,0x5f8,_0x35b31a._0x92b695)])['find'](_0xdd6523=>_0xdd6523[_0x3418ae(0x4b0,0x510,0x554,0x456)]()===_0x116f2a);}function getProviderProfile(_0x448261){const _0x4cc427={_0x596210:0x158,_0x4f2044:0xda,_0x37dae4:0x18a,_0x2321a5:0xf4,_0x41b013:0x1a7,_0x44dadf:0x252,_0x488c67:0x25e,_0x76b1d3:0x209,_0x1ba4c4:0x12f,_0x388c0f:0xb9,_0x2b5cc9:0x130,_0x31a1dc:0x188,_0x1c55a4:0x8c,_0x534026:0x160,_0x16d9fc:0xe0,_0x491345:0x171,_0x101db2:0x9e,_0x39fe67:0xe3,_0x41597c:0x252,_0x13116d:0x193},_0x37b3b3={_0x332c12:0x66,_0x3edb3c:0x1e2},_0x549980={_0x53167a:0x378,_0xc83fcb:0x19c,_0x5e82f2:0x97};function _0x330906(_0x3d1581,_0x516042,_0x5f4852,_0x2973ff){return _0x11bd88(_0x5f4852- -_0x549980._0x53167a,_0x2973ff,_0x5f4852-_0x549980._0xc83fcb,_0x2973ff-_0x549980._0x5e82f2);}const _0x139f16=findProviderKey(_0x448261);function _0x119aae(_0x35b53b,_0x3df5f5,_0x245a0a,_0x385fe5){return _0xd1496a(_0x245a0a- -0x662,_0x3df5f5-_0x37b3b3._0x332c12,_0x35b53b,_0x385fe5-_0x37b3b3._0x3edb3c);}if(!_0x139f16)return void 0x0;const _0x2f5d1c=data[_0x119aae(-_0x4cc427._0x596210,-0xa4,-0x81,-0x13b)][_0x139f16],_0x2fb860={};for(const [_0x524b1b,_0x5c80f6]of Object[_0x330906(0x194,_0x4cc427._0x4f2044,0xe0,0xa1)](_0x2f5d1c[_0x119aae(-0xd2,-0x26a,-_0x4cc427._0x37dae4,-0x13a)])){_0x2fb860[_0x524b1b]=_0x5c80f6;}return{'label':_0x2f5d1c[_0x119aae(-_0x4cc427._0x2321a5,-0x162,-_0x4cc427._0x41b013,-_0x4cc427._0x44dadf)],'baseUrl':_0x2f5d1c['baseUrl'],'modelsBaseUrl':_0x2f5d1c[_0x330906(_0x4cc427._0x488c67,0x1b0,_0x4cc427._0x76b1d3,_0x4cc427._0x1ba4c4)],'anthropicBaseUrl':_0x2f5d1c[_0x330906(_0x4cc427._0x388c0f,_0x4cc427._0x2b5cc9,_0x4cc427._0x31a1dc,0x232)],'surface':_0x2f5d1c[_0x330906(0x1f,0x10f,_0x4cc427._0x1c55a4,0x57)],'authScheme':_0x2f5d1c[_0x119aae(-0xe8,-_0x4cc427._0x534026,-_0x4cc427._0x16d9fc,-0x88)],'defaultModel':_0x2f5d1c[_0x119aae(-0x16b,-_0x4cc427._0x491345,-_0x4cc427._0x101db2,-0x62)],'defaultModels':_0x2f5d1c[_0x330906(_0x4cc427._0x39fe67,_0x4cc427._0x41597c,_0x4cc427._0x13116d,0x23f)]??[],'supportsModelFetch':_0x2f5d1c['supportsModelFetch']??![],'models':_0x2fb860};}function getModelProfile(_0x520fec,_0x59a326){const _0xe8aafe={_0x5edba3:0x1b8,_0x4ab590:0x286,_0xff3b3e:0x2ee,_0x1a23f1:0x306},_0x42927c={_0x2d8260:0x252};function _0x1543f7(_0x288142,_0xf63710,_0xcfdb16,_0xf364a1){return _0xd1496a(_0xf63710- -_0x42927c._0x2d8260,_0xf63710-0x18a,_0xcfdb16,_0xf364a1-0x47);}const _0x19b643=findProviderKey(_0x520fec);if(!_0x19b643)return void 0x0;return data['providers'][_0x19b643][_0x1543f7(_0xe8aafe._0x5edba3,_0xe8aafe._0x4ab590,_0xe8aafe._0xff3b3e,_0xe8aafe._0x1a23f1)][_0x59a326];}function resolveModelProfile(_0x1790c6,_0x274ecf){const _0x29031c={_0x493f50:0x14d,_0x597dc4:0xaf,_0x21ff00:0x17c,_0x140cc1:0x146,_0x424fe:0xbd,_0x200b97:0x21e,_0x474b7b:0x199,_0x2652bf:0x93,_0x5274ac:0x111,_0x144b8a:0x159,_0x470ec9:0x1b2,_0x4ac524:0x1e3,_0x2d920b:0x1a1,_0x485394:0x112,_0x4ed999:0x1fc},_0x23d7d0={_0x190f8e:0x332};function _0x27f661(_0x111e37,_0x258e3d,_0x4e642e,_0x408fd2){return _0x11bd88(_0x258e3d- -_0x23d7d0._0x190f8e,_0x408fd2,_0x4e642e-0xe4,_0x408fd2-0x129);}const _0x3dde7a=findProviderKey(_0x1790c6);if(!_0x3dde7a)return void 0x0;const _0xdb0c94=data[_0x5722ab(0x191,0x151,_0x29031c._0x493f50,0x1ab)][_0x3dde7a];function _0x5722ab(_0x1c0963,_0x162035,_0x41ba48,_0x2c65d0){return _0xd1496a(_0x162035- -0x490,_0x162035-0x114,_0x41ba48,_0x2c65d0-0x143);}const _0x5ecf4f=_0xdb0c94['models'][_0x274ecf];return{'label':_0xdb0c94[_0x5722ab(0xb5,0x2b,0xa5,_0x29031c._0x597dc4)],'baseUrl':_0xdb0c94[_0x27f661(_0x29031c._0x21ff00,_0x29031c._0x140cc1,_0x29031c._0x424fe,0x17b)],'modelsBaseUrl':_0xdb0c94['modelsBaseUrl'],'anthropicBaseUrl':_0xdb0c94[_0x27f661(0x13f,0x1ce,_0x29031c._0x200b97,_0x29031c._0x474b7b)],'surface':_0x5ecf4f?.['surface']??_0xdb0c94[_0x27f661(_0x29031c._0x2652bf,0xd2,0xf6,_0x29031c._0x5274ac)],'authScheme':_0xdb0c94[_0x5722ab(0x16b,0xf2,_0x29031c._0x144b8a,_0x29031c._0x470ec9)],'defaultModel':_0xdb0c94[_0x27f661(0x19f,0x21d,_0x29031c._0x4ac524,0x2b5)],'defaultModels':_0xdb0c94[_0x27f661(0x168,0x1d9,0x22d,0x261)],'supportsModelFetch':_0xdb0c94[_0x27f661(_0x29031c._0x2d920b,0x17f,_0x29031c._0x485394,_0x29031c._0x4ed999)],'contextWindow':_0x5ecf4f?.['contextWindow'],'maxOutput':_0x5ecf4f?.['maxOutput']};}function getDefaultMaxTokens(){return data['defaultMaxTokens'];}function getDefaultModel(){const _0x30d82e={_0x5dec9d:0x2c0,_0x292ab8:0x28d,_0x7972d8:0x20d};function _0x500110(_0x2d07c9,_0x1ed085,_0x4c700a,_0x4d84f2){return _0xd1496a(_0x4d84f2- -0x3b7,_0x1ed085-0xf9,_0x4c700a,_0x4d84f2-0xe9);}return data[_0x500110(_0x30d82e._0x5dec9d,_0x30d82e._0x292ab8,0x15a,_0x30d82e._0x7972d8)];}function getCliDefaultModel(){const _0x2ae0aa={_0x41d9d1:0x13b,_0x7d36a8:0x96},_0x29253a={_0x34874d:0x165,_0x534c92:0x1a6};function _0x2aa63b(_0x5ee5d1,_0x39fc35,_0x138daa,_0x41daf0){return _0xd1496a(_0x41daf0- -0x55c,_0x39fc35-_0x29253a._0x34874d,_0x138daa,_0x41daf0-_0x29253a._0x534c92);}return data[_0x2aa63b(-_0x2ae0aa._0x41d9d1,-0x155,-0xf8,-_0x2ae0aa._0x7d36a8)];}function getProviderLabel(_0x3e3723){const _0x77822f={_0x163a24:0x685,_0x5c33f8:0x69},_0x1eb7e0=findProviderKey(_0x3e3723);function _0x43f477(_0x48e67c,_0x13f6ca,_0x4a58a4,_0x19f6f9){return _0x11bd88(_0x48e67c- -_0x77822f._0x163a24,_0x13f6ca,_0x4a58a4-_0x77822f._0x5c33f8,_0x19f6f9-0xda);}return _0x1eb7e0?data['providers'][_0x1eb7e0][_0x43f477(-0x23f,-0x25c,-0x1e1,-0x1f4)]:void 0x0;}function getProviderDefaultModel(_0x583b75){const _0x3dd92d={_0x3a69ed:0x308,_0x1deff7:0x37c,_0x508fbc:0x274,_0x133d1d:0x2b9},_0x5b6b24={_0x162998:0x30f,_0x590b72:0x61},_0x43da9d=findProviderKey(_0x583b75);function _0x20f132(_0x148092,_0x23472e,_0x1a5e47,_0x52bb07){return _0xd1496a(_0x1a5e47- -_0x5b6b24._0x162998,_0x23472e-0x13,_0x52bb07,_0x52bb07-_0x5b6b24._0x590b72);}function _0x141748(_0x2b38df,_0xc7f104,_0x9b05db,_0x1bc878){return _0x11bd88(_0x2b38df- -0x2ba,_0x9b05db,_0x9b05db-0x1d,_0x1bc878-0x122);}if(!_0x43da9d)return void 0x0;return data[_0x20f132(_0x3dd92d._0x3a69ed,_0x3dd92d._0x1deff7,0x2d2,0x214)][_0x43da9d][_0x141748(0x295,_0x3dd92d._0x508fbc,0x36d,_0x3dd92d._0x133d1d)];}function getProviderDefaultModels(_0x5812df){const _0x515482={_0x42c3bc:0x81,_0x5867f1:0xf2};function _0x48bc71(_0x284e3d,_0x32ca57,_0x56ea99,_0x38561f){return _0x11bd88(_0x32ca57- -0x4b3,_0x56ea99,_0x56ea99-0x19f,_0x38561f-0x9c);}const _0xd809aa=findProviderKey(_0x5812df);if(!_0xd809aa)return[];return[...data['providers'][_0xd809aa][_0x48bc71(_0x515482._0x42c3bc,0x58,_0x515482._0x5867f1,-0xc)]??[]];}function providerSupportsModelFetch(_0x55bdcb){const _0x3daca8={_0xe90303:0x481,_0x3d66b3:0x552,_0x143064:0x3f4,_0x463dfb:0x4b3},_0x5cd94e={_0x5ae4b9:0x160};function _0x590da7(_0x10506c,_0x32884c,_0x7d14eb,_0x225467){return _0x11bd88(_0x225467- -0x16,_0x32884c,_0x7d14eb-0x2a,_0x225467-0xae);}function _0x546996(_0x4054a9,_0x530250,_0x289501,_0x5afee0){return _0xd1496a(_0x4054a9- -_0x5cd94e._0x5ae4b9,_0x530250-0x38,_0x289501,_0x5afee0-0x1e0);}const _0x3f845a=findProviderKey(_0x55bdcb);if(!_0x3f845a)return![];return data[_0x546996(_0x3daca8._0xe90303,0x486,0x506,_0x3daca8._0x3d66b3)][_0x3f845a][_0x590da7(_0x3daca8._0x143064,_0x3daca8._0x463dfb,0x3b3,0x49b)]??![];}function _0x4abb(_0x108ef8,_0x332db8){_0x108ef8=_0x108ef8-0x11b;const _0x448304=_0x4483();let _0x4abbe7=_0x448304[_0x108ef8];if(_0x4abb['IfGsdC']===undefined){var _0x5eeb8f=function(_0x6e006e){const _0xd117a4='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4881e8='',_0x4eb608='';for(let _0x3f5b9b=0x0,_0x5b8384,_0x5a84a0,_0x39b5ba=0x0;_0x5a84a0=_0x6e006e['charAt'](_0x39b5ba++);~_0x5a84a0&&(_0x5b8384=_0x3f5b9b%0x4?_0x5b8384*0x40+_0x5a84a0:_0x5a84a0,_0x3f5b9b++%0x4)?_0x4881e8+=String['fromCharCode'](0xff&_0x5b8384>>(-0x2*_0x3f5b9b&0x6)):0x0){_0x5a84a0=_0xd117a4['indexOf'](_0x5a84a0);}for(let _0x46c8d7=0x0,_0x4efdd3=_0x4881e8['length'];_0x46c8d7<_0x4efdd3;_0x46c8d7++){_0x4eb608+='%'+('00'+_0x4881e8['charCodeAt'](_0x46c8d7)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4eb608);};_0x4abb['mrGasa']=_0x5eeb8f,_0x4abb['zCmMWt']={},_0x4abb['IfGsdC']=!![];}const _0x133ba6=_0x448304[0x0],_0x31d7e5=_0x108ef8+_0x133ba6,_0x58a94b=_0x4abb['zCmMWt'][_0x31d7e5];return!_0x58a94b?(_0x4abbe7=_0x4abb['mrGasa'](_0x4abbe7),_0x4abb['zCmMWt'][_0x31d7e5]=_0x4abbe7):_0x4abbe7=_0x58a94b,_0x4abbe7;}function getOnboardingProviderKeys(){const _0xb2ad6a={_0x29ff90:0x5de,_0x493146:0x5aa,_0xdf6061:0x52f,_0x1d5dfd:0x414,_0x504a5b:0x50e,_0x22d255:0x502},_0x2b0438={_0x4dec2c:0x6d,_0x579b64:0x18f},_0xc0c8e7={_0x49b111:0x1ee};function _0xdd8cc3(_0x503d1e,_0xeb3727,_0x287ad8,_0x23e261){return _0x11bd88(_0x503d1e-0xa4,_0x287ad8,_0x287ad8-0xfc,_0x23e261-_0xc0c8e7._0x49b111);}function _0x8de8ff(_0x5cdab8,_0x4484a3,_0x522480,_0xc0edf6){return _0x11bd88(_0x4484a3- -_0x2b0438._0x4dec2c,_0x522480,_0x522480-_0x2b0438._0x579b64,_0xc0edf6-0x19b);}return Object[_0xdd8cc3(_0xb2ad6a._0x29ff90,_0xb2ad6a._0x493146,0x643,_0xb2ad6a._0xdf6061)](data[_0x8de8ff(_0xb2ad6a._0x1d5dfd,0x4ff,_0xb2ad6a._0x504a5b,_0xb2ad6a._0x22d255)]);}function toErrorMessage(_0x1ca967){const _0x61df71={_0x44dce6:0x1f,_0x54d64f:0x6c,_0x4ddd16:0x102},_0xb8f2d={_0x5153ad:0xd8},_0x3b6866={_0x2426f0:0x1de};if(_0x1ca967 instanceof Error&&_0x1ca967[_0x2daa0f(-0xda,-0x74,0x3b,-0x10c)][_0x5073d4(-0xac,_0x61df71._0x44dce6,0x5e,_0x61df71._0x54d64f)]>0x0)return _0x1ca967[_0x5073d4(0x13c,0x115,0x46,_0x61df71._0x4ddd16)];function _0x5073d4(_0x3d952a,_0x39faea,_0x3ef0d6,_0x51a6fb){return _0xd1496a(_0x39faea- -0x485,_0x39faea-0xc,_0x3d952a,_0x51a6fb-_0x3b6866._0x2426f0);}function _0x2daa0f(_0x175d4b,_0x7a94fe,_0xcee11d,_0x1e0efb){return _0xd1496a(_0x7a94fe- -0x60e,_0x7a94fe-0xba,_0x1e0efb,_0x1e0efb-_0xb8f2d._0x5153ad);}return'WebSocket\x20request\x20failed';}function createDefaultWebSocketFactory(){const _0x2887a8={_0x14a84f:0x5cd,_0x179fbe:0x5c5,_0x35b532:0x4e4};return({headers:_0x2d643a,url:_0xf566d7})=>{function _0xd55bfb(_0x5860ff,_0x2d1d09,_0x1702c5,_0xf2b4a7){return _0x4abb(_0xf2b4a7-0x2e6,_0x1702c5);}const _0x44c968=globalThis[_0xd55bfb(_0x2887a8._0x14a84f,_0x2887a8._0x179fbe,0x42f,_0x2887a8._0x35b532)];return new _0x44c968(_0xf566d7,{'headers':_0x2d643a,'protocols':[]});};}async function*iterateSseEvents(_0x142358,_0x129788){const _0x1a2546={_0x54c42d:0x62,_0x5d846f:0x83,_0x35bffe:0x48,_0x3cc5a0:0x1d,_0x504822:0x112,_0x46edff:0xdc,_0xc61bb:0x58,_0x2d6c05:0x162,_0x19d9f:0x113,_0x14622a:0x1,_0x5badbc:0x64,_0x3ef3c0:0x36,_0x457af0:0xe,_0x90361a:0x9f,_0x2ecf6d:0x19b,_0x119989:0xd,_0x2a3331:0x60,_0xb8159:0xb,_0x6432d4:0x43,_0x4b1f83:0x2e},_0x540e5c={_0x4748aa:0x166},_0x41b3c3={_0x1da150:0x10b,_0x2acf39:0xe6,_0x3d5f36:0x1b3},_0x42b20f={_0x504e9c:0x421,_0x3856d9:0x1bf},_0x385a86=_0x142358[_0x1320a5(_0x1a2546._0x54c42d,0xd,0x119,0xee)]?.[_0x1320a5(0x42,0x117,-_0x1a2546._0x5d846f,0x2a)]();function _0x12e82e(_0x5db185,_0x464ea3,_0x16da2a,_0x1c721e){return _0x11bd88(_0x464ea3- -_0x42b20f._0x504e9c,_0x16da2a,_0x16da2a-0x18f,_0x1c721e-_0x42b20f._0x3856d9);}if(!_0x385a86)return;function _0x1320a5(_0x5ec00a,_0x3088e6,_0x525f99,_0x51b4f3){return _0xd1496a(_0x5ec00a- -0x4af,_0x3088e6-0xd2,_0x51b4f3,_0x51b4f3-0x12e);}const _0x41d953=new TextDecoder(_0x1320a5(0xba,0x141,_0x1a2546._0x35bffe,_0x1a2546._0x3cc5a0));let _0x205744='';const _0x173350=addAbortListener(_0x129788,()=>{function _0x46bbbd(_0x3f8315,_0x4fa442,_0x37eb76,_0x3efc70){return _0x12e82e(_0x3f8315-0x197,_0x4fa442-0x79,_0x3f8315,_0x3efc70-0x62);}function _0x36bbc5(_0x4600d6,_0xa9ca2e,_0x12ab98,_0x3ae46b){return _0x12e82e(_0x4600d6-_0x41b3c3._0x1da150,_0xa9ca2e-_0x41b3c3._0x2acf39,_0x4600d6,_0x3ae46b-_0x41b3c3._0x3d5f36);}void _0x385a86[_0x46bbbd(_0x540e5c._0x4748aa,0x167,0x229,0xe1)](toAbortError(_0x129788?.['reason']))[_0x46bbbd(0x20,0xcb,0x11c,0x45)](()=>{});});try{while(!![]){throwIfAborted(_0x129788);const {value:_0x43d330,done:_0x5d47f2}=await _0x385a86[_0x1320a5(_0x1a2546._0x504822,_0x1a2546._0x46edff,_0x1a2546._0xc61bb,0x175)]();throwIfAborted(_0x129788);if(_0x5d47f2)break;_0x205744+=_0x41d953[_0x12e82e(_0x1a2546._0x2d6c05,0x142,_0x1a2546._0x19d9f,0x78)](_0x43d330,{'stream':!![]});while(!![]){const _0x34ad81=_0x205744['indexOf']('\x0a\x0a');if(_0x34ad81===-0x1)break;const _0x19d634=_0x205744[_0x12e82e(-0xb2,-_0x1a2546._0x14622a,_0x1a2546._0x5badbc,0x49)](0x0,_0x34ad81);_0x205744=_0x205744[_0x12e82e(0xc2,-_0x1a2546._0x14622a,0x65,-_0x1a2546._0x3ef3c0)](_0x34ad81+0x2),_0x19d634['trim']()[_0x12e82e(0x95,_0x1a2546._0x457af0,-0x47,0xb4)]>0x0&&(yield _0x19d634);}}_0x205744+=_0x41d953[_0x1320a5(0x129,0x174,_0x1a2546._0x90361a,_0x1a2546._0x2ecf6d)](),throwIfAborted(_0x129788),_0x205744[_0x12e82e(0xa9,_0x1a2546._0x119989,0x60,_0x1a2546._0x2a3331)]()[_0x1320a5(-_0x1a2546._0xb8159,0x99,_0x1a2546._0x6432d4,_0x1a2546._0x4b1f83)]>0x0&&(yield _0x205744);}finally{_0x173350();}}async function waitForWebSocketOpen(_0x5a6c1f,_0xec5fb9){const _0x555337={_0x471a82:0x1d9,_0x572246:0x155,_0x2b2aaa:0x1cd},_0x3859b4={_0x5e2116:0x3fd,_0x5b00fd:0x228,_0x29c725:0x205,_0x2224ff:0x24a,_0x95be6:0x3e5,_0x353cfc:0xd9,_0x5968d0:0x434,_0x2cc4f1:0x3fd,_0x481753:0x437,_0x3fda99:0x32a,_0x3a33b3:0x3af},_0x290520={_0x572bb7:0x258,_0x2de3d4:0x2e9,_0x1396bb:0x3c8,_0x5446cd:0x4b1,_0x302863:0x551},_0x400d31={_0x3e2919:0x211,_0x2fb0d0:0x636,_0x50aa57:0x5ae,_0xab1152:0x58f},_0x50cbe3={_0x29abfd:0x17f,_0x2363b2:0xc2,_0x42db5e:0x434},_0x15dcbd={_0x33c1d9:0x5b4,_0x45e1bf:0x1de};if(_0x5a6c1f['readyState']===WebSocket[_0x29ca31(-_0x555337._0x471a82,-0xfa,-_0x555337._0x572246,-_0x555337._0x2b2aaa)]){throwIfAborted(_0xec5fb9);return;}function _0x29ca31(_0x2faf97,_0x413cad,_0x30f131,_0x740ec6){return _0x11bd88(_0x30f131- -_0x15dcbd._0x33c1d9,_0x740ec6,_0x30f131-0xf,_0x740ec6-_0x15dcbd._0x45e1bf);}throwIfAborted(_0xec5fb9),await new Promise((_0x1dd2d3,_0x4dbafe)=>{const _0x4be8d7={_0x283ef8:0x31d},_0x2483cd={_0x8a953a:0x1d7,_0x4593bd:0x173,_0x50183a:0x18f,_0x3197a7:0x17a,_0x5ded84:0x165,_0x3318cb:0xcc,_0x50c794:0x1f3},_0x40e5c5={_0x2f8fcc:0x336};function _0x28f1fd(_0x7aa040,_0x4771b7,_0x3efb35,_0x10badb){return _0x29ca31(_0x7aa040-0x80,_0x4771b7-0x18,_0x10badb-_0x40e5c5._0x2f8fcc,_0x7aa040);}function _0x3f2978(_0x56769b,_0x4b3346,_0x186e3f,_0x2bbda9){return _0x29ca31(_0x56769b-_0x50cbe3._0x29abfd,_0x4b3346-_0x50cbe3._0x2363b2,_0x186e3f-_0x50cbe3._0x42db5e,_0x4b3346);}const _0x570c7d=()=>{_0x50d403(),_0x1dd2d3();},_0x44a0a4=_0x2f1d64=>{const _0x5025a9={_0x35cd64:0x4d};function _0x4f19ef(_0x559183,_0x14b850,_0x534512,_0x23558d){return _0x4abb(_0x14b850-0x328,_0x23558d);}function _0x426d9e(_0x5cdbdd,_0x2152c6,_0x2d619a,_0x18c2b4){return _0x4abb(_0x18c2b4-_0x5025a9._0x35cd64,_0x2d619a);}_0x50d403(),_0x4dbafe(new Error(_0x2f1d64[_0x426d9e(0x34f,_0x400d31._0x3e2919,0x2ea,0x2c7)]||_0x4f19ef(_0x400d31._0x2fb0d0,_0x400d31._0x50aa57,0x5f5,_0x400d31._0xab1152)));},_0x589764=_0x3653fb=>{_0x50d403();const _0x3219e2=_0x3653fb;_0x4dbafe(new Error(_0x3219e2['reason']||'WebSocket\x20closed\x20before\x20opening'));},_0x247e60=()=>{const _0x42a9df={_0x1b69c4:0xd6};function _0x18e665(_0x258900,_0x168136,_0xe54d4c,_0x2d30b8){return _0x4abb(_0xe54d4c- -_0x42a9df._0x1b69c4,_0x2d30b8);}function _0x6e72fd(_0x33ea8e,_0x30f2e5,_0x4e88e0,_0x19d3f1){return _0x4abb(_0x4e88e0- -0x141,_0x33ea8e);}_0x50d403(),_0x5a6c1f[_0x18e665(_0x2483cd._0x8a953a,_0x2483cd._0x4593bd,0x152,0x8b)]===WebSocket['OPEN']&&_0x5a6c1f[_0x18e665(_0x2483cd._0x50183a,0x185,0x184,0xb1)](0x3e8,_0x6e72fd(_0x2483cd._0x3197a7,_0x2483cd._0x5ded84,0x12b,0x14b)),_0x4dbafe(toAbortError(_0xec5fb9?.[_0x6e72fd(0x32,_0x2483cd._0x3318cb,0x10d,_0x2483cd._0x50c794)]));},_0x50d403=()=>{_0x5a6c1f['removeEventListener']('open',_0x570c7d);function _0x1a51d3(_0x296e56,_0x1dfac6,_0x1db57d,_0xfb0de9){return _0x4abb(_0xfb0de9- -0x3dd,_0x1db57d);}function _0x4b2836(_0x4d6b73,_0x1b97d2,_0x1c9ab8,_0x468d43){return _0x4abb(_0x1b97d2-_0x4be8d7._0x283ef8,_0x4d6b73);}_0x5a6c1f[_0x1a51d3(-_0x290520._0x572bb7,-0x271,-0x211,-0x24c)](_0x1a51d3(-0x2cc,-0x335,-_0x290520._0x2de3d4,-0x28e),_0x44a0a4),_0x5a6c1f[_0x4b2836(_0x290520._0x1396bb,0x4ae,0x4e4,_0x290520._0x5446cd)](_0x4b2836(0x5f4,0x577,_0x290520._0x302863,0x564),_0x589764),_0xec5fb9?.['removeEventListener']('abort',_0x247e60);};_0x5a6c1f[_0x3f2978(0x4d1,0x380,_0x3859b4._0x5e2116,0x3d0)](_0x28f1fd(_0x3859b4._0x5b00fd,_0x3859b4._0x29c725,_0x3859b4._0x2224ff,0x249),_0x570c7d),_0x5a6c1f[_0x3f2978(0x4a3,_0x3859b4._0x95be6,0x3fd,0x490)](_0x28f1fd(0x108,0x20d,_0x3859b4._0x353cfc,0x17c),_0x44a0a4),_0x5a6c1f['addEventListener']('close',_0x589764),_0xec5fb9?.[_0x3f2978(_0x3859b4._0x5968d0,0x469,_0x3859b4._0x2cc4f1,_0x3859b4._0x481753)](_0x3f2978(0x290,0x2ea,_0x3859b4._0x3fda99,_0x3859b4._0x3a33b3),_0x247e60,{'once':!![]});});}function iterateWebSocketMessages(_0x11ff7b,_0x46771e){const _0x41baca={_0x3894f3:0x596,_0x17f932:0x479,_0x415246:0x458,_0x5e3a09:0x4a7,_0x2ea669:0x4a4,_0x27e17d:0x563,_0x45e066:0x4d4,_0x17d14d:0x592,_0x234532:0x4f5},_0x11f480={_0x1a7d44:0xd2,_0x26d63a:0xc2,_0x1b3cd4:0x131,_0x1d41ed:0x18e,_0x5a9c58:0x1fa,_0x58dbf1:0xc5,_0x122ef2:0x15,_0x55acc8:0x142,_0x505ce9:0x55,_0x3b9688:0xf8,_0x3e6d79:0x96,_0x1ebebd:0x240,_0x1b202a:0x148,_0x17d320:0x17f,_0x6ba34c:0x167,_0x482233:0x148,_0x32b2ce:0x1a5},_0x14394a={_0x223eea:0x119,_0x1a6029:0x619},_0x3d2e0c={_0x507d18:0x22},_0x4d5713={_0x5469f4:0xcc,_0x11b210:0xcb},_0x4ff0fb={_0x5676f0:0x41d,_0x2a6bec:0x3c3,_0x5e675c:0x305,_0x542e48:0x322,_0x382f64:0x165,_0x293569:0x26b,_0x972372:0x1bb,_0x3f105a:0x3e0,_0x19743b:0x427},_0x3acbbe={_0x347a53:0x5ce,_0x446caa:0x4e0,_0x429f66:0x154,_0xc2d4c9:0x75,_0x43a239:0x20e},_0x3c5c77={_0x42da2b:0x687,_0x49736c:0x66f,_0x3c7d0e:0x603},_0x3a5316={_0x511519:0x14a,_0x23ec34:0x1a4},_0x128a97={_0x200c3b:0x2eb},_0x4a33ce=[];let _0x343f5a=![],_0x3ef2ae,_0x3877d7;const _0x3ff648=_0x54630d=>{function _0x5eb5f0(_0x3b4ee7,_0x432e78,_0xee40ee,_0x4f83b2){return _0x4abb(_0xee40ee- -_0x128a97._0x200c3b,_0x3b4ee7);}function _0x2eedf8(_0x106c25,_0x2e386a,_0x1b06e4,_0x33aafc){return _0x4abb(_0x2e386a-0x3bd,_0x106c25);}const _0x3abe28=_0x54630d;try{_0x4a33ce['push'](JSON[_0x5eb5f0(-_0x3a5316._0x511519,-0x1e2,-_0x3a5316._0x23ec34,-0x203)](String(_0x3abe28['data']))),_0x3877d7?.(),_0x3877d7=void 0x0;}catch(_0x1f52c3){_0x3ef2ae=new Error(_0x2eedf8(0x62c,0x68a,0x71c,0x66c)+toErrorMessage(_0x1f52c3)),_0x3877d7?.(),_0x3877d7=void 0x0;}},_0x1787fd=_0x4d8890=>{const _0x124582=_0x4d8890;function _0x3e838c(_0x30eec1,_0x524a05,_0x1e50c9,_0x20e6e3){return _0x4abb(_0x30eec1-0x36c,_0x1e50c9);}_0x3ef2ae=new Error(_0x124582[_0x3e838c(0x5e6,_0x3c5c77._0x42da2b,_0x3c5c77._0x49736c,_0x3c5c77._0x3c7d0e)]||'WebSocket\x20request\x20failed'),_0x3877d7?.(),_0x3877d7=void 0x0;},_0x1eeef5=_0x531162=>{const _0x29eb0d={_0x25fa0b:0x358},_0xeeec51={_0xb1a55a:0x191};function _0x19d242(_0x289185,_0x2029bb,_0x21a88d,_0x46e68c){return _0x4abb(_0x289185- -_0xeeec51._0xb1a55a,_0x46e68c);}function _0x110eb6(_0x4da704,_0x2abf60,_0x53bcf2,_0x4e9542){return _0x4abb(_0x53bcf2-_0x29eb0d._0x25fa0b,_0x4da704);}const _0x2a38fe=_0x531162;!_0x343f5a&&_0x2a38fe['code']!==0x3e8&&!_0x3ef2ae&&(_0x3ef2ae=new Error(_0x2a38fe[_0x110eb6(0x55e,_0x3acbbe._0x347a53,0x5a6,_0x3acbbe._0x446caa)]||'WebSocket\x20closed\x20with\x20code\x20'+_0x2a38fe[_0x19d242(_0x3acbbe._0x429f66,_0x3acbbe._0xc2d4c9,0x109,_0x3acbbe._0x43a239)])),_0x343f5a=!![],_0x3877d7?.(),_0x3877d7=void 0x0;},_0x3f0068=addAbortListener(_0x46771e,()=>{_0x3ef2ae=toAbortError(_0x46771e?.[_0x37cb60(_0x4ff0fb._0x5676f0,_0x4ff0fb._0x2a6bec,0x348,0x389)]);_0x11ff7b[_0x37cb60(0x3ab,_0x4ff0fb._0x5e675c,_0x4ff0fb._0x542e48,0x23c)]===WebSocket[_0x1e82ee(-_0x4ff0fb._0x382f64,-_0x4ff0fb._0x293569,-_0x4ff0fb._0x972372,-0x1ee)]&&_0x11ff7b[_0x37cb60(_0x4ff0fb._0x3f105a,_0x4ff0fb._0x19743b,0x354,0x423)](0x3e8,'aborted');function _0x37cb60(_0x5856ce,_0x1361be,_0x6a8b29,_0x2555a3){return _0x4abb(_0x6a8b29-0xfa,_0x5856ce);}_0x3877d7?.();function _0x1e82ee(_0x4fb3fe,_0xa9b14b,_0x4472e9,_0x27acd0){return _0x4abb(_0x4472e9- -0x36f,_0x4fb3fe);}_0x3877d7=void 0x0;});function _0x1c082f(_0x4a98e5,_0x50f5d6,_0x224724,_0x4d5864){return _0x11bd88(_0x4d5864- -0x28e,_0x224724,_0x224724-_0x4d5713._0x5469f4,_0x4d5864-_0x4d5713._0x11b210);}_0x11ff7b[_0x37e5a8(_0x41baca._0x3894f3,0x5db,0x692,0x5d5)]('message',_0x3ff648);function _0x37e5a8(_0x2b1f03,_0x2fd6b4,_0x1059b5,_0x2ce0b2){return _0xd1496a(_0x2fd6b4- -0x17,_0x2fd6b4-_0x3d2e0c._0x507d18,_0x2ce0b2,_0x2ce0b2-0x73);}return _0x11ff7b['addEventListener'](_0x37e5a8(_0x41baca._0x17f932,_0x41baca._0x415246,_0x41baca._0x5e3a09,0x3ff),_0x1787fd),_0x11ff7b[_0x1c082f(0x38a,0x30e,0x3b2,0x2ef)](_0x37e5a8(_0x41baca._0x2ea669,_0x41baca._0x27e17d,0x502,_0x41baca._0x45e066),_0x1eeef5),{async*[Symbol[_0x37e5a8(0x4b9,_0x41baca._0x17d14d,0x4d2,_0x41baca._0x234532)]](){const _0x4ce2a4={_0xab8561:0x157,_0x2d99cc:0x11d};function _0x21ddf7(_0x434266,_0x538e7b,_0x304485,_0x4dc534){return _0x1c082f(_0x434266-_0x4ce2a4._0xab8561,_0x538e7b-_0x4ce2a4._0x2d99cc,_0x4dc534,_0x434266- -0x273);}function _0x1fa373(_0x3921f8,_0x3e9e20,_0x268d33,_0x528d54){return _0x37e5a8(_0x3921f8-_0x14394a._0x223eea,_0x268d33- -_0x14394a._0x1a6029,_0x268d33-0x50,_0x3e9e20);}try{while(!![]){if(_0x3ef2ae)throw _0x3ef2ae;if(_0x4a33ce[_0x21ddf7(-_0x11f480._0x1a7d44,-0x1b3,-_0x11f480._0x26d63a,-0x170)]>0x0){yield _0x4a33ce[_0x21ddf7(-_0x11f480._0x1b3cd4,-_0x11f480._0x1d41ed,-0x69,-_0x11f480._0x5a9c58)]();continue;}if(_0x343f5a)break;await new Promise(_0x3e7a9f=>{_0x3877d7=_0x3e7a9f;});}}finally{_0x11ff7b[_0x21ddf7(-_0x11f480._0x58dbf1,-0x2c,_0x11f480._0x122ef2,-_0x11f480._0x55acc8)](_0x1fa373(_0x11f480._0x505ce9,-_0x11f480._0x3b9688,-_0x11f480._0x3e6d79,-0x114),_0x3ff648),_0x11ff7b[_0x1fa373(-_0x11f480._0x1ebebd,-_0x11f480._0x1b202a,-_0x11f480._0x17d320,-0xf2)](_0x1fa373(-0x1d8,-_0x11f480._0x6ba34c,-0x1c1,-0x27d),_0x1787fd),_0x11ff7b[_0x21ddf7(-_0x11f480._0x58dbf1,-_0x11f480._0x482233,-0x13,-_0x11f480._0x32b2ce)]('close',_0x1eeef5),_0x3f0068();}}};}function toWebSocketUrl(_0x3fb0b6,_0x1462ec){const _0x52478f={_0x1a0cd3:0x82,_0x180988:0x1ea,_0x167047:0x10f,_0xb40ae2:0x143,_0xe87f19:0x13b,_0x17fd67:0xda,_0x81f1bb:0x253},_0x2066bf={_0x4f6ee3:0x5f1,_0x53a24b:0x103,_0x4896fb:0x86},_0x51d24c={_0x1d341b:0x3d6,_0x437ced:0x1cd};function _0x207e34(_0x39e8bd,_0x4b18ee,_0x4c11f9,_0x5200a6){return _0xd1496a(_0x4c11f9- -_0x51d24c._0x1d341b,_0x4b18ee-0x17a,_0x4b18ee,_0x5200a6-_0x51d24c._0x437ced);}const _0x325136=new URL(_0x1462ec,_0x3fb0b6);function _0x52cd77(_0x5985d4,_0x3ea87c,_0x2fccbf,_0x4ee6f2){return _0xd1496a(_0x3ea87c- -_0x2066bf._0x4f6ee3,_0x3ea87c-_0x2066bf._0x53a24b,_0x5985d4,_0x4ee6f2-_0x2066bf._0x4896fb);}return _0x325136['protocol']=_0x325136[_0x207e34(_0x52478f._0x1a0cd3,_0x52478f._0x180988,_0x52478f._0x167047,_0x52478f._0xb40ae2)]==='https:'?'wss:':_0x207e34(0x110,_0x52478f._0xe87f19,_0x52478f._0x17fd67,0x9a),_0x325136[_0x52cd77(-_0x52478f._0x81f1bb,-0x1a6,-0x1ff,-0x114)]();}var ProviderSessionManager=class{['resolver'];[_0x11bd88(0x575,0x548,0x613,0x4c1)];constructor(_0xd39400){const _0x23acfa={_0x53dc77:0x25a},_0x542f4c={_0xdf4cf2:0x152,_0x45aa8e:0x32};function _0x1981cd(_0x6c962c,_0x56ec6e,_0x7a2791,_0x5c03b0){return _0x11bd88(_0x7a2791- -0x5af,_0x6c962c,_0x7a2791-_0x542f4c._0xdf4cf2,_0x5c03b0-_0x542f4c._0x45aa8e);}this[_0x1981cd(-0x1e7,-_0x23acfa._0x53dc77,-0x1d0,-0x1cf)]=_0xd39400;}async[_0xd1496a(0x4d2,0x4e2,0x4f9,0x4f1)](_0x3d549b){const _0x208a90={_0x32f706:0x12e,_0x147c62:0x165,_0x3495ff:0x6b},_0x143499={_0x370213:0x3d,_0x501991:0x118},_0x232b06={_0x4c64a9:0xce,_0x897f8e:0x14e,_0x26204a:0x1b7,_0x1cab8f:0xda},_0x2bbba6={_0x241265:0x193,_0xa0458b:0xc6};if(!this[_0x3c4ade(0x123,0x68,-0x5d,0x36)]){const _0x4d4db8=this[_0x3c4ade(-0xbc,-_0x208a90._0x32f706,-0x11c,-_0x208a90._0x147c62)]['resolve'](_0x3d549b);_0x4d4db8['catch'](()=>{const _0x3e272f={_0x29e129:0xb4,_0x289525:0x66,_0x40cbd7:0x1cc};function _0x4f89f2(_0x426bd5,_0xc853f1,_0x2965b2,_0x1767b9){return _0x3c4ade(_0x426bd5-_0x2bbba6._0x241265,_0x2965b2-0x149,_0x426bd5,_0x1767b9-_0x2bbba6._0xa0458b);}function _0x31156b(_0xba8646,_0x10ba7e,_0xd42b53,_0x4e54a0){return _0x3c4ade(_0xba8646-_0x3e272f._0x29e129,_0x10ba7e-_0x3e272f._0x289525,_0xd42b53,_0x4e54a0-_0x3e272f._0x40cbd7);}this[_0x31156b(0x182,_0x232b06._0x4c64a9,_0x232b06._0x897f8e,0x167)]===_0x4d4db8&&(this[_0x4f89f2(_0x232b06._0x26204a,0xca,0x1b1,_0x232b06._0x1cab8f)]=void 0x0);}),this[_0x3c4ade(-0x80,0x68,-_0x208a90._0x3495ff,0x10a)]=_0x4d4db8;}function _0x3c4ade(_0x138e11,_0x5217c6,_0x101d6e,_0x15d616){return _0x11bd88(_0x5217c6- -0x50d,_0x101d6e,_0x101d6e-_0x143499._0x370213,_0x15d616-_0x143499._0x501991);}function _0x4e710c(_0x49599c,_0x34eeb0,_0x14cecc,_0x461777){return _0xd1496a(_0x461777- -0x196,_0x34eeb0-0x188,_0x14cecc,_0x461777-0xd6);}return structuredClone(await this['cached']);}[_0xd1496a(0x589,0x538,0x585,0x4c2)](){const _0x232820={_0x6db8f4:0x82,_0x2b3628:0x18},_0xbcad25={_0x3faab6:0x6c7};function _0x5337d6(_0x4def18,_0x59757c,_0xd56cf0,_0x3f1d8b){return _0xd1496a(_0x4def18- -_0xbcad25._0x3faab6,_0x59757c-0xcb,_0x59757c,_0x3f1d8b-0x145);}this[_0x5337d6(-0xdd,-0x5,-_0x232820._0x6db8f4,-_0x232820._0x2b3628)]=void 0x0;}};async function prepareProviderRequest(_0xc7c825,_0x3d4aea={}){const _0x4db19d={_0x5cded9:0xc8,_0x57e195:0xc5,_0x4a49c1:0x66b,_0x9140cc:0x5b,_0x5d6a21:0x71},_0x355d24={_0x449f75:0x67},_0x2ad647={_0x3af668:0x3c1,_0x4ccbbb:0xe,_0xa4e7b:0x11};function _0x509f51(_0x33c41f,_0x18dac5,_0x4bbf3e,_0x59367f){return _0xd1496a(_0x33c41f- -_0x2ad647._0x3af668,_0x18dac5-_0x2ad647._0x4ccbbb,_0x4bbf3e,_0x59367f-_0x2ad647._0xa4e7b);}let _0x258a91={'request':structuredClone(_0xc7c825),'session':_0x3d4aea['sessionManager']?await _0x3d4aea['sessionManager'][_0x509f51(0x111,_0x4db19d._0x5cded9,_0x4db19d._0x57e195,0x16d)](_0x3d4aea[_0x135bcc(0x72d,0x755,_0x4db19d._0x4a49c1,0x66b)]):void 0x0};function _0x135bcc(_0x16cfa7,_0x3d227e,_0x4d8e29,_0x4ffc9b){return _0xd1496a(_0x4ffc9b-_0x355d24._0x449f75,_0x3d227e-0x14,_0x3d227e,_0x4ffc9b-0x10e);}for(const _0xca3226 of _0x3d4aea[_0x509f51(0xed,_0x4db19d._0x9140cc,0x1d7,_0x4db19d._0x5d6a21)]??[]){_0x258a91=await _0xca3226(_0x258a91);}return _0x258a91;}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{[_0xd1496a(0x4de,0x52a,0x419,0x507)];[_0xd1496a(0x4e1,0x4fb,0x56b,0x4e0)];[_0xd1496a(0x457,0x4a2,0x4d9,0x48f)];[_0x11bd88(0x539,0x522,0x46f,0x548)];[_0x11bd88(0x478,0x522,0x4ba,0x530)];[_0xd1496a(0x568,0x512,0x484,0x560)];[_0xd1496a(0x5d2,0x523,0x620,0x639)];[_0x11bd88(0x439,0x4c7,0x4e4,0x4ea)];[_0xd1496a(0x4f8,0x412,0x5c7,0x58d)];[_0xd1496a(0x59f,0x63c,0x687,0x646)];[_0x11bd88(0x572,0x63d,0x5c3,0x4bd)];[_0xd1496a(0x591,0x584,0x5d0,0x558)]=new Map();constructor(_0x2de8a6){const _0x16ba0e={_0x408211:0x368,_0x30fe9c:0x2aa,_0x79ecae:0x9d,_0x4f14b6:0x223,_0x5e97d5:0x1b6,_0x270f28:0x22e,_0x597071:0x2b6,_0x3c0935:0x3b1,_0x464fb5:0x37a,_0x48e409:0x360,_0x5d3b6f:0x37a,_0x39ee46:0x307,_0x5a20d3:0x5e,_0x52e6ed:0x208,_0x1eb64f:0x2b9,_0x56be55:0x1e2,_0x90c723:0x14a,_0x34f70c:0xea,_0x43681b:0x37b,_0xa71eb7:0x357,_0x361ce5:0x235,_0x5dd7f5:0x259,_0x414286:0x29e,_0x2fe0fb:0x2c4,_0x32fe3f:0x1c0,_0x8842a2:0x295,_0x4e239f:0x3cd,_0x40fda4:0x35c,_0x1c6e82:0x459,_0x27f1d2:0x45b,_0xac340a:0x3ae,_0x2c09dd:0x497,_0x37aeea:0x150,_0x4dbdde:0x1e3,_0x11c4f0:0x395,_0x23256f:0x445},_0x533415={_0x1f8faa:0x441,_0x2a23a9:0x45};this[_0x3a10a2(0x1ea,_0x16ba0e._0x408211,_0x16ba0e._0x30fe9c,0x289)]=_0x2de8a6[_0x29ccf5(-0x49,_0x16ba0e._0x79ecae,0x5,0xb6)];function _0x3a10a2(_0x1f973e,_0x4f156d,_0x3c4ea0,_0x135396){return _0x11bd88(_0x3c4ea0- -0x1bf,_0x1f973e,_0x3c4ea0-0x2d,_0x135396-0xe4);}this['maxTokens']=_0x2de8a6[_0x3a10a2(0x36a,0x2a0,0x2ad,0x2d9)]??getDefaultMaxTokens(),this[_0x3a10a2(0x2a5,0x274,_0x16ba0e._0x4f14b6,0x2d5)]=_0x2de8a6['reasoning']?structuredClone(_0x2de8a6[_0x3a10a2(0x1e5,_0x16ba0e._0x5e97d5,_0x16ba0e._0x4f14b6,_0x16ba0e._0x270f28)]):void 0x0,this[_0x3a10a2(_0x16ba0e._0x597071,_0x16ba0e._0x3c0935,_0x16ba0e._0x464fb5,0x433)]=_0x2de8a6[_0x3a10a2(0x2f5,_0x16ba0e._0x48e409,_0x16ba0e._0x5d3b6f,_0x16ba0e._0x39ee46)];function _0x29ccf5(_0x4b1199,_0x25bba3,_0x49e4a4,_0x19049e){return _0xd1496a(_0x25bba3- -_0x533415._0x1f8faa,_0x25bba3-_0x533415._0x2a23a9,_0x49e4a4,_0x19049e-0x1bc);}this[_0x29ccf5(_0x16ba0e._0x5a20d3,0xac,0x134,0x3a)]=_0x2de8a6[_0x3a10a2(_0x16ba0e._0x52e6ed,0x344,_0x16ba0e._0x1eb64f,0x1fb)],this['fetchImpl']=_0x2de8a6[_0x29ccf5(_0x16ba0e._0x56be55,_0x16ba0e._0x90c723,_0x16ba0e._0x34f70c,0x117)]??globalThis[_0x3a10a2(0x3db,_0x16ba0e._0x43681b,_0x16ba0e._0xa71eb7,0x2a3)],this[_0x29ccf5(0x1b6,0x191,0x1ed,0xaf)]=_0x2de8a6['providerAdapter'],this[_0x3a10a2(0x356,0x23f,0x27a,0x312)]=_0x2de8a6[_0x3a10a2(0x2d0,_0x16ba0e._0x361ce5,0x27a,0x300)]??[],this['router']=_0x2de8a6[_0x3a10a2(_0x16ba0e._0x5dd7f5,_0x16ba0e._0x414286,_0x16ba0e._0x2fe0fb,0x1f6)],this['sessionManager']=_0x2de8a6['sessionManager']??(_0x2de8a6[_0x29ccf5(0x25b,_0x16ba0e._0x32fe3f,_0x16ba0e._0x8842a2,0x261)]?new ProviderSessionManager(_0x2de8a6[_0x3a10a2(0x378,0x382,_0x16ba0e._0x4e239f,_0x16ba0e._0x40fda4)]):void 0x0),this[_0x3a10a2(_0x16ba0e._0x1c6e82,_0x16ba0e._0x27f1d2,0x3b3,_0x16ba0e._0xac340a)]=_0x2de8a6[_0x3a10a2(0x339,_0x16ba0e._0x2c09dd,0x3b3,0x2e5)]??createDefaultWebSocketFactory();for(const _0x163dd5 of _0x2de8a6[_0x29ccf5(0x189,_0x16ba0e._0x37aeea,0x7e,_0x16ba0e._0x4dbdde)]){this[_0x3a10a2(_0x16ba0e._0x11c4f0,0x422,0x35d,0x395)][_0x3a10a2(0x340,0x361,0x378,_0x16ba0e._0x23256f)](_0x163dd5['id'],_0x163dd5);}}[_0x11bd88(0x58a,0x52a,0x648,0x57e)](_0x40f1e1,_0x5b8769){const _0x4c1940={_0x592ee7:0x157,_0x9c75c3:0xb7},_0x67caf7={_0x4fb0de:0x141};function _0x4419bf(_0x11e84a,_0x373a22,_0x45aa6e,_0x561409){return _0xd1496a(_0x561409- -0x480,_0x373a22-0x112,_0x373a22,_0x561409-_0x67caf7._0x4fb0de);}return this[_0x4419bf(_0x4c1940._0x592ee7,0x86,0x38,_0x4c1940._0x9c75c3)](_0x40f1e1,_0x5b8769);}['stream'](_0x54052b,_0x2bf2d7){return this['streamViaRouter'](_0x54052b,_0x2bf2d7);}async[_0x11bd88(0x4c2,0x508,0x4af,0x4d8)](_0x598cc,_0x21fd5f){const _0x37c4e3={_0x6def02:0x38d,_0x1ea433:0x126,_0x27677e:0x67,_0x35e6e3:0x13,_0x30bdb9:0x16e,_0x2beb07:0x87},_0x2dbdc5={_0x551c69:0x41c,_0xee9efd:0x197,_0x84e83a:0x9a};function _0x5a6553(_0x588643,_0x191eb9,_0x4f7f98,_0x4b9729){return _0x11bd88(_0x191eb9- -_0x2dbdc5._0x551c69,_0x4f7f98,_0x4f7f98-_0x2dbdc5._0xee9efd,_0x4b9729-_0x2dbdc5._0x84e83a);}const _0x493606=this[_0x39eb4f(0x31b,_0x37c4e3._0x6def02,0x254,0x2ca)](_0x598cc),_0x27fe60=await this[_0x5a6553(_0x37c4e3._0x1ea433,_0x37c4e3._0x27677e,0x10d,0x6f)][_0x5a6553(-0x29,0x7c,-_0x37c4e3._0x35e6e3,0x111)](_0x493606,{'mode':_0x5a6553(0x163,_0x37c4e3._0x30bdb9,_0x37c4e3._0x2beb07,0x1ff)});function _0x39eb4f(_0x379d05,_0xed5967,_0x2717fb,_0x3b4d2f){return _0xd1496a(_0x3b4d2f- -0x315,_0xed5967-0x6e,_0x2717fb,_0x3b4d2f-0x129);}return this['completeViaSurface'](_0x493606,_0x27fe60,_0x21fd5f);}async*[_0x11bd88(0x4eb,0x5be,0x4e1,0x517)](_0x12bd3d,_0x22fb2c){const _0x52c96c={_0x2b3195:0x29d,_0x4fc9cd:0x249},_0x151dc1={_0x4c2113:0x46},_0x28467d={_0x5ead7d:0x175,_0x5d7480:0x172},_0x300013=this[_0x1184f0(0x250,0x33d,0x287,0x1f1)](_0x12bd3d);function _0x4c3936(_0x3b42cc,_0x58f5df,_0x1357e1,_0x23d289){return _0x11bd88(_0x58f5df- -0x12b,_0x1357e1,_0x1357e1-_0x28467d._0x5ead7d,_0x23d289-_0x28467d._0x5d7480);}const _0x25a433=await this['router']['selectSurface'](_0x300013,{'mode':'stream'});function _0x1184f0(_0x3ae222,_0x21c862,_0x4d14ae,_0x551e6f){return _0xd1496a(_0x4d14ae- -0x358,_0x21c862-_0x151dc1._0x4c2113,_0x21c862,_0x551e6f-0xe4);}yield*this[_0x1184f0(0x2c9,_0x52c96c._0x2b3195,_0x52c96c._0x4fc9cd,0x2f2)](_0x300013,_0x25a433,_0x22fb2c);}async[_0xd1496a(0x5d5,0x6b4,0x4ff,0x52c)](_0x421427,_0x2712b0,_0x3588e0){const _0x260e3f={_0x56d700:0x689,_0x29f7cc:0x594,_0x3112f6:0x5d2,_0x1fa31b:0x10,_0x5a89f2:0xa4,_0x520565:0xb3,_0x16c67b:0x3af,_0x231b4e:0x46b,_0x4cc0e1:0x454,_0x20bae7:0x46b,_0x196e90:0x25,_0x3ffc88:0x42,_0x5e68eb:0x52f,_0x5cfcfd:0x590,_0x54d701:0x520,_0x404455:0xd4,_0x1ad3a3:0x108,_0x316d21:0x5f,_0x1122a6:0x573,_0x3b5c69:0x684,_0x25bbbc:0x4b,_0x4a202f:0x19,_0x424db2:0x97,_0x539a62:0x3b,_0x1a14ac:0x5b,_0xc022e8:0x2e,_0x26cbfc:0x6d,_0x11838a:0x6b,_0x118bb2:0x506,_0x5bd3f6:0x621,_0x142919:0x51e,_0x43c5a8:0x540,_0x1b1861:0xbe,_0x443185:0x24,_0x2251ec:0xe0,_0x4ce68e:0x29,_0x2f8fc4:0x5fe,_0xf51c9b:0x546,_0x19cd26:0x579},_0x21f179={_0x597d0f:0x59},_0x4b03a2=this[_0x276c17(0x633,_0x260e3f._0x56d700,_0x260e3f._0x29f7cc,_0x260e3f._0x3112f6)](_0x421427),_0x464a04=this[_0x27f426(-0x1b,-_0x260e3f._0x1fa31b,-_0x260e3f._0x5a89f2,_0x260e3f._0x520565)](_0x2712b0);function _0x276c17(_0x1ff233,_0x2e2cbb,_0x199b44,_0xeba365){return _0x11bd88(_0xeba365-0x68,_0x199b44,_0x199b44-0x1e6,_0xeba365-0x151);}if(_0x464a04[_0x276c17(_0x260e3f._0x16c67b,_0x260e3f._0x231b4e,_0x260e3f._0x4cc0e1,_0x260e3f._0x20bae7)]===_0x27f426(-_0x260e3f._0x196e90,0x5c,-0xba,-_0x260e3f._0x3ffc88)){const _0x4ceb56=await this[_0x27f426(0x1,0x45,-0x75,0xa6)](_0x4b03a2,_0x464a04,![],_0x3588e0);if(!_0x4ceb56['ok'])throw await this[_0x276c17(_0x260e3f._0x5e68eb,0x4a8,_0x260e3f._0x5cfcfd,_0x260e3f._0x54d701)](_0x4ceb56);if(!_0x464a04[_0x27f426(-_0x260e3f._0x404455,_0x260e3f._0x1fa31b,-_0x260e3f._0x1ad3a3,-_0x260e3f._0x316d21)])throw new Error(_0x276c17(_0x260e3f._0x1122a6,0x63b,_0x260e3f._0x3b5c69,0x5e7)+_0x2712b0+_0x27f426(-0x7a,-0x42,-0xf,-_0x260e3f._0x25bbbc));return _0x464a04['parseResponse'](await _0x4ceb56[_0x27f426(-_0x260e3f._0x4a202f,_0x260e3f._0x424db2,_0x260e3f._0x539a62,_0x260e3f._0x1a14ac)](),_0x4b03a2);}let _0xe43a4d;for await(const _0x26415d of this[_0x27f426(-_0x260e3f._0xc022e8,_0x260e3f._0x26cbfc,-_0x260e3f._0x11838a,-0x9e)](_0x4b03a2,_0x2712b0,_0x3588e0)){_0x26415d[_0x276c17(_0x260e3f._0x118bb2,_0x260e3f._0x5bd3f6,_0x260e3f._0x142919,_0x260e3f._0x43c5a8)]===_0x27f426(-0x8d,-_0x260e3f._0x1b1861,_0x260e3f._0x443185,-0x10e)&&(_0xe43a4d=_0x26415d[_0x27f426(-_0x260e3f._0x2251ec,-0x3d,-_0x260e3f._0x4ce68e,-0x95)]);}if(!_0xe43a4d)throw new Error('Surface\x20'+_0x2712b0+_0x276c17(0x5dc,_0x260e3f._0x2f8fc4,_0x260e3f._0xf51c9b,_0x260e3f._0x19cd26));function _0x27f426(_0x5bb683,_0xdf82e7,_0x1e9a4b,_0x3283ba){return _0xd1496a(_0x5bb683- -0x5cf,_0xdf82e7-_0x21f179._0x597d0f,_0x1e9a4b,_0x3283ba-0x1cc);}return _0xe43a4d;}async*[_0x11bd88(0x52c,0x52a,0x453,0x52c)](_0x2aa3b0,_0x5ba102,_0x540520){const _0x55dab4={_0x35f186:0x259,_0x1d6161:0x294,_0x1a9d91:0x1f5,_0x55669d:0x134,_0x225b3b:0x1ca,_0x49c229:0x1cc,_0x173a1b:0x31f,_0x20f19a:0x2e7,_0x519d36:0x451,_0x19288a:0x3b7,_0x3470e7:0x1eb,_0x2911d8:0x151,_0x12e3f1:0x23a,_0x532fa3:0x158,_0x4fa76c:0x32,_0xda04ee:0x2de,_0x46c620:0x39f,_0x5630ef:0x3c3,_0x37e639:0x45f,_0x4052ba:0x47c},_0x46b53d={_0x40a74a:0x1,_0x287001:0x8e},_0x4ff5b4={_0x1acd51:0xe4};function _0x53e605(_0x573c5c,_0x1e9245,_0x443dc4,_0x2ab98a){return _0x11bd88(_0x573c5c- -_0x4ff5b4._0x1acd51,_0x2ab98a,_0x443dc4-0x9a,_0x2ab98a-0x151);}const _0x46e290=this[_0x4c0e0f(_0x55dab4._0x35f186,_0x55dab4._0x1d6161,_0x55dab4._0x1a9d91,0x1d6)](_0x2aa3b0),_0x9d508e=this[_0x4c0e0f(0x220,_0x55dab4._0x55669d,_0x55dab4._0x225b3b,_0x55dab4._0x49c229)](_0x5ba102);if(_0x9d508e[_0x53e605(_0x55dab4._0x173a1b,0x2e4,_0x55dab4._0x20f19a,0x394)]===_0x53e605(_0x55dab4._0x519d36,0x393,_0x55dab4._0x19288a,0x374)){const _0x5b5884=await this[_0x4c0e0f(0x10c,0x274,_0x55dab4._0x3470e7,_0x55dab4._0x2911d8)](_0x46e290,_0x5ba102,_0x540520);yield{'type':_0x4c0e0f(_0x55dab4._0x12e3f1,0x1b8,_0x55dab4._0x532fa3,0xe1),'response':_0x5b5884};return;}if(_0x9d508e[_0x4c0e0f(0x30,0x26,0x8e,_0x55dab4._0x4fa76c)]===_0x53e605(0x3b9,_0x55dab4._0xda04ee,0x468,0x314)){yield*this['streamHttpSurface'](_0x46e290,_0x9d508e,_0x540520);return;}function _0x4c0e0f(_0x5dc0e7,_0x75e5e0,_0x13ae60,_0x2d2b05){return _0xd1496a(_0x13ae60- -0x3ea,_0x75e5e0-_0x46b53d._0x40a74a,_0x5dc0e7,_0x2d2b05-_0x46b53d._0x287001);}yield*this[_0x53e605(0x42e,0x3f6,_0x55dab4._0x46c620,0x3e9)](_0x46e290,_0x9d508e,_0x540520?.[_0x53e605(0x4ab,_0x55dab4._0x5630ef,_0x55dab4._0x37e639,_0x55dab4._0x4052ba)]);}async[_0x11bd88(0x417,0x424,0x480,0x4ac)](_0x2c3f93){const _0x3ba290={_0x47e7a9:0x302},_0x508e6b={_0x2609ee:0x129},_0x5316a5={_0x619c0d:0x35,_0x550162:0xc2,_0x527d05:0x16d,_0x185ef0:0x221,_0x27eeac:0x5d,_0x3d9b5e:0x156,_0x3936d1:0x1e8,_0x57311e:0x1a0,_0x75d2ef:0x1d6,_0x44d08d:0x158,_0x3a62f7:0x239,_0x5d773b:0xec,_0x36df1d:0x138,_0x23affb:0x65,_0x2418ef:0x19a,_0x47843f:0x26b,_0x362064:0xab,_0x96dc61:0x122,_0x51fec6:0x11f,_0x56feeb:0x1b8,_0x59be72:0x129,_0xe77e53:0x9,_0x12cc84:0x10b,_0xf336de:0x3c,_0x8fbe4a:0x1e6,_0x5c2d5c:0x11e,_0x5baa4b:0x276,_0x26df66:0x1c6,_0x5ced45:0x1a8,_0x4a9e15:0xe7,_0x3b79f8:0x173,_0x518b73:0x1ec,_0x490ace:0x145,_0x49fcac:0x20f,_0x78425b:0x8a,_0x7cb158:0x1f3,_0x432fe0:0x94,_0x52e346:0xe0},_0x2b48d5={_0x373147:0x112},_0x5d4af0=async()=>{const _0x1ba803=this[_0x18f237(-_0x5316a5._0x619c0d,-0xa8,-_0x5316a5._0x550162,0x23)]?await this[_0x2b10d(_0x5316a5._0x527d05,_0x5316a5._0x185ef0,0xef,0x134)][_0x2b10d(0xa0,_0x5316a5._0x27eeac,-0x6,_0x5316a5._0x3d9b5e)](_0x2c3f93[_0x2b10d(0x1d2,0x232,_0x5316a5._0x3936d1,0x147)]):void 0x0;function _0x18f237(_0x2a2e29,_0x218000,_0x6d3497,_0x5bd26f){return _0x4abb(_0x218000- -0x327,_0x2a2e29);}function _0x2b10d(_0x4fc8b4,_0x52e185,_0x20c344,_0x501cfb){return _0x4abb(_0x4fc8b4- -_0x2b48d5._0x373147,_0x20c344);}const _0x52fa02=this[_0x2b10d(_0x5316a5._0x57311e,_0x5316a5._0x75d2ef,_0x5316a5._0x44d08d,_0x5316a5._0x3a62f7)]['resolveCredential'](this['apiKey'],_0x1ba803);if(!_0x52fa02)throw this[_0x18f237(-_0x5316a5._0x5d773b,-_0x5316a5._0x36df1d,-_0x5316a5._0x23affb,-0x1d6)]();const _0x8ff6fa=await this[_0x2b10d(_0x5316a5._0x2418ef,0x18f,0xf6,_0x5316a5._0x47843f)]({'body':_0x2c3f93[_0x18f237(-_0x5316a5._0x362064,-0x136,-_0x5316a5._0x96dc61,-0x7e)],'credential':_0x52fa02,'session':_0x1ba803,'stream':![]},{'accept':_0x2c3f93[_0x2b10d(_0x5316a5._0x51fec6,0x157,_0x5316a5._0x56feeb,_0x5316a5._0x59be72)]??_0x18f237(-_0x5316a5._0xe77e53,-0xba,-_0x5316a5._0x3d9b5e,-_0x5316a5._0x12cc84),'includeContentType':_0x2c3f93[_0x2b10d(0x57,-0x60,_0x5316a5._0xf336de,0x6)]===_0x18f237(-_0x5316a5._0x8fbe4a,-0x157,-0x1e8,-_0x5316a5._0x5c2d5c)});return this['fetchImpl'](''+this[_0x2b10d(0x1a0,_0x5316a5._0x5baa4b,0x188,0x265)][_0x18f237(-0x1f3,-_0x5316a5._0x26df66,-_0x5316a5._0x5ced45,-_0x5316a5._0x4a9e15)](this['baseUrl'],_0x1ba803)+_0x2c3f93[_0x18f237(-_0x5316a5._0x3b79f8,-_0x5316a5._0x518b73,-_0x5316a5._0x490ace,-0x260)],{'method':_0x2c3f93[_0x18f237(-0x1d1,-0x1be,-0x177,-0x25c)],'headers':_0x8ff6fa,..._0x2c3f93[_0x18f237(-0x169,-0x136,-_0x5316a5._0x49fcac,-0x18d)]!==void 0x0?{'body':JSON[_0x2b10d(_0x5316a5._0x5c2d5c,_0x5316a5._0x78425b,_0x5316a5._0x7cb158,_0x5316a5._0x432fe0)](_0x2c3f93['body'])}:{},'signal':_0x2c3f93[_0x18f237(0x9c,-0x43,0x75,-_0x5316a5._0x52e346)]});};function _0x15b3de(_0x1aaf50,_0x2ab329,_0x3c0105,_0x20e6a0){return _0x11bd88(_0x20e6a0- -0x113,_0x3c0105,_0x3c0105-_0x508e6b._0x2609ee,_0x20e6a0-0x118);}return await this[_0x15b3de(0x36b,0x3c2,_0x3ba290._0x47e7a9,0x32a)](_0x5d4af0,_0x2c3f93);}[_0xd1496a(0x596,0x60e,0x579,0x54f)](_0x5c6881,_0x21ce16){const _0x3ee565={_0x4dbaca:0xde,_0xaafa2d:0x53,_0x2e7aff:0x32,_0x44d210:0x97,_0x286681:0xb,_0x37f7d9:0xe7,_0x2c7325:0x44,_0x7619ca:0x52,_0x5b811d:0x1a,_0x6f48d3:0x69,_0x13f7f5:0x42},_0x5867d0={_0x241c53:0x17e,_0x51ec90:0x94};function _0x587a38(_0x1fb9f3,_0x121c52,_0x2dee11,_0x2f43a0){return _0x11bd88(_0x2f43a0- -0x436,_0x121c52,_0x2dee11-_0x5867d0._0x241c53,_0x2f43a0-_0x5867d0._0x51ec90);}const _0x3bee6a=_0x5c6881?.[_0x32d310(0x6f,_0x3ee565._0x4dbaca,0x4f,-_0x3ee565._0xaafa2d)][_0x32d310(_0x3ee565._0x2e7aff,0xc8,0x89,_0x3ee565._0x44d210)]('retry-after');if(_0x3bee6a){const _0x1f5df6=Number(_0x3bee6a);if(Number[_0x587a38(_0x3ee565._0x286681,0x4d,-0x56,0x52)](_0x1f5df6)&&_0x1f5df6>=0x0)return _0x1f5df6*0x3e8;const _0x2417b1=Date[_0x587a38(-_0x3ee565._0x37f7d9,-0x12,-0xee,-_0x3ee565._0x2c7325)](_0x3bee6a);if(Number[_0x587a38(0x56,_0x3ee565._0x286681,0x75,_0x3ee565._0x7619ca)](_0x2417b1))return Math[_0x32d310(-_0x3ee565._0x5b811d,0x7b,_0x3ee565._0x6f48d3,-_0x3ee565._0x13f7f5)](0x0,_0x2417b1-Date['now']());}function _0x32d310(_0x54b457,_0xe04243,_0x5c090d,_0x3a4ee3){return _0xd1496a(_0x5c090d- -0x402,_0xe04243-0x94,_0x3a4ee3,_0x3a4ee3-0x16c);}const _0x9fa3e4=DEFAULT_RETRY_DELAY_MS*0x2**_0x21ce16;if(_0x9fa3e4<RETRY_DELAY_STEP_CAP_MS)return _0x9fa3e4;return RETRY_DELAY_STEP_CAP_MS*0x2**(_0x21ce16-0x5);}['shouldRetryResponse'](_0x42ca12){const _0x2ff20b={_0x23d07b:0x19e,_0x3f351e:0x125,_0x10644d:0xdb,_0x5ad1d9:0x1d,_0x168314:0xd5},_0xc28eb7={_0x1e842e:0x111},_0x4a34f6={_0x4b6a7b:0x42};function _0x30a281(_0x2a5528,_0x112b1d,_0x2dd781,_0x1682a4){return _0x11bd88(_0x2dd781- -0x379,_0x112b1d,_0x2dd781-0x121,_0x1682a4-_0x4a34f6._0x4b6a7b);}function _0x1e3a77(_0xf90807,_0x327e7d,_0x2a7566,_0x538a11){return _0xd1496a(_0xf90807- -0x65c,_0x327e7d-_0xc28eb7._0x1e842e,_0x327e7d,_0x538a11-0x148);}return RETRYABLE_HTTP_STATUSES[_0x30a281(_0x2ff20b._0x23d07b,_0x2ff20b._0x3f351e,_0x2ff20b._0x10644d,0x13e)](_0x42ca12[_0x30a281(_0x2ff20b._0x5ad1d9,0x193,_0x2ff20b._0x168314,0xb4)]);}[_0xd1496a(0x4fe,0x563,0x5a6,0x5c3)](_0xf8d898){return!isAbortError(_0xf8d898)&&_0xf8d898 instanceof TypeError;}['shouldRetryStreamAttemptError'](_0x173e7d){const _0x38f246={_0x4c6d07:0x36c},_0x473dc3={_0x5d2f0d:0x105,_0x3aed2d:0x1eb};function _0x56eaf6(_0x36d593,_0x2ca8ca,_0x49124d,_0x17060d){return _0xd1496a(_0x49124d- -_0x473dc3._0x5d2f0d,_0x2ca8ca-_0x473dc3._0x3aed2d,_0x2ca8ca,_0x17060d-0x11f);}return this[_0x56eaf6(_0x38f246._0x4c6d07,0x4a0,0x3f9,0x320)](_0x173e7d)||isRetryableProviderStreamEventError(_0x173e7d);}async[_0x11bd88(0x422,0x3f3,0x483,0x366)](_0x3cfea5,_0x261bdf){const _0x5b5346={_0x502339:0x74,_0x3f0fa2:0xb0,_0x21cd86:0x26};throwIfAborted(_0x261bdf),await new Promise((_0x267eca,_0x4c8304)=>{let _0x4e40a2=![];const _0x1cced5=addAbortListener(_0x261bdf,()=>{function _0x2d2ae6(_0x30d176,_0x4fcd2c,_0xb2707c,_0x2b75e0){return _0x4abb(_0x2b75e0- -0x274,_0x30d176);}if(_0x4e40a2)return;_0x4e40a2=!![],clearTimeout(_0x106d61),_0x4c8304(toAbortError(_0x261bdf?.[_0x2d2ae6(-_0x5b5346._0x502339,0x71,-_0x5b5346._0x3f0fa2,-_0x5b5346._0x21cd86)]));}),_0x106d61=setTimeout(()=>{_0x4e40a2=!![],_0x1cced5(),_0x267eca();},_0x3cfea5);}),throwIfAborted(_0x261bdf);}async[_0x11bd88(0x43d,0x417,0x480,0x483)](_0x2e723a,_0xb5bb1b={}){const _0x5a4165={_0x1cc8c9:0x3d4,_0x3ed58c:0x315,_0x5cd25e:0x39c,_0x3d2b4b:0x28d,_0x42b3f5:0x2c1,_0x381064:0x136,_0x1a0391:0x15,_0x4a4d59:0xbd,_0x478063:0x1d9,_0x567a4d:0x1ef,_0x20f356:0x168,_0x294cca:0x18c,_0x48bee7:0x155,_0x5cba5f:0xde,_0x34bb6c:0x198,_0x480c2a:0x3b3,_0x474f3c:0x29d,_0x2019a3:0x2fd},_0x529c5a={_0x111bce:0x653,_0x523324:0xd9},_0xa67df0={_0x70769c:0x18e,_0x5bd305:0x51},{signal:_0x562e74}=_0xb5bb1b;let _0x2213b8=![];function _0x5309bd(_0x48f849,_0x12258f,_0x11c28f,_0x45748f){return _0x11bd88(_0x45748f- -_0xa67df0._0x70769c,_0x48f849,_0x11c28f-0x91,_0x45748f-_0xa67df0._0x5bd305);}function _0x41b997(_0x4c450d,_0x478961,_0x22ad53,_0x1d677a){return _0xd1496a(_0x1d677a- -_0x529c5a._0x111bce,_0x478961-0x1ef,_0x4c450d,_0x1d677a-_0x529c5a._0x523324);}for(let _0x584d8a=0x0;_0x584d8a<MAX_PROVIDER_REQUEST_ATTEMPTS;_0x584d8a+=0x1){throwIfAborted(_0x562e74);try{const _0x4cd3dd=await _0x2e723a();if(_0x4cd3dd['status']===0x191&&this[_0x5309bd(_0x5a4165._0x1cc8c9,_0x5a4165._0x3ed58c,0x3f1,_0x5a4165._0x5cd25e)]&&!_0x2213b8){_0x2213b8=!![],this[_0x5309bd(0x375,0x484,0x443,0x39c)]['invalidate']();continue;}if(!this[_0x5309bd(_0x5a4165._0x3d2b4b,_0x5a4165._0x42b3f5,0x2a1,0x2bd)](_0x4cd3dd)||_0x584d8a===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)return _0x4cd3dd;const _0x4924af=this[_0x41b997(-_0x5a4165._0x381064,-_0x5a4165._0x1a0391,-0x107,-_0x5a4165._0x4a4d59)](_0x4cd3dd,_0x584d8a);await this[_0x41b997(-0x110,-_0x5a4165._0x478063,-_0x5a4165._0x567a4d,-0x1bc)](_0x4924af,_0x562e74);}catch(_0xe61821){if(!this[_0x41b997(-_0x5a4165._0x20f356,-0x111,-_0x5a4165._0x294cca,-_0x5a4165._0x48bee7)](_0xe61821)||_0x584d8a===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0xe61821;const _0x55c326=this[_0x5309bd(0x383,0x330,0x3d4,0x393)](void 0x0,_0x584d8a);await this[_0x41b997(-_0x5a4165._0x5cba5f,-0x1e6,-_0x5a4165._0x34bb6c,-0x1bc)](_0x55c326,_0x562e74);}}throw new Error(_0x5309bd(_0x5a4165._0x480c2a,_0x5a4165._0x474f3c,_0x5a4165._0x2019a3,0x357));}[_0x11bd88(0x49a,0x4f9,0x582,0x452)](){const _0x1517a6={_0x427497:0x1d6,_0x490cac:0x5a,_0x4613d3:0xd8,_0x2382d6:0x12a},_0x24ff17={_0x2ef8be:0x3e5,_0x2dce16:0x150,_0x52ab7a:0x16c},_0x551665={_0x55fe74:0x1a1};function _0x14267f(_0x581540,_0x4ebad8,_0x3ef6ad,_0x4e8004){return _0xd1496a(_0x4ebad8- -0x494,_0x4ebad8-0x18f,_0x581540,_0x4e8004-_0x551665._0x55fe74);}function _0x1aea61(_0x51a7a9,_0x9580a6,_0x4c64c5,_0x472fe0){return _0xd1496a(_0x472fe0- -_0x24ff17._0x2ef8be,_0x9580a6-_0x24ff17._0x2dce16,_0x4c64c5,_0x472fe0-_0x24ff17._0x52ab7a);}return this[_0x1aea61(0x289,_0x1517a6._0x427497,0x14d,0x1ed)][_0x1aea61(_0x1517a6._0x490cac,_0x1517a6._0x4613d3,0x86,_0x1517a6._0x2382d6)]();}async[_0x11bd88(0x557,0x55f,0x47d,0x577)](_0x409957,_0x524b12){const _0x2bdb73={_0x3a7e40:0x494,_0x4e1b09:0x47c,_0x1f5d2b:0x4c1};function _0x19495e(_0x397e42,_0x2669fe,_0x538a2f,_0x30dee4){return _0xd1496a(_0x538a2f- -0x150,_0x2669fe-0x12b,_0x30dee4,_0x30dee4-0x79);}return await this['providerAdapter'][_0x19495e(_0x2bdb73._0x3a7e40,0x479,_0x2bdb73._0x4e1b09,_0x2bdb73._0x1f5d2b)](_0x409957,_0x524b12);}[_0xd1496a(0x576,0x500,0x48b,0x4ee)](_0x4e2567){const _0x2aaa17={_0x4e844d:0x4b,_0x4d6fcb:0x63},_0x1be427={_0x914980:0x11b};function _0x5673aa(_0x5a3f76,_0x39511c,_0x3033dc,_0x2f0984){return _0x11bd88(_0x2f0984- -0x532,_0x3033dc,_0x3033dc-_0x1be427._0x914980,_0x2f0984-0x18e);}return this[_0x5673aa(_0x2aaa17._0x4e844d,_0x2aaa17._0x4d6fcb,0x5,0x2b)]['mapApiError'](_0x4e2567);}async[_0xd1496a(0x52d,0x47e,0x4f1,0x47e)](_0x4c8ca1){const _0x4a54ee={_0x92f9b8:0x644};function _0x11b313(_0x10a945,_0x5ac7a5,_0x507df3,_0x54a81f){return _0x11bd88(_0x507df3-0x61,_0x54a81f,_0x507df3-0x143,_0x54a81f-0x68);}return await this[_0x11b313(0x4f3,0x6a1,0x5be,_0x4a54ee._0x92f9b8)]['toApiError'](_0x4c8ca1);}['getSurface'](_0x54134b){const _0xc19aa2={_0x451a83:0x30},_0x1d2f48={_0x5d988e:0x3cc,_0x355913:0x1ad,_0x5267be:0x90},_0x48ef11=this['surfaces'][_0xecee8d(-0x4d,0x52,0x4a,-_0xc19aa2._0x451a83)](_0x54134b);if(!_0x48ef11)throw new Error('Unknown\x20model\x20surface:\x20'+_0x54134b);function _0xecee8d(_0x506f09,_0xcdef0c,_0x11580a,_0x5e49c6){return _0x11bd88(_0x11580a- -_0x1d2f48._0x5d988e,_0x506f09,_0x11580a-_0x1d2f48._0x355913,_0x5e49c6-_0x1d2f48._0x5267be);}return _0x48ef11;}async['prepareChatRequest'](_0x4b5184,_0x54ec0f){const _0x50b138={_0x33cee5:0x3b4,_0x1bb59f:0x485,_0x3306b0:0x4b0,_0x383aeb:0x13a,_0x157211:0x12f,_0x4e5524:0x201,_0x6d04f2:0xbe,_0x30995e:0x128,_0x345b49:0x4ac,_0x262ad8:0x410,_0x128980:0x3d9,_0x2b30c8:0x44c,_0x3cf45d:0x56,_0x2c3de7:0x76,_0x1227d7:0x151},_0xedde43={_0x935299:0x161,_0x266e98:0x179},_0x1da9df={_0x5154b7:0x701,_0x1a1e97:0x1a9,_0xf852:0x65};function _0x5188c7(_0x5af95d,_0x9461b4,_0x3cadf9,_0xc6ce73){return _0xd1496a(_0x3cadf9- -_0x1da9df._0x5154b7,_0x9461b4-_0x1da9df._0x1a1e97,_0xc6ce73,_0xc6ce73-_0x1da9df._0xf852);}const _0xd3d7dd=toModelRequest(_0x4b5184),_0x3ff382=await prepareProviderRequest(_0xd3d7dd,{'sessionManager':this[_0x5f1b2b(0x3b8,0x377,_0x50b138._0x33cee5,0x43b)],'requestMutators':this[_0x5188c7(-0x1c3,-0x258,-0x253,-0x335)],'signal':_0x54ec0f}),_0x1c3afb=toChatRequest(_0x3ff382[_0x5f1b2b(_0x50b138._0x1bb59f,_0x50b138._0x3306b0,0x3d9,0x463)]),_0x578c0c=this[_0x5188c7(-0xa5,-_0x50b138._0x383aeb,-_0x50b138._0x157211,-_0x50b138._0x4e5524)][_0x5188c7(-_0x50b138._0x6d04f2,-0x157,-_0x50b138._0x30995e,-0x1c9)](this[_0x5f1b2b(_0x50b138._0x345b49,0x42d,0x430,0x44a)],_0x3ff382[_0x5f1b2b(_0x50b138._0x262ad8,0x4b8,_0x50b138._0x128980,_0x50b138._0x2b30c8)]);if(!_0x578c0c)throw this[_0x5f1b2b(0x354,0x3f4,0x353,0x3ab)]();function _0x5f1b2b(_0x28501f,_0x52c127,_0x45810f,_0x40277a){return _0x11bd88(_0x40277a- -0xef,_0x28501f,_0x45810f-_0xedde43._0x935299,_0x40277a-_0xedde43._0x266e98);}return{'baseUrl':this[_0x5188c7(-0x105,-0x162,-_0x50b138._0x157211,-_0x50b138._0x3cf45d)]['resolveBaseUrl'](this['baseUrl'],_0x3ff382[_0x5188c7(-0x166,-_0x50b138._0x2c3de7,-_0x50b138._0x1227d7,-0x8a)]),'credential':_0x578c0c,'request':_0x1c3afb,'session':_0x3ff382[_0x5188c7(-0x8e,-0x1a1,-0x151,-0x178)]};}[_0x11bd88(0x56a,0x4b1,0x5bb,0x5e8)](_0x450330){const _0x5d10c9={_0x4c7ce8:0x96,_0x5d8b1d:0xed,_0x47ba76:0x1c7},_0x1705a6={_0x1496d6:0x4cf},_0x5a8b2b={_0x64e61a:0x34c,_0x3a6fba:0x1e6,_0x549c5e:0x133};function _0x4c8de3(_0xed9125,_0x589696,_0x309bfa,_0x585882){return _0x11bd88(_0xed9125- -_0x5a8b2b._0x64e61a,_0x309bfa,_0x309bfa-_0x5a8b2b._0x3a6fba,_0x585882-_0x5a8b2b._0x549c5e);}function _0xb30952(_0x22ee32,_0x4e4073,_0x197ee2,_0x4e3740){return _0x11bd88(_0x197ee2- -_0x1705a6._0x1496d6,_0x22ee32,_0x197ee2-0x6e,_0x4e3740-0x37);}return{...structuredClone(_0x450330),..._0x450330[_0x4c8de3(_0x5d10c9._0x4c7ce8,0x17c,0x176,0x16b)]===void 0x0&&this['reasoning']!==void 0x0?{'reasoning':structuredClone(this[_0xb30952(-0x9f,-0x143,-_0x5d10c9._0x5d8b1d,-_0x5d10c9._0x47ba76)])}:{}};}async[_0x11bd88(0x55b,0x53a,0x4f2,0x5bb)](_0x49923d,_0x1530e1,_0x3df41f,_0xa849e2={},_0x18fcb6=!![]){const _0x5a3edf={_0x38e917:0x21f},_0x23370e={_0x3fbf46:0x33b,_0x42962f:0x43c,_0x41cd57:0x3ca,_0x58aafb:0x241,_0x2391b8:0x1d3,_0x1b1329:0x3b5,_0x276e2c:0x450,_0x2b63e8:0x35,_0x593506:0xd9,_0x1cb1c1:0x368,_0x3b654e:0x3e7,_0x280352:0x423,_0x250696:0x214,_0x2e6a6f:0x403,_0x44f9a7:0x3cb,_0x4a7039:0x36e,_0x4ee471:0x16b,_0x1e0be6:0x19b,_0x2eb540:0xc6,_0x2a9ce7:0xf0,_0x3304b3:0x123,_0x29de05:0x101,_0x5dd758:0x190,_0x261383:0x370,_0x2c28b6:0x456,_0x28447c:0x428,_0x204194:0x1a6,_0x78d29b:0xe7,_0x4a65de:0x30f,_0x11b5a7:0x36d,_0x57517c:0x2cf,_0x239cb3:0x2d0,_0x2eb80f:0x2d2,_0x49fddf:0x3ac,_0x5dfae4:0x8f},_0x5a2040={_0x29ca52:0x624,_0x322d5c:0x7c},{signal:_0x4017f8}=_0xa849e2;function _0x1d458f(_0x2aa703,_0x3cfbf5,_0x5b1dd8,_0x1acbaf){return _0x11bd88(_0x3cfbf5- -_0x5a2040._0x29ca52,_0x2aa703,_0x5b1dd8-0x138,_0x1acbaf-_0x5a2040._0x322d5c);}const _0x11fec8=async()=>{const _0x32767c={_0x9c74d8:0x17c};function _0x2e4235(_0x18244a,_0x389f3c,_0x6018c8,_0x2ff0c2){return _0x4abb(_0x18244a- -0x2e1,_0x2ff0c2);}const _0x48b475=await this[_0x3dd91f(_0x23370e._0x3fbf46,_0x23370e._0x42962f,_0x23370e._0x41cd57,0x3c2)](_0x49923d,_0x4017f8);let _0x498a3f;try{_0x498a3f=_0x1530e1[_0x3dd91f(_0x23370e._0x58aafb,0x2be,_0x23370e._0x2391b8,0x2ae)](_0x48b475['request']);}catch(_0x3c5b24){if(_0x3c5b24 instanceof Error)throw new ProviderRequestConstructionError(_0x3c5b24[_0x3dd91f(0x3ed,0x40e,_0x23370e._0x1b1329,0x3f6)]);throw _0x3c5b24;}function _0x3dd91f(_0x566cde,_0x6ec005,_0x57dcd9,_0x2c33a9){return _0x4abb(_0x2c33a9-_0x32767c._0x9c74d8,_0x6ec005);}if(!_0x498a3f['path'])throw new ProviderRequestConstructionError(_0x3dd91f(0x418,0x47b,0x44b,_0x23370e._0x276e2c)+_0x1530e1['id']+_0x3dd91f(0x452,0x43a,0x3f4,0x373));const _0x5c1d7e=await this[_0x2e4235(-_0x23370e._0x2b63e8,-_0x23370e._0x593506,-0x65,0x36)]({'request':_0x48b475[_0x3dd91f(0x4eb,_0x23370e._0x1cb1c1,_0x23370e._0x3b654e,_0x23370e._0x280352)],'body':_0x498a3f[_0x3dd91f(0x393,0x39b,0x36b,0x36d)],'credential':_0x48b475[_0x2e4235(-0x157,-0x156,-_0x23370e._0x250696,-0xc2)],'session':_0x48b475['session'],'stream':_0x3df41f},{'accept':_0x498a3f[_0x3dd91f(_0x23370e._0x2e6a6f,_0x23370e._0x44f9a7,_0x23370e._0x4a7039,0x3ad)]??(_0x3df41f?_0x2e4235(-0x118,-_0x23370e._0x4ee471,-_0x23370e._0x1e0be6,-_0x23370e._0x2eb540):'application/json'),'includeContentType':_0x498a3f[_0x2e4235(-_0x23370e._0x2a9ce7,-_0x23370e._0x3304b3,-_0x23370e._0x29de05,-_0x23370e._0x5dd758)]!==void 0x0});for(const [_0x24b95a,_0x2464bd]of Object[_0x3dd91f(0x3ff,0x2d8,0x33c,0x329)](_0x498a3f[_0x3dd91f(0x35c,_0x23370e._0x261383,0x333,0x2ad)]??{})){_0x5c1d7e[_0x3dd91f(0x471,0x346,0x3eb,0x408)](_0x24b95a,_0x2464bd);}return this[_0x3dd91f(0x3ab,_0x23370e._0x2c28b6,_0x23370e._0x28447c,0x3c4)](''+_0x48b475[_0x3dd91f(0x416,0x414,0x3e0,0x349)]+_0x498a3f[_0x2e4235(-_0x23370e._0x204194,-0x1c6,-0x16c,-_0x23370e._0x78d29b)],{'method':_0x2e4235(-0x111,-0xc2,-0xaf,-0x1ae),'headers':_0x5c1d7e,..._0x498a3f[_0x3dd91f(0x2f0,_0x23370e._0x4a65de,0x426,_0x23370e._0x11b5a7)]!==void 0x0?{'body':JSON[_0x3dd91f(_0x23370e._0x57517c,_0x23370e._0x239cb3,_0x23370e._0x2eb80f,_0x23370e._0x49fddf)](_0x498a3f[_0x2e4235(-_0x23370e._0x2a9ce7,-0x8d,-_0x23370e._0x5dfae4,-0x11)])}:{},'signal':_0x4017f8});};return _0x18fcb6?await this[_0x1d458f(-0x29a,-0x1e7,-0x166,-_0x5a3edf._0x38e917)](_0x11fec8,_0xa849e2):await _0x11fec8();}async*[_0x11bd88(0x522,0x524,0x5e5,0x5dc)](_0x3e5057,_0x464845,_0x4329a3={}){const _0x44c397={_0x54da2b:0x347,_0x39005e:0x36e,_0x589e9f:0x37e,_0x5b8364:0x1c2,_0x21efe1:0x171,_0x3f050b:0x2b5,_0x5369c6:0x329,_0x375972:0x2ef,_0x293214:0x18c,_0x563636:0x2a4,_0x1203a4:0x1e2,_0x51c5b1:0x35f,_0x4f68cc:0x154,_0x266c27:0x115,_0x54e956:0xa0,_0xa54952:0x9c,_0x54a0af:0x11e,_0x30f494:0x281,_0x1109d2:0x19b,_0x243d96:0x1e0,_0x3b1a3d:0x2ec,_0x1d7d54:0x2b9,_0x4f025d:0x288,_0x18f7af:0x2cd,_0x582d86:0x23e,_0x5cc195:0x1d6,_0x580f0e:0x2a8,_0x3ce7a3:0x218,_0x524c49:0x111,_0x4d11f9:0x121,_0x2c2f77:0xe6,_0x1c5a19:0x24e,_0x22b940:0x117,_0x2aeccb:0x8a,_0x1a810f:0x135,_0x5ad6e3:0x18d,_0x7e7a4b:0x311,_0x47b4e2:0x92,_0x217d4f:0xa5,_0x43b006:0x17,_0x296186:0x9d,_0x340305:0xad,_0x2bd7e2:0x3e,_0x1e8670:0x72},_0x28ffda={_0x4d6da4:0x3e4,_0x19c136:0x1d1,_0x2ad857:0x18b},{signal:_0x13543a}=_0x4329a3;function _0x415a2d(_0x34ac66,_0x598859,_0x4d673f,_0x33c8f2){return _0xd1496a(_0x34ac66- -0x289,_0x598859-0x123,_0x33c8f2,_0x33c8f2-0x19d);}let _0x39c56f=![];function _0x5b8c66(_0x472f28,_0x530fc1,_0x12fd99,_0x425788){return _0x11bd88(_0x12fd99- -_0x28ffda._0x4d6da4,_0x425788,_0x12fd99-_0x28ffda._0x19c136,_0x425788-_0x28ffda._0x2ad857);}for(let _0x3d486e=0x0;_0x3d486e<MAX_PROVIDER_REQUEST_ATTEMPTS;_0x3d486e+=0x1){let _0x5e6c69=![];try{const _0x392f7c=await this[_0x415a2d(_0x44c397._0x54da2b,_0x44c397._0x39005e,_0x44c397._0x589e9f,0x432)](_0x3e5057,_0x464845,!![],_0x4329a3,![]);if(_0x392f7c[_0x415a2d(0x23a,_0x44c397._0x5b8364,0x225,_0x44c397._0x21efe1)]===0x191&&this[_0x415a2d(0x316,_0x44c397._0x3f050b,_0x44c397._0x5369c6,_0x44c397._0x375972)]&&!_0x39c56f){_0x39c56f=!![],this['sessionManager'][_0x5b8c66(0x10f,0x1d8,0x130,_0x44c397._0x293214)]();continue;}if(!_0x392f7c['ok'])throw await this[_0x415a2d(_0x44c397._0x563636,0x306,_0x44c397._0x1203a4,_0x44c397._0x51c5b1)](_0x392f7c);const _0x1b5856=_0x464845[_0x5b8c66(_0x44c397._0x4f68cc,_0x44c397._0x266c27,_0x44c397._0x54e956,_0x44c397._0xa54952)]?.(_0x3e5057);if(!_0x1b5856?.['consumeSseEvent'])throw new Error(_0x5b8c66(_0x44c397._0x54a0af,_0x44c397._0x30f494,_0x44c397._0x1109d2,0x232)+_0x464845['id']+_0x415a2d(0x234,_0x44c397._0x243d96,0x230,_0x44c397._0x3b1a3d));for await(const _0x2175fc of iterateSseEvents(_0x392f7c,_0x13543a)){const _0x55e7d5=_0x1b5856['consumeSseEvent'](_0x2175fc);for(const _0x2de0dc of _0x55e7d5){_0x5e6c69=!![],yield _0x2de0dc;}}yield{'type':_0x415a2d(_0x44c397._0x1d7d54,_0x44c397._0x4f025d,_0x44c397._0x18f7af,0x37d),'response':_0x1b5856[_0x415a2d(_0x44c397._0x582d86,_0x44c397._0x5cc195,_0x44c397._0x580f0e,_0x44c397._0x3ce7a3)]()};return;}catch(_0x73a01d){if(_0x5e6c69||!this[_0x5b8c66(_0x44c397._0x524c49,_0x44c397._0x4d11f9,_0x44c397._0x2c2f77,0xde)](_0x73a01d)||_0x3d486e===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0x73a01d;const _0x382c99=this[_0x415a2d(0x30d,_0x44c397._0x1c5a19,0x298,0x33d)](void 0x0,_0x3d486e),_0x26e97e={'type':_0x5b8c66(_0x44c397._0x22b940,_0x44c397._0x2aeccb,_0x44c397._0x1a810f,_0x44c397._0x5ad6e3),'attempt':_0x3d486e+0x1,'maxAttempts':MAX_PROVIDER_REQUEST_ATTEMPTS,'error':_0x73a01d instanceof Error?_0x73a01d[_0x415a2d(_0x44c397._0x7e7a4b,0x23f,0x38a,0x234)]:String(_0x73a01d),'delayMs':_0x382c99,'reason':this[_0x5b8c66(_0x44c397._0x47b4e2,0xa9,_0x44c397._0x217d4f,0xe5)](_0x73a01d)?'transport_error':_0x5b8c66(0xec,0x17,_0x44c397._0x43b006,_0x44c397._0x296186)};yield _0x26e97e,await this[_0x5b8c66(-_0x44c397._0x340305,-0x5,_0x44c397._0x2bd7e2,_0x44c397._0x1e8670)](_0x382c99,_0x13543a);}}}async*[_0xd1496a(0x587,0x4bb,0x569,0x4b4)](_0x11f610,_0x521363,_0x46d97b){const _0x1e0c3b={_0x553529:0x40b,_0x400c3d:0x3eb,_0x32f7b5:0x4d1,_0x51f09b:0x627,_0x313411:0x548,_0x2e6d9b:0x166,_0x52191a:0x193,_0x3c1b74:0x224,_0x3c2a35:0x30d,_0x3d6c10:0x20e,_0x17dea0:0x1b6,_0x1569de:0x23d,_0x37be72:0x27e,_0x3fd1de:0x217,_0x380837:0x4ca,_0x13e281:0x537,_0x4bf6c4:0x289,_0x41633c:0x3d4,_0x476bba:0x2fe,_0x20dafd:0x58f,_0x13d5e5:0x3df,_0x4c2961:0x438,_0x2130b8:0x5f7,_0x3b9725:0x58c,_0x148a3b:0x52f,_0xedd85b:0x531,_0x50c3ed:0x526,_0x5acb1a:0x2b1,_0x455526:0x43a,_0x8252fa:0x278,_0x360dc6:0x22d,_0x295a5d:0x1d1,_0x57d8ed:0x42d,_0x434d43:0x410,_0x459f42:0x4b3,_0x5c5299:0x254,_0x18aeac:0x304,_0x27508a:0x22a,_0x53904f:0x329,_0x37f2f6:0x2ec,_0x47d0ba:0x2fd,_0x3e2d47:0x249,_0x342a14:0x164,_0x33f453:0x323,_0x295b8b:0x51e,_0x449304:0x52e,_0x3f4084:0x4ad,_0x38cb97:0x3dd,_0x3c92ed:0x48b,_0x13da6c:0x42f,_0xd82dc8:0x424,_0x4cb47c:0x43f,_0x4d59d2:0x405,_0x47c536:0x549,_0x1432f5:0x4ff,_0x3b0c1d:0x4f7},_0x397592={_0x2d20c2:0x91,_0x225483:0x1e7},_0x1a5cb9=await this[_0x4bfdf1(_0x1e0c3b._0x553529,0x40b,_0x1e0c3b._0x400c3d,_0x1e0c3b._0x32f7b5)](_0x11f610,_0x46d97b);function _0x20b567(_0x5a2054,_0x3ebab9,_0x5652e1,_0x3004a6){return _0xd1496a(_0x5a2054- -0x255,_0x3ebab9-_0x397592._0x2d20c2,_0x5652e1,_0x3004a6-_0x397592._0x225483);}const _0x1d741e=_0x521363['createRequest'](_0x1a5cb9['request']),_0x177042=_0x521363['createStreamParser']?.(_0x11f610);if(!_0x177042?.['consumeWebSocketEvent'])throw new Error(_0x4bfdf1(_0x1e0c3b._0x51f09b,0x624,0x4bc,0x55f)+_0x521363['id']+_0x4bfdf1(0x4f5,0x501,0x613,_0x1e0c3b._0x313411));function _0x4bfdf1(_0x5b1d70,_0x4d68f5,_0x24a039,_0x223ce7){return _0x11bd88(_0x223ce7- -0x20,_0x24a039,_0x24a039-0x15f,_0x223ce7-0x179);}const _0x10486b=_0x1d741e['url']??(_0x1d741e[_0x20b567(0x206,0x231,0x2be,0x28a)]?(''+_0x1a5cb9['baseUrl']+_0x1d741e[_0x20b567(0x206,_0x1e0c3b._0x2e6d9b,_0x1e0c3b._0x52191a,0x2b8)])['replace'](/^http:/,_0x20b567(0x25b,0x26c,_0x1e0c3b._0x3c1b74,0x21f))[_0x20b567(0x252,0x1d1,_0x1e0c3b._0x3c2a35,0x30f)](/^https:/,_0x20b567(_0x1e0c3b._0x3d6c10,0x2b9,_0x1e0c3b._0x17dea0,0x1bb)):void 0x0);if(!_0x10486b)throw new ProviderRequestConstructionError('Surface\x20'+_0x521363['id']+_0x20b567(_0x1e0c3b._0x1569de,_0x1e0c3b._0x37be72,_0x1e0c3b._0x3fd1de,0x259));const _0x3be293=await this[_0x4bfdf1(0x5b4,_0x1e0c3b._0x380837,0x4e4,_0x1e0c3b._0x13e281)]({'request':_0x1a5cb9[_0x20b567(0x372,_0x1e0c3b._0x4bf6c4,0x328,0x3c9)],'body':_0x1d741e['initialEvent'],'credential':_0x1a5cb9['credential'],'session':_0x1a5cb9[_0x20b567(0x35b,_0x1e0c3b._0x41633c,0x27e,_0x1e0c3b._0x476bba)],'stream':!![]},{'accept':_0x1d741e[_0x4bfdf1(_0x1e0c3b._0x20dafd,0x44e,0x44a,0x4bc)]??'application/json','includeContentType':![]});for(const [_0x1b0a7e,_0x2582da]of Object[_0x4bfdf1(0x498,0x36f,_0x1e0c3b._0x13d5e5,_0x1e0c3b._0x4c2961)](_0x1d741e['headers']??{})){_0x3be293[_0x4bfdf1(_0x1e0c3b._0x2130b8,_0x1e0c3b._0x3b9725,_0x1e0c3b._0x148a3b,0x517)](_0x1b0a7e,_0x2582da);}_0x3be293[_0x4bfdf1(0x590,_0x1e0c3b._0xedd85b,0x4d8,_0x1e0c3b._0x50c3ed)](_0x4bfdf1(0x564,0x4d3,0x524,0x4bc));const _0x24ab6d=this[_0x20b567(0x392,_0x1e0c3b._0x5acb1a,_0x1e0c3b._0x455526,0x3b6)]({'headers':Object['fromEntries'](_0x3be293[_0x20b567(_0x1e0c3b._0x8252fa,_0x1e0c3b._0x360dc6,0x326,_0x1e0c3b._0x295a5d)]()),'url':_0x10486b});try{throwIfAborted(_0x46d97b);_0x24ab6d[_0x4bfdf1(_0x1e0c3b._0x57d8ed,0x46d,_0x1e0c3b._0x434d43,_0x1e0c3b._0x459f42)]!==WebSocket[_0x20b567(0x27f,_0x1e0c3b._0x5c5299,0x1e8,0x248)]&&await waitForWebSocketOpen(_0x24ab6d,_0x46d97b);throwIfAborted(_0x46d97b);_0x1d741e[_0x20b567(_0x1e0c3b._0x18aeac,_0x1e0c3b._0x27508a,_0x1e0c3b._0x53904f,0x3dc)]!==void 0x0&&_0x24ab6d['send'](JSON['stringify'](_0x1d741e[_0x20b567(_0x1e0c3b._0x18aeac,_0x1e0c3b._0x37f2f6,0x321,_0x1e0c3b._0x47d0ba)]));for await(const _0x27fad5 of iterateWebSocketMessages(_0x24ab6d,_0x46d97b)){yield*_0x177042[_0x20b567(_0x1e0c3b._0x3e2d47,_0x1e0c3b._0x342a14,0x1a0,_0x1e0c3b._0x33f453)](_0x27fad5);if(_0x177042[_0x4bfdf1(_0x1e0c3b._0x295b8b,0x486,0x4b6,_0x1e0c3b._0x449304)]?.())break;}yield{'type':_0x4bfdf1(0x467,0x542,0x474,_0x1e0c3b._0x3f4084),'response':_0x177042['finish']()};}finally{_0x24ab6d[_0x20b567(0x2f3,0x233,0x309,_0x1e0c3b._0x38cb97)]===WebSocket[_0x4bfdf1(_0x1e0c3b._0x3c92ed,_0x1e0c3b._0x13da6c,_0x1e0c3b._0xd82dc8,_0x1e0c3b._0x4cb47c)]&&_0x24ab6d[_0x4bfdf1(0x587,0x555,_0x1e0c3b._0x4d59d2,0x4e5)](0x3e8,_0x46d97b?.[_0x4bfdf1(0x579,_0x1e0c3b._0x47c536,_0x1e0c3b._0x1432f5,_0x1e0c3b._0x3b0c1d)]?'aborted':'completed');}}};async function createHttpError(_0x1a6c82){const _0x145f2a={_0x4f954d:0x3d8,_0x3c2a1b:0x412,_0x297251:0x43a,_0x106057:0x3b6,_0x151ad8:0x3c2,_0x9fcbef:0xc8,_0x516999:0x3ad,_0x25fed6:0x309},_0x3752cc={_0x4fa021:0x101},_0x3211af={_0x4e381d:0x58c,_0x33fe88:0x129};function _0x37b8ad(_0x251172,_0x509095,_0x4360f5,_0x47ee2c){return _0x11bd88(_0x47ee2c- -_0x3211af._0x4e381d,_0x251172,_0x4360f5-_0x3211af._0x33fe88,_0x47ee2c-0x71);}const _0x34d7be=await _0x1a6c82[_0x279d2b(0x334,0x430,_0x145f2a._0x4f954d,0x319)]();function _0x279d2b(_0xb37863,_0x5af878,_0x1c4db1,_0x1dc149){return _0xd1496a(_0x1c4db1- -_0x3752cc._0x4fa021,_0x5af878-0x183,_0x5af878,_0x1dc149-0x5e);}const _0x276f74=_0x34d7be[_0x37b8ad(-0x1fd,-0x12f,-0x233,-0x15e)]()||_0x1a6c82[_0x279d2b(_0x145f2a._0x3c2a1b,_0x145f2a._0x297251,_0x145f2a._0x106057,0x2e6)]||_0x279d2b(0x27d,0x365,0x352,_0x145f2a._0x151ad8);return new Error(_0x37b8ad(0x12,0x55,_0x145f2a._0x9fcbef,0x1)+_0x1a6c82[_0x279d2b(_0x145f2a._0x516999,_0x145f2a._0x25fed6,_0x145f2a._0x151ad8,0x42c)]+':\x20'+_0x276f74);}var AnthropicProviderAdapter=class{[_0xd1496a(0x582,0x4eb,0x54f,0x61b)];[_0x11bd88(0x495,0x3c1,0x50e,0x411)];[_0xd1496a(0x5fd,0x5d7,0x592,0x641)];constructor(_0x493670){const _0x3882b7={_0x5488f6:0xbb,_0x5a1081:0x184,_0x2e974c:0x67,_0x29102e:0x77},_0x1c1a8e={_0x997eb7:0xf,_0x4040cb:0x143};this['authScheme']=_0x493670['authScheme'],this['headerResolver']=_0x493670[_0x60e9aa(-_0x3882b7._0x5488f6,-0xa9,-_0x3882b7._0x5a1081,-0x136)];function _0x60e9aa(_0xcd4101,_0x5aa899,_0x20edfc,_0xd86dbe){return _0xd1496a(_0xd86dbe- -0x640,_0x5aa899-_0x1c1a8e._0x997eb7,_0x5aa899,_0xd86dbe-_0x1c1a8e._0x4040cb);}function _0x2be397(_0x31ef23,_0x243025,_0x5979d6,_0x2b71c7){return _0x11bd88(_0x5979d6- -0x589,_0x31ef23,_0x5979d6-0xb2,_0x2b71c7-0x42);}this[_0x2be397(-0xd4,0x69,-0x1,-0x31)]=_0x493670[_0x2be397(0x1f,-_0x3882b7._0x2e974c,-0x1,-_0x3882b7._0x29102e)];}[_0x11bd88(0x49a,0x444,0x465,0x3ce)](){return new Error('AnthropicModel\x20requires\x20an\x20apiKey\x20or\x20providerSessionResolver');}async[_0x11bd88(0x557,0x4be,0x48e,0x54e)](_0x42b7b2,_0x23317c){const _0x36fd5b={_0xba4749:0x50a,_0x7ee99c:0x438,_0x2e5ea2:0x48d,_0x82fc75:0x4af,_0x39fcbd:0x465,_0xb20922:0x161,_0x441fe2:0x240,_0x120072:0x4f7,_0x2a9cf0:0x40f,_0x16d097:0x561,_0x3e5fad:0x55b,_0x12d81a:0x4d2,_0x13d944:0x4dc,_0x35c40c:0x441,_0x5f2164:0x436,_0x13a7e6:0x505,_0x5f595c:0x4eb,_0x45fd29:0x475,_0x379acd:0x422,_0x3dc8ec:0x36c,_0x830983:0x4b6,_0x23a874:0x56b,_0xd47a11:0x110,_0xd096ef:0x1a0,_0x3fd352:0x222,_0x26930b:0x54,_0x304dad:0x143,_0x50fbbd:0x93,_0x5e102b:0x13e,_0x4eafaa:0x37b,_0x1f3260:0x404,_0x4abcb6:0x104,_0x4fe64c:0x54b,_0x1f1e80:0x28f,_0x304092:0x244,_0x4be7d5:0x19a,_0x15ffd4:0x531,_0x29a069:0x50a},_0x40e242={_0x4492fb:0x5b};function _0xd8f14d(_0x25649f,_0x1b16f4,_0x3bb9d9,_0x45757b){return _0x11bd88(_0x45757b- -0x2f7,_0x25649f,_0x3bb9d9-0x16c,_0x45757b-0x133);}const _0x297e37=new Headers();_0x297e37[_0x424ab1(0x4cf,_0x36fd5b._0xba4749,0x56d,_0x36fd5b._0x7ee99c)]('accept',_0x23317c[_0x424ab1(_0x36fd5b._0x2e5ea2,_0x36fd5b._0x82fc75,0x46b,_0x36fd5b._0x39fcbd)]),_0x297e37[_0xd8f14d(_0x36fd5b._0xb20922,0x275,0x163,_0x36fd5b._0x441fe2)](_0x424ab1(_0x36fd5b._0x120072,0x4cf,0x47e,_0x36fd5b._0x2a9cf0),this[_0x424ab1(_0x36fd5b._0x16d097,_0x36fd5b._0x3e5fad,0x573,0x47c)]);function _0x424ab1(_0x587744,_0x197ab9,_0x4e76d0,_0x5d9c11){return _0x11bd88(_0x197ab9- -0x2d,_0x587744,_0x4e76d0-_0x40e242._0x4492fb,_0x5d9c11-0x72);}_0x23317c[_0x424ab1(_0x36fd5b._0x12d81a,_0x36fd5b._0x13d944,_0x36fd5b._0x35c40c,_0x36fd5b._0x5f2164)]!==![]&&_0x297e37['set']('content-type',_0x424ab1(_0x36fd5b._0x13a7e6,_0x36fd5b._0x5f595c,0x500,0x586));this['authScheme']==='bearer'?_0x297e37['set'](_0x424ab1(_0x36fd5b._0x45fd29,_0x36fd5b._0x379acd,_0x36fd5b._0x3dc8ec,0x35a),_0x424ab1(0x407,_0x36fd5b._0x830983,_0x36fd5b._0x23a874,0x4ea)+_0x42b7b2[_0xd8f14d(_0x36fd5b._0xd47a11,_0x36fd5b._0xd096ef,0x5d,0x13e)]['value']):_0x297e37[_0xd8f14d(0x329,0x165,_0x36fd5b._0x3fd352,0x240)](_0xd8f14d(_0x36fd5b._0x26930b,0x209,0xff,0x134),_0x42b7b2[_0xd8f14d(_0x36fd5b._0x304dad,0x72,_0x36fd5b._0x50fbbd,_0x36fd5b._0x5e102b)][_0x424ab1(_0x36fd5b._0x4eafaa,_0x36fd5b._0x1f3260,0x393,0x48b)]);const _0x41fa55=await this[_0xd8f14d(0x14d,_0x36fd5b._0x4abcb6,0x12b,0x19e)]?.({'body':_0x42b7b2[_0x424ab1(0x4ef,0x46f,_0x36fd5b._0x4fe64c,0x428)],'credential':_0x42b7b2['credential'],'request':_0x42b7b2[_0xd8f14d(0x1b8,0x2d0,0x284,0x25b)],'session':_0x42b7b2[_0xd8f14d(_0x36fd5b._0x1f1e80,0x32f,0x206,_0x36fd5b._0x304092)],'stream':_0x42b7b2[_0x424ab1(0x5a7,0x54a,0x49e,0x4cf)]});for(const [_0x3d922d,_0x5ca215]of Object[_0xd8f14d(0x11c,0x12d,_0x36fd5b._0x4be7d5,0x161)](_0x41fa55??{})){_0x297e37[_0x424ab1(_0x36fd5b._0x15ffd4,_0x36fd5b._0x29a069,0x534,0x4dd)](_0x3d922d,_0x5ca215);}return _0x297e37;}[_0x11bd88(0x501,0x48f,0x52c,0x42f)](_0x2762e4){return _0x2762e4;}[_0x11bd88(0x40c,0x48f,0x338,0x3ff)](_0x157897,_0x233878){return resolveSessionBaseUrl(_0x157897,_0x233878);}[_0x11bd88(0x564,0x4fc,0x5e0,0x582)](_0x341b26,_0x11b65a){return resolveApiCredential(_0x341b26,_0x11b65a);}async[_0x11bd88(0x4b8,0x535,0x455,0x3f0)](_0x5771a3){return await createHttpError(_0x5771a3);}},AnthropicModel=class extends RoutedModel{constructor(_0x4476d4={}){const _0x3174c4={_0xcc4e05:0x342,_0x27a9d1:0x34a,_0x116141:0x42a,_0x2cbd5a:0x25a,_0x54f793:0x1eb,_0x51bb04:0x258,_0x561fba:0x37f,_0x583368:0x1b3,_0x84f452:0x27a,_0x27c401:0x278,_0x3fa587:0x360,_0x243572:0x1ab,_0x2d37bf:0x21f,_0x1a1af2:0x228,_0x114800:0x1db,_0x1281d2:0x136,_0x332d26:0x1c9,_0x2624d0:0x368,_0x4f5a40:0x306,_0xd60efe:0x3db,_0x109330:0x2e3,_0x1320c2:0x231,_0x3d6a8f:0x1fa,_0x57f2d9:0x2bc,_0x413563:0x2a6,_0x555588:0x1d3,_0x1090fd:0x403,_0x3eda35:0x399,_0x1d5c7e:0x24a,_0x55f6c0:0x243,_0x5ad0da:0x232,_0x98d04a:0x15a,_0xfd4b8b:0x175},_0x12302d={_0x1d49ef:0xb6,_0x52c843:0x3b},_0x215fb8={_0x57300f:0xe8};function _0x120a42(_0x46d0df,_0x5b5829,_0x4244bb,_0x4ae8dd){return _0xd1496a(_0x5b5829- -0x264,_0x5b5829-_0x215fb8._0x57300f,_0x46d0df,_0x4ae8dd-0x1b0);}function _0x15b85d(_0x5ec347,_0x598bbe,_0x2b73b1,_0xedd4c5){return _0x11bd88(_0x598bbe- -0x207,_0x2b73b1,_0x2b73b1-_0x12302d._0x1d49ef,_0xedd4c5-_0x12302d._0x52c843);}super({'apiKey':_0x4476d4[_0x120a42(_0x3174c4._0xcc4e05,_0x3174c4._0x27a9d1,0x2b0,_0x3174c4._0x116141)],'baseUrl':trimTrailingSlashes(_0x4476d4[_0x15b85d(0x1d7,0x271,0x1e3,_0x3174c4._0x2cbd5a)]??_0x120a42(_0x3174c4._0x54f793,0x255,0x1d3,_0x3174c4._0x51bb04)),'fetch':_0x4476d4[_0x120a42(0x27c,0x327,_0x3174c4._0x561fba,0x289)],'maxTokens':_0x4476d4[_0x15b85d(0x272,0x265,0x19e,0x311)]??0x4000,'model':_0x4476d4[_0x120a42(_0x3174c4._0x583368,_0x3174c4._0x84f452,_0x3174c4._0x27c401,_0x3174c4._0x3fa587)]??_0x120a42(_0x3174c4._0x243572,_0x3174c4._0x2d37bf,0x28c,0x13f),'reasoning':_0x4476d4[_0x15b85d(_0x3174c4._0x1a1af2,_0x3174c4._0x114800,_0x3174c4._0x1281d2,_0x3174c4._0x332d26)],'providerAdapter':new AnthropicProviderAdapter({'authScheme':_0x4476d4[_0x15b85d(_0x3174c4._0x2624d0,_0x3174c4._0x4f5a40,_0x3174c4._0xd60efe,0x235)]??_0x120a42(_0x3174c4._0x109330,0x23c,_0x3174c4._0x1320c2,_0x3174c4._0x3d6a8f),'headerResolver':_0x4476d4[_0x120a42(_0x3174c4._0x57f2d9,_0x3174c4._0x413563,_0x3174c4._0x555588,0x388)],'protocolVersion':_0x4476d4[_0x120a42(_0x3174c4._0x1090fd,_0x3174c4._0x3eda35,0x320,0x393)]??_0x15b85d(0x208,0x2d6,_0x3174c4._0x1d5c7e,_0x3174c4._0x55f6c0)}),'providerSessionResolver':_0x4476d4['providerSessionResolver'],'requestMutators':_0x4476d4[_0x15b85d(_0x3174c4._0x555588,_0x3174c4._0x5ad0da,_0x3174c4._0x98d04a,_0x3174c4._0xfd4b8b)],'router':new StaticModelSurfaceRouter({'complete':ANTHROPIC_MESSAGES_SURFACE,'stream':ANTHROPIC_MESSAGES_STREAM_SURFACE}),'surfaces':createAnthropicSurfaces()});}[_0xd1496a(0x5ff,0x556,0x595,0x6c4)](_0x1ad0c9,_0x214108){const _0x21090e={_0x1e404e:0x14a,_0x21022b:0x1ff},_0x1a9a2e={_0x1446bb:0x477,_0x158513:0x136,_0x50007a:0xfb};function _0x28a255(_0x397e57,_0x198c68,_0x54a9f1,_0x5bb86e){return _0xd1496a(_0x54a9f1- -_0x1a9a2e._0x1446bb,_0x198c68-_0x1a9a2e._0x158513,_0x397e57,_0x5bb86e-_0x1a9a2e._0x50007a);}return this[_0x28a255(0xc3,_0x21090e._0x1e404e,0x15e,_0x21090e._0x21022b)](_0x1ad0c9,ANTHROPIC_MESSAGES_SURFACE,_0x214108);}[_0x11bd88(0x577,0x62e,0x5bd,0x56c)](_0x2e406a,_0x56460f){const _0x44d1f2={_0x1d429b:0x4b8,_0x22c0eb:0x4ee,_0x2f7cd1:0x48f};function _0x5cd64f(_0x1481f8,_0x165ea7,_0x6baea,_0x21adc2){return _0xd1496a(_0x1481f8- -0xe9,_0x165ea7-0x164,_0x6baea,_0x21adc2-0x94);}return this[_0x5cd64f(_0x44d1f2._0x1d429b,_0x44d1f2._0x22c0eb,0x548,_0x44d1f2._0x2f7cd1)](_0x2e406a,ANTHROPIC_MESSAGES_STREAM_SURFACE,_0x56460f);}},OPENAI_CHAT_COMPLETIONS_SURFACE=_0x11bd88(0x4c3,0x549,0x518,0x440),OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE=_0xd1496a(0x4d3,0x4cb,0x56e,0x59b),OPENAI_RESPONSES_SURFACE=_0xd1496a(0x490,0x468,0x571,0x3d1),OPENAI_RESPONSES_STREAM_SURFACE=_0x11bd88(0x583,0x523,0x594,0x4ea),OPENAI_RESPONSES_WEBSOCKET_SURFACE=_0x11bd88(0x4d0,0x3fb,0x47e,0x4ee),OpenAiApiError=class extends Error{[_0xd1496a(0x4c3,0x54c,0x562,0x51c)];[_0xd1496a(0x511,0x4d0,0x4a3,0x4c8)];constructor(_0x35a986,_0x2103e6,_0x17c264){const _0x2ab13b={_0x4344ab:0x2c4,_0xf707f8:0x55f,_0x17c923:0x4e6,_0x8d3fab:0x53c,_0x5dd316:0x40f,_0x1250c6:0x4a3},_0x36b630={_0x3d6717:0x20},_0x1cc540={_0x43f2a2:0x5f,_0x5805a4:0x73};function _0x2a09b5(_0x157464,_0x21b6d4,_0x4524eb,_0x5b66b5){return _0xd1496a(_0x5b66b5- -0x1d2,_0x21b6d4-_0x1cc540._0x43f2a2,_0x157464,_0x5b66b5-_0x1cc540._0x5805a4);}function _0x4272c0(_0x585e77,_0x2fd769,_0x4811b1,_0x40ee10){return _0xd1496a(_0x4811b1- -_0x36b630._0x3d6717,_0x2fd769-0x144,_0x40ee10,_0x40ee10-0xeb);}super(_0x17c264),this[_0x2a09b5(0x397,0x27f,0x1db,_0x2ab13b._0x4344ab)]=_0x4272c0(_0x2ab13b._0xf707f8,_0x2ab13b._0x17c923,_0x2ab13b._0x8d3fab,0x564),this[_0x4272c0(_0x2ab13b._0x5dd316,0x55c,_0x2ab13b._0x1250c6,0x462)]=_0x35a986,this['body']=_0x2103e6;}};function stringifySystem(_0x5afdc3){const _0x4ec8b8={_0x38fa45:0x120,_0x3d5d20:0xcb},_0x4e0f78={_0x99786d:0x575,_0x42ef42:0x6f},_0x2e44d0={_0x442e69:0x3bf,_0x1ca229:0x1c,_0x38fefa:0x6e};function _0x4e3f7f(_0x245730,_0x127a10,_0x34d871,_0x3a0f33){return _0xd1496a(_0x245730- -_0x2e44d0._0x442e69,_0x127a10-_0x2e44d0._0x1ca229,_0x3a0f33,_0x3a0f33-_0x2e44d0._0x38fefa);}function _0xc30e04(_0x3f0363,_0x5a1ec5,_0x1592ec,_0x53a1d5){return _0x11bd88(_0x53a1d5- -_0x4e0f78._0x99786d,_0x5a1ec5,_0x1592ec-_0x4e0f78._0x42ef42,_0x53a1d5-0x69);}return _0x5afdc3['map'](_0x4ebe75=>_0x4ebe75[_0x4e3f7f(0x11a,0xcb,0x1b7,0x18c)])[_0x4e3f7f(_0x4ec8b8._0x38fa45,0xa2,0x16e,_0x4ec8b8._0x3d5d20)]('\x0a\x0a');}function createToolDefinitions(_0xe78d56){const _0x2a32ce={_0x52f605:0x2e,_0x7b21f1:0x2a,_0x4fd384:0x205,_0x3fd319:0x1c0,_0x9976c:0x185},_0x3f8465={_0x221ac4:0xeb,_0x278d31:0xaf,_0x16a0c5:0x7,_0x5b1ee8:0x20b,_0x1ae9db:0x18d,_0x286b8b:0x199},_0x5076db={_0x53abd7:0x3a6,_0x18c91e:0xae},_0x599815={_0x2ddb7e:0x4ce,_0x10bc7a:0x1c7,_0xecfd49:0x44};if(_0xe78d56[_0x5807a0(0x6b,_0x2a32ce._0x52f605,-0x7,-_0x2a32ce._0x7b21f1)]===0x0)return void 0x0;function _0x5807a0(_0x3e2754,_0x1d9d02,_0x12332c,_0x4d1936){return _0xd1496a(_0x4d1936- -_0x599815._0x2ddb7e,_0x1d9d02-_0x599815._0x10bc7a,_0x12332c,_0x4d1936-_0x599815._0xecfd49);}function _0x599bc5(_0x4c63ae,_0x427244,_0x5daac6,_0x52f7ef){return _0xd1496a(_0x5daac6- -_0x5076db._0x53abd7,_0x427244-_0x5076db._0x18c91e,_0x52f7ef,_0x52f7ef-0xd8);}return _0xe78d56[_0x599bc5(_0x2a32ce._0x4fd384,_0x2a32ce._0x3fd319,0x151,_0x2a32ce._0x9976c)](_0x11225a=>{const _0xf0cc22={_0x4521ac:0x90},_0x196fbd={_0x32c8aa:0x133,_0xdcc4dd:0x4e};function _0x10e052(_0x3fc8db,_0x1c3994,_0x999f5d,_0x53ed28){return _0x5807a0(_0x3fc8db-_0x196fbd._0x32c8aa,_0x1c3994-0x12a,_0x999f5d,_0x3fc8db- -_0x196fbd._0xdcc4dd);}function _0x1744b7(_0x13788f,_0x5b498c,_0x285563,_0x52f0f8){return _0x5807a0(_0x13788f-0x4b,_0x5b498c-0x1b9,_0x13788f,_0x5b498c-_0xf0cc22._0x4521ac);}return{'type':_0x10e052(0x57,0x94,_0x3f8465._0x221ac4,-0x46),'function':{'name':_0x11225a[_0x10e052(-0x86,-_0x3f8465._0x278d31,-_0x3f8465._0x16a0c5,-0x66)],'description':_0x11225a[_0x1744b7(_0x3f8465._0x5b1ee8,_0x3f8465._0x1ae9db,_0x3f8465._0x286b8b,0x208)],'parameters':_0x11225a['input_schema']}};});}function isImageToolResultBlock(_0x5b00ab){const _0x35dd3a={_0x407ed4:0x167,_0x3cd4b8:0xb9,_0x129f6f:0xd8,_0x47a20b:0x21c,_0x1f14a0:0xf5,_0x179047:0x15d,_0x18ed6a:0x438,_0x3491ab:0x419,_0x53c34a:0x3a4,_0x15a9d4:0x2eb,_0x4c1c40:0x589,_0x21720c:0x4c4,_0x5236ef:0x3ab,_0x10490b:0x1ae,_0x552ca0:0x19e},_0x3b498f={_0x323b0d:0x11b},_0x241998={_0x21417e:0x117};if(typeof _0x5b00ab!==_0x2e4143(-_0x35dd3a._0x407ed4,-0x13c,-0x15a,-_0x35dd3a._0x3cd4b8)||_0x5b00ab===null||Array['isArray'](_0x5b00ab))return![];const _0x2131c7=_0x5b00ab;function _0x2e4143(_0x4a2d13,_0x46ebb4,_0x1564db,_0x315c14){return _0x11bd88(_0x315c14- -0x5b0,_0x1564db,_0x1564db-0x96,_0x315c14-_0x241998._0x21417e);}function _0x4c0dae(_0x3f4f73,_0x1daa49,_0x33db9e,_0x21c87b){return _0x11bd88(_0x1daa49- -0x66,_0x21c87b,_0x33db9e-_0x3b498f._0x323b0d,_0x21c87b-0x117);}return _0x2131c7[_0x2e4143(-0x13d,-0x18b,-0x191,-_0x35dd3a._0x129f6f)]===_0x2e4143(-0x1cd,-_0x35dd3a._0x47a20b,-_0x35dd3a._0x1f14a0,-_0x35dd3a._0x179047)&&_0x2131c7[_0x4c0dae(_0x35dd3a._0x18ed6a,_0x35dd3a._0x3491ab,0x501,_0x35dd3a._0x53c34a)]?.['type']===_0x4c0dae(0x2ef,0x39f,_0x35dd3a._0x15a9d4,0x3ad)&&typeof _0x2131c7[_0x4c0dae(0x4f4,0x419,0x361,0x4ff)][_0x4c0dae(_0x35dd3a._0x4c1c40,0x4ff,_0x35dd3a._0x21720c,0x4ea)]==='string'&&typeof _0x2131c7['source'][_0x4c0dae(0x430,0x373,0x3e9,_0x35dd3a._0x5236ef)]===_0x2e4143(-0x1de,-_0x35dd3a._0x10490b,-0xd7,-_0x35dd3a._0x552ca0);}function getToolResultText(_0x346b1d){const _0x5509a0={_0xd40371:0x2f1,_0x44ca8c:0x2b1,_0x3cb75a:0x288,_0x18a4d8:0x1d7,_0xe5fafd:0x438,_0x128eed:0x489,_0x45ed77:0x4d6,_0x42b599:0x4fc,_0x24320f:0x325,_0x5b5201:0x387,_0x5a40b1:0x5bc},_0x2a4da9={_0x472abb:0x677,_0x2ccc69:0x5fb,_0x3c6e60:0x5fb,_0x959fa1:0x535,_0x44537:0x5f1,_0xb710b4:0x3d0},_0x4c33d7={_0xcf50fe:0x4a,_0x5a51a2:0x194,_0x227f09:0x145},_0x424639={_0x345241:0x1c2};function _0x28da66(_0x27b9e5,_0x32a43b,_0x5d799,_0x212e9a){return _0x11bd88(_0x5d799- -0x350,_0x212e9a,_0x5d799-0x6d,_0x212e9a-_0x424639._0x345241);}if(typeof _0x346b1d===_0x3f3544(0x3c8,_0x5509a0._0xd40371,0x421,0x40f))return _0x346b1d;function _0x3f3544(_0x430d60,_0x5bfc1a,_0x29c621,_0x5ccfae){return _0x11bd88(_0x430d60- -_0x4c33d7._0xcf50fe,_0x5bfc1a,_0x29c621-_0x4c33d7._0x5a51a2,_0x5ccfae-_0x4c33d7._0x227f09);}const _0x23ede4=_0x346b1d[_0x28da66(_0x5509a0._0x44ca8c,_0x5509a0._0x3cb75a,_0x5509a0._0x18a4d8,0x192)](_0xf5ff45=>{const _0x6f9b59={_0xbb48c4:0x138,_0x18669c:0x1a4},_0x438fae={_0x247130:0x4a};function _0x1408fa(_0x10837c,_0x4c519a,_0x552f25,_0x57ad64){return _0x3f3544(_0x10837c- -_0x438fae._0x247130,_0x552f25,_0x552f25-0x1b1,_0x57ad64-0x49);}function _0xd62e35(_0x4dbd27,_0x199c2a,_0x1f09a3,_0x2e6d90){return _0x28da66(_0x4dbd27-_0x6f9b59._0xbb48c4,_0x199c2a-_0x6f9b59._0x18669c,_0x199c2a-0x454,_0x1f09a3);}return typeof _0xf5ff45===_0xd62e35(_0x2a4da9._0x472abb,_0x2a4da9._0x2ccc69,0x588,_0x2a4da9._0x3c6e60)&&_0xf5ff45!==null&&_0xf5ff45[_0xd62e35(_0x2a4da9._0x959fa1,0x5dc,0x608,_0x2a4da9._0x44537)]===_0x1408fa(_0x2a4da9._0xb710b4,0x33c,0x3e7,0x42c);})[_0x3f3544(_0x5509a0._0xe5fafd,_0x5509a0._0x128eed,_0x5509a0._0x45ed77,_0x5509a0._0x42b599)](_0x4d2e2b=>_0x4d2e2b[_0x3f3544(0x41a,0x419,0x346,0x353)])['join']('\x0a\x0a')[_0x3f3544(0x3e4,_0x5509a0._0x24320f,0x396,_0x5509a0._0x5b5201)]();return _0x23ede4['length']>0x0?_0x23ede4:_0x3f3544(0x52f,0x552,_0x5509a0._0x5a40b1,0x454);}function getToolResultImages(_0x3a7f0f){const _0x4b272b={_0x572ff5:0x4e9,_0x4d0b02:0x616,_0x165390:0x27,_0x58c58b:0x84,_0x87cccf:0x32},_0x5f56dc={_0x307b27:0x9,_0x3f7a83:0x84},_0x1a4132={_0x43551e:0x518,_0x1fcee2:0x15f};function _0x3f90d4(_0x4e4ce0,_0xf03829,_0x2abf0b,_0x133099){return _0xd1496a(_0xf03829- -_0x1a4132._0x43551e,_0xf03829-0x17a,_0x2abf0b,_0x133099-_0x1a4132._0x1fcee2);}function _0x43539e(_0x3f5b86,_0x509e24,_0x562620,_0x542488){return _0x11bd88(_0x3f5b86-_0x5f56dc._0x307b27,_0x509e24,_0x562620-_0x5f56dc._0x3f7a83,_0x542488-0x17a);}return Array[_0x43539e(0x58f,_0x4b272b._0x572ff5,_0x4b272b._0x4d0b02,0x4f1)](_0x3a7f0f)?_0x3a7f0f[_0x3f90d4(_0x4b272b._0x165390,_0x4b272b._0x58c58b,0x4f,_0x4b272b._0x87cccf)](isImageToolResultBlock):[];}function parseToolInput2(_0x3d54a8){const _0x2e164d={_0x5a4c85:0x44b,_0x17f357:0x428},_0x5ba2e3={_0x4527ad:0xb7,_0x522cb2:0x11a,_0x233389:0x182};function _0x37ccdf(_0x5042dd,_0x260593,_0x39d325,_0x2032c0){return _0xd1496a(_0x5042dd- -_0x5ba2e3._0x4527ad,_0x260593-_0x5ba2e3._0x522cb2,_0x260593,_0x2032c0-_0x5ba2e3._0x233389);}if(_0x3d54a8['length']===0x0)return{};try{return JSON[_0x37ccdf(0x3b0,_0x2e164d._0x5a4c85,_0x2e164d._0x17f357,0x3fd)](_0x3d54a8);}catch{return _0x3d54a8;}}function isResponsesReasoningItem(_0x46a3f0){const _0x3d6141={_0x3d5f76:0x406,_0x3a8082:0x36,_0x37dbf7:0xe6,_0x3f60ac:0xc,_0x406498:0xa0,_0x4c9059:0x19b,_0x4d9a78:0x196},_0x4f6091={_0x3eb415:0x155},_0x2d8dd0={_0x13e02e:0x175,_0x3b9cc2:0x36};function _0x3905bb(_0x39ab44,_0x5df07a,_0x38b57e,_0x27b6c8){return _0xd1496a(_0x5df07a- -_0x2d8dd0._0x13e02e,_0x5df07a-0xef,_0x39ab44,_0x27b6c8-_0x2d8dd0._0x3b9cc2);}function _0xde140d(_0x4e1698,_0x1ec2ab,_0x7a205f,_0x50ee85){return _0x11bd88(_0x50ee85- -0x578,_0x7a205f,_0x7a205f-0x1e5,_0x50ee85-_0x4f6091._0x3eb415);}return typeof _0x46a3f0==='object'&&_0x46a3f0!==null&&_0x3905bb(_0x3d6141._0x3d5f76,0x3d8,0x31d,0x4b8)in _0x46a3f0&&_0x46a3f0[_0xde140d(-_0x3d6141._0x3a8082,-_0x3d6141._0x37dbf7,_0x3d6141._0x3f60ac,-_0x3d6141._0x406498)]===_0xde140d(-0x1f4,-0x265,-_0x3d6141._0x4c9059,-_0x3d6141._0x4d9a78);}function isResponsesMessageItem(_0x4c7daf){const _0x1e69f1={_0x4d1495:0x1b,_0xa68ef4:0xa2,_0xc4a0e:0x83,_0x5284c0:0x645,_0x2cf038:0x5b9,_0x52a60d:0x5bd,_0x2d894a:0x528},_0x2268c4={_0x2ac83d:0x23};function _0x21aa22(_0x5d2d58,_0x141b6f,_0x21ee23,_0x5a9a69){return _0x11bd88(_0x5d2d58- -0x512,_0x5a9a69,_0x21ee23-0x50,_0x5a9a69-0xc8);}function _0x2e9967(_0x84eb67,_0x47e5e1,_0x200307,_0x3d3e2f){return _0xd1496a(_0x47e5e1-_0x2268c4._0x2ac83d,_0x47e5e1-0x127,_0x200307,_0x3d3e2f-0x15c);}return typeof _0x4c7daf===_0x21aa22(-_0x1e69f1._0x4d1495,0x38,-_0x1e69f1._0xa68ef4,_0x1e69f1._0xc4a0e)&&_0x4c7daf!==null&&_0x2e9967(0x55c,0x570,_0x1e69f1._0x5284c0,_0x1e69f1._0x2cf038)in _0x4c7daf&&_0x4c7daf['type']===_0x2e9967(0x525,_0x1e69f1._0x52a60d,0x5ad,_0x1e69f1._0x2d894a);}function isResponsesFunctionCallItem(_0x2bd0bd){const _0x491ac8={_0x4002ab:0x504,_0x39e6b2:0x4e3,_0x560cf7:0x505,_0x4ad33a:0x510},_0xab2bc9={_0x142da6:0x31},_0x4d07d6={_0x359a6a:0x14,_0x5d6077:0x1ca,_0x8edcb1:0xb};function _0x473fe4(_0xa0c242,_0x5c1e94,_0x411a1d,_0x45e857){return _0x11bd88(_0x5c1e94- -_0x4d07d6._0x359a6a,_0xa0c242,_0x411a1d-_0x4d07d6._0x5d6077,_0x45e857-_0x4d07d6._0x8edcb1);}function _0x5da9d5(_0x219010,_0x22a646,_0x36ad69,_0x4526df){return _0xd1496a(_0x219010- -0x357,_0x22a646-0x144,_0x22a646,_0x4526df-_0xab2bc9._0x142da6);}return typeof _0x2bd0bd===_0x473fe4(_0x491ac8._0x4002ab,_0x491ac8._0x39e6b2,0x4ae,_0x491ac8._0x560cf7)&&_0x2bd0bd!==null&&_0x5da9d5(0x1f6,0x2aa,0x1b2,0x2a4)in _0x2bd0bd&&_0x2bd0bd[_0x473fe4(0x4c2,0x4c4,_0x491ac8._0x4ad33a,0x417)]==='function_call';}function createContentBlocks(_0x31bfc4,_0x6b371d,_0x460e7f){const _0x314946={_0x86748c:0x50,_0x127300:0x61,_0x431ac6:0x203,_0x30d4cf:0x1bf,_0x14225b:0x15c,_0x380c48:0x128,_0x118ec9:0xc4,_0x3967df:0x29,_0x4808f5:0x1b,_0x46852b:0x18a,_0xdab79:0xd8,_0x1bb310:0xbd,_0x1a20f5:0x4b,_0x40cee3:0x271,_0x72d0fa:0xf6,_0x413a3e:0xd1,_0x37df92:0x205,_0x245e0c:0x11,_0x1bdb16:0x14a,_0x24c325:0x61,_0x3143d4:0x102,_0x63a52f:0x76,_0x3474b0:0x74,_0x10e44d:0x3,_0x517bd2:0x1e,_0x3284ec:0x4c,_0x123644:0xb3,_0x4a32fd:0xb},_0x5c672f={_0x1b0def:0x3c,_0x188a2b:0x55},_0x39e905={_0x482bdc:0x568,_0x4c08ef:0x149};function _0x584afc(_0x3c3fe3,_0x3557ce,_0xc5e6ea,_0x41748b){return _0xd1496a(_0x41748b- -_0x39e905._0x482bdc,_0x3557ce-0x12e,_0xc5e6ea,_0x41748b-_0x39e905._0x4c08ef);}const _0x2bc0c6=[];_0x460e7f&&_0x460e7f[_0x584afc(-0x13c,-0x41,-0xdc,-0xc4)]>0x0&&_0x2bc0c6[_0x584afc(-0x60,_0x314946._0x86748c,-0x11d,-_0x314946._0x127300)]({'type':_0x183b33(-_0x314946._0x431ac6,-0x1ed,-_0x314946._0x30d4cf,-0x285),'summary':[],'text':_0x460e7f});_0x31bfc4[_0x584afc(-_0x314946._0x14225b,-_0x314946._0x380c48,0x8,-_0x314946._0x118ec9)]>0x0&&_0x2bc0c6[_0x584afc(-_0x314946._0x3967df,_0x314946._0x4808f5,0x77,-_0x314946._0x127300)]({'type':_0x183b33(-_0x314946._0x46852b,-0x21e,-0x159,-0xde),'text':_0x31bfc4});for(const _0x794eec of _0x6b371d){if(_0x794eec['id'][_0x584afc(-_0x314946._0xdab79,-0x16b,-_0x314946._0x1bb310,-0xc5)]()['length']===0x0||_0x794eec[_0x183b33(-0x1a0,-_0x314946._0x1a20f5,-0xbf,-0x169)][_0x183b33(-0x1d4,-0x281,-0x19c,-_0x314946._0x40cee3)][_0x584afc(-0x11a,-_0x314946._0x72d0fa,-_0x314946._0x413a3e,-0xc5)]()[_0x183b33(-0x274,-_0x314946._0x37df92,-0x18e,-0xe9)]===0x0)continue;_0x2bc0c6[_0x584afc(-_0x314946._0x245e0c,-0x2a,-_0x314946._0x1bdb16,-_0x314946._0x24c325)]({'type':_0x584afc(-_0x314946._0x3143d4,-0x9b,-0xc4,-_0x314946._0x63a52f),'id':_0x794eec['id'],'name':_0x794eec[_0x584afc(_0x314946._0x3474b0,0xb5,0xbb,0xb)][_0x584afc(-_0x314946._0x10e44d,-_0x314946._0x517bd2,-_0x314946._0x3284ec,-0xd2)],'input':parseToolInput2(_0x794eec[_0x584afc(0x86,-0x87,_0x314946._0x123644,_0x314946._0x4a32fd)][_0x183b33(-0x76,-0x47,-0x2a,0xa4)])});}function _0x183b33(_0x56d720,_0x273758,_0x460fea,_0x316e2f){return _0x11bd88(_0x460fea- -0x5bd,_0x273758,_0x460fea-_0x5c672f._0x1b0def,_0x316e2f-_0x5c672f._0x188a2b);}return _0x2bc0c6;}function createUsage(_0x64d002){const _0x3bf296={_0x4021ec:0x14d,_0x53b259:0x5d,_0x66f17d:0xd2,_0x4a0387:0x46f,_0x4b097e:0x54b,_0x46689c:0x182,_0x3792cc:0xc7},_0x587e84={_0x3da4c4:0x19e};function _0x5505af(_0x120882,_0xd0719e,_0xbcfcde,_0x3d84bd){return _0xd1496a(_0xd0719e- -0x683,_0xd0719e-0x174,_0xbcfcde,_0x3d84bd-0x8f);}function _0x4c8360(_0x55bea8,_0x33843d,_0x2714d1,_0x11d20a){return _0xd1496a(_0x11d20a- -0x10,_0x33843d-0x4b,_0x33843d,_0x11d20a-_0x587e84._0x3da4c4);}return{'inputTokens':_0x64d002?.['prompt_tokens']??0x0,'outputTokens':_0x64d002?.[_0x5505af(-0x179,-0xc6,-_0x3bf296._0x4021ec,-0xcb)]??0x0,..._0x64d002?.[_0x5505af(-_0x3bf296._0x53b259,-0x124,-0x52,-_0x3bf296._0x66f17d)]?.[_0x4c8360(0x612,0x4cc,0x68a,0x5a8)]!==void 0x0?{'reasoningTokens':_0x64d002[_0x4c8360(_0x3bf296._0x4a0387,_0x3bf296._0x4b097e,0x524,0x54f)][_0x5505af(-_0x3bf296._0x46689c,-0xcb,-0x57,-_0x3bf296._0x3792cc)]}:{}};}function resolveReasoningVisibility2(_0x11f5b1){const _0x208093={_0x3ddd31:0x5a,_0x34874a:0xad,_0x286f56:0xe7,_0x3a269e:0x5a2,_0x2c4067:0x4bb,_0x35b576:0x477,_0x4ec03e:0x589,_0x3cc538:0x56c};function _0x468295(_0x114400,_0x351cbc,_0x1fc010,_0x400742){return _0x11bd88(_0x351cbc- -0x4,_0x114400,_0x1fc010-0x145,_0x400742-0xdb);}function _0x37c00d(_0x2194d0,_0x203730,_0x4fb8d6,_0x4189ff){return _0x11bd88(_0x2194d0- -0x43c,_0x4189ff,_0x4fb8d6-0x10,_0x4189ff-0xe);}return _0x11f5b1[_0x37c00d(-_0x208093._0x3ddd31,-_0x208093._0x34874a,0x2f,-_0x208093._0x286f56)]?.[_0x468295(_0x208093._0x3a269e,_0x208093._0x2c4067,_0x208093._0x35b576,_0x208093._0x4ec03e)]??_0x468295(_0x208093._0x3cc538,0x52b,0x49f,0x4e1);}function isUserVisibleReasoning(_0x3c8828){const _0x1b9bc3={_0x4d82e6:0x2b,_0x2802d1:0x7},_0x45c846={_0x42a197:0x428,_0x403572:0xe};function _0x433f67(_0x5bee60,_0x14d6a1,_0x5552d7,_0x5e43c4){return _0x11bd88(_0x5e43c4- -_0x45c846._0x42a197,_0x5bee60,_0x5552d7-0x1b2,_0x5e43c4-_0x45c846._0x403572);}return resolveOpenAiReasoningConfig(_0x3c8828[_0x433f67(_0x1b9bc3._0x4d82e6,_0x1b9bc3._0x2802d1,-0xd4,-0x46)])!==void 0x0&&resolveReasoningVisibility2(_0x3c8828)==='user-visible';}function createChatRequestBody(_0x523960,_0x1f6996){const _0x5aafbe={_0x479a1e:0xf,_0x475429:0x2c,_0x594581:0x3b,_0x6aef72:0x9a,_0xa2b0da:0x72,_0x34de0a:0x18,_0x5a83a2:0x520,_0x467808:0xba,_0xc9cce2:0xcd,_0x3bfb70:0x5a3,_0x121af6:0x51b,_0x516a2a:0x5e4,_0x2badcd:0x4e,_0x4868a3:0xea,_0x5eba19:0x56,_0x1cee38:0x15b,_0x3ef9cd:0xb1,_0x584a3d:0x112,_0x38852c:0x4f7,_0x3feb48:0x48b,_0x42df76:0x565,_0x43ecaf:0x74,_0x439c7f:0x137,_0x47ae45:0x21,_0x594d4c:0x5a3,_0x3a4f12:0x4d7,_0x317994:0x8d,_0x55e9fc:0x64,_0x23e781:0x525,_0x20748e:0x4c7,_0x1fc018:0x10c,_0x362f3f:0x19a,_0x42d748:0x51e,_0x4f4bae:0x552,_0x121105:0x62d,_0x139340:0xf5,_0x51b868:0x85,_0x18c88b:0x4,_0x45a60d:0xe4,_0x36ea70:0x1a9,_0x2140eb:0x179,_0x26f61d:0x49e,_0x3f90fa:0x5cf,_0xe67ee2:0x46c,_0x23bd1a:0x453,_0x37da2e:0x4cc,_0x4e7a95:0x58f,_0x4531d6:0x50d,_0x4d303b:0x4e,_0x26f241:0x24,_0x284814:0x69,_0x19601e:0x8e,_0x4eadad:0xbf,_0x204944:0x5ee,_0x4cd180:0x68e,_0x636713:0x48b,_0xc2bc9a:0xad,_0x152582:0x62,_0x23611f:0xc5,_0xca7091:0x182,_0x14e6f7:0xe8,_0x3d1285:0xa6,_0x5a8121:0xba,_0x11fd8b:0xf,_0x3b26a2:0x103,_0x5224c0:0x4c2,_0x1a7bbc:0x46d,_0x11a294:0x493,_0x22d920:0x103,_0x2d4b9a:0x111,_0x9bd57e:0x57c,_0x2338c0:0x53f,_0x3360a2:0x52a,_0x34416d:0x40e,_0x356741:0x5c6,_0x4f218a:0x545,_0x77a57a:0x508,_0x165736:0x624,_0xdf962b:0x582,_0x543465:0x4fc,_0x5e6daa:0x577,_0x46a9d6:0x599,_0x56e577:0x49f,_0x2bfb23:0x515,_0x187303:0x5e8,_0x40f33e:0x141,_0x79b624:0x3f,_0x5d832a:0x88,_0x3bf97a:0xeb,_0x1a052f:0x505,_0x3965e0:0xbf,_0x5e5322:0x2c,_0x524735:0x1a0,_0x17b53a:0x119,_0x3b1a1e:0x94,_0x2b6be4:0xa8,_0x3d5803:0xbf,_0x3d45cc:0x1d,_0x399d6b:0xec,_0x152b3c:0x598,_0x22939d:0x508},_0x5dfdc5={_0x1d42c0:0x555,_0x26dafa:0x66,_0x39e999:0xc9},_0x386e22={_0x5139d9:0x1e},_0x514e61={_0x5d89f4:0x11a,_0x1f5916:0x32,_0x3a50b6:0x195,_0x108b3e:0x489,_0x914cd0:0x31d,_0x3fb299:0x6d,_0xa4659d:0x299,_0x346040:0x52,_0x21da9f:0xcb,_0x47293f:0x18,_0x258aea:0x10d,_0x5b273d:0x11,_0x172bfc:0x2c,_0x328978:0x3c,_0x131508:0xaf,_0x36d21f:0xb9,_0x1da0a1:0x158,_0x121443:0xa5,_0x440513:0x349,_0x16c363:0x299,_0x472fc1:0x355,_0x3bbc9c:0x36d,_0x59cf42:0x30d,_0x2086a1:0x358,_0x2fe650:0x299,_0x4b6d9a:0x24d,_0xaa7dbd:0x2f0,_0x984dd7:0x11d,_0x4aa566:0xa3,_0x13df45:0x112,_0x21f0df:0x17c,_0x3a9663:0x391,_0x1227c9:0x3cf,_0x1d9408:0x41b,_0x41ef3f:0x69,_0xb11ed5:0xfa,_0xdd3635:0x65,_0x37cc1d:0x2a,_0x561285:0x325,_0x456166:0x300,_0x2c86cb:0x314,_0x3160af:0x4,_0x4aea8b:0x7d,_0x201e0f:0x21e,_0x52d485:0x299,_0x56eab8:0x228},_0x1d08b7={_0x5414a6:0x4d3,_0x27768b:0x6b,_0x3fefad:0x3e},_0x4682f3=[],_0x3d6478=stringifySystem(_0x523960[_0xa8e990(_0x5aafbe._0x479a1e,0xe5,-_0x5aafbe._0x475429,-_0x5aafbe._0x594581)]);_0x3d6478[_0xa8e990(-0xb1,-_0x5aafbe._0x6aef72,-0x104,-0x33)]>0x0&&_0x4682f3[_0xa8e990(-0x4e,-0x108,-0x83,-0x122)]({'role':_0xa8e990(0xf,-0x8f,_0x5aafbe._0xa2b0da,-_0x5aafbe._0x34de0a),'content':_0x3d6478});for(const _0x188212 of _0x523960[_0x4b249c(0x473,0x39b,0x530,_0x5aafbe._0x5a83a2)]){const _0x596b72=[],_0x4cffda=[],_0x13f19e=[],_0x191470=()=>{const _0x5475aa={_0x42846d:0x174,_0x10217d:0x17b};if(_0x188212[_0x3ae558(_0x514e61._0x5d89f4,0x114,_0x514e61._0x1f5916,_0x514e61._0x3a50b6)]===_0x5b3931(_0x514e61._0x108b3e,0x3b7,0x3ac,_0x514e61._0x914cd0)){if(_0x596b72[_0x3ae558(-_0x514e61._0x3fb299,-0x11,-0xd5,0x16)]===0x0&&_0x4cffda[_0x5b3931(0x2ee,_0x514e61._0xa4659d,0x20d,0x1bf)]===0x0)return;_0x4682f3[_0x3ae558(0x3e,_0x514e61._0x346040,_0x514e61._0x21da9f,_0x514e61._0x47293f)]({'role':_0x3ae558(_0x514e61._0x258aea,0x10d,0x1ef,0x11b),'content':_0x596b72[_0x3ae558(-0x3c,-_0x514e61._0x5b273d,0xcf,-_0x514e61._0x172bfc)]>0x0?_0x596b72['join']('\x0a\x0a'):null,..._0x4cffda[_0x3ae558(_0x514e61._0x328978,-0x11,_0x514e61._0x131508,-0x8e)]>0x0?{'tool_calls':_0x4cffda[_0x3ae558(_0x514e61._0x36d21f,0xc7,_0x514e61._0x1da0a1,_0x514e61._0x121443)](0x0)}:{}}),_0x596b72[_0x5b3931(_0x514e61._0x440513,_0x514e61._0x16c363,0x295,_0x514e61._0x472fc1)]=0x0;return;}function _0x5b3931(_0x2ee207,_0x1eb09b,_0x5d888b,_0x4e6f15){return _0xa8e990(_0x1eb09b-0x34a,_0x4e6f15,_0x5d888b-_0x5475aa._0x42846d,_0x4e6f15-_0x5475aa._0x10217d);}if(_0x188212[_0x5b3931(_0x514e61._0x3bbc9c,0x3be,_0x514e61._0x59cf42,_0x514e61._0x2086a1)]==='user'){if(_0x13f19e[_0x5b3931(0x380,_0x514e61._0x2fe650,_0x514e61._0x4b6d9a,0x22a)]===0x0)return;const _0x5a14d3=_0x13f19e[_0x5b3931(0x2ba,_0x514e61._0x3bbc9c,_0x514e61._0xaa7dbd,0x447)](_0x30b3f2=>_0x30b3f2[_0x3ae558(0x4a,0x98,0x143,0x41)]===_0x3ae558(-0x14c,-0x6c,-0x6f,-0x7));_0x4682f3[_0x3ae558(_0x514e61._0x984dd7,_0x514e61._0x346040,_0x514e61._0x4aa566,-0xa)]({'role':_0x3ae558(-0x15,0xd0,_0x514e61._0x13df45,_0x514e61._0x21f0df),'content':_0x5a14d3?_0x13f19e['splice'](0x0):_0x13f19e['splice'](0x0)[_0x5b3931(0x361,_0x514e61._0x3a9663,_0x514e61._0x1227c9,_0x514e61._0x1d9408)](_0x2bc22c=>_0x2bc22c['type']===_0x5b3931(0x304,0x2ce,0x258,0x2a3))[_0x3ae558(_0x514e61._0x41ef3f,0x42,_0x514e61._0xb11ed5,0x114)](_0x8098b4=>_0x8098b4[_0x3ae558(0x7b,0x24,0x36,-0x3c)])[_0x3ae558(_0x514e61._0xdd3635,_0x514e61._0x37cc1d,0xa2,0xf1)]('\x0a\x0a')});return;}function _0x3ae558(_0x5852ea,_0x3c0ba7,_0x18c4a6,_0x286d56){return _0x4b249c(_0x3c0ba7- -_0x1d08b7._0x5414a6,_0x3c0ba7-_0x1d08b7._0x27768b,_0x18c4a6,_0x286d56-_0x1d08b7._0x3fefad);}if(_0x596b72[_0x5b3931(0x349,_0x514e61._0x2fe650,_0x514e61._0x472fc1,0x372)]===0x0)return;_0x4682f3[_0x5b3931(_0x514e61._0x561285,0x2fc,_0x514e61._0x456166,_0x514e61._0x2c86cb)]({'role':_0x188212['role'],'content':_0x596b72[_0x3ae558(-0x88,_0x514e61._0x37cc1d,-_0x514e61._0x3160af,-_0x514e61._0x4aea8b)]('\x0a\x0a')}),_0x596b72[_0x5b3931(_0x514e61._0x201e0f,_0x514e61._0x52d485,_0x514e61._0x56eab8,0x20c)]=0x0;};for(const _0x2337b4 of normalizeContent(_0x188212[_0xa8e990(-_0x5aafbe._0x467808,-0x17d,-0x14b,-_0x5aafbe._0xc9cce2)])){if(_0x2337b4['type']==='text'){_0x188212['role']===_0x4b249c(_0x5aafbe._0x3bfb70,_0x5aafbe._0x121af6,_0x5aafbe._0x516a2a,0x58b)?_0x13f19e[_0xa8e990(-_0x5aafbe._0x2badcd,-0xb0,-_0x5aafbe._0x4868a3,-0xa1)]({'type':'text','text':_0x2337b4[_0xa8e990(-0x7c,_0x5aafbe._0x5eba19,-_0x5aafbe._0x1cee38,-_0x5aafbe._0x3ef9cd)]}):_0x596b72[_0xa8e990(-_0x5aafbe._0x2badcd,-0xa6,-0x37,-_0x5aafbe._0x584a3d)](_0x2337b4[_0x4b249c(_0x5aafbe._0x38852c,0x58b,_0x5aafbe._0x3feb48,_0x5aafbe._0x42df76)]);continue;}if(_0x188212[_0xa8e990(_0x5aafbe._0x43ecaf,0x13b,_0x5aafbe._0x439c7f,_0x5aafbe._0x47ae45)]===_0x4b249c(_0x5aafbe._0x594d4c,_0x5aafbe._0x3a4f12,0x4e5,0x5a7)&&_0x2337b4[_0xa8e990(-0x8,_0x5aafbe._0x317994,_0x5aafbe._0x55e9fc,_0x5aafbe._0x479a1e)]==='image'){_0x13f19e[_0x4b249c(_0x5aafbe._0x23e781,_0x5aafbe._0x20748e,0x4d5,0x4e2)]({'type':_0xa8e990(-_0x5aafbe._0x1fc018,-0x1dc,-0x109,-_0x5aafbe._0x362f3f),'image_url':{'url':_0x4b249c(0x5ed,_0x5aafbe._0x42d748,_0x5aafbe._0x4f4bae,_0x5aafbe._0x121105)+_0x2337b4[_0xa8e990(-0x61,-_0x5aafbe._0x139340,-0x58,-0x10a)][_0xa8e990(_0x5aafbe._0x51b868,0x80,_0x5aafbe._0x18c88b,-0x8)]+_0xa8e990(-_0x5aafbe._0x45a60d,-0xec,-_0x5aafbe._0x36ea70,-_0x5aafbe._0x2140eb)+_0x2337b4[_0x4b249c(0x512,_0x5aafbe._0x26f61d,0x465,_0x5aafbe._0x3f90fa)][_0x4b249c(_0x5aafbe._0xe67ee2,0x49c,_0x5aafbe._0x23bd1a,0x492)]}});continue;}if(_0x2337b4['type']===_0x4b249c(0x510,_0x5aafbe._0x37da2e,_0x5aafbe._0x4e7a95,_0x5aafbe._0x4531d6)){_0x4cffda[_0xa8e990(-_0x5aafbe._0x4d303b,-0xca,_0x5aafbe._0x26f241,_0x5aafbe._0x284814)]({'id':_0x2337b4['id'],'type':_0xa8e990(0x1e,-_0x5aafbe._0x19601e,-0x89,-0xb),'function':{'name':_0x2337b4[_0xa8e990(-_0x5aafbe._0x4eadad,-0x1a9,-_0x5aafbe._0x2badcd,-0x181)],'arguments':JSON['stringify'](_0x2337b4[_0x4b249c(0x5e4,_0x5aafbe._0x204944,_0x5aafbe._0x4cd180,0x68c)]??{})}});continue;}if(_0x2337b4['type']!==_0x4b249c(_0x5aafbe._0x636713,0x3ab,0x53c,0x3aa))continue;_0x191470(),_0x4682f3[_0xa8e990(-_0x5aafbe._0x4d303b,0x6a,-_0x5aafbe._0xc2bc9a,-_0x5aafbe._0x152582)]({'role':_0xa8e990(-0xec,-0x6b,-_0x5aafbe._0x23611f,-_0x5aafbe._0xca7091),'content':getToolResultText(_0x2337b4[_0xa8e990(-0xba,-_0x5aafbe._0x14e6f7,-_0x5aafbe._0x3d1285,-0x3f)]),'tool_call_id':_0x2337b4['tool_use_id']});const _0x12cd4c=getToolResultImages(_0x2337b4[_0xa8e990(-_0x5aafbe._0x5a8121,-_0x5aafbe._0x11fd8b,-_0x5aafbe._0x3b26a2,-0x7)]);_0x12cd4c[_0x4b249c(_0x5aafbe._0x5224c0,_0x5aafbe._0x1a7bbc,0x594,_0x5aafbe._0x11a294)]>0x0&&_0x4682f3[_0xa8e990(-0x4e,-_0x5aafbe._0x22d920,-_0x5aafbe._0x2d4b9a,-0x85)]({'role':_0x4b249c(_0x5aafbe._0x3bfb70,0x67b,_0x5aafbe._0x9bd57e,0x53d),'content':[{'type':_0x4b249c(_0x5aafbe._0x38852c,_0x5aafbe._0x2338c0,_0x5aafbe._0x3360a2,_0x5aafbe._0x34416d),'text':_0x4b249c(_0x5aafbe._0x356741,0x5e6,_0x5aafbe._0x4f218a,_0x5aafbe._0x77a57a)+_0x2337b4[_0x4b249c(_0x5aafbe._0x165736,0x5b8,_0x5aafbe._0xdf962b,0x69d)]+'.'},..._0x12cd4c['map'](_0x4ccff8=>({'type':'image_url','image_url':{'url':_0x4b249c(0x5ed,0x630,0x5b6,0x6d7)+_0x4ccff8[_0xa8e990(-0x61,-0x125,-0xbf,0x16)][_0x4b249c(0x5f8,0x53c,0x533,0x522)]+';base64,'+_0x4ccff8[_0xa8e990(-0x61,-0xca,0x5e,0x25)][_0x4b249c(0x46c,0x49f,0x3ce,0x3f7)]}}))]});}_0x191470();}function _0x4b249c(_0x10efbe,_0x43f2f5,_0x3f3469,_0x3b3e33){return _0xd1496a(_0x10efbe-_0x386e22._0x5139d9,_0x43f2f5-0xe9,_0x3f3469,_0x3b3e33-0xa0);}const _0x383a52=resolveOpenAiReasoningConfig(_0x523960['reasoning']);function _0xa8e990(_0x1f815f,_0x4b78a1,_0x5c13e7,_0x43dff1){return _0xd1496a(_0x1f815f- -_0x5dfdc5._0x1d42c0,_0x4b78a1-_0x5dfdc5._0x26dafa,_0x4b78a1,_0x43dff1-_0x5dfdc5._0x39e999);}return{'model':_0x523960[_0x4b249c(_0x5aafbe._0x543465,_0x5aafbe._0x5e6daa,0x446,_0x5aafbe._0x46a9d6)],'messages':_0x4682f3,'stream':_0x1f6996,..._0x383a52?{'max_completion_tokens':_0x523960[_0x4b249c(0x4ff,_0x5aafbe._0x56e577,_0x5aafbe._0x2bfb23,0x5c8)]}:{'max_tokens':_0x523960[_0x4b249c(0x4ff,_0x5aafbe._0x187303,0x4ca,0x45e)]},..._0x383a52?.['effort']?{'reasoning_effort':_0x383a52[_0xa8e990(-0xe7,-0xeb,-0x84,-_0x5aafbe._0x40f33e)]}:{},...createToolDefinitions(_0x523960['tools'])?{'tools':createToolDefinitions(_0x523960[_0xa8e990(-_0x5aafbe._0x79b624,-_0x5aafbe._0x5d832a,-_0x5aafbe._0x3bf97a,-0x96)])}:{},..._0x523960[_0x4b249c(0x4cb,0x52c,0x4a7,_0x5aafbe._0x1a052f)]?{'response_format':{'type':'json_schema','json_schema':{'name':_0x523960['outputFormat'][_0xa8e990(-_0x5aafbe._0x3965e0,-_0x5aafbe._0x5e5322,-_0x5aafbe._0x524735,-0x117)]??_0xa8e990(-_0x5aafbe._0x17b53a,-0x19d,-0x1dc,-_0x5aafbe._0x3b1a1e),'schema':_0x523960[_0xa8e990(-_0x5aafbe._0x2b6be4,-_0x5aafbe._0x3d5803,_0x5aafbe._0x3d45cc,-_0x5aafbe._0x399d6b)]['schema'],'strict':_0x523960[_0x4b249c(0x4cb,0x520,_0x5aafbe._0x152b3c,0x3e8)][_0x4b249c(_0x5aafbe._0x22939d,0x498,0x55d,0x56e)]??!![]}}}:{}};}function createResponsesRequestBody(_0x453dbb,_0x1b07b9){return{...toOpenAiResponsesRequest(_0x453dbb),..._0x1b07b9?{'stream':!![]}:{},'store':![]};}function createOpenAiResponsesWebSocketEvent(_0x3ef6bb,_0x2e2fc5={}){const _0x2954ee={_0x404743:0x571,_0x4f5552:0x43d,_0x103cb6:0x4a4,_0x26f02a:0x683,_0x15ebff:0x753,_0x5bb852:0x6bd,_0x4cb694:0x60d,_0x47b86c:0x501,_0x7b619e:0x453,_0x4f5976:0x497},_0x5af949={_0x150564:0x13c,_0x55787e:0x11e},_0x1c61fc={_0x978cb5:0x5b,_0x4e6825:0x171};function _0x496695(_0x54d080,_0x471111,_0x4da69a,_0x3429e1){return _0x11bd88(_0x3429e1- -_0x1c61fc._0x978cb5,_0x471111,_0x4da69a-0x179,_0x3429e1-_0x1c61fc._0x4e6825);}const _0xb3305c=toOpenAiResponsesRequest(_0x3ef6bb);function _0x1b4f62(_0x34d010,_0x2c7372,_0x230ce8,_0x3763cf){return _0xd1496a(_0x2c7372-0xbd,_0x2c7372-_0x5af949._0x150564,_0x230ce8,_0x3763cf-_0x5af949._0x55787e);}return{'type':_0x496695(_0x2954ee._0x404743,_0x2954ee._0x4f5552,0x501,_0x2954ee._0x103cb6),..._0xb3305c,..._0x2e2fc5[_0x1b4f62(0x70b,_0x2954ee._0x26f02a,_0x2954ee._0x15ebff,_0x2954ee._0x5bb852)]?{'input':_0x2e2fc5[_0x1b4f62(0x746,_0x2954ee._0x26f02a,0x6de,_0x2954ee._0x4cb694)]}:{},..._0x2e2fc5[_0x496695(0x40b,0x558,0x53c,0x4dd)]?{'previous_response_id':_0x2e2fc5[_0x496695(_0x2954ee._0x47b86c,_0x2954ee._0x7b619e,_0x2954ee._0x4f5976,0x4dd)]}:{},'store':![]};}function _0x11bd88(_0x5022af,_0x199724,_0x26a38f,_0x56ad06){return _0x4abb(_0x5022af-0x2ab,_0x199724);}function normalizeAssistantContent(_0x21f5d2){const _0x3fd8b7={_0x1dfd02:0x2fd,_0x3a7390:0x33d,_0x23590c:0x388,_0x1ca03b:0x337,_0x4c38fc:0x4a8},_0x4bd07c={_0x882f0c:0x47d,_0x1a4b5e:0x3ec,_0x42d5d2:0x4d4,_0x24439b:0x575,_0x44a605:0x332,_0x1a9ea7:0x4dd,_0x49ab6b:0x4cc,_0x21e800:0x46a},_0x427ce0={_0x40d462:0x16b},_0x1fd4e8={_0xe8e625:0x24e},_0x267bdd={_0x197829:0x39,_0x177575:0xd8,_0xc3adcb:0x56};if(typeof _0x21f5d2===_0x57b78c(0x3d9,_0x3fd8b7._0x1dfd02,0x3fe,_0x3fd8b7._0x3a7390))return _0x21f5d2;function _0x57b78c(_0x14cef9,_0x118431,_0x436cd9,_0x14c85c){return _0x11bd88(_0x14cef9- -_0x267bdd._0x197829,_0x118431,_0x436cd9-_0x267bdd._0x177575,_0x14c85c-_0x267bdd._0xc3adcb);}function _0x6588ea(_0x2a441f,_0x2994c4,_0x71eca9,_0x4899bf){return _0x11bd88(_0x2994c4- -_0x1fd4e8._0xe8e625,_0x2a441f,_0x71eca9-0x195,_0x4899bf-0x17c);}if(!Array[_0x6588ea(_0x3fd8b7._0x23590c,0x338,_0x3fd8b7._0x1ca03b,0x254)](_0x21f5d2))return'';return _0x21f5d2[_0x57b78c(0x449,0x42e,0x501,_0x3fd8b7._0x4c38fc)](_0x40ab5d=>{const _0x16268d={_0x22ee5e:0x11c};function _0xeb3e87(_0x5b56bf,_0x50e82a,_0x1ad0c3,_0x12bab1){return _0x6588ea(_0x50e82a,_0x12bab1-_0x16268d._0x22ee5e,_0x1ad0c3-0xd9,_0x12bab1-0x104);}function _0x1b70a1(_0x5eb63a,_0x3e4293,_0x3bfcb8,_0x1ae6b1){return _0x57b78c(_0x3bfcb8-0x35,_0x5eb63a,_0x3bfcb8-_0x427ce0._0x40d462,_0x1ae6b1-0x1af);}return _0x40ab5d[_0x1b70a1(_0x4bd07c._0x882f0c,_0x4bd07c._0x1a4b5e,_0x4bd07c._0x42d5d2,_0x4bd07c._0x24439b)]===_0xeb3e87(0x3bc,0x419,0x383,_0x4bd07c._0x44a605)?_0x40ab5d[_0x1b70a1(_0x4bd07c._0x1a9ea7,_0x4bd07c._0x49ab6b,0x460,_0x4bd07c._0x21e800)]:_0x40ab5d[_0xeb3e87(0x38c,0x3c2,0x3b6,0x423)];})['join']('');}function normalizeResponsesMessageContent(_0x3653f0){const _0x3534d1={_0x86063e:0x654,_0x3d9d1a:0x636,_0x39a1b2:0x8f,_0x267b76:0x30},_0x6ff438={_0x1770b5:0x51e,_0x5ef40a:0x536,_0x5174b0:0x4aa,_0x150910:0x565,_0x15dfa6:0x582,_0x36753f:0x491,_0x83368e:0x4e6,_0x36e9d2:0x29b,_0x33d593:0x28a,_0x354227:0x557,_0x198922:0x4a9,_0x7e4af8:0x4e1,_0x749eff:0x4fd,_0x596028:0x414,_0x844e33:0x3ab},_0x214cfd={_0x132d73:0x1d},_0x292ddb={_0xb943db:0xa9},_0xc53106={_0x310ac4:0x50f,_0x26f13e:0x97,_0x31ad53:0xac},_0x45df42={_0x1b49c3:0xb3,_0x4dc4d0:0xcb};function _0x3d1817(_0x44080d,_0x5a60c8,_0x53b8f8,_0x134b5e){return _0xd1496a(_0x134b5e-_0x45df42._0x1b49c3,_0x5a60c8-0x100,_0x44080d,_0x134b5e-_0x45df42._0x4dc4d0);}function _0x519adf(_0x533b63,_0x47fe11,_0x2477d6,_0x30ce46){return _0xd1496a(_0x47fe11- -_0xc53106._0x310ac4,_0x47fe11-_0xc53106._0x26f13e,_0x30ce46,_0x30ce46-_0xc53106._0x31ad53);}if(!Array['isArray'](_0x3653f0))return'';return _0x3653f0[_0x3d1817(_0x3534d1._0x86063e,_0x3534d1._0x3d9d1a,0x549,0x5aa)](_0x1ab3b3=>{function _0x3c7778(_0x5c5e7a,_0xb28e52,_0x3f0564,_0x49a910){return _0x3d1817(_0x49a910,_0xb28e52-0xa8,_0x3f0564-0x5f,_0x5c5e7a- -_0x292ddb._0xb943db);}if(!_0x1ab3b3||typeof _0x1ab3b3!=='object')return'';function _0x4b6e07(_0x27b359,_0x21188b,_0x5180b3,_0x43ac86){return _0x3d1817(_0x43ac86,_0x21188b-0x13b,_0x5180b3-_0x214cfd._0x132d73,_0x21188b- -0x269);}const _0x1bb7f5=_0x1ab3b3;if(_0x1bb7f5['type']===_0x3c7778(_0x6ff438._0x1770b5,_0x6ff438._0x5ef40a,0x45e,_0x6ff438._0x5174b0)&&typeof _0x1bb7f5[_0x3c7778(0x4e3,_0x6ff438._0x150910,_0x6ff438._0x15dfa6,0x467)]===_0x3c7778(_0x6ff438._0x36753f,0x51a,0x53b,_0x6ff438._0x83368e))return _0x1bb7f5[_0x4b6e07(_0x6ff438._0x36e9d2,0x323,_0x6ff438._0x33d593,0x3d5)];if(_0x1bb7f5[_0x3c7778(_0x6ff438._0x354227,_0x6ff438._0x198922,_0x6ff438._0x7e4af8,_0x6ff438._0x749eff)]==='refusal'&&typeof _0x1bb7f5['refusal']==='string')return _0x1bb7f5[_0x4b6e07(0x407,_0x6ff438._0x596028,0x4b7,_0x6ff438._0x844e33)];return'';})[_0x519adf(-_0x3534d1._0x39a1b2,-_0x3534d1._0x267b76,-0x86,0x8b)]('');}function extractOpenAiReasoningText(_0x1a7a77){const _0x475054={_0x163baf:0x235,_0x5ebfb1:0x20d,_0x4da87a:0x1d,_0x2f9c6a:0x98,_0x135a8e:0x30,_0x53bbbb:0x17f,_0x52a316:0x2fb,_0x18ffd0:0x162,_0x321690:0x1b3,_0x1c013f:0x144,_0x17fc14:0x130,_0x22d010:0x3da,_0x318ead:0x322,_0x4ad01e:0x38c,_0x51b8d7:0x20a,_0xf4d719:0x27d,_0x678944:0x20e,_0xb87f49:0x1b5,_0x389406:0x265,_0x36d4cc:0x226};if(typeof _0x1a7a77[_0x5580f2(0x1b6,0x25f,0x1cb,_0x475054._0x163baf)]===_0x5580f2(0x18d,_0x475054._0x5ebfb1,0x265,0x1e1))return _0x1a7a77['text'];function _0xddb832(_0x5c5593,_0x2cc360,_0x54d36f,_0xbe0160){return _0xd1496a(_0xbe0160- -0x5cb,_0x2cc360-0x4a,_0x2cc360,_0xbe0160-0x1dd);}function _0x5580f2(_0x263af8,_0x17000d,_0x13561c,_0x498038){return _0x11bd88(_0x17000d- -0x205,_0x13561c,_0x13561c-0x7c,_0x498038-0x108);}if(!Array[_0xddb832(-_0x475054._0x4da87a,-0xb7,_0x475054._0x2f9c6a,_0x475054._0x135a8e)](_0x1a7a77[_0x5580f2(_0x475054._0x53bbbb,0x221,_0x475054._0x52a316,_0x475054._0x18ffd0)]))return'';return _0x1a7a77[_0xddb832(-_0x475054._0x321690,-_0x475054._0x1c013f,-0x196,-_0x475054._0x17fc14)][_0x5580f2(_0x475054._0x22d010,_0x475054._0x318ead,_0x475054._0x4ad01e,0x241)](_0x23f34f=>_0x23f34f['type']==='reasoning_text'&&typeof _0x23f34f[_0xddb832(-0x13,-0x1da,-0x13f,-0xf2)]===_0xddb832(-0x148,-0x144,-0xd9,-0x144))[_0x5580f2(_0x475054._0x51b8d7,_0x475054._0xf4d719,_0x475054._0x678944,0x23d)](_0x2d6461=>_0x2d6461[_0x5580f2(0x30e,0x25f,0x250,0x2f7)]??'')[_0x5580f2(_0x475054._0xb87f49,_0x475054._0x389406,0x21e,_0x475054._0x36d4cc)]('');}function createOpenAiReasoningBlock(_0x20c593){const _0x1892d4={_0x21c101:0x146},_0x47df67={_0x25d2e4:0x67};function _0x3fdc7b(_0x24fbb7,_0x29f8c1,_0x38e036,_0x21cbc8){return _0xd1496a(_0x29f8c1-_0x47df67._0x25d2e4,_0x29f8c1-0x195,_0x24fbb7,_0x21cbc8-0x18c);}function _0x4564ad(_0x44d9f1,_0x2c659b,_0x524cd8,_0x105de9){return _0x11bd88(_0x105de9- -0x28d,_0x44d9f1,_0x524cd8-_0x1892d4._0x21c101,_0x105de9-0xc8);}const _0x102330=extractOpenAiReasoningText(_0x20c593);return{'type':_0x4564ad(0x248,0xb3,0xfa,0x171),'summary':structuredClone(_0x20c593['summary']??[]),..._0x20c593['id']?{'id':_0x20c593['id']}:{},..._0x20c593[_0x3fdc7b(0x61f,0x61e,0x6bf,0x69b)]?{'encryptedContent':_0x20c593['encrypted_content']}:{},..._0x102330[_0x4564ad(0x116,0xf0,0x1d3,0x1a2)]>0x0?{'text':_0x102330}:{}};}function hasVisibleOpenAiReasoning(_0x21afca){const _0x196397={_0x15ff74:0xae,_0x33f572:0xb0,_0x4bcb25:0x47,_0x5b66e7:0x7c,_0x573c19:0x69,_0x4c3520:0x161},_0x4bbbf7={_0x277381:0x1f1},_0x6d2415={_0x4c4f8a:0x1cb};function _0xced89d(_0x5c3cc0,_0x58a8af,_0x5f05b3,_0x45ee62){return _0x11bd88(_0x45ee62- -0x3c6,_0x5f05b3,_0x5f05b3-0x158,_0x45ee62-_0x6d2415._0x4c4f8a);}function _0x4d7356(_0x21ba46,_0x48866d,_0x5f56de,_0x1909fa){return _0x11bd88(_0x1909fa- -0x569,_0x48866d,_0x5f56de-0xb0,_0x1909fa-_0x4bbbf7._0x277381);}return _0x21afca[_0x4d7356(-_0x196397._0x15ff74,_0x196397._0x33f572,-_0x196397._0x4bcb25,0x22)][_0xced89d(_0x196397._0x5b66e7,0xbb,0x46,_0x196397._0x573c19)]>0x0||typeof _0x21afca[_0x4d7356(-0xeb,-0x1d0,-_0x196397._0x4c3520,-0x105)]==='string';}function parseChatCompletionResponse(_0x5be198){const _0x370c49={_0x4d31c1:0x31e,_0x1d563c:0x347,_0x270ebd:0x26d,_0x33d037:0x287,_0x184353:0x1cf,_0xaa289d:0x27e,_0x1983ce:0x218,_0x4e3659:0x20d,_0x2b598b:0x25e,_0x1bb44f:0x2b6,_0x5ce839:0x21e,_0x4642b1:0x1be,_0x354233:0x233,_0x2e77ce:0x23d,_0x3a0812:0x352,_0x37dc43:0x1f0,_0x284d57:0x1c6,_0x29a172:0x2b9,_0xedb76e:0x1b9,_0x38f06c:0x2a5,_0x5b0cd6:0x1d6,_0x1e5a09:0x268,_0x28c4b1:0x1e9,_0x284632:0x22c,_0x4d0468:0x1fb,_0x569ea9:0x215,_0x1c78d0:0x249,_0x4b4f85:0x291,_0x147fdd:0x28f,_0x58fb7c:0x316,_0xe930fc:0x250,_0x50a804:0x297,_0x3f16ac:0x230},_0x3d99e9={_0x167587:0x2a9,_0x2883d6:0x192},_0x3353ae={_0x209a30:0x19d},_0xb2592b=[],_0x5c5f9c=[];let _0xe19f5b=_0x521b73(0x311,_0x370c49._0x4d31c1,_0x370c49._0x1d563c,0x2af);for(const _0x17ed7e of _0x5be198[_0x2667b1(0x2f3,0x36b,_0x370c49._0x270ebd,0x2ae)]??[]){const _0x130053=_0x17ed7e[_0x2667b1(0x27e,0x292,0x1a2,_0x370c49._0x33d037)],_0x3e1d10=normalizeAssistantContent(_0x130053?.[_0x521b73(0x198,_0x370c49._0x184353,0x1f2,_0x370c49._0xaa289d)]);_0x3e1d10[_0x2667b1(0x188,0xc0,_0x370c49._0x1983ce,0xb7)]>0x0&&_0xb2592b[_0x521b73(_0x370c49._0x4e3659,0x1bf,_0x370c49._0x2b598b,_0x370c49._0x1bb44f)](_0x3e1d10),_0x130053?.[_0x2667b1(0x205,_0x370c49._0x5ce839,_0x370c49._0x2b598b,_0x370c49._0x4642b1)]&&_0x5c5f9c[_0x2667b1(0x1eb,0x207,0x149,_0x370c49._0x354233)](..._0x130053[_0x521b73(_0x370c49._0x2e77ce,0x32f,0x278,_0x370c49._0x3a0812)]),_0x17ed7e[_0x2667b1(_0x370c49._0x37dc43,_0x370c49._0x284d57,0x292,0x23e)]===_0x521b73(_0x370c49._0x29a172,_0x370c49._0xedb76e,0x278,_0x370c49._0x38f06c)&&(_0xe19f5b=_0x2667b1(_0x370c49._0x5b0cd6,_0x370c49._0x1e5a09,_0x370c49._0x28c4b1,0x13a));}function _0x2667b1(_0x3f0c73,_0x4206e8,_0x22fbd3,_0x117927){return _0x11bd88(_0x3f0c73- -0x2a7,_0x4206e8,_0x22fbd3-_0x3353ae._0x209a30,_0x117927-0x0);}function _0x521b73(_0x1a0abd,_0x38a886,_0x4b6ee3,_0x5de9be){return _0xd1496a(_0x4b6ee3- -_0x3d99e9._0x167587,_0x38a886-_0x3d99e9._0x2883d6,_0x5de9be,_0x5de9be-0x14f);}return _0x5c5f9c[_0x521b73(_0x370c49._0x284632,0x1af,_0x370c49._0x4d0468,0x148)]>0x0&&(_0xe19f5b=_0x521b73(0x31f,_0x370c49._0x569ea9,_0x370c49._0x1c78d0,0x22c)),{'id':_0x5be198['id']??_0x2667b1(0x2bf,_0x370c49._0x4b4f85,_0x370c49._0x147fdd,0x291)+Date[_0x521b73(_0x370c49._0x58fb7c,0x2aa,0x2b4,_0x370c49._0xe930fc)](),'content':createContentBlocks(_0xb2592b[_0x521b73(_0x370c49._0x50a804,_0x370c49._0x3f16ac,0x236,0x250)](''),_0x5c5f9c),'stopReason':_0xe19f5b,'usage':createUsage(_0x5be198['usage'])};}function parseResponsesResponse(_0x50d475,_0x430068){const _0x253da5={_0x36bd3f:0x55c,_0x4f6621:0x50d,_0x218de6:0x590,_0x2fb41a:0x55e,_0x10f185:0x4ba,_0x5c6a2e:0x123,_0x490127:0x66,_0x2537f6:0x1f4,_0x53672c:0x160,_0x3d3bdc:0x699,_0x52aeaa:0x705,_0x3f0869:0x6b6,_0x261049:0x627,_0x4f3802:0x484,_0x13bfdd:0x535,_0x2f75b6:0x536,_0x988fc0:0x6f,_0x51d4f1:0x52,_0x3a9a2a:0x5a6,_0x5214de:0x45d,_0x1c7a2d:0x5de,_0xcfe69d:0x528,_0x26d374:0x545,_0x2c8d6d:0x553,_0x54df6a:0x5e0,_0x5553b0:0xe5,_0x3983e3:0x81,_0x3ef632:0x192,_0x119694:0x1bd,_0x42f7dc:0x71,_0x5727bc:0x5ca,_0x527456:0x63e,_0x34d7cf:0x68c,_0x32e824:0x4bc,_0x1c3005:0x5dc,_0x49511e:0x69a,_0x2b9651:0x2f,_0x366173:0xae,_0x4e8bdc:0x1a5,_0x3a897a:0xd0,_0x4ed55a:0x1,_0x5a5459:0x14c,_0x550f4b:0xf5,_0x226e81:0xdf,_0x13aec9:0x1a4,_0xe0bd94:0x58,_0x54325e:0xbd,_0x1903ec:0x76d,_0x2c647c:0x72e,_0x59f157:0x777,_0x4e2067:0x697,_0x41781f:0x5a4,_0x4756f7:0x68c,_0x1492e0:0x546,_0x25287d:0x153,_0x1b9266:0x183,_0x2eed15:0x46,_0x40980a:0xdf,_0x404619:0x78,_0x459c2e:0x97},_0x8ab196={_0x2aeff5:0x435};function _0x25c6b3(_0x5df5df,_0x9bcba3,_0x460f8a,_0x570e00){return _0xd1496a(_0x570e00-0x92,_0x9bcba3-0x15d,_0x460f8a,_0x570e00-0x159);}function _0x1fb644(_0x1beb39,_0x463cc9,_0xb4358a,_0x36c806){return _0xd1496a(_0x36c806- -_0x8ab196._0x2aeff5,_0x463cc9-0x2c,_0x463cc9,_0x36c806-0x34);}const _0x2d3a66=[];for(const _0x9098e of _0x50d475[_0x25c6b3(_0x253da5._0x36bd3f,_0x253da5._0x4f6621,_0x253da5._0x218de6,_0x253da5._0x2fb41a)]??[]){if(isResponsesReasoningItem(_0x9098e)){if(isUserVisibleReasoning(_0x430068)){const _0x59518e=createOpenAiReasoningBlock(_0x9098e);hasVisibleOpenAiReasoning(_0x59518e)&&_0x2d3a66[_0x25c6b3(0x57a,0x4c2,_0x253da5._0x10f185,0x599)](_0x59518e);}continue;}if(isResponsesMessageItem(_0x9098e)){const _0x1a467b=normalizeResponsesMessageContent(_0x9098e[_0x1fb644(_0x253da5._0x5c6a2e,0x5a,0xe5,_0x253da5._0x490127)]);_0x1a467b['length']>0x0&&_0x2d3a66['push']({'type':'text','text':_0x1a467b});continue;}if(!isResponsesFunctionCallItem(_0x9098e)||typeof _0x9098e[_0x1fb644(0x84,_0x253da5._0x2537f6,0x77,_0x253da5._0x53672c)]!=='string'||_0x9098e[_0x25c6b3(_0x253da5._0x3d3bdc,_0x253da5._0x52aeaa,_0x253da5._0x3f0869,_0x253da5._0x261049)][_0x25c6b3(0x4c2,0x4a9,_0x253da5._0x4f3802,_0x253da5._0x13bfdd)]()[_0x25c6b3(0x468,0x511,0x463,_0x253da5._0x2f75b6)]===0x0||typeof _0x9098e['name']!==_0x1fb644(_0x253da5._0x988fc0,-0x77,0x23,_0x253da5._0x51d4f1)||_0x9098e[_0x25c6b3(_0x253da5._0x3a9a2a,_0x253da5._0x5214de,_0x253da5._0x1c7a2d,_0x253da5._0xcfe69d)]['trim']()[_0x25c6b3(_0x253da5._0x26d374,_0x253da5._0x2c8d6d,_0x253da5._0x54df6a,0x536)]===0x0||typeof _0x9098e['arguments']!==_0x1fb644(0x7b,_0x253da5._0x5553b0,_0x253da5._0x3983e3,0x52))continue;_0x2d3a66[_0x1fb644(_0x253da5._0x3ef632,_0x253da5._0x119694,_0x253da5._0x42f7dc,0xd2)]({'type':_0x25c6b3(_0x253da5._0x5727bc,0x63c,0x628,0x584),'id':_0x9098e[_0x25c6b3(_0x253da5._0x527456,_0x253da5._0x34d7cf,0x68d,_0x253da5._0x261049)],'name':_0x9098e[_0x25c6b3(0x58d,_0x253da5._0x32e824,0x57d,0x528)],'input':parseToolInput2(_0x9098e[_0x25c6b3(0x5f1,0x716,_0x253da5._0x1c3005,_0x253da5._0x49511e)])});}return!_0x2d3a66['some'](_0x21ee0d=>_0x21ee0d[_0x25c6b3(0x6c1,0x5d1,0x5b7,0x5df)]===_0x25c6b3(0x64e,0x4f2,0x48f,0x56b))&&_0x50d475['output_text']&&_0x2d3a66[_0x1fb644(_0x253da5._0x2b9651,_0x253da5._0x366173,_0x253da5._0x4e8bdc,0xd2)]({'type':_0x1fb644(0xf4,_0x253da5._0x3a897a,-_0x253da5._0x4ed55a,0xa4),'text':_0x50d475[_0x1fb644(_0x253da5._0x5a5459,0x14b,_0x253da5._0x550f4b,_0x253da5._0x226e81)]}),{'id':_0x50d475['id'],'content':_0x2d3a66,'stopReason':_0x2d3a66['some'](_0x7de9e3=>_0x7de9e3[_0x25c6b3(0x5e0,0x5fa,0x6bd,0x5df)]===_0x1fb644(0x177,0xe0,0xf7,0xbd))?_0x1fb644(0x190,_0x253da5._0x13aec9,_0x253da5._0xe0bd94,_0x253da5._0x54325e):_0x25c6b3(_0x253da5._0x1903ec,0x627,0x72f,0x682),'usage':{'inputTokens':_0x50d475['usage']?.['input_tokens']??0x0,'outputTokens':_0x50d475[_0x25c6b3(_0x253da5._0x2c647c,_0x253da5._0x59f157,0x6e5,0x68c)]?.['output_tokens']??0x0,..._0x50d475[_0x25c6b3(_0x253da5._0x4e2067,_0x253da5._0x41781f,0x6e9,_0x253da5._0x4756f7)]?.[_0x25c6b3(0x644,0x4f0,_0x253da5._0x1492e0,0x567)]?.[_0x1fb644(0x1b9,_0x253da5._0x25287d,0x1bd,_0x253da5._0x1b9266)]!==void 0x0?{'reasoningTokens':_0x50d475[_0x25c6b3(0x700,0x6d5,0x67f,0x68c)][_0x1fb644(_0x253da5._0x2eed15,0x9f,0xa8,0xa0)]['reasoning_tokens']}:{}},..._0x50d475['output']?{'providerState':{'openaiResponsesOutput':structuredClone(_0x50d475[_0x1fb644(0x10e,_0x253da5._0x40980a,_0x253da5._0x404619,_0x253da5._0x459c2e)]),'openaiResponsesResponseId':_0x50d475['id']}}:{}};}function extractErrorMessage(_0x2e145b){const _0x419f3a={_0x3ffcbf:0x41,_0x1df623:0xad,_0x2b3743:0x30,_0xc15471:0x674,_0x55df21:0x617,_0x59f7ff:0x58d,_0x4ae00a:0x485,_0x3c591c:0x469,_0x5cc7b1:0x4e5,_0x2a2037:0x4b,_0x31fb63:0x606,_0x3de631:0x57d,_0x267f7f:0x81,_0x3357f4:0x123,_0xf75ea9:0x3,_0x5d3a35:0xd,_0x2c6122:0x12d,_0x56899a:0x14,_0x3980d5:0x65,_0x26b4e5:0x56,_0x409373:0x216,_0x23afe9:0x8e,_0x2098af:0x15b,_0x2e2ac6:0x44,_0x19a716:0x64,_0x4ca73d:0x4e,_0x28d161:0x239},_0x637043={_0x3ab6d0:0x3ca,_0x43b37b:0x30,_0x3480b8:0x19},_0x38d2a5={_0x4ed73a:0x7d,_0x37e9b3:0x8b};function _0x3f187f(_0xd19486,_0xb0648a,_0x36c7ce,_0x128640){return _0xd1496a(_0x36c7ce-_0x38d2a5._0x4ed73a,_0xb0648a-_0x38d2a5._0x37e9b3,_0x128640,_0x128640-0x150);}if(_0x2e145b['length']===0x0)return'';try{const _0x10ccb9=JSON['parse'](_0x2e145b);if(typeof _0x10ccb9[_0x30b553(_0x419f3a._0x3ffcbf,-_0x419f3a._0x1df623,0x4,_0x419f3a._0x2b3743)]?.[_0x3f187f(0x5a3,_0x419f3a._0xc15471,_0x419f3a._0x55df21,_0x419f3a._0x59f7ff)]===_0x3f187f(_0x419f3a._0x4ae00a,_0x419f3a._0x3c591c,0x504,_0x419f3a._0x5cc7b1)&&_0x10ccb9[_0x30b553(-_0x419f3a._0x2a2037,0x6d,-0x83,0x30)][_0x3f187f(_0x419f3a._0x31fb63,_0x419f3a._0x3de631,_0x419f3a._0x55df21,0x5f8)][_0x30b553(_0x419f3a._0x267f7f,_0x419f3a._0x3357f4,_0x419f3a._0xf75ea9,0x64)]()[_0x30b553(_0x419f3a._0x5d3a35,_0x419f3a._0x2c6122,-_0x419f3a._0x56899a,_0x419f3a._0x3980d5)]>0x0)return _0x10ccb9[_0x30b553(0x55,_0x419f3a._0x26b4e5,0x33,0x30)]['message']['trim']();if(typeof _0x10ccb9[_0x30b553(0x1e3,0x244,_0x419f3a._0x409373,0x15b)]==='string'&&_0x10ccb9[_0x30b553(0x1c0,_0x419f3a._0x23afe9,0x86,_0x419f3a._0x2098af)][_0x30b553(0xd9,-0x81,_0x419f3a._0x2e2ac6,_0x419f3a._0x19a716)]()[_0x30b553(-0x59,-_0x419f3a._0x2e2ac6,_0x419f3a._0x4ca73d,0x65)]>0x0)return _0x10ccb9[_0x30b553(0x1a4,_0x419f3a._0x28d161,0x146,_0x419f3a._0x2098af)]['trim']();}catch{return _0x2e145b;}function _0x30b553(_0xfed6c9,_0x3d66d9,_0x109d0c,_0x3b5501){return _0x11bd88(_0x3b5501- -_0x637043._0x3ab6d0,_0x109d0c,_0x109d0c-_0x637043._0x43b37b,_0x3b5501-_0x637043._0x3480b8);}return _0x2e145b;}async function createOpenAiApiError(_0x412f88){const _0x543b6a={_0x1ae48b:0x308,_0x3b9711:0x280,_0x313197:0x2f4,_0x32888d:0x2cf,_0x746fa8:0x273,_0x13bd6b:0x351,_0x5cfec7:0x346,_0x4b6782:0x331},_0x3e1c8b={_0x214727:0x14e};function _0x3ba9a8(_0x29b28d,_0x4574be,_0x49c7b5,_0x14ef01){return _0xd1496a(_0x29b28d-0x2f,_0x4574be-_0x3e1c8b._0x214727,_0x49c7b5,_0x14ef01-0x193);}const _0x31911a=(await _0x412f88[_0x5a8d4d(_0x543b6a._0x1ae48b,_0x543b6a._0x3b9711,_0x543b6a._0x313197,0x35c)]())['trim'](),_0x30b431=extractErrorMessage(_0x31911a)||_0x412f88[_0x5a8d4d(0x384,_0x543b6a._0x32888d,_0x543b6a._0x746fa8,0x33a)]||_0x5a8d4d(_0x543b6a._0x13bd6b,0x40f,0x3d6,0x337)+_0x412f88[_0x5a8d4d(0x35e,0x291,0x32a,_0x543b6a._0x5cfec7)];function _0x5a8d4d(_0x4557f0,_0x4b1d80,_0x5077e0,_0x3a480f){return _0xd1496a(_0x3a480f- -0x17d,_0x4b1d80-0x185,_0x4b1d80,_0x3a480f-0x157);}return new OpenAiApiError(_0x412f88[_0x5a8d4d(0x403,_0x543b6a._0x4b6782,0x36b,0x346)],_0x31911a,_0x30b431);}function readSseData(_0x3c0bea){const _0x5d9e1e={_0x211c44:0x12,_0x4dad15:0x4ea,_0x40b92b:0x484,_0x2b6bc4:0x582,_0x35c691:0x3,_0x371b5a:0xd1,_0x2d0677:0x16a},_0x562e0c={_0x14e670:0x34,_0x5245e0:0x16f},_0x510c9e={_0x522562:0xb6};function _0x8270bc(_0x4d9ef6,_0x36a670,_0xa720ba,_0x5c6af5){return _0x11bd88(_0x36a670- -0x4ff,_0x5c6af5,_0xa720ba-0x132,_0x5c6af5-_0x510c9e._0x522562);}function _0x411f17(_0x48eb03,_0x14f6c0,_0x1e0098,_0x2629d){return _0x11bd88(_0x1e0098-_0x562e0c._0x14e670,_0x2629d,_0x1e0098-_0x562e0c._0x5245e0,_0x2629d-0x2f);}return _0x3c0bea['split']('\x0a')[_0x8270bc(-_0x5d9e1e._0x211c44,0x28,-0x52,0x10f)](_0x397b20=>_0x397b20[_0x411f17(0x3a4,0x40d,0x45b,0x3ab)]('data:'))[_0x411f17(_0x5d9e1e._0x4dad15,_0x5d9e1e._0x40b92b,0x4b6,0x41c)](_0x2f902c=>_0x2f902c['slice'](0x5)[_0x411f17(0x4c7,0x58a,0x584,0x5fb)]())[_0x411f17(_0x5d9e1e._0x2b6bc4,0x44f,0x49e,0x560)]('\x0a')[_0x8270bc(-_0x5d9e1e._0x35c691,-_0x5d9e1e._0x371b5a,-_0x5d9e1e._0x2d0677,-0xac)]();}function readString(_0x1edbc4){const _0x519874={_0x1b882c:0xed,_0x581c1e:0xd,_0x1296e3:0x34d,_0x43b497:0x408},_0x28f825={_0x4afa8e:0x574,_0x49949d:0x1b0,_0x38ac56:0x99};function _0x4328b4(_0x507637,_0x14a8dc,_0x2dd3f1,_0x41f84d){return _0xd1496a(_0x507637- -_0x28f825._0x4afa8e,_0x14a8dc-_0x28f825._0x49949d,_0x2dd3f1,_0x41f84d-_0x28f825._0x38ac56);}function _0x35823c(_0x16e6b5,_0x224414,_0x34c1ab,_0x20e170){return _0xd1496a(_0x16e6b5- -0x157,_0x224414-0x1e8,_0x34c1ab,_0x20e170-0x8f);}return typeof _0x1edbc4===_0x4328b4(-_0x519874._0x1b882c,-_0x519874._0x581c1e,-0x1c8,-0xf0)&&_0x1edbc4[_0x35823c(_0x519874._0x1296e3,_0x519874._0x43b497,0x285,0x2a3)]>0x0?_0x1edbc4:void 0x0;}function extractReasoningDetails(_0x3077d8){const _0x38c23f={_0x49bf3f:0x333},_0x4969ac={_0x1c239b:0x14f},_0x136d8b={_0x2ae89d:0x61d,_0x77ddcf:0x41c,_0x3128ae:0x3e3,_0x369770:0x4a7,_0x42dbab:0x491,_0x51af48:0x5cb,_0x4f8337:0x5b8,_0x38b2b9:0x532},_0x58966e={_0x450bd8:0x2d8};if(!Array['isArray'](_0x3077d8))return void 0x0;const _0x53e832=_0x3077d8['flatMap'](_0xc672bc=>{function _0x2f380e(_0x6b55b9,_0x2dbf84,_0xd5a3ce,_0x188b90){return _0x4abb(_0xd5a3ce-_0x58966e._0x450bd8,_0x2dbf84);}if(!_0xc672bc||typeof _0xc672bc!==_0x395635(0x592,0x62f,0x51f,_0x136d8b._0x2ae89d))return[];const _0x3abefa=_0xc672bc;if(typeof _0x3abefa['text']===_0x2f380e(_0x136d8b._0x77ddcf,_0x136d8b._0x3128ae,0x43f,0x483))return[_0x3abefa[_0x2f380e(_0x136d8b._0x369770,0x48e,_0x136d8b._0x42dbab,0x4c8)]];if(typeof _0x3abefa[_0x2f380e(_0x136d8b._0x51af48,0x4e7,_0x136d8b._0x4f8337,_0x136d8b._0x38b2b9)]==='string')return[_0x3abefa[_0x2f380e(0x699,0x693,_0x136d8b._0x4f8337,0x5d9)]];function _0x395635(_0x13653e,_0x26d48c,_0x4a54f1,_0x1706b9){return _0x4abb(_0x13653e-0x346,_0x1706b9);}return[];});function _0x12e297(_0x2ce23d,_0x5c2816,_0x4eb8a9,_0x31d4da){return _0xd1496a(_0x2ce23d- -_0x4969ac._0x1c239b,_0x5c2816-0x10,_0x5c2816,_0x31d4da-0x185);}return _0x53e832['length']>0x0?_0x53e832[_0x12e297(0x390,0x396,0x42a,_0x38c23f._0x49bf3f)](''):void 0x0;}function extractChatCompletionReasoningDelta(_0x39c66f){const _0x1c855a={_0x28bd25:0x18b,_0x5ab404:0x1d6,_0x4df417:0x1f0,_0x37abfb:0xd9,_0x232c3b:0x83,_0x17c01a:0x62,_0x3b1ed2:0x133},_0x575a7d={_0x1075d7:0x237,_0x42b766:0x102,_0x15c29e:0x7c},_0x53b59c={_0x38687e:0x4bc,_0x3fdb64:0x1d0,_0x4a31c1:0xb2};function _0x49fb59(_0x160ce2,_0x4619de,_0x22c943,_0x3024c9){return _0x11bd88(_0x3024c9- -_0x53b59c._0x38687e,_0x22c943,_0x22c943-_0x53b59c._0x3fdb64,_0x3024c9-_0x53b59c._0x4a31c1);}function _0x2bdda7(_0x46536c,_0x4be6e0,_0x444036,_0x2e4fce){return _0x11bd88(_0x444036- -_0x575a7d._0x1075d7,_0x2e4fce,_0x444036-_0x575a7d._0x42b766,_0x2e4fce-_0x575a7d._0x15c29e);}return extractReasoningDetails(_0x39c66f?.[_0x2bdda7(0xf7,_0x1c855a._0x28bd25,_0x1c855a._0x5ab404,_0x1c855a._0x4df417)])??readString(_0x39c66f?.[_0x49fb59(-_0x1c855a._0x37abfb,-0xcf,-0xa6,-0xda)])??readString(_0x39c66f?.[_0x49fb59(_0x1c855a._0x232c3b,-_0x1c855a._0x17c01a,0xf,-0x4a)])??readString(_0x39c66f?.[_0x2bdda7(0x29c,_0x1c855a._0x3b1ed2,0x209,0x149)])??'';}var OpenAiChatCompletionsStreamParser=class{[_0x11bd88(0x50e,0x569,0x469,0x4ab)]=[];[_0x11bd88(0x552,0x595,0x57d,0x579)];[_0x11bd88(0x4a4,0x46b,0x44f,0x577)]=[];[_0xd1496a(0x465,0x470,0x519,0x40f)]=new Map();[_0x11bd88(0x471,0x38e,0x3cc,0x38f)]=[];[_0x11bd88(0x43e,0x3db,0x37f,0x3a1)]=new Set();[_0x11bd88(0x559,0x499,0x5ae,0x5c9)]='';['stopReason']=_0xd1496a(0x5f0,0x5fb,0x540,0x608);['usage'];constructor(_0x5df294){const _0x547ba7={_0x126068:0x484,_0x104e65:0x50a,_0x2483c8:0x51d},_0x3ddccf={_0xc640d2:0x48,_0x5080f0:0x14f};function _0x54e24f(_0x413245,_0x1e781c,_0x5bc3ae,_0x5d433e){return _0x11bd88(_0x5bc3ae- -_0x3ddccf._0xc640d2,_0x5d433e,_0x5bc3ae-_0x3ddccf._0x5080f0,_0x5d433e-0x1e7);}this[_0x54e24f(_0x547ba7._0x126068,0x53a,_0x547ba7._0x104e65,_0x547ba7._0x2483c8)]=_0x5df294;}[_0xd1496a(0x43e,0x477,0x3af,0x46e)](_0x332361){const _0x330b42={_0x1f602b:0x1c4,_0x1a8d2b:0x36f,_0x24439d:0x295,_0x2ae406:0x187,_0x5c9ae8:0x1fc,_0xa66a30:0x195,_0xf918be:0x26,_0x3b8909:0x155,_0x4c613e:0x35b,_0x462937:0x2ff,_0x3b7b6c:0x35b,_0xfa9098:0x304,_0x4869c8:0x2f5},_0x27d0c1={_0x1ba817:0x22a},_0x369f27={_0x3ec498:0x6,_0x39ae55:0x1a2},_0x1a08c9=readSseData(_0x332361);if(_0x1a08c9[_0xd76abb(-0x190,-0x1bf,-0x186,-_0x330b42._0x1f602b)]===0x0||_0x1a08c9===_0x20cefc(_0x330b42._0x1a8d2b,0x347,_0x330b42._0x24439d,0x310))return[];const _0xb1244d=JSON[_0xd76abb(-_0x330b42._0x2ae406,-_0x330b42._0x5c9ae8,-0x1f7,-_0x330b42._0xa66a30)](_0x1a08c9);function _0xd76abb(_0x1bf00a,_0x3d33d5,_0x14b6dd,_0x28cebe){return _0x11bd88(_0x3d33d5- -0x5ee,_0x1bf00a,_0x14b6dd-_0x369f27._0x3ec498,_0x28cebe-_0x369f27._0x39ae55);}this[_0xd76abb(-_0x330b42._0xf918be,-0x95,-_0x330b42._0x3b8909,0x4e)]=_0xb1244d['id']??this[_0x20cefc(0x32f,0x339,0x370,0x2d2)];function _0x20cefc(_0x30a538,_0x46f78a,_0x5485ab,_0x44f0b0){return _0x11bd88(_0x30a538- -_0x27d0c1._0x1ba817,_0x5485ab,_0x5485ab-0x163,_0x44f0b0-0x125);}return this[_0x20cefc(_0x330b42._0x4c613e,0x28d,_0x330b42._0x462937,0x30a)]=_0xb1244d['usage']??this[_0x20cefc(_0x330b42._0x3b7b6c,_0x330b42._0xfa9098,_0x330b42._0x4869c8,0x39c)],this['consumeEvent'](_0xb1244d);}[_0xd1496a(0x4c7,0x3ff,0x4c4,0x54c)](){const _0x318598={_0x529588:0x46d,_0x3fe2f5:0x3a9,_0x124b23:0x48e,_0x1ec052:0x4ce,_0x5d8315:0xc8,_0x169554:0xcc,_0x30edc5:0x28,_0x4b46d2:0xd4,_0x4229cc:0xdf,_0x3466a5:0x534,_0x825ff:0x46d,_0x38025c:0x21,_0x28f4af:0x31,_0x10b21d:0x6d,_0x415a92:0x18a,_0x51fb9f:0x1,_0x8fbc59:0x13f,_0x3751c7:0x173,_0x286225:0x575},_0x955c52={_0x59ddb8:0x168,_0x4675c0:0x7f},_0x55d66={_0x354385:0x1bf,_0x15adbb:0x1ab};function _0x497ff5(_0x4bf248,_0x56e549,_0x16d043,_0x1cec4c){return _0x11bd88(_0x4bf248- -0x545,_0x56e549,_0x16d043-_0x55d66._0x354385,_0x1cec4c-_0x55d66._0x15adbb);}this[_0x45a55f(0x438,_0x318598._0x529588,0x546,_0x318598._0x3fe2f5)][_0x45a55f(_0x318598._0x124b23,0x42b,0x476,_0x318598._0x1ec052)]>0x0&&(this['stopReason']=_0x497ff5(-_0x318598._0x5d8315,-0x167,-0x20,-0x122));function _0x45a55f(_0xd7ccab,_0x4036a0,_0x34e396,_0x5a25b0){return _0xd1496a(_0x4036a0- -0x79,_0x4036a0-_0x955c52._0x59ddb8,_0x5a25b0,_0x5a25b0-_0x955c52._0x4675c0);}const _0x32d33a=isUserVisibleReasoning(this[_0x497ff5(0xd,_0x318598._0x169554,-_0x318598._0x30edc5,_0x318598._0x4b46d2)])?this['reasoningParts'][_0x497ff5(-0xdb,-0x11c,-0x63,-_0x318598._0x4229cc)](''):void 0x0;return{'id':this[_0x45a55f(_0x318598._0x3466a5,0x555,_0x318598._0x124b23,_0x318598._0x825ff)]||_0x497ff5(_0x318598._0x38025c,-0x69,0xd5,-_0x318598._0x28f4af)+Date[_0x497ff5(-0x5d,-0x62,-_0x318598._0x10b21d,0x56)](),'content':createContentBlocks(this['textParts'][_0x497ff5(-0xdb,-_0x318598._0x415a92,-_0x318598._0x51fb9f,-0xdd)](''),this[_0x497ff5(-0xd4,-0x16c,-0x65,-_0x318598._0x8fbc59)],_0x32d33a),'stopReason':this[_0x497ff5(-0xf0,-0x2d,-0x37,-_0x318598._0x3751c7)],'usage':createUsage(this[_0x45a55f(0x606,0x581,0x5f6,_0x318598._0x286225)])};}['consumeEvent'](_0x452fb1){const _0x57cf2d={_0x56a6c8:0x128,_0x33758c:0xc1,_0x171555:0xdd,_0x447115:0x37a,_0x153ce1:0x6e,_0x20ec50:0x87,_0x320754:0x5e,_0x569026:0x20,_0x6931b8:0x62,_0x460331:0x3ab,_0x1477ee:0xb,_0x1cc993:0x3f,_0x30161e:0x69,_0x1c02e5:0x30,_0x4ddc20:0x9e,_0x3eb776:0x8b,_0x1d9564:0x1bf,_0x579f3d:0x34b,_0x225bc4:0x18c,_0x41e48b:0x78,_0x36d330:0x9e,_0x41b4ee:0x185,_0x546b11:0x4,_0x476623:0xf2,_0x346d0c:0xb8,_0x2ffa0e:0x1a6,_0x47b6b0:0x2d5,_0x123b9a:0x2ae,_0x285d3f:0x26e,_0x4a0183:0x76,_0x1be578:0x3bd,_0x12af8a:0x3cf,_0x36c9c4:0xba,_0x11d3ce:0xa4,_0xb7deab:0x17b,_0x556d86:0x7b,_0x34788d:0x9d,_0x106719:0x2e5,_0x52863d:0x22,_0x38e43f:0x341,_0x28afdc:0x2aa,_0x4b67b4:0x3b6,_0x1961d7:0x27e,_0x39fee3:0x65,_0x38977f:0x2,_0x453fe0:0x5e,_0x2d4baf:0x0,_0x364f7b:0xe,_0x3c63bf:0x9a,_0x4a2c21:0x171,_0x2987f4:0x19,_0x29ffa3:0x3ca,_0x6ab6b0:0x341,_0x138df1:0x368,_0x136e97:0x264,_0x23983c:0x34d,_0xbd6f70:0x15d,_0x106e2c:0x56,_0x3d352e:0x9c,_0x299af8:0xd3,_0x5b0899:0xe,_0x2d2888:0x189,_0x446362:0x34f,_0x511e73:0x34c,_0x452060:0xbb,_0x5390f4:0x11a,_0x318e54:0x186,_0x3222eb:0xc3,_0x4e12e8:0x5e,_0x6228dc:0x10e,_0x2b0347:0x341,_0x4ae2a3:0x2a2,_0x108df9:0x17c,_0x35a29c:0x264,_0x4c6c0d:0x279,_0x3e58f7:0x2f0,_0x5f0953:0x1f7,_0x180c58:0x1a9,_0x386283:0x103,_0x271344:0x74,_0x277319:0x50,_0x1abf1c:0xe,_0x3516ad:0x46,_0x8eeecc:0x38a,_0x2fd45a:0x343,_0x2d2bc3:0x315,_0x554aa9:0x3ed,_0x3b4933:0x2e,_0xe5a866:0x2ef,_0x26b0fe:0x25c,_0x438cf6:0x298,_0x5dcf6e:0xcd,_0x5d6787:0x73},_0x1c87f8={_0x5180ed:0x1bd},_0x1f40a5=[];function _0x43c884(_0x246ee,_0x3f45aa,_0x5d7403,_0x18efdf){return _0x11bd88(_0x3f45aa- -_0x1c87f8._0x5180ed,_0x18efdf,_0x5d7403-0x67,_0x18efdf-0x1f3);}for(const _0x4341a2 of _0x452fb1['choices']??[]){const _0x113fc0=_0x4341a2['delta'],_0x3bb9ae=extractChatCompletionReasoningDelta(_0x113fc0);_0x3bb9ae[_0x8dc07d(-0xac,-_0x57cf2d._0x56a6c8,-_0x57cf2d._0x33758c,-_0x57cf2d._0x171555)]>0x0&&(this[_0x43c884(0x3d7,0x351,0x311,_0x57cf2d._0x447115)][_0x8dc07d(-_0x57cf2d._0x153ce1,-_0x57cf2d._0x20ec50,-_0x57cf2d._0x320754,0x83)](_0x3bb9ae),isUserVisibleReasoning(this[_0x8dc07d(-_0x57cf2d._0x569026,0x11c,_0x57cf2d._0x6931b8,0xfc)])&&_0x1f40a5['push']({'type':_0x43c884(0x399,0x38a,_0x57cf2d._0x460331,0x30b),'contentIndex':0x0,'delta':_0x3bb9ae,'itemId':(this[_0x8dc07d(-_0x57cf2d._0x1477ee,-_0x57cf2d._0x1cc993,_0x57cf2d._0x30161e,_0x57cf2d._0x1c02e5)]||'chatcmpl')+_0x8dc07d(_0x57cf2d._0x4ddc20,-_0x57cf2d._0x3eb776,-0xe,0xba),'outputIndex':0x0}));const _0x377fe7=typeof _0x113fc0?.[_0x43c884(_0x57cf2d._0x1d9564,0x269,_0x57cf2d._0x579f3d,_0x57cf2d._0x225bc4)]==='string'?_0x113fc0[_0x8dc07d(-_0x57cf2d._0x41e48b,-_0x57cf2d._0x36d330,-0xca,-_0x57cf2d._0x41b4ee)]:typeof _0x113fc0?.[_0x8dc07d(-_0x57cf2d._0x546b11,0xfd,0x65,0x23)]===_0x8dc07d(-_0x57cf2d._0x476623,-0x76,-0xde,-_0x57cf2d._0x346d0c)?_0x113fc0['refusal']:'';_0x377fe7[_0x43c884(0x1d1,0x272,0x32c,_0x57cf2d._0x2ffa0e)]>0x0&&(this['textParts'][_0x43c884(0x335,_0x57cf2d._0x47b6b0,_0x57cf2d._0x123b9a,_0x57cf2d._0x285d3f)](_0x377fe7),_0x1f40a5[_0x8dc07d(-_0x57cf2d._0x4a0183,-0x140,-0x5e,0x13)]({'type':_0x43c884(0x431,_0x57cf2d._0x1be578,0x3fb,_0x57cf2d._0x12af8a),'index':0x0,'text':_0x377fe7}));for(const _0x56f4ff of _0x113fc0?.['tool_calls']??[]){const _0x576404=_0x56f4ff[_0x8dc07d(-_0x57cf2d._0x36c9c4,-0x7a,-0x6b,-_0x57cf2d._0x11d3ce)]??0x0;let _0x3e41c8=this['toolCallsByIndex'][_0x8dc07d(-_0x57cf2d._0xb7deab,-_0x57cf2d._0x556d86,-0xda,-_0x57cf2d._0x34788d)](_0x576404);!_0x3e41c8&&(_0x3e41c8={'id':_0x56f4ff['id']??_0x43c884(_0x57cf2d._0x106719,0x249,0x23b,0x2ee)+_0x576404,'type':_0x8dc07d(_0x57cf2d._0x52863d,0x7d,0xe,-0xdb),'function':{'name':_0x56f4ff[_0x43c884(0x39f,_0x57cf2d._0x38e43f,_0x57cf2d._0x28afdc,_0x57cf2d._0x4b67b4)]?.[_0x43c884(_0x57cf2d._0x1961d7,0x264,0x215,0x1c9)]??'','arguments':''}},this['toolCallsByIndex'][_0x43c884(0x36d,0x37a,0x39f,0x304)](_0x576404,_0x3e41c8),this[_0x8dc07d(-0x22,-0x11c,-0x7f,-_0x57cf2d._0x39fee3)][_0x8dc07d(_0x57cf2d._0x38977f,0x1b,-_0x57cf2d._0x453fe0,-0x105)](_0x3e41c8));_0x56f4ff['id']&&(_0x3e41c8['id']=_0x56f4ff['id']);_0x56f4ff[_0x8dc07d(_0x57cf2d._0x2d4baf,0x6,_0x57cf2d._0x364f7b,0x5e)]?.['name']&&(_0x3e41c8['function'][_0x8dc07d(-_0x57cf2d._0x3c63bf,-_0x57cf2d._0x4a2c21,-0xcf,_0x57cf2d._0x2987f4)]=_0x56f4ff[_0x43c884(_0x57cf2d._0x29ffa3,_0x57cf2d._0x6ab6b0,0x410,_0x57cf2d._0x138df1)][_0x43c884(0x2b2,_0x57cf2d._0x136e97,0x2f9,_0x57cf2d._0x23983c)]);!this[_0x8dc07d(-_0x57cf2d._0xbd6f70,-0x79,-0xb2,-_0x57cf2d._0x106e2c)][_0x8dc07d(-0x10f,-0x153,-_0x57cf2d._0x3d352e,0x26)](_0x576404)&&_0x3e41c8[_0x8dc07d(-0x82,_0x57cf2d._0x299af8,_0x57cf2d._0x5b0899,0xc4)][_0x8dc07d(-0xe8,-0x74,-0xcf,-_0x57cf2d._0x2d2888)][_0x43c884(_0x57cf2d._0x446362,0x271,_0x57cf2d._0x511e73,0x1c2)]()[_0x8dc07d(-_0x57cf2d._0x452060,-_0x57cf2d._0x5390f4,-0xc1,-_0x57cf2d._0x318e54)]>0x0&&(_0x1f40a5[_0x8dc07d(-_0x57cf2d._0x3222eb,-0xdd,-_0x57cf2d._0x4e12e8,-_0x57cf2d._0x6228dc)]({'type':'tool_use_delta','id':_0x3e41c8['id'],'index':_0x576404,'name':_0x3e41c8[_0x43c884(0x36c,_0x57cf2d._0x2b0347,_0x57cf2d._0x4ae2a3,0x3e7)][_0x43c884(_0x57cf2d._0x108df9,_0x57cf2d._0x35a29c,_0x57cf2d._0x4c6c0d,_0x57cf2d._0x3e58f7)]}),this[_0x43c884(0x343,0x281,_0x57cf2d._0x5f0953,0x2c0)][_0x8dc07d(-_0x57cf2d._0x180c58,-0x97,-_0x57cf2d._0x386283,-_0x57cf2d._0x271344)](_0x576404));const _0x31e276=_0x56f4ff[_0x8dc07d(-_0x57cf2d._0x277319,0x3e,_0x57cf2d._0x1abf1c,0x8b)]?.['arguments']??'';_0x31e276['length']>0x0&&(_0x3e41c8['function'][_0x8dc07d(_0x57cf2d._0x3516ad,0x125,0xa3,-0xf)]+=_0x31e276,_0x1f40a5[_0x43c884(_0x57cf2d._0x8eeecc,0x2d5,_0x57cf2d._0x2fd45a,0x247)]({'type':_0x43c884(0x33f,_0x57cf2d._0x2d2bc3,_0x57cf2d._0x554aa9,0x3f8),'id':_0x3e41c8['id'],'index':_0x576404,'inputDelta':_0x31e276}));}_0x4341a2[_0x8dc07d(0x6f,-0x8f,-0x59,_0x57cf2d._0x3b4933)]===_0x43c884(0x377,_0x57cf2d._0xe5a866,_0x57cf2d._0x26b0fe,0x2e3)&&(this[_0x43c884(0x334,_0x57cf2d._0x438cf6,0x267,0x30c)]=_0x8dc07d(-0xef,-_0x57cf2d._0x5dcf6e,-_0x57cf2d._0x5d6787,-0xc1));}function _0x8dc07d(_0x572cc7,_0x339df3,_0x44ea11,_0xb5db57){return _0x11bd88(_0x44ea11- -0x4f0,_0x339df3,_0x44ea11-0x197,_0xb5db57-0x137);}return _0x1f40a5;}},OpenAiResponsesStreamParser=class{[_0x11bd88(0x419,0x3eb,0x4d4,0x3fc)]=new Map();[_0x11bd88(0x447,0x506,0x3e6,0x445)];['outputIndexToCallId']=new Map();[_0x11bd88(0x45b,0x4d0,0x47c,0x463)]=new Map();[_0xd1496a(0x5d7,0x5cb,0x604,0x60c)]=new Map();[_0x11bd88(0x552,0x5e9,0x595,0x571)];['responseTextParts']=new Map();[_0x11bd88(0x4c6,0x3fb,0x590,0x472)]=new Map();constructor(_0x36677d){this['request']=_0x36677d;}[_0xd1496a(0x43e,0x399,0x420,0x49f)](_0x414a4e){const _0x43e87e={_0x12587f:0x105,_0x4f289f:0x101,_0x5d1d3b:0xd6,_0x5df4e8:0xb8,_0x445dd9:0x1cd,_0x3acfa9:0xec,_0x1a7611:0x136,_0x3428ab:0x201,_0x19fb4e:0x221,_0x3d3507:0x29f,_0xeca038:0x1a5,_0x9180b5:0x1e6,_0x39c8e7:0x129,_0x5ec8bc:0x440,_0x23a96f:0x383,_0x4e7f6e:0x30b,_0x23cb21:0x29d,_0xb74cf5:0x117,_0x711af9:0x194,_0x50ce82:0x267,_0x80e9b5:0x26b,_0x274bda:0x1f6},_0x337c5b={_0x385de7:0x216},_0x369354=_0x414a4e['split']('\x0a');function _0x573fde(_0x13af08,_0x1180d8,_0x5789ec,_0x8e810f){return _0x11bd88(_0x1180d8- -_0x337c5b._0x385de7,_0x5789ec,_0x5789ec-0xf2,_0x8e810f-0xe3);}const _0x3e5c9d=_0x369354[_0x2b0846(0x158,_0x43e87e._0x12587f,_0x43e87e._0x4f289f,_0x43e87e._0x5d1d3b)](_0x53af93=>_0x53af93['startsWith'](_0x573fde(0x342,0x335,0x32e,0x3fc)))?.[_0x2b0846(_0x43e87e._0x5df4e8,0x1b8,0x11a,_0x43e87e._0x445dd9)](0x6)[_0x2b0846(0x1e6,_0x43e87e._0x3acfa9,0x128,0xe7)](),_0x1c68c0=_0x369354[_0x2b0846(_0x43e87e._0x1a7611,_0x43e87e._0x3428ab,_0x43e87e._0x19fb4e,_0x43e87e._0x3d3507)](_0x1dd49d=>_0x1dd49d['startsWith'](_0x2b0846(0x2f5,0x31b,0x254,0x225)))[_0x573fde(0x2cc,0x26c,0x1f7,_0x43e87e._0xeca038)](_0x53512e=>_0x53512e['slice'](0x5)[_0x573fde(0x36f,0x33a,0x348,0x2c3)]())['join']('\x0a')['trim']();if(_0x1c68c0[_0x2b0846(0x80,_0x43e87e._0x9180b5,_0x43e87e._0x39c8e7,0x1cf)]===0x0||_0x1c68c0===_0x573fde(_0x43e87e._0x5ec8bc,_0x43e87e._0x23a96f,_0x43e87e._0x4e7f6e,_0x43e87e._0x23cb21))return[];function _0x2b0846(_0xe04b03,_0x1dc13b,_0xac93f6,_0x436185){return _0xd1496a(_0xac93f6- -0x37b,_0x1dc13b-0x22,_0xe04b03,_0x436185-0x73);}const _0x4677cc=JSON[_0x573fde(_0x43e87e._0xb74cf5,0x1dc,_0x43e87e._0x711af9,_0x43e87e._0x50ce82)](_0x1c68c0);return this[_0x573fde(0x1d3,_0x43e87e._0x80e9b5,0x236,_0x43e87e._0x274bda)](_0x3e5c9d??String(_0x4677cc['type']??''),_0x4677cc);}[_0xd1496a(0x49e,0x403,0x490,0x3d3)](_0x372940){const _0x3528b7={_0xe7c069:0x1d4,_0x8006d4:0xbf,_0x25c4fc:0x1fd},_0x326cfd={_0x44359a:0x622,_0x4bce9b:0x5a};function _0x2346dd(_0x2cc551,_0x415b49,_0x8132e,_0x54b5b3){return _0xd1496a(_0x8132e- -_0x326cfd._0x44359a,_0x415b49-_0x326cfd._0x4bce9b,_0x54b5b3,_0x54b5b3-0xe0);}return this[_0x2346dd(-_0x3528b7._0xe7c069,-_0x3528b7._0x8006d4,-0x12c,-_0x3528b7._0x25c4fc)](String(_0x372940['type']??''),_0x372940);}[_0xd1496a(0x4c7,0x3fa,0x587,0x434)](){const _0x3440b6={_0x38f668:0x18f,_0x15c05c:0xa1,_0x2fbf28:0x1fb,_0x44b2c9:0x176,_0x9e0d59:0x1e8,_0x59dbc6:0x1a3,_0x2ce43c:0x1ef,_0x1b9658:0x8b,_0x3c28b1:0x117,_0x32c56b:0x5e,_0x38b7b6:0xd,_0x485c0b:0x46,_0x1c3486:0x6a},_0x5e8023={_0x424e0e:0x2f,_0x15e526:0x33},_0x100bcb={_0xacf187:0x19d};function _0x27a465(_0x306c7b,_0x1a940e,_0x3ba90e,_0x504f85){return _0xd1496a(_0x504f85- -0x631,_0x1a940e-0x113,_0x1a940e,_0x504f85-_0x100bcb._0xacf187);}function _0x4d7269(_0x4eba71,_0x3faff7,_0x49be53,_0x5dfb66){return _0xd1496a(_0x5dfb66- -0x6d3,_0x3faff7-_0x5e8023._0x424e0e,_0x49be53,_0x5dfb66-_0x5e8023._0x15e526);}const _0x32c277=this['finalResponse']??{'id':_0x4d7269(-0x23d,-0x1a4,-0x15b,-_0x3440b6._0x38f668)+Date[_0x4d7269(-0x240,-_0x3440b6._0x15c05c,-_0x3440b6._0x2fbf28,-_0x3440b6._0x44b2c9)](),'object':_0x27a465(-0x163,-_0x3440b6._0x9e0d59,-_0x3440b6._0x59dbc6,-0x142),'status':_0x27a465(-0x13d,-0x2be,-0x254,-_0x3440b6._0x2ce43c),'output':this[_0x27a465(-0xcf,_0x3440b6._0x1b9658,-_0x3440b6._0x3c28b1,-_0x3440b6._0x32c56b)](),'usage':{'input_tokens':0x0,'output_tokens':0x0}};return parseResponsesResponse(_0x32c277,this[_0x27a465(0x3b,_0x3440b6._0x38b7b6,-_0x3440b6._0x485c0b,-_0x3440b6._0x1c3486)]);}['isDone'](){const _0x535c25={_0x35ac46:0x4f,_0x1e9d9f:0xa6,_0x4ee24d:0x104},_0x414f3b={_0x46d956:0x1c3,_0x356804:0x1f1};function _0x3c74b6(_0x5c4bf6,_0xc792e3,_0x3c3c60,_0x6ec65){return _0x11bd88(_0x3c3c60- -0x4ed,_0x5c4bf6,_0x3c3c60-_0x414f3b._0x46d956,_0x6ec65-_0x414f3b._0x356804);}return this[_0x3c74b6(-_0x535c25._0x35ac46,-0x7,-_0x535c25._0x1e9d9f,-_0x535c25._0x4ee24d)]!==void 0x0;}['consumeEvent'](_0x13d212,_0xcea320){const _0x47fdaa={_0x3c88f3:0x26e,_0x446603:0x10b,_0x37b6af:0x19b,_0x565d35:0x2c8,_0x34b9d0:0x15d,_0x22f07c:0x30d,_0x597b2e:0x32,_0x170980:0x6c,_0x203092:0x1ce,_0x2f145d:0x2e,_0x4d76b9:0x3c,_0x1b9235:0x23,_0x341d9b:0x13f,_0x47ac90:0x21b,_0x9b0ddc:0x1a1,_0x5c9bdc:0x12f,_0x3fd5ce:0x4,_0x5705b2:0x47,_0x55721a:0xd4,_0x4bdccd:0x1,_0x4fa292:0x39,_0x17ef1a:0x136,_0x31c0d4:0x3d,_0x4c5845:0x10f,_0x319ba4:0x100,_0x403f18:0xc4,_0xca3f53:0x70,_0x2cfe0d:0x1e7,_0x56d660:0x2c8,_0x5d9784:0x34a,_0x2e549d:0x3ad,_0xc22a9e:0x2c2,_0x21ae8b:0xe,_0x554702:0x9a,_0x3f8103:0xa2,_0x34f40b:0x263,_0x5821f4:0x31,_0x134fa2:0x90,_0xcace1e:0x2a2,_0x568918:0x336,_0x2f6599:0x19c,_0x2766d8:0x225,_0x46c658:0x251,_0x381ed1:0x178,_0x2541c2:0x77,_0x31908f:0x30,_0x12bdee:0x75,_0x5acec4:0x37,_0x4cb2ca:0x2e5,_0x20323a:0x1d1,_0x5c79c5:0x2ab,_0x10a8d5:0xed,_0x103a49:0x2f,_0x7bd4d3:0x12c,_0x26c3eb:0x350,_0x23be98:0x175,_0x3ee15c:0x2,_0x4dfc1c:0x21,_0x3bc183:0x6,_0x9d1a8f:0xef,_0x31d691:0xf8,_0x335d18:0x158,_0xe01e6c:0x64,_0x2ab815:0x22b,_0x112191:0x35a,_0x13213b:0x26e,_0x132274:0x249,_0x5c7521:0x32,_0x47dfdc:0xcd,_0x24ef2f:0x113,_0x36c9bf:0x352,_0x3793f8:0x1bf,_0x1b2999:0x79,_0x5e55ba:0xb6,_0x2e86b8:0xd1,_0x6c1635:0x22d,_0x41ba37:0x219,_0x5e5173:0x1a1,_0x5128bd:0x19d,_0x4a3485:0x156,_0x42557a:0x2a3,_0x5ebe9f:0x1e9,_0x3414bd:0x279,_0x4d2c7b:0x5e,_0x27f25d:0x1,_0x46d9e0:0x11a,_0x343cc6:0x30c,_0x143a3c:0x289,_0x8771a5:0x2b8,_0x1b7476:0x315,_0x2858c4:0x31e,_0x4ff941:0x22d,_0x59937b:0x25d,_0x17a5cf:0x1a5,_0x4c2b16:0x235,_0x4b7088:0x1a4,_0x34e033:0xee,_0x5b6df0:0x1e6,_0x433ea0:0x22e,_0x1d61b2:0x107,_0x2b937f:0x322,_0x422bf9:0x25e,_0x126db1:0x243,_0x2e8063:0xd6,_0x5ecbc5:0x1ff,_0x5d01a5:0x1e7,_0x4bc0e5:0x1a1,_0x5ccfbe:0x129,_0x1932af:0xd3,_0x5d21c2:0x102,_0x311059:0x156,_0x491c4e:0x121,_0x3c1acb:0x7f,_0x26e8fb:0x407,_0x54f761:0x305,_0x3d251e:0x2ce,_0x593103:0x322,_0x5894e4:0xc2,_0x267271:0x17c,_0x1c2cb4:0x193,_0x4ee05f:0xe,_0x2b244a:0x3,_0xe85e64:0x66,_0x31415b:0x18,_0x3d3f77:0x55,_0x258dde:0xb7,_0x183f7a:0x365,_0xbd1215:0x1df,_0x5139df:0x172,_0x2db4fd:0xa2,_0x468106:0xaa,_0x40a379:0x164,_0x43415b:0xb2,_0x420ce0:0x14f,_0x46dfef:0x99,_0x7073d7:0x289,_0x22eddf:0x3f3,_0x5b1d60:0x31e,_0x577ae6:0x388,_0x1d481c:0x2d3,_0x484ea5:0x18,_0x504e37:0x9d,_0x2887a6:0xf8,_0x48ad21:0x1e4,_0x163051:0x127,_0x5162d7:0x108,_0x41914a:0xdf,_0x2842ab:0xcb,_0x194fa8:0x27,_0x25e0d4:0x56,_0x2f4455:0x263,_0x2a49bf:0x323,_0x24482e:0xab,_0x2dd5ba:0xd,_0x15c021:0x5c,_0x101430:0x69,_0x34698d:0x61,_0xb6df9a:0x1ea,_0x118cc9:0x2d0,_0x5d0d6b:0x307,_0x217562:0x77,_0x14f925:0x44,_0x34de36:0x142,_0xf290ee:0x54,_0x4d956a:0x37,_0x4e14fd:0x43,_0x5059bf:0x202,_0x2202c9:0x148,_0x3c5f40:0x2b9,_0x435c71:0xc9,_0x31e940:0x2e,_0xfc444f:0xae,_0x320ae0:0x15f,_0x319c52:0x97,_0x3b80d3:0x19e,_0x3fbc12:0x59,_0x3a6fa0:0x286,_0x52f6a3:0x234,_0x204db2:0x146,_0x568067:0x1b0,_0x41fac1:0xaa,_0x16efb3:0x1e,_0x3466f8:0x9d,_0x56178a:0xb1,_0x33e5af:0x24b,_0x117d61:0x2b5,_0x14ca02:0x1e9,_0x2f9eeb:0x1e3,_0x88cd3b:0x18,_0x551560:0xe9,_0x501dce:0xf8,_0xadbd0d:0xb1,_0x5af92a:0x3,_0x37df5b:0x28,_0x3358d9:0x29,_0x2325f8:0x39b,_0x45420c:0x300,_0x30dd86:0x109,_0x254bd0:0x13,_0xe91494:0x97,_0x2f62eb:0x153,_0x30d17c:0x2da,_0xaa4f5:0x2b7,_0xa8359e:0x2e9,_0x3f3300:0x2f2,_0xce5a98:0x20,_0x346a37:0x233,_0x534dc5:0x16,_0xc16088:0xca,_0x5a2d97:0x253,_0x16e070:0x19d,_0x3cde1f:0x1c1,_0x473dc7:0x12d,_0x4ba723:0x24f,_0x229de3:0x153,_0xa1cda:0x85,_0x11aa15:0x36,_0x6c1a7a:0xe0,_0x51625d:0x20c,_0x42819c:0x36d,_0x5f4321:0xa8,_0x437b09:0x7e,_0x5559e2:0xb7,_0x5078a2:0xae,_0x258af5:0x2fc,_0x4217e8:0x233,_0x6f6232:0x250,_0x44d781:0x1f6,_0x5ea884:0x2a,_0x2913ae:0xc3,_0x7bead:0x65,_0x390f9f:0xfc,_0x56542d:0x135,_0x4da958:0x219,_0x15e85d:0xc1,_0x4f7338:0x3d5,_0x36e2b4:0x242,_0x586805:0x17e,_0x47105f:0x1a7,_0x180404:0x134,_0x55254e:0xe6,_0x1792ee:0x1ba,_0x110678:0x105,_0x129e2e:0xcf,_0x376666:0x11e,_0x1778f0:0x1aa,_0x33add8:0xf2,_0x1045c:0x2c2,_0x401000:0x381,_0x21b14:0x3b,_0x37aa9c:0x126,_0x15c8de:0xf7,_0x22be8b:0x5b,_0xcb5804:0x2d2,_0x2214e0:0x30b,_0x51b010:0x20c,_0x2566b5:0x1c2,_0x5511b5:0xeb,_0x5748bb:0xbb,_0x5a1dc5:0x174,_0xea4c27:0x26f,_0x55d155:0x24c,_0x3900fc:0x31e,_0x24fa35:0xb0,_0x26cfbf:0xa,_0x2ad509:0x15c,_0x2f673f:0x226,_0xbf7523:0x219,_0x1d2172:0xc2,_0x280df2:0xa4,_0x5eb2a3:0x63,_0xd9c272:0x8a,_0x2aa77b:0x21c,_0x1fbd78:0x244,_0x507d0c:0x159,_0x4a9eba:0x25f,_0x5607f7:0x2fe,_0xae0ec1:0x2f4,_0x475a90:0x282,_0xa3f08f:0x1d2,_0x3d1084:0x46,_0x43d6cc:0xd7,_0x281115:0xb3,_0x1109d9:0xa2,_0x23cef3:0xb4,_0x47c950:0x141,_0x44eba1:0x162,_0x3d84fa:0xc6,_0x5f27b2:0x154,_0x306595:0x2da,_0x1d5c25:0x3a9,_0x348a1e:0x2d,_0x30849d:0x161,_0x43c21b:0xc6,_0x95a518:0x11e,_0x427cab:0xe3,_0xf5c8d6:0x20c,_0x1f7d44:0x2b0,_0x5546ba:0x233,_0x185680:0x240,_0x56263b:0x310,_0x380382:0x33d,_0x5316ab:0x3a,_0x47929a:0x37c,_0x4ea608:0x137,_0x226a48:0x119},_0x46c16e={_0x23eda1:0x275,_0x2bb03d:0x88},_0x16bd83={_0x398d68:0x535,_0x41ac23:0xdd};function _0x1c94a9(_0x4803eb,_0x2dbf01,_0xe0a0c7,_0x4c37e6){return _0xd1496a(_0x4803eb- -_0x16bd83._0x398d68,_0x2dbf01-0x184,_0x4c37e6,_0x4c37e6-_0x16bd83._0x41ac23);}function _0x5df954(_0x491297,_0x2e0bcb,_0x4cdcc3,_0x56b2d1){return _0x11bd88(_0x4cdcc3- -_0x46c16e._0x23eda1,_0x491297,_0x4cdcc3-_0x46c16e._0x2bb03d,_0x56b2d1-0x1ec);}switch(_0x13d212){case _0x5df954(_0x47fdaa._0x3c88f3,_0x47fdaa._0x446603,_0x47fdaa._0x37b6af,0x210):{const _0x273032=typeof _0xcea320[_0x5df954(_0x47fdaa._0x565d35,0x29b,0x219,_0x47fdaa._0x34b9d0)]===_0x5df954(0x258,0x25c,_0x47fdaa._0x22f07c,0x315)?_0xcea320[_0x1c94a9(-_0x47fdaa._0x597b2e,0x86,-0x7e,_0x47fdaa._0x170980)]:0x0,_0x29189c=typeof _0xcea320['delta']===_0x5df954(_0x47fdaa._0x203092,0xe4,0x19d,0x1af)?_0xcea320[_0x1c94a9(_0x47fdaa._0x2f145d,-_0x47fdaa._0x4d76b9,-_0x47fdaa._0x1b9235,0xb6)]:'';if(_0x29189c['length']>0x0){const _0x338e7f=this['responseTextParts'][_0x5df954(_0x47fdaa._0x341d9b,_0x47fdaa._0x47ac90,_0x47fdaa._0x9b0ddc,_0x47fdaa._0x5c9bdc)](_0x273032)??[];return _0x338e7f[_0x1c94a9(-_0x47fdaa._0x2f145d,-_0x47fdaa._0x3fd5ce,0x1b,_0x47fdaa._0x5705b2)](_0x29189c),this[_0x1c94a9(-_0x47fdaa._0x55721a,-_0x47fdaa._0x5c9bdc,-0xcd,_0x47fdaa._0x4bdccd)][_0x1c94a9(0x77,_0x47fdaa._0x4fa292,_0x47fdaa._0x17ef1a,-_0x47fdaa._0x31c0d4)](_0x273032,_0x338e7f),[{'type':_0x1c94a9(0xba,_0x47fdaa._0x4c5845,0x15f,_0x47fdaa._0x319ba4),'index':_0x273032,'text':_0x29189c}];}break;}case _0x1c94a9(-0x1d,_0x47fdaa._0x403f18,-0xbe,_0x47fdaa._0xca3f53):{const _0x50992e=typeof _0xcea320[_0x5df954(_0x47fdaa._0x2cfe0d,0x279,0x219,_0x47fdaa._0x56d660)]===_0x5df954(_0x47fdaa._0x5d9784,_0x47fdaa._0x2e549d,_0x47fdaa._0x22f07c,_0x47fdaa._0xc22a9e)?_0xcea320['output_index']:void 0x0,_0x567d10=_0xcea320[_0x1c94a9(_0x47fdaa._0x21ae8b,-_0x47fdaa._0x554702,_0x47fdaa._0x3f8103,0xe7)];if(_0x567d10?.[_0x5df954(0x326,0x1a4,_0x47fdaa._0x34f40b,0x1bb)]===_0x1c94a9(-_0x47fdaa._0x5821f4,_0x47fdaa._0x134fa2,0x80,-0x109)&&_0x567d10[_0x5df954(0x2ee,_0x47fdaa._0xcace1e,0x2ab,_0x47fdaa._0x568918)]&&_0x567d10[_0x5df954(0x269,0x244,0x1ac,0xea)])return this[_0x5df954(_0x47fdaa._0x2f6599,_0x47fdaa._0x2766d8,_0x47fdaa._0x46c658,_0x47fdaa._0x381ed1)][_0x1c94a9(_0x47fdaa._0x2541c2,_0x47fdaa._0x31908f,0x7,0x11)](_0x567d10[_0x1c94a9(0x60,_0x47fdaa._0x12bdee,0x104,0x4e)],{'id':_0x567d10['call_id'],'type':'function','function':{'name':_0x567d10[_0x1c94a9(-0x9f,-0xa5,-_0x47fdaa._0x5acec4,-0xea)],'arguments':''}}),_0x50992e!==void 0x0&&(this['outputIndexToCallId']['set'](_0x50992e,_0x567d10[_0x5df954(_0x47fdaa._0x4cb2ca,_0x47fdaa._0x20323a,_0x47fdaa._0x5c79c5,0x32f)]),this[_0x5df954(0x143,0x195,0x1a4,_0x47fdaa._0x10a8d5)][_0x1c94a9(_0x47fdaa._0x2541c2,0x101,-_0x47fdaa._0x103a49,_0x47fdaa._0x7bd4d3)](_0x567d10[_0x5df954(0x277,_0x47fdaa._0x26c3eb,0x2ab,0x1fd)],_0x50992e)),[{'type':'tool_use_delta','id':_0x567d10['call_id'],'index':_0x50992e??0x0,'name':_0x567d10[_0x1c94a9(-0x9f,-_0x47fdaa._0x31908f,-_0x47fdaa._0x23be98,-_0x47fdaa._0x3ee15c)]}];if(_0x567d10?.['type']===_0x1c94a9(-0xde,-_0x47fdaa._0x4dfc1c,_0x47fdaa._0x3bc183,-_0x47fdaa._0x9d1a8f)&&_0x567d10['id']){const _0x13a1cf=this[_0x1c94a9(-_0x47fdaa._0x31d691,-0x112,-0x110,-0x1c7)](_0x567d10['id'],_0x50992e);_0x50992e!==void 0x0&&this[_0x5df954(_0x47fdaa._0x335d18,_0x47fdaa._0xc22a9e,0x1e6,0x2b4)][_0x1c94a9(_0x47fdaa._0x2541c2,-_0x47fdaa._0x3fd5ce,0xd4,0x25)](_0x50992e,_0x13a1cf['id']);}break;}case _0x1c94a9(-0x36,_0x47fdaa._0xe01e6c,0x98,0x44):{const _0x579f40=typeof _0xcea320[_0x5df954(_0x47fdaa._0x2ab815,_0x47fdaa._0x112191,_0x47fdaa._0x5c79c5,_0x47fdaa._0x13213b)]==='string'?_0xcea320[_0x5df954(0x2fe,_0x47fdaa._0x132274,_0x47fdaa._0x5c79c5,0x21d)]:typeof _0xcea320[_0x1c94a9(-_0x47fdaa._0x5c7521,-_0x47fdaa._0x47dfdc,-_0x47fdaa._0x24ef2f,0x91)]===_0x5df954(0x238,0x396,0x30d,_0x47fdaa._0x36c9bf)?this[_0x1c94a9(-0xd9,-_0x47fdaa._0x3793f8,-0xe4,-_0x47fdaa._0x1b2999)][_0x1c94a9(-0xaa,-_0x47fdaa._0x5e55ba,-_0x47fdaa._0x2e86b8,-0xaa)](_0xcea320[_0x5df954(0x17e,_0x47fdaa._0x6c1635,_0x47fdaa._0x41ba37,0x1cd)]):void 0x0,_0x14b7df=typeof _0xcea320['delta']===_0x5df954(_0x47fdaa._0x5e5173,0x154,_0x47fdaa._0x5128bd,_0x47fdaa._0x4a3485)?_0xcea320[_0x5df954(_0x47fdaa._0x42557a,_0x47fdaa._0x5ebe9f,_0x47fdaa._0x3414bd,0x25e)]:'',_0x3295a1=_0x579f40?this[_0x1c94a9(_0x47fdaa._0x3bc183,0x2c,0x59,_0x47fdaa._0x4d2c7b)]['get'](_0x579f40):void 0x0;if(_0x3295a1&&_0x14b7df[_0x1c94a9(-0x91,-0xbe,_0x47fdaa._0x27f25d,-_0x47fdaa._0x46d9e0)]>0x0)return _0x3295a1[_0x5df954(0x34e,_0x47fdaa._0x343cc6,_0x47fdaa._0x143a3c,_0x47fdaa._0x8771a5)][_0x5df954(_0x47fdaa._0x1b7476,_0x47fdaa._0x26c3eb,_0x47fdaa._0x2858c4,0x252)]+=_0x14b7df,[{'type':_0x5df954(_0x47fdaa._0x4ff941,_0x47fdaa._0x41ba37,_0x47fdaa._0x59937b,_0x47fdaa._0x17a5cf),'id':_0x3295a1['id'],'index':this[_0x5df954(_0x47fdaa._0x4c2b16,0x130,_0x47fdaa._0x4b7088,_0x47fdaa._0x34e033)][_0x5df954(0x270,_0x47fdaa._0x5b6df0,0x1a1,_0x47fdaa._0x433ea0)](_0x3295a1['id'])??(typeof _0xcea320['output_index']==='number'?_0xcea320['output_index']:0x0),'inputDelta':_0x14b7df}];break;}case _0x1c94a9(-0xd7,-0x29,-_0x47fdaa._0x1d61b2,-0xbd):{const _0x1f1b5a=typeof _0xcea320[_0x1c94a9(0x60,-0x2,0xbb,-0x1b)]==='string'?_0xcea320[_0x5df954(0x344,_0x47fdaa._0x2b937f,0x2ab,0x31e)]:typeof _0xcea320['output_index']===_0x5df954(_0x47fdaa._0x422bf9,_0x47fdaa._0x126db1,_0x47fdaa._0x22f07c,0x3ed)?this['outputIndexToCallId']['get'](_0xcea320['output_index']):void 0x0,_0x33804c=_0x1f1b5a?this[_0x1c94a9(_0x47fdaa._0x3bc183,0x89,0xb3,-_0x47fdaa._0x2e8063)][_0x5df954(_0x47fdaa._0x5ecbc5,_0x47fdaa._0x5d01a5,_0x47fdaa._0x4bc0e5,_0x47fdaa._0x5ccfbe)](_0x1f1b5a):void 0x0;_0x33804c&&typeof _0xcea320[_0x1c94a9(_0x47fdaa._0x1932af,0x169,_0x47fdaa._0x5d21c2,_0x47fdaa._0x311059)]===_0x5df954(0x221,_0x47fdaa._0x491c4e,_0x47fdaa._0x5128bd,0x283)&&(_0x33804c[_0x1c94a9(0x3e,0x50,-_0x47fdaa._0x3c1acb,_0x47fdaa._0xe01e6c)]['arguments']=_0xcea320[_0x5df954(_0x47fdaa._0x26e8fb,_0x47fdaa._0x54f761,0x31e,0x31f)]);break;}case _0x5df954(_0x47fdaa._0x3d251e,0x210,0x285,_0x47fdaa._0x593103):{const _0x46e4bf=typeof _0xcea320['output_index']===_0x1c94a9(_0x47fdaa._0x5894e4,_0x47fdaa._0x267271,0x1a1,_0x47fdaa._0x1c2cb4)?_0xcea320['output_index']:void 0x0,_0x45fba6=_0xcea320[_0x1c94a9(_0x47fdaa._0x4ee05f,-_0x47fdaa._0x2b244a,_0x47fdaa._0xe85e64,-0xac)];if(_0x45fba6?.[_0x1c94a9(_0x47fdaa._0x31415b,0xae,-_0x47fdaa._0x3d3f77,-_0x47fdaa._0x258dde)]===_0x5df954(_0x47fdaa._0x4ff941,0x20a,0x21a,0x2bd)){const _0x3b66cb=_0x45fba6[_0x5df954(0x264,0x22f,0x2ab,_0x47fdaa._0x183f7a)]??(_0x46e4bf!==void 0x0?this[_0x5df954(0x137,_0x47fdaa._0xbd1215,_0x47fdaa._0x5139df,_0x47fdaa._0x2db4fd)][_0x1c94a9(-_0x47fdaa._0x468106,-_0x47fdaa._0x40a379,-0xa0,-0x16)](_0x46e4bf):void 0x0),_0x9292d4=_0x3b66cb?this['toolCalls'][_0x1c94a9(-_0x47fdaa._0x468106,-_0x47fdaa._0x43415b,-0x94,-0xc8)](_0x3b66cb):void 0x0;_0x9292d4&&typeof _0x45fba6[_0x5df954(_0x47fdaa._0xc22a9e,0x3f3,_0x47fdaa._0x2858c4,0x3e7)]===_0x1c94a9(-0xae,-_0x47fdaa._0x420ce0,-_0x47fdaa._0x46dfef,-0x26)&&(_0x9292d4[_0x5df954(0x371,0x27e,_0x47fdaa._0x7073d7,0x27f)][_0x5df954(_0x47fdaa._0x22eddf,0x2fe,_0x47fdaa._0x5b1d60,_0x47fdaa._0x577ae6)]=_0x45fba6[_0x5df954(_0x47fdaa._0x1d481c,0x2b5,0x31e,0x2dd)]);break;}if(_0x45fba6?.[_0x1c94a9(_0x47fdaa._0x484ea5,_0x47fdaa._0x4d76b9,-0xa1,-_0x47fdaa._0x2b244a)]===_0x5df954(_0x47fdaa._0x504e37,0x16e,0x16d,0x15a)&&_0x45fba6['id']){const _0x23a731=this[_0x1c94a9(-_0x47fdaa._0x2887a6,-0x186,-0x1cc,-0xfb)](_0x45fba6['id'],_0x46e4bf);typeof _0x45fba6[_0x5df954(_0x47fdaa._0x48ad21,0x321,0x2cd,0x247)]==='string'&&(_0x23a731['encryptedContent']=_0x45fba6['encrypted_content']);if(Array[_0x1c94a9(0xc6,_0x47fdaa._0x163051,_0x47fdaa._0x5162d7,_0x47fdaa._0x41914a)](_0x45fba6[_0x1c94a9(_0x47fdaa._0x2842ab,_0x47fdaa._0x194fa8,_0x47fdaa._0x9d1a8f,0x135)]))for(let _0x1fdbae=0x0;_0x1fdbae<_0x45fba6[_0x5df954(0x290,0x26d,0x316,0x3f0)]['length'];_0x1fdbae+=0x1){const _0x3745bd=_0x45fba6[_0x1c94a9(_0x47fdaa._0x2842ab,0x175,_0x47fdaa._0x25e0d4,0x1e)][_0x1fdbae];_0x3745bd[_0x5df954(0x33c,0x2fb,_0x47fdaa._0x2f4455,_0x47fdaa._0x2a49bf)]===_0x1c94a9(-_0x47fdaa._0x24482e,_0x47fdaa._0x4fa292,-_0x47fdaa._0x2dd5ba,-0x6d)&&typeof _0x3745bd[_0x1c94a9(-_0x47fdaa._0x15c021,_0x47fdaa._0x101430,0x4a,_0x47fdaa._0x34698d)]==='string'&&_0x23a731[_0x5df954(_0x47fdaa._0xb6df9a,0x29f,_0x47fdaa._0x118cc9,_0x47fdaa._0x5d0d6b)][_0x1c94a9(_0x47fdaa._0x217562,-_0x47fdaa._0x14f925,_0x47fdaa._0x34de36,-_0x47fdaa._0xf290ee)](_0x1fdbae,_0x3745bd[_0x1c94a9(-0x5c,-0xd,-0xfe,-0x2d)]);}typeof _0x45fba6[_0x1c94a9(-_0x47fdaa._0x15c021,-_0x47fdaa._0x4d956a,-0x5e,-_0x47fdaa._0x4e14fd)]==='string'&&_0x23a731[_0x5df954(0x1bf,_0x47fdaa._0x5059bf,0x159,_0x47fdaa._0x2202c9)][_0x5df954(0x386,0x3ac,0x2c2,_0x47fdaa._0x3c5f40)](0x0,_0x45fba6[_0x1c94a9(-_0x47fdaa._0x15c021,-0x90,-0x73,_0x47fdaa._0xca3f53)]);}break;}case _0x1c94a9(_0x47fdaa._0x435c71,-0x17,_0x47fdaa._0x5705b2,0x80):{const _0x54d3a8=typeof _0xcea320[_0x1c94a9(_0x47fdaa._0x31e940,0x1,0xf,0x65)]===_0x1c94a9(-_0x47fdaa._0xfc444f,-0x122,-_0x47fdaa._0x320ae0,-0x45)?_0xcea320[_0x1c94a9(_0x47fdaa._0x31e940,-0xbc,-_0x47fdaa._0x319c52,0x82)]:'',_0x1f02cd=typeof _0xcea320['item_id']===_0x5df954(_0x47fdaa._0x3b80d3,0xc8,0x19d,_0x47fdaa._0x20323a)?_0xcea320[_0x1c94a9(0x1,0x4b,-0x6e,-_0x47fdaa._0x3fbc12)]:typeof _0xcea320[_0x5df954(_0x47fdaa._0x3a6fa0,_0x47fdaa._0x565d35,_0x47fdaa._0x41ba37,_0x47fdaa._0x52f6a3)]===_0x1c94a9(_0x47fdaa._0x5894e4,0x166,0x49,_0x47fdaa._0x204db2)?this[_0x5df954(0x25a,0x289,0x1e6,_0x47fdaa._0x568067)][_0x1c94a9(-_0x47fdaa._0x41fac1,_0x47fdaa._0x16efb3,-0x67,-0x5f)](_0xcea320[_0x1c94a9(-0x32,-0xef,_0x47fdaa._0x3466f8,-0xa5)]):void 0x0,_0x10b629=typeof _0xcea320[_0x1c94a9(-0x32,-_0x47fdaa._0x47dfdc,0x89,_0x47fdaa._0x56178a)]===_0x5df954(_0x47fdaa._0x33e5af,0x331,0x30d,_0x47fdaa._0x117d61)?_0xcea320[_0x5df954(_0x47fdaa._0x422bf9,_0x47fdaa._0x14ca02,0x219,_0x47fdaa._0x2f9eeb)]:0x0,_0x5b6ef7=typeof _0xcea320[_0x1c94a9(-_0x47fdaa._0x88cd3b,0x12,-_0x47fdaa._0x551560,-_0x47fdaa._0x501dce)]===_0x1c94a9(0xc2,0x104,_0x47fdaa._0xadbd0d,-0x10)?_0xcea320[_0x1c94a9(-0x18,0x94,-_0x47fdaa._0x5af92a,-_0x47fdaa._0x37df5b)]:0x0;if(_0x1f02cd&&_0x54d3a8['length']>0x0){const _0x2f7796=this[_0x5df954(0x118,0x18c,0x153,0x16a)](_0x1f02cd,_0x10b629);_0x2f7796[_0x5df954(0x256,0x24f,0x2d0,0x29a)][_0x1c94a9(0x77,0x17,-0x4c,_0x47fdaa._0x3358d9)](_0x5b6ef7,''+(_0x2f7796[_0x5df954(0x2e4,0x2f9,_0x47fdaa._0x118cc9,_0x47fdaa._0x2325f8)]['get'](_0x5b6ef7)??'')+_0x54d3a8);if(isUserVisibleReasoning(this[_0x5df954(_0x47fdaa._0x45420c,_0x47fdaa._0x593103,0x2dd,0x345)]))return[{'type':_0x1c94a9(-0x5a,0x88,-_0x47fdaa._0x30dd86,-_0x47fdaa._0x254bd0),'delta':_0x54d3a8,'itemId':_0x1f02cd,'outputIndex':_0x10b629,'summaryIndex':_0x5b6ef7}];}break;}case'response.reasoning_summary_text.done':{const _0x5ac0bf=typeof _0xcea320[_0x1c94a9(_0x47fdaa._0x27f25d,-_0x47fdaa._0xe91494,0xb0,-0x15)]===_0x5df954(_0x47fdaa._0x2f62eb,0x204,0x19d,0x1fd)?_0xcea320[_0x5df954(_0x47fdaa._0x30d17c,_0x47fdaa._0xaa4f5,0x24c,_0x47fdaa._0x3a6fa0)]:typeof _0xcea320[_0x5df954(_0x47fdaa._0xa8359e,_0x47fdaa._0x3f3300,0x219,0x206)]==='number'?this['outputIndexToReasoningId']['get'](_0xcea320['output_index']):void 0x0,_0x47bbdf=typeof _0xcea320[_0x5df954(0x258,0x19c,0x219,0x161)]===_0x1c94a9(0xc2,0x83,0x143,0xf8)?_0xcea320[_0x1c94a9(-0x32,-_0x47fdaa._0x4d76b9,-0x13,_0x47fdaa._0xce5a98)]:0x0,_0x59bb17=typeof _0xcea320[_0x5df954(_0x47fdaa._0x40a379,0x1ad,_0x47fdaa._0x346a37,0x28e)]==='number'?_0xcea320[_0x1c94a9(-0x18,-0xe3,_0x47fdaa._0x534dc5,0x3b)]:0x0,_0x5197fa=typeof _0xcea320[_0x1c94a9(-_0x47fdaa._0x15c021,-_0x47fdaa._0xc16088,0x80,-0x62)]===_0x5df954(0x178,_0x47fdaa._0x5a2d97,_0x47fdaa._0x16e070,_0x47fdaa._0x3cde1f)?_0xcea320[_0x5df954(_0x47fdaa._0x473dc7,_0x47fdaa._0x4ba723,0x1ef,0x14f)]:'';_0x5ac0bf&&this[_0x5df954(0x1e0,0xc8,_0x47fdaa._0x229de3,_0x47fdaa._0x55721a)](_0x5ac0bf,_0x47bbdf)[_0x1c94a9(_0x47fdaa._0xa1cda,-_0x47fdaa._0x11aa15,0x129,_0x47fdaa._0x6c1a7a)][_0x5df954(_0x47fdaa._0x51625d,_0x47fdaa._0x42819c,0x2c2,0x2d3)](_0x59bb17,_0x5197fa);break;}case _0x1c94a9(-_0x47fdaa._0x5f4321,-0x175,-0x9,-_0x47fdaa._0x437b09):{const _0xa57ccd=typeof _0xcea320[_0x1c94a9(0x2e,0xe,0x46,-_0x47fdaa._0x5559e2)]===_0x1c94a9(-_0x47fdaa._0x5078a2,-_0x47fdaa._0x43415b,-0xea,0x14)?_0xcea320[_0x5df954(0x2de,_0x47fdaa._0x258af5,0x279,0x230)]:'',_0x47b2a9=typeof _0xcea320[_0x5df954(0x2bf,_0x47fdaa._0x4217e8,0x24c,0x1bb)]===_0x5df954(0x279,0xf8,_0x47fdaa._0x5128bd,_0x47fdaa._0x6f6232)?_0xcea320[_0x5df954(_0x47fdaa._0x44d781,0x296,0x24c,0x32d)]:typeof _0xcea320['output_index']===_0x1c94a9(_0x47fdaa._0x5894e4,_0x47fdaa._0x4e14fd,_0x47fdaa._0x5ea884,_0x47fdaa._0x2913ae)?this[_0x1c94a9(-_0x47fdaa._0x7bead,-0xc,-_0x47fdaa._0x390f9f,-0xf)]['get'](_0xcea320[_0x5df954(0x1dc,_0x47fdaa._0x56542d,_0x47fdaa._0x4da958,0x17a)]):void 0x0,_0x54a655=typeof _0xcea320[_0x1c94a9(-0x32,-0xe0,_0x47fdaa._0x254bd0,-_0x47fdaa._0x15e85d)]===_0x5df954(_0x47fdaa._0x4f7338,0x287,0x30d,_0x47fdaa._0x36e2b4)?_0xcea320['output_index']:0x0,_0x49c12a=typeof _0xcea320['content_index']==='number'?_0xcea320[_0x5df954(_0x47fdaa._0x586805,0x19f,_0x47fdaa._0x47105f,_0x47fdaa._0x180404)]:0x0;if(_0x47b2a9&&_0xa57ccd[_0x5df954(_0x47fdaa._0x55254e,0x1f8,_0x47fdaa._0x1792ee,_0x47fdaa._0x110678)]>0x0){const _0x3457a4=this[_0x1c94a9(-0xf8,-_0x47fdaa._0x129e2e,-_0x47fdaa._0x376666,-_0x47fdaa._0x1778f0)](_0x47b2a9,_0x54a655);_0x3457a4[_0x1c94a9(-_0x47fdaa._0x33add8,-_0x47fdaa._0x41fac1,-0x11a,-0x128)][_0x5df954(0x25c,0x36a,_0x47fdaa._0x1045c,_0x47fdaa._0x401000)](_0x49c12a,''+(_0x3457a4[_0x1c94a9(-_0x47fdaa._0x33add8,-0x99,-0x13e,-0x9c)][_0x1c94a9(-_0x47fdaa._0x468106,-_0x47fdaa._0x21b14,-0x27,-0x89)](_0x49c12a)??'')+_0xa57ccd);if(isUserVisibleReasoning(this[_0x1c94a9(0x92,_0x47fdaa._0x37aa9c,_0x47fdaa._0x15c8de,_0x47fdaa._0x22be8b)]))return[{'type':_0x5df954(0x2e8,0x2ee,_0x47fdaa._0xcb5804,_0x47fdaa._0x2214e0),'contentIndex':_0x49c12a,'delta':_0xa57ccd,'itemId':_0x47b2a9,'outputIndex':_0x54a655}];}break;}case _0x5df954(0x20a,_0x47fdaa._0x51b010,_0x47fdaa._0x2566b5,_0x47fdaa._0x5511b5):{const _0x527462=typeof _0xcea320[_0x1c94a9(_0x47fdaa._0x27f25d,-0xc6,-_0x47fdaa._0x4d76b9,-0x30)]===_0x5df954(0x12d,_0x47fdaa._0x5748bb,0x19d,_0x47fdaa._0x5a1dc5)?_0xcea320[_0x5df954(0x2ca,_0x47fdaa._0xea4c27,_0x47fdaa._0x55d155,_0x47fdaa._0x3900fc)]:typeof _0xcea320['output_index']===_0x1c94a9(_0x47fdaa._0x5894e4,_0x47fdaa._0xe91494,_0x47fdaa._0x24fa35,0x21)?this['outputIndexToReasoningId'][_0x1c94a9(-0xaa,-0x7e,-_0x47fdaa._0x26cfbf,-0xbd)](_0xcea320['output_index']):void 0x0,_0x4132e7=typeof _0xcea320[_0x5df954(_0x47fdaa._0x2ad509,_0x47fdaa._0x2f673f,_0x47fdaa._0xbf7523,0x17c)]===_0x1c94a9(_0x47fdaa._0x1d2172,0xa9,0x127,0xd1)?_0xcea320['output_index']:0x0,_0x4b255a=typeof _0xcea320[_0x5df954(0x17d,0x14a,_0x47fdaa._0x47105f,0x107)]==='number'?_0xcea320[_0x1c94a9(-_0x47fdaa._0x280df2,-0x10d,-0x109,-_0x47fdaa._0x5eb2a3)]:0x0,_0x426155=typeof _0xcea320[_0x1c94a9(-0x5c,-0xb,0x76,_0x47fdaa._0xd9c272)]==='string'?_0xcea320['text']:'';_0x527462&&this[_0x5df954(0x22b,_0x47fdaa._0x2aa77b,_0x47fdaa._0x2f62eb,0x6c)](_0x527462,_0x4132e7)[_0x5df954(_0x47fdaa._0x1fbd78,0x238,_0x47fdaa._0x507d0c,0x95)]['set'](_0x4b255a,_0x426155);break;}case _0x5df954(_0x47fdaa._0x4a9eba,_0x47fdaa._0x5607f7,_0x47fdaa._0xae0ec1,0x2d7):{this[_0x5df954(0x142,_0x47fdaa._0x475a90,_0x47fdaa._0xa3f08f,0x25f)]=_0xcea320[_0x1c94a9(-_0x47fdaa._0x3d1084,-_0x47fdaa._0x43d6cc,0x37,-0xe7)];break;}case _0x1c94a9(0x15,_0x47fdaa._0x281115,-_0x47fdaa._0x1109d9,-_0x47fdaa._0x23cef3):{const _0xd90d07=_0xcea320[_0x5df954(0x18f,0x220,0x205,_0x47fdaa._0x47c950)];throw new ProviderStreamEventError(_0xd90d07?.[_0x5df954(0x166,_0x47fdaa._0x44eba1,0x185,_0x47fdaa._0x9d1a8f)]?.['message']??'Responses\x20stream\x20failed',{'code':_0xd90d07?.[_0x1c94a9(-_0x47fdaa._0x3d84fa,-0x158,-_0x47fdaa._0x403f18,-_0x47fdaa._0x5f27b2)]?.[_0x5df954(_0x47fdaa._0x306595,0x3c9,0x31b,_0x47fdaa._0x1d5c25)],'retryable':!![]});}case _0x1c94a9(-0xc6,-_0x47fdaa._0x348a1e,-_0x47fdaa._0x30849d,-0xa4):{const _0x496564=_0xcea320[_0x1c94a9(-_0x47fdaa._0x43c21b,-_0x47fdaa._0x95a518,-_0x47fdaa._0x427cab,-0x49)];throw new ProviderStreamEventError(_0x496564?.[_0x5df954(0x344,_0x47fdaa._0xf5c8d6,_0x47fdaa._0x1f7d44,0x2da)]??_0x5df954(0x317,_0x47fdaa._0x5546ba,0x2f2,_0x47fdaa._0x185680),{'code':_0x496564?.[_0x5df954(_0x47fdaa._0x56263b,_0x47fdaa._0x112191,0x31b,_0x47fdaa._0x380382)],'retryable':!![],'status':typeof _0xcea320[_0x1c94a9(-0x72,-0xe3,-0x13b,-_0x47fdaa._0x5316ab)]===_0x5df954(_0x47fdaa._0x47929a,0x26e,_0x47fdaa._0x22f07c,0x226)?_0xcea320[_0x5df954(0x295,_0x47fdaa._0x4ea608,0x1d9,_0x47fdaa._0x226a48)]:void 0x0});}}return[];}[_0x11bd88(0x55e,0x594,0x5df,0x623)](){const _0x43dd86={_0xe736c9:0x354,_0x3cc861:0x418,_0x457e0e:0x3f9,_0xbef207:0x302,_0x3f7c1c:0x2de,_0x232da3:0x2c9,_0x238918:0x360,_0x35c1c6:0x45c,_0x3b617a:0x424,_0x2e87de:0x3d4,_0x3a7920:0x49c,_0x5e55b8:0x44c,_0x157ac2:0x48a,_0x5ddbfa:0x417,_0x3a079c:0x43c,_0x50f737:0x3de,_0x22cc45:0x3e2,_0x310902:0x343,_0x4f3f3b:0x2e1,_0xa82b90:0x2bb,_0x285ec8:0x2c6,_0x4a6910:0x1fd,_0x4d9d5b:0x2c7,_0x288501:0x28b,_0x2d81af:0x282,_0x45fa77:0x3d8,_0x579767:0x444,_0x5bb4a8:0x39c,_0x4187c8:0x2cd,_0x92113d:0x413,_0x49a14c:0x354,_0xf6cc31:0x3b1,_0x4b41e4:0x41b,_0x25eead:0x315,_0x42aea4:0x263,_0x28bc3b:0x2b4,_0x53639d:0x218,_0x55ba3e:0x2ca,_0x50bab8:0x34e,_0x1a1df6:0x2e6,_0x538fd7:0x2dc,_0x2f3909:0x3e7,_0x10dbb9:0x369,_0xe84ec2:0x3aa,_0x181fc4:0x4a3,_0x1a4d36:0x3c5,_0x38856a:0x3a9,_0x305103:0x2fb,_0xfcbc21:0x3b5,_0x3b1d5f:0x2d4,_0x1b619b:0x315,_0x381067:0x38e,_0x1df4d9:0x330,_0x44ff39:0x38d,_0x46d26c:0x3fa,_0x1861fc:0x434,_0x3909be:0x320,_0x1c70c2:0x290,_0x4e4efe:0x3fd,_0x4bdf8f:0x421,_0x429a2e:0x482,_0x3c4f35:0x3bd,_0x2abfd8:0x3a7,_0x46059c:0x2fc,_0x179e40:0x286,_0x5eb559:0x299},_0x4db21f={_0x4ab880:0x104,_0x4d17b9:0x5d},_0xe1c95a={_0x333646:0x1ef,_0x35084c:0x28d},_0x1a1f58={_0x4aa82d:0x4b};function _0x4127fa(_0x159026,_0x4017cb,_0x3344cf,_0x2fc27a){return _0xd1496a(_0x4017cb- -0x176,_0x4017cb-_0x1a1f58._0x4aa82d,_0x159026,_0x2fc27a-0x28);}const _0x172804=[];for(const [_0x4adffb,_0x456d28]of this['responseTextParts'][_0x31c80f(0x385,_0x43dd86._0xe736c9,_0x43dd86._0x3cc861,0x3f3)]()){const _0x20194e=_0x456d28[_0x4127fa(0x323,0x369,_0x43dd86._0x457e0e,_0x43dd86._0xbef207)]('');if(_0x20194e[_0x4127fa(0x278,0x32e,_0x43dd86._0x3f7c1c,0x281)]===0x0)continue;_0x172804[_0x31c80f(0x34f,0x38e,_0x43dd86._0x232da3,_0x43dd86._0x238918)]({'index':_0x4adffb,'item':{'type':_0x4127fa(_0x43dd86._0x35c1c6,_0x43dd86._0x3b617a,0x40c,_0x43dd86._0x2e87de),'role':_0x4127fa(_0x43dd86._0x3a7920,_0x43dd86._0x5e55b8,_0x43dd86._0x157ac2,_0x43dd86._0x5ddbfa),'content':[{'type':'output_text','text':_0x20194e}]}});}for(const _0x41053f of this[_0x4127fa(0x48e,0x461,_0x43dd86._0x3a079c,0x3ff)][_0x31c80f(_0x43dd86._0x50f737,0x2fb,_0x43dd86._0x22cc45,0x294)]()){_0x172804['push']({'index':_0x41053f[_0x31c80f(0x30b,0x3c8,0x49b,0x34c)]??_0x172804['length'],'item':{'type':_0x4127fa(_0x43dd86._0x310902,_0x43dd86._0x4f3f3b,_0x43dd86._0xa82b90,0x36e),'id':_0x41053f['id'],..._0x41053f[_0x4127fa(_0x43dd86._0x285ec8,0x2ca,0x39b,_0x43dd86._0x4a6910)]?{'encrypted_content':_0x41053f[_0x31c80f(0x325,_0x43dd86._0x4d9d5b,_0x43dd86._0x288501,_0x43dd86._0x2d81af)]}:{},..._0x41053f[_0x4127fa(_0x43dd86._0x45fa77,_0x43dd86._0x579767,0x507,0x44a)][_0x31c80f(_0x43dd86._0x5bb4a8,_0x43dd86._0x4187c8,0x2e2,0x385)]>0x0?{'summary':Array['from'](_0x41053f['summaryByIndex'][_0x31c80f(_0x43dd86._0x92113d,_0x43dd86._0x49a14c,_0x43dd86._0xf6cc31,_0x43dd86._0x4b41e4)]())[_0x31c80f(0x454,0x369,0x3e1,0x2e1)]((_0x586304,_0x1dd820)=>_0x586304[0x0]-_0x1dd820[0x0])['map'](([,_0x1a046e])=>{const _0xba1cea={_0x4cc035:0x14c,_0x39acf3:0x25};function _0x58e527(_0x4194a8,_0x255f78,_0x400ecc,_0x5b3974){return _0x31c80f(_0x4194a8-_0xba1cea._0x4cc035,_0x5b3974- -0x6c,_0x400ecc-_0xba1cea._0x39acf3,_0x400ecc);}return{'type':_0x58e527(0x334,_0xe1c95a._0x333646,_0xe1c95a._0x35084c,0x2a5),'text':_0x1a046e};})}:{},..._0x41053f[_0x31c80f(0x31e,0x2ca,_0x43dd86._0x25eead,_0x43dd86._0x42aea4)][_0x31c80f(_0x43dd86._0x28bc3b,_0x43dd86._0x4187c8,0x361,0x2c5)]>0x0?{'text':Array['from'](_0x41053f[_0x31c80f(_0x43dd86._0x53639d,_0x43dd86._0x55ba3e,_0x43dd86._0x50bab8,_0x43dd86._0x1a1df6)]['entries']())['sort']((_0x50d0a6,_0x51c31a)=>_0x50d0a6[0x0]-_0x51c31a[0x0])[_0x4127fa(_0x43dd86._0x538fd7,0x381,0x301,0x2f1)](([,_0x21f7d9])=>_0x21f7d9)[_0x4127fa(_0x43dd86._0x2f3909,_0x43dd86._0x10dbb9,0x2fc,_0x43dd86._0xe84ec2)]('')}:{}}});}for(const _0x5eca98 of this[_0x4127fa(_0x43dd86._0x181fc4,_0x43dd86._0x1a4d36,_0x43dd86._0x38856a,0x329)][_0x31c80f(_0x43dd86._0x3f7c1c,_0x43dd86._0x305103,0x2bc,_0x43dd86._0xfcbc21)]()){_0x172804[_0x31c80f(0x309,0x38e,_0x43dd86._0x3b1d5f,0x42c)]({'index':this['callIdToOutputIndex'][_0x4127fa(0x2eb,_0x43dd86._0x1b619b,_0x43dd86._0x457e0e,0x332)](_0x5eca98['id'])??_0x172804['length'],'item':{'type':_0x4127fa(_0x43dd86._0x1a4d36,_0x43dd86._0x381067,_0x43dd86._0x1df4d9,0x3f1),'call_id':_0x5eca98['id'],'name':_0x5eca98[_0x31c80f(_0x43dd86._0x44ff39,_0x43dd86._0x46d26c,0x3f7,_0x43dd86._0x1861fc)][_0x4127fa(0x244,_0x43dd86._0x3909be,_0x43dd86._0x1c70c2,0x33a)],'arguments':_0x5eca98[_0x4127fa(0x4bd,_0x43dd86._0x4e4efe,_0x43dd86._0x4bdf8f,0x44f)][_0x31c80f(_0x43dd86._0x429a2e,0x48f,_0x43dd86._0x3c4f35,_0x43dd86._0x2abfd8)]}});}function _0x31c80f(_0x1d7741,_0x139014,_0xa6b3d2,_0x4dc7dc){return _0x11bd88(_0x139014- -_0x4db21f._0x4ab880,_0x4dc7dc,_0xa6b3d2-_0x4db21f._0x4d17b9,_0x4dc7dc-0x4);}return _0x172804[_0x31c80f(_0x43dd86._0x46059c,_0x43dd86._0x10dbb9,_0x43dd86._0x179e40,0x338)]((_0x13d548,_0x166c77)=>_0x13d548[_0x31c80f(0x373,0x381,0x3c7,0x2b7)]-_0x166c77[_0x31c80f(0x340,0x381,0x2a0,0x300)])[_0x4127fa(0x3a6,0x381,_0x43dd86._0x5eb559,0x3e2)](_0x4d9938=>_0x4d9938[_0x4127fa(0x467,0x3cd,0x303,0x422)]);}['getOrCreateReasoningItem'](_0x348dfa,_0x4f0eb3){const _0x308601={_0x32fbb5:0x27a,_0x7196af:0x2f8,_0x34e1e5:0x218,_0x5b9922:0x6f,_0x5f2588:0xbe,_0x1f7756:0x4c7,_0x1be233:0x51e,_0x5b4ff4:0x53c,_0x2b60fc:0x456,_0x194227:0x451,_0x149400:0x4cb,_0x4af5aa:0x33e,_0x19b32a:0x291,_0x9ab0ab:0x33a,_0x16354c:0x1ce,_0x1ec123:0x532,_0x5863e2:0x606,_0x5c983a:0x54f,_0x18a4df:0x502},_0xbdd449={_0x1d28b1:0x107};function _0x457ee3(_0x5271f1,_0x1dcddc,_0x4a72aa,_0x33a5a5){return _0x11bd88(_0x5271f1- -0x5,_0x33a5a5,_0x4a72aa-0xa2,_0x33a5a5-0x103);}const _0x194dc5=this[_0x200f0a(0x291,_0x308601._0x32fbb5,_0x308601._0x7196af,_0x308601._0x34e1e5)][_0x200f0a(0x145,_0x308601._0x5b9922,_0x308601._0x5f2588,0xb6)](_0x348dfa);if(_0x194dc5)return _0x4f0eb3!==void 0x0&&(_0x194dc5[_0x457ee3(_0x308601._0x1f7756,_0x308601._0x1be233,0x470,_0x308601._0x5b4ff4)]=_0x4f0eb3,this[_0x457ee3(_0x308601._0x2b60fc,0x3f7,_0x308601._0x194227,_0x308601._0x149400)][_0x200f0a(0x266,0x2a2,_0x308601._0x4af5aa,0x34b)](_0x4f0eb3,_0x348dfa)),_0x194dc5;const _0x28c83b={'id':_0x348dfa,'outputIndex':_0x4f0eb3,'summaryByIndex':new Map(),'textByIndex':new Map()};function _0x200f0a(_0x15fe76,_0x35f80a,_0x162e3e,_0x2e10d6){return _0xd1496a(_0x15fe76- -0x346,_0x35f80a-_0xbdd449._0x1d28b1,_0x2e10d6,_0x2e10d6-0x9d);}return this[_0x200f0a(_0x308601._0x19b32a,0x239,_0x308601._0x9ab0ab,_0x308601._0x16354c)][_0x457ee3(_0x308601._0x1ec123,_0x308601._0x5863e2,_0x308601._0x5c983a,_0x308601._0x18a4df)](_0x348dfa,_0x28c83b),_0x4f0eb3!==void 0x0&&this[_0x457ee3(0x456,0x517,0x509,0x4bb)]['set'](_0x4f0eb3,_0x348dfa),_0x28c83b;}};function _0x4483(){const _0xcb6f75=['ndiWnJaXELHkzvLl','Bw9KzwW','AM9PBG','qxv0AgvUDgLJyxrPB24GzMfPBgvKlIbqBgvHC2uGy2HLy2SGEw91CIbbueKGA2v5lG','Bwf4vg9Rzw5Z','C29YDa','Ahr0Chm6lY9HCgKUBwLUAw1HEc5PBY9HBNrOCM9WAwm','zgLZywjSzwq','ChjVDg9JB2W','Dg9VBenHBgXpCMrLCG','CMvHC29UAw5Nx2nVBNrLBNq','y2f0y2G','Dgv4Dc9LDMvUDc1ZDhjLyw0','C3rYAwn0','BhmGlwXH','C3rYzwfTvMLHq2HHDenVBxbSzxrPB25Zu3vYzMfJzq','yMfZzvvYBa','nZi5CMHivNPw','CMvZCg9UC2u','ue9tva','z2v0uMvHzgvY','Dg9VBf91C2u','C2nOzw1H','C291CMnL','z3b0ltrV','y29UC3vTzuv2zw50','BwfW','CM91DgvY','y3jLyxrLu3rYzwfTugfYC2vY','Aw5KzxG','CgfYC2vszxnWB25Zzq','BxnNlq','AxngAw5PDgu','C2HVDwXKuMv0CNLszxf1zxn0rxjYB3i','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzgvSDge','DgHPBMTPBMC','Aw5JBhvKzxm','Aw5WDxrFDg9Rzw5Z','B3v0Chv0x2LUzgv4','zNvUy3rPB25Fy2fSBa','r2L0shvIie1VzgvSCYaVienVCgLSB3q','C2HHCMvKuMvZCg9UC2vZu29JA2v0u2vZC2LVBNm','ChvZAa','Aw5WDxrkC29U','y2XHDwrLltmTns1ZB25UzxqTmJaYndeWmJi','AgvHzgvYuMvZB2X2zxi','y29UDgvUDf9IBg9JAW','zMLUAxnOx3jLyxnVBG','C2vSzwn0u3vYzMfJzq','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBKTLEq','y3jLyxrLtwLZC2LUz0nYzwrLBNrPywXfCNjVCG','r2L0shvIiefqssbLCNjVCIa','yM9KEq','Ahr0Cc1ZC2u','qw50AhjVCgLJihn0CMvHBsbMywLSzwq','B3v0Chv0x3rLEhq','y2fWywjSzv9LBMrWB2LUDhm','Dg9VBhm','igrPzcbUB3qGChjVDMLKzsbHBIbivfrqihbHDgG','CMvZCg9UC2uUB3v0Chv0x2L0zw0UywrKzwq','Dgv4DfbHCNrZ','yMvHCMvY','DNnJB2rLlZeUmta0lJi','B3bLBMfPl2DWDc00BW','C3vTBwfYEv9PBMrLEa','v2vIu29JA2v0','ywjVCNq','Dw5ZDxbWB3j0zwrFyxbPx2zVCL9TB2rLBa','Dg9VBf9JywXSCW','CMv0CNLHyMXL','z2v0t3jdCMvHDgvszxnWB25ZzxntB2nRzxq','Bw9Kzq','mtbPzMPmtKy','C3vWCg9YDhnnB2rLBezLDgnO','mZKXotjOsgrSsKC','zw5HyMXLza','A2LUza','zxzLBNq','C2vZC2LVBI10B2TLBG','ssbJAgvJA2vKihrOzsbTB2nRzwqGDg9VBcbYzxn1BhqUia','Dg9bCgLfCNjVCG','y29UBMvJDgLUzW','wI5bsq','B2f1DgGTDg9Rzw4','BwLTBY12mI41lxbYBW','yw50AhjVCgLJqxnZAxn0yw50q29UDgvUDa','yNvKz2v0vg9Rzw5Z','DMLZAwjPBgL0Eq','CMvZCg9UC2vtB2nRzxrtDhjLyw0','AxrLBv9Pza','y29TCgXLDgvwAwfsB3v0zxi','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','B21PDhrLza','CgvUzgLUzW','Dg9VBenHBgXZ','B3bLBG','BwfYA01VzgvSqxnszxnWB25ZzxnpBMX5','C3rYzwfTvMLHq29UzMLNDxjLzfn1CMzHy2u','C2HVDwXKuMv0CNLtDhjLyw1bDhrLBxb0rxjYB3i','Ahr0Chm6lY90B2TLBI1WBgfUlxnNCc54AwfVBwLTAw1VlMnVBs9HBNrOCM9WAwm','B3v0Chv0sw5KzxG','zg9Uzq','AxrLBq','CMvZCc0','B3bLBMfPlxjLC3bVBNnLCY13CW','vw5ZDxbWB3j0zwqGr2L0shvIig1VzgvSihn1CMzHy2u6ia','Dg9VBf91C2vFzgvSDge','CMvHzhLtDgf0zq','y2HHDenVBxbSzxrL','CMvZCg9UC2uUzMfPBgvK','mtu0mJaZALjTs1Hl','z2L0AhvI','DhLWzq','y29TCgXLDgvwAwfdAgf0q29TCgXLDgLVBNntDxjMywnL','Dg9Wx3bYB3zPzgvY','C3rYAw5NAwz5','ywnJzxb0','mJaYmY0WnI0Wmq','y29UDgv4DfDPBMrVDW','y29TCgXLDgvwAwfdB25MAwD1CMvKu3vYzMfJzq','igrVzxmGBM90ihn1ChbVCNqGBM9Ulxn0CMvHBwLUzYbYzxnWB25Zzxm','mJaYns0Xmc0Wmq','oNjLyxnVBMLUzZOW','qMvHCMvYia','Aw5PDgLHBev2zw50','uhjVDMLKzxiGCMvXDwvZDcbYzxrYEsbSB29Wigv4AxrLzcb1BMv4CgvJDgvKBhK','zNjVBq','t3bLBKfPqxbPrxjYB3i','BM93','l2nVCgLSB3rFAw50zxjUywWVDJiVDg9Rzw4','y29TCgXLDgLVBL90B2TLBNnFzgv0ywLSCW','C3rYzwfTvMLHuM91DgvY','Dg9mB3DLCKnHC2u','C3rYzwfTvMLHuMvZCg9UC2vZu29JA2v0qxr0zw1WDa','zgvSDge','C3LZDgvT','ywnXDwLYzvjLC3bVBNnLC1nVy2TLDeXVy2S','ChjLCgfYzunOyxrszxf1zxn0','mJm2odCZmfbMA3zkAq','zMv0y2HjBxbS','DxrMltG','l2nOyxqVy29TCgXLDgLVBNm','DxnLC1jLC3bVBNnLC0fWAq','B2jQzwn0','y29UDgvUDf9IBg9JA19KzwX0yq','CMvHC29U','CMvZCg9UC2uUB3v0Chv0x2L0zw0Uzg9Uzq','l3jLC3bVBNnLCW','yw50AhjVCgLJlxzLCNnPB24','C3vTBwfYAxPLza','zNvUy3rPB24','CMvZCg9UC2uUy3jLyxrL','yw50AhjVCgLJqMfZzvvYBa','BwfWqxbPrxjYB3i','CMvKywn0zwrFDgHPBMTPBMC','C29Tzq','z2v0t3bLBKfPrgvSzwDHDgu','y2XVC2u','l21VzgvSCW','C3bSAwnL','qw50AhjVCgLJigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','Aw5JBhvKzunVBNrLBNruExbL','BgfZDfjLC3bVBNnLswq','zgvMyxvSDe1VzgvSCW','C2LNBMf0DxjL','yxv0AfnJAgvTzq','CMvHC29UAw5NugfYDhm','y2fUy2vS','DxnLCG','igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','C3rYzwfTv2vIu29JA2v0u3vYzMfJzq','Ahr0Chm6lY9HCgKUB3bLBMfPlMnVBs92mq','Aw52ywXPzgf0zq','Aw5WDxrFDgv4Da','zMv0y2G','ywjVCNrLza','yxbWBgLJyxrPB24VANnVBG','ChjVDMLKzxjFCMv0CNK','C2vUza','DxjS','C3vYzMfJzxm','B3bLBMfPuMvZCg9UC2vZuMvZCg9UC2vjza','z2XTltqUnG','z2XTltqUnW','y2fSBf9Pza','z2v0uMv0CNLezwXHEu1Z','C3rYzwfTshr0Cfn1CMzHy2u','yMXVy2TZ','yw50AhjVCgLJx3nPz25HDhvYzv9KzwX0yq','BwvZC2fNzq','CMvZCg9UC2vtDhjLyw0','zMLSDgvY','ywnJzxnZvg9Rzw4','y29TCgXLDgvwAwfszxnWB25ZzxnxzwjtB2nRzxrtDxjMywnL','C2vZC2LVBK1HBMfNzxi','C3rVCf9YzwfZB24','C3rYzwfTvMLHu3vYzMfJzq','q29TBwfUzenVzgu','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','DxnLCI12AxnPyMXL','mJq2nJGZnLjRvNHnEG','v2vIu29JA2v0ihjLCxvLC3qGzMfPBgvK','Ahr0Chm6lY9HCgKUEI5HAs9HCgKVyw50AhjVCgLJ','sw1Hz2uGCMv0DxjUzwqGyNKGvMLLD0zPBguGzM9YihrVB2WGCMvZDwX0ia','yxn5BMnjDgvYyxrVCG','Ahr0Cc1QC29U','yw50AhjVCgLJx3jLzgfJDgvKx3rOAw5RAw5N','C2v0','ChjLDMLVDxnszxnWB25ZzuLK','yxbPs2v5','A2v5CW','C2vZC2LVBG','yw50AhjVCgLJrgvSzwDHDgu','D2vIC29JA2v0','Bwf4x2nVBxbSzxrPB25FDg9Rzw5Z','z2v0u3vYzMfJzq','B3v0Chv0x3rVA2vUCW','ANnVBG','zw5JCNLWDgvKx2nVBNrLBNq','CMvHC29UAw5Nx3rVA2vUCW','C3rYzwfTvMLHugvYC2LZDgvUDfjLC3bVBNnLC1nVy2TLDa','C3vTBwfYEuj5sw5KzxG','zgvSzxrL','B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','y29TCgXLDgLVBL90B2TLBNm','mteXode5mhHlAwj2ra','yw50AhjVCgLJx3rOAw5RAw5N','zxzLBNq6','CMvHza','yxnZAxn0yw50','AxneB25L','zgvMyxvSDe1VzgvS','DhjPBvn0yxj0','Aw5WDxq','CMvXDwvZDa','r0vu','CM9Szq','CMvMDxnHBa','zgvZy3jPChrPB24','y3jLyxrLsgvHzgvYCW','Ahr0Chm6lY9HCgKUEI5HAs9HCgKVy29KAw5Nl3bHyxmVDJq','CMvZCg9UC2vjza','zgf0ytO','C2vUzeH0DhbtDxjMywnLuMvXDwvZDa','zgvLChnLzwSTDJqTChjV','ChjVDMLKzxjbzgfWDgvY','yNvPBgrqyxj0AwfSt3v0Chv0','CgfYDgLHBf9QC29U','y29TCgXLDgvwAwftDxjMywnL','t3bLBLjVDxrLCG','CMvHC29UAw5NsxrLBxm','zgvJB2rL','CMvZB2X2zunYzwrLBNrPywW','BwvKAwfFDhLWzq','y2HHDgnTCgWT','uMvZCg9UC2vZihn0CMvHBsbMywLSzwq','ignHBM5VDcbWyxjZzsbxzwjtB2nRzxqGzxzLBNrZ','CMvZCg9UC2uUy29TCgXLDgvK','yxbWBhLnB2rLBerLzMf1BhrZ','z2v0qw50AhjVCgLJrgvSzwDHDgu','ChjVDMLKzxjZ','Bw9KzwXfBMrWB2LUDenHy2HL','y2XHDwrLlxnVBM5LDc00','rgvLCfnLzwS','z3b0ltuTBwLUAq','DgHPBMTPBMDFzgvSDge','D2vIu29JA2v0rMfJDg9YEq','Aw52ywXPzgf0zvjLC3bVBNnLC1nVy2TLDfnLC3nPB24','y29UBMvJDf9MywLSzwq','y2fJAgvK','ChjVEhK','C3rYzwfT','sw52ywXPzcbxzwjtB2nRzxqGBwvZC2fNztOG','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','y29UDgvUDf9KzwX0yq','zw5Kx3r1CM4','zwrPDg9YugX1z2LUvMvYC2LVBG','ywrKrxzLBNrmAxn0zw5LCG','nNv6AKnLtq','u3vYzMfJzsa','twLUAu1HEc1nmW','Bw9KzwXZqMfZzvvYBa','BNvTyMvY','B3bLBMfPlxjLC3bVBNnLCY1ZDhjLyw0','yxbPlwTLEq','DxnHz2u','AxnbCNjHEq','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBLn0yxrL','ChjVDg9JB2XwzxjZAw9U','CMvZCg9UC2uUCMvHC29UAw5Nx3n1Bw1HCNLFDgv4Dc5KzwX0yq','y29TCgXLDgu','C3vTBwfYEq','ChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','uhjVDMLKzxiGCMvXDwvZDcbMywLSzwqGD2L0AcbZDgf0DxmG','y29TCgXLDgvtDxjMywnL','C2LNBMfS','y29Kzq','Dg9VBf91C2vFAwq','y2fJAgvszwfKsw5WDxruB2TLBNm','yxjNDw1LBNrZ','Bwv0ywrHDge','y29UDgv4Df9Szw5NDgG','t3bLBKfPtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','C3vWCg9YDgvKx2vUzhbVAw50CW','yxv0BW','w0rptKvD','y2HVAwnLCW','C3vWCg9YDgvKrw5KCg9PBNrZ','B3v0Chv0vg9Rzw5Z','C3rYDwn0DxjLzf9VDxrWDxq','z2v0t3jdCMvHDgvszwfZB25PBMDjDgvT','y29UC3vTzvnZzuv2zw50','z2v0tw9KzwXZ','zw5JCNLWDgvKq29UDgvUDa','C2HVDwXKuhjLzMvYuMvZCg9UC2vZqxbP','y29TCgXLDgvK','Dgv4Dej5sw5KzxG','C3rYzwfTu3vYzMfJzq','C2HPzNq','C2L6zq','zM9Yy2vgDwXSuMvWBgf5','Dg9Rzw5fEgnOyw5NzufWAvzLCNnPB24','Aw1Hz2vFDxjS','B3jPz2LUlxrYywnRzxi','Dg9tDhjPBMC','z3b0ltqUmq','D2vIC29JA2v0x2nVBM5Ly3rPB25FBgLTAxrFCMvHy2HLza','zgf0yq','BwvZC2fNzuLK','y2fJAgvFCMvHzf9PBNb1Df90B2TLBNm','AgvHzgvYCW','y3jLyxrLuMvXDwvZDa','vw5RBM93BIbWCM92AwrLCIbLCNjVCG','CMvZB2X2zxi','BwvZC2fNzxm','ywDLBNq','CMvHC29UAw5N','Ahr0Chm6lY90B2TLBI1WBgfUlxnNCc54AwfVBwLTAw1VlMnVBs92mq','ChjVDMLKzxjtDgf0zq','y2fJAgvdCMvHDgLVBKLUChv0vg9Rzw5Z','Cgf0Aa','B3v0Chv0sw5KzxHuB0nHBgXjza','C3rYzwfTvMLHuMvZCg9UC2vZv2vIu29JA2v0u3vYzMfJzq','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzg9Uzq','BgLTAxrZ','ChjLCgfYzvjLC3bVBNnLC1nVy2TLDfjLCxvLC3q','CMvZCg9UC2vuzxH0ugfYDhm','ywrK','D3nZoG','DgvZDa','Dg9VBenHBgXZqNLjBMrLEa','CMvXDwvZDhm','CgfYC2u','y2HHDfn0CMvHBq','Dg9VBa','C3bSAxq','Bwf4','BwvZC2fNzv9ZDgfYDa','Dg9VBf9Yzxn1Bhq','zwzMB3j0','zxjYB3i','C3rYzwfTx2vYCM9Y','o2jHC2u2ncW','Bwf4t3v0Chv0','B3bLBMfPx3jLyxnVBMLUzW','DMfSDwvZ','zNjVBuvUDhjPzxm','y2fJAgvFy3jLyxrPB25FAw5WDxrFDg9Rzw5Z','t3bLBKfj','DhjHBNnWB3j0','C3vYzMfJzq','yMfZzty0','Dg9VBc1JywXSlq','zMLUza','zMLUzfjLC3bVBNnLC1nVy2TLDenOzwnRCg9PBNq','y2fWywjPBgL0AwvZ','CMvZCg9UC2vtB2nRzxq','yw50AhjVCgLJlw1LC3nHz2vZ','CMvZB2X2zujHC2vvCMW','CMvHC29UAw5Nx2rLDgfPBhm','y2XHDwrLlxnVBM5LDc00ltiWmJuWnte0','Aw5WDxruB2TLBNm','CMvZCg9UC2uUB3v0Chv0x3rLEhqUzgvSDge','ChjLDMLVDxnFCMvZCg9UC2vFBM90x2zVDw5K','C3rYAw5N','Bwf4x3rVA2vUCW','Bwv0Ag9K','C3vTBwfYEv90zxH0','z2v0','C2vUzfjHD1jLCxvLC3q','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzgvSDge','y2fSBeLKvg9pDxrWDxrjBMrLEa','Bwf4x2nVBNrLEhrFD2LUzg93x3rVA2vUCW','B3bLBMfPlxjLC3bVBNnLCW','y29UDgvUDf9PBMrLEa','igrPzcbUB3qGChjVDMLKzsbHifDLyLnVy2TLDcbvuKWGB3iGCgf0Aa','B3bLBMfPl2DWDc00BY1TAw5P','C2vZC2LVBKLK','C2XPy2u','BMfTzq','D2fPDezVCLjLDhj5','twLUAu1HEa','y2XHDwrLlxnVBM5LDc00lJu','z2L0AhvIqxbPvxjS','y29UDgvUDa','C3rHCNrZv2L0Aa','Bwf4x291Dhb1Df90B2TLBNm','y29UC3vTzvDLyLnVy2TLDev2zw50','r2L0shvItw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5lcbHy2nLC3nuB2TLBIWGB3iGChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','Ec1HCgKTA2v5','B3bLBKfPrgvSzwDHDgu','C29JA2v0','DhjPBq','BgvUz3rO','C3rYzwfTvMLHuMvZCg9UC2vZu3vYzMfJzq','DMfSDwu','CMvWBgfJzq','Ahr0Chm6lY9HCgKUAw5KAxzPzhvHBc5NAxrODwjJB3bPBg90lMnVBq','uhjVDMLKzxjszxf1zxn0q29UC3rYDwn0Aw9UrxjYB3i','y3jLzgvUDgLHBa','ANnVBL9Zy2HLBwe','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzg9Uzq','B3v0Chv0rM9YBwf0','CMvXDwvZDe11Dgf0B3jZ','yNvPBgrszxnWB25ZzxntB2nRzxrfDMvUDa','D3m6','CMvTB3zLrxzLBNrmAxn0zw5LCG','C2vUzfDPDgHszxrYAwvZ','Dg9VBfvZzvn0yxj0rw1PDhrLza','t3bLBKfjiefqssbLCNjVCIa','CMvHC29UAw5Nx3rLEhq','zw5KCg9PBNrZ','C3rHDhvZvgv4Da','z2XTltuUmq','Ahr0Chm6lY9HCgKUyw50AhjVCgLJlMnVBq','mJKWnZi0mhz2A3brDq','BgfIzwW','zMLUywXszxnWB25Zzq','ignHBM5VDcbWyxjZzsbtu0uGzxzLBNrZ','DgHLBG','yxbP','C2HVDwXKuMv0CNLszxnWB25Zzq','z3b0ltuUmI1JB2rLEa','DNnJB2rLlZeUmta2lJe','C3rHDhvZ','yxv0Ag9YAxPHDgLVBG','y2HHDenVBxbSzxrPB25Zugf0Aa','y2XPrgvMyxvSDe1VzgvS','zMLUAxnO','Aw1Hz2u','AgfZ','C3rVCfjLyxnVBG','CMvZCg9UC2vZugf0Aa','B3v0Chv0','zw50CMLLCW','y29TCgXLDgvwAwfszxnWB25ZzxntDxjMywnL','qMfZAa','B3v0Chv0sw5KzxHuB1jLyxnVBMLUz0LK','Aw50zxjSzwf2zwq','CMvZB2X2zq','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNmTC3rYzwfT','t1bftG','B3v0Chv0x3rVA2vUC19KzxrHAwXZ','CMvZzxq','DgvSzw1LDhj5','Bw9KzwXZ','Dgv4Da','sw52ywXPzcbYzxf1zxn0oIa','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','l3yXl21LC3nHz2vZ'];_0x4483=function(){return _0xcb6f75;};return _0x4483();}function createOpenAiResponsesStreamParser(_0x109a92){return new OpenAiResponsesStreamParser(_0x109a92);}function createOpenAiSurfaces(_0x2e906e={}){const _0x5a2b6b={_0x3abccb:0x412,_0x327318:0x36a,_0x251ff5:0x4d5,_0xed25cf:0x425,_0x3eb043:0x1f8,_0x1148da:0x223,_0x39570c:0x26d,_0x17cb4f:0x1f5,_0x162812:0x16e,_0x26348e:0x4d3},_0x4844fc={_0x4a203a:0x358,_0x1a6649:0x31b,_0x2ea551:0x283,_0x413845:0x304},_0x8423e1={_0x3426e6:0x1fa,_0x1ebe57:0x202},_0x81d8c0={_0x44c0e1:0x413,_0xd49c19:0x4c8},_0x2dd1f8={_0x174436:0xd8},_0x1a2d50={_0x2bed3a:0x13d},_0xd89c72={_0x3a9340:0x26,_0x26f708:0xa};function _0x1103e3(_0x1e771e,_0x15ee5a,_0x1b0f33,_0x22e38a){return _0x11bd88(_0x1e771e- -_0xd89c72._0x3a9340,_0x1b0f33,_0x1b0f33-0x1d0,_0x22e38a-_0xd89c72._0x26f708);}const _0x55a248=_0x2e906e[_0x1103e3(0x42a,_0x5a2b6b._0x3abccb,0x41a,_0x5a2b6b._0x327318)]??_0x1103e3(0x4cf,0x563,0x4f2,0x42d),_0x544c4b=_0x2e906e['responsesPath']??_0x1103e3(_0x5a2b6b._0x251ff5,0x458,_0x5a2b6b._0xed25cf,0x427);function _0xf3c7af(_0x191c7e,_0x18987a,_0x3f274e,_0x2c8362){return _0xd1496a(_0x2c8362- -0x3b5,_0x18987a-0x107,_0x191c7e,_0x2c8362-_0x1a2d50._0x2bed3a);}return[{'id':OPENAI_CHAT_COMPLETIONS_SURFACE,'transport':_0xf3c7af(_0x5a2b6b._0x3eb043,_0x5a2b6b._0x1148da,_0x5a2b6b._0x39570c,_0x5a2b6b._0x17cb4f),'createRequest'(_0x852364){function _0x398694(_0xcd5a88,_0x4903e8,_0x118e1f,_0x29e875){return _0x1103e3(_0x118e1f- -0xe4,_0x4903e8-0xec,_0x29e875,_0x29e875-_0x2dd1f8._0x174436);}return{'accept':_0x398694(0x46c,_0x81d8c0._0x44c0e1,0x40e,_0x81d8c0._0xd49c19),'body':createChatRequestBody(_0x852364,![]),'path':_0x55a248};},'parseResponse'(_0x2346c9){return parseChatCompletionResponse(_0x2346c9);}},{'id':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,'transport':'http-sse','createRequest'(_0x15d603){return{'accept':'text/event-stream','body':createChatRequestBody(_0x15d603,!![]),'path':_0x55a248};},'createStreamParser'(_0xc3e504){return new OpenAiChatCompletionsStreamParser(_0xc3e504);}},{'id':OPENAI_RESPONSES_SURFACE,'transport':'http-json','createRequest'(_0x583e6e){const _0x547256={_0x41f09a:0x118};function _0x2927f5(_0x181b62,_0x2a7ee9,_0x380448,_0x366024){return _0xf3c7af(_0x366024,_0x2a7ee9-0x14f,_0x380448-_0x547256._0x41f09a,_0x181b62-0x22);}return{'accept':_0x2927f5(_0x8423e1._0x3426e6,0x1f5,_0x8423e1._0x1ebe57,0x23b),'body':createResponsesRequestBody(_0x583e6e,![]),'path':_0x544c4b};},'parseResponse'(_0x121012,_0x5504b7){return parseResponsesResponse(_0x121012,_0x5504b7);}},{'id':OPENAI_RESPONSES_STREAM_SURFACE,'transport':_0xf3c7af(0x97,0x140,_0x5a2b6b._0x162812,0x15d),'createRequest'(_0x27cfa1){const _0x254419={_0x4aca19:0xa9,_0x50373d:0x1d0};function _0x3e8e5f(_0x47323f,_0x4fbd76,_0x4cd676,_0x46aa25){return _0xf3c7af(_0x4cd676,_0x4fbd76-_0x254419._0x4aca19,_0x4cd676-0x112,_0x46aa25-_0x254419._0x50373d);}return{'accept':_0x3e8e5f(_0x4844fc._0x4a203a,_0x4844fc._0x1a6649,_0x4844fc._0x2ea551,_0x4844fc._0x413845),'body':createResponsesRequestBody(_0x27cfa1,!![]),'path':_0x544c4b};},'createStreamParser'(_0x3d57f7){return new OpenAiResponsesStreamParser(_0x3d57f7);}},{'id':OPENAI_RESPONSES_WEBSOCKET_SURFACE,'transport':_0x1103e3(0x517,0x584,_0x5a2b6b._0x26348e,0x529),'createRequest'(_0x25de3d){return{'initialEvent':createOpenAiResponsesWebSocketEvent(_0x25de3d),'path':_0x544c4b};},'createStreamParser'(_0x3a8fe9){return createOpenAiResponsesStreamParser(_0x3a8fe9);}}];}var OpenAiProviderAdapter=class{[_0xd1496a(0x50a,0x581,0x5df,0x4a9)];constructor(_0x54e791){this['headerResolver']=_0x54e791;}[_0x11bd88(0x49a,0x544,0x422,0x40e)](){const _0x3fa57a={_0x7f6ea7:0x3e3},_0x46bf8d={_0x353126:0x1b3,_0x1f9a37:0x2d,_0x5754c2:0xfd};function _0x3b0441(_0x2308bd,_0x1fce9d,_0x18c2d0,_0x3d4b83){return _0x11bd88(_0x1fce9d- -_0x46bf8d._0x353126,_0x3d4b83,_0x18c2d0-_0x46bf8d._0x1f9a37,_0x3d4b83-_0x46bf8d._0x5754c2);}return new Error(_0x3b0441(0x32e,_0x3fa57a._0x7f6ea7,0x3b9,0x450));}async[_0x11bd88(0x557,0x537,0x5eb,0x4e9)](_0x340120,_0x4dd0e4){const _0x58ffd7={_0x306695:0x395,_0x27fa16:0x317,_0xd0e205:0x469,_0xbf1827:0x5af,_0x299231:0x44f,_0x8574d:0x2f6,_0x1e6e07:0x400,_0x5c2fa1:0x1e9,_0x3a6e9c:0x28a,_0x2e5c2f:0x356,_0x295488:0x50b,_0x1bd950:0x445,_0x1379fd:0x572,_0x26a904:0x575,_0x43572b:0x5e2,_0x2e103c:0x556,_0x23d5ed:0x490,_0x8940b7:0x5b4,_0x10fffd:0x49e,_0x550a4e:0x489,_0x23fc99:0x437,_0x245b2b:0x45d,_0x2126aa:0x426,_0x5cf14f:0x2f4,_0x3c7267:0x376,_0x425b6f:0x3c2,_0x306968:0x3b2,_0x57954c:0x3a7,_0x584b08:0x45a,_0x10adee:0x517,_0x3f5950:0x3f1},_0x31f34f={_0x45b1d7:0x1c5,_0x41e9f3:0xe7},_0x36c029={_0xdc6b98:0x2,_0x107053:0x10b,_0x45dd40:0xbc},_0x47a535=new Headers();_0x47a535['set'](_0x49b4a7(_0x58ffd7._0x306695,0x3ad,_0x58ffd7._0x27fa16,0x3bf),_0x4dd0e4[_0x34a75a(0x4de,_0x58ffd7._0xd0e205,_0x58ffd7._0xbf1827,_0x58ffd7._0x299231)]),_0x47a535[_0x49b4a7(_0x58ffd7._0x8574d,_0x58ffd7._0x1e6e07,0x372,0x345)](_0x49b4a7(0x1af,_0x58ffd7._0x5c2fa1,_0x58ffd7._0x3a6e9c,0x24f),_0x49b4a7(0x2b2,_0x58ffd7._0x2e5c2f,0x31e,0x300)+_0x340120['credential']['value']);_0x4dd0e4[_0x34a75a(_0x58ffd7._0x295488,_0x58ffd7._0x1bd950,_0x58ffd7._0x1379fd,_0x58ffd7._0x26a904)]!==![]&&_0x47a535[_0x34a75a(0x539,_0x58ffd7._0x43572b,0x490,_0x58ffd7._0x2e103c)]('content-type',_0x34a75a(0x51a,_0x58ffd7._0x23d5ed,_0x58ffd7._0x8940b7,0x5a1));function _0x34a75a(_0x5a5976,_0x171de8,_0x4f8476,_0x5d23dc){return _0x11bd88(_0x5a5976-_0x36c029._0xdc6b98,_0x5d23dc,_0x4f8476-_0x36c029._0x107053,_0x5d23dc-_0x36c029._0x45dd40);}const _0x51f378=await this['headerResolver']?.({'body':_0x340120[_0x34a75a(_0x58ffd7._0x10fffd,0x52a,_0x58ffd7._0x550a4e,0x3df)],'credential':_0x340120[_0x34a75a(_0x58ffd7._0x23fc99,0x397,_0x58ffd7._0x245b2b,_0x58ffd7._0x2126aa)],'request':_0x340120['request'],'session':_0x340120[_0x49b4a7(_0x58ffd7._0x5cf14f,0x437,_0x58ffd7._0x3c7267,_0x58ffd7._0x425b6f)],'stream':_0x340120[_0x49b4a7(0x343,0x36d,_0x58ffd7._0x306968,_0x58ffd7._0x57954c)]});function _0x49b4a7(_0x59ae4f,_0x155324,_0x353da9,_0x273d27){return _0x11bd88(_0x353da9- -_0x31f34f._0x45b1d7,_0x273d27,_0x353da9-0x62,_0x273d27-_0x31f34f._0x41e9f3);}for(const [_0x9fc09b,_0x2cd039]of Object[_0x34a75a(_0x58ffd7._0x584b08,0x48a,_0x58ffd7._0x10adee,_0x58ffd7._0x3f5950)](_0x51f378??{})){_0x47a535['set'](_0x9fc09b,_0x2cd039);}return _0x47a535;}['mapApiError'](_0xbb7b91){return _0xbb7b91;}[_0x11bd88(0x40c,0x4ac,0x3c6,0x3df)](_0x3cf9df,_0x267f07){return resolveSessionBaseUrl(_0x3cf9df,_0x267f07);}[_0xd1496a(0x5d9,0x628,0x67f,0x5cf)](_0x22e858,_0x58a514){return resolveApiCredential(_0x22e858,_0x58a514);}async['toApiError'](_0x5841d1){return await createOpenAiApiError(_0x5841d1);}},OpenAiModel=class _OpenAiModel extends RoutedModel{static ['sharedResponsesSocketSessions']=new Map();[_0x11bd88(0x450,0x516,0x409,0x4fc)];[_0x11bd88(0x456,0x487,0x3c1,0x3c5)];constructor(_0x5b76b8={}){const _0xba9be={_0x5cbf36:0x103,_0x27a66a:0xf8,_0x25c7bc:0x249,_0x368573:0x150,_0x38f746:0x2bb,_0x45c42b:0x22a,_0x51aa31:0x1ab,_0x43b807:0x24e,_0x401e96:0x1d3,_0x129f33:0x53,_0x7cf859:0x227,_0x23c0b6:0x22d,_0x3b012c:0x311,_0x3f023a:0x11,_0x34f849:0x121,_0x8ff73f:0x7c,_0x12255a:0x301,_0x5a71d5:0x365,_0x578ae1:0x2f0,_0x81a25e:0x282,_0x1ab73e:0x36e,_0x2e9029:0xea,_0x4b6f70:0x136},_0x453c60={_0x30acb7:0x1a9},_0x123708={_0x23ccec:0x366,_0x288f39:0x85},_0x474245=_0x5b76b8[_0x3102bd(0x121,0x125,_0xba9be._0x5cbf36,_0xba9be._0x27a66a)]??'gpt-4o';function _0x3102bd(_0x3dabfd,_0x5abcd8,_0xd0bb26,_0x3f24b8){return _0x11bd88(_0xd0bb26- -_0x123708._0x23ccec,_0x5abcd8,_0xd0bb26-0x140,_0x3f24b8-_0x123708._0x288f39);}const _0x4bb8f8=_0x5b76b8[_0x16c58d(0x232,0x30b,_0xba9be._0x25c7bc,_0xba9be._0x368573)]??getDefaultMaxTokens(),_0x5ca9e7=_0x5b76b8['chatCompletionsPath']??_0x16c58d(_0xba9be._0x38f746,0x30c,0x1d1,_0xba9be._0x45c42b),_0x1c25d7=_0x5b76b8['responsesPath']??'/responses';super({'apiKey':_0x5b76b8[_0x3102bd(_0xba9be._0x51aa31,_0xba9be._0x43b807,_0xba9be._0x401e96,0x204)],'baseUrl':trimTrailingSlashes(_0x5b76b8[_0x3102bd(0x34,_0xba9be._0x129f33,0x112,0xec)]??'https://api.openai.com/v1'),'fetch':_0x5b76b8[_0x16c58d(0x2dc,_0xba9be._0x7cf859,_0xba9be._0x23c0b6,_0xba9be._0x3b012c)],'maxTokens':_0x4bb8f8,'model':_0x474245,'reasoning':_0x5b76b8[_0x3102bd(-_0xba9be._0x3f023a,_0xba9be._0x34f849,_0xba9be._0x8ff73f,0x43)],'providerAdapter':new OpenAiProviderAdapter(_0x5b76b8['headerResolver']),'providerSessionResolver':_0x5b76b8[_0x16c58d(0x352,_0xba9be._0x12255a,0x434,_0xba9be._0x5a71d5)],'requestMutators':_0x5b76b8['requestMutators'],'router':new StaticModelSurfaceRouter({'complete':OPENAI_CHAT_COMPLETIONS_SURFACE,'stream':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE}),'sessionManager':_0x5b76b8[_0x16c58d(_0xba9be._0x578ae1,_0xba9be._0x81a25e,0x336,_0xba9be._0x1ab73e)],'surfaces':createOpenAiSurfaces({'chatCompletionsPath':_0x5ca9e7,'responsesPath':_0x1c25d7}),'webSocketFactory':_0x5b76b8['webSocketFactory']});function _0x16c58d(_0x12bfe7,_0x15468c,_0x173ca2,_0x2ebd7d){return _0xd1496a(_0x12bfe7- -0x2af,_0x15468c-_0x453c60._0x30acb7,_0x15468c,_0x2ebd7d-0x37);}this[_0x3102bd(0xa6,0x78,_0xba9be._0x2e9029,_0xba9be._0x4b6f70)]=_0x5ca9e7,this['responsesPath']=_0x1c25d7;}[_0x11bd88(0x4d9,0x5bd,0x41e,0x411)](_0x20f6dd,_0x1499dc){const _0x15fdc4={_0x45a61d:0xfa,_0x53fc29:0x179},_0x47cad5={_0x392e96:0x466,_0x41c91e:0x11f};function _0x449452(_0x1c61dc,_0x48bfa4,_0x27d6fa,_0x33745f){return _0x11bd88(_0x1c61dc- -_0x47cad5._0x392e96,_0x27d6fa,_0x27d6fa-0x35,_0x33745f-_0x47cad5._0x41c91e);}return this[_0x449452(_0x15fdc4._0x45a61d,0xe9,_0x15fdc4._0x53fc29,0x138)](_0x20f6dd,OPENAI_CHAT_COMPLETIONS_SURFACE,_0x1499dc);}[_0x11bd88(0x459,0x478,0x523,0x4c7)](_0x1c5e53,_0xec082f){const _0x4f9eac={_0x404058:0x392},_0x21672b={_0x2be52e:0x29a,_0x518f5b:0x1b8};function _0x1195f7(_0x484b69,_0x2e5f9b,_0xa90266,_0x1eef4d){return _0xd1496a(_0x484b69- -_0x21672b._0x2be52e,_0x2e5f9b-0x54,_0x2e5f9b,_0x1eef4d-_0x21672b._0x518f5b);}return this[_0x1195f7(0x33b,0x3b5,0x2e1,_0x4f9eac._0x404058)](_0x1c5e53,OPENAI_RESPONSES_SURFACE,_0xec082f);}[_0x11bd88(0x529,0x557,0x574,0x603)](_0x5f57ee,_0x137c53){const _0x67c366={_0x4f9a3c:0x4c8,_0x115e84:0x428};function _0x1502a0(_0x45545e,_0x3be5a2,_0x214056,_0x4b9518){return _0x11bd88(_0x3be5a2- -0x138,_0x214056,_0x214056-0x80,_0x4b9518-0x36);}return this[_0x1502a0(_0x67c366._0x4f9a3c,_0x67c366._0x115e84,0x40c,0x342)](_0x5f57ee,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x137c53);}['streamViaChatCompletionsSurface'](_0x15a183,_0x42db30){const _0xa33eea={_0x3a8fd6:0x66c,_0x16aed5:0x5c3,_0x3c66ea:0x60c},_0x52363f={_0x74e3af:0x97,_0x1d2584:0xcd};function _0x42485c(_0x106b39,_0x50c71a,_0x211195,_0x484108){return _0x11bd88(_0x211195-_0x52363f._0x74e3af,_0x50c71a,_0x211195-_0x52363f._0x1d2584,_0x484108-0x3a);}return this[_0x42485c(_0xa33eea._0x3a8fd6,0x571,_0xa33eea._0x16aed5,_0xa33eea._0x3c66ea)](_0x15a183,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,_0x42db30);}[_0xd1496a(0x4a5,0x432,0x4d9,0x4d2)](_0x3c4a81,_0x3578d1){const _0x4e17e9={_0x5a7770:0x185},_0xac0ffd={_0x15b1e0:0x41c,_0xbf4fd2:0x12e};function _0xf5c65c(_0x5b16b1,_0x5e1ade,_0x4c93ec,_0x4c9149){return _0xd1496a(_0x4c9149- -_0xac0ffd._0x15b1e0,_0x5e1ade-0x9f,_0x5e1ade,_0x4c9149-_0xac0ffd._0xbf4fd2);}return this[_0xf5c65c(0x239,0x191,0x238,_0x4e17e9._0x5a7770)](_0x3c4a81,OPENAI_RESPONSES_STREAM_SURFACE,_0x3578d1);}[_0xd1496a(0x45d,0x52c,0x4e2,0x4b4)](_0x4f93ee,_0x11b268){const _0x104870={_0x393bed:0x1a6,_0x36808d:0x11a,_0x144c10:0x26d};function _0x509850(_0x2f6568,_0x16069a,_0x533770,_0xaa5c62){return _0x11bd88(_0x2f6568- -0x386,_0x16069a,_0x533770-0xcd,_0xaa5c62-0x1c8);}return this[_0x509850(_0x104870._0x393bed,_0x104870._0x36808d,_0x104870._0x144c10,0x254)](_0x4f93ee,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x11b268);}async[_0x11bd88(0x4d4,0x598,0x472,0x4f0)](_0x1729df,_0x463474){const _0x4f27c4={_0x410537:0x463,_0xfe1d17:0x4bd,_0x51d287:0x527},_0x38fe56={_0x1f226a:0x27,_0x52f006:0x191,_0x17783e:0x168};function _0xe48c30(_0x5aa6ae,_0x348daf,_0x5901fb,_0x46dfd5){return _0xd1496a(_0x46dfd5- -_0x38fe56._0x1f226a,_0x348daf-_0x38fe56._0x52f006,_0x5901fb,_0x46dfd5-_0x38fe56._0x17783e);}try{return await this[_0xe48c30(_0x4f27c4._0x410537,_0x4f27c4._0xfe1d17,0x467,_0x4f27c4._0x51d287)](_0x1729df,_0x463474);}catch(_0x524421){if(_0x524421 instanceof OpenAiApiError)throw this['mapApiError'](_0x524421);throw _0x524421;}}async['response'](_0x3904ae,_0x4c4293){const _0x179b87={_0x591f09:0x2dd,_0x579237:0x2fd,_0x12856c:0x259,_0x2e4103:0x385,_0x52edff:0x35e},_0x290049={_0x25aab7:0xae},_0x2a1254={_0xe1c8e5:0xf0};function _0x23f3d5(_0x4b6671,_0x3e8464,_0xb614ff,_0x3afbc8){return _0xd1496a(_0xb614ff- -0x1b3,_0x3e8464-_0x2a1254._0xe1c8e5,_0x4b6671,_0x3afbc8-0x4e);}function _0x36446d(_0x332bf5,_0x57e46f,_0x812bbc,_0x2fd16f){return _0x11bd88(_0x332bf5- -0x17c,_0x2fd16f,_0x812bbc-0x13a,_0x2fd16f-_0x290049._0x25aab7);}try{return await this[_0x36446d(_0x179b87._0x591f09,0x39e,_0x179b87._0x579237,_0x179b87._0x12856c)](_0x3904ae,_0x4c4293);}catch(_0x1ee0c7){if(_0x1ee0c7 instanceof OpenAiApiError)throw this[_0x36446d(_0x179b87._0x2e4103,0x2f1,0x2bb,_0x179b87._0x52edff)](_0x1ee0c7);throw _0x1ee0c7;}}async['responseSocket'](_0x5d5a5b,_0x21a7ed){const _0x1aa562={_0x2522b4:0x422,_0x2a2835:0x468,_0x1671ff:0x1f0,_0x4e843b:0x1b2,_0x3baadf:0x51d},_0x4441bb={_0x22e5e3:0x1c,_0x26fd42:0x1ee},_0x5c3981={_0x3862c9:0x390,_0x344c95:0x161};function _0x3f9caa(_0x5cb186,_0x17899e,_0x38988e,_0x3c5326){return _0xd1496a(_0x3c5326- -_0x5c3981._0x3862c9,_0x17899e-0x151,_0x5cb186,_0x3c5326-_0x5c3981._0x344c95);}function _0x2f961e(_0x1f0732,_0x222ab9,_0x547e68,_0x1f9fa2){return _0x11bd88(_0x547e68-_0x4441bb._0x22e5e3,_0x1f0732,_0x547e68-0x17d,_0x1f9fa2-_0x4441bb._0x26fd42);}try{let _0x341c4b;for await(const _0x560318 of this[_0x2f961e(_0x1aa562._0x2522b4,0x3fc,0x4dc,_0x1aa562._0x2a2835)](_0x5d5a5b,_0x21a7ed)){_0x560318['type']===_0x3f9caa(_0x1aa562._0x1671ff,0x289,0x222,_0x1aa562._0x4e843b)&&(_0x341c4b=_0x560318['response']);}if(!_0x341c4b)throw new Error('Responses\x20WebSocket\x20request\x20did\x20not\x20produce\x20a\x20final\x20response');return _0x341c4b;}catch(_0xdb5f28){if(_0xdb5f28 instanceof OpenAiApiError)throw this[_0x2f961e(0x474,0x607,_0x1aa562._0x3baadf,0x47d)](_0xdb5f28);throw _0xdb5f28;}}async*['chatStream'](_0x2948a7,_0x2ff305){const _0x58cf5f={_0x3a615f:0x8,_0x3fb0d5:0x95},_0x1422f4={_0x59ebd3:0x509,_0x122169:0x155,_0xcf50f3:0x1c3},_0x3fdcc7={_0x2bfa36:0x103};function _0x25fc04(_0x550948,_0x1e4640,_0x436bae,_0x915b1a){return _0x11bd88(_0x915b1a- -0xb5,_0x1e4640,_0x436bae-0xbd,_0x915b1a-_0x3fdcc7._0x2bfa36);}function _0x4fc2fe(_0x21a312,_0x54ba3b,_0x36a7c2,_0x3c9913){return _0x11bd88(_0x54ba3b- -_0x1422f4._0x59ebd3,_0x21a312,_0x36a7c2-_0x1422f4._0x122169,_0x3c9913-_0x1422f4._0xcf50f3);}try{yield*this[_0x25fc04(0x32a,0x3a5,0x397,0x3c2)](_0x2948a7,_0x2ff305);}catch(_0x283a1f){if(_0x283a1f instanceof OpenAiApiError)throw this[_0x4fc2fe(-0xdd,-_0x58cf5f._0x3a615f,_0x58cf5f._0x3fb0d5,-0x19)](_0x283a1f);throw _0x283a1f;}}async*[_0xd1496a(0x59b,0x673,0x583,0x4b0)](_0xf38242,_0x42ce58){const _0x24975b={_0x1a26ad:0x448,_0x22cc4c:0x3c5,_0x48a835:0x369},_0x3ff9c1={_0x337818:0x116};function _0x1258bc(_0x190636,_0x143c2b,_0x2e7c41,_0x9716e2){return _0x11bd88(_0x190636- -0xb9,_0x143c2b,_0x2e7c41-_0x3ff9c1._0x337818,_0x9716e2-0x167);}try{yield*this['streamViaResponsesSurface'](_0xf38242,_0x42ce58);}catch(_0x44dfeb){if(_0x44dfeb instanceof OpenAiApiError)throw this[_0x1258bc(_0x24975b._0x1a26ad,_0x24975b._0x22cc4c,_0x24975b._0x48a835,0x4bb)](_0x44dfeb);throw _0x44dfeb;}}async*['responseSocketStream'](_0x49fb2e,_0x16bb30){const _0x219dbd={_0x351d7d:0x1a3,_0xc0b8d5:0x17e,_0x3117ad:0x182},_0x31adf9={_0x59a977:0xbd};function _0x4eb006(_0x2b2714,_0x48b4fe,_0xd7837,_0x45c433){return _0x11bd88(_0x48b4fe- -0x3c6,_0x2b2714,_0xd7837-_0x31adf9._0x59a977,_0x45c433-0x69);}try{yield*this[_0x4eb006(_0x219dbd._0x351d7d,_0x219dbd._0xc0b8d5,_0x219dbd._0x3117ad,0x1d6)](_0x49fb2e,_0x16bb30);}catch(_0x25191a){if(_0x25191a instanceof OpenAiApiError)throw this['mapApiError'](_0x25191a);throw _0x25191a;}}[_0x11bd88(0x58a,0x4a9,0x648,0x63f)](_0x2b758e,_0xf251da){const _0x6a3711={_0x35dc47:0x1bc,_0x376e14:0x246},_0x1e4633={_0xaa73cb:0x303,_0x4aec3e:0x168,_0x26bb44:0x1a9};function _0x500388(_0x13960c,_0x2b669c,_0x84f77b,_0xb3c6e4){return _0xd1496a(_0xb3c6e4- -_0x1e4633._0xaa73cb,_0x2b669c-_0x1e4633._0x4aec3e,_0x13960c,_0xb3c6e4-_0x1e4633._0x26bb44);}return this[_0x500388(_0x6a3711._0x35dc47,0x2ea,0x2e7,_0x6a3711._0x376e14)](_0x2b758e,_0xf251da);}[_0x11bd88(0x577,0x557,0x513,0x617)](_0x5829a3,_0x561e95){const _0x2eb994={_0x464b74:0x14f,_0x2381cc:0x5f};function _0x252713(_0x3e127f,_0x2ab175,_0x50983e,_0x3e8a8a){return _0x11bd88(_0x2ab175- -0x1e4,_0x3e127f,_0x50983e-_0x2eb994._0x464b74,_0x3e8a8a-_0x2eb994._0x2381cc);}return this[_0x252713(0x22e,0x20f,0x1d1,0x2f4)](_0x5829a3,_0x561e95);}[_0xd1496a(0x5fc,0x5cd,0x6ab,0x662)](_0x20be04){const _0x369106={_0x1a7dd7:0xb,_0x40dd6b:0xa2,_0x5b5994:0xc1,_0x213ccb:0x13,_0xf9a336:0x35,_0x4ecea6:0x21,_0x4ef2c6:0x71},_0x4bb5d3={_0x3c6f48:0xa3},_0x44ba1b={_0x8fab75:0xd0,_0x1ea218:0x88},_0x12bdd2=this[_0x54d175(-_0x369106._0x1a7dd7,_0x369106._0x40dd6b,-0xbd,-_0x369106._0x5b5994)](_0x20be04);function _0x51bd77(_0x44ac42,_0x115be6,_0x4edf96,_0xd1bb78){return _0xd1496a(_0x44ac42- -0x53b,_0x115be6-_0x44ba1b._0x8fab75,_0xd1bb78,_0xd1bb78-_0x44ba1b._0x1ea218);}function _0x54d175(_0x28ebd9,_0x3657e8,_0x399dc4,_0x534a0c){return _0xd1496a(_0x28ebd9- -0x519,_0x3657e8-0x1f4,_0x399dc4,_0x534a0c-_0x4bb5d3._0x3c6f48);}let _0x221d74=_OpenAiModel['sharedResponsesSocketSessions'][_0x54d175(-0x8e,-0x152,-0x156,0x47)](_0x12bdd2);return!_0x221d74&&(_0x221d74={'pending':Promise[_0x51bd77(-0x69,_0x369106._0x213ccb,-0x125,0x76)]()},_OpenAiModel[_0x51bd77(-_0x369106._0xf9a336,-0x104,_0x369106._0x4ecea6,0x2a)][_0x51bd77(_0x369106._0x4ef2c6,0x144,-0x43,-0x73)](_0x12bdd2,_0x221d74)),_0x221d74;}[_0x11bd88(0x499,0x54b,0x41a,0x4a1)](_0x599980){const _0x33967e={_0x5ce35f:0x34b,_0x38f923:0x1f7,_0x5dcb8a:0x149},_0x1165a6={_0x4eca61:0x614};function _0x572328(_0x4a2ea0,_0x416ed9,_0x3c9cdf,_0x40461d){return _0xd1496a(_0x3c9cdf- -0x1a2,_0x416ed9-0x100,_0x416ed9,_0x40461d-0x31);}function _0x449fce(_0x1d930b,_0x4d0885,_0xbb997a,_0x3708e4){return _0xd1496a(_0x4d0885- -_0x1165a6._0x4eca61,_0x4d0885-0xd3,_0x1d930b,_0x3708e4-0x65);}return''+trimTrailingSlashes(this[_0x572328(0x36d,0x410,_0x33967e._0x5ce35f,0x31c)])+this[_0x449fce(-_0x33967e._0x38f923,-_0x33967e._0x5dcb8a,-0x16c,-0xed)]+'::'+_0x599980;}async[_0xd1496a(0x565,0x548,0x521,0x4fa)](_0x44a870){const _0x2b8914={_0x153aea:0x2fe,_0x22690a:0x442,_0xa5565e:0x282,_0x4ac7a2:0x28d,_0x200c54:0xae,_0x5afd48:0x86,_0x4599a4:0xd1,_0x4e43a9:0x30,_0x32f758:0x11,_0x2c3f91:0x55},_0x1a48a5={_0x4e600d:0x3f4,_0x3fe767:0x1d7},_0x240f90={_0x19deb5:0x133,_0x347be4:0xb1},_0x59ec38=_0x44a870[_0x275d4a(0x301,0x392,_0x2b8914._0x153aea,_0x2b8914._0x22690a)][_0x275d4a(_0x2b8914._0xa5565e,0x340,_0x2b8914._0x4ac7a2,0x350)](()=>{});let _0x4f12bb;function _0x275d4a(_0x2b1a91,_0x51559e,_0x3c45e1,_0x4355da){return _0x11bd88(_0x51559e- -_0x240f90._0x19deb5,_0x3c45e1,_0x3c45e1-_0x240f90._0x347be4,_0x4355da-0x120);}const _0x1bddda=new Promise(_0x8e0022=>{_0x4f12bb=_0x8e0022;});_0x44a870[_0x29e9f7(_0x2b8914._0x200c54,_0x2b8914._0x5afd48,_0x2b8914._0x4599a4,_0x2b8914._0x4e43a9)]=_0x59ec38[_0x29e9f7(_0x2b8914._0x32f758,0x116,_0x2b8914._0x2c3f91,-_0x2b8914._0x2c3f91)](()=>_0x1bddda);function _0x29e9f7(_0x660051,_0x3ac8a1,_0x171f41,_0x37d8aa){return _0x11bd88(_0x171f41- -_0x1a48a5._0x4e600d,_0x3ac8a1,_0x171f41-_0x1a48a5._0x3fe767,_0x37d8aa-0xd7);}return await _0x59ec38,()=>{_0x4f12bb?.();};}async[_0xd1496a(0x460,0x4d7,0x44e,0x52b)](_0x3e8772,_0xa1855e){const _0xec5f01={_0x4a3703:0x69,_0x4ede0d:0x36,_0x427734:0x3,_0x3b6a2a:0x5a,_0x36db70:0x1e,_0x4d78f2:0x36,_0x375bbb:0x8e,_0x5b4f1a:0x72,_0x90351a:0x73,_0xf57d9:0x10c,_0xa28295:0x1,_0x472454:0xf,_0x410aa5:0x13,_0x4f0765:0x44,_0x3d0829:0x9f,_0xdbd383:0x1b,_0x4dfcf7:0x45,_0x2e82bb:0xa5,_0x236156:0xe5,_0x3f664d:0x39,_0x5a10c0:0x3f,_0x36d5e3:0x35},_0x4047cd={_0x2d2b41:0x5e5,_0x3ebce5:0x63},_0xfcd6e={_0x268c80:0x11f},_0x38e9d0=this['applyModelDefaults'](_0x3e8772),_0x61189=toModelRequest(_0x38e9d0);function _0x36be33(_0x2563c2,_0x21686c,_0x2e2b73,_0x91e6ba){return _0x11bd88(_0x91e6ba- -0x4f1,_0x2e2b73,_0x2e2b73-_0xfcd6e._0x268c80,_0x91e6ba-0xe2);}const _0x11c1ec=await prepareProviderRequest(_0x61189,{'sessionManager':this[_0x36be33(-_0xec5f01._0x4a3703,-0x60,-_0xec5f01._0x4ede0d,0x39)],'requestMutators':this[_0x36be33(-_0xec5f01._0x427734,-0x164,-_0xec5f01._0x3b6a2a,-0xb8)],'signal':_0xa1855e});function _0x229c70(_0x5eed4f,_0x50add1,_0x3dd3df,_0x2b3931){return _0xd1496a(_0x5eed4f- -_0x4047cd._0x2d2b41,_0x50add1-0x47,_0x2b3931,_0x2b3931-_0x4047cd._0x3ebce5);}const _0x234593=toChatRequest(_0x11c1ec[_0x229c70(-_0xec5f01._0x36db70,-0xec,-_0xec5f01._0x4d78f2,-0x22)]),_0x35f56f=this[_0x36be33(0x133,_0xec5f01._0x375bbb,-0x38,0x6c)][_0x36be33(0xaa,0x46,_0xec5f01._0x5b4f1a,_0xec5f01._0x90351a)](this[_0x229c70(-0x37,-_0xec5f01._0xf57d9,_0xec5f01._0xa28295,-0xb9)],_0x11c1ec[_0x229c70(-0x35,-0xbc,0x5,_0xec5f01._0x472454)]);if(!_0x35f56f)throw this['createMissingCredentialError']();return{'baseUrl':this[_0x229c70(-_0xec5f01._0x410aa5,_0xec5f01._0x4f0765,_0xec5f01._0x3d0829,_0xec5f01._0xdbd383)][_0x36be33(-_0xec5f01._0x4dfcf7,-_0xec5f01._0x2e82bb,-0x8,-_0xec5f01._0x236156)](this[_0x229c70(-0xf8,-0x167,-0xfc,-0x1a9)],_0x11c1ec[_0x36be33(0x37,_0xec5f01._0x3f664d,_0xec5f01._0x5a10c0,0x4a)]),'credential':_0x35f56f,'request':_0x234593,'session':_0x11c1ec[_0x229c70(-_0xec5f01._0x36d5e3,-0xcc,-0x115,0xad)]};}[_0x11bd88(0x43a,0x3ae,0x369,0x485)](_0x4f38cc,_0x5b5955,_0x4cbae1={}){const _0x4b7ff5={_0xd6965b:0x24b,_0x3c143f:0x1c4,_0x2a61da:0x1c1,_0x1b24f6:0x203,_0x2a5193:0x2f8,_0x46a410:0x31a,_0x4b8a1e:0x445,_0x184f51:0x3da,_0x269ffa:0x31b,_0x2877d3:0x343,_0x36a186:0x35b,_0x367408:0x2ce,_0x227a6f:0x3d2},_0x16d509={_0x202fed:0x1fc},_0x4b2621={_0x34f715:0xc5,_0x316f00:0x1de};function _0x59ba05(_0x5cf107,_0x44ad13,_0x4dd123,_0x54e585){return _0x11bd88(_0x5cf107- -_0x4b2621._0x34f715,_0x44ad13,_0x4dd123-_0x4b2621._0x316f00,_0x54e585-0xcc);}function _0x571a3c(_0x36da87,_0x4358c8,_0x232bc1,_0x377dcf){return _0xd1496a(_0x36da87- -_0x16d509._0x202fed,_0x4358c8-0x7b,_0x377dcf,_0x377dcf-0x7f);}if(!_0x4cbae1[_0x571a3c(_0x4b7ff5._0xd6965b,_0x4b7ff5._0x3c143f,_0x4b7ff5._0x2a61da,_0x4b7ff5._0x1b24f6)]){const _0xc6a9af=this[_0x571a3c(0x281,0x1e0,_0x4b7ff5._0x2a5193,_0x4b7ff5._0x46a410)](_0x4f38cc);if(_0xc6a9af&&_0x5b5955[_0x59ba05(_0x4b7ff5._0x4b8a1e,0x414,_0x4b7ff5._0x184f51,0x481)]&&_0xc6a9af['responseId']===_0x5b5955['lastResponseId']){const _0xa09a8f=toOpenAiResponsesRequest({..._0x4f38cc,'messages':_0x4f38cc[_0x59ba05(_0x4b7ff5._0x269ffa,0x342,_0x4b7ff5._0x2877d3,0x27c)][_0x59ba05(_0x4b7ff5._0x36a186,_0x4b7ff5._0x367408,0x431,0x386)](_0xc6a9af['messageIndex']+0x1)})[_0x59ba05(0x48c,0x46e,0x42f,0x44c)];return{'event':createOpenAiResponsesWebSocketEvent(_0x4f38cc,{'input':_0xa09a8f,'previousResponseId':_0xc6a9af['responseId']}),'previousResponseId':_0xc6a9af[_0x571a3c(_0x4b7ff5._0x227a6f,0x461,0x4b8,0x384)]};}}return{'event':createOpenAiResponsesWebSocketEvent(_0x4f38cc)};}[_0xd1496a(0x47d,0x489,0x43e,0x405)](_0x38e66e){const _0x20e779={_0x572829:0x38e,_0x28e68f:0x3d4,_0x48d1a8:0x3b3,_0x36ddc4:0x472,_0x10ff9d:0x14f,_0x43b15f:0x93,_0x113e37:0x92,_0x3c8e17:0x4f3,_0x1c1acb:0x41b,_0x286899:0x476},_0x4b3eff={_0x556bae:0x1d,_0x5ee84b:0x84,_0x1b373d:0x1e7},_0x227e35={_0x4d0d8e:0x537};for(let _0x547b37=_0x38e66e[_0x1f76ac(_0x20e779._0x572829,_0x20e779._0x28e68f,_0x20e779._0x48d1a8,_0x20e779._0x36ddc4)][_0x435fa0(-_0x20e779._0x10ff9d,0x3e,-0x65,-_0x20e779._0x43b15f)]-0x1;_0x547b37>=0x0;_0x547b37-=0x1){const _0x230f9a=_0x38e66e['messages'][_0x547b37],_0x27fd53=_0x230f9a[_0x435fa0(0x16a,0x33,0x95,_0x20e779._0x113e37)]==='assistant'?_0x230f9a[_0x1f76ac(_0x20e779._0x3c8e17,_0x20e779._0x1c1acb,0x4d7,_0x20e779._0x286899)]?.['openaiResponsesResponseId']:void 0x0;if(_0x27fd53)return{'messageIndex':_0x547b37,'responseId':_0x27fd53};}function _0x435fa0(_0xb28d72,_0x9fbb14,_0x3c4c7a,_0x585617){return _0xd1496a(_0x585617- -_0x227e35._0x4d0d8e,_0x9fbb14-0x1e3,_0x9fbb14,_0x585617-0x80);}function _0x1f76ac(_0x3cc1af,_0x5c464c,_0x1440ba,_0x5dfda3){return _0xd1496a(_0x5dfda3-_0x4b3eff._0x556bae,_0x5c464c-_0x4b3eff._0x5ee84b,_0x1440ba,_0x5dfda3-_0x4b3eff._0x1b373d);}return void 0x0;}['shouldRetryResponsesSocketRequest'](_0x497517){const _0x31a9f5={_0x5cbc51:0x6b1,_0x1ef1c1:0x6bc,_0x15ff7e:0x731,_0x4bf4bd:0x5d6,_0x28fd16:0x5d8,_0x11a93b:0x2fe,_0x3faf29:0x39b,_0x274f6f:0x2bc},_0x1b3790={_0x1e10cd:0x67,_0x45f5cb:0x158},_0x1178a3={_0x32444b:0x5};function _0x581be0(_0x7efb2b,_0x3e581c,_0x289236,_0x616d06){return _0xd1496a(_0x289236-0xb7,_0x3e581c-_0x1178a3._0x32444b,_0x616d06,_0x616d06-0x171);}function _0x20766f(_0x56709f,_0x1a14da,_0x52bdf1,_0x3d5c8b){return _0x11bd88(_0x3d5c8b- -_0x1b3790._0x1e10cd,_0x56709f,_0x52bdf1-_0x1b3790._0x45f5cb,_0x3d5c8b-0xc);}return _0x497517 instanceof ProviderStreamEventError&&(_0x497517[_0x581be0(_0x31a9f5._0x5cbc51,0x6b1,_0x31a9f5._0x1ef1c1,_0x31a9f5._0x15ff7e)]===_0x581be0(0x5dc,_0x31a9f5._0x4bf4bd,0x53d,_0x31a9f5._0x28fd16)||_0x497517['code']===_0x20766f(_0x31a9f5._0x11a93b,_0x31a9f5._0x3faf29,_0x31a9f5._0x274f6f,0x371));}[_0x11bd88(0x573,0x565,0x5ba,0x600)](_0x41f8cc){const _0x487d78={_0x1a2192:0x1cc,_0x367d68:0x199,_0x52a3e2:0x1f8,_0x2fd8f4:0x12f,_0x53a08e:0x1c2,_0x170238:0x284,_0x3b9d8e:0x230,_0x30a599:0x32b,_0x381195:0x2d5,_0x302064:0x377,_0x201fbc:0x39e,_0x256dd6:0x2db,_0x50f777:0x22a,_0x2a7cc9:0x24e,_0x28065e:0x28d,_0x9ecd48:0x2d0,_0x47ca30:0x2d6,_0x2677d3:0x22c,_0x20692c:0x2e4,_0x5a24c1:0x2e6},_0x52d3ff={_0x5bfd4b:0x142},_0x29f4c3={_0x31c866:0x1c4,_0x32ce03:0x12},_0x4f73e6=_0x41f8cc[_0x31a194(0x1f8,0x1fd,_0x487d78._0x1a2192,_0x487d78._0x367d68)];function _0x456c2f(_0x46ed5b,_0xc4c26,_0x416c2f,_0x430b8f){return _0xd1496a(_0x430b8f- -0x3f7,_0xc4c26-_0x29f4c3._0x31c866,_0xc4c26,_0x430b8f-_0x29f4c3._0x32ce03);}_0x41f8cc[_0x31a194(_0x487d78._0x52a3e2,_0x487d78._0x2fd8f4,0x1ef,_0x487d78._0x53a08e)]=void 0x0;function _0x31a194(_0x5c2f54,_0x40dab7,_0x39b425,_0x50b8ea){return _0x11bd88(_0x5c2f54- -0x235,_0x39b425,_0x39b425-0x8e,_0x50b8ea-_0x52d3ff._0x5bfd4b);}_0x41f8cc[_0x31a194(_0x487d78._0x170238,_0x487d78._0x3b9d8e,0x2ab,_0x487d78._0x30a599)]=void 0x0,_0x41f8cc[_0x31a194(_0x487d78._0x381195,_0x487d78._0x302064,_0x487d78._0x201fbc,_0x487d78._0x256dd6)]=void 0x0,_0x4f73e6?.['readyState']===WebSocket[_0x31a194(_0x487d78._0x50f777,0x246,_0x487d78._0x2a7cc9,_0x487d78._0x28065e)]&&_0x4f73e6[_0x31a194(_0x487d78._0x9ecd48,0x20b,_0x487d78._0x47ca30,0x21a)](0x3e8,_0x31a194(_0x487d78._0x2677d3,_0x487d78._0x20692c,0x1b5,_0x487d78._0x5a24c1));}async['getOrCreateResponsesSocket'](_0x567021,_0x561726,_0x5f1d6d,_0x120bec,_0x184fa2){const _0x44f289={_0x5328c6:0x21f,_0x3f5bf5:0x2a0,_0x425ede:0x44c,_0x1a659d:0x172,_0x522ea1:0x1bb,_0x2c174c:0x2bc,_0x5349d1:0x40a,_0x4cbc8b:0x34f,_0x3f75eb:0x3c2,_0x549bc5:0x328},_0x1f29f4={_0x52fe23:0x592,_0x498e9f:0x559,_0x2747c4:0x591,_0x3148bd:0x3f7,_0x232e16:0x3de,_0x3072f4:0x2e6,_0x1a7ad3:0x3e1,_0xe8dbb3:0x501,_0x5ddddd:0x370,_0xc35784:0x1fc,_0x4c136a:0x271,_0xbaf939:0x336,_0x244d9e:0x250,_0x1e96de:0x2c7,_0xdbe55c:0x277,_0x51d531:0x2a9,_0x452d71:0x2a3,_0x51fdb8:0x323,_0x59d2a0:0x2bf,_0x369f95:0x1f9,_0x11213d:0x37f,_0x54ed80:0x32f,_0x38221d:0x2d2,_0x803e28:0x3c4,_0x4da372:0x3e2,_0x2e4106:0x3cd,_0x552cec:0x33e,_0x197515:0x50b,_0x55078e:0x35c,_0x37031e:0x2d0,_0x10169a:0x262,_0x40f632:0x3ef,_0x1aa180:0x3b7,_0x4b765b:0x4f4,_0x45fbfe:0x2d0,_0x55d4b8:0x31b,_0x30f2a8:0x321,_0xdcb09f:0x3e5,_0x133078:0x44f},_0x3df7bf={_0x3552fe:0x20d,_0x51ab6c:0x1ef,_0x52b5b6:0x37f},_0x1d8bcc={_0x45bfd3:0x10d,_0x44a52a:0x2d,_0x40c370:0xa4},_0x4c5458={_0x11652d:0x134,_0x11e428:0x5e,_0x50b7ab:0x78},_0x2d55ce={_0x382b94:0x2a8,_0x5907e9:0x11a};function _0x20858e(_0x44520c,_0x23f65e,_0x59cf06,_0x26ef35){return _0xd1496a(_0x26ef35- -_0x2d55ce._0x382b94,_0x23f65e-_0x2d55ce._0x5907e9,_0x44520c,_0x26ef35-0x31);}if(_0x561726['socket']?.[_0x20858e(0x358,_0x44f289._0x5328c6,0x324,_0x44f289._0x3f5bf5)]===WebSocket[_0x597397(0x3a0,_0x44f289._0x425ede,0x364,0x3d9)])return _0x561726[_0x20858e(_0x44f289._0x1a659d,_0x44f289._0x522ea1,_0x44f289._0x2c174c,0x1fa)];function _0x597397(_0x4af3c4,_0x3bed63,_0x175567,_0x256921){return _0xd1496a(_0x4af3c4- -_0x4c5458._0x11652d,_0x3bed63-_0x4c5458._0x11e428,_0x3bed63,_0x256921-_0x4c5458._0x50b7ab);}if(_0x561726['connecting'])return await _0x561726[_0x597397(0x3fa,_0x44f289._0x5349d1,_0x44f289._0x4cbc8b,0x4ae)];_0x561726[_0x597397(0x3fa,_0x44f289._0x3f75eb,_0x44f289._0x549bc5,0x40c)]=((async()=>{const _0x254bbc={_0x5bbf51:0x1d6,_0x110df7:0x1f5};function _0x1f1e66(_0x240fd1,_0x18cf89,_0x7caca2,_0x239d27){return _0x20858e(_0x239d27,_0x18cf89-_0x1d8bcc._0x45bfd3,_0x7caca2-_0x1d8bcc._0x44a52a,_0x18cf89-_0x1d8bcc._0x40c370);}function _0x5ad6da(_0x319b86,_0x45de09,_0x47d1ce,_0x30838c){return _0x20858e(_0x45de09,_0x45de09-0xcd,_0x47d1ce-_0x254bbc._0x5bbf51,_0x319b86-_0x254bbc._0x110df7);}const _0x13f26b=await this['createHeaders']({'request':_0x5f1d6d[_0x5ad6da(0x514,_0x1f29f4._0x52fe23,_0x1f29f4._0x498e9f,_0x1f29f4._0x2747c4)],'body':_0x120bec,'credential':_0x5f1d6d[_0x5ad6da(_0x1f29f4._0x3148bd,_0x1f29f4._0x232e16,0x422,0x4b1)],'session':_0x5f1d6d[_0x1f1e66(_0x1f29f4._0x3072f4,0x3ac,_0x1f29f4._0x1a7ad3,0x35a)],'stream':!![]},{'accept':'application/json','includeContentType':![]});_0x13f26b[_0x5ad6da(0x508,0x520,0x5c7,_0x1f29f4._0xe8dbb3)](_0x1f1e66(0x2b8,0x34d,_0x1f29f4._0x5ddddd,0x40d));const _0x24c91b=this['webSocketFactory']({'headers':Object[_0x1f1e66(_0x1f29f4._0xc35784,_0x1f29f4._0x4c136a,0x25f,0x1d9)](_0x13f26b[_0x1f1e66(0x1f0,0x2c9,_0x1f29f4._0xbaf939,0x274)]()),'url':(''+_0x5f1d6d['baseUrl']+this[_0x1f1e66(_0x1f29f4._0x244d9e,_0x1f29f4._0x1e96de,_0x1f29f4._0xdbe55c,0x2be)])[_0x1f1e66(_0x1f29f4._0x51d531,_0x1f29f4._0x452d71,_0x1f29f4._0x51fdb8,0x224)](/^http:/,_0x1f1e66(_0x1f29f4._0x59d2a0,0x2ac,_0x1f29f4._0x369f95,0x28b))[_0x5ad6da(0x3f4,_0x1f29f4._0x11213d,0x3c6,0x380)](/^https:/,_0x5ad6da(0x3b0,_0x1f29f4._0x54ed80,_0x1f29f4._0x38221d,0x35d))}),_0x2c3208=()=>{const _0x584d8b={_0x511610:0x1e2,_0x378a4e:0x121},_0x27b417={_0x4302b9:0x40,_0x238eaa:0x1f5};function _0x233fdf(_0x4d2722,_0x1206b8,_0x4da334,_0x2eabf5){return _0x1f1e66(_0x4d2722-_0x27b417._0x4302b9,_0x1206b8-_0x27b417._0x238eaa,_0x4da334-0x33,_0x2eabf5);}function _0x57a2dd(_0x25a464,_0x34a5eb,_0x427ee5,_0x2d0b3b){return _0x1f1e66(_0x25a464-_0x584d8b._0x511610,_0x427ee5-0x3,_0x427ee5-_0x584d8b._0x378a4e,_0x34a5eb);}_0x561726[_0x233fdf(0x4d0,0x493,0x43c,0x568)]===_0x24c91b&&(_0x561726[_0x57a2dd(_0x3df7bf._0x3552fe,_0x3df7bf._0x51ab6c,0x2a1,_0x3df7bf._0x52b5b6)]=void 0x0,_0x561726['lastResponseId']=void 0x0);};_0x24c91b[_0x1f1e66(_0x1f29f4._0x803e28,0x3ee,_0x1f29f4._0x4da372,_0x1f29f4._0x2e4106)](_0x1f1e66(_0x1f29f4._0x552cec,0x376,0x362,0x427),_0x2c3208);try{return throwIfAborted(_0x184fa2),_0x24c91b[_0x5ad6da(0x495,_0x1f29f4._0x197515,0x4bf,0x523)]!==WebSocket[_0x1f1e66(_0x1f29f4._0x55078e,_0x1f29f4._0x37031e,0x1fa,_0x1f29f4._0x10169a)]&&await waitForWebSocketOpen(_0x24c91b,_0x184fa2),throwIfAborted(_0x184fa2),_0x561726[_0x5ad6da(_0x1f29f4._0x40f632,0x4b7,0x43c,_0x1f29f4._0x1aa180)]=_0x24c91b,_0x24c91b;}catch(_0x4c0228){_0x2c3208();_0x24c91b[_0x5ad6da(0x495,0x486,_0x1f29f4._0x4b765b,0x487)]===WebSocket[_0x1f1e66(0x2bb,_0x1f29f4._0x45fbfe,0x263,_0x1f29f4._0x55d4b8)]&&_0x24c91b[_0x5ad6da(0x4c7,0x4d9,0x419,0x54a)](0x3e8,_0x1f1e66(_0x1f29f4._0x30f2a8,_0x1f29f4._0xdcb09f,_0x1f29f4._0x133078,0x3ce));throw _0x4c0228;}})());try{return await _0x561726['connecting'];}finally{_0x561726[_0x20858e(0x2f4,0x2be,0x271,0x286)]=void 0x0;}}async*[_0xd1496a(0x5b9,0x65a,0x592,0x52f)](_0x5e4b8b,_0x45f526){const _0x4a4b71={_0xceebbc:0x315,_0xf41a07:0x346,_0x5c6d7e:0x31d,_0x13f695:0x337,_0x2a8437:0x2c8,_0x33b45b:0x2af,_0x18d6e1:0x251,_0x567016:0x1f9,_0xcba5f4:0x5c3,_0x2bdc96:0x5e1,_0x51266e:0x537,_0x38141b:0x2cd,_0x522b1d:0x353,_0x320040:0x43f,_0x162d11:0x4f9,_0x191d31:0x3c0,_0x5b9fa2:0x3f7,_0x25d2f6:0x582,_0x279785:0x426,_0x6e98f9:0x301,_0x6136b:0x35d,_0x211742:0x331,_0x4e85c0:0x2c0,_0x250eb6:0x332,_0x27d288:0x326,_0x28dc72:0x3e5,_0x307b87:0x527,_0x9ba8ba:0x4d5},_0x4340a8={_0x312576:0x241,_0x341655:0x19f},_0x50f87d={_0x4983ad:0x1ef},_0x24e7da=this[_0x42d4d0(0x241,0x37a,_0x4a4b71._0xceebbc,0x329)](_0x5e4b8b);function _0x34dc99(_0x20e255,_0x2a4f67,_0x489280,_0x3d26dc){return _0xd1496a(_0x20e255- -0x55,_0x2a4f67-0xa8,_0x2a4f67,_0x3d26dc-_0x50f87d._0x4983ad);}const _0xfbc206=this[_0x42d4d0(0x288,0x363,0x272,_0x4a4b71._0xf41a07)](_0x24e7da[_0x42d4d0(0x3bd,0x278,_0x4a4b71._0x5c6d7e,0x353)]['sessionId']);function _0x42d4d0(_0x36097b,_0x3ec560,_0x188168,_0x490f10){return _0x11bd88(_0x490f10- -_0x4340a8._0x312576,_0x3ec560,_0x188168-0x1ea,_0x490f10-_0x4340a8._0x341655);}const _0xe8619a=await this[_0x42d4d0(_0x4a4b71._0x13f695,_0x4a4b71._0x2a8437,0x1de,_0x4a4b71._0x33b45b)](_0xfbc206);try{const _0x17b898=this[_0x42d4d0(0x261,0x289,_0x4a4b71._0x18d6e1,_0x4a4b71._0x567016)](_0x24e7da,_0xfbc206);try{yield*this[_0x34dc99(0x50d,_0x4a4b71._0xcba5f4,_0x4a4b71._0x2bdc96,_0x4a4b71._0x51266e)](_0x24e7da[_0x42d4d0(_0x4a4b71._0x38141b,0x2b2,0x381,_0x4a4b71._0x522b1d)][_0x34dc99(_0x4a4b71._0x320040,0x377,_0x4a4b71._0x162d11,_0x4a4b71._0x191d31)],_0xfbc206,_0x24e7da,_0x17b898[_0x34dc99(0x4d5,0x59e,_0x4a4b71._0x5b9fa2,_0x4a4b71._0x25d2f6)],_0x45f526?.[_0x42d4d0(0x2a9,_0x4a4b71._0x279785,_0x4a4b71._0x6e98f9,0x34e)]);return;}catch(_0x2ce735){if(!_0x17b898[_0x42d4d0(_0x4a4b71._0x6136b,0x372,_0x4a4b71._0x211742,0x2f7)]||!this['shouldRetryResponsesSocketRequest'](_0x2ce735)){this[_0x42d4d0(0x2ad,0x2d9,_0x4a4b71._0x4e85c0,_0x4a4b71._0x250eb6)](_0xfbc206);throw _0x2ce735;}}this[_0x42d4d0(0x35f,_0x4a4b71._0x27d288,_0x4a4b71._0x28dc72,0x332)](_0xfbc206);const _0x4579a2=this['buildResponsesSocketEvent'](_0x24e7da,_0xfbc206,{'forceFullReplay':!![]});yield*this['streamViaResponsesSocketAttempt'](_0x24e7da[_0x34dc99(0x5b4,0x58b,0x674,_0x4a4b71._0x307b87)]['sessionId'],_0xfbc206,_0x24e7da,_0x4579a2[_0x34dc99(_0x4a4b71._0x9ba8ba,0x4f3,0x4af,0x457)],_0x45f526?.['signal']);}finally{_0xe8619a();}}async*[_0xd1496a(0x562,0x5f2,0x62d,0x531)](_0x9a6165,_0x2954b7,_0x4faa3c,_0x195352,_0x17005e){const _0x5a8a38={_0x596f6f:0xd1,_0x362b25:0xa7,_0xa21519:0x58,_0x549a82:0x13,_0x2a8742:0xc1,_0x50812f:0x10f,_0x145f79:0xd2,_0x517569:0x2e5,_0xd25d8e:0x234,_0x4e1ec7:0x2b3,_0x3eae2b:0xad,_0x501883:0xfd,_0x1e0006:0x3d,_0x12ef47:0x46,_0x336270:0x16,_0x160973:0x1f0},_0xc0ab19={_0x445e23:0x31a,_0x50956d:0x1cc},_0x13a700={_0x3e80c0:0xde,_0x4afd10:0x1a9},_0x28fa76=await this[_0x18e110(0x1a9,_0x5a8a38._0x596f6f,0x1b1,_0x5a8a38._0x362b25)](_0x4faa3c,_0x17005e),_0x3375f1=await this[_0x18e110(0x243,0x194,0xf1,0x240)](_0x9a6165,_0x2954b7,_0x28fa76,_0x195352,_0x17005e),_0x89792f=createOpenAiResponsesStreamParser(_0x4faa3c);throwIfAborted(_0x17005e),_0x3375f1[_0x49a64e(-_0x5a8a38._0xa21519,_0x5a8a38._0x549a82,-0xb9,_0x5a8a38._0x2a8742)](JSON['stringify'](_0x195352));function _0x49a64e(_0x3b5156,_0x115ad7,_0x3a714a,_0x109df4){return _0x11bd88(_0x115ad7- -0x507,_0x3b5156,_0x3a714a-_0x13a700._0x3e80c0,_0x109df4-_0x13a700._0x4afd10);}function _0x18e110(_0x4a9962,_0x217d0f,_0x1920bd,_0x19e1bb){return _0x11bd88(_0x217d0f- -_0xc0ab19._0x445e23,_0x1920bd,_0x1920bd-_0xc0ab19._0x50956d,_0x19e1bb-0x1cf);}for await(const _0x2e8f23 of iterateWebSocketMessages(_0x3375f1,_0x17005e)){const _0x528498=_0x89792f[_0x18e110(0x39,_0x5a8a38._0x50812f,_0x5a8a38._0x145f79,0x1ae)]?.(_0x2e8f23)??[];yield*_0x528498;if(_0x89792f['isDone']?.())break;}if(!_0x89792f[_0x18e110(_0x5a8a38._0x517569,_0x5a8a38._0xd25d8e,0x2a5,_0x5a8a38._0x4e1ec7)]?.())throw new Error('Responses\x20WebSocket\x20closed\x20before\x20response.completed');const _0x278084=_0x89792f[_0x18e110(_0x5a8a38._0x3eae2b,0x138,0x84,0xa1)](),_0x2e5450=_0x278084[_0x18e110(_0x5a8a38._0x501883,0xca,0xc,_0x5a8a38._0x1e0006)]?.[_0x49a64e(_0x5a8a38._0x12ef47,_0x5a8a38._0x336270,0x2e,-0xa)]??_0x278084['id'];_0x2e5450&&(_0x2954b7[_0x18e110(0x15a,_0x5a8a38._0x160973,0x15c,0x16f)]=_0x2e5450),yield{'type':'done','response':_0x278084};}},AVAILABLE_CHAT_MODEL_SURFACES=[_0xd1496a(0x480,0x561,0x567,0x534),_0xd1496a(0x538,0x500,0x5fe,0x450),_0xd1496a(0x490,0x3af,0x516,0x445),_0xd1496a(0x545,0x536,0x62c,0x55e)];function isAnthropicSurface(_0x9bc272){const _0x419b69={_0x45320d:0x13b};function _0x2e4c82(_0x41d99e,_0x5b7bbd,_0x46372a,_0x5cef89){return _0x11bd88(_0x5b7bbd- -0x4bc,_0x5cef89,_0x46372a-_0x419b69._0x45320d,_0x5cef89-0x10e);}return _0x9bc272===_0x2e4c82(-0x45,-0xb1,-0x42,-0xb8);}function resolveDefaultBaseUrl(_0x1d80a1){const _0x384630={_0x3b9bf5:0xfd,_0x77c3d9:0x2a4,_0x360993:0x287,_0x5a85e8:0x386,_0x45b7b8:0x2bd,_0x37fe50:0x1f2,_0x4225a5:0x10c,_0x50849f:0x1f3,_0x1ce01b:0x2cc,_0x43c6e8:0x2f3,_0x3f9a75:0x35c},_0x22ba62={_0x4ba558:0x180,_0x154883:0x18f};function _0x3e170d(_0x85d000,_0x19dbcb,_0x262493,_0x20bcd0){return _0x11bd88(_0x19dbcb- -0x252,_0x20bcd0,_0x262493-0xcf,_0x20bcd0-0x157);}function _0x26cd53(_0x4e1c3c,_0x4c4e8d,_0x25c336,_0x371df2){return _0x11bd88(_0x371df2- -0x1b7,_0x4e1c3c,_0x25c336-_0x22ba62._0x4ba558,_0x371df2-_0x22ba62._0x154883);}if(_0x1d80a1===_0x3e170d(_0x384630._0x3b9bf5,0x1b9,_0x384630._0x77c3d9,_0x384630._0x360993))return getProviderProfile('anthropic')?.[_0x26cd53(_0x384630._0x5a85e8,0x32a,0x392,0x2c1)]??_0x3e170d(_0x384630._0x45b7b8,_0x384630._0x37fe50,_0x384630._0x4225a5,_0x384630._0x50849f);return getProviderProfile('openai')?.['baseUrl']??_0x26cd53(_0x384630._0x1ce01b,0x332,_0x384630._0x43c6e8,_0x384630._0x3f9a75);}var ChatModel=class{[_0xd1496a(0x4de,0x41c,0x505,0x46d)];[_0x11bd88(0x46c,0x4f5,0x499,0x491)];['surface'];[_0xd1496a(0x5b1,0x59f,0x69c,0x503)];['openAiDelegate'];constructor(_0x87add2={}){const _0x2e2ae1={_0x1a7388:0x4a,_0x2bb2d0:0x114,_0x29f3b9:0x15d,_0x54d2b6:0xf0,_0x1a7d24:0x173,_0x220957:0xeb,_0x521fca:0x209,_0x3a083e:0x296,_0x3816a9:0x4c,_0x13bff9:0x121,_0x53235e:0x51,_0x2fe591:0x189,_0x491ee1:0x167,_0x899eee:0xe1,_0x456c6f:0x3,_0x8976d0:0x108,_0x36b903:0xd7,_0x3de574:0x21,_0xcdf8ab:0xf1,_0x182b19:0x20,_0x318b5a:0x130,_0x5dacfd:0x195,_0x20d2df:0xe5,_0x5866f0:0x4a,_0x59d2a:0x126,_0xd404e1:0x66,_0x1d6488:0xac,_0x65e3c:0x11a,_0x5ebe51:0x1fd,_0x128661:0xcf,_0x45b5f9:0x245,_0x3f1b95:0x213,_0x4d5f76:0x4a,_0x25b112:0xca},_0x119413={_0x69d6b8:0x3d},_0xc77c5d={_0x5ada0d:0x5df,_0x783c6e:0x1a6};this[_0x2bb6be(0xba,_0x2e2ae1._0x1a7388,_0x2e2ae1._0x2bb2d0,-0x15)]=_0x87add2['model']??getDefaultModel(),this[_0x634589(-_0x2e2ae1._0x29f3b9,-0x173,-_0x2e2ae1._0x54d2b6,-0x256)]=_0x87add2[_0x634589(-0x1c5,-_0x2e2ae1._0x1a7d24,-_0x2e2ae1._0x220957,-_0x2e2ae1._0x521fca)]??getDefaultMaxTokens(),this[_0x634589(-0x1ad,-0x1db,-_0x2e2ae1._0x3a083e,-0x26e)]=_0x87add2[_0x2bb6be(0x57,-0x1b,-_0x2e2ae1._0x3816a9,0xba)]??_0x2bb6be(_0x2e2ae1._0x13bff9,0xa4,_0x2e2ae1._0x53235e,_0x2e2ae1._0x2fe591);function _0x634589(_0x1d3568,_0x56bd7d,_0x404ce9,_0x547fd7){return _0x11bd88(_0x56bd7d- -_0xc77c5d._0x5ada0d,_0x404ce9,_0x404ce9-_0xc77c5d._0x783c6e,_0x547fd7-0xfd);}const _0x50733b=trimTrailingSlashes(_0x87add2[_0x634589(-0xc0,-_0x2e2ae1._0x491ee1,-0x1c9,-_0x2e2ae1._0x899eee)]??resolveDefaultBaseUrl(this[_0x634589(-0x281,-0x1db,-0x1e9,-0x180)]));if(isAnthropicSurface(this['surface'])){this[_0x634589(-0x11d,-0xa3,-_0x2e2ae1._0x456c6f,-_0x2e2ae1._0x8976d0)]=new AnthropicModel({'apiKey':_0x87add2['apiKey'],'authScheme':_0x87add2[_0x2bb6be(_0x2e2ae1._0x36b903,0xee,_0x2e2ae1._0x3de574,_0x2e2ae1._0xcdf8ab)],'baseUrl':_0x50733b,'fetch':_0x87add2[_0x634589(-_0x2e2ae1._0x182b19,-0xc9,-_0x2e2ae1._0x318b5a,-_0x2e2ae1._0x5dacfd)],'maxTokens':this['maxTokens'],'model':this[_0x2bb6be(_0x2e2ae1._0x20d2df,_0x2e2ae1._0x5866f0,_0x2e2ae1._0x59d2a,-0x40)],'reasoning':_0x87add2['reasoning'],'providerSessionResolver':_0x87add2[_0x634589(-_0x2e2ae1._0xd404e1,-0x53,-0xb4,-0xda)],'requestMutators':_0x87add2['requestMutators']});return;}function _0x2bb6be(_0x44ec8b,_0x28b04b,_0x31e013,_0x65a94e){return _0xd1496a(_0x28b04b- -0x494,_0x28b04b-0xde,_0x44ec8b,_0x65a94e-_0x119413._0x69d6b8);}this['openAiDelegate']=new OpenAiModel({'apiKey':_0x87add2[_0x2bb6be(_0x2e2ae1._0x1d6488,_0x2e2ae1._0x65e3c,0xc2,_0x2e2ae1._0x5ebe51)],'baseUrl':_0x50733b,'fetch':_0x87add2['fetch'],'headerResolver':_0x87add2['headerResolver'],'maxTokens':this[_0x634589(-_0x2e2ae1._0x128661,-0x173,-_0x2e2ae1._0x45b5f9,-_0x2e2ae1._0x3f1b95)],'model':this[_0x2bb6be(0x93,_0x2e2ae1._0x4d5f76,-0x56,0xe6)],'reasoning':_0x87add2['reasoning'],'providerSessionResolver':_0x87add2['providerSessionResolver'],'requestMutators':_0x87add2['requestMutators'],'webSocketFactory':_0x87add2[_0x2bb6be(0x107,0x153,_0x2e2ae1._0x25b112,0x1ec)]});}[_0x11bd88(0x56b,0x4ae,0x553,0x501)](){const _0x331107={_0x1a0a17:0x369,_0x164303:0x39d,_0xe7b64c:0x3cf,_0x7f7262:0x2fc,_0x5495c1:0x9,_0x841a72:0x36c,_0x2ff2d8:0x297,_0x34b4ce:0x339,_0x111934:0x368},_0x506d36={_0xeece73:0x535,_0x1e2904:0x146},_0x1b3e05={_0x521723:0x16d,_0x45edf0:0x14e,_0x48b817:0xda};function _0x262902(_0x5202f4,_0x18cad0,_0x6d8d00,_0x342faf){return _0x11bd88(_0x6d8d00- -_0x1b3e05._0x521723,_0x342faf,_0x6d8d00-_0x1b3e05._0x45edf0,_0x342faf-_0x1b3e05._0x48b817);}function _0x4924ac(_0x1554bf,_0x668fec,_0x235bf2,_0x15dd47){return _0xd1496a(_0x15dd47- -_0x506d36._0xeece73,_0x668fec-_0x506d36._0x1e2904,_0x668fec,_0x15dd47-0x146);}if(!this[_0x262902(_0x331107._0x1a0a17,_0x331107._0x164303,_0x331107._0xe7b64c,_0x331107._0x7f7262)])throw new Error(_0x4924ac(-_0x331107._0x5495c1,-0x83,0x8d,0x48)+this[_0x262902(_0x331107._0x841a72,0x319,_0x331107._0x2ff2d8,0x233)]);return this[_0x262902(_0x331107._0x34b4ce,_0x331107._0x111934,0x3cf,0x377)];}[_0xd1496a(0x579,0x4c8,0x5db,0x555)](){const _0x256d7a={_0x19bff5:0x23f},_0x5b1374={_0x1c569d:0x1db};if(!this[_0x2c85e3(0x269,_0x256d7a._0x19bff5,0x2cc,0x1b8)])throw new Error('OpenAI\x20delegate\x20is\x20not\x20initialized\x20for\x20surface:\x20'+this['surface']);function _0x2c85e3(_0x502a3e,_0x933625,_0x515f67,_0x56b9ba){return _0xd1496a(_0x502a3e- -0x238,_0x933625-_0x5b1374._0x1c569d,_0x933625,_0x56b9ba-0x138);}return this['openAiDelegate'];}[_0x11bd88(0x58a,0x524,0x525,0x5bf)](_0x54ca4b,_0x5708cf){const _0x5a8dff={_0x3cc171:0x208,_0x34bfd3:0x136,_0x2293b1:0x37c,_0x95aa77:0x449,_0x367300:0x447,_0x29eec9:0x23c,_0x21111f:0x20d,_0x565055:0x2f7,_0x45f5b8:0x263,_0x3884d4:0x2f6,_0x206cce:0x3a6,_0x3894ce:0x2b7,_0x483480:0x24c,_0x1f001d:0x26d,_0x1bb260:0x202,_0x509c3e:0x1d5,_0x1e8868:0x373,_0x1e4ffb:0x206},_0x2d5951={_0x6368d0:0x20e,_0x33db90:0x28,_0x3e8272:0x13b},_0x5cf135={_0x437714:0x78};function _0x575854(_0x4abfc2,_0x1f69a2,_0x227827,_0xa49ca4){return _0x11bd88(_0xa49ca4- -0x2ce,_0x227827,_0x227827-_0x5cf135._0x437714,_0xa49ca4-0x1b7);}function _0x37ba7a(_0xccfc93,_0x355452,_0x3d18da,_0x161eb0){return _0x11bd88(_0x355452- -_0x2d5951._0x6368d0,_0x161eb0,_0x3d18da-_0x2d5951._0x33db90,_0x161eb0-_0x2d5951._0x3e8272);}switch(this[_0x575854(0x200,0x8d,_0x5a8dff._0x3cc171,_0x5a8dff._0x34bfd3)]){case'anthropic-messages':return this['getAnthropicDelegate']()[_0x37ba7a(0x38c,_0x5a8dff._0x2293b1,_0x5a8dff._0x95aa77,_0x5a8dff._0x367300)](_0x54ca4b,_0x5708cf);case _0x37ba7a(_0x5a8dff._0x29eec9,_0x5a8dff._0x21111f,_0x5a8dff._0x565055,_0x5a8dff._0x45f5b8):return this[_0x37ba7a(_0x5a8dff._0x29eec9,_0x5a8dff._0x3884d4,_0x5a8dff._0x206cce,0x2f1)]()[_0x37ba7a(_0x5a8dff._0x3894ce,0x26c,_0x5a8dff._0x483480,0x25d)](_0x54ca4b,_0x5708cf);case _0x575854(_0x5a8dff._0x1f001d,0x220,0x1b1,_0x5a8dff._0x1bb260):return this[_0x575854(0x159,0x252,_0x5a8dff._0x509c3e,0x236)]()['responseSocket'](_0x54ca4b,_0x5708cf);default:return this[_0x37ba7a(_0x5a8dff._0x1e8868,0x2f6,0x293,0x24b)]()[_0x575854(0x19e,0x278,0x17d,_0x5a8dff._0x1e4ffb)](_0x54ca4b,_0x5708cf);}}[_0xd1496a(0x5ec,0x5ee,0x556,0x62f)](_0x5d049a,_0x13bdd1){const _0x152391={_0x4d669d:0x10c,_0x472ea5:0xa5,_0x3b6804:0x192,_0x19e795:0x26f,_0x45f1dd:0x20c,_0x37cde6:0x231,_0x1a7d51:0x25d,_0x265f17:0x1fe,_0x35051f:0x218,_0x49a173:0x120,_0x367e8e:0x9d,_0x161215:0x124,_0x29a424:0x1a5,_0x4c67b0:0x1c7,_0x5508c4:0x45b,_0x2b9ad7:0x4d2,_0x57b0f2:0x417,_0x13ac9a:0x42c,_0x4a1f0a:0x419,_0x57b21b:0x46d,_0x32dbc5:0x4bb,_0x436ce6:0xb8,_0x3fdb2a:0x8e},_0x52fe0d={_0x2890d6:0x11e,_0x156df6:0x180},_0x110f8a={_0x43b977:0x3};function _0x5253d5(_0x5c1dc2,_0x160fcf,_0x1905c8,_0x4e428c){return _0xd1496a(_0x4e428c- -0x3d4,_0x160fcf-_0x110f8a._0x43b977,_0x5c1dc2,_0x4e428c-0x14f);}function _0x31696f(_0x2d8821,_0x10a0d7,_0x294d7f,_0x958375){return _0xd1496a(_0x10a0d7- -_0x52fe0d._0x2890d6,_0x10a0d7-_0x52fe0d._0x156df6,_0x958375,_0x958375-0xc9);}switch(this[_0x5253d5(0x94,_0x152391._0x4d669d,0xcb,_0x152391._0x472ea5)]){case'anthropic-messages':return this[_0x5253d5(0x2e4,_0x152391._0x3b6804,_0x152391._0x19e795,_0x152391._0x45f1dd)]()[_0x5253d5(_0x152391._0x37cde6,_0x152391._0x1a7d51,_0x152391._0x265f17,_0x152391._0x35051f)](_0x5d049a,_0x13bdd1);case _0x5253d5(_0x152391._0x49a173,_0x152391._0x367e8e,_0x152391._0x161215,0xbc):return this[_0x5253d5(0xf0,0x100,0xda,_0x152391._0x29a424)]()[_0x5253d5(0x26a,_0x152391._0x3b6804,0x1f7,_0x152391._0x4c67b0)](_0x5d049a,_0x13bdd1);case'openai-responses-ws':return this[_0x31696f(0x497,_0x152391._0x5508c4,0x497,0x3cd)]()[_0x31696f(_0x152391._0x2b9ad7,_0x152391._0x57b0f2,_0x152391._0x13ac9a,0x387)](_0x5d049a,_0x13bdd1);default:return this[_0x31696f(_0x152391._0x4a1f0a,0x45b,_0x152391._0x57b21b,_0x152391._0x32dbc5)]()[_0x5253d5(_0x152391._0x436ce6,_0x152391._0x3fdb2a,-0x1f,0x94)](_0x5d049a,_0x13bdd1);}}};import{randomUUID}from'crypto';var GitHubAccessTokenResolver=class{[_0xd1496a(0x59d,0x53a,0x5ab,0x4c7)];[_0xd1496a(0x4ed,0x5b1,0x5a4,0x422)];[_0x11bd88(0x4f3,0x415,0x5ca,0x45a)];['githubApiUrl'];[_0x11bd88(0x3d3,0x3f7,0x320,0x47b)];constructor(_0x536ad2){const _0x17b62d={_0x14439e:0x331,_0x17625:0x32a,_0x3aa1da:0x335,_0x4094b7:0x39d,_0x3e0f02:0x2e8,_0x4e76b2:0x39b,_0x4ee954:0x297,_0x2b8806:0x369,_0x31b5b5:0x319,_0xbe8fbc:0x33a,_0x132693:0x278,_0x62fed0:0x25d},_0x2fcab8={_0x23d2e5:0x179},_0x3fbf9e={_0x5ddabc:0x53};this['accessToken']=_0x536ad2[_0x5276c0(_0x17b62d._0x14439e,0x37b,_0x17b62d._0x17625,_0x17b62d._0x3aa1da)],this[_0x5276c0(_0x17b62d._0x4094b7,0x2cb,0x2c4,_0x17b62d._0x3e0f02)]=trimTrailingSlashes2(_0x536ad2['baseUrl']),this[_0x5276c0(_0x17b62d._0x4e76b2,0x346,0x321,0x327)]=_0x536ad2[_0x5276c0(_0x17b62d._0x4ee954,_0x17b62d._0x2b8806,0x346,0x368)];function _0x5276c0(_0x485370,_0x2d9833,_0x361132,_0x167195){return _0x11bd88(_0x2d9833- -0x1ad,_0x485370,_0x361132-0x1b7,_0x167195-_0x3fbf9e._0x5ddabc);}this[_0x17ae94(_0x17b62d._0x31b5b5,0x1e2,0x25b,0x267)]=trimTrailingSlashes2(_0x536ad2[_0x5276c0(_0x17b62d._0xbe8fbc,_0x17b62d._0x132693,0x2be,0x32b)]);function _0x17ae94(_0x4105ba,_0xa0a26d,_0x5c49bb,_0x1cefdc){return _0xd1496a(_0x1cefdc- -0x233,_0xa0a26d-0x5b,_0xa0a26d,_0x1cefdc-_0x2fcab8._0x23d2e5);}this[_0x5276c0(0x236,0x226,0x145,_0x17b62d._0x62fed0)]=_0x536ad2['tokenExchangeApiVersion'];}async['resolve'](_0x206c1c){const _0x3fedfd={_0x15f1d6:0x23d,_0x4c4aea:0x17b,_0x4f1e03:0x174,_0x36f6b9:0x2c3,_0x24fcac:0x238,_0x12679f:0x369,_0x53914c:0x33a,_0x104b5e:0x32e,_0xac6a1e:0x3a7,_0x3e9913:0x1a6,_0x4c0c83:0x277,_0x1bc1a7:0x19b,_0x391bda:0x122,_0x284087:0x2dd,_0x485650:0x272,_0x4bd7cd:0x2d1,_0x143652:0x32b,_0x375fcb:0x1a1,_0x17a33a:0x3fc,_0x68e600:0x2cc,_0x1d0bc1:0x291,_0x4bd0b8:0x321,_0x5e8a2c:0x28e,_0xe63472:0x29f,_0x75cd52:0x9e,_0x7b8f01:0x124,_0x25c5b7:0x1d3,_0x58b772:0x257,_0x46c4f2:0x386,_0x148533:0x2e0,_0x768c95:0x2fa,_0x34f3f4:0x278,_0x4e1645:0x1e0},_0x3f991a={_0x90d52d:0x1ed,_0x3d8966:0x1be},_0x151b7d={_0x1edec7:0x18b,_0x4d609d:0x127};function _0x1a6484(_0x2944ac,_0x1b553f,_0x292598,_0x2c3542){return _0x11bd88(_0x2c3542- -0x2b1,_0x292598,_0x292598-_0x151b7d._0x1edec7,_0x2c3542-_0x151b7d._0x4d609d);}const _0x56ed71=await this[_0x1a6484(0x25d,0x269,0x25c,0x242)](this[_0x1a6484(_0x3fedfd._0x15f1d6,_0x3fedfd._0x4c4aea,0x237,_0x3fedfd._0x4f1e03)]+_0x1a6484(_0x3fedfd._0x36f6b9,0x25f,0x2b0,_0x3fedfd._0x24fcac),{'method':_0x42e308(0x306,0x2a6,_0x3fedfd._0x12679f,0x2fb),'headers':new Headers({'accept':_0x42e308(_0x3fedfd._0x53914c,0x3cb,_0x3fedfd._0x104b5e,0x40c),'authorization':_0x42e308(0x328,0x2c7,0x2f9,_0x3fedfd._0xac6a1e)+this[_0x1a6484(0x30a,_0x3fedfd._0x3e9913,0x1ad,_0x3fedfd._0x4c0c83)],'editor-version':_0x1a6484(0x130,0x184,0xdd,0x19c),'user-agent':'GitHubCopilotChat/0.33.1','x-github-api-version':this[_0x1a6484(0x15d,_0x3fedfd._0x1bc1a7,0x154,_0x3fedfd._0x391bda)]}),'signal':_0x206c1c});if(!_0x56ed71['ok'])return{'credential':{'kind':_0x42e308(_0x3fedfd._0x284087,_0x3fedfd._0x485650,_0x3fedfd._0x4bd7cd,_0x3fedfd._0x143652),'value':this['accessToken']},'endpoints':{'api':this[_0x1a6484(_0x3fedfd._0x375fcb,0x18f,0x1db,0x1c7)]}};const _0x348b40=await _0x56ed71[_0x42e308(0x2ea,_0x3fedfd._0x17a33a,0x357,0x3bb)]();function _0x42e308(_0x5a53b6,_0x3b089e,_0x3318ab,_0x4efe27){return _0xd1496a(_0x3318ab- -0x25f,_0x3b089e-_0x3f991a._0x90d52d,_0x5a53b6,_0x4efe27-_0x3f991a._0x3d8966);}return{'credential':{'kind':_0x42e308(0x26e,0x30e,_0x3fedfd._0x68e600,_0x3fedfd._0x1d0bc1),'value':_0x348b40['token']??this['accessToken']},'endpoints':{'api':_0x348b40['endpoints']?.['api']??this[_0x42e308(0x1a8,_0x3fedfd._0x4bd0b8,_0x3fedfd._0x5e8a2c,0x23b)],'originTracker':_0x348b40[_0x42e308(0x1ef,_0x3fedfd._0xe63472,0x257,0x266)]?.[_0x1a6484(_0x3fedfd._0x75cd52,0x1e0,0xac,_0x3fedfd._0x7b8f01)],'proxy':_0x348b40[_0x42e308(0x32a,_0x3fedfd._0x25c5b7,_0x3fedfd._0x58b772,0x27a)]?.[_0x1a6484(0x2c0,_0x3fedfd._0x46c4f2,0x28d,0x2c5)],'telemetry':_0x348b40['endpoints']?.[_0x42e308(_0x3fedfd._0x148533,_0x3fedfd._0x768c95,_0x3fedfd._0x34f3f4,_0x3fedfd._0x4e1645)]}};}};function trimTrailingSlashes2(_0x46c5b4){const _0x320d98={_0x2ea82f:0x347,_0x26048f:0x2a7},_0x472a6a={_0x391c03:0x200,_0x5ae4bc:0x18c};function _0x14bcbc(_0x205475,_0x2b3fe8,_0x23412d,_0x4b71ac){return _0xd1496a(_0x23412d- -_0x472a6a._0x391c03,_0x2b3fe8-_0x472a6a._0x5ae4bc,_0x4b71ac,_0x4b71ac-0x1c0);}return _0x46c5b4[_0x14bcbc(_0x320d98._0x2ea82f,0x1f4,_0x320d98._0x26048f,0x1d5)](/\/+$/,'');}function createModelInfo(_0x759a54){const _0x48b4cd={_0x594a8c:0x3fe,_0x4d3570:0x3d4,_0x54640e:0x452,_0x3b28e0:0x47f,_0x3f9149:0xb1,_0x1dd6df:0xca,_0x365848:0x4,_0x3866f1:0x370,_0x1d0814:0x324,_0x5858b2:0x14,_0x49d00e:0xbd,_0x1bf873:0x34,_0x3cb425:0x1c,_0x19d8bf:0x87,_0x423d76:0xa},_0x1e06b5={_0x56e728:0x96,_0x5a29ea:0x187},_0x467549={_0x38b023:0x27},_0x35717d=_0x759a54['supported_endpoints']??_0x759a54[_0x5066f2(_0x48b4cd._0x594a8c,_0x48b4cd._0x4d3570,_0x48b4cd._0x54640e,_0x48b4cd._0x3b28e0)],_0x420a90=_0x759a54[_0x426ade(-_0x48b4cd._0x3f9149,-_0x48b4cd._0x1dd6df,-_0x48b4cd._0x365848,-0x15)]?.[_0x5066f2(0x3a2,0x3c7,_0x48b4cd._0x3866f1,0x3c9)]?.[_0x426ade(0xa1,-0x38,-0x44,-0x4)];function _0x426ade(_0x123dd0,_0x30ccbb,_0x26c730,_0x5cfe35){return _0xd1496a(_0x5cfe35- -0x493,_0x30ccbb-0xa2,_0x30ccbb,_0x5cfe35-_0x467549._0x38b023);}const _0x45a9d8=_0x759a54[_0x5066f2(0x3d9,_0x48b4cd._0x1d0814,0x379,0x3e8)]?.[_0x426ade(-_0x48b4cd._0x5858b2,-_0x48b4cd._0x49d00e,-0x76,-_0x48b4cd._0x1bf873)]?.[_0x426ade(0xb5,-_0x48b4cd._0x3cb425,-_0x48b4cd._0x19d8bf,_0x48b4cd._0x423d76)];function _0x5066f2(_0x414597,_0x4cc9ce,_0x3b120c,_0x369df4){return _0xd1496a(_0x369df4- -_0x1e06b5._0x56e728,_0x4cc9ce-_0x1e06b5._0x5a29ea,_0x414597,_0x369df4-0x24);}const _0x1d6258=_0x420a90!==void 0x0||_0x45a9d8!==void 0x0?{..._0x420a90!==void 0x0?{'contextWindow':_0x420a90}:{},..._0x45a9d8!==void 0x0?{'maxOutput':_0x45a9d8}:{}}:void 0x0;return{'id':_0x759a54['id'],'name':_0x759a54['name']??_0x759a54['id'],..._0x1d6258?{'limits':_0x1d6258}:{},..._0x35717d?{'supportedEndpoints':_0x35717d}:{}};}function deduplicateModels(_0xcb4166){const _0x41ce20={_0x28c956:0x51b,_0x2e002e:0x2fc,_0x467832:0x3cc},_0x906c1c={_0x2736cb:0xf0,_0x1e1e52:0x45},_0x30436c={_0x112912:0xf2};function _0x2a32f6(_0x127f66,_0x33ec46,_0x52b8b5,_0x48ab56){return _0x11bd88(_0x48ab56- -0x5f3,_0x127f66,_0x52b8b5-_0x30436c._0x112912,_0x48ab56-0x1c6);}function _0x1477c8(_0x5659a3,_0x1cf966,_0x6eb82d,_0x2f9579){return _0xd1496a(_0x5659a3- -_0x906c1c._0x2736cb,_0x1cf966-_0x906c1c._0x1e1e52,_0x1cf966,_0x2f9579-0xa7);}const _0x10e486=new Map();for(const _0x3b7b9c of _0xcb4166){!_0x10e486['has'](_0x3b7b9c['id'])&&_0x10e486['set'](_0x3b7b9c['id'],_0x3b7b9c);}return Array[_0x1477c8(0x46b,0x4ec,_0x41ce20._0x28c956,0x38b)](_0x10e486[_0x1477c8(0x384,0x336,_0x41ce20._0x2e002e,_0x41ce20._0x467832)]());}function hasUserPromptContent(_0x457947){const _0xfc49eb={_0xf508bf:0x4f9},_0xe474ea={_0xf7199b:0x412,_0xcdfdf9:0x324,_0xca7d7a:0x321,_0x597600:0x31c,_0x5a0162:0x3e5,_0x17a429:0x361,_0x2637c9:0x3b7,_0x5692d8:0x2b0,_0x451402:0x370,_0x5982da:0x15c,_0x492d1c:0x162,_0x3ebfc1:0x2b0,_0x4084c9:0x369,_0x4d8836:0x1d0,_0x10c46a:0x1eb};if(typeof _0x457947==='string')return _0x457947[_0x5bd0f1(0x5e3,0x5c1,0x56d,_0xfc49eb._0xf508bf)]()['length']>0x0;if(!Array['isArray'](_0x457947))return![];function _0x5bd0f1(_0x5eb122,_0x2085e8,_0x4e98c2,_0x5ddcec){return _0x11bd88(_0x5ddcec-0xcb,_0x5eb122,_0x4e98c2-0x1ef,_0x5ddcec-0x13c);}return _0x457947['some'](_0x53efe8=>{const _0x28e14a={_0x11efbe:0x1d8,_0x412b2d:0xe,_0x442591:0x27f},_0xf7ef4a={_0x511ed1:0xf8,_0x2fe48e:0x37b};function _0x3cb478(_0x4d4229,_0x45d3c9,_0x3cb2d7,_0x57feba){return _0x5bd0f1(_0x57feba,_0x45d3c9-0x1da,_0x3cb2d7-_0xf7ef4a._0x511ed1,_0x3cb2d7- -_0xf7ef4a._0x2fe48e);}if(!_0x53efe8||typeof _0x53efe8!==_0xbd971b(0x42e,0x343,_0xe474ea._0xf7199b,0x423))return![];const _0x1f3eff=_0x53efe8;function _0xbd971b(_0x7270ec,_0x381f63,_0x5a02b3,_0x1fd316){return _0x5bd0f1(_0x7270ec,_0x381f63-_0x28e14a._0x11efbe,_0x5a02b3-_0x28e14a._0x412b2d,_0x381f63- -_0x28e14a._0x442591);}return(_0x1f3eff[_0xbd971b(0x328,_0xe474ea._0xcdfdf9,_0xe474ea._0xca7d7a,_0xe474ea._0x597600)]===_0xbd971b(_0xe474ea._0x5a0162,_0xe474ea._0x17a429,_0xe474ea._0x2637c9,0x389)||_0x1f3eff['type']==='text')&&typeof _0x1f3eff[_0xbd971b(0x2f9,_0xe474ea._0x5692d8,_0xe474ea._0x451402,0x25d)]===_0x3cb478(_0xe474ea._0x5982da,0x14e,_0xe474ea._0x492d1c,0x1ea)&&_0x1f3eff[_0xbd971b(0x336,_0xe474ea._0x3ebfc1,_0xe474ea._0x4084c9,_0xe474ea._0x4d8836)]['trim']()[_0xbd971b(0x1d5,0x27b,_0xe474ea._0x10c46a,0x25d)]>0x0;});}function _isUserPromptEntry(_0xb32ac){const _0xe256a6={_0xe52abd:0x51a,_0x1d71e8:0x5b7,_0x458cfb:0x458,_0xb993c5:0x44b,_0x3a3ef6:0x4bd,_0x4bbe2e:0x436,_0x2be57e:0x4fb,_0x47e14e:0x4ee,_0x4f0e80:0x4ed},_0xc6827b={_0x5c8196:0xc5};if(!_0xb32ac||typeof _0xb32ac!==_0x45b32d(_0xe256a6._0xe52abd,_0xe256a6._0x1d71e8,0x513,_0xe256a6._0x458cfb))return![];const _0x4568c0=_0xb32ac;function _0x3a8dbe(_0xf063ff,_0xc5896c,_0x521a4b,_0x166730){return _0x11bd88(_0x166730- -_0xc6827b._0x5c8196,_0x521a4b,_0x521a4b-0xe7,_0x166730-0x1a6);}if(_0x4568c0[_0x3a8dbe(0x3e2,0x53e,0x3d0,0x48f)]!==_0x3a8dbe(0x3b5,0x423,0x49d,_0xe256a6._0xb993c5))return![];if(_0x4568c0[_0x3a8dbe(_0xe256a6._0x3a3ef6,_0xe256a6._0x4bbe2e,0x329,0x413)]!==void 0x0&&_0x4568c0[_0x45b32d(_0xe256a6._0x2be57e,_0xe256a6._0x47e14e,_0xe256a6._0x4f0e80,0x43e)]!=='message')return![];function _0x45b32d(_0x3e74a9,_0x77fa70,_0x561bc8,_0x4a90e6){return _0xd1496a(_0x3e74a9- -0x52,_0x77fa70-0xfb,_0x77fa70,_0x4a90e6-0x3a);}return hasUserPromptContent(_0x4568c0['content']);}function determineInitiator(_0x57116c){const _0x2443e3={_0x30e7d3:0x36a,_0x2fe71f:0x353,_0x1f448c:0x40b,_0x368f91:0x144,_0x99be68:0x1f7,_0x3760b7:0x1d1,_0x6aaa78:0x42d,_0x1413a7:0x3c4,_0x455816:0x44d,_0xd6afda:0x2fa,_0x42d85c:0x452,_0x51662a:0x3f9,_0x260629:0x208,_0x5ea701:0x262,_0x4e4ce1:0x1b8,_0x4f5e3d:0x145,_0x238b5f:0x73,_0x490912:0x16f,_0x222efe:0x193,_0x5f3a0b:0x8c,_0x9568cf:0x29c,_0x31435a:0x26f,_0x252b2b:0x19b},_0x5a40d2={_0xafd4d0:0x1b3};if(!_0x57116c||typeof _0x57116c!==_0x3b702c(0x42d,_0x2443e3._0x30e7d3,_0x2443e3._0x2fe71f,_0x2443e3._0x1f448c))return _0x2d41e3(0x121,_0x2443e3._0x368f91,_0x2443e3._0x99be68,0x118);const _0xee519a='messages'in _0x57116c?_0x57116c[_0x2d41e3(0x120,0x8b,_0x2443e3._0x3760b7,0x10c)]:_0x3b702c(_0x2443e3._0x6aaa78,_0x2443e3._0x1413a7,0x416,_0x2443e3._0x455816)in _0x57116c?_0x57116c[_0x3b702c(0x320,0x3c4,0x371,_0x2443e3._0xd6afda)]:void 0x0;function _0x2d41e3(_0x3d80ee,_0x49cdd3,_0x59e43e,_0x2cfa25){return _0x11bd88(_0x3d80ee- -0x2c0,_0x59e43e,_0x59e43e-0x71,_0x2cfa25-0x15a);}function _0x3b702c(_0x2adff0,_0x279d71,_0x339722,_0x5e9c35){return _0xd1496a(_0x279d71- -0x202,_0x279d71-_0x5a40d2._0xafd4d0,_0x5e9c35,_0x5e9c35-0xfb);}if(!Array[_0x3b702c(_0x2443e3._0x42d85c,_0x2443e3._0x51662a,0x311,0x380)](_0xee519a)||_0xee519a[_0x3b702c(_0x2443e3._0x260629,0x2a2,_0x2443e3._0x5ea701,_0x2443e3._0x4e4ce1)]===0x0)return _0x2d41e3(0x121,_0x2443e3._0x4f5e3d,0x1a0,_0x2443e3._0x238b5f);return _isUserPromptEntry(_0xee519a[_0xee519a[_0x2d41e3(_0x2443e3._0x490912,_0x2443e3._0x222efe,_0x2443e3._0x5f3a0b,_0x2443e3._0x368f91)]-0x1])?_0x2d41e3(0x250,_0x2443e3._0x9568cf,_0x2443e3._0x31435a,0x1ad):_0x3b702c(0x297,0x254,0x202,_0x2443e3._0x252b2b);}function isUnsupportedApiForModel(_0x52339e){const _0x23bfe7={_0x1eea2c:0x6c,_0x22a61e:0x6b,_0x58af73:0xb3,_0x4a7b4c:0x466,_0x29437e:0x4f6},_0x3c1f59={_0x186570:0xe9},_0x364feb={_0xdeecfb:0x2a};function _0x354753(_0xd1030c,_0x363f8b,_0x172fe8,_0x3aff47){return _0xd1496a(_0x3aff47- -_0x364feb._0xdeecfb,_0x363f8b-0x1c9,_0x172fe8,_0x3aff47-0x15c);}function _0x3beb7c(_0x48f74f,_0x2a047a,_0x1b783a,_0x215ea0){return _0x11bd88(_0x2a047a- -0x421,_0x1b783a,_0x1b783a-0x71,_0x215ea0-_0x3c1f59._0x186570);}return _0x52339e[_0x3beb7c(-_0x23bfe7._0x1eea2c,_0x23bfe7._0x22a61e,_0x23bfe7._0x58af73,-0x67)](_0x354753(0x53f,_0x23bfe7._0x4a7b4c,0x55d,_0x23bfe7._0x29437e));}function _0xd1496a(_0xb9fa44,_0xc5246e,_0x3b0360,_0x43f590){const _0x265517={_0x4bbdd9:0x320};return _0x4abb(_0xb9fa44-_0x265517._0x4bbdd9,_0x3b0360);}function createResponseError(_0x112d88,_0x5f53b6){const _0x1ea238={_0xaf4422:0x372,_0x4e931b:0x2dc,_0x31c8b4:0x452,_0x325a5b:0x4be,_0x248ac9:0x2c6},_0x115737={_0x13bfdf:0x16e,_0x275856:0x16d},_0x1bc133={_0x16fdc0:0x160};if(_0x112d88===0x191||_0x112d88===0x193)return new Error(_0x45a94d(0x2b2,0x420,_0x1ea238._0xaf4422,_0x1ea238._0x4e931b));if(_0x112d88===0x198||_0x112d88===0x1ad)return new Error('Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.');if(_0x112d88===0x190)return new Error(_0x14d2ea(0x427,0x446,_0x1ea238._0x31c8b4,_0x1ea238._0x325a5b)+_0x5f53b6);function _0x14d2ea(_0x38e269,_0x331db3,_0x549b8b,_0x3d2f91){return _0x11bd88(_0x549b8b- -0x13,_0x38e269,_0x549b8b-0x6d,_0x3d2f91-_0x1bc133._0x16fdc0);}function _0x45a94d(_0x8b0cf6,_0xcaeb66,_0x86cdd3,_0x547103){return _0xd1496a(_0x86cdd3- -_0x115737._0x13bfdf,_0xcaeb66-_0x115737._0x275856,_0x547103,_0x547103-0x91);}return new Error(_0x5f53b6||_0x45a94d(0x3ca,0x34f,0x3a2,_0x1ea238._0x248ac9)+_0x112d88);}var GitHubModel=class extends OpenAiModel{[_0x11bd88(0x53c,0x4e9,0x524,0x613)];['modelEndpointCache']=new Map();[_0xd1496a(0x479,0x511,0x526,0x4f9)];constructor(_0x4494d7={}){const _0x41e4ec={_0x2b5b87:0x2b8,_0x3edb95:0x251,_0x20fcb2:0x313,_0x3cb182:0x3cb,_0x1414e4:0x382,_0x241e39:0x356,_0x36a005:0x3f8,_0x5a3d41:0x368,_0x3b57fa:0x4b,_0x56eb77:0x3,_0x519d5a:0x1c,_0x304d99:0x61,_0x5d3b34:0x357,_0xa72f56:0x192,_0x38c223:0x187,_0x5c3b40:0x28e,_0x4cf9c9:0x213,_0x2a159c:0x45,_0x20bf63:0xa8,_0xea3081:0x30,_0x8188e8:0xe3,_0x2be749:0x6c,_0x1742c7:0x6d,_0x744c96:0xd,_0x3dba12:0x154,_0x46b7cf:0x1da,_0x252cc3:0x253,_0x18a749:0x335,_0x308511:0x331,_0x160886:0x279,_0xba47d:0x208,_0x582d03:0x26f,_0xa49686:0x3be,_0x35395a:0x2ab,_0x229762:0x3cd,_0xb50ef5:0x379,_0x5d8b80:0x1fb,_0x3b3cb4:0x7e,_0x2a8be0:0x261,_0x4d73c5:0x2f8,_0xd1e759:0x264,_0x635492:0x1a7},_0x3956ba={_0x5e1e6b:0x589,_0x4cad83:0x60,_0x57b60a:0x92},_0x4734bf={_0x18294f:0x1c0,_0x2104f2:0x1ca,_0x2b7ec1:0x19e},_0x394f45=trimTrailingSlashes2(_0x4494d7[_0x541bad(0x347,0x1f6,0x1e1,_0x41e4ec._0x2b5b87)]??_0x541bad(0x2ec,0x26e,_0x41e4ec._0x3edb95,0x273)),_0x40ad62=_0x4494d7[_0x541bad(_0x41e4ec._0x20fcb2,_0x41e4ec._0x3cb182,_0x41e4ec._0x1414e4,_0x41e4ec._0x241e39)]??globalThis[_0x541bad(0x34b,_0x41e4ec._0x36a005,_0x41e4ec._0x5a3d41,0x356)],_0x55093f=_0x4494d7[_0x584323(-0xd,-_0x41e4ec._0x3b57fa,-0x47,_0x41e4ec._0x56eb77)]??(_0x4494d7[_0x584323(-0x102,-0xca,_0x41e4ec._0x519d5a,-_0x41e4ec._0x304d99)]?new GitHubAccessTokenResolver({'accessToken':_0x4494d7[_0x541bad(0x441,0x387,_0x41e4ec._0x5d3b34,0x368)],'baseUrl':_0x394f45,'fetch':_0x40ad62,'githubApiUrl':_0x4494d7[_0x541bad(_0x41e4ec._0xa72f56,_0x41e4ec._0x38c223,_0x41e4ec._0x5c3b40,0x265)]??'https://api.github.com','tokenExchangeApiVersion':_0x4494d7[_0x541bad(0x1c2,0x1af,0x22d,_0x41e4ec._0x4cf9c9)]??_0x584323(-0x83,-0x17c,-_0x41e4ec._0x2a159c,-_0x41e4ec._0x20bf63)}):void 0x0);function _0x541bad(_0x216ae1,_0x4d7014,_0xd4f1bc,_0x2633e1){return _0x11bd88(_0x2633e1- -_0x4734bf._0x18294f,_0x216ae1,_0xd4f1bc-_0x4734bf._0x2104f2,_0x2633e1-_0x4734bf._0x2b7ec1);}const _0x5472e0=_0x4494d7['editorVersion']??_0x584323(-0x1ae,-_0x41e4ec._0xea3081,-0x4f,-_0x41e4ec._0x8188e8);function _0x584323(_0x3c5264,_0x1bf620,_0x4b64a0,_0x39eba9){return _0x11bd88(_0x39eba9- -_0x3956ba._0x5e1e6b,_0x3c5264,_0x4b64a0-_0x3956ba._0x4cad83,_0x39eba9-_0x3956ba._0x57b60a);}const _0x154604=_0x4494d7[_0x584323(-_0x41e4ec._0x2be749,0x32,_0x41e4ec._0x1742c7,-_0x41e4ec._0x744c96)]??'copilot-chat/0.31.3',_0x3fce34=({body:_0x3b0166})=>{return{'editor-plugin-version':_0x154604,'editor-version':_0x5472e0,'x-initiator':determineInitiator(_0x3b0166),'x-request-id':randomUUID()};},_0x2cf967={'apiKey':_0x4494d7['apiKey'],'baseUrl':_0x394f45,'fetch':_0x40ad62,'maxTokens':_0x4494d7['maxTokens'],'model':_0x4494d7[_0x584323(-0xb4,-_0x41e4ec._0x3dba12,-0x1a0,-0x120)],'reasoning':_0x4494d7[_0x584323(-_0x41e4ec._0x46b7cf,-0x24a,-0x21b,-0x1a7)],'providerSessionResolver':_0x55093f,'requestMutators':_0x4494d7[_0x541bad(_0x41e4ec._0x252cc3,_0x41e4ec._0x18a749,_0x41e4ec._0x308511,_0x41e4ec._0x160886)],'headerResolver':_0x3fce34};super(_0x2cf967),this['surface']=_0x4494d7[_0x541bad(0x2b4,_0x41e4ec._0xba47d,_0x41e4ec._0x582d03,0x244)]??'auto',this[_0x541bad(_0x41e4ec._0xa49686,0x2fe,_0x41e4ec._0x35395a,0x37c)]=new AnthropicModel({'apiKey':_0x4494d7[_0x541bad(_0x41e4ec._0x229762,0x2b8,0x2ce,_0x41e4ec._0xb50ef5)],'authScheme':'bearer','baseUrl':_0x394f45,'fetch':_0x40ad62,'headerResolver':_0x3fce34,'maxTokens':_0x4494d7[_0x584323(-_0x41e4ec._0x5d8b80,-_0x41e4ec._0x3b3cb4,-0x4c,-0x11d)],'model':_0x4494d7[_0x541bad(_0x41e4ec._0x2a8be0,0x337,_0x41e4ec._0x4d73c5,0x2a9)],'reasoning':_0x4494d7[_0x584323(-0x173,-_0x41e4ec._0xd1e759,-0x260,-_0x41e4ec._0x635492)],'providerSessionResolver':_0x55093f,'requestMutators':_0x4494d7[_0x584323(-0x1bb,-0x139,-0x23b,-0x150)]});}['createMissingCredentialError'](){const _0x2c1ff7={_0xe47828:0x15b,_0x42698b:0xb},_0x5aef16={_0x2599a8:0x520,_0x3444da:0x1c9};function _0x32210b(_0x49a2e6,_0x3aece1,_0x32b8bc,_0x5df662){return _0xd1496a(_0x32b8bc- -_0x5aef16._0x2599a8,_0x3aece1-_0x5aef16._0x3444da,_0x49a2e6,_0x5df662-0x14a);}return new Error(_0x32210b(-0x80,-_0x2c1ff7._0xe47828,-0x81,_0x2c1ff7._0x42698b));}[_0x11bd88(0x4f6,0x5ae,0x44a,0x4a9)](_0x10bf23){const _0x3a68c2={_0xd21a31:0x430,_0x1e17eb:0x42e,_0x37d15f:0x3c5,_0x11e1e0:0x39b,_0x40297f:0x30b,_0x3b0139:0x1d3,_0xdb4e1e:0xf7,_0x320d1b:0x74,_0x2bb08c:0x10b,_0x1bedd7:0x88},_0x7a3f50={_0x4fb8d9:0x152},_0x35df00={_0x3ef7d3:0x19c,_0x49a444:0xdb};function _0x3ebd15(_0x5c4128,_0x1bcf95,_0x312421,_0x4d6acb){return _0xd1496a(_0x4d6acb- -_0x35df00._0x3ef7d3,_0x1bcf95-_0x35df00._0x49a444,_0x5c4128,_0x4d6acb-0xa6);}const _0x52b4a1=this['modelEndpointCache'][_0x363f2b(-0xe0,-0x16d,-0x1f7,-0x159)](_0x10bf23);if(!_0x52b4a1)return![];function _0x363f2b(_0x512117,_0x767957,_0xd272c5,_0x637a32){return _0x11bd88(_0x767957- -0x583,_0x512117,_0xd272c5-0x113,_0x637a32-_0x7a3f50._0x4fb8d9);}return!_0x52b4a1[_0x3ebd15(_0x3a68c2._0xd21a31,_0x3a68c2._0x1e17eb,_0x3a68c2._0x37d15f,0x365)](_0x3ebd15(0x3c5,_0x3a68c2._0x11e1e0,_0x3a68c2._0x40297f,0x3ce))&&_0x52b4a1[_0x363f2b(-_0x3a68c2._0x3b0139,-_0x3a68c2._0xdb4e1e,-_0x3a68c2._0x320d1b,-_0x3a68c2._0x2bb08c)](_0x363f2b(-0x51,-_0x3a68c2._0x1bedd7,-0xa2,-0x11e));}[_0xd1496a(0x441,0x42b,0x4dc,0x400)](_0x22ba82){const _0x1b8a98={_0x1575eb:0x161,_0x4de19f:0x69,_0x3054ae:0x315,_0x1ad187:0x322,_0x5d5708:0x265,_0x2ace39:0x32c,_0x55160c:0x2b8,_0x493560:0x223,_0x145e88:0x1df,_0x4420c5:0x183,_0x5f144d:0xae,_0x464ae3:0x1d4,_0x42a479:0x114,_0x26cb30:0x1fb,_0xc25bb8:0x39a,_0x56fdb0:0x35a,_0x3182af:0x345,_0x49d92d:0x2a9,_0x1269cc:0x1a6},_0x503922={_0x51736d:0x226,_0x1ba35f:0x69},_0xcea42e=this[_0x185e73(-0x4a,-_0x1b8a98._0x1575eb,-0xa2,-_0x1b8a98._0x4de19f)][_0x3ab461(_0x1b8a98._0x3054ae,_0x1b8a98._0x1ad187,_0x1b8a98._0x5d5708,0x26f)](_0x22ba82[_0x3ab461(_0x1b8a98._0x2ace39,0x35f,_0x1b8a98._0x55160c,_0x1b8a98._0x493560)]);if(!_0xcea42e)return![];function _0x3ab461(_0x3807fb,_0x116f9b,_0x41829e,_0x3708e9){return _0xd1496a(_0x41829e- -_0x503922._0x51736d,_0x116f9b-_0x503922._0x1ba35f,_0x3807fb,_0x3708e9-0xe2);}if(resolveOpenAiReasoningConfig(_0x22ba82['reasoning']))return _0xcea42e[_0x185e73(-_0x1b8a98._0x145e88,-0x1a9,-_0x1b8a98._0x4420c5,-_0x1b8a98._0x5f144d)](_0x185e73(-_0x1b8a98._0x464ae3,-0x56,-_0x1b8a98._0x42a479,-_0x1b8a98._0x26cb30));function _0x185e73(_0x58cbcb,_0x137f9f,_0x3bb113,_0x4a0e82){return _0x11bd88(_0x3bb113- -0x60f,_0x58cbcb,_0x3bb113-0x1d,_0x4a0e82-0x100);}return this[_0x3ab461(_0x1b8a98._0xc25bb8,_0x1b8a98._0x56fdb0,_0x1b8a98._0x3182af,_0x1b8a98._0x49d92d)](_0x22ba82[_0x185e73(-0x252,-0x221,-_0x1b8a98._0x1269cc,-0xfb)]);}[_0x11bd88(0x4c8,0x502,0x556,0x466)](_0x2e05e2){const _0x1a27c8={_0x3e854b:0xec,_0x3b3bc4:0x1b1,_0x2ee1c5:0x174,_0x5ae246:0x371,_0x574610:0x15e},_0x123f76={_0x49da4c:0x1e};function _0x113fe5(_0xa8b0ec,_0x51f3e6,_0xffb025,_0x515c5e){return _0x11bd88(_0xa8b0ec- -0x659,_0xffb025,_0xffb025-0x97,_0x515c5e-_0x123f76._0x49da4c);}function _0x4529ca(_0xea3133,_0x411c2e,_0x2f79db,_0x5dda09){return _0x11bd88(_0x5dda09- -0x124,_0x411c2e,_0x2f79db-0x6,_0x5dda09-0x107);}this[_0x113fe5(-_0x1a27c8._0x3e854b,-_0x1a27c8._0x3b3bc4,-0x109,-_0x1a27c8._0x2ee1c5)][_0x4529ca(0x3e8,_0x1a27c8._0x5ae246,0x36c,0x413)](_0x2e05e2,[_0x113fe5(-_0x1a27c8._0x574610,-0x11f,-0xdf,-0x211)]);}['mapApiError'](_0x243b11){const _0x1e4327={_0x475f50:0x399,_0x2cec6e:0x424,_0x33778b:0x419,_0x3de302:0x3c3},_0xb3a155={_0x25ed0f:0x39a,_0x282bf6:0x187},_0x140bf5={_0x3be563:0x176,_0x1b5b4f:0x60};if(_0x243b11 instanceof OpenAiApiError)return createResponseError(_0x243b11[_0x118164(0x3b6,0x34d,0x425,_0x1e4327._0x475f50)],_0x243b11['body']||_0x243b11[_0x118164(0x4c0,_0x1e4327._0x2cec6e,_0x1e4327._0x33778b,_0x1e4327._0x3de302)]);function _0x118164(_0x593537,_0x45eab9,_0x4a8dc8,_0x24f758){return _0xd1496a(_0x45eab9- -_0x140bf5._0x3be563,_0x45eab9-_0x140bf5._0x1b5b4f,_0x24f758,_0x24f758-0x19f);}function _0x5592d7(_0x7800a7,_0x5a413b,_0x283ca3,_0x15f3a4){return _0xd1496a(_0x7800a7- -_0xb3a155._0x25ed0f,_0x5a413b-0x152,_0x5a413b,_0x15f3a4-_0xb3a155._0x282bf6);}return _0x243b11;}[_0x11bd88(0x4df,0x457,0x44e,0x59f)](_0x56e485,_0x11032e){const _0x2160d3={_0x4cea7c:0x489,_0x3b5f1d:0x40b,_0x27c02a:0x458,_0x5c9b07:0x490,_0xf28f24:0x50c,_0x3f2ace:0x434,_0x156ec4:0x572,_0x5b248a:0x5f5,_0x453ca9:0x16,_0x579a3f:0xec,_0x3bc7a4:0x96,_0x15e44c:0x548,_0x36ef45:0xa8,_0x29f206:0x20,_0x51e761:0x479,_0x1b6f55:0x453,_0x28d50f:0x5d6,_0x423c4f:0x48f,_0x1ac950:0x61d,_0x28c5b2:0x556,_0x4ed54e:0x4e0,_0x3a858d:0x51c,_0x4fdfe5:0x5c6},_0x886753={_0x16e6d6:0x569,_0x364c22:0x119},_0x60b303={_0x37b3b4:0x10,_0x56e9c4:0xb5,_0x599123:0x25};switch(this[_0x528caa(_0x2160d3._0x4cea7c,0x47b,_0x2160d3._0x3b5f1d,_0x2160d3._0x27c02a)]){case _0x528caa(_0x2160d3._0x5c9b07,_0x2160d3._0xf28f24,_0x2160d3._0x4cea7c,_0x2160d3._0x3f2ace):return this[_0x528caa(0x5c1,0x512,_0x2160d3._0x156ec4,_0x2160d3._0x5b248a)][_0x831930(0x172,-_0x2160d3._0x453ca9,_0x2160d3._0x579a3f,_0x2160d3._0x3bc7a4)](_0x56e485,_0x11032e);case _0x528caa(_0x2160d3._0x15e44c,0x5ca,0x48b,0x597):return this[_0x831930(-0xc7,-_0x2160d3._0x36ef45,-0x46,-_0x2160d3._0x29f206)](_0x56e485,_0x11032e);case'openai-responses':return this[_0x528caa(0x4ff,0x49a,_0x2160d3._0x51e761,_0x2160d3._0x1b6f55)](_0x56e485,_0x11032e);case _0x528caa(0x555,0x58d,_0x2160d3._0x28d50f,0x621):return this[_0x528caa(_0x2160d3._0x423c4f,0x4e7,0x464,0x4d8)](_0x56e485,_0x11032e);case _0x528caa(_0x2160d3._0x1ac950,0x668,0x62c,0x561):return this['complete'](_0x56e485,_0x11032e);}function _0x528caa(_0x2e997c,_0x5378f8,_0x4ce063,_0x5914dd){return _0xd1496a(_0x2e997c-_0x60b303._0x37b3b4,_0x5378f8-_0x60b303._0x56e9c4,_0x5914dd,_0x5914dd-_0x60b303._0x599123);}function _0x831930(_0x171b9e,_0x33de06,_0x3261d7,_0x12919f){return _0xd1496a(_0x12919f- -_0x886753._0x16e6d6,_0x33de06-_0x886753._0x364c22,_0x3261d7,_0x12919f-0xa0);}throw new Error(_0x528caa(_0x2160d3._0x28c5b2,_0x2160d3._0x4ed54e,_0x2160d3._0x3a858d,_0x2160d3._0x4fdfe5)+String(this[_0x528caa(0x489,0x3eb,0x44d,0x4d6)]));}[_0x11bd88(0x4c9,0x478,0x43b,0x50d)](_0x16f77e,_0x50d66a){const _0x377288={_0xedcbef:0x14a,_0x4da8bd:0x1dc,_0x56d761:0x143,_0x2d7ce9:0x11c,_0x111e02:0x1ac,_0x257887:0x176,_0x1930f7:0x5b,_0x55f629:0x15b,_0x344060:0x94,_0x658e24:0x8b,_0x4c3934:0x5d,_0x2ab62d:0x14f,_0x4ea2fd:0x69,_0x328ab4:0xa4,_0x4922b7:0x158,_0x56a296:0xb5,_0x2f132a:0x124,_0x3fdb37:0x83,_0x25b9ec:0x18},_0x27cdff={_0x3168ee:0x32},_0x45c1bd={_0x3c4a6b:0x5c3,_0x1e17d8:0x9c};function _0x6e7827(_0x10b609,_0x3485fe,_0x459347,_0x55369a){return _0xd1496a(_0x10b609- -_0x45c1bd._0x3c4a6b,_0x3485fe-_0x45c1bd._0x1e17d8,_0x55369a,_0x55369a-0x119);}function _0x44a728(_0x395202,_0xaea010,_0x4e8429,_0x553059){return _0x11bd88(_0xaea010- -0x618,_0x553059,_0x4e8429-0x110,_0x553059-_0x27cdff._0x3168ee);}switch(this[_0x6e7827(-_0x377288._0xedcbef,-0xd5,-_0x377288._0x4da8bd,-0x177)]){case _0x6e7827(-_0x377288._0x56d761,-_0x377288._0x2d7ce9,-_0x377288._0x111e02,-_0x377288._0x257887):return this[_0x44a728(-_0x377288._0x1930f7,-0xdc,-0x163,-_0x377288._0x55f629)][_0x44a728(-0xdb,-0xa1,-0xd0,-_0x377288._0x344060)](_0x16f77e,_0x50d66a);case _0x6e7827(-_0x377288._0x658e24,-0x5a,-_0x377288._0x4c3934,-0xac):return this[_0x6e7827(-0x15b,-0x14e,-0x1ec,-0xe9)](_0x16f77e,_0x50d66a);case'openai-responses':return this['responseStream'](_0x16f77e,_0x50d66a);case _0x44a728(-_0x377288._0x2ab62d,-0x148,-_0x377288._0x4ea2fd,-0x102):return this[_0x44a728(-_0x377288._0x328ab4,-_0x377288._0x4922b7,-_0x377288._0x56a296,-_0x377288._0x2f132a)](_0x16f77e,_0x50d66a);case'auto':return this[_0x6e7827(0x29,0xef,0x65,0xfb)](_0x16f77e,_0x50d66a);}throw new Error(_0x6e7827(-0x7d,-_0x377288._0x3fdb37,-0x90,-_0x377288._0x25b9ec)+String(this['surface']));}async['complete'](_0x36364a,_0x4fceb9){const _0x45dcd9={_0x3e38e6:0x12d,_0x43f429:0xc9,_0xb13e38:0xec,_0x29a267:0x6a,_0x17f388:0x42b,_0x138c26:0x4ce,_0x2bfa81:0x476,_0x21d9a3:0x5af,_0x28aa81:0x507,_0x90d28a:0x436,_0x59382b:0x5c8,_0x3714da:0x478,_0x452459:0x3d,_0x3dc874:0xac},_0x4f74c9={_0x357374:0xc},_0x543396={_0x124c04:0x2e,_0x2a3860:0x4a,_0x526735:0x184};function _0xf344eb(_0x11c7ed,_0x96e567,_0x9a062b,_0x1f2c06){return _0x11bd88(_0x9a062b-_0x543396._0x124c04,_0x11c7ed,_0x9a062b-_0x543396._0x2a3860,_0x1f2c06-_0x543396._0x526735);}const _0x4d87ea=this[_0x2371ea(0x92,0x12c,0x20e,_0x45dcd9._0x3e38e6)](_0x36364a);function _0x2371ea(_0x2ef34c,_0x90f1d,_0x5d8a45,_0x48e742){return _0xd1496a(_0x48e742- -0x4b2,_0x90f1d-0x1a1,_0x90f1d,_0x48e742-_0x4f74c9._0x357374);}if(this[_0x2371ea(-_0x45dcd9._0x43f429,-_0x45dcd9._0xb13e38,-_0x45dcd9._0x29a267,-0x39)]!=='auto')return this[_0xf344eb(0x49e,_0x45dcd9._0x17f388,0x50d,0x4ac)](_0x4d87ea,_0x4fceb9);if(this['shouldPreferResponsesApi'](_0x4d87ea))return this[_0xf344eb(_0x45dcd9._0x138c26,0x467,0x4a8,0x4d4)](_0x4d87ea,_0x4fceb9);try{return await this[_0xf344eb(_0x45dcd9._0x2bfa81,_0x45dcd9._0x21d9a3,_0x45dcd9._0x28aa81,_0x45dcd9._0x90d28a)](_0x4d87ea,_0x4fceb9);}catch(_0x1b9358){if(_0x1b9358 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x1b9358[_0x2371ea(0x121,0xec,-0x88,0x5f)]))return this[_0xf344eb(_0x45dcd9._0x59382b,0x5a8,0x4f6,_0x45dcd9._0x3714da)](_0x4d87ea[_0x2371ea(-_0x45dcd9._0x452459,-0x2,0x7e,0x2c)]),this[_0xf344eb(0x4aa,0x4a9,0x4a8,0x4ed)](_0x4d87ea,_0x4fceb9);throw this[_0x2371ea(_0x45dcd9._0x3dc874,0x2,0x7b,0xc4)](_0x1b9358);}throw _0x1b9358;}}async*[_0xd1496a(0x5ec,0x5e4,0x513,0x5b3)](_0x376e6b,_0x22da7d){const _0x55d63d={_0xac65a3:0x4,_0x332ed2:0x2c,_0x615b35:0x679,_0x51ab9b:0x706,_0x19dec7:0x679,_0x13d78c:0x166,_0x1711da:0x63e,_0x5a3e81:0x91,_0x1d664b:0x7c,_0x52feff:0x4,_0x102dbd:0x1,_0x3429a9:0x90,_0x3de044:0x3f,_0x448e93:0x2f,_0x36a112:0x607,_0x3eb2e5:0x64b,_0x131093:0x61c,_0x3a11f2:0x13,_0x227991:0x9f,_0x4e6331:0x78,_0x2daf18:0x69},_0x3ceff5={_0x336eb9:0x8b},_0x3a066f={_0x4ec83e:0x50d,_0x3518f8:0x17b};function _0x3c2112(_0x91ab9f,_0xc0ea55,_0x25146b,_0x4be261){return _0xd1496a(_0x4be261- -_0x3a066f._0x4ec83e,_0xc0ea55-0x91,_0x25146b,_0x4be261-_0x3a066f._0x3518f8);}const _0x5daf39=this[_0x3c2112(-_0x55d63d._0xac65a3,0x56,0xeb,0xd2)](_0x376e6b);function _0xbc9b4c(_0x1653b1,_0x14e110,_0x187dcc,_0x451b53){return _0xd1496a(_0x1653b1-0x6c,_0x14e110-0xeb,_0x451b53,_0x451b53-_0x3ceff5._0x336eb9);}if(this[_0x3c2112(-_0x55d63d._0x332ed2,-0x15a,0x1f,-0x94)]!==_0xbc9b4c(_0x55d63d._0x615b35,0x627,_0x55d63d._0x51ab9b,_0x55d63d._0x19dec7)){yield*this[_0x3c2112(0xb8,-0x9b,0x8e,0x31)](_0x5daf39,_0x22da7d);return;}if(this['shouldPreferResponsesApi'](_0x5daf39)){yield*this[_0x3c2112(_0x55d63d._0x13d78c,0x91,0x65,0x8e)](_0x5daf39,_0x22da7d);return;}try{yield*this[_0xbc9b4c(0x558,0x56f,_0x55d63d._0x1711da,0x4c8)](_0x5daf39,_0x22da7d);}catch(_0x44d0d6){if(_0x44d0d6 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x44d0d6[_0x3c2112(-_0x55d63d._0x5a3e81,_0x55d63d._0x1d664b,-0x71,_0x55d63d._0x52feff)])){this[_0x3c2112(0xeb,_0x55d63d._0x102dbd,_0x55d63d._0x3429a9,0x30)](_0x5daf39[_0x3c2112(0x4b,_0x55d63d._0x3de044,0x4e,-_0x55d63d._0x448e93)]),yield*this[_0xbc9b4c(_0x55d63d._0x36a112,_0x55d63d._0x3eb2e5,0x5f8,_0x55d63d._0x131093)](_0x5daf39,_0x22da7d);return;}throw this[_0x3c2112(-_0x55d63d._0x3a11f2,_0x55d63d._0x227991,_0x55d63d._0x4e6331,_0x55d63d._0x2daf18)](_0x44d0d6);}throw _0x44d0d6;}}async[_0x11bd88(0x3ca,0x356,0x2e2,0x48e)](_0xc74c3d){const _0x50c393={_0x51389b:0x70,_0x3e391f:0x6e,_0x2ddf40:0x18,_0xadd469:0xbe,_0x3cf8b3:0x1a1,_0x378e21:0x12f,_0x3cc424:0x56,_0x1fe131:0xdd,_0x11c68b:0x31,_0x51d6a1:0xb,_0x526a9a:0x150,_0x45bef5:0xd4,_0x4aa326:0xae},_0x46ab1e={_0x4b05ea:0x170,_0x46cc45:0xe3,_0x154584:0xee,_0x2fd4d1:0xe1,_0x1c62d1:0x1a7,_0x1be3ec:0x6b,_0x5e1124:0x1ba},_0x14b9a4={_0x133ccd:0x137,_0x34b039:0x124},_0x4e258a={_0x35d1e4:0x487,_0x205b2e:0xfb,_0x3d779a:0x98},_0x3c8ff9={_0x4e08b7:0x557,_0x4e3046:0xd8,_0x278e3a:0x1b6},_0x178fb3=await this[_0x585367(0x53,-0x7d,0x50,-_0x50c393._0x51389b)]({'path':_0x585367(_0x50c393._0x3e391f,-_0x50c393._0x2ddf40,_0x50c393._0xadd469,0x7f),'method':_0x585367(0x15d,_0x50c393._0x3cf8b3,0x23,0xcc),'signal':_0xc74c3d});function _0x6f6393(_0x1968a7,_0x4a5a7a,_0x41c6f3,_0x20cc1e){return _0x11bd88(_0x20cc1e- -_0x3c8ff9._0x4e08b7,_0x1968a7,_0x41c6f3-_0x3c8ff9._0x4e3046,_0x20cc1e-_0x3c8ff9._0x278e3a);}if(!_0x178fb3['ok'])throw this[_0x6f6393(-0x10a,-_0x50c393._0x378e21,-0xca,-_0x50c393._0x3cc424)](await this[_0x585367(0x31,_0x50c393._0x1fe131,-0x3,_0x50c393._0x11c68b)](_0x178fb3));function _0x585367(_0x2af498,_0x46de8f,_0xf643c0,_0x5be5b5){return _0x11bd88(_0x5be5b5- -_0x4e258a._0x35d1e4,_0x2af498,_0xf643c0-_0x4e258a._0x205b2e,_0x5be5b5-_0x4e258a._0x3d779a);}const _0x42d5ed=await _0x178fb3[_0x585367(0x97,-0xa,_0x50c393._0x51d6a1,0xba)](),_0x47c23f=(_0x42d5ed[_0x585367(-0x24,-_0x50c393._0x526a9a,-_0x50c393._0x45bef5,-_0x50c393._0x4aa326)]??[])['map'](_0x15cd7d=>{const _0x274242=createModelInfo(_0x15cd7d);function _0x7e0bc2(_0x1291b3,_0x69b64c,_0x4ffc64,_0x5afafa){return _0x6f6393(_0x5afafa,_0x69b64c-_0x14b9a4._0x133ccd,_0x4ffc64-0x3d,_0x4ffc64- -_0x14b9a4._0x34b039);}_0x274242[_0x59e4b1(0xdc,0x145,_0x46ab1e._0x4b05ea,_0x46ab1e._0x46cc45)]&&this['modelEndpointCache'][_0x59e4b1(_0x46ab1e._0x154584,_0x46ab1e._0x2fd4d1,_0x46ab1e._0x1c62d1,_0x46ab1e._0x1be3ec)](_0x274242['id'],_0x274242[_0x7e0bc2(-0x149,-_0x46ab1e._0x5e1124,-0xe0,-0x5d)]);function _0x59e4b1(_0x485023,_0x51fd0e,_0x52d750,_0x3f548c){return _0x6f6393(_0x3f548c,_0x51fd0e-0x8,_0x52d750-0xc3,_0x51fd0e-0x101);}return _0x274242;});return deduplicateModels(_0x47c23f);}};function createHeaders(_0x1f97be){const _0x2d7167={_0x56e906:0x2dd,_0x362e18:0x334},_0x5cbf3c={_0x24ee10:0x199};function _0xd686a2(_0x301574,_0x5cf9d1,_0x427ce4,_0x4dd67a){return _0xd1496a(_0x427ce4- -_0x5cbf3c._0x24ee10,_0x5cf9d1-0x68,_0x4dd67a,_0x4dd67a-0x31);}const _0xffe128=new Headers();for(const [_0x4d3cab,_0x56ccd5]of Object[_0xd686a2(_0x2d7167._0x56e906,0x2c4,_0x2d7167._0x362e18,0x345)](_0x1f97be)){_0xffe128['set'](_0x4d3cab,_0x56ccd5);}return _0xffe128;}async function fetchRawResponse(_0x15f5b7){const _0x1841a0={_0x395803:0x49,_0x45bf74:0x5bd,_0xff643d:0x59,_0x5a8d40:0x3f,_0x34887d:0x5d,_0x52eeae:0x70,_0x3d9e09:0xf1,_0x4eb1d7:0xc5,_0x558431:0x3,_0x48d280:0x54,_0x13a1bc:0x31,_0x449e2a:0xc2,_0x506f01:0xd8},_0x16bec4={_0x40a834:0x4cd,_0x4c856c:0xe9,_0x4b4e29:0x17a},_0xc4dbc4=_0x15f5b7[_0x377624(0xef,_0x1841a0._0x395803,-0x3c,-0x23)]??globalThis[_0x148a9b(0x61c,0x6a1,0x60f,_0x1841a0._0x45bf74)];function _0x148a9b(_0x180ece,_0x1a017d,_0x251e44,_0x1cc852){return _0xd1496a(_0x1cc852-0x32,_0x1a017d-0x12a,_0x180ece,_0x1cc852-0x116);}function _0x377624(_0x2e908b,_0x55e714,_0x511e8d,_0x7fa932){return _0x11bd88(_0x55e714- -_0x16bec4._0x40a834,_0x511e8d,_0x511e8d-_0x16bec4._0x4c856c,_0x7fa932-_0x16bec4._0x4b4e29);}return _0xc4dbc4(_0x15f5b7[_0x377624(-_0x1841a0._0xff643d,0x4e,-0x1e,-_0x1841a0._0x5a8d40)],{'method':_0x377624(_0x1841a0._0x34887d,-0x52,_0x1841a0._0x52eeae,0x4a),'headers':createHeaders(_0x15f5b7[_0x377624(-0x1d6,-_0x1841a0._0x3d9e09,-_0x1841a0._0x4eb1d7,-0xd1)]),'body':JSON[_0x377624(0x68,0xe,-_0x1841a0._0x558431,_0x1841a0._0x48d280)](_0x15f5b7[_0x377624(0xe,-_0x1841a0._0x13a1bc,0x6f,0x27)]),'signal':_0x15f5b7[_0x377624(0x14,_0x1841a0._0x449e2a,_0x1841a0._0x506f01,-0x1d)]});}async function fetchJsonResponse(_0x1bcd5d){const _0x4cf665={_0x585d04:0x4c9,_0x5e9a6e:0x4f1,_0x7755b0:0x3ec,_0x16088c:0x542,_0x2175f0:0x4f8,_0x115dcd:0x443,_0x1585a6:0x43f,_0x443fce:0x35b},_0x571461={_0x34ce25:0x10,_0x3d31ab:0x1d3},_0x2d03c2={_0x1bc667:0x237,_0x2c4b9e:0x54},_0x467696=await fetchRawResponse(_0x1bcd5d);if(!_0x467696['ok']){const _0x52ebe9=await _0x467696[_0x33d219(_0x4cf665._0x585d04,_0x4cf665._0x5e9a6e,_0x4cf665._0x7755b0,0x44b)](),_0x5ccaed=_0x52ebe9['trim']()||_0x467696[_0x33d219(0x4a7,0x459,_0x4cf665._0x16088c,_0x4cf665._0x2175f0)]||_0x33d219(_0x4cf665._0x115dcd,_0x4cf665._0x1585a6,0x504,_0x4cf665._0x443fce);throw new Error('Provider\x20request\x20failed\x20with\x20status\x20'+_0x467696['status']+':\x20'+_0x5ccaed);}function _0x3363bc(_0x208889,_0x3ecdbc,_0x1bb48e,_0x47f813){return _0xd1496a(_0x1bb48e- -_0x2d03c2._0x1bc667,_0x3ecdbc-0x13,_0x3ecdbc,_0x47f813-_0x2d03c2._0x2c4b9e);}function _0x33d219(_0x2a77a2,_0x29d710,_0xa787af,_0x548354){return _0xd1496a(_0x2a77a2- -_0x571461._0x34ce25,_0x29d710-_0x571461._0x3d31ab,_0x548354,_0x548354-0x1e7);}return await _0x467696['json']();}function findLastMessage(_0x59d6b8,_0x52935b){const _0x1cf6cb={_0x3dcb7b:0xb7};for(let _0x191618=_0x59d6b8['length']-0x1;_0x191618>=0x0;_0x191618-=0x1){if(_0x59d6b8[_0x191618][_0x1180c9(-0x1d7,-0xf7,-0x164,-_0x1cf6cb._0x3dcb7b)]===_0x52935b)return _0x59d6b8[_0x191618];}function _0x1180c9(_0x47d72f,_0x428e68,_0x12506b,_0x3fe755){return _0x11bd88(_0x428e68- -0x64b,_0x12506b,_0x12506b-0x132,_0x3fe755-0x1ab);}return void 0x0;}function hasTool(_0xd9eb6f,_0x116756){const _0x320322={_0x250507:0x3ad,_0x488af3:0x40b,_0x128363:0x3c9,_0x5b204f:0x39b,_0x4bb8ff:0x39c},_0x41f6ab={_0x5b5d40:0x1dd,_0x296c67:0xe6},_0x1f37f8={_0x20c6f2:0x292};function _0x26fb04(_0x4565df,_0x2d8b16,_0x4c29bd,_0x25a2d5){return _0x11bd88(_0x2d8b16- -_0x1f37f8._0x20c6f2,_0x4565df,_0x4c29bd-0x122,_0x25a2d5-0x17f);}function _0x19032b(_0x2a19a7,_0x2cb19a,_0x5c8d62,_0x22121a){return _0xd1496a(_0x5c8d62- -_0x41f6ab._0x5b5d40,_0x2cb19a-_0x41f6ab._0x296c67,_0x2a19a7,_0x22121a-0xa9);}return _0xd9eb6f[_0x19032b(0x2fc,0x350,0x339,_0x320322._0x250507)][_0x19032b(_0x320322._0x488af3,_0x320322._0x128363,_0x320322._0x5b204f,_0x320322._0x4bb8ff)](_0x9ab409=>_0x9ab409[_0x26fb04(0x259,0x18f,0x11e,0x134)]===_0x116756);}function createMockResponse(_0x33c13a,_0x132203,_0x53272b,_0x209579){return{'id':_0x33c13a,'content':_0x132203,'stopReason':_0x53272b,'usage':_0x209579};}var MockModel=class{['model'];[_0x11bd88(0x46c,0x3e3,0x410,0x3ca)];[_0xd1496a(0x466,0x4ec,0x52a,0x3d0)]=[];[_0x11bd88(0x3e2,0x484,0x353,0x410)];constructor(_0x1bcd24={}){const _0x26c20b={_0x5314af:0x2e9,_0x312233:0x2d8,_0x589422:0x36f,_0x209867:0x225,_0x22af3e:0x29b,_0x2182ba:0x312,_0x113abd:0x2db,_0xebe771:0x2dc,_0x2bc297:0x27f,_0x506ce3:0x1e7,_0xb229de:0x1b3,_0x1dc0fd:0x1e3,_0x2ee4d5:0x1b7,_0x3e088f:0x231,_0x17d022:0x23e,_0x2e650d:0x210,_0x201e58:0x214},_0x2fcd86={_0x541965:0x191},_0x436eb7={_0x576a22:0x36};function _0xe78d2f(_0x5e1965,_0x1ed42e,_0x5af957,_0x1e2169){return _0x11bd88(_0x1e2169- -0x1ce,_0x5af957,_0x5af957-_0x436eb7._0x576a22,_0x1e2169-0x1a4);}this[_0x1bbae4(_0x26c20b._0x5314af,_0x26c20b._0x312233,0x21f,_0x26c20b._0x589422)]=_0x1bcd24[_0xe78d2f(0x2be,_0x26c20b._0x209867,0x30e,_0x26c20b._0x22af3e)]??'mock';function _0x1bbae4(_0x1da59c,_0x5c8fb3,_0x5d4d3c,_0x4325c2){return _0x11bd88(_0x5c8fb3- -_0x2fcd86._0x541965,_0x1da59c,_0x5d4d3c-0x1ba,_0x4325c2-0x3f);}this[_0x1bbae4(_0x26c20b._0x2182ba,_0x26c20b._0x113abd,_0x26c20b._0xebe771,_0x26c20b._0x2bc297)]=_0x1bcd24[_0xe78d2f(_0x26c20b._0x506ce3,0x1f8,_0x26c20b._0xb229de,0x29e)]??getDefaultMaxTokens(),this[_0xe78d2f(_0x26c20b._0x1dc0fd,0x1f5,0x1d3,0x214)]=_0x1bcd24[_0xe78d2f(0x1d3,_0x26c20b._0x2ee4d5,_0x26c20b._0x3e088f,0x214)]?structuredClone(_0x1bcd24[_0xe78d2f(_0x26c20b._0x17d022,0x25f,_0x26c20b._0x2e650d,_0x26c20b._0x201e58)]):void 0x0;}async[_0x11bd88(0x58a,0x631,0x51f,0x539)](_0x107440,_0x47733d){const _0x19bafb={_0x548e62:0x1b8,_0x1a91b6:0x147,_0x147fe2:0x1e8,_0x3643e4:0x202,_0xe8fa50:0x20,_0x359909:0x4,_0x5ea666:0x25,_0xb8a827:0x9e,_0x2a451f:0x17c,_0x3c97c1:0x243,_0x3c4b39:0x1b6,_0x5228d5:0x6f,_0x153daf:0x5b,_0x1da278:0xce,_0x2e445d:0xa4,_0x219494:0x82,_0x1b74a1:0x1d,_0x25cca8:0x19,_0x41da7c:0x5d,_0x49e14f:0xbe,_0x2e89a8:0xb5,_0xb18e04:0xba,_0x260b59:0x2ae,_0x2cfbb1:0x2ef,_0x331ee8:0x277,_0x451f25:0x20a,_0x547c0c:0x266,_0x29b546:0xb7,_0x45c759:0x20,_0x35c317:0x316,_0x7f49ca:0xa6,_0x596787:0xd8,_0x220b9c:0x1ea,_0x4e6bee:0x26d,_0x328f05:0x1ee,_0x22b8db:0x253,_0x95428b:0x255,_0xe95c6b:0x260,_0x7f72b5:0x200,_0x4ca60d:0x439,_0x43a8b:0x351},_0x6b7366={_0x16f545:0x19d,_0x4a1bab:0xbb},_0x3d7fd3={_0x225e48:0x121},_0x5ebd0f={...structuredClone(_0x107440),..._0x107440[_0x4f9843(0x1c8,0xff,0x1a8,_0x19bafb._0x548e62)]===void 0x0&&this[_0x4f9843(0x116,_0x19bafb._0x1a91b6,0x132,_0x19bafb._0x548e62)]!==void 0x0?{'reasoning':structuredClone(this[_0x4f9843(_0x19bafb._0x147fe2,_0x19bafb._0x3643e4,0x1db,_0x19bafb._0x548e62)])}:{}};this[_0x53780d(-_0x19bafb._0xe8fa50,-_0x19bafb._0x359909,0x20,-0x5b)][_0x53780d(0x36,-_0x19bafb._0x5ea666,-_0x19bafb._0xb8a827,0x46)](_0x5ebd0f);const _0x5552ff=findLastMessage(_0x5ebd0f[_0x4f9843(_0x19bafb._0x2a451f,_0x19bafb._0x3c97c1,0x1d6,_0x19bafb._0x3c4b39)],'user'),_0x48324f=getToolResultBlocks(_0x5552ff),_0x4286ee='assistant-'+this[_0x53780d(0x7b,_0x19bafb._0x5228d5,-0x32,-_0x19bafb._0x153daf)][_0x53780d(_0x19bafb._0x1da278,_0x19bafb._0x2e445d,_0x19bafb._0x219494,-_0x19bafb._0x1b74a1)];if(_0x48324f['length']>0x0)return createMockResponse(_0x4286ee,[{'type':'text','text':_0x4f9843(0x255,0x307,0x329,0x28d)+_0x48324f[0x0][_0x4f9843(0x121,0x265,0x2e4,0x1fc)]}],'end_turn',{'inputTokens':0x78,'outputTokens':0x28});function _0x53780d(_0xb21705,_0x28af8d,_0x5725e7,_0x29df01){return _0xd1496a(_0x29df01- -0x4c1,_0x28af8d-0x1d4,_0x28af8d,_0x29df01-_0x3d7fd3._0x225e48);}function _0x4f9843(_0x3305d8,_0x45e053,_0xd8faa0,_0x3f8052){return _0x11bd88(_0x3f8052- -0x22a,_0x45e053,_0xd8faa0-_0x6b7366._0x16f545,_0x3f8052-_0x6b7366._0x4a1bab);}const _0x1c8779=getTextFromMessage(_0x5552ff);if(/list .*files|workspace/i[_0x53780d(_0x19bafb._0x25cca8,-0x93,-0xd1,-_0x19bafb._0x41da7c)](_0x1c8779)&&hasTool(_0x5ebd0f,_0x53780d(_0x19bafb._0x49e14f,-_0x19bafb._0x2e89a8,-_0x19bafb._0xb18e04,0xe)))return createMockResponse(_0x4286ee,[{'type':_0x4f9843(_0x19bafb._0x260b59,0x2c4,_0x19bafb._0x2cfbb1,0x253),'id':_0x4f9843(_0x19bafb._0x331ee8,0x232,0x225,0x1dc)+this[_0x4f9843(_0x19bafb._0x451f25,0x153,_0x19bafb._0x547c0c,0x1c7)][_0x53780d(_0x19bafb._0x29b546,_0x19bafb._0x45c759,_0x19bafb._0x2e445d,-0x1d)],'name':_0x4f9843(_0x19bafb._0x35c317,0x289,0x1fe,0x230),'input':{'command':_0x53780d(-_0x19bafb._0x7f49ca,_0x19bafb._0x596787,-0x7e,0x2a)}}],_0x4f9843(_0x19bafb._0x220b9c,_0x19bafb._0x4e6bee,_0x19bafb._0x328f05,_0x19bafb._0x22b8db),{'inputTokens':0x6e,'outputTokens':0x1c});return createMockResponse(_0x4286ee,[{'type':_0x4f9843(_0x19bafb._0x95428b,_0x19bafb._0xe95c6b,_0x19bafb._0x7f72b5,0x23a),'text':'Direct\x20answer:\x20'+_0x1c8779}],_0x4f9843(0x3b9,0x2b4,_0x19bafb._0x4ca60d,_0x19bafb._0x43a8b),{'inputTokens':0x50,'outputTokens':0x12});}};function getFallbackModelLimits(_0x1697e9,_0x460af3){const _0x3046ef={_0x1187c0:0x149,_0x4ad23a:0x15d,_0x15a22c:0x168,_0x36dbc6:0x21d,_0x1e14ec:0xdb,_0xfb80cd:0x184,_0x5682cb:0x113,_0x591e60:0xda,_0x5bc6bf:0x138,_0x3af051:0x1bc,_0x501d96:0x1d9,_0x198218:0x28c,_0x255952:0x1a0},_0x2a3a78={_0x5f58e9:0x5b9,_0x34af00:0xb8,_0x2d2334:0x6a},_0x494d2a={_0x37f663:0x63b},_0x1a9c79=getModelProfile(_0x1697e9,_0x460af3);function _0x53c309(_0x120a89,_0x386378,_0x2a7560,_0x5efe66){return _0x11bd88(_0x386378- -_0x494d2a._0x37f663,_0x5efe66,_0x2a7560-0x179,_0x5efe66-0x140);}if(!_0x1a9c79?.[_0x53c309(-_0x3046ef._0x1187c0,-_0x3046ef._0x4ad23a,-0x20d,-0x1fe)]&&!_0x1a9c79?.[_0x53c309(-_0x3046ef._0x15a22c,-0x23e,-_0x3046ef._0x36dbc6,-0x2a1)])return void 0x0;function _0x5b72e8(_0x238883,_0x1ae59f,_0x4135ad,_0x242b92){return _0x11bd88(_0x238883- -_0x2a3a78._0x5f58e9,_0x1ae59f,_0x4135ad-_0x2a3a78._0x34af00,_0x242b92-_0x2a3a78._0x2d2334);}return{..._0x1a9c79[_0x5b72e8(-_0x3046ef._0x1e14ec,-_0x3046ef._0xfb80cd,-_0x3046ef._0x5682cb,-0x5)]?{'contextWindow':_0x1a9c79[_0x5b72e8(-_0x3046ef._0x1e14ec,-_0x3046ef._0x591e60,-_0x3046ef._0x5bc6bf,-0x107)]}:{},..._0x1a9c79[_0x5b72e8(-_0x3046ef._0x3af051,-0x224,-0x11b,-_0x3046ef._0x501d96)]?{'maxOutput':_0x1a9c79[_0x5b72e8(-0x1bc,-_0x3046ef._0x198218,-0x280,-_0x3046ef._0x255952)]}:{}};}function normalizeModelInfo(_0x5a6280,_0x171d5e){const _0x419fa1={_0x3f52fb:0x213,_0x468f75:0x31,_0x545aa8:0x16f,_0x17fb7f:0x23c,_0x1586c9:0x184,_0x31c1ff:0x356,_0x403d02:0x361,_0x40f85c:0xc1,_0x39a7d3:0xbc,_0x3d3234:0x25},_0x14a75d={_0x8421bf:0x53a},_0x38f1f7={_0x3e44ef:0x1c0};function _0x9fe53c(_0x37ddd0,_0x250a98,_0x475248,_0x3824db){return _0x11bd88(_0x37ddd0- -0x1ff,_0x250a98,_0x475248-_0x38f1f7._0x3e44ef,_0x3824db-0x33);}const _0x2296bf=typeof _0x171d5e['id']===_0x9fe53c(_0x419fa1._0x3f52fb,0x26f,0x2b2,0x288)?_0x171d5e['id']:'',_0x3ec754=typeof _0x171d5e[_0x5c91a1(-_0x419fa1._0x468f75,-0xa4,-0x23,-_0x419fa1._0x545aa8)]==='string'?_0x171d5e[_0x9fe53c(0x222,_0x419fa1._0x17fb7f,0x2e2,_0x419fa1._0x1586c9)]:_0x2296bf,_0x1ce2c6=normalizeModelLimits(_0x5a6280,_0x171d5e)??getFallbackModelLimits(_0x5a6280,_0x2296bf);function _0x5c91a1(_0x3c123f,_0x4f9f95,_0x450000,_0x19ee6b){return _0xd1496a(_0x4f9f95- -_0x14a75d._0x8421bf,_0x4f9f95-0x162,_0x19ee6b,_0x19ee6b-0x1d9);}const _0x124b9e=Array['isArray'](_0x171d5e[_0x9fe53c(0x398,0x3de,_0x419fa1._0x31c1ff,_0x419fa1._0x403d02)])?_0x171d5e['supported_endpoints']['filter'](_0x16eef5=>typeof _0x16eef5===_0x9fe53c(0x213,0x273,0x155,0x1a2)):Array[_0x5c91a1(0x6a,_0x419fa1._0x40f85c,0x144,0x121)](_0x171d5e['capable_endpoints'])?_0x171d5e[_0x5c91a1(_0x419fa1._0x39a7d3,-_0x419fa1._0x3d3234,-0xc5,0x18)][_0x5c91a1(-0x36,0x62,0x45,0xb1)](_0x58e92e=>typeof _0x58e92e==='string'):void 0x0;return{'id':_0x2296bf,'name':_0x3ec754,..._0x1ce2c6?{'limits':_0x1ce2c6}:{},..._0x124b9e?{'supportedEndpoints':_0x124b9e}:{}};}function normalizeModelLimits(_0x25389e,_0x2c02c8){const _0x366b7b={_0x4f72bf:0x106,_0x425185:0x17e,_0x4aa9bb:0x202,_0x467282:0x275,_0x1fc1c8:0x101,_0x288663:0x1cb,_0x4ffc78:0x1eb,_0x1d3852:0x101,_0x865a04:0xfc,_0x309748:0x105,_0x224608:0x207,_0x3fcac2:0x23e,_0x54bdfb:0x280,_0x65a959:0x339,_0x624739:0x1b4,_0x312a90:0x277,_0xa58dfe:0x181,_0x36c00a:0x97,_0x26f8d3:0x1ae,_0x56a798:0x29,_0x201858:0xe9,_0x3ba5d1:0x40,_0x3dc835:0x10a,_0x504cf5:0xdb,_0x4e1941:0x409,_0x1c92c4:0x329,_0x79f62c:0x3f0,_0xb733da:0x8e,_0xeaa7d5:0x109,_0x168fac:0x387,_0x3014d6:0x270,_0x9dae92:0x282,_0x51e874:0xbe,_0x3ca474:0x6e,_0x2e5865:0x2dd,_0x243762:0x16c,_0x37e9f6:0x89,_0x515af5:0x2ee,_0x3fe225:0x387},_0x181131={_0x31a004:0x95},_0x45a9e8={_0x37f3f7:0x26c,_0x4fe8d0:0x62};if(_0x2c02c8['limits']&&typeof _0x2c02c8[_0x3bb7cc(0x18f,_0x366b7b._0x4f72bf,_0x366b7b._0x425185,_0x366b7b._0x4aa9bb)]===_0x294bd5(-0x17,0x68,-0x37,0x76)){const _0x5cb137=_0x2c02c8['limits'];if(typeof _0x5cb137[_0x3bb7cc(0x1ec,0x1e1,0x272,_0x366b7b._0x467282)]===_0x294bd5(0x14c,0x13b,0xdc,_0x366b7b._0x1fc1c8))return{'contextWindow':_0x5cb137['contextWindow'],...typeof _0x5cb137['maxOutput']===_0x294bd5(0x37,_0x366b7b._0x288663,_0x366b7b._0x4ffc78,_0x366b7b._0x1d3852)?{'maxOutput':_0x5cb137[_0x3bb7cc(_0x366b7b._0x865a04,0x22a,0x191,_0x366b7b._0x309748)]}:{}};}if(_0x25389e[_0x3bb7cc(_0x366b7b._0x224608,_0x366b7b._0x3fcac2,_0x366b7b._0x54bdfb,_0x366b7b._0x65a959)]()===_0x3bb7cc(0x296,_0x366b7b._0x624739,0x26b,_0x366b7b._0x312a90)){const _0x1c4ff4=_0x2c02c8['capabilities'],_0x2498f0=_0x1c4ff4?.[_0x294bd5(-0x165,-_0x366b7b._0xa58dfe,-0x13c,-_0x366b7b._0x36c00a)];if(typeof _0x2498f0?.['max_context_window_tokens']==='number')return{'contextWindow':_0x2498f0[_0x3bb7cc(0x232,0x1bd,_0x366b7b._0x26f8d3,0x199)],...typeof _0x2498f0['max_output_tokens']===_0x294bd5(_0x366b7b._0x56a798,_0x366b7b._0x201858,_0x366b7b._0x3ba5d1,0x101)?{'maxOutput':_0x2498f0['max_output_tokens']}:{}};}const _0x3fcf5f=_0x2c02c8['metadata'],_0x259da3=_0x2c02c8[_0x294bd5(_0x366b7b._0x3dc835,0x0,_0x366b7b._0x504cf5,0x59)];function _0x3bb7cc(_0x3f90e5,_0x6ac354,_0x38bbea,_0x453a00){return _0x11bd88(_0x38bbea- -_0x45a9e8._0x37f3f7,_0x6ac354,_0x38bbea-_0x45a9e8._0x4fe8d0,_0x453a00-0x1cb);}const _0x23f8bb=typeof _0x2c02c8[_0x3bb7cc(_0x366b7b._0x4e1941,0x3e8,_0x366b7b._0x1c92c4,_0x366b7b._0x79f62c)]==='number'?_0x2c02c8['context_length']:typeof _0x3fcf5f?.['context_length']===_0x294bd5(_0x366b7b._0xb733da,_0x366b7b._0xeaa7d5,0x144,0x101)?_0x3fcf5f['context_length']:typeof _0x259da3?.[_0x3bb7cc(0x37a,_0x366b7b._0x168fac,_0x366b7b._0x1c92c4,_0x366b7b._0x3014d6)]===_0x3bb7cc(0x379,0x2ee,0x316,0x3af)?_0x259da3[_0x3bb7cc(_0x366b7b._0x9dae92,0x2d7,0x329,0x3b4)]:void 0x0;if(_0x23f8bb===void 0x0)return void 0x0;function _0x294bd5(_0x4c6691,_0x166163,_0x1a05f7,_0x4433b7){return _0x11bd88(_0x4433b7- -0x481,_0x166163,_0x1a05f7-_0x181131._0x31a004,_0x4433b7-0x119);}return{'contextWindow':_0x23f8bb,...typeof _0x3fcf5f?.[_0x294bd5(-_0x366b7b._0x51e874,-0x36,0x4e,-_0x366b7b._0x3ca474)]==='number'?{'maxOutput':_0x3fcf5f[_0x3bb7cc(0x203,0x105,0x1a7,0x21a)]}:typeof _0x259da3?.[_0x3bb7cc(0x34c,0x2f1,0x2d2,_0x366b7b._0x2e5865)]===_0x294bd5(_0x366b7b._0x243762,0x132,_0x366b7b._0x37e9f6,0x101)?{'maxOutput':_0x259da3[_0x3bb7cc(_0x366b7b._0x515af5,0x315,0x2d2,_0x366b7b._0x3fe225)]}:{}};}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};
|
|
1
|
+
(function(_0x3e9e6c,_0x411464){const _0x42d486={_0x3769c2:0x494,_0x45e96f:0x215,_0x14a865:0x1d0,_0x5842d5:0x409,_0x1faf05:0x4bc,_0x165fe3:0x55f,_0x276867:0x16c,_0x480fef:0x203,_0x49006f:0x1a6,_0x138861:0x5de,_0x269e7f:0x508,_0x481fa1:0x1ca,_0x33b052:0x1b2,_0xf2b833:0x3d9,_0x44c3b5:0x101,_0x10f08f:0x1f7,_0x599621:0x1b6,_0x47d4d4:0xda,_0x1b4b20:0x17e,_0x506adb:0x592,_0x590563:0x5d1,_0x255cd3:0x52a,_0x2eb790:0x4d6,_0x119a4f:0x103},_0x1b3ab7={_0x3f8c2b:0xf},_0x2deb1c={_0x486b27:0x301};function _0x22b0ec(_0x591d9c,_0x35072a,_0x5de8e6,_0x63d25e){return _0x4762(_0x591d9c-_0x2deb1c._0x486b27,_0x5de8e6);}const _0x4e629e=_0x3e9e6c();function _0x19e46e(_0x5259eb,_0x1878b2,_0x51fabe,_0x17e201){return _0x4762(_0x51fabe-_0x1b3ab7._0x3f8c2b,_0x5259eb);}while(!![]){try{const _0x4e8acf=parseInt(_0x22b0ec(_0x42d486._0x3769c2,0x41d,0x56f,0x44a))/0x1*(-parseInt(_0x19e46e(_0x42d486._0x45e96f,_0x42d486._0x14a865,0x1b7,0x266))/0x2)+parseInt(_0x22b0ec(0x4d1,_0x42d486._0x5842d5,_0x42d486._0x1faf05,_0x42d486._0x165fe3))/0x3*(parseInt(_0x19e46e(_0x42d486._0x276867,0x288,_0x42d486._0x480fef,_0x42d486._0x49006f))/0x4)+parseInt(_0x22b0ec(0x578,_0x42d486._0x138861,0x547,_0x42d486._0x269e7f))/0x5*(-parseInt(_0x19e46e(0x133,_0x42d486._0x481fa1,0x10d,_0x42d486._0x33b052))/0x6)+-parseInt(_0x22b0ec(0x4a0,0x489,_0x42d486._0xf2b833,0x40f))/0x7+parseInt(_0x19e46e(0x91,0x101,0x11f,_0x42d486._0x44c3b5))/0x8+parseInt(_0x19e46e(0x25b,_0x42d486._0x10f08f,_0x42d486._0x599621,_0x42d486._0x47d4d4))/0x9*(-parseInt(_0x19e46e(_0x42d486._0x14a865,_0x42d486._0x1b4b20,0x1f0,0x1cd))/0xa)+-parseInt(_0x22b0ec(_0x42d486._0x506adb,_0x42d486._0x590563,_0x42d486._0x255cd3,_0x42d486._0x2eb790))/0xb*(-parseInt(_0x19e46e(_0x42d486._0x119a4f,0x246,0x18b,0x189))/0xc);if(_0x4e8acf===_0x411464)break;else _0x4e629e['push'](_0x4e629e['shift']());}catch(_0x1f1307){_0x4e629e['push'](_0x4e629e['shift']());}}}(_0xc155,0x2b0c6));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';var ProviderRequestConstructionError=class extends Error{constructor(_0x4c15c5){const _0xc5aed9={_0x40446e:0x206,_0x45a8d7:0x83,_0x2910df:0xd6},_0x41eb5c={_0x4609a6:0x21b},_0xfda704={_0x3d390d:0x3ae};super(_0x4c15c5);function _0x353eb3(_0x13173c,_0x3d6c97,_0x2a14f7,_0x4b4d9b){return _0x4762(_0x3d6c97- -_0xfda704._0x3d390d,_0x2a14f7);}function _0x3b96a4(_0x30c59b,_0x3f9c2f,_0x1b9689,_0x293453){return _0x4762(_0x1b9689- -_0x41eb5c._0x4609a6,_0x293453);}this[_0x353eb3(-_0xc5aed9._0x40446e,-0x2a0,-0x311,-0x1da)]=_0x3b96a4(-_0xc5aed9._0x45a8d7,-0x141,-_0xc5aed9._0x2910df,-0xae);}},ProviderStreamEventError=class extends Error{[_0xc7d8a6(-0x236,-0x1d0,-0x1ef,-0x1d2)];[_0xc7d8a6(-0xa7,0x3e,0x32,-0x25)];[_0x74a064(-0x76,0x0,0x6d,0x12b)];constructor(_0x56ddf3,_0x4cf5d7={}){const _0xbd2c89={_0x204c34:0x395,_0x375347:0x22f,_0x3fb228:0x33a,_0x2583d1:0x315,_0x142637:0x4a0,_0x41b035:0x1e0,_0x18dfc9:0x247,_0x331ab2:0xb,_0x11192f:0x8c,_0x40e3e5:0x4c4,_0x1dffa0:0x469,_0x4c1e01:0xb0,_0x4729bf:0xd5,_0x34f569:0x1af},_0x503f35={_0x2129c2:0xd8},_0x2abb26={_0x4d21d7:0xdc,_0x4475e8:0x75};function _0x4f0610(_0x2d3f32,_0x6c3a,_0x36d72e,_0xd7b479){return _0x74a064(_0x2d3f32-_0x2abb26._0x4d21d7,_0x6c3a-0x19,_0x6c3a-_0x2abb26._0x4475e8,_0x36d72e);}super(_0x56ddf3);function _0x56013b(_0x3dd1cf,_0x4c8ee0,_0x541ac7,_0x21f8a1){return _0x74a064(_0x3dd1cf-_0x503f35._0x2129c2,_0x4c8ee0-0x5e,_0x4c8ee0-0x33c,_0x3dd1cf);}this[_0x56013b(_0xbd2c89._0x204c34,0x2ee,_0xbd2c89._0x375347,_0xbd2c89._0x3fb228)]=_0x56013b(_0xbd2c89._0x2583d1,0x3ec,0x45f,_0xbd2c89._0x142637),this[_0x56013b(_0xbd2c89._0x41b035,0x2bc,0x344,_0xbd2c89._0x18dfc9)]=_0x4cf5d7[_0x4f0610(-0x59,-_0xbd2c89._0x331ab2,_0xbd2c89._0x11192f,-0x39)],this[_0x56013b(0x3f7,0x469,0x3fb,0x4d9)]=_0x4cf5d7[_0x56013b(_0xbd2c89._0x40e3e5,_0xbd2c89._0x1dffa0,0x4c8,0x3dd)]??!![],this[_0x4f0610(0x10,0xe2,_0xbd2c89._0x4c1e01,_0xbd2c89._0x4729bf)]=_0x4cf5d7[_0x4f0610(0xf6,0xe2,_0xbd2c89._0x34f569,0x110)];}};function isRetryableProviderStreamEventError(_0x40cd49){const _0x4ba75b={_0x1824e0:0xc2,_0x48dd1e:0x1a3,_0x3a8bd6:0x1f7},_0x2deac4={_0x283f85:0x197,_0x32122c:0x121,_0x45daa7:0x76};function _0x30f19a(_0x392b3c,_0x354c3c,_0x1e2805,_0x1e881d){return _0x74a064(_0x392b3c-_0x2deac4._0x283f85,_0x354c3c-_0x2deac4._0x32122c,_0x1e2805-_0x2deac4._0x45daa7,_0x392b3c);}return _0x40cd49 instanceof ProviderStreamEventError&&_0x40cd49[_0x30f19a(0x1ed,_0x4ba75b._0x1824e0,_0x4ba75b._0x48dd1e,_0x4ba75b._0x3a8bd6)];}var ANTHROPIC_MESSAGES_SURFACE=_0x74a064(0x73,-0xa6,0x10,-0xa),ANTHROPIC_MESSAGES_STREAM_SURFACE=_0xc7d8a6(0x74,0xbd,-0xc7,-0x1b);function parseToolInput(_0x141ec9){const _0x13241e={_0x3416b5:0x3eb,_0x3ad5dd:0x416},_0x31c57d={_0x436656:0x6e,_0x1f5394:0x137,_0x403ed4:0x48b};function _0x1d1a24(_0x135837,_0x42dd34,_0x3f3b8e,_0x511b67){return _0xc7d8a6(_0x135837-_0x31c57d._0x436656,_0x135837,_0x3f3b8e-_0x31c57d._0x1f5394,_0x42dd34-_0x31c57d._0x403ed4);}try{return JSON[_0x1d1a24(0x395,0x381,_0x13241e._0x3416b5,_0x13241e._0x3ad5dd)](_0x141ec9);}catch{return _0x141ec9;}}function resolveReasoningVisibility(_0x2a31b6){const _0x3f15ba={_0x4add6e:0x363,_0x3055d5:0x377,_0xae24f7:0x319,_0x2496da:0x1a0,_0x15550d:0x302},_0x15f154={_0x3be1ad:0x12a,_0x551e3b:0x8b};function _0xb37e53(_0x346d13,_0x2615ed,_0x47ecd6,_0xd5b9a5){return _0xc7d8a6(_0x346d13-_0x15f154._0x3be1ad,_0x2615ed,_0x47ecd6-_0x15f154._0x551e3b,_0xd5b9a5-0x343);}function _0x58c2e0(_0xd72f07,_0x26e6c1,_0x5e9242,_0x38dd4d){return _0x74a064(_0xd72f07-0x123,_0x26e6c1-0x24,_0x38dd4d-0x70,_0xd72f07);}return _0x2a31b6[_0xb37e53(_0x3f15ba._0x4add6e,0x25a,_0x3f15ba._0x3055d5,_0x3f15ba._0xae24f7)]?.[_0x58c2e0(0x177,_0x3f15ba._0x2496da,0x279,0x19b)]??_0xb37e53(_0x3f15ba._0x15550d,0x39b,0x298,0x2d4);}function isUserVisibleThinking(_0x17c2d1){const _0x259992={_0x2f0b26:0x5e6,_0x3a8c6a:0x674,_0x4c1e05:0x645,_0x41463f:0x5db},_0x41e852={_0x4cc85e:0x18d,_0x862a36:0x1b,_0x47d3d2:0x655},_0x59af70=resolveAnthropicThinkingConfig(_0x17c2d1['reasoning']);function _0x321711(_0x5c877a,_0x14b0d3,_0x7f221a,_0x4997c1){return _0xc7d8a6(_0x5c877a-_0x41e852._0x4cc85e,_0x14b0d3,_0x7f221a-_0x41e852._0x862a36,_0x5c877a-_0x41e852._0x47d3d2);}return _0x59af70!==void 0x0&&_0x59af70['type']!=='disabled'&&resolveReasoningVisibility(_0x17c2d1)===_0x321711(_0x259992._0x2f0b26,_0x259992._0x3a8c6a,_0x259992._0x4c1e05,_0x259992._0x41463f);}function createAnthropicThinkingBody(_0x228b7f){const _0x26c82a={_0xdab830:0x552,_0x28c959:0x48,_0x37ddf5:0x588,_0x2164e0:0x4b4,_0x144781:0x4fd,_0x4a8994:0x8a,_0x57c85e:0x79,_0x2d533e:0x110,_0x58143b:0xc5,_0x187f35:0x5c2,_0x28ca1d:0x5bf,_0x51c34f:0x644,_0x38b74a:0x54b,_0x243ef9:0xb0,_0x15e95f:0x1d,_0x54e9d8:0x7f,_0x8846bf:0x5a},_0x4869aa={_0x5206bc:0xca,_0x3553eb:0xdd},_0x10872c={_0x2ed982:0xde,_0x5492b8:0x100},_0x2c6c3c=resolveAnthropicThinkingConfig(_0x228b7f[_0xda0978(0x62a,_0x26c82a._0xdab830,0x5fc,0x6ab)]);if(!_0x2c6c3c||_0x2c6c3c[_0xe3f9ab(-0x9,-_0x26c82a._0x28c959,-0xaf,0x94)]===_0xda0978(_0x26c82a._0x37ddf5,_0x26c82a._0x2164e0,0x505,_0x26c82a._0x144781))return{};const _0x52089b=_0x2c6c3c[_0xe3f9ab(-_0x26c82a._0x4a8994,-_0x26c82a._0x57c85e,-_0x26c82a._0x2d533e,-_0x26c82a._0x58143b)]??(isUserVisibleThinking(_0x228b7f)?'summarized':_0xda0978(0x631,0x682,_0x26c82a._0x187f35,0x614)),_0xa69d7e=_0x2c6c3c['interleaved']?{'anthropic-beta':_0xda0978(0x581,_0x26c82a._0x28ca1d,_0x26c82a._0x51c34f,_0x26c82a._0x38b74a)}:void 0x0;function _0xe3f9ab(_0x26dfb6,_0x3bf1f2,_0x32336e,_0x5b7b45){return _0xc7d8a6(_0x26dfb6-0x12d,_0x5b7b45,_0x32336e-_0x10872c._0x2ed982,_0x26dfb6-_0x10872c._0x5492b8);}if(_0x2c6c3c[_0xda0978(0x54b,0x46f,0x5cc,0x4c1)]===_0xe3f9ab(_0x26c82a._0x243ef9,0x17e,0x8c,0xd3))return{..._0xa69d7e?{'headers':_0xa69d7e}:{},'thinking':{'type':'enabled','budget_tokens':_0x2c6c3c[_0xda0978(0x5b1,0x5cf,0x5ea,0x56e)],'display':_0x52089b}};function _0xda0978(_0x3a3969,_0x5bdaee,_0x2fead2,_0x3efeb5){return _0xc7d8a6(_0x3a3969-_0x4869aa._0x5206bc,_0x5bdaee,_0x2fead2-_0x4869aa._0x3553eb,_0x3a3969-0x654);}return{..._0xa69d7e?{'headers':_0xa69d7e}:{},'thinking':{'type':_0xe3f9ab(-_0x26c82a._0x15e95f,0x7b,-0xe3,-_0x26c82a._0x54e9d8),..._0x2c6c3c[_0xe3f9ab(0x52,_0x26c82a._0x8846bf,0x35,0x116)]?{'effort':_0x2c6c3c['effort']}:{},'display':_0x52089b}};}function toAnthropicRequestContent(_0x5c6205){const _0x16e151={_0x2e8f07:0x39a,_0x177ccd:0x630,_0x17bb78:0x33b,_0x3f229a:0x3f3,_0x6f9e22:0x46b,_0x433789:0x5b8,_0x3dc3e4:0x4bb,_0x24d4ed:0x443,_0x13cf92:0x53f,_0x151d38:0x539,_0x122620:0x4bc,_0xe2b669:0x436,_0xa85ce6:0x476,_0x1ec18f:0x541,_0x43bef6:0x5a3,_0x4dfa70:0x50c,_0x1abf3a:0x5d2,_0x3f30c4:0x409,_0x51cae4:0x411,_0x59fea9:0x6bc,_0x4414e3:0x3be,_0x26e1e8:0x3ea,_0x45e951:0x381,_0x26584b:0x397,_0x3ab394:0x3ea,_0x3f597f:0x3fb,_0xe8344f:0x306,_0x47b637:0x6d4,_0x5437d3:0x640,_0x240151:0x639,_0x32ab8e:0x4d1,_0x5b66fd:0x656,_0x3d6c02:0x579,_0x5e9f52:0x5e4,_0x5aed20:0x56b,_0x47850f:0x3e4,_0x35ae7c:0x402,_0x4de8b7:0x442,_0x5cfad0:0x438,_0x212c85:0x6c3,_0x277dd6:0x56c,_0x2946c3:0x691,_0x5e98b4:0x4b5},_0x32ae4a={_0x5ced93:0x105};if(_0x5c6205[_0xf35dcd(_0x16e151._0x2e8f07,0x45e,0x4b9,0x488)]===_0x109909(0x67f,_0x16e151._0x177ccd,0x62c,0x700)&&_0x5c6205[_0xf35dcd(0x2d7,_0x16e151._0x17bb78,_0x16e151._0x3f229a,0x26c)]?.[_0x109909(0x586,_0x16e151._0x6f9e22,0x4e9,_0x16e151._0x433789)])return structuredClone(_0x5c6205[_0x109909(0x3f2,0x570,_0x16e151._0x3dc3e4,_0x16e151._0x24d4ed)][_0x109909(_0x16e151._0x13cf92,_0x16e151._0x151d38,0x4e9,_0x16e151._0x122620)]);const _0x294547=[];for(const _0x273855 of normalizeContent(_0x5c6205[_0xf35dcd(_0x16e151._0xe2b669,_0x16e151._0xa85ce6,_0x16e151._0x1ec18f,0x48e)])){if(_0x273855[_0x109909(_0x16e151._0x43bef6,_0x16e151._0x4dfa70,0x579,_0x16e151._0x1abf3a)]===_0xf35dcd(0x4ca,_0x16e151._0x3f30c4,0x474,_0x16e151._0x51cae4))continue;if(_0x273855['type']===_0x109909(0x63e,_0x16e151._0x59fea9,0x5e9,0x672)){_0x294547[_0xf35dcd(0x3c4,0x335,0x3f5,_0x16e151._0x4414e3)]({'type':_0xf35dcd(0x49e,_0x16e151._0x26e1e8,_0x16e151._0x45e951,0x3ec),'thinking':_0x273855[_0xf35dcd(_0x16e151._0x26584b,_0x16e151._0x3ab394,_0x16e151._0x3f597f,_0x16e151._0xe8344f)],'signature':_0x273855[_0x109909(_0x16e151._0x47b637,_0x16e151._0x5437d3,0x670,_0x16e151._0x240151)]});continue;}if(_0x273855[_0x109909(_0x16e151._0x32ab8e,_0x16e151._0x5b66fd,_0x16e151._0x3d6c02,_0x16e151._0x5e9f52)]===_0x109909(_0x16e151._0x5aed20,_0x16e151._0x47850f,0x4b4,_0x16e151._0x35ae7c)){_0x294547[_0x109909(_0x16e151._0x4de8b7,0x45a,0x4b5,_0x16e151._0x5cfad0)]({'type':_0x109909(_0x16e151._0x212c85,_0x16e151._0x277dd6,0x631,_0x16e151._0x2946c3),'data':_0x273855['data']});continue;}_0x294547[_0x109909(0x4bc,0x44d,_0x16e151._0x5e98b4,0x4e4)](structuredClone(_0x273855));}function _0xf35dcd(_0x43a648,_0x4c8ac7,_0x5e9211,_0xa82f47){return _0xc7d8a6(_0x43a648-0x139,_0x5e9211,_0x5e9211-_0x32ae4a._0x5ced93,_0x4c8ac7-0x502);}function _0x109909(_0x25b053,_0x689fc8,_0xf07f02,_0x15aadc){return _0x74a064(_0x25b053-0x190,_0x689fc8-0x13f,_0xf07f02-0x530,_0x689fc8);}return _0x294547;}function createAnthropicRequest(_0x40bf49,_0x51dfb9){const _0x4e9590={_0x529d17:0x8a,_0x2a744a:0x92,_0x13f1d5:0x64f,_0x19687e:0x58b,_0x8de58a:0x49a,_0x3b7abd:0x572,_0x22077a:0xde,_0x534f30:0x9b,_0x29a93e:0xe6,_0x3a6490:0x403,_0x3610a4:0x142,_0x59d578:0x37,_0x2811e8:0xe2,_0x19b3a4:0x4d2,_0xa1bb64:0x515},_0x478cfc={_0x248f57:0x494},_0x3c75c5={_0x1a91a1:0x103,_0x595d08:0x61};function _0x1bfec3(_0x59be2a,_0x28abad,_0x3c4a96,_0x41328c){return _0x74a064(_0x59be2a-0x153,_0x28abad-_0x3c75c5._0x1a91a1,_0x3c4a96-_0x3c75c5._0x595d08,_0x59be2a);}const _0x3ef5cb=toProviderModelRequest(_0x40bf49);function _0x387cdb(_0xbf36e7,_0x196f23,_0x22ecb2,_0x2ca8dd){return _0x74a064(_0xbf36e7-0x69,_0x196f23-0xbc,_0x2ca8dd-_0x478cfc._0x248f57,_0xbf36e7);}const _0x30b855=createAnthropicThinkingBody(_0x40bf49);return{'accept':_0x51dfb9?'text/event-stream':_0x1bfec3(_0x4e9590._0x529d17,_0x4e9590._0x2a744a,0x73,0x8a),'body':{..._0x3ef5cb,'messages':_0x40bf49[_0x387cdb(0x5f5,0x4e7,_0x4e9590._0x13f1d5,_0x4e9590._0x19687e)][_0x387cdb(0x58a,0x5ca,_0x4e9590._0x8de58a,_0x4e9590._0x3b7abd)](_0x2e9635=>{return{'role':_0x2e9635['role'],'content':toAnthropicRequestContent(_0x2e9635)};}),..._0x30b855[_0x1bfec3(-0x8,_0x4e9590._0x22077a,_0x4e9590._0x534f30,_0x4e9590._0x29a93e)]?{'thinking':_0x30b855[_0x387cdb(0x59b,0x543,0x57c,0x4ce)]}:{},..._0x51dfb9?{'stream':!![]}:{},..._0x40bf49[_0x1bfec3(0xb8,0xa9,0x62,0xe5)]?{'output_config':{'format':{'type':_0x387cdb(0x4e1,0x4a4,_0x4e9590._0x3a6490,_0x4e9590._0x8de58a),'schema':_0x40bf49[_0x387cdb(0x4fb,0x4e1,0x422,0x495)][_0x1bfec3(0xc4,0x15f,_0x4e9590._0x3610a4,0xb3)]}}}:{}},..._0x30b855[_0x1bfec3(_0x4e9590._0x59d578,0xbe,_0x4e9590._0x2811e8,0x10c)]?{'headers':_0x30b855[_0x387cdb(0x5f9,_0x4e9590._0x19b3a4,0x4ee,_0x4e9590._0xa1bb64)]}:{},'path':'/v1/messages'};}function parseAnthropicResponse(_0x48b038,_0x1355a8){const _0xcaced6={_0xccd182:0x2,_0x1c2e8d:0xfe,_0x5eaba2:0x86,_0x24fbad:0x100,_0x1d7d31:0x386,_0x272e41:0x344,_0x5722b8:0x419,_0x4126fa:0x3f6,_0x32daa9:0x3d9,_0x261cc1:0x336,_0x47fb60:0x377,_0x2c8a39:0x404,_0x4c9cbb:0x523,_0x47d0fa:0x54b,_0xcfce5f:0x13,_0x3b185d:0x9,_0x1eb420:0xdc,_0x341b54:0x192,_0x31e019:0x178,_0x3c2d06:0x70,_0x3267e8:0x20f,_0x2eeaae:0x35c,_0x137a09:0x1f8,_0x1dbea4:0x2ef,_0xade67:0x340,_0x133f90:0x447,_0x4052f2:0x2c1,_0x2d1bb5:0x33a,_0x5339cd:0x467,_0x30e410:0x153,_0x55e940:0xbb,_0x9ba2e:0x155,_0x56c7d2:0x38e,_0x408398:0x20b,_0x163d27:0x304,_0x410009:0x71,_0x28bb8e:0x66,_0x1c2a39:0x39c,_0x14f114:0x310,_0x48fda0:0x7e,_0x181a41:0x6d,_0x553941:0x3a3,_0x1b9811:0x2bb,_0x62e5d4:0x14,_0x1390da:0x26,_0x1996bd:0xad,_0x580ceb:0x176,_0x521b5b:0x4c4,_0x1c15d6:0x466,_0x109946:0x4fb,_0xf8bf9:0xfd,_0x277aa1:0xad,_0x1fe919:0x347,_0x18f1fe:0x42a,_0x1d0158:0x362,_0x2afb51:0xd4,_0x8f8f72:0x14a,_0x56a062:0xa3,_0x2bb824:0xb0,_0x14fa0f:0xad,_0x5ae804:0x300,_0x6282bf:0x205,_0x35c02d:0x2c5,_0xfb4da6:0x3fd,_0x4117b8:0x42a,_0x2df4e:0x37a,_0x3ea1e4:0xc8,_0x55bf82:0x2d,_0x3db192:0x12c,_0x5de4db:0x45,_0x532497:0x7b,_0x4dd3c0:0x21,_0x1699ce:0x2a,_0x122328:0x470,_0x36bca8:0x2da},_0xadbf7d={_0x1d016e:0x16c,_0x4a5428:0x112},_0x1884e1={_0x283be0:0xff};function _0x27499e(_0x4ff9eb,_0x84077,_0x54d5f1,_0x353462){return _0x74a064(_0x4ff9eb-_0x1884e1._0x283be0,_0x84077-0x122,_0x54d5f1-0x33d,_0x353462);}const _0x2f8e54=[],_0x42c2c5=_0x48b038[_0x3c6ccf(_0xcaced6._0xccd182,_0xcaced6._0x1c2e8d,_0xcaced6._0x5eaba2,_0xcaced6._0x24fbad)]??[];let _0x14aa59=![];function _0x3c6ccf(_0x50f11a,_0x596664,_0x383c06,_0x5621db){return _0xc7d8a6(_0x50f11a-0xf7,_0x596664,_0x383c06-_0xadbf7d._0x1d016e,_0x383c06-_0xadbf7d._0x4a5428);}for(const _0x15d7ac of _0x42c2c5){if(_0x15d7ac[_0x27499e(0x379,0x386,_0xcaced6._0x1d7d31,_0xcaced6._0x272e41)]==='thinking'){_0x14aa59=!![];isUserVisibleThinking(_0x1355a8)&&_0x2f8e54['push']({'type':_0x27499e(0x404,_0xcaced6._0x5722b8,_0xcaced6._0x4126fa,0x36d),'thinking':_0x15d7ac[_0x27499e(_0xcaced6._0x32daa9,_0xcaced6._0x261cc1,_0xcaced6._0x47fb60,_0xcaced6._0x2c8a39)],'signature':_0x15d7ac[_0x27499e(_0xcaced6._0x4c9cbb,_0xcaced6._0x47d0fa,0x47d,0x45c)]});continue;}if(_0x15d7ac[_0x3c6ccf(_0xcaced6._0xcfce5f,-0xc5,_0xcaced6._0x3b185d,_0xcaced6._0x1eb420)]===_0x3c6ccf(_0xcaced6._0x341b54,_0xcaced6._0x31e019,0xc1,_0xcaced6._0x3c2d06)){_0x14aa59=!![];isUserVisibleThinking(_0x1355a8)&&_0x2f8e54[_0x27499e(_0xcaced6._0x3267e8,_0xcaced6._0x2eeaae,0x2c2,_0xcaced6._0x137a09)]({'type':_0x27499e(0x2df,0x2fb,0x2c1,0x26e),'data':_0x15d7ac[_0x27499e(0x3b0,_0xcaced6._0x1dbea4,_0xcaced6._0xade67,0x2c7)]});continue;}if(_0x15d7ac[_0x27499e(_0xcaced6._0x133f90,0x308,0x386,0x3ba)]===_0x27499e(0x267,_0xcaced6._0x4052f2,0x323,_0xcaced6._0x2d1bb5)){_0x15d7ac['text'][_0x27499e(0x474,0x487,_0xcaced6._0x5339cd,0x4d2)]>0x0&&_0x2f8e54[_0x3c6ccf(-_0xcaced6._0x30e410,-0xe4,-_0xcaced6._0x55e940,-_0xcaced6._0x9ba2e)](structuredClone(_0x15d7ac));continue;}_0x2f8e54[_0x27499e(0x24d,_0xcaced6._0x56c7d2,0x2c2,_0xcaced6._0x408398)](structuredClone(_0x15d7ac));}return{'id':_0x48b038['id']??_0x27499e(0x334,0x263,_0xcaced6._0x163d27,0x362)+Date['now'](),'content':_0x2f8e54,'stopReason':_0x2f8e54[_0x3c6ccf(-0xcb,-_0xcaced6._0x410009,-0xaa,-_0xcaced6._0x28bb8e)](_0x46ef47=>_0x46ef47[_0x3c6ccf(0xc1,0x81,0x9,-0xb)]===_0x3c6ccf(-0x106,-0xe9,-0x6d,-0x2a))?_0x27499e(_0xcaced6._0x1c2a39,0x23b,_0xcaced6._0x14f114,0x327):_0x48b038[_0x3c6ccf(-0x129,-0x3e,-_0xcaced6._0x48fda0,-_0xcaced6._0x181a41)]===_0x27499e(_0xcaced6._0x553941,_0xcaced6._0x1c2a39,0x310,_0xcaced6._0x1b9811)?_0x3c6ccf(-0x126,-0x12c,-_0xcaced6._0x181a41,_0xcaced6._0x62e5d4):'end_turn','usage':{'inputTokens':(_0x48b038[_0x3c6ccf(_0xcaced6._0x1390da,0xf3,_0xcaced6._0x1996bd,_0xcaced6._0x580ceb)]?.[_0x27499e(0x49a,_0xcaced6._0x521b5b,_0xcaced6._0x1c15d6,_0xcaced6._0x109946)]??0x0)+(_0x48b038[_0x3c6ccf(_0xcaced6._0xf8bf9,0x146,_0xcaced6._0x277aa1,0x40)]?.['cache_read_input_tokens']??0x0)+(_0x48b038[_0x27499e(_0xcaced6._0x1fe919,0x3bd,_0xcaced6._0x18f1fe,_0xcaced6._0x1d0158)]?.[_0x3c6ccf(-_0xcaced6._0x2afb51,-_0xcaced6._0x8f8f72,-_0xcaced6._0x56a062,-_0xcaced6._0x2bb824)]??0x0),'outputTokens':_0x48b038[_0x3c6ccf(0x163,0x127,_0xcaced6._0x14fa0f,0x46)]?.[_0x27499e(_0xcaced6._0x5ae804,_0xcaced6._0x6282bf,_0xcaced6._0x35c02d,0x3a1)]??0x0,..._0x48b038[_0x27499e(0x474,_0xcaced6._0xfb4da6,_0xcaced6._0x4117b8,_0xcaced6._0x2df4e)]?.[_0x3c6ccf(-0x6,-0xa,-0x2a,-_0xcaced6._0x3ea1e4)]?{'cacheReadInputTokens':_0x48b038[_0x3c6ccf(-_0xcaced6._0x55bf82,_0xcaced6._0x3db192,0xad,_0xcaced6._0x5de4db)][_0x3c6ccf(-_0xcaced6._0x532497,_0xcaced6._0x4dd3c0,-_0xcaced6._0x1699ce,0x2a)]}:{},..._0x48b038[_0x27499e(_0xcaced6._0x122328,0x48d,_0xcaced6._0x18f1fe,0x4d5)]?.[_0x27499e(0x283,0x1f4,_0xcaced6._0x36bca8,_0xcaced6._0x35c02d)]?{'cacheCreationInputTokens':_0x48b038[_0x3c6ccf(0x5b,0x128,0xad,0x25)]['cache_creation_input_tokens']}:{}},..._0x14aa59?{'providerState':{'anthropicAssistantContent':structuredClone(_0x42c2c5)}}:{}};}var AnthropicMessagesStreamParser=class{['blocks']=new Map();[_0xc7d8a6(-0xf8,0x28,0x52,-0x21)]=0x0;['cacheReadInputTokens']=0x0;[_0xc7d8a6(-0x1d9,-0x182,-0x171,-0x198)]=0x0;[_0xc7d8a6(-0x154,-0x168,-0x238,-0x16b)]=_0xc7d8a6(-0x174,-0x1bb,-0x1ed,-0x18b)+Date[_0xc7d8a6(-0x17e,-0xe9,0x3,-0xcf)]();[_0xc7d8a6(-0xcd,-0x19f,-0xe4,-0x14b)]=0x0;['request'];[_0xc7d8a6(0x5,-0x65,-0x10e,-0x91)]=_0x74a064(0xcc,0x60,0xd9,0x113);constructor(_0x4e7730){const _0x27b96c={_0x4cd926:0x3c,_0x19ac7d:0x40},_0xe5788f={_0x421296:0x82};function _0x4608ec(_0x262aeb,_0x43b656,_0x4c93fa,_0xae0ff7){return _0x74a064(_0x262aeb-0x132,_0x43b656-_0xe5788f._0x421296,_0x262aeb- -0x18,_0xae0ff7);}this[_0x4608ec(-_0x27b96c._0x4cd926,_0x27b96c._0x19ac7d,0x9b,0x31)]=_0x4e7730;}[_0xc7d8a6(0x19,0x11,0x53,-0x41)](_0x2b60bf){const _0x377922={_0x2d1ced:0xd,_0x5e84ec:0x75,_0x971ae5:0x58,_0x13f7e9:0x20,_0x2ed6df:0xff,_0x47d8c4:0x54,_0x5c3a1e:0x50,_0xcee0b9:0xd1,_0x138e4c:0x15c,_0xe91fcd:0x39,_0x2d2752:0x8f,_0x4a3670:0xa9,_0x40d79d:0x5e,_0x2309ee:0xf2,_0x2a0a8a:0x117,_0x231233:0x118,_0x5bc2d8:0x139,_0x3da769:0xf1,_0x14d48f:0x145,_0x2578b8:0xee,_0x731ecf:0x1e,_0x387221:0x68,_0x22db86:0x208,_0x27b9d1:0x151,_0x2068a5:0x189,_0x247ad9:0x9b,_0x55b9ae:0xc5,_0x1273a1:0x9e,_0x4e6701:0x30,_0x54daa8:0x34,_0x3317e6:0x177,_0x5a61d3:0x11,_0x472f8a:0x1cc,_0x3de8e5:0x21a,_0x25d6f1:0x1f9,_0x35f3b2:0x210,_0x41d9a8:0x1be,_0x3bb58b:0x59,_0x12800c:0xb3,_0x4bd7dd:0x18,_0x8abb14:0x2b,_0xed849b:0x46,_0x4c0436:0x61,_0x5b1283:0x3a,_0x517716:0xb1,_0x58d54d:0x12e,_0x3c6153:0x1d0,_0x4ef824:0x56,_0x42aaf1:0x0,_0xe8b756:0x6,_0x493a8d:0x23,_0xcc6980:0x2e,_0x2c55a0:0x15d,_0x44c18a:0xa,_0x123dc9:0x225,_0x697b22:0xa7,_0x116cf3:0x107,_0xa5318c:0xcd,_0x4ca750:0x93,_0x31d069:0x7c,_0x3f6582:0x17a,_0x1184d7:0x6,_0x242e53:0x17,_0x3e7447:0x119,_0x3b8a29:0x4b,_0x1a5452:0x1a4,_0x18231b:0xf7,_0x31cf4d:0x1d1,_0x380f52:0x34,_0x47902b:0x266,_0x40d773:0x2d5,_0x3c9824:0x57,_0x5a6df3:0x69,_0x46deb9:0x119,_0x3605cd:0x1f3,_0x1f6926:0x69,_0x3449ec:0x143,_0x38bf6a:0x64,_0x25baad:0x196,_0x322eb5:0xc9,_0x917ee4:0x1a9,_0x390ab2:0x99,_0x5cf5eb:0x4c,_0x4bb6dd:0x62,_0x3b665b:0x114,_0x13998a:0xe2,_0x57d530:0x113,_0x22e671:0x225,_0x4c35f4:0x2e3,_0x2a094b:0x14c,_0x1ea0ed:0xfa,_0xaaa7a8:0xcd,_0x3936a9:0x21,_0x29f0ea:0xc5,_0x40c26e:0x10,_0xe4438e:0x10a,_0xd95296:0x112,_0x325644:0x1b,_0x4d7bb9:0xec,_0x2fd8df:0x7b,_0x39b94d:0xcd,_0x2bb89b:0x1f,_0x28544f:0x9a,_0x5e5fc2:0x225,_0x43db26:0x28a,_0x23422e:0x158,_0x2cda1a:0x1dc,_0x1953f1:0x97,_0x599fa9:0x84,_0x9407eb:0x64,_0x39cbc3:0x8f,_0x37c765:0x69,_0x24eb9d:0xdc,_0x48e986:0xbb,_0x4143cc:0x137,_0x45d689:0x4e,_0x8634ee:0x139,_0x390cba:0x115,_0x7b9047:0x120,_0x54c98a:0x180,_0xb41f62:0xb1,_0x2c7be9:0x14f,_0x402407:0x270,_0x2bcf70:0xd5,_0xb336c9:0x1d0,_0x3082c0:0x82,_0x437889:0x133,_0x2bbb53:0xd3,_0x17ef7d:0x96,_0x459876:0x128,_0x5e1a9a:0xab,_0x4f014d:0x1a9,_0x3582d8:0x16,_0x3765bf:0x15c,_0x2f7e78:0xa9,_0x1e3dfc:0x6c,_0x116a09:0x6f,_0x11eaec:0x83,_0x146dd:0x195,_0x34d539:0x10a,_0x25388d:0x119,_0x56a828:0x15b,_0x57f266:0x56,_0x36c820:0x15a,_0x16ec9c:0x69,_0x2e4bab:0x89,_0x5d8b97:0x15,_0x117518:0x198,_0x15b45d:0x1bd,_0x127f72:0xdb,_0x56c31c:0xf9,_0x389989:0x4e,_0xd6791b:0x73,_0x58b92e:0x3d,_0x573a11:0x138,_0x2d6e17:0xb2,_0x490c8d:0xc,_0x596359:0x9c,_0x21a4fc:0x5b,_0x5ebadc:0x6c,_0x443c2:0x69,_0x418f2c:0x60,_0x19032f:0x18,_0x3f4a76:0x76,_0x513b69:0x21f,_0x2aba89:0x259,_0x440f36:0x219,_0x1144b:0x163,_0x742aaa:0x38,_0x11286d:0xb9,_0x24f66e:0x31,_0x499bec:0xb,_0x271880:0x3b,_0x1ee8c4:0x61,_0x46ffa1:0x17e,_0xc51d28:0xab,_0x20f1ec:0x132,_0x444694:0x5,_0x2d9302:0x10e,_0x42b52a:0x3,_0x3c79e5:0x95,_0x3955a6:0x208,_0x52df17:0x270,_0x3a1a50:0x216,_0x5f0214:0x2d1,_0x1ef482:0x290,_0x51d27d:0x205,_0x149e2e:0x7c,_0x28d678:0x9d,_0x23f949:0x33,_0x3f8268:0x42,_0x18b3df:0x1b2,_0x31a310:0xcd,_0x4fbcef:0x26,_0x1366e8:0x2,_0x1ba305:0x72,_0x46bee6:0xe6,_0x30603d:0x87,_0x5c0800:0x22,_0x3ffa60:0x66,_0x4a49a4:0xd6,_0x345f41:0x22,_0x40a04b:0x298,_0x46b2ef:0x153,_0x51f43a:0x29a,_0x32139f:0x68,_0x1bf3ec:0x6,_0x3829d0:0x78},_0xe72b56={_0x57fb42:0x19c,_0x3d2255:0x4f},_0x2a37c8={_0x9cc86d:0x14b,_0x57d4ef:0xdf},_0x512f79=_0x2b60bf[_0x4d86a8(-0x18,_0x377922._0x2d1ced,_0x377922._0x5e84ec,_0x377922._0x971ae5)]('\x0a'),_0x4b4c42=_0x512f79[_0x4d86a8(-0x9a,_0x377922._0x13f7e9,-0x6a,-_0x377922._0x2ed6df)](_0x327d5a=>_0x327d5a[_0x5d02ee(0x11b,0x12f,0x9d,0xa6)](_0x4d86a8(-0x112,-0x40,-0x55,-0x8e)))?.['slice'](0x6)['trim'](),_0x196486=_0x512f79[_0x4d86a8(-_0x377922._0x47d8c4,-_0x377922._0x5c3a1e,-_0x377922._0xcee0b9,-_0x377922._0x138e4c)](_0x174fb2=>_0x174fb2['startsWith']('data:'))[_0x4d86a8(0x171,-_0x377922._0xe91fcd,_0x377922._0x2d2752,_0x377922._0x4a3670)](_0x323c94=>_0x323c94[_0x5d02ee(0x101,0x14f,0x10e,0xe9)](0x5)[_0x4d86a8(-0x6b,-0x165,-0xbc,-0x153)]())[_0x4d86a8(-_0x377922._0x40d79d,-_0x377922._0x2309ee,-0x7a,-0xe3)]('\x0a')['trim']();if(_0x196486['length']===0x0||_0x196486===_0x4d86a8(-_0x377922._0x40d79d,-_0x377922._0x2a0a8a,-0x8b,-0x67))return[];function _0x5d02ee(_0x72008c,_0x371c6d,_0x514918,_0x1da844){return _0x74a064(_0x72008c-_0x2a37c8._0x9cc86d,_0x371c6d-0x1d2,_0x72008c-_0x2a37c8._0x57d4ef,_0x371c6d);}function _0x4d86a8(_0x2a60b3,_0x3b4573,_0x12dcf5,_0x44f22f){return _0x74a064(_0x2a60b3-0x0,_0x3b4573-_0xe72b56._0x57fb42,_0x12dcf5- -_0xe72b56._0x3d2255,_0x2a60b3);}const _0x5ef22c=JSON[_0x5d02ee(0x127,_0x377922._0x231233,_0x377922._0x5bc2d8,0xde)](_0x196486);switch(_0x4b4c42){case _0x4d86a8(_0x377922._0x3da769,_0x377922._0x14d48f,0xb0,_0x377922._0x2578b8):{const _0x18e00c=_0x5ef22c['message'];this['messageId']=_0x18e00c?.['id']??this[_0x4d86a8(-_0x377922._0x731ecf,-0x110,-_0x377922._0x387221,-0x25)],this['inputTokens']=_0x18e00c?.['usage']?.[_0x5d02ee(_0x377922._0x22db86,0x16c,_0x377922._0x27b9d1,_0x377922._0x2068a5)]??this['inputTokens'],this['cacheReadInputTokens']=_0x18e00c?.[_0x4d86a8(_0x377922._0x247ad9,_0x377922._0x55b9ae,_0x377922._0x1273a1,-_0x377922._0x4e6701)]?.[_0x4d86a8(0x50,_0x377922._0x54daa8,-0x39,0x22)]??this[_0x4d86a8(_0x377922._0x3317e6,_0x377922._0x5a61d3,0xd7,0x192)],this['cacheCreationInputTokens']=_0x18e00c?.[_0x5d02ee(_0x377922._0x472f8a,0x225,_0x377922._0x3de8e5,_0x377922._0x25d6f1)]?.['cache_creation_input_tokens']??this[_0x5d02ee(_0x377922._0x35f3b2,0x290,0x21a,_0x377922._0x41d9a8)];break;}case'content_block_start':{const _0x163a3a=typeof _0x5ef22c[_0x5d02ee(0x61,-0x3a,-_0x377922._0x3bb58b,0x27)]===_0x5d02ee(_0x377922._0x12800c,_0x377922._0x4bd7dd,_0x377922._0x8abb14,_0x377922._0xed849b)?_0x5ef22c[_0x5d02ee(_0x377922._0x4c0436,_0x377922._0x5b1283,0xae,_0x377922._0x517716)]:0x0,_0x59a2a3=_0x5ef22c[_0x5d02ee(_0x377922._0x58d54d,_0x377922._0x3c6153,0x1b3,_0x377922._0x4ef824)];if(_0x59a2a3?.[_0x4d86a8(_0x377922._0x42aaf1,-0xe8,-_0x377922._0xe8b756,_0x377922._0x493a8d)]===_0x5d02ee(0xb2,0x148,-_0x377922._0xcc6980,_0x377922._0x2c55a0)&&_0x59a2a3['id']&&_0x59a2a3[_0x5d02ee(0x91,-0x8,-_0x377922._0x44c18a,-_0x377922._0x2d1ced)])return this[_0x5d02ee(_0x377922._0x123dc9,0x1ac,0x2c8,0x2b1)]['set'](_0x163a3a,{'id':_0x59a2a3['id'],'index':_0x163a3a,'inputJson':JSON[_0x5d02ee(_0x377922._0x138e4c,_0x377922._0x697b22,_0x377922._0x116cf3,_0x377922._0xa5318c)](_0x59a2a3[_0x5d02ee(0x195,0x1af,0x26d,0x159)]??{}),'kind':_0x4d86a8(-0x78,-_0x377922._0x4ca750,-_0x377922._0x31d069,-0xf7),'name':_0x59a2a3[_0x4d86a8(0x17,-0x2c,-0x9d,-0x114)]}),[{'type':_0x5d02ee(0xc7,0x1a0,0xbc,_0x377922._0x3f6582),'id':_0x59a2a3['id'],'index':_0x163a3a,'name':_0x59a2a3['name']}];if(_0x59a2a3?.[_0x4d86a8(-0x60,-0x9f,-_0x377922._0x1184d7,_0x377922._0x242e53)]===_0x5d02ee(_0x377922._0x3e7447,_0x377922._0x3b8a29,0x1c7,0x179)){this[_0x4d86a8(_0x377922._0x1a5452,0x5d,_0x377922._0x18231b,_0x377922._0x31cf4d)]['set'](_0x163a3a,{'index':_0x163a3a,'kind':_0x5d02ee(0x119,0xe8,_0x377922._0x380f52,0x1a5),'signature':typeof _0x59a2a3['signature']===_0x5d02ee(0x69,-0x7d,-0x3e,-0x57)?_0x59a2a3[_0x5d02ee(0x21f,_0x377922._0x47902b,0x168,_0x377922._0x40d773)]:'','thinking':typeof _0x59a2a3[_0x5d02ee(_0x377922._0x55b9ae,0x78,0x8d,_0x377922._0x3c9824)]===_0x5d02ee(_0x377922._0x5a6df3,0xd2,0x1f,-0x75)?_0x59a2a3[_0x4d86a8(-0x9a,0x60,-0x69,-0x126)]:typeof _0x59a2a3[_0x5d02ee(_0x377922._0x46deb9,_0x377922._0x3605cd,0x164,0x1df)]===_0x5d02ee(_0x377922._0x1f6926,_0x377922._0x3449ec,0xeb,-_0x377922._0x38bf6a)?String(_0x59a2a3['thinking']):''});break;}if(_0x59a2a3?.['type']===_0x5d02ee(0x1e0,0x11f,0x22b,0x162)){this[_0x4d86a8(_0x377922._0x25baad,_0x377922._0x322eb5,0xf7,0xd1)][_0x5d02ee(0x1fb,_0x377922._0x917ee4,0x14e,0x13e)](_0x163a3a,{'index':_0x163a3a,'kind':'redacted_thinking','data':typeof _0x59a2a3[_0x4d86a8(_0x377922._0x390ab2,-0xd4,-_0x377922._0x5cf5eb,_0x377922._0x4bb6dd)]===_0x4d86a8(-0x148,-0x1b,-0xc5,-_0x377922._0x3b665b)?String(_0x59a2a3[_0x5d02ee(_0x377922._0x13998a,_0x377922._0x57d530,0x16f,0xc2)]):''});break;}this[_0x5d02ee(_0x377922._0x22e671,_0x377922._0x4c35f4,0x17f,_0x377922._0x2a094b)][_0x4d86a8(_0x377922._0x1ea0ed,-0x7,_0x377922._0xaaa7a8,0x3d)](_0x163a3a,{'index':_0x163a3a,'kind':_0x4d86a8(-0xec,-_0x377922._0x3936a9,-_0x377922._0x1f6926,0x63),'text':_0x59a2a3?.[_0x5d02ee(_0x377922._0x29f0ea,_0x377922._0x40c26e,_0x377922._0xe4438e,0x1e)]??''});break;}case _0x4d86a8(-_0x377922._0xd95296,-_0x377922._0x325644,-0x5e,-0xd0):{const _0xa213f3=typeof _0x5ef22c['index']===_0x4d86a8(-_0x377922._0x4d7bb9,0x12,-_0x377922._0x2fd8df,-_0x377922._0x39b94d)?_0x5ef22c[_0x5d02ee(0x61,_0x377922._0x2bb89b,_0x377922._0x28544f,0xf0)]:0x0,_0x47082b=this[_0x5d02ee(_0x377922._0x5e5fc2,_0x377922._0x43db26,0x2d2,0x1f0)][_0x5d02ee(_0x377922._0x23422e,0x15f,0x1c7,_0x377922._0x2cda1a)](_0xa213f3),_0x5e8578=_0x5ef22c[_0x5d02ee(0x83,0x73,0x6b,0x10a)];if(!_0x47082b||!_0x5e8578?.[_0x5d02ee(0x128,0x1fd,0x9a,0x8d)])break;if(_0x5e8578[_0x4d86a8(_0x377922._0x1953f1,0x39,-0x6,_0x377922._0x599fa9)]===_0x5d02ee(0x12f,0x1d9,_0x377922._0x9407eb,_0x377922._0x5c3a1e)&&_0x47082b[_0x4d86a8(-_0x377922._0x39cbc3,0xf,-0xc2,-0x1a2)]===_0x5d02ee(0xc5,_0x377922._0x2ed6df,0x19b,0x116)&&typeof _0x5e8578['text']==='string')return _0x47082b[_0x4d86a8(0x10,-0xa0,-_0x377922._0x37c765,-_0x377922._0x24eb9d)]+=_0x5e8578[_0x5d02ee(0xc5,_0x377922._0x48e986,_0x377922._0x4143cc,0x25)],[{'type':'content_delta','index':_0xa213f3,'text':_0x5e8578[_0x4d86a8(-0x3c,0x30,-0x69,_0x377922._0x45d689)]}];if(_0x5e8578[_0x5d02ee(0x128,0x185,_0x377922._0x8634ee,_0x377922._0x390cba)]===_0x4d86a8(0x1f,0x45,-0x85,-_0x377922._0x7b9047)&&_0x47082b[_0x4d86a8(-0x1a8,0x11,-0xc2,-0x69)]===_0x4d86a8(-0x149,-0xad,-0x7c,-0x1d)&&typeof _0x5e8578[_0x4d86a8(-_0x377922._0x54c98a,-0x142,-_0x377922._0xb41f62,-_0x377922._0x2c7be9)]==='string')return _0x47082b[_0x5d02ee(0x21d,0x28f,0x28c,_0x377922._0x402407)]==='{}'&&(_0x47082b[_0x4d86a8(0xfb,_0x377922._0x2bcf70,0xef,_0x377922._0xb336c9)]=''),_0x47082b['inputJson']+=_0x5e8578[_0x5d02ee(0x7d,_0x377922._0x3082c0,_0x377922._0x437889,0x10d)],[{'type':'tool_use_delta','id':_0x47082b['id'],'index':_0xa213f3,'inputDelta':_0x5e8578[_0x5d02ee(0x7d,_0x377922._0x2bbb53,_0x377922._0x17ef7d,0x8c)]}];if(_0x5e8578[_0x5d02ee(_0x377922._0x459876,_0x377922._0x5e1a9a,0x54,_0x377922._0x4f014d)]===_0x4d86a8(_0x377922._0x3582d8,_0x377922._0x3765bf,_0x377922._0x2f7e78,_0x377922._0x2309ee)&&_0x47082b[_0x5d02ee(_0x377922._0x1e3dfc,0xe3,-_0x377922._0x116a09,0xf9)]===_0x5d02ee(0x119,_0x377922._0x11eaec,_0x377922._0x146dd,_0x377922._0x34d539)){const _0x8f8870=typeof _0x5e8578[_0x5d02ee(_0x377922._0x25388d,_0x377922._0x56a828,_0x377922._0x57f266,_0x377922._0x36c820)]===_0x5d02ee(_0x377922._0x16ec9c,0xf,0x27,-0x13)?String(_0x5e8578[_0x4d86a8(_0x377922._0x2e4bab,-0x33,-_0x377922._0x5d8b97,-0xbb)]):'';if(_0x8f8870[_0x4d86a8(_0x377922._0x117518,_0x377922._0x15b45d,_0x377922._0x127f72,_0x377922._0x56c31c)]>0x0){_0x47082b[_0x5d02ee(0x119,0xa5,_0x377922._0x389989,0x132)]+=_0x8f8870;if(isUserVisibleThinking(this[_0x4d86a8(_0x377922._0x40d79d,_0x377922._0x4c0436,-_0x377922._0xd6791b,-0xa8)]))return[{'type':_0x4d86a8(-_0x377922._0x58b92e,_0x377922._0x573a11,0x88,0xe0),'index':_0xa213f3,'thinking':_0x8f8870}];}}if(_0x5e8578[_0x4d86a8(-_0x377922._0x2d6e17,_0x377922._0x490c8d,-0x6,-0xea)]===_0x4d86a8(_0x377922._0xcc6980,-_0x377922._0x596359,-0x51,-_0x377922._0x21a4fc)&&_0x47082b[_0x5d02ee(_0x377922._0x5ebadc,0x60,-0x26,0x3e)]==='thinking'){const _0x319907=typeof _0x5e8578[_0x4d86a8(0x55,0x34,0xf1,0x1a)]===_0x5d02ee(_0x377922._0x443c2,-_0x377922._0x418f2c,_0x377922._0x19032f,_0x377922._0x3f4a76)?String(_0x5e8578[_0x5d02ee(_0x377922._0x513b69,_0x377922._0x2aba89,_0x377922._0x440f36,_0x377922._0x117518)]):'';if(_0x319907[_0x4d86a8(0x10d,_0x377922._0x1144b,_0x377922._0x127f72,_0x377922._0x742aaa)]>0x0){_0x47082b['signature']=_0x319907;if(isUserVisibleThinking(this[_0x5d02ee(0xbb,_0x377922._0x11286d,-0x19,_0x377922._0x493a8d)]))return[{'type':_0x4d86a8(_0x377922._0x24f66e,-0x95,-_0x377922._0x499bec,0xd7),'index':_0xa213f3,'signature':_0x319907}];}}break;}case _0x5d02ee(0xe1,_0x377922._0x271880,_0x377922._0x1ee8c4,_0x377922._0x46ffa1):{const _0x47b51c=_0x5ef22c[_0x4d86a8(-0xf0,-_0x377922._0x1953f1,-_0x377922._0xc51d28,-_0x377922._0x20f1ec)],_0x43c0cc=_0x5ef22c[_0x4d86a8(_0x377922._0xcc6980,-_0x377922._0x444694,_0x377922._0x1273a1,_0x377922._0x2d9302)];this[_0x4d86a8(-_0x377922._0x42b52a,-0x96,-_0x377922._0x3c79e5,0xe)]=_0x43c0cc?.[_0x5d02ee(_0x377922._0x3955a6,0x202,_0x377922._0x52df17,_0x377922._0x3317e6)]??this[_0x4d86a8(-0x136,0x11,-0x95,-0x11b)],this[_0x5d02ee(0x205,0x156,0x235,_0x377922._0x3a1a50)]=_0x43c0cc?.['cache_read_input_tokens']??this['cacheReadInputTokens'],this[_0x5d02ee(_0x377922._0x35f3b2,_0x377922._0x5f0214,_0x377922._0x1ef482,_0x377922._0x51d27d)]=_0x43c0cc?.[_0x5d02ee(_0x377922._0x149e2e,_0x377922._0x28d678,_0x377922._0x23f949,-0x2a)]??this[_0x4d86a8(0x162,_0x377922._0x3f8268,0xe2,_0x377922._0x18b3df)],this['outputTokens']=_0x43c0cc?.[_0x5d02ee(0x67,_0x377922._0x31a310,-_0x377922._0x5cf5eb,_0x377922._0x4fbcef)]??this['outputTokens'],this[_0x4d86a8(0x5d,_0x377922._0x1366e8,_0x377922._0x1ba305,0xfe)]=_0x47b51c?.[_0x4d86a8(-0xeb,-_0x377922._0x46bee6,-0x8d,-0x80)]==='tool_use'?'tool_use':'end_turn';break;}case _0x4d86a8(_0x377922._0x30603d,0x98,_0x377922._0x5c0800,_0x377922._0x3ffa60):{const _0x1b6a4a=_0x5ef22c[_0x4d86a8(_0x377922._0x46bee6,_0x377922._0x4a49a4,_0x377922._0x345f41,-0x63)];throw new ProviderStreamEventError(_0x1b6a4a?.[_0x4d86a8(0x57,0x135,0x5a,_0x377922._0xd6791b)]??_0x5d02ee(0x1cb,_0x377922._0x40a04b,_0x377922._0x46b2ef,_0x377922._0x51f43a),{'code':_0x1b6a4a?.[_0x4d86a8(_0x377922._0x9407eb,-_0x377922._0x32139f,-_0x377922._0x1bf3ec,_0x377922._0x3829d0)],'retryable':!![]});}}return[];}[_0x74a064(0x6d,0x5e,0xf4,0x93)](){const _0x4db863={_0x281bd1:0x1f6,_0x321f35:0x20c,_0x582edc:0x270,_0x1a4934:0x1e0,_0x376676:0x2b8,_0xece89b:0xff,_0x27018f:0x254,_0x2d4c44:0x159,_0x2885ed:0x284,_0x41c6fd:0x2b6,_0x146b29:0x213,_0x10fbcb:0x24b,_0x1915e5:0x13c,_0x2e77c5:0x107,_0x53b010:0x1e1,_0x2fe1c5:0x1d9,_0x482db8:0x1aa,_0x5deca5:0x21e,_0x3f376c:0x14a,_0xa61d97:0x157,_0x3e39f0:0x179,_0x511e60:0x1f7,_0x58ba77:0x29,_0xe74a29:0x19a,_0x204401:0x34b,_0x277e2f:0x1df,_0x59d5ef:0x320,_0x5d07ce:0x2ac,_0x20d04c:0x2bd,_0x39a4c6:0x120,_0x2fd5c7:0xa6,_0x58e8aa:0x164,_0x1af4ac:0x8b,_0x2054c4:0xba,_0x1ec804:0x1a1,_0xfc2204:0x241,_0x188e48:0x18e,_0x14f83b:0x1b6,_0x59bd4e:0x188,_0xad7763:0x19c,_0x212fde:0xe8,_0x50aa1c:0x1c4,_0x4980d2:0x217,_0x1cd7f6:0x277,_0x7af3d:0x1f5,_0x695b39:0x27c,_0x4a3369:0xa9},_0x4bc18c={_0x4d26a4:0x1e},_0x31f1f9={_0x282797:0x103,_0x397b5a:0x92},_0x267efc=Array[_0x19689e(-_0x4db863._0x281bd1,-0x18a,-_0x4db863._0x321f35,-_0x4db863._0x582edc)](this['blocks'][_0x19689e(-0x23b,-_0x4db863._0x1a4934,-_0x4db863._0x376676,-_0x4db863._0xece89b)]())['sort']((_0xea4a3a,_0x4d1b74)=>_0xea4a3a[_0x19689e(-0x224,-0x262,-0x2f6,-0x1a5)]-_0x4d1b74[_0x19689e(-0x22c,-0x262,-0x31c,-0x1c7)]),_0x157a7e=[];function _0x19689e(_0x572ba5,_0x250444,_0x366f82,_0x36bd21){return _0xc7d8a6(_0x572ba5-0x21,_0x36bd21,_0x366f82-_0x31f1f9._0x282797,_0x250444- -_0x31f1f9._0x397b5a);}function _0x174d5f(_0x41117c,_0x3e35ef,_0x19c6e9,_0x1dd75e){return _0xc7d8a6(_0x41117c-_0x4bc18c._0x4d26a4,_0x19c6e9,_0x19c6e9-0x85,_0x1dd75e- -0xdf);}for(const _0x55c9ed of _0x267efc){if(_0x55c9ed['kind']===_0x19689e(-_0x4db863._0x27018f,-0x1fe,-0x197,-_0x4db863._0x2d4c44)){_0x55c9ed[_0x174d5f(-_0x4db863._0x2885ed,-_0x4db863._0x41c6fd,-_0x4db863._0x146b29,-_0x4db863._0x10fbcb)][_0x174d5f(-_0x4db863._0x1915e5,-0x34,-0x5b,-_0x4db863._0x2e77c5)]>0x0&&_0x157a7e['push']({'type':'text','text':_0x55c9ed[_0x19689e(-_0x4db863._0x53b010,-0x1fe,-_0x4db863._0x2fe1c5,-0x20f)]});continue;}if(_0x55c9ed['kind']===_0x19689e(-0x1ee,-_0x4db863._0x482db8,-0x245,-0x138)){_0x157a7e[_0x19689e(-0x29b,-0x25f,-0x2b9,-_0x4db863._0x5deca5)]({'type':_0x19689e(-0x234,-_0x4db863._0x482db8,-_0x4db863._0x3f376c,-0x12a),'thinking':_0x55c9ed[_0x174d5f(-0x267,-_0x4db863._0xa61d97,-_0x4db863._0x3e39f0,-_0x4db863._0x511e60)],'signature':_0x55c9ed[_0x19689e(_0x4db863._0x58ba77,-0xa4,0x30,-0x3)]});continue;}if(_0x55c9ed['kind']===_0x174d5f(-0xe8,-_0x4db863._0xe74a29,-0x150,-0x130)){_0x157a7e[_0x174d5f(-_0x4db863._0x204401,-_0x4db863._0x277e2f,-_0x4db863._0x59d5ef,-0x2ac)]({'type':'redacted_thinking','data':_0x55c9ed['data']});continue;}_0x157a7e[_0x174d5f(-_0x4db863._0x27018f,-0x236,-0x324,-_0x4db863._0x5d07ce)]({'type':'tool_use','id':_0x55c9ed['id'],'name':_0x55c9ed[_0x19689e(-_0x4db863._0x20d04c,-0x232,-0x207,-0x29d)],'input':parseToolInput(_0x55c9ed[_0x19689e(-_0x4db863._0x39a4c6,-_0x4db863._0x2fd5c7,-_0x4db863._0x58e8aa,-0x99)][_0x19689e(-_0x4db863._0x1af4ac,-_0x4db863._0x2054c4,-0x165,-_0x4db863._0x1ec804)]>0x0?_0x55c9ed['inputJson']:'{}')});}return parseAnthropicResponse({'id':this[_0x19689e(-0x125,-0x1fd,-_0x4db863._0xfc2204,-0x258)],'type':_0x174d5f(-_0x4db863._0x188e48,-0xe2,-_0x4db863._0x14f83b,-_0x4db863._0x59bd4e),'role':_0x19689e(-_0x4db863._0xad7763,-_0x4db863._0x212fde,-0xe2,-0x81),'content':_0x157a7e,'stop_reason':this['stopReason'],'stop_sequence':null,'usage':{'input_tokens':this[_0x174d5f(-_0x4db863._0x50aa1c,-0x23e,-_0x4db863._0x4980d2,-_0x4db863._0x1cd7f6)],'output_tokens':this[_0x19689e(-0x253,-0x1dd,-_0x4db863._0x7af3d,-_0x4db863._0x695b39)],'cache_read_input_tokens':this['cacheReadInputTokens'],'cache_creation_input_tokens':this[_0x174d5f(-0x1c1,-_0x4db863._0x4a3369,-0x55,-0x100)]}},this['request']);}};function createAnthropicSurfaces(){const _0x4340e1={_0x55db04:0x2db,_0xa5f007:0x32c,_0x401261:0x34d},_0x1df69a={_0x31d51d:0xc5},_0x810e67={_0x5a74f2:0x49};function _0xba7c13(_0x343bb9,_0xeb4602,_0x2cd8b2,_0x248e50){return _0x74a064(_0x343bb9-_0x810e67._0x5a74f2,_0xeb4602-0x1ab,_0xeb4602-0x26,_0x248e50);}function _0x1e5743(_0x443fe7,_0x13c4c2,_0x36a40d,_0x4f7444){return _0x74a064(_0x443fe7-0x129,_0x13c4c2-_0x1df69a._0x31d51d,_0x36a40d-0x22c,_0x4f7444);}return[{'id':ANTHROPIC_MESSAGES_SURFACE,'transport':_0x1e5743(0x38c,0x2b5,0x36d,_0x4340e1._0x55db04),'createRequest'(_0xa8e5ae){return createAnthropicRequest(_0xa8e5ae,![]);},'parseResponse'(_0x3abf4c,_0x2d9ba6){return parseAnthropicResponse(_0x3abf4c,_0x2d9ba6);}},{'id':ANTHROPIC_MESSAGES_STREAM_SURFACE,'transport':_0x1e5743(_0x4340e1._0xa5f007,_0x4340e1._0x401261,0x2fd,0x251),'createRequest'(_0x40b6b6){return createAnthropicRequest(_0x40b6b6,!![]);},'createStreamParser'(_0x17e3bd){return new AnthropicMessagesStreamParser(_0x17e3bd);}}];}var StaticModelSurfaceRouter=class{[_0x74a064(0x193,0x198,0xf2,0x92)];[_0x74a064(0x63,0x1a5,0x138,0xb5)];constructor(_0xcb6629){const _0x4bd986={_0x5ac13e:0x440,_0x66f277:0x403,_0x508869:0x3c8,_0x5b2e6b:0x4c6},_0x3cd9b9={_0xc93939:0x10c},_0x2d0804={_0x57f5c7:0x152};this[_0x311fc4(0x3df,0x36f,0x406,_0x4bd986._0x5ac13e)]=_0xcb6629[_0x311fc4(0x3d9,0x37e,_0x4bd986._0x66f277,_0x4bd986._0x508869)];function _0x311fc4(_0x110986,_0x53a6ba,_0x24e6ec,_0x206737){return _0x74a064(_0x110986-0x5d,_0x53a6ba-_0x2d0804._0x57f5c7,_0x206737-0x34e,_0x110986);}function _0x12d86a(_0x3be06c,_0x172928,_0x12e57e,_0x4800ba){return _0x74a064(_0x3be06c-0x54,_0x172928-_0x3cd9b9._0xc93939,_0x4800ba-0x4e3,_0x3be06c);}this['streamSurface']=_0xcb6629[_0x12d86a(0x55d,_0x4bd986._0x5b2e6b,0x481,0x525)];}[_0xc7d8a6(-0x1b8,-0x1c7,-0xdd,-0x141)](_0x4bd395,_0x45e7ae){const _0x2a24db={_0x44a7af:0x28f,_0x109fbe:0xcb,_0x5f350a:0x101,_0x3dc5ac:0xc0,_0xcaab02:0x242,_0x5a7091:0x1b9},_0x9a5f25={_0x5104a8:0x2f,_0x5b8251:0x239},_0x238add={_0x3a5ee7:0xff,_0x2a2cb0:0x11};function _0x5d5001(_0x300a07,_0x876d6b,_0x3d9726,_0xdf76fe){return _0x74a064(_0x300a07-_0x238add._0x3a5ee7,_0x876d6b-_0x238add._0x2a2cb0,_0x876d6b-0x150,_0x3d9726);}function _0x179294(_0x3dcad9,_0x4145a7,_0x9b3849,_0x2bdfb2){return _0x74a064(_0x3dcad9-0xf1,_0x4145a7-_0x9a5f25._0x5104a8,_0x4145a7- -_0x9a5f25._0x5b8251,_0x2bdfb2);}return _0x45e7ae['mode']===_0x179294(-_0x2a24db._0x44a7af,-0x1f7,-0x1d1,-0x29e)?this[_0x179294(-_0x2a24db._0x109fbe,-_0x2a24db._0x5f350a,-_0x2a24db._0x3dc5ac,-0x104)]:this[_0x5d5001(0x228,_0x2a24db._0xcaab02,_0x2a24db._0x5a7091,0x1b5)];}};function trimTrailingSlashes(_0x5f0d20){const _0x5ea682={_0x4bf34b:0x83,_0x5304ac:0x204};function _0x4fdb0c(_0x1de096,_0x4db8e5,_0x1449f0,_0x6de12b){return _0x74a064(_0x1de096-_0x5ea682._0x4bf34b,_0x4db8e5-0x1e1,_0x1de096- -_0x5ea682._0x5304ac,_0x4db8e5);}return _0x5f0d20[_0x4fdb0c(-0xe3,-0x20,-0x43,-0x17e)](/\/+$/,'');}function resolveApiCredential(_0x105de2,_0x2922dd){const _0x32d945={_0x4f0c79:0x1de,_0x52f81a:0x18f,_0x27c93a:0x76},_0x4850c7={_0x4a7675:0x13b},_0x45e2ef={_0x2a9276:0xa0};function _0x27813c(_0xe843cc,_0x8861bd,_0x4e2287,_0x31d060){return _0x74a064(_0xe843cc-0x195,_0x8861bd-0xbd,_0x4e2287-_0x45e2ef._0x2a9276,_0x8861bd);}if(_0x2922dd?.[_0x27813c(_0x32d945._0x4f0c79,0x149,0x109,0x58)])return _0x2922dd[_0x313442(0x6b,_0x32d945._0x52f81a,_0x32d945._0x27c93a,0xe2)];if(!_0x105de2)return void 0x0;function _0x313442(_0x5d3479,_0x4d97d8,_0x1eacb8,_0x55889b){return _0xc7d8a6(_0x5d3479-0x6d,_0x5d3479,_0x1eacb8-_0x4850c7._0x4a7675,_0x55889b-0x1cb);}return{'kind':'api-key','value':_0x105de2};}function resolveSessionBaseUrl(_0x4372b8,_0xc0503a){return trimTrailingSlashes(_0xc0503a?.['endpoints']?.['api']??_0x4372b8);}var model_registry_default={'defaultMaxTokens':0x4000,'defaultModel':_0xc7d8a6(0xb2,-0x58,-0xd7,-0x10),'cliDefaultModel':_0x74a064(-0xa1,-0x71,-0x32,0x7a),'providers':{'anthropic':{'label':_0xc7d8a6(-0xc9,-0x36,-0x1c,-0x7e),'baseUrl':'https://api.anthropic.com','surface':_0xc7d8a6(-0x112,-0x147,-0x16c,-0x142),'authScheme':_0xc7d8a6(-0x41,-0x2a,0x18,-0x52),'defaultModel':'claude-sonnet-4-20250514','defaultModels':[_0xc7d8a6(-0xcc,-0x14a,-0x16c,-0xf4),_0x74a064(0x58,-0x15,0xa0,0x15)],'supportsModelFetch':![],'models':{'claude-sonnet-4-20250514':{'contextWindow':0x30d40,'maxOutput':0x3e80},'claude-3-5-sonnet-20241022':{'contextWindow':0x30d40,'maxOutput':0x2000}}},'zai':{'label':_0xc7d8a6(-0x16d,-0xcf,-0x7f,-0x86),'baseUrl':'https://api.z.ai/api/coding/paas/v4','anthropicBaseUrl':_0x74a064(-0x3,-0x2b,0x57,0x108),'surface':'anthropic-messages','authScheme':'bearer','defaultModel':_0xc7d8a6(-0x134,-0x13c,-0x243,-0x184),'defaultModels':['glm-5.2',_0x74a064(0xad,0x4d,0x10d,0x100),'glm-4.7',_0x74a064(0x4d,0xc2,0x9e,0x90),_0x74a064(0xd7,0x61,0xe0,0x1a9)],'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':'OpenRouter','baseUrl':_0xc7d8a6(-0x2,-0x11a,-0x33,-0xe3),'surface':_0xc7d8a6(-0x120,-0xad,0x5a,-0x40),'authScheme':'bearer','defaultModel':'openai/gpt-4o','defaultModels':[_0x74a064(-0x3a,-0x27,-0x23,0x96),'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':_0xc7d8a6(-0x22,-0x5c,0x2c,-0x30),'surface':_0x74a064(0x3d,0x71,0xb7,0x13f),'defaultModel':'gpt-5.2-codex','defaultModels':[_0xc7d8a6(-0xdf,-0xbc,-0xf5,-0x64),'gpt-4.1',_0x74a064(0xe4,0x1c,0x84,-0x43),_0xc7d8a6(-0xf5,-0x8,-0x64,-0xef),'grok-code-fast-1',_0xc7d8a6(0x11,-0x90,0x39,-0xb)],'supportsModelFetch':!![],'models':{'claude-sonnet-4.5':{'contextWindow':0x30d40,'maxOutput':0x3e80,'surface':'anthropic-messages'},'claude-sonnet-4':{'contextWindow':0x30d40,'maxOutput':0x3e80,'surface':_0x74a064(-0x6b,-0x55,0x10,0x19)},'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':_0xc7d8a6(-0x176,-0x1b8,-0x19c,-0x195),'baseUrl':_0x74a064(-0xd9,-0xa4,-0x4f,-0xca),'surface':_0x74a064(0x8f,0x7b,0x112,0x177),'authScheme':_0x74a064(0x82,0x12,0xdd,0x1b3),'defaultModel':_0xc7d8a6(-0x2d,-0x69,-0x2b,-0x10),'defaultModels':[],'supportsModelFetch':![],'models':{}},'deepseek':{'label':_0x74a064(-0xc8,0x29,-0x10,-0x73),'baseUrl':'https://api.deepseek.com/anthropic','surface':_0x74a064(-0xc6,0xdb,0x10,0x99),'authScheme':_0xc7d8a6(-0x110,-0x120,-0x4f,-0x75),'defaultModel':'deepseek-v4-pro','defaultModels':['deepseek-v4-pro',_0xc7d8a6(-0x1b2,-0x122,-0x61,-0xe4)],'supportsModelFetch':![],'models':{'deepseek-v4-pro':{'contextWindow':0xf4240,'maxOutput':0x5dc00},'deepseek-v4-flash':{'contextWindow':0xf4240,'maxOutput':0x5dc00}}},'minimax':{'label':_0x74a064(0x164,0xcb,0xa2,0xb),'baseUrl':_0x74a064(0xfd,0x7d,0x7b,-0x6a),'surface':_0x74a064(0x58,0x15,0x10,0x31),'authScheme':'bearer','defaultModel':'MiniMax-M3','defaultModels':[_0xc7d8a6(-0xfa,-0x1fc,-0x8a,-0x164)],'supportsModelFetch':![],'models':{'MiniMax-M3':{'contextWindow':0xf4240,'maxOutput':0x7d000},'MiniMax-M2.7':{'contextWindow':0x32000,'maxOutput':0x7d00}}},'commandcode':{'label':_0xc7d8a6(-0x147,-0x113,-0x40,-0xf6),'baseUrl':'https://api.commandcode.ai/provider','modelsBaseUrl':_0xc7d8a6(-0x21e,-0x1af,-0x194,-0x1b3),'surface':_0xc7d8a6(-0xcb,-0x161,-0x157,-0x142),'authScheme':_0xc7d8a6(0x5a,0x80,0x6,-0x52),'defaultModel':_0x74a064(-0x88,0x120,0x5e,0x3),'defaultModels':[],'supportsModelFetch':!![],'models':{}},'xiaomi':{'label':_0x74a064(-0x63,0x34,-0x29,-0x49),'baseUrl':_0xc7d8a6(-0x6b,0x6a,-0xda,-0x69),'modelsBaseUrl':_0xc7d8a6(-0xfb,-0xfe,-0x1cd,-0x143),'surface':_0x74a064(0x64,0x43,0x10,-0x25),'authScheme':_0x74a064(0x3d,0x1b7,0x100,0x97),'defaultModel':_0x74a064(0x11,0x70,0x4d,-0x1b),'defaultModels':[],'supportsModelFetch':!![],'models':{}}}},data=model_registry_default;function findProviderKey(_0x57b1a7){const _0x1c26d5={_0x25d8ea:0x231,_0x42f335:0x557,_0x73208:0x34e},_0x395601={_0x1305b7:0x1aa},_0x79026a={_0x12bcea:0x286},_0x1b6672=_0x57b1a7['toLowerCase']();function _0xc4ec55(_0x295619,_0x5322a2,_0x362802,_0xfca60a){return _0x74a064(_0x295619-0x21,_0x5322a2-0x125,_0x5322a2-_0x79026a._0x12bcea,_0x362802);}function _0x6aa611(_0x3ccaf0,_0x48bb25,_0x4c3e05,_0x559c58){return _0xc7d8a6(_0x3ccaf0-0x8a,_0x559c58,_0x4c3e05-_0x395601._0x1305b7,_0x4c3e05-0x68d);}return Object[_0xc4ec55(0x1e8,_0x1c26d5._0x25d8ea,0x2e9,0x1e1)](data[_0x6aa611(0x505,0x59b,0x4d5,_0x1c26d5._0x42f335)])[_0xc4ec55(0x187,0x26b,_0x1c26d5._0x73208,0x2a7)](_0x5b953b=>_0x5b953b[_0x6aa611(0x5c6,0x47d,0x555,0x4a5)]()===_0x1b6672);}function _0xc7d8a6(_0x4a04ea,_0x3792df,_0x3b3354,_0xbdb77d){return _0x4762(_0xbdb77d- -0x2ae,_0x3792df);}function getProviderProfile(_0x132daa){const _0xe742c1={_0x29c024:0x48d,_0x2d5697:0x47a,_0x5d8e4b:0x41c,_0x31719d:0x441,_0x1b9498:0x4d3,_0x47c445:0x592,_0x3ea874:0x26f,_0x1970b8:0x2d9,_0x5b5a37:0x2a1,_0x309eab:0x4cb,_0x218e99:0x4e0,_0x160648:0x247,_0x5c0e8a:0x21d,_0x4cb29f:0x2a0,_0x541080:0x21e,_0x16b4cf:0x257,_0x18d60f:0x182,_0x2c2905:0x2e6,_0x17bfd7:0x542,_0x3c54df:0x595,_0x1435c3:0x400,_0x6c5a0e:0x310},_0x17bce7={_0x3d401e:0x87},_0x75659f={_0x1aa177:0x14c,_0x262a59:0x38d},_0x4cd387=findProviderKey(_0x132daa);function _0xffab47(_0x5b9cb0,_0x131232,_0x236d9c,_0x1f33b6){return _0xc7d8a6(_0x5b9cb0-_0x75659f._0x1aa177,_0x131232,_0x236d9c-0x49,_0x5b9cb0-_0x75659f._0x262a59);}if(!_0x4cd387)return void 0x0;const _0x5c1255=data[_0x307d38(0x4e1,_0xe742c1._0x29c024,_0xe742c1._0x2d5697,_0xe742c1._0x5d8e4b)][_0x4cd387],_0x2c9149={};function _0x307d38(_0x42ece5,_0x446703,_0x13a6aa,_0x5e576c){return _0xc7d8a6(_0x42ece5-_0x17bce7._0x3d401e,_0x5e576c,_0x13a6aa-0xeb,_0x13a6aa-0x632);}for(const [_0x354716,_0x1761f0]of Object[_0xffab47(0x369,_0xe742c1._0x31719d,0x2c1,0x2c5)](_0x5c1255[_0x307d38(_0xe742c1._0x1b9498,0x65c,_0xe742c1._0x47c445,0x4bd)])){_0x2c9149[_0x354716]=_0x1761f0;}return{'label':_0x5c1255[_0xffab47(_0xe742c1._0x3ea874,_0xe742c1._0x1970b8,0x211,_0xe742c1._0x5b5a37)],'baseUrl':_0x5c1255[_0x307d38(0x50f,_0xe742c1._0x309eab,_0xe742c1._0x218e99,0x594)],'modelsBaseUrl':_0x5c1255['modelsBaseUrl'],'anthropicBaseUrl':_0x5c1255['anthropicBaseUrl'],'surface':_0x5c1255[_0xffab47(0x2e0,_0xe742c1._0x160648,0x2c9,_0xe742c1._0x5c0e8a)],'authScheme':_0x5c1255[_0xffab47(_0xe742c1._0x4cb29f,_0xe742c1._0x541080,0x202,0x254)],'defaultModel':_0x5c1255[_0xffab47(_0xe742c1._0x16b4cf,_0xe742c1._0x18d60f,_0xe742c1._0x2c2905,0x328)],'defaultModels':_0x5c1255[_0x307d38(_0xe742c1._0x17bfd7,0x525,_0xe742c1._0x3c54df,0x599)]??[],'supportsModelFetch':_0x5c1255[_0xffab47(0x351,_0xe742c1._0x1435c3,_0xe742c1._0x6c5a0e,0x2e9)]??![],'models':_0x2c9149};}function getModelProfile(_0x175538,_0xed4bba){const _0x30b4f4={_0x41d854:0x108,_0x14c820:0x1b7,_0x178493:0x1a1,_0x10a5b1:0x220},_0x66ece6={_0x25ff6a:0x13c,_0x4b6828:0x194,_0x2919b2:0x3};function _0x3dfb98(_0x390ff0,_0x4421d2,_0x42d96f,_0x4c63ce){return _0xc7d8a6(_0x390ff0-0x15a,_0x390ff0,_0x42d96f-0x2c,_0x42d96f-0x2c0);}function _0x558dcc(_0x373d71,_0x546291,_0x14d31b,_0x54c3d1){return _0xc7d8a6(_0x373d71-_0x66ece6._0x25ff6a,_0x14d31b,_0x14d31b-_0x66ece6._0x4b6828,_0x546291-_0x66ece6._0x2919b2);}const _0x513a90=findProviderKey(_0x175538);if(!_0x513a90)return void 0x0;return data[_0x3dfb98(0x1df,0x97,_0x30b4f4._0x41d854,0x1eb)][_0x513a90][_0x3dfb98(_0x30b4f4._0x14c820,_0x30b4f4._0x178493,_0x30b4f4._0x10a5b1,0x251)][_0xed4bba];}function resolveModelProfile(_0x52be3d,_0x1fa1cb){const _0x45fa82={_0x21c43e:0x359,_0x585253:0x523,_0x274b20:0x47d,_0x58dc96:0x52d,_0x423f84:0x54a,_0x59f8dc:0x498,_0x1557a4:0x449,_0x461278:0x4e3,_0x2d5273:0x44c,_0x1b0464:0x415,_0x1feed3:0x53a,_0x19b0b8:0x463,_0x2b0455:0x522,_0x18a3ce:0x509,_0x5cfab4:0x4d6,_0x143710:0x3f4,_0xf67dd:0x3dd,_0x486223:0x4ee,_0x34c037:0x4e4,_0x1bdbbe:0x526,_0x5750c3:0x534,_0xbae52f:0x574,_0x2b6b5b:0x587,_0x4310e3:0x543,_0x3dc937:0x400,_0x3172c8:0x487,_0x26bb3f:0x51c,_0x5da9bb:0x56d},_0x5975b0={_0x207703:0x52,_0x3b5864:0x471},_0xc4c3=findProviderKey(_0x52be3d);if(!_0xc4c3)return void 0x0;function _0x32560c(_0x421ff3,_0x50c9d7,_0x455bc0,_0x331ad2){return _0xc7d8a6(_0x421ff3-0x6b,_0x50c9d7,_0x455bc0-0x3c,_0x455bc0-0x5b6);}const _0x4d5dba=data[_0xc03a81(0x40b,0x4da,_0x45fa82._0x21c43e,0x3ed)][_0xc4c3],_0x1ecb24=_0x4d5dba[_0xc03a81(_0x45fa82._0x585253,_0x45fa82._0x274b20,_0x45fa82._0x58dc96,0x507)][_0x1fa1cb];function _0xc03a81(_0x38cd08,_0x34fded,_0x248a14,_0x24a1b8){return _0x74a064(_0x38cd08-0x199,_0x34fded-_0x5975b0._0x207703,_0x38cd08-_0x5975b0._0x3b5864,_0x248a14);}return{'label':_0x4d5dba[_0x32560c(_0x45fa82._0x423f84,0x43b,_0x45fa82._0x59f8dc,0x53d)],'baseUrl':_0x4d5dba['baseUrl'],'modelsBaseUrl':_0x4d5dba[_0xc03a81(_0x45fa82._0x1557a4,_0x45fa82._0x461278,0x3d1,_0x45fa82._0x59f8dc)],'anthropicBaseUrl':_0x4d5dba[_0xc03a81(0x47c,_0x45fa82._0x2d5273,0x39a,_0x45fa82._0x1b0464)],'surface':_0x1ecb24?.[_0xc03a81(0x516,_0x45fa82._0x1feed3,0x4ed,_0x45fa82._0x19b0b8)]??_0x4d5dba[_0x32560c(_0x45fa82._0x2b0455,0x560,_0x45fa82._0x18a3ce,0x5a2)],'authScheme':_0x4d5dba[_0xc03a81(_0x45fa82._0x5cfab4,_0x45fa82._0x143710,0x5b1,0x56d)],'defaultModel':_0x4d5dba[_0xc03a81(0x48d,_0x45fa82._0xf67dd,_0x45fa82._0x486223,_0x45fa82._0x34c037)],'defaultModels':_0x4d5dba[_0xc03a81(_0x45fa82._0x1bdbbe,0x607,_0x45fa82._0x5750c3,_0x45fa82._0xbae52f)],'supportsModelFetch':_0x4d5dba[_0xc03a81(_0x45fa82._0x2b6b5b,0x4b2,0x504,_0x45fa82._0x4310e3)],'contextWindow':_0x1ecb24?.[_0x32560c(0x4a3,0x436,_0x45fa82._0x3dc937,_0x45fa82._0x3172c8)],'maxOutput':_0x1ecb24?.[_0xc03a81(0x50a,0x51f,_0x45fa82._0x26bb3f,_0x45fa82._0x5da9bb)]};}function getDefaultMaxTokens(){const _0x43690b={_0x4c15f2:0x375,_0x170e74:0x2da},_0x2fe627={_0x29e212:0x3d6};function _0x10ca58(_0x11ebc9,_0x4b8c3b,_0x198715,_0x3d87c2){return _0xc7d8a6(_0x11ebc9-0x131,_0x4b8c3b,_0x198715-0x1c2,_0x3d87c2-_0x2fe627._0x29e212);}return data[_0x10ca58(_0x43690b._0x4c15f2,_0x43690b._0x170e74,0x2ec,0x2f0)];}function getDefaultModel(){const _0x7e444c={_0x397bfa:0x54,_0x949cf2:0xb8,_0x2a5072:0x39},_0x13f26b={_0x150b04:0xa5};function _0x5f4b7e(_0x4740a7,_0x2d40f5,_0x58bf14,_0x1b4498){return _0xc7d8a6(_0x4740a7-_0x13f26b._0x150b04,_0x2d40f5,_0x58bf14-0x5a,_0x1b4498-0xfd);}return data[_0x5f4b7e(-0x39,-_0x7e444c._0x397bfa,-_0x7e444c._0x949cf2,-_0x7e444c._0x2a5072)];}function getCliDefaultModel(){const _0x1c7fba={_0x21f888:0x23c,_0x16327a:0x228},_0x44770f={_0x49d66c:0x13e};function _0x11134c(_0x5427ab,_0x38331a,_0x307e34,_0xba3bd4){return _0xc7d8a6(_0x5427ab-_0x44770f._0x49d66c,_0xba3bd4,_0x307e34-0x12d,_0x5427ab-0x31e);}return data[_0x11134c(0x2d7,_0x1c7fba._0x21f888,_0x1c7fba._0x16327a,0x338)];}function getProviderLabel(_0x14bcc7){const _0x12d869={_0xa80e3a:0x308,_0x1743ac:0x287,_0x7528a4:0x386,_0x502d74:0x3fc},_0x13ee55={_0x4853ff:0x50},_0x30ac86={_0x85dd3d:0x182,_0x2b1503:0x504};function _0x37ff16(_0x42c730,_0x15745b,_0xb29ad4,_0x56c494){return _0xc7d8a6(_0x42c730-0x136,_0xb29ad4,_0xb29ad4-_0x30ac86._0x85dd3d,_0x56c494-_0x30ac86._0x2b1503);}const _0x5c434a=findProviderKey(_0x14bcc7);function _0x270493(_0xabd437,_0x16cf04,_0x2e3ff1,_0x432da5){return _0xc7d8a6(_0xabd437-0x2d,_0xabd437,_0x2e3ff1-_0x13ee55._0x4853ff,_0x16cf04-0x46c);}return _0x5c434a?data[_0x37ff16(0x312,_0x12d869._0xa80e3a,_0x12d869._0x1743ac,0x34c)][_0x5c434a][_0x37ff16(_0x12d869._0x7528a4,_0x12d869._0x502d74,0x3e2,0x3e6)]:void 0x0;}function getProviderDefaultModel(_0x485074){const _0xe235e6={_0x33742d:0x28e,_0x3322c0:0x229,_0x2ac556:0x2fd},_0x30ae4a={_0xe95842:0x17e,_0x99224a:0x2e1};function _0x47333f(_0x1ebf07,_0x29fceb,_0x1edd8c,_0x402b2b){return _0x74a064(_0x1ebf07-0x2e,_0x29fceb-_0x30ae4a._0xe95842,_0x402b2b-_0x30ae4a._0x99224a,_0x1edd8c);}const _0x4303a5=findProviderKey(_0x485074);if(!_0x4303a5)return void 0x0;return data['providers'][_0x4303a5][_0x47333f(_0xe235e6._0x33742d,0x2e0,_0xe235e6._0x3322c0,_0xe235e6._0x2ac556)];}function getProviderDefaultModels(_0x23ca6d){const _0xa224b5={_0x3bc2eb:0x39b,_0x27fe74:0x35a,_0x551bff:0x32b},_0x4adc0b={_0x4ecbe9:0x88};function _0x349eac(_0x2a75b0,_0x2bd788,_0x5e1a05,_0x5ab155){return _0xc7d8a6(_0x2a75b0-0xfe,_0x5ab155,_0x5e1a05-_0x4adc0b._0x4ecbe9,_0x2a75b0-0x3f7);}const _0x419243=findProviderKey(_0x23ca6d);function _0xfc8cce(_0x3b91a3,_0xa0efa4,_0x3ec227,_0x220488){return _0x74a064(_0x3b91a3-0xc6,_0xa0efa4-0x96,_0x3ec227-0x456,_0xa0efa4);}if(!_0x419243)return[];return[...data[_0xfc8cce(_0xa224b5._0x3bc2eb,0x46a,0x3f0,0x446)][_0x419243][_0x349eac(_0xa224b5._0x27fe74,0x27f,_0xa224b5._0x551bff,0x279)]??[]];}function providerSupportsModelFetch(_0x10afe0){const _0x405c82=findProviderKey(_0x10afe0);if(!_0x405c82)return![];return data['providers'][_0x405c82]['supportsModelFetch']??![];}function _0xc155(){const _0x1c2d4a=['y2fJAgvFy3jLyxrPB25FAw5WDxrFDg9Rzw5Z','CgfYDgLHBf9QC29U','Ahr0Chm6lY9HCgKUy29TBwfUzgnVzguUywKVChjVDMLKzxiVDJe','Dg9Wx3bYB3zPzgvY','ChjLDMLVDxnFCMvZCg9UC2vFBM90x2zVDw5K','ntGZmtiYsKPzv3jh','l2nOyxqVy29TCgXLDgLVBNm','zgvSDge','y29TCgXLDgvwAwfszxnWB25ZzxntDxjMywnL','BwfYA01VzgvSqxnszxnWB25ZzxnpBMX5','AxngAw5PDgu','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBKTLEq','CMvZCg9UC2vtB2nRzxrtDhjLyw0','uMvZCg9UC2vZifDLyLnVy2TLDcbJBg9ZzwqGyMvMB3jLihjLC3bVBNnLlMnVBxbSzxrLza','A2v5CW','AxnbCNjHEq','D2vIC29JA2v0','B3v0Chv0','l3jLC3bVBNnLCW','ywnXDwLYzvjLC3bVBNnLC1nVy2TLDeXVy2S','Ahr0Chm6lY9HCgKUB3bLBMfPlMnVBs92mq','BMfTzq','ywjVCNrLza','mteWmtCYoeTkuuj3AG','CMvZCg9UC2vZu29JA2v0u2vZC2LVBNm','vw5RBM93BIbWCM92AwrLCIbLCNjVCG','z2v0u3vYzMfJzq','C3vWCg9YDgvKx2vUzhbVAw50CW','yw50AhjVCgLJqxnZAxn0yw50q29UDgvUDa','Aw5WDxruB2TLBNm','t3bLBKfjigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','uMvZCg9UC2vZihn0CMvHBsbMywLSzwq','t3bLBKfj','C3rYzwfTvMLHu3vYzMfJzq','CMvHC29UAw5Nx2rLDgfPBhm','ChjVDMLKzxjbzgfWDgvY','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzgvSDge','C3rVCf9YzwfZB24','DhjHBNnWB3j0','w0rptKvD','CMvTB3zLrxzLBNrmAxn0zw5LCG','t3bLBKfjiefqssbLCNjVCIa','BxnNlq','zgLZCgXHEq','B3v0Chv0sw5KzxHuB1jLyxnVBMLUz0LK','Aw5WDxrFANnVBL9KzwX0yq','DhjPBq','D2fPDezVCLjLDhj5','C2HVDwXKuMv0CNLszxnWB25Zzq','z2XTltqUnW','Dg9Rzw5fEgnOyw5NzufWAvzLCNnPB24','vw5RBM93BIbTB2rLBcbZDxjMywnLoIa','Bwf5yMvfDMLJDfjLC3bVBNnLC1nVy2TLDfnLC3nPB24','zNvUy3rPB24','Dg9VBf91C2u','BNvTyMvY','AM9PBG','y29TCgXLDgvwAwfszxnWB25ZzxnxzwjtB2nRzxrtDxjMywnL','wgLHB21P','Bw9KzwXZqMfZzvvYBa','C3LZDgvT','C3rYzwfTvMLHq29UzMLNDxjLzfn1CMzHy2u','C2LNBMfS','CMvXDwvZDa','B3bLBMfPl2DWDc00BW','CgfYC2vszxnWB25Zzq','v2vIu29JA2v0ignSB3nLzcbIzwzVCMuGB3bLBMLUzW','DxnLCG','y2XVC2u','z2v0qw50AhjVCgLJrgvSzwDHDgu','CMvHC29U','Dg9VBenHBgXZ','zMLUza','Dgv4Da','BwvZC2fNzuLK','Dg9VBf91C2vFzgvSDge','uhjVDMLKzxjszxf1zxn0q29UC3rYDwn0Aw9UrxjYB3i','Aw5JBhvKzunVBNrLBNruExbL','Dg9VBa','y2fWywjSzv9LBMrWB2LUDhm','CMvZB2X2zq','twLUAu1HEc1nmW','t1bftG','rgvLCfnLzwS','y29UDgvUDf9IBg9JA19KzwX0yq','C3rYzwfTvMLHuMvZCg9UC2vZv2vIu29JA2v0u3vYzMfJzq','r0vu','y29UC3vTzvDLyLnVy2TLDev2zw50','C3rHDhvZvgv4Da','C2vZC2LVBK1HBMfNzxi','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBLn0yxrL','C3rYzwfTshr0Cfn1CMzHy2u','CMvZCg9UC2vtB2nRzxq','zxzLBNq6','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzgvSDge','rgLYzwn0igfUC3DLCJOG','qw50AhjVCgLJigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','C2LNBMf0DxjLx2rLBhrH','B3bLBG','yMfZzvvYBa','B3v0Chv0rM9YBwf0','BwvZC2fNzv9KzwX0yq','zgf0yq','DMfSDwvZ','C2vZC2LVBKLK','ANnVBL9Zy2HLBwe','B3v0Chv0vg9Rzw5Z','y2f0y2G','DxnLC1jLC3bVBNnLC0fWAq','CMvZCg9UC2uUB3v0Chv0x2L0zw0Uzg9Uzq','yw50AhjVCgLJqMfZzvvYBa','C3bSAwnL','y29UDgvUDf9PBMrLEa','ignHBM5VDcbWyxjZzsbtu0uGzxzLBNrZ','Ahr0Chm6lY90B2TLBI1WBgfUlxnNCc54AwfVBwLTAw1VlMnVBs92mq','yw50AhjVCgLJlw1LC3nHz2vZ','C2vSzwn0u3vYzMfJzq','yxbWBgLJyxrPB24VANnVBG','BwvKAwfFDhLWzq','DNnJB2rLlZeUmta0lJi','AxrLBq','y2fJAgvFCMvHzf9PBNb1Df90B2TLBNm','C3vTBwfYEv90zxH0','C3vYzMfJzxm','y2fWywjPBgL0AwvZ','Dg9mB3DLCKnHC2u','CMvZCg9UC2uUB3v0Chv0x2L0zw0UywrKzwq','zgvMyxvSDe1VzgvS','y29UC3vTzuv2zw50','CMvXDwvZDe11Dgf0B3jZ','y2HHDfn0CMvHBq','mZaXmKzgsK1rqW','C2vZC2LVBG','C2XPy2u','C3rYzwfTvMLHuMvZCg9UC2vZu3vYzMfJzq','CMvXDwvZDhm','y29TCgXLDgvwAwfsB3v0zxi','yw50AhjVCgLJlxzLCNnPB24','Bwf4x2nVBNrLEhrFD2LUzg93x3rVA2vUCW','y29UDgv4Df9Szw5NDgG','Aw52ywXPzgf0zq','y29TCgXLDgvK','B3v0Chv0sw5KzxHuB0nHBgXjza','C2HVDwXKuMv0CNLtDhjLyw1bDhrLBxb0rxjYB3i','D3m6','CMvHC29UAw5Nx3rLEhq','AgfZ','yxbWBhLnB2rLBerLzMf1BhrZ','y2fSBeLKvg9pDxrWDxrjBMrLEa','l21VzgvSCW','CMvHC29UAw5Nx3rVA2vUCW','BgfIzwW','ywrHChrPDMu','CMvZCg9UC2vjza','nMPnvKTyuG','uhjVDMLKzxiGCMvXDwvZDcbYzxrYEsbSB29Wigv4AxrLzcb1BMv4CgvJDgvKBhK','Aw1Hz2vFDxjS','DgHPBMTPBMC','yw50AhjVCgLJrgvSzwDHDgu','C3rHCNrZv2L0Aa','zMLUzfjLC3bVBNnLC1nVy2TLDenOzwnRCg9PBNq','ywrK','y3jLyxrLsgvHzgvYCW','ChjLCgfYzvjLC3bVBNnLC1nVy2TLDfjLCxvLC3q','AgvHzgvYuMvZB2X2zxi','C3rYzwfT','mJi2nZu4vMjqDwTA','yw50AhjVCgLJx3nPz25HDhvYzv9KzwX0yq','Bwv0Ag9K','ChjVDg9JB2XwzxjZAw9U','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','CgfYC2u','DhLWzq','Dg9VBenHBgXZqNLjBMrLEa','mti2v2Lcvezq','ndy0ndHxzMTmChK','BwLTBY12mI41lxbYBW','CMvZB2X2zujHC2vvCMW','y29UDgvUDf9IBg9JAW','Dgv4Df9KzwX0yq','yxnZAxn0yw50lq','Dg9Rzw4','Dgv4Dej5sw5KzxG','Ahr0Chm6lY9HCgKUyw50AhjVCgLJlMnVBq','ChjLCgfYzunOyxrszxf1zxn0','Bw9KzwW','Ahr0Chm6lY9HCgKUEI5HAs9HCgKVyw50AhjVCgLJ','z2L0AhvI','B3bLBMfPx3jLyxnVBMLUzW','zNjVBq','CMvZCg9UC2u','q29TBwfUzenVzgu','Aw1Hz2u','y2XHDwrLlxnVBM5LDc00ltiWmJuWnte0','y3jLyxrLtwLZC2LUz0nYzwrLBNrPywXfCNjVCG','C2vUza','ChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','v2vIu29JA2v0ihjLCxvLC3qGzMfPBgvK','z3b0ltuTBwLUAq','CMvZCg9UC2uUy29TCgXLDgvK','yxv0AfnJAgvTzq','mJaYns0Xmc0Wmq','zw5KCg9PBNrZ','CMvHC29UAw5Nx2nVBNrLBNq','y3jLzgvUDgLHBa','A2v5','y2HHDgnTCgWT','zgvMyxvSDe1HEfrVA2vUCW','C3rHDhvZ','zgvLChnLzwSTDJqTzMXHC2G','Ahr0Chm6lY9VCgvUCM91DgvYlMfPl2fWAs92mq','Bwv0ywrHDge','zxjYB3i','C3rYzwfTvMLHq2HHDenVBxbSzxrPB25Zu3vYzMfJzq','zgvSzxrL','mtaYnNLQs2LRuG','C29YDa','yxv0BW','D2vIu29JA2v0rMfJDg9YEq','ue9tva','z2v0','y29TCgXLDgu','Ahr0Chm6lY9HCgKUBwLUAw1HEc5PBY9HBNrOCM9WAwm','qMfZAa','C3rYAw5NAwz5','y29UBMvJDgLUzW','Aw50zxjSzwf2zwqTDgHPBMTPBMCTmJaYns0Wns0Xna','ywnJzxb0','AgvHzgvYCW','Aw5PDgLHBev2zw50','BM93','z3b0ltu','mJi1mteWrKjnq2rp','zgLZywjSzwq','B3v0Chv0x3rLEhq','l2nVCgLSB3rFAw50zxjUywWVDJiVDg9Rzw4','Aw5KzxHpzG','C3rYzwfTvMLHugvYC2LZDgvUDfjLC3bVBNnLC1nVy2TLDa','zMLUAxnOx3jLyxnVBG','C2HVDwXKuMv0CNLszxnWB25ZzxntB2nRzxrszxf1zxn0','Dgv4Dc9LDMvUDc1ZDhjLyw0','zNjVBuvUDhjPzxm','igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','Ahr0Chm6lY9HCgKUz2L0AhvIlMnVBq','y2fSBf9Pza','qMvHCMvYia','Aw52ywXPzgf0zvjLC3bVBNnLC1nVy2TLDfnLC3nPB24','yM9KEq','C2HVDwXKuhjLzMvYuMvZCg9UC2vZqxbP','Bwf4','mZyYoe5hrgrnrG','Bwf4t3v0Chv0','C3rYAwn0','B3bLBMfPlxjLC3bVBNnLCY13CW','oNjLyxnVBMLUzZOW','y29UDgvUDc10ExbL','z2XTltqUnG','zwrPDg9YvMvYC2LVBG','y2XHDwrLltmTns1ZB25UzxqTmJaYndeWmJi','vw5ZDxbWB3j0zwqGr2L0shvIig1VzgvSihn1CMzHy2u6ia','twLUAu1HEa','Dg9VBenHBgXpCMrLCG','zwzMB3j0','C3vYzMfJzq','y2HHDenVBxbSzxrPB25Zugf0Aa','CMvHC29UAw5NsxrLBxm','CMvZCg9UC2uUB3v0Chv0x3rLEhqUzgvSDge','BwvZC2fNzq','B2jQzwn0','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzg9Uzq','zMLUywXszxnWB25Zzq','Bw9KzwXfBMrWB2LUDenHy2HL','CM9Szq','yNvKz2v0vg9Rzw5Z','uhjVDMLKzxjtDhjLyw1fDMvUDevYCM9Y','DhjHBNnWB3j0x2vYCM9Y','Bw9KzwXZ','y3jLyxrLu3rYzwfTugfYC2vY','C3vTBwfYEq','zgvMyxvSDe1VzgvSCW','Aw5WDxq','B3bLBMfPlxjLC3bVBNnLCW','ChjLDMLVDxnszxnWB25ZzuLK','yw50AhjVCgLJx3rOAw5RAw5N','C291CMnL','BgfZDfjLC3bVBNnLswq','z2L0AhvIqxbPvxjS','zMv0y2G','B3bLBMfPlxjLC3bVBNnLCY1ZDhjLyw0','Bwf4x2nVBxbSzxrPB25FDg9Rzw5Z','CMvZCg9UC2uUzMfPBgvK','C3rVCfjLyxnVBG','yxbPs2v5','uMf0zsbSAw1PDcbLEgnLzwrLzc4GugXLyxnLihrYEsbHz2fPBIbSyxrLCI4','C3bSAxq','BgLTAxrZ','y29UDgvUDa','Bwf4x3rVA2vUCW','yw50AhjVCgLJ','B2f1DgGTDg9Rzw4','zM9Yy2vgDwXSuMvWBgf5','y3jLyxrLuMvXDwvZDa','wI5bsq','y2HVAwnLCW','BwfWqxbPrxjYB3i','ssbJAgvJA2vKihrOzsbTB2nRzwqGDg9VBcbYzxn1BhqUia','zgvJB2rL','Ahr0Cc1ZC2u','y29UDgvUDf9KzwX0yq','DNnJB2rLlZeUmta2lJe','qw50AhjVCgLJ','Aw5WDxrFC2nOzw1H','Bwf4vg9Rzw5Z','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','y2HHDgnTCgW','zw5Kx3r1CM4','CM91DgvY','CMvMDxnHBa','Dg9VBhm','yMvHCMvY','BwfW','yxv0Ag9YAxPHDgLVBG','z2XTltqUnq','C2nOzw1H','y29TCgXLDgvwAwftDxjMywnL','DxnLCI12AxnPyMXL','mJaYmY0WnI0Wmq','D3nZoG','C2HVDwXKuMv0CNLszxf1zxn0rxjYB3i','C3vTBwfYEuj5sw5KzxG','y29TCgXLDgvwAwfdAgf0q29TCgXLDgLVBNntDxjMywnL','Ahr0Chm6lY90B2TLBI1WBgfUlxnNCc54AwfVBwLTAw1VlMnVBs9HBNrOCM9WAwm','ChjVBxb0x3rVA2vUCW','CMvZCg9UC2vuzxH0ugfYDhm','qw50AhjVCgLJihn0CMvHBsbMywLSzwq','DxnHz2u','y2XHDwrLlxnVBM5LDc00lJu','z2v0t3jdCMvHDgvszxnWB25ZzxntB2nRzxq','y2HHDenVBxbSzxrL','ywrKrxzLBNrmAxn0zw5LCG','y29TCgXLDgvtDxjMywnL','ChjVDg9JB2W','zMLUAxnO','CMvHC29UAw5NugfYDhm','C2L6zq','BwvZC2fNzxm','DgHPBMTPBMDFzgvSDge','B3v0Chv0x2LUzgv4','CMvZCg9UC2vtDhjLyw0','ChjVEhK','yxnZAxn0yw50','AxneB25L','zg9Uzq','BwvZC2fNzv9ZDgfYDa','Ec1HCgKTA2v5','CMvKywn0zwrFDgHPBMTPBMC','zw5HyMXLza','B3v0Chv0sw5KzxG','zMXHDe1HCa','Bg9JA2vK','zMv0y2HjBxbS','C2vUzfDPDgHszxrYAwvZ','AxrLBv9Pza','CMvZCg9UC2uUCMvHC29UAw5Nx3n1Bw1HCNLFDgv4Dc5KB25L','C3rYzwfTv2vIu29JA2v0u3vYzMfJzq','y2XPrgvMyxvSDe1VzgvS','y2fJAgvK','z2XTltuUmq','zNvUy3rPB25Fy2fSBa','yxjNDw1LBNrZ','C2vUzeH0DhbtDxjMywnLuMvXDwvZDa','y29UC3vTzvnZzuv2zw50','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','igrPzcbUB3qGChjVDMLKzsbHBIbivfrqihbHDgG','zw5JCNLWDgvKx2nVBNrLBNq','C3rYzwfTvMLHuM91DgvY','C3vWCg9YDhnnB2rLBezLDgnO','zw5JCNLWDgvKq29UDgvUDa','z2v0tw9KzwXZ','z2v0t3jdCMvHDgvszwfZB25PBMDjDgvT','Dgv4DfbHCNrZ','nvznzNPQDq','C2v0','uhjVDMLKzxiGCMvXDwvZDcbMywLSzwqGD2L0AcbZDgf0DxmG','D2vIC29JA2v0x2nVBM5Ly3rPB25FBgLTAxrFCMvHy2HLza','z2v0uMv0CNLezwXHEu1Z','u3vYzMfJzsa','CMvWBgfJzq','r2L0shvIie1VzgvSCYaVienVCgLSB3q','Dg9VBf91C2vFAwq','Dg9VBf9JywXSCW','ywjVCNq','y2fJAgvszwfKsw5WDxruB2TLBNm','yMfZzty0','CMvHC29UAw5N','Aw5WDxrFDg9Rzw5Z','BgvUz3rO','DMLZAwjPBgL0Eq','C2vUzfjHD1jLCxvLC3q','CMv0CNLHyMXL','zw50CMLLCW','B21PDhrLza','C3rYzwfTvMLHuMvZCg9UC2vZu29JA2v0qxr0zw1WDa','y2fJAgvdCMvHDgLVBKLUChv0vg9Rzw5Z','Bwf4x291Dhb1Df90B2TLBNm','y29TCgXLDgLVBL90B2TLBNnFzgv0ywLSCW','C3vTBwfYEv9PBMrLEa','mtm2otvgyLDKy2m','Cgf0Aa','yw50AhjVCgLJlw1LC3nHz2vZlxn0CMvHBq','C3rYzwfTu3vYzMfJzq','CMvHzhLtDgf0zq','CgvUzgLUzW','B3bLBKfPrgvSzwDHDgu','o2jHC2u2ncW','r2L0shvIq29WAwXVDenOyxqVmc4ZmY4X','Aw5WDxrkC29U','Dg9bCgLfCNjVCG','C2LNBMf0DxjL','Ahr0Cc1QC29U','z3b0ltrV','igrPzcbUB3qGChjVDMLKzsbHifDLyLnVy2TLDcbvuKWGB3iGCgf0Aa','ywDLBNq','z2v0uMvHzgvY','yMXVy2TZ','y2XHDwrLlxnVBM5LDc00','ywnJzxnZvg9Rzw4','CMvZB2X2zxi','DMfSDwu','zMLSDgvY','CMvZB2X2zunYzwrLBNrPywW','y29Kzq','zxzLBNq','Aw5KzxG','Dg9VBfvZzvn0yxj0rw1PDhrLza','yw50AhjVCgLJx3jLzgfJDgvKx3rOAw5RAw5N','ChvZAa','yNvPBgrszxnWB25ZzxntB2nRzxrfDMvUDa','C3vWCg9YDgvKrw5KCg9PBNrZ','B3v0Chv0x3rVA2vUCW','Aw5WDxrFDgv4Da','C3rYAw5N','ChjVDMLKzxjtDgf0zq','y29UBMvJDf9MywLSzwq','A2LUza','zwrPDg9YugX1z2LUvMvYC2LVBG','CMvHza','CMvZCg9UC2vZugf0Aa','qw50AhjVCgLJtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','ANnVBG','DhjPBvn0yxj0','Aw5JBhvKzxm','z2v0t3bLBKfPrgvSzwDHDgu','C29Tzq','C29JA2v0','zgf0ytO','B3v0Chv0x3rVA2vUC19KzxrHAwXZ','ChjVDMLKzxjZ','zgvZy3jPChrPB24','y29UDgv4DfDPBMrVDW'];_0xc155=function(){return _0x1c2d4a;};return _0xc155();}function getOnboardingProviderKeys(){const _0x34c602={_0x557c58:0x282,_0x117622:0x1c0,_0x7e80c5:0x1c1,_0x16d602:0x34a,_0x1fbc3d:0x255},_0x543b93={_0x301fca:0x163};function _0x426603(_0x59ec7e,_0x4d33c8,_0xe61ad,_0x2ee570){return _0x74a064(_0x59ec7e-_0x543b93._0x301fca,_0x4d33c8-0x18d,_0x4d33c8-0x2d7,_0x59ec7e);}function _0x1d17e3(_0x18e77e,_0x139ecc,_0x291d38,_0x491cb5){return _0xc7d8a6(_0x18e77e-0x147,_0x291d38,_0x291d38-0x153,_0x139ecc-0x3b9);}return Object[_0x426603(0x241,_0x34c602._0x557c58,_0x34c602._0x117622,_0x34c602._0x7e80c5)](data[_0x426603(_0x34c602._0x16d602,0x271,0x27b,_0x34c602._0x1fbc3d)]);}function toErrorMessage(_0x2e2ab1){const _0x21e684={_0x4bb5f6:0x401,_0x193bcd:0x4c0,_0x26c197:0x468,_0x4e5eaf:0x53e,_0x4d82c9:0x5b6,_0x34a44f:0x452,_0x21763f:0x4b7,_0x4264f9:0x41,_0x5e5d82:0xcf,_0x3b6c1c:0x94},_0x242b37={_0x4f48d5:0x53},_0x275e7d={_0x32e111:0x6e};if(_0x2e2ab1 instanceof Error&&_0x2e2ab1[_0x1b533(0x599,0x55d,_0x21e684._0x4bb5f6,_0x21e684._0x193bcd)][_0x1b533(_0x21e684._0x26c197,_0x21e684._0x4e5eaf,_0x21e684._0x4d82c9,0x541)]>0x0)return _0x2e2ab1[_0x1b533(_0x21e684._0x34a44f,0x440,_0x21e684._0x21763f,0x4c0)];function _0x393e46(_0xbcb849,_0x150e93,_0x41476d,_0x3473ea){return _0x74a064(_0xbcb849-0xf9,_0x150e93-_0x275e7d._0x32e111,_0xbcb849- -0xa3,_0x3473ea);}function _0x1b533(_0x2e59d1,_0x4b27b8,_0x5d46de,_0x17d08d){return _0x74a064(_0x2e59d1-_0x242b37._0x4f48d5,_0x4b27b8-0xa3,_0x17d08d-0x417,_0x5d46de);}return _0x393e46(-_0x21e684._0x4264f9,-_0x21e684._0x5e5d82,0x20,_0x21e684._0x3b6c1c);}function createDefaultWebSocketFactory(){return({headers:_0x8779bf,url:_0x16475e})=>{const _0x3eec12=globalThis['WebSocket'];return new _0x3eec12(_0x16475e,{'headers':_0x8779bf,'protocols':[]});};}async function*iterateSseEvents(_0x247044,_0x29502c){const _0x486c0={_0x240b2a:0x1bf,_0x2c37b8:0x15c,_0x1e2d69:0x251,_0x5e614:0x142,_0x2dc167:0x181,_0x296ffe:0x162,_0x2ba830:0x149,_0x5bca02:0x14b,_0x57a3c6:0x1c8,_0x190afa:0x204,_0xc132dd:0x14b,_0x14ab50:0x12a,_0x110265:0xdb,_0x3c2df7:0x5,_0x5dfa51:0x6f,_0x2150e7:0x55,_0x5843a1:0xd7,_0x49cff7:0x215,_0x5f0005:0x1db},_0x10f57b={_0x5452e4:0x213,_0x2644c5:0x261,_0x499342:0x2c3,_0x1a3803:0x238},_0x3b4032={_0x1a04c8:0x189,_0xe1a8b:0x103},_0x58e009={_0x567ca0:0xdd,_0x35c569:0x10d};function _0x246e3f(_0x594f61,_0x62bb9b,_0x3aba92,_0x33d97d){return _0xc7d8a6(_0x594f61-0x8,_0x594f61,_0x3aba92-0x156,_0x33d97d-0x25e);}function _0x1c899e(_0x5e9aa5,_0x412835,_0x22920e,_0x14dad0){return _0x74a064(_0x5e9aa5-0x66,_0x412835-0xce,_0x412835- -0x16d,_0x22920e);}const _0x59554c=_0x247044[_0x1c899e(-_0x486c0._0x240b2a,-0xd8,-_0x486c0._0x2c37b8,-0x42)]?.[_0x246e3f(0x2cc,0x2d9,0x26a,_0x486c0._0x1e2d69)]();if(!_0x59554c)return;const _0x1d9394=new TextDecoder('utf-8');let _0x5b0f2f='';const _0x2bd3d0=addAbortListener(_0x29502c,()=>{function _0x14ac6c(_0xe8d962,_0x433830,_0x144914,_0x449360){return _0x246e3f(_0x449360,_0x433830-_0x58e009._0x567ca0,_0x144914-_0x58e009._0x35c569,_0x144914-0x124);}function _0x2b5bd6(_0x44fd58,_0x5b8f78,_0x3a74ba,_0x567205){return _0x1c899e(_0x44fd58-0xa5,_0x567205-_0x3b4032._0x1a04c8,_0x3a74ba,_0x567205-_0x3b4032._0xe1a8b);}void _0x59554c['cancel'](toAbortError(_0x29502c?.[_0x14ac6c(0x245,0x149,_0x10f57b._0x5452e4,0x151)]))[_0x14ac6c(_0x10f57b._0x2644c5,_0x10f57b._0x499342,_0x10f57b._0x1a3803,0x1c7)](()=>{});});try{while(!![]){throwIfAborted(_0x29502c);const {value:_0x1b9b67,done:_0x51688c}=await _0x59554c[_0x1c899e(-0x173,-0x1de,-_0x486c0._0x5e614,-_0x486c0._0x2dc167)]();throwIfAborted(_0x29502c);if(_0x51688c)break;_0x5b0f2f+=_0x1d9394['decode'](_0x1b9b67,{'stream':!![]});while(!![]){const _0x18d6be=_0x5b0f2f[_0x246e3f(_0x486c0._0x296ffe,0x254,0x181,0x195)]('\x0a\x0a');if(_0x18d6be===-0x1)break;const _0xe57e53=_0x5b0f2f[_0x1c899e(-_0x486c0._0x2ba830,-_0x486c0._0x5bca02,-_0x486c0._0x57a3c6,-_0x486c0._0x190afa)](0x0,_0x18d6be);_0x5b0f2f=_0x5b0f2f[_0x1c899e(-0x1df,-_0x486c0._0xc132dd,-0x1d1,-0xdc)](_0x18d6be+0x2),_0xe57e53[_0x1c899e(-0xf2,-0x1a2,-_0x486c0._0x14ab50,-0x1ab)]()[_0x1c899e(-0x8d,-0x43,0x1,-0x29)]>0x0&&(yield _0xe57e53);}}_0x5b0f2f+=_0x1d9394[_0x1c899e(-0x11e,-0x9d,-0x13d,-_0x486c0._0x110265)](),throwIfAborted(_0x29502c),_0x5b0f2f[_0x246e3f(-_0x486c0._0x3c2df7,_0x486c0._0x5dfa51,_0x486c0._0x2150e7,_0x486c0._0x5843a1)]()[_0x246e3f(_0x486c0._0x49cff7,_0x486c0._0x5f0005,0x171,0x236)]>0x0&&(yield _0x5b0f2f);}finally{_0x2bd3d0();}}async function waitForWebSocketOpen(_0x20d399,_0x212f96){const _0x1caa98={_0x5ae571:0x412,_0x47a60e:0x372,_0x2ce6e6:0x225},_0x569d93={_0x415cf9:0x2f4,_0x34876f:0x1f3,_0x421d51:0x2d1,_0x466b74:0x2bb,_0x13a1a2:0x350,_0x2f4139:0x251,_0x2f87f8:0x170},_0x9436c0={_0x3bec88:0x45b,_0x4e6f05:0xd9,_0x3f9474:0xa7},_0x389699={_0x4ad971:0x4aa,_0x41689f:0x419,_0x54b908:0x352},_0x399c46={_0x1f1fcf:0x8f,_0x374a11:0xd,_0x436ed2:0x9f,_0x143fc7:0xf},_0x5365f7={_0x5416cf:0x27b},_0x153a35={_0x1420ec:0x11b,_0x4c395c:0x3c4};function _0x2e5ba5(_0x4ee1e3,_0x4a4ce8,_0x261ef3,_0x745745){return _0xc7d8a6(_0x4ee1e3-_0x153a35._0x1420ec,_0x4a4ce8,_0x261ef3-0x4e,_0x745745-_0x153a35._0x4c395c);}if(_0x20d399[_0x2e5ba5(_0x1caa98._0x5ae571,0x319,_0x1caa98._0x47a60e,0x3ab)]===WebSocket[_0x2e5ba5(0x304,_0x1caa98._0x2ce6e6,0x319,0x261)]){throwIfAborted(_0x212f96);return;}throwIfAborted(_0x212f96);function _0x3e11aa(_0x2a2e1a,_0x381ec0,_0x28ebb0,_0x5ae8f3){return _0x74a064(_0x2a2e1a-0x3f,_0x381ec0-0x1d6,_0x381ec0- -_0x5365f7._0x5416cf,_0x2a2e1a);}await new Promise((_0x20e433,_0x140e75)=>{const _0x3bb4b2={_0x4336dd:0x22,_0x1e5ffb:0x73,_0x2c2db9:0x33a,_0x2a2ad9:0x32f,_0x17b00b:0x71,_0x586569:0x22,_0x1d1be8:0x34,_0x22bccf:0xce,_0x55a0be:0xa9,_0x4673a6:0x396,_0x59390c:0x2de,_0x5c0ba5:0x1af,_0x3c939f:0x204,_0xdf259:0x10c},_0x391184={_0x4e5aa4:0xff},_0x3f4e84={_0x305034:0x52,_0x61fab4:0x15,_0x189c7a:0x3f,_0x28eaa7:0xf9,_0x1ae8a6:0x138,_0x5aa85f:0xe1,_0x1ba644:0x1bc,_0x97cdcf:0x1a6,_0xaf0587:0x210,_0x1e555c:0x1be},_0x5befec={_0x14448d:0x2fd},_0x41f94d={_0x4364aa:0x4b9};function _0x93524b(_0x40c16b,_0x39e3d6,_0xb82270,_0x3058ae){return _0x2e5ba5(_0x40c16b-0x1e4,_0xb82270,_0xb82270-0x124,_0x40c16b- -_0x41f94d._0x4364aa);}const _0x33edab=()=>{_0x42a6b8(),_0x20e433();},_0xf13cd9=_0xf5ef71=>{function _0x45dbc5(_0x4896b6,_0x407755,_0x956215,_0x558cc6){return _0x4762(_0x407755- -0x1b1,_0x956215);}function _0x4552e8(_0x1df0e7,_0x566b0f,_0x59aabd,_0x199864){return _0x4762(_0x199864-0x344,_0x1df0e7);}_0x42a6b8(),_0x140e75(new Error(_0xf5ef71[_0x4552e8(0x5db,0x629,0x518,0x549)]||_0x45dbc5(_0x399c46._0x1f1fcf,_0x399c46._0x374a11,-_0x399c46._0x436ed2,_0x399c46._0x143fc7)));},_0x26a510=_0x54f760=>{_0x42a6b8();function _0x256cff(_0x43422e,_0x137684,_0x4fef9b,_0x68a2d7){return _0x4762(_0x137684-0x2de,_0x4fef9b);}const _0x23f794=_0x54f760;_0x140e75(new Error(_0x23f794['reason']||_0x256cff(_0x389699._0x4ad971,_0x389699._0x41689f,_0x389699._0x54b908,0x4d9)));},_0xd50104=()=>{_0x42a6b8();_0x20d399[_0x5cc592(-_0x3f4e84._0x305034,-_0x3f4e84._0x61fab4,-0x6c,-_0x3f4e84._0x189c7a)]===WebSocket[_0x5cc592(-0x190,-_0x3f4e84._0x28eaa7,-_0x3f4e84._0x1ae8a6,-0x189)]&&_0x20d399[_0x5cc592(-0x267,-0x1dc,-_0x3f4e84._0x5aa85f,-0x197)](0x3e8,_0x5cc592(-0xf7,-_0x3f4e84._0x1ba644,-_0x3f4e84._0x97cdcf,-0x1c5));function _0x5cc592(_0x15c36e,_0x5521ae,_0x2a76f8,_0x17c950){return _0x4762(_0x17c950- -0x2d4,_0x5521ae);}function _0x18a130(_0x386fd2,_0x5950d5,_0x22cd4b,_0x5b67c6){return _0x4762(_0x5950d5- -_0x5befec._0x14448d,_0x22cd4b);}_0x140e75(toAbortError(_0x212f96?.[_0x18a130(-_0x3f4e84._0xaf0587,-_0x3f4e84._0x1e555c,-0x10f,-0x25f)]));},_0x42a6b8=()=>{const _0x2db89f={_0x2caf78:0x1df};function _0x585b13(_0x1c7a4b,_0x12fc71,_0x39f6e6,_0x389902){return _0x4762(_0x12fc71- -_0x391184._0x4e5aa4,_0x389902);}_0x20d399[_0x585b13(-0xb3,_0x3bb4b2._0x4336dd,_0x3bb4b2._0x1e5ffb,0xb2)](_0x2e4719(_0x3bb4b2._0x2c2db9,_0x3bb4b2._0x2a2ad9,0x36b,0x41c),_0x33edab);function _0x2e4719(_0x31eaf7,_0x4db172,_0x2bce73,_0x442ef0){return _0x4762(_0x31eaf7-_0x2db89f._0x2caf78,_0x4db172);}_0x20d399[_0x585b13(_0x3bb4b2._0x17b00b,_0x3bb4b2._0x586569,0x14,0x45)](_0x585b13(_0x3bb4b2._0x1d1be8,_0x3bb4b2._0x22bccf,_0x3bb4b2._0x55a0be,0x0),_0xf13cd9),_0x20d399['removeEventListener'](_0x2e4719(0x31c,0x2f2,_0x3bb4b2._0x4673a6,0x2dc),_0x26a510),_0x212f96?.[_0x2e4719(0x300,_0x3bb4b2._0x59390c,0x280,0x31a)](_0x585b13(_0x3bb4b2._0x5c0ba5,0x182,_0x3bb4b2._0x3c939f,_0x3bb4b2._0xdf259),_0xd50104);};function _0xe2b47b(_0x3ddc9b,_0x34304b,_0x4d5866,_0x5e78c5){return _0x3e11aa(_0x4d5866,_0x3ddc9b-_0x9436c0._0x3bec88,_0x4d5866-_0x9436c0._0x4e6f05,_0x5e78c5-_0x9436c0._0x3f9474);}_0x20d399[_0xe2b47b(0x2d1,0x31b,_0x569d93._0x415cf9,_0x569d93._0x34876f)]('open',_0x33edab),_0x20d399[_0xe2b47b(_0x569d93._0x421d51,0x250,_0x569d93._0x466b74,_0x569d93._0x13a1a2)](_0xe2b47b(_0x569d93._0x2f4139,_0x569d93._0x2f87f8,0x29c,0x27b),_0xf13cd9),_0x20d399['addEventListener']('close',_0x26a510),_0x212f96?.[_0x93524b(-0x156,-0x213,-0xb3,-0x139)]('abort',_0xd50104,{'once':!![]});});}function iterateWebSocketMessages(_0x243139,_0xa9e7f9){const _0x43fed6={_0x36bb3a:0x57d,_0x3c885d:0x570,_0x492c37:0x595,_0x52dd99:0x5dd,_0x16ece0:0x4ff,_0x3a0b7a:0x496,_0x4912ba:0x43c,_0x2721b1:0x485,_0x2abe24:0x3a8},_0x6b701d={_0x102ae8:0x431,_0x2e110d:0x508,_0x5852fb:0x396,_0x55d0ed:0x431,_0x9655ca:0x386,_0x731314:0x4f5,_0x526afe:0x457,_0x3f6c62:0x4f9,_0x330795:0x43d,_0x1b427c:0x4db},_0x59a56c={_0x32dfa5:0x2f1,_0x107871:0x101,_0x15aaeb:0x173,_0x35a68a:0xa9,_0x1f7c6d:0x25d,_0x22b3f0:0x1ea,_0x30bf0c:0x297},_0x5a1e69={_0x4b6268:0x14e},_0x5d4a02={_0x542838:0x263,_0x2d2100:0x25f,_0x1ddb3c:0x1c8,_0x3c8d46:0x273},_0xe66d38={_0x60aaa1:0x1a,_0x54321b:0xad,_0x340ff1:0x1bc,_0x5807e1:0x139,_0x404662:0xdc,_0x469aa6:0x3},_0x1cdc72={_0x2a39ff:0x1d6,_0x414e53:0x11d,_0x59e180:0x2cd,_0x183c07:0x23d,_0x20e6fe:0x1b3,_0x58fd7e:0x22f},_0x3d0478={_0x13aa96:0x9b,_0x6c6003:0x5f6},_0x536c09={_0x41195d:0x18b,_0x59da0d:0x93,_0x46ac15:0x626};function _0x50fd83(_0x3a895,_0x1f2426,_0x474fb8,_0x59d48f){return _0xc7d8a6(_0x3a895-_0x536c09._0x41195d,_0x1f2426,_0x474fb8-_0x536c09._0x59da0d,_0x59d48f-_0x536c09._0x46ac15);}const _0x3fe769=[];let _0x9b1648=![],_0x4120b3;function _0x1c6439(_0x28cdbe,_0x379c80,_0x141e1f,_0x4c14d3){return _0xc7d8a6(_0x28cdbe-_0x3d0478._0x13aa96,_0x28cdbe,_0x141e1f-0x1e5,_0x379c80-_0x3d0478._0x6c6003);}let _0x415122;const _0x1d6a0f=_0x3f5332=>{function _0x173cd1(_0x10a261,_0x2a6ae9,_0x1919e3,_0x411486){return _0x4762(_0x2a6ae9- -0x2b7,_0x411486);}function _0x317f27(_0x2232ad,_0x3fab79,_0x572583,_0x254d03){return _0x4762(_0x572583- -0x3a4,_0x2232ad);}const _0x1ba407=_0x3f5332;try{_0x3fe769[_0x173cd1(-0x207,-_0x1cdc72._0x2a39ff,-0x170,-_0x1cdc72._0x414e53)](JSON[_0x317f27(-0x238,-_0x1cdc72._0x59e180,-0x200,-_0x1cdc72._0x183c07)](String(_0x1ba407[_0x173cd1(-_0x1cdc72._0x20e6fe,-0x158,-_0x1cdc72._0x58fd7e,-0x206)]))),_0x415122?.(),_0x415122=void 0x0;}catch(_0x275af0){_0x4120b3=new Error('Invalid\x20WebSocket\x20message:\x20'+toErrorMessage(_0x275af0)),_0x415122?.(),_0x415122=void 0x0;}},_0x11a2df=_0x5bd8fd=>{const _0x19d316={_0x1400bb:0xef},_0x9bf89c=_0x5bd8fd;_0x4120b3=new Error(_0x9bf89c[_0x6a473e(-0xd5,_0xe66d38._0x60aaa1,-0x95,-_0xe66d38._0x54321b)]||_0x6a473e(-_0xe66d38._0x340ff1,-_0xe66d38._0x5807e1,-_0xe66d38._0x404662,-_0xe66d38._0x469aa6));function _0x26b816(_0x5b8939,_0x1d458c,_0x4e551e,_0x3c69aa){return _0x4762(_0x5b8939-_0x19d316._0x1400bb,_0x4e551e);}_0x415122?.();function _0x6a473e(_0xc49743,_0xddc627,_0x3e9bd6,_0x3fc638){return _0x4762(_0x3e9bd6- -0x29a,_0x3fc638);}_0x415122=void 0x0;},_0x43a622=_0x4d25c5=>{const _0x246bb1=_0x4d25c5;!_0x9b1648&&_0x246bb1[_0x5f4132(0x28b,_0x5d4a02._0x542838,0x1b5,0x229)]!==0x3e8&&!_0x4120b3&&(_0x4120b3=new Error(_0x246bb1[_0xc88bd5(-_0x5d4a02._0x2d2100,-0x21c,-_0x5d4a02._0x1ddb3c,-0x2a0)]||'WebSocket\x20closed\x20with\x20code\x20'+_0x246bb1[_0xc88bd5(-_0x5d4a02._0x3c8d46,-0x39f,-0x383,-0x303)]));_0x9b1648=!![];function _0xc88bd5(_0x1e2cf1,_0x2cb759,_0x28a9b6,_0x9dcd06){return _0x4762(_0x9dcd06- -0x3df,_0x28a9b6);}function _0x5f4132(_0x4d5fc3,_0x41b521,_0x283284,_0x1bdade){return _0x4762(_0x41b521-0x187,_0x1bdade);}_0x415122?.(),_0x415122=void 0x0;},_0x281620=addAbortListener(_0xa9e7f9,()=>{function _0x516e0a(_0x2d0ceb,_0x2fc638,_0x3e217f,_0x3150ef){return _0x4762(_0x3e217f- -0x2be,_0x3150ef);}_0x4120b3=toAbortError(_0xa9e7f9?.[_0x2570f8(_0x59a56c._0x32dfa5,0x28d,0x31d,0x2f0)]);_0x243139['readyState']===WebSocket[_0x516e0a(-0x8d,-_0x59a56c._0x107871,-_0x59a56c._0x15aaeb,-_0x59a56c._0x35a68a)]&&_0x243139['close'](0x3e8,_0x2570f8(0x192,_0x59a56c._0x1f7c6d,_0x59a56c._0x22b3f0,_0x59a56c._0x30bf0c));function _0x2570f8(_0x3e295e,_0x54a411,_0x255a8b,_0x4a67fc){return _0x4762(_0x54a411-_0x5a1e69._0x4b6268,_0x4a67fc);}_0x415122?.(),_0x415122=void 0x0;});return _0x243139[_0x1c6439(0x510,0x595,0x51f,0x5cf)](_0x50fd83(0x4ad,0x644,0x50e,_0x43fed6._0x36bb3a),_0x1d6a0f),_0x243139[_0x1c6439(_0x43fed6._0x3c885d,_0x43fed6._0x492c37,_0x43fed6._0x52dd99,0x543)](_0x1c6439(0x4a5,0x515,_0x43fed6._0x16ece0,_0x43fed6._0x3a0b7a),_0x11a2df),_0x243139['addEventListener'](_0x1c6439(_0x43fed6._0x4912ba,_0x43fed6._0x2721b1,0x42b,_0x43fed6._0x2abe24),_0x43a622),{async*[Symbol['asyncIterator']](){const _0x1f1f4a={_0xd74660:0x56,_0x37a36e:0xb6};function _0x5327a5(_0x5c6595,_0x89db91,_0x3a0ef0,_0x5ef3c9){return _0x50fd83(_0x5c6595-0x85,_0x3a0ef0,_0x3a0ef0-0x3f,_0x89db91- -0x68);}function _0x2aa8cf(_0x56b6ce,_0x451af7,_0x276fff,_0x54ca19){return _0x1c6439(_0x276fff,_0x54ca19-_0x1f1f4a._0xd74660,_0x276fff-_0x1f1f4a._0x37a36e,_0x54ca19-0x10f);}try{while(!![]){if(_0x4120b3)throw _0x4120b3;if(_0x3fe769['length']>0x0){yield _0x3fe769['shift']();continue;}if(_0x9b1648)break;await new Promise(_0x451a0a=>{_0x415122=_0x451a0a;});}}finally{_0x243139[_0x5327a5(0x3e9,_0x6b701d._0x102ae8,_0x6b701d._0x2e110d,0x3dd)](_0x2aa8cf(0x528,0x627,0x646,0x5a3),_0x1d6a0f),_0x243139['removeEventListener']('error',_0x11a2df),_0x243139[_0x5327a5(_0x6b701d._0x5852fb,_0x6b701d._0x55d0ed,_0x6b701d._0x9655ca,_0x6b701d._0x731314)](_0x2aa8cf(_0x6b701d._0x526afe,_0x6b701d._0x3f6c62,_0x6b701d._0x330795,_0x6b701d._0x1b427c),_0x43a622),_0x281620();}}};}function toWebSocketUrl(_0x2a3aca,_0x113ec4){const _0x1ba216={_0x1b18b3:0x165,_0x3c49b4:0x181,_0x1a5b4c:0x129,_0xd74b78:0x1cd,_0x1bf99f:0xc0,_0x267889:0x1b6,_0x5d4e8e:0x7f,_0x2d7d88:0x63},_0x2aa1fb={_0x282608:0x6f},_0x2f62af={_0x4036b3:0x23,_0x391a46:0xea,_0x530812:0x29e},_0x8fc709=new URL(_0x113ec4,_0x2a3aca);_0x8fc709[_0x34af35(_0x1ba216._0x1b18b3,0x1b1,_0x1ba216._0x3c49b4,_0x1ba216._0x1a5b4c)]=_0x8fc709[_0x34af35(_0x1ba216._0xd74b78,0x1f5,0xf2,0x129)]==='https:'?_0x34af35(_0x1ba216._0x1bf99f,_0x1ba216._0x267889,0x18e,0x11b):_0x34af35(0x2c,-_0x1ba216._0x5d4e8e,0x35,_0x1ba216._0x2d7d88);function _0x16ac84(_0x50b193,_0x11c2f0,_0xb37acc,_0x3c8240){return _0xc7d8a6(_0x50b193-_0x2f62af._0x4036b3,_0x3c8240,_0xb37acc-_0x2f62af._0x391a46,_0xb37acc-_0x2f62af._0x530812);}function _0x34af35(_0x4e2966,_0x13d663,_0x365441,_0x4c06d3){return _0xc7d8a6(_0x4e2966-_0x2aa1fb._0x282608,_0x4e2966,_0x365441-0x17b,_0x4c06d3-0x188);}return _0x8fc709['toString']();}var ProviderSessionManager=class{[_0x74a064(-0xdb,0x38,-0x84,-0x53)];[_0x74a064(0x1d2,0x104,0x10c,0x17e)];constructor(_0x9a82ac){this['resolver']=_0x9a82ac;}async['resolve'](_0x2ce990){const _0x41b882={_0x43a45:0xe3,_0x57554c:0x97,_0x373062:0xad,_0x625cc2:0x23a,_0x395c88:0x3c2,_0x4e7b8d:0x418,_0x30f57f:0x373},_0x4447aa={_0x39799e:0x71,_0x332827:0x11a},_0x22f667={_0x121d20:0xbc,_0x4d5785:0x1},_0x151eae={_0x3fc3ea:0x357};function _0x281482(_0x249fbc,_0x1aac29,_0x56951c,_0x4421ec){return _0xc7d8a6(_0x249fbc-0x1d0,_0x56951c,_0x56951c-0x1cd,_0x249fbc-0x459);}if(!this[_0x596902(_0x41b882._0x43a45,_0x41b882._0x57554c,_0x41b882._0x373062,-0x7)]){const _0x236335=this['resolver'][_0x281482(0x2f4,_0x41b882._0x625cc2,_0x41b882._0x395c88,0x2b8)](_0x2ce990);_0x236335['catch'](()=>{function _0x3cecfa(_0x481a36,_0x2ecde5,_0x4d93c0,_0x1257ba){return _0x281482(_0x481a36- -_0x151eae._0x3fc3ea,_0x2ecde5-0x91,_0x2ecde5,_0x1257ba-0x9a);}this[_0x3cecfa(_0x22f667._0x121d20,_0x22f667._0x4d5785,0x137,0x164)]===_0x236335&&(this['cached']=void 0x0);}),this[_0x281482(0x413,_0x41b882._0x4e7b8d,0x3d4,_0x41b882._0x30f57f)]=_0x236335;}function _0x596902(_0x35ae49,_0xcd0219,_0x1aca01,_0x3e4998){return _0xc7d8a6(_0x35ae49-_0x4447aa._0x39799e,_0x1aca01,_0x1aca01-_0x4447aa._0x332827,_0xcd0219-0xdd);}return structuredClone(await this[_0x596902(0x141,0x97,0xf2,0x169)]);}[_0xc7d8a6(-0x209,-0x192,-0x4a,-0x129)](){this['cached']=void 0x0;}};async function prepareProviderRequest(_0x598322,_0x5a4d0b={}){const _0x4b04a5={_0x283232:0x552,_0x1a27cb:0x11d,_0x4637dc:0x9b,_0x4e6da9:0x1a3,_0x5f207d:0xed,_0x1634af:0x117,_0x22f4ac:0x3e1,_0x59d6cd:0x4ab,_0x26d9e6:0x454},_0x3a7775={_0x1e58b5:0x282};function _0x14c163(_0x4a8fdf,_0x6f52f5,_0x3d696c,_0x45af74){return _0x74a064(_0x4a8fdf-0x7e,_0x6f52f5-0x1d2,_0x3d696c-0x48d,_0x4a8fdf);}let _0x1843c6={'request':structuredClone(_0x598322),'session':_0x5a4d0b['sessionManager']?await _0x5a4d0b[_0x14c163(0x3ac,0x55c,0x483,_0x4b04a5._0x283232)][_0x8f6cd9(_0x4b04a5._0x1a27cb,_0x4b04a5._0x4637dc,_0x4b04a5._0x4e6da9,0x1e2)](_0x5a4d0b[_0x8f6cd9(0x10b,_0x4b04a5._0x5f207d,_0x4b04a5._0x1634af,0x67)]):void 0x0};function _0x8f6cd9(_0x1d77cb,_0xbfc55d,_0x5a5e87,_0x2a9e45){return _0xc7d8a6(_0x1d77cb-0x11e,_0xbfc55d,_0x5a5e87-0xcf,_0x1d77cb-_0x3a7775._0x1e58b5);}for(const _0x2add2f of _0x5a4d0b[_0x14c163(0x41a,_0x4b04a5._0x22f4ac,_0x4b04a5._0x59d6cd,_0x4b04a5._0x26d9e6)]??[]){_0x1843c6=await _0x2add2f(_0x1843c6);}return _0x1843c6;}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{[_0xc7d8a6(-0x28,-0xa2,-0xc2,-0xfc)];['maxTokens'];[_0x74a064(0x1d9,0xb9,0x128,0xb2)];[_0xc7d8a6(-0xe5,-0x4c,-0x69,-0x90)];[_0xc7d8a6(-0x15a,-0xdf,-0xdb,-0x152)];['fetchImpl'];[_0xc7d8a6(-0x146,-0x158,-0x16c,-0x192)];['requestMutators'];[_0xc7d8a6(-0x12e,-0x1a,0x18,-0x78)];[_0x74a064(-0x90,0x90,-0xa,0x98)];[_0x74a064(0x7f,-0x68,0x77,0xf7)];[_0xc7d8a6(-0xd8,-0x6c,-0x123,-0x13a)]=new Map();constructor(_0x3fbaff){const _0x4c65a8={_0x479a24:0x2f,_0x3974a7:0x46,_0x83d161:0x12,_0x395ba1:0x319,_0x2a0acc:0x2f0,_0x36a380:0x7f,_0x1c88ae:0x2d,_0x427f02:0x3a7,_0xee779f:0x3a2,_0x304c86:0x312,_0x43a906:0x4a,_0x488dd3:0x1e0,_0x5277b0:0x30e,_0x13fb8f:0x9e,_0x1f6b8c:0x65,_0x192e8e:0x5,_0x4de919:0x10,_0x30ed1d:0x75,_0x606e27:0x10,_0x167a33:0xb8,_0x2b17d8:0x3b6,_0x5e4004:0x29b,_0x693c8c:0xac,_0x1310d5:0x6b,_0x500f6f:0x28a,_0x2bafe9:0x4c,_0x3a378b:0x0,_0x18b0b1:0x2b1,_0x35b352:0x21e,_0x4c75e7:0x22b,_0x4c5c37:0x2fa,_0x373f8b:0x241,_0x1b6c0d:0x241,_0x4ad540:0xa7,_0x555f32:0xc0,_0x2a26eb:0x3e,_0x571991:0x8,_0x4a13cb:0x28c,_0xd75f96:0x321},_0x4f8e31={_0x1fc451:0x182,_0xc17248:0xa1},_0x568abe={_0x19e7e1:0x19d,_0x4047cf:0x142};this[_0x43817a(0xdc,-0x47,0x46,0x65)]=_0x3fbaff[_0x43817a(0xf2,-_0x4c65a8._0x479a24,_0x4c65a8._0x3974a7,-_0x4c65a8._0x83d161)];function _0x43817a(_0x5d7a80,_0x5b4f10,_0x499673,_0x2d07e6){return _0xc7d8a6(_0x5d7a80-0x10b,_0x5d7a80,_0x499673-_0x568abe._0x19e7e1,_0x499673-_0x568abe._0x4047cf);}this[_0x4cce3e(0x284,_0x4c65a8._0x395ba1,_0x4c65a8._0x2a0acc,0x2a0)]=_0x3fbaff[_0x43817a(_0x4c65a8._0x36a380,0x3d,0xc6,_0x4c65a8._0x1c88ae)]??getDefaultMaxTokens();function _0x4cce3e(_0x1e6808,_0x287f51,_0xe4fd30,_0xb4d911){return _0x74a064(_0x1e6808-_0x4f8e31._0x1fc451,_0x287f51-_0x4f8e31._0xc17248,_0xb4d911-0x1ca,_0xe4fd30);}this[_0x4cce3e(_0x4c65a8._0x427f02,_0x4c65a8._0xee779f,_0x4c65a8._0x304c86,0x2f2)]=_0x3fbaff['reasoning']?structuredClone(_0x3fbaff[_0x43817a(0x4d,_0x4c65a8._0x43a906,0x118,0x1b1)]):void 0x0,this[_0x4cce3e(_0x4c65a8._0x488dd3,0x2e4,_0x4c65a8._0x5277b0,0x28c)]=_0x3fbaff[_0x43817a(0xc5,0x5b,0xb2,_0x4c65a8._0x13fb8f)],this[_0x43817a(_0x4c65a8._0x1f6b8c,_0x4c65a8._0x192e8e,-_0x4c65a8._0x4de919,-0x1d)]=_0x3fbaff[_0x43817a(_0x4c65a8._0x30ed1d,0xcf,-_0x4c65a8._0x606e27,-_0x4c65a8._0x167a33)],this[_0x4cce3e(0x21c,_0x4c65a8._0x2b17d8,_0x4c65a8._0x5e4004,0x2d0)]=_0x3fbaff[_0x43817a(0x13,0x8b,0xad,0xa9)]??globalThis['fetch'],this[_0x4cce3e(_0x4c65a8._0x693c8c,0x166,0xc1,0x18a)]=_0x3fbaff['providerAdapter'],this['requestMutators']=_0x3fbaff[_0x43817a(0x8,_0x4c65a8._0x1310d5,0xe,0x4)]??[],this[_0x4cce3e(0x302,0x332,_0x4c65a8._0x500f6f,0x2a4)]=_0x3fbaff['router'],this['sessionManager']=_0x3fbaff[_0x43817a(-0x32,_0x4c65a8._0x2bafe9,-0x1a,_0x4c65a8._0x3a378b)]??(_0x3fbaff[_0x4cce3e(0x2b2,_0x4c65a8._0x18b0b1,_0x4c65a8._0x35b352,0x22b)]?new ProviderSessionManager(_0x3fbaff[_0x4cce3e(0x1c6,0x177,0x1fc,_0x4c65a8._0x4c75e7)]):void 0x0),this[_0x4cce3e(0x25a,_0x4c65a8._0x4c5c37,0x1f3,_0x4c65a8._0x373f8b)]=_0x3fbaff[_0x4cce3e(0x171,0x318,0x1b9,_0x4c65a8._0x1b6c0d)]??createDefaultWebSocketFactory();for(const _0x628a1 of _0x3fbaff[_0x43817a(_0x4c65a8._0x4ad540,-0xf,0x8,-_0x4c65a8._0x555f32)]){this[_0x43817a(0xee,-_0x4c65a8._0x2a26eb,_0x4c65a8._0x571991,0xc1)][_0x4cce3e(_0x4c65a8._0x4a13cb,0x38e,_0x4c65a8._0xd75f96,0x2e6)](_0x628a1['id'],_0x628a1);}}['complete'](_0x172e32,_0x64c3fa){const _0x4fb66d={_0x3b8c92:0x363,_0x2f64c9:0x363,_0x1d4725:0x32c},_0x48f563={_0x5911e0:0x1aa};function _0x5c8aa3(_0x44198d,_0x141835,_0x1076d4,_0x40502d){return _0xc7d8a6(_0x44198d-0x1c8,_0x1076d4,_0x1076d4-_0x48f563._0x5911e0,_0x44198d-0x490);}return this[_0x5c8aa3(_0x4fb66d._0x3b8c92,_0x4fb66d._0x2f64c9,_0x4fb66d._0x1d4725,0x2c7)](_0x172e32,_0x64c3fa);}[_0xc7d8a6(-0xa2,-0x52,-0x1e9,-0x110)](_0x45b0ee,_0x1b4677){const _0x5d694a={_0x40b18e:0xe1,_0x3f59ac:0x1c1};function _0x229533(_0x58b267,_0x429b09,_0x690d4c,_0x530c62){return _0x74a064(_0x58b267-0x5,_0x429b09-0x1b5,_0x530c62-0xa5,_0x429b09);}return this[_0x229533(0x15d,_0x5d694a._0x40b18e,_0x5d694a._0x3f59ac,0x1ba)](_0x45b0ee,_0x1b4677);}async[_0x74a064(0xc9,0x8c,0x25,0xe7)](_0x5eb61f,_0x3eeb93){const _0x264ca5={_0x5cae51:0x12e,_0x1cca3b:0x34,_0x31faf2:0x4e,_0x124968:0x15a,_0x192341:0x8c,_0x30944e:0x239},_0x25808c={_0x25c4a1:0x14c};function _0x156379(_0x3eac0f,_0x446cef,_0x47c1ab,_0x2b538f){return _0x74a064(_0x3eac0f-0x139,_0x446cef-_0x25808c._0x25c4a1,_0x3eac0f-0x78,_0x47c1ab);}function _0x87c6d5(_0x1bc817,_0x4c6f37,_0x5c2f83,_0x308e5e){return _0xc7d8a6(_0x1bc817-0x179,_0x1bc817,_0x5c2f83-0x1b9,_0x4c6f37-0x25d);}const _0x2acbda=this[_0x156379(0xa8,_0x264ca5._0x5cae51,_0x264ca5._0x1cca3b,_0x264ca5._0x31faf2)](_0x5eb61f),_0x50c4cf=await this[_0x156379(0x152,0x235,0x1ba,0x153)][_0x156379(0x89,0x76,0x44,0x107)](_0x2acbda,{'mode':'complete'});return this[_0x156379(_0x264ca5._0x124968,0xb7,_0x264ca5._0x192341,_0x264ca5._0x30944e)](_0x2acbda,_0x50c4cf,_0x3eeb93);}async*['streamViaRouter'](_0x5cd372,_0x5c6672){const _0x4e1c96={_0x4b25cb:0x2eb,_0x582a64:0x2dd,_0x241fa5:0x361,_0x324736:0x420,_0x15b3fb:0x113,_0x1e37c0:0x14f,_0x9bf222:0x195,_0x3d0cd1:0x27c},_0x2fa128={_0x5ccd6d:0x71,_0xabf623:0x1f2,_0x2322e3:0x2be},_0xc7849e={_0x35d6c5:0x8e};function _0x14aaea(_0x561f6e,_0x3d09de,_0x246f30,_0x343317){return _0x74a064(_0x561f6e-0xd6,_0x3d09de-0x5e,_0x3d09de- -_0xc7849e._0x35d6c5,_0x343317);}function _0x3f30f8(_0xafd247,_0x4dbb33,_0x150f74,_0x33c5a9){return _0x74a064(_0xafd247-_0x2fa128._0x5ccd6d,_0x4dbb33-_0x2fa128._0xabf623,_0x150f74-_0x2fa128._0x2322e3,_0xafd247);}const _0x16c8f0=this[_0x3f30f8(_0x4e1c96._0x4b25cb,0x237,0x2ee,0x3ae)](_0x5cd372),_0x52dea2=await this[_0x3f30f8(_0x4e1c96._0x582a64,_0x4e1c96._0x241fa5,0x398,_0x4e1c96._0x324736)][_0x14aaea(-_0x4e1c96._0x15b3fb,-0x7d,-_0x4e1c96._0x1e37c0,-0xa9)](_0x16c8f0,{'mode':'stream'});yield*this[_0x3f30f8(0x2ae,_0x4e1c96._0x9bf222,_0x4e1c96._0x3d0cd1,0x331)](_0x16c8f0,_0x52dea2,_0x5c6672);}async[_0x74a064(0x117,0x1c5,0xe2,0x10e)](_0x32e398,_0x59ac9a,_0x1df79d){const _0x4ff47d={_0x3eb815:0x53c,_0x28171f:0x5e3,_0x388f6c:0x55a,_0x5ed49c:0x1e0,_0x9e18:0xdb,_0x404e9d:0x162,_0x4b0196:0x15b,_0x33cf4d:0x16e,_0x52a6cd:0x23,_0x5a04cf:0xa6,_0x5eab7a:0xd5,_0xe0309b:0xbc,_0xdb4e08:0xe,_0x9de9d9:0x21,_0x5d790b:0x84,_0x54c027:0x4ea,_0x2f2ae1:0x4bd,_0x16608d:0x4eb,_0x13ab15:0x515,_0x4ac89a:0x419,_0x539af2:0x4ca,_0x9ab5ce:0x44c,_0x562ee1:0x16c,_0x5354b3:0xc3,_0x34c826:0x153,_0xe75918:0x8f,_0x3adc4b:0x3a,_0x2e588c:0x146},_0x51e3e1={_0x2805c7:0x65e},_0xbe0ff0={_0x337f0a:0xe4,_0x1e7453:0x11e},_0x3c79d6=this[_0x334376(_0x4ff47d._0x3eb815,_0x4ff47d._0x28171f,_0x4ff47d._0x388f6c,0x4f9)](_0x32e398),_0xcb931f=this[_0x4ef65b(-_0x4ff47d._0x5ed49c,-0x167,-_0x4ff47d._0x9e18,-0x179)](_0x59ac9a);if(_0xcb931f[_0x4ef65b(-_0x4ff47d._0x404e9d,-_0x4ff47d._0x4b0196,-0x193,-_0x4ff47d._0x33cf4d)]===_0x4ef65b(-0x8d,_0x4ff47d._0x52a6cd,-0x4,0x4f)){const _0x527401=await this[_0x4ef65b(_0x4ff47d._0x5a04cf,-0xe,_0x4ff47d._0x5eab7a,-_0x4ff47d._0xe0309b)](_0x3c79d6,_0xcb931f,![],_0x1df79d);if(!_0x527401['ok'])throw await this[_0x4ef65b(_0x4ff47d._0xdb4e08,_0x4ff47d._0x9de9d9,-0x41,_0x4ff47d._0x5d790b)](_0x527401);if(!_0xcb931f[_0x334376(_0x4ff47d._0x54c027,_0x4ff47d._0x2f2ae1,0x4e4,_0x4ff47d._0x16608d)])throw new Error('Surface\x20'+_0x59ac9a+'\x20does\x20not\x20support\x20non-streaming\x20responses');return _0xcb931f[_0x334376(_0x4ff47d._0x54c027,0x4f1,_0x4ff47d._0x13ab15,_0x4ff47d._0x4ac89a)](await _0x527401['json'](),_0x3c79d6);}let _0x3d800f;function _0x4ef65b(_0x460553,_0x53d3f1,_0x19d297,_0x3592f4){return _0x74a064(_0x460553-_0xbe0ff0._0x337f0a,_0x53d3f1-0x1af,_0x53d3f1- -_0xbe0ff0._0x1e7453,_0x3592f4);}for await(const _0x211c6b of this[_0x334376(_0x4ff47d._0x539af2,_0x4ff47d._0x9ab5ce,0x574,0x3e8)](_0x3c79d6,_0x59ac9a,_0x1df79d)){_0x211c6b[_0x4ef65b(-0x136,-0xd5,-_0x4ff47d._0x562ee1,-0x138)]==='done'&&(_0x3d800f=_0x211c6b[_0x4ef65b(-0x16d,-_0x4ff47d._0x5354b3,-_0x4ff47d._0x34c826,-0xae)]);}function _0x334376(_0x5098aa,_0x3a7159,_0x818ed2,_0x5e8255){return _0xc7d8a6(_0x5098aa-0x1a0,_0x818ed2,_0x818ed2-0x7a,_0x5098aa-_0x51e3e1._0x2805c7);}if(!_0x3d800f)throw new Error('Surface\x20'+_0x59ac9a+_0x4ef65b(-0x2b,-_0x4ff47d._0xe75918,_0x4ff47d._0x3adc4b,-_0x4ff47d._0x2e588c));return _0x3d800f;}async*[_0xc7d8a6(-0x190,-0x15e,-0x123,-0x194)](_0xd4dee7,_0x158fc5,_0x1dcf93){const _0x133e19={_0x2ed918:0xf,_0x17d81b:0x55,_0x1ed6b8:0x32b,_0x5a56f0:0x19c,_0xea6302:0x280,_0x817cf7:0x75,_0x46706c:0xf8,_0x4ff56c:0x207,_0x5ab954:0x81,_0x5be08e:0x139,_0x3cdaa6:0xf3,_0x4d2d2d:0xdd,_0x21fdfe:0x1d8,_0x7a453d:0x1fb,_0x19bf54:0x8f,_0x30415e:0x46,_0x301d67:0xfd},_0x533ca2={_0x2aa654:0x89},_0x22cc7a={_0x42723a:0x138,_0x3e4c78:0xe5},_0x3adad6=this[_0x12bf58(0x59,_0x133e19._0x2ed918,0xbf,_0x133e19._0x17d81b)](_0xd4dee7),_0x542ec2=this[_0xfc24be(-_0x133e19._0x1ed6b8,-_0x133e19._0x5a56f0,-0x2e1,-_0x133e19._0xea6302)](_0x158fc5);function _0xfc24be(_0x45f948,_0xd06b3f,_0xa55806,_0x27ffb4){return _0xc7d8a6(_0x45f948-_0x22cc7a._0x42723a,_0xd06b3f,_0xa55806-0x1a0,_0x27ffb4- -_0x22cc7a._0x3e4c78);}function _0x12bf58(_0x2f7a1c,_0x27bc84,_0x27d1e3,_0x1e9775){return _0xc7d8a6(_0x2f7a1c-_0x533ca2._0x2aa654,_0x2f7a1c,_0x27d1e3-0x25,_0x27bc84-0x131);}if(_0x542ec2['transport']===_0xfc24be(-_0x133e19._0x817cf7,-_0x133e19._0x46706c,-0x10d,-0xf6)){const _0x24a42b=await this['completeViaSurface'](_0x3adad6,_0x158fc5,_0x1dcf93);yield{'type':_0xfc24be(-_0x133e19._0x4ff56c,-_0x133e19._0x5ab954,-0x121,-_0x133e19._0x5be08e),'response':_0x24a42b};return;}if(_0x542ec2[_0x12bf58(-0x80,-0x5e,-_0x133e19._0x3cdaa6,-_0x133e19._0x4d2d2d)]==='http-sse'){yield*this[_0xfc24be(-0x288,-0x24b,-_0x133e19._0x21fdfe,-0x23f)](_0x3adad6,_0x542ec2,_0x1dcf93);return;}yield*this[_0xfc24be(-_0x133e19._0x7a453d,-0x1fa,-0x1ce,-0x12d)](_0x3adad6,_0x542ec2,_0x1dcf93?.[_0x12bf58(-_0x133e19._0x19bf54,-_0x133e19._0x30415e,-_0x133e19._0x301d67,0x9e)]);}async[_0xc7d8a6(-0x2f,0x65,0x91,-0x26)](_0x512fc4){const _0x44c63b={_0x2a4c67:0x13b,_0x13060b:0x116,_0x3400fc:0x183},_0x5a0f43={_0xd0455:0x1c7,_0x56c525:0x2e,_0x103810:0x242},_0x365a70={_0x54f9f6:0x1c1,_0x4b5a45:0x1cf,_0x3c0a21:0x3da,_0x2fe09c:0x422,_0x20f0bc:0x312,_0x5431fb:0x1e5,_0x4fbe68:0x1e9,_0x2753a2:0x278,_0x2597e7:0x37d,_0x4d6d44:0x458,_0x220473:0x445,_0x340207:0x43e,_0x39fb87:0x4b5,_0x46379b:0x52d,_0x4673e5:0x4d8,_0x41e2a5:0x22e,_0x4e4085:0x1d3,_0x2e6dd5:0x1e0,_0x5b96af:0x219,_0x143e6c:0x272,_0x3e5eb9:0x493,_0x2844b5:0x5aa,_0xa8896e:0x4b5,_0x5951ac:0x510,_0x47ef0e:0x4ad,_0xf8fea0:0x1bb,_0x11be92:0x11d,_0x488b9c:0x5c3,_0x63c37c:0x4b2,_0x27c935:0x128,_0x1e35a0:0x2e8},_0x3287af={_0x78cf9b:0x3af},_0x2a3cb9=async()=>{const _0x324afd=this[_0x22731c(-_0x365a70._0x54f9f6,-0x25d,-0x217,-_0x365a70._0x4b5a45)]?await this[_0x284fc4(_0x365a70._0x3c0a21,0x48e,_0x365a70._0x2fe09c,0x3ee)][_0x22731c(-_0x365a70._0x20f0bc,-0x266,-0x2f2,-_0x365a70._0x5431fb)](_0x512fc4[_0x22731c(-_0x365a70._0x4fbe68,-_0x365a70._0x2753a2,-0x269,-0x25a)]):void 0x0;function _0x284fc4(_0x50fb7c,_0x6f807e,_0x440aea,_0x1621b8){return _0x4762(_0x6f807e-0x33c,_0x440aea);}function _0x22731c(_0x231925,_0xcd63ca,_0x58fe27,_0x41b206){return _0x4762(_0xcd63ca- -_0x3287af._0x78cf9b,_0x58fe27);}const _0x9a293f=this[_0x284fc4(_0x365a70._0x2597e7,_0x365a70._0x4d6d44,_0x365a70._0x220473,_0x365a70._0x340207)]['resolveCredential'](this['apiKey'],_0x324afd);if(!_0x9a293f)throw this[_0x284fc4(0x558,0x4f7,_0x365a70._0x39fb87,0x449)]();const _0x5e27b8=await this['createHeaders']({'body':_0x512fc4[_0x284fc4(0x5ab,_0x365a70._0x46379b,0x525,_0x365a70._0x4673e5)],'credential':_0x9a293f,'session':_0x324afd,'stream':![]},{'accept':_0x512fc4[_0x22731c(-_0x365a70._0x41e2a5,-_0x365a70._0x4e4085,-0x220,-_0x365a70._0x2e6dd5)]??_0x22731c(-_0x365a70._0x5b96af,-0x241,-_0x365a70._0x143e6c,-0x22c),'includeContentType':_0x512fc4[_0x284fc4(_0x365a70._0x3e5eb9,0x4dd,0x4f1,_0x365a70._0x2844b5)]===_0x284fc4(_0x365a70._0xa8896e,_0x365a70._0x5951ac,_0x365a70._0x47ef0e,0x5c4)});return this['fetchImpl'](''+this[_0x22731c(-0x337,-0x293,-0x2d8,-_0x365a70._0xf8fea0)]['resolveBaseUrl'](this[_0x284fc4(0x54e,0x498,0x56c,0x471)],_0x324afd)+_0x512fc4[_0x22731c(-0x14e,-_0x365a70._0x11be92,-0x12c,-0x120)],{'method':_0x512fc4['method'],'headers':_0x5e27b8,..._0x512fc4[_0x284fc4(_0x365a70._0x488b9c,_0x365a70._0x46379b,0x58d,_0x365a70._0x63c37c)]!==void 0x0?{'body':JSON['stringify'](_0x512fc4[_0x22731c(-0x1c0,-0x1be,-_0x365a70._0x27c935,-0x254)])}:{},'signal':_0x512fc4[_0x22731c(-_0x365a70._0x1e35a0,-0x278,-0x1bb,-0x217)]});};function _0x3a91f1(_0x4a6cb5,_0x53f4ed,_0x40eb18,_0x394f10){return _0x74a064(_0x4a6cb5-_0x5a0f43._0xd0455,_0x53f4ed-_0x5a0f43._0x56c525,_0x4a6cb5- -_0x5a0f43._0x103810,_0x394f10);}return await this[_0x3a91f1(-_0x44c63b._0x2a4c67,-_0x44c63b._0x13060b,-_0x44c63b._0x3400fc,-0x1b1)](_0x2a3cb9,_0x512fc4);}[_0x74a064(0x156,0x160,0x11f,0x9f)](_0x511a2e,_0x3e5f7d){const _0x17cd1b={_0x2907d9:0x460,_0x34e321:0x440,_0x196f4c:0xe9,_0x2574f8:0x195,_0x178cc2:0xb3,_0x1de180:0xee,_0x48613c:0xf4,_0x341122:0x124,_0x486476:0x437},_0x444cde={_0x4736a1:0x110,_0x12d551:0x10c},_0xaa5fb1=_0x511a2e?.[_0xad50de(_0x17cd1b._0x2907d9,_0x17cd1b._0x34e321,0x531,0x4b0)]['get']('retry-after');function _0x57482e(_0x4a80b2,_0xe72dcd,_0x44de8c,_0x376718){return _0x74a064(_0x4a80b2-0x111,_0xe72dcd-0x1ac,_0xe72dcd- -0x13c,_0x44de8c);}if(_0xaa5fb1){const _0x1e3535=Number(_0xaa5fb1);if(Number[_0x57482e(-_0x17cd1b._0x196f4c,-_0x17cd1b._0x2574f8,-_0x17cd1b._0x178cc2,-_0x17cd1b._0x1de180)](_0x1e3535)&&_0x1e3535>=0x0)return _0x1e3535*0x3e8;const _0x1e2dfe=Date[_0x57482e(-0x1c4,-_0x17cd1b._0x48613c,-0x13c,-_0x17cd1b._0x341122)](_0xaa5fb1);if(Number['isFinite'](_0x1e2dfe))return Math[_0xad50de(0x3fd,_0x17cd1b._0x486476,0x404,0x4c6)](0x0,_0x1e2dfe-Date['now']());}const _0x1e6ab0=DEFAULT_RETRY_DELAY_MS*0x2**_0x3e5f7d;if(_0x1e6ab0<RETRY_DELAY_STEP_CAP_MS)return _0x1e6ab0;function _0xad50de(_0x101a68,_0x1ea6d4,_0x40cec4,_0x5d40c7){return _0xc7d8a6(_0x101a68-_0x444cde._0x4736a1,_0x101a68,_0x40cec4-_0x444cde._0x12d551,_0x5d40c7-0x581);}return RETRY_DELAY_STEP_CAP_MS*0x2**(_0x3e5f7d-0x5);}[_0x74a064(0xc,-0x7,-0x33,-0xe2)](_0xf3e3f6){const _0x273ca1={_0x1ac462:0xec},_0x246fa1={_0x17749c:0xd3,_0x39e29f:0x203};function _0x4e9ae1(_0x4dd45e,_0x20492a,_0xdf0cb,_0x283c8c){return _0x74a064(_0x4dd45e-_0x246fa1._0x17749c,_0x20492a-0x19f,_0x283c8c- -_0x246fa1._0x39e29f,_0xdf0cb);}function _0x13e125(_0x33d341,_0x15f208,_0x1e7262,_0x372b65){return _0x74a064(_0x33d341-0x1a6,_0x15f208-0x190,_0x15f208-0x237,_0x1e7262);}return RETRYABLE_HTTP_STATUSES[_0x13e125(0x33a,0x266,0x18c,0x219)](_0xf3e3f6[_0x4e9ae1(-0x16d,-_0x273ca1._0x1ac462,-0xc9,-0x196)]);}[_0x74a064(0x1c8,0x67,0xe6,0x10)](_0x1c1b06){return!isAbortError(_0x1c1b06)&&_0x1c1b06 instanceof TypeError;}[_0x74a064(0xa8,0x75,0x2c,-0x71)](_0x2f276f){const _0x49b85c={_0x2fd46f:0x16a,_0x56e132:0x10f},_0x20572a={_0x269cce:0x4};function _0x28ba16(_0x161eb1,_0xa690bf,_0x1f1709,_0x139d4d){return _0xc7d8a6(_0x161eb1-_0x20572a._0x269cce,_0x139d4d,_0x1f1709-0xd5,_0x1f1709-0x1d6);}return this[_0x28ba16(0x1df,0x172,_0x49b85c._0x2fd46f,_0x49b85c._0x56e132)](_0x2f276f)||isRetryableProviderStreamEventError(_0x2f276f);}async['waitForRetry'](_0x4e60b3,_0x23c83e){const _0x1a022c={_0xab45db:0xb1,_0x4983b2:0x14b};throwIfAborted(_0x23c83e),await new Promise((_0x5d3812,_0x4733cb)=>{let _0x58214c=![];const _0x2bd860=addAbortListener(_0x23c83e,()=>{if(_0x58214c)return;function _0x5074f3(_0x2f632a,_0x5cdc71,_0x238cdb,_0x2a34d5){return _0x4762(_0x2a34d5- -0x74,_0x2f632a);}_0x58214c=!![],clearTimeout(_0x32db57),_0x4733cb(toAbortError(_0x23c83e?.[_0x5074f3(_0x1a022c._0xab45db,_0x1a022c._0x4983b2,0xff,0xcb)]));}),_0x32db57=setTimeout(()=>{_0x58214c=!![],_0x2bd860(),_0x5d3812();},_0x4e60b3);}),throwIfAborted(_0x23c83e);}async['sendWithRetries'](_0x86d9be,_0x468af5={}){const _0x14bc9c={_0xa9e209:0x403,_0x4f2798:0x95,_0x17103f:0x52c,_0x396680:0x610,_0x54cdd5:0x48f,_0x1b4cde:0x5df,_0x3d8ede:0x121,_0x26dd0e:0x5a,_0xd0b9e:0x9d,_0x1c2878:0xf6,_0x1c43b1:0x12,_0x3c5454:0x445,_0x598058:0x3a6,_0x57e0c8:0x4c2},_0x4f443b={_0xfb1676:0x10f,_0x587791:0x3b},_0x20cac3={_0x4d7350:0x1,_0x5d3d31:0x40d},{signal:_0x30a4b3}=_0x468af5;let _0x115a80=![];function _0x4296c4(_0x55ca98,_0x405988,_0x4efbcb,_0x3f0684){return _0x74a064(_0x55ca98-_0x20cac3._0x4d7350,_0x405988-0x2b,_0x55ca98-_0x20cac3._0x5d3d31,_0x3f0684);}function _0x1a0fd9(_0x101090,_0x23a7d3,_0x36d534,_0x280f18){return _0x74a064(_0x101090-0xb3,_0x23a7d3-_0x4f443b._0xfb1676,_0x101090-_0x4f443b._0x587791,_0x36d534);}for(let _0x76bfed=0x0;_0x76bfed<MAX_PROVIDER_REQUEST_ATTEMPTS;_0x76bfed+=0x1){throwIfAborted(_0x30a4b3);try{const _0xde516d=await _0x86d9be();if(_0xde516d['status']===0x191&&this[_0x4296c4(_0x14bc9c._0xa9e209,0x46e,0x3f9,0x47b)]&&!_0x115a80){_0x115a80=!![],this[_0x1a0fd9(0x31,-0x83,_0x14bc9c._0x4f2798,-0x75)]['invalidate']();continue;}if(!this['shouldRetryResponse'](_0xde516d)||_0x76bfed===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)return _0xde516d;const _0x183eb7=this[_0x4296c4(_0x14bc9c._0x17103f,_0x14bc9c._0x396680,_0x14bc9c._0x54cdd5,_0x14bc9c._0x1b4cde)](_0xde516d,_0x76bfed);await this['waitForRetry'](_0x183eb7,_0x30a4b3);}catch(_0x444d67){if(!this[_0x1a0fd9(_0x14bc9c._0x3d8ede,0x12c,_0x14bc9c._0x26dd0e,_0x14bc9c._0xd0b9e)](_0x444d67)||_0x76bfed===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0x444d67;const _0x458bfc=this[_0x1a0fd9(0x15a,0x10b,_0x14bc9c._0x1c2878,0xcc)](void 0x0,_0x76bfed);await this[_0x1a0fd9(0x7,-0xd5,-_0x14bc9c._0x1c43b1,0x77)](_0x458bfc,_0x30a4b3);}}throw new Error(_0x4296c4(_0x14bc9c._0x3c5454,_0x14bc9c._0x598058,_0x14bc9c._0x57e0c8,0x40d));}[_0xc7d8a6(-0x123,-0xcf,-0xb9,-0xf3)](){const _0x53d4f6={_0x2a6f04:0x2c9},_0x83bd26={_0x14ae24:0x16a};function _0x285e8d(_0x1939c7,_0x4ba7bc,_0x5c8db5,_0x20f1aa){return _0xc7d8a6(_0x1939c7-_0x83bd26._0x14ae24,_0x1939c7,_0x5c8db5-0x1c1,_0x20f1aa-0x46a);}return this[_0x285e8d(0x27e,0x234,_0x53d4f6._0x2a6f04,0x2d8)]['createMissingCredentialError']();}async['createHeaders'](_0x2adb83,_0x9bce15){const _0x4989d5={_0x132134:0x30b,_0x3feb2d:0x226,_0x15df48:0x16b,_0x462a9f:0x177},_0x3b6013={_0x3c2d36:0x162,_0x39e22e:0x1e9},_0x5c5448={_0x247d7c:0x1d2,_0x1ddaf2:0xc4,_0x55fc7a:0x7c};function _0x25b787(_0x23f862,_0x8814fa,_0x601d52,_0x250b98){return _0x74a064(_0x23f862-_0x5c5448._0x247d7c,_0x8814fa-_0x5c5448._0x1ddaf2,_0x23f862-_0x5c5448._0x55fc7a,_0x601d52);}function _0x51f5ff(_0x316d97,_0x4cc32e,_0x59aa7c,_0x547f17){return _0x74a064(_0x316d97-_0x3b6013._0x3c2d36,_0x4cc32e-_0x3b6013._0x39e22e,_0x316d97-0x34b,_0x547f17);}return await this[_0x51f5ff(_0x4989d5._0x132134,0x335,0x3ad,_0x4989d5._0x3feb2d)][_0x25b787(0xbb,0x15c,_0x4989d5._0x15df48,_0x4989d5._0x462a9f)](_0x2adb83,_0x9bce15);}[_0x74a064(0xb8,0x63,0xce,0x6d)](_0x3f5b75){const _0x52b878={_0xfb3f43:0x491,_0x35fa7b:0x4ae,_0x674dc5:0x4f0,_0x336ebe:0x441,_0x21d31a:0x4c1,_0x29f5dc:0x500,_0x1a63d4:0x54f},_0x24bae9={_0x22b856:0x1ed,_0xeecb47:0xaa},_0x361830={_0x2974e0:0x104,_0x39bf24:0x481};function _0x1b240d(_0x3f1de1,_0x11fe3b,_0x4d76e2,_0x591b2a){return _0x74a064(_0x3f1de1-0x15,_0x11fe3b-_0x361830._0x2974e0,_0x591b2a-_0x361830._0x39bf24,_0x3f1de1);}function _0x4c9bb8(_0x48ff0d,_0x43b0fc,_0x11efdd,_0x19199c){return _0x74a064(_0x48ff0d-_0x24bae9._0x22b856,_0x43b0fc-_0x24bae9._0xeecb47,_0x48ff0d-0x1c9,_0x43b0fc);}return this[_0x1b240d(_0x52b878._0xfb3f43,_0x52b878._0x35fa7b,_0x52b878._0x674dc5,_0x52b878._0x336ebe)][_0x1b240d(_0x52b878._0x21d31a,0x4c6,_0x52b878._0x29f5dc,_0x52b878._0x1a63d4)](_0x3f5b75);}async[_0xc7d8a6(0x10,-0xa7,-0x45,-0x13)](_0x216bc8){const _0x14553d={_0x47c999:0x217,_0x348262:0x126},_0x23a84c={_0x3f0fe3:0x19f,_0x4f32c2:0x10c,_0x4eafbe:0x113};function _0x544fc7(_0x3027b6,_0x1e3cad,_0x4dcd26,_0xe01039){return _0xc7d8a6(_0x3027b6-_0x23a84c._0x3f0fe3,_0x4dcd26,_0x4dcd26-_0x23a84c._0x4f32c2,_0xe01039- -_0x23a84c._0x4eafbe);}function _0x492c99(_0x35c101,_0x5176f1,_0x45a50a,_0x381392){return _0xc7d8a6(_0x35c101-0x6,_0x45a50a,_0x45a50a-0x12f,_0x381392-0x80);}return await this[_0x544fc7(-0x21e,-_0x14553d._0x47c999,-0x303,-0x2a5)][_0x544fc7(-0x177,-0x1d3,-0xc5,-_0x14553d._0x348262)](_0x216bc8);}[_0x74a064(-0xa8,0x70,-0x49,-0x28)](_0x58f4b9){const _0x49a181={_0x2f7674:0x266,_0x16efa3:0x299,_0x490df1:0x315,_0x34424d:0x24c,_0x3eed6e:0x28e,_0x11d27f:0x1b4,_0x72d255:0x2df},_0x172ca0={_0x518fbb:0x19b,_0x2c9167:0x1ec},_0x598239={_0x7197b5:0x27e},_0x3b8671=this[_0x4ad703(-_0x49a181._0x2f7674,-_0x49a181._0x16efa3,-_0x49a181._0x490df1,-_0x49a181._0x34424d)][_0xb1df2f(0x201,_0x49a181._0x3eed6e,_0x49a181._0x11d27f,0x2f5)](_0x58f4b9);function _0x4ad703(_0x21f5e9,_0x3970c3,_0x255d3e,_0xf55ee5){return _0x74a064(_0x21f5e9-0x2b,_0x3970c3-0xd8,_0x21f5e9- -_0x598239._0x7197b5,_0x255d3e);}function _0xb1df2f(_0x589593,_0x54d826,_0x491229,_0x3b132d){return _0x74a064(_0x589593-_0x172ca0._0x518fbb,_0x54d826-_0x172ca0._0x2c9167,_0x54d826-0x215,_0x589593);}if(!_0x3b8671)throw new Error(_0x4ad703(-0x2ae,-_0x49a181._0x72d255,-0x2ac,-0x32d)+_0x58f4b9);return _0x3b8671;}async[_0xc7d8a6(-0x3b,-0x18e,-0x160,-0xfd)](_0x35df62,_0x124f8f){const _0x7dc9f2={_0x1a8535:0x282,_0x1f2078:0x1a0,_0x206baf:0x1b1,_0x354eab:0x1d5,_0x5a6840:0x1da,_0x3ec37e:0x1c6,_0x9838e9:0x2bc,_0x2df6b5:0x243,_0x18c670:0x2d5,_0x5a99eb:0x1be,_0x30335e:0x223,_0x40c1f9:0xa2,_0x1058de:0x19,_0x3fdbc7:0xec,_0x634f99:0x216,_0x38e393:0x19a,_0x38becd:0x198,_0x1cdbe3:0x1e7,_0x5d0913:0x1f2,_0x3a8b1b:0x154,_0x33dd17:0xd8,_0x52195f:0x11e,_0x3c3ad0:0x186},_0x6e1b2e={_0x2edf2f:0xb1,_0x1fb2c5:0x55},_0x3118ff={_0x375526:0x120},_0x5611fa=toModelRequest(_0x35df62),_0x3a5c0c=await prepareProviderRequest(_0x5611fa,{'sessionManager':this[_0x503e7b(-0x11b,-_0x7dc9f2._0x1a8535,-_0x7dc9f2._0x1f2078,-_0x7dc9f2._0x206baf)],'requestMutators':this[_0x503e7b(-_0x7dc9f2._0x354eab,-0x13a,-0x18c,-0x189)],'signal':_0x124f8f}),_0x3902f3=toChatRequest(_0x3a5c0c[_0x9fac4b(-_0x7dc9f2._0x5a6840,-0x11f,-0x188,-_0x7dc9f2._0x3ec37e)]),_0x134cfd=this[_0x503e7b(-_0x7dc9f2._0x9838e9,-_0x7dc9f2._0x2df6b5,-0x2c4,-0x1e7)][_0x9fac4b(-_0x7dc9f2._0x18c670,-0x266,-_0x7dc9f2._0x5a99eb,-_0x7dc9f2._0x30335e)](this[_0x503e7b(-_0x7dc9f2._0x40c1f9,-_0x7dc9f2._0x1058de,-_0x7dc9f2._0x3fdbc7,-0xe5)],_0x3a5c0c[_0x9fac4b(-0x12d,-0x1d1,-0x1ee,-0x181)]);function _0x9fac4b(_0x418576,_0x10a873,_0x1f7c3e,_0x1f3662){return _0xc7d8a6(_0x418576-0x15f,_0x1f7c3e,_0x1f7c3e-_0x3118ff._0x375526,_0x1f3662- -0x50);}if(!_0x134cfd)throw this[_0x503e7b(-0x1d3,-0x144,-_0x7dc9f2._0x634f99,-0x148)]();function _0x503e7b(_0x59ef9a,_0xdc67c8,_0x106f09,_0x10c171){return _0xc7d8a6(_0x59ef9a-_0x6e1b2e._0x2edf2f,_0x106f09,_0x106f09-0x1b3,_0x10c171- -_0x6e1b2e._0x1fb2c5);}return{'baseUrl':this[_0x503e7b(-_0x7dc9f2._0x38e393,-0x232,-_0x7dc9f2._0x38becd,-_0x7dc9f2._0x1cdbe3)][_0x9fac4b(-0x158,-_0x7dc9f2._0x5d0913,-0x6f,-_0x7dc9f2._0x3a8b1b)](this['baseUrl'],_0x3a5c0c['session']),'credential':_0x134cfd,'request':_0x3902f3,'session':_0x3a5c0c[_0x503e7b(-_0x7dc9f2._0x33dd17,-0x22c,-_0x7dc9f2._0x52195f,-_0x7dc9f2._0x3c3ad0)]};}[_0x74a064(-0x26,-0x8,0x30,0xbe)](_0x26985e){const _0x503506={_0x303697:0x65b,_0x225f62:0x600,_0x1c2b68:0x4e8,_0x502b38:0x610,_0x2396dc:0x567},_0x5a8683={_0x5e436a:0x92,_0x52a651:0x5bc};function _0x12c6ca(_0x4b78f1,_0x5a6909,_0x28dae4,_0x51b957){return _0xc7d8a6(_0x4b78f1-0x1a7,_0x4b78f1,_0x28dae4-_0x5a8683._0x5e436a,_0x28dae4-_0x5a8683._0x52a651);}function _0x541512(_0x3606f5,_0x170081,_0x2b8cf8,_0x3d7ab5){return _0xc7d8a6(_0x3606f5-0xd1,_0x170081,_0x2b8cf8-0xab,_0x3606f5-0x4c0);}return{...structuredClone(_0x26985e),..._0x26985e[_0x12c6ca(_0x503506._0x303697,_0x503506._0x225f62,0x592,_0x503506._0x1c2b68)]===void 0x0&&this[_0x12c6ca(0x5b7,_0x503506._0x502b38,0x592,0x56e)]!==void 0x0?{'reasoning':structuredClone(this[_0x12c6ca(_0x503506._0x2396dc,0x55a,0x592,0x54b)])}:{}};}async[_0x74a064(0x48,0x7e,0x110,0x6c)](_0x52a665,_0x5b864f,_0x3f0c52,_0x327e37={},_0x431b38=!![]){const _0x52570c={_0x9ed9a4:0x15f},_0x257bd8={_0x26480e:0x3c1,_0x53a60a:0x54b,_0x585bd3:0x3db,_0x2cdf5e:0x46e,_0x441d31:0x59d,_0x5ecb73:0x4e4,_0x13bd29:0x193,_0x4ae57f:0x539,_0xc8f45f:0x38e,_0xcfc173:0x3fe,_0x1924ff:0x3e1,_0x306182:0x32c,_0x104b2f:0x3c0,_0x3b2273:0x2e7,_0x8bb1d4:0x247,_0x7b50b7:0x241,_0x5e510a:0x21b,_0x3f6cd4:0x22d,_0xf8aec8:0x541,_0x1d37ee:0x3d0,_0x48d288:0x499,_0x44e02f:0x1c4,_0x5b1fdb:0x206,_0x3fb3c4:0x427,_0x362fdc:0x560,_0x37fc84:0x415,_0x1b2055:0x54d,_0x140dac:0x4ca,_0x473e78:0x49a,_0x547126:0x4e0,_0x413482:0x535,_0x4aadc8:0x144,_0x469645:0x1b2,_0x3a4a19:0x20b,_0x5c3bf9:0x478},{signal:_0x364bcb}=_0x327e37,_0x1b3c3f=async()=>{const _0x1e9393={_0x1e798e:0x2bd};function _0x210541(_0x2d080c,_0x33a788,_0x464b32,_0x597d70){return _0x4762(_0x597d70-_0x1e9393._0x1e798e,_0x2d080c);}const _0x30f21f=await this[_0x210541(_0x257bd8._0x26480e,_0x257bd8._0x53a60a,_0x257bd8._0x585bd3,_0x257bd8._0x2cdf5e)](_0x52a665,_0x364bcb);let _0xce0f07;try{_0xce0f07=_0x5b864f[_0x210541(_0x257bd8._0x441d31,0x4bd,0x458,_0x257bd8._0x5ecb73)](_0x30f21f[_0x2ee8f9(0xda,0x18e,_0x257bd8._0x13bd29,0x13d)]);}catch(_0x556608){if(_0x556608 instanceof Error)throw new ProviderRequestConstructionError(_0x556608['message']);throw _0x556608;}if(!_0xce0f07['path'])throw new ProviderRequestConstructionError(_0x210541(0x598,0x483,0x518,_0x257bd8._0x4ae57f)+_0x5b864f['id']+_0x2ee8f9(0x33d,0x2c5,_0x257bd8._0xc8f45f,0x390));function _0x2ee8f9(_0x2e52fd,_0x4ad7e2,_0xf03bcb,_0x7df473){return _0x4762(_0x4ad7e2-0x56,_0x2e52fd);}const _0x34ad37=await this[_0x210541(_0x257bd8._0xcfc173,0x4c5,0x47b,0x458)]({'request':_0x30f21f[_0x210541(_0x257bd8._0x1924ff,_0x257bd8._0x306182,_0x257bd8._0x104b2f,0x3f5)],'body':_0xce0f07[_0x2ee8f9(_0x257bd8._0x3b2273,_0x257bd8._0x8bb1d4,0x170,0x2c8)],'credential':_0x30f21f[_0x2ee8f9(_0x257bd8._0x7b50b7,_0x257bd8._0x5e510a,_0x257bd8._0x3f6cd4,0x245)],'session':_0x30f21f['session'],'stream':_0x3f0c52},{'accept':_0xce0f07[_0x210541(0x538,_0x257bd8._0xf8aec8,_0x257bd8._0x1d37ee,_0x257bd8._0x48d288)]??(_0x3f0c52?'text/event-stream':_0x2ee8f9(0xdd,_0x257bd8._0x44e02f,_0x257bd8._0x5b1fdb,0x217)),'includeContentType':_0xce0f07[_0x210541(_0x257bd8._0x3fb3c4,_0x257bd8._0x362fdc,_0x257bd8._0x37fc84,0x4ae)]!==void 0x0});for(const [_0x5d950a,_0x2a5605]of Object[_0x210541(_0x257bd8._0x1b2055,0x51a,0x562,0x547)](_0xce0f07[_0x210541(0x558,0x4ca,_0x257bd8._0x140dac,_0x257bd8._0x473e78)]??{})){_0x34ad37[_0x210541(_0x257bd8._0x547126,0x55c,0x4fa,_0x257bd8._0x413482)](_0x5d950a,_0x2a5605);}return this['fetchImpl'](''+_0x30f21f[_0x2ee8f9(_0x257bd8._0x4aadc8,_0x257bd8._0x469645,0x282,0x1e8)]+_0xce0f07['path'],{'method':'POST','headers':_0x34ad37,..._0xce0f07['body']!==void 0x0?{'body':JSON[_0x2ee8f9(0x2fa,0x22f,_0x257bd8._0x3a4a19,0x210)](_0xce0f07[_0x210541(_0x257bd8._0x5c3bf9,0x3f3,0x4f1,0x4ae)])}:{},'signal':_0x364bcb});};function _0x2115de(_0xe6f6a7,_0xac9019,_0x3fd5f7,_0x17ed18){return _0xc7d8a6(_0xe6f6a7-0x189,_0xe6f6a7,_0x3fd5f7-0x51,_0xac9019-0x1a1);}return _0x431b38?await this[_0x2115de(0x10a,0x156,0x84,_0x52570c._0x9ed9a4)](_0x1b3c3f,_0x327e37):await _0x1b3c3f();}async*['streamHttpSurface'](_0x3b849e,_0x39a77e,_0x550796={}){const _0x20a720={_0xeba13f:0x2cd,_0x2d1d7e:0x2b7,_0x392a75:0x260,_0x12b512:0x291,_0x291582:0x16a,_0x87981c:0x213,_0x361d0a:0x238,_0x103fdf:0x5b,_0x2e9d45:0xa,_0x4d2fa3:0xb3,_0x21fc92:0x133,_0x1f1261:0x1b,_0x2e9963:0x27,_0x22883c:0x3e0,_0x596525:0x2f1,_0x3d3661:0x3be,_0x433151:0x23c,_0x24287a:0x11a,_0x39a6e4:0x2e8,_0x1bf5c7:0x2fe,_0x2aac53:0x216,_0x40bf2b:0x1e2,_0x2569f7:0x2e4,_0x5a7fe3:0x31d,_0x1777a5:0x309,_0x354957:0x1d,_0x4fb51e:0x60,_0x4bf619:0xb6},_0x1108ae={_0x66ad72:0xb7,_0x26116a:0x14c},_0xeb1f4={_0x1aaba0:0xc6},{signal:_0x179bca}=_0x550796;function _0xb2e392(_0x918a3d,_0x2904ae,_0x91c38c,_0x1e7f38){return _0xc7d8a6(_0x918a3d-0x185,_0x918a3d,_0x91c38c-0x16a,_0x91c38c-_0xeb1f4._0x1aaba0);}let _0x25d47d=![];function _0x188b44(_0x9fd29d,_0x5f230f,_0x20c09e,_0x965a84){return _0x74a064(_0x9fd29d-_0x1108ae._0x66ad72,_0x5f230f-_0x1108ae._0x26116a,_0x20c09e-0x1ea,_0x965a84);}for(let _0x498331=0x0;_0x498331<MAX_PROVIDER_REQUEST_ATTEMPTS;_0x498331+=0x1){let _0x55b2d3=![];try{const _0x862e17=await this[_0xb2e392(0x74,-0x60,0x84,0x3f)](_0x3b849e,_0x39a77e,!![],_0x550796,![]);if(_0x862e17[_0x188b44(0x1c8,_0x20a720._0xeba13f,0x257,0x19b)]===0x191&&this[_0x188b44(0x16c,_0x20a720._0x2d1d7e,0x1e0,_0x20a720._0x392a75)]&&!_0x25d47d){_0x25d47d=!![],this[_0x188b44(_0x20a720._0x12b512,0x152,0x1e0,_0x20a720._0x291582)][_0x188b44(0x16a,0x2b2,_0x20a720._0x87981c,_0x20a720._0x361d0a)]();continue;}if(!_0x862e17['ok'])throw await this[_0xb2e392(_0x20a720._0x103fdf,_0x20a720._0x2e9d45,_0x20a720._0x4d2fa3,_0x20a720._0x21fc92)](_0x862e17);const _0x119402=_0x39a77e[_0xb2e392(_0x20a720._0x1f1261,-0x15,_0x20a720._0x2e9963,0x4b)]?.(_0x3b849e);if(!_0x119402?.['consumeSseEvent'])throw new Error(_0x188b44(_0x20a720._0x22883c,_0x20a720._0x596525,0x30a,_0x20a720._0x3d3661)+_0x39a77e['id']+_0x188b44(_0x20a720._0x433151,0x2d7,0x1f8,_0x20a720._0x24287a));for await(const _0xf6c80a of iterateSseEvents(_0x862e17,_0x179bca)){const _0x5e29ce=_0x119402['consumeSseEvent'](_0xf6c80a);for(const _0xd887dc of _0x5e29ce){_0x55b2d3=!![],yield _0xd887dc;}}yield{'type':_0x188b44(0x210,0x37a,_0x20a720._0x39a6e4,_0x20a720._0x1bf5c7),'response':_0x119402['finish']()};return;}catch(_0x281c59){if(_0x55b2d3||!this[_0x188b44(0x14c,0x183,_0x20a720._0x2aac53,_0x20a720._0x40bf2b)](_0x281c59)||_0x498331===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0x281c59;const _0x4abeb8=this[_0x188b44(_0x20a720._0x2569f7,_0x20a720._0x5a7fe3,_0x20a720._0x1777a5,0x250)](void 0x0,_0x498331),_0x1802ef={'type':'provider_retry','attempt':_0x498331+0x1,'maxAttempts':MAX_PROVIDER_REQUEST_ATTEMPTS,'error':_0x281c59 instanceof Error?_0x281c59[_0xb2e392(0xab,0x60,_0x20a720._0x354957,0xa8)]:String(_0x281c59),'delayMs':_0x4abeb8,'reason':this['shouldRetryRequestError'](_0x281c59)?_0xb2e392(0x59,_0x20a720._0x4fb51e,0x25,-0x22):'stream_error'};yield _0x1802ef,await this[_0xb2e392(-_0x20a720._0x4bf619,-0x113,-0xc0,0xc)](_0x4abeb8,_0x179bca);}}}async*[_0x74a064(0x8f,0x195,0x10a,0x15a)](_0x8fe5cd,_0x573b04,_0x54d5a1){const _0x3b1f15={_0x25d12b:0x2a5,_0x5f260a:0x391,_0xe2bca4:0x366,_0x80dca3:0x2b8,_0x22291c:0x277,_0x455022:0x2da,_0x20c2e0:0x24d,_0x387e33:0x2ba,_0x2bdb9a:0x276,_0xd0118:0x3f0,_0x1d0309:0x19a,_0x2699bc:0xb5,_0x2c4a25:0x14f,_0x4625f0:0x1d4,_0x2665d7:0x39d,_0x33c8cb:0x2bb,_0x2c5a79:0x29c,_0x200225:0x379,_0x8c0eaa:0x38e,_0x6fc8c4:0x370,_0xbe2170:0x303,_0x2aa755:0x32a,_0x2578dc:0x3c5,_0xb6f133:0x462,_0x33a76e:0x1d9,_0x3b9fc2:0x1c0,_0x204889:0x12f,_0x3e3663:0x359,_0x4ab1bc:0x260,_0x19869f:0x1bc,_0x178b4d:0x235,_0xc3a1e6:0x2ee,_0x4f5bca:0x345,_0x5b7bed:0x31b,_0xd3ad9c:0x3e4,_0x1ab8af:0x3a5,_0x55ca60:0x37d,_0x54c05a:0x31c,_0x50e7c2:0x2b6,_0x18274e:0x2dc,_0x143a55:0x291,_0x520128:0x21a,_0x495d39:0x23b,_0x4c421c:0x2d8,_0x2b67f6:0x329,_0x2dd25b:0x308,_0x4b088e:0x3d8,_0x40352b:0x3c9,_0x3b1b3f:0x34e,_0x512d73:0x3c6,_0x22c434:0x360,_0x21e4fa:0x28a,_0x4335ea:0x1da,_0xeb0c52:0x1d3,_0x2e79b3:0x252,_0x56fa2f:0x1c0,_0x312e42:0x31d,_0x17cc15:0x28f,_0x26cfe3:0x288,_0x5c34e2:0x2cf,_0x3e7697:0x1d0,_0x4b4fbe:0x30a,_0x385c3f:0x357,_0xc132d7:0x2ee,_0x16f164:0x324,_0x2ef541:0x1fc,_0x1bb901:0x2a2,_0x1b5160:0x1be,_0x11e5e7:0x201,_0x2e7226:0x21d,_0x2f86d8:0x25a,_0x1524a2:0x253,_0x54d21c:0x1a8,_0x277e4c:0x2ab,_0x4aef52:0x1c4},_0x9eac3b={_0x499840:0x124,_0x17311f:0x3ed},_0x52bfcc={_0x7902f3:0x46,_0x509468:0x19b};function _0x1722fc(_0x57427f,_0x3ec2d0,_0x53351e,_0x9af88a){return _0x74a064(_0x57427f-_0x52bfcc._0x7902f3,_0x3ec2d0-_0x52bfcc._0x509468,_0x57427f-0x19a,_0x9af88a);}const _0x10eafd=await this[_0x18b24d(_0x3b1f15._0x25d12b,0x2f0,0x241,_0x3b1f15._0x5f260a)](_0x8fe5cd,_0x54d5a1),_0xcd83e7=_0x573b04[_0x18b24d(0x443,_0x3b1f15._0xe2bca4,0x32a,_0x3b1f15._0x80dca3)](_0x10eafd[_0x18b24d(0x1ec,_0x3b1f15._0x22291c,0x1f4,_0x3b1f15._0x455022)]),_0x565d33=_0x573b04[_0x1722fc(_0x3b1f15._0x20c2e0,0x21f,0x21d,0x23b)]?.(_0x8fe5cd);if(!_0x565d33?.['consumeWebSocketEvent'])throw new Error(_0x1722fc(_0x3b1f15._0x387e33,0x254,_0x3b1f15._0x2bdb9a,0x23a)+_0x573b04['id']+'\x20cannot\x20parse\x20WebSocket\x20events');const _0x42a803=_0xcd83e7['url']??(_0xcd83e7[_0x18b24d(0x3f3,0x3d1,_0x3b1f15._0xd0118,0x2fd)]?(''+_0x10eafd[_0x1722fc(_0x3b1f15._0x1d0309,_0x3b1f15._0x2699bc,_0x3b1f15._0x2c4a25,_0x3b1f15._0x4625f0)]+_0xcd83e7[_0x1722fc(0x2d0,0x3af,_0x3b1f15._0x2665d7,0x26d)])[_0x1722fc(_0x3b1f15._0x33c8cb,_0x3b1f15._0x2c5a79,0x20b,0x26d)](/^http:/,_0x18b24d(_0x3b1f15._0x200225,0x2c8,_0x3b1f15._0x8c0eaa,0x270))[_0x18b24d(0x42f,0x3bc,_0x3b1f15._0x6fc8c4,_0x3b1f15._0xbe2170)](/^https:/,_0x18b24d(0x405,0x380,_0x3b1f15._0x2aa755,0x3a9)):void 0x0);if(!_0x42a803)throw new ProviderRequestConstructionError('Surface\x20'+_0x573b04['id']+_0x18b24d(_0x3b1f15._0x2578dc,0x3de,_0x3b1f15._0xb6f133,0x3ed));const _0x1ffd9f=await this[_0x1722fc(_0x3b1f15._0x33a76e,_0x3b1f15._0x3b9fc2,_0x3b1f15._0x204889,0x14c)]({'request':_0x10eafd[_0x18b24d(_0x3b1f15._0x3e3663,0x277,_0x3b1f15._0x4ab1bc,0x290)],'body':_0xcd83e7[_0x1722fc(0x21c,0x29e,0x1fd,0x1e6)],'credential':_0x10eafd[_0x1722fc(0x203,0x210,0x137,_0x3b1f15._0x19869f)],'session':_0x10eafd[_0x18b24d(0x394,0x2bc,_0x3b1f15._0x178b4d,_0x3b1f15._0xc3a1e6)],'stream':!![]},{'accept':_0xcd83e7[_0x18b24d(_0x3b1f15._0x4f5bca,_0x3b1f15._0x5b7bed,_0x3b1f15._0xd3ad9c,_0x3b1f15._0x1ab8af)]??'application/json','includeContentType':![]});for(const [_0x5ac87c,_0x24b42b]of Object['entries'](_0xcd83e7[_0x18b24d(_0x3b1f15._0x55ca60,_0x3b1f15._0x54c05a,0x2f1,0x31d)]??{})){_0x1ffd9f[_0x1722fc(_0x3b1f15._0x50e7c2,0x332,_0x3b1f15._0x18274e,_0x3b1f15._0x143a55)](_0x5ac87c,_0x24b42b);}_0x1ffd9f['delete'](_0x1722fc(_0x3b1f15._0x520128,_0x3b1f15._0x495d39,0x206,0x163));const _0xc6a704=this[_0x18b24d(0x2f1,0x312,0x267,_0x3b1f15._0x4c421c)]({'headers':Object[_0x18b24d(0x3d5,_0x3b1f15._0x2b67f6,0x36c,_0x3b1f15._0x2dd25b)](_0x1ffd9f[_0x18b24d(_0x3b1f15._0x4b088e,_0x3b1f15._0x40352b,0x3cd,0x3bf)]()),'url':_0x42a803});function _0x18b24d(_0x327821,_0xaad9b8,_0x471351,_0x576c23){return _0xc7d8a6(_0x327821-0x150,_0x576c23,_0x471351-_0x9eac3b._0x499840,_0xaad9b8-_0x9eac3b._0x17311f);}try{throwIfAborted(_0x54d5a1);_0xc6a704[_0x18b24d(0x3d1,0x3d4,_0x3b1f15._0x3b1b3f,_0x3b1f15._0x512d73)]!==WebSocket[_0x18b24d(_0x3b1f15._0x22c434,_0x3b1f15._0x21e4fa,0x304,_0x3b1f15._0x4335ea)]&&await waitForWebSocketOpen(_0xc6a704,_0x54d5a1);throwIfAborted(_0x54d5a1);_0xcd83e7['initialEvent']!==void 0x0&&_0xc6a704[_0x1722fc(0x1fa,_0x3b1f15._0xeb0c52,_0x3b1f15._0x2e79b3,0x118)](JSON[_0x1722fc(0x217,0x25b,0x235,_0x3b1f15._0x56fa2f)](_0xcd83e7[_0x18b24d(0x341,_0x3b1f15._0x312e42,0x2fb,0x293)]));for await(const _0x1a09f5 of iterateWebSocketMessages(_0xc6a704,_0x54d5a1)){yield*_0x565d33[_0x18b24d(0x231,_0x3b1f15._0x17cc15,_0x3b1f15._0x26cfe3,_0x3b1f15._0x5c34e2)](_0x1a09f5);if(_0x565d33[_0x1722fc(0x297,_0x3b1f15._0x3e7697,_0x3b1f15._0x4b4fbe,_0x3b1f15._0x385c3f)]?.())break;}yield{'type':_0x1722fc(0x298,_0x3b1f15._0xc132d7,0x1c4,_0x3b1f15._0x16f164),'response':_0x565d33[_0x18b24d(0x3cb,0x38f,_0x3b1f15._0xb6f133,0x46e)]()};}finally{_0xc6a704[_0x1722fc(0x2d3,0x367,0x20a,_0x3b1f15._0x2ef541)]===WebSocket[_0x18b24d(_0x3b1f15._0x1bb901,0x28a,_0x3b1f15._0x1b5160,0x1cb)]&&_0xc6a704[_0x1722fc(0x17b,_0x3b1f15._0x11e5e7,_0x3b1f15._0x2e7226,_0x3b1f15._0x2f86d8)](0x3e8,_0x54d5a1?.[_0x18b24d(0x254,0x24e,_0x3b1f15._0x1524a2,_0x3b1f15._0x54d21c)]?_0x18b24d(_0x3b1f15._0x277e4c,0x24e,0x26c,0x1f5):_0x1722fc(_0x3b1f15._0x4aef52,0x1f4,0x1c7,0x16f));}}};async function createHttpError(_0x4ec532){const _0x18b062={_0x4edad7:0x32e,_0xb7cca5:0x344,_0x74d624:0x2b7,_0x244ba0:0x341,_0x19665e:0xf3,_0xa1eda4:0x150,_0x4e7745:0x238,_0x3867ca:0x200,_0xa73728:0x26d,_0x27daec:0x1c6},_0x2fd000={_0x4ddae8:0x1b8},_0x3cadd3={_0x20de2d:0x11a,_0x4dc09f:0xcb,_0x5bd4b1:0x11b},_0xad2f00=await _0x4ec532[_0x19093a(-0x247,-0x2ea,-0x33b,-0x29c)]();function _0x2ed38c(_0x38c1cf,_0x4c5913,_0x3bf3ff,_0x2e8844){return _0xc7d8a6(_0x38c1cf-_0x3cadd3._0x20de2d,_0x38c1cf,_0x3bf3ff-_0x3cadd3._0x4dc09f,_0x4c5913- -_0x3cadd3._0x5bd4b1);}function _0x19093a(_0x3ecc51,_0x4c9cd2,_0x408211,_0x44f255){return _0xc7d8a6(_0x3ecc51-_0x2fd000._0x4ddae8,_0x3ecc51,_0x408211-0x4,_0x44f255- -0x130);}const _0x29dd92=_0xad2f00['trim']()||_0x4ec532[_0x2ed38c(-0x2c3,-0x278,-0x2f7,-_0x18b062._0x4edad7)]||_0x2ed38c(-_0x18b062._0xb7cca5,-_0x18b062._0x74d624,-0x32e,-_0x18b062._0x244ba0);return new Error(_0x2ed38c(-_0x18b062._0x19665e,-_0x18b062._0xa1eda4,-0x141,-0x1b3)+_0x4ec532[_0x2ed38c(-_0x18b062._0x4e7745,-_0x18b062._0x3867ca,-_0x18b062._0xa73728,-_0x18b062._0x27daec)]+':\x20'+_0x29dd92);}var AnthropicProviderAdapter=class{[_0x74a064(0x95,-0x18,0x65,0x11)];[_0xc7d8a6(-0x145,-0x117,-0xa8,-0x111)];[_0xc7d8a6(-0x4b,-0xf0,-0x43,-0x10c)];constructor(_0x146366){const _0x2958ce={_0x1c7451:0x13a,_0x2e3618:0xc7,_0x231011:0x106,_0x904823:0x15c,_0x527bbf:0x4b,_0x193f89:0x116,_0x6c1926:0x1e6,_0x45e545:0x1f3,_0x25dfc2:0x8d,_0x4d0acf:0x1e9,_0x1190fe:0x13d,_0x1a5a67:0x1d2,_0x1bafde:0x13d},_0x24b663={_0x39dbf5:0x11b,_0x41a959:0x6,_0x2525bc:0xf7},_0x5adae9={_0x4d4862:0x23,_0xa8b992:0xd5};this[_0x320977(0x212,_0x2958ce._0x1c7451,0x152,0x144)]=_0x146366[_0x537128(_0x2958ce._0x2e3618,_0x2958ce._0x231011,0x1a7,_0x2958ce._0x904823)],this[_0x320977(_0x2958ce._0x527bbf,_0x2958ce._0x193f89,0xe0,_0x2958ce._0x6c1926)]=_0x146366[_0x320977(_0x2958ce._0x45e545,_0x2958ce._0x193f89,0x17d,_0x2958ce._0x25dfc2)];function _0x320977(_0x594f99,_0x104364,_0x415779,_0x4f0b36){return _0x74a064(_0x594f99-_0x5adae9._0x4d4862,_0x104364-0x171,_0x104364-_0x5adae9._0xa8b992,_0x415779);}function _0x537128(_0x590d5e,_0x2094e2,_0x77d828,_0xe47eda){return _0x74a064(_0x590d5e-_0x24b663._0x39dbf5,_0x2094e2-_0x24b663._0x41a959,_0xe47eda-_0x24b663._0x2525bc,_0x77d828);}this[_0x537128(0x1aa,0x13c,_0x2958ce._0x4d0acf,_0x2958ce._0x1190fe)]=_0x146366[_0x537128(0x15f,_0x2958ce._0x1a5a67,0xa9,_0x2958ce._0x1bafde)];}['createMissingCredentialError'](){const _0x1b2c8a={_0x68ad1c:0xb4,_0x6ec906:0x2d,_0x266751:0x46},_0x18c538={_0x49a398:0x136,_0x4421b7:0xb5};function _0x4e34a9(_0x5d5c08,_0x2d8910,_0x555968,_0x4cb8c0){return _0x74a064(_0x5d5c08-_0x18c538._0x49a398,_0x2d8910-0x2b,_0x4cb8c0-_0x18c538._0x4421b7,_0x555968);}return new Error(_0x4e34a9(_0x1b2c8a._0x68ad1c,-_0x1b2c8a._0x6ec906,0x31,_0x1b2c8a._0x266751));}async['createHeaders'](_0x13b45b,_0x13ff79){const _0x473c0c={_0x67d992:0x160,_0x5f3a86:0x1b7,_0x46a66b:0x2d,_0x3e3bfc:0x75,_0x1ea301:0x14a,_0x3880a0:0x3c5,_0x24786e:0x35f,_0x295b7f:0x5d,_0x201831:0xdc,_0x5e6993:0x8e,_0x26bd27:0x21,_0x593806:0x92,_0x13ae0a:0xa1,_0x47187c:0x344,_0x56f65e:0x30f,_0x4a5f51:0x1,_0x32993c:0xe0,_0x4cec62:0x8,_0x18796c:0x7,_0x28df53:0x40,_0x26bb38:0xa2,_0x386113:0x27f,_0x13f838:0x3e9,_0x1c52c5:0x15d,_0x5e5e72:0xcc,_0x96efbb:0x88,_0x4bb71e:0x72,_0x5991d2:0x16,_0x31366a:0x392,_0x159668:0x262,_0x28e3cb:0x1fd,_0x1f5f1c:0x296,_0x4f6d1f:0x3c0,_0x558240:0x35f,_0x5b44ef:0x343,_0x44dbc9:0x291,_0x580043:0x35c,_0x20eed4:0x29d,_0xca1862:0x8a,_0x4b4e29:0x108,_0x38e44b:0x5e,_0x20b8ca:0xc1,_0x11de2b:0x2f,_0x4c2c4e:0x2a,_0x22f63c:0x170,_0x124696:0x123,_0x523e69:0x42e,_0x399914:0x438,_0xf8c80f:0x40b},_0x47950f={_0x3c4886:0x243},_0x692623={_0x3a3554:0x97};function _0xf4fff4(_0x5dfa1e,_0x29f182,_0x490490,_0x405881){return _0x74a064(_0x5dfa1e-0x1c9,_0x29f182-_0x692623._0x3a3554,_0x29f182- -0xb,_0x405881);}const _0x2178f6=new Headers();_0x2178f6[_0xf4fff4(_0x473c0c._0x67d992,0x111,0x169,_0x473c0c._0x5f3a86)](_0xf4fff4(-_0x473c0c._0x46a66b,_0x473c0c._0x3e3bfc,_0x473c0c._0x1ea301,0xfb),_0x13ff79['accept']),_0x2178f6[_0x2c3586(_0x473c0c._0x3880a0,_0x473c0c._0x24786e,0x298,0x3d9)](_0xf4fff4(_0x473c0c._0x295b7f,0x1b,_0x473c0c._0x201831,-0xbb),this['protocolVersion']);_0x13ff79[_0xf4fff4(_0x473c0c._0x5e6993,-_0x473c0c._0x26bd27,_0x473c0c._0x593806,_0x473c0c._0x13ae0a)]!==![]&&_0x2178f6[_0x2c3586(0x366,0x35f,_0x473c0c._0x47187c,_0x473c0c._0x56f65e)](_0xf4fff4(-_0x473c0c._0x4a5f51,0x92,_0x473c0c._0x32993c,0xf8),_0xf4fff4(-_0x473c0c._0x4cec62,_0x473c0c._0x18796c,-_0x473c0c._0x28df53,-_0x473c0c._0x26bb38));this['authScheme']===_0x2c3586(0x24c,0x320,_0x473c0c._0x386113,_0x473c0c._0x13f838)?_0x2178f6[_0xf4fff4(0xfa,0x111,_0x473c0c._0x1c52c5,_0x473c0c._0x5e5e72)](_0xf4fff4(0xe1,0xd4,0xdc,0x60),_0xf4fff4(0x33,_0x473c0c._0x96efbb,_0x473c0c._0x4bb71e,-_0x473c0c._0x5991d2)+_0x13b45b[_0x2c3586(_0x473c0c._0x31366a,0x2ac,_0x473c0c._0x159668,0x30c)][_0x2c3586(_0x473c0c._0x28e3cb,0x1c0,_0x473c0c._0x1f5f1c,0x182)]):_0x2178f6[_0x2c3586(_0x473c0c._0x4f6d1f,_0x473c0c._0x558240,0x2e9,0x373)](_0x2c3586(0x32c,_0x473c0c._0x5b44ef,0x3d7,0x2ac),_0x13b45b['credential']['value']);const _0x33a007=await this[_0x2c3586(_0x473c0c._0x44dbc9,0x284,_0x473c0c._0x580043,_0x473c0c._0x20eed4)]?.({'body':_0x13b45b[_0xf4fff4(0x15,_0x473c0c._0xca1862,-0x1f,_0x473c0c._0x4b4e29)],'credential':_0x13b45b[_0xf4fff4(_0x473c0c._0x4a5f51,_0x473c0c._0x38e44b,_0x473c0c._0x20b8ca,-0x7f)],'request':_0x13b45b[_0xf4fff4(-0x54,-_0x473c0c._0x11de2b,-0x7c,0xac)],'session':_0x13b45b[_0xf4fff4(-0x9c,_0x473c0c._0x5991d2,-_0x473c0c._0x4c2c4e,-0xb8)],'stream':_0x13b45b['stream']});for(const [_0x398931,_0x54e516]of Object[_0xf4fff4(_0x473c0c._0x22f63c,_0x473c0c._0x124696,0xcc,0x11d)](_0x33a007??{})){_0x2178f6[_0x2c3586(_0x473c0c._0x523e69,0x35f,_0x473c0c._0x399914,_0x473c0c._0xf8c80f)](_0x398931,_0x54e516);}function _0x2c3586(_0xb33f1,_0xb76765,_0x35c1ac,_0x335f6f){return _0x74a064(_0xb33f1-0xac,_0xb76765-0xe4,_0xb76765-_0x47950f._0x3c4886,_0x335f6f);}return _0x2178f6;}[_0xc7d8a6(-0x97,-0x85,0x28,-0x84)](_0x568258){return _0x568258;}[_0x74a064(0xa4,0x0,0x4e,0x11d)](_0x39349b,_0x529cac){return resolveSessionBaseUrl(_0x39349b,_0x529cac);}['resolveCredential'](_0x2c7fcf,_0x26c7e3){return resolveApiCredential(_0x2c7fcf,_0x26c7e3);}async[_0x74a064(0x1f5,0xab,0x13f,0x122)](_0x2a5764){return await createHttpError(_0x2a5764);}},AnthropicModel=class extends RoutedModel{constructor(_0x1339fa={}){const _0x53cbdf={_0x1fdb10:0xf0,_0x8a16a9:0x13c,_0x4211f5:0x1d0,_0x4c085e:0x2a3,_0x5b8dcd:0x30d,_0x3830df:0x104,_0x533c82:0x2e,_0x14dc94:0x166,_0x3293d1:0x84,_0x560c3d:0x72,_0x21439d:0xa1,_0xa7192f:0xd0,_0x48fe07:0x6f,_0x33484c:0x418,_0x1f8edc:0x285,_0x164505:0x33a,_0x503e8b:0x1e8,_0x16431e:0x73,_0x59704f:0x17c,_0x182bf1:0x41e,_0x48bb9f:0x41a,_0x45547a:0x36e},_0x573472={_0x42c968:0x156,_0x48f973:0x180};function _0xa67483(_0x460112,_0x4c8515,_0x51c624,_0x2e95bf){return _0xc7d8a6(_0x460112-_0x573472._0x42c968,_0x2e95bf,_0x51c624-0x2,_0x460112-_0x573472._0x48f973);}function _0x23cc6b(_0x13b165,_0x474283,_0x5123d4,_0xd955a3){return _0x74a064(_0x13b165-0xd1,_0x474283-0x12,_0xd955a3-0x30d,_0x5123d4);}super({'apiKey':_0x1339fa[_0xa67483(_0x53cbdf._0x1fdb10,0x33,_0x53cbdf._0x8a16a9,_0x53cbdf._0x4211f5)],'baseUrl':trimTrailingSlashes(_0x1339fa[_0x23cc6b(0x305,_0x53cbdf._0x4c085e,0x26b,_0x53cbdf._0x5b8dcd)]??'https://api.anthropic.com'),'fetch':_0x1339fa['fetch'],'maxTokens':_0x1339fa[_0xa67483(_0x53cbdf._0x3830df,_0x53cbdf._0x533c82,0x10b,_0x53cbdf._0x14dc94)]??0x4000,'model':_0x1339fa[_0xa67483(_0x53cbdf._0x3293d1,_0x53cbdf._0x560c3d,0x165,-0x9)]??'claude-sonnet-4-20250514','reasoning':_0x1339fa[_0xa67483(0x156,0xcf,0x188,_0x53cbdf._0x21439d)],'providerAdapter':new AnthropicProviderAdapter({'authScheme':_0x1339fa[_0xa67483(0x93,0x137,_0x53cbdf._0xa7192f,0x2d)]??'x-api-key','headerResolver':_0x1339fa[_0xa67483(_0x53cbdf._0x48fe07,0x2e,0xc9,0x88)],'protocolVersion':_0x1339fa[_0x23cc6b(_0x53cbdf._0x33484c,_0x53cbdf._0x1f8edc,_0x53cbdf._0x164505,0x353)]??_0xa67483(0x112,_0x53cbdf._0x503e8b,_0x53cbdf._0x16431e,_0x53cbdf._0x59704f)}),'providerSessionResolver':_0x1339fa[_0x23cc6b(_0x53cbdf._0x182bf1,_0x53cbdf._0x48bb9f,0x2ea,_0x53cbdf._0x45547a)],'requestMutators':_0x1339fa['requestMutators'],'router':new StaticModelSurfaceRouter({'complete':ANTHROPIC_MESSAGES_SURFACE,'stream':ANTHROPIC_MESSAGES_STREAM_SURFACE}),'surfaces':createAnthropicSurfaces()});}[_0xc7d8a6(-0xd3,-0xf6,-0x189,-0xd8)](_0x2f9655,_0x4bc6a2){return this['completeViaSurface'](_0x2f9655,ANTHROPIC_MESSAGES_SURFACE,_0x4bc6a2);}[_0xc7d8a6(-0x110,-0xa0,-0x1e8,-0x110)](_0x1fda7c,_0x1c15e0){const _0x4ff44a={_0x1f3412:0x2f9,_0x30e1ff:0x2e5,_0x3c371b:0x248},_0x41234f={_0x132273:0xdc,_0x120fb7:0x33b};function _0x1381fc(_0x2e55e3,_0x328879,_0x44de12,_0x2d5d87){return _0x74a064(_0x2e55e3-0xc9,_0x328879-_0x41234f._0x132273,_0x328879-_0x41234f._0x120fb7,_0x44de12);}return this[_0x1381fc(0x35f,_0x4ff44a._0x1f3412,_0x4ff44a._0x30e1ff,_0x4ff44a._0x3c371b)](_0x1fda7c,ANTHROPIC_MESSAGES_STREAM_SURFACE,_0x1c15e0);}},OPENAI_CHAT_COMPLETIONS_SURFACE=_0xc7d8a6(0x1c,0x3c,-0x9e,-0x40),OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE='openai-chat-completions-stream',OPENAI_RESPONSES_SURFACE='openai-responses',OPENAI_RESPONSES_STREAM_SURFACE=_0xc7d8a6(-0x69,-0xd6,0x35,-0x94),OPENAI_RESPONSES_WEBSOCKET_SURFACE=_0xc7d8a6(-0x3b,-0x12,-0x187,-0xb7),OpenAiApiError=class extends Error{['status'];['body'];constructor(_0x39b3ad,_0x5b5e54,_0x4e65f5){const _0x13cde6={_0x36c654:0xac,_0x1f0793:0x3c,_0x5745d2:0x10b,_0x2dc6a0:0x1de,_0x3caa77:0x198},_0x51a7fe={_0x1efc7e:0xfe,_0x535c14:0x1b6},_0x439bcc={_0x364364:0x196,_0x422b70:0x1f0};function _0xbbdeae(_0x41d997,_0x25e81c,_0x33723f,_0x20aa26){return _0xc7d8a6(_0x41d997-_0x439bcc._0x364364,_0x33723f,_0x33723f-0x17e,_0x41d997-_0x439bcc._0x422b70);}super(_0x4e65f5),this[_0x485e32(_0x13cde6._0x36c654,0x16,0xf6,-_0x13cde6._0x1f0793)]='OpenAiApiError';function _0x485e32(_0x4db856,_0xf6db30,_0x85d7cb,_0x3be530){return _0xc7d8a6(_0x4db856-0xf5,_0x3be530,_0x85d7cb-_0x51a7fe._0x1efc7e,_0xf6db30-_0x51a7fe._0x535c14);}this[_0xbbdeae(_0x13cde6._0x5745d2,_0x13cde6._0x2dc6a0,_0x13cde6._0x3caa77,0x8e)]=_0x39b3ad,this['body']=_0x5b5e54;}};function stringifySystem(_0x2d31e0){const _0x9d7f88={_0x14c309:0x165,_0x77680a:0x87,_0x1c76cc:0x17c},_0xc044c3={_0xf1cb8:0xe7},_0x530a10={_0x4f9fec:0x45};function _0x37a650(_0x35cd4e,_0x43846f,_0x4fa948,_0x3e0822){return _0xc7d8a6(_0x35cd4e-0xd2,_0x35cd4e,_0x4fa948-0x1af,_0x4fa948- -_0x530a10._0x4f9fec);}function _0x49c20d(_0xc8b843,_0x5d1c7a,_0x4f6565,_0x2ce1c9){return _0x74a064(_0xc8b843-0x13,_0x5d1c7a-_0xc044c3._0xf1cb8,_0x5d1c7a- -0x86,_0x2ce1c9);}return _0x2d31e0[_0x37a650(-_0x9d7f88._0x14c309,-_0x9d7f88._0x77680a,-0xb9,-_0x9d7f88._0x1c76cc)](_0x5e8d14=>_0x5e8d14[_0x49c20d(-0x14,-0xa0,-0xa1,-0x1b)])['join']('\x0a\x0a');}function createToolDefinitions(_0x25aada){const _0x199e2a={_0x566414:0x62b,_0x160905:0x16b},_0x565055={_0x263e09:0x40,_0x19a6be:0x11,_0xd8d01c:0xd6,_0x8201d0:0xd2,_0x1cd068:0x8f,_0x878c85:0x16e,_0x4bba36:0x100},_0x265cb6={_0x2ab9d4:0xc,_0x3d7de6:0x1d2},_0x2f74b4={_0x3d788b:0x11c,_0x495d83:0x10a},_0x15f695={_0x13d9ed:0x1c3,_0x12101a:0x1df},_0x514d23={_0x2cfe6f:0x34};if(_0x25aada[_0x2ae79c(0x6ae,0x5c3,_0x199e2a._0x566414,0x66a)]===0x0)return void 0x0;function _0x2ae79c(_0x453038,_0x23a87a,_0x3a7bb0,_0x41ea8b){return _0xc7d8a6(_0x453038-0xd1,_0x23a87a,_0x3a7bb0-_0x514d23._0x2cfe6f,_0x41ea8b-0x692);}function _0x285e59(_0x51c15d,_0x362498,_0x12542d,_0x5a92ca){return _0xc7d8a6(_0x51c15d-0xc,_0x12542d,_0x12542d-_0x15f695._0x13d9ed,_0x51c15d-_0x15f695._0x12101a);}return _0x25aada[_0x285e59(_0x199e2a._0x160905,0x1c1,0x165,0x159)](_0x8cdd6b=>{function _0x296f06(_0x58262c,_0x4861f9,_0x1484e6,_0x19dd01){return _0x2ae79c(_0x58262c-_0x2f74b4._0x3d788b,_0x58262c,_0x1484e6-_0x2f74b4._0x495d83,_0x4861f9- -0x4d2);}function _0x22234e(_0x11b8aa,_0x4cc34d,_0x18fe2e,_0x443e0a){return _0x285e59(_0x4cc34d-_0x265cb6._0x2ab9d4,_0x4cc34d-_0x265cb6._0x3d7de6,_0x443e0a,_0x443e0a-0xfd);}return{'type':_0x296f06(-0x7a,_0x565055._0x263e09,-_0x565055._0x19a6be,0xae),'function':{'name':_0x8cdd6b[_0x296f06(-0x78,0x20,_0x565055._0xd8d01c,0x4a)],'description':_0x8cdd6b[_0x296f06(_0x565055._0x8201d0,0x9,0x3e,-0xe)],'parameters':_0x8cdd6b[_0x22234e(_0x565055._0x1cd068,_0x565055._0x878c85,_0x565055._0x4bba36,0x21f)]}};});}function isImageToolResultBlock(_0x3b7d5d){const _0x2dda36={_0x36f8c2:0x3d3,_0x431a51:0x373,_0x5a7f11:0x170,_0x3a1a42:0xa0,_0x48f368:0x157,_0x8b7657:0x1ff,_0x4a6153:0x143,_0x2aacf5:0x2c5,_0x160d5b:0x336,_0x36869d:0x35f,_0x3b7026:0x449,_0x3626b5:0x3ef,_0x2d1b7c:0x3cc,_0x3ab4bc:0x432,_0x33e54a:0xa7,_0x44dfa8:0x71,_0x466ab9:0x22f,_0x5d7d55:0x15d,_0x399d5d:0x22f,_0x4aac1a:0x1c5},_0x181fd7={_0xf33d3a:0x164,_0x3936f3:0xb4},_0x79150f={_0x3ebb4d:0x6a,_0x115104:0x2a5};if(typeof _0x3b7d5d!==_0x3190bb(_0x2dda36._0x36f8c2,_0x2dda36._0x431a51,0x34f,0x3f5)||_0x3b7d5d===null||Array['isArray'](_0x3b7d5d))return![];const _0x72c2c5=_0x3b7d5d;function _0x3190bb(_0xf58647,_0x403dbc,_0x30f995,_0x63e0e7){return _0x74a064(_0xf58647-0x16f,_0x403dbc-_0x79150f._0x3ebb4d,_0x30f995-_0x79150f._0x115104,_0x63e0e7);}function _0x2df684(_0x3592f2,_0x242a64,_0x46b8b6,_0x391285){return _0xc7d8a6(_0x3592f2-_0x181fd7._0xf33d3a,_0x242a64,_0x46b8b6-_0x181fd7._0x3936f3,_0x391285- -0x4e);}return _0x72c2c5[_0x2df684(-_0x2dda36._0x5a7f11,-_0x2dda36._0x3a1a42,-0x22e,-_0x2dda36._0x48f368)]===_0x2df684(-_0x2dda36._0x8b7657,-0x202,-0x118,-_0x2dda36._0x4a6153)&&_0x72c2c5[_0x3190bb(_0x2dda36._0x2aacf5,_0x2dda36._0x160d5b,_0x2dda36._0x36869d,0x364)]?.['type']===_0x3190bb(_0x2dda36._0x3b7026,_0x2dda36._0x3626b5,_0x2dda36._0x2d1b7c,_0x2dda36._0x3ab4bc)&&typeof _0x72c2c5[_0x2df684(-_0x2dda36._0x33e54a,-_0x2dda36._0x44dfa8,-0x14a,-0xe6)]['media_type']===_0x3190bb(0x279,0x166,_0x2dda36._0x466ab9,0x2cf)&&typeof _0x72c2c5['source']['data']===_0x3190bb(_0x2dda36._0x5d7d55,0x189,_0x2dda36._0x399d5d,_0x2dda36._0x4aac1a);}function getToolResultText(_0x1017ca){const _0x562630={_0x2b4a4:0x114,_0x2380cf:0x8b,_0x465e8b:0x268,_0x427050:0x298,_0x3ac48e:0x47,_0x2cec05:0x1a0,_0x5c8299:0xd6,_0xeb81f4:0x1e4,_0x241d09:0xf7},_0x19790a={_0x3f8a0e:0x4c9,_0x491deb:0x471,_0x1b8ca0:0x503,_0x112b97:0x3b7,_0x12fea7:0x493,_0x335f0e:0x4f9,_0x5b1156:0x516},_0x53fdb7={_0x3d67a5:0x15e},_0x4fba66={_0x24d0e4:0x194,_0x279c0b:0x126},_0x53128f={_0x4a79ce:0xa6,_0x28f462:0x46c};function _0x3b312e(_0x544a45,_0x352710,_0x1358b6,_0x234cc5){return _0xc7d8a6(_0x544a45-_0x53128f._0x4a79ce,_0x352710,_0x1358b6-0x160,_0x1358b6-_0x53128f._0x28f462);}if(typeof _0x1017ca===_0x1024a6(0x107,_0x562630._0x2b4a4,-0x3e,_0x562630._0x2380cf))return _0x1017ca;function _0x1024a6(_0x2a0107,_0x30d08d,_0x14027f,_0x451b86){return _0x74a064(_0x2a0107-_0x4fba66._0x24d0e4,_0x30d08d-_0x4fba66._0x279c0b,_0x451b86-0x101,_0x2a0107);}const _0x555945=_0x1017ca[_0x3b312e(_0x562630._0x465e8b,0x256,_0x562630._0x427050,0x1f7)](_0x4343cb=>{function _0x1e9a09(_0x14ca18,_0x3bb2ea,_0x46e306,_0x4c89ae){return _0x3b312e(_0x14ca18-0x10b,_0x46e306,_0x3bb2ea-0x193,_0x4c89ae-0xf4);}function _0x1f9059(_0x4f1660,_0x2c107a,_0x1c3e44,_0x3476a1){return _0x3b312e(_0x4f1660-0x1c0,_0x1c3e44,_0x4f1660-0x105,_0x3476a1-_0x53fdb7._0x3d67a5);}return typeof _0x4343cb===_0x1f9059(_0x19790a._0x3f8a0e,_0x19790a._0x491deb,0x4f1,_0x19790a._0x1b8ca0)&&_0x4343cb!==null&&_0x4343cb['type']===_0x1e9a09(_0x19790a._0x112b97,_0x19790a._0x12fea7,_0x19790a._0x335f0e,_0x19790a._0x5b1156);})['map'](_0x360d22=>_0x360d22[_0x1024a6(0x1ae,0xfa,0xd5,0xe7)])[_0x1024a6(0x198,_0x562630._0x3ac48e,_0x562630._0x2cec05,_0x562630._0x5c8299)]('\x0a\x0a')['trim']();return _0x555945['length']>0x0?_0x555945:_0x1024a6(_0x562630._0xeb81f4,_0x562630._0x241d09,0xb4,0x148);}function getToolResultImages(_0xf25900){const _0x4cb7bf={_0x4da454:0x43a,_0x3af3f9:0x3a6,_0x36ad84:0x387},_0x543b2={_0x9ce6d2:0xf1},_0xb20f3a={_0x51401a:0xf4,_0x5e83b9:0x35};function _0x2a54ce(_0x4581e4,_0x53d41f,_0x2ef04a,_0x311a9f){return _0x74a064(_0x4581e4-0x37,_0x53d41f-_0xb20f3a._0x51401a,_0x53d41f- -_0xb20f3a._0x5e83b9,_0x311a9f);}function _0x57c547(_0x3f33e5,_0x136a45,_0x17cec1,_0x346301){return _0xc7d8a6(_0x3f33e5-0x3e,_0x17cec1,_0x17cec1-_0x543b2._0x9ce6d2,_0x136a45-0x615);}return Array[_0x2a54ce(-0x106,-0x89,-0x159,-0x133)](_0xf25900)?_0xf25900[_0x57c547(_0x4cb7bf._0x4da454,0x441,_0x4cb7bf._0x3af3f9,_0x4cb7bf._0x36ad84)](isImageToolResultBlock):[];}function parseToolInput2(_0x4b35c0){const _0x74d85e={_0x2e8bab:0x61b,_0x445bf4:0x647,_0x357ea5:0x1a1,_0x149591:0x12c,_0x1ac85c:0x1f2,_0x1254c2:0x15c},_0x16867c={_0x92cb15:0x1d0,_0x5a0f97:0x16c},_0x202c4a={_0x293df4:0x78,_0x587bfe:0x236};function _0x1626ff(_0x311b14,_0x59e5b5,_0x250eae,_0x4bbf78){return _0xc7d8a6(_0x311b14-_0x202c4a._0x293df4,_0x250eae,_0x250eae-0x116,_0x59e5b5-_0x202c4a._0x587bfe);}if(_0x4b35c0[_0x3757da(0x6e3,_0x74d85e._0x2e8bab,_0x74d85e._0x445bf4,0x630)]===0x0)return{};function _0x3757da(_0x259ed4,_0x8f1909,_0x50bfc7,_0x592bcb){return _0x74a064(_0x259ed4-_0x16867c._0x92cb15,_0x8f1909-_0x16867c._0x5a0f97,_0x50bfc7-0x51d,_0x259ed4);}try{return JSON[_0x1626ff(_0x74d85e._0x357ea5,_0x74d85e._0x149591,_0x74d85e._0x1ac85c,_0x74d85e._0x1254c2)](_0x4b35c0);}catch{return _0x4b35c0;}}function isResponsesReasoningItem(_0x2792cd){const _0x3cd459={_0x2809ed:0x61},_0x469363={_0x54e866:0x1a2};function _0x88616(_0x37a340,_0x49f53b,_0x231c99,_0x54d91a){return _0xc7d8a6(_0x37a340-0x60,_0x231c99,_0x231c99-_0x469363._0x54e866,_0x54d91a-0x106);}return typeof _0x2792cd==='object'&&_0x2792cd!==null&&_0x88616(0x90,-_0x3cd459._0x2809ed,0x6a,-0x3)in _0x2792cd&&_0x2792cd['type']==='reasoning';}function isResponsesMessageItem(_0x3d5d0d){const _0x5cadda={_0x4743b6:0x6,_0x17b7c0:0x8d,_0x2e9487:0x44,_0x4b4f02:0x2c2,_0xd7b860:0x2ba,_0x195753:0x320,_0x135c01:0x2b0,_0x5ab127:0x23a},_0x9bc5f1={_0x27bd57:0x16c};function _0x12e67e(_0x5bd543,_0x4a4fd1,_0x792125,_0x3bbfce){return _0xc7d8a6(_0x5bd543-0x29,_0x792125,_0x792125-_0x9bc5f1._0x27bd57,_0x4a4fd1-0x135);}function _0x20fbcb(_0x29b0bc,_0xc86502,_0x4d12b4,_0xa8055){return _0x74a064(_0x29b0bc-0x18d,_0xc86502-0x12a,_0x29b0bc-0x267,_0xa8055);}return typeof _0x3d5d0d===_0x12e67e(-_0x5cadda._0x4743b6,_0x5cadda._0x17b7c0,-_0x5cadda._0x2e9487,0xd9)&&_0x3d5d0d!==null&&_0x20fbcb(0x2b0,_0x5cadda._0x4b4f02,_0x5cadda._0xd7b860,_0x5cadda._0x195753)in _0x3d5d0d&&_0x3d5d0d[_0x20fbcb(_0x5cadda._0x135c01,0x264,_0x5cadda._0x5ab127,0x356)]==='message';}function isResponsesFunctionCallItem(_0x3f6cd9){const _0x2af617={_0x4a7e41:0x298,_0x28ea65:0x1a7,_0x5befaa:0x22f,_0x46d7e6:0x221,_0x2b8f1f:0x1bc,_0x125058:0x134,_0xc5638b:0x137},_0x45828e={_0x2b6804:0x1c1,_0x825bca:0x10b};function _0x165144(_0x2615e6,_0x40af17,_0x63c16,_0x1fa88e){return _0xc7d8a6(_0x2615e6-0x1a1,_0x2615e6,_0x63c16-0x96,_0x1fa88e- -0xf3);}function _0x505ff0(_0x5498de,_0x4b6330,_0x2dd28e,_0x2c68ff){return _0xc7d8a6(_0x5498de-_0x45828e._0x2b6804,_0x4b6330,_0x2dd28e-_0x45828e._0x825bca,_0x2c68ff-0x289);}return typeof _0x3f6cd9===_0x505ff0(0x176,_0x2af617._0x4a7e41,_0x2af617._0x28ea65,0x1e1)&&_0x3f6cd9!==null&&_0x165144(-0x198,-0x19b,-_0x2af617._0x5befaa,-0x1fc)in _0x3f6cd9&&_0x3f6cd9[_0x165144(-0x2d6,-_0x2af617._0x46d7e6,-_0x2af617._0x2b8f1f,-0x1fc)]===_0x165144(-0x54,-_0x2af617._0x125058,-0x161,-_0x2af617._0xc5638b);}function createContentBlocks(_0x16264e,_0xa2489f,_0x5e756c){const _0x4d6ea7={_0x5282d0:0x4dc,_0x3068c0:0x3ed,_0x3f6f9f:0x49d,_0x426d22:0x4d3,_0x5a6216:0x5c7,_0x2b7b66:0x309,_0x407781:0x361,_0x300dda:0x2f8,_0x543e65:0x3d9,_0x27a1e3:0x297,_0x2c90bf:0x359,_0x2e9ee8:0x2c2,_0x134970:0x420,_0x172475:0x3ac,_0x5744dd:0x654,_0x4440f4:0x423,_0x31c296:0x470,_0x2716ea:0x43a,_0x5bc2ff:0x450,_0x2e98d9:0x319,_0x1e6e4e:0x5a0,_0x31a280:0x573,_0x23ffce:0x548,_0x250494:0x346,_0x5c0a97:0x518,_0x42430c:0x531},_0x2abb0f={_0x40674b:0x142,_0x23f68f:0x1cb,_0x287983:0x5f0},_0x56cc8c={_0x266d8d:0x12e,_0x2ab53f:0x101},_0x4705a1=[];_0x5e756c&&_0x5e756c[_0x4028a4(_0x4d6ea7._0x5282d0,_0x4d6ea7._0x3068c0,_0x4d6ea7._0x3f6f9f,_0x4d6ea7._0x426d22)]>0x0&&_0x4705a1['push']({'type':'openai_reasoning','summary':[],'text':_0x5e756c});_0x16264e[_0x4670be(0x654,0x5d9,_0x4d6ea7._0x5a6216,0x5c8)]>0x0&&_0x4705a1[_0x4028a4(_0x4d6ea7._0x2b7b66,_0x4d6ea7._0x407781,_0x4d6ea7._0x300dda,_0x4d6ea7._0x543e65)]({'type':_0x4028a4(0x301,_0x4d6ea7._0x27a1e3,_0x4d6ea7._0x2c90bf,_0x4d6ea7._0x2e9ee8),'text':_0x16264e});function _0x4028a4(_0xba9e82,_0x586b7b,_0xef26aa,_0x14accf){return _0xc7d8a6(_0xba9e82-_0x56cc8c._0x266d8d,_0xba9e82,_0xef26aa-_0x56cc8c._0x2ab53f,_0xef26aa-0x4c5);}for(const _0x132061 of _0xa2489f){if(_0x132061['id'][_0x4670be(_0x4d6ea7._0x134970,0x508,_0x4d6ea7._0x172475,0x469)]()[_0x4670be(0x550,0x61e,_0x4d6ea7._0x5744dd,0x5c8)]===0x0||_0x132061[_0x4670be(0x4b8,_0x4d6ea7._0x4440f4,0x3ac,_0x4d6ea7._0x31c296)][_0x4670be(0x396,_0x4d6ea7._0x2716ea,0x4f2,_0x4d6ea7._0x5bc2ff)][_0x4028a4(0x305,_0x4d6ea7._0x2e98d9,0x33e,0x36b)]()[_0x4670be(_0x4d6ea7._0x1e6e4e,_0x4d6ea7._0x31a280,_0x4d6ea7._0x23ffce,0x5c8)]===0x0)continue;_0x4705a1['push']({'type':_0x4028a4(0x357,_0x4d6ea7._0x250494,_0x4d6ea7._0x250494,0x302),'id':_0x132061['id'],'name':_0x132061['function']['name'],'input':parseToolInput2(_0x132061['function'][_0x4670be(_0x4d6ea7._0x5c0a97,0x520,_0x4d6ea7._0x42430c,0x5ad)])});}function _0x4670be(_0x274009,_0x56ba02,_0x4e3f15,_0x194651){return _0xc7d8a6(_0x274009-_0x2abb0f._0x40674b,_0x4e3f15,_0x4e3f15-_0x2abb0f._0x23f68f,_0x194651-_0x2abb0f._0x287983);}return _0x4705a1;}function createUsage(_0x3ad267){const _0x8159c3={_0x4a50e4:0xaf,_0x493bb5:0x31,_0x45a349:0x560,_0x5e481f:0x490,_0x58b0aa:0x56e,_0x699f39:0x682,_0x1e89b:0x5a9,_0x311e45:0x651,_0x10bc85:0xba,_0xd895fe:0x1e,_0x57273d:0x8f},_0x1a3ffc={_0x2acc34:0x120,_0xee4efe:0x7b},_0xf5afb5={_0x3a0731:0x51e};function _0x5da6cf(_0x2ffdc2,_0x5a24e0,_0x502154,_0x28af57){return _0x74a064(_0x2ffdc2-0x170,_0x5a24e0-0x11a,_0x502154-_0xf5afb5._0x3a0731,_0x28af57);}function _0x4cf9b0(_0x12356f,_0x25b5d9,_0x35c6d1,_0x167c6c){return _0xc7d8a6(_0x12356f-_0x1a3ffc._0x2acc34,_0x12356f,_0x35c6d1-_0x1a3ffc._0xee4efe,_0x35c6d1-0x101);}return{'inputTokens':_0x3ad267?.[_0x4cf9b0(_0x8159c3._0x4a50e4,0xa9,0x99,_0x8159c3._0x493bb5)]??0x0,'outputTokens':_0x3ad267?.['completion_tokens']??0x0,..._0x3ad267?.[_0x4cf9b0(0x137,0xd3,0xe2,0x1b2)]?.[_0x5da6cf(_0x8159c3._0x45a349,_0x8159c3._0x5e481f,0x551,_0x8159c3._0x58b0aa)]!==void 0x0?{'reasoningTokens':_0x3ad267[_0x5da6cf(_0x8159c3._0x699f39,_0x8159c3._0x1e89b,_0x8159c3._0x311e45,0x60d)][_0x4cf9b0(_0x8159c3._0x10bc85,-0x3a,-_0x8159c3._0xd895fe,_0x8159c3._0x57273d)]}:{}};}function resolveReasoningVisibility2(_0x61ec9e){const _0x5240b2={_0x5c8483:0x28,_0x3767a8:0x11,_0x20014b:0xfb},_0x127e9d={_0x411490:0x1d5,_0x37252e:0x169},_0x144a9b={_0x32f079:0x1d3,_0x216240:0x48};function _0x51f7ae(_0x2992d2,_0x1428cd,_0x21e236,_0x376679){return _0x74a064(_0x2992d2-_0x144a9b._0x32f079,_0x1428cd-_0x144a9b._0x216240,_0x21e236- -0x164,_0x2992d2);}function _0x60988f(_0x446428,_0x48e528,_0x6277e8,_0x2f6ded){return _0x74a064(_0x446428-_0x127e9d._0x411490,_0x48e528-0x1e6,_0x446428- -_0x127e9d._0x37252e,_0x2f6ded);}return _0x61ec9e[_0x51f7ae(-_0x5240b2._0x5c8483,-_0x5240b2._0x3767a8,-0x3c,-_0x5240b2._0x20014b)]?.[_0x60988f(-0x3e,0x81,-0x27,-0x117)]??'user-visible';}function isUserVisibleReasoning(_0x44ea3c){return resolveOpenAiReasoningConfig(_0x44ea3c['reasoning'])!==void 0x0&&resolveReasoningVisibility2(_0x44ea3c)==='user-visible';}function createChatRequestBody(_0x9a828a,_0x20bcde){const _0x33ab34={_0x4ca8a5:0x107,_0x3e193d:0x21c,_0x2d52a5:0x9,_0x521fc4:0x70,_0x4e03ff:0x4b1,_0x10a8cf:0x50e,_0x59209e:0x483,_0x2b633c:0x51c,_0x4c08a8:0x51d,_0x3cb69b:0x381,_0x33e7e2:0x498,_0x5e7bb0:0x3e0,_0x271ace:0x4c5,_0x12ba10:0x65,_0x4ef69c:0x23,_0x379418:0x415,_0x3cfce0:0x4ce,_0x581d17:0x358,_0x1c21a5:0x3fd,_0x4769c0:0x451,_0x300dd6:0x37d,_0x3f1127:0xb0,_0x166c57:0x33,_0x20fbc1:0xd7,_0x29f6a3:0x126,_0x1b508e:0xb0,_0x339397:0x3f7,_0xc08ee1:0x35a,_0xa86349:0xce,_0x558c5d:0x26,_0x39f4ba:0x549,_0x13e05e:0x4d1,_0x9dbe26:0x39d,_0x11ecad:0x4a9,_0x1a4484:0x5fa,_0x40542d:0x4e0,_0x25f7cb:0x4ab,_0x7252f7:0x55b,_0x3fec47:0xce,_0x47e26b:0xad,_0x490cd2:0x45a,_0x1332ee:0x30e,_0x39a352:0xa,_0x369165:0xc8,_0x157fab:0x6c,_0x265e46:0x37,_0x305c0d:0x6a,_0x1306dc:0x44d,_0x3afd1a:0x3e7,_0x47ff00:0x3fb,_0x3f68f8:0x502,_0x7169be:0x53a,_0xf0d039:0x51a,_0x40c4e8:0x569,_0x457679:0x52b,_0x484142:0x59e,_0x4e8d66:0x415,_0x130d1f:0x39c,_0x47494b:0x40d,_0x3a9d3b:0x344,_0x2a33bb:0x40d,_0x89a30:0x125,_0x15c508:0x7,_0x4f2b30:0xe5,_0x2cfa38:0x1a8,_0x53c492:0x11d,_0x334c64:0xa2,_0x212dc3:0x97,_0x360f9f:0x5a4,_0x55dae4:0x53f,_0x30b4df:0x5c6,_0x537591:0x1f2,_0x21f649:0x173,_0x594a0e:0x12f,_0x166062:0xa5,_0x677ed2:0x4a5,_0x213e5f:0x48e,_0x591181:0x51c,_0xaea055:0x54d,_0x993475:0x490,_0x1975c9:0xd0,_0x57c8cc:0x1d5,_0x2349df:0x161,_0x180d7a:0xac,_0x377701:0x10d,_0x17a69e:0xd5,_0xf85b06:0x17,_0x3adc98:0x36c,_0x47307e:0x3cb,_0xde34e:0x4d0,_0x26d31b:0xe7,_0x412e9b:0x457},_0x4385b1={_0x47d864:0x65},_0x133842={_0x2b6eba:0x263,_0x522bac:0x2a1,_0x5c1443:0x2c6,_0x51038a:0x130,_0x329560:0x6f,_0xca27d3:0x9a,_0x17bf32:0x6c,_0x14c64e:0x14e,_0x1be072:0x149,_0x6c18f:0x47,_0x3e28fe:0xd8,_0x46b3cd:0x109,_0x60c0fe:0x4d,_0x39bfa8:0x108,_0xd9b794:0x1af,_0x3f6f85:0x1f2,_0x569e78:0xb0,_0x395166:0x152,_0xfd68bc:0x18a,_0x3a0b82:0x42b,_0x38ab74:0x1d4,_0x11ce2a:0x2eb,_0x5958ad:0x23f,_0x34596b:0x70,_0x1fb647:0x4e,_0x5bca58:0x2bd,_0x25b914:0x200,_0x4e5225:0x21d,_0x4aa728:0x26b,_0x10a820:0x1dd,_0x1cb5e0:0x160,_0x3ec438:0xb8,_0x38029e:0x234,_0x553dd1:0x242,_0x3ddbc7:0x393,_0x493d45:0x3c5,_0x2fc5fa:0x389,_0x672061:0x150,_0x6ea75d:0x188,_0x20a26f:0x1ff,_0x1f2693:0x234,_0x42c3f7:0x198,_0xeb6443:0x3fc,_0x49c52f:0x344},_0x2abf27={_0x3e4caa:0x12f},_0x2a8337={_0x28b1d7:0x12d,_0x3dee89:0x1d7},_0x4eaa63=[],_0x5082bb=stringifySystem(_0x9a828a['system']);function _0x4d4600(_0x5a15bf,_0x989d84,_0x287668,_0x1fdf52){return _0xc7d8a6(_0x5a15bf-0x140,_0x287668,_0x287668-_0x2a8337._0x28b1d7,_0x5a15bf-_0x2a8337._0x3dee89);}_0x5082bb[_0x4d4600(0x1af,_0x33ab34._0x4ca8a5,_0x33ab34._0x3e193d,0x248)]>0x0&&_0x4eaa63[_0x5c5ddd(0x41b,0x39c,0x3ae,0x341)]({'role':_0x4d4600(0x5e,-_0x33ab34._0x2d52a5,-0x53,-_0x33ab34._0x521fc4),'content':_0x5082bb});for(const _0x5c0b6b of _0x9a828a[_0x5c5ddd(_0x33ab34._0x4e03ff,_0x33ab34._0x10a8cf,_0x33ab34._0x59209e,_0x33ab34._0x2b633c)]){const _0x57d2ef=[],_0x21a6bb=[],_0x7a8591=[],_0x37cc9a=()=>{const _0x340d5a={_0x4a5312:0x20,_0x1c4f04:0x49};if(_0x5c0b6b[_0x2fcb33(_0x133842._0x2b6eba,_0x133842._0x522bac,0x30d,_0x133842._0x5c1443)]===_0x2fcb33(0x359,0x3fa,0x35b,0x2b6)){if(_0x57d2ef[_0x5134f7(-0x8d,-_0x133842._0x51038a,-_0x133842._0x329560,-0x6c)]===0x0&&_0x21a6bb[_0x5134f7(-0xf3,-0xfd,-_0x133842._0xca27d3,-_0x133842._0x17bf32)]===0x0)return;_0x4eaa63[_0x5134f7(-_0x133842._0x14c64e,-0x2d2,-_0x133842._0x1be072,-0x211)]({'role':_0x5134f7(-_0x133842._0x6c18f,-_0x133842._0x3e28fe,-0xa8,-_0x133842._0xca27d3),'content':_0x57d2ef[_0x5134f7(-_0x133842._0x46b3cd,_0x133842._0x60c0fe,-_0x133842._0x39bfa8,-_0x133842._0x17bf32)]>0x0?_0x57d2ef[_0x2fcb33(_0x133842._0xd9b794,0x187,0x234,_0x133842._0x3f6f85)]('\x0a\x0a'):null,..._0x21a6bb['length']>0x0?{'tool_calls':_0x21a6bb[_0x5134f7(-_0x133842._0x569e78,-0xfd,-_0x133842._0x395166,-_0x133842._0xfd68bc)](0x0)}:{}}),_0x57d2ef[_0x2fcb33(0x46a,0x373,0x389,_0x133842._0x3a0b82)]=0x0;return;}if(_0x5c0b6b['role']===_0x2fcb33(_0x133842._0x38ab74,_0x133842._0x11ce2a,_0x133842._0x5958ad,0x25e)){if(_0x7a8591[_0x5134f7(0x53,-_0x133842._0x34596b,_0x133842._0x1fb647,-0x6c)]===0x0)return;const _0x451386=_0x7a8591[_0x5134f7(-_0x133842._0x5bca58,-0x2bd,-0x2e5,-_0x133842._0x25b914)](_0xae83bb=>_0xae83bb[_0x5134f7(-0x132,-0x1a6,-0x21f,-0x14d)]===_0x2fcb33(0x1e5,0x1fc,0x298,0x28b));_0x4eaa63[_0x5134f7(-_0x133842._0x4e5225,-0x1a3,-0x2bc,-0x211)]({'role':'user','content':_0x451386?_0x7a8591['splice'](0x0):_0x7a8591[_0x2fcb33(0x2c2,0x284,_0x133842._0x4aa728,0x2fe)](0x0)[_0x2fcb33(0x25c,0x27e,_0x133842._0x10a820,_0x133842._0x1cb5e0)](_0x4a0f02=>_0x4a0f02['type']===_0x5134f7(-0x189,-0x25d,-0x16c,-0x1b0))[_0x5134f7(-0xf4,-0xb1,-0x45,-_0x133842._0x3ec438)](_0x4289b7=>_0x4289b7[_0x2fcb33(0x1ef,0x297,0x245,0x2da)])[_0x2fcb33(0x1aa,0x2d7,_0x133842._0x38029e,_0x133842._0x553dd1)]('\x0a\x0a')});return;}function _0x2fcb33(_0x3a0e1e,_0x2d40b1,_0x529f45,_0xc58edd){return _0x4d4600(_0x529f45-0x1da,_0x2d40b1-_0x340d5a._0x4a5312,_0x3a0e1e,_0xc58edd-_0x340d5a._0x1c4f04);}if(_0x57d2ef[_0x2fcb33(_0x133842._0x3ddbc7,_0x133842._0x493d45,_0x133842._0x2fc5fa,0x34f)]===0x0)return;function _0x5134f7(_0x203a9b,_0x20aaec,_0x33f4e4,_0x543ec3){return _0x5c5ddd(_0x203a9b-_0x2abf27._0x3e4caa,_0x543ec3- -0x5ad,_0x33f4e4-0x1ce,_0x33f4e4);}_0x4eaa63[_0x2fcb33(0x22a,0x1a4,0x1e4,_0x133842._0x672061)]({'role':_0x5c0b6b['role'],'content':_0x57d2ef[_0x2fcb33(_0x133842._0x6ea75d,_0x133842._0x20a26f,_0x133842._0x1f2693,_0x133842._0x42c3f7)]('\x0a\x0a')}),_0x57d2ef[_0x2fcb33(0x35b,_0x133842._0xeb6443,0x389,_0x133842._0x49c52f)]=0x0;};for(const _0x2877d4 of normalizeContent(_0x5c0b6b['content'])){if(_0x2877d4[_0x5c5ddd(_0x33ab34._0x4c08a8,0x460,_0x33ab34._0x3cb69b,_0x33ab34._0x33e7e2)]===_0x4d4600(0x6b,0x13c,-0x46,0xf7)){_0x5c0b6b[_0x5c5ddd(_0x33ab34._0x5e7bb0,_0x33ab34._0x271ace,0x3f3,0x50e)]===_0x4d4600(_0x33ab34._0x12ba10,0x62,0xee,_0x33ab34._0x4ef69c)?_0x7a8591['push']({'type':_0x5c5ddd(_0x33ab34._0x379418,0x3fd,_0x33ab34._0x3cfce0,0x4ae),'text':_0x2877d4[_0x5c5ddd(_0x33ab34._0x581d17,_0x33ab34._0x1c21a5,_0x33ab34._0x4769c0,_0x33ab34._0x300dd6)]}):_0x57d2ef[_0x4d4600(0xa,_0x33ab34._0x3f1127,-_0x33ab34._0x166c57,_0x33ab34._0x20fbc1)](_0x2877d4['text']);continue;}if(_0x5c0b6b[_0x4d4600(0x133,0x1dc,_0x33ab34._0x29f6a3,_0x33ab34._0x1b508e)]===_0x5c5ddd(0x34d,_0x33ab34._0x339397,0x4d7,_0x33ab34._0xc08ee1)&&_0x2877d4[_0x4d4600(_0x33ab34._0xa86349,0xe3,0xb7,0xc)]===_0x5c5ddd(0x4dc,0x474,0x470,0x538)){_0x7a8591[_0x4d4600(0xa,0x9e,-_0x33ab34._0x558c5d,-0x8)]({'type':'image_url','image_url':{'url':'data:'+_0x2877d4[_0x5c5ddd(_0x33ab34._0x39f4ba,_0x33ab34._0x13e05e,0x4b2,0x4dd)][_0x5c5ddd(_0x33ab34._0x9dbe26,0x42a,0x353,_0x33ab34._0x11ecad)]+_0x5c5ddd(_0x33ab34._0x1a4484,0x553,0x4a0,_0x33ab34._0x40542d)+_0x2877d4[_0x5c5ddd(_0x33ab34._0x25f7cb,0x4d1,_0x33ab34._0x7252f7,0x412)]['data']}});continue;}if(_0x2877d4[_0x4d4600(_0x33ab34._0x3fec47,_0x33ab34._0x47e26b,0x172,0x35)]===_0x5c5ddd(_0x33ab34._0x490cd2,0x3ea,0x327,_0x33ab34._0x1332ee)){_0x21a6bb[_0x4d4600(_0x33ab34._0x39a352,_0x33ab34._0x369165,-0x2f,_0x33ab34._0x157fab)]({'id':_0x2877d4['id'],'type':'function','function':{'name':_0x2877d4[_0x4d4600(_0x33ab34._0x265e46,0x61,-_0x33ab34._0x305c0d,0x26)],'arguments':JSON['stringify'](_0x2877d4['input']??{})}});continue;}if(_0x2877d4['type']!=='tool_result')continue;_0x37cc9a(),_0x4eaa63[_0x5c5ddd(0x2b9,0x39c,0x2da,_0x33ab34._0x1306dc)]({'role':_0x5c5ddd(_0x33ab34._0x3afd1a,0x402,0x3df,_0x33ab34._0x47ff00),'content':getToolResultText(_0x2877d4['content']),'tool_call_id':_0x2877d4[_0x5c5ddd(_0x33ab34._0x3f68f8,_0x33ab34._0x7169be,_0x33ab34._0xf0d039,_0x33ab34._0x40c4e8)]});const _0x5641a2=getToolResultImages(_0x2877d4[_0x5c5ddd(_0x33ab34._0x457679,0x4dd,_0x33ab34._0x484142,_0x33ab34._0x4e8d66)]);_0x5641a2['length']>0x0&&_0x4eaa63[_0x5c5ddd(0x433,_0x33ab34._0x130d1f,_0x33ab34._0x47494b,_0x33ab34._0x3a9d3b)]({'role':_0x5c5ddd(0x3b7,0x3f7,0x4dc,_0x33ab34._0x2a33bb),'content':[{'type':_0x4d4600(0x6b,_0x33ab34._0x89a30,_0x33ab34._0x15c508,_0x33ab34._0x4f2b30),'text':'Image\x20returned\x20by\x20ViewFile\x20for\x20tool\x20result\x20'+_0x2877d4[_0x4d4600(_0x33ab34._0x2cfa38,_0x33ab34._0x53c492,0x26d,0x1ce)]+'.'},..._0x5641a2[_0x4d4600(0x163,_0x33ab34._0x334c64,_0x33ab34._0x212dc3,0x9a)](_0x2d89e0=>({'type':_0x4d4600(0xbe,0xfd,0x19b,0x7f),'image_url':{'url':_0x5c5ddd(0x350,0x3af,0x302,0x3c4)+_0x2d89e0['source']['media_type']+_0x4d4600(0x1c1,0x241,0x276,0x28b)+_0x2d89e0['source'][_0x4d4600(0x88,-0x43,0x7f,0x100)]}}))]});}_0x37cc9a();}function _0x5c5ddd(_0x234b3e,_0x3340cc,_0x4a03e5,_0x22d910){return _0x74a064(_0x234b3e-_0x4385b1._0x47d864,_0x3340cc-0x10c,_0x3340cc-0x417,_0x22d910);}const _0x492f76=resolveOpenAiReasoningConfig(_0x9a828a[_0x5c5ddd(_0x33ab34._0x360f9f,_0x33ab34._0x55dae4,_0x33ab34._0x30b4df,0x52c)]);return{'model':_0x9a828a[_0x5c5ddd(0x506,0x46d,0x53f,0x44a)],'messages':_0x4eaa63,'stream':_0x20bcde,..._0x492f76?{'max_completion_tokens':_0x9a828a[_0x4d4600(0x15b,0x1ad,_0x33ab34._0x537591,0x185)]}:{'max_tokens':_0x9a828a[_0x4d4600(0x15b,_0x33ab34._0x21f649,_0x33ab34._0x594a0e,_0x33ab34._0x166062)]},..._0x492f76?.[_0x5c5ddd(_0x33ab34._0x677ed2,0x4bb,_0x33ab34._0x213e5f,0x4fd)]?{'reasoning_effort':_0x492f76[_0x5c5ddd(_0x33ab34._0x591181,0x4bb,_0x33ab34._0xaea055,_0x33ab34._0x993475)]}:{},...createToolDefinitions(_0x9a828a[_0x4d4600(0x161,_0x33ab34._0x1975c9,0x106,_0x33ab34._0x57c8cc)])?{'tools':createToolDefinitions(_0x9a828a[_0x4d4600(_0x33ab34._0x2349df,_0x33ab34._0x180d7a,_0x33ab34._0x377701,0xe6)])}:{},..._0x9a828a['outputFormat']?{'response_format':{'type':_0x4d4600(0x8b,_0x33ab34._0x17a69e,0x10d,-_0x33ab34._0xf85b06),'json_schema':{'name':_0x9a828a[_0x5c5ddd(_0x33ab34._0x3adc98,0x418,0x34f,_0x33ab34._0x47307e)][_0x5c5ddd(0x402,0x3c9,0x31a,0x4a2)]??'structured_output','schema':_0x9a828a[_0x5c5ddd(0x3b0,0x418,0x4ce,_0x33ab34._0xde34e)][_0x4d4600(0x166,_0x33ab34._0x26d31b,_0x33ab34._0x4f2b30,0xe5)],'strict':_0x9a828a['outputFormat'][_0x5c5ddd(0x57e,0x4b1,0x555,_0x33ab34._0x412e9b)]??!![]}}}:{}};}function createResponsesRequestBody(_0x2a2c65,_0x38be38){return{...toOpenAiResponsesRequest(_0x2a2c65),..._0x38be38?{'stream':!![]}:{},'store':![]};}function createOpenAiResponsesWebSocketEvent(_0x187a5b,_0x1e00dd={}){const _0x2e58fb={_0x199852:0x2a6,_0xee23f7:0x5f,_0x583f39:0x40,_0x4e5ced:0x13},_0x15290b={_0x48ff8c:0x1b,_0x5e2404:0x1de,_0x10eb52:0x59},_0x5ed642={_0x449c27:0xd7};function _0x1e7022(_0x26eb4a,_0x8cdf08,_0x1b6fce,_0x2ce534){return _0x74a064(_0x26eb4a-_0x5ed642._0x449c27,_0x8cdf08-0xe5,_0x1b6fce-0x1ec,_0x8cdf08);}const _0x4ec1d1=toOpenAiResponsesRequest(_0x187a5b);function _0x70c4dc(_0x57d3db,_0x1da143,_0x479cf6,_0x111beb){return _0x74a064(_0x57d3db-_0x15290b._0x48ff8c,_0x1da143-_0x15290b._0x5e2404,_0x1da143- -_0x15290b._0x10eb52,_0x57d3db);}return{'type':'response.create',..._0x4ec1d1,..._0x1e00dd[_0x1e7022(0x354,0x37b,0x2a2,0x35c)]?{'input':_0x1e00dd[_0x1e7022(0x308,0x1c6,0x2a2,_0x2e58fb._0x199852)]}:{},..._0x1e00dd[_0x70c4dc(0x93,_0x2e58fb._0xee23f7,_0x2e58fb._0x583f39,_0x2e58fb._0x4e5ced)]?{'previous_response_id':_0x1e00dd['previousResponseId']}:{},'store':![]};}function normalizeAssistantContent(_0x2043fe){const _0x5bb2a8={_0x26b5e5:0xf3,_0x1cb9a5:0x13e,_0x50d57d:0xda,_0x517bab:0x136,_0x42946f:0x2d,_0x7d46b:0x10f,_0x2ffc34:0x47},_0x5c348c={_0x8067ee:0x1c7,_0x4f4aa3:0x1c4,_0x4ffe87:0x129,_0x317b2f:0x7c,_0x3ebf63:0xac,_0x296cac:0xde,_0x4ad5b9:0x14f,_0x49cecb:0xc4,_0x4c2a8c:0x167,_0x2cfa6d:0x25a},_0x58cfd5={_0x1be9f7:0x16e},_0x3278a4={_0x29742b:0x1c5,_0x5e8e0f:0x2};if(typeof _0x2043fe===_0x12b519(_0x5bb2a8._0x26b5e5,0xf8,0x198,_0x5bb2a8._0x1cb9a5))return _0x2043fe;if(!Array['isArray'](_0x2043fe))return'';function _0x588525(_0x24a195,_0x590ca6,_0x4cd3ce,_0x59ab99){return _0xc7d8a6(_0x24a195-_0x3278a4._0x29742b,_0x4cd3ce,_0x4cd3ce-_0x3278a4._0x5e8e0f,_0x590ca6-0x1aa);}function _0x12b519(_0x335a34,_0x4fcba1,_0x1c6886,_0x1868a4){return _0x74a064(_0x335a34-0x9b,_0x4fcba1-0x38,_0x4fcba1-_0x58cfd5._0x1be9f7,_0x1c6886);}return _0x2043fe[_0x588525(_0x5bb2a8._0x50d57d,_0x5bb2a8._0x517bab,0xb8,0xef)](_0x50291b=>{const _0x16d6b4={_0x316bab:0x91,_0x81ad02:0xfd},_0x1fc9e9={_0x2eab48:0x88,_0x2e43b3:0x34};function _0x51da9b(_0x54ddae,_0xfad1ad,_0x161d15,_0x4d69f2){return _0x588525(_0x54ddae-0x134,_0x4d69f2-_0x1fc9e9._0x2eab48,_0xfad1ad,_0x4d69f2-_0x1fc9e9._0x2e43b3);}function _0x2cac66(_0x1b4546,_0x15906a,_0x169669,_0x2326b3){return _0x12b519(_0x1b4546-_0x16d6b4._0x316bab,_0x1b4546- -0x1bc,_0x169669,_0x2326b3-_0x16d6b4._0x81ad02);}return _0x50291b[_0x51da9b(0x1c9,_0x5c348c._0x8067ee,_0x5c348c._0x4f4aa3,_0x5c348c._0x4ffe87)]===_0x51da9b(_0x5c348c._0x317b2f,_0x5c348c._0x3ebf63,_0x5c348c._0x296cac,0xc6)?_0x50291b[_0x51da9b(0xb7,_0x5c348c._0x4ad5b9,_0x5c348c._0x49cecb,0xc6)]:_0x50291b[_0x51da9b(_0x5c348c._0x4c2a8c,0x216,_0x5c348c._0x2cfa6d,0x1bb)];})[_0x588525(0x5a,_0x5bb2a8._0x42946f,_0x5bb2a8._0x7d46b,_0x5bb2a8._0x2ffc34)]('');}function normalizeResponsesMessageContent(_0x1f412e){const _0x277d70={_0x59e77a:0x36c,_0x14d0e9:0x42c,_0x1a02af:0x429,_0x5bac11:0x540,_0x1839af:0x5a6,_0x57bb21:0x56e,_0x2b6c2b:0x606,_0x58cd44:0x46c,_0x4ba66d:0x517},_0x230aa4={_0x3db322:0x235,_0x4f7c10:0x1d5,_0xf93777:0x1e8,_0x4fd4f2:0x264,_0x432e44:0x2de,_0x4a82ce:0x267,_0x1c0df9:0x160,_0x2532a0:0xf6,_0x27614a:0x311,_0x533770:0x33e,_0xadce8e:0x175,_0x588e66:0x222},_0x1a36c0={_0x308b7f:0x126,_0x1d5da9:0x1c},_0x2f9847={_0x62ca00:0x176},_0x53362={_0x4b8885:0x191};function _0x26d4bb(_0x443e5e,_0x3e761e,_0xbf6236,_0x29dedb){return _0xc7d8a6(_0x443e5e-0x72,_0x3e761e,_0xbf6236-_0x53362._0x4b8885,_0x29dedb-0x5cf);}if(!Array[_0x26d4bb(_0x277d70._0x59e77a,_0x277d70._0x14d0e9,0x378,_0x277d70._0x1a02af)](_0x1f412e))return'';function _0x27d1bf(_0x273ee1,_0x15c305,_0x4ae253,_0x2de1ce){return _0x74a064(_0x273ee1-_0x2f9847._0x62ca00,_0x15c305-0x1a9,_0x4ae253-0x490,_0x15c305);}return _0x1f412e[_0x27d1bf(_0x277d70._0x5bac11,_0x277d70._0x1839af,_0x277d70._0x57bb21,_0x277d70._0x2b6c2b)](_0x5171ac=>{const _0x5bd281={_0x3df8d5:0xca,_0x40c272:0x174};if(!_0x5171ac||typeof _0x5171ac!==_0x13fcf1(_0x230aa4._0x3db322,0x1c1,_0x230aa4._0x4f7c10,_0x230aa4._0xf93777))return'';function _0x5c0f52(_0x6972ab,_0x2de8dd,_0x576684,_0x219869){return _0x27d1bf(_0x6972ab-_0x5bd281._0x3df8d5,_0x576684,_0x2de8dd- -0x1dd,_0x219869-_0x5bd281._0x40c272);}const _0x404d93=_0x5171ac;if(_0x404d93[_0x5c0f52(0x369,0x2fc,_0x230aa4._0x4fd4f2,_0x230aa4._0x432e44)]===_0x13fcf1(_0x230aa4._0x4a82ce,0x19e,0x1f6,0x103)&&typeof _0x404d93[_0x5c0f52(0x246,0x299,0x1f1,0x359)]==='string')return _0x404d93['text'];if(_0x404d93[_0x13fcf1(0x147,_0x230aa4._0x1c0df9,_0x230aa4._0x2532a0,0x197)]===_0x5c0f52(0x354,0x38e,_0x230aa4._0x27614a,_0x230aa4._0x533770)&&typeof _0x404d93[_0x13fcf1(0x23a,0x1f2,0x23c,0x135)]===_0x13fcf1(-0x3,0xa1,_0x230aa4._0xadce8e,0xd))return _0x404d93[_0x13fcf1(0x2a2,0x1f2,0x2a1,_0x230aa4._0x588e66)];function _0x13fcf1(_0x291a55,_0x4cf6b9,_0x4bc438,_0x120004){return _0x27d1bf(_0x291a55-_0x1a36c0._0x308b7f,_0x4bc438,_0x4cf6b9- -0x379,_0x120004-_0x1a36c0._0x1d5da9);}return'';})[_0x27d1bf(0x443,_0x277d70._0x58cd44,0x465,_0x277d70._0x4ba66d)]('');}function extractOpenAiReasoningText(_0x41a749){const _0x57cdaf={_0x5c74c2:0x1cb,_0x65c3c3:0x1d3,_0xdcfa0f:0x384,_0x2afc7b:0x22f,_0xe9bc85:0x92,_0x58eba8:0x26e,_0x239f86:0x1ef},_0x5ab7f3={_0x3df7ff:0x80,_0x4a34e8:0x150},_0x222f7f={_0x5830af:0x53d};if(typeof _0x41a749['text']==='string')return _0x41a749[_0x5e734d(_0x57cdaf._0x5c74c2,_0x57cdaf._0x65c3c3,0x1f5,0x1a8)];function _0x25323b(_0x329547,_0x3b63d8,_0x2da8fa,_0x2720eb){return _0x74a064(_0x329547-0x1a4,_0x3b63d8-0x71,_0x2720eb-_0x222f7f._0x5830af,_0x3b63d8);}if(!Array['isArray'](_0x41a749['content']))return'';function _0x5e734d(_0xef59f2,_0x369fc5,_0x6c7096,_0x1b2603){return _0xc7d8a6(_0xef59f2-_0x5ab7f3._0x3df7ff,_0x6c7096,_0x6c7096-_0x5ab7f3._0x4a34e8,_0x369fc5-0x33f);}return _0x41a749[_0x5e734d(0x24e,0x2b3,0x1cc,_0x57cdaf._0xdcfa0f)][_0x5e734d(0x1ab,0x16b,_0x57cdaf._0x2afc7b,_0x57cdaf._0xe9bc85)](_0x584bf8=>_0x584bf8['type']==='reasoning_text'&&typeof _0x584bf8[_0x25323b(0x5db,0x5f9,0x4a8,0x523)]==='string')[_0x5e734d(0x3ac,0x2cb,_0x57cdaf._0x58eba8,_0x57cdaf._0x239f86)](_0x4c5330=>_0x4c5330['text']??'')['join']('');}function createOpenAiReasoningBlock(_0x490448){const _0x5c1cea=extractOpenAiReasoningText(_0x490448);return{'type':'openai_reasoning','summary':structuredClone(_0x490448['summary']??[]),..._0x490448['id']?{'id':_0x490448['id']}:{},..._0x490448['encrypted_content']?{'encryptedContent':_0x490448['encrypted_content']}:{},..._0x5c1cea['length']>0x0?{'text':_0x5c1cea}:{}};}function hasVisibleOpenAiReasoning(_0x35fc43){const _0x27a832={_0x450ed0:0x74,_0x5ba6d0:0x21c,_0x5b1b79:0x2f6},_0x3aebe8={_0x1c38ee:0x104},_0x5c7ec1={_0x42eb97:0x3e4};function _0x441377(_0x5ca143,_0x3759d8,_0x3a2654,_0x4080ee){return _0xc7d8a6(_0x5ca143-0x16a,_0x3759d8,_0x3a2654-0x7,_0x5ca143-_0x5c7ec1._0x42eb97);}function _0x1281e5(_0x1291e3,_0x4ce976,_0x54f7af,_0x55191f){return _0x74a064(_0x1291e3-0x1dd,_0x4ce976-_0x3aebe8._0x1c38ee,_0x55191f- -0x1ea,_0x54f7af);}return _0x35fc43['summary'][_0x1281e5(-_0x27a832._0x450ed0,-0x38,-0x95,-0xc0)]>0x0||typeof _0x35fc43['text']===_0x441377(_0x27a832._0x5ba6d0,0x25f,_0x27a832._0x5b1b79,0x217);}function parseChatCompletionResponse(_0x21d637){const _0x3e6616={_0x20a3e7:0x77,_0x157f5f:0x7c,_0x22043e:0x28,_0x21f987:0x75,_0x31157f:0x1af,_0x5359f:0x24,_0x2ca083:0x106,_0x6187e4:0xc2,_0x179e00:0x29,_0x15b8ec:0x98,_0x3f15f7:0x19e,_0xf78b77:0x17c,_0x594962:0xc4,_0x32f92d:0xb4,_0x46c200:0x86,_0xd74c3d:0x15b,_0x141eff:0x23,_0x3b3840:0x192,_0x57d64c:0xda,_0x5cb47d:0x5a,_0x3a307d:0x18b,_0x543ae4:0x231,_0x2ab61b:0x1b1,_0xbc5cac:0x62,_0x3efd80:0x18b,_0x1039b5:0x172,_0x278d3a:0xdd,_0x12e843:0xdc,_0x4d9b01:0x7f,_0x352a13:0x137,_0x3d873f:0x1f4,_0x2400fc:0x1b8,_0x140009:0x16c},_0x598901={_0x56ee3a:0x1d4,_0xb2d7c1:0x157,_0x114a9c:0x51},_0x37d0b3={_0x454849:0x1c},_0xe2697c=[];function _0x1b0611(_0x22fcc0,_0x46ed77,_0x4b8e21,_0x11f4ab){return _0x74a064(_0x22fcc0-0xf8,_0x46ed77-_0x37d0b3._0x454849,_0x22fcc0-0x107,_0x4b8e21);}function _0x6e1069(_0x5cb7f9,_0x2d8d66,_0xca5168,_0x44dde1){return _0xc7d8a6(_0x5cb7f9-_0x598901._0x56ee3a,_0x2d8d66,_0xca5168-_0x598901._0xb2d7c1,_0xca5168-_0x598901._0x114a9c);}const _0x2b8e24=[];let _0x2d9d89=_0x6e1069(-_0x3e6616._0x20a3e7,-_0x3e6616._0x157f5f,-_0x3e6616._0x22043e,-_0x3e6616._0x21f987);for(const _0x2a91a3 of _0x21d637[_0x1b0611(0x1d4,_0x3e6616._0x31157f,0x1e7,0x258)]??[]){const _0x119739=_0x2a91a3['message'],_0x39c61f=normalizeAssistantContent(_0x119739?.[_0x6e1069(-_0x3e6616._0x5359f,0x71,-0x3b,-_0x3e6616._0x2ca083)]);_0x39c61f[_0x6e1069(_0x3e6616._0x6187e4,0xb3,_0x3e6616._0x179e00,-_0x3e6616._0x15b8ec)]>0x0&&_0xe2697c[_0x6e1069(-_0x3e6616._0x3f15f7,-0xe2,-_0x3e6616._0xf78b77,-0xf5)](_0x39c61f),_0x119739?.[_0x6e1069(-_0x3e6616._0x594962,_0x3e6616._0x32f92d,0x23,0x1)]&&_0x2b8e24[_0x1b0611(0x8c,_0x3e6616._0x46c200,0xd1,_0x3e6616._0xd74c3d)](..._0x119739[_0x6e1069(0xf8,-0xbb,_0x3e6616._0x141eff,-0x37)]),_0x2a91a3[_0x1b0611(_0x3e6616._0x3b3840,0x12c,0xcf,0x108)]==='tool_calls'&&(_0x2d9d89=_0x1b0611(_0x3e6616._0x57d64c,_0x3e6616._0x5cb47d,0x115,_0x3e6616._0x3a307d));}return _0x2b8e24[_0x1b0611(_0x3e6616._0x543ae4,0x1f5,_0x3e6616._0x2ab61b,0x1ee)]>0x0&&(_0x2d9d89=_0x6e1069(-_0x3e6616._0xbc5cac,-0x118,-0x12e,-_0x3e6616._0x3efd80)),{'id':_0x21d637['id']??_0x1b0611(_0x3e6616._0x1039b5,_0x3e6616._0x278d3a,0x10c,0xba)+Date['now'](),'content':createContentBlocks(_0xe2697c[_0x1b0611(_0x3e6616._0x12e843,_0x3e6616._0x4d9b01,0x1bc,_0x3e6616._0x352a13)](''),_0x2b8e24),'stopReason':_0x2d9d89,'usage':createUsage(_0x21d637[_0x1b0611(_0x3e6616._0x3d873f,_0x3e6616._0x2400fc,0x17d,_0x3e6616._0x140009)])};}function parseResponsesResponse(_0x5b47ee,_0x37c139){const _0x47b6f4={_0x30039f:0x29a,_0x42d3ac:0x249,_0x3f60ff:0x284,_0x29b835:0x2d9,_0x309bdc:0x327,_0x320604:0x210,_0x27b560:0x346,_0x69a52:0x2c7,_0x32ad2f:0x269,_0x146f88:0xe6,_0x2bd00a:0x1f4,_0x406b03:0x2c5,_0x31310a:0x252,_0x29b7da:0x211,_0x3f85d0:0x177,_0x1f159a:0x165,_0x4020dc:0x18d,_0x15a62b:0x269,_0x116a9e:0x2f3,_0x56ac46:0x183,_0x5697d9:0x26b,_0x5857df:0x223,_0x4c19dc:0x2f8,_0x3394c4:0x370,_0x416fd7:0xd6,_0x2172c5:0x147,_0x193567:0x1a2,_0x59f994:0x21c,_0x5271ea:0xf8,_0x15f32a:0x1fa,_0x820422:0x1f8,_0x472421:0xe4,_0x4c6f19:0x10,_0x1af05c:0xba,_0x1cdc2e:0x161,_0xcc42e8:0x1dc,_0x24b079:0x10f,_0x21790c:0x252,_0x5aca5d:0x100,_0x5cbc4a:0x1db,_0x4a17c1:0x17f,_0x4664db:0x22c,_0x547e3f:0x2d4,_0x17804a:0x23c,_0x1c8de8:0x187,_0x4f807b:0x219,_0x14cb01:0x189,_0x477334:0x333,_0x4d0b9c:0x31d,_0x3f81a9:0xca,_0x1d7099:0x333,_0x2137c2:0x2f9,_0x12488e:0x259,_0x24c8ea:0x1a7,_0x11bdb8:0x26d,_0x3f24a7:0x18f,_0x4e43c6:0x246,_0x3d6507:0x1df,_0x300bf6:0x206,_0x45f108:0x1c0,_0x20e9ce:0x274,_0x4759e0:0x1aa,_0x4671ef:0x1f2,_0x4a01b9:0x29d},_0x503c52={_0x2f773:0x47,_0x1981b8:0xa1};function _0x42448d(_0x13ca10,_0x367475,_0x529d4a,_0x45e560){return _0xc7d8a6(_0x13ca10-0x17a,_0x13ca10,_0x529d4a-0x1ec,_0x529d4a-0x398);}const _0x48803f=[];for(const _0x253841 of _0x5b47ee[_0xb1b11a(-0x245,-0x293,-0x2b3,-_0x47b6f4._0x30039f)]??[]){if(isResponsesReasoningItem(_0x253841)){if(isUserVisibleReasoning(_0x37c139)){const _0x195bfe=createOpenAiReasoningBlock(_0x253841);hasVisibleOpenAiReasoning(_0x195bfe)&&_0x48803f[_0xb1b11a(-0x26e,-_0x47b6f4._0x42d3ac,-0x336,-_0x47b6f4._0x3f60ff)](_0x195bfe);}continue;}if(isResponsesMessageItem(_0x253841)){const _0x101cea=normalizeResponsesMessageContent(_0x253841['content']);_0x101cea[_0x42448d(0x3d1,0x2df,0x370,_0x47b6f4._0x29b835)]>0x0&&_0x48803f[_0xb1b11a(-0x26e,-_0x47b6f4._0x309bdc,-_0x47b6f4._0x320604,-_0x47b6f4._0x27b560)]({'type':_0x42448d(0x29f,0x17b,0x22c,_0x47b6f4._0x69a52),'text':_0x101cea});continue;}if(!isResponsesFunctionCallItem(_0x253841)||typeof _0x253841['call_id']!==_0xb1b11a(-_0x47b6f4._0x32ad2f,-0x2bf,-0x267,-0x312)||_0x253841[_0xb1b11a(-0x161,-_0x47b6f4._0x146f88,-_0x47b6f4._0x2bd00a,-0x12b)][_0x42448d(_0x47b6f4._0x406b03,_0x47b6f4._0x31310a,_0x47b6f4._0x29b7da,0x282)]()[_0xb1b11a(-0xc9,-0x5a,-_0x47b6f4._0x3f85d0,-_0x47b6f4._0x1f159a)]===0x0||typeof _0x253841[_0x42448d(_0x47b6f4._0x4020dc,0x221,0x1f8,0x1c2)]!==_0xb1b11a(-_0x47b6f4._0x15a62b,-_0x47b6f4._0x116a9e,-_0x47b6f4._0x56ac46,-0x2ea)||_0x253841['name'][_0x42448d(_0x47b6f4._0x5697d9,_0x47b6f4._0x5857df,_0x47b6f4._0x29b7da,0x23e)]()[_0x42448d(0x41d,_0x47b6f4._0x4c19dc,_0x47b6f4._0x3394c4,0x2c0)]===0x0||typeof _0x253841[_0xb1b11a(-0xe4,-_0x47b6f4._0x416fd7,-0x1a7,-_0x47b6f4._0x2172c5)]!==_0xb1b11a(-0x269,-_0x47b6f4._0x193567,-_0x47b6f4._0x59f994,-0x22d))continue;_0x48803f['push']({'type':'tool_use','id':_0x253841[_0xb1b11a(-0x161,-0x11c,-_0x47b6f4._0x5271ea,-0x1fd)],'name':_0x253841[_0x42448d(_0x47b6f4._0x15f32a,0x165,_0x47b6f4._0x820422,0x2cb)],'input':parseToolInput2(_0x253841[_0xb1b11a(-_0x47b6f4._0x472421,-_0x47b6f4._0x4c6f19,-_0x47b6f4._0x1af05c,-_0x47b6f4._0x1cdc2e)])});}function _0xb1b11a(_0x3de291,_0x3e7c1b,_0x5be50e,_0x131f2d){return _0xc7d8a6(_0x3de291-0x1ac,_0x131f2d,_0x5be50e-_0x503c52._0x2f773,_0x3de291- -_0x503c52._0x1981b8);}return!_0x48803f[_0x42448d(0x274,0x1c0,_0x47b6f4._0xcc42e8,0xfa)](_0x4d81ce=>_0x4d81ce[_0xb1b11a(-0x1aa,-0x275,-0x1c7,-0x1a9)]===_0x42448d(0x2b6,0x2b3,0x22c,0x1b1))&&_0x5b47ee[_0xb1b11a(-0x16c,-_0x47b6f4._0x24b079,-0xbf,-_0x47b6f4._0x21790c)]&&_0x48803f[_0x42448d(_0x47b6f4._0x5aca5d,0x242,0x1cb,_0x47b6f4._0x5cbc4a)]({'type':_0x42448d(0x218,_0x47b6f4._0x4a17c1,_0x47b6f4._0x4664db,_0x47b6f4._0x547e3f),'text':_0x5b47ee[_0x42448d(_0x47b6f4._0x17804a,0x287,0x2cd,0x34a)]}),{'id':_0x5b47ee['id'],'content':_0x48803f,'stopReason':_0x48803f['some'](_0x38b6d2=>_0x38b6d2['type']===_0xb1b11a(-0x220,-0x17e,-0x304,-0x208))?_0x42448d(0x289,_0x47b6f4._0x1c8de8,_0x47b6f4._0x4f807b,_0x47b6f4._0x14cb01):'end_turn','usage':{'inputTokens':_0x5b47ee[_0x42448d(0x280,0x30f,_0x47b6f4._0x477334,_0x47b6f4._0x4d0b9c)]?.[_0xb1b11a(-_0x47b6f4._0x3f81a9,-_0x47b6f4._0x1c8de8,-0x162,-0x191)]??0x0,'outputTokens':_0x5b47ee[_0x42448d(0x31c,0x284,_0x47b6f4._0x477334,0x261)]?.['output_tokens']??0x0,..._0x5b47ee[_0x42448d(0x39e,0x359,_0x47b6f4._0x1d7099,_0x47b6f4._0x2137c2)]?.[_0x42448d(_0x47b6f4._0x12488e,0x1ac,0x1df,_0x47b6f4._0x24c8ea)]?.[_0xb1b11a(-0x1c0,-0x28b,-_0x47b6f4._0x11bdb8,-_0x47b6f4._0x3f24a7)]!==void 0x0?{'reasoningTokens':_0x5b47ee[_0x42448d(0x299,0x295,_0x47b6f4._0x1d7099,0x3e1)][_0x42448d(_0x47b6f4._0x4e43c6,0x1cc,_0x47b6f4._0x3d6507,_0x47b6f4._0x300bf6)][_0xb1b11a(-_0x47b6f4._0x45f108,-0x188,-_0x47b6f4._0x20e9ce,-_0x47b6f4._0x4759e0)]}:{}},..._0x5b47ee[_0x42448d(_0x47b6f4._0x4671ef,0x1f0,0x1f4,0x2bd)]?{'providerState':{'openaiResponsesOutput':structuredClone(_0x5b47ee[_0x42448d(0x2ca,0x1e6,_0x47b6f4._0x2bd00a,_0x47b6f4._0x4a01b9)]),'openaiResponsesResponseId':_0x5b47ee['id']}}:{}};}function extractErrorMessage(_0xff27d5){const _0x5b0bb4={_0x46c6e9:0x466,_0xa306e9:0x501,_0x21b508:0x398,_0xa57c92:0x2ee,_0x4dbfc4:0x301,_0x386cb4:0x377,_0x20f547:0x3f9,_0x44cf36:0x57c,_0x2ef623:0x4f8,_0x3e4763:0x5a7,_0x2b30c3:0x5fd,_0x12f691:0x641,_0x32562c:0x542,_0x45409:0x328,_0x7e34c8:0x57c,_0x2a84db:0x582,_0x2afe2d:0x45d,_0x5c805f:0x309,_0x36c2c2:0x5fd,_0x2723d7:0x5c5,_0x316e9f:0x6a0,_0x2b0fe1:0x4c4},_0x414a13={_0x5e99c1:0x17d},_0x34731b={_0x49e73a:0x114,_0x20a6e3:0x2ef};function _0x3003de(_0x4a40b3,_0x3416c2,_0x486239,_0x167a60){return _0x74a064(_0x4a40b3-0x1a,_0x3416c2-_0x34731b._0x49e73a,_0x4a40b3-_0x34731b._0x20a6e3,_0x486239);}if(_0xff27d5[_0x3003de(0x419,_0x5b0bb4._0x46c6e9,0x3c6,0x437)]===0x0)return'';function _0xdb4694(_0x266c27,_0x4ba2f3,_0x23d454,_0x2079b7){return _0xc7d8a6(_0x266c27-_0x414a13._0x5e99c1,_0x23d454,_0x23d454-0x24,_0x266c27-0x625);}try{const _0x4fbdfa=JSON[_0xdb4694(0x51b,0x535,_0x5b0bb4._0xa306e9,0x4ee)](_0xff27d5);if(typeof _0x4fbdfa['error']?.[_0x3003de(_0x5b0bb4._0x21b508,_0x5b0bb4._0xa57c92,0x430,0x475)]==='string'&&_0x4fbdfa[_0x3003de(0x360,_0x5b0bb4._0x4dbfc4,_0x5b0bb4._0x386cb4,_0x5b0bb4._0x20f547)][_0xdb4694(_0x5b0bb4._0x44cf36,_0x5b0bb4._0x2ef623,_0x5b0bb4._0x3e4763,0x5be)]['trim']()[_0xdb4694(_0x5b0bb4._0x2b30c3,_0x5b0bb4._0x12f691,_0x5b0bb4._0x32562c,0x653)]>0x0)return _0x4fbdfa['error'][_0x3003de(0x398,0x2df,0x329,_0x5b0bb4._0x45409)]['trim']();if(typeof _0x4fbdfa[_0xdb4694(_0x5b0bb4._0x7e34c8,0x5d9,_0x5b0bb4._0x2a84db,_0x5b0bb4._0x7e34c8)]===_0xdb4694(_0x5b0bb4._0x2afe2d,0x4f7,0x467,0x3d9)&&_0x4fbdfa[_0xdb4694(_0x5b0bb4._0x44cf36,0x4ac,0x574,0x4a6)][_0x3003de(0x2ba,_0x5b0bb4._0x5c805f,0x288,0x361)]()[_0xdb4694(_0x5b0bb4._0x36c2c2,_0x5b0bb4._0x2723d7,0x6bd,_0x5b0bb4._0x316e9f)]>0x0)return _0x4fbdfa[_0xdb4694(0x57c,0x5ae,_0x5b0bb4._0x2b0fe1,0x51a)][_0x3003de(0x2ba,0x2f7,0x314,0x251)]();}catch{return _0xff27d5;}return _0xff27d5;}async function createOpenAiApiError(_0x21dd2c){const _0x7782d6={_0x455d2a:0x2d,_0x4c4985:0x13,_0x2c4f5c:0xcd,_0x49dee3:0x35,_0x1b6391:0xa8,_0x189cd5:0x25d,_0x329294:0x20d,_0x3964b4:0x154,_0x38abb6:0xc4};function _0x8816b6(_0x9512e5,_0x5b9b62,_0x4b16d3,_0x44166a){return _0xc7d8a6(_0x9512e5-0x107,_0x44166a,_0x4b16d3-0x50,_0x5b9b62- -0xd1);}const _0xbdaaed=(await _0x21dd2c[_0x5c7a48(_0x7782d6._0x455d2a,_0x7782d6._0x4c4985,_0x7782d6._0x2c4f5c,0x17f)]())[_0x5c7a48(_0x7782d6._0x49dee3,0x162,0xb2,_0x7782d6._0x1b6391)](),_0x2924b8=extractErrorMessage(_0xbdaaed)||_0x21dd2c['statusText']||_0x8816b6(-0x2ed,-_0x7782d6._0x189cd5,-_0x7782d6._0x329294,-0x208)+_0x21dd2c[_0x5c7a48(0x17e,0x9f,_0x7782d6._0x3964b4,_0x7782d6._0x38abb6)];function _0x5c7a48(_0x4edd7e,_0x1e7483,_0x4b376f,_0x17f985){return _0xc7d8a6(_0x4edd7e-0x12b,_0x17f985,_0x4b376f-0x1c,_0x4b376f-0x239);}return new OpenAiApiError(_0x21dd2c['status'],_0xbdaaed,_0x2924b8);}function readSseData(_0x41d204){const _0x39482c={_0x4a3c6f:0x24b,_0xd9c3d4:0x16c,_0x2bb197:0x20b,_0x55caf2:0x11f,_0x209875:0xa3,_0x3a81fc:0x186,_0x4f23f4:0x24e,_0x2d3cab:0x1d1,_0x18c885:0xc8,_0x53c816:0x10,_0x256068:0x10b,_0x1028e7:0x73,_0x4eda99:0x130},_0xe362f8={_0x2063f6:0xe5,_0x1eac59:0x1fa};function _0x42ba5d(_0x320717,_0x3d56cc,_0x5bd8d9,_0x5c8ead){return _0x74a064(_0x320717-0x1e4,_0x3d56cc-0xf3,_0x3d56cc- -0x9d,_0x320717);}function _0x5a38ed(_0x13f84d,_0x5bedd0,_0x101da3,_0x1aff14){return _0xc7d8a6(_0x13f84d-_0xe362f8._0x2063f6,_0x13f84d,_0x101da3-0x196,_0x5bedd0-_0xe362f8._0x1eac59);}return _0x41d204[_0x5a38ed(_0x39482c._0x4a3c6f,_0x39482c._0xd9c3d4,0x1a0,_0x39482c._0x2bb197)]('\x0a')[_0x42ba5d(-0x1eb,-_0x39482c._0x55caf2,-0xe2,-0x120)](_0x5489fb=>_0x5489fb['startsWith'](_0x42ba5d(-0x170,-0x105,-0x21,-0x12e)))[_0x5a38ed(_0x39482c._0x209875,_0x39482c._0x3a81fc,_0x39482c._0x4f23f4,_0x39482c._0x2d3cab)](_0x5345af=>_0x5345af[_0x42ba5d(-0xe6,-0x7b,-0xe5,-0x13a)](0x5)[_0x42ba5d(-0x1a8,-0x10a,-0xf7,-0x13f)]())[_0x42ba5d(-0x86,-_0x39482c._0x18c885,-_0x39482c._0x53c816,-0x46)]('\x0a')[_0x5a38ed(_0x39482c._0x256068,_0x39482c._0x1028e7,-0x71,_0x39482c._0x4eda99)]();}function readString(_0x3db963){const _0x396364={_0x2040fb:0x25e,_0x5b7281:0x608,_0x3d5e83:0x674},_0x542ba7={_0xf5cecb:0xe2,_0x56288f:0x96},_0x1603d9={_0x481ad8:0x142};function _0x23c417(_0x2d91f3,_0xc57bd8,_0x3c7bd6,_0x3d9336){return _0xc7d8a6(_0x2d91f3-_0x1603d9._0x481ad8,_0xc57bd8,_0x3c7bd6-0x73,_0x3c7bd6-0x615);}function _0x411fb6(_0x1ebe1a,_0x43d818,_0x5d5cb7,_0x11168c){return _0xc7d8a6(_0x1ebe1a-0xc2,_0x5d5cb7,_0x5d5cb7-_0x542ba7._0xf5cecb,_0x43d818- -_0x542ba7._0x56288f);}return typeof _0x3db963===_0x411fb6(-0x1ab,-_0x396364._0x2040fb,-0x197,-0x2e2)&&_0x3db963[_0x23c417(_0x396364._0x5b7281,_0x396364._0x3d5e83,0x5ed,0x581)]>0x0?_0x3db963:void 0x0;}function extractReasoningDetails(_0x3ce79b){const _0x3061b5={_0x560cba:0x1c2,_0x5e3728:0x119,_0x4b5a8d:0x17a,_0x1abc64:0x197,_0x2a840a:0xf3},_0x2a59de={_0x5b8f82:0x36,_0x56c0d0:0x181,_0x2b4760:0x20b,_0x10cb8e:0x1d7,_0x2b76fb:0x26a,_0x145af0:0x233,_0xbd7a37:0x14e,_0x64ceb2:0x2e4,_0x2279d5:0x330},_0x523050={_0x38ff44:0x1cb},_0x1592ad={_0x8fdfcc:0x199};function _0x1c2ab4(_0x3d6490,_0x3ba50d,_0x4514fe,_0xbcf677){return _0xc7d8a6(_0x3d6490-0xa,_0x3d6490,_0x4514fe-_0x1592ad._0x8fdfcc,_0x3ba50d-0x1a);}if(!Array[_0x43905a(-0x312,-0x2b5,-0x271,-0x23f)](_0x3ce79b))return void 0x0;function _0x43905a(_0x4cde21,_0x136fa5,_0x221b0f,_0x21f3a9){return _0x74a064(_0x4cde21-0x14,_0x136fa5-_0x523050._0x38ff44,_0x221b0f- -0x21d,_0x4cde21);}const _0x4860b4=_0x3ce79b[_0x43905a(-_0x3061b5._0x560cba,-0x18b,-_0x3061b5._0x5e3728,-0x178)](_0x2ee77c=>{if(!_0x2ee77c||typeof _0x2ee77c!==_0x483c5e(-0x6a,-0xa2,-0x113,-_0x2a59de._0x5b8f82))return[];const _0x194fcc=_0x2ee77c;if(typeof _0x194fcc[_0x483c5e(-_0x2a59de._0x56c0d0,-_0x2a59de._0x2b4760,-_0x2a59de._0x10cb8e,-0x156)]===_0x483c5e(-0x22d,-_0x2a59de._0x2b76fb,-_0x2a59de._0x145af0,-_0x2a59de._0xbd7a37))return[_0x194fcc['text']];function _0x4bc876(_0x139f4b,_0x1d0f81,_0x107f75,_0x2e2aef){return _0x1c2ab4(_0x107f75,_0x139f4b-0x368,_0x107f75-0x19c,_0x2e2aef-0x53);}function _0x483c5e(_0x51eecc,_0x230e20,_0x14f5c1,_0xff3ec0){return _0x43905a(_0xff3ec0,_0x230e20-0x1c4,_0x14f5c1-0x60,_0xff3ec0-0x26);}if(typeof _0x194fcc[_0x4bc876(_0x2a59de._0x64ceb2,_0x2a59de._0x2279d5,0x3a2,0x26c)]==='string')return[_0x194fcc['summary']];return[];});return _0x4860b4[_0x43905a(-_0x3061b5._0x4b5a8d,-_0x3061b5._0x1abc64,-_0x3061b5._0x2a840a,-0x99)]>0x0?_0x4860b4['join'](''):void 0x0;}function extractChatCompletionReasoningDelta(_0x7b6b30){const _0x423157={_0x243743:0x2d3,_0x55d699:0x3b6,_0x3d2bfa:0x6f,_0x105228:0xae,_0x56cca9:0x102,_0x29a06d:0x2fd,_0x55f7b6:0x34f,_0x56da58:0x83,_0x4021fc:0x48},_0x24777a={_0xed819a:0x12c},_0x595abc={_0x3e56ee:0x466};function _0x190357(_0x31dc3b,_0x2788e4,_0x33a7b8,_0x3d88b1){return _0xc7d8a6(_0x31dc3b-0xe1,_0x33a7b8,_0x33a7b8-0x91,_0x2788e4-_0x595abc._0x3e56ee);}function _0x6da92f(_0x63d3a6,_0x46129b,_0x339940,_0x4d77bf){return _0xc7d8a6(_0x63d3a6-0x164,_0x46129b,_0x339940-0x4,_0x339940-_0x24777a._0xed819a);}return extractReasoningDetails(_0x7b6b30?.[_0x190357(0x2e6,_0x423157._0x243743,0x313,_0x423157._0x55d699)])??readString(_0x7b6b30?.[_0x6da92f(_0x423157._0x3d2bfa,_0x423157._0x105228,_0x423157._0x56cca9,0x15e)])??readString(_0x7b6b30?.[_0x190357(_0x423157._0x29a06d,0x37c,_0x423157._0x55f7b6,0x2d7)])??readString(_0x7b6b30?.[_0x6da92f(-_0x423157._0x56da58,-0x89,0x8,_0x423157._0x4021fc)])??'';}var OpenAiChatCompletionsStreamParser=class{[_0xc7d8a6(-0x54,0x58,0x56,-0x5d)]=[];[_0x74a064(0x63,-0xf0,-0x24,0x91)];['textParts']=[];[_0x74a064(0xee,-0x2f,0x4a,0xd8)]=new Map();[_0x74a064(0x5a,0x140,0xa3,0x10f)]=[];[_0x74a064(-0x15e,0x3b,-0x7d,-0xa7)]=new Set();['responseId']='';['stopReason']='end_turn';[_0x74a064(0x85,0x157,0xed,0x3a)];constructor(_0x5573b4){this['request']=_0x5573b4;}[_0xc7d8a6(0x97,0x1c,-0x103,-0x41)](_0x4323c6){const _0x3b972f={_0x18b25f:0x5f7,_0x5873d8:0x6b8,_0x198a56:0x491,_0x1f49fc:0x5ba,_0x132204:0x4e6,_0xfdd4d8:0x598,_0xbc8e05:0x5ba,_0x2c950c:0x67b,_0x41857a:0x264,_0x42a2b0:0x2b6,_0x33fe11:0x4b6,_0xd3073d:0x421},_0x3b30={_0x378da3:0x143,_0x7fc076:0x62,_0x1dd4ae:0x2c9},_0x38dd14={_0x229692:0xf2,_0x591f07:0x67},_0xf6cbf8=readSseData(_0x4323c6);if(_0xf6cbf8[_0x2cca09(0x561,_0x3b972f._0x18b25f,0x621,_0x3b972f._0x5873d8)]===0x0||_0xf6cbf8===_0x2cca09(0x3c5,_0x3b972f._0x198a56,0x4ee,0x436))return[];function _0x2cca09(_0xc5732b,_0x1c25b3,_0x1e7556,_0x4d6aca){return _0xc7d8a6(_0xc5732b-_0x38dd14._0x229692,_0xc5732b,_0x1e7556-_0x38dd14._0x591f07,_0x1c25b3-0x61f);}const _0x2a66d9=JSON['parse'](_0xf6cbf8);this['responseId']=_0x2a66d9['id']??this[_0x1f0351(0x194,0x1ad,0x27c,0x19f)];function _0x1f0351(_0x1be8b0,_0x2ec229,_0x807998,_0x50f651){return _0xc7d8a6(_0x1be8b0-_0x3b30._0x378da3,_0x50f651,_0x807998-_0x3b30._0x7fc076,_0x2ec229-_0x3b30._0x1dd4ae);}return this[_0x2cca09(0x577,_0x3b972f._0x1f49fc,_0x3b972f._0x132204,_0x3b972f._0xfdd4d8)]=_0x2a66d9[_0x2cca09(0x52f,_0x3b972f._0xbc8e05,0x5f2,_0x3b972f._0x2c950c)]??this[_0x1f0351(0x2b7,_0x3b972f._0x41857a,_0x3b972f._0x42a2b0,0x245)],this[_0x2cca09(_0x3b972f._0x33fe11,0x4ea,0x42d,_0x3b972f._0xd3073d)](_0x2a66d9);}[_0xc7d8a6(-0xc0,-0x4c,-0x9c,-0x5e)](){const _0x4a8d42={_0x306ed0:0x117,_0x3a1c01:0xfa,_0x1a0407:0xa0,_0x3870d3:0x1a3,_0x5d593c:0x165,_0x34609d:0x135,_0x5eeb39:0xd6,_0xa7fa42:0x21,_0x92d3c1:0x169,_0x119211:0x1ee,_0x369961:0x49,_0x43ea35:0x2e,_0x3323ae:0x12e,_0x58de87:0x1fb,_0x2c9620:0x210,_0x799cb8:0x1e7,_0x4407a5:0x190,_0xa16f86:0x1d5,_0x3c9ac2:0x1a5,_0x555804:0x238,_0x1f940b:0x18b},_0x46cfa4={_0x307671:0x17,_0x1d900e:0x74},_0x3fdb74={_0x195ad4:0x1b7,_0x5cfd37:0x114};function _0x451c2a(_0x36b3f1,_0x56b85d,_0x4eaaa7,_0x40a00f){return _0xc7d8a6(_0x36b3f1-_0x3fdb74._0x195ad4,_0x40a00f,_0x4eaaa7-0xda,_0x4eaaa7- -_0x3fdb74._0x5cfd37);}this[_0x3c163a(_0x4a8d42._0x306ed0,0x91,0xe8,_0x4a8d42._0x3a1c01)][_0x451c2a(-_0x4a8d42._0x1a0407,-_0x4a8d42._0x3870d3,-0x13c,-_0x4a8d42._0x5d593c)]>0x0&&(this[_0x3c163a(_0x4a8d42._0x34609d,0xf1,0x16c,0x1d6)]=_0x3c163a(0x47,_0x4a8d42._0x5eeb39,-_0x4a8d42._0xa7fa42,0xaf));function _0x3c163a(_0x3464b2,_0x37add6,_0x52be47,_0x2abcf8){return _0x74a064(_0x3464b2-_0x46cfa4._0x307671,_0x37add6-0x29,_0x3464b2-_0x46cfa4._0x1d900e,_0x37add6);}const _0x5b0f4c=isUserVisibleReasoning(this['request'])?this[_0x3c163a(_0x4a8d42._0x92d3c1,0x11d,_0x4a8d42._0x119211,0xb0)][_0x3c163a(_0x4a8d42._0x369961,0xf7,-_0x4a8d42._0x43ea35,0x8f)](''):void 0x0;return{'id':this['responseId']||_0x451c2a(-0x14e,-_0x4a8d42._0x3323ae,-_0x4a8d42._0x58de87,-_0x4a8d42._0x2c9620)+Date[_0x451c2a(-0x1e1,-0x129,-0x1e3,-_0x4a8d42._0x799cb8)](),'content':createContentBlocks(this[_0x3c163a(0x18e,_0x4a8d42._0x4407a5,_0x4a8d42._0xa16f86,0xad)]['join'](''),this['toolCallOrder'],_0x5b0f4c),'stopReason':this[_0x451c2a(-0x25c,-0x181,-_0x4a8d42._0x3c9ac2,-_0x4a8d42._0x555804)],'usage':createUsage(this[_0x451c2a(-0xed,-_0x4a8d42._0x1f940b,-0x179,-0x138)])};}['consumeEvent'](_0x244eac){const _0x3b6930={_0x37a412:0x1dd,_0x4cbde2:0x309,_0x5507be:0x2f6,_0x30bb52:0x345,_0x13e781:0x29f,_0x2dfb02:0x2b9,_0x588a70:0x36b,_0x104224:0x34c,_0x4a5b18:0x1e8,_0x489b16:0x1a9,_0x432149:0x354,_0x5a4e93:0x364,_0x20de8f:0x1d6,_0x485c5b:0x16b,_0x24b579:0x219,_0x68aabc:0x3b0,_0x34b189:0x28c,_0x4fc05f:0x319,_0x1f230d:0x3ef,_0xf5b614:0x3ac,_0x37e417:0x455,_0x57466a:0x1eb,_0x55e1db:0x2a0,_0x41baf4:0x3d3,_0x1daf70:0x4b9,_0x1ac390:0x3ec,_0xf24a4b:0x26f,_0x39a3d5:0x1e2,_0x8c4697:0x1f,_0x87078a:0x88,_0x21759e:0x1de,_0x3b3df7:0x1fa,_0x24c570:0x23f,_0x38648b:0x4c6,_0x31ff66:0x405,_0x1b48c9:0x388,_0x139b25:0x361,_0x1c6b5f:0x396,_0x31fafd:0x27d,_0x716ee5:0x341,_0x547267:0xdd,_0x4c9b69:0x17c,_0x33c466:0x1aa,_0xf10125:0x272,_0x18b3ac:0x18a,_0x449f0c:0x174,_0x2f8faf:0x26b,_0x321f04:0x373,_0x5dd706:0xe2,_0x38b99f:0x12f,_0x6a23df:0x422,_0xd218de:0x3cf,_0x4ee850:0x341,_0x252ccc:0x392,_0x4fcce7:0xc2,_0x3ad9e2:0x12c,_0xe64e2:0x182,_0x5ca7d2:0x361,_0x325a01:0x2e9,_0x827aa6:0x3e5,_0x3365a7:0x177,_0x5ef68:0x3,_0x31593e:0x3ed,_0x584603:0x386,_0x3a5490:0xdb,_0x31c95b:0x43c,_0x5cc8ca:0x4b9,_0x1ce83f:0x3d5,_0x28c883:0x16a,_0x577084:0x67,_0x50dda0:0x287,_0x460362:0x93,_0x521d8b:0x3d,_0xb31e7f:0x3cb,_0x5db5f7:0x328,_0x10e148:0x3cd,_0x2010b6:0xe2,_0x56a651:0x71,_0x28eb98:0x28,_0x4872f2:0x56e,_0x46a573:0x49e,_0x40cf66:0x23a,_0x27ebba:0x1ef,_0x267dbd:0x3f4,_0x410593:0x314,_0x5134f6:0x1b6,_0x18a3cb:0x1b3,_0x55ed99:0x492,_0x2abc90:0x4b3,_0x31ff0b:0x104,_0x3cb931:0x175},_0x32dd72={_0x34262f:0x1e9,_0x53fee7:0x38f};function _0x30d55c(_0x40d55d,_0x423873,_0x1b8e6f,_0x9a06b7){return _0x74a064(_0x40d55d-0x150,_0x423873-_0x32dd72._0x34262f,_0x9a06b7-_0x32dd72._0x53fee7,_0x40d55d);}const _0x3e9f3f=[];for(const _0x3660dc of _0x244eac[_0x2af566(_0x3b6930._0x37a412,0x1db,0x130,0x127)]??[]){const _0x5b30fe=_0x3660dc['delta'],_0x1634c1=extractChatCompletionReasoningDelta(_0x5b30fe);_0x1634c1[_0x2af566(0x23a,0x1a1,0x19f,_0x3b6930._0x4cbde2)]>0x0&&(this['reasoningParts'][_0x30d55c(_0x3b6930._0x5507be,0x32c,_0x3b6930._0x30bb52,0x314)](_0x1634c1),isUserVisibleReasoning(this[_0x30d55c(0x324,_0x3b6930._0x13e781,_0x3b6930._0x2dfb02,_0x3b6930._0x588a70)])&&_0x3e9f3f['push']({'type':'openai_reasoning_delta','contentIndex':0x0,'delta':_0x1634c1,'itemId':(this[_0x30d55c(0x3c0,_0x3b6930._0x104224,0x340,0x3c5)]||_0x2af566(_0x3b6930._0x4a5b18,0x18f,_0x3b6930._0x489b16,0x288))+_0x30d55c(_0x3b6930._0x432149,_0x3b6930._0x5a4e93,0x40f,0x42b),'outputIndex':0x0}));const _0x8655c3=typeof _0x5b30fe?.[_0x2af566(_0x3b6930._0x20de8f,_0x3b6930._0x485c5b,_0x3b6930._0x24b579,0x1ee)]===_0x30d55c(_0x3b6930._0x68aabc,0x376,_0x3b6930._0x34b189,_0x3b6930._0x4fc05f)?_0x5b30fe[_0x30d55c(0x436,_0x3b6930._0x1f230d,_0x3b6930._0xf5b614,_0x3b6930._0x37e417)]:typeof _0x5b30fe?.[_0x2af566(_0x3b6930._0x57466a,0x2a9,0x2cc,_0x3b6930._0x55e1db)]==='string'?_0x5b30fe['refusal']:'';_0x8655c3[_0x30d55c(0x502,0x3e2,_0x3b6930._0x41baf4,_0x3b6930._0x1daf70)]>0x0&&(this[_0x30d55c(0x3e5,0x3d8,0x50a,0x4a9)][_0x30d55c(_0x3b6930._0x1ac390,0x27f,_0x3b6930._0xf24a4b,0x314)](_0x8655c3),_0x3e9f3f['push']({'type':_0x2af566(_0x3b6930._0x39a3d5,0x23e,0x114,0x1b2),'index':0x0,'text':_0x8655c3}));for(const _0x1ffd81 of _0x5b30fe?.['tool_calls']??[]){const _0x400d0d=_0x1ffd81[_0x2af566(0x92,-_0x3b6930._0x8c4697,_0x3b6930._0x87078a,0x4a)]??0x0;let _0x5dbf06=this[_0x2af566(0x15a,_0x3b6930._0x21759e,_0x3b6930._0x3b3df7,_0x3b6930._0x24c570)][_0x30d55c(0x403,_0x3b6930._0x38648b,0x36d,0x408)](_0x400d0d);!_0x5dbf06&&(_0x5dbf06={'id':_0x1ffd81['id']??'tool-call-'+_0x400d0d,'type':'function','function':{'name':_0x1ffd81[_0x30d55c(_0x3b6930._0x31ff66,_0x3b6930._0x1b48c9,0x3be,_0x3b6930._0x139b25)]?.[_0x30d55c(_0x3b6930._0x1c6b5f,_0x3b6930._0x31fafd,0x2fd,_0x3b6930._0x716ee5)]??'','arguments':''}},this[_0x2af566(0x15a,_0x3b6930._0x547267,_0x3b6930._0x4c9b69,0x181)][_0x2af566(0x22c,_0x3b6930._0x33c466,_0x3b6930._0xf10125,0x1d6)](_0x400d0d,_0x5dbf06),this[_0x2af566(0x1b3,_0x3b6930._0x18b3ac,_0x3b6930._0x449f0c,_0x3b6930._0x2f8faf)][_0x30d55c(0x28f,_0x3b6930._0x321f04,0x28b,0x314)](_0x5dbf06));_0x1ffd81['id']&&(_0x5dbf06['id']=_0x1ffd81['id']);_0x1ffd81[_0x2af566(_0x3b6930._0x5dd706,0x1ad,_0x3b6930._0x38b99f,0x85)]?.[_0x30d55c(_0x3b6930._0x6a23df,_0x3b6930._0xd218de,0x2bd,_0x3b6930._0x4ee850)]&&(_0x5dbf06[_0x30d55c(0x2b4,_0x3b6930._0x252ccc,0x331,_0x3b6930._0x139b25)][_0x2af566(_0x3b6930._0x4fcce7,_0x3b6930._0x3ad9e2,_0x3b6930._0xe64e2,0x15b)]=_0x1ffd81[_0x30d55c(0x419,0x2d6,0x29f,_0x3b6930._0x5ca7d2)][_0x30d55c(_0x3b6930._0x325a01,_0x3b6930._0x827aa6,0x2a6,0x341)]);!this['toolUseStartEmitted']['has'](_0x400d0d)&&_0x5dbf06[_0x2af566(0xe2,_0x3b6930._0x3365a7,0xd9,_0x3b6930._0x5ef68)][_0x30d55c(0x2ff,_0x3b6930._0x31593e,_0x3b6930._0x584603,0x341)][_0x2af566(_0x3b6930._0x3a5490,0xd3,0x190,0xeb)]()[_0x30d55c(0x3fd,0x477,_0x3b6930._0x31c95b,_0x3b6930._0x5cc8ca)]>0x0&&(_0x3e9f3f[_0x30d55c(0x31a,_0x3b6930._0x1ce83f,0x256,0x314)]({'type':'tool_use_delta','id':_0x5dbf06['id'],'index':_0x400d0d,'name':_0x5dbf06[_0x2af566(0xe2,0x39,_0x3b6930._0x28c883,_0x3b6930._0x577084)][_0x30d55c(0x325,0x325,_0x3b6930._0x50dda0,0x341)]}),this[_0x2af566(_0x3b6930._0x460362,_0x3b6930._0x3ad9e2,-_0x3b6930._0x521d8b,0x6e)][_0x30d55c(_0x3b6930._0xb31e7f,0x32e,_0x3b6930._0x5db5f7,_0x3b6930._0x10e148)](_0x400d0d));const _0x41b8e8=_0x1ffd81[_0x2af566(_0x3b6930._0x2010b6,_0x3b6930._0x56a651,0x75,_0x3b6930._0x28eb98)]?.[_0x30d55c(0x50b,0x521,_0x3b6930._0x4872f2,_0x3b6930._0x46a573)]??'';_0x41b8e8[_0x2af566(_0x3b6930._0x40cf66,0x160,0x18b,_0x3b6930._0x27ebba)]>0x0&&(_0x5dbf06['function']['arguments']+=_0x41b8e8,_0x3e9f3f[_0x30d55c(0x250,0x294,_0x3b6930._0x267dbd,_0x3b6930._0x410593)]({'type':'tool_use_delta','id':_0x5dbf06['id'],'index':_0x400d0d,'inputDelta':_0x41b8e8}));}_0x3660dc[_0x2af566(0x19b,0x271,_0x3b6930._0x5134f6,_0x3b6930._0x18a3cb)]===_0x30d55c(0x3ff,0x56c,_0x3b6930._0x55ed99,_0x3b6930._0x2abc90)&&(this[_0x2af566(0x1d1,_0x3b6930._0x31ff0b,_0x3b6930._0x3cb931,0x1ca)]='tool_use');}function _0x2af566(_0x5190d7,_0x3356fd,_0x579c51,_0x441855){return _0xc7d8a6(_0x5190d7-0x2e,_0x579c51,_0x579c51-0xf9,_0x5190d7-0x262);}return _0x3e9f3f;}},OpenAiResponsesStreamParser=class{[_0xc7d8a6(-0xf6,-0xc7,-0xaf,-0x121)]=new Map();['finalResponse'];[_0x74a064(-0x1e,0x36,0x2b,0xc0)]=new Map();[_0x74a064(-0x80,0x3e,-0x37,-0xe1)]=new Map();['reasoningItems']=new Map();[_0x74a064(-0x7a,-0x56,-0x24,-0x6f)];[_0xc7d8a6(-0xfa,0x6c,-0x14b,-0x67)]=new Map();['toolCalls']=new Map();constructor(_0x56168e){this['request']=_0x56168e;}[_0xc7d8a6(0x7a,-0x1e,-0x3e,-0x41)](_0x218386){const _0x3e4c2e={_0x3a908f:0x205,_0x2da800:0x1ae,_0x5ddbc9:0x214,_0x287c2b:0x15c,_0x371165:0x599,_0x228d6c:0x5b1,_0x5ee4c0:0x1d3,_0x2a0064:0x166,_0x12f31f:0x404,_0x3f05f1:0x4e7,_0x29e79a:0x595,_0x100e22:0x4fc,_0x17ba29:0x4e0,_0xa19192:0x4bd,_0x1fc3ce:0x24d,_0x21f38a:0x196,_0x28eb6b:0xe8,_0x4d63bf:0x1f5,_0x75ddd:0x565},_0x597961={_0x51d199:0xb7};function _0x3cb2bd(_0x2e54e6,_0x44bd67,_0x786c8e,_0x514ecf){return _0x74a064(_0x2e54e6-0x8c,_0x44bd67-0xcb,_0x514ecf-0x191,_0x2e54e6);}const _0x375259=_0x218386['split']('\x0a'),_0x3173f2=_0x375259[_0x3cb2bd(0x214,0x18e,0x9c,0x176)](_0x22c8df=>_0x22c8df[_0x24ae48(0x5bf,0x630,0x558,0x522)]('event:'))?.[_0x3cb2bd(_0x3e4c2e._0x3a908f,_0x3e4c2e._0x2da800,_0x3e4c2e._0x5ddbc9,0x1b3)](0x6)[_0x3cb2bd(0xdd,0xaf,0x1a2,_0x3e4c2e._0x287c2b)]();function _0x24ae48(_0x6b8587,_0x54ccd1,_0x4c1363,_0x335ac3){return _0xc7d8a6(_0x6b8587-_0x597961._0x51d199,_0x6b8587,_0x4c1363-0xba,_0x4c1363-0x66e);}const _0x528b16=_0x375259['filter'](_0x212c99=>_0x212c99[_0x24ae48(0x5df,0x590,0x558,0x5d0)](_0x3cb2bd(0x1ae,0x12e,0x196,0x129)))[_0x24ae48(_0x3e4c2e._0x371165,0x523,0x5fa,_0x3e4c2e._0x228d6c)](_0x302e2b=>_0x302e2b[_0x24ae48(0x4d7,0x471,0x53e,0x4fa)](0x5)['trimStart']())[_0x3cb2bd(0x169,0xe3,_0x3e4c2e._0x5ee4c0,_0x3e4c2e._0x2a0064)]('\x0a')[_0x24ae48(0x58e,_0x3e4c2e._0x12f31f,_0x3e4c2e._0x3f05f1,_0x3e4c2e._0x29e79a)]();if(_0x528b16['length']===0x0||_0x528b16===_0x24ae48(_0x3e4c2e._0x100e22,0x5c0,_0x3e4c2e._0x17ba29,_0x3e4c2e._0xa19192))return[];const _0x3902d8=JSON[_0x3cb2bd(0x2be,0x19e,_0x3e4c2e._0x1fc3ce,0x1d9)](_0x528b16);return this[_0x3cb2bd(_0x3e4c2e._0x21f38a,_0x3e4c2e._0x28eb6b,_0x3e4c2e._0x4d63bf,0x1ae)](_0x3173f2??String(_0x3902d8[_0x24ae48(0x502,_0x3e4c2e._0x100e22,_0x3e4c2e._0x75ddd,0x600)]??''),_0x3902d8);}[_0xc7d8a6(-0x15e,-0xfb,-0x1da,-0x15e)](_0x222448){const _0x39cf19={_0x3ee87b:0xeb,_0xee3ecf:0x1b3,_0x460fee:0x10d,_0x18eeef:0x1de,_0x474eb6:0xb5,_0x3126b6:0x110},_0x3c1783={_0x15bbea:0x11,_0x29c7bf:0x1d4},_0x5a34b9={_0x4be1ac:0x8e};function _0x14060f(_0x47775c,_0x1fcdde,_0x273388,_0x7eb3b8){return _0xc7d8a6(_0x47775c-0xa8,_0x1fcdde,_0x273388-_0x5a34b9._0x4be1ac,_0x7eb3b8-0x219);}function _0x2179cb(_0x16fb5c,_0x1d485,_0x206108,_0x454e25){return _0xc7d8a6(_0x16fb5c-_0x3c1783._0x15bbea,_0x16fb5c,_0x206108-_0x3c1783._0x29c7bf,_0x1d485-0x1f6);}return this[_0x14060f(_0x39cf19._0x3ee87b,_0x39cf19._0xee3ecf,_0x39cf19._0x460fee,0xe4)](String(_0x222448[_0x14060f(0xab,_0x39cf19._0x18eeef,_0x39cf19._0x474eb6,_0x39cf19._0x3126b6)]??''),_0x222448);}[_0xc7d8a6(-0x4e,0x30,0x46,-0x5e)](){const _0x2db528={_0x5261d6:0xca,_0x16a739:0xc6,_0xfa939b:0x12,_0x21b360:0x6c,_0x4ab39a:0x2a,_0x40e5ec:0x78,_0xff9b67:0xf9,_0x5d7030:0x13f},_0xb4371a={_0x3f0dcc:0x70,_0x2930ba:0xe5},_0x2d64ae=this['finalResponse']??{'id':'resp-'+Date[_0x57802e(-_0x2db528._0x5261d6,-_0x2db528._0x16a739,_0x2db528._0xfa939b,-0x174)](),'object':_0x52ab29(0x7,-0x16,-0x46,_0x2db528._0x21b360),'status':_0x52ab29(-_0x2db528._0x4ab39a,_0x2db528._0x40e5ec,0x51,0x7),'output':this['buildPartialOutput'](),'usage':{'input_tokens':0x0,'output_tokens':0x0}};function _0x52ab29(_0x258c08,_0x3078b4,_0x536f8d,_0x4ef98b){return _0x74a064(_0x258c08-_0xb4371a._0x3f0dcc,_0x3078b4-_0xb4371a._0x2930ba,_0x258c08- -0x54,_0x536f8d);}function _0x57802e(_0x1ce073,_0x34b9be,_0x4e86e8,_0x45e219){return _0xc7d8a6(_0x1ce073-0x4b,_0x34b9be,_0x4e86e8-0x161,_0x1ce073-0x5);}return parseResponsesResponse(_0x2d64ae,this[_0x52ab29(-0x78,-_0x2db528._0xff9b67,-0x14b,-_0x2db528._0x5d7030)]);}[_0xc7d8a6(-0x1f,0x57,-0xd9,-0x55)](){const _0x1fd854={_0x16bc83:0x66f,_0x570fe2:0x4f9};function _0x422900(_0x3088a6,_0x954e45,_0x358a06,_0x1ff208){return _0x74a064(_0x3088a6-0x8f,_0x954e45-0x1a3,_0x3088a6-0x52e,_0x1ff208);}return this[_0x422900(0x5da,0x5c6,_0x1fd854._0x16bc83,_0x1fd854._0x570fe2)]!==void 0x0;}[_0x74a064(0x5d,0xd9,0x1d,0x2e)](_0x147ac3,_0x59c8de){const _0x42d1ca={_0x35fd09:0x340,_0x24cc0e:0x24b,_0x70b464:0x1eb,_0xb7b606:0x12d,_0x3a8ee3:0x19f,_0x19f2f7:0x3e2,_0x175f7c:0x356,_0x23f54f:0x3aa,_0x1b1b02:0x150,_0x4fafe1:0x21c,_0x436588:0x208,_0x1cfeb7:0x236,_0x33aa62:0x336,_0x317923:0x28e,_0x51e352:0x20d,_0x14d0f4:0x357,_0x362db6:0x292,_0x531b46:0x2ba,_0x2837b6:0x271,_0x476d69:0x247,_0x270d91:0x1e7,_0x43dae9:0x300,_0x2b3d91:0x29c,_0x239c27:0x345,_0x3ed9ca:0x215,_0x1e3ec0:0x200,_0x5bf958:0x1d2,_0x98914a:0x23c,_0x10d56a:0x1ec,_0x277ac5:0x248,_0x556682:0x2b6,_0x19cbd1:0x2b1,_0x2ce103:0x315,_0xc1f407:0x237,_0x4e0bed:0x2be,_0x56bb71:0x155,_0x61107:0x2d3,_0x17b715:0x2e9,_0x16f109:0x358,_0x15a508:0x392,_0x669b29:0x222,_0x121c4b:0x1de,_0x99409e:0x117,_0x2a6ba7:0x1d4,_0x196b7a:0x1e8,_0x443430:0x348,_0x18253e:0x1c8,_0x58d95b:0x229,_0x294487:0x1a6,_0x5ada75:0x1f1,_0x523e67:0x12d,_0x3ea576:0x15c,_0x5de131:0x291,_0x2b1465:0x30e,_0x106a9d:0x2bc,_0x1c988d:0x34f,_0x52edf2:0x213,_0x2c266b:0x142,_0x510ead:0x2bf,_0x3029b0:0x1e8,_0x4e2862:0x227,_0x5cf30e:0x258,_0x18c78d:0x273,_0xc66cd9:0x370,_0x2db7ce:0x322,_0xd8b012:0x344,_0x1c9f9e:0x18d,_0x4120a0:0x177,_0xc82891:0xaa,_0x46168e:0x1fd,_0xf870eb:0x266,_0x11730d:0x1bd,_0x2849ed:0x22c,_0x5f1381:0x384,_0x579a17:0x325,_0xbe477d:0x33f,_0x3b56df:0x1e3,_0x7bd42:0x147,_0x35d7e2:0x102,_0x417891:0x1d7,_0x4cfae8:0x2a1,_0x831c67:0xc4,_0x22664e:0x1ea,_0x5ddc16:0x260,_0x3d54d7:0x2b2,_0x262671:0x313,_0x51dcb0:0x251,_0x1eb6b6:0x25d,_0xe261cf:0x355,_0x75a79c:0x2a5,_0x6faea3:0x2dd,_0x3f89f4:0x32e,_0x1d2a51:0x25a,_0x3f5ee8:0x1b6,_0x2ae680:0x23a,_0x55011d:0x289,_0x4a8d1a:0x235,_0xbd0a55:0x2c1,_0x357872:0x34b,_0x5e019b:0x29c,_0x5941d2:0x31d,_0x3ec9d9:0x200,_0x4a873b:0x22c,_0x5a404c:0x213,_0x19f658:0x216,_0x243716:0x2a5,_0xc6943c:0x329,_0x3adbc3:0x373,_0x4c4e68:0x187,_0x49563f:0xea,_0x52ca59:0x2ea,_0x275d54:0x33b,_0x35c1d7:0x417,_0x3f6d8c:0x186,_0x4585f7:0x1fe,_0x5bff4b:0x3a5,_0x39cba2:0x33b,_0x32db42:0x3dc,_0x2b8629:0x269,_0x254ed4:0x1ca,_0xeff962:0x1cc,_0x5d5535:0x136,_0x2502d8:0x272,_0x4812db:0x1f7,_0x48ff16:0x1b8,_0x44eca5:0x308,_0xe6b2fb:0x1ff,_0x3745bf:0x1c4,_0x15fcdf:0x257,_0x5eed5e:0x2a5,_0x215b5:0x2b2,_0xf56a6d:0x1b6,_0x3679fa:0x176,_0x35b3ac:0x1e4,_0x110143:0x175,_0x296fa2:0x1fa,_0x236d9e:0x2be,_0x27ad8b:0x2b2,_0x5552be:0x207,_0x28b391:0x1ec,_0x382fd9:0x31d,_0xf4fed9:0x2cb,_0x4b7327:0x38a,_0x36ad4a:0x3e7,_0x49b6e0:0x2fa,_0x1c6393:0x3b3,_0x3b675f:0x304,_0x428e5c:0x25d,_0x14b03c:0x3c4,_0x4973f2:0x343,_0x84f1d1:0x40c,_0x47cb56:0x1d8,_0x31afaa:0x211,_0x81ff34:0xfd,_0x51beeb:0x311,_0xd7f0c7:0x21b,_0x2f6bc9:0x1a4,_0x91c927:0x1bf,_0x3f9b1f:0x275,_0x457afc:0x225,_0x172ff7:0x1e9,_0x28a35e:0x212,_0x51a538:0x2ab,_0x2ce370:0x2ef,_0x13d206:0x24a,_0x539103:0x226,_0x34856f:0x189,_0x96bd5c:0x20a,_0x410521:0x1b6,_0x144d5d:0x1f6,_0x20f146:0x1d0,_0x569b60:0xe9,_0x191572:0x125,_0x2eed1f:0x27c,_0x3b1591:0x393,_0x22ef05:0x334,_0x46e468:0x198,_0x41a6f1:0x25b,_0x101701:0x325,_0x2402b1:0x335,_0x3dd9f7:0x3e6,_0x186f1b:0x389,_0x221e7e:0x41e,_0x32e464:0x2ae,_0x51143c:0x2d7,_0x5bfa2f:0x140,_0x39f6df:0x16e,_0xafdf6:0x280,_0x2e00b1:0x360,_0x395477:0x3bc,_0x50c488:0x42b,_0x2864f7:0x316,_0x4b6efa:0x31b,_0x28900b:0x341,_0x13e025:0x28a,_0x2b5e42:0x32e,_0x28f23f:0x234,_0x1c6b60:0x299,_0xccc3bf:0x2a5,_0x4b903b:0x26c,_0x5e9d49:0x208,_0x30c776:0x2af,_0x518812:0x332,_0x40009a:0x29b,_0x348a17:0x302,_0x4ec9f1:0x200,_0x161b6f:0x261,_0x7c5055:0x1f8,_0x20377a:0x29c,_0x246403:0x3b7,_0x182ae7:0x166,_0x2be61d:0x1df,_0x420cc3:0x1f0,_0x42c7c9:0x43a,_0xca30c6:0x398,_0x22a944:0x3ed,_0x1a65a8:0x210,_0x3680ba:0x2ba,_0x5383d6:0x17e,_0x1777c8:0x16d,_0x8d6e8c:0x12f,_0x924a0f:0x243,_0x19dc23:0x1ef,_0x330d7f:0x1c1,_0x3b82fc:0x232,_0xb60d08:0x364,_0x2b0e5c:0x314,_0x13daf1:0x147,_0x4d2523:0x10b,_0x4fef16:0xc6,_0x483dc6:0x104,_0x414309:0x266,_0x2b9e6d:0x138,_0x4a661d:0x24c,_0x1cd28f:0x334,_0x2059eb:0x2e6,_0x2a5bc8:0x35e,_0x175bda:0x325,_0x58e894:0x323,_0x145482:0x241,_0x55ef58:0x1a2,_0x5685ed:0x168,_0x1205a3:0x16c,_0x4c81ee:0x13f,_0x48f6b0:0x217,_0x2facf7:0x214,_0x2e17ce:0x325,_0x50ffec:0x3da,_0x357a94:0x241,_0x3d1cbe:0x200,_0x4cf0e6:0x182,_0x540a1d:0x1f8,_0x95357b:0x18e,_0x582466:0x28b,_0x2e85bc:0x363,_0x7be013:0x21f,_0x57084a:0x3e8,_0x5bf88b:0x15f,_0x12be20:0x2a8,_0x165d06:0x26f,_0x5301a6:0x1ee,_0x4c3fc8:0x266,_0x4c15be:0x350,_0x572cb6:0x30b,_0x40bc3d:0x39f,_0x4573ea:0x5e,_0x5b84b4:0x112,_0x657a1c:0x360,_0x194e79:0x325,_0x6565dc:0x317,_0x3f947d:0x179,_0x3b6fb9:0x177,_0x17f97f:0x31c,_0x55bfa5:0x30e,_0x1fb975:0x319,_0x1eafbd:0x3f9,_0x318074:0x325,_0x22d845:0xe0,_0x384fae:0x1e2,_0x42c441:0x115,_0x3d3ef4:0x128,_0x485163:0xfc,_0x56b101:0x2bc,_0x1bb9af:0x299,_0x31b0a1:0x27f,_0x101c29:0x3d2,_0x4e55d6:0x23a,_0x3ac923:0x336,_0x4d5be0:0x290,_0x1d7f8f:0x356,_0x4a9dc0:0x319,_0x63a093:0x287,_0x398390:0x24b,_0x34f3eb:0x2d9,_0x1133aa:0x26e,_0x1c55c9:0x1c5,_0x2069bd:0x2ce,_0x171c6a:0x24c,_0x1d172a:0x12a,_0x52fca3:0x15f,_0xb3e478:0x133,_0x5700f0:0x180,_0x194ac6:0x214,_0x209a0c:0x6e,_0x4e8918:0x123,_0x523843:0x6f,_0x83217b:0x294,_0x499d59:0x2aa,_0x4e388c:0x29d,_0x394f02:0x2d5,_0x41a2ad:0x1f9,_0x489b8a:0x1be,_0x220877:0x66,_0x77c390:0x138,_0x75de9e:0x271,_0x31ee05:0xf5};function _0xdc73fe(_0x37fa54,_0x5988a1,_0x3f0de3,_0x48205f){return _0xc7d8a6(_0x37fa54-0x1b1,_0x48205f,_0x3f0de3-0xe1,_0x3f0de3-0x37e);}switch(_0x147ac3){case _0xdc73fe(0x225,0x292,0x2d4,0x27f):{const _0x99bf84=typeof _0x59c8de[_0xdc73fe(0x2cf,0x265,0x325,_0x42d1ca._0x35fd09)]==='number'?_0x59c8de[_0xdc73fe(_0x42d1ca._0x24cc0e,0x3b0,0x325,0x2c7)]:0x0,_0x3a5b69=typeof _0x59c8de['delta']===_0x558f7b(_0x42d1ca._0x70b464,0x198,_0x42d1ca._0xb7b606,0xcc)?_0x59c8de[_0x558f7b(0x9a,0xfd,0x147,_0x42d1ca._0x3a8ee3)]:'';if(_0x3a5b69[_0xdc73fe(0x36d,_0x42d1ca._0x19f2f7,_0x42d1ca._0x175f7c,_0x42d1ca._0x23f54f)]>0x0){const _0x572c86=this['responseTextParts'][_0x558f7b(0x292,_0x42d1ca._0x1b1b02,_0x42d1ca._0x4fafe1,_0x42d1ca._0x436588)](_0x99bf84)??[];return _0x572c86[_0xdc73fe(0x26f,0x168,0x1b1,0x13d)](_0x3a5b69),this[_0x558f7b(_0x42d1ca._0x1cfeb7,_0x42d1ca._0x33aa62,_0x42d1ca._0x317923,_0x42d1ca._0x51e352)][_0x558f7b(_0x42d1ca._0x14d0f4,_0x42d1ca._0x362db6,0x2bf,0x377)](_0x99bf84,_0x572c86),[{'type':_0x558f7b(_0x42d1ca._0x531b46,0x2d2,0x275,_0x42d1ca._0x2837b6),'index':_0x99bf84,'text':_0x3a5b69}];}break;}case _0xdc73fe(0x1d4,0x23a,_0x42d1ca._0x476d69,0x201):{const _0x3adf22=typeof _0x59c8de[_0x558f7b(_0x42d1ca._0x270d91,_0x42d1ca._0x43dae9,_0x42d1ca._0x2b3d91,_0x42d1ca._0x239c27)]===_0xdc73fe(_0x42d1ca._0x3ed9ca,0x227,_0x42d1ca._0x1e3ec0,_0x42d1ca._0x5bf958)?_0x59c8de['output_index']:void 0x0,_0x39ce83=_0x59c8de['item'];if(_0x39ce83?.[_0x558f7b(0x1bb,_0x42d1ca._0x98914a,_0x42d1ca._0x10d56a,_0x42d1ca._0x277ac5)]===_0x558f7b(_0x42d1ca._0x556682,0x2e4,_0x42d1ca._0x19cbd1,_0x42d1ca._0x2ce103)&&_0x39ce83[_0xdc73fe(_0x42d1ca._0xc1f407,0x208,_0x42d1ca._0x4e0bed,0x1e2)]&&_0x39ce83[_0x558f7b(0x17c,0x100,_0x42d1ca._0x56bb71,0x219)])return this[_0xdc73fe(_0x42d1ca._0x61107,0x1f4,0x210,_0x42d1ca._0x17b715)][_0xdc73fe(_0x42d1ca._0x16f109,_0x42d1ca._0x15a508,0x348,0x401)](_0x39ce83[_0xdc73fe(0x32a,0x25b,_0x42d1ca._0x4e0bed,0x1fa)],{'id':_0x39ce83['call_id'],'type':'function','function':{'name':_0x39ce83[_0xdc73fe(0x1ba,_0x42d1ca._0x669b29,_0x42d1ca._0x121c4b,_0x42d1ca._0x99409e)],'arguments':''}}),_0x3adf22!==void 0x0&&(this['outputIndexToCallId']['set'](_0x3adf22,_0x39ce83['call_id']),this[_0x558f7b(0x12b,0x1a6,_0x42d1ca._0x2a6ba7,_0x42d1ca._0x196b7a)][_0xdc73fe(0x268,0x383,_0x42d1ca._0x443430,0x2cf)](_0x39ce83['call_id'],_0x3adf22)),[{'type':_0x558f7b(_0x42d1ca._0x18253e,0x19a,0x18b,_0x42d1ca._0x58d95b),'id':_0x39ce83['call_id'],'index':_0x3adf22??0x0,'name':_0x39ce83[_0x558f7b(_0x42d1ca._0x294487,_0x42d1ca._0x5ada75,0x155,_0x42d1ca._0x58d95b)]}];if(_0x39ce83?.[_0x558f7b(0x190,_0x42d1ca._0x523e67,0x1ec,_0x42d1ca._0x3ea576)]===_0x558f7b(_0x42d1ca._0x5de131,0x2b4,0x2cb,_0x42d1ca._0x2b1465)&&_0x39ce83['id']){const _0x37855b=this[_0x558f7b(0x27a,0x24f,_0x42d1ca._0x106a9d,_0x42d1ca._0x1c988d)](_0x39ce83['id'],_0x3adf22);_0x3adf22!==void 0x0&&this[_0x558f7b(_0x42d1ca._0x52edf2,0x19f,0x16c,_0x42d1ca._0x2c266b)][_0x558f7b(0x2df,0x2a4,_0x42d1ca._0x510ead,0x23e)](_0x3adf22,_0x37855b['id']);}break;}case _0x558f7b(_0x42d1ca._0x3029b0,0x27b,0x19e,0x1eb):{const _0x5c51a3=typeof _0x59c8de[_0xdc73fe(0x233,0x347,0x2be,0x356)]===_0xdc73fe(_0x42d1ca._0x4e2862,_0x42d1ca._0x5cf30e,0x1b6,_0x42d1ca._0x18c78d)?_0x59c8de[_0xdc73fe(_0x42d1ca._0xc66cd9,_0x42d1ca._0x2db7ce,_0x42d1ca._0x4e0bed,_0x42d1ca._0xd8b012)]:typeof _0x59c8de['output_index']===_0x558f7b(0x1d7,_0x42d1ca._0x1c9f9e,_0x42d1ca._0x4120a0,_0x42d1ca._0xc82891)?this[_0x558f7b(_0x42d1ca._0x46168e,_0x42d1ca._0xf870eb,0x1ce,_0x42d1ca._0x11730d)][_0xdc73fe(0x2b6,0x242,0x2a5,_0x42d1ca._0x2849ed)](_0x59c8de[_0xdc73fe(0x2b9,_0x42d1ca._0x5f1381,_0x42d1ca._0x579a17,_0x42d1ca._0xbe477d)]):void 0x0,_0x548710=typeof _0x59c8de[_0x558f7b(_0x42d1ca._0x3b56df,0x1f6,_0x42d1ca._0x7bd42,0x186)]==='string'?_0x59c8de[_0xdc73fe(_0x42d1ca._0x35d7e2,0x278,0x1d0,0x138)]:'',_0x5ef15e=_0x5c51a3?this['toolCalls'][_0xdc73fe(0x377,0x35c,0x2a5,_0x42d1ca._0x417891)](_0x5c51a3):void 0x0;if(_0x5ef15e&&_0x548710[_0x558f7b(_0x42d1ca._0x4cfae8,0x35a,0x2cd,0x2c6)]>0x0)return _0x5ef15e[_0x558f7b(_0x42d1ca._0x831c67,0x21c,0x175,_0x42d1ca._0x22664e)][_0x558f7b(0x225,_0x42d1ca._0x5ddc16,_0x42d1ca._0x3d54d7,0x2c9)]+=_0x548710,[{'type':'tool_use_delta','id':_0x5ef15e['id'],'index':this[_0xdc73fe(_0x42d1ca._0x262671,_0x42d1ca._0x51dcb0,_0x42d1ca._0x1eb6b6,0x237)][_0xdc73fe(_0x42d1ca._0xe261cf,0x355,_0x42d1ca._0x75a79c,0x249)](_0x5ef15e['id'])??(typeof _0x59c8de[_0xdc73fe(0x2e9,_0x42d1ca._0x6faea3,0x325,0x361)]==='number'?_0x59c8de[_0xdc73fe(0x24b,0x2ba,_0x42d1ca._0x579a17,_0x42d1ca._0x3f89f4)]:0x0),'inputDelta':_0x548710}];break;}case'response.function_call_arguments.done':{const _0x112e16=typeof _0x59c8de[_0xdc73fe(0x1e4,0x21e,0x2be,_0x42d1ca._0x1d2a51)]===_0xdc73fe(0x174,0x133,_0x42d1ca._0x3f5ee8,_0x42d1ca._0x2849ed)?_0x59c8de[_0x558f7b(_0x42d1ca._0x2ae680,_0x42d1ca._0x55011d,_0x42d1ca._0x4a8d1a,_0x42d1ca._0xbd0a55)]:typeof _0x59c8de[_0x558f7b(0x27f,_0x42d1ca._0x357872,_0x42d1ca._0x5e019b,_0x42d1ca._0x5941d2)]===_0xdc73fe(0x1d6,0x185,_0x42d1ca._0x3ec9d9,_0x42d1ca._0x4a873b)?this[_0x558f7b(0x264,0xf7,0x1ce,_0x42d1ca._0x5a404c)][_0xdc73fe(0x355,_0x42d1ca._0x19f658,_0x42d1ca._0x243716,0x25e)](_0x59c8de[_0xdc73fe(_0x42d1ca._0xc6943c,_0x42d1ca._0x3adbc3,0x325,0x2d7)]):void 0x0,_0x290627=_0x112e16?this[_0x558f7b(0x169,0x1c9,_0x42d1ca._0x4c4e68,_0x42d1ca._0x49563f)]['get'](_0x112e16):void 0x0;_0x290627&&typeof _0x59c8de[_0xdc73fe(0x30a,_0x42d1ca._0x52ca59,_0x42d1ca._0x275d54,_0x42d1ca._0x35c1d7)]===_0x558f7b(0x6f,0x10a,_0x42d1ca._0xb7b606,0x5e)&&(_0x290627[_0xdc73fe(_0x42d1ca._0x3f6d8c,0x2a2,_0x42d1ca._0x4585f7,0x15c)][_0xdc73fe(0x3aa,_0x42d1ca._0x5bff4b,_0x42d1ca._0x39cba2,_0x42d1ca._0x32db42)]=_0x59c8de['arguments']);break;}case _0x558f7b(_0x42d1ca._0x2b8629,_0x42d1ca._0x254ed4,0x1ad,_0x42d1ca._0xeff962):{const _0xa0360b=typeof _0x59c8de['output_index']===_0x558f7b(_0x42d1ca._0x5d5535,0x242,_0x42d1ca._0x4120a0,_0x42d1ca._0x270d91)?_0x59c8de[_0x558f7b(0x33b,_0x42d1ca._0x2502d8,_0x42d1ca._0x2b3d91,0x258)]:void 0x0,_0x46ff7a=_0x59c8de[_0x558f7b(_0x42d1ca._0x4812db,0x258,_0x42d1ca._0x48ff16,0x22b)];if(_0x46ff7a?.[_0xdc73fe(_0x42d1ca._0x44eca5,_0x42d1ca._0xe6b2fb,0x275,0x325)]==='function_call'){const _0x295f08=_0x46ff7a[_0x558f7b(_0x42d1ca._0x17b715,0x22f,0x235,0x202)]??(_0xa0360b!==void 0x0?this[_0xdc73fe(_0x42d1ca._0x3745bf,0x297,_0x42d1ca._0x15fcdf,0x1ca)][_0xdc73fe(0x243,0x312,_0x42d1ca._0x5eed5e,0x30e)](_0xa0360b):void 0x0),_0x220b2e=_0x295f08?this[_0xdc73fe(0x2b4,0x186,0x210,0x228)][_0xdc73fe(0x356,0x310,0x2a5,0x31e)](_0x295f08):void 0x0;_0x220b2e&&typeof _0x46ff7a[_0x558f7b(0x1eb,0x30c,_0x42d1ca._0x215b5,0x32f)]===_0xdc73fe(0x191,0x108,_0x42d1ca._0xf56a6d,0x169)&&(_0x220b2e[_0x558f7b(_0x42d1ca._0x3679fa,_0x42d1ca._0x35b3ac,_0x42d1ca._0x110143,_0x42d1ca._0x296fa2)][_0x558f7b(_0x42d1ca._0x236d9e,0x328,_0x42d1ca._0x27ad8b,0x347)]=_0x46ff7a['arguments']);break;}if(_0x46ff7a?.[_0x558f7b(0x1b4,_0x42d1ca._0x5552be,_0x42d1ca._0x28b391,0x217)]===_0x558f7b(0x274,_0x42d1ca._0x382fd9,_0x42d1ca._0xf4fed9,_0x42d1ca._0x4b7327)&&_0x46ff7a['id']){const _0x4aac89=this[_0xdc73fe(_0x42d1ca._0x36ad4a,0x3db,0x345,_0x42d1ca._0x49b6e0)](_0x46ff7a['id'],_0xa0360b);typeof _0x46ff7a[_0xdc73fe(0x3c3,_0x42d1ca._0x1c6393,0x340,_0x42d1ca._0x3b675f)]===_0xdc73fe(0x17e,0x226,0x1b6,0xff)&&(_0x4aac89[_0xdc73fe(_0x42d1ca._0x428e5c,_0x42d1ca._0x14b03c,_0x42d1ca._0x4973f2,_0x42d1ca._0x84f1d1)]=_0x46ff7a[_0x558f7b(_0x42d1ca._0x47cb56,0x343,0x2b7,_0x42d1ca._0x31afaa)]);if(Array[_0x558f7b(_0x42d1ca._0x81ff34,0x11e,0x14f,0xb9)](_0x46ff7a['summary']))for(let _0xbe32b2=0x0;_0xbe32b2<_0x46ff7a['summary']['length'];_0xbe32b2+=0x1){const _0x143535=_0x46ff7a[_0x558f7b(0x1d2,_0x42d1ca._0x51beeb,0x257,_0x42d1ca._0xd7f0c7)][_0xbe32b2];_0x143535[_0xdc73fe(_0x42d1ca._0x2f6bc9,_0x42d1ca._0x91c927,_0x42d1ca._0x3f9b1f,0x313)]===_0x558f7b(_0x42d1ca._0x457afc,0x24a,0x1ba,0x176)&&typeof _0x143535[_0xdc73fe(_0x42d1ca._0x172ff7,0x1e3,_0x42d1ca._0x28a35e,_0x42d1ca._0x51a538)]==='string'&&_0x4aac89[_0xdc73fe(0x33c,0x323,0x313,0x339)][_0xdc73fe(0x419,_0x42d1ca._0x2ce370,0x348,0x2fb)](_0xbe32b2,_0x143535[_0x558f7b(0x1a8,_0x42d1ca._0x13d206,0x189,0xd5)]);}typeof _0x46ff7a[_0x558f7b(0x21c,_0x42d1ca._0x539103,_0x42d1ca._0x34856f,_0x42d1ca._0x96bd5c)]===_0xdc73fe(0xd0,0x1af,_0x42d1ca._0x410521,0xf9)&&_0x4aac89[_0x558f7b(_0x42d1ca._0x5cf30e,0x23e,_0x42d1ca._0x144d5d,0x110)][_0xdc73fe(0x425,0x349,0x348,0x28f)](0x0,_0x46ff7a['text']);}break;}case'response.reasoning_summary_text.delta':{const _0x3e1f53=typeof _0x59c8de[_0xdc73fe(_0x42d1ca._0x3ea576,0x104,_0x42d1ca._0x20f146,0x268)]===_0xdc73fe(_0x42d1ca._0x569b60,0x1e6,0x1b6,0x276)?_0x59c8de[_0xdc73fe(0x291,_0x42d1ca._0x191572,0x1d0,0x188)]:'',_0xc23647=typeof _0x59c8de[_0x558f7b(0x379,0x31d,_0x42d1ca._0x51a538,0x37d)]===_0xdc73fe(_0x42d1ca._0x2eed1f,0x192,0x1b6,0x125)?_0x59c8de[_0xdc73fe(0x264,_0x42d1ca._0x3b1591,_0x42d1ca._0x22ef05,0x36a)]:typeof _0x59c8de['output_index']===_0x558f7b(0x198,0xc4,_0x42d1ca._0x4120a0,_0x42d1ca._0x46e468)?this['outputIndexToReasoningId'][_0xdc73fe(0x229,0x2fc,0x2a5,0x314)](_0x59c8de[_0xdc73fe(0x2ea,_0x42d1ca._0x41a6f1,_0x42d1ca._0x101701,0x38b)]):void 0x0,_0x3d4c10=typeof _0x59c8de[_0xdc73fe(_0x42d1ca._0x2402b1,0x2e0,0x325,0x349)]==='number'?_0x59c8de[_0xdc73fe(_0x42d1ca._0x3dd9f7,0x3cd,0x325,_0x42d1ca._0x186f1b)]:0x0,_0x55580a=typeof _0x59c8de[_0xdc73fe(_0x42d1ca._0x221e7e,_0x42d1ca._0x32e464,0x360,_0x42d1ca._0x51143c)]===_0xdc73fe(_0x42d1ca._0x3b56df,_0x42d1ca._0x5bfa2f,0x200,_0x42d1ca._0x39f6df)?_0x59c8de[_0xdc73fe(0x2ce,_0x42d1ca._0xafdf6,_0x42d1ca._0x2e00b1,_0x42d1ca._0x395477)]:0x0;if(_0xc23647&&_0x3e1f53[_0xdc73fe(_0x42d1ca._0x50c488,0x2e6,0x356,_0x42d1ca._0x2864f7)]>0x0){const _0x31cf3c=this['getOrCreateReasoningItem'](_0xc23647,_0x3d4c10);_0x31cf3c[_0x558f7b(_0x42d1ca._0x4b6efa,_0x42d1ca._0x28900b,_0x42d1ca._0x13e025,_0x42d1ca._0x2b5e42)]['set'](_0x55580a,''+(_0x31cf3c[_0x558f7b(0x2cf,_0x42d1ca._0x28f23f,_0x42d1ca._0x13e025,_0x42d1ca._0x1c6b60)][_0xdc73fe(0x1ef,0x1fa,_0x42d1ca._0xccc3bf,0x298)](_0x55580a)??'')+_0x3e1f53);if(isUserVisibleReasoning(this[_0xdc73fe(_0x42d1ca._0x4b903b,0x13d,_0x42d1ca._0x5e9d49,0x1f2)]))return[{'type':_0xdc73fe(0x236,_0x42d1ca._0x30c776,_0x42d1ca._0x106a9d,_0x42d1ca._0x518812),'delta':_0x3e1f53,'itemId':_0xc23647,'outputIndex':_0x3d4c10,'summaryIndex':_0x55580a}];}break;}case _0x558f7b(0x309,0x377,0x2ac,0x267):{const _0x27b263=typeof _0x59c8de[_0xdc73fe(0x318,0x409,0x334,0x418)]==='string'?_0x59c8de[_0x558f7b(0x36f,_0x42d1ca._0x33aa62,_0x42d1ca._0x51a538,_0x42d1ca._0x40009a)]:typeof _0x59c8de[_0xdc73fe(_0x42d1ca._0x348a17,0x35e,_0x42d1ca._0x101701,0x34b)]===_0xdc73fe(0x181,0x2b3,_0x42d1ca._0x4ec9f1,_0x42d1ca._0x161b6f)?this['outputIndexToReasoningId'][_0xdc73fe(0x301,_0x42d1ca._0x2b5e42,0x2a5,_0x42d1ca._0x7c5055)](_0x59c8de[_0x558f7b(0x20d,0x246,_0x42d1ca._0x20377a,0x1fe)]):void 0x0,_0x181a52=typeof _0x59c8de[_0xdc73fe(0x3eb,_0x42d1ca._0x246403,0x325,0x39e)]===_0xdc73fe(_0x42d1ca._0x182ae7,0x15e,0x200,_0x42d1ca._0x2be61d)?_0x59c8de[_0x558f7b(_0x42d1ca._0x420cc3,_0x42d1ca._0x3b675f,0x29c,0x2fd)]:0x0,_0x29f8bf=typeof _0x59c8de[_0xdc73fe(_0x42d1ca._0x42c7c9,_0x42d1ca._0xca30c6,0x360,_0x42d1ca._0x22a944)]===_0xdc73fe(_0x42d1ca._0x1a65a8,0x273,0x200,_0x42d1ca._0xf4fed9)?_0x59c8de[_0x558f7b(0x359,0x33d,_0x42d1ca._0x51143c,_0x42d1ca._0x3680ba)]:0x0,_0x4dbbfa=typeof _0x59c8de[_0x558f7b(_0x42d1ca._0x5383d6,0x152,0x189,0x24b)]===_0x558f7b(_0x42d1ca._0x1777c8,_0x42d1ca._0x3679fa,0x12d,_0x42d1ca._0x8d6e8c)?_0x59c8de[_0x558f7b(_0x42d1ca._0x924a0f,_0x42d1ca._0x19dc23,0x189,_0x42d1ca._0x330d7f)]:'';_0x27b263&&this[_0x558f7b(_0x42d1ca._0x3b82fc,0x308,0x2bc,0x2a7)](_0x27b263,_0x181a52)['summaryByIndex'][_0xdc73fe(_0x42d1ca._0xb60d08,_0x42d1ca._0x2b0e5c,_0x42d1ca._0x443430,0x3e1)](_0x29f8bf,_0x4dbbfa);break;}case _0xdc73fe(_0x42d1ca._0x13daf1,0x2d3,0x1ed,_0x42d1ca._0x4d2523):{const _0x4aa66c=typeof _0x59c8de[_0x558f7b(_0x42d1ca._0x4fef16,0x129,0x147,_0x42d1ca._0x483dc6)]===_0xdc73fe(0x26a,_0x42d1ca._0x414309,0x1b6,_0x42d1ca._0x2b9e6d)?_0x59c8de[_0xdc73fe(0x18e,0x23e,0x1d0,_0x42d1ca._0x4a661d)]:'',_0x201292=typeof _0x59c8de[_0xdc73fe(0x2f1,0x39c,_0x42d1ca._0x1cd28f,_0x42d1ca._0x2059eb)]==='string'?_0x59c8de['item_id']:typeof _0x59c8de[_0xdc73fe(_0x42d1ca._0x2a5bc8,0x315,_0x42d1ca._0x175bda,_0x42d1ca._0x58e894)]===_0xdc73fe(_0x42d1ca._0x145482,_0x42d1ca._0x46168e,_0x42d1ca._0x1e3ec0,0x13c)?this[_0x558f7b(_0x42d1ca._0x55ef58,_0x42d1ca._0x5685ed,_0x42d1ca._0x1205a3,_0x42d1ca._0x4c81ee)][_0xdc73fe(0x1d3,0x2e9,_0x42d1ca._0x5eed5e,_0x42d1ca._0x48f6b0)](_0x59c8de['output_index']):void 0x0,_0x4b7c02=typeof _0x59c8de[_0x558f7b(0x307,0x21f,_0x42d1ca._0x20377a,_0x42d1ca._0x2facf7)]==='number'?_0x59c8de[_0xdc73fe(_0x42d1ca._0xafdf6,0x298,_0x42d1ca._0x2e17ce,_0x42d1ca._0x50ffec)]:0x0,_0x306d79=typeof _0x59c8de[_0xdc73fe(0x2de,0x221,0x239,_0x42d1ca._0x46168e)]===_0xdc73fe(_0x42d1ca._0x357a94,0x1f6,_0x42d1ca._0x3d1cbe,0x28c)?_0x59c8de[_0x558f7b(_0x42d1ca._0x4cf0e6,_0x42d1ca._0x540a1d,0x1b0,_0x42d1ca._0x95357b)]:0x0;if(_0x201292&&_0x4aa66c['length']>0x0){const _0xdf58df=this[_0xdc73fe(_0x42d1ca._0x582466,0x31b,_0x42d1ca._0x239c27,_0x42d1ca._0x2e85bc)](_0x201292,_0x4b7c02);_0xdf58df[_0x558f7b(0x1de,_0x42d1ca._0x7be013,0x1f6,0x2a8)][_0xdc73fe(0x391,0x2c9,0x348,_0x42d1ca._0x57084a)](_0x306d79,''+(_0xdf58df[_0x558f7b(_0x42d1ca._0x5bf88b,_0x42d1ca._0x12be20,0x1f6,_0x42d1ca._0x165d06)][_0xdc73fe(0x316,0x277,0x2a5,0x301)](_0x306d79)??'')+_0x4aa66c);if(isUserVisibleReasoning(this[_0xdc73fe(0x2e4,_0x42d1ca._0x5301a6,0x208,0x1a7)]))return[{'type':'openai_reasoning_delta','contentIndex':_0x306d79,'delta':_0x4aa66c,'itemId':_0x201292,'outputIndex':_0x4b7c02}];}break;}case _0xdc73fe(_0x42d1ca._0x4c3fc8,_0x42d1ca._0x4c15be,0x2d7,_0x42d1ca._0xd8b012):{const _0x16dc30=typeof _0x59c8de[_0xdc73fe(0x3a0,_0x42d1ca._0x572cb6,0x334,_0x42d1ca._0x40bc3d)]===_0x558f7b(_0x42d1ca._0x4573ea,0x7e,0x12d,_0x42d1ca._0x5b84b4)?_0x59c8de[_0x558f7b(_0x42d1ca._0x5eed5e,0x333,0x2ab,_0x42d1ca._0x657a1c)]:typeof _0x59c8de[_0xdc73fe(0x2a5,0x244,_0x42d1ca._0x194e79,_0x42d1ca._0x6565dc)]===_0x558f7b(_0x42d1ca._0x3f947d,0x1a4,_0x42d1ca._0x3b6fb9,0x194)?this[_0x558f7b(0x131,0x185,0x16c,_0x42d1ca._0x13daf1)]['get'](_0x59c8de['output_index']):void 0x0,_0x1dcff3=typeof _0x59c8de[_0xdc73fe(_0x42d1ca._0x17f97f,_0x42d1ca._0x55bfa5,0x325,_0x42d1ca._0x1fb975)]==='number'?_0x59c8de[_0xdc73fe(0x315,_0x42d1ca._0x1eafbd,_0x42d1ca._0x318074,0x292)]:0x0,_0x351149=typeof _0x59c8de[_0x558f7b(_0x42d1ca._0x22d845,_0x42d1ca._0x384fae,0x1b0,_0x42d1ca._0x42c441)]===_0xdc73fe(_0x42d1ca._0x3d3ef4,0x2e4,0x200,0x1df)?_0x59c8de[_0x558f7b(0x239,0x152,0x1b0,_0x42d1ca._0x485163)]:0x0,_0x308d92=typeof _0x59c8de['text']==='string'?_0x59c8de['text']:'';_0x16dc30&&this[_0x558f7b(0x370,_0x42d1ca._0xc1f407,_0x42d1ca._0x56b101,_0x42d1ca._0x1bb9af)](_0x16dc30,_0x1dcff3)[_0xdc73fe(0x306,_0x42d1ca._0xbe477d,_0x42d1ca._0x31b0a1,0x307)][_0xdc73fe(0x2b4,_0x42d1ca._0x101c29,0x348,0x2fb)](_0x351149,_0x308d92);break;}case _0xdc73fe(_0x42d1ca._0x4e55d6,_0x42d1ca._0x3ac923,_0x42d1ca._0x4d5be0,_0x42d1ca._0x1d7f8f):{this['finalResponse']=_0x59c8de[_0xdc73fe(0x367,_0x42d1ca._0x4a9dc0,_0x42d1ca._0x63a093,0x313)];break;}case _0xdc73fe(_0x42d1ca._0x398390,_0x42d1ca._0x34f3eb,0x2ec,_0x42d1ca._0x1133aa):{const _0x365a21=_0x59c8de[_0x558f7b(0x127,_0x42d1ca._0x2a6ba7,0x1fe,_0x42d1ca._0x1c55c9)];throw new ProviderStreamEventError(_0x365a21?.[_0xdc73fe(0x2e2,0x2fc,0x29d,0x2da)]?.[_0x558f7b(_0x42d1ca._0x2069bd,0x2d1,_0x42d1ca._0x171c6a,0x30f)]??_0x558f7b(0x155,_0x42d1ca._0x1d172a,_0x42d1ca._0x52fca3,0x191),{'code':_0x365a21?.[_0x558f7b(_0x42d1ca._0xb3e478,_0x42d1ca._0x5700f0,_0x42d1ca._0x194ac6,0x223)]?.[_0x558f7b(_0x42d1ca._0x209a0c,0x1b2,_0x42d1ca._0x4e8918,_0x42d1ca._0x523843)],'retryable':!![]});}case _0xdc73fe(_0x42d1ca._0x83217b,_0x42d1ca._0x499d59,_0x42d1ca._0x4e388c,_0x42d1ca._0x510ead):{const _0x182e37=_0x59c8de['error'];throw new ProviderStreamEventError(_0x182e37?.[_0xdc73fe(0x2cd,0x209,_0x42d1ca._0x394f02,_0x42d1ca._0x41a2ad)]??_0x558f7b(0xb8,_0x42d1ca._0x489b8a,0x15f,0x230),{'code':_0x182e37?.[_0x558f7b(_0x42d1ca._0x220877,0x6d,_0x42d1ca._0x4e8918,0x1d6)],'retryable':!![],'status':typeof _0x59c8de[_0x558f7b(_0x42d1ca._0x77c390,_0x42d1ca._0x277ac5,_0x42d1ca._0x1a65a8,_0x42d1ca._0x75de9e)]===_0x558f7b(0x9d,0x229,_0x42d1ca._0x3b6fb9,_0x42d1ca._0x31ee05)?_0x59c8de['status']:void 0x0});}}function _0x558f7b(_0x4e5f1e,_0x3647bd,_0x4beab9,_0x3e7e3f){return _0x74a064(_0x4e5f1e-0x10c,_0x3647bd-0xc5,_0x4beab9-0x1a3,_0x3647bd);}return[];}['buildPartialOutput'](){const _0x4ea64e={_0x2d98a8:0x12c,_0x504c96:0x13f,_0x141a8e:0x59f,_0x3a0e92:0x568,_0x24313c:0x59b,_0xb00b5c:0x552,_0x4d70aa:0x445,_0x4531aa:0x553,_0x4a09dc:0x518,_0x4ecd09:0x5d9,_0x2f88dd:0x57d,_0xfbaa49:0x4bd,_0x4fb30c:0x1c8,_0x3cb1c3:0x1ca,_0x2802af:0x219,_0x535953:0x158,_0x243eb7:0xdd,_0x53f779:0x576,_0x4f3680:0x4f8,_0x49a28c:0x61c,_0x26b9a3:0x5ad,_0x4af47f:0x5ab,_0x172bb3:0x6,_0xc56583:0x562,_0x58bc01:0xe8,_0x641e20:0x104,_0x2268bf:0xc5,_0x26295b:0x94,_0x483fe3:0x567,_0x32a6fe:0x53c,_0x20e283:0x55c,_0x17956c:0xa7,_0x1d9456:0x59f,_0x6322c4:0x65b,_0x376809:0x594,_0x43c69d:0x57f,_0x18787f:0x4e6,_0x319211:0x5b8,_0x1236e3:0x41d,_0x23b7fb:0x125,_0x558009:0x4b2,_0x5112ab:0x46f,_0x50f3d6:0x3f6,_0x8f7f1e:0x44e,_0xf86151:0x3b4,_0x1ab9f5:0x72,_0x17c865:0x14f,_0x55f825:0x179,_0x2d8bd3:0x13,_0x27158c:0x26,_0xa780ff:0x423,_0x52d84a:0x376,_0x2114d7:0x592,_0x4faec2:0x4fc},_0x31c1fc={_0x3d7978:0x13f,_0x5ad639:0x41},_0x3eecc5={_0x44e69c:0xb2},_0x5118d8=[];for(const [_0x3b626d,_0x2aed8e]of this[_0x4f8b40(_0x4ea64e._0x2d98a8,_0x4ea64e._0x504c96,0x81,0x145)][_0x237b43(_0x4ea64e._0x141a8e,_0x4ea64e._0x3a0e92,0x5f6,0x5c2)]()){const _0x4405b8=_0x2aed8e['join']('');if(_0x4405b8[_0x237b43(_0x4ea64e._0x24313c,0x53a,_0x4ea64e._0xb00b5c,0x577)]===0x0)continue;_0x5118d8[_0x237b43(0x3f6,0x369,0x36d,_0x4ea64e._0x4d70aa)]({'index':_0x3b626d,'item':{'type':_0x237b43(0x51a,0x4e7,0x564,_0x4ea64e._0x4531aa),'role':'assistant','content':[{'type':'output_text','text':_0x4405b8}]}});}for(const _0x5553e6 of this[_0x237b43(_0x4ea64e._0x4a09dc,_0x4ea64e._0x4ecd09,_0x4ea64e._0x2f88dd,0x44c)]['values']()){_0x5118d8['push']({'index':_0x5553e6[_0x237b43(0x574,0x63e,0x59d,_0x4ea64e._0xfbaa49)]??_0x5118d8[_0x4f8b40(0x16b,_0x4ea64e._0x4fb30c,_0x4ea64e._0x3cb1c3,0x18d)],'item':{'type':_0x4f8b40(0x169,0x232,_0x4ea64e._0x2802af,0x175),'id':_0x5553e6['id'],..._0x5553e6[_0x4f8b40(_0x4ea64e._0x535953,0x1f3,0x159,_0x4ea64e._0x243eb7)]?{'encrypted_content':_0x5553e6[_0x237b43(0x588,_0x4ea64e._0x53f779,_0x4ea64e._0x4f3680,0x5e9)]}:{},..._0x5553e6[_0x237b43(0x558,0x4ca,0x500,0x626)][_0x237b43(0x567,_0x4ea64e._0x49a28c,_0x4ea64e._0x26b9a3,_0x4ea64e._0x4af47f)]>0x0?{'summary':Array[_0x4f8b40(0x9b,0x3c,0x17d,_0x4ea64e._0x172bb3)](_0x5553e6[_0x237b43(0x558,0x61d,_0x4ea64e._0xc56583,0x58a)][_0x4f8b40(0x16f,0x1a3,0x1e8,_0x4ea64e._0x58bc01)]())[_0x4f8b40(0xb6,0xdf,_0x4ea64e._0x641e20,_0x4ea64e._0x2268bf)]((_0x49ae07,_0x318607)=>_0x49ae07[0x0]-_0x318607[0x0])[_0x4f8b40(0x11f,0x15f,0x11f,0x6c)](([,_0x496fad])=>{return{'type':'summary_text','text':_0x496fad};})}:{},..._0x5553e6[_0x4f8b40(_0x4ea64e._0x26295b,-0x13,0x37,-0x5)][_0x237b43(_0x4ea64e._0x483fe3,0x4e4,_0x4ea64e._0x32a6fe,_0x4ea64e._0x20e283)]>0x0?{'text':Array['from'](_0x5553e6[_0x4f8b40(_0x4ea64e._0x26295b,_0x4ea64e._0x17956c,0xc,0x16e)][_0x237b43(_0x4ea64e._0x1d9456,_0x4ea64e._0x6322c4,_0x4ea64e._0x376809,_0x4ea64e._0x43c69d)]())[_0x237b43(_0x4ea64e._0x18787f,_0x4ea64e._0x319211,0x47c,_0x4ea64e._0x1236e3)]((_0x4dfa58,_0x988042)=>_0x4dfa58[0x0]-_0x988042[0x0])[_0x4f8b40(0x11f,0x148,0x86,_0x4ea64e._0x23b7fb)](([,_0x558355])=>_0x558355)['join']('')}:{}}});}function _0x237b43(_0x4fb456,_0x10bd76,_0x42c23b,_0x40386e){return _0xc7d8a6(_0x4fb456-_0x3eecc5._0x44e69c,_0x42c23b,_0x42c23b-0x1a5,_0x4fb456-0x5c3);}function _0x4f8b40(_0x1d11d4,_0x49e5e1,_0x58fe2b,_0x1483ed){return _0x74a064(_0x1d11d4-0x1be,_0x49e5e1-_0x31c1fc._0x3d7978,_0x1d11d4-_0x31c1fc._0x5ad639,_0x49e5e1);}for(const _0x5edf69 of this[_0x237b43(0x455,0x473,_0x4ea64e._0x558009,_0x4ea64e._0x5112ab)]['values']()){_0x5118d8[_0x237b43(_0x4ea64e._0x50f3d6,_0x4ea64e._0x8f7f1e,_0x4ea64e._0xf86151,0x463)]({'index':this[_0x4f8b40(_0x4ea64e._0x1ab9f5,-0x38,-0xc,0xe8)][_0x237b43(0x4ea,_0x4ea64e._0x4d70aa,0x55a,_0x4ea64e._0x4af47f)](_0x5edf69['id'])??_0x5118d8['length'],'item':{'type':_0x4f8b40(_0x4ea64e._0x17c865,0x14d,0x1e8,_0x4ea64e._0x55f825),'call_id':_0x5edf69['id'],'name':_0x5edf69[_0x4f8b40(_0x4ea64e._0x2d8bd3,-_0x4ea64e._0x27158c,-0xb4,-0x76)][_0x237b43(_0x4ea64e._0xa780ff,_0x4ea64e._0x52d84a,0x42c,0x457)],'arguments':_0x5edf69['function']['arguments']}});}return _0x5118d8[_0x237b43(_0x4ea64e._0x18787f,_0x4ea64e._0x2114d7,_0x4ea64e._0x4faec2,0x5b6)]((_0x227196,_0x610759)=>_0x227196[_0x237b43(0x3f3,0x3f1,0x3cc,0x44d)]-_0x610759[_0x237b43(0x3f3,0x46c,0x333,0x402)])['map'](_0x4d4a3e=>_0x4d4a3e[_0x237b43(0x486,0x3b4,0x51d,0x4e5)]);}[_0x74a064(0x1a9,0x186,0x119,0x86)](_0x210b66,_0x5892f7){const _0x114259={_0x1f49b3:0x204,_0x201c29:0x11e,_0x27b2f8:0x271,_0x5e9446:0x17c,_0x5bb73c:0x1ef,_0x2669b0:0xd,_0x3e52e1:0x2d8,_0x31b2ff:0x26e,_0x48465c:0x1c2,_0xa6b7f4:0xc8,_0x1da2ba:0xb5,_0x4217a7:0x126,_0xd788a1:0x208},_0x10b267={_0x50e19c:0x1a2,_0x283ed0:0x197},_0x18108f={_0x4d508b:0x1c1};function _0x2d29b4(_0xf4166,_0x29fcbe,_0xa14e11,_0x146ffa){return _0x74a064(_0xf4166-_0x18108f._0x4d508b,_0x29fcbe-0x183,_0x29fcbe-0x1d,_0xa14e11);}const _0x2fd2a5=this['reasoningItems'][_0x22b348(_0x114259._0x1f49b3,_0x114259._0x201c29,0xf4,0x165)](_0x210b66);if(_0x2fd2a5)return _0x5892f7!==void 0x0&&(_0x2fd2a5[_0x22b348(0x296,_0x114259._0x27b2f8,_0x114259._0x5e9446,_0x114259._0x5bb73c)]=_0x5892f7,this[_0x2d29b4(-_0x114259._0x2669b0,-0x1a,0x19,-0x50)][_0x22b348(0x1e3,_0x114259._0x3e52e1,_0x114259._0x31b2ff,0x208)](_0x5892f7,_0x210b66)),_0x2fd2a5;const _0x1ff5fb={'id':_0x210b66,'outputIndex':_0x5892f7,'summaryByIndex':new Map(),'textByIndex':new Map()};this['reasoningItems'][_0x2d29b4(0x147,0x139,_0x114259._0x48465c,0x12a)](_0x210b66,_0x1ff5fb);_0x5892f7!==void 0x0&&this[_0x22b348(0x9e,_0x114259._0xa6b7f4,0x78,_0x114259._0x1da2ba)][_0x22b348(0x141,_0x114259._0x4217a7,0x290,_0x114259._0xd788a1)](_0x5892f7,_0x210b66);function _0x22b348(_0x43ca5f,_0x4dd35c,_0x17b547,_0x5a6cf9){return _0xc7d8a6(_0x43ca5f-_0x10b267._0x50e19c,_0x43ca5f,_0x17b547-_0x10b267._0x283ed0,_0x5a6cf9-0x23e);}return _0x1ff5fb;}};function createOpenAiResponsesStreamParser(_0x3f174d){return new OpenAiResponsesStreamParser(_0x3f174d);}function createOpenAiSurfaces(_0x5b3a60={}){const _0x205126={_0x48dbaa:0x1,_0xad3be8:0x10,_0xb3cbcb:0x6,_0xfc6115:0xc1,_0x2b6687:0x9e,_0x42b49f:0x43,_0x3d0ad1:0x9,_0x2b41bd:0x109,_0x52829f:0x136},_0x43338a={_0x43658b:0x5e5},_0x495b73={_0x376624:0x4a1,_0x653a43:0x4b7,_0x4edfb5:0x43a},_0x3ece2f={_0x25fc52:0x514,_0x40c749:0xd4},_0xe24c91={_0x26617c:0x263,_0x218dd4:0x107,_0x5b3d86:0x135},_0x38695b={_0x5bcbce:0xe3},_0x39e17c={_0x31e0b1:0x104,_0x27e0df:0x1d8};function _0x3b9cc8(_0xbcd120,_0x2576fa,_0xda8cee,_0x3f300e){return _0x74a064(_0xbcd120-_0x39e17c._0x31e0b1,_0x2576fa-_0x39e17c._0x27e0df,_0x2576fa-0x76,_0xda8cee);}const _0x2cfaf2=_0x5b3a60[_0x31f4d7(0x37,_0x205126._0x48dbaa,-0x45,_0x205126._0xad3be8)]??'/chat/completions';function _0x31f4d7(_0x3b2a84,_0x4767da,_0x2881b5,_0x1f542f){return _0xc7d8a6(_0x3b2a84-0x13b,_0x2881b5,_0x2881b5-0x14d,_0x3b2a84-_0x38695b._0x5bcbce);}const _0x43c662=_0x5b3a60[_0x31f4d7(-0xdf,-0x14a,-0x1a6,_0x205126._0xb3cbcb)]??_0x3b9cc8(-_0x205126._0xfc6115,0x25,-0x90,-_0x205126._0x2b6687);return[{'id':OPENAI_CHAT_COMPLETIONS_SURFACE,'transport':'http-json','createRequest'(_0x37f2dc){return{'accept':'application/json','body':createChatRequestBody(_0x37f2dc,![]),'path':_0x2cfaf2};},'parseResponse'(_0x1fb8d5){return parseChatCompletionResponse(_0x1fb8d5);}},{'id':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,'transport':'http-sse','createRequest'(_0x3d076f){function _0x2ac2f3(_0x6b674f,_0x2fe106,_0x121526,_0x243060){return _0x3b9cc8(_0x6b674f-0x7c,_0x2fe106-0xb2,_0x243060,_0x243060-0xac);}return{'accept':_0x2ac2f3(_0xe24c91._0x26617c,0x1b5,_0xe24c91._0x218dd4,_0xe24c91._0x5b3d86),'body':createChatRequestBody(_0x3d076f,!![]),'path':_0x2cfaf2};},'createStreamParser'(_0x418b5f){return new OpenAiChatCompletionsStreamParser(_0x418b5f);}},{'id':OPENAI_RESPONSES_SURFACE,'transport':'http-json','createRequest'(_0xeec351){function _0xb2678f(_0x980549,_0x5eca18,_0x57220e,_0x246ae1){return _0x31f4d7(_0x57220e-_0x3ece2f._0x25fc52,_0x5eca18-_0x3ece2f._0x40c749,_0x5eca18,_0x246ae1-0x1da);}return{'accept':_0xb2678f(_0x495b73._0x376624,0x456,_0x495b73._0x653a43,_0x495b73._0x4edfb5),'body':createResponsesRequestBody(_0xeec351,![]),'path':_0x43c662};},'parseResponse'(_0xda3b8d,_0x2d9209){return parseResponsesResponse(_0xda3b8d,_0x2d9209);}},{'id':OPENAI_RESPONSES_STREAM_SURFACE,'transport':_0x31f4d7(0x62,-_0x205126._0x42b49f,-0x13,-_0x205126._0x3d0ad1),'createRequest'(_0x1a4de7){const _0x3dec96={_0x57b5c0:0xf0,_0x5b1643:0x1f3};function _0x4770d7(_0x4525db,_0x110411,_0x3b1ef6,_0x8c1c7a){return _0x31f4d7(_0x4525db-0x4f2,_0x110411-_0x3dec96._0x57b5c0,_0x3b1ef6,_0x8c1c7a-_0x3dec96._0x5b1643);}return{'accept':_0x4770d7(0x510,_0x43338a._0x43658b,0x5c7,0x5f0),'body':createResponsesRequestBody(_0x1a4de7,!![]),'path':_0x43c662};},'createStreamParser'(_0x160659){return new OpenAiResponsesStreamParser(_0x160659);}},{'id':OPENAI_RESPONSES_WEBSOCKET_SURFACE,'transport':_0x31f4d7(-0xc2,-_0x205126._0x2b41bd,-0x186,-_0x205126._0x52829f),'createRequest'(_0x1a20e8){return{'initialEvent':createOpenAiResponsesWebSocketEvent(_0x1a20e8),'path':_0x43c662};},'createStreamParser'(_0x1808ca){return createOpenAiResponsesStreamParser(_0x1808ca);}}];}var OpenAiProviderAdapter=class{[_0x74a064(0x7,-0x8c,0x41,0xb2)];constructor(_0x49f279){const _0x24751a={_0x5cbcd1:0x1fd,_0x3486bc:0x137,_0x5ca884:0x240},_0x544b85={_0x4ac307:0x5f,_0x40f7c3:0x2ab};function _0x301bd9(_0x7fd49a,_0x38176c,_0x2573e0,_0x38a64d){return _0xc7d8a6(_0x7fd49a-0xfc,_0x2573e0,_0x2573e0-_0x544b85._0x4ac307,_0x38a64d-_0x544b85._0x40f7c3);}this[_0x301bd9(_0x24751a._0x5cbcd1,_0x24751a._0x3486bc,_0x24751a._0x5ca884,0x19a)]=_0x49f279;}[_0x74a064(0x137,-0x7f,0x5f,0xb3)](){return new Error('OpenAiModel\x20requires\x20an\x20apiKey\x20or\x20providerSessionResolver');}async[_0xc7d8a6(-0x18e,-0xbf,-0xb4,-0x113)](_0x305177,_0x2bc2c1){const _0x3fd5cf={_0x9aa586:0x5a7,_0xa37317:0x675,_0x7c88bb:0x604,_0x5edc1a:0x56a,_0x28c113:0x4da,_0xfcea12:0x6f,_0x25ec2d:0x68,_0x5d59b4:0xf,_0x257b1d:0x6,_0x10bee2:0x17c,_0x3c219d:0x7f,_0x5db7df:0x19,_0x5bc7da:0x42,_0x216664:0x501,_0x37612a:0x51b,_0xe049a8:0x12,_0x297a45:0xc7,_0x59dae9:0xa2,_0x20c34d:0x520,_0x1cbb34:0x584,_0x395a64:0x522,_0x3459ee:0x3,_0x26e08f:0xab,_0x3c751f:0x14,_0x2ed0c9:0x1e,_0x30dcc6:0x4d,_0x5eb95f:0x17e,_0x478cbe:0x8f,_0x2c5fe8:0xf8,_0x36cf43:0x1bc},_0x284c16={_0x5e0a04:0x94,_0x398182:0x12b,_0x495207:0x48b},_0x4ab4d2={_0x1bb143:0x150},_0x3bb7e9=new Headers();_0x3bb7e9[_0x77daed(0x4c9,_0x3fd5cf._0x9aa586,0x68a,_0x3fd5cf._0xa37317)]('accept',_0x2bc2c1['accept']);function _0x3819f1(_0x1eeb5b,_0x5083c3,_0x3f115e,_0x2ff64b){return _0x74a064(_0x1eeb5b-0xbf,_0x5083c3-_0x4ab4d2._0x1bb143,_0x1eeb5b- -0x24,_0x2ff64b);}_0x3bb7e9['set'](_0x77daed(_0x3fd5cf._0x7c88bb,_0x3fd5cf._0x5edc1a,_0x3fd5cf._0x28c113,0x595),_0x3819f1(_0x3fd5cf._0xfcea12,_0x3fd5cf._0x25ec2d,0x2d,_0x3fd5cf._0x5d59b4)+_0x305177['credential'][_0x3819f1(-0xa7,-_0x3fd5cf._0x257b1d,-0xa2,-_0x3fd5cf._0x10bee2)]);_0x2bc2c1[_0x3819f1(-0x3a,-_0x3fd5cf._0x3c219d,_0x3fd5cf._0x5db7df,-_0x3fd5cf._0x5bc7da)]!==![]&&_0x3bb7e9[_0x77daed(0x4fc,_0x3fd5cf._0x9aa586,0x656,0x4f6)](_0x77daed(0x48c,0x528,_0x3fd5cf._0x216664,_0x3fd5cf._0x37612a),_0x3819f1(-_0x3fd5cf._0xe049a8,0x38,-_0x3fd5cf._0x297a45,0xcb));function _0x77daed(_0x1c4ee1,_0x1006c2,_0xd47ead,_0x1c9a45){return _0x74a064(_0x1c4ee1-_0x284c16._0x5e0a04,_0x1006c2-_0x284c16._0x398182,_0x1006c2-_0x284c16._0x495207,_0x1c9a45);}const _0x5b24bd=await this[_0x3819f1(0x1d,-_0x3fd5cf._0x59dae9,0xfd,0x7b)]?.({'body':_0x305177[_0x77daed(0x4dc,_0x3fd5cf._0x20c34d,_0x3fd5cf._0x1cbb34,0x4d6)],'credential':_0x305177[_0x77daed(0x598,0x4f4,0x558,_0x3fd5cf._0x395a64)],'request':_0x305177[_0x3819f1(-0x48,-0xd9,-0x119,-0x109)],'session':_0x305177[_0x3819f1(-_0x3fd5cf._0x3459ee,-_0x3fd5cf._0x26e08f,0x2c,0x2)],'stream':_0x305177[_0x3819f1(0x1e,-_0x3fd5cf._0x3c751f,_0x3fd5cf._0x2ed0c9,_0x3fd5cf._0x30dcc6)]});for(const [_0x568b86,_0xfeadd7]of Object[_0x3819f1(0x10a,0xff,_0x3fd5cf._0x5eb95f,_0x3fd5cf._0x478cbe)](_0x5b24bd??{})){_0x3bb7e9[_0x3819f1(_0x3fd5cf._0x2c5fe8,_0x3fd5cf._0x36cf43,0x17a,0x124)](_0x568b86,_0xfeadd7);}return _0x3bb7e9;}['mapApiError'](_0x446265){return _0x446265;}[_0xc7d8a6(-0x1dd,-0x1a9,-0x2c,-0x104)](_0xfb1ce0,_0x3f7780){return resolveSessionBaseUrl(_0xfb1ce0,_0x3f7780);}[_0xc7d8a6(-0x1f2,-0x26c,-0x196,-0x1d3)](_0x37b7cf,_0x399338){return resolveApiCredential(_0x37b7cf,_0x399338);}async['toApiError'](_0x24d033){return await createOpenAiApiError(_0x24d033);}},OpenAiModel=class extends RoutedModel{[_0x74a064(0x1d,0x49,-0x4b,-0xaa)]=new Map();[_0x74a064(0xcc,0x11c,0xa6,-0x26)];[_0xc7d8a6(-0x106,-0x1ee,-0x15f,-0x1c2)];constructor(_0x4edb75={}){const _0x5b23b4={_0x27ba20:0x3b0,_0x19f07a:0x537,_0x3a544e:0x47a,_0x958f40:0x122,_0x55c5f8:0x89,_0x4344cd:0x116,_0x180dff:0x178,_0x54a5be:0x2e7,_0x2e8a53:0x302,_0x44521c:0x1bb,_0x29e909:0x197,_0x463e58:0x2da,_0x38b487:0x1b3,_0x3c13d0:0x10b,_0xf0d6e:0x23b,_0x190756:0x25e,_0x1aea14:0x501,_0x160a24:0x3fb,_0x26ab75:0x4e1,_0x395a34:0x48,_0xd90ea:0x184,_0x4f8c0d:0x24,_0x2f4694:0x1ab,_0x4a02c2:0x17d,_0x107a99:0x11d,_0x390be4:0x3f8,_0x1110ca:0x435,_0x278459:0x3a1,_0x16c22e:0x442,_0x12697a:0x1f6,_0x25232a:0xa0,_0x489127:0x146,_0xa43099:0x224,_0x42e46e:0xd7,_0x232dd5:0x183,_0x227036:0x2ae,_0x58432b:0x237},_0x105cd7={_0x4edd1c:0xb7,_0x2e0bcc:0x1ec};function _0x580677(_0x241769,_0x353a40,_0x535c6a,_0x3e42fb){return _0x74a064(_0x241769-0x1c2,_0x353a40-0x178,_0x3e42fb-0x424,_0x535c6a);}const _0x34bc5a=_0x4edb75[_0x580677(_0x5b23b4._0x27ba20,_0x5b23b4._0x19f07a,0x4c1,_0x5b23b4._0x3a544e)]??_0x3fb87a(-0x33,-0xaa,-_0x5b23b4._0x958f40,-0x17b),_0x2c4f80=_0x4edb75[_0x3fb87a(-_0x5b23b4._0x55c5f8,-_0x5b23b4._0x4344cd,-_0x5b23b4._0x180dff,-0xac)]??getDefaultMaxTokens();function _0x3fb87a(_0x52a5a8,_0x12798a,_0x210006,_0xc9285c){return _0x74a064(_0x52a5a8-_0x105cd7._0x4edd1c,_0x12798a-0x1c2,_0x12798a- -_0x105cd7._0x2e0bcc,_0x52a5a8);}const _0x54e701=_0x4edb75['chatCompletionsPath']??_0x3fb87a(-_0x5b23b4._0x54a5be,-0x249,-_0x5b23b4._0x2e8a53,-0x219),_0x12837c=_0x4edb75[_0x3fb87a(-_0x5b23b4._0x44521c,-0x25c,-_0x5b23b4._0x29e909,-0x19f)]??_0x3fb87a(-_0x5b23b4._0x463e58,-0x23d,-0x17e,-0x283);super({'apiKey':_0x4edb75['apiKey'],'baseUrl':trimTrailingSlashes(_0x4edb75[_0x3fb87a(-0x295,-0x1ec,-_0x5b23b4._0x38b487,-_0x5b23b4._0x3c13d0)]??_0x3fb87a(-0x1e0,-_0x5b23b4._0xf0d6e,-0x31b,-_0x5b23b4._0x190756)),'fetch':_0x4edb75[_0x580677(0x55e,_0x5b23b4._0x1aea14,_0x5b23b4._0x160a24,_0x5b23b4._0x26ab75)],'maxTokens':_0x2c4f80,'model':_0x34bc5a,'reasoning':_0x4edb75[_0x3fb87a(-_0x5b23b4._0x395a34,-0xc4,-_0x5b23b4._0xd90ea,-_0x5b23b4._0x4f8c0d)],'providerAdapter':new OpenAiProviderAdapter(_0x4edb75[_0x3fb87a(-0x147,-_0x5b23b4._0x2f4694,-_0x5b23b4._0x4a02c2,-_0x5b23b4._0x107a99)]),'providerSessionResolver':_0x4edb75['providerSessionResolver'],'requestMutators':_0x4edb75[_0x580677(_0x5b23b4._0x390be4,_0x5b23b4._0x1110ca,_0x5b23b4._0x278459,_0x5b23b4._0x16c22e)],'router':new StaticModelSurfaceRouter({'complete':OPENAI_CHAT_COMPLETIONS_SURFACE,'stream':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE}),'sessionManager':_0x4edb75[_0x3fb87a(-0x14e,-_0x5b23b4._0x12697a,-0x1ef,-0x16e)],'surfaces':createOpenAiSurfaces({'chatCompletionsPath':_0x54e701,'responsesPath':_0x12837c}),'webSocketFactory':_0x4edb75['webSocketFactory']}),this[_0x3fb87a(-_0x5b23b4._0x25232a,-_0x5b23b4._0x489127,-_0x5b23b4._0xa43099,-_0x5b23b4._0x42e46e)]=_0x54e701,this[_0x3fb87a(-_0x5b23b4._0x232dd5,-0x25c,-_0x5b23b4._0x227036,-_0x5b23b4._0x58432b)]=_0x12837c;}[_0xc7d8a6(-0x75,0x1f,0x6f,-0x6a)](_0xc277b9,_0x1cfdac){return this['completeViaSurface'](_0xc277b9,OPENAI_CHAT_COMPLETIONS_SURFACE,_0x1cfdac);}[_0x74a064(0x3b,0x8a,-0x5b,-0x53)](_0xc2bd06,_0x36149f){return this['completeViaSurface'](_0xc2bd06,OPENAI_RESPONSES_SURFACE,_0x36149f);}[_0x74a064(-0x26,-0x10c,-0x2a,-0x86)](_0x18f3e9,_0x3d00d0){return this['completeViaSurface'](_0x18f3e9,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x3d00d0);}[_0x74a064(0x28,-0x2b,0x72,-0x5c)](_0xffd98e,_0x509dc8){const _0x281435={_0x4d377e:0x1fe,_0x54b9f3:0x1a8,_0x11f921:0x24d,_0x25c1fd:0x146},_0x5221f1={_0x583c8b:0x1b2,_0x5d0205:0x6a};function _0x26fb94(_0x419f31,_0x2037b0,_0x2a3c7c,_0x68c5e0){return _0xc7d8a6(_0x419f31-0x9,_0x2a3c7c,_0x2a3c7c-_0x5221f1._0x583c8b,_0x419f31- -_0x5221f1._0x5d0205);}return this[_0x26fb94(-_0x281435._0x4d377e,-_0x281435._0x54b9f3,-_0x281435._0x11f921,-_0x281435._0x25c1fd)](_0xffd98e,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,_0x509dc8);}[_0x74a064(-0xa9,0x7,0x23,0x45)](_0x207371,_0x70c7bc){const _0x11cd96={_0x594211:0x221,_0xc7344d:0x1b2,_0x2105ef:0x298},_0x20dcb1={_0x771235:0x346};function _0x198a63(_0x3875c6,_0x450b2b,_0x54a0df,_0x1e221c){return _0xc7d8a6(_0x3875c6-0x104,_0x1e221c,_0x54a0df-0x77,_0x450b2b-_0x20dcb1._0x771235);}return this[_0x198a63(_0x11cd96._0x594211,_0x11cd96._0xc7344d,0x239,_0x11cd96._0x2105ef)](_0x207371,OPENAI_RESPONSES_STREAM_SURFACE,_0x70c7bc);}[_0x74a064(0x2e,0x56,-0xe,0xae)](_0xd7f154,_0x448f8e){const _0x8adf21={_0xa803aa:0x378,_0x37fcc8:0x3b7},_0x351390={_0x128e65:0x18f,_0x7a19ca:0x3f9};function _0x7a6fab(_0x25d219,_0x4d6263,_0x2c3d25,_0x11f0d3){return _0x74a064(_0x25d219-_0x351390._0x128e65,_0x4d6263-0x6a,_0x11f0d3-_0x351390._0x7a19ca,_0x2c3d25);}return this[_0x7a6fab(_0x8adf21._0xa803aa,0x2f5,0x458,_0x8adf21._0x37fcc8)](_0xd7f154,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x448f8e);}async[_0x74a064(0x186,0xcd,0xf0,0x5f)](_0x1e22eb,_0x1b7327){const _0x1e7559={_0x37e09b:0x74,_0x16f002:0x1c},_0x3dd67f={_0x1a7fb9:0x168,_0x55df6e:0x15e,_0x2f0a4f:0x86};function _0x513103(_0x132d19,_0x6e5b08,_0x554999,_0x486723){return _0xc7d8a6(_0x132d19-_0x3dd67f._0x1a7fb9,_0x132d19,_0x554999-_0x3dd67f._0x55df6e,_0x486723-_0x3dd67f._0x2f0a4f);}try{return await this[_0x513103(0x5e,_0x1e7559._0x37e09b,0x8,_0x1e7559._0x16f002)](_0x1e22eb,_0x1b7327);}catch(_0x269a07){if(_0x269a07 instanceof OpenAiApiError)throw this['mapApiError'](_0x269a07);throw _0x269a07;}}async[_0xc7d8a6(-0x25,-0x1c6,-0x143,-0xf7)](_0x5e84d1,_0x463b1e){const _0x173c26={_0x290725:0x2fd,_0x187e45:0x2e3,_0x190f65:0x439,_0x5ed822:0x361},_0x73dadc={_0x13321e:0xcf,_0x432726:0x3a,_0x53c84e:0x358};function _0x36c034(_0xeec37b,_0x496d78,_0x4c1e5f,_0x34d8d0){return _0x74a064(_0xeec37b-_0x73dadc._0x13321e,_0x496d78-_0x73dadc._0x432726,_0x4c1e5f-_0x73dadc._0x53c84e,_0x34d8d0);}function _0xe08bd1(_0x3d4f01,_0x5ee5e9,_0x1c8c5d,_0x334401){return _0x74a064(_0x3d4f01-0x6c,_0x5ee5e9-0xd4,_0x5ee5e9-0x62,_0x3d4f01);}try{return await this[_0x36c034(0x2b3,_0x173c26._0x290725,0x2fd,_0x173c26._0x187e45)](_0x5e84d1,_0x463b1e);}catch(_0x3cc64b){if(_0x3cc64b instanceof OpenAiApiError)throw this[_0x36c034(_0x173c26._0x190f65,_0x173c26._0x5ed822,0x426,0x41e)](_0x3cc64b);throw _0x3cc64b;}}async[_0xc7d8a6(-0xda,-0x17b,-0x140,-0x159)](_0x22412f,_0x3736be){const _0x4d1eb9={_0x4dc1da:0x351,_0x5e92c9:0x2ff,_0x363bdb:0x42a,_0x3adbfd:0x3f1,_0x516569:0x495,_0x2c6ef2:0x399,_0x67b972:0x6f,_0x2c1a7f:0x1f9,_0x587e86:0x97,_0x4c1658:0x133},_0x14404f={_0x4b584c:0x177,_0x42ff79:0x121},_0xd9be27={_0x14c8f3:0x158,_0x65a054:0x22a};function _0x42f376(_0x5d35af,_0x812231,_0x3f0683,_0x1f7963){return _0xc7d8a6(_0x5d35af-_0xd9be27._0x14c8f3,_0x3f0683,_0x3f0683-0xda,_0x1f7963-_0xd9be27._0x65a054);}function _0x104298(_0x722866,_0x13dd88,_0x5da981,_0x10b69f){return _0x74a064(_0x722866-_0x14404f._0x4b584c,_0x13dd88-_0x14404f._0x42ff79,_0x722866-0x3a8,_0x5da981);}try{let _0xcd3c83;for await(const _0x4fd7a7 of this[_0x104298(_0x4d1eb9._0x4dc1da,0x2e2,_0x4d1eb9._0x5e92c9,_0x4d1eb9._0x363bdb)](_0x22412f,_0x3736be)){_0x4fd7a7[_0x104298(_0x4d1eb9._0x3adbfd,0x3ec,_0x4d1eb9._0x516569,_0x4d1eb9._0x2c6ef2)]==='done'&&(_0xcd3c83=_0x4fd7a7[_0x42f376(_0x4d1eb9._0x67b972,_0x4d1eb9._0x2c1a7f,_0x4d1eb9._0x587e86,_0x4d1eb9._0x4c1658)]);}if(!_0xcd3c83)throw new Error('Responses\x20WebSocket\x20request\x20did\x20not\x20produce\x20a\x20final\x20response');return _0xcd3c83;}catch(_0x169129){if(_0x169129 instanceof OpenAiApiError)throw this['mapApiError'](_0x169129);throw _0x169129;}}async*['chatStream'](_0x24ce04,_0x48c4c8){const _0xddb542={_0xd2daae:0x66},_0x525edb={_0x3cf328:0xac,_0x40a5ca:0x15f,_0x496f08:0xd8};function _0x24c638(_0x24fb29,_0x4a8930,_0x65f575,_0x2b19b5){return _0x74a064(_0x24fb29-_0x525edb._0x3cf328,_0x4a8930-_0x525edb._0x40a5ca,_0x24fb29- -_0x525edb._0x496f08,_0x4a8930);}try{yield*this[_0x24c638(-_0xddb542._0xd2daae,-0x5f,0x6f,-0x43)](_0x24ce04,_0x48c4c8);}catch(_0x144420){if(_0x144420 instanceof OpenAiApiError)throw this['mapApiError'](_0x144420);throw _0x144420;}}async*[_0x74a064(0x1aa,0x3b,0xfa,0xb9)](_0x270b64,_0x510339){const _0x5cda13={_0x440de9:0x5a,_0x22fe93:0xe0,_0x44a7f2:0x4,_0x3619d5:0x3e4},_0x2b3159={_0x50204b:0x13c,_0x2d21d0:0x316},_0x58320a={_0x5d7cd7:0x10f,_0x5c0965:0x27};function _0x22cbc7(_0x145da9,_0x1fc00d,_0x481b35,_0x5d18cb){return _0x74a064(_0x145da9-_0x58320a._0x5d7cd7,_0x1fc00d-0x15,_0x481b35- -_0x58320a._0x5c0965,_0x1fc00d);}function _0x2d13a6(_0x483c53,_0xdcf3c8,_0x5c03ca,_0x38f171){return _0x74a064(_0x483c53-0xb,_0xdcf3c8-_0x2b3159._0x50204b,_0x5c03ca-_0x2b3159._0x2d21d0,_0x38f171);}try{yield*this[_0x22cbc7(-_0x5cda13._0x440de9,_0x5cda13._0x22fe93,-_0x5cda13._0x44a7f2,0x32)](_0x270b64,_0x510339);}catch(_0x2ee9f6){if(_0x2ee9f6 instanceof OpenAiApiError)throw this[_0x2d13a6(0x477,0x427,_0x5cda13._0x3619d5,0x48e)](_0x2ee9f6);throw _0x2ee9f6;}}async*['responseSocketStream'](_0x3d00e6,_0x5cf518){const _0x1577e9={_0x2d7c45:0x1b6,_0x448527:0x1f3,_0xc5f6f0:0x4c8,_0x2bd6ee:0x501},_0x57991a={_0x245a5b:0x57,_0x34ec67:0x433},_0x3c0679={_0x4ce01a:0x1ed};function _0x5ccae6(_0x4dd79e,_0x300372,_0x26a002,_0x1ea002){return _0x74a064(_0x4dd79e-0x1a7,_0x300372-_0x3c0679._0x4ce01a,_0x300372- -0x1ca,_0x4dd79e);}function _0x2ab475(_0x506ede,_0x1d45de,_0xbdc016,_0x5b3bf1){return _0x74a064(_0x506ede-0x4a,_0x1d45de-_0x57991a._0x245a5b,_0x5b3bf1-_0x57991a._0x34ec67,_0x1d45de);}try{yield*this[_0x5ccae6(-0x117,-0x140,-_0x1577e9._0x2d7c45,-_0x1577e9._0x448527)](_0x3d00e6,_0x5cf518);}catch(_0x2bf9df){if(_0x2bf9df instanceof OpenAiApiError)throw this[_0x2ab475(0x485,0x490,_0x1577e9._0xc5f6f0,_0x1577e9._0x2bd6ee)](_0x2bf9df);throw _0x2bf9df;}}[_0x74a064(-0x4e,0x52,0x7a,0x15c)](_0x4b4303,_0x70d330){return this['chatComplete'](_0x4b4303,_0x70d330);}[_0xc7d8a6(-0x1cd,-0x18b,-0xbe,-0x110)](_0x1bfffd,_0x1898a6){return this['chatStream'](_0x1bfffd,_0x1898a6);}[_0xc7d8a6(-0x157,-0x1b9,-0x196,-0x15b)](_0x1ee93e){const _0x54384e={_0x94fe70:0xc1,_0x10f6a5:0xca,_0x2abb98:0xed,_0x2667f7:0x2,_0x35704c:0x70,_0x3337ce:0x10,_0x1ecaa0:0xbb,_0xcb9d33:0x85,_0x358cca:0x7c,_0x4293b2:0x9},_0x3ed27a={_0x18d6d5:0x1ea,_0x1c10f9:0x107},_0x190e50={_0x184724:0x16f},_0x2c1b89=this[_0x2dba64(-0xde,-0x9b,-0xc6,-_0x54384e._0x94fe70)](_0x1ee93e);function _0x2dba64(_0x2a3c1e,_0x4fe10c,_0x3226d9,_0x471650){return _0x74a064(_0x2a3c1e-0x18c,_0x4fe10c-_0x190e50._0x184724,_0x471650- -0x69,_0x3226d9);}let _0x1f363b=this[_0x32fe0e(-_0x54384e._0x10f6a5,-0x96,-_0x54384e._0x2abb98,-0x172)][_0x2dba64(0x94,-_0x54384e._0x2667f7,-_0x54384e._0x35704c,_0x54384e._0x3337ce)](_0x2c1b89);!_0x1f363b&&(_0x1f363b={'key':_0x2c1b89,'locked':![],'pending':Promise[_0x2dba64(-0xce,-_0x54384e._0x1ecaa0,-_0x54384e._0xcb9d33,-_0x54384e._0x358cca)]()},this[_0x2dba64(-0x165,-0x105,-0x86,-0xb4)][_0x2dba64(0x77,0x103,-_0x54384e._0x4293b2,0xb3)](_0x2c1b89,_0x1f363b));function _0x32fe0e(_0x417fe5,_0x2aafca,_0x1a0c44,_0x44044b){return _0xc7d8a6(_0x417fe5-0x15f,_0x1a0c44,_0x1a0c44-_0x3ed27a._0x18d6d5,_0x2aafca-_0x3ed27a._0x1c10f9);}return _0x1f363b;}[_0xc7d8a6(-0x1b4,-0xc4,-0xe1,-0x181)](_0x8e78fe){const _0x4c4e23={_0x5b64d5:0x3e,_0x1d7a53:0xac,_0xebf3a5:0x36,_0x30cf1e:0x10a,_0x1f2084:0x123,_0x2b3f05:0x184,_0x9f8f2f:0xd7,_0x12a4f6:0x17b,_0x172b57:0x10e,_0x32b0e1:0x1a2,_0xdb8043:0xa0,_0x29eeee:0x27,_0x2c21ac:0x13},_0x357c00={_0x518ab7:0xf8,_0x40def0:0x11c};if(_0x8e78fe['locked']||_0x8e78fe[_0x5dabad(-_0x4c4e23._0x5b64d5,-0x35,_0x4c4e23._0x1d7a53,_0x4c4e23._0xebf3a5)]||_0x8e78fe[_0x4c1a60(_0x4c4e23._0x30cf1e,_0x4c4e23._0x1f2084,_0x4c4e23._0x2b3f05,_0x4c4e23._0x9f8f2f)])return;function _0x5dabad(_0x17ce79,_0x27acec,_0x11f34f,_0x3e57b2){return _0x74a064(_0x17ce79-_0x357c00._0x518ab7,_0x27acec-_0x357c00._0x40def0,_0x3e57b2- -0x48,_0x17ce79);}function _0x4c1a60(_0x5166d2,_0xef4138,_0x4925d4,_0x4313fe){return _0x74a064(_0x5166d2-0x1c2,_0xef4138-0x27,_0x4925d4-0x1ed,_0x4313fe);}this[_0x4c1a60(_0x4c4e23._0x12a4f6,_0x4c4e23._0x172b57,_0x4c4e23._0x32b0e1,0x1c2)]['get'](_0x8e78fe['key'])===_0x8e78fe&&this[_0x4c1a60(0x166,0x1d5,0x1a2,0x1bd)]['delete'](_0x8e78fe[_0x5dabad(-_0x4c4e23._0xdb8043,-_0x4c4e23._0x29eeee,_0x4c4e23._0x2c21ac,0x22)]);}[_0x74a064(0x84,-0x8a,-0x58,-0xcc)](_0x4ef8d9){const _0x20c158={_0x3edb76:0x3e},_0x3514df={_0x434abe:0x2b2};function _0x18b879(_0x13d577,_0x276fde,_0x5f37a2,_0x5474aa){return _0xc7d8a6(_0x13d577-0xd0,_0x5f37a2,_0x5f37a2-0xf3,_0x13d577-_0x3514df._0x434abe);}return''+trimTrailingSlashes(this['baseUrl'])+this[_0x18b879(0xf0,_0x20c158._0x3edb76,0x1c0,0xcd)]+'::'+_0x4ef8d9;}async[_0x74a064(-0x88,0x95,-0x50,0x32)](_0x45c3ab){const _0x569852={_0x1f3678:0x3b6,_0x2e141e:0x389,_0xa629bd:0x461,_0x4e745a:0x479,_0x125b8a:0x284,_0x1bc2a5:0xbc},_0x5becc1={_0x414b56:0x1b0,_0x5d8454:0x12,_0x5e5ec8:0x1a0,_0x3082fd:0x9e,_0xc1447d:0x1cd,_0x3014f0:0x107},_0x1f9a33={_0x1a23c9:0x146,_0x5d662d:0x2c},_0x1e21e1={_0x1dc350:0x473,_0x1d5fce:0x1af,_0x455509:0xbc},_0x268544={_0x1d49ab:0x12c,_0x4b5b60:0x3ce},_0x4da397={_0x27a445:0x115,_0x1f4d6e:0x82},_0x1bbaed=_0x45c3ab[_0x28e57a(_0x569852._0x1f3678,_0x569852._0x2e141e,_0x569852._0xa629bd,_0x569852._0x4e745a)][_0x28e57a(_0x569852._0x125b8a,0x271,0x20d,0x2b6)](()=>{});let _0x32d99d;const _0x171d66=new Promise(_0x5a7a57=>{_0x32d99d=_0x5a7a57;});function _0x1317ef(_0x2842cf,_0x469cc4,_0x5715de,_0x3a5951){return _0xc7d8a6(_0x2842cf-_0x4da397._0x27a445,_0x2842cf,_0x5715de-_0x4da397._0x1f4d6e,_0x3a5951-0x15b);}_0x45c3ab[_0x1317ef(0xe8,0x12d,_0x569852._0x1bc2a5,0x143)]=_0x1bbaed['then'](()=>_0x171d66),await _0x1bbaed;function _0x28e57a(_0x222e17,_0x28b60,_0x5419dc,_0x1881fd){return _0xc7d8a6(_0x222e17-0x110,_0x1881fd,_0x5419dc-_0x268544._0x1d49ab,_0x222e17-_0x268544._0x4b5b60);}return _0x45c3ab[_0x28e57a(0x381,0x304,0x442,0x41c)]=!![],()=>{_0x45c3ab[_0x3b2cbe(-_0x5becc1._0x414b56,-_0x5becc1._0x5d8454,-0x1a7,-0xf2)]=![],_0x32d99d?.();function _0x3b2cbe(_0x5289cd,_0x6a714a,_0x4ef24c,_0x4341a1){return _0x28e57a(_0x4341a1- -_0x1e21e1._0x1dc350,_0x6a714a-_0x1e21e1._0x1d5fce,_0x4ef24c-_0x1e21e1._0x455509,_0x5289cd);}function _0x215c58(_0x4f91f4,_0xa7f230,_0x593338,_0xc7f7b0){return _0x28e57a(_0xc7f7b0- -_0x1f9a33._0x1a23c9,_0xa7f230-0xf5,_0x593338-_0x1f9a33._0x5d662d,_0x593338);}this[_0x215c58(_0x5becc1._0x5e5ec8,_0x5becc1._0x3082fd,_0x5becc1._0xc1447d,_0x5becc1._0x3014f0)](_0x45c3ab);};}async[_0x74a064(0xeb,0xda,0x40,0x29)](_0x521c3f,_0x4227dd){const _0x1b2d92={_0x1bd35b:0x34,_0x31fc80:0xd1,_0x1c04b2:0x6c,_0x163fc6:0x112,_0xa5317b:0x8e,_0x3f2f73:0x110,_0x14c696:0x133,_0x437b7d:0x5fe,_0x32f1d5:0x651,_0x13c855:0x54,_0x33342d:0x170,_0x3385f8:0x3f,_0x3ce465:0x60e,_0x177cc5:0x4d9,_0x156415:0x142,_0x21c32f:0x14b,_0x330a18:0x227,_0x3f2acc:0xff,_0x2a96a4:0x120,_0x28f69a:0x100,_0x214f3f:0xfb,_0x116954:0x1b7},_0x41e836={_0x510dae:0x2c,_0x4f8ddb:0xb7},_0x3e8d83={_0x27ec02:0x1bf},_0x375c89=this['applyModelDefaults'](_0x521c3f);function _0x4ad9c4(_0x431b39,_0x2327b0,_0x402ee8,_0x623b99){return _0x74a064(_0x431b39-_0x3e8d83._0x27ec02,_0x2327b0-0x9c,_0x431b39-0x53c,_0x402ee8);}function _0x58cf84(_0x3a0d38,_0x467a7c,_0x1e34b0,_0x56f811){return _0xc7d8a6(_0x3a0d38-_0x41e836._0x510dae,_0x56f811,_0x1e34b0-_0x41e836._0x4f8ddb,_0x3a0d38-0x251);}const _0x1cdfb8=toModelRequest(_0x375c89),_0x221a8a=await prepareProviderRequest(_0x1cdfb8,{'sessionManager':this[_0x58cf84(0xf5,_0x1b2d92._0x1bd35b,_0x1b2d92._0x31fc80,_0x1b2d92._0x1c04b2)],'requestMutators':this[_0x58cf84(0x11d,_0x1b2d92._0x163fc6,0x84,0x173)],'signal':_0x4227dd}),_0x4d8533=toChatRequest(_0x221a8a[_0x4ad9c4(0x518,0x469,0x471,0x5ce)]),_0x50576c=this[_0x58cf84(0xbf,0x135,_0x1b2d92._0xa5317b,_0x1b2d92._0x3f2f73)][_0x58cf84(0x7e,_0x1b2d92._0x14c696,-0x4e,0x160)](this[_0x4ad9c4(_0x1b2d92._0x437b7d,0x63a,0x55e,_0x1b2d92._0x32f1d5)],_0x221a8a[_0x58cf84(0x120,_0x1b2d92._0x13c855,_0x1b2d92._0x33342d,_0x1b2d92._0x3385f8)]);if(!_0x50576c)throw this[_0x4ad9c4(0x59b,_0x1b2d92._0x3ce465,0x558,_0x1b2d92._0x177cc5)]();return{'baseUrl':this['providerAdapter'][_0x58cf84(0x14d,_0x1b2d92._0x156415,_0x1b2d92._0x21c32f,_0x1b2d92._0x330a18)](this[_0x58cf84(_0x1b2d92._0x3f2acc,0x6b,0x33,0x156)],_0x221a8a[_0x58cf84(_0x1b2d92._0x2a96a4,0xdf,_0x1b2d92._0x28f69a,_0x1b2d92._0x214f3f)]),'credential':_0x50576c,'request':_0x4d8533,'session':_0x221a8a[_0x58cf84(0x120,0x1c5,0xa8,_0x1b2d92._0x116954)]};}[_0x74a064(-0xe2,0x3d,-0x7a,0x10)](_0x3d3ece,_0x3ccf1d,_0x6e7fa5={}){const _0x1262b1={_0x4d1ede:0x85,_0x187174:0x5a,_0x3016af:0x83,_0x32ab02:0x7,_0x9ef1bd:0x77,_0x4506d2:0xb1,_0x387048:0xaf,_0x1f4ef4:0x46,_0x3d5819:0x69,_0x4f76a3:0xa4,_0x173efa:0x138,_0x2b3426:0x1e3,_0x4b28d4:0x1e8,_0x5a5570:0x1d9,_0xf1c470:0x1ad,_0x3a0672:0x24,_0x55222e:0x9d,_0x57b3cb:0x20,_0x112a5e:0x1d2,_0x7cc858:0x55,_0x1fec70:0x7f},_0x8ead10={_0x5008a4:0x48};if(!_0x6e7fa5[_0x49d98b(_0x1262b1._0x4d1ede,-_0x1262b1._0x187174,-_0x1262b1._0x3016af,-_0x1262b1._0x32ab02)]){const _0x2c38d9=this['findResponsesSocketCheckpoint'](_0x3d3ece);if(_0x2c38d9&&_0x3ccf1d['lastResponseId']&&_0x2c38d9[_0x90c976(_0x1262b1._0x9ef1bd,_0x1262b1._0x4506d2,_0x1262b1._0x387048,-_0x1262b1._0x1f4ef4)]===_0x3ccf1d[_0x49d98b(-0xf,-_0x1262b1._0x3d5819,-0x5d,-_0x1262b1._0x4f76a3)]){const _0x54fbb4=toOpenAiResponsesRequest({..._0x3d3ece,'messages':_0x3d3ece[_0x90c976(_0x1262b1._0x173efa,_0x1262b1._0x2b3426,_0x1262b1._0x4b28d4,0x1ac)][_0x49d98b(-_0x1262b1._0x5a5570,-0x102,-_0x1262b1._0xf1c470,-0x79)](_0x2c38d9['messageIndex']+0x1)})[_0x49d98b(_0x1262b1._0x3a0672,-0x6e,-_0x1262b1._0x55222e,-_0x1262b1._0x57b3cb)];return{'event':createOpenAiResponsesWebSocketEvent(_0x3d3ece,{'input':_0x54fbb4,'previousResponseId':_0x2c38d9[_0x49d98b(-0x1d5,-0xee,-_0x1262b1._0x112a5e,-0xfd)]}),'previousResponseId':_0x2c38d9[_0x90c976(_0x1262b1._0x9ef1bd,-_0x1262b1._0x7cc858,_0x1262b1._0x1fec70,-0x3b)]};}}function _0x90c976(_0x4dbc64,_0x4958e0,_0x2ebbd4,_0x54e409){return _0xc7d8a6(_0x4dbc64-_0x8ead10._0x5008a4,_0x2ebbd4,_0x2ebbd4-0x1cb,_0x4dbc64-0x193);}function _0x49d98b(_0x9fa317,_0x37a39c,_0x1afeb3,_0x349ec3){return _0x74a064(_0x9fa317-0x1f2,_0x37a39c-0x3b,_0x37a39c- -0x124,_0x9fa317);}return{'event':createOpenAiResponsesWebSocketEvent(_0x3d3ece)};}[_0xc7d8a6(-0xd6,-0x7d,-0xbe,-0x115)](_0x33d4f6){const _0x2f8f89={_0x1bae4f:0x8d,_0x13cd27:0x26,_0x202482:0x52d,_0x3b5bcf:0x5d7,_0x56d897:0x507,_0xafe85e:0x46e,_0x1c1298:0x501,_0x3619a9:0x5e3,_0x47ed1e:0xf4},_0x5ca13b={_0x1d6d70:0x80,_0x4cfc0a:0x557};for(let _0x6c887c=_0x33d4f6[_0x2278c1(_0x2f8f89._0x1bae4f,0xf4,-0x6e,_0x2f8f89._0x13cd27)][_0x320c1c(0x52f,0x5bc,_0x2f8f89._0x202482,_0x2f8f89._0x3b5bcf)]-0x1;_0x6c887c>=0x0;_0x6c887c-=0x1){const _0x4d3391=_0x33d4f6['messages'][_0x6c887c],_0x57ace0=_0x4d3391[_0x320c1c(0x4b3,_0x2f8f89._0x56d897,_0x2f8f89._0xafe85e,0x468)]===_0x320c1c(_0x2f8f89._0x1c1298,0x4f1,0x4f5,_0x2f8f89._0x3619a9)?_0x4d3391[_0x2278c1(-_0x2f8f89._0x47ed1e,-0x63,-0x15a,-0x146)]?.['openaiResponsesResponseId']:void 0x0;if(_0x57ace0)return{'messageIndex':_0x6c887c,'responseId':_0x57ace0};}function _0x320c1c(_0x16e4b8,_0x2025c0,_0x18c1c4,_0x476f9c){return _0xc7d8a6(_0x16e4b8-_0x5ca13b._0x1d6d70,_0x476f9c,_0x18c1c4-0x1d8,_0x16e4b8-_0x5ca13b._0x4cfc0a);}function _0x2278c1(_0x38ad05,_0x4e834f,_0x3fc3d5,_0x13ddfe){return _0xc7d8a6(_0x38ad05-0x7c,_0x3fc3d5,_0x3fc3d5-0x1ee,_0x13ddfe-0x81);}return void 0x0;}[_0x74a064(-0x3d,-0x58,0x8c,0x127)](_0x5a0c10){const _0x11b601={_0x283a7a:0xe2,_0x660c22:0x13b,_0x50e1f6:0x86,_0x54cdea:0x192,_0x12a9e3:0x15c,_0x364800:0x118},_0xe2fa={_0x5994b1:0x1f3};function _0x3ae7a8(_0x573d79,_0xf8d7e4,_0x108b48,_0xc61155){return _0x74a064(_0x573d79-_0xe2fa._0x5994b1,_0xf8d7e4-0x140,_0x108b48-0x3ea,_0x573d79);}function _0x5611bf(_0x11df1f,_0x11e23a,_0x45096e,_0x305fdd){return _0x74a064(_0x11df1f-0xae,_0x11e23a-0x13b,_0x45096e-0x1bb,_0x305fdd);}return _0x5a0c10 instanceof ProviderStreamEventError&&(_0x5a0c10[_0x5611bf(0xd2,_0x11b601._0x283a7a,_0x11b601._0x660c22,_0x11b601._0x50e1f6)]===_0x5611bf(0x205,_0x11b601._0x54cdea,_0x11b601._0x12a9e3,_0x11b601._0x364800)||_0x5a0c10['code']===_0x5611bf(0x25d,0x3bd,0x2d9,0x237));}[_0x74a064(0xa7,0xfd,0x94,-0x43)](_0x15f012){const _0x1d79a8={_0x2888d6:0x2b1,_0x3fac8f:0x269,_0x43a19b:0x22a,_0x46a496:0x285,_0x1526eb:0x350,_0x1e9545:0x3af,_0x2f0b81:0x376,_0x568471:0x1dd,_0x59a623:0x1e8},_0x4537a5={_0xcbc5ef:0x1a5},_0x587b98={_0x5c0048:0xf3,_0xc68d6b:0x692},_0x507ba0=_0x15f012['socket'];function _0x3a9b84(_0x4ae713,_0x3227ad,_0x13dfca,_0x3e5d53){return _0xc7d8a6(_0x4ae713-0x1e4,_0x3e5d53,_0x13dfca-_0x587b98._0x5c0048,_0x13dfca-_0x587b98._0xc68d6b);}_0x15f012[_0x5da1d8(0x301,_0x1d79a8._0x2888d6,_0x1d79a8._0x3fac8f,_0x1d79a8._0x43a19b)]=void 0x0,_0x15f012[_0x5da1d8(0x2fb,_0x1d79a8._0x46a496,_0x1d79a8._0x1526eb,_0x1d79a8._0x1e9545)]=void 0x0;function _0x5da1d8(_0x1f7319,_0x54b9ef,_0x3bf0a1,_0x4a0e12){return _0x74a064(_0x1f7319-0x5d,_0x54b9ef-_0x4537a5._0xcbc5ef,_0x3bf0a1-0x2d2,_0x54b9ef);}_0x15f012[_0x5da1d8(0x391,0x34f,0x38d,0x3b8)]=void 0x0,_0x507ba0?.['readyState']===WebSocket[_0x5da1d8(0x2e3,_0x1d79a8._0x2f0b81,0x2c1,_0x1d79a8._0x568471)]&&_0x507ba0[_0x5da1d8(0x1da,0x366,0x2b3,_0x1d79a8._0x59a623)](0x3e8,'reset');}async[_0xc7d8a6(0x36,0x26,0x59,-0x63)](_0x21106d,_0x292592,_0x1f2694,_0x23d23e,_0xa41217){const _0xfe62a0={_0x27df4d:0x461,_0xe6f307:0x535,_0x164ca2:0x298,_0x346126:0x2f8,_0x29efa8:0x2f0,_0x1a8cc1:0x28b,_0x4f9c5b:0x274,_0x6f372b:0x209,_0x542e86:0x1f6,_0xe56bcd:0x163,_0x4655e0:0x12e,_0x497f49:0x2b5,_0x1e06d5:0x47a,_0x4e95b4:0x472,_0x7bb782:0x4ee,_0x16044f:0x5a0,_0x5a1851:0x2da,_0x3114d6:0x12b,_0x322696:0x2b3},_0x4c3b02={_0x5256a4:0x478,_0xc55040:0x545,_0x45b522:0x511,_0x39f292:0x57c,_0x16d109:0x4dc,_0x3b98d2:0x51e,_0x29fe9b:0x40e,_0x2fc76e:0x4a8,_0x91df2:0x422,_0x2eca33:0x4b6,_0x47d7e4:0x5e1,_0x93abe4:0x52c,_0x4fe63a:0x5f9,_0x11bae1:0x505,_0x47efaf:0x43c,_0x3f9ae1:0x3fd,_0x1cebf5:0x49e,_0x11f46f:0x272,_0x262f69:0x33b,_0x2b2bbb:0x4ac,_0xfccc52:0x51c,_0x3e3a6d:0x568,_0x1bfa12:0x61e,_0x58818e:0x64c,_0xf229e7:0x669,_0x4bae9d:0x45c,_0x4dcb64:0x48d,_0x128b4e:0x4d1,_0x5d8412:0x435,_0x27021e:0x541,_0x10c385:0x664,_0x27e967:0x5a9,_0x19a29b:0x5d7,_0x4e709b:0x41c,_0x333d4a:0x517,_0x39bc36:0x252,_0x4e2c57:0x337},_0x3bf633={_0x459217:0x1a},_0x548e37={_0x245d26:0x14d},_0x11c28f={_0x4fbb18:0x287};if(_0x292592[_0x16e54f(0x474,_0xfe62a0._0x27df4d,0x3a3,_0xfe62a0._0xe6f307)]?.['readyState']===WebSocket[_0x50e9e1(-0x1d6,-_0xfe62a0._0x164ca2,-_0xfe62a0._0x346126,-0x1f0)])return _0x292592[_0x50e9e1(-0x28a,-_0xfe62a0._0x29efa8,-0x2d5,-_0xfe62a0._0x1a8cc1)];if(_0x292592[_0x50e9e1(-_0xfe62a0._0x4f9c5b,-_0xfe62a0._0x6f372b,-0x1b0,-_0xfe62a0._0x542e86)])return await _0x292592[_0x50e9e1(-_0xfe62a0._0xe56bcd,-0x209,-_0xfe62a0._0x4655e0,-_0xfe62a0._0x497f49)];function _0x50e9e1(_0x23386e,_0x25dcff,_0x599f31,_0x43a121){return _0x74a064(_0x23386e-0x138,_0x25dcff-0x82,_0x25dcff- -_0x11c28f._0x4fbb18,_0x23386e);}function _0x16e54f(_0x29eebb,_0x3d62c3,_0x4f2124,_0x25aa43){return _0xc7d8a6(_0x29eebb-0x1f3,_0x4f2124,_0x4f2124-_0x548e37._0x245d26,_0x3d62c3-0x61c);}_0x292592[_0x16e54f(_0xfe62a0._0x1e06d5,0x548,0x4d1,_0xfe62a0._0x4e95b4)]=((async()=>{const _0x6c8286={_0x14997c:0x38e,_0x4fc620:0x31e,_0x4d7a35:0x3f7},_0x46cc88={_0x42f9e6:0x144,_0xa15274:0x8d},_0x3dcd1c={_0x2c5cd4:0x2c,_0x213200:0x1c0},_0x476c29=await this['createHeaders']({'request':_0x1f2694['request'],'body':_0x23d23e,'credential':_0x1f2694['credential'],'session':_0x1f2694['session'],'stream':!![]},{'accept':'application/json','includeContentType':![]});function _0x4634c7(_0x36a086,_0x778b4d,_0x2d7fcd,_0x15c92a){return _0x16e54f(_0x36a086-0x61,_0x15c92a- -0x11f,_0x36a086,_0x15c92a-_0x3bf633._0x459217);}function _0x1cc681(_0x3477c8,_0x6a81c3,_0x3c4638,_0x48c4af){return _0x16e54f(_0x3477c8-0x142,_0x48c4af- -_0x3dcd1c._0x2c5cd4,_0x6a81c3,_0x48c4af-_0x3dcd1c._0x213200);}_0x476c29[_0x1cc681(_0x4c3b02._0x5256a4,_0x4c3b02._0xc55040,0x45f,_0x4c3b02._0x45b522)](_0x1cc681(0x4c4,_0x4c3b02._0x39f292,_0x4c3b02._0x16d109,_0x4c3b02._0x3b98d2));const _0x2d6634=this[_0x4634c7(0x461,_0x4c3b02._0x29fe9b,_0x4c3b02._0x2fc76e,_0x4c3b02._0x91df2)]({'headers':Object[_0x1cc681(0x59a,_0x4c3b02._0x2eca33,_0x4c3b02._0x47d7e4,_0x4c3b02._0x93abe4)](_0x476c29[_0x1cc681(0x65b,_0x4c3b02._0x4fe63a,0x5fc,0x5cc)]()),'url':(''+_0x1f2694[_0x1cc681(_0x4c3b02._0x11bae1,_0x4c3b02._0x47efaf,_0x4c3b02._0x3f9ae1,_0x4c3b02._0x1cebf5)]+this[_0x4634c7(0x388,_0x4c3b02._0x11f46f,0x2b6,_0x4c3b02._0x262f69)])[_0x4634c7(0x576,0x58e,0x519,0x4cc)](/^http:/,_0x1cc681(_0x4c3b02._0x2b2bbb,_0x4c3b02._0xfccc52,_0x4c3b02._0x3e3a6d,0x4cb))['replace'](/^https:/,_0x1cc681(_0x4c3b02._0x1bfa12,0x531,0x53e,0x583))}),_0x5372fe=()=>{function _0x465675(_0x3aa493,_0x41139a,_0x20beb5,_0x449b04){return _0x1cc681(_0x3aa493-_0x46cc88._0x42f9e6,_0x449b04,_0x20beb5-0x19c,_0x41139a- -_0x46cc88._0xa15274);}_0x292592['socket']===_0x2d6634&&(_0x292592[_0x465675(_0x6c8286._0x14997c,0x3a8,_0x6c8286._0x4fc620,_0x6c8286._0x4d7a35)]=void 0x0,_0x292592['lastResponseId']=void 0x0),this['maybeEvictResponsesSocketSession'](_0x292592);};_0x2d6634[_0x1cc681(_0x4c3b02._0x58818e,0x531,_0x4c3b02._0xf229e7,0x58f)]('close',_0x5372fe);try{return throwIfAborted(_0xa41217),_0x2d6634['readyState']!==WebSocket[_0x1cc681(_0x4c3b02._0x4bae9d,0x4ad,0x514,_0x4c3b02._0x4dcb64)]&&await waitForWebSocketOpen(_0x2d6634,_0xa41217),throwIfAborted(_0xa41217),_0x292592[_0x1cc681(_0x4c3b02._0x128b4e,0x4a7,0x46b,_0x4c3b02._0x5d8412)]=_0x2d6634,_0x2d6634;}catch(_0x294b3b){_0x5372fe();_0x2d6634[_0x1cc681(_0x4c3b02._0x27021e,_0x4c3b02._0x10c385,_0x4c3b02._0x27e967,_0x4c3b02._0x19a29b)]===WebSocket['OPEN']&&_0x2d6634[_0x1cc681(_0x4c3b02._0x4e709b,0x3c0,_0x4c3b02._0x333d4a,0x47f)](0x3e8,_0x4634c7(0x277,0x3d0,_0x4c3b02._0x39bc36,_0x4c3b02._0x4e2c57));throw _0x294b3b;}})());try{return await _0x292592[_0x16e54f(_0xfe62a0._0x7bb782,0x548,_0xfe62a0._0x16044f,0x56f)];}finally{_0x292592[_0x50e9e1(-_0xfe62a0._0x5a1851,-0x209,-_0xfe62a0._0x3114d6,-_0xfe62a0._0x322696)]=void 0x0;}}async*['streamViaPersistentResponsesSocket'](_0x1e1c72,_0x13206b){const _0x10ccc8={_0xce0aa0:0x6c,_0x4e228e:0x107,_0x5e90fc:0x98,_0xdbbd2a:0x1dd,_0x287595:0x260,_0x1877c0:0x2ee,_0x4d02d5:0x29d,_0x2c9c42:0x1e9,_0x2d7970:0x232,_0x349ce7:0x2,_0x15f3fa:0x43,_0x3fa108:0x2a,_0x228ba1:0xc1,_0x163bd9:0x41,_0x366ff8:0x17,_0x5347fb:0xf,_0x139e2b:0xe7,_0x59d958:0x27a,_0x4dbde1:0xd0,_0x385465:0x1ae,_0x57804b:0x1b3,_0x1a83d4:0x261,_0x49452d:0xe2,_0x3784b5:0x2fd,_0x485788:0x14b,_0x2d0335:0x2c,_0x528164:0xb5},_0x2bedfc={_0x49b9a3:0x3c},_0x2c818a=this[_0x49f09e(0x99,-0x57,_0x10ccc8._0xce0aa0,-0x64)](_0x1e1c72),_0x143230=this['getResponsesSocketSessionState'](_0x2c818a[_0x49f09e(_0x10ccc8._0x4e228e,0x49,0xac,_0x10ccc8._0x5e90fc)]['sessionId']);function _0x49f09e(_0x336eb7,_0x581cf3,_0x4d69e0,_0x6322e4){return _0x74a064(_0x336eb7-0x86,_0x581cf3-0x195,_0x4d69e0-_0x2bedfc._0x49b9a3,_0x581cf3);}function _0x2d0a26(_0x3b8cbf,_0x2f408d,_0x1391c2,_0x56182e){return _0xc7d8a6(_0x3b8cbf-0x16e,_0x56182e,_0x1391c2-0x136,_0x1391c2-0x37f);}const _0xb98353=await this[_0x2d0a26(0x1b6,0x267,_0x10ccc8._0xdbbd2a,_0x10ccc8._0x287595)](_0x143230);try{const _0x5a6aab=this['buildResponsesSocketEvent'](_0x2c818a,_0x143230);try{yield*this[_0x2d0a26(0x307,0x373,0x35d,0x333)](_0x2c818a[_0x2d0a26(_0x10ccc8._0x1877c0,0x259,_0x10ccc8._0x4d02d5,0x36d)][_0x2d0a26(_0x10ccc8._0x2c9c42,0x2e6,_0x10ccc8._0x2d7970,0x174)],_0x143230,_0x2c818a,_0x5a6aab[_0x49f09e(-0x3a,_0x10ccc8._0x349ce7,-_0x10ccc8._0x15f3fa,-_0x10ccc8._0x3fa108)],_0x13206b?.[_0x49f09e(_0x10ccc8._0x228ba1,_0x10ccc8._0x163bd9,_0x10ccc8._0x366ff8,_0x10ccc8._0x5347fb)]);return;}catch(_0x1634b8){if(!_0x5a6aab['previousResponseId']||!this[_0x49f09e(_0x10ccc8._0x139e2b,0x1a,0xc8,0x1f)](_0x1634b8)){this[_0x2d0a26(0x1ed,0x236,0x2c1,_0x10ccc8._0x59d958)](_0x143230);throw _0x1634b8;}}this[_0x49f09e(0x189,0x68,_0x10ccc8._0x4dbde1,0x157)](_0x143230);const _0x1ed185=this[_0x2d0a26(_0x10ccc8._0x385465,0x201,_0x10ccc8._0x57804b,_0x10ccc8._0x1a83d4)](_0x2c818a,_0x143230,{'forceFullReplay':!![]});yield*this[_0x49f09e(0x1c6,0x1cd,0x16c,_0x10ccc8._0x49452d)](_0x2c818a[_0x2d0a26(0x325,0x1e2,0x29d,_0x10ccc8._0x3784b5)][_0x2d0a26(0x250,0x2e6,_0x10ccc8._0x2d7970,_0x10ccc8._0x485788)],_0x143230,_0x2c818a,_0x1ed185[_0x49f09e(-_0x10ccc8._0x2d0335,-0x8,-0x43,0x78)],_0x13206b?.[_0x49f09e(0x3e,0xe9,0x17,-_0x10ccc8._0x528164)]);}finally{_0xb98353();}}async*['streamViaResponsesSocketAttempt'](_0x4ebfe6,_0x5256ca,_0x1fb617,_0x15a3f1,_0x23e874){const _0x566757={_0x23b1c6:0x3bd,_0x30c292:0x46c,_0x1a4b18:0x47e,_0x2112d4:0x3dd,_0x14f88a:0x3c8,_0x110a10:0x3fa,_0x34a210:0x44d,_0x2688b6:0x3b7,_0x59cb73:0x36f,_0x56f731:0x13a,_0x887c4:0x327,_0x1e3e7d:0x2bc,_0x35209d:0x471,_0x587ef0:0x4e0,_0x2fe989:0x457,_0x420b25:0xd1,_0x7f286c:0x66,_0x268cf4:0x438,_0x234697:0x3e3,_0x585486:0x24b,_0x5778ed:0x19c,_0x3c1f50:0x244},_0x5d127a={_0x3e01f5:0x47,_0x4d344d:0x1dd},_0x45b2a7=await this[_0x6183f5(_0x566757._0x23b1c6,0x34e,0x410,0x373)](_0x1fb617,_0x23e874),_0x1276ea=await this[_0x6183f5(_0x566757._0x30c292,_0x566757._0x1a4b18,0x44a,0x423)](_0x4ebfe6,_0x5256ca,_0x45b2a7,_0x15a3f1,_0x23e874),_0x5e1d04=createOpenAiResponsesStreamParser(_0x1fb617);throwIfAborted(_0x23e874),_0x1276ea[_0x6183f5(_0x566757._0x2112d4,_0x566757._0x14f88a,0x464,0x3bc)](JSON[_0x6183f5(_0x566757._0x110a10,_0x566757._0x34a210,_0x566757._0x2688b6,_0x566757._0x59cb73)](_0x15a3f1));for await(const _0x3c522f of iterateWebSocketMessages(_0x1276ea,_0x23e874)){const _0xdde523=_0x5e1d04[_0x316d54(0x1f3,0x190,_0x566757._0x56f731,0xfb)]?.(_0x3c522f)??[];yield*_0xdde523;if(_0x5e1d04['isDone']?.())break;}function _0x6183f5(_0x55f673,_0x3df0aa,_0x2c38a5,_0x554df2){return _0xc7d8a6(_0x55f673-_0x5d127a._0x3e01f5,_0x3df0aa,_0x2c38a5-_0x5d127a._0x4d344d,_0x55f673-0x4cf);}if(!_0x5e1d04['isDone']?.())throw new Error(_0x6183f5(_0x566757._0x887c4,0x34e,0x2a3,_0x566757._0x1e3e7d));const _0x3b15fe=_0x5e1d04[_0x6183f5(_0x566757._0x35209d,_0x566757._0x587ef0,0x429,_0x566757._0x2fe989)](),_0x3fc1b5=_0x3b15fe[_0x316d54(0x11,0x1ae,_0x566757._0x420b25,_0x566757._0x7f286c)]?.['openaiResponsesResponseId']??_0x3b15fe['id'];function _0x316d54(_0x19d023,_0x237865,_0x3ccc91,_0x256b89){return _0x74a064(_0x19d023-0x161,_0x237865-0x1d,_0x3ccc91-0x146,_0x237865);}_0x3fc1b5&&(_0x5256ca[_0x6183f5(_0x566757._0x268cf4,0x4ff,0x420,_0x566757._0x234697)]=_0x3fc1b5),yield{'type':_0x316d54(_0x566757._0x585486,_0x566757._0x5778ed,_0x566757._0x3c1f50,0x2da),'response':_0x3b15fe};}},AVAILABLE_CHAT_MODEL_SURFACES=['anthropic-messages',_0xc7d8a6(-0x2c,-0x4e,0x7,-0x40),_0x74a064(0x43,0x58,0xb7,0x194),'openai-responses-ws'];function isAnthropicSurface(_0x27bc1e){const _0x39489c={_0x4a3327:0xfb,_0x534df9:0x1c8,_0x26759d:0x81},_0x1d7fe7={_0x4a7333:0x24,_0x48c7fa:0x23d};function _0x196ad8(_0x5caa35,_0x56d068,_0x43eccb,_0x567373){return _0xc7d8a6(_0x5caa35-_0x1d7fe7._0x4a7333,_0x43eccb,_0x43eccb-0x128,_0x5caa35-_0x1d7fe7._0x48c7fa);}return _0x27bc1e===_0x196ad8(_0x39489c._0x4a3327,_0x39489c._0x534df9,0x10f,_0x39489c._0x26759d);}function resolveDefaultBaseUrl(_0x333410){const _0x1f17f5={_0x29fa94:0x3f3,_0x2bc2ef:0x419,_0x4627b2:0x433,_0x1cca7e:0x266,_0x306324:0x306,_0x8bf948:0x34b,_0x1fad58:0x359,_0x252dac:0x3e9,_0x3a769b:0x25c,_0x1b5cb0:0x30f,_0x254074:0x293},_0x213a36={_0x3a23f3:0x1e,_0x4498dd:0x32b},_0x9b37b1={_0x2a0792:0x18c,_0x554192:0x115,_0x2dd91d:0x22b};if(_0x333410==='anthropic-messages')return getProviderProfile(_0x292c00(_0x1f17f5._0x29fa94,_0x1f17f5._0x2bc2ef,0x453,_0x1f17f5._0x4627b2))?.[_0x292c00(0x32b,_0x1f17f5._0x1cca7e,_0x1f17f5._0x306324,_0x1f17f5._0x8bf948)]??_0x292c00(0x37f,_0x1f17f5._0x1fad58,_0x1f17f5._0x252dac,0x447);function _0x4cff1b(_0x2ca042,_0x143ac4,_0x367a65,_0x1c248b){return _0x74a064(_0x2ca042-_0x9b37b1._0x2a0792,_0x143ac4-_0x9b37b1._0x554192,_0x367a65- -_0x9b37b1._0x2dd91d,_0x2ca042);}function _0x292c00(_0x499848,_0xd3d307,_0x2ab61e,_0x1b88f0){return _0x74a064(_0x499848-0xa6,_0xd3d307-_0x213a36._0x3a23f3,_0x499848-_0x213a36._0x4498dd,_0x2ab61e);}return getProviderProfile('openai')?.['baseUrl']??_0x292c00(0x2dc,_0x1f17f5._0x3a769b,_0x1f17f5._0x1b5cb0,_0x1f17f5._0x254074);}var ChatModel=class{[_0xc7d8a6(-0x22,-0x93,-0xa2,-0xfc)];[_0x74a064(0x18b,0x12b,0xd6,0x145)];[_0x74a064(0xbc,-0x31,0xa5,0x184)];[_0x74a064(0x5c,-0x76,0x3b,-0x15)];[_0x74a064(0x103,0x1c4,0x13b,0xd1)];constructor(_0x2fb2e0={}){const _0x574c8e={_0x14e2ee:0x23f,_0x23c8d9:0x1b8,_0x55a189:0x1a2,_0x113dae:0x3e3,_0x2afb9c:0x2bf,_0x3bcafc:0x313,_0x2e11df:0x254,_0x521700:0x237,_0x339188:0x36b,_0x3dc49d:0x42e,_0x457391:0x445,_0x20bb70:0x4d1,_0x6f832:0x465,_0x397d91:0x2fb,_0x442f95:0x291,_0x20ce45:0x28e,_0x38a2b7:0x3cf,_0x5013c5:0x2ab,_0x3ad7c8:0x2cd,_0x3e5f0e:0x2a6,_0x286560:0x2ce,_0x4183b6:0x2dd,_0x417a3b:0x244,_0x5c1eb8:0x4a4,_0x814cb1:0x475,_0x5e13c6:0x3be,_0x3e506e:0x472,_0x7843e4:0x28f,_0x244221:0x2ad,_0xbbc79b:0x38f,_0x45cb72:0x49e,_0x50a7a5:0x269,_0x1133fd:0x299,_0x46294a:0x409,_0x49c055:0x451,_0x3ef5bf:0x311,_0x2a5219:0x371,_0x40f186:0x408,_0x1bdb3f:0x399,_0x2f5ba7:0x31a},_0x567341={_0x244fe3:0x189,_0x4d3c13:0x185},_0x445f22={_0x1d6884:0xc9,_0x4518ce:0x33b};function _0x52d18f(_0x3ae265,_0x31d969,_0xbe1e02,_0xdf8ad8){return _0xc7d8a6(_0x3ae265-0x1f,_0x31d969,_0xbe1e02-_0x445f22._0x1d6884,_0x3ae265-_0x445f22._0x4518ce);}this[_0x52d18f(_0x574c8e._0x14e2ee,_0x574c8e._0x23c8d9,_0x574c8e._0x55a189,0x2f0)]=_0x2fb2e0[_0x4699d0(0x383,_0x574c8e._0x113dae,0x3f6,0x45c)]??getDefaultModel(),this[_0x52d18f(_0x574c8e._0x2afb9c,_0x574c8e._0x3bcafc,_0x574c8e._0x2e11df,_0x574c8e._0x521700)]=_0x2fb2e0[_0x52d18f(0x2bf,0x2ff,0x346,_0x574c8e._0x339188)]??getDefaultMaxTokens();function _0x4699d0(_0x189522,_0x4bce6f,_0x3ccd98,_0x2a8e6c){return _0x74a064(_0x189522-_0x567341._0x244fe3,_0x4bce6f-_0x567341._0x4d3c13,_0x3ccd98-0x3a0,_0x4bce6f);}this[_0x4699d0(0x3d3,_0x574c8e._0x3dc49d,_0x574c8e._0x457391,_0x574c8e._0x20bb70)]=_0x2fb2e0[_0x4699d0(_0x574c8e._0x6f832,0x463,_0x574c8e._0x457391,0x4a5)]??_0x52d18f(_0x574c8e._0x397d91,0x23b,0x2ca,0x2ce);const _0x129764=trimTrailingSlashes(_0x2fb2e0[_0x52d18f(0x1e9,_0x574c8e._0x442f95,0x118,0x182)]??resolveDefaultBaseUrl(this[_0x52d18f(_0x574c8e._0x20ce45,0x366,0x242,0x2b8)]));if(isAnthropicSurface(this['surface'])){this[_0x4699d0(_0x574c8e._0x38a2b7,0x3bc,0x3db,0x496)]=new AnthropicModel({'apiKey':_0x2fb2e0[_0x52d18f(_0x574c8e._0x5013c5,0x22b,0x353,0x23d)],'authScheme':_0x2fb2e0[_0x52d18f(0x24e,_0x574c8e._0x3ad7c8,0x30a,0x229)],'baseUrl':_0x129764,'fetch':_0x2fb2e0[_0x52d18f(_0x574c8e._0x3e5f0e,0x322,0x351,0x1d8)],'maxTokens':this[_0x52d18f(_0x574c8e._0x2afb9c,_0x574c8e._0x286560,_0x574c8e._0x4183b6,_0x574c8e._0x417a3b)],'model':this['model'],'reasoning':_0x2fb2e0['reasoning'],'providerSessionResolver':_0x2fb2e0[_0x4699d0(0x412,_0x574c8e._0x5c1eb8,0x401,_0x574c8e._0x814cb1)],'requestMutators':_0x2fb2e0[_0x4699d0(0x478,0x493,_0x574c8e._0x5e13c6,0x3b9)]});return;}this[_0x4699d0(0x432,0x512,0x4db,_0x574c8e._0x3e506e)]=new OpenAiModel({'apiKey':_0x2fb2e0[_0x52d18f(0x2ab,0x2fd,_0x574c8e._0x7843e4,_0x574c8e._0x244221)],'baseUrl':_0x129764,'fetch':_0x2fb2e0['fetch'],'headerResolver':_0x2fb2e0[_0x4699d0(_0x574c8e._0xbbc79b,0x47c,0x3e1,_0x574c8e._0x45cb72)],'maxTokens':this[_0x52d18f(0x2bf,_0x574c8e._0x50a7a5,_0x574c8e._0x1133fd,0x243)],'model':this[_0x4699d0(_0x574c8e._0x46294a,_0x574c8e._0x49c055,0x3f6,0x41b)],'reasoning':_0x2fb2e0[_0x52d18f(_0x574c8e._0x3ef5bf,0x35a,_0x574c8e._0x2a5219,0x231)],'providerSessionResolver':_0x2fb2e0[_0x4699d0(_0x574c8e._0x40f186,0x3ae,0x401,0x477)],'requestMutators':_0x2fb2e0[_0x4699d0(_0x574c8e._0x1bdb3f,0x37f,0x3be,_0x574c8e._0x2f5ba7)],'webSocketFactory':_0x2fb2e0['webSocketFactory']});}[_0xc7d8a6(-0x1e9,-0x1ef,-0x24d,-0x170)](){const _0x48e849={_0xaaeaa8:0x53,_0x5ed402:0xd9,_0x1f2fa8:0xc4,_0x2f605c:0x77,_0x1be4cd:0x40,_0x3fa484:0x6},_0x4d9d95={_0x56a708:0x19d,_0x1fd718:0x84,_0x318785:0x63};function _0xa21712(_0x456ede,_0x291237,_0x5701b6,_0x463204){return _0x74a064(_0x456ede-_0x4d9d95._0x56a708,_0x291237-_0x4d9d95._0x1fd718,_0x291237-_0x4d9d95._0x318785,_0x456ede);}if(!this[_0x136f26(0x1e,_0x48e849._0xaaeaa8,_0x48e849._0x5ed402,-0x2)])throw new Error(_0x136f26(-_0x48e849._0x1f2fa8,_0x48e849._0x2f605c,0x70,-_0x48e849._0x1be4cd)+this[_0x136f26(-0x75,0xe0,_0x48e849._0x3fa484,0x68)]);function _0x136f26(_0xe9fc95,_0x5cce65,_0x261290,_0x4dc5cf){return _0xc7d8a6(_0xe9fc95-0x99,_0x261290,_0x261290-0x103,_0x4dc5cf-0x115);}return this[_0x136f26(0x4d,0xaf,0x86,-0x2)];}[_0x74a064(0x22,0x56,-0x6b,-0xa8)](){const _0x35df0b={_0x141727:0x12b,_0x14eeeb:0x92,_0x4001ae:0x147,_0x54e721:0x17f,_0x541bf5:0xf0,_0x31a9d4:0x1c1,_0x241973:0xeb},_0x3e9b72={_0x35d03b:0x1d7,_0x89d148:0x114},_0x55f5a0={_0x469380:0x5e};function _0x2a1a1c(_0x34f989,_0x103e5e,_0x354e7d,_0x273234){return _0x74a064(_0x34f989-_0x55f5a0._0x469380,_0x103e5e-0xd3,_0x354e7d- -0x13a,_0x273234);}function _0x35644a(_0x5907c3,_0x383686,_0xb246fa,_0x4a9e15){return _0xc7d8a6(_0x5907c3-0x1f,_0x4a9e15,_0xb246fa-_0x3e9b72._0x35d03b,_0x383686- -_0x3e9b72._0x89d148);}if(!this[_0x35644a(-0x15c,-_0x35df0b._0x141727,-_0x35df0b._0x14eeeb,-0x75)])throw new Error(_0x2a1a1c(-_0x35df0b._0x4001ae,-0x15f,-_0x35df0b._0x54e721,-_0x35df0b._0x541bf5)+this[_0x35644a(-0x27b,-_0x35df0b._0x31a9d4,-0x209,-_0x35df0b._0x241973)]);return this['openAiDelegate'];}['complete'](_0xb303ea,_0xd071c1){const _0xdae280={_0xcfbb49:0xf1,_0x4de1d0:0xed,_0x4d6520:0x6a,_0x57368f:0x516,_0x2b7301:0x522,_0x16ec75:0x53e,_0x57dc73:0x633,_0x324e24:0x536,_0x2fb419:0x501,_0xbb0e12:0x5c5,_0x55bdc8:0x3d4,_0x32272a:0x567,_0x1e42a9:0x47e,_0x441b23:0x4a3,_0x544968:0x5f1,_0x3009e6:0x4c4,_0x34f9c9:0x41c,_0x46c9f8:0x3e,_0x11b5de:0x4cc,_0x34264e:0x468,_0xce645:0x57f},_0x3600cb={_0x1260b4:0x62},_0x4aef7a={_0x510319:0x79};function _0x52d9b1(_0x29cc00,_0x457b6e,_0x1a52f4,_0x31d577){return _0xc7d8a6(_0x29cc00-_0x4aef7a._0x510319,_0x457b6e,_0x1a52f4-0x1af,_0x31d577-0x197);}function _0x457105(_0x1a1311,_0x2f959f,_0x18b9fe,_0x3d40c2){return _0x74a064(_0x1a1311-_0x3600cb._0x1260b4,_0x2f959f-0x1cf,_0x3d40c2-0x50e,_0x18b9fe);}switch(this[_0x52d9b1(_0xdae280._0xcfbb49,0x4,0x1a,0xea)]){case _0x52d9b1(0xc5,_0xdae280._0x4de1d0,_0xdae280._0x4d6520,0x55):return this[_0x457105(0x4ca,_0xdae280._0x57368f,_0xdae280._0x2b7301,0x4f0)]()[_0x457105(_0xdae280._0x16ec75,_0xdae280._0x57dc73,_0xdae280._0x324e24,0x588)](_0xb303ea,_0xd071c1);case _0x457105(_0xdae280._0x2fb419,0x577,0x5d6,_0xdae280._0xbb0e12):return this[_0x457105(_0xdae280._0x55bdc8,_0xdae280._0x32272a,_0xdae280._0x1e42a9,_0xdae280._0x441b23)]()[_0x457105(_0xdae280._0x544968,0x583,_0xdae280._0x3009e6,0x569)](_0xb303ea,_0xd071c1);case'openai-responses-ws':return this[_0x457105(_0xdae280._0x34f9c9,0x45a,0x4ea,0x4a3)]()[_0x52d9b1(0x6d,0x125,-0x2f,_0xdae280._0x46c9f8)](_0xb303ea,_0xd071c1);default:return this[_0x457105(_0xdae280._0x11b5de,_0xdae280._0x34264e,_0xdae280._0xce645,0x4a3)]()[_0x52d9b1(0x1ab,0x142,0xdb,0x135)](_0xb303ea,_0xd071c1);}}[_0x74a064(0xd9,0x14,0x42,0xe6)](_0x514a74,_0x3d0c75){const _0x3daf04={_0x37a452:0x107,_0x266e53:0x1a7,_0x2c3957:0x10e,_0x5eae53:0x32d,_0x173586:0x44c,_0x204528:0x3a9,_0x2fddaf:0x14a,_0x272c70:0x20a,_0x4a264a:0x203,_0x45be89:0x4ed,_0x2c80d3:0x23b,_0x56e41d:0x23e,_0x36075c:0x20d,_0x4a00da:0x362,_0x2fca86:0x322,_0x5209a2:0x38e,_0x2ed302:0x32e,_0x30cfa1:0x425,_0x514c3b:0x36d,_0x9c4d59:0x225},_0x2a6aa6={_0x3ec1ed:0x1ee,_0xb2bd62:0x399},_0x21b35c={_0x4d55fc:0x38};function _0x25ca0c(_0x43099b,_0x1d656a,_0x458cff,_0x40b390){return _0xc7d8a6(_0x43099b-0xab,_0x40b390,_0x458cff-_0x21b35c._0x4d55fc,_0x458cff- -0xfa);}function _0x11c53b(_0x1b2dc1,_0x8bca03,_0x41a4bb,_0x5976bf){return _0x74a064(_0x1b2dc1-_0x2a6aa6._0x3ec1ed,_0x8bca03-0x54,_0x5976bf-_0x2a6aa6._0xb2bd62,_0x1b2dc1);}switch(this[_0x25ca0c(-0x124,-_0x3daf04._0x37a452,-_0x3daf04._0x266e53,-_0x3daf04._0x2c3957)]){case _0x11c53b(_0x3daf04._0x5eae53,_0x3daf04._0x173586,0x403,_0x3daf04._0x204528):return this['getAnthropicDelegate']()[_0x25ca0c(-0x22f,-_0x3daf04._0x2fddaf,-_0x3daf04._0x272c70,-_0x3daf04._0x4a264a)](_0x514a74,_0x3d0c75);case _0x11c53b(0x399,0x37a,_0x3daf04._0x45be89,0x450):return this[_0x25ca0c(-_0x3daf04._0x2c80d3,-_0x3daf04._0x56e41d,-0x2b7,-_0x3daf04._0x36075c)]()['responseStream'](_0x514a74,_0x3d0c75);case _0x11c53b(0x3c4,_0x3daf04._0x4a00da,0x423,0x434):return this[_0x11c53b(0x36b,_0x3daf04._0x2fca86,_0x3daf04._0x5209a2,_0x3daf04._0x2ed302)]()[_0x11c53b(0x391,_0x3daf04._0x30cfa1,0x2e5,0x342)](_0x514a74,_0x3d0c75);default:return this[_0x11c53b(_0x3daf04._0x514c3b,0x33b,0x28b,0x32e)]()[_0x25ca0c(-_0x3daf04._0x9c4d59,-0x1ff,-0x22d,-0x189)](_0x514a74,_0x3d0c75);}}};import{randomUUID}from'crypto';var GitHubAccessTokenResolver=class{[_0x74a064(0xb6,0x73,0x148,0xd7)];['baseUrl'];[_0xc7d8a6(-0xde,-0x60,-0xaa,-0x4c)];[_0x74a064(0xa7,-0x18,0xbc,0x185)];[_0xc7d8a6(-0x1b1,-0x177,-0xe9,-0x183)];constructor(_0x493559){const _0x4b6aa3={_0x3d8f32:0x46,_0x494f2b:0x4d,_0x4e5665:0x11c,_0x3934ba:0x196,_0xac99a5:0x340,_0xb1f443:0xbe,_0x3f528b:0x9d,_0x1149a0:0x3a,_0x50eb0e:0x128,_0x144428:0x140,_0x106353:0x121,_0x444b4f:0x17d,_0x1d802a:0x130,_0x581421:0x1a8,_0x4579bb:0xc1,_0x1a5e44:0x323,_0x1455f4:0x31d,_0x3739d8:0x295},_0xf5f8cb={_0x53cc37:0x172,_0x800510:0x264},_0x1badb1={_0xe41984:0xe7,_0x149898:0x14a};this[_0xb3a59f(-0x17d,-_0x4b6aa3._0x3d8f32,-_0x4b6aa3._0x494f2b,-_0x4b6aa3._0x4e5665)]=_0x493559['accessToken'],this['baseUrl']=trimTrailingSlashes2(_0x493559[_0xb3a59f(-0x2ba,-_0x4b6aa3._0x3934ba,-_0x4b6aa3._0xac99a5,-0x264)]);function _0x1a3e33(_0x452776,_0x243911,_0x2e1e6a,_0x207d65){return _0xc7d8a6(_0x452776-0x18,_0x2e1e6a,_0x2e1e6a-_0x1badb1._0xe41984,_0x207d65-_0x1badb1._0x149898);}function _0xb3a59f(_0x390782,_0x1dbe08,_0x3d8fa3,_0x17cebf){return _0x74a064(_0x390782-0x1a8,_0x1dbe08-_0xf5f8cb._0x53cc37,_0x17cebf- -_0xf5f8cb._0x800510,_0x3d8fa3);}this[_0xb3a59f(-0x7e,-0xb2,-_0x4b6aa3._0xb1f443,-0x15e)]=_0x493559[_0x1a3e33(0xc9,-0x6,_0x4b6aa3._0x3f528b,0xb5)],this[_0x1a3e33(_0x4b6aa3._0x1149a0,_0x4b6aa3._0x50eb0e,_0x4b6aa3._0x144428,0xb4)]=trimTrailingSlashes2(_0x493559[_0xb3a59f(-_0x4b6aa3._0x106353,-_0x4b6aa3._0x444b4f,-_0x4b6aa3._0x1d802a,-_0x4b6aa3._0x581421)]),this[_0x1a3e33(-_0x4b6aa3._0x4579bb,-0xf6,-0x12,-0x39)]=_0x493559[_0xb3a59f(-0x375,-_0x4b6aa3._0x1a5e44,-_0x4b6aa3._0x1455f4,-_0x4b6aa3._0x3739d8)];}async[_0x74a064(-0x73,-0xc9,-0x13,-0x86)](_0x2da7ce){const _0x15ddda={_0x2b4448:0x392,_0x575f6b:0x463,_0x4239ac:0x328,_0x522584:0x254,_0x5bf146:0x228,_0x5e892c:0x322,_0x2df7ee:0x2c8,_0xb2827e:0x41a,_0x23c26c:0x342,_0x1b237d:0x37d,_0x307deb:0x23b,_0x3b923a:0x254,_0x232aef:0x308,_0x10de3a:0x2bb,_0x54c054:0x504,_0x24cc68:0x52d,_0x55572b:0x457,_0xe0d703:0x44d,_0x21d52a:0x1bf,_0x33ae9d:0x1cf,_0x8a34ad:0x204,_0xc96466:0x453,_0x1225d2:0x4c5,_0x1f979a:0x3e3,_0x3890ad:0x462,_0x573dad:0x31a,_0x2fb7c5:0x237,_0x5a59f0:0x21c,_0xcd0f69:0x261,_0x1a9ccf:0x287,_0x493ddb:0x2d3,_0x226746:0x29c,_0x1dfecc:0x36f,_0x265d81:0x4cc,_0x5aa538:0x389,_0x50bbce:0x379,_0xb15695:0x39f,_0x4068f5:0x381,_0xf56b85:0x383},_0x9126ae={_0x34210c:0x19a},_0x52f3a3={_0x368cfd:0x7b,_0x38cce5:0x46c},_0x7eb8b4=await this['fetchImpl'](this['githubApiUrl']+_0x5b10cb(_0x15ddda._0x2b4448,_0x15ddda._0x575f6b,0x3a2,_0x15ddda._0x4239ac),{'method':_0x134ef3(_0x15ddda._0x522584,0x204,_0x15ddda._0x5bf146,0x2a5),'headers':new Headers({'accept':'application/json','authorization':_0x134ef3(0x2a5,_0x15ddda._0x5e892c,_0x15ddda._0x2df7ee,0x304)+this[_0x134ef3(_0x15ddda._0xb2827e,_0x15ddda._0x23c26c,_0x15ddda._0x1b237d,0x2ad)],'editor-version':_0x134ef3(_0x15ddda._0x307deb,_0x15ddda._0x3b923a,_0x15ddda._0x232aef,_0x15ddda._0x10de3a),'user-agent':_0x5b10cb(_0x15ddda._0x54c054,_0x15ddda._0x24cc68,_0x15ddda._0x55572b,_0x15ddda._0xe0d703),'x-github-api-version':this[_0x134ef3(_0x15ddda._0x21d52a,_0x15ddda._0x33ae9d,_0x15ddda._0x8a34ad,0x2cd)]}),'signal':_0x2da7ce});function _0x5b10cb(_0xe75c2a,_0x48142f,_0x1e9d90,_0xfa3fe2){return _0xc7d8a6(_0xe75c2a-_0x52f3a3._0x368cfd,_0xe75c2a,_0x1e9d90-0x182,_0x1e9d90-_0x52f3a3._0x38cce5);}function _0x134ef3(_0x4af515,_0x1b7abb,_0x79478f,_0x161a70){return _0x74a064(_0x4af515-_0x9126ae._0x34210c,_0x1b7abb-0x14,_0x79478f-0x235,_0x1b7abb);}if(!_0x7eb8b4['ok'])return{'credential':{'kind':_0x5b10cb(_0x15ddda._0xc96466,_0x15ddda._0x1225d2,_0x15ddda._0x1f979a,0x396),'value':this[_0x5b10cb(0x4dd,0x466,_0x15ddda._0x3890ad,0x467)]},'endpoints':{'api':this[_0x5b10cb(0x3d4,0x27e,_0x15ddda._0x573dad,_0x15ddda._0x2fb7c5)]}};const _0x469db7=await _0x7eb8b4['json']();return{'credential':{'kind':'session-token','value':_0x469db7[_0x134ef3(_0x15ddda._0x5a59f0,_0x15ddda._0xcd0f69,_0x15ddda._0x1a9ccf,0x297)]??this[_0x5b10cb(0x3a9,0x382,0x462,0x50b)]},'endpoints':{'api':_0x469db7['endpoints']?.['api']??this[_0x134ef3(_0x15ddda._0x493ddb,0x1b8,0x235,0x274)],'originTracker':_0x469db7[_0x134ef3(0x2f1,0x2e8,_0x15ddda._0x226746,0x357)]?.['origin-tracker'],'proxy':_0x469db7[_0x134ef3(0x299,_0x15ddda._0x1dfecc,0x29c,0x25a)]?.[_0x5b10cb(_0x15ddda._0x265d81,_0x15ddda._0x5aa538,0x415,_0x15ddda._0x50bbce)],'telemetry':_0x469db7[_0x5b10cb(_0x15ddda._0xb15695,0x3ea,_0x15ddda._0x4068f5,_0x15ddda._0xf56b85)]?.['telemetry']}};}};function trimTrailingSlashes2(_0x5e5c33){return _0x5e5c33['replace'](/\/+$/,'');}function createModelInfo(_0xb9fce5){const _0x3fdfc3={_0x388b2b:0x22,_0x50d294:0x9,_0x34b4b7:0x1e,_0x1af95c:0x153,_0x2634af:0x8e,_0x5c450c:0x4cd,_0x200738:0x4bb,_0x3912b0:0x57b,_0x44a316:0x5be,_0x553427:0x542,_0x1e59b7:0x5c6,_0x284cd2:0x664,_0x95af02:0x6a},_0x109bab={_0x317fe5:0x156,_0x389e47:0xc7},_0x47f464={_0x504223:0x13e,_0x594aaa:0xd4,_0x5964ed:0x494},_0x39de40=_0xb9fce5['supported_endpoints']??_0xb9fce5[_0x58c4b2(_0x3fdfc3._0x388b2b,0x7a,0xca,0x2c)];function _0x455543(_0x38f6f9,_0xb9012c,_0x25b32f,_0x52b06c){return _0x74a064(_0x38f6f9-_0x47f464._0x504223,_0xb9012c-_0x47f464._0x594aaa,_0x25b32f-_0x47f464._0x5964ed,_0xb9012c);}const _0x3894e6=_0xb9fce5[_0x58c4b2(-_0x3fdfc3._0x50d294,0xa7,0x6d,-_0x3fdfc3._0x34b4b7)]?.[_0x58c4b2(0x239,_0x3fdfc3._0x1af95c,_0x3fdfc3._0x2634af,0x85)]?.[_0x455543(0x4bb,_0x3fdfc3._0x5c450c,_0x3fdfc3._0x200738,_0x3fdfc3._0x3912b0)];function _0x58c4b2(_0x2f0c79,_0x24a061,_0x497a55,_0x17cef7){return _0x74a064(_0x2f0c79-_0x109bab._0x317fe5,_0x24a061-_0x109bab._0x389e47,_0x24a061-0x8e,_0x497a55);}const _0x2b1b85=_0xb9fce5['capabilities']?.['limits']?.[_0x455543(_0x3fdfc3._0x44a316,_0x3fdfc3._0x553427,_0x3fdfc3._0x1e59b7,_0x3fdfc3._0x284cd2)],_0x4b297d=_0x3894e6!==void 0x0||_0x2b1b85!==void 0x0?{..._0x3894e6!==void 0x0?{'contextWindow':_0x3894e6}:{},..._0x2b1b85!==void 0x0?{'maxOutput':_0x2b1b85}:{}}:void 0x0;return{'id':_0xb9fce5['id'],'name':_0xb9fce5[_0x58c4b2(-0x9,0x40,-0x51,_0x3fdfc3._0x95af02)]??_0xb9fce5['id'],..._0x4b297d?{'limits':_0x4b297d}:{},..._0x39de40?{'supportedEndpoints':_0x39de40}:{}};}function deduplicateModels(_0x129bc7){const _0xad697e={_0x2a9cfe:0x1c8,_0x1bf738:0x258,_0x55ab41:0x158},_0xee84c3={_0x476029:0x1ac},_0x261e99={_0x1a0787:0x195,_0x504560:0x1f7};function _0x23fbb4(_0x13a453,_0x4c4cbf,_0x3578a7,_0x293ac8){return _0x74a064(_0x13a453-0x136,_0x4c4cbf-_0x261e99._0x1a0787,_0x13a453- -_0x261e99._0x504560,_0x293ac8);}const _0x14208d=new Map();for(const _0x3cb7da of _0x129bc7){!_0x14208d[_0x23fbb4(-_0xad697e._0x2a9cfe,-_0xad697e._0x1bf738,-0x290,-0x1b1)](_0x3cb7da['id'])&&_0x14208d[_0x23fbb4(-0xdb,-_0xad697e._0x55ab41,-0x14,-0xc5)](_0x3cb7da['id'],_0x3cb7da);}function _0x336d07(_0x3f8480,_0x307fc1,_0x5d1f85,_0x5d16f0){return _0x74a064(_0x3f8480-0x30,_0x307fc1-_0xee84c3._0x476029,_0x3f8480- -0x265,_0x307fc1);}return Array['from'](_0x14208d['values']());}function hasUserPromptContent(_0x1a8dee){const _0x2fc15e={_0x3b9551:0xe7,_0x52bebb:0xac,_0x53e889:0x2f3,_0x3d8fb0:0x2cd,_0x5829b3:0x1e7,_0x386173:0x85,_0x582a22:0x14f,_0x393bf1:0x1b3,_0x46c287:0x19d,_0x38ba50:0x162,_0x5b0947:0xdb,_0x379c45:0x1b3},_0x4dfad4={_0x5c843a:0x28,_0x35b80c:0x3c,_0x4d55e3:0x1d,_0x40ec2d:0x13a,_0x3abb25:0xee,_0x1f4833:0xc2,_0x586035:0xf3,_0x3f89bc:0xe1,_0x16d816:0xcc,_0xb5adc7:0xe6,_0xf8ded6:0x144,_0x5aa72f:0x1d1,_0x516bbe:0x11f,_0x55e392:0x1f2,_0x1a90b5:0xcd,_0x19c574:0x1cf,_0x1dc88b:0x169,_0x234452:0xbc},_0x5e9ed9={_0x2e5070:0x188,_0x304c13:0x19d},_0x511730={_0x11097c:0xb3,_0x3b285c:0x1a3};if(typeof _0x1a8dee===_0x2e56e0(-0x5a,-0xdd,-_0x2fc15e._0x3b9551,-_0x2fc15e._0x52bebb))return _0x1a8dee[_0x268d25(0x224,0x16e,0x202,0x22e)]()[_0x268d25(_0x2fc15e._0x53e889,_0x2fc15e._0x3d8fb0,_0x2fc15e._0x5829b3,0x2b9)]>0x0;if(!Array[_0x268d25(_0x2fc15e._0x386173,_0x2fc15e._0x582a22,_0x2fc15e._0x393bf1,_0x2fc15e._0x46c287)](_0x1a8dee))return![];function _0x268d25(_0x4781b5,_0x5330bf,_0x5a8c0f,_0xa5179e){return _0x74a064(_0x4781b5-0x20,_0x5330bf-_0x511730._0x11097c,_0x5330bf-_0x511730._0x3b285c,_0xa5179e);}function _0x2e56e0(_0x42730c,_0x575039,_0x54c72a,_0x277a2e){return _0x74a064(_0x42730c-_0x5e9ed9._0x2e5070,_0x575039-_0x5e9ed9._0x304c13,_0x54c72a- -0x71,_0x277a2e);}return _0x1a8dee[_0x2e56e0(-_0x2fc15e._0x38ba50,-0x19a,-_0x2fc15e._0x5b0947,-_0x2fc15e._0x379c45)](_0x1f446d=>{if(!_0x1f446d||typeof _0x1f446d!=='object')return![];function _0x23f361(_0x29347d,_0xa3562f,_0x75bb13,_0x42f59b){return _0x268d25(_0x29347d-0xb3,_0x29347d- -0x1f7,_0x75bb13-0x28,_0x75bb13);}const _0x381672=_0x1f446d;function _0x258834(_0x58d747,_0x50b514,_0x4c49c9,_0x18754d){return _0x2e56e0(_0x58d747-0x123,_0x50b514-0xed,_0x4c49c9- -0xb9,_0x18754d);}return(_0x381672[_0x23f361(-0xb,-_0x4dfad4._0x5c843a,_0x4dfad4._0x35b80c,_0x4dfad4._0x4d55e3)]===_0x23f361(-0xcb,-_0x4dfad4._0x40ec2d,-_0x4dfad4._0x3abb25,-_0x4dfad4._0x1f4833)||_0x381672[_0x258834(-0x162,-_0x4dfad4._0x586035,-_0x4dfad4._0x3f89bc,-_0x4dfad4._0x16d816)]===_0x258834(-0xcc,-_0x4dfad4._0xb5adc7,-_0x4dfad4._0xf8ded6,-0xd7))&&typeof _0x381672[_0x258834(-0x1be,-_0x4dfad4._0x5aa72f,-_0x4dfad4._0xf8ded6,-0x9c)]==='string'&&_0x381672[_0x258834(-0x64,-0x161,-0x144,-_0x4dfad4._0x516bbe)][_0x258834(-_0x4dfad4._0x55e392,-_0x4dfad4._0x1a90b5,-0x15f,-_0x4dfad4._0x19c574)]()[_0x23f361(0xd6,0xc7,_0x4dfad4._0x1dc88b,_0x4dfad4._0x234452)]>0x0;});}function _0x74a064(_0x234716,_0x346d0d,_0x2114cf,_0x55a54c){const _0x3916ed={_0x2ad9bd:0x15c};return _0x4762(_0x2114cf- -_0x3916ed._0x2ad9bd,_0x55a54c);}function _isUserPromptEntry(_0x27147a){const _0x32592b={_0x5c6f55:0x2ea,_0x2ba9e9:0x4e5,_0x4de8e2:0x4ec,_0x205cdd:0x517,_0x137193:0x516,_0x47cc93:0x1d9,_0x5f0814:0x2ea,_0x4b590b:0x460,_0x14530c:0x3b0,_0x1d68f0:0x2bf,_0x522d46:0x1ee},_0x437022={_0x882a62:0xf3,_0x4695e0:0x43e},_0x26d867={_0x511924:0x2b,_0x341ed2:0x34b};if(!_0x27147a||typeof _0x27147a!==_0x30ce9f(0x2a3,0x20b,_0x32592b._0x5c6f55,0x222))return![];const _0x52509a=_0x27147a;if(_0x52509a[_0x4ae934(_0x32592b._0x2ba9e9,_0x32592b._0x4de8e2,_0x32592b._0x205cdd,_0x32592b._0x137193)]!==_0x30ce9f(_0x32592b._0x47cc93,0x254,0x22b,0x2ab))return![];function _0x30ce9f(_0x1cea02,_0x1c7730,_0x209021,_0x549364){return _0xc7d8a6(_0x1cea02-0x190,_0x1c7730,_0x209021-_0x26d867._0x511924,_0x1cea02-_0x26d867._0x341ed2);}if(_0x52509a[_0x30ce9f(0x242,0x23d,0x1aa,_0x32592b._0x5f0814)]!==void 0x0&&_0x52509a[_0x4ae934(0x51e,0x487,_0x32592b._0x4b590b,_0x32592b._0x14530c)]!=='message')return![];function _0x4ae934(_0x397f9b,_0x896d29,_0x254528,_0x4f633d){return _0x74a064(_0x397f9b-_0x437022._0x882a62,_0x896d29-0xfe,_0x896d29-_0x437022._0x4695e0,_0x397f9b);}return hasUserPromptContent(_0x52509a[_0x30ce9f(_0x32592b._0x1d68f0,0x34d,_0x32592b._0x522d46,0x39e)]);}function _0x4762(_0x503aa1,_0x3f9693){_0x503aa1=_0x503aa1-0xd8;const _0xc15593=_0xc155();let _0x4762ed=_0xc15593[_0x503aa1];if(_0x4762['Axlnft']===undefined){var _0x24a6b6=function(_0x325e34){const _0x143505='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4c15c5='',_0x56ddf3='';for(let _0x4cf5d7=0x0,_0x40cd49,_0x141ec9,_0x2a31b6=0x0;_0x141ec9=_0x325e34['charAt'](_0x2a31b6++);~_0x141ec9&&(_0x40cd49=_0x4cf5d7%0x4?_0x40cd49*0x40+_0x141ec9:_0x141ec9,_0x4cf5d7++%0x4)?_0x4c15c5+=String['fromCharCode'](0xff&_0x40cd49>>(-0x2*_0x4cf5d7&0x6)):0x0){_0x141ec9=_0x143505['indexOf'](_0x141ec9);}for(let _0x17c2d1=0x0,_0x59af70=_0x4c15c5['length'];_0x17c2d1<_0x59af70;_0x17c2d1++){_0x56ddf3+='%'+('00'+_0x4c15c5['charCodeAt'](_0x17c2d1)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x56ddf3);};_0x4762['fgQMPO']=_0x24a6b6,_0x4762['CGghnP']={},_0x4762['Axlnft']=!![];}const _0x4b32f9=_0xc15593[0x0],_0x4b8c8f=_0x503aa1+_0x4b32f9,_0x248d7c=_0x4762['CGghnP'][_0x4b8c8f];return!_0x248d7c?(_0x4762ed=_0x4762['fgQMPO'](_0x4762ed),_0x4762['CGghnP'][_0x4b8c8f]=_0x4762ed):_0x4762ed=_0x248d7c,_0x4762ed;}function determineInitiator(_0x203315){const _0x326f30={_0x38046b:0x8,_0x11026b:0x38,_0x572801:0x16b,_0x2d38fe:0x134,_0x405733:0x171,_0x63aab0:0x22d,_0xf5ce5f:0x18b,_0xeb1b9d:0x169,_0x298d26:0x8a,_0x3c8d7c:0x16f,_0x51e05a:0x1a8,_0x53a2b8:0x15e,_0xf81b6:0x29,_0x3915f9:0x23f,_0x4bd7b3:0x154,_0x3c3689:0x64},_0x165aa7={_0x3f4976:0x119,_0x2abba3:0x7e},_0x358277={_0x9cd6e4:0x137,_0x1cc9c3:0x156};if(!_0x203315||typeof _0x203315!=='object')return _0x2992b2(-0x2d,-_0x326f30._0x38046b,-_0x326f30._0x11026b,0x29);function _0x2992b2(_0x2f9535,_0x3d1fc4,_0x4b2537,_0x23ad21){return _0x74a064(_0x2f9535-_0x358277._0x9cd6e4,_0x3d1fc4-_0x358277._0x1cc9c3,_0x23ad21- -0x11b,_0x4b2537);}function _0x6559a3(_0xb60b46,_0x3db00d,_0xd17bed,_0x50b1f3){return _0x74a064(_0xb60b46-0x53,_0x3db00d-_0x165aa7._0x3f4976,_0x3db00d-_0x165aa7._0x2abba3,_0x50b1f3);}const _0x32487d=_0x6559a3(0x92,0x175,_0x326f30._0x572801,_0x326f30._0x2d38fe)in _0x203315?_0x203315[_0x6559a3(_0x326f30._0x405733,0x175,_0x326f30._0x63aab0,_0x326f30._0xf5ce5f)]:_0x6559a3(0x129,_0x326f30._0x2d38fe,0x1f0,0x1e8)in _0x203315?_0x203315['input']:void 0x0;if(!Array[_0x2992b2(-0xe0,-_0x326f30._0xeb1b9d,-_0x326f30._0x298d26,-_0x326f30._0x3c8d7c)](_0x32487d)||_0x32487d[_0x6559a3(0x11e,_0x326f30._0x51e05a,0xd6,_0x326f30._0x53a2b8)]===0x0)return _0x2992b2(0x84,0x53,-0x18,_0x326f30._0xf81b6);return _isUserPromptEntry(_0x32487d[_0x32487d[_0x6559a3(_0x326f30._0x3915f9,_0x326f30._0x51e05a,_0x326f30._0x4bd7b3,0x13c)]-0x1])?'user':_0x2992b2(_0x326f30._0x3c3689,0x7d,-0x1e,0x29);}function isUnsupportedApiForModel(_0x1ae4cd){const _0x48d311={_0x24611b:0xb6},_0x59900e={_0x52798e:0x16f,_0x163194:0x1f1};function _0x3cd1ac(_0xe4303b,_0xa7a9d9,_0x2c18dc,_0x34ecf9){return _0xc7d8a6(_0xe4303b-_0x59900e._0x52798e,_0xa7a9d9,_0x2c18dc-_0x59900e._0x163194,_0x34ecf9-0x108);}return _0x1ae4cd[_0x3cd1ac(-0x184,-0x192,-0x147,-_0x48d311._0x24611b)]('unsupported_api_for_model');}function createResponseError(_0x5eb812,_0x445b01){const _0xb25f58={_0x151380:0x45d,_0x2b30b8:0x3b9,_0x23895e:0x35e},_0x10bc17={_0x43ab4a:0xa0};if(_0x5eb812===0x191||_0x5eb812===0x193)return new Error('Authentication\x20failed.\x20Please\x20check\x20your\x20API\x20key.');function _0x5ad168(_0x216ab3,_0x1f7384,_0x3cc9dd,_0x566b8e){return _0xc7d8a6(_0x216ab3-0x169,_0x3cc9dd,_0x3cc9dd-_0x10bc17._0x43ab4a,_0x1f7384-0x448);}if(_0x5eb812===0x198||_0x5eb812===0x1ad)return new Error(_0x5ad168(_0xb25f58._0x151380,_0xb25f58._0x2b30b8,_0xb25f58._0x23895e,0x46f));if(_0x5eb812===0x190)return new Error('Invalid\x20request:\x20'+_0x445b01);return new Error(_0x445b01||'GitHub\x20API\x20error\x20'+_0x5eb812);}var GitHubModel=class extends OpenAiModel{['anthropicDelegate'];[_0x74a064(0x142,0x133,0xad,0xc6)]=new Map();[_0xc7d8a6(-0x93,-0x5b,-0x79,-0xad)];constructor(_0x5bab59={}){const _0x6c9cb={_0x1c396f:0x3e5,_0x57ced4:0x38c,_0x1d2752:0x470,_0x5f5af7:0x409,_0x14e58d:0x514,_0x23470d:0x539,_0x3da64a:0x470,_0x42d489:0x3e9,_0x59ac02:0x466,_0x28aee9:0x3e4,_0x180a83:0x2f6,_0x20778c:0x3c0,_0x577c05:0x270,_0x23e5b9:0x2f7,_0x5b9c15:0x2e7,_0x714777:0x346,_0x1c7a27:0x38e,_0x444283:0x476,_0x4c9a8a:0x3c7,_0x581482:0x472,_0x208831:0x2c3,_0x33f99b:0x33c,_0x1aa50a:0x1f2,_0x28ce04:0x2b6,_0x3feb94:0x221,_0x2d8db1:0x5a4,_0x39218d:0x552,_0xd79d7d:0x483,_0x441899:0x53d,_0xddf0c6:0x4a5,_0x1a9e91:0x4b1,_0x4bd3dd:0x366,_0x1de432:0x346,_0x37a934:0x3e6,_0x5193d6:0x356,_0x49733e:0x364,_0x5128fa:0x3cd,_0x4fdbcc:0x43f,_0x1ce2b1:0x55d,_0x2d6ced:0x5ca,_0x49c263:0x363,_0x160a8a:0x342,_0x1612b8:0x5c4,_0xf432a:0x5df,_0x4c8d34:0x435,_0x53675e:0x505,_0x795700:0x481,_0x133956:0x48e},_0x57f2ac={_0x54b345:0x4e7},_0x569631={_0x2667ab:0xb3,_0x49f4cc:0x47a},_0x10329e=trimTrailingSlashes2(_0x5bab59['baseUrl']??'https://api.individual.githubcopilot.com');function _0x482b6b(_0x94bb4a,_0x446e79,_0x180b4a,_0x16fe8f){return _0xc7d8a6(_0x94bb4a-0x132,_0x94bb4a,_0x180b4a-_0x569631._0x2667ab,_0x446e79-_0x569631._0x49f4cc);}const _0x485de6=_0x5bab59[_0x482b6b(0x340,_0x6c9cb._0x1c396f,0x383,0x303)]??globalThis['fetch'],_0x49914e=_0x5bab59['providerSessionResolver']??(_0x5bab59[_0x482b6b(_0x6c9cb._0x57ced4,_0x6c9cb._0x1d2752,_0x6c9cb._0x5f5af7,_0x6c9cb._0x14e58d)]?new GitHubAccessTokenResolver({'accessToken':_0x5bab59[_0x482b6b(_0x6c9cb._0x23470d,_0x6c9cb._0x3da64a,_0x6c9cb._0x42d489,_0x6c9cb._0x59ac02)],'baseUrl':_0x10329e,'fetch':_0x485de6,'githubApiUrl':_0x5bab59[_0x482b6b(0x3c9,_0x6c9cb._0x28aee9,0x440,0x44c)]??_0x482b6b(0x370,0x3b9,_0x6c9cb._0x180a83,_0x6c9cb._0x20778c),'tokenExchangeApiVersion':_0x5bab59[_0x482b6b(_0x6c9cb._0x577c05,_0x6c9cb._0x23e5b9,_0x6c9cb._0x5b9c15,0x2d3)]??_0x482b6b(_0x6c9cb._0x714777,_0x6c9cb._0x1c7a27,0x45f,0x449)}):void 0x0),_0x3664dc=_0x5bab59[_0x482b6b(_0x6c9cb._0x444283,_0x6c9cb._0x4c9a8a,0x2e8,_0x6c9cb._0x581482)]??_0x482b6b(_0x6c9cb._0x208831,_0x6c9cb._0x33f99b,0x3b6,0x2b3),_0x13773d=_0x5bab59[_0x482b6b(_0x6c9cb._0x1aa50a,_0x6c9cb._0x28ce04,_0x6c9cb._0x3feb94,0x2b4)]??'copilot-chat/0.31.3',_0x996213=({body:_0x1b5439})=>{return{'editor-plugin-version':_0x13773d,'editor-version':_0x3664dc,'x-initiator':determineInitiator(_0x1b5439),'x-request-id':randomUUID()};};function _0x129460(_0x13928f,_0x1c6bc4,_0x2e1380,_0x40d5af){return _0x74a064(_0x13928f-0x147,_0x1c6bc4-0x1a3,_0x1c6bc4-_0x57f2ac._0x54b345,_0x2e1380);}const _0x5a2e43={'apiKey':_0x5bab59['apiKey'],'baseUrl':_0x10329e,'fetch':_0x485de6,'maxTokens':_0x5bab59[_0x129460(_0x6c9cb._0x2d8db1,0x5bd,_0x6c9cb._0x39218d,0x5e6)],'model':_0x5bab59[_0x129460(_0x6c9cb._0xd79d7d,_0x6c9cb._0x441899,0x50f,_0x6c9cb._0xddf0c6)],'reasoning':_0x5bab59[_0x482b6b(0x46a,0x450,_0x6c9cb._0x1a9e91,_0x6c9cb._0x14e58d)],'providerSessionResolver':_0x49914e,'requestMutators':_0x5bab59[_0x482b6b(_0x6c9cb._0x4bd3dd,_0x6c9cb._0x1de432,_0x6c9cb._0x37a934,0x41b)],'headerResolver':_0x996213};super(_0x5a2e43),this[_0x482b6b(0x357,0x3cd,_0x6c9cb._0x5193d6,0x321)]=_0x5bab59[_0x482b6b(_0x6c9cb._0x49733e,_0x6c9cb._0x5128fa,0x42b,_0x6c9cb._0x4fdbcc)]??_0x129460(0x52e,_0x6c9cb._0x1ce2b1,0x4ce,_0x6c9cb._0x2d6ced),this[_0x482b6b(0x43d,_0x6c9cb._0x49c263,0x3f0,0x3c9)]=new AnthropicModel({'apiKey':_0x5bab59[_0x482b6b(0x489,0x3ea,_0x6c9cb._0x160a8a,0x3b0)],'authScheme':_0x129460(0x5d9,_0x6c9cb._0x1612b8,_0x6c9cb._0xf432a,0x52f),'baseUrl':_0x10329e,'fetch':_0x485de6,'headerResolver':_0x996213,'maxTokens':_0x5bab59[_0x482b6b(0x4e4,0x3fe,0x432,0x36d)],'model':_0x5bab59['model'],'reasoning':_0x5bab59['reasoning'],'providerSessionResolver':_0x49914e,'requestMutators':_0x5bab59[_0x129460(_0x6c9cb._0x4c8d34,_0x6c9cb._0x53675e,_0x6c9cb._0x795700,_0x6c9cb._0x133956)]});}['createMissingCredentialError'](){return new Error('GitHubModel\x20requires\x20an\x20apiKey,\x20accessToken,\x20or\x20providerSessionResolver');}[_0x74a064(-0x7f,-0x6a,0x9,-0x23)](_0x10a871){const _0x348858={_0x4b834:0xbc,_0x4b607c:0x63,_0x2f21cb:0x1e3,_0x14e16e:0x223,_0x219e0d:0xe1,_0x4fb6df:0x193,_0x575ce9:0x182,_0x48d4d6:0x13c,_0x14d5c9:0x184,_0x40bc27:0x1d3,_0x535e8d:0x19f},_0x4ef9b9={_0x25adef:0xce},_0x39e9ed=this['modelEndpointCache'][_0x368015(_0x348858._0x4b834,0x131,0xa8,_0x348858._0x4b607c)](_0x10a871);function _0x273e26(_0x5b6816,_0x57b37b,_0x35232a,_0x184478){return _0x74a064(_0x5b6816-0x46,_0x57b37b-_0x4ef9b9._0x25adef,_0x5b6816-0x1f0,_0x57b37b);}function _0x368015(_0x573578,_0x47e3c,_0x4b9c52,_0x500fe2){return _0x74a064(_0x573578-0x9b,_0x47e3c-0x19,_0x4b9c52-0x2f,_0x573578);}if(!_0x39e9ed)return![];return!_0x39e9ed[_0x273e26(0x184,_0x348858._0x2f21cb,_0x348858._0x14e16e,_0x348858._0x219e0d)](_0x273e26(_0x348858._0x4fb6df,0x256,_0x348858._0x575ce9,_0x348858._0x48d4d6))&&_0x39e9ed[_0x273e26(_0x348858._0x14d5c9,_0x348858._0x40bc27,0x172,0xde)](_0x273e26(_0x348858._0x535e8d,0x116,0x25f,0x1ed));}[_0x74a064(0x152,0x11e,0x96,0x43)](_0x5adf28){const _0x429861={_0x52d04c:0xa4,_0xb313c1:0x1ca,_0x4cc044:0x1ac,_0x2d76bb:0xf3,_0x2670fd:0x1cf,_0x11479d:0xa5,_0x365f71:0xa5,_0x34d8cc:0x9e,_0x204922:0x1df,_0x198a35:0x1bd,_0x491f3e:0x138,_0xe2c086:0x21e,_0x59fef3:0x17b,_0x2ccc35:0x148,_0x1128a9:0x9e,_0xbf968d:0x81,_0x224444:0xfb},_0x5437c6={_0x2f118d:0x18d},_0x43dee3=this[_0x349ccf(-0x83,-0xe8,-0xe6,-_0x429861._0x52d04c)][_0x5e2bf3(-_0x429861._0xb313c1,-0x154,-0xea,-_0x429861._0x4cc044)](_0x5adf28[_0x5e2bf3(-0xb2,-0x177,-_0x429861._0x2d76bb,-_0x429861._0x2670fd)]);function _0x349ccf(_0x598eb8,_0x857291,_0x4a4546,_0x3aebe1){return _0xc7d8a6(_0x598eb8-0x4c,_0x857291,_0x4a4546-_0x5437c6._0x2f118d,_0x3aebe1-0x1);}if(!_0x43dee3)return![];if(resolveOpenAiReasoningConfig(_0x5adf28[_0x5e2bf3(-_0x429861._0x11479d,-_0x429861._0x365f71,-0xdb,-_0x429861._0x34d8cc)]))return _0x43dee3[_0x349ccf(-0x199,-_0x429861._0x204922,-0xf1,-_0x429861._0x198a35)](_0x5e2bf3(-_0x429861._0x491f3e,-_0x429861._0xe2c086,-_0x429861._0x59fef3,-0x23b));function _0x5e2bf3(_0x3463ff,_0x2f1498,_0x423cbe,_0x1e3d22){return _0x74a064(_0x3463ff-0xc3,_0x2f1498-0x97,_0x2f1498- -0x1cd,_0x423cbe);}return this[_0x349ccf(-0x143,-0xd1,-0x1fd,-_0x429861._0x2ccc35)](_0x5adf28[_0x349ccf(-_0x429861._0x1128a9,-_0x429861._0xbf968d,-0xc6,-_0x429861._0x224444)]);}['markModelAsResponsesOnly'](_0x3c45de){const _0x1d7135={_0x20f2f0:0x323,_0x58cdf3:0x2c3,_0x16e570:0x3d9,_0x45c99f:0x349,_0x33cdbd:0x11a,_0x1e5291:0x7e,_0x58b61a:0x5f,_0x5797d2:0x109},_0x3e5a98={_0x57fd67:0x185,_0x26b8ef:0x1b8,_0x41b669:0xb8};function _0xf66ed4(_0x4f281e,_0x5816c0,_0x2fe86d,_0x483a83){return _0x74a064(_0x4f281e-0x1c5,_0x5816c0-0xa7,_0x5816c0-0x216,_0x483a83);}function _0x478249(_0x3721fa,_0x3a055f,_0x5b7884,_0x207373){return _0x74a064(_0x3721fa-_0x3e5a98._0x57fd67,_0x3a055f-_0x3e5a98._0x26b8ef,_0x207373- -_0x3e5a98._0x41b669,_0x3a055f);}this[_0xf66ed4(_0x1d7135._0x20f2f0,_0x1d7135._0x58cdf3,0x2e7,0x1f4)][_0xf66ed4(_0x1d7135._0x16e570,0x332,0x3cd,_0x1d7135._0x45c99f)](_0x3c45de,[_0x478249(-_0x1d7135._0x33cdbd,-_0x1d7135._0x1e5291,-_0x1d7135._0x58b61a,-_0x1d7135._0x5797d2)]);}['mapApiError'](_0x301816){const _0x182c40={_0x5af0a6:0x2be,_0x25eeaf:0x1f6,_0x40beaf:0x2dc,_0x3e6b96:0xaa,_0x390ff4:0x76,_0x349111:0x97,_0x4aa272:0xbe,_0x3a38a4:0x146},_0x1ff733={_0x251e2a:0x16,_0x28fcba:0x43};if(_0x301816 instanceof OpenAiApiError)return createResponseError(_0x301816[_0x2e6ff9(_0x182c40._0x5af0a6,_0x182c40._0x25eeaf,0x28a,_0x182c40._0x40beaf)],_0x301816[_0x1a4536(_0x182c40._0x3e6b96,_0x182c40._0x390ff4,0x64,0xd8)]||_0x301816[_0x1a4536(_0x182c40._0x349111,_0x182c40._0x4aa272,_0x182c40._0x3a38a4,0xec)]);function _0x2e6ff9(_0x1b7e2d,_0x5d2481,_0x85549e,_0x1e0731){return _0xc7d8a6(_0x1b7e2d-0x17f,_0x85549e,_0x85549e-0x74,_0x1b7e2d-0x3a3);}function _0x1a4536(_0x428c1e,_0x14cf10,_0x21c8bc,_0x29007d){return _0x74a064(_0x428c1e-0x41,_0x14cf10-_0x1ff733._0x251e2a,_0x29007d-_0x1ff733._0x28fcba,_0x428c1e);}return _0x301816;}['completeViaConfiguredSurface'](_0x211d4a,_0x4cea0d){const _0x4b8e5a={_0x545764:0x9e,_0x6b5fd4:0x19b,_0x1ffd50:0x10f,_0x4ac6e0:0x3ac,_0x433e5b:0x446,_0x57e5df:0x363,_0x3ebebe:0x6c,_0x4ddb2e:0x3cd,_0x17c4bc:0x465,_0x3a12d6:0x526,_0x4cd451:0x4c5,_0x44505e:0x473,_0x5c813f:0x430,_0x25a8a0:0x40a,_0x5e89c4:0x489,_0x110fbb:0x2c7,_0x563f6b:0x13b,_0x27d109:0xe8,_0x280cb3:0x186,_0x56623d:0x17a,_0x163d05:0x11,_0x18da7d:0x123,_0x83ef7a:0x1a5,_0x48d851:0xee,_0x2e97d3:0x1a0},_0x3f9dbd={_0x12bf17:0x4d},_0x556ac6={_0x1f51b8:0x1a7,_0x4bd2c5:0x70,_0x2257a2:0x353};function _0x9344d5(_0x8efcbe,_0x382cb6,_0x49e805,_0x2ce687){return _0x74a064(_0x8efcbe-_0x556ac6._0x1f51b8,_0x382cb6-_0x556ac6._0x4bd2c5,_0x2ce687-_0x556ac6._0x2257a2,_0x8efcbe);}switch(this[_0xd52a88(_0x4b8e5a._0x545764,0xf2,_0x4b8e5a._0x6b5fd4,_0x4b8e5a._0x1ffd50)]){case _0x9344d5(_0x4b8e5a._0x4ac6e0,_0x4b8e5a._0x433e5b,0x3eb,_0x4b8e5a._0x57e5df):return this[_0xd52a88(_0x4b8e5a._0x3ebebe,0x88,0x12d,-0x2c)][_0x9344d5(0x309,0x3ae,0x458,_0x4b8e5a._0x4ddb2e)](_0x211d4a,_0x4cea0d);case _0x9344d5(0x402,0x464,0x527,_0x4b8e5a._0x17c4bc):return this[_0x9344d5(_0x4b8e5a._0x3a12d6,_0x4b8e5a._0x4cd451,0x428,0x443)](_0x211d4a,_0x4cea0d);case _0x9344d5(_0x4b8e5a._0x44505e,0x4a0,_0x4b8e5a._0x5c813f,_0x4b8e5a._0x25a8a0):return this[_0x9344d5(_0x4b8e5a._0x5e89c4,_0x4b8e5a._0x110fbb,0x312,0x3ae)](_0x211d4a,_0x4cea0d);case _0xd52a88(_0x4b8e5a._0x563f6b,_0x4b8e5a._0x27d109,_0x4b8e5a._0x280cb3,_0x4b8e5a._0x56623d):return this[_0xd52a88(-0x6b,0x46,-0x44,0xcd)](_0x211d4a,_0x4cea0d);case _0xd52a88(_0x4b8e5a._0x163d05,0xc3,0x102,0x28):return this[_0xd52a88(0x171,0xc7,_0x4b8e5a._0x18da7d,_0x4b8e5a._0x83ef7a)](_0x211d4a,_0x4cea0d);}function _0xd52a88(_0x89b1b5,_0x48c399,_0x28c830,_0x26a4e7){return _0x74a064(_0x89b1b5-0x1ca,_0x48c399-0x45,_0x48c399-_0x3f9dbd._0x12bf17,_0x89b1b5);}throw new Error(_0xd52a88(0xa0,_0x4b8e5a._0x48d851,_0x4b8e5a._0x2e97d3,0x36)+String(this[_0xd52a88(0xc8,0xf2,0xde,0x1a7)]));}['streamViaConfiguredSurface'](_0x3acb88,_0x4489b2){const _0x335c3e={_0x3db27f:0x9b,_0x2c4405:0xa2,_0x2ec88f:0x568,_0x4e3214:0x527,_0x1066de:0x5f3,_0x48d1b5:0x573,_0x4a89f1:0x55f,_0x4e056b:0x5f9,_0x6cfd7f:0x648,_0x2c9ed3:0x107,_0x32a369:0x128,_0x340827:0x587,_0x246017:0x676,_0x42153e:0x704,_0x54f782:0x41f,_0x903b49:0x424,_0x562774:0x4c4,_0x40dd1a:0x4cd,_0x4e98d8:0x192,_0x3d95fe:0xd1,_0xcadabf:0x520,_0x259b66:0x698},_0x148087={_0x40e4c3:0x10a},_0x24e7b9={_0x50a8c1:0x1f1};function _0x2e00b7(_0x459d8a,_0x53036f,_0x270d71,_0x299ef2){return _0x74a064(_0x459d8a-0x100,_0x53036f-_0x24e7b9._0x50a8c1,_0x299ef2-0x524,_0x270d71);}function _0x36cd87(_0x1f663f,_0x47c065,_0x574f18,_0x387b0c){return _0xc7d8a6(_0x1f663f-_0x148087._0x40e4c3,_0x387b0c,_0x574f18-0x14d,_0x574f18-0xb);}switch(this[_0x36cd87(-_0x335c3e._0x3db27f,-0xce,-_0x335c3e._0x2c4405,-0x10d)]){case _0x2e00b7(0x56e,_0x335c3e._0x2ec88f,0x60b,0x534):return this[_0x2e00b7(_0x335c3e._0x4e3214,_0x335c3e._0x1066de,_0x335c3e._0x48d1b5,_0x335c3e._0x4a89f1)][_0x2e00b7(_0x335c3e._0x4e056b,_0x335c3e._0x6cfd7f,0x505,0x566)](_0x3acb88,_0x4489b2);case'openai-chat-completions':return this[_0x36cd87(-0xe1,-_0x335c3e._0x2c9ed3,-_0x335c3e._0x32a369,-0xe7)](_0x3acb88,_0x4489b2);case _0x2e00b7(0x692,0x5a2,_0x335c3e._0x340827,0x5db):return this[_0x2e00b7(0x624,_0x335c3e._0x246017,_0x335c3e._0x42153e,0x61e)](_0x3acb88,_0x4489b2);case'openai-responses-ws':return this[_0x2e00b7(_0x335c3e._0x54f782,_0x335c3e._0x903b49,_0x335c3e._0x562774,_0x335c3e._0x40dd1a)](_0x3acb88,_0x4489b2);case _0x36cd87(-0xbf,-_0x335c3e._0x4e98d8,-_0x335c3e._0x3d95fe,-0x77):return this['stream'](_0x3acb88,_0x4489b2);}throw new Error('Unsupported\x20GitHub\x20model\x20surface:\x20'+String(this[_0x2e00b7(0x545,_0x335c3e._0xcadabf,_0x335c3e._0x259b66,0x5c9)]));}async[_0xc7d8a6(-0xbf,-0x97,-0x192,-0xd8)](_0xfd69a1,_0x38fe27){const _0xd98e11={_0x8743e0:0x104,_0x1e250b:0x480,_0x5ddf47:0x436,_0x1d49bc:0x42c,_0x5c8791:0x4e7,_0x2dfa55:0x4b9,_0x487ca2:0x455,_0x4f471d:0x376,_0x28ae60:0xa8,_0x122b9a:0xd4,_0x24695d:0x164,_0xa7420b:0x4,_0x40fb68:0x359,_0x356ab0:0x37b,_0x37602a:0x15d,_0x5e262d:0xb1,_0x1e79dc:0x28b,_0x3cf2cb:0xf0},_0x2131f7=this[_0x13e58a(0x132,0x132,_0xd98e11._0x8743e0,0x176)](_0xfd69a1);function _0x12ccfb(_0x55871f,_0x2532a3,_0x1b1d35,_0x5c40ed){return _0x74a064(_0x55871f-0x1a2,_0x2532a3-0x25,_0x2532a3-0x3c0,_0x55871f);}if(this['surface']!==_0x12ccfb(_0xd98e11._0x1e250b,_0xd98e11._0x5ddf47,_0xd98e11._0x1d49bc,0x357))return this['completeViaConfiguredSurface'](_0x2131f7,_0x38fe27);function _0x13e58a(_0x37b5fe,_0x5ca761,_0x263626,_0x3adf69){return _0xc7d8a6(_0x37b5fe-0x189,_0x263626,_0x263626-0x16d,_0x37b5fe-0x254);}if(this[_0x12ccfb(_0xd98e11._0x5c8791,0x456,0x375,_0xd98e11._0x2dfa55)](_0x2131f7))return this['response'](_0x2131f7,_0x38fe27);try{return await this['completeViaChatCompletionsSurface'](_0x2131f7,_0x38fe27);}catch(_0x5b73c0){if(_0x5b73c0 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x5b73c0[_0x12ccfb(0x422,_0xd98e11._0x487ca2,0x3eb,_0xd98e11._0x4f471d)]))return this[_0x13e58a(_0xd98e11._0x28ae60,_0xd98e11._0x122b9a,_0xd98e11._0x24695d,_0xd98e11._0xa7420b)](_0x2131f7[_0x12ccfb(_0xd98e11._0x40fb68,0x416,_0xd98e11._0x356ab0,0x4b2)]),this[_0x13e58a(_0xd98e11._0x37602a,0x1f4,0x161,_0xd98e11._0x5e262d)](_0x2131f7,_0x38fe27);throw this[_0x13e58a(0x1d0,0x144,_0xd98e11._0x1e79dc,_0xd98e11._0x3cf2cb)](_0x5b73c0);}throw _0x5b73c0;}}async*[_0x74a064(-0x4c,0x103,0x42,0x1f)](_0x14c9ec,_0x47c269){const _0x43fd99={_0x30283f:0x371,_0x4b28e2:0x297,_0x23a3d3:0x302,_0x44badf:0x202,_0x1eb6a7:0x248,_0x3cfef3:0xee,_0x3073b7:0x1c7,_0x5cfec6:0x272,_0x5da7ce:0x353,_0x293c55:0x363,_0x177091:0x23b,_0xad2203:0x2e7,_0xcbae49:0x254,_0x309fcc:0x1fe,_0x3c3b8f:0x331,_0x260ac3:0x235,_0x147ebf:0x1ec,_0x40f1ad:0x140,_0x1fd1dd:0x16a,_0x4bd925:0x2e7,_0x1d7dcd:0x29e,_0x27b4a5:0x2aa},_0x3042e8={_0x10256f:0xda},_0x4ac05b={_0x5571fe:0x1b9,_0x3a4aa5:0xcd};function _0x37da30(_0x4584c4,_0x3a4039,_0x57645e,_0x49c868){return _0x74a064(_0x4584c4-_0x4ac05b._0x5571fe,_0x3a4039-_0x4ac05b._0x3a4aa5,_0x57645e-0x267,_0x4584c4);}function _0x1c4c1e(_0xc03e33,_0x14ba90,_0x565baa,_0x148d7e){return _0xc7d8a6(_0xc03e33-_0x3042e8._0x10256f,_0x14ba90,_0x565baa-0xba,_0x565baa-0x33f);}const _0x9a4b73=this[_0x37da30(_0x43fd99._0x30283f,0x272,_0x43fd99._0x4b28e2,0x300)](_0x14c9ec);if(this[_0x1c4c1e(0x1f8,0x2b6,0x292,0x308)]!==_0x1c4c1e(_0x43fd99._0x23a3d3,0x212,0x263,_0x43fd99._0x44badf)){yield*this[_0x1c4c1e(_0x43fd99._0x1eb6a7,_0x43fd99._0x3cfef3,_0x43fd99._0x3073b7,_0x43fd99._0x5cfec6)](_0x9a4b73,_0x47c269);return;}if(this[_0x37da30(_0x43fd99._0x5da7ce,_0x43fd99._0x293c55,0x2fd,0x35d)](_0x9a4b73)){yield*this[_0x1c4c1e(0x2da,_0x43fd99._0x177091,_0x43fd99._0xad2203,_0x43fd99._0xcbae49)](_0x9a4b73,_0x47c269);return;}try{yield*this[_0x37da30(_0x43fd99._0x309fcc,0x263,0x2d9,_0x43fd99._0x3c3b8f)](_0x9a4b73,_0x47c269);}catch(_0x3d5212){if(_0x3d5212 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x3d5212[_0x1c4c1e(_0x43fd99._0x260ac3,_0x43fd99._0x147ebf,0x282,0x2eb)])){this[_0x1c4c1e(0x1e4,_0x43fd99._0x40f1ad,0x193,0x125)](_0x9a4b73[_0x1c4c1e(0x19c,_0x43fd99._0x1fd1dd,0x243,0x31e)]),yield*this[_0x1c4c1e(0x28c,0x2ec,_0x43fd99._0x4bd925,0x2da)](_0x9a4b73,_0x47c269);return;}throw this[_0x37da30(0x40e,_0x43fd99._0x1d7dcd,0x335,_0x43fd99._0x27b4a5)](_0x3d5212);}throw _0x3d5212;}}async[_0xc7d8a6(0x3a,0xa9,-0xcb,-0x3a)](_0x3b57fa){const _0x1de6e6={_0x3b1718:0x117,_0x2bde8c:0xdf,_0x526429:0xd2,_0x41c7ed:0x57,_0x5df607:0x160,_0x460ed5:0x7c,_0x162b77:0xc8,_0x3e9b31:0x172,_0x5a421a:0x143,_0x95cdb:0x2a,_0x1f0e84:0x43,_0xf932cf:0xbc,_0xadfd6c:0x12d,_0x4bc323:0x180},_0x24c2f4={_0xcf6652:0x21,_0x29dc68:0x31},_0x3b446a={_0x4ada23:0x3b3,_0x3606ae:0x3ca,_0xc9b20e:0x1b5,_0x456900:0x435,_0x26c22e:0x2d6,_0x1e08d9:0x384},_0x173e01={_0x35d4d4:0x14e},_0x18ae2e={_0x566fb6:0x43,_0x5ebc9b:0x14};function _0x35da26(_0x2f9c10,_0x16caec,_0x4555c7,_0x1fab99){return _0x74a064(_0x2f9c10-_0x18ae2e._0x566fb6,_0x16caec-_0x18ae2e._0x5ebc9b,_0x1fab99-0x96,_0x16caec);}const _0x1b6b8d=await this[_0x1556c9(-_0x1de6e6._0x3b1718,-_0x1de6e6._0x2bde8c,-_0x1de6e6._0x526429,-_0x1de6e6._0x41c7ed)]({'path':_0x35da26(0xcf,_0x1de6e6._0x5df607,_0x1de6e6._0x460ed5,_0x1de6e6._0x162b77),'method':_0x1556c9(-_0x1de6e6._0x3e9b31,-_0x1de6e6._0x5a421a,-0x12a,-0x190),'signal':_0x3b57fa});if(!_0x1b6b8d['ok'])throw this[_0x1556c9(_0x1de6e6._0x95cdb,-0x78,-_0x1de6e6._0x1f0e84,-0xb5)](await this['toApiError'](_0x1b6b8d));const _0x1822eb=await _0x1b6b8d[_0x35da26(-0x5c,0xf1,0x105,0x28)](),_0x57988d=(_0x1822eb[_0x1556c9(-_0x1de6e6._0xf932cf,-_0x1de6e6._0xadfd6c,-0x22e,-_0x1de6e6._0x4bc323)]??[])['map'](_0x310c3b=>{const _0x2e4c67={_0x57dec3:0x79,_0x4b57cd:0xf2,_0xa97186:0x338},_0x2dbe26=createModelInfo(_0x310c3b);function _0x35dab0(_0x267560,_0x5b4f79,_0x47f9b2,_0x3761e0){return _0x35da26(_0x267560-_0x173e01._0x35d4d4,_0x47f9b2,_0x47f9b2-0xf7,_0x267560-0x93);}function _0x1af59c(_0x26c244,_0x52d513,_0x43fdad,_0x197830){return _0x35da26(_0x26c244-_0x2e4c67._0x57dec3,_0x26c244,_0x43fdad-_0x2e4c67._0x4b57cd,_0x197830-_0x2e4c67._0xa97186);}return _0x2dbe26['supportedEndpoints']&&this[_0x1af59c(_0x3b446a._0x4ada23,0x4cb,_0x3b446a._0x3606ae,0x47b)][_0x35dab0(0x245,0x2bb,_0x3b446a._0xc9b20e,0x2bd)](_0x2dbe26['id'],_0x2dbe26[_0x1af59c(_0x3b446a._0x456900,_0x3b446a._0x26c22e,_0x3b446a._0x1e08d9,0x355)]),_0x2dbe26;});function _0x1556c9(_0x13fb6e,_0x350b2b,_0x57d443,_0x1465ff){return _0xc7d8a6(_0x13fb6e-0xde,_0x57d443,_0x57d443-_0x24c2f4._0xcf6652,_0x1465ff- -_0x24c2f4._0x29dc68);}return deduplicateModels(_0x57988d);}};function createHeaders(_0x2c27f8){const _0x35e724={_0x1938b4:0x196,_0x219314:0x125},_0x2e8348={_0x556055:0x1a8,_0x428ca2:0x68},_0x19615d=new Headers();function _0x4571a3(_0x39d2a0,_0x295db0,_0x4d5374,_0xbc99cb){return _0x74a064(_0x39d2a0-_0x2e8348._0x556055,_0x295db0-0xa5,_0x39d2a0-_0x2e8348._0x428ca2,_0x4d5374);}for(const [_0x17dd2d,_0x1df50b]of Object[_0x4571a3(_0x35e724._0x1938b4,0x134,0x25e,_0x35e724._0x219314)](_0x2c27f8)){_0x19615d['set'](_0x17dd2d,_0x1df50b);}return _0x19615d;}async function fetchRawResponse(_0x545530){const _0x588f51={_0x35345a:0x4d1,_0x11d889:0x614,_0x15de08:0x667,_0x3b661c:0x1a1,_0x184335:0x70,_0x2b72f6:0x118,_0x246916:0x54b,_0x40b2c7:0x518,_0x442653:0x5ef,_0x147aee:0x4c4,_0x548c81:0x3e9,_0xbd530a:0x4d8,_0x26ced2:0x4bc},_0x24c29c={_0x394d6a:0x1cc},_0x579a62={_0x267d31:0x190};function _0x31cae2(_0x3f8ad8,_0x4f161e,_0x48a60a,_0x2b31ba){return _0x74a064(_0x3f8ad8-0x1cc,_0x4f161e-0x165,_0x2b31ba- -_0x579a62._0x267d31,_0x48a60a);}const _0x3c474c=_0x545530[_0x2c0477(_0x588f51._0x35345a,_0x588f51._0x11d889,0x59e,_0x588f51._0x15de08)]??globalThis['fetch'];function _0x2c0477(_0x3ce236,_0x38b26a,_0x2a43da,_0x7ac625){return _0x74a064(_0x3ce236-0x130,_0x38b26a-_0x24c29c._0x394d6a,_0x2a43da-0x4e1,_0x38b26a);}return _0x3c474c(_0x545530['url'],{'method':_0x31cae2(-0x65,-_0x588f51._0x3b661c,-_0x588f51._0x184335,-_0x588f51._0x2b72f6),'headers':createHeaders(_0x545530['headers']),'body':JSON[_0x2c0477(_0x588f51._0x246916,0x560,0x55e,_0x588f51._0x40b2c7)](_0x545530[_0x2c0477(_0x588f51._0x442653,0x504,0x576,_0x588f51._0x147aee)]),'signal':_0x545530[_0x2c0477(_0x588f51._0x548c81,_0x588f51._0xbd530a,_0x588f51._0x26ced2,0x40a)]});}async function fetchJsonResponse(_0x3daf71){const _0x679d02={_0x431b3d:0x421,_0x519e96:0x470,_0x328eba:0x3e5,_0x34ee48:0x4b2,_0x57d9e8:0x4cd,_0x2e6803:0x4ed,_0x35c64b:0x473,_0x4ecbc5:0x53a,_0x14d9dd:0x59f,_0x173788:0x5da,_0x4a4ae2:0x590,_0x34e59e:0x46f,_0x284ae9:0x4e4,_0x512f6e:0x498,_0x435bd7:0x44f},_0x5d3b58={_0x42ab4:0x1d0};function _0x43c81c(_0x4ca2a9,_0x44f505,_0x5b035e,_0x4a915d){return _0x74a064(_0x4ca2a9-0xbe,_0x44f505-0x1b5,_0x5b035e-0x4bd,_0x4ca2a9);}const _0x27cf86=await fetchRawResponse(_0x3daf71);function _0x2c109d(_0x323fd8,_0x1d7598,_0x4481ca,_0x56f177){return _0x74a064(_0x323fd8-0x7f,_0x1d7598-_0x5d3b58._0x42ab4,_0x1d7598-0x4f3,_0x4481ca);}if(!_0x27cf86['ok']){const _0x106a1d=await _0x27cf86[_0x2c109d(_0x679d02._0x431b3d,0x4d9,0x5bd,0x491)](),_0x170a80=_0x106a1d[_0x43c81c(_0x679d02._0x519e96,0x413,0x488,0x474)]()||_0x27cf86[_0x43c81c(_0x679d02._0x328eba,0x4b3,_0x679d02._0x34ee48,_0x679d02._0x57d9e8)]||_0x43c81c(0x4af,_0x679d02._0x2e6803,_0x679d02._0x35c64b,_0x679d02._0x4ecbc5);throw new Error(_0x43c81c(_0x679d02._0x14d9dd,0x5de,_0x679d02._0x173788,0x5ba)+_0x27cf86[_0x43c81c(_0x679d02._0x4a4ae2,0x45e,0x52a,_0x679d02._0x34e59e)]+':\x20'+_0x170a80);}return await _0x27cf86[_0x43c81c(_0x679d02._0x284ae9,_0x679d02._0x512f6e,_0x679d02._0x435bd7,0x3cf)]();}function findLastMessage(_0x3aa77b,_0x3e437d){const _0x55c8d4={_0x46c1cf:0x63c,_0x52c739:0x55f},_0x2f6769={_0x943a14:0x59,_0x3ab60d:0x19,_0x46ec88:0x640};function _0x67e4b1(_0x31fb57,_0x139abc,_0x315177,_0x29fa0b){return _0xc7d8a6(_0x31fb57-_0x2f6769._0x943a14,_0x315177,_0x315177-_0x2f6769._0x3ab60d,_0x139abc-_0x2f6769._0x46ec88);}for(let _0x1709c7=_0x3aa77b[_0x67e4b1(0x62f,0x618,_0x55c8d4._0x46c1cf,_0x55c8d4._0x52c739)]-0x1;_0x1709c7>=0x0;_0x1709c7-=0x1){if(_0x3aa77b[_0x1709c7]['role']===_0x3e437d)return _0x3aa77b[_0x1709c7];}return void 0x0;}function hasTool(_0x98bc03,_0x482af2){const _0x4fd6be={_0x2b8217:0x2e,_0x2473b6:0x19,_0x4f7491:0x75,_0x13b6fe:0x134,_0x24b461:0x10b,_0x5d2769:0x2a},_0x57e0e3={_0x2a3ec4:0x6c},_0xf978a3={_0x1b8842:0x1a8};function _0x79f3f1(_0x58081c,_0x17e641,_0x10ca80,_0x667f54){return _0xc7d8a6(_0x58081c-_0xf978a3._0x1b8842,_0x667f54,_0x10ca80-0x182,_0x17e641-0x157);}function _0x25e363(_0x5cc316,_0x23c65c,_0x169850,_0x95ea0d){return _0xc7d8a6(_0x5cc316-_0x57e0e3._0x2a3ec4,_0x23c65c,_0x169850-0x175,_0x5cc316-0xa4);}return _0x98bc03[_0x25e363(_0x4fd6be._0x2b8217,_0x4fd6be._0x2473b6,-0x75,-_0x4fd6be._0x4f7491)][_0x79f3f1(-_0x4fd6be._0x13b6fe,-0x65,-_0x4fd6be._0x24b461,-_0x4fd6be._0x5d2769)](_0x47d705=>_0x47d705[_0x79f3f1(-0xca,-0x49,-0xb4,0x1b)]===_0x482af2);}function createMockResponse(_0x22fe97,_0x369fb1,_0x58add1,_0x571b18){return{'id':_0x22fe97,'content':_0x369fb1,'stopReason':_0x58add1,'usage':_0x571b18};}var MockModel=class{[_0x74a064(-0x3a,0xd7,0x56,0x93)];[_0xc7d8a6(-0x121,-0x35,-0xf7,-0x7c)];['requests']=[];[_0x74a064(0xc7,0x11a,0x128,0x44)];constructor(_0x5251ca={}){const _0x3db088={_0x27d06b:0x87,_0x239c4f:0xef,_0x3f6cfb:0xba,_0x5007d7:0x6f,_0x30cfc0:0x7d,_0x3f9248:0x5e6,_0x5aa03f:0x5b9,_0x2bcc91:0x45b,_0x136ced:0xcd,_0x4f5507:0x66,_0x59301f:0xc4},_0x36f01b={_0x410a4f:0x139,_0x3c7a59:0xfd},_0x29b1e3={_0x336b35:0xb8};this[_0x21fca0(-0xef,-0xcd,-_0x3db088._0x27d06b,-0x19c)]=_0x5251ca[_0x21fca0(-_0x3db088._0x239c4f,-_0x3db088._0x3f6cfb,-0x29,-0x17c)]??'mock',this['maxTokens']=_0x5251ca[_0x21fca0(-_0x3db088._0x5007d7,-0x8d,-0x47,-_0x3db088._0x30cfc0)]??getDefaultMaxTokens();function _0x2b7c23(_0x40f7a2,_0x44130f,_0x1490d5,_0x2e439e){return _0x74a064(_0x40f7a2-0x171,_0x44130f-_0x29b1e3._0x336b35,_0x44130f-0x3d8,_0x2e439e);}function _0x21fca0(_0x2310cb,_0xba953e,_0x230343,_0x2ae11a){return _0xc7d8a6(_0x2310cb-_0x36f01b._0x410a4f,_0x2ae11a,_0x230343-_0x36f01b._0x3c7a59,_0x2310cb-0xd);}this[_0x2b7c23(_0x3db088._0x3f9248,0x500,_0x3db088._0x5aa03f,_0x3db088._0x2bcc91)]=_0x5251ca['reasoning']?structuredClone(_0x5251ca[_0x21fca0(-0x1d,-_0x3db088._0x136ced,_0x3db088._0x4f5507,_0x3db088._0x59301f)]):void 0x0;}async[_0x74a064(0x149,0xae,0x7a,-0x8)](_0x534f00,_0x19f5a3){const _0xcab993={_0x578b79:0x165,_0x11e810:0xa2,_0x1b082a:0x103,_0x4cd166:0x27,_0x16038c:0xdc,_0x411071:0x19,_0x2c7002:0xd5,_0x1b4adc:0x6d,_0x17d43b:0xab,_0x1f23ac:0x50,_0x5ddf0a:0x84,_0xd92e2f:0x30,_0x1bb914:0xcc,_0x4a6c72:0x9e,_0x32e758:0xb4,_0x47ef0f:0x5d,_0x4220b2:0xa9,_0x2dbb15:0x127,_0x1932be:0x153,_0xbcb96d:0xa9,_0x470cea:0x16b,_0x4be8f8:0x17f,_0xdf24a1:0x58,_0x2eefee:0x5a,_0x14b9aa:0xc9,_0x104bdb:0x100,_0x4e6e68:0x2a,_0x35cf0b:0x82,_0x25c0fd:0xaf,_0x3d031b:0x7b,_0x31499c:0xf8,_0x102125:0x11a,_0x52f5cd:0x16c,_0xbd634:0x37,_0x5b712a:0x19e,_0x526b94:0x5d,_0x4d7647:0x24},_0x439b7f={_0xcfeb49:0x188,_0x25c5e8:0xe},_0x387076={_0x12711c:0x100,_0x1d6246:0x81},_0x5026be={...structuredClone(_0x534f00),..._0x534f00[_0x2e6441(0xa7,0xcc,0xa1,_0xcab993._0x578b79)]===void 0x0&&this[_0x113cd0(0x28,-0x52,_0xcab993._0x11e810,_0xcab993._0x1b082a)]!==void 0x0?{'reasoning':structuredClone(this[_0x113cd0(0x28,-_0xcab993._0x4cd166,0x76,0x72)])}:{}};function _0x2e6441(_0x380e9f,_0x2b0ec4,_0x32dd3d,_0xc61fa1){return _0x74a064(_0x380e9f-_0x387076._0x12711c,_0x2b0ec4-0x181,_0x380e9f- -_0x387076._0x1d6246,_0x32dd3d);}this[_0x113cd0(-_0xcab993._0x16038c,-_0xcab993._0x411071,-0xd3,-0x1b2)][_0x113cd0(-0x17b,-0x1f3,-_0xcab993._0x2c7002,-0xa0)](_0x5026be);function _0x113cd0(_0x18cbe1,_0x28a913,_0x50be1e,_0x153c13){return _0xc7d8a6(_0x18cbe1-_0x439b7f._0xcfeb49,_0x153c13,_0x50be1e-_0x439b7f._0x25c5e8,_0x18cbe1-0x52);}const _0x38d96b=findLastMessage(_0x5026be[_0x113cd0(-0x9,_0xcab993._0x1b4adc,0xd5,_0xcab993._0x17d43b)],_0x113cd0(-0x120,-_0xcab993._0x1f23ac,-0x193,-_0xcab993._0x5ddf0a)),_0x46b684=getToolResultBlocks(_0x38d96b),_0x4cf6ed=_0x2e6441(-_0xcab993._0xd92e2f,-_0xcab993._0x1bb914,_0xcab993._0x4a6c72,_0xcab993._0x32e758)+this[_0x2e6441(-_0xcab993._0x47ef0f,-0xa0,-0x4d,-0x94)][_0x2e6441(_0xcab993._0x4220b2,_0xcab993._0x2dbb15,_0xcab993._0x1932be,0x10b)];if(_0x46b684[_0x2e6441(_0xcab993._0xbcb96d,0x100,0x74,_0xcab993._0x470cea)]>0x0)return createMockResponse(_0x4cf6ed,[{'type':_0x2e6441(-0x9b,-0xbc,-0x167,-_0xcab993._0x4be8f8),'text':_0x2e6441(0x4e,0x4b,-0x47,-0x65)+_0x46b684[0x0]['content']}],_0x2e6441(_0xcab993._0xdf24a1,0xaa,0xd5,_0xcab993._0x2eefee),{'inputTokens':0x78,'outputTokens':0x28});const _0x2c4e36=getTextFromMessage(_0x38d96b);if(/list .*files|workspace/i['test'](_0x2c4e36)&&hasTool(_0x5026be,_0x2e6441(-0x5,-_0xcab993._0x14b9aa,0x6b,-0x30)))return createMockResponse(_0x4cf6ed,[{'type':_0x2e6441(-0xae,-_0xcab993._0x104bdb,-0x6b,-0x15b),'id':'tool-call-'+this[_0x2e6441(-0x5d,0x6b,-0xbd,-0x1b)][_0x113cd0(_0xcab993._0x4e6e68,-0x64,-_0xcab993._0x35cf0b,-0xa6)],'name':_0x2e6441(-0x5,_0xcab993._0x25c0fd,_0xcab993._0x3d031b,0xa1),'input':{'command':'ls\x20-la'}}],_0x113cd0(-0x12d,-0x95,-_0xcab993._0x31499c,-0x1cc),{'inputTokens':0x6e,'outputTokens':0x1c});return createMockResponse(_0x4cf6ed,[{'type':_0x113cd0(-_0xcab993._0x102125,-_0xcab993._0x52f5cd,-_0xcab993._0xbd634,-0x14a),'text':_0x113cd0(-0x104,-0x186,-_0xcab993._0x5b712a,-0x113)+_0x2c4e36}],_0x113cd0(-0x27,_0xcab993._0x526b94,0xa5,-_0xcab993._0x4d7647),{'inputTokens':0x50,'outputTokens':0x12});}};function getFallbackModelLimits(_0x4cb704,_0x2340ed){const _0x5242ed={_0x57ca77:0x253,_0x32ed76:0x19c,_0x484f55:0x2df,_0x58531f:0x243,_0x129dc1:0x32c,_0x4db13c:0xdf,_0x3ca73c:0x1a9,_0x56f60b:0x1e2,_0x4777d8:0x237,_0x31c2f4:0x233},_0xbb70b7={_0x5c415f:0x111},_0x3a833d={_0x1219d2:0x129},_0x28cd76=getModelProfile(_0x4cb704,_0x2340ed);function _0x41f33f(_0x58b506,_0x112d25,_0x5e14be,_0x836c24){return _0xc7d8a6(_0x58b506-0x87,_0x5e14be,_0x5e14be-0xb,_0x58b506- -_0x3a833d._0x1219d2);}if(!_0x28cd76?.[_0xdd984e(-_0x5242ed._0x57ca77,-_0x5242ed._0x32ed76,-0x1a9,-0x104)]&&!_0x28cd76?.['maxOutput'])return void 0x0;function _0xdd984e(_0x5efbc9,_0x9a52ae,_0x10a251,_0x33d3fd){return _0xc7d8a6(_0x5efbc9-_0xbb70b7._0x5c415f,_0x33d3fd,_0x10a251-0xc0,_0x10a251-0xd);}return{..._0x28cd76[_0x41f33f(-_0x5242ed._0x484f55,-_0x5242ed._0x58531f,-0x2b4,-_0x5242ed._0x129dc1)]?{'contextWindow':_0x28cd76[_0xdd984e(-_0x5242ed._0x4db13c,-0xdf,-_0x5242ed._0x3ca73c,-0x1a9)]}:{},..._0x28cd76[_0x41f33f(-_0x5242ed._0x56f60b,-0x173,-0x11a,-0x2be)]?{'maxOutput':_0x28cd76[_0x41f33f(-0x1e2,-_0x5242ed._0x4777d8,-0x218,-_0x5242ed._0x31c2f4)]}:{}};}function normalizeModelInfo(_0x2937fe,_0x2bebc7){const _0x5cd252={_0x595ac2:0x435,_0x44bdc5:0x53c,_0x258c46:0x58c,_0x2065cb:0x14c,_0x2ea75b:0x1ce,_0x3c8617:0x52d,_0x13939f:0x487,_0x4c7c8e:0x4eb,_0x3d05b8:0x4ab,_0x3cf2ef:0x232,_0x55696f:0x1dd,_0x5e9800:0x28b,_0x2b8154:0x4b1,_0x382c6a:0x51f,_0x4318bb:0x4dd,_0x220b0b:0x5ca,_0x5b7473:0x120,_0x1948d4:0x27d},_0x206441={_0x4bd5b7:0x65},_0x3f99cc={_0x4a359a:0x185,_0x69daae:0x27a},_0x26ef15=typeof _0x2bebc7['id']===_0x30d1c4(_0x5cd252._0x595ac2,0x4bd,_0x5cd252._0x44bdc5,_0x5cd252._0x258c46)?_0x2bebc7['id']:'';function _0x2d8e23(_0x36ea69,_0x5ed2bd,_0x1fc8c4,_0x47b424){return _0x74a064(_0x36ea69-0x1bc,_0x5ed2bd-_0x3f99cc._0x4a359a,_0x36ea69-_0x3f99cc._0x69daae,_0x5ed2bd);}const _0x3e5186=typeof _0x2bebc7['name']===_0x2d8e23(0x204,_0x5cd252._0x2065cb,0x23f,_0x5cd252._0x2ea75b)?_0x2bebc7['name']:_0x26ef15,_0x5e1d31=normalizeModelLimits(_0x2937fe,_0x2bebc7)??getFallbackModelLimits(_0x2937fe,_0x26ef15);function _0x30d1c4(_0x15f182,_0x265c2c,_0x4358d5,_0xa15069){return _0x74a064(_0x15f182-0x166,_0x265c2c-_0x206441._0x4bd5b7,_0x265c2c-0x533,_0x15f182);}const _0x29ed0e=Array[_0x30d1c4(_0x5cd252._0x3c8617,0x4df,0x50a,0x4fe)](_0x2bebc7[_0x30d1c4(_0x5cd252._0x13939f,_0x5cd252._0x4c7c8e,0x43b,_0x5cd252._0x3d05b8)])?_0x2bebc7[_0x2d8e23(_0x5cd252._0x3cf2ef,_0x5cd252._0x55696f,0x255,_0x5cd252._0x5e9800)][_0x30d1c4(0x50a,_0x5cd252._0x2b8154,0x458,0x476)](_0x345d53=>typeof _0x345d53===_0x30d1c4(0x46e,0x4bd,0x54a,0x3ec)):Array['isArray'](_0x2bebc7[_0x30d1c4(0x543,_0x5cd252._0x382c6a,_0x5cd252._0x4318bb,0x5fe)])?_0x2bebc7[_0x30d1c4(0x441,_0x5cd252._0x382c6a,_0x5cd252._0x220b0b,0x571)][_0x2d8e23(0x1f8,_0x5cd252._0x5b7473,0x267,_0x5cd252._0x1948d4)](_0x273084=>typeof _0x273084===_0x30d1c4(0x472,0x4bd,0x512,0x516)):void 0x0;return{'id':_0x26ef15,'name':_0x3e5186,..._0x5e1d31?{'limits':_0x5e1d31}:{},..._0x29ed0e?{'supportedEndpoints':_0x29ed0e}:{}};}function normalizeModelLimits(_0x42eaf7,_0x55b401){const _0x2c7ec5={_0x123ac6:0x112,_0x28b68f:0x252,_0x234cb5:0x1c2,_0xe591b8:0x407,_0xa07eb2:0x3b5,_0x3d8a1c:0x409,_0x4e362b:0x25b,_0x270f19:0x1bd,_0x54b06b:0x284,_0x46dddb:0x348,_0x141371:0x266,_0x5f33b7:0x3b1,_0x466d9f:0x31e,_0x3733c2:0x120,_0x38a639:0x1ce,_0x31f915:0x35c,_0x63f4b4:0x296,_0x2cfc7f:0x17f,_0x2c4db9:0x3a7,_0x2e879c:0x2a2,_0x3fe875:0x24e,_0x592a8e:0x225,_0x18d076:0x1fc,_0x5d8720:0x16c,_0x489fee:0x240,_0x594c2b:0x2a5,_0x287f79:0x2bc,_0x5731d0:0x345,_0x1f853c:0x296,_0x3b78cc:0x2bc,_0x34ff2a:0x304,_0x1703d8:0x68,_0x501e1f:0x324,_0x2f8e8e:0x36d,_0x465bce:0x3d4,_0x481733:0x216,_0x273818:0x2a0,_0x2a8175:0x23f,_0x2f881f:0x346,_0x41d43b:0x276,_0x3d695c:0x390,_0x592695:0x259,_0x43e6a0:0x310,_0x30e0c0:0x2f2,_0x59b75c:0x310,_0x4e4d00:0x3a0,_0x4bb215:0x31c,_0x345069:0x1a0,_0xef47f8:0x1ea,_0xc4a119:0x1b8,_0x390e94:0x1a0,_0x4c580e:0x251,_0x5b31ff:0x3ba,_0x2ab0ba:0x3a7,_0x21bdc2:0x377,_0x4b8483:0x293,_0x2ea077:0x3a7,_0x354e2d:0x2d9},_0x1df26a={_0x792469:0x115},_0x584572={_0x430d04:0x1ad,_0x20bd2d:0x2e8};function _0x12f445(_0x387de9,_0x4d575d,_0x57cc29,_0x5e4a76){return _0x74a064(_0x387de9-_0x584572._0x430d04,_0x4d575d-0x44,_0x57cc29-_0x584572._0x20bd2d,_0x5e4a76);}if(_0x55b401[_0x1983aa(-_0x2c7ec5._0x123ac6,-_0x2c7ec5._0x28b68f,-0x1a2,-_0x2c7ec5._0x234cb5)]&&typeof _0x55b401[_0x12f445(_0x2c7ec5._0xe591b8,_0x2c7ec5._0xa07eb2,0x3ad,_0x2c7ec5._0x3d8a1c)]===_0x1983aa(-0x21c,-_0x2c7ec5._0x4e362b,-_0x2c7ec5._0x270f19,-0x29d)){const _0x3abeaf=_0x55b401['limits'];if(typeof _0x3abeaf[_0x12f445(0x241,0x2aa,_0x2c7ec5._0x54b06b,_0x2c7ec5._0x46dddb)]==='number')return{'contextWindow':_0x3abeaf[_0x1983aa(-_0x2c7ec5._0x141371,-_0x2c7ec5._0x5f33b7,-0x2cb,-_0x2c7ec5._0x466d9f)],...typeof _0x3abeaf[_0x1983aa(-_0x2c7ec5._0x3733c2,-0x1ed,-_0x2c7ec5._0x38a639,-0x1b9)]===_0x12f445(0x31e,0x200,0x2bc,_0x2c7ec5._0x31f915)?{'maxOutput':_0x3abeaf[_0x1983aa(-0x26a,-_0x2c7ec5._0x63f4b4,-_0x2c7ec5._0x38a639,-_0x2c7ec5._0x2cfc7f)]}:{}};}if(_0x42eaf7['toLowerCase']()===_0x12f445(0x36b,0x27a,0x340,_0x2c7ec5._0x2c4db9)){const _0x570e1f=_0x55b401[_0x1983aa(-_0x2c7ec5._0x2e879c,-0x2fc,-_0x2c7ec5._0x3fe875,-_0x2c7ec5._0x592a8e)],_0x3e478e=_0x570e1f?.[_0x1983aa(-0x174,-0xc9,-0x1a2,-_0x2c7ec5._0x18d076)];if(typeof _0x3e478e?.[_0x1983aa(-_0x2c7ec5._0x5d8720,-0x262,-_0x2c7ec5._0x489fee,-_0x2c7ec5._0x594c2b)]===_0x12f445(0x32b,0x2ac,_0x2c7ec5._0x287f79,_0x2c7ec5._0x5731d0))return{'contextWindow':_0x3e478e['max_context_window_tokens'],...typeof _0x3e478e['max_output_tokens']===_0x12f445(0x35a,_0x2c7ec5._0x1f853c,_0x2c7ec5._0x3b78cc,_0x2c7ec5._0x34ff2a)?{'maxOutput':_0x3e478e[_0x1983aa(-0x131,-0x18b,-0x135,-_0x2c7ec5._0x1703d8)]}:{}};}const _0x118109=_0x55b401['metadata'];function _0x1983aa(_0x6f4fe4,_0x1d7c8c,_0x3b3012,_0x271d83){return _0xc7d8a6(_0x6f4fe4-0x137,_0x271d83,_0x3b3012-0x14f,_0x3b3012- -_0x1df26a._0x792469);}const _0x24d798=_0x55b401[_0x1983aa(-0x33c,-_0x2c7ec5._0x501e1f,-0x2c7,-0x20c)],_0x583014=typeof _0x55b401[_0x12f445(0x382,_0x2c7ec5._0x2f8e8e,0x310,_0x2c7ec5._0x465bce)]==='number'?_0x55b401[_0x1983aa(-_0x2c7ec5._0x481733,-_0x2c7ec5._0x273818,-_0x2c7ec5._0x2a8175,-0x1c5)]:typeof _0x118109?.['context_length']===_0x12f445(_0x2c7ec5._0x2f881f,_0x2c7ec5._0x41d43b,0x2bc,0x2c3)?_0x118109[_0x12f445(_0x2c7ec5._0x3d695c,_0x2c7ec5._0x592695,_0x2c7ec5._0x43e6a0,0x283)]:typeof _0x24d798?.[_0x12f445(0x2c8,_0x2c7ec5._0x30e0c0,_0x2c7ec5._0x59b75c,_0x2c7ec5._0x4e4d00)]==='number'?_0x24d798[_0x1983aa(-_0x2c7ec5._0x4bb215,-_0x2c7ec5._0x345069,-0x23f,-_0x2c7ec5._0xef47f8)]:void 0x0;if(_0x583014===void 0x0)return void 0x0;return{'contextWindow':_0x583014,...typeof _0x118109?.[_0x1983aa(-0x1d0,-0x154,-_0x2c7ec5._0x345069,-0x213)]==='number'?{'maxOutput':_0x118109[_0x1983aa(-_0x2c7ec5._0xc4a119,-0x25d,-_0x2c7ec5._0x390e94,-_0x2c7ec5._0x4c580e)]}:typeof _0x24d798?.[_0x12f445(0x393,_0x2c7ec5._0x5b31ff,_0x2c7ec5._0x2ab0ba,0x360)]===_0x1983aa(-0x2b3,-_0x2c7ec5._0x21bdc2,-_0x2c7ec5._0x4b8483,-0x365)?{'maxOutput':_0x24d798[_0x12f445(0x361,0x3d5,_0x2c7ec5._0x2ea077,_0x2c7ec5._0x354e2d)]}:{}};}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};
|