@nuvin/agent-core 0.0.0-rc.3 → 0.0.0-rc.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/VERSION +2 -2
- package/dist/agent/index.d.ts +27 -525
- package/dist/agent/index.js +1 -1
- package/dist/chunk-G2FR4UGO.js +1 -1
- package/dist/chunk-LXQDGX4K.js +1 -1
- package/dist/chunk-NYZR4XKO.js +1 -1
- package/dist/chunk-VFTQW5WK.js +1 -1
- package/dist/chunk-X7VAACWY.js +1 -1
- package/dist/formats/index.d.ts +23 -319
- package/dist/formats/index.js +1 -1
- package/dist/models/index.d.ts +330 -634
- package/dist/models/index.js +1 -1
- package/dist/shared/index.d.ts +14 -709
- package/dist/shared/index.js +1 -1
- package/dist/tools/index.d.ts +518 -969
- package/dist/tools/index.js +1 -1
- package/package.json +4 -1
package/dist/models/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x1f3a6e,_0x251387){const _0x2da3e8={_0x4d0316:0x144,_0x559496:0x110,_0x39a24c:0x110,_0x2d874c:0x76,_0x4b3094:0x73,_0x3e4679:0x142,_0x38bcce:0x133,_0x50c44f:0x133,_0x8c5d29:0x196,_0x1cc816:0xa0,_0x1b51e2:0xd7,_0x4d0475:0x195,_0x2bffa9:0x5f,_0x11e951:0x7c,_0x1308f9:0x5f,_0x2c5ca1:0x1c9,_0x2152d6:0x26d,_0x5a541c:0x1a1,_0xe8be5f:0x1e7,_0x20623c:0x13a,_0x25962c:0x179,_0x46ee6e:0x19d},_0x3cb152={_0x3bf065:0x335},_0x3226e7=_0x1f3a6e();function _0x4f2818(_0x563128,_0x5d56e5,_0x2cce08,_0x522e08){return _0x6b39(_0x563128- -_0x3cb152._0x3bf065,_0x2cce08);}function _0x2055ed(_0x165c11,_0x47b907,_0x254830,_0x4515e5){return _0x6b39(_0x165c11- -0x382,_0x47b907);}while(!![]){try{const _0x15f9d1=parseInt(_0x4f2818(-0x9f,-_0x2da3e8._0x4d0316,-0x48,-_0x2da3e8._0x559496))/0x1+-parseInt(_0x2055ed(-_0x2da3e8._0x39a24c,-_0x2da3e8._0x2d874c,-0x135,-_0x2da3e8._0x4b3094))/0x2+-parseInt(_0x4f2818(-_0x2da3e8._0x3e4679,-0x1e1,-_0x2da3e8._0x38bcce,-_0x2da3e8._0x50c44f))/0x3*(parseInt(_0x2055ed(-0x1c5,-_0x2da3e8._0x8c5d29,-0x1b4,-0x197))/0x4)+-parseInt(_0x4f2818(-0x72,-_0x2da3e8._0x1cc816,0x30,-0xb6))/0x5*(-parseInt(_0x2055ed(-0x10c,-_0x2da3e8._0x1b51e2,-0xe2,-_0x2da3e8._0x4d0475))/0x6)+parseInt(_0x4f2818(-_0x2da3e8._0x2bffa9,-0x60,-_0x2da3e8._0x11e951,-_0x2da3e8._0x1308f9))/0x7*(parseInt(_0x2055ed(-0x132,-_0x2da3e8._0x2c5ca1,-0x1c3,-0x131))/0x8)+parseInt(_0x2055ed(-0x1f5,-_0x2da3e8._0x2152d6,-_0x2da3e8._0x5a541c,-_0x2da3e8._0xe8be5f))/0x9+parseInt(_0x2055ed(-0x166,-0x1f6,-_0x2da3e8._0x20623c,-0x113))/0xa*(-parseInt(_0x4f2818(-_0x2da3e8._0x25962c,-_0x2da3e8._0x46ee6e,-0x1b0,-0x1de))/0xb);if(_0x15f9d1===_0x251387)break;else _0x3226e7['push'](_0x3226e7['shift']());}catch(_0x3ee950){_0x3226e7['push'](_0x3226e7['shift']());}}}(_0xa677,0x8ca7e));import{toOpenAiResponsesRequest}from'../chunk-LXQDGX4K.js';import{resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig}from'../chunk-NYZR4XKO.js';import{getTextFromMessage,getToolResultBlocks,normalizeContent,toChatRequest,toModelRequest,toProviderModelRequest}from'../chunk-G2FR4UGO.js';import{addAbortListener,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';var ANTHROPIC_MESSAGES_SURFACE=_0x4abdca(0x437,0x43b,0x461,0x3eb),ANTHROPIC_MESSAGES_STREAM_SURFACE=_0x3921cc(0x3c6,0x406,0x437,0x371);function parseToolInput(_0x313c06){const _0x5c53bc={_0x524a41:0x344},_0x35a3ab={_0x10375c:0x6a};function _0x3c4975(_0x5b44d5,_0x2cbc1f,_0x62a6f7,_0x7a6c3c){return _0x3921cc(_0x5b44d5-_0x35a3ab._0x10375c,_0x2cbc1f-0x42,_0x5b44d5,_0x7a6c3c-0x100);}try{return JSON[_0x3c4975(_0x5c53bc._0x524a41,0x3ba,0x45c,0x3d0)](_0x313c06);}catch{return _0x313c06;}}function resolveReasoningVisibility(_0x44602e){const _0x49941d={_0xf05863:0x1ba,_0x309e04:0x185,_0x1fd278:0x1bd,_0x4c7872:0x58,_0x378f72:0x150},_0x55aa25={_0x32cb92:0x2c,_0x51e10d:0x1bf};function _0x40b012(_0x53323f,_0x388680,_0x4d5f58,_0xdfd48){return _0x4abdca(_0x53323f-_0x55aa25._0x32cb92,_0x388680- -0x40a,_0x4d5f58-_0x55aa25._0x51e10d,_0x4d5f58);}function _0x3ae379(_0x47969e,_0x1cf9f5,_0x32d37a,_0x4c42bb){return _0x3921cc(_0x47969e-0x1a2,_0x32d37a-0x271,_0x1cf9f5,_0x4c42bb-0x2f);}return _0x44602e['reasoning']?.[_0x40b012(_0x49941d._0xf05863,_0x49941d._0x309e04,_0x49941d._0x1fd278,0x22c)]??_0x40b012(_0x49941d._0x4c7872,0xcb,_0x49941d._0x378f72,0xa6);}function isUserVisibleThinking(_0x3bb009){const _0x41040b={_0x463fbe:0x7e,_0x25b0aa:0x10,_0x1f65b7:0x32d,_0x5e0612:0x3e5,_0x390672:0x4a4,_0x26a260:0x401,_0x16f3b2:0x3b0,_0x4b1567:0x41b,_0x42e65f:0x4b,_0x831c7b:0x1c},_0x1e226f={_0x3a5c52:0x4e8},_0x1e372f={_0x118265:0xd2,_0x3b97cb:0xe6,_0x3e6d55:0x15e};function _0x41c947(_0x235452,_0x1d4237,_0x244adf,_0x218161){return _0x3921cc(_0x235452-_0x1e372f._0x118265,_0x244adf-_0x1e372f._0x3b97cb,_0x1d4237,_0x218161-_0x1e372f._0x3e6d55);}function _0xaea3fe(_0x1ddbec,_0x143f2e,_0x111cc2,_0x3720e2){return _0x4abdca(_0x1ddbec-0x122,_0x3720e2- -_0x1e226f._0x3a5c52,_0x111cc2-0x36,_0x111cc2);}const _0x133420=resolveAnthropicThinkingConfig(_0x3bb009[_0xaea3fe(-_0x41040b._0x463fbe,0x27,0x9a,-_0x41040b._0x25b0aa)]);return _0x133420!==void 0x0&&_0x133420[_0x41c947(_0x41040b._0x1f65b7,0x368,_0x41040b._0x5e0612,_0x41040b._0x390672)]!==_0x41c947(0x312,_0x41040b._0x26a260,_0x41040b._0x16f3b2,_0x41040b._0x4b1567)&&resolveReasoningVisibility(_0x3bb009)===_0xaea3fe(_0x41040b._0x42e65f,_0x41040b._0x831c7b,0xaf,-0x13);}function createAnthropicThinkingBody(_0x2778a4){const _0x3bdec1={_0xff50b0:0x148,_0x177f18:0x11e,_0x4c532a:0x56d,_0x17e203:0x3e,_0x4d7888:0x37,_0x358ad2:0x5,_0x3d676a:0x89,_0x10fad3:0xe8,_0x210c90:0x51,_0x1b64f2:0x82,_0x1412b4:0x7c,_0x882072:0x548,_0x69640:0x5e8,_0x1727dc:0x580,_0x293954:0x585,_0x226449:0x1f9,_0x25a1f8:0x1dc},_0x5871e0={_0x1fa540:0x1cb,_0x33faba:0x5b2,_0x2ba22a:0x0},_0x579101={_0x5987d4:0x6f,_0x26e863:0x153},_0x5622f6=resolveAnthropicThinkingConfig(_0x2778a4['reasoning']);if(!_0x5622f6||_0x5622f6['type']===_0x203eaa(-0x198,-_0x3bdec1._0xff50b0,-_0x3bdec1._0x177f18,-0x1f4))return{};const _0xc68e90=_0x5622f6[_0x121504(0x5c0,0x646,_0x3bdec1._0x4c532a,0x529)]??(isUserVisibleThinking(_0x2778a4)?_0x203eaa(_0x3bdec1._0x17e203,-_0x3bdec1._0x4d7888,-_0x3bdec1._0x358ad2,0x72):_0x203eaa(-0x11b,-_0x3bdec1._0x3d676a,-0x16,-_0x3bdec1._0x10fad3)),_0x3b3fb5=_0x5622f6[_0x121504(0x541,0x480,0x51f,0x4cf)]?{'anthropic-beta':_0x203eaa(-_0x3bdec1._0x210c90,-0x1e,-_0x3bdec1._0x1b64f2,-_0x3bdec1._0x1412b4)}:void 0x0;function _0x121504(_0x47e4d7,_0x3069fb,_0xa9e5d0,_0x50c546){return _0x4abdca(_0x47e4d7-_0x579101._0x5987d4,_0x47e4d7-0x8e,_0xa9e5d0-_0x579101._0x26e863,_0xa9e5d0);}function _0x203eaa(_0xc3fced,_0x2dd177,_0x23f371,_0x18576b){return _0x4abdca(_0xc3fced-_0x5871e0._0x1fa540,_0x2dd177- -_0x5871e0._0x33faba,_0x23f371-_0x5871e0._0x2ba22a,_0x23f371);}if(_0x5622f6[_0x121504(0x52d,_0x3bdec1._0x882072,0x4a9,_0x3bdec1._0x69640)]===_0x121504(0x4bf,0x497,_0x3bdec1._0x1727dc,_0x3bdec1._0x293954))return{..._0x3b3fb5?{'headers':_0x3b3fb5}:{},'thinking':{'type':_0x203eaa(-0x1c9,-0x181,-0x1ef,-_0x3bdec1._0x226449),'budget_tokens':_0x5622f6['budgetTokens'],'display':_0xc68e90}};return{..._0x3b3fb5?{'headers':_0x3b3fb5}:{},'thinking':{'type':'adaptive',..._0x5622f6[_0x203eaa(-_0x3bdec1._0x25a1f8,-0x14a,-0xd4,-0xc3)]?{'effort':_0x5622f6['effort']}:{},'display':_0xc68e90}};}function toAnthropicRequestContent(_0x3fb559){const _0x4140ac={_0x1bc57b:0xb5,_0x12e63f:0xab,_0x5416e9:0x3d,_0x360fdc:0x26e,_0x37ab5d:0x2fd,_0x3de92f:0x405,_0x5ce69f:0x6,_0x3153c7:0xba,_0xffdb8a:0x151,_0x3b2415:0x9c,_0xe6aabf:0x145,_0x3dd6e7:0x2c0,_0x43cb07:0x3ae,_0x1f6916:0x334,_0x5c4707:0x21a,_0x493fba:0x218,_0x38dae9:0x2f5,_0x561bd0:0xf6,_0x53d0fa:0x184,_0x396e6a:0x137,_0x41afc3:0x34a,_0x37f32a:0x397,_0x2942ee:0x394,_0x4dce4f:0x2bb,_0x4fc661:0x232,_0x1d3331:0xb4,_0x476408:0x46,_0x582846:0x157,_0x398185:0xbe,_0x5756cc:0xb9,_0x480702:0xdc,_0x245c1b:0xd0,_0x10ff1e:0x7b,_0x1bc63c:0x24a,_0x37d23d:0x19c},_0x437efb={_0x3bdba0:0x1e3},_0x26db51={_0x2011d1:0x1df,_0xc9866:0x2f};function _0x15a900(_0xd9663,_0x591881,_0x18ebe5,_0x425f4f){return _0x4abdca(_0xd9663-0x6a,_0xd9663- -_0x26db51._0x2011d1,_0x18ebe5-_0x26db51._0xc9866,_0x591881);}if(_0x3fb559[_0x478e95(-_0x4140ac._0x1bc57b,-0x96,-_0x4140ac._0x12e63f,-_0x4140ac._0x5416e9)]===_0x15a900(_0x4140ac._0x360fdc,_0x4140ac._0x37ab5d,0x239,0x262)&&_0x3fb559['providerState']?.[_0x15a900(0x36f,0x3fb,_0x4140ac._0x3de92f,0x344)])return structuredClone(_0x3fb559['providerState'][_0x478e95(_0x4140ac._0x5ce69f,-_0x4140ac._0x3153c7,-_0x4140ac._0xffdb8a,-_0x4140ac._0x3b2415)]);const _0x57d6b1=[];for(const _0x3bd7bf of normalizeContent(_0x3fb559[_0x478e95(-0x17a,-_0x4140ac._0xe6aabf,-0x18c,-0x1f3)])){if(_0x3bd7bf[_0x15a900(_0x4140ac._0x3dd6e7,0x243,0x2d7,0x228)]===_0x15a900(_0x4140ac._0x43cb07,0x393,0x385,_0x4140ac._0x1f6916))continue;if(_0x3bd7bf[_0x478e95(-_0x4140ac._0x5c4707,-0x169,-_0x4140ac._0x493fba,-0x193)]===_0x15a900(0x2c1,0x322,0x30b,_0x4140ac._0x38dae9)){_0x57d6b1[_0x478e95(-_0x4140ac._0x561bd0,-_0x4140ac._0x53d0fa,-_0x4140ac._0x396e6a,-0x244)]({'type':_0x15a900(0x397,_0x4140ac._0x41afc3,0x395,0x3e8),'thinking':_0x3bd7bf[_0x15a900(_0x4140ac._0x37f32a,0x386,_0x4140ac._0x2942ee,0x410)],'signature':_0x3bd7bf[_0x15a900(_0x4140ac._0x4dce4f,_0x4140ac._0x4fc661,0x32c,0x232)]});continue;}if(_0x3bd7bf['type']===_0x478e95(-0x162,-_0x4140ac._0x1d3331,-_0x4140ac._0x476408,-0x93)){_0x57d6b1[_0x478e95(-0x219,-_0x4140ac._0x53d0fa,-0x170,-_0x4140ac._0x582846)]({'type':_0x478e95(-0x53,-_0x4140ac._0x398185,-_0x4140ac._0x5756cc,-_0x4140ac._0x480702),'data':_0x3bd7bf[_0x478e95(0x40,-0x80,-_0x4140ac._0x245c1b,-_0x4140ac._0x10ff1e)]});continue;}_0x57d6b1[_0x478e95(-_0x4140ac._0x1bc63c,-0x184,-0x1a0,-_0x4140ac._0x37d23d)](structuredClone(_0x3bd7bf));}function _0x478e95(_0x52bb92,_0x3ca7e6,_0x5e575d,_0x314333){return _0x4abdca(_0x52bb92-_0x437efb._0x3bdba0,_0x3ca7e6- -0x608,_0x5e575d-0x135,_0x314333);}return _0x57d6b1;}function createAnthropicRequest(_0xe1e582,_0x2f0ff8){const _0x1dbf69={_0x118203:0xbf,_0x344dc6:0x29,_0x513aee:0x37,_0x35cf96:0x189,_0x39c7ad:0x11d,_0x5a69c5:0x11,_0x98d211:0x278,_0x322626:0x240,_0x305463:0x2cb,_0x2883d4:0x20,_0x4f68b0:0x0},_0x4dadcc={_0x1a3877:0xde,_0x176f37:0x100},_0x5568ba={_0x5006c7:0x1ef},_0x1eec90={_0x1504b3:0xff,_0x3d51de:0x9a},_0x52fc7f=toProviderModelRequest(_0xe1e582);function _0x37d232(_0x4123cb,_0x59a05f,_0xd65159,_0x4d57df){return _0x3921cc(_0x4123cb-_0x1eec90._0x1504b3,_0x4123cb- -0x15e,_0x59a05f,_0x4d57df-_0x1eec90._0x3d51de);}const _0x3c271f=createAnthropicThinkingBody(_0xe1e582);function _0x131f83(_0x3289f6,_0x520f4b,_0x22981f,_0x26421e){return _0x3921cc(_0x3289f6-0x89,_0x22981f- -0x337,_0x26421e,_0x26421e-0x5c);}return{'accept':_0x2f0ff8?_0x131f83(-0x1b,0x3,-0x9d,-_0x1dbf69._0x118203):_0x131f83(-0x61,_0x1dbf69._0x344dc6,_0x1dbf69._0x513aee,0x46),'body':{..._0x52fc7f,'messages':_0xe1e582[_0x37d232(_0x1dbf69._0x35cf96,_0x1dbf69._0x39c7ad,0x206,0x1e5)]['map'](_0x2d1f0f=>{function _0x4e64bf(_0x54c7bf,_0x2b5cf0,_0x247ec4,_0x5654d0){return _0x131f83(_0x54c7bf-_0x5568ba._0x5006c7,_0x2b5cf0-0x1ac,_0x2b5cf0- -0x191,_0x5654d0);}return{'role':_0x2d1f0f[_0x4e64bf(-_0x4dadcc._0x1a3877,-0xf6,-0xd2,-_0x4dadcc._0x176f37)],'content':toAnthropicRequestContent(_0x2d1f0f)};}),..._0x3c271f[_0x131f83(0x9e,0xa0,0x9f,-_0x1dbf69._0x5a69c5)]?{'thinking':_0x3c271f[_0x37d232(_0x1dbf69._0x98d211,0x1c5,0x239,0x1c4)]}:{},..._0x2f0ff8?{'stream':!![]}:{}},..._0x3c271f[_0x37d232(0x26c,0x1ca,_0x1dbf69._0x322626,_0x1dbf69._0x305463)]?{'headers':_0x3c271f['headers']}:{},'path':_0x131f83(-0xc1,-_0x1dbf69._0x2883d4,-0x8,_0x1dbf69._0x4f68b0)};}function parseAnthropicResponse(_0x34951f,_0x23edaa){const _0x401729={_0x8a063f:0x18c,_0x14f632:0x1d3,_0x55a9f7:0x106,_0x529043:0x160,_0x33a9e3:0x1c3,_0x234418:0x1ec,_0x4e822b:0x1a7,_0x50db21:0x98,_0x39893c:0x111,_0x245e5c:0xe7,_0x4a18af:0x105,_0x3bf02c:0x1ad,_0x1cace7:0x5f4,_0x52fad1:0x55c,_0x30c4a5:0x606,_0x8fa8aa:0x64c,_0x4475f9:0x580,_0x48b6af:0x166,_0x486862:0x69,_0x5aac47:0xa3,_0xac0b57:0x176,_0x52ca1e:0x1a8,_0x3ed9dd:0x63d,_0x2690cd:0x60c,_0x518c20:0x61a,_0x5ee689:0x60f,_0x226136:0x656,_0x344a33:0x160,_0x5382a1:0x162,_0x2f1312:0x1c3,_0x5eea9c:0x135,_0x282433:0x42,_0x47033c:0x214,_0x59756f:0x15f,_0x625a41:0x1f2,_0x2ea688:0x19d,_0x126f60:0x576,_0x4948f4:0x528,_0x3131f4:0x18a,_0x44ab25:0x102,_0x9c169c:0x18d,_0x28b9fb:0x4d2,_0x363849:0x5d1,_0x47b2e8:0x60f,_0x323ebb:0x5fa,_0x345c56:0x583,_0x7c7e43:0x6c4,_0x2d2df7:0xde,_0x3d26b4:0x0,_0x14f959:0xa7,_0x4117b7:0x8c,_0x143a57:0x15b,_0x1e6483:0x252},_0x3b32f6={_0x4ffed2:0x19a},_0x15a0d3={_0x4eda83:0xf8,_0x1e9a7d:0x647,_0x2fde24:0xc2},_0x432a11=[],_0x1ffe82=_0x34951f[_0xf76870(-0x102,-_0x401729._0x8a063f,-_0x401729._0x14f632,-0x184)]??[];function _0xf76870(_0x21da6b,_0x447660,_0x2be69f,_0x5ea324){return _0x4abdca(_0x21da6b-_0x15a0d3._0x4eda83,_0x5ea324- -_0x15a0d3._0x1e9a7d,_0x2be69f-_0x15a0d3._0x2fde24,_0x2be69f);}function _0x29832a(_0x36b30f,_0x1e1493,_0x4f10fd,_0x4902b5){return _0x4abdca(_0x36b30f-0xd2,_0x36b30f-0xbc,_0x4f10fd-_0x3b32f6._0x4ffed2,_0x4f10fd);}let _0x297162=![];for(const _0x507003 of _0x1ffe82){if(_0x507003['type']===_0xf76870(-_0x401729._0x55a9f7,-0x16e,-0xb9,-0xd1)){_0x297162=!![];isUserVisibleThinking(_0x23edaa)&&_0x432a11[_0xf76870(-_0x401729._0x529043,-0x279,-0x132,-_0x401729._0x33a9e3)]({'type':_0xf76870(-_0x401729._0x234418,-0x100,-0x17d,-_0x401729._0x4e822b),'thinking':_0x507003[_0xf76870(-0x53,-_0x401729._0x50db21,-_0x401729._0x39893c,-0xd1)],'signature':_0x507003[_0xf76870(-0x188,-_0x401729._0x245e5c,-_0x401729._0x4a18af,-_0x401729._0x3bf02c)]});continue;}if(_0x507003[_0x29832a(0x55b,_0x401729._0x1cace7,_0x401729._0x52fad1,0x5c3)]===_0x29832a(_0x401729._0x30c4a5,_0x401729._0x8fa8aa,_0x401729._0x4475f9,0x693)){_0x297162=!![];isUserVisibleThinking(_0x23edaa)&&_0x432a11[_0x29832a(0x540,0x59f,0x5c2,0x588)]({'type':_0xf76870(-0x2e,-0x6e,-_0x401729._0x48b6af,-0xf3),'data':_0x507003[_0xf76870(-_0x401729._0x486862,-_0x401729._0x5aac47,-0xaf,-0xbf)]});continue;}if(_0x507003[_0xf76870(-0x1dd,-0x17d,-_0x401729._0xac0b57,-_0x401729._0x52ca1e)]===_0x29832a(_0x401729._0x3ed9dd,_0x401729._0x3ed9dd,0x64a,_0x401729._0x2690cd)){_0x507003[_0x29832a(0x63d,0x630,0x5cc,0x613)][_0x29832a(_0x401729._0x518c20,0x590,_0x401729._0x5ee689,_0x401729._0x226136)]>0x0&&_0x432a11['push'](structuredClone(_0x507003));continue;}_0x432a11[_0xf76870(-0x26d,-_0x401729._0x344a33,-_0x401729._0x5382a1,-_0x401729._0x2f1312)](structuredClone(_0x507003));}return{'id':_0x34951f['id']??_0xf76870(-0xf5,-_0x401729._0x5eea9c,-_0x401729._0x282433,-0xdb)+Date[_0xf76870(-0x15c,-0x18d,-_0x401729._0x47033c,-_0x401729._0x59756f)](),'content':_0x432a11,'stopReason':_0x432a11[_0xf76870(-0x20c,-0x1c9,-_0x401729._0x625a41,-_0x401729._0x2ea688)](_0x14e001=>_0x14e001['type']===_0xf76870(-0x19d,-0x1bc,-0x144,-0x18d))?_0x29832a(_0x401729._0x126f60,_0x401729._0x4948f4,0x4fd,0x51f):_0x34951f['stop_reason']===_0xf76870(-0x1c4,-_0x401729._0x3131f4,-_0x401729._0x44ab25,-_0x401729._0x9c169c)?'tool_use':_0x29832a(0x54e,_0x401729._0x28b9fb,_0x401729._0x363849,0x5a1),'usage':{'inputTokens':_0x34951f[_0x29832a(_0x401729._0x47b2e8,_0x401729._0x323ebb,_0x401729._0x345c56,_0x401729._0x7c7e43)]?.[_0xf76870(-_0x401729._0x2d2df7,_0x401729._0x3d26b4,-0xab,-_0x401729._0x14f959)]??0x0,'outputTokens':_0x34951f[_0xf76870(-0x122,-0x10e,-_0x401729._0x4117b7,-0xf4)]?.[_0xf76870(-_0x401729._0x143a57,-0x1c0,-_0x401729._0x1e6483,-0x1af)]??0x0},..._0x297162?{'providerState':{'anthropicAssistantContent':structuredClone(_0x1ffe82)}}:{}};}var AnthropicMessagesStreamParser=class{['blocks']=new Map();['inputTokens']=0x0;['messageId']=_0x3921cc(0x388,0x3cc,0x46f,0x392)+Date['now']();[_0x4abdca(0x591,0x4d4,0x551,0x4e3)]=0x0;[_0x3921cc(0x21d,0x28a,0x322,0x1f6)];['stopReason']='end_turn';constructor(_0x2e724c){const _0x4c929a={_0x220148:0x51,_0x1dccd6:0x48},_0x5170ca={_0x47f3d7:0xb0,_0x4177d0:0x47b,_0x3b2098:0x19d};function _0x2d1b4e(_0x5edea2,_0x4400d5,_0x3944c1,_0x2f4248){return _0x4abdca(_0x5edea2-_0x5170ca._0x47f3d7,_0x4400d5- -_0x5170ca._0x4177d0,_0x3944c1-_0x5170ca._0x3b2098,_0x2f4248);}this[_0x2d1b4e(-0x18,-_0x4c929a._0x220148,-0x6f,-_0x4c929a._0x1dccd6)]=_0x2e724c;}[_0x4abdca(0x429,0x4b8,0x416,0x46b)](_0x260b97){const _0x525c81={_0x31c623:0x536,_0x298f6a:0x478,_0x31339f:0x48a,_0x16ffae:0x73,_0x3f6771:0x7a,_0x20a607:0x105,_0xceb59b:0x9b,_0x34c800:0x46,_0x408f08:0x40,_0x163ec7:0x55a,_0x581cee:0x5a2,_0x43d32b:0xbc,_0x6d6068:0x31,_0x4e041a:0x7,_0x1dac41:0x26,_0x1cbefb:0x6,_0x3fede4:0x4cc,_0x1c21a4:0x73,_0x567fa3:0x71,_0x2f6d56:0x692,_0x4d9bad:0x621,_0x4cc913:0x531,_0x585504:0x542,_0xb7053f:0x142,_0x37292b:0x8e,_0x5df1dd:0x2b,_0x5a187f:0x117,_0x272e3d:0x7a,_0x77cb50:0x16,_0x295f19:0x52d,_0x40c6b9:0x4c9,_0x5723a1:0x30,_0x33cc5b:0x1a,_0x5254f0:0xca,_0x3ad1b0:0x4f,_0x4d5c68:0x545,_0x4933f7:0x5ce,_0x511fc7:0x6f1,_0xe02b33:0x90,_0x32fa39:0x5e,_0x71b2a3:0x63c,_0x37f12:0x571,_0x2d8208:0x2f,_0xe306c8:0x537,_0x561233:0x54b,_0x4a1051:0x44a,_0x1a9ca2:0x535,_0x50f329:0x601,_0x2fa3ea:0x596,_0xdae83b:0x10b,_0x1d7c23:0x7f,_0x443533:0xf7,_0x3c8a1b:0x40,_0x45277b:0x19,_0x142d67:0x7f,_0x70707f:0x11f,_0x23d101:0x557,_0x204b0c:0x655,_0x1c30a1:0x110,_0x1f59c2:0x68,_0x385858:0x56e,_0xe91104:0x5ca,_0x2c6005:0x64b,_0xcce5d4:0x617,_0x1de177:0x5d8,_0x542641:0x96,_0x25fd58:0x92,_0x2fdfaf:0x4a1,_0x128459:0x47c,_0x4f9a16:0x47f,_0x21cce2:0x4da,_0x3788a5:0x4d2,_0x2cf5eb:0xad,_0xdbc7a3:0x60c,_0xdb312:0x2a,_0x4d6c74:0x77,_0x2597f4:0x6bd,_0x48271d:0x5ab,_0x709a49:0x127,_0x8aeb37:0x68,_0x4ae191:0x60c,_0x256993:0x5d1,_0x5dec3f:0x575,_0x479932:0x58c,_0x219bc7:0x521,_0x1c6e67:0x41,_0x7c5ad5:0xe5,_0x3afaf2:0x518,_0x18e8e1:0x4e1,_0x2a5706:0x498,_0x264244:0x1e,_0x2d426c:0x528,_0x140bef:0x39,_0x1f0213:0x24,_0x38c7e0:0x567,_0xe80e8a:0x4b7,_0x3e9d22:0x57b,_0x17261f:0x54f,_0x269a43:0xf6,_0x15a588:0x54,_0x51a988:0x100,_0x176bb6:0xb6,_0x1c31d3:0x641,_0x10500f:0x568,_0xebae20:0x6ce,_0x315f5a:0x6a,_0x5c4075:0x72,_0x28c9aa:0x52a,_0x5a2c4b:0x563,_0x4f7a61:0x4fc,_0x4e5dea:0xed,_0x2b02ef:0xb2,_0x1b2f98:0x1f,_0x39da83:0x13b,_0x3cb299:0x73,_0x594ddf:0xdb,_0x3a89e3:0x5f2,_0x3ba887:0x5fd,_0x5760e7:0x56a,_0x14820e:0x4e,_0x124692:0x60,_0x3a5a11:0x5e,_0x1c9dcf:0x4c,_0x33a5f7:0x127,_0x36c55f:0x87,_0x3d2963:0x2a,_0x6f38ea:0x5bb,_0x28ac4a:0x5b0,_0x631833:0x61b,_0x4fe110:0x569,_0x3892b8:0x8b,_0x3ed017:0x5d,_0x519743:0x5f,_0x13e678:0x28,_0x2c914e:0x1a6,_0x2eb5c5:0xef,_0x186562:0x74,_0x30489b:0x81,_0x3c3382:0x12,_0x12bc68:0x44,_0x4b48dc:0x490,_0x189b5d:0xce,_0x38b544:0x13a,_0x26751b:0x9,_0x107834:0x61b,_0x358685:0x6dd,_0x352a1a:0x6e0,_0x5df2:0x67e,_0x5284fb:0x503,_0x18048b:0x525,_0x5fdb5f:0x1b1,_0x2c28df:0x66,_0x5e534b:0x642,_0x49f3f5:0x9d,_0x3a95c:0xa5,_0x18aa82:0x7,_0x27c797:0x81,_0x5ac655:0x575,_0x5601c5:0x5a1,_0x413adf:0x6a8,_0x531d47:0x5a9,_0x283a2e:0x3e,_0xef1be1:0x16,_0x5852ca:0x99,_0x283f94:0x53,_0x502d88:0x482,_0x371903:0x4a8,_0x26dc79:0x10e,_0x4c9c22:0x5d,_0x525326:0x1a,_0x1b8264:0x2e},_0x5dd921={_0x7f0b77:0x46},_0x3cde05={_0x2bdc29:0x114,_0x43f6ac:0x8b},_0xf276aa=_0x260b97[_0x681ff9(_0x525c81._0x31c623,0x4db,_0x525c81._0x298f6a,0x5ee)]('\x0a'),_0x321eed=_0xf276aa[_0x681ff9(0x51b,_0x525c81._0x31339f,0x538,0x59e)](_0xc4d1d8=>_0xc4d1d8[_0x45ce9f(-0x51,0x25,0x1d,0x88)](_0x45ce9f(0x122,0x133,0x84,0xc7)))?.[_0x45ce9f(_0x525c81._0x16ffae,0x2a,0x52,_0x525c81._0x3f6771)](0x6)['trim'](),_0x49ea56=_0xf276aa['filter'](_0x3e9e36=>_0x3e9e36[_0x681ff9(0x5c1,0x668,0x593,0x5f3)](_0x45ce9f(-0x27,-0x48,-0x2b,-0x94)))['map'](_0x598ec8=>_0x598ec8[_0x45ce9f(-0x64,0x15,0x52,0x10d)](0x5)[_0x681ff9(0x5e0,0x5d9,0x635,0x552)]())[_0x45ce9f(-_0x525c81._0x20a607,-0x101,-_0x525c81._0xceb59b,-0xce)]('\x0a')[_0x45ce9f(0x1c,0xe7,_0x525c81._0x34c800,-_0x525c81._0x408f08)]();if(_0x49ea56[_0x681ff9(0x5e9,_0x525c81._0x163ec7,0x57e,_0x525c81._0x581cee)]===0x0||_0x49ea56===_0x45ce9f(0xee,0xdb,0x98,_0x525c81._0x43d32b))return[];function _0x681ff9(_0x13c76f,_0x474dcb,_0x124165,_0x25e87c){return _0x4abdca(_0x13c76f-_0x3cde05._0x2bdc29,_0x13c76f-_0x3cde05._0x43f6ac,_0x124165-0xec,_0x474dcb);}const _0x1ed4c0=JSON['parse'](_0x49ea56);switch(_0x321eed){case _0x45ce9f(_0x525c81._0x6d6068,-_0x525c81._0x4e041a,-_0x525c81._0x1dac41,-_0x525c81._0x1cbefb):{const _0x153e56=_0x1ed4c0['message'];this['messageId']=_0x153e56?.['id']??this[_0x681ff9(0x553,0x5cc,_0x525c81._0x3fede4,0x5da)],this[_0x45ce9f(-_0x525c81._0x1c21a4,-0xe0,-_0x525c81._0x567fa3,-_0x525c81._0x567fa3)]=_0x153e56?.['usage']?.['input_tokens']??this['inputTokens'];break;}case _0x681ff9(0x5dc,_0x525c81._0x2f6d56,_0x525c81._0x4d9bad,_0x525c81._0x4cc913):{const _0x4ab5cb=typeof _0x1ed4c0[_0x681ff9(0x518,_0x525c81._0x585504,0x4ed,0x530)]===_0x45ce9f(-0x2d,0xe9,0x91,_0x525c81._0xb7053f)?_0x1ed4c0['index']:0x0,_0x14f755=_0x1ed4c0[_0x45ce9f(0x6b,-_0x525c81._0x37292b,_0x525c81._0x5df1dd,-0x15)];if(_0x14f755?.[_0x45ce9f(-_0x525c81._0x5a187f,-0xd8,-_0x525c81._0x272e3d,_0x525c81._0x77cb50)]===_0x681ff9(0x545,0x5af,_0x525c81._0x295f19,_0x525c81._0x40c6b9)&&_0x14f755['id']&&_0x14f755['name'])return this[_0x45ce9f(-0x115,-_0x525c81._0x5723a1,-0x6d,_0x525c81._0x33cc5b)][_0x45ce9f(-0x3a,-0x96,-_0x525c81._0x5254f0,-_0x525c81._0x3ad1b0)](_0x4ab5cb,{'id':_0x14f755['id'],'index':_0x4ab5cb,'inputJson':JSON['stringify'](_0x14f755['input']??{}),'kind':_0x681ff9(_0x525c81._0x4d5c68,0x586,0x5a9,_0x525c81._0x4933f7),'name':_0x14f755[_0x681ff9(0x634,0x5d1,_0x525c81._0x511fc7,0x6c8)]}),[{'type':_0x45ce9f(_0x525c81._0xe02b33,0x70,_0x525c81._0x32fa39,0x0),'id':_0x14f755['id'],'index':_0x4ab5cb,'name':_0x14f755[_0x681ff9(0x634,_0x525c81._0x71b2a3,0x6c2,_0x525c81._0x37f12)]}];if(_0x14f755?.['type']===_0x45ce9f(-0x58,0x11a,0x5d,-_0x525c81._0x2d8208)){this[_0x681ff9(_0x525c81._0xe306c8,0x4c7,0x5a7,_0x525c81._0x561233)][_0x681ff9(0x4da,0x4c9,_0x525c81._0x4a1051,_0x525c81._0x1a9ca2)](_0x4ab5cb,{'index':_0x4ab5cb,'kind':_0x681ff9(_0x525c81._0x50f329,_0x525c81._0x2fa3ea,0x58f,0x5da),'signature':typeof _0x14f755[_0x45ce9f(-_0x525c81._0xdae83b,-0x59,-_0x525c81._0x1d7c23,-_0x525c81._0x443533)]==='string'?_0x14f755[_0x45ce9f(_0x525c81._0x3c8a1b,_0x525c81._0x45277b,-_0x525c81._0x142d67,-_0x525c81._0x70707f)]:'','thinking':typeof _0x14f755[_0x681ff9(0x60c,0x6d0,0x557,_0x525c81._0x23d101)]===_0x681ff9(0x61b,0x696,0x6bd,_0x525c81._0x204b0c)?_0x14f755[_0x45ce9f(_0x525c81._0x1c30a1,0xe1,_0x525c81._0x1f59c2,-0x1b)]:typeof _0x14f755[_0x681ff9(0x601,_0x525c81._0x385858,0x6b6,0x654)]===_0x681ff9(0x61b,_0x525c81._0xe91104,_0x525c81._0x2c6005,0x6c1)?String(_0x14f755[_0x681ff9(_0x525c81._0x50f329,0x647,_0x525c81._0xcce5d4,_0x525c81._0x1de177)]):''});break;}if(_0x14f755?.[_0x45ce9f(0x1f,-0xff,-_0x525c81._0x3f6771,-_0x525c81._0x542641)]===_0x45ce9f(-0x86,-_0x525c81._0x25fd58,_0x525c81._0x6d6068,-0x36)){this[_0x681ff9(0x537,_0x525c81._0x2fdfaf,_0x525c81._0x128459,_0x525c81._0x4f9a16)][_0x681ff9(_0x525c81._0x21cce2,0x546,0x4e8,_0x525c81._0x3788a5)](_0x4ab5cb,{'index':_0x4ab5cb,'kind':_0x45ce9f(0x60,_0x525c81._0x2cf5eb,0x31,-0x76),'data':typeof _0x14f755[_0x681ff9(0x613,0x63d,0x66c,_0x525c81._0xdbc7a3)]===_0x45ce9f(-_0x525c81._0xdb312,0xb4,_0x525c81._0x4d6c74,0xd7)?String(_0x14f755[_0x681ff9(0x613,0x631,_0x525c81._0x2597f4,_0x525c81._0x48271d)]):''});break;}this[_0x681ff9(_0x525c81._0xe306c8,0x4b6,0x5d1,0x4fd)]['set'](_0x4ab5cb,{'index':_0x4ab5cb,'kind':_0x45ce9f(_0x525c81._0x709a49,0xe2,_0x525c81._0x8aeb37,0x116),'text':_0x14f755?.[_0x681ff9(_0x525c81._0x4ae191,_0x525c81._0x256993,0x69b,_0x525c81._0x5dec3f)]??''});break;}case'content_block_delta':{const _0x58295c=typeof _0x1ed4c0[_0x681ff9(0x518,0x4f9,_0x525c81._0x479932,_0x525c81._0x219bc7)]===_0x45ce9f(_0x525c81._0x1c6e67,0x49,0x91,_0x525c81._0x7c5ad5)?_0x1ed4c0[_0x681ff9(_0x525c81._0x3afaf2,_0x525c81._0x18e8e1,_0x525c81._0x2a5706,0x593)]:0x0,_0x2f42b0=this[_0x45ce9f(-0xef,-0x101,-0x6d,_0x525c81._0x264244)][_0x681ff9(0x4eb,_0x525c81._0x2d426c,0x5a5,0x54c)](_0x58295c),_0x25e0a0=_0x1ed4c0[_0x45ce9f(0x31,-0xac,-_0x525c81._0x140bef,_0x525c81._0x1f0213)];if(!_0x2f42b0||!_0x25e0a0?.['type'])break;if(_0x25e0a0['type']===_0x681ff9(0x4f0,0x437,0x47e,_0x525c81._0x38c7e0)&&_0x2f42b0[_0x681ff9(_0x525c81._0xe80e8a,0x431,_0x525c81._0x3e9d22,_0x525c81._0x17261f)]===_0x45ce9f(0xa0,_0x525c81._0x269a43,_0x525c81._0x1f59c2,0x96)&&typeof _0x25e0a0[_0x45ce9f(_0x525c81._0x32fa39,-_0x525c81._0x15a588,0x68,_0x525c81._0x77cb50)]===_0x45ce9f(_0x525c81._0x51a988,_0x525c81._0x176bb6,0x77,0xd4))return _0x2f42b0[_0x681ff9(0x60c,0x5e7,_0x525c81._0x1c31d3,_0x525c81._0x10500f)]+=_0x25e0a0[_0x681ff9(0x60c,_0x525c81._0xebae20,0x6cc,0x5a5)],[{'type':_0x45ce9f(-0x27,_0x525c81._0x315f5a,0x6d,0x11),'index':_0x58295c,'text':_0x25e0a0[_0x45ce9f(_0x525c81._0x5c4075,0xf2,0x68,-0xa)]}];if(_0x25e0a0[_0x681ff9(_0x525c81._0x28c9aa,0x585,0x5b6,_0x525c81._0x5a2c4b)]===_0x681ff9(0x4e3,0x599,0x465,_0x525c81._0x4f7a61)&&_0x2f42b0[_0x45ce9f(-0xe7,-0x10c,-_0x525c81._0x4e5dea,-_0x525c81._0x2b02ef)]==='tool_use'&&typeof _0x25e0a0[_0x45ce9f(-_0x525c81._0x1b2f98,-_0x525c81._0x39da83,-0x9a,-_0x525c81._0x3cb299)]===_0x45ce9f(0x10c,_0x525c81._0x594ddf,0x77,0xf1))return _0x2f42b0[_0x681ff9(_0x525c81._0x3a89e3,0x613,_0x525c81._0x3ba887,_0x525c81._0x5760e7)]==='{}'&&(_0x2f42b0[_0x45ce9f(0x11,0x8b,_0x525c81._0x14820e,0x83)]=''),_0x2f42b0[_0x45ce9f(-0x51,0xc0,0x4e,-_0x525c81._0x124692)]+=_0x25e0a0['partial_json'],[{'type':_0x45ce9f(-0x7,0x11a,_0x525c81._0x3a5a11,0x10c),'id':_0x2f42b0['id'],'index':_0x58295c,'inputDelta':_0x25e0a0[_0x45ce9f(-_0x525c81._0x1c9dcf,-0x120,-0x9a,-_0x525c81._0x33a5f7)]}];if(_0x25e0a0[_0x45ce9f(0x3e,-0xda,-0x7a,-_0x525c81._0x36c55f)]==='thinking_delta'&&_0x2f42b0['kind']===_0x45ce9f(_0x525c81._0x3d2963,0x116,0x5d,_0x525c81._0x264244)){const _0x20ee2e=typeof _0x25e0a0[_0x681ff9(0x601,_0x525c81._0x6f38ea,_0x525c81._0x28ac4a,0x59a)]===_0x681ff9(_0x525c81._0x631833,_0x525c81._0x4fe110,0x6a7,0x663)?String(_0x25e0a0[_0x45ce9f(_0x525c81._0x3892b8,-0x43,_0x525c81._0x3ed017,0x0)]):'';if(_0x20ee2e[_0x45ce9f(_0x525c81._0x519743,_0x525c81._0x13e678,0x45,0x14)]>0x0){_0x2f42b0[_0x681ff9(0x601,0x550,0x690,0x545)]+=_0x20ee2e;if(isUserVisibleThinking(this[_0x45ce9f(-0x130,-_0x525c81._0x2c914e,-_0x525c81._0x2eb5c5,-_0x525c81._0x186562)]))return[{'type':_0x45ce9f(_0x525c81._0x30489b,0x1,-_0x525c81._0x3c3382,-_0x525c81._0x12bc68),'index':_0x58295c,'thinking':_0x20ee2e}];}}if(_0x25e0a0['type']==='signature_delta'&&_0x2f42b0[_0x681ff9(0x4b7,0x4b1,0x3f5,_0x525c81._0x4b48dc)]==='thinking'){const _0x3dec81=typeof _0x25e0a0[_0x45ce9f(-_0x525c81._0x189b5d,-_0x525c81._0x38b544,-0x7f,-_0x525c81._0x26751b)]===_0x681ff9(_0x525c81._0x107834,_0x525c81._0x358685,0x656,_0x525c81._0x352a1a)?String(_0x25e0a0['signature']):'';if(_0x3dec81[_0x681ff9(0x5e9,_0x525c81._0x5df2,0x5c4,0x613)]>0x0){_0x2f42b0[_0x681ff9(0x525,0x524,_0x525c81._0x5284fb,_0x525c81._0x18048b)]=_0x3dec81;if(isUserVisibleThinking(this[_0x45ce9f(-_0x525c81._0x5fdb5f,-0xee,-0xef,-_0x525c81._0x2c28df)]))return[{'type':_0x681ff9(_0x525c81._0xcce5d4,0x6ad,0x65b,_0x525c81._0x5e534b),'index':_0x58295c,'signature':_0x3dec81}];}}break;}case'message_delta':{const _0x3e12ea=_0x1ed4c0['delta'],_0x27f1d3=_0x1ed4c0[_0x45ce9f(_0x525c81._0x49f3f5,-0x71,0x3a,_0x525c81._0x3a95c)];this['outputTokens']=_0x27f1d3?.[_0x45ce9f(-0x4e,-_0x525c81._0x18aa82,-_0x525c81._0x27c797,-0x60)]??this[_0x681ff9(0x55f,_0x525c81._0x5ac655,0x5e9,_0x525c81._0x5601c5)],this[_0x681ff9(_0x525c81._0x4d9bad,_0x525c81._0x413adf,0x5f4,_0x525c81._0x531d47)]=_0x3e12ea?.[_0x45ce9f(-_0x525c81._0x283a2e,-_0x525c81._0xef1be1,-0xd5,-_0x525c81._0x5852ca)]==='tool_use'?_0x45ce9f(0x18,_0x525c81._0x283f94,-0x5f,-0x59):_0x681ff9(0x51d,0x578,0x5a9,_0x525c81._0x502d88);break;}case _0x681ff9(0x4b3,0x4e4,0x505,_0x525c81._0x371903):{const _0x38fe69=_0x1ed4c0[_0x45ce9f(-_0x525c81._0x26dc79,-_0x525c81._0x33a5f7,-0xf1,-0x49)];throw new Error(_0x38fe69?.[_0x45ce9f(-_0x525c81._0x4c9c22,_0x525c81._0x525326,-_0x525c81._0x1b8264,-0xd1)]??'Anthropic\x20stream\x20failed');}}function _0x45ce9f(_0x156c99,_0x25a75c,_0x233342,_0xa7600d){return _0x3921cc(_0x156c99-0x3b,_0x233342- -0x379,_0x156c99,_0xa7600d-_0x5dd921._0x7f0b77);}return[];}[_0x3921cc(0x3be,0x327,0x32a,0x280)](){const _0x30f39e={_0x391214:0x125,_0xdc438a:0x138,_0x25d144:0x679,_0x5b4975:0x5cc,_0x54ed9e:0x12e,_0x576775:0x196,_0x30cc33:0x550,_0x9eb7bd:0x544,_0x16aa50:0x75d,_0x39fd8a:0x699,_0x34358a:0x1ec,_0x129417:0x20d,_0x211291:0x6b3,_0x5945d6:0x62b,_0x327c24:0x751,_0x56df94:0x28d,_0x306f24:0x185,_0xf32a6b:0x21e,_0x289430:0x202,_0x3d5742:0x6bc,_0x1bb564:0x6b0,_0x3cdced:0x68e,_0x4e0173:0x646,_0x4870d8:0x555,_0x262e89:0x5b2,_0x3e92ba:0x280,_0x36748f:0x1d6,_0x2f05df:0x51d,_0x553a9d:0x659,_0x4e114b:0x649,_0x58aed5:0x662,_0x226400:0x6d5,_0x4aa400:0x6bb,_0x25ee1c:0x6a0,_0x3afe1f:0x54f,_0x51d7b6:0x557,_0x571e32:0x59c,_0x4378ec:0x63c,_0x1fb80c:0x5d2,_0x3bcc3e:0x17c,_0x355d17:0xcf,_0x4eb2ba:0x177,_0x39e1e7:0xb4,_0x153249:0x177,_0x4b7806:0x141,_0x3a2e45:0x90,_0x3f31af:0x134,_0x1fa4f1:0x600,_0x1c7597:0x5f6,_0x3d4fa9:0x529,_0x236c43:0x603},_0x4bd285={_0x7eff02:0x179,_0x413aa5:0x374,_0x34e1bd:0x19e},_0x218dad={_0x57ffc7:0x169,_0x219cca:0x2b8,_0x5188b6:0x5a};function _0x360684(_0x3f13c5,_0x35568e,_0x1710da,_0x44354a){return _0x3921cc(_0x3f13c5-_0x218dad._0x57ffc7,_0x44354a-_0x218dad._0x219cca,_0x35568e,_0x44354a-_0x218dad._0x5188b6);}const _0x434364=Array['from'](this[_0x191791(0x113,0x1cb,_0x30f39e._0x391214,_0x30f39e._0xdc438a)][_0x360684(_0x30f39e._0x25d144,0x66f,0x588,_0x30f39e._0x5b4975)]())[_0x191791(0x5d,_0x30f39e._0x54ed9e,_0x30f39e._0x576775,0xeb)]((_0x31f567,_0x5b7d04)=>_0x31f567[_0x191791(0xfa,0x139,0x13d,0x119)]-_0x5b7d04[_0x360684(0x607,0x51e,0x55c,0x5a5)]),_0x924053=[];function _0x191791(_0xdd9335,_0x437979,_0x2f9d83,_0x2207a){return _0x4abdca(_0xdd9335-_0x4bd285._0x7eff02,_0x2207a- -_0x4bd285._0x413aa5,_0x2f9d83-_0x4bd285._0x34e1bd,_0x437979);}for(const _0x2b6bf4 of _0x434364){if(_0x2b6bf4[_0x360684(0x576,0x52c,_0x30f39e._0x30cc33,_0x30f39e._0x9eb7bd)]===_0x360684(_0x30f39e._0x16aa50,0x676,0x709,_0x30f39e._0x39fd8a)){_0x2b6bf4[_0x191791(0x294,_0x30f39e._0x34358a,0x19f,_0x30f39e._0x129417)][_0x360684(_0x30f39e._0x211291,0x6d8,_0x30f39e._0x5945d6,0x676)]>0x0&&_0x924053[_0x191791(0x184,0x101,0x152,0x110)]({'type':_0x360684(_0x30f39e._0x327c24,0x750,0x63f,_0x30f39e._0x39fd8a),'text':_0x2b6bf4[_0x191791(0x299,_0x30f39e._0x56df94,0x1ec,0x20d)]});continue;}if(_0x2b6bf4['kind']===_0x191791(_0x30f39e._0x306f24,0x2bf,_0x30f39e._0xf32a6b,_0x30f39e._0x289430)){_0x924053[_0x360684(0x548,0x5f6,0x64b,0x59c)]({'type':_0x360684(_0x30f39e._0x3d5742,_0x30f39e._0x1bb564,0x61e,0x68e),'thinking':_0x2b6bf4[_0x360684(0x635,0x699,0x601,_0x30f39e._0x3cdced)],'signature':_0x2b6bf4[_0x360684(0x5e8,_0x30f39e._0x4e0173,_0x30f39e._0x4870d8,_0x30f39e._0x262e89)]});continue;}if(_0x2b6bf4['kind']===_0x191791(0x25b,0x27e,_0x30f39e._0x3e92ba,_0x30f39e._0x36748f)){_0x924053[_0x360684(_0x30f39e._0x2f05df,0x627,_0x30f39e._0x553a9d,0x59c)]({'type':_0x360684(0x634,_0x30f39e._0x4e114b,0x5eb,_0x30f39e._0x58aed5),'data':_0x2b6bf4[_0x360684(_0x30f39e._0x226400,_0x30f39e._0x4aa400,0x60b,_0x30f39e._0x25ee1c)]});continue;}_0x924053[_0x360684(0x60c,_0x30f39e._0x3afe1f,_0x30f39e._0x51d7b6,_0x30f39e._0x571e32)]({'type':_0x360684(_0x30f39e._0x4378ec,0x5e3,0x629,_0x30f39e._0x1fb80c),'id':_0x2b6bf4['id'],'name':_0x2b6bf4['name'],'input':parseToolInput(_0x2b6bf4['inputJson'][_0x191791(_0x30f39e._0x3bcc3e,0x18a,0x16a,0x1ea)]>0x0?_0x2b6bf4['inputJson']:'{}')});}return parseAnthropicResponse({'id':this['messageId'],'type':_0x191791(_0x30f39e._0x355d17,_0x30f39e._0x4eb2ba,_0x30f39e._0x39e1e7,_0x30f39e._0x153249),'role':_0x191791(_0x30f39e._0x4b7806,0x7e,0x53,0xd9),'content':_0x924053,'stop_reason':this['stopReason'],'stop_sequence':null,'usage':{'input_tokens':this[_0x191791(0x139,_0x30f39e._0x3a2e45,0x9a,_0x30f39e._0x3f31af)],'output_tokens':this[_0x360684(0x564,_0x30f39e._0x1fa4f1,_0x30f39e._0x1c7597,0x5ec)]}},this[_0x360684(_0x30f39e._0x3d4fa9,_0x30f39e._0x236c43,0x4d3,0x542)]);}};function createAnthropicSurfaces(){const _0x29f8cc={_0x2f9064:0x3fa,_0x19413e:0x382},_0x55dfdb={_0x12f732:0x137};function _0x3bfbea(_0x492638,_0x2a7205,_0x32daa9,_0x1a907e){return _0x4abdca(_0x492638-0x154,_0x1a907e- -_0x55dfdb._0x12f732,_0x32daa9-0x30,_0x492638);}return[{'id':ANTHROPIC_MESSAGES_SURFACE,'transport':_0x3bfbea(_0x29f8cc._0x2f9064,0x492,_0x29f8cc._0x19413e,0x3e2),'createRequest'(_0x26d6a3){return createAnthropicRequest(_0x26d6a3,![]);},'parseResponse'(_0x1bf41e,_0x2ec9da){return parseAnthropicResponse(_0x1bf41e,_0x2ec9da);}},{'id':ANTHROPIC_MESSAGES_STREAM_SURFACE,'transport':'http-sse','createRequest'(_0x7a07b0){return createAnthropicRequest(_0x7a07b0,!![]);},'createStreamParser'(_0x38e9fe){return new AnthropicMessagesStreamParser(_0x38e9fe);}}];}var StaticModelSurfaceRouter=class{['completeSurface'];[_0x4abdca(0x54d,0x559,0x4a8,0x4a2)];constructor(_0x37ffe8){const _0x362e41={_0x263af5:0x3e4},_0x1269d9={_0x553880:0x162,_0x142f32:0x88};this['completeSurface']=_0x37ffe8['complete'];function _0x148415(_0x3f706e,_0x5c055a,_0x36ef42,_0x50681d){return _0x4abdca(_0x3f706e-_0x1269d9._0x553880,_0x50681d- -0xf0,_0x36ef42-_0x1269d9._0x142f32,_0x3f706e);}this[_0x148415(0x41b,_0x362e41._0x263af5,0x453,0x469)]=_0x37ffe8['stream'];}[_0x4abdca(0x4cc,0x459,0x39b,0x3bd)](_0x1cc622,_0x38ed3e){const _0x42626f={_0x26598f:0x629,_0x425812:0x5cd,_0x5a9068:0x526,_0x14af18:0x6a0,_0x3f9ca5:0x5e5},_0x2f3bc3={_0x5ddac5:0x147,_0x10bc82:0x17a,_0x8c3072:0x8a};function _0x4e62cc(_0x4f29cf,_0x20bab1,_0x1a4ee3,_0x5117aa){return _0x4abdca(_0x4f29cf-_0x2f3bc3._0x5ddac5,_0x4f29cf- -_0x2f3bc3._0x10bc82,_0x1a4ee3-_0x2f3bc3._0x8c3072,_0x1a4ee3);}function _0x3ec47a(_0x567ba3,_0x3f3134,_0x206216,_0xb37246){return _0x3921cc(_0x567ba3-0x26,_0x206216-0x22c,_0x567ba3,_0xb37246-0x12f);}return _0x38ed3e[_0x3ec47a(0x661,_0x42626f._0x26598f,_0x42626f._0x425812,_0x42626f._0x5a9068)]==='stream'?this[_0x3ec47a(_0x42626f._0x14af18,0x676,_0x42626f._0x3f9ca5,0x583)]:this['completeSurface'];}};function trimTrailingSlashes(_0x4e86bd){const _0x5788c4={_0x1d2f5a:0x563,_0x1eb3dd:0x5c8,_0x18fe87:0x581},_0x3c1c66={_0x334e0c:0x25};function _0x2db0f8(_0x5a991f,_0x3b8a4b,_0x5ed5b1,_0x37f4c7){return _0x4abdca(_0x5a991f-0x12f,_0x5ed5b1-_0x3c1c66._0x334e0c,_0x5ed5b1-0x1f2,_0x3b8a4b);}return _0x4e86bd[_0x2db0f8(_0x5788c4._0x1d2f5a,_0x5788c4._0x1eb3dd,0x549,_0x5788c4._0x18fe87)](/\/+$/,'');}function resolveApiCredential(_0x4bf4d0,_0x5d940a){const _0x11d14f={_0x2a56b6:0x278,_0x4dc9d0:0x21f,_0x57c71b:0x2c8,_0x560948:0xcc},_0x5132e8={_0x99d040:0xf2},_0x1c293a={_0x2b708c:0xd6};function _0x1c06cd(_0x37d6fa,_0x56f444,_0x1491d,_0x4b2a72){return _0x4abdca(_0x37d6fa-_0x1c293a._0x2b708c,_0x37d6fa- -0x425,_0x1491d-0x1d3,_0x56f444);}if(_0x5d940a?.[_0x541e04(0x20b,_0x11d14f._0x2a56b6,_0x11d14f._0x4dc9d0,_0x11d14f._0x57c71b)])return _0x5d940a['credential'];if(!_0x4bf4d0)return void 0x0;function _0x541e04(_0x2af7ce,_0x4dc551,_0x50bddc,_0x5a5172){return _0x3921cc(_0x2af7ce-0x71,_0x2af7ce- -_0x5132e8._0x99d040,_0x4dc551,_0x5a5172-0x190);}return{'kind':_0x1c06cd(0x52,0xd3,_0x11d14f._0x560948,0x17),'value':_0x4bf4d0};}function resolveSessionBaseUrl(_0x5c3098,_0x23f88b){const _0x4bd1ea={_0x24a706:0x4a6,_0x23245f:0x495,_0x41fe61:0x45f,_0x2945a9:0xae,_0x4b5bec:0x160,_0x385c27:0xbb},_0x3f1ae7={_0x58676c:0x87};function _0xf7db08(_0x3261b1,_0x522e8c,_0x3156bb,_0x27e8f0){return _0x3921cc(_0x3261b1-0x67,_0x522e8c- -0x28e,_0x3261b1,_0x27e8f0-0x146);}function _0x557d35(_0x7f4a4,_0x1ad84d,_0x272c78,_0xe7eef6){return _0x4abdca(_0x7f4a4-0x1b9,_0x7f4a4- -_0x3f1ae7._0x58676c,_0x272c78-0xd,_0xe7eef6);}return trimTrailingSlashes(_0x23f88b?.[_0x557d35(_0x4bd1ea._0x24a706,_0x4bd1ea._0x23245f,0x41d,_0x4bd1ea._0x41fe61)]?.[_0xf7db08(_0x4bd1ea._0x2945a9,_0x4bd1ea._0x4b5bec,0xd5,_0x4bd1ea._0x385c27)]??_0x5c3098);}function toErrorMessage(_0x45bc19){if(_0x45bc19 instanceof Error&&_0x45bc19['message']['length']>0x0)return _0x45bc19['message'];return'WebSocket\x20request\x20failed';}function createDefaultWebSocketFactory(){const _0x108d36={_0x14c550:0xbe};return({headers:_0x848762,url:_0x2f07d2})=>{const _0x4a40fc={_0x47b29b:0x2c0};function _0x57f8a4(_0x251aac,_0x54da0e,_0x49f01b,_0x69b2b8){return _0x6b39(_0x49f01b- -_0x4a40fc._0x47b29b,_0x54da0e);}const _0x323bbb=globalThis[_0x57f8a4(0xe,-_0x108d36._0x14c550,-0x26,-0x60)];return new _0x323bbb(_0x2f07d2,{'headers':_0x848762,'protocols':[]});};}async function*iterateSseEvents(_0x1b3071,_0x51a59b){const _0x543838={_0x41c56f:0x687,_0x4901df:0x690,_0x1121cb:0x6e4,_0x26b97b:0x250,_0x3127af:0x1d7,_0x1a7ed1:0x1ca,_0x1cfe9b:0x244,_0x385170:0x24b,_0x271395:0x1b7,_0x536b8c:0x22b,_0x9fad7e:0x200,_0xa6f6c6:0x274,_0x2cda9e:0x23c,_0x11a749:0x23f,_0x21d046:0x1d2,_0x5ad016:0x1f8,_0x1f1d8b:0x679,_0x17e9ac:0x5cd,_0x2a19a8:0x638,_0x3b35fb:0x682,_0x1dda79:0x6d0},_0x23e23a={_0xd58df4:0x6d,_0x655e6d:0x320,_0x2e8f87:0x4a},_0x2ff425={_0x1f7ede:0x2b2},_0xc0c040=_0x1b3071['body']?.[_0x1f487e(_0x543838._0x41c56f,0x607,0x5fa,_0x543838._0x4901df)]();if(!_0xc0c040)return;function _0x1f487e(_0x2a88e9,_0x409168,_0x14593e,_0x534389){return _0x3921cc(_0x2a88e9-0x167,_0x534389-_0x2ff425._0x1f7ede,_0x2a88e9,_0x534389-0x1c);}const _0x131ba5=new TextDecoder(_0x1f487e(0x662,_0x543838._0x1121cb,0x668,0x6a5));let _0x3556af='';function _0x1d3b77(_0x4f06dc,_0x2d0b38,_0x17036f,_0x2a6cc1){return _0x4abdca(_0x4f06dc-_0x23e23a._0xd58df4,_0x4f06dc- -_0x23e23a._0x655e6d,_0x17036f-_0x23e23a._0x2e8f87,_0x17036f);}const _0x1bc1e7=addAbortListener(_0x51a59b,()=>{void _0xc0c040['cancel'](toAbortError(_0x51a59b?.['reason']))['catch'](()=>{});});try{while(!![]){throwIfAborted(_0x51a59b);const {value:_0x452b0b,done:_0x10e383}=await _0xc0c040[_0x1d3b77(_0x543838._0x26b97b,0x234,_0x543838._0x3127af,0x242)]();throwIfAborted(_0x51a59b);if(_0x10e383)break;_0x3556af+=_0x131ba5['decode'](_0x452b0b,{'stream':!![]});while(!![]){const _0x227a12=_0x3556af[_0x1d3b77(_0x543838._0x1a7ed1,0x154,0x1c9,_0x543838._0x1cfe9b)]('\x0a\x0a');if(_0x227a12===-0x1)break;const _0x440c0d=_0x3556af[_0x1d3b77(_0x543838._0x385170,_0x543838._0x271395,_0x543838._0x536b8c,0x207)](0x0,_0x227a12);_0x3556af=_0x3556af[_0x1d3b77(0x24b,_0x543838._0x9fad7e,_0x543838._0xa6f6c6,_0x543838._0x2cda9e)](_0x227a12+0x2),_0x440c0d[_0x1d3b77(_0x543838._0x11a749,_0x543838._0x21d046,_0x543838._0x5ad016,0x1b2)]()['length']>0x0&&(yield _0x440c0d);}}_0x3556af+=_0x131ba5[_0x1f487e(_0x543838._0x1f1d8b,_0x543838._0x17e9ac,_0x543838._0x2a19a8,0x5bb)](),throwIfAborted(_0x51a59b),_0x3556af[_0x1f487e(0x5eb,0x6d0,0x6bf,0x671)]()[_0x1f487e(_0x543838._0x3b35fb,_0x543838._0x1dda79,0x5dc,0x670)]>0x0&&(yield _0x3556af);}finally{_0x1bc1e7();}}async function waitForWebSocketOpen(_0x449fb5,_0x38cd3f){const _0x4d9448={_0x3ae6ff:0x397,_0x391d22:0x405},_0xe34ce={_0x51516a:0x54,_0x50a8b8:0x163,_0x5127a9:0x5f,_0x2d9585:0x36,_0x1fa1eb:0x1ef,_0x4a804b:0x17,_0x396f21:0x9e,_0x595463:0x92,_0x115a90:0x1fc},_0x1f4edb={_0x534cf1:0x73,_0x3837e7:0xe0,_0x7c1174:0x138,_0x245412:0x119,_0x1281e0:0x182,_0x349099:0x256,_0x362179:0x1b5,_0x7485e3:0x50,_0x1a30cb:0x194},_0x2ab195={_0x3c2cf4:0x15f,_0x5a6038:0x15e,_0x35a7ff:0x17f,_0x5ba346:0x18b,_0x4ffdd0:0x17f,_0xf9b6fb:0xe6,_0x3a7311:0x1b0},_0xbfe015={_0x31c370:0x17d,_0x28601b:0x1df,_0xb4d65d:0xbb},_0x393558={_0x25f9ac:0x80,_0x316b9c:0x2b};if(_0x449fb5[_0x2b04d0(_0x4d9448._0x3ae6ff,0x34c,_0x4d9448._0x391d22,0x3b2)]===WebSocket['OPEN']){throwIfAborted(_0x38cd3f);return;}throwIfAborted(_0x38cd3f);function _0x2b04d0(_0x57c63,_0x843ab4,_0x2eabe1,_0x324954){return _0x3921cc(_0x57c63-0x69,_0x843ab4-_0x393558._0x25f9ac,_0x2eabe1,_0x324954-_0x393558._0x316b9c);}await new Promise((_0x46a7de,_0x4dfaf0)=>{const _0x32b54a={_0x4a3343:0x2d1,_0x2bea29:0x2de,_0x4fa03f:0x281,_0x5334cb:0x12e,_0x3aa7c2:0x1c8,_0x1f29c0:0x1b6,_0x205f47:0x231,_0x160943:0x156,_0x698647:0x1c3,_0x4dcdc:0x14d,_0x31ff44:0x20e,_0xd4fee7:0x22e,_0x2480e4:0x232,_0x1ccb46:0x20c,_0x4f1f65:0x16a,_0x1ca1f3:0x114},_0x1f8d38={_0x13f746:0xda},_0x36623e={_0x532eaa:0xe0,_0x2fbea0:0x4ef,_0x5c8861:0x149},_0x44ca00={_0x57ee70:0x48},_0x3dab62=()=>{_0x17b16a(),_0x46a7de();};function _0x458993(_0x2ac15e,_0x342c6e,_0x2ce4ee,_0x460762){return _0x2b04d0(_0x2ac15e-_0x44ca00._0x57ee70,_0x2ac15e- -0x33e,_0x342c6e,_0x460762-0xc7);}function _0x54200c(_0x2ea0a7,_0x465b42,_0xa10747,_0xe1e7e8){return _0x2b04d0(_0x2ea0a7-_0x36623e._0x532eaa,_0x465b42- -_0x36623e._0x2fbea0,_0xa10747,_0xe1e7e8-_0x36623e._0x5c8861);}const _0x4e5859=_0x7df4ee=>{const _0x4292d5={_0x2c1dc3:0x38f};_0x17b16a();function _0x24edf7(_0x10ff8b,_0x300817,_0xdaafdd,_0x3a1f5b){return _0x6b39(_0x10ff8b- -_0x4292d5._0x2c1dc3,_0x3a1f5b);}function _0x2828f7(_0x378df1,_0x5b816c,_0x3399ee,_0x5e36ae){return _0x6b39(_0x5b816c- -0xea,_0x378df1);}_0x4dfaf0(new Error(_0x7df4ee[_0x24edf7(-0x155,-_0xbfe015._0x31c370,-0x1e0,-0x97)]||_0x2828f7(0x21f,0x15f,_0xbfe015._0x28601b,_0xbfe015._0xb4d65d)));},_0x207e7d=_0x1d4ee4=>{_0x17b16a();function _0x57e9b0(_0x1a5a3a,_0x5f33c1,_0x45ef47,_0x32de09){return _0x6b39(_0x5f33c1- -0x392,_0x45ef47);}function _0x35c849(_0x1d0ede,_0x51bbee,_0x3c1a8a,_0x1a0d4c){return _0x6b39(_0x1a0d4c- -0x3b,_0x1d0ede);}const _0x136275=_0x1d4ee4;_0x4dfaf0(new Error(_0x136275[_0x35c849(_0x2ab195._0x3c2cf4,0x19b,_0x2ab195._0x5a6038,_0x2ab195._0x35a7ff)]||_0x57e9b0(-_0x2ab195._0x5ba346,-_0x2ab195._0x4ffdd0,-_0x2ab195._0xf9b6fb,-_0x2ab195._0x3a7311)));},_0x438e74=()=>{const _0x1f034f={_0x598a54:0xf};function _0x2a740c(_0x516856,_0x1c3311,_0x3f3ba2,_0x17208a){return _0x6b39(_0x1c3311- -_0x1f034f._0x598a54,_0x516856);}function _0x3d3458(_0x4fda17,_0x207cde,_0x38dd85,_0x1e31d2){return _0x6b39(_0x1e31d2- -_0x1f8d38._0x13f746,_0x4fda17);}_0x17b16a(),_0x449fb5[_0x3d3458(0x182,0x10e,_0x1f4edb._0x534cf1,0xe1)]===WebSocket[_0x3d3458(_0x1f4edb._0x3837e7,_0x1f4edb._0x7c1174,_0x1f4edb._0x245412,_0x1f4edb._0x1281e0)]&&_0x449fb5[_0x2a740c(_0x1f4edb._0x349099,0x1b5,0x144,_0x1f4edb._0x362179)](0x3e8,'aborted'),_0x4dfaf0(toAbortError(_0x38cd3f?.[_0x3d3458(_0x1f4edb._0x7485e3,_0x1f4edb._0x1a30cb,0x47,0xe0)]));},_0x17b16a=()=>{const _0x54bf91={_0xda33d5:0xf8};_0x449fb5[_0x28f4b2(_0x32b54a._0x4a3343,_0x32b54a._0x2bea29,_0x32b54a._0x4fa03f,0x25a)](_0x5939d2(-_0x32b54a._0x5334cb,-_0x32b54a._0x3aa7c2,-0x14f,-_0x32b54a._0x1f29c0),_0x3dab62),_0x449fb5['removeEventListener'](_0x5939d2(-_0x32b54a._0x205f47,-0x1e4,-0x225,-0x2b9),_0x4e5859),_0x449fb5[_0x5939d2(-_0x32b54a._0x160943,-0x13d,-_0x32b54a._0x698647,-_0x32b54a._0x4dcdc)](_0x5939d2(-_0x32b54a._0x31ff44,-_0x32b54a._0xd4fee7,-0x1d8,-0x21b),_0x207e7d);function _0x28f4b2(_0x54d82c,_0x392d97,_0x8f5417,_0x29df6d){return _0x6b39(_0x54d82c-_0x54bf91._0xda33d5,_0x29df6d);}function _0x5939d2(_0x155532,_0x21d24d,_0x380346,_0x5900e9){return _0x6b39(_0x380346- -0x39c,_0x155532);}_0x38cd3f?.[_0x28f4b2(0x2d1,0x37b,_0x32b54a._0x2480e4,_0x32b54a._0x1ccb46)](_0x5939d2(-_0x32b54a._0x4f1f65,-0xf1,-_0x32b54a._0x1ca1f3,-0x6c),_0x438e74);};_0x449fb5[_0x458993(-0x1f,0x59,_0xe34ce._0x51516a,0x80)](_0x54200c(-_0xe34ce._0x50a8b8,-0x111,-0xb3,-_0xe34ce._0x5127a9),_0x3dab62),_0x449fb5['addEventListener'](_0x458993(-_0xe34ce._0x2d9585,0x61,0x8c,-0xf1),_0x4e5859),_0x449fb5[_0x54200c(-_0xe34ce._0x1fa1eb,-0x1d0,-0x254,-0x1f5)](_0x458993(_0xe34ce._0x4a804b,0xae,-_0xe34ce._0x396f21,-_0xe34ce._0x595463),_0x207e7d),_0x38cd3f?.[_0x54200c(-_0xe34ce._0x115a90,-0x1d0,-0x26d,-0x1a2)]('abort',_0x438e74,{'once':!![]});});}function iterateWebSocketMessages(_0x4b89cb,_0x3f86ec){const _0x1b1832={_0x39cc9e:0xfd,_0x2c5a9d:0x166,_0x51a8e9:0xcf,_0x2417de:0x42,_0x4e2e23:0x51,_0x5f5a1f:0x5d,_0x20c392:0x3c,_0x287f9c:0x4e4,_0x56543b:0x5a8,_0x27cfe9:0x5d9,_0x4c25cc:0x585,_0x5175a5:0x684},_0x239d8={_0x1813a2:0x12e,_0x2c64a0:0x186,_0x394f58:0xae,_0x276a52:0x229,_0x3277eb:0x1a1,_0x4b61b9:0x224,_0x3112c4:0x2c5,_0x5833c3:0x264,_0xa45d01:0x1d1,_0x21e5a8:0x221},_0x9f3020={_0x4a2465:0x3ac,_0x1d3b31:0x4d4,_0x545487:0x424,_0x274590:0x4e8,_0x38b4bc:0x4c6,_0x4f18c1:0x46,_0x804f22:0x2,_0x1ae3ae:0x21,_0x5e2e8e:0x439,_0x785055:0x474},_0x57cdf6={_0x50bbb4:0x26a},_0x46f016={_0x11bc69:0x41,_0x24758f:0x24,_0x2e0bc5:0xd7,_0x50e995:0x82,_0xc5b1b7:0x16,_0x3643f4:0x48,_0x4494b7:0x52,_0x281e14:0x1f},_0x4cde5f={_0x3a40ae:0x3a3,_0x304dff:0x30b,_0x2b1dc8:0x3a7,_0x104e9d:0x31a},_0x176dff={_0xd91d55:0x1bf,_0x3e3626:0xa9},_0x260274={_0x23a5e5:0x2e8,_0x5a5cb7:0x2bd,_0x4617ce:0x2fa,_0x5d1a74:0x4ab},_0x5c5ba0={_0x352af0:0x115},_0xad0cfd={_0x37252c:0xeb,_0x40cb84:0x53c,_0x38cdf0:0x18a},_0x42d910=[];function _0x110f8c(_0x178141,_0x1965eb,_0xb79a8,_0x5d45a3){return _0x4abdca(_0x178141-_0xad0cfd._0x37252c,_0x178141- -_0xad0cfd._0x40cb84,_0xb79a8-_0xad0cfd._0x38cdf0,_0x5d45a3);}let _0x248aa1=![],_0x10dfdd,_0x5bb654;const _0x4f4b66=_0x5d6659=>{const _0x4c835b=_0x5d6659;function _0x5bddb4(_0x5afd64,_0x242048,_0x496817,_0xb0fe87){return _0x6b39(_0x496817-0x15,_0x5afd64);}function _0x1719d1(_0x5c6027,_0x1ae376,_0xd43f7b,_0x288adc){return _0x6b39(_0x5c6027-_0x5c5ba0._0x352af0,_0xd43f7b);}try{_0x42d910[_0x1719d1(_0x260274._0x23a5e5,0x399,_0x260274._0x5a5cb7,_0x260274._0x4617ce)](JSON[_0x5bddb4(0x211,0x1bd,0x27c,0x2d4)](String(_0x4c835b[_0x1719d1(0x3ec,_0x260274._0x5d1a74,0x440,0x36a)]))),_0x5bb654?.(),_0x5bb654=void 0x0;}catch(_0x5b9017){_0x10dfdd=new Error('Invalid\x20WebSocket\x20message:\x20'+toErrorMessage(_0x5b9017)),_0x5bb654?.(),_0x5bb654=void 0x0;}};function _0x48df77(_0x59ad2d,_0x17337a,_0x4f6b0c,_0x287c0c){return _0x4abdca(_0x59ad2d-_0x176dff._0xd91d55,_0x17337a-_0x176dff._0x3e3626,_0x4f6b0c-0x7d,_0x287c0c);}const _0x568230=_0x404f22=>{const _0x3e8280={_0x55c8d6:0xd1},_0x35088c=_0x404f22;_0x10dfdd=new Error(_0x35088c[_0x542208(_0x4cde5f._0x3a40ae,0x2a8,0x35a,_0x4cde5f._0x304dff)]||_0x542208(_0x4cde5f._0x2b1dc8,0x259,0x368,_0x4cde5f._0x104e9d));function _0x542208(_0x1d9629,_0xf6edc6,_0x36072e,_0x1b06c6){return _0x6b39(_0x1b06c6-_0x3e8280._0x55c8d6,_0xf6edc6);}_0x5bb654?.();function _0x23a3cf(_0x189859,_0x23a7f3,_0x4f5d47,_0x572e29){return _0x6b39(_0x572e29- -0xe7,_0x189859);}_0x5bb654=void 0x0;},_0x842f79=_0x3311b7=>{const _0x3cddbe={_0x1c0c10:0x23c};function _0x2195bd(_0x3472f4,_0xf203ae,_0x25ff03,_0xc3f01){return _0x6b39(_0xc3f01-0x337,_0x25ff03);}const _0x431565=_0x3311b7;!_0x248aa1&&_0x431565[_0x2c2fcd(-0x7,0x92,_0x46f016._0x11bc69,_0x46f016._0x24758f)]!==0x3e8&&!_0x10dfdd&&(_0x10dfdd=new Error(_0x431565[_0x2c2fcd(-_0x46f016._0x2e0bc5,-_0x46f016._0x50e995,-0x143,0x2c)]||_0x2c2fcd(0x78,_0x46f016._0xc5b1b7,0x4b,-_0x46f016._0x3643f4)+_0x431565[_0x2c2fcd(0x6e,0x92,_0x46f016._0x4494b7,_0x46f016._0x281e14)]));function _0x2c2fcd(_0x25a901,_0x51a792,_0x14c981,_0x2946c0){return _0x6b39(_0x51a792- -_0x3cddbe._0x1c0c10,_0x25a901);}_0x248aa1=!![],_0x5bb654?.(),_0x5bb654=void 0x0;},_0x5cacd9=addAbortListener(_0x3f86ec,()=>{_0x10dfdd=toAbortError(_0x3f86ec?.[_0x57603b(_0x9f3020._0x4a2465,_0x9f3020._0x1d3b31,0x4c1,_0x9f3020._0x545487)]);_0x4b89cb['readyState']===WebSocket[_0x57603b(0x496,_0x9f3020._0x274590,0x44e,_0x9f3020._0x38b4bc)]&&_0x4b89cb[_0x1d8ed3(-_0x9f3020._0x4f18c1,-0x11,-_0x9f3020._0x804f22,_0x9f3020._0x1ae3ae)](0x3e8,_0x57603b(_0x9f3020._0x5e2e8e,0x4f5,_0x9f3020._0x785055,0x4c2));function _0x1d8ed3(_0x184ac7,_0x59a73c,_0x557e67,_0x1bdbd0){return _0x6b39(_0x557e67- -0x1c6,_0x1bdbd0);}function _0x57603b(_0x529616,_0x5177a5,_0x52c165,_0x5c22fe){return _0x6b39(_0x5c22fe-_0x57cdf6._0x50bbb4,_0x529616);}_0x5bb654?.(),_0x5bb654=void 0x0;});return _0x4b89cb[_0x110f8c(-_0x1b1832._0x39cc9e,-_0x1b1832._0x2c5a9d,-_0x1b1832._0x51a8e9,-_0x1b1832._0x2417de)](_0x110f8c(-_0x1b1832._0x4e2e23,_0x1b1832._0x5f5a1f,-_0x1b1832._0x20c392,0x2f),_0x4f4b66),_0x4b89cb[_0x48df77(0x4d9,0x4e8,0x42c,_0x1b1832._0x287f9c)]('error',_0x568230),_0x4b89cb['addEventListener'](_0x48df77(0x556,0x51e,0x4a8,0x4ed),_0x842f79),{async*[Symbol[_0x48df77(_0x1b1832._0x56543b,_0x1b1832._0x27cfe9,_0x1b1832._0x4c25cc,_0x1b1832._0x5175a5)]](){const _0x6ccc13={_0x4cb4fd:0x9e},_0x158d8e={_0xe6bacf:0x150,_0x12b389:0x5a,_0x4d9026:0x122};function _0x2c6484(_0x5466e7,_0x44086b,_0x400fe1,_0x5acfc9){return _0x110f8c(_0x5466e7- -_0x158d8e._0xe6bacf,_0x44086b-_0x158d8e._0x12b389,_0x400fe1-_0x158d8e._0x4d9026,_0x5acfc9);}function _0x5ea0d4(_0x29d6f5,_0x479c58,_0x53f383,_0x3a9912){return _0x110f8c(_0x479c58-0x22a,_0x479c58-_0x6ccc13._0x4cb4fd,_0x53f383-0xcb,_0x53f383);}try{while(!![]){if(_0x10dfdd)throw _0x10dfdd;if(_0x42d910[_0x2c6484(-_0x239d8._0x1813a2,-0xd5,-_0x239d8._0x2c64a0,-_0x239d8._0x394f58)]>0x0){yield _0x42d910['shift']();continue;}if(_0x248aa1)break;await new Promise(_0x5305f7=>{_0x5bb654=_0x5305f7;});}}finally{_0x4b89cb[_0x2c6484(-0x202,-0x2a3,-_0x239d8._0x276a52,-0x18b)](_0x2c6484(-_0x239d8._0x3277eb,-0x18a,-0x18a,-0x185),_0x4f4b66),_0x4b89cb[_0x2c6484(-0x202,-0x2a3,-_0x239d8._0x4b61b9,-_0x239d8._0x3112c4)](_0x2c6484(-_0x239d8._0x5833c3,-_0x239d8._0xa45d01,-0x2e9,-_0x239d8._0x21e5a8),_0x568230),_0x4b89cb['removeEventListener'](_0x2c6484(-0x217,-0x197,-0x1a4,-0x291),_0x842f79),_0x5cacd9();}}};}function _0x6b39(_0xf9ef70,_0x3e219b){_0xf9ef70=_0xf9ef70-0x175;const _0xa6777f=_0xa677();let _0x6b3968=_0xa6777f[_0xf9ef70];if(_0x6b39['FEvExn']===undefined){var _0x280065=function(_0x40cf5e){const _0x456456='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x313c06='',_0x44602e='';for(let _0x3bb009=0x0,_0x133420,_0x2778a4,_0x5622f6=0x0;_0x2778a4=_0x40cf5e['charAt'](_0x5622f6++);~_0x2778a4&&(_0x133420=_0x3bb009%0x4?_0x133420*0x40+_0x2778a4:_0x2778a4,_0x3bb009++%0x4)?_0x313c06+=String['fromCharCode'](0xff&_0x133420>>(-0x2*_0x3bb009&0x6)):0x0){_0x2778a4=_0x456456['indexOf'](_0x2778a4);}for(let _0xc68e90=0x0,_0x3b3fb5=_0x313c06['length'];_0xc68e90<_0x3b3fb5;_0xc68e90++){_0x44602e+='%'+('00'+_0x313c06['charCodeAt'](_0xc68e90)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x44602e);};_0x6b39['wYijQG']=_0x280065,_0x6b39['ukVfUa']={},_0x6b39['FEvExn']=!![];}const _0x472114=_0xa6777f[0x0],_0x41d88d=_0xf9ef70+_0x472114,_0x94aa3d=_0x6b39['ukVfUa'][_0x41d88d];return!_0x94aa3d?(_0x6b3968=_0x6b39['wYijQG'](_0x6b3968),_0x6b39['ukVfUa'][_0x41d88d]=_0x6b3968):_0x6b3968=_0x94aa3d,_0x6b3968;}function toWebSocketUrl(_0x32de0f,_0x3d0508){const _0x2a93f4={_0x51a8da:0x4e9,_0x4b854b:0x525,_0x42691f:0x4db,_0xe1daaf:0x97,_0x573d12:0x653,_0x294ed1:0x5f6},_0x1d591b={_0x4651a3:0x109},_0x59620c={_0x35ecf7:0x5a,_0x43d40c:0xfc},_0x1248f9=new URL(_0x3d0508,_0x32de0f);function _0x3fed38(_0x5b2559,_0x2217f9,_0x1bf38d,_0x1bbe62){return _0x4abdca(_0x5b2559-0x9b,_0x1bf38d-_0x59620c._0x35ecf7,_0x1bf38d-_0x59620c._0x43d40c,_0x5b2559);}function _0x947af2(_0x283685,_0x593dd4,_0x46f174,_0x1eab17){return _0x3921cc(_0x283685-0xd5,_0x1eab17- -0x456,_0x593dd4,_0x1eab17-_0x1d591b._0x4651a3);}return _0x1248f9[_0x3fed38(0x596,_0x2a93f4._0x51a8da,_0x2a93f4._0x4b854b,_0x2a93f4._0x42691f)]=_0x1248f9[_0x947af2(-0xe0,-0x1c5,-0xf4,-0x12b)]===_0x947af2(-_0x2a93f4._0xe1daaf,-0xb7,-0x105,-0x144)?_0x3fed38(0x66c,_0x2a93f4._0x573d12,_0x2a93f4._0x294ed1,0x5bf):'ws:',_0x1248f9['toString']();}var ProviderSessionManager=class{['resolver'];[_0x4abdca(0x571,0x534,0x5c8,0x5f9)];constructor(_0x1eaeb6){const _0x3be2ec={_0xdcb494:0x506},_0x498a07={_0x5eab6e:0x4d,_0x30e42e:0x190};function _0x4e8d8b(_0x437670,_0x30e599,_0x52807c,_0x5565c4){return _0x4abdca(_0x437670-0x1cc,_0x52807c-_0x498a07._0x5eab6e,_0x52807c-_0x498a07._0x30e42e,_0x30e599);}this[_0x4e8d8b(0x574,0x599,_0x3be2ec._0xdcb494,0x575)]=_0x1eaeb6;}async[_0x4abdca(0x4d9,0x4c6,0x4dd,0x508)](_0x3c9dc0){const _0x3be62b={_0x2aba06:0x49,_0x3c302a:0xcb,_0x32a7ac:0x490,_0x1f70e7:0x5c6,_0x551302:0xdd,_0xefecd0:0x38,_0x7f8a98:0x5,_0x3a9604:0x5d4,_0x5f0fe4:0x64d},_0x1fe695={_0x2598ff:0x180},_0x86a8dc={_0x296bd8:0x1e6,_0x1ac546:0x2ee,_0x558a49:0x164};function _0x534a13(_0x397392,_0x450a89,_0x11d9ac,_0xc03d08){return _0x3921cc(_0x397392-_0x86a8dc._0x296bd8,_0x450a89- -_0x86a8dc._0x1ac546,_0xc03d08,_0xc03d08-_0x86a8dc._0x558a49);}!this[_0x534a13(0x162,0xa6,_0x3be62b._0x2aba06,0xec)]&&(this[_0x534a13(0xd6,0xa6,_0x3be62b._0x3c302a,0x13d)]=this[_0x4dee87(_0x3be62b._0x32a7ac,0x5c7,0x51f,_0x3be62b._0x1f70e7)][_0x534a13(_0x3be62b._0x551302,_0x3be62b._0xefecd0,0x6,_0x3be62b._0x7f8a98)](_0x3c9dc0));function _0x4dee87(_0xc91017,_0x1f2dd6,_0x4cc494,_0xd25ef0){return _0x4abdca(_0xc91017-0xf1,_0x4cc494-0x66,_0x4cc494-_0x1fe695._0x2598ff,_0xc91017);}return structuredClone(await this[_0x4dee87(0x5c5,_0x3be62b._0x3a9604,0x59a,_0x3be62b._0x5f0fe4)]);}[_0x4abdca(0x44e,0x4b0,0x544,0x4b4)](){const _0x48e3ab={_0x1c2f51:0x16a,_0x56ac8e:0x187};function _0x47b860(_0x48bbe9,_0x1e1f76,_0xd3d627,_0x5c2d72){return _0x3921cc(_0x48bbe9-_0x48e3ab._0x1c2f51,_0x48bbe9- -0x150,_0x5c2d72,_0x5c2d72-_0x48e3ab._0x56ac8e);}this[_0x47b860(0x244,0x2f8,0x2ad,0x2f0)]=void 0x0;}};async function prepareProviderRequest(_0x19621f,_0x5cdd02={}){const _0x3a5db0={_0x344c74:0x24a,_0xa98beb:0x1a6,_0x2aff1c:0x1ea,_0x380996:0x415},_0x239c49={_0x4ba3fc:0x3af,_0xf178a7:0x1ef},_0xd9d972={_0x503e09:0x178,_0x48c137:0xe};function _0x3bfce9(_0x5e00b2,_0x1fd4ef,_0x272a07,_0x570a63){return _0x3921cc(_0x5e00b2-_0xd9d972._0x503e09,_0x570a63-0x105,_0x1fd4ef,_0x570a63-_0xd9d972._0x48c137);}let _0x285875={'request':structuredClone(_0x19621f),'session':_0x5cdd02[_0x9dcd63(_0x3a5db0._0x344c74,0x1ee,_0x3a5db0._0xa98beb,0x199)]?await _0x5cdd02[_0x9dcd63(_0x3a5db0._0x2aff1c,0x205,0x12a,0x199)][_0x3bfce9(_0x3a5db0._0x380996,0x40f,0x41f,0x42b)](_0x5cdd02['signal']):void 0x0};function _0x9dcd63(_0x4ec9da,_0x449db7,_0x9e04ce,_0x1e25f7){return _0x4abdca(_0x4ec9da-0x153,_0x1e25f7- -_0x239c49._0x4ba3fc,_0x9e04ce-_0x239c49._0xf178a7,_0x9e04ce);}for(const _0x43f889 of _0x5cdd02['requestMutators']??[]){_0x285875=await _0x43f889(_0x285875);}return _0x285875;}var RoutedModel=class{[_0x3921cc(0x317,0x38e,0x441,0x447)];[_0x4abdca(0x4cf,0x4be,0x550,0x4bf)];['reasoning'];[_0x3921cc(0x35c,0x410,0x499,0x4a7)];[_0x4abdca(0x51c,0x45b,0x4fb,0x494)];['fetchImpl'];[_0x4abdca(0x550,0x49b,0x401,0x438)];[_0x4abdca(0x567,0x4b1,0x51f,0x55a)];[_0x3921cc(0x2e0,0x2eb,0x2aa,0x26e)];['sessionManager'];[_0x3921cc(0x370,0x333,0x3d8,0x3e2)];[_0x4abdca(0x64b,0x591,0x561,0x56e)]=new Map();constructor(_0x5df69e){const _0x13024a={_0xfe9ea0:0x1d,_0x44bb4d:0x608,_0x350aee:0x522,_0xf79779:0x577,_0x55d0aa:0xaa,_0x5db6bd:0x512,_0x37550e:0x5fa,_0x41f554:0x50e,_0x301c26:0x1e,_0x1eba83:0x11,_0x346064:0x57,_0x4af2f4:0x33,_0x12ea65:0x614,_0x13a276:0x5e8,_0x3c1264:0x5a9,_0x2248eb:0x614,_0x39ed35:0x5ba,_0x507c69:0x4bf,_0x45f1c2:0x4ca,_0x39a73d:0x420,_0x5eb985:0x6c,_0x2fa544:0xf8,_0x5cc8d0:0x123,_0x38ce63:0x7,_0x32730c:0x4d,_0x30eec5:0x61,_0x2fc35b:0xc5,_0x10a3bf:0x578,_0x369e42:0x531,_0x424516:0x5bb,_0x18ab3a:0xc,_0x5ea09a:0x16,_0x3a2fac:0x13,_0x90a919:0x515,_0x3b6457:0x4f0,_0xebf52d:0x53a,_0x14b5a9:0x4d7,_0xa5583e:0x4d6,_0x55c019:0x4ef,_0x47ceb3:0x4d4,_0x9e9eea:0x514,_0x10c66d:0x5f5,_0x70fc7d:0x142,_0x9b1d67:0x36,_0x57db41:0x78},_0x421bc5={_0x1013e7:0x116,_0x13b8cd:0x4c7,_0x18500c:0x180};function _0xa7b904(_0x27b5a,_0x8aecac,_0x4e9789,_0x524db0){return _0x4abdca(_0x27b5a-_0x421bc5._0x1013e7,_0x8aecac- -_0x421bc5._0x13b8cd,_0x4e9789-_0x421bc5._0x18500c,_0x524db0);}this[_0xa7b904(_0x13024a._0xfe9ea0,0x67,0xfc,0x85)]=_0x5df69e[_0x45d76c(0x592,0x4f4,_0x13024a._0x44bb4d,0x5be)],this[_0x45d76c(_0x13024a._0x350aee,0x468,0x52b,_0x13024a._0xf79779)]=_0x5df69e[_0xa7b904(_0x13024a._0x55d0aa,-0x9,-0x5d,-0x8d)]??0x4000,this[_0x45d76c(0x53c,_0x13024a._0x5db6bd,_0x13024a._0x37550e,0x574)]=_0x5df69e[_0x45d76c(0x53c,0x5c5,0x5f7,_0x13024a._0x41f554)]?structuredClone(_0x5df69e[_0xa7b904(-_0x13024a._0x301c26,_0x13024a._0x1eba83,-_0x13024a._0x346064,-_0x13024a._0x4af2f4)]):void 0x0,this[_0x45d76c(_0x13024a._0x12ea65,_0x13024a._0x13a276,0x585,_0x13024a._0x3c1264)]=_0x5df69e[_0x45d76c(_0x13024a._0x2248eb,0x5e9,_0x13024a._0x39ed35,0x669)],this[_0x45d76c(_0x13024a._0x507c69,0x56d,_0x13024a._0x45f1c2,_0x13024a._0x39a73d)]=_0x5df69e[_0xa7b904(-0x35,-_0x13024a._0x5eb985,-_0x13024a._0x2fa544,-_0x13024a._0x5cc8d0)],this['fetchImpl']=_0x5df69e[_0xa7b904(_0x13024a._0x38ce63,_0x13024a._0x32730c,-_0x13024a._0x30eec5,_0x13024a._0x2fc35b)]??globalThis[_0x45d76c(_0x13024a._0x10a3bf,_0x13024a._0x369e42,_0x13024a._0x424516,0x4d2)],this['providerAdapter']=_0x5df69e['providerAdapter'],this[_0xa7b904(_0x13024a._0x18ab3a,-_0x13024a._0x5ea09a,-0x26,_0x13024a._0x3a2fac)]=_0x5df69e[_0x45d76c(_0x13024a._0x90a919,0x4aa,_0x13024a._0x3b6457,_0x13024a._0xebf52d)]??[],this[_0x45d76c(0x4ef,_0x13024a._0x14b5a9,_0x13024a._0xa5583e,0x4d2)]=_0x5df69e[_0x45d76c(_0x13024a._0x55c019,0x4f9,0x52a,_0x13024a._0x47ceb3)],this[_0xa7b904(0x35,0x81,0xc8,0xfe)]=_0x5df69e['sessionManager']??(_0x5df69e['providerSessionResolver']?new ProviderSessionManager(_0x5df69e['providerSessionResolver']):void 0x0);function _0x45d76c(_0x3b2e0e,_0x383dc3,_0x3efbec,_0xbeb468){return _0x4abdca(_0x3b2e0e-0x1f2,_0x3b2e0e-0x64,_0x3efbec-0xfe,_0x3efbec);}this[_0x45d76c(0x537,_0x13024a._0x9e9eea,0x5c3,0x5cb)]=_0x5df69e['webSocketFactory']??createDefaultWebSocketFactory();for(const _0x8d4698 of _0x5df69e[_0x45d76c(_0x13024a._0x10c66d,0x545,0x663,0x5c0)]){this[_0xa7b904(0xae,0xca,_0x13024a._0x70fc7d,0x10a)][_0xa7b904(_0x13024a._0x9b1d67,-_0x13024a._0x57db41,-0x85,-0x136)](_0x8d4698['id'],_0x8d4698);}}['complete'](_0x577b0b,_0x508cb){const _0x3fa938={_0x1335c4:0x595,_0x3fe2f7:0x4a8,_0xa21aeb:0x545,_0x2941bd:0x4e8},_0x46646c={_0x1b2dad:0x1c2,_0x200a81:0x116,_0x25d7dd:0x5c};function _0x1cf036(_0x45f812,_0x1603f4,_0x2a1461,_0x4926c7){return _0x4abdca(_0x45f812-_0x46646c._0x1b2dad,_0x2a1461-_0x46646c._0x200a81,_0x2a1461-_0x46646c._0x25d7dd,_0x1603f4);}return this[_0x1cf036(_0x3fa938._0x1335c4,_0x3fa938._0x3fe2f7,_0x3fa938._0xa21aeb,_0x3fa938._0x2941bd)](_0x577b0b,_0x508cb);}[_0x3921cc(0x2d2,0x2b4,0x245,0x315)](_0x5b41f0,_0x216bd9){const _0x49c4c4={_0x2b5151:0xde,_0x31ed00:0x14a,_0x189c26:0x6b},_0x2daa3f={_0x43b72c:0x1fb};function _0x260ad4(_0x1c034f,_0x12df3f,_0x240983,_0x136b02){return _0x3921cc(_0x1c034f-0xef,_0x1c034f- -_0x2daa3f._0x43b72c,_0x136b02,_0x136b02-0xbb);}return this[_0x260ad4(_0x49c4c4._0x2b5151,0xa8,_0x49c4c4._0x31ed00,_0x49c4c4._0x189c26)](_0x5b41f0,_0x216bd9);}async[_0x4abdca(0x494,0x42f,0x496,0x493)](_0x5acfe2,_0x77b6f6){const _0x4429cc={_0x5aec70:0x246,_0x5150ac:0x1f3,_0x5a6db3:0x325,_0x213475:0x367,_0x46b493:0x36e,_0x4c6443:0x2d6,_0x248f2a:0x2c3,_0x36a288:0x33f,_0x1aa899:0x423,_0x4cc73f:0x385},_0x1a2999={_0x1667ac:0xe5},_0x470f0a={_0x1f9a4e:0x110,_0x24b58e:0x17d};function _0x365d93(_0x299e6e,_0xd7029d,_0x4b0fef,_0x2918bf){return _0x3921cc(_0x299e6e-_0x470f0a._0x1f9a4e,_0x299e6e- -0x53,_0xd7029d,_0x2918bf-_0x470f0a._0x24b58e);}const _0x9f6970=this[_0x365d93(0x28f,0x319,_0x4429cc._0x5aec70,_0x4429cc._0x5150ac)](_0x5acfe2);function _0x998e2d(_0x3e8cbc,_0x5395d2,_0x3a7239,_0x21e998){return _0x4abdca(_0x3e8cbc-_0x1a2999._0x1667ac,_0x3e8cbc- -0x134,_0x3a7239-0x138,_0x3a7239);}const _0x1fd74a=await this['router'][_0x998e2d(_0x4429cc._0x5a6db3,_0x4429cc._0x213475,_0x4429cc._0x46b493,0x3bd)](_0x9f6970,{'mode':_0x365d93(0x2bc,_0x4429cc._0x4c6443,_0x4429cc._0x248f2a,_0x4429cc._0x36a288)});return this[_0x998e2d(0x39e,0x43b,_0x4429cc._0x1aa899,_0x4429cc._0x4cc73f)](_0x9f6970,_0x1fd74a,_0x77b6f6);}async*[_0x3921cc(0x2a6,0x2d9,0x2a0,0x309)](_0x1c8182,_0xb05153){const _0x3cfe91={_0x2df9db:0x2f0,_0x4dca50:0x32b,_0x515be9:0x388,_0x35bd5b:0x58,_0x1397e5:0x1d,_0x42641a:0x9d,_0x59df43:0x75,_0x28425d:0x4a,_0x58b1a8:0x335,_0x236dac:0x3fe,_0x41571e:0x4bd,_0x536ad5:0x503},_0x2ee70a={_0x4b38ac:0x3ee,_0x5e817a:0x1bc},_0x469f62={_0x344211:0xa6},_0x5cbd46=this[_0x3f99f9(_0x3cfe91._0x2df9db,_0x3cfe91._0x4dca50,_0x3cfe91._0x515be9,0x424)](_0x1c8182);function _0x3f99f9(_0x3d6628,_0x1b8b61,_0x1fb28b,_0x519989){return _0x3921cc(_0x3d6628-0x50,_0x1fb28b-_0x469f62._0x344211,_0x519989,_0x519989-0x198);}function _0xb15918(_0x181cc2,_0x2e30a3,_0x5a28b9,_0x431bbc){return _0x4abdca(_0x181cc2-0xe0,_0x5a28b9- -_0x2ee70a._0x4b38ac,_0x5a28b9-_0x2ee70a._0x5e817a,_0x2e30a3);}const _0x80df6e=await this[_0xb15918(_0x3cfe91._0x35bd5b,-_0x3cfe91._0x1397e5,_0x3cfe91._0x42641a,0x1b)][_0xb15918(_0x3cfe91._0x59df43,0x60,0x6b,_0x3cfe91._0x28425d)](_0x5cbd46,{'mode':_0x3f99f9(0x3e7,_0x3cfe91._0x58b1a8,0x35a,_0x3cfe91._0x236dac)});yield*this[_0x3f99f9(_0x3cfe91._0x41571e,_0x3cfe91._0x536ad5,0x480,0x4b7)](_0x5cbd46,_0x80df6e,_0xb05153);}async[_0x4abdca(0x417,0x4d2,0x595,0x530)](_0x157ff5,_0x30b4e8,_0x45371b){const _0x59e53d={_0x3a2557:0x144,_0x2a653f:0x2f,_0xac4839:0x48,_0x4ac9b6:0x34,_0x193794:0x2d,_0x51bad1:0x4c4,_0x15a619:0x4e4,_0x409234:0x540,_0x1a961a:0xb,_0x27ae7b:0x97,_0x4d4010:0x1d8,_0x53cd71:0x10d,_0x4fd621:0x13f,_0x27ebf9:0x1c0,_0x41c6a5:0x425,_0xcfd981:0x186,_0x3c7d6d:0x1b8,_0x5a7d9d:0x123,_0x596a13:0x48d,_0x18a7de:0x49a,_0x3d6f67:0x57,_0x370928:0x1c0,_0x36719d:0x12f},_0x336fcd={_0x476247:0x55},_0x7436b={_0x362247:0x134},_0x528573=this[_0x3a9747(0x8e,0xfa,_0x59e53d._0x3a2557,-_0x59e53d._0x2a653f)](_0x157ff5),_0x2041da=this[_0x3a9747(_0x59e53d._0xac4839,_0x59e53d._0x4ac9b6,-_0x59e53d._0x193794,0x9b)](_0x30b4e8);if(_0x2041da['transport']===_0x4fb9e7(_0x59e53d._0x51bad1,0x4e9,_0x59e53d._0x15a619,_0x59e53d._0x409234)){const _0x119cd9=await this[_0x3a9747(0x32,-_0x59e53d._0x1a961a,0x1c,_0x59e53d._0x27ae7b)](_0x528573,_0x2041da,![],_0x45371b?.['signal']);if(!_0x119cd9['ok'])throw await this['toApiError'](_0x119cd9);if(!_0x2041da['parseResponse'])throw new Error('Surface\x20'+_0x30b4e8+_0x3a9747(0x149,_0x59e53d._0x4d4010,_0x59e53d._0x53cd71,0x130));return _0x2041da[_0x3a9747(_0x59e53d._0x4fd621,0xbd,0x136,_0x59e53d._0x27ebf9)](await _0x119cd9[_0x4fb9e7(_0x59e53d._0x41c6a5,0x3b5,0x4b3,0x3bc)](),_0x528573);}let _0x20fed9;function _0x3a9747(_0x1dd0b6,_0x163ae5,_0x5c258a,_0x2ec2f4){return _0x4abdca(_0x1dd0b6-0x30,_0x1dd0b6- -0x3f4,_0x5c258a-_0x7436b._0x362247,_0x163ae5);}for await(const _0x5d6fce of this[_0x3a9747(_0x59e53d._0xcfd981,0x239,_0x59e53d._0x3c7d6d,_0x59e53d._0x5a7d9d)](_0x528573,_0x30b4e8,_0x45371b)){_0x5d6fce[_0x4fb9e7(0x44a,0x4b6,_0x59e53d._0x596a13,_0x59e53d._0x18a7de)]===_0x3a9747(0x6f,0xe2,-_0x59e53d._0x3d6f67,-0x16)&&(_0x20fed9=_0x5d6fce[_0x3a9747(0xfd,0x103,_0x59e53d._0x370928,_0x59e53d._0x36719d)]);}function _0x4fb9e7(_0xb60fe4,_0x5d41c7,_0xf7500a,_0x126fa4){return _0x4abdca(_0xb60fe4-0x3a,_0xb60fe4- -_0x336fcd._0x476247,_0xf7500a-0x16f,_0x5d41c7);}if(!_0x20fed9)throw new Error('Surface\x20'+_0x30b4e8+'\x20did\x20not\x20produce\x20a\x20final\x20response');return _0x20fed9;}async*['streamViaSurface'](_0x2a28ad,_0x1c9fd2,_0x2a0a5b){const _0x13897f={_0x247936:0x110,_0xb6d866:0x1a0,_0x58b5cf:0x86,_0x258397:0x11a,_0x381540:0xa7,_0x3f7ad2:0x127,_0x303caa:0x1bd,_0x5792e8:0x66,_0x34b691:0x40,_0x50a76a:0x72,_0x1d5504:0x1fb,_0x54cb17:0x1f1,_0x37aed1:0x161,_0x4dac4c:0xcc,_0x152848:0x131,_0x1d6441:0x6f,_0x1fcbd5:0x212,_0x2a3fb0:0x13b,_0x43838f:0x84},_0x36de76={_0x5a2472:0xaa,_0x49ac51:0x2f2,_0x5f331c:0xa0};function _0x5aa4d0(_0x38ea80,_0x17c3c3,_0x962b20,_0x43a8a9){return _0x4abdca(_0x38ea80-0x14d,_0x38ea80- -0x372,_0x962b20-0x102,_0x43a8a9);}function _0x53c7ec(_0x2fe970,_0x3825bf,_0x53fe28,_0x278d84){return _0x3921cc(_0x2fe970-_0x36de76._0x5a2472,_0x3825bf- -_0x36de76._0x49ac51,_0x2fe970,_0x278d84-_0x36de76._0x5f331c);}const _0x2c42ff=this[_0x5aa4d0(_0x13897f._0x247936,_0x13897f._0xb6d866,0x189,0x125)](_0x2a28ad),_0x358d7c=this[_0x5aa4d0(0xca,0xc8,0x120,_0x13897f._0x58b5cf)](_0x1c9fd2);if(_0x358d7c[_0x5aa4d0(_0x13897f._0x258397,0x139,0x109,_0x13897f._0x381540)]===_0x5aa4d0(0x1a7,_0x13897f._0x3f7ad2,0x194,_0x13897f._0x303caa)){yield{'type':_0x53c7ec(0x26,-0x2f,0x3f,-_0x13897f._0x5792e8),'response':await this[_0x53c7ec(0x32,_0x13897f._0x34b691,_0x13897f._0x50a76a,0x5)](_0x2c42ff,_0x1c9fd2,_0x2a0a5b)};return;}if(_0x358d7c[_0x5aa4d0(_0x13897f._0x258397,0x12b,0xc2,0x63)]===_0x5aa4d0(_0x13897f._0x1d5504,0x1f3,_0x13897f._0x54cb17,_0x13897f._0x37aed1)){yield*this[_0x53c7ec(_0x13897f._0x4dac4c,0x76,_0x13897f._0x152848,_0x13897f._0x1d6441)](_0x2c42ff,_0x358d7c,_0x2a0a5b?.[_0x5aa4d0(0x1ee,0x253,_0x13897f._0x1fcbd5,_0x13897f._0x2a3fb0)]);return;}yield*this[_0x53c7ec(0x5,0x84,_0x13897f._0x43838f,0x100)](_0x2c42ff,_0x358d7c,_0x2a0a5b?.['signal']);}async[_0x4abdca(0x371,0x435,0x4b2,0x3fa)](_0x67cc00){const _0x4707a7={_0x342037:0x29f,_0x52dd28:0x275,_0x1c6bbc:0xe6,_0x339f5a:0xad},_0xd28372={_0x318063:0x36,_0x59e8a4:0x5d7},_0x8aa109={_0x5b42d6:0x1a9,_0x3057b0:0x109},_0x577191={_0x395a62:0x521,_0x461322:0x4de,_0xee5778:0x467,_0x5d519f:0x32,_0x52ba76:0x61,_0x4ab5ac:0x4d0,_0x2a3918:0x4f3,_0x21d3d5:0x7b,_0x28c37d:0xff,_0x87b15b:0x23,_0x1d7768:0x4ea,_0x6a9c91:0x468,_0x338993:0x103,_0x1523e1:0x9a,_0x4ff74c:0x80,_0xedd03:0x93,_0x188585:0xa7,_0x51304b:0x7,_0x3d346f:0x6b,_0x345870:0x16,_0x136774:0xb3,_0x50892c:0xb4,_0x556292:0x4fb,_0x11c7ce:0x4d2,_0x476c0b:0x55e,_0x9c79c4:0x50d,_0xf9b1ae:0x42,_0x57225f:0x52,_0x29a59c:0x37,_0x512853:0x404,_0x567b32:0x510,_0x8aaf3:0x4f1,_0x37cde2:0x4ff,_0x51e61b:0x8e,_0x4d17b6:0xb,_0x186ad0:0x4df,_0x2fe477:0x57c},_0x2be242={_0x197a63:0x28a},_0x45f971=async()=>{const _0x3b2038={_0x2e01be:0x265},_0x20ffdc=this[_0x4d4988(0x555,_0x577191._0x395a62,_0x577191._0x461322,_0x577191._0xee5778)]?await this[_0x57767b(-0x78,_0x577191._0x5d519f,-_0x577191._0x52ba76,0x36)][_0x57767b(-0xb0,-0x50,-0x1,0x58)](_0x67cc00[_0x4d4988(_0x577191._0x4ab5ac,0x539,_0x577191._0x2a3918,0x50f)]):void 0x0,_0x2cba2d=this[_0x57767b(-0x60,-_0x577191._0x21d3d5,-_0x577191._0x28c37d,_0x577191._0x87b15b)][_0x4d4988(0x3b2,0x46f,_0x577191._0x1d7768,_0x577191._0x6a9c91)](this[_0x57767b(_0x577191._0x338993,_0x577191._0x1523e1,_0x577191._0x4ff74c,_0x577191._0xedd03)],_0x20ffdc);if(!_0x2cba2d)throw this['createMissingCredentialError']();function _0x57767b(_0x456aa4,_0x3d479e,_0x5dff92,_0x31a1e7){return _0x6b39(_0x3d479e- -_0x3b2038._0x2e01be,_0x456aa4);}function _0x4d4988(_0x583496,_0x393cad,_0x56e2db,_0x4cecdc){return _0x6b39(_0x393cad-_0x2be242._0x197a63,_0x4cecdc);}const _0x5df75f=await this[_0x57767b(_0x577191._0x188585,_0x577191._0x51304b,-_0x577191._0x3d346f,-_0x577191._0x345870)]({'body':_0x67cc00['body'],'credential':_0x2cba2d,'session':_0x20ffdc,'stream':![]},{'accept':_0x67cc00[_0x4d4988(0x43c,0x47e,0x3e2,0x4e1)]??_0x57767b(-_0x577191._0x136774,-0x8,_0x577191._0x50892c,0x2d),'includeContentType':_0x67cc00[_0x4d4988(0x503,0x510,0x4bc,0x523)]===_0x4d4988(0x463,_0x577191._0x556292,0x482,0x5bd)});return this[_0x4d4988(_0x577191._0x11c7ce,_0x577191._0x476c0b,0x578,_0x577191._0x9c79c4)](''+this[_0x57767b(0x13,-0x7b,0x3d,-_0x577191._0xf9b1ae)][_0x57767b(0x29,_0x577191._0x57225f,-_0x577191._0x29a59c,0xb7)](this['baseUrl'],_0x20ffdc)+_0x67cc00[_0x4d4988(_0x577191._0x512853,0x41b,0x36a,0x360)],{'method':_0x67cc00[_0x4d4988(0x4af,_0x577191._0x567b32,_0x577191._0x8aaf3,_0x577191._0x37cde2)],'headers':_0x5df75f,..._0x67cc00[_0x57767b(-_0x577191._0x51e61b,_0x577191._0x4d17b6,0xad,-0xb9)]!==void 0x0?{'body':JSON[_0x4d4988(_0x577191._0x186ad0,_0x577191._0x2fe477,0x5da,0x53c)](_0x67cc00['body'])}:{},'signal':_0x67cc00['signal']});};function _0xe1ca4(_0x4b0782,_0x19124d,_0x39c186,_0x11e1ba){return _0x3921cc(_0x4b0782-_0x8aa109._0x5b42d6,_0x4b0782- -_0x8aa109._0x3057b0,_0x19124d,_0x11e1ba-0x70);}function _0x3ccec4(_0xd6f620,_0x708d0d,_0x4b57d3,_0xb1b505){return _0x4abdca(_0xd6f620-_0xd28372._0x318063,_0x4b57d3- -_0xd28372._0x59e8a4,_0x4b57d3-0x128,_0x708d0d);}const _0x6c7710=await _0x45f971();if(_0x6c7710['status']!==0x191||!this[_0xe1ca4(_0x4707a7._0x342037,_0x4707a7._0x52dd28,0x2e5,0x338)])return _0x6c7710;return this[_0x3ccec4(-0x13f,-0xbf,-0x8f,-_0x4707a7._0x1c6bbc)][_0x3ccec4(-0x177,-0x1ec,-0x127,-_0x4707a7._0x339f5a)](),_0x45f971();}[_0x4abdca(0x3c8,0x42e,0x3db,0x494)](){const _0x2ccb7f={_0x4b48e9:0x41a,_0xaeb2c8:0x43c,_0x2b2f82:0x3ab,_0x3962f3:0x3ad},_0x1168bd={_0x31ae97:0xdc,_0x371bb1:0x11f},_0x1a345d={_0xa9aaa6:0x10,_0x24cb6a:0x1e2};function _0x5c46c8(_0x173d74,_0x5e51f7,_0x53940d,_0x15753c){return _0x3921cc(_0x173d74-_0x1a345d._0xa9aaa6,_0x53940d-_0x1a345d._0x24cb6a,_0x173d74,_0x15753c-0x15e);}function _0x307f56(_0x2ab7c4,_0x5532a4,_0x3ee1c0,_0x48facb){return _0x3921cc(_0x2ab7c4-_0x1168bd._0x31ae97,_0x3ee1c0-_0x1168bd._0x371bb1,_0x2ab7c4,_0x48facb-0x7a);}return this[_0x307f56(0x4c9,0x4ac,_0x2ccb7f._0x4b48e9,0x3f1)][_0x307f56(_0x2ccb7f._0xaeb2c8,_0x2ccb7f._0x2b2f82,_0x2ccb7f._0x3962f3,0x3a7)]();}async[_0x4abdca(0x47b,0x51d,0x5d6,0x4a2)](_0x52ed79,_0x463553){const _0x5138cd={_0x14eebe:0x508,_0x4e307d:0x4cf,_0x51f3bd:0x566,_0x42efa7:0x73},_0xae2e0f={_0x156658:0x32f},_0x2d9fb6={_0x3068ba:0x1b6,_0xf89b7f:0x20d};function _0x5da603(_0x3bcc2e,_0x359ee6,_0x298612,_0x2fd07c){return _0x3921cc(_0x3bcc2e-_0x2d9fb6._0x3068ba,_0x359ee6-_0x2d9fb6._0xf89b7f,_0x3bcc2e,_0x2fd07c-0x1c6);}function _0x58f48d(_0x4af755,_0x412b31,_0x5df85e,_0x36d670){return _0x3921cc(_0x4af755-0x1ba,_0x36d670- -_0xae2e0f._0x156658,_0x5df85e,_0x36d670-0x2c);}return await this[_0x5da603(0x550,_0x5138cd._0x14eebe,_0x5138cd._0x4e307d,_0x5138cd._0x51f3bd)][_0x58f48d(-0xa,-0x2d,_0x5138cd._0x42efa7,0x4e)](_0x52ed79,_0x463553);}['mapApiError'](_0x50db5d){const _0x3e4f3c={_0x127fbc:0x288},_0x15fcd7={_0x5e162b:0x1ec};function _0x736288(_0x23d7f6,_0x311442,_0x17c8ae,_0x35d580){return _0x4abdca(_0x23d7f6-0x1bb,_0x35d580- -_0x15fcd7._0x5e162b,_0x17c8ae-0x190,_0x17c8ae);}return this[_0x736288(0x246,_0x3e4f3c._0x127fbc,0x1f6,0x2af)]['mapApiError'](_0x50db5d);}async['toApiError'](_0x3665c5){const _0x131fd2={_0x555b3e:0x128,_0x474cd9:0x14c,_0xdc5497:0x5a,_0x1dc76f:0x20,_0x1e039a:0x42},_0x581209={_0x432e2f:0xb0};function _0x55674a(_0x5b4da3,_0x573ae9,_0x1f78a9,_0x267855){return _0x3921cc(_0x5b4da3-0x148,_0x267855- -0x3c8,_0x573ae9,_0x267855-0x1c9);}function _0x1ee744(_0x29d3b7,_0x3733eb,_0x5abf83,_0x1aafe9){return _0x4abdca(_0x29d3b7-0x11,_0x29d3b7- -0x1da,_0x5abf83-_0x581209._0x432e2f,_0x3733eb);}return await this[_0x55674a(-_0x131fd2._0x555b3e,-_0x131fd2._0x474cd9,-0x18b,-0xcd)][_0x55674a(_0x131fd2._0xdc5497,-0xc1,_0x131fd2._0x1dc76f,-_0x131fd2._0x1e039a)](_0x3665c5);}[_0x4abdca(0x4f9,0x43c,0x4cc,0x4ae)](_0x488d8a){const _0x293cdb={_0x3bac37:0x643,_0x52dc03:0x9a,_0xcabdf7:0x10e,_0x9b7277:0x78,_0x4860b5:0x45},_0x1c50bd={_0x3672bb:0x1b1,_0x478ec3:0x157},_0x1b72fc=this[_0x554da6(0x66c,_0x293cdb._0x3bac37,0x5a6,0x661)][_0xbe58b6(-0x3e,-0x71,-_0x293cdb._0x52dc03,-_0x293cdb._0xcabdf7)](_0x488d8a);function _0x554da6(_0x396a1f,_0x42c7c1,_0x4e1050,_0x1f6479){return _0x4abdca(_0x396a1f-_0x1c50bd._0x3672bb,_0x1f6479-0xd0,_0x4e1050-_0x1c50bd._0x478ec3,_0x42c7c1);}if(!_0x1b72fc)throw new Error(_0xbe58b6(0x9a,_0x293cdb._0x9b7277,0xe3,_0x293cdb._0x4860b5)+_0x488d8a);function _0xbe58b6(_0x56ffc6,_0x42f314,_0x5b1c85,_0x20fa3d){return _0x3921cc(_0x56ffc6-0x117,_0x42f314- -0x331,_0x56ffc6,_0x20fa3d-0x8b);}return _0x1b72fc;}async[_0x3921cc(0x311,0x2d8,0x32c,0x384)](_0x5d514f,_0x1d6658){const _0x5b1105={_0x11c363:0x169,_0x4bbf23:0x142,_0x2929bc:0x1b2,_0x13261e:0x181,_0x25b102:0x1d9,_0x2922be:0x35f,_0x2b6e4a:0x312,_0x3fde00:0x40d,_0x1275ca:0x39d,_0x428cd1:0x2b5,_0x57fd14:0x44,_0xc3fca3:0xda,_0x16360d:0x3c4,_0x34192c:0x3c5,_0x5cf9e3:0x339,_0x126d29:0x3b4,_0x1aec8a:0x330,_0xa6871e:0x1c9,_0x2b4955:0x2e5,_0x207010:0x3f0,_0x408106:0x241,_0x297528:0x1dc},_0x3b6651={_0x23859e:0xf5,_0x7e828a:0x9e};function _0x340ce2(_0x18a4ee,_0x1a873e,_0x5a3eea,_0x209f15){return _0x4abdca(_0x18a4ee-0x98,_0x18a4ee- -_0x3b6651._0x23859e,_0x5a3eea-_0x3b6651._0x7e828a,_0x5a3eea);}function _0x361ef2(_0x470ee8,_0xe33ca1,_0x227349,_0x4d2a8e){return _0x3921cc(_0x470ee8-0x1ed,_0xe33ca1- -0x4ea,_0x227349,_0x4d2a8e-0x12);}const _0x2b226f=toModelRequest(_0x5d514f),_0x513c2c=await prepareProviderRequest(_0x2b226f,{'sessionManager':this[_0x361ef2(-_0x5b1105._0x11c363,-_0x5b1105._0x4bbf23,-_0x5b1105._0x2929bc,-_0x5b1105._0x13261e)],'requestMutators':this[_0x361ef2(-0x24a,-_0x5b1105._0x25b102,-0x21a,-0x29b)],'signal':_0x1d6658}),_0x3eb8c3=toChatRequest(_0x513c2c[_0x340ce2(0x335,0x3d9,_0x5b1105._0x2922be,0x3d3)]),_0x53a536=this[_0x340ce2(0x3a6,_0x5b1105._0x2b6e4a,_0x5b1105._0x3fde00,_0x5b1105._0x1275ca)][_0x361ef2(-0x2ac,-0x1f4,-0x201,-_0x5b1105._0x428cd1)](this[_0x361ef2(-_0x5b1105._0x57fd14,-_0x5b1105._0xc3fca3,-0x19c,-0xca)],_0x513c2c[_0x340ce2(0x354,_0x5b1105._0x16360d,0x3cd,_0x5b1105._0x34192c)]);if(!_0x53a536)throw this[_0x340ce2(_0x5b1105._0x5cf9e3,_0x5b1105._0x126d29,_0x5b1105._0x1aec8a,0x363)]();return{'baseUrl':this['providerAdapter'][_0x361ef2(-0xf7,-0x122,-0x164,-_0x5b1105._0xa6871e)](this[_0x340ce2(0x366,_0x5b1105._0x2b4955,_0x5b1105._0x207010,0x338)],_0x513c2c['session']),'credential':_0x53a536,'request':_0x3eb8c3,'session':_0x513c2c[_0x361ef2(-0x250,-_0x5b1105._0x408106,-_0x5b1105._0x297528,-0x1f3)]};}['applyModelDefaults'](_0xa73de6){const _0x54c3e2={_0x42786a:0x15b,_0x4d1523:0x167,_0x496989:0x12b,_0x5b9d5c:0xfe},_0x445414={_0xd12ab9:0x133,_0x2fe27a:0x633,_0x41bae2:0x80},_0x2ac2c2={_0x1b65e6:0xfe,_0x4b5b8a:0x1ae};function _0x12aa0c(_0x3bbbb4,_0xfa65ba,_0x36a3b7,_0x2b5150){return _0x4abdca(_0x3bbbb4-0x7,_0xfa65ba-_0x2ac2c2._0x1b65e6,_0x36a3b7-_0x2ac2c2._0x4b5b8a,_0x3bbbb4);}function _0x13bc7d(_0x1d37cb,_0x6eee30,_0x39e537,_0x5d1c05){return _0x4abdca(_0x1d37cb-_0x445414._0xd12ab9,_0x1d37cb- -_0x445414._0x2fe27a,_0x39e537-_0x445414._0x41bae2,_0x5d1c05);}return{...structuredClone(_0xa73de6),..._0xa73de6[_0x13bc7d(-0x15b,-0x1e6,-0x13a,-0x1cb)]===void 0x0&&this[_0x13bc7d(-_0x54c3e2._0x42786a,-_0x54c3e2._0x4d1523,-0xdc,-0x141)]!==void 0x0?{'reasoning':structuredClone(this[_0x13bc7d(-_0x54c3e2._0x42786a,-0x178,-_0x54c3e2._0x496989,-_0x54c3e2._0x5b9d5c)])}:{}};}async[_0x3921cc(0x2e3,0x286,0x24f,0x1f6)](_0x4642f2,_0x46fcaa,_0xb68be,_0x196fbe){const _0x2834a9={_0x46791e:0x42,_0x4a4197:0x4c,_0x44029e:0x231,_0x20d18c:0xc2,_0x116c5b:0x18c,_0x39bc32:0x17a,_0x1aed7e:0x15b,_0x1b699d:0x67b,_0x4d0c42:0x618,_0x567fae:0x55a},_0x3b6253={_0x23a5e2:0x5c,_0x1e41c8:0x2b5},_0xdfb889={_0x3a6189:0xad,_0x56d6ff:0xf0},_0x1de3d8={_0x33475b:0x3db,_0x19b3ba:0x360,_0xf7755e:0x318,_0xabf744:0x31b,_0xf7fe18:0x3c5,_0x44236b:0x329,_0xe1694b:0x2a4,_0x19e24c:0x341,_0x42907d:0x269,_0x5c40c3:0x2b7,_0x7cbd53:0x172,_0x2c5da3:0x31f,_0x13605a:0x31d,_0x1b055b:0x3ae,_0x53edac:0x434,_0x195f87:0x39c,_0x16b32e:0x25a,_0x568fb8:0x1f6,_0xa60a7a:0x236,_0x32df71:0x28a,_0x4ec2e7:0x182,_0xccfe29:0x4cd,_0x429633:0x46a,_0x776c91:0x30a,_0x2fca12:0x3eb,_0x1da961:0x34e,_0x243f0d:0x45e,_0x395da3:0x484,_0x262c6b:0x320,_0x196a2c:0x403,_0xc513b2:0x3c2,_0x41f0cb:0x31e,_0x5e0cdd:0x2ee,_0x576616:0x322,_0x37b640:0x2cb},_0x5ad7c1={_0x3e819e:0xad},_0x4a1b7b=async()=>{const _0x1bc2ab={_0x416964:0x1b0},_0x2fea1c=await this['prepareChatRequest'](_0x4642f2,_0x196fbe),_0x1e15dd=_0x46fcaa[_0x4cd3ea(_0x1de3d8._0x33475b,_0x1de3d8._0x19b3ba,_0x1de3d8._0xf7755e,_0x1de3d8._0xabf744)](_0x2fea1c[_0x5d0aa3(0x2a7,0x295,_0x1de3d8._0xf7fe18,_0x1de3d8._0x44236b)]);function _0x5d0aa3(_0x129bb5,_0x1792bf,_0xc59c91,_0x1060ef){return _0x6b39(_0x1060ef-_0x1bc2ab._0x416964,_0x129bb5);}if(!_0x1e15dd[_0x5d0aa3(_0x1de3d8._0xe1694b,0x380,0x2f9,_0x1de3d8._0x19e24c)])throw new Error('Surface\x20'+_0x46fcaa['id']+'\x20did\x20not\x20provide\x20an\x20HTTP\x20path');const _0x5932ea=await this[_0x5d0aa3(0x38a,0x441,0x442,0x41c)]({'request':_0x2fea1c[_0x4cd3ea(_0x1de3d8._0x42907d,0x226,_0x1de3d8._0x5c40c3,_0x1de3d8._0x7cbd53)],'body':_0x1e15dd[_0x4cd3ea(_0x1de3d8._0x2c5da3,_0x1de3d8._0x13605a,0x3dd,_0x1de3d8._0x1b055b)],'credential':_0x2fea1c[_0x5d0aa3(_0x1de3d8._0x53edac,0x455,0x43b,_0x1de3d8._0x195f87)],'session':_0x2fea1c[_0x4cd3ea(0x2cb,0x245,0x1d2,_0x1de3d8._0x16b32e)],'stream':_0xb68be},{'accept':_0x1e15dd[_0x5d0aa3(0x36c,0x3fc,0x37b,0x3a4)]??(_0xb68be?_0x4cd3ea(_0x1de3d8._0x568fb8,_0x1de3d8._0xa60a7a,_0x1de3d8._0x32df71,_0x1de3d8._0x4ec2e7):'application/json'),'includeContentType':_0x1e15dd['body']!==void 0x0});for(const [_0x48bb51,_0x3c8d11]of Object['entries'](_0x1e15dd[_0x5d0aa3(_0x1de3d8._0xccfe29,_0x1de3d8._0x429633,0x4fa,0x469)]??{})){_0x5932ea[_0x5d0aa3(0x39c,_0x1de3d8._0x776c91,_0x1de3d8._0x2fca12,_0x1de3d8._0x1da961)](_0x48bb51,_0x3c8d11);}function _0x4cd3ea(_0x5b64c9,_0x173054,_0x5b2760,_0x4b6d70){return _0x6b39(_0x173054-_0x5ad7c1._0x3e819e,_0x4b6d70);}return this[_0x5d0aa3(0x4d8,_0x1de3d8._0x243f0d,0x464,_0x1de3d8._0x395da3)](''+_0x2fea1c['baseUrl']+_0x1e15dd[_0x5d0aa3(0x321,_0x1de3d8._0x262c6b,_0x1de3d8._0x196a2c,_0x1de3d8._0x19e24c)],{'method':_0x4cd3ea(_0x1de3d8._0xc513b2,_0x1de3d8._0x41f0cb,0x30f,_0x1de3d8._0x5e0cdd),'headers':_0x5932ea,..._0x1e15dd[_0x4cd3ea(_0x1de3d8._0x576616,0x31d,_0x1de3d8._0x37b640,0x35c)]!==void 0x0?{'body':JSON[_0x4cd3ea(0x461,0x39f,0x394,0x312)](_0x1e15dd['body'])}:{},'signal':_0x196fbe});},_0x488fe6=await _0x4a1b7b();function _0x12803a(_0x13be9d,_0x651ec3,_0x53432e,_0x599b73){return _0x3921cc(_0x13be9d-_0xdfb889._0x3a6189,_0x599b73- -0x22e,_0x53432e,_0x599b73-_0xdfb889._0x56d6ff);}if(_0x488fe6[_0x12803a(_0x2834a9._0x46791e,-_0x2834a9._0x4a4197,-0x6,0x65)]!==0x191||!this[_0x12803a(_0x2834a9._0x44029e,_0x2834a9._0x20d18c,_0x2834a9._0x116c5b,_0x2834a9._0x39bc32)])return _0x488fe6;this[_0x12803a(_0x2834a9._0x1aed7e,0x11d,0x119,_0x2834a9._0x39bc32)][_0x169f8c(_0x2834a9._0x1b699d,_0x2834a9._0x4d0c42,0x5c5,_0x2834a9._0x567fae)]();function _0x169f8c(_0x2c39b6,_0x1c677b,_0xa2bc07,_0x21a730){return _0x3921cc(_0x2c39b6-_0x3b6253._0x23a5e2,_0xa2bc07-_0x3b6253._0x1e41c8,_0x21a730,_0x21a730-0x10f);}return _0x4a1b7b();}async*['streamHttpSurface'](_0x5d1a38,_0x26c5b5,_0x1f4bf6){const _0x5d2e8c={_0x2c779e:0x54e,_0xb3393a:0x58d,_0x339999:0x83,_0x545749:0x92,_0x1b247f:0xf7,_0x5c447c:0xe7,_0x2de082:0xc3,_0xc50451:0x5c6,_0x284a1c:0x194,_0x2541cc:0x164},_0x435274={_0x18f7c7:0x434,_0x5e7725:0xb},_0x55e37c=await this[_0x5a1408(0x4c4,_0x5d2e8c._0x2c779e,0x4fc,_0x5d2e8c._0xb3393a)](_0x5d1a38,_0x26c5b5,!![],_0x1f4bf6);function _0x5a1408(_0x89c2ca,_0x393198,_0x3b426d,_0xe668ae){return _0x3921cc(_0x89c2ca-0x1f2,_0x3b426d-0x276,_0x89c2ca,_0xe668ae-0x6c);}if(!_0x55e37c['ok'])throw await this[_0x5caf01(-0xf9,-0xd,-_0x5d2e8c._0x339999,-0xae)](_0x55e37c);const _0x4c65a1=_0x26c5b5[_0x5caf01(-0x127,-_0x5d2e8c._0x545749,-0xf9,-_0x5d2e8c._0x1b247f)]?.(_0x5d1a38);if(!_0x4c65a1?.[_0x5caf01(-_0x5d2e8c._0x5c447c,-0x15a,-_0x5d2e8c._0x2de082,-0x11c)])throw new Error(_0x5a1408(0x535,0x515,_0x5d2e8c._0xc50451,0x661)+_0x26c5b5['id']+_0x5caf01(-_0x5d2e8c._0x284a1c,-_0x5d2e8c._0x2541cc,-0xb6,-0x177));function _0x5caf01(_0x1fb2b0,_0x4222c6,_0x2567c6,_0x5b4601){return _0x3921cc(_0x1fb2b0-0x1eb,_0x5b4601- -_0x435274._0x18f7c7,_0x2567c6,_0x5b4601-_0x435274._0x5e7725);}for await(const _0x2da0b3 of iterateSseEvents(_0x55e37c,_0x1f4bf6)){yield*_0x4c65a1['consumeSseEvent'](_0x2da0b3);}yield{'type':'done','response':_0x4c65a1['finish']()};}async*[_0x4abdca(0x4cd,0x516,0x50c,0x460)](_0x1bf0b2,_0x3fc718,_0x27cd8c){const _0xe7a8e1={_0x2682fa:0x498,_0x5216da:0x4b0,_0x3c1e05:0x500,_0x3436cc:0x11c,_0x449a2d:0xe8,_0x348642:0x3,_0x3468c7:0x582,_0x247533:0x598,_0x456536:0x50c,_0x58e4c5:0x60,_0x25f835:0x13e,_0x2990b8:0xd5,_0x318e48:0x148,_0x159167:0x5c,_0x53a6d5:0x65,_0x1c9948:0x56,_0x40d667:0x2d,_0x1f8709:0x27,_0x33ef14:0x5d,_0x29ab27:0x109,_0x3ad6a3:0x1b2,_0x50ce47:0x14,_0x4b93bc:0x37,_0x1902f5:0xe2,_0x3b159f:0x67,_0x519501:0xf5,_0x453e3f:0x5ab,_0x409c86:0x5f0,_0x155f6a:0x54b,_0x5f5a9b:0x573,_0x2054bf:0x4e5,_0x599e99:0x5d8,_0xbf93f8:0x51a,_0x27e5bd:0x559,_0x12ff10:0xd0,_0xb9cbbe:0x9,_0x2e7d7c:0x84,_0xfb07a4:0x141,_0x1b44fb:0xaa,_0x2297d1:0x113,_0xc1ebfc:0x66b,_0x2c0d77:0x625,_0x15e74d:0x90,_0x43fe14:0x9e,_0x446ae5:0x54b,_0x38d923:0x5a3,_0x547c4c:0x550,_0x59baf0:0x560,_0x1a8de3:0x4eb,_0x488bfa:0x47e,_0x3d4dd8:0x5be,_0x1eb0aa:0x680,_0x185ac0:0x55a,_0x5bda16:0x5c8,_0x12e621:0x541,_0x454c0e:0x619,_0x5bb0eb:0x633,_0x334734:0x656,_0x29202b:0x114,_0x17b24a:0x11c,_0x210e5f:0x188,_0x589e35:0xc2,_0x1be238:0x559,_0x259821:0x626,_0x25cd99:0x56b,_0xd451ac:0x668,_0x46185d:0x5da,_0x356342:0x121,_0x463291:0x59,_0xb39cc1:0xac,_0x43268a:0x5a9,_0x494401:0x5a5,_0x701cf3:0x527,_0x709221:0xd3,_0x846c90:0x159,_0x204533:0x660,_0x379acb:0x4ff,_0x10361e:0x5bc,_0x3efbb6:0x5c4,_0x334b7b:0xcb},_0x26d6de={_0x53e3e9:0x41b},_0x8fd864={_0x2c670e:0xbb},_0x13f9cc=await this[_0x4af7d5(_0xe7a8e1._0x2682fa,_0xe7a8e1._0x5216da,_0xe7a8e1._0x3c1e05,0x533)](_0x1bf0b2,_0x27cd8c),_0x3cf8c1=_0x3fc718[_0x3f2035(0x1ce,_0xe7a8e1._0x3436cc,0x149,_0xe7a8e1._0x449a2d)](_0x13f9cc[_0x3f2035(-0x53,-0x8c,0xf,-_0xe7a8e1._0x348642)]);function _0x4af7d5(_0x387157,_0x599ebf,_0x304fb7,_0x2d16c2){return _0x4abdca(_0x387157-0xc4,_0x2d16c2-_0x8fd864._0x2c670e,_0x304fb7-0x1bc,_0x304fb7);}const _0x2f9e1c=_0x3fc718[_0x4af7d5(_0xe7a8e1._0x3468c7,0x56b,0x569,_0xe7a8e1._0x247533)]?.(_0x1bf0b2);if(!_0x2f9e1c?.[_0x4af7d5(0x46a,0x556,0x512,_0xe7a8e1._0x456536)])throw new Error(_0x3f2035(_0xe7a8e1._0x58e4c5,_0xe7a8e1._0x25f835,_0xe7a8e1._0x2990b8,_0xe7a8e1._0x318e48)+_0x3fc718['id']+'\x20cannot\x20parse\x20WebSocket\x20events');const _0x2d09aa=_0x3cf8c1[_0x3f2035(-_0xe7a8e1._0x159167,-_0xe7a8e1._0x53a6d5,_0xe7a8e1._0x1c9948,_0xe7a8e1._0x40d667)]??(_0x3cf8c1[_0x3f2035(0xbf,0x4d,_0xe7a8e1._0x1f8709,0x3a)]?(''+_0x13f9cc['baseUrl']+_0x3cf8c1['path'])[_0x3f2035(_0xe7a8e1._0x33ef14,0xef,_0xe7a8e1._0x29ab27,_0xe7a8e1._0x3ad6a3)](/^http:/,_0x3f2035(-0x5a,-_0xe7a8e1._0x50ce47,_0xe7a8e1._0x4b93bc,0xe9))[_0x3f2035(_0xe7a8e1._0x1902f5,_0xe7a8e1._0x3b159f,_0xe7a8e1._0x29ab27,_0xe7a8e1._0x519501)](/^https:/,'wss:'):void 0x0);if(!_0x2d09aa)throw new Error(_0x4af7d5(0x5ec,0x62e,0x66a,_0xe7a8e1._0x453e3f)+_0x3fc718['id']+_0x4af7d5(_0xe7a8e1._0x409c86,_0xe7a8e1._0x155f6a,0x554,0x59c));const _0x55d390=await this[_0x4af7d5(_0xe7a8e1._0x5f5a9b,0x534,0x56a,0x5d8)]({'request':_0x13f9cc[_0x4af7d5(0x4ac,_0xe7a8e1._0x5f5a9b,0x543,_0xe7a8e1._0x2054bf)],'body':_0x3cf8c1[_0x4af7d5(_0xe7a8e1._0x599e99,_0xe7a8e1._0xbf93f8,0x580,_0xe7a8e1._0x27e5bd)],'credential':_0x13f9cc[_0x3f2035(_0xe7a8e1._0x12ff10,0xfe,0x82,0x1e)],'session':_0x13f9cc[_0x3f2035(-0x42,-_0xe7a8e1._0xb9cbbe,0x2e,_0xe7a8e1._0x449a2d)],'stream':!![]},{'accept':_0x3cf8c1['accept']??_0x3f2035(_0xe7a8e1._0x2e7d7c,0x15b,0xf3,_0xe7a8e1._0xfb07a4),'includeContentType':![]});for(const [_0x3653fb,_0x4b1e0d]of Object[_0x3f2035(0x37,_0xe7a8e1._0x29ab27,_0xe7a8e1._0x1b44fb,_0xe7a8e1._0x2297d1)](_0x3cf8c1[_0x4af7d5(0x63e,0x5d1,_0xe7a8e1._0xc1ebfc,_0xe7a8e1._0x2c0d77)]??{})){_0x55d390[_0x3f2035(-_0xe7a8e1._0x15e74d,-0x6c,0x34,_0xe7a8e1._0x43fe14)](_0x3653fb,_0x4b1e0d);}_0x55d390['delete'](_0x4af7d5(_0xe7a8e1._0x446ae5,_0xe7a8e1._0x38d923,_0xe7a8e1._0x547c4c,_0xe7a8e1._0x59baf0));const _0x1037a4=this[_0x3f2035(0xb1,0x14d,0xb8,0x18)]({'headers':Object[_0x4af7d5(0x566,0x4d1,0x5e1,0x536)](_0x55d390['entries']()),'url':_0x2d09aa});function _0x3f2035(_0x5dcb29,_0x3e5cc6,_0x7b40bc,_0x1a8dbd){return _0x4abdca(_0x5dcb29-0x188,_0x7b40bc- -_0x26d6de._0x53e3e9,_0x7b40bc-0xa,_0x5dcb29);}try{throwIfAborted(_0x27cd8c);_0x1037a4[_0x4af7d5(_0xe7a8e1._0x1a8de3,_0xe7a8e1._0x488bfa,_0xe7a8e1._0x3d4dd8,0x527)]!==WebSocket[_0x4af7d5(0x64c,_0xe7a8e1._0x1eb0aa,_0xe7a8e1._0x185ac0,_0xe7a8e1._0x5bda16)]&&await waitForWebSocketOpen(_0x1037a4,_0x27cd8c);throwIfAborted(_0x27cd8c);_0x3cf8c1[_0x4af7d5(0x569,_0xe7a8e1._0x12e621,0x4e9,0x559)]!==void 0x0&&_0x1037a4[_0x4af7d5(0x5f6,_0xe7a8e1._0x454c0e,_0xe7a8e1._0x5bb0eb,_0xe7a8e1._0x334734)](JSON[_0x3f2035(_0xe7a8e1._0x29202b,_0xe7a8e1._0x17b24a,_0xe7a8e1._0x210e5f,_0xe7a8e1._0x589e35)](_0x3cf8c1[_0x4af7d5(0x4fe,0x581,0x5d4,_0xe7a8e1._0x1be238)]));for await(const _0x37bb50 of iterateWebSocketMessages(_0x1037a4,_0x27cd8c)){yield*_0x2f9e1c[_0x4af7d5(0x55a,0x49b,0x484,0x50c)](_0x37bb50);if(_0x2f9e1c[_0x4af7d5(_0xe7a8e1._0x259821,_0xe7a8e1._0x25cd99,_0xe7a8e1._0xd451ac,_0xe7a8e1._0x46185d)]?.())break;}yield{'type':'done','response':_0x2f9e1c[_0x3f2035(_0xe7a8e1._0x356342,_0xe7a8e1._0x463291,_0xe7a8e1._0xb39cc1,0x56)]()};}finally{_0x1037a4[_0x4af7d5(_0xe7a8e1._0x43268a,_0xe7a8e1._0x494401,0x539,_0xe7a8e1._0x701cf3)]===WebSocket[_0x3f2035(_0xe7a8e1._0x709221,_0xe7a8e1._0x846c90,0xf2,0xaf)]&&_0x1037a4['close'](0x3e8,_0x27cd8c?.[_0x4af7d5(_0xe7a8e1._0x204533,_0xe7a8e1._0x379acb,_0xe7a8e1._0x10361e,_0xe7a8e1._0x3efbb6)]?'aborted':_0x3f2035(0x3a,0xbd,_0xe7a8e1._0x334b7b,0x52));}}};async function createHttpError(_0x23c871){const _0x19058a={_0xd845ae:0x3f8,_0x297ce7:0x380,_0x5dac47:0x213,_0x4e5064:0x1ca,_0x38b87e:0x3df,_0x4ce758:0x436,_0x2d77eb:0x438,_0x2cfc8f:0x2e5,_0x1c3a8b:0x249,_0x29433f:0x232,_0x509ccf:0x28d},_0x463639={_0x57ffb6:0x1af,_0x16784c:0x120},_0x2599ec={_0x59dd45:0x53};function _0x70b80b(_0x5ed90e,_0x32158a,_0xde1147,_0x361559){return _0x3921cc(_0x5ed90e-0x0,_0x32158a- -0x61,_0x361559,_0x361559-_0x2599ec._0x59dd45);}function _0x5f0968(_0x5a799e,_0x5244db,_0x39ebe1,_0xd96729){return _0x4abdca(_0x5a799e-_0x463639._0x57ffb6,_0x5244db- -0x309,_0x39ebe1-_0x463639._0x16784c,_0x5a799e);}const _0x26b1cc=await _0x23c871[_0x70b80b(_0x19058a._0xd845ae,_0x19058a._0x297ce7,0x3fc,0x39f)](),_0x3757d8=_0x26b1cc[_0x5f0968(_0x19058a._0x5dac47,0x256,_0x19058a._0x4e5064,0x250)]()||_0x23c871['statusText']||_0x70b80b(_0x19058a._0x38b87e,0x39d,_0x19058a._0x4ce758,0x3d9);return new Error(_0x70b80b(0x390,0x38a,_0x19058a._0x2d77eb,_0x19058a._0x2cfc8f)+_0x23c871[_0x70b80b(_0x19058a._0x1c3a8b,_0x19058a._0x29433f,0x19f,_0x19058a._0x509ccf)]+':\x20'+_0x3757d8);}var AnthropicProviderAdapter=class{[_0x3921cc(0x371,0x2e9,0x3aa,0x2d6)];['headerResolver'];[_0x3921cc(0x263,0x2a5,0x29d,0x321)];constructor(_0xe74e6){const _0x25bccd={_0x15c1e4:0x304,_0x1fa4e7:0x24a,_0x46b3a1:0x2c0,_0x5ce56:0x30c,_0xeccd99:0x304,_0x21f049:0x414,_0x75a754:0x3f4,_0x54edd5:0x3a7},_0x222676={_0x42332d:0xca,_0x4b4a89:0x185},_0x26df69={_0x5cd5fa:0x182};this[_0x48d036(0x29d,_0x25bccd._0x15c1e4,_0x25bccd._0x1fa4e7,_0x25bccd._0x46b3a1)]=_0xe74e6[_0x48d036(_0x25bccd._0x5ce56,_0x25bccd._0xeccd99,0x2ef,0x367)],this[_0x48d036(_0x25bccd._0x21f049,_0x25bccd._0x75a754,0x33e,_0x25bccd._0x54edd5)]=_0xe74e6['headerResolver'];function _0x1b6f98(_0x4fd19e,_0x4349b0,_0x5546e1,_0x509071){return _0x4abdca(_0x4fd19e-0x87,_0x4fd19e- -0x3fe,_0x5546e1-_0x26df69._0x5cd5fa,_0x509071);}function _0x48d036(_0x1e1b26,_0x13659f,_0x2a7173,_0x2ac751){return _0x4abdca(_0x1e1b26-_0x222676._0x42332d,_0x13659f- -_0x222676._0x4b4a89,_0x2a7173-0x1e,_0x1e1b26);}this[_0x1b6f98(0x47,-0x5f,-0x5b,-0x36)]=_0xe74e6[_0x1b6f98(0x47,-0x2e,0xd7,0x108)];}[_0x3921cc(0x1cb,0x28e,0x279,0x1e0)](){const _0x342ce9={_0x55d21d:0x65,_0x25e4ab:0x117},_0x68a5c4={_0x49d20a:0x16c};function _0x59e86b(_0x47c897,_0x395ee8,_0x244452,_0x1c661a){return _0x4abdca(_0x47c897-0x14d,_0x395ee8- -0x4f3,_0x244452-_0x68a5c4._0x49d20a,_0x244452);}return new Error(_0x59e86b(0x67,_0x342ce9._0x55d21d,0x128,_0x342ce9._0x25e4ab));}async[_0x4abdca(0x49a,0x51d,0x47b,0x5cf)](_0x21cab3,_0xe57d2f){const _0x318a62={_0x5c54a9:0x48e,_0x42b4c4:0x3cf,_0x3e4cad:0x491,_0x2bd436:0x478,_0x4cba3e:0x2a3,_0x54d286:0x36c,_0x2651af:0x2d7,_0x4cc9bb:0x3e0,_0x38ecb1:0x1a7,_0x1c8f33:0x2e5,_0x34b7cd:0x219,_0x479bc8:0x250,_0x435d27:0x2af,_0x45ca0d:0x2ca,_0x4ca9df:0x45d,_0x3ebf54:0x1e3,_0x360af1:0x2d5,_0x404e8c:0x408,_0x443ef3:0x3a0,_0x349b50:0x413,_0x5caabd:0x4ba,_0x343130:0x4b7,_0xaec777:0x49b,_0xfd9df2:0x2a8,_0x104414:0x3d8,_0x2a7b3a:0x28f,_0x50a415:0x352,_0x3f5585:0x350},_0x3c6aa5={_0x108b79:0x72},_0x513f94=new Headers();_0x513f94[_0x19f4aa(0x219,0x21a,0x246,0x1c0)](_0x4d4154(_0x318a62._0x5c54a9,0x470,0x43b,0x4bb),_0xe57d2f['accept']),_0x513f94[_0x4d4154(0x3f3,0x344,0x3e5,0x33b)](_0x4d4154(0x376,0x41e,_0x318a62._0x42b4c4,_0x318a62._0x3e4cad),this['protocolVersion']);_0xe57d2f[_0x4d4154(0x31d,_0x318a62._0x2bd436,0x3c3,0x2fe)]!==![]&&_0x513f94[_0x19f4aa(0x219,_0x318a62._0x4cba3e,0x25f,0x29b)](_0x19f4aa(_0x318a62._0x54d286,_0x318a62._0x2651af,_0x318a62._0x4cc9bb,0x3bd),'application/json');this[_0x19f4aa(0x253,0x2e3,_0x318a62._0x38ecb1,_0x318a62._0x1c8f33)]==='bearer'?_0x513f94[_0x19f4aa(_0x318a62._0x34b7cd,_0x318a62._0x479bc8,_0x318a62._0x435d27,0x2d7)](_0x19f4aa(_0x318a62._0x45ca0d,0x36a,0x24f,0x2a4),'Bearer\x20'+_0x21cab3[_0x19f4aa(0x267,0x226,0x28d,0x293)][_0x4d4154(0x441,0x3ad,0x413,_0x318a62._0x4ca9df)]):_0x513f94[_0x19f4aa(0x219,0x2bf,_0x318a62._0x3ebf54,0x1d3)]('x-api-key',_0x21cab3[_0x19f4aa(0x267,0x249,_0x318a62._0x34b7cd,_0x318a62._0x360af1)][_0x4d4154(_0x318a62._0x404e8c,_0x318a62._0x443ef3,_0x318a62._0x349b50,0x378)]);function _0x19f4aa(_0x1dc18c,_0x12732b,_0x347673,_0x5869cf){return _0x3921cc(_0x1dc18c-0xdf,_0x1dc18c- -0x96,_0x347673,_0x5869cf-0xf7);}const _0x1c3ee7=await this['headerResolver']?.({'body':_0x21cab3[_0x4d4154(0x44d,_0x318a62._0x5caabd,_0x318a62._0x343130,_0x318a62._0xaec777)],'credential':_0x21cab3['credential'],'request':_0x21cab3[_0x19f4aa(0x1f4,0x1a9,_0x318a62._0xfd9df2,0x291)],'session':_0x21cab3['session'],'stream':_0x21cab3[_0x4d4154(_0x318a62._0x104414,0x422,0x3ea,0x41d)]});for(const [_0x2ea4e1,_0x52eecd]of Object[_0x19f4aa(_0x318a62._0x2a7b3a,0x2b7,_0x318a62._0x50a415,_0x318a62._0x3f5585)](_0x1c3ee7??{})){_0x513f94['set'](_0x2ea4e1,_0x52eecd);}function _0x4d4154(_0x36751f,_0x55b4ac,_0x1bbeed,_0x29820d){return _0x3921cc(_0x36751f-_0x3c6aa5._0x108b79,_0x1bbeed-0x136,_0x36751f,_0x29820d-0x133);}return _0x513f94;}[_0x4abdca(0x3a1,0x456,0x4de,0x3d4)](_0x2f2e2d){return _0x2f2e2d;}[_0x3921cc(0x3c8,0x3c8,0x41f,0x3d0)](_0x4c2b2,_0x11a44a){return resolveSessionBaseUrl(_0x4c2b2,_0x11a44a);}[_0x3921cc(0x2f7,0x2f6,0x338,0x292)](_0xf21065,_0x47ae4f){return resolveApiCredential(_0xf21065,_0x47ae4f);}async[_0x3921cc(0x34d,0x386,0x328,0x435)](_0x231890){return await createHttpError(_0x231890);}},AnthropicModel=class extends RoutedModel{constructor(_0x582f09={}){const _0x3604c9={_0x49f080:0xef,_0x5318bb:0x39,_0x4e6d45:0x90,_0x5707ca:0x2c,_0x2daddc:0x320,_0x341fa6:0x39f,_0x25ad98:0x2b7,_0x28a262:0x335,_0x3de6d3:0x293,_0x152f8b:0x2a0,_0x5189f7:0x325,_0x40e060:0x29f,_0x1e042f:0x303,_0x364f24:0x338,_0x5c7186:0x282,_0x41b8ef:0x21e,_0x40f24a:0x2d2,_0x16be05:0x2,_0x363243:0xa5,_0x212d25:0x79,_0x469c4c:0x75,_0x5c3d41:0x132,_0x51126c:0x80,_0x557c82:0x23,_0x2de8a9:0x265,_0x4e8b8e:0x286},_0x597999={_0x4aa6e1:0x1c3};function _0x4eef9e(_0xbe9896,_0x1c173,_0x44ade9,_0x30d9eb){return _0x3921cc(_0xbe9896-0x1ca,_0x1c173- -0x3d7,_0xbe9896,_0x30d9eb-0x16);}function _0x4c547d(_0xfab0b1,_0x5cdc31,_0x13ba58,_0x160314){return _0x3921cc(_0xfab0b1-0x1e6,_0x160314- -0x8b,_0x13ba58,_0x160314-_0x597999._0x4aa6e1);}super({'apiKey':_0x582f09[_0x4eef9e(_0x3604c9._0x49f080,_0x3604c9._0x5318bb,_0x3604c9._0x4e6d45,_0x3604c9._0x5707ca)],'baseUrl':trimTrailingSlashes(_0x582f09['baseUrl']??_0x4c547d(_0x3604c9._0x2daddc,0x32f,_0x3604c9._0x341fa6,0x357)),'fetch':_0x582f09[_0x4c547d(_0x3604c9._0x25ad98,0x29b,0x38e,0x2e9)],'maxTokens':_0x582f09[_0x4c547d(0x20a,0x263,_0x3604c9._0x28a262,_0x3604c9._0x3de6d3)]??0x4000,'model':_0x582f09[_0x4c547d(_0x3604c9._0x152f8b,_0x3604c9._0x5189f7,_0x3604c9._0x40e060,_0x3604c9._0x1e042f)]??_0x4c547d(0x2cc,_0x3604c9._0x364f24,0x297,_0x3604c9._0x5c7186),'reasoning':_0x582f09[_0x4c547d(_0x3604c9._0x41b8ef,0x28a,_0x3604c9._0x40f24a,0x2ad)],'providerAdapter':new AnthropicProviderAdapter({'authScheme':_0x582f09['authScheme']??'x-api-key','headerResolver':_0x582f09[_0x4eef9e(0x7e,_0x3604c9._0x16be05,-_0x3604c9._0x363243,_0x3604c9._0x212d25)],'protocolVersion':_0x582f09[_0x4eef9e(-_0x3604c9._0x469c4c,-_0x3604c9._0x5c3d41,-0x168,-0xfb)]??'2023-06-01'}),'providerSessionResolver':_0x582f09[_0x4eef9e(0x1b,-_0x3604c9._0x51126c,-0x10b,-_0x3604c9._0x557c82)],'requestMutators':_0x582f09[_0x4c547d(0x217,0x29b,_0x3604c9._0x2de8a9,_0x3604c9._0x4e8b8e)],'router':new StaticModelSurfaceRouter({'complete':ANTHROPIC_MESSAGES_SURFACE,'stream':ANTHROPIC_MESSAGES_STREAM_SURFACE}),'surfaces':createAnthropicSurfaces()});}['complete'](_0xe5e7e9,_0x157607){return this['completeViaSurface'](_0xe5e7e9,ANTHROPIC_MESSAGES_SURFACE,_0x157607);}['stream'](_0x2d9389,_0x1457c3){const _0x580d4d={_0x48d40c:0x37,_0x1c83a5:0x6e,_0x185377:0xcb},_0x7bc13e={_0x4c1041:0xf0};function _0x46bb57(_0x11abfd,_0x228054,_0x133ee2,_0x4c66db){return _0x3921cc(_0x11abfd-_0x7bc13e._0x4c1041,_0x11abfd- -0x411,_0x228054,_0x4c66db-0x1a9);}return this[_0x46bb57(-_0x580d4d._0x48d40c,_0x580d4d._0x1c83a5,-_0x580d4d._0x185377,-0xeb)](_0x2d9389,ANTHROPIC_MESSAGES_STREAM_SURFACE,_0x1457c3);}},OPENAI_CHAT_COMPLETIONS_SURFACE=_0x4abdca(0x623,0x5af,0x623,0x658),OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE=_0x4abdca(0x628,0x56f,0x58c,0x5e6),OPENAI_RESPONSES_SURFACE=_0x4abdca(0x564,0x4e5,0x4e1,0x562),OPENAI_RESPONSES_STREAM_SURFACE=_0x3921cc(0x324,0x2b7,0x219,0x259),OPENAI_RESPONSES_WEBSOCKET_SURFACE=_0x4abdca(0x4b5,0x56e,0x60d,0x52b),OpenAiApiError=class extends Error{[_0x4abdca(0x496,0x433,0x3ea,0x4f3)];['body'];constructor(_0x2372b8,_0x3cb4c5,_0x1ea2ff){const _0xdb8fca={_0x1acd4f:0x590,_0x52b9cb:0x57f,_0x3e8046:0x3ad,_0x2011fb:0x470,_0x266bf0:0x4f7},_0x186853={_0x2b6a9b:0x156},_0x4974d6={_0x8ce4da:0x12e,_0x37e89a:0x1cf};function _0x49cc5f(_0x2eaf62,_0x3dd862,_0xdc9225,_0x420997){return _0x4abdca(_0x2eaf62-_0x4974d6._0x8ce4da,_0x420997- -0x2a,_0xdc9225-_0x4974d6._0x37e89a,_0x2eaf62);}super(_0x1ea2ff);function _0xfe1f17(_0x19747a,_0x2dd85d,_0x185f55,_0x33d529){return _0x4abdca(_0x19747a-_0x186853._0x2b6a9b,_0x185f55-0xc,_0x185f55-0x10e,_0x2dd85d);}this[_0x49cc5f(0x544,0x4e2,_0xdb8fca._0x1acd4f,_0xdb8fca._0x52b9cb)]=_0x49cc5f(0x4ab,0x4aa,_0xdb8fca._0x3e8046,0x416),this['status']=_0x2372b8,this[_0x49cc5f(_0xdb8fca._0x2011fb,0x441,0x547,_0xdb8fca._0x266bf0)]=_0x3cb4c5;}},OpenAiResponsesStreamError=class extends Error{['code'];[_0x3921cc(0x1fd,0x293,0x340,0x2f7)];constructor(_0x3935d3,_0x10404f={}){const _0x543868={_0x35377c:0xef,_0x43e8ad:0x16c,_0x31cbbe:0x119,_0x21053f:0x57,_0x4d2766:0x172,_0xed23ce:0x5a1,_0x22d7ce:0x64f,_0x5d717a:0x229},_0x326c28={_0x42c4b4:0x2f,_0x271929:0xf5},_0x4b8005={_0x1df23c:0x698,_0x500120:0x108};super(_0x3935d3);function _0x1f6048(_0x72c1f6,_0x9f52fe,_0x2b0d05,_0x3dfc3e){return _0x4abdca(_0x72c1f6-0xa4,_0x72c1f6- -_0x4b8005._0x1df23c,_0x2b0d05-_0x4b8005._0x500120,_0x2b0d05);}this[_0x1f6048(-_0x543868._0x35377c,-0xc5,-0x181,-_0x543868._0x43e8ad)]='OpenAiResponsesStreamError';function _0x54044c(_0x46b4a5,_0x35624e,_0x4428db,_0x585d4a){return _0x4abdca(_0x46b4a5-0x187,_0x585d4a-_0x326c28._0x42c4b4,_0x4428db-_0x326c28._0x271929,_0x4428db);}this[_0x1f6048(-_0x543868._0x31cbbe,-_0x543868._0x21053f,-0x1a1,-_0x543868._0x4d2766)]=_0x10404f[_0x54044c(0x65f,_0x543868._0xed23ce,_0x543868._0x22d7ce,0x5ae)],this[_0x1f6048(-0x265,-0x1fc,-_0x543868._0x5d717a,-0x1be)]=_0x10404f['status'];}};function stringifySystem(_0x5d95b9){const _0x2399a1={_0x59a46f:0xd3,_0x4a66fc:0xd7,_0x4f7ce9:0x86,_0x87aaba:0x11},_0x56d81d={_0x325ade:0x10e,_0x2b9307:0xe2},_0x5a4713={_0x341f29:0x165};function _0x15f45e(_0x6865bc,_0x49125d,_0x2e1bf2,_0x1d14f0){return _0x3921cc(_0x6865bc-0x16e,_0x49125d- -0x17d,_0x2e1bf2,_0x1d14f0-_0x5a4713._0x341f29);}function _0x30f9ff(_0x1b8419,_0x3a18e6,_0x38ed71,_0x2a000d){return _0x3921cc(_0x1b8419-_0x56d81d._0x325ade,_0x1b8419- -0x332,_0x3a18e6,_0x2a000d-_0x56d81d._0x2b9307);}return _0x5d95b9[_0x30f9ff(_0x2399a1._0x59a46f,_0x2399a1._0x4a66fc,0xa5,_0x2399a1._0x4f7ce9)](_0x129e80=>_0x129e80[_0x15f45e(0x2dc,0x264,0x216,0x1fd)])[_0x30f9ff(-0x54,-0xe9,-_0x2399a1._0x87aaba,-0x106)]('\x0a\x0a');}function createToolDefinitions(_0x4c8865){const _0x554115={_0x1dae3b:0x11c,_0x5ed14c:0x1a0},_0x36bcf7={_0x3c9a75:0x79,_0x1f0aa3:0x39,_0x3a9a39:0x2e7},_0x159934={_0x409458:0x77,_0x3842b4:0x1ab},_0x2b443b={_0x5a78ee:0x3,_0x43f2d0:0x43f,_0x3a8a65:0x43};if(_0x4c8865['length']===0x0)return void 0x0;function _0x2f36b1(_0x4d901a,_0x1f98b2,_0x3c9ae9,_0x11667b){return _0x4abdca(_0x4d901a-0xe,_0x3c9ae9- -0x699,_0x3c9ae9-0x77,_0x1f98b2);}return _0x4c8865[_0x2f36b1(-0xbe,-_0x554115._0x1dae3b,-0xf4,-_0x554115._0x5ed14c)](_0x4307b8=>{function _0x5ccdaf(_0x5c6e2c,_0x5550d4,_0x488e97,_0x20f900){return _0x2f36b1(_0x5c6e2c-_0x2b443b._0x5a78ee,_0x20f900,_0x488e97-_0x2b443b._0x43f2d0,_0x20f900-_0x2b443b._0x3a8a65);}function _0x353814(_0x519e90,_0x2b9328,_0x3273da,_0xf2409f){return _0x2f36b1(_0x519e90-0x18f,_0x519e90,_0x3273da-_0x159934._0x409458,_0xf2409f-_0x159934._0x3842b4);}return{'type':'function','function':{'name':_0x4307b8[_0x353814(-0xa1,-0xe0,-_0x36bcf7._0x3c9a75,_0x36bcf7._0x1f0aa3)],'description':_0x4307b8[_0x5ccdaf(0x363,0x2b9,0x308,_0x36bcf7._0x3a9a39)],'parameters':_0x4307b8['input_schema']}};});}function isImageToolResultBlock(_0x51e9a4){const _0x2e1996={_0xbb81db:0x21,_0x4fff00:0x32,_0x2f4410:0x78,_0x48209b:0x12f,_0x11f5d3:0x81,_0x527cb8:0x13b,_0x4bc3cf:0xc2,_0x2f3b56:0x3a,_0x45cdc5:0x1d,_0x28d793:0x79,_0x2908c8:0x188,_0x502b77:0x34,_0x1937ea:0xbb,_0x19e8e2:0x85,_0x1c56d3:0x1c,_0x32239d:0x13,_0x28748d:0x120,_0x538c03:0xaf,_0x2b4d93:0x2f,_0x58ed7:0x2b,_0x4cb6f0:0x11f},_0x2d7916={_0x24460e:0x10b,_0x3785be:0x339},_0x5249c8={_0x2cb3cf:0x51c,_0x2d3449:0x37};function _0x1597f5(_0x4066cc,_0x5222d8,_0x11d256,_0xd69da3){return _0x4abdca(_0x4066cc-0xb,_0x4066cc- -_0x5249c8._0x2cb3cf,_0x11d256-_0x5249c8._0x2d3449,_0x11d256);}if(typeof _0x51e9a4!==_0x538cb9(-_0x2e1996._0xbb81db,-0x81,_0x2e1996._0x4fff00,_0x2e1996._0x2f4410)||_0x51e9a4===null||Array[_0x538cb9(0x12c,_0x2e1996._0x48209b,_0x2e1996._0x11f5d3,_0x2e1996._0x527cb8)](_0x51e9a4))return![];function _0x538cb9(_0x1f4b1a,_0x31b591,_0x30dc24,_0x5cb844){return _0x3921cc(_0x1f4b1a-_0x2d7916._0x24460e,_0x30dc24- -_0x2d7916._0x3785be,_0x5cb844,_0x5cb844-0x17f);}const _0x658242=_0x51e9a4;return _0x658242['type']==='image'&&_0x658242['source']?.[_0x538cb9(-_0x2e1996._0x4bc3cf,-0x40,-_0x2e1996._0x2f3b56,_0x2e1996._0x45cdc5)]===_0x538cb9(0x98,_0x2e1996._0x28d793,0xd2,_0x2e1996._0x2908c8)&&typeof _0x658242[_0x1597f5(-0x30,-0x1,_0x2e1996._0x502b77,-_0x2e1996._0x1937ea)][_0x538cb9(-0x8e,-0xa0,-0x63,-0x36)]==='string'&&typeof _0x658242[_0x538cb9(-_0x2e1996._0x19e8e2,_0x2e1996._0x1c56d3,_0x2e1996._0x32239d,-0x79)][_0x538cb9(0x92,_0x2e1996._0x28748d,_0x2e1996._0x538c03,0x113)]===_0x1597f5(0x74,-_0x2e1996._0x2b4d93,-_0x2e1996._0x58ed7,_0x2e1996._0x4cb6f0);}function getToolResultText(_0x1f4778){const _0x2a1afd={_0x1832f5:0x1a4,_0x31e0b5:0x16f,_0x2db0ab:0x12c,_0x8f0739:0x18d,_0x3da480:0xf8,_0x57ef02:0xb3,_0x45c401:0x673,_0x28e40d:0x20,_0x55c4aa:0x30},_0x5016d4={_0x55288e:0x278,_0x18ef39:0x1e6},_0x272e3e={_0x4f6509:0x18e,_0x1b6d31:0x1eb,_0x3dae85:0x366,_0x2af75f:0x2b8,_0x529d26:0x221},_0xd14a5c={_0x1399be:0x146,_0x142ec1:0x169,_0x46b271:0x281},_0x3d68b9={_0x33c5ce:0x14f,_0x55743f:0x85},_0x868268={_0x465dc2:0x1dc,_0x43b64b:0x2b5,_0x482400:0x193};if(typeof _0x1f4778==='string')return _0x1f4778;function _0x1a6a30(_0x4275a5,_0x2a5b50,_0x4d56c3,_0x121b78){return _0x3921cc(_0x4275a5-_0x868268._0x465dc2,_0x4275a5-_0x868268._0x43b64b,_0x2a5b50,_0x121b78-_0x868268._0x482400);}const _0x5d36e5=_0x1f4778[_0x2b8e3f(0x221,0x176,_0x2a1afd._0x1832f5,0x17f)](_0x200e31=>{function _0x952df2(_0x164af3,_0x3ea5bd,_0xde61eb,_0xcc47f4){return _0x2b8e3f(_0x164af3-_0x3d68b9._0x33c5ce,_0xcc47f4,_0xde61eb-_0x3d68b9._0x55743f,_0x3ea5bd-0x231);}function _0x42a0f2(_0x523c3b,_0x404d84,_0x16b099,_0x24a5d4){return _0x2b8e3f(_0x523c3b-_0xd14a5c._0x1399be,_0x16b099,_0x16b099-_0xd14a5c._0x142ec1,_0x523c3b- -_0xd14a5c._0x46b271);}return typeof _0x200e31===_0x42a0f2(-_0x272e3e._0x4f6509,-0x168,-0x1f0,-_0x272e3e._0x1b6d31)&&_0x200e31!==null&&_0x200e31[_0x952df2(_0x272e3e._0x3dae85,_0x272e3e._0x2af75f,_0x272e3e._0x529d26,0x2b0)]===_0x42a0f2(-0x118,-0x195,-0x1b7,-0x162);})[_0x2b8e3f(_0x2a1afd._0x31e0b5,_0x2a1afd._0x2db0ab,0x108,_0x2a1afd._0x8f0739)](_0x123a70=>_0x123a70[_0x1a6a30(0x696,0x71d,0x687,0x5e3)])[_0x2b8e3f(_0x2a1afd._0x3da480,0x62,_0x2a1afd._0x57ef02,0x66)]('\x0a\x0a')['trim']();function _0x2b8e3f(_0x797bbc,_0x50a569,_0x3d6b6a,_0x583a55){return _0x3921cc(_0x797bbc-0xc3,_0x583a55- -_0x5016d4._0x55288e,_0x50a569,_0x583a55-_0x5016d4._0x18ef39);}return _0x5d36e5[_0x1a6a30(_0x2a1afd._0x45c401,0x714,0x6aa,0x647)]>0x0?_0x5d36e5:_0x2b8e3f(-0x3e,-_0x2a1afd._0x28e40d,0x8e,_0x2a1afd._0x55c4aa);}function getToolResultImages(_0x248918){const _0x1f547c={_0x2757fc:0x11d},_0x512130={_0x2e76c2:0x134,_0x29007d:0x2f5,_0x4a36a3:0xfb};function _0x5837fd(_0x427c85,_0x202bc2,_0x4b4bb4,_0x32550a){return _0x3921cc(_0x427c85-_0x512130._0x2e76c2,_0x32550a- -_0x512130._0x29007d,_0x4b4bb4,_0x32550a-_0x512130._0x4a36a3);}return Array[_0x5837fd(0x144,_0x1f547c._0x2757fc,0x171,0xc5)](_0x248918)?_0x248918['filter'](isImageToolResultBlock):[];}function parseToolInput2(_0x537c56){const _0x4bdc2c={_0x1ef507:0x12c,_0x163b38:0x6d,_0x18f12e:0x11,_0x58f6e3:0xb,_0x454155:0x11,_0x59e526:0x173},_0x25ff92={_0x9c8a88:0xf,_0x4d675b:0xd1},_0x57e166={_0x3374f1:0x119,_0x2d6936:0x20};function _0x434468(_0x34fd0b,_0x59db69,_0x48ea7d,_0x255493){return _0x3921cc(_0x34fd0b-_0x57e166._0x3374f1,_0x59db69- -0x42b,_0x34fd0b,_0x255493-_0x57e166._0x2d6936);}if(_0x537c56[_0x434468(-_0x4bdc2c._0x1ef507,-_0x4bdc2c._0x163b38,_0x4bdc2c._0x18f12e,_0x4bdc2c._0x58f6e3)]===0x0)return{};function _0x250db2(_0x86b4f6,_0x80d7a9,_0x215890,_0x1cd052){return _0x4abdca(_0x86b4f6-_0x25ff92._0x9c8a88,_0x86b4f6-_0x25ff92._0x4d675b,_0x215890-0xcb,_0x80d7a9);}try{return JSON[_0x434468(-0xba,-0xb3,_0x4bdc2c._0x454155,-_0x4bdc2c._0x59e526)](_0x537c56);}catch{return _0x537c56;}}function isResponsesReasoningItem(_0x43812a){const _0x46812f={_0x96bd82:0x236,_0x17e408:0x1b9,_0x47e5cd:0x136,_0x1cfba2:0x233,_0x341ecb:0x19f,_0x26d1f5:0x106,_0x139720:0x182},_0x110b3f={_0x3f2263:0x39,_0x13b67f:0x300};function _0x2d85af(_0x1d471c,_0x4c8949,_0x3bcd2b,_0x18e210){return _0x4abdca(_0x1d471c-_0x110b3f._0x3f2263,_0x3bcd2b- -_0x110b3f._0x13b67f,_0x3bcd2b-0x8b,_0x4c8949);}function _0x56750b(_0x36502e,_0x4857ed,_0x2ccd29,_0x33e7f1){return _0x3921cc(_0x36502e-0x111,_0x4857ed-0x7f,_0x33e7f1,_0x33e7f1-0x73);}return typeof _0x43812a===_0x2d85af(0x2b0,_0x46812f._0x96bd82,0x20b,_0x46812f._0x17e408)&&_0x43812a!==null&&_0x2d85af(_0x46812f._0x47e5cd,_0x46812f._0x1cfba2,_0x46812f._0x341ecb,0x176)in _0x43812a&&_0x43812a[_0x2d85af(_0x46812f._0x26d1f5,0x235,0x19f,0x212)]===_0x2d85af(0x19f,0x12f,0x1d8,_0x46812f._0x139720);}function isResponsesMessageItem(_0x183d29){const _0x330903={_0x44e88e:0xd9,_0x2f6883:0xc7,_0xca6c83:0x189,_0x4be79e:0xb},_0x1cf52={_0x2869d5:0xac,_0x20a989:0x19f},_0x4fc81e={_0x2903e6:0x191};function _0x42b322(_0x2c93a6,_0x3b3378,_0x5f2849,_0x3965b4){return _0x3921cc(_0x2c93a6-0x66,_0x5f2849- -0x488,_0x2c93a6,_0x3965b4-_0x4fc81e._0x2903e6);}function _0x10f30d(_0x6ed999,_0x43acd7,_0x35e4ca,_0x1df786){return _0x3921cc(_0x6ed999-_0x1cf52._0x2869d5,_0x35e4ca- -0x2a4,_0x1df786,_0x1df786-_0x1cf52._0x20a989);}return typeof _0x183d29===_0x42b322(-0x6f,-_0x330903._0x44e88e,-0x11d,-0x10e)&&_0x183d29!==null&&_0x42b322(-_0x330903._0x2f6883,-0x134,-_0x330903._0xca6c83,-0x110)in _0x183d29&&_0x183d29['type']===_0x10f30d(0x95,-_0x330903._0x4be79e,0xa7,0x168);}function isResponsesFunctionCallItem(_0x299586){const _0x3a92d0={_0x5d05f3:0xe0,_0x5311ee:0xd4,_0x591c5c:0xe2,_0x5224a8:0x15c},_0x4349bf={_0x5d7745:0x1d2,_0x2fa2c1:0x21f};function _0x3083e2(_0x51c2f,_0x493449,_0xc96684,_0x8a30e){return _0x3921cc(_0x51c2f-_0x4349bf._0x5d7745,_0x493449- -_0x4349bf._0x2fa2c1,_0x51c2f,_0x8a30e-0x84);}function _0x569f5b(_0xa52b65,_0x2840b1,_0x215675,_0x2aaba7){return _0x3921cc(_0xa52b65-0x1db,_0x2840b1- -0x29e,_0x215675,_0x2aaba7-0x140);}return typeof _0x299586==='object'&&_0x299586!==null&&_0x3083e2(0x10e,_0x3a92d0._0x5d05f3,0x8e,0x186)in _0x299586&&_0x299586['type']===_0x569f5b(_0x3a92d0._0x5311ee,_0x3a92d0._0x591c5c,_0x3a92d0._0x5224a8,0x80);}function createContentBlocks(_0x109d65,_0x2fe169,_0x1c65bf){const _0x332207={_0x4fb1fb:0x368,_0x455830:0x371,_0x5863e0:0x319,_0x5cf219:0x37f,_0xd7450a:0x692,_0x576d19:0x648,_0x3c683b:0x3c0,_0x38c7aa:0x387,_0x2d03b7:0x465,_0x2aa97e:0x4d7,_0x18ae6d:0x3d7,_0x367bf3:0x443,_0x5c32d5:0x419,_0x4c24ca:0x466,_0x30f89c:0x4c8,_0x3034ef:0x442,_0x196ae1:0x499,_0x47b462:0x447,_0xc28caf:0x48b,_0x2b6927:0x454,_0x5d73f2:0x464,_0x29ce4d:0x550,_0x259915:0x676,_0x59d151:0x674,_0x122c4d:0x611,_0x13b437:0x67b,_0x44891e:0x5ee,_0x2480b6:0x610,_0x4e98a7:0x6a1,_0x5914a7:0x706,_0x27beab:0x659,_0x4a6155:0x62b,_0x18a41f:0x695,_0x401f34:0x3e1},_0x2ea3f3={_0x484218:0xe5,_0x2e86ee:0x84,_0x2791f2:0xad},_0x4ec862={_0x5be544:0x1e},_0x56aa56=[];_0x1c65bf&&_0x1c65bf['length']>0x0&&_0x56aa56[_0x4127b6(_0x332207._0x4fb1fb,_0x332207._0x455830,_0x332207._0x5863e0,_0x332207._0x5cf219)]({'type':_0x402f7b(_0x332207._0xd7450a,0x619,0x63f,_0x332207._0x576d19),'summary':[],'text':_0x1c65bf});function _0x402f7b(_0x577e78,_0x3684aa,_0x4d3a2e,_0x1646ec){return _0x4abdca(_0x577e78-0xcd,_0x4d3a2e-0xb2,_0x4d3a2e-_0x4ec862._0x5be544,_0x1646ec);}_0x109d65[_0x4127b6(0x442,0x3da,_0x332207._0x3c683b,_0x332207._0x38c7aa)]>0x0&&_0x56aa56['push']({'type':_0x4127b6(_0x332207._0x2d03b7,_0x332207._0x2aa97e,0x4a2,_0x332207._0x18ae6d),'text':_0x109d65});for(const _0x41f6ae of _0x2fe169){if(_0x41f6ae['id'][_0x4127b6(_0x332207._0x367bf3,_0x332207._0x5c32d5,_0x332207._0x4c24ca,_0x332207._0x30f89c)]()[_0x4127b6(_0x332207._0x3034ef,_0x332207._0x196ae1,_0x332207._0x47b462,0x466)]===0x0||_0x41f6ae[_0x4127b6(_0x332207._0xc28caf,_0x332207._0x2b6927,_0x332207._0x5d73f2,_0x332207._0x29ce4d)][_0x402f7b(0x6ae,0x65b,0x65b,0x65b)][_0x402f7b(_0x332207._0x259915,_0x332207._0x59d151,_0x332207._0x122c4d,_0x332207._0x13b437)]()[_0x402f7b(_0x332207._0x44891e,0x6a7,_0x332207._0x2480b6,_0x332207._0x4e98a7)]===0x0)continue;_0x56aa56['push']({'type':'tool_use','id':_0x41f6ae['id'],'name':_0x41f6ae[_0x402f7b(_0x332207._0x5914a7,0x68c,_0x332207._0x27beab,0x715)][_0x402f7b(_0x332207._0x4a6155,_0x332207._0x18a41f,0x65b,0x6b3)],'input':parseToolInput2(_0x41f6ae[_0x4127b6(_0x332207._0xc28caf,_0x332207._0x401f34,0x50c,0x539)]['arguments'])});}function _0x4127b6(_0x15d4e5,_0x4bab05,_0x45e467,_0x3d092e){return _0x3921cc(_0x15d4e5-_0x2ea3f3._0x484218,_0x15d4e5-_0x2ea3f3._0x2e86ee,_0x4bab05,_0x3d092e-_0x2ea3f3._0x2791f2);}return _0x56aa56;}function createUsage(_0x20e6b4){const _0x2656da={_0xef6974:0x5d5,_0x22fff4:0x5ec,_0x12adce:0x6e8,_0xa096b1:0x624,_0x55b0a0:0x666,_0x2765f7:0x60f,_0x2f016a:0x64c,_0x1758d6:0x656},_0x367350={_0x123174:0x65,_0x268b39:0x126,_0x20f002:0x1e},_0x504c69={_0x1a7cb2:0x1f0};function _0x246aca(_0x1da99c,_0x45cf0c,_0x47277c,_0x2790b7){return _0x3921cc(_0x1da99c-_0x504c69._0x1a7cb2,_0x45cf0c-0x27f,_0x47277c,_0x2790b7-0xfc);}function _0x3ec332(_0x31cc6f,_0x2541ef,_0x18a712,_0x5bf800){return _0x4abdca(_0x31cc6f-_0x367350._0x123174,_0x5bf800-_0x367350._0x268b39,_0x18a712-_0x367350._0x20f002,_0x31cc6f);}return{'inputTokens':_0x20e6b4?.['prompt_tokens']??0x0,'outputTokens':_0x20e6b4?.[_0x246aca(_0x2656da._0xef6974,0x5bb,0x572,_0x2656da._0x22fff4)]??0x0,..._0x20e6b4?.[_0x3ec332(0x653,_0x2656da._0x12adce,_0x2656da._0xa096b1,_0x2656da._0x55b0a0)]?.[_0x3ec332(0x49b,_0x2656da._0x2765f7,0x5d8,0x55c)]!==void 0x0?{'reasoningTokens':_0x20e6b4[_0x246aca(_0x2656da._0x2f016a,0x61f,_0x2656da._0x1758d6,0x643)]['reasoning_tokens']}:{}};}function resolveReasoningVisibility2(_0x352ec2){const _0x9c8ffe={_0x3632b9:0x11a,_0x2efe23:0x1cd,_0x4b7003:0x2fa,_0x282143:0x455,_0x6d3e99:0x489,_0x1cef25:0x4cd},_0x3d8961={_0xfe6468:0x28,_0x1811a7:0xe5},_0x425b5e={_0x4b94d8:0x30b};function _0x1c41aa(_0x4c1ead,_0x18c9bc,_0x5bc14f,_0x3f6ce3){return _0x4abdca(_0x4c1ead-0x162,_0x5bc14f- -_0x425b5e._0x4b94d8,_0x5bc14f-0x98,_0x18c9bc);}function _0xe285e4(_0x27bfe5,_0x4fd847,_0x23d6e8,_0x2d08ce){return _0x4abdca(_0x27bfe5-_0x3d8961._0xfe6468,_0x4fd847- -0x4c,_0x23d6e8-_0x3d8961._0x1811a7,_0x27bfe5);}return _0x352ec2[_0x1c41aa(_0x9c8ffe._0x3632b9,0x17a,_0x9c8ffe._0x2efe23,0x255)]?.[_0x1c41aa(_0x9c8ffe._0x4b7003,0x1ff,0x284,0x1fa)]??_0xe285e4(_0x9c8ffe._0x282143,_0x9c8ffe._0x6d3e99,0x545,_0x9c8ffe._0x1cef25);}function isUserVisibleReasoning(_0x4d932c){const _0x1694e0={_0x2f9bec:0x504},_0x3038db={_0x12f76f:0xac,_0x2bc130:0x2f,_0x34888c:0xfb};function _0xb041bb(_0xbdadf1,_0xd3a8ff,_0x4d1ef2,_0x5f3238){return _0x4abdca(_0xbdadf1-_0x3038db._0x12f76f,_0xbdadf1-_0x3038db._0x2bc130,_0x4d1ef2-_0x3038db._0x34888c,_0xd3a8ff);}return resolveOpenAiReasoningConfig(_0x4d932c['reasoning'])!==void 0x0&&resolveReasoningVisibility2(_0x4d932c)===_0xb041bb(_0x1694e0._0x2f9bec,0x57c,0x479,0x472);}function createChatRequestBody(_0x133a0e,_0x1fdce4){const _0x4e83e8={_0x2821aa:0x465,_0x3fa25f:0x46d,_0x17183c:0x492,_0x2e656d:0x4d2,_0x245374:0x392,_0x538e92:0x4a3,_0x181617:0x415,_0x118e96:0x406,_0x1e5fcf:0x262,_0x363114:0x2bc,_0x466de1:0x249,_0x1501c8:0x3f3,_0x11f4ca:0x4d3,_0x38e0a8:0x4a6,_0x16f989:0x4e2,_0x13bf06:0x3b6,_0x419666:0x41a,_0x22963a:0x391,_0x4a4777:0x2f1,_0x4cad91:0x5bc,_0x4d97be:0x468,_0x5a52be:0x586,_0x33a352:0x290,_0x1117bf:0x34e,_0x3e78e2:0x353,_0x1b12c3:0x437,_0x2eec94:0x3b1,_0x3ca71d:0x49d,_0x230a0d:0x470,_0x4cdc33:0x485,_0x2036b2:0x424,_0x5decff:0x46a,_0x2c48b4:0x40c,_0x5448da:0x3e5,_0xa025f5:0x39d,_0x504960:0x253,_0x4384b2:0x25d,_0x1aa672:0x302,_0x3885a6:0x497,_0x3d571e:0x3a5,_0x12bb3e:0x329,_0x589136:0x396,_0x2fd1c2:0x323,_0x1d3c80:0x45a,_0x5a36b4:0x41a,_0x5bf260:0x3cd,_0x29dc81:0x4ce,_0x1c6d8b:0x36a,_0x4bcd52:0x1bb,_0x47a415:0x2ee,_0x2c85f1:0x392,_0x44f6ff:0x39f,_0x3998bf:0x392,_0x265e13:0x343},_0x25827f={_0x4f242f:0x570,_0x544609:0x632,_0x1a7314:0x31d,_0x5a85e0:0x6dd,_0x2d4a1a:0x654,_0x580188:0x66e,_0x50c369:0x514,_0x11d95f:0x51b,_0x359b2e:0x4b5,_0x3bbe40:0x460,_0xc7baf8:0x539,_0x352f47:0x619,_0x42602f:0x3e6,_0x40454a:0x378,_0x487090:0x31b,_0x439f49:0x3e4,_0x3ccaf0:0x66f,_0x2ebe88:0x62d,_0x100899:0x6d6,_0x51854e:0x5b8,_0x235855:0x5cc},_0x1a7f7b={_0x4f7761:0x1ea,_0x37bf2c:0x1bb},_0x1059ee={_0x4cb5af:0x72,_0x348c1b:0x20f,_0x427a8d:0x13},_0x128240={_0x4c0157:0xcc,_0x10b8aa:0x61},_0x1c4988=[];function _0x23654c(_0x373176,_0x55fa6a,_0x47564e,_0xa7eed6){return _0x3921cc(_0x373176-_0x128240._0x4c0157,_0x373176-0x101,_0x47564e,_0xa7eed6-_0x128240._0x10b8aa);}const _0xd67514=stringifySystem(_0x133a0e[_0x23654c(_0x4e83e8._0x2821aa,_0x4e83e8._0x3fa25f,_0x4e83e8._0x17183c,_0x4e83e8._0x2e656d)]);_0xd67514[_0x8fbc4d(0x34f,_0x4e83e8._0x245374,0x38d,0x372)]>0x0&&_0x1c4988[_0x23654c(0x3e5,0x497,_0x4e83e8._0x538e92,0x35d)]({'role':_0x23654c(0x465,0x4cf,_0x4e83e8._0x181617,_0x4e83e8._0x118e96),'content':_0xd67514});function _0x8fbc4d(_0x5a63cc,_0x3207b6,_0x12fba1,_0x5bd2f0){return _0x4abdca(_0x5a63cc-_0x1059ee._0x4cb5af,_0x5a63cc- -_0x1059ee._0x348c1b,_0x12fba1-_0x1059ee._0x427a8d,_0x12fba1);}for(const _0x576171 of _0x133a0e[_0x8fbc4d(0x278,_0x4e83e8._0x1e5fcf,_0x4e83e8._0x363114,_0x4e83e8._0x466de1)]){const _0x9f67ec=[],_0x227216=[],_0xa19a06=()=>{const _0x2693c4={_0x36487b:0xf2};function _0x28e949(_0x10dede,_0x247161,_0x57f0af,_0x53ded3){return _0x8fbc4d(_0x247161-0x2ca,_0x247161-0x1c4,_0x53ded3,_0x53ded3-_0x2693c4._0x36487b);}function _0x657686(_0x43ed30,_0x142c1c,_0x8d89cf,_0x22a62d){return _0x8fbc4d(_0x142c1c-0xb7,_0x142c1c-_0x1a7f7b._0x4f7761,_0x22a62d,_0x22a62d-_0x1a7f7b._0x37bf2c);}if(_0x576171[_0x28e949(0x642,0x62d,_0x25827f._0x4f242f,_0x25827f._0x544609)]===_0x657686(0x349,0x2f5,0x336,_0x25827f._0x1a7314)){if(_0x9f67ec[_0x28e949(_0x25827f._0x5a85e0,0x619,0x5aa,0x64e)]===0x0&&_0x227216[_0x28e949(_0x25827f._0x2d4a1a,0x619,0x5eb,_0x25827f._0x580188)]===0x0)return;_0x1c4988[_0x28e949(0x530,0x53f,_0x25827f._0x50c369,0x4fd)]({'role':_0x28e949(_0x25827f._0x11d95f,0x508,_0x25827f._0x359b2e,_0x25827f._0x3bbe40),'content':_0x9f67ec['length']>0x0?_0x9f67ec[_0x28e949(0x4f4,_0x25827f._0xc7baf8,0x560,0x556)]('\x0a\x0a'):null,..._0x227216[_0x28e949(0x5e1,0x619,0x55a,0x667)]>0x0?{'tool_calls':_0x227216['splice'](0x0)}:{}}),_0x9f67ec[_0x28e949(0x572,_0x25827f._0x352f47,0x6c6,0x5a6)]=0x0;return;}if(_0x9f67ec[_0x657686(_0x25827f._0x42602f,0x406,_0x25827f._0x40454a,0x45b)]===0x0)return;_0x1c4988[_0x657686(_0x25827f._0x487090,0x32c,0x34c,_0x25827f._0x439f49)]({'role':_0x576171[_0x28e949(_0x25827f._0x3ccaf0,_0x25827f._0x2ebe88,_0x25827f._0x100899,0x6b4)],'content':_0x9f67ec[_0x28e949(_0x25827f._0x51854e,0x539,0x484,0x5b0)]('\x0a\x0a')}),_0x9f67ec[_0x28e949(_0x25827f._0x235855,0x619,0x56d,0x576)]=0x0;};for(const _0x42ac7d of normalizeContent(_0x576171[_0x23654c(0x424,_0x4e83e8._0x1501c8,_0x4e83e8._0x11f4ca,_0x4e83e8._0x38e0a8)])){if(_0x42ac7d['type']===_0x23654c(_0x4e83e8._0x16f989,0x4ce,0x45d,0x424)){_0x9f67ec[_0x23654c(0x3e5,_0x4e83e8._0x13bf06,_0x4e83e8._0x419666,0x348)](_0x42ac7d['text']);continue;}if(_0x42ac7d['type']==='tool_use'){_0x227216[_0x8fbc4d(0x275,0x32b,0x1c5,0x1d5)]({'id':_0x42ac7d['id'],'type':'function','function':{'name':_0x42ac7d[_0x8fbc4d(0x39a,0x309,_0x4e83e8._0x22963a,_0x4e83e8._0x4a4777)],'arguments':JSON[_0x23654c(0x504,_0x4e83e8._0x4cad91,_0x4e83e8._0x4d97be,_0x4e83e8._0x5a52be)](_0x42ac7d['input']??{})}});continue;}if(_0x42ac7d[_0x8fbc4d(_0x4e83e8._0x33a352,_0x4e83e8._0x1117bf,0x1fa,_0x4e83e8._0x3e78e2)]!==_0x23654c(0x48b,0x428,_0x4e83e8._0x1b12c3,0x510))continue;_0xa19a06(),_0x1c4988['push']({'role':_0x23654c(0x3c8,0x3a8,0x44d,_0x4e83e8._0x2eec94),'content':getToolResultText(_0x42ac7d[_0x23654c(0x424,0x3e6,_0x4e83e8._0x3ca71d,0x4c9)]),'tool_call_id':_0x42ac7d[_0x23654c(_0x4e83e8._0x230a0d,0x432,0x4ed,_0x4e83e8._0x4cdc33)]});const _0xb097c3=getToolResultImages(_0x42ac7d[_0x23654c(_0x4e83e8._0x2036b2,_0x4e83e8._0x5decff,0x421,_0x4e83e8._0x2c48b4)]);_0xb097c3['length']>0x0&&_0x1c4988[_0x23654c(_0x4e83e8._0x5448da,0x450,0x364,_0x4e83e8._0xa025f5)]({'role':_0x8fbc4d(_0x4e83e8._0x504960,0x2ae,_0x4e83e8._0x4384b2,_0x4e83e8._0x1aa672),'content':[{'type':_0x23654c(0x4e2,_0x4e83e8._0x3885a6,0x480,0x489),'text':'Image\x20returned\x20by\x20ViewFile\x20for\x20tool\x20result\x20'+_0x42ac7d[_0x8fbc4d(0x300,0x39c,_0x4e83e8._0x3d571e,_0x4e83e8._0x12bb3e)]+'.'},..._0xb097c3[_0x8fbc4d(_0x4e83e8._0x589136,0x305,_0x4e83e8._0x2fd1c2,_0x4e83e8._0x1d3c80)](_0x52f7f6=>({'type':_0x8fbc4d(0x362,0x355,0x373,0x2fb),'image_url':{'url':'data:'+_0x52f7f6[_0x23654c(0x44d,0x487,0x3a6,0x490)][_0x8fbc4d(0x267,0x2c6,0x250,0x307)]+_0x23654c(0x3dd,0x3ec,0x486,0x33a)+_0x52f7f6['source'][_0x8fbc4d(0x379,0x406,0x3c9,0x395)]}}))]});}_0xa19a06();}const _0x3990db=resolveOpenAiReasoningConfig(_0x133a0e['reasoning']);return{'model':_0x133a0e[_0x23654c(0x48f,0x3ea,_0x4e83e8._0x5a36b4,_0x4e83e8._0x5bf260)],'messages':_0x1c4988,'stream':_0x1fdce4,..._0x3990db?{'max_completion_tokens':_0x133a0e[_0x23654c(0x41f,_0x4e83e8._0x29dc81,0x3e8,0x49b)]}:{'max_tokens':_0x133a0e[_0x8fbc4d(0x2af,0x34a,0x344,_0x4e83e8._0x1c6d8b)]},..._0x3990db?.[_0x8fbc4d(0x259,0x319,_0x4e83e8._0x4bcd52,_0x4e83e8._0x47a415)]?{'reasoning_effort':_0x3990db[_0x23654c(0x3c9,0x33f,0x476,0x472)]}:{},...createToolDefinitions(_0x133a0e[_0x8fbc4d(_0x4e83e8._0x2c85f1,0x32f,0x39c,_0x4e83e8._0x44f6ff)])?{'tools':createToolDefinitions(_0x133a0e[_0x8fbc4d(_0x4e83e8._0x3998bf,0x300,_0x4e83e8._0x265e13,0x3f5)])}:{}};}function _0x3921cc(_0x4daf11,_0x176d05,_0x280cf0,_0x22c8e5){const _0x37cec9={_0x1fe1d1:0x111};return _0x6b39(_0x176d05-_0x37cec9._0x1fe1d1,_0x280cf0);}function createResponsesRequestBody(_0x458020,_0x913bbc){return{...toOpenAiResponsesRequest(_0x458020),..._0x913bbc?{'stream':!![]}:{},'store':![]};}function createOpenAiResponsesWebSocketEvent(_0x39b619,_0x2536c2={}){const _0x35e629={_0x4618e0:0x447,_0x24a361:0x458,_0x2ff7b0:0x380,_0x482078:0x4b6,_0x1eff47:0x45b,_0x25a0b9:0x18a,_0x46ebab:0x14d},_0x1f53b2={_0x18fb60:0xde},_0x222ab6={_0x240a17:0xeb,_0x2c501e:0xb7,_0x1aa634:0x1b8},_0xcad0f2=toOpenAiResponsesRequest(_0x39b619);function _0x414ba8(_0x33ee7a,_0x45127d,_0x2c963c,_0x10b2ad){return _0x4abdca(_0x33ee7a-_0x222ab6._0x240a17,_0x45127d- -_0x222ab6._0x2c501e,_0x2c963c-_0x222ab6._0x1aa634,_0x10b2ad);}function _0x52b0b6(_0x59a809,_0x354d54,_0x453acc,_0x4cfcfa){return _0x4abdca(_0x59a809-0x3e,_0x4cfcfa- -0x40f,_0x453acc-_0x1f53b2._0x18fb60,_0x59a809);}return{'type':_0x414ba8(0x4f5,0x4be,_0x35e629._0x4618e0,_0x35e629._0x24a361),..._0xcad0f2,..._0x2536c2['input']?{'input':_0x2536c2[_0x414ba8(_0x35e629._0x2ff7b0,0x3bb,0x365,0x41d)]}:{},..._0x2536c2[_0x414ba8(_0x35e629._0x482078,_0x35e629._0x1eff47,0x519,0x452)]?{'previous_response_id':_0x2536c2[_0x52b0b6(_0x35e629._0x25a0b9,0x177,_0x35e629._0x46ebab,0x103)]}:{},'store':![]};}function normalizeAssistantContent(_0x5a0443){const _0x317be8={_0x284c55:0x375,_0x42520d:0x28a,_0x18bdef:0x261,_0x5abec0:0x28e,_0xabd1cd:0x17b,_0x5915b3:0x1f8},_0x2129c1={_0x1696f7:0x181,_0xc3c304:0x19c,_0x1ea84c:0x463,_0x395dc8:0x504,_0x2e3fee:0x498,_0x4d940c:0x427,_0x58812e:0x4e7,_0x167c0f:0x4a8,_0x4211c2:0x498,_0x117b52:0x1bd,_0x237029:0x136,_0x2be828:0x12f},_0x51d845={_0x33f0a7:0x13b,_0x3ca55e:0x47,_0x584e1d:0x32e},_0x271cb3={_0x70d7d9:0x36b,_0x3d81c0:0x1b1},_0xe508d5={_0x4d6b70:0xb8,_0x285042:0x157},_0x2e481a={_0x4665b6:0x1ef};function _0x43e2de(_0x3f0be0,_0xeacb6b,_0x2f51f0,_0x304525){return _0x4abdca(_0x3f0be0-0x1b1,_0x304525- -0x417,_0x2f51f0-_0x2e481a._0x4665b6,_0xeacb6b);}if(typeof _0x5a0443===_0x45679e(0x2c0,0x2d8,_0x317be8._0x284c55,0x345))return _0x5a0443;if(!Array[_0x45679e(_0x317be8._0x42520d,0x327,_0x317be8._0x18bdef,_0x317be8._0x5abec0)](_0x5a0443))return'';function _0x45679e(_0x36fd6b,_0x5725b8,_0x57cae8,_0x353a1d){return _0x3921cc(_0x36fd6b-_0xe508d5._0x4d6b70,_0x36fd6b- -0x130,_0x5725b8,_0x353a1d-_0xe508d5._0x285042);}return _0x5a0443[_0x43e2de(_0x317be8._0xabd1cd,0x11a,_0x317be8._0x5915b3,0x18e)](_0xdf97b1=>{function _0x3c84b0(_0x33b74f,_0x152ff1,_0x2bb163,_0x99ec8a){return _0x45679e(_0x152ff1- -_0x271cb3._0x70d7d9,_0x2bb163,_0x2bb163-_0x271cb3._0x3d81c0,_0x99ec8a-0x1ef);}function _0xccd07d(_0x345384,_0x419be6,_0x2ae6fa,_0x450752){return _0x43e2de(_0x345384-_0x51d845._0x33f0a7,_0x345384,_0x2ae6fa-_0x51d845._0x3ca55e,_0x2ae6fa-_0x51d845._0x584e1d);}return _0xdf97b1[_0x3c84b0(-_0x2129c1._0x1696f7,-_0x2129c1._0xc3c304,-0xe3,-0x20c)]===_0xccd07d(_0x2129c1._0x1ea84c,_0x2129c1._0x395dc8,_0x2129c1._0x2e3fee,_0x2129c1._0x4d940c)?_0xdf97b1[_0xccd07d(_0x2129c1._0x58812e,_0x2129c1._0x167c0f,_0x2129c1._0x4211c2,0x4fd)]:_0xdf97b1[_0x3c84b0(-_0x2129c1._0x117b52,-_0x2129c1._0x237029,-0x119,-_0x2129c1._0x2be828)];})['join']('');}function normalizeResponsesMessageContent(_0x2ced84){const _0x5191b7={_0x51f392:0xdc,_0x425d96:0xa0,_0x4e1356:0x36b},_0x544eb3={_0x409195:0x494,_0x26fcdc:0x554,_0x4c9f8f:0x57f,_0x29d50d:0x483,_0x4b39e1:0x3bf,_0x3b266b:0x32b,_0x4e927b:0x438,_0x150f81:0x45a,_0x36d2e1:0x400,_0x520633:0x203,_0x473659:0x536,_0x10226f:0x49e,_0x43e9b8:0x296,_0x5ee794:0x485,_0x250ab4:0x521},_0x2dccc3={_0x400891:0x17b},_0x591069={_0x20e8f3:0xb6},_0xd653a={_0x558515:0x2db,_0x5e2561:0x1bf};function _0x35dc72(_0x379530,_0x4abc32,_0x1a4b29,_0x526e4e){return _0x4abdca(_0x379530-0x17e,_0x379530- -_0xd653a._0x558515,_0x1a4b29-_0xd653a._0x5e2561,_0x1a4b29);}function _0x336085(_0x5e3fc9,_0x5b80c5,_0x43b7d8,_0xb75219){return _0x4abdca(_0x5e3fc9-_0x591069._0x20e8f3,_0x43b7d8- -0x57e,_0x43b7d8-0x1d2,_0x5b80c5);}if(!Array[_0x336085(-_0x5191b7._0x51f392,-0x35,-0x24,_0x5191b7._0x425d96)](_0x2ced84))return'';return _0x2ced84[_0x35dc72(0x2ca,0x2c9,0x2a7,_0x5191b7._0x4e1356)](_0x240298=>{const _0x554f71={_0x2c987d:0x1f4};if(!_0x240298||typeof _0x240298!=='object')return'';function _0x431c79(_0x1215e9,_0x319612,_0x419342,_0x2a853b){return _0x336085(_0x1215e9-0x184,_0x2a853b,_0x319612-0x517,_0x2a853b-_0x554f71._0x2c987d);}const _0x3c28d3=_0x240298;function _0x482cc7(_0x4bcd8d,_0x340871,_0x43b4d6,_0x72bc61){return _0x35dc72(_0x72bc61-0x76,_0x340871-_0x2dccc3._0x400891,_0x4bcd8d,_0x72bc61-0x158);}if(_0x3c28d3[_0x482cc7(0x1e9,0x218,0x2f1,0x23a)]===_0x431c79(0x4ab,0x4d4,0x529,_0x544eb3._0x409195)&&typeof _0x3c28d3[_0x431c79(_0x544eb3._0x26fcdc,0x51a,_0x544eb3._0x4c9f8f,_0x544eb3._0x29d50d)]===_0x482cc7(_0x544eb3._0x4b39e1,0x373,0x2cf,_0x544eb3._0x3b266b))return _0x3c28d3['text'];if(_0x3c28d3[_0x431c79(0x4e8,_0x544eb3._0x4e927b,_0x544eb3._0x150f81,_0x544eb3._0x36d2e1)]===_0x482cc7(_0x544eb3._0x520633,0x253,0x270,0x2a0)&&typeof _0x3c28d3[_0x431c79(_0x544eb3._0x473659,_0x544eb3._0x10226f,0x518,0x4c2)]===_0x482cc7(_0x544eb3._0x43e9b8,0x2a9,0x3d3,_0x544eb3._0x3b266b))return _0x3c28d3[_0x431c79(_0x544eb3._0x5ee794,_0x544eb3._0x10226f,0x3e8,_0x544eb3._0x250ab4)];return'';})[_0x35dc72(0x1a3,0xdd,0x158,0x1c5)]('');}function extractOpenAiReasoningText(_0x1637b5){const _0x24c876={_0x53c0ef:0x37f,_0xc3496e:0x399,_0x19c9f3:0x3e2,_0x256eb8:0x376,_0x5bd1e5:0x3d3,_0x56b28f:0x3ed,_0x28c788:0x81,_0x52038f:0x96,_0x4343c7:0x31,_0x4a4c4d:0x15,_0xb4e9bc:0x92,_0x3b872b:0x3b,_0x2dfcde:0xcd,_0xb6eaf1:0x13a,_0x153766:0x106,_0x7ad70c:0x4a,_0x2e7a05:0x5a,_0xcdf8f7:0x55},_0x312f77={_0x39767f:0x43,_0x1d1770:0x338,_0xd65284:0xd4},_0x27f958={_0x95e2c4:0xe,_0x3d79e2:0x60};function _0x2fd95a(_0x421f16,_0xa97f04,_0x302985,_0xfa4319){return _0x3921cc(_0x421f16-0xc9,_0x421f16- -_0x27f958._0x95e2c4,_0x302985,_0xfa4319-_0x27f958._0x3d79e2);}if(typeof _0x1637b5[_0x2fd95a(0x3d3,_0x24c876._0x53c0ef,_0x24c876._0xc3496e,0x31c)]===_0x2fd95a(_0x24c876._0x19c9f3,0x3e7,0x481,_0x24c876._0x256eb8))return _0x1637b5[_0x2fd95a(_0x24c876._0x5bd1e5,0x32d,_0x24c876._0x56b28f,0x484)];if(!Array[_0x50d72d(_0x24c876._0x28c788,0x82,_0x24c876._0x52038f,-_0x24c876._0x4343c7)](_0x1637b5['content']))return'';function _0x50d72d(_0x1a7896,_0x1d99fb,_0x40747d,_0x28782f){return _0x3921cc(_0x1a7896-_0x312f77._0x39767f,_0x1d99fb- -_0x312f77._0x1d1770,_0x1a7896,_0x28782f-_0x312f77._0xd65284);}return _0x1637b5[_0x50d72d(-0x6e,-_0x24c876._0x4a4c4d,-_0x24c876._0xb4e9bc,_0x24c876._0x3b872b)]['filter'](_0x5278a5=>_0x5278a5['type']===_0x2fd95a(0x282,0x32c,0x300,0x2c4)&&typeof _0x5278a5[_0x2fd95a(0x3d3,0x40f,0x480,0x469)]===_0x50d72d(0x7f,0xb8,0xf1,0xbc))[_0x50d72d(0x91,_0x24c876._0x2dfcde,_0x24c876._0xb6eaf1,_0x24c876._0x153766)](_0x296124=>_0x296124[_0x2fd95a(0x3d3,0x35a,0x3ac,0x3a8)]??'')[_0x50d72d(-_0x24c876._0x7ad70c,-_0x24c876._0x2e7a05,-_0x24c876._0xcdf8f7,0x8)]('');}function createOpenAiReasoningBlock(_0x14990c){const _0x485f77={_0x224f8c:0x3bb,_0x411064:0x456,_0x376aa9:0x11c},_0x5d7530={_0x36e5e7:0x3,_0x409c80:0x498},_0x432730={_0x4d73a8:0x38};function _0x185bac(_0x1ccc5f,_0x117c37,_0x1cc80e,_0xdd8579){return _0x4abdca(_0x1ccc5f-0x13d,_0x1cc80e- -0x1d2,_0x1cc80e-_0x432730._0x4d73a8,_0x117c37);}function _0x5bff02(_0x61887e,_0x6b2745,_0x3cd839,_0x41cb08){return _0x3921cc(_0x61887e-_0x5d7530._0x36e5e7,_0x41cb08- -_0x5d7530._0x409c80,_0x6b2745,_0x41cb08-0x1aa);}const _0x4485ac=extractOpenAiReasoningText(_0x14990c);return{'type':_0x185bac(0x33c,0x43b,_0x485f77._0x224f8c,_0x485f77._0x411064),'summary':structuredClone(_0x14990c[_0x5bff02(-0x1e1,-0xf8,-_0x485f77._0x376aa9,-0x1a1)]??[]),..._0x14990c['id']?{'id':_0x14990c['id']}:{},..._0x14990c['encrypted_content']?{'encryptedContent':_0x14990c['encrypted_content']}:{},..._0x4485ac['length']>0x0?{'text':_0x4485ac}:{}};}function hasVisibleOpenAiReasoning(_0x5d984a){const _0x7d75fc={_0x3faa73:0x148,_0xe053c3:0x1b9,_0x1523b3:0x1ce,_0x526a40:0x12f,_0x3800d5:0xb1,_0xbf852d:0xdb,_0x6f4f8c:0xe4,_0x3f3dd3:0x176,_0x3877ee:0xd5},_0x27063e={_0xf49ccf:0x5d,_0x261f23:0x17e};function _0x552873(_0x21d458,_0x4c51b0,_0x2ba73b,_0x30bae3){return _0x4abdca(_0x21d458-_0x27063e._0xf49ccf,_0x30bae3- -0x665,_0x2ba73b-_0x27063e._0x261f23,_0x21d458);}function _0x160783(_0x2339a5,_0x1353b1,_0x13befd,_0x575686){return _0x3921cc(_0x2339a5-0x143,_0x2339a5- -0x4dd,_0x13befd,_0x575686-0x14c);}return _0x5d984a[_0x552873(-_0x7d75fc._0x3faa73,-0x21d,-_0x7d75fc._0xe053c3,-_0x7d75fc._0x1523b3)]['length']>0x0||typeof _0x5d984a[_0x552873(-_0x7d75fc._0x526a40,-_0x7d75fc._0x3800d5,-_0x7d75fc._0xbf852d,-_0x7d75fc._0x6f4f8c)]===_0x552873(-0x193,-0xb9,-_0x7d75fc._0x3f3dd3,-_0x7d75fc._0x3877ee);}function parseChatCompletionResponse(_0x424e1e){const _0x34b7e7={_0x335c2a:0x148,_0x5553b7:0x298,_0x249ca5:0x1f2,_0x410dfd:0x77,_0x424f36:0x97,_0xc76064:0x150,_0x53b633:0x271,_0x47ab0e:0x252,_0x36e108:0x28a,_0xf441e7:0x11c,_0x3177ba:0x12e,_0x2626f9:0xa6,_0x1dbfe9:0x21,_0x25a559:0x8f,_0x60d7e4:0x127,_0x6f4f36:0x1e6,_0x3c90f6:0x67,_0x259838:0x83,_0xdec760:0x27,_0x23b826:0x72,_0x1f0555:0x21e,_0x3a433d:0x2cb,_0x121d97:0x47,_0x57452:0xeb,_0x4acf54:0x2b,_0x47cab3:0xb7,_0x24fed0:0xc9,_0x56f9e0:0x10b},_0x417521={_0x167ea6:0x21d,_0x5c8f21:0x69},_0x3456da={_0x297b1c:0x1dd,_0x52e525:0x437,_0x53cb34:0x1e1};function _0xa5448c(_0x1b8ce7,_0x3951b0,_0x416dc7,_0x2d5d38){return _0x4abdca(_0x1b8ce7-_0x3456da._0x297b1c,_0x3951b0- -_0x3456da._0x52e525,_0x416dc7-_0x3456da._0x53cb34,_0x2d5d38);}function _0x183b98(_0x53fd61,_0x4f0354,_0x2335e3,_0x3a8914){return _0x4abdca(_0x53fd61-0x133,_0x3a8914- -_0x417521._0x167ea6,_0x2335e3-_0x417521._0x5c8f21,_0x2335e3);}const _0x349638=[],_0x2b0874=[];let _0x3e0913='end_turn';for(const _0x31509b of _0x424e1e[_0xa5448c(0xa5,0xc4,0x15d,0x131)]??[]){const _0x25914f=_0x31509b['message'],_0x34b19b=normalizeAssistantContent(_0x25914f?.['content']);_0x34b19b[_0xa5448c(_0x34b7e7._0x335c2a,0x127,0x14a,0x192)]>0x0&&_0x349638[_0x183b98(0x27b,_0x34b7e7._0x5553b7,_0x34b7e7._0x249ca5,0x267)](_0x34b19b),_0x25914f?.[_0xa5448c(0x134,0x97,0x1c,0x9d)]&&_0x2b0874[_0x183b98(0x2e1,0x27d,0x220,0x267)](..._0x25914f[_0xa5448c(_0x34b7e7._0x410dfd,_0x34b7e7._0x424f36,_0x34b7e7._0xc76064,0x24)]),_0x31509b[_0x183b98(_0x34b7e7._0x53b633,0x212,_0x34b7e7._0x47ab0e,_0x34b7e7._0x36e108)]===_0xa5448c(_0x34b7e7._0xf441e7,0x97,_0x34b7e7._0x3177ba,0x65)&&(_0x3e0913=_0xa5448c(_0x34b7e7._0x2626f9,0x83,0x5,-_0x34b7e7._0x1dbfe9));}return _0x2b0874[_0xa5448c(_0x34b7e7._0x25a559,_0x34b7e7._0x60d7e4,_0x34b7e7._0x6f4f36,0x6e)]>0x0&&(_0x3e0913=_0xa5448c(_0x34b7e7._0x3c90f6,_0x34b7e7._0x259838,_0x34b7e7._0xdec760,0x10d)),{'id':_0x424e1e['id']??_0xa5448c(-0x3f,-0xe,0x1f,-_0x34b7e7._0x23b826)+Date[_0x183b98(_0x34b7e7._0x1f0555,0x236,0x29a,_0x34b7e7._0x3a433d)](),'content':createContentBlocks(_0x349638[_0xa5448c(0x47,_0x34b7e7._0x121d97,_0x34b7e7._0x57452,_0x34b7e7._0x4acf54)](''),_0x2b0874),'stopReason':_0x3e0913,'usage':createUsage(_0x424e1e[_0xa5448c(_0x34b7e7._0x47cab3,0x11c,_0x34b7e7._0x24fed0,_0x34b7e7._0x56f9e0)])};}function parseResponsesResponse(_0x56c559,_0x352d37){const _0x2dc5cd={_0x13f495:0x244,_0x318e73:0x38a,_0x31053f:0x352,_0x5818fd:0x3af,_0x4c8296:0x1c0,_0x1fab3d:0x299,_0x1cbac4:0x21b,_0x3faa6f:0x271,_0x4f8254:0x42c,_0x525bec:0x384,_0x9b5ff4:0x482,_0x490739:0x2f7,_0x42c63c:0x2b7,_0x5d4104:0x271,_0x332c28:0x351,_0x57b9a9:0x3c1,_0x332ad5:0x3d8,_0x685461:0x3d9,_0x33cb8a:0x2d9,_0x1d5581:0x301,_0x247f28:0x2ef,_0x5f16dc:0x32a,_0x29dd26:0x36f,_0x2c82be:0x3c4,_0x33a9b:0x33e,_0x3348f3:0x3b3,_0x5175d6:0x32d,_0x42393e:0x394,_0x46f81e:0x388,_0x3c355d:0x2cb,_0x2471f8:0x2fe,_0x1608ff:0x1d3,_0x3fedb9:0x24f,_0x1b12c6:0x409,_0x512ded:0x3ff,_0x27c31a:0x474,_0x1cdb91:0x434,_0x22a204:0x1cf,_0x36e080:0x28c,_0x213c37:0x25f,_0x2afa71:0x296,_0x17bd20:0x28d,_0x53e49b:0x2fe,_0x22e66e:0x3db,_0x32812d:0x421,_0x936ba8:0x422,_0x1229c2:0x2bc,_0xb0c208:0x326,_0x10bdd8:0x38e,_0x5a66a2:0x3ea,_0x477a88:0x1ee,_0xaba8d0:0x164,_0x2f8748:0x277,_0xaa0294:0x304,_0x5293e2:0x2fa,_0x1b4f01:0x1ea,_0x4bae07:0x1d4,_0x4a22fc:0x247},_0x49d3c4={_0xf6636c:0x100},_0x3ad2ff=[];function _0x29cc0a(_0x59c269,_0x424e80,_0x594bcd,_0x55ac07){return _0x4abdca(_0x59c269-0x125,_0x55ac07- -0x252,_0x594bcd-0xf2,_0x594bcd);}for(const _0x597d24 of _0x56c559[_0x29cc0a(0x250,0x2d5,_0x2dc5cd._0x13f495,0x247)]??[]){if(isResponsesReasoningItem(_0x597d24)){if(isUserVisibleReasoning(_0x352d37)){const _0x366345=createOpenAiReasoningBlock(_0x597d24);hasVisibleOpenAiReasoning(_0x366345)&&_0x3ad2ff[_0x14ad6e(_0x2dc5cd._0x318e73,_0x2dc5cd._0x31053f,_0x2dc5cd._0x5818fd,0x2cd)](_0x366345);}continue;}if(isResponsesMessageItem(_0x597d24)){const _0x47ce1f=normalizeResponsesMessageContent(_0x597d24[_0x29cc0a(_0x2dc5cd._0x4c8296,_0x2dc5cd._0x1fab3d,_0x2dc5cd._0x1cbac4,_0x2dc5cd._0x3faa6f)]);_0x47ce1f[_0x14ad6e(0x389,_0x2dc5cd._0x4f8254,_0x2dc5cd._0x525bec,_0x2dc5cd._0x9b5ff4)]>0x0&&_0x3ad2ff['push']({'type':_0x29cc0a(_0x2dc5cd._0x490739,0x26e,_0x2dc5cd._0x42c63c,0x32f),'text':_0x47ce1f});continue;}if(!isResponsesFunctionCallItem(_0x597d24)||typeof _0x597d24[_0x29cc0a(0x34a,_0x2dc5cd._0x5d4104,0x2b5,0x2fd)]!=='string'||_0x597d24[_0x29cc0a(0x3b9,0x3ab,_0x2dc5cd._0x332c28,0x2fd)]['trim']()[_0x14ad6e(0x403,0x42c,_0x2dc5cd._0x57b9a9,_0x2dc5cd._0x332ad5)]===0x0||typeof _0x597d24['name']!==_0x29cc0a(0x27e,0x3af,0x2be,0x33e)||_0x597d24[_0x29cc0a(_0x2dc5cd._0x685461,_0x2dc5cd._0x33cb8a,_0x2dc5cd._0x1d5581,0x357)]['trim']()[_0x29cc0a(_0x2dc5cd._0x247f28,0x381,_0x2dc5cd._0x5f16dc,0x30c)]===0x0||typeof _0x597d24[_0x14ad6e(0x2b6,_0x2dc5cd._0x29dd26,0x2e6,0x3af)]!==_0x29cc0a(0x402,0x3cf,_0x2dc5cd._0x2c82be,_0x2dc5cd._0x33a9b))continue;_0x3ad2ff[_0x14ad6e(_0x2dc5cd._0x3348f3,0x352,_0x2dc5cd._0x5175d6,_0x2dc5cd._0x42393e)]({'type':_0x14ad6e(0x33d,_0x2dc5cd._0x46f81e,_0x2dc5cd._0x3c355d,0x2e8),'id':_0x597d24['call_id'],'name':_0x597d24['name'],'input':parseToolInput2(_0x597d24[_0x29cc0a(_0x2dc5cd._0x2471f8,_0x2dc5cd._0x1608ff,0x1cf,_0x2dc5cd._0x3fedb9)])});}!_0x3ad2ff['some'](_0x357be2=>_0x357be2[_0x29cc0a(0x2e3,0x239,0x1ae,0x24d)]===_0x14ad6e(0x3e2,0x44f,0x3f8,0x3d5))&&_0x56c559[_0x14ad6e(0x432,_0x2dc5cd._0x1b12c6,0x431,_0x2dc5cd._0x512ded)]&&_0x3ad2ff['push']({'type':'text','text':_0x56c559[_0x14ad6e(_0x2dc5cd._0x27c31a,_0x2dc5cd._0x1b12c6,_0x2dc5cd._0x1cdb91,0x4c8)]});function _0x14ad6e(_0x1ba027,_0x5abae7,_0x5d8736,_0x17e9dc){return _0x4abdca(_0x1ba027-0xb3,_0x5abae7- -0x132,_0x5d8736-_0x49d3c4._0xf6636c,_0x1ba027);}return{'id':_0x56c559['id'],'content':_0x3ad2ff,'stopReason':_0x3ad2ff[_0x29cc0a(_0x2dc5cd._0x22a204,0x271,0x255,0x258)](_0x14a88a=>_0x14a88a[_0x14ad6e(0x334,0x36d,0x336,0x413)]===_0x14ad6e(0x2ed,0x388,0x41a,0x387))?'tool_use':'end_turn','usage':{'inputTokens':_0x56c559[_0x29cc0a(_0x2dc5cd._0x36e080,_0x2dc5cd._0x213c37,_0x2dc5cd._0x2afa71,_0x2dc5cd._0x1d5581)]?.[_0x29cc0a(_0x2dc5cd._0x17bd20,_0x2dc5cd._0x53e49b,0x2aa,0x34e)]??0x0,'outputTokens':_0x56c559[_0x14ad6e(_0x2dc5cd._0x22e66e,_0x2dc5cd._0x32812d,0x4b9,0x491)]?.[_0x14ad6e(0x304,0x366,_0x2dc5cd._0x936ba8,0x2bf)]??0x0,..._0x56c559['usage']?.[_0x29cc0a(0x218,0x15d,0x150,0x20c)]?.[_0x14ad6e(_0x2dc5cd._0x1229c2,0x304,_0x2dc5cd._0xb0c208,0x2bc)]!==void 0x0?{'reasoningTokens':_0x56c559[_0x14ad6e(_0x2dc5cd._0x10bdd8,0x421,0x47f,_0x2dc5cd._0x5a66a2)][_0x29cc0a(_0x2dc5cd._0x477a88,_0x2dc5cd._0xaba8d0,_0x2dc5cd._0x2f8748,0x20c)][_0x14ad6e(0x356,_0x2dc5cd._0xaa0294,0x33e,0x397)]}:{}},..._0x56c559['output']?{'providerState':{'openaiResponsesOutput':structuredClone(_0x56c559[_0x29cc0a(_0x2dc5cd._0x5293e2,_0x2dc5cd._0x1b4f01,_0x2dc5cd._0x4bae07,_0x2dc5cd._0x4a22fc)]),'openaiResponsesResponseId':_0x56c559['id']}}:{}};}function extractErrorMessage(_0x305936){const _0x2fd8b9={_0x249ad5:0x14f,_0x4aebcf:0x486,_0x23422e:0x47b,_0x532d0b:0x3c0,_0x52d81f:0x50,_0x403d95:0x96,_0x4a0e7b:0x119,_0x32e8f9:0x25,_0x39dca2:0x48,_0x2739e2:0x4b,_0x59487e:0xd5,_0x362282:0x118,_0x2feb39:0x3b4,_0x23edc0:0x38b,_0xb389cd:0x4b0,_0x39f6d3:0x459,_0xd18c7b:0x4dd,_0x26fbe8:0x466,_0x30017d:0x507,_0x4a4130:0x459,_0x29766d:0x440,_0x245aee:0x445,_0x29d145:0x4f5},_0x1fa83e={_0x40c0af:0x179,_0x195a46:0x70},_0xc935aa={_0x771c30:0x92};function _0x28690b(_0x12b50c,_0x25215b,_0x2cab8c,_0x237525){return _0x4abdca(_0x12b50c-0x1cc,_0x12b50c- -_0xc935aa._0x771c30,_0x2cab8c-0x152,_0x237525);}if(_0x305936[_0x1ced94(0x106,_0x2fd8b9._0x249ad5,0x148,0x122)]===0x0)return'';function _0x1ced94(_0x6f46b9,_0x9694f7,_0x426458,_0x415efa){return _0x4abdca(_0x6f46b9-_0x1fa83e._0x40c0af,_0x426458- -0x416,_0x426458-_0x1fa83e._0x195a46,_0x6f46b9);}try{const _0xf29064=JSON[_0x28690b(_0x2fd8b9._0x4aebcf,_0x2fd8b9._0x23422e,0x470,_0x2fd8b9._0x532d0b)](_0x305936);if(typeof _0xf29064[_0x1ced94(-0x3d,-_0x2fd8b9._0x52d81f,0x12,-_0x2fd8b9._0x403d95)]?.[_0x1ced94(_0x2fd8b9._0x4a0e7b,0x165,0xd5,_0x2fd8b9._0x32e8f9)]==='string'&&_0xf29064['error'][_0x1ced94(_0x2fd8b9._0x39dca2,_0x2fd8b9._0x2739e2,_0x2fd8b9._0x59487e,0xff)][_0x1ced94(0x111,_0x2fd8b9._0x362282,0x149,0xd5)]()['length']>0x0)return _0xf29064[_0x28690b(0x396,0x337,_0x2fd8b9._0x2feb39,_0x2fd8b9._0x23edc0)]['message'][_0x28690b(0x4cd,0x461,_0x2fd8b9._0xb389cd,0x415)]();if(typeof _0xf29064[_0x28690b(0x459,_0x2fd8b9._0x39f6d3,0x42b,0x40a)]===_0x28690b(0x4fe,_0x2fd8b9._0xd18c7b,_0x2fd8b9._0x26fbe8,_0x2fd8b9._0x30017d)&&_0xf29064[_0x28690b(_0x2fd8b9._0x4a4130,_0x2fd8b9._0x29766d,0x472,0x4d1)]['trim']()['length']>0x0)return _0xf29064[_0x28690b(_0x2fd8b9._0x4a4130,0x3e6,0x48b,_0x2fd8b9._0x245aee)][_0x28690b(0x4cd,0x575,_0x2fd8b9._0x29d145,0x469)]();}catch{return _0x305936;}return _0x305936;}async function createOpenAiApiError(_0x3db863){const _0x511518={_0x32bbda:0x5d1,_0x4d2f63:0xa8,_0x514b9c:0x1a,_0x11e29a:0xfc,_0x269801:0x3d8,_0x2a5a33:0x43e,_0x2b83a4:0x466},_0x3b476b={_0x6ff94:0xe8,_0x3e19b4:0xe7},_0x185f87=(await _0x3db863[_0x24bd6f(0x1fe,0x1f5,0x1c8,0x24d)]())[_0x2b9d50(0x63f,0x52f,_0x511518._0x32bbda,0x592)]();function _0x2b9d50(_0x3b7815,_0x3297f5,_0x47c1c9,_0x354c3c){return _0x3921cc(_0x3b7815-_0x3b476b._0x6ff94,_0x354c3c-0x1d3,_0x3b7815,_0x354c3c-_0x3b476b._0x3e19b4);}const _0x43ec4e=extractErrorMessage(_0x185f87)||_0x3db863[_0x24bd6f(0xb1,_0x511518._0x4d2f63,_0x511518._0x514b9c,_0x511518._0x11e29a)]||_0x24bd6f(0xf,0xb5,0x15,-0x9)+_0x3db863['status'];function _0x24bd6f(_0x1ee7c6,_0x237c59,_0x381e9e,_0x7c8652){return _0x3921cc(_0x1ee7c6-0x16a,_0x237c59- -0x1ec,_0x7c8652,_0x7c8652-0xb0);}return new OpenAiApiError(_0x3db863[_0x2b9d50(0x3ea,_0x511518._0x269801,_0x511518._0x2a5a33,_0x511518._0x2b83a4)],_0x185f87,_0x43ec4e);}function readSseData(_0x30a036){const _0x9eeaf={_0xab9186:0x597,_0x2e845a:0x5dc,_0x1074a6:0x14e,_0x30eddf:0xfc,_0xc68b2b:0x155,_0x2636a0:0x5f3,_0x428141:0x619,_0x3284d9:0x5af},_0x2b92f9={_0x97d8b:0x12b},_0x52c70d={_0x4e892d:0x1c4,_0x382f20:0x131};function _0x36a20e(_0x21dd5f,_0x10e83d,_0xd97d6b,_0x277442){return _0x4abdca(_0x21dd5f-_0x52c70d._0x4e892d,_0x277442-_0x52c70d._0x382f20,_0xd97d6b-0x1c,_0xd97d6b);}function _0x23016c(_0x5a19cf,_0x2c8023,_0x2649f9,_0x24b7b5){return _0x3921cc(_0x5a19cf-0x1b2,_0x2c8023- -0x331,_0x24b7b5,_0x24b7b5-_0x2b92f9._0x97d8b);}return _0x30a036[_0x36a20e(_0x9eeaf._0xab9186,0x587,0x5f8,_0x9eeaf._0x2e845a)]('\x0a')[_0x23016c(0xce,0xc6,_0x9eeaf._0x1074a6,_0x9eeaf._0x30eddf)](_0x361bb9=>_0x361bb9[_0x23016c(0x11f,0x65,0x94,0x61)](_0x23016c(0x67,0x1d,-0x28,-0xb)))[_0x23016c(_0x9eeaf._0xc68b2b,0xd4,0x93,0x86)](_0x29f7b1=>_0x29f7b1[_0x23016c(0x2b,0x9a,0x48,0x2a)](0x5)[_0x36a20e(0x726,0x6fe,0x69d,0x686)]())[_0x36a20e(_0x9eeaf._0x2636a0,_0x9eeaf._0x428141,0x52c,_0x9eeaf._0x3284d9)]('\x0a')['trim']();}function readString(_0x54b736){return typeof _0x54b736==='string'&&_0x54b736['length']>0x0?_0x54b736:void 0x0;}function extractReasoningDetails(_0x284964){const _0x413375={_0x2e3d3e:0x41,_0xd26933:0x56,_0x48732f:0x3f,_0x548d94:0x14,_0x2d08de:0x52,_0x25af9d:0x98,_0x329f90:0x132,_0x1005f3:0x101},_0x3ef248={_0x2961f6:0x1d8},_0x59058b={_0xa2e377:0x20b,_0x6ac021:0x24c,_0x3f7271:0x9e,_0x3f36f3:0x98,_0x522633:0xa7,_0x5b98b7:0x2d,_0xa84868:0x98,_0x12ec6c:0x197,_0xbcc9ad:0x290,_0x48c8dd:0x30d,_0x441b63:0x1cb},_0x3cc795={_0x207f5e:0x145,_0x3cea0d:0x164};if(!Array[_0x487814(-_0x413375._0x2e3d3e,-_0x413375._0xd26933,-_0x413375._0x48732f,-0xb6)](_0x284964))return void 0x0;function _0xa34def(_0x2e5a66,_0x53a71f,_0x1e3e2a,_0xc77ac9){return _0x4abdca(_0x2e5a66-_0x3cc795._0x207f5e,_0x1e3e2a- -0x624,_0x1e3e2a-_0x3cc795._0x3cea0d,_0x2e5a66);}const _0x1248a8=_0x284964[_0x487814(_0x413375._0x548d94,-0x4d,0x3e,0x48)](_0x547ab8=>{const _0x5032d5={_0x41a557:0x12d},_0x23355f={_0x479496:0xc7,_0x997488:0x167};if(!_0x547ab8||typeof _0x547ab8!==_0x1ae4e9(_0x59058b._0xa2e377,0x1da,_0x59058b._0x6ac021,0x188))return[];const _0xeecf99=_0x547ab8;function _0x28f39f(_0x43b2cf,_0x4286cc,_0x5b7e0d,_0x1ffc0c){return _0x487814(_0x1ffc0c,_0x4286cc-_0x23355f._0x479496,_0x5b7e0d-0x1d5,_0x1ffc0c-_0x23355f._0x997488);}if(typeof _0xeecf99[_0x28f39f(_0x59058b._0x3f7271,_0x59058b._0x3f36f3,0xbb,0xdb)]===_0x28f39f(0xfe,_0x59058b._0x522633,0x6e,0xe4))return[_0xeecf99[_0x28f39f(-_0x59058b._0x5b98b7,_0x59058b._0xa84868,0xe7,0xcd)]];if(typeof _0xeecf99[_0x1ae4e9(_0x59058b._0x12ec6c,0x20a,0x186,0x1fc)]===_0x1ae4e9(_0x59058b._0xbcc9ad,0x205,_0x59058b._0x48c8dd,0x1e0))return[_0xeecf99[_0x1ae4e9(0x197,0x19a,_0x59058b._0x441b63,0x17c)]];function _0x1ae4e9(_0x43c781,_0x536ee6,_0x5a86fd,_0x2cf85f){return _0xa34def(_0x536ee6,_0x536ee6-_0x5032d5._0x41a557,_0x43c781-0x324,_0x2cf85f-0x183);}return[];});function _0x487814(_0x20362e,_0x2834e7,_0xdd0a29,_0x57543c){return _0x3921cc(_0x20362e-_0x3ef248._0x2961f6,_0x2834e7- -0x410,_0x20362e,_0x57543c-0x156);}return _0x1248a8[_0x487814(0x15,-_0x413375._0x2d08de,0x37,0x69)]>0x0?_0x1248a8[_0x487814(-_0x413375._0x25af9d,-_0x413375._0x329f90,-_0x413375._0x1005f3,-0xe6)](''):void 0x0;}function extractChatCompletionReasoningDelta(_0x47f83c){const _0x3dd44f={_0x3ea790:0x134,_0x1eb5c9:0xeb,_0x167f52:0x110,_0x5a18d5:0x59,_0x5e323:0xdd},_0x1c1a0d={_0x4427a5:0x47b},_0x389ddc={_0x132277:0x1d0,_0x190209:0x5c3};function _0x61628b(_0x3e6024,_0x421d98,_0x812ff5,_0x28d08e){return _0x4abdca(_0x3e6024-_0x389ddc._0x132277,_0x421d98- -_0x389ddc._0x190209,_0x812ff5-0x26,_0x28d08e);}function _0x63aa9c(_0x5aeb77,_0xfc0e1,_0xf8c41f,_0x2e144e){return _0x3921cc(_0x5aeb77-0x19d,_0x2e144e- -_0x1c1a0d._0x4427a5,_0x5aeb77,_0x2e144e-0x86);}return extractReasoningDetails(_0x47f83c?.[_0x63aa9c(-_0x3dd44f._0x3ea790,-0x75,0xe,-0x89)])??readString(_0x47f83c?.[_0x61628b(-0x6f,-_0x3dd44f._0x1eb5c9,-0xbf,-_0x3dd44f._0x167f52)])??readString(_0x47f83c?.[_0x63aa9c(-0xcb,-0xc4,-_0x3dd44f._0x5a18d5,-_0x3dd44f._0x5e323)])??readString(_0x47f83c?.['reasoning_text'])??'';}var OpenAiChatCompletionsStreamParser=class{['reasoningParts']=[];[_0x4abdca(0x43c,0x42a,0x3fd,0x44c)];[_0x4abdca(0x4b2,0x52f,0x544,0x55b)]=[];[_0x4abdca(0x3ce,0x488,0x509,0x531)]=new Map();[_0x3921cc(0x3c5,0x366,0x412,0x321)]=[];[_0x3921cc(0x3cc,0x3a5,0x360,0x326)]=new Set();[_0x4abdca(0x54f,0x4d7,0x41f,0x4e0)]='';['stopReason']=_0x3921cc(0x391,0x2f2,0x2dd,0x319);[_0x4abdca(0x4f7,0x553,0x574,0x4ba)];constructor(_0x3b8982){const _0x3d5743={_0x37f4d4:0x46a,_0x3cc959:0x4d5},_0x4aefbf={_0x5beeed:0x192,_0x524d5e:0x40};function _0x51de29(_0x3bc30f,_0x575dce,_0x1d39f0,_0x4ae083){return _0x4abdca(_0x3bc30f-_0x4aefbf._0x5beeed,_0x3bc30f-_0x4aefbf._0x524d5e,_0x1d39f0-0x8a,_0x1d39f0);}this[_0x51de29(_0x3d5743._0x37f4d4,_0x3d5743._0x3cc959,0x3e9,0x4f8)]=_0x3b8982;}[_0x3921cc(0x2fe,0x318,0x29e,0x35f)](_0x319cc4){const _0x2d7db3={_0x4e717c:0x320,_0x32eb6d:0x384,_0x17c32e:0x568,_0xa9e0a:0x4a3,_0x35678d:0x55d,_0x1dd934:0x3a7,_0x129b4c:0x462,_0x1cfc47:0x35c,_0x6bcbac:0x2fd,_0x4cc5b1:0x2e9,_0x28f9d8:0x526,_0x1cc903:0x4de,_0x4ab40d:0x528,_0x564225:0x4de,_0x367273:0x44d,_0x307ce4:0x4a7},_0x3f77d1=readSseData(_0x319cc4);if(_0x3f77d1[_0x3ff664(_0x2d7db3._0x4e717c,_0x2d7db3._0x32eb6d,0x413,0x423)]===0x0||_0x3f77d1==='[DONE]')return[];function _0x2f0171(_0x3aa343,_0x4d3fd0,_0x56ad97,_0x890d7c){return _0x4abdca(_0x3aa343-0x131,_0x56ad97- -0x75,_0x56ad97-0x46,_0x890d7c);}function _0x3ff664(_0x1edba5,_0x329ca2,_0x3deb06,_0x194805){return _0x3921cc(_0x1edba5-0x13f,_0x329ca2- -0x3a,_0x1edba5,_0x194805-0xad);}const _0x3371cb=JSON[_0x2f0171(_0x2d7db3._0x17c32e,0x457,_0x2d7db3._0xa9e0a,_0x2d7db3._0x35678d)](_0x3f77d1);return this[_0x2f0171(_0x2d7db3._0x1dd934,0x4f8,_0x2d7db3._0x129b4c,0x40c)]=_0x3371cb['id']??this[_0x3ff664(_0x2d7db3._0x1cfc47,_0x2d7db3._0x6bcbac,_0x2d7db3._0x4cc5b1,0x25f)],this[_0x2f0171(0x439,_0x2d7db3._0x28f9d8,_0x2d7db3._0x1cc903,0x504)]=_0x3371cb[_0x2f0171(0x48a,_0x2d7db3._0x4ab40d,0x4de,0x4a1)]??this[_0x2f0171(0x4b8,0x469,_0x2d7db3._0x564225,0x4ed)],this[_0x2f0171(0x40f,0x4d2,_0x2d7db3._0x367273,_0x2d7db3._0x307ce4)](_0x3371cb);}[_0x4abdca(0x493,0x4c7,0x4c8,0x57e)](){const _0x3e84fb={_0x4d466d:0x19d,_0x1f37aa:0x141,_0x27515f:0xa1,_0x13e875:0xc4,_0x3f7b35:0xc2,_0x45a743:0x49,_0x1bcc4c:0x84,_0x15dfbe:0x130,_0x58c880:0x1c1,_0x545148:0x15f,_0x19ad71:0x15e,_0x40befa:0x114,_0x286483:0xa7,_0x5d02df:0xa6,_0x535ddc:0xe9,_0x4db5a2:0x9c},_0x15636a={_0x279d0f:0xe9},_0x1a5959={_0x5dab7b:0xf5};this['toolCallOrder'][_0x1bf34a(0x168,0x150,0x1f4,0x24c)]>0x0&&(this['stopReason']=_0x1bf34a(_0x3e84fb._0x4d466d,0xca,0x150,_0x3e84fb._0x1f37aa));function _0x1bf34a(_0x17564c,_0x1e8a41,_0x27b3b4,_0x362dd7){return _0x3921cc(_0x17564c-_0x1a5959._0x5dab7b,_0x27b3b4- -0x1ca,_0x362dd7,_0x362dd7-0xf8);}function _0x4b217a(_0xc151fc,_0x2bebaa,_0x1ea522,_0x3e0e02){return _0x4abdca(_0xc151fc-_0x15636a._0x279d0f,_0xc151fc- -0x4f0,_0x1ea522-0x40,_0x1ea522);}const _0x182da1=isUserVisibleReasoning(this[_0x4b217a(-0xc6,-0x3,-0xc7,-0x1b)])?this[_0x4b217a(0x2c,0x57,-0x4b,_0x3e84fb._0x27515f)]['join'](''):void 0x0;return{'id':this[_0x4b217a(-0x19,-_0x3e84fb._0x13e875,-_0x3e84fb._0x3f7b35,-_0x3e84fb._0x45a743)]||_0x1bf34a(0x150,_0x3e84fb._0x1bcc4c,0xbf,_0x3e84fb._0x15dfbe)+Date[_0x1bf34a(_0x3e84fb._0x58c880,0xde,0x17e,_0x3e84fb._0x545148)](),'content':createContentBlocks(this['textParts'][_0x1bf34a(0x1a5,_0x3e84fb._0x19ad71,_0x3e84fb._0x40befa,_0x3e84fb._0x286483)](''),this['toolCallOrder'],_0x182da1),'stopReason':this[_0x4b217a(_0x3e84fb._0x5d02df,-0x4,0x97,0x43)],'usage':createUsage(this[_0x4b217a(0x63,_0x3e84fb._0x535ddc,_0x3e84fb._0x4db5a2,0x1)])};}['consumeEvent'](_0x5b6b2a){const _0x5c489d={_0x38f705:0x5c1,_0x53b82f:0x51c,_0x500092:0x29e,_0x1bacbc:0x32b,_0xabb982:0x554,_0x177090:0x65d,_0x170a3e:0x5a7,_0x2dbaba:0x29d,_0x4f638b:0x31a,_0x1b1ff7:0x245,_0x7bee41:0x21b,_0x1c1da7:0x660,_0x291a14:0x5b9,_0x294743:0x225,_0x285667:0x3c5,_0xdcb8e7:0x287,_0x2c31b6:0x216,_0x543182:0x323,_0x33e39a:0x2e0,_0x3c0412:0x5ff,_0x342c3b:0x623,_0x198a47:0x243,_0x13f4d8:0x1dd,_0x327644:0x206,_0x484c79:0x15b,_0x1016c4:0x2c3,_0x19202d:0x38f,_0x3933f2:0x39f,_0x5964c4:0x251,_0x3f7e6e:0x24f,_0x4c1219:0x219,_0x2ad50d:0x4b4,_0x37059e:0x5e8,_0x9309b2:0x241,_0x454223:0x677,_0x53a2ed:0x615,_0x340d9b:0x6f1,_0x1e9483:0x677,_0x1cce0b:0x32b,_0xc152d8:0x2c6,_0x5e2cb8:0x2b2,_0x5d55ec:0x38a,_0xcd5729:0x4f6,_0x34c70d:0x5b2,_0x36457f:0x206,_0x188840:0x1a0,_0x3a1d22:0x2ff,_0x2c37df:0x283,_0x38dac4:0x2ee,_0x3e2ad0:0x3cf,_0x28c361:0x396,_0x587d43:0x6cd,_0x54f1e2:0x651,_0x3d1c58:0x3c8,_0x3a6c1b:0x329,_0x298fc4:0x2cd,_0x3239ac:0x3e7,_0x46cfd5:0x3ef,_0x14c543:0x57d,_0x5285a:0x34c,_0x173e78:0x554,_0x1f9057:0x57a,_0x390834:0x33e,_0x13a395:0x2e1,_0x31cf2a:0x3ca,_0x462e7f:0x640,_0x265a78:0x615,_0x2d98eb:0x233,_0x5dcd64:0x329,_0x366ce4:0x272,_0x3f0447:0x3a8,_0x1ff2f4:0x23e,_0x5b641c:0x3c2,_0x35d2e3:0x55c,_0x1c7ca8:0x4d1,_0x5a4094:0x5a9,_0x468492:0x59f,_0x24fbde:0x647,_0x54dda7:0x5fc,_0x4d7f2a:0x586,_0x4068a2:0x577,_0x375985:0x5c2,_0x258c67:0x620,_0x32e4ea:0x250,_0x30c6f5:0x2f0,_0x24a857:0x307,_0xbf467b:0x241,_0x2a5e88:0x17a},_0x1713a5={_0x529627:0xde},_0x85b3a8={_0x1cb936:0x53,_0xab75bc:0xd0};function _0x568ebe(_0x191c60,_0x3e0123,_0x9b89e0,_0x380dc8){return _0x4abdca(_0x191c60-_0x85b3a8._0x1cb936,_0x3e0123-_0x85b3a8._0xab75bc,_0x9b89e0-0x14d,_0x380dc8);}const _0xfca549=[];for(const _0x55df1d of _0x5b6b2a[_0x568ebe(0x651,0x5cb,0x550,0x68b)]??[]){const _0x1a4310=_0x55df1d[_0x568ebe(_0x5c489d._0x38f705,0x5b0,_0x5c489d._0x53b82f,0x533)],_0x52225b=extractChatCompletionReasoningDelta(_0x1a4310);_0x52225b['length']>0x0&&(this[_0xdd13e(_0x5c489d._0x500092,0x331,_0x5c489d._0x1bacbc,0x256)]['push'](_0x52225b),isUserVisibleReasoning(this['request'])&&_0xfca549[_0x568ebe(0x54d,_0x5c489d._0xabb982,0x4a3,0x5e7)]({'type':'openai_reasoning_delta','contentIndex':0x0,'delta':_0x52225b,'itemId':(this[_0x568ebe(_0x5c489d._0x177090,_0x5c489d._0x170a3e,0x5d5,0x5dc)]||'chatcmpl')+_0xdd13e(0x26f,0x23f,_0x5c489d._0x2dbaba,_0x5c489d._0x4f638b),'outputIndex':0x0}));const _0x3a04cb=typeof _0x1a4310?.[_0xdd13e(_0x5c489d._0x1b1ff7,0x2d3,0x204,_0x5c489d._0x7bee41)]===_0x568ebe(0x6da,_0x5c489d._0x1c1da7,0x613,_0x5c489d._0x291a14)?_0x1a4310[_0xdd13e(0x245,0x202,0x1e7,_0x5c489d._0x294743)]:typeof _0x1a4310?.['refusal']===_0xdd13e(0x312,_0x5c489d._0x285667,0x3b8,0x2a9)?_0x1a4310[_0xdd13e(_0x5c489d._0xdcb8e7,_0x5c489d._0x2c31b6,_0x5c489d._0x543182,0x2aa)]:'';_0x3a04cb[_0xdd13e(_0x5c489d._0x33e39a,0x32d,0x395,0x2df)]>0x0&&(this[_0x568ebe(0x581,_0x5c489d._0x3c0412,0x664,_0x5c489d._0x342c3b)][_0xdd13e(0x206,0x2aa,_0x5c489d._0x198a47,_0x5c489d._0x13f4d8)](_0x3a04cb),_0xfca549[_0xdd13e(_0x5c489d._0x327644,_0x5c489d._0x484c79,0x148,_0x5c489d._0x1016c4)]({'type':_0xdd13e(0x308,0x37b,_0x5c489d._0x19202d,_0x5c489d._0x3933f2),'index':0x0,'text':_0x3a04cb}));for(const _0x161197 of _0x1a4310?.[_0xdd13e(0x250,0x23c,_0x5c489d._0x5964c4,_0x5c489d._0x3f7e6e)]??[]){const _0xdfa35d=_0x161197['index']??0x0;let _0x40dd73=this[_0xdd13e(0x20a,0x1b9,0x243,_0x5c489d._0x4c1219)][_0x568ebe(_0x5c489d._0x2ad50d,0x530,_0x5c489d._0x37059e,0x575)](_0xdfa35d);!_0x40dd73&&(_0x40dd73={'id':_0x161197['id']??_0xdd13e(0x2ff,0x32d,0x292,_0x5c489d._0x9309b2)+_0xdfa35d,'type':_0x568ebe(0x6c8,_0x5c489d._0x454223,_0x5c489d._0x53a2ed,0x6fd),'function':{'name':_0x161197[_0x568ebe(_0x5c489d._0x340d9b,_0x5c489d._0x1e9483,0x678,0x6dc)]?.[_0xdd13e(_0x5c489d._0x1cce0b,_0x5c489d._0xc152d8,_0x5c489d._0x5e2cb8,_0x5c489d._0x5d55ec)]??'','arguments':''}},this[_0x568ebe(0x60b,0x558,_0x5c489d._0xcd5729,_0x5c489d._0x34c70d)]['set'](_0xdfa35d,_0x40dd73),this['toolCallOrder'][_0xdd13e(_0x5c489d._0x36457f,_0x5c489d._0x188840,0x29a,0x206)](_0x40dd73));_0x161197['id']&&(_0x40dd73['id']=_0x161197['id']);_0x161197[_0xdd13e(0x329,_0x5c489d._0x3a1d22,0x32e,_0x5c489d._0x2c37df)]?.[_0xdd13e(0x32b,_0x5c489d._0x38dac4,_0x5c489d._0x3e2ad0,_0x5c489d._0x28c361)]&&(_0x40dd73[_0x568ebe(_0x5c489d._0x587d43,_0x5c489d._0x454223,0x64d,_0x5c489d._0x54f1e2)][_0xdd13e(0x32b,0x3b2,0x2ab,_0x5c489d._0x3d1c58)]=_0x161197[_0xdd13e(_0x5c489d._0x3a6c1b,_0x5c489d._0x298fc4,_0x5c489d._0x3239ac,0x338)][_0xdd13e(0x32b,0x33b,0x2e9,_0x5c489d._0x46cfd5)]);!this[_0x568ebe(_0x5c489d._0x14c543,0x615,0x68f,0x63f)]['has'](_0xdfa35d)&&_0x40dd73['function'][_0xdd13e(0x32b,0x2db,0x340,_0x5c489d._0x5285a)]['trim']()['length']>0x0&&(_0xfca549[_0x568ebe(0x4ee,_0x5c489d._0x173e78,0x5c4,_0x5c489d._0x1f9057)]({'type':'tool_use_delta','id':_0x40dd73['id'],'index':_0xdfa35d,'name':_0x40dd73[_0xdd13e(_0x5c489d._0x3a6c1b,_0x5c489d._0x390834,_0x5c489d._0x13a395,_0x5c489d._0x31cf2a)][_0x568ebe(0x627,0x679,0x6b2,0x5b5)]}),this[_0x568ebe(_0x5c489d._0x462e7f,_0x5c489d._0x265a78,0x622,0x695)][_0xdd13e(0x224,_0x5c489d._0x2d98eb,0x1b7,0x21c)](_0xdfa35d));const _0x12567e=_0x161197[_0xdd13e(_0x5c489d._0x5dcd64,0x2e0,_0x5c489d._0x366ce4,_0x5c489d._0x3f0447)]?.['arguments']??'';_0x12567e[_0xdd13e(0x2e0,_0x5c489d._0x1ff2f4,0x376,0x341)]>0x0&&(_0x40dd73[_0xdd13e(0x329,0x2ab,_0x5c489d._0x5b641c,0x3a6)][_0x568ebe(_0x5c489d._0x35d2e3,0x571,0x575,0x5d4)]+=_0x12567e,_0xfca549[_0x568ebe(0x4bb,0x554,_0x5c489d._0x1c7ca8,_0x5c489d._0x5a4094)]({'type':_0x568ebe(_0x5c489d._0x468492,_0x5c489d._0x24fbde,_0x5c489d._0x54dda7,_0x5c489d._0x4d7f2a),'id':_0x40dd73['id'],'index':_0xdfa35d,'inputDelta':_0x12567e}));}_0x55df1d[_0x568ebe(0x5f2,_0x5c489d._0x4068a2,_0x5c489d._0x375985,_0x5c489d._0x258c67)]===_0xdd13e(_0x5c489d._0x32e4ea,0x29f,_0x5c489d._0x30c6f5,_0x5c489d._0x24a857)&&(this['stopReason']=_0xdd13e(0x23c,_0x5c489d._0xbf467b,_0x5c489d._0x2a5e88,0x23d));}function _0xdd13e(_0x2a3ba1,_0x8c40f6,_0x33e556,_0x1103c6){return _0x3921cc(_0x2a3ba1-0xe6,_0x2a3ba1- -_0x1713a5._0x529627,_0x8c40f6,_0x1103c6-0x143);}return _0xfca549;}},OpenAiResponsesStreamParser=class{[_0x3921cc(0x38f,0x39a,0x35a,0x40f)]=new Map();[_0x4abdca(0x5f5,0x53c,0x51c,0x547)];[_0x4abdca(0x468,0x44b,0x3c2,0x45b)]=new Map();[_0x3921cc(0x379,0x2cf,0x34c,0x20a)]=new Map();[_0x3921cc(0x3c0,0x30e,0x321,0x28e)]=new Map();[_0x3921cc(0x2cc,0x28a,0x1d8,0x2f3)];['responseTextParts']=new Map();['toolCalls']=new Map();constructor(_0x5e9d73){const _0x5c8886={_0x70acfe:0x68},_0x19168e={_0x2a50bc:0x147,_0x579e9a:0x38d};function _0x9848d1(_0x15ada6,_0x55dd62,_0x5218f4,_0x2a6692){return _0x3921cc(_0x15ada6-_0x19168e._0x2a50bc,_0x5218f4- -_0x19168e._0x579e9a,_0x15ada6,_0x2a6692-0x1e7);}this[_0x9848d1(-0x149,-_0x5c8886._0x70acfe,-0x103,-0x19e)]=_0x5e9d73;}['consumeSseEvent'](_0x22d860){const _0x5c7a6d={_0x1facf5:0x43d,_0x16e7ee:0x419,_0x22eed1:0xb3,_0x50794b:0x25,_0x262089:0x59e,_0xb62934:0x580,_0x5bb012:0x47c,_0x57fd0b:0x4c4,_0x2e3237:0x503,_0x23b85d:0x3d6,_0x30005c:0x4b5,_0x4465c9:0x4f2,_0x17ba6b:0x4d2,_0x5c2e51:0x188,_0x34d420:0x551,_0x2ad46e:0x544,_0x531d70:0x496,_0x4575b4:0x475,_0x19cc72:0x443,_0x5067cb:0xc},_0x1704df={_0x2773e4:0x1b1,_0x10bc90:0x416},_0x1443a5={_0x50e5af:0x133,_0x35911b:0x4e},_0x3f135a=_0x22d860[_0x428ab1(_0x5c7a6d._0x1facf5,0x3b9,0x43e,_0x5c7a6d._0x16e7ee)]('\x0a');function _0x428ab1(_0x21a777,_0x3ea2ea,_0x776c4e,_0x408ae5){return _0x3921cc(_0x21a777-0x175,_0x776c4e-_0x1443a5._0x50e5af,_0x21a777,_0x408ae5-_0x1443a5._0x35911b);}const _0x2a0790=_0x3f135a[_0x846ab(_0x5c7a6d._0x22eed1,0x139,-_0x5c7a6d._0x50794b,0x7a)](_0x3b8443=>_0x3b8443['startsWith'](_0x428ab1(0x4c9,0x490,0x530,0x5c6)))?.['slice'](0x6)[_0x428ab1(_0x5c7a6d._0x262089,_0x5c7a6d._0xb62934,0x4f2,_0x5c7a6d._0x5bb012)](),_0x22f73f=_0x3f135a[_0x846ab(0x177,0x153,0x20d,0x181)](_0x5f1126=>_0x5f1126[_0x428ab1(0x548,0x40a,0x4c9,0x420)](_0x846ab(0x198,0x176,0x188,0xd8)))[_0x428ab1(0x4d6,_0x5c7a6d._0x57fd0b,0x538,_0x5c7a6d._0x2e3237)](_0x34ebe1=>_0x34ebe1[_0x428ab1(0x521,0x5c4,0x4fe,0x4d2)](0x5)[_0x428ab1(0x505,0x527,0x4e8,0x566)]())[_0x428ab1(0x4a3,_0x5c7a6d._0x23b85d,0x411,0x3c1)]('\x0a')[_0x428ab1(0x598,_0x5c7a6d._0x30005c,_0x5c7a6d._0x4465c9,_0x5c7a6d._0x17ba6b)]();if(_0x22f73f[_0x846ab(_0x5c7a6d._0x5c2e51,0x18c,0xe1,0x148)]===0x0||_0x22f73f===_0x428ab1(_0x5c7a6d._0x34d420,0x5dc,_0x5c7a6d._0x2ad46e,0x5a5))return[];function _0x846ab(_0x383eb3,_0x3c51ec,_0x367bef,_0x569cab){return _0x4abdca(_0x383eb3-_0x1704df._0x2773e4,_0x569cab- -_0x1704df._0x10bc90,_0x367bef-0xec,_0x3c51ec);}const _0x3f9b28=JSON[_0x428ab1(_0x5c7a6d._0x531d70,_0x5c7a6d._0x4575b4,0x4ab,_0x5c7a6d._0x19cc72)](_0x22f73f);return this[_0x846ab(0x34,_0x5c7a6d._0x5067cb,0x172,0xac)](_0x2a0790??String(_0x3f9b28['type']??''),_0x3f9b28);}['consumeWebSocketEvent'](_0x6641a8){const _0xa96acc={_0x546c14:0xbf,_0x1d2c46:0x1f3,_0x30df7:0x146,_0x22c394:0x176},_0x5e2aff={_0x30d909:0x1b9};function _0x1af1ea(_0x2febf7,_0x39c721,_0x2e7e2e,_0x4f6da5){return _0x3921cc(_0x2febf7-0x152,_0x2e7e2e- -_0x5e2aff._0x30d909,_0x4f6da5,_0x4f6da5-0x189);}return this['consumeEvent'](String(_0x6641a8[_0x1af1ea(_0xa96acc._0x546c14,_0xa96acc._0x1d2c46,_0xa96acc._0x30df7,_0xa96acc._0x22c394)]??''),_0x6641a8);}[_0x3921cc(0x270,0x327,0x26e,0x2d3)](){const _0x29d816={_0x4d2afa:0x53,_0x3be638:0x612,_0x2c358e:0x56b,_0x55c027:0x4c3,_0x24fb2d:0x534,_0x927a11:0x567,_0x2bc467:0x4c9,_0x133379:0x4d1,_0x21976a:0x105,_0x17903c:0x3f,_0x3f9fb7:0x8a},_0x341746={_0x4972bd:0x176},_0x63a481={_0x4889ac:0x65};function _0x350767(_0x125ed9,_0x2564c9,_0x19c355,_0x38f3b8){return _0x4abdca(_0x125ed9-_0x63a481._0x4889ac,_0x2564c9- -0x469,_0x19c355-0x6,_0x19c355);}function _0xf59797(_0x3e798f,_0x437389,_0x1f50ca,_0x4cb277){return _0x3921cc(_0x3e798f-_0x341746._0x4972bd,_0x1f50ca-0x221,_0x437389,_0x4cb277-0xfd);}const _0x2b691a=this['finalResponse']??{'id':_0x350767(-0x33,-0x42,_0x29d816._0x4d2afa,-0xfc)+Date[_0xf59797(0x5d0,_0x29d816._0x3be638,0x569,0x5b3)](),'object':_0xf59797(0x563,_0x29d816._0x2c358e,0x572,_0x29d816._0x55c027),'status':_0xf59797(0x616,_0x29d816._0x24fb2d,_0x29d816._0x927a11,_0x29d816._0x2bc467),'output':this[_0xf59797(0x576,0x42b,_0x29d816._0x133379,0x41d)](),'usage':{'input_tokens':0x0,'output_tokens':0x0}};return parseResponsesResponse(_0x2b691a,this[_0x350767(-_0x29d816._0x21976a,-_0x29d816._0x17903c,-_0x29d816._0x3f9fb7,-0x2f)]);}['isDone'](){return this['finalResponse']!==void 0x0;}[_0x4abdca(0x444,0x4c2,0x514,0x4c0)](_0x537de4,_0x1ab176){const _0x4c2b1b={_0x3dfa9c:0x196,_0x2bc35c:0x1e2,_0x1634ab:0x201,_0x471786:0x6f,_0x5794c1:0x1be,_0xc179a9:0x10b,_0x3cd380:0x5f1,_0x5cf848:0x5eb,_0x5be06d:0x124,_0x8c56be:0x177,_0x3fbe70:0x5fb,_0x1d946f:0x631,_0x719dd3:0x6a4,_0xac3886:0x6f3,_0x4be6fe:0x586,_0xb9bff9:0x50b,_0x2b22a9:0x54a,_0x323025:0xe6,_0x1a6e5a:0x659,_0x157251:0x660,_0x2827fd:0x5ab,_0x2241fd:0x554,_0x2d458b:0x547,_0x41a4db:0x4ee,_0x1a2132:0x67d,_0x1b2e91:0x93,_0x24463f:0x5a,_0x4dc6bf:0xeb,_0x4071d3:0x136,_0x28f3c5:0x6a4,_0x5d3e6:0x57a,_0xa116bf:0x617,_0x3f50a3:0x25b,_0x77b3c3:0x2c9,_0x40f439:0x2a2,_0x57784d:0x240,_0xad2b07:0x14c,_0x1c10dc:0x59a,_0x3cc5f0:0x561,_0x1ee524:0x1f4,_0xe51ab1:0x274,_0x187b7e:0x1e6,_0x5d94e2:0x260,_0xb86393:0x1cc,_0xa6d536:0x23e,_0x1c7657:0x220,_0xa2b2ff:0x1f1,_0x1bce3a:0x51e,_0x3e0a0e:0x4a1,_0x351402:0x68e,_0x599b97:0x5a8,_0x40bb5b:0x5f0,_0x12e282:0x5c0,_0x254854:0x6fe,_0x4844c8:0x64a,_0x55a581:0x621,_0x1d127a:0x622,_0x567640:0x5ec,_0x1ece31:0x2d1,_0x2f8665:0x284,_0x23e336:0x1ce,_0x394547:0x19d,_0x1e0c17:0x186,_0x467486:0x655,_0x525a8e:0x546,_0x6462f2:0x57f,_0x33bb07:0x5e3,_0x2658fc:0x686,_0x46e0ab:0x533,_0x44c15d:0x542,_0xbde05:0x561,_0x4be7ab:0x50b,_0x3434d2:0x16b,_0x2c8abd:0xe6,_0x26a24d:0x1d2,_0x1aa801:0x1da,_0x4fe9b1:0x252,_0x4e34ae:0x2eb,_0x2e8fea:0x625,_0x2f54ff:0x533,_0x5db94f:0x47e,_0x268458:0xc4,_0x4b8628:0x588,_0x2200b8:0x50a,_0x4362cf:0x64d,_0x48b582:0x18d,_0x10fc11:0x6d,_0x20c870:0xcd,_0x5c4169:0x288,_0x36a4c8:0x29d,_0x317832:0x1b3,_0x2686b1:0x1f5,_0x20c16e:0xe4,_0x1b58f5:0x1eb,_0x5604b6:0x118,_0x221539:0x138,_0x3e1cdf:0x6b7,_0xd77ca1:0x64a,_0xfa0167:0x6d2,_0x421530:0x6b2,_0x3ec606:0x60d,_0x4b25da:0x125,_0x411781:0x17a,_0x5d3d9b:0x3d,_0x110196:0xf7,_0x2f4a7f:0x4a5,_0x38dc03:0x63f,_0x524ab1:0x61f,_0x54fc18:0x1e6,_0x155c8d:0x28d,_0x490918:0x1cd,_0x476cf0:0x10b,_0x126364:0x67d,_0x44440a:0x66c,_0x2a2db1:0x720,_0x1f9b53:0x50,_0x215b86:0x12c,_0x39dfe5:0xe2,_0x4cb318:0xd3,_0xbbc62f:0xa9,_0x4ecffc:0x4d6,_0xd08924:0x4fb,_0x324a5e:0x2a7,_0x3a2161:0x227,_0x394e96:0x629,_0x398154:0x4fc,_0xc09b10:0x5e0,_0x495797:0xc4,_0x98b859:0x4c5,_0x41c3da:0x4f3,_0x2c25bf:0x184,_0x45868c:0xd2,_0xac2e86:0x4d0,_0x56c62b:0x622,_0x31e281:0x53e,_0x2e6c07:0x531,_0x55afe8:0x586,_0x398c78:0x5b8,_0x45e206:0x574,_0x4eef6c:0x544,_0x229421:0x1dd,_0x3c2caa:0x19c,_0x347829:0x5e3,_0x49927b:0x11a,_0x561b37:0x13d,_0x3f275c:0x597,_0x5a2ca6:0x10e,_0xda9d81:0x1bf,_0xb0d907:0x5f1,_0x5b3d18:0x1ad,_0x142e88:0x19f,_0x4319bd:0x1f5,_0x1538c9:0x8a,_0x160498:0x136,_0x37cf36:0x62b,_0x2a8533:0x654,_0x56dac9:0x6d9,_0x3044c2:0x6c3,_0x58e7a9:0x67e,_0x18965d:0x139,_0x1f5c5e:0xe6,_0x12cbcf:0x2a0,_0x11b90c:0x218,_0x427556:0x19b,_0x3b3c70:0x58f,_0xd4ee4d:0x543,_0x22f634:0x515,_0x12fe96:0x518,_0x3c51b0:0x54b,_0x1dac5f:0x663,_0x30043d:0x5b3,_0x748020:0x4f6,_0x2d9fb5:0xfc,_0x747d52:0x1fe,_0x407170:0x1b5,_0x2f61bb:0x533,_0x12ac9a:0x578,_0xb09360:0x547,_0x1d0521:0x4d8,_0x59db98:0x4d4,_0x56c1b1:0x238,_0x511cdb:0x241,_0x3a8f29:0x8d,_0x2a705c:0x73,_0x25bfde:0x6b0,_0x468e4a:0x231,_0x2dec9f:0x1d3,_0x37d330:0x13c,_0x206571:0x19a,_0xb94110:0x1db,_0x339bff:0x21b,_0x1414c7:0x248,_0xa5cef7:0x613,_0x2dd571:0x66d,_0x4dade1:0x5f5,_0x2cd7b4:0xf7,_0x4ec913:0x58e,_0x1a214b:0x5cb,_0x225140:0x534,_0x54dbd9:0x52e,_0x43dbc4:0x663,_0x4d891b:0x690,_0x313528:0x624,_0x226011:0x641,_0x39b054:0xef,_0x133db0:0x146,_0x481caf:0x106,_0x803ad9:0x148,_0x52ef3f:0x5fd,_0x3cb1f9:0x58d,_0x40297d:0x91,_0x694158:0x12f,_0x26d0a2:0x723,_0x29b172:0x5be,_0x2b618e:0x6ce,_0x286025:0x226,_0x16ea2a:0x616,_0x45e279:0x685,_0x241f9f:0x163,_0x5ce40e:0x26c,_0x2b4642:0x226,_0x108185:0x1a7,_0x3703c8:0x633,_0x25ca2e:0x67c,_0x4712a4:0x5b,_0x1b0fa5:0x1cc,_0x4defe1:0x6ca,_0x513911:0x6b0,_0x12306f:0x1b0,_0x185915:0x177,_0x225ca7:0x583,_0x1ee136:0x5d1,_0x303467:0x542,_0x4c5045:0x47d,_0x6a89ab:0xca,_0x66d2fe:0x107,_0x12fd50:0x67d,_0xe67ce8:0xb7,_0x556934:0x105,_0x5e1c1a:0x63c,_0x4af278:0x6a5,_0x1b47f0:0x2e2,_0x1e6811:0x639,_0x456906:0x157,_0x5c1e50:0x1f5,_0x478e5f:0x67f,_0xc28ff6:0x4cd,_0x433c2e:0x522,_0x441a3e:0x1be,_0x28f4e7:0x449,_0xc7018c:0x536,_0x598352:0x5e3,_0x5c2aa1:0x1d8,_0x3f7471:0x117,_0x4ee2e9:0x5d4,_0x54ddc8:0x663,_0x45807b:0x656,_0xf6a9f4:0x59e,_0x2d4feb:0x532,_0x2f8a08:0x5c8,_0x40ac43:0x60c,_0x2b32a2:0x88,_0x216467:0x1a1,_0xf82e14:0xcd,_0x1706e3:0x151,_0x26eae0:0x1b9,_0x4ca77c:0x10b,_0x4d5310:0x10b,_0x55ecee:0x711,_0x41c784:0x1ea,_0x23d936:0x155,_0x12da7c:0x1fd,_0x1ebfc6:0x5cf,_0x57806d:0x67d,_0x118678:0x6a9,_0x25922c:0x1ea,_0x1e326b:0x594,_0x467f6d:0x632,_0x3518a0:0x56f,_0x49f0d9:0x540,_0x3184cf:0x4dc,_0x2d6673:0x547,_0x339f64:0x1a9,_0x3dfa8a:0x16a,_0x5a2ad5:0x5c4,_0x323e7d:0x5b7,_0x2fd544:0x1bc,_0x5013b6:0x1dd,_0x5f221a:0x1aa,_0x257916:0x62,_0x4e148a:0xbf,_0x217e7b:0x5be,_0x10b059:0x606,_0x240ac8:0xeb,_0x5e7a0b:0xe1,_0x505d58:0x240,_0x230a25:0x199,_0x1b0e9b:0x25d,_0x5831ad:0xdc,_0x5d5a57:0x3d,_0x54e662:0xca},_0x2d10c1={_0x464a16:0x194,_0xd0e502:0x3b},_0x3ae470={_0x44198e:0x190,_0x4c100a:0xd3,_0x8848eb:0x1b8};function _0x2a7dc6(_0x35e6ff,_0x6d5693,_0xfe551c,_0x2cf06c){return _0x4abdca(_0x35e6ff-_0x3ae470._0x44198e,_0x6d5693-_0x3ae470._0x4c100a,_0xfe551c-_0x3ae470._0x8848eb,_0x35e6ff);}function _0x3e6735(_0xdde266,_0x32387a,_0x28c5f2,_0x468f98){return _0x3921cc(_0xdde266-_0x2d10c1._0x464a16,_0x468f98- -0x1c9,_0x28c5f2,_0x468f98-_0x2d10c1._0xd0e502);}switch(_0x537de4){case'response.output_text.delta':{const _0x4a341d=typeof _0x1ab176[_0x3e6735(0x18a,_0x4c2b1b._0x3dfa9c,0x111,0x10b)]===_0x3e6735(_0x4c2b1b._0x2bc35c,_0x4c2b1b._0x1634ab,0x1e5,0x241)?_0x1ab176[_0x3e6735(0x98,_0x4c2b1b._0x471786,_0x4c2b1b._0x5794c1,_0x4c2b1b._0xc179a9)]:0x0,_0x21401e=typeof _0x1ab176['delta']===_0x2a7dc6(_0x4c2b1b._0x3cd380,0x663,0x601,_0x4c2b1b._0x5cf848)?_0x1ab176[_0x3e6735(0x113,_0x4c2b1b._0x5be06d,0x20a,_0x4c2b1b._0x8c56be)]:'';if(_0x21401e[_0x2a7dc6(_0x4c2b1b._0x3fbe70,_0x4c2b1b._0x1d946f,_0x4c2b1b._0x719dd3,_0x4c2b1b._0xac3886)]>0x0){const _0x1e4c13=this['responseTextParts']['get'](_0x4a341d)??[];return _0x1e4c13[_0x2a7dc6(0x5e6,0x557,0x517,0x527)](_0x21401e),this[_0x2a7dc6(_0x4c2b1b._0x4be6fe,_0x4c2b1b._0xb9bff9,_0x4c2b1b._0x2b22a9,0x46b)][_0x3e6735(0x8e,0xe2,0xa3,_0x4c2b1b._0x323025)](_0x4a341d,_0x1e4c13),[{'type':_0x2a7dc6(0x6f1,_0x4c2b1b._0x1a6e5a,_0x4c2b1b._0x157251,_0x4c2b1b._0x2827fd),'index':_0x4a341d,'text':_0x21401e}];}break;}case'response.output_item.added':{const _0x10f29f=typeof _0x1ab176[_0x2a7dc6(_0x4c2b1b._0x2241fd,_0x4c2b1b._0x2d458b,0x5a1,_0x4c2b1b._0x41a4db)]===_0x2a7dc6(0x715,_0x4c2b1b._0x1a2132,0x6d2,0x691)?_0x1ab176[_0x3e6735(0xe2,0x50,0x17d,0x10b)]:void 0x0,_0xb7727c=_0x1ab176[_0x3e6735(_0x4c2b1b._0x1b2e91,_0x4c2b1b._0x24463f,0x135,0x100)];if(_0xb7727c?.[_0x3e6735(0xd3,0x128,_0x4c2b1b._0x4dc6bf,_0x4c2b1b._0x4071d3)]===_0x2a7dc6(0x582,0x5f3,0x696,0x5d2)&&_0xb7727c[_0x2a7dc6(_0x4c2b1b._0x28f3c5,0x622,_0x4c2b1b._0x5d3e6,_0x4c2b1b._0xa116bf)]&&_0xb7727c[_0x3e6735(_0x4c2b1b._0x3f50a3,_0x4c2b1b._0x77b3c3,_0x4c2b1b._0x40f439,_0x4c2b1b._0x57784d)])return this[_0x3e6735(0x138,0x18c,0x1f9,_0x4c2b1b._0xad2b07)][_0x2a7dc6(_0x4c2b1b._0xb9bff9,0x522,0x506,_0x4c2b1b._0x1c10dc)](_0xb7727c[_0x2a7dc6(0x5b8,0x622,0x609,_0x4c2b1b._0x3cc5f0)],{'id':_0xb7727c[_0x3e6735(_0x4c2b1b._0x1ee524,0x270,_0x4c2b1b._0xe51ab1,_0x4c2b1b._0x187b7e)],'type':_0x3e6735(_0x4c2b1b._0x5d94e2,0x2a5,_0x4c2b1b._0xb86393,_0x4c2b1b._0xa6d536),'function':{'name':_0xb7727c[_0x3e6735(_0x4c2b1b._0x1c7657,0x28b,_0x4c2b1b._0xa2b2ff,_0x4c2b1b._0x57784d)],'arguments':''}}),_0x10f29f!==void 0x0&&(this[_0x2a7dc6(0x53d,_0x4c2b1b._0x1bce3a,0x459,_0x4c2b1b._0x3e0a0e)]['set'](_0x10f29f,_0xb7727c[_0x2a7dc6(_0x4c2b1b._0x351402,0x622,_0x4c2b1b._0x599b97,0x67f)]),this[_0x2a7dc6(0x6ad,0x60d,0x6b0,_0x4c2b1b._0x40bb5b)][_0x2a7dc6(0x4c3,0x522,0x501,_0x4c2b1b._0x12e282)](_0xb7727c['call_id'],_0x10f29f)),[{'type':_0x2a7dc6(_0x4c2b1b._0x254854,_0x4c2b1b._0x4844c8,0x63d,0x608),'id':_0xb7727c[_0x2a7dc6(_0x4c2b1b._0x55a581,_0x4c2b1b._0x1d127a,_0x4c2b1b._0x567640,0x6ba)],'index':_0x10f29f??0x0,'name':_0xb7727c[_0x3e6735(_0x4c2b1b._0x1ece31,_0x4c2b1b._0x2f8665,_0x4c2b1b._0x23e336,_0x4c2b1b._0x57784d)]}];if(_0xb7727c?.[_0x3e6735(_0x4c2b1b._0x394547,0xfa,_0x4c2b1b._0x1e0c17,0x136)]===_0x2a7dc6(_0x4c2b1b._0x467486,0x5ab,_0x4c2b1b._0x525a8e,0x4ea)&&_0xb7727c['id']){const _0x4a81fb=this[_0x2a7dc6(_0x4c2b1b._0x6462f2,_0x4c2b1b._0x33bb07,_0x4c2b1b._0x2658fc,_0x4c2b1b._0x46e0ab)](_0xb7727c['id'],_0x10f29f);_0x10f29f!==void 0x0&&this[_0x2a7dc6(0x5a7,_0x4c2b1b._0x44c15d,_0x4c2b1b._0xbde05,_0x4c2b1b._0x4be7ab)][_0x3e6735(0x92,0xea,_0x4c2b1b._0x3434d2,_0x4c2b1b._0x2c8abd)](_0x10f29f,_0x4a81fb['id']);}break;}case _0x3e6735(_0x4c2b1b._0x26a24d,0x1d9,0x144,_0x4c2b1b._0x1aa801):{const _0x1a85a6=typeof _0x1ab176['call_id']===_0x3e6735(0x25d,_0x4c2b1b._0x4fe9b1,_0x4c2b1b._0x4e34ae,0x227)?_0x1ab176['call_id']:typeof _0x1ab176['output_index']===_0x2a7dc6(0x5fe,0x67d,0x636,_0x4c2b1b._0x2e8fea)?this[_0x2a7dc6(0x569,0x51e,0x5e3,0x51e)][_0x2a7dc6(0x5b6,_0x4c2b1b._0x2f54ff,_0x4c2b1b._0x5db94f,0x4ca)](_0x1ab176[_0x3e6735(0x1ad,0xca,_0x4c2b1b._0x268458,_0x4c2b1b._0xc179a9)]):void 0x0,_0x3be32a=typeof _0x1ab176['delta']==='string'?_0x1ab176[_0x3e6735(0xb3,0x1ce,0x205,_0x4c2b1b._0x8c56be)]:'',_0x49784e=_0x1a85a6?this[_0x2a7dc6(0x5e2,_0x4c2b1b._0x4b8628,_0x4c2b1b._0x2200b8,_0x4c2b1b._0x4362cf)][_0x3e6735(_0x4c2b1b._0x48b582,_0x4c2b1b._0x10fc11,_0x4c2b1b._0x20c870,0xf7)](_0x1a85a6):void 0x0;if(_0x49784e&&_0x3be32a[_0x3e6735(_0x4c2b1b._0x5c4169,_0x4c2b1b._0x36a4c8,_0x4c2b1b._0x317832,_0x4c2b1b._0x2686b1)]>0x0)return _0x49784e['function'][_0x3e6735(_0x4c2b1b._0x20c16e,_0x4c2b1b._0x1b58f5,_0x4c2b1b._0x5604b6,_0x4c2b1b._0x221539)]+=_0x3be32a,[{'type':_0x2a7dc6(_0x4c2b1b._0x3e1cdf,_0x4c2b1b._0xd77ca1,_0x4c2b1b._0xfa0167,0x6a4),'id':_0x49784e['id'],'index':this[_0x2a7dc6(_0x4c2b1b._0x421530,_0x4c2b1b._0x3ec606,0x6b8,0x55c)][_0x3e6735(_0x4c2b1b._0x4b25da,_0x4c2b1b._0x411781,_0x4c2b1b._0x5d3d9b,_0x4c2b1b._0x110196)](_0x49784e['id'])??(typeof _0x1ab176[_0x3e6735(0x8a,0x83,0x98,_0x4c2b1b._0xc179a9)]==='number'?_0x1ab176[_0x2a7dc6(0x543,_0x4c2b1b._0x2d458b,_0x4c2b1b._0x2f4a7f,0x482)]:0x0),'inputDelta':_0x3be32a}];break;}case _0x2a7dc6(_0x4c2b1b._0x38dc03,0x67b,0x5c0,_0x4c2b1b._0x524ab1):{const _0x1b827b=typeof _0x1ab176[_0x3e6735(0x14b,0x238,0x18c,_0x4c2b1b._0x54fc18)]===_0x2a7dc6(0x628,0x663,0x681,0x6bb)?_0x1ab176[_0x3e6735(0x1a9,_0x4c2b1b._0x155c8d,0x194,0x1e6)]:typeof _0x1ab176[_0x3e6735(0x18a,_0x4c2b1b._0x490918,_0x4c2b1b._0x110196,_0x4c2b1b._0x476cf0)]===_0x2a7dc6(0x743,_0x4c2b1b._0x126364,_0x4c2b1b._0x44440a,_0x4c2b1b._0x2a2db1)?this[_0x3e6735(_0x4c2b1b._0x1f9b53,0x18b,_0x4c2b1b._0x215b86,_0x4c2b1b._0x39dfe5)][_0x3e6735(0xd2,_0x4c2b1b._0x4cb318,0x103,_0x4c2b1b._0x110196)](_0x1ab176['output_index']):void 0x0,_0x168f2f=_0x1b827b?this['toolCalls'][_0x3e6735(0xa0,_0x4c2b1b._0xbbc62f,0x138,_0x4c2b1b._0x110196)](_0x1b827b):void 0x0;_0x168f2f&&typeof _0x1ab176[_0x2a7dc6(_0x4c2b1b._0x4ecffc,0x574,_0x4c2b1b._0xd08924,0x4cb)]===_0x3e6735(_0x4c2b1b._0x324a5e,0x1b7,0x1a0,_0x4c2b1b._0x3a2161)&&(_0x168f2f[_0x2a7dc6(0x651,0x67a,0x5c1,_0x4c2b1b._0x394e96)]['arguments']=_0x1ab176[_0x2a7dc6(_0x4c2b1b._0x398154,0x574,_0x4c2b1b._0xc09b10,0x55a)]);break;}case _0x3e6735(_0x4c2b1b._0x495797,0xf7,0x1e5,0x154):{const _0x4ed945=typeof _0x1ab176[_0x2a7dc6(_0x4c2b1b._0x98b859,0x547,0x540,_0x4c2b1b._0x41c3da)]==='number'?_0x1ab176[_0x3e6735(_0x4c2b1b._0x2c25bf,_0x4c2b1b._0x45868c,0x129,_0x4c2b1b._0x476cf0)]:void 0x0,_0x283289=_0x1ab176['item'];if(_0x283289?.[_0x2a7dc6(_0x4c2b1b._0xac2e86,0x572,0x4f9,_0x4c2b1b._0x40bb5b)]==='function_call'){const _0x1c9a72=_0x283289[_0x2a7dc6(0x619,_0x4c2b1b._0x56c62b,0x5cf,0x56e)]??(_0x4ed945!==void 0x0?this['outputIndexToCallId'][_0x3e6735(0x1b7,_0x4c2b1b._0x1f9b53,0x15a,0xf7)](_0x4ed945):void 0x0),_0x3d79c5=_0x1c9a72?this[_0x2a7dc6(_0x4c2b1b._0x31e281,0x588,_0x4c2b1b._0x2e6c07,0x554)][_0x2a7dc6(_0x4c2b1b._0x55afe8,0x533,_0x4c2b1b._0x398c78,0x58d)](_0x1c9a72):void 0x0;_0x3d79c5&&typeof _0x283289[_0x2a7dc6(0x561,_0x4c2b1b._0x45e206,_0x4c2b1b._0x4b8628,_0x4c2b1b._0x4eef6c)]===_0x3e6735(_0x4c2b1b._0x229421,0x280,0x167,0x227)&&(_0x3d79c5['function']['arguments']=_0x283289[_0x3e6735(0x1ae,0x1fb,_0x4c2b1b._0x3c2caa,0x138)]);break;}if(_0x283289?.['type']==='reasoning'&&_0x283289['id']){const _0x3b74a2=this[_0x2a7dc6(0x662,_0x4c2b1b._0x347829,0x574,0x626)](_0x283289['id'],_0x4ed945);typeof _0x283289[_0x3e6735(_0x4c2b1b._0x49927b,0x93,_0x4c2b1b._0x20c870,_0x4c2b1b._0x561b37)]==='string'&&(_0x3b74a2[_0x2a7dc6(0x50b,0x546,0x544,_0x4c2b1b._0x3f275c)]=_0x283289[_0x3e6735(0x1cc,_0x4c2b1b._0x5a2ca6,_0x4c2b1b._0xda9d81,0x13d)]);if(Array['isArray'](_0x283289[_0x2a7dc6(0x5cc,0x56a,_0x4c2b1b._0xb0d907,0x577)]))for(let _0x3a7ea3=0x0;_0x3a7ea3<_0x283289['summary'][_0x3e6735(0x142,_0x4c2b1b._0x5b3d18,_0x4c2b1b._0x142e88,_0x4c2b1b._0x4319bd)];_0x3a7ea3+=0x1){const _0xbade69=_0x283289['summary'][_0x3a7ea3];_0xbade69[_0x3e6735(_0x4c2b1b._0x1538c9,0x85,0x80,_0x4c2b1b._0x160498)]===_0x2a7dc6(_0x4c2b1b._0x599b97,0x5ad,0x556,_0x4c2b1b._0x37cf36)&&typeof _0xbade69[_0x2a7dc6(0x5b5,_0x4c2b1b._0x2a8533,0x597,_0x4c2b1b._0x56dac9)]==='string'&&_0x3b74a2[_0x2a7dc6(0x637,0x66d,_0x4c2b1b._0x3044c2,_0x4c2b1b._0x58e7a9)][_0x3e6735(0x29,_0x4c2b1b._0x18965d,0x188,_0x4c2b1b._0x1f5c5e)](_0x3a7ea3,_0xbade69['text']);}typeof _0x283289[_0x3e6735(0x2ca,_0x4c2b1b._0x12cbcf,0x226,_0x4c2b1b._0x11b90c)]==='string'&&_0x3b74a2['textByIndex'][_0x3e6735(_0x4c2b1b._0x20c870,_0x4c2b1b._0x427556,0xef,_0x4c2b1b._0x1f5c5e)](0x0,_0x283289['text']);}break;}case _0x2a7dc6(_0x4c2b1b._0x3b3c70,_0x4c2b1b._0xd4ee4d,_0x4c2b1b._0x22f634,_0x4c2b1b._0x12fe96):{const _0x1c8886=typeof _0x1ab176[_0x2a7dc6(0x50c,0x5b3,_0x4c2b1b._0x3c51b0,_0x4c2b1b._0x2e8fea)]===_0x2a7dc6(0x6c8,_0x4c2b1b._0x1dac5f,0x5eb,0x62a)?_0x1ab176[_0x2a7dc6(0x626,_0x4c2b1b._0x30043d,_0x4c2b1b._0x748020,0x55f)]:'',_0x1f40e4=typeof _0x1ab176[_0x3e6735(_0x4c2b1b._0x2d9fb5,_0x4c2b1b._0x747d52,0xf2,_0x4c2b1b._0x407170)]==='string'?_0x1ab176['item_id']:typeof _0x1ab176['output_index']==='number'?this['outputIndexToReasoningId'][_0x2a7dc6(0x54b,_0x4c2b1b._0x2f61bb,0x5f9,0x50a)](_0x1ab176[_0x2a7dc6(_0x4c2b1b._0x12ac9a,_0x4c2b1b._0xb09360,_0x4c2b1b._0x1d0521,_0x4c2b1b._0x59db98)]):void 0x0,_0x3ddb1f=typeof _0x1ab176[_0x2a7dc6(0x5e5,0x547,0x51a,0x564)]===_0x3e6735(0x17c,_0x4c2b1b._0x56c1b1,0x1c7,_0x4c2b1b._0x511cdb)?_0x1ab176[_0x3e6735(_0x4c2b1b._0x3a8f29,0x1a6,_0x4c2b1b._0x2a705c,0x10b)]:0x0,_0x2aef42=typeof _0x1ab176['summary_index']===_0x3e6735(0x2ab,0x213,0x2b6,0x241)?_0x1ab176[_0x2a7dc6(0x6dc,_0x4c2b1b._0x394e96,_0x4c2b1b._0x25bfde,0x669)]:0x0;if(_0x1f40e4&&_0x1c8886[_0x3e6735(_0x4c2b1b._0x468e4a,_0x4c2b1b._0x2dec9f,_0x4c2b1b._0x37d330,0x1f5)]>0x0){const _0x46c15d=this[_0x3e6735(0x1c7,0x126,_0x4c2b1b._0x206571,0x1a7)](_0x1f40e4,_0x3ddb1f);_0x46c15d[_0x3e6735(_0x4c2b1b._0xb94110,_0x4c2b1b._0x339bff,_0x4c2b1b._0x1414c7,0x231)]['set'](_0x2aef42,''+(_0x46c15d[_0x2a7dc6(_0x4c2b1b._0xa5cef7,_0x4c2b1b._0x2dd571,_0x4c2b1b._0x4dade1,0x696)][_0x3e6735(0x10a,0x61,0xa9,_0x4c2b1b._0x2cd7b4)](_0x2aef42)??'')+_0x1c8886);if(isUserVisibleReasoning(this[_0x2a7dc6(0x55d,0x4fd,_0x4c2b1b._0x4ec913,0x588)]))return[{'type':_0x2a7dc6(_0x4c2b1b._0x1dac5f,_0x4c2b1b._0x1a214b,_0x4c2b1b._0x225140,_0x4c2b1b._0x54dbd9),'delta':_0x1c8886,'itemId':_0x1f40e4,'outputIndex':_0x3ddb1f,'summaryIndex':_0x2aef42}];}break;}case _0x2a7dc6(0x567,0x5a4,_0x4c2b1b._0x4844c8,0x658):{const _0x5d756b=typeof _0x1ab176[_0x2a7dc6(0x6ae,0x5f1,0x531,0x569)]===_0x2a7dc6(0x700,_0x4c2b1b._0x43dbc4,0x6b7,0x6fb)?_0x1ab176[_0x2a7dc6(0x603,0x5f1,_0x4c2b1b._0x4d891b,0x686)]:typeof _0x1ab176['output_index']===_0x2a7dc6(_0x4c2b1b._0x313528,0x67d,_0x4c2b1b._0x226011,0x672)?this[_0x3e6735(_0x4c2b1b._0x39b054,0x109,_0x4c2b1b._0x133db0,_0x4c2b1b._0x481caf)][_0x3e6735(0x14c,0x113,_0x4c2b1b._0x803ad9,0xf7)](_0x1ab176[_0x2a7dc6(0x4b1,_0x4c2b1b._0x2d458b,_0x4c2b1b._0x52ef3f,_0x4c2b1b._0x3cb1f9)]):void 0x0,_0x2f4995=typeof _0x1ab176[_0x3e6735(0x141,_0x4c2b1b._0x40297d,_0x4c2b1b._0x694158,0x10b)]===_0x2a7dc6(_0x4c2b1b._0x26d0a2,_0x4c2b1b._0x1a2132,_0x4c2b1b._0x29b172,_0x4c2b1b._0x2b618e)?_0x1ab176['output_index']:0x0,_0x3b7475=typeof _0x1ab176[_0x3e6735(0x236,0x2a2,_0x4c2b1b._0x286025,0x1ed)]==='number'?_0x1ab176[_0x2a7dc6(_0x4c2b1b._0x16ea2a,0x629,0x5d2,_0x4c2b1b._0x45e279)]:0x0,_0x3f7463=typeof _0x1ab176[_0x3e6735(_0x4c2b1b._0x511cdb,0x23b,_0x4c2b1b._0x241f9f,0x218)]===_0x3e6735(_0x4c2b1b._0x5ce40e,0x191,0x29b,0x227)?_0x1ab176['text']:'';_0x5d756b&&this[_0x3e6735(_0x4c2b1b._0x2b4642,0x122,_0x4c2b1b._0x5794c1,_0x4c2b1b._0x108185)](_0x5d756b,_0x2f4995)[_0x2a7dc6(_0x4c2b1b._0x3703c8,_0x4c2b1b._0x2dd571,_0x4c2b1b._0x25ca2e,0x5c7)][_0x3e6735(_0x4c2b1b._0x4712a4,0x35,0xb6,0xe6)](_0x3b7475,_0x3f7463);break;}case _0x3e6735(0x19b,0x275,0x1e7,_0x4c2b1b._0x1b0fa5):{const _0x3df8fe=typeof _0x1ab176['delta']===_0x2a7dc6(_0x4c2b1b._0x4defe1,0x663,_0x4c2b1b._0x513911,0x5cc)?_0x1ab176[_0x3e6735(_0x4c2b1b._0x12306f,0x134,0x1c9,_0x4c2b1b._0x185915)]:'',_0x236039=typeof _0x1ab176['item_id']==='string'?_0x1ab176[_0x2a7dc6(0x679,0x5f1,_0x4c2b1b._0x225ca7,0x6b3)]:typeof _0x1ab176['output_index']==='number'?this[_0x2a7dc6(_0x4c2b1b._0x1ee136,_0x4c2b1b._0x303467,0x4c2,_0x4c2b1b._0x4c5045)]['get'](_0x1ab176['output_index']):void 0x0,_0x29ba3f=typeof _0x1ab176[_0x3e6735(_0x4c2b1b._0x6a89ab,_0x4c2b1b._0x66d2fe,0x7f,_0x4c2b1b._0x476cf0)]===_0x2a7dc6(0x636,_0x4c2b1b._0x12fd50,0x5bd,0x679)?_0x1ab176[_0x3e6735(_0x4c2b1b._0xe67ce8,0xa3,_0x4c2b1b._0x556934,0x10b)]:0x0,_0x3e7850=typeof _0x1ab176[_0x2a7dc6(0x600,0x639,_0x4c2b1b._0x5e1c1a,_0x4c2b1b._0x4af278)]===_0x3e6735(_0x4c2b1b._0x1b47f0,0x1bc,0x287,0x241)?_0x1ab176[_0x2a7dc6(0x669,_0x4c2b1b._0x1e6811,0x60b,0x692)]:0x0;if(_0x236039&&_0x3df8fe[_0x3e6735(0x188,_0x4c2b1b._0x456906,0x229,_0x4c2b1b._0x5c1e50)]>0x0){const _0x39ba7c=this[_0x2a7dc6(_0x4c2b1b._0x478e5f,_0x4c2b1b._0x33bb07,0x5de,0x5bd)](_0x236039,_0x29ba3f);_0x39ba7c[_0x2a7dc6(_0x4c2b1b._0x41c3da,0x56f,_0x4c2b1b._0xc28ff6,0x557)][_0x2a7dc6(0x587,_0x4c2b1b._0x433c2e,0x56d,0x5b3)](_0x3e7850,''+(_0x39ba7c[_0x3e6735(_0x4c2b1b._0x441a3e,0x141,0x13e,0x133)]['get'](_0x3e7850)??'')+_0x3df8fe);if(isUserVisibleReasoning(this[_0x2a7dc6(0x54e,0x4fd,_0x4c2b1b._0x28f4e7,0x582)]))return[{'type':_0x2a7dc6(_0x4c2b1b._0xc7018c,0x589,0x612,_0x4c2b1b._0x598352),'contentIndex':_0x3e7850,'delta':_0x3df8fe,'itemId':_0x236039,'outputIndex':_0x29ba3f}];}break;}case _0x3e6735(0x1b8,_0x4c2b1b._0x5c2aa1,0x140,_0x4c2b1b._0x3f7471):{const _0x31a83e=typeof _0x1ab176[_0x3e6735(0x217,0x19c,0x165,0x1b5)]===_0x2a7dc6(_0x4c2b1b._0x4ee2e9,_0x4c2b1b._0x54ddc8,0x5f6,_0x4c2b1b._0x45807b)?_0x1ab176[_0x2a7dc6(_0x4c2b1b._0xf6a9f4,0x5f1,0x5ff,_0x4c2b1b._0x351402)]:typeof _0x1ab176[_0x2a7dc6(_0x4c2b1b._0x2d4feb,0x547,0x5b5,0x594)]===_0x2a7dc6(_0x4c2b1b._0x2f8a08,0x67d,0x655,_0x4c2b1b._0x40ac43)?this[_0x3e6735(_0x4c2b1b._0x2b32a2,0x5f,_0x4c2b1b._0x216467,_0x4c2b1b._0x481caf)][_0x3e6735(_0x4c2b1b._0xf82e14,0x13d,_0x4c2b1b._0x1706e3,_0x4c2b1b._0x110196)](_0x1ab176[_0x3e6735(_0x4c2b1b._0x26eae0,_0x4c2b1b._0xe67ce8,0x59,_0x4c2b1b._0x4ca77c)]):void 0x0,_0x172d3f=typeof _0x1ab176[_0x3e6735(0x1a8,0xbb,0x1b5,_0x4c2b1b._0x4d5310)]===_0x2a7dc6(_0x4c2b1b._0x55ecee,0x67d,0x6b1,0x6fb)?_0x1ab176[_0x2a7dc6(0x5ac,0x547,0x4ce,0x5e5)]:0x0,_0xc5311d=typeof _0x1ab176[_0x3e6735(0x289,_0x4c2b1b._0x41c784,_0x4c2b1b._0x23d936,_0x4c2b1b._0x12da7c)]===_0x2a7dc6(_0x4c2b1b._0x1ebfc6,_0x4c2b1b._0x57806d,_0x4c2b1b._0x118678,0x727)?_0x1ab176[_0x3e6735(0x281,_0x4c2b1b._0x25922c,0x178,_0x4c2b1b._0x12da7c)]:0x0,_0xebe856=typeof _0x1ab176[_0x3e6735(0x1ea,0x1ce,0x267,_0x4c2b1b._0x11b90c)]==='string'?_0x1ab176['text']:'';_0x31a83e&&this[_0x2a7dc6(0x656,0x5e3,_0x4c2b1b._0x1e326b,_0x4c2b1b._0x467f6d)](_0x31a83e,_0x172d3f)[_0x2a7dc6(_0x4c2b1b._0x56c62b,_0x4c2b1b._0x3518a0,_0x4c2b1b._0x49f0d9,0x4f0)][_0x2a7dc6(0x546,0x522,_0x4c2b1b._0x3184cf,_0x4c2b1b._0x2d6673)](_0xc5311d,_0xebe856);break;}case _0x3e6735(_0x4c2b1b._0x339f64,_0x4c2b1b._0x3dfa8a,0xcb,0x118):{this['finalResponse']=_0x1ab176[_0x2a7dc6(0x623,_0x4c2b1b._0x5a2ad5,_0x4c2b1b._0x323e7d,0x5fe)];break;}case _0x3e6735(_0x4c2b1b._0x2fd544,_0x4c2b1b._0x5013b6,0xfc,_0x4c2b1b._0x5f221a):{const _0x2a3e64=_0x1ab176['response'];throw new OpenAiResponsesStreamError(_0x2a3e64?.[_0x3e6735(0xe8,_0x4c2b1b._0x257916,0xf,_0x4c2b1b._0x4e148a)]?.[_0x2a7dc6(0x523,0x5be,_0x4c2b1b._0x217e7b,0x577)]??_0x2a7dc6(0x5fa,0x5d5,_0x4c2b1b._0x10b059,_0x4c2b1b._0x29b172),{'code':_0x2a3e64?.['error']?.['code']});}case _0x3e6735(0x122,_0x4c2b1b._0x4e148a,0xdf,0xbf):{const _0x3fcafd=_0x1ab176[_0x3e6735(_0x4c2b1b._0x240ac8,0x13,0x123,0xbf)];throw new OpenAiResponsesStreamError(_0x3fcafd?.[_0x3e6735(0x244,0x127,0x1ea,0x182)]??_0x3e6735(_0x4c2b1b._0x5e7a0b,0xd4,_0x4c2b1b._0x505d58,_0x4c2b1b._0x230a25),{'code':_0x3fcafd?.[_0x3e6735(0x25c,0x26a,_0x4c2b1b._0x1b0e9b,0x216)],'status':typeof _0x1ab176['status']===_0x3e6735(0x270,0x1e4,0x2d3,_0x4c2b1b._0x511cdb)?_0x1ab176[_0x3e6735(_0x4c2b1b._0x5831ad,_0x4c2b1b._0x5d5a57,0xcc,_0x4c2b1b._0x54e662)]:void 0x0});}}return[];}['buildPartialOutput'](){const _0x234aa3={_0x3f5e48:0xd3,_0x2e0cd0:0x8c,_0x4477f0:0x231,_0x7a2400:0x16c,_0xe67baf:0x7,_0x2115b4:0xf9,_0x38d893:0x138,_0x19b09e:0x7e,_0x13e854:0xf6,_0x12d0c5:0x65,_0x2cf0e5:0xc2,_0x110f54:0x15e,_0x182306:0x92,_0x428133:0x101,_0x1a126c:0x55,_0xbc5244:0x100,_0x3e97b7:0xdf,_0x2838b2:0x165,_0x497ab9:0x102,_0x530ed2:0x22a,_0x4dbb3f:0xe3,_0x46991e:0x218,_0x4a76de:0x1b3,_0x56c1a2:0x75,_0x261a08:0xaa,_0x5c9cbd:0x160,_0x3c6c4f:0x18a,_0x41474f:0x2a,_0x5a0b5d:0x158,_0x1508ba:0x1b3,_0x158fcd:0x174,_0x138cf8:0x18b,_0x3208f9:0xc6,_0x1bb5d8:0x7c,_0xb8766a:0xfd,_0xd841a9:0xd0,_0x379ef8:0x2,_0x4b9ba8:0x92,_0x57e746:0x127,_0x6671b2:0x217,_0x5b17d5:0x237,_0x57c858:0x182,_0x42168b:0x1fe,_0x14adce:0xa8,_0xb79663:0xb,_0x4b1d93:0x16c,_0x2c1bd0:0x191,_0x1523a5:0x1ef,_0x28837d:0x151,_0x120b03:0x142,_0x8e379c:0x1f1,_0x21083f:0x181,_0xce4410:0xa6,_0x4303af:0x60,_0x33550e:0x126,_0x541a73:0x1a,_0x24afe5:0xc1,_0x26a826:0x1c7},_0x423e72={_0x2241ee:0xd5,_0x52e658:0x252,_0x31c166:0x187},_0x2262ed={_0x123a85:0x141,_0x31fc5a:0x218},_0x3705f1={_0x22d0ad:0x205,_0x224bbc:0x295},_0x5d417d={_0x1302d3:0xe3,_0x53a74d:0x1ad},_0x1e6cf0=[];for(const [_0x37cbef,_0x2dbe81]of this[_0x55d36e(0xa1,0x46,0x1f,0x79)][_0x55d36e(0xc0,_0x234aa3._0x3f5e48,0x76,0x48)]()){const _0x572285=_0x2dbe81[_0x55d36e(0x140,_0x234aa3._0x2e0cd0,0xa2,0x2)]('');if(_0x572285[_0x55d36e(_0x234aa3._0x4477f0,_0x234aa3._0x7a2400,0xc5,0xbe)]===0x0)continue;_0x1e6cf0[_0x4f9f4e(0x8c,_0x234aa3._0xe67baf,0xcc,0x185)]({'index':_0x37cbef,'item':{'type':_0x55d36e(0x1b1,_0x234aa3._0x2115b4,_0x234aa3._0x38d893,0x1af),'role':'assistant','content':[{'type':'output_text','text':_0x572285}]}});}for(const _0xceb036 of this[_0x4f9f4e(0x7c,_0x234aa3._0x19b09e,_0x234aa3._0x13e854,_0x234aa3._0x12d0c5)][_0x55d36e(0x152,_0x234aa3._0x2cf0e5,_0x234aa3._0x110f54,0x9e)]()){_0x1e6cf0[_0x55d36e(-0x21,_0x234aa3._0x182306,0xe2,0x13e)]({'index':_0xceb036[_0x55d36e(_0x234aa3._0x428133,_0x234aa3._0x1a126c,0x9d,0x29)]??_0x1e6cf0[_0x55d36e(_0x234aa3._0xbc5244,_0x234aa3._0x7a2400,0x203,_0x234aa3._0x3e97b7)],'item':{'type':_0x55d36e(0x11d,0xe6,_0x234aa3._0x2838b2,0x9a),'id':_0xceb036['id'],..._0xceb036['encryptedContent']?{'encrypted_content':_0xceb036[_0x55d36e(0x37,0x81,-0x20,_0x234aa3._0x497ab9)]}:{},..._0xceb036['summaryByIndex'][_0x4f9f4e(_0x234aa3._0x530ed2,_0x234aa3._0x4dbb3f,0x19a,_0x234aa3._0x46991e)]>0x0?{'summary':Array['from'](_0xceb036['summaryByIndex'][_0x55d36e(0xec,_0x234aa3._0x3f5e48,0xb7,0x98)]())['sort']((_0x58d936,_0x1c7238)=>_0x58d936[0x0]-_0x1c7238[0x0])[_0x55d36e(0x17c,_0x234aa3._0x4a76de,0x123,0x120)](([,_0x17d73e])=>{function _0x2e0110(_0x15cdc4,_0x3c9659,_0x21c428,_0x20495a){return _0x55d36e(_0x15cdc4-_0x5d417d._0x1302d3,_0x20495a-_0x5d417d._0x53a74d,_0x21c428-0x163,_0x15cdc4);}return{'type':_0x2e0110(_0x3705f1._0x22d0ad,0x24d,0x294,_0x3705f1._0x224bbc),'text':_0x17d73e};})}:{},..._0xceb036[_0x55d36e(_0x234aa3._0x56c1a2,_0x234aa3._0x261a08,-0xf,0x52)][_0x55d36e(0x1e4,_0x234aa3._0x5c9cbd,0x9e,0x201)]>0x0?{'text':Array[_0x4f9f4e(0x2b4,_0x234aa3._0x3c6c4f,0x1f5,0x25b)](_0xceb036[_0x55d36e(_0x234aa3._0x41474f,_0x234aa3._0x261a08,_0x234aa3._0x5a0b5d,0xb1)]['entries']())['sort']((_0x5d718a,_0x2fd8d5)=>_0x5d718a[0x0]-_0x2fd8d5[0x0])[_0x55d36e(0xff,_0x234aa3._0x1508ba,_0x234aa3._0x158fcd,_0x234aa3._0x138cf8)](([,_0x5c50dc])=>_0x5c50dc)[_0x4f9f4e(0x5d,_0x234aa3._0x261a08,_0x234aa3._0x3208f9,0x130)]('')}:{}}});}function _0x4f9f4e(_0x5d100c,_0x11d37c,_0x1faeba,_0x5be496){return _0x3921cc(_0x5d100c-_0x2262ed._0x123a85,_0x1faeba- -_0x2262ed._0x31fc5a,_0x5d100c,_0x5be496-0xec);}function _0x55d36e(_0x1fe0a8,_0x760e7a,_0x1aa131,_0x11f569){return _0x3921cc(_0x1fe0a8-_0x423e72._0x2241ee,_0x760e7a- -_0x423e72._0x52e658,_0x11f569,_0x11f569-_0x423e72._0x31c166);}for(const _0x42a6ef of this[_0x4f9f4e(0xfe,_0x234aa3._0x1bb5d8,_0x234aa3._0xb8766a,_0x234aa3._0xd841a9)]['values']()){_0x1e6cf0[_0x55d36e(_0x234aa3._0x379ef8,_0x234aa3._0x4b9ba8,0x30,_0x234aa3._0x57e746)]({'index':this[_0x4f9f4e(_0x234aa3._0x6671b2,_0x234aa3._0x5b17d5,_0x234aa3._0x57c858,_0x234aa3._0x42168b)][_0x4f9f4e(0x61,-0x2,_0x234aa3._0x14adce,-_0x234aa3._0xb79663)](_0x42a6ef['id'])??_0x1e6cf0[_0x55d36e(0x10a,_0x234aa3._0x4b1d93,_0x234aa3._0x497ab9,0x165)],'item':{'type':_0x4f9f4e(0x203,0x102,0x168,_0x234aa3._0x2c1bd0),'call_id':_0x42a6ef['id'],'name':_0x42a6ef[_0x4f9f4e(0x1ed,0x13d,_0x234aa3._0x1523a5,0x265)][_0x4f9f4e(_0x234aa3._0x28837d,_0x234aa3._0x120b03,_0x234aa3._0x8e379c,_0x234aa3._0x21083f)],'arguments':_0x42a6ef['function'][_0x4f9f4e(0xed,_0x234aa3._0xce4410,0xe9,_0x234aa3._0x4303af)]}});}return _0x1e6cf0[_0x55d36e(_0x234aa3._0x33550e,0x6d,_0x234aa3._0x541a73,_0x234aa3._0x24afe5)]((_0x4d8efe,_0x4da2f1)=>_0x4d8efe['index']-_0x4da2f1[_0x4f9f4e(0x5c,0x7f,0xd5,0xa5)])[_0x55d36e(_0x234aa3._0x26a826,0x1b3,0x120,0x1b6)](_0x102e70=>_0x102e70[_0x55d36e(0x7f,0x77,0x112,0x13b)]);}[_0x4abdca(0x4a5,0x510,0x45d,0x5ac)](_0x1dc931,_0x1d1851){const _0x401d9c={_0x3bf333:0x25e,_0x5ce14f:0x1cf,_0x1b9237:0x190,_0x3a5751:0x2c7,_0x11953a:0x182,_0x683889:0x96,_0x3959d7:0x302,_0x22abc4:0x21f,_0x18cc58:0x255,_0x102a40:0x17c,_0x577e30:0xd,_0x592b94:0x84},_0x174133={_0xf745da:0x180,_0xfc159a:0xb0},_0x5c10e6={_0x1851c4:0x1d8,_0x52d653:0x127},_0x2b34ae=this[_0x1a8e75(_0x401d9c._0x3bf333,_0x401d9c._0x5ce14f,0x242,0x204)][_0x1a8e75(0x210,_0x401d9c._0x1b9237,_0x401d9c._0x3a5751,_0x401d9c._0x11953a)](_0x1dc931);function _0x2a6472(_0x22541f,_0x185f63,_0x3e1e1f,_0x35b15a){return _0x4abdca(_0x22541f-_0x5c10e6._0x1851c4,_0x3e1e1f- -0x457,_0x3e1e1f-_0x5c10e6._0x52d653,_0x185f63);}function _0x1a8e75(_0x3f16cc,_0x2a8416,_0x532e5f,_0x3cc49a){return _0x3921cc(_0x3f16cc-_0x174133._0xf745da,_0x3f16cc- -_0x174133._0xfc159a,_0x532e5f,_0x3cc49a-0x17b);}if(_0x2b34ae)return _0x1d1851!==void 0x0&&(_0x2b34ae['outputIndex']=_0x1d1851,this[_0x2a6472(_0x401d9c._0x683889,0x3c,0x18,0xa5)]['set'](_0x1d1851,_0x1dc931)),_0x2b34ae;const _0x287d64={'id':_0x1dc931,'outputIndex':_0x1d1851,'summaryByIndex':new Map(),'textByIndex':new Map()};return this[_0x1a8e75(_0x401d9c._0x3bf333,0x1a0,0x1a6,_0x401d9c._0x3959d7)]['set'](_0x1dc931,_0x287d64),_0x1d1851!==void 0x0&&this[_0x1a8e75(_0x401d9c._0x22abc4,0x16a,_0x401d9c._0x18cc58,_0x401d9c._0x102a40)][_0x2a6472(-_0x401d9c._0x577e30,0x4d,-0x8,_0x401d9c._0x592b94)](_0x1d1851,_0x1dc931),_0x287d64;}};function createOpenAiResponsesStreamParser(_0x13e6e6){return new OpenAiResponsesStreamParser(_0x13e6e6);}function createOpenAiSurfaces(_0x1e4b1a={}){const _0x47511f={_0x23555b:0xee,_0xfb8c55:0x611,_0xea1e9f:0x69b,_0x2e1231:0x120,_0xa9fd42:0x134,_0xc8cf5a:0x14b,_0x5b6513:0x1d1,_0x217e22:0x1be,_0x12801b:0x615,_0x4a15e9:0x614,_0x252a93:0x14b,_0x21fc83:0x1a2},_0x45b07f={_0x8fe37b:0x142,_0x1eddc5:0x5f,_0x3cebf1:0xf5},_0xceb63e={_0x1f5df6:0x4b8,_0x5a08da:0x415},_0x1fa11f={_0x5cc0f6:0x9f},_0x16008d={_0x107147:0x469,_0x2fde79:0x434,_0x2f1449:0x472},_0x314958={_0x223ab6:0x30a},_0x503e42={_0x407ade:0xf,_0x4b069c:0x3af,_0x107a0f:0x3f},_0x1afdef={_0x2ab349:0x2c8};function _0x32c8ab(_0x5cb604,_0x573ab4,_0x3a0375,_0x3e02cb){return _0x3921cc(_0x5cb604-0x4c,_0x3a0375-_0x1afdef._0x2ab349,_0x5cb604,_0x3e02cb-0x19e);}const _0x162679=_0x1e4b1a[_0x1a4180(0x8b,_0x47511f._0x23555b,0xb7,0xeb)]??_0x32c8ab(_0x47511f._0xfb8c55,0x6dd,_0x47511f._0xea1e9f,0x5eb),_0x2b7486=_0x1e4b1a[_0x1a4180(0x10a,_0x47511f._0x2e1231,_0x47511f._0xa9fd42,_0x47511f._0xc8cf5a)]??'/responses';function _0x1a4180(_0xc0465,_0x13e0a8,_0x606038,_0x58998a){return _0x4abdca(_0xc0465-_0x503e42._0x407ade,_0x606038- -_0x503e42._0x4b069c,_0x606038-_0x503e42._0x107a0f,_0x13e0a8);}return[{'id':OPENAI_CHAT_COMPLETIONS_SURFACE,'transport':'http-json','createRequest'(_0x372f3e){function _0x4538c4(_0x2b779a,_0x334ff8,_0x3109f8,_0x3e6dae){return _0x1a4180(_0x2b779a-0x18f,_0x3e6dae,_0x2b779a-_0x314958._0x223ab6,_0x3e6dae-0xab);}return{'accept':_0x4538c4(_0x16008d._0x107147,_0x16008d._0x2fde79,0x4f5,_0x16008d._0x2f1449),'body':createChatRequestBody(_0x372f3e,![]),'path':_0x162679};},'parseResponse'(_0x26904b){return parseChatCompletionResponse(_0x26904b);}},{'id':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,'transport':_0x1a4180(0x164,_0x47511f._0x5b6513,_0x47511f._0x217e22,0x20b),'createRequest'(_0x3d3b60){const _0x186be1={_0x17314f:0xc7,_0x556108:0x4b7,_0x422ef4:0x188};function _0x2d41ed(_0x1c42a6,_0x538286,_0x5eb762,_0x7fdba2){return _0x32c8ab(_0x5eb762,_0x538286-_0x186be1._0x17314f,_0x1c42a6- -_0x186be1._0x556108,_0x7fdba2-_0x186be1._0x422ef4);}return{'accept':_0x2d41ed(0xab,_0x1fa11f._0x5cc0f6,0x29,0x39),'body':createChatRequestBody(_0x3d3b60,!![]),'path':_0x162679};},'createStreamParser'(_0xb282b4){return new OpenAiChatCompletionsStreamParser(_0xb282b4);}},{'id':OPENAI_RESPONSES_SURFACE,'transport':_0x32c8ab(0x68d,_0x47511f._0x12801b,0x641,_0x47511f._0x4a15e9),'createRequest'(_0x1bbbff){const _0x4f7c4c={_0x20c47c:0x359};function _0xaa952f(_0x51af2e,_0x2d69cd,_0x2a1c90,_0x47620b){return _0x1a4180(_0x51af2e-0x12a,_0x2d69cd,_0x2a1c90-_0x4f7c4c._0x20c47c,_0x47620b-0x24);}return{'accept':_0xaa952f(0x519,0x4c5,_0xceb63e._0x1f5df6,_0xceb63e._0x5a08da),'body':createResponsesRequestBody(_0x1bbbff,![]),'path':_0x2b7486};},'parseResponse'(_0x1c0629,_0x18575e){return parseResponsesResponse(_0x1c0629,_0x18575e);}},{'id':OPENAI_RESPONSES_STREAM_SURFACE,'transport':_0x1a4180(0x1e8,_0x47511f._0x252a93,0x1be,_0x47511f._0x21fc83),'createRequest'(_0x3e64f3){const _0x3da5ce={_0x13008e:0xf2,_0x687f54:0x46d};function _0x4c160d(_0x3dbd6b,_0x5c31df,_0x40afec,_0x55d637){return _0x32c8ab(_0x3dbd6b,_0x5c31df-_0x3da5ce._0x13008e,_0x55d637- -_0x3da5ce._0x687f54,_0x55d637-0xa3);}return{'accept':_0x4c160d(_0x45b07f._0x8fe37b,0x13a,_0x45b07f._0x1eddc5,_0x45b07f._0x3cebf1),'body':createResponsesRequestBody(_0x3e64f3,!![]),'path':_0x2b7486};},'createStreamParser'(_0x334a6e){return new OpenAiResponsesStreamParser(_0x334a6e);}},{'id':OPENAI_RESPONSES_WEBSOCKET_SURFACE,'transport':'websocket','createRequest'(_0x45281e){return{'initialEvent':createOpenAiResponsesWebSocketEvent(_0x45281e),'path':_0x2b7486};},'createStreamParser'(_0x5474dc){return createOpenAiResponsesStreamParser(_0x5474dc);}}];}var OpenAiProviderAdapter=class{[_0x3921cc(0x385,0x3d9,0x330,0x33c)];constructor(_0x1ad6f3){const _0x10e9ae={_0x4923cd:0x3a2},_0x21f6bf={_0x579603:0xf8};function _0x4a16a8(_0x18bde3,_0x7a4cdc,_0xc13059,_0x2ff191){return _0x3921cc(_0x18bde3-0x140,_0xc13059- -_0x21f6bf._0x579603,_0x18bde3,_0x2ff191-0xdf);}this[_0x4a16a8(0x371,_0x10e9ae._0x4923cd,0x2e1,0x2e3)]=_0x1ad6f3;}[_0x4abdca(0x3f5,0x42e,0x36d,0x41f)](){const _0x47889f={_0x38648d:0x28,_0xf9b3ec:0x40};function _0x20555a(_0xfbf7b4,_0x154892,_0x60f64a,_0x3324d9){return _0x4abdca(_0xfbf7b4-0x94,_0x60f64a- -0x4a2,_0x60f64a-0x3b,_0xfbf7b4);}return new Error(_0x20555a(-_0x47889f._0x38648d,-0x6d,_0x47889f._0xf9b3ec,0x6f));}async[_0x3921cc(0x325,0x37d,0x3fd,0x3be)](_0x2b114a,_0x46c64b){const _0x4437c6={_0x59c9d4:0x150,_0x2fa42f:0x130,_0x302176:0x13b,_0x48072e:0x1d8,_0x5567c2:0x127,_0x1c1a9e:0x213,_0x1a7020:0x78,_0xf6fb35:0xa8,_0x49222c:0x38,_0x41f0a6:0x9a,_0x59368b:0xfa,_0x46adf0:0x7c,_0x13e401:0x12e,_0x334484:0x12b,_0x5331b3:0x1c1,_0x5cbd3b:0x1f1,_0x47e3ba:0x117,_0x511148:0x164,_0x19ba35:0xaf,_0x112637:0x33,_0x20e228:0x85,_0xccfba4:0x166,_0x899aee:0x17e,_0x5261f2:0x100,_0x3867b8:0xd1,_0x51a634:0x10a,_0x3a5f7a:0x13e,_0x364ad5:0xfb,_0x4bf43b:0x120,_0x30faca:0x1a4,_0x3a8a8f:0x159},_0x57f86d={_0x469d29:0x17,_0x32dad0:0x11b},_0x1240ba={_0x30b5d5:0x67d},_0x3a46c6=new Headers();function _0x5e46aa(_0x27e2ef,_0x21140e,_0x56682d,_0x4c6262){return _0x4abdca(_0x27e2ef-0x198,_0x56682d- -_0x1240ba._0x30b5d5,_0x56682d-0x1d4,_0x21140e);}_0x3a46c6['set'](_0x5e46aa(-_0x4437c6._0x59c9d4,-_0x4437c6._0x2fa42f,-0x1d8,-0x1ac),_0x46c64b[_0x5e46aa(-_0x4437c6._0x302176,-0x205,-_0x4437c6._0x48072e,-0x17f)]),_0x3a46c6[_0x5a590a(-0xe4,-_0x4437c6._0x5567c2,-0x159,-_0x4437c6._0x1c1a9e)](_0x5a590a(-0x164,-_0x4437c6._0x1a7020,-_0x4437c6._0xf6fb35,-0x139),_0x5e46aa(-_0x4437c6._0x49222c,-_0x4437c6._0x41f0a6,-_0x4437c6._0x59368b,-_0x4437c6._0x46adf0)+_0x2b114a['credential'][_0x5a590a(-0x17c,-_0x4437c6._0x13e401,-_0x4437c6._0x334484,-_0x4437c6._0x5331b3)]);_0x46c64b[_0x5a590a(-0x204,-0x227,-0x17b,-_0x4437c6._0x5cbd3b)]!==![]&&_0x3a46c6['set'](_0x5e46aa(-_0x4437c6._0x47e3ba,-_0x4437c6._0x511148,-0xdb,-0x16d),_0x5e46aa(-0x221,-_0x4437c6._0x19ba35,-0x16f,-0xe7));function _0x5a590a(_0x4559a3,_0x1466cb,_0x2155a3,_0x48b47b){return _0x4abdca(_0x4559a3-_0x57f86d._0x469d29,_0x2155a3- -0x5a8,_0x2155a3-_0x57f86d._0x32dad0,_0x4559a3);}const _0x1d6302=await this[_0x5a590a(0x4f,-_0x4437c6._0x112637,-0x2f,-_0x4437c6._0x20e228)]?.({'body':_0x2b114a['body'],'credential':_0x2b114a[_0x5a590a(-0x7d,-0x9c,-0x10b,-_0x4437c6._0xccfba4)],'request':_0x2b114a[_0x5a590a(-0x1c0,-0x1e9,-_0x4437c6._0x899aee,-_0x4437c6._0x5261f2)],'session':_0x2b114a[_0x5e46aa(-0x26e,-0x2a1,-0x234,-0x24a)],'stream':_0x2b114a[_0x5a590a(-_0x4437c6._0x3867b8,-0x142,-0x154,-_0x4437c6._0x51a634)]});for(const [_0xfcfef9,_0x339e03]of Object[_0x5a590a(-0x57,-_0x4437c6._0x3a5f7a,-0xe3,-_0x4437c6._0x364ad5)](_0x1d6302??{})){_0x3a46c6[_0x5a590a(-_0x4437c6._0x4bf43b,-_0x4437c6._0x30faca,-_0x4437c6._0x3a8a8f,-0x1f9)](_0xfcfef9,_0x339e03);}return _0x3a46c6;}[_0x4abdca(0x404,0x456,0x50c,0x4e5)](_0x2c2e7b){return _0x2c2e7b;}['resolveBaseUrl'](_0x2d367e,_0x24032d){return resolveSessionBaseUrl(_0x2d367e,_0x24032d);}[_0x4abdca(0x441,0x496,0x42e,0x41c)](_0x242161,_0x3fe1b7){return resolveApiCredential(_0x242161,_0x3fe1b7);}async[_0x4abdca(0x4db,0x526,0x4ea,0x549)](_0x298923){return await createOpenAiApiError(_0x298923);}},OpenAiModel=class _OpenAiModel extends RoutedModel{static ['sharedResponsesSocketSessions']=new Map();[_0x3921cc(0x327,0x2c6,0x223,0x22b)];[_0x4abdca(0x4f2,0x4e3,0x427,0x496)];constructor(_0x1f9906={}){const _0xebc6e8={_0x1c8465:0xc7,_0x548941:0x433,_0x1b9f9c:0x397,_0x40c409:0xa2,_0x4cf05a:0xab,_0x20af28:0x35f,_0x58e816:0x2ff,_0x24c01b:0x402,_0x5be451:0x2d7,_0x495634:0x421,_0x21d65f:0x19,_0x255f58:0xa1,_0x491ea3:0xeb,_0x2a7f3e:0x47,_0x2eb4a6:0x2ea,_0x7916e1:0x2bf,_0x578aaa:0x10b,_0x347977:0xfe,_0x533f81:0x4bc,_0x51c212:0x421,_0x4e0cc0:0x3be,_0x4178e4:0xb8,_0x311f9a:0xa7,_0x289314:0x44,_0x5239d8:0x32,_0x581945:0x96,_0x24a6fb:0xdb,_0x4f700e:0x35f,_0x5d1c68:0x3bc},_0x24843c={_0x3cf4d5:0xcc,_0xda0e2b:0x1a4},_0x25d717={_0x13655d:0x37,_0x5e5c98:0x3c9,_0x51684f:0x151};function _0x5e4db9(_0x52e056,_0x3bc612,_0xe33366,_0x2da085){return _0x3921cc(_0x52e056-_0x25d717._0x13655d,_0x3bc612- -_0x25d717._0x5e5c98,_0x2da085,_0x2da085-_0x25d717._0x51684f);}const _0x39c0a8=_0x1f9906[_0x5e4db9(-0xb1,-0x3b,-_0xebc6e8._0x1c8465,0x43)]??_0x50b2ca(0x421,_0xebc6e8._0x548941,0x37d,_0xebc6e8._0x1b9f9c),_0x5aa639=_0x1f9906[_0x5e4db9(-_0xebc6e8._0x40c409,-_0xebc6e8._0x4cf05a,-0x15f,-0x16f)]??0x4000,_0x3abb7e=_0x1f9906[_0x50b2ca(_0xebc6e8._0x20af28,_0xebc6e8._0x58e816,_0xebc6e8._0x24c01b,_0xebc6e8._0x5be451)]??_0x50b2ca(0x46c,0x51f,0x517,_0xebc6e8._0x495634),_0x9fd553=_0x1f9906['responsesPath']??_0x5e4db9(0x63,-_0xebc6e8._0x21d65f,_0xebc6e8._0x255f58,0x2);super({'apiKey':_0x1f9906[_0x5e4db9(_0xebc6e8._0x491ea3,_0xebc6e8._0x2a7f3e,-0x3a,0x41)],'baseUrl':trimTrailingSlashes(_0x1f9906[_0x50b2ca(0x354,_0xebc6e8._0x2eb4a6,_0xebc6e8._0x7916e1,0x2f5)]??_0x5e4db9(-_0xebc6e8._0x578aaa,-0x13e,-0x1d1,-_0xebc6e8._0x347977)),'fetch':_0x1f9906[_0x50b2ca(0x40d,0x3a4,0x3b1,_0xebc6e8._0x533f81)],'maxTokens':_0x5aa639,'model':_0x39c0a8,'reasoning':_0x1f9906[_0x50b2ca(0x3d1,_0xebc6e8._0x51c212,0x464,_0xebc6e8._0x4e0cc0)],'providerAdapter':new OpenAiProviderAdapter(_0x1f9906[_0x50b2ca(0x472,0x4cb,0x475,0x4ce)]),'providerSessionResolver':_0x1f9906['providerSessionResolver'],'requestMutators':_0x1f9906[_0x5e4db9(-0x21,-_0xebc6e8._0x4178e4,-_0xebc6e8._0x311f9a,-_0xebc6e8._0x289314)],'router':new StaticModelSurfaceRouter({'complete':OPENAI_CHAT_COMPLETIONS_SURFACE,'stream':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE}),'sessionManager':_0x1f9906['sessionManager'],'surfaces':createOpenAiSurfaces({'chatCompletionsPath':_0x3abb7e,'responsesPath':_0x9fd553}),'webSocketFactory':_0x1f9906[_0x5e4db9(-_0xebc6e8._0x5239d8,-_0xebc6e8._0x581945,-0xb6,-_0xebc6e8._0x24a6fb)]}),this[_0x50b2ca(_0xebc6e8._0x4f700e,_0xebc6e8._0x5d1c68,0x2de,0x399)]=_0x3abb7e;function _0x50b2ca(_0x4997ce,_0x453171,_0x9d2420,_0x2e768c){return _0x3921cc(_0x4997ce-_0x24843c._0x3cf4d5,_0x4997ce-0x99,_0x2e768c,_0x2e768c-_0x24843c._0xda0e2b);}this['responsesPath']=_0x9fd553;}[_0x3921cc(0x255,0x2ef,0x34c,0x27d)](_0x23103b,_0x1c40dc){return this['completeViaSurface'](_0x23103b,OPENAI_CHAT_COMPLETIONS_SURFACE,_0x1c40dc);}[_0x4abdca(0x519,0x561,0x4e7,0x549)](_0x29e9fb,_0x60130d){const _0x26bc56={_0x901886:0x310,_0x1065c6:0x2e9,_0x3eb4fb:0x2d5,_0x41e3e6:0x29f},_0x152018={_0xff6b97:0x1d,_0x564edb:0x151};function _0x575c9a(_0x34ece2,_0x4af516,_0x49471b,_0x38fcbe){return _0x3921cc(_0x34ece2-_0x152018._0xff6b97,_0x4af516- -0x49,_0x38fcbe,_0x38fcbe-_0x152018._0x564edb);}return this[_0x575c9a(_0x26bc56._0x901886,_0x26bc56._0x1065c6,_0x26bc56._0x3eb4fb,_0x26bc56._0x41e3e6)](_0x29e9fb,OPENAI_RESPONSES_SURFACE,_0x60130d);}[_0x4abdca(0x564,0x578,0x592,0x590)](_0x2f5556,_0x829d77){return this['completeViaSurface'](_0x2f5556,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x829d77);}['streamViaChatCompletionsSurface'](_0x1cabbd,_0x58a0c3){const _0x102ac6={_0x1df853:0x10a,_0x43bed9:0x5e},_0xe9ae1d={_0x3d390a:0x37c};function _0x218c0b(_0x1117ce,_0x473793,_0x563282,_0x18e7dd){return _0x3921cc(_0x1117ce-0xf6,_0x18e7dd- -_0xe9ae1d._0x3d390a,_0x563282,_0x18e7dd-0x1bd);}return this[_0x218c0b(0x33,_0x102ac6._0x1df853,-0x46,_0x102ac6._0x43bed9)](_0x1cabbd,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,_0x58a0c3);}[_0x4abdca(0x411,0x437,0x3c5,0x3f9)](_0x540e6c,_0x541804){const _0x294672={_0x1edc2d:0x66},_0x4a21ec={_0x18b613:0xf3};function _0x351ae1(_0x164549,_0x3addc7,_0xd73ffd,_0x31261b){return _0x3921cc(_0x164549-0x71,_0x31261b- -0x2c5,_0xd73ffd,_0x31261b-_0x4a21ec._0x18b613);}return this[_0x351ae1(0x9f,_0x294672._0x1edc2d,0x5b,0x115)](_0x540e6c,OPENAI_RESPONSES_STREAM_SURFACE,_0x541804);}[_0x3921cc(0x300,0x31f,0x2fa,0x25e)](_0x5c7bfd,_0x129aa2){return this['streamViaSurface'](_0x5c7bfd,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x129aa2);}async['chatComplete'](_0x3d340c,_0x3bf6c0){const _0x238332={_0x23880c:0xc8,_0x589817:0x8e,_0x26aeca:0xbc,_0x2d7498:0xe1,_0x1f0b63:0x108},_0x31faaf={_0x51b1d1:0x9},_0x5f41e2={_0x59d5f1:0xfa,_0x38d607:0x54b,_0x2c9887:0x1cd};function _0x526767(_0x4c426a,_0x37df91,_0xaaa4d7,_0x474443){return _0x4abdca(_0x4c426a-_0x5f41e2._0x59d5f1,_0x474443- -_0x5f41e2._0x38d607,_0xaaa4d7-_0x5f41e2._0x2c9887,_0xaaa4d7);}function _0xbdd1ef(_0x3acf6e,_0x5c5c5d,_0x3be152,_0x5b04b8){return _0x4abdca(_0x3acf6e-0x39,_0x3acf6e-_0x31faaf._0x51b1d1,_0x3be152-0x1,_0x5b04b8);}try{return await this[_0x526767(-_0x238332._0x23880c,-0x164,-_0x238332._0x589817,-_0x238332._0x26aeca)](_0x3d340c,_0x3bf6c0);}catch(_0x17ef2e){if(_0x17ef2e instanceof OpenAiApiError)throw this[_0x526767(-0x1a2,-_0x238332._0x2d7498,-_0x238332._0x1f0b63,-0xf5)](_0x17ef2e);throw _0x17ef2e;}}async['response'](_0x88beef,_0x5ca6de){const _0x671caa={_0x7f1f81:0x9b,_0x11e7f7:0x159,_0xb2e3ff:0x20},_0x5a4c35={_0x57a747:0x1a5};function _0x24b63e(_0xeb5c6b,_0x183496,_0xeb4ca9,_0x40d059){return _0x3921cc(_0xeb5c6b-0x8e,_0xeb4ca9- -0x125,_0x40d059,_0x40d059-0x17c);}function _0x7156c4(_0x5a18b9,_0x1c2919,_0x5e8c12,_0x28f3ab){return _0x3921cc(_0x5a18b9-_0x5a4c35._0x57a747,_0x1c2919- -0x326,_0x28f3ab,_0x28f3ab-0x16d);}try{return await this[_0x7156c4(0x80,_0x671caa._0x7f1f81,_0x671caa._0x11e7f7,0x14b)](_0x88beef,_0x5ca6de);}catch(_0x33f53a){if(_0x33f53a instanceof OpenAiApiError)throw this[_0x7156c4(0x20,-0x70,-_0x671caa._0xb2e3ff,-0x10f)](_0x33f53a);throw _0x33f53a;}}async[_0x3921cc(0x2b6,0x320,0x29d,0x3bf)](_0x2cd9f1,_0x3d7af2){const _0x2a933b={_0x3a5b36:0xca,_0x4741b0:0x4,_0x572d9c:0x8,_0x108568:0x7a,_0x51856c:0x72,_0x1074c5:0xab,_0x7810e5:0x7f,_0x5930e0:0x13b,_0x3911fd:0xcd,_0x45cf35:0x3b,_0x17595d:0x21,_0x1d6c17:0xcb},_0x5614aa={_0xbd8ec7:0x4a7,_0x262f75:0x1},_0x4ffe9e={_0x4f91e8:0xe};function _0x3a4312(_0x307dcd,_0x2ac9ec,_0x127a49,_0x5e79f5){return _0x4abdca(_0x307dcd-_0x4ffe9e._0x4f91e8,_0x2ac9ec- -0x477,_0x127a49-0xdb,_0x5e79f5);}function _0x37dcfb(_0x2fc332,_0x31c9a4,_0x4da6a7,_0x3303b6){return _0x4abdca(_0x2fc332-0xdb,_0x3303b6- -_0x5614aa._0xbd8ec7,_0x4da6a7-_0x5614aa._0x262f75,_0x2fc332);}try{let _0x35baef;for await(const _0x404714 of this[_0x3a4312(0x82,-0x22,-_0x2a933b._0x3a5b36,-0x48)](_0x2cd9f1,_0x3d7af2)){_0x404714[_0x37dcfb(-0xa3,-_0x2a933b._0x4741b0,0x19,-_0x2a933b._0x572d9c)]==='done'&&(_0x35baef=_0x404714[_0x3a4312(0xa0,_0x2a933b._0x108568,-0x3c,_0x2a933b._0x51856c)]);}if(!_0x35baef)throw new Error(_0x3a4312(_0x2a933b._0x1074c5,_0x2a933b._0x7810e5,_0x2a933b._0x5930e0,_0x2a933b._0x3911fd));return _0x35baef;}catch(_0x2ded9b){if(_0x2ded9b instanceof OpenAiApiError)throw this[_0x3a4312(_0x2a933b._0x45cf35,-_0x2a933b._0x17595d,0x10,-_0x2a933b._0x1d6c17)](_0x2ded9b);throw _0x2ded9b;}}async*[_0x3921cc(0x3ab,0x3ad,0x3c9,0x3bb)](_0xd59d48,_0x2a1f9e){try{yield*this['streamViaChatCompletionsSurface'](_0xd59d48,_0x2a1f9e);}catch(_0x159cbe){if(_0x159cbe instanceof OpenAiApiError)throw this['mapApiError'](_0x159cbe);throw _0x159cbe;}}async*['responseStream'](_0x59ef96,_0x4f81ec){const _0x19b728={_0x54f6fc:0x57,_0x2e1932:0x14e,_0x239327:0x1f1,_0x1bc260:0x143,_0x126dc6:0x2b7},_0x1eae9b={_0x521283:0x17a},_0x27ea47={_0x527f92:0x94,_0x1a73d4:0xed};function _0x280e88(_0x5a6b67,_0x386c8c,_0x483603,_0x3f87ad){return _0x4abdca(_0x5a6b67-_0x27ea47._0x527f92,_0x5a6b67- -0x265,_0x483603-_0x27ea47._0x1a73d4,_0x483603);}function _0x26cf8b(_0x544a1f,_0xa58ed2,_0x5d8c31,_0x1404bc){return _0x3921cc(_0x544a1f-0x1f,_0x1404bc- -_0x1eae9b._0x521283,_0xa58ed2,_0x1404bc-0xa5);}try{yield*this[_0x26cf8b(0x70,_0x19b728._0x54f6fc,_0x19b728._0x2e1932,0x11d)](_0x59ef96,_0x4f81ec);}catch(_0x574fd8){if(_0x574fd8 instanceof OpenAiApiError)throw this[_0x280e88(_0x19b728._0x239327,0x152,_0x19b728._0x1bc260,_0x19b728._0x126dc6)](_0x574fd8);throw _0x574fd8;}}async*[_0x3921cc(0x294,0x2b5,0x234,0x275)](_0x50aba6,_0xab17f0){const _0x2549a5={_0x47791c:0x1ef},_0x27961f={_0x4787ca:0xec};function _0x7d0be3(_0x4ee111,_0x475987,_0x26496a,_0x4f9efd){return _0x3921cc(_0x4ee111-0x1c6,_0x4ee111- -_0x27961f._0x4787ca,_0x475987,_0x4f9efd-0x1b7);}try{yield*this['streamViaPersistentResponsesSocket'](_0x50aba6,_0xab17f0);}catch(_0x3501e5){if(_0x3501e5 instanceof OpenAiApiError)throw this[_0x7d0be3(0x1ca,_0x2549a5._0x47791c,0x1d3,0x132)](_0x3501e5);throw _0x3501e5;}}[_0x3921cc(0x315,0x30f,0x2a9,0x36b)](_0x4ee4d4,_0x1e25b5){const _0x3224b8={_0x49cf38:0x407,_0x42a6b4:0x38c,_0x52d0ee:0x425},_0x42fd7a={_0x522329:0x12};function _0x1858db(_0x579482,_0x38a129,_0x455f65,_0x524b69){return _0x3921cc(_0x579482-0x6e,_0x455f65-_0x42fd7a._0x522329,_0x524b69,_0x524b69-0x1c1);}return this[_0x1858db(_0x3224b8._0x49cf38,0x440,_0x3224b8._0x42a6b4,_0x3224b8._0x52d0ee)](_0x4ee4d4,_0x1e25b5);}[_0x4abdca(0x452,0x454,0x488,0x44d)](_0x1145be,_0x23fbdf){const _0x45eed2={_0x494881:0xe2,_0x425934:0x8f},_0x183438={_0x3bdf39:0xef,_0x4a5cab:0x83};function _0x18cf70(_0x2cb95e,_0x1ea009,_0x4b8f6f,_0xbb741c){return _0x4abdca(_0x2cb95e-_0x183438._0x3bdf39,_0x1ea009- -0x62f,_0x4b8f6f-_0x183438._0x4a5cab,_0xbb741c);}return this[_0x18cf70(-0xa6,-_0x45eed2._0x494881,-0x20,-_0x45eed2._0x425934)](_0x1145be,_0x23fbdf);}[_0x4abdca(0x4f1,0x495,0x4c8,0x4ff)](_0x1eee80){const _0x19b5d6={_0x4f8abc:0x430,_0x164bda:0x48a,_0x5b4e8d:0x234,_0x4c002a:0x2e2,_0x92dfaa:0x284,_0x278d2b:0x431,_0x34d62d:0x42f,_0x260bc8:0x440,_0x3352e5:0x390,_0x223f3f:0x37c,_0x5e80ef:0x252,_0x31f55e:0x2b7,_0x3f9dea:0x268,_0x1e6677:0x1c7},_0x310d73={_0x131b63:0x123},_0x404cf7={_0x58f115:0x1f0},_0x2d42db=this[_0x49c1b0(_0x19b5d6._0x4f8abc,0x3df,_0x19b5d6._0x164bda,0x42d)](_0x1eee80);function _0x510826(_0x1a6d45,_0x1dcb97,_0x17bbad,_0x4ebed0){return _0x4abdca(_0x1a6d45-0xd0,_0x4ebed0- -0x20f,_0x17bbad-_0x404cf7._0x58f115,_0x1dcb97);}function _0x49c1b0(_0x3b8c33,_0x107932,_0xcb8c13,_0x9b566a){return _0x4abdca(_0x3b8c33-0x104,_0x9b566a- -0xd0,_0xcb8c13-_0x310d73._0x131b63,_0xcb8c13);}let _0x315952=_OpenAiModel[_0x510826(_0x19b5d6._0x5b4e8d,_0x19b5d6._0x4c002a,0x300,_0x19b5d6._0x92dfaa)][_0x49c1b0(_0x19b5d6._0x278d2b,_0x19b5d6._0x34d62d,_0x19b5d6._0x260bc8,_0x19b5d6._0x3352e5)](_0x2d42db);return!_0x315952&&(_0x315952={'pending':Promise[_0x510826(_0x19b5d6._0x223f3f,0x2bf,_0x19b5d6._0x5e80ef,_0x19b5d6._0x31f55e)]()},_OpenAiModel['sharedResponsesSocketSessions'][_0x510826(0x2db,_0x19b5d6._0x3f9dea,_0x19b5d6._0x1e6677,0x240)](_0x2d42db,_0x315952)),_0x315952;}[_0x4abdca(0x549,0x4fd,0x579,0x493)](_0x32fd83){const _0x274efa={_0x3d66b7:0x127,_0x1b7abf:0x4d4,_0x58c577:0x4b0},_0x57a611={_0x50bbe0:0x126};function _0x4ba528(_0x5381e8,_0x4cf3a4,_0x1829d7,_0x2d7234){return _0x3921cc(_0x5381e8-0x1a9,_0x1829d7-0x16d,_0x5381e8,_0x2d7234-0x6c);}function _0x15ff6b(_0x152cc4,_0x46c670,_0x56e443,_0xd32c33){return _0x3921cc(_0x152cc4-_0x57a611._0x50bbe0,_0x46c670- -0xdb,_0x152cc4,_0xd32c33-0x5b);}return''+trimTrailingSlashes(this[_0x15ff6b(0x204,0x1e0,0x2a0,_0x274efa._0x3d66b7)])+this[_0x4ba528(_0x274efa._0x1b7abf,0x575,_0x274efa._0x58c577,0x554)]+'::'+_0x32fd83;}async['acquireResponsesSocketLock'](_0x57cd50){const _0x157b7f={_0x5f0ca5:0x561,_0x5c0dbe:0x538,_0x3dbb93:0x564,_0x18dd1d:0x55a},_0x39d8df={_0xe58cbb:0x1b,_0x1a6a76:0xa8},_0xb621e3={_0x31b4a1:0x3c},_0x1bed54=_0x57cd50[_0x5c8278(_0x157b7f._0x5f0ca5,_0x157b7f._0x5c0dbe,0x507,0x4fd)][_0x343d61(0x59d,0x4ef,0x514,_0x157b7f._0x3dbb93)](()=>{});let _0x4fe798;const _0x331ee6=new Promise(_0x54d988=>{_0x4fe798=_0x54d988;});_0x57cd50[_0x5c8278(_0x157b7f._0x5f0ca5,0x5d3,0x575,0x5e9)]=_0x1bed54[_0x343d61(0x597,_0x157b7f._0x18dd1d,0x55c,0x629)](()=>_0x331ee6),await _0x1bed54;function _0x5c8278(_0xb06b6b,_0x230489,_0x57d536,_0x17a243){return _0x4abdca(_0xb06b6b-0x1bc,_0xb06b6b-_0xb621e3._0x31b4a1,_0x57d536-0x13c,_0x17a243);}function _0x343d61(_0x325efd,_0x4cd8e3,_0x38593c,_0x3bc2c2){return _0x4abdca(_0x325efd-_0x39d8df._0xe58cbb,_0x325efd-_0x39d8df._0x1a6a76,_0x38593c-0xad,_0x38593c);}return()=>{_0x4fe798?.();};}async[_0x3921cc(0x362,0x3ea,0x38a,0x3e1)](_0x46169c,_0x3f26be){const _0x3c9cea={_0x6bdf17:0x226,_0x3536b8:0x2a2,_0x14dceb:0x32d,_0x1f53da:0x2c5,_0x3eb0af:0xb1,_0x2fd71c:0x4,_0x388c18:0xeb,_0x3899ef:0x192,_0x15ed4a:0xbd,_0x4e3c12:0x20f,_0x1a9bf4:0x1be,_0x522264:0x278,_0x15acbb:0x2b,_0x19ef3f:0x9,_0x10e44b:0x195,_0x2097f9:0x211,_0x462985:0xa,_0x187458:0x20b,_0x17c48c:0xc},_0x238c00={_0x51700f:0x121},_0x58c902=this[_0x1caad4(0x267,_0x3c9cea._0x6bdf17,0x2dc,_0x3c9cea._0x3536b8)](_0x46169c);function _0x271515(_0x1d5e8a,_0x56b0fe,_0x4ee595,_0x4f5a10){return _0x3921cc(_0x1d5e8a-0x127,_0x1d5e8a- -0x210,_0x4f5a10,_0x4f5a10-0x1ca);}function _0x1caad4(_0x4c020e,_0x613377,_0x2d9b62,_0xd48fb7){return _0x4abdca(_0x4c020e-0x199,_0x4c020e- -0x21b,_0x2d9b62-_0x238c00._0x51700f,_0x613377);}const _0x4c7165=toModelRequest(_0x58c902),_0x22cddd=await prepareProviderRequest(_0x4c7165,{'sessionManager':this[_0x1caad4(_0x3c9cea._0x14dceb,0x34e,0x3b6,_0x3c9cea._0x1f53da)],'requestMutators':this['requestMutators'],'signal':_0x3f26be}),_0x4cb041=toChatRequest(_0x22cddd[_0x271515(0x7a,0x71,_0x3c9cea._0x3eb0af,_0x3c9cea._0x2fd71c)]),_0xc199f8=this[_0x271515(_0x3c9cea._0x388c18,_0x3c9cea._0x3899ef,_0x3c9cea._0x15ed4a,0x48)][_0x1caad4(0x27b,_0x3c9cea._0x4e3c12,_0x3c9cea._0x1a9bf4,_0x3c9cea._0x522264)](this['apiKey'],_0x22cddd['session']);if(!_0xc199f8)throw this[_0x271515(0x7e,-_0x3c9cea._0x15acbb,-_0x3c9cea._0x19ef3f,0xff)]();return{'baseUrl':this['providerAdapter'][_0x271515(0x1b8,_0x3c9cea._0x10e44b,_0x3c9cea._0x2097f9,0x1b3)](this[_0x271515(0xab,0xfd,0x12d,-_0x3c9cea._0x462985)],_0x22cddd[_0x1caad4(0x22e,_0x3c9cea._0x187458,0x206,0x25a)]),'credential':_0xc199f8,'request':_0x4cb041,'session':_0x22cddd[_0x271515(0x99,0x96,0x8,_0x3c9cea._0x17c48c)]};}['buildResponsesSocketEvent'](_0x56c782,_0x3f64c0,_0x49ca5e={}){const _0x331f1a={_0x42e111:0x50c,_0x2acbfb:0x4da,_0x588d6d:0x22,_0x559ea9:0x21,_0x23fd18:0x5de,_0x4f82de:0x4fc,_0x3e4dc6:0xd9,_0x1f71fa:0x76,_0x2d1d3e:0x15b,_0x395c8b:0x123,_0x55af15:0x10d,_0x2948af:0x526},_0x119263={_0x19986f:0x199},_0xae699a={_0x2f7ffe:0x1ef,_0x34436e:0xcb};function _0x1e6d32(_0x5d6bfc,_0x2c5634,_0x180a07,_0x70eb5b){return _0x3921cc(_0x5d6bfc-0x191,_0x180a07-_0xae699a._0x2f7ffe,_0x2c5634,_0x70eb5b-_0xae699a._0x34436e);}function _0x3a9391(_0x5324db,_0x43d29e,_0x5e7101,_0x14ff1e){return _0x4abdca(_0x5324db-0x1,_0x14ff1e- -0x57f,_0x5e7101-_0x119263._0x19986f,_0x43d29e);}if(!_0x49ca5e[_0x1e6d32(_0x331f1a._0x42e111,_0x331f1a._0x2acbfb,0x595,0x645)]){const _0x111cff=this[_0x3a9391(_0x331f1a._0x588d6d,-0x23,_0x331f1a._0x559ea9,-0x23)](_0x56c782);if(_0x111cff&&_0x3f64c0[_0x1e6d32(0x59e,_0x331f1a._0x23fd18,0x55b,_0x331f1a._0x4f82de)]&&_0x111cff['responseId']===_0x3f64c0[_0x3a9391(-0x6a,-_0x331f1a._0x3e4dc6,-_0x331f1a._0x1f71fa,-0x73)]){const _0x29422c=toOpenAiResponsesRequest({..._0x56c782,'messages':_0x56c782[_0x3a9391(-_0x331f1a._0x2d1d3e,-0xa9,-_0x331f1a._0x395c8b,-0xf8)]['slice'](_0x111cff['messageIndex']+0x1)})[_0x3a9391(-0xd2,-0x1c2,-0x189,-_0x331f1a._0x55af15)];return{'event':createOpenAiResponsesWebSocketEvent(_0x56c782,{'input':_0x29422c,'previousResponseId':_0x111cff[_0x1e6d32(0x4ad,0x53d,_0x331f1a._0x2948af,0x5ab)]}),'previousResponseId':_0x111cff['responseId']};}}return{'event':createOpenAiResponsesWebSocketEvent(_0x56c782)};}[_0x4abdca(0x4a5,0x55c,0x5ef,0x561)](_0x2a880e){const _0x1c7818={_0x13ed94:0x437,_0x3e4a3b:0x38d,_0x4ab1bc:0x68,_0x40f43f:0x5d,_0x54f311:0x1b,_0x5096bd:0x4c,_0x37fbdc:0x7f,_0x41fbe0:0x4b,_0x44b7ba:0x29,_0x26bc0c:0xfb,_0x3d1c8a:0x86,_0xe1043e:0x78},_0x2fea37={_0x4ba602:0x53};function _0x493996(_0x30b5e3,_0x66b858,_0x2244b5,_0x456e8b){return _0x4abdca(_0x30b5e3-0x140,_0x456e8b- -0x46c,_0x2244b5-0x10,_0x2244b5);}for(let _0x3f6884=_0x2a880e[_0x5981b3(_0x1c7818._0x13ed94,0x41f,_0x1c7818._0x3e4a3b,0x450)]['length']-0x1;_0x3f6884>=0x0;_0x3f6884-=0x1){const _0x3e91d5=_0x2a880e[_0x493996(-0x43,-_0x1c7818._0x4ab1bc,-_0x1c7818._0x40f43f,_0x1c7818._0x54f311)][_0x3f6884],_0xce27f1=_0x3e91d5[_0x493996(0xa7,_0x1c7818._0x5096bd,0xcc,0x106)]===_0x493996(-_0x1c7818._0x37fbdc,-_0x1c7818._0x41fbe0,_0x1c7818._0x44b7ba,-0x1f)?_0x3e91d5['providerState']?.[_0x493996(_0x1c7818._0x44b7ba,_0x1c7818._0x26bc0c,_0x1c7818._0x3d1c8a,_0x1c7818._0xe1043e)]:void 0x0;if(_0xce27f1)return{'messageIndex':_0x3f6884,'responseId':_0xce27f1};}function _0x5981b3(_0x535940,_0x2f62f2,_0x4db6b7,_0x234e4e){return _0x3921cc(_0x535940-0x1eb,_0x234e4e-0x169,_0x535940,_0x234e4e-_0x2fea37._0x4ba602);}return void 0x0;}['shouldRetryResponsesSocketRequest'](_0x5ce094){const _0x5d4705={_0x30f362:0x4d6,_0x29478f:0x561,_0x91631b:0x582},_0x1cdd6d={_0x527c42:0x96,_0x57114e:0xa9,_0x441dbf:0x1e5};function _0x46bd2f(_0x37dc8b,_0x1a4729,_0x26f4e2,_0x390e07){return _0x4abdca(_0x37dc8b-_0x1cdd6d._0x527c42,_0x37dc8b- -_0x1cdd6d._0x57114e,_0x26f4e2-_0x1cdd6d._0x441dbf,_0x26f4e2);}function _0x1fbf44(_0xe7b17b,_0x485a0c,_0x51787a,_0x1245b8){return _0x4abdca(_0xe7b17b-0xb3,_0x51787a- -0x365,_0x51787a-0x80,_0xe7b17b);}return _0x5ce094 instanceof OpenAiResponsesStreamError&&(_0x5ce094[_0x46bd2f(_0x5d4705._0x30f362,_0x5d4705._0x29478f,0x413,_0x5d4705._0x91631b)]==='previous_response_not_found'||_0x5ce094['code']===_0x1fbf44(0x8a,0x1b9,0x129,0x104));}[_0x4abdca(0x486,0x4b7,0x56f,0x4c2)](_0x490bbc){const _0x36e397={_0x8c325:0x561,_0x4a9832:0x536,_0x883a67:0x4fc,_0x563bde:0x4fe,_0x4b2365:0x476,_0x22d299:0x456,_0x25e627:0x592},_0x947cbc={_0x1a59eb:0x1aa,_0x562a09:0x1cb},_0x487370={_0x29d885:0x20f,_0x387b18:0x1d1},_0x353e95=_0x490bbc[_0x5a835e(_0x36e397._0x8c325,_0x36e397._0x4a9832,_0x36e397._0x883a67,0x5a7)];_0x490bbc['socket']=void 0x0;function _0x5a835e(_0x48415b,_0x8265de,_0x1e46c4,_0x3c0721){return _0x3921cc(_0x48415b-0x1c7,_0x48415b-_0x487370._0x29d885,_0x8265de,_0x3c0721-_0x487370._0x387b18);}function _0x33ef62(_0x894fa4,_0x35d396,_0x398fdd,_0x4c2218){return _0x3921cc(_0x894fa4-0xa2,_0x398fdd-_0x947cbc._0x1a59eb,_0x35d396,_0x4c2218-_0x947cbc._0x562a09);}_0x490bbc['connecting']=void 0x0,_0x490bbc['lastResponseId']=void 0x0,_0x353e95?.[_0x33ef62(_0x36e397._0x563bde,0x4df,_0x36e397._0x4b2365,0x4e0)]===WebSocket[_0x5a835e(0x57c,0x58e,0x5a6,0x4f4)]&&_0x353e95[_0x5a835e(0x4e4,0x435,_0x36e397._0x22d299,_0x36e397._0x25e627)](0x3e8,'reset');}async[_0x4abdca(0x4ce,0x4ca,0x535,0x4c2)](_0x6a03da,_0x5c3e6a,_0x4c3e4e,_0x298a06,_0x5df95a){const _0xeb1f80={_0x1d00f1:0x10b,_0x1e29af:0xba,_0x2e2c5c:0x73,_0x13df1c:0xba,_0x228e7e:0x97,_0x3fbbd0:0xba,_0x164277:0x80,_0x6bb6e9:0x6c,_0x355910:0x150,_0x58ba84:0x131,_0x1b3fb6:0x121,_0x1ddda8:0x1cf},_0x34a2e0={_0xe49181:0x3b2},_0x44d0ee={_0x208752:0x239,_0x1b3e09:0x18c,_0x17b6c8:0xb2,_0xba203c:0x114,_0x5aca4e:0x67,_0x2c6423:0xc7,_0x1aa517:0xdd,_0x393db0:0x434,_0x56cb16:0x28d,_0x25715c:0x1f8,_0x3c1919:0xf9,_0x17a21b:0x22f,_0x4ee222:0x23d,_0x4e9266:0x55a,_0x2bb327:0x4ff,_0x197610:0x147,_0x287cb0:0x201,_0x1672eb:0x1cd,_0x3c80e1:0x1e5,_0xd6be88:0x1d4,_0x2bab53:0x650,_0x109629:0x60d,_0x12eb5d:0x129,_0x14c2d2:0x20d,_0x339679:0x156,_0x571224:0x135,_0x189c98:0x187,_0x4d0243:0x1dc,_0x356bff:0x1dc,_0x3e317c:0x481,_0x16a16f:0x280,_0x42b58a:0x62c,_0x4e7e51:0x580,_0x47e38c:0x59c,_0x18370e:0x591},_0x21843a={_0x58b849:0x138,_0x4025e2:0x149,_0x2126cf:0x173,_0x2d0e68:0x163,_0x5e7650:0xe2},_0x515b1d={_0x3110f5:0x68d},_0x4229a5={_0x3e8660:0x9c,_0x15d9fd:0x180,_0x5e589e:0x198},_0x380e90={_0x2ddf93:0x74};function _0xf55e96(_0x343c1f,_0x5a4e99,_0x3fa3a3,_0x4dd7c1){return _0x3921cc(_0x343c1f-_0x380e90._0x2ddf93,_0x343c1f- -0x4b3,_0x4dd7c1,_0x4dd7c1-0x199);}if(_0x5c3e6a[_0x11931b(0x140,0x147,_0xeb1f80._0x1d00f1,0xa4)]?.[_0x11931b(_0xeb1f80._0x1e29af,0x3e,0x6b,_0xeb1f80._0x2e2c5c)]===WebSocket['OPEN'])return _0x5c3e6a['socket'];if(_0x5c3e6a[_0xf55e96(-0xba,-0x14d,-0xfd,-0x69)])return await _0x5c3e6a[_0xf55e96(-_0xeb1f80._0x13df1c,-0x3f,-_0xeb1f80._0x228e7e,-0x12f)];_0x5c3e6a[_0xf55e96(-_0xeb1f80._0x3fbbd0,-_0xeb1f80._0x164277,-0x13d,-_0xeb1f80._0x6bb6e9)]=((async()=>{const _0x5a15a4={_0x4263a0:0x345},_0x4ac32d=await this[_0xa07a21(0x1ba,_0x44d0ee._0x208752,0x207,0x14a)]({'request':_0x4c3e4e[_0xa07a21(_0x44d0ee._0x1b3e09,_0x44d0ee._0x17b6c8,_0x44d0ee._0xba203c,_0x44d0ee._0x5aca4e)],'body':_0x298a06,'credential':_0x4c3e4e[_0xa07a21(_0x44d0ee._0x2c6423,0x23d,0x187,_0x44d0ee._0x1aa517)],'session':_0x4c3e4e[_0x25f995(0x4ee,0x45c,_0x44d0ee._0x393db0,0x483)],'stream':!![]},{'accept':_0xa07a21(0x205,_0x44d0ee._0x56cb16,_0x44d0ee._0x25715c,0x261),'includeContentType':![]});function _0xa07a21(_0x4e381d,_0x672b0f,_0x3d68c5,_0x3ab326){return _0x11931b(_0x3d68c5-_0x4229a5._0x3e8660,_0x672b0f-_0x4229a5._0x15d9fd,_0x3d68c5-_0x4229a5._0x5e589e,_0x672b0f);}_0x4ac32d['delete'](_0xa07a21(_0x44d0ee._0x3c1919,_0x44d0ee._0x17a21b,0x18f,_0x44d0ee._0x4ee222));function _0x25f995(_0xa1ae34,_0x54c8b8,_0x339066,_0x4a2681){return _0xf55e96(_0x4a2681-_0x515b1d._0x3110f5,_0x54c8b8-0x106,_0x339066-0x1de,_0x54c8b8);}const _0x33642f=this[_0x25f995(_0x44d0ee._0x4e9266,0x529,0x525,0x50d)]({'headers':Object['fromEntries'](_0x4ac32d[_0x25f995(0x497,0x526,0x598,_0x44d0ee._0x2bb327)]()),'url':(''+_0x4c3e4e[_0xa07a21(0x134,0x12e,0x145,_0x44d0ee._0x197610)]+this[_0xa07a21(_0x44d0ee._0x287cb0,0x16c,_0x44d0ee._0x1672eb,0x14b)])['replace'](/^http:/,'ws:')[_0xa07a21(_0x44d0ee._0x3c80e1,0x1a2,0x20e,_0x44d0ee._0xd6be88)](/^https:/,_0x25f995(_0x44d0ee._0x2bab53,_0x44d0ee._0x109629,0x5d4,0x5d6))}),_0x543d22=()=>{const _0x3527da={_0x189210:0x4c};function _0x6a108c(_0x5b9e34,_0x38c5c0,_0x2942fd,_0x5e056a){return _0x25f995(_0x5b9e34-_0x3527da._0x189210,_0x5b9e34,_0x2942fd-0x189,_0x38c5c0- -0x3e3);}function _0x5ce7fd(_0x2dd6b0,_0x538b43,_0x34f0fc,_0x30d92b){return _0x25f995(_0x2dd6b0-0x1e1,_0x538b43,_0x34f0fc-0x22,_0x2dd6b0- -_0x5a15a4._0x4263a0);}_0x5c3e6a[_0x6a108c(_0x21843a._0x58b849,_0x21843a._0x4025e2,0x138,0x1dc)]===_0x33642f&&(_0x5c3e6a[_0x5ce7fd(0x1e7,0x126,_0x21843a._0x2126cf,0x25c)]=void 0x0,_0x5c3e6a[_0x6a108c(0x16c,_0x21843a._0x2d0e68,0xe8,_0x21843a._0x5e7650)]=void 0x0);};_0x33642f[_0xa07a21(0x1bb,0x13f,_0x44d0ee._0x12eb5d,0x15e)]('close',_0x543d22);try{return throwIfAborted(_0x5df95a),_0x33642f[_0xa07a21(0x210,_0x44d0ee._0x14c2d2,_0x44d0ee._0x339679,_0x44d0ee._0x571224)]!==WebSocket['OPEN']&&await waitForWebSocketOpen(_0x33642f,_0x5df95a),throwIfAborted(_0x5df95a),_0x5c3e6a[_0xa07a21(0x165,_0x44d0ee._0x189c98,_0x44d0ee._0x4d0243,_0x44d0ee._0x356bff)]=_0x33642f,_0x33642f;}catch(_0x1de063){_0x543d22();_0x33642f[_0x25f995(0x472,0x4ae,_0x44d0ee._0x3e317c,0x4a6)]===WebSocket[_0xa07a21(_0x44d0ee._0x16a16f,0x1bd,0x1f7,0x1ac)]&&_0x33642f['close'](0x3e8,_0x25f995(_0x44d0ee._0x42b58a,_0x44d0ee._0x4e7e51,_0x44d0ee._0x47e38c,_0x44d0ee._0x18370e));throw _0x1de063;}})());function _0x11931b(_0x1cc609,_0x54fd7a,_0x29029b,_0x3c9e63){return _0x4abdca(_0x1cc609-0x14b,_0x1cc609- -_0x34a2e0._0xe49181,_0x29029b-0x6c,_0x3c9e63);}try{return await _0x5c3e6a[_0xf55e96(-0xba,-_0xeb1f80._0x355910,-0x4c,-_0xeb1f80._0x58ba84)];}finally{_0x5c3e6a[_0x11931b(0x1e7,0x189,_0xeb1f80._0x1b3fb6,_0xeb1f80._0x1ddda8)]=void 0x0;}}async*['streamViaPersistentResponsesSocket'](_0x13fbbe,_0x47192b){const _0x1bb862={_0x4d3ac5:0x100,_0x2d91e3:0x140,_0x5c108a:0x20f,_0x59d8e2:0x2a8,_0x48c262:0x33f,_0xd59ca9:0x25a,_0x523b2c:0x35f,_0x4d898d:0x447,_0x18b2a9:0x397,_0x2afef4:0x3b5,_0x171daa:0x1e0,_0x3dbde5:0x1b8,_0x506043:0x131,_0x1b7de2:0x21b,_0x49c281:0x1d1,_0xd2dbe4:0x24f,_0x2ebdcd:0x1e2,_0x2b1f99:0x21d,_0x2d6b73:0x2d0,_0x31ab49:0x303,_0x5ef975:0x307,_0x3a6589:0x325,_0x43d41f:0x3a0,_0x5a821c:0x324,_0x2f1ab5:0x254,_0xd793ff:0x185,_0x22e386:0x218,_0xada7d5:0x15d,_0x19260a:0x1b8,_0x206cb4:0x14c,_0x35769f:0x1d3,_0x4d7086:0x15f,_0xdf30be:0x1c2,_0x123c55:0x1d1,_0x23a659:0x342,_0x540b0d:0x41a,_0x42edef:0x3c0},_0x2217e8={_0x3a1d50:0x130},_0x4d201f={_0xa565ed:0x2eb,_0x3f5d0f:0xcc};function _0x39a95c(_0x23b81b,_0x51dfe1,_0x51d89f,_0x5aae01){return _0x4abdca(_0x23b81b-0xd6,_0x51d89f- -_0x4d201f._0xa565ed,_0x51d89f-_0x4d201f._0x3f5d0f,_0x51dfe1);}function _0x8098c5(_0x2302e8,_0xcde74d,_0x263d4e,_0x183a17){return _0x4abdca(_0x2302e8-0x140,_0xcde74d- -0x1ed,_0x263d4e-_0x2217e8._0x3a1d50,_0x183a17);}const _0x1ed882=this[_0x39a95c(_0x1bb862._0x4d3ac5,_0x1bb862._0x2d91e3,0x197,_0x1bb862._0x5c108a)](_0x13fbbe),_0x259131=this[_0x8098c5(0x2f2,_0x1bb862._0x59d8e2,_0x1bb862._0x48c262,_0x1bb862._0xd59ca9)](_0x1ed882['metadata'][_0x8098c5(0x27a,0x33e,0x2f9,_0x1bb862._0x523b2c)]),_0x4d142e=await this[_0x8098c5(_0x1bb862._0x4d898d,_0x1bb862._0x18b2a9,_0x1bb862._0x2afef4,0x309)](_0x259131);try{const _0x3ef1e0=this[_0x39a95c(0x248,_0x1bb862._0x171daa,_0x1bb862._0x3dbde5,_0x1bb862._0x506043)](_0x1ed882,_0x259131);try{yield*this['streamViaResponsesSocketAttempt'](_0x1ed882[_0x39a95c(_0x1bb862._0x1b7de2,0x163,_0x1bb862._0x49c281,_0x1bb862._0xd2dbe4)][_0x39a95c(_0x1bb862._0x2ebdcd,_0x1bb862._0x2b1f99,0x240,0x2e6)],_0x259131,_0x1ed882,_0x3ef1e0[_0x8098c5(0x32f,0x31d,_0x1bb862._0x2d6b73,_0x1bb862._0x31ab49)],_0x47192b?.['signal']);return;}catch(_0x285e8e){if(!_0x3ef1e0[_0x8098c5(_0x1bb862._0x5ef975,_0x1bb862._0x3a6589,0x26c,_0x1bb862._0x43d41f)]||!this[_0x8098c5(0x2e2,0x393,0x37c,_0x1bb862._0x5a821c)](_0x285e8e)){this['invalidateResponsesSocketSession'](_0x259131);throw _0x285e8e;}}this[_0x39a95c(_0x1bb862._0x2f1ab5,_0x1bb862._0xd793ff,0x1cc,0x1db)](_0x259131);const _0x6deb0a=this[_0x39a95c(_0x1bb862._0x22e386,_0x1bb862._0xada7d5,_0x1bb862._0x19260a,0x1ea)](_0x1ed882,_0x259131,{'forceFullReplay':!![]});yield*this[_0x39a95c(_0x1bb862._0x206cb4,_0x1bb862._0x35769f,_0x1bb862._0x4d7086,_0x1bb862._0xdf30be)](_0x1ed882[_0x39a95c(0x1ab,0x1dc,_0x1bb862._0x123c55,0x196)][_0x39a95c(0x26c,0x2a4,0x240,0x240)],_0x259131,_0x1ed882,_0x6deb0a[_0x8098c5(_0x1bb862._0x23a659,0x31d,0x2b5,0x294)],_0x47192b?.[_0x8098c5(0x3e7,0x373,_0x1bb862._0x540b0d,_0x1bb862._0x42edef)]);}finally{_0x4d142e();}}async*[_0x4abdca(0x45f,0x44a,0x3ba,0x46f)](_0x4238f8,_0x4145c6,_0x32d6af,_0x11cab1,_0x2d778){const _0x56723c={_0x282521:0x14f,_0x2e7aa4:0x14a,_0x2c06f1:0x186,_0x318586:0x46a,_0x5d79ce:0x41f,_0x12942b:0x597,_0x312767:0x546,_0x1a590b:0x4c4,_0x230d0f:0x4e0,_0x12cc63:0x58b,_0x19f7b7:0x4ca,_0x5255f4:0x587,_0x1b527a:0x55f,_0x4000d0:0x557,_0xfb4c53:0x4a5,_0x54f5d9:0xd2,_0x23613d:0x28},_0x53aea0={_0x144e6e:0x12d,_0x355811:0x440,_0x5236dc:0x1d5},_0x164aac=await this[_0xfe2ef5(_0x56723c._0x282521,0x1b6,_0x56723c._0x2e7aa4,_0x56723c._0x2c06f1)](_0x32d6af,_0x2d778),_0x41df8b=await this[_0xe3356f(_0x56723c._0x318586,0x475,0x50b,_0x56723c._0x5d79ce)](_0x4238f8,_0x4145c6,_0x164aac,_0x11cab1,_0x2d778),_0x57ae1a=createOpenAiResponsesStreamParser(_0x32d6af);throwIfAborted(_0x2d778);function _0xe3356f(_0x567d30,_0x2005f3,_0x59217b,_0x165608){return _0x3921cc(_0x567d30-0x1df,_0x2005f3-0x14b,_0x59217b,_0x165608-0x11c);}_0x41df8b[_0xe3356f(_0x56723c._0x12942b,_0x56723c._0x312767,0x52d,0x5c5)](JSON['stringify'](_0x11cab1));function _0xfe2ef5(_0x19f4f0,_0x103836,_0x24f14d,_0x268011){return _0x4abdca(_0x19f4f0-_0x53aea0._0x144e6e,_0x24f14d- -_0x53aea0._0x355811,_0x24f14d-_0x53aea0._0x5236dc,_0x19f4f0);}for await(const _0x27fe02 of iterateWebSocketMessages(_0x41df8b,_0x2d778)){const _0x3dfb80=_0x57ae1a['consumeWebSocketEvent']?.(_0x27fe02)??[];yield*_0x3dfb80;if(_0x57ae1a[_0xe3356f(_0x56723c._0x1a590b,0x4ca,_0x56723c._0x230d0f,_0x56723c._0x12cc63)]?.())break;}if(!_0x57ae1a[_0xe3356f(0x501,_0x56723c._0x19f7b7,0x471,_0x56723c._0x5255f4)]?.())throw new Error('Responses\x20WebSocket\x20closed\x20before\x20response.completed');const _0x4fed8f=_0x57ae1a['finish'](),_0x1c171c=_0x4fed8f[_0xe3356f(_0x56723c._0x1b527a,_0x56723c._0x4000d0,0x5a6,_0x56723c._0xfb4c53)]?.[_0xfe2ef5(-0x12,_0x56723c._0x54f5d9,0xa4,_0x56723c._0x23613d)]??_0x4fed8f['id'];_0x1c171c&&(_0x4145c6['lastResponseId']=_0x1c171c),yield{'type':'done','response':_0x4fed8f};}};function _0x4abdca(_0x4c4129,_0x4e9564,_0x5e99ab,_0x77a6a){const _0x15c0a8={_0x1eac61:0x2b1};return _0x6b39(_0x4e9564-_0x15c0a8._0x1eac61,_0x77a6a);}var AVAILABLE_CHAT_MODEL_SURFACES=[_0x3921cc(0x30e,0x29b,0x262,0x2b3),'openai-chat-completions',_0x3921cc(0x290,0x345,0x3af,0x348),_0x3921cc(0x47d,0x3ce,0x35e,0x40e)];function isAnthropicSurface(_0x259e2e){const _0x470f2d={_0xf3e295:0x3d3},_0x2dcb31={_0x551d4e:0x1a8,_0x2b7cb5:0x138,_0xfe8084:0xb5};function _0x5e2aca(_0x3e347f,_0x4f8888,_0x394b40,_0x575277){return _0x3921cc(_0x3e347f-_0x2dcb31._0x551d4e,_0x394b40-_0x2dcb31._0x2b7cb5,_0x4f8888,_0x575277-_0x2dcb31._0xfe8084);}return _0x259e2e===_0x5e2aca(0x47e,0x313,_0x470f2d._0xf3e295,0x3de);}function resolveDefaultBaseUrl(_0x4ca6e2){const _0x2cbd73={_0x3ada5a:0x4f6,_0x2452d2:0x1f},_0x8299ce={_0x4a5533:0x4a6,_0x2df48b:0x2d},_0x17909e={_0x5dc41c:0x4a,_0x121c8e:0x13e};function _0x3f5049(_0x33357a,_0x4364d6,_0x523d95,_0xd0ca3a){return _0x4abdca(_0x33357a-_0x17909e._0x5dc41c,_0x523d95- -0x51,_0x523d95-_0x17909e._0x121c8e,_0x4364d6);}function _0x485ef1(_0x313420,_0x2d7394,_0x431a63,_0x3e46c1){return _0x4abdca(_0x313420-0xd2,_0x313420- -_0x8299ce._0x4a5533,_0x431a63-_0x8299ce._0x2df48b,_0x3e46c1);}return isAnthropicSurface(_0x4ca6e2)?_0x3f5049(0x4e1,_0x2cbd73._0x3ada5a,0x531,0x4c6):_0x485ef1(-0x7b,-0x40,-0x13f,-_0x2cbd73._0x2452d2);}var ChatModel=class{[_0x4abdca(0x46d,0x52e,0x574,0x4a9)];['maxTokens'];[_0x3921cc(0x2aa,0x354,0x2da,0x295)];[_0x3921cc(0x3b7,0x33f,0x2b4,0x3b0)];[_0x4abdca(0x497,0x4d0,0x458,0x42c)];constructor(_0x53d9ea={}){const _0x3676f9={_0x2ea5fc:0x37,_0x539e6d:0x3b,_0x2f6fa2:0xcf,_0x4e4a7f:0x27d,_0x2c9719:0x2e8,_0x457221:0x218,_0x1e933e:0x39,_0x1ea481:0x15b,_0x40d45c:0x162,_0x44916f:0xd5,_0x433927:0x275,_0x2856fb:0x30b,_0x38bd00:0x24c,_0x15a7b1:0x2f2,_0x15534c:0x222,_0x469097:0x282,_0x34b6b3:0x1e4,_0x4e2151:0x310,_0xa5210c:0x300,_0x2882ac:0x33d,_0x2ea9a9:0x3c6,_0x2b64b4:0x282,_0x3bc99c:0x154,_0x5b6753:0x19d,_0x1e2514:0xeb,_0x16e0a3:0x1c9,_0x2942cd:0x252,_0xc63cc8:0x2df,_0x7788e8:0x266,_0x209b82:0x19e,_0x385696:0x181,_0xa16316:0x1a9,_0x42f0b2:0x1aa,_0x2a8f89:0x33e,_0x41c994:0x37a,_0x3c07b0:0x37e,_0x11c43b:0x333,_0x84241b:0x4a,_0x17a86b:0xcf,_0x365d31:0x266,_0x3bbc42:0x278,_0x15f459:0x233,_0x4277ec:0x22a,_0x435a7f:0x261},_0x319e5b={_0x281351:0xd2,_0x4429c8:0xbb},_0x8927a7={_0x449cfe:0x15f,_0x2228dd:0x5fd,_0x305a40:0x1a};function _0x586062(_0x1b64f3,_0x3b624c,_0x1e6bba,_0x582161){return _0x4abdca(_0x1b64f3-_0x8927a7._0x449cfe,_0x582161- -_0x8927a7._0x2228dd,_0x1e6bba-_0x8927a7._0x305a40,_0x3b624c);}function _0x5ac8a0(_0x6ee9bd,_0x196348,_0x3c2456,_0x3d8d49){return _0x3921cc(_0x6ee9bd-0x17a,_0x6ee9bd- -_0x319e5b._0x281351,_0x196348,_0x3d8d49-_0x319e5b._0x4429c8);}this[_0x586062(-0x105,-_0x3676f9._0x2ea5fc,-_0x3676f9._0x539e6d,-_0x3676f9._0x2f6fa2)]=_0x53d9ea[_0x5ac8a0(0x2bc,_0x3676f9._0x4e4a7f,_0x3676f9._0x2c9719,_0x3676f9._0x457221)]??_0x586062(-_0x3676f9._0x1e933e,-_0x3676f9._0x1ea481,-_0x3676f9._0x40d45c,-_0x3676f9._0x44916f),this[_0x5ac8a0(0x24c,_0x3676f9._0x433927,0x27d,_0x3676f9._0x2856fb)]=_0x53d9ea[_0x5ac8a0(_0x3676f9._0x38bd00,0x186,_0x3676f9._0x15a7b1,_0x3676f9._0x15534c)]??0x4000,this[_0x5ac8a0(_0x3676f9._0x469097,_0x3676f9._0x34b6b3,0x32c,_0x3676f9._0x4e2151)]=_0x53d9ea[_0x5ac8a0(0x282,0x234,0x281,_0x3676f9._0xa5210c)]??_0x5ac8a0(_0x3676f9._0x2882ac,0x3b2,0x289,_0x3676f9._0x2ea9a9);const _0x3df855=trimTrailingSlashes(_0x53d9ea['baseUrl']??resolveDefaultBaseUrl(this[_0x5ac8a0(_0x3676f9._0x2b64b4,0x304,0x33d,0x1d2)]));if(isAnthropicSurface(this['surface'])){this['anthropicDelegate']=new AnthropicModel({'apiKey':_0x53d9ea['apiKey'],'authScheme':_0x53d9ea[_0x5ac8a0(0x217,0x1fd,_0x3676f9._0x3bc99c,_0x3676f9._0x5b6753)],'baseUrl':_0x3df855,'fetch':_0x53d9ea[_0x586062(-0xd9,-_0x3676f9._0x1e2514,-0xca,-0xe9)],'maxTokens':this[_0x586062(-0xa1,-_0x3676f9._0x16e0a3,-0x93,-0x13f)],'model':this[_0x5ac8a0(0x2bc,_0x3676f9._0x2942cd,_0x3676f9._0xc63cc8,0x218)],'reasoning':_0x53d9ea[_0x5ac8a0(_0x3676f9._0x7788e8,0x2fc,0x1e7,0x213)],'providerSessionResolver':_0x53d9ea[_0x586062(-0xa6,-_0x3676f9._0x209b82,-_0x3676f9._0x385696,-0x106)],'requestMutators':_0x53d9ea[_0x586062(-_0x3676f9._0xa16316,-_0x3676f9._0x42f0b2,-0x86,-0x14c)]});return;}this[_0x5ac8a0(0x25e,0x235,0x1bb,0x24f)]=new OpenAiModel({'apiKey':_0x53d9ea[_0x5ac8a0(_0x3676f9._0x2a8f89,_0x3676f9._0x41c994,0x337,_0x3676f9._0x3c07b0)],'baseUrl':_0x3df855,'fetch':_0x53d9ea[_0x5ac8a0(0x2a2,0x368,0x35a,0x268)],'headerResolver':_0x53d9ea[_0x5ac8a0(0x307,0x2ee,0x2fd,_0x3676f9._0x11c43b)],'maxTokens':this['maxTokens'],'model':this[_0x586062(-_0x3676f9._0x84241b,-0x14b,-0x70,-_0x3676f9._0x17a86b)],'reasoning':_0x53d9ea[_0x5ac8a0(_0x3676f9._0x365d31,_0x3676f9._0x3bbc42,0x260,0x2a3)],'providerSessionResolver':_0x53d9ea[_0x5ac8a0(0x285,0x271,_0x3676f9._0x15f459,_0x3676f9._0x4277ec)],'requestMutators':_0x53d9ea['requestMutators'],'webSocketFactory':_0x53d9ea[_0x5ac8a0(_0x3676f9._0x435a7f,0x2f4,0x2e4,0x2a8)]});}[_0x4abdca(0x54e,0x55b,0x56c,0x58a)](){const _0x50d5f4={_0x33e209:0x4be,_0x5aebd7:0x45a,_0xd235ac:0x4b3,_0x2be70e:0x3fa},_0x3a7725={_0x194f3c:0x99},_0x17574f={_0x1b20b9:0x18,_0xb64006:0x113};function _0x53f608(_0x29c076,_0x26f92d,_0x1c4894,_0x3138eb){return _0x3921cc(_0x29c076-_0x17574f._0x1b20b9,_0x29c076-0x48,_0x26f92d,_0x3138eb-_0x17574f._0xb64006);}if(!this['anthropicDelegate'])throw new Error('Anthropic\x20delegate\x20is\x20not\x20initialized\x20for\x20surface:\x20'+this[_0x37a997(_0x50d5f4._0x33e209,_0x50d5f4._0x5aebd7,0x494,_0x50d5f4._0xd235ac)]);function _0x37a997(_0x576e75,_0x1ebc67,_0x4df23a,_0x25bac9){return _0x3921cc(_0x576e75-_0x3a7725._0x194f3c,_0x1ebc67-0x106,_0x576e75,_0x25bac9-0x6d);}return this[_0x53f608(0x387,_0x50d5f4._0x2be70e,0x2f5,0x31a)];}[_0x4abdca(0x4a9,0x491,0x43d,0x504)](){const _0x3c9bbd={_0x3ef497:0x1fd,_0x5bd1bc:0x1ad,_0x4cb273:0x192,_0x1bbf68:0x228,_0x579c75:0xb8,_0x52f905:0x14c,_0x2a7d8c:0x11c,_0x24fdee:0x10e,_0x2121a7:0x128},_0x11128a={_0x18336f:0x43e},_0x2fe4ab={_0x197ee2:0xe};function _0x4690a6(_0x389dd,_0x26ce2d,_0x245f95,_0x48196f){return _0x4abdca(_0x389dd-0x1dd,_0x389dd- -0x383,_0x245f95-_0x2fe4ab._0x197ee2,_0x245f95);}if(!this[_0x4690a6(0x14d,0xd7,0x9c,_0x3c9bbd._0x3ef497)])throw new Error(_0x5c2c94(-_0x3c9bbd._0x5bd1bc,-0x19a,-_0x3c9bbd._0x4cb273,-_0x3c9bbd._0x1bbf68)+this[_0x4690a6(0x171,0x1b1,_0x3c9bbd._0x579c75,_0x3c9bbd._0x52f905)]);function _0x5c2c94(_0x4cdb0d,_0x428506,_0xe3985f,_0x28ede5){return _0x3921cc(_0x4cdb0d-0x1b8,_0xe3985f- -_0x11128a._0x18336f,_0x28ede5,_0x28ede5-0x2c);}return this[_0x5c2c94(-0x58,-_0x3c9bbd._0x2a7d8c,-_0x3c9bbd._0x24fdee,-_0x3c9bbd._0x2121a7)];}[_0x4abdca(0x46a,0x4af,0x449,0x516)](_0x403b80,_0x511bb8){const _0x30cbc3={_0x27d500:0x2cf,_0x2b2d6f:0x284,_0x2a8996:0x31f,_0x2be2c3:0x31e,_0x39918a:0x2ff,_0x2992c7:0x342,_0x4ae19d:0x394,_0x4299f9:0x3a7,_0x112832:0x467,_0x5ca12f:0x401,_0xddcd1:0x400,_0x27428d:0x354,_0x52bd5c:0x415,_0x587f22:0x4ae,_0xeef5cb:0x1cf,_0x174b92:0xe6,_0x256bbf:0x32c,_0x4a4ee8:0x34e,_0x543666:0x353,_0xa356fa:0x414,_0x4acc6c:0x3e2},_0x4daf1c={_0x4f10f0:0x130},_0x3a886c={_0x30ded:0x188};function _0x4ebb9c(_0x31ba43,_0x50ee2e,_0x248722,_0x42d773){return _0x4abdca(_0x31ba43-0x119,_0x50ee2e- -0x13e,_0x248722-_0x3a886c._0x30ded,_0x42d773);}function _0x1f6ea3(_0x2bb3fd,_0x593487,_0x1ba94d,_0xd877b2){return _0x3921cc(_0x2bb3fd-_0x4daf1c._0x4f10f0,_0xd877b2- -0x15b,_0x1ba94d,_0xd877b2-0xab);}switch(this['surface']){case _0x4ebb9c(_0x30cbc3._0x27d500,0x2fd,_0x30cbc3._0x2b2d6f,_0x30cbc3._0x2a8996):return this[_0x1f6ea3(0x324,0x28d,_0x30cbc3._0x2be2c3,0x260)]()[_0x4ebb9c(_0x30cbc3._0x39918a,0x371,_0x30cbc3._0x2992c7,_0x30cbc3._0x4ae19d)](_0x403b80,_0x511bb8);case _0x4ebb9c(0x3a7,_0x30cbc3._0x4299f9,_0x30cbc3._0x112832,_0x30cbc3._0x5ca12f):return this['getOpenAiDelegate']()[_0x4ebb9c(_0x30cbc3._0xddcd1,0x3b3,_0x30cbc3._0x27428d,_0x30cbc3._0x52bd5c)](_0x403b80,_0x511bb8);case _0x4ebb9c(_0x30cbc3._0x587f22,0x430,0x426,0x3f5):return this[_0x1f6ea3(0x1d6,_0x30cbc3._0xeef5cb,_0x30cbc3._0x174b92,0x196)]()[_0x4ebb9c(0x322,0x382,_0x30cbc3._0x256bbf,0x2e5)](_0x403b80,_0x511bb8);default:return this[_0x4ebb9c(_0x30cbc3._0x4a4ee8,_0x30cbc3._0x543666,_0x30cbc3._0xa356fa,_0x30cbc3._0x4acc6c)]()[_0x4ebb9c(0x42b,0x3dc,0x45a,0x345)](_0x403b80,_0x511bb8);}}[_0x3921cc(0x2c0,0x2b4,0x331,0x2cd)](_0x14cbb2,_0x54e6d3){const _0x403bf5={_0x3e4b4c:0x3df,_0x21e52f:0x44c,_0xfc7460:0x280,_0x66f59f:0x25a,_0xe01c86:0x168,_0x554129:0x2e6,_0x36bd83:0x394,_0x4a7c9b:0x56e,_0x14b2f7:0x3ad,_0x17e1ef:0x419,_0x3ce789:0x362,_0x4039bf:0x3e9,_0x4648cd:0x463},_0x5a2f36={_0x375a55:0x16e,_0x2a1b38:0xa8},_0x4436ea={_0x3e9bf9:0x1c,_0x40121b:0x191};function _0x15a258(_0x23e46b,_0x2a6471,_0x599b09,_0x4e3b47){return _0x3921cc(_0x23e46b-_0x4436ea._0x3e9bf9,_0x599b09- -_0x4436ea._0x40121b,_0x23e46b,_0x4e3b47-0x15d);}function _0x4eab66(_0xbe9d5b,_0x35494e,_0x597584,_0x47d3c0){return _0x4abdca(_0xbe9d5b-_0x5a2f36._0x375a55,_0x35494e- -_0x5a2f36._0x2a1b38,_0x597584-0xd1,_0xbe9d5b);}switch(this[_0x4eab66(_0x403bf5._0x3e4b4c,_0x403bf5._0x21e52f,0x392,0x3aa)]){case'anthropic-messages':return this[_0x15a258(_0x403bf5._0xfc7460,_0x403bf5._0x66f59f,0x22a,_0x403bf5._0xe01c86)]()[_0x4eab66(0x359,0x3ac,0x322,_0x403bf5._0x554129)](_0x14cbb2,_0x54e6d3);case'openai-responses':return this[_0x4eab66(_0x403bf5._0x36bd83,0x3e9,0x3b2,0x39c)]()['responseStream'](_0x14cbb2,_0x54e6d3);case _0x4eab66(0x48b,0x4c6,0x44b,_0x403bf5._0x4a7c9b):return this['getOpenAiDelegate']()[_0x4eab66(0x3f3,_0x403bf5._0x14b2f7,_0x403bf5._0x17e1ef,_0x403bf5._0x3ce789)](_0x14cbb2,_0x54e6d3);default:return this[_0x4eab66(0x3cd,_0x403bf5._0x4039bf,0x396,0x34b)]()[_0x4eab66(0x4a3,0x4a5,0x523,_0x403bf5._0x4648cd)](_0x14cbb2,_0x54e6d3);}}};import{randomUUID}from'crypto';var GitHubAccessTokenResolver=class{[_0x4abdca(0x576,0x511,0x4a6,0x477)];[_0x3921cc(0x227,0x2bb,0x299,0x29b)];[_0x3921cc(0x49b,0x3e5,0x3ed,0x366)];[_0x4abdca(0x482,0x542,0x5ac,0x5fe)];[_0x4abdca(0x4f8,0x461,0x3a3,0x3ce)];constructor(_0x12b3a8){const _0x429a8b={_0x483191:0x19b,_0x84b362:0x102,_0x2ff0bb:0x137,_0x2c4e6f:0x672,_0x3aeeb4:0x67f,_0x18a691:0x714,_0x3b458f:0x239,_0x5f0ee3:0x5f2,_0x456487:0x25a,_0x167c3e:0x1bd},_0x3ad245={_0xcd7ad9:0x61},_0x3706b0={_0x456647:0xde};function _0x145dc7(_0x512bba,_0x19c43c,_0xb00d2,_0x3b7d3c){return _0x4abdca(_0x512bba-0x6a,_0x512bba-0x108,_0xb00d2-_0x3706b0._0x456647,_0x3b7d3c);}function _0x214c59(_0x36dc8d,_0x42cea8,_0x2a0a43,_0x4395d8){return _0x4abdca(_0x36dc8d-_0x3ad245._0xcd7ad9,_0x2a0a43- -0x385,_0x2a0a43-0xb3,_0x42cea8);}this[_0x214c59(0x134,_0x429a8b._0x483191,0x18c,_0x429a8b._0x84b362)]=_0x12b3a8[_0x214c59(0x130,0x135,0x18c,_0x429a8b._0x2ff0bb)],this['baseUrl']=trimTrailingSlashes2(_0x12b3a8['baseUrl']),this[_0x145dc7(0x68d,_0x429a8b._0x2c4e6f,_0x429a8b._0x3aeeb4,_0x429a8b._0x18a691)]=_0x12b3a8[_0x214c59(_0x429a8b._0x3b458f,0x14e,0x18f,0x17e)],this[_0x145dc7(0x64a,0x5d6,_0x429a8b._0x5f0ee3,0x58b)]=trimTrailingSlashes2(_0x12b3a8[_0x214c59(0x186,_0x429a8b._0x456487,_0x429a8b._0x167c3e,0x257)]),this[_0x145dc7(0x569,0x4a7,0x518,0x5bf)]=_0x12b3a8['tokenExchangeApiVersion'];}async[_0x4abdca(0x544,0x4c6,0x457,0x496)](_0x513395){const _0x3b4860={_0x49d683:0x604,_0x2dd7c5:0x589,_0x5488e5:0x64b,_0x4850de:0x5e0,_0x3be626:0x6a3,_0x55c130:0x9,_0x1e6428:0x11f,_0xbe6684:0x72,_0x39092c:0xde,_0x1eb448:0x644,_0x32a63f:0x5f2,_0x1cf5e0:0x5bd,_0x992a2c:0x613,_0xc6b94a:0x505,_0x154956:0x4a5,_0x2fd829:0x5aa,_0xb7379d:0x51e,_0x457d87:0x5bf,_0x543702:0x5a6,_0x2a4b94:0x63e,_0x2ba3e7:0x2a,_0x1a0641:0x42,_0x17bb6a:0x4f3,_0x55acba:0x4f8,_0x1cd81a:0x100,_0x441ef7:0x17b,_0x39d602:0x98,_0x8d5488:0x648,_0x4118c0:0x5fa,_0x4f1632:0x5f2,_0x3bbe7c:0x5e5,_0x55e153:0x49,_0x465d04:0x107,_0xb0c45d:0x5e0,_0x261b1e:0x5ef,_0x1211f1:0x679,_0x106478:0x60e,_0x4081bb:0x6a7},_0x212464={_0x4fa096:0x161,_0x1a75ae:0x1},_0x5589ad=await this[_0x627e3d(_0x3b4860._0x49d683,0x65e,0x666,0x71b)](this[_0x627e3d(0x6d7,_0x3b4860._0x2dd7c5,0x623,_0x3b4860._0x5488e5)]+'/copilot_internal/v2/token',{'method':_0x627e3d(0x65c,0x540,_0x3b4860._0x4850de,_0x3b4860._0x3be626),'headers':new Headers({'accept':_0x473d7e(0x6a,-0x43,_0x3b4860._0x55c130,_0x3b4860._0x1e6428),'authorization':_0x473d7e(0xdf,_0x3b4860._0xbe6684,_0x3b4860._0x39092c,0x1a2)+this[_0x627e3d(_0x3b4860._0x1eb448,0x5dd,_0x3b4860._0x32a63f,_0x3b4860._0x1cf5e0)],'editor-version':_0x627e3d(0x657,_0x3b4860._0x992a2c,0x66a,0x6c6),'user-agent':'GitHubCopilotChat/0.33.1','x-github-api-version':this[_0x627e3d(_0x3b4860._0xc6b94a,0x50b,0x542,0x55a)]}),'signal':_0x513395});function _0x627e3d(_0x477448,_0x55f84e,_0x204645,_0x3b3f30){return _0x3921cc(_0x477448-_0x212464._0x4fa096,_0x204645-0x281,_0x3b3f30,_0x3b3f30-_0x212464._0x1a75ae);}if(!_0x5589ad['ok'])return{'credential':{'kind':_0x627e3d(_0x3b4860._0x154956,_0x3b4860._0x2fd829,_0x3b4860._0xb7379d,_0x3b4860._0x457d87),'value':this[_0x627e3d(_0x3b4860._0x543702,0x68e,_0x3b4860._0x32a63f,_0x3b4860._0x2a4b94)]},'endpoints':{'api':this['baseUrl']}};function _0x473d7e(_0x29542,_0x28b183,_0x4a81c9,_0x4c8e2e){return _0x4abdca(_0x29542-0x1ca,_0x29542- -0x4a4,_0x4a81c9-0x180,_0x4c8e2e);}const _0x3a5803=await _0x5589ad[_0x473d7e(-_0x3b4860._0x2ba3e7,-_0x3b4860._0x1a0641,0x72,-0xa)]();return{'credential':{'kind':_0x627e3d(0x580,_0x3b4860._0x17bb6a,0x5b7,_0x3b4860._0x55acba),'value':_0x3a5803[_0x473d7e(_0x3b4860._0x1cd81a,_0x3b4860._0x441ef7,0x14d,_0x3b4860._0x39d602)]??this[_0x627e3d(_0x3b4860._0x8d5488,_0x3b4860._0x4118c0,_0x3b4860._0x4f1632,_0x3b4860._0x3bbe7c)]},'endpoints':{'api':_0x3a5803['endpoints']?.['api']??this[_0x473d7e(-_0x3b4860._0x55e153,-0xf7,0x7d,-_0x3b4860._0x465d04)],'originTracker':_0x3a5803[_0x627e3d(0x6b9,_0x3b4860._0xb0c45d,0x60e,0x6c2)]?.[_0x627e3d(0x683,_0x3b4860._0x261b1e,_0x3b4860._0x1211f1,0x6fb)],'proxy':_0x3a5803[_0x473d7e(0x89,0x137,0x14d,0x4d)]?.[_0x473d7e(0x71,-0x26,0xc2,0x51)],'telemetry':_0x3a5803[_0x627e3d(0x67b,0x5af,_0x3b4860._0x106478,0x596)]?.[_0x627e3d(0x58b,_0x3b4860._0x4081bb,0x646,0x6e0)]}};}};function trimTrailingSlashes2(_0x21b394){const _0x511f3b={_0x1402c:0x255},_0x2a05fd={_0x31b81a:0x10,_0x483918:0xb8,_0x58ccfe:0x10d};function _0x39cbbb(_0x15d3b6,_0x33dfe1,_0x2720bd,_0xdaddce){return _0x3921cc(_0x15d3b6-_0x2a05fd._0x31b81a,_0x2720bd- -_0x2a05fd._0x483918,_0x33dfe1,_0xdaddce-_0x2a05fd._0x58ccfe);}return _0x21b394[_0x39cbbb(0x301,0x2f5,0x2cc,_0x511f3b._0x1402c)](/\/+$/,'');}function createModelInfo(_0x4c254e){const _0xe2bfef={_0x346aa9:0x1f1,_0xdc111:0x220,_0x6be923:0x288,_0x3d9e74:0x1fe,_0x59c73f:0x240,_0x486f76:0x223,_0x310620:0xd3,_0x2807eb:0x19b,_0x470825:0x113,_0x1d19f8:0x1be},_0x40198e={_0x2c4e71:0x171,_0x4796ae:0x242};function _0x55e0ae(_0x479ca2,_0x498de0,_0x119931,_0x4b7317){return _0x3921cc(_0x479ca2-0xcb,_0x4b7317- -0x139,_0x119931,_0x4b7317-0x1bb);}const _0x270f04=_0x4c254e['supported_endpoints']??_0x4c254e[_0x55e0ae(0x216,0x22b,_0xe2bfef._0x346aa9,_0xe2bfef._0xdc111)],_0x4c5308=_0x4c254e[_0x55e0ae(_0xe2bfef._0x6be923,_0xe2bfef._0x3d9e74,_0xe2bfef._0x59c73f,_0xe2bfef._0x486f76)]?.['limits']?.[_0x3a5ac1(_0xe2bfef._0x310620,0x61,0x152,0xfc)],_0x41f7ce=_0x4c254e[_0x55e0ae(0x297,_0xe2bfef._0x2807eb,0x1b1,0x223)]?.[_0x55e0ae(_0xe2bfef._0x470825,0x9c,_0xe2bfef._0x1d19f8,0x159)]?.[_0x55e0ae(0x233,0xfb,0x11f,0x175)],_0x1cd075=_0x4c5308!==void 0x0||_0x41f7ce!==void 0x0?{..._0x4c5308!==void 0x0?{'contextWindow':_0x4c5308}:{},..._0x41f7ce!==void 0x0?{'maxOutput':_0x41f7ce}:{}}:void 0x0;function _0x3a5ac1(_0x2f9463,_0x33f90b,_0x311ff3,_0x2fd69a){return _0x3921cc(_0x2f9463-_0x40198e._0x2c4e71,_0x2fd69a- -_0x40198e._0x4796ae,_0x311ff3,_0x2fd69a-0x18b);}return{'id':_0x4c254e['id'],'name':_0x4c254e['name']??_0x4c254e['id'],..._0x1cd075?{'limits':_0x1cd075}:{},..._0x270f04?{'supportedEndpoints':_0x270f04}:{}};}function deduplicateModels(_0x11431a){const _0x2f5378={_0xe19867:0x30b,_0x15b030:0x306,_0x282f64:0x359,_0x13a3bf:0x31f,_0x55ccc9:0x18c,_0x517dc5:0x12d,_0x1a23b2:0x216,_0x5545ed:0x395,_0x1d9723:0x21b},_0x7b0efc={_0x3d7ef7:0x186,_0x350b43:0x3e},_0x229087={_0x1d7b9b:0x1ca,_0x40ca82:0x19},_0x37d3b5=new Map();function _0x5b873c(_0x3d2d55,_0x273c95,_0x1b1a3e,_0x3eb60b){return _0x3921cc(_0x3d2d55-_0x229087._0x1d7b9b,_0x273c95- -0x86,_0x3eb60b,_0x3eb60b-_0x229087._0x40ca82);}function _0x295490(_0x1fc41e,_0x51adbb,_0x22983d,_0xe1f0b1){return _0x4abdca(_0x1fc41e-_0x7b0efc._0x3d7ef7,_0x22983d- -0x2c5,_0x22983d-_0x7b0efc._0x350b43,_0xe1f0b1);}for(const _0x25a295 of _0x11431a){!_0x37d3b5[_0x5b873c(_0x2f5378._0xe19867,_0x2f5378._0x15b030,_0x2f5378._0x282f64,_0x2f5378._0x13a3bf)](_0x25a295['id'])&&_0x37d3b5[_0x295490(_0x2f5378._0x55ccc9,_0x2f5378._0x517dc5,0x18a,_0x2f5378._0x1a23b2)](_0x25a295['id'],_0x25a295);}return Array[_0x5b873c(0x410,0x387,_0x2f5378._0x5545ed,0x3c4)](_0x37d3b5[_0x295490(_0x2f5378._0x1d9723,0x255,0x1ef,0x23e)]());}function hasUserPromptContent(_0x87b125){const _0x361acd={_0x208de1:0xe0,_0x95c504:0x116,_0x20dc55:0x1c0,_0x3dd12f:0xb6,_0x41a3c8:0x71,_0x45a76d:0x91},_0x4ce000={_0x29c09a:0xce,_0x540c35:0x8d,_0x4a9016:0xc1,_0xfbea4a:0xee,_0x568997:0xaa,_0x288d33:0x21c,_0x364421:0x164,_0x25fb79:0x4a8,_0x2ac7a8:0x400,_0x5a48ce:0x4f2,_0x45b615:0x459},_0x19aac2={_0x5de7f2:0x6a,_0x19106:0x149},_0x36b0ee={_0x542a64:0x142,_0x787aa3:0x44b,_0x2673c4:0xb4};if(typeof _0x87b125===_0x141873(-0xfc,-_0x361acd._0x208de1,-0x66,-0x78))return _0x87b125[_0x3ad991(0x34,-_0x361acd._0x95c504,-0x8c,-0xa9)]()[_0x141873(-0x12e,-0x1bc,-_0x361acd._0x20dc55,-_0x361acd._0x3dd12f)]>0x0;if(!Array[_0x3ad991(-_0x361acd._0x41a3c8,-0x56,-_0x361acd._0x45a76d,-0x73)](_0x87b125))return![];function _0x3ad991(_0x1e9f76,_0x4f965c,_0x155364,_0x21d744){return _0x3921cc(_0x1e9f76-_0x36b0ee._0x542a64,_0x155364- -_0x36b0ee._0x787aa3,_0x21d744,_0x21d744-_0x36b0ee._0x2673c4);}function _0x141873(_0x7b192c,_0x4ace31,_0x41e6e0,_0x1b513a){return _0x3921cc(_0x7b192c-_0x19aac2._0x5de7f2,_0x7b192c- -0x4ec,_0x4ace31,_0x1b513a-_0x19aac2._0x19106);}return _0x87b125['some'](_0x2403fb=>{const _0x46fb64={_0x6b5219:0x11,_0x5dbfc4:0x4b7};function _0x2d60b6(_0x52261c,_0x184691,_0x4a5db3,_0x3b0c9d){return _0x141873(_0x3b0c9d-0x26f,_0x4a5db3,_0x4a5db3-0x17a,_0x3b0c9d-0x19c);}function _0x57d267(_0x817846,_0x5947e4,_0x3b87d7,_0x3250a4){return _0x3ad991(_0x817846-0x90,_0x5947e4-_0x46fb64._0x6b5219,_0x817846-_0x46fb64._0x5dbfc4,_0x5947e4);}if(!_0x2403fb||typeof _0x2403fb!==_0x2d60b6(_0x4ce000._0x29c09a,_0x4ce000._0x540c35,_0x4ce000._0x4a9016,_0x4ce000._0xfbea4a))return![];const _0x3509bc=_0x2403fb;return(_0x3509bc['type']==='input_text'||_0x3509bc[_0x2d60b6(0x4d,-0x3c,_0x4ce000._0x568997,0x82)]===_0x2d60b6(0x157,0xe1,_0x4ce000._0x288d33,_0x4ce000._0x364421))&&typeof _0x3509bc[_0x57d267(0x44d,0x430,_0x4ce000._0x25fb79,_0x4ce000._0x2ac7a8)]===_0x57d267(0x45c,_0x4ce000._0x5a48ce,_0x4ce000._0x45b615,0x3bd)&&_0x3509bc['text']['trim']()['length']>0x0;});}function isUserPromptEntry(_0x5eecc7){const _0x3ea39b={_0x358638:0x498,_0x59d095:0x3f1,_0xa603c:0x8f,_0x1fa0f6:0xcd,_0x365f7b:0x4b,_0x46976c:0x1e9,_0x185346:0x1dd,_0x4d253f:0x208,_0xb37452:0x41e,_0x4d94cf:0x423,_0x3bc8d0:0x3e8,_0x3f5e5f:0x468,_0x440dc1:0x466},_0x109a99={_0x708419:0x60,_0x253ab0:0xd8,_0x1c25da:0x155},_0x17a210={_0x3f56ab:0x16e};if(!_0x5eecc7||typeof _0x5eecc7!==_0x192eb0(0x443,0x387,_0x3ea39b._0x358638,_0x3ea39b._0x59d095))return![];function _0x2c4f2d(_0x6979a8,_0x401b9d,_0x561497,_0x404d58){return _0x3921cc(_0x6979a8-0x1ce,_0x401b9d- -0x49f,_0x404d58,_0x404d58-_0x17a210._0x3f56ab);}function _0x192eb0(_0x47f4cb,_0x3bac9f,_0x19575e,_0x2d6af4){return _0x3921cc(_0x47f4cb-_0x109a99._0x708419,_0x47f4cb-_0x109a99._0x253ab0,_0x3bac9f,_0x2d6af4-_0x109a99._0x1c25da);}const _0x4d87ab=_0x5eecc7;if(_0x4d87ab[_0x2c4f2d(-_0x3ea39b._0xa603c,-_0x3ea39b._0x1fa0f6,-_0x3ea39b._0x365f7b,-0x97)]!==_0x2c4f2d(-_0x3ea39b._0x46976c,-_0x3ea39b._0x185346,-0x1c9,-0x257))return![];if(_0x4d87ab[_0x2c4f2d(-0x178,-0x1a0,-_0x3ea39b._0x4d253f,-0xe9)]!==void 0x0&&_0x4d87ab[_0x192eb0(0x3d7,_0x3ea39b._0xb37452,0x422,0x382)]!==_0x192eb0(_0x3ea39b._0x4d94cf,_0x3ea39b._0x3bc8d0,_0x3ea39b._0x3f5e5f,_0x3ea39b._0x440dc1))return![];return hasUserPromptContent(_0x4d87ab['content']);}function determineInitiator(_0x39ea59){const _0x5defa9={_0x425fef:0xb7,_0x627393:0x109,_0x313c2b:0xee,_0x1e8385:0x169,_0x4f24d3:0x146,_0x3e0342:0x18c,_0x4d8b2f:0xab,_0x4ce376:0x1e1,_0x413fde:0x1df,_0x21cb41:0x1b5,_0xfa532:0x134,_0x5d44da:0x200,_0x85ac6:0xef,_0x125098:0x46,_0x448015:0x185,_0x549bf7:0x1ad,_0x7b0e45:0x2b,_0x2de795:0x1e6,_0x10c429:0x220,_0x4bf30c:0x21c,_0x3c100a:0x169,_0x2f2c2b:0x228},_0x3faccd={_0x798206:0x181,_0x1745f2:0x3},_0x331823={_0xb73911:0xa3};if(!_0x39ea59||typeof _0x39ea59!==_0x58e986(-0x1da,-0x140,-_0x5defa9._0x425fef,-0x1de))return _0x58e986(-_0x5defa9._0x627393,-_0x5defa9._0x313c2b,-_0x5defa9._0x1e8385,-0x183);const _0x1c9ba3=_0x1497d4(0x1c3,_0x5defa9._0x4f24d3,_0x5defa9._0x3e0342,_0x5defa9._0x4d8b2f)in _0x39ea59?_0x39ea59[_0x58e986(-_0x5defa9._0x4ce376,-0x1c4,-0x1b6,-_0x5defa9._0x413fde)]:_0x58e986(-_0x5defa9._0x21cb41,-0x1d9,-0x171,-0x122)in _0x39ea59?_0x39ea59[_0x58e986(-_0x5defa9._0xfa532,-0x1d9,-_0x5defa9._0x5d44da,-0x227)]:void 0x0;function _0x58e986(_0x355d3d,_0x16238d,_0x46a09a,_0x39ae10){return _0x3921cc(_0x355d3d-0xf5,_0x16238d- -0x4ab,_0x46a09a,_0x39ae10-_0x331823._0xb73911);}function _0x1497d4(_0x2f73a0,_0x3e4bd4,_0xec79c,_0x2dff1d){return _0x4abdca(_0x2f73a0-_0x3faccd._0x798206,_0x3e4bd4- -0x341,_0xec79c-_0x3faccd._0x1745f2,_0xec79c);}if(!Array[_0x58e986(-_0x5defa9._0x85ac6,-0xf1,-0x121,-0xa8)](_0x1c9ba3)||_0x1c9ba3[_0x58e986(-_0x5defa9._0x125098,-0xed,-_0x5defa9._0x448015,-_0x5defa9._0x549bf7)]===0x0)return'agent';return isUserPromptEntry(_0x1c9ba3[_0x1c9ba3[_0x58e986(-_0x5defa9._0x7b0e45,-0xed,-0x11d,-0x18f)]-0x1])?_0x1497d4(_0x5defa9._0x2de795,0x121,_0x5defa9._0x4f24d3,0xb6):_0x1497d4(_0x5defa9._0x10c429,_0x5defa9._0x4bf30c,_0x5defa9._0x3c100a,_0x5defa9._0x2f2c2b);}function isUnsupportedApiForModel(_0x404a2d){const _0x1fcfb9={_0x371ddc:0x209,_0x317fcc:0x1b9,_0x53b806:0x117},_0x2762bd={_0x4d5c09:0x6};function _0x246073(_0x3e1e16,_0x3c9e48,_0x40b01e,_0x3a15fd){return _0x4abdca(_0x3e1e16-_0x2762bd._0x4d5c09,_0x40b01e- -0x362,_0x40b01e-0x1a2,_0x3a15fd);}return _0x404a2d[_0x246073(0x246,_0x1fcfb9._0x371ddc,_0x1fcfb9._0x317fcc,_0x1fcfb9._0x53b806)]('unsupported_api_for_model');}function createResponseError(_0x3721f9,_0x4feebb){const _0x5abaf0={_0x2b9680:0x272,_0xd3f2fd:0x22c,_0xc7905f:0x2d5,_0x39c0d5:0xef,_0x2e3ca9:0xdf,_0x1390d3:0x55},_0x481921={_0x23dc3c:0x23c,_0x48f675:0x11b},_0x335744={_0x12f229:0x6,_0x4dc907:0x21};if(_0x3721f9===0x191||_0x3721f9===0x193)return new Error(_0x5cc14a(_0x5abaf0._0x2b9680,0x302,_0x5abaf0._0xd3f2fd,_0x5abaf0._0xc7905f));function _0x5cc14a(_0x4589df,_0x1bbb45,_0xd5ef98,_0x35f7f9){return _0x3921cc(_0x4589df-_0x335744._0x12f229,_0x4589df- -0x157,_0x35f7f9,_0x35f7f9-_0x335744._0x4dc907);}if(_0x3721f9===0x198||_0x3721f9===0x1ad)return new Error(_0x28ee84(0x155,0x169,_0x5abaf0._0x39c0d5,0x215));if(_0x3721f9===0x190)return new Error('Invalid\x20request:\x20'+_0x4feebb);function _0x28ee84(_0x24e368,_0x11e885,_0x3cb53f,_0x127f98){return _0x3921cc(_0x24e368-0x126,_0x24e368- -_0x481921._0x23dc3c,_0x127f98,_0x127f98-_0x481921._0x48f675);}return new Error(_0x4feebb||_0x28ee84(_0x5abaf0._0x2e3ca9,0xd0,0x1f,_0x5abaf0._0x1390d3)+_0x3721f9);}var GitHubModel=class extends OpenAiModel{[_0x4abdca(0x4bc,0x4df,0x553,0x531)];[_0x4abdca(0x3c5,0x485,0x4b4,0x499)]=new Map();['surface'];constructor(_0x2eaa79={}){const _0x21bf07={_0x55c00c:0x198,_0x500115:0x1c4,_0x202a71:0x156,_0x2ca2cd:0x232,_0x5c495c:0x10b,_0xf67048:0x11,_0x3a511f:0x129,_0x26284f:0x91,_0x3a3e60:0x17a,_0x4d3161:0x1ab,_0x2bc079:0xbe,_0x2b9b1c:0xa2,_0x39be79:0xc,_0x188e6c:0x1cc,_0x73bd1b:0x60,_0x3f12ee:0x11f,_0x2cd74c:0xa2,_0x4be79b:0x59,_0x1a1ecf:0x74,_0x54639a:0x184,_0x232b43:0xca,_0x3d86ca:0x7,_0x437842:0x12b,_0x1f891c:0xe2,_0x16d1b1:0x62,_0x1f1d41:0x86,_0x5b3136:0x1c9,_0xac8aa0:0x11c,_0x749a97:0xdb,_0x53500f:0x16d,_0x3f8c2f:0x147,_0x422f61:0xbc,_0x4c49dc:0xf0,_0x1684db:0xc8,_0x21608b:0xe2,_0x416213:0xf1},_0xa5569f={_0x1f06ab:0x47f,_0x3a6d21:0x1f2},_0x362c2e={_0x394f42:0x1d8};function _0x3db0b6(_0x277e5b,_0x6eab24,_0x5e26dc,_0x3bec5c){return _0x4abdca(_0x277e5b-0x192,_0x3bec5c- -0x5a2,_0x5e26dc-_0x362c2e._0x394f42,_0x6eab24);}const _0x5bf61a=trimTrailingSlashes2(_0x2eaa79[_0x18ac98(-_0x21bf07._0x55c00c,-_0x21bf07._0x500115,-_0x21bf07._0x202a71,-_0x21bf07._0x2ca2cd)]??_0x3db0b6(-0x71,-0xa1,-0x1b2,-0x11c)),_0xd1d278=_0x2eaa79[_0x18ac98(-0x1c2,-_0x21bf07._0x5c495c,-0x7b,-0x103)]??globalThis['fetch'],_0x252540=_0x2eaa79['providerSessionResolver']??(_0x2eaa79[_0x3db0b6(_0x21bf07._0xf67048,-0x126,-_0x21bf07._0x3a511f,-_0x21bf07._0x26284f)]?new GitHubAccessTokenResolver({'accessToken':_0x2eaa79[_0x18ac98(-0x161,-0x10e,-0x76,-0x7e)],'baseUrl':_0x5bf61a,'fetch':_0xd1d278,'githubApiUrl':_0x2eaa79['githubApiUrl']??_0x3db0b6(-0x1ab,-_0x21bf07._0x3a3e60,-_0x21bf07._0x4d3161,-0x13e),'tokenExchangeApiVersion':_0x2eaa79['tokenExchangeApiVersion']??'2025-10-01'}):void 0x0),_0x33987f=_0x2eaa79[_0x3db0b6(_0x21bf07._0x2bc079,-0xa9,-_0x21bf07._0x2b9b1c,_0x21bf07._0x39be79)]??_0x18ac98(-0x1c5,-_0x21bf07._0x188e6c,-0x1ea,-0x203);function _0x18ac98(_0x251d32,_0xbaa58e,_0x33124e,_0x122437){return _0x3921cc(_0x251d32-0x1d8,_0xbaa58e- -_0xa5569f._0x1f06ab,_0x251d32,_0x122437-_0xa5569f._0x3a6d21);}const _0x196e58=_0x2eaa79['editorPluginVersion']??_0x3db0b6(-0xc8,-_0x21bf07._0x73bd1b,-0xb0,-_0x21bf07._0x3f12ee),_0x978e99=({body:_0x1b56ae})=>{return{'editor-plugin-version':_0x196e58,'editor-version':_0x33987f,'x-initiator':determineInitiator(_0x1b56ae),'x-request-id':randomUUID()};},_0x1a7174={'apiKey':_0x2eaa79['apiKey'],'baseUrl':_0x5bf61a,'fetch':_0xd1d278,'maxTokens':_0x2eaa79[_0x3db0b6(-_0x21bf07._0x2cd74c,-0x169,-0x62,-0xe4)],'model':_0x2eaa79[_0x3db0b6(-0x36,0x14,-_0x21bf07._0x4be79b,-_0x21bf07._0x1a1ecf)],'reasoning':_0x2eaa79[_0x3db0b6(-0x175,-_0x21bf07._0x54639a,-0x4f,-_0x21bf07._0x232b43)],'providerSessionResolver':_0x252540,'requestMutators':_0x2eaa79['requestMutators'],'headerResolver':_0x978e99};super(_0x1a7174),this[_0x3db0b6(_0x21bf07._0x3d86ca,-0x170,-0x91,-0xae)]=_0x2eaa79[_0x18ac98(-0x16f,-_0x21bf07._0x437842,-0xb0,-0xb7)]??_0x18ac98(-0xf7,-0xd3,-_0x21bf07._0x1f891c,-0x12),this['anthropicDelegate']=new AnthropicModel({'apiKey':_0x2eaa79[_0x3db0b6(-_0x21bf07._0x16d1b1,_0x21bf07._0x1f1d41,0x0,0xe)],'authScheme':_0x18ac98(-0x20e,-0x1c3,-0x13c,-_0x21bf07._0x5b3136),'baseUrl':_0x5bf61a,'fetch':_0xd1d278,'headerResolver':_0x978e99,'maxTokens':_0x2eaa79[_0x18ac98(-0x157,-0x161,-_0x21bf07._0xac8aa0,-_0x21bf07._0x749a97)],'model':_0x2eaa79['model'],'reasoning':_0x2eaa79[_0x18ac98(-_0x21bf07._0x53500f,-_0x21bf07._0x3f8c2f,-0x14d,-_0x21bf07._0x422f61)],'providerSessionResolver':_0x252540,'requestMutators':_0x2eaa79[_0x3db0b6(-_0x21bf07._0x4c49dc,-_0x21bf07._0x1684db,-_0x21bf07._0x21608b,-_0x21bf07._0x416213)]});}['createMissingCredentialError'](){const _0x49c805={_0x4435de:0xa4},_0x1900c4={_0x1febcc:0x125,_0x2fdb35:0x281,_0x304ea6:0x1d};function _0x10f8d2(_0x25b4b9,_0x43ab8a,_0xe4eb9,_0x2c71bf){return _0x3921cc(_0x25b4b9-_0x1900c4._0x1febcc,_0x43ab8a- -_0x1900c4._0x2fdb35,_0x2c71bf,_0x2c71bf-_0x1900c4._0x304ea6);}return new Error(_0x10f8d2(0x9f,0xb8,_0x49c805._0x4435de,0x110));}[_0x4abdca(0x54e,0x57c,0x56c,0x628)](_0x4256bd){const _0x31edf5={_0x19f122:0xd0,_0x6ca815:0x19,_0x4bddca:0x1b,_0x30e5f7:0x37e,_0x56ada1:0x433,_0x5e9c7d:0x49c,_0x3950e3:0x48d,_0x4c371d:0x479},_0x91d9e3={_0x5e43fc:0x198,_0xdf15bf:0x19e},_0x4b6ce9={_0x1e79d4:0x7a,_0x4bfc5b:0xc9,_0x4d6944:0x10c};function _0x51a359(_0xdba88a,_0x4d1338,_0x329dee,_0x1eec8c){return _0x3921cc(_0xdba88a-_0x4b6ce9._0x1e79d4,_0x1eec8c-_0x4b6ce9._0x4bfc5b,_0x4d1338,_0x1eec8c-_0x4b6ce9._0x4d6944);}const _0x3740af=this[_0x5bd7e7(-_0x31edf5._0x19f122,-0xf8,_0x31edf5._0x6ca815,-0x75)][_0x5bd7e7(-0xe9,-_0x31edf5._0x4bddca,-0x15a,-0x9a)](_0x4256bd);function _0x5bd7e7(_0x39f928,_0x3c2288,_0x149ebf,_0xc14571){return _0x4abdca(_0x39f928-_0x91d9e3._0x5e43fc,_0xc14571- -0x4fa,_0x149ebf-_0x91d9e3._0xdf15bf,_0x39f928);}if(!_0x3740af)return![];return!_0x3740af[_0x51a359(_0x31edf5._0x30e5f7,0x4a7,_0x31edf5._0x56ada1,0x444)](_0x51a359(0x4f8,0x455,0x52d,_0x31edf5._0x5e9c7d))&&_0x3740af['includes'](_0x51a359(0x47d,_0x31edf5._0x3950e3,0x52a,_0x31edf5._0x4c371d));}[_0x4abdca(0x561,0x4cc,0x47f,0x4d4)](_0x14127c){const _0x4aeeda={_0x58ef58:0x3d1,_0x5209e5:0x36a,_0x3d35c7:0x393,_0xe883ca:0xf7,_0x51c08a:0xf9,_0x33abb5:0x4ec,_0x558373:0x425,_0x311fde:0x469,_0x23ab79:0x4c4,_0x588232:0x5a0,_0x5500fd:0x439,_0x187415:0x4f9,_0x2fc1ac:0x4c8,_0x136d2f:0x48e,_0x349c9c:0x525},_0x170fdf={_0x492401:0x1b8,_0x31be51:0x41b,_0x5bcad3:0x1a},_0x4b2f75={_0xe53259:0x35,_0x380cf9:0x57,_0x463543:0x1c3},_0x5679b0=this[_0x7149c1(-0x23,0x16,0x6a,0x58)][_0x636917(_0x4aeeda._0x58ef58,_0x4aeeda._0x5209e5,_0x4aeeda._0x3d35c7,0x409)](_0x14127c[_0x7149c1(0x9b,_0x4aeeda._0xe883ca,0x113,_0x4aeeda._0x51c08a)]);function _0x636917(_0x1355b0,_0xabbc79,_0x38d420,_0x6cc633){return _0x4abdca(_0x1355b0-_0x4b2f75._0xe53259,_0x6cc633- -_0x4b2f75._0x380cf9,_0x38d420-_0x4b2f75._0x463543,_0x1355b0);}if(!_0x5679b0)return![];function _0x7149c1(_0x39dc81,_0x16311f,_0xf2f19b,_0x1068d8){return _0x4abdca(_0x39dc81-_0x170fdf._0x492401,_0xf2f19b- -_0x170fdf._0x31be51,_0xf2f19b-_0x170fdf._0x5bcad3,_0x16311f);}if(resolveOpenAiReasoningConfig(_0x14127c[_0x636917(0x4d3,0x3fa,0x3dc,0x481)]))return _0x5679b0[_0x636917(_0x4aeeda._0x33abb5,_0x4aeeda._0x558373,_0x4aeeda._0x311fde,_0x4aeeda._0x23ab79)](_0x636917(0x543,_0x4aeeda._0x588232,_0x4aeeda._0x5500fd,_0x4aeeda._0x187415));return this[_0x636917(_0x4aeeda._0x2fc1ac,0x481,_0x4aeeda._0x136d2f,_0x4aeeda._0x349c9c)](_0x14127c[_0x7149c1(0x112,0x1cb,0x113,0x14e)]);}[_0x3921cc(0x420,0x3ff,0x353,0x407)](_0x28afa1){const _0x4e3ed9={_0xf2129f:0x1a1,_0x38c6f3:0x229,_0x4af2c7:0x2f4},_0x267b8b={_0x15b08c:0x176},_0x5d36fc={_0x5429e7:0xef,_0x354dba:0x9};function _0x20ba47(_0x1493ff,_0x584e65,_0x733369,_0x4b6f85){return _0x3921cc(_0x1493ff-_0x5d36fc._0x5429e7,_0x1493ff- -0x11b,_0x584e65,_0x4b6f85-_0x5d36fc._0x354dba);}function _0x3a13ae(_0x54b441,_0x5c2d11,_0x4b0c0e,_0x2de574){return _0x3921cc(_0x54b441-0x57,_0x5c2d11- -0x450,_0x54b441,_0x2de574-_0x267b8b._0x15b08c);}this['modelEndpointCache'][_0x3a13ae(-0x1ca,-_0x4e3ed9._0xf2129f,-0x213,-_0x4e3ed9._0x38c6f3)](_0x28afa1,[_0x20ba47(0x295,0x1ec,_0x4e3ed9._0x4af2c7,0x210)]);}['mapApiError'](_0x5cc537){const _0x4643ff={_0x21ad96:0x2a4,_0x3a88bd:0x1a3,_0x269529:0x7d,_0x3d02ce:0x19c,_0x31aed0:0x117,_0xdc96e5:0xfb},_0x47ab3d={_0x2a86eb:0x498},_0x4ac81f={_0x5c118c:0x0,_0xedda6d:0x159};function _0x157ee6(_0x5ef803,_0x4d994b,_0x4e094e,_0x5b0bcf){return _0x4abdca(_0x5ef803-0xd9,_0x5ef803-_0x4ac81f._0x5c118c,_0x4e094e-_0x4ac81f._0xedda6d,_0x5b0bcf);}if(_0x5cc537 instanceof OpenAiApiError)return createResponseError(_0x5cc537[_0x6bcbcc(-_0x4643ff._0x21ad96,-0x171,-0x205,-_0x4643ff._0x3a88bd)],_0x5cc537[_0x6bcbcc(-_0x4643ff._0x269529,-_0x4643ff._0x3d02ce,-_0x4643ff._0x31aed0,-0x123)]||_0x5cc537[_0x6bcbcc(-0x144,-0x156,-0x14d,-_0x4643ff._0xdc96e5)]);function _0x6bcbcc(_0x276636,_0x398a00,_0x285e69,_0x16f838){return _0x3921cc(_0x276636-0x183,_0x285e69- -_0x47ab3d._0x2a86eb,_0x276636,_0x16f838-0xe2);}return _0x5cc537;}[_0x4abdca(0x504,0x4c9,0x432,0x4af)](_0x27d264,_0x4082b9){const _0x224bd3={_0x35d063:0x25c,_0x2b0317:0xe6,_0x5cc75c:0x360,_0x587ee4:0x294,_0x2242e7:0x83,_0x2f261e:0x14,_0x56bf17:0x98,_0x5ada1e:0x9d,_0xf3bbd0:0x143,_0x4dba93:0xa4,_0x8a396d:0x174,_0x489063:0x121,_0x38d672:0x303,_0x3e6bfa:0x264,_0x18bdfc:0x227,_0x559d2:0xbe,_0x2d2154:0x13f,_0x743f2:0xa,_0x5cb486:0x14,_0x313a25:0x9c,_0x2a52d4:0x2ea,_0x1b8cf3:0x298,_0x37e33d:0x2e9},_0x1d6a21={_0x301f11:0x8f,_0x8c319e:0xec},_0x46e4dc={_0x1f45cc:0x123};function _0x4f4499(_0x31e703,_0x49ab2f,_0x9ffdd1,_0x553da8){return _0x4abdca(_0x31e703-0x173,_0x9ffdd1- -0x25c,_0x9ffdd1-_0x46e4dc._0x1f45cc,_0x49ab2f);}function _0x471ff1(_0x66b871,_0x5ad5ad,_0x33d53a,_0x5b1250){return _0x4abdca(_0x66b871-_0x1d6a21._0x301f11,_0x5b1250- -0x44d,_0x33d53a-_0x1d6a21._0x8c319e,_0x33d53a);}switch(this[_0x4f4499(_0x224bd3._0x35d063,0x207,0x298,0x270)]){case'anthropic-messages':return this[_0x471ff1(_0x224bd3._0x2b0317,0x69,-0x3,0x92)]['complete'](_0x27d264,_0x4082b9);case _0x4f4499(_0x224bd3._0x5cc75c,_0x224bd3._0x587ee4,0x353,0x369):return this[_0x471ff1(0x2a,0x83,0x7b,0xcd)](_0x27d264,_0x4082b9);case _0x471ff1(0x8e,_0x224bd3._0x2242e7,-_0x224bd3._0x2f261e,_0x224bd3._0x56bf17):return this[_0x471ff1(_0x224bd3._0x5ada1e,_0x224bd3._0xf3bbd0,0x3f,_0x224bd3._0x4dba93)](_0x27d264,_0x4082b9);case _0x471ff1(0x6d,0xa6,_0x224bd3._0x8a396d,_0x224bd3._0x489063):return this[_0x4f4499(0x1dd,_0x224bd3._0x38d672,_0x224bd3._0x3e6bfa,_0x224bd3._0x18bdfc)](_0x27d264,_0x4082b9);case _0x4f4499(0x300,0x2b0,0x2f0,0x298):return this[_0x471ff1(_0x224bd3._0x559d2,0x11,0x108,0x62)](_0x27d264,_0x4082b9);}throw new Error(_0x471ff1(_0x224bd3._0x2d2154,-_0x224bd3._0x743f2,_0x224bd3._0x5cb486,_0x224bd3._0x313a25)+String(this[_0x4f4499(_0x224bd3._0x2a52d4,0x23a,_0x224bd3._0x1b8cf3,_0x224bd3._0x37e33d)]));}[_0x3921cc(0x24a,0x2a3,0x26f,0x272)](_0xfb6092,_0x2d74c6){const _0x4f22a5={_0x58b3d6:0x147,_0x3e4962:0x81,_0xc5d236:0x512,_0xa7874f:0x11d,_0x3c2676:0x6c,_0x102d44:0x5d9,_0x5d39d5:0x590,_0x229a02:0x5f3,_0x187fc7:0x557,_0x15a701:0x20,_0x1df2d1:0x52c,_0x5f4e2e:0x487,_0x2cf9b6:0x7,_0x9d219b:0x19,_0x7d4d64:0x11b,_0x28d55f:0xdc,_0x49ac2d:0x76,_0x13a283:0x643,_0x3894c5:0x5cb,_0x4eeb94:0x527},_0x23a5b0={_0x2943a0:0x192},_0x1cc566={_0x33662f:0x1bd,_0x4af6ed:0xd7};function _0x294f7b(_0x5e6a4d,_0x4e64f5,_0x57886f,_0x58303e){return _0x4abdca(_0x5e6a4d-_0x1cc566._0x33662f,_0x4e64f5-_0x1cc566._0x4af6ed,_0x57886f-0x48,_0x57886f);}switch(this[_0x5b9e75(-0x13,0x78,_0x4f22a5._0x58b3d6,_0x4f22a5._0x3e4962)]){case _0x294f7b(0x502,_0x4f22a5._0xc5d236,0x582,0x56f):return this[_0x5b9e75(-0x1,0x99,_0x4f22a5._0xa7874f,_0x4f22a5._0x3c2676)][_0x294f7b(_0x4f22a5._0x102d44,0x52b,_0x4f22a5._0x5d39d5,0x4a7)](_0xfb6092,_0x2d74c6);case'openai-chat-completions':return this['chatStream'](_0xfb6092,_0x2d74c6);case _0x294f7b(_0x4f22a5._0x229a02,0x5bc,0x616,_0x4f22a5._0x187fc7):return this[_0x5b9e75(_0x4f22a5._0x15a701,0x14,-0x8e,-0x2d)](_0xfb6092,_0x2d74c6);case'openai-responses-ws':return this[_0x294f7b(0x5ae,_0x4f22a5._0x1df2d1,0x5d1,_0x4f22a5._0x5f4e2e)](_0xfb6092,_0x2d74c6);case'auto':return this[_0x5b9e75(-_0x4f22a5._0x2cf9b6,-_0x4f22a5._0x9d219b,-0x4c,-0x1f)](_0xfb6092,_0x2d74c6);}function _0x5b9e75(_0x21d49a,_0xe1741f,_0x4ba325,_0x4885a9){return _0x4abdca(_0x21d49a-_0x23a5b0._0x2943a0,_0x4885a9- -0x473,_0x4ba325-0x105,_0x21d49a);}throw new Error(_0x5b9e75(_0x4f22a5._0x7d4d64,0xe5,_0x4f22a5._0x28d55f,_0x4f22a5._0x49ac2d)+String(this[_0x294f7b(_0x4f22a5._0x13a283,_0x4f22a5._0x3894c5,0x5f4,_0x4f22a5._0x4eeb94)]));}async[_0x4abdca(0x430,0x4af,0x538,0x3fe)](_0x5b5828,_0x979c59){const _0xc57636={_0x353dc5:0x212,_0x55bdd6:0x1ed,_0xc6fcb0:0x1b8,_0x2f0b3a:0x312,_0x9cb698:0x231,_0x3d4e43:0x257,_0x11ec74:0x306,_0xcb39c:0x2ca,_0x1ef73b:0x1f3,_0x55ffcf:0x344,_0x13c184:0x4cb,_0x43a8ab:0x55d,_0x14d4b7:0x454,_0x354955:0x575,_0x14b1de:0x216,_0x380b55:0x1fe,_0x39affd:0x247},_0x1de566={_0x7888c3:0x15c},_0x41e8a8={_0x2f6fe6:0xb8,_0x36a0ae:0x14e},_0x24c3e5=this[_0x5b1eb3(_0xc57636._0x353dc5,_0xc57636._0x55bdd6,0x22a,_0xc57636._0xc6fcb0)](_0x5b5828);if(this[_0x5b1eb3(0x237,_0xc57636._0x2f0b3a,0x29c,0x1dc)]!==_0x5b1eb3(_0xc57636._0x9cb698,0x230,0x2f4,_0xc57636._0x3d4e43))return this['completeViaConfiguredSurface'](_0x24c3e5,_0x979c59);function _0x5b1eb3(_0x306c6c,_0x3eb56b,_0x4cf2f3,_0x2ecac1){return _0x3921cc(_0x306c6c-0x71,_0x4cf2f3- -_0x41e8a8._0x2f6fe6,_0x306c6c,_0x2ecac1-_0x41e8a8._0x36a0ae);}function _0x3fbf4f(_0x3f4093,_0x14d277,_0x56820b,_0x4abdee){return _0x3921cc(_0x3f4093-0xb2,_0x3f4093-0x17a,_0x14d277,_0x4abdee-_0x1de566._0x7888c3);}if(this[_0x5b1eb3(_0xc57636._0x11ec74,_0xc57636._0xcb39c,0x274,0x299)](_0x24c3e5))return this['response'](_0x24c3e5,_0x979c59);try{return await this[_0x5b1eb3(_0xc57636._0x1ef73b,0x294,0x237,0x2ad)](_0x24c3e5,_0x979c59);}catch(_0x520004){if(_0x520004 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x520004['body']))return this['markModelAsResponsesOnly'](_0x24c3e5[_0x5b1eb3(0x22e,0x2dd,0x2d6,_0xc57636._0x55ffcf)]),this[_0x3fbf4f(_0xc57636._0x13c184,_0xc57636._0x43a8ab,_0xc57636._0x14d4b7,_0xc57636._0x354955)](_0x24c3e5,_0x979c59);throw this[_0x5b1eb3(_0xc57636._0x14b1de,0x215,_0xc57636._0x380b55,_0xc57636._0x39affd)](_0x520004);}throw _0x520004;}}async*[_0x4abdca(0x39b,0x454,0x4aa,0x46e)](_0x3f7d3b,_0x257bd7){const _0x13e514={_0x49dc39:0x40,_0x48abd8:0x5a,_0x1691b1:0x4e,_0x478851:0xf5,_0xc70818:0x59,_0x55063f:0x95,_0xee74bf:0x7,_0x535380:0x1e,_0x325291:0x152,_0x4d338e:0x66,_0x4ffe96:0x80,_0x56d72c:0x189,_0x5b4db0:0xcb,_0xd6ba96:0x1ae,_0x39a5b5:0x126,_0xe0dd0c:0x108,_0x31f3e9:0x5e,_0xd328b9:0x3b},_0x16a055={_0x1cc025:0x19c},_0xed9815=this[_0x3f5a34(-0x18,-_0x13e514._0x49dc39,-0xaf,-0x8a)](_0x3f7d3b);if(this[_0x3f5a34(_0x13e514._0x48abd8,-_0x13e514._0x1691b1,_0x13e514._0x478851,-_0x13e514._0xc70818)]!==_0x3f5a34(0xb2,_0x13e514._0x55063f,-_0x13e514._0xee74bf,0x143)){yield*this['streamViaConfiguredSurface'](_0xed9815,_0x257bd7);return;}function _0x3f5a34(_0x1c570b,_0xcf4bc1,_0x2294c7,_0x578b32){return _0x3921cc(_0x1c570b-0x10c,_0x1c570b- -0x2fa,_0xcf4bc1,_0x578b32-0x1ce);}if(this[_0x3953dd(-_0x13e514._0x535380,0x131,0xa6,_0x13e514._0x325291)](_0xed9815)){yield*this['responseStream'](_0xed9815,_0x257bd7);return;}function _0x3953dd(_0x6c22c5,_0x2c3eb4,_0x17a512,_0x19ab07){return _0x4abdca(_0x6c22c5-_0x16a055._0x1cc025,_0x17a512- -0x426,_0x17a512-0xd1,_0x19ab07);}try{yield*this['streamViaChatCompletionsSurface'](_0xed9815,_0x257bd7);}catch(_0x130e71){if(_0x130e71 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x130e71[_0x3f5a34(0x87,0xce,_0x13e514._0x4d338e,_0x13e514._0x4ffe96)])){this[_0x3953dd(_0x13e514._0x56d72c,_0x13e514._0x5b4db0,0x179,0x165)](_0xed9815[_0x3953dd(_0x13e514._0xd6ba96,_0x13e514._0x39a5b5,_0x13e514._0xe0dd0c,0x12a)]),yield*this[_0x3f5a34(-0x54,_0x13e514._0x31f3e9,_0x13e514._0xd328b9,-0x10d)](_0xed9815,_0x257bd7);return;}throw this['mapApiError'](_0x130e71);}throw _0x130e71;}}async[_0x3921cc(0x3bf,0x321,0x3cd,0x3be)](_0x1785cd){const _0x22a5d0={_0x237f9a:0x583,_0x785299:0x558,_0x2d80cb:0x603,_0x43beab:0x5bb,_0x921b78:0x665,_0x46d1a9:0x6c1,_0x2c03da:0x622,_0x131d60:0x5be,_0x59fc80:0x6a7,_0x535831:0x45c},_0x5c764c={_0x251e6e:0x123,_0x370bc4:0x1ec},_0x3bc97f={_0x56aeb9:0x250,_0x15d947:0x315,_0x515bae:0x28b,_0x2fb731:0x7f,_0x143bdb:0x71,_0x5485a3:0x130},_0x5ba221={_0x305293:0x7b},_0x5146f8={_0x54669b:0x11b},_0x31b0c9=await this[_0x2985f4(0x5ca,_0x22a5d0._0x237f9a,0x4b9,_0x22a5d0._0x785299)]({'path':_0x2985f4(0x6a0,0x642,_0x22a5d0._0x2d80cb,0x662),'method':_0x2985f4(_0x22a5d0._0x43beab,_0x22a5d0._0x921b78,_0x22a5d0._0x46d1a9,_0x22a5d0._0x2c03da),'signal':_0x1785cd});if(!_0x31b0c9['ok'])throw this['mapApiError'](await this[_0x2985f4(_0x22a5d0._0x131d60,0x5fa,_0x22a5d0._0x59fc80,0x649)](_0x31b0c9));function _0x3739ce(_0x6df3ef,_0x227163,_0x45b167,_0xdbf783){return _0x3921cc(_0x6df3ef-0x19e,_0xdbf783-0x74,_0x6df3ef,_0xdbf783-_0x5146f8._0x54669b);}const _0x124a95=await _0x31b0c9['json'](),_0x4a1a46=(_0x124a95[_0x3739ce(0x508,0x518,0x39e,_0x22a5d0._0x535831)]??[])[_0x3739ce(0x52d,0x3d4,0x3f1,0x479)](_0x3c0939=>{const _0x5f0c8c={_0x264163:0x9b},_0x3c972c=createModelInfo(_0x3c0939);function _0x46ca43(_0x3cbce2,_0x4e7086,_0x16b4ab,_0x45184a){return _0x2985f4(_0x3cbce2-0x97,_0x4e7086-_0x5f0c8c._0x264163,_0x3cbce2,_0x4e7086- -0x5ee);}function _0xac7ee5(_0x5156b7,_0x4d46a4,_0x115d65,_0x2bbb17){return _0x3739ce(_0x4d46a4,_0x4d46a4-0x5,_0x115d65-_0x5ba221._0x305293,_0x115d65- -0x19);}return _0x3c972c[_0xac7ee5(_0x3bc97f._0x56aeb9,0x2ab,_0x3bc97f._0x15d947,0x2ee)]&&this['modelEndpointCache'][_0xac7ee5(_0x3bc97f._0x515bae,0x2d4,0x30a,0x2d5)](_0x3c972c['id'],_0x3c972c[_0x46ca43(-_0x3bc97f._0x2fb731,-_0x3bc97f._0x143bdb,-0x13,-_0x3bc97f._0x5485a3)]),_0x3c972c;});function _0x2985f4(_0x2acc32,_0x30e809,_0x4a4be8,_0x37f877){return _0x4abdca(_0x2acc32-0x11f,_0x37f877-_0x5c764c._0x251e6e,_0x4a4be8-_0x5c764c._0x370bc4,_0x4a4be8);}return deduplicateModels(_0x4a1a46);}};function _0xa677(){const _0x15fd3a=['C3rYzwfTvMLHq29UzMLNDxjLzfn1CMzHy2u','C3rVCf9YzwfZB24','ChjVDg9JB2XwzxjZAw9U','CMvZCg9UC2vtDhjLyw0','B3v0Chv0sw5KzxG','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','C2vZC2LVBG','C3rYzwfTvMLHuMvZCg9UC2vZu29JA2v0qxr0zw1WDa','B3v0Chv0sw5KzxHuB0nHBgXjza','t3bLBKfjigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','yxnZAxn0yw50','Bwf4x291Dhb1Df90B2TLBNm','C2v0','yNvPBgrqyxj0AwfSt3v0Chv0','y29UC3vTzvDLyLnVy2TLDev2zw50','D3m6','DNnJB2rLlZeUmta0lJi','C3rYzwfT','CMvZCg9UC2vtB2nRzxrtDhjLyw0','BwfWqxbPrxjYB3i','B3bLBMfPlxjLC3bVBNnLCY1ZDhjLyw0','Aw5WDxrFANnVBL9KzwX0yq','C2vSzwn0u3vYzMfJzq','C3vWCg9YDgvKrw5KCg9PBNrZ','yMfZzvvYBa','yMvHCMvY','ignHBM5VDcbWyxjZzsbtu0uGzxzLBNrZ','B3v0Chv0x3rVA2vUC19KzxrHAwXZ','C29YDa','z2v0','Dg9Rzw5fEgnOyw5NzufWAvzLCNnPB24','DxnLCG','zg9Uzq','Ahr0Chm6lY9HCgKUz2L0AhvIlMnVBq','Dgv4Df9KzwX0yq','y2HHDenVBxbSzxrPB25Zugf0Aa','Dg9VBa','zwzMB3j0','AxrLBq','zgLZywjSzwq','CMvHC29U','CMvHzhLtDgf0zq','nZKXodi0sgn1s253','mta0DuDlD1nk','B3v0Chv0sw5KzxHuB1jLyxnVBMLUz0LK','CMvZCg9UC2uUCMvHC29UAw5Nx3n1Bw1HCNLFDgv4Dc5KzwX0yq','DxjS','Aw5WDxq','zw5JCNLWDgvKq29UDgvUDa','B3v0Chv0x2LUzgv4','y2XVC2u','BwvKAwfFDhLWzq','yxbPlwTLEq','ChjLCgfYzunOyxrszxf1zxn0','C3rYzwfTvMLHuM91DgvY','ANnVBG','zNjVBuvUDhjPzxm','o2jHC2u2ncW','DMfSDwu','AM9PBG','CgfYDgLHBf9QC29U','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzg9Uzq','CMvZCg9UC2uUy29TCgXLDgvK','yxbWBhLnB2rLBerLzMf1BhrZ','y29WAwXVDc1JAgf0lZaUmZeUmW','ChvZAa','Bw9KzwXfBMrWB2LUDenHy2HL','Ahr0Chm6lY9HCgKUAw5KAxzPzhvHBc5NAxrODwjJB3bPBg90lMnVBq','BwvZC2fNzxm','Dg9VBenHBgXZqNLjBMrLEa','yxv0AfnJAgvTzq','CMvTB3zLrxzLBNrmAxn0zw5LCG','CM91DgvY','DhjHBNnWB3j0','Aw5KzxG','D2vIC29JA2v0x2nVBM5Ly3rPB25FBgLTAxrFCMvHy2HLza','y29TCgXLDgvwAwfdAgf0q29TCgXLDgLVBNntDxjMywnL','zMLUza','z2v0t3bLBKfPrgvSzwDHDgu','zw5Kx3r1CM4','C2HHCMvKuMvZCg9UC2vZu29JA2v0u2vZC2LVBNm','qMfZAa','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBLn0yxrL','CMvZB2X2zunYzwrLBNrPywW','C3vTBwfYEq','B3v0Chv0x3rVA2vUCW','B3v0Chv0','C2LNBMf0DxjL','ChjVDMLKzxjbzgfWDgvY','Dgv4Dej5sw5KzxG','y3jLzgvUDgLHBa','Aw5PDgLHBev2zw50','DhLWzq','yw50AhjVCgLJx3rOAw5RAw5N','yxjNDw1LBNrZ','ywrK','yNvPBgrszxnWB25ZzxntB2nRzxrfDMvUDa','ndeWotrgqwn1B0C','ywnJzxb0','zw5JCNLWDgvKx2nVBNrLBNq','zMLUAxnOx3jLyxnVBG','Aw5WDxruB2TLBNm','zgvJB2rL','C29Tzq','C3bSAxq','yMXVy2TZ','y2XHDwrLlxnVBM5LDc00ltiWmJuWnte0','CMvHC29UAw5NsxrLBxm','y29TCgXLDgu','Aw52ywXPzgf0zq','CMvXDwvZDe11Dgf0B3jZ','Ahr0Chm6','Aw50zxjSzwf2zwq','DMfSDwvZ','Dg9VBenHBgXZ','B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','Aw52ywXPzgf0zvjLC3bVBNnLC1nVy2TLDfnLC3nPB24','y29UC3vTzvnZzuv2zw50','CMvZB2X2zxi','Dg9VBf91C2u','r2L0shvIiefqssbLCNjVCIa','Bwv0ywrHDge','CMvZCg9UC2uUB3v0Chv0x2L0zw0Uzg9Uzq','Bwf4vg9Rzw5Z','C3rYzwfTvMLHuMvZCg9UC2vZv2vIu29JA2v0u3vYzMfJzq','CMvZCg9UC2vtB2nRzxq','z2v0tw9KzwXZ','y29UC3vTzuv2zw50','y29UDgvUDa','v2vIu29JA2v0ignSB3nLzcbIzwzVCMuGB3bLBMLUzW','zw50CMLLCW','CMvZB2X2zq','zMLUAxnO','BwvZC2fNzuLK','y29TCgXLDgvwAwfdB25MAwD1CMvKu3vYzMfJzq','z2v0t3jdCMvHDgvszxnWB25ZzxntB2nRzxq','ChjVDg9JB2W','C2HVDwXKuhjLzMvYuMvZCg9UC2vZqxbP','mtaWEffkA0fO','Dg9VBf9JywXSCW','l3yXl21LC3nHz2vZ','B3bLBKfPrgvSzwDHDgu','CMvZCg9UC2uUCMvHC29UAw5Nx3n1Bw1HCNLFDgv4Dc5KB25L','y29TCgXLDgvwAwftDxjMywnL','D2vIu29JA2v0rMfJDg9YEq','B3v0Chv0vg9Rzw5Z','DxnLCI12AxnPyMXL','C2vZC2LVBI10B2TLBG','CMvZCg9UC2vjza','CMvHC29UAw5N','r2L0shvItw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5lcbHy2nLC3nuB2TLBIWGB3iGChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','C3vTBwfYEv90zxH0','yxnZAxn0yw50lq','y29TCgXLDgLVBL90B2TLBNm','y3jLyxrLu3rYzwfTugfYC2vY','Bwf4x2nVBNrLEhrFD2LUzg93x3rVA2vUCW','yw50AhjVCgLJrgvSzwDHDgu','zgvSDge','igrPzcbUB3qGChjVDMLKzsbHifDLyLnVy2TLDcbvuKWGB3iGCgf0Aa','t3bLBKfPtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','CMvZCg9UC2vZugf0Aa','B3bLBMfPuMvZCg9UC2vZuMvZCg9UC2vjza','B3bLBMfPlxjLC3bVBNnLCW','y29TCgXLDgvK','CMvXDwvZDhm','BM93','vw5ZDxbWB3j0zwqGr2L0shvIig1VzgvSihn1CMzHy2u6ia','Aw5KzxHpzG','BwvZC2fNzq','C291CMnL','oNjLyxnVBMLUzZOW','zgf0ytO','DgHLBG','u3vYzMfJzsa','CMvZCg9UC2u','C29JA2v0','BwvZC2fNzv9ZDgfYDa','C3vYzMfJzq','y2f0y2G','uMvZCg9UC2vZifDLyLnVy2TLDcbYzxf1zxn0igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','ChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','y2fWywjSzv9LBMrWB2LUDhm','v2vIu29JA2v0ihjLCxvLC3qGzMfPBgvK','y2HVAwnLCW','y2fWywjPBgL0AwvZ','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBKTLEq','B3bLBG','r0vu','yxv0Ag9YAxPHDgLVBG','ntu0otK0nezdBMzMBG','uMvZCg9UC2vZihn0CMvHBsbMywLSzwq','v2vIu29JA2v0ignSB3nLzcb3AxrOignVzguG','C3LZDgvT','CMvMDxnHBa','Dg9VBenHBgXpCMrLCG','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','C3rYzwfTshr0Cfn1CMzHy2u','ywjVCNrLza','zxzLBNq','B2jQzwn0','BgfZDfjLC3bVBNnLswq','t1bftG','yxbWBgLJyxrPB24VANnVBG','Dg9VBf91C2vFAwq','z2v0t3jdCMvHDgvszwfZB25PBMDjDgvT','ywnJzxnZvg9Rzw4','ChjLDMLVDxnszxnWB25ZzuLK','CMvZCg9UC2uUzMfPBgvK','zMv0y2G','ChjVEhK','C3rYzwfTv2vIu29JA2v0u3vYzMfJzq','rgLYzwn0igfUC3DLCJOG','CgfYC2u','Ahr0Cc1QC29U','y2HHDenVBxbSzxrL','Aw5JBhvKzxm','CMvHC29UAw5NugfYDhm','y3jLyxrLsgvHzgvYCW','AxrLBv9Pza','AxneB25L','zNvUy3rPB25Fy2fSBa','yM9KEq','ue9tva','mtq2mtmXnhvkD3vlva','CMvWBgfJzq','CgvUzgLUzW','Dg9bCgLfCNjVCG','mtGWsKryuK5c','z3b0ltrV','B21PDhrLza','Dg9VBf9Yzxn1Bhq','C2vZC2LVBKLK','AgfZ','zw5KCg9PBNrZ','Bw9KzwW','Dgv4DfbHCNrZ','yxn5BMnjDgvYyxrVCG','uMf0zsbSAw1PDcbLEgnLzwrLzc4GugXLyxnLihrYEsbHz2fPBIbSyxrLCI4','zgLZCgXHEq','CgfYC2vszxnWB25Zzq','y2fJAgvK','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzgvSDge','C3rHCNrZv2L0Aa','Bwv0Ag9K','DgvZDa','ywjVCNq','y2fSBeLKvg9pDxrWDxrjBMrLEa','B3v0Chv0x3rLEhq','zMLUywXszxnWB25Zzq','igrVzxmGBM90ihn1ChbVCNqGBM9Ulxn0CMvHBwLUzYbYzxnWB25Zzxm','CMvHC29UAw5Nx2nVBNrLBNq','l21VzgvSCW','y29TCgXLDgLVBL90B2TLBNnFzgv0ywLSCW','Bw9Kzq','z2L0AhvIqxbPvxjS','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzgvSDge','y29UDgvUDf9IBg9JAW','Dg9VBfvZzvn0yxj0rw1PDhrLza','zM9Yy2vgDwXSuMvWBgf5','ntyWntqYwgrsy3ry','C2vZC2LVBK1HBMfNzxi','vw5RBM93BIbTB2rLBcbZDxjMywnLoIa','CMvKywn0zwrFDgHPBMTPBMC','v2vIu29JA2v0','yxv0BW','y2HHDfn0CMvHBq','yw50AhjVCgLJqxnZAxn0yw50q29UDgvUDa','y2fSBf9Pza','l3jLC3bVBNnLCW','y29UDgvUDf9IBg9JA19ZDgfYDa','C2L6zq','DxnHz2u','yw50AhjVCgLJx3jLzgfJDgvKx3rOAw5RAw5N','DhjPBvn0yxj0','C3vTBwfYEv9PBMrLEa','y29UBMvJDf9MywLSzwq','qw50AhjVCgLJtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','C3rYzwfTu3vYzMfJzq','AxnbCNjHEq','z2v0qw50AhjVCgLJrgvSzwDHDgu','zMLUzfjLC3bVBNnLC1nVy2TLDenOzwnRCg9PBNq','ywDLBNq','BgvUz3rO','DhjPBq','C2LNBMfS','y29TCgXLDgvwAwfszxnWB25ZzxntDxjMywnL','zgvZy3jPChrPB24','zMXHDe1HCa','y3jLyxrLuMvXDwvZDa','DgvSzw1LDhj5','y29UDgvUDf9PBMrLEa','Aw5WDxrkC29U','CMvZB2X2zujHC2vvCMW','qxv0AgvUDgLJyxrPB24GzMfPBgvKlIbqBgvHC2uGy2HLy2SGEw91CIbbueKGA2v5lG','AgvHzgvYCW','C2XPy2u','BxnNlq','Ahr0Cc1ZC2u','B3bLBMfPlxjLC3bVBNnLCY13CW','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNmTC3rYzwfT','CMvHza','Aw1Hz2vFDxjS','CM9Szq','l2nOyxqVy29TCgXLDgLVBNm','odC1mdvMufnLB1a','CMvZCg9UC2uUy3jLyxrL','DgHPBMTPBMC','Dg9VBf91C2vFzgvSDge','y29TCgXLDgvwAwfszxnWB25ZzxnxzwjtB2nRzxrtDxjMywnL','AgvHzgvYuMvZB2X2zxi','C3rYzwfTvMLHu3vYzMfJzq','C3vTBwfYAxPLza','DxnLC1jLC3bVBNnLC0fWAq','Dg9VBc1JywXSlq','z2v0uMvHzgvY','y29Kzq','C2HVDwXKuMv0CNLszxnWB25ZzxntB2nRzxrszxf1zxn0','Dgv4Da','Ahr0Chm6lY9HCgKUyw50AhjVCgLJlMnVBq','qMvHCMvYia','ywnXDwLYzvjLC3bVBNnLC1nVy2TLDeXVy2S','zMv0y2HjBxbS','y29UDgvUDf9KzwX0yq','n2PYA2LoBq','zgf0yq','DNnJB2rLlZeUmta2lJe','ChjLCgfYzvjLC3bVBNnLC1nVy2TLDfjLCxvLC3q','uhjVDMLKzxiGCMvXDwvZDcbMywLSzwqGD2L0AcbZDgf0DxmG','yw50AhjVCgLJx3nPz25HDhvYzv9KzwX0yq','B3bLBMfPx3jLyxnVBMLUzW','yxbP','DMLZAwjPBgL0Eq','C3rYAw5N','C3vYzMfJzxm','CMvHC29UAw5Nx2rLDgfPBhm','DxrMltG','Aw50zxjSzwf2zwqTDgHPBMTPBMCTmJaYns0Wns0Xna','BhmGlwXH','C3rVCfjLyxnVBG','zMLSDgvY','B3jPz2LUlxrYywnRzxi','y29UBMvJDgLUzW','C3vTBwfYEuj5sw5KzxG','C2vUza','D3nZoG','zxzLBNq6','vw5RBM93BIbWCM92AwrLCIbLCNjVCG','BwfYA01VzgvSqxnszxnWB25ZzxnpBMX5','Aw5WDxrFDg9Rzw5Z','Dg9VBhm','y29UDgvUDc10ExbL','C3rYAw5NAwz5','Dg9Rzw4','BwfW','yw50AhjVCgLJlw1LC3nHz2vZlxn0CMvHBq','zNvUy3rPB24','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzg9Uzq','BMfTzq','BNvTyMvY','yMfZzty0','ChjVDMLKzxjtDgf0zq','zNjVBq','zwrPDg9YvMvYC2LVBG','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','yxbPs2v5','w0rptKvD','C2vUzeH0DhbtDxjMywnLuMvXDwvZDa','CMvZCc0','zxjYB3i','y2HHDgnTCgWT','CMvXDwvZDa','Ahr0Chm6lY9HCgKUB3bLBMfPlMnVBs92mq','A2LUza','Aw5JBhvKzunVBNrLBNruExbL','y3jLyxrLtwLZC2LUz0nYzwrLBNrPywXfCNjVCG','y29TCgXLDgvwAwfsB3v0zxi','CMvHC29UAw5Nx3rLEhq','zw5HyMXLza','BgLTAxrZ','C3rHDhvZ','C3rHDhvZvgv4Da','C2vUzfjHD1jLCxvLC3q','CMvHC29UAw5Nx3rVA2vUCW','C3rYzwfTvMLHuMvZCg9UC2vZu3vYzMfJzq','CMvZCg9UC2vuzxH0ugfYDhm','yw50AhjVCgLJlxzLCNnPB24','Dgv4Dc9LDMvUDc1ZDhjLyw0','yw50AhjVCgLJlw1LC3nHz2vZ','z2v0u3vYzMfJzq','B2f1DgGTDg9Rzw4','ntqZmteWne9lsg9OCG','ywrKrxzLBNrmAxn0zw5LCG','t3bLBKfPqxbPrxjYB3i','t3bLBKfjiefqssbLCNjVCIa','Cgf0Aa'];_0xa677=function(){return _0x15fd3a;};return _0xa677();}function createHeaders(_0x520f51){const _0xec5f1c={_0x22b6aa:0x297,_0x3cb0b5:0x303},_0xf71c57={_0x2c58ff:0xbb,_0x2ea722:0xc8},_0xbf0b10={_0x3dee48:0x104,_0x3cd169:0x73};function _0x3e798d(_0x23b218,_0x4d7fa4,_0x28cdc4,_0x28974c){return _0x4abdca(_0x23b218-_0xbf0b10._0x3dee48,_0x28cdc4- -0x178,_0x28cdc4-_0xbf0b10._0x3cd169,_0x4d7fa4);}const _0x2c42bc=new Headers();function _0x200968(_0x4b74ad,_0x5598b0,_0x2b13ec,_0x5180f6){return _0x3921cc(_0x4b74ad-0x46,_0x5598b0- -_0xf71c57._0x2c58ff,_0x5180f6,_0x5180f6-_0xf71c57._0x2ea722);}for(const [_0x9d48d3,_0x4a6877]of Object[_0x3e798d(_0xec5f1c._0x22b6aa,_0xec5f1c._0x3cb0b5,0x34d,0x2af)](_0x520f51)){_0x2c42bc[_0x200968(0x1d3,0x1f4,0x133,0x2b8)](_0x9d48d3,_0x4a6877);}return _0x2c42bc;}async function fetchRawResponse(_0x14e1ef){const _0x958854={_0xacf670:0xcb,_0x2f9d68:0x61,_0x493663:0x30,_0x500fe7:0x13,_0x657bf5:0x47,_0x3a3987:0x9e,_0x59205e:0xb,_0x198547:0xaf,_0x4b761c:0x55,_0x36a541:0x130,_0x4dd484:0x1a3,_0x5e84a6:0x198,_0x2533dd:0x8f},_0x19d915=_0x14e1ef[_0x2f0cca(-0xf,-_0x958854._0xacf670,-_0x958854._0x2f9d68,-0xeb)]??globalThis[_0x2f0cca(-0x51,-_0x958854._0x493663,-0x61,_0x958854._0x500fe7)];function _0x2f0cca(_0x306b3e,_0x156d7e,_0x4f5790,_0xd51620){return _0x3921cc(_0x306b3e-0x8,_0x4f5790- -0x3d5,_0x156d7e,_0xd51620-0xb0);}function _0x49fd9a(_0x19c59b,_0x253b38,_0x1b70ba,_0x19f6ff){return _0x3921cc(_0x19c59b-0x1e3,_0x19f6ff- -0x1e9,_0x253b38,_0x19f6ff-0x88);}return _0x19d915(_0x14e1ef[_0x2f0cca(-0x1c5,-0x192,-0x104,-_0x958854._0x657bf5)],{'method':'POST','headers':createHeaders(_0x14e1ef[_0x2f0cca(-_0x958854._0x3a3987,-0xba,-_0x958854._0x59205e,_0x958854._0x198547)]),'body':JSON[_0x2f0cca(0x3c,-0x8a,0x2e,_0x958854._0x4b761c)](_0x14e1ef[_0x49fd9a(_0x958854._0x36a541,_0x958854._0x4dd484,0xdd,_0x958854._0x5e84a6)]),'signal':_0x14e1ef[_0x2f0cca(-0x54,0x1a,-0x15,_0x958854._0x2533dd)]});}async function fetchJsonResponse(_0x2df744){const _0x37d73c={_0x485a0e:0xdb,_0x440a98:0x104,_0xf2b9c4:0x547,_0x20fbf4:0x5ac},_0x4bed16={_0x6f6baf:0x1b8},_0x3ecdf2={_0x49e00f:0x50,_0x150331:0x132},_0x2510f1=await fetchRawResponse(_0x2df744);function _0x31c28d(_0x4d4e91,_0x4ac0c0,_0x27e945,_0x22f2d0){return _0x4abdca(_0x4d4e91-_0x3ecdf2._0x49e00f,_0x27e945-_0x3ecdf2._0x150331,_0x27e945-0x36,_0x4ac0c0);}if(!_0x2510f1['ok']){const _0x1a0929=await _0x2510f1[_0x2e69d3(-_0x37d73c._0x485a0e,-0x1a,-0x63,-_0x37d73c._0x440a98)](),_0x326932=_0x1a0929['trim']()||_0x2510f1['statusText']||'Unknown\x20provider\x20error';throw new Error('Provider\x20request\x20failed\x20with\x20status\x20'+_0x2510f1['status']+':\x20'+_0x326932);}function _0x2e69d3(_0xf317b0,_0x5baf85,_0x143f88,_0x112b3d){return _0x4abdca(_0xf317b0-_0x4bed16._0x6f6baf,_0xf317b0- -0x65c,_0x143f88-0x13d,_0x143f88);}return await _0x2510f1[_0x31c28d(_0x37d73c._0xf2b9c4,0x4fc,_0x37d73c._0x20fbf4,0x5dc)]();}function findLastMessage(_0x3e1fc5,_0x30092a){const _0x42e358={_0x2fb6f9:0x5a9,_0x305157:0x5a9,_0x28039f:0x467,_0x24e01e:0x51a},_0x43ec06={_0x370f18:0x18,_0x41efeb:0x58},_0x1b5d56={_0x18b8eb:0x14,_0x25274f:0x1d9};function _0x5606e6(_0x4794ed,_0x21ece2,_0x3a66d6,_0x27e44e){return _0x3921cc(_0x4794ed-_0x1b5d56._0x18b8eb,_0x21ece2-0x17d,_0x4794ed,_0x27e44e-_0x1b5d56._0x25274f);}for(let _0x425d3b=_0x3e1fc5[_0x532f4c(_0x42e358._0x2fb6f9,_0x42e358._0x305157,0x506,_0x42e358._0x28039f)]-0x1;_0x425d3b>=0x0;_0x425d3b-=0x1){if(_0x3e1fc5[_0x425d3b][_0x532f4c(0x543,0x50e,_0x42e358._0x24e01e,0x51f)]===_0x30092a)return _0x3e1fc5[_0x425d3b];}function _0x532f4c(_0x49a683,_0x1eba2b,_0x1557e2,_0x151ebf){return _0x4abdca(_0x49a683-_0x43ec06._0x370f18,_0x1557e2- -_0x43ec06._0x41efeb,_0x1557e2-0x4b,_0x49a683);}return void 0x0;}function hasTool(_0xc31d61,_0x1962ff){const _0x2c5e93={_0x31381c:0x379,_0x52f57a:0x297,_0x4250ab:0x32f},_0x5ee38f={_0x44713a:0x55},_0x12fed2={_0x4947d9:0xc1,_0x2c4f9a:0x145};function _0x27d701(_0x5e8281,_0x4f3528,_0xeeff4c,_0xec3e4){return _0x3921cc(_0x5e8281-_0x12fed2._0x4947d9,_0xeeff4c- -0x36,_0xec3e4,_0xec3e4-_0x12fed2._0x2c4f9a);}function _0x21a4b7(_0x347a99,_0x5525ff,_0x539708,_0x1ff4c9){return _0x4abdca(_0x347a99-0xc3,_0x539708- -0x17b,_0x539708-_0x5ee38f._0x44713a,_0x1ff4c9);}return _0xc31d61[_0x27d701(0x317,0x33a,0x3cb,_0x2c5e93._0x31381c)][_0x21a4b7(_0x2c5e93._0x52f57a,0x2a8,_0x2c5e93._0x4250ab,0x3b8)](_0x55d40e=>_0x55d40e[_0x27d701(0x3c6,0x352,0x3d3,0x425)]===_0x1962ff);}function createMockResponse(_0x33e3bb,_0x5e9173,_0x3547de,_0x170452){return{'id':_0x33e3bb,'content':_0x5e9173,'stopReason':_0x3547de,'usage':_0x170452};}var MockModel=class{[_0x3921cc(0x2f8,0x38e,0x3bb,0x3d1)];[_0x4abdca(0x50b,0x4be,0x4d1,0x57b)];[_0x4abdca(0x586,0x4e7,0x4ef,0x47c)]=[];[_0x3921cc(0x3d1,0x338,0x38e,0x36e)];constructor(_0xfcc2a0={}){const _0x52c7c7={_0x585cc4:0x14e,_0x4647c3:0x132,_0x47d241:0x185,_0x2c1ba6:0x1f6,_0x56b2f6:0x201,_0x2a80fa:0x173,_0x482a2a:0x136,_0x2902d0:0x1f5,_0x3d94bf:0x632,_0x5abb8e:0x541,_0x177ad0:0x5a0,_0x526ce7:0x51b},_0x2235d0={_0x2cfa73:0x1f1,_0x5a025b:0x1c5},_0x237cbf={_0x429fa8:0xc8};function _0x7aef14(_0x5b2fbc,_0x55b31e,_0x2c38f8,_0x318921){return _0x4abdca(_0x5b2fbc-0xc6,_0x2c38f8-_0x237cbf._0x429fa8,_0x2c38f8-0x175,_0x318921);}this['model']=_0xfcc2a0[_0xdcb130(0x129,0x147,0x1c9,_0x52c7c7._0x585cc4)]??'mock',this[_0xdcb130(_0x52c7c7._0x4647c3,_0x52c7c7._0x47d241,0x159,_0x52c7c7._0x2c1ba6)]=_0xfcc2a0['maxTokens']??0x4000;function _0xdcb130(_0x5cc41d,_0x744e48,_0x34ed66,_0x2dbb35){return _0x3921cc(_0x5cc41d-_0x2235d0._0x2cfa73,_0x34ed66- -_0x2235d0._0x5a025b,_0x744e48,_0x2dbb35-0x2a);}this[_0xdcb130(0xc2,_0x52c7c7._0x56b2f6,_0x52c7c7._0x2a80fa,_0x52c7c7._0x482a2a)]=_0xfcc2a0[_0xdcb130(0xff,0x1ae,0x173,_0x52c7c7._0x2902d0)]?structuredClone(_0xfcc2a0[_0x7aef14(_0x52c7c7._0x3d94bf,_0x52c7c7._0x5abb8e,_0x52c7c7._0x177ad0,_0x52c7c7._0x526ce7)]):void 0x0;}async[_0x3921cc(0x24a,0x30f,0x29c,0x32c)](_0x328f5b,_0x10df0d){const _0x1ac3d2={_0x4b85ed:0x62,_0x32200e:0x171,_0x12eaf1:0x208,_0x77d99f:0x205,_0x1b1c77:0x100,_0x3a9338:0x105,_0x56bea3:0x100,_0x1bd4fb:0x13d,_0x10539a:0x12e,_0xfc3a32:0x159,_0x3b84b9:0x8c,_0x58a22f:0x143,_0x3d462c:0x54,_0x492213:0x21,_0x24948e:0xce,_0x514306:0x268,_0x410d2f:0x1a5,_0x327905:0x1dd,_0x84f9fa:0xcb,_0x4efd6e:0x272,_0x35df2c:0x2a5,_0x2781db:0x4a,_0x1763e4:0x56,_0x379e7c:0x40,_0x290d20:0x263,_0x29533e:0x1d7,_0x37fd42:0xcf,_0x3c7035:0x14,_0x2030b1:0xbe,_0x8273f:0x250,_0x32d625:0x1fa,_0x28a916:0x20e},_0x4688af={_0x16848a:0x1ce,_0x3d832d:0x38},_0x408758={_0x297fd9:0x19b,_0x59b4b5:0x4ec,_0x557901:0xf5},_0x2b0fcd={...structuredClone(_0x328f5b),..._0x328f5b['reasoning']===void 0x0&&this[_0xbab5b8(-0x1a8,-0x195,-_0x1ac3d2._0x4b85ed,-0xfd)]!==void 0x0?{'reasoning':structuredClone(this[_0xbab5b8(-0x121,-0x6c,-0x7d,-0xfd)])}:{}};this[_0xbab5b8(-0x28,-_0x1ac3d2._0x32200e,-0x193,-0xee)][_0x13e21c(-0x1cc,-0x21d,-_0x1ac3d2._0x12eaf1,-0x258)](_0x2b0fcd);function _0x13e21c(_0x19919b,_0x5dd544,_0x1dad1c,_0x1d26c0){return _0x3921cc(_0x19919b-_0x408758._0x297fd9,_0x1dad1c- -_0x408758._0x59b4b5,_0x1d26c0,_0x1d26c0-_0x408758._0x557901);}const _0x2b1fa2=findLastMessage(_0x2b0fcd['messages'],_0xbab5b8(-0x129,-0xf1,-_0x1ac3d2._0x77d99f,-0x173));function _0xbab5b8(_0x389d9c,_0x4c59db,_0x562f01,_0x2b7f8b){return _0x4abdca(_0x389d9c-_0x4688af._0x16848a,_0x2b7f8b- -0x5d5,_0x562f01-_0x4688af._0x3d832d,_0x389d9c);}const _0x3c1f85=getToolResultBlocks(_0x2b1fa2),_0x3c1ac4=_0x13e21c(-_0x1ac3d2._0x1b1c77,-_0x1ac3d2._0x3a9338,-0x1b1,-_0x1ac3d2._0x56bea3)+this[_0x13e21c(-_0x1ac3d2._0x1bd4fb,-0x183,-0x1a5,-0x239)][_0x13e21c(-0x193,-0x84,-_0x1ac3d2._0x10539a,-0x1d9)];if(_0x3c1f85['length']>0x0)return createMockResponse(_0x3c1ac4,[{'type':_0x13e21c(-0xab,-0xe1,-0x10b,-0x58),'text':'I\x20checked\x20the\x20mocked\x20tool\x20result.\x20'+_0x3c1f85[0x0]['content']}],_0x13e21c(-_0x1ac3d2._0xfc3a32,-0x205,-0x1fa,-0x140),{'inputTokens':0x78,'outputTokens':0x28});const _0x2cb7ef=getTextFromMessage(_0x2b1fa2);if(/list .*files|workspace/i[_0xbab5b8(-0x160,-0xe7,-_0x1ac3d2._0x3b84b9,-0x9d)](_0x2cb7ef)&&hasTool(_0x2b0fcd,_0x13e21c(-0x26e,-0x23e,-0x1f8,-_0x1ac3d2._0x58a22f)))return createMockResponse(_0x3c1ac4,[{'type':'tool_use','id':_0xbab5b8(-_0x1ac3d2._0x3d462c,_0x1ac3d2._0x492213,-_0x1ac3d2._0x24948e,-0x58)+this[_0x13e21c(-0x140,-_0x1ac3d2._0x514306,-_0x1ac3d2._0x410d2f,-_0x1ac3d2._0x327905)][_0xbab5b8(-0xdf,-_0x1ac3d2._0x84f9fa,-0x68,-0x77)],'name':_0x13e21c(-0x13f,-_0x1ac3d2._0x4efd6e,-0x1f8,-_0x1ac3d2._0x35df2c),'input':{'command':_0xbab5b8(-_0x1ac3d2._0x2781db,_0x1ac3d2._0x1763e4,-0xbc,-_0x1ac3d2._0x379e7c)}}],_0x13e21c(-_0x1ac3d2._0x290d20,-_0x1ac3d2._0x29533e,-0x1d2,-0x1ef),{'inputTokens':0x6e,'outputTokens':0x1c});return createMockResponse(_0x3c1ac4,[{'type':_0xbab5b8(-0x74,-_0x1ac3d2._0x37fd42,-0x2a,-0x54),'text':_0xbab5b8(-0x36,-_0x1ac3d2._0x3c7035,-0x10e,-_0x1ac3d2._0x2030b1)+_0x2cb7ef}],_0x13e21c(-0x13f,-_0x1ac3d2._0x8273f,-_0x1ac3d2._0x32d625,-_0x1ac3d2._0x28a916),{'inputTokens':0x50,'outputTokens':0x12});}};export{ANTHROPIC_MESSAGES_STREAM_SURFACE,ANTHROPIC_MESSAGES_SURFACE,AVAILABLE_CHAT_MODEL_SURFACES,AnthropicModel,ChatModel,GitHubModel,MockModel,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,OPENAI_CHAT_COMPLETIONS_SURFACE,OPENAI_RESPONSES_STREAM_SURFACE,OPENAI_RESPONSES_SURFACE,OPENAI_RESPONSES_WEBSOCKET_SURFACE,OpenAiApiError,OpenAiModel,OpenAiResponsesStreamError,ProviderSessionManager,RoutedModel,StaticModelSurfaceRouter,createAnthropicSurfaces,createDefaultWebSocketFactory,createOpenAiApiError,createOpenAiResponsesStreamParser,createOpenAiResponsesWebSocketEvent,createOpenAiSurfaces,fetchJsonResponse,fetchRawResponse,iterateSseEvents,iterateWebSocketMessages,prepareProviderRequest,resolveApiCredential,resolveSessionBaseUrl,toWebSocketUrl,trimTrailingSlashes,waitForWebSocketOpen};
|
|
1
|
+
(function(_0xd02a3a,_0x352238){const _0x51a548={_0x3207db:0x8c,_0x21e70c:0x16f,_0x32e03:0x148,_0x568c67:0x76,_0x50755e:0x12c,_0x597eeb:0x93,_0xac0349:0x23,_0x46166b:0x21,_0x41b803:0xfa,_0x258d54:0xb4,_0x1bc9b5:0x152,_0x29f5ab:0x245,_0x2c29c0:0x14,_0x2c22ea:0x123,_0x28c501:0x60,_0x4ee3b3:0xb,_0x473f6:0x1fb,_0x30c604:0x1c4,_0x438c25:0x261,_0x2ac13d:0x6d},_0x300fdc={_0x1ea094:0x213},_0x4aa2d2={_0x222aa0:0x90},_0x105282=_0xd02a3a();function _0x15e588(_0x3908a3,_0x2ecd43,_0xa972d1,_0x36dea5){return _0x2cfd(_0x2ecd43- -_0x4aa2d2._0x222aa0,_0x3908a3);}function _0x588495(_0x207cbb,_0x20a5cc,_0xccd39e,_0x54527c){return _0x2cfd(_0xccd39e- -_0x300fdc._0x1ea094,_0x54527c);}while(!![]){try{const _0x2de410=-parseInt(_0x588495(_0x51a548._0x3207db,0x14,0x6a,-0x12))/0x1*(parseInt(_0x588495(-_0x51a548._0x21e70c,-_0x51a548._0x32e03,-0xf3,-0x182))/0x2)+-parseInt(_0x15e588(-0x1a,0xa8,0x58,-0x22))/0x3+parseInt(_0x588495(_0x51a548._0x568c67,_0x51a548._0x50755e,_0x51a548._0x597eeb,_0x51a548._0xac0349))/0x4*(parseInt(_0x588495(-0x5d,0x6c,-0x18,-_0x51a548._0x46166b))/0x5)+-parseInt(_0x15e588(0xe0,_0x51a548._0x41b803,0x50,_0x51a548._0x258d54))/0x6+parseInt(_0x15e588(_0x51a548._0x1bc9b5,0x1f7,0x18c,_0x51a548._0x29f5ab))/0x7+parseInt(_0x588495(_0x51a548._0x2c29c0,_0x51a548._0x2c22ea,_0x51a548._0x28c501,_0x51a548._0x4ee3b3))/0x8+parseInt(_0x15e588(_0x51a548._0x473f6,_0x51a548._0x30c604,_0x51a548._0x438c25,0x1bd))/0x9*(-parseInt(_0x588495(_0x51a548._0x2ac13d,0x76,0x1c,_0x51a548._0x2c29c0))/0xa);if(_0x2de410===_0x352238)break;else _0x105282['push'](_0x105282['shift']());}catch(_0x4b6b21){_0x105282['push'](_0x105282['shift']());}}}(_0x521a,0x8cd4c));import{toOpenAiResponsesRequest}from'../chunk-LXQDGX4K.js';import{resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig}from'../chunk-NYZR4XKO.js';import{getTextFromMessage,getToolResultBlocks,normalizeContent,toChatRequest,toModelRequest,toProviderModelRequest}from'../chunk-G2FR4UGO.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';var ProviderRequestConstructionError=class extends Error{constructor(_0x414b70){const _0x1d4348={_0xb60870:0x5bb,_0x3dc166:0x3f7};super(_0x414b70);function _0x2a726a(_0x3005ca,_0x1514dd,_0x38e1b1,_0x43cea3){return _0x2cfd(_0x38e1b1-0x276,_0x1514dd);}function _0x432f7c(_0x31c4bc,_0x34bb2e,_0x459925,_0x1c1fc2){return _0x2cfd(_0x31c4bc-0x84,_0x459925);}this[_0x2a726a(0x59a,_0x1d4348._0xb60870,0x506,0x4ac)]=_0x2a726a(0x302,0x431,0x393,_0x1d4348._0x3dc166);}},ProviderStreamEventError=class extends Error{['code'];['retryable'];[_0x18006e(0x7b,0x24,0x33,0x8c)];constructor(_0x3af60d,_0x5e5526={}){const _0x4fcac4={_0xde9d28:0x46e,_0x1e0507:0x4eb,_0x48bd2f:0x453,_0x2180c6:0x35d,_0x4d9233:0x446,_0x5327bb:0x391,_0xb42ed4:0x357,_0x44d520:0x32c,_0x367252:0x38a,_0x3f4eff:0x2f4,_0x8535e2:0x2c7,_0x3d259a:0x3d1,_0x87cc6e:0x3a5,_0x6488b4:0x492,_0x463772:0x3a6,_0x18899d:0x38e,_0x5dc96b:0x3af},_0x2a4a3d={_0x531aa1:0x19b,_0x2d9c8f:0x153,_0x302871:0x289},_0x116e31={_0x4df2c6:0x175,_0x55dd65:0xf7};function _0x8ed590(_0x36306b,_0x4302c3,_0x16ef22,_0x32147b){return _0x18006e(_0x36306b-_0x116e31._0x4df2c6,_0x4302c3-_0x116e31._0x55dd65,_0x16ef22-0x37c,_0x32147b);}super(_0x3af60d),this[_0x8ed590(_0x4fcac4._0xde9d28,_0x4fcac4._0x1e0507,0x50d,_0x4fcac4._0x48bd2f)]=_0x379398(_0x4fcac4._0x2180c6,_0x4fcac4._0x4d9233,0x338,_0x4fcac4._0x5327bb);function _0x379398(_0x347b55,_0x5a7109,_0x58e83e,_0x48e190){return _0x18006e(_0x347b55-_0x2a4a3d._0x531aa1,_0x5a7109-_0x2a4a3d._0x2d9c8f,_0x48e190-_0x2a4a3d._0x302871,_0x5a7109);}this[_0x379398(_0x4fcac4._0xb42ed4,_0x4fcac4._0x44d520,_0x4fcac4._0x367252,0x2c7)]=_0x5e5526[_0x379398(0x36c,0x248,_0x4fcac4._0x3f4eff,_0x4fcac4._0x8535e2)],this[_0x379398(_0x4fcac4._0x3d259a,_0x4fcac4._0x87cc6e,_0x4fcac4._0x6488b4,0x3e3)]=_0x5e5526['retryable']??!![],this['status']=_0x5e5526[_0x8ed590(_0x4fcac4._0x463772,_0x4fcac4._0x18899d,_0x4fcac4._0x5dc96b,0x3bc)];}};function isRetryableProviderStreamEventError(_0x5d185d){const _0x4c0767={_0x5c0fca:0x1e4,_0x55b886:0x24d},_0x4205a5={_0x5aaba1:0xa0,_0x4802b0:0xf3};function _0x5e9c5f(_0x2dac86,_0x1ec2e2,_0x3adad6,_0x16da9d){return _0x18006e(_0x2dac86-0x1cd,_0x1ec2e2-_0x4205a5._0x5aaba1,_0x16da9d-_0x4205a5._0x4802b0,_0x3adad6);}return _0x5d185d instanceof ProviderStreamEventError&&_0x5d185d[_0x5e9c5f(0x29a,0x314,_0x4c0767._0x5c0fca,_0x4c0767._0x55b886)];}var ANTHROPIC_MESSAGES_SURFACE=_0x4d4006(0x2f,0xe9,0x27,0x85),ANTHROPIC_MESSAGES_STREAM_SURFACE=_0x18006e(0xbd,0x5,0x29,0x8d);function parseToolInput(_0x39c1eb){const _0x6bb8f9={_0x1bd7d1:0x58,_0xe7e71b:0xe9,_0x54e638:0x17},_0x1677bd={_0x27df01:0x102};function _0x5280c2(_0x2ff5cb,_0x1aeeb5,_0x3cefeb,_0x19979b){return _0x18006e(_0x2ff5cb-_0x1677bd._0x27df01,_0x1aeeb5-0x13e,_0x2ff5cb-0x46,_0x19979b);}try{return JSON[_0x5280c2(0x7c,_0x6bb8f9._0x1bd7d1,_0x6bb8f9._0xe7e71b,-_0x6bb8f9._0x54e638)](_0x39c1eb);}catch{return _0x39c1eb;}}function resolveReasoningVisibility(_0x3c8254){const _0x92e150={_0x35c7f3:0x28a,_0xb5ffa1:0x1d1,_0x4c6c81:0x269,_0x4dee05:0x43d,_0xe138fe:0x4c5,_0x5777d3:0x54b},_0x791695={_0x3da0ff:0x158},_0x377cfa={_0x128d7a:0x28,_0x10ad18:0x450};function _0x1ea997(_0x3ea13,_0x751ad8,_0x1ec1d3,_0x16e384){return _0x18006e(_0x3ea13-_0x377cfa._0x128d7a,_0x751ad8-0x16,_0x1ec1d3-_0x377cfa._0x10ad18,_0x751ad8);}function _0x4898dd(_0x1d21f7,_0x119701,_0x264171,_0x1dacf8){return _0x18006e(_0x1d21f7-0x1c0,_0x119701-0xda,_0x1d21f7-_0x791695._0x3da0ff,_0x264171);}return _0x3c8254[_0x1ea997(0x58d,0x5f4,0x55f,0x5be)]?.[_0x4898dd(0x1cf,_0x92e150._0x35c7f3,_0x92e150._0xb5ffa1,_0x92e150._0x4c6c81)]??_0x1ea997(_0x92e150._0x4dee05,_0x92e150._0xe138fe,0x4e0,_0x92e150._0x5777d3);}function isUserVisibleThinking(_0x2c344d){const _0x4b8afb={_0x1bb803:0x462,_0x580f7d:0x2ea,_0x5315ed:0x2f8,_0x84940b:0x2d2},_0x59621c={_0x5b2d9c:0x39,_0x150fc6:0x145},_0x56c7e0={_0x181683:0x27b};function _0x59dc1(_0x174489,_0x5e56aa,_0x183e72,_0x31364b){return _0x4d4006(_0x5e56aa,_0x5e56aa-0x1a3,_0x31364b-_0x56c7e0._0x181683,_0x31364b-0xa8);}const _0x1ac443=resolveAnthropicThinkingConfig(_0x2c344d[_0x59dc1(0x347,0x3f7,0x349,0x351)]);function _0x3824a8(_0x3ce5ea,_0x3b550c,_0x351dee,_0x189602){return _0x18006e(_0x3ce5ea-_0x59621c._0x5b2d9c,_0x3b550c-0x1b2,_0x3b550c- -_0x59621c._0x150fc6,_0x189602);}return _0x1ac443!==void 0x0&&_0x1ac443['type']!==_0x59dc1(0x454,_0x4b8afb._0x1bb803,0x481,0x3ec)&&resolveReasoningVisibility(_0x2c344d)===_0x59dc1(0x38a,_0x4b8afb._0x580f7d,_0x4b8afb._0x5315ed,_0x4b8afb._0x84940b);}function createAnthropicThinkingBody(_0x200c09){const _0x50d137={_0x3d6080:0x54d,_0x586725:0xb0,_0x53ce01:0x136,_0x405513:0x5af,_0x488219:0x117,_0x2d7b3e:0x1d0,_0x93fd57:0x172,_0x253dff:0x115,_0x262d2d:0x1b5,_0x1fc287:0x14f,_0xbec105:0x1f3,_0x288d4c:0x1e2,_0x55ec71:0x4f8,_0x30240e:0x548,_0x3babe4:0x58f},_0x299325={_0x1b1ed8:0x78,_0xa09393:0x134,_0x42e1c9:0x4e},_0x623d7={_0x5009dc:0x47d},_0x23c373=resolveAnthropicThinkingConfig(_0x200c09[_0x361555(0x58c,0x5d8,0x5d0,_0x50d137._0x3d6080)]);if(!_0x23c373||_0x23c373['type']==='disabled')return{};function _0x361555(_0x17e556,_0x11bc87,_0x4ead55,_0x1a9cc8){return _0x18006e(_0x17e556-0xd2,_0x11bc87-0x28,_0x17e556-_0x623d7._0x5009dc,_0x11bc87);}function _0x3effd6(_0x4b97bc,_0x356667,_0x1b889e,_0x1fc857){return _0x4d4006(_0x356667,_0x356667-_0x299325._0x1b1ed8,_0x1b889e-_0x299325._0xa09393,_0x1fc857-_0x299325._0x42e1c9);}const _0x2b632c=_0x23c373['display']??(isUserVisibleThinking(_0x200c09)?'summarized':'omitted'),_0x2d2baf=_0x23c373['interleaved']?{'anthropic-beta':_0x3effd6(0xa9,_0x50d137._0x586725,0x117,_0x50d137._0x53ce01)}:void 0x0;if(_0x23c373[_0x361555(0x52f,0x54d,_0x50d137._0x405513,0x580)]===_0x3effd6(_0x50d137._0x488219,0x16d,_0x50d137._0x53ce01,_0x50d137._0x2d7b3e))return{..._0x2d2baf?{'headers':_0x2d2baf}:{},'thinking':{'type':_0x3effd6(_0x50d137._0x93fd57,_0x50d137._0x253dff,0x136,0x174),'budget_tokens':_0x23c373[_0x3effd6(_0x50d137._0x262d2d,_0x50d137._0x1fc287,_0x50d137._0xbec105,0x1c5)],'display':_0x2b632c}};return{..._0x2d2baf?{'headers':_0x2d2baf}:{},'thinking':{'type':'adaptive',..._0x23c373[_0x3effd6(_0x50d137._0x288d4c,0x101,0x176,0x172)]?{'effort':_0x23c373[_0x361555(_0x50d137._0x55ec71,_0x50d137._0x30240e,0x53b,_0x50d137._0x3babe4)]}:{},'display':_0x2b632c}};}function toAnthropicRequestContent(_0x54c1d4){const _0x18093b={_0x5be29b:0x126,_0x318b8f:0x21e,_0x1eabaa:0xbf,_0x18de93:0x188,_0x362d08:0x265,_0x56ec61:0x2ff,_0x533960:0x25b,_0x5e1db4:0xe8,_0x337837:0x192,_0x5d7696:0xd1,_0x14dd6d:0x7d,_0x16fc54:0x27d,_0x13fb01:0x95,_0x1ba845:0x22f,_0x5b0c94:0x24e,_0x9fa23e:0x1c3,_0x512535:0x4,_0x2d8a08:0x215,_0x220921:0x1be,_0x321a86:0x9c,_0x21cbb4:0xf6,_0x350f62:0x141,_0xc2da2c:0x6f,_0x4e19e6:0xe9,_0x2b423a:0x11f},_0x16428c={_0x2e86d8:0x5a};function _0x8dfbca(_0x5c791e,_0x4177d2,_0x3708f9,_0x30d0b2){return _0x18006e(_0x5c791e-0x1b6,_0x4177d2-0x1b,_0x3708f9- -_0x16428c._0x2e86d8,_0x5c791e);}if(_0x54c1d4[_0xf52417(_0x18093b._0x5be29b,0x19c,0x1d3,_0x18093b._0x318b8f)]===_0x8dfbca(_0x18093b._0x1eabaa,0x1c6,0x11d,_0x18093b._0x18de93)&&_0x54c1d4['providerState']?.['anthropicAssistantContent'])return structuredClone(_0x54c1d4['providerState']['anthropicAssistantContent']);const _0x36317c=[];function _0xf52417(_0x219af5,_0x1b6cf0,_0x178c9e,_0x48d7c4){return _0x4d4006(_0x1b6cf0,_0x1b6cf0-0xb8,_0x178c9e-0x183,_0x48d7c4-0x127);}for(const _0x1c93ce of normalizeContent(_0x54c1d4[_0xf52417(0x227,_0x18093b._0x362d08,0x245,_0x18093b._0x56ec61)])){if(_0x1c93ce[_0xf52417(_0x18093b._0x533960,0x27d,0x1fc,0x139)]===_0x8dfbca(_0x18093b._0x5e1db4,_0x18093b._0x337837,_0x18093b._0x5d7696,_0x18093b._0x14dd6d))continue;if(_0x1c93ce['type']===_0xf52417(0x380,_0x18093b._0x16fc54,0x2e9,0x365)){_0x36317c[_0xf52417(0x276,0x2bb,0x29a,0x2ee)]({'type':_0x8dfbca(-0x2d,0x7e,0x1f,_0x18093b._0x13fb01),'thinking':_0x1c93ce[_0xf52417(_0x18093b._0x1ba845,_0x18093b._0x5b0c94,_0x18093b._0x9fa23e,0x1ff)],'signature':_0x1c93ce['signature']});continue;}if(_0x1c93ce[_0x8dfbca(0xb,-_0x18093b._0x512535,0x58,0x1c)]===_0xf52417(_0x18093b._0x2d8a08,_0x18093b._0x220921,0x257,0x2d5)){_0x36317c[_0x8dfbca(_0x18093b._0x321a86,0xf7,_0x18093b._0x21cbb4,_0x18093b._0x350f62)]({'type':_0x8dfbca(0xb8,-0x21,_0x18093b._0xc2da2c,_0x18093b._0x4e19e6),'data':_0x1c93ce['data']});continue;}_0x36317c[_0x8dfbca(_0x18093b._0x2b423a,0xaf,0xf6,0x12f)](structuredClone(_0x1c93ce));}return _0x36317c;}function createAnthropicRequest(_0x50a4a0,_0x2cccd4){const _0x3e0942={_0x257c3a:0x1c4,_0x4fb555:0x14c,_0x4553c4:0x103,_0x15638b:0xf4,_0x356fe:0xf8,_0x55cd9b:0xf8,_0x133e48:0x191,_0x5cebbb:0x94},_0x221b83={_0x307581:0x237,_0x24b394:0x300},_0x34b35d={_0x5de413:0xb2,_0xbb6ae4:0xb8,_0x4f58a8:0x43},_0x1822c6={_0x11c750:0x13a};function _0x58439a(_0x37cb37,_0x30689b,_0x3d7adc,_0x545234){return _0x18006e(_0x37cb37-0x16c,_0x30689b-_0x1822c6._0x11c750,_0x37cb37- -0x282,_0x30689b);}const _0x10206c=toProviderModelRequest(_0x50a4a0),_0x5e7b10=createAnthropicThinkingBody(_0x50a4a0);function _0x4895be(_0xfb69c8,_0x5a5919,_0x326311,_0x3aa826){return _0x4d4006(_0x326311,_0x5a5919-_0x34b35d._0x5de413,_0x5a5919-_0x34b35d._0xbb6ae4,_0x3aa826-_0x34b35d._0x4f58a8);}return{'accept':_0x2cccd4?'text/event-stream':'application/json','body':{..._0x10206c,'messages':_0x50a4a0[_0x58439a(-0x25e,-0x227,-0x2f3,-_0x3e0942._0x257c3a)][_0x4895be(_0x3e0942._0x4fb555,_0x3e0942._0x4553c4,0x9b,_0x3e0942._0x15638b)](_0x18aa02=>{const _0x531c7c={_0x4415ac:0x12f};function _0x460c50(_0x1bd9c7,_0x21c7f8,_0x37b7f5,_0x3e589e){return _0x4895be(_0x1bd9c7-0x119,_0x21c7f8-_0x531c7c._0x4415ac,_0x3e589e,_0x3e589e-0x192);}return{'role':_0x18aa02[_0x460c50(0x1fd,_0x221b83._0x307581,0x202,_0x221b83._0x24b394)],'content':toAnthropicRequestContent(_0x18aa02)};}),..._0x5e7b10['thinking']?{'thinking':_0x5e7b10[_0x4895be(_0x3e0942._0x356fe,_0x3e0942._0x55cd9b,_0x3e0942._0x133e48,0x1c2)]}:{},..._0x2cccd4?{'stream':!![]}:{}},..._0x5e7b10[_0x58439a(-0xf2,-_0x3e0942._0x5cebbb,-0x67,-0x184)]?{'headers':_0x5e7b10['headers']}:{},'path':'/v1/messages'};}function parseAnthropicResponse(_0x1dde13,_0x404aa0){const _0x390279={_0xbb8976:0x2a,_0x406e46:0x32,_0x317238:0x11,_0x2ad780:0x71,_0xf37fb:0x38,_0x297cb8:0x47,_0x3b4b05:0x127,_0x2f55d4:0x51,_0x43f1cb:0x3af,_0x1ca7ce:0x280,_0x5575bd:0x19,_0x545060:0xb5,_0x4a45eb:0x273,_0x31b19d:0x1e4,_0x49f968:0x31d,_0x346d44:0xc7,_0x53dbca:0x116,_0x37d9f9:0x2ac,_0x231700:0x353,_0x235909:0x23a,_0x20bb9d:0x2fe,_0x7ad6b6:0x46,_0x492508:0xc1,_0x46b2ec:0x34a,_0x879fef:0x3c2,_0xa2b4a6:0x3bd,_0x29093f:0x2ec,_0xf8ebc7:0x335,_0x46376d:0x3b0,_0x5202fe:0x38,_0x40fcc3:0x75,_0x2c488b:0x3c7,_0x51afdc:0x3b6,_0x5726bd:0x2ed,_0x8ab5c4:0x66,_0x5aeaea:0x112,_0x4e6ebd:0x2a7,_0x3784c6:0x3ad,_0xc1fb94:0x343,_0x566cdb:0x398,_0x487784:0x363,_0x266586:0x0,_0xc4327:0x13e,_0xca3df6:0xaf,_0x4cc3b7:0x53,_0x3cdb61:0x296,_0x56d86d:0x2c9,_0x4ccc37:0x34e,_0x56b6a5:0x2ec,_0x35f9b9:0x298,_0x2d6530:0x2af,_0x4ad7bf:0x2c3,_0x32c418:0x359,_0x1c4eb3:0x3d8,_0x4b2c96:0x4f,_0x5f53f8:0x125,_0x4efa03:0x4c,_0x259ba1:0xb7},_0x2bc50c={_0x21baff:0x12e,_0x4d3b40:0xb4,_0x15baa4:0xea},_0x23a259={_0x4719a0:0x1cb,_0x93b805:0x233,_0x26db1a:0x15f};function _0x3ecf31(_0x267620,_0xa4e11e,_0xdac197,_0x31519c){return _0x4d4006(_0xa4e11e,_0xa4e11e-_0x23a259._0x4719a0,_0x267620-_0x23a259._0x93b805,_0x31519c-_0x23a259._0x26db1a);}const _0x4fcf96=[],_0x448dc2=_0x1dde13[_0x581544(_0x390279._0xbb8976,-_0x390279._0x406e46,_0x390279._0x317238,_0x390279._0x2ad780)]??[];let _0x22684f=![];for(const _0x529e12 of _0x448dc2){if(_0x529e12[_0x581544(0x72,-0x1,-_0x390279._0xf37fb,_0x390279._0x297cb8)]===_0x581544(-0x59,-_0x390279._0x3b4b05,-_0x390279._0x2ad780,-_0x390279._0x2f55d4)){_0x22684f=!![];isUserVisibleThinking(_0x404aa0)&&_0x4fcf96[_0x3ecf31(0x34a,0x2bd,_0x390279._0x43f1cb,_0x390279._0x1ca7ce)]({'type':_0x581544(_0x390279._0x5575bd,0x121,_0x390279._0x545060,0x43),'thinking':_0x529e12[_0x3ecf31(_0x390279._0x4a45eb,_0x390279._0x31b19d,0x263,_0x390279._0x49f968)],'signature':_0x529e12[_0x581544(-0x22,-0x169,-_0x390279._0x346d44,-_0x390279._0x53dbca)]});continue;}if(_0x529e12[_0x3ecf31(_0x390279._0x37d9f9,_0x390279._0x231700,_0x390279._0x235909,_0x390279._0x20bb9d)]===_0x581544(-_0x390279._0x7ad6b6,-0x3c,-0x21,-_0x390279._0x492508)){_0x22684f=!![];isUserVisibleThinking(_0x404aa0)&&_0x4fcf96[_0x3ecf31(_0x390279._0x46b2ec,_0x390279._0x879fef,0x31d,_0x390279._0xa2b4a6)]({'type':'anthropic_redacted_thinking','data':_0x529e12[_0x3ecf31(_0x390279._0x29093f,0x28b,_0x390279._0xf8ebc7,_0x390279._0x46376d)]});continue;}if(_0x529e12[_0x581544(-0xe9,0x5d,-_0x390279._0x5202fe,-_0x390279._0x40fcc3)]===_0x3ecf31(0x305,0x2f5,_0x390279._0x2c488b,0x2d2)){_0x529e12[_0x3ecf31(0x305,0x2c0,0x3b9,0x296)][_0x3ecf31(0x31f,_0x390279._0x51afdc,_0x390279._0x5726bd,0x3b6)]>0x0&&_0x4fcf96[_0x581544(0x10d,-0x64,_0x390279._0x8ab5c4,_0x390279._0x5aeaea)](structuredClone(_0x529e12));continue;}_0x4fcf96[_0x3ecf31(0x34a,_0x390279._0x4e6ebd,_0x390279._0x3784c6,_0x390279._0xc1fb94)](structuredClone(_0x529e12));}function _0x581544(_0x5058b5,_0x38870b,_0x2bc152,_0x830c8d){return _0x18006e(_0x5058b5-_0x2bc50c._0x21baff,_0x38870b-_0x2bc50c._0x4d3b40,_0x2bc152- -_0x2bc50c._0x15baa4,_0x5058b5);}return{'id':_0x1dde13['id']??_0x3ecf31(_0x390279._0x566cdb,0x449,0x31c,_0x390279._0x487784)+Date[_0x581544(_0x390279._0x266586,_0x390279._0xc4327,_0x390279._0xca3df6,_0x390279._0x4cc3b7)](),'content':_0x4fcf96,'stopReason':_0x4fcf96['some'](_0x30cc6b=>_0x30cc6b[_0x581544(-0x49,-0xf3,-0x38,0x24)]===_0x3ecf31(0x296,0x31a,0x338,0x1dd))?_0x3ecf31(_0x390279._0x3cdb61,0x32e,_0x390279._0x56d86d,0x2db):_0x1dde13['stop_reason']===_0x3ecf31(0x296,0x308,_0x390279._0x4ccc37,_0x390279._0x56b6a5)?'tool_use':_0x3ecf31(_0x390279._0x35f9b9,_0x390279._0x2d6530,0x353,_0x390279._0x4ad7bf),'usage':{'inputTokens':_0x1dde13[_0x3ecf31(_0x390279._0x32c418,0x307,_0x390279._0x1c4eb3,0x417)]?.['input_tokens']??0x0,'outputTokens':_0x1dde13[_0x581544(-_0x390279._0x4b2c96,_0x390279._0x5f53f8,0x75,-_0x390279._0x4efa03)]?.[_0x581544(0xb2,0xe8,_0x390279._0x259ba1,0xdd)]??0x0},..._0x22684f?{'providerState':{'anthropicAssistantContent':structuredClone(_0x448dc2)}}:{}};}function _0x4d4006(_0xc65ec6,_0x41fc9e,_0x3e324b,_0x31c017){const _0xd5270f={_0x15e327:0x138};return _0x2cfd(_0x3e324b- -_0xd5270f._0x15e327,_0xc65ec6);}var AnthropicMessagesStreamParser=class{[_0x18006e(0xde,0x140,0x1a2,0x156)]=new Map();[_0x4d4006(0xe3,-0x14,0x8b,0x81)]=0x0;[_0x4d4006(0x29,0x12e,0x7c,0x10a)]='msg-'+Date[_0x4d4006(0x186,0xd5,0x160,0x20d)]();[_0x4d4006(0x190,0x10,0xcd,0x10e)]=0x0;[_0x18006e(0x35,0x17b,0xc8,0x7c)];['stopReason']='end_turn';constructor(_0x199a55){const _0x4e2181={_0x25102a:0x525,_0x2e35f2:0x4e7},_0xf54b15={_0x56241a:0x1a1,_0x17a0c3:0xfa};function _0xa37b81(_0x5a9a9e,_0xee461,_0xcbd8dd,_0x332620){return _0x18006e(_0x5a9a9e-_0xf54b15._0x56241a,_0xee461-_0xf54b15._0x17a0c3,_0xcbd8dd-0x41f,_0x5a9a9e);}this[_0xa37b81(_0x4e2181._0x25102a,0x4d5,_0x4e2181._0x2e35f2,0x523)]=_0x199a55;}[_0x18006e(0xc4,0x1f7,0x149,0xa5)](_0x336827){const _0x50e361={_0x32fc:0x4c3,_0x12a347:0x4a1,_0x17e302:0x483,_0x242761:0x401,_0x4f4add:0x40e,_0x33800b:0x391,_0x37fdc5:0x3a5,_0x544727:0x421,_0x8ed964:0x3ad,_0x425bc1:0x45f,_0x2731da:0x46d,_0x323bc6:0x47c,_0x2bc799:0x2f9,_0xc99b68:0x2f2,_0x28c72d:0x359,_0x3a6760:0x3c5,_0x3de8cc:0x35a,_0x4db91b:0x374,_0x39c060:0x47e,_0x37d8bd:0x48f,_0x20b544:0x50d,_0x2f2c8f:0x402,_0x3a88b7:0x39c,_0x5d2d55:0x44c,_0x4d9688:0x502,_0x173200:0x521,_0x5e00a3:0x4eb,_0x1deba4:0x4ed,_0x36999c:0x434,_0x5263d8:0x39b,_0x1aecef:0x2dd,_0x279b07:0x338,_0x54fa1d:0x3ab,_0x2965b7:0x3be,_0x58435f:0x478,_0x2659dc:0x3e2,_0x252e74:0x393,_0xaa6d75:0x333,_0x2504fb:0x440,_0x10b5c8:0x43a,_0x2c2776:0x3d4,_0x282f46:0x3dc,_0x3b0ee8:0x4cf,_0xdbb33:0x532,_0x4a4fe2:0x4e0,_0x4a8a27:0x492,_0x2d241d:0x483,_0x3b1a94:0x3e3,_0x276e3a:0x34c,_0x158e26:0x3b2,_0x557771:0x4ed,_0x5b4f5a:0x4b5,_0x1e9490:0x579,_0x3f204d:0x2c8,_0x35e532:0x371,_0x4b2c92:0x406,_0x5764d6:0x513,_0x56e345:0x358,_0x21d116:0x3b7,_0x1c2914:0x581,_0x1709b5:0x4c6,_0x578e3b:0x3b7,_0x122557:0x394,_0x3e55ab:0x367,_0x352b3d:0x3e9,_0x4c51d3:0x3e6,_0x40dd9f:0x49f,_0xe291dd:0x37d,_0x1c1297:0x363,_0x361552:0x449,_0x1b127f:0x468,_0xc93a3:0x32c,_0x5deb81:0x4a8,_0x48aa7c:0x3b7,_0x8e4836:0x3f0,_0x18a7aa:0x433,_0xeeee0b:0x3e9,_0x534cd9:0x3d6,_0x2fbb1e:0x329,_0x220810:0x4e0,_0x487ab3:0x4bc,_0x2d0485:0x495,_0x2fb9c0:0x399,_0x3c76c9:0x455,_0x2fec06:0x3ed,_0x114233:0x3e5,_0x26e267:0x395,_0x48ff8d:0x3ed,_0x57a566:0x4ae,_0x16026e:0x3bb,_0x43fd7d:0x4d4,_0x5b728b:0x41c,_0x401349:0x426,_0x425837:0x3d8,_0x224f59:0x492,_0x30eed7:0x360,_0xcc9d56:0x46d,_0x3520bf:0x3e8,_0x1555b5:0x38c,_0x1b8065:0x390,_0x1ff844:0x3ff,_0x47b723:0x3d4,_0x51584e:0x446,_0x1db58a:0x4a2,_0x24fcd7:0x3fe,_0x171dcf:0x447,_0x18b3b9:0x4c4,_0x3cbbc3:0x42f,_0x25f4e1:0x3c6,_0x4b2e7b:0x38e,_0x2ee0c0:0x497,_0x5cd985:0x481,_0x59fd7a:0x53f,_0x4f60a0:0x4ff,_0x2efb76:0x4ea,_0x354956:0x441,_0x4462a9:0x409,_0x2d22f5:0x3c0,_0x5168d1:0x465,_0x3d3939:0x4d1,_0x1dce7d:0x3e9,_0x29e5c7:0x32b,_0x17d0d5:0x415,_0xfe4211:0x485,_0x426d7e:0x380,_0x529716:0x430,_0x2c06f6:0x379,_0x47105b:0x408,_0x461c1d:0x4af,_0x3922e7:0x427,_0x25e8e9:0x4a8,_0x1865c9:0x31a,_0x2cd1f6:0x287,_0x5e9d96:0x343,_0x2ad700:0x4eb,_0x3984f3:0x558,_0x9338c2:0x4ae,_0x20d804:0x457,_0x5c3dc5:0x3a2,_0x3c3ffe:0x39d,_0x14c145:0x463,_0x4f0cf9:0x47c,_0x4e3178:0x32d,_0x5881bd:0x43f,_0x28ca10:0x342,_0x426fd1:0x44a,_0x347ef5:0x341,_0x544b86:0x38b,_0x5b605a:0x3f0,_0x5b8526:0x45a,_0x1541bc:0x51d,_0x121267:0x4d5,_0x36ed20:0x429,_0x14859f:0x477,_0x5034f1:0x463,_0x1f2bfd:0x319,_0x5b2785:0x37f,_0x1cdf56:0x3cf,_0x5a80d5:0x3c5,_0x79a901:0x3fc,_0x26a085:0x3ba,_0x561106:0x49c,_0x3ff552:0x386,_0x2bc006:0x381,_0x1c0f72:0x457,_0x2fbb07:0x4dc,_0xc2a7bb:0x431,_0x517056:0x506,_0x28b159:0x467,_0x3a490d:0x3fa,_0x4ed161:0x43f,_0x4d0c77:0x472,_0x5bf392:0x401,_0x5b01f1:0x3da,_0x492a1d:0x49e,_0x2bf15f:0x3ee,_0x2ff2e6:0x444,_0x3f819a:0x430,_0x19a602:0x40b,_0x2fe12a:0x370,_0x191c34:0x475,_0x1e7306:0x3c9,_0x17876d:0x3f2},_0x12db19={_0x1cc751:0xf8},_0x12d06b={_0x5de759:0x1a0,_0x2e5e6b:0x91},_0x4f866b=_0x336827['split']('\x0a'),_0xe47628=_0x4f866b['find'](_0x29bd29=>_0x29bd29[_0x2a0b75(0x46d,0x477,0x484,0x4bc)](_0x2a0b75(0x390,0x2ef,0x388,0x418)))?.[_0x3b6112(0x498,_0x50e361._0x32fc,0x459,0x502)](0x6)[_0x2a0b75(_0x50e361._0x12a347,_0x50e361._0x17e302,_0x50e361._0x242761,_0x50e361._0x4f4add)](),_0x11fcfb=_0x4f866b[_0x2a0b75(_0x50e361._0x33800b,0x3fe,_0x50e361._0x37fdc5,_0x50e361._0x544727)](_0x417009=>_0x417009[_0x3b6112(0x3c4,0x3a8,0x453,0x39f)]('data:'))['map'](_0x1e3c7c=>_0x1e3c7c['slice'](0x5)['trimStart']())[_0x2a0b75(_0x50e361._0x8ed964,0x2f6,_0x50e361._0x425bc1,0x397)]('\x0a')[_0x3b6112(0x41e,0x480,0x487,_0x50e361._0x2731da)]();function _0x2a0b75(_0x5a0278,_0x1a4a73,_0x5b8a47,_0x56e5c6){return _0x18006e(_0x5a0278-_0x12d06b._0x5de759,_0x1a4a73-_0x12d06b._0x2e5e6b,_0x5a0278-0x33e,_0x56e5c6);}if(_0x11fcfb[_0x3b6112(0x436,_0x50e361._0x323bc6,0x449,0x4d7)]===0x0||_0x11fcfb===_0x3b6112(_0x50e361._0x2bc799,_0x50e361._0xc99b68,0x3a2,0x327))return[];function _0x3b6112(_0x27641d,_0x461806,_0x1367aa,_0x492370){return _0x18006e(_0x27641d-0x98,_0x461806-_0x12db19._0x1cc751,_0x1367aa-0x324,_0x461806);}const _0xc76e0f=JSON[_0x3b6112(_0x50e361._0x28c72d,_0x50e361._0x3a6760,_0x50e361._0x3de8cc,_0x50e361._0x4db91b)](_0x11fcfb);switch(_0xe47628){case _0x2a0b75(0x45a,0x4ee,_0x50e361._0x39c060,0x46d):{const _0x29daf7=_0xc76e0f[_0x2a0b75(_0x50e361._0x37d8bd,0x3c9,_0x50e361._0x20b544,0x48d)];this[_0x2a0b75(0x3f3,0x3fd,0x44f,0x3e4)]=_0x29daf7?.['id']??this['messageId'],this[_0x2a0b75(_0x50e361._0x2f2c8f,0x38e,_0x50e361._0x3a88b7,_0x50e361._0x5d2d55)]=_0x29daf7?.[_0x3b6112(_0x50e361._0x4d9688,_0x50e361._0x173200,0x483,0x522)]?.[_0x3b6112(_0x50e361._0x5e00a3,_0x50e361._0x1deba4,0x4cd,0x4d6)]??this[_0x2a0b75(_0x50e361._0x2f2c8f,0x381,0x38c,_0x50e361._0x36999c)];break;}case _0x2a0b75(_0x50e361._0x5263d8,0x36d,_0x50e361._0x1aecef,_0x50e361._0x279b07):{const _0x169af4=typeof _0xc76e0f['index']==='number'?_0xc76e0f[_0x3b6112(_0x50e361._0x54fa1d,0x379,_0x50e361._0x2965b7,_0x50e361._0x58435f)]:0x0,_0x5d6dc6=_0xc76e0f[_0x2a0b75(0x37f,_0x50e361._0x2659dc,_0x50e361._0x252e74,0x2b6)];if(_0x5d6dc6?.[_0x2a0b75(0x3f0,_0x50e361._0xaa6d75,_0x50e361._0x2504fb,_0x50e361._0x10b5c8)]===_0x2a0b75(0x3da,0x311,_0x50e361._0x2c2776,_0x50e361._0x282f46)&&_0x5d6dc6['id']&&_0x5d6dc6[_0x2a0b75(_0x50e361._0x3b0ee8,_0x50e361._0xdbb33,0x552,0x49e)])return this[_0x2a0b75(_0x50e361._0x4a4fe2,0x43e,0x4ed,0x485)][_0x2a0b75(0x4d4,_0x50e361._0x4a8a27,0x411,0x4b1)](_0x169af4,{'id':_0x5d6dc6['id'],'index':_0x169af4,'inputJson':JSON[_0x3b6112(0x493,0x467,_0x50e361._0x544727,0x43a)](_0x5d6dc6[_0x3b6112(_0x50e361._0x2d241d,0x37c,_0x50e361._0x3b1a94,_0x50e361._0x276e3a)]??{}),'kind':_0x2a0b75(0x3da,_0x50e361._0x158e26,0x3ce,0x487),'name':_0x5d6dc6[_0x3b6112(_0x50e361._0x557771,0x4cf,_0x50e361._0x5b4f5a,_0x50e361._0x1e9490)]}),[{'type':_0x2a0b75(0x35d,_0x50e361._0x3f204d,0x3c4,_0x50e361._0x35e532),'id':_0x5d6dc6['id'],'index':_0x169af4,'name':_0x5d6dc6[_0x3b6112(0x42b,_0x50e361._0x4b2c92,0x4b5,_0x50e361._0x5764d6)]}];if(_0x5d6dc6?.[_0x3b6112(0x34a,0x480,0x3d6,_0x50e361._0x56e345)]===_0x2a0b75(_0x50e361._0x21d116,0x364,0x42b,0x409)){this[_0x3b6112(0x4c5,_0x50e361._0x1c2914,_0x50e361._0x1709b5,0x499)]['set'](_0x169af4,{'index':_0x169af4,'kind':_0x2a0b75(_0x50e361._0x578e3b,_0x50e361._0x122557,0x45c,_0x50e361._0x3e55ab),'signature':typeof _0x5d6dc6['signature']===_0x2a0b75(_0x50e361._0x352b3d,_0x50e361._0x4c51d3,_0x50e361._0x40dd9f,0x388)?_0x5d6dc6[_0x2a0b75(0x361,_0x50e361._0xe291dd,0x2dd,_0x50e361._0x1c1297)]:'','thinking':typeof _0x5d6dc6[_0x2a0b75(_0x50e361._0x361552,0x47b,_0x50e361._0x1b127f,0x477)]===_0x2a0b75(0x3e9,0x45c,_0x50e361._0xc93a3,_0x50e361._0x5deb81)?_0x5d6dc6['text']:typeof _0x5d6dc6[_0x2a0b75(_0x50e361._0x48aa7c,_0x50e361._0x8e4836,_0x50e361._0x18a7aa,0x41c)]===_0x2a0b75(_0x50e361._0xeeee0b,0x453,0x464,0x35a)?String(_0x5d6dc6['thinking']):''});break;}if(_0x5d6dc6?.[_0x3b6112(0x38d,_0x50e361._0x56e345,_0x50e361._0x534cd9,_0x50e361._0x2fbb1e)]==='redacted_thinking'){this[_0x2a0b75(_0x50e361._0x220810,_0x50e361._0x487ab3,0x532,0x53c)][_0x2a0b75(0x4d4,0x41e,0x462,_0x50e361._0x2d0485)](_0x169af4,{'index':_0x169af4,'kind':_0x3b6112(_0x50e361._0x2fb9c0,_0x50e361._0x3c76c9,_0x50e361._0x2fec06,_0x50e361._0x114233),'data':typeof _0x5d6dc6[_0x2a0b75(0x430,_0x50e361._0x26e267,_0x50e361._0x48ff8d,_0x50e361._0x57a566)]===_0x2a0b75(_0x50e361._0x352b3d,_0x50e361._0x16026e,0x418,0x475)?String(_0x5d6dc6['data']):''});break;}this['blocks'][_0x2a0b75(_0x50e361._0x43fd7d,0x4e6,_0x50e361._0x5b728b,0x558)](_0x169af4,{'index':_0x169af4,'kind':_0x3b6112(0x4ce,0x4a7,0x42f,0x3f2),'text':_0x5d6dc6?.[_0x2a0b75(0x449,0x3f2,_0x50e361._0x401349,0x511)]??''});break;}case'content_block_delta':{const _0x3330d2=typeof _0xc76e0f[_0x2a0b75(_0x50e361._0x425837,_0x50e361._0x224f59,0x418,0x462)]==='number'?_0xc76e0f[_0x2a0b75(0x3d8,0x475,_0x50e361._0x30eed7,_0x50e361._0xcc9d56)]:0x0,_0x187ec2=this[_0x3b6112(0x476,0x51a,0x4c6,0x4f7)]['get'](_0x3330d2),_0xcd04db=_0xc76e0f[_0x3b6112(_0x50e361._0x3520bf,_0x50e361._0x1555b5,_0x50e361._0x1b8065,0x446)];if(!_0x187ec2||!_0xcd04db?.[_0x3b6112(0x428,_0x50e361._0x1ff844,0x3d6,0x412)])break;if(_0xcd04db['type']==='text_delta'&&_0x187ec2['kind']===_0x2a0b75(0x449,_0x50e361._0x47b723,_0x50e361._0x425bc1,0x3cc)&&typeof _0xcd04db[_0x2a0b75(_0x50e361._0x361552,0x4e8,_0x50e361._0x51584e,_0x50e361._0x1db58a)]===_0x3b6112(_0x50e361._0x4c51d3,_0x50e361._0x24fcd7,0x3cf,_0x50e361._0x171dcf))return _0x187ec2[_0x3b6112(_0x50e361._0x18b3b9,0x4ae,_0x50e361._0x3cbbc3,_0x50e361._0x25f4e1)]+=_0xcd04db[_0x2a0b75(_0x50e361._0x361552,0x4b4,_0x50e361._0x4b2e7b,0x3b3)],[{'type':_0x3b6112(_0x50e361._0x2ee0c0,_0x50e361._0x3b0ee8,_0x50e361._0x5cd985,_0x50e361._0x59fd7a),'index':_0x3330d2,'text':_0xcd04db[_0x3b6112(0x438,0x4de,_0x50e361._0x3cbbc3,0x467)]}];if(_0xcd04db['type']===_0x2a0b75(0x483,0x475,_0x50e361._0x4f60a0,_0x50e361._0x2efb76)&&_0x187ec2[_0x3b6112(_0x50e361._0x354956,0x467,0x477,0x528)]===_0x3b6112(_0x50e361._0x4462a9,_0x50e361._0x282f46,_0x50e361._0x2d22f5,0x454)&&typeof _0xcd04db[_0x3b6112(_0x50e361._0x5168d1,0x4fa,_0x50e361._0x3d3939,0x48a)]===_0x2a0b75(_0x50e361._0x1dce7d,_0x50e361._0x29e5c7,_0x50e361._0x17d0d5,_0x50e361._0xfe4211))return _0x187ec2[_0x2a0b75(_0x50e361._0x426d7e,0x390,_0x50e361._0x529716,_0x50e361._0x2c06f6)]==='{}'&&(_0x187ec2[_0x2a0b75(0x380,0x43a,0x2da,_0x50e361._0x47105b)]=''),_0x187ec2['inputJson']+=_0xcd04db[_0x2a0b75(0x4eb,_0x50e361._0x461c1d,_0x50e361._0x3922e7,_0x50e361._0x25e8e9)],[{'type':_0x3b6112(_0x50e361._0x1865c9,_0x50e361._0x2cd1f6,_0x50e361._0x5e9d96,0x3e1),'id':_0x187ec2['id'],'index':_0x3330d2,'inputDelta':_0xcd04db[_0x2a0b75(_0x50e361._0x2ad700,0x52c,0x4b4,_0x50e361._0x3984f3)]}];if(_0xcd04db['type']===_0x2a0b75(_0x50e361._0x9338c2,0x55c,0x415,0x519)&&_0x187ec2['kind']===_0x2a0b75(_0x50e361._0x48aa7c,0x422,_0x50e361._0x20d804,0x3b0)){const _0x5160a5=typeof _0xcd04db['thinking']==='string'?String(_0xcd04db[_0x3b6112(0x32c,_0x50e361._0x5c3dc5,_0x50e361._0x3c3ffe,0x2fb)]):'';if(_0x5160a5[_0x2a0b75(_0x50e361._0x14c145,0x426,0x4cc,0x498)]>0x0){_0x187ec2[_0x2a0b75(_0x50e361._0x21d116,_0x50e361._0x4f0cf9,_0x50e361._0x4e3178,_0x50e361._0x5881bd)]+=_0x5160a5;if(isUserVisibleThinking(this[_0x3b6112(_0x50e361._0x28ca10,_0x50e361._0x426fd1,0x3ec,_0x50e361._0x16026e)]))return[{'type':_0x3b6112(_0x50e361._0x347ef5,0x42f,_0x50e361._0x544b86,0x445),'index':_0x3330d2,'thinking':_0x5160a5}];}}if(_0xcd04db[_0x2a0b75(_0x50e361._0x5b605a,0x44a,_0x50e361._0x3520bf,0x3d7)]===_0x3b6112(0x46e,_0x50e361._0x5b8526,_0x50e361._0x2d0485,_0x50e361._0x1541bc)&&_0x187ec2[_0x3b6112(_0x50e361._0x121267,_0x50e361._0x36ed20,_0x50e361._0x14859f,0x4cd)]===_0x2a0b75(0x3b7,0x3f4,_0x50e361._0x5034f1,0x3e6)){const _0x3ddb02=typeof _0xcd04db['signature']===_0x3b6112(_0x50e361._0x1f2bfd,_0x50e361._0x5b2785,_0x50e361._0x1cdf56,_0x50e361._0x5a80d5)?String(_0xcd04db['signature']):'';if(_0x3ddb02[_0x3b6112(_0x50e361._0x79a901,_0x50e361._0x25f4e1,_0x50e361._0x361552,0x4b1)]>0x0){_0x187ec2[_0x3b6112(0x3b4,_0x50e361._0x26a085,0x347,_0x50e361._0x2bc799)]=_0x3ddb02;if(isUserVisibleThinking(this[_0x2a0b75(0x406,0x3d3,0x3dd,_0x50e361._0x561106)]))return[{'type':'anthropic_signature_delta','index':_0x3330d2,'signature':_0x3ddb02}];}}break;}case'message_delta':{const _0x509b4f=_0xc76e0f[_0x3b6112(_0x50e361._0x3ff552,_0x50e361._0x2bc006,_0x50e361._0x1b8065,_0x50e361._0x1c0f72)],_0x3ebef1=_0xc76e0f[_0x2a0b75(0x49d,_0x50e361._0x2fbb07,0x431,_0x50e361._0xc2a7bb)];this[_0x3b6112(0x4cc,0x411,0x42a,0x4f1)]=_0x3ebef1?.[_0x3b6112(0x4c6,_0x50e361._0x517056,0x4c5,0x57c)]??this[_0x3b6112(0x3de,_0x50e361._0x28b159,0x42a,0x49a)],this[_0x3b6112(0x338,0x483,_0x50e361._0x3a490d,0x39b)]=_0x509b4f?.[_0x3b6112(0x3c8,_0x50e361._0x4ed161,_0x50e361._0x4d0c77,0x4cc)]===_0x3b6112(0x3ba,0x41c,0x3c0,_0x50e361._0x5bf392)?_0x2a0b75(_0x50e361._0x5b01f1,_0x50e361._0x492a1d,_0x50e361._0x2bf15f,_0x50e361._0x2ff2e6):'end_turn';break;}case _0x3b6112(0x360,_0x50e361._0x3f819a,_0x50e361._0x19a602,0x3a8):{const _0x2becef=_0xc76e0f[_0x2a0b75(0x425,0x3e8,0x3a8,_0x50e361._0x2fe12a)];throw new ProviderStreamEventError(_0x2becef?.[_0x3b6112(_0x50e361._0x4f60a0,_0x50e361._0x361552,_0x50e361._0x191c34,_0x50e361._0x2ad700)]??_0x2a0b75(0x376,0x3b8,0x33c,0x2ed),{'code':_0x2becef?.[_0x2a0b75(_0x50e361._0x5b605a,0x4ba,_0x50e361._0x1e7306,_0x50e361._0x17876d)],'retryable':!![]});}}return[];}[_0x4d4006(0x1d5,0x1e4,0x14d,0x1d7)](){const _0x2f9cd2={_0x54c4a7:0x23,_0x408c8f:0x63,_0x196c8e:0x59,_0x40b174:0x8,_0x659915:0x13,_0x54997f:0x13,_0x4635d9:0x3e,_0x2d8562:0x2c,_0x88e7fc:0x4f,_0x27465e:0xf5,_0x5f38b5:0xe4,_0x2d81b8:0xe8,_0x1ac2ca:0x57,_0x105f8c:0x8f,_0x56324b:0x5a,_0x27095b:0x27,_0x32c4e0:0x13e,_0x23d09e:0x35,_0x494c71:0x53,_0x2064ed:0xdb,_0x3f5a71:0x87,_0x51884f:0x176,_0x28708b:0x8e,_0x56c620:0x1aa,_0x5794ea:0xf6,_0x33253a:0x201,_0x5d689d:0x198,_0x1aa469:0x37,_0x5f1f1e:0x64,_0x5cfe61:0x1c8,_0x40cc63:0x1f3,_0x1f1978:0x52,_0x5a9b93:0x44,_0x1d311e:0x67,_0x15d346:0x1c4,_0x53108e:0x272,_0xd49f9d:0xb4,_0x7e3c71:0xc2,_0x53ace7:0x1d4,_0x4e8503:0xfd,_0x40d9b3:0x10e,_0x2e3929:0x90,_0x198b22:0x14,_0x11ef8e:0x14,_0x1efb50:0x170,_0xd4e353:0xaf,_0xf33a76:0x13e},_0x3106e8={_0x8a9e8a:0x146,_0x1bf210:0x1bb};function _0x333512(_0x4f5163,_0x1fd9d1,_0x3adf12,_0x1ba1de){return _0x4d4006(_0x4f5163,_0x1fd9d1-0x154,_0x1fd9d1- -_0x3106e8._0x8a9e8a,_0x1ba1de-_0x3106e8._0x1bf210);}const _0x79abe8=Array['from'](this[_0x333512(0x10,_0x2f9cd2._0x54c4a7,-_0x2f9cd2._0x408c8f,0x6f)][_0x333512(-0xbb,-0x5,_0x2f9cd2._0x196c8e,-0x66)]())[_0x333512(_0x2f9cd2._0x40b174,-_0x2f9cd2._0x659915,0x1a,-_0x2f9cd2._0x54997f)]((_0x3b99bd,_0x1e4c1c)=>_0x3b99bd['index']-_0x1e4c1c[_0x4253b5(-0x171,-0xc7,-0x1d2,-0x177)]);function _0x4253b5(_0x18fd50,_0x2e3e72,_0x246a1a,_0x30d37c){return _0x18006e(_0x18fd50-0xc7,_0x2e3e72-0x26,_0x30d37c- -0x211,_0x2e3e72);}const _0x2f0902=[];for(const _0x53dfea of _0x79abe8){if(_0x53dfea[_0x333512(-_0x2f9cd2._0x4635d9,-_0x2f9cd2._0x2d8562,_0x2f9cd2._0x88e7fc,-_0x2f9cd2._0x27465e)]===_0x4253b5(-0xcd,-_0x2f9cd2._0x5f38b5,-_0x2f9cd2._0x2d81b8,-0x106)){_0x53dfea[_0x333512(-0x66,-0x74,-_0x2f9cd2._0x1ac2ca,-_0x2f9cd2._0x105f8c)][_0x333512(-0x85,-_0x2f9cd2._0x56324b,_0x2f9cd2._0x27095b,0x49)]>0x0&&_0x2f0902[_0x4253b5(-_0x2f9cd2._0x32c4e0,-_0x2f9cd2._0x23d09e,-_0x2f9cd2._0x494c71,-0xc1)]({'type':'text','text':_0x53dfea[_0x4253b5(-0x6c,-_0x2f9cd2._0x2064ed,-0x16a,-0x106)]});continue;}if(_0x53dfea[_0x4253b5(-0x4,-_0x2f9cd2._0x3f5a71,-_0x2f9cd2._0x51884f,-0xbe)]==='thinking'){_0x2f0902[_0x333512(0x5b,-0x2f,0x5f,_0x2f9cd2._0x28708b)]({'type':_0x4253b5(-0xfd,-_0x2f9cd2._0x56c620,-0x145,-0x198),'thinking':_0x53dfea[_0x4253b5(-_0x2f9cd2._0x5794ea,-0x20d,-_0x2f9cd2._0x33253a,-_0x2f9cd2._0x5d689d)],'signature':_0x53dfea['signature']});continue;}if(_0x53dfea[_0x333512(-_0x2f9cd2._0x1aa469,-0x2c,-_0x2f9cd2._0x5f1f1e,-0x15)]===_0x4253b5(-0xfd,-_0x2f9cd2._0x5cfe61,-_0x2f9cd2._0x40cc63,-0x148)){_0x2f0902['push']({'type':'redacted_thinking','data':_0x53dfea['data']});continue;}_0x2f0902[_0x4253b5(-_0x2f9cd2._0x1f1978,-_0x2f9cd2._0x5a9b93,-0x160,-0xc1)]({'type':'tool_use','id':_0x53dfea['id'],'name':_0x53dfea[_0x333512(-0x6d,0x12,_0x2f9cd2._0x1d311e,0x34)],'input':parseToolInput(_0x53dfea[_0x4253b5(-0x1ea,-_0x2f9cd2._0x15d346,-_0x2f9cd2._0x53108e,-0x1cf)]['length']>0x0?_0x53dfea[_0x333512(-0x162,-0x13d,-_0x2f9cd2._0xd49f9d,-_0x2f9cd2._0x7e3c71)]:'{}')});}return parseAnthropicResponse({'id':this[_0x4253b5(-_0x2f9cd2._0x53ace7,-_0x2f9cd2._0x4e8503,-_0x2f9cd2._0x40d9b3,-0x15c)],'type':_0x333512(0x8,-0x2e,_0x2f9cd2._0x2e3929,0x59),'role':_0x4253b5(-_0x2f9cd2._0x198b22,-0xa,_0x2f9cd2._0x11ef8e,-0x9a),'content':_0x2f0902,'stop_reason':this['stopReason'],'stop_sequence':null,'usage':{'input_tokens':this[_0x333512(-_0x2f9cd2._0x1efb50,-0xbb,-0xe1,-_0x2f9cd2._0xd4e353)],'output_tokens':this['outputTokens']}},this[_0x4253b5(-0x87,-_0x2f9cd2._0xf33a76,-0x167,-0x149)]);}};function createAnthropicSurfaces(){const _0x59b1fa={_0x23ff78:0x2a,_0x57330a:0x92};function _0x5dd5ef(_0x57879f,_0x2ecf51,_0x21680a,_0x20dfb7){return _0x18006e(_0x57879f-0x18,_0x2ecf51-0x19,_0x20dfb7- -0x1be,_0x57879f);}return[{'id':ANTHROPIC_MESSAGES_SURFACE,'transport':'http-json','createRequest'(_0x506d3f){return createAnthropicRequest(_0x506d3f,![]);},'parseResponse'(_0x21b7d0,_0x5e6199){return parseAnthropicResponse(_0x21b7d0,_0x5e6199);}},{'id':ANTHROPIC_MESSAGES_STREAM_SURFACE,'transport':_0x5dd5ef(_0x59b1fa._0x23ff78,-0x37,-0x102,-_0x59b1fa._0x57330a),'createRequest'(_0x337f6e){return createAnthropicRequest(_0x337f6e,!![]);},'createStreamParser'(_0x311db8){return new AnthropicMessagesStreamParser(_0x311db8);}}];}var StaticModelSurfaceRouter=class{['completeSurface'];['streamSurface'];constructor(_0x266422){const _0x51a92f={_0x3daf57:0x507,_0x1081a9:0x62c,_0x2abf47:0x6c,_0x3aba10:0xec,_0x255a1a:0x5e},_0x4b77d6={_0x20347d:0x110};this['completeSurface']=_0x266422[_0x4539eb(_0x51a92f._0x3daf57,_0x51a92f._0x1081a9,0x5b5,0x4ed)];function _0x4539eb(_0x210be8,_0x19491b,_0xdebbd4,_0x35d591){return _0x4d4006(_0x35d591,_0x19491b-0x5e,_0xdebbd4-0x4d1,_0x35d591-0x178);}function _0x15de85(_0x325b2c,_0x35cdaf,_0x3196fe,_0x2f37b4){return _0x4d4006(_0x35cdaf,_0x35cdaf-0x9e,_0x3196fe- -_0x4b77d6._0x20347d,_0x2f37b4-0x1b2);}this[_0x15de85(_0x51a92f._0x2abf47,-0x2b,0x43,0x2f)]=_0x266422[_0x15de85(0x5,-_0x51a92f._0x3aba10,-_0x51a92f._0x255a1a,0x22)];}['selectSurface'](_0x52846d,_0x35ca80){const _0x528c6a={_0xe24a9a:0xf8,_0x530a3e:0x176,_0x246ef4:0x1bb,_0x1ab584:0x4b,_0x1e6604:0x67,_0x5af63e:0x52},_0x383cc8={_0x1166d6:0x162,_0x26c033:0x164};function _0x1f3a99(_0x1c2854,_0x4f23c2,_0x5adb6d,_0x2a4ab6){return _0x4d4006(_0x2a4ab6,_0x4f23c2-_0x383cc8._0x1166d6,_0x1c2854- -0xff,_0x2a4ab6-_0x383cc8._0x26c033);}function _0x111294(_0x5f064d,_0x3d78ca,_0x3b5c76,_0x155955){return _0x18006e(_0x5f064d-0x152,_0x3d78ca-0x8f,_0x5f064d-0x2f,_0x3b5c76);}return _0x35ca80[_0x1f3a99(-_0x528c6a._0xe24a9a,-0x17c,-_0x528c6a._0x530a3e,-0xaf)]===_0x111294(0x11a,0x174,0x107,0x18f)?this[_0x111294(_0x528c6a._0x246ef4,0x172,0x183,0x181)]:this[_0x1f3a99(_0x528c6a._0x1ab584,_0x528c6a._0x1e6604,-_0x528c6a._0x5af63e,-0x78)];}};function trimTrailingSlashes(_0x57964a){const _0x303bbc={_0xe6fb4a:0x3f1},_0x23c019={_0x4903dd:0x13d,_0x234858:0x449};function _0xe32ea0(_0x57cc03,_0xcf298c,_0x144035,_0x5bc091){return _0x18006e(_0x57cc03-0x7,_0xcf298c-_0x23c019._0x4903dd,_0x5bc091-_0x23c019._0x234858,_0xcf298c);}return _0x57964a[_0xe32ea0(0x492,_0x303bbc._0xe6fb4a,0x41a,0x4ad)](/\/+$/,'');}function resolveApiCredential(_0x32a749,_0x5bdda6){const _0x6a38bc={_0x55c335:0x24b,_0x5469a6:0x183,_0x160e8a:0x183,_0x4eae32:0x135,_0xbb930a:0xea,_0x232e39:0x29},_0x78e97b={_0xeca59b:0x37,_0x48d1ff:0x1a8},_0x5649f8={_0x2c28a4:0x152};function _0x50be11(_0x29b43a,_0x22a7de,_0x42375b,_0x31d561){return _0x4d4006(_0x42375b,_0x22a7de-_0x5649f8._0x2c28a4,_0x29b43a- -0x58,_0x31d561-0x1bd);}if(_0x5bdda6?.[_0x5b2626(-_0x6a38bc._0x55c335,-_0x6a38bc._0x5469a6,-0x214,-0x19f)])return _0x5bdda6[_0x5b2626(-0xc7,-_0x6a38bc._0x160e8a,-0x223,-_0x6a38bc._0x4eae32)];function _0x5b2626(_0x33bb3d,_0x20c4a9,_0x504c51,_0x19ddda){return _0x18006e(_0x33bb3d-_0x78e97b._0xeca59b,_0x20c4a9-0x1eb,_0x20c4a9- -_0x78e97b._0x48d1ff,_0x19ddda);}if(!_0x32a749)return void 0x0;return{'kind':_0x5b2626(-0x6d,-_0x6a38bc._0xbb930a,-_0x6a38bc._0x232e39,-0x2c),'value':_0x32a749};}function resolveSessionBaseUrl(_0x418a1d,_0x337841){const _0x2ce9fc={_0x2d6acf:0x4},_0x5785b1={_0x45ea07:0x139,_0x256620:0x1d8};function _0x4682f2(_0x706660,_0x440d37,_0x5653e7,_0x37b5e5){return _0x18006e(_0x706660-0x15c,_0x440d37-_0x5785b1._0x45ea07,_0x706660- -_0x5785b1._0x256620,_0x37b5e5);}return trimTrailingSlashes(_0x337841?.[_0x4682f2(-0x4e,-0x59,-_0x2ce9fc._0x2d6acf,0x46)]?.['api']??_0x418a1d);}function _0x18006e(_0x16a8b1,_0x310cab,_0x556e9f,_0x23ebb1){const _0x908d41={_0x4231ba:0xff};return _0x2cfd(_0x556e9f- -_0x908d41._0x4231ba,_0x23ebb1);}function toErrorMessage(_0x9f5ace){const _0x433467={_0xbe1b3b:0x440,_0x1e54ca:0x1d5,_0x5313f1:0x1e5},_0x44385a={_0x2d2672:0x1ca,_0x49f720:0x31b},_0x258dad={_0x4ccb7f:0x7f,_0x1e622f:0x1b6};function _0xb85057(_0x145a6a,_0x57e477,_0x256552,_0x5614b1){return _0x4d4006(_0x57e477,_0x57e477-_0x258dad._0x4ccb7f,_0x145a6a- -_0x258dad._0x1e622f,_0x5614b1-0x13b);}if(_0x9f5ace instanceof Error&&_0x9f5ace['message'][_0x1b08e3(0x3cb,_0x433467._0xbe1b3b,0x439,0x4fd)]>0x0)return _0x9f5ace['message'];function _0x1b08e3(_0x179a60,_0x5b11e6,_0x4096de,_0x2b3b3f){return _0x18006e(_0x179a60-0xb3,_0x5b11e6-_0x44385a._0x2d2672,_0x5b11e6-_0x44385a._0x49f720,_0x2b3b3f);}return _0xb85057(-_0x433467._0x1e54ca,-_0x433467._0x5313f1,-0x1b8,-0x1bc);}function createDefaultWebSocketFactory(){return({headers:_0x541af3,url:_0x137e1e})=>{const _0x44ad25=globalThis['WebSocket'];return new _0x44ad25(_0x137e1e,{'headers':_0x541af3,'protocols':[]});};}async function*iterateSseEvents(_0x211659,_0x57365e){const _0x514968={_0x19f178:0x4c8,_0x5bfa7a:0x4c6,_0x4ec3e8:0x3d3,_0x3441ab:0x3ba,_0x51899f:0xfa,_0x562802:0x40d,_0x1a2f86:0x46a,_0x3aa073:0x376,_0x434b15:0x1de,_0x303350:0x187,_0x1fae88:0x250,_0x40ab62:0x1fe,_0x2ace63:0x1d5,_0x195532:0x14c,_0x5697db:0x407,_0x13bca7:0x404},_0x4fe133={_0x388c55:0x39c,_0x4a8cea:0x323},_0x487975={_0x3d4637:0x54,_0xda2095:0x359},_0x2464fc=_0x211659[_0x459798(_0x514968._0x19f178,0x577,_0x514968._0x5bfa7a,0x419)]?.[_0x459798(0x447,_0x514968._0x4ec3e8,_0x514968._0x3441ab,0x46d)]();function _0x459798(_0x16dc47,_0x31146b,_0xa63fbe,_0x50ba4f){return _0x4d4006(_0x31146b,_0x31146b-_0x487975._0x3d4637,_0x16dc47-_0x487975._0xda2095,_0x50ba4f-0x16b);}if(!_0x2464fc)return;const _0x4306e7=new TextDecoder(_0x51138c(0xce,0x137,_0x514968._0x51899f,0x176));let _0x4c388e='';const _0x51d7e1=addAbortListener(_0x57365e,()=>{const _0x3eef15={_0x2c599a:0x64,_0x448f82:0x196};function _0x2eb11b(_0x568eca,_0x27c37f,_0x3185d7,_0x2918a8){return _0x459798(_0x2918a8- -_0x3eef15._0x2c599a,_0x568eca,_0x3185d7-0xaa,_0x2918a8-_0x3eef15._0x448f82);}void _0x2464fc[_0x2eb11b(0x438,_0x4fe133._0x388c55,_0x4fe133._0x4a8cea,0x3d2)](toAbortError(_0x57365e?.['reason']))['catch'](()=>{});});function _0x51138c(_0x24cb38,_0xb20e94,_0x5efc03,_0x415e86){return _0x4d4006(_0x24cb38,_0xb20e94-0x1a1,_0xb20e94-0xd9,_0x415e86-0xa);}try{while(!![]){throwIfAborted(_0x57365e);const {value:_0x18b1ca,done:_0x413fba}=await _0x2464fc['read']();throwIfAborted(_0x57365e);if(_0x413fba)break;_0x4c388e+=_0x4306e7[_0x459798(_0x514968._0x562802,_0x514968._0x1a2f86,_0x514968._0x3aa073,0x4cb)](_0x18b1ca,{'stream':!![]});while(!![]){const _0x3eb147=_0x4c388e[_0x51138c(0x1fd,_0x514968._0x434b15,_0x514968._0x303350,_0x514968._0x1fae88)]('\x0a\x0a');if(_0x3eb147===-0x1)break;const _0x45e6bd=_0x4c388e[_0x459798(0x455,0x3bc,0x3d0,0x4a3)](0x0,_0x3eb147);_0x4c388e=_0x4c388e[_0x51138c(_0x514968._0x40ab62,_0x514968._0x2ace63,_0x514968._0x195532,0x11f)](_0x3eb147+0x2),_0x45e6bd['trim']()[_0x459798(0x445,_0x514968._0x5697db,0x445,_0x514968._0x13bca7)]>0x0&&(yield _0x45e6bd);}}_0x4c388e+=_0x4306e7['decode'](),throwIfAborted(_0x57365e),_0x4c388e['trim']()['length']>0x0&&(yield _0x4c388e);}finally{_0x51d7e1();}}async function waitForWebSocketOpen(_0x3c6061,_0x32ec64){const _0x329b9c={_0x14cf3a:0x491,_0x1566dc:0x4d0,_0x2bcc29:0x551,_0x7780e5:0x138,_0xf01358:0x106},_0x5b54df={_0x42c256:0xed,_0x11e238:0x107,_0x202a8b:0x3df,_0xd4c858:0x345,_0x4c2231:0x2d4,_0x49618a:0x292,_0x1550e1:0x2be,_0x1574ba:0x34a,_0x180781:0x138,_0x3dac34:0xe9,_0x5c0104:0x125},_0x58876b={_0x354d47:0x1ac,_0xc8186d:0x16a,_0x27b572:0x1c5,_0x2b732b:0x21d,_0x1d04c9:0x145,_0x3508ee:0x15a,_0x1880f2:0x284},_0x19c391={_0x2bfe2c:0x9,_0x5bae12:0x32},_0x115df0={_0x6fda6d:0xda},_0x56e394={_0x17e926:0x142};if(_0x3c6061[_0x5f4775(0x525,_0x329b9c._0x14cf3a,_0x329b9c._0x1566dc,_0x329b9c._0x2bcc29)]===WebSocket[_0x14a86d(_0x329b9c._0x7780e5,0x16c,0x118,_0x329b9c._0xf01358)]){throwIfAborted(_0x32ec64);return;}throwIfAborted(_0x32ec64);function _0x14a86d(_0x533e83,_0x1101d9,_0x9c1049,_0x41eb78){return _0x18006e(_0x533e83-_0x56e394._0x17e926,_0x1101d9-0x122,_0x41eb78-0xb2,_0x1101d9);}function _0x5f4775(_0x1ef401,_0x297f59,_0x2f6096,_0x3f7615){return _0x4d4006(_0x3f7615,_0x297f59-0x126,_0x2f6096-0x3db,_0x3f7615-_0x115df0._0x6fda6d);}await new Promise((_0x2ec6a2,_0x5326fb)=>{const _0x4332af={_0x48e4f3:0x21},_0x1c286a={_0x1e5850:0xfc,_0x5c8d8e:0x7},_0x31123e={_0x1abd50:0x181,_0x37603b:0x1b0,_0x2a1d3c:0x15d},_0x5320b1={_0x319e72:0xe},_0x4b39b2={_0x105775:0x1a2},_0x21e30a=()=>{_0x8b6aa2(),_0x2ec6a2();},_0x181e05=_0x2a4911=>{const _0x111caa={_0x439394:0x282};function _0x58c5c6(_0x5c170e,_0x1c1278,_0x38daf0,_0x4da46d){return _0x2cfd(_0x38daf0- -_0x111caa._0x439394,_0x4da46d);}_0x8b6aa2(),_0x5326fb(new Error(_0x2a4911[_0x58c5c6(-_0x19c391._0x2bfe2c,0x89,-_0x19c391._0x5bae12,-0x2d)]||'WebSocket\x20request\x20failed'));};function _0x33f770(_0x2b815c,_0x4cfc32,_0x724184,_0x3f942f){return _0x5f4775(_0x2b815c-0x7e,_0x4cfc32-_0x4b39b2._0x105775,_0x4cfc32- -0x2e4,_0x2b815c);}const _0x28e780=_0x37cc1c=>{_0x8b6aa2();function _0x253386(_0x3f58b7,_0x2eb2c5,_0x364990,_0x4094d0){return _0x2cfd(_0x3f58b7- -0x395,_0x364990);}const _0x285d85=_0x37cc1c;function _0x11d9e9(_0x3513de,_0x3f06ac,_0x3632e3,_0x60a0e1){return _0x2cfd(_0x3513de-_0x5320b1._0x319e72,_0x3f06ac);}_0x5326fb(new Error(_0x285d85[_0x253386(-_0x31123e._0x1abd50,-0x1b6,-0x1de,-0x1dd)]||_0x253386(-0x1f0,-_0x31123e._0x37603b,-0x1f5,-_0x31123e._0x2a1d3c)));},_0x25cb07=()=>{const _0x39eab0={_0x24b212:0x10a};function _0x845292(_0x1f0316,_0x232c80,_0x4ed777,_0x49e107){return _0x2cfd(_0x4ed777- -_0x39eab0._0x24b212,_0x49e107);}_0x8b6aa2();_0x3c6061['readyState']===WebSocket['OPEN']&&_0x3c6061['close'](0x3e8,_0x845292(_0x1c286a._0x1e5850,-_0x1c286a._0x5c8d8e,0x8d,0x137));function _0x348cb2(_0x58f187,_0x19136e,_0x253906,_0x2010d0){return _0x2cfd(_0x58f187-0x2df,_0x2010d0);}_0x5326fb(toAbortError(_0x32ec64?.[_0x348cb2(0x4f3,0x5aa,0x505,0x5a8)]));},_0x8b6aa2=()=>{_0x3c6061['removeEventListener']('open',_0x21e30a);function _0xc6e2c8(_0x472ba8,_0xe28aa0,_0x14b739,_0x237564){return _0x2cfd(_0xe28aa0- -_0x4332af._0x48e4f3,_0x14b739);}_0x3c6061[_0xc6e2c8(_0x58876b._0x354d47,0x1c3,0x269,_0x58876b._0xc8186d)](_0xc6e2c8(0x169,_0x58876b._0x27b572,_0x58876b._0x2b732b,0x267),_0x181e05),_0x3c6061['removeEventListener'](_0xc6e2c8(0x147,0x153,_0x58876b._0x1d04c9,_0x58876b._0x3508ee),_0x28e780);function _0xee4b4a(_0x106c62,_0x46cc2b,_0x408ccf,_0x3bd8af){return _0x2cfd(_0x106c62- -0x256,_0x408ccf);}_0x32ec64?.['removeEventListener'](_0xc6e2c8(0x258,_0x58876b._0x1880f2,0x2c1,0x1d6),_0x25cb07);};_0x3c6061[_0x33f770(0x78,_0x5b54df._0x42c256,_0x5b54df._0x11e238,0x9c)](_0x1be84d(_0x5b54df._0x202a8b,0x35b,_0x5b54df._0xd4c858,0x33a),_0x21e30a),_0x3c6061[_0x1be84d(0x356,0x26f,_0x5b54df._0x4c2231,_0x5b54df._0x49618a)](_0x1be84d(0x2eb,_0x5b54df._0x1550e1,0x2b2,_0x5b54df._0x1574ba),_0x181e05),_0x3c6061[_0x33f770(_0x5b54df._0x180781,0xed,_0x5b54df._0x3dac34,0x109)]('close',_0x28e780);function _0x1be84d(_0x3edcab,_0x40fc09,_0x24a768,_0x5d3353){return _0x5f4775(_0x3edcab-0x1ae,_0x40fc09-0x103,_0x5d3353- -0x13f,_0x24a768);}_0x32ec64?.[_0x33f770(0x60,0xed,_0x5b54df._0x5c0104,0x49)]('abort',_0x25cb07,{'once':!![]});});}function iterateWebSocketMessages(_0x5904d4,_0x33f31e){const _0x461594={_0xe2f019:0x126,_0x51d13d:0x2e0,_0x2b7bcc:0x215,_0x4ee729:0x1d1,_0x1f0a62:0x1da},_0x5408f4={_0x15c46d:0x330,_0x2bbd39:0x3a7,_0x432457:0x3bf,_0x2b590f:0x3ad,_0x356590:0x439,_0x3cebb5:0x3a8,_0x9c4075:0x3ac,_0x25880e:0x11a,_0x707da0:0x188,_0x4db6eb:0x1c8,_0x5b0943:0x1e5,_0x10c3b5:0x3fe,_0x271ebc:0x364,_0x37c5fe:0x2f7},_0x4e0a6e={_0x107e78:0x5e,_0x2a0279:0x19e},_0x4330e3={_0xa74951:0x67},_0x572e36={_0x3044a8:0x107,_0x3f7ac3:0x97,_0x1b277d:0x49,_0x3c7cba:0x1d9,_0x39285b:0x2a7,_0x35b2b5:0x24c,_0x2f5626:0x276,_0x2b4858:0x26f},_0x155442={_0x462b18:0xb0,_0x1dffa7:0x15c},_0x33e16d={_0x51d1d1:0x227,_0x43e6e1:0x208,_0x26bdff:0x1aa,_0x29288f:0xb,_0x2c740f:0xd3,_0x3de1b2:0x91,_0x4720ec:0x107,_0x109983:0x14c,_0x279f6e:0x19e,_0x1b11da:0x229,_0x13a0e6:0x196,_0x12700d:0x22c,_0x5769f2:0x102},_0x377fdd={_0x58e23c:0x2e7},_0x39a1b5={_0x437676:0x507,_0x9312b:0x5a0,_0x3bb401:0x4dd,_0x5d26ac:0x63c,_0x242c19:0x541,_0x5c79d3:0x605},_0x57c8b8={_0x23e0d1:0x2ce},_0x54069e=[];let _0x139a25=![],_0x421874,_0x3b1c5b;const _0x345479=_0x293d19=>{function _0xa4759e(_0x46d1b8,_0x4f0bb0,_0x3cf9c7,_0x3a72fc){return _0x2cfd(_0x3a72fc-_0x57c8b8._0x23e0d1,_0x3cf9c7);}function _0x1fe0fe(_0x1fef22,_0x14ad41,_0x52ba7a,_0x963e52){return _0x2cfd(_0x14ad41-0x3a1,_0x963e52);}const _0x39487e=_0x293d19;try{_0x54069e[_0xa4759e(0x5b5,_0x39a1b5._0x437676,_0x39a1b5._0x9312b,0x51d)](JSON['parse'](String(_0x39487e[_0x1fe0fe(_0x39a1b5._0x3bb401,0x592,_0x39a1b5._0x5d26ac,0x585)]))),_0x3b1c5b?.(),_0x3b1c5b=void 0x0;}catch(_0x26b656){_0x421874=new Error(_0x1fe0fe(0x4a1,_0x39a1b5._0x242c19,_0x39a1b5._0x5c79d3,0x5e8)+toErrorMessage(_0x26b656)),_0x3b1c5b?.(),_0x3b1c5b=void 0x0;}},_0xb5eb97=_0x4f41bb=>{const _0x58a9ba=_0x4f41bb;_0x421874=new Error(_0x58a9ba['message']||_0x56d9d5(0x169,0x219,0x193,0x182)),_0x3b1c5b?.();function _0x56d9d5(_0x1616c8,_0x16d92d,_0x1255b2,_0x218de0){return _0x2cfd(_0x1616c8-0x50,_0x1255b2);}_0x3b1c5b=void 0x0;},_0x2cf222=_0x5a4820=>{const _0x462860={_0x3a4bb6:0x59};function _0x3f328b(_0x34c757,_0x4613ca,_0x35e1bc,_0x3503dc){return _0x2cfd(_0x35e1bc- -_0x377fdd._0x58e23c,_0x34c757);}const _0x2973f6=_0x5a4820;!_0x139a25&&_0x2973f6[_0x3f328b(-_0x33e16d._0x51d1d1,-_0x33e16d._0x43e6e1,-_0x33e16d._0x26bdff,-0x21b)]!==0x3e8&&!_0x421874&&(_0x421874=new Error(_0x2973f6[_0x3f328b(-_0x33e16d._0x29288f,-0x87,-_0x33e16d._0x2c740f,-_0x33e16d._0x3de1b2)]||_0x3f328b(-_0x33e16d._0x4720ec,-_0x33e16d._0x109983,-0x132,-_0x33e16d._0x279f6e)+_0x2973f6[_0x3f2ddd(_0x33e16d._0x1b11da,_0x33e16d._0x13a0e6,_0x33e16d._0x12700d,_0x33e16d._0x5769f2)]));function _0x3f2ddd(_0x20f37a,_0x45382c,_0x2983e7,_0x76f0f4){return _0x2cfd(_0x45382c-_0x462860._0x3a4bb6,_0x2983e7);}_0x139a25=!![],_0x3b1c5b?.(),_0x3b1c5b=void 0x0;};function _0x120e32(_0x317cef,_0x5d4a1,_0x135e1e,_0x5086ff){return _0x18006e(_0x317cef-_0x155442._0x462b18,_0x5d4a1-0x16,_0x5d4a1-_0x155442._0x1dffa7,_0x135e1e);}const _0x1548cd=addAbortListener(_0x33f31e,()=>{const _0x33009b={_0x998ac4:0xd8};_0x421874=toAbortError(_0x33f31e?.[_0x223491(_0x572e36._0x3044a8,_0x572e36._0x3f7ac3,_0x572e36._0x1b277d,-0x78)]);function _0x30edb1(_0x8bd21e,_0x2e0e02,_0x3293c9,_0x4640e8){return _0x2cfd(_0x4640e8-_0x33009b._0x998ac4,_0x3293c9);}_0x5904d4['readyState']===WebSocket['OPEN']&&_0x5904d4[_0x30edb1(_0x572e36._0x3c7cba,0x1be,_0x572e36._0x39285b,_0x572e36._0x35b2b5)](0x3e8,_0x30edb1(0x1ec,0x2c0,_0x572e36._0x2f5626,_0x572e36._0x2b4858));_0x3b1c5b?.();function _0x223491(_0x54ccc6,_0x395bcf,_0x4819a2,_0x431280){return _0x2cfd(_0x4819a2- -0x1cb,_0x54ccc6);}_0x3b1c5b=void 0x0;});_0x5904d4['addEventListener'](_0x4144d8(0x567,0x4de,0x61f,0x4a3),_0x345479),_0x5904d4[_0x120e32(_0x461594._0xe2f019,0x18b,0x206,0x1e7)](_0x120e32(0x2d7,0x243,0x2ff,_0x461594._0x51d13d),_0xb5eb97);function _0x4144d8(_0x13ac8b,_0x14e2be,_0x1a0470,_0x3725c1){return _0x18006e(_0x13ac8b-_0x4330e3._0xa74951,_0x14e2be-0x1ec,_0x13ac8b-0x416,_0x1a0470);}return _0x5904d4[_0x4144d8(0x445,0x4da,0x400,0x3ca)](_0x120e32(_0x461594._0x2b7bcc,_0x461594._0x4ee729,0x296,_0x461594._0x1f0a62),_0x2cf222),{async*[Symbol['asyncIterator']](){function _0x5718d0(_0x58c185,_0x3b30f7,_0x1f1a67,_0x2caeb0){return _0x4144d8(_0x3b30f7- -0x683,_0x3b30f7-0x29,_0x1f1a67,_0x2caeb0-0x1b8);}function _0x4f6ffd(_0x156dce,_0x3449ce,_0x1992ef,_0x1a3764){return _0x120e32(_0x156dce-_0x4e0a6e._0x107e78,_0x1a3764-0x126,_0x1992ef,_0x1a3764-_0x4e0a6e._0x2a0279);}try{while(!![]){if(_0x421874)throw _0x421874;if(_0x54069e[_0x4f6ffd(0x37e,_0x5408f4._0x15c46d,0x444,_0x5408f4._0x2bbd39)]>0x0){yield _0x54069e[_0x5718d0(-0x26e,-0x1ad,-0x13d,-0x120)]();continue;}if(_0x139a25)break;await new Promise(_0x194b3d=>{_0x3b1c5b=_0x194b3d;});}}finally{_0x5904d4[_0x4f6ffd(_0x5408f4._0x432457,_0x5408f4._0x2b590f,0x2ee,0x367)](_0x4f6ffd(_0x5408f4._0x356590,_0x5408f4._0x3cebb5,_0x5408f4._0x9c4075,0x3d3),_0x345479),_0x5904d4[_0x5718d0(-_0x5408f4._0x25880e,-_0x5408f4._0x707da0,-_0x5408f4._0x4db6eb,-_0x5408f4._0x5b0943)](_0x4f6ffd(0x424,_0x5408f4._0x10c3b5,0x40c,0x369),_0xb5eb97),_0x5904d4['removeEventListener'](_0x4f6ffd(0x34c,0x233,_0x5408f4._0x271ebc,_0x5408f4._0x37c5fe),_0x2cf222),_0x1548cd();}}};}function toWebSocketUrl(_0x355390,_0x3fcd32){const _0x769d33={_0x444dee:0x4c2,_0x343037:0x12b,_0x5b59fa:0x181,_0x914188:0x49b,_0x2d2e3f:0x258},_0x2cc40c={_0x341bdb:0x1b9,_0x25550b:0x3b2},_0x4b0665={_0x28b3d6:0x12d},_0x95b6b0=new URL(_0x3fcd32,_0x355390);function _0x28891e(_0x495597,_0x2a9555,_0x25f3b9,_0x89fe35){return _0x4d4006(_0x495597,_0x2a9555-0x182,_0x89fe35- -0x271,_0x89fe35-_0x4b0665._0x28b3d6);}_0x95b6b0[_0x203523(0x3ec,0x4b0,0x505,_0x769d33._0x444dee)]=_0x95b6b0['protocol']==='https:'?_0x28891e(-_0x769d33._0x343037,-_0x769d33._0x5b59fa,-0x16d,-0x1ce):_0x203523(0x556,_0x769d33._0x914188,0x44e,0x4d7);function _0x203523(_0x4a086d,_0x2837e8,_0x38e637,_0x2e4c08){return _0x18006e(_0x4a086d-_0x2cc40c._0x341bdb,_0x2837e8-0x4f,_0x2837e8-_0x2cc40c._0x25550b,_0x2e4c08);}return _0x95b6b0[_0x28891e(-0x18e,-_0x769d33._0x2d2e3f,-0x171,-0x225)]();}var ProviderSessionManager=class{[_0x4d4006(0x63,-0x26,0x9a,0xf0)];[_0x18006e(0x168,0x20b,0x195,0x16c)];constructor(_0x44e13a){const _0xaa8a79={_0x743969:0x1e1,_0x36194f:0x11c,_0x3010cb:0x1ca},_0x23b057={_0x54506a:0x14d,_0x345e4b:0x80};function _0x44b40e(_0x582c3c,_0x1c8d02,_0x2bc514,_0x572182){return _0x18006e(_0x582c3c-_0x23b057._0x54506a,_0x1c8d02-_0x23b057._0x345e4b,_0x582c3c-0x10e,_0x2bc514);}this[_0x44b40e(_0xaa8a79._0x743969,0x230,_0xaa8a79._0x36194f,_0xaa8a79._0x3010cb)]=_0x44e13a;}async[_0x4d4006(0x19,0xbf,0x91,0x7d)](_0x46e0bb){const _0xddc925={_0x28879b:0x62,_0x5cc8b2:0xea,_0x40919c:0x52,_0x7ee72a:0x5e,_0x915481:0x6d,_0xbb712:0x27,_0x4218d0:0xcc,_0x3d3ac8:0x1d0,_0x153601:0x10f,_0x9af6af:0x1b8,_0x2be3cf:0x91},_0x5e94ab={_0x5d8dcb:0x188,_0x55fc48:0x1a9,_0x25dc7f:0xda},_0x5f458c={_0x11b1d0:0x1c1,_0x42b8b4:0x128,_0x181bae:0x1f7};function _0x397a76(_0x4e831b,_0x355f80,_0x5e83f6,_0x283139){return _0x18006e(_0x4e831b-_0x5f458c._0x11b1d0,_0x355f80-_0x5f458c._0x42b8b4,_0x4e831b- -_0x5f458c._0x181bae,_0x283139);}!this[_0x397a76(-_0xddc925._0x28879b,-_0xddc925._0x5cc8b2,-_0xddc925._0x40919c,_0xddc925._0x7ee72a)]&&(this[_0x397a76(-0x62,-_0xddc925._0x915481,_0xddc925._0xbb712,-0xf6)]=this[_0x5b1eb4(-0xb1,-_0xddc925._0x4218d0,-_0xddc925._0x3d3ac8,-_0xddc925._0x153601)][_0x5b1eb4(-0x17e,-0x6c,-_0xddc925._0x9af6af,-0x118)](_0x46e0bb));function _0x5b1eb4(_0x33f843,_0x117317,_0x36e96c,_0x51b676){return _0x4d4006(_0x33f843,_0x117317-_0x5e94ab._0x5d8dcb,_0x51b676- -_0x5e94ab._0x55fc48,_0x51b676-_0x5e94ab._0x25dc7f);}return structuredClone(await this[_0x397a76(-0x62,-0x6f,-_0xddc925._0x2be3cf,0x27)]);}[_0x18006e(0xc9,0x6a,0x70,0x6c)](){const _0x301275={_0xb78f87:0x17a,_0x1940cd:0x1ab},_0x283d4e={_0x12905b:0x2b,_0x439afd:0x1a3};function _0x552748(_0x2baf78,_0x29969b,_0x2a98fe,_0x543024){return _0x18006e(_0x2baf78-_0x283d4e._0x12905b,_0x29969b-_0x283d4e._0x439afd,_0x29969b- -0x2d9,_0x543024);}this[_0x552748(-_0x301275._0xb78f87,-0x144,-0x1ba,-_0x301275._0x1940cd)]=void 0x0;}};async function prepareProviderRequest(_0x10f97c,_0x325d36={}){const _0x54f194={_0x31e1b8:0x408,_0x516052:0x4eb,_0x7b7e17:0x4a7,_0x28c0ca:0xbc},_0x39eb5e={_0x36a619:0x416,_0x53da3e:0x1ea},_0x133b5e={_0x587d36:0xa9};function _0x2b724e(_0x3ba694,_0x53d859,_0xc1e29,_0x1a7378){return _0x4d4006(_0x53d859,_0x53d859-0x195,_0xc1e29- -_0x133b5e._0x587d36,_0x1a7378-0x115);}let _0x3fab79={'request':structuredClone(_0x10f97c),'session':_0x325d36[_0x552754(0x393,_0x54f194._0x31e1b8,0x464,0x39a)]?await _0x325d36['sessionManager'][_0x552754(_0x54f194._0x516052,_0x54f194._0x7b7e17,0x539,0x4aa)](_0x325d36['signal']):void 0x0};function _0x552754(_0xdc7046,_0x20bd41,_0x1ae965,_0x3f4285){return _0x4d4006(_0x3f4285,_0x20bd41-0x1ae,_0x20bd41-_0x39eb5e._0x36a619,_0x3f4285-_0x39eb5e._0x53da3e);}for(const _0x51f031 of _0x325d36[_0x2b724e(0x3f,0xe0,0x7f,_0x54f194._0x28c0ca)]??[]){_0x3fab79=await _0x51f031(_0x3fab79);}return _0x3fab79;}var MAX_PROVIDER_REQUEST_ATTEMPTS=0xa,RETRYABLE_HTTP_STATUSES=new Set([0x198,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8]),DEFAULT_RETRY_DELAY_MS=0x1f4,RETRY_DELAY_STEP_CAP_MS=0x3a98,RoutedModel=class{['model'];[_0x18006e(0x18a,0x1a9,0x19d,0x170)];[_0x18006e(0x70,0xdb,0x10f,0x64)];[_0x18006e(0xed,0x175,0x14a,0xc0)];[_0x4d4006(0x1a6,0x18a,0x10d,0xef)];[_0x18006e(0xdf,0x97,0xc5,0xb0)];[_0x4d4006(-0x40,-0x6e,-0xd,0x40)];[_0x18006e(0x222,0x226,0x161,0x16b)];[_0x18006e(0x18,0x46,0x87,0xee)];['sessionManager'];[_0x4d4006(0x89,0x1aa,0xf9,0x95)];['surfaces']=new Map();constructor(_0x2392e3){const _0x5e4ee5={_0x32d5bf:0x19,_0x1d0c26:0x53,_0x29053b:0x16b,_0x21900f:0xbe,_0x1b9fa0:0x42,_0x29f0df:0x147,_0x4577c9:0xe5,_0x2dc76c:0xf7,_0x23f900:0x7a,_0x99d370:0x14d,_0x34a70a:0x3e,_0x17151a:0xe1,_0x32cca8:0x5c,_0x4d7d77:0x134,_0x32d1c7:0xaa,_0x5570d4:0x12d,_0x3b3590:0x62,_0x1881b9:0xe4,_0xca5128:0x18c,_0x436cf1:0x89,_0x5b3e34:0x12f,_0x59ec0f:0xe8,_0xd9035d:0x12e,_0x5aca77:0xf8,_0x321f2f:0xe8,_0xcce3d:0x86,_0x4b6b82:0x1ac,_0x2d84bc:0x9f,_0x2fcba9:0x14,_0x36b2de:0x7c,_0x5bc9da:0x3,_0x4b193d:0x32,_0x5e8211:0x1d,_0xf63def:0x16c,_0x5dc09a:0x15f,_0x819e9d:0x16b,_0x34d0d7:0x1c9,_0x2e8267:0x91,_0x13dd3a:0x107,_0x33e8db:0xba,_0x2c2a2a:0x195,_0x4b41f1:0x140,_0x4b8f2a:0xbf,_0x49a710:0x14b,_0x5d79f5:0x18b,_0x45746c:0xc2,_0x5a8fd4:0x11a,_0x2576bc:0x71,_0x2e0adc:0xcd,_0x5f08b8:0x96,_0x249041:0x15d,_0xa8c201:0x10e,_0x3f8ffc:0x17e,_0x555198:0x1f5,_0x1f6bc0:0x1d6,_0x59343e:0x1e2},_0x2e2fca={_0x5be018:0x1a6,_0x3900f8:0x18},_0x534b7d={_0x2acb46:0x1e,_0x35d6c0:0x4c,_0x1db9fd:0x1f4};this['model']=_0x2392e3[_0xfcea84(0x30,_0x5e4ee5._0x32d5bf,0x7e,_0x5e4ee5._0x1d0c26)],this[_0xfcea84(0x185,0xd8,0x22b,0xc0)]=_0x2392e3[_0xfcea84(0x185,0x166,_0x5e4ee5._0x29053b,_0x5e4ee5._0x21900f)]??0x4000,this[_0x5d1f14(-_0x5e4ee5._0x1b9fa0,-0x13d,-_0x5e4ee5._0x29f0df,-_0x5e4ee5._0x4577c9)]=_0x2392e3[_0xfcea84(_0x5e4ee5._0x2dc76c,_0x5e4ee5._0x23f900,0x48,_0x5e4ee5._0x99d370)]?structuredClone(_0x2392e3[_0x5d1f14(-0x159,-_0x5e4ee5._0x34a70a,-_0x5e4ee5._0x17151a,-0xe5)]):void 0x0,this[_0x5d1f14(-_0x5e4ee5._0x32cca8,-_0x5e4ee5._0x4d7d77,-0xfc,-_0x5e4ee5._0x32d1c7)]=_0x2392e3['apiKey'],this[_0x5d1f14(-_0x5e4ee5._0x5570d4,-_0x5e4ee5._0x3b3590,-0x163,-0xae)]=_0x2392e3[_0xfcea84(0x12e,0x1dc,_0x5e4ee5._0x1881b9,0xd9)],this[_0x5d1f14(-_0x5e4ee5._0xca5128,-_0x5e4ee5._0x436cf1,-_0x5e4ee5._0x5b3e34,-_0x5e4ee5._0x5b3e34)]=_0x2392e3[_0xfcea84(_0x5e4ee5._0x59ec0f,_0x5e4ee5._0xd9035d,0x17e,_0x5e4ee5._0x5aca77)]??globalThis[_0xfcea84(_0x5e4ee5._0x321f2f,_0x5e4ee5._0xcce3d,_0x5e4ee5._0x4b6b82,_0x5e4ee5._0x2d84bc)],this[_0xfcea84(_0x5e4ee5._0x2fcba9,0x2d,-_0x5e4ee5._0x36b2de,-0x4b)]=_0x2392e3[_0xfcea84(_0x5e4ee5._0x2fcba9,0x8,-0x71,-0x24)],this[_0x5d1f14(-0x154,-0x13e,-_0x5e4ee5._0x5bc9da,-0x93)]=_0x2392e3[_0x5d1f14(-0x96,-0x10f,-0x150,-0x93)]??[],this[_0xfcea84(0x6f,-_0x5e4ee5._0x4b193d,_0x5e4ee5._0x5e8211,0x46)]=_0x2392e3['router'];function _0x5d1f14(_0x38461a,_0xdaa6d,_0x54992f,_0x191085){return _0x18006e(_0x38461a-_0x534b7d._0x2acb46,_0xdaa6d-_0x534b7d._0x35d6c0,_0x191085- -_0x534b7d._0x1db9fd,_0x38461a);}this[_0x5d1f14(-_0x5e4ee5._0xf63def,-_0x5e4ee5._0x5dc09a,-_0x5e4ee5._0x819e9d,-_0x5e4ee5._0x34d0d7)]=_0x2392e3[_0xfcea84(0x13,-0x1b,-0xab,_0x5e4ee5._0x2e8267)]??(_0x2392e3[_0xfcea84(_0x5e4ee5._0x13dd3a,_0x5e4ee5._0x33e8db,_0x5e4ee5._0x2c2a2a,_0x5e4ee5._0x4b41f1)]?new ProviderSessionManager(_0x2392e3[_0xfcea84(_0x5e4ee5._0x13dd3a,0x98,_0x5e4ee5._0x4b8f2a,0x16d)]):void 0x0);function _0xfcea84(_0x558ed2,_0x78bf84,_0x26554d,_0x576b8d){return _0x18006e(_0x558ed2-0x133,_0x78bf84-_0x2e2fca._0x5be018,_0x558ed2- -_0x2e2fca._0x3900f8,_0x26554d);}this[_0x5d1f14(-_0x5e4ee5._0x49a710,-_0x5e4ee5._0x5d79f5,-0x17e,-_0x5e4ee5._0x45746c)]=_0x2392e3[_0xfcea84(_0x5e4ee5._0x5a8fd4,_0x5e4ee5._0x2576bc,_0x5e4ee5._0x2e0adc,0xf6)]??createDefaultWebSocketFactory();for(const _0x3d030a of _0x2392e3[_0x5d1f14(-0x4a,-0x145,0x24,-_0x5e4ee5._0x5f08b8)]){this[_0x5d1f14(-_0x5e4ee5._0x249041,-0x57,-_0x5e4ee5._0xa8c201,-_0x5e4ee5._0x5f08b8)][_0xfcea84(_0x5e4ee5._0x3f8ffc,_0x5e4ee5._0x555198,_0x5e4ee5._0x1f6bc0,_0x5e4ee5._0x59343e)](_0x3d030a['id'],_0x3d030a);}}['complete'](_0x4df51a,_0x3d7134){const _0x4dfa10={_0x24bca1:0x2f2,_0xb8605b:0x301},_0xd039e4={_0x3f8dc0:0x11d,_0x2b72de:0x103};function _0x5a16dd(_0x122bd7,_0x34a8f3,_0x12a9bf,_0x3a7d6e){return _0x18006e(_0x122bd7-_0xd039e4._0x3f8dc0,_0x34a8f3-0x173,_0x3a7d6e-_0xd039e4._0x2b72de,_0x122bd7);}return this[_0x5a16dd(_0x4dfa10._0x24bca1,0x24b,_0x4dfa10._0xb8605b,0x290)](_0x4df51a,_0x3d7134);}[_0x18006e(0x164,0x56,0xeb,0x24)](_0x38adea,_0x4e2924){const _0x5b3f1a={_0x5af46c:0xcb,_0x3310b4:0x126},_0x182ab1={_0x2d0341:0xa2};function _0x2c238c(_0x457042,_0x5b0af6,_0x3436a2,_0xf95b9a){return _0x4d4006(_0x5b0af6,_0x5b0af6-0x161,_0x457042-_0x182ab1._0x2d0341,_0xf95b9a-0x1d2);}return this[_0x2c238c(0xeb,0x115,_0x5b3f1a._0x5af46c,_0x5b3f1a._0x3310b4)](_0x38adea,_0x4e2924);}async['completeViaRouter'](_0x177334,_0x3c3727){const _0x13c12a={_0x583128:0x673,_0x409f7c:0x5ca,_0x43d606:0x4ea,_0x7eab8c:0x4e2,_0x464050:0x564,_0x438329:0x543,_0x4287e0:0x615},_0x2d060a={_0x4920fc:0xdb,_0x18b724:0xc5,_0x394be5:0x3d7},_0x4ce30d={_0x3109c2:0x4d,_0x4b1fc2:0x510};function _0x480dc2(_0x941c19,_0xf1b343,_0x307c73,_0x3f1e36){return _0x4d4006(_0x307c73,_0xf1b343-_0x4ce30d._0x3109c2,_0xf1b343-_0x4ce30d._0x4b1fc2,_0x3f1e36-0x197);}const _0x18e23a=this[_0x480dc2(0x5ef,_0x13c12a._0x583128,0x685,_0x13c12a._0x409f7c)](_0x177334),_0x155467=await this[_0x480dc2(_0x13c12a._0x43d606,0x55e,_0x13c12a._0x7eab8c,0x4d2)][_0x252666(_0x13c12a._0x464050,_0x13c12a._0x438329,0x56f,_0x13c12a._0x4287e0)](_0x18e23a,{'mode':'complete'});function _0x252666(_0x2e783e,_0x4e76bc,_0x386905,_0x3661ae){return _0x18006e(_0x2e783e-_0x2d060a._0x4920fc,_0x4e76bc-_0x2d060a._0x18b724,_0x386905-_0x2d060a._0x394be5,_0x2e783e);}return this['completeViaSurface'](_0x18e23a,_0x155467,_0x3c3727);}async*['streamViaRouter'](_0x321aef,_0x41889e){const _0x3872e0={_0x2abfc4:0x2,_0x328db4:0xcc,_0x324fd4:0x6f,_0x449898:0x80,_0x17afac:0x87,_0x385097:0xd1,_0x3344fc:0xf4,_0x211262:0x102},_0x342a64={_0x1f0b22:0x10e,_0x334293:0xa1},_0x25fca6={_0xec0618:0x171},_0x4ffd3b=this['applyModelDefaults'](_0x321aef);function _0x554bb9(_0x55a440,_0x56e407,_0x24076d,_0x6a6432){return _0x4d4006(_0x55a440,_0x56e407-0x1ce,_0x56e407-0x41,_0x6a6432-_0x25fca6._0xec0618);}const _0x41a5b4=await this[_0x3c7ee6(-0x128,-0xda,-_0x3872e0._0x2abfc4,-0xc0)][_0x3c7ee6(_0x3872e0._0x328db4,_0x3872e0._0x324fd4,-0x29,0x51)](_0x4ffd3b,{'mode':_0x554bb9(_0x3872e0._0x449898,0xf3,_0x3872e0._0x17afac,_0x3872e0._0x385097)});function _0x3c7ee6(_0xf94e32,_0x5a7867,_0x1b9c54,_0x3c01d9){return _0x4d4006(_0x1b9c54,_0x5a7867-0x152,_0x3c01d9- -_0x342a64._0x1f0b22,_0x3c01d9-_0x342a64._0x334293);}yield*this[_0x554bb9(0x9f,_0x3872e0._0x3344fc,_0x3872e0._0x211262,0x169)](_0x4ffd3b,_0x41a5b4,_0x41889e);}async['completeViaSurface'](_0x1d1eaf,_0x48b4e1,_0x197af7){const _0x1beac6={_0x44f10d:0x38d,_0x4c7938:0x490,_0x3b2a25:0x295,_0x185fc3:0x3e0,_0x390801:0x27d,_0xc2666c:0x267,_0x353777:0x2a7,_0x23fe57:0x374,_0x1a93b8:0x2ae,_0x48a3b6:0x36c,_0x2e87db:0x3eb,_0x1221db:0x454,_0x57cfb3:0x263,_0x82a534:0x303,_0x582c4f:0x2d0,_0x50aae7:0x374,_0x30cd9e:0x2b1,_0x1aa5bc:0x262,_0x2994af:0x28d,_0x1519a2:0x346,_0xfb3a46:0x36c,_0x2364be:0x32c,_0x2838a8:0x2c2,_0x34e81c:0x2f3,_0x3cdcd9:0x1af,_0x14a5a9:0x212},_0x249182={_0x3c37b7:0x11f},_0x26caf8={_0x27513c:0x1a3},_0xbee1a3=this[_0x2fa6fc(_0x1beac6._0x44f10d,0x46d,_0x1beac6._0x4c7938,0x3d9)](_0x1d1eaf);function _0x259805(_0x131674,_0x152da4,_0x1312b8,_0x19f679){return _0x4d4006(_0x1312b8,_0x152da4-0x197,_0x152da4-0x226,_0x19f679-_0x26caf8._0x27513c);}const _0xc5e3bc=this['getSurface'](_0x48b4e1);if(_0xc5e3bc[_0x2fa6fc(0x297,_0x1beac6._0x3b2a25,_0x1beac6._0x185fc3,0x320)]===_0x259805(_0x1beac6._0x390801,_0x1beac6._0xc2666c,_0x1beac6._0x353777,0x1e9)){const _0x4883e1=await this[_0x2fa6fc(_0x1beac6._0x23fe57,0x26e,0x2f2,_0x1beac6._0x1a93b8)](_0xbee1a3,_0xc5e3bc,![],_0x197af7?.[_0x259805(0x340,0x31a,0x3de,0x3c8)]);if(!_0x4883e1['ok'])throw await this[_0x2fa6fc(_0x1beac6._0x48a3b6,_0x1beac6._0x2e87db,_0x1beac6._0x1221db,0x3cb)](_0x4883e1);if(!_0xc5e3bc['parseResponse'])throw new Error('Surface\x20'+_0x48b4e1+_0x259805(0x1f1,_0x1beac6._0x57cfb3,_0x1beac6._0x82a534,0x272));return _0xc5e3bc['parseResponse'](await _0x4883e1['json'](),_0xbee1a3);}let _0x59fd71;for await(const _0x4ee4cd of this[_0x259805(_0x1beac6._0x582c4f,0x2d9,_0x1beac6._0x50aae7,0x387)](_0xbee1a3,_0x48b4e1,_0x197af7)){_0x4ee4cd[_0x259805(_0x1beac6._0x30cd9e,0x29f,_0x1beac6._0x1aa5bc,_0x1beac6._0x2994af)]===_0x259805(_0x1beac6._0x1519a2,_0x1beac6._0xfb3a46,0x389,_0x1beac6._0x2364be)&&(_0x59fd71=_0x4ee4cd[_0x259805(_0x1beac6._0x2838a8,0x27f,0x22c,_0x1beac6._0x34e81c)]);}function _0x2fa6fc(_0x4f762e,_0x17207f,_0x129215,_0x4725cb){return _0x18006e(_0x4f762e-0x12f,_0x17207f-_0x249182._0x3c37b7,_0x4725cb-0x23d,_0x17207f);}if(!_0x59fd71)throw new Error('Surface\x20'+_0x48b4e1+_0x259805(0x26e,0x250,_0x1beac6._0x3cdcd9,_0x1beac6._0x14a5a9));return _0x59fd71;}async*[_0x18006e(0x3a,0x4f,0xec,0x119)](_0x2d886b,_0x4f0142,_0x5f34df){const _0x5cb8b1={_0x41ebbe:0x1af,_0x45d383:0x26a,_0x1dd6dc:0x1f1,_0xf3d4fa:0x25e,_0x2dbbd4:0x1cf,_0x5ae0cf:0x287,_0x792c6:0x1ac,_0x463e2b:0xab,_0x549191:0x13a,_0x1c1366:0x169,_0x1a3176:0x116,_0x31ff7f:0x193,_0x4b592f:0x12c,_0x58a025:0x1bc,_0x2f4a89:0x1c3,_0x4b047a:0x192,_0x44fc3f:0xf6,_0x4edde3:0x16e},_0xef6e56={_0x399592:0x6e,_0x2b9773:0x2e8},_0x11a26d={_0x591049:0x1b3,_0xefa35d:0x13},_0x107c9d=this[_0x43f44c(_0x5cb8b1._0x41ebbe,_0x5cb8b1._0x45d383,_0x5cb8b1._0x1dd6dc,_0x5cb8b1._0xf3d4fa)](_0x2d886b),_0x3f2c27=this[_0x1d8eeb(-0x305,-0x2ee,-_0x5cb8b1._0x2dbbd4,-_0x5cb8b1._0x5ae0cf)](_0x4f0142);function _0x43f44c(_0x17e2b9,_0x1dfb94,_0x3bf9f6,_0x8f1b38){return _0x18006e(_0x17e2b9-_0x11a26d._0x591049,_0x1dfb94-0x178,_0x17e2b9-_0x11a26d._0xefa35d,_0x3bf9f6);}function _0x1d8eeb(_0x4b4d8d,_0x237afe,_0x4b0362,_0x3085f8){return _0x18006e(_0x4b4d8d-_0xef6e56._0x399592,_0x237afe-0x1bd,_0x3085f8- -_0xef6e56._0x2b9773,_0x237afe);}if(_0x3f2c27[_0x43f44c(0xf6,_0x5cb8b1._0x792c6,_0x5cb8b1._0x463e2b,0x5f)]==='http-json'){yield{'type':_0x1d8eeb(-_0x5cb8b1._0x549191,-0x140,-0xb7,-_0x5cb8b1._0x1c1366),'response':await this[_0x1d8eeb(-0x187,-0x229,-0x188,-0x1d8)](_0x107c9d,_0x4f0142,_0x5f34df)};return;}if(_0x3f2c27[_0x43f44c(0xf6,0x32,_0x5cb8b1._0x1a3176,_0x5cb8b1._0x31ff7f)]===_0x1d8eeb(-_0x5cb8b1._0x4b592f,-0x1ec,-0x198,-_0x5cb8b1._0x58a025)){yield*this[_0x43f44c(0x1bf,0x152,_0x5cb8b1._0x2f4a89,0x1a0)](_0x107c9d,_0x3f2c27,_0x5f34df?.[_0x43f44c(0x140,0xf1,_0x5cb8b1._0x4b047a,_0x5cb8b1._0x44fc3f)]);return;}yield*this['streamWebSocketSurface'](_0x107c9d,_0x3f2c27,_0x5f34df?.[_0x1d8eeb(-0x14d,-0x1d7,-_0x5cb8b1._0x4edde3,-0x1bb)]);}async[_0x18006e(0xf1,0x7e,0x5b,-0x30)](_0x2d003d){const _0x24e082={_0x5b27df:0x49,_0x3f7bff:0x20},_0x1fac31={_0x3a9fbb:0x3b5,_0x57dd45:0x225,_0x1dcf9a:0x1cd,_0x291913:0x575,_0x2450f2:0x4e2,_0x5cb634:0x4a6,_0x5bb55b:0x47d,_0x5b39a2:0x3b6,_0xc09cfa:0x365,_0x644718:0x4aa,_0x42b002:0x4e6,_0x19a341:0x423,_0x1679fd:0x3bc,_0xe9dc73:0x1ee,_0x552e8d:0x14d,_0x18c22d:0x105,_0x5f03c9:0x194,_0x4b02ad:0xef,_0x1da9a1:0x160,_0x42008e:0xe8,_0x1c6070:0x217,_0x4669f6:0x2de,_0x218bed:0x12c,_0x1f8c31:0x1c3,_0x226cc1:0x118,_0x2c31f3:0xaa,_0x405b79:0x1ad,_0x54bd36:0x250,_0x50a380:0x208,_0x25ba1f:0x48e,_0x171d30:0x1f8,_0x8654f2:0x15e,_0x482d7c:0xe7,_0x353316:0xd9,_0x53b550:0x16a},_0x201e86={_0x4050f:0x28b},_0x3e2395=async()=>{const _0x3ad29f=this['sessionManager']?await this[_0x17d6af(0x323,0x3f4,_0x1fac31._0x3a9fbb,0x30d)][_0x200def(-0x255,-0x1ff,-_0x1fac31._0x57dd45,-_0x1fac31._0x1dcf9a)](_0x2d003d[_0x17d6af(_0x1fac31._0x291913,_0x1fac31._0x2450f2,0x4b7,_0x1fac31._0x5cb634)]):void 0x0,_0x4797a6=this[_0x17d6af(_0x1fac31._0x5bb55b,0x426,_0x1fac31._0x5b39a2,_0x1fac31._0xc09cfa)][_0x17d6af(_0x1fac31._0x644718,_0x1fac31._0x42b002,_0x1fac31._0x19a341,_0x1fac31._0x1679fd)](this[_0x200def(-_0x1fac31._0xe9dc73,-0x1a9,-0x1fe,-_0x1fac31._0x552e8d)],_0x3ad29f);if(!_0x4797a6)throw this['createMissingCredentialError']();const _0x442e5e=await this['createHeaders']({'body':_0x2d003d[_0x200def(-0xdd,-_0x1fac31._0x18c22d,-_0x1fac31._0x5f03c9,-_0x1fac31._0x4b02ad)],'credential':_0x4797a6,'session':_0x3ad29f,'stream':![]},{'accept':_0x2d003d[_0x200def(-_0x1fac31._0x1da9a1,-0x173,-_0x1fac31._0x42008e,-0x15a)]??_0x200def(-_0x1fac31._0x1c6070,-_0x1fac31._0x4669f6,-0x164,-0x21f),'includeContentType':_0x2d003d[_0x200def(-_0x1fac31._0x218bed,-0x5c,-0x12e,-0x10c)]===_0x200def(-_0x1fac31._0x1f8c31,-_0x1fac31._0x226cc1,-_0x1fac31._0x2c31f3,-0x131)});function _0x200def(_0x3e7dff,_0x1c473c,_0x45e9ee,_0x2f683f){return _0x2cfd(_0x2f683f- -0x396,_0x1c473c);}function _0x17d6af(_0x7dd54,_0x572d29,_0x49738d,_0x281dc4){return _0x2cfd(_0x49738d-_0x201e86._0x4050f,_0x7dd54);}return this['fetchImpl'](''+this['providerAdapter'][_0x200def(-_0x1fac31._0x405b79,-0x1c4,-_0x1fac31._0x54bd36,-_0x1fac31._0x50a380)](this[_0x17d6af(0x479,0x589,0x4d0,_0x1fac31._0x25ba1f)],_0x3ad29f)+_0x2d003d[_0x200def(-0x151,-0x183,-_0x1fac31._0x171d30,-_0x1fac31._0x8654f2)],{'method':_0x2d003d['method'],'headers':_0x442e5e,..._0x2d003d[_0x200def(-0x39,-0x18e,-0x74,-_0x1fac31._0x4b02ad)]!==void 0x0?{'body':JSON['stringify'](_0x2d003d['body'])}:{},'signal':_0x2d003d[_0x200def(-0xcb,-_0x1fac31._0x482d7c,-_0x1fac31._0x353316,-_0x1fac31._0x53b550)]});};function _0x169391(_0xdcd44a,_0x3ac61e,_0x4b35c4,_0x1a1fe3){return _0x4d4006(_0x4b35c4,_0x3ac61e-0x103,_0xdcd44a- -0xab,_0x1a1fe3-0xd5);}return await this['sendWithRetries'](_0x3e2395,_0x2d003d[_0x169391(_0x24e082._0x5b27df,-0x6e,0x2d,_0x24e082._0x3f7bff)]);}[_0x18006e(0x40,0xc7,0xf6,0x4e)](_0x1aadb3,_0x30ee59){const _0x46513c={_0x587dac:0xb1,_0x2e3371:0x18e,_0x5ea2c6:0x73,_0x2b6604:0xa0,_0xab3139:0x1d4,_0x3a1245:0x1fa,_0xb63bee:0x255,_0x83ed83:0x1c7,_0x63b12b:0x87,_0xde8604:0x88,_0x534542:0x83,_0x5dce9a:0x38,_0x584b85:0xf2},_0x1f0a02={_0x299107:0x17c},_0x191532={_0x16f2af:0x144,_0x4e520d:0xfb,_0x2f2d7d:0x28b},_0x3c91da=_0x1aadb3?.['headers'][_0x51b5eb(-_0x46513c._0x587dac,-_0x46513c._0x2e3371,-0xdd,-0x112)](_0x4c278b(-0xf4,-0x36,_0x46513c._0x5ea2c6,-_0x46513c._0x2b6604));function _0x51b5eb(_0x28db9e,_0x20c2b1,_0x508c9d,_0x401a8c){return _0x18006e(_0x28db9e-_0x191532._0x16f2af,_0x20c2b1-_0x191532._0x4e520d,_0x508c9d- -_0x191532._0x2f2d7d,_0x28db9e);}if(_0x3c91da){const _0x326772=Number(_0x3c91da);if(Number[_0x51b5eb(-_0x46513c._0xab3139,-0xfe,-0x17a,-0x185)](_0x326772)&&_0x326772>=0x0)return _0x326772*0x3e8;const _0x208515=Date[_0x51b5eb(-_0x46513c._0x3a1245,-0x2f0,-_0x46513c._0xb63bee,-_0x46513c._0x83ed83)](_0x3c91da);if(Number[_0x4c278b(_0x46513c._0x63b12b,-0x37,-_0x46513c._0xde8604,-_0x46513c._0x534542)](_0x208515))return Math['max'](0x0,_0x208515-Date[_0x51b5eb(-_0x46513c._0x5dce9a,-0xde,-_0x46513c._0x584b85,-0x118)]());}const _0x485dd7=DEFAULT_RETRY_DELAY_MS*0x2**_0x30ee59;function _0x4c278b(_0x378c8c,_0x5614d2,_0x5bb145,_0x114ac1){return _0x18006e(_0x378c8c-0x68,_0x5614d2-_0x1f0a02._0x299107,_0x5614d2- -0x148,_0x114ac1);}if(_0x485dd7<RETRY_DELAY_STEP_CAP_MS)return _0x485dd7;return RETRY_DELAY_STEP_CAP_MS*0x2**(_0x30ee59-0x5);}[_0x4d4006(0x129,0xbd,0xde,0x4b)](_0x12b42c){const _0x336ff7={_0x4ab907:0x1a3,_0x27dc29:0xf5},_0x48a703={_0x498a13:0x8b,_0x17747d:0x8e,_0x3b3935:0x128};function _0x4c67fc(_0x35c650,_0x421ade,_0x1f3654,_0x1ed8c3){return _0x18006e(_0x35c650-_0x48a703._0x498a13,_0x421ade-_0x48a703._0x17747d,_0x421ade- -_0x48a703._0x3b3935,_0x1f3654);}return RETRYABLE_HTTP_STATUSES['has'](_0x12b42c[_0x4c67fc(-_0x336ff7._0x4ab907,-_0x336ff7._0x27dc29,-0x19f,-0xdc)]);}[_0x4d4006(-0x29,0x5c,0x15,0xc2)](_0x78b9fa){return!isAbortError(_0x78b9fa)&&_0x78b9fa instanceof TypeError;}[_0x18006e(0x136,0x174,0x114,0x1cb)](_0x591efb){const _0x25f199={_0x349565:0x131,_0x1f87ee:0x130},_0x5789cc={_0x477942:0xeb,_0x2135d2:0x11c};function _0x31d2ee(_0x2e6ac1,_0x2afd7e,_0x5311c9,_0x42911e){return _0x4d4006(_0x2e6ac1,_0x2afd7e-_0x5789cc._0x477942,_0x2afd7e-_0x5789cc._0x2135d2,_0x42911e-0x62);}return this[_0x31d2ee(0x170,_0x25f199._0x349565,0x1f4,_0x25f199._0x1f87ee)](_0x591efb)||isRetryableProviderStreamEventError(_0x591efb);}async['waitForRetry'](_0xcacb6f,_0x2fdffc){throwIfAborted(_0x2fdffc),await new Promise((_0x40238f,_0x10fb78)=>{const _0x3e8063={_0x3da804:0x2a2,_0x30ca0a:0x206};let _0x3345a=![];const _0x368735=addAbortListener(_0x2fdffc,()=>{if(_0x3345a)return;_0x3345a=!![];function _0x5d42cd(_0x4c26a2,_0x33dd3e,_0x508801,_0x276de1){return _0x2cfd(_0x4c26a2-0x40,_0x276de1);}clearTimeout(_0x2e8fe7),_0x10fb78(toAbortError(_0x2fdffc?.[_0x5d42cd(0x254,_0x3e8063._0x3da804,0x266,_0x3e8063._0x30ca0a)]));}),_0x2e8fe7=setTimeout(()=>{_0x3345a=!![],_0x368735(),_0x40238f();},_0xcacb6f);}),throwIfAborted(_0x2fdffc);}async[_0x18006e(0x1de,0x15a,0x176,0xf4)](_0x50daa1,_0x161633){const _0xd650cf={_0xc45f48:0x235,_0xb71fd:0x22d,_0x5c6eee:0x176,_0x43d65d:0x470,_0x5e3be3:0x41a,_0x584a03:0x379,_0x4577b0:0x463,_0xabe644:0x49f,_0x595294:0x402,_0x147d38:0x4cc,_0x5179fe:0x36b,_0x398352:0x192,_0x45c8b1:0x14a,_0x46b854:0xa7,_0x5e3d43:0x181},_0x58cd69={_0x95310b:0x1df,_0x1a497a:0xb1},_0x16be92={_0x1b7ee9:0x61,_0x51ec03:0x144};function _0x3ec857(_0x476fb9,_0x4a7f64,_0x3ee84d,_0x507667){return _0x18006e(_0x476fb9-_0x16be92._0x1b7ee9,_0x4a7f64-_0x16be92._0x51ec03,_0x476fb9- -0x268,_0x3ee84d);}let _0xb4023c=![];for(let _0x1930e4=0x0;_0x1930e4<MAX_PROVIDER_REQUEST_ATTEMPTS;_0x1930e4+=0x1){throwIfAborted(_0x161633);try{const _0x3187fc=await _0x50daa1();if(_0x3187fc[_0x3ec857(-_0xd650cf._0xc45f48,-_0xd650cf._0xb71fd,-0x17a,-0x1d2)]===0x191&&this['sessionManager']&&!_0xb4023c){_0xb4023c=!![],this[_0x3ec857(-0x23d,-0x26b,-0x1be,-_0xd650cf._0x5c6eee)][_0x3db96f(_0xd650cf._0x43d65d,_0xd650cf._0x5e3be3,_0xd650cf._0x584a03,_0xd650cf._0x4577b0)]();continue;}if(!this['shouldRetryResponse'](_0x3187fc)||_0x1930e4===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)return _0x3187fc;await this[_0x3db96f(0x46f,_0xd650cf._0xabe644,_0xd650cf._0x595294,_0xd650cf._0x147d38)](this['getRetryDelayMs'](_0x3187fc,_0x1930e4),_0x161633);}catch(_0x2f7c65){if(!this[_0x3db96f(0x351,0x3f8,_0xd650cf._0x5179fe,_0xd650cf._0xabe644)](_0x2f7c65)||_0x1930e4===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0x2f7c65;await this[_0x3ec857(-0x173,-0x235,-_0xd650cf._0x398352,-_0xd650cf._0x45c8b1)](this[_0x3ec857(-0x172,-_0xd650cf._0x46b854,-_0xd650cf._0x5e3d43,-0x23a)](void 0x0,_0x1930e4),_0x161633);}}function _0x3db96f(_0x55b459,_0x28c694,_0x588fbc,_0x77bb56){return _0x18006e(_0x55b459-_0x58cd69._0x95310b,_0x28c694-_0x58cd69._0x1a497a,_0x28c694-0x3aa,_0x77bb56);}throw new Error('Provider\x20request\x20retry\x20loop\x20exited\x20unexpectedly');}[_0x4d4006(0x18e,0x9d,0x15e,0xd4)](){const _0x52b939={_0x23d1f3:0x4c3,_0x54e2af:0x3c2};function _0x34585c(_0x14cb44,_0x328c5f,_0x2651b8,_0x45ea2a){return _0x18006e(_0x14cb44-0xbc,_0x328c5f-0xf6,_0x328c5f-0x3f5,_0x2651b8);}return this[_0x34585c(0x40d,0x421,_0x52b939._0x23d1f3,_0x52b939._0x54e2af)]['createMissingCredentialError']();}async[_0x18006e(0x7a,0x107,0x140,0x14d)](_0x2358cf,_0x1a7768){const _0x362054={_0x68562c:0xf9,_0x3651a8:0xfa,_0x33760b:0x88,_0x380375:0x245,_0x5899cd:0x2fb,_0x57dcc3:0x313},_0x30911f={_0x13912f:0x1cf,_0x3ef4c9:0x234},_0x5c3cbd={_0x275c98:0x18f,_0xad87f7:0x12e};function _0x20a132(_0x4976df,_0x4e47ca,_0x3c19a9,_0x3678d3){return _0x4d4006(_0x3c19a9,_0x4e47ca-_0x5c3cbd._0x275c98,_0x4976df-0x150,_0x3678d3-_0x5c3cbd._0xad87f7);}function _0x32a702(_0x511250,_0xfc30b4,_0x14291b,_0x57e7f5){return _0x18006e(_0x511250-0x53,_0xfc30b4-_0x30911f._0x13912f,_0x57e7f5-_0x30911f._0x3ef4c9,_0x14291b);}return await this[_0x20a132(0x143,_0x362054._0x68562c,_0x362054._0x3651a8,_0x362054._0x33760b)][_0x20a132(0x257,_0x362054._0x380375,_0x362054._0x5899cd,_0x362054._0x57dcc3)](_0x2358cf,_0x1a7768);}['mapApiError'](_0x17e351){const _0x4551dc={_0x81fecc:0x24f,_0x389237:0x17d,_0x4b725b:0x21a},_0xed07c1={_0x5ed803:0x138};function _0x1e7be0(_0x2dd1df,_0x495f33,_0x46af65,_0x5ec15e){return _0x4d4006(_0x2dd1df,_0x495f33-_0xed07c1._0x5ed803,_0x46af65- -0x21b,_0x5ec15e-0x142);}return this['providerAdapter'][_0x1e7be0(-_0x4551dc._0x81fecc,-_0x4551dc._0x389237,-_0x4551dc._0x4b725b,-0x15d)](_0x17e351);}async['toApiError'](_0x416499){const _0x37d256={_0x59c879:0x3a7,_0x1bb095:0x316,_0x5c6f8a:0x3a7,_0x5aac7d:0x2b6,_0x191b80:0x32b,_0xb7b79b:0x278,_0x42ce3c:0x29b},_0x276641={_0x10d86f:0x3b4},_0x36cc96={_0x1210bc:0x149,_0x22a507:0xa5};function _0x151f90(_0x5d99ae,_0x5832fe,_0x59976d,_0x4b32ee){return _0x18006e(_0x5d99ae-_0x36cc96._0x1210bc,_0x5832fe-_0x36cc96._0x22a507,_0x59976d-0xea,_0x5d99ae);}function _0xe6d8c2(_0x2640f9,_0x3ccb6d,_0x4a68a4,_0x13b755){return _0x4d4006(_0x4a68a4,_0x3ccb6d-0x4d,_0x2640f9-_0x276641._0x10d86f,_0x13b755-0x162);}return await this[_0xe6d8c2(_0x37d256._0x59c879,_0x37d256._0x1bb095,0x355,_0x37d256._0x5c6f8a)][_0x151f90(_0x37d256._0x5aac7d,_0x37d256._0x191b80,_0x37d256._0xb7b79b,_0x37d256._0x42ce3c)](_0x416499);}[_0x4d4006(0x1e,0xf2,0x28,-0xd)](_0x9fe07e){const _0x374bfe={_0x39b198:0x4c8,_0x3ab67c:0x3b4,_0x395fa7:0x436,_0x2a1b9a:0x509,_0x908601:0x563},_0x4be43a={_0x3add0f:0x12f,_0x2e45a4:0x6a,_0x16cbed:0x35b};function _0x5a642d(_0xfa8910,_0x96ea38,_0x200ac1,_0x1e9717){return _0x18006e(_0xfa8910-0x3b,_0x96ea38-0x3d,_0x200ac1-0x2d8,_0x96ea38);}const _0x5e4b09=this[_0x5a642d(_0x374bfe._0x39b198,_0x374bfe._0x3ab67c,_0x374bfe._0x395fa7,0x453)][_0xd75e71(_0x374bfe._0x2a1b9a,0x5bb,0x4bb,_0x374bfe._0x908601)](_0x9fe07e);function _0xd75e71(_0x38191a,_0x304dfe,_0x34357d,_0x1b094f){return _0x18006e(_0x38191a-_0x4be43a._0x3add0f,_0x304dfe-_0x4be43a._0x2e45a4,_0x38191a-_0x4be43a._0x16cbed,_0x1b094f);}if(!_0x5e4b09)throw new Error('Unknown\x20model\x20surface:\x20'+_0x9fe07e);return _0x5e4b09;}async[_0x4d4006(0x29,0x130,0xba,0x98)](_0x728547,_0x329943){const _0x5daeec={_0x4f9fe5:0x24e,_0x2caffb:0x250,_0x559d67:0xe7,_0x369a:0xf5,_0x4395c5:0x7f,_0x4baf92:0x139,_0x49bb34:0x127,_0x24c427:0x143,_0x3956bf:0x49,_0x22f43f:0xe5,_0x1f2084:0x133,_0x4e8134:0x1c7,_0x26a69b:0x22a,_0x47a2ac:0xf7},_0x30eb96={_0x1d022c:0x12d},_0x13533d={_0x4d8bce:0x1ac};function _0x1ca258(_0xd518ab,_0x261c47,_0x748124,_0x21eb79){return _0x4d4006(_0x21eb79,_0x261c47-_0x13533d._0x4d8bce,_0x261c47- -0x1c,_0x21eb79-0xed);}function _0x4e0f87(_0x2e255e,_0x23003b,_0x55ee38,_0xde2d45){return _0x4d4006(_0x55ee38,_0x23003b-_0x30eb96._0x1d022c,_0xde2d45- -0x243,_0xde2d45-0x194);}const _0x5415e0=toModelRequest(_0x728547),_0x232cac=await prepareProviderRequest(_0x5415e0,{'sessionManager':this['sessionManager'],'requestMutators':this['requestMutators'],'signal':_0x329943}),_0x189340=toChatRequest(_0x232cac['request']),_0x2c1809=this[_0x4e0f87(-_0x5daeec._0x4f9fe5,-0x213,-0x266,-_0x5daeec._0x2caffb)]['resolveCredential'](this[_0x1ca258(_0x5daeec._0x559d67,_0x5daeec._0x369a,0x95,0x173)],_0x232cac[_0x1ca258(0x12e,_0x5daeec._0x4395c5,_0x5daeec._0x4baf92,_0x5daeec._0x49bb34)]);if(!_0x2c1809)throw this[_0x4e0f87(-_0x5daeec._0x24c427,-_0x5daeec._0x3956bf,-0x136,-_0x5daeec._0x22f43f)]();return{'baseUrl':this['providerAdapter']['resolveBaseUrl'](this[_0x1ca258(_0x5daeec._0x1f2084,0xf1,0xc8,0xa7)],_0x232cac[_0x4e0f87(-_0x5daeec._0x4e8134,-_0x5daeec._0x26a69b,-0x1e2,-0x1a8)]),'credential':_0x2c1809,'request':_0x189340,'session':_0x232cac[_0x4e0f87(-0x15f,-_0x5daeec._0x47a2ac,-0x217,-0x1a8)]};}[_0x18006e(0x143,0x1ed,0x19c,0x23d)](_0x1659dc){const _0x56e1c2={_0x57d44c:0x60b,_0x1dfb6e:0x4de,_0x59101b:0x4bf,_0x5e7dd0:0x444,_0x55a941:0x4c2},_0x2244d6={_0x367dea:0x178,_0x15ea28:0x490},_0x78e804={_0xfffcd4:0x73,_0x1dad9b:0x36e};function _0x24dbba(_0xfe4770,_0x1d1b44,_0x799ac,_0x4cc01a){return _0x4d4006(_0x1d1b44,_0x1d1b44-_0x78e804._0xfffcd4,_0x799ac-_0x78e804._0x1dad9b,_0x4cc01a-0x4b);}function _0x2e1900(_0x41a014,_0x329791,_0x45377e,_0x2103c5){return _0x18006e(_0x41a014-_0x2244d6._0x367dea,_0x329791-0x83,_0x41a014-_0x2244d6._0x15ea28,_0x329791);}return{...structuredClone(_0x1659dc),..._0x1659dc[_0x2e1900(0x59f,_0x56e1c2._0x57d44c,_0x56e1c2._0x1dfb6e,0x51f)]===void 0x0&&this[_0x24dbba(_0x56e1c2._0x59101b,0x477,_0x56e1c2._0x5e7dd0,_0x56e1c2._0x55a941)]!==void 0x0?{'reasoning':structuredClone(this['reasoning'])}:{}};}async[_0x18006e(0x2a,0x118,0x71,0x21)](_0x182088,_0x17ee77,_0x10d672,_0x5717ed,_0x242894=!![]){const _0xee128b={_0xceaad3:0x16a},_0x5e7eaf={_0x25cf35:0x58},_0x212faa={_0x1f11ae:0x3e6,_0x22099a:0x44f,_0x14887e:0x4da,_0x203e40:0x413,_0x405709:0x505,_0x35c3d3:0x521,_0x279590:0x53d,_0x2367a0:0x4c6,_0x378b4f:0x516,_0x30aec9:0x4de,_0x5e9ee1:0x59f,_0x114c62:0x46b,_0xdd124f:0x41f,_0x4fcae6:0x464,_0x37faec:0x4ea,_0x2f6e82:0x504,_0x21d981:0x4bf,_0x45f6da:0x493,_0x38e93e:0x611,_0x186e54:0x55b,_0x1bbeae:0x47d,_0x287eef:0x3f0,_0x366d87:0x4ad,_0x414032:0x5d1,_0x3012ad:0x5ba,_0x20c457:0x4d9,_0x13d7f1:0x525,_0x22aa48:0x594,_0x89e532:0x534,_0x10fb89:0x530,_0x3734b6:0x5ae,_0x38a76c:0x50e},_0x27e2f8={_0x79c146:0x25d},_0x1e6296=async()=>{const _0x5e70ae={_0x7ad4a2:0x2ed},_0x45b66e=await this[_0x2784ff(0x4d0,_0x212faa._0x1f11ae,_0x212faa._0x22099a,0x519)](_0x182088,_0x5717ed);let _0x21148c;function _0x2784ff(_0x4ffb7c,_0x107e85,_0x1a4e40,_0x4a5acc){return _0x2cfd(_0x1a4e40-_0x27e2f8._0x79c146,_0x4a5acc);}function _0xe444bb(_0x4ea0bf,_0x1df384,_0x25e6fb,_0x3a675a){return _0x2cfd(_0x25e6fb-_0x5e70ae._0x7ad4a2,_0x3a675a);}try{_0x21148c=_0x17ee77[_0xe444bb(0x43b,0x46a,_0x212faa._0x14887e,_0x212faa._0x203e40)](_0x45b66e['request']);}catch(_0x4d4529){if(_0x4d4529 instanceof Error)throw new ProviderRequestConstructionError(_0x4d4529[_0xe444bb(_0x212faa._0x405709,_0x212faa._0x35c3d3,_0x212faa._0x279590,_0x212faa._0x2367a0)]);throw _0x4d4529;}if(!_0x21148c[_0x2784ff(_0x212faa._0x378b4f,_0x212faa._0x30aec9,0x495,0x4ed)])throw new ProviderRequestConstructionError('Surface\x20'+_0x17ee77['id']+'\x20did\x20not\x20provide\x20an\x20HTTP\x20path');const _0x5e1674=await this[_0xe444bb(_0x212faa._0x5e9ee1,0x54e,0x52c,_0x212faa._0x114c62)]({'request':_0x45b66e['request'],'body':_0x21148c['body'],'credential':_0x45b66e['credential'],'session':_0x45b66e['session'],'stream':_0x10d672},{'accept':_0x21148c['accept']??(_0x10d672?'text/event-stream':_0xe444bb(0x4e2,_0x212faa._0xdd124f,_0x212faa._0x4fcae6,_0x212faa._0x37faec)),'includeContentType':_0x21148c[_0x2784ff(0x4b6,0x4bf,_0x212faa._0x2f6e82,0x470)]!==void 0x0});for(const [_0x556aa4,_0x380699]of Object[_0xe444bb(_0x212faa._0x21d981,0x4bb,_0x212faa._0x45f6da,0x431)](_0x21148c[_0xe444bb(_0x212faa._0x38e93e,0x4b7,0x57c,_0x212faa._0x186e54)]??{})){_0x5e1674['set'](_0x556aa4,_0x380699);}return this[_0xe444bb(_0x212faa._0x1bbeae,_0x212faa._0x287eef,0x4b1,_0x212faa._0x366d87)](''+_0x45b66e[_0xe444bb(_0x212faa._0x414032,_0x212faa._0x3012ad,0x532,_0x212faa._0x20c457)]+_0x21148c[_0xe444bb(0x5b2,0x5c9,_0x212faa._0x13d7f1,0x494)],{'method':'POST','headers':_0x5e1674,..._0x21148c[_0xe444bb(0x538,0x5e3,_0x212faa._0x22aa48,_0x212faa._0x89e532)]!==void 0x0?{'body':JSON[_0xe444bb(_0x212faa._0x10fb89,0x438,0x4e9,0x586)](_0x21148c[_0xe444bb(_0x212faa._0x3734b6,_0x212faa._0x38a76c,_0x212faa._0x22aa48,0x658)])}:{},'signal':_0x5717ed});};function _0xf13f4(_0x3c761d,_0x38ad42,_0xf24434,_0x3a2ed2){return _0x18006e(_0x3c761d-0x12a,_0x38ad42-_0x5e7eaf._0x25cf35,_0x3a2ed2-0x7a,_0xf24434);}return _0x242894?await this[_0xf13f4(_0xee128b._0xceaad3,0x133,0x1ef,0x1f0)](_0x1e6296,_0x5717ed):await _0x1e6296();}async*[_0x4d4006(0x202,0x15d,0x173,0x17a)](_0xc715f1,_0x489e8e,_0x2de320){const _0x4bcb00={_0xe2a3d6:0x227,_0x5861a2:0x1e8,_0x404d30:0x28b,_0x1b7708:0x32e,_0x1d8154:0x31c,_0x3eafea:0x65,_0xa84699:0xc,_0x5853bf:0xb4,_0x2bb1d8:0x13,_0x246776:0x15e,_0x230407:0x18,_0x2dad78:0x45,_0x15e78d:0x22,_0x411d8c:0x27e,_0x79b37f:0x360,_0x252cdb:0x13f,_0x3f8d58:0x30,_0x4acb33:0x68,_0x5c5cc2:0x20e,_0x1a5560:0x20f,_0x14df7b:0x2e7,_0x5ed088:0x1d6,_0x1624ec:0x26d},_0x3a0bb6={_0x474cbd:0x1e,_0x2a5fb5:0x177},_0x1c1919={_0x365832:0x1dc,_0x5d58b1:0xe4};function _0x3cf99b(_0x492d30,_0x15421f,_0x3143c6,_0x2c6282){return _0x18006e(_0x492d30-0x17c,_0x15421f-_0x1c1919._0x365832,_0x492d30- -_0x1c1919._0x5d58b1,_0x2c6282);}function _0x237aa7(_0x15016f,_0x4a9f1f,_0x43f3b8,_0x21f5d6){return _0x18006e(_0x15016f-_0x3a0bb6._0x474cbd,_0x4a9f1f-0x42,_0x21f5d6-_0x3a0bb6._0x2a5fb5,_0x4a9f1f);}for(let _0x27c4d2=0x0;_0x27c4d2<MAX_PROVIDER_REQUEST_ATTEMPTS;_0x27c4d2+=0x1){let _0x25c59c=![];try{const _0x4f7aac=await this[_0x237aa7(_0x4bcb00._0xe2a3d6,0x13e,0x19a,_0x4bcb00._0x5861a2)](_0xc715f1,_0x489e8e,!![],_0x2de320,![]);if(!_0x4f7aac['ok'])throw await this['toApiError'](_0x4f7aac);const _0x6cacaf=_0x489e8e[_0x237aa7(0x3dd,_0x4bcb00._0x404d30,_0x4bcb00._0x1b7708,_0x4bcb00._0x1d8154)]?.(_0xc715f1);if(!_0x6cacaf?.[_0x3cf99b(_0x4bcb00._0x3eafea,_0x4bcb00._0xa84699,0x24,0xc4)])throw new Error(_0x3cf99b(-_0x4bcb00._0x5853bf,-0x42,_0x4bcb00._0x2bb1d8,-_0x4bcb00._0x246776)+_0x489e8e['id']+_0x3cf99b(-_0x4bcb00._0x230407,-0x33,_0x4bcb00._0x2dad78,-_0x4bcb00._0x15e78d));for await(const _0x35e20e of iterateSseEvents(_0x4f7aac,_0x2de320)){const _0x468739=_0x6cacaf[_0x3cf99b(0x65,0x110,0xd8,0x68)](_0x35e20e);for(const _0x5b4e2a of _0x468739){_0x25c59c=!![],yield _0x5b4e2a;}}yield{'type':_0x237aa7(_0x4bcb00._0x411d8c,0x380,_0x4bcb00._0x79b37f,0x2f6),'response':_0x6cacaf[_0x3cf99b(0xa2,_0x4bcb00._0x252cdb,0x16,0x12)]()};return;}catch(_0xf337ea){if(_0x25c59c||!this[_0x3cf99b(_0x4bcb00._0x3f8d58,0x48,_0x4bcb00._0x4acb33,0x5f)](_0xf337ea)||_0x27c4d2===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0xf337ea;await this[_0x237aa7(0x23f,_0x4bcb00._0x5c5cc2,_0x4bcb00._0x1a5560,0x26c)](this[_0x237aa7(0x265,_0x4bcb00._0x14df7b,_0x4bcb00._0x5ed088,_0x4bcb00._0x1624ec)](void 0x0,_0x27c4d2),_0x2de320);}}}async*[_0x18006e(0x162,0x107,0xbb,0x10a)](_0x3ac278,_0x55ecf6,_0x58f22d){const _0x5160dd={_0x1e8b91:0xb8,_0x48db66:0x13e,_0x181894:0x102,_0x3efc97:0x18e,_0x36289a:0x42,_0x518edb:0x44,_0x200c16:0x73,_0x4f4502:0x1a6,_0x4a6fff:0x26c,_0x310abe:0x121,_0x43e056:0xd5,_0x68a7d4:0x115,_0x451cd2:0x115,_0x1d4730:0x159,_0xef7c64:0xc7,_0x85919:0x293,_0x3745f2:0x1ea,_0xea87d4:0xae,_0x2e5b74:0x1c8,_0x1a5ae0:0x165,_0x46800a:0x142,_0x76f318:0x205,_0x1394f0:0x109,_0x4a15e9:0x1b6,_0x17cfec:0x172,_0x21cd78:0x178,_0x227628:0x1fe,_0x3f4995:0x21e,_0x5346f5:0xe4,_0x269c06:0x66,_0x4f6eb8:0xc1,_0x1d4a2e:0x162,_0x5309d6:0x186,_0x22c9b7:0x2b0,_0x5d0b51:0xf0,_0x1e6b6d:0xbd,_0x3a2445:0x2c,_0x564993:0x4c,_0x50aa6e:0x243,_0x223da8:0xff,_0x53a059:0x43,_0x48aad5:0xb6,_0x3ab7fc:0x1bb,_0x21a7a4:0x41,_0x2f3824:0xbe,_0x6f7484:0x10,_0x73a0e6:0x15,_0x3f5920:0xca,_0x36de05:0x1ab,_0x322e6a:0x31,_0xbb5eed:0xcf,_0x23cc77:0x148,_0x28bccb:0xfa,_0x361423:0x111,_0x2e77cb:0x38,_0x2645a7:0x61,_0x527565:0x9a,_0x5ef2c6:0x6f,_0x505b17:0x1a4,_0x25c769:0xd,_0x58e60e:0x96,_0x27aaa7:0x8d,_0x760a5:0x23,_0x265691:0x6b,_0x285872:0x13,_0xbd8cd4:0x10f,_0x345659:0x2f,_0xa14493:0x275,_0x14af8a:0x184,_0x2b4f59:0xe6,_0x3d8fda:0x1ac,_0x591738:0x128,_0x183d4a:0x240,_0x3d153c:0x1b6,_0x4c2922:0x178,_0x5ccc1e:0xa4},_0x14d5b6={_0x89a972:0x1a8,_0x297cf5:0x56},_0x10dbb9={_0x16c2a3:0x16d},_0x4b2dec=await this['prepareChatRequest'](_0x3ac278,_0x58f22d);function _0x46fc5e(_0x2dfa79,_0x25f4cc,_0x3688a7,_0x2c386a){return _0x4d4006(_0x3688a7,_0x25f4cc-0xf2,_0x2dfa79- -_0x10dbb9._0x16c2a3,_0x2c386a-0x19e);}const _0x153d22=_0x55ecf6[_0x46fc5e(-_0x5160dd._0x1e8b91,-0x116,-_0x5160dd._0x48db66,-_0x5160dd._0x181894)](_0x4b2dec[_0x46fc5e(-0xde,-_0x5160dd._0x3efc97,-0x52,-_0x5160dd._0x36289a)]),_0x18be64=_0x55ecf6[_0x46fc5e(-0x1,-_0x5160dd._0x518edb,0x34,-0xb)]?.(_0x3ac278);if(!_0x18be64?.['consumeWebSocketEvent'])throw new Error('Surface\x20'+_0x55ecf6['id']+_0x46fc5e(-0x13e,-0x1fd,-_0x5160dd._0x200c16,-0x119));function _0x5de445(_0x432649,_0x4c6709,_0x3bb34f,_0x2fbc88){return _0x4d4006(_0x432649,_0x4c6709-_0x14d5b6._0x89a972,_0x2fbc88- -0x215,_0x2fbc88-_0x14d5b6._0x297cf5);}const _0x39156f=_0x153d22[_0x5de445(-0x16e,-_0x5160dd._0x4f4502,-_0x5160dd._0x4a6fff,-0x20b)]??(_0x153d22[_0x5de445(-0x4b,-_0x5160dd._0x310abe,-_0x5160dd._0x43e056,-_0x5160dd._0x68a7d4)]?(''+_0x4b2dec[_0x5de445(-_0x5160dd._0x451cd2,-0x7f,-0xa2,-0x108)]+_0x153d22[_0x5de445(-_0x5160dd._0x1d4730,-0x1c5,-_0x5160dd._0xef7c64,-0x115)])[_0x5de445(-0x16c,-_0x5160dd._0x85919,-0x198,-_0x5160dd._0x3745f2)](/^http:/,_0x5de445(-_0x5160dd._0xea87d4,-0xe1,-_0x5160dd._0x2e5b74,-_0x5160dd._0x1a5ae0))[_0x46fc5e(-_0x5160dd._0x46800a,-0x195,-_0x5160dd._0x76f318,-0x8e)](/^https:/,_0x5de445(-_0x5160dd._0x1394f0,-_0x5160dd._0x4a15e9,-0x125,-_0x5160dd._0x17cfec)):void 0x0);if(!_0x39156f)throw new ProviderRequestConstructionError(_0x5de445(-_0x5160dd._0x21cd78,-_0x5160dd._0x227628,-0x1bf,-_0x5160dd._0x3f4995)+_0x55ecf6['id']+_0x46fc5e(-0x17c,-_0x5160dd._0x5346f5,-0x208,-0x1d5));const _0x435fdc=await this[_0x46fc5e(-_0x5160dd._0x269c06,0x38,-0x80,-_0x5160dd._0x4f6eb8)]({'request':_0x4b2dec[_0x5de445(-0x1fc,-_0x5160dd._0x1d4a2e,-0xfb,-_0x5160dd._0x5309d6)],'body':_0x153d22['initialEvent'],'credential':_0x4b2dec[_0x5de445(-0x2c9,-_0x5160dd._0x22c9b7,-0x2e8,-0x229)],'session':_0x4b2dec[_0x5de445(-_0x5160dd._0x5d0b51,-0x166,-0x124,-0x17a)],'stream':!![]},{'accept':_0x153d22[_0x46fc5e(-0x69,-_0x5160dd._0x1e6b6d,-_0x5160dd._0x3a2445,-_0x5160dd._0x564993)]??_0x5de445(-0x27b,-0x22b,-_0x5160dd._0x50aa6e,-0x1d6),'includeContentType':![]});for(const [_0x54a76b,_0x2868fd]of Object[_0x46fc5e(-_0x5160dd._0x223da8,-_0x5160dd._0x53a059,-_0x5160dd._0x48aad5,-_0x5160dd._0x3ab7fc)](_0x153d22[_0x5de445(-0x185,-_0x5160dd._0x21a7a4,-0x16b,-_0x5160dd._0x2f3824)]??{})){_0x435fdc[_0x46fc5e(-_0x5160dd._0x6f7484,_0x5160dd._0x73a0e6,0x6a,0x2f)](_0x54a76b,_0x2868fd);}_0x435fdc[_0x5de445(-0xe2,-_0x5160dd._0x3f5920,-_0x5160dd._0x36de05,-0x12a)]('accept');const _0x28dd6f=this[_0x46fc5e(-0x74,_0x5160dd._0x322e6a,-0x1e,0x24)]({'headers':Object[_0x5de445(-_0x5160dd._0xbb5eed,-0x136,-_0x5160dd._0x23cc77,-_0x5160dd._0x28bccb)](_0x435fdc[_0x46fc5e(-0xff,-_0x5160dd._0x361423,-_0x5160dd._0x2e77cb,-_0x5160dd._0x2645a7)]()),'url':_0x39156f});try{throwIfAborted(_0x58f22d);_0x28dd6f[_0x5de445(-0x1ad,-_0x5160dd._0x527565,-_0x5160dd._0x5ef2c6,-0x120)]!==WebSocket[_0x46fc5e(-0x152,-0x11f,-0xc8,-_0x5160dd._0x505b17)]&&await waitForWebSocketOpen(_0x28dd6f,_0x58f22d);throwIfAborted(_0x58f22d);_0x153d22['initialEvent']!==void 0x0&&_0x28dd6f['send'](JSON[_0x46fc5e(-0xa9,-0x16c,_0x5160dd._0x25c769,-_0x5160dd._0x58e60e)](_0x153d22[_0x46fc5e(-_0x5160dd._0x27aaa7,-0x123,-_0x5160dd._0x760a5,-0x49)]));for await(const _0x450159 of iterateWebSocketMessages(_0x28dd6f,_0x58f22d)){yield*_0x18be64[_0x46fc5e(-_0x5160dd._0x265691,-0x93,-_0x5160dd._0x285872,-_0x5160dd._0xbd8cd4)](_0x450159);if(_0x18be64[_0x46fc5e(-0xaf,-_0x5160dd._0x345659,-0x16f,-0x135)]?.())break;}yield{'type':'done','response':_0x18be64[_0x5de445(-0x22,-0x93,-0x17c,-0xc8)]()};}finally{_0x28dd6f['readyState']===WebSocket[_0x5de445(-0x2bc,-0x160,-0x1a1,-0x1fa)]&&_0x28dd6f[_0x5de445(-_0x5160dd._0xa14493,-0x145,-_0x5160dd._0x14af8a,-0x1d9)](0x3e8,_0x58f22d?.[_0x46fc5e(-0x10e,-_0x5160dd._0x2b4f59,-_0x5160dd._0x3d8fda,-_0x5160dd._0x5309d6)]?_0x5de445(-_0x5160dd._0x591738,-0x110,-_0x5160dd._0x183d4a,-_0x5160dd._0x3d153c):_0x46fc5e(-0xe9,-_0x5160dd._0x4c2922,-_0x5160dd._0x5ccc1e,-_0x5160dd._0x5346f5));}}};async function createHttpError(_0x3542c4){const _0x2f9559={_0x1a468d:0xd8,_0x5f3d16:0x117,_0x7189b0:0xda,_0x311524:0x1e3,_0x49601d:0x258},_0x2c34e7={_0xaac221:0x17f,_0x4860aa:0x47},_0x554ab1={_0x5a1e4:0x143},_0x2ccfd7=await _0x3542c4[_0x598260(-0x24a,-0x149,-0x180,-_0x2f9559._0x1a468d)]();function _0x2fb9d3(_0x3925c4,_0x50e64f,_0x4a85c3,_0x5d84a0){return _0x18006e(_0x3925c4-_0x554ab1._0x5a1e4,_0x50e64f-0x1b3,_0x4a85c3- -0x1ae,_0x50e64f);}const _0x2b3ff0=_0x2ccfd7['trim']()||_0x3542c4['statusText']||_0x598260(-0x1e7,-_0x2f9559._0x5f3d16,-0x169,-_0x2f9559._0x7189b0);function _0x598260(_0x4705ff,_0x233dae,_0x1aa783,_0x18ae4f){return _0x18006e(_0x4705ff-_0x2c34e7._0xaac221,_0x233dae-_0x2c34e7._0x4860aa,_0x1aa783- -0x28b,_0x18ae4f);}return new Error('Provider\x20request\x20failed\x20with\x20status\x20'+_0x3542c4[_0x598260(-0x1e6,-_0x2f9559._0x311524,-_0x2f9559._0x49601d,-0x280)]+':\x20'+_0x2b3ff0);}var AnthropicProviderAdapter=class{[_0x4d4006(0x2,-0x1,0x96,0x3)];[_0x18006e(0x170,0x1b9,0x120,0x170)];[_0x18006e(0xfa,0x2e,0xd5,0x11e)];constructor(_0x2b89ae){const _0x43d03e={_0x3b0ab3:0x4da,_0x252447:0x43f,_0x3765e1:0x506,_0x3009b7:0x5c4,_0x3065ce:0x614,_0x3fb18b:0x48e,_0x36b18e:0x488,_0x4492f8:0x3dc,_0x217d09:0x41d,_0x42ff45:0x4f6},_0x5c6869={_0x493c05:0x1e6},_0x2073d2={_0x3fbf2c:0x19a,_0x5145d0:0x3b3};function _0x5db6a3(_0x3389d8,_0x2de498,_0x2101a9,_0x1b7db3){return _0x18006e(_0x3389d8-_0x2073d2._0x3fbf2c,_0x2de498-0x1c1,_0x2de498-_0x2073d2._0x5145d0,_0x2101a9);}this[_0x5db6a3(0x401,0x482,0x3be,_0x43d03e._0x3b0ab3)]=_0x2b89ae[_0x2c11ac(0x5c8,0x578,_0x43d03e._0x252447,_0x43d03e._0x3765e1)];function _0x2c11ac(_0x25920f,_0x1244a4,_0x127704,_0x521e10){return _0x18006e(_0x25920f-0x19a,_0x1244a4-_0x5c6869._0x493c05,_0x521e10-0x437,_0x127704);}this['headerResolver']=_0x2b89ae[_0x2c11ac(_0x43d03e._0x3009b7,_0x43d03e._0x3065ce,0x4ee,0x557)],this[_0x5db6a3(_0x43d03e._0x3fb18b,_0x43d03e._0x36b18e,_0x43d03e._0x4492f8,_0x43d03e._0x217d09)]=_0x2b89ae[_0x5db6a3(0x454,_0x43d03e._0x36b18e,_0x43d03e._0x42ff45,0x3d0)];}[_0x4d4006(0x19b,0x218,0x15e,0xb6)](){const _0x13e6c4={_0x491f93:0x133,_0x1fe340:0x210},_0x31a358={_0x5f1df3:0x182,_0x2a5b91:0x25a};function _0x4a19fd(_0x18ddfe,_0x5d426b,_0x49a67b,_0x6875f5){return _0x4d4006(_0x5d426b,_0x5d426b-_0x31a358._0x5f1df3,_0x6875f5- -_0x31a358._0x2a5b91,_0x6875f5-0x8d);}return new Error(_0x4a19fd(-_0x13e6c4._0x491f93,-_0x13e6c4._0x1fe340,-0x133,-0x1ba));}async['createHeaders'](_0xc503a2,_0x55094d){const _0x280cc5={_0x2e584a:0x53,_0x1ed2c3:0x86,_0x5056e7:0x151,_0x1ec79e:0xcb,_0x4a621e:0xf7,_0x2bc0e9:0x3e,_0x1f6ba2:0x2d,_0x225775:0x64,_0x2d6b4d:0x1c4,_0x32ac73:0x3e,_0x57b5e3:0xf8,_0x518a67:0xf4,_0x4208fe:0x7e,_0x4775eb:0x141,_0x9a97c8:0x12,_0x316d6b:0x68,_0x54137a:0x59,_0x4ab18d:0xe0,_0x515d38:0x8c,_0xc9cb27:0xbf,_0x380618:0x118,_0x8d4320:0x5d,_0x36b2f8:0x15,_0x30741d:0x72,_0xfae4bd:0x113,_0xab33f7:0x52,_0x1bd576:0x1b,_0x56b683:0x9f,_0x1fadfb:0xb5,_0x32c575:0xfb,_0x2762b5:0x9,_0x362310:0x29,_0x219eb2:0x2e,_0xf4179:0x16a,_0x284dff:0xcd,_0x45852c:0xd8,_0x47a9d1:0xb9,_0x1c2bcd:0xa4,_0x2af3d4:0x69},_0x245cb1={_0x2af45d:0x1e6},_0x2aa69f={_0x572cf9:0x114,_0x36973c:0xdd},_0x247109=new Headers();function _0x18a5f9(_0x3018ac,_0x27f62b,_0x2b85b6,_0x3092c3){return _0x18006e(_0x3018ac-0x94,_0x27f62b-_0x2aa69f._0x572cf9,_0x3018ac- -_0x2aa69f._0x36973c,_0x3092c3);}_0x247109['set'](_0x318164(-0x91,-_0x280cc5._0x2e584a,-0x63,-_0x280cc5._0x1ed2c3),_0x55094d[_0x318164(-0x12c,-_0x280cc5._0x5056e7,-0xf4,-0x86)]);function _0x318164(_0x129e9,_0x1b4d64,_0x3cb56e,_0x3e6910){return _0x4d4006(_0x129e9,_0x1b4d64-_0x245cb1._0x2af45d,_0x3e6910- -0x18a,_0x3e6910-0x102);}_0x247109[_0x318164(-_0x280cc5._0x1ec79e,-0x5,-0x33,-0x2d)](_0x318164(-_0x280cc5._0x4a621e,-0x9e,-0x11e,-0x5b),this[_0x18a5f9(-0x8,_0x280cc5._0x2bc0e9,-0x92,-0x69)]);_0x55094d[_0x18a5f9(_0x280cc5._0x1f6ba2,_0x280cc5._0x225775,0x44,-0x74)]!==![]&&_0x247109['set']('content-type',_0x318164(-0x94,-0xa3,-_0x280cc5._0x2d6b4d,-0x14b));this[_0x318164(-_0x280cc5._0x32ac73,-_0x280cc5._0x57b5e3,-0xe2,-_0x280cc5._0x518a67)]===_0x18a5f9(_0x280cc5._0x4208fe,-0x40,0xff,_0x280cc5._0x4775eb)?_0x247109['set'](_0x18a5f9(_0x280cc5._0x9a97c8,0xc4,0x6,-_0x280cc5._0x316d6b),_0x18a5f9(_0x280cc5._0x54137a,0xc1,0x58,0x111)+_0xc503a2['credential']['value']):_0x247109[_0x318164(-_0x280cc5._0x4ab18d,-0x11,0x8e,-0x2d)](_0x18a5f9(_0x280cc5._0x515d38,_0x280cc5._0xc9cb27,_0x280cc5._0x380618,-0x18),_0xc503a2['credential'][_0x18a5f9(0x2,-_0x280cc5._0x8d4320,-_0x280cc5._0x36b2f8,-_0x280cc5._0x30741d)]);const _0x119165=await this[_0x318164(-_0x280cc5._0xfae4bd,-_0x280cc5._0xab33f7,-0xd8,-0xa3)]?.({'body':_0xc503a2[_0x318164(0x46,-0x9e,0xb,-_0x280cc5._0x1bd576)],'credential':_0xc503a2['credential'],'request':_0xc503a2[_0x318164(-0x54,-_0x280cc5._0x56b683,-_0x280cc5._0x1fadfb,-_0x280cc5._0x32c575)],'session':_0xc503a2[_0x18a5f9(-_0x280cc5._0x2762b5,-_0x280cc5._0x362310,-0x64,-_0x280cc5._0x219eb2)],'stream':_0xc503a2[_0x318164(-0xa8,-_0x280cc5._0xf4179,-_0x280cc5._0x284dff,-_0x280cc5._0x45852c)]});for(const [_0x59bd8b,_0x3c7010]of Object['entries'](_0x119165??{})){_0x247109[_0x18a5f9(_0x280cc5._0x47a9d1,_0x280cc5._0x1c2bcd,0x8e,_0x280cc5._0x2af3d4)](_0x59bd8b,_0x3c7010);}return _0x247109;}['mapApiError'](_0x272661){return _0x272661;}[_0x18006e(-0x28,0xfd,0x8f,0xe1)](_0x3ffe25,_0x4cecb8){return resolveSessionBaseUrl(_0x3ffe25,_0x4cecb8);}[_0x4d4006(0xc,0x3,0x60,0x4e)](_0x3f63e9,_0x4e9af2){return resolveApiCredential(_0x3f63e9,_0x4e9af2);}async[_0x18006e(0x256,0x228,0x18e,0x15d)](_0x30d7df){return await createHttpError(_0x30d7df);}},AnthropicModel=class extends RoutedModel{constructor(_0x22f5ca={}){const _0x9b86b0={_0x4f6ee3:0x264,_0x8b7ba8:0x4c,_0x270455:0x55,_0x208f58:0x91,_0x4b5f69:0x222,_0x304f9a:0x215,_0x34d373:0x2c7,_0x5256f9:0x259,_0xcbe5b9:0x153,_0x4a480e:0xb0,_0x36c1a1:0x1df,_0x2bfd66:0x202,_0x3b2c81:0x14b,_0x47dbd5:0x83,_0x62d4cc:0x1af,_0x53ce82:0x100},_0x1d8ac3={_0x59dc37:0xc1,_0x396a20:0x1a,_0x190f30:0x2c},_0x505fac={_0x7629fe:0xce};function _0x5dc457(_0xc1f748,_0x1baade,_0x320f6c,_0x5ecace){return _0x4d4006(_0x5ecace,_0x1baade-_0x505fac._0x7629fe,_0xc1f748-0x1f1,_0x5ecace-0xf8);}function _0x37eea9(_0x4b0c02,_0x28116e,_0x28d81e,_0x39e5ab){return _0x4d4006(_0x28d81e,_0x28116e-_0x1d8ac3._0x59dc37,_0x39e5ab-_0x1d8ac3._0x396a20,_0x39e5ab-_0x1d8ac3._0x190f30);}super({'apiKey':_0x22f5ca[_0x5dc457(0x302,0x314,0x275,_0x9b86b0._0x4f6ee3)],'baseUrl':trimTrailingSlashes(_0x22f5ca['baseUrl']??_0x37eea9(-_0x9b86b0._0x8b7ba8,_0x9b86b0._0x270455,_0x9b86b0._0x208f58,0x16)),'fetch':_0x22f5ca['fetch'],'maxTokens':_0x22f5ca['maxTokens']??0x4000,'model':_0x22f5ca[_0x5dc457(0x200,0x156,_0x9b86b0._0x4b5f69,_0x9b86b0._0x304f9a)]??'claude-sonnet-4-20250514','reasoning':_0x22f5ca[_0x5dc457(_0x9b86b0._0x34d373,0x2bf,0x281,_0x9b86b0._0x5256f9)],'providerAdapter':new AnthropicProviderAdapter({'authScheme':_0x22f5ca[_0x37eea9(0x13c,0x78,_0x9b86b0._0xcbe5b9,_0x9b86b0._0x4a480e)]??'x-api-key','headerResolver':_0x22f5ca['headerResolver'],'protocolVersion':_0x22f5ca[_0x37eea9(0x54,0x124,0xc8,0xb6)]??_0x5dc457(_0x9b86b0._0x36c1a1,_0x9b86b0._0x2bfd66,_0x9b86b0._0x3b2c81,0x291)}),'providerSessionResolver':_0x22f5ca[_0x37eea9(_0x9b86b0._0x47dbd5,0x178,_0x9b86b0._0x62d4cc,_0x9b86b0._0x53ce82)],'requestMutators':_0x22f5ca['requestMutators'],'router':new StaticModelSurfaceRouter({'complete':ANTHROPIC_MESSAGES_SURFACE,'stream':ANTHROPIC_MESSAGES_STREAM_SURFACE}),'surfaces':createAnthropicSurfaces()});}[_0x18006e(0x108,0xd4,0x11d,0x1d2)](_0x3400ce,_0x448991){const _0xa07e70={_0x3f1b0d:0x54f,_0x206d36:0x549,_0x430864:0x61a},_0x5d75f6={_0x2fc9b0:0xc1,_0x318e28:0x43f};function _0x22b724(_0x30c0a7,_0x33e514,_0x5587c3,_0x218551){return _0x18006e(_0x30c0a7-0x1ed,_0x33e514-_0x5d75f6._0x2fc9b0,_0x33e514-_0x5d75f6._0x318e28,_0x30c0a7);}return this[_0x22b724(0x5a0,_0xa07e70._0x3f1b0d,_0xa07e70._0x206d36,_0xa07e70._0x430864)](_0x3400ce,ANTHROPIC_MESSAGES_SURFACE,_0x448991);}[_0x18006e(0x188,0x9f,0xeb,0x13c)](_0x713424,_0x4da3de){const _0x344188={_0x331a16:0x177,_0x5923f8:0x114,_0x37d123:0x1ce},_0x539a1a={_0x39469e:0x110,_0x397776:0x37};function _0x2f3bbf(_0xb3a6c9,_0x1befa6,_0x33ce88,_0x1f22db){return _0x18006e(_0xb3a6c9-_0x539a1a._0x39469e,_0x1befa6-_0x539a1a._0x397776,_0x1befa6-0x28,_0x1f22db);}return this[_0x2f3bbf(_0x344188._0x331a16,_0x344188._0x5923f8,0xec,_0x344188._0x37d123)](_0x713424,ANTHROPIC_MESSAGES_STREAM_SURFACE,_0x4da3de);}},OPENAI_CHAT_COMPLETIONS_SURFACE='openai-chat-completions',OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE=_0x4d4006(0xd8,0xb2,0xcb,0x96),OPENAI_RESPONSES_SURFACE='openai-responses',OPENAI_RESPONSES_STREAM_SURFACE='openai-responses-stream',OPENAI_RESPONSES_WEBSOCKET_SURFACE=_0x4d4006(0x14c,0x19d,0x116,0xff),OpenAiApiError=class extends Error{[_0x4d4006(0x37,0x81,-0x6,-0x56)];[_0x4d4006(0x147,0x1b3,0x16f,0x1d4)];constructor(_0x500928,_0x4fbca2,_0x1c3f71){const _0x320080={_0x4d9fd8:0x64f,_0x1a47e1:0x60c,_0x33af23:0x57c,_0x2d80c9:0x5c2,_0x3fba2a:0x474,_0x684e53:0x6e7,_0x282646:0x5ba,_0x556020:0x676},_0x456a78={_0x65858e:0x47b};super(_0x1c3f71),this[_0x1e6776(0x6a2,_0x320080._0x4d9fd8,_0x320080._0x1a47e1,0x654)]=_0x1e6776(_0x320080._0x33af23,0x542,_0x320080._0x2d80c9,0x5a3),this[_0x1e6776(_0x320080._0x3fba2a,0x3f5,0x4ae,0x550)]=_0x500928;function _0x1e6776(_0x435f68,_0x3b1e86,_0x193790,_0x325b76){return _0x18006e(_0x435f68-0x1d1,_0x3b1e86-0x1d3,_0x193790-_0x456a78._0x65858e,_0x3b1e86);}function _0x5cdec6(_0x32787f,_0x3bc502,_0x266c91,_0x4d94df){return _0x4d4006(_0x266c91,_0x3bc502-0x5d,_0x3bc502-0x17c,_0x4d94df-0x190);}this[_0x1e6776(_0x320080._0x684e53,_0x320080._0x282646,0x623,_0x320080._0x556020)]=_0x4fbca2;}};function stringifySystem(_0x17562a){const _0x41883a={_0x5b4dca:0x16d},_0x5f09c8={_0x31965b:0x1dd};function _0x475f15(_0x32e95c,_0x48bc60,_0x3ff28f,_0x1d7905){return _0x18006e(_0x32e95c-_0x5f09c8._0x31965b,_0x48bc60-0x1c4,_0x1d7905- -0x284,_0x32e95c);}return _0x17562a['map'](_0x292121=>_0x292121['text'])[_0x475f15(-0x161,-_0x41883a._0x5b4dca,-0x261,-0x215)]('\x0a\x0a');}function createToolDefinitions(_0x324094){const _0x1081d1={_0x2a54cc:0x53b},_0x150757={_0x4794d8:0x42a,_0x3cf260:0x3e2,_0x440553:0x397,_0x5acde6:0xa4,_0x3f42c3:0x37,_0x7c64b1:0x2c,_0x4c512b:0xa1,_0x24c14c:0x298,_0x2990f4:0x328,_0x119985:0x318},_0xa79cac={_0x1c7389:0x5d5,_0x49e2c7:0x13f},_0x3e4617={_0x12052c:0x233,_0x27a339:0x5b},_0x9c72cf={_0x2a0ec4:0x16c};function _0x541ed0(_0x64aca1,_0x318d13,_0x4bb4e7,_0x5390e9){return _0x18006e(_0x64aca1-0x1e9,_0x318d13-_0x9c72cf._0x2a0ec4,_0x318d13-0x4b7,_0x64aca1);}if(_0x324094['length']===0x0)return void 0x0;return _0x324094[_0x541ed0(0x5dc,_0x1081d1._0x2a54cc,0x4d1,0x5c0)](_0x2b222c=>{function _0x2019fa(_0x494a83,_0x45cd8e,_0x273a60,_0x19cf62){return _0x541ed0(_0x45cd8e,_0x19cf62- -_0x3e4617._0x12052c,_0x273a60-0x19f,_0x19cf62-_0x3e4617._0x27a339);}function _0x122c81(_0x31cf99,_0x20de46,_0x5635ca,_0x408b22){return _0x541ed0(_0x20de46,_0x5635ca- -_0xa79cac._0x1c7389,_0x5635ca-_0xa79cac._0x49e2c7,_0x408b22-0xc2);}return{'type':_0x2019fa(_0x150757._0x4794d8,_0x150757._0x3cf260,0x392,_0x150757._0x440553),'function':{'name':_0x2b222c[_0x122c81(_0x150757._0x5acde6,-_0x150757._0x3f42c3,0x73,_0x150757._0x7c64b1)],'description':_0x2b222c[_0x122c81(0xa,0x22,0x76,_0x150757._0x4c512b)],'parameters':_0x2b222c[_0x2019fa(0x3bb,_0x150757._0x24c14c,_0x150757._0x2990f4,_0x150757._0x119985)]}};});}function isImageToolResultBlock(_0x4ad823){const _0xb86783={_0x5c9c86:0x355,_0x15b775:0x487,_0x90a119:0x4a7,_0x475580:0x478,_0x1b4821:0x82,_0x1004cd:0x24,_0x541427:0x6a,_0x1c292f:0xb2,_0x4a224f:0xba,_0x1081ed:0x14c},_0xd1fee3={_0x12a482:0x46,_0x36b419:0x38f,_0x19f006:0x8};if(typeof _0x4ad823!==_0x237958(0x400,_0xb86783._0x5c9c86,0x411,0x3a3)||_0x4ad823===null||Array[_0x237958(_0xb86783._0x15b775,_0xb86783._0x90a119,0x4fe,_0xb86783._0x475580)](_0x4ad823))return![];function _0x4262f7(_0xf3c807,_0x22891a,_0x14c09a,_0x21e4b4){return _0x18006e(_0xf3c807-0xb5,_0x22891a-0x6c,_0x14c09a- -0x157,_0xf3c807);}const _0x76c1e8=_0x4ad823;function _0x237958(_0x57b70e,_0x56eef2,_0x349b1b,_0xc7e519){return _0x4d4006(_0x56eef2,_0x56eef2-_0xd1fee3._0x12a482,_0x57b70e-_0xd1fee3._0x36b419,_0xc7e519-_0xd1fee3._0x19f006);}return _0x76c1e8['type']===_0x4262f7(-0xed,-_0xb86783._0x1b4821,-_0xb86783._0x1004cd,_0xb86783._0x541427)&&_0x76c1e8[_0x4262f7(-_0xb86783._0x1c292f,-0x157,-_0xb86783._0x4a224f,-_0xb86783._0x1081ed)]?.['type']==='base64'&&typeof _0x76c1e8[_0x4262f7(-0x16f,-0x15c,-0xba,-0x8f)]['media_type']==='string'&&typeof _0x76c1e8['source'][_0x237958(0x448,0x47d,0x3d6,0x4e4)]===_0x237958(0x401,0x473,0x45a,0x49c);}function getToolResultText(_0x45ada8){const _0x45f88d={_0x37662b:0xa7,_0x52335c:0x14d,_0xcda167:0x7e,_0x14912b:0x19b,_0x2a2e9f:0x12e,_0x3be403:0x15d,_0x22d664:0x115,_0x14b3a4:0x182},_0x2f9b9a={_0x5e6763:0x3df,_0x4b2c13:0x30b,_0x529d52:0x386},_0x3016d1={_0x3871a2:0x101},_0x34b1d9={_0x46c01d:0x101,_0x4c8e39:0x102};function _0x2e9b8b(_0x555363,_0x58753d,_0x34b6cd,_0x1726e7){return _0x4d4006(_0x34b6cd,_0x58753d-_0x34b1d9._0x46c01d,_0x1726e7-0xd,_0x1726e7-_0x34b1d9._0x4c8e39);}if(typeof _0x45ada8==='string')return _0x45ada8;function _0x35a86b(_0x2e2c39,_0x136f21,_0x2ac04a,_0x20f369){return _0x18006e(_0x2e2c39-0x14c,_0x136f21-0xac,_0x2e2c39-0x38,_0x20f369);}const _0x245265=_0x45ada8['filter'](_0x4817f4=>{const _0x15d9ed={_0x4b83f9:0x26c};function _0x3c8ded(_0x26469b,_0x460fc7,_0x28ff89,_0x367cc5){return _0x2cfd(_0x26469b-_0x3016d1._0x3871a2,_0x460fc7);}function _0x44f4f2(_0x20d811,_0x5d860c,_0x58f7ff,_0x35ef2b){return _0x2cfd(_0x58f7ff-_0x15d9ed._0x4b83f9,_0x20d811);}return typeof _0x4817f4==='object'&&_0x4817f4!==null&&_0x4817f4[_0x44f4f2(0x440,_0x2f9b9a._0x5e6763,0x41d,0x4b0)]===_0x3c8ded(_0x2f9b9a._0x4b2c13,0x365,_0x2f9b9a._0x529d52,0x2a3);})['map'](_0x4801cc=>_0x4801cc[_0x2e9b8b(0x107,0x29,0x7f,0xdf)])[_0x35a86b(_0x45f88d._0x37662b,_0x45f88d._0x52335c,0x5b,_0x45f88d._0xcda167)]('\x0a\x0a')[_0x35a86b(_0x45f88d._0x14912b,_0x45f88d._0x2a2e9f,0x237,0x1b5)]();return _0x245265[_0x35a86b(_0x45f88d._0x3be403,_0x45f88d._0x22d664,0x117,0x221)]>0x0?_0x245265:_0x35a86b(0x1dc,_0x45f88d._0x14b3a4,0x25d,0x194);}function getToolResultImages(_0x4d2cd3){return Array['isArray'](_0x4d2cd3)?_0x4d2cd3['filter'](isImageToolResultBlock):[];}function parseToolInput2(_0x5eb183){const _0x32d27d={_0x3ba722:0x142,_0x3ca4da:0x17c},_0x6ee867={_0x24288e:0x14f,_0x41508d:0x2d};function _0x13dfe3(_0x901ef2,_0x20ffa8,_0x258c3f,_0x2ec29a){return _0x4d4006(_0x901ef2,_0x20ffa8-0x56,_0x2ec29a- -_0x6ee867._0x24288e,_0x2ec29a-_0x6ee867._0x41508d);}function _0x5a567a(_0x502771,_0x4013fd,_0xc2316b,_0xfbc5d){return _0x4d4006(_0x502771,_0x4013fd-0x1d3,_0xc2316b- -0x14f,_0xfbc5d-0xf1);}if(_0x5eb183[_0x5a567a(-0xf8,-0x125,-0x63,-0x90)]===0x0)return{};try{return JSON[_0x5a567a(-0x1a6,-_0x32d27d._0x3ba722,-0x152,-_0x32d27d._0x3ca4da)](_0x5eb183);}catch{return _0x5eb183;}}function isResponsesReasoningItem(_0x17f58f){const _0x33c262={_0x45d8f7:0x304,_0x56036b:0x32f,_0x29711d:0x411,_0x5368cc:0x67,_0x141510:0x45,_0xb1741c:0x43},_0x524dd8={_0x584da8:0x78,_0x15e422:0x304},_0x3b73d9={_0xe307ab:0xa4,_0x255926:0x65,_0x24c2ff:0x4b};function _0x3f478a(_0x8f60d4,_0x42205b,_0x3f0971,_0x3d0130){return _0x18006e(_0x8f60d4-_0x3b73d9._0xe307ab,_0x42205b-_0x3b73d9._0x255926,_0x8f60d4- -_0x3b73d9._0x24c2ff,_0x42205b);}function _0x1e76d3(_0x55e4b0,_0x2af80d,_0x45fc47,_0x1285b2){return _0x18006e(_0x55e4b0-0xa0,_0x2af80d-_0x524dd8._0x584da8,_0x45fc47-_0x524dd8._0x15e422,_0x55e4b0);}return typeof _0x17f58f===_0x1e76d3(_0x33c262._0x45d8f7,_0x33c262._0x56036b,0x3ae,_0x33c262._0x29711d)&&_0x17f58f!==null&&_0x3f478a(_0x33c262._0x5368cc,0x28,_0x33c262._0x141510,_0x33c262._0xb1741c)in _0x17f58f&&_0x17f58f['type']==='reasoning';}function isResponsesMessageItem(_0x207593){const _0x2a0551={_0x35d587:0x442,_0x3c6898:0x4f3,_0x5d80a1:0x4da,_0x5f5108:0x4a8,_0x36ce24:0x4f7,_0xd84e5e:0x4e9,_0x24c5bf:0x562,_0x50600a:0x54e},_0x2454d4={_0x57328a:0xed,_0x5e927d:0x106},_0x2af478={_0x196e63:0x1af,_0x43043d:0x22};function _0x3ebddf(_0x545773,_0x38e321,_0x359c35,_0x10f153){return _0x18006e(_0x545773-_0x2af478._0x196e63,_0x38e321-_0x2af478._0x43043d,_0x359c35-0x445,_0x38e321);}function _0xee7c67(_0x424ee0,_0x4df327,_0x33115a,_0x108e15){return _0x4d4006(_0x4df327,_0x4df327-_0x2454d4._0x57328a,_0x108e15-0x482,_0x108e15-_0x2454d4._0x5e927d);}return typeof _0x207593===_0xee7c67(0x51c,_0x2a0551._0x35d587,0x5a6,_0x2a0551._0x3c6898)&&_0x207593!==null&&_0x3ebddf(_0x2a0551._0x5d80a1,_0x2a0551._0x5f5108,_0x2a0551._0x36ce24,_0x2a0551._0xd84e5e)in _0x207593&&_0x207593[_0xee7c67(_0x2a0551._0x24c5bf,_0x2a0551._0x50600a,0x459,0x4fb)]==='message';}function isResponsesFunctionCallItem(_0x46a0b4){const _0x48c2ea={_0x45b79a:0x4b6,_0x5d1125:0x3b7,_0x2e2de5:0x467,_0x5de2e7:0xf2},_0xc1e425={_0x18470d:0x16d,_0x57369b:0x1e0,_0x4fc87c:0x40},_0x17a858={_0x24d7e3:0x196,_0xa745d4:0x3bd};function _0x2dfdbe(_0x705a63,_0xf8f09,_0x3dd122,_0x4cf141){return _0x18006e(_0x705a63-_0x17a858._0x24d7e3,_0xf8f09-0x13e,_0x4cf141-_0x17a858._0xa745d4,_0x3dd122);}function _0x50f1fd(_0xaf80e,_0x18069f,_0x4e64ec,_0x24b5fc){return _0x18006e(_0xaf80e-_0xc1e425._0x18470d,_0x18069f-_0xc1e425._0x57369b,_0xaf80e-_0xc1e425._0x4fc87c,_0x24b5fc);}return typeof _0x46a0b4===_0x2dfdbe(0x51f,_0x48c2ea._0x45b79a,_0x48c2ea._0x5d1125,_0x48c2ea._0x2e2de5)&&_0x46a0b4!==null&&'type'in _0x46a0b4&&_0x46a0b4[_0x50f1fd(_0x48c2ea._0x5de2e7,0xf1,0x14c,0x1bc)]==='function_call';}function createContentBlocks(_0x20b7f3,_0x3a2d9c,_0x5d79e0){const _0x13195c={_0x3d5383:0xf6,_0x56acef:0xf1,_0x23221c:0x73,_0x179d49:0x1bd,_0x1feeb1:0x26f,_0x162d21:0x86,_0x3f8c8c:0xc7,_0x19f7c5:0x16c,_0x3d018e:0x99,_0x1492cf:0x1df,_0x4ffe52:0x280,_0x53b891:0x257,_0x46853c:0x8a,_0x19997d:0x110,_0x153845:0x159,_0x1a767c:0x90,_0x1f2649:0x14b,_0x9d6167:0x309,_0x43793e:0x34e,_0x3b1e58:0x17f,_0x334a9f:0x12d,_0x45e7bf:0xba,_0x42c772:0x211,_0x3ba09c:0x1ad},_0x419cde={_0x28e1e0:0x4,_0x1d38bc:0x17d},_0x3ef5ef={_0x541e51:0xa3,_0x9f5eb4:0x21b},_0x29738d=[];_0x5d79e0&&_0x5d79e0[_0x550d23(-_0x13195c._0x3d5383,-0x39,-0x1c0,-_0x13195c._0x56acef)]>0x0&&_0x29738d[_0x550d23(-0xcb,-_0x13195c._0x23221c,-0x174,-0x15f)]({'type':_0x564233(_0x13195c._0x179d49,0x22d,0x33a,_0x13195c._0x1feeb1),'summary':[],'text':_0x5d79e0});function _0x550d23(_0x223ced,_0x315f33,_0x41c33b,_0x38d126){return _0x18006e(_0x223ced-_0x3ef5ef._0x541e51,_0x315f33-0x196,_0x223ced- -_0x3ef5ef._0x9f5eb4,_0x38d126);}_0x20b7f3[_0x550d23(-0xf6,-_0x13195c._0x162d21,-0x59,-_0x13195c._0x3f8c8c)]>0x0&&_0x29738d['push']({'type':'text','text':_0x20b7f3});function _0x564233(_0x3b25b4,_0x5e9cf7,_0x8c7bf,_0x240587){return _0x4d4006(_0x3b25b4,_0x5e9cf7-_0x419cde._0x28e1e0,_0x240587-_0x419cde._0x1d38bc,_0x240587-0xa7);}for(const _0x212eb4 of _0x3a2d9c){if(_0x212eb4['id'][_0x550d23(-0xb8,-_0x13195c._0x19f7c5,-0x18,-_0x13195c._0x3d018e)]()['length']===0x0||_0x212eb4[_0x564233(0x19b,_0x13195c._0x1492cf,_0x13195c._0x4ffe52,_0x13195c._0x53b891)][_0x550d23(-_0x13195c._0x46853c,-0x100,-0x60,-_0x13195c._0x19997d)][_0x550d23(-0xb8,-_0x13195c._0x153845,-_0x13195c._0x1a767c,-_0x13195c._0x1f2649)]()[_0x550d23(-_0x13195c._0x3d5383,-0x11c,-0xcf,-0x177)]===0x0)continue;_0x29738d[_0x564233(_0x13195c._0x9d6167,_0x13195c._0x43793e,0x2e0,0x294)]({'type':_0x550d23(-_0x13195c._0x3b1e58,-0xf2,-0x134,-_0x13195c._0x334a9f),'id':_0x212eb4['id'],'name':_0x212eb4[_0x564233(0x1db,0x261,0x1cf,0x257)]['name'],'input':parseToolInput2(_0x212eb4[_0x550d23(-0x108,-0xa1,-0x81,-_0x13195c._0x45e7bf)][_0x550d23(-0x18e,-_0x13195c._0x42c772,-_0x13195c._0x3ba09c,-0xef)])});}return _0x29738d;}function createUsage(_0x59f715){const _0x2940d7={_0x59cdd5:0xae,_0x5d15f5:0x1b5,_0x163849:0x3e5,_0x3a396e:0x35c,_0x517053:0x3f1,_0x119774:0x327,_0x1467f4:0x469,_0x146724:0x65,_0x748a87:0x6},_0x29d689={_0x3489eb:0x1c6,_0x58f4c6:0xa8},_0x4626f4={_0x281ee2:0x181,_0x40d3e4:0x50,_0x27976e:0x1d1};function _0x4db4c7(_0x2d596c,_0x45d188,_0x29e12e,_0x2e333c){return _0x4d4006(_0x2d596c,_0x45d188-_0x4626f4._0x281ee2,_0x45d188- -_0x4626f4._0x40d3e4,_0x2e333c-_0x4626f4._0x27976e);}function _0x377369(_0x46e8b3,_0x1032d6,_0x172dac,_0x117176){return _0x4d4006(_0x172dac,_0x1032d6-_0x29d689._0x3489eb,_0x46e8b3-0x3fd,_0x117176-_0x29d689._0x58f4c6);}return{'inputTokens':_0x59f715?.['prompt_tokens']??0x0,'outputTokens':_0x59f715?.[_0x4db4c7(_0x2940d7._0x59cdd5,0x111,_0x2940d7._0x5d15f5,0x1d3)]??0x0,..._0x59f715?.[_0x377369(0x3f1,_0x2940d7._0x163849,_0x2940d7._0x3a396e,0x39c)]?.[_0x4db4c7(0x53,-0x69,0x1e,0x28)]!==void 0x0?{'reasoningTokens':_0x59f715[_0x377369(_0x2940d7._0x517053,_0x2940d7._0x119774,0x328,_0x2940d7._0x1467f4)][_0x4db4c7(-_0x2940d7._0x146724,-0x69,-_0x2940d7._0x748a87,-0x22)]}:{}};}function resolveReasoningVisibility2(_0x49786b){const _0x294810={_0x2646d2:0x21e,_0x408ba5:0x22d},_0x4bc7ae={_0xcb6fe:0x1c9,_0xcda990:0x19};function _0x546a79(_0x2b4c27,_0x43c13a,_0x440e95,_0x2c9415){return _0x18006e(_0x2b4c27-_0x4bc7ae._0xcb6fe,_0x43c13a-_0x4bc7ae._0xcda990,_0x2c9415- -0x2bd,_0x440e95);}return _0x49786b['reasoning']?.['visibility']??_0x546a79(-_0x294810._0x2646d2,-0x1ec,-0x247,-_0x294810._0x408ba5);}function isUserVisibleReasoning(_0x24bc35){const _0x921131={_0x2ea496:0x547,_0x485a20:0x60b},_0x38c725={_0x5c2a18:0x2ae},_0x30a8b0={_0x17bcee:0x1e9,_0x45cc7a:0x4de};function _0x3a0100(_0x1fa93d,_0x47ffae,_0x1e294e,_0x410bf5){return _0x18006e(_0x1fa93d-_0x30a8b0._0x17bcee,_0x47ffae-0x72,_0x1e294e-_0x30a8b0._0x45cc7a,_0x410bf5);}function _0x1c7f5c(_0x363494,_0x46221c,_0x370ccc,_0x44fa57){return _0x18006e(_0x363494-0x86,_0x46221c-0x1c3,_0x46221c- -_0x38c725._0x5c2a18,_0x370ccc);}return resolveOpenAiReasoningConfig(_0x24bc35[_0x3a0100(0x665,0x5e6,0x5ed,0x6ad)])!==void 0x0&&resolveReasoningVisibility2(_0x24bc35)===_0x3a0100(_0x921131._0x2ea496,0x4cc,0x56e,_0x921131._0x485a20);}function createChatRequestBody(_0x440420,_0x49bb39){const _0x105eba={_0x9c3fba:0x136,_0x44483a:0xb9,_0x5a90ed:0xb3,_0xeb368b:0xd,_0xcb21b4:0x2d,_0x2fdf51:0x9c,_0x123ce5:0xe9,_0x3af4af:0x148,_0x4625e3:0x41,_0xb16c0e:0xd0,_0x2cb895:0x28d,_0x23b4be:0x28e,_0x50dc81:0xc6,_0x1464aa:0x1dc,_0x2d7abe:0x222,_0xcb60b5:0x12e,_0x558abb:0xac,_0x32832f:0x94,_0x1fd599:0x82,_0x19115b:0x89,_0x25fba6:0x78,_0x3d0f6b:0x80,_0x248950:0x6f,_0x1bae2f:0x18d,_0x597f7e:0x235,_0xfa008c:0xc2,_0x4d11ad:0xe5,_0x676796:0x6,_0x5e4841:0x1a6,_0x4597b4:0x11f,_0x4e2d99:0x23,_0x3efc1e:0x15e,_0x481dec:0x2,_0x6e88f1:0x167,_0x69c17:0x132,_0x17a36c:0x157,_0x5d0c14:0x1fb,_0x1e76f0:0x161,_0x4db76b:0xc6,_0xa5fb7e:0x76,_0x4b9b81:0x114,_0x3e6181:0x118,_0x2bf403:0xa4,_0x3944d0:0xe2,_0x30bd20:0x266,_0x470482:0x11c,_0x507fcc:0x19b,_0x5d78c4:0xf4,_0x285a5b:0x12e,_0x1d380d:0xb6,_0x7e272f:0x25d,_0x46a622:0x12,_0x548705:0x14b,_0xe7d0c5:0xfd,_0x3dd1d4:0x194,_0x5012b8:0x134},_0x33db5a={_0x51b5e5:0x201,_0x1b7275:0x1a3,_0x514b4c:0x254,_0x345c4c:0x1b5,_0x4e61f6:0x329,_0x34c6d0:0x2c9,_0x362c20:0x3ca,_0x22015c:0x222,_0x3d79b7:0x30d,_0x4068db:0x345,_0x53d5d6:0x363,_0x410028:0x336,_0x100d38:0x2e0,_0x163934:0x2ea,_0x38c034:0x2ce,_0x357fb1:0x280,_0x1d64e2:0x1b4,_0x238bc4:0x2f5,_0x37507f:0x2a7,_0x41ae49:0x1d0,_0x2ae4d4:0x23f,_0x477f76:0x24c,_0x4d3785:0x23c,_0x125efe:0x22a,_0x579653:0x2d8},_0x4faca0={_0x336db2:0x165},_0x25d9ab={_0x1224f7:0xb1},_0x28abd0=[],_0x912555=stringifySystem(_0x440420[_0x56b43e(-_0x105eba._0x9c3fba,-_0x105eba._0x44483a,-0x124,-_0x105eba._0x5a90ed)]);function _0x48b9fd(_0x327151,_0x4ff199,_0x56b8da,_0x5e57e4){return _0x4d4006(_0x4ff199,_0x4ff199-0x149,_0x56b8da- -0x188,_0x5e57e4-0x1d9);}_0x912555[_0x48b9fd(-_0x105eba._0xeb368b,_0x105eba._0xcb21b4,-_0x105eba._0x2fdf51,0x8)]>0x0&&_0x28abd0[_0x56b43e(-0x16c,-_0x105eba._0x123ce5,-0x151,-_0x105eba._0x3af4af)]({'role':_0x48b9fd(-0x3,0x1d,-_0x105eba._0x4625e3,-_0x105eba._0xb16c0e),'content':_0x912555});function _0x56b43e(_0x59f84b,_0x441285,_0x5b5e7b,_0x550074){return _0x4d4006(_0x5b5e7b,_0x441285-0xb2,_0x441285- -0x200,_0x550074-_0x25d9ab._0x1224f7);}for(const _0x2165d8 of _0x440420[_0x56b43e(-_0x105eba._0x2cb895,-0x215,-0x1ce,-_0x105eba._0x23b4be)]){const _0x37fb10=[],_0x51eadc=[],_0x1edf6f=()=>{const _0x4f3ba7={_0x2fcb60:0x3,_0x777fcf:0x353,_0xb888d8:0x8a};if(_0x2165d8[_0xaa6bdc(_0x33db5a._0x51b5e5,_0x33db5a._0x1b7275,_0x33db5a._0x514b4c,_0x33db5a._0x345c4c)]===_0x4bd115(_0x33db5a._0x4e61f6,0x315,0x330,0x332)){if(_0x37fb10[_0xaa6bdc(0x2ae,0x23f,0x28c,0x21c)]===0x0&&_0x51eadc[_0x4bd115(0x2cb,0x336,_0x33db5a._0x34c6d0,0x2e0)]===0x0)return;_0x28abd0[_0x4bd115(0x2b0,_0x33db5a._0x362c20,0x2e5,0x30b)]({'role':_0xaa6bdc(_0x33db5a._0x22015c,0x291,0x354,_0x33db5a._0x3d79b7),'content':_0x37fb10[_0x4bd115(_0x33db5a._0x4068db,_0x33db5a._0x53d5d6,_0x33db5a._0x410028,_0x33db5a._0x100d38)]>0x0?_0x37fb10[_0x4bd115(_0x33db5a._0x163934,_0x33db5a._0x38c034,_0x33db5a._0x357fb1,0x22a)]('\x0a\x0a'):null,..._0x51eadc['length']>0x0?{'tool_calls':_0x51eadc[_0xaa6bdc(_0x33db5a._0x1d64e2,0x159,0x8e,0x20f)](0x0)}:{}}),_0x37fb10[_0x4bd115(_0x33db5a._0x238bc4,_0x33db5a._0x37507f,0x284,0x2e0)]=0x0;return;}function _0x4bd115(_0x35d89a,_0x53be0a,_0x2db550,_0x10e028){return _0x48b9fd(_0x35d89a-0x31,_0x53be0a,_0x10e028-0x37c,_0x10e028-_0x4faca0._0x336db2);}function _0xaa6bdc(_0x2278fa,_0x17a3df,_0x28b5c5,_0x3f79f6){return _0x56b43e(_0x2278fa-_0x4f3ba7._0x2fcb60,_0x17a3df-_0x4f3ba7._0x777fcf,_0x3f79f6,_0x3f79f6-_0x4f3ba7._0xb888d8);}if(_0x37fb10[_0xaa6bdc(_0x33db5a._0x41ae49,_0x33db5a._0x2ae4d4,_0x33db5a._0x477f76,_0x33db5a._0x4d3785)]===0x0)return;_0x28abd0[_0xaa6bdc(0x2c0,0x26a,_0x33db5a._0x1b7275,0x32a)]({'role':_0x2165d8['role'],'content':_0x37fb10[_0x4bd115(0x25f,0x235,0x2bb,_0x33db5a._0x125efe)]('\x0a\x0a')}),_0x37fb10[_0xaa6bdc(0x22c,_0x33db5a._0x2ae4d4,_0x33db5a._0x579653,0x26c)]=0x0;};for(const _0x2e0740 of normalizeContent(_0x2165d8[_0x48b9fd(-0x24,-0x5b,-_0x105eba._0x50dc81,-0xc0)])){if(_0x2e0740[_0x56b43e(-_0x105eba._0x1464aa,-0x187,-0xeb,-_0x105eba._0x2d7abe)]===_0x56b43e(-0xa2,-_0x105eba._0xcb60b5,-0x185,-0xd0)){_0x37fb10[_0x48b9fd(-_0x105eba._0x558abb,0x3b,-0x71,-_0x105eba._0x32832f)](_0x2e0740[_0x56b43e(-0x186,-0x12e,-_0x105eba._0x1fd599,-_0x105eba._0x19115b)]);continue;}if(_0x2e0740[_0x48b9fd(-_0x105eba._0x25fba6,-_0x105eba._0x3d0f6b,-0x10f,-_0x105eba._0x248950)]===_0x56b43e(-_0x105eba._0x1bae2f,-0x19d,-_0x105eba._0x597f7e,-0x21b)){_0x51eadc[_0x56b43e(-0x19d,-0xe9,-0x33,-_0x105eba._0xfa008c)]({'id':_0x2e0740['id'],'type':_0x48b9fd(-0x102,-0x75,-0xae,-0x5c),'function':{'name':_0x2e0740[_0x48b9fd(-_0x105eba._0x4d11ad,-0xfa,-0x30,-_0x105eba._0x676796)],'arguments':JSON['stringify'](_0x2e0740[_0x56b43e(-_0x105eba._0x5e4841,-0x17a,-0x13b,-0x15b)]??{})}});continue;}if(_0x2e0740[_0x56b43e(-0x11e,-0x187,-0xcf,-0x188)]!==_0x56b43e(-_0x105eba._0x4597b4,-0x11e,-0x8b,-0x6b))continue;_0x1edf6f(),_0x28abd0['push']({'role':'tool','content':getToolResultText(_0x2e0740[_0x48b9fd(-_0x105eba._0x4e2d99,-_0x105eba._0x3efc1e,-0xc6,-_0x105eba._0x481dec)]),'tool_call_id':_0x2e0740[_0x56b43e(-_0x105eba._0x6e88f1,-_0x105eba._0x69c17,-_0x105eba._0x17a36c,-_0x105eba._0x5d0c14)]});const _0x2bd928=getToolResultImages(_0x2e0740[_0x48b9fd(-0x8,-_0x105eba._0x1e76f0,-_0x105eba._0x4db76b,-0x15d)]);_0x2bd928[_0x56b43e(-_0x105eba._0xa5fb7e,-_0x105eba._0x4b9b81,-_0x105eba._0x3e6181,-0x1dc)]>0x0&&_0x28abd0[_0x48b9fd(-0x5e,-_0x105eba._0x2bf403,-0x71,-_0x105eba._0x3944d0)]({'role':_0x48b9fd(-_0x105eba._0x30bd20,-_0x105eba._0x470482,-_0x105eba._0x507fcc,-_0x105eba._0x5d78c4),'content':[{'type':_0x56b43e(-0x123,-_0x105eba._0x285a5b,-0x10f,-0x12c),'text':_0x48b9fd(-0x1f5,-_0x105eba._0x1d380d,-0x17a,-0xb8)+_0x2e0740['tool_use_id']+'.'},..._0x2bd928[_0x56b43e(-_0x105eba._0x7e272f,-0x1b5,-0x1e4,-0x1e8)](_0x3d3ab1=>({'type':_0x56b43e(-0x26,-0xd4,-0xd1,-0xaf),'image_url':{'url':_0x56b43e(-0x6e,-0x12d,-0xea,-0x19f)+_0x3d3ab1[_0x56b43e(-0x24a,-0x19c,-0x130,-0x1bf)][_0x48b9fd(-0xff,-0x153,-0x11e,-0x190)]+_0x48b9fd(-0xe2,-0xe7,-0xe0,-0x124)+_0x3d3ab1['source'][_0x48b9fd(-0x184,-0x74,-0xcf,-0x175)]}}))]});}_0x1edf6f();}const _0x340b27=resolveOpenAiReasoningConfig(_0x440420[_0x56b43e(-0xea,-0x12a,-0xcd,-0x183)]);return{'model':_0x440420['model'],'messages':_0x28abd0,'stream':_0x49bb39,..._0x340b27?{'max_completion_tokens':_0x440420[_0x56b43e(-0x60,-0x9c,-_0x105eba._0x46a622,0x29)]}:{'max_tokens':_0x440420['maxTokens']},..._0x340b27?.[_0x56b43e(-_0x105eba._0x548705,-0x1be,-0x248,-_0x105eba._0xe7d0c5)]?{'reasoning_effort':_0x340b27['effort']}:{},...createToolDefinitions(_0x440420[_0x56b43e(-0x166,-_0x105eba._0x3dd1d4,-_0x105eba._0x5012b8,-0xe5)])?{'tools':createToolDefinitions(_0x440420['tools'])}:{}};}function createResponsesRequestBody(_0x5cc09e,_0x2608bf){return{...toOpenAiResponsesRequest(_0x5cc09e),..._0x2608bf?{'stream':!![]}:{},'store':![]};}function createOpenAiResponsesWebSocketEvent(_0x284ca6,_0x522ebb={}){const _0x22d902={_0x174682:0x18e,_0x129596:0xdf,_0x191f8a:0x14,_0x27c9:0xc6,_0x5295c1:0x1a},_0x342a40={_0x4f6834:0x163,_0x400b0b:0xe,_0x3b479c:0x274};function _0x24af7f(_0x50eb8a,_0x43fe64,_0x4ded36,_0x486427){return _0x18006e(_0x50eb8a-0x16f,_0x43fe64-0xbc,_0x43fe64- -0x24d,_0x4ded36);}const _0xa11c75=toOpenAiResponsesRequest(_0x284ca6);function _0x272017(_0x4849fa,_0x169c41,_0x40f819,_0x3d8928){return _0x18006e(_0x4849fa-_0x342a40._0x4f6834,_0x169c41-_0x342a40._0x400b0b,_0x40f819- -_0x342a40._0x3b479c,_0x169c41);}return{'type':_0x272017(-0x2b7,-0x160,-0x216,-0x25f),..._0xa11c75,..._0x522ebb['input']?{'input':_0x522ebb[_0x24af7f(-0x16c,-_0x22d902._0x174682,-_0x22d902._0x129596,-0x22d)]}:{},..._0x522ebb[_0x24af7f(-_0x22d902._0x191f8a,-_0x22d902._0x27c9,-_0x22d902._0x5295c1,-0x51)]?{'previous_response_id':_0x522ebb[_0x24af7f(-0x10e,-_0x22d902._0x27c9,-0xe9,-0x178)]}:{},'store':![]};}function normalizeAssistantContent(_0x271b21){const _0x3ac8ac={_0x25c777:0xe4,_0x56ba34:0xbf,_0x8ab0ca:0x2b,_0x596c6e:0x119},_0xaf5dfb={_0x3964e1:0x119,_0xfb315f:0x108,_0x5167d7:0xc1,_0x57578e:0x239},_0x3e01a9={_0x5a84e3:0x1f7,_0x4996d1:0xc5},_0x5a235b={_0x1f555e:0xc5,_0x409eb1:0x160};if(typeof _0x271b21===_0x5288d6(-0x122,-0x63,-_0x3ac8ac._0x25c777,-0x118))return _0x271b21;if(!Array[_0x5288d6(0x18,0x23,_0x3ac8ac._0x56ba34,_0x3ac8ac._0x8ab0ca)](_0x271b21))return'';function _0x5288d6(_0x2c87,_0x485b76,_0x4e09a0,_0xc85a88){return _0x4d4006(_0x4e09a0,_0x485b76-_0x5a235b._0x1f555e,_0x485b76- -0xd5,_0xc85a88-_0x5a235b._0x409eb1);}function _0x1e00d3(_0x423c4a,_0x2b3e54,_0x271235,_0x44903c){return _0x4d4006(_0x44903c,_0x2b3e54-0x13f,_0x423c4a- -_0x3e01a9._0x5a84e3,_0x44903c-_0x3e01a9._0x4996d1);}return _0x271b21[_0x1e00d3(-0x1ac,-0x1e2,-0x233,-_0x3ac8ac._0x596c6e)](_0x4de4a2=>{const _0x116de9={_0x3010cd:0x19,_0x5c14c0:0x10e};function _0xaf1c09(_0x52eccc,_0x135372,_0x4220f6,_0x2259b5){return _0x1e00d3(_0x135372-0x22d,_0x135372-_0x116de9._0x3010cd,_0x4220f6-_0x116de9._0x5c14c0,_0x2259b5);}function _0x2a9de5(_0x2e8c70,_0x3b75fe,_0x3521a7,_0x4e715a){return _0x1e00d3(_0x3b75fe- -0xa4,_0x3b75fe-0x13f,_0x3521a7-0x1a5,_0x4e715a);}return _0x4de4a2['type']===_0xaf1c09(_0xaf5dfb._0x3964e1,_0xaf5dfb._0xfb315f,_0xaf5dfb._0x5167d7,0x80)?_0x4de4a2['text']:_0x4de4a2[_0x2a9de5(-0x150,-0x1cb,-0x17d,-_0xaf5dfb._0x57578e)];})['join']('');}function normalizeResponsesMessageContent(_0x33961f){const _0x41158c={_0x3997b3:0x48,_0x48bb05:0x55,_0x37c5e6:0xb0,_0x4a74e9:0x3a,_0x30d764:0xc4},_0x397e22={_0x46bb4b:0x240,_0x1f997b:0x21b,_0x4c6cdb:0x2dc,_0x844638:0x1e8,_0x3cd79b:0x33a,_0x442f16:0x3ea,_0x390ad2:0x337,_0x3f8c60:0x248,_0x36029b:0x1fa,_0x49d77:0x411,_0x3f3f13:0x318},_0x3a4919={_0x35fe50:0xa1},_0x2a003b={_0x3fc904:0x44,_0x31eda4:0x60},_0x37c79f={_0x38b61d:0x17e,_0x426bed:0xa1};function _0x23c32e(_0x4f0108,_0x5d237d,_0x188807,_0x2d7745){return _0x18006e(_0x4f0108-0x7b,_0x5d237d-_0x37c79f._0x38b61d,_0x188807- -_0x37c79f._0x426bed,_0x5d237d);}if(!Array[_0x23c32e(_0x41158c._0x3997b3,_0x41158c._0x48bb05,0x90,_0x41158c._0x37c5e6)](_0x33961f))return'';function _0x254e0b(_0xd2a510,_0x4f4fbe,_0x66ed07,_0x36c3c0){return _0x4d4006(_0x36c3c0,_0x4f4fbe-_0x2a003b._0x3fc904,_0xd2a510-_0x2a003b._0x31eda4,_0x36c3c0-0x1a8);}return _0x33961f[_0x23c32e(0x1a,-0xb4,-0x1d,0x62)](_0x41c46a=>{const _0x3af93b={_0x4690b8:0x34b};if(!_0x41c46a||typeof _0x41c46a!==_0x520bca(_0x397e22._0x46bb4b,0x2e0,0x291,_0x397e22._0x1f997b))return'';const _0x5bfd9f=_0x41c46a;if(_0x5bfd9f[_0x520bca(0x248,_0x397e22._0x4c6cdb,_0x397e22._0x844638,0x2ed)]==='output_text'&&typeof _0x5bfd9f['text']===_0x3882e2(0x327,_0x397e22._0x3cd79b,0x355,_0x397e22._0x442f16))return _0x5bfd9f[_0x520bca(0x2a1,0x2d0,0x35c,_0x397e22._0x390ad2)];if(_0x5bfd9f[_0x520bca(_0x397e22._0x3f8c60,_0x397e22._0x36029b,0x2c0,0x257)]===_0x3882e2(0x3d0,_0x397e22._0x49d77,0x3b3,0x44f)&&typeof _0x5bfd9f['refusal']===_0x3882e2(0x3cd,0x2d9,0x355,_0x397e22._0x3f3f13))return _0x5bfd9f['refusal'];function _0x3882e2(_0x5f2237,_0x23b55f,_0x20f02c,_0x23b8cf){return _0x23c32e(_0x5f2237-0xf1,_0x23b8cf,_0x20f02c-_0x3af93b._0x4690b8,_0x23b8cf-0x49);}function _0x520bca(_0x421a8e,_0x258dd0,_0x4951c7,_0x478ca2){return _0x254e0b(_0x421a8e-0x16f,_0x258dd0-0xaa,_0x4951c7-_0x3a4919._0x35fe50,_0x4951c7);}return'';})[_0x254e0b(0x96,_0x41158c._0x4a74e9,0x6e,_0x41158c._0x30d764)]('');}function extractOpenAiReasoningText(_0x3f0102){const _0x42ad8b={_0x13f32a:0x5e8,_0x3a9911:0x54c,_0x2952a0:0x78,_0x1f41e9:0x105,_0x32c4fc:0x18,_0x5f140e:0x18,_0x475eaa:0x5a5,_0x95503b:0x544,_0x229a52:0x58c,_0x5c7230:0x5b7,_0x3ed370:0x50e,_0x2fe159:0xfc,_0x169a6d:0xd0,_0x390b50:0x6,_0x44d82f:0x17,_0x2ab064:0x500,_0x57217c:0x502},_0xe9ac62={_0x18413b:0xd5,_0x5b7841:0xea,_0x12c4fb:0x181},_0x3da2d2={_0x3d9a33:0x80,_0x395a32:0x4ca};if(typeof _0x3f0102[_0x1fb3de(0x59c,_0x42ad8b._0x13f32a,_0x42ad8b._0x3a9911,0x4d2)]===_0x5bcd23(-0xf,-0xfa,-_0x42ad8b._0x2952a0,-_0x42ad8b._0x1f41e9))return _0x3f0102[_0x5bcd23(0x19,-0xb3,-_0x42ad8b._0x32c4fc,_0x42ad8b._0x5f140e)];function _0x1fb3de(_0x47529e,_0x9c875b,_0x1499e3,_0x1e93a3){return _0x4d4006(_0x1e93a3,_0x9c875b-_0x3da2d2._0x3d9a33,_0x47529e-_0x3da2d2._0x395a32,_0x1e93a3-0x80);}function _0x5bcd23(_0x4e5986,_0x1dcb5d,_0x194130,_0x5013ce){return _0x4d4006(_0x4e5986,_0x1dcb5d-_0xe9ac62._0x18413b,_0x194130- -_0xe9ac62._0x5b7841,_0x5013ce-_0xe9ac62._0x12c4fb);}if(!Array[_0x1fb3de(0x5c2,_0x42ad8b._0x475eaa,0x609,_0x42ad8b._0x95503b)](_0x3f0102[_0x1fb3de(_0x42ad8b._0x229a52,0x5d1,0x63a,_0x42ad8b._0x5c7230)]))return'';return _0x3f0102[_0x1fb3de(_0x42ad8b._0x229a52,0x557,0x649,_0x42ad8b._0x3ed370)][_0x5bcd23(-0x126,-_0x42ad8b._0x2fe159,-_0x42ad8b._0x169a6d,-0x18c)](_0x4175c4=>_0x4175c4[_0x1fb3de(0x543,0x4db,0x5c4,0x4c8)]===_0x1fb3de(0x5f3,0x6b1,0x682,0x645)&&typeof _0x4175c4[_0x1fb3de(0x59c,0x531,0x576,0x4f0)]===_0x1fb3de(0x53c,0x4bf,0x4f8,0x478))[_0x5bcd23(-_0x42ad8b._0x390b50,_0x42ad8b._0x44d82f,-0x9f,0x3)](_0x20bbf7=>_0x20bbf7[_0x5bcd23(-0x5a,0x8a,-0x18,-0x75)]??'')[_0x1fb3de(_0x42ad8b._0x2ab064,0x45e,_0x42ad8b._0x57217c,0x456)]('');}function createOpenAiReasoningBlock(_0x32b2cc){const _0x556c9b={_0xe3d97d:0x37a,_0x4a4ddb:0x3ee,_0x436f41:0x306,_0x2ee8ef:0x32b,_0x45fb44:0x3c9,_0x361f9c:0x4b8,_0x1907eb:0x547,_0x53d278:0x58f},_0x373111={_0x3d0111:0x1dc,_0x3e1b2a:0x7e},_0x53a81e=extractOpenAiReasoningText(_0x32b2cc);function _0x26eab9(_0x125722,_0x194484,_0x21fd7a,_0x2eb62b){return _0x18006e(_0x125722-0x192,_0x194484-0x140,_0x21fd7a-0x4b3,_0x194484);}function _0x10e185(_0x39c044,_0x54cd1d,_0x3b2f1f,_0x2635e9){return _0x18006e(_0x39c044-_0x373111._0x3d0111,_0x54cd1d-_0x373111._0x3e1b2a,_0x39c044-0x270,_0x2635e9);}return{'type':_0x10e185(0x39b,_0x556c9b._0xe3d97d,0x3d3,_0x556c9b._0x4a4ddb),'summary':structuredClone(_0x32b2cc[_0x10e185(_0x556c9b._0x436f41,0x365,_0x556c9b._0x2ee8ef,_0x556c9b._0x45fb44)]??[]),..._0x32b2cc['id']?{'id':_0x32b2cc['id']}:{},..._0x32b2cc[_0x26eab9(0x45d,_0x556c9b._0x361f9c,0x4d0,0x4e4)]?{'encryptedContent':_0x32b2cc[_0x26eab9(_0x556c9b._0x1907eb,_0x556c9b._0x53d278,0x4d0,0x508)]}:{},..._0x53a81e['length']>0x0?{'text':_0x53a81e}:{}};}function hasVisibleOpenAiReasoning(_0x13f2e6){const _0xd97136={_0x140176:0x412,_0x191331:0x39e,_0x546071:0x2a4,_0x3075a8:0x304,_0x31ba45:0x31a},_0x53b077={_0x4cb3c2:0xd8},_0x254aee={_0x15984c:0x292};function _0x461073(_0x24fa5b,_0x8af3f,_0x2f6794,_0x10953f){return _0x4d4006(_0x24fa5b,_0x8af3f-0x119,_0x2f6794-_0x254aee._0x15984c,_0x10953f-0x1e4);}function _0x86ebba(_0x43232a,_0x81cfa7,_0x26adc0,_0x310b01){return _0x4d4006(_0x26adc0,_0x81cfa7-0xee,_0x81cfa7- -_0x53b077._0x4cb3c2,_0x310b01-0x174);}return _0x13f2e6[_0x86ebba(-0x3e,-0x7b,-0xc5,-0x138)]['length']>0x0||typeof _0x13f2e6[_0x461073(0x429,0x3e0,0x364,_0xd97136._0x140176)]===_0x461073(_0xd97136._0x191331,_0xd97136._0x546071,_0xd97136._0x3075a8,_0xd97136._0x31ba45);}function parseChatCompletionResponse(_0x5524cf){const _0x37395f={_0x30fa05:0x298,_0x2b4702:0x1e5,_0x5908ec:0x30a,_0x2597e9:0x2c4,_0x352822:0x23b,_0x4c35c3:0x305,_0x4eb54d:0x2db,_0x2b36a6:0x2fe,_0x47d1e6:0x2a5,_0x4c51c9:0x3ad,_0x579794:0x353,_0x5015b4:0x32d,_0x569623:0x288,_0xbf5412:0x216,_0x854049:0x287,_0x2a5b78:0x27e,_0x341a02:0x236,_0x4307e1:0x273,_0x3c515a:0x2aa,_0x22becf:0x294,_0x50f870:0x28d},_0x3113ea={_0x34c571:0x1ca,_0x54c218:0xea},_0x1db242={_0xf1fddc:0x84,_0xaba0a9:0x224,_0x259392:0x58},_0x5da47f=[],_0x319068=[];let _0x2dcabd='end_turn';for(const _0x2139ab of _0x5524cf[_0x5b4a42(_0x37395f._0x30fa05,0x2a7,_0x37395f._0x2b4702,_0x37395f._0x5908ec)]??[]){const _0x20880f=_0x2139ab[_0x4a41f3(_0x37395f._0x2597e9,0x1ed,_0x37395f._0x352822,0x2dc)],_0x5b178e=normalizeAssistantContent(_0x20880f?.['content']);_0x5b178e['length']>0x0&&_0x5da47f['push'](_0x5b178e),_0x20880f?.[_0x5b4a42(0x2af,_0x37395f._0x4c35c3,0x2e6,_0x37395f._0x4eb54d)]&&_0x319068[_0x4a41f3(_0x37395f._0x2b36a6,_0x37395f._0x47d1e6,0x23a,0x227)](..._0x20880f[_0x5b4a42(_0x37395f._0x4c51c9,_0x37395f._0x4c35c3,0x2d5,_0x37395f._0x579794)]),_0x2139ab['finish_reason']===_0x5b4a42(0x334,0x305,_0x37395f._0x5015b4,_0x37395f._0x569623)&&(_0x2dcabd=_0x5b4a42(_0x37395f._0xbf5412,_0x37395f._0x854049,0x1e6,0x2d5));}function _0x5b4a42(_0xf366f5,_0x5380a6,_0x272f4e,_0x5e73f1){return _0x4d4006(_0xf366f5,_0x5380a6-_0x1db242._0xf1fddc,_0x5380a6-_0x1db242._0xaba0a9,_0x5e73f1-_0x1db242._0x259392);}function _0x4a41f3(_0x1c2400,_0x1a218c,_0x3ee4a5,_0x6090c8){return _0x18006e(_0x1c2400-0x30,_0x1a218c-_0x3113ea._0x34c571,_0x3ee4a5-_0x3113ea._0x54c218,_0x1a218c);}return _0x319068[_0x4a41f3(0x247,0x272,0x20f,0x25b)]>0x0&&(_0x2dcabd='tool_use'),{'id':_0x5524cf['id']??_0x5b4a42(0x240,_0x37395f._0x2a5b78,_0x37395f._0x341a02,0x1f7)+Date['now'](),'content':createContentBlocks(_0x5da47f[_0x5b4a42(_0x37395f._0x4307e1,0x25a,0x319,_0x37395f._0x3c515a)](''),_0x319068),'stopReason':_0x2dcabd,'usage':createUsage(_0x5524cf[_0x5b4a42(_0x37395f._0x22becf,0x34a,_0x37395f._0x50f870,0x355)])};}function parseResponsesResponse(_0x2fe194,_0x6f3132){const _0x5b07c4={_0x578647:0x4ed,_0x574a18:0x462,_0xb82b12:0x43b,_0x1d8a39:0x520,_0x217c92:0x502,_0x205d0d:0x603,_0x34b70f:0x594,_0x31d819:0x498,_0x30a939:0x48a,_0x2d4267:0x476,_0xb9f3f3:0x4cf,_0x13d039:0x539,_0x130548:0x4ce,_0x2eaff1:0x620,_0x34d7b3:0x6a2,_0x4c86f0:0x4e1,_0x2bf0f7:0x644,_0x4ac6e0:0x677,_0x3ac13d:0x694,_0x393c5c:0x55b,_0x1e0a71:0x54a,_0x21d475:0x44d,_0x4a99a8:0x4d5,_0x2e4812:0x57a,_0x3f334e:0x4d0,_0x3949a4:0x65d,_0x54cc64:0x5cf,_0x160486:0x4b2,_0x3221b4:0x53d,_0x569310:0x671,_0x5a139b:0x4ac,_0x57e594:0x4c8,_0xe6a9a2:0x3cf,_0x4feba8:0x499,_0x1ccf83:0x555,_0x15d6cc:0x463,_0x408350:0x694,_0x41144b:0x53b,_0x5ee21e:0x55a,_0x38c8ca:0x541,_0x1da562:0x405,_0x13c2fb:0x584,_0xc347a2:0x612,_0xb00862:0x649,_0xb2492:0x59a,_0x5deea1:0x683,_0x38b457:0x5fc,_0x2edec4:0x610,_0x4400df:0x69e,_0x30d765:0x531,_0x2dcedc:0x553,_0x39bcac:0x584,_0x2b89f3:0x636,_0x2dad3d:0x4d3,_0x2fba9c:0x433,_0x4d5b08:0x559,_0x39df77:0x4ed,_0x5285e4:0x58f,_0x5d266a:0x4d3,_0x5b281c:0x424,_0x4e7eb3:0x467,_0x1ffffe:0x462,_0x34efab:0x491,_0x2aa2c4:0x572},_0x456e00={_0x31dcf9:0x4a,_0x52785f:0x1c2},_0x912b5a=[];for(const _0x326642 of _0x2fe194[_0xc8b618(_0x5b07c4._0x578647,0x3ba,_0x5b07c4._0x574a18,_0x5b07c4._0xb82b12)]??[]){if(isResponsesReasoningItem(_0x326642)){if(isUserVisibleReasoning(_0x6f3132)){const _0x52aabb=createOpenAiReasoningBlock(_0x326642);hasVisibleOpenAiReasoning(_0x52aabb)&&_0x912b5a['push'](_0x52aabb);}continue;}if(isResponsesMessageItem(_0x326642)){const _0x4952e2=normalizeResponsesMessageContent(_0x326642[_0xc8b618(0x559,_0x5b07c4._0x1d8a39,0x520,_0x5b07c4._0x217c92)]);_0x4952e2['length']>0x0&&_0x912b5a[_0x5e771a(_0x5b07c4._0x205d0d,0x6b5,_0x5b07c4._0x34b70f,0x64e)]({'type':'text','text':_0x4952e2});continue;}if(!isResponsesFunctionCallItem(_0x326642)||typeof _0x326642[_0xc8b618(_0x5b07c4._0x31d819,_0x5b07c4._0x30a939,_0x5b07c4._0x2d4267,_0x5b07c4._0xb9f3f3)]!==_0xc8b618(_0x5b07c4._0x13d039,0x4f8,0x4d0,_0x5b07c4._0x130548)||_0x326642[_0x5e771a(0x504,0x485,0x587,0x4e2)][_0xc8b618(_0x5b07c4._0x2eaff1,0x4d7,0x588,0x4f7)]()[_0x5e771a(0x5d8,0x608,_0x5b07c4._0x34d7b3,0x5d2)]===0x0||typeof _0x326642['name']!==_0x5e771a(0x55e,0x57a,_0x5b07c4._0x4c86f0,0x572)||_0x326642[_0x5e771a(_0x5b07c4._0x2bf0f7,_0x5b07c4._0x4ac6e0,0x5eb,_0x5b07c4._0x3ac13d)]['trim']()[_0xc8b618(_0x5b07c4._0x393c5c,0x5b2,_0x5b07c4._0x1e0a71,0x4c2)]===0x0||typeof _0x326642[_0xc8b618(0x4a9,_0x5b07c4._0x21d475,0x4b2,_0x5b07c4._0x4a99a8)]!==_0xc8b618(_0x5b07c4._0x2e4812,0x534,_0x5b07c4._0x3f334e,0x4be))continue;_0x912b5a[_0x5e771a(0x603,_0x5b07c4._0x3949a4,0x602,_0x5b07c4._0x54cc64)]({'type':_0x5e771a(0x54f,_0x5b07c4._0x160486,0x568,_0x5b07c4._0x3221b4),'id':_0x326642[_0x5e771a(0x504,0x557,0x590,0x4a0)],'name':_0x326642[_0x5e771a(0x644,0x5bb,_0x5b07c4._0x569310,0x5bd)],'input':parseToolInput2(_0x326642[_0x5e771a(0x540,0x4d6,0x489,_0x5b07c4._0x5a139b)])});}!_0x912b5a[_0xc8b618(_0x5b07c4._0x57e594,_0x5b07c4._0xe6a9a2,_0x5b07c4._0x4feba8,0x561)](_0x4ef22d=>_0x4ef22d[_0xc8b618(0x555,0x4ca,0x4d7,0x530)]==='text')&&_0x2fe194[_0x5e771a(_0x5b07c4._0x217c92,_0x5b07c4._0x1ccf83,0x4f7,_0x5b07c4._0x15d6cc)]&&_0x912b5a[_0x5e771a(_0x5b07c4._0x205d0d,_0x5b07c4._0x408350,_0x5b07c4._0x41144b,_0x5b07c4._0x5ee21e)]({'type':_0x5e771a(0x5be,0x594,0x5d1,_0x5b07c4._0x38c8ca),'text':_0x2fe194[_0xc8b618(0x47c,0x3f8,0x474,_0x5b07c4._0x1da562)]});function _0x5e771a(_0x255656,_0x4b4fd0,_0x2f1e46,_0x2f95a5){return _0x4d4006(_0x2f95a5,_0x4b4fd0-0x1b4,_0x255656-0x4ec,_0x2f95a5-0x33);}function _0xc8b618(_0x265e99,_0x5949fc,_0x22f1d9,_0x32f040){return _0x18006e(_0x265e99-_0x456e00._0x31dcf9,_0x5949fc-_0x456e00._0x52785f,_0x22f1d9-0x425,_0x32f040);}return{'id':_0x2fe194['id'],'content':_0x912b5a,'stopReason':_0x912b5a[_0x5e771a(0x527,0x53d,0x46e,_0x5b07c4._0x13c2fb)](_0x40a70b=>_0x40a70b[_0xc8b618(0x488,0x50e,0x4d7,0x578)]===_0xc8b618(0x405,0x485,0x4c1,0x468))?'tool_use':'end_turn','usage':{'inputTokens':_0x2fe194[_0x5e771a(_0x5b07c4._0xc347a2,_0x5b07c4._0xb00862,0x675,_0x5b07c4._0xb2492)]?.[_0xc8b618(0x60c,0x5ca,0x5ce,_0x5b07c4._0x5deea1)]??0x0,'outputTokens':_0x2fe194[_0xc8b618(0x63c,_0x5b07c4._0x38b457,0x584,0x54d)]?.[_0x5e771a(0x654,0x707,_0x5b07c4._0x2edec4,_0x5b07c4._0x4400df)]??0x0,..._0x2fe194[_0xc8b618(_0x5b07c4._0x30d765,_0x5b07c4._0x2dcedc,_0x5b07c4._0x39bcac,_0x5b07c4._0x2b89f3)]?.[_0xc8b618(0x4e1,0x61e,0x58f,0x606)]?.[_0x5e771a(_0x5b07c4._0x2dad3d,_0x5b07c4._0x2fba9c,0x553,_0x5b07c4._0x4d5b08)]!==void 0x0?{'reasoningTokens':_0x2fe194['usage'][_0xc8b618(_0x5b07c4._0x39df77,0x585,_0x5b07c4._0x5285e4,0x5e1)][_0x5e771a(_0x5b07c4._0x5d266a,0x4fe,0x55f,_0x5b07c4._0x5b281c)]}:{}},..._0x2fe194[_0xc8b618(0x48d,_0x5b07c4._0x4e7eb3,_0x5b07c4._0x1ffffe,0x52a)]?{'providerState':{'openaiResponsesOutput':structuredClone(_0x2fe194[_0x5e771a(0x4f0,0x4b1,_0x5b07c4._0x34efab,_0x5b07c4._0x2aa2c4)]),'openaiResponsesResponseId':_0x2fe194['id']}}:{}};}function extractErrorMessage(_0x6b0c3d){const _0x38c67a={_0x3c5ae7:0x10f,_0x5cfe40:0x174,_0x1c4e35:0x119,_0x56b670:0x3f,_0x51001a:0xf2,_0x396981:0x1e5,_0x5ac83d:0x19c,_0x259367:0x1af,_0x5b11bc:0x303,_0x9ad901:0x255,_0xe12969:0x1a2,_0x2cc9e7:0x291,_0x493a01:0x197,_0x11372d:0x1cf,_0x3f850c:0x161,_0x11d497:0x1eb,_0x591e8d:0x14c,_0x1f846e:0x2c0,_0x17edd3:0x2e1,_0x3d915c:0x267,_0x5948c2:0x247,_0x9c0f40:0x120,_0x147d81:0x18d,_0x7963f2:0x143,_0x3b07e7:0x102,_0x1e2862:0x18d,_0x36e96f:0x229,_0x536cad:0x2c7},_0x975aa9={_0x2448be:0x6a};function _0xfef3bc(_0x2670fa,_0x4ea6da,_0x45029c,_0x377918){return _0x18006e(_0x2670fa-0x145,_0x4ea6da-0x42,_0x377918-0x3c,_0x2670fa);}function _0x47d653(_0x428fa0,_0x5c1d0f,_0x12d570,_0x1a9db7){return _0x18006e(_0x428fa0-_0x975aa9._0x2448be,_0x5c1d0f-0x1c8,_0x5c1d0f-0x104,_0x428fa0);}if(_0x6b0c3d[_0xfef3bc(0xc6,_0x38c67a._0x3c5ae7,_0x38c67a._0x5cfe40,0x161)]===0x0)return'';try{const _0x2e14ca=JSON[_0xfef3bc(_0x38c67a._0x1c4e35,-_0x38c67a._0x56b670,0xa3,0x72)](_0x6b0c3d);if(typeof _0x2e14ca[_0xfef3bc(_0x38c67a._0x51001a,_0x38c67a._0x396981,_0x38c67a._0x5ac83d,0x123)]?.['message']===_0x47d653(0x128,_0x38c67a._0x259367,0x1a6,0x1d0)&&_0x2e14ca['error'][_0x47d653(_0x38c67a._0x5b11bc,_0x38c67a._0x9ad901,_0x38c67a._0xe12969,_0x38c67a._0x2cc9e7)]['trim']()[_0xfef3bc(0x172,_0x38c67a._0x493a01,_0x38c67a._0x11372d,_0x38c67a._0x3f850c)]>0x0)return _0x2e14ca[_0x47d653(0x206,_0x38c67a._0x11d497,_0x38c67a._0x591e8d,0x133)][_0x47d653(_0x38c67a._0x1f846e,0x255,_0x38c67a._0x17edd3,0x30c)][_0x47d653(0x314,_0x38c67a._0x3d915c,0x21a,0x2c5)]();if(typeof _0x2e14ca[_0xfef3bc(_0x38c67a._0x5948c2,_0x38c67a._0x9c0f40,0x235,_0x38c67a._0x147d81)]===_0x47d653(_0x38c67a._0x7963f2,0x1af,_0x38c67a._0x3b07e7,0x22d)&&_0x2e14ca[_0xfef3bc(0x226,0x199,0x14e,_0x38c67a._0x1e2862)]['trim']()[_0x47d653(0x1ad,_0x38c67a._0x36e96f,_0x38c67a._0x536cad,0x24c)]>0x0)return _0x2e14ca['message']['trim']();}catch{return _0x6b0c3d;}return _0x6b0c3d;}async function createOpenAiApiError(_0xa9bd2d){const _0x5d9257={_0x2ff50e:0x455,_0x5981ad:0x456,_0x42f40e:0x42f,_0xc6d262:0x533,_0x5d317a:0x4a0,_0x181758:0x4f1,_0x67353e:0x5a9,_0x4ab797:0x462,_0x5b3035:0x37d,_0x31ff1a:0x43a,_0x5ea1b3:0x338},_0x5603d9={_0x5285cd:0x139,_0x1321bb:0x34a},_0x1f9d2a=(await _0xa9bd2d[_0x13edc7(_0x5d9257._0x2ff50e,_0x5d9257._0x5981ad,_0x5d9257._0x42f40e,0x457)]())['trim']();function _0x13edc7(_0x17ecd2,_0x537c3f,_0x13fa99,_0x2afe11){return _0x18006e(_0x17ecd2-0x18a,_0x537c3f-_0x5603d9._0x5285cd,_0x17ecd2-_0x5603d9._0x1321bb,_0x13fa99);}function _0x1484cc(_0x26eda2,_0x3af87e,_0x2e5421,_0xf621fc){return _0x18006e(_0x26eda2-0x13d,_0x3af87e-0x158,_0xf621fc-0x42f,_0x3af87e);}const _0x53ebc1=extractErrorMessage(_0x1f9d2a)||_0xa9bd2d[_0x1484cc(_0x5d9257._0xc6d262,0x578,_0x5d9257._0x5d317a,_0x5d9257._0x181758)]||_0x1484cc(_0x5d9257._0x67353e,0x4d1,0x536,0x531)+_0xa9bd2d[_0x1484cc(0x3bc,0x4bb,0x430,_0x5d9257._0x4ab797)];return new OpenAiApiError(_0xa9bd2d[_0x13edc7(_0x5d9257._0x5b3035,_0x5d9257._0x31ff1a,_0x5d9257._0x5ea1b3,0x420)],_0x1f9d2a,_0x53ebc1);}function readSseData(_0x52ee6a){const _0x400e98={_0x132ef0:0xd1,_0x45a79a:0x177,_0x20a4fa:0x6f,_0x91bb9f:0x36,_0x16eecb:0x92},_0x297d58={_0x14653d:0x102,_0x3e36b7:0x5b},_0x23a662={_0x42d536:0x1c1};function _0x5002f3(_0x42f1ad,_0x4f4cc2,_0x1a3d83,_0x6c6797){return _0x18006e(_0x42f1ad-0x189,_0x4f4cc2-0x57,_0x6c6797- -_0x23a662._0x42d536,_0x1a3d83);}function _0x1efba2(_0x2abc16,_0x95fc38,_0x269a5d,_0x6e2098){return _0x18006e(_0x2abc16-_0x297d58._0x14653d,_0x95fc38-0x90,_0x95fc38- -_0x297d58._0x3e36b7,_0x6e2098);}return _0x52ee6a[_0x5002f3(-_0x400e98._0x132ef0,-0x4e,-_0x400e98._0x45a79a,-0xc2)]('\x0a')[_0x1efba2(-0xc8,-0x8,0x81,0x5f)](_0x5037a3=>_0x5037a3['startsWith'](_0x1efba2(0x62,0xb1,0x54,0x130)))[_0x1efba2(-_0x400e98._0x20a4fa,0x29,0x8e,-0x67)](_0x1368eb=>_0x1368eb[_0x1efba2(0x19a,0xda,0x141,0x123)](0x5)['trimStart']())['join']('\x0a')[_0x5002f3(_0x400e98._0x91bb9f,-_0x400e98._0x16eecb,0x5b,-0x5e)]();}function readString(_0x568de4){const _0x1e79ba={_0x49f5ec:0x4d,_0x349632:0x48,_0x56c295:0x76,_0x20df16:0x68,_0x37a875:0x7c},_0x4f0960={_0xc83a69:0x1c7,_0x47eeea:0xec},_0x5cb33a={_0x487566:0x1a4};function _0x21ee87(_0x3802d8,_0x2c6bac,_0x590cb3,_0x1a0ad4){return _0x4d4006(_0x2c6bac,_0x2c6bac-0x1ca,_0x3802d8- -0xbf,_0x1a0ad4-_0x5cb33a._0x487566);}function _0x52e7d2(_0x91b1c6,_0x2fbc51,_0xaa60ee,_0x399512){return _0x4d4006(_0x399512,_0x2fbc51-_0x4f0960._0xc83a69,_0x91b1c6- -0x239,_0x399512-_0x4f0960._0x47eeea);}return typeof _0x568de4===_0x21ee87(-_0x1e79ba._0x49f5ec,_0x1e79ba._0x349632,-_0x1e79ba._0x56c295,0x41)&&_0x568de4[_0x21ee87(0x2d,_0x1e79ba._0x20df16,0x89,_0x1e79ba._0x37a875)]>0x0?_0x568de4:void 0x0;}function extractReasoningDetails(_0x1f9096){const _0x12dfa3={_0x4c85cd:0x297,_0x32e562:0x239,_0x2ed3ce:0x1f5,_0x383d1a:0x1e1,_0x238209:0x23e},_0x1d909a={_0xdd6f9e:0x9f,_0x477300:0x37f,_0x1e2839:0x2f3,_0x581bfa:0x1,_0x5b14c5:0x9,_0x28ab97:0x338},_0x1851cd={_0x4dfa14:0x177,_0x3159b9:0x172},_0x33bdd0={_0x103a04:0x272};function _0x41a92b(_0x52b7bf,_0x1e7ba7,_0x4a2d55,_0x2df846){return _0x18006e(_0x52b7bf-0x167,_0x1e7ba7-0x190,_0x4a2d55-_0x33bdd0._0x103a04,_0x52b7bf);}if(!Array['isArray'](_0x1f9096))return void 0x0;function _0x18f6ea(_0x3b2f71,_0x53d1a2,_0x335332,_0x5a4800){return _0x18006e(_0x3b2f71-0x17,_0x53d1a2-_0x1851cd._0x4dfa14,_0x3b2f71-_0x1851cd._0x3159b9,_0x335332);}const _0x21f809=_0x1f9096['flatMap'](_0x513ebf=>{const _0x4da160={_0x1bc7fd:0x10a};function _0x2c01cf(_0x23e75b,_0x451647,_0x1db222,_0x5bddc5){return _0x2cfd(_0x1db222- -_0x4da160._0x1bc7fd,_0x451647);}if(!_0x513ebf||typeof _0x513ebf!==_0x2c01cf(-0x1e,0x152,_0x1d909a._0xdd6f9e,0x167))return[];const _0x4afdb1=_0x513ebf;function _0x35759d(_0x2e5b99,_0x2f2b2,_0x3e1276,_0x2f3d8e){return _0x2cfd(_0x2f3d8e-0xe9,_0x3e1276);}if(typeof _0x4afdb1[_0x35759d(0x2e5,_0x1d909a._0x477300,0x2ff,_0x1d909a._0x1e2839)]===_0x2c01cf(0x11c,_0x1d909a._0x581bfa,0xa0,-_0x1d909a._0x5b14c5))return[_0x4afdb1['text']];if(typeof _0x4afdb1[_0x35759d(0x28f,0x2cf,0x285,0x27e)]===_0x2c01cf(0x15f,0x97,0xa0,0x119))return[_0x4afdb1[_0x35759d(0x23e,_0x1d909a._0x28ab97,0x2a2,0x27e)]];return[];});return _0x21f809[_0x18f6ea(_0x12dfa3._0x4c85cd,_0x12dfa3._0x32e562,0x22b,_0x12dfa3._0x2ed3ce)]>0x0?_0x21f809[_0x18f6ea(_0x12dfa3._0x383d1a,0x13d,_0x12dfa3._0x238209,0x1c6)](''):void 0x0;}function extractChatCompletionReasoningDelta(_0x4e4883){const _0xd7722b={_0x439e96:0xdc,_0x3cf2ac:0x8a,_0x1fe2ba:0x30,_0x3f5f3:0x13d,_0xa56e9f:0x1,_0x49258b:0x24,_0x460813:0x46,_0x3c6782:0x5e,_0x1df8b0:0x73,_0x5b1ae5:0xc1,_0x124619:0x67,_0x2c587d:0xaf,_0x59d223:0x165,_0x11c698:0xd5},_0x17a006={_0x59eec2:0x77},_0x4ecd58={_0x17df08:0x54,_0x4b5378:0x1b0};function _0x36937c(_0x1daf8e,_0x3fab4d,_0x549210,_0x2d2e1d){return _0x4d4006(_0x1daf8e,_0x3fab4d-0x11b,_0x2d2e1d- -_0x4ecd58._0x17df08,_0x2d2e1d-_0x4ecd58._0x4b5378);}function _0x18768d(_0x1729dd,_0x529393,_0x4da2cf,_0x5f0ff6){return _0x4d4006(_0x4da2cf,_0x529393-0x1d8,_0x1729dd- -0xd7,_0x5f0ff6-_0x17a006._0x59eec2);}return extractReasoningDetails(_0x4e4883?.[_0x18768d(-_0xd7722b._0x439e96,-_0xd7722b._0x3cf2ac,-_0xd7722b._0x1fe2ba,-_0xd7722b._0x3f5f3)])??readString(_0x4e4883?.[_0x18768d(-_0xd7722b._0xa56e9f,-_0xd7722b._0x49258b,-_0xd7722b._0x460813,_0xd7722b._0x3c6782)])??readString(_0x4e4883?.[_0x36937c(_0xd7722b._0x1df8b0,0x93,_0xd7722b._0x5b1ae5,_0xd7722b._0x124619)])??readString(_0x4e4883?.[_0x36937c(_0xd7722b._0x2c587d,_0xd7722b._0x59d223,0x81,_0xd7722b._0x11c698)])??'';}var OpenAiChatCompletionsStreamParser=class{[_0x18006e(0x170,0x139,0xe0,0x156)]=[];[_0x4d4006(0x3,0x48,0x8f,0x145)];[_0x18006e(0xf4,0x55,0xa2,0x150)]=[];['toolCallsByIndex']=new Map();[_0x4d4006(0xc0,0x4a,0xab,0x13a)]=[];[_0x4d4006(0x132,0x128,0xed,0x151)]=new Set();[_0x18006e(0x122,0x149,0xb3,0x4)]='';[_0x4d4006(-0x11,0x5a,0x9d,0x14d)]=_0x4d4006(0x83,0xd4,0x65,0x60);[_0x18006e(0x204,0x16c,0x15f,0x20a)];constructor(_0x19829c){const _0x553b75={_0x5c4008:0x5a,_0x4a3679:0xa5},_0x4791b0={_0x9453e1:0x17};function _0x252657(_0x1b1532,_0xaceb7c,_0x3636f0,_0x2c6cf6){return _0x4d4006(_0x2c6cf6,_0xaceb7c-0x33,_0xaceb7c- -0x35,_0x2c6cf6-_0x4791b0._0x9453e1);}this[_0x252657(0xd2,_0x553b75._0x5c4008,_0x553b75._0x4a3679,0xe2)]=_0x19829c;}[_0x18006e(0x204,0x85,0x149,0xcd)](_0x4a88e){const _0xbc0c27={_0xcde89f:0x15c,_0x5e87b1:0x12e,_0x521756:0x3a7,_0x3aaca6:0x33e,_0xda1cd4:0x42a,_0x419bb7:0x34e,_0x22a805:0x2f3,_0x4c0383:0x304,_0x2375aa:0x279,_0x5b632e:0x2c0,_0x1e2f08:0x25f,_0x3a6938:0x299,_0x448501:0x39c,_0x5d8b87:0x364,_0x57c79e:0x3bc},_0x21b580={_0x2a93f3:0x2f4},_0xbfcd7={_0x48fbfa:0x16f,_0x20dc57:0x11a};function _0x213f39(_0x3fb636,_0x4f81b8,_0x2d6649,_0x301501){return _0x18006e(_0x3fb636-_0xbfcd7._0x48fbfa,_0x4f81b8-0xaf,_0x3fb636-_0xbfcd7._0x20dc57,_0x2d6649);}function _0x2c9da6(_0x375304,_0x586c46,_0x342cfd,_0x416596){return _0x18006e(_0x375304-0x1e8,_0x586c46-0xe3,_0x375304-_0x21b580._0x2a93f3,_0x416596);}const _0x5dffa5=readSseData(_0x4a88e);if(_0x5dffa5['length']===0x0||_0x5dffa5==='[DONE]')return[];const _0x11b54a=JSON[_0x213f39(0x150,_0xbc0c27._0xcde89f,0x12f,_0xbc0c27._0x5e87b1)](_0x5dffa5);return this[_0x2c9da6(_0xbc0c27._0x521756,_0xbc0c27._0x3aaca6,0x3b1,_0xbc0c27._0xda1cd4)]=_0x11b54a['id']??this[_0x2c9da6(0x3a7,0x3ea,_0xbc0c27._0x419bb7,_0xbc0c27._0x22a805)],this[_0x213f39(0x279,0x208,0x32b,_0xbc0c27._0x4c0383)]=_0x11b54a[_0x213f39(_0xbc0c27._0x2375aa,_0xbc0c27._0x5b632e,_0xbc0c27._0x1e2f08,0x2ab)]??this[_0x213f39(0x279,0x221,_0xbc0c27._0x3a6938,0x1fb)],this[_0x2c9da6(_0xbc0c27._0x448501,_0xbc0c27._0x5d8b87,_0xbc0c27._0x57c79e,0x30d)](_0x11b54a);}[_0x18006e(0xe8,0x1e3,0x186,0xff)](){const _0x404ff2={_0x2f1098:0x462,_0x207ec9:0x3a3,_0x342ebc:0x507,_0x336572:0x4a3,_0x2e22aa:0x464,_0x14e9c8:0x5cb,_0x749fcf:0x599,_0x1f2149:0x5ee,_0x331a88:0x3ed,_0x5cddde:0x35f,_0x2e541c:0x371,_0x339ca6:0x460,_0x2cc0fb:0x368,_0x50eb02:0x670,_0x21fd4b:0x712,_0xc2f57a:0x403,_0x5cbc6a:0x5e2,_0x2abe73:0x546,_0x1be5d3:0x610,_0x3c0098:0x649,_0x1cd4e2:0x5ad,_0x261bed:0x50b,_0x1744fc:0x4e7,_0x1c455f:0x56c,_0x24db93:0x43c},_0x31673a={_0x377b38:0xcb},_0x3a4661={_0x50594c:0x1cc,_0x51474f:0x37e};function _0x20ea1a(_0x3e8451,_0x4b8c84,_0x1bcbed,_0x4fd9e3){return _0x18006e(_0x3e8451-_0x3a4661._0x50594c,_0x4b8c84-0x190,_0x3e8451-_0x3a4661._0x51474f,_0x4fd9e3);}this[_0x20ea1a(_0x404ff2._0x2f1098,_0x404ff2._0x207ec9,_0x404ff2._0x342ebc,0x501)][_0x20ea1a(_0x404ff2._0x336572,0x4e6,_0x404ff2._0x2e22aa,0x47d)]>0x0&&(this['stopReason']=_0x2eea18(_0x404ff2._0x14e9c8,0x573,0x4c1,_0x404ff2._0x749fcf));const _0x38944c=isUserVisibleReasoning(this[_0x2eea18(0x5c7,0x59f,_0x404ff2._0x1f2149,0x596)])?this['reasoningParts'][_0x20ea1a(_0x404ff2._0x331a88,0x454,_0x404ff2._0x5cddde,_0x404ff2._0x2e541c)](''):void 0x0;function _0x2eea18(_0x57fe0f,_0x62c062,_0x47287e,_0x52dd5d){return _0x18006e(_0x57fe0f-_0x31673a._0x377b38,_0x62c062-0x1bd,_0x62c062-0x4d7,_0x52dd5d);}return{'id':this[_0x20ea1a(0x431,0x3e9,_0x404ff2._0x339ca6,_0x404ff2._0x2cc0fb)]||'chatcmpl-'+Date[_0x2eea18(0x6f5,_0x404ff2._0x50eb02,0x604,_0x404ff2._0x21fd4b)](),'content':createContentBlocks(this[_0x20ea1a(0x420,0x4a8,_0x404ff2._0xc2f57a,0x4c2)][_0x2eea18(_0x404ff2._0x5cbc6a,_0x404ff2._0x2abe73,0x568,_0x404ff2._0x1be5d3)](''),this['toolCallOrder'],_0x38944c),'stopReason':this[_0x2eea18(_0x404ff2._0x3c0098,_0x404ff2._0x1cd4e2,0x60b,_0x404ff2._0x261bed)],'usage':createUsage(this[_0x20ea1a(0x4dd,_0x404ff2._0x1744fc,_0x404ff2._0x1c455f,_0x404ff2._0x24db93)])};}[_0x18006e(0x167,0xf2,0xa8,0xb7)](_0xa0147f){const _0x512a21={_0x249d72:0x15b,_0x541127:0x118,_0xd719ae:0xff,_0x4f0052:0xf2,_0x221a4e:0x176,_0x46a773:0x280,_0x3fdb58:0x181,_0x2b7915:0x260,_0x3be19e:0x2af,_0x4b0fc1:0x204,_0x1c64e3:0x1f1,_0x3bc1c6:0x294,_0x6ff25:0xc7,_0x8b2013:0x34,_0x1c4447:0x178,_0x55af8e:0x263,_0x19a8ab:0x1be,_0x515012:0x1ed,_0x34c5b6:0x25b,_0x5039a:0x113,_0x324314:0x77,_0x5ce3c6:0x65,_0xee2a36:0x6c,_0x209dea:0x2c1,_0xcc8a2e:0x25f,_0x2d6dc7:0x2e5,_0x52c99f:0xb5,_0x53ca20:0xf4,_0x544800:0x16c,_0x27a722:0x103,_0x30dc52:0x1b4,_0x5b6ce1:0x161,_0x1aee35:0x1cd,_0x5e9174:0x2bc,_0x3ab5b6:0x26f,_0x248229:0x19b,_0x432ec1:0x4b,_0x1a75dc:0x6b,_0xc450e5:0x307,_0x55bb5e:0x279,_0x2b8524:0x2b0,_0x5ebb4a:0xc7,_0x259746:0xba,_0xaddc91:0x1c3,_0x3fdb26:0x28b,_0xc21fe1:0xd1,_0x540355:0x17d,_0xe4f0bb:0x104,_0x12b871:0x86,_0x516438:0x17d,_0x257899:0x3e,_0x3747ba:0x2d,_0x253007:0x2a4,_0x4e065b:0x281,_0x3c83f3:0x328,_0x4973ef:0x339,_0x419af6:0x37d,_0x1a71b8:0xb3,_0x22d4a6:0xbc,_0x3eeccd:0x108,_0x1b257e:0x2d5,_0xafaf70:0x285,_0x6d9707:0x23c,_0x2a0975:0x1fe,_0x4daafc:0x104,_0x1bcaf6:0x8f,_0x469145:0x14a,_0x57b06b:0x23c,_0x29a3ca:0x2cc,_0x3c6638:0xf1,_0x473b49:0x1aa,_0x439764:0x1af,_0x2b9b2b:0x70,_0x42d26d:0x8f,_0x49c051:0xb4,_0x3c36fd:0xad,_0x1af87a:0x21,_0x218360:0x166,_0x1f213b:0x1fb,_0x183987:0x13e,_0x512675:0x36f,_0x540370:0x2ba,_0xee2b26:0x2db,_0x2dc7fd:0xf1,_0x2f20c0:0x7d,_0x12d54d:0x126,_0x14785e:0x11d,_0x17df3c:0x357,_0x498ac2:0x28d,_0x480557:0x331,_0x11769a:0x5b,_0x56ef9b:0x82,_0x40139d:0x174,_0x5275a3:0x1b6,_0x4a2253:0x1c2,_0x42c633:0xf2,_0x517045:0x4d,_0x5c025e:0x25c,_0x5bc57d:0x18a,_0x388032:0x23a,_0x1d3ece:0x1f8,_0x24e077:0x2a1,_0x323954:0xdf,_0x3a5436:0x16,_0x3d190d:0x1ff,_0x3055d4:0x139,_0x3bb8f0:0x1e1},_0xefdb35={_0x173db9:0x1c9},_0x54379b={_0x415090:0xcc,_0x4117af:0x217};function _0x3feb76(_0x533a5f,_0x315573,_0xc56212,_0x283b29){return _0x18006e(_0x533a5f-_0x54379b._0x415090,_0x315573-0x18,_0x533a5f- -_0x54379b._0x4117af,_0x315573);}const _0x3d265b=[];for(const _0x575886 of _0xa0147f[_0x3feb76(-_0x512a21._0x249d72,-0x183,-0x1e0,-_0x512a21._0x541127)]??[]){const _0x19468b=_0x575886[_0x183ae5(0x217,_0x512a21._0xd719ae,0x195,0x191)],_0x410555=extractChatCompletionReasoningDelta(_0x19468b);_0x410555[_0x3feb76(-_0x512a21._0x4f0052,-_0x512a21._0x221a4e,-0xe0,-0x89)]>0x0&&(this[_0x183ae5(_0x512a21._0x46a773,0x286,0x209,_0x512a21._0x3fdb58)][_0x183ae5(_0x512a21._0x2b7915,_0x512a21._0x3be19e,0x279,_0x512a21._0x4b0fc1)](_0x410555),isUserVisibleReasoning(this[_0x183ae5(0x1b8,0x146,_0x512a21._0x1c64e3,_0x512a21._0x3bc1c6)])&&_0x3d265b[_0x3feb76(-_0x512a21._0x6ff25,-_0x512a21._0x8b2013,-_0x512a21._0x1c4447,-0x42)]({'type':_0x183ae5(0x26c,_0x512a21._0x55af8e,_0x512a21._0x19a8ab,0x15f),'contentIndex':0x0,'delta':_0x410555,'itemId':(this[_0x183ae5(_0x512a21._0x515012,_0x512a21._0x34c5b6,0x1dc,_0x512a21._0x5039a)]||_0x3feb76(-_0x512a21._0x324314,-_0x512a21._0x5ce3c6,-_0x512a21._0xee2a36,-0x99))+_0x183ae5(_0x512a21._0x209dea,_0x512a21._0xcc8a2e,0x2cc,_0x512a21._0x2d6dc7),'outputIndex':0x0}));const _0x5f1df4=typeof _0x19468b?.[_0x3feb76(-0x11c,-_0x512a21._0x52c99f,-0x1c1,-_0x512a21._0x53ca20)]===_0x3feb76(-_0x512a21._0x544800,-_0x512a21._0x27a722,-_0x512a21._0x30dc52,-_0x512a21._0x5b6ce1)?_0x19468b[_0x183ae5(_0x512a21._0x1aee35,_0x512a21._0x5e9174,0x224,0x1d4)]:typeof _0x19468b?.[_0x183ae5(0x239,0x286,0x232,0x2ca)]===_0x183ae5(_0x512a21._0x3ab5b6,_0x512a21._0x248229,0x1d4,0x12a)?_0x19468b[_0x3feb76(-0x10e,-_0x512a21._0x432ec1,-_0x512a21._0x1a75dc,-0xb6)]:'';_0x5f1df4['length']>0x0&&(this['textParts'][_0x183ae5(_0x512a21._0xc450e5,0x29a,_0x512a21._0x55bb5e,_0x512a21._0x2b8524)](_0x5f1df4),_0x3d265b[_0x3feb76(-_0x512a21._0x5ebb4a,-0x48,-0x151,-0x102)]({'type':_0x3feb76(-_0x512a21._0x259746,0xd,-0xe,-0x8b),'index':0x0,'text':_0x5f1df4}));for(const _0x457397 of _0x19468b?.['tool_calls']??[]){const _0x1e26d3=_0x457397[_0x183ae5(0x14e,0x17f,_0x512a21._0xaddc91,0x24f)]??0x0;let _0x1e0866=this[_0x183ae5(0x20e,0x299,0x281,0x1c9)]['get'](_0x1e26d3);!_0x1e0866&&(_0x1e0866={'id':_0x457397['id']??_0x183ae5(_0x512a21._0x3fdb26,0x2a5,0x27f,0x259)+_0x1e26d3,'type':_0x3feb76(-0x104,-_0x512a21._0xee2a36,-_0x512a21._0xc21fe1,-_0x512a21._0x540355),'function':{'name':_0x457397[_0x3feb76(-_0x512a21._0xe4f0bb,-0x89,-_0x512a21._0x12b871,-_0x512a21._0x516438)]?.[_0x3feb76(-0x86,_0x512a21._0x257899,-0xb2,_0x512a21._0x3747ba)]??'','arguments':''}},this[_0x183ae5(_0x512a21._0x253007,0x2ed,_0x512a21._0x4e065b,_0x512a21._0x3c83f3)][_0x183ae5(_0x512a21._0x4973ef,_0x512a21._0x419af6,0x2bf,0x32d)](_0x1e26d3,_0x1e0866),this[_0x3feb76(-0x133,-0x9a,-_0x512a21._0x1a71b8,-_0x512a21._0x22d4a6)][_0x3feb76(-_0x512a21._0x5ebb4a,-0x17b,-0x54,-_0x512a21._0x3eeccd)](_0x1e0866));_0x457397['id']&&(_0x1e0866['id']=_0x457397['id']);_0x457397[_0x183ae5(_0x512a21._0x1b257e,_0x512a21._0xafaf70,_0x512a21._0x6d9707,_0x512a21._0x2a0975)]?.['name']&&(_0x1e0866[_0x3feb76(-_0x512a21._0x4daafc,-_0x512a21._0x1bcaf6,-_0x512a21._0x469145,-0x16a)]['name']=_0x457397[_0x183ae5(0x24f,0x2c5,_0x512a21._0x57b06b,_0x512a21._0x29a3ca)]['name']);!this[_0x3feb76(-_0x512a21._0x3c6638,-0x6e,-_0x512a21._0x473b49,-0xc1)][_0x3feb76(-0x191,-0x1c5,-0x1e7,-_0x512a21._0x439764)](_0x1e26d3)&&_0x1e0866[_0x3feb76(-_0x512a21._0xe4f0bb,-0xd9,-_0x512a21._0x2b9b2b,-_0x512a21._0x42d26d)]['name'][_0x3feb76(-_0x512a21._0x49c051,-_0x512a21._0x3c36fd,-0x119,-_0x512a21._0x1af87a)]()['length']>0x0&&(_0x3d265b['push']({'type':_0x3feb76(-0x1f8,-_0x512a21._0x218360,-_0x512a21._0x1f213b,-_0x512a21._0x183987),'id':_0x1e0866['id'],'index':_0x1e26d3,'name':_0x1e0866['function'][_0x183ae5(_0x512a21._0x512675,0x246,_0x512a21._0x540370,_0x512a21._0xee2b26)]}),this[_0x3feb76(-_0x512a21._0x2dc7fd,-_0x512a21._0x2f20c0,-_0x512a21._0x12d54d,-_0x512a21._0x14785e)][_0x183ae5(_0x512a21._0x17df3c,0x312,_0x512a21._0x498ac2,_0x512a21._0x480557)](_0x1e26d3));const _0x142b45=_0x457397[_0x3feb76(-_0x512a21._0x4daafc,-_0x512a21._0x11769a,-0x1c8,-_0x512a21._0x56ef9b)]?.[_0x183ae5(_0x512a21._0x40139d,0x26c,_0x512a21._0x5275a3,_0x512a21._0x4a2253)]??'';_0x142b45[_0x3feb76(-_0x512a21._0x42c633,-_0x512a21._0x517045,-0x176,-0x3d)]>0x0&&(_0x1e0866[_0x183ae5(_0x512a21._0x5c025e,0x178,0x23c,0x302)][_0x3feb76(-_0x512a21._0x5bc57d,-0xdb,-0x23b,-_0x512a21._0x388032)]+=_0x142b45,_0x3d265b['push']({'type':_0x3feb76(-_0x512a21._0x1d3ece,-0x18a,-_0x512a21._0x24e077,-0x258),'id':_0x1e0866['id'],'index':_0x1e26d3,'inputDelta':_0x142b45}));}_0x575886[_0x3feb76(-_0x512a21._0x323954,-0x16d,-_0x512a21._0x3a5436,-0x3e)]==='tool_calls'&&(this[_0x183ae5(0x1b0,0x1cd,_0x512a21._0x3d190d,_0x512a21._0x3055d4)]=_0x3feb76(-0x17b,-0x13e,-_0x512a21._0x3bb8f0,-0x1d8));}function _0x183ae5(_0x139a4a,_0x5c10b6,_0x401084,_0x5a9057){return _0x4d4006(_0x139a4a,_0x5c10b6-_0xefdb35._0x173db9,_0x401084-0x162,_0x5a9057-0x1c4);}return _0x3d265b;}},OpenAiResponsesStreamParser=class{[_0x18006e(-0x1d,0x6,0x9f,0xbf)]=new Map();[_0x18006e(-0x7,0x13e,0xad,0xb8)];[_0x4d4006(0xb1,0x80,0x17,0x17)]=new Map();[_0x18006e(0x15d,0x15e,0x15c,0x168)]=new Map();['reasoningItems']=new Map();[_0x18006e(0x83,0x17d,0xc8,0xa)];[_0x4d4006(0xcf,0x12f,0x15a,0xcd)]=new Map();[_0x18006e(0x196,0x1aa,0xfa,0x8d)]=new Map();constructor(_0x3c37c6){const _0x33400c={_0xdbada0:0x12b},_0x3727e7={_0x281397:0x17a};function _0x51d418(_0xde9c3e,_0x51aeda,_0x286063,_0x4f7132){return _0x4d4006(_0x4f7132,_0x51aeda-_0x3727e7._0x281397,_0xde9c3e-0x2e,_0x4f7132-0x8d);}this[_0x51d418(0xbd,_0x33400c._0xdbada0,0x2f,0xbb)]=_0x3c37c6;}[_0x4d4006(0x16e,0x8e,0x110,0x19b)](_0x19d37b){const _0x4a9bb1={_0xff41f0:0x1e3,_0x26175e:0x1d9,_0x233bdf:0x258,_0x6a0531:0x37d,_0x3cdab5:0x2d1,_0x544ac2:0x412,_0x54db34:0x3ab,_0x27bc66:0x457,_0x1d47c6:0x39b,_0x193d1c:0x132,_0x25dd54:0x2e2,_0x184a95:0x3ce,_0x2c2efb:0x31d,_0x3c6157:0x1d6,_0x3286b0:0x1fa,_0x28433e:0x255,_0x2a56c5:0x3b4,_0x17b431:0x257,_0x27eaa9:0x28e},_0x3a15dd={_0x42681e:0x191,_0x3f2022:0x95},_0x40d48c={_0x106b7c:0x17d},_0x33c73a=_0x19d37b['split']('\x0a'),_0x5a6bfd=_0x33c73a[_0x2ea155(_0x4a9bb1._0xff41f0,_0x4a9bb1._0x26175e,_0x4a9bb1._0x233bdf,0x27a)](_0x16c80e=>_0x16c80e[_0x3c201c(0x40e,0x377,0x302,0x436)](_0x2ea155(0x18c,0x1aa,0x23a,0x252)))?.[_0x3c201c(_0x4a9bb1._0x6a0531,0x37d,0x3ad,_0x4a9bb1._0x3cdab5)](0x6)[_0x3c201c(_0x4a9bb1._0x544ac2,_0x4a9bb1._0x54db34,_0x4a9bb1._0x27bc66,_0x4a9bb1._0x1d47c6)]();function _0x3c201c(_0xdbff73,_0x49b289,_0x4bba0f,_0x31f9b9){return _0x18006e(_0xdbff73-0x1aa,_0x49b289-_0x40d48c._0x106b7c,_0x49b289-0x248,_0x31f9b9);}const _0x480c98=_0x33c73a[_0x2ea155(_0x4a9bb1._0x193d1c,0x1ab,0x186,0x147)](_0x3d04a0=>_0x3d04a0[_0x2ea155(0x2b9,0x287,0x340,0x1e4)](_0x2ea155(0x22e,0x264,0x2aa,0x292)))['map'](_0x16acbc=>_0x16acbc['slice'](0x5)[_0x3c201c(0x35e,0x3b6,0x3f6,0x3cb)]())['join']('\x0a')[_0x3c201c(_0x4a9bb1._0x25dd54,_0x4a9bb1._0x54db34,_0x4a9bb1._0x184a95,0x3d5)]();if(_0x480c98[_0x3c201c(0x39f,0x36d,0x2e8,_0x4a9bb1._0x2c2efb)]===0x0||_0x480c98===_0x2ea155(0x15b,_0x4a9bb1._0x3c6157,0x282,_0x4a9bb1._0x3286b0))return[];function _0x2ea155(_0x5d5421,_0x1420bf,_0x33fec9,_0x145a62){return _0x4d4006(_0x5d5421,_0x1420bf-0x14b,_0x1420bf-_0x3a15dd._0x42681e,_0x145a62-_0x3a15dd._0x3f2022);}const _0x40afb6=JSON[_0x2ea155(0x106,0x18e,0xfd,_0x4a9bb1._0x28433e)](_0x480c98);return this[_0x3c201c(_0x4a9bb1._0x2a56c5,0x2f0,0x355,_0x4a9bb1._0x17b431)](_0x5a6bfd??String(_0x40afb6[_0x2ea155(0x1b6,0x20a,0x297,_0x4a9bb1._0x27eaa9)]??''),_0x40afb6);}[_0x18006e(0x1b1,0x152,0x13b,0xc1)](_0x1e37e4){return this['consumeEvent'](String(_0x1e37e4['type']??''),_0x1e37e4);}['finish'](){const _0x314b47={_0x155ef6:0x180,_0x19bee3:0x4d2,_0x9c0b52:0x597,_0x1a4087:0x639,_0x506ec5:0x286,_0x5d234a:0x58a,_0x5f4401:0x62e,_0x231557:0x5c1},_0x51817b={_0x596f81:0x1bf,_0x3d8019:0x167};function _0x2b8108(_0x3f99ab,_0x56ec74,_0x2f3b72,_0x42b378){return _0x18006e(_0x3f99ab-_0x51817b._0x596f81,_0x56ec74-_0x51817b._0x3d8019,_0x42b378-0x4a0,_0x56ec74);}function _0x1db5d2(_0x41114f,_0x5ca164,_0xff330f,_0x3222af){return _0x4d4006(_0x41114f,_0x5ca164-0xad,_0x5ca164- -0x25d,_0x3222af-0x6b);}const _0x5ef9ba=this[_0x1db5d2(-0x1c8,-0x1e9,-_0x314b47._0x155ef6,-0x20b)]??{'id':_0x2b8108(0x461,0x438,0x496,_0x314b47._0x19bee3)+Date[_0x2b8108(0x5b7,_0x314b47._0x9c0b52,0x682,_0x314b47._0x1a4087)](),'object':_0x1db5d2(-0x173,-0x204,-0x215,-_0x314b47._0x506ec5),'status':_0x2b8108(_0x314b47._0x5d234a,0x58c,0x4cf,0x55d),'output':this[_0x2b8108(0x6b7,_0x314b47._0x5f4401,0x619,0x62f)](),'usage':{'input_tokens':0x0,'output_tokens':0x0}};return parseResponsesResponse(_0x5ef9ba,this[_0x2b8108(0x4f3,_0x314b47._0x231557,0x5c5,0x568)]);}[_0x4d4006(0x5d,0x118,0xbe,0x9b)](){const _0x4753a2={_0x52a552:0x253,_0x587525:0x1a9,_0x3b7762:0x1d7},_0x46a44c={_0x1cb99d:0x5d,_0x18a346:0x1df};function _0x3fb556(_0x46bc61,_0x574f0a,_0xad6a56,_0x153067){return _0x4d4006(_0x574f0a,_0x574f0a-_0x46a44c._0x1cb99d,_0x46bc61-_0x46a44c._0x18a346,_0x153067-0xe7);}return this[_0x3fb556(_0x4753a2._0x52a552,_0x4753a2._0x587525,_0x4753a2._0x3b7762,0x253)]!==void 0x0;}[_0x18006e(0x100,0x16a,0xa8,0xb)](_0x110c76,_0x1e40cf){const _0xbea379={_0x275d93:0x27c,_0xd17512:0x109,_0x3b56e2:0x130,_0x574347:0x14d,_0x425ef1:0x84,_0x55e5ba:0x14c,_0x3e4ece:0x1fd,_0xc83ceb:0x1b1,_0x47ee98:0x14e,_0x118061:0x1b5,_0x4b4a58:0x10e,_0x1eee9b:0x2b4,_0x3c3c0b:0x29d,_0x34eee1:0x269,_0x2c2563:0x237,_0x134a85:0x254,_0x49b8a6:0x1fe,_0x35aecc:0x210,_0x498cda:0x13f,_0x1143aa:0x1c1,_0x10a9f7:0x1e7,_0x25efbe:0x1f0,_0x5caa6d:0x143,_0x59af78:0x20e,_0x2b4d86:0x1cc,_0x59014d:0x1ed,_0x33b85e:0x267,_0x4ac354:0x199,_0x3a7b0e:0x153,_0x4ba108:0x1ef,_0x463b23:0x8d,_0x44c81c:0xc9,_0x14f0fb:0x1e3,_0x7020fe:0x11c,_0x15dcca:0x21d,_0x41cdef:0x27b,_0x596685:0x1a9,_0x19060f:0x19b,_0x147723:0x129,_0x11a6ad:0x237,_0x9cb31e:0x194,_0x2c3621:0x24c,_0x25e461:0xfb,_0x337828:0xba,_0x3c2339:0xf2,_0x10a27a:0x71,_0x462d4d:0x1b4,_0x29323d:0x270,_0x449939:0x1b2,_0xe18f44:0x278,_0x593981:0xdb,_0x7c3c3e:0x12a,_0x5ba85f:0x14f,_0x525ba2:0x1b3,_0x44403a:0x232,_0x4cc453:0x1dd,_0x56439f:0x19d,_0x14e4ce:0x19b,_0x4d6ae3:0x178,_0x318201:0xc8,_0x2a5b46:0x19f,_0x577b57:0x169,_0x1c68e7:0xde,_0x2f95b0:0x1e6,_0x3990d0:0x7c,_0x1a09c6:0x1f9,_0x4cef43:0x2a3,_0x2ddee2:0x1a8,_0x12e26c:0x134,_0x426a16:0xf1,_0x3823bf:0xce,_0x47b4b5:0x24e,_0x1f9b5a:0xd2,_0x65309:0x1f8,_0x4df969:0x17a,_0x19ecd4:0x11b,_0x5c8a13:0x1a7,_0x3d0be4:0x1ca,_0x27493a:0x214,_0xc199fa:0x140,_0x153c65:0x12c,_0x486ffb:0x27e,_0x340e65:0x22d,_0x4cde81:0x158,_0x3f92f4:0x18c,_0x58c36d:0x20e,_0x3749ab:0x2d7,_0x4956c4:0xdd,_0x3c35c2:0x12e,_0x5434bd:0x55,_0x5ea9a0:0x9d,_0x1945ef:0x1c7,_0x4721ac:0x1e4,_0x5b324:0x26f,_0x125d6e:0x186,_0x36862a:0x1f6,_0x143ded:0x108,_0x12aea2:0x218,_0x258871:0x30f,_0x5c7cd1:0x2c3,_0x496a14:0x17b,_0x46f466:0xd8,_0x2bd1d9:0x20b,_0x4d74a9:0xfd,_0x5561c0:0x119,_0x4be824:0x150,_0x107d5e:0xc3,_0x56fc84:0x9a,_0x4ff45e:0xb6,_0x41af51:0x1ce,_0x44db9e:0x25c,_0x26e799:0x12c,_0x5471db:0x152,_0x2bcb36:0x1a2,_0x3e6722:0x17f,_0x995e40:0x12f,_0x1f208f:0xdd,_0x303c65:0x2f9,_0x3eae80:0x247,_0x53d6eb:0x24f,_0x4a073e:0x2c5,_0xb47d23:0x26c,_0x4f9769:0x1a8,_0x4f663f:0xff,_0x5d8eb2:0xba,_0x5b1078:0x1a8,_0x19fc83:0x151,_0x4a1a04:0xfb,_0x363008:0xd1,_0x9767b:0xd0,_0x2ce940:0xfc,_0x58210d:0x4f,_0x6b11d7:0xa9,_0x5c8f6b:0x12d,_0x4a90e8:0x215,_0xda1616:0x282,_0x3e3885:0x137,_0x208183:0x100,_0x27094b:0x18b,_0x460b5d:0x1be,_0x54250c:0x1e1,_0x5ac8d8:0x14a,_0x3c5594:0x1c6,_0x2304e4:0x10a,_0x27a5b4:0x1e3,_0x186176:0x1e6,_0x29fdec:0x20d,_0x541323:0xea,_0x58c329:0xe2,_0x1ab84b:0x234,_0x42ca02:0x1bb,_0x52acf0:0x222,_0x14473f:0x16d,_0x4945f6:0x1da,_0x21983a:0x1ac,_0x3bebb4:0xfa,_0x2a206f:0x190,_0x9e06be:0x1d1,_0x5c70c2:0xc4,_0x145481:0x125,_0x4cc415:0x1b6,_0x32b5d3:0x117,_0x311d90:0x10d,_0x4bec25:0x1d3,_0x22c749:0xfe,_0x2b7fe5:0x159,_0x1b8f84:0x126,_0x12b620:0xdc,_0x1ea093:0x18e,_0x2bba24:0x1b2,_0x57c1a0:0x227,_0x4c9994:0x1fd,_0x455bd6:0x2b4,_0x3ee003:0x23a,_0x32d7a8:0x1d2,_0x23373f:0x237,_0x25b803:0x2c2,_0x43a769:0x1aa,_0x55fe3c:0x1a7,_0x468f42:0x20e,_0x577dd0:0x1ac,_0x51dec7:0x213,_0x5d3eec:0x1d5,_0xe4905b:0x13a,_0x3cb942:0xe5,_0x5fffe3:0x169,_0xfcc8b1:0x212,_0xa60fad:0x228,_0x55c480:0x1fa,_0x2244b3:0x1bf,_0x409dc7:0x2ed,_0x487af5:0x233,_0x40ae50:0x186,_0x4da3c9:0x2b5,_0x210c6d:0x167,_0x98e69b:0x184,_0xf19723:0x21b,_0x142bcc:0xef,_0x1b1b67:0x265,_0x46aac3:0x1e8,_0x2d240a:0x2eb,_0xc68a03:0x198,_0x2f20dc:0x18f,_0x1b598a:0x1f9,_0x1c8db2:0x21c,_0x126a7c:0x1d9,_0x5bea9a:0x1a6,_0x5b5b34:0x258,_0x563843:0x148,_0x583338:0x1ac,_0x1ee413:0x19e,_0x239f37:0x114,_0xdcd08c:0xac,_0x13774a:0x272,_0xd1d152:0x1bf,_0xfc8f94:0x13a,_0x3d775c:0xbd,_0x5d4e14:0x120,_0x24b565:0x222,_0x171f8d:0x214,_0x28e969:0x1ee,_0x1b5cdc:0x16f,_0x20280c:0xf8,_0x57bf4e:0x118,_0x6b6d55:0x137,_0x1ce9ec:0xa2,_0x44719c:0x18d,_0x5cb762:0x2b1,_0x25d905:0x1a8,_0x4f701e:0x2b1,_0x2341b9:0x20d,_0x494fab:0x105,_0x216bc8:0x20e,_0x50be61:0x2a1,_0x397b43:0x8a,_0x103005:0x1aa,_0xac32:0x1f4,_0x1b8d95:0x1bf,_0x140b49:0x185,_0x5265a1:0x230,_0x3957fa:0x23a,_0x265a7c:0x294,_0x16286e:0x204,_0x379f52:0x154,_0x52204f:0x94,_0x3fbf2e:0x90,_0x2c0f8c:0x160,_0x1d676d:0x201,_0x11674f:0x154,_0x56d30f:0x2af,_0x566837:0x1c4,_0xd39a0f:0x14c,_0x395b60:0x116,_0x52e386:0x131,_0x497e2c:0x16e,_0x598d7d:0x155,_0x569afc:0x158,_0x563a79:0x1bb,_0x5c0b40:0x20e,_0x439827:0x2c0,_0x1af25e:0x1bf,_0x2b8873:0x144,_0x2c0a48:0x1c2,_0x57713b:0x1ba,_0xc2fb9e:0x176,_0x5d9a44:0x174,_0x5e2e2e:0x197,_0x49c081:0x180,_0x243d6e:0xf9,_0x4da261:0x133,_0x43101b:0xc1,_0x18bc15:0xd6,_0xe40850:0x6d,_0x873951:0x188,_0x3d0e60:0x1a8,_0x4998ae:0x1f3,_0x2708c6:0xdf,_0x3ee1c9:0x188,_0x22c5ce:0xc6,_0x2adec5:0xbf,_0x4f05d2:0x2a9,_0xc75ae2:0x15c,_0x587166:0xca,_0xe4e5b0:0x14d,_0x40c440:0xbf,_0x3c0007:0x2b,_0x55ac20:0x1d},_0x3870aa={_0x56e591:0x1e0,_0x49f85d:0x37,_0x345d18:0x8c};function _0xa78179(_0x25ed95,_0x4ea1d0,_0xb232e0,_0x2c1707){return _0x18006e(_0x25ed95-_0x3870aa._0x56e591,_0x4ea1d0-_0x3870aa._0x49f85d,_0x25ed95-_0x3870aa._0x345d18,_0x2c1707);}function _0x210bc2(_0x566f26,_0xb35003,_0x4fccd7,_0x42c45d){return _0x4d4006(_0x4fccd7,_0xb35003-0x58,_0x566f26-0xda,_0x42c45d-0x157);}switch(_0x110c76){case _0xa78179(0x20d,0x208,_0xbea379._0x275d93,0x245):{const _0x2a7d9d=typeof _0x1e40cf['output_index']===_0x210bc2(0x158,_0xbea379._0xd17512,_0xbea379._0x3b56e2,0xe7)?_0x1e40cf['output_index']:0x0,_0x5b3b49=typeof _0x1e40cf[_0x210bc2(0x10d,0x191,_0xbea379._0x574347,_0xbea379._0x425ef1)]===_0x210bc2(_0xbea379._0x55e5ba,0x100,_0xbea379._0x3e4ece,0xf9)?_0x1e40cf['delta']:'';if(_0x5b3b49[_0xa78179(_0xbea379._0xc83ceb,_0xbea379._0x47ee98,_0xbea379._0x118061,_0xbea379._0x4b4a58)]>0x0){const _0x2bcfb6=this['responseTextParts'][_0xa78179(0x23a,0x24e,_0xbea379._0x1eee9b,_0xbea379._0x3c3c0b)](_0x2a7d9d)??[];return _0x2bcfb6['push'](_0x5b3b49),this[_0xa78179(0x21f,_0xbea379._0x34eee1,0x249,0x1ac)][_0x210bc2(_0xbea379._0x2c2563,0x2fd,0x184,_0xbea379._0x134a85)](_0x2a7d9d,_0x2bcfb6),[{'type':_0x210bc2(_0xbea379._0x49b8a6,0x1a2,_0xbea379._0x35aecc,_0xbea379._0x498cda),'index':_0x2a7d9d,'text':_0x5b3b49}];}break;}case _0xa78179(0x215,_0xbea379._0x1143aa,_0xbea379._0x10a9f7,0x1a2):{const _0x22cb8d=typeof _0x1e40cf[_0x210bc2(0x20e,0x2ad,0x1a0,_0xbea379._0x25efbe)]===_0xa78179(_0xbea379._0x5caa6d,0x19d,0x1ca,0x1a9)?_0x1e40cf[_0x210bc2(_0xbea379._0x59af78,_0xbea379._0x2b4d86,0x209,_0xbea379._0x59014d)]:void 0x0,_0x5aec80=_0x1e40cf[_0x210bc2(0x1e3,_0xbea379._0x33b85e,_0xbea379._0x4ac354,0x296)];if(_0x5aec80?.[_0x210bc2(_0xbea379._0x3a7b0e,0x134,0x1e2,_0xbea379._0x4ba108)]===_0x210bc2(0x152,_0xbea379._0x463b23,_0xbea379._0x44c81c,_0xbea379._0x14f0fb)&&_0x5aec80[_0x210bc2(0xf2,0x1ba,_0xbea379._0x7020fe,0xc9)]&&_0x5aec80[_0xa78179(_0xbea379._0x15dcca,0x2a7,_0xbea379._0x41cdef,_0xbea379._0x596685)])return this[_0x210bc2(_0xbea379._0x19060f,_0xbea379._0x147723,0x19c,0x22f)][_0x210bc2(_0xbea379._0x11a6ad,0x2b5,_0xbea379._0x9cb31e,_0xbea379._0x2c3621)](_0x5aec80[_0xa78179(0xdd,_0xbea379._0x25e461,_0xbea379._0x337828,0x58)],{'id':_0x5aec80[_0x210bc2(_0xbea379._0x3c2339,0x17c,_0xbea379._0x10a27a,0x4c)],'type':_0x210bc2(_0xbea379._0x462d4d,_0xbea379._0x29323d,_0xbea379._0x449939,_0xbea379._0xe18f44),'function':{'name':_0x5aec80['name'],'arguments':''}}),_0x22cb8d!==void 0x0&&(this[_0xa78179(0xdc,_0xbea379._0x593981,0x113,_0xbea379._0x7c3c3e)]['set'](_0x22cb8d,_0x5aec80[_0x210bc2(0xf2,_0xbea379._0x5ba85f,0x184,_0xbea379._0x525ba2)]),this['callIdToOutputIndex']['set'](_0x5aec80[_0x210bc2(0xf2,0x3c,0xad,0x12e)],_0x22cb8d)),[{'type':'tool_use_delta','id':_0x5aec80[_0xa78179(0xdd,0x1a1,0x184,0x19e)],'index':_0x22cb8d??0x0,'name':_0x5aec80[_0x210bc2(_0xbea379._0x44403a,0x1fb,0x2f0,_0xbea379._0x4cc453)]}];if(_0x5aec80?.[_0xa78179(0x13e,0x105,_0xbea379._0x56439f,0x139)]===_0xa78179(_0xbea379._0x14e4ce,0x168,0x222,0x1ed)&&_0x5aec80['id']){const _0x2e358=this[_0xa78179(0x13a,_0xbea379._0x4d6ae3,0x1f9,_0xbea379._0x318201)](_0x5aec80['id'],_0x22cb8d);_0x22cb8d!==void 0x0&&this[_0x210bc2(_0xbea379._0x3e4ece,0x1fa,_0xbea379._0x2a5b46,_0xbea379._0x577b57)]['set'](_0x22cb8d,_0x2e358['id']);}break;}case _0x210bc2(0x121,0x173,0x84,_0xbea379._0x1c68e7):{const _0x24fdca=typeof _0x1e40cf[_0x210bc2(0xf2,0x18c,0xbf,_0xbea379._0x1c68e7)]===_0x210bc2(_0xbea379._0x55e5ba,_0xbea379._0x2f95b0,0x208,0xd7)?_0x1e40cf[_0x210bc2(0xf2,_0xbea379._0x3990d0,0x17a,0x70)]:typeof _0x1e40cf[_0xa78179(_0xbea379._0x1a09c6,_0xbea379._0x4cef43,0x1c3,0x1fd)]===_0x210bc2(0x158,_0xbea379._0x2ddee2,_0xbea379._0x12e26c,0xa1)?this[_0x210bc2(_0xbea379._0x426a16,_0xbea379._0x3823bf,0x6d,0x135)][_0xa78179(0x23a,0x1cc,_0xbea379._0x47b4b5,0x1f3)](_0x1e40cf['output_index']):void 0x0,_0x3a251d=typeof _0x1e40cf['delta']===_0xa78179(0x137,_0xbea379._0x1f9b5a,_0xbea379._0x65309,_0xbea379._0x4df969)?_0x1e40cf['delta']:'',_0x5acb2c=_0x24fdca?this[_0xa78179(0x186,0xfa,0x1a7,0x11a)]['get'](_0x24fdca):void 0x0;if(_0x5acb2c&&_0x3a251d[_0xa78179(0x1b1,_0xbea379._0x19ecd4,_0xbea379._0x449939,_0xbea379._0x5c8a13)]>0x0)return _0x5acb2c[_0x210bc2(0x1b4,0x1a1,_0xbea379._0x3d0be4,_0xbea379._0x27493a)]['arguments']+=_0x3a251d,[{'type':'tool_use_delta','id':_0x5acb2c['id'],'index':this[_0x210bc2(_0xbea379._0xc199fa,_0xbea379._0x153c65,0x84,0xa8)]['get'](_0x5acb2c['id'])??(typeof _0x1e40cf[_0x210bc2(0x20e,_0xbea379._0x486ffb,_0xbea379._0x340e65,0x1ce)]===_0x210bc2(_0xbea379._0x4cde81,_0xbea379._0x3f92f4,0x172,0x195)?_0x1e40cf[_0x210bc2(_0xbea379._0x58c36d,_0xbea379._0x3749ab,0x210,0x14b)]:0x0),'inputDelta':_0x3a251d}];break;}case'response.function_call_arguments.done':{const _0x995747=typeof _0x1e40cf[_0xa78179(_0xbea379._0x4956c4,0x121,_0xbea379._0x3c35c2,0x14b)]==='string'?_0x1e40cf[_0x210bc2(0xf2,_0xbea379._0x5434bd,0x13a,_0xbea379._0x5ea9a0)]:typeof _0x1e40cf[_0xa78179(0x1f9,_0xbea379._0x3b56e2,0x179,0x258)]===_0xa78179(_0xbea379._0x5caa6d,_0xbea379._0x1945ef,0xba,0x198)?this[_0xa78179(0xdc,0x165,0x72,0x10d)]['get'](_0x1e40cf[_0xa78179(_0xbea379._0x1a09c6,_0xbea379._0x4721ac,_0xbea379._0x5b324,0x154)]):void 0x0,_0xa4c721=_0x995747?this[_0xa78179(_0xbea379._0x125d6e,0x234,_0xbea379._0x36862a,_0xbea379._0x143ded)][_0x210bc2(0x24f,_0xbea379._0x12aea2,_0xbea379._0x258871,_0xbea379._0x5c7cd1)](_0x995747):void 0x0;_0xa4c721&&typeof _0x1e40cf['arguments']===_0xa78179(0x137,_0xbea379._0x496a14,0xef,_0xbea379._0x5ba85f)&&(_0xa4c721[_0xa78179(_0xbea379._0x2a5b46,_0xbea379._0x46f466,_0xbea379._0x2bd1d9,_0xbea379._0x4d74a9)][_0xa78179(_0xbea379._0x5561c0,0xaa,_0xbea379._0x4be824,0xe0)]=_0x1e40cf['arguments']);break;}case _0xa78179(0xae,-0x11,_0xbea379._0x107d5e,_0xbea379._0x56fc84):{const _0x158a7d=typeof _0x1e40cf['output_index']===_0xa78179(0x143,0x1fa,_0xbea379._0x4ff45e,0x137)?_0x1e40cf['output_index']:void 0x0,_0x27d61d=_0x1e40cf[_0xa78179(_0xbea379._0x41af51,_0xbea379._0x44db9e,_0xbea379._0x26e799,0x208)];if(_0x27d61d?.[_0xa78179(0x13e,_0xbea379._0x498cda,0x157,0x1c4)]===_0x210bc2(_0xbea379._0x5471db,_0xbea379._0x2bcb36,_0xbea379._0x3e6722,_0xbea379._0x995e40)){const _0x375f04=_0x27d61d[_0xa78179(_0xbea379._0x1f208f,0x160,0xa8,0x16e)]??(_0x158a7d!==void 0x0?this['outputIndexToCallId'][_0xa78179(0x23a,0x29e,_0xbea379._0x303c65,0x267)](_0x158a7d):void 0x0),_0x11e61d=_0x375f04?this[_0xa78179(_0xbea379._0x125d6e,0x184,0x17a,_0xbea379._0x3eae80)][_0x210bc2(_0xbea379._0x53d6eb,0x2a9,0x1d3,_0xbea379._0x4a073e)](_0x375f04):void 0x0;_0x11e61d&&typeof _0x27d61d['arguments']==='string'&&(_0x11e61d[_0x210bc2(_0xbea379._0x462d4d,0x27b,_0xbea379._0xb47d23,_0xbea379._0x12e26c)][_0x210bc2(_0xbea379._0x3c35c2,_0xbea379._0x4f9769,_0xbea379._0xd17512,0x6a)]=_0x27d61d[_0x210bc2(0x12e,_0xbea379._0x4f663f,0x198,_0xbea379._0x5d8eb2)]);break;}if(_0x27d61d?.[_0x210bc2(0x153,_0xbea379._0x5b1078,0x172,0x117)]===_0xa78179(_0xbea379._0x19060f,0x14a,_0xbea379._0x19fc83,0x10f)&&_0x27d61d['id']){const _0x6b4e56=this[_0x210bc2(0x14f,_0xbea379._0x4a1a04,0x129,_0xbea379._0x363008)](_0x27d61d['id'],_0x158a7d);typeof _0x27d61d[_0x210bc2(0xbe,_0xbea379._0x9767b,_0xbea379._0x2ce940,_0xbea379._0x58210d)]==='string'&&(_0x6b4e56['encryptedContent']=_0x27d61d[_0xa78179(_0xbea379._0x6b11d7,0x54,_0xbea379._0x5c8f6b,0x65)]);if(Array[_0x210bc2(0x1d2,_0xbea379._0x4a90e8,0x18c,_0xbea379._0xda1616)](_0x27d61d[_0x210bc2(_0xbea379._0x3e3885,_0xbea379._0x208183,_0xbea379._0x27094b,0x157)]))for(let _0x189491=0x0;_0x189491<_0x27d61d[_0x210bc2(_0xbea379._0x3e3885,_0xbea379._0x460b5d,_0xbea379._0x54250c,_0xbea379._0x5ac8d8)][_0x210bc2(_0xbea379._0x3c5594,0x1c8,0x24f,0x141)];_0x189491+=0x1){const _0x554016=_0x27d61d[_0x210bc2(0x137,0x17e,0x1f0,_0xbea379._0x2304e4)][_0x189491];_0x554016[_0x210bc2(0x153,_0xbea379._0x27a5b4,_0xbea379._0x186176,_0xbea379._0x29fdec)]==='summary_text'&&typeof _0x554016[_0xa78179(0x197,0x25b,_0xbea379._0x541323,0x138)]==='string'&&_0x6b4e56[_0xa78179(_0xbea379._0x577b57,_0xbea379._0x58c329,_0xbea379._0x1ab84b,_0xbea379._0x42ca02)][_0xa78179(_0xbea379._0x52acf0,0x250,_0xbea379._0x14473f,_0xbea379._0x4945f6)](_0x189491,_0x554016[_0x210bc2(_0xbea379._0x21983a,_0xbea379._0x3bebb4,_0xbea379._0x2a206f,_0xbea379._0x9e06be)]);}typeof _0x27d61d[_0x210bc2(0x1ac,0x137,0x212,0xfa)]===_0xa78179(_0xbea379._0x3e3885,_0xbea379._0x55e5ba,_0xbea379._0x5c70c2,_0xbea379._0x145481)&&_0x6b4e56['textByIndex'][_0xa78179(0x222,0x178,_0xbea379._0x4cc415,_0xbea379._0x3c5594)](0x0,_0x27d61d[_0xa78179(0x197,0x162,0xfb,0x147)]);}break;}case _0x210bc2(0x141,0xcc,0x1a8,_0xbea379._0x32b5d3):{const _0x484ec1=typeof _0x1e40cf[_0x210bc2(_0xbea379._0x311d90,0x19e,_0xbea379._0x4bec25,0xa1)]==='string'?_0x1e40cf[_0xa78179(0xf8,0xd6,_0xbea379._0x22c749,0x167)]:'',_0x43f3c6=typeof _0x1e40cf[_0xa78179(_0xbea379._0x2b7fe5,0x191,_0xbea379._0x1b8f84,0xf0)]===_0x210bc2(0x14c,_0xbea379._0x12b620,_0xbea379._0x1ea093,_0xbea379._0x2bba24)?_0x1e40cf['item_id']:typeof _0x1e40cf[_0x210bc2(0x20e,_0xbea379._0x57c1a0,0x20f,0x27a)]==='number'?this[_0x210bc2(_0xbea379._0x4c9994,_0xbea379._0x455bd6,0x2a5,0x1a0)][_0xa78179(_0xbea379._0x3ee003,_0xbea379._0x32d7a8,0x2ac,_0xbea379._0x23373f)](_0x1e40cf[_0xa78179(_0xbea379._0x1a09c6,0x133,0x133,_0xbea379._0x25b803)]):void 0x0,_0x456917=typeof _0x1e40cf[_0xa78179(0x1f9,_0xbea379._0x43a769,0x20f,_0xbea379._0x55fe3c)]==='number'?_0x1e40cf[_0x210bc2(_0xbea379._0x468f42,0x207,_0xbea379._0x577dd0,0x214)]:0x0,_0x7d53d6=typeof _0x1e40cf[_0xa78179(0x191,0xe2,_0xbea379._0x51dec7,0x239)]===_0x210bc2(0x158,_0xbea379._0x5d3eec,0x111,0x221)?_0x1e40cf['summary_index']:0x0;if(_0x43f3c6&&_0x484ec1[_0x210bc2(0x1c6,0x125,0x125,0x24f)]>0x0){const _0x513de0=this[_0xa78179(_0xbea379._0xe4905b,_0xbea379._0x995e40,_0xbea379._0x3d0be4,_0xbea379._0x3cb942)](_0x43f3c6,_0x456917);_0x513de0[_0xa78179(_0xbea379._0x5fffe3,_0xbea379._0xfcc8b1,_0xbea379._0x460b5d,0x1c8)]['set'](_0x7d53d6,''+(_0x513de0[_0x210bc2(0x17e,_0xbea379._0xa60fad,0x183,0x14e)][_0x210bc2(0x24f,_0xbea379._0x55c480,_0xbea379._0x2244b3,_0xbea379._0x409dc7)](_0x7d53d6)??'')+_0x484ec1);if(isUserVisibleReasoning(this['request']))return[{'type':_0x210bc2(_0xbea379._0x487af5,0x1b9,_0xbea379._0x40ae50,_0xbea379._0x4da3c9),'delta':_0x484ec1,'itemId':_0x43f3c6,'outputIndex':_0x456917,'summaryIndex':_0x7d53d6}];}break;}case'response.reasoning_summary_text.done':{const _0x2f5a0b=typeof _0x1e40cf[_0x210bc2(0x16e,_0xbea379._0x210c6d,0x1c5,0x22e)]===_0x210bc2(0x14c,0x202,_0xbea379._0x98e69b,0x18f)?_0x1e40cf[_0xa78179(_0xbea379._0x2b7fe5,_0xbea379._0xf19723,_0xbea379._0x142bcc,0xb7)]:typeof _0x1e40cf[_0x210bc2(_0xbea379._0x59af78,_0xbea379._0x1b1b67,0x21f,0x18d)]==='number'?this[_0xa78179(_0xbea379._0x46aac3,0x282,_0xbea379._0x340e65,0x22e)][_0xa78179(_0xbea379._0x3ee003,0x2e8,_0xbea379._0x2d240a,0x24b)](_0x1e40cf['output_index']):void 0x0,_0x7c22c3=typeof _0x1e40cf[_0x210bc2(0x20e,_0xbea379._0xc68a03,0x1d1,0x148)]===_0xa78179(0x143,_0xbea379._0x47ee98,_0xbea379._0x2f20dc,_0xbea379._0x4be824)?_0x1e40cf[_0xa78179(_0xbea379._0x1b598a,0x237,0x141,_0xbea379._0x1c8db2)]:0x0,_0x478976=typeof _0x1e40cf[_0x210bc2(0x1a6,0x207,0xf5,_0xbea379._0x126a7c)]==='number'?_0x1e40cf[_0x210bc2(_0xbea379._0x5bea9a,_0xbea379._0xa60fad,_0xbea379._0x5b5b34,_0xbea379._0x563843)]:0x0,_0x3099d9=typeof _0x1e40cf[_0x210bc2(_0xbea379._0x583338,_0xbea379._0x4945f6,0x125,0xe8)]===_0xa78179(_0xbea379._0x3e3885,_0xbea379._0x1ee413,_0xbea379._0x239f37,_0xbea379._0xdcd08c)?_0x1e40cf[_0x210bc2(0x1ac,_0xbea379._0x13774a,_0xbea379._0xd1d152,0x125)]:'';_0x2f5a0b&&this[_0xa78179(_0xbea379._0xfc8f94,0xa5,0xa8,_0xbea379._0x3d775c)](_0x2f5a0b,_0x7c22c3)[_0xa78179(0x169,0x1f4,0x175,_0xbea379._0x5d4e14)][_0xa78179(_0xbea379._0x24b565,_0xbea379._0x171f8d,_0xbea379._0x28e969,0x2a5)](_0x478976,_0x3099d9);break;}case _0x210bc2(_0xbea379._0x1b5cdc,0x103,0x110,0x1fa):{const _0x193e78=typeof _0x1e40cf[_0xa78179(_0xbea379._0x20280c,_0xbea379._0x496a14,0xb6,_0xbea379._0x57bf4e)]===_0xa78179(_0xbea379._0x6b6d55,0x17e,_0xbea379._0x210c6d,0xcd)?_0x1e40cf['delta']:'',_0x1def8e=typeof _0x1e40cf[_0xa78179(0x159,0xc0,0xf7,_0xbea379._0x1ce9ec)]===_0x210bc2(0x14c,0x1bf,0x16a,_0xbea379._0x44719c)?_0x1e40cf[_0xa78179(_0xbea379._0x2b7fe5,0x15c,0x200,0x119)]:typeof _0x1e40cf[_0xa78179(_0xbea379._0x1b598a,_0xbea379._0x5cb762,0x16c,0x1a1)]==='number'?this['outputIndexToReasoningId'][_0x210bc2(0x24f,_0xbea379._0x25d905,_0xbea379._0x1eee9b,_0xbea379._0x4f701e)](_0x1e40cf['output_index']):void 0x0,_0x44e810=typeof _0x1e40cf['output_index']===_0xa78179(0x143,_0xbea379._0x2341b9,0x17c,_0xbea379._0x494fab)?_0x1e40cf[_0x210bc2(_0xbea379._0x216bc8,0x1ea,_0xbea379._0x4945f6,_0xbea379._0x50be61)]:0x0,_0x5d7b61=typeof _0x1e40cf[_0xa78179(0xf1,0x1a5,0x1a0,0x10d)]==='number'?_0x1e40cf[_0x210bc2(0x106,0x181,0xf1,_0xbea379._0x397b43)]:0x0;if(_0x1def8e&&_0x193e78['length']>0x0){const _0x1fcbc3=this['getOrCreateReasoningItem'](_0x1def8e,_0x44e810);_0x1fcbc3[_0xa78179(_0xbea379._0x103005,0x12c,_0xbea379._0x143ded,0xf2)][_0xa78179(0x222,0x200,0x24d,_0xbea379._0xac32)](_0x5d7b61,''+(_0x1fcbc3[_0x210bc2(_0xbea379._0x1b8d95,_0xbea379._0x140b49,_0xbea379._0x5265a1,0x236)][_0xa78179(_0xbea379._0x3957fa,0x2e5,_0xbea379._0x265a7c,_0xbea379._0x16286e)](_0x5d7b61)??'')+_0x193e78);if(isUserVisibleReasoning(this[_0xa78179(_0xbea379._0x379f52,_0xbea379._0x52204f,_0xbea379._0x3fbf2e,_0xbea379._0xfcc8b1)]))return[{'type':_0x210bc2(0x136,_0xbea379._0x2c0f8c,_0xbea379._0x5d4e14,0x6e),'contentIndex':_0x5d7b61,'delta':_0x193e78,'itemId':_0x1def8e,'outputIndex':_0x44e810}];}break;}case _0x210bc2(_0xbea379._0x1d676d,_0xbea379._0x11674f,0x27a,_0xbea379._0x56d30f):{const _0x43cef1=typeof _0x1e40cf[_0x210bc2(0x16e,0xc6,0x134,_0xbea379._0x566837)]===_0x210bc2(_0xbea379._0xd39a0f,_0xbea379._0x395b60,_0xbea379._0x52e386,0x216)?_0x1e40cf[_0x210bc2(_0xbea379._0x497e2c,0x182,0x160,0x181)]:typeof _0x1e40cf[_0xa78179(_0xbea379._0x1a09c6,_0xbea379._0x10a9f7,_0xbea379._0x6b6d55,_0xbea379._0x598d7d)]===_0x210bc2(_0xbea379._0x569afc,0x192,_0xbea379._0x563a79,0xd8)?this['outputIndexToReasoningId']['get'](_0x1e40cf[_0x210bc2(_0xbea379._0x5c0b40,0x1f4,0x184,0x1e1)]):void 0x0,_0x6792c6=typeof _0x1e40cf[_0xa78179(_0xbea379._0x1b598a,0x169,_0xbea379._0x439827,_0xbea379._0x1af25e)]==='number'?_0x1e40cf['output_index']:0x0,_0x237369=typeof _0x1e40cf[_0xa78179(0xf1,0xee,_0xbea379._0x2b8873,_0xbea379._0x145481)]===_0x210bc2(_0xbea379._0x4cde81,_0xbea379._0x2c0a48,_0xbea379._0x57713b,_0xbea379._0xc2fb9e)?_0x1e40cf[_0xa78179(0xf1,0xd3,0x102,_0xbea379._0x5d9a44)]:0x0,_0x2ccdc4=typeof _0x1e40cf[_0xa78179(_0xbea379._0x5e2e2e,_0xbea379._0x49c081,0x202,0x1a4)]===_0x210bc2(0x14c,0x1ae,_0xbea379._0x4ba108,0x1ee)?_0x1e40cf['text']:'';_0x43cef1&&this[_0x210bc2(0x14f,0x14c,0x20b,_0xbea379._0x58c329)](_0x43cef1,_0x6792c6)['textByIndex']['set'](_0x237369,_0x2ccdc4);break;}case'response.completed':{this[_0xa78179(0x139,_0xbea379._0x243d6e,0x9b,0xe9)]=_0x1e40cf[_0x210bc2(_0xbea379._0x4da261,0x167,_0xbea379._0x43101b,_0xbea379._0x18bc15)];break;}case'response.failed':{const _0x152a3d=_0x1e40cf[_0x210bc2(_0xbea379._0x4da261,0xf0,_0xbea379._0x55e5ba,_0xbea379._0xe40850)];throw new ProviderStreamEventError(_0x152a3d?.[_0x210bc2(_0xbea379._0x873951,0xeb,0x158,0x139)]?.[_0x210bc2(0x1f2,0x29a,_0xbea379._0x3d0e60,_0xbea379._0x4998ae)]??'Responses\x20stream\x20failed',{'code':_0x152a3d?.['error']?.[_0x210bc2(_0xbea379._0x2708c6,0xcc,0x186,0xe9)],'retryable':!![]});}case'error':{const _0x3e665b=_0x1e40cf[_0x210bc2(_0xbea379._0x3ee1c9,_0xbea379._0x22c5ce,0x214,_0xbea379._0x2adec5)];throw new ProviderStreamEventError(_0x3e665b?.[_0x210bc2(0x1f2,0x1aa,0x237,_0xbea379._0x4f05d2)]??_0xa78179(_0xbea379._0xc75ae2,0x202,0x222,0x1c7),{'code':_0x3e665b?.[_0xa78179(_0xbea379._0x587166,0x17d,0x8,0x61)],'retryable':!![],'status':typeof _0x1e40cf[_0x210bc2(0xd4,_0xbea379._0x49c081,0x31,0x47)]===_0x210bc2(0x158,0xb9,_0xbea379._0xe4e5b0,0xab)?_0x1e40cf[_0xa78179(_0xbea379._0x40c440,0x76,_0xbea379._0x3c0007,_0xbea379._0x55ac20)]:void 0x0});}}return[];}['buildPartialOutput'](){const _0x378cc1={_0x583997:0x4d1,_0x1cce1d:0x536,_0x57c607:0x5d7,_0x4560eb:0x1d2,_0x2a8c0c:0x4b,_0x35c15b:0x15b,_0x21a45b:0x16f,_0x57d089:0x47,_0x3ebdb7:0x59,_0xc3f8c4:0xb,_0x5cb376:0x3f,_0x22f241:0xe1,_0xbd4b6f:0x18a,_0x56dec4:0xe9,_0x209fb1:0x4ba,_0x6c8d78:0x4bc,_0x4f25f7:0x53f,_0x57a56:0x556,_0x6ab8b6:0x74,_0x3cf3bc:0x8a,_0x5a9100:0x25,_0x30bc5a:0x6b,_0x1a57b3:0x4c6,_0x555036:0x5dc,_0x25e254:0x5b6,_0x2dad98:0xd8,_0x4bc25b:0x6b,_0xac57d6:0x586,_0x27dc80:0x517,_0x37393c:0x40a,_0x4742cb:0x580,_0x433189:0x67f,_0x4f9a0c:0x5ce,_0x51b984:0x515,_0x36e9a7:0x55c,_0x41d749:0x493,_0x40832f:0x1e4,_0x447922:0x13e,_0x2ea572:0xf1,_0x54bd76:0x14a,_0x16c4f8:0xce,_0x470a56:0x22,_0x1ffc4c:0x63,_0x5e694f:0xf2,_0xe42e7f:0x15e,_0x689dcb:0x172,_0x3c2765:0x5ea,_0x5e4ddb:0x5a1,_0x2fa24c:0xad,_0x1c4ab9:0x155,_0x56e574:0x5c7,_0x141a1e:0x4cd,_0x2bd47f:0x575,_0x4ba5b9:0x649,_0x515c6f:0x5ce,_0x49100e:0x5a9,_0x454256:0x4e6,_0x2bd864:0x52b},_0x422fab={_0x4d2859:0x49b,_0x259040:0x13d},_0x3d59b4={_0x1e9845:0x2d6,_0x49b8e9:0x27d,_0xd3898d:0x2f2},_0x555282={_0x1faa75:0xb0,_0x366029:0x2aa},_0x228b04={_0x426679:0x1b},_0x270563=[];for(const [_0x4add10,_0x35325f]of this['responseTextParts']['entries']()){const _0x50c66e=_0x35325f[_0x40501c(0x51b,0x429,_0x378cc1._0x583997,0x4b2)]('');if(_0x50c66e[_0x40501c(0x565,_0x378cc1._0x1cce1d,0x587,_0x378cc1._0x57c607)]===0x0)continue;_0x270563[_0x24d68d(0x18b,0x83,_0x378cc1._0x4560eb,0x114)]({'index':_0x4add10,'item':{'type':_0x24d68d(_0x378cc1._0x2a8c0c,_0x378cc1._0x35c15b,0x6f,0x115),'role':_0x24d68d(_0x378cc1._0x21a45b,0x198,0x203,0x13b),'content':[{'type':_0x24d68d(-0x8f,-_0x378cc1._0x57d089,-_0x378cc1._0x3ebdb7,0x13),'text':_0x50c66e}]}});}function _0x24d68d(_0x50ab14,_0x30bc97,_0x1fe793,_0x4c4ecc){return _0x4d4006(_0x1fe793,_0x30bc97-_0x228b04._0x426679,_0x4c4ecc- -0x3,_0x4c4ecc-0x185);}for(const _0xe3b14b of this['reasoningItems']['values']()){_0x270563['push']({'index':_0xe3b14b[_0x24d68d(_0x378cc1._0xc3f8c4,-_0x378cc1._0x5cb376,_0x378cc1._0x22f241,0x6d)]??_0x270563[_0x24d68d(0xd9,0x18a,_0x378cc1._0xbd4b6f,_0x378cc1._0x56dec4)],'item':{'type':'reasoning','id':_0xe3b14b['id'],..._0xe3b14b[_0x40501c(0x454,0x49a,0x4f0,_0x378cc1._0x209fb1)]?{'encrypted_content':_0xe3b14b['encryptedContent']}:{},..._0xe3b14b[_0x40501c(_0x378cc1._0x6c8d78,0x530,_0x378cc1._0x4f25f7,_0x378cc1._0x57a56)][_0x24d68d(_0x378cc1._0x6ab8b6,-_0x378cc1._0x3cf3bc,-0x1e,0x1e)]>0x0?{'summary':Array[_0x24d68d(-_0x378cc1._0x5a9100,_0x378cc1._0x30bc5a,0x11b,0x7c)](_0xe3b14b[_0x40501c(_0x378cc1._0x1a57b3,_0x378cc1._0x555036,0x53f,_0x378cc1._0x25e254)][_0x24d68d(0xf2,_0x378cc1._0x2dad98,0xde,_0x378cc1._0x4bc25b)]())['sort']((_0x53c0ca,_0x409946)=>_0x53c0ca[0x0]-_0x409946[0x0])['map'](([,_0x1172a6])=>{function _0x255118(_0x1a3e59,_0x31325d,_0x559c55,_0x35e9a2){return _0x24d68d(_0x1a3e59-_0x555282._0x1faa75,_0x31325d-0x162,_0x1a3e59,_0x559c55- -_0x555282._0x366029);}return{'type':_0x255118(-0x231,-_0x3d59b4._0x1e9845,-_0x3d59b4._0x49b8e9,-_0x3d59b4._0xd3898d),'text':_0x1172a6};})}:{},..._0xe3b14b[_0x40501c(_0x378cc1._0xac57d6,0x50c,0x580,_0x378cc1._0x27dc80)][_0x40501c(0x42f,_0x378cc1._0x37393c,0x4bc,0x4af)]>0x0?{'text':Array['from'](_0xe3b14b[_0x40501c(0x57d,0x5a0,_0x378cc1._0x4742cb,0x5e5)]['entries']())[_0x40501c(_0x378cc1._0x433189,0x62a,_0x378cc1._0x4f9a0c,0x663)]((_0x251ee4,_0x49a2e9)=>_0x251ee4[0x0]-_0x49a2e9[0x0])['map'](([,_0x4468a1])=>_0x4468a1)['join']('')}:{}}});}function _0x40501c(_0x3de6f2,_0x356976,_0x418c31,_0x2e2127){return _0x4d4006(_0x356976,_0x356976-0x1e2,_0x418c31-_0x422fab._0x4d2859,_0x2e2127-_0x422fab._0x259040);}for(const _0x4e28f8 of this[_0x40501c(0x5c2,_0x378cc1._0x51b984,_0x378cc1._0x36e9a7,_0x378cc1._0x41d749)][_0x24d68d(0xfe,0x128,_0x378cc1._0x40832f,_0x378cc1._0x447922)]()){_0x270563[_0x24d68d(0xa0,_0x378cc1._0x2ea572,_0x378cc1._0x54bd76,0x114)]({'index':this[_0x24d68d(_0x378cc1._0x16c4f8,0x34,-_0x378cc1._0x470a56,_0x378cc1._0x1ffc4c)][_0x24d68d(_0x378cc1._0x5e694f,0x20f,_0x378cc1._0xe42e7f,_0x378cc1._0x689dcb)](_0x4e28f8['id'])??_0x270563['length'],'item':{'type':'function_call','call_id':_0x4e28f8['id'],'name':_0x4e28f8[_0x40501c(_0x378cc1._0x3c2765,0x58d,0x575,_0x378cc1._0x5e4ddb)][_0x24d68d(_0x378cc1._0x2fa24c,0x15d,0x213,_0x378cc1._0x1c4ab9)],'arguments':_0x4e28f8[_0x40501c(_0x378cc1._0x56e574,_0x378cc1._0x141a1e,_0x378cc1._0x2bd47f,0x5e7)]['arguments']}});}return _0x270563[_0x40501c(0x57f,_0x378cc1._0x4ba5b9,_0x378cc1._0x515c6f,_0x378cc1._0x49100e)]((_0x259770,_0x728e63)=>_0x259770[_0x40501c(0x4dc,0x490,0x4fc,0x546)]-_0x728e63['index'])[_0x40501c(0x53f,0x539,_0x378cc1._0x454256,_0x378cc1._0x2bd864)](_0x4ff190=>_0x4ff190['item']);}[_0x4d4006(0x128,0x135,0x75,0x116)](_0x2d269f,_0x4315f3){const _0x2dde5a={_0x4a31e0:0x276,_0x31316c:0x1da,_0x109b44:0x222,_0x515f77:0xc1,_0x5d975c:0x15b,_0x74d305:0x44,_0x3bf0bd:0xd8,_0x2c1685:0x7c,_0x1a4225:0x5e,_0x17ae9b:0x28c,_0x52f758:0x199,_0x330688:0x32a,_0x454751:0x262},_0x46c5fd={_0x1942dd:0x14,_0x528d23:0x10f},_0x451306={_0x12b072:0x125,_0x1bf4e6:0x42},_0x105979=this[_0x1d6a9b(_0x2dde5a._0x4a31e0,_0x2dde5a._0x31316c,0x28d,_0x2dde5a._0x109b44)][_0xcfc3e4(_0x2dde5a._0x515f77,0x175,0x11a,_0x2dde5a._0x5d975c)](_0x2d269f);if(_0x105979)return _0x4315f3!==void 0x0&&(_0x105979[_0xcfc3e4(-_0x2dde5a._0x74d305,0x4e,-_0x2dde5a._0x3bf0bd,-0xc9)]=_0x4315f3,this[_0xcfc3e4(0x6f,_0x2dde5a._0x2c1685,0x9c,_0x2dde5a._0x1a4225)][_0x1d6a9b(0x281,0x262,_0x2dde5a._0x17ae9b,_0x2dde5a._0x52f758)](_0x4315f3,_0x2d269f)),_0x105979;function _0xcfc3e4(_0x12289d,_0x4cfc9b,_0x18ddd6,_0x509555){return _0x18006e(_0x12289d-_0x451306._0x12b072,_0x4cfc9b-_0x451306._0x1bf4e6,_0x12289d- -0xed,_0x18ddd6);}const _0x1cd1ec={'id':_0x2d269f,'outputIndex':_0x4315f3,'summaryByIndex':new Map(),'textByIndex':new Map()};this[_0x1d6a9b(0x194,0x1da,0x158,0x1fe)]['set'](_0x2d269f,_0x1cd1ec);_0x4315f3!==void 0x0&&this[_0x1d6a9b(0x1c5,0x228,0x2ba,0x2c8)][_0x1d6a9b(_0x2dde5a._0x330688,_0x2dde5a._0x454751,0x30f,0x2f1)](_0x4315f3,_0x2d269f);function _0x1d6a9b(_0x146ca7,_0x4884a2,_0x416f2d,_0x55e1f7){return _0x18006e(_0x146ca7-_0x46c5fd._0x1942dd,_0x4884a2-_0x46c5fd._0x528d23,_0x4884a2-0xcc,_0x416f2d);}return _0x1cd1ec;}};function createOpenAiResponsesStreamParser(_0x28ca6c){return new OpenAiResponsesStreamParser(_0x28ca6c);}function _0x521a(){const _0x433da0=['AM9PBG','Aw52ywXPzgf0zq','C2vUzeH0DhbtDxjMywnLuMvXDwvZDa','D2vIC29JA2v0','C3vWCg9YDgvKrw5KCg9PBNrZ','C29Tzq','y2XVC2u','igrVzxmGBM90ihn1ChbVCNqGBM9Ulxn0CMvHBwLUzYbYzxnWB25Zzxm','DMLZAwjPBgL0Eq','yxbWBgLJyxrPB24VANnVBG','DgHPBMTPBMC','Ahr0Cc1QC29U','zwzMB3j0','C3vYzMfJzq','ywnXDwLYzvjLC3bVBNnLC1nVy2TLDeXVy2S','w0rptKvD','zM9Yy2vgDwXSuMvWBgf5','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzgvSDge','zMLUza','C3rYzwfTvMLHuM91DgvY','mJaYns0Xmc0Wmq','BwfW','Dg9tDhjPBMC','AgfZ','CM91DgvY','yxbP','CM9Szq','C3rYzwfTvMLHuMvZCg9UC2vZv2vIu29JA2v0u3vYzMfJzq','mtm3ntu2mgnvt1jfyq','z2v0tw9KzwXZ','yxjNDw1LBNrZ','zw5JCNLWDgvKq29UDgvUDa','CMvZB2X2zujHC2vvCMW','DxnLCI12AxnPyMXL','qMfZAa','CMvZCg9UC2u','y2HHDgnTCgWT','Aw5WDxrFC2nOzw1H','B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','C3vTBwfYEq','DxrMltG','ywjVCNrLza','CMvZB2X2zunYzwrLBNrPywW','Aw5KzxG','C2HVDwXKuhjLzMvYuMvZCg9UC2vZqxbP','Dg9VBf91C2u','C291CMnL','zw5Kx3r1CM4','y2fSBeLKvg9pDxrWDxrjBMrLEa','CMvZCg9UC2uUCMvHC29UAw5Nx3n1Bw1HCNLFDgv4Dc5KzwX0yq','sw52ywXPzcbxzwjtB2nRzxqGBwvZC2fNztOG','Dgv4DfbHCNrZ','BwvKAwfFDhLWzq','z2L0AhvIqxbPvxjS','Dg9VBhm','v2vIu29JA2v0ignSB3nLzcbIzwzVCMuGB3bLBMLUzW','zw50CMLLCW','y29UC3vTzuv2zw50','B3v0Chv0sw5KzxG','B2jQzwn0','C3rYAw5N','y29TCgXLDgvwAwfdAgf0q29TCgXLDgLVBNntDxjMywnL','zMLUywXszxnWB25Zzq','z2v0t3jdCMvHDgvszwfZB25PBMDjDgvT','zxzLBNq','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBLn0yxrL','zNvUy3rPB25Fy2fSBa','DhLWzq','CMvZCg9UC2vjza','C3rYzwfTvMLHugvYC2LZDgvUDfjLC3bVBNnLC1nVy2TLDa','BwvZC2fNzuLK','v2vIu29JA2v0ignSB3nLzcb3AxrOignVzguG','BNvTyMvY','zNjVBq','l2nVCgLSB3rFAw50zxjUywWVDJiVDg9Rzw4','uMvZCg9UC2vZifDLyLnVy2TLDcbJBg9ZzwqGyMvMB3jLihjLC3bVBNnLlMnVBxbSzxrLza','C3rYzwfTv2vIu29JA2v0u3vYzMfJzq','y2HVAwnLCW','y29TCgXLDgvK','yxbPlwTLEq','Aw5WDxq','C2HPzNq','C2vZC2LVBKLK','C3rHDhvZvgv4Da','CgvUzgLUzW','Aw5WDxruB2TLBNm','zMv0y2HjBxbS','y29TCgXLDgvwAwfdB25MAwD1CMvKu3vYzMfJzq','zMLUzfjLC3bVBNnLC1nVy2TLDenOzwnRCg9PBNq','CMvXDwvZDa','CMvKywn0zwrFDgHPBMTPBMC','CMvZB2X2zq','Ahr0Chm6lY9HCgKUz2L0AhvIlMnVBq','ignHBM5VDcbWyxjZzsbtu0uGzxzLBNrZ','AxrLBv9Pza','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzgvSDge','yxv0AfnJAgvTzq','uMvZCg9UC2vZihn0CMvHBsbMywLSzwq','BgLTAxrZ','yNvPBgrszxnWB25ZzxntB2nRzxrfDMvUDa','CMvZB2X2zxi','C2vZC2LVBG','ChjVDg9JB2XwzxjZAw9U','C3rVCfjLyxnVBG','B3bLBG','C3rYzwfTvMLHq2HHDenVBxbSzxrPB25Zu3vYzMfJzq','qw50AhjVCgLJtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','l3jLC3bVBNnLCW','ChjVDMLKzxjtDgf0zq','D3nZoG','C3vTBwfYEuj5sw5KzxG','yw50AhjVCgLJrgvSzwDHDgu','DMfSDwu','CMvHC29UAw5NugfYDhm','o2jHC2u2ncW','ywnJzxnZvg9Rzw4','DhjHBNnWB3j0','Dg9VBenHBgXpCMrLCG','CMvTB3zLrxzLBNrmAxn0zw5LCG','C2HVDwXKuMv0CNLszxnWB25ZzxntB2nRzxrszxf1zxn0','zxjYB3i','B3bLBMfPuMvZCg9UC2vZuMvZCg9UC2vjza','D3m6','y29TCgXLDgvwAwfszxnWB25ZzxntDxjMywnL','C3rYzwfT','C3rYzwfTvMLHu3vYzMfJzq','zgvJB2rL','y3jLyxrLuMvXDwvZDa','yxv0Ag9YAxPHDgLVBG','z2v0qw50AhjVCgLJrgvSzwDHDgu','CMvZCg9UC2vtB2nRzxrtDhjLyw0','zgf0yq','ChjLCgfYzunOyxrszxf1zxn0','CMvHC29UAw5Nx2nVBNrLBNq','D2fPDezVCLjLDhj5','z2v0uMv0CNLezwXHEu1Z','AxneB25L','yNvKz2v0vg9Rzw5Z','Bwv0ywrHDge','Dg9VBenHBgXZ','y29UDgvUDa','mZm1mJiXnwfNzLrZwa','C3rYAw5NAwz5','ChjVDg9JB2W','C3bSAxq','zMv0y2G','qxv0AgvUDgLJyxrPB24GzMfPBgvKlIbqBgvHC2uGy2HLy2SGEw91CIbbueKGA2v5lG','t3bLBKfjiefqssbLCNjVCIa','qw50AhjVCgLJigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNmTC3rYzwfT','C3vTBwfYEv9PBMrLEa','B3v0Chv0vg9Rzw5Z','Dg9VBf91C2vFAwq','uhjVDMLKzxjtDhjLyw1fDMvUDevYCM9Y','CMvMDxnHBa','Aw5JBhvKzunVBNrLBNruExbL','Dgv4Da','zgf0ytO','yw50AhjVCgLJx3jLzgfJDgvKx3rOAw5RAw5N','CMvHC29UAw5NsxrLBxm','CMvHC29UAw5N','y29TCgXLDgvwAwftDxjMywnL','AxngAw5PDgu','CMv0CNKTywz0zxi','zNvUy3rPB24','C2HVDwXKuMv0CNLtDhjLyw1bDhrLBxb0rxjYB3i','CMvHC29U','y2fUy2vS','C2HVDwXKuMv0CNLszxnWB25Zzq','ywDLBNq','Aw5PDgLHBev2zw50','Dg9VBf9JywXSCW','Dg9VBf9Yzxn1Bhq','BwvZC2fNzv9ZDgfYDa','y29TCgXLDgu','Dgv4Dej5sw5KzxG','ChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','AgvHzgvYuMvZB2X2zxi','Aw5WDxrFDgv4Da','vw5RBM93BIbWCM92AwrLCIbLCNjVCG','uMvZCg9UC2vZifDLyLnVy2TLDcbYzxf1zxn0igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','zgvSzxrL','BgvUz3rO','Dg9VBfvZzvn0yxj0rw1PDhrLza','z2v0uMvHzgvY','y2fWywjSzv9LBMrWB2LUDhm','Aw5JBhvKzxm','CMvXDwvZDhm','B3bLBMfPx3jLyxnVBMLUzW','Ahr0Cc1ZC2u','C2LNBMfS','CMvHzhLtDgf0zq','C3rHCNrZv2L0Aa','odmWBuHquuTR','AxnbCNjHEq','D2vIu29JA2v0rMfJDg9YEq','Aw1Hz2u','Bwf4x291Dhb1Df90B2TLBNm','C2XPy2u','qMvHCMvYia','ssbJAgvJA2vKihrOzsbTB2nRzwqGDg9VBcbYzxn1BhqUia','zMLUAxnOx3jLyxnVBG','Cgf0Aa','r2L0shvIiefqssbLCNjVCIa','y29UC3vTzvDLyLnVy2TLDev2zw50','Dw5ZDxbWB3j0zwrFyxbPx2zVCL9TB2rLBa','ywnJzxb0','Aw5KzxHpzG','DNnJB2rLlZeUmta2lJe','y3jLyxrLsgvHzgvYCW','yxv0BW','AxrLBq','y2HHDenVBxbSzxrPB25Zugf0Aa','C3rYzwfTvMLHuMvZCg9UC2vZu29JA2v0qxr0zw1WDa','Aw5WDxrFANnVBL9KzwX0yq','yMfZzvvYBa','t3bLBKfPqxbPrxjYB3i','C2vUza','y29UC3vTzvnZzuv2zw50','yxbPs2v5','z3b0ltrV','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBKTLEq','uhjVDMLKzxiGCMvXDwvZDcbMywLSzwqGD2L0AcbZDgf0DxmG','C3rVCf9YzwfZB24','B3bLBMfPlxjLC3bVBNnLCY13CW','ChvZAa','BwvZC2fNzq','DNnJB2rLlZeUmta0lJi','A2LUza','zNjVBuvUDhjPzxm','mZCXndnXsMfsCKG','Dg9VBc1JywXSlq','B3jPz2LUlxrYywnRzxi','Dg9VBenHBgXZqNLjBMrLEa','z2v0t3jdCMvHDgvszxnWB25ZzxntB2nRzxq','CMv0CNLHyMXL','yMvHCMvY','B3v0Chv0sw5KzxHuB1jLyxnVBMLUz0LK','y29UDgvUDf9KzwX0yq','C3vYzMfJzxm','DxnHz2u','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzg9Uzq','CMvXDwvZDe11Dgf0B3jZ','CMvHC29UAw5Nx3rLEhq','DhjPBq','ywrK','Aw1Hz2vFDxjS','ue9tva','Bw9KzwXfBMrWB2LUDenHy2HL','yw50AhjVCgLJlxzLCNnPB24','Ec1HCgKTA2v5','B3v0Chv0x3rVA2vUC19KzxrHAwXZ','y29UBMvJDgLUzW','C29YDa','B3v0Chv0x2LUzgv4','DhjPBvn0yxj0','ChjVEhK','DgHPBMTPBMDFzgvSDge','C2LNBMf0DxjLx2rLBhrH','y2f0y2G','y2HHDfn0CMvHBq','odG4mte4ngfSAgHbBa','DgHLBG','C2vUzfDPDgHszxrYAwvZ','yxnZAxn0yw50','y2HHDenVBxbSzxrL','l2nOyxqVy29TCgXLDgLVBNm','DMfSDwvZ','DxnLC1jLC3bVBNnLC0fWAq','Dg9Rzw5fEgnOyw5NzufWAvzLCNnPB24','Bw9JAW','ntCZngfJz2rZvG','zg9Uzq','C3LZDgvT','CMvZCg9UC2uUB3v0Chv0x3rLEhqUzgvSDge','B3bLBMfPlxjLC3bVBNnLCW','y29TCgXLDgvtDxjMywnL','B3bLBKfPrgvSzwDHDgu','r0vu','zMLUAxnO','ChjLDMLVDxnszxnWB25ZzuLK','nJC2mJbUs0TzqLq','CMvZCg9UC2uUB3v0Chv0x2L0zw0UywrKzwq','zw5KCg9PBNrZ','Bwv0Ag9K','C3rYzwfTu3vYzMfJzq','y29TCgXLDgvwAwfsB3v0zxi','Dg9bCgLfCNjVCG','yNvPBgrqyxj0AwfSt3v0Chv0','AgvHzgvYCW','BMfTzq','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','CMvZCg9UC2vuzxH0ugfYDhm','zgvZy3jPChrPB24','y2fJAgvK','C2v0','y3jLyxrLtwLZC2LUz0nYzwrLBNrPywXfCNjVCG','C2vSzwn0u3vYzMfJzq','BM93','y29TCgXLDgLVBL90B2TLBNm','ANnVBG','yxbWBhLnB2rLBerLzMf1BhrZ','Bwf4vg9Rzw5Z','BxnNlq','yw50AhjVCgLJx3rOAw5RAw5N','y2HHDgnTCgW','B3v0Chv0x3rVA2vUCW','yMXVy2TZ','oNjLyxnVBMLUzZOW','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','y3jLyxrLu3rYzwfTugfYC2vY','ywjVCNq','nhPotKDcBW','yM9KEq','Aw5WDxrFDg9Rzw5Z','zgLZywjSzwq','y29WAwXVDc1JAgf0lZaUmZeUmW','C3rYzwfTshr0Cfn1CMzHy2u','CgfYDgLHBf9QC29U','z2v0','v2vIu29JA2v0ihjLCxvLC3qGzMfPBgvK','BwfYA01VzgvSqxnszxnWB25ZzxnpBMX5','Aw50zxjSzwf2zwqTDgHPBMTPBMCTmJaYns0Wns0Xna','zw5JCNLWDgvKx2nVBNrLBNq','uhjVDMLKzxjszxf1zxn0q29UC3rYDwn0Aw9UrxjYB3i','Dg9VBf91C2vFzgvSDge','CMvHC29UAw5Nx3rVA2vUCW','mtu4zfzQwuHk','CMvZCg9UC2uUB3v0Chv0x2L0zw0Uzg9Uzq','C2LNBMf0DxjL','BwvZC2fNzxm','y3jLzgvUDgLHBa','DxnLCG','mJaYmY0WnI0Wmq','C3rYzwfTvMLHuMvZCg9UC2vZu3vYzMfJzq','yw50AhjVCgLJlw1LC3nHz2vZlxn0CMvHBq','igrPzcbUB3qGChjVDMLKzsbHifDLyLnVy2TLDcbvuKWGB3iGCgf0Aa','C2vZC2LVBK1HBMfNzxi','ChjVDMLKzxjbzgfWDgvY','y29TCgXLDgLVBL90B2TLBNnFzgv0ywLSCW','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','ywrKrxzLBNrmAxn0zw5LCG','u3vYzMfJzsa','CMvZCg9UC2vZugf0Aa','CMvZCc0','C3rHDhvZ','CMvHC29UAw5Nx2rLDgfPBhm','Ahr0Chm6lY9HCgKUyw50AhjVCgLJlMnVBq','CgfYC2u','C29JA2v0','qw50AhjVCgLJihn0CMvHBsbMywLSzwq','nty1odyWCLr5y0vu','BwfWqxbPrxjYB3i','zw5HyMXLza','vw5ZDxbWB3j0zwqGr2L0shvIig1VzgvSihn1CMzHy2u6ia','B3v0Chv0','y29Kzq','C3bSAwnL','Bw9Kzq','y29UDgvUDf9IBg9JAW','Aw5WDxrkC29U','DxjS','C3rYzwfTvMLHq29UzMLNDxjLzfn1CMzHy2u','Aw52ywXPzgf0zvjLC3bVBNnLC1nVy2TLDfnLC3nPB24','CMvZCg9UC2vtB2nRzxq','sw1Hz2uGCMv0DxjUzwqGyNKGvMLLD0zPBguGzM9YihrVB2WGCMvZDwX0ia','Bw9KzwW','ChjLDMLVDxnFCMvZCg9UC2vFBM90x2zVDw5K','Dgv4Dc9LDMvUDc1ZDhjLyw0','zwrPDg9YugX1z2LUvMvYC2LVBG','BwvZC2fNzuLUzgv4','CMvZzxq','C2HVDwXKuMv0CNLszxf1zxn0rxjYB3i','B3v0Chv0x3rLEhq','B3v0Chv0sw5KzxHuB0nHBgXjza','y2fSBf9Pza','zxzLBNq6','zMLSDgvY','t1bftG','C3vWCg9YDgvKx2vUzhbVAw50CW','CMvZCg9UC2vtDhjLyw0','BgfZDfjLC3bVBNnLswq','C2vZC2LVBI10B2TLBG','l21VzgvSCW','C2L6zq','C2vUzfjHD1jLCxvLC3q','t3bLBKfjigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','y29UDgvUDf9IBg9JA19ZDgfYDa','CMvZCg9UC2uUy3jLyxrL','uMf0zsbSAw1PDcbLEgnLzwrLzc4GugXLyxnLihrYEsbHz2fPBIbSyxrLCI4','yw50AhjVCgLJlw1LC3nHz2vZ','z2v0u3vYzMfJzq','ChjLCgfYzvjLC3bVBNnLC1nVy2TLDfjLCxvLC3q','igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','CMvWBgfJzq','y29UDgvUDf9PBMrLEa','B2f1DgGTDg9Rzw4','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','ignHBM5VDcbWyxjZzsbxzwjtB2nRzxqGzxzLBNrZ','C3vTBwfYEv90zxH0','z2v0t3bLBKfPrgvSzwDHDgu','D2vIC29JA2v0x2nVBM5Ly3rPB25FBgLTAxrFCMvHy2HLza','zgvSDge','y29UBMvJDf9MywLSzwq','Ahr0Chm6lY9HCgKUB3bLBMfPlMnVBs92mq'];_0x521a=function(){return _0x433da0;};return _0x521a();}function createOpenAiSurfaces(_0x3c9c89={}){const _0x3d2925={_0x5e63a9:0x6d8,_0x146267:0x5e8,_0x5ef840:0x55d,_0x28f57e:0x4c0,_0x3246f6:0x599,_0x13d80:0x495,_0x546d31:0x69b,_0x27876a:0x558,_0x337801:0x4ec},_0x2e2b7f={_0xe01fc:0x297,_0xa62a8c:0x2de},_0x2a8355={_0x465bb8:0x28c,_0x19a227:0x1ff,_0xf9fab2:0x306},_0x58968b={_0x138117:0x267},_0x24436c={_0x5afe25:0x92,_0x557054:0x2},_0xb218a7=_0x3c9c89[_0x177195(0x82,0xbd,0x4a,0x23)]??_0x300a9b(0x622,0x64a,0x67a,_0x3d2925._0x5e63a9);function _0x300a9b(_0x5ec720,_0x3aac7e,_0x11e56a,_0x2bd9a1){return _0x18006e(_0x5ec720-_0x24436c._0x5afe25,_0x3aac7e-_0x24436c._0x557054,_0x5ec720-0x4a9,_0x3aac7e);}function _0x177195(_0x322b40,_0x1f31c1,_0x530601,_0x86cafe){return _0x4d4006(_0x530601,_0x1f31c1-0x153,_0x1f31c1- -0x4d,_0x86cafe-0x185);}const _0xe8ac5c=_0x3c9c89['responsesPath']??_0x300a9b(0x583,_0x3d2925._0x146267,_0x3d2925._0x5ef840,_0x3d2925._0x28f57e);return[{'id':OPENAI_CHAT_COMPLETIONS_SURFACE,'transport':'http-json','createRequest'(_0x105452){return{'accept':'application/json','body':createChatRequestBody(_0x105452,![]),'path':_0xb218a7};},'parseResponse'(_0x202014){return parseChatCompletionResponse(_0x202014);}},{'id':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,'transport':_0x300a9b(0x5d5,0x627,_0x3d2925._0x3246f6,0x64a),'createRequest'(_0x3253d0){function _0x227d63(_0x5f09ef,_0x2d0684,_0x4c6b4a,_0x32482a){return _0x300a9b(_0x5f09ef- -_0x58968b._0x138117,_0x2d0684,_0x4c6b4a-0x1bc,_0x32482a-0x11);}return{'accept':_0x227d63(_0x2a8355._0x465bb8,_0x2a8355._0x19a227,_0x2a8355._0xf9fab2,0x1c3),'body':createChatRequestBody(_0x3253d0,!![]),'path':_0xb218a7};},'createStreamParser'(_0x42ef96){return new OpenAiChatCompletionsStreamParser(_0x42ef96);}},{'id':OPENAI_RESPONSES_SURFACE,'transport':_0x300a9b(0x523,0x5a1,0x4af,_0x3d2925._0x13d80),'createRequest'(_0xa20850){const _0x496a7b={_0x43303d:0xa8,_0x9068ec:0xa7};function _0x30115b(_0x4f4720,_0x3b2434,_0x16e2ab,_0x17499c){return _0x177195(_0x4f4720-_0x496a7b._0x43303d,_0x16e2ab-0x280,_0x4f4720,_0x17499c-_0x496a7b._0x9068ec);}return{'accept':_0x30115b(_0x2e2b7f._0xe01fc,0x1a7,0x272,_0x2e2b7f._0xa62a8c),'body':createResponsesRequestBody(_0xa20850,![]),'path':_0xe8ac5c};},'parseResponse'(_0x258cab,_0x4f7413){return parseResponsesResponse(_0x258cab,_0x4f7413);}},{'id':OPENAI_RESPONSES_STREAM_SURFACE,'transport':_0x300a9b(0x5d5,0x668,0x621,_0x3d2925._0x546d31),'createRequest'(_0x24d4a3){return{'accept':'text/event-stream','body':createResponsesRequestBody(_0x24d4a3,!![]),'path':_0xe8ac5c};},'createStreamParser'(_0x3bedda){return new OpenAiResponsesStreamParser(_0x3bedda);}},{'id':OPENAI_RESPONSES_WEBSOCKET_SURFACE,'transport':_0x300a9b(0x51b,0x5aa,_0x3d2925._0x27876a,_0x3d2925._0x337801),'createRequest'(_0x209a57){return{'initialEvent':createOpenAiResponsesWebSocketEvent(_0x209a57),'path':_0xe8ac5c};},'createStreamParser'(_0x2098ca){return createOpenAiResponsesStreamParser(_0x2098ca);}}];}var OpenAiProviderAdapter=class{['headerResolver'];constructor(_0x390c71){const _0x299762={_0x8f508d:0x1c5},_0x3920d5={_0x249954:0x14b,_0x4cd155:0x21};function _0x2c3ddc(_0x4f1bac,_0x593d4d,_0x12d17b,_0xcef2ff){return _0x18006e(_0x4f1bac-0x126,_0x593d4d-_0x3920d5._0x249954,_0xcef2ff-_0x3920d5._0x4cd155,_0x12d17b);}this[_0x2c3ddc(0x184,0x1cf,_0x299762._0x8f508d,0x141)]=_0x390c71;}[_0x4d4006(0x211,0x223,0x15e,0xba)](){return new Error('OpenAiModel\x20requires\x20an\x20apiKey\x20or\x20providerSessionResolver');}async['createHeaders'](_0x1eaedc,_0x4044bb){const _0x5b0468={_0x28b717:0x573,_0x4eed4f:0x5cc,_0x4a9925:0x5a3,_0x5c4893:0x4ff,_0x3ef1bd:0x508,_0x4dec9a:0x8f,_0x175441:0x145,_0x5bea74:0x3f2,_0x2da41d:0x48b,_0xdec50b:0x1ab,_0x929bc0:0x1bd,_0x256856:0x61e,_0x73b8e:0x683,_0x2e4eed:0x32f,_0xd8e97a:0x275,_0x132481:0x362,_0xc83ab8:0x4d5,_0x157c5f:0x5dd,_0x57d3c6:0x53a,_0x440cec:0x5f7,_0x45d15e:0x5c4,_0x24c3f8:0x474,_0x544f35:0x56d},_0x232795={_0x34bf11:0x1d8,_0x5f0b29:0x49f},_0x158658={_0x5a8f1c:0x2db},_0x3c1c28=new Headers();_0x3c1c28['set'](_0x3fb75e(_0x5b0468._0x28b717,0x50b,_0x5b0468._0x4eed4f,_0x5b0468._0x4a9925),_0x4044bb[_0x3fb75e(0x503,_0x5b0468._0x5c4893,_0x5b0468._0x3ef1bd,0x5a3)]);function _0x140157(_0x2fb3ba,_0x380112,_0x56280a,_0x3c404f){return _0x18006e(_0x2fb3ba-0x17c,_0x380112-0x83,_0x3c404f- -_0x158658._0x5a8f1c,_0x56280a);}_0x3c1c28[_0x140157(-_0x5b0468._0x4dec9a,-0xf6,-0x155,-_0x5b0468._0x175441)]('authorization','Bearer\x20'+_0x1eaedc[_0x3fb75e(_0x5b0468._0x5bea74,0x518,0x535,_0x5b0468._0x2da41d)][_0x140157(-0x14e,-_0x5b0468._0xdec50b,-_0x5b0468._0x929bc0,-0x1fc)]);_0x4044bb[_0x140157(-0x28c,-0x12d,-0x22d,-0x1d1)]!==![]&&_0x3c1c28[_0x3fb75e(_0x5b0468._0x256856,0x56c,_0x5b0468._0x73b8e,0x5fc)]('content-type','application/json');function _0x3fb75e(_0x25da47,_0xf4420d,_0x8e36f2,_0xbde560){return _0x4d4006(_0x25da47,_0xf4420d-_0x232795._0x34bf11,_0xbde560-_0x232795._0x5f0b29,_0xbde560-0xab);}const _0x18168f=await this['headerResolver']?.({'body':_0x1eaedc['body'],'credential':_0x1eaedc[_0x140157(-_0x5b0468._0x2e4eed,-_0x5b0468._0xd8e97a,-_0x5b0468._0x132481,-0x2b6)],'request':_0x1eaedc['request'],'session':_0x1eaedc[_0x3fb75e(_0x5b0468._0xc83ab8,0x4a9,_0x5b0468._0x157c5f,_0x5b0468._0x57d3c6)],'stream':_0x1eaedc[_0x3fb75e(_0x5b0468._0x440cec,_0x5b0468._0x45d15e,0x593,0x551)]});for(const [_0x1a7ed0,_0x5215a3]of Object[_0x3fb75e(0x4ce,_0x5b0468._0x24c3f8,_0x5b0468._0x544f35,0x50d)](_0x18168f??{})){_0x3c1c28['set'](_0x1a7ed0,_0x5215a3);}return _0x3c1c28;}[_0x18006e(0x59,0x1f,0x3a,0x4e)](_0x5c020e){return _0x5c020e;}[_0x18006e(0xd2,0x41,0x8f,-0x2a)](_0x2bbdcc,_0x5370ec){return resolveSessionBaseUrl(_0x2bbdcc,_0x5370ec);}[_0x4d4006(0x115,0xdf,0x60,-0x4d)](_0x36ede9,_0x569bb5){return resolveApiCredential(_0x36ede9,_0x569bb5);}async['toApiError'](_0x167774){return await createOpenAiApiError(_0x167774);}},OpenAiModel=class _OpenAiModel extends RoutedModel{static ['sharedResponsesSocketSessions']=new Map();[_0x18006e(0x13e,0xca,0x143,0x97)];[_0x4d4006(0x3f,0x76,-0x8,0x44)];constructor(_0xc351a7={}){const _0xa66e16={_0x25e232:0x463,_0x5756e7:0x3ca,_0x124c3b:0x4f3,_0x398e4c:0x3e1,_0x12f7c7:0x1cd,_0xf10e9a:0x218,_0x5be427:0x27a,_0x45bc47:0x2cf,_0x43011e:0x303,_0x175618:0x1e3,_0x28eb55:0x2a4,_0x519a4a:0x489,_0x2af140:0x495,_0x1a773f:0x54a,_0x458c91:0x4f4,_0x420b85:0x5da,_0x4d6871:0x51b,_0x2f6840:0x5e1,_0x3e37ce:0x2ea,_0x1b676d:0x324,_0x263c1f:0x2e9,_0x35fa1c:0x202,_0x5ce7d2:0x283,_0x47bc3a:0x2fc,_0xc03f89:0x44c,_0x1d9760:0x3df,_0x1fce20:0x466},_0x94bf35={_0x254bc7:0x203,_0x34ee95:0x1f0},_0x1aadef={_0x498127:0x454,_0x17250f:0x22};function _0x37c95f(_0x2c0dc6,_0xd2dbec,_0x2b62d4,_0x49699f){return _0x4d4006(_0x49699f,_0xd2dbec-0x1d2,_0x2c0dc6-_0x1aadef._0x498127,_0x49699f-_0x1aadef._0x17250f);}function _0x8a0186(_0x45cd77,_0x46f0d0,_0x3f0c3a,_0x31567a){return _0x4d4006(_0x45cd77,_0x46f0d0-0x20,_0x31567a-_0x94bf35._0x254bc7,_0x31567a-_0x94bf35._0x34ee95);}const _0x5e7509=_0xc351a7[_0x37c95f(_0xa66e16._0x25e232,0x4fc,0x415,_0xa66e16._0x5756e7)]??_0x37c95f(0x566,0x51d,0x596,_0xa66e16._0x124c3b),_0x33b873=_0xc351a7[_0x8a0186(_0xa66e16._0x398e4c,0x39d,0x2b1,0x367)]??0x4000,_0x53ef8e=_0xc351a7['chatCompletionsPath']??_0x37c95f(0x594,0x54d,0x4ef,0x51d),_0x1db39e=_0xc351a7[_0x8a0186(_0xa66e16._0x12f7c7,_0xa66e16._0xf10e9a,_0xa66e16._0x5be427,0x1fb)]??_0x8a0186(_0xa66e16._0x45bc47,_0xa66e16._0x43011e,_0xa66e16._0x175618,_0xa66e16._0x28eb55);super({'apiKey':_0xc351a7['apiKey'],'baseUrl':trimTrailingSlashes(_0xc351a7['baseUrl']??_0x37c95f(_0xa66e16._0x519a4a,_0xa66e16._0x2af140,_0xa66e16._0x1a773f,_0xa66e16._0x458c91)),'fetch':_0xc351a7['fetch'],'maxTokens':_0x33b873,'model':_0x5e7509,'reasoning':_0xc351a7[_0x37c95f(0x52a,_0xa66e16._0x420b85,_0xa66e16._0x4d6871,_0xa66e16._0x2f6840)],'providerAdapter':new OpenAiProviderAdapter(_0xc351a7[_0x8a0186(0x3af,0x2a3,0x2ce,_0xa66e16._0x3e37ce)]),'providerSessionResolver':_0xc351a7[_0x8a0186(0x387,_0xa66e16._0x1b676d,0x2fd,_0xa66e16._0x263c1f)],'requestMutators':_0xc351a7['requestMutators'],'router':new StaticModelSurfaceRouter({'complete':OPENAI_CHAT_COMPLETIONS_SURFACE,'stream':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE}),'sessionManager':_0xc351a7[_0x8a0186(0x1d1,0x256,_0xa66e16._0x35fa1c,0x1f5)],'surfaces':createOpenAiSurfaces({'chatCompletionsPath':_0x53ef8e,'responsesPath':_0x1db39e}),'webSocketFactory':_0xc351a7[_0x8a0186(_0xa66e16._0x5ce7d2,0x28a,0x3b9,_0xa66e16._0x47bc3a)]}),this['chatCompletionsPath']=_0x53ef8e,this[_0x37c95f(_0xa66e16._0xc03f89,0x3d5,_0xa66e16._0x1d9760,_0xa66e16._0x1fce20)]=_0x1db39e;}[_0x18006e(0x98,0x119,0xac,0x7)](_0x3b89c1,_0x395cca){const _0x2d843e={_0x126358:0x34,_0x3cd886:0x51,_0x131589:0x94},_0x2fd087={_0x283754:0x15c,_0x417040:0xa3};function _0x278374(_0x8c42de,_0x1243b1,_0x3a7fd7,_0x2ffad8){return _0x4d4006(_0x3a7fd7,_0x1243b1-_0x2fd087._0x283754,_0x1243b1- -_0x2fd087._0x417040,_0x2ffad8-0x145);}return this[_0x278374(-0x91,_0x2d843e._0x126358,-_0x2d843e._0x3cd886,-_0x2d843e._0x131589)](_0x3b89c1,OPENAI_CHAT_COMPLETIONS_SURFACE,_0x395cca);}[_0x4d4006(0xcd,0x12f,0xb1,0xa0)](_0x5bf4f0,_0x2c4e5d){return this['completeViaSurface'](_0x5bf4f0,OPENAI_RESPONSES_SURFACE,_0x2c4e5d);}['completeViaResponsesWebSocketSurface'](_0x517c04,_0x7f9496){return this['completeViaSurface'](_0x517c04,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x7f9496);}['streamViaChatCompletionsSurface'](_0x3cad1d,_0x3a51ca){const _0x38961e={_0x13998:0x5ee},_0x30a1f9={_0x4465d4:0x115,_0x484b01:0x45d};function _0x8ca9c2(_0x351c13,_0x183d94,_0x72304f,_0x4f1144){return _0x18006e(_0x351c13-_0x30a1f9._0x4465d4,_0x183d94-0x10b,_0x351c13-_0x30a1f9._0x484b01,_0x72304f);}return this[_0x8ca9c2(0x549,0x577,0x561,_0x38961e._0x13998)](_0x3cad1d,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,_0x3a51ca);}[_0x4d4006(0x9f,-0x39,-0x11,-0xd2)](_0xa128cf,_0x19752e){return this['streamViaSurface'](_0xa128cf,OPENAI_RESPONSES_STREAM_SURFACE,_0x19752e);}[_0x4d4006(0x1c,0xea,0x51,0xf3)](_0x56b226,_0x5d2a42){return this['streamViaSurface'](_0x56b226,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x5d2a42);}async['chatComplete'](_0x1449ac,_0x25c958){const _0x4a0b8a={_0x12384a:0x1e6},_0x4246ca={_0x6a36d9:0x30,_0x28d2af:0x19c},_0x2902de={_0x198a54:0xf8};function _0x50800f(_0x1352cb,_0x44ae18,_0x236e4b,_0x162fc7){return _0x4d4006(_0x162fc7,_0x44ae18-0x45,_0x236e4b-_0x2902de._0x198a54,_0x162fc7-0x1e2);}function _0x37c447(_0x1eb23f,_0x531caa,_0x5b37bd,_0x4db4b7){return _0x18006e(_0x1eb23f-_0x4246ca._0x6a36d9,_0x531caa-0x185,_0x1eb23f-_0x4246ca._0x28d2af,_0x531caa);}try{return await this[_0x37c447(0x248,0x265,0x266,0x2f0)](_0x1449ac,_0x25c958);}catch(_0x544665){if(_0x544665 instanceof OpenAiApiError)throw this[_0x37c447(0x1d6,_0x4a0b8a._0x12384a,0x277,0x155)](_0x544665);throw _0x544665;}}async[_0x18006e(-0x7,0xd3,0x92,-0x2b)](_0x16abca,_0xcfdf21){const _0x3a99e2={_0x440340:0x2cc,_0x3f3531:0x239},_0xd49f32={_0x5e3f52:0x6b,_0x5caf99:0x238};function _0x2c071c(_0x54c407,_0x3a1af5,_0x50b275,_0x27b724){return _0x4d4006(_0x27b724,_0x3a1af5-_0xd49f32._0x5e3f52,_0x3a1af5-_0xd49f32._0x5caf99,_0x27b724-0xbb);}try{return await this['completeViaResponsesSurface'](_0x16abca,_0xcfdf21);}catch(_0x3e04e6){if(_0x3e04e6 instanceof OpenAiApiError)throw this[_0x2c071c(_0x3a99e2._0x440340,_0x3a99e2._0x3f3531,0x173,0x257)](_0x3e04e6);throw _0x3e04e6;}}async[_0x4d4006(0x56,0xc7,0xd,-0x37)](_0x3eca4b,_0x353299){const _0x18a177={_0x5406db:0x3ca,_0x3fa661:0x424,_0x214004:0x4c0,_0x44f28e:0x449,_0x5de7d7:0x1d7,_0x56f2cb:0x1a6,_0x6d026:0x3ce,_0x259609:0x44a,_0x32a0bf:0x375,_0x3d6a6c:0x4ba},_0x1b2c3e={_0x280eeb:0x397},_0x36dc15={_0x8694c8:0x4};function _0x40f44c(_0x2ffcd3,_0xcf2b37,_0x166a5f,_0xf66b9f){return _0x18006e(_0x2ffcd3-0x10a,_0xcf2b37-_0x36dc15._0x8694c8,_0x166a5f-0x27,_0xf66b9f);}function _0x57c5e5(_0x39c41e,_0x1e94e9,_0x5028ac,_0x33efe5){return _0x18006e(_0x39c41e-0x18f,_0x1e94e9-0x33,_0x33efe5-_0x1b2c3e._0x280eeb,_0x1e94e9);}try{let _0x2977bf;for await(const _0x3eb96e of this[_0x57c5e5(0x52c,_0x18a177._0x5406db,_0x18a177._0x3fa661,0x488)](_0x3eca4b,_0x353299)){_0x3eb96e[_0x57c5e5(0x3b2,0x400,_0x18a177._0x214004,_0x18a177._0x44f28e)]===_0x40f44c(0x1d8,_0x18a177._0x5de7d7,_0x18a177._0x56f2cb,0x105)&&(_0x2977bf=_0x3eb96e[_0x57c5e5(_0x18a177._0x6d026,_0x18a177._0x259609,_0x18a177._0x32a0bf,0x429)]);}if(!_0x2977bf)throw new Error(_0x57c5e5(0x470,0x548,0x54e,_0x18a177._0x3d6a6c));return _0x2977bf;}catch(_0x318bb9){if(_0x318bb9 instanceof OpenAiApiError)throw this[_0x57c5e5(0x364,0x320,0x360,0x3d1)](_0x318bb9);throw _0x318bb9;}}async*[_0x4d4006(0x1e1,0x116,0x13a,0x188)](_0x5a440c,_0x340542){const _0x26495f={_0x4e2703:0xc,_0x25cbf0:0x15f,_0xd50c49:0x203,_0x2c7dd2:0x2e4},_0xf1816c={_0x4541e4:0x72},_0xdc9f76={_0x31150b:0x15c};function _0x6fa04d(_0x8a30cc,_0xc90847,_0x5085d3,_0x279d1b){return _0x4d4006(_0xc90847,_0xc90847-0x106,_0x8a30cc- -_0xdc9f76._0x31150b,_0x279d1b-0x26);}function _0xfc84bf(_0x23d3c5,_0x542bf1,_0x40efc9,_0xe1595c){return _0x18006e(_0x23d3c5-_0xf1816c._0x4541e4,_0x542bf1-0xc5,_0x542bf1- -0x259,_0x23d3c5);}try{yield*this[_0x6fa04d(-0xbd,-0xfc,-0x16f,-_0x26495f._0x4e2703)](_0x5a440c,_0x340542);}catch(_0x32c322){if(_0x32c322 instanceof OpenAiApiError)throw this[_0xfc84bf(-_0x26495f._0x25cbf0,-0x21f,-_0x26495f._0xd50c49,-_0x26495f._0x2c7dd2)](_0x32c322);throw _0x32c322;}}async*[_0x18006e(-0xd,0x70,0x56,0xae)](_0x33414e,_0x502189){const _0x42ca77={_0x7e9247:0xfc,_0x28a8f8:0xd0,_0x486809:0xed,_0x305ad2:0x12a},_0x45e2f9={_0x3df7c5:0xb3},_0x1b1f24={_0x2a3da4:0xce,_0x5d1e6a:0x5c,_0x60558:0x138};function _0x12aed7(_0x333e98,_0x3a10c6,_0xaa3a58,_0x5175e1){return _0x18006e(_0x333e98-_0x1b1f24._0x2a3da4,_0x3a10c6-_0x1b1f24._0x5d1e6a,_0x5175e1- -_0x1b1f24._0x60558,_0xaa3a58);}function _0xdf78df(_0x1a1b50,_0x4594d0,_0x1880cd,_0x2e0559){return _0x18006e(_0x1a1b50-0x1a6,_0x4594d0-0xb8,_0x1880cd-_0x45e2f9._0x3df7c5,_0x1a1b50);}try{yield*this[_0xdf78df(0x11a,0x139,0xdb,_0x42ca77._0x7e9247)](_0x33414e,_0x502189);}catch(_0x5bd50a){if(_0x5bd50a instanceof OpenAiApiError)throw this[_0xdf78df(0x6d,_0x42ca77._0x28a8f8,_0x42ca77._0x486809,_0x42ca77._0x305ad2)](_0x5bd50a);throw _0x5bd50a;}}async*[_0x4d4006(0xd3,0x12e,0xb8,0x17a)](_0x150802,_0x4ba883){const _0xd4c0ba={_0x488d50:0xc9,_0xda06e5:0x0},_0x1da2f1={_0x4e7317:0x13e};function _0x5435f6(_0x1b37bf,_0x59dd2a,_0x1793f6,_0x3bb764){return _0x4d4006(_0x1793f6,_0x59dd2a-0x1bd,_0x1b37bf- -0xe,_0x3bb764-0x6b);}function _0x300528(_0x30de6d,_0x44de50,_0x12dfa5,_0x6cf18){return _0x4d4006(_0x30de6d,_0x44de50-0xdd,_0x6cf18-0x2e,_0x6cf18-_0x1da2f1._0x4e7317);}try{yield*this[_0x300528(0xd3,_0xd4c0ba._0x488d50,_0xd4c0ba._0xda06e5,0xa9)](_0x150802,_0x4ba883);}catch(_0x24a3e9){if(_0x24a3e9 instanceof OpenAiApiError)throw this[_0x5435f6(-0xd,0x2d,0x95,0x75)](_0x24a3e9);throw _0x24a3e9;}}['complete'](_0x55fe85,_0x515e90){const _0x1de1c4={_0x19c0ec:0x32,_0x3000da:0x56},_0x8ddf09={_0x47e56c:0x135};function _0x43e59e(_0x80f2a0,_0x2e39f6,_0x55baca,_0x446c9f){return _0x18006e(_0x80f2a0-0x8f,_0x2e39f6-0x151,_0x446c9f- -_0x8ddf09._0x47e56c,_0x55baca);}return this[_0x43e59e(_0x1de1c4._0x19c0ec,-0x4e,-_0x1de1c4._0x3000da,0x43)](_0x55fe85,_0x515e90);}[_0x4d4006(0x152,0x112,0xb2,0xd3)](_0x12a9ee,_0x14449a){const _0x2ebef2={_0x1f8aaf:0x444,_0x204e1a:0x381},_0x57ea55={_0x315d42:0x5};function _0xb8ba27(_0x320757,_0x370f3a,_0x313ba7,_0x3c4751){return _0x18006e(_0x320757-_0x57ea55._0x315d42,_0x370f3a-0x14a,_0x313ba7-0x20e,_0x3c4751);}return this[_0xb8ba27(_0x2ebef2._0x1f8aaf,0x2c7,_0x2ebef2._0x204e1a,0x3ba)](_0x12a9ee,_0x14449a);}[_0x18006e(0xd0,0x61,0xb0,0x15b)](_0x4b8534){const _0x2f1ce7={_0x2c92e1:0x493,_0x64545e:0x445,_0x491023:0x52e,_0x2c39e:0x4c3,_0x251b12:0x463,_0x315f69:0x373,_0x394462:0x2e4,_0x3ebfe3:0x3d1},_0x516ff7={_0x1f4243:0x16,_0x33cfaf:0x2e2,_0x1e2e18:0xd7},_0x37f76d={_0x244ea4:0x2ee},_0xd1fc2f=this[_0x3cbc14(_0x2f1ce7._0x2c92e1,0x4c0,0x3ab,0x401)](_0x4b8534);function _0x3cbc14(_0x4596ec,_0x2d5c61,_0x1f48a5,_0x45741f){return _0x4d4006(_0x1f48a5,_0x2d5c61-0x75,_0x45741f-_0x37f76d._0x244ea4,_0x45741f-0x64);}function _0x12a6d9(_0x277b7d,_0x27614b,_0x4abd18,_0x1a2b65){return _0x4d4006(_0x27614b,_0x27614b-_0x516ff7._0x1f4243,_0x277b7d-_0x516ff7._0x33cfaf,_0x1a2b65-_0x516ff7._0x1e2e18);}let _0x3a9f68=_OpenAiModel['sharedResponsesSocketSessions'][_0x3cbc14(_0x2f1ce7._0x64545e,_0x2f1ce7._0x491023,_0x2f1ce7._0x2c39e,_0x2f1ce7._0x251b12)](_0xd1fc2f);return!_0x3a9f68&&(_0x3a9f68={'pending':Promise[_0x12a6d9(_0x2f1ce7._0x315f69,0x3e4,0x389,_0x2f1ce7._0x394462)]()},_OpenAiModel['sharedResponsesSocketSessions'][_0x12a6d9(0x43f,0x43c,_0x2f1ce7._0x3ebfe3,0x3ae)](_0xd1fc2f,_0x3a9f68)),_0x3a9f68;}['getResponsesSocketSessionKey'](_0x227687){const _0x186faf={_0x92f280:0x1c2},_0x5c7d62={_0x5baacf:0x13f,_0x3c316d:0x171};function _0x354770(_0x2c8870,_0x3d644c,_0x587cf0,_0x1beb75){return _0x18006e(_0x2c8870-_0x5c7d62._0x5baacf,_0x3d644c-_0x5c7d62._0x3c316d,_0x587cf0-0x10c,_0x1beb75);}return''+trimTrailingSlashes(this[_0x354770(_0x186faf._0x92f280,0x1bb,0x252,0x2bf)])+this['responsesPath']+'::'+_0x227687;}async[_0x18006e(-0x42,0xf4,0x7d,0xc8)](_0x1d7da7){const _0x3f4ef1={_0x2e0ab7:0x510,_0x1f3c5a:0x4f4,_0x21cd1f:0x48d,_0x26837d:0x472,_0x11b66e:0x561,_0x53c7c7:0x60f,_0xfb5cd4:0x5c2},_0x19fd28={_0x318ac9:0x19b,_0x37f72b:0x8f},_0x3a2747=_0x1d7da7[_0x5bc154(0x53c,0x458,0x5a5,_0x3f4ef1._0x2e0ab7)][_0x48e296(0x59b,_0x3f4ef1._0x1f3c5a,_0x3f4ef1._0x21cd1f,_0x3f4ef1._0x26837d)](()=>{});let _0x4446a4;const _0x2f4672=new Promise(_0x5ee779=>{_0x4446a4=_0x5ee779;});function _0x48e296(_0x106a7e,_0x1b2ce8,_0x4ca0d2,_0x4e7b49){return _0x4d4006(_0x106a7e,_0x1b2ce8-_0x19fd28._0x318ac9,_0x1b2ce8-0x3bb,_0x4e7b49-_0x19fd28._0x37f72b);}function _0x5bc154(_0xeb0825,_0x46c44d,_0x4604c4,_0x294a96){return _0x18006e(_0xeb0825-0xe0,_0x46c44d-0x15,_0x294a96-0x44d,_0x46c44d);}return _0x1d7da7['pending']=_0x3a2747[_0x5bc154(_0x3f4ef1._0x11b66e,0x5b2,_0x3f4ef1._0x53c7c7,_0x3f4ef1._0xfb5cd4)](()=>_0x2f4672),await _0x3a2747,()=>{_0x4446a4?.();};}async['prepareResponsesSocketRequest'](_0x560d5a,_0x45d304){const _0x446271={_0x2256b4:0x40f,_0x46ffe6:0x39f,_0x4aaa3e:0x4ab,_0x19cc02:0x45e,_0x593d53:0x623,_0x1a487f:0x5d3,_0x37006d:0x30e,_0x3c163d:0x2ef,_0x5c2424:0x42f,_0x17b143:0x38a,_0x5d60c0:0x548,_0x3b434e:0x4f7,_0x1aa3a3:0x4ee,_0x4f7d95:0x56a,_0x311c15:0x4dc,_0x38a87e:0x52a,_0x5d57e5:0x549,_0x2e72fd:0x6b6,_0x3bf16c:0x233,_0x4a6fdf:0x245,_0x2b90bb:0x2ee,_0x1c854c:0x44e,_0x33d90c:0x376,_0x3cb244:0x362,_0xcb6b5b:0x64e,_0x573b40:0x596},_0x457e2f={_0x43c656:0x8,_0xf5738c:0x2fb},_0x12229c=this[_0x812a03(_0x446271._0x2256b4,_0x446271._0x46ffe6,_0x446271._0x4aaa3e,_0x446271._0x19cc02)](_0x560d5a),_0x4f0ee7=toModelRequest(_0x12229c),_0x42292c=await prepareProviderRequest(_0x4f0ee7,{'sessionManager':this['sessionManager'],'requestMutators':this[_0x2e5ced(0x5ba,0x5fb,_0x446271._0x593d53,_0x446271._0x1a487f)],'signal':_0x45d304});function _0x812a03(_0xe5de4e,_0x3d2a46,_0x440fd3,_0x4ee438){return _0x4d4006(_0xe5de4e,_0x3d2a46-_0x457e2f._0x43c656,_0x4ee438-_0x457e2f._0xf5738c,_0x4ee438-0x1a1);}const _0x4d9718=toChatRequest(_0x42292c[_0x812a03(_0x446271._0x37006d,_0x446271._0x3c163d,_0x446271._0x5c2424,_0x446271._0x17b143)]),_0x168940=this[_0x2e5ced(_0x446271._0x5d60c0,_0x446271._0x3b434e,_0x446271._0x1aa3a3,_0x446271._0x4f7d95)]['resolveCredential'](this['apiKey'],_0x42292c[_0x2e5ced(_0x446271._0x311c15,_0x446271._0x38a87e,0x596,_0x446271._0x5d57e5)]);function _0x2e5ced(_0x16c91d,_0x16a6af,_0x459aff,_0x1fe076){return _0x18006e(_0x16c91d-0x3a,_0x16a6af-0xf,_0x459aff-0x4c2,_0x16a6af);}if(!_0x168940)throw this[_0x2e5ced(0x6fb,_0x446271._0x2e72fd,0x659,0x593)]();return{'baseUrl':this[_0x812a03(_0x446271._0x3bf16c,0x2b7,_0x446271._0x4a6fdf,_0x446271._0x2b90bb)]['resolveBaseUrl'](this[_0x812a03(_0x446271._0x1c854c,_0x446271._0x33d90c,_0x446271._0x3cb244,0x408)],_0x42292c['session']),'credential':_0x168940,'request':_0x4d9718,'session':_0x42292c[_0x2e5ced(_0x446271._0xcb6b5b,0x584,_0x446271._0x573b40,0x52f)]};}[_0x18006e(0x136,0x7d,0xd2,0x125)](_0x396cca,_0xd32e4c,_0x509a46={}){const _0x16d9e1={_0x232a76:0x55,_0x474e08:0x1b,_0x1202c4:0xdb,_0x356b59:0x1e9,_0x54bc76:0x1f5,_0x59abb5:0x40,_0x388fea:0x79,_0x5b7652:0x53,_0x2f26be:0x8a,_0x42ddb2:0xe7,_0x443b1b:0xa,_0x573e53:0x159,_0x6de383:0x218,_0x28ccce:0xe5,_0x3cfd2f:0xf1},_0x5a1925={_0x239fc5:0x98,_0x54325e:0x16c},_0x48cb13={_0x1dbb7b:0x59,_0x2b5c90:0x61,_0x37d9e7:0xf3};function _0x5d28c1(_0x5eab55,_0x1c4d9a,_0x37d57b,_0x364f76){return _0x18006e(_0x5eab55-_0x48cb13._0x1dbb7b,_0x1c4d9a-_0x48cb13._0x2b5c90,_0x5eab55- -_0x48cb13._0x37d9e7,_0x1c4d9a);}if(!_0x509a46[_0x5d28c1(-0x74,_0x16d9e1._0x232a76,0x4a,-0x122)]){const _0x451d90=this[_0x40502b(-0xde,-_0x16d9e1._0x474e08,-_0x16d9e1._0x1202c4,-0xa2)](_0x396cca);if(_0x451d90&&_0xd32e4c[_0x40502b(-0x14e,-_0x16d9e1._0x356b59,-_0x16d9e1._0x54bc76,-0x12e)]&&_0x451d90[_0x5d28c1(-_0x16d9e1._0x59abb5,_0x16d9e1._0x388fea,-_0x16d9e1._0x5b7652,-_0x16d9e1._0x2f26be)]===_0xd32e4c['lastResponseId']){const _0x43b0d7=toOpenAiResponsesRequest({..._0x396cca,'messages':_0x396cca[_0x5d28c1(-0xcf,-_0x16d9e1._0x42ddb2,-0x164,-_0x16d9e1._0x443b1b)]['slice'](_0x451d90[_0x40502b(-_0x16d9e1._0x573e53,-_0x16d9e1._0x6de383,-0x211,-0x90)]+0x1)})['input'];return{'event':createOpenAiResponsesWebSocketEvent(_0x396cca,{'input':_0x43b0d7,'previousResponseId':_0x451d90[_0x5d28c1(-_0x16d9e1._0x59abb5,-0x4d,0x19,0x66)]}),'previousResponseId':_0x451d90[_0x5d28c1(-0x40,-_0x16d9e1._0x28ccce,-0x103,-_0x16d9e1._0x3cfd2f)]};}}function _0x40502b(_0x40ab4d,_0x280512,_0xf66591,_0x5f4374){return _0x4d4006(_0x280512,_0x280512-_0x5a1925._0x239fc5,_0x40ab4d- -_0x5a1925._0x54325e,_0x5f4374-0x75);}return{'event':createOpenAiResponsesWebSocketEvent(_0x396cca)};}[_0x18006e(0x9e,0x161,0xc7,0x80)](_0x5ae8c7){const _0x4d8de2={_0x2880dc:0x23e,_0x1118d3:0x1ff,_0x51cc5f:0x2c6,_0x4e396e:0x4e3,_0x5dd9af:0x497,_0xb70102:0x173,_0x324f23:0x8c,_0x13ba0e:0x542},_0x2dda36={_0x43332b:0x3e,_0x1c8336:0x1a9},_0x60f337={_0xa0ecd3:0x1a3,_0x14cb22:0x9b,_0xc48736:0x223};function _0x5d1ed1(_0x193a4e,_0x568a67,_0x1dbdad,_0x33a885){return _0x18006e(_0x193a4e-_0x60f337._0xa0ecd3,_0x568a67-_0x60f337._0x14cb22,_0x33a885- -_0x60f337._0xc48736,_0x1dbdad);}function _0x45ba78(_0x436817,_0x2e7534,_0x5b6b47,_0xf1e704){return _0x18006e(_0x436817-_0x2dda36._0x43332b,_0x2e7534-_0x2dda36._0x1c8336,_0x436817-0x45a,_0xf1e704);}for(let _0x3d4eaa=_0x5ae8c7[_0x5d1ed1(-0x250,-0x215,-_0x4d8de2._0x2880dc,-_0x4d8de2._0x1118d3)]['length']-0x1;_0x3d4eaa>=0x0;_0x3d4eaa-=0x1){const _0x5af37c=_0x5ae8c7[_0x5d1ed1(-_0x4d8de2._0x51cc5f,-0x229,-0x1fa,-_0x4d8de2._0x1118d3)][_0x3d4eaa],_0x166e15=_0x5af37c[_0x45ba78(_0x4d8de2._0x4e396e,0x4c9,0x445,_0x4d8de2._0x5dd9af)]==='assistant'?_0x5af37c[_0x5d1ed1(-0x14a,-_0x4d8de2._0xb70102,-_0x4d8de2._0x324f23,-0x148)]?.[_0x45ba78(_0x4d8de2._0x13ba0e,0x4dd,0x55d,0x478)]:void 0x0;if(_0x166e15)return{'messageIndex':_0x3d4eaa,'responseId':_0x166e15};}return void 0x0;}['shouldRetryResponsesSocketRequest'](_0x29d1af){const _0x1e0ac7={_0x4babbd:0x291,_0x4b4da5:0x296,_0x43469f:0x1d9,_0x24b788:0x33b,_0x349a03:0x2f6},_0x38251e={_0x4f0e0a:0x14b,_0x462196:0x24d},_0x13f3a0={_0x5ef03a:0x309};function _0x5ce6f7(_0x33681f,_0x3b2edd,_0x262b3a,_0x5b9177){return _0x4d4006(_0x3b2edd,_0x3b2edd-0x15,_0x262b3a-_0x13f3a0._0x5ef03a,_0x5b9177-0xf9);}function _0xe7d44c(_0x21df8d,_0x35049e,_0x223dde,_0x9d9ff6){return _0x18006e(_0x21df8d-0x22,_0x35049e-_0x38251e._0x4f0e0a,_0x223dde-_0x38251e._0x462196,_0x35049e);}return _0x29d1af instanceof ProviderStreamEventError&&(_0x29d1af['code']===_0xe7d44c(0x214,_0x1e0ac7._0x4babbd,_0x1e0ac7._0x4b4da5,_0x1e0ac7._0x43469f)||_0x29d1af['code']===_0x5ce6f7(0x381,0x2fe,_0x1e0ac7._0x24b788,_0x1e0ac7._0x349a03));}[_0x18006e(0x101,0x4c,0x45,0x5a)](_0x49b291){const _0xd6d5a0={_0x584fae:0x220,_0x12947f:0x30e,_0x445523:0x332,_0x3b3689:0x1b5,_0x290ea9:0xf9,_0x26f2f6:0x98,_0x3e3e7c:0xb,_0x3825a6:0x178,_0xe9ee8d:0x1d6,_0x39b08b:0x2b9,_0x1a2776:0xbf,_0x58bb76:0x1f3,_0x58fdf5:0x2b9},_0xb8fa={_0x82c486:0x185,_0x564249:0x4a},_0x41f8c1={_0x39ba9e:0x44},_0x4207b6=_0x49b291['socket'];_0x49b291[_0x433d77(_0xd6d5a0._0x584fae,_0xd6d5a0._0x12947f,_0xd6d5a0._0x445523,0x2a3)]=void 0x0;function _0x433d77(_0x455869,_0x229cef,_0x3f883b,_0x3d8c3a){return _0x4d4006(_0x455869,_0x229cef-_0x41f8c1._0x39ba9e,_0x3d8c3a-0x2a5,_0x3d8c3a-0x184);}_0x49b291[_0x158aab(_0xd6d5a0._0x3b3689,0x10a,_0xd6d5a0._0x290ea9,0x23b)]=void 0x0,_0x49b291[_0x158aab(0xa1,_0xd6d5a0._0x26f2f6,_0xd6d5a0._0x3e3e7c,0x65)]=void 0x0;function _0x158aab(_0x4413ba,_0x45062c,_0x57df04,_0x2fb282){return _0x18006e(_0x4413ba-0xcd,_0x45062c-_0xb8fa._0x82c486,_0x4413ba-_0xb8fa._0x564249,_0x45062c);}_0x4207b6?.[_0x158aab(_0xd6d5a0._0x3825a6,0x20a,0xf4,_0xd6d5a0._0xe9ee8d)]===WebSocket[_0x433d77(_0xd6d5a0._0x39b08b,0x361,0x315,0x2c0)]&&_0x4207b6[_0x158aab(_0xd6d5a0._0x1a2776,0x188,0xeb,0x153)](0x3e8,_0x433d77(_0xd6d5a0._0x58bb76,0x36c,0x1ff,_0xd6d5a0._0x58fdf5));}async['getOrCreateResponsesSocket'](_0x1ee1a1,_0x176d83,_0xd05af1,_0x525489,_0x174c43){const _0xa0bb25={_0x1d21f9:0x316,_0x5204cc:0x334,_0x4e1ba9:0x2f1,_0x1577bf:0x40d,_0x5f574d:0x3c1,_0x2205ee:0x270,_0x237dbc:0x131,_0x4dce36:0x254,_0x51c982:0x140,_0x4b6420:0x9b,_0x5cd1db:0x44a,_0x60bdac:0x4aa,_0x399a2f:0x3c6,_0x27152c:0x477,_0x317a2c:0x90,_0x2419b7:0x8a,_0xe6f52c:0x44a},_0x2e78ff={_0x4982e1:0x2e4,_0x1b84c5:0x8c,_0x51f21e:0x137,_0x32dfeb:0x18,_0x49020f:0x302,_0x1fcad0:0x18b,_0x156e13:0x24a,_0x4bde09:0x1c2,_0x236e13:0x2f8,_0x183916:0x3e8,_0x4a23a1:0x2e9,_0x240ab4:0x33f,_0x4ea8fc:0x374,_0x48e106:0x1da,_0x31f78c:0x1c5,_0x16e775:0x2e2,_0x43409d:0x2b7,_0x5e1772:0x34a,_0x5b9e60:0x292,_0x3da300:0x284,_0x3e314a:0x2de,_0x2673ea:0x317,_0x4b6ed4:0x2d4,_0x2ecfd5:0x152,_0x1da0bb:0x17b,_0x49cc63:0x26,_0x13d81a:0x11b,_0x3135eb:0xd1,_0x58dcdc:0x123,_0x4ef432:0x32,_0x41f367:0x2a5,_0x22e8d3:0x2bc,_0x39568e:0x1db,_0x21ab7e:0x238,_0x8f2105:0x32d,_0x181c7a:0x2a3,_0x11817a:0x2e6,_0x52beef:0x34a,_0x448743:0x29b,_0x5044d8:0x2ae},_0x4c5fa5={_0x53eeab:0xb1},_0x4d2655={_0x34a1e4:0x3d5,_0x237468:0x473,_0x4ebb05:0x45e,_0x42baa8:0x483,_0x12a685:0x473,_0x2b875f:0x4ce},_0x26d3b2={_0x19da81:0x16d,_0x249fb7:0xcd},_0x539597={_0x26a998:0x95,_0x1d6680:0x318,_0x3cda2e:0x1de},_0x58ae01={_0xfddc89:0x1cd,_0x154bc0:0x59};if(_0x176d83[_0x3c7f93(_0xa0bb25._0x1d21f9,_0xa0bb25._0x5204cc,0x2e4,_0xa0bb25._0x4e1ba9)]?.[_0x3c7f93(_0xa0bb25._0x1577bf,0x452,_0xa0bb25._0x5f574d,0x380)]===WebSocket[_0x353373(-0x150,-0x185,-0x1b2,-_0xa0bb25._0x2205ee)])return _0x176d83[_0x353373(-_0xa0bb25._0x237dbc,-0x122,-0x1cf,-_0xa0bb25._0x4dce36)];function _0x353373(_0x1e28c1,_0x4ebb08,_0x2a6bc5,_0x37f37f){return _0x4d4006(_0x1e28c1,_0x4ebb08-0x104,_0x2a6bc5- -_0x58ae01._0xfddc89,_0x37f37f-_0x58ae01._0x154bc0);}function _0x3c7f93(_0x28a269,_0x55900e,_0x2b6224,_0x2004d7){return _0x4d4006(_0x55900e,_0x55900e-_0x539597._0x26a998,_0x28a269-_0x539597._0x1d6680,_0x2004d7-_0x539597._0x3cda2e);}if(_0x176d83[_0x353373(-0x102,-_0xa0bb25._0x51c982,-_0xa0bb25._0x4b6420,-0x1c)])return await _0x176d83[_0x3c7f93(_0xa0bb25._0x5cd1db,_0xa0bb25._0x60bdac,_0xa0bb25._0x399a2f,_0xa0bb25._0x27152c)];_0x176d83[_0x353373(-_0xa0bb25._0x317a2c,-0x31,-_0xa0bb25._0x4b6420,-_0xa0bb25._0x2419b7)]=((async()=>{const _0x222ab0={_0x22613b:0x15a,_0x11493e:0x189},_0x253b3e=await this[_0x546cd4(_0x2e78ff._0x4982e1,0x3f0,0x36e,0x3f2)]({'request':_0xd05af1['request'],'body':_0x525489,'credential':_0xd05af1[_0x1d894e(_0x2e78ff._0x1b84c5,_0x2e78ff._0x51f21e,0x14a,-_0x2e78ff._0x32dfeb)],'session':_0xd05af1[_0x546cd4(0x371,0x303,_0x2e78ff._0x49020f,0x3a6)],'stream':!![]},{'accept':_0x1d894e(0xdf,0x135,0x150,0x118),'includeContentType':![]});function _0x1d894e(_0x2bd24c,_0xce1d4b,_0x2552ab,_0x3bc23f){return _0x3c7f93(_0x2bd24c- -0x278,_0xce1d4b,_0x2552ab-_0x26d3b2._0x19da81,_0x3bc23f-_0x26d3b2._0x249fb7);}_0x253b3e[_0x1d894e(_0x2e78ff._0x1fcad0,_0x2e78ff._0x156e13,0x19a,_0x2e78ff._0x4bde09)](_0x546cd4(0x3c7,_0x2e78ff._0x236e13,0x36b,0x326));const _0x187601=this['webSocketFactory']({'headers':Object[_0x546cd4(_0x2e78ff._0x183916,_0x2e78ff._0x4a23a1,0x382,0x429)](_0x253b3e['entries']()),'url':(''+_0xd05af1[_0x546cd4(_0x2e78ff._0x240ab4,0x3fe,_0x2e78ff._0x4ea8fc,0x35f)]+this[_0x546cd4(_0x2e78ff._0x48e106,_0x2e78ff._0x31f78c,0x25f,_0x2e78ff._0x16e775)])[_0x546cd4(_0x2e78ff._0x43409d,_0x2e78ff._0x5e1772,_0x2e78ff._0x5b9e60,_0x2e78ff._0x3da300)](/^http:/,_0x546cd4(0x301,_0x2e78ff._0x3e314a,_0x2e78ff._0x2673ea,_0x2e78ff._0x4b6ed4))[_0x1d894e(0xcb,_0x2e78ff._0x2ecfd5,_0x2e78ff._0x1da0bb,_0x2e78ff._0x49cc63)](/^https:/,_0x546cd4(0x3ba,0x261,0x30a,0x356))}),_0x225e69=()=>{const _0x4dabf9={_0x466286:0x3d5,_0x268853:0x35,_0x976850:0x1d0};function _0x3f2150(_0x716ee,_0x40e604,_0x176283,_0x114723){return _0x1d894e(_0x716ee-0x17d,_0x114723,_0x176283-_0x222ab0._0x22613b,_0x114723-_0x222ab0._0x11493e);}function _0xb1384f(_0x25a0ee,_0x5abfe,_0x308d86,_0x345084){return _0x1d894e(_0x308d86-_0x4dabf9._0x466286,_0x5abfe,_0x308d86-_0x4dabf9._0x268853,_0x345084-_0x4dabf9._0x976850);}_0x176d83[_0xb1384f(0x4a6,_0x4d2655._0x34a1e4,_0x4d2655._0x237468,_0x4d2655._0x4ebb05)]===_0x187601&&(_0x176d83[_0xb1384f(_0x4d2655._0x42baa8,0x3d2,_0x4d2655._0x12a685,_0x4d2655._0x2b875f)]=void 0x0,_0x176d83['lastResponseId']=void 0x0);};_0x187601['addEventListener'](_0x1d894e(0xdc,_0x2e78ff._0x13d81a,0x2e,0x7e),_0x225e69);function _0x546cd4(_0x654554,_0x1f037f,_0x5c9740,_0x5bed2b){return _0x3c7f93(_0x5c9740- -_0x4c5fa5._0x53eeab,_0x654554,_0x5c9740-0x68,_0x5bed2b-0x128);}try{return throwIfAborted(_0x174c43),_0x187601['readyState']!==WebSocket['OPEN']&&await waitForWebSocketOpen(_0x187601,_0x174c43),throwIfAborted(_0x174c43),_0x176d83[_0x1d894e(0x9e,_0x2e78ff._0x3135eb,_0x2e78ff._0x58dcdc,_0x2e78ff._0x4ef432)]=_0x187601,_0x187601;}catch(_0x5a8b1c){_0x225e69();_0x187601[_0x546cd4(_0x2e78ff._0x41f367,_0x2e78ff._0x22e8d3,0x35c,0x3cf)]===WebSocket[_0x546cd4(_0x2e78ff._0x39568e,_0x2e78ff._0x21ab7e,0x282,_0x2e78ff._0x8f2105)]&&_0x187601[_0x546cd4(0x2e1,0x243,_0x2e78ff._0x181c7a,0x24b)](0x3e8,_0x546cd4(_0x2e78ff._0x11817a,_0x2e78ff._0x52beef,_0x2e78ff._0x448743,_0x2e78ff._0x5044d8));throw _0x5a8b1c;}})());try{return await _0x176d83[_0x3c7f93(_0xa0bb25._0xe6f52c,0x44e,0x3d1,0x3f7)];}finally{_0x176d83['connecting']=void 0x0;}}async*[_0x4d4006(0xcf,0xbb,0x7b,0xa1)](_0x441081,_0x2d7698){const _0x20eccf={_0x449895:0x40b,_0x50835d:0x4c1,_0x5dffe6:0x4e1,_0x376054:0x1eb,_0x3f796e:0x387,_0x4c61ba:0x41e,_0x1c6e62:0x35c,_0x302230:0x74,_0x567371:0x1a4,_0x4d2e18:0x380,_0x593aab:0x238,_0x192ead:0x499,_0x108264:0xf2,_0x416143:0x14a,_0x4eb548:0xd9,_0x52645a:0x13f,_0x469046:0x452,_0x221fe5:0x4b4,_0x4f53af:0x4ac,_0x2ae00b:0x43e,_0x263f5c:0x439,_0x567df9:0x36a,_0x1e0472:0x3d8,_0x284698:0x145,_0x59719a:0xfe,_0x1aaa29:0xb7,_0x7d03f2:0x1b4,_0x72b73f:0x469,_0x54616d:0x513,_0x163312:0x37d,_0x46b389:0x3e6,_0x1d1be6:0x333,_0x492e2a:0x198,_0x4f3f38:0x7e,_0x232cd4:0x111,_0x5d41d9:0x219,_0x504f8e:0x1bd},_0xe24f06={_0x2e72d0:0xc9};function _0xfdab6b(_0x4af597,_0x388c09,_0xacdb02,_0x1df6d7){return _0x4d4006(_0x388c09,_0x388c09-0xc4,_0x1df6d7-_0xe24f06._0x2e72d0,_0x1df6d7-0x11);}const _0x3c65ef=this[_0x5b7d58(_0x20eccf._0x449895,_0x20eccf._0x50835d,_0x20eccf._0x5dffe6,0x57e)](_0x441081),_0x19ae5b=this[_0xfdab6b(0xe2,0x19a,_0x20eccf._0x376054,0x140)](_0x3c65ef[_0x5b7d58(_0x20eccf._0x3f796e,_0x20eccf._0x4c61ba,_0x20eccf._0x1c6e62,0x3e8)]['sessionId']);function _0x5b7d58(_0x47276e,_0xfdc47b,_0x4d5331,_0x545192){return _0x18006e(_0x47276e-0xe5,_0xfdc47b-0x1de,_0xfdc47b-0x325,_0x47276e);}const _0x3a04ea=await this[_0xfdab6b(0x62,_0x20eccf._0x302230,_0x20eccf._0x567371,0x10d)](_0x19ae5b);try{const _0x3dfff6=this[_0x5b7d58(_0x20eccf._0x4d2e18,0x3f7,0x4b9,0x47d)](_0x3c65ef,_0x19ae5b);try{yield*this['streamViaResponsesSocketAttempt'](_0x3c65ef[_0xfdab6b(0xf9,0x1d3,_0x20eccf._0x593aab,0x189)][_0x5b7d58(_0x20eccf._0x192ead,0x3e6,0x3b0,0x3de)],_0x19ae5b,_0x3c65ef,_0x3dfff6[_0xfdab6b(_0x20eccf._0x108264,_0x20eccf._0x416143,_0x20eccf._0x4eb548,_0x20eccf._0x52645a)],_0x2d7698?.[_0x5b7d58(0x4aa,_0x20eccf._0x469046,0x3bd,0x3dd)]);return;}catch(_0x2e00c0){if(!_0x3dfff6[_0x5b7d58(_0x20eccf._0x221fe5,_0x20eccf._0x4f53af,_0x20eccf._0x2ae00b,_0x20eccf._0x263f5c)]||!this[_0x5b7d58(0x4d5,0x40b,_0x20eccf._0x567df9,_0x20eccf._0x1e0472)](_0x2e00c0)){this[_0xfdab6b(_0x20eccf._0x284698,0x120,_0x20eccf._0x59719a,0xd5)](_0x19ae5b);throw _0x2e00c0;}}this[_0xfdab6b(0x78,_0x20eccf._0x1aaa29,0x198,0xd5)](_0x19ae5b);const _0x24817d=this[_0xfdab6b(0xc5,_0x20eccf._0x7d03f2,0x9a,0x162)](_0x3c65ef,_0x19ae5b,{'forceFullReplay':!![]});yield*this[_0x5b7d58(0x42b,_0x20eccf._0x72b73f,_0x20eccf._0x54616d,0x4ca)](_0x3c65ef[_0x5b7d58(0x394,0x41e,0x478,_0x20eccf._0x163312)][_0x5b7d58(0x453,_0x20eccf._0x46b389,_0x20eccf._0x1d1be6,0x43f)],_0x19ae5b,_0x3c65ef,_0x24817d[_0xfdab6b(_0x20eccf._0x492e2a,_0x20eccf._0x4f3f38,0x1f9,0x13f)],_0x2d7698?.[_0xfdab6b(0x201,_0x20eccf._0x232cd4,_0x20eccf._0x5d41d9,_0x20eccf._0x504f8e)]);}finally{_0x3a04ea();}}async*[_0x4d4006(0x1b3,0x18c,0x10b,0x138)](_0x3f497a,_0x26909c,_0xa3f3e3,_0x3b4a72,_0xe254bd){const _0x535222={_0x24f939:0x400,_0x4f2d10:0x399,_0x35c66b:0x37c,_0x3c897f:0x532,_0x16d161:0x4cf,_0x2b38ec:0x4de,_0x21ee2a:0x32e,_0xe05aec:0x30f,_0x88d8ef:0x4e1,_0x42fe77:0x473,_0xfbdb91:0x460,_0xd1bf0a:0x367,_0x49ad21:0x250,_0x4703fa:0x2d7,_0x538e95:0x311,_0x2e4b5a:0x2db,_0xfb7b19:0x217,_0x14bd34:0x55c,_0xc11f8:0x4fc,_0x106b5:0x3be,_0x4b9129:0x3a6,_0x56e8f3:0x2f5,_0x30ccc9:0x3ab,_0x1c406f:0x353,_0x573860:0x276,_0x45c64f:0x469,_0xe45ab2:0x441,_0x16f1b1:0x3cd,_0x4cff94:0x464,_0x53bdc7:0x5bb,_0x402c53:0x4f5,_0x46d81f:0x511},_0x411787={_0x2ebc7b:0x2c,_0x15ee84:0x25,_0x4ea16b:0x21a},_0x4ed85f={_0x1c5b0a:0x15f},_0x1a90f4=await this[_0x500d7b(_0x535222._0x24f939,_0x535222._0x4f2d10,0x3d8,_0x535222._0x35c66b)](_0xa3f3e3,_0xe254bd),_0x2e0bf2=await this[_0x500d7b(_0x535222._0x3c897f,0x550,_0x535222._0x16d161,_0x535222._0x2b38ec)](_0x3f497a,_0x26909c,_0x1a90f4,_0x3b4a72,_0xe254bd),_0x38baef=createOpenAiResponsesStreamParser(_0xa3f3e3);throwIfAborted(_0xe254bd),_0x2e0bf2[_0x17c458(_0x535222._0x21ee2a,_0x535222._0xe05aec,0x362,0x29c)](JSON[_0x500d7b(_0x535222._0x88d8ef,0x44d,_0x535222._0x42fe77,_0x535222._0xfbdb91)](_0x3b4a72));function _0x500d7b(_0x47ad05,_0x257485,_0x1bb91f,_0x210ea4){return _0x4d4006(_0x47ad05,_0x257485-_0x4ed85f._0x1c5b0a,_0x1bb91f-0x3af,_0x210ea4-0xaf);}for await(const _0x161169 of iterateWebSocketMessages(_0x2e0bf2,_0xe254bd)){const _0x533a1c=_0x38baef[_0x17c458(0x32e,0x331,0x355,_0x535222._0xd1bf0a)]?.(_0x161169)??[];yield*_0x533a1c;if(_0x38baef[_0x17c458(_0x535222._0x49ad21,_0x535222._0x4703fa,_0x535222._0x538e95,0x2b4)]?.())break;}if(!_0x38baef['isDone']?.())throw new Error(_0x17c458(_0x535222._0x2e4b5a,0x35c,0x2d4,_0x535222._0xfb7b19));const _0x894833=_0x38baef[_0x500d7b(0x598,_0x535222._0x14bd34,_0x535222._0xc11f8,0x57f)](),_0x24d192=_0x894833[_0x17c458(_0x535222._0x106b5,_0x535222._0x4b9129,_0x535222._0x56e8f3,_0x535222._0x30ccc9)]?.[_0x17c458(_0x535222._0x1c406f,0x343,0x302,_0x535222._0x573860)]??_0x894833['id'];function _0x17c458(_0x2a5049,_0x204b4f,_0x32047f,_0x1c3925){return _0x18006e(_0x2a5049-_0x411787._0x2ebc7b,_0x204b4f-_0x411787._0x15ee84,_0x32047f-_0x411787._0x4ea16b,_0x1c3925);}_0x24d192&&(_0x26909c[_0x500d7b(_0x535222._0x45c64f,_0x535222._0xe45ab2,_0x535222._0x16f1b1,_0x535222._0x4cff94)]=_0x24d192),yield{'type':_0x500d7b(_0x535222._0x53bdc7,0x4c4,_0x535222._0x402c53,_0x535222._0x46d81f),'response':_0x894833};}},AVAILABLE_CHAT_MODEL_SURFACES=['anthropic-messages',_0x4d4006(-0x75,-0x33,-0xb,-0x77),_0x4d4006(0x1c6,0xdf,0x149,0xd0),'openai-responses-ws'];function isAnthropicSurface(_0x6a8084){const _0x5e92db={_0x6da96b:0x343,_0x2edeaf:0x401},_0xff3010={_0x371495:0x3da,_0x4de8f7:0x39};function _0x44ac3d(_0x5381ed,_0x31c543,_0x2df38b,_0x15e858){return _0x4d4006(_0x31c543,_0x31c543-0x1de,_0x15e858-_0xff3010._0x371495,_0x15e858-_0xff3010._0x4de8f7);}return _0x6a8084===_0x44ac3d(_0x5e92db._0x6da96b,0x39d,0x347,_0x5e92db._0x2edeaf);}function resolveDefaultBaseUrl(_0x622b51){const _0x3ae362={_0x59d24c:0x4b,_0xa6d685:0x77,_0x235f7a:0x47,_0x5452f2:0x2c,_0x5e0155:0x1f},_0x416133={_0x2204f9:0x89},_0x3ddae8={_0x298622:0xf9};function _0xb3692f(_0x15353a,_0x103a55,_0x378965,_0x4c65a2){return _0x18006e(_0x15353a-_0x3ddae8._0x298622,_0x103a55-0x10b,_0x378965-0xaf,_0x4c65a2);}function _0x2cff67(_0x34cf8f,_0x33b06f,_0x2bf591,_0x534f7d){return _0x4d4006(_0x34cf8f,_0x33b06f-_0x416133._0x2204f9,_0x33b06f- -0x73,_0x534f7d-0x156);}return isAnthropicSurface(_0x622b51)?_0x2cff67(_0x3ae362._0x59d24c,-_0x3ae362._0xa6d685,-_0x3ae362._0x235f7a,_0x3ae362._0x5452f2):_0x2cff67(-0x94,-0x3e,_0x3ae362._0x5e0155,0x8a);}var ChatModel=class{[_0x4d4006(0x72,0xa4,0xf,0x3)];[_0x4d4006(0x182,0x159,0x164,0x1db)];['surface'];[_0x4d4006(0x107,0x5b,0xa5,0x1)];[_0x4d4006(0x158,0x143,0x14b,0x8f)];constructor(_0x495196={}){const _0x2ff22f={_0x211a25:0x361,_0x17d8e1:0x3ca,_0x1d7e28:0x13e,_0x1cc2bb:0x1e4,_0x7f8df0:0x244,_0xadf678:0x1eb,_0x24960c:0x13a,_0x2d25d5:0x1c9,_0x3580bb:0x237,_0x147e5f:0x1ae,_0x347282:0x1f9,_0x1b9513:0x1d2,_0x347ce9:0x1ed,_0x2937a9:0x26f,_0x3126e1:0x36f,_0x5a28cb:0x30c,_0x1957fe:0x1d7,_0x41ab13:0x291,_0x1175bc:0x287,_0x59be02:0x2e0,_0x4c110a:0x28a,_0x3c79ce:0x2c9,_0x5c4f70:0x27c,_0x2866e6:0x278,_0x38e257:0x3b9,_0xa345be:0x2f3,_0x5a610f:0x35e,_0x455ba8:0x2b9,_0x2ef521:0x1cd,_0x204bbb:0x291,_0x3d689c:0x32d,_0xe9fa06:0x28f,_0x3da4a0:0x377,_0x792f8c:0x377,_0x17f109:0x1fb,_0x261f83:0x1b0,_0x58e0f6:0x171,_0x2f1512:0x27e,_0x3c1949:0x2bc,_0x2c92d8:0x2bb},_0x26983f={_0x243933:0xb2},_0x11d6c0={_0x5ba3f4:0x9f,_0x1e2939:0x1a1,_0x98534f:0x120};this['model']=_0x495196['model']??_0x2c768b(0x2fb,0x2b3,_0x2ff22f._0x211a25,0x2a6);function _0x2c768b(_0x3a0754,_0x4672c6,_0x593390,_0x21c5ae){return _0x4d4006(_0x3a0754,_0x4672c6-_0x11d6c0._0x5ba3f4,_0x4672c6-_0x11d6c0._0x1e2939,_0x21c5ae-_0x11d6c0._0x98534f);}this[_0x5266ea(_0x2ff22f._0x17d8e1,0x31a,0x3c2,0x30c)]=_0x495196['maxTokens']??0x4000,this[_0x2c768b(_0x2ff22f._0x1d7e28,_0x2ff22f._0x1cc2bb,0x1b6,0x146)]=_0x495196[_0x5266ea(0x1bc,0x1c4,_0x2ff22f._0x7f8df0,_0x2ff22f._0xadf678)]??'openai-chat-completions';const _0x374085=trimTrailingSlashes(_0x495196['baseUrl']??resolveDefaultBaseUrl(this[_0x2c768b(0x1dd,_0x2ff22f._0x1cc2bb,0x13c,0x1b6)]));function _0x5266ea(_0x31f7f8,_0x18deda,_0x33172f,_0xb9514e){return _0x18006e(_0x31f7f8-0x28,_0x18deda-_0x26983f._0x243933,_0xb9514e-0x16f,_0x31f7f8);}if(isAnthropicSurface(this[_0x2c768b(0x213,0x1e4,0x231,_0x2ff22f._0x24960c)])){this[_0x5266ea(0x28c,_0x2ff22f._0x2d25d5,0x1ce,0x24d)]=new AnthropicModel({'apiKey':_0x495196['apiKey'],'authScheme':_0x495196[_0x2c768b(0x24b,_0x2ff22f._0x3580bb,0x1d4,_0x2ff22f._0x147e5f)],'baseUrl':_0x374085,'fetch':_0x495196[_0x5266ea(_0x2ff22f._0x347282,_0x2ff22f._0x1b9513,_0x2ff22f._0x347ce9,_0x2ff22f._0x2937a9)],'maxTokens':this[_0x5266ea(0x397,_0x2ff22f._0x3126e1,0x2a7,_0x2ff22f._0x5a28cb)],'model':this['model'],'reasoning':_0x495196[_0x2c768b(0x1f4,0x277,0x2df,_0x2ff22f._0x1957fe)],'providerSessionResolver':_0x495196[_0x2c768b(_0x2ff22f._0x41ab13,_0x2ff22f._0x1175bc,_0x2ff22f._0x59be02,_0x2ff22f._0x4c110a)],'requestMutators':_0x495196[_0x2c768b(0x308,_0x2ff22f._0x3c79ce,0x332,0x241)]});return;}this[_0x5266ea(_0x2ff22f._0x5c4f70,_0x2ff22f._0x2866e6,_0x2ff22f._0x38e257,_0x2ff22f._0xa345be)]=new OpenAiModel({'apiKey':_0x495196[_0x5266ea(0x27a,_0x2ff22f._0x5a610f,0x2f4,_0x2ff22f._0x455ba8)],'baseUrl':_0x374085,'fetch':_0x495196[_0x5266ea(0x2d5,_0x2ff22f._0x2ef521,0x1e4,_0x2ff22f._0x2937a9)],'headerResolver':_0x495196[_0x5266ea(_0x2ff22f._0x204bbb,_0x2ff22f._0x3d689c,0x2ad,_0x2ff22f._0xe9fa06)],'maxTokens':this[_0x5266ea(_0x2ff22f._0x3da4a0,_0x2ff22f._0x792f8c,_0x2ff22f._0x211a25,0x30c)],'model':this[_0x2c768b(_0x2ff22f._0x17f109,_0x2ff22f._0x261f83,0x1ea,_0x2ff22f._0x58e0f6)],'reasoning':_0x495196[_0x5266ea(0x259,0x1bb,0x1ce,_0x2ff22f._0x2f1512)],'providerSessionResolver':_0x495196[_0x5266ea(_0x2ff22f._0x3c1949,_0x2ff22f._0x2c92d8,0x317,0x28e)],'requestMutators':_0x495196['requestMutators'],'webSocketFactory':_0x495196['webSocketFactory']});}[_0x4d4006(0x11c,0x160,0xb7,0x70)](){const _0x2eb0ce={_0x30f911:0x115,_0x40e119:0xf9,_0x45958f:0x179},_0xd20d4a={_0x29e228:0x6c,_0x423ff8:0x153};function _0x1d20ba(_0x177c98,_0x209638,_0x3c0410,_0x4ebf6c){return _0x4d4006(_0x209638,_0x209638-_0xd20d4a._0x29e228,_0x4ebf6c- -0x1bc,_0x4ebf6c-_0xd20d4a._0x423ff8);}if(!this['anthropicDelegate'])throw new Error(_0x2749cd(0x2b6,0x1cb,0x199,0x24d)+this[_0x1d20ba(-_0x2eb0ce._0x30f911,-0x235,-_0x2eb0ce._0x40e119,-_0x2eb0ce._0x45958f)]);function _0x2749cd(_0x598b57,_0x5ce2b4,_0x2f3ff4,_0x2c1ea7){return _0x18006e(_0x598b57-0x1a5,_0x5ce2b4-0xb0,_0x2c1ea7-0x14a,_0x5ce2b4);}return this['anthropicDelegate'];}['getOpenAiDelegate'](){const _0x345ff3={_0x599e87:0x420,_0x304efa:0x332,_0x1c2d99:0x40d,_0xa6d918:0x3cf},_0x350e39={_0x1542b4:0xf5},_0x303eef={_0x15cedd:0x1d4};if(!this['openAiDelegate'])throw new Error(_0xc03e63(0x40f,0x39e,0x3f8,_0x345ff3._0x599e87)+this[_0x373d25(0x209,0x2c7,_0x345ff3._0x304efa,0x229)]);function _0xc03e63(_0x49e06c,_0xdd380b,_0x3a078a,_0x337d10){return _0x4d4006(_0x49e06c,_0xdd380b-_0x303eef._0x15cedd,_0xdd380b-0x37b,_0x337d10-0x147);}function _0x373d25(_0x5efdd7,_0x22649b,_0xb44345,_0x30442e){return _0x18006e(_0x5efdd7-_0x350e39._0x1542b4,_0x22649b-0x102,_0x22649b-0x24b,_0x30442e);}return this[_0x373d25(_0x345ff3._0x1c2d99,_0x345ff3._0xa6d918,0x3f7,0x411)];}[_0x18006e(0x160,0x9c,0x11d,0x13c)](_0x44b80b,_0x2c27c8){const _0x31e77d={_0x22fd2d:0x127,_0x522ea0:0x14c,_0x34d021:0x209,_0x197448:0x103,_0x4e5fad:0x13b,_0x488218:0x182,_0x3e4952:0x32f,_0x5e7c84:0x42d,_0x4dd5e1:0x4b3,_0xfd0dca:0x158,_0x29bb2f:0x285,_0x54ba40:0x267,_0x502c6b:0x2ff,_0x1df684:0x148,_0x3fe6c6:0x2d7,_0x41d826:0x35c,_0xa4b410:0x3e5},_0x21c426={_0x4370de:0x2a6},_0x186e73={_0x47952a:0x1e2};function _0x32f7f8(_0x5c2111,_0x476b6d,_0x213d70,_0x22a4e8){return _0x18006e(_0x5c2111-0x185,_0x476b6d-0x107,_0x22a4e8- -_0x186e73._0x47952a,_0x213d70);}function _0x35d12a(_0x386a92,_0x1bc1ea,_0x50ec2c,_0x33d1a7){return _0x4d4006(_0x50ec2c,_0x1bc1ea-0x198,_0x33d1a7-_0x21c426._0x4370de,_0x33d1a7-0x125);}switch(this[_0x32f7f8(-0x177,-_0x31e77d._0x22fd2d,-_0x31e77d._0x522ea0,-0x166)]){case _0x32f7f8(-_0x31e77d._0x34d021,-_0x31e77d._0x197448,-_0x31e77d._0x4e5fad,-_0x31e77d._0x488218):return this[_0x35d12a(0x415,_0x31e77d._0x3e4952,0x400,0x35d)]()[_0x35d12a(0x394,0x3de,_0x31e77d._0x5e7c84,0x38a)](_0x44b80b,_0x2c27c8);case _0x35d12a(_0x31e77d._0x4dd5e1,0x3fc,0x411,0x3ef):return this[_0x32f7f8(-_0x31e77d._0xfd0dca,-0xc1,-0x1a7,-0x178)]()[_0x35d12a(_0x31e77d._0x29bb2f,_0x31e77d._0x54ba40,0x286,_0x31e77d._0x502c6b)](_0x44b80b,_0x2c27c8);case'openai-responses-ws':return this[_0x32f7f8(-0x1e7,-_0x31e77d._0x1df684,-0x227,-0x178)]()['responseSocket'](_0x44b80b,_0x2c27c8);default:return this[_0x35d12a(0x2be,0x275,0x333,_0x31e77d._0x3fe6c6)]()[_0x35d12a(0x3ae,_0x31e77d._0x41d826,0x3a5,_0x31e77d._0xa4b410)](_0x44b80b,_0x2c27c8);}}[_0x18006e(0x19b,0x10d,0xeb,0x93)](_0x4fad29,_0x2fdec2){const _0x306261={_0x16a529:0xe7,_0x52c793:0x27,_0x499198:0x1f2,_0x332f78:0x6c,_0x250715:0xa,_0x24b3af:0x32,_0x334daa:0xe8,_0x2f8d0b:0xfa,_0x245ca1:0x57,_0x36c246:0x9f,_0x5565b4:0x2a},_0x15c959={_0x58620e:0xf3,_0x3342c5:0x19d},_0x564cd9={_0x241a7c:0xdf,_0x2c1695:0x147};function _0x44095f(_0x54c363,_0x150686,_0x484913,_0x37dada){return _0x18006e(_0x54c363-0x90,_0x150686-_0x564cd9._0x241a7c,_0x150686- -_0x564cd9._0x2c1695,_0x54c363);}function _0x5ec8ec(_0x31002f,_0x5ac8f4,_0x2a5423,_0x2cca80){return _0x18006e(_0x31002f-0xf3,_0x5ac8f4-_0x15c959._0x58620e,_0x2a5423-_0x15c959._0x3342c5,_0x31002f);}switch(this['surface']){case _0x44095f(-0xd8,-_0x306261._0x16a529,-0xf3,-0x116):return this[_0x44095f(-0xf9,-0x57,0x43,-_0x306261._0x52c793)]()['stream'](_0x4fad29,_0x2fdec2);case'openai-responses':return this[_0x44095f(-0x183,-0xdd,-0xd1,-0x3b)]()[_0x5ec8ec(_0x306261._0x499198,0x21e,0x1f3,0x13e)](_0x4fad29,_0x2fdec2);case _0x44095f(_0x306261._0x332f78,0x8,-_0x306261._0x250715,-0x7b):return this[_0x44095f(-_0x306261._0x24b3af,-0xdd,-0x77,-_0x306261._0x334daa)]()[_0x44095f(-0xea,-0x56,0x2a,-_0x306261._0x2f8d0b)](_0x4fad29,_0x2fdec2);default:return this['getOpenAiDelegate']()[_0x44095f(-_0x306261._0x245ca1,0x2c,_0x306261._0x36c246,-_0x306261._0x5565b4)](_0x4fad29,_0x2fdec2);}}};import{randomUUID}from'crypto';var GitHubAccessTokenResolver=class{[_0x4d4006(0x129,0xb3,0xa9,0xa)];[_0x4d4006(0x194,0x75,0x10d,0x151)];[_0x18006e(0x26,0x9,0xc5,0x65)];['githubApiUrl'];[_0x4d4006(0x1e0,0xd3,0x143,0xe0)];constructor(_0x3f8815){const _0x2f5173={_0xd76473:0x49f,_0x4d7327:0x503,_0x5c6776:0x53e,_0x12cf73:0x54b,_0x1ff35f:0x3fc,_0x20192f:0x410,_0x5bb3df:0x4c9,_0x476ecb:0x55c,_0x19a5f3:0x527},_0x585de7={_0x467b60:0x153,_0x6e6cce:0x32},_0x1da4c0={_0x5a81d6:0x34d};this[_0x1cac27(_0x2f5173._0xd76473,0x542,0x4d8,0x4b0)]=_0x3f8815['accessToken'],this[_0x1cac27(_0x2f5173._0x4d7327,_0x2f5173._0x5c6776,0x486,_0x2f5173._0x12cf73)]=trimTrailingSlashes2(_0x3f8815['baseUrl']);function _0x38e301(_0x4f923e,_0x3764b0,_0x304d7b,_0x13fb00){return _0x18006e(_0x4f923e-0x1a2,_0x3764b0-0x8b,_0x3764b0-_0x1da4c0._0x5a81d6,_0x13fb00);}this[_0x38e301(0x466,0x412,0x4a2,0x3ca)]=_0x3f8815['fetch'],this['githubApiUrl']=trimTrailingSlashes2(_0x3f8815[_0x1cac27(0x461,0x414,_0x2f5173._0x1ff35f,0x412)]);function _0x1cac27(_0x309627,_0x3613f7,_0x561c72,_0x2f4a70){return _0x4d4006(_0x2f4a70,_0x3613f7-_0x585de7._0x467b60,_0x309627-0x3f6,_0x2f4a70-_0x585de7._0x6e6cce);}this[_0x38e301(_0x2f5173._0x20192f,_0x2f5173._0x5bb3df,0x4d4,0x461)]=_0x3f8815[_0x38e301(0x52f,0x4c9,_0x2f5173._0x476ecb,_0x2f5173._0x19a5f3)];}async['resolve'](_0x109842){const _0x1df73e={_0x3fea0d:0x47e,_0x438792:0x38e,_0x5d9e99:0x3c2,_0x285f3b:0x38c,_0x48ec01:0x301,_0x483a45:0x2b4,_0x596b40:0x474,_0x136dd6:0x32c,_0x5725d1:0x2d1,_0x536bb1:0x3c9,_0x401063:0x46a,_0x43bfad:0x416,_0x567e89:0x4fe,_0x191366:0x4a8,_0x6c5bf3:0x4ca,_0x3e81d1:0x433,_0x12658c:0x341,_0x149bfb:0x3b4,_0x48146b:0x46e,_0x3d4eff:0x430,_0x1ac89c:0x381,_0x22ba8e:0x3e3,_0x2279d4:0x47c,_0x3cd4ae:0x468,_0x48d5b2:0x1ed,_0x2e90b1:0x498,_0x11be39:0x4d8,_0x41548c:0x2d0,_0xfb0ba5:0x34c,_0x7f92cd:0x494,_0x5210d3:0x58b,_0x3c266b:0x58d,_0x29c7b8:0x43b,_0x530fcb:0x4a5,_0x1b2220:0x451,_0x451e5e:0x3d2,_0x57de81:0x32f},_0x5748c3={_0x48dcbe:0x281},_0x39ead3={_0x18c965:0x1ef},_0x24dff0=await this[_0x223583(_0x1df73e._0x3fea0d,0x3ab,0x413,_0x1df73e._0x438792)](this[_0x223583(_0x1df73e._0x5d9e99,0x3d5,0x3f2,_0x1df73e._0x285f3b)]+_0xab4e93(_0x1df73e._0x48ec01,0x2a6,_0x1df73e._0x483a45,0x2e9),{'method':_0xab4e93(0x3cd,_0x1df73e._0x596b40,_0x1df73e._0x136dd6,0x43a),'headers':new Headers({'accept':_0xab4e93(0x2c0,_0x1df73e._0x5725d1,0x24d,0x1f8),'authorization':'Bearer\x20'+this[_0x223583(_0x1df73e._0x536bb1,0x491,0x430,_0x1df73e._0x401063)],'editor-version':_0x223583(_0x1df73e._0x43bfad,0x3ff,0x48d,0x3e9),'user-agent':'GitHubCopilotChat/0.33.1','x-github-api-version':this[_0x223583(_0x1df73e._0x567e89,_0x1df73e._0x191366,_0x1df73e._0x6c5bf3,_0x1df73e._0x3e81d1)]}),'signal':_0x109842});if(!_0x24dff0['ok'])return{'credential':{'kind':_0x223583(_0x1df73e._0x12658c,0x43b,_0x1df73e._0x149bfb,0x42a),'value':this[_0x223583(_0x1df73e._0x438792,_0x1df73e._0x48146b,_0x1df73e._0x3d4eff,0x388)]},'endpoints':{'api':this[_0xab4e93(0x38e,0x2cd,0x2fd,_0x1df73e._0x1ac89c)]}};function _0x223583(_0x4a5977,_0x77efa2,_0x399ab,_0x5c1d71){return _0x18006e(_0x4a5977-_0x39ead3._0x18c965,_0x77efa2-0x53,_0x399ab-0x34e,_0x5c1d71);}const _0x501077=await _0x24dff0[_0xab4e93(_0x1df73e._0x22ba8e,_0x1df73e._0x2279d4,_0x1df73e._0x3cd4ae,0x3be)]();function _0xab4e93(_0x2c05bc,_0x229a62,_0x560747,_0x25fc08){return _0x4d4006(_0x25fc08,_0x229a62-0x194,_0x2c05bc-_0x5748c3._0x48dcbe,_0x25fc08-0x42);}return{'credential':{'kind':_0xab4e93(0x2a0,_0x1df73e._0x48d5b2,0x35e,0x1f3),'value':_0x501077['token']??this[_0xab4e93(0x32a,0x303,0x304,0x305)]},'endpoints':{'api':_0x501077[_0x223583(0x52b,_0x1df73e._0x2e90b1,_0x1df73e._0x11be39,0x447)]?.[_0xab4e93(_0x1df73e._0x41548c,_0x1df73e._0xfb0ba5,0x2c7,0x274)]??this[_0x223583(0x3e7,0x42f,_0x1df73e._0x7f92cd,0x547)],'originTracker':_0x501077[_0x223583(0x4d2,_0x1df73e._0x5210d3,0x4d8,_0x1df73e._0x3c266b)]?.[_0x223583(_0x1df73e._0x29c7b8,0x461,_0x1df73e._0x530fcb,_0x1df73e._0x1b2220)],'proxy':_0x501077[_0xab4e93(_0x1df73e._0x451e5e,0x426,0x493,_0x1df73e._0x57de81)]?.[_0x223583(0x493,0x588,0x4bd,0x462)],'telemetry':_0x501077['endpoints']?.['telemetry']}};}};function trimTrailingSlashes2(_0x44e8a0){const _0x41da11={_0x582ec7:0x520,_0x5a3d02:0x5b2},_0x3a1142={_0x487896:0x4f5};function _0x24f0eb(_0x4dd945,_0xd34d7c,_0x2e06a4,_0x5ad3b7){return _0x4d4006(_0x4dd945,_0xd34d7c-0x1e1,_0xd34d7c-_0x3a1142._0x487896,_0x5ad3b7-0x13d);}return _0x44e8a0[_0x24f0eb(0x5e6,_0x41da11._0x582ec7,0x50f,_0x41da11._0x5a3d02)](/\/+$/,'');}function createModelInfo(_0x1fdabc){const _0x38b67f={_0x16c7ca:0xb1,_0x882793:0x2f,_0x3b2e00:0x71,_0x1e835b:0x66,_0x38feba:0x97,_0x19e67c:0xd6,_0x56478a:0x41,_0x576694:0x114,_0x4e35e5:0x49,_0x5eb539:0x45,_0x192f35:0x125,_0x4a0577:0x19a},_0x5cefd9={_0x104f98:0x149},_0x54d4f2={_0x21655b:0x55,_0x4549bc:0xf},_0x4f2d05=_0x1fdabc[_0x207f8e(-_0x38b67f._0x16c7ca,_0x38b67f._0x882793,-_0x38b67f._0x3b2e00,-0x33)]??_0x1fdabc[_0x207f8e(_0x38b67f._0x1e835b,0x26,_0x38b67f._0x38feba,0xa0)];function _0x233197(_0xe8ab57,_0x50ef8c,_0x22e751,_0x5836e9){return _0x18006e(_0xe8ab57-0xd7,_0x50ef8c-_0x54d4f2._0x21655b,_0x50ef8c- -_0x54d4f2._0x4549bc,_0x5836e9);}const _0x5befe8=_0x1fdabc['capabilities']?.[_0x207f8e(_0x38b67f._0x19e67c,-_0x38b67f._0x56478a,_0x38b67f._0x576694,_0x38b67f._0x4e35e5)]?.['max_context_window_tokens'];function _0x207f8e(_0x5917b6,_0x2e339c,_0x1abc31,_0x18bff6){return _0x4d4006(_0x5917b6,_0x2e339c-_0x5cefd9._0x104f98,_0x18bff6- -0x4f,_0x18bff6-0x88);}const _0x37d2a9=_0x1fdabc['capabilities']?.[_0x207f8e(0x85,-_0x38b67f._0x5eb539,0x114,_0x38b67f._0x4e35e5)]?.[_0x233197(0x1bb,_0x38b67f._0x192f35,0x1dc,0x1a4)],_0xbc9b70=_0x5befe8!==void 0x0||_0x37d2a9!==void 0x0?{..._0x5befe8!==void 0x0?{'contextWindow':_0x5befe8}:{},..._0x37d2a9!==void 0x0?{'maxOutput':_0x37d2a9}:{}}:void 0x0;return{'id':_0x1fdabc['id'],'name':_0x1fdabc[_0x207f8e(_0x38b67f._0x4a0577,0xb6,0x119,0x109)]??_0x1fdabc['id'],..._0xbc9b70?{'limits':_0xbc9b70}:{},..._0x4f2d05?{'supportedEndpoints':_0x4f2d05}:{}};}function deduplicateModels(_0x45f225){const _0x4cfb2d={_0x3923bb:0xf0,_0x3e0ed6:0x19b,_0x4878de:0x244,_0x3c6059:0x1eb,_0xe49551:0x25e,_0x26ce85:0x41f},_0x41cdb1={_0x21a0c6:0x351},_0x34ff34={_0xe33ec:0xe7};function _0x2b27d1(_0x2c191c,_0x118874,_0x3b5418,_0xfde1bb){return _0x4d4006(_0x2c191c,_0x118874-0x113,_0x118874-_0x34ff34._0xe33ec,_0xfde1bb-0x1c8);}const _0x3d5f32=new Map();function _0x41a386(_0x25e11c,_0x270688,_0x469a06,_0x18dfa7){return _0x18006e(_0x25e11c-0x197,_0x270688-0x13f,_0x25e11c-_0x41cdb1._0x21a0c6,_0x18dfa7);}for(const _0x2013ef of _0x45f225){!_0x3d5f32[_0x2b27d1(_0x4cfb2d._0x3923bb,0x134,0x1ec,0x152)](_0x2013ef['id'])&&_0x3d5f32[_0x2b27d1(_0x4cfb2d._0x3e0ed6,_0x4cfb2d._0x4878de,_0x4cfb2d._0x3c6059,_0x4cfb2d._0xe49551)](_0x2013ef['id'],_0x2013ef);}return Array[_0x41a386(0x409,_0x4cfb2d._0x26ce85,0x3d3,0x357)](_0x3d5f32['values']());}function hasUserPromptContent(_0x30eaf2){const _0x2e31d8={_0x215833:0x10c,_0x5c172e:0x143,_0x4bb9fc:0x211,_0x41d9b8:0xef,_0x21a50c:0x177,_0x183637:0xf8,_0x376110:0x257,_0x307552:0x234,_0xe88dc2:0x16d},_0x1cfbed={_0x440dc5:0x26c,_0x145164:0x31f,_0x594e53:0x1f3,_0x12a618:0x229,_0x408755:0x2b0,_0x2066ca:0x339,_0x154bee:0x228,_0x3772ac:0x2af,_0x502d48:0x218,_0x418877:0x3e6,_0x238098:0x361,_0x1f2a97:0x36e,_0x231a71:0x32e,_0x309055:0x29e},_0xbe2347={_0x566b6a:0x1c5,_0x4f79a7:0x4a6},_0x57583c={_0x68ef64:0x26c,_0x38f823:0x150},_0x16d879={_0x161534:0x1b1},_0x21e5f9={_0x2800db:0x66};function _0x4f6c97(_0x43b641,_0x324234,_0x25617f,_0xf94f9c){return _0x4d4006(_0x324234,_0x324234-0x3e,_0x25617f- -0x26f,_0xf94f9c-_0x21e5f9._0x2800db);}function _0x39b4da(_0xcda5da,_0xb6adf,_0x8905ec,_0x256458){return _0x18006e(_0xcda5da-_0x16d879._0x161534,_0xb6adf-0x14a,_0xcda5da- -0x57,_0x8905ec);}if(typeof _0x30eaf2==='string')return _0x30eaf2[_0x39b4da(_0x2e31d8._0x215833,0x4e,_0x2e31d8._0x5c172e,0x13a)]()['length']>0x0;if(!Array[_0x4f6c97(-_0x2e31d8._0x4bb9fc,-_0x2e31d8._0x41d9b8,-_0x2e31d8._0x21a50c,-_0x2e31d8._0x183637)](_0x30eaf2))return![];return _0x30eaf2[_0x4f6c97(-0x218,-_0x2e31d8._0x376110,-_0x2e31d8._0x307552,-_0x2e31d8._0xe88dc2)](_0x5245c9=>{if(!_0x5245c9||typeof _0x5245c9!==_0x12d1a0(-0x1bb,-0x219,-0x22d,-0x27d))return![];function _0x12d1a0(_0x5b9df5,_0x569309,_0x23ab25,_0x4465a8){return _0x39b4da(_0x569309- -_0x57583c._0x68ef64,_0x569309-0x5a,_0x23ab25,_0x4465a8-_0x57583c._0x38f823);}function _0x514e69(_0x1eca05,_0x21fd92,_0x2233b9,_0x136a27){return _0x4f6c97(_0x1eca05-_0xbe2347._0x566b6a,_0x1eca05,_0x136a27-_0xbe2347._0x4f79a7,_0x136a27-0x141);}const _0x47bb49=_0x5245c9;return(_0x47bb49['type']===_0x514e69(0x348,_0x1cfbed._0x440dc5,0x377,_0x1cfbed._0x145164)||_0x47bb49[_0x514e69(0x1ef,_0x1cfbed._0x594e53,_0x1cfbed._0x12a618,_0x1cfbed._0x408755)]===_0x514e69(0x320,_0x1cfbed._0x2066ca,0x287,0x309))&&typeof _0x47bb49[_0x12d1a0(-0x233,-0x1b8,-0x10c,-_0x1cfbed._0x154bee)]===_0x12d1a0(-_0x1cfbed._0x3772ac,-_0x1cfbed._0x502d48,-0x1c3,-0x1e4)&&_0x47bb49['text'][_0x514e69(0x346,0x328,_0x1cfbed._0x418877,_0x1cfbed._0x238098)]()[_0x514e69(_0x1cfbed._0x1f2a97,_0x1cfbed._0x231a71,_0x1cfbed._0x309055,0x323)]>0x0;});}function isUserPromptEntry(_0xc8732c){const _0x19dd23={_0x393bf2:0x3e,_0x10c04b:0x233,_0x108296:0x7},_0x5c678d={_0x18afe6:0xde,_0x26fc5f:0x1c},_0x2709b0={_0x330847:0x1cd};if(!_0xc8732c||typeof _0xc8732c!==_0x39d34c(-_0x19dd23._0x393bf2,-0xe7,0xb,-0xc5))return![];function _0x39d34c(_0x5ebd7e,_0x3c72f2,_0x5404f7,_0x3a97b0){return _0x18006e(_0x5ebd7e-_0x2709b0._0x330847,_0x3c72f2-0x174,_0x5ebd7e- -0xe8,_0x3a97b0);}const _0x4a443c=_0xc8732c;if(_0x4a443c['role']!==_0x574d9e(-0x2f4,-0x245,-0x2ea,-_0x19dd23._0x10c04b))return![];function _0x574d9e(_0x5e455f,_0x93ca59,_0x342dec,_0x553aab){return _0x4d4006(_0x93ca59,_0x93ca59-_0x5c678d._0x18afe6,_0x553aab- -0x220,_0x553aab-_0x5c678d._0x26fc5f);}if(_0x4a443c[_0x39d34c(-0x36,0x49,_0x19dd23._0x108296,0x22)]!==void 0x0&&_0x4a443c['type']!=='message')return![];return hasUserPromptContent(_0x4a443c[_0x574d9e(-0x1eb,-0x1dc,-0xa0,-0x15e)]);}function determineInitiator(_0x48d9d6){const _0x974db9={_0x119e1d:0x19a,_0xe060f2:0x15c,_0x1ef6e0:0x211,_0x187dae:0x3fe,_0x2ae726:0x3ab,_0x3b3d69:0x1a3,_0x470ede:0x1be,_0x243644:0x4f2,_0x26a808:0x494,_0x51aee2:0x50e,_0x45f82c:0x16b},_0x5c67ea={_0x54bea9:0xcf,_0x278b58:0x105},_0x3ee253={_0x302f1a:0x12f};if(!_0x48d9d6||typeof _0x48d9d6!==_0x3f9a22(0x17a,0x128,_0x974db9._0x119e1d,_0x974db9._0xe060f2))return _0x3f9a22(_0x974db9._0x1ef6e0,0x196,0x125,0x1d5);function _0x3f9a22(_0x1bbaee,_0xb08e03,_0x189aab,_0x49b97a){return _0x4d4006(_0x1bbaee,_0xb08e03-_0x3ee253._0x302f1a,_0xb08e03-0xb7,_0x49b97a-0x1c4);}function _0x96186b(_0x5d4246,_0x415fd3,_0x371ed1,_0x92de2b){return _0x4d4006(_0x371ed1,_0x415fd3-_0x5c67ea._0x54bea9,_0x5d4246-0x413,_0x92de2b-_0x5c67ea._0x278b58);}const _0x7957c6='messages'in _0x48d9d6?_0x48d9d6[_0x96186b(_0x974db9._0x187dae,0x353,0x3bb,_0x974db9._0x2ae726)]:_0x96186b(0x499,0x442,0x4a4,0x4c7)in _0x48d9d6?_0x48d9d6['input']:void 0x0;if(!Array['isArray'](_0x7957c6)||_0x7957c6[_0x3f9a22(0x142,_0x974db9._0x3b3d69,0x23d,_0x974db9._0x470ede)]===0x0)return _0x96186b(_0x974db9._0x243644,_0x974db9._0x26a808,_0x974db9._0x51aee2,0x46d);return isUserPromptEntry(_0x7957c6[_0x7957c6[_0x3f9a22(_0x974db9._0x45f82c,0x1a3,0x10d,0x1f1)]-0x1])?'user':'agent';}function isUnsupportedApiForModel(_0x91f189){const _0xaa5a3b={_0x1e441d:0x4d5,_0x3cb1d6:0x5ba,_0x5573aa:0x615};function _0xde7692(_0x4d0a3b,_0x126b7f,_0x595e06,_0x1543d0){return _0x4d4006(_0x126b7f,_0x126b7f-0x37,_0x595e06-0x498,_0x1543d0-0x16);}return _0x91f189['includes'](_0xde7692(_0xaa5a3b._0x1e441d,_0xaa5a3b._0x3cb1d6,0x59b,_0xaa5a3b._0x5573aa));}function createResponseError(_0x690f9a,_0x2480d1){const _0x8bdc0={_0x44df0e:0x294,_0x3e1422:0x2b5,_0x5744a4:0x37a,_0xfce499:0x213,_0x9e63b9:0x47c,_0x3631b8:0x3bc},_0x15c422={_0x2790be:0x10,_0x1169d5:0x37b,_0x149745:0x6d};function _0x34fa99(_0x52cad9,_0x1b3f66,_0x418e63,_0xccd2ae){return _0x4d4006(_0xccd2ae,_0x1b3f66-0x59,_0x1b3f66-0x1ed,_0xccd2ae-0x148);}if(_0x690f9a===0x191||_0x690f9a===0x193)return new Error(_0x34fa99(_0x8bdc0._0x44df0e,_0x8bdc0._0x3e1422,0x2f6,_0x8bdc0._0x5744a4));function _0x171d28(_0x92220b,_0x3f5952,_0xde7972,_0x808c39){return _0x4d4006(_0x808c39,_0x3f5952-_0x15c422._0x2790be,_0x92220b-_0x15c422._0x1169d5,_0x808c39-_0x15c422._0x149745);}if(_0x690f9a===0x198||_0x690f9a===0x1ad)return new Error(_0x34fa99(0x1a4,_0x8bdc0._0xfce499,0x1d5,0x259));if(_0x690f9a===0x190)return new Error('Invalid\x20request:\x20'+_0x2480d1);return new Error(_0x2480d1||_0x171d28(_0x8bdc0._0x9e63b9,_0x8bdc0._0x3631b8,0x4fd,0x44b)+_0x690f9a);}function _0x2cfd(_0x4f9e14,_0x39f3f9){_0x4f9e14=_0x4f9e14-0x119;const _0x521a58=_0x521a();let _0x2cfd5b=_0x521a58[_0x4f9e14];if(_0x2cfd['aexqJb']===undefined){var _0x53f76f=function(_0x2a112c){const _0x3ca786='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x414b70='',_0x3af60d='';for(let _0x5e5526=0x0,_0x5d185d,_0x39c1eb,_0x3c8254=0x0;_0x39c1eb=_0x2a112c['charAt'](_0x3c8254++);~_0x39c1eb&&(_0x5d185d=_0x5e5526%0x4?_0x5d185d*0x40+_0x39c1eb:_0x39c1eb,_0x5e5526++%0x4)?_0x414b70+=String['fromCharCode'](0xff&_0x5d185d>>(-0x2*_0x5e5526&0x6)):0x0){_0x39c1eb=_0x3ca786['indexOf'](_0x39c1eb);}for(let _0x2c344d=0x0,_0x1ac443=_0x414b70['length'];_0x2c344d<_0x1ac443;_0x2c344d++){_0x3af60d+='%'+('00'+_0x414b70['charCodeAt'](_0x2c344d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3af60d);};_0x2cfd['RwAHDv']=_0x53f76f,_0x2cfd['GZVmrA']={},_0x2cfd['aexqJb']=!![];}const _0x18dcf2=_0x521a58[0x0],_0x28ceab=_0x4f9e14+_0x18dcf2,_0xa4fa67=_0x2cfd['GZVmrA'][_0x28ceab];return!_0xa4fa67?(_0x2cfd5b=_0x2cfd['RwAHDv'](_0x2cfd5b),_0x2cfd['GZVmrA'][_0x28ceab]=_0x2cfd5b):_0x2cfd5b=_0xa4fa67,_0x2cfd5b;}var GitHubModel=class extends OpenAiModel{[_0x18006e(0x67,0x14c,0xde,0x15)];[_0x18006e(0x1f3,0xa3,0x167,0xfd)]=new Map();[_0x4d4006(0x70,0xa5,0x43,0xf7)];constructor(_0xb0969f={}){const _0x371a76={_0x42b181:0x445,_0x238061:0x45e,_0x4bf6a5:0x3b9,_0xd6979:0x52d,_0x38ff87:0x3bb,_0x506ff2:0x17e,_0x39c44a:0x1d1,_0x434027:0x408,_0xc2269c:0x4ee,_0x15c42f:0x4d7,_0x26d971:0x4da,_0x2c02c1:0x3e1,_0x346de9:0x432,_0x1b3210:0x27c,_0xb1024b:0x299,_0x56e889:0x1f8,_0x450cb2:0x5c9,_0x4d72ae:0x55b,_0x386937:0x4fb,_0x51f1b3:0x354,_0x3f9125:0x33a,_0x5e9c25:0x1a1,_0x341d48:0x2a0,_0x5c2811:0x256,_0x473762:0x2e8,_0x116a87:0x411,_0x3973e1:0x543,_0x5ee18f:0x226,_0x39981e:0x428,_0xe20318:0x49f,_0x3bfb16:0x537,_0x911e6c:0x1d5,_0xf7f03:0x232,_0x551af3:0x291,_0x566c34:0x4f7,_0x5a0c0d:0x18f,_0x507013:0x242,_0x11d2b8:0x456,_0x4afa11:0x505},_0x5123e5={_0x1c7709:0x180,_0x4ad401:0x8},_0x3284d4={_0x4ff9d2:0x397,_0x53191a:0x34},_0x3d3bcb=trimTrailingSlashes2(_0xb0969f['baseUrl']??'https://api.individual.githubcopilot.com'),_0x52d38d=_0xb0969f[_0x248241(0x4bb,_0x371a76._0x42b181,_0x371a76._0x238061,0x3c4)]??globalThis[_0x248241(0x3c2,0x3a7,0x45e,_0x371a76._0x4bf6a5)];function _0x248241(_0x4e74e0,_0x84e084,_0x40aed1,_0x32b604){return _0x4d4006(_0x32b604,_0x84e084-0x115,_0x40aed1-_0x3284d4._0x4ff9d2,_0x32b604-_0x3284d4._0x53191a);}const _0x3a222c=_0xb0969f[_0x248241(_0x371a76._0xd6979,_0x371a76._0x38ff87,0x47d,_0x371a76._0x4bf6a5)]??(_0xb0969f['accessToken']?new GitHubAccessTokenResolver({'accessToken':_0xb0969f['accessToken'],'baseUrl':_0x3d3bcb,'fetch':_0x52d38d,'githubApiUrl':_0xb0969f[_0x1f1dc2(0x259,_0x371a76._0x506ff2,0x1eb,_0x371a76._0x39c44a)]??_0x248241(_0x371a76._0x434027,_0x371a76._0xc2269c,0x429,_0x371a76._0x15c42f),'tokenExchangeApiVersion':_0xb0969f[_0x248241(0x432,0x487,_0x371a76._0x26d971,0x4c7)]??_0x248241(0x40d,0x38d,_0x371a76._0x2c02c1,_0x371a76._0x346de9)}):void 0x0),_0x32a773=_0xb0969f['editorVersion']??_0x1f1dc2(0x203,_0x371a76._0x1b3210,_0x371a76._0xb1024b,0x364),_0x44ca2e=_0xb0969f[_0x1f1dc2(0x189,0x16b,0x192,_0x371a76._0x56e889)]??_0x248241(_0x371a76._0x450cb2,0x47b,0x509,0x4a6),_0x311fca=({body:_0x40d2ee})=>{return{'editor-plugin-version':_0x44ca2e,'editor-version':_0x32a773,'x-initiator':determineInitiator(_0x40d2ee),'x-request-id':randomUUID()};},_0xe61d4b={'apiKey':_0xb0969f['apiKey'],'baseUrl':_0x3d3bcb,'fetch':_0x52d38d,'maxTokens':_0xb0969f[_0x248241(_0x371a76._0x4d72ae,0x49a,_0x371a76._0x386937,0x4c5)],'model':_0xb0969f[_0x248241(_0x371a76._0x51f1b3,_0x371a76._0x3f9125,0x3a6,0x324)],'reasoning':_0xb0969f[_0x1f1dc2(_0x371a76._0x5e9c25,_0x371a76._0x341d48,_0x371a76._0x5c2811,_0x371a76._0x473762)],'providerSessionResolver':_0x3a222c,'requestMutators':_0xb0969f[_0x248241(_0x371a76._0x116a87,_0x371a76._0x3973e1,0x4bf,0x45e)],'headerResolver':_0x311fca};super(_0xe61d4b);function _0x1f1dc2(_0x3469bd,_0x4af6d3,_0x2edfd2,_0x5cd10e){return _0x4d4006(_0x4af6d3,_0x4af6d3-0xb1,_0x2edfd2-_0x5123e5._0x1c7709,_0x5cd10e-_0x5123e5._0x4ad401);}this['surface']=_0xb0969f[_0x1f1dc2(0x124,_0x371a76._0x5ee18f,0x1c3,0x153)]??_0x248241(0x4c6,_0x371a76._0x39981e,_0x371a76._0xe20318,_0x371a76._0x3bfb16),this[_0x1f1dc2(0x2be,0x22a,0x225,_0x371a76._0x911e6c)]=new AnthropicModel({'apiKey':_0xb0969f[_0x1f1dc2(_0x371a76._0xf7f03,0x342,_0x371a76._0x551af3,0x21b)],'authScheme':_0x248241(0x52a,_0x371a76._0x566c34,0x4b9,0x517),'baseUrl':_0x3d3bcb,'fetch':_0x52d38d,'headerResolver':_0x311fca,'maxTokens':_0xb0969f['maxTokens'],'model':_0xb0969f[_0x1f1dc2(0x1c3,0x162,_0x371a76._0x5a0c0d,_0x371a76._0x507013)],'reasoning':_0xb0969f[_0x1f1dc2(0x262,0x269,_0x371a76._0x5c2811,0x1a0)],'providerSessionResolver':_0x3a222c,'requestMutators':_0xb0969f[_0x248241(0x57d,_0x371a76._0x11d2b8,0x4bf,_0x371a76._0x4afa11)]});}[_0x18006e(0xe1,0xdc,0x197,0x195)](){return new Error('GitHubModel\x20requires\x20an\x20apiKey,\x20accessToken,\x20or\x20providerSessionResolver');}['usesResponsesApi'](_0x576467){const _0x26f9f9={_0x1de32a:0x32c,_0x5a4351:0x1cd,_0x172e28:0x218,_0x34e0ee:0x298,_0xfc08dd:0x472,_0x119dda:0x3ed,_0x3a7cb1:0x4ab,_0x2691ee:0x4c2,_0xb0bcd6:0x4f6,_0x4e777a:0x45b,_0x4a987d:0x498,_0x33787a:0x25a,_0x2fdf7e:0x423,_0x599cc3:0x4a6,_0x33cf76:0x3f5},_0x4a2510={_0x18df5d:0x382},_0x464ad4={_0x1b53f3:0xaa},_0x2616f0=this[_0x21b2bc(_0x26f9f9._0x1de32a,_0x26f9f9._0x5a4351,_0x26f9f9._0x172e28,_0x26f9f9._0x34e0ee)]['get'](_0x576467);function _0x21b2bc(_0x4c1c56,_0x26de81,_0x4a2561,_0x162a6b){return _0x18006e(_0x4c1c56-_0x464ad4._0x1b53f3,_0x26de81-0x57,_0x162a6b-0x131,_0x4a2561);}function _0x476017(_0x4ceb7f,_0x56fa94,_0x2e6a5e,_0x331a8c){return _0x4d4006(_0x331a8c,_0x56fa94-0x17a,_0x4ceb7f-_0x4a2510._0x18df5d,_0x331a8c-0x78);}if(!_0x2616f0)return![];return!_0x2616f0[_0x476017(_0x26f9f9._0xfc08dd,_0x26f9f9._0x119dda,_0x26f9f9._0x3a7cb1,0x4e8)](_0x476017(_0x26f9f9._0x2691ee,_0x26f9f9._0xb0bcd6,_0x26f9f9._0x4e777a,_0x26f9f9._0x4a987d))&&_0x2616f0[_0x21b2bc(0x2a1,0x30a,_0x26f9f9._0x33787a,_0x26f9f9._0x33787a)](_0x476017(_0x26f9f9._0x2fdf7e,0x412,_0x26f9f9._0x599cc3,_0x26f9f9._0x33cf76));}['shouldPreferResponsesApi'](_0xf6ca30){const _0x522cbf={_0x2d3292:0x233,_0x557bac:0x302,_0x5be036:0x25c,_0x8d0842:0x7b,_0x4fe0ca:0x38,_0x23b8ee:0x15,_0x454520:0xbc,_0x33b8eb:0xb8,_0x2898f6:0x107,_0x364801:0x136,_0x1d64a3:0x81},_0x44b8d4={_0x144afe:0xc7,_0x1138b4:0xc2},_0x2996aa={_0x27a9a1:0x9f},_0x5a8ca7=this[_0x153653(_0x522cbf._0x2d3292,0x259,0x2e9,0x29e)]['get'](_0xf6ca30[_0x1426d5(-0xb8,-0xe5,-0x174,-0x140)]);if(!_0x5a8ca7)return![];function _0x153653(_0x5977c9,_0x389277,_0x3a8074,_0xa3e236){return _0x18006e(_0x5977c9-_0x2996aa._0x27a9a1,_0x389277-0xe1,_0x3a8074-0x182,_0x389277);}if(resolveOpenAiReasoningConfig(_0xf6ca30[_0x153653(0x24c,0x33b,0x291,0x293)]))return _0x5a8ca7['includes'](_0x153653(0x29c,_0x522cbf._0x557bac,_0x522cbf._0x5be036,0x319));function _0x1426d5(_0x1b2382,_0x4e8d8b,_0x26e15b,_0x431f65){return _0x4d4006(_0x431f65,_0x4e8d8b-0x118,_0x1b2382- -_0x44b8d4._0x144afe,_0x431f65-_0x44b8d4._0x1138b4);}return this[_0x1426d5(_0x522cbf._0x8d0842,_0x522cbf._0x4fe0ca,-_0x522cbf._0x23b8ee,_0x522cbf._0x454520)](_0xf6ca30[_0x1426d5(-_0x522cbf._0x33b8eb,-_0x522cbf._0x2898f6,-_0x522cbf._0x364801,-_0x522cbf._0x1d64a3)]);}['markModelAsResponsesOnly'](_0x5dd513){const _0x1cab02={_0x155bd6:0x3b9,_0x3ec098:0x3f4,_0x2c0519:0x3ab,_0x2c85bd:0x41b},_0x44231b={_0x1139bb:0x130},_0x3d6547={_0x14def4:0x75,_0x472016:0xe9};function _0x41a524(_0x1e82d7,_0x21758d,_0x211c08,_0xcc13c1){return _0x18006e(_0x1e82d7-_0x3d6547._0x14def4,_0x21758d-_0x3d6547._0x472016,_0xcc13c1-0x411,_0x1e82d7);}function _0x3098ff(_0x1d5936,_0x14a232,_0x3551c0,_0x24fb59){return _0x4d4006(_0x14a232,_0x14a232-0x11f,_0x24fb59-0x2be,_0x24fb59-_0x44231b._0x1139bb);}this[_0x3098ff(0x33f,0x329,0x409,0x3ec)][_0x3098ff(_0x1cab02._0x155bd6,_0x1cab02._0x3ec098,_0x1cab02._0x2c0519,_0x1cab02._0x2c85bd)](_0x5dd513,['/responses']);}[_0x18006e(-0x5f,0xa4,0x3a,0xd9)](_0x5919a6){const _0x219c06={_0x295041:0x206,_0x22fb50:0x1a2},_0x5a570a={_0x58e260:0x1c2};if(_0x5919a6 instanceof OpenAiApiError)return createResponseError(_0x5919a6['status'],_0x5919a6[_0x12ab1f(0x2cd,_0x219c06._0x295041,0x226,0x21b)]||_0x5919a6[_0x12ab1f(0x257,0x1af,0x1ba,_0x219c06._0x22fb50)]);function _0x12ab1f(_0x3bd491,_0x349bc5,_0x44d123,_0x58012f){return _0x18006e(_0x3bd491-0x1,_0x349bc5-_0x5a570a._0x58e260,_0x349bc5-0x5e,_0x3bd491);}function _0x4cfa21(_0x7d92b9,_0x54f5c0,_0xb95598,_0x5b806d){return _0x18006e(_0x7d92b9-0x10d,_0x54f5c0-0x146,_0xb95598-0x3c,_0x7d92b9);}return _0x5919a6;}[_0x18006e(0xee,0x12b,0xc6,0x166)](_0x1da5e1,_0x3f77cb){const _0x15e866={_0x3498c3:0x37,_0x58ef1b:0x85,_0x5ec148:0x7,_0x47237a:0x59,_0x1f04a5:0x13,_0xc77923:0x7c,_0x14680e:0x192,_0x4089a9:0x7b,_0x44d2e4:0x114,_0x781294:0x17,_0x205f31:0x58,_0x25a0d7:0x4d,_0x141044:0x1f8,_0x1b15d7:0xba,_0x3c732f:0x2,_0x2da5b0:0xc8,_0x2092b8:0x11c,_0xb799:0xf3,_0x593c3b:0x97,_0x258381:0x27,_0x43be8e:0x7c,_0x341094:0x4d,_0x806b61:0x177,_0x5c0383:0x203,_0x1cc3bf:0x84,_0x59280c:0x57,_0x31971e:0x8f,_0x160767:0x27,_0x29ea53:0x1f,_0x831cb8:0xaf},_0x2edf0e={_0x35b114:0x13e,_0x5ee13f:0x6f,_0x11f44d:0x1ed};switch(this[_0x597c2a(_0x15e866._0x3498c3,-_0x15e866._0x58ef1b,-_0x15e866._0x5ec148,-_0x15e866._0x47237a)]){case _0x597c2a(0x1b,-0x5,-_0x15e866._0x1f04a5,-_0x15e866._0xc77923):return this[_0x1fafc1(_0x15e866._0x14680e,_0x15e866._0x4089a9,_0x15e866._0x44d2e4,0x8c)]['complete'](_0x1da5e1,_0x3f77cb);case _0x597c2a(-_0x15e866._0x781294,-_0x15e866._0x205f31,0x80,_0x15e866._0x25a0d7):return this['chatComplete'](_0x1da5e1,_0x3f77cb);case _0x597c2a(0x13d,_0x15e866._0x141044,_0x15e866._0x1b15d7,0x75):return this[_0x1fafc1(0x16f,_0x15e866._0x3c732f,_0x15e866._0x2da5b0,0x62)](_0x1da5e1,_0x3f77cb);case _0x1fafc1(_0x15e866._0x2092b8,_0x15e866._0xb799,0x185,0x218):return this[_0x1fafc1(_0x15e866._0x593c3b,_0x15e866._0x258381,_0x15e866._0x43be8e,-_0x15e866._0x341094)](_0x1da5e1,_0x3f77cb);case _0x1fafc1(0x1e3,0xd6,_0x15e866._0x806b61,_0x15e866._0x5c0383):return this['complete'](_0x1da5e1,_0x3f77cb);}function _0x1fafc1(_0x16ea5c,_0x37d0a2,_0x546d09,_0x5b8da9){return _0x4d4006(_0x16ea5c,_0x37d0a2-_0x2edf0e._0x35b114,_0x546d09-_0x2edf0e._0x5ee13f,_0x5b8da9-_0x2edf0e._0x11f44d);}function _0x597c2a(_0x41945b,_0x1ff39e,_0x5ed06a,_0x1e095a){return _0x18006e(_0x41945b-0x73,_0x1ff39e-0x10f,_0x41945b- -0x45,_0x1ff39e);}throw new Error(_0x597c2a(-0x9,-_0x15e866._0x1cc3bf,_0x15e866._0x59280c,_0x15e866._0x31971e)+String(this[_0x597c2a(0x37,_0x15e866._0x160767,-_0x15e866._0x29ea53,_0x15e866._0x831cb8)]));}['streamViaConfiguredSurface'](_0xec447,_0x2108d7){const _0x36bded={_0x4e621c:0x69,_0x1ebbc3:0xa3,_0x13dfab:0x9e,_0xc3fd3e:0x15,_0xa227da:0x37,_0x1d1610:0x87,_0x46e73d:0x7a,_0x2c85e2:0xca,_0x24a454:0x34,_0x51600f:0xea,_0x45c557:0x104,_0x16eb88:0x114,_0x29ffa3:0x61,_0x3c23fb:0x30,_0x4f43a9:0xdb,_0xd96016:0xc9,_0x4d539b:0x43,_0x2ecf97:0x13,_0x3816bb:0xec},_0x428e31={_0x5cc9f9:0x14f,_0xd27e32:0x152,_0x254865:0xfe},_0x4cf2d8={_0x2286b6:0xe6,_0x20e287:0xc};switch(this[_0x4b15b6(-_0x36bded._0x4e621c,-0xb4,-_0x36bded._0x1ebbc3,-0xf5)]){case _0x37ea9a(-_0x36bded._0x13dfab,_0x36bded._0xc3fd3e,-_0x36bded._0xa227da,0xe):return this[_0x4b15b6(-_0x36bded._0x1d1610,_0x36bded._0x46e73d,-0x41,-0xec)][_0x4b15b6(-_0x36bded._0x2c85e2,-0x59,-_0x36bded._0x24a454,-0x28)](_0xec447,_0x2108d7);case _0x37ea9a(-0xd0,-_0x36bded._0x51600f,-_0x36bded._0x45c557,-0x155):return this[_0x37ea9a(0x75,_0x36bded._0x16eb88,-0x2f,_0x36bded._0x29ffa3)](_0xec447,_0x2108d7);case _0x4b15b6(_0x36bded._0x3c23fb,-0xd,0x63,0x6c):return this[_0x4b15b6(-_0x36bded._0x4f43a9,-0xfe,-_0x36bded._0xd96016,-0x2a)](_0xec447,_0x2108d7);case'openai-responses-ws':return this['responseSocketStream'](_0xec447,_0x2108d7);case _0x37ea9a(_0x36bded._0x4d539b,-0x68,0xed,-0x2a):return this[_0x37ea9a(-_0x36bded._0x2ecf97,-0x5c,-0xa3,0x76)](_0xec447,_0x2108d7);}function _0x4b15b6(_0x3ac337,_0x2a134c,_0x49a83f,_0x3eac85){return _0x4d4006(_0x3eac85,_0x2a134c-0xbf,_0x49a83f- -_0x4cf2d8._0x2286b6,_0x3eac85-_0x4cf2d8._0x20e287);}function _0x37ea9a(_0x36cd85,_0x5105b9,_0x177266,_0x2e7fae){return _0x18006e(_0x36cd85-_0x428e31._0x5cc9f9,_0x5105b9-_0x428e31._0xd27e32,_0x36cd85- -_0x428e31._0x254865,_0x177266);}throw new Error('Unsupported\x20GitHub\x20model\x20surface:\x20'+String(this[_0x37ea9a(-0x82,-0x132,-_0x36bded._0x3816bb,-0xdb)]));}async[_0x18006e(0x136,0x157,0x11d,0xa4)](_0x56682e,_0xdc7fb7){const _0x37933a={_0x460c10:0x2c,_0x19db4c:0xb1,_0x4fe69d:0x110,_0x10acaf:0x164,_0x57a41c:0x51,_0x150bb4:0xc3,_0x13d228:0x24,_0x27fc48:0x62,_0x262eb9:0x7c,_0x33f63b:0x194,_0x209066:0x113,_0x374b0b:0xb0,_0x1a7a54:0xa7,_0x55e320:0x3,_0xa9ce34:0xd8},_0xec6f5e={_0x331bfc:0xd7,_0x1b9357:0x8};function _0x465c74(_0x53f5bf,_0x3335d5,_0x7f1187,_0x4ebcc3){return _0x4d4006(_0x53f5bf,_0x3335d5-0x142,_0x4ebcc3-_0xec6f5e._0x331bfc,_0x4ebcc3-_0xec6f5e._0x1b9357);}const _0x417f50=this['applyModelDefaults'](_0x56682e);if(this[_0x26aeaa(0x7,-_0x37933a._0x460c10,0x4e,-0x19)]!=='auto')return this[_0x465c74(_0x37933a._0x19db4c,_0x37933a._0x4fe69d,0x225,_0x37933a._0x10acaf)](_0x417f50,_0xdc7fb7);if(this[_0x26aeaa(0xaf,-_0x37933a._0x57a41c,-0x6b,0x6)](_0x417f50))return this[_0x26aeaa(_0x37933a._0x150bb4,-0x27,-_0x37933a._0x13d228,-0x3)](_0x417f50,_0xdc7fb7);function _0x26aeaa(_0x548c5c,_0x756b6d,_0x781c78,_0x57824b){return _0x4d4006(_0x548c5c,_0x756b6d-0x1e1,_0x57824b- -0x5c,_0x57824b-0xb9);}try{return await this[_0x26aeaa(-0x6a,-0xa5,-0x42,0x17)](_0x417f50,_0xdc7fb7);}catch(_0x1fb0fd){if(_0x1fb0fd instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x1fb0fd[_0x26aeaa(_0x37933a._0x27fc48,_0x37933a._0x262eb9,_0x37933a._0x33f63b,_0x37933a._0x209066)]))return this['markModelAsResponsesOnly'](_0x417f50['model']),this[_0x26aeaa(0xf,-_0x37933a._0x374b0b,_0x37933a._0x1a7a54,-_0x37933a._0x55e320)](_0x417f50,_0xdc7fb7);throw this[_0x465c74(0x125,0x51,0x8c,_0x37933a._0xa9ce34)](_0x1fb0fd);}throw _0x1fb0fd;}}async*[_0x4d4006(0x14e,0x27,0xb2,0x12e)](_0x412711,_0x4b9982){const _0x32a277={_0x1a8159:0x678,_0x43e2ab:0x6c7,_0x578058:0x51c,_0x562374:0x499,_0x4a1249:0x49b,_0x32fb17:0x39b,_0xf72b32:0x355,_0x15051b:0x350,_0x37b90f:0x3e2,_0x39f9b2:0x26e,_0x4ea456:0x432,_0x6dbbcb:0x3b4,_0x3a30db:0x3d0,_0x4943dd:0x687,_0x4ca73e:0x2b7,_0x326552:0x4e8,_0x2ed047:0x45b,_0x488c2f:0x45c,_0xc4ab50:0x4de,_0x34d8ab:0x58c,_0x293682:0x226,_0xde708c:0x2d6,_0x56e567:0x28e},_0x44d24b={_0x145021:0x4d9,_0x452a42:0x113},_0x2ed5a3={_0x22aeaf:0x163};function _0x32601c(_0x66a5d4,_0x5b0e9f,_0x5715cd,_0x3beb3d){return _0x18006e(_0x66a5d4-_0x2ed5a3._0x22aeaf,_0x5b0e9f-0x2c,_0x5715cd-0x29c,_0x66a5d4);}const _0x1e756f=this[_0x43afd4(0x63c,_0x32a277._0x1a8159,_0x32a277._0x43e2ab,0x6bc)](_0x412711);function _0x43afd4(_0x31d932,_0x41fc55,_0x411ede,_0x3a7bb2){return _0x4d4006(_0x41fc55,_0x41fc55-0x11b,_0x31d932-_0x44d24b._0x145021,_0x3a7bb2-_0x44d24b._0x452a42);}if(this[_0x43afd4(_0x32a277._0x578058,_0x32a277._0x562374,_0x32a277._0x4a1249,0x59c)]!==_0x32601c(0x3f5,_0x32a277._0x32fb17,0x3dd,0x372)){yield*this[_0x32601c(0x289,0x2a9,0x2e0,0x26c)](_0x1e756f,_0x4b9982);return;}if(this[_0x32601c(_0x32a277._0xf72b32,_0x32a277._0x15051b,0x337,_0x32a277._0x37b90f)](_0x1e756f)){yield*this[_0x32601c(_0x32a277._0x39f9b2,0x24a,0x2f2,0x319)](_0x1e756f,_0x4b9982);return;}try{yield*this[_0x32601c(_0x32a277._0x4ea456,_0x32a277._0x6dbbcb,0x374,_0x32a277._0x3a30db)](_0x1e756f,_0x4b9982);}catch(_0x3d26f1){if(_0x3d26f1 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x3d26f1[_0x43afd4(0x648,_0x32a277._0x4943dd,0x5b1,0x5b2)])){this[_0x32601c(0x2bf,0x32a,_0x32a277._0x4ca73e,0x254)](_0x1e756f[_0x43afd4(_0x32a277._0x326552,_0x32a277._0x2ed047,_0x32a277._0x488c2f,_0x32a277._0xc4ab50)]),yield*this[_0x43afd4(0x4f6,_0x32a277._0x34d8ab,0x540,0x4b3)](_0x1e756f,_0x4b9982);return;}throw this[_0x32601c(0x35f,_0x32a277._0x293682,_0x32a277._0xde708c,_0x32a277._0x56e567)](_0x3d26f1);}throw _0x3d26f1;}}async[_0x18006e(0xac,0x97,0x8c,0x16)](_0x237f54){const _0x3ea4aa={_0x276648:0x2d9,_0x510386:0x279,_0x1133ee:0x27b,_0x385908:0x9d,_0x35a712:0x404,_0x37b703:0x456,_0x2ee88f:0x25,_0x53e6e7:0xef,_0x3a4d0c:0x64,_0x443a6f:0x85,_0x5201eb:0x9f,_0x4805d2:0x2be,_0x32ac43:0x312},_0xc7ac98={_0x1d4814:0x306,_0x4cb73f:0x8d,_0x431c3c:0x1c3,_0x2f9e83:0x1b0,_0x4aea6b:0x1eb},_0x113f41={_0x878fae:0x220};function _0x1c57f7(_0x56d20a,_0xd62d10,_0x2b37a5,_0x3d178a){return _0x4d4006(_0x56d20a,_0xd62d10-0x1bf,_0x2b37a5- -0xdd,_0x3d178a-0x10f);}const _0x2051d8=await this[_0xffb86(_0x3ea4aa._0x276648,_0x3ea4aa._0x510386,0x273,_0x3ea4aa._0x1133ee)]({'path':_0x1c57f7(-0x124,-0x15,-0xbd,-_0x3ea4aa._0x385908),'method':_0xffb86(0x363,_0x3ea4aa._0x35a712,_0x3ea4aa._0x37b703,0x3a5),'signal':_0x237f54});if(!_0x2051d8['ok'])throw this['mapApiError'](await this[_0x1c57f7(0xa2,-_0x3ea4aa._0x2ee88f,0x78,_0x3ea4aa._0x53e6e7)](_0x2051d8));function _0xffb86(_0x1965f9,_0x2ca85c,_0xf43f6d,_0x3de336){return _0x18006e(_0x1965f9-0x1c3,_0x2ca85c-0x18b,_0x3de336-_0x113f41._0x878fae,_0x2ca85c);}const _0x5cb8cb=await _0x2051d8[_0x1c57f7(-0x23,_0x3ea4aa._0x3a4d0c,_0x3ea4aa._0x443a6f,_0x3ea4aa._0x5201eb)](),_0xa0b2d5=(_0x5cb8cb[_0xffb86(0x2f3,_0x3ea4aa._0x4805d2,0x3d0,_0x3ea4aa._0x32ac43)]??[])['map'](_0x2fa26f=>{const _0x364fc8={_0x4032df:0x66};function _0x3e71ec(_0x33f21e,_0x322a90,_0x47b025,_0x3e263d){return _0x1c57f7(_0x47b025,_0x322a90-0x33,_0x322a90- -0x10d,_0x3e263d-0x7c);}const _0x12f2bb=createModelInfo(_0x2fa26f);function _0x53101d(_0x5794f5,_0x5e3977,_0x4f9b89,_0x1c2a5c){return _0x1c57f7(_0x5794f5,_0x5e3977-0x1b8,_0x4f9b89-0x46e,_0x1c2a5c-_0x364fc8._0x4032df);}return _0x12f2bb[_0x53101d(0x44d,_0xc7ac98._0x1d4814,0x3cb,0x3f2)]&&this['modelEndpointCache'][_0x3e71ec(-0x2b,-_0xc7ac98._0x4cb73f,-0x91,-0x9d)](_0x12f2bb['id'],_0x12f2bb[_0x3e71ec(-_0xc7ac98._0x431c3c,-_0xc7ac98._0x2f9e83,-_0xc7ac98._0x4aea6b,-0x218)]),_0x12f2bb;});return deduplicateModels(_0xa0b2d5);}};function createHeaders(_0x2f5f98){const _0x41dae1={_0x13b71f:0x168,_0x556c48:0x451,_0x423fa4:0x4d8},_0x5845c8={_0x694cae:0x161,_0x1c926a:0x38},_0x5e038d={_0x4d3ad3:0x88,_0x529534:0x15e},_0x225c2d=new Headers();function _0x319b85(_0x4884e6,_0x5a75f6,_0x28390d,_0x15a3b4){return _0x4d4006(_0x5a75f6,_0x5a75f6-0x4,_0x28390d-_0x5e038d._0x4d3ad3,_0x15a3b4-_0x5e038d._0x529534);}for(const [_0x15bd27,_0x1f6d44]of Object[_0x319b85(0x5a,0xfa,0xf6,_0x41dae1._0x13b71f)](_0x2f5f98)){_0x225c2d[_0xe3cfb3(0x4bd,0x571,_0x41dae1._0x556c48,_0x41dae1._0x423fa4)](_0x15bd27,_0x1f6d44);}function _0xe3cfb3(_0x2e29b9,_0x24b6e9,_0x5edfde,_0xe163cb){return _0x4d4006(_0x24b6e9,_0x24b6e9-_0x5845c8._0x694cae,_0x2e29b9-0x360,_0xe163cb-_0x5845c8._0x1c926a);}return _0x225c2d;}async function fetchRawResponse(_0x348588){const _0x5620f8={_0x4524c5:0x459,_0x1adfd5:0x30d,_0x102b66:0x3b2,_0x113148:0x2fc,_0x4a6dab:0x3a3,_0x483d35:0x455,_0x5412b8:0x49d,_0x17d2fc:0x599,_0x34b7c2:0x527,_0x22d055:0x486},_0x11efcf={_0x28ec85:0x1ce},_0x4d87e7={_0x209004:0xb1};function _0xdc44b1(_0x9761f1,_0x42a8b9,_0x330df4,_0x4157a5){return _0x18006e(_0x9761f1-0x137,_0x42a8b9-_0x4d87e7._0x209004,_0x330df4-0x359,_0x4157a5);}function _0x3f675d(_0x55e7bf,_0x27fe6c,_0x5d5eb3,_0xb74746){return _0x4d4006(_0x27fe6c,_0x27fe6c-_0x11efcf._0x28ec85,_0xb74746-0x2f2,_0xb74746-0x59);}const _0x5b9e52=_0x348588['fetch']??globalThis[_0xdc44b1(0x436,0x3f3,_0x5620f8._0x4524c5,0x426)];return _0x5b9e52(_0x348588[_0x3f675d(_0x5620f8._0x1adfd5,_0x5620f8._0x102b66,0x239,_0x5620f8._0x113148)],{'method':_0x3f675d(0x3f6,_0x5620f8._0x4a6dab,0x3b7,0x41f),'headers':createHeaders(_0x348588[_0xdc44b1(_0x5620f8._0x483d35,0x5a5,0x4e9,_0x5620f8._0x5412b8)]),'body':JSON['stringify'](_0x348588[_0xdc44b1(_0x5620f8._0x17d2fc,0x46b,0x501,_0x5620f8._0x34b7c2)]),'signal':_0x348588[_0xdc44b1(0x45e,0x434,_0x5620f8._0x22d055,0x3e0)]});}async function fetchJsonResponse(_0x2cdbbf){const _0x25a7ab={_0x35d4d1:0x247,_0x133693:0x2fb,_0x10c6b4:0x3d2,_0x5d4afa:0x31f,_0x15e28d:0x2f2,_0x5e69bc:0x35e,_0x15a38c:0x59,_0x147ce9:0x7b,_0x2d048b:0xc,_0x254e05:0x34a,_0x471c6a:0x309,_0x214f01:0x39d},_0x2bfe61={_0x166f97:0xa2,_0x579666:0x95,_0xc04ed2:0x3b},_0x29d993={_0x1a7108:0x36,_0x157634:0x1bc},_0xb379cb=await fetchRawResponse(_0x2cdbbf);function _0x2f80f0(_0x4c3c0b,_0x234e6e,_0x548389,_0xf7adc8){return _0x18006e(_0x4c3c0b-0x2e,_0x234e6e-_0x29d993._0x1a7108,_0x234e6e-_0x29d993._0x157634,_0x548389);}function _0x23a531(_0x1ae2db,_0x3b9b1b,_0x4224ad,_0x5c3cf5){return _0x4d4006(_0x5c3cf5,_0x3b9b1b-_0x2bfe61._0x166f97,_0x4224ad- -_0x2bfe61._0x579666,_0x5c3cf5-_0x2bfe61._0xc04ed2);}if(!_0xb379cb['ok']){const _0x56409e=await _0xb379cb[_0x2f80f0(0x2cb,0x2c7,_0x25a7ab._0x35d4d1,_0x25a7ab._0x133693)](),_0x990a78=_0x56409e[_0x2f80f0(_0x25a7ab._0x10c6b4,_0x25a7ab._0x5d4afa,_0x25a7ab._0x15e28d,_0x25a7ab._0x5e69bc)]()||_0xb379cb[_0x23a531(_0x25a7ab._0x15a38c,_0x25a7ab._0x147ce9,-_0x25a7ab._0x2d048b,-0x5a)]||'Unknown\x20provider\x20error';throw new Error(_0x2f80f0(_0x25a7ab._0x254e05,_0x25a7ab._0x471c6a,_0x25a7ab._0x214f01,0x3b2)+_0xb379cb['status']+':\x20'+_0x990a78);}return await _0xb379cb['json']();}function findLastMessage(_0xa98cb2,_0x3f1c39){for(let _0x45bb81=_0xa98cb2['length']-0x1;_0x45bb81>=0x0;_0x45bb81-=0x1){if(_0xa98cb2[_0x45bb81]['role']===_0x3f1c39)return _0xa98cb2[_0x45bb81];}return void 0x0;}function hasTool(_0x5ec286,_0x37ed62){const _0xa7da64={_0x496c09:0x299,_0x5092e:0x1b5,_0x924c23:0x236},_0x2b4a1d={_0x372c5f:0xe8,_0x2d8051:0x12e},_0x4cfa0a={_0x19f0d9:0x1fb,_0x29fe11:0x24};function _0x3d55ca(_0x2815b8,_0x4f13fe,_0x3ae066,_0xc99e2e){return _0x4d4006(_0x3ae066,_0x4f13fe-0x81,_0xc99e2e-_0x4cfa0a._0x19f0d9,_0xc99e2e-_0x4cfa0a._0x29fe11);}function _0x143e59(_0x6053e7,_0x1073cb,_0x50a8fe,_0xf98f5d){return _0x18006e(_0x6053e7-_0x2b4a1d._0x372c5f,_0x1073cb-0x19f,_0x6053e7- -_0x2b4a1d._0x2d8051,_0x50a8fe);}return _0x5ec286[_0x3d55ca(0x22c,0x31f,0x32e,0x267)][_0x3d55ca(_0xa7da64._0x496c09,_0xa7da64._0x5092e,0x2b9,_0xa7da64._0x924c23)](_0x26deac=>_0x26deac[_0x3d55ca(0x316,0x3ae,0x3e4,0x353)]===_0x37ed62);}function createMockResponse(_0x2e927a,_0x342813,_0x1f455c,_0x52fc4f){return{'id':_0x2e927a,'content':_0x342813,'stopReason':_0x1f455c,'usage':_0x52fc4f};}var MockModel=class{[_0x18006e(0x89,-0x43,0x48,0x4a)];['maxTokens'];[_0x18006e(0x1c4,0x1b4,0x12a,0x179)]=[];[_0x4d4006(0x15a,0x191,0xd6,0xe5)];constructor(_0x7bd564={}){const _0x2b0220={_0x4a0acc:0x1c4,_0x1a545a:0x226,_0x1b0cbe:0x160,_0x18dacc:0x7a,_0x5c88f2:0x11,_0x1fee72:0x8f,_0x5c7647:0x110,_0x5b2617:0x7,_0x481e73:0x67,_0x185035:0x111,_0x26f2e7:0xd7,_0x264f60:0x88,_0x32c439:0xf5,_0x48737f:0x111,_0x368941:0xfd,_0x146e75:0x1c6,_0x57d0e9:0x99,_0x496401:0xfb},_0x1924d6={_0x391d6c:0x1d3},_0x4dceed={_0x23a6d0:0x106};this[_0x3f6eb4(-_0x2b0220._0x4a0acc,-_0x2b0220._0x1a545a,-_0x2b0220._0x1b0cbe,-0x1b7)]=_0x7bd564[_0x16df09(_0x2b0220._0x18dacc,_0x2b0220._0x5c88f2,-0x44,-0xc4)]??_0x3f6eb4(-_0x2b0220._0x1fee72,-_0x2b0220._0x5c7647,_0x2b0220._0x5b2617,-0xb2);function _0x16df09(_0x2783c9,_0x312a91,_0x2de6e7,_0x3719ad){return _0x4d4006(_0x2783c9,_0x312a91-_0x4dceed._0x23a6d0,_0x2de6e7- -0x53,_0x3719ad-0x144);}function _0x3f6eb4(_0x1cab31,_0x33a667,_0x31afa4,_0x3f4d8d){return _0x4d4006(_0x33a667,_0x33a667-0xed,_0x1cab31- -_0x1924d6._0x391d6c,_0x3f4d8d-0x1d3);}this[_0x16df09(0x1b3,_0x2b0220._0x481e73,_0x2b0220._0x185035,_0x2b0220._0x26f2e7)]=_0x7bd564[_0x16df09(_0x2b0220._0x264f60,_0x2b0220._0x32c439,_0x2b0220._0x48737f,0x88)]??0x4000,this['reasoning']=_0x7bd564[_0x3f6eb4(-_0x2b0220._0x368941,-_0x2b0220._0x146e75,-0xed,-_0x2b0220._0x57d0e9)]?structuredClone(_0x7bd564[_0x16df09(-0x38,_0x2b0220._0x496401,0x83,0x30)]):void 0x0;}async[_0x4d4006(0x195,0xaf,0xe4,0xed)](_0x5e14a4,_0x4d29c9){const _0xd1d6c1={_0xf6a6c3:0x159,_0x239935:0x1f7,_0x2a0816:0x500,_0x331998:0x4c9,_0x5f0928:0x4e8,_0x2218da:0x1ff,_0x48ad75:0x2af,_0x486208:0x238,_0x3086fc:0x3ed,_0xf1e3ca:0x471,_0x403d44:0x46d,_0x58ac7c:0x16e,_0x1855a8:0x1fb,_0x341549:0x212,_0x303452:0x4c4,_0x1eb37a:0x45d,_0x1acb41:0x452,_0x4f045a:0x4b4,_0x26f6d0:0x255,_0x5a6562:0x19a,_0x4a6293:0x483,_0x414807:0x574,_0x38a336:0x419,_0x470466:0xe6,_0x200d6d:0xff,_0x78f6d5:0x186,_0x2c3165:0x2e6,_0x115da2:0x185,_0x22a901:0x23e,_0x24bef1:0x297,_0x150f52:0x4bd,_0x2ddbff:0x3d9,_0x7b289a:0x42a,_0x6ef9:0x472,_0xa57e46:0x190,_0x2ee365:0x1f3},_0x1c8c8e={_0x209736:0x5b,_0x244909:0x121},_0x2f2523={_0x19488c:0x5f,_0x58959d:0xac},_0x220b59={...structuredClone(_0x5e14a4),..._0x5e14a4['reasoning']===void 0x0&&this['reasoning']!==void 0x0?{'reasoning':structuredClone(this[_0x3fec9b(_0xd1d6c1._0xf6a6c3,0x12c,0x218,_0xd1d6c1._0x239935)])}:{}};this[_0x49e9e2(0x448,_0xd1d6c1._0x2a0816,_0xd1d6c1._0x331998,_0xd1d6c1._0x5f0928)][_0x3fec9b(_0xd1d6c1._0x2218da,_0xd1d6c1._0x48ad75,0x23b,_0xd1d6c1._0x486208)](_0x220b59);function _0x49e9e2(_0x12b0b7,_0x5882f9,_0x182a83,_0x5e1026){return _0x4d4006(_0x12b0b7,_0x5882f9-_0x2f2523._0x19488c,_0x5882f9-0x40f,_0x5e1026-_0x2f2523._0x58959d);}const _0x1c4295=findLastMessage(_0x220b59[_0x49e9e2(0x46f,0x3fa,0x339,_0xd1d6c1._0x3086fc)],_0x49e9e2(0x35f,0x3fc,_0xd1d6c1._0xf1e3ca,_0xd1d6c1._0x403d44));function _0x3fec9b(_0x1a300e,_0x4372f3,_0x54081e,_0x3f1104){return _0x4d4006(_0x1a300e,_0x4372f3-_0x1c8c8e._0x209736,_0x3f1104-_0x1c8c8e._0x244909,_0x3f1104-0x1a3);}const _0x964e7=getToolResultBlocks(_0x1c4295),_0x202f79='assistant-'+this[_0x3fec9b(_0xd1d6c1._0x58ac7c,0x209,_0xd1d6c1._0x1855a8,_0xd1d6c1._0x341549)][_0x49e9e2(_0xd1d6c1._0x303452,0x4fb,0x539,0x5bb)];if(_0x964e7['length']>0x0)return createMockResponse(_0x202f79,[{'type':_0x49e9e2(_0xd1d6c1._0x1eb37a,0x4e1,_0xd1d6c1._0x1acb41,_0xd1d6c1._0x4f045a),'text':_0x3fec9b(0x2e5,_0xd1d6c1._0x26f6d0,_0xd1d6c1._0x5a6562,0x21f)+_0x964e7[0x0][_0x49e9e2(_0xd1d6c1._0x4a6293,0x4d1,_0xd1d6c1._0x414807,_0xd1d6c1._0x38a336)]}],_0x3fec9b(_0xd1d6c1._0x470466,_0xd1d6c1._0x200d6d,0x14f,_0xd1d6c1._0x78f6d5),{'inputTokens':0x78,'outputTokens':0x28});const _0x488b46=getTextFromMessage(_0x1c4295);if(/list .*files|workspace/i['test'](_0x488b46)&&hasTool(_0x220b59,_0x3fec9b(0x12d,0x1e1,0xef,0x179)))return createMockResponse(_0x202f79,[{'type':'tool_use','id':_0x3fec9b(_0xd1d6c1._0x2c3165,0x189,_0xd1d6c1._0x115da2,_0xd1d6c1._0x22a901)+this[_0x3fec9b(0x24d,0x1f3,_0xd1d6c1._0x24bef1,0x212)][_0x49e9e2(_0xd1d6c1._0x150f52,0x4fb,0x53f,0x460)],'name':_0x49e9e2(_0xd1d6c1._0x2ddbff,0x467,0x3ca,_0xd1d6c1._0x7b289a),'input':{'command':'ls\x20-la'}}],_0x49e9e2(0x404,_0xd1d6c1._0x6ef9,0x4fb,0x4b3),{'inputTokens':0x6e,'outputTokens':0x1c});return createMockResponse(_0x202f79,[{'type':_0x3fec9b(_0xd1d6c1._0xa57e46,0x1bd,0x283,_0xd1d6c1._0x2ee365),'text':'Direct\x20answer:\x20'+_0x488b46}],_0x3fec9b(0x1ef,0xc2,0x207,0x186),{'inputTokens':0x50,'outputTokens':0x12});}};export{ANTHROPIC_MESSAGES_STREAM_SURFACE,ANTHROPIC_MESSAGES_SURFACE,AVAILABLE_CHAT_MODEL_SURFACES,AnthropicModel,ChatModel,GitHubModel,MockModel,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,OPENAI_CHAT_COMPLETIONS_SURFACE,OPENAI_RESPONSES_STREAM_SURFACE,OPENAI_RESPONSES_SURFACE,OPENAI_RESPONSES_WEBSOCKET_SURFACE,OpenAiApiError,OpenAiModel,ProviderSessionManager,RoutedModel,StaticModelSurfaceRouter,createAnthropicSurfaces,createDefaultWebSocketFactory,createOpenAiApiError,createOpenAiResponsesStreamParser,createOpenAiResponsesWebSocketEvent,createOpenAiSurfaces,fetchJsonResponse,fetchRawResponse,iterateSseEvents,iterateWebSocketMessages,prepareProviderRequest,resolveApiCredential,resolveSessionBaseUrl,toWebSocketUrl,trimTrailingSlashes,waitForWebSocketOpen};
|