@nuvin/agent-core 0.0.0-rc.11 → 0.0.0-rc.12
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 +2 -2
- package/dist/agent/index.js +1 -1
- package/dist/chunk-FFIZ6TKW.js +1 -1
- package/dist/chunk-NYZR4XKO.js +1 -1
- package/dist/chunk-SEP4YYY3.js +1 -1
- package/dist/chunk-T7UKN6FZ.js +1 -0
- package/dist/chunk-WJMBJOVF.js +1 -1
- package/dist/chunk-X7VAACWY.js +1 -1
- package/dist/formats/index.d.ts +2 -2
- package/dist/formats/index.js +1 -1
- package/dist/models/index.d.ts +47 -4
- package/dist/models/index.js +1 -1
- package/dist/{provider-adapters-CURkQPbY.d.ts → provider-adapters-BZo_Yh3I.d.ts} +1 -1
- package/dist/shared/index.d.ts +2 -2
- package/dist/shared/index.js +1 -1
- package/dist/tools/index.d.ts +15 -3
- package/dist/tools/index.js +1 -1
- package/dist/{types-Df0vlfj-.d.ts → types-DQXrm4dp.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/chunk-VDDXTXQ4.js +0 -1
package/dist/models/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x790212,_0xaecc04){const _0x3da47a={_0x4d3fee:0x5bc,_0x5600dc:0x43e,_0x26b33c:0xdd,_0x4be58c:0x9e,_0x5c1fcc:0x48c,_0xbf8ca8:0x52e,_0x17a6a7:0x33c,_0x4ebea3:0x523,_0xecc865:0x48a,_0x56127c:0x211,_0x15618f:0x45e,_0x3efde8:0x51c},_0x15faa5={_0x2a6ef5:0x1ee};function _0x5c215a(_0x2d1ec9,_0x4de446,_0x133453,_0x15857c){return _0x4eeb(_0x133453-0x31e,_0x2d1ec9);}function _0xf8638e(_0x483f04,_0x2b26f2,_0x5ae698,_0x36226e){return _0x4eeb(_0x36226e- -_0x15faa5._0x2a6ef5,_0x2b26f2);}const _0x542fe9=_0x790212();while(!![]){try{const _0x5d4b46=parseInt(_0x5c215a(0x5b8,_0x3da47a._0x4d3fee,0x520,0x513))/0x1*(-parseInt(_0x5c215a(0x438,0x440,0x4fa,_0x3da47a._0x5600dc))/0x2)+parseInt(_0x5c215a(0x460,0x4ab,0x47e,0x3d1))/0x3+parseInt(_0xf8638e(-0xa4,-0x105,-0x22,-_0x3da47a._0x26b33c))/0x4+-parseInt(_0xf8638e(-_0x3da47a._0x4be58c,-0x120,-0x95,-0xcb))/0x5*(-parseInt(_0x5c215a(_0x3da47a._0x5c1fcc,_0x3da47a._0xbf8ca8,0x45d,0x4e0))/0x6)+-parseInt(_0x5c215a(0x4c7,_0x3da47a._0x17a6a7,0x3f5,0x43a))/0x7+-parseInt(_0x5c215a(_0x3da47a._0x4ebea3,0x463,_0x3da47a._0xecc865,0x432))/0x8*(-parseInt(_0xf8638e(-0x1a3,-_0x3da47a._0x56127c,-0x1a5,-0x14d))/0x9)+-parseInt(_0x5c215a(0x48e,0x4ec,_0x3da47a._0x15618f,_0x3da47a._0x3efde8))/0xa;if(_0x5d4b46===_0xaecc04)break;else _0x542fe9['push'](_0x542fe9['shift']());}catch(_0x4cec72){_0x542fe9['push'](_0x542fe9['shift']());}}}(_0x48d2,0x792f0));import{toOpenAiResponsesRequest}from'../chunk-VDDXTXQ4.js';import{resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig}from'../chunk-NYZR4XKO.js';import{getTextFromMessage,getToolResultBlocks,normalizeContent,toChatRequest,toModelRequest,toProviderModelRequest}from'../chunk-SEP4YYY3.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';var ProviderRequestConstructionError=class extends Error{constructor(_0x4277ef){const _0x696f50={_0x2dd36e:0x105,_0x18b8e8:0xd1,_0x2d0152:0x11c};function _0x2006f1(_0x2eaf30,_0x1aab8a,_0x122ce3,_0x15eac1){return _0x4eeb(_0x1aab8a- -0x1b2,_0x2eaf30);}function _0x6c8365(_0x17fca2,_0x5ea544,_0x398000,_0x56a25e){return _0x4eeb(_0x5ea544- -0x11c,_0x398000);}super(_0x4277ef),this[_0x2006f1(-_0x696f50._0x2dd36e,-0x4c,-0xc7,-0x3b)]=_0x2006f1(-0x167,-_0x696f50._0x18b8e8,-0x6f,-_0x696f50._0x2d0152);}},ProviderStreamEventError=class extends Error{[_0x3a2825(-0x1c6,-0x24b,-0x1c9,-0x259)];['retryable'];[_0x40b3f8(-0x1b,-0x96,-0xf6,-0xd3)];constructor(_0x250356,_0x3787cd={}){const _0x52cf6e={_0x620f5e:0x557,_0x54d3a3:0x431,_0x5895ea:0x516,_0x1ac506:0x3d1,_0x2018ee:0x48b,_0x554753:0x4e1,_0x2d0d8d:0x54c,_0x4e686f:0x520,_0x5a883f:0x3cf,_0x403513:0x52d,_0x39100f:0x536,_0x40a3de:0x364,_0x480282:0x49d,_0x1ac487:0x4ca,_0x2ae2b3:0x41e,_0x5ccaf9:0x41b},_0x161aca={_0x3bc2a9:0x6d6},_0xddd91f={_0xec67a0:0x3d5};function _0x29e032(_0x2a96bc,_0x460265,_0x2e13ed,_0xe342d6){return _0x40b3f8(_0x2a96bc-0x14e,_0xe342d6,_0x2e13ed-0xa6,_0x460265-_0xddd91f._0xec67a0);}super(_0x250356),this['name']=_0x2ce8b2(0x4ab,_0x52cf6e._0x620f5e,0x4a0,_0x52cf6e._0x54d3a3),this[_0x2ce8b2(_0x52cf6e._0x5895ea,_0x52cf6e._0x1ac506,_0x52cf6e._0x2018ee,_0x52cf6e._0x554753)]=_0x3787cd[_0x2ce8b2(_0x52cf6e._0x2d0d8d,_0x52cf6e._0x4e686f,0x48b,_0x52cf6e._0x5a883f)];function _0x2ce8b2(_0x3c3925,_0x1d185f,_0x4d35db,_0x5e09f3){return _0x3a2825(_0x1d185f,_0x4d35db-_0x161aca._0x3bc2a9,_0x4d35db-0x160,_0x5e09f3-0xad);}this[_0x2ce8b2(0x4d5,_0x52cf6e._0x403513,_0x52cf6e._0x39100f,0x5d0)]=_0x3787cd[_0x29e032(_0x52cf6e._0x40a3de,0x41d,_0x52cf6e._0x480282,_0x52cf6e._0x1ac487)]??!![],this['status']=_0x3787cd[_0x2ce8b2(0x39a,_0x52cf6e._0x2ae2b3,_0x52cf6e._0x5ccaf9,0x376)];}};function isRetryableProviderStreamEventError(_0x10e11d){const _0xc11af8={_0x26f01e:0x10f,_0x3e92b1:0xe2,_0x343ab6:0xe8},_0x1af67f={_0x407b3d:0x2af,_0x141bf4:0x8b};function _0xa5b191(_0x5dd1ea,_0x2ef25f,_0xce2e1,_0x2974f7){return _0x3a2825(_0xce2e1,_0x5dd1ea-_0x1af67f._0x407b3d,_0xce2e1-_0x1af67f._0x141bf4,_0x2974f7-0xe6);}return _0x10e11d instanceof ProviderStreamEventError&&_0x10e11d[_0xa5b191(_0xc11af8._0x26f01e,_0xc11af8._0x3e92b1,_0xc11af8._0x343ab6,0x1e0)];}var ANTHROPIC_MESSAGES_SURFACE=_0x40b3f8(-0x136,-0xf8,-0x197,-0x141),ANTHROPIC_MESSAGES_STREAM_SURFACE=_0x3a2825(-0x29f,-0x1ca,-0x22d,-0x142);function parseToolInput(_0xe9201d){try{return JSON['parse'](_0xe9201d);}catch{return _0xe9201d;}}function resolveReasoningVisibility(_0x27cb7a){const _0x31bc4f={_0x4db266:0x4d6,_0xe1f027:0x4ed,_0x119e15:0x41d,_0x2d0ef8:0x53f,_0x3bb2c7:0x4dc,_0x25ce2d:0x534},_0x5c14dc={_0x2d088c:0x17e,_0x14a917:0x4},_0x55022c={_0x4d2c9c:0x7b7};function _0x11b735(_0x493d0e,_0x5f3a09,_0x41a2a0,_0x481f25){return _0x3a2825(_0x41a2a0,_0x5f3a09-_0x55022c._0x4d2c9c,_0x41a2a0-0x125,_0x481f25-0x111);}function _0x470031(_0x42c522,_0x590237,_0xddc907,_0x4a2346){return _0x3a2825(_0x590237,_0xddc907-0x77e,_0xddc907-_0x5c14dc._0x2d088c,_0x4a2346-_0x5c14dc._0x14a917);}return _0x27cb7a[_0x11b735(_0x31bc4f._0x4db266,_0x31bc4f._0xe1f027,_0x31bc4f._0x119e15,_0x31bc4f._0x2d0ef8)]?.['visibility']??_0x470031(_0x31bc4f._0x3bb2c7,0x4b7,0x45e,_0x31bc4f._0x25ce2d);}function isUserVisibleThinking(_0x5a19a4){const _0x2a535e={_0xa9b7ad:0x357,_0x4bbfa1:0x41a,_0x564b57:0x3d7,_0x9bc5e4:0x10f,_0x55ec3b:0x1fd},_0x473815={_0x20f772:0x4a0,_0x35fcda:0x1c7,_0x508ac0:0x198},_0x1b4221={_0x278b49:0x1a3,_0x6906e0:0x159};function _0x2191c9(_0x37ad70,_0x5ec6d0,_0x1da9cc,_0x386178){return _0x3a2825(_0x37ad70,_0x5ec6d0-0x6e4,_0x1da9cc-_0x1b4221._0x278b49,_0x386178-_0x1b4221._0x6906e0);}function _0x58a3b0(_0x245c47,_0x4ea878,_0x113ee4,_0x2847c6){return _0x3a2825(_0x113ee4,_0x245c47-_0x473815._0x20f772,_0x113ee4-_0x473815._0x35fcda,_0x2847c6-_0x473815._0x508ac0);}const _0x569872=resolveAnthropicThinkingConfig(_0x5a19a4[_0x2191c9(_0x2a535e._0xa9b7ad,_0x2a535e._0x4bbfa1,_0x2a535e._0x564b57,0x4e8)]);return _0x569872!==void 0x0&&_0x569872[_0x58a3b0(0x158,_0x2a535e._0x9bc5e4,0xf1,_0x2a535e._0x55ec3b)]!=='disabled'&&resolveReasoningVisibility(_0x5a19a4)===_0x58a3b0(0x180,0xd2,0x125,0x104);}function createAnthropicThinkingBody(_0x426988){const _0x20c2e4={_0x2135d4:0x2de,_0x179de3:0x2d6,_0x193988:0xc4,_0x2bb626:0x163,_0x32f1aa:0x9d,_0x57c356:0x108,_0x45f9ea:0x241,_0x6b5037:0xa,_0x5d1cce:0x88,_0x34aafd:0x96,_0x5838ac:0x1a3,_0x33175f:0x24f,_0x645ae4:0x1cb,_0x19004f:0x18c,_0x40351e:0x17e,_0x548f1c:0x119,_0x24038f:0x60,_0x2c709d:0x95,_0x471586:0x1cc,_0x398017:0x270,_0x5f44ee:0x144,_0x5eb011:0x91,_0x407002:0x269,_0x5c8206:0x1bd},_0x474435={_0x113304:0x76,_0x477fc5:0x11b},_0xd09692={_0x2f0b23:0x123,_0x2735e0:0x1f4},_0x44df98=resolveAnthropicThinkingConfig(_0x426988['reasoning']);if(!_0x44df98||_0x44df98[_0x1d77f7(-0x27b,-0x2ae,-_0x20c2e4._0x2135d4,-_0x20c2e4._0x179de3)]===_0x493f00(_0x20c2e4._0x193988,0x10f,_0x20c2e4._0x2bb626,_0x20c2e4._0x32f1aa))return{};const _0x47602b=_0x44df98[_0x493f00(0x22b,0x1a0,_0x20c2e4._0x57c356,_0x20c2e4._0x45f9ea)]??(isUserVisibleThinking(_0x426988)?_0x493f00(_0x20c2e4._0x6b5037,_0x20c2e4._0x5d1cce,0x45,_0x20c2e4._0x34aafd):_0x493f00(_0x20c2e4._0x5838ac,0x1e9,_0x20c2e4._0x33175f,_0x20c2e4._0x645ae4)),_0x108d08=_0x44df98[_0x1d77f7(-0xfe,-0xd0,-0xdf,-0x104)]?{'anthropic-beta':_0x1d77f7(-_0x20c2e4._0x19004f,-_0x20c2e4._0x40351e,-_0x20c2e4._0x548f1c,-0x1bc)}:void 0x0;function _0x493f00(_0x3046c3,_0x4a55dc,_0x55f625,_0x3bd05d){return _0x3a2825(_0x3046c3,_0x4a55dc-0x3c8,_0x55f625-_0xd09692._0x2f0b23,_0x3bd05d-_0xd09692._0x2735e0);}if(_0x44df98[_0x493f00(-0x33,0x80,_0x20c2e4._0x24038f,0x14d)]===_0x493f00(_0x20c2e4._0x2c709d,0x12f,0x1b6,0x18e))return{..._0x108d08?{'headers':_0x108d08}:{},'thinking':{'type':_0x1d77f7(-_0x20c2e4._0x471586,-0xfe,-0x243,-_0x20c2e4._0x398017),'budget_tokens':_0x44df98[_0x1d77f7(-0x105,-0x136,-_0x20c2e4._0x5f44ee,-0x116)],'display':_0x47602b}};function _0x1d77f7(_0x51c6a8,_0x2a9f83,_0x3535ac,_0x3331be){return _0x40b3f8(_0x51c6a8-_0x474435._0x113304,_0x3535ac,_0x3535ac-0xd0,_0x51c6a8- -_0x474435._0x477fc5);}return{..._0x108d08?{'headers':_0x108d08}:{},'thinking':{'type':_0x1d77f7(-0xe2,-0xb2,-0x13e,-_0x20c2e4._0x5eb011),..._0x44df98['effort']?{'effort':_0x44df98[_0x1d77f7(-_0x20c2e4._0x407002,-_0x20c2e4._0x5c8206,-0x1e6,-0x2d3)]}:{},'display':_0x47602b}};}function toAnthropicRequestContent(_0x368632){const _0x4ba142={_0x499002:0x281,_0x5edcc2:0x28d,_0x133862:0x28e,_0x1027ad:0x35d,_0x4416bc:0x29b,_0x405c4d:0x238,_0x2389d4:0x15b,_0x45865e:0x140,_0x839ea0:0x344,_0x2c0a20:0x16e,_0x50cad1:0xe7,_0x5c8676:0x14c,_0x4b7014:0x1a2,_0x5efc72:0xd0,_0x54bf73:0x278,_0x4d30d9:0x301,_0x20337f:0x1b5,_0x19663a:0x1b6,_0x2ff4bf:0x12a,_0x397ab2:0x171,_0x23331a:0x1ff,_0xf5ac47:0x10f,_0xd5337:0x32b,_0x3adcd4:0x309,_0x307d57:0x364,_0x58a019:0x25f,_0x31e5fc:0x33b,_0x20f999:0x1ff,_0x539b65:0x219,_0x54fa2b:0x233,_0x29e934:0x1eb,_0x43a7e4:0x1e9},_0x5a9ed2={_0x42d8fe:0x65},_0x15fc41={_0x4d49a3:0xe5};if(_0x368632['role']===_0x586329(-0x32e,-0x272,-_0x4ba142._0x499002,-_0x4ba142._0x5edcc2)&&_0x368632[_0x586329(-0x2c4,-_0x4ba142._0x133862,-0x2e7,-_0x4ba142._0x1027ad)]?.[_0x40e224(-0x199,-0x25a,-_0x4ba142._0x4416bc,-_0x4ba142._0x405c4d)])return structuredClone(_0x368632[_0x40e224(-0x1d0,-0x1e8,-_0x4ba142._0x2389d4,-_0x4ba142._0x45865e)][_0x586329(-0x387,-0x300,-_0x4ba142._0x839ea0,-0x2cd)]);const _0x1e9027=[];function _0x40e224(_0x5b724b,_0x4d10d3,_0x158bfd,_0x5653a3){return _0x3a2825(_0x158bfd,_0x4d10d3-_0x15fc41._0x4d49a3,_0x158bfd-0x2e,_0x5653a3-0x1c1);}for(const _0x39efe0 of normalizeContent(_0x368632[_0x586329(-0x1ef,-_0x4ba142._0x2c0a20,-_0x4ba142._0x50cad1,-_0x4ba142._0x5c8676)])){if(_0x39efe0['type']===_0x40e224(-0x24,-0xef,-_0x4ba142._0x4b7014,-_0x4ba142._0x5efc72))continue;if(_0x39efe0[_0x586329(-_0x4ba142._0x54bf73,-0x309,-0x2a0,-_0x4ba142._0x4d30d9)]===_0x586329(-0x1cd,-0x1c8,-_0x4ba142._0x20337f,-_0x4ba142._0x19663a)){_0x1e9027['push']({'type':_0x586329(-0x21c,-0x171,-_0x4ba142._0x2ff4bf,-0x1a4),'thinking':_0x39efe0[_0x586329(-0x1a8,-_0x4ba142._0x397ab2,-_0x4ba142._0x23331a,-_0x4ba142._0xf5ac47)],'signature':_0x39efe0[_0x586329(-0x319,-0x2c7,-0x2ca,-0x31b)]});continue;}if(_0x39efe0[_0x586329(-_0x4ba142._0xd5337,-_0x4ba142._0x3adcd4,-_0x4ba142._0x307d57,-_0x4ba142._0x58a019)]===_0x586329(-_0x4ba142._0x31e5fc,-0x2d0,-_0x4ba142._0x20f999,-_0x4ba142._0x539b65)){_0x1e9027['push']({'type':'redacted_thinking','data':_0x39efe0[_0x586329(-0x384,-0x2d7,-0x2cf,-0x3a2)]});continue;}_0x1e9027[_0x40e224(-_0x4ba142._0x54fa2b,-_0x4ba142._0x29e934,-0x123,-_0x4ba142._0x43a7e4)](structuredClone(_0x39efe0));}function _0x586329(_0x1c541d,_0x377e06,_0x3f6581,_0x3d5247){return _0x40b3f8(_0x1c541d-_0x5a9ed2._0x42d8fe,_0x3f6581,_0x3f6581-0xe6,_0x377e06- -0x1a9);}return _0x1e9027;}function createAnthropicRequest(_0x40e62b,_0x7ad920){const _0x3a00ae={_0x555aa8:0x4e3,_0x5a7004:0x498,_0x398ecb:0x418,_0x2085bc:0x17b,_0x3bd79f:0x1bd,_0x3626a3:0x97,_0x4ff42a:0x14,_0x12ed34:0x13,_0x2ac678:0x44d,_0x19c2b0:0x410,_0x26d5d1:0x448,_0x73d98b:0xc,_0x2bffd7:0x85,_0x4f372d:0x556,_0x401f14:0x50c,_0x472781:0x4fb,_0x5f1aae:0x3ab,_0x61317e:0x136,_0x113142:0x16c,_0x13fbcf:0x1b5},_0xc867e2={_0x177db2:0xcb,_0x358d97:0xad,_0x4b38b4:0x1c2},_0x46798f={_0x5d2031:0x51},_0x4fc62f={_0x28e31a:0x1bc,_0x20ba12:0x11f},_0x620d72=toProviderModelRequest(_0x40e62b),_0x5afbb6=createAnthropicThinkingBody(_0x40e62b);function _0x19ff64(_0xdec69d,_0x3e1c51,_0x259524,_0xb5a7f6){return _0x3a2825(_0x3e1c51,_0xdec69d-_0x4fc62f._0x28e31a,_0x259524-0xab,_0xb5a7f6-_0x4fc62f._0x20ba12);}function _0x410fc6(_0x74c31a,_0x4fe15d,_0x1dcd57,_0x444f7e){return _0x40b3f8(_0x74c31a-0xe8,_0x444f7e,_0x1dcd57-0x23,_0x1dcd57-0x4d4);}return{'accept':_0x7ad920?_0x410fc6(_0x3a00ae._0x555aa8,_0x3a00ae._0x5a7004,0x431,_0x3a00ae._0x398ecb):_0x19ff64(-_0x3a00ae._0x2085bc,-0x206,-0x108,-_0x3a00ae._0x3bd79f),'body':{..._0x620d72,'messages':_0x40e62b[_0x19ff64(-0x3c,_0x3a00ae._0x3626a3,-_0x3a00ae._0x4ff42a,_0x3a00ae._0x12ed34)][_0x410fc6(_0x3a00ae._0x2ac678,0x40f,_0x3a00ae._0x19c2b0,_0x3a00ae._0x26d5d1)](_0x2d357c=>{function _0xf5a61d(_0x10ad5a,_0x41ca1c,_0x24aa44,_0x3921f1){return _0x410fc6(_0x10ad5a-0x1a1,_0x41ca1c-_0x46798f._0x5d2031,_0x3921f1- -0x30b,_0x41ca1c);}return{'role':_0x2d357c[_0xf5a61d(_0xc867e2._0x177db2,_0xc867e2._0x358d97,_0xc867e2._0x4b38b4,0x16c)],'content':toAnthropicRequestContent(_0x2d357c)};}),..._0x5afbb6[_0x19ff64(_0x3a00ae._0x73d98b,-0x27,0xb8,-_0x3a00ae._0x2bffd7)]?{'thinking':_0x5afbb6[_0x410fc6(_0x3a00ae._0x4f372d,0x547,_0x3a00ae._0x401f14,_0x3a00ae._0x472781)]}:{},..._0x7ad920?{'stream':!![]}:{}},..._0x5afbb6[_0x410fc6(0x2bd,_0x3a00ae._0x5f1aae,0x394,0x3cd)]?{'headers':_0x5afbb6['headers']}:{},'path':_0x19ff64(-_0x3a00ae._0x61317e,-0x1c5,-_0x3a00ae._0x113142,-_0x3a00ae._0x13fbcf)};}function parseAnthropicResponse(_0x3e1c77,_0x38c555){const _0x2f9c50={_0x48060f:0x5c,_0x17c932:0x54,_0x142a4:0x66,_0x46c9f8:0x4a1,_0x4c91ff:0x108,_0x2fea93:0x3f,_0x3c9ea8:0x47,_0x19ccd2:0x140,_0x5bbea1:0x22c,_0x38b7f5:0x221,_0xf8f7ce:0x5a3,_0x4b9378:0x38b,_0xef2410:0x51d,_0x46b7c8:0x4ae,_0x531df0:0x4b2,_0x41dbee:0x494,_0x31e6f9:0x49f,_0x438d7f:0x4a0,_0x48ae6a:0x462,_0x55dedf:0x429,_0x3e3389:0x38a,_0x3b789c:0x509,_0x2bf5de:0x57f,_0x423a55:0x17f,_0xcef7f:0xcd,_0x4d1fba:0x22a,_0x5a629a:0xf2,_0x46a495:0x5e9,_0xd0602d:0x663,_0x1d3142:0x58b,_0x5e24e4:0x556,_0x18d1e2:0x4b8,_0x2936df:0x515,_0x54f9f8:0x96,_0x4b7d3d:0x10c,_0x190fbd:0x47,_0x1af303:0x119,_0x58ab7b:0xce,_0x1f3dd4:0x5d3,_0x4b5742:0x4e4,_0x24d751:0x570,_0xb1afdc:0x46c,_0x25ffaf:0xf2,_0x65750:0x175,_0x157aae:0x18b,_0x32bb26:0xb8,_0x3f32c2:0xc1,_0x5a3794:0x7f,_0x1f1cab:0xd9,_0x23fef3:0xb3,_0x345750:0x41d,_0x578ef2:0x517,_0x503ba0:0x5a6,_0x322ab4:0x611,_0x1a28bf:0xdb,_0x57243b:0x17d,_0x206c36:0x179,_0x572a7b:0x51c,_0x1689f1:0xc1,_0x4a06b8:0x69,_0x35009e:0x167,_0xa0e122:0x8d,_0xc2760:0x542,_0x507596:0x4e4,_0x13684d:0x59a,_0x72eac3:0x453},_0x50a19a={_0x40240d:0xa1},_0x2b6d38={_0x2ce90:0x7aa,_0x1722a7:0x13e};function _0x262eb0(_0x3aa483,_0x17d6f7,_0x46d662,_0x4c471c){return _0x3a2825(_0x46d662,_0x3aa483-_0x2b6d38._0x2ce90,_0x46d662-0xda,_0x4c471c-_0x2b6d38._0x1722a7);}const _0x341a0b=[],_0x161f25=_0x3e1c77[_0x32b793(-_0x2f9c50._0x48060f,-_0x2f9c50._0x17c932,-0x8b,_0x2f9c50._0x142a4)]??[];let _0x102bfc=![];for(const _0xe11442 of _0x161f25){if(_0xe11442[_0x262eb0(0x462,_0x2f9c50._0x46c9f8,0x4f6,0x4f7)]===_0x32b793(-0x5f,-_0x2f9c50._0x4c91ff,-_0x2f9c50._0x2fea93,_0x2f9c50._0x3c9ea8)){_0x102bfc=!![];isUserVisibleThinking(_0x38c555)&&_0x341a0b[_0x32b793(-0x17f,-_0x2f9c50._0x19ccd2,-_0x2f9c50._0x5bbea1,-_0x2f9c50._0x38b7f5)]({'type':_0x262eb0(_0x2f9c50._0xf8f7ce,0x517,0x4d9,0x5eb),'thinking':_0xe11442['thinking'],'signature':_0xe11442['signature']});continue;}if(_0xe11442[_0x262eb0(0x462,_0x2f9c50._0x4b9378,0x4a9,0x517)]==='redacted_thinking'){_0x102bfc=!![];isUserVisibleThinking(_0x38c555)&&_0x341a0b[_0x262eb0(0x4da,_0x2f9c50._0xef2410,_0x2f9c50._0x46b7c8,_0x2f9c50._0x531df0)]({'type':'anthropic_redacted_thinking','data':_0xe11442[_0x262eb0(_0x2f9c50._0x41dbee,_0x2f9c50._0x31e6f9,0x4ec,_0x2f9c50._0x438d7f)]});continue;}if(_0xe11442[_0x262eb0(_0x2f9c50._0x48ae6a,_0x2f9c50._0x55dedf,_0x2f9c50._0x3e3389,0x534)]==='text'){_0xe11442[_0x262eb0(0x515,0x5a1,0x59e,0x509)][_0x262eb0(_0x2f9c50._0x3b789c,0x472,0x5a3,_0x2f9c50._0x2bf5de)]>0x0&&_0x341a0b[_0x32b793(-_0x2f9c50._0x423a55,-_0x2f9c50._0xcef7f,-_0x2f9c50._0x4d1fba,-0x114)](structuredClone(_0xe11442));continue;}_0x341a0b[_0x32b793(-0x17f,-0x222,-_0x2f9c50._0x5a629a,-0x1c1)](structuredClone(_0xe11442));}function _0x32b793(_0x359b3c,_0xd1a6f9,_0x3bbb1d,_0x6f8ca){return _0x3a2825(_0x3bbb1d,_0x359b3c-0x151,_0x3bbb1d-_0x50a19a._0x40240d,_0x6f8ca-0x34);}return{'id':_0x3e1c77['id']??_0x262eb0(0x609,0x6b9,0x593,0x5a9)+Date['now'](),'content':_0x341a0b,'stopReason':_0x341a0b[_0x262eb0(_0x2f9c50._0x46a495,_0x2f9c50._0xd0602d,0x670,_0x2f9c50._0x1d3142)](_0x2db739=>_0x2db739['type']===_0x262eb0(0x556,0x5cd,0x563,0x48e))?_0x262eb0(_0x2f9c50._0x5e24e4,0x4c4,_0x2f9c50._0x18d1e2,_0x2f9c50._0x2936df):_0x3e1c77[_0x32b793(-0x6d,0x34,-_0x2f9c50._0x54f9f8,-_0x2f9c50._0x4b7d3d)]==='tool_use'?_0x32b793(-0x103,-_0x2f9c50._0x190fbd,-_0x2f9c50._0x1af303,-_0x2f9c50._0x58ab7b):_0x262eb0(_0x2f9c50._0x1f3dd4,0x627,0x598,0x56e),'usage':{'inputTokens':(_0x3e1c77[_0x262eb0(_0x2f9c50._0x4b5742,_0x2f9c50._0x24d751,0x566,_0x2f9c50._0xb1afdc)]?.[_0x32b793(-0x94,-_0x2f9c50._0x25ffaf,0x19,-0x106)]??0x0)+(_0x3e1c77[_0x32b793(-_0x2f9c50._0x65750,-_0x2f9c50._0x157aae,-_0x2f9c50._0x32bb26,-0x1e4)]?.[_0x32b793(-_0x2f9c50._0x3f32c2,-_0x2f9c50._0x5a3794,-_0x2f9c50._0x1f1cab,-_0x2f9c50._0x23fef3)]??0x0)+(_0x3e1c77[_0x262eb0(_0x2f9c50._0x4b5742,_0x2f9c50._0x345750,_0x2f9c50._0x578ef2,0x5a0)]?.[_0x262eb0(_0x2f9c50._0x503ba0,_0x2f9c50._0x322ab4,0x5a8,0x505)]??0x0),'outputTokens':_0x3e1c77[_0x262eb0(0x4e4,0x4de,0x41c,0x55e)]?.['output_tokens']??0x0,..._0x3e1c77[_0x32b793(-0x175,-_0x2f9c50._0x1a28bf,-0x18c,-0x127)]?.[_0x32b793(-0xc1,-_0x2f9c50._0x57243b,-0x158,-_0x2f9c50._0x206c36)]?{'cacheReadInputTokens':_0x3e1c77[_0x262eb0(_0x2f9c50._0x4b5742,0x599,_0x2f9c50._0x572a7b,0x461)][_0x32b793(-_0x2f9c50._0x1689f1,-_0x2f9c50._0x4a06b8,-_0x2f9c50._0x35009e,-_0x2f9c50._0xa0e122)]}:{},..._0x3e1c77['usage']?.[_0x262eb0(0x5a6,_0x2f9c50._0x322ab4,0x57a,_0x2f9c50._0xc2760)]?{'cacheCreationInputTokens':_0x3e1c77[_0x262eb0(_0x2f9c50._0x507596,_0x2f9c50._0x13684d,0x42f,_0x2f9c50._0x72eac3)][_0x32b793(-0xb3,-0x1d,-0x152,0x0)]}:{}},..._0x102bfc?{'providerState':{'anthropicAssistantContent':structuredClone(_0x161f25)}}:{}};}var AnthropicMessagesStreamParser=class{[_0x3a2825(-0x2f0,-0x25c,-0x308,-0x2c2)]=new Map();[_0x40b3f8(-0x3,0x2a,-0x93,-0x38)]=0x0;[_0x3a2825(-0x16a,-0x1e0,-0x191,-0x157)]=0x0;[_0x40b3f8(0x25,-0xda,0x38,-0xe)]=0x0;[_0x40b3f8(-0xf,-0x56,-0xef,-0xe3)]=_0x3a2825(-0xe1,-0x1a1,-0x206,-0x265)+Date['now']();[_0x3a2825(-0x208,-0x1da,-0x1f9,-0x1fd)]=0x0;[_0x3a2825(-0x2be,-0x258,-0x328,-0x228)];['stopReason']='end_turn';constructor(_0x1614e7){const _0x1b7b9e={_0x24ef95:0x92},_0x28bc32={_0x136a6f:0x22d,_0x212acc:0x128};function _0xef5deb(_0x4bc1db,_0x4e5ffc,_0x603755,_0x129482){return _0x3a2825(_0x129482,_0x603755-_0x28bc32._0x136a6f,_0x603755-0x179,_0x129482-_0x28bc32._0x212acc);}this[_0xef5deb(-0xbd,_0x1b7b9e._0x24ef95,-0x2b,-0xf7)]=_0x1614e7;}[_0x3a2825(-0x305,-0x2eb,-0x260,-0x2cd)](_0x1f12df){const _0x5aa196={_0x1653e6:0xd4,_0x122d9c:0xa3,_0x1d00d2:0x1e,_0x53ae09:0xb4,_0x31875d:0x126,_0x5a9abf:0x9a,_0x1e4ec3:0xf4,_0xa2d9e7:0x17,_0x47843f:0xd7,_0x5d1f36:0xa,_0x8f1de9:0x98,_0x8e91eb:0x153,_0x2d28a0:0x1b3,_0x41bbfb:0x15d,_0x488d3b:0x1a7,_0x2cd198:0x22f,_0x22752c:0xb4,_0x23045b:0x170,_0x596722:0x95,_0x1da40e:0xcc,_0x31460d:0xb8,_0x5548c3:0x2d,_0x193b17:0xc,_0x390286:0x146,_0x5416f2:0x115,_0x909a73:0x12,_0x1afffa:0x46,_0x5e6583:0x13d,_0x4c2d07:0x21c,_0x1bdaf9:0x1a6,_0x2b36a4:0x270,_0x3dd468:0x17b,_0xbd32ad:0x163,_0x4f01e8:0x21c,_0x208902:0x19d,_0x2f1e2c:0x199,_0x5a4702:0x17f,_0x5b841e:0x12a,_0x3716b8:0x1c1,_0x20913e:0xc9,_0x164ac7:0x72,_0x45a3bc:0x18b,_0x203025:0xe4,_0x4e345e:0x3c,_0x1c9bca:0x7c,_0xd9f570:0xef,_0x2e069e:0x0,_0x25037f:0xdb,_0x33584a:0x6b,_0x2e2071:0x127,_0x25529b:0xeb,_0x2bb613:0x57,_0x2999f2:0x138,_0x1577ef:0x1ac,_0x2366b8:0x101,_0x42c32d:0x126,_0x37cd6b:0x40,_0x15c24d:0x45,_0x2f9cb9:0x1c4,_0x13da20:0x95,_0x471e68:0x76,_0x38b629:0xf,_0x1f6a55:0xca,_0x33fdf7:0xc0,_0x266fba:0x20d,_0x3ef5f6:0xf7,_0x2054cc:0x113,_0x52fa89:0x1d3,_0x205123:0x198,_0x59a3a8:0x4d,_0x4542df:0x3c,_0x5d7ded:0xed,_0x194d3b:0xe5,_0x43c024:0x1ea,_0x4f8318:0xa2,_0x36787f:0x217,_0x55c351:0x1eb,_0x33f15c:0x174,_0x24014f:0x20,_0x504609:0xb3,_0x411c03:0x170,_0x5b7ce1:0x16e,_0x1315ff:0x1f2,_0x26166f:0xc,_0x21e8b0:0x6d,_0x51a381:0xcb,_0x310822:0x6c,_0xf6929:0x155,_0x49793b:0x13c,_0x5849cf:0xb9,_0x31ac1b:0xe9,_0x5d1fa9:0xef,_0x4a511b:0xf,_0x42dd45:0xcd,_0x1e58af:0x11a,_0x13dbea:0x140,_0x3957ad:0x11,_0x545178:0x3b,_0x390abb:0x60,_0x486fd4:0x171,_0x254787:0x18e,_0x5ec80d:0x1ad,_0x119872:0xee,_0x3f5c84:0x56,_0x2dfa11:0x3d,_0x107ce5:0x19e,_0x390f0e:0xee,_0x416381:0x14c,_0x564f90:0x219,_0x28e384:0x157,_0x457078:0xa4,_0x2dc54a:0x158,_0xcbe000:0x11d,_0x52e423:0x6d,_0x29a745:0x12c,_0x242490:0x121,_0x49de58:0xae,_0x404a18:0x3f,_0x56ddba:0xde,_0x3ef403:0x231,_0x22f75c:0x5b,_0x22e971:0x25e,_0x46c505:0x16c,_0x7a5301:0xd,_0x3a253f:0x65,_0x4273cc:0x9d,_0x54c5d2:0x23b,_0x11d379:0xda,_0x59b862:0x218,_0x2869c2:0x1d3,_0x314ea1:0x1f4,_0x419d80:0x10a,_0x3c37b6:0x201,_0x29e259:0xf3,_0x16a0fb:0xb9,_0x4003d0:0x10f,_0x574054:0xf1,_0x4155f4:0x75,_0x338a43:0x46,_0xd71dcb:0x8c,_0x290b84:0x93,_0x12733a:0xc3,_0x30e68d:0x2a,_0x209a5c:0x7d,_0x410013:0x179,_0x499ebb:0x1a2,_0x3822f7:0x1f6,_0x17fe44:0x7d,_0x7fa8f1:0xe2,_0x409f70:0x1bf,_0x2d3bd7:0x15c,_0x443d14:0x135,_0x3a65ec:0xff,_0x5f5ce2:0xd0,_0x441891:0x14f,_0x5bc29e:0x14a,_0x2fc87a:0x13e,_0x399276:0x116,_0x2f437d:0x239,_0xc65c46:0x18d,_0xee089:0xc0,_0x4996fd:0x168,_0x4e7e56:0x18d,_0x471cc0:0x120,_0x2901f3:0x124,_0x2d722c:0x12c,_0x33a949:0x1ec,_0x191acf:0x127,_0x55ad85:0x70,_0x5124a9:0xe6,_0x1e0992:0x30,_0x145a10:0x1ae,_0x2fa852:0x231,_0x4cd0c2:0x76,_0x5a3a2c:0x1a9,_0x33e042:0x277,_0x3aee9:0x166,_0x528138:0x1e3,_0xaa8bec:0x7a,_0x34b5e1:0x7d,_0x27aea9:0xe,_0x11d291:0x5f,_0x3591b1:0x160,_0x5de9d4:0x1d0,_0xa6620b:0x1ad,_0x109258:0x279,_0x45c13d:0xd3,_0x1a481d:0x5,_0x30460a:0x38,_0x245ae7:0xc2,_0x3e4b0b:0x9c,_0x37b9b8:0xdf,_0x41b012:0x82,_0x57f287:0x83,_0x4629c9:0x6a},_0x53f22a={_0x750ee0:0x165},_0x508e8c=_0x1f12df[_0x2e510d(-_0x5aa196._0x1653e6,-_0x5aa196._0x122d9c,-0xca,-_0x5aa196._0x1d00d2)]('\x0a'),_0x5afb44=_0x508e8c[_0x2e510d(-0x98,-_0x5aa196._0x53ae09,0xaa,-0x4)](_0x3434ff=>_0x3434ff[_0x426e85(0xe0,0xf5,0x17a,0x1be)](_0x426e85(0x32,0x100,0x39,0x81)))?.[_0x426e85(_0x5aa196._0x31875d,_0x5aa196._0x5a9abf,0xf0,0x1bc)](0x6)[_0x2e510d(-0x122,0x7a,-_0x5aa196._0x1e4ec3,-0x5a)](),_0x3529bb=_0x508e8c[_0x2e510d(0x36,-0xa,0x14,-_0x5aa196._0xa2d9e7)](_0x4e7a23=>_0x4e7a23[_0x426e85(0x245,0x100,0x17a,0x154)](_0x2e510d(0x4,-0xc3,-0xa3,-0x94)))[_0x426e85(0x148,0x130,_0x5aa196._0x47843f,_0x5aa196._0x5d1f36)](_0x1aac64=>_0x1aac64[_0x2e510d(-0xab,-0x154,-0xc7,-0xe3)](0x5)[_0x426e85(0xab,0x17f,0x182,0x1d4)]())[_0x2e510d(-0x16c,-0x1c7,-_0x5aa196._0x8f1de9,-_0x5aa196._0x8e91eb)]('\x0a')['trim']();if(_0x3529bb[_0x2e510d(-_0x5aa196._0x2d28a0,-0x183,-0xb6,-0xf1)]===0x0||_0x3529bb===_0x426e85(0x1af,_0x5aa196._0x41bbfb,_0x5aa196._0x488d3b,_0x5aa196._0x2cd198))return[];function _0x426e85(_0x399bda,_0x360d0a,_0x33f0c6,_0x79b632){return _0x40b3f8(_0x399bda-0x197,_0x79b632,_0x33f0c6-0x8a,_0x33f0c6-0x19b);}function _0x2e510d(_0x2953e1,_0x4dadc4,_0x16f83a,_0x5a04b2){return _0x40b3f8(_0x2953e1-0x16d,_0x2953e1,_0x16f83a-_0x53f22a._0x750ee0,_0x5a04b2- -0x38);}const _0x2f02c0=JSON['parse'](_0x3529bb);switch(_0x5afb44){case _0x426e85(_0x5aa196._0x22752c,_0x5aa196._0x23045b,0x117,_0x5aa196._0x596722):{const _0x28cf6f=_0x2f02c0[_0x2e510d(-0xfc,-0x3a,-_0x5aa196._0x1da40e,-0x3d)];this['messageId']=_0x28cf6f?.['id']??this[_0x426e85(0x105,0x181,_0x5aa196._0x31460d,0x5f)],this[_0x2e510d(-_0x5aa196._0x5548c3,_0x5aa196._0x193b17,-0x88,-0x46)]=_0x28cf6f?.[_0x2e510d(-_0x5aa196._0x390286,-0x106,-0x8e,-0x116)]?.['input_tokens']??this[_0x2e510d(-_0x5aa196._0x5416f2,-0x95,-_0x5aa196._0x909a73,-_0x5aa196._0x1afffa)],this[_0x426e85(0x1dd,0x10d,0x1a3,_0x5aa196._0x5e6583)]=_0x28cf6f?.['usage']?.[_0x426e85(0x19d,0x108,0x171,_0x5aa196._0x4c2d07)]??this[_0x426e85(0x10e,_0x5aa196._0x1bdaf9,0x1a3,_0x5aa196._0x2b36a4)],this[_0x426e85(0xba,_0x5aa196._0x3dd468,_0x5aa196._0xbd32ad,_0x5aa196._0x4f01e8)]=_0x28cf6f?.['usage']?.[_0x426e85(_0x5aa196._0x208902,_0x5aa196._0x2f1e2c,_0x5aa196._0x5a4702,_0x5aa196._0x5b841e)]??this[_0x426e85(_0x5aa196._0x3716b8,0x143,0x163,0x216)];break;}case _0x2e510d(0x2a,-_0x5aa196._0x20913e,-0xc3,-_0x5aa196._0x164ac7):{const _0x26ad1f=typeof _0x2f02c0[_0x426e85(_0x5aa196._0x45a3bc,0x17f,_0x5aa196._0x203025,_0x5aa196._0x4e345e)]===_0x2e510d(-0xed,-0xd,-0x18c,-0xe0)?_0x2f02c0[_0x2e510d(-_0x5aa196._0x1c9bca,-0x80,-0x194,-_0x5aa196._0xd9f570)]:0x0,_0x268ab1=_0x2f02c0[_0x426e85(0x56,_0x5aa196._0x2e069e,0x7e,0x52)];if(_0x268ab1?.[_0x426e85(0x90,-0x5,0x3b,_0x5aa196._0x25037f)]==='tool_use'&&_0x268ab1['id']&&_0x268ab1[_0x2e510d(-0x161,-0x127,-0x42,-0xd2)])return this[_0x426e85(_0x5aa196._0x33584a,0x1f9,_0x5aa196._0x2e2071,0x16e)][_0x2e510d(-_0x5aa196._0x25529b,-0xd6,0x33,-0x65)](_0x26ad1f,{'id':_0x268ab1['id'],'index':_0x26ad1f,'inputJson':JSON['stringify'](_0x268ab1['input']??{}),'kind':_0x426e85(_0x5aa196._0x2bb613,_0x5aa196._0x1653e6,0x12f,_0x5aa196._0x2999f2),'name':_0x268ab1[_0x426e85(_0x5aa196._0x1577ef,0x141,_0x5aa196._0x2366b8,_0x5aa196._0x42c32d)]}),[{'type':_0x426e85(0x96,-_0x5aa196._0x37cd6b,0x41,_0x5aa196._0x15c24d),'id':_0x268ab1['id'],'index':_0x26ad1f,'name':_0x268ab1[_0x426e85(0x103,0x7f,_0x5aa196._0x2366b8,_0x5aa196._0x2f9cb9)]}];if(_0x268ab1?.[_0x426e85(0xae,-_0x5aa196._0x13da20,0x3b,_0x5aa196._0x471e68)]===_0x2e510d(0xf,-_0x5aa196._0x38b629,0x8,0x0)){this[_0x426e85(0xba,_0x5aa196._0x1f6a55,0x127,_0x5aa196._0x33fdf7)][_0x426e85(_0x5aa196._0x266fba,0x167,0x16e,_0x5aa196._0x3ef5f6)](_0x26ad1f,{'index':_0x26ad1f,'kind':_0x426e85(0x16b,_0x5aa196._0x2054cc,_0x5aa196._0x52fa89,0x214),'signature':typeof _0x268ab1['signature']===_0x426e85(0x143,_0x5aa196._0x205123,0x1a2,0x212)?_0x268ab1['signature']:'','thinking':typeof _0x268ab1[_0x2e510d(-0x34,-_0x5aa196._0x1e4ec3,-_0x5aa196._0x59a3a8,-0xe5)]==='string'?_0x268ab1[_0x2e510d(-_0x5aa196._0x4542df,-_0x5aa196._0x5d7ded,-0x55,-_0x5aa196._0x194d3b)]:typeof _0x268ab1['thinking']==='string'?String(_0x268ab1[_0x426e85(_0x5aa196._0x43c024,0x24c,0x1d3,0x261)]):''});break;}if(_0x268ab1?.[_0x426e85(_0x5aa196._0x4f8318,0x91,0x3b,0x97)]===_0x2e510d(-_0x5aa196._0x36787f,-_0x5aa196._0x55c351,-_0x5aa196._0x33f15c,-0x19f)){this[_0x2e510d(-_0x5aa196._0x24014f,-0x91,-_0x5aa196._0x504609,-0xac)][_0x426e85(0x194,_0x5aa196._0x411c03,_0x5aa196._0x5b7ce1,_0x5aa196._0x1315ff)](_0x26ad1f,{'index':_0x26ad1f,'kind':'redacted_thinking','data':typeof _0x268ab1[_0x426e85(_0x5aa196._0x26166f,0xc,_0x5aa196._0x21e8b0,_0x5aa196._0x51a381)]===_0x2e510d(0x77,0xa1,-0xa1,-0x31)?String(_0x268ab1['data']):''});break;}this[_0x426e85(0x179,0x5c,0x127,_0x5aa196._0x310822)][_0x426e85(0xf2,_0x5aa196._0xf6929,_0x5aa196._0x5b7ce1,_0x5aa196._0x49793b)](_0x26ad1f,{'index':_0x26ad1f,'kind':_0x2e510d(-0x106,-0xc3,-0x49,-_0x5aa196._0x194d3b),'text':_0x268ab1?.['text']??''});break;}case'content_block_delta':{const _0x43efde=typeof _0x2f02c0['index']==='number'?_0x2f02c0[_0x2e510d(-_0x5aa196._0x5849cf,-0x7a,-_0x5aa196._0x31ac1b,-_0x5aa196._0x5d1fa9)]:0x0,_0xbce900=this[_0x2e510d(_0x5aa196._0x4a511b,-_0x5aa196._0x42dd45,-0x2b,-0xac)][_0x426e85(0x9c,0x128,0x13b,_0x5aa196._0x1e58af)](_0x43efde),_0x3808c8=_0x2f02c0[_0x2e510d(0x1c,-_0x5aa196._0x13dbea,0x56,-0x6b)];if(!_0xbce900||!_0x3808c8?.[_0x426e85(0x42,_0x5aa196._0x3957ad,_0x5aa196._0x545178,0x19)])break;if(_0x3808c8['type']===_0x2e510d(-0x5a,-0x133,-0x49,-_0x5aa196._0x390abb)&&_0xbce900[_0x2e510d(-0xc6,-0x20a,-_0x5aa196._0x486fd4,-_0x5aa196._0x254787)]===_0x426e85(_0x5aa196._0x5ec80d,0x192,_0x5aa196._0x119872,0x195)&&typeof _0x3808c8[_0x2e510d(-0x18c,-0x1ae,-0x111,-0xe5)]==='string')return _0xbce900['text']+=_0x3808c8['text'],[{'type':_0x426e85(-0x16,-_0x5aa196._0x3f5c84,_0x5aa196._0x2dfa11,0xb9),'index':_0x43efde,'text':_0x3808c8[_0x426e85(0xdd,_0x5aa196._0x107ce5,_0x5aa196._0x390f0e,0x111)]}];if(_0x3808c8['type']===_0x2e510d(-_0x5aa196._0x416381,-0x199,-0xfe,-_0x5aa196._0x45a3bc)&&_0xbce900[_0x2e510d(-0x244,-_0x5aa196._0x564f90,-0x23e,-0x18e)]===_0x2e510d(-_0x5aa196._0x28e384,0x2e,-0xab,-_0x5aa196._0x457078)&&typeof _0x3808c8[_0x426e85(0xff,_0x5aa196._0x2dc54a,_0x5aa196._0xcbe000,0x16e)]==='string')return _0xbce900[_0x2e510d(-_0x5aa196._0x52e423,-0x131,-_0x5aa196._0x457078,-0xae)]==='{}'&&(_0xbce900[_0x2e510d(-_0x5aa196._0x29a745,-0xc9,-_0x5aa196._0x242490,-_0x5aa196._0x49de58)]=''),_0xbce900[_0x2e510d(-0x16f,-0x16c,-_0x5aa196._0x404a18,-_0x5aa196._0x49de58)]+=_0x3808c8[_0x426e85(_0x5aa196._0x56ddba,0x145,0x11d,_0x5aa196._0x5416f2)],[{'type':_0x2e510d(-0x1ec,-_0x5aa196._0x3ef403,-0x245,-0x192),'id':_0xbce900['id'],'index':_0x43efde,'inputDelta':_0x3808c8[_0x2e510d(_0x5aa196._0x1d00d2,-0xd2,-_0x5aa196._0x22f75c,-0xb6)]}];if(_0x3808c8[_0x2e510d(-_0x5aa196._0x22e971,-_0x5aa196._0x2366b8,-_0x5aa196._0x46c505,-0x198)]===_0x426e85(0x12a,-_0x5aa196._0x7a5301,_0x5aa196._0x3a253f,_0x5aa196._0x4273cc)&&_0xbce900[_0x2e510d(-_0x5aa196._0x54c5d2,-0x153,-_0x5aa196._0x11d379,-0x18e)]==='thinking'){const _0x51e9b5=typeof _0x3808c8[_0x426e85(0x298,_0x5aa196._0x59b862,_0x5aa196._0x2869c2,0x238)]==='string'?String(_0x3808c8[_0x426e85(_0x5aa196._0x314ea1,_0x5aa196._0x419d80,0x1d3,_0x5aa196._0x3c37b6)]):'';if(_0x51e9b5[_0x2e510d(-_0x5aa196._0x29e259,-_0x5aa196._0x16a0fb,-_0x5aa196._0x4003d0,-_0x5aa196._0x574054)]>0x0){_0xbce900[_0x2e510d(-0x1f,-_0x5aa196._0x4155f4,0x41,0x0)]+=_0x51e9b5;if(isUserVisibleThinking(this[_0x2e510d(-0x32,-0x12b,-0x6a,-0xa8)]))return[{'type':_0x426e85(_0x5aa196._0x208902,_0x5aa196._0x338a43,0xd8,_0x5aa196._0xd71dcb),'index':_0x43efde,'thinking':_0x51e9b5}];}}if(_0x3808c8['type']==='signature_delta'&&_0xbce900[_0x426e85(-0x86,0xac,0x45,-_0x5aa196._0x290b84)]===_0x2e510d(-0xc0,-_0x5aa196._0x12733a,_0x5aa196._0x30e68d,0x0)){const _0x35d8d1=typeof _0x3808c8[_0x426e85(0xe1,0x9d,_0x5aa196._0x209a5c,0x155)]===_0x426e85(_0x5aa196._0x410013,0x153,_0x5aa196._0x499ebb,_0x5aa196._0x3822f7)?String(_0x3808c8[_0x426e85(0x115,0x32,_0x5aa196._0x17fe44,0xa9)]):'';if(_0x35d8d1[_0x426e85(_0x5aa196._0x7fa8f1,0xdd,_0x5aa196._0x7fa8f1,0xe0)]>0x0){_0xbce900[_0x2e510d(-0x15a,-0x1ae,-_0x5aa196._0x409f70,-0x156)]=_0x35d8d1;if(isUserVisibleThinking(this['request']))return[{'type':_0x426e85(_0x5aa196._0x2d3bd7,_0x5aa196._0x443d14,0xed,_0x5aa196._0x3a65ec),'index':_0x43efde,'signature':_0x35d8d1}];}}break;}case _0x2e510d(0x64,_0x5aa196._0x37cd6b,-0x2d,-_0x5aa196._0x5548c3):{const _0x32a849=_0x2f02c0[_0x2e510d(-0x1,-0xe1,-_0x5aa196._0x5f5ce2,-0x6b)],_0x2ddc28=_0x2f02c0[_0x2e510d(-_0x5aa196._0x441891,-_0x5aa196._0x5bc29e,-_0x5aa196._0x2fc87a,-_0x5aa196._0x399276)];this[_0x426e85(_0x5aa196._0x2f437d,0xc1,_0x5aa196._0xc65c46,_0x5aa196._0xee089)]=_0x2ddc28?.[_0x426e85(0x1f7,0x221,_0x5aa196._0x107ce5,_0x5aa196._0x4996fd)]??this[_0x426e85(0x1d7,0x1d6,_0x5aa196._0x4e7e56,_0x5aa196._0x471cc0)],this[_0x426e85(0x270,_0x5aa196._0x2901f3,0x1a3,_0x5aa196._0x2d722c)]=_0x2ddc28?.['cache_read_input_tokens']??this[_0x426e85(0xe4,0x1c6,0x1a3,_0x5aa196._0x33a949)],this[_0x2e510d(-0x108,-0xec,-_0x5aa196._0x191acf,-_0x5aa196._0x55ad85)]=_0x2ddc28?.['cache_creation_input_tokens']??this[_0x2e510d(-_0x5aa196._0x5124a9,0x5f,_0x5aa196._0x1e0992,-_0x5aa196._0x55ad85)],this[_0x426e85(_0x5aa196._0x145a10,0xf1,0x1a9,_0x5aa196._0x2fa852)]=_0x2ddc28?.[_0x2e510d(_0x5aa196._0x4cd0c2,0xc7,-0x9d,-0x6)]??this[_0x426e85(0xfc,0x1ae,_0x5aa196._0x5a3a2c,_0x5aa196._0x33e042)],this[_0x426e85(0x1a8,0x107,_0x5aa196._0x3aee9,_0x5aa196._0x528138)]=_0x32a849?.[_0x2e510d(_0x5aa196._0xaa8bec,-_0x5aa196._0x310822,-_0x5aa196._0x34b5e1,-_0x5aa196._0x27aea9)]===_0x2e510d(0x16,-_0x5aa196._0x11d291,-_0x5aa196._0x3591b1,-0xa4)?_0x426e85(0x105,_0x5aa196._0x5de9d4,0x12f,_0x5aa196._0xa6620b):_0x426e85(0x200,_0x5aa196._0x109258,0x1ac,0x179);break;}case _0x426e85(0x49,_0x5aa196._0x45c13d,0xc2,_0x5aa196._0x1a481d):{const _0x201e0b=_0x2f02c0[_0x426e85(0xeb,_0x5aa196._0x30460a,_0x5aa196._0x245ae7,0x113)];throw new ProviderStreamEventError(_0x201e0b?.[_0x2e510d(-_0x5aa196._0x3e4b0b,-_0x5aa196._0x37b9b8,_0x5aa196._0x41b012,-0x3d)]??_0x426e85(_0x5aa196._0x57f287,0x121,_0x5aa196._0x4629c9,0x13d),{'code':_0x201e0b?.[_0x426e85(_0x5aa196._0x1f6a55,0x9a,0x3b,0xe2)],'retryable':!![]});}}return[];}['finish'](){const _0x4a89fe={_0x3dda92:0xa0,_0x5e1a11:0x3a7,_0x119068:0x379,_0x22aca2:0x317,_0x183da9:0x3c3,_0x483097:0x280,_0x146414:0x28a,_0x101230:0x29f,_0x4de1a1:0x403,_0x49e316:0x50,_0x2249cc:0x116,_0x178512:0x1d,_0x42d5ca:0x91,_0x52dfbd:0x59,_0x469056:0x2f,_0x30d43f:0x73,_0x35402d:0x4d,_0x5d36a9:0x62,_0x6d7349:0x1e,_0x339390:0x100,_0x2da1c1:0x2c3,_0x436a13:0x2e8,_0xff0459:0x2a3,_0x59b9ec:0x28d,_0xd32eba:0x2e9,_0x29805f:0x2be,_0x22fbb8:0x2ca,_0x5e483e:0x63,_0x459d1b:0x61,_0x2bd076:0x22e,_0x3b49c5:0x2a3,_0x13947a:0x113,_0x5525c4:0x9a,_0x4086dc:0xd5,_0x446b6f:0xc3,_0x44bc07:0x6c,_0x1c14ad:0x90,_0x25d2f8:0x4d,_0x87ed80:0x77,_0x3e50d0:0x315,_0x26f9a8:0x327,_0x504fde:0x43d,_0x292c9a:0x23a,_0x1fd5d1:0x37d,_0x4d796c:0x445,_0x30f772:0x399,_0x3de485:0x7c,_0x52713f:0x6d},_0x3f8704={_0x248b0b:0xb9},_0x2e67e6={_0x8d272d:0x106};function _0x6ce705(_0xd38d32,_0xfadb59,_0x1cb873,_0x30ab1b){return _0x40b3f8(_0xd38d32-0x137,_0xd38d32,_0x1cb873-0xcc,_0xfadb59-_0x2e67e6._0x8d272d);}const _0x537d43=Array[_0x6ce705(-0x2c,_0x4a89fe._0x3dda92,0x39,0x3b)](this[_0x596a2c(_0x4a89fe._0x5e1a11,_0x4a89fe._0x119068,_0x4a89fe._0x22aca2,_0x4a89fe._0x183da9)][_0x596a2c(0x1e0,0x2a7,_0x4a89fe._0x483097,_0x4a89fe._0x146414)]())[_0x596a2c(_0x4a89fe._0x101230,0x34d,0x35a,_0x4a89fe._0x4de1a1)]((_0x1ddd2d,_0x2dc281)=>_0x1ddd2d[_0x6ce705(0xaf,0x4f,0xdd,0x83)]-_0x2dc281[_0x6ce705(0xca,0x4f,0x64,-0x88)]),_0x12b931=[];for(const _0x42c806 of _0x537d43){if(_0x42c806[_0x6ce705(-0x33,-_0x4a89fe._0x49e316,-0x70,-_0x4a89fe._0x2249cc)]===_0x6ce705(-0x34,0x59,_0x4a89fe._0x178512,0xb0)){_0x42c806[_0x6ce705(_0x4a89fe._0x42d5ca,_0x4a89fe._0x52dfbd,-_0x4a89fe._0x469056,-_0x4a89fe._0x30d43f)][_0x6ce705(-0x38,_0x4a89fe._0x35402d,-0x3c,_0x4a89fe._0x5d36a9)]>0x0&&_0x12b931[_0x6ce705(0x16,_0x4a89fe._0x6d7349,0xe1,0xc8)]({'type':_0x6ce705(0x12d,_0x4a89fe._0x52dfbd,0xbd,_0x4a89fe._0x339390),'text':_0x42c806['text']});continue;}if(_0x42c806['kind']==='thinking'){_0x12b931[_0x596a2c(_0x4a89fe._0x2da1c1,_0x4a89fe._0x436a13,_0x4a89fe._0xff0459,_0x4a89fe._0x59b9ec)]({'type':'thinking','thinking':_0x42c806['thinking'],'signature':_0x42c806[_0x596a2c(0x245,_0x4a89fe._0xd32eba,0x26d,0x296)]});continue;}if(_0x42c806[_0x596a2c(_0x4a89fe._0x29805f,_0x4a89fe._0x22fbb8,0x235,0x1a8)]===_0x6ce705(_0x4a89fe._0x5e483e,-_0x4a89fe._0x459d1b,-0x79,0x7)){_0x12b931[_0x596a2c(0x214,_0x4a89fe._0x2bd076,_0x4a89fe._0x3b49c5,0x25d)]({'type':'redacted_thinking','data':_0x42c806['data']});continue;}_0x12b931['push']({'type':_0x6ce705(_0x4a89fe._0x13947a,_0x4a89fe._0x5525c4,_0x4a89fe._0x4086dc,_0x4a89fe._0x446b6f),'id':_0x42c806['id'],'name':_0x42c806[_0x6ce705(-0x3e,_0x4a89fe._0x44bc07,-0x65,0x23)],'input':parseToolInput(_0x42c806[_0x6ce705(-0x29,_0x4a89fe._0x1c14ad,0xaf,0x63)][_0x6ce705(0x115,_0x4a89fe._0x25d2f8,_0x4a89fe._0x469056,_0x4a89fe._0x87ed80)]>0x0?_0x42c806[_0x596a2c(0x2e4,0x28b,_0x4a89fe._0x3e50d0,0x320)]:'{}')});}function _0x596a2c(_0x3c7108,_0xbd11de,_0x48e1ab,_0x2b192a){return _0x40b3f8(_0x3c7108-_0x3f8704._0x248b0b,_0xbd11de,_0x48e1ab-0x3a,_0x48e1ab-0x38b);}return parseAnthropicResponse({'id':this['messageId'],'type':_0x596a2c(_0x4a89fe._0x26f9a8,0x40b,0x386,_0x4a89fe._0x504fde),'role':_0x596a2c(0x372,_0x4a89fe._0x292c9a,0x2c2,0x323),'content':_0x12b931,'stop_reason':this['stopReason'],'stop_sequence':null,'usage':{'input_tokens':this[_0x596a2c(0x443,0x30c,_0x4a89fe._0x1fd5d1,0x3ca)],'output_tokens':this[_0x596a2c(_0x4a89fe._0x2da1c1,_0x4a89fe._0x4d796c,_0x4a89fe._0x30f772,0x398)],'cache_read_input_tokens':this[_0x6ce705(_0x4a89fe._0x3de485,0x10e,_0x4a89fe._0x52713f,0x1de)],'cache_creation_input_tokens':this[_0x596a2c(0x27b,0x364,0x353,0x2ab)]}},this['request']);}};function createAnthropicSurfaces(){const _0x24a4f2={_0x517b23:0x138,_0x172269:0x142,_0x5ba153:0x63,_0x3ff795:0x54},_0x2088ea={_0x33d27f:0x2f8,_0x345f49:0x172},_0x3d25cf={_0x48bcc4:0x330,_0x54008f:0x1de};function _0x1284ed(_0x2f4bb9,_0x45c093,_0x54d81d,_0xcd1391){return _0x3a2825(_0x2f4bb9,_0x45c093-_0x3d25cf._0x48bcc4,_0x54d81d-0x1dd,_0xcd1391-_0x3d25cf._0x54008f);}function _0x333e67(_0x1b0c67,_0x263477,_0x1a8a3e,_0x500e86){return _0x3a2825(_0x1b0c67,_0x500e86-_0x2088ea._0x33d27f,_0x1a8a3e-0xeb,_0x500e86-_0x2088ea._0x345f49);}return[{'id':ANTHROPIC_MESSAGES_SURFACE,'transport':_0x333e67(_0x24a4f2._0x517b23,0xce,_0x24a4f2._0x172269,0x127),'createRequest'(_0x617f50){return createAnthropicRequest(_0x617f50,![]);},'parseResponse'(_0x3c62be,_0xa8f3a3){return parseAnthropicResponse(_0x3c62be,_0xa8f3a3);}},{'id':ANTHROPIC_MESSAGES_STREAM_SURFACE,'transport':_0x333e67(-0x7f,_0x24a4f2._0x5ba153,0x14,_0x24a4f2._0x3ff795),'createRequest'(_0x339c9c){return createAnthropicRequest(_0x339c9c,!![]);},'createStreamParser'(_0x2322de){return new AnthropicMessagesStreamParser(_0x2322de);}}];}var StaticModelSurfaceRouter=class{['completeSurface'];[_0x3a2825(-0x287,-0x1e2,-0x2b6,-0x19e)];constructor(_0x298138){const _0x8940e2={_0x126364:0x1f1,_0x3e7324:0x2d9,_0x2cde5a:0x28c},_0x5376b7={_0x431e7e:0x119};function _0x18cade(_0x406b50,_0x4520fd,_0x23937b,_0x11f11d){return _0x3a2825(_0x4520fd,_0x23937b-0xa3,_0x23937b-_0x5376b7._0x431e7e,_0x11f11d-0x176);}this[_0x18cade(-0x19d,-0x257,-_0x8940e2._0x126364,-0x1d4)]=_0x298138[_0x18cade(-0x1c6,-_0x8940e2._0x3e7324,-_0x8940e2._0x2cde5a,-0x2b8)];function _0x19bd0b(_0x231017,_0x27b8d5,_0x41f745,_0x2b0ac8){return _0x3a2825(_0x2b0ac8,_0x27b8d5-0x180,_0x41f745-0xc7,_0x2b0ac8-0x1a8);}this['streamSurface']=_0x298138['stream'];}[_0x3a2825(-0x1b9,-0x268,-0x319,-0x1ba)](_0x447517,_0x46dc6f){const _0x802303={_0x4792b1:0x2a,_0x1da0db:0x7,_0x51e532:0x90,_0x1f1bb2:0xde,_0x4abb8d:0x124},_0x1091b2={_0x45a40e:0x111},_0x2e9c74={_0x738edd:0xc0,_0x21aca6:0x13c};function _0x659f7a(_0x493d1d,_0x4d6bd0,_0x9c0221,_0x5eb003){return _0x40b3f8(_0x493d1d-0x9a,_0x9c0221,_0x9c0221-_0x2e9c74._0x738edd,_0x493d1d-_0x2e9c74._0x21aca6);}function _0x3efbb6(_0x588841,_0x58c745,_0x465b85,_0x1b3c5e){return _0x3a2825(_0x58c745,_0x465b85-0x2f3,_0x465b85-0x128,_0x1b3c5e-_0x1091b2._0x45a40e);}return _0x46dc6f['mode']===_0x3efbb6(0xf,_0x802303._0x4792b1,-_0x802303._0x1da0db,-0x61)?this[_0x659f7a(0x142,0x1fb,0x1b1,0x144)]:this[_0x659f7a(_0x802303._0x51e532,_0x802303._0x1f1bb2,_0x802303._0x4abb8d,0x7c)];}};function trimTrailingSlashes(_0x15d11b){const _0x4b896a={_0x19c644:0x79,_0x1f6e78:0x55},_0x1c6f40={_0x347258:0x25a,_0x34b145:0xb2,_0x457914:0x1ab};function _0x3d1900(_0x1c9720,_0x5212ec,_0x5c52d4,_0x24e1f7){return _0x3a2825(_0x24e1f7,_0x5212ec-_0x1c6f40._0x347258,_0x5c52d4-_0x1c6f40._0x34b145,_0x24e1f7-_0x1c6f40._0x457914);}return _0x15d11b[_0x3d1900(-_0x4b896a._0x19c644,0x2c,-_0x4b896a._0x1f6e78,-0x14)](/\/+$/,'');}function resolveApiCredential(_0x299c11,_0x276d49){const _0x130d34={_0x315ace:0xc8,_0xa5c3f9:0xa,_0x10ebb5:0x7c,_0xb5dce4:0x9b},_0x2cb48b={_0x3d464b:0xe5};if(_0x276d49?.[_0x529768(-0x8e,0xa,-0xa6,_0x130d34._0x315ace)])return _0x276d49[_0x529768(0xc0,_0x130d34._0xa5c3f9,-_0x130d34._0x10ebb5,_0x130d34._0xb5dce4)];function _0x1e484b(_0x5cea3b,_0x2e7919,_0x16f971,_0x35ced6){return _0x40b3f8(_0x5cea3b-0x4e,_0x35ced6,_0x16f971-0x1bb,_0x2e7919-0x69);}function _0x529768(_0x1563e1,_0x251a4f,_0x32046d,_0x42a1f4){return _0x40b3f8(_0x1563e1-_0x2cb48b._0x3d464b,_0x1563e1,_0x32046d-0x185,_0x251a4f-0x10e);}if(!_0x299c11)return void 0x0;return{'kind':_0x529768(0x68,-0x24,-0x23,0xb4),'value':_0x299c11};}function resolveSessionBaseUrl(_0x16560a,_0xfb800){const _0x252e13={_0x1a1fcc:0x1f1,_0x2fefca:0x1a8,_0x4586f1:0xb2},_0x297705={_0x243818:0x19d,_0x1946a1:0x13a};function _0x4d491e(_0x403067,_0x148b17,_0x3886a6,_0x3b55c2){return _0x3a2825(_0x148b17,_0x403067-_0x297705._0x243818,_0x3886a6-_0x297705._0x1946a1,_0x3b55c2-0x15);}return trimTrailingSlashes(_0xfb800?.[_0x4d491e(-0x15b,-_0x252e13._0x1a1fcc,-_0x252e13._0x2fefca,-_0x252e13._0x4586f1)]?.['api']??_0x16560a);}function toErrorMessage(_0x47b60d){const _0x5b7ecf={_0x49d35c:0x194,_0x32c48f:0x217},_0x1a0af5={_0x1cc6b6:0x17b,_0x1203cf:0x378},_0xa32e1f={_0x4e7b8f:0x8a,_0xf1d017:0x1a3,_0x3de23b:0xfe};function _0x505de8(_0x253442,_0x143030,_0x5d6efe,_0x5d320a){return _0x3a2825(_0x143030,_0x5d6efe-_0xa32e1f._0x4e7b8f,_0x5d6efe-_0xa32e1f._0xf1d017,_0x5d320a-_0xa32e1f._0x3de23b);}if(_0x47b60d instanceof Error&&_0x47b60d[_0x505de8(-0x102,-0x1e6,-0x163,-0x14e)][_0x505de8(-0x1dc,-_0x5b7ecf._0x49d35c,-_0x5b7ecf._0x32c48f,-0x2d3)]>0x0)return _0x47b60d['message'];function _0x3da24b(_0xab1694,_0x43fb09,_0x5042cc,_0x1bdacb){return _0x40b3f8(_0xab1694-0x166,_0x5042cc,_0x5042cc-_0x1a0af5._0x1cc6b6,_0x1bdacb-_0x1a0af5._0x1203cf);}return'WebSocket\x20request\x20failed';}function createDefaultWebSocketFactory(){const _0x18da62={_0x37cd91:0x217,_0x5d9848:0xea,_0x2d3d4c:0x1a1};return({headers:_0x3853fd,url:_0x94f78f})=>{const _0x1f9f27=globalThis[_0x23241f(-_0x18da62._0x37cd91,-_0x18da62._0x5d9848,-0x194,-_0x18da62._0x2d3d4c)];function _0x23241f(_0x4af517,_0x1b866b,_0x58478b,_0x343a57){return _0x4eeb(_0x58478b- -0x389,_0x343a57);}return new _0x1f9f27(_0x94f78f,{'headers':_0x3853fd,'protocols':[]});};}async function*iterateSseEvents(_0x5e8259,_0x2441bb){const _0x1543e3={_0x45cc10:0x4c7,_0x505536:0x525,_0x602920:0x4b5,_0x38e88e:0x4ac,_0x13a9f7:0x428,_0x8875d5:0x209,_0xa2d16c:0x249,_0x3257ed:0x295,_0x1ca192:0x248,_0x10cc9e:0x5ae,_0x31ffd4:0x12a,_0x1a26ca:0x1de,_0x5321e0:0x1f9,_0x323535:0x1e2,_0x2f78b9:0x1a5,_0x71c848:0x1de,_0x164e8f:0x4a9,_0x3c1874:0x223},_0x3dc842={_0x488fb3:0x43c,_0x3d1931:0x494,_0x161229:0x419},_0x46dbf7={_0xad4c6e:0xe5,_0x4a92ad:0x70,_0x42b040:0x11e},_0x54b8ab={_0x18d91e:0x764,_0xb9193d:0x8f};function _0x56c6d2(_0x40faf1,_0x52ee59,_0x143b14,_0x1c67f8){return _0x3a2825(_0x143b14,_0x52ee59-_0x54b8ab._0x18d91e,_0x143b14-_0x54b8ab._0xb9193d,_0x1c67f8-0xea);}function _0xcfa2f5(_0x434c80,_0x46468e,_0x580003,_0x5e4129){return _0x3a2825(_0x434c80,_0x5e4129-0x471,_0x580003-0xb3,_0x5e4129-0x10c);}const _0x574d99=_0x5e8259['body']?.[_0x56c6d2(0x500,_0x1543e3._0x45cc10,_0x1543e3._0x505536,_0x1543e3._0x602920)]();if(!_0x574d99)return;const _0x4624cc=new TextDecoder(_0x56c6d2(_0x1543e3._0x38e88e,_0x1543e3._0x13a9f7,0x454,0x410));let _0x543eb='';const _0x397084=addAbortListener(_0x2441bb,()=>{const _0x53d6ee={_0x4cc436:0x12d,_0x4c7bd4:0x44,_0x104290:0xeb};function _0x297d37(_0x205dca,_0xc742bb,_0x5dfa4e,_0x5cc747){return _0x56c6d2(_0x205dca-_0x53d6ee._0x4cc436,_0xc742bb- -_0x53d6ee._0x4c7bd4,_0x205dca,_0x5cc747-_0x53d6ee._0x104290);}function _0x647790(_0x36e191,_0x458b67,_0x23938b,_0x5ae570){return _0x56c6d2(_0x36e191-_0x46dbf7._0xad4c6e,_0x458b67- -_0x46dbf7._0x4a92ad,_0x23938b,_0x5ae570-_0x46dbf7._0x42b040);}void _0x574d99[_0x297d37(_0x3dc842._0x488fb3,0x4d7,_0x3dc842._0x3d1931,0x5ab)](toAbortError(_0x2441bb?.[_0x297d37(_0x3dc842._0x161229,0x437,0x48f,0x3ca)]))[_0x647790(0x4ff,0x42d,0x41a,0x3e5)](()=>{});});try{while(!![]){throwIfAborted(_0x2441bb);const {value:_0xfd7277,done:_0x2e9be3}=await _0x574d99[_0xcfa2f5(_0x1543e3._0x8875d5,_0x1543e3._0xa2d16c,_0x1543e3._0x3257ed,_0x1543e3._0x1ca192)]();throwIfAborted(_0x2441bb);if(_0x2e9be3)break;_0x543eb+=_0x4624cc[_0x56c6d2(_0x1543e3._0x10cc9e,0x54d,0x4f1,0x5a7)](_0xfd7277,{'stream':!![]});while(!![]){const _0x2a8e26=_0x543eb['indexOf']('\x0a\x0a');if(_0x2a8e26===-0x1)break;const _0x546432=_0x543eb[_0xcfa2f5(0x28d,_0x1543e3._0x31ffd4,0x238,_0x1543e3._0x1a26ca)](0x0,_0x2a8e26);_0x543eb=_0x543eb[_0xcfa2f5(_0x1543e3._0x5321e0,_0x1543e3._0x323535,_0x1543e3._0x2f78b9,_0x1543e3._0x71c848)](_0x2a8e26+0x2),_0x546432['trim']()[_0x56c6d2(0x43c,0x4c3,_0x1543e3._0x164e8f,0x44d)]>0x0&&(yield _0x546432);}}_0x543eb+=_0x4624cc[_0x56c6d2(0x546,0x54d,0x529,0x5d2)](),throwIfAborted(_0x2441bb),_0x543eb[_0x56c6d2(_0x1543e3._0x38e88e,0x55a,0x553,0x542)]()[_0xcfa2f5(0x227,0x120,_0x1543e3._0x3c1874,0x1d0)]>0x0&&(yield _0x543eb);}finally{_0x397084();}}async function waitForWebSocketOpen(_0x2b3cb6,_0x31f275){const _0x2bffb2={_0x166d83:0x36d,_0xb3b9cd:0x34c,_0x1e63e1:0x329},_0x289b6c={_0x193fc6:0x174,_0xea6693:0x131,_0x10e8c0:0x208,_0x5c9bdd:0x1c9,_0x44e8b9:0x21d,_0x11b630:0x223},_0x389e5f={_0x23e48b:0x34a,_0x43627d:0x329,_0x48a5f3:0x346,_0x16ac5d:0x240,_0x332c18:0x30a,_0x5a6875:0x10e,_0xff1a26:0xe3,_0x498705:0x14},_0x5cde74={_0x4f2a4a:0x121,_0x4c55d1:0x1ac,_0x5dbf0a:0xe0,_0x5449f1:0x76,_0x3e7e3d:0x4a,_0x12238a:0x56},_0x3f5e96={_0xa9ae24:0x9f,_0x118726:0x68,_0x1d60c5:0x80,_0x2afbdd:0x7a,_0x2e5dd9:0x52},_0x4f367a={_0x23fd9b:0x10f},_0x5c4c91={_0xc86be4:0x13e,_0x52a0c9:0x371},_0xe430d={_0x255d0f:0x7,_0x4ae5f4:0x16c};function _0x1794e0(_0x225e67,_0xc65b45,_0xd5d093,_0x42f86b){return _0x40b3f8(_0x225e67-0x18b,_0xc65b45,_0xd5d093-_0xe430d._0x255d0f,_0x225e67- -_0xe430d._0x4ae5f4);}if(_0x2b3cb6[_0x2e494a(_0x2bffb2._0x166d83,_0x2bffb2._0xb3b9cd,0x410,_0x2bffb2._0x1e63e1)]===WebSocket[_0x1794e0(-0x191,-0x1ba,-0x167,-0xe7)]){throwIfAborted(_0x31f275);return;}function _0x2e494a(_0x5ce0a5,_0x182885,_0x47938d,_0x2036e2){return _0x40b3f8(_0x5ce0a5-0x12a,_0x2036e2,_0x47938d-_0x5c4c91._0xc86be4,_0x5ce0a5-_0x5c4c91._0x52a0c9);}throwIfAborted(_0x31f275),await new Promise((_0x34103b,_0x53bc17)=>{const _0x4e7a58={_0xc6ac9e:0x11,_0x35ce04:0x117},_0x1cde84={_0x14c545:0x1f1},_0x175c5e=()=>{_0x237167(),_0x34103b();};function _0x3c46f3(_0x12d04a,_0xb9609c,_0xe12cc8,_0x32fb1e){return _0x2e494a(_0x32fb1e- -0x49e,_0xb9609c-0x14,_0xe12cc8-_0x4f367a._0x23fd9b,_0xe12cc8);}const _0xed9960=_0x49b81b=>{function _0x2d82fa(_0x2baaa5,_0x47ba27,_0xa0f485,_0x1462ce){return _0x4eeb(_0x47ba27-0x246,_0x2baaa5);}function _0x10c356(_0x36399a,_0x53137f,_0x4328dd,_0x488f4b){return _0x4eeb(_0x488f4b- -0x194,_0x53137f);}_0x237167(),_0x53bc17(new Error(_0x49b81b[_0x10c356(-0x61,_0x3f5e96._0xa9ae24,_0x3f5e96._0x118726,0x67)]||_0x10c356(-_0x3f5e96._0x1d60c5,0x61,-_0x3f5e96._0x2afbdd,_0x3f5e96._0x2e5dd9)));},_0x39520c=_0x421f7c=>{const _0x2619a8={_0x36cfdd:0x2f0};function _0x4a296c(_0x5db629,_0x100031,_0x4e3dff,_0x241d52){return _0x4eeb(_0x241d52- -_0x2619a8._0x36cfdd,_0x5db629);}_0x237167();const _0x10e27b=_0x421f7c;_0x53bc17(new Error(_0x10e27b[_0x4a296c(-0x13c,-0x29b,-0x14a,-_0x1cde84._0x14c545)]||'WebSocket\x20closed\x20before\x20opening'));};function _0x57c54c(_0xf4215a,_0x3f0a0c,_0x1df260,_0x45da2d){return _0x2e494a(_0x3f0a0c- -0x340,_0x3f0a0c-_0x4e7a58._0xc6ac9e,_0x1df260-_0x4e7a58._0x35ce04,_0xf4215a);}const _0x4b1fe5=()=>{_0x237167();function _0x18abc0(_0x56fb9c,_0x4e8b61,_0x31a822,_0x55ac7b){return _0x4eeb(_0x56fb9c- -0x20e,_0x55ac7b);}function _0x1733a4(_0x4a932b,_0x15fa2f,_0x5363d4,_0x5e15fb){return _0x4eeb(_0x4a932b- -0xdb,_0x15fa2f);}_0x2b3cb6[_0x1733a4(_0x5cde74._0x4f2a4a,0x83,0x86,_0x5cde74._0x4c55d1)]===WebSocket[_0x18abc0(-0x33,-_0x5cde74._0x5dbf0a,0x3f,-0x74)]&&_0x2b3cb6[_0x18abc0(-0x15,_0x5cde74._0x5449f1,-0x95,-_0x5cde74._0x3e7e3d)](0x3e8,_0x1733a4(0xb,-_0x5cde74._0x12238a,-0xbb,0x75)),_0x53bc17(toAbortError(_0x31f275?.['reason']));},_0x237167=()=>{_0x2b3cb6['removeEventListener'](_0x444fbe(0x274,_0x389e5f._0x23e48b,_0x389e5f._0x43627d,_0x389e5f._0x48a5f3),_0x175c5e),_0x2b3cb6['removeEventListener'](_0x536f92(0x5f,0x33,0x5e,-0x26),_0xed9960);function _0x536f92(_0x5222b4,_0x5764d5,_0x30320a,_0x281274){return _0x4eeb(_0x30320a- -0xc9,_0x5222b4);}_0x2b3cb6['removeEventListener'](_0x444fbe(_0x389e5f._0x16ac5d,_0x389e5f._0x332c18,0x1bd,0x212),_0x39520c);function _0x444fbe(_0x48d4a1,_0x3d1cb4,_0x5b19ed,_0x1f76fa){return _0x4eeb(_0x48d4a1-0x47,_0x1f76fa);}_0x31f275?.[_0x536f92(0x56,_0x389e5f._0x5a6875,_0x389e5f._0xff1a26,_0x389e5f._0x498705)]('abort',_0x4b1fe5);};_0x2b3cb6[_0x57c54c(-0x175,-0xde,-0x32,-_0x289b6c._0x193fc6)]('open',_0x175c5e),_0x2b3cb6['addEventListener'](_0x3c46f3(-_0x289b6c._0xea6693,-0x29f,-_0x289b6c._0x10e8c0,-0x206),_0xed9960),_0x2b3cb6[_0x3c46f3(-_0x289b6c._0x5c9bdd,-0x16f,-_0x289b6c._0x44e8b9,-0x23c)]('close',_0x39520c),_0x31f275?.[_0x3c46f3(-0x25a,-_0x289b6c._0x11b630,-0x310,-0x23c)]('abort',_0x4b1fe5,{'once':!![]});});}function iterateWebSocketMessages(_0x27adb4,_0x1b3b39){const _0x420e58={_0xf19257:0x17,_0x4c34d9:0x20,_0xeca017:0x60,_0x2fd287:0x6a,_0x476911:0x416,_0x4f898b:0x3be,_0x3758a0:0x4c1,_0x88c38e:0x6e,_0x1190dc:0x5d,_0x1bb45d:0xa8,_0x253443:0xb9,_0x496735:0x86,_0xd3a92c:0x3de},_0x3d6f09={_0x3d093a:0x4c8,_0xf998df:0x412,_0x1f6257:0x4fe,_0x5478ee:0x456,_0x576069:0x113,_0x91cb0a:0x14d,_0x14cc45:0x1cf,_0x4260be:0x4c6,_0x1b20ad:0x4be},_0x14dd8d={_0x4d18e0:0x41e},_0x48d444={_0x509f20:0x5ae,_0x2db234:0xce},_0x1a48b6={_0x5e1568:0x396,_0x1ddf50:0x39e,_0xf56c86:0x32b,_0x3a0a75:0x4f7,_0x2aa420:0x623,_0x420dd4:0x285,_0x31f901:0x23a,_0x3096c3:0x288,_0x5bb69f:0x2a3},_0xad1ee2={_0x222e2c:0x1a2},_0xd05ff6={_0x25eafa:0x542,_0x591ee1:0x433,_0x2fee57:0x4c0,_0x449f29:0x49c,_0x49b74c:0x542,_0x3bffff:0x4a6},_0x44d1e4={_0x5013ff:0x3a5},_0x3ac70c={_0x29232c:0x4f1},_0x396ace={_0x58f536:0x397},_0x193b67={_0x4d092b:0x3a},_0x2ffcec={_0x5dd149:0x182,_0x2fd319:0x110,_0x5df797:0x1cd,_0x42b6ec:0xb2,_0x3a4ec5:0x26,_0x329dd1:0xf,_0x16baa9:0xad},_0x2da467={_0x16fbe1:0x6d7,_0x496640:0x2,_0x347c65:0x133},_0x2945c7=[];let _0x13d2f7=![],_0x431fc2,_0x5e033b;function _0x354fcc(_0x3316ed,_0x5ad3c4,_0x74211,_0x391c71){return _0x3a2825(_0x74211,_0x5ad3c4-_0x2da467._0x16fbe1,_0x74211-_0x2da467._0x496640,_0x391c71-_0x2da467._0x347c65);}const _0x33d37a=_0x15d578=>{const _0x22365a={_0x1b280f:0x23f};function _0x58c311(_0x49f7c9,_0x162784,_0x3148d8,_0x278883){return _0x4eeb(_0x49f7c9- -0x120,_0x278883);}function _0x884126(_0x54fadb,_0x30cbed,_0x1862ca,_0x964bc3){return _0x4eeb(_0x54fadb- -_0x22365a._0x1b280f,_0x1862ca);}const _0x59cc54=_0x15d578;try{_0x2945c7['push'](JSON[_0x884126(-_0x2ffcec._0x5dd149,-_0x2ffcec._0x2fd319,-0x229,-_0x2ffcec._0x5df797)](String(_0x59cc54[_0x884126(-0x16d,-0x135,-_0x2ffcec._0x42b6ec,-0x217)]))),_0x5e033b?.(),_0x5e033b=void 0x0;}catch(_0x572b92){_0x431fc2=new Error(_0x58c311(-0x1,-_0x2ffcec._0x3a4ec5,_0x2ffcec._0x329dd1,-_0x2ffcec._0x16baa9)+toErrorMessage(_0x572b92)),_0x5e033b?.(),_0x5e033b=void 0x0;}};function _0x375f8e(_0x2cb6db,_0x584598,_0x1f99a3,_0x3d17e5){return _0x3a2825(_0x1f99a3,_0x2cb6db-0x297,_0x1f99a3-_0x193b67._0x4d092b,_0x3d17e5-0x13c);}const _0x3636ff=_0x2106b5=>{const _0x499ed5={_0x20099b:0x38};function _0x4f1b67(_0x3ff076,_0x3922ea,_0x550301,_0x3c6d40){return _0x4eeb(_0x550301-_0x396ace._0x58f536,_0x3ff076);}const _0x526ef5=_0x2106b5;_0x431fc2=new Error(_0x526ef5[_0x4f1b67(0x650,0x532,0x592,0x580)]||_0x4f1b67(0x517,0x584,0x57d,_0x3ac70c._0x29232c));function _0x3b5da1(_0x570d4f,_0x30b7b4,_0x5d0e78,_0xdb5f23){return _0x4eeb(_0xdb5f23-_0x499ed5._0x20099b,_0x30b7b4);}_0x5e033b?.(),_0x5e033b=void 0x0;},_0x48090b=_0x32ae0d=>{function _0x58a3fe(_0x4dc126,_0x1ff424,_0x413242,_0x34df70){return _0x4eeb(_0x34df70-0x72,_0x413242);}function _0x28578c(_0x41d878,_0x2562c7,_0x222440,_0x4b3f20){return _0x4eeb(_0x222440-_0x44d1e4._0x5013ff,_0x2562c7);}const _0x58bf83=_0x32ae0d;!_0x13d2f7&&_0x58bf83[_0x28578c(0x496,0x46a,_0xd05ff6._0x25eafa,0x46c)]!==0x3e8&&!_0x431fc2&&(_0x431fc2=new Error(_0x58bf83[_0x28578c(_0xd05ff6._0x591ee1,_0xd05ff6._0x2fee57,0x4a4,0x47a)]||_0x28578c(0x649,0x637,0x59b,0x579)+_0x58bf83[_0x28578c(_0xd05ff6._0x449f29,0x497,_0xd05ff6._0x49b74c,_0xd05ff6._0x3bffff)])),_0x13d2f7=!![],_0x5e033b?.(),_0x5e033b=void 0x0;},_0x115e85=addAbortListener(_0x1b3b39,()=>{function _0x153634(_0x451aa7,_0x3a5f73,_0x413c4b,_0xac3f86){return _0x4eeb(_0x413c4b-_0xad1ee2._0x222e2c,_0x3a5f73);}_0x431fc2=toAbortError(_0x1b3b39?.['reason']);_0x27adb4[_0x153634(_0x1a48b6._0x5e1568,0x305,_0x1a48b6._0x1ddf50,_0x1a48b6._0xf56c86)]===WebSocket['OPEN']&&_0x27adb4[_0x3e77c6(_0x1a48b6._0x3a0a75,0x597,0x4e7,_0x1a48b6._0x2aa420)](0x3e8,_0x153634(_0x1a48b6._0x420dd4,_0x1a48b6._0x31f901,_0x1a48b6._0x3096c3,_0x1a48b6._0x5bb69f));function _0x3e77c6(_0x3e30c1,_0xff3161,_0x87b4e1,_0x30ad1a){return _0x4eeb(_0xff3161-0x39e,_0x87b4e1);}_0x5e033b?.(),_0x5e033b=void 0x0;});return _0x27adb4[_0x354fcc(0x4aa,0x3e0,0x35d,0x31d)](_0x375f8e(0xaa,_0x420e58._0xf19257,0x17c,-_0x420e58._0x4c34d9),_0x33d37a),_0x27adb4[_0x375f8e(-_0x420e58._0xeca017,-_0x420e58._0x2fd287,-0xa6,0x78)](_0x354fcc(0x34c,_0x420e58._0x476911,_0x420e58._0x4f898b,_0x420e58._0x3758a0),_0x3636ff),_0x27adb4[_0x375f8e(-0x60,-_0x420e58._0x88c38e,0x1d,-_0x420e58._0x1190dc)](_0x375f8e(_0x420e58._0x1bb45d,0xb3,_0x420e58._0x253443,_0x420e58._0x496735),_0x48090b),{async*[Symbol[_0x354fcc(0x365,_0x420e58._0xd3a92c,0x47d,0x3a1)]](){function _0x9d70cd(_0x6b8a3c,_0x6f21ef,_0x596fd1,_0x100b23){return _0x354fcc(_0x6b8a3c-0x146,_0x6b8a3c- -_0x48d444._0x509f20,_0x100b23,_0x100b23-_0x48d444._0x2db234);}function _0x5145f3(_0x3e5975,_0x2fb2f3,_0x5598e7,_0x58a2a1){return _0x375f8e(_0x3e5975-_0x14dd8d._0x4d18e0,_0x2fb2f3-0x12c,_0x5598e7,_0x58a2a1-0xa6);}try{while(!![]){if(_0x431fc2)throw _0x431fc2;if(_0x2945c7['length']>0x0){yield _0x2945c7['shift']();continue;}if(_0x13d2f7)break;await new Promise(_0x5849c4=>{_0x5e033b=_0x5849c4;});}}finally{_0x27adb4['removeEventListener'](_0x5145f3(_0x3d6f09._0x3d093a,0x464,_0x3d6f09._0xf998df,_0x3d6f09._0x1f6257),_0x33d37a),_0x27adb4[_0x5145f3(0x479,0x46f,_0x3d6f09._0x5478ee,0x41b)]('error',_0x3636ff),_0x27adb4[_0x9d70cd(-_0x3d6f09._0x576069,-_0x3d6f09._0x91cb0a,-_0x3d6f09._0x14cc45,-0x14f)](_0x5145f3(_0x3d6f09._0x4260be,_0x3d6f09._0x1b20ad,0x4d4,0x3fc),_0x48090b),_0x115e85();}}};}function toWebSocketUrl(_0x3e8680,_0x554a0e){const _0x4f69fc={_0x769d56:0x9c,_0x3162ea:0xf7,_0x4e4748:0x1c1,_0x1e07a7:0x2e6,_0x3d4bd6:0x2f6,_0x4e43ee:0x264,_0x26efcf:0x284,_0x16aeef:0x378,_0x283788:0x89,_0x2a2e89:0x3f,_0x144a6d:0xc7},_0x2ac593={_0x10ef54:0x575},_0x274c44={_0x3a302b:0x11a,_0x5e5a28:0x1c6};function _0x63787a(_0x475df7,_0x235613,_0x5a6c76,_0x2a2743){return _0x40b3f8(_0x475df7-_0x274c44._0x3a302b,_0x475df7,_0x5a6c76-_0x274c44._0x5e5a28,_0x5a6c76-0x18e);}const _0x50515d=new URL(_0x554a0e,_0x3e8680);function _0x382257(_0x64d824,_0x3f1ba2,_0x3d05cf,_0x1e4998){return _0x3a2825(_0x1e4998,_0x3f1ba2-_0x2ac593._0x10ef54,_0x3d05cf-0x16a,_0x1e4998-0x67);}return _0x50515d[_0x63787a(0x20,_0x4f69fc._0x769d56,_0x4f69fc._0x3162ea,_0x4f69fc._0x4e4748)]=_0x50515d[_0x382257(_0x4f69fc._0x1e07a7,_0x4f69fc._0x3d4bd6,0x2b8,0x2ee)]===_0x382257(_0x4f69fc._0x4e43ee,0x31b,_0x4f69fc._0x26efcf,_0x4f69fc._0x16aeef)?_0x63787a(_0x4f69fc._0x283788,-_0x4f69fc._0x2a2e89,0x35,0xc4):'ws:',_0x50515d[_0x63787a(0x3,_0x4f69fc._0x144a6d,0x82,0x144)]();}var ProviderSessionManager=class{[_0x3a2825(-0x278,-0x1a8,-0x1d7,-0x201)];['cached'];constructor(_0x319a18){const _0x4fff85={_0x147c81:0x82,_0x40f014:0x80},_0x2426be={_0x2dee8c:0x191,_0x361204:0xfd,_0x44031a:0x42};function _0x5c05a1(_0x55cdc1,_0x49ff18,_0x3782d7,_0x2f4976){return _0x40b3f8(_0x55cdc1-_0x2426be._0x2dee8c,_0x49ff18,_0x3782d7-_0x2426be._0x361204,_0x55cdc1-_0x2426be._0x44031a);}this[_0x5c05a1(_0x4fff85._0x147c81,-0x2e,_0x4fff85._0x40f014,0x127)]=_0x319a18;}async['resolve'](_0x3a74fd){const _0x456d4d={_0x3bf32e:0x88,_0x426de9:0x32,_0x1ccc5a:0x4,_0x29b5fe:0x4bd,_0xcce97b:0x529,_0x1a39d:0x5a8},_0x5616c7={_0x14c5d6:0x6f6,_0x49c3d1:0x3d};function _0x4bc333(_0x20f9d8,_0x21dab4,_0xb44a39,_0x14c9a2){return _0x3a2825(_0x14c9a2,_0xb44a39-0x1a6,_0xb44a39-0x18,_0x14c9a2-0x1c2);}function _0x8f3957(_0x298c57,_0x269b76,_0x573ac5,_0x127d4f){return _0x3a2825(_0x127d4f,_0x573ac5-_0x5616c7._0x14c5d6,_0x573ac5-_0x5616c7._0x49c3d1,_0x127d4f-0xb0);}return!this[_0x4bc333(-_0x456d4d._0x3bf32e,_0x456d4d._0x426de9,-_0x456d4d._0x1ccc5a,-0x8a)]&&(this[_0x8f3957(0x594,0x61f,0x54c,0x5c4)]=this['resolver'][_0x8f3957(0x599,_0x456d4d._0x29b5fe,0x4fa,_0x456d4d._0xcce97b)](_0x3a74fd)),structuredClone(await this[_0x8f3957(0x5b6,_0x456d4d._0x1a39d,0x54c,0x5f4)]);}[_0x40b3f8(-0x197,-0x1d1,-0x18d,-0x107)](){const _0x4eede7={_0x216204:0x298},_0x3c89fb={_0x30aaa6:0x11d,_0x36713f:0x2b5};function _0x350fce(_0x2eee20,_0x4ffeb7,_0x42d15b,_0x351d8f){return _0x40b3f8(_0x2eee20-0xeb,_0x42d15b,_0x42d15b-_0x3c89fb._0x30aaa6,_0x4ffeb7-_0x3c89fb._0x36713f);}this[_0x350fce(0x25f,0x2f3,_0x4eede7._0x216204,0x2d5)]=void 0x0;}};async function prepareProviderRequest(_0x269ba9,_0x45ef77={}){const _0x280e9f={_0x38f5ec:0x13c,_0xb91fd6:0x9a,_0x569f3d:0x35d,_0x45e411:0x441},_0x4cce0e={_0x5d8d82:0x4,_0x2e98e7:0x78};function _0x3f1771(_0x723009,_0x147d1b,_0xb0d2b,_0x4b3d8f){return _0x40b3f8(_0x723009-0x9b,_0x4b3d8f,_0xb0d2b-0x15f,_0xb0d2b-0x3a6);}let _0x4b5d3d={'request':structuredClone(_0x269ba9),'session':_0x45ef77[_0x5e31cc(-0x10f,-0x7a,-0xd7,-_0x280e9f._0x38f5ec)]?await _0x45ef77[_0x5e31cc(-0x1fa,-0x134,-_0x280e9f._0xb91fd6,-0x13c)][_0x3f1771(0x32b,_0x280e9f._0x569f3d,0x392,_0x280e9f._0x45e411)](_0x45ef77['signal']):void 0x0};function _0x5e31cc(_0x3c92c5,_0x42bbd1,_0x15d195,_0xbcab7f){return _0x3a2825(_0x3c92c5,_0xbcab7f-0x190,_0x15d195-_0x4cce0e._0x5d8d82,_0xbcab7f-_0x4cce0e._0x2e98e7);}for(const _0x393f20 of _0x45ef77['requestMutators']??[]){_0x4b5d3d=await _0x393f20(_0x4b5d3d);}return _0x4b5d3d;}var MAX_PROVIDER_REQUEST_ATTEMPTS=0xa,RETRYABLE_HTTP_STATUSES=new Set([0x198,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8]),DEFAULT_RETRY_DELAY_MS=0x1f4;function _0x40b3f8(_0x1b2e5c,_0x24ef7d,_0xf1fedc,_0x16f586){return _0x4eeb(_0x16f586- -0x200,_0x24ef7d);}var RETRY_DELAY_STEP_CAP_MS=0x3a98,RoutedModel=class{[_0x3a2825(-0x3b7,-0x34b,-0x3df,-0x3a0)];[_0x40b3f8(-0x85,-0xe6,-0x118,-0x57)];[_0x3a2825(-0x371,-0x2ca,-0x2e3,-0x21a)];[_0x3a2825(-0x203,-0x20b,-0x210,-0x22f)];[_0x3a2825(-0x197,-0x203,-0x1b1,-0x294)];['fetchImpl'];[_0x3a2825(-0x294,-0x233,-0x1af,-0x163)];[_0x40b3f8(-0x88,0x10,-0x8,-0xd)];[_0x40b3f8(0xe0,-0x3a,-0x11,0x13)];[_0x3a2825(-0x23a,-0x2cc,-0x394,-0x245)];[_0x3a2825(-0x28f,-0x224,-0x2b6,-0x293)];[_0x40b3f8(-0x9e,-0x1f3,-0x203,-0x12b)]=new Map();constructor(_0x2069aa){const _0x16eba3={_0x5cd80c:0x19d,_0x38063c:0x121,_0x1708f1:0x19d,_0x35e505:0x10b,_0x5a06b4:0x14,_0x31b86f:0xa8,_0x208035:0x57,_0x36cc25:0x14d,_0x2cba8f:0xa8,_0x191b4e:0x12,_0x25a0f6:0xf,_0x5df758:0xa8,_0x1824b4:0x92,_0x3845d8:0x17,_0x3f6914:0x51,_0x36ca34:0x1f,_0x352ba4:0x8e,_0x37b316:0x7e,_0x333cb2:0x3d,_0x5d6942:0x2d4,_0x244b0c:0x22f,_0x5ed3d7:0x28d,_0x436c16:0x157,_0x50380f:0x95,_0x168474:0x12b,_0x21d879:0x115,_0x5a55fd:0xd5,_0x2b7d6b:0xbb,_0x1a0159:0x103,_0x3a30e8:0x75,_0x36bade:0x4b,_0x30a4cc:0x2d,_0x465a61:0x85,_0x31efbe:0x4d,_0x31bd41:0x53,_0x1cc210:0x1c,_0x38be5c:0x29,_0x5b8db5:0x1c,_0x4e3b3b:0xbc,_0x4e9661:0x4a,_0x463008:0x3b,_0x5c2c83:0x4a,_0x1aa841:0x5d,_0x2e50b2:0x1f5,_0x239836:0x1b1,_0x1b3bd1:0x1ea,_0x420375:0x17f,_0x89e2e7:0x98,_0x2d163e:0xf1,_0x15048c:0x4f},_0x1e6356={_0x2d372a:0x3c,_0x44a1e7:0x178};this['model']=_0x2069aa[_0x42626e(-_0x16eba3._0x5cd80c,-0x122,-0xd7,-0x129)],this[_0x2a3e01(-0xde,-_0x16eba3._0x38063c,-_0x16eba3._0x1708f1,-_0x16eba3._0x35e505)]=_0x2069aa['maxTokens']??0x4000,this[_0x42626e(-0x89,_0x16eba3._0x5a06b4,-0x26,-_0x16eba3._0x31b86f)]=_0x2069aa[_0x42626e(-_0x16eba3._0x208035,-_0x16eba3._0x36cc25,-0x9f,-_0x16eba3._0x2cba8f)]?structuredClone(_0x2069aa[_0x42626e(-_0x16eba3._0x191b4e,-0xbb,_0x16eba3._0x25a0f6,-_0x16eba3._0x5df758)]):void 0x0;function _0x42626e(_0xb3dd0d,_0x25ae6e,_0x50c3af,_0x25081b){return _0x40b3f8(_0xb3dd0d-_0x1e6356._0x2d372a,_0x50c3af,_0x50c3af-_0x1e6356._0x44a1e7,_0x25081b-0x3a);}this[_0x42626e(-_0x16eba3._0x1824b4,-0x66,0xc1,_0x16eba3._0x3845d8)]=_0x2069aa[_0x2a3e01(-_0x16eba3._0x3f6914,-0xed,-0xb1,-_0x16eba3._0x36ca34)],this[_0x2a3e01(-_0x16eba3._0x352ba4,-0xe5,-_0x16eba3._0x37b316,-0xbd)]=_0x2069aa[_0x2a3e01(-0x32,-0xe5,-0xac,-_0x16eba3._0x333cb2)],this['fetchImpl']=_0x2069aa[_0x2a3e01(-_0x16eba3._0x5d6942,-_0x16eba3._0x244b0c,-_0x16eba3._0x5ed3d7,-_0x16eba3._0x436c16)]??globalThis[_0x42626e(-0x81,-_0x16eba3._0x50380f,-_0x16eba3._0x31b86f,-_0x16eba3._0x168474)],this[_0x2a3e01(-0x1ce,-_0x16eba3._0x21d879,-_0x16eba3._0x5a55fd,-0x15b)]=_0x2069aa[_0x2a3e01(-_0x16eba3._0x2b7d6b,-0x115,-_0x16eba3._0x1a0159,-_0x16eba3._0x3a30e8)];function _0x2a3e01(_0x4e43f7,_0x46b5ab,_0x22c9b8,_0x598073){return _0x40b3f8(_0x4e43f7-0x1ee,_0x598073,_0x22c9b8-0x1bd,_0x46b5ab- -0xca);}this[_0x42626e(-0x99,0xa3,-_0x16eba3._0x36bade,_0x16eba3._0x30a4cc)]=_0x2069aa['requestMutators']??[],this[_0x42626e(-_0x16eba3._0x465a61,-0x14,-0x22,_0x16eba3._0x31efbe)]=_0x2069aa[_0x42626e(-_0x16eba3._0x31bd41,0x108,0x121,_0x16eba3._0x31efbe)],this['sessionManager']=_0x2069aa['sessionManager']??(_0x2069aa[_0x42626e(0xaf,-_0x16eba3._0x1cc210,0xaf,_0x16eba3._0x38be5c)]?new ProviderSessionManager(_0x2069aa[_0x42626e(_0x16eba3._0x5b8db5,0xaf,_0x16eba3._0x4e3b3b,_0x16eba3._0x38be5c)]):void 0x0),this[_0x2a3e01(-_0x16eba3._0x4e9661,-0x106,-_0x16eba3._0x463008,-0x17d)]=_0x2069aa[_0x42626e(0x24,_0x16eba3._0x5c2c83,_0x16eba3._0x1aa841,-0x2)]??createDefaultWebSocketFactory();for(const _0x141850 of _0x2069aa[_0x2a3e01(-0x227,-_0x16eba3._0x2e50b2,-_0x16eba3._0x239836,-_0x16eba3._0x1b3bd1)]){this[_0x42626e(-_0x16eba3._0x420375,-0x79,-_0x16eba3._0x89e2e7,-_0x16eba3._0x2d163e)][_0x2a3e01(-0x43,-0xf7,-_0x16eba3._0x15048c,-0x13c)](_0x141850['id'],_0x141850);}}[_0x3a2825(-0x339,-0x32f,-0x3de,-0x396)](_0x162b66,_0x54c7a0){const _0x34fc15={_0x3785c3:0x1aa},_0x4e3941={_0x48ec97:0x3a,_0x32149f:0xa0,_0x57d3e9:0x3a8};function _0x5d3312(_0x4cf11c,_0xcb5ac6,_0x386c30,_0x53ffeb){return _0x40b3f8(_0x4cf11c-_0x4e3941._0x48ec97,_0xcb5ac6,_0x386c30-_0x4e3941._0x32149f,_0x53ffeb-_0x4e3941._0x57d3e9);}return this[_0x5d3312(0x21e,_0x34fc15._0x3785c3,0x20a,0x273)](_0x162b66,_0x54c7a0);}['stream'](_0xd5af7b,_0x383920){return this['streamViaRouter'](_0xd5af7b,_0x383920);}async[_0x3a2825(-0x2b2,-0x31d,-0x280,-0x37f)](_0x277917,_0x938b25){const _0x121aef={_0x363525:0x15d,_0x4a71ba:0x1ec,_0x11c725:0x1a3,_0x3fa9d3:0x453,_0x40ea59:0x4c6,_0x244684:0x59d,_0x34a60f:0x264,_0x4f1c72:0x27e,_0xc3498f:0x1e1,_0x483883:0x13e,_0x1cfc6c:0x193,_0x4c53cc:0x195,_0x1adf59:0x143,_0x248271:0x1cc,_0x473691:0x18f},_0x24d632={_0x262964:0x1c4,_0x559939:0x7,_0x1715bf:0x2da},_0x596444={_0x2a3a8b:0x11e,_0x10e0a8:0x136},_0x10c2c1=this[_0x243b04(0x1c7,_0x121aef._0x363525,_0x121aef._0x4a71ba,_0x121aef._0x11c725)](_0x277917);function _0x50aada(_0x35f881,_0x150a5e,_0x2d2636,_0x203684){return _0x3a2825(_0x35f881,_0x2d2636-0x6f9,_0x2d2636-_0x596444._0x2a3a8b,_0x203684-_0x596444._0x10e0a8);}const _0x1c3ac0=await this[_0x50aada(_0x121aef._0x3fa9d3,_0x121aef._0x40ea59,0x524,_0x121aef._0x244684)][_0x243b04(_0x121aef._0x34a60f,_0x121aef._0x4f1c72,0x25a,_0x121aef._0xc3498f)](_0x10c2c1,{'mode':_0x243b04(_0x121aef._0x483883,0x1bf,_0x121aef._0x1cfc6c,_0x121aef._0x4c53cc)});function _0x243b04(_0x27c979,_0x269ef2,_0xd0645a,_0x413d52){return _0x40b3f8(_0x27c979-_0x24d632._0x262964,_0x269ef2,_0xd0645a-_0x24d632._0x559939,_0xd0645a-_0x24d632._0x1715bf);}return this[_0x243b04(0x246,_0x121aef._0x1adf59,_0x121aef._0x248271,_0x121aef._0x473691)](_0x10c2c1,_0x1c3ac0,_0x938b25);}async*[_0x40b3f8(-0x2e,-0xea,-0x1ad,-0xda)](_0x467dea,_0x26f017){const _0x461827={_0x30a144:0x24c,_0x494aec:0x11c,_0x658922:0x124,_0xb58c18:0x1bf,_0x4a7b58:0x91,_0x340475:0xbf,_0x45c46e:0x96,_0x41d383:0xdc,_0x3d4136:0xb5},_0x55e698={_0xb50a1f:0x1d4},_0x1f5241=this[_0x75a55e(-_0x461827._0x30a144,-_0x461827._0x494aec,-_0x461827._0x658922,-_0x461827._0xb58c18)](_0x467dea);function _0xf702ce(_0x14f78a,_0x38a00f,_0x33493d,_0x1c8f81){return _0x40b3f8(_0x14f78a-0x1e2,_0x1c8f81,_0x33493d-0xaa,_0x14f78a- -0x1a);}const _0x528170=await this[_0xf702ce(-0x7,_0x461827._0x4a7b58,0xc1,_0x461827._0x340475)][_0xf702ce(-0x9a,-_0x461827._0x45c46e,-0xf2,-0x30)](_0x1f5241,{'mode':_0xf702ce(-0x12c,-0xe0,-0x13d,-_0x461827._0x41d383)});function _0x75a55e(_0x1a0d85,_0x2ed4b6,_0x31c233,_0x5c7b88){return _0x40b3f8(_0x1a0d85-0x4f,_0x2ed4b6,_0x31c233-_0x55e698._0xb50a1f,_0x5c7b88- -0xd1);}yield*this[_0xf702ce(-0x115,-_0x461827._0x3d4136,-0x134,-0x136)](_0x1f5241,_0x528170,_0x26f017);}async[_0x40b3f8(-0x172,-0xdc,-0x13c,-0x10e)](_0x2bd1f1,_0x32886b,_0x1b13aa){const _0x3c73d9={_0x59971:0x2e2,_0x1749e8:0x2be,_0x183a0f:0x2e6,_0x500f78:0x291,_0x19f7c1:0x2ea,_0x5b2a43:0x3e7,_0x9b8393:0x421,_0x43b6f6:0x40d,_0x18b1c2:0x3d1,_0x28ff75:0x3d0,_0x1bd1c8:0x3f2,_0x2c9a07:0x433,_0x253837:0x3f8,_0x470eee:0x43b,_0x629dc2:0x337,_0x4e3d56:0x54,_0x25f829:0xbb,_0x4fa097:0x396,_0x9e768d:0x3c0,_0x5d3deb:0x9,_0x1963c6:0xf,_0x4aac0b:0xe9,_0x155e9b:0x60,_0x188f99:0xa5,_0x200634:0x8b,_0x418080:0x82,_0x314141:0xbc,_0x6338c7:0x81,_0x5cf78c:0x2e5,_0x5ae665:0x3b8,_0x400e70:0x30e,_0x5418a3:0x371,_0x3f5634:0x435,_0x57ae0e:0x3ed,_0xd5672e:0x3c8},_0x2352e2={_0x5bc04b:0x1dd,_0x51e0f4:0x18d,_0x4a6ce8:0x3d0},_0x3a3389={_0x2c130b:0xd3},_0x2ec707=this[_0x47f2c5(_0x3c73d9._0x59971,0x21b,_0x3c73d9._0x1749e8,0x304)](_0x2bd1f1),_0x6c4b8d=this[_0x47f2c5(0x2ac,0x32b,_0x3c73d9._0x183a0f,_0x3c73d9._0x500f78)](_0x32886b);if(_0x6c4b8d[_0x47f2c5(_0x3c73d9._0x19f7c1,0x324,0x347,0x3b5)]===_0x47f2c5(_0x3c73d9._0x5b2a43,_0x3c73d9._0x9b8393,_0x3c73d9._0x43b6f6,_0x3c73d9._0x18b1c2)){const _0x6b9316=await this[_0x47f2c5(_0x3c73d9._0x28ff75,0x47e,_0x3c73d9._0x1bd1c8,_0x3c73d9._0x2c9a07)](_0x2ec707,_0x6c4b8d,![],_0x1b13aa);if(!_0x6b9316['ok'])throw await this[_0x47f2c5(0x384,_0x3c73d9._0x253837,0x339,_0x3c73d9._0x470eee)](_0x6b9316);if(!_0x6c4b8d[_0x47f2c5(0x338,0x33a,0x3fd,_0x3c73d9._0x629dc2)])throw new Error(_0x23d865(_0x3c73d9._0x4e3d56,-_0x3c73d9._0x25f829,-0x50,-0x92)+_0x32886b+_0x47f2c5(0x36c,_0x3c73d9._0x4fa097,_0x3c73d9._0x9e768d,0x345));return _0x6c4b8d[_0x23d865(-0x6c,0xa4,0x3,_0x3c73d9._0x5d3deb)](await _0x6b9316['json'](),_0x2ec707);}function _0x23d865(_0x43bc39,_0x59c25a,_0x20407d,_0x5d8611){return _0x3a2825(_0x43bc39,_0x20407d-0x283,_0x20407d-_0x3a3389._0x2c130b,_0x5d8611-0x62);}function _0x47f2c5(_0x4e1550,_0x59cd8b,_0x60fe9c,_0x136c40){return _0x40b3f8(_0x4e1550-_0x2352e2._0x5bc04b,_0x60fe9c,_0x60fe9c-_0x2352e2._0x51e0f4,_0x4e1550-_0x2352e2._0x4a6ce8);}let _0x2bf40b;for await(const _0x50e72f of this[_0x23d865(-_0x3c73d9._0x1963c6,-_0x3c73d9._0x4aac0b,-_0x3c73d9._0x155e9b,-_0x3c73d9._0x188f99)](_0x2ec707,_0x32886b,_0x1b13aa)){_0x50e72f['type']===_0x23d865(-_0x3c73d9._0x200634,_0x3c73d9._0x418080,0xb,_0x3c73d9._0x314141)&&(_0x2bf40b=_0x50e72f[_0x23d865(0x1b,_0x3c73d9._0x6338c7,_0x3c73d9._0x4e3d56,0x39)]);}if(!_0x2bf40b)throw new Error(_0x47f2c5(_0x3c73d9._0x5cf78c,_0x3c73d9._0x5ae665,0x327,_0x3c73d9._0x400e70)+_0x32886b+_0x47f2c5(_0x3c73d9._0x5418a3,_0x3c73d9._0x3f5634,_0x3c73d9._0x57ae0e,_0x3c73d9._0xd5672e));return _0x2bf40b;}async*[_0x3a2825(-0x2e3,-0x2e3,-0x275,-0x306)](_0x2b004d,_0x17f6d7,_0x14b80c){const _0x4c28ec={_0x254450:0x1ad,_0x22d19b:0x169,_0x2b13ba:0x103,_0x324d08:0x251,_0x2aa6c3:0x149,_0x5321fe:0x313,_0x4411f3:0x1df,_0x58fc1c:0x2dc,_0x8e99ab:0x19d,_0x43f2d8:0x120,_0x287d22:0x15b,_0x48b06b:0x1b4,_0x7f38db:0x15f,_0x1b1d23:0x87,_0x58b852:0x232,_0x77fd4f:0x189,_0xd8ac26:0xb9,_0x26dca5:0x1d0,_0x2bf6a6:0x1ab,_0x116f3f:0x14d,_0x35fa5c:0xc7},_0x56f96e={_0x4cbbf5:0x10b},_0x18215d={_0xb5ac19:0xbc};function _0x2599f1(_0x25b9b7,_0x4a8b1a,_0x4b5dc7,_0x3f50d5){return _0x3a2825(_0x3f50d5,_0x4b5dc7-0x493,_0x4b5dc7-0xa6,_0x3f50d5-_0x18215d._0xb5ac19);}const _0x4edd7b=this['applyModelDefaults'](_0x2b004d),_0x2d3ff1=this[_0x1b9f27(_0x4c28ec._0x254450,_0x4c28ec._0x22d19b,0x121,_0x4c28ec._0x2b13ba)](_0x17f6d7);if(_0x2d3ff1[_0x2599f1(_0x4c28ec._0x324d08,0x247,0x1c5,_0x4c28ec._0x2aa6c3)]===_0x1b9f27(_0x4c28ec._0x5321fe,_0x4c28ec._0x4411f3,0x25c,_0x4c28ec._0x58fc1c)){const _0x48441a=await this[_0x2599f1(0xf6,0xcc,_0x4c28ec._0x8e99ab,0x16d)](_0x4edd7b,_0x17f6d7,_0x14b80c);yield{'type':_0x1b9f27(_0x4c28ec._0x43f2d8,_0x4c28ec._0x287d22,0x1b5,0x289),'response':_0x48441a};return;}if(_0x2d3ff1[_0x1b9f27(0x98,_0x4c28ec._0x48b06b,_0x4c28ec._0x7f38db,_0x4c28ec._0x1b1d23)]===_0x1b9f27(0x249,_0x4c28ec._0x58b852,_0x4c28ec._0x77fd4f,_0x4c28ec._0xd8ac26)){yield*this[_0x1b9f27(_0x4c28ec._0x26dca5,0x1e7,0x1b2,0x235)](_0x4edd7b,_0x2d3ff1,_0x14b80c);return;}function _0x1b9f27(_0x1b964c,_0x5ded70,_0x18c529,_0x454814){return _0x3a2825(_0x1b964c,_0x18c529-0x42d,_0x18c529-0x102,_0x454814-_0x56f96e._0x4cbbf5);}yield*this[_0x1b9f27(0x170,_0x4c28ec._0x2bf6a6,_0x4c28ec._0x116f3f,_0x4c28ec._0x35fa5c)](_0x4edd7b,_0x2d3ff1,_0x14b80c?.['signal']);}async[_0x3a2825(-0x344,-0x2f1,-0x354,-0x327)](_0x104de1){const _0x496be1={_0x20fbd6:0x203},_0x51183d={_0x3d2fe5:0x4f1,_0x9e9e6a:0x2d8,_0xcf78d8:0x1e8,_0x57d12b:0x25a,_0x4dc86f:0x4bb,_0x544c80:0x413,_0x158fc0:0x4ee,_0x4f4feb:0x4dd,_0x33465e:0x103,_0x46ce38:0x261,_0x142377:0x284,_0x38091f:0x2c6,_0x521f71:0x322,_0x23d10e:0x205,_0xaa164e:0x2a9,_0x572b62:0x2b0,_0x4f0cbc:0x21d,_0x5d7cbf:0x52c,_0x23c189:0x3fd,_0x1dc089:0x168,_0x590c80:0x21f,_0x15cd16:0xf4,_0x4517d5:0x179,_0x4fb292:0x1c5,_0x4c6070:0x16d,_0x58214b:0x172,_0x45d3e7:0x1f0,_0x5c093d:0x285},_0x8090f1={_0x5359ef:0xfd,_0x3f84e1:0x2ff};function _0x18bb44(_0x1acb9e,_0x33fc02,_0x4e86f6,_0x28d86d){return _0x40b3f8(_0x1acb9e-_0x8090f1._0x5359ef,_0x33fc02,_0x4e86f6-0x23,_0x1acb9e-_0x8090f1._0x3f84e1);}const _0x44c75a=async()=>{const _0x270b1f=this[_0x96c702(0x3dc,0x422,_0x51183d._0x3d2fe5,0x4e4)]?await this[_0x2d3e17(-0x27b,-0x265,-_0x51183d._0x9e9e6a,-0x2ea)]['resolve'](_0x104de1[_0x2d3e17(-0x224,-_0x51183d._0xcf78d8,-_0x51183d._0x57d12b,-0x21b)]):void 0x0,_0x3be9db=this[_0x96c702(0x47e,_0x51183d._0x4dc86f,_0x51183d._0x544c80,0x52c)][_0x96c702(0x531,_0x51183d._0x158fc0,0x545,_0x51183d._0x4f4feb)](this['apiKey'],_0x270b1f);function _0x96c702(_0x138933,_0x9ac10b,_0x1eefe2,_0x4e42fe){return _0x4eeb(_0x9ac10b-0x306,_0x138933);}if(!_0x3be9db)throw this[_0x96c702(0x56d,0x4c9,0x591,0x504)]();const _0x6a01ae=await this[_0x2d3e17(-_0x51183d._0x33465e,-0x1d6,-0x22e,-0x27a)]({'body':_0x104de1['body'],'credential':_0x3be9db,'session':_0x270b1f,'stream':![]},{'accept':_0x104de1['accept']??_0x2d3e17(-0x2b2,-0x2d0,-0x2b8,-_0x51183d._0x46ce38),'includeContentType':_0x104de1['method']===_0x2d3e17(-_0x51183d._0x142377,-_0x51183d._0x38091f,-_0x51183d._0x521f71,-_0x51183d._0x23d10e)});function _0x2d3e17(_0x4c6a6a,_0x5af878,_0x331c65,_0x4b0152){return _0x4eeb(_0x5af878- -0x381,_0x4b0152);}return this['fetchImpl'](''+this['providerAdapter'][_0x2d3e17(-_0x51183d._0xaa164e,-0x1ea,-0x12a,-_0x51183d._0x572b62)](this[_0x2d3e17(-_0x51183d._0x4f0cbc,-0x19c,-0xc8,-0x12e)],_0x270b1f)+_0x104de1['path'],{'method':_0x104de1['method'],'headers':_0x6a01ae,..._0x104de1[_0x96c702(_0x51183d._0x5d7cbf,0x4c2,_0x51183d._0x23c189,0x4e2)]!==void 0x0?{'body':JSON[_0x2d3e17(-0x17d,-_0x51183d._0x1dc089,-_0x51183d._0x590c80,-_0x51183d._0x15cd16)](_0x104de1[_0x2d3e17(-_0x51183d._0x4517d5,-_0x51183d._0x4fb292,-_0x51183d._0x4c6070,-_0x51183d._0x58214b)])}:{},'signal':_0x104de1[_0x2d3e17(-_0x51183d._0x45d3e7,-0x1e8,-_0x51183d._0x5c093d,-0x128)]});};return await this[_0x18bb44(0x1dc,_0x496be1._0x20fbd6,0x123,0x23f)](_0x44c75a,_0x104de1);}['getRetryDelayMs'](_0x580e3c,_0x12ae67){const _0x4271aa={_0x43eb0e:0x215,_0xd6dac:0x313,_0x49c267:0x182,_0x2a1738:0x4cd,_0x5249ed:0x4f5,_0x1c1b08:0x550,_0x3c56b3:0x51c,_0x33d353:0x3ec,_0x20e51a:0x476,_0x4ee31e:0x3cc,_0x46a0a8:0x4aa,_0x233870:0x556,_0x26d337:0x4f6},_0x5b6b36={_0x5bf693:0x56c,_0x3b6b6d:0x1c2},_0x33ae7d={_0x46fe64:0x52d},_0x5420d4=_0x580e3c?.[_0x499b2b(_0x4271aa._0x43eb0e,_0x4271aa._0xd6dac,0x244,_0x4271aa._0x49c267)][_0x2ad409(0x43d,_0x4271aa._0x2a1738,_0x4271aa._0x5249ed,0x47c)](_0x2ad409(0x542,_0x4271aa._0x1c1b08,_0x4271aa._0x3c56b3,0x4f2));function _0x2ad409(_0x122935,_0x1b25bd,_0x48f5bb,_0x2854a3){return _0x40b3f8(_0x122935-0x15f,_0x48f5bb,_0x48f5bb-0x1cc,_0x1b25bd-_0x33ae7d._0x46fe64);}if(_0x5420d4){const _0x54925a=Number(_0x5420d4);if(Number['isFinite'](_0x54925a)&&_0x54925a>=0x0)return _0x54925a*0x3e8;const _0x1bd7da=Date['parse'](_0x5420d4);if(Number[_0x499b2b(_0x4271aa._0x33d353,_0x4271aa._0x20e51a,0x3a8,_0x4271aa._0x4ee31e)](_0x1bd7da))return Math[_0x2ad409(_0x4271aa._0x46a0a8,_0x4271aa._0x233870,0x49c,_0x4271aa._0x26d337)](0x0,_0x1bd7da-Date['now']());}const _0x291a73=DEFAULT_RETRY_DELAY_MS*0x2**_0x12ae67;if(_0x291a73<RETRY_DELAY_STEP_CAP_MS)return _0x291a73;function _0x499b2b(_0x2bcc69,_0x396149,_0x167ef1,_0x41313d){return _0x3a2825(_0x396149,_0x167ef1-_0x5b6b36._0x5bf693,_0x167ef1-_0x5b6b36._0x3b6b6d,_0x41313d-0x4e);}return RETRY_DELAY_STEP_CAP_MS*0x2**(_0x12ae67-0x5);}[_0x40b3f8(-0x4c,-0x188,-0xca,-0x114)](_0x53dd3a){const _0x580869={_0x32a0dc:0x256,_0x43b35a:0x2a6,_0x4a0053:0x106,_0x1e1af7:0x1a7,_0x2c2920:0x188},_0xb508dd={_0x4d8bec:0x27a},_0x498a02={_0x142a4a:0xad,_0xf47b18:0xb0};function _0x3ca9c8(_0x4c83f2,_0x290413,_0x410a65,_0x3ba025){return _0x40b3f8(_0x4c83f2-_0x498a02._0x142a4a,_0x410a65,_0x410a65-_0x498a02._0xf47b18,_0x4c83f2-0xac);}function _0x1722c2(_0x1c9177,_0x436d84,_0x7ad92b,_0xc83d1d){return _0x40b3f8(_0x1c9177-0x116,_0x1c9177,_0x7ad92b-0xc2,_0x436d84-_0xb508dd._0x4d8bec);}return RETRYABLE_HTTP_STATUSES[_0x1722c2(_0x580869._0x32a0dc,_0x580869._0x43b35a,0x272,0x231)](_0x53dd3a[_0x1722c2(_0x580869._0x4a0053,_0x580869._0x1e1af7,_0x580869._0x2c2920,0x120)]);}[_0x40b3f8(-0x4,-0x45,-0x102,-0xc5)](_0x533cc3){return!isAbortError(_0x533cc3)&&_0x533cc3 instanceof TypeError;}[_0x40b3f8(-0x7b,-0x170,-0x188,-0xb0)](_0x4c0d95){const _0x500d9a={_0x333a72:0x153,_0x5aecc8:0x93},_0x1ca4f9={_0x2e17fe:0x59,_0x109623:0x1e9};function _0x232795(_0x484a30,_0x478441,_0x5329ac,_0x3e1f39){return _0x3a2825(_0x3e1f39,_0x478441-0x340,_0x5329ac-_0x1ca4f9._0x2e17fe,_0x3e1f39-_0x1ca4f9._0x109623);}return this[_0x232795(_0x500d9a._0x333a72,_0x500d9a._0x5aecc8,0xd3,0x94)](_0x4c0d95)||isRetryableProviderStreamEventError(_0x4c0d95);}async[_0x40b3f8(-0xec,-0x4f,-0x23,-0x81)](_0xb7ac64,_0x5052a9){throwIfAborted(_0x5052a9),await new Promise((_0x684505,_0x5b94ab)=>{const _0x594d0b={_0x1aa8da:0x2fe,_0x458598:0x2b0};let _0xdf5751=![];const _0x7531a1=addAbortListener(_0x5052a9,()=>{function _0x13012c(_0x16e1ff,_0x308d9f,_0x3bfbee,_0x17f3ac){return _0x4eeb(_0x308d9f-0x1b1,_0x16e1ff);}if(_0xdf5751)return;_0xdf5751=!![],clearTimeout(_0x3d1476),_0x5b94ab(toAbortError(_0x5052a9?.[_0x13012c(_0x594d0b._0x1aa8da,_0x594d0b._0x458598,0x340,0x25a)]));}),_0x3d1476=setTimeout(()=>{_0xdf5751=!![],_0x7531a1(),_0x684505();},_0xb7ac64);}),throwIfAborted(_0x5052a9);}async['sendWithRetries'](_0x5126ff,_0x11cd06={}){const _0x1d4a64={_0x3c9056:0x3e3,_0x3cca05:0x2f3,_0x2afb7b:0x52d,_0xb10355:0x332,_0x1022ed:0x3ee,_0x9ffde8:0x294,_0x437e17:0x302,_0x280e47:0x2c5,_0xc7cf97:0x29d,_0x54166a:0x267,_0x25d3aa:0x27f,_0x4e47c6:0x321,_0x4350f7:0x390,_0x4deb02:0x585,_0x32511a:0x60c,_0x1f6f13:0x539,_0x529dc7:0x4f4,_0x540b5f:0x519,_0x4d488b:0x529,_0x48e8d2:0x656,_0x4cc321:0x618},_0x339603={_0x5ba958:0xbc,_0x23dc61:0x14a,_0x4698f4:0x5ba},{signal:_0x14ab38}=_0x11cd06;let _0x465f88=![];function _0x4be927(_0x54cfa1,_0x502e1d,_0x39e6b8,_0x219b9f){return _0x40b3f8(_0x54cfa1-0xc4,_0x39e6b8,_0x39e6b8-0x3c,_0x54cfa1-0x416);}function _0x230fdd(_0x324698,_0x94a5a0,_0x4852c7,_0x505b33){return _0x40b3f8(_0x324698-_0x339603._0x5ba958,_0x94a5a0,_0x4852c7-_0x339603._0x23dc61,_0x505b33-_0x339603._0x4698f4);}for(let _0x31abd9=0x0;_0x31abd9<MAX_PROVIDER_REQUEST_ATTEMPTS;_0x31abd9+=0x1){throwIfAborted(_0x14ab38);try{const _0x1d97b1=await _0x5126ff();if(_0x1d97b1[_0x4be927(0x343,_0x1d4a64._0x3c9056,_0x1d4a64._0x3cca05,0x2e2)]===0x191&&this[_0x230fdd(0x4ac,_0x1d4a64._0x2afb7b,0x55a,0x4d6)]&&!_0x465f88){_0x465f88=!![],this[_0x4be927(_0x1d4a64._0xb10355,0x3f6,0x3bd,_0x1d4a64._0x1022ed)][_0x4be927(0x30f,0x2f6,_0x1d4a64._0x9ffde8,0x2b3)]();continue;}if(!this[_0x4be927(_0x1d4a64._0x437e17,_0x1d4a64._0x280e47,_0x1d4a64._0xc7cf97,_0x1d4a64._0x54166a)](_0x1d97b1)||_0x31abd9===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)return _0x1d97b1;const _0x4d2a17=this[_0x4be927(0x2f6,_0x1d4a64._0x25d3aa,_0x1d4a64._0x4e47c6,_0x1d4a64._0x4350f7)](_0x1d97b1,_0x31abd9);await this[_0x230fdd(_0x1d4a64._0x4deb02,_0x1d4a64._0x32511a,0x583,_0x1d4a64._0x1f6f13)](_0x4d2a17,_0x14ab38);}catch(_0x1e96e7){if(!this['shouldRetryRequestError'](_0x1e96e7)||_0x31abd9===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0x1e96e7;const _0x3c2e91=this['getRetryDelayMs'](void 0x0,_0x31abd9);await this[_0x230fdd(_0x1d4a64._0x529dc7,_0x1d4a64._0x540b5f,_0x1d4a64._0x4d488b,_0x1d4a64._0x1f6f13)](_0x3c2e91,_0x14ab38);}}throw new Error(_0x230fdd(_0x1d4a64._0x48e8d2,_0x1d4a64._0x4cc321,0x62d,0x5bb));}[_0x40b3f8(-0x24,-0x90,-0x100,-0x3d)](){const _0x40d9e8={_0x4d032c:0x5ba,_0x1efd59:0x534,_0x423953:0x235,_0x19e3f2:0x1a4,_0x1d661b:0x290,_0x1097b0:0x260},_0xf29284={_0x2bae04:0x57f},_0x1371d2={_0x3608e0:0x15e};function _0x50ee32(_0x5a5a4c,_0x5e8883,_0x42cf95,_0x53b8d2){return _0x40b3f8(_0x5a5a4c-_0x1371d2._0x3608e0,_0x5a5a4c,_0x42cf95-0xd8,_0x53b8d2-0x29d);}function _0x1328be(_0x2d624d,_0x164f4b,_0x5bfb93,_0x2ef509){return _0x40b3f8(_0x2d624d-0x6a,_0x2d624d,_0x5bfb93-0xd0,_0x2ef509-_0xf29284._0x2bae04);}return this[_0x1328be(_0x40d9e8._0x4d032c,0x4e7,0x470,_0x40d9e8._0x1efd59)][_0x50ee32(_0x40d9e8._0x423953,_0x40d9e8._0x19e3f2,_0x40d9e8._0x1d661b,_0x40d9e8._0x1097b0)]();}async['createHeaders'](_0x42a061,_0x304fc1){const _0x14d2ae={_0x19a4a5:0x451,_0x267298:0x46d};function _0x56901c(_0x339789,_0x4cd343,_0x19ff8c,_0x204faa){return _0x40b3f8(_0x339789-0x90,_0x19ff8c,_0x19ff8c-0xfc,_0x4cd343-0x47b);}return await this[_0x56901c(_0x14d2ae._0x19a4a5,0x430,_0x14d2ae._0x267298,0x3b2)]['createHeaders'](_0x42a061,_0x304fc1);}[_0x40b3f8(-0x15f,-0x79,-0x25,-0x8d)](_0x36dfdd){return this['providerAdapter']['mapApiError'](_0x36dfdd);}async[_0x3a2825(-0x15e,-0x234,-0x290,-0x2bd)](_0x21ad50){const _0x25c4ef={_0x4664b3:0x370,_0xcc45d1:0x348,_0x5a742c:0x32a},_0x549998={_0x327aa0:0xf8,_0x1b2148:0x3bb};function _0x533a2e(_0x84cf4e,_0x93ddb0,_0x539afd,_0x5af026){return _0x40b3f8(_0x84cf4e-0x1a4,_0x539afd,_0x539afd-_0x549998._0x327aa0,_0x5af026-_0x549998._0x1b2148);}function _0x211253(_0x50531c,_0x15da10,_0x1edde9,_0xe8713d){return _0x40b3f8(_0x50531c-0x5,_0xe8713d,_0x1edde9-0xe2,_0x15da10- -0x1ab);}return await this[_0x533a2e(0x39e,0x382,0x307,_0x25c4ef._0x4664b3)][_0x533a2e(_0x25c4ef._0xcc45d1,_0x25c4ef._0x5a742c,0x42f,0x36f)](_0x21ad50);}['getSurface'](_0x3e0a14){const _0x2c04f1={_0x298d03:0x1d9,_0x204a1e:0x167,_0x52572d:0x103},_0x3ad588={_0x5d11e1:0x1fb,_0x60bac2:0x1a4,_0x1b394a:0x11e};function _0x3353e7(_0x518102,_0x2f4720,_0x259cd7,_0xf99ab6){return _0x3a2825(_0x2f4720,_0xf99ab6-_0x3ad588._0x5d11e1,_0x259cd7-_0x3ad588._0x60bac2,_0xf99ab6-_0x3ad588._0x1b394a);}const _0x55f484=this[_0x420634(0x13a,0xda,_0x2c04f1._0x298d03,0x15b)][_0x420634(0x205,0x18d,0x256,0x2b1)](_0x3e0a14);function _0x420634(_0x3d4d6e,_0x1dd35c,_0x109b9a,_0x556ac7){return _0x3a2825(_0x1dd35c,_0x3d4d6e-0x44d,_0x109b9a-0x180,_0x556ac7-0x64);}if(!_0x55f484)throw new Error(_0x420634(_0x2c04f1._0x204a1e,_0x2c04f1._0x52572d,0xdf,0x1f8)+_0x3e0a14);return _0x55f484;}async['prepareChatRequest'](_0x3e807d,_0x1ff9e7){const _0x2357ab={_0x2cf92e:0x126,_0x5d3c3e:0x19b,_0x4a3355:0x60,_0x425461:0x8d,_0x57fcbe:0x22,_0x42c7c0:0x88,_0x1b4eb2:0x3b,_0x522d34:0x1,_0xb2af3c:0x99,_0xf98ebf:0x76,_0x51164f:0xc7,_0x39fa7d:0x4e,_0x35b632:0x3e,_0x14d7e9:0xc0,_0x41d295:0xbc,_0x5b88b0:0x32,_0x5c4a45:0x3c,_0xb4b779:0x67},_0x2856f3={_0x4d5d31:0xb5},_0x46ed22={_0x13d414:0x94,_0x4ed9b4:0x19},_0x485a7d=toModelRequest(_0x3e807d),_0x21c68f=await prepareProviderRequest(_0x485a7d,{'sessionManager':this[_0x1cc9bc(-_0x2357ab._0x2cf92e,-0xf7,-0xcb,-_0x2357ab._0x5d3c3e)],'requestMutators':this[_0x1cc9bc(-_0x2357ab._0x4a3355,0x6a,0xc,0xbe)],'signal':_0x1ff9e7}),_0x548897=toChatRequest(_0x21c68f[_0x5ef832(0x146,0x161,_0x2357ab._0x425461,_0x2357ab._0x57fcbe)]),_0x1e5378=this['providerAdapter'][_0x1cc9bc(_0x2357ab._0x42c7c0,-_0x2357ab._0x1b4eb2,_0x2357ab._0x522d34,_0x2357ab._0xb2af3c)](this[_0x1cc9bc(-0x1e,-_0x2357ab._0xf98ebf,-0xa,-_0x2357ab._0x51164f)],_0x21c68f[_0x5ef832(-0x30,_0x2357ab._0x39fa7d,-0x3e,_0x2357ab._0x35b632)]);function _0x1cc9bc(_0x16b329,_0x5bb8f9,_0x2d8a71,_0x1a9402){return _0x40b3f8(_0x16b329-0x109,_0x5bb8f9,_0x2d8a71-_0x46ed22._0x13d414,_0x2d8a71-_0x46ed22._0x4ed9b4);}function _0x5ef832(_0x1d9afd,_0xecd339,_0x473a20,_0x4bd02a){return _0x40b3f8(_0x1d9afd-_0x2856f3._0x4d5d31,_0xecd339,_0x473a20-0xac,_0x473a20-0xfd);}if(!_0x1e5378)throw this[_0x5ef832(0x8d,0x85,_0x2357ab._0x14d7e9,0x120)]();return{'baseUrl':this[_0x1cc9bc(-0xe7,-_0x2357ab._0x41d295,-_0x2357ab._0x5b88b0,-0xab)][_0x5ef832(0x10c,0x142,0x94,_0x2357ab._0x5c4a45)](this[_0x5ef832(_0x2357ab._0xb4b779,0x7d,0xe2,0x117)],_0x21c68f['session']),'credential':_0x1e5378,'request':_0x548897,'session':_0x21c68f[_0x5ef832(-0xf3,-0x103,-_0x2357ab._0x35b632,0x30)]};}[_0x40b3f8(-0x52,-0x182,-0xf6,-0xee)](_0x3323ae){const _0x4c5656={_0x359fc0:0x19d},_0x3e708f={_0x4ed728:0x90,_0xecec6e:0x1a7};function _0x6bb472(_0x2f1b2d,_0x8791c4,_0x3f5598,_0xa7213){return _0x3a2825(_0x8791c4,_0xa7213-0x467,_0x3f5598-0x110,_0xa7213-0x16a);}function _0x53adf1(_0x4c2403,_0x5a8c77,_0x11ced9,_0x36e9f6){return _0x3a2825(_0x4c2403,_0x11ced9-_0x3e708f._0x4ed728,_0x11ced9-_0x3e708f._0xecec6e,_0x36e9f6-0xf8);}return{...structuredClone(_0x3323ae),..._0x3323ae[_0x6bb472(0x1f1,0x1c5,0x1e0,0x19d)]===void 0x0&&this[_0x6bb472(0x17e,0x15b,0x1e9,_0x4c5656._0x359fc0)]!==void 0x0?{'reasoning':structuredClone(this[_0x53adf1(-0x258,-0x2bc,-0x23a,-0x188)])}:{}};}async[_0x40b3f8(-0xd2,-0x5d,-0x33,0x0)](_0x3f82e7,_0x1469d3,_0x1e97e4,_0xa0360c={},_0x468a34=!![]){const _0x580cfd={_0x1bbdf1:0x38,_0xcc33f9:0x2e,_0x409e3b:0x11},_0x28d462={_0x50c045:0x88,_0x312eb3:0xa,_0x126d30:0x2d,_0xe194c8:0x9e,_0x5082d5:0x28c,_0x429736:0x252,_0x5b3cc5:0x18e,_0x3bfa49:0x1b4,_0x326ca7:0xd3,_0x4c6b6b:0xab,_0x5e09e1:0x1,_0x1ccb80:0x51,_0x476ce0:0xa0,_0x1146dc:0xa0,_0x402996:0x98,_0x311716:0x1d9,_0x36305b:0x218,_0x42ee8a:0xce,_0x1dd35a:0xc7,_0x3c2fd5:0xc2,_0x58af04:0x78,_0x419a43:0x4,_0x2c3efc:0x1ca,_0x14c372:0x178,_0x9e1793:0x17d,_0x1e7a9f:0x3d,_0xde838d:0x26,_0x407a5b:0x58,_0x3d2106:0x4,_0x276748:0x0,_0x374647:0x13f,_0x5a9df4:0x52},_0x432a2c={_0x98bdf8:0x1e2};function _0x1ac440(_0x5cb591,_0x206c7a,_0x1d8d00,_0xc45a1){return _0x40b3f8(_0x5cb591-0x13b,_0x5cb591,_0x1d8d00-_0x432a2c._0x98bdf8,_0xc45a1-0x1ba);}const {signal:_0x2f2714}=_0xa0360c,_0x565dc2=async()=>{function _0x3ee44c(_0x4cf954,_0x9b843e,_0x44475a,_0x4d2c61){return _0x4eeb(_0x4d2c61- -0x170,_0x4cf954);}const _0x3c9943=await this['prepareChatRequest'](_0x3f82e7,_0x2f2714);let _0x40b756;try{_0x40b756=_0x1469d3[_0x3ee44c(-0xed,_0x28d462._0x50c045,-_0x28d462._0x312eb3,-_0x28d462._0x126d30)](_0x3c9943['request']);}catch(_0x1414f5){if(_0x1414f5 instanceof Error)throw new ProviderRequestConstructionError(_0x1414f5['message']);throw _0x1414f5;}function _0x2e7867(_0x267e32,_0x41d983,_0x51b3d3,_0x1eeec0){return _0x4eeb(_0x267e32- -0x28a,_0x41d983);}if(!_0x40b756['path'])throw new ProviderRequestConstructionError(_0x3ee44c(-0xff,-_0x28d462._0xe194c8,0x6d,-0x5b)+_0x1469d3['id']+_0x2e7867(-0x1d0,-0x20b,-_0x28d462._0x5082d5,-_0x28d462._0x429736));const _0x1a322c=await this['createHeaders']({'request':_0x3c9943['request'],'body':_0x40b756['body'],'credential':_0x3c9943[_0x2e7867(-_0x28d462._0x5b3cc5,-0x1ab,-_0x28d462._0x3bfa49,-0x19b)],'session':_0x3c9943[_0x3ee44c(-0x44,-_0x28d462._0x326ca7,-0x13e,-_0x28d462._0x4c6b6b)],'stream':_0x1e97e4},{'accept':_0x40b756[_0x3ee44c(-_0x28d462._0x5e09e1,_0x28d462._0x1ccb80,0x31,0x47)]??(_0x1e97e4?_0x3ee44c(_0x28d462._0x476ce0,-_0x28d462._0x1146dc,_0x28d462._0x402996,-0x13):_0x2e7867(-_0x28d462._0x311716,-0x155,-0x1a4,-_0x28d462._0x36305b)),'includeContentType':_0x40b756[_0x2e7867(-_0x28d462._0x42ee8a,-0xd1,-0x131,-_0x28d462._0x1dd35a)]!==void 0x0});for(const [_0x23d106,_0x429820]of Object[_0x3ee44c(0x51,_0x28d462._0x3c2fd5,-_0x28d462._0x58af04,_0x28d462._0x419a43)](_0x40b756[_0x2e7867(-_0x28d462._0x2c3efc,-_0x28d462._0x14c372,-0x234,-_0x28d462._0x9e1793)]??{})){_0x1a322c[_0x3ee44c(_0x28d462._0x1e7a9f,-0x8,0x60,0x63)](_0x23d106,_0x429820);}return this[_0x3ee44c(0x7a,-0xb0,-0x52,-_0x28d462._0xde838d)](''+_0x3c9943[_0x3ee44c(_0x28d462._0x407a5b,-_0x28d462._0x3d2106,0xae,0x75)]+_0x40b756[_0x3ee44c(_0x28d462._0x276748,0xfb,0x104,0x79)],{'method':_0x2e7867(-0x1cf,-0x1e0,-0x1d9,-0x100),'headers':_0x1a322c,..._0x40b756['body']!==void 0x0?{'body':JSON[_0x3ee44c(0xf4,_0x28d462._0x374647,_0x28d462._0x5a9df4,0xa9)](_0x40b756['body'])}:{},'signal':_0x2f2714});};return _0x468a34?await this[_0x1ac440(_0x580cfd._0x1bbdf1,_0x580cfd._0xcc33f9,-_0x580cfd._0x409e3b,0x97)](_0x565dc2,_0xa0360c):await _0x565dc2();}async*[_0x3a2825(-0x1c9,-0x27b,-0x325,-0x252)](_0x177580,_0x1aae54,_0x320387={}){const _0x1b4f5e={_0x152312:0x1f7,_0x3e50f6:0x169,_0x58488a:0x124,_0x5a054c:0x10e,_0xe2dc71:0x22b,_0x49c2fe:0x22f,_0x842b8c:0x145,_0x4ecd10:0x15e,_0x397ed2:0x21e,_0x4da6d6:0x22a,_0x5b8a80:0x200,_0x4f9cb4:0x1f4,_0x34f351:0x234,_0x55b796:0x176,_0x1a3079:0x138,_0x1d0cc4:0xb9,_0x3fdffc:0x103,_0x3792d7:0x19e,_0x2628b2:0xe6,_0x1f4169:0xe0,_0x4a91e5:0x244,_0x3b3b34:0x200,_0x457f9a:0x184,_0x20ea8e:0x173,_0xe5ea31:0x1d8,_0x4f0139:0x4d,_0x12ef8e:0xe5,_0x1c07c9:0xff,_0x1a6e34:0x3b,_0x32b72f:0x143,_0x2628b9:0x15b,_0x4579d6:0x117,_0x370432:0x148,_0x6f9091:0x4b},_0x4342e1={_0x2d1607:0x164},_0x597f8e={_0x2e1ac0:0x133},{signal:_0x5e944d}=_0x320387;function _0x3d41b3(_0x2cc74b,_0x5610e2,_0xb5c2f1,_0x52a9a4){return _0x40b3f8(_0x2cc74b-0x11e,_0x2cc74b,_0xb5c2f1-_0x597f8e._0x2e1ac0,_0x5610e2-0x253);}function _0x26a3b2(_0x27d1e3,_0x16b8af,_0x45c5ea,_0x536ee4){return _0x40b3f8(_0x27d1e3-_0x4342e1._0x2d1607,_0x45c5ea,_0x45c5ea-0x1bf,_0x27d1e3- -0x73);}let _0x4895d9=![];for(let _0x1ae6c8=0x0;_0x1ae6c8<MAX_PROVIDER_REQUEST_ATTEMPTS;_0x1ae6c8+=0x1){let _0x59023d=![];try{const _0x4d3402=await this['sendHttpSurfaceRequest'](_0x177580,_0x1aae54,!![],_0x320387,![]);if(_0x4d3402[_0x26a3b2(-0x146,-_0x1b4f5e._0x152312,-_0x1b4f5e._0x3e50f6,-_0x1b4f5e._0x58488a)]===0x191&&this[_0x3d41b3(_0x1b4f5e._0x5a054c,0x16f,0x238,0x182)]&&!_0x4895d9){_0x4895d9=!![],this['sessionManager']['invalidate']();continue;}if(!_0x4d3402['ok'])throw await this['toApiError'](_0x4d3402);const _0x1cd9c2=_0x1aae54[_0x3d41b3(0x20f,0x198,_0x1b4f5e._0xe2dc71,_0x1b4f5e._0x49c2fe)]?.(_0x177580);if(!_0x1cd9c2?.[_0x26a3b2(-0x176,-0xf3,-_0x1b4f5e._0x842b8c,-0x216)])throw new Error(_0x26a3b2(-_0x1b4f5e._0x4ecd10,-_0x1b4f5e._0x397ed2,-0xff,-0x9a)+_0x1aae54['id']+_0x3d41b3(_0x1b4f5e._0x4da6d6,_0x1b4f5e._0x5b8a80,_0x1b4f5e._0x4f9cb4,_0x1b4f5e._0x34f351));for await(const _0x980d1 of iterateSseEvents(_0x4d3402,_0x5e944d)){const _0x51ca9a=_0x1cd9c2[_0x26a3b2(-_0x1b4f5e._0x55b796,-_0x1b4f5e._0x1a3079,-0x1cc,-_0x1b4f5e._0x1d0cc4)](_0x980d1);for(const _0x242c1e of _0x51ca9a){_0x59023d=!![],yield _0x242c1e;}}yield{'type':_0x26a3b2(-_0x1b4f5e._0x3fdffc,-_0x1b4f5e._0x3792d7,-_0x1b4f5e._0x2628b2,-_0x1b4f5e._0x1f4169),'response':_0x1cd9c2[_0x3d41b3(0x211,_0x1b4f5e._0x4a91e5,0x1b9,_0x1b4f5e._0x3b3b34)]()};return;}catch(_0x5091aa){if(_0x59023d||!this[_0x26a3b2(-0x123,-0xec,-0x1a4,-_0x1b4f5e._0x457f9a)](_0x5091aa)||_0x1ae6c8===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0x5091aa;const _0x23c9bd=this[_0x3d41b3(_0x1b4f5e._0x20ea8e,0x133,0xce,_0x1b4f5e._0xe5ea31)](void 0x0,_0x1ae6c8),_0x2eb37c={'type':_0x26a3b2(-_0x1b4f5e._0x4f0139,-_0x1b4f5e._0x12ef8e,-_0x1b4f5e._0x1c07c9,-_0x1b4f5e._0x1a6e34),'attempt':_0x1ae6c8+0x1,'maxAttempts':MAX_PROVIDER_REQUEST_ATTEMPTS,'error':_0x5091aa instanceof Error?_0x5091aa['message']:String(_0x5091aa),'delayMs':_0x23c9bd,'reason':this[_0x26a3b2(-0x138,-_0x1b4f5e._0x32b72f,-0x125,-_0x1b4f5e._0x2628b9)](_0x5091aa)?_0x26a3b2(-_0x1b4f5e._0x4579d6,-_0x1b4f5e._0x370432,-0x183,-0x51):_0x26a3b2(-_0x1b4f5e._0x6f9091,0x81,-0xac,-0xba)};yield _0x2eb37c,await this['waitForRetry'](_0x23c9bd,_0x5e944d);}}}async*['streamWebSocketSurface'](_0x408075,_0x4dd61f,_0x529527){const _0x481bcb={_0x1f9049:0x391,_0x2b831d:0x373,_0x530d64:0x36f,_0x423a5e:0x3c1,_0x42db59:0x175,_0x2eda77:0x11f,_0x22f916:0xfb,_0xe72617:0x11e,_0x5332ed:0x119,_0x4b12b4:0x335,_0x8524a6:0x34e,_0x30a437:0x302,_0x581560:0x13f,_0x190884:0x1f2,_0x394c7f:0x26e,_0x2ffea4:0x1ee,_0x2081a4:0x1ad,_0x3524ed:0x1fa,_0x1fe046:0x1c3,_0xf06214:0x499,_0x20c881:0x93,_0x211b3c:0x17,_0x3b016c:0x1a4,_0x2c2b47:0x10c,_0xc10510:0x17e,_0x59cf89:0x220,_0x3383a4:0x1b4,_0x481ae0:0x1eb,_0x5392c5:0x394,_0x1d23f4:0x2c2,_0x1e82ae:0x372,_0xa15d7a:0x105,_0xae2c79:0x87,_0xc2a42e:0x347,_0x3306f1:0x3e8,_0x38681d:0x144,_0x310725:0x3ea,_0x4c5c33:0x3df,_0x536f93:0x3a5,_0x4465e7:0x1a9,_0x5ae821:0x3ef,_0x59ad38:0x3cc,_0x3f696f:0x3ba,_0x401ecb:0x329,_0x20478f:0x3e8,_0x2704b2:0x421,_0x543f05:0x3b4,_0x283d91:0x46d,_0x1372e0:0x42d,_0x2af4f0:0x385,_0x44e156:0x40b,_0x202bc7:0x6f,_0x539dd0:0x112,_0x1d628f:0x5d,_0x376ea4:0x381,_0x27c460:0x40c,_0x2e887f:0x379,_0xe57a79:0x214,_0x3afcdf:0x179,_0x5d326c:0x38c,_0x2b8caa:0x3d1,_0x2d9fb5:0x48c,_0x1e40a7:0x81,_0xf9886c:0x15b,_0x26afbf:0xef,_0x11ac19:0x3d3,_0x17db53:0x295,_0x122a00:0x317},_0x6454f0={_0x56992a:0x3f1,_0x171de2:0x1e5},_0x4f43d0={_0x3a0451:0x619,_0x4d0a57:0x166,_0x4e0bf2:0x43};function _0x355444(_0x5783af,_0x1d1995,_0x5379eb,_0x1fcee0){return _0x3a2825(_0x5783af,_0x1fcee0-_0x4f43d0._0x3a0451,_0x5379eb-_0x4f43d0._0x4d0a57,_0x1fcee0-_0x4f43d0._0x4e0bf2);}const _0x53a8df=await this[_0x355444(0x2fb,_0x481bcb._0x1f9049,_0x481bcb._0x2b831d,0x329)](_0x408075,_0x529527),_0x379ef7=_0x4dd61f[_0x355444(0x2b9,0x41f,0x434,0x374)](_0x53a8df[_0x355444(0x3c1,_0x481bcb._0x530d64,0x2f0,_0x481bcb._0x423a5e)]),_0x252a4f=_0x4dd61f[_0x448fbc(0x155,_0x481bcb._0x42db59,0x14e,_0x481bcb._0x2eda77)]?.(_0x408075);if(!_0x252a4f?.[_0x355444(0x42b,0x393,0x41f,0x403)])throw new Error(_0x448fbc(_0x481bcb._0x22f916,0xce,_0x481bcb._0xe72617,_0x481bcb._0x5332ed)+_0x4dd61f['id']+_0x355444(_0x481bcb._0x4b12b4,0x32a,_0x481bcb._0x8524a6,_0x481bcb._0x30a437));const _0x361f79=_0x379ef7['url']??(_0x379ef7[_0x448fbc(0x218,_0x481bcb._0x581560,_0x481bcb._0x190884,0x1c9)]?(''+_0x53a8df[_0x448fbc(_0x481bcb._0x394c7f,0x1b8,_0x481bcb._0x2ffea4,0x175)]+_0x379ef7[_0x448fbc(0x17f,_0x481bcb._0x2081a4,_0x481bcb._0x190884,_0x481bcb._0x3524ed)])[_0x448fbc(0x22b,0x1f6,_0x481bcb._0x1fe046,0x117)](/^http:/,'ws:')[_0x355444(_0x481bcb._0xf06214,0x392,0x460,0x3eb)](/^https:/,_0x448fbc(-0x14,_0x481bcb._0x20c881,0xb0,_0x481bcb._0x211b3c)):void 0x0);if(!_0x361f79)throw new ProviderRequestConstructionError(_0x448fbc(_0x481bcb._0x3b016c,0x119,0x11e,_0x481bcb._0x2c2b47)+_0x4dd61f['id']+'\x20did\x20not\x20provide\x20a\x20WebSocket\x20URL\x20or\x20path');const _0x4a595c=await this[_0x448fbc(_0x481bcb._0xc10510,_0x481bcb._0x59cf89,_0x481bcb._0x3383a4,_0x481bcb._0x481ae0)]({'request':_0x53a8df['request'],'body':_0x379ef7[_0x355444(_0x481bcb._0x5392c5,_0x481bcb._0x1d23f4,_0x481bcb._0x1e82ae,0x393)],'credential':_0x53a8df[_0x448fbc(0x104,0x17a,_0x481bcb._0xa15d7a,_0x481bcb._0xae2c79)],'session':_0x53a8df['session'],'stream':!![]},{'accept':_0x379ef7[_0x355444(0x44f,0x458,_0x481bcb._0xc2a42e,_0x481bcb._0x3306f1)]??_0x448fbc(_0x481bcb._0x38681d,0xfc,0xba,0xea),'includeContentType':![]});for(const [_0x2e4951,_0x20e55a]of Object[_0x355444(_0x481bcb._0x310725,_0x481bcb._0x4c5c33,0x32d,_0x481bcb._0x536f93)](_0x379ef7['headers']??{})){_0x4a595c[_0x448fbc(0x292,_0x481bcb._0x4465e7,0x1dc,0x1ad)](_0x2e4951,_0x20e55a);}function _0x448fbc(_0x46053d,_0xab7722,_0x6533b6,_0x54dc15){return _0x3a2825(_0x46053d,_0x6533b6-_0x6454f0._0x56992a,_0x6533b6-_0x6454f0._0x171de2,_0x54dc15-0xf2);}_0x4a595c[_0x355444(_0x481bcb._0x5ae821,_0x481bcb._0x59ad38,_0x481bcb._0x3f696f,0x38a)](_0x355444(_0x481bcb._0x401ecb,0x427,0x374,_0x481bcb._0x20478f));const _0x198d4f=this[_0x355444(_0x481bcb._0x2704b2,_0x481bcb._0x543f05,_0x481bcb._0x283d91,0x3f5)]({'headers':Object['fromEntries'](_0x4a595c['entries']()),'url':_0x361f79});try{throwIfAborted(_0x529527);_0x198d4f[_0x355444(0x4b9,0x44d,0x383,_0x481bcb._0x1372e0)]!==WebSocket[_0x355444(_0x481bcb._0x2af4f0,_0x481bcb._0x44e156,0x3c8,0x40c)]&&await waitForWebSocketOpen(_0x198d4f,_0x529527);throwIfAborted(_0x529527);_0x379ef7['initialEvent']!==void 0x0&&_0x198d4f[_0x448fbc(0x174,_0x481bcb._0x202bc7,_0x481bcb._0x539dd0,_0x481bcb._0x1d628f)](JSON['stringify'](_0x379ef7[_0x355444(0x378,0x322,0x2f6,0x393)]));for await(const _0x1d186e of iterateWebSocketMessages(_0x198d4f,_0x529527)){yield*_0x252a4f['consumeWebSocketEvent'](_0x1d186e);if(_0x252a4f[_0x355444(_0x481bcb._0x376ea4,0x429,_0x481bcb._0x27c460,_0x481bcb._0x2e887f)]?.())break;}yield{'type':_0x448fbc(_0x481bcb._0xe57a79,0x178,_0x481bcb._0x3afcdf,0x1c1),'response':_0x252a4f[_0x355444(0x46f,_0x481bcb._0x5d326c,_0x481bcb._0x2b8caa,0x422)]()};}finally{_0x198d4f[_0x355444(_0x481bcb._0x2d9fb5,0x3a8,0x361,0x42d)]===WebSocket[_0x355444(0x4af,0x4a9,0x4bf,0x40c)]&&_0x198d4f['close'](0x3e8,_0x529527?.[_0x448fbc(_0x481bcb._0x1e40a7,_0x481bcb._0xf9886c,_0x481bcb._0x26afbf,0x70)]?_0x355444(_0x481bcb._0x11ac19,_0x481bcb._0x17db53,0x26d,_0x481bcb._0x122a00):'completed');}}};async function createHttpError(_0x2c6e6b){const _0x235dc1={_0x5a24f2:0xfe,_0x5b1006:0x136,_0x218c27:0x398,_0x107b97:0x319,_0x1b7a28:0x290,_0x928742:0x1a1,_0x21600d:0x179},_0x167706={_0x416cd0:0xc7,_0x27a27f:0x13b},_0xe2da97={_0x3af460:0x4c4,_0x557519:0x1e5},_0x5d11d4=await _0x2c6e6b['text'](),_0x189a9a=_0x5d11d4[_0x3e8dea(-0x6e,-0x129,-0x9,-0xe0)]()||_0x2c6e6b[_0x3e8dea(-0x113,-_0x235dc1._0x5a24f2,-0x6b,-_0x235dc1._0x5b1006)]||_0x364c0a(0x2a6,_0x235dc1._0x218c27,_0x235dc1._0x107b97,_0x235dc1._0x1b7a28);function _0x364c0a(_0x71dc1c,_0x25c7c6,_0x18ef34,_0xc066f0){return _0x3a2825(_0x25c7c6,_0x18ef34-_0xe2da97._0x3af460,_0x18ef34-0x101,_0xc066f0-_0xe2da97._0x557519);}function _0x3e8dea(_0x311457,_0x1845e9,_0x1a59fd,_0x55bb8a){return _0x3a2825(_0x55bb8a,_0x311457-0x19c,_0x1a59fd-_0x167706._0x416cd0,_0x55bb8a-_0x167706._0x27a27f);}return new Error('Provider\x20request\x20failed\x20with\x20status\x20'+_0x2c6e6b[_0x3e8dea(-0x11f,-_0x235dc1._0x928742,-0x5b,-_0x235dc1._0x21600d)]+':\x20'+_0x189a9a);}var AnthropicProviderAdapter=class{['authScheme'];[_0x40b3f8(-0x106,-0x95,0x4e,-0x4a)];[_0x3a2825(-0x147,-0x1d9,-0x1be,-0x109)];constructor(_0x2dd57c){const _0x222647={_0x7a8f53:0xfa,_0x34a79a:0xe2,_0x38d023:0x63,_0x24f9f1:0xc,_0x13589a:0x34a,_0x129ecf:0x224,_0x3d0b9e:0x3b9,_0x547eb8:0x2e5,_0x2ffe6b:0x312,_0x241ac8:0x2e4,_0xd837a0:0x2e5,_0x379dbf:0x3b5,_0x189122:0x2d2},_0x473cae={_0x4aa905:0xd9},_0x1f51e6={_0xdd7b4a:0x4be,_0x31ea99:0x120};function _0xbe285d(_0x1351c2,_0x1a6848,_0x2dbadc,_0x44fb51){return _0x3a2825(_0x44fb51,_0x1a6848-_0x1f51e6._0xdd7b4a,_0x2dbadc-_0x1f51e6._0x31ea99,_0x44fb51-0x1cb);}this[_0x4fb423(-0x77,-0xec,-_0x222647._0x7a8f53,-_0x222647._0x34a79a)]=_0x2dd57c['authScheme'],this[_0x4fb423(-0x28,_0x222647._0x38d023,0x99,-_0x222647._0x24f9f1)]=_0x2dd57c[_0xbe285d(_0x222647._0x13589a,0x28c,_0x222647._0x129ecf,0x2da)];function _0x4fb423(_0x285f19,_0x33de0b,_0x485b70,_0x2be78f){return _0x40b3f8(_0x285f19-_0x473cae._0x4aa905,_0x2be78f,_0x485b70-0x1b0,_0x285f19-0x22);}this[_0xbe285d(_0x222647._0x3d0b9e,_0x222647._0x547eb8,_0x222647._0x2ffe6b,_0x222647._0x241ac8)]=_0x2dd57c[_0xbe285d(0x2b8,_0x222647._0xd837a0,_0x222647._0x379dbf,_0x222647._0x189122)];}[_0x3a2825(-0x15e,-0x225,-0x225,-0x155)](){return new Error('AnthropicModel\x20requires\x20an\x20apiKey\x20or\x20providerSessionResolver');}async['createHeaders'](_0x4080e7,_0x16b389){const _0x2eb633={_0x10127b:0xa5,_0x1c601d:0x460,_0x5b049f:0x5af,_0x2c22e2:0x4fb,_0x422e9a:0x539,_0x53bcf8:0x558,_0x4ab763:0x4ad,_0x1facb7:0x53e,_0x4589da:0x508,_0x4729b7:0x43a,_0x586a48:0x506,_0x7590e6:0x3eb,_0x13a7ba:0x12e,_0x3a3e1b:0x19b,_0x33b78a:0x114,_0x2a5143:0x129,_0x425417:0x416,_0x401bb7:0x4e3,_0x1dae1c:0x160,_0x5949d8:0x502,_0x51101c:0x5bf,_0x3b08b8:0x57c,_0x51e153:0x40b,_0x233cb9:0x4d6,_0x97e444:0x42b,_0x34e54c:0x436,_0x485661:0xbb,_0x3362cf:0x12f,_0x29e428:0xa6,_0x228387:0x2e,_0x3dbc44:0xba,_0x3872c2:0x86,_0x1cb306:0xa0,_0xe1b842:0x3b1,_0x105113:0xcc,_0x47eaf7:0xdb,_0x470f47:0x194},_0x22e21f={_0x2ddbd0:0x34,_0x23aae3:0x5c},_0x390501=new Headers();_0x390501['set'](_0x57ca8c(-0x177,0x14,-0x5a,-_0x2eb633._0x10127b),_0x16b389[_0xbee6b9(0x4e6,_0x2eb633._0x1c601d,_0x2eb633._0x5b049f,_0x2eb633._0x2c22e2)]),_0x390501['set'](_0xbee6b9(_0x2eb633._0x422e9a,0x482,_0x2eb633._0x53bcf8,_0x2eb633._0x4ab763),this[_0xbee6b9(_0x2eb633._0x1facb7,_0x2eb633._0x4589da,0x5e1,0x4b5)]);_0x16b389['includeContentType']!==![]&&_0x390501['set'](_0xbee6b9(_0x2eb633._0x4729b7,_0x2eb633._0x586a48,_0x2eb633._0x7590e6,0x428),_0x57ca8c(-0x128,-_0x2eb633._0x13a7ba,-_0x2eb633._0x3a3e1b,-0x1ab));this[_0x57ca8c(-_0x2eb633._0x33b78a,-0x52,-0xf9,-0xf5)]===_0x57ca8c(-0x120,-0x90,-0x1b0,-_0x2eb633._0x2a5143)?_0x390501['set'](_0xbee6b9(_0x2eb633._0x425417,_0x2eb633._0x401bb7,0x4b1,0x4ae),_0xbee6b9(0x4c7,0x46b,0x54e,0x491)+_0x4080e7[_0x57ca8c(-0x108,-0xd4,-0x10e,-_0x2eb633._0x1dae1c)]['value']):_0x390501[_0xbee6b9(_0x2eb633._0x5949d8,_0x2eb633._0x51101c,0x48c,0x4fe)](_0xbee6b9(0x4a5,_0x2eb633._0x3b08b8,_0x2eb633._0x51e153,_0x2eb633._0x233cb9),_0x4080e7[_0xbee6b9(_0x2eb633._0x97e444,0x359,0x4d5,0x44a)][_0xbee6b9(0x4ca,0x435,0x4bc,_0x2eb633._0x34e54c)]);function _0xbee6b9(_0x25392e,_0x27cf03,_0x3e6bc8,_0x2ba57e){return _0x40b3f8(_0x25392e-0x10c,_0x3e6bc8,_0x3e6bc8-0x123,_0x25392e-0x52f);}const _0x580579=await this[_0x57ca8c(-0x15f,-_0x2eb633._0x485661,-_0x2eb633._0x3362cf,-_0x2eb633._0x29e428)]?.({'body':_0x4080e7[_0x57ca8c(-_0x2eb633._0x228387,-_0x2eb633._0x3dbc44,-_0x2eb633._0x3872c2,-_0x2eb633._0x1cb306)],'credential':_0x4080e7[_0xbee6b9(0x42b,_0x2eb633._0xe1b842,0x465,0x3c6)],'request':_0x4080e7[_0x57ca8c(-0x6d,-0x13f,-0x98,-_0x2eb633._0x105113)],'session':_0x4080e7['session'],'stream':_0x4080e7[_0x57ca8c(-0xcf,-0x1ac,-_0x2eb633._0x47eaf7,-0x16e)]});function _0x57ca8c(_0x31f050,_0x4711fd,_0x342d74,_0x5d8d4f){return _0x40b3f8(_0x31f050-_0x22e21f._0x2ddbd0,_0x31f050,_0x342d74-0xd9,_0x5d8d4f- -_0x22e21f._0x23aae3);}for(const [_0x1792e0,_0x46e1a0]of Object[_0x57ca8c(-0x2f,-0x5f,-_0x2eb633._0x470f47,-0xe8)](_0x580579??{})){_0x390501['set'](_0x1792e0,_0x46e1a0);}return _0x390501;}['mapApiError'](_0x64ad16){return _0x64ad16;}['resolveBaseUrl'](_0x46bf91,_0x12bdc9){return resolveSessionBaseUrl(_0x46bf91,_0x12bdc9);}[_0x40b3f8(0x52,-0xa0,0xaf,-0x18)](_0x19ba7e,_0x4cd396){return resolveApiCredential(_0x19ba7e,_0x4cd396);}async[_0x3a2825(-0x235,-0x234,-0x29d,-0x2e4)](_0xec8593){return await createHttpError(_0xec8593);}},AnthropicModel=class extends RoutedModel{constructor(_0x4dc75e={}){const _0x42b1cf={_0x107c43:0x2e,_0x15fd6a:0x8f,_0x24dab1:0x7a,_0xb07dcf:0x36,_0x23a985:0x8b,_0x2cd508:0x7d,_0x144ed8:0x8,_0x2df242:0x5b,_0x13c5ce:0x1b5,_0x2a2cd1:0x1fd,_0x337d63:0x6,_0x4481a3:0xae,_0x3b0739:0xf6,_0x940946:0x48,_0x1e11e2:0x90,_0x2d170a:0x363,_0x59503b:0x274,_0x138c7b:0x1f5,_0x4a3d84:0x251,_0x1e1b66:0x325,_0x51ccaf:0x309,_0x352d3c:0x2c2,_0x41b193:0x32e,_0x2425b2:0x30d,_0x5b201e:0x3b8,_0x57e68b:0x36e},_0x4f1f47={_0x5cf5ad:0xb0,_0x2fc2a5:0x51};function _0x4a96f7(_0x3ee5bb,_0x580cc1,_0x49bd8e,_0x55f7f2){return _0x40b3f8(_0x3ee5bb-0x1d4,_0x55f7f2,_0x49bd8e-_0x4f1f47._0x5cf5ad,_0x3ee5bb-_0x4f1f47._0x2fc2a5);}function _0x27685b(_0x3dbf8d,_0xc8634c,_0x2591ad,_0x49a97f){return _0x40b3f8(_0x3dbf8d-0x8e,_0x2591ad,_0x2591ad-0x19b,_0x3dbf8d-0x31a);}super({'apiKey':_0x4dc75e[_0x4a96f7(_0x42b1cf._0x107c43,-_0x42b1cf._0x15fd6a,_0x42b1cf._0x107c43,-_0x42b1cf._0x24dab1)],'baseUrl':trimTrailingSlashes(_0x4dc75e[_0x4a96f7(_0x42b1cf._0xb07dcf,-0x60,-0x60,_0x42b1cf._0x23a985)]??_0x4a96f7(0x0,-_0x42b1cf._0x2cd508,-_0x42b1cf._0x144ed8,-_0x42b1cf._0x2df242)),'fetch':_0x4dc75e[_0x27685b(_0x42b1cf._0x13c5ce,0x1b1,0x173,_0x42b1cf._0x2a2cd1)],'maxTokens':_0x4dc75e[_0x4a96f7(-_0x42b1cf._0x337d63,-0x9,0xc,-_0x42b1cf._0x4481a3)]??0x4000,'model':_0x4dc75e[_0x27685b(0x1b7,0x12f,0x25f,_0x42b1cf._0x3b0739)]??'claude-sonnet-4-20250514','reasoning':_0x4dc75e[_0x27685b(0x238,0x17d,0x27e,0x2f8)],'providerAdapter':new AnthropicProviderAdapter({'authScheme':_0x4dc75e[_0x4a96f7(-_0x42b1cf._0x940946,-0x30,_0x42b1cf._0x1e11e2,0xd)]??_0x27685b(0x290,0x2d2,_0x42b1cf._0x2d170a,_0x42b1cf._0x59503b),'headerResolver':_0x4dc75e['headerResolver'],'protocolVersion':_0x4dc75e['protocolVersion']??_0x27685b(0x29e,_0x42b1cf._0x138c7b,_0x42b1cf._0x4a3d84,_0x42b1cf._0x1e1b66)}),'providerSessionResolver':_0x4dc75e[_0x27685b(_0x42b1cf._0x51ccaf,0x382,_0x42b1cf._0x352d3c,_0x42b1cf._0x41b193)],'requestMutators':_0x4dc75e[_0x27685b(_0x42b1cf._0x2425b2,0x347,_0x42b1cf._0x5b201e,_0x42b1cf._0x57e68b)],'router':new StaticModelSurfaceRouter({'complete':ANTHROPIC_MESSAGES_SURFACE,'stream':ANTHROPIC_MESSAGES_STREAM_SURFACE}),'surfaces':createAnthropicSurfaces()});}[_0x3a2825(-0x398,-0x32f,-0x33a,-0x403)](_0x17a048,_0x550316){const _0x20bd6f={_0x263e6b:0x430};function _0x32633d(_0xbf2004,_0x5ec39a,_0x18a07e,_0x580aa4){return _0x3a2825(_0x18a07e,_0x5ec39a-_0x20bd6f._0x263e6b,_0x18a07e-0x132,_0x580aa4-0x105);}return this[_0x32633d(0x171,0x13a,0x154,0x9f)](_0x17a048,ANTHROPIC_MESSAGES_SURFACE,_0x550316);}[_0x40b3f8(-0x151,-0x6f,-0x1dd,-0x112)](_0x50aa82,_0x3df6ed){const _0x3d32be={_0x322835:0x20c,_0x3e5993:0x229,_0x35998b:0x105},_0x1f1916={_0x1d6431:0x49e};function _0x2f04d0(_0x23ed1a,_0x304a70,_0x347e48,_0x38a9a4){return _0x3a2825(_0x23ed1a,_0x347e48-_0x1f1916._0x1d6431,_0x347e48-0x92,_0x38a9a4-0x5d);}return this[_0x2f04d0(_0x3d32be._0x322835,_0x3d32be._0x3e5993,0x1bb,_0x3d32be._0x35998b)](_0x50aa82,ANTHROPIC_MESSAGES_STREAM_SURFACE,_0x3df6ed);}},OPENAI_CHAT_COMPLETIONS_SURFACE=_0x3a2825(-0x21e,-0x1d8,-0x16e,-0x1f2),OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE=_0x40b3f8(-0xc3,0x4,0x13,-0x7b),OPENAI_RESPONSES_SURFACE=_0x40b3f8(-0x21,-0x16c,-0x136,-0xd2),OPENAI_RESPONSES_STREAM_SURFACE=_0x3a2825(-0x1b6,-0x230,-0x27e,-0x1c5),OPENAI_RESPONSES_WEBSOCKET_SURFACE=_0x3a2825(-0x30d,-0x27d,-0x1f7,-0x1dc),OpenAiApiError=class extends Error{[_0x40b3f8(-0x7f,-0x5,-0x11a,-0xd3)];[_0x40b3f8(-0xa6,-0x4f,-0x56,-0x44)];constructor(_0x1d2c2e,_0x997ef9,_0x55db1e){const _0xc2a707={_0x3743b4:0x44f,_0x208d09:0x4ba,_0x5acb9d:0x507,_0x2d025c:0x481,_0x3f5536:0x113,_0x4d99d1:0xf6,_0x480abf:0x19b},_0x4d1313={_0x5b37e9:0x18a,_0x284882:0x16d},_0x3b3986={_0x3a92f7:0xba,_0x38c6b0:0x123};super(_0x55db1e);function _0x5244c0(_0x4da044,_0x39f151,_0x402c9b,_0x5c4030){return _0x3a2825(_0x5c4030,_0x4da044-0x74a,_0x402c9b-_0x3b3986._0x3a92f7,_0x5c4030-_0x3b3986._0x38c6b0);}this[_0x5244c0(0x4c8,0x53a,_0xc2a707._0x3743b4,_0xc2a707._0x208d09)]=_0x5244c0(_0xc2a707._0x5acb9d,_0xc2a707._0x2d025c,0x5bc,0x471),this[_0x55af51(-_0xc2a707._0x3f5536,-0x5d,-_0xc2a707._0x4d99d1,-_0xc2a707._0x480abf)]=_0x1d2c2e;function _0x55af51(_0x38ae1d,_0x5cfd7a,_0x1daa41,_0x55ba11){return _0x40b3f8(_0x38ae1d-_0x4d1313._0x5b37e9,_0x5cfd7a,_0x1daa41-_0x4d1313._0x284882,_0x38ae1d- -0x40);}this[_0x5244c0(0x51e,0x4ac,0x5a3,0x4b6)]=_0x997ef9;}};function stringifySystem(_0x8b2276){const _0x5e3fd3={_0x54a71b:0x23e,_0x2d0e31:0x216},_0x327b78={_0x2a7d56:0x167},_0x9df3e2={_0x8d2384:0x1e3};function _0xb9bfd6(_0x4a117f,_0x5eff4d,_0x2c6a7a,_0x1c8e26){return _0x3a2825(_0x2c6a7a,_0x1c8e26-0x6e,_0x2c6a7a-_0x9df3e2._0x8d2384,_0x1c8e26-0x164);}function _0x118a0d(_0x3bf793,_0x3f14dd,_0x588f0d,_0x5010fd){return _0x3a2825(_0x5010fd,_0x3f14dd-0xed,_0x588f0d-_0x327b78._0x2a7d56,_0x5010fd-0xff);}return _0x8b2276[_0xb9bfd6(-0x269,-0x1bd,-0x16f,-_0x5e3fd3._0x54a71b)](_0x3e9ca7=>_0x3e9ca7[_0x118a0d(-0x275,-0x1a8,-0x242,-0xf9)])[_0x118a0d(-0x20b,-_0x5e3fd3._0x2d0e31,-0x296,-0x187)]('\x0a\x0a');}function createToolDefinitions(_0x30671d){const _0x3a11e3={_0xd447b4:0x3ec,_0xfe6bb0:0x496,_0x3dec3a:0x44e,_0x272a59:0x512},_0x269ad1={_0x23fe74:0x63,_0x428af8:0x8c,_0x93951a:0x61,_0x28b5bc:0x2,_0x321ef4:0x405,_0x1dbfbd:0x542,_0x1719e9:0x4c0,_0x292dbd:0x409},_0x45575a={_0x23f760:0x6fa,_0x36ecd5:0x12b,_0x48fccb:0xa9},_0x5b056a={_0x1b081b:0x60};function _0x45900b(_0x190c4a,_0x489a78,_0x6fdfc0,_0x4ffd03){return _0x40b3f8(_0x190c4a-0x4c,_0x4ffd03,_0x6fdfc0-_0x5b056a._0x1b081b,_0x190c4a- -0x1db);}function _0x1b6a9b(_0x5ebf71,_0x2231a2,_0x4e61a3,_0x3afdbc){return _0x3a2825(_0x5ebf71,_0x2231a2-_0x45575a._0x23f760,_0x4e61a3-_0x45575a._0x36ecd5,_0x3afdbc-_0x45575a._0x48fccb);}if(_0x30671d[_0x1b6a9b(0x3c3,0x459,0x4bb,_0x3a11e3._0xd447b4)]===0x0)return void 0x0;return _0x30671d[_0x1b6a9b(_0x3a11e3._0xfe6bb0,_0x3a11e3._0x3dec3a,_0x3a11e3._0x272a59,0x498)](_0x3c7cc7=>{const _0x172adc={_0xcd9705:0x4a9,_0x206fdb:0x1b9},_0x3652e3={_0x22ef0e:0x33};function _0xd8448a(_0x1730ce,_0x44ceeb,_0x56f031,_0xe6b48c){return _0x1b6a9b(_0x44ceeb,_0x1730ce-_0x3652e3._0x22ef0e,_0x56f031-0xd2,_0xe6b48c-0x5c);}function _0x27c935(_0x369d73,_0x5c0d3f,_0x284cfd,_0x3cc479){return _0x1b6a9b(_0x5c0d3f,_0x3cc479- -_0x172adc._0xcd9705,_0x284cfd-0xdf,_0x3cc479-_0x172adc._0x206fdb);}return{'type':_0x27c935(-_0x269ad1._0x23fe74,-_0x269ad1._0x428af8,-_0x269ad1._0x93951a,-_0x269ad1._0x28b5bc),'function':{'name':_0x3c7cc7[_0xd8448a(0x4ab,0x42a,_0x269ad1._0x321ef4,_0x269ad1._0x1dbfbd)],'description':_0x3c7cc7[_0xd8448a(0x3f5,0x3da,_0x269ad1._0x1719e9,_0x269ad1._0x292dbd)],'parameters':_0x3c7cc7['input_schema']}};});}function isImageToolResultBlock(_0x40afaa){const _0x192a90={_0x2cf57c:0x31,_0x19886b:0xfa,_0x2cbeb3:0x2a6,_0x53e136:0x7e,_0xf46e44:0x25,_0x17382c:0x53,_0x45f16f:0x11c,_0x275140:0xf7,_0x5a7f5e:0x126,_0x451e63:0xd6,_0x34c9a4:0xaa,_0x236fbe:0x79,_0x2c9fcf:0x62,_0x597828:0x1c,_0x4dcf5f:0x64,_0x3a25f7:0xb,_0x3fea82:0xf2,_0x34b66e:0x7b,_0x5de576:0x54,_0x2eb9c9:0x59},_0xa00767={_0xff5d6c:0xd3,_0x14e0fd:0x192};function _0x3aec0f(_0x547910,_0xa1270d,_0x40c1e9,_0x4f900d){return _0x3a2825(_0x40c1e9,_0x547910-0x102,_0x40c1e9-_0xa00767._0xff5d6c,_0x4f900d-_0xa00767._0x14e0fd);}if(typeof _0x40afaa!==_0x569fc9(-_0x192a90._0x2cf57c,-0xea,0x5b,-_0x192a90._0x19886b)||_0x40afaa===null||Array[_0x569fc9(-0x3a,-0xf5,0x0,0x98)](_0x40afaa))return![];function _0x569fc9(_0x296e4e,_0x339361,_0x5ab0b6,_0x525d32){return _0x3a2825(_0x5ab0b6,_0x296e4e-0x2d3,_0x5ab0b6-0x143,_0x525d32-0x155);}const _0x21c6a0=_0x40afaa;return _0x21c6a0[_0x3aec0f(-0x246,-0x1a7,-_0x192a90._0x2cbeb3,-0x258)]===_0x569fc9(_0x192a90._0x53e136,0x110,_0x192a90._0xf46e44,-_0x192a90._0x17382c)&&_0x21c6a0[_0x569fc9(-0x79,-_0x192a90._0x45f16f,-_0x192a90._0x275140,-0x9)]?.[_0x569fc9(-0x75,-0xa6,-_0x192a90._0x5a7f5e,-_0x192a90._0x451e63)]===_0x3aec0f(-_0x192a90._0x34c9a4,-0x10f,-0x16f,-0x64)&&typeof _0x21c6a0[_0x569fc9(-_0x192a90._0x236fbe,-0x82,-_0x192a90._0x2c9fcf,-0x36)][_0x569fc9(_0x192a90._0x597828,-_0x192a90._0x4dcf5f,0x5d,-_0x192a90._0x3a25f7)]===_0x569fc9(_0x192a90._0x3fea82,_0x192a90._0x34b66e,0x1a,_0x192a90._0x5de576)&&typeof _0x21c6a0[_0x569fc9(-0x79,-0x13e,-0x4a,-0x11e)][_0x569fc9(-0x43,_0x192a90._0x2eb9c9,0x62,0x5f)]==='string';}function getToolResultText(_0x3dde1b){const _0x22ee66={_0x4fbb21:0x2a9,_0x228ed8:0x2c3,_0x1a6042:0x234,_0x2c1d0c:0x4c0,_0x52871f:0x4b4,_0x499d73:0x477,_0x469fb6:0x3e8,_0x54c160:0x1fd,_0x2e10e5:0x556,_0x20ff44:0x618,_0xcfc931:0x37a},_0x3fb12e={_0x314fd2:0x365,_0x22d024:0x2c9,_0x449a1f:0x33d,_0x3fbafc:0x484,_0x9e8bfd:0x46d,_0x21c42b:0x4b8,_0x151524:0x31b},_0x2109cd={_0x4e32ff:0x55},_0x109eb9={_0x44b8b8:0x15a,_0x285c13:0x61},_0x12c511={_0x3a2280:0x182};if(typeof _0x3dde1b===_0x26f005(0x250,_0x22ee66._0x4fbb21,0x2e4,0x239))return _0x3dde1b;function _0x26f005(_0x146339,_0x26e473,_0x4099bf,_0x460af4){return _0x3a2825(_0x146339,_0x26e473-0x48a,_0x4099bf-0x8,_0x460af4-_0x12c511._0x3a2280);}function _0x839a89(_0x4e3c7d,_0x5f57db,_0xeee6d7,_0xba8361){return _0x3a2825(_0xeee6d7,_0x5f57db-0x760,_0xeee6d7-_0x109eb9._0x44b8b8,_0xba8361-_0x109eb9._0x285c13);}const _0x365d83=_0x3dde1b[_0x26f005(0x320,_0x22ee66._0x228ed8,_0x22ee66._0x1a6042,0x2f5)](_0x59ef8c=>{const _0x252462={_0x4e3e15:0x143,_0x530483:0x160};function _0x4f3750(_0x2e3fad,_0x293f23,_0x3c792a,_0x37cfb0){return _0x839a89(_0x2e3fad-0x15c,_0x3c792a-_0x2109cd._0x4e32ff,_0x293f23,_0x37cfb0-0x108);}function _0x1ede99(_0x2df86b,_0x9a6147,_0x13c3b1,_0x5d7747){return _0x839a89(_0x2df86b-0x10c,_0x9a6147- -_0x252462._0x4e3e15,_0x5d7747,_0x5d7747-_0x252462._0x530483);}return typeof _0x59ef8c===_0x1ede99(_0x3fb12e._0x314fd2,0x319,_0x3fb12e._0x22d024,_0x3fb12e._0x449a1f)&&_0x59ef8c!==null&&_0x59ef8c[_0x4f3750(0x3b9,_0x3fb12e._0x3fbafc,_0x3fb12e._0x9e8bfd,_0x3fb12e._0x21c42b)]===_0x1ede99(_0x3fb12e._0x151524,0x388,0x3ad,0x33f);})[_0x839a89(_0x22ee66._0x2c1d0c,_0x22ee66._0x52871f,_0x22ee66._0x499d73,_0x22ee66._0x469fb6)](_0x5ea3df=>_0x5ea3df['text'])[_0x26f005(0x1b4,0x187,0xef,_0x22ee66._0x54c160)]('\x0a\x0a')[_0x839a89(0x570,_0x22ee66._0x2e10e5,_0x22ee66._0x20ff44,0x56c)]();return _0x365d83['length']>0x0?_0x365d83:_0x839a89(_0x22ee66._0xcfc931,0x426,0x4e3,0x3dd);}function getToolResultImages(_0x29ddb0){const _0xb0df1b={_0x59a6c1:0x13b};function _0x5d6826(_0x532322,_0x2636f2,_0x306a40,_0x618cbd){return _0x40b3f8(_0x532322-_0xb0df1b._0x59a6c1,_0x532322,_0x306a40-0xfa,_0x306a40- -0x44);}return Array[_0x5d6826(-0x20c,-0xde,-0x169,-0x11a)](_0x29ddb0)?_0x29ddb0['filter'](isImageToolResultBlock):[];}function parseToolInput2(_0x5bd3c4){const _0x52e0b8={_0x341f99:0x56,_0x592774:0x7d};if(_0x5bd3c4['length']===0x0)return{};function _0xefffe9(_0x17ea69,_0x54492b,_0x4a7d04,_0x3611c9){return _0x40b3f8(_0x17ea69-0x1e0,_0x3611c9,_0x4a7d04-0x7e,_0x54492b-0x199);}try{return JSON[_0xefffe9(-0x6,_0x52e0b8._0x341f99,-0x69,_0x52e0b8._0x592774)](_0x5bd3c4);}catch{return _0x5bd3c4;}}function isResponsesReasoningItem(_0x499231){const _0x22c21a={_0x54d542:0x50e,_0x38a0db:0x4da,_0x49a4f0:0x4ef},_0x4e4b86={_0x344fa9:0x323},_0x90ba86={_0x9a3ebd:0x7a4,_0x32fc11:0x4e,_0x538dc4:0x1c5};function _0x301922(_0x260883,_0x4cc2d1,_0xfb1d6a,_0x1290f1){return _0x3a2825(_0x4cc2d1,_0x260883-_0x90ba86._0x9a3ebd,_0xfb1d6a-_0x90ba86._0x32fc11,_0x1290f1-_0x90ba86._0x538dc4);}function _0x5d308f(_0x553e4b,_0x413bc3,_0x2ced3c,_0x5346c2){return _0x40b3f8(_0x553e4b-0x128,_0x413bc3,_0x2ced3c-0x140,_0x5346c2-_0x4e4b86._0x344fa9);}return typeof _0x499231==='object'&&_0x499231!==null&&'type'in _0x499231&&_0x499231[_0x301922(0x45c,0x3aa,0x473,_0x22c21a._0x54d542)]===_0x301922(_0x22c21a._0x38a0db,0x484,0x49f,_0x22c21a._0x49a4f0);}function isResponsesMessageItem(_0x16679f){const _0x34a894={_0x3dba1f:0x3a2,_0x2c5c5f:0x2ec,_0x1dde40:0x472,_0x4d623e:0x2a1,_0x5c7920:0x2bb,_0x464a69:0x49e,_0xdc0b2e:0x501},_0x3acbb8={_0x2af7df:0x135};function _0x21efc9(_0x5869a2,_0x3820bb,_0x283cd3,_0x2215e1){return _0x3a2825(_0x2215e1,_0x5869a2-0x6a6,_0x283cd3-0x18d,_0x2215e1-0x144);}function _0x3d157a(_0xf9cfe0,_0x5f5cd2,_0x6c9cae,_0x46bd53){return _0x40b3f8(_0xf9cfe0-0x1bf,_0x5f5cd2,_0x6c9cae-_0x3acbb8._0x2af7df,_0x46bd53- -0x1a0);}return typeof _0x16679f===_0x21efc9(_0x34a894._0x3dba1f,_0x34a894._0x2c5c5f,0x42a,_0x34a894._0x1dde40)&&_0x16679f!==null&&'type'in _0x16679f&&_0x16679f[_0x3d157a(-0x238,-_0x34a894._0x4d623e,-_0x34a894._0x5c7920,-0x300)]===_0x21efc9(0x4b9,_0x34a894._0x464a69,0x3f9,_0x34a894._0xdc0b2e);}function isResponsesFunctionCallItem(_0x4ae950){const _0x3ce846={_0x497b6a:0x46e,_0x259a72:0x30a,_0x4515b0:0x295,_0x98540b:0x1c1,_0x1dd90a:0x24e},_0x29c11a={_0x23fc50:0x144},_0x3ba97a={_0x4776e0:0x1da};function _0x3d4695(_0x3b0997,_0x317cac,_0x51cab9,_0x3934ef){return _0x3a2825(_0x3934ef,_0x317cac-0x6c3,_0x51cab9-_0x3ba97a._0x4776e0,_0x3934ef-0x181);}function _0x3b7420(_0x4b3233,_0x3b5692,_0x457069,_0x2fffd9){return _0x3a2825(_0x3b5692,_0x4b3233-0x1e,_0x457069-_0x29c11a._0x23fc50,_0x2fffd9-0x154);}return typeof _0x4ae950===_0x3d4695(0x315,0x3bf,_0x3ce846._0x497b6a,0x422)&&_0x4ae950!==null&&'type'in _0x4ae950&&_0x4ae950[_0x3b7420(-0x32a,-_0x3ce846._0x259a72,-_0x3ce846._0x4515b0,-0x3d3)]===_0x3b7420(-0x186,-0x10e,-_0x3ce846._0x98540b,-_0x3ce846._0x1dd90a);}function createContentBlocks(_0x8f959b,_0x1993cc,_0x55e0c7){const _0x210114={_0x46c54d:0x256,_0x5acdc8:0x18e,_0x19a795:0x1b3,_0x265f58:0x17b,_0x57c90a:0x14c,_0x56f3cb:0xd9,_0xcc9a15:0xdf,_0x40f995:0x12d,_0x464eff:0xca,_0x2e9e58:0xd7,_0x538dec:0x13d,_0x3aabbd:0x127,_0x435d04:0x207,_0x3d0eba:0xf,_0x397e39:0xb5,_0x3724c6:0xf1},_0x1bb8e3={_0x149b4e:0x48},_0x544102=[];_0x55e0c7&&_0x55e0c7['length']>0x0&&_0x544102[_0x1ab613(0x43,0x5b,0xbe,0x114)]({'type':_0x2fa66e(0x1fa,_0x210114._0x46c54d,_0x210114._0x5acdc8,0x2ba),'summary':[],'text':_0x55e0c7});function _0x2fa66e(_0x5ab5d4,_0x4cd11a,_0x51b913,_0x4e4d94){return _0x40b3f8(_0x5ab5d4-0xb6,_0x4cd11a,_0x51b913-0xa3,_0x5ab5d4-0x1e6);}_0x8f959b['length']>0x0&&_0x544102[_0x2fa66e(0xfe,_0x210114._0x19a795,0xb6,0x12f)]({'type':'text','text':_0x8f959b});function _0x1ab613(_0x3b2c62,_0x3b19f5,_0x1a2ae6,_0x3a7975){return _0x40b3f8(_0x3b2c62-0x62,_0x1a2ae6,_0x1a2ae6-_0x1bb8e3._0x149b4e,_0x3b19f5-0x143);}for(const _0x106a0d of _0x1993cc){if(_0x106a0d['id']['trim']()['length']===0x0||_0x106a0d[_0x2fa66e(_0x210114._0x265f58,0x1ea,0x199,0x178)][_0x2fa66e(_0x210114._0x57c90a,_0x210114._0x56f3cb,0xe5,_0x210114._0xcc9a15)]['trim']()[_0x2fa66e(_0x210114._0x40f995,0x201,_0x210114._0x464eff,0x65)]===0x0)continue;_0x544102['push']({'type':_0x1ab613(0xb,_0x210114._0x2e9e58,_0x210114._0x538dec,0x1ad),'id':_0x106a0d['id'],'name':_0x106a0d['function']['name'],'input':parseToolInput2(_0x106a0d[_0x2fa66e(_0x210114._0x265f58,_0x210114._0x3aabbd,0x112,_0x210114._0x435d04)][_0x1ab613(_0x210114._0x3d0eba,_0x210114._0x397e39,0xbd,_0x210114._0x3724c6)])});}return _0x544102;}function createUsage(_0x17c047){const _0x2f72b2={_0x47b3d4:0x51,_0x57dd31:0x30,_0x3da942:0x67,_0x340ea2:0x83},_0x4bc26b={_0x28467c:0x165,_0x153f57:0x65},_0x2f82a8={_0x25eec9:0x23};function _0x5c0a38(_0x1005c0,_0x4e3d21,_0x5279c3,_0x16e54a){return _0x3a2825(_0x16e54a,_0x1005c0-0x262,_0x5279c3-0x16b,_0x16e54a-_0x2f82a8._0x25eec9);}function _0x2987cc(_0x4dd6ed,_0x1acf7e,_0x25abce,_0x6a1f3){return _0x40b3f8(_0x4dd6ed-_0x4bc26b._0x28467c,_0x6a1f3,_0x25abce-_0x4bc26b._0x153f57,_0x1acf7e-0x509);}return{'inputTokens':_0x17c047?.[_0x5c0a38(-_0x2f72b2._0x47b3d4,-_0x2f72b2._0x57dd31,0x4b,-_0x2f72b2._0x3da942)]??0x0,'outputTokens':_0x17c047?.[_0x5c0a38(-_0x2f72b2._0x340ea2,0x15,0xc,-0x25)]??0x0,..._0x17c047?.['completion_tokens_details']?.['reasoning_tokens']!==void 0x0?{'reasoningTokens':_0x17c047['completion_tokens_details']['reasoning_tokens']}:{}};}function resolveReasoningVisibility2(_0x5a1c00){const _0x558342={_0x3bf46e:0x18b,_0x42450b:0x183,_0x200d81:0x25a,_0x358498:0x3cb,_0x3e867f:0x34a,_0x30505b:0x279,_0x1d482e:0x391},_0x36588e={_0x2d53be:0x1e1,_0x525992:0x462};function _0x3cf022(_0x12befb,_0x2ff0f1,_0x2d0b6a,_0x455cf2){return _0x40b3f8(_0x12befb-0x14a,_0x2ff0f1,_0x2d0b6a-_0x36588e._0x2d53be,_0x455cf2-_0x36588e._0x525992);}function _0x41d6a0(_0x63d5ad,_0x25ea0f,_0x18682b,_0x53ddba){return _0x3a2825(_0x63d5ad,_0x18682b-0x44d,_0x18682b-0x1ed,_0x53ddba-0x2);}return _0x5a1c00[_0x41d6a0(0x1cf,_0x558342._0x3bf46e,_0x558342._0x42450b,_0x558342._0x200d81)]?.[_0x3cf022(0x2c1,_0x558342._0x358498,0x344,_0x558342._0x3e867f)]??_0x3cf022(_0x558342._0x30505b,0x35f,_0x558342._0x1d482e,0x32a);}function isUserVisibleReasoning(_0x318570){const _0x22cc7b={_0x4fd055:0xca},_0x5d0e00={_0x63c8f0:0x1b2};function _0x330407(_0x5879ea,_0x4c552d,_0x2d84d3,_0x4b3393){return _0x40b3f8(_0x5879ea-0x1c3,_0x4b3393,_0x2d84d3-0xac,_0x5879ea-_0x5d0e00._0x63c8f0);}return resolveOpenAiReasoningConfig(_0x318570['reasoning'])!==void 0x0&&resolveReasoningVisibility2(_0x318570)===_0x330407(0x7a,_0x22cc7b._0x4fd055,-0x47,0xc8);}function createChatRequestBody(_0x64c0eb,_0x2cb871){const _0x4de9f0={_0x2fc9d2:0x18d,_0x1ca4ee:0x10c,_0x1a1ba7:0xdc,_0x305e58:0x134,_0x26817e:0x1ee,_0x163f6b:0x1c5,_0x15108d:0x18e,_0x544c1f:0x1d5,_0x4b15a8:0x24d,_0x447354:0x204,_0x33b85d:0x1,_0x45c2cd:0x4b,_0x3a8f6a:0x9,_0x53bca5:0x145,_0x235f54:0x1db,_0x4d7e8c:0x167,_0x15a47c:0xf1,_0x54cc6c:0x205,_0x51c752:0x275,_0xe45316:0x7f,_0x566404:0x9a,_0x2ae0e1:0x1c2,_0x4da038:0x1f6,_0x583703:0x167,_0x2df28a:0xce,_0x3c9a87:0x124,_0x74da1c:0x16c,_0xadee7d:0x1de,_0x60722d:0x108,_0x3a83c2:0x12a,_0x19ccf5:0x23a,_0x1fd222:0x197,_0x7b55d1:0x10b,_0x8b93c3:0xa6,_0x409a55:0x14c,_0x45eb89:0x19c,_0x4db44e:0xa8,_0x40383c:0x1b,_0x33ceab:0x131,_0x4677ff:0x16a,_0x28a8ba:0x155,_0x271da9:0xa7,_0x32a98b:0x105,_0x3db687:0xd6,_0x5e4b6c:0x233,_0x1e6b62:0x296,_0x4d1f15:0x266,_0x1261c5:0xea,_0x3664ee:0xd0,_0x3f4cd7:0x70,_0x3a3f21:0x1bc,_0xc610bc:0x1c9,_0x5c8e9e:0x16b,_0x5aa8c6:0xa7,_0x132b68:0x43,_0x4b547a:0x3b,_0x596c29:0x85,_0x2266cf:0x19f,_0x352728:0x2a0,_0x4ac441:0x216,_0x5bb0c9:0x14a,_0x113b6f:0x1ca,_0x89760a:0xe5,_0x276d89:0x118,_0x3941ff:0xf0,_0x563adc:0xaf,_0x1ba476:0x12c,_0x5d4f70:0x14c,_0x2c3d82:0x1e3,_0x3793e3:0x206,_0x23135c:0x117,_0x1ae7d9:0x1bd,_0x5a1299:0x179,_0x51526e:0x7e,_0xa4e2cf:0xc6,_0x30ae33:0x253,_0x500725:0x3},_0x530b6e={_0x97f976:0x24f,_0x3540fd:0x191,_0x463298:0xd6,_0x4b1a1b:0x16f,_0x6b2252:0x135,_0x1d272a:0x1ef,_0x361329:0xd3,_0x367ca2:0xd4,_0x571d99:0x1ec,_0x44dc7b:0x191,_0xadb1d3:0x1b6,_0x40e778:0x331,_0x2f933d:0x34d,_0x16cf96:0x369,_0x52fc39:0x454,_0x265462:0x3b7,_0x37e2cd:0x194,_0x4c6df1:0x336,_0x5999fb:0x310,_0x7888ab:0x1d4,_0xa7bdad:0x2b4,_0x15a7b3:0x267,_0x31640c:0x162,_0x4371e6:0x169,_0x8f552e:0x243,_0x207137:0x34f,_0x30d4ec:0x20c,_0xb6ec95:0x2a8,_0x2633c0:0x227,_0x3b8b14:0x191,_0x1bba5a:0x104,_0x4042cc:0x156,_0x5e8c8f:0x1ad},_0x3e2391={_0x65e759:0x58,_0x44317a:0x214},_0x2b9c42={_0x3357d6:0x134},_0x5b0977=[],_0x4e34af=stringifySystem(_0x64c0eb[_0x15cf18(-0x221,-_0x4de9f0._0x2fc9d2,-0x1f6,-0x17f)]);function _0x15cf18(_0x2e7b52,_0x2bc273,_0x52bb70,_0x5d3d32){return _0x3a2825(_0x52bb70,_0x2bc273-0x1ac,_0x52bb70-_0x2b9c42._0x3357d6,_0x5d3d32-0x2);}_0x4e34af[_0x15cf18(-_0x4de9f0._0x1ca4ee,-0xf5,-_0x4de9f0._0x1a1ba7,-_0x4de9f0._0x305e58)]>0x0&&_0x5b0977[_0x15cf18(-_0x4de9f0._0x26817e,-0x124,-0xb9,-0x1ac)]({'role':_0x15cf18(-_0x4de9f0._0x163f6b,-0x18d,-_0x4de9f0._0x15108d,-_0x4de9f0._0x544c1f),'content':_0x4e34af});function _0x43aa34(_0x2255c3,_0x32cbac,_0x390eed,_0x57cffc){return _0x40b3f8(_0x2255c3-_0x3e2391._0x65e759,_0x57cffc,_0x390eed-0x145,_0x390eed-_0x3e2391._0x44317a);}for(const _0x23ac03 of _0x64c0eb[_0x43aa34(0x218,_0x4de9f0._0x4b15a8,_0x4de9f0._0x447354,0x186)]){const _0x35f06c=[],_0x516c28=[],_0x18f3a7=[],_0x396db4=()=>{const _0x8f679={_0x34cf46:0x43,_0x749846:0x22a},_0x88cffb={_0xb00409:0x3cc,_0x1b91d6:0xf9};function _0x13ec4f(_0x23e8a4,_0x1bf637,_0x41af8e,_0x52c7e4){return _0x15cf18(_0x23e8a4-0x125,_0x52c7e4-_0x88cffb._0xb00409,_0x1bf637,_0x52c7e4-_0x88cffb._0x1b91d6);}function _0x14d5b5(_0x1aecb8,_0x136d03,_0x3f1ca5,_0x29be57){return _0x15cf18(_0x1aecb8-_0x8f679._0x34cf46,_0x136d03-_0x8f679._0x749846,_0x1aecb8,_0x29be57-0x1e0);}if(_0x23ac03[_0x14d5b5(_0x530b6e._0x97f976,_0x530b6e._0x3540fd,0x23e,_0x530b6e._0x463298)]===_0x13ec4f(0x25d,0x324,0x32d,0x2c7)){if(_0x35f06c[_0x14d5b5(0x10c,0x135,0xad,0x1a6)]===0x0&&_0x516c28[_0x14d5b5(_0x530b6e._0x4b1a1b,_0x530b6e._0x6b2252,_0x530b6e._0x1d272a,0xc0)]===0x0)return;_0x5b0977['push']({'role':'assistant','content':_0x35f06c['length']>0x0?_0x35f06c[_0x14d5b5(_0x530b6e._0x463298,_0x530b6e._0x361329,_0x530b6e._0x367ca2,0x15f)]('\x0a\x0a'):null,..._0x516c28['length']>0x0?{'tool_calls':_0x516c28['splice'](0x0)}:{}}),_0x35f06c[_0x14d5b5(_0x530b6e._0x571d99,0x135,0x175,_0x530b6e._0x44dc7b)]=0x0;return;}if(_0x23ac03[_0x14d5b5(0x1b1,0x191,_0x530b6e._0xadb1d3,0x1d0)]===_0x13ec4f(0x28d,_0x530b6e._0x40e778,0x2a1,_0x530b6e._0x2f933d)){if(_0x18f3a7['length']===0x0)return;const _0x45c259=_0x18f3a7[_0x13ec4f(_0x530b6e._0x16cf96,_0x530b6e._0x52fc39,0x3d8,_0x530b6e._0x265462)](_0x34e274=>_0x34e274[_0x14d5b5(-0x21,0x8e,0x52,0x3d)]===_0x13ec4f(0x2f8,0x24b,0x258,0x30d));_0x5b0977[_0x14d5b5(0x1ae,0x106,0x14d,_0x530b6e._0x37e2cd)]({'role':_0x13ec4f(_0x530b6e._0x4c6df1,0x2f0,0x374,_0x530b6e._0x2f933d),'content':_0x45c259?_0x18f3a7[_0x13ec4f(0x193,_0x530b6e._0x5999fb,_0x530b6e._0x7888ab,0x266)](0x0):_0x18f3a7[_0x13ec4f(_0x530b6e._0xa7bdad,0x1d3,0x31e,0x266)](0x0)[_0x14d5b5(_0x530b6e._0x15a7b3,0x20f,0x26f,0x20f)](_0x4639f4=>_0x4639f4[_0x13ec4f(0x236,0x275,0x256,0x230)]===_0x14d5b5(0x149,0x141,0x131,0x11b))[_0x14d5b5(_0x530b6e._0x31640c,0x12a,0x104,0x165)](_0x472648=>_0x472648[_0x14d5b5(0xcf,0x141,0x210,0x146)])[_0x14d5b5(0x89,0xd3,0x193,_0x530b6e._0x4371e6)]('\x0a\x0a')});return;}if(_0x35f06c['length']===0x0)return;_0x5b0977[_0x13ec4f(_0x530b6e._0x8f552e,_0x530b6e._0x207137,_0x530b6e._0x30d4ec,_0x530b6e._0xb6ec95)]({'role':_0x23ac03[_0x14d5b5(_0x530b6e._0x2633c0,_0x530b6e._0x3b8b14,0x207,_0x530b6e._0x1bba5a)],'content':_0x35f06c['join']('\x0a\x0a')}),_0x35f06c[_0x14d5b5(0xb5,0x135,_0x530b6e._0x4042cc,_0x530b6e._0x5e8c8f)]=0x0;};for(const _0x50dc22 of normalizeContent(_0x23ac03[_0x15cf18(0x46,-_0x4de9f0._0x33b85d,-0xd3,_0x4de9f0._0x45c2cd)])){if(_0x50dc22[_0x43aa34(0x11d,-_0x4de9f0._0x3a8f6a,0xb4,_0x4de9f0._0x53bca5)]===_0x43aa34(0xb2,_0x4de9f0._0x235f54,_0x4de9f0._0x4d7e8c,0xd6)){_0x23ac03[_0x43aa34(_0x4de9f0._0x15a47c,_0x4de9f0._0x54cc6c,0x1b7,_0x4de9f0._0x51c752)]===_0x15cf18(-0x145,-_0x4de9f0._0xe45316,-0xcd,-0x39)?_0x18f3a7[_0x43aa34(0x84,0x1d0,0x12c,_0x4de9f0._0x566404)]({'type':_0x43aa34(_0x4de9f0._0x2ae0e1,_0x4de9f0._0x4da038,0x167,0x219),'text':_0x50dc22[_0x43aa34(0x22a,0x177,_0x4de9f0._0x583703,0x10b)]}):_0x35f06c[_0x15cf18(-_0x4de9f0._0x2df28a,-_0x4de9f0._0x3c9a87,-_0x4de9f0._0x74da1c,-_0x4de9f0._0xadee7d)](_0x50dc22['text']);continue;}if(_0x23ac03['role']==='user'&&_0x50dc22[_0x15cf18(-0xf7,-0x19c,-0x101,-0x1df)]===_0x43aa34(0x195,_0x4de9f0._0x60722d,0x1a7,0x204)){_0x18f3a7[_0x15cf18(-0x7e,-0x124,-_0x4de9f0._0x3a83c2,-0x165)]({'type':_0x43aa34(_0x4de9f0._0x19ccf5,0x166,0x191,0xd9),'image_url':{'url':_0x15cf18(-0xde,-0x98,-0x30,0x22)+_0x50dc22['source'][_0x15cf18(-_0x4de9f0._0x1fd222,-_0x4de9f0._0x7b55d1,-0xd6,-_0x4de9f0._0x8b93c3)]+_0x43aa34(_0x4de9f0._0x409a55,0x182,0x195,_0x4de9f0._0x45eb89)+_0x50dc22[_0x43aa34(0x14e,_0x4de9f0._0x4db44e,0xb0,_0x4de9f0._0x40383c)][_0x15cf18(-_0x4de9f0._0x33ceab,-_0x4de9f0._0x4677ff,-0x11d,-0x120)]}});continue;}if(_0x50dc22[_0x15cf18(-0x21a,-_0x4de9f0._0x45eb89,-0x1d0,-0x219)]==='tool_use'){_0x516c28[_0x15cf18(-0xdc,-_0x4de9f0._0x3c9a87,-_0x4de9f0._0x28a8ba,-0x139)]({'id':_0x50dc22['id'],'type':_0x15cf18(-0xd5,-_0x4de9f0._0x271da9,-_0x4de9f0._0x32a98b,-0x87),'function':{'name':_0x50dc22[_0x15cf18(-_0x4de9f0._0x4db44e,-_0x4de9f0._0x3db687,-0x10b,-0x93)],'arguments':JSON['stringify'](_0x50dc22[_0x43aa34(_0x4de9f0._0x5e4b6c,0x18f,0x234,_0x4de9f0._0x1e6b62)]??{})}});continue;}if(_0x50dc22[_0x15cf18(-_0x4de9f0._0x28a8ba,-0x19c,-0x1b4,-_0x4de9f0._0x4d1f15)]!=='tool_result')continue;_0x396db4(),_0x5b0977['push']({'role':_0x43aa34(_0x4de9f0._0x1261c5,_0x4de9f0._0x3664ee,0xe1,_0x4de9f0._0x3f4cd7),'content':getToolResultText(_0x50dc22['content']),'tool_call_id':_0x50dc22[_0x43aa34(_0x4de9f0._0x3a3f21,_0x4de9f0._0xc610bc,_0x4de9f0._0x5c8e9e,0x1db)]});const _0x3edc36=getToolResultImages(_0x50dc22[_0x15cf18(_0x4de9f0._0x5aa8c6,-0x1,-_0x4de9f0._0x132b68,_0x4de9f0._0x4b547a)]);_0x3edc36[_0x43aa34(_0x4de9f0._0x596c29,0x1a1,0x15b,0x1bd)]>0x0&&_0x5b0977['push']({'role':_0x43aa34(0x281,_0x4de9f0._0x2266cf,0x1d1,_0x4de9f0._0x352728),'content':[{'type':_0x43aa34(0x10a,_0x4de9f0._0x4ac441,0x167,_0x4de9f0._0x5bb0c9),'text':_0x43aa34(_0x4de9f0._0x113b6f,0xd6,0x14a,0x1e6)+_0x50dc22[_0x15cf18(-0xbe,-_0x4de9f0._0x89760a,-_0x4de9f0._0x276d89,-_0x4de9f0._0x3941ff)]+'.'},..._0x3edc36['map'](_0x57ccec=>({'type':_0x43aa34(0x1a9,0x1bf,0x191,0x1d5),'image_url':{'url':_0x43aa34(0x1f9,0x15d,0x1b8,0x190)+_0x57ccec[_0x15cf18(-0x1bf,-0x1a0,-0x243,-0x25d)][_0x15cf18(-0xcd,-0x10b,-0x199,-0x112)]+_0x15cf18(-0xa1,-0xbb,-0x185,-0x88)+_0x57ccec[_0x43aa34(-0x1,0xe9,0xb0,0x70)][_0x15cf18(-0x20e,-0x16a,-0x123,-0xac)]}}))]});}_0x396db4();}const _0x56890e=resolveOpenAiReasoningConfig(_0x64c0eb[_0x43aa34(_0x4de9f0._0x563adc,_0x4de9f0._0x1ba476,0x132,_0x4de9f0._0x5d4f70)]);return{'model':_0x64c0eb[_0x15cf18(-0xf1,-0x19f,-_0x4de9f0._0x2c3d82,-_0x4de9f0._0x3793e3)],'messages':_0x5b0977,'stream':_0x2cb871,..._0x56890e?{'max_completion_tokens':_0x64c0eb[_0x43aa34(0x216,_0x4de9f0._0x23135c,_0x4de9f0._0x1ae7d9,_0x4de9f0._0x5a1299)]}:{'max_tokens':_0x64c0eb[_0x15cf18(-_0x4de9f0._0x51526e,-0x93,-0xd6,-0x59)]},..._0x56890e?.[_0x43aa34(0xba,0x172,0xc6,0x12b)]?{'reasoning_effort':_0x56890e[_0x43aa34(0x156,0x16d,_0x4de9f0._0xa4e2cf,0x15a)]}:{},...createToolDefinitions(_0x64c0eb[_0x43aa34(0x20d,0x2b3,_0x4de9f0._0x30ae33,0x1b1)])?{'tools':createToolDefinitions(_0x64c0eb[_0x15cf18(-0x93,_0x4de9f0._0x500725,0xc9,-0x4e)])}:{}};}function createResponsesRequestBody(_0x1ad2c0,_0x5e6a22){return{...toOpenAiResponsesRequest(_0x1ad2c0),..._0x5e6a22?{'stream':!![]}:{},'store':![]};}function createOpenAiResponsesWebSocketEvent(_0x4aaeb0,_0x1c1084={}){const _0x42797a={_0x1cb13a:0x3aa,_0x17d311:0x447,_0x4fc221:0x425,_0x4a2299:0x188,_0x5e3665:0x169,_0x405668:0x162,_0x208430:0xf4,_0x111b89:0x1ee,_0x39450b:0x563},_0x5c6966={_0x14ccfc:0x1b0,_0x244d62:0x559};function _0x1677f7(_0x6db676,_0x70a04e,_0x22ee22,_0x3c983a){return _0x40b3f8(_0x6db676-0x1dc,_0x3c983a,_0x22ee22-0xb2,_0x6db676-0x168);}const _0x186fd2=toOpenAiResponsesRequest(_0x4aaeb0);function _0x270bb7(_0x42feeb,_0x3ead88,_0x132a97,_0x4323bb){return _0x40b3f8(_0x42feeb-_0x5c6966._0x14ccfc,_0x4323bb,_0x132a97-0x19b,_0x132a97-_0x5c6966._0x244d62);}return{'type':_0x270bb7(_0x42797a._0x1cb13a,_0x42797a._0x17d311,_0x42797a._0x4fc221,0x415),..._0x186fd2,..._0x1c1084[_0x1677f7(_0x42797a._0x4a2299,_0x42797a._0x5e3665,0x19c,0x1a4)]?{'input':_0x1c1084[_0x1677f7(0x188,_0x42797a._0x405668,_0x42797a._0x208430,_0x42797a._0x111b89)]}:{},..._0x1c1084['previousResponseId']?{'previous_response_id':_0x1c1084[_0x270bb7(0x559,_0x42797a._0x39450b,0x590,0x527)]}:{},'store':![]};}function normalizeAssistantContent(_0x5bd459){const _0xd24036={_0x5b735d:0x447,_0x324f69:0x48a,_0x5b72c9:0x4b0},_0xabd880={_0x521fad:0x171,_0x537f62:0x2b4,_0x545afc:0x344,_0x475c8b:0x286},_0x4a9858={_0x371c8d:0xf2},_0x300233={_0x338162:0x2b,_0x15cb0e:0x574};function _0x528d2c(_0x1e4ad2,_0x1641c3,_0x4c23ee,_0x27770d){return _0x40b3f8(_0x1e4ad2-_0x300233._0x338162,_0x1e4ad2,_0x4c23ee-0xf,_0x27770d-_0x300233._0x15cb0e);}function _0x57ba0f(_0x47fcc2,_0x119552,_0x44ca6e,_0x44ac2d){return _0x40b3f8(_0x47fcc2-_0x4a9858._0x371c8d,_0x44ca6e,_0x44ca6e-0x133,_0x47fcc2- -0x1e0);}if(typeof _0x5bd459==='string')return _0x5bd459;if(!Array['isArray'](_0x5bd459))return'';return _0x5bd459[_0x528d2c(_0xd24036._0x5b735d,_0xd24036._0x324f69,0x4cc,_0xd24036._0x5b72c9)](_0x4a29f7=>{const _0x26d664={_0x117989:0x7f},_0x35cff8={_0x51ab30:0x39,_0xc23a2b:0x1db};function _0x4f89a3(_0x15af05,_0x377036,_0x1afb7d,_0x44890e){return _0x528d2c(_0x1afb7d,_0x377036-_0x35cff8._0x51ab30,_0x1afb7d-0x18d,_0x15af05- -_0x35cff8._0xc23a2b);}function _0x206eaa(_0x368162,_0x4ff68d,_0x35f9af,_0x29e0b8){return _0x528d2c(_0x35f9af,_0x4ff68d-0x132,_0x35f9af-_0x26d664._0x117989,_0x368162- -0x457);}return _0x4a29f7[_0x4f89a3(0x239,_0xabd880._0x521fad,0x1a4,_0xabd880._0x537f62)]==='text'?_0x4a29f7['text']:_0x4a29f7[_0x4f89a3(0x29f,0x2a8,_0xabd880._0x545afc,_0xabd880._0x475c8b)];})[_0x528d2c(0x4ea,0x4f0,0x3f0,0x459)]('');}function normalizeResponsesMessageContent(_0x25ea79){const _0x32c5d4={_0x2bdba1:0x16f,_0x136971:0x107,_0x453ed5:0x176,_0x20e63b:0x16c,_0x4d0236:0x1da},_0x4ae6db={_0x1cde11:0x20d,_0x35d442:0x1f0,_0x5bf357:0x1d1,_0x3e2513:0x2d6,_0x1e29b3:0x393,_0x5779d5:0x134,_0x15bd30:0x279,_0x38c78c:0x16f,_0x149e80:0x237,_0x2d4f38:0x1f2,_0x42de3d:0x256,_0x2a908f:0x234,_0x2ac499:0x176,_0x1aa6d8:0x1ce,_0x2e30ee:0x1d7,_0x56e56d:0x1a3,_0x451286:0xcd},_0x2ad50e={_0x27642f:0x234,_0xbc742e:0x99},_0x113759={_0xdafce5:0x1e9,_0x59bc49:0x51};function _0x565695(_0xdcc50b,_0x1b4248,_0x8c6f52,_0x1a2155){return _0x40b3f8(_0xdcc50b-_0x113759._0xdafce5,_0x1b4248,_0x8c6f52-0x14b,_0x8c6f52- -_0x113759._0x59bc49);}if(!Array[_0x565695(-_0x32c5d4._0x2bdba1,-_0x32c5d4._0x136971,-_0x32c5d4._0x453ed5,-0x169)](_0x25ea79))return'';function _0x20ca9f(_0x346ca2,_0x37e8d7,_0x1ef721,_0x29a564){return _0x3a2825(_0x346ca2,_0x29a564-_0x2ad50e._0x27642f,_0x1ef721-0x10e,_0x29a564-_0x2ad50e._0xbc742e);}return _0x25ea79['map'](_0xe5a356=>{const _0x2ee85c={_0x1fedd4:0x1a6,_0x1eb3a5:0x125},_0x7a041c={_0x445dd3:0x113};function _0x3acda3(_0x55263f,_0x232353,_0x2f522c,_0x1ed6f1){return _0x565695(_0x55263f-_0x7a041c._0x445dd3,_0x55263f,_0x232353- -0x83,_0x1ed6f1-0xb);}if(!_0xe5a356||typeof _0xe5a356!==_0x3acda3(-_0x4ae6db._0x1cde11,-_0x4ae6db._0x35d442,-_0x4ae6db._0x5bf357,-0x285))return'';const _0x1ba5fa=_0xe5a356;if(_0x1ba5fa[_0x7fa775(-_0x4ae6db._0x3e2513,-_0x4ae6db._0x1e29b3,-_0x4ae6db._0x1e29b3,-0x328)]===_0x7fa775(-_0x4ae6db._0x5779d5,-0x1dd,-0x17f,-0xe4)&&typeof _0x1ba5fa[_0x7fa775(-0x223,-0x2f5,-0x1b9,-_0x4ae6db._0x15bd30)]===_0x7fa775(-_0x4ae6db._0x38c78c,-_0x4ae6db._0x149e80,-0x247,-_0x4ae6db._0x2d4f38))return _0x1ba5fa['text'];function _0x7fa775(_0x4181f2,_0x33cd5f,_0x2d1cf7,_0x306f6c){return _0x565695(_0x4181f2-_0x2ee85c._0x1fedd4,_0x2d1cf7,_0x4181f2- -_0x2ee85c._0x1eb3a5,_0x306f6c-0xa);}if(_0x1ba5fa[_0x3acda3(-_0x4ae6db._0x42de3d,-_0x4ae6db._0x2a908f,-_0x4ae6db._0x2ac499,-0x27e)]==='refusal'&&typeof _0x1ba5fa[_0x3acda3(-0x143,-_0x4ae6db._0x1aa6d8,-0x18a,-_0x4ae6db._0x2e30ee)]===_0x3acda3(-_0x4ae6db._0x56e56d,-_0x4ae6db._0x451286,-0xb9,-0x15d))return _0x1ba5fa['refusal'];return'';})[_0x565695(-0xb1,-0x234,-_0x32c5d4._0x20e63b,-_0x32c5d4._0x4d0236)]('');}function extractOpenAiReasoningText(_0x5205e8){const _0x6d3427={_0xd7c9d3:0x529,_0x23f902:0x5dd,_0x27f737:0x6ac,_0x6b11a:0x50b,_0x2b927e:0x65c,_0x261b14:0x5c0,_0x59e195:0x1ea,_0x20eb20:0x229},_0x13d945={_0x351260:0x5d6},_0x1a629f={_0x439328:0x344};function _0x175f4f(_0x25fb9a,_0x204b1c,_0x1bcbd0,_0x1bb53c){return _0x40b3f8(_0x25fb9a-0x163,_0x1bcbd0,_0x1bcbd0-0x124,_0x1bb53c-_0x1a629f._0x439328);}if(typeof _0x5205e8[_0x32089c(_0x6d3427._0xd7c9d3,0x4de,0x4f4,0x477)]===_0x32089c(_0x6d3427._0x23f902,_0x6d3427._0x27f737,_0x6d3427._0x6b11a,_0x6d3427._0x2b927e))return _0x5205e8[_0x32089c(0x529,0x458,0x4ce,_0x6d3427._0x261b14)];if(!Array['isArray'](_0x5205e8['content']))return'';function _0x32089c(_0x30967f,_0x499401,_0x386b31,_0x45cfb2){return _0x40b3f8(_0x30967f-0xc6,_0x386b31,_0x386b31-0x15f,_0x30967f-_0x13d945._0x351260);}return _0x5205e8['content']['filter'](_0x3e12de=>_0x3e12de[_0x32089c(0x476,0x417,0x4bc,0x41e)]===_0x32089c(0x517,0x503,0x4b5,0x59b)&&typeof _0x3e12de[_0x32089c(0x529,0x5da,0x529,0x45e)]===_0x175f4f(0x282,0x33a,0x39b,0x34b))['map'](_0x3c8842=>_0x3c8842[_0x175f4f(0x34b,0x2b9,0x2a7,0x297)]??'')[_0x175f4f(_0x6d3427._0x59e195,0x20b,0x2eb,_0x6d3427._0x20eb20)]('');}function createOpenAiReasoningBlock(_0x5e6ab8){const _0x12d414={_0x5b2c96:0x181,_0x42d5ff:0x154,_0x41bd49:0x1ae,_0x1cf63e:0x110,_0xd3f174:0x10c},_0x2bcf2b={_0x197597:0x16d};function _0x57d2d5(_0x5a9262,_0x39b570,_0x226eb0,_0x348c18){return _0x40b3f8(_0x5a9262-0x17c,_0x226eb0,_0x226eb0-0x41,_0x348c18-_0x2bcf2b._0x197597);}function _0x2ccddf(_0x5ce728,_0x4a489d,_0x310e47,_0x4a88bc){return _0x3a2825(_0x310e47,_0x4a88bc-0x195,_0x310e47-0xf8,_0x4a88bc-0x195);}const _0x16c7de=extractOpenAiReasoningText(_0x5e6ab8);return{'type':_0x57d2d5(0x145,0x114,0x102,_0x12d414._0x5b2c96),'summary':structuredClone(_0x5e6ab8[_0x57d2d5(_0x12d414._0x42d5ff,0x19f,0x142,_0x12d414._0x41bd49)]??[]),..._0x5e6ab8['id']?{'id':_0x5e6ab8['id']}:{},..._0x5e6ab8['encrypted_content']?{'encryptedContent':_0x5e6ab8[_0x2ccddf(-0x13a,-0x7b,-0x175,-0x13a)]}:{},..._0x16c7de[_0x2ccddf(-0x198,-_0x12d414._0x1cf63e,-0x186,-_0x12d414._0xd3f174)]>0x0?{'text':_0x16c7de}:{}};}function _0x48d2(){const _0x1f4da8=['C2LNBMf0DxjL','y29UDgvUDf9IBg9JAW','B2jQzwn0','AM9PBG','ywjVCNrLza','yxv0Ag9YAxPHDgLVBG','DMLZAwjPBgL0Eq','Bwf4x291Dhb1Df90B2TLBNm','Dg9VBenHBgXZ','ywnXDwLYzvjLC3bVBNnLC1nVy2TLDeXVy2S','C2HVDwXKuMv0CNLszxnWB25Zzq','CMvZCg9UC2uUB3v0Chv0x3rLEhqUzgvSDge','C3rYzwfT','yxn5BMnjDgvYyxrVCG','zw5KCg9PBNrZ','ywrKrxzLBNrmAxn0zw5LCG','y29TCgXLDgvwAwftDxjMywnL','y29WAwXVDc1JAgf0lZaUmZeUmW','Dg9tDhjPBMC','DMfSDwvZ','l3yXl21LC3nHz2vZ','C2vUzfjHD1jLCxvLC3q','ChjLCgfYzunOyxrszxf1zxn0','Aw52ywXPzgf0zq','Aw52ywXPzgf0zvjLC3bVBNnLC1nVy2TLDfnLC3nPB24','l2nVCgLSB3rFAw50zxjUywWVDJiVDg9Rzw4','y3jLzgvUDgLHBa','y29UC3vTzvnZzuv2zw50','DNnJB2rLlZeUmta0lJi','CMvHC29U','CMvHC29UAw5Nx2nVBNrLBNq','CMvZzxq','vw5RBM93BIbTB2rLBcbZDxjMywnLoIa','y29TCgXLDgLVBL90B2TLBNm','CMvHC29UAw5NsxrLBxm','C3rYzwfTvMLHu3vYzMfJzq','CMvMDxnHBa','qw50AhjVCgLJigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','C3rYzwfTv2vIu29JA2v0u3vYzMfJzq','C2vUza','C2L6zq','y29UDgvUDc10ExbL','Aw5WDxrFDgv4Da','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzgvSDge','BgfZDfjLC3bVBNnLswq','DNnJB2rLlZeUmta2lJe','B3v0Chv0x3rVA2vUC19KzxrHAwXZ','mJq1mde3mK1lz0zerG','yxbWBhLnB2rLBerLzMf1BhrZ','C29JA2v0','Dg9VBf9JywXSCW','u3vYzMfJzsa','ywrK','y29TCgXLDgvwAwfdAgf0q29TCgXLDgLVBNntDxjMywnL','ChvZAa','zw5JCNLWDgvKx2nVBNrLBNq','DhjHBNnWB3j0','ChjVDMLKzxjtDgf0zq','C2vZC2LVBK1HBMfNzxi','BwvZC2fNzuLK','CMvHC29UAw5N','sw52ywXPzcbxzwjtB2nRzxqGBwvZC2fNztOG','yNvPBgrszxnWB25ZzxntB2nRzxrfDMvUDa','y2f0y2G','DxnHz2u','mti1nJbvrhz5zKO','C3vTBwfYEv90zxH0','yxbP','C3rYzwfTvMLHuM91DgvY','zxjYB3i','Dg9VBfvZzvn0yxj0rw1PDhrLza','z2L0AhvIqxbPvxjS','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBKTLEq','sw52ywXPzcbYzxf1zxn0oIa','y29UBMvJDf9MywLSzwq','C3rHDhvZ','B3bLBMfPlxjLC3bVBNnLCW','zgLZywjSzwq','r2L0shvIiefqssbLCNjVCIa','BwvKAwfFDhLWzq','y2HHDenVBxbSzxrPB25Zugf0Aa','yMvHCMvY','uMvZCg9UC2vZihn0CMvHBsbMywLSzwq','ChjVBxb0x3rVA2vUCW','sw1Hz2uGCMv0DxjUzwqGyNKGvMLLD0zPBguGzM9YihrVB2WGCMvZDwX0ia','yxnZAxn0yw50','CMvZCg9UC2vjza','C3rHDhvZvgv4Da','ChjVEhK','C2HVDwXKuMv0CNLszxf1zxn0rxjYB3i','BwfW','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','Ahr0Chm6lY9HCgKUAw5KAxzPzhvHBc5NAxrODwjJB3bPBg90lMnVBq','nZG2Bg1zs2rh','mtCYmZyWmhPXDfDYsW','CMvHC29UAw5Nx3rLEhq','Bwf4x2nVBxbSzxrPB25FDg9Rzw5Z','y3jLyxrLuMvXDwvZDa','Ahr0Cc1ZC2u','y3jLyxrLu3rYzwfTugfYC2vY','D3m6','BgvUz3rO','AxneB25L','Aw5KzxG','zMv0y2HjBxbS','z2v0uMvHzgvY','z2v0t3jdCMvHDgvszxnWB25ZzxntB2nRzxq','D2vIC29JA2v0x2nVBM5Ly3rPB25FBgLTAxrFCMvHy2HLza','C3rYzwfTvMLHugvYC2LZDgvUDfjLC3bVBNnLC1nVy2TLDa','zw5HyMXLza','C2HVDwXKuMv0CNLtDhjLyw1bDhrLBxb0rxjYB3i','CMvZCg9UC2uUy29TCgXLDgvK','yw50AhjVCgLJx3nPz25HDhvYzv9KzwX0yq','Dgv4Da','y29TCgXLDgvtDxjMywnL','C2XPy2u','y2fSBf9Pza','Dg9VBf91C2vFAwq','BNvTyMvY','zgvSzxrL','uMf0zsbSAw1PDcbLEgnLzwrLzc4GugXLyxnLihrYEsbHz2fPBIbSyxrLCI4','zMLUywXszxnWB25Zzq','DhjHBNnWB3j0x2vYCM9Y','Dgv4Dc9LDMvUDc1ZDhjLyw0','CMvHC29UAw5Nx2rLDgfPBhm','y29UDgvUDf9PBMrLEa','nZK2mZu2D05sALPi','Aw5JBhvKzunVBNrLBNruExbL','Aw5PDgLHBev2zw50','y2fWywjPBgL0AwvZ','B3v0Chv0','Dg9Rzw5fEgnOyw5NzufWAvzLCNnPB24','BMfTzq','yxv0AfnJAgvTzq','CgfYC2vszxnWB25Zzq','ChjVDg9JB2W','yxnZAxn0yw50lq','B3bLBMfPlxjLC3bVBNnLCY13CW','otm2ofHrCNbgAG','C3rYzwfTshr0Cfn1CMzHy2u','Bwf4x3rVA2vUCW','Ahr0Chm6lY9HCgKUB3bLBMfPlMnVBs92mq','zg9Uzq','t3bLBKfPtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','yxjNDw1LBNrZ','BwfWqxbPrxjYB3i','zw50CMLLCW','B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','Ec1HCgKTA2v5','z3b0ltrV','r2L0shvItw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5lcbHy2nLC3nuB2TLBIWGB3iGChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','yw50AhjVCgLJrgvSzwDHDgu','r0vu','B3v0Chv0sw5KzxG','BwvZC2fNzv9ZDgfYDa','Aw1Hz2vFDxjS','BM93','D2fPDezVCLjLDhj5','C2vSzwn0u3vYzMfJzq','o2jHC2u2ncW','CgfYDgLHBf9QC29U','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzg9Uzq','mJaYmY0WnI0Wmq','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNmTC3rYzwfT','CMvZCg9UC2uUB3v0Chv0x2L0zw0Uzg9Uzq','DgvSzw1LDhj5','Dg9Wx3bYB3zPzgvY','uMvZCg9UC2vZifDLyLnVy2TLDcbYzxf1zxn0igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','Aw5WDxrkC29U','y2HHDgnTCgW','yMXVy2TZ','C3vTBwfYEv9PBMrLEa','Ahr0Chm6','Aw50zxjSzwf2zwqTDgHPBMTPBMCTmJaYns0Wns0Xna','CMvXDwvZDa','B2f1DgGTDg9Rzw4','ANnVBG','Aw1Hz2u','Dg9VBf91C2u','zNvUy3rPB24','y29TCgXLDgvwAwfdB25MAwD1CMvKu3vYzMfJzq','CMvZB2X2zujHC2vvCMW','qMvHCMvYia','C2LNBMfS','zNjVBq','DMfSDwu','igrVzxmGBM90ihn1ChbVCNqGBM9Ulxn0CMvHBwLUzYbYzxnWB25Zzxm','y29Kzq','zw5JCNLWDgvKq29UDgvUDa','y2fUy2vS','z2v0','igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','CMvZCg9UC2uUCMvHC29UAw5Nx3n1Bw1HCNLFDgv4Dc5KzwX0yq','CM9Szq','zgf0ytO','t3bLBKfPqxbPrxjYB3i','ywDLBNq','y29UDgv4Df9Szw5NDgG','Bwf4t3v0Chv0','Bwf4vg9Rzw5Z','ywnJzxnZvg9Rzw4','y3jLyxrLsgvHzgvYCW','CMvTB3zLrxzLBNrmAxn0zw5LCG','ignHBM5VDcbWyxjZzsbtu0uGzxzLBNrZ','DxnLC1jLC3bVBNnLC0fWAq','Ahr0Chm6lY9HCgKUyw50AhjVCgLJlMnVBq','y2HVAwnLCW','zMLUzfjLC3bVBNnLC1nVy2TLDenOzwnRCg9PBNq','uhjVDMLKzxjtDhjLyw1fDMvUDevYCM9Y','CMvZCg9UC2vtB2nRzxrtDhjLyw0','Dg9bCgLfCNjVCG','ChjVDMLKzxjbzgfWDgvY','AgvHzgvYuMvZB2X2zxi','ywnJzxb0','B3bLBMfPlxjLC3bVBNnLCY1ZDhjLyw0','CMvZCg9UC2u','CMvWBgfJzq','C3rYzwfTvMLHq29UzMLNDxjLzfn1CMzHy2u','yM9KEq','DxnLCG','y2fWywjSzv9LBMrWB2LUDhm','CMvHza','zgLZCgXHEq','y2fSBeLKvg9pDxrWDxrjBMrLEa','Bwv0ywrHDge','y3jLyxrLtwLZC2LUz0nYzwrLBNrPywXfCNjVCG','D2vIu29JA2v0rMfJDg9YEq','DxjS','y29UDgvUDf9IBg9JA19ZDgfYDa','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBLn0yxrL','y2fJAgvdCMvHDgLVBKLUChv0vg9Rzw5Z','yNvPBgrqyxj0AwfSt3v0Chv0','BwfYA01VzgvSqxnszxnWB25ZzxnpBMX5','C3rVCfjLyxnVBG','B3bLBKfPrgvSzwDHDgu','zgvSDge','B3jPz2LUlxrYywnRzxi','C29YDa','BwvZC2fNzuLUzgv4','zgvJB2rL','y29UC3vTzvDLyLnVy2TLDev2zw50','C2v0','l21VzgvSCW','y29UBMvJDgLUzW','y2fJAgvFCMvHzf9PBNb1Df90B2TLBNm','ssbJAgvJA2vKihrOzsbTB2nRzwqGDg9VBcbYzxn1BhqUia','Dgv4Df9KzwX0yq','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','Bw9KzwXfBMrWB2LUDenHy2HL','t1bftG','ote2qK1AsKzz','yxbPs2v5','DhjPBq','C3rHCNrZv2L0Aa','z2v0qw50AhjVCgLJrgvSzwDHDgu','yw50AhjVCgLJx3rOAw5RAw5N','CMvZCg9UC2uUzMfPBgvK','t3bLBKfjigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','y2fJAgvFy3jLyxrPB25FAw5WDxrFDg9Rzw5Z','yMfZzvvYBa','v2vIu29JA2v0ihjLCxvLC3qGzMfPBgvK','DhjPBvn0yxj0','CMvZB2X2zunYzwrLBNrPywW','Cgf0Aa','Dg9VBenHBgXpCMrLCG','C3rYzwfTvMLHq2HHDenVBxbSzxrPB25Zu3vYzMfJzq','CMvZB2X2zq','B3v0Chv0x2LUzgv4','C2HVDwXKuMv0CNLszxnWB25ZzxntB2nRzxrszxf1zxn0','ChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','BwvZC2fNzxm','zMLUAxnO','Aw5WDxruB2TLBNm','CMvXDwvZDe11Dgf0B3jZ','Dg9VBenHBgXZqNLjBMrLEa','v2vIu29JA2v0','v2vIu29JA2v0ignSB3nLzcb3AxrOignVzguG','C3rYzwfTvMLHuMvZCg9UC2vZv2vIu29JA2v0u3vYzMfJzq','zMXHDe1HCa','y2XVC2u','vw5ZDxbWB3j0zwqGr2L0shvIig1VzgvSihn1CMzHy2u6ia','BwvZC2fNzq','CMvHzhLtDgf0zq','zwrPDg9YvMvYC2LVBG','y29TCgXLDgvwAwfszxnWB25ZzxntDxjMywnL','B3v0Chv0sw5KzxHuB0nHBgXjza','C2vUzeH0DhbtDxjMywnLuMvXDwvZDa','uhjVDMLKzxiGCMvXDwvZDcbYzxrYEsbSB29Wigv4AxrLzcb1BMv4CgvJDgvKBhK','odi5EhH4EgDh','Aw5WDxrFDg9Rzw5Z','yxv0BW','zMLUAxnOx3jLyxnVBG','C3rYzwfTu3vYzMfJzq','C3rYAw5N','y2fJAgvszwfKsw5WDxruB2TLBNm','B21PDhrLza','yw50AhjVCgLJlxzLCNnPB24','BwvZC2fNzv9KzwX0yq','w0rptKvD','AxrLBq','B3v0Chv0vg9Rzw5Z','ChjVDg9JB2XwzxjZAw9U','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','zw5Kx3r1CM4','qMfZAa','CM91DgvY','B3bLBMfPx3jLyxnVBMLUzW','CMvZCg9UC2vtB2nRzxq','yNvKz2v0vg9Rzw5Z','Ahr0Cc1QC29U','DgHLBG','C3rYAw5NAwz5','C3bSAxq','B3bLBMfPuMvZCg9UC2vZuMvZCg9UC2vjza','CMvZCg9UC2uUB3v0Chv0x2L0zw0UywrKzwq','Aw50zxjSzwf2zwq','yw50AhjVCgLJlw1LC3nHz2vZlxn0CMvHBq','l2nOyxqVy29TCgXLDgLVBNm','Aw5WDxq','zMLSDgvY','y2HHDenVBxbSzxrL','CMv0CNKTywz0zxi','AxngAw5PDgu','y2HHDgnTCgWT','ChjVDMLKzxjFCMv0CNK','C29Tzq','C3rYzwfTx2vYCM9Y','Bwf4','C3rVCf9YzwfZB24','Dw5ZDxbWB3j0zwrFyxbPx2zVCL9TB2rLBa','AgfZ','B3bLBG','ChjLDMLVDxnFCMvZCg9UC2vFBM90x2zVDw5K','CMvZCg9UC2vtDhjLyw0','qxv0AgvUDgLJyxrPB24GzMfPBgvKlIbqBgvHC2uGy2HLy2SGEw91CIbbueKGA2v5lG','Dgv4DfbHCNrZ','B3v0Chv0x3rVA2vUCW','B3v0Chv0sw5KzxHuB1jLyxnVBMLUz0LK','zMLUza','AxrLBv9Pza','C3rYzwfTvMLHuMvZCg9UC2vZu29JA2v0qxr0zw1WDa','ChjLDMLVDxnszxnWB25ZzuLK','DgHPBMTPBMC','ywrHChrPDMu','CMvZCg9UC2vZugf0Aa','y29UDgvUDa','yMfZzty0','vw5RBM93BIbWCM92AwrLCIbLCNjVCG','y2fJAgvK','Dg9VBhm','CMvZB2X2zxi','C3vTBwfYEq','B3v0Chv0x3rLEhq','C3vWCg9YDgvKx2vUzhbVAw50CW','zNvUy3rPB25Fy2fSBa','Bwf4x2nVBNrLEhrFD2LUzg93x3rVA2vUCW','CMvXDwvZDhm','BxnNlq','CMv0CNLHyMXL','CMvKywn0zwrFDgHPBMTPBMC','z2v0t3jdCMvHDgvszwfZB25PBMDjDgvT','zMv0y2G','C291CMnL','Bw9KzwW','zxzLBNq6','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzg9Uzq','DhLWzq','mZa2ouHivNrdqW','y29UDgvUDf9KzwX0yq','rgLYzwn0igfUC3DLCJOG','CMvHC29UAw5Nx3rVA2vUCW','Dg9mB3DLCKnHC2u','Dg9VBf91C2vFzgvSDge','D3nZoG','C3vTBwfYAxPLza','yw50AhjVCgLJqxnZAxn0yw50q29UDgvUDa','A2LUza','C3vWCg9YDgvKrw5KCg9PBNrZ','DxrMltG','Aw5WDxrFANnVBL9KzwX0yq','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','C3LZDgvT','zgvZy3jPChrPB24','yxbWBgLJyxrPB24VANnVBG','zwzMB3j0','C3vYzMfJzq','BhmGlwXH','z2v0tw9KzwXZ','BgLTAxrZ','Bw9JAW','CgvUzgLUzW','y29TCgXLDgu','igrPzcbUB3qGChjVDMLKzsbHBIbivfrqihbHDgG','ue9tva','y29UDgv4DfDPBMrVDW','CgfYC2u','y2HHDfn0CMvHBq','yw50AhjVCgLJlw1LC3nHz2vZ','AgvHzgvYCW','C2HHCMvKuMvZCg9UC2vZu29JA2v0u2vZC2LVBNm','l3jLC3bVBNnLCW','Dgv4Dej5sw5KzxG','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzgvSDge','C2vZC2LVBG','y29UC3vTzuv2zw50','CMvZCg9UC2vuzxH0ugfYDhm','DxnLCI12AxnPyMXL','Aw5JBhvKzxm','DgHPBMTPBMDFzgvSDge','y29TCgXLDgvwAwfsB3v0zxi','CMvZCg9UC2uUy3jLyxrL','Dg9VBa','yxbPlwTLEq','qw50AhjVCgLJihn0CMvHBsbMywLSzwq','C2vZC2LVBKLK','ignHBM5VDcbWyxjZzsbxzwjtB2nRzxqGzxzLBNrZ','zgf0yq','z2v0t3bLBKfPrgvSzwDHDgu','Dg9VBc1JywXSlq','C3vYzMfJzxm','C3bSAwnL','mZKWntC3nKnRAvDuDa','C3rYzwfTvMLHuMvZCg9UC2vZu3vYzMfJzq','yw50AhjVCgLJx3jLzgfJDgvKx3rOAw5RAw5N','C3vTBwfYEuj5sw5KzxG','AxnbCNjHEq','z2v0u3vYzMfJzq','C2vUzfDPDgHszxrYAwvZ','C2HVDwXKuhjLzMvYuMvZCg9UC2vZqxbP','CMvHC29UAw5NugfYDhm','z2v0uMv0CNLezwXHEu1Z','uhjVDMLKzxjszxf1zxn0q29UC3rYDwn0Aw9UrxjYB3i'];_0x48d2=function(){return _0x1f4da8;};return _0x48d2();}function hasVisibleOpenAiReasoning(_0xa3eb09){const _0x4221ce={_0x43bfff:0x114,_0x4228e4:0x1ab,_0x3e83b0:0x261,_0x2e1146:0x22b,_0x4ec4de:0x228,_0x2b894f:0x1c6,_0x44268f:0x237,_0xbd735d:0x166},_0x331454={_0x25befa:0x4cc,_0x230729:0x181,_0x4cc087:0x157};function _0x1f05c7(_0x21393f,_0x17c0eb,_0x29ef64,_0x4365da){return _0x3a2825(_0x21393f,_0x29ef64-_0x331454._0x25befa,_0x29ef64-_0x331454._0x230729,_0x4365da-_0x331454._0x4cc087);}function _0x3babda(_0x36f605,_0x3b3cce,_0x32f7de,_0x108dd5){return _0x3a2825(_0x108dd5,_0x32f7de-0x364,_0x32f7de-0x1c1,_0x108dd5-0x4a);}return _0xa3eb09[_0x3babda(0x12a,_0x4221ce._0x43bfff,0x1bd,_0x4221ce._0x4228e4)][_0x1f05c7(_0x4221ce._0x3e83b0,0x16a,_0x4221ce._0x2e1146,_0x4221ce._0x4ec4de)]>0x0||typeof _0xa3eb09[_0x1f05c7(0x2cc,_0x4221ce._0x2b894f,_0x4221ce._0x44268f,_0x4221ce._0xbd735d)]===_0x3babda(0x115,0x22d,0x183,0x1ba);}function parseChatCompletionResponse(_0x13f738){const _0x586bd5={_0x3bfec6:0x45,_0x51625d:0x27e,_0x2d62aa:0x350,_0x43c4e7:0x9,_0x2a3a39:0x65,_0x308526:0x31,_0x573a88:0xeb,_0x13c4a0:0x1ac,_0x197c8a:0x1cb,_0x1c0e70:0x1ca,_0x2bf17c:0x183,_0x24547e:0x2c2,_0x32e489:0x26c,_0x379ff4:0x307,_0x16a3c8:0x247,_0x260e63:0x2c5,_0x219dab:0x1ea,_0x517003:0x2ce,_0x348256:0x124,_0x4fae12:0x32,_0x48d70f:0xd8,_0x466aec:0x358,_0x49e54f:0x34b,_0x19fd95:0x2ee,_0x1c7113:0x2b1,_0x469aa1:0xb6,_0x40fad7:0x1ce,_0x49991a:0x261,_0x2ee671:0x264},_0x36a96b={_0x218af7:0x27},_0x5c4d6a={_0x346a9a:0x51b,_0xd9a33d:0x172},_0x159e38=[],_0x27b257=[];let _0x50ad70=_0x1c3799(0x2e8,0x3d9,0x344,0x401);for(const _0x444173 of _0x13f738[_0x11f040(-0xa8,-0xe1,-_0x586bd5._0x3bfec6,-0xbc)]??[]){const _0x354196=_0x444173[_0x1c3799(0x3af,_0x586bd5._0x51625d,0x32e,_0x586bd5._0x2d62aa)],_0x1db80c=normalizeAssistantContent(_0x354196?.[_0x11f040(_0x586bd5._0x43c4e7,_0x586bd5._0x2a3a39,0xa6,-_0x586bd5._0x308526)]);_0x1db80c[_0x11f040(-0xc8,-_0x586bd5._0x573a88,-_0x586bd5._0x13c4a0,-0x125)]>0x0&&_0x159e38[_0x1c3799(_0x586bd5._0x197c8a,_0x586bd5._0x1c0e70,0x24b,_0x586bd5._0x2bf17c)](_0x1db80c),_0x354196?.[_0x1c3799(0x2c8,0x197,0x247,0x17f)]&&_0x27b257[_0x1c3799(0x21a,0x2db,0x24b,0x213)](..._0x354196['tool_calls']),_0x444173[_0x1c3799(0x2c1,0x3d1,0x338,_0x586bd5._0x24547e)]===_0x1c3799(_0x586bd5._0x32e489,_0x586bd5._0x379ff4,_0x586bd5._0x16a3c8,_0x586bd5._0x260e63)&&(_0x50ad70='tool_use');}_0x27b257[_0x1c3799(_0x586bd5._0x219dab,0x255,0x27a,_0x586bd5._0x517003)]>0x0&&(_0x50ad70=_0x11f040(-_0x586bd5._0x348256,-_0x586bd5._0x4fae12,-0x6a,-_0x586bd5._0x48d70f));function _0x1c3799(_0x17e8e3,_0x41a74c,_0x4b2faa,_0x52cc36){return _0x3a2825(_0x52cc36,_0x4b2faa-_0x5c4d6a._0x346a9a,_0x4b2faa-_0x5c4d6a._0xd9a33d,_0x52cc36-0x103);}function _0x11f040(_0x223b0d,_0x57d7d9,_0x715534,_0x23e31b){return _0x40b3f8(_0x223b0d-_0x36a96b._0x218af7,_0x223b0d,_0x715534-0x1af,_0x23e31b- -0x6c);}return{'id':_0x13f738['id']??_0x1c3799(0x3d4,0x2c3,_0x586bd5._0x466aec,_0x586bd5._0x49e54f)+Date[_0x1c3799(_0x586bd5._0x19fd95,0x2c1,_0x586bd5._0x1c7113,0x277)](),'content':createContentBlocks(_0x159e38[_0x11f040(-0xf4,-_0x586bd5._0x469aa1,-_0x586bd5._0x40fad7,-0x187)](''),_0x27b257),'stopReason':_0x50ad70,'usage':createUsage(_0x13f738[_0x1c3799(_0x586bd5._0x49991a,0x27a,0x255,_0x586bd5._0x2ee671)])};}function parseResponsesResponse(_0x35b030,_0x8eb493){const _0x1d3c78={_0x3070e7:0x21a,_0x29ced4:0x3a7,_0x12e01b:0x374,_0x17e861:0x321,_0xcfb606:0x2ae,_0x31b3fc:0x2f2,_0x386670:0x3a8,_0x3be9d5:0x3ef,_0x514eda:0x284,_0x494fe9:0x51d,_0x4a03cc:0x449,_0x227cb1:0x3b9,_0x377347:0x463,_0x59d165:0x3d0,_0x463916:0x30f,_0x2458be:0x27a,_0x28264e:0x340,_0x3e8253:0x45c,_0x396b78:0x465,_0x2ae44d:0x3bb,_0x32beba:0x4be,_0x368235:0x46f,_0xfb843d:0x45c,_0x10e7fc:0x412,_0xbb1757:0x358,_0x2240b7:0x377,_0x2896ba:0x3f5,_0x4be0bc:0x42e,_0x2ccccb:0x32e,_0x16c719:0x3ee,_0x4ca7fc:0x47c,_0x5c28c5:0x414,_0x475f77:0x370,_0x2c1b1f:0x376,_0x42fdeb:0x382,_0x7f1f4a:0x41c,_0x1c41cc:0x515,_0x49acca:0x3e9,_0x841c98:0x334,_0x5c81f0:0x4bc,_0x2f5be3:0x2ff,_0x41fa3c:0x43b,_0x59c332:0x3c2,_0x62945b:0x4ad,_0x1778db:0x487,_0x574b53:0x4cf,_0x26a7a1:0x329,_0x51b330:0x365,_0x472252:0x420,_0x55b2e7:0x2cb,_0xed4b93:0x2f9,_0x3ddeef:0x279,_0x308810:0x2f9,_0x5a6ca8:0x3a5,_0x17cf92:0x34f,_0x5d5ab8:0x3d5,_0x125262:0x305,_0x360b27:0x33e},_0x24e3a8={_0x4af6da:0x3da},_0x561644={_0x24f8db:0x95},_0x28382b=[];function _0x36c9d6(_0xde9c84,_0x46f976,_0x5df942,_0xc99fe7){return _0x3a2825(_0xde9c84,_0x5df942-0x63d,_0x5df942-0xf1,_0xc99fe7-_0x561644._0x24f8db);}function _0x1cacd4(_0x2e1986,_0xa0761c,_0x44d2a4,_0x4e89c6){return _0x40b3f8(_0x2e1986-0x1ba,_0xa0761c,_0x44d2a4-0xf3,_0x4e89c6-_0x24e3a8._0x4af6da);}for(const _0xed3d02 of _0x35b030['output']??[]){if(isResponsesReasoningItem(_0xed3d02)){if(isUserVisibleReasoning(_0x8eb493)){const _0xc46d2d=createOpenAiReasoningBlock(_0xed3d02);hasVisibleOpenAiReasoning(_0xc46d2d)&&_0x28382b[_0x1cacd4(_0x1d3c78._0x3070e7,0x3c9,_0x1d3c78._0x29ced4,0x2f2)](_0xc46d2d);}continue;}if(isResponsesMessageItem(_0xed3d02)){const _0x2dbfee=normalizeResponsesMessageContent(_0xed3d02['content']);_0x2dbfee[_0x1cacd4(0x2ce,_0x1d3c78._0x12e01b,0x254,_0x1d3c78._0x17e861)]>0x0&&_0x28382b[_0x1cacd4(0x300,0x25b,_0x1d3c78._0xcfb606,_0x1d3c78._0x31b3fc)]({'type':_0x36c9d6(0x393,0x3b9,_0x1d3c78._0x386670,_0x1d3c78._0x3be9d5),'text':_0x2dbfee});continue;}if(!isResponsesFunctionCallItem(_0xed3d02)||typeof _0xed3d02[_0x1cacd4(_0x1d3c78._0x514eda,0x265,0x3b3,0x330)]!==_0x36c9d6(_0x1d3c78._0x494fe9,_0x1d3c78._0x4a03cc,0x45c,_0x1d3c78._0x227cb1)||_0xed3d02['call_id'][_0x36c9d6(_0x1d3c78._0x377347,0x418,0x433,0x4c9)]()[_0x1cacd4(_0x1d3c78._0x59d165,0x33a,0x3cf,_0x1d3c78._0x17e861)]===0x0||typeof _0xed3d02[_0x1cacd4(0x3e4,_0x1d3c78._0x463916,_0x1d3c78._0x2458be,_0x1d3c78._0x28264e)]!==_0x36c9d6(0x391,0x517,_0x1d3c78._0x3e8253,_0x1d3c78._0x396b78)||_0xed3d02[_0x36c9d6(0x3b1,0x412,_0x1d3c78._0x2ae44d,0x488)][_0x36c9d6(0x4fb,0x4fd,0x433,_0x1d3c78._0x32beba)]()['length']===0x0||typeof _0xed3d02['arguments']!==_0x36c9d6(_0x1d3c78._0x368235,0x4dc,_0x1d3c78._0xfb843d,_0x1d3c78._0x10e7fc))continue;_0x28382b[_0x1cacd4(_0x1d3c78._0xbb1757,_0x1d3c78._0x2240b7,0x26c,0x2f2)]({'type':_0x1cacd4(_0x1d3c78._0x2896ba,_0x1d3c78._0x4be0bc,_0x1d3c78._0x2ccccb,0x36e),'id':_0xed3d02['call_id'],'name':_0xed3d02['name'],'input':parseToolInput2(_0xed3d02[_0x36c9d6(0x355,0x433,0x3c7,0x331)])});}return!_0x28382b[_0x36c9d6(0x4a7,_0x1d3c78._0x16c719,_0x1d3c78._0x4ca7fc,0x3ee)](_0x3e297b=>_0x3e297b['type']===_0x36c9d6(0x45a,0x3ea,0x3a8,0x3be))&&_0x35b030[_0x36c9d6(0x554,_0x1d3c78._0x5c28c5,0x497,0x4d2)]&&_0x28382b[_0x36c9d6(_0x1d3c78._0x475f77,_0x1d3c78._0x2c1b1f,0x36d,0x365)]({'type':'text','text':_0x35b030[_0x1cacd4(0x368,0x37c,_0x1d3c78._0x42fdeb,_0x1d3c78._0x7f1f4a)]}),{'id':_0x35b030['id'],'content':_0x28382b,'stopReason':_0x28382b[_0x36c9d6(0x44f,0x511,_0x1d3c78._0x4ca7fc,_0x1d3c78._0x1c41cc)](_0x2e2fa9=>_0x2e2fa9[_0x36c9d6(0x39a,0x36d,0x2f5,0x25d)]===_0x36c9d6(0x38f,0x3d1,0x3e9,0x47c))?_0x36c9d6(0x3da,0x405,_0x1d3c78._0x49acca,0x354):_0x1cacd4(0x3ea,_0x1d3c78._0x841c98,_0x1d3c78._0x5c81f0,0x3eb),'usage':{'inputTokens':_0x35b030[_0x36c9d6(0x388,_0x1d3c78._0x2f5be3,0x377,0x2bb)]?.[_0x36c9d6(_0x1d3c78._0x41fa3c,_0x1d3c78._0x59c332,0x458,0x3b0)]??0x0,'outputTokens':_0x35b030[_0x1cacd4(0x278,0x383,0x24c,0x2fc)]?.[_0x36c9d6(0x44e,_0x1d3c78._0x62945b,_0x1d3c78._0x1778db,_0x1d3c78._0x574b53)]??0x0,..._0x35b030[_0x36c9d6(0x429,0x352,_0x1d3c78._0x2240b7,_0x1d3c78._0x26a7a1)]?.[_0x36c9d6(0x3ed,0x43d,_0x1d3c78._0x51b330,_0x1d3c78._0x472252)]?.[_0x36c9d6(_0x1d3c78._0x55b2e7,0x3a2,_0x1d3c78._0xed4b93,_0x1d3c78._0x3ddeef)]!==void 0x0?{'reasoningTokens':_0x35b030['usage']['output_tokens_details'][_0x36c9d6(_0x1d3c78._0x2c1b1f,0x291,_0x1d3c78._0x308810,_0x1d3c78._0x5a6ca8)]}:{}},..._0x35b030[_0x1cacd4(_0x1d3c78._0x17cf92,_0x1d3c78._0x5d5ab8,_0x1d3c78._0x125262,_0x1d3c78._0x360b27)]?{'providerState':{'openaiResponsesOutput':structuredClone(_0x35b030['output']),'openaiResponsesResponseId':_0x35b030['id']}}:{}};}function extractErrorMessage(_0x5607da){const _0x9aced2={_0x37dd9e:0xa2,_0x38c1ae:0x0,_0x20e4a3:0x6e,_0x199250:0x53,_0x1679b8:0x4b,_0x1dbfdb:0x87,_0x77007f:0xeb,_0x575d92:0x100,_0x14cf02:0x10d,_0x56e95e:0x21,_0x213935:0x16a,_0x4623b0:0x8d,_0x3c6bcd:0x12e,_0xa2392d:0x81,_0x21a215:0x95,_0x5ba80a:0xab,_0x31a115:0x2a,_0x1517a3:0x2d,_0x31f217:0x19,_0x966baf:0x67,_0x45b4ee:0xe9,_0x1df61b:0xeb,_0x324896:0x108,_0x272f58:0x140,_0x36ae08:0xfa,_0x4bace9:0x52,_0x17c355:0x59,_0x2f6f9b:0x10,_0x29accf:0x48,_0x3d4028:0x1f},_0x3acefa={_0x22cda9:0x28,_0x4de5ee:0x19d},_0x7ff1c4={_0x2f0d42:0x178,_0x45c309:0x158};function _0x527399(_0x1ad712,_0x4e1bae,_0x26706a,_0x492b58){return _0x40b3f8(_0x1ad712-_0x7ff1c4._0x2f0d42,_0x4e1bae,_0x26706a-_0x7ff1c4._0x45c309,_0x1ad712-0xf0);}if(_0x5607da[_0x527399(0x37,_0x9aced2._0x37dd9e,_0x9aced2._0x38c1ae,_0x9aced2._0x20e4a3)]===0x0)return'';function _0x2a8ae6(_0x551860,_0x41ca6a,_0x117155,_0x3bca8e){return _0x40b3f8(_0x551860-_0x3acefa._0x22cda9,_0x551860,_0x117155-_0x3acefa._0x4de5ee,_0x3bca8e-0x32);}try{const _0x2e6bc3=JSON[_0x527399(-_0x9aced2._0x199250,-0x61,-_0x9aced2._0x1679b8,-_0x9aced2._0x1dbfdb)](_0x5607da);if(typeof _0x2e6bc3['error']?.[_0x527399(_0x9aced2._0x77007f,0xd3,_0x9aced2._0x575d92,0xbe)]===_0x2a8ae6(0x1e,_0x9aced2._0x14cf02,-_0x9aced2._0x56e95e,0x39)&&_0x2e6bc3[_0x2a8ae6(-0x15f,-_0x9aced2._0x213935,-0xc9,-0xa7)]['message'][_0x527399(0xce,_0x9aced2._0x4623b0,0x1a4,_0x9aced2._0x3c6bcd)]()[_0x2a8ae6(0xe,0x48,-0xf7,-_0x9aced2._0x1dbfdb)]>0x0)return _0x2e6bc3[_0x527399(0x17,_0x9aced2._0xa2392d,-0x70,_0x9aced2._0x21a215)][_0x2a8ae6(_0x9aced2._0x5ba80a,_0x9aced2._0x31a115,0x83,_0x9aced2._0x1517a3)][_0x527399(0xce,_0x9aced2._0x31f217,_0x9aced2._0x966baf,_0x9aced2._0x45b4ee)]();if(typeof _0x2e6bc3[_0x527399(_0x9aced2._0x1df61b,_0x9aced2._0x324896,_0x9aced2._0x272f58,0x48)]==='string'&&_0x2e6bc3[_0x527399(_0x9aced2._0x77007f,0x9a,_0x9aced2._0x36ae08,_0x9aced2._0x4bace9)][_0x2a8ae6(0xb8,-0x96,_0x9aced2._0x17c355,_0x9aced2._0x2f6f9b)]()[_0x2a8ae6(-_0x9aced2._0x29accf,-0x142,0x12,-_0x9aced2._0x1dbfdb)]>0x0)return _0x2e6bc3['message'][_0x2a8ae6(_0x9aced2._0x3d4028,0x30,-0x59,_0x9aced2._0x2f6f9b)]();}catch{return _0x5607da;}return _0x5607da;}async function createOpenAiApiError(_0x404bb3){const _0x3b1721={_0x1cdb9f:0x3ef,_0x451f8f:0x366,_0x143a48:0x43a,_0x225806:0x37f,_0x5bee17:0xc5,_0x33aefd:0xf8,_0x26a63c:0xad},_0x148b0c={_0x199829:0x16},_0x5ed3a8=(await _0x404bb3[_0x12ba50(_0x3b1721._0x1cdb9f,0x2ea,0x3af,_0x3b1721._0x451f8f)]())[_0x12ba50(0x511,0x4e9,_0x3b1721._0x143a48,_0x3b1721._0x225806)]();function _0x12ba50(_0x495928,_0x57642a,_0x4e67ea,_0x144228){return _0x3a2825(_0x495928,_0x4e67ea-0x644,_0x4e67ea-0x1ca,_0x144228-0x1a3);}function _0x1f0352(_0x3c0ad1,_0x56fbc6,_0x558566,_0x2dc066){return _0x3a2825(_0x3c0ad1,_0x2dc066-0x1b7,_0x558566-0xca,_0x2dc066-_0x148b0c._0x199829);}const _0x5f5781=extractErrorMessage(_0x5ed3a8)||_0x404bb3[_0x1f0352(-0x2f,-_0x3b1721._0x5bee17,-0x54,-_0x3b1721._0x33aefd)]||'OpenAI\x20API\x20error\x20'+_0x404bb3[_0x1f0352(-_0x3b1721._0x26a63c,-0xd5,-0x36,-0x104)];return new OpenAiApiError(_0x404bb3['status'],_0x5ed3a8,_0x5f5781);}function readSseData(_0xc127d6){const _0x1fb4bf={_0x508aae:0x54,_0x81ab54:0x7d,_0x54c942:0x1bf,_0x58747c:0x1c4},_0x38649e={_0x44a50c:0x4b,_0x2f9006:0x7b},_0x46d3c2={_0x3d4f17:0x17a,_0x65fd4a:0xd5};function _0x365d12(_0x3efa53,_0x3b1ca3,_0x45782b,_0x30ee73){return _0x3a2825(_0x3efa53,_0x30ee73-_0x46d3c2._0x3d4f17,_0x45782b-0x1d8,_0x30ee73-_0x46d3c2._0x65fd4a);}function _0xe0a030(_0x12875c,_0x75f790,_0xe0b74b,_0x589a94){return _0x3a2825(_0x75f790,_0xe0b74b-_0x38649e._0x44a50c,_0xe0b74b-_0x38649e._0x2f9006,_0x589a94-0x10b);}return _0xc127d6[_0x365d12(-0x79,-0xc6,-0x1,-_0x1fb4bf._0x508aae)]('\x0a')[_0xe0a030(-0x17e,-0x1cf,-0x17c,-0x21b)](_0x4a19ff=>_0x4a19ff[_0x365d12(0xd,-0x74,-0x93,-0x8f)](_0x365d12(-0xe0,-0x155,-0x69,-0xca)))[_0x365d12(-0xa7,-0x6c,-_0x1fb4bf._0x81ab54,-0x132)](_0x216861=>_0x216861['slice'](0x5)['trimStart']())['join']('\x0a')[_0xe0a030(-0x23c,-0x1ba,-_0x1fb4bf._0x54c942,-_0x1fb4bf._0x58747c)]();}function readString(_0x1019b4){const _0xe21b51={_0x4b0fbd:0x50b,_0x3a61d1:0x451,_0x120cbd:0x51a},_0x8c7231={_0x24568b:0x6f2};function _0x51fe3b(_0x24c2ea,_0x33dda3,_0x550405,_0x3d68d4){return _0x3a2825(_0x3d68d4,_0x550405-_0x8c7231._0x24568b,_0x550405-0xf9,_0x3d68d4-0x93);}return typeof _0x1019b4==='string'&&_0x1019b4[_0x51fe3b(0x4bd,_0xe21b51._0x4b0fbd,_0xe21b51._0x3a61d1,_0xe21b51._0x120cbd)]>0x0?_0x1019b4:void 0x0;}function extractReasoningDetails(_0x5c7aab){const _0xaa16a0={_0x37d304:0x20e,_0x420a36:0x2d8,_0x3cf222:0x382},_0x19c8da={_0x524612:0x172,_0x1da959:0x1df,_0x19e2a5:0x104,_0x32caed:0xfa,_0x4b466a:0x1e6,_0x536833:0x19f,_0x452cb3:0x126,_0x507913:0x209,_0x2f57c4:0x31a},_0x53352f={_0x4369d1:0x394,_0x15cde0:0x1aa},_0x165148={_0x541d25:0x8e,_0x4b8d27:0x5e,_0x459104:0x1bd},_0x30e5fe={_0x110871:0xfa,_0x261e35:0x165};function _0x2f1907(_0x15147c,_0x5d1140,_0x404922,_0x1d1d1e){return _0x3a2825(_0x5d1140,_0x15147c-0x350,_0x404922-_0x30e5fe._0x110871,_0x1d1d1e-_0x30e5fe._0x261e35);}if(!Array['isArray'](_0x5c7aab))return void 0x0;function _0xc2ba15(_0x44c163,_0x3ee9d3,_0x396927,_0x6b44e1){return _0x40b3f8(_0x44c163-_0x165148._0x541d25,_0x44c163,_0x396927-_0x165148._0x4b8d27,_0x3ee9d3- -_0x165148._0x459104);}const _0x508a19=_0x5c7aab[_0xc2ba15(-0x217,-0x1c5,-0x1af,-_0xaa16a0._0x37d304)](_0x23ec52=>{const _0x49e2eb={_0x5e942c:0x44b,_0x394439:0x149,_0x51e69a:0xea};if(!_0x23ec52||typeof _0x23ec52!==_0x4c42cb(_0x19c8da._0x524612,0x215,_0x19c8da._0x1da959,_0x19c8da._0x19e2a5))return[];const _0x23a633=_0x23ec52;function _0x5832a2(_0x395171,_0x1aa4aa,_0x5c6103,_0x336720){return _0xc2ba15(_0x336720,_0x395171-_0x53352f._0x4369d1,_0x5c6103-_0x53352f._0x15cde0,_0x336720-0x4d);}function _0x4c42cb(_0x39f431,_0x5784e7,_0x225818,_0xb181d1){return _0xc2ba15(_0x5784e7,_0x39f431-_0x49e2eb._0x5e942c,_0x225818-_0x49e2eb._0x394439,_0xb181d1-_0x49e2eb._0x51e69a);}if(typeof _0x23a633[_0x5832a2(0x12a,_0x19c8da._0x32caed,0x9b,0x1c3)]==='string')return[_0x23a633['text']];if(typeof _0x23a633[_0x5832a2(0x218,_0x19c8da._0x4b466a,0x185,0x166)]===_0x5832a2(0x1de,_0x19c8da._0x536833,_0x19c8da._0x452cb3,_0x19c8da._0x507913))return[_0x23a633[_0x4c42cb(0x2cf,0x227,_0x19c8da._0x2f57c4,0x2de)]];return[];});return _0x508a19['length']>0x0?_0x508a19[_0xc2ba15(-0x245,-_0xaa16a0._0x420a36,-_0xaa16a0._0x3cf222,-0x378)](''):void 0x0;}function extractChatCompletionReasoningDelta(_0xdeb10f){const _0xa4d531={_0x1ddc23:0x3b1,_0x41ef1b:0x466,_0x1fb919:0x352,_0x1533de:0x426,_0x13a09c:0x249,_0x51f04d:0x29e},_0x4f8483={_0x5876a1:0x162},_0x4fb71e={_0x4732db:0x119,_0x5e482a:0x2d8};function _0x2ec06e(_0x33bd2e,_0x2b0fbf,_0xdf8ca6,_0x399b16){return _0x40b3f8(_0x33bd2e-_0x4fb71e._0x4732db,_0x33bd2e,_0xdf8ca6-0x1e8,_0x2b0fbf-_0x4fb71e._0x5e482a);}function _0x2131a5(_0x5aa64f,_0x582a82,_0x5f46e6,_0x29e050){return _0x3a2825(_0x5aa64f,_0x29e050-0x6f0,_0x5f46e6-_0x4f8483._0x5876a1,_0x29e050-0x1e4);}return extractReasoningDetails(_0xdeb10f?.[_0x2131a5(_0xa4d531._0x1ddc23,0x463,0x4cd,_0xa4d531._0x41ef1b)])??readString(_0xdeb10f?.[_0x2131a5(0x3fe,0x4db,_0xa4d531._0x1fb919,_0xa4d531._0x1533de)])??readString(_0xdeb10f?.[_0x2ec06e(_0xa4d531._0x13a09c,0x1d8,0x1e2,_0xa4d531._0x51f04d)])??readString(_0xdeb10f?.['reasoning_text'])??'';}var OpenAiChatCompletionsStreamParser=class{['reasoningParts']=[];[_0x3a2825(-0x276,-0x258,-0x225,-0x27d)];[_0x3a2825(-0x287,-0x1b7,-0x184,-0x262)]=[];['toolCallsByIndex']=new Map();[_0x40b3f8(-0xca,-0x71,0xad,-0x16)]=[];[_0x3a2825(-0x33f,-0x2c0,-0x254,-0x24d)]=new Set();['responseId']='';[_0x3a2825(-0x14f,-0x21d,-0x162,-0x243)]=_0x40b3f8(-0x38,0x2e,0xa8,0x11);[_0x3a2825(-0x38d,-0x2c6,-0x32d,-0x29f)];constructor(_0x25a56b){const _0x58338c={_0x2bee7a:0x48a},_0x394134={_0x2c4877:0x15e};function _0x57f2a5(_0x4597d6,_0x3ec225,_0x43218b,_0x25a869){return _0x3a2825(_0x3ec225,_0x4597d6-0x716,_0x43218b-_0x394134._0x2c4877,_0x25a869-0x1a6);}this[_0x57f2a5(0x4be,_0x58338c._0x2bee7a,0x51f,0x4e4)]=_0x25a56b;}[_0x3a2825(-0x3a3,-0x2eb,-0x392,-0x21a)](_0x5eeb25){const _0x17eda6={_0x44f8c1:0x213,_0x3c8481:0x23b,_0x9a030:0x189,_0x5d1839:0x190,_0x1b16a1:0x18c,_0x373139:0x1a8,_0xdd5772:0x16b,_0x14c3f0:0x208,_0x551127:0x2ad,_0x3b3ead:0x1c3,_0x444013:0x186,_0x1078a7:0x20b},_0x5ef963={_0x22c53a:0x1cc},_0x290d09={_0x56aba0:0x7e,_0x2c2bf6:0x12d},_0x31a48c=readSseData(_0x5eeb25);function _0x57353e(_0x48c678,_0x455b89,_0x370396,_0x44087a){return _0x40b3f8(_0x48c678-0xbd,_0x455b89,_0x370396-_0x290d09._0x56aba0,_0x370396- -_0x290d09._0x2c2bf6);}if(_0x31a48c[_0x3fe051(0x15a,_0x17eda6._0x44f8c1,0x1b6,_0x17eda6._0x3c8481)]===0x0||_0x31a48c==='[DONE]')return[];const _0x15d1cb=JSON[_0x3fe051(0x1c7,_0x17eda6._0x9a030,0x16d,_0x17eda6._0x5d1839)](_0x31a48c);this['responseId']=_0x15d1cb['id']??this[_0x57353e(-_0x17eda6._0x1b16a1,-0x21a,-0x1f5,-_0x17eda6._0x373139)],this[_0x3fe051(_0x17eda6._0xdd5772,0x1ee,_0x17eda6._0x14c3f0,0x11e)]=_0x15d1cb[_0x3fe051(0x277,0x1ee,0x169,_0x17eda6._0x551127)]??this[_0x57353e(-_0x17eda6._0x3b3ead,-_0x17eda6._0x444013,-_0x17eda6._0x1078a7,-0x1f1)];function _0x3fe051(_0x5c0fb3,_0x117b3e,_0x400ccd,_0x3fdf74){return _0x3a2825(_0x5c0fb3,_0x117b3e-0x4b4,_0x400ccd-0x18b,_0x3fdf74-_0x5ef963._0x22c53a);}return this['consumeEvent'](_0x15d1cb);}[_0x3a2825(-0x274,-0x1f7,-0x243,-0x2c9)](){const _0x5042b0={_0x313142:0x4f,_0x4eaca1:0x36,_0x942cad:0x1bd,_0x5d93ea:0x121,_0x27ae21:0x54,_0x2b3ff0:0x10a,_0xa79022:0x15a,_0x362dbc:0x85,_0x1d3d0f:0x252,_0xfac607:0x191,_0x3be6f7:0x276,_0x33c9e9:0x1ed,_0x56efc6:0x15f,_0x2861d2:0x115,_0x1de32b:0x240,_0x3e43c0:0x7e,_0x3dcddc:0x35,_0x575633:0x95,_0x204e6c:0x9d,_0xa8ba24:0x2f,_0x2ff028:0x163},_0x486817={_0x4ff021:0x180};function _0x50d96d(_0x3f8e93,_0x493ee8,_0x2fc183,_0x5d6005){return _0x3a2825(_0x5d6005,_0x2fc183-0xc3,_0x2fc183-0x9e,_0x5d6005-0x2d);}this[_0x53ecfc(-0x6a,_0x5042b0._0x313142,-0x7e,_0x5042b0._0x4eaca1)][_0x53ecfc(-0x52,-_0x5042b0._0x942cad,-_0x5042b0._0x5d93ea,-_0x5042b0._0x27ae21)]>0x0&&(this[_0x50d96d(-_0x5042b0._0x2b3ff0,-0x187,-_0x5042b0._0xa79022,-_0x5042b0._0x362dbc)]=_0x50d96d(-_0x5042b0._0x1d3d0f,-0x209,-_0x5042b0._0xfac607,-0xe9));function _0x53ecfc(_0x5c5c46,_0x1013e8,_0x4c73c6,_0x26fc09){return _0x3a2825(_0x5c5c46,_0x4c73c6-_0x486817._0x4ff021,_0x4c73c6-0x42,_0x26fc09-0x1d8);}const _0x43e8b8=isUserVisibleReasoning(this['request'])?this['reasoningParts']['join'](''):void 0x0;return{'id':this[_0x50d96d(-0x1a7,-_0x5042b0._0x3be6f7,-_0x5042b0._0x33c9e9,-_0x5042b0._0x56efc6)]||_0x53ecfc(-0x5e,0x7e,-0x43,-0x23)+Date[_0x53ecfc(-_0x5042b0._0x2861d2,-0x16,-0xea,-0x8c)](),'content':createContentBlocks(this['textParts'][_0x50d96d(-0x1a2,-0x202,-_0x5042b0._0x1de32b,-0x2cc)](''),this[_0x53ecfc(-0xa5,-0x58,-_0x5042b0._0x3e43c0,-_0x5042b0._0x3dcddc)],_0x43e8b8),'stopReason':this[_0x53ecfc(-0x117,-_0x5042b0._0x575633,-_0x5042b0._0x204e6c,-_0x5042b0._0xa8ba24)],'usage':createUsage(this[_0x53ecfc(-_0x5042b0._0x2ff028,-0x98,-0x146,-0xd1)])};}['consumeEvent'](_0x22a0f8){const _0x358a3d={_0x304f97:0x2b,_0x34b69c:0xc8,_0x3f2d63:0x91,_0x4ff86e:0x5f,_0x417f54:0x1d,_0x209947:0xca,_0x276c27:0x9,_0x76a9b4:0xfc,_0x2c89d0:0x142,_0x36de02:0x5f,_0x3e9caf:0xa8,_0x4af74e:0x2e9,_0x55a35b:0x2ad,_0x499ef2:0x1b1,_0x2f9d8e:0x256,_0x454eea:0x2fa,_0x31a782:0x223,_0x58c139:0x153,_0x3569cc:0x1ab,_0x7f65be:0x237,_0x42fcb3:0xe7,_0xb604d4:0x153,_0x82acc9:0x20a,_0x44d0df:0x1a7,_0x30894a:0x34e,_0x51d0b9:0x2a8,_0x2d5c03:0xe,_0x2b7575:0x6e,_0x4604e7:0x5f,_0x4bd426:0xdb,_0x355d9d:0x251,_0x2d8a9d:0x1c3,_0x1390a6:0x2ac,_0x101d38:0x296,_0x5d1b11:0x34c,_0x124723:0x6c,_0x54284a:0xac,_0x3a64fc:0x2c,_0x554327:0x27e,_0x3e0dfc:0x281,_0x27835d:0x167,_0x3a5dc6:0x1ba,_0xa589ad:0x2e6,_0x30c620:0x20e,_0x1bf1b9:0x285,_0x1fa8e7:0x2da,_0x4e25a7:0x17e,_0x141404:0xad,_0x567b34:0xc3,_0x1a259e:0x1d3,_0x295008:0x19c,_0x2b5c2b:0xde,_0x2b19af:0x27,_0x5d0704:0x147,_0x53d9ea:0x16a,_0x245f59:0x79,_0x1014aa:0x2,_0x36ae42:0x74,_0x1fc705:0x31,_0x53818e:0x7e,_0x410e19:0x33,_0x6a5d64:0x171,_0x40ac6e:0x1a0,_0x1557d2:0x246,_0x29137e:0x1d7,_0x41ee93:0x250,_0x2c8b1f:0x259,_0x3bcf49:0x312,_0xfdaa88:0x2b0,_0xd8898f:0x261,_0x3981c7:0x199,_0x56b513:0x219,_0x1d7a8e:0x8,_0x5666f6:0x85,_0x355205:0x2e,_0x5f4fca:0x1a6,_0x1210ef:0x2bb,_0xe6dbb3:0x1ee,_0xa448a3:0x219,_0x4283f3:0xda,_0x1fec2a:0x26,_0x31fcca:0x21e,_0x3ca06d:0x20d,_0x32fd28:0x3d,_0x4b66fc:0x30,_0x759b7e:0x27e,_0x41ee87:0xb5,_0x172db5:0xe9,_0x4a38ed:0x84},_0x3b6aeb={_0x370eef:0x300};function _0x2c0115(_0x1b242e,_0x3fc482,_0x5bd44d,_0x4ffe70){return _0x40b3f8(_0x1b242e-0xb5,_0x1b242e,_0x5bd44d-0x1cc,_0x4ffe70- -0x1ae);}const _0x3769bf=[];function _0x17a08d(_0x3c67e8,_0x314930,_0x37e188,_0x1a35f0){return _0x3a2825(_0x3c67e8,_0x1a35f0-_0x3b6aeb._0x370eef,_0x37e188-0x199,_0x1a35f0-0x60);}for(const _0x1e30f6 of _0x22a0f8[_0x17a08d(_0x358a3d._0x304f97,0x14a,0x67,_0x358a3d._0x34b69c)]??[]){const _0x1c1af4=_0x1e30f6['delta'],_0x4ad64a=extractChatCompletionReasoningDelta(_0x1c1af4);_0x4ad64a[_0x17a08d(0xba,_0x358a3d._0x3f2d63,0xe0,_0x358a3d._0x4ff86e)]>0x0&&(this[_0x17a08d(_0x358a3d._0x417f54,0x1f,-_0x358a3d._0x209947,-_0x358a3d._0x276c27)][_0x2c0115(-0x327,-0x2f0,-0x281,-0x296)](_0x4ad64a),isUserVisibleReasoning(this[_0x17a08d(_0x358a3d._0x76a9b4,_0x358a3d._0x2c89d0,_0x358a3d._0x36de02,_0x358a3d._0x3e9caf)])&&_0x3769bf[_0x2c0115(-0x2c1,-_0x358a3d._0x4af74e,-_0x358a3d._0x55a35b,-0x296)]({'type':_0x2c0115(-_0x358a3d._0x499ef2,-0x184,-_0x358a3d._0x2f9d8e,-0x239),'contentIndex':0x0,'delta':_0x4ad64a,'itemId':(this['responseId']||_0x2c0115(-_0x358a3d._0x454eea,-0x2a9,-0x1a3,-_0x358a3d._0x31a782))+':reasoning:0','outputIndex':0x0}));const _0x5bfbf0=typeof _0x1c1af4?.[_0x17a08d(_0x358a3d._0x58c139,_0x358a3d._0x3569cc,0x143,_0x358a3d._0x58c139)]===_0x2c0115(-0x240,-_0x358a3d._0x7f65be,-0x15e,-0x1a7)?_0x1c1af4[_0x17a08d(0xcb,0x21c,_0x358a3d._0x42fcb3,_0x358a3d._0xb604d4)]:typeof _0x1c1af4?.['refusal']===_0x2c0115(-_0x358a3d._0x82acc9,-0x119,-0x1fd,-_0x358a3d._0x44d0df)?_0x1c1af4[_0x2c0115(-0x1eb,-0x28a,-_0x358a3d._0x30894a,-_0x358a3d._0x51d0b9)]:'';_0x5bfbf0[_0x17a08d(_0x358a3d._0x2d5c03,0x117,_0x358a3d._0x2b7575,_0x358a3d._0x4604e7)]>0x0&&(this[_0x2c0115(-_0x358a3d._0x4bd426,-_0x358a3d._0x355d9d,-_0x358a3d._0x2d8a9d,-0x17d)][_0x2c0115(-_0x358a3d._0x1390a6,-0x2f9,-0x249,-_0x358a3d._0x101d38)](_0x5bfbf0),_0x3769bf[_0x2c0115(-_0x358a3d._0x5d1b11,-0x28c,-0x2b3,-0x296)]({'type':_0x17a08d(0x87,-0xec,-_0x358a3d._0x124723,-0x46),'index':0x0,'text':_0x5bfbf0}));for(const _0xd73a0c of _0x1c1af4?.[_0x17a08d(-_0x358a3d._0x54284a,0x5a,-0x7e,_0x358a3d._0x3a64fc)]??[]){const _0x2cc0dd=_0xd73a0c[_0x2c0115(-_0x358a3d._0x554327,-0x222,-0x255,-0x265)]??0x0;let _0x23af3a=this[_0x2c0115(-_0x358a3d._0x3e0dfc,-_0x358a3d._0x27835d,-0x183,-_0x358a3d._0x3a5dc6)][_0x2c0115(-0x291,-0x22f,-_0x358a3d._0xa589ad,-_0x358a3d._0x30c620)](_0x2cc0dd);!_0x23af3a&&(_0x23af3a={'id':_0xd73a0c['id']??_0x2c0115(-0x2ca,-_0x358a3d._0x1bf1b9,-0x213,-_0x358a3d._0x1fa8e7)+_0x2cc0dd,'type':_0x17a08d(0xef,0x183,_0x358a3d._0x4e25a7,_0x358a3d._0x141404),'function':{'name':_0xd73a0c[_0x17a08d(0xb0,0x3b,_0x358a3d._0x567b34,0xad)]?.['name']??'','arguments':''}},this[_0x2c0115(-0x20a,-_0x358a3d._0x1a259e,-_0x358a3d._0x295008,-_0x358a3d._0x3a5dc6)][_0x17a08d(_0x358a3d._0x2b5c2b,_0x358a3d._0x2b19af,_0x358a3d._0x5d0704,0xeb)](_0x2cc0dd,_0x23af3a),this[_0x2c0115(-0x223,-0x1c5,-_0x358a3d._0x53d9ea,-0x1c4)][_0x17a08d(-0x8f,-_0x358a3d._0x245f59,0xfe,0x30)](_0x23af3a));_0xd73a0c['id']&&(_0x23af3a['id']=_0xd73a0c['id']);_0xd73a0c[_0x17a08d(-_0x358a3d._0x1014aa,_0x358a3d._0x36ae42,-0xb,0xad)]?.[_0x17a08d(-0x22,_0x358a3d._0x1fc705,0x4d,_0x358a3d._0x53818e)]&&(_0x23af3a['function'][_0x17a08d(0xe5,_0x358a3d._0x410e19,0xa0,0x7e)]=_0xd73a0c[_0x2c0115(-_0x358a3d._0x6a5d64,-0x21c,-0x1db,-0x219)]['name']);!this['toolUseStartEmitted']['has'](_0x2cc0dd)&&_0x23af3a[_0x2c0115(-0x242,-0x16f,-_0x358a3d._0x40ac6e,-0x219)][_0x2c0115(-_0x358a3d._0x1557d2,-_0x358a3d._0x29137e,-0x1e9,-0x248)][_0x2c0115(-0x25e,-_0x358a3d._0x41ee93,-_0x358a3d._0x2c8b1f,-0x1d0)]()['length']>0x0&&(_0x3769bf[_0x2c0115(-_0x358a3d._0x3bcf49,-_0x358a3d._0xfdaa88,-0x347,-0x296)]({'type':'tool_use_delta','id':_0x23af3a['id'],'index':_0x2cc0dd,'name':_0x23af3a[_0x2c0115(-_0x358a3d._0xd8898f,-_0x358a3d._0x3981c7,-0x15f,-_0x358a3d._0x56b513)]['name']}),this['toolUseStartEmitted'][_0x17a08d(-_0x358a3d._0x1d7a8e,_0x358a3d._0x5666f6,0xa4,_0x358a3d._0x355205)](_0x2cc0dd));const _0x3b48f5=_0xd73a0c[_0x2c0115(-_0x358a3d._0x5f4fca,-_0x358a3d._0x1210ef,-_0x358a3d._0xe6dbb3,-_0x358a3d._0xa448a3)]?.[_0x17a08d(_0x358a3d._0x4283f3,_0x358a3d._0x1fec2a,0x11f,0x8a)]??'';_0x3b48f5[_0x2c0115(-_0x358a3d._0x31fcca,-_0x358a3d._0x3ca06d,-0x32f,-0x267)]>0x0&&(_0x23af3a['function']['arguments']+=_0x3b48f5,_0x3769bf[_0x17a08d(0xa8,_0x358a3d._0x32fd28,-0x80,_0x358a3d._0x4b66fc)]({'type':'tool_use_delta','id':_0x23af3a['id'],'index':_0x2cc0dd,'inputDelta':_0x3b48f5}));}_0x1e30f6['finish_reason']==='tool_calls'&&(this[_0x2c0115(-0x153,-0x183,-_0x358a3d._0x759b7e,-0x1e3)]=_0x17a08d(_0x358a3d._0x41ee87,_0x358a3d._0x172db5,_0x358a3d._0x4a38ed,0xac));}return _0x3769bf;}},OpenAiResponsesStreamParser=class{['callIdToOutputIndex']=new Map();[_0x40b3f8(0x14,-0x8e,-0xc0,-0xa5)];[_0x3a2825(-0x2a0,-0x1e9,-0x229,-0x2b0)]=new Map();[_0x40b3f8(-0x32,-0x98,0xb3,0x33)]=new Map();[_0x3a2825(-0x291,-0x2e4,-0x232,-0x28d)]=new Map();[_0x40b3f8(-0x12d,-0x4c,-0xaa,-0x70)];[_0x3a2825(-0x3ac,-0x321,-0x2db,-0x2fc)]=new Map();[_0x3a2825(-0x3bf,-0x2fe,-0x33a,-0x339)]=new Map();constructor(_0x2df579){const _0x10440b={_0x10f255:0x43d,_0x4528cc:0x2b2},_0x1b1bb7={_0x4e982f:0x1f,_0x296c2a:0x3f3};function _0x100836(_0x1862d3,_0x437f56,_0x258013,_0x347f29){return _0x40b3f8(_0x1862d3-0x141,_0x1862d3,_0x258013-_0x1b1bb7._0x4e982f,_0x437f56-_0x1b1bb7._0x296c2a);}this[_0x100836(_0x10440b._0x10f255,0x383,0x3c6,_0x10440b._0x4528cc)]=_0x2df579;}['consumeSseEvent'](_0x36fb1f){const _0x1a05a1={_0x6ba001:0x15f,_0xd1c44a:0x1fc,_0x54000a:0x101,_0x400986:0x54,_0x3e9eaa:0xc1,_0x7141d4:0x3a,_0x403031:0x7e,_0x18546e:0x24,_0x433864:0x8f,_0x48803d:0x160,_0x36010f:0x10c,_0x4085ef:0x159,_0x250a22:0x10f,_0x44a945:0x12e,_0x168895:0x77,_0x3ca4f1:0xc5,_0x16721c:0x31},_0x439898={_0x5189c0:0x32},_0x5c4def=_0x36fb1f[_0x4bcdab(0x122,_0x1a05a1._0x6ba001,_0x1a05a1._0xd1c44a,_0x1a05a1._0x54000a)]('\x0a');function _0x1c0091(_0x4a24e8,_0x5c05ca,_0x3037b8,_0x256742){return _0x40b3f8(_0x4a24e8-0x1eb,_0x3037b8,_0x3037b8-0x17e,_0x256742-0xa0);}const _0xf80da4=_0x5c4def['find'](_0x4f43c6=>_0x4f43c6[_0x1c0091(0x13f,0xbf,0xa0,0x7f)](_0x1c0091(-0x29,-0x16e,-0x146,-0xc2)))?.[_0x4bcdab(0x51,0x9a,0xa8,0x3f)](0x6)['trim'](),_0x213204=_0x5c4def[_0x1c0091(0xf7,_0x1a05a1._0x400986,0xb6,_0x1a05a1._0x3e9eaa)](_0x1c7cc8=>_0x1c7cc8[_0x1c0091(0xb0,0x103,0x153,0x7f)](_0x4bcdab(0xe8,0xe9,0x179,0x8d)))[_0x1c0091(-_0x1a05a1._0x7141d4,_0x1a05a1._0x403031,0x85,-_0x1a05a1._0x18546e)](_0x1cbf79=>_0x1cbf79[_0x1c0091(-0xb0,0x5,-0x25,-0xb)](0x5)[_0x4bcdab(0x1cd,0x12c,0x19e,0x1c3)]())['join']('\x0a')[_0x4bcdab(_0x1a05a1._0x433864,0x123,0x170,0x68)]();function _0x4bcdab(_0x584e8b,_0x1fca98,_0x2032d5,_0x4846fc){return _0x40b3f8(_0x584e8b-_0x439898._0x5189c0,_0x2032d5,_0x2032d5-0x60,_0x1fca98-0x145);}if(_0x213204['length']===0x0||_0x213204===_0x4bcdab(_0x1a05a1._0x48803d,0x151,0xd7,0xde))return[];const _0x48cb99=JSON[_0x1c0091(-_0x1a05a1._0x36010f,-_0x1a05a1._0x4085ef,-_0x1a05a1._0x250a22,-0xa3)](_0x213204);return this[_0x1c0091(-_0x1a05a1._0x44a945,-0x144,-_0x1a05a1._0x168895,-0x9a)](_0xf80da4??String(_0x48cb99[_0x4bcdab(-0x64,-0x1b,-_0x1a05a1._0x3ca4f1,_0x1a05a1._0x16721c)]??''),_0x48cb99);}[_0x3a2825(-0x185,-0x216,-0x2e8,-0x1a8)](_0x120c01){const _0x1f36b4={_0x338337:0x3c4,_0xe231ce:0x39b,_0x437f73:0x3a0},_0x411131={_0x29b374:0x6e6,_0x20607e:0x36};function _0xafe93c(_0x3ddd26,_0x3891ef,_0x3e26a9,_0x49382d){return _0x3a2825(_0x49382d,_0x3ddd26-_0x411131._0x29b374,_0x3e26a9-0x83,_0x49382d-_0x411131._0x20607e);}return this[_0xafe93c(_0x1f36b4._0x338337,0x38e,_0x1f36b4._0xe231ce,_0x1f36b4._0x437f73)](String(_0x120c01['type']??''),_0x120c01);}[_0x40b3f8(0x2b,-0x67,-0x87,-0xf)](){const _0x61d1f8={_0x4e5134:0x121,_0x4ddbd8:0x112,_0x3bcfc0:0xc0,_0x1a3539:0x123,_0x57e7e3:0xd6,_0x1bf10d:0xca,_0xb93432:0x166,_0x1a547c:0x179},_0x35936a={_0x38af51:0x109,_0x418015:0xf1,_0x354e27:0x9f},_0x2c2385={_0x2d3f90:0x166,_0x3be07d:0x1b4},_0x124223=this['finalResponse']??{'id':'resp-'+Date[_0x21acf3(-_0x61d1f8._0x4e5134,-0x10f,-_0x61d1f8._0x4ddbd8,-0xac)](),'object':_0x21acf3(-0xe6,-0x88,-_0x61d1f8._0x3bcfc0,-_0x61d1f8._0x1a3539),'status':'completed','output':this[_0x21acf3(-_0x61d1f8._0x57e7e3,-_0x61d1f8._0x1bf10d,-_0x61d1f8._0xb93432,-_0x61d1f8._0x1a547c)](),'usage':{'input_tokens':0x0,'output_tokens':0x0}};function _0x478b72(_0x36fbde,_0x23aaa0,_0xf761ae,_0x3b7455){return _0x40b3f8(_0x36fbde-_0x2c2385._0x2d3f90,_0x36fbde,_0xf761ae-_0x2c2385._0x3be07d,_0x23aaa0-0x1e7);}function _0x21acf3(_0x242b1e,_0x33d2bc,_0x3a7bb1,_0xa5acca){return _0x40b3f8(_0x242b1e-_0x35936a._0x38af51,_0x33d2bc,_0x3a7bb1-_0x35936a._0x418015,_0x242b1e- -_0x35936a._0x354e27);}return parseResponsesResponse(_0x124223,this[_0x21acf3(-0x10f,-0xca,-0x10f,-0x137)]);}[_0x40b3f8(-0x55,-0xae,-0x125,-0xb8)](){const _0x40078f={_0x326b15:0x15e,_0x5b9bdf:0xbb},_0x52ed54={_0x43344c:0x197};function _0x4c7ffe(_0x1defc2,_0x3c6950,_0x3b24db,_0x369796){return _0x3a2825(_0x1defc2,_0x369796-0x1d2,_0x3b24db-_0x52ed54._0x43344c,_0x369796-0x18b);}return this[_0x4c7ffe(-0xc9,-_0x40078f._0x326b15,-0x16a,-_0x40078f._0x5b9bdf)]!==void 0x0;}['consumeEvent'](_0x56ca01,_0x44a03a){const _0x383463={_0x56e0eb:0x1d6,_0x5205d7:0x1f4,_0x4f3cf5:0x37f,_0x3e7136:0x35e,_0x123d21:0x374,_0x32bb2f:0x249,_0xca1e3f:0x2d9,_0xf0341c:0x278,_0x52c31a:0x1c4,_0x4a0f10:0x230,_0xc925a3:0x239,_0xea7a12:0x172,_0x49d37e:0x21c,_0x1f3363:0x14f,_0x26f00e:0x143,_0x13a99c:0x165,_0x4842ba:0x24f,_0x192970:0x11e,_0x5d4387:0x72,_0x1bc2fb:0x263,_0xccaf03:0x1a2,_0x187acf:0x18c,_0x17c126:0x24c,_0x361d5d:0x1b2,_0x2582e2:0x2ad,_0x5aafe6:0x23f,_0x67f79d:0x1f5,_0x12f389:0x28f,_0x212450:0x271,_0x458e4b:0x222,_0x555937:0x24f,_0x279685:0x23f,_0x30ab86:0x1c7,_0x42eafe:0x18f,_0x458c9e:0x17a,_0x1eddaf:0x21d,_0x27d26f:0x1fa,_0x5e4758:0x2e5,_0x4504cc:0x238,_0x1eee03:0x207,_0x49652c:0x116,_0x49a0b2:0x90,_0x1eaf43:0x2df,_0x40ce7c:0x2bf,_0x3fb305:0x22e,_0x57a489:0x27e,_0x5b8ec5:0x244,_0x5d2083:0x20e,_0x4f3ba1:0x1f1,_0x3e56c3:0x34c,_0x3f5ba2:0x234,_0x52ee86:0x1d2,_0x3a30b4:0x2a4,_0x51a8f8:0x18d,_0x262eb7:0x339,_0x1f0db9:0x20b,_0x5a7186:0x1ae,_0x4f57f6:0x27f,_0x4a15b9:0x20b,_0x1e4ed5:0x211,_0x43e40b:0x1c3,_0x157287:0x1af,_0x3da214:0x2e7,_0x3678f2:0x27e,_0x29a87c:0x332,_0x2e0646:0x28e,_0x31a63a:0x25b,_0x5cf2f0:0x1e9,_0x45b243:0x326,_0xe113:0x2d6,_0xf9286:0x241,_0x3f0e40:0x2a0,_0xc1fce7:0x1ad,_0x131b12:0x2a1,_0x6974d1:0x194,_0x2498a6:0x236,_0xef0105:0x28c,_0x474672:0x2f0,_0x392ccd:0x355,_0x218a5c:0x1bc,_0x442762:0x289,_0x168e92:0x212,_0x2b1da9:0x1b6,_0x40bd8f:0x2fb,_0x7bef0a:0x2ef,_0x1f018a:0x2e8,_0x4d2de9:0x39a,_0xe6076d:0x21c,_0x46d283:0x29c,_0x29e50a:0x328,_0x5ea42c:0x313,_0x3ef7ab:0x23e,_0x458f73:0x2e9,_0x1e737a:0x32a,_0x118e24:0x1ee,_0x35bb12:0x143,_0x36239a:0x1d4,_0x39289c:0x1b1,_0x312013:0x26f,_0x2901cc:0x354,_0x3a32d9:0x1ed,_0x48aef5:0x20d,_0x1028c3:0x334,_0x1c6dff:0x2f6,_0x116094:0x313,_0x875e74:0xe8,_0x14c8a6:0x6a,_0x1a9dc4:0x3fc,_0x25f6b3:0x32d,_0x486715:0x3bd,_0x4dded9:0x2d4,_0x1b54cd:0x13a,_0x45259c:0x273,_0x38fbb1:0x24a,_0x51634b:0x231,_0x2dee38:0x1d9,_0x72169e:0x213,_0x8876e7:0x1d1,_0x582050:0x1a4,_0x3e50f0:0x1ac,_0x498452:0x2e2,_0x203db3:0x1cc,_0x27fe75:0x283,_0x3c7f01:0x229,_0x4553d3:0x29d,_0x4d931e:0x27d,_0x188f09:0x26f,_0x4733c1:0x14d,_0x516cea:0x207,_0x415c3e:0x1c2,_0x2b04f3:0x15b,_0xcdc5af:0x24d,_0x47e5ee:0x21a,_0x52c5a4:0x1c9,_0x5f512d:0x147,_0x2790fa:0x1dd,_0x282ee4:0x22f,_0x32e8e2:0x2c8,_0x4f52b1:0x2bd,_0x278f2e:0x35d,_0xcf73cd:0x230,_0x4d6b22:0x260,_0x27e64e:0x2bd,_0x415365:0x1e0,_0x248d29:0x1bf,_0x2a8c37:0x195,_0x44e674:0x23c,_0x58fbb1:0x26a,_0x35ae81:0x284,_0x3ac97c:0x169,_0x325e6c:0xc4,_0x52ce76:0x277,_0x4d6386:0x192,_0x120ab6:0x288,_0x4d489b:0x16b,_0xb0c355:0x23c,_0x4b1428:0x250,_0x5e3646:0x325,_0x4ee7a8:0x1da,_0x2d2e39:0x370,_0x41819d:0x203,_0x845882:0x343,_0x2a87a0:0x28b,_0xf6dc8a:0x273,_0x5f0bbd:0x249,_0x28e9a8:0x248,_0x1b6c38:0x2f0,_0x379cca:0x304,_0x2ffe31:0x2b6,_0x16c82e:0x2d3,_0x533350:0x2b1,_0x31fb60:0x2a5,_0x3aecbb:0x311,_0x511e12:0x3bf,_0x19817d:0x31e,_0x5ec7e3:0x365,_0x51443f:0x23f,_0x3a16e4:0x314,_0x5815a7:0x25c,_0x120cfc:0x31d,_0x46e95c:0x269,_0x420a20:0x30e,_0xcc2ac0:0x188,_0x103848:0x16c,_0x27396d:0x26c,_0x221c04:0x286,_0x17c7d9:0x276,_0x49b4fc:0x344,_0x2a9586:0x217,_0x250c0a:0x183,_0x5629c1:0xfb,_0xc996ff:0x31b,_0x205623:0x2bc,_0x7935ab:0x394,_0xd06a68:0x1c3,_0x696c5:0x32e,_0x3c767a:0x240,_0x26a7e4:0x279,_0x10b3f5:0x2c2,_0x19d8ac:0x2b1,_0x13abcc:0x295,_0x4ea4f3:0x229,_0x30e298:0x305,_0xab5957:0x2b2,_0x5058ce:0x2af,_0xae2f8:0x362,_0x4932e1:0x21c,_0x22effa:0x21e,_0x2f4a22:0x2b0,_0x54b129:0x1b9,_0x21d682:0x132,_0x27b3ac:0x39d,_0x19adb5:0x205,_0x512dbe:0x241,_0x337418:0x18d,_0x221b01:0x209,_0x28435f:0x1e2,_0x1d1f9a:0x1f9,_0x15b69f:0x23d,_0xcc068f:0x259,_0x7efbf3:0x336,_0x2dc97a:0x2cf,_0x227a36:0x116,_0x3bdec2:0x87,_0x37c701:0x14a,_0x2723ea:0x156,_0x27dd49:0x104,_0x328fc5:0x8a,_0x13b963:0x2c1,_0x58e8f0:0x189,_0x2d17a1:0x1fd,_0x36408a:0x1f8,_0x3c6ff3:0x28e,_0x5366a5:0x2f5,_0x320c32:0x3b7,_0x3b446d:0x358,_0x6e4dcf:0x282,_0x284a1c:0x34d,_0x34569c:0x2e4,_0x49068f:0x26c,_0x918653:0x2ca,_0x31502c:0x22c,_0x545a14:0x171,_0x1b971d:0x209,_0x1803e1:0x253,_0x294e30:0x2c7,_0x58bcaa:0x269,_0x3bfab9:0x2a9,_0xe0ff9a:0x27d,_0x18eeb0:0x1d6,_0xacc649:0x15d,_0x58551a:0x1c3,_0x3feb79:0x139,_0x54544a:0x1fc,_0x58e20c:0x101,_0x1b3cbc:0x297,_0x195a68:0x188,_0x3bccbf:0x24a,_0x5c2c27:0x160,_0x5306ca:0x3af,_0x1d4753:0x3d5,_0x2b6f62:0x34a,_0x5b549e:0x258,_0x41b033:0x2fd,_0x4a06c5:0x298,_0x249117:0x165,_0x345f35:0x2ab,_0x49a7b5:0x1f4,_0x5ad2f7:0x269,_0x3db4ed:0x2b1,_0x2f6e6e:0x241,_0x1fa250:0x248,_0x1ba543:0x296,_0x548d63:0x197,_0x3addbd:0x4c,_0x3f60d8:0xc2,_0x21cf69:0x24f,_0x2d2007:0x2af,_0x289e28:0x236,_0x22c309:0x1e5,_0x1915b3:0x226,_0x55a3f9:0x210,_0x5257f7:0x220,_0x3dfa9b:0x235,_0x215f3e:0x367,_0x563903:0x333,_0xca6a0f:0x257,_0x1b19fe:0x2aa,_0x492b2d:0x2e4,_0x1e0faf:0x2c0,_0x516816:0x2a6,_0x31a42a:0x12c,_0x152e37:0x1a3,_0x3747f0:0x10a,_0x2df71d:0x220,_0x3ca295:0x35a,_0x2a1330:0x16f,_0x472a7a:0x210,_0x41b4d3:0x265,_0x3f81d6:0x26b,_0x258172:0x219,_0x4abdbf:0x19b,_0x3ddd9e:0x1a9,_0xbc670e:0xe5,_0x5f3acd:0x1a0},_0x4da623={_0x4d52eb:0x2e9},_0x3271f8={_0x24b4e2:0x1a3,_0x29facc:0x19f};function _0x23732c(_0x3dd6c7,_0x5cbe19,_0x3b07fc,_0x25faf1){return _0x40b3f8(_0x3dd6c7-_0x3271f8._0x24b4e2,_0x3b07fc,_0x3b07fc-_0x3271f8._0x29facc,_0x3dd6c7-0x27c);}function _0x384403(_0x1c7fa0,_0x53ff0f,_0x194d0b,_0x5b7524){return _0x40b3f8(_0x1c7fa0-0x129,_0x1c7fa0,_0x194d0b-0x80,_0x53ff0f-_0x4da623._0x4d52eb);}switch(_0x56ca01){case _0x384403(0x139,_0x383463._0x56e0eb,_0x383463._0x5205d7,0x10b):{const _0x415179=typeof _0x44a03a['output_index']==='number'?_0x44a03a[_0x384403(_0x383463._0x4f3cf5,0x2d6,0x321,0x346)]:0x0,_0x57a986=typeof _0x44a03a[_0x384403(0x322,0x2b6,_0x383463._0x3e7136,_0x383463._0x123d21)]==='string'?_0x44a03a[_0x23732c(_0x383463._0x32bb2f,_0x383463._0xca1e3f,_0x383463._0xf0341c,0x1b3)]:'';if(_0x57a986[_0x384403(_0x383463._0x52c31a,_0x383463._0x4a0f10,_0x383463._0xc925a3,_0x383463._0xea7a12)]>0x0){const _0x4e2a0f=this['responseTextParts'][_0x23732c(_0x383463._0x49d37e,0x2c5,_0x383463._0x1f3363,0x273)](_0x415179)??[];return _0x4e2a0f['push'](_0x57a986),this[_0x23732c(_0x383463._0x26f00e,0x18b,0x80,_0x383463._0x13a99c)][_0x384403(0x37c,0x2bc,0x26c,_0x383463._0x4842ba)](_0x415179,_0x4e2a0f),[{'type':_0x23732c(_0x383463._0x192970,0x75,0xa9,_0x383463._0x5d4387),'index':_0x415179,'text':_0x57a986}];}break;}case _0x384403(0x375,0x305,_0x383463._0x1bc2fb,0x2ae):{const _0x2c90eb=typeof _0x44a03a['output_index']===_0x384403(_0x383463._0xccaf03,0x241,_0x383463._0x187acf,_0x383463._0x17c126)?_0x44a03a['output_index']:void 0x0,_0x25ecbe=_0x44a03a['item'];if(_0x25ecbe?.[_0x384403(0x104,0x189,_0x383463._0x361d5d,0xf4)]==='function_call'&&_0x25ecbe[_0x384403(_0x383463._0x2582e2,_0x383463._0x5aafe6,_0x383463._0x67f79d,0x18a)]&&_0x25ecbe['name'])return this[_0x23732c(0x166,0x133,0x13c,0x1de)][_0x384403(0x370,0x2bc,_0x383463._0x12f389,_0x383463._0x212450)](_0x25ecbe[_0x23732c(0x1d2,_0x383463._0x458e4b,0x25e,0x18f)],{'id':_0x25ecbe['call_id'],'type':'function','function':{'name':_0x25ecbe['name'],'arguments':''}}),_0x2c90eb!==void 0x0&&(this[_0x23732c(0x27b,0x1e4,0x21d,0x216)]['set'](_0x2c90eb,_0x25ecbe[_0x23732c(0x1d2,0x22e,0x16d,0x1f4)]),this['callIdToOutputIndex'][_0x23732c(_0x383463._0x555937,_0x383463._0x52c31a,_0x383463._0x5aafe6,0x1ef)](_0x25ecbe[_0x384403(0x294,_0x383463._0x279685,0x238,0x2c1)],_0x2c90eb)),[{'type':_0x384403(_0x383463._0x30ab86,_0x383463._0x42eafe,_0x383463._0x458c9e,_0x383463._0x1eddaf),'id':_0x25ecbe[_0x384403(0x16d,0x23f,_0x383463._0x27d26f,_0x383463._0x5e4758)],'index':_0x2c90eb??0x0,'name':_0x25ecbe['name']}];if(_0x25ecbe?.['type']===_0x384403(_0x383463._0x4504cc,_0x383463._0x1eee03,0x186,0x298)&&_0x25ecbe['id']){const _0x1d1834=this[_0x23732c(_0x383463._0x49652c,0x65,_0x383463._0x49a0b2,0x180)](_0x25ecbe['id'],_0x2c90eb);_0x2c90eb!==void 0x0&&this[_0x23732c(0x2af,_0x383463._0x1eaf43,_0x383463._0x40ce7c,_0x383463._0x3fb305)][_0x23732c(0x24f,_0x383463._0x57a489,0x1db,0x253)](_0x2c90eb,_0x1d1834['id']);}break;}case _0x384403(0x1a0,0x1ad,_0x383463._0x5b8ec5,_0x383463._0x5d2083):{const _0x512bf6=typeof _0x44a03a[_0x23732c(0x1d2,_0x383463._0x4f3ba1,0x210,0x235)]===_0x384403(0x2ba,0x2f0,_0x383463._0x3e56c3,_0x383463._0x3f5ba2)?_0x44a03a[_0x23732c(_0x383463._0x52ee86,_0x383463._0x3a30b4,_0x383463._0x51a8f8,0x12c)]:typeof _0x44a03a[_0x384403(_0x383463._0x262eb7,0x2d6,0x34a,_0x383463._0x1f0db9)]==='number'?this['outputIndexToCallId'][_0x23732c(_0x383463._0x49d37e,0x1ce,_0x383463._0x17c126,_0x383463._0x5a7186)](_0x44a03a[_0x384403(_0x383463._0x4f57f6,0x2d6,_0x383463._0x4a15b9,0x2db)]):void 0x0,_0x542d61=typeof _0x44a03a[_0x384403(0x26a,0x2b6,0x28b,0x1e2)]===_0x23732c(0x283,0x1c4,0x34b,0x207)?_0x44a03a[_0x23732c(0x249,_0x383463._0x1e4ed5,0x29c,0x2a8)]:'',_0x20d2ac=_0x512bf6?this['toolCalls']['get'](_0x512bf6):void 0x0;if(_0x20d2ac&&_0x542d61[_0x23732c(_0x383463._0x43e40b,_0x383463._0x157287,0x157,0x293)]>0x0)return _0x20d2ac[_0x384403(_0x383463._0x3da214,_0x383463._0x3678f2,_0x383463._0x29a87c,_0x383463._0x2e0646)][_0x384403(0x27d,_0x383463._0x31a63a,0x1bf,0x218)]+=_0x542d61,[{'type':_0x384403(0x227,_0x383463._0x42eafe,0xcb,0x104),'id':_0x20d2ac['id'],'index':this[_0x384403(0x2b2,0x2aa,_0x383463._0x5cf2f0,0x380)]['get'](_0x20d2ac['id'])??(typeof _0x44a03a[_0x384403(_0x383463._0x45b243,_0x383463._0xe113,0x2d5,0x381)]===_0x384403(0x257,_0x383463._0xf9286,_0x383463._0x157287,0x1e9)?_0x44a03a[_0x23732c(0x269,_0x383463._0x3f0e40,_0x383463._0xc1fce7,_0x383463._0x131b12)]:0x0),'inputDelta':_0x542d61}];break;}case _0x23732c(0x1ff,_0x383463._0x6974d1,_0x383463._0x2498a6,_0x383463._0xef0105):{const _0x4a5126=typeof _0x44a03a['call_id']===_0x384403(0x245,_0x383463._0x474672,_0x383463._0x392ccd,0x2d8)?_0x44a03a[_0x23732c(_0x383463._0x52ee86,_0x383463._0x218a5c,0x15a,_0x383463._0x442762)]:typeof _0x44a03a[_0x23732c(0x269,_0x383463._0x168e92,0x28d,0x32b)]===_0x384403(_0x383463._0x2b1da9,0x241,_0x383463._0x40bd8f,0x2f2)?this[_0x384403(_0x383463._0x7bef0a,_0x383463._0x1f018a,_0x383463._0x4d2de9,0x3ae)][_0x23732c(_0x383463._0xe6076d,0x2dc,0x1e1,_0x383463._0x46d283)](_0x44a03a[_0x384403(_0x383463._0x29e50a,_0x383463._0xe113,_0x383463._0x5ea42c,_0x383463._0x3ef7ab)]):void 0x0,_0x4f90bc=_0x4a5126?this['toolCalls']['get'](_0x4a5126):void 0x0;_0x4f90bc&&typeof _0x44a03a[_0x384403(_0x383463._0x458f73,_0x383463._0x31a63a,0x27a,0x1f4)]==='string'&&(_0x4f90bc[_0x384403(0x31b,0x27e,0x282,_0x383463._0x1e737a)]['arguments']=_0x44a03a[_0x23732c(_0x383463._0x118e24,_0x383463._0x35bb12,_0x383463._0x36239a,_0x383463._0x39289c)]);break;}case _0x384403(0x28c,_0x383463._0x312013,0x222,0x1a1):{const _0x15fd89=typeof _0x44a03a[_0x384403(0x23d,0x2d6,_0x383463._0x2901cc,0x365)]===_0x384403(_0x383463._0x3a32d9,0x241,0x23a,_0x383463._0x48aef5)?_0x44a03a[_0x384403(_0x383463._0x474672,0x2d6,_0x383463._0x1028c3,0x21f)]:void 0x0,_0x5b2b74=_0x44a03a[_0x384403(0x292,_0x383463._0x1c6dff,_0x383463._0x116094,0x373)];if(_0x5b2b74?.[_0x23732c(0x11c,0xe4,_0x383463._0x875e74,_0x383463._0x14c8a6)]===_0x384403(_0x383463._0x1a9dc4,_0x383463._0x25f6b3,_0x383463._0x486715,_0x383463._0x4dded9)){const _0x53c0c9=_0x5b2b74[_0x23732c(0x1d2,_0x383463._0x1b54cd,_0x383463._0x45259c,_0x383463._0x38fbb1)]??(_0x15fd89!==void 0x0?this['outputIndexToCallId'][_0x384403(_0x383463._0x51634b,0x289,_0x383463._0x2dee38,0x265)](_0x15fd89):void 0x0),_0x326736=_0x53c0c9?this[_0x384403(_0x383463._0x72169e,0x1d3,_0x383463._0x8876e7,_0x383463._0x582050)]['get'](_0x53c0c9):void 0x0;_0x326736&&typeof _0x5b2b74[_0x384403(_0x383463._0x3e50f0,_0x383463._0x31a63a,_0x383463._0x498452,_0x383463._0x203db3)]===_0x23732c(_0x383463._0x27fe75,_0x383463._0x3c7f01,_0x383463._0x4553d3,_0x383463._0x4d931e)&&(_0x326736['function'][_0x23732c(_0x383463._0x118e24,_0x383463._0x188f09,_0x383463._0x1f3363,0x1f8)]=_0x5b2b74['arguments']);break;}if(_0x5b2b74?.[_0x23732c(0x11c,0x144,0x1a4,_0x383463._0x4733c1)]===_0x384403(0x235,_0x383463._0x516cea,_0x383463._0x415c3e,0x15c)&&_0x5b2b74['id']){const _0x29138f=this['getOrCreateReasoningItem'](_0x5b2b74['id'],_0x15fd89);typeof _0x5b2b74[_0x384403(_0x383463._0x2b04f3,0x202,0x1f5,_0x383463._0xcdc5af)]===_0x384403(_0x383463._0x212450,_0x383463._0x474672,_0x383463._0x4d931e,0x239)&&(_0x29138f[_0x23732c(_0x383463._0x47e5ee,0x1db,0x1c7,0x149)]=_0x5b2b74[_0x23732c(0x195,0x190,_0x383463._0x52c5a4,_0x383463._0x5f512d)]);if(Array[_0x384403(_0x383463._0x2dee38,0x1c4,_0x383463._0x2790fa,_0x383463._0x282ee4)](_0x5b2b74[_0x23732c(0x2bd,_0x383463._0x32e8e2,0x2f6,0x2f0)]))for(let _0x4748f4=0x0;_0x4748f4<_0x5b2b74[_0x23732c(_0x383463._0x4f52b1,_0x383463._0x278f2e,0x373,0x2a2)][_0x384403(0x29f,_0x383463._0xcf73cd,0x19f,_0x383463._0x4d6b22)];_0x4748f4+=0x1){const _0xb0ab19=_0x5b2b74[_0x23732c(_0x383463._0x27e64e,0x27e,_0x383463._0x4f3ba1,0x256)][_0x4748f4];_0xb0ab19[_0x23732c(0x11c,_0x383463._0x415365,_0x383463._0x248d29,0x72)]===_0x384403(_0x383463._0x2a8c37,0x20d,0x18d,0x18a)&&typeof _0xb0ab19[_0x384403(0x1e4,_0x383463._0x44e674,_0x383463._0x58fbb1,_0x383463._0x35ae81)]===_0x384403(0x29c,0x2f0,0x3b3,0x25e)&&_0x29138f[_0x23732c(0x156,_0x383463._0x3ac97c,0x88,_0x383463._0x325e6c)][_0x384403(_0x383463._0x458e4b,0x2bc,_0x383463._0x52ce76,_0x383463._0x3a30b4)](_0x4748f4,_0xb0ab19[_0x384403(_0x383463._0x4d6386,0x23c,_0x383463._0x120ab6,0x2fe)]);}typeof _0x5b2b74[_0x384403(_0x383463._0x4d489b,_0x383463._0xb0c355,0x22d,_0x383463._0x4b1428)]===_0x23732c(_0x383463._0x27fe75,_0x383463._0x5e3646,0x1b0,_0x383463._0x4ee7a8)&&_0x29138f[_0x384403(0x26b,0x1ac,0x197,0x1a3)][_0x384403(_0x383463._0x2d2e39,0x2bc,0x219,_0x383463._0x41819d)](0x0,_0x5b2b74['text']);}break;}case _0x384403(_0x383463._0x845882,_0x383463._0x2a87a0,_0x383463._0xf6dc8a,0x1d8):{const _0x1c85f7=typeof _0x44a03a[_0x23732c(_0x383463._0x5f0bbd,_0x383463._0x28e9a8,_0x383463._0x442762,0x235)]===_0x384403(0x218,_0x383463._0x1b6c38,_0x383463._0x58fbb1,0x3ad)?_0x44a03a[_0x384403(_0x383463._0x379cca,_0x383463._0x2ffe31,0x233,_0x383463._0x16c82e)]:'',_0x149054=typeof _0x44a03a[_0x23732c(_0x383463._0x533350,0x1ea,_0x383463._0x31fb60,_0x383463._0x3aecbb)]===_0x384403(0x286,0x2f0,_0x383463._0x511e12,0x385)?_0x44a03a[_0x384403(0x3a6,_0x383463._0x19817d,_0x383463._0x5ec7e3,0x39a)]:typeof _0x44a03a['output_index']==='number'?this['outputIndexToReasoningId'][_0x384403(0x1ea,0x289,_0x383463._0x51443f,_0x383463._0x3a16e4)](_0x44a03a[_0x23732c(0x269,_0x383463._0x5815a7,_0x383463._0x120cfc,0x2cd)]):void 0x0,_0x2733f7=typeof _0x44a03a[_0x23732c(_0x383463._0x46e95c,_0x383463._0x25f6b3,_0x383463._0x420a20,0x236)]===_0x384403(0x2d4,0x241,_0x383463._0xcc2ac0,_0x383463._0x4b1428)?_0x44a03a['output_index']:0x0,_0x31cdfc=typeof _0x44a03a[_0x23732c(0x209,0x176,0x14d,0x253)]===_0x384403(_0x383463._0x103848,0x241,0x2b0,_0x383463._0x27396d)?_0x44a03a[_0x384403(_0x383463._0x221c04,_0x383463._0x17c7d9,0x250,_0x383463._0x49b4fc)]:0x0;if(_0x149054&&_0x1c85f7[_0x384403(0x2bd,0x230,_0x383463._0x2a9586,0x1c1)]>0x0){const _0x4d951d=this[_0x384403(0x174,_0x383463._0x250c0a,0x169,_0x383463._0x5629c1)](_0x149054,_0x2733f7);_0x4d951d['summaryByIndex'][_0x384403(_0x383463._0xc996ff,_0x383463._0x205623,_0x383463._0x7935ab,0x2be)](_0x31cdfc,''+(_0x4d951d[_0x384403(0x278,_0x383463._0xd06a68,_0x383463._0x4f57f6,_0x383463._0x5a7186)][_0x384403(_0x383463._0x696c5,_0x383463._0x442762,_0x383463._0x3c767a,0x225)](_0x31cdfc)??'')+_0x1c85f7);if(isUserVisibleReasoning(this[_0x384403(0x1d9,_0x383463._0x26a7e4,0x244,0x20b)]))return[{'type':_0x384403(0x2fc,_0x383463._0x10b3f5,0x30d,0x263),'delta':_0x1c85f7,'itemId':_0x149054,'outputIndex':_0x2733f7,'summaryIndex':_0x31cdfc}];}break;}case'response.reasoning_summary_text.done':{const _0x3be5e6=typeof _0x44a03a[_0x23732c(_0x383463._0x19d8ac,_0x383463._0x13abcc,_0x383463._0x4ea4f3,_0x383463._0x38fbb1)]==='string'?_0x44a03a[_0x23732c(0x2b1,0x2d2,0x1e7,0x330)]:typeof _0x44a03a[_0x23732c(0x269,_0x383463._0x30e298,0x1aa,_0x383463._0xab5957)]==='number'?this[_0x23732c(_0x383463._0x5058ce,_0x383463._0xae2f8,0x26a,0x374)][_0x23732c(_0x383463._0x4932e1,0x22e,0x179,0x25a)](_0x44a03a[_0x23732c(0x269,_0x383463._0x22effa,_0x383463._0x2f4a22,0x234)]):void 0x0,_0xc2642f=typeof _0x44a03a['output_index']===_0x23732c(0x1d4,0x115,_0x383463._0x54b129,_0x383463._0x21d682)?_0x44a03a[_0x384403(_0x383463._0x27b3ac,0x2d6,_0x383463._0x19adb5,0x260)]:0x0,_0x42dbee=typeof _0x44a03a[_0x23732c(0x209,_0x383463._0x5a7186,0x265,0x1b2)]===_0x384403(0x2d6,_0x383463._0x512dbe,_0x383463._0x31fb60,_0x383463._0x337418)?_0x44a03a[_0x23732c(_0x383463._0x221b01,_0x383463._0x28435f,0x220,_0x383463._0x1d1f9a)]:0x0,_0x137f6b=typeof _0x44a03a[_0x384403(0x17f,_0x383463._0xb0c355,_0x383463._0x15b69f,_0x383463._0xcc068f)]===_0x384403(0x3b9,0x2f0,_0x383463._0x7efbf3,_0x383463._0x2dc97a)?_0x44a03a[_0x23732c(0x1cf,0x28b,0x206,0x1ea)]:'';_0x3be5e6&&this[_0x23732c(_0x383463._0x227a36,0x79,_0x383463._0x3bdec2,_0x383463._0x37c701)](_0x3be5e6,_0xc2642f)[_0x23732c(_0x383463._0x2723ea,_0x383463._0x27dd49,0x1a8,_0x383463._0x328fc5)][_0x384403(_0x383463._0x13b963,0x2bc,_0x383463._0x57a489,_0x383463._0x4f52b1)](_0x42dbee,_0x137f6b);break;}case _0x23732c(_0x383463._0x58e8f0,_0x383463._0x2d17a1,_0x383463._0x36408a,0x156):{const _0x264f0b=typeof _0x44a03a['delta']==='string'?_0x44a03a[_0x23732c(0x249,_0x383463._0x3c6ff3,_0x383463._0xc925a3,_0x383463._0x5366a5)]:'',_0x2f4814=typeof _0x44a03a[_0x384403(_0x383463._0x320c32,0x31e,0x33b,_0x383463._0x3b446d)]===_0x23732c(0x283,_0x383463._0xef0105,_0x383463._0x6e4dcf,_0x383463._0x284a1c)?_0x44a03a[_0x23732c(_0x383463._0x19d8ac,_0x383463._0x34569c,_0x383463._0x49068f,0x22b)]:typeof _0x44a03a[_0x23732c(_0x383463._0x46e95c,_0x383463._0x918653,_0x383463._0x4d931e,0x33e)]===_0x384403(_0x383463._0x31502c,0x241,_0x383463._0x545a14,_0x383463._0x2b1da9)?this[_0x23732c(_0x383463._0x5058ce,_0x383463._0x1b971d,0x290,0x2f4)]['get'](_0x44a03a[_0x384403(_0x383463._0x1803e1,0x2d6,0x2af,0x223)]):void 0x0,_0x3c58a0=typeof _0x44a03a[_0x384403(_0x383463._0x294e30,0x2d6,0x2d4,_0x383463._0x2dc97a)]==='number'?_0x44a03a[_0x23732c(_0x383463._0x58bcaa,_0x383463._0x3bfab9,_0x383463._0xe0ff9a,_0x383463._0x18eeb0)]:0x0,_0xf625a6=typeof _0x44a03a[_0x384403(0x224,_0x383463._0x28e9a8,0x257,_0x383463._0x533350)]==='number'?_0x44a03a['content_index']:0x0;if(_0x2f4814&&_0x264f0b[_0x384403(_0x383463._0x5cf2f0,0x230,_0x383463._0xacc649,_0x383463._0x58551a)]>0x0){const _0x3689b8=this[_0x23732c(0x116,0x18c,0x117,0x1e8)](_0x2f4814,_0x3c58a0);_0x3689b8[_0x384403(_0x383463._0x3feb79,_0x383463._0x3e50f0,_0x383463._0x54544a,_0x383463._0x58e20c)][_0x384403(0x2a7,0x2bc,_0x383463._0x1b3cbc,0x2b2)](_0xf625a6,''+(_0x3689b8['textByIndex']['get'](_0xf625a6)??'')+_0x264f0b);if(isUserVisibleReasoning(this['request']))return[{'type':'openai_reasoning_delta','contentIndex':_0xf625a6,'delta':_0x264f0b,'itemId':_0x2f4814,'outputIndex':_0x3c58a0}];}break;}case _0x384403(0xf5,_0x383463._0x195a68,_0x383463._0x3bccbf,_0x383463._0x5c2c27):{const _0x1809dd=typeof _0x44a03a[_0x384403(_0x383463._0x5306ca,_0x383463._0x19817d,0x340,_0x383463._0x1d4753)]===_0x384403(_0x383463._0x2b6f62,0x2f0,0x394,0x31f)?_0x44a03a[_0x23732c(0x2b1,0x370,_0x383463._0x1e4ed5,0x374)]:typeof _0x44a03a[_0x23732c(_0x383463._0x46e95c,_0x383463._0x5b549e,0x26d,_0x383463._0x41b033)]==='number'?this[_0x23732c(_0x383463._0x5058ce,_0x383463._0x4a06c5,_0x383463._0xcdc5af,0x33e)][_0x23732c(0x21c,_0x383463._0x54544a,_0x383463._0x249117,0x1e8)](_0x44a03a[_0x384403(_0x383463._0x345f35,0x2d6,0x237,0x319)]):void 0x0,_0x401a78=typeof _0x44a03a['output_index']===_0x23732c(_0x383463._0x36239a,0x1cb,_0x383463._0x49a7b5,0x1e4)?_0x44a03a[_0x23732c(_0x383463._0x5ad2f7,_0x383463._0x1b3cbc,_0x383463._0x3db4ed,0x2ed)]:0x0,_0x3f2a8f=typeof _0x44a03a['content_index']===_0x384403(0x2d1,_0x383463._0x2f6e6e,0x186,0x1d0)?_0x44a03a[_0x384403(_0x383463._0x5e4758,_0x383463._0x1fa250,_0x383463._0x1ba543,0x216)]:0x0,_0x2d87c1=typeof _0x44a03a['text']===_0x23732c(_0x383463._0x27fe75,0x1e5,0x20f,_0x383463._0xc925a3)?_0x44a03a[_0x23732c(0x1cf,0x206,0x102,0x140)]:'';_0x1809dd&&this[_0x23732c(_0x383463._0x227a36,_0x383463._0x548d63,0x108,_0x383463._0x3addbd)](_0x1809dd,_0x401a78)[_0x23732c(0x13f,_0x383463._0x3f60d8,0xec,0x1e3)][_0x23732c(_0x383463._0x21cf69,_0x383463._0x2d2007,_0x383463._0x289e28,_0x383463._0x22c309)](_0x3f2a8f,_0x2d87c1);break;}case _0x384403(_0x383463._0x1915b3,0x23a,_0x383463._0x55a3f9,_0x383463._0x5257f7):{this['finalResponse']=_0x44a03a[_0x23732c(_0x383463._0x3dfa9b,0x2b4,0x2dc,0x2e6)];break;}case _0x384403(_0x383463._0x215f3e,0x2cb,_0x383463._0x563903,_0x383463._0xca6a0f):{const _0x39fd41=_0x44a03a['response'];throw new ProviderStreamEventError(_0x39fd41?.[_0x384403(_0x383463._0x1b19fe,_0x383463._0x55a3f9,_0x383463._0x282ee4,0x143)]?.[_0x384403(0x241,_0x383463._0x492b2d,_0x383463._0x1e0faf,_0x383463._0x516816)]??_0x23732c(0x1b0,0x199,_0x383463._0x31a42a,0x231),{'code':_0x39fd41?.[_0x23732c(_0x383463._0x152e37,_0x383463._0x3747f0,0x243,_0x383463._0x2df71d)]?.[_0x384403(_0x383463._0x3ca295,0x286,0x223,0x1cb)],'retryable':!![]});}case _0x23732c(0x1a3,0xd1,0x11c,_0x383463._0x2a1330):{const _0xa2930b=_0x44a03a[_0x384403(0x1de,_0x383463._0x472a7a,_0x383463._0x3a30b4,_0x383463._0x41b4d3)];throw new ProviderStreamEventError(_0xa2930b?.[_0x384403(0x3b0,_0x383463._0x34569c,_0x383463._0x3f81d6,_0x383463._0x312013)]??_0x23732c(0x1b0,0x275,0x21c,0x152),{'code':_0xa2930b?.[_0x23732c(0x219,0x20c,_0x383463._0x258172,_0x383463._0x4abdbf)],'retryable':!![],'status':typeof _0x44a03a[_0x23732c(_0x383463._0x3ddd9e,0x158,_0x383463._0xbc670e,0x101)]==='number'?_0x44a03a[_0x384403(0x1fc,0x216,_0x383463._0x5f3acd,0x2b8)]:void 0x0});}}return[];}[_0x3a2825(-0x19e,-0x21f,-0x1c6,-0x2b7)](){const _0x2cde08={_0x367d95:0x2c5,_0x25e880:0x20f,_0xf94d8b:0xbe,_0x2a9625:0xcd,_0x434140:0x190,_0x39de4e:0x3e,_0x54107a:0x1e5,_0x4394cc:0x21e,_0x55155b:0x5e,_0x83b9de:0x58,_0x10c4f8:0x9c,_0x4155fc:0x1ae,_0x42374f:0x266,_0x253490:0x6d,_0x177fee:0x1ef,_0x281726:0x69,_0x28025b:0x8a,_0x22301f:0x43,_0x3042c3:0xe,_0x4c7baf:0x1e,_0x21e295:0x19,_0x5a9345:0xb,_0x4fec5e:0x6,_0x5bc24c:0xb1,_0x47e85d:0x9d,_0x5e65b5:0x36,_0x5cef00:0x61,_0x489b1d:0x246,_0x2f3acb:0x2e2,_0x108c24:0x6e,_0x4b5770:0x5f,_0x300971:0xfe,_0x21186f:0x2b5,_0x27a1be:0x2bc,_0x3fe1fb:0x9e,_0x48270d:0x32,_0x3617ca:0xb,_0x44811a:0x47,_0x1d4fa4:0xb4,_0x577824:0x1cb,_0x9c432:0x23d,_0x4c38dc:0x35c,_0x50bd40:0x2c6,_0x37d81d:0x252,_0x5c2dd1:0x16,_0x1dc77f:0x31f,_0x2a395c:0x218,_0x2acbd5:0xf,_0x533cd6:0x70},_0x2d29b3={_0x57cbdd:0xdc};function _0x2cdae1(_0xc7d60f,_0x499ab3,_0x36b90d,_0x13941e){return _0x3a2825(_0x13941e,_0xc7d60f-0x2b7,_0x36b90d-0x83,_0x13941e-_0x2d29b3._0x57cbdd);}const _0xfb576a=[];for(const [_0x4a99d5,_0x16e302]of this[_0x2e7a71(0x2af,_0x2cde08._0x367d95,0x1cd,_0x2cde08._0x25e880)][_0x2cdae1(0x43,_0x2cde08._0xf94d8b,-0x75,0xc8)]()){const _0x489766=_0x16e302['join']('');if(_0x489766['length']===0x0)continue;_0xfb576a[_0x2cdae1(-0x19,-0x27,0x63,-0x78)]({'index':_0x4a99d5,'item':{'type':_0x2cdae1(0xca,_0x2cde08._0x2a9625,_0x2cde08._0x434140,_0x2cde08._0x39de4e),'role':'assistant','content':[{'type':'output_text','text':_0x489766}]}});}for(const _0x298382 of this[_0x2e7a71(0x218,0x281,_0x2cde08._0x54107a,0x24c)][_0x2e7a71(0x1fb,0x1e2,0x2f0,0x23d)]()){_0xfb576a[_0x2e7a71(_0x2cde08._0x4394cc,0x250,0x206,0x260)]({'index':_0x298382[_0x2cdae1(0x4a,-0x6b,-_0x2cde08._0x55155b,_0x2cde08._0x39de4e)]??_0xfb576a[_0x2cdae1(0x16,0x5,-_0x2cde08._0x83b9de,-_0x2cde08._0x10c4f8)],'item':{'type':_0x2e7a71(0x1d0,_0x2cde08._0x4155fc,0x32d,_0x2cde08._0x42374f),'id':_0x298382['id'],..._0x298382[_0x2cdae1(_0x2cde08._0x253490,0x3f,0x114,0xf7)]?{'encrypted_content':_0x298382[_0x2e7a71(0x26f,0x3b3,0x2ff,0x2e6)]}:{},..._0x298382[_0x2cdae1(-0x57,0x5b,-0x11b,-0x10d)][_0x2e7a71(0x288,0x289,_0x2cde08._0x177fee,0x252)]>0x0?{'summary':Array[_0x2cdae1(_0x2cde08._0x281726,-0x46,0x17,_0x2cde08._0x28025b)](_0x298382['summaryByIndex'][_0x2cdae1(_0x2cde08._0x22301f,_0x2cde08._0x3042c3,_0x2cde08._0x4c7baf,_0x2cde08._0x21e295)]())['sort']((_0x10e89d,_0x3179fa)=>_0x10e89d[0x0]-_0x3179fa[0x0])[_0x2cdae1(_0x2cde08._0x5a9345,-_0x2cde08._0x4fec5e,-0x9c,_0x2cde08._0x5bc24c)](([,_0x5bb9d7])=>{return{'type':'summary_text','text':_0x5bb9d7};})}:{},..._0x298382['textByIndex'][_0x2cdae1(-0x27,-_0x2cde08._0x47e85d,_0x2cde08._0x5e65b5,_0x2cde08._0x5cef00)]>0x0?{'text':Array[_0x2e7a71(0x321,0x269,_0x2cde08._0x489b1d,_0x2cde08._0x2f3acb)](_0x298382[_0x2cdae1(-_0x2cde08._0x108c24,_0x2cde08._0x4b5770,-_0x2cde08._0x300971,-0x105)][_0x2e7a71(0x1fe,_0x2cde08._0x21186f,0x1fa,_0x2cde08._0x27a1be)]())[_0x2cdae1(_0x2cde08._0x3fe1fb,0xba,_0x2cde08._0x48270d,-0x19)]((_0x25f3f4,_0x46bd6a)=>_0x25f3f4[0x0]-_0x46bd6a[0x0])[_0x2cdae1(_0x2cde08._0x3617ca,0xb0,0x96,0xc9)](([,_0x5bd0ae])=>_0x5bd0ae)['join']('')}:{}}});}for(const _0x22a07d of this[_0x2cdae1(-_0x2cde08._0x44811a,0x5e,-_0x2cde08._0x1d4fa4,0x56)][_0x2e7a71(0x19c,_0x2cde08._0x577824,0x301,_0x2cde08._0x9c432)]()){_0xfb576a['push']({'index':this[_0x2e7a71(_0x2cde08._0x4c38dc,_0x2cde08._0x50bd40,_0x2cde08._0x37d81d,0x309)]['get'](_0x22a07d['id'])??_0xfb576a[_0x2cdae1(_0x2cde08._0x5c2dd1,-0x3a,0x3,0x4c)],'item':{'type':'function_call','call_id':_0x22a07d['id'],'name':_0x22a07d['function'][_0x2e7a71(_0x2cde08._0x1dc77f,_0x2cde08._0x2a395c,0x2f1,0x2ae)],'arguments':_0x22a07d[_0x2cdae1(0x64,0xb3,0x67,-_0x2cde08._0x2acbd5)][_0x2cdae1(0x41,0x5,_0x2cde08._0x533cd6,-0xb)]}});}function _0x2e7a71(_0x36925e,_0x2668d8,_0x3b6da0,_0x3489d2){return _0x40b3f8(_0x36925e-0xb4,_0x2668d8,_0x3b6da0-0x7a,_0x3489d2-0x348);}return _0xfb576a['sort']((_0x1cd5ac,_0x599fbe)=>_0x1cd5ac[_0x2cdae1(0x18,0xd6,0xb8,0x5c)]-_0x599fbe['index'])['map'](_0x3e1670=>_0x3e1670['item']);}['getOrCreateReasoningItem'](_0x47cb8b,_0x3ab97f){const _0x44f9f1={_0x33efea:0x584,_0x2c8571:0x566,_0x29b90d:0xab,_0x549753:0x520,_0x26d433:0x4,_0x343699:0x92,_0x48441f:0x8f,_0x1e8146:0xa3,_0x12ce56:0x6a5,_0x4280ff:0x57e},_0x501eef={_0x535642:0x219,_0x4b9c9d:0x161,_0x38223c:0xa0},_0x52b93d={_0x29c6f4:0xdc,_0x4ba386:0x196,_0x5af9d3:0x5e4},_0x416161=this['reasoningItems'][_0x5b68cd(0x60b,_0x44f9f1._0x33efea,0x55f,_0x44f9f1._0x2c8571)](_0x47cb8b);function _0x5b68cd(_0x1c24cc,_0x36812f,_0x2f6df2,_0x41d681){return _0x40b3f8(_0x1c24cc-_0x52b93d._0x29c6f4,_0x1c24cc,_0x2f6df2-_0x52b93d._0x4ba386,_0x36812f-_0x52b93d._0x5af9d3);}function _0x1bc8cc(_0x2b2757,_0x21d025,_0x546c57,_0xb1dcdf){return _0x3a2825(_0x546c57,_0x2b2757-_0x501eef._0x535642,_0x546c57-_0x501eef._0x4b9c9d,_0xb1dcdf-_0x501eef._0x38223c);}if(_0x416161)return _0x3ab97f!==void 0x0&&(_0x416161[_0x1bc8cc(-0x54,-_0x44f9f1._0x29b90d,-0x95,-0xc3)]=_0x3ab97f,this['outputIndexToReasoningId'][_0x5b68cd(0x634,0x5b7,0x5da,_0x44f9f1._0x549753)](_0x3ab97f,_0x47cb8b)),_0x416161;const _0x255b89={'id':_0x47cb8b,'outputIndex':_0x3ab97f,'summaryByIndex':new Map(),'textByIndex':new Map()};return this['reasoningItems'][_0x1bc8cc(_0x44f9f1._0x26d433,-_0x44f9f1._0x343699,_0x44f9f1._0x48441f,-_0x44f9f1._0x1e8146)](_0x47cb8b,_0x255b89),_0x3ab97f!==void 0x0&&this[_0x5b68cd(0x5e7,0x617,_0x44f9f1._0x12ce56,_0x44f9f1._0x4280ff)]['set'](_0x3ab97f,_0x47cb8b),_0x255b89;}};function createOpenAiResponsesStreamParser(_0x11b249){return new OpenAiResponsesStreamParser(_0x11b249);}function createOpenAiSurfaces(_0x411865={}){const _0x47d22d={_0x1eb1b8:0x313,_0x3908f0:0x3bd,_0x4cf662:0x460,_0x2af689:0x4aa,_0x12f90c:0x385,_0x2885ec:0x439,_0x34a83a:0x353,_0x6d594e:0x34d,_0xa7d1d8:0x3c9,_0x3020c4:0x565,_0x2682f5:0x402,_0x4f98b8:0x416,_0x56c842:0x45b,_0x545f28:0x364,_0x33e073:0x343,_0x4bad4f:0x3dc,_0x1006cf:0x29a},_0x287937={_0x5a5324:0x2b},_0x3117fd={_0xd12dc9:0x196,_0x92ad4e:0x3e3},_0x5562a2={_0x5631fd:0x2fd},_0x5bea0e={_0x30d708:0x318,_0xc3e9e7:0x473},_0x46e075={_0x2ce9a9:0x15a,_0x196dc1:0x79},_0x257b7c={_0x66e59b:0x233},_0x4a91df={_0x6ab8b2:0x673,_0x260ca0:0x87,_0x37466a:0x18f},_0x22b1b8=_0x411865[_0x5a98f4(_0x47d22d._0x1eb1b8,0x47d,_0x47d22d._0x3908f0,_0x47d22d._0x4cf662)]??_0x5a98f4(0x3fd,0x484,_0x47d22d._0x2af689,0x4b1);function _0xf7bb7e(_0x5a3444,_0x30bf35,_0x1509f7,_0x1d13df){return _0x40b3f8(_0x5a3444-0x5b,_0x1d13df,_0x1509f7-0xb5,_0x30bf35-0x3ff);}function _0x5a98f4(_0x30d149,_0x2b49b1,_0x55b851,_0x964c98){return _0x3a2825(_0x2b49b1,_0x55b851-_0x4a91df._0x6ab8b2,_0x55b851-_0x4a91df._0x260ca0,_0x964c98-_0x4a91df._0x37466a);}const _0x53e6a7=_0x411865[_0xf7bb7e(_0x47d22d._0x12f90c,_0x47d22d._0x2885ec,0x48a,0x445)]??_0x5a98f4(0x2c3,_0x47d22d._0x34a83a,_0x47d22d._0x6d594e,_0x47d22d._0xa7d1d8);return[{'id':OPENAI_CHAT_COMPLETIONS_SURFACE,'transport':_0x5a98f4(0x479,_0x47d22d._0x3020c4,0x4a2,_0x47d22d._0x2682f5),'createRequest'(_0x1632c1){function _0x346514(_0x5da7e1,_0x5817e9,_0x3229d7,_0xc13c36){return _0xf7bb7e(_0x5da7e1-0xbf,_0x5817e9- -0x437,_0x3229d7-0x13a,_0x5da7e1);}return{'accept':_0x346514(-0x132,-0x187,-_0x257b7c._0x66e59b,-0x225),'body':createChatRequestBody(_0x1632c1,![]),'path':_0x22b1b8};},'parseResponse'(_0x34e1e6){return parseChatCompletionResponse(_0x34e1e6);}},{'id':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,'transport':'http-sse','createRequest'(_0x365c49){function _0x29eb3e(_0x4e24aa,_0x315fce,_0x383b14,_0x39019d){return _0xf7bb7e(_0x4e24aa-_0x46e075._0x2ce9a9,_0x383b14-_0x46e075._0x196dc1,_0x383b14-0x140,_0x39019d);}return{'accept':_0x29eb3e(_0x5bea0e._0x30d708,_0x5bea0e._0xc3e9e7,0x3d5,0x3f7),'body':createChatRequestBody(_0x365c49,!![]),'path':_0x22b1b8};},'createStreamParser'(_0x3b8a23){return new OpenAiChatCompletionsStreamParser(_0x3b8a23);}},{'id':OPENAI_RESPONSES_SURFACE,'transport':_0xf7bb7e(0x371,_0x47d22d._0x4f98b8,_0x47d22d._0x56c842,_0x47d22d._0x545f28),'createRequest'(_0x2aaab5){function _0x1c55c1(_0xa3ff1,_0x594693,_0x272e67,_0xbd15bd){return _0xf7bb7e(_0xa3ff1-0x16d,_0x272e67-0x4d,_0x272e67-0x1aa,_0x594693);}return{'accept':_0x1c55c1(0x29e,0x2c9,_0x5562a2._0x5631fd,0x360),'body':createResponsesRequestBody(_0x2aaab5,![]),'path':_0x53e6a7};},'parseResponse'(_0x384356,_0xed7a32){return parseResponsesResponse(_0x384356,_0xed7a32);}},{'id':OPENAI_RESPONSES_STREAM_SURFACE,'transport':_0xf7bb7e(_0x47d22d._0xa7d1d8,_0x47d22d._0x33e073,_0x47d22d._0x4bad4f,_0x47d22d._0x1006cf),'createRequest'(_0x14f7c9){function _0xf20cf7(_0x4f83df,_0x2dcdcc,_0xbbdbe3,_0x2f5b3e){return _0x5a98f4(_0x4f83df-_0x3117fd._0xd12dc9,_0xbbdbe3,_0x2dcdcc- -_0x3117fd._0x92ad4e,_0x2f5b3e-0x190);}return{'accept':_0xf20cf7(-_0x287937._0x5a5324,0x5,0x5,0x47),'body':createResponsesRequestBody(_0x14f7c9,!![]),'path':_0x53e6a7};},'createStreamParser'(_0x2c3f8d){return new OpenAiResponsesStreamParser(_0x2c3f8d);}},{'id':OPENAI_RESPONSES_WEBSOCKET_SURFACE,'transport':'websocket','createRequest'(_0xd3144d){return{'initialEvent':createOpenAiResponsesWebSocketEvent(_0xd3144d),'path':_0x53e6a7};},'createStreamParser'(_0x48691f){return createOpenAiResponsesStreamParser(_0x48691f);}}];}var OpenAiProviderAdapter=class{[_0x40b3f8(-0xd5,0x73,0x7f,-0x4a)];constructor(_0x257b14){const _0x3d25e3={_0x317297:0x2},_0x24870e={_0x3a7326:0x230,_0x27435f:0xbb};function _0x41549a(_0x3fa562,_0x2663bf,_0x3106e4,_0xafd4e7){return _0x3a2825(_0x2663bf,_0xafd4e7-_0x24870e._0x3a7326,_0x3106e4-_0x24870e._0x27435f,_0xafd4e7-0x93);}this[_0x41549a(-0x92,0x94,-0x3c,-_0x3d25e3._0x317297)]=_0x257b14;}[_0x40b3f8(0x53,-0x6d,0x63,-0x3d)](){const _0x2f67e={_0x3ea472:0x21d,_0x511dab:0x156};function _0x5b7316(_0x29b6d7,_0x4ba058,_0x284b50,_0x103dd7){return _0x40b3f8(_0x29b6d7-0x4c,_0x29b6d7,_0x284b50-0x75,_0x284b50- -0x18e);}return new Error(_0x5b7316(-0x2c5,-0x145,-_0x2f67e._0x3ea472,-_0x2f67e._0x511dab));}async[_0x3a2825(-0x1fc,-0x23d,-0x2a4,-0x2f1)](_0x4e957a,_0x5afc08){const _0x40b5d8={_0x26864b:0x4f7,_0x411b7f:0x173,_0x5c9d7a:0x176,_0x56007f:0x21a,_0x1f1e2c:0x26f,_0x484424:0x41d,_0x4e022e:0x36b,_0x24eaee:0x405,_0x15f893:0x2a2,_0xc06e7:0x19e,_0x5e38b1:0x1f7,_0x4a5056:0x380,_0x392fd5:0x31d,_0x5b1d76:0x4d0,_0x5377c9:0x576,_0x427185:0x294,_0x56455b:0x250,_0x53cddd:0x2e7,_0x41e51c:0x42e,_0x2df567:0x465,_0x10ba94:0x179},_0x2a0711={_0x4529bb:0x118,_0x207e64:0x540},_0x4b4c92=new Headers();_0x4b4c92['set']('accept',_0x5afc08[_0x46270f(0x432,_0x40b5d8._0x26864b,0x57e,0x4c8)]),_0x4b4c92[_0x1f404c(-0x297,-_0x40b5d8._0x411b7f,-_0x40b5d8._0x5c9d7a,-0x1d9)]('authorization','Bearer\x20'+_0x4e957a[_0x1f404c(-_0x40b5d8._0x56007f,-0x2df,-0x256,-0x2b0)]['value']);function _0x1f404c(_0x5811d7,_0x47b61e,_0x46dc8e,_0x3fe292){return _0x3a2825(_0x46dc8e,_0x3fe292-0x3c,_0x46dc8e-0xcc,_0x3fe292-0x190);}_0x5afc08[_0x1f404c(-_0x40b5d8._0x1f1e2c,-0x2d4,-0x272,-0x24b)]!==![]&&_0x4b4c92[_0x1f404c(-0x1f0,-0x112,-0x1e8,-0x1d9)]('content-type',_0x46270f(_0x40b5d8._0x484424,0x3f1,_0x40b5d8._0x4e022e,_0x40b5d8._0x24eaee));const _0x3701a0=await this[_0x1f404c(-_0x40b5d8._0x15f893,-_0x40b5d8._0xc06e7,-_0x40b5d8._0x5e38b1,-0x1f6)]?.({'body':_0x4e957a['body'],'credential':_0x4e957a[_0x1f404c(-_0x40b5d8._0x4a5056,-0x2f7,-_0x40b5d8._0x392fd5,-0x2b0)],'request':_0x4e957a[_0x46270f(0x4ae,_0x40b5d8._0x5b1d76,_0x40b5d8._0x5377c9,0x47e)],'session':_0x4e957a[_0x1f404c(-0x316,-_0x40b5d8._0x427185,-_0x40b5d8._0x56455b,-_0x40b5d8._0x53cddd)],'stream':_0x4e957a[_0x46270f(0x503,_0x40b5d8._0x41e51c,_0x40b5d8._0x2df567,0x3eb)]});function _0x46270f(_0x58a45c,_0xe9082a,_0x4ae77b,_0x502364){return _0x40b3f8(_0x58a45c-0x13b,_0x502364,_0x4ae77b-_0x2a0711._0x4529bb,_0xe9082a-_0x2a0711._0x207e64);}for(const [_0x2459df,_0x1285d5]of Object['entries'](_0x3701a0??{})){_0x4b4c92[_0x1f404c(-0x13a,-_0x40b5d8._0x10ba94,-0x246,-0x1d9)](_0x2459df,_0x1285d5);}return _0x4b4c92;}[_0x40b3f8(-0x156,-0x89,-0x135,-0x8d)](_0x37a8bb){return _0x37a8bb;}['resolveBaseUrl'](_0x459b19,_0x167e3e){return resolveSessionBaseUrl(_0x459b19,_0x167e3e);}[_0x40b3f8(-0x9d,-0x50,0x7d,-0x18)](_0x77f6e4,_0xb8ed04){return resolveApiCredential(_0x77f6e4,_0xb8ed04);}async[_0x3a2825(-0x1ab,-0x234,-0x2e9,-0x256)](_0x5e339f){return await createOpenAiApiError(_0x5e339f);}},OpenAiModel=class _OpenAiModel extends RoutedModel{static [_0x3a2825(-0x37d,-0x327,-0x388,-0x3d4)]=new Map();[_0x40b3f8(-0x9,-0x9,-0x148,-0xce)];['responsesPath'];constructor(_0x281b86={}){const _0x4d07f0={_0x38d0ab:0x3c,_0x2cc43d:0x12d,_0x4da034:0x195,_0x226dcb:0x1a2,_0x383999:0x16f,_0x33f69d:0x185,_0x47d5d2:0x12b,_0x4e1d29:0x153,_0x51ab3a:0x1d7,_0xd0cc0:0x1d5,_0x58ca83:0x233,_0x3cac6f:0x244,_0x122773:0x1de,_0x1ed49e:0x169,_0x5a6c32:0xd4,_0x4eadbd:0xe2,_0x25e330:0xb5,_0x3db926:0x114,_0x18d3d9:0x2b2,_0x38184e:0x1e5,_0x4f0a2d:0x115,_0x1a8d41:0x12b,_0x2b50a4:0x1df,_0x40d92d:0x199,_0x4a8c8d:0x2ca},_0x38d425=_0x281b86[_0x39b67a(0x96,0xd3,-_0x4d07f0._0x38d0ab,0xa7)]??_0xc531de(0x159,_0x4d07f0._0x2cc43d,0x10e,_0x4d07f0._0x4da034),_0x2c76e3=_0x281b86[_0x39b67a(_0x4d07f0._0x226dcb,0x1f4,_0x4d07f0._0x383999,_0x4d07f0._0x33f69d)]??0x4000,_0x2fdb47=_0x281b86[_0x39b67a(_0x4d07f0._0x47d5d2,_0x4d07f0._0x4e1d29,_0x4d07f0._0x51ab3a,0x1bd)]??_0xc531de(0x24e,_0x4d07f0._0xd0cc0,0x122,0x1de),_0x32e01a=_0x281b86[_0x39b67a(_0x4d07f0._0x58ca83,0x18d,0x29e,0x2b5)]??'/responses';function _0x39b67a(_0x3dab43,_0x1f0c85,_0x1eb144,_0x1832fc){return _0x40b3f8(_0x3dab43-0xd8,_0x1f0c85,_0x1eb144-0x120,_0x3dab43-0x1f9);}super({'apiKey':_0x281b86[_0x39b67a(0x1d6,_0x4d07f0._0x3cac6f,0x21c,0x1d0)],'baseUrl':trimTrailingSlashes(_0x281b86[_0x39b67a(_0x4d07f0._0x122773,0x217,0x2a0,0x1e1)]??_0xc531de(0x196,0x125,0x19c,0x19f)),'fetch':_0x281b86['fetch'],'maxTokens':_0x2c76e3,'model':_0x38d425,'reasoning':_0x281b86[_0xc531de(_0x4d07f0._0x1ed49e,_0x4d07f0._0x5a6c32,_0x4d07f0._0x4eadbd,0x147)],'providerAdapter':new OpenAiProviderAdapter(_0x281b86[_0xc531de(_0x4d07f0._0x25e330,0x16c,_0x4d07f0._0x1ed49e,_0x4d07f0._0x3db926)]),'providerSessionResolver':_0x281b86['providerSessionResolver'],'requestMutators':_0x281b86[_0x39b67a(0x1ec,0x161,_0x4d07f0._0x18d3d9,_0x4d07f0._0x38184e)],'router':new StaticModelSurfaceRouter({'complete':OPENAI_CHAT_COMPLETIONS_SURFACE,'stream':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE}),'sessionManager':_0x281b86[_0x39b67a(_0x4d07f0._0x4f0a2d,0xa5,0x126,0xf3)],'surfaces':createOpenAiSurfaces({'chatCompletionsPath':_0x2fdb47,'responsesPath':_0x32e01a}),'webSocketFactory':_0x281b86['webSocketFactory']});function _0xc531de(_0x19d020,_0x59267e,_0x4a37c4,_0x5848e1){return _0x40b3f8(_0x19d020-0x124,_0x5848e1,_0x4a37c4-0x1df,_0x59267e-0x1b6);}this[_0x39b67a(_0x4d07f0._0x1a8d41,0x15a,_0x4d07f0._0x2b50a4,0x91)]=_0x2fdb47,this[_0x39b67a(0x233,0x2ff,_0x4d07f0._0x40d92d,_0x4d07f0._0x4a8c8d)]=_0x32e01a;}[_0x40b3f8(-0x153,-0x37,-0x91,-0xe9)](_0x330bfb,_0x121e55){const _0x411ab9={_0x2312ee:0x16c,_0x292038:0x118},_0x46970f={_0x2707ed:0x1b5,_0x43070e:0x127,_0x238cf3:0x226};function _0x266169(_0x28acd4,_0x45ad2c,_0x500183,_0x314ab5){return _0x40b3f8(_0x28acd4-_0x46970f._0x2707ed,_0x45ad2c,_0x500183-_0x46970f._0x43070e,_0x314ab5-_0x46970f._0x238cf3);}return this[_0x266169(0xbc,_0x411ab9._0x2312ee,0x58,_0x411ab9._0x292038)](_0x330bfb,OPENAI_CHAT_COMPLETIONS_SURFACE,_0x121e55);}[_0x40b3f8(0xa4,0xbf,0x4f,-0x2)](_0x21718c,_0x28b032){const _0x2eb98a={_0x38d167:0x3fe,_0x49da6e:0x442},_0x29c80d={_0x48c937:0x74a,_0x24c963:0xca,_0xb57412:0x11d};function _0x33c6fd(_0x568b16,_0x4cbc2f,_0x46854d,_0x216939){return _0x3a2825(_0x568b16,_0x46854d-_0x29c80d._0x48c937,_0x46854d-_0x29c80d._0x24c963,_0x216939-_0x29c80d._0xb57412);}return this[_0x33c6fd(_0x2eb98a._0x38d167,0x490,0x454,_0x2eb98a._0x49da6e)](_0x21718c,OPENAI_RESPONSES_SURFACE,_0x28b032);}['completeViaResponsesWebSocketSurface'](_0x4c942a,_0x243330){const _0x2ac9f5={_0x126434:0x32e,_0x107849:0x398},_0xc59622={_0x4a3cf4:0x1ee};function _0x674c4f(_0x2029e1,_0x3ec63a,_0x4454ea,_0x129331){return _0x3a2825(_0x129331,_0x3ec63a-0x624,_0x4454ea-0x1a,_0x129331-_0xc59622._0x4a3cf4);}return this[_0x674c4f(0x34f,_0x2ac9f5._0x126434,0x29c,_0x2ac9f5._0x107849)](_0x4c942a,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x243330);}[_0x40b3f8(-0xcc,-0xae,0x14,-0x15)](_0x43afa9,_0x4966b9){const _0x3d87b5={_0x2bf365:0x13e},_0x1bc3ff={_0x535083:0x13e,_0x3699cd:0x202};function _0x3c860a(_0x32a7e2,_0x5002de,_0x1dee57,_0x4d8c3f){return _0x40b3f8(_0x32a7e2-0x17,_0x1dee57,_0x1dee57-_0x1bc3ff._0x535083,_0x4d8c3f-_0x1bc3ff._0x3699cd);}return this[_0x3c860a(0x46,_0x3d87b5._0x2bf365,0x71,0x107)](_0x43afa9,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,_0x4966b9);}[_0x40b3f8(-0xa9,-0x115,-0x1c4,-0x128)](_0x493e7f,_0x170b4f){const _0x4f1901={_0x46ae01:0x11d,_0x255548:0x165,_0x3cb0f4:0x105,_0x2b3954:0x14f},_0x316bd5={_0x518bb1:0xb1,_0x20ea38:0x188};function _0x2bd769(_0x3f9057,_0x227da5,_0x39c755,_0x3987b7){return _0x40b3f8(_0x3f9057-_0x316bd5._0x518bb1,_0x39c755,_0x39c755-_0x316bd5._0x20ea38,_0x227da5- -0x6a);}return this[_0x2bd769(-_0x4f1901._0x46ae01,-_0x4f1901._0x255548,-_0x4f1901._0x3cb0f4,-_0x4f1901._0x2b3954)](_0x493e7f,OPENAI_RESPONSES_STREAM_SURFACE,_0x170b4f);}[_0x3a2825(-0x265,-0x1f1,-0x20a,-0x247)](_0x194421,_0x288402){return this['streamViaSurface'](_0x194421,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x288402);}async['chatComplete'](_0x3738cd,_0x22eb2d){const _0x3be621={_0x17b700:0x2e8,_0x199fc1:0x217},_0x58df73={_0x21ef91:0x9a,_0x1d37cd:0x321};function _0x5015bf(_0xb8ba65,_0x533ebd,_0x3a9d49,_0x4f9a78){return _0x40b3f8(_0xb8ba65-0x123,_0x3a9d49,_0x3a9d49-_0x58df73._0x21ef91,_0x4f9a78-_0x58df73._0x1d37cd);}try{return await this[_0x5015bf(0x2ad,_0x3be621._0x17b700,_0x3be621._0x199fc1,0x238)](_0x3738cd,_0x22eb2d);}catch(_0x3f4add){if(_0x3f4add instanceof OpenAiApiError)throw this['mapApiError'](_0x3f4add);throw _0x3f4add;}}async[_0x40b3f8(-0x2c,-0x67,-0xbf,-0x47)](_0x249ee4,_0x154089){try{return await this['completeViaResponsesSurface'](_0x249ee4,_0x154089);}catch(_0x263210){if(_0x263210 instanceof OpenAiApiError)throw this['mapApiError'](_0x263210);throw _0x263210;}}async[_0x3a2825(-0x252,-0x1d3,-0x272,-0x1ea)](_0x4960b8,_0xb00c7c){const _0x1dfc3e={_0x5b64ff:0x10e,_0x425769:0x1bf,_0x2abde7:0x34c,_0xc87052:0x2c9,_0x52aa87:0x41e,_0x4ced51:0x3bd,_0xe82b7e:0x395,_0xe9478:0x3a8,_0x4ea4f4:0x3ed,_0x115edf:0x309,_0x4eb49f:0x117,_0x2c72c5:0x103,_0x3cf402:0xe7,_0x504965:0x16d,_0x20475c:0xfd},_0x40d206={_0x16d28f:0x67},_0x4ac62a={_0x57e675:0x1c7};function _0x4b063c(_0x2849a3,_0x4cfe80,_0x861a06,_0x39f695){return _0x3a2825(_0x2849a3,_0x861a06-0x178,_0x861a06-_0x4ac62a._0x57e675,_0x39f695-0x9e);}function _0x5cf6a7(_0x4f7c6b,_0x21b09f,_0x5e34de,_0x479a32){return _0x40b3f8(_0x4f7c6b-_0x40d206._0x16d28f,_0x21b09f,_0x5e34de-0x10,_0x4f7c6b-0x3dc);}try{let _0x42271b;for await(const _0xe9716b of this['responseSocketStream'](_0x4960b8,_0xb00c7c)){_0xe9716b[_0x4b063c(-_0x1dfc3e._0x5b64ff,-_0x1dfc3e._0x425769,-0x1d0,-0x124)]===_0x5cf6a7(_0x1dfc3e._0x2abde7,_0x1dfc3e._0xc87052,_0x1dfc3e._0x52aa87,_0x1dfc3e._0x4ced51)&&(_0x42271b=_0xe9716b[_0x5cf6a7(_0x1dfc3e._0xe82b7e,_0x1dfc3e._0xe9478,_0x1dfc3e._0x4ea4f4,_0x1dfc3e._0x115edf)]);}if(!_0x42271b)throw new Error(_0x4b063c(-_0x1dfc3e._0x4eb49f,-_0x1dfc3e._0x2c72c5,-_0x1dfc3e._0x3cf402,-_0x1dfc3e._0x504965));return _0x42271b;}catch(_0x5ba52a){if(_0x5ba52a instanceof OpenAiApiError)throw this[_0x4b063c(-0x18d,-0xbf,-_0x1dfc3e._0x20475c,-0xb3)](_0x5ba52a);throw _0x5ba52a;}}async*[_0x40b3f8(-0x158,-0x160,-0x11b,-0x142)](_0x1904df,_0x2095a5){const _0x53b11b={_0x22ff05:0x42f,_0x390f20:0x3ab,_0x282949:0x3c9,_0x359ca2:0x307,_0x325eac:0x33d},_0x4f1900={_0x44bde3:0x10e},_0x304c01={_0x4a73bb:0x1e3,_0x21b579:0x158};function _0x3e7a39(_0x531f12,_0x5df9ef,_0x257e07,_0x3555e1){return _0x40b3f8(_0x531f12-0x1d9,_0x5df9ef,_0x257e07-_0x304c01._0x4a73bb,_0x531f12-_0x304c01._0x21b579);}function _0x1370d6(_0x44f86a,_0x495673,_0x45a022,_0x2eb64a){return _0x40b3f8(_0x44f86a-_0x4f1900._0x44bde3,_0x495673,_0x45a022-0x9d,_0x45a022-0x3ca);}try{yield*this[_0x1370d6(_0x53b11b._0x22ff05,_0x53b11b._0x390f20,0x3b5,_0x53b11b._0x282949)](_0x1904df,_0x2095a5);}catch(_0x24b7fc){if(_0x24b7fc instanceof OpenAiApiError)throw this[_0x1370d6(0x343,_0x53b11b._0x359ca2,_0x53b11b._0x325eac,0x378)](_0x24b7fc);throw _0x24b7fc;}}async*[_0x3a2825(-0x1a5,-0x1b9,-0x28f,-0x26c)](_0x2bfc9b,_0x2503df){const _0x390318={_0xcfb9d4:0x200,_0x55c6e5:0x281,_0x18c58d:0x1e1,_0x38aa7b:0x1c2},_0x1e4611={_0x1b7c3c:0xe3,_0xb60d99:0x21,_0x65076c:0x328};function _0x2c1a89(_0x3cbfb2,_0x5a1e6c,_0x1ad83e,_0x22bfaa){return _0x40b3f8(_0x3cbfb2-0x1e,_0x1ad83e,_0x1ad83e-0x1ec,_0x22bfaa-0x109);}function _0x40335d(_0x19fa70,_0x541924,_0x4df039,_0x10dae3){return _0x40b3f8(_0x19fa70-_0x1e4611._0x1b7c3c,_0x4df039,_0x4df039-_0x1e4611._0xb60d99,_0x19fa70-_0x1e4611._0x65076c);}try{yield*this[_0x40335d(_0x390318._0xcfb9d4,_0x390318._0x55c6e5,_0x390318._0x18c58d,_0x390318._0x38aa7b)](_0x2bfc9b,_0x2503df);}catch(_0x61e21b){if(_0x61e21b instanceof OpenAiApiError)throw this[_0x2c1a89(0x87,0x6f,0xdd,0x7c)](_0x61e21b);throw _0x61e21b;}}async*[_0x40b3f8(-0x120,-0x9c,0x4e,-0x4d)](_0x19bc6e,_0x1b555f){const _0x322ce8={_0x752bd0:0x379,_0x3bfabc:0x3fd,_0xc2f549:0x3b5};function _0x202ed0(_0x1528aa,_0x4b9333,_0x4add78,_0x47c9b6){return _0x40b3f8(_0x1528aa-0x136,_0x4b9333,_0x4add78-0x17,_0x4add78-0x4dd);}try{yield*this['streamViaPersistentResponsesSocket'](_0x19bc6e,_0x1b555f);}catch(_0x181700){if(_0x181700 instanceof OpenAiApiError)throw this[_0x202ed0(_0x322ce8._0x752bd0,_0x322ce8._0x3bfabc,0x450,_0x322ce8._0xc2f549)](_0x181700);throw _0x181700;}}[_0x3a2825(-0x3bd,-0x32f,-0x3a5,-0x3ed)](_0x41fcf3,_0x438f86){return this['chatComplete'](_0x41fcf3,_0x438f86);}[_0x40b3f8(-0x174,-0x7b,-0x70,-0x112)](_0x422a64,_0x17bf0a){const _0xd5db8c={_0x47446a:0x17f};function _0x24ea01(_0x2bdb4f,_0x5d9f79,_0x3eef7d,_0x1dba93){return _0x3a2825(_0x2bdb4f,_0x1dba93-0xfb,_0x3eef7d-_0xd5db8c._0x47446a,_0x1dba93-0x1b6);}return this[_0x24ea01(-0x284,-0x1d4,-0x1ac,-0x22f)](_0x422a64,_0x17bf0a);}[_0x3a2825(-0x2c1,-0x221,-0x24d,-0x2ad)](_0x49750f){const _0x56a840={_0x769758:0x13b,_0x4b97f7:0x100,_0x2a0a6c:0x188,_0x40ce31:0x1a4,_0x5401a7:0x16f,_0x55440d:0x2b7,_0x40c5ed:0x34a,_0x358941:0x2ff,_0x2745de:0x442},_0x36ae54={_0x4487a3:0x183,_0x583745:0x4b};function _0x548f32(_0x4ed45f,_0x42f054,_0x5b6478,_0x4a63a5){return _0x3a2825(_0x4a63a5,_0x42f054-0x592,_0x5b6478-0xdf,_0x4a63a5-0x5f);}function _0x300df2(_0x5ea107,_0x5dcd24,_0x559599,_0x141331){return _0x3a2825(_0x559599,_0x5ea107-_0x36ae54._0x4487a3,_0x559599-0x45,_0x141331-_0x36ae54._0x583745);}const _0x200f97=this[_0x300df2(-_0x56a840._0x769758,-_0x56a840._0x4b97f7,-_0x56a840._0x2a0a6c,-0xc4)](_0x49750f);let _0x2bb202=_OpenAiModel[_0x300df2(-_0x56a840._0x40ce31,-0x1af,-_0x56a840._0x5401a7,-0x241)][_0x548f32(_0x56a840._0x55440d,_0x56a840._0x40c5ed,_0x56a840._0x358941,0x294)](_0x200f97);return!_0x2bb202&&(_0x2bb202={'pending':Promise['resolve']()},_OpenAiModel['sharedResponsesSocketSessions'][_0x548f32(_0x56a840._0x2745de,0x37d,0x3e8,0x424)](_0x200f97,_0x2bb202)),_0x2bb202;}[_0x3a2825(-0x29b,-0x2be,-0x2da,-0x234)](_0x33967a){const _0x550712={_0x118a48:0x48b,_0x20b92a:0x3fc,_0x889200:0x1aa,_0x328b89:0x1c0},_0x56945d={_0x910353:0x130,_0x4d6e6f:0x18d},_0x4697b0={_0x3f5748:0x3d4,_0x42c37b:0x128,_0x1f0a23:0x93};function _0x20788b(_0x366332,_0x14d75e,_0x43bee7,_0x12153e){return _0x3a2825(_0x366332,_0x43bee7-_0x4697b0._0x3f5748,_0x43bee7-_0x4697b0._0x42c37b,_0x12153e-_0x4697b0._0x1f0a23);}function _0x2c617c(_0x5223e9,_0x4b2506,_0x107cd4,_0x3a111d){return _0x3a2825(_0x4b2506,_0x5223e9-0x68e,_0x107cd4-_0x56945d._0x910353,_0x3a111d-_0x56945d._0x4d6e6f);}return''+trimTrailingSlashes(this[_0x2c617c(_0x550712._0x118a48,_0x550712._0x20b92a,0x426,0x3fc)])+this[_0x20788b(_0x550712._0x889200,0x2e9,0x226,_0x550712._0x328b89)]+'::'+_0x33967a;}async[_0x3a2825(-0x25c,-0x2fd,-0x23b,-0x3bb)](_0xd70f40){const _0x1948c1={_0x5cd6a9:0x84,_0x5afd90:0x13,_0x234e96:0x11d,_0x544bed:0x1c1,_0x5083cb:0x114,_0x327dad:0xca},_0x5584a6={_0x4bfdfc:0x106,_0x48eaa0:0xc1},_0x237edc={_0x2e56ea:0x2ac,_0x50cb54:0x29},_0x557a86=_0xd70f40[_0x288e19(-_0x1948c1._0x5cd6a9,-0xfe,_0x1948c1._0x5afd90,-_0x1948c1._0x234e96)][_0x57e1d0(-_0x1948c1._0x544bed,-0x1ce,-_0x1948c1._0x5083cb,-0x130)](()=>{});function _0x288e19(_0x2df15a,_0x15d071,_0x57b002,_0x99a5e3){return _0x3a2825(_0x57b002,_0x2df15a-_0x237edc._0x2e56ea,_0x57b002-_0x237edc._0x50cb54,_0x99a5e3-0x1e2);}let _0x5b9c88;const _0x14078d=new Promise(_0x4e65db=>{_0x5b9c88=_0x4e65db;});_0xd70f40['pending']=_0x557a86[_0x57e1d0(-_0x1948c1._0x327dad,-0x17d,-0x142,-0x194)](()=>_0x14078d);function _0x57e1d0(_0x317514,_0x3b001c,_0x2ac0a3,_0x11e74c){return _0x3a2825(_0x2ac0a3,_0x317514-_0x5584a6._0x4bfdfc,_0x2ac0a3-_0x5584a6._0x48eaa0,_0x11e74c-0x1c0);}return await _0x557a86,()=>{_0x5b9c88?.();};}async['prepareResponsesSocketRequest'](_0x2e384a,_0xf42e60){const _0x3cfae7={_0x34939f:0x32d,_0x233929:0x26,_0x117459:0x3,_0xd34c3e:0x48b,_0x75e228:0x456,_0x569499:0x32,_0x57599a:0x194,_0xd2966f:0x156,_0x14bc0e:0x37,_0x355bdc:0x125,_0x27460d:0xc4,_0x25cc44:0x19c,_0x36b50c:0x6a,_0x2fb620:0x54,_0x64ee56:0x396,_0x1f68ee:0x3c7,_0x335668:0x3f6,_0x369226:0x330,_0x514dd5:0x429,_0x57d1ca:0x6b},_0xb127dd={_0x48d964:0x37},_0x6846ac={_0x472b0c:0x2a,_0x13430a:0x19};function _0x31a370(_0x230332,_0x29d3b8,_0xbd318a,_0x289cbf){return _0x40b3f8(_0x230332-_0x6846ac._0x472b0c,_0x29d3b8,_0xbd318a-_0x6846ac._0x13430a,_0xbd318a-0xe7);}const _0x26b15a=this[_0x8ef406(0x3aa,0x31e,_0x3cfae7._0x34939f,0x31d)](_0x2e384a),_0x3562e9=toModelRequest(_0x26b15a),_0xb180=await prepareProviderRequest(_0x3562e9,{'sessionManager':this[_0x31a370(-_0x3cfae7._0x233929,-0x26,_0x3cfae7._0x117459,-0x2)],'requestMutators':this[_0x8ef406(_0x3cfae7._0xd34c3e,_0x3cfae7._0x75e228,0x424,0x50e)],'signal':_0xf42e60}),_0x171500=toChatRequest(_0xb180['request']);function _0x8ef406(_0x40222f,_0x3d1947,_0x15645b,_0x5dcff5){return _0x40b3f8(_0x40222f-0x13a,_0x3d1947,_0x15645b-_0xb127dd._0x48d964,_0x40222f-0x498);}const _0x16f2db=this[_0x31a370(0x11a,0xc,0x9c,_0x3cfae7._0x569499)][_0x31a370(_0x3cfae7._0x57599a,_0x3cfae7._0xd2966f,0xcf,0x65)](this[_0x31a370(_0x3cfae7._0x14bc0e,_0x3cfae7._0x355bdc,_0x3cfae7._0x27460d,_0x3cfae7._0x25cc44)],_0xb180[_0x31a370(-_0x3cfae7._0x36b50c,0x23,-_0x3cfae7._0x2fb620,0x48)]);if(!_0x16f2db)throw this[_0x8ef406(0x45b,_0x3cfae7._0x64ee56,0x504,_0x3cfae7._0x1f68ee)]();return{'baseUrl':this['providerAdapter']['resolveBaseUrl'](this['baseUrl'],_0xb180[_0x8ef406(0x35d,_0x3cfae7._0x335668,_0x3cfae7._0x369226,_0x3cfae7._0x514dd5)]),'credential':_0x16f2db,'request':_0x171500,'session':_0xb180[_0x31a370(-_0x3cfae7._0x57d1ca,-0xee,-_0x3cfae7._0x2fb620,-0xc3)]};}[_0x3a2825(-0x364,-0x2c8,-0x310,-0x316)](_0x2a7764,_0x4372bf,_0x1eac6d={}){const _0x4e4eb8={_0x351b9c:0x2b7,_0x22ea3e:0x280,_0x48948c:0x2a9,_0x448fdf:0x1b9,_0x507935:0x25b,_0x5ab73a:0x31a,_0x342e43:0x342,_0x26617a:0x214,_0x7760cd:0x287,_0x17b820:0x379,_0x15d057:0x257,_0x15833c:0x204,_0x2df91f:0x252},_0x4f6ec6={_0x15aabb:0x16c,_0x32ae5a:0x19a},_0x5e4822={_0x3b9f76:0x4e5,_0x3e7c32:0x15};function _0x2cb186(_0x2ba36c,_0xe27d7c,_0xd8ae66,_0xdb125b){return _0x3a2825(_0x2ba36c,_0xd8ae66-_0x5e4822._0x3b9f76,_0xd8ae66-_0x5e4822._0x3e7c32,_0xdb125b-0xf3);}if(!_0x1eac6d['forceFullReplay']){const _0x326af9=this['findResponsesSocketCheckpoint'](_0x2a7764);if(_0x326af9&&_0x4372bf[_0x131468(-_0x4e4eb8._0x351b9c,-_0x4e4eb8._0x22ea3e,-_0x4e4eb8._0x48948c,-0x26b)]&&_0x326af9['responseId']===_0x4372bf[_0x131468(-0x208,-0x280,-_0x4e4eb8._0x448fdf,-0x238)]){const _0x132100=toOpenAiResponsesRequest({..._0x2a7764,'messages':_0x2a7764[_0x2cb186(_0x4e4eb8._0x507935,_0x4e4eb8._0x5ab73a,0x2ed,0x325)][_0x131468(-0x259,-0x239,-0x2e8,-0x296)](_0x326af9[_0x2cb186(0x25b,_0x4e4eb8._0x342e43,0x2cd,_0x4e4eb8._0x26617a)]+0x1)})[_0x2cb186(_0x4e4eb8._0x7760cd,0x2e1,0x31d,_0x4e4eb8._0x17b820)];return{'event':createOpenAiResponsesWebSocketEvent(_0x2a7764,{'input':_0x132100,'previousResponseId':_0x326af9[_0x131468(-_0x4e4eb8._0x15d057,-0x256,-_0x4e4eb8._0x15833c,-0x1c4)]}),'previousResponseId':_0x326af9[_0x2cb186(_0x4e4eb8._0x2df91f,0x2c0,0x235,0x24a)]};}}function _0x131468(_0x34d34a,_0x331887,_0x421f76,_0x49f2e0){return _0x3a2825(_0x34d34a,_0x331887-0x5a,_0x421f76-_0x4f6ec6._0x15aabb,_0x49f2e0-_0x4f6ec6._0x32ae5a);}return{'event':createOpenAiResponsesWebSocketEvent(_0x2a7764)};}[_0x40b3f8(-0x58,-0x33,-0x8b,-0x4f)](_0x5b74b5){const _0x1405d8={_0xcd91e1:0x5c9,_0x4b8f03:0x575,_0x15e12b:0x642,_0x1e9c0c:0x4af,_0x2b1205:0x527,_0x417267:0x259,_0x4ab674:0x1aa,_0x26d19f:0x16e,_0x20dc2a:0x237,_0x3ea163:0x4bc,_0x340895:0x58d,_0x553ca5:0x520,_0x13f06c:0x56b,_0x377893:0x555,_0x4c77ac:0x5de,_0x596e9f:0x59e},_0x4e0708={_0x18e719:0x64,_0x35707f:0x13},_0x568e00={_0x64fdd9:0x76d,_0x47c489:0xa7};for(let _0x30879a=_0x5b74b5[_0x8f126(_0x1405d8._0xcd91e1,_0x1405d8._0x4b8f03,_0x1405d8._0x15e12b,0x503)][_0x8f126(0x516,0x4cc,_0x1405d8._0x1e9c0c,_0x1405d8._0x2b1205)]-0x1;_0x30879a>=0x0;_0x30879a-=0x1){const _0x3950ea=_0x5b74b5['messages'][_0x30879a],_0xbb2145=_0x3950ea[_0x58915(_0x1405d8._0x417267,_0x1405d8._0x4ab674,_0x1405d8._0x26d19f,_0x1405d8._0x20dc2a)]===_0x8f126(0x3e4,_0x1405d8._0x3ea163,0x4d0,_0x1405d8._0x340895)?_0x3950ea[_0x8f126(_0x1405d8._0x553ca5,0x4a0,_0x1405d8._0x13f06c,_0x1405d8._0x377893)]?.[_0x8f126(_0x1405d8._0x4c77ac,0x5a0,0x4e4,_0x1405d8._0x596e9f)]:void 0x0;if(_0xbb2145)return{'messageIndex':_0x30879a,'responseId':_0xbb2145};}function _0x8f126(_0x3d9f64,_0x3d18c9,_0x237997,_0x3c89f0){return _0x3a2825(_0x237997,_0x3d18c9-_0x568e00._0x64fdd9,_0x237997-0xc5,_0x3c89f0-_0x568e00._0x47c489);}function _0x58915(_0x42b2f3,_0x20b4cc,_0x367dcc,_0x27f0ef){return _0x3a2825(_0x42b2f3,_0x20b4cc-0x3ef,_0x367dcc-_0x4e0708._0x18e719,_0x27f0ef-_0x4e0708._0x35707f);}return void 0x0;}['shouldRetryResponsesSocketRequest'](_0x3d3c9d){const _0x5aa96d={_0x15ddfb:0x29d,_0x2e43e:0x2d},_0x20e583={_0x77bb8:0x93},_0x5d3535={_0x9f8361:0x1a};function _0x542dc7(_0x420814,_0x4690f,_0x4f6ce3,_0x688175){return _0x40b3f8(_0x420814-_0x5d3535._0x9f8361,_0x688175,_0x4f6ce3-0x110,_0x4690f-0x26f);}function _0x475dfc(_0x4893c2,_0x22abf5,_0x101e96,_0x4b6177){return _0x40b3f8(_0x4893c2-0x66,_0x4b6177,_0x101e96-_0x20e583._0x77bb8,_0x101e96-0x54);}return _0x3d3c9d instanceof ProviderStreamEventError&&(_0x3d3c9d['code']===_0x542dc7(0x33d,_0x5aa96d._0x15ddfb,0x282,0x2b9)||_0x3d3c9d['code']===_0x475dfc(0x2d,_0x5aa96d._0x2e43e,-0x5f,-0x90));}[_0x3a2825(-0x2a3,-0x2ee,-0x36a,-0x2b2)](_0x4126e8){const _0x4935ba={_0x57906c:0x1ac,_0x5e1ac8:0xb8,_0x57d67f:0x1ac,_0x6f1311:0x1ad,_0x1f35e6:0x1e6,_0x21bce9:0x26f,_0xd1ccd5:0x330,_0x335b22:0x1ca,_0xecb567:0x280,_0x5c39f3:0x20e,_0x130e4d:0x13e,_0x252c6d:0x1b8},_0xc92b96={_0x23e0c5:0x420,_0x497718:0x14a},_0x33fb57={_0x2f91ce:0x47c,_0x5a0e0d:0x2d,_0x3ed585:0x39},_0x2dd6a7=_0x4126e8['socket'];function _0x41c2cc(_0x36cdb6,_0x4600f2,_0x5e889b,_0x1c6896){return _0x3a2825(_0x1c6896,_0x5e889b-_0x33fb57._0x2f91ce,_0x5e889b-_0x33fb57._0x5a0e0d,_0x1c6896-_0x33fb57._0x3ed585);}_0x4126e8[_0x180fe0(0x14b,_0x4935ba._0x57906c,0x151,_0x4935ba._0x5e1ac8)]=void 0x0;function _0x180fe0(_0x173964,_0x5b6e16,_0xc647aa,_0x2e4948){return _0x3a2825(_0x5b6e16,_0x173964-_0xc92b96._0x23e0c5,_0xc647aa-_0xc92b96._0x497718,_0x2e4948-0x127);}_0x4126e8[_0x41c2cc(_0x4935ba._0x57d67f,0x260,0x269,_0x4935ba._0x6f1311)]=void 0x0,_0x4126e8[_0x41c2cc(0x201,0x1e9,0x1a2,_0x4935ba._0x1f35e6)]=void 0x0,_0x2dd6a7?.['readyState']===WebSocket[_0x41c2cc(0x1e6,0x2e9,_0x4935ba._0x21bce9,_0x4935ba._0xd1ccd5)]&&_0x2dd6a7[_0x180fe0(0x231,0x178,_0x4935ba._0x335b22,_0x4935ba._0xecb567)](0x3e8,_0x180fe0(0x139,_0x4935ba._0x5c39f3,_0x4935ba._0x130e4d,_0x4935ba._0x252c6d));}async['getOrCreateResponsesSocket'](_0x23c85f,_0xef380,_0x51f34a,_0x57cec4,_0x26bcdd){const _0x445537={_0x1f0f16:0x28f,_0x22e001:0x2c5,_0x4b459a:0x30d,_0x4e0a33:0x214,_0x1a355c:0x648,_0x29478e:0x587,_0x3aa69c:0x400,_0x2a2327:0x2f9,_0x3d6219:0x644,_0x516464:0x529,_0x2e05a8:0x62c},_0xf8864e={_0x248249:0x33,_0x46268d:0x86,_0xfc1f07:0xbb,_0x5a9cbc:0x14e,_0x20fc38:0xba,_0x3882dc:0x164,_0x1f0711:0x3a0,_0x3e9b10:0x356,_0x47ba31:0x36f,_0x504046:0x244,_0x3c734d:0x199,_0x58a587:0x234,_0x2514ed:0x3a5,_0x457a74:0x29,_0x11b09a:0x65,_0x4d91fc:0x69,_0x4e6336:0xdb,_0x3837de:0x90,_0x4e482c:0x72,_0x55b0b6:0x127,_0x58a803:0x104,_0x3a916a:0x1b9,_0x25a353:0x97,_0x2234ad:0x21f,_0x4c5010:0x1a3,_0x52d5e4:0x170,_0x3fe949:0x325,_0x412ec5:0x42c,_0x557e54:0x336,_0x4a65b6:0x459,_0x152708:0x4da,_0x4d6238:0x4ee,_0x540e2a:0x6e,_0x3de18d:0x3a,_0x3e246a:0x88,_0x2927dc:0x4bc,_0x1367a6:0xfe,_0x57f571:0x587,_0x2358ae:0x578,_0x42a47f:0x4d6,_0x3a5e67:0xfd,_0x19f1fc:0x11e,_0x1cdbad:0x1bf,_0x27ba9b:0x55},_0x2c9a2c={_0xc6b0fe:0x1eb},_0x3f338d={_0x1fdaa3:0x1c0},_0xa82c9e={_0x22555d:0x79a,_0x40adc4:0xec,_0x378a76:0x19e};function _0x1c78c8(_0x52e515,_0x361ece,_0x3fa703,_0x47629b){return _0x3a2825(_0x52e515,_0x47629b-_0xa82c9e._0x22555d,_0x3fa703-_0xa82c9e._0x40adc4,_0x47629b-_0xa82c9e._0x378a76);}if(_0xef380[_0x3f7f37(_0x445537._0x1f0f16,0x29e,_0x445537._0x22e001,0x2c7)]?.['readyState']===WebSocket[_0x3f7f37(0x357,0x3a9,0x39d,_0x445537._0x4b459a)])return _0xef380[_0x3f7f37(0x28f,0x1c7,_0x445537._0x4e0a33,0x236)];function _0x3f7f37(_0x5925a7,_0x6891d,_0x51a49f,_0x94183d){return _0x3a2825(_0x94183d,_0x5925a7-0x564,_0x51a49f-0x10f,_0x94183d-_0x3f338d._0x1fdaa3);}if(_0xef380[_0x1c78c8(0x60a,0x602,_0x445537._0x1a355c,_0x445537._0x29478e)])return await _0xef380['connecting'];_0xef380['connecting']=((async()=>{const _0x575d28={_0x4eea5d:0x226,_0x47e2dc:0x221,_0x4af0da:0x20d};function _0x13ebc2(_0x57bfae,_0x26cdc2,_0x188eba,_0x1358ab){return _0x3f7f37(_0x26cdc2- -0x3c6,_0x26cdc2-0x76,_0x188eba-_0x2c9a2c._0xc6b0fe,_0x1358ab);}const _0x3cec7a=await this[_0x13ebc2(_0xf8864e._0x248249,-0x9f,-_0xf8864e._0x46268d,-_0xf8864e._0xfc1f07)]({'request':_0x51f34a[_0x41210b(0x515,0x3a7,0x471,0x3c8)],'body':_0x57cec4,'credential':_0x51f34a[_0x13ebc2(-0x1b5,-_0xf8864e._0x5a9cbc,-_0xf8864e._0x20fc38,-_0xf8864e._0x3882dc)],'session':_0x51f34a[_0x41210b(_0xf8864e._0x1f0711,_0xf8864e._0x3e9b10,0x3a6,_0xf8864e._0x47ba31)],'stream':!![]},{'accept':_0x13ebc2(-_0xf8864e._0x504046,-_0xf8864e._0x3c734d,-_0xf8864e._0x58a587,-0x259),'includeContentType':![]});_0x3cec7a[_0x41210b(0x4ce,_0xf8864e._0x2514ed,0x43a,0x3d6)]('accept');function _0x41210b(_0x385a71,_0x253f07,_0x1c157f,_0x9bd6d){return _0x1c78c8(_0x385a71,_0x253f07-0x10,_0x1c157f-0xb,_0x1c157f- -0xd1);}const _0x3042de=this[_0x13ebc2(-0xc5,-0x86,0x0,-_0xf8864e._0x457a74)]({'headers':Object['fromEntries'](_0x3cec7a[_0x41210b(0x478,0x3e7,0x455,0x393)]()),'url':(''+_0x51f34a[_0x13ebc2(-0xd9,-_0xf8864e._0x11b09a,-_0xf8864e._0x4d91fc,-_0xf8864e._0x4e6336)]+this[_0x41210b(0x518,0x444,0x51b,0x4ae)])[_0x13ebc2(-0x76,-_0xf8864e._0x3837de,-0x5a,-_0xf8864e._0x4e482c)](/^http:/,_0x13ebc2(-_0xf8864e._0x55b0b6,-_0xf8864e._0x58a803,-_0xf8864e._0x3a916a,-0x5a))[_0x13ebc2(-0x3b,-_0xf8864e._0x3837de,-0x11f,-_0xf8864e._0x25a353)](/^https:/,_0x13ebc2(-_0xf8864e._0x2234ad,-_0xf8864e._0x4c5010,-0x21a,-_0xf8864e._0x52d5e4))}),_0x710089=()=>{const _0x58cce5={_0x1db95b:0x124,_0x5b74ab:0xb7};function _0x374e6e(_0x48c7ab,_0x6590e9,_0x34b536,_0x30e9dc){return _0x41210b(_0x6590e9,_0x6590e9-0x1ea,_0x48c7ab-0x24,_0x30e9dc-0x184);}function _0x11481e(_0x4ef257,_0x2b42ec,_0x8181e6,_0x5758aa){return _0x41210b(_0x5758aa,_0x2b42ec-_0x58cce5._0x1db95b,_0x2b42ec- -0x1ce,_0x5758aa-_0x58cce5._0x5b74ab);}_0xef380[_0x11481e(0x28c,_0x575d28._0x4eea5d,0x197,0x183)]===_0x3042de&&(_0xef380['socket']=void 0x0,_0xef380[_0x11481e(0x1a1,_0x575d28._0x47e2dc,0x24d,_0x575d28._0x4af0da)]=void 0x0);};_0x3042de[_0x41210b(_0xf8864e._0x3fe949,_0xf8864e._0x412ec5,0x3d2,_0xf8864e._0x557e54)](_0x41210b(_0xf8864e._0x4a65b6,0x4e7,_0xf8864e._0x152708,_0xf8864e._0x4d6238),_0x710089);try{return throwIfAborted(_0x26bcdd),_0x3042de[_0x13ebc2(_0xf8864e._0x540e2a,-0x4e,-_0xf8864e._0x3de18d,-_0xf8864e._0x3e246a)]!==WebSocket[_0x41210b(0x571,0x4dd,_0xf8864e._0x2927dc,0x4bc)]&&await waitForWebSocketOpen(_0x3042de,_0x26bcdd),throwIfAborted(_0x26bcdd),_0xef380[_0x13ebc2(-0x192,-0x137,-0x199,-_0xf8864e._0x1367a6)]=_0x3042de,_0x3042de;}catch(_0x532d9f){_0x710089();_0x3042de[_0x41210b(_0xf8864e._0x57f571,0x57c,0x4dd,0x449)]===WebSocket[_0x41210b(0x457,0x404,0x4bc,0x402)]&&_0x3042de[_0x41210b(_0xf8864e._0x2358ae,_0xf8864e._0x42a47f,0x4da,0x576)](0x3e8,_0x13ebc2(-_0xf8864e._0x3a5e67,-_0xf8864e._0x19f1fc,-_0xf8864e._0x1cdbad,-_0xf8864e._0x27ba9b));throw _0x532d9f;}})());try{return await _0xef380[_0x3f7f37(0x351,_0x445537._0x3aa69c,0x40d,_0x445537._0x2a2327)];}finally{_0xef380[_0x1c78c8(_0x445537._0x3d6219,_0x445537._0x516464,_0x445537._0x2e05a8,_0x445537._0x29478e)]=void 0x0;}}async*[_0x3a2825(-0x1cf,-0x29a,-0x35d,-0x33a)](_0x3b2f6a,_0x3d45f2){const _0x445019={_0x1d6b0b:0x71,_0x1afa72:0xe1,_0x6fc8c0:0x1b4,_0x399663:0xad,_0x29c1a4:0x30,_0x452107:0x7f,_0x39bbaf:0xa9,_0x2bf7b2:0x31,_0x32530b:0x159,_0x5da180:0x92,_0x1c4c31:0x194,_0xe7f6bd:0x18,_0x4eb340:0xec,_0x12d1df:0xf9,_0x5bbeed:0x172,_0x2f6748:0x2d7,_0x8fa8c6:0x371,_0x1750c8:0x239,_0x2a23a8:0x23,_0x24ad54:0x21a,_0x4ea296:0x138,_0x4df11d:0x109,_0x5729d6:0x1c0,_0x271194:0x16b,_0x53c503:0x1e1,_0x5b28f1:0x262,_0x14af62:0x259,_0x312421:0x255},_0x37e37e={_0x33b022:0x128,_0x25fb69:0x121,_0x2e8f73:0x2a0},_0x27f7a7={_0x33aaa4:0xd},_0x4eb809=this[_0xdd9857(-_0x445019._0x1d6b0b,-0x98,-_0x445019._0x1afa72,-_0x445019._0x6fc8c0)](_0x3b2f6a);function _0xdd9857(_0x2a6990,_0x23fe49,_0x10b8b6,_0x41246f){return _0x40b3f8(_0x2a6990-0x57,_0x2a6990,_0x10b8b6-0x90,_0x10b8b6-_0x27f7a7._0x33aaa4);}function _0x5d645f(_0x2a48e8,_0xa5a0d,_0x4319ae,_0x52ca68){return _0x40b3f8(_0x2a48e8-_0x37e37e._0x33b022,_0x4319ae,_0x4319ae-_0x37e37e._0x25fb69,_0xa5a0d-_0x37e37e._0x2e8f73);}const _0x5d38bd=this[_0xdd9857(-_0x445019._0x399663,-_0x445019._0x29c1a4,-0x2c,-_0x445019._0x452107)](_0x4eb809[_0xdd9857(-_0x445019._0x39bbaf,0x1e,-_0x445019._0x2bf7b2,0x2f)][_0x5d645f(_0x445019._0x32530b,0x170,0x22b,0x1a0)]),_0x504806=await this['acquireResponsesSocketLock'](_0x5d38bd);try{const _0x308f3b=this[_0xdd9857(-_0x445019._0x5da180,-_0x445019._0x1c4c31,-0xd3,-_0x445019._0xe7f6bd)](_0x4eb809,_0x5d38bd);try{yield*this[_0xdd9857(0x3f,-0x17,0x43,-0x6d)](_0x4eb809[_0xdd9857(-0x105,-_0x445019._0x4eb340,-_0x445019._0x2bf7b2,0x95)][_0x5d645f(0x222,0x170,_0x445019._0x12d1df,_0x445019._0x5bbeed)],_0x5d38bd,_0x4eb809,_0x308f3b['event'],_0x3d45f2?.[_0xdd9857(-0xd9,-0x100,-0x5a,-0x12e)]);return;}catch(_0x401eb6){if(!_0x308f3b[_0x5d645f(0x38f,_0x445019._0x2f6748,_0x445019._0x8fa8c6,_0x445019._0x1750c8)]||!this[_0xdd9857(_0x445019._0x2a23a8,-0x88,-0x5,-0xbd)](_0x401eb6)){this[_0x5d645f(0x22f,0x19a,0x188,_0x445019._0x24ad54)](_0x5d38bd);throw _0x401eb6;}}this[_0x5d645f(0x21a,0x19a,_0x445019._0x4ea296,_0x445019._0x4df11d)](_0x5d38bd);const _0x2d5a91=this[_0x5d645f(0x21a,_0x445019._0x5729d6,_0x445019._0x271194,0x1c5)](_0x4eb809,_0x5d38bd,{'forceFullReplay':!![]});yield*this['streamViaResponsesSocketAttempt'](_0x4eb809[_0x5d645f(_0x445019._0x53c503,_0x445019._0x5b28f1,0x210,0x2a3)]['sessionId'],_0x5d38bd,_0x4eb809,_0x2d5a91['event'],_0x3d45f2?.[_0x5d645f(_0x445019._0x14af62,0x239,0x1f9,_0x445019._0x312421)]);}finally{_0x504806();}}async*[_0x40b3f8(0x9f,-0x30,-0x84,0x36)](_0x5f2dee,_0xac947b,_0x34677e,_0x2470ec,_0x28f5f8){const _0x47008f={_0x1016ca:0x245,_0xfeea66:0x241,_0x52b8d4:0x211,_0xdf906:0x200,_0x4b637d:0x11f,_0xcc6eda:0xba,_0x501964:0x129,_0x2c01d6:0x191,_0xc575e3:0x178,_0x28371a:0xe7,_0x28c245:0x1fc,_0x2c2f98:0x93,_0x12ddc6:0x13a,_0x573981:0xe8,_0x4f4139:0xd2,_0x4d4d15:0x18a,_0x11a126:0x46,_0x249752:0x221,_0x5b4c9e:0x1a5,_0x41e03b:0x16b},_0x4d252b={_0x291fb6:0x4a,_0x3d8d49:0x1d7,_0x4cceda:0x191},_0x4fc30c={_0x53ce6a:0x1c9};function _0x54acc6(_0x5b36de,_0x2a66bb,_0x5652f8,_0x118be5){return _0x3a2825(_0x5652f8,_0x5b36de-0x1c0,_0x5652f8-0x103,_0x118be5-_0x4fc30c._0x53ce6a);}const _0x532211=await this['prepareResponsesSocketRequest'](_0x34677e,_0x28f5f8),_0x81fdb4=await this[_0x2164c3(-_0x47008f._0x1016ca,-_0x47008f._0xfeea66,-_0x47008f._0x52b8d4,-_0x47008f._0xdf906)](_0x5f2dee,_0xac947b,_0x532211,_0x2470ec,_0x28f5f8),_0x5e67f0=createOpenAiResponsesStreamParser(_0x34677e);throwIfAborted(_0x28f5f8);function _0x2164c3(_0x18ede9,_0x2eb34f,_0x173bbb,_0x56c1f2){return _0x40b3f8(_0x18ede9-_0x4d252b._0x291fb6,_0x173bbb,_0x173bbb-_0x4d252b._0x3d8d49,_0x18ede9- -_0x4d252b._0x4cceda);}_0x81fdb4[_0x54acc6(-_0x47008f._0x4b637d,-_0x47008f._0xcc6eda,-_0x47008f._0x501964,-_0x47008f._0x2c01d6)](JSON[_0x2164c3(-0x178,-_0x47008f._0xc575e3,-_0x47008f._0x28371a,-_0x47008f._0x28c245)](_0x2470ec));for await(const _0x5440e6 of iterateWebSocketMessages(_0x81fdb4,_0x28f5f8)){const _0x57a15e=_0x5e67f0['consumeWebSocketEvent']?.(_0x5440e6)??[];yield*_0x57a15e;if(_0x5e67f0['isDone']?.())break;}if(!_0x5e67f0['isDone']?.())throw new Error('Responses\x20WebSocket\x20closed\x20before\x20response.completed');const _0x2cae4c=_0x5e67f0[_0x54acc6(-0x37,0xe,0x2a,_0x47008f._0x2c2f98)](),_0xd89a57=_0x2cae4c[_0x54acc6(-0x10d,-_0x47008f._0x12ddc6,-_0x47008f._0x573981,-_0x47008f._0x4f4139)]?.['openaiResponsesResponseId']??_0x2cae4c['id'];_0xd89a57&&(_0xac947b[_0x54acc6(-0x11a,-_0x47008f._0x4d4d15,-_0x47008f._0x11a126,-0x44)]=_0xd89a57),yield{'type':_0x2164c3(-_0x47008f._0x249752,-_0x47008f._0x5b4c9e,-_0x47008f._0x41e03b,-0x181),'response':_0x2cae4c};}};function _0x3a2825(_0xc41a1d,_0x35351c,_0x47c74b,_0xdc4746){return _0x4eeb(_0x35351c- -0x3e8,_0xc41a1d);}var AVAILABLE_CHAT_MODEL_SURFACES=['anthropic-messages','openai-chat-completions',_0x3a2825(-0x35c,-0x2ba,-0x28d,-0x2f1),_0x40b3f8(-0x15e,-0x12d,-0xfe,-0x95)];function isAnthropicSurface(_0x30fa84){return _0x30fa84==='anthropic-messages';}function resolveDefaultBaseUrl(_0x5917a6){const _0x862aac={_0x1d49b3:0xc5,_0x3603ff:0x63,_0x3544f5:0x1c,_0x25361c:0x70,_0x9c3ce:0xa8,_0x41e9a6:0xa1},_0x5ad693={_0x53c7e9:0x72f,_0xe5f88:0xee},_0x54b984={_0x1f6093:0x1,_0x319a96:0x199,_0x117b7d:0x6d};function _0x305fbf(_0x399966,_0x5eec8c,_0x4e5a0e,_0x10c8cb){return _0x40b3f8(_0x399966-_0x54b984._0x1f6093,_0x399966,_0x4e5a0e-_0x54b984._0x319a96,_0x10c8cb-_0x54b984._0x117b7d);}function _0x242ce5(_0x4d1e0d,_0x5f1441,_0x77d00c,_0x5f3a87){return _0x3a2825(_0x4d1e0d,_0x5f3a87-_0x5ad693._0x53c7e9,_0x77d00c-0x181,_0x5f3a87-_0x5ad693._0xe5f88);}return isAnthropicSurface(_0x5917a6)?_0x305fbf(0x8,_0x862aac._0x1d49b3,_0x862aac._0x3603ff,_0x862aac._0x3544f5):_0x305fbf(-_0x862aac._0x25361c,_0x862aac._0x9c3ce,_0x862aac._0x41e9a6,-0x24);}var ChatModel=class{[_0x3a2825(-0x2c5,-0x34b,-0x2ce,-0x336)];[_0x3a2825(-0x189,-0x23f,-0x2cc,-0x238)];['surface'];['anthropicDelegate'];[_0x3a2825(-0x220,-0x21c,-0x266,-0x25c)];constructor(_0x18427b={}){const _0x2cfffa={_0x5ccabb:0x20f,_0x2547b2:0x2b9,_0x36dd53:0x335,_0x1f5f15:0x2cc,_0x4cd212:0x215,_0x33f605:0x314,_0x1fb383:0x272,_0x3645d5:0x1f5,_0x1fcc29:0x29d,_0x4f3e71:0x289,_0x2e302f:0x41e,_0x5b9724:0x411,_0x5cc488:0x17c,_0x4fd05a:0x1d6,_0x36968f:0x348,_0x23535c:0x234,_0x3eb5b6:0x26d,_0x3935b2:0x2d1,_0x53a5c3:0x27a,_0x2d7a5d:0x261,_0x4294a4:0x3b5,_0x58fb5e:0x2c3,_0x28f7ac:0x291,_0x4a794a:0x26b,_0x433cc0:0x335,_0x2a7510:0x269,_0x1fdfc3:0x3a0,_0x286f01:0x23f,_0x4fa167:0xeb,_0xeb5d85:0x1bd,_0x14cd74:0x28f,_0x281e30:0x2ca,_0x2aed4e:0x1df,_0x583056:0x210,_0x3878c4:0x181,_0x4e8223:0x256,_0x54bfbd:0x2e5,_0x3b4999:0x2dd,_0x475822:0x331,_0x24951c:0x401,_0x146638:0x3ed,_0x1c9806:0x255,_0x329c14:0x3ad,_0x31cf95:0x300,_0x1dc4d9:0x2e7},_0x36361d={_0x20af29:0x50b},_0x29723b={_0x432a54:0x52a,_0x1519d0:0x66,_0x180cde:0x17f};function _0x424a02(_0x58fd28,_0x555572,_0x45478f,_0x58324a){return _0x3a2825(_0x555572,_0x58fd28-_0x29723b._0x432a54,_0x45478f-_0x29723b._0x1519d0,_0x58324a-_0x29723b._0x180cde);}this[_0x45f822(0x1fa,0xfe,0x1c0,_0x2cfffa._0x5ccabb)]=_0x18427b['model']??_0x424a02(_0x2cfffa._0x2547b2,0x330,0x2ca,0x2e7),this[_0x45f822(_0x2cfffa._0x36dd53,0x244,_0x2cfffa._0x1f5f15,_0x2cfffa._0x4cd212)]=_0x18427b[_0x424a02(0x2eb,_0x2cfffa._0x33f605,_0x2cfffa._0x1fb383,0x304)]??0x4000,this[_0x424a02(_0x2cfffa._0x3645d5,_0x2cfffa._0x1fcc29,0x14e,_0x2cfffa._0x4f3e71)]=_0x18427b['surface']??_0x424a02(0x352,_0x2cfffa._0x2e302f,0x388,_0x2cfffa._0x5b9724);function _0x45f822(_0x18ad5f,_0x212853,_0x5ce08b,_0x10b723){return _0x3a2825(_0x212853,_0x5ce08b-_0x36361d._0x20af29,_0x5ce08b-0x100,_0x10b723-0xc8);}const _0xa26bf3=trimTrailingSlashes(_0x18427b['baseUrl']??resolveDefaultBaseUrl(this[_0x45f822(0x17f,0x201,0x1d6,0x166)]));if(isAnthropicSurface(this[_0x45f822(0x29e,_0x2cfffa._0x5cc488,_0x2cfffa._0x4fd05a,0x12c)])){this[_0x424a02(0x2bb,_0x2cfffa._0x36968f,_0x2cfffa._0x23535c,_0x2cfffa._0x3eb5b6)]=new AnthropicModel({'apiKey':_0x18427b['apiKey'],'authScheme':_0x18427b[_0x424a02(0x2a9,_0x2cfffa._0x3935b2,_0x2cfffa._0x53a5c3,_0x2cfffa._0x2d7a5d)],'baseUrl':_0xa26bf3,'fetch':_0x18427b['fetch'],'maxTokens':this[_0x424a02(0x2eb,0x391,_0x2cfffa._0x4294a4,0x334)],'model':this[_0x424a02(0x1df,0x1dd,0x254,0x167)],'reasoning':_0x18427b['reasoning'],'providerSessionResolver':_0x18427b[_0x45f822(_0x2cfffa._0x58fb5e,_0x2cfffa._0x28f7ac,0x312,_0x2cfffa._0x4a794a)],'requestMutators':_0x18427b[_0x424a02(_0x2cfffa._0x433cc0,_0x2cfffa._0x2a7510,_0x2cfffa._0x1fdfc3,0x306)]});return;}this[_0x424a02(0x30e,0x3b5,0x3cd,0x2dc)]=new OpenAiModel({'apiKey':_0x18427b[_0x45f822(0x30f,0x22b,0x300,_0x2cfffa._0x286f01)],'baseUrl':_0xa26bf3,'fetch':_0x18427b[_0x45f822(_0x2cfffa._0x4fa167,_0x2cfffa._0xeb5d85,0x1be,_0x2cfffa._0x14cd74)],'headerResolver':_0x18427b['headerResolver'],'maxTokens':this[_0x45f822(0x3a2,0x2b3,0x2cc,_0x2cfffa._0x281e30)],'model':this[_0x424a02(_0x2cfffa._0x2aed4e,_0x2cfffa._0x583056,_0x2cfffa._0x3878c4,_0x2cfffa._0x4e8223)],'reasoning':_0x18427b[_0x45f822(0x2e3,_0x2cfffa._0x54bfbd,0x241,_0x2cfffa._0x3b4999)],'providerSessionResolver':_0x18427b[_0x424a02(_0x2cfffa._0x475822,_0x2cfffa._0x24951c,0x28e,_0x2cfffa._0x146638)],'requestMutators':_0x18427b[_0x45f822(_0x2cfffa._0x1c9806,0x24c,0x316,_0x2cfffa._0x1c9806)],'webSocketFactory':_0x18427b[_0x45f822(_0x2cfffa._0x329c14,_0x2cfffa._0x31cf95,_0x2cfffa._0x1dc4d9,0x328)]});}[_0x40b3f8(-0xa9,-0x60,0x2d,-0x20)](){const _0x154609={_0x4a4c8b:0x3c,_0x5fa0a9:0x4,_0x50ca85:0x4a,_0xd69a92:0x45,_0x4beb7b:0x102,_0x387793:0x8a},_0x5666f4={_0x275aee:0x5b,_0x403bc5:0xcd},_0x47f4af={_0x1bb548:0x19f};function _0x55ec49(_0x569c4d,_0x297fe9,_0x1c682e,_0x4e7c72){return _0x3a2825(_0x569c4d,_0x297fe9-0x2ab,_0x1c682e-_0x47f4af._0x1bb548,_0x4e7c72-0xae);}if(!this[_0x55ec49(0x49,_0x154609._0x4a4c8b,-_0x154609._0x5fa0a9,-_0x154609._0x50ca85)])throw new Error(_0x55ec49(-_0x154609._0xd69a92,-0x36,-_0x154609._0x4beb7b,-0xb4)+this[_0x55ec49(-0xc9,-_0x154609._0x387793,-0x5b,0x6)]);function _0x3227b5(_0x6ebc97,_0x471d4e,_0x4c1e4a,_0xd433ea){return _0x40b3f8(_0x6ebc97-_0x5666f4._0x275aee,_0x4c1e4a,_0x4c1e4a-0x12b,_0x471d4e-_0x5666f4._0x403bc5);}return this[_0x3227b5(-0x83,0x46,0x7c,0x1f)];}[_0x3a2825(-0x241,-0x315,-0x3b6,-0x25d)](){const _0x27177a={_0x402599:0x492,_0x29378c:0x449,_0x10b637:0x487,_0x375fb:0x3e7,_0x45b4a5:0x578,_0x3838f7:0x455,_0x5b6afe:0x383,_0x4834be:0x38c,_0x2c1365:0x3fb},_0x26472a={_0x1047f6:0x122,_0x50340c:0x4d0},_0x3a9326={_0x1a8711:0x665};function _0x5f2004(_0x4798eb,_0x9cac0c,_0x4980f8,_0x555ab4){return _0x3a2825(_0x555ab4,_0x9cac0c-_0x3a9326._0x1a8711,_0x4980f8-0x84,_0x555ab4-0x51);}function _0x557fd8(_0x3b43ac,_0x3d7322,_0x2c9622,_0x52f25a){return _0x40b3f8(_0x3b43ac-_0x26472a._0x1047f6,_0x3b43ac,_0x2c9622-0x1ca,_0x3d7322-_0x26472a._0x50340c);}if(!this[_0x5f2004(_0x27177a._0x402599,_0x27177a._0x29378c,_0x27177a._0x10b637,_0x27177a._0x375fb)])throw new Error(_0x557fd8(0x452,0x4b3,_0x27177a._0x45b4a5,0x57f)+this[_0x557fd8(_0x27177a._0x3838f7,_0x27177a._0x5b6afe,_0x27177a._0x4834be,0x446)]);return this[_0x5f2004(0x511,0x449,_0x27177a._0x2c1365,0x427)];}['complete'](_0x25079c,_0x24128b){const _0xb63d3e={_0x166012:0xda,_0x109d67:0xc9,_0x3c99ac:0x35,_0x151408:0xe4,_0x2eada7:0x146,_0x9c1e6c:0x1e1,_0x2d46b0:0x2d7,_0x1cefa6:0x247,_0xb761e1:0x1cf,_0x4cfc9b:0x1d9,_0x177b5d:0x298,_0x5c494f:0x25a,_0x24beca:0x19e,_0x55372c:0x1de,_0x257e73:0x2da,_0x48a8a9:0x22b,_0x1626dc:0x20e,_0x36e7cc:0x194,_0x2ebda5:0x1ac},_0x25a442={_0x4d6e0a:0x182,_0x4bc2f6:0x1c8,_0x23efbd:0x2ef},_0x462f2b={_0x1e605c:0x1a1};function _0x5b9f96(_0x5612bf,_0x3e9dfd,_0x55aa06,_0x27b98c){return _0x3a2825(_0x27b98c,_0x55aa06-0x3fe,_0x55aa06-_0x462f2b._0x1e605c,_0x27b98c-0x130);}function _0x393d5e(_0x5eb36a,_0x5e547f,_0x3bc490,_0x2d4f0c){return _0x40b3f8(_0x5eb36a-_0x25a442._0x4d6e0a,_0x5e547f,_0x3bc490-_0x25a442._0x4bc2f6,_0x2d4f0c-_0x25a442._0x23efbd);}switch(this[_0x5b9f96(_0xb63d3e._0x166012,0x4c,_0xb63d3e._0x109d67,_0xb63d3e._0x3c99ac)]){case _0x393d5e(_0xb63d3e._0x151408,_0xb63d3e._0x2eada7,0x1db,0x1ae):return this[_0x5b9f96(0x2c3,_0xb63d3e._0x9c1e6c,0x1f6,0x161)]()['complete'](_0x25079c,_0x24128b);case _0x393d5e(0x285,_0xb63d3e._0x2d46b0,0x1f0,0x21d):return this['getOpenAiDelegate']()[_0x5b9f96(_0xb63d3e._0x1cefa6,0x1b7,_0xb63d3e._0xb761e1,_0xb63d3e._0x4cfc9b)](_0x25079c,_0x24128b);case _0x393d5e(0x24f,_0xb63d3e._0x177b5d,0x2b7,_0xb63d3e._0x5c494f):return this[_0x5b9f96(0x158,_0xb63d3e._0x24beca,0xe9,0xf6)]()[_0x5b9f96(_0xb63d3e._0x55372c,_0xb63d3e._0x257e73,_0xb63d3e._0x48a8a9,_0xb63d3e._0x1626dc)](_0x25079c,_0x24128b);default:return this['getOpenAiDelegate']()[_0x5b9f96(_0xb63d3e._0x36e7cc,0x1c7,0x238,_0xb63d3e._0x2ebda5)](_0x25079c,_0x24128b);}}[_0x40b3f8(-0x3c,-0x172,-0xf6,-0x112)](_0x3acdae,_0x8f4e91){const _0x3b6eb2={_0x3b2091:0x32b,_0x540c26:0x317,_0x190f63:0x139,_0x1a2b99:0x3a,_0x11947e:0x103,_0x182ee4:0x3d4,_0x27d0dd:0x46f,_0xeb806d:0x531,_0x873cd8:0x47d,_0x1ca1bc:0x3b,_0x48cdda:0x1b,_0x231b28:0xb7,_0x407560:0x371,_0x1f57f4:0x4b5,_0x534173:0x428},_0x2a2c36={_0x18522b:0x1c7,_0x315add:0xb0},_0x243ac1={_0x54ea38:0x6ea,_0x2ac4f5:0x19c,_0x4d7285:0xb6};function _0x4a9e6e(_0x3e41b8,_0x4011d6,_0xcc693d,_0x243ac4){return _0x3a2825(_0xcc693d,_0x4011d6-_0x243ac1._0x54ea38,_0xcc693d-_0x243ac1._0x2ac4f5,_0x243ac4-_0x243ac1._0x4d7285);}function _0xd825ee(_0x4884ca,_0x56f79b,_0x581a22,_0x25b853){return _0x40b3f8(_0x4884ca-0xc9,_0x25b853,_0x581a22-_0x2a2c36._0x18522b,_0x56f79b-_0x2a2c36._0x315add);}switch(this[_0x4a9e6e(_0x3b6eb2._0x3b2091,0x3b5,0x48c,0x2e3)]){case _0x4a9e6e(0x445,0x3c1,_0x3b6eb2._0x540c26,0x30b):return this[_0x4a9e6e(0x561,0x4e2,0x575,0x448)]()[_0xd825ee(-_0x3b6eb2._0x190f63,-0x62,_0x3b6eb2._0x1a2b99,-_0x3b6eb2._0x11947e)](_0x3acdae,_0x8f4e91);case _0x4a9e6e(0x432,0x430,_0x3b6eb2._0x182ee4,0x42e):return this['getOpenAiDelegate']()[_0x4a9e6e(_0x3b6eb2._0x27d0dd,0x531,_0x3b6eb2._0xeb806d,_0x3b6eb2._0x873cd8)](_0x3acdae,_0x8f4e91);case _0xd825ee(-_0x3b6eb2._0x1ca1bc,_0x3b6eb2._0x48cdda,-0x89,-_0x3b6eb2._0x231b28):return this[_0x4a9e6e(0x328,0x3d5,_0x3b6eb2._0x407560,0x327)]()[_0x4a9e6e(0x49c,_0x3b6eb2._0x1f57f4,_0x3b6eb2._0x534173,0x4f0)](_0x3acdae,_0x8f4e91);default:return this['getOpenAiDelegate']()['chatStream'](_0x3acdae,_0x8f4e91);}}};import{randomUUID}from'crypto';var GitHubAccessTokenResolver=class{[_0x3a2825(-0x2c7,-0x23e,-0x191,-0x1e2)];['baseUrl'];['fetchImpl'];[_0x40b3f8(-0x97,-0x2f,-0x6,-0xd7)];['tokenExchangeApiVersion'];constructor(_0x4f6d83){const _0x48b071={_0x6bb1b:0x30e,_0x15c523:0x38d,_0x45234d:0x3a2,_0x68a619:0x29e,_0x1ff827:0x2fa,_0x144b9b:0x27e,_0x58dbbe:0x2aa,_0x1d4730:0x2b9,_0x548900:0x1e3,_0x4d7a23:0x29b,_0x184a6e:0x348,_0x37a028:0x33b,_0x507998:0x225},_0x599b35={_0xc5711d:0xe,_0x37a3eb:0x381},_0x448397={_0x2045f4:0x1e0,_0x3a2b14:0x1c1};this[_0x48a6d4(_0x48b071._0x6bb1b,_0x48b071._0x15c523,0x3ef,0x41d)]=_0x4f6d83['accessToken'];function _0x48a6d4(_0x88c850,_0x26476a,_0x3800ed,_0x363323){return _0x3a2825(_0x3800ed,_0x26476a-0x5cb,_0x3800ed-_0x448397._0x2045f4,_0x363323-_0x448397._0x3a2b14);}this[_0x2c9c92(0x3cc,0x366,_0x48b071._0x45234d,0x400)]=trimTrailingSlashes2(_0x4f6d83['baseUrl']);function _0x2c9c92(_0x89ad0f,_0x2048bb,_0x1cff8d,_0x793e61){return _0x40b3f8(_0x89ad0f-0x14a,_0x793e61,_0x1cff8d-_0x599b35._0xc5711d,_0x2048bb-_0x599b35._0x37a3eb);}this[_0x48a6d4(_0x48b071._0x68a619,0x32d,0x3b5,0x28f)]=_0x4f6d83[_0x48a6d4(_0x48b071._0x1ff827,_0x48b071._0x144b9b,0x208,0x2e1)],this['githubApiUrl']=trimTrailingSlashes2(_0x4f6d83[_0x2c9c92(0x233,_0x48b071._0x58dbbe,_0x48b071._0x1d4730,_0x48b071._0x548900)]),this[_0x48a6d4(_0x48b071._0x4d7a23,_0x48b071._0x184a6e,0x3c8,0x285)]=_0x4f6d83[_0x2c9c92(_0x48b071._0x37a028,0x2e6,_0x48b071._0x507998,0x391)];}async[_0x3a2825(-0x212,-0x1fc,-0x27e,-0x2b1)](_0x586a14){const _0x53a68a={_0x7b44b1:0x13a,_0x656eef:0x2bf,_0x37df17:0x23b,_0x165447:0x223,_0x511f3a:0x1ec,_0x1f1022:0x267,_0x504062:0x1c2,_0x54b473:0x271,_0x527eac:0x19d,_0x38ff96:0x1dd,_0x449947:0x195,_0x408798:0x10c,_0x11a63c:0x1b4,_0x8be7df:0x20c,_0x2eb88f:0x215,_0x1699de:0x1c4,_0x168360:0x1a2,_0x319639:0x2eb,_0x55e456:0x1fe,_0x134f47:0x1bb,_0x42a6d4:0x222,_0x3e1a86:0x2eb,_0x42a738:0x2d1,_0x1d49a7:0x35a,_0x35e342:0x396,_0x401c94:0x10d,_0x267c92:0x172,_0x11e0af:0x1f4,_0x567c10:0x22a,_0x375bab:0x27c,_0x415703:0x2bd,_0x413c81:0x1fe,_0x3716ee:0x2a9,_0x3de009:0x1d3,_0x3495b3:0x288,_0x31111a:0x212,_0x1eba9a:0x19f,_0x332cc2:0x16d,_0x56315a:0x1c5,_0x5f1b2d:0x1e4},_0x5758cf={_0x19f67e:0x15,_0x58175b:0x190},_0x3ebf0d={_0x3c14b3:0x2f},_0x11ce88=await this[_0x2e4886(-_0x53a68a._0x7b44b1,-_0x53a68a._0x656eef,-0x202,-_0x53a68a._0x37df17)](this[_0x2e4886(-0x1f7,-0x1cc,-_0x53a68a._0x165447,-0x23f)]+_0x2fd4e5(0x241,0x1e7,_0x53a68a._0x511f3a,_0x53a68a._0x1f1022),{'method':_0x2fd4e5(0x297,0x266,_0x53a68a._0x504062,0x267),'headers':new Headers({'accept':_0x2fd4e5(_0x53a68a._0x54b473,_0x53a68a._0x527eac,_0x53a68a._0x38ff96,0xe3),'authorization':_0x2e4886(-_0x53a68a._0x449947,-_0x53a68a._0x408798,-_0x53a68a._0x11a63c,-_0x53a68a._0x8be7df)+this[_0x2e4886(-_0x53a68a._0x2eb88f,-_0x53a68a._0x1699de,-_0x53a68a._0x168360,-0x1ab)],'editor-version':_0x2e4886(-_0x53a68a._0x319639,-0x1eb,-0x23d,-0x2a8),'user-agent':'GitHubCopilotChat/0.33.1','x-github-api-version':this['tokenExchangeApiVersion']}),'signal':_0x586a14});if(!_0x11ce88['ok'])return{'credential':{'kind':_0x2e4886(-_0x53a68a._0x55e456,-0x19d,-_0x53a68a._0x134f47,-_0x53a68a._0x42a6d4),'value':this['accessToken']},'endpoints':{'api':this[_0x2fd4e5(_0x53a68a._0x3e1a86,_0x53a68a._0x42a738,_0x53a68a._0x1d49a7,_0x53a68a._0x35e342)]}};function _0x2fd4e5(_0x118063,_0x35430b,_0xcbc0a3,_0x55bc39){return _0x3a2825(_0xcbc0a3,_0x35430b-0x4d4,_0xcbc0a3-0x19,_0x55bc39-_0x3ebf0d._0x3c14b3);}function _0x2e4886(_0x4dbc6f,_0x35e03e,_0x1a16b6,_0x338e41){return _0x3a2825(_0x338e41,_0x1a16b6-0x9c,_0x1a16b6-_0x5758cf._0x19f67e,_0x338e41-_0x5758cf._0x58175b);}const _0x53f162=await _0x11ce88['json']();return{'credential':{'kind':'session-token','value':_0x53f162['token']??this['accessToken']},'endpoints':{'api':_0x53f162[_0x2fd4e5(0x1da,0x1dc,_0x53a68a._0x401c94,_0x53a68a._0x267c92)]?.[_0x2e4886(-_0x53a68a._0x11e0af,-_0x53a68a._0x567c10,-0x227,-0x1a1)]??this['baseUrl'],'originTracker':_0x53f162[_0x2fd4e5(_0x53a68a._0x375bab,0x1dc,0x1e4,0x21c)]?.[_0x2fd4e5(_0x53a68a._0x415703,0x2ba,0x345,_0x53a68a._0x413c81)],'proxy':_0x53f162[_0x2fd4e5(0x258,0x1dc,_0x53a68a._0x3716ee,_0x53a68a._0x3de009)]?.[_0x2e4886(-0x1cf,-_0x53a68a._0x3495b3,-_0x53a68a._0x31111a,-0x21d)],'telemetry':_0x53f162[_0x2fd4e5(0x25d,0x1dc,_0x53a68a._0x1eba9a,_0x53a68a._0x332cc2)]?.[_0x2e4886(-0x1a0,-0x1a6,-_0x53a68a._0x56315a,-_0x53a68a._0x5f1b2d)]}};}};function trimTrailingSlashes2(_0x240b7e){const _0x555f6d={_0x340ff0:0xa2,_0x153ca5:0x50,_0x42130f:0x71},_0x438b3f={_0x27d7c1:0x108,_0x43297f:0x18a};function _0x5dc86f(_0x5ea2b6,_0x5c21e1,_0x38e63c,_0x166eee){return _0x3a2825(_0x166eee,_0x38e63c-0x1de,_0x38e63c-_0x438b3f._0x27d7c1,_0x166eee-_0x438b3f._0x43297f);}return _0x240b7e[_0x5dc86f(0x69,-_0x555f6d._0x340ff0,-_0x555f6d._0x153ca5,-_0x555f6d._0x42130f)](/\/+$/,'');}function createModelInfo(_0x4af451){const _0x896ac8={_0x55e16f:0x23,_0x4814ca:0xa,_0x956225:0xda,_0x2fbf1a:0x1ff,_0x1410ff:0x22d,_0x51601e:0x2a2,_0x4a1256:0x1a2,_0x8e7d1b:0x2f1,_0x18958e:0x284,_0x5402f6:0x267,_0x5187a8:0x1be},_0x476c0c={_0x558cf4:0x4cd,_0xaa9cd1:0x2e,_0x4e9ac4:0x70},_0x217799={_0x45e490:0xdf,_0x66b748:0x11d},_0x3dc47e=_0x4af451[_0x50bf0b(-_0x896ac8._0x55e16f,-_0x896ac8._0x4814ca,-_0x896ac8._0x956225,-0x42)]??_0x4af451[_0x539c47(0x213,0x2a3,_0x896ac8._0x2fbf1a,0x273)],_0x5b7242=_0x4af451[_0x539c47(0x30b,0x248,_0x896ac8._0x1410ff,_0x896ac8._0x51601e)]?.[_0x50bf0b(-_0x896ac8._0x4a1256,-0x2be,-0x267,-_0x896ac8._0x8e7d1b)]?.['max_context_window_tokens'];function _0x50bf0b(_0x375438,_0x182d4a,_0x31b74d,_0x5c3f3d){return _0x40b3f8(_0x375438-0xbb,_0x375438,_0x31b74d-_0x217799._0x45e490,_0x31b74d- -_0x217799._0x66b748);}function _0x539c47(_0x4f7e38,_0x59877a,_0x342aae,_0x2c5f40){return _0x3a2825(_0x2c5f40,_0x59877a-_0x476c0c._0x558cf4,_0x342aae-_0x476c0c._0xaa9cd1,_0x2c5f40-_0x476c0c._0x4e9ac4);}const _0x5776af=_0x4af451[_0x50bf0b(-0x1e2,-0x1b4,-0x1ba,-0x10d)]?.[_0x50bf0b(-_0x896ac8._0x18958e,-0x202,-_0x896ac8._0x5402f6,-_0x896ac8._0x5187a8)]?.['max_output_tokens'],_0x227227=_0x5b7242!==void 0x0||_0x5776af!==void 0x0?{..._0x5b7242!==void 0x0?{'contextWindow':_0x5b7242}:{},..._0x5776af!==void 0x0?{'maxOutput':_0x5776af}:{}}:void 0x0;return{'id':_0x4af451['id'],'name':_0x4af451['name']??_0x4af451['id'],..._0x227227?{'limits':_0x227227}:{},..._0x3dc47e?{'supportedEndpoints':_0x3dc47e}:{}};}function deduplicateModels(_0x11f096){const _0x155b83={_0x5a8e21:0x60a,_0x10d184:0x5a8,_0x25baed:0x4c3,_0x2d1a77:0x3bc,_0x156210:0x323,_0x21d664:0x352},_0x5c673e={_0x468d78:0x6b},_0x4296e8={_0xcaf7e1:0x5de};function _0x5c9b9d(_0x43b440,_0x3f2d39,_0x30ff3a,_0x591bb6){return _0x40b3f8(_0x43b440-0x5,_0x591bb6,_0x30ff3a-0x18b,_0x3f2d39-_0x4296e8._0xcaf7e1);}function _0x306ec0(_0xb64dd2,_0x3bff0b,_0x145aa7,_0x320a34){return _0x3a2825(_0x3bff0b,_0x145aa7-0x66c,_0x145aa7-_0x5c673e._0x468d78,_0x320a34-0xd9);}const _0x3ee5ea=new Map();for(const _0x40efc3 of _0x11f096){!_0x3ee5ea[_0x5c9b9d(0x61b,_0x155b83._0x5a8e21,_0x155b83._0x10d184,0x5e8)](_0x40efc3['id'])&&_0x3ee5ea['set'](_0x40efc3['id'],_0x40efc3);}return Array[_0x306ec0(_0x155b83._0x25baed,0x367,0x41e,_0x155b83._0x2d1a77)](_0x3ee5ea[_0x306ec0(0x2e1,_0x155b83._0x156210,0x379,_0x155b83._0x21d664)]());}function _0x4eeb(_0x101d9b,_0x36229b){_0x101d9b=_0x101d9b-0x99;const _0x48d222=_0x48d2();let _0x4eeb5c=_0x48d222[_0x101d9b];if(_0x4eeb['AuAHGq']===undefined){var _0x21b323=function(_0x4da4c5){const _0x42864c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4277ef='',_0x250356='';for(let _0x3787cd=0x0,_0x10e11d,_0xe9201d,_0x27cb7a=0x0;_0xe9201d=_0x4da4c5['charAt'](_0x27cb7a++);~_0xe9201d&&(_0x10e11d=_0x3787cd%0x4?_0x10e11d*0x40+_0xe9201d:_0xe9201d,_0x3787cd++%0x4)?_0x4277ef+=String['fromCharCode'](0xff&_0x10e11d>>(-0x2*_0x3787cd&0x6)):0x0){_0xe9201d=_0x42864c['indexOf'](_0xe9201d);}for(let _0x5a19a4=0x0,_0x569872=_0x4277ef['length'];_0x5a19a4<_0x569872;_0x5a19a4++){_0x250356+='%'+('00'+_0x4277ef['charCodeAt'](_0x5a19a4)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x250356);};_0x4eeb['YkAyZw']=_0x21b323,_0x4eeb['imjcNv']={},_0x4eeb['AuAHGq']=!![];}const _0x528baa=_0x48d222[0x0],_0x2270cf=_0x101d9b+_0x528baa,_0x1ab79b=_0x4eeb['imjcNv'][_0x2270cf];return!_0x1ab79b?(_0x4eeb5c=_0x4eeb['YkAyZw'](_0x4eeb5c),_0x4eeb['imjcNv'][_0x2270cf]=_0x4eeb5c):_0x4eeb5c=_0x1ab79b,_0x4eeb5c;}function hasUserPromptContent(_0x5cb697){const _0x244229={_0x2680bb:0x463,_0x5498f9:0x523,_0xc3017b:0x5a2,_0x22c2da:0x4fa,_0x11088a:0x526,_0x4479a7:0x3b,_0x1cdc75:0x19},_0x13fbd4={_0x457668:0x2bd,_0x4190a7:0x211,_0x3e403e:0x254,_0x3ec3fc:0x223,_0x2ee34d:0x10c,_0x2b8024:0x24c,_0x16f840:0x197,_0x3c53e9:0x2f5,_0x163ff0:0x1a2,_0x5cc837:0xfa,_0x1a74db:0xd2,_0x1536e4:0x150,_0x33d082:0x6c,_0x4f707b:0xee,_0x11fe7e:0x13c,_0x551e79:0xd9,_0x34cd12:0x1b3},_0x1508e4={_0xcae02d:0x47,_0xe439cc:0x5bf},_0x4e164a={_0x4d1ac4:0xec,_0x3c3f2b:0xc6,_0x34db1b:0x611},_0x2d1059={_0x16ae7f:0x129},_0x1f54e9={_0x225d49:0x188};if(typeof _0x5cb697===_0x5474e(0x577,_0x244229._0x2680bb,0x4a3,_0x244229._0x5498f9))return _0x5cb697[_0x5474e(0x459,_0x244229._0xc3017b,0x45e,_0x244229._0x22c2da)]()[_0x5474e(0x4fc,0x514,_0x244229._0x11088a,0x463)]>0x0;if(!Array[_0x2a0cfa(-_0x244229._0x4479a7,-0x10b,-_0x244229._0x1cdc75,-0x37)](_0x5cb697))return![];function _0x2a0cfa(_0x42a30a,_0x31b783,_0xaa081d,_0x4439bf){return _0x40b3f8(_0x42a30a-_0x1f54e9._0x225d49,_0x42a30a,_0xaa081d-0xf5,_0x4439bf-0xee);}function _0x5474e(_0x5620da,_0x41f3d9,_0xe1ab7d,_0x273969){return _0x40b3f8(_0x5620da-0xe0,_0xe1ab7d,_0xe1ab7d-_0x2d1059._0x16ae7f,_0x273969-0x51c);}return _0x5cb697[_0x2a0cfa(0x127,0x135,0x65,0x115)](_0x4836ef=>{function _0x6f594d(_0x51f1d7,_0x2584d3,_0x9fb1be,_0xba68b7){return _0x5474e(_0x51f1d7-_0x4e164a._0x4d1ac4,_0x2584d3-_0x4e164a._0x3c3f2b,_0x2584d3,_0x9fb1be- -_0x4e164a._0x34db1b);}if(!_0x4836ef||typeof _0x4836ef!==_0x6f594d(-0x297,-_0x13fbd4._0x457668,-_0x13fbd4._0x4190a7,-_0x13fbd4._0x3e403e))return![];const _0x2c1ae2=_0x4836ef;function _0x43dfb5(_0x8ea31b,_0x40fb1e,_0x3d2734,_0x4b18fe){return _0x5474e(_0x8ea31b-_0x1508e4._0xcae02d,_0x40fb1e-0x160,_0x8ea31b,_0x4b18fe- -_0x1508e4._0xe439cc);}return(_0x2c1ae2['type']===_0x43dfb5(-_0x13fbd4._0x3ec3fc,-_0x13fbd4._0x2ee34d,-_0x13fbd4._0x2b8024,-_0x13fbd4._0x16f840)||_0x2c1ae2[_0x6f594d(-0x2c6,-_0x13fbd4._0x3c53e9,-0x255,-0x24e)]===_0x6f594d(-0x1b1,-0x214,-_0x13fbd4._0x163ff0,-_0x13fbd4._0x5cc837))&&typeof _0x2c1ae2[_0x43dfb5(-_0x13fbd4._0x1a74db,-0x93,-0xd4,-_0x13fbd4._0x1536e4)]===_0x6f594d(-_0x13fbd4._0x33d082,-0x69,-_0x13fbd4._0x4f707b,-_0x13fbd4._0x11fe7e)&&_0x2c1ae2[_0x6f594d(-_0x13fbd4._0x551e79,-0x1ca,-_0x13fbd4._0x163ff0,-_0x13fbd4._0x34cd12)]['trim']()[_0x43dfb5(-0xb0,-0x22f,-0x219,-0x15c)]>0x0;});}function _isUserPromptEntry(_0x57c43a){const _0x2bc68c={_0x406400:0x19,_0x25d451:0x3ae,_0x56393d:0x2ab,_0x3aa40e:0x92,_0x3d16d:0x9,_0x158976:0x5f,_0xe22415:0x45c,_0x34640d:0x3d8},_0x5d454a={_0x426f5e:0xce},_0x29fb3e={_0x4f11e6:0x5f3,_0x220c7a:0xf8,_0x26c78c:0x13e};function _0x137c20(_0x4bd96b,_0x3d3e1d,_0x38b141,_0x330fd3){return _0x3a2825(_0x4bd96b,_0x330fd3-_0x29fb3e._0x4f11e6,_0x38b141-_0x29fb3e._0x220c7a,_0x330fd3-_0x29fb3e._0x26c78c);}function _0x2bb487(_0x334216,_0x48bf87,_0x5a3f52,_0x3ee14c){return _0x40b3f8(_0x334216-0x132,_0x48bf87,_0x5a3f52-0x1bb,_0x334216-_0x5d454a._0x426f5e);}if(!_0x57c43a||typeof _0x57c43a!==_0x2bb487(-0x4e,-0xc4,-0x10,_0x2bc68c._0x406400))return![];const _0x5a2df4=_0x57c43a;if(_0x5a2df4[_0x137c20(0x3e9,0x47f,0x463,_0x2bc68c._0x25d451)]!==_0x2bb487(0x8b,0x15f,-0x18,0x159))return![];if(_0x5a2df4[_0x137c20(0x2b7,0x380,0x284,_0x2bc68c._0x56393d)]!==void 0x0&&_0x5a2df4[_0x2bb487(-_0x2bc68c._0x3aa40e,_0x2bc68c._0x3d16d,-_0x2bc68c._0x158976,0x27)]!==_0x137c20(_0x2bc68c._0xe22415,0x3b2,_0x2bc68c._0x34640d,0x406))return![];return hasUserPromptContent(_0x5a2df4[_0x2bb487(0x109,0x1d6,0xa7,0x13c)]);}function determineInitiator(_0x20de83){const _0x2d6535={_0x51327b:0xe2,_0x4571e5:0xe7,_0x4de0a2:0x1a5,_0x3bbc6b:0x101,_0x4bdcf7:0x114,_0x16fc2c:0x1d5,_0xb5f313:0x1d5,_0x571095:0x25d,_0x25aaa5:0x333,_0xc6c6b6:0x1b1,_0x39fed4:0xb0,_0x4ea3ce:0xfc,_0x302a99:0xbd,_0x1748bd:0x130,_0x2198ff:0x22e,_0x225687:0x1fd,_0x2f741b:0x251,_0x175e92:0x147},_0x255ba1={_0x53d072:0xb0,_0x151b22:0x135},_0x3a26ee={_0x5e2f75:0x1f2,_0xa058f9:0x10e};if(!_0x20de83||typeof _0x20de83!=='object')return'agent';function _0xc8bd16(_0x54d451,_0x3dd263,_0x23337b,_0x1365c7){return _0x40b3f8(_0x54d451-_0x3a26ee._0x5e2f75,_0x3dd263,_0x23337b-_0x3a26ee._0xa058f9,_0x23337b-0x1b5);}const _0x4a3f17=_0xc8bd16(_0x2d6535._0x51327b,_0x2d6535._0x4571e5,_0x2d6535._0x4de0a2,_0x2d6535._0x3bbc6b)in _0x20de83?_0x20de83['messages']:_0xc8bd16(0xfe,_0x2d6535._0x4bdcf7,_0x2d6535._0x16fc2c,0x12f)in _0x20de83?_0x20de83[_0xc8bd16(0x188,0xff,_0x2d6535._0xb5f313,0x27a)]:void 0x0;if(!Array[_0x2c84cb(-_0x2d6535._0x571095,-_0x2d6535._0x25aaa5,-0x208,-_0x2d6535._0xc6c6b6)](_0x4a3f17)||_0x4a3f17[_0xc8bd16(_0x2d6535._0x39fed4,0x5c,_0x2d6535._0x4ea3ce,_0x2d6535._0x302a99)]===0x0)return _0xc8bd16(_0x2d6535._0x1748bd,_0x2d6535._0x2198ff,0x15b,_0x2d6535._0x225687);function _0x2c84cb(_0x615e41,_0x597944,_0x467768,_0x5ec017){return _0x3a2825(_0x597944,_0x615e41-_0x255ba1._0x53d072,_0x467768-_0x255ba1._0x151b22,_0x5ec017-0xe0);}return _isUserPromptEntry(_0x4a3f17[_0x4a3f17['length']-0x1])?'user':_0x2c84cb(-0x192,-_0x2d6535._0x2f741b,-0x154,-_0x2d6535._0x175e92);}function isUnsupportedApiForModel(_0x14e532){const _0xbda48f={_0x268c33:0x271,_0x17ce96:0x360,_0xdd43f:0x535,_0x1289c1:0x529},_0xe12398={_0x53a024:0x64c,_0x10708e:0xf3};function _0x5cb99b(_0x300f5c,_0x1b2cc1,_0x49c520,_0x45374b){return _0x3a2825(_0x300f5c,_0x45374b-_0xe12398._0x53a024,_0x49c520-0x140,_0x45374b-_0xe12398._0x10708e);}function _0x37fe84(_0x59717c,_0x231155,_0x3c159c,_0x534d09){return _0x3a2825(_0x59717c,_0x231155-0x1,_0x3c159c-0x1c0,_0x534d09-0x6a);}return _0x14e532[_0x37fe84(-_0xbda48f._0x268c33,-0x31e,-_0xbda48f._0x17ce96,-0x3c4)](_0x5cb99b(_0xbda48f._0xdd43f,0x55d,_0xbda48f._0x1289c1,0x48f));}function createResponseError(_0x51e77b,_0x38804f){const _0x21e8ef={_0x4530c4:0x2f8,_0x32a6b8:0x2cd,_0x39152b:0xe5,_0x3f9aff:0x171,_0x4dae8f:0x196,_0x189c0b:0xfb,_0x252eca:0x154,_0x3a1d20:0x19b},_0x32b4d2={_0x4a1cd1:0xb8,_0x2943cd:0x70,_0x33cdf:0x29d},_0x521ef1={_0x34a907:0x190,_0x4b538e:0xcb};if(_0x51e77b===0x191||_0x51e77b===0x193)return new Error(_0x140686(0x303,0x28a,_0x21e8ef._0x4530c4,_0x21e8ef._0x32a6b8));if(_0x51e77b===0x198||_0x51e77b===0x1ad)return new Error(_0x161d26(-_0x21e8ef._0x39152b,-0x15e,-0x1a6,-_0x21e8ef._0x3f9aff));function _0x161d26(_0x24aee3,_0x482ec5,_0xc3ae64,_0x528d93){return _0x40b3f8(_0x24aee3-_0x521ef1._0x34a907,_0x24aee3,_0xc3ae64-0x13d,_0x528d93- -_0x521ef1._0x4b538e);}function _0x140686(_0x541807,_0x394175,_0xfc6e6e,_0x30d5a7){return _0x40b3f8(_0x541807-_0x32b4d2._0x4a1cd1,_0xfc6e6e,_0xfc6e6e-_0x32b4d2._0x2943cd,_0x30d5a7-_0x32b4d2._0x33cdf);}if(_0x51e77b===0x190)return new Error(_0x161d26(-0x1bd,-_0x21e8ef._0x4dae8f,-_0x21e8ef._0x189c0b,-0x1a0)+_0x38804f);return new Error(_0x38804f||_0x161d26(-_0x21e8ef._0x252eca,-0x139,-0x173,-_0x21e8ef._0x3a1d20)+_0x51e77b);}var GitHubModel=class extends OpenAiModel{[_0x3a2825(-0x30f,-0x26f,-0x329,-0x2fe)];[_0x40b3f8(-0x5f,0x83,-0x97,-0x26)]=new Map();[_0x40b3f8(-0xb1,-0x135,-0x1fb,-0x14d)];constructor(_0x557b2a={}){const _0x88af47={_0xbd3867:0x123,_0x512c15:0x1eb,_0xed450e:0x2e4,_0x1076a6:0x328,_0x5805e0:0x2e6,_0x12a3a1:0x124,_0x3c6d1e:0x2d5,_0x3cc2a0:0x2ea,_0x5a71e6:0x21a,_0x2d15b3:0x16e,_0x4ec251:0x1d6,_0x5b0a37:0x134,_0x1f772f:0xe3,_0x495ba9:0x38,_0x198e08:0xd8,_0x5afc0e:0x1a9,_0x2443ad:0x1c2,_0x2c7db4:0x14d,_0x40c728:0x7,_0x5b307d:0x1c5,_0x590b75:0x15b,_0xbed898:0x253,_0x488b94:0x254,_0x4e9978:0x4a,_0x1aa810:0x148,_0x51ee3a:0x1c2,_0xe2d33f:0x108,_0x146202:0x14f,_0x1417db:0x61,_0x9d7e97:0x16d,_0xb93774:0x54,_0x3edcf9:0x1d6,_0xaf1876:0x179,_0x3f234c:0x151,_0x13f966:0x82,_0x2f4595:0x1a2,_0x3eed02:0x18f,_0x3d9390:0x1c3},_0x34630c={_0x2729f1:0x71},_0xd4b50b={_0x5e4dbe:0x69},_0x4c1cf3=trimTrailingSlashes2(_0x557b2a[_0x4ff4f1(-0x19a,-0x114,-0x1da,-0x11d)]??_0x8d0195(_0x88af47._0xbd3867,0x12b,_0x88af47._0x512c15,0x181)),_0x3c857f=_0x557b2a[_0x4ff4f1(-_0x88af47._0xed450e,-0x302,-_0x88af47._0x1076a6,-_0x88af47._0x5805e0)]??globalThis['fetch'],_0x17e86c=_0x557b2a['providerSessionResolver']??(_0x557b2a[_0x8d0195(0x18f,_0x88af47._0x12a3a1,0xcf,0x153)]?new GitHubAccessTokenResolver({'accessToken':_0x557b2a['accessToken'],'baseUrl':_0x4c1cf3,'fetch':_0x3c857f,'githubApiUrl':_0x557b2a[_0x4ff4f1(-0x256,-_0x88af47._0x3c6d1e,-_0x88af47._0x3cc2a0,-0x219)]??'https://api.github.com','tokenExchangeApiVersion':_0x557b2a[_0x4ff4f1(-_0x88af47._0x5a71e6,-_0x88af47._0x2d15b3,-0x19c,-_0x88af47._0x4ec251)]??'2025-10-01'}):void 0x0);function _0x4ff4f1(_0xb1efb8,_0x2c3690,_0x537883,_0x2d988e){return _0x3a2825(_0x537883,_0xb1efb8-_0xd4b50b._0x5e4dbe,_0x537883-0x15d,_0x2d988e-0x5f);}const _0x4a5e2a=_0x557b2a[_0x4ff4f1(-0x182,-0x10d,-0x13a,-_0x88af47._0x5b0a37)]??_0x8d0195(_0x88af47._0x1f772f,0x43,0x13f,_0x88af47._0x495ba9);function _0x8d0195(_0x5401b5,_0x54395b,_0x51e686,_0x1fcc3d){return _0x40b3f8(_0x5401b5-0x89,_0x54395b,_0x51e686-_0x34630c._0x2729f1,_0x5401b5-0x1e5);}const _0x579a8e=_0x557b2a['editorPluginVersion']??_0x8d0195(_0x88af47._0x198e08,_0x88af47._0x5afc0e,0x10f,0xc0),_0x568d27=({body:_0x2cb5b6})=>{return{'editor-plugin-version':_0x579a8e,'editor-version':_0x4a5e2a,'x-initiator':determineInitiator(_0x2cb5b6),'x-request-id':randomUUID()};},_0x4e7883={'apiKey':_0x557b2a[_0x8d0195(_0x88af47._0x2443ad,0x1c9,0x132,_0x88af47._0x2c7db4)],'baseUrl':_0x4c1cf3,'fetch':_0x3c857f,'maxTokens':_0x557b2a[_0x4ff4f1(-_0x88af47._0x4ec251,-0x166,-0x1f0,-0x270)],'model':_0x557b2a[_0x8d0195(0x82,_0x88af47._0x40c728,0x6e,-0x47)],'reasoning':_0x557b2a[_0x8d0195(0x103,0x1be,_0x88af47._0x5b307d,_0x88af47._0x590b75)],'providerSessionResolver':_0x17e86c,'requestMutators':_0x557b2a[_0x4ff4f1(-0x18c,-_0x88af47._0xbed898,-_0x88af47._0x488b94,-0x134)],'headerResolver':_0x568d27};super(_0x4e7883),this['surface']=_0x557b2a[_0x8d0195(0x98,0x10a,_0x88af47._0x4e9978,0x94)]??_0x4ff4f1(-0x17b,-0x1ec,-0xdc,-_0x88af47._0x1aa810),this[_0x8d0195(0x15e,0x1ce,0x1cb,0xc2)]=new AnthropicModel({'apiKey':_0x557b2a[_0x8d0195(_0x88af47._0x51ee3a,_0x88af47._0xe2d33f,0x11e,_0x88af47._0x146202)],'authScheme':_0x8d0195(0x118,_0x88af47._0x1417db,_0x88af47._0x9d7e97,_0x88af47._0xb93774),'baseUrl':_0x4c1cf3,'fetch':_0x3c857f,'headerResolver':_0x568d27,'maxTokens':_0x557b2a[_0x4ff4f1(-_0x88af47._0x3edcf9,-_0x88af47._0xaf1876,-0x13a,-_0x88af47._0x3f234c)],'model':_0x557b2a[_0x8d0195(_0x88af47._0x13f966,0x45,0x13a,0x149)],'reasoning':_0x557b2a[_0x8d0195(0x103,0x19c,_0x88af47._0x2f4595,_0x88af47._0x3eed02)],'providerSessionResolver':_0x17e86c,'requestMutators':_0x557b2a[_0x8d0195(0x1d8,0x189,_0x88af47._0x3d9390,0x1d7)]});}['createMissingCredentialError'](){const _0x5937e2={_0x39f856:0x37,_0xf92712:0x63,_0x228cba:0x72},_0x13d9a5={_0x42eb2a:0x1a1,_0x4addab:0xfa};function _0x58254b(_0x162c51,_0x4aa40e,_0x3a56e0,_0x1dbb8d){return _0x40b3f8(_0x162c51-_0x13d9a5._0x42eb2a,_0x1dbb8d,_0x3a56e0-0x6b,_0x3a56e0-_0x13d9a5._0x4addab);}return new Error(_0x58254b(_0x5937e2._0x39f856,-_0x5937e2._0xf92712,_0x5937e2._0x228cba,0x3f));}['usesResponsesApi'](_0x34d1cb){const _0x4b1e1e={_0x553225:0x4db,_0x274049:0x457,_0x325e9d:0x42b,_0x32392c:0x3fa,_0x1c025f:0x2fe,_0x428151:0x47c,_0x4a1831:0x533,_0x481d4e:0x361,_0x5c9f37:0x38f,_0x4f8a19:0x3d5,_0x4243d0:0x35a},_0x5f0316={_0x57f809:0x162,_0x5291d0:0x498};function _0x3bf1ea(_0x5af655,_0x50cf3b,_0x57b3be,_0x29daae){return _0x40b3f8(_0x5af655-0x23,_0x50cf3b,_0x57b3be-0x104,_0x29daae-0x47d);}function _0x475657(_0x45a29d,_0x17d4e3,_0x4da26b,_0xb606e5){return _0x40b3f8(_0x45a29d-0x19b,_0x17d4e3,_0x4da26b-_0x5f0316._0x57f809,_0x45a29d-_0x5f0316._0x5291d0);}const _0x3093cb=this[_0x3bf1ea(0x38e,_0x4b1e1e._0x553225,0x394,_0x4b1e1e._0x274049)][_0x3bf1ea(_0x4b1e1e._0x325e9d,0x3eb,_0x4b1e1e._0x32392c,0x41d)](_0x34d1cb);if(!_0x3093cb)return![];return!_0x3093cb[_0x3bf1ea(0x2c3,_0x4b1e1e._0x1c025f,0x340,0x346)](_0x3bf1ea(_0x4b1e1e._0x428151,0x450,_0x4b1e1e._0x4a1831,0x49c))&&_0x3093cb[_0x475657(_0x4b1e1e._0x481d4e,_0x4b1e1e._0x5c9f37,0x393,_0x4b1e1e._0x4f8a19)](_0x475657(_0x4b1e1e._0x4243d0,0x2ca,0x2b6,0x357));}[_0x3a2825(-0x27b,-0x30a,-0x355,-0x268)](_0x1fdbda){const _0x45554e={_0x36593e:0x35,_0x29686:0xa1,_0x5d8a02:0x7d,_0x63ac35:0x68,_0x55facd:0x25,_0x13c7a5:0x6,_0xafa1f9:0x51,_0x3e6e3a:0x1b3,_0x44d458:0x1ff,_0x793c3:0x18c,_0x509c16:0x136,_0xb0c915:0xd1,_0x2cf286:0xbc},_0x152d64={_0x2cff91:0x1dd,_0x8403f2:0x32},_0x1a8e07=this[_0x430891(-0x31,_0x45554e._0x36593e,-0x3e,-0xba)][_0xcba16c(0x6b,_0x45554e._0x29686,0x128,0x124)](_0x1fdbda[_0xcba16c(_0x45554e._0x5d8a02,-_0x45554e._0x63ac35,_0x45554e._0x55facd,0x5a)]);function _0x430891(_0x1e1fce,_0x3b3db3,_0x51f662,_0x554883){return _0x3a2825(_0x51f662,_0x1e1fce-_0x152d64._0x2cff91,_0x51f662-_0x152d64._0x8403f2,_0x554883-0xf8);}if(!_0x1a8e07)return![];if(resolveOpenAiReasoningConfig(_0x1fdbda['reasoning']))return _0x1a8e07[_0xcba16c(-0x16,_0x45554e._0x13c7a5,_0x45554e._0xafa1f9,0x71)](_0x430891(-0x149,-_0x45554e._0x3e6e3a,-0x18b,-0x1df));function _0xcba16c(_0x112b8e,_0x129a15,_0x11948d,_0xd624b9){return _0x40b3f8(_0x112b8e-0x14a,_0x112b8e,_0x11948d-0x1e6,_0x11948d-0x188);}return this[_0xcba16c(_0x45554e._0x44d458,_0x45554e._0x793c3,_0x45554e._0x509c16,_0x45554e._0xb0c915)](_0x1fdbda[_0xcba16c(-0xa0,-0x34,0x25,_0x45554e._0x2cf286)]);}['markModelAsResponsesOnly'](_0x2df3e8){const _0x1f2957={_0x58f012:0x342,_0x3d8f1e:0x320},_0x587ef3={_0x447d51:0x7a};function _0x59c239(_0x4cf6a2,_0x26a47b,_0x15ed17,_0x4a19c3){return _0x3a2825(_0x4a19c3,_0x26a47b-0x5f9,_0x15ed17-0x8,_0x4a19c3-0xec);}function _0x2592b0(_0x4e3a4c,_0x1e7405,_0x245b6c,_0x95048a){return _0x3a2825(_0x4e3a4c,_0x1e7405-0x6,_0x245b6c-_0x587ef3._0x447d51,_0x95048a-0x1b9);}this['modelEndpointCache'][_0x2592b0(-0x24b,-0x20f,-0x246,-0x1b5)](_0x2df3e8,[_0x2592b0(-_0x1f2957._0x58f012,-_0x1f2957._0x3d8f1e,-0x30b,-0x38a)]);}[_0x40b3f8(0x4b,-0x162,-0x13a,-0x8d)](_0x3931d5){const _0x48afd0={_0x21751f:0x19c,_0x222b9d:0x1ae,_0x2b5f63:0x174,_0x2a31c4:0x173,_0x307dce:0x1cb,_0x1e9a18:0x298,_0x4e4ac1:0x2c6,_0x3f47fa:0x1c8,_0x477caa:0x10c,_0x4b805a:0xe0,_0x23c93d:0x2c,_0x9a9bfb:0x24},_0x3c504a={_0x34c9ec:0x4c4,_0x4bdd4b:0x82};if(_0x3931d5 instanceof OpenAiApiError)return createResponseError(_0x3931d5[_0x1135e5(-_0x48afd0._0x21751f,-_0x48afd0._0x222b9d,-_0x48afd0._0x2b5f63,-_0x48afd0._0x2a31c4)],_0x3931d5[_0x2e220b(_0x48afd0._0x307dce,_0x48afd0._0x1e9a18,_0x48afd0._0x4e4ac1,_0x48afd0._0x3f47fa)]||_0x3931d5[_0x1135e5(-_0x48afd0._0x477caa,-_0x48afd0._0x4b805a,-_0x48afd0._0x23c93d,-_0x48afd0._0x9a9bfb)]);function _0x1135e5(_0x1b13cb,_0x1629c7,_0x16e025,_0x572e3e){return _0x3a2825(_0x16e025,_0x1629c7-0x10d,_0x16e025-0x1b2,_0x572e3e-0xd1);}function _0x2e220b(_0x2a9dd8,_0x3389d9,_0x4a83d8,_0x16c9b4){return _0x3a2825(_0x16c9b4,_0x3389d9-_0x3c504a._0x34c9ec,_0x4a83d8-_0x3c504a._0x4bdd4b,_0x16c9b4-0x33);}return _0x3931d5;}[_0x3a2825(-0x297,-0x252,-0x20b,-0x1ce)](_0x48a1d3,_0x2da1a4){const _0x4774ba={_0x52f876:0x1d9,_0x322a06:0x23f,_0x1dac65:0x23a,_0x87c6b9:0x79,_0x2cfd70:0x160,_0x36d3b9:0xdc,_0x59f44a:0xd7,_0x226347:0xcf,_0x3f62d3:0x7c,_0x4a06b1:0x137,_0xb3d15a:0x1f4,_0x23ed8f:0x185,_0x324f4c:0xd3,_0xf7f1bd:0x109,_0x31a9f7:0x2d,_0x38cb58:0x167,_0x45aedf:0xc,_0x4dba35:0x1c,_0x386aed:0xe5,_0x3c9d1c:0x16},_0x1da8a2={_0x1343bc:0x7f},_0x2c55b3={_0x5276e6:0x83};function _0x2ea684(_0xad5d08,_0xf792a6,_0x584257,_0xfdd1d8){return _0x3a2825(_0xf792a6,_0xfdd1d8-0x34b,_0x584257-0x189,_0xfdd1d8-_0x2c55b3._0x5276e6);}function _0xb808f5(_0x1baefd,_0x5b8bfc,_0x1f4b74,_0x21f160){return _0x3a2825(_0x1f4b74,_0x1baefd-0x15c,_0x1f4b74-_0x1da8a2._0x1343bc,_0x21f160-0x124);}switch(this[_0xb808f5(-_0x4774ba._0x52f876,-_0x4774ba._0x322a06,-0x106,-_0x4774ba._0x1dac65)]){case'anthropic-messages':return this[_0x2ea684(_0x4774ba._0x87c6b9,0xdd,_0x4774ba._0x2cfd70,_0x4774ba._0x36d3b9)][_0x2ea684(_0x4774ba._0x59f44a,0x67,_0x4774ba._0x226347,0x1c)](_0x48a1d3,_0x2da1a4);case _0xb808f5(-_0x4774ba._0x3f62d3,-0x14a,-0x12b,-0x119):return this[_0x2ea684(0x249,_0x4774ba._0x4a06b1,_0x4774ba._0xb3d15a,_0x4774ba._0x23ed8f)](_0x48a1d3,_0x2da1a4);case'openai-responses':return this[_0xb808f5(-_0x4774ba._0x324f4c,-_0x4774ba._0xf7f1bd,-0xc7,-0x18)](_0x48a1d3,_0x2da1a4);case _0x2ea684(_0x4774ba._0x31a9f7,0x13,0x14d,0xce):return this['responseSocket'](_0x48a1d3,_0x2da1a4);case _0x2ea684(0x186,0x129,0x19e,_0x4774ba._0x38cb58):return this[_0x2ea684(-0x3d,-_0x4774ba._0x45aedf,-0xb2,_0x4774ba._0x4dba35)](_0x48a1d3,_0x2da1a4);}throw new Error('Unsupported\x20GitHub\x20model\x20surface:\x20'+String(this[_0x2ea684(-0x2a,_0x4774ba._0x386aed,0xc,_0x4774ba._0x3c9d1c)]));}[_0x3a2825(-0x21f,-0x22d,-0x2a6,-0x171)](_0xe6d59b,_0x27a39){const _0x3743d1={_0x5cc8f6:0x88,_0x423c17:0x86,_0x428505:0x27,_0x4a4893:0x133,_0x37629a:0xcd,_0x5486ff:0x1ca,_0x2b6e00:0x175,_0x3c6aa4:0xdc,_0x4d66f1:0xf9,_0x50036e:0x26,_0x4b1225:0x33,_0x2718e7:0x7,_0x238365:0x97,_0xbb98d5:0x125,_0x1d0208:0x182,_0x2df44b:0xe2,_0x876447:0x1f6,_0x149e4f:0x6d,_0x2764cb:0xa8,_0x383f26:0x75,_0xc02713:0x6d,_0x3defb3:0xde},_0x19635c={_0x25044f:0xb0,_0x1e3c6b:0x1ba},_0x37605e={_0x3b03aa:0x302,_0x4ccbd2:0x4};switch(this['surface']){case _0x52cc65(-_0x3743d1._0x5cc8f6,0x2f,-_0x3743d1._0x423c17,-_0x3743d1._0x428505):return this[_0x273a3f(_0x3743d1._0x4a4893,0x6e,0x12a,_0x3743d1._0x37629a)][_0x273a3f(0xa8,0xe,0x176,0xf3)](_0xe6d59b,_0x27a39);case _0x273a3f(_0x3743d1._0x5486ff,0x22f,_0x3743d1._0x2b6e00,0xfa):return this[_0x273a3f(0x78,_0x3743d1._0x3c6aa4,_0x3743d1._0x4d66f1,_0x3743d1._0x50036e)](_0xe6d59b,_0x27a39);case _0x52cc65(-_0x3743d1._0x4b1225,-0x1f,_0x3743d1._0x2718e7,0x48):return this[_0x52cc65(0x12d,0x165,_0x3743d1._0x238365,0x149)](_0xe6d59b,_0x27a39);case _0x273a3f(_0x3743d1._0xbb98d5,_0x3743d1._0x1d0208,0x174,_0x3743d1._0x2df44b):return this['responseSocketStream'](_0xe6d59b,_0x27a39);case _0x52cc65(0x102,_0x3743d1._0x876447,_0x3743d1._0x149e4f,0x11e):return this[_0x273a3f(_0x3743d1._0x2764cb,_0x3743d1._0x50036e,_0x3743d1._0x383f26,0xfd)](_0xe6d59b,_0x27a39);}function _0x52cc65(_0x2d17b1,_0x1b3461,_0x15ad5e,_0x52cba9){return _0x3a2825(_0x15ad5e,_0x52cba9-_0x37605e._0x3b03aa,_0x15ad5e-0x7f,_0x52cba9-_0x37605e._0x4ccbd2);}function _0x273a3f(_0x1bd890,_0x43debb,_0xa4ee46,_0x94103f){return _0x40b3f8(_0x1bd890-_0x19635c._0x25044f,_0x94103f,_0xa4ee46-0x4b,_0x1bd890-_0x19635c._0x1e3c6b);}throw new Error(_0x273a3f(0x1b4,0x156,0x1f2,0x223)+String(this[_0x273a3f(_0x3743d1._0xc02713,0x8c,0xab,_0x3743d1._0x3defb3)]));}async[_0x40b3f8(-0x190,-0x1f9,-0x16c,-0x147)](_0x59a77e,_0x1cd22e){const _0x3b481c={_0x3bedd8:0x10,_0x1a588c:0xb4,_0x459b5c:0xcc,_0x9c143:0x10c,_0x928f0b:0x262,_0xd1841f:0x340,_0x2cd2e6:0x53,_0x58d65e:0xaa,_0x471fc5:0x20c,_0xf6460a:0x282,_0x6cdfbd:0x213,_0x364eb8:0x403,_0x3490d3:0x2f0,_0x83f2ff:0x198,_0x5651e5:0x224},_0xe845fa={_0x54105b:0xb};function _0x896280(_0x27fcb1,_0x5efdd2,_0x3a8247,_0x514d08){return _0x3a2825(_0x5efdd2,_0x3a8247-_0xe845fa._0x54105b,_0x3a8247-0x1b8,_0x514d08-0xb);}const _0x676268=this[_0x42abf0(0x2d,0xe3,0x4e,0x3f)](_0x59a77e);function _0x42abf0(_0x34ec23,_0x320c00,_0x46ecd5,_0x32839f){return _0x3a2825(_0x32839f,_0x46ecd5-0x324,_0x46ecd5-0x1cb,_0x32839f-0xe1);}if(this[_0x42abf0(_0x3b481c._0x3bedd8,0x4b,-0x11,-_0x3b481c._0x1a588c)]!=='auto')return this[_0x42abf0(_0x3b481c._0x459b5c,0x121,0xd2,_0x3b481c._0x9c143)](_0x676268,_0x1cd22e);if(this[_0x896280(-0x274,-_0x3b481c._0x928f0b,-0x2ff,-_0x3b481c._0xd1841f)](_0x676268))return this['response'](_0x676268,_0x1cd22e);try{return await this[_0x42abf0(0x38,-0x33,_0x3b481c._0x2cd2e6,0x53)](_0x676268,_0x1cd22e);}catch(_0x190620){if(_0x190620 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x190620[_0x42abf0(0x1c4,_0x3b481c._0x58d65e,0xf8,0x1ac)]))return this[_0x896280(-_0x3b481c._0x471fc5,-_0x3b481c._0xf6460a,-_0x3b481c._0x6cdfbd,-0x1d9)](_0x676268[_0x896280(-0x351,-0x310,-0x340,-_0x3b481c._0x364eb8)]),this[_0x896280(-_0x3b481c._0x3490d3,-_0x3b481c._0x83f2ff,-_0x3b481c._0x5651e5,-0x188)](_0x676268,_0x1cd22e);throw this[_0x896280(-0x24d,-_0x3b481c._0xd1841f,-0x26a,-0x1e2)](_0x190620);}throw _0x190620;}}async*[_0x3a2825(-0x308,-0x2fa,-0x278,-0x2ed)](_0x42212a,_0x297695){const _0x2c3c26={_0x1281af:0x2d1,_0x496dce:0x1bd,_0x585dc5:0x1b9,_0x43d19c:0x55d,_0xaeaff5:0x52c,_0x27d3bf:0x5a3,_0x32aedd:0x22c,_0x274872:0x2b9,_0x144576:0x42e},_0x19f576={_0x39a80d:0x0,_0x21b6c7:0xfe},_0x3576b5=this[_0xe86e7f(-0x2d6,-_0x2c3c26._0x1281af,-0x358,-0x398)](_0x42212a);function _0xe86e7f(_0x11546b,_0x1bdf58,_0x3a31a6,_0x389fd4){return _0x3a2825(_0x3a31a6,_0x11546b-_0x19f576._0x39a80d,_0x3a31a6-0x17,_0x389fd4-_0x19f576._0x21b6c7);}function _0x44adfb(_0xd96d7e,_0x463c50,_0x349c33,_0x10df21){return _0x40b3f8(_0xd96d7e-0x72,_0x10df21,_0x349c33-0x104,_0x463c50-0x572);}if(this['surface']!==_0xe86e7f(-0x1e4,-0x27c,-0x20a,-_0x2c3c26._0x496dce)){yield*this['streamViaConfiguredSurface'](_0x3576b5,_0x297695);return;}if(this[_0x44adfb(0x45f,0x450,0x451,0x485)](_0x3576b5)){yield*this[_0xe86e7f(-_0x2c3c26._0x585dc5,-0x27a,-0x180,-0x22e)](_0x3576b5,_0x297695);return;}try{yield*this[_0x44adfb(0x4b5,_0x2c3c26._0x43d19c,_0x2c3c26._0xaeaff5,_0x2c3c26._0x27d3bf)](_0x3576b5,_0x297695);}catch(_0x44c0dd){if(_0x44c0dd instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x44c0dd[_0xe86e7f(-_0x2c3c26._0x32aedd,-0x2db,-_0x2c3c26._0x274872,-0x1fe)])){this['markModelAsResponsesOnly'](_0x3576b5['model']),yield*this['responseStream'](_0x3576b5,_0x297695);return;}throw this[_0x44adfb(0x442,0x4e5,0x420,_0x2c3c26._0x144576)](_0x44c0dd);}throw _0x44c0dd;}}async[_0x3a2825(-0x312,-0x333,-0x2d6,-0x394)](_0x3f12d6){const _0x47f59a={_0x565cd3:0x5e,_0x3de042:0xc1,_0x4010f9:0x5c,_0x50d639:0xe7,_0x1c805b:0x183,_0x11b266:0x109,_0x53d8a1:0x196,_0x1db17f:0x20d,_0x339378:0x1f4},_0x207516={_0x528778:0x2ac,_0x209163:0x1d6,_0x557316:0x26f,_0x1b0619:0x500,_0x3ed2ae:0x522,_0x3d8f05:0x59c,_0x57aebe:0x452,_0x56ae54:0x51b,_0x545bd2:0x4a3},_0x2e1a46={_0x1cfcf0:0x20a},_0x371240={_0x170bae:0x22f,_0x42c594:0x1bf};function _0x142b32(_0x270bc6,_0x50604a,_0x315e6f,_0x51bf9c){return _0x40b3f8(_0x270bc6-0x2f,_0x270bc6,_0x315e6f-0xe6,_0x315e6f-0x319);}const _0x41a669=await this[_0x4c97ae(-0x37,0xa,_0x47f59a._0x565cd3,-_0x47f59a._0x3de042)]({'path':_0x4c97ae(_0x47f59a._0x4010f9,_0x47f59a._0x50d639,_0x47f59a._0x1c805b,0x47),'method':'GET','signal':_0x3f12d6});if(!_0x41a669['ok'])throw this[_0x4c97ae(_0x47f59a._0x11b266,0x86,0xdb,0x107)](await this['toApiError'](_0x41a669));function _0x4c97ae(_0x4cad8f,_0x1d1f70,_0x2d2412,_0x1550cb){return _0x3a2825(_0x2d2412,_0x1d1f70-0x2fb,_0x2d2412-0x199,_0x1550cb-0x87);}const _0x4b0e2c=await _0x41a669['json'](),_0x17ec72=(_0x4b0e2c['data']??[])[_0x142b32(_0x47f59a._0x53d8a1,_0x47f59a._0x1db17f,0x255,_0x47f59a._0x339378)](_0x27e5cf=>{const _0x33f6b4=createModelInfo(_0x27e5cf);function _0x2a71d8(_0x295a61,_0xec7e91,_0x7173c8,_0x30480d){return _0x142b32(_0x295a61,_0xec7e91-0x14d,_0x7173c8-_0x371240._0x170bae,_0x30480d-_0x371240._0x42c594);}function _0x2f8670(_0x3d821b,_0x3541d7,_0x16962e,_0x4a4dcf){return _0x4c97ae(_0x3d821b-0x1b0,_0x16962e- -_0x2e1a46._0x1cfcf0,_0x4a4dcf,_0x4a4dcf-0x1b3);}return _0x33f6b4[_0x2f8670(-_0x207516._0x528778,-_0x207516._0x209163,-0x24c,-_0x207516._0x557316)]&&this[_0x2a71d8(_0x207516._0x1b0619,0x558,_0x207516._0x3ed2ae,0x5aa)][_0x2a71d8(_0x207516._0x3d8f05,_0x207516._0x57aebe,_0x207516._0x56ae54,_0x207516._0x545bd2)](_0x33f6b4['id'],_0x33f6b4['supportedEndpoints']),_0x33f6b4;});return deduplicateModels(_0x17ec72);}};function createHeaders(_0x5d210e){const _0x23baeb={_0x13668e:0x71},_0x30b897={_0xe67312:0x1b1};function _0x5c1a76(_0x5a50e0,_0x45e732,_0x5bc66f,_0x1c2374){return _0x40b3f8(_0x5a50e0-0xc8,_0x45e732,_0x5bc66f-0xd8,_0x1c2374-_0x30b897._0xe67312);}const _0x40286c=new Headers();for(const [_0x460972,_0xd96928]of Object[_0x5c1a76(0x83,_0x23baeb._0x13668e,0x81,0x125)](_0x5d210e)){_0x40286c['set'](_0x460972,_0xd96928);}return _0x40286c;}async function fetchRawResponse(_0x2e6c03){const _0x22bd41={_0x4ce5fc:0x28,_0x6fee9f:0x45,_0x19b6e3:0x1da,_0x518aa9:0x1b0,_0x56dee8:0x74,_0x56d11c:0x12f,_0xeadfb4:0x155,_0x147827:0x1b0,_0x9618a5:0x11d,_0x5b7090:0x139,_0x1baab2:0x1d2,_0x557845:0x25c,_0x53a644:0x1dc,_0x4d1d4d:0x14d,_0x463633:0x1fc,_0x5d342c:0x212},_0x323ff4={_0x460cc0:0x9,_0x3ba567:0x16a},_0x54a2f0={_0x1f149f:0x67,_0x269f60:0x148},_0x7c84ef=_0x2e6c03[_0x204e88(-_0x22bd41._0x4ce5fc,_0x22bd41._0x6fee9f,0x38,0x5)]??globalThis['fetch'];function _0x2df675(_0x1a5162,_0x425034,_0x528b62,_0x417618){return _0x3a2825(_0x528b62,_0x417618-0x461,_0x528b62-_0x54a2f0._0x1f149f,_0x417618-_0x54a2f0._0x269f60);}function _0x204e88(_0x347522,_0x4f8e6b,_0x22a547,_0x381d8b){return _0x40b3f8(_0x347522-0x192,_0x22a547,_0x22a547-_0x323ff4._0x460cc0,_0x381d8b-_0x323ff4._0x3ba567);}return _0x7c84ef(_0x2e6c03[_0x204e88(_0x22bd41._0x19b6e3,_0x22bd41._0x518aa9,_0x22bd41._0x56dee8,_0x22bd41._0x56d11c)],{'method':_0x2df675(_0x22bd41._0xeadfb4,0xf1,0x91,0x134),'headers':createHeaders(_0x2e6c03[_0x2df675(0x128,_0x22bd41._0x147827,_0x22bd41._0x9618a5,_0x22bd41._0x5b7090)]),'body':JSON[_0x2df675(_0x22bd41._0x1baab2,0x1e6,_0x22bd41._0x557845,0x292)](_0x2e6c03[_0x204e88(_0x22bd41._0x53a644,_0x22bd41._0x4d1d4d,0xfc,0x126)]),'signal':_0x2e6c03[_0x2df675(0x1af,_0x22bd41._0x463633,0x190,_0x22bd41._0x5d342c)]});}async function fetchJsonResponse(_0x39bf7d){const _0x4b1d60={_0x26c676:0x69,_0x1f55e9:0xa,_0x19cc19:0x9a,_0x213fb9:0xf2,_0xe5aa47:0x5d,_0x51b039:0x1e,_0x1a8321:0x147,_0x3a77d8:0x58},_0xad1298={_0xa6da9d:0xc8},_0x41cea3=await fetchRawResponse(_0x39bf7d);function _0xe129f4(_0x530d97,_0x2e57ab,_0x236c1c,_0x37a5a8){return _0x3a2825(_0x37a5a8,_0x530d97-0x6b0,_0x236c1c-0x1c6,_0x37a5a8-0x103);}function _0x2ca1f8(_0x2997f3,_0x11b2c9,_0x452cdd,_0x192cfa){return _0x40b3f8(_0x2997f3-_0xad1298._0xa6da9d,_0x11b2c9,_0x452cdd-0x1b7,_0x2997f3-0x130);}if(!_0x41cea3['ok']){const _0x1b2b79=await _0x41cea3['text'](),_0x4c6602=_0x1b2b79[_0xe129f4(0x4a6,0x402,0x4ed,0x531)]()||_0x41cea3[_0x2ca1f8(_0x4b1d60._0x26c676,0xc5,0xa9,-_0x4b1d60._0x1f55e9)]||_0x2ca1f8(0x16d,_0x4b1d60._0x19cc19,_0x4b1d60._0x213fb9,0x1dd);throw new Error('Provider\x20request\x20failed\x20with\x20status\x20'+_0x41cea3[_0x2ca1f8(_0x4b1d60._0xe5aa47,-_0x4b1d60._0x51b039,-0x70,-0xd)]+':\x20'+_0x4c6602);}return await _0x41cea3[_0x2ca1f8(0xc2,0x104,_0x4b1d60._0x1a8321,_0x4b1d60._0x3a77d8)]();}function findLastMessage(_0x498883,_0xbd439e){const _0x288f2e={_0x559aef:0x2df,_0x37536b:0x23d,_0x28cf04:0x256,_0x4da9c6:0x26d,_0x24c4fd:0x299},_0x4d8d95={_0x57e981:0x2c,_0x532969:0x159};function _0x300b35(_0x25eab7,_0x584b69,_0x301b2e,_0x3383aa){return _0x40b3f8(_0x25eab7-0x13a,_0x3383aa,_0x301b2e-0x46,_0x25eab7-0xa5);}for(let _0x17e9f2=_0x498883[_0x564ddd(0x23c,_0x288f2e._0x559aef,_0x288f2e._0x37536b,_0x288f2e._0x28cf04)]-0x1;_0x17e9f2>=0x0;_0x17e9f2-=0x1){if(_0x498883[_0x17e9f2][_0x564ddd(_0x288f2e._0x4da9c6,0x1d3,_0x288f2e._0x24c4fd,0x308)]===_0xbd439e)return _0x498883[_0x17e9f2];}function _0x564ddd(_0x2b3ba7,_0x219952,_0x14c1e0,_0x2f19c5){return _0x40b3f8(_0x2b3ba7-_0x4d8d95._0x57e981,_0x219952,_0x14c1e0-_0x4d8d95._0x532969,_0x14c1e0-0x2f6);}return void 0x0;}function hasTool(_0x1114d5,_0x393a51){const _0x520de6={_0x5b8f81:0x368,_0x34f23b:0x2b9,_0x2fe69c:0xf6,_0x54f199:0xf7,_0x5568c7:0x115,_0x251e38:0x120},_0x6c2eb0={_0x2f9a43:0x29},_0x24fb40={_0x25a0d2:0x27a};function _0x2b79fb(_0x1a7625,_0x772a4d,_0x1746a8,_0x3418f2){return _0x40b3f8(_0x1a7625-0x1a7,_0x3418f2,_0x1746a8-0x6a,_0x772a4d-_0x24fb40._0x25a0d2);}function _0x325119(_0x348308,_0xa9f644,_0x4a59b4,_0x2507e9){return _0x40b3f8(_0x348308-_0x6c2eb0._0x2f9a43,_0x2507e9,_0x4a59b4-0xa4,_0xa9f644- -0x11e);}return _0x1114d5[_0x2b79fb(_0x520de6._0x5b8f81,_0x520de6._0x34f23b,0x2e7,0x362)][_0x325119(-_0x520de6._0x2fe69c,-_0x520de6._0x54f199,-_0x520de6._0x5568c7,-_0x520de6._0x251e38)](_0x2b027e=>_0x2b027e[_0x325119(-0x25c,-0x1b8,-0x19a,-0x211)]===_0x393a51);}function createMockResponse(_0x461d41,_0x3c3665,_0x28d8dc,_0x3b773f){return{'id':_0x461d41,'content':_0x3c3665,'stopReason':_0x28d8dc,'usage':_0x3b773f};}var MockModel=class{[_0x40b3f8(-0x199,-0xd5,-0xaf,-0x163)];[_0x3a2825(-0x1ed,-0x23f,-0x191,-0x29e)];['requests']=[];[_0x40b3f8(-0x35,-0xe8,-0x2c,-0xe2)];constructor(_0x281ce5={}){const _0xb1f1dc={_0x220f4d:0x3be,_0x1f731a:0x1ba,_0x170c1e:0x232,_0xb32bf1:0x29e,_0x451a5c:0x2ad,_0x29fb1c:0x14c,_0x57b072:0xe9,_0x50d7df:0x1bf,_0x2c937d:0x1a4,_0xfc3dcd:0x4e5,_0x51d558:0x1d7,_0x3e88c9:0x15a,_0x46685f:0x1f3,_0x4bf3fa:0x494,_0x4ea112:0x3d9},_0x5761ee={_0x1abd7c:0x730,_0x5ec026:0x168};function _0x2395b4(_0x23bcea,_0x664ba6,_0x364e2d,_0x19b3b){return _0x3a2825(_0x664ba6,_0x23bcea-0xf3,_0x364e2d-0x179,_0x19b3b-0xf2);}this[_0x25e8b3(0x327,0x3e5,_0xb1f1dc._0x220f4d,0x414)]=_0x281ce5[_0x2395b4(-0x258,-_0xb1f1dc._0x1f731a,-0x1ab,-_0xb1f1dc._0x170c1e)]??_0x2395b4(-0x23e,-_0xb1f1dc._0x1f731a,-_0xb1f1dc._0xb32bf1,-_0xb1f1dc._0x451a5c);function _0x25e8b3(_0x3634aa,_0x19cf45,_0x5e3c11,_0x6dda58){return _0x3a2825(_0x6dda58,_0x19cf45-_0x5761ee._0x1abd7c,_0x5e3c11-0x151,_0x6dda58-_0x5761ee._0x5ec026);}this[_0x2395b4(-_0xb1f1dc._0x29fb1c,-0x19d,-_0xb1f1dc._0x57b072,-0x160)]=_0x281ce5[_0x2395b4(-0x14c,-_0xb1f1dc._0x50d7df,-_0xb1f1dc._0x2c937d,-0x1d2)]??0x4000,this[_0x25e8b3(0x3a4,0x466,_0xb1f1dc._0xfc3dcd,0x3d9)]=_0x281ce5[_0x2395b4(-_0xb1f1dc._0x51d558,-0x16d,-_0xb1f1dc._0x3e88c9,-_0xb1f1dc._0x46685f)]?structuredClone(_0x281ce5[_0x25e8b3(_0xb1f1dc._0x4bf3fa,0x466,0x4ac,_0xb1f1dc._0x4ea112)]):void 0x0;}async[_0x40b3f8(-0x133,-0x1bf,-0x7d,-0x147)](_0x5b04b5,_0x53bcbd){const _0x783a22={_0x21a6c0:0x3ec,_0x1ab56d:0x3ff,_0x2a50e8:0x446,_0x5093cf:0x37d,_0x5b84f9:0x37e,_0x55c9b6:0x25b,_0xc9922f:0x24c,_0x2d5a46:0x2c5,_0x2dab53:0x38d,_0x1a9e27:0x20c,_0x13cb66:0x1df,_0x55fd2e:0x45a,_0x2238e:0x44b,_0x53bc7b:0x4a1,_0x55c2e2:0x45b,_0x7cdc34:0x3c9,_0x5d68db:0x401,_0x637e4:0x4a5,_0x103e3e:0x2ac,_0x505ad6:0x208,_0x3b5f9b:0x35a,_0x36f6eb:0x273,_0x55fea0:0x2e2,_0x3d5196:0x2ba,_0x5eb6ad:0x1c1,_0x5a6b70:0x26f,_0x2973f7:0x45b,_0x1dd827:0x302,_0x58a322:0x248,_0x4c3b7f:0x2d0,_0x30f90d:0x39c,_0x16afc3:0x340,_0x5c0cba:0x3d6,_0x46e967:0x273,_0xcd68b2:0x3a3},_0xd1613={_0x49b59c:0xb9,_0x475066:0xd6},_0x730ac1={_0x3f1d49:0x80,_0x5ad95f:0x44},_0x100644={...structuredClone(_0x5b04b5),..._0x5b04b5['reasoning']===void 0x0&&this[_0x4e408f(0x367,_0x783a22._0x21a6c0,0x2bd,_0x783a22._0x1ab56d)]!==void 0x0?{'reasoning':structuredClone(this['reasoning'])}:{}};this[_0x4e408f(0x48f,_0x783a22._0x2a50e8,0x431,0x46b)]['push'](_0x100644);const _0x48fecd=findLastMessage(_0x100644['messages'],_0x4e408f(0x406,0x3aa,_0x783a22._0x5093cf,_0x783a22._0x5b84f9)),_0x466247=getToolResultBlocks(_0x48fecd);function _0x41101b(_0x3cb9ff,_0x28ae43,_0x559ff2,_0x40e305){return _0x40b3f8(_0x3cb9ff-_0x730ac1._0x3f1d49,_0x28ae43,_0x559ff2-_0x730ac1._0x5ad95f,_0x559ff2- -0x1b6);}function _0x4e408f(_0x3dc4cc,_0x182449,_0x1da54c,_0x1cb6e4){return _0x40b3f8(_0x3dc4cc-_0xd1613._0x49b59c,_0x182449,_0x1da54c-_0xd1613._0x475066,_0x3dc4cc-0x449);}const _0x197b6c=_0x41101b(-_0x783a22._0x55c9b6,-0x1d9,-_0x783a22._0xc9922f,-_0x783a22._0x2d5a46)+this['requests']['length'];if(_0x466247['length']>0x0)return createMockResponse(_0x197b6c,[{'type':_0x4e408f(0x39c,0x41a,0x470,_0x783a22._0x2dab53),'text':_0x41101b(-0x15c,-_0x783a22._0x1a9e27,-_0x783a22._0x13cb66,-0x1cd)+_0x466247[0x0]['content']}],_0x4e408f(_0x783a22._0x55fd2e,_0x783a22._0x2238e,0x4f2,_0x783a22._0x53bc7b),{'inputTokens':0x78,'outputTokens':0x28});const _0x337871=getTextFromMessage(_0x48fecd);if(/list .*files|workspace/i['test'](_0x337871)&&hasTool(_0x100644,_0x4e408f(_0x783a22._0x55c2e2,_0x783a22._0x7cdc34,_0x783a22._0x5d68db,_0x783a22._0x637e4)))return createMockResponse(_0x197b6c,[{'type':_0x41101b(-_0x783a22._0x103e3e,-_0x783a22._0x505ad6,-0x222,-0x2af),'id':_0x41101b(-_0x783a22._0x3b5f9b,-_0x783a22._0x36f6eb,-_0x783a22._0x55fea0,-_0x783a22._0x3d5196)+this['requests'][_0x41101b(-0x2f7,-_0x783a22._0x5eb6ad,-_0x783a22._0x5a6b70,-0x205)],'name':_0x4e408f(_0x783a22._0x2973f7,0x3aa,0x529,0x401),'input':{'command':_0x41101b(-0x382,-0x26f,-_0x783a22._0x1dd827,-_0x783a22._0x58a322)}}],_0x41101b(-_0x783a22._0x4c3b7f,-0x222,-0x222,-0x222),{'inputTokens':0x6e,'outputTokens':0x1c});return createMockResponse(_0x197b6c,[{'type':_0x4e408f(_0x783a22._0x30f90d,_0x783a22._0x16afc3,0x313,_0x783a22._0x5c0cba),'text':_0x41101b(-0x2cb,-0x2b5,-0x313,-_0x783a22._0x46e967)+_0x337871}],_0x4e408f(0x45a,_0x783a22._0xcd68b2,0x4a4,0x485),{'inputTokens':0x50,'outputTokens':0x12});}},FALLBACK_LIMITS={'zai':{'glm-5.1':{'contextWindow':0x30d40,'maxOutput':0x1f400},'glm-4.7':{'contextWindow':0x30d40,'maxOutput':0x1f400},'glm-4.6':{'contextWindow':0x30d40,'maxOutput':0x1f400},'glm-4.5':{'contextWindow':0x30d40,'maxOutput':0x1f400}},'openrouter':{'anthropic/claude-3.5-sonnet':{'contextWindow':0x30d40,'maxOutput':0x2000},'openai/gpt-4o':{'contextWindow':0x1f400,'maxOutput':0x4000},'openai/gpt-4.1':{'contextWindow':0x1f400,'maxOutput':0x8000}},'github':{'claude-sonnet-4.5':{'contextWindow':0x30d40,'maxOutput':0x3e80},'claude-sonnet-4':{'contextWindow':0x30d40,'maxOutput':0x3e80},'gpt-5.1-codex':{'contextWindow':0x30d40,'maxOutput':0x186a0},'gpt-5':{'contextWindow':0x30d40,'maxOutput':0x186a0},'gpt-5-mini':{'contextWindow':0x30d40,'maxOutput':0x186a0},'gpt-4.1':{'contextWindow':0x1f400,'maxOutput':0x4000},'gpt-4o':{'contextWindow':0x1f400,'maxOutput':0x4000}},'minimax':{'MiniMax-M2.1':{'contextWindow':0xf4240,'maxOutput':0x13880}},'anthropic':{'claude-sonnet-4-20250514':{'contextWindow':0x30d40,'maxOutput':0x3e80},'claude-3-5-sonnet-20241022':{'contextWindow':0x30d40,'maxOutput':0x2000}},'deepseek':{'deepseek-v4-pro':{'contextWindow':0xf4240,'maxOutput':0x5dc00},'deepseek-v4-flash':{'contextWindow':0xf4240,'maxOutput':0x5dc00}}};function getFallbackModelLimits(_0x8cee01,_0xbf4417){const _0x31a102={_0x3c527f:0x2dc,_0x5cc114:0x11d};function _0x5f50a9(_0x53e8c9,_0x57312a,_0x3ecd5b,_0x4706bc){return _0x3a2825(_0x4706bc,_0x57312a-_0x31a102._0x3c527f,_0x3ecd5b-0x13e,_0x4706bc-_0x31a102._0x5cc114);}return FALLBACK_LIMITS[_0x8cee01[_0x5f50a9(0x5e,-0x67,0x2a,0x59)]()]?.[_0xbf4417];}function normalizeModelInfo(_0xa17ec,_0x3dbb3d){const _0x4798e3={_0x47ee69:0x7f,_0x75a7cf:0xf0,_0x591701:0x267,_0x487e7a:0x17a,_0x292ddd:0x1ae,_0x1f4728:0x147,_0x396f08:0xd1,_0x5a1969:0x195,_0x100f83:0xd1,_0x341fac:0x3ca,_0x10ec7f:0x366,_0x59bfb7:0x388,_0x19f262:0x490,_0x945c68:0x50f,_0x224a0a:0x50a,_0x238015:0xe0,_0x24e8d4:0x2d,_0x501913:0x143},_0x425b3f={_0x104820:0x1c8,_0x598e63:0x1f3},_0x29067c={_0x17fdb3:0x28,_0x1420b9:0x4a,_0x1f35dc:0x114},_0x389c1c=typeof _0x3dbb3d['id']===_0x389f49(-_0x4798e3._0x47ee69,-_0x4798e3._0x75a7cf,-0x99,-0x10d)?_0x3dbb3d['id']:'';function _0x389f49(_0x202fb4,_0x1fd77b,_0x28d39e,_0x3c555a){return _0x40b3f8(_0x202fb4-_0x29067c._0x17fdb3,_0x28d39e,_0x28d39e-_0x29067c._0x1420b9,_0x3c555a- -_0x29067c._0x1f35dc);}const _0x3bbe91=typeof _0x3dbb3d[_0x389f49(-0x210,-0x215,-0x142,-0x1ae)]==='string'?_0x3dbb3d[_0x389f49(-0xd9,-_0x4798e3._0x591701,-_0x4798e3._0x487e7a,-_0x4798e3._0x292ddd)]:_0x389c1c;function _0x21ecf9(_0x387e7b,_0x276a5b,_0x22a2a1,_0x2e0008){return _0x40b3f8(_0x387e7b-_0x425b3f._0x104820,_0x22a2a1,_0x22a2a1-_0x425b3f._0x598e63,_0x387e7b-0x4ef);}const _0x10994d=normalizeModelLimits(_0xa17ec,_0x3dbb3d)??getFallbackModelLimits(_0xa17ec,_0x389c1c),_0x3893c8=Array['isArray'](_0x3dbb3d[_0x389f49(-0x6b,-0x15,-_0x4798e3._0x1f4728,-_0x4798e3._0x396f08)])?_0x3dbb3d[_0x389f49(-0x12a,-0x194,-_0x4798e3._0x5a1969,-_0x4798e3._0x100f83)][_0x389f49(-0x33,-0xe1,-0x9f,-0xf3)](_0x3fc48b=>typeof _0x3fc48b===_0x389f49(-0x169,-0x18f,-0x11f,-0x10d)):Array[_0x21ecf9(_0x4798e3._0x341fac,_0x4798e3._0x10ec7f,0x479,_0x4798e3._0x59bfb7)](_0x3dbb3d[_0x21ecf9(0x4ad,_0x4798e3._0x19f262,_0x4798e3._0x945c68,_0x4798e3._0x224a0a)])?_0x3dbb3d[_0x389f49(-_0x4798e3._0x238015,-0x1d9,-0x83,-0x156)][_0x389f49(-0x16b,-_0x4798e3._0x24e8d4,-_0x4798e3._0x501913,-0xf3)](_0x51e42f=>typeof _0x51e42f===_0x21ecf9(0x4f6,0x566,0x480,0x463)):void 0x0;return{'id':_0x389c1c,'name':_0x3bbe91,..._0x10994d?{'limits':_0x10994d}:{},..._0x3893c8?{'supportedEndpoints':_0x3893c8}:{}};}function normalizeModelLimits(_0x402d9e,_0x2acec8){const _0x2baf8d={_0x4762a5:0x11d,_0x1c71db:0x254,_0x56f1f4:0x181,_0x438f6c:0xd8,_0x149d35:0x253,_0x4e5feb:0x184,_0x4c4cee:0x117,_0x57c7b2:0x1de,_0x1405b8:0x166,_0x44f110:0x167,_0x39b327:0x2b,_0x9b4094:0xb9,_0x2e6215:0x7b,_0x3be31b:0x77,_0x26688f:0x253,_0x604b17:0x320,_0x1bc904:0x320,_0x40d7e2:0x28e,_0x12e8f1:0x2,_0x49356a:0x111,_0x48f8db:0x7b,_0x2634ab:0x118,_0x2a1369:0x220,_0x2cebe7:0x201,_0x1304d1:0x2d3,_0x464d99:0x2f6,_0x14d03b:0x168,_0xa56d19:0x238,_0x3ec347:0x1c1,_0x12e4f1:0x147,_0x44e21c:0x1ab,_0x5dfe24:0x1ed,_0x19d39b:0x1d7,_0x397945:0xce,_0x1a345a:0x222,_0x52577f:0x162,_0x50e48d:0x1c9,_0x4264d4:0xef,_0x3855ac:0x108,_0x573af9:0x10e,_0x59758b:0x20c,_0x22b740:0x120,_0x531949:0x21c,_0x4422d7:0x1b1,_0x1f5c5b:0x1ba,_0x449e7a:0x152,_0x598d66:0xbb,_0x218f92:0x65,_0x1d89c7:0x20,_0x19201f:0x208,_0x1b491a:0x22c,_0x2e2a79:0x19a,_0x5f40fb:0x1c7},_0x43e41b={_0x3207b2:0x18,_0x237c86:0x13e},_0x111a0b={_0x28236d:0x3c};if(_0x2acec8[_0x3fa265(-_0x2baf8d._0x4762a5,-0x53,-0x196,-0xe3)]&&typeof _0x2acec8[_0x512931(-0x253,-0x1a8,-0x2d3,-_0x2baf8d._0x1c71db)]===_0x3fa265(-0xef,-0xc8,-_0x2baf8d._0x56f1f4,-_0x2baf8d._0x438f6c)){const _0x273d42=_0x2acec8[_0x512931(-_0x2baf8d._0x149d35,-_0x2baf8d._0x4e5feb,-0x26c,-0x1f7)];if(typeof _0x273d42[_0x3fa265(-_0x2baf8d._0x4c4cee,-0x1dd,-0x19e,-_0x2baf8d._0x57c7b2)]==='number')return{'contextWindow':_0x273d42[_0x3fa265(-0x117,-_0x2baf8d._0x1405b8,-0x169,-_0x2baf8d._0x44f110)],...typeof _0x273d42[_0x3fa265(-_0x2baf8d._0x39b327,0x54,-0xc8,-_0x2baf8d._0x9b4094)]===_0x3fa265(-_0x2baf8d._0x2e6215,-_0x2baf8d._0x3be31b,-0x119,0x1a)?{'maxOutput':_0x273d42['maxOutput']}:{}};}if(_0x402d9e['toLowerCase']()==='github'){const _0x5c6d56=_0x2acec8['capabilities'],_0xa70628=_0x5c6d56?.[_0x512931(-_0x2baf8d._0x26688f,-_0x2baf8d._0x604b17,-_0x2baf8d._0x1bc904,-_0x2baf8d._0x40d7e2)];if(typeof _0xa70628?.[_0x512931(-0xc4,-0x71,-_0x2baf8d._0x12e8f1,-_0x2baf8d._0x49356a)]===_0x3fa265(-_0x2baf8d._0x48f8db,-_0x2baf8d._0x2634ab,-0x66,-_0x2baf8d._0x4c4cee))return{'contextWindow':_0xa70628['max_context_window_tokens'],...typeof _0xa70628[_0x512931(-_0x2baf8d._0x2a1369,-_0x2baf8d._0x2cebe7,-_0x2baf8d._0x1304d1,-_0x2baf8d._0x464d99)]===_0x3fa265(-0x7b,-0x141,-0xd2,-0xd4)?{'maxOutput':_0xa70628[_0x512931(-_0x2baf8d._0x2a1369,-_0x2baf8d._0x14d03b,-_0x2baf8d._0xa56d19,-_0x2baf8d._0x3ec347)]}:{}};}function _0x512931(_0x8a8d71,_0x394045,_0x2bd5b5,_0x5b9b0d){return _0x3a2825(_0x5b9b0d,_0x8a8d71-0xdf,_0x2bd5b5-_0x111a0b._0x28236d,_0x5b9b0d-0x1ba);}function _0x3fa265(_0x493b00,_0x434dc2,_0x3caf6e,_0xd80298){return _0x40b3f8(_0x493b00-_0x43e41b._0x3207b2,_0x434dc2,_0x3caf6e-_0x43e41b._0x237c86,_0x493b00-0x2d);}const _0x2183c4=_0x2acec8[_0x512931(-_0x2baf8d._0x12e4f1,-_0x2baf8d._0x44e21c,-_0x2baf8d._0x5dfe24,-0x162)],_0x4010f8=_0x2acec8[_0x512931(-0x181,-_0x2baf8d._0x19d39b,-_0x2baf8d._0x397945,-0xe7)],_0x26fcc6=typeof _0x2acec8[_0x512931(-0x162,-0xa4,-_0x2baf8d._0x1a345a,-0x223)]==='number'?_0x2acec8[_0x512931(-_0x2baf8d._0x52577f,-_0x2baf8d._0x50e48d,-_0x2baf8d._0x4264d4,-_0x2baf8d._0x3855ac)]:typeof _0x2183c4?.['context_length']===_0x3fa265(-_0x2baf8d._0x2e6215,-0x76,-0x70,-_0x2baf8d._0x573af9)?_0x2183c4[_0x512931(-0x162,-0x1fc,-0x221,-0x132)]:typeof _0x4010f8?.[_0x512931(-_0x2baf8d._0x52577f,-_0x2baf8d._0x59758b,-_0x2baf8d._0x22b740,-_0x2baf8d._0x531949)]===_0x512931(-_0x2baf8d._0x4422d7,-0x19d,-0x19e,-0x151)?_0x4010f8[_0x512931(-0x162,-_0x2baf8d._0x1f5c5b,-_0x2baf8d._0x449e7a,-_0x2baf8d._0x598d66)]:void 0x0;if(_0x26fcc6===void 0x0)return void 0x0;return{'contextWindow':_0x26fcc6,...typeof _0x2183c4?.[_0x3fa265(-_0x2baf8d._0x218f92,_0x2baf8d._0x1d89c7,-0x67,-0xe8)]==='number'?{'maxOutput':_0x2183c4['max_tokens']}:typeof _0x4010f8?.['max_completion_tokens']===_0x512931(-0x1b1,-_0x2baf8d._0x19201f,-_0x2baf8d._0x1b491a,-_0x2baf8d._0x2e2a79)?{'maxOutput':_0x4010f8[_0x512931(-_0x2baf8d._0x5f40fb,-0x220,-0x1c5,-0x285)]}:{}};}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,getFallbackModelLimits,iterateSseEvents,iterateWebSocketMessages,normalizeModelInfo,normalizeModelLimits,prepareProviderRequest,resolveApiCredential,resolveSessionBaseUrl,toWebSocketUrl,trimTrailingSlashes,waitForWebSocketOpen};
|
|
1
|
+
(function(_0x20b3b1,_0x3ff7fe){const _0x11dee6={_0x59a5b2:0x4d4,_0x1f6b3d:0x4a7,_0x32f60f:0x35f,_0x3f7935:0x2ce,_0x5202bd:0x59f,_0x2e20a4:0x4ae,_0x20f00d:0x480,_0xbed3ae:0x3e3,_0x543c23:0x487,_0x1214b9:0x4c4,_0x116d37:0x47c,_0x477121:0x300,_0x253c84:0x3af,_0x2b16a9:0x4d9},_0x4881c0={_0x15f4c1:0x1c0},_0x498e94={_0x55583a:0x2d6};function _0x2b7fde(_0x16c1ef,_0x5174fd,_0xf72277,_0x13fa3e){return _0x5dd8(_0x5174fd-_0x498e94._0x55583a,_0x16c1ef);}function _0x562245(_0x3d5f5a,_0xf117bb,_0x3fdf73,_0x4d13a5){return _0x5dd8(_0x3fdf73-_0x4881c0._0x15f4c1,_0xf117bb);}const _0x22f248=_0x20b3b1();while(!![]){try{const _0x2773=-parseInt(_0x562245(_0x11dee6._0x59a5b2,0x40b,0x427,_0x11dee6._0x1f6b3d))/0x1*(parseInt(_0x562245(0x355,0x280,_0x11dee6._0x32f60f,_0x11dee6._0x3f7935))/0x2)+-parseInt(_0x2b7fde(0x3c4,0x45a,0x3b6,0x3cf))/0x3*(parseInt(_0x2b7fde(_0x11dee6._0x5202bd,0x536,0x533,0x4cb))/0x4)+-parseInt(_0x2b7fde(0x62a,0x55f,0x52c,0x4d7))/0x5+-parseInt(_0x562245(0x4f1,_0x11dee6._0x2e20a4,_0x11dee6._0x20f00d,_0x11dee6._0xbed3ae))/0x6+parseInt(_0x562245(_0x11dee6._0x543c23,0x4d7,0x46a,_0x11dee6._0x1214b9))/0x7+-parseInt(_0x562245(_0x11dee6._0x116d37,_0x11dee6._0x477121,_0x11dee6._0x253c84,0x3b1))/0x8+parseInt(_0x2b7fde(0x434,_0x11dee6._0x2b16a9,0x51d,0x3f9))/0x9;if(_0x2773===_0x3ff7fe)break;else _0x22f248['push'](_0x22f248['shift']());}catch(_0x5be507){_0x22f248['push'](_0x22f248['shift']());}}}(_0x3196,0xb3ab3));import{toOpenAiResponsesRequest}from'../chunk-T7UKN6FZ.js';import{resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig}from'../chunk-NYZR4XKO.js';import{getTextFromMessage,getToolResultBlocks,normalizeContent,toChatRequest,toModelRequest,toProviderModelRequest}from'../chunk-SEP4YYY3.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';var ProviderRequestConstructionError=class extends Error{constructor(_0x426178){super(_0x426178),this['name']='ProviderRequestConstructionError';}},ProviderStreamEventError=class extends Error{[_0x55b3f6(0x2fb,0x23f,0x1c8,0x16f)];[_0x55b3f6(0x177,0x241,0x1b6,0x183)];[_0x51d0c0(0x659,0x6f7,0x61a,0x6fd)];constructor(_0x1681ee,_0x18a73d={}){const _0x418723={_0x4169d5:0xdb,_0x3b2a56:0x18e,_0x1cf54f:0x15d,_0x1ef1f0:0xaf,_0x58cd51:0x106,_0x5c9214:0x19c,_0x513645:0x3f0,_0x203af6:0x587,_0x15da67:0x483,_0x16f2f4:0x19c},_0x36857e={_0x317961:0x77,_0x4e1786:0x4c7},_0x3dc2ae={_0xea707a:0x3};function _0x5664d5(_0x54a032,_0x2b351c,_0x451ee7,_0x985d1b){return _0x51d0c0(_0x54a032-_0x3dc2ae._0xea707a,_0x2b351c-0x79,_0x985d1b- -0x113,_0x2b351c);}super(_0x1681ee),this[_0x3cd467(_0x418723._0x4169d5,0x163,0x17d,0x13d)]=_0x3cd467(0x26b,0x184,_0x418723._0x3b2a56,_0x418723._0x1cf54f);function _0x3cd467(_0x1c8482,_0x51d9c5,_0x412bc8,_0x291154){return _0x51d0c0(_0x1c8482-0x93,_0x51d9c5-_0x36857e._0x317961,_0x412bc8- -_0x36857e._0x4e1786,_0x291154);}this[_0x3cd467(_0x418723._0x1ef1f0,0x135,_0x418723._0x58cd51,0x9d)]=_0x18a73d[_0x3cd467(0x1ae,_0x418723._0x5c9214,_0x418723._0x58cd51,0x103)],this[_0x5664d5(0x556,0x548,0x4f0,0x4bc)]=_0x18a73d[_0x5664d5(_0x418723._0x513645,_0x418723._0x203af6,_0x418723._0x15da67,0x4bc)]??!![],this[_0x3cd467(0xd6,0xc2,0x153,_0x418723._0x16f2f4)]=_0x18a73d['status'];}};function isRetryableProviderStreamEventError(_0x26a411){const _0x486f01={_0x298e5a:0x537,_0x5b45a4:0x5d7,_0x27e288:0x5b2,_0x5ac3e4:0x505},_0xa97380={_0x4d06e2:0x14f,_0x39f132:0x8};function _0x14ebb8(_0xfd8346,_0xcd16a1,_0x234fa3,_0x51dacb){return _0x51d0c0(_0xfd8346-0x12d,_0xcd16a1-_0xa97380._0x4d06e2,_0xcd16a1-_0xa97380._0x39f132,_0x51dacb);}return _0x26a411 instanceof ProviderStreamEventError&&_0x26a411[_0x14ebb8(_0x486f01._0x298e5a,_0x486f01._0x5b45a4,_0x486f01._0x27e288,_0x486f01._0x5ac3e4)];}var ANTHROPIC_MESSAGES_SURFACE=_0x51d0c0(0x4ae,0x4d8,0x558,0x53f),ANTHROPIC_MESSAGES_STREAM_SURFACE=_0x55b3f6(0x2e5,0x21b,0x301,0x25e);function parseToolInput(_0x558012){const _0x2d054a={_0x2cf284:0x3ad},_0x4978c6={_0xe8a61c:0x16b};function _0x1b7084(_0x38f8e6,_0x153935,_0x3de573,_0x5a1cd9){return _0x55b3f6(_0x38f8e6-0x5f,_0x3de573-0x284,_0x38f8e6,_0x5a1cd9-_0x4978c6._0xe8a61c);}try{return JSON[_0x1b7084(_0x2d054a._0x2cf284,0x410,0x3ff,0x411)](_0x558012);}catch{return _0x558012;}}function resolveReasoningVisibility(_0x2cf5b4){const _0x245efa={_0x201e17:0x125,_0x17aef9:0x59,_0x14b983:0x50,_0x2aaad7:0x1f1,_0x331529:0x7a},_0x597052={_0x1dff2f:0xde,_0x1c6528:0x55e};function _0x991d93(_0xc50021,_0x491384,_0x27d777,_0x3ffe07){return _0x51d0c0(_0xc50021-0xf5,_0x491384-_0x597052._0x1dff2f,_0x491384- -_0x597052._0x1c6528,_0x27d777);}function _0xb2f741(_0xfab52b,_0xbe0950,_0x35056d,_0x4b5915){return _0x51d0c0(_0xfab52b-0xd,_0xbe0950-0x181,_0x35056d- -0x483,_0xbe0950);}return _0x2cf5b4[_0xb2f741(_0x245efa._0x201e17,0x102,0x5e,0x7e)]?.[_0xb2f741(_0x245efa._0x17aef9,-_0x245efa._0x14b983,0x54,0x30)]??_0xb2f741(_0x245efa._0x2aaad7,_0x245efa._0x331529,0x13e,0xa5);}function isUserVisibleThinking(_0x276be7){const _0x20f6a9={_0xfe3011:0x4a1,_0x2b4ebc:0x457,_0x4317f3:0x4ac,_0x4d0bda:0x5b1,_0x30364a:0x521,_0xefd075:0x59e,_0x28152d:0xc4},_0x4bc264={_0x555807:0x1a8,_0x432a8b:0x46d},_0x1efdcc={_0x8d6953:0x1c0,_0x6914b6:0x1ba};function _0x34bdaf(_0x19d895,_0x3be907,_0x27387d,_0x3c6422){return _0x55b3f6(_0x19d895-_0x1efdcc._0x8d6953,_0x27387d-0x2e6,_0x3c6422,_0x3c6422-_0x1efdcc._0x6914b6);}const _0x4cb25c=resolveAnthropicThinkingConfig(_0x276be7['reasoning']);function _0x3b9b2c(_0x1933a0,_0x146761,_0x6f16fe,_0x1c2d91){return _0x51d0c0(_0x1933a0-_0x4bc264._0x555807,_0x146761-0x1d,_0x1c2d91- -_0x4bc264._0x432a8b,_0x146761);}return _0x4cb25c!==void 0x0&&_0x4cb25c[_0x34bdaf(0x59c,_0x20f6a9._0xfe3011,0x4fb,_0x20f6a9._0x2b4ebc)]!==_0x34bdaf(_0x20f6a9._0x4317f3,_0x20f6a9._0x4d0bda,_0x20f6a9._0x30364a,_0x20f6a9._0xefd075)&&resolveReasoningVisibility(_0x276be7)===_0x3b9b2c(0x1ef,_0x20f6a9._0x28152d,0x7c,0x154);}function createAnthropicThinkingBody(_0x4acf96){const _0x7333cc={_0x4ab263:0x6,_0x475bb9:0xd,_0x168f0c:0x542,_0x2b0ace:0x4d6,_0x5c9c2d:0x4d9,_0x2ceeff:0x197,_0x109874:0x3f,_0xc272ff:0x9d,_0x5bd461:0x5,_0x37baf4:0x17d,_0x2b9e73:0x157,_0x46d22a:0xea,_0x5349ee:0x44d,_0x5e6527:0x4b4,_0x187f58:0x440,_0x282777:0x3c3,_0x588ea8:0xc7,_0x2ca1fb:0x63e,_0x564c9d:0x5fd},_0x2812ff={_0x4ed63e:0x173,_0x25719f:0xe2},_0x67fad3={_0x257c85:0xb6,_0x41863c:0x146},_0x3abee8=resolveAnthropicThinkingConfig(_0x4acf96[_0x423f4d(_0x7333cc._0x4ab263,0x44,_0x7333cc._0x475bb9,0x99)]);if(!_0x3abee8||_0x3abee8['type']===_0x200f51(_0x7333cc._0x168f0c,_0x7333cc._0x2b0ace,0x4e7,_0x7333cc._0x5c9c2d))return{};const _0x28e6c1=_0x3abee8[_0x423f4d(0x1bb,_0x7333cc._0x2ceeff,0x15c,0xc9)]??(isUserVisibleThinking(_0x4acf96)?'summarized':_0x423f4d(_0x7333cc._0x109874,0x23,_0x7333cc._0xc272ff,0x37));function _0x423f4d(_0x279390,_0x223fdc,_0xd1c898,_0x1de78e){return _0x55b3f6(_0x279390-_0x67fad3._0x257c85,_0xd1c898- -_0x67fad3._0x41863c,_0x1de78e,_0x1de78e-0x185);}function _0x200f51(_0x3ccbb4,_0x2f4678,_0x16feb5,_0x1d2432){return _0x51d0c0(_0x3ccbb4-0x139,_0x2f4678-_0x2812ff._0x4ed63e,_0x16feb5- -_0x2812ff._0x25719f,_0x3ccbb4);}const _0x2ec082=_0x3abee8[_0x423f4d(_0x7333cc._0x5bd461,_0x7333cc._0x37baf4,0xe0,0xa8)]?{'anthropic-beta':_0x423f4d(0x54,_0x7333cc._0x2b9e73,_0x7333cc._0x46d22a,0x4)}:void 0x0;if(_0x3abee8[_0x200f51(0x5a9,_0x7333cc._0x5349ee,0x4c1,0x416)]===_0x200f51(_0x7333cc._0x5e6527,0x474,_0x7333cc._0x187f58,_0x7333cc._0x282777))return{..._0x2ec082?{'headers':_0x2ec082}:{},'thinking':{'type':'enabled','budget_tokens':_0x3abee8[_0x423f4d(0x5b,0x5d,_0x7333cc._0x588ea8,0x152)],'display':_0x28e6c1}};return{..._0x2ec082?{'headers':_0x2ec082}:{},'thinking':{'type':'adaptive',..._0x3abee8[_0x200f51(_0x7333cc._0x2ca1fb,0x621,0x56b,0x4d2)]?{'effort':_0x3abee8[_0x200f51(0x4e1,_0x7333cc._0x564c9d,0x56b,0x4c8)]}:{},'display':_0x28e6c1}};}function toAnthropicRequestContent(_0x279f6f){const _0x40c71c={_0x6b1342:0x5a9,_0x282aa8:0x504,_0x3aaf31:0x593,_0x32139b:0x4cb,_0x585351:0x163,_0x1f74c4:0x509,_0x3bef72:0x12e,_0x565f48:0x205,_0x105d4f:0x28a,_0x332961:0x109,_0x11c591:0x293,_0x294990:0x18b,_0x7cf548:0x203,_0x2b1956:0x2d6,_0x4738b5:0x283,_0xc69fd1:0x2b0,_0x1d3f83:0x32b,_0x6a1538:0x29e,_0x2969ff:0x17b,_0x188d05:0x58e,_0x2589c5:0x49b,_0x37e986:0x2e4,_0x4f5029:0x62a,_0xffb3ec:0x60b,_0x2ce6d4:0x54a,_0x5546df:0x57d,_0x2a659b:0x587,_0x519d46:0x485,_0xd77ade:0x527},_0x538460={_0x17d249:0x40,_0x1266f4:0x113},_0x2bff38={_0x4533b4:0x51};function _0x13905a(_0x2bccbd,_0xc6a96e,_0x1a36ce,_0x4677f7){return _0x55b3f6(_0x2bccbd-_0x2bff38._0x4533b4,_0x2bccbd-0x39b,_0x1a36ce,_0x4677f7-0xab);}function _0x14fb75(_0xc69242,_0xa2d240,_0x3bdb92,_0x4e1752){return _0x55b3f6(_0xc69242-0x1b5,_0x3bdb92-_0x538460._0x17d249,_0x4e1752,_0x4e1752-_0x538460._0x1266f4);}if(_0x279f6f[_0x13905a(_0x40c71c._0x6b1342,_0x40c71c._0x282aa8,_0x40c71c._0x3aaf31,_0x40c71c._0x32139b)]===_0x14fb75(_0x40c71c._0x585351,0x295,0x238,0x1fe)&&_0x279f6f[_0x13905a(0x510,0x59f,_0x40c71c._0x1f74c4,0x52c)]?.[_0x14fb75(0x25f,0x24a,0x1c5,_0x40c71c._0x3bef72)])return structuredClone(_0x279f6f[_0x14fb75(_0x40c71c._0x565f48,_0x40c71c._0x105d4f,0x1b5,_0x40c71c._0x332961)]['anthropicAssistantContent']);const _0x171952=[];for(const _0x1b8acb of normalizeContent(_0x279f6f[_0x14fb75(_0x40c71c._0x11c591,_0x40c71c._0x294990,_0x40c71c._0x7cf548,_0x40c71c._0x2b1956)])){if(_0x1b8acb['type']===_0x14fb75(0x26d,_0x40c71c._0x4738b5,_0x40c71c._0xc69fd1,_0x40c71c._0x1d3f83))continue;if(_0x1b8acb[_0x14fb75(0x1cf,_0x40c71c._0x6a1538,0x255,_0x40c71c._0x2969ff)]==='anthropic_thinking'){_0x171952[_0x13905a(0x54a,_0x40c71c._0x188d05,_0x40c71c._0x2589c5,0x4b0)]({'type':'thinking','thinking':_0x1b8acb[_0x14fb75(0x370,0x37b,_0x40c71c._0x37e986,0x307)],'signature':_0x1b8acb['signature']});continue;}if(_0x1b8acb[_0x14fb75(0x2b5,0x1b8,0x255,0x18b)]===_0x13905a(_0x40c71c._0x4f5029,_0x40c71c._0xffb3ec,0x667,0x658)){_0x171952[_0x13905a(_0x40c71c._0x2ce6d4,_0x40c71c._0x5546df,_0x40c71c._0x2a659b,_0x40c71c._0x519d46)]({'type':_0x13905a(0x572,0x596,0x56e,_0x40c71c._0xd77ade),'data':_0x1b8acb['data']});continue;}_0x171952['push'](structuredClone(_0x1b8acb));}return _0x171952;}function createAnthropicRequest(_0x1a86b9,_0x1b2cf3){const _0x3f500e={_0x5c4f40:0x45e,_0x23a338:0x3df,_0x43c3f8:0x4b0,_0x2da962:0xcb,_0x38804a:0xdc,_0x485880:0x140,_0x3d1ec6:0x1a0,_0x1a6942:0x47,_0x3aa7a0:0xc4,_0x320339:0xb9,_0x549418:0x5a0,_0x31fa4d:0x633,_0x270ab6:0x685,_0x235d2d:0x55f,_0x24591a:0x122},_0x167840={_0x1d097f:0x379},_0x56cc28={_0x562bc4:0x11a},_0x193dce={_0x1397d1:0x38},_0x53ec36=toProviderModelRequest(_0x1a86b9),_0x4e464f=createAnthropicThinkingBody(_0x1a86b9);function _0x508429(_0x25992f,_0x336f14,_0x32cdb4,_0x45523e){return _0x51d0c0(_0x25992f-0xb,_0x336f14-_0x193dce._0x1397d1,_0x25992f- -0x92,_0x336f14);}function _0x45eba3(_0x3bffe3,_0x22fc2e,_0x3c6d99,_0x3e6c2b){return _0x55b3f6(_0x3bffe3-0x40,_0x3bffe3- -0x26d,_0x3e6c2b,_0x3e6c2b-_0x56cc28._0x562bc4);}return{'accept':_0x1b2cf3?_0x508429(_0x3f500e._0x5c4f40,_0x3f500e._0x23a338,_0x3f500e._0x43c3f8,0x53b):_0x45eba3(0x5b,-0x19,-0x25,_0x3f500e._0x2da962),'body':{..._0x53ec36,'messages':_0x1a86b9[_0x45eba3(-_0x3f500e._0x38804a,-_0x3f500e._0x485880,-_0x3f500e._0x3d1ec6,-0x1b5)][_0x45eba3(-0x5,-_0x3f500e._0x1a6942,-_0x3f500e._0x3aa7a0,-_0x3f500e._0x320339)](_0x4cb038=>{const _0x5c7dbd={_0x3fd2ae:0x37a};function _0x340feb(_0x17d002,_0x44300a,_0x14fab5,_0x3a26fe){return _0x45eba3(_0x3a26fe-_0x5c7dbd._0x3fd2ae,_0x44300a-0x64,_0x14fab5-0x33,_0x17d002);}return{'role':_0x4cb038[_0x340feb(0x350,0x266,_0x167840._0x1d097f,0x31b)],'content':toAnthropicRequestContent(_0x4cb038)};}),..._0x4e464f[_0x508429(_0x3f500e._0x549418,0x62a,_0x3f500e._0x31fa4d,_0x3f500e._0x270ab6)]?{'thinking':_0x4e464f[_0x508429(0x5a0,0x677,_0x3f500e._0x235d2d,0x5fc)]}:{},..._0x1b2cf3?{'stream':!![]}:{}},..._0x4e464f[_0x45eba3(-0xa6,-_0x3f500e._0x24591a,-0xea,-0x8a)]?{'headers':_0x4e464f['headers']}:{},'path':_0x508429(0x4f0,0x456,0x4bb,0x4a6)};}function parseAnthropicResponse(_0x518afb,_0x122660){const _0x3a6715={_0x888586:0x418,_0x109c25:0x3b1,_0x5db37a:0x4ba,_0x25f1bc:0x26b,_0x44c338:0x1c8,_0x4ee41f:0x1f1,_0x5a9347:0x3a1,_0x33dfbe:0x2f3,_0x3af7f1:0x220,_0x1379f8:0x1e1,_0x3c8dd8:0x198,_0x519fc8:0x3b6,_0x32d03a:0x373,_0x26adc0:0x26e,_0x5a12c9:0x32b,_0x164f27:0x346,_0x360475:0x37d,_0x2cff62:0x358,_0x43b384:0x20d,_0x70e0f4:0xd0,_0x550cd2:0x46b,_0x3f6ed1:0x4c3,_0xc62e80:0x1e6,_0x3bc9e4:0x218,_0x4f50ec:0x228,_0x5a8937:0x286,_0x1988c8:0x224,_0x1fcf3e:0x29e,_0x9716bf:0x1d5,_0x4d9377:0x269,_0x48b9db:0x3c4,_0xcabf8c:0x346,_0x20fb7e:0x47d,_0x5b1354:0x1d5,_0x40f0bf:0x16c,_0x37050e:0x1af,_0x5148a2:0x27d,_0x51cad1:0x2f0,_0x563953:0x39d,_0x4591f1:0x2f4,_0x258b2d:0x390,_0x365636:0x1bf,_0x73ba13:0x25c,_0x2f5c66:0x1da,_0x19f449:0x196,_0x97e861:0x3b8,_0x2ec3c0:0x2cf,_0x33847c:0x308,_0x21d7b1:0x1ce,_0x7135a4:0x2cc,_0x59c206:0x242,_0xb8222a:0x2ba,_0x703af5:0x315,_0x56c8f1:0x281,_0x55f9e4:0x390,_0x3e103a:0x315,_0x22b807:0x2ce,_0x323d8a:0x370,_0x1469e2:0x19a,_0x29efc1:0x190,_0x485e8b:0x390,_0x5cf688:0x34d,_0x375d4a:0x3da,_0x15674e:0x465,_0x604df0:0x3e8,_0x4b55f6:0x25a,_0x32fc7b:0x24a,_0x10a23b:0x1da},_0x6309d8={_0x1b1131:0x1bd},_0xa2108e={_0x8f6e3f:0x115,_0x25db78:0x174,_0x568fbc:0x175},_0x3c60aa=[],_0x487d26=_0x518afb['content']??[];let _0x531a52=![];function _0x524b69(_0x368e13,_0x459da6,_0x761e6,_0xcf9c12){return _0x55b3f6(_0x368e13-_0xa2108e._0x8f6e3f,_0x368e13-_0xa2108e._0x25db78,_0xcf9c12,_0xcf9c12-_0xa2108e._0x568fbc);}for(const _0x1a58df of _0x487d26){if(_0x1a58df['type']===_0x524b69(_0x3a6715._0x888586,_0x3a6715._0x109c25,_0x3a6715._0x5db37a,0x4e5)){_0x531a52=!![];isUserVisibleThinking(_0x122660)&&_0x3c60aa[_0x16f3a0(_0x3a6715._0x25f1bc,_0x3a6715._0x44c338,_0x3a6715._0x4ee41f,0x18d)]({'type':_0x524b69(0x383,_0x3a6715._0x5a9347,_0x3a6715._0x33dfbe,0x45a),'thinking':_0x1a58df['thinking'],'signature':_0x1a58df[_0x16f3a0(_0x3a6715._0x3af7f1,_0x3a6715._0x1379f8,0x1ed,_0x3a6715._0x3c8dd8)]});continue;}if(_0x1a58df['type']===_0x524b69(0x34b,0x293,_0x3a6715._0x519fc8,_0x3a6715._0x32d03a)){_0x531a52=!![];isUserVisibleThinking(_0x122660)&&_0x3c60aa[_0x16f3a0(0xf4,0x1c8,_0x3a6715._0x26adc0,0x281)]({'type':_0x524b69(0x403,_0x3a6715._0x5a12c9,0x351,_0x3a6715._0x164f27),'data':_0x1a58df[_0x16f3a0(_0x3a6715._0x360475,0x2f5,0x243,0x3b2)]});continue;}if(_0x1a58df[_0x524b69(0x389,0x2d4,_0x3a6715._0x2cff62,0x469)]===_0x16f3a0(0x260,0x198,0xf9,0x272)){_0x1a58df[_0x16f3a0(_0x3a6715._0x43b384,0x198,_0x3a6715._0x70e0f4,0x20c)][_0x524b69(0x413,_0x3a6715._0x550cd2,_0x3a6715._0x3f6ed1,0x4f6)]>0x0&&_0x3c60aa[_0x16f3a0(_0x3a6715._0xc62e80,_0x3a6715._0x44c338,_0x3a6715._0x3bc9e4,_0x3a6715._0x4f50ec)](structuredClone(_0x1a58df));continue;}_0x3c60aa['push'](structuredClone(_0x1a58df));}function _0x16f3a0(_0x57b8b8,_0x44ce6e,_0x356f4c,_0x4eae4f){return _0x51d0c0(_0x57b8b8-_0x6309d8._0x1b1131,_0x44ce6e-0x184,_0x44ce6e- -0x375,_0x4eae4f);}return{'id':_0x518afb['id']??_0x524b69(0x34d,_0x3a6715._0x5a8937,0x2f1,0x29e)+Date['now'](),'content':_0x3c60aa,'stopReason':_0x3c60aa[_0x16f3a0(0x2ea,_0x3a6715._0x1988c8,_0x3a6715._0x1fcf3e,0x2fa)](_0x1d606d=>_0x1d606d['type']===_0x16f3a0(0x17b,0x1d5,0x20a,0x149))?_0x16f3a0(0x281,_0x3a6715._0x9716bf,0x266,_0x3a6715._0x4d9377):_0x518afb[_0x524b69(_0x3a6715._0x48b9db,0x3bb,_0x3a6715._0xcabf8c,_0x3a6715._0x20fb7e)]===_0x16f3a0(0x2ab,_0x3a6715._0x5b1354,_0x3a6715._0x40f0bf,0x1b2)?_0x16f3a0(_0x3a6715._0x37050e,0x1d5,_0x3a6715._0x5148a2,0x1b2):_0x524b69(_0x3a6715._0x51cad1,_0x3a6715._0x563953,0x309,_0x3a6715._0x4591f1),'usage':{'inputTokens':(_0x518afb[_0x524b69(_0x3a6715._0x258b2d,0x45b,0x43d,0x431)]?.[_0x16f3a0(0x1f1,0x147,0x21f,0x1a5)]??0x0)+(_0x518afb['usage']?.[_0x16f3a0(_0x3a6715._0x365636,_0x3a6715._0x73ba13,_0x3a6715._0x2f5c66,_0x3a6715._0x19f449)]??0x0)+(_0x518afb[_0x524b69(0x390,_0x3a6715._0x97e861,0x419,0x433)]?.['cache_creation_input_tokens']??0x0),'outputTokens':_0x518afb[_0x524b69(_0x3a6715._0x258b2d,_0x3a6715._0x2ec3c0,_0x3a6715._0x33847c,0x2b5)]?.[_0x16f3a0(0x14d,_0x3a6715._0x21d7b1,0x221,0x181)]??0x0,..._0x518afb[_0x16f3a0(0x305,0x235,_0x3a6715._0x7135a4,_0x3a6715._0x59c206)]?.[_0x16f3a0(_0x3a6715._0xb8222a,0x25c,_0x3a6715._0x703af5,_0x3a6715._0x56c8f1)]?{'cacheReadInputTokens':_0x518afb[_0x524b69(_0x3a6715._0x55f9e4,_0x3a6715._0x3e103a,_0x3a6715._0x22b807,_0x3a6715._0x323d8a)][_0x16f3a0(0x1f0,0x25c,_0x3a6715._0x1469e2,_0x3a6715._0x29efc1)]}:{},..._0x518afb[_0x524b69(_0x3a6715._0x485e8b,0x31b,_0x3a6715._0x5cf688,_0x3a6715._0x375d4a)]?.['cache_creation_input_tokens']?{'cacheCreationInputTokens':_0x518afb[_0x524b69(0x390,_0x3a6715._0x15674e,_0x3a6715._0x604df0,0x37e)][_0x16f3a0(_0x3a6715._0x4b55f6,_0x3a6715._0x32fc7b,_0x3a6715._0x10a23b,_0x3a6715._0x4ee41f)]}:{}},..._0x531a52?{'providerState':{'anthropicAssistantContent':structuredClone(_0x487d26)}}:{}};}var AnthropicMessagesStreamParser=class{[_0x51d0c0(0x5ae,0x62c,0x5ee,0x580)]=new Map();[_0x55b3f6(0x146,0x210,0x164,0x2e6)]=0x0;[_0x51d0c0(0x68d,0x664,0x5da,0x607)]=0x0;['inputTokens']=0x0;['messageId']=_0x55b3f6(0x1f0,0x1d9,0x154,0x1c9)+Date[_0x55b3f6(0x2ee,0x29d,0x2ec,0x1f6)]();[_0x51d0c0(0x457,0x5f0,0x51c,0x532)]=0x0;[_0x55b3f6(0x5b,0x12c,0x8c,0x1b1)];[_0x55b3f6(0x2bf,0x2d9,0x22f,0x313)]=_0x55b3f6(0x1ec,0x17c,0x14e,0x18e);constructor(_0x12f71){const _0x1da044={_0x271780:0x1cd,_0x21c77b:0x1a2},_0x476073={_0x55f8aa:0x319};function _0x4c5f53(_0x45419a,_0x88d351,_0x1ea94c,_0x4144a2){return _0x55b3f6(_0x45419a-0x1e4,_0x4144a2- -_0x476073._0x55f8aa,_0x88d351,_0x4144a2-0xcf);}this[_0x4c5f53(-0x1e4,-_0x1da044._0x271780,-_0x1da044._0x21c77b,-0x1ed)]=_0x12f71;}['consumeSseEvent'](_0x33dd34){const _0x154d0c={_0x384611:0x4c3,_0x5533c6:0x333,_0x3f0030:0x3e8,_0x4ace87:0x3af,_0x11fc65:0x3ba,_0x2a31af:0x35d,_0xa2713d:0x2ca,_0x4dcc54:0x339,_0x2e2dbc:0x2e6,_0x318188:0x252,_0x2f5490:0x3a8,_0x45a3f4:0x30a,_0x103ebd:0x3c7,_0x1334fb:0x2f7,_0x7682bd:0x34a,_0x5948bd:0x3fe,_0x103f4b:0x390,_0x4df3a7:0x25f,_0x1d6ef0:0x319,_0x2272c6:0x236,_0x337e04:0x28e,_0x3a7ce2:0x28c,_0x322c8f:0x1fb,_0x85cf0b:0x455,_0x151141:0x40e,_0x28751c:0x325,_0x1c1d4a:0x300,_0x32fd75:0x273,_0x2142e3:0x2c4,_0x4a67b4:0x2eb,_0x253da0:0x2ef,_0x2e96c1:0x258,_0x147f1a:0x327,_0x396135:0x409,_0x50a38c:0x398,_0x504aa6:0x43a,_0x3d6a9a:0x3ab,_0x17ca65:0x31e,_0x411ec2:0x32a,_0x72d148:0x29b,_0x2ac9a2:0x27d,_0x1ac9cb:0x2c3,_0x5d6965:0x237,_0x390a05:0x2dc,_0x4dbca7:0x2cc,_0x127276:0x2a0,_0x18b9b0:0x3b0,_0x27a179:0x1fb,_0x662141:0x2a3,_0x396a1e:0x30f,_0x57bb34:0x25b,_0xb8919c:0x316,_0x49984f:0x21c,_0x5b1b51:0x39a,_0x3b6929:0x37b,_0x33e808:0x2f9,_0x2288d0:0x2e2,_0x2b8907:0x401,_0x44016e:0x388,_0x2b380f:0x342,_0x51e118:0x2f1,_0x2d80a0:0x278,_0x4de23b:0x3a5,_0x4fa21c:0x43c,_0x4cc4f1:0x336,_0x4a4a5d:0x41c,_0x16dcfc:0x337,_0x31676f:0x2de,_0x270711:0x3a1,_0x4744d0:0x355,_0x193430:0x3a9,_0x3c3023:0x2de,_0x5bc9db:0x2f6,_0x28c329:0x200,_0x579b99:0x2e8,_0x8468d6:0x2bb,_0x5023c3:0x2fa,_0x241789:0x295,_0x49a306:0x3a1,_0x1ebba0:0x51f,_0x36b605:0x45c,_0x13e8f5:0x43b,_0x332ff0:0x35b,_0x15f4a8:0x2bd,_0x28125e:0x1fe,_0x2b9097:0x263,_0xe9bb87:0x205,_0x554064:0x21d,_0x1fdcf3:0x2d9,_0x53050a:0x2c3,_0x110d88:0x3f1,_0x3a6894:0x4a2,_0x24b025:0x35c,_0x50b7f3:0x3fa,_0x3a39b6:0x335,_0x423ceb:0x292,_0xc2d007:0x2b8,_0x2d4e19:0x3c1,_0x1aea9b:0x364,_0x26656d:0x333,_0x551cab:0x26d,_0x5b99e7:0x2de,_0x5185da:0x3c1,_0x5558ca:0x241,_0x47a4fc:0x441,_0x486056:0x3e6,_0x39fc3a:0x3e7,_0x105d1e:0x3dc,_0x809152:0x39d,_0x4d4d11:0x386,_0x142ce8:0x384,_0x4da6d4:0x351,_0x47cd2b:0x280,_0x3cc11d:0x20a,_0x594139:0x3b6,_0x28c603:0x3e2,_0x27ae2f:0x294,_0x1e95e1:0x218,_0x2b89b6:0x365,_0x1bef92:0x2fc,_0x5b69b8:0x438,_0x14183c:0x40a,_0x5cdc50:0x366,_0x292bec:0x361,_0x24442a:0x471,_0x15f19b:0x403,_0x54547e:0x3e5,_0x53d9d1:0x388,_0x2fc272:0x28b,_0x572098:0x460,_0x182072:0x361,_0xe9c062:0x3be,_0x525309:0x469,_0x3bb8ee:0x303,_0x1dc133:0x327,_0x153319:0x2ec,_0x171632:0x3eb,_0x4d914d:0x233,_0x3b9e68:0x357,_0x2b265e:0x41c,_0x5206fd:0x316,_0xe6eaa5:0x309,_0x24f91e:0x22e,_0x3e6d09:0x35a,_0x5ac624:0x28d,_0x4a96c0:0x464,_0x5b2d8c:0x3ab,_0x5687cf:0x259,_0x33b2b5:0x265,_0x309f36:0x32d,_0x4a124a:0x3e9,_0x52ffbf:0x2f4,_0x26cbc5:0x300,_0x368e3b:0x338,_0x18edea:0x3ae,_0x3e9ed8:0x259,_0x4312a6:0x272,_0x549166:0x207,_0x45a55f:0x292,_0x566c87:0x299,_0x5d190f:0x2ed,_0x32b0dc:0x359,_0x2e3eca:0x369,_0x5b5acd:0x3af,_0x102d74:0x2ae,_0x36f5d9:0x346,_0x3b91f4:0x304,_0x4e65ed:0x25d,_0x3c173c:0x316,_0x534da2:0x304,_0x5757fb:0x375,_0x1c030c:0x44e,_0xcce04b:0x27e,_0x625d74:0x29b,_0x403e76:0x349,_0x2bb6f0:0x35c,_0x3ee660:0x374},_0x5b2190={_0x54a311:0x3e,_0x43718a:0x1d,_0x1272b4:0x2aa},_0x2358be={_0x3103b8:0x104,_0xd671b:0x1b1},_0x3c214c=_0x33dd34[_0x4279cb(_0x154d0c._0x384611,0x3e2,_0x154d0c._0x5533c6,_0x154d0c._0x3f0030)]('\x0a'),_0x10b399=_0x3c214c[_0x59ab65(0x327,_0x154d0c._0x4ace87,0x2fd,0x338)](_0x4e3d81=>_0x4e3d81['startsWith'](_0x59ab65(0x2d0,0x1ff,0x12e,0x1d6)))?.[_0x59ab65(0x2f8,0x2c0,0x382,0x3a4)](0x6)[_0x4279cb(_0x154d0c._0x11fc65,_0x154d0c._0x2a31af,_0x154d0c._0xa2713d,_0x154d0c._0x4dcc54)](),_0x3c46f8=_0x3c214c[_0x59ab65(_0x154d0c._0x2e2dbc,_0x154d0c._0x318188,0x1db,0x1ba)](_0x454848=>_0x454848['startsWith']('data:'))[_0x4279cb(0x364,_0x154d0c._0x2f5490,_0x154d0c._0x45a3f4,_0x154d0c._0x103ebd)](_0x187f85=>_0x187f85[_0x4279cb(0x2d5,0x41c,0x2d2,0x33b)](0x5)[_0x4279cb(0x45d,0x420,0x3e2,0x410)]())[_0x4279cb(0x2c5,_0x154d0c._0x1334fb,0x3ff,_0x154d0c._0x7682bd)]('\x0a')[_0x4279cb(0x3f9,0x3d6,0x317,0x339)]();if(_0x3c46f8[_0x4279cb(0x4c6,0x3f1,0x34b,_0x154d0c._0x5948bd)]===0x0||_0x3c46f8===_0x4279cb(0x2f9,_0x154d0c._0x103f4b,0x405,0x380))return[];function _0x4279cb(_0x294526,_0x24c84a,_0x17cdcf,_0x1373a6){return _0x51d0c0(_0x294526-_0x2358be._0x3103b8,_0x24c84a-_0x2358be._0xd671b,_0x1373a6- -0x22f,_0x24c84a);}function _0x59ab65(_0x15f014,_0xcd6d0f,_0x2a1789,_0x101191){return _0x51d0c0(_0x15f014-_0x5b2190._0x54a311,_0xcd6d0f-_0x5b2190._0x43718a,_0xcd6d0f- -_0x5b2190._0x1272b4,_0x2a1789);}const _0x38035f=JSON[_0x59ab65(0x1a0,_0x154d0c._0x4df3a7,_0x154d0c._0x1d6ef0,_0x154d0c._0x2272c6)](_0x3c46f8);switch(_0x10b399){case _0x59ab65(0x238,_0x154d0c._0x337e04,_0x154d0c._0x3a7ce2,_0x154d0c._0x322c8f):{const _0x49d0b9=_0x38035f[_0x4279cb(0x447,0x4e3,_0x154d0c._0x85cf0b,_0x154d0c._0x151141)];this['messageId']=_0x49d0b9?.['id']??this['messageId'],this['inputTokens']=_0x49d0b9?.[_0x59ab65(_0x154d0c._0x28751c,_0x154d0c._0x1c1d4a,0x2e8,_0x154d0c._0x32fd75)]?.['input_tokens']??this['inputTokens'],this[_0x59ab65(_0x154d0c._0x2142e3,0x330,_0x154d0c._0x4a67b4,0x336)]=_0x49d0b9?.[_0x59ab65(_0x154d0c._0x253da0,0x300,_0x154d0c._0x2e96c1,0x35c)]?.[_0x59ab65(0x3ea,_0x154d0c._0x147f1a,0x37d,_0x154d0c._0x396135)]??this[_0x4279cb(_0x154d0c._0x50a38c,0x423,_0x154d0c._0x504aa6,_0x154d0c._0x3d6a9a)],this[_0x59ab65(0x344,0x2f4,0x3c6,0x36b)]=_0x49d0b9?.[_0x59ab65(_0x154d0c._0x17ca65,0x300,_0x154d0c._0x411ec2,0x309)]?.['cache_creation_input_tokens']??this['cacheCreationInputTokens'];break;}case _0x59ab65(0x2b5,0x33b,0x2aa,_0x154d0c._0x72d148):{const _0x436dfe=typeof _0x38035f['index']===_0x59ab65(0x326,0x2bf,_0x154d0c._0x2ac9a2,0x38a)?_0x38035f[_0x4279cb(0x316,0x28a,0x2f4,_0x154d0c._0x1ac9cb)]:0x0,_0x46dc90=_0x38035f[_0x4279cb(0x2f0,_0x154d0c._0x5d6965,_0x154d0c._0x390a05,_0x154d0c._0x4dbca7)];if(_0x46dc90?.['type']===_0x4279cb(0x2e1,_0x154d0c._0x127276,0x372,0x31b)&&_0x46dc90['id']&&_0x46dc90[_0x4279cb(_0x154d0c._0x18b9b0,0x4d2,0x343,0x415)])return this['blocks'][_0x59ab65(_0x154d0c._0x27a179,0x26d,_0x154d0c._0x662141,_0x154d0c._0x396a1e)](_0x436dfe,{'id':_0x46dc90['id'],'index':_0x436dfe,'inputJson':JSON[_0x4279cb(0x23e,_0x154d0c._0x57bb34,0x2dc,0x2d9)](_0x46dc90['input']??{}),'kind':_0x59ab65(_0x154d0c._0xb8919c,0x2a0,_0x154d0c._0x49984f,0x341),'name':_0x46dc90[_0x59ab65(0x422,_0x154d0c._0x5b1b51,0x30f,_0x154d0c._0x3b6929)]}),[{'type':_0x59ab65(0x331,0x33a,_0x154d0c._0x318188,0x28f),'id':_0x46dc90['id'],'index':_0x436dfe,'name':_0x46dc90['name']}];if(_0x46dc90?.[_0x59ab65(0x34b,_0x154d0c._0x33e808,0x2f7,_0x154d0c._0x2288d0)]===_0x59ab65(_0x154d0c._0x2b8907,_0x154d0c._0x44016e,_0x154d0c._0x2b380f,0x358)){this[_0x59ab65(0x398,0x344,0x2f7,_0x154d0c._0x51e118)][_0x59ab65(0x340,0x26d,_0x154d0c._0x2d80a0,0x1b9)](_0x436dfe,{'index':_0x436dfe,'kind':_0x4279cb(_0x154d0c._0x4de23b,0x35f,0x335,0x403),'signature':typeof _0x46dc90['signature']===_0x4279cb(_0x154d0c._0x4fa21c,0x467,_0x154d0c._0x4cc4f1,_0x154d0c._0x4a4a5d)?_0x46dc90['signature']:'','thinking':typeof _0x46dc90[_0x4279cb(0x204,0x2fe,_0x154d0c._0x16dcfc,_0x154d0c._0x31676f)]===_0x59ab65(0x485,_0x154d0c._0x270711,_0x154d0c._0x4744d0,0x469)?_0x46dc90[_0x4279cb(0x2ce,0x353,_0x154d0c._0x193430,_0x154d0c._0x3c3023)]:typeof _0x46dc90['thinking']==='string'?String(_0x46dc90['thinking']):''});break;}if(_0x46dc90?.['type']===_0x4279cb(_0x154d0c._0x5bc9db,_0x154d0c._0x17ca65,0x3ee,0x336)){this['blocks'][_0x4279cb(0x2d3,_0x154d0c._0x28c329,0x29a,_0x154d0c._0x579b99)](_0x436dfe,{'index':_0x436dfe,'kind':_0x59ab65(0x3a2,_0x154d0c._0x8468d6,_0x154d0c._0x5023c3,_0x154d0c._0x241789),'data':typeof _0x46dc90[_0x59ab65(0x42e,0x3c0,0x470,0x37c)]===_0x59ab65(_0x154d0c._0x4dbca7,_0x154d0c._0x49a306,0x39a,0x313)?String(_0x46dc90[_0x4279cb(_0x154d0c._0x1ebba0,_0x154d0c._0x36b605,0x41b,_0x154d0c._0x13e8f5)]):''});break;}this[_0x59ab65(0x293,0x344,_0x154d0c._0x332ff0,0x3cb)][_0x4279cb(0x3c1,0x2ca,0x22e,_0x154d0c._0x579b99)](_0x436dfe,{'index':_0x436dfe,'kind':_0x4279cb(_0x154d0c._0x15f4a8,_0x154d0c._0x28125e,0x313,0x2de),'text':_0x46dc90?.[_0x59ab65(0x2c6,_0x154d0c._0x2b9097,0x1f8,0x1dc)]??''});break;}case'content_block_delta':{const _0x3bd72c=typeof _0x38035f[_0x4279cb(0x386,0x33b,_0x154d0c._0xe9bb87,0x2c3)]==='number'?_0x38035f[_0x4279cb(_0x154d0c._0x554064,_0x154d0c._0x1fdcf3,0x2af,_0x154d0c._0x53050a)]:0x0,_0x5ca638=this[_0x4279cb(_0x154d0c._0x110d88,_0x154d0c._0x3a6894,0x3da,0x3bf)][_0x4279cb(_0x154d0c._0x24b025,_0x154d0c._0x50b7f3,0x26a,_0x154d0c._0x3a39b6)](_0x3bd72c),_0x15d768=_0x38035f['delta'];if(!_0x5ca638||!_0x15d768?.[_0x59ab65(0x343,0x2f9,0x29f,0x358)])break;if(_0x15d768[_0x59ab65(_0x154d0c._0x423ceb,0x2f9,0x23b,_0x154d0c._0xc2d007)]===_0x59ab65(_0x154d0c._0x2d4e19,0x3bc,_0x154d0c._0x1aea9b,0x445)&&_0x5ca638['kind']==='text'&&typeof _0x15d768['text']===_0x4279cb(0x460,0x4bb,0x366,0x41c))return _0x5ca638[_0x4279cb(0x20d,_0x154d0c._0x26656d,_0x154d0c._0x551cab,_0x154d0c._0x5b99e7)]+=_0x15d768['text'],[{'type':_0x59ab65(_0x154d0c._0x32fd75,0x24c,0x2db,0x2b0),'index':_0x3bd72c,'text':_0x15d768[_0x4279cb(_0x154d0c._0x5185da,_0x154d0c._0x5558ca,_0x154d0c._0x4ace87,_0x154d0c._0x5b99e7)]}];if(_0x15d768[_0x4279cb(_0x154d0c._0x47a4fc,0x39b,_0x154d0c._0x486056,0x374)]===_0x4279cb(_0x154d0c._0x39fc3a,_0x154d0c._0x105d1e,0x437,_0x154d0c._0x105d1e)&&_0x5ca638[_0x59ab65(_0x154d0c._0x809152,0x31d,_0x154d0c._0x4d4d11,0x236)]==='tool_use'&&typeof _0x15d768[_0x4279cb(0x3dd,0x274,_0x154d0c._0x142ce8,0x30f)]==='string')return _0x5ca638[_0x59ab65(_0x154d0c._0x4da6d4,_0x154d0c._0x47cd2b,_0x154d0c._0x3cc11d,0x248)]==='{}'&&(_0x5ca638[_0x4279cb(0x373,_0x154d0c._0x594139,_0x154d0c._0x28c603,0x2fb)]=''),_0x5ca638['inputJson']+=_0x15d768[_0x59ab65(0x24b,_0x154d0c._0x27ae2f,_0x154d0c._0x1e95e1,0x27f)],[{'type':'tool_use_delta','id':_0x5ca638['id'],'index':_0x3bd72c,'inputDelta':_0x15d768[_0x4279cb(0x239,0x311,_0x154d0c._0x2b89b6,0x30f)]}];if(_0x15d768[_0x4279cb(_0x154d0c._0x1bef92,_0x154d0c._0x5b69b8,_0x154d0c._0x14183c,0x374)]==='thinking_delta'&&_0x5ca638['kind']===_0x59ab65(_0x154d0c._0x5cdc50,_0x154d0c._0x44016e,_0x154d0c._0x292bec,0x2e7)){const _0x430991=typeof _0x15d768[_0x4279cb(0x495,0x4ba,_0x154d0c._0x24442a,_0x154d0c._0x15f19b)]==='string'?String(_0x15d768[_0x59ab65(_0x154d0c._0x54547e,_0x154d0c._0x53d9d1,0x3b9,0x2a7)]):'';if(_0x430991['length']>0x0){_0x5ca638[_0x59ab65(0x39d,0x388,0x341,0x3c0)]+=_0x430991;if(isUserVisibleThinking(this[_0x4279cb(_0x154d0c._0x579b99,0x326,_0x154d0c._0x28125e,_0x154d0c._0x2fc272)]))return[{'type':_0x59ab65(_0x154d0c._0x572098,0x37f,_0x154d0c._0x182072,0x448),'index':_0x3bd72c,'thinking':_0x430991}];}}if(_0x15d768[_0x59ab65(0x30a,_0x154d0c._0x33e808,0x288,0x219)]===_0x4279cb(0x3d3,0x344,0x278,0x325)&&_0x5ca638['kind']==='thinking'){const _0x31d69b=typeof _0x15d768['signature']===_0x4279cb(_0x154d0c._0xe9c062,_0x154d0c._0x525309,0x39d,0x41c)?String(_0x15d768[_0x4279cb(0x25b,0x35e,_0x154d0c._0x3bb8ee,_0x154d0c._0x1dc133)]):'';if(_0x31d69b[_0x4279cb(0x48f,0x4a8,0x4b9,_0x154d0c._0x5948bd)]>0x0){_0x5ca638[_0x4279cb(_0x154d0c._0x153319,_0x154d0c._0x171632,0x3b6,0x327)]=_0x31d69b;if(isUserVisibleThinking(this[_0x4279cb(0x23c,0x318,_0x154d0c._0x4d914d,0x28b)]))return[{'type':_0x4279cb(_0x154d0c._0x3b9e68,_0x154d0c._0x2b265e,0x478,0x3ed),'index':_0x3bd72c,'signature':_0x31d69b}];}}break;}case _0x59ab65(0x364,0x37a,_0x154d0c._0x5206fd,0x2d5):{const _0x366150=_0x38035f[_0x59ab65(_0x154d0c._0xe6eaa5,_0x154d0c._0x5bc9db,0x32d,0x2cc)],_0x444f07=_0x38035f[_0x59ab65(0x3ce,0x300,_0x154d0c._0x24f91e,_0x154d0c._0x105d1e)];this['inputTokens']=_0x444f07?.[_0x4279cb(0x282,0x302,_0x154d0c._0x3e6d09,_0x154d0c._0x5ac624)]??this['inputTokens'],this[_0x4279cb(_0x154d0c._0x4a96c0,0x389,0x326,_0x154d0c._0x5b2d8c)]=_0x444f07?.[_0x59ab65(0x2fb,_0x154d0c._0x1dc133,_0x154d0c._0x5687cf,0x333)]??this[_0x59ab65(_0x154d0c._0x33b2b5,0x330,_0x154d0c._0x309f36,_0x154d0c._0x4a124a)],this[_0x59ab65(0x3c6,_0x154d0c._0x52ffbf,_0x154d0c._0x26cbc5,0x2eb)]=_0x444f07?.['cache_creation_input_tokens']??this[_0x59ab65(_0x154d0c._0x368e3b,0x2f4,_0x154d0c._0x18edea,_0x154d0c._0x2b9097)],this[_0x59ab65(_0x154d0c._0x3e9ed8,_0x154d0c._0x4312a6,_0x154d0c._0x549166,_0x154d0c._0x45a55f)]=_0x444f07?.[_0x59ab65(0x325,_0x154d0c._0x566c87,_0x154d0c._0x2fc272,0x28c)]??this[_0x4279cb(_0x154d0c._0x53d9d1,0x318,0x328,_0x154d0c._0x5d190f)],this[_0x4279cb(_0x154d0c._0x32b0dc,0x3cb,0x481,0x438)]=_0x366150?.[_0x4279cb(0x47f,0x40d,_0x154d0c._0x2e3eca,_0x154d0c._0x5b5acd)]==='tool_use'?_0x59ab65(_0x154d0c._0x102d74,0x2a0,0x238,0x32f):_0x4279cb(_0x154d0c._0x36f5d9,0x313,0x2e2,0x2db);break;}case _0x59ab65(0x294,_0x154d0c._0x3b91f4,_0x154d0c._0x4e65ed,0x3ec):{const _0x14f35e=_0x38035f[_0x59ab65(_0x154d0c._0x3c173c,_0x154d0c._0x534da2,0x30c,_0x154d0c._0x5757fb)];throw new ProviderStreamEventError(_0x14f35e?.[_0x59ab65(0x310,0x393,_0x154d0c._0x1c030c,0x424)]??_0x59ab65(0x201,_0x154d0c._0xcce04b,_0x154d0c._0x625d74,0x26e),{'code':_0x14f35e?.[_0x4279cb(_0x154d0c._0x403e76,_0x154d0c._0x396a1e,_0x154d0c._0x2bb6f0,_0x154d0c._0x3ee660)],'retryable':!![]});}}return[];}[_0x55b3f6(0x27a,0x2e1,0x3bf,0x25e)](){const _0x60726b={_0x31712d:0x475,_0x4bf486:0x494,_0xc29f28:0x49d,_0x3129a3:0x467,_0x1d6f7d:0x4e9,_0x45713d:0x46d,_0x51b984:0x355,_0x37e909:0x3cf,_0x41c4e1:0x3e3,_0xcb1a3a:0x356,_0x413b56:0x135,_0x429f1f:0xd8,_0x575d60:0x4b6,_0x1fe1d1:0x390,_0x3232c3:0x556,_0xcd188e:0x4d8,_0x3f98eb:0x4a3,_0x1b3c4b:0x285,_0x5cc5e1:0x209,_0x5d3d3a:0x1fd,_0x54614b:0x1c4,_0x20dfc0:0x121,_0x27bfd6:0x5e,_0x39c096:0x469,_0x11901e:0x47d,_0x176599:0x36e,_0xb282d9:0x3df,_0x30c4e3:0x108,_0x56cb1b:0x8e,_0x181e38:0x156,_0x17a4ff:0x115,_0x16bdf2:0x20f,_0x3b0809:0xdf,_0x3651fc:0x142,_0x4c5d9c:0x480,_0x248bbd:0x4d3,_0x3f43bb:0x14e,_0x548527:0x150,_0x410315:0x7a,_0x45e2b0:0x86,_0x478fe9:0x1e6,_0x5d826e:0x208,_0x2f5ae9:0x503,_0x19aded:0x489,_0x1b8b11:0x512,_0x5ebb9a:0x444,_0x41a875:0x37d},_0x5c04b2={_0x3f608b:0x11a,_0x42fb8f:0x435};function _0x13e1d9(_0x51334c,_0x257443,_0xf0793b,_0xef63cb){return _0x51d0c0(_0x51334c-0x149,_0x257443-_0x5c04b2._0x3f608b,_0xf0793b- -_0x5c04b2._0x42fb8f,_0x257443);}const _0x27d8ae=Array['from'](this[_0x317160(0x3c0,_0x60726b._0x31712d,_0x60726b._0x4bf486,0x4f1)]['values']())[_0x317160(0x3fc,0x452,0x4cd,_0x60726b._0xc29f28)]((_0x2783b8,_0x4f0c0b)=>_0x2783b8[_0x13e1d9(0x9,-0x15,0xbd,0x18e)]-_0x4f0c0b[_0x317160(0x440,0x3e7,0x398,0x42e)]);function _0x317160(_0x5ed345,_0x225b16,_0x1855ce,_0x67736e){return _0x55b3f6(_0x5ed345-0x3a,_0x1855ce-0x234,_0x225b16,_0x67736e-0x166);}const _0x3f0262=[];for(const _0x4819a8 of _0x27d8ae){if(_0x4819a8[_0x317160(_0x60726b._0x3129a3,_0x60726b._0x1d6f7d,_0x60726b._0x45713d,0x4ac)]===_0x317160(_0x60726b._0x51b984,0x3f0,0x3b3,_0x60726b._0x37e909)){_0x4819a8['text']['length']>0x0&&_0x3f0262[_0x317160(0x47e,0x391,_0x60726b._0x41c4e1,_0x60726b._0xcb1a3a)]({'type':'text','text':_0x4819a8[_0x13e1d9(0x1a7,_0x60726b._0x413b56,_0x60726b._0x429f1f,0x12d)]});continue;}if(_0x4819a8[_0x317160(_0x60726b._0x575d60,_0x60726b._0x1fe1d1,0x46d,0x44d)]===_0x317160(0x5af,_0x60726b._0x3232c3,_0x60726b._0xcd188e,_0x60726b._0x3f98eb)){_0x3f0262[_0x13e1d9(0x8d,0xc5,0x108,0x182)]({'type':_0x13e1d9(_0x60726b._0x1b3c4b,_0x60726b._0x5cc5e1,_0x60726b._0x5d3d3a,0x168),'thinking':_0x4819a8[_0x13e1d9(0x2e1,_0x60726b._0x54614b,0x1fd,0x17c)],'signature':_0x4819a8[_0x13e1d9(0x188,0x180,_0x60726b._0x20dfc0,_0x60726b._0x27bfd6)]});continue;}if(_0x4819a8[_0x317160(0x4f7,_0x60726b._0x39c096,_0x60726b._0x45713d,0x48e)]===_0x317160(0x460,_0x60726b._0x11901e,0x40b,0x363)){_0x3f0262['push']({'type':_0x317160(_0x60726b._0x176599,_0x60726b._0xb282d9,0x40b,0x3c4),'data':_0x4819a8['data']});continue;}_0x3f0262[_0x13e1d9(_0x60726b._0x27bfd6,_0x60726b._0x54614b,_0x60726b._0x30c4e3,_0x60726b._0x56cb1b)]({'type':_0x13e1d9(_0x60726b._0x181e38,0x7b,_0x60726b._0x17a4ff,0x1a0),'id':_0x4819a8['id'],'name':_0x4819a8[_0x13e1d9(0x2d7,0x178,_0x60726b._0x16bdf2,0x26d)],'input':parseToolInput(_0x4819a8[_0x13e1d9(_0x60726b._0x3b0809,_0x60726b._0x3651fc,0xf5,0x1d5)][_0x317160(_0x60726b._0x4c5d9c,0x554,_0x60726b._0x248bbd,0x534)]>0x0?_0x4819a8[_0x13e1d9(0x4b,_0x60726b._0x3f43bb,0xf5,_0x60726b._0x548527)]:'{}')});}return parseAnthropicResponse({'id':this[_0x13e1d9(0x54,_0x60726b._0x410315,0xe5,_0x60726b._0x45e2b0)],'type':_0x13e1d9(_0x60726b._0x478fe9,0x2aa,_0x60726b._0x5d826e,0x296),'role':'assistant','content':_0x3f0262,'stop_reason':this['stopReason'],'stop_sequence':null,'usage':{'input_tokens':this[_0x317160(0x52d,0x4ac,_0x60726b._0x2f5ae9,_0x60726b._0x19aded)],'output_tokens':this['outputTokens'],'cache_read_input_tokens':this['cacheReadInputTokens'],'cache_creation_input_tokens':this[_0x317160(0x412,_0x60726b._0x1b8b11,_0x60726b._0x5ebb9a,_0x60726b._0x41a875)]}},this['request']);}};function createAnthropicSurfaces(){const _0x3d7416={_0xa6b63d:0xcf,_0x457e43:0x6c,_0x29309d:0x69,_0x25a961:0x38},_0xa4691c={_0x3c5045:0x1f7},_0x315b8a={_0x4ef2f1:0x200,_0x10e978:0x8b};function _0x12dc92(_0x465838,_0x2dca38,_0x439422,_0x27ae1e){return _0x55b3f6(_0x465838-0x3f,_0x465838- -_0x315b8a._0x4ef2f1,_0x439422,_0x27ae1e-_0x315b8a._0x10e978);}function _0x2b7f36(_0x310a61,_0x110af2,_0x467a43,_0x3c2389){return _0x55b3f6(_0x310a61-0xca,_0x110af2-_0xa4691c._0x3c5045,_0x3c2389,_0x3c2389-0x12d);}return[{'id':ANTHROPIC_MESSAGES_SURFACE,'transport':_0x12dc92(0x14,-_0x3d7416._0xa6b63d,-_0x3d7416._0x457e43,0x99),'createRequest'(_0x313de2){return createAnthropicRequest(_0x313de2,![]);},'parseResponse'(_0x577757,_0x3d8937){return parseAnthropicResponse(_0x577757,_0x3d8937);}},{'id':ANTHROPIC_MESSAGES_STREAM_SURFACE,'transport':_0x12dc92(-0x31,_0x3d7416._0x29309d,-_0x3d7416._0x25a961,-0x19),'createRequest'(_0x43a8e4){return createAnthropicRequest(_0x43a8e4,!![]);},'createStreamParser'(_0x2ac1c0){return new AnthropicMessagesStreamParser(_0x2ac1c0);}}];}var StaticModelSurfaceRouter=class{[_0x55b3f6(0x2ac,0x2d2,0x250,0x3b3)];[_0x51d0c0(0x47f,0x468,0x4ca,0x58e)];constructor(_0x4e6342){const _0x5a5d07={_0x41cbcc:0x102,_0x5a6a4d:0x168,_0x43b8ae:0xff,_0x15aa57:0x185,_0x4a1d93:0x305,_0x25ea30:0x231,_0xb7550d:0x1d5},_0x3b37ec={_0x4f6966:0x8d,_0x4efcd2:0x174};this[_0x2dca7c(0x192,_0x5a5d07._0x41cbcc,_0x5a5d07._0x5a6a4d,0x168)]=_0x4e6342[_0x13eab3(-0xc0,-_0x5a5d07._0x43b8ae,-_0x5a5d07._0x15aa57,-0xd5)];function _0x2dca7c(_0x594a6a,_0x1f8e9b,_0x3fff43,_0xcb7305){return _0x51d0c0(_0x594a6a-_0x3b37ec._0x4f6966,_0x1f8e9b-_0x3b37ec._0x4efcd2,_0xcb7305- -0x4f8,_0x1f8e9b);}function _0x13eab3(_0x18a970,_0x50c73c,_0x5722b7,_0x264974){return _0x51d0c0(_0x18a970-0x69,_0x50c73c-0x1bd,_0x5722b7- -0x779,_0x18a970);}this['streamSurface']=_0x4e6342[_0x13eab3(-0x228,-_0x5a5d07._0x4a1d93,-_0x5a5d07._0x25ea30,-_0x5a5d07._0xb7550d)];}[_0x55b3f6(0x203,0x22b,0x1ea,0x257)](_0x1be9f0,_0x55726e){const _0x15e0df={_0x3af66f:0x2b0,_0x462caf:0x31f,_0x3b0dcc:0x45f,_0x132733:0xd2,_0x17a131:0x1,_0x17c650:0x15a,_0x3a4dd7:0x286,_0x1d6705:0x268,_0x175863:0x1a5,_0x18a273:0x290},_0x218790={_0x49c8d8:0x182},_0x12f5c5={_0x5d7dfe:0x17e,_0x35063d:0x177};function _0xcc2bc8(_0x1205d6,_0x143d66,_0x54a3a8,_0x53f1d1){return _0x51d0c0(_0x1205d6-_0x12f5c5._0x5d7dfe,_0x143d66-0x18d,_0x1205d6- -_0x12f5c5._0x35063d,_0x53f1d1);}function _0x48d9d3(_0x5a4350,_0x15902b,_0xd95238,_0x19d1d2){return _0x51d0c0(_0x5a4350-0xdf,_0x15902b-_0x218790._0x49c8d8,_0x15902b- -0x3f8,_0xd95238);}return _0x55726e[_0xcc2bc8(0x374,0x3fb,_0x15e0df._0x3af66f,0x407)]===_0xcc2bc8(0x3d1,_0x15e0df._0x462caf,0x4ad,_0x15e0df._0x3b0dcc)?this[_0x48d9d3(0xe4,_0x15e0df._0x132733,_0x15e0df._0x17a131,_0x15e0df._0x17c650)]:this[_0x48d9d3(_0x15e0df._0x3a4dd7,_0x15e0df._0x1d6705,_0x15e0df._0x175863,_0x15e0df._0x18a273)];}};function trimTrailingSlashes(_0x373146){const _0x281308={_0x4799d4:0x334,_0x5e54a1:0x28f};function _0x98643e(_0xda6781,_0x2e41a3,_0x9494fe,_0x599213){return _0x51d0c0(_0xda6781-0x11a,_0x2e41a3-0x178,_0x9494fe- -0x23d,_0xda6781);}return _0x373146[_0x98643e(_0x281308._0x4799d4,_0x281308._0x5e54a1,0x336,0x2a4)](/\/+$/,'');}function resolveApiCredential(_0x31e01f,_0x20a44b){const _0x18cca7={_0x30e4aa:0x431,_0x16e582:0x3e8,_0x144f18:0x486};function _0x2931c3(_0x1971d6,_0x3c9c47,_0x5655c7,_0x4d5f9e){return _0x51d0c0(_0x1971d6-0x1de,_0x3c9c47-0xd2,_0x5655c7- -0x174,_0x3c9c47);}if(_0x20a44b?.['credential'])return _0x20a44b['credential'];if(!_0x31e01f)return void 0x0;return{'kind':_0x2931c3(_0x18cca7._0x30e4aa,0x3c1,_0x18cca7._0x16e582,_0x18cca7._0x144f18),'value':_0x31e01f};}function resolveSessionBaseUrl(_0x91111d,_0x15030b){const _0x22eed6={_0x4c23a4:0x44a,_0x58affb:0x42b,_0x27670c:0xf7,_0x3e0ab2:0x19a},_0x1f91d2={_0x2390ec:0x64,_0x4df448:0x2ab};function _0x402625(_0x5c08cc,_0x33e7b5,_0x3d56c3,_0x198364){return _0x55b3f6(_0x5c08cc-0x74,_0x198364- -0x35a,_0x33e7b5,_0x198364-0x1c1);}function _0x4f0f26(_0x491e01,_0x835cf7,_0x4dece7,_0x11afd6){return _0x55b3f6(_0x491e01-_0x1f91d2._0x2390ec,_0x491e01-_0x1f91d2._0x4df448,_0x4dece7,_0x11afd6-0x14c);}return trimTrailingSlashes(_0x15030b?.[_0x4f0f26(_0x22eed6._0x4c23a4,_0x22eed6._0x58affb,0x396,0x4cf)]?.[_0x402625(-0x17c,-_0x22eed6._0x27670c,-0xce,-_0x22eed6._0x3e0ab2)]??_0x91111d);}function _0x55b3f6(_0x54e815,_0x1535f8,_0x2e44a1,_0x3d07d9){return _0x5dd8(_0x1535f8-0x4,_0x2e44a1);}var model_registry_default={'defaultMaxTokens':0x4000,'defaultModel':'gpt-4o','cliDefaultModel':'glm-4.7','providers':{'anthropic':{'label':_0x55b3f6(0x326,0x2de,0x306,0x22c),'baseUrl':_0x55b3f6(0x151,0x1de,0x2a8,0x22d),'surface':_0x55b3f6(0x216,0x1ca,0x1e1,0x27d),'authScheme':'x-api-key','defaultModel':_0x55b3f6(0x1e2,0x176,0xff,0x170),'defaultModels':[_0x55b3f6(0xda,0x176,0xcd,0x172),_0x55b3f6(0x1ad,0x114,0xb4,0x2b)],'supportsModelFetch':![],'models':{'claude-sonnet-4-20250514':{'contextWindow':0x30d40,'maxOutput':0x3e80},'claude-3-5-sonnet-20241022':{'contextWindow':0x30d40,'maxOutput':0x2000}}},'zai':{'label':_0x55b3f6(0x29d,0x26a,0x282,0x1c2),'baseUrl':_0x51d0c0(0x5d6,0x5e0,0x60a,0x5b8),'anthropicBaseUrl':_0x51d0c0(0x554,0x60d,0x52c,0x53f),'surface':'anthropic-messages','authScheme':_0x55b3f6(0x348,0x2dd,0x34d,0x3af),'defaultModel':_0x51d0c0(0x596,0x54c,0x4e4,0x5ab),'defaultModels':[_0x55b3f6(0x1e7,0x24d,0x2b6,0x2c6),_0x55b3f6(0x193,0x156,0x188,0xea),_0x55b3f6(0xcb,0x1b4,0x187,0x226),_0x55b3f6(0x231,0x22c,0x172,0x274)],'supportsModelFetch':![],'models':{'glm-5.1':{'contextWindow':0x30d40,'maxOutput':0x1f400},'glm-4.7':{'contextWindow':0x30d40,'maxOutput':0x1f400},'glm-4.6':{'contextWindow':0x30d40,'maxOutput':0x1f400},'glm-4.5':{'contextWindow':0x30d40,'maxOutput':0x1f400}}},'openrouter':{'label':'OpenRouter','baseUrl':'https://openrouter.ai/api/v1','surface':'openai-chat-completions','authScheme':'bearer','defaultModel':_0x51d0c0(0x5ce,0x568,0x4ff,0x53a),'defaultModels':['openai/gpt-4o','openai/gpt-4o-mini'],'supportsModelFetch':!![],'models':{'anthropic/claude-3.5-sonnet':{'contextWindow':0x30d40,'maxOutput':0x2000},'openai/gpt-4o':{'contextWindow':0x1f400,'maxOutput':0x4000},'openai/gpt-4.1':{'contextWindow':0x1f400,'maxOutput':0x8000}}},'github':{'label':_0x55b3f6(0x214,0x2b4,0x291,0x36e),'surface':_0x51d0c0(0x61a,0x5a6,0x66e,0x599),'defaultModel':_0x55b3f6(0x181,0x1cd,0x271,0x120),'defaultModels':[_0x51d0c0(0x53e,0x5f8,0x570,0x650),'gpt-4.1',_0x51d0c0(0x4cb,0x590,0x572,0x5a4),'gpt-5-mini','grok-code-fast-1',_0x55b3f6(0x1f6,0x2aa,0x1eb,0x1e4)],'supportsModelFetch':!![],'models':{'claude-sonnet-4.5':{'contextWindow':0x30d40,'maxOutput':0x3e80,'surface':'anthropic-messages'},'claude-sonnet-4':{'contextWindow':0x30d40,'maxOutput':0x3e80,'surface':_0x51d0c0(0x4ad,0x553,0x558,0x63d)},'gpt-5.1-codex':{'contextWindow':0x30d40,'maxOutput':0x186a0},'gpt-5':{'contextWindow':0x30d40,'maxOutput':0x186a0},'gpt-5-mini':{'contextWindow':0x30d40,'maxOutput':0x186a0},'gpt-4.1':{'contextWindow':0x1f400,'maxOutput':0x4000},'gpt-4o':{'contextWindow':0x1f400,'maxOutput':0x4000}}},'openai':{'label':_0x51d0c0(0x676,0x6d5,0x606,0x63e),'baseUrl':_0x51d0c0(0x629,0x5be,0x58b,0x570),'surface':_0x51d0c0(0x560,0x5ba,0x5ec,0x58f),'authScheme':_0x51d0c0(0x6ce,0x68e,0x66b,0x61f),'defaultModel':_0x55b3f6(0xe8,0x11f,0x1de,0x125),'defaultModels':[],'supportsModelFetch':![],'models':{}},'deepseek':{'label':_0x55b3f6(0x10f,0x1d3,0x197,0x11a),'baseUrl':'https://api.deepseek.com/anthropic','surface':_0x51d0c0(0x4a8,0x54b,0x558,0x557),'authScheme':_0x51d0c0(0x58a,0x585,0x66b,0x6fa),'defaultModel':_0x51d0c0(0x5f5,0x5fd,0x57f,0x590),'defaultModels':[_0x55b3f6(0x2ca,0x1f1,0x27f,0x284),_0x55b3f6(0x271,0x276,0x19d,0x326)],'supportsModelFetch':![],'models':{'deepseek-v4-pro':{'contextWindow':0xf4240,'maxOutput':0x5dc00},'deepseek-v4-flash':{'contextWindow':0xf4240,'maxOutput':0x5dc00}}},'minimax':{'label':_0x51d0c0(0x4e5,0x568,0x510,0x52e),'baseUrl':_0x55b3f6(0x28e,0x24e,0x287,0x334),'surface':_0x55b3f6(0x29a,0x1ca,0x19d,0xf9),'authScheme':_0x51d0c0(0x5d2,0x6c7,0x66b,0x672),'defaultModel':_0x51d0c0(0x6c4,0x66c,0x5f3,0x515),'defaultModels':[_0x55b3f6(0x349,0x265,0x1ad,0x1fb)],'supportsModelFetch':![],'models':{'MiniMax-M3':{'contextWindow':0xf4240,'maxOutput':0x7d000},'MiniMax-M2.7':{'contextWindow':0x32000,'maxOutput':0x7d00}}},'commandcode':{'label':_0x51d0c0(0x4ef,0x5a8,0x4cf,0x535),'baseUrl':_0x55b3f6(0x1da,0x1ee,0x118,0x202),'modelsBaseUrl':'https://api.commandcode.ai/provider/v1','surface':_0x55b3f6(0x112,0x1ca,0x143,0x23f),'authScheme':_0x55b3f6(0x1f7,0x28b,0x307,0x238),'defaultModel':_0x51d0c0(0x5b1,0x41b,0x504,0x43d),'defaultModels':[],'supportsModelFetch':!![],'models':{}}}},data=model_registry_default;function findProviderKey(_0x4bb4ef){const _0x4e0d5d={_0x478f03:0x2f5,_0x92cc73:0x287,_0x4e569f:0x1e5,_0x3e9f2f:0x2a5,_0x2ce7d7:0x2af},_0x5ead18={_0x458cc:0x1c0,_0x1053b0:0x147},_0x2b5e={_0x5741f1:0x82,_0x17f134:0x14e};function _0x15afda(_0x828605,_0x67efae,_0x5625e1,_0x185dff){return _0x51d0c0(_0x828605-_0x2b5e._0x5741f1,_0x67efae-_0x2b5e._0x17f134,_0x828605- -0x329,_0x185dff);}function _0x370f4d(_0x46898a,_0x1e8dcf,_0x46b323,_0x259e7a){return _0x55b3f6(_0x46898a-_0x5ead18._0x458cc,_0x46b323-0x86,_0x46898a,_0x259e7a-_0x5ead18._0x1053b0);}const _0x3140ae=_0x4bb4ef[_0x15afda(_0x4e0d5d._0x478f03,_0x4e0d5d._0x92cc73,0x318,0x2bf)]();return Object[_0x370f4d(0x1da,0x306,0x228,_0x4e0d5d._0x4e569f)](data['providers'])[_0x370f4d(_0x4e0d5d._0x3e9f2f,_0x4e0d5d._0x2ce7d7,0x351,0x2a4)](_0xf6db92=>_0xf6db92[_0x15afda(0x2f5,0x27e,0x27d,0x273)]()===_0x3140ae);}function getProviderProfile(_0x1beb02){const _0x409257={_0x1d2779:0x22f,_0x528fc5:0x230,_0x2190c1:0x372,_0x94beb7:0x3eb,_0x39d18f:0x478,_0x469675:0x1d5,_0x417546:0x283,_0x472ef1:0x4c5,_0x172c78:0x510,_0x497f46:0x2e1,_0x107782:0x342,_0x4a0d12:0x48c,_0x272f94:0x56d,_0x54308b:0x4da,_0x3c2de4:0x205,_0x11198b:0x2ec,_0x5ed23b:0x23d,_0x29df6e:0x42c,_0x1d7c42:0x316,_0x10b308:0x3c7,_0x52ee65:0x37b},_0x54c562={_0x4045a3:0x1ef,_0x203c4c:0x255},_0x362f37={_0xc852e7:0x129},_0x2d4554=findProviderKey(_0x1beb02);function _0x415acd(_0x10e9f3,_0x16d59b,_0x22b8c1,_0x232c43){return _0x55b3f6(_0x10e9f3-0x3e,_0x232c43-0x119,_0x22b8c1,_0x232c43-_0x362f37._0xc852e7);}if(!_0x2d4554)return void 0x0;const _0x54eef0=data[_0x415acd(0x29a,0x1ce,_0x409257._0x1d2779,_0x409257._0x528fc5)][_0x2d4554],_0x58c73c={};for(const [_0x7e7aee,_0x385fbe]of Object[_0x415acd(_0x409257._0x2190c1,0x295,_0x409257._0x94beb7,0x32c)](_0x54eef0[_0xa3892a(_0x409257._0x39d18f,0x385,0x4ac,0x427)])){_0x58c73c[_0x7e7aee]=_0x385fbe;}function _0xa3892a(_0x29807d,_0x34394d,_0x18c495,_0x57d164){return _0x55b3f6(_0x29807d-_0x54c562._0x4045a3,_0x57d164-_0x54c562._0x203c4c,_0x29807d,_0x57d164-0xf8);}return{'label':_0x54eef0[_0xa3892a(0x2e2,0x3ac,0x3ac,0x397)],'baseUrl':_0x54eef0[_0x415acd(0x1a7,_0x409257._0x469675,0x245,_0x409257._0x417546)],'modelsBaseUrl':_0x54eef0[_0xa3892a(0x485,0x476,_0x409257._0x472ef1,_0x409257._0x172c78)],'anthropicBaseUrl':_0x54eef0[_0x415acd(0x340,0x269,_0x409257._0x497f46,0x2c5)],'surface':_0x54eef0['surface'],'authScheme':_0x54eef0[_0xa3892a(0x30e,_0x409257._0x107782,_0x409257._0x4a0d12,0x3ad)],'defaultModel':_0x54eef0[_0xa3892a(_0x409257._0x272f94,0x511,0x53c,_0x409257._0x54308b)],'defaultModels':_0x54eef0[_0x415acd(_0x409257._0x3c2de4,0x155,_0x409257._0x11198b,_0x409257._0x5ed23b)]??[],'supportsModelFetch':_0x54eef0[_0x415acd(_0x409257._0x29df6e,_0x409257._0x1d7c42,_0x409257._0x10b308,_0x409257._0x52ee65)]??![],'models':_0x58c73c};}function getModelProfile(_0x399614,_0x111127){const _0x54e4c0={_0x50aa57:0x74,_0xe17ea:0x8,_0x4b85d1:0x45,_0x15578a:0xaf,_0x11640d:0x114,_0x46cf7a:0x16c},_0xb3ab64={_0x3a1c18:0x49e},_0x6e458a={_0x45d9d1:0x1d2};function _0x1cad48(_0x497458,_0x2eb7a4,_0x4d4828,_0x13f560){return _0x55b3f6(_0x497458-0x109,_0x4d4828- -0x1c8,_0x13f560,_0x13f560-_0x6e458a._0x45d9d1);}function _0x3bc4ef(_0x72cd4,_0x536b82,_0x5da0d2,_0x94340d){return _0x51d0c0(_0x72cd4-0xb3,_0x536b82-0x11a,_0x94340d- -_0xb3ab64._0x3a1c18,_0x5da0d2);}const _0x176154=findProviderKey(_0x399614);if(!_0x176154)return void 0x0;return data[_0x3bc4ef(_0x54e4c0._0x50aa57,-_0x54e4c0._0xe17ea,-_0x54e4c0._0x4b85d1,0x7)][_0x176154][_0x3bc4ef(_0x54e4c0._0x15578a,_0x54e4c0._0x11640d,_0x54e4c0._0x46cf7a,0xc2)][_0x111127];}function resolveModelProfile(_0x16f7c4,_0xfca413){const _0x8b41ed={_0x3031bf:0x7f,_0x3f96c4:0x6,_0x27b66a:0xd2,_0x296eb7:0x178,_0x1f1103:0x10e,_0x3d5d1a:0x114,_0x590cfa:0x3f1,_0x594180:0x1c8,_0x588021:0x18f,_0x106228:0x3d3,_0x27e39b:0x301,_0x1da64f:0x39b,_0x3279c5:0x42e,_0x229fe2:0x3e,_0x39310b:0x8c,_0x19ce8e:0x143,_0x1ec18e:0x3fa,_0x1b4c52:0x4e4,_0x4c610b:0x40b,_0x14654d:0x306,_0x3af588:0x2be,_0x32d0b2:0x3b3},_0x336e8b={_0x18fe7c:0x1a9};function _0x41e476(_0x3b7ebb,_0x3728d4,_0x3c3317,_0x4ad49b){return _0x55b3f6(_0x3b7ebb-0x29,_0x3728d4- -0x98,_0x3c3317,_0x4ad49b-0x109);}const _0x344f2d=findProviderKey(_0x16f7c4);if(!_0x344f2d)return void 0x0;const _0x164e7e=data[_0x41e476(-0x28,_0x8b41ed._0x3031bf,_0x8b41ed._0x3f96c4,0x28)][_0x344f2d];function _0x1a0119(_0x3e250d,_0x276715,_0x37c13e,_0x408902){return _0x55b3f6(_0x3e250d-0x1bc,_0x408902-_0x336e8b._0x18fe7c,_0x276715,_0x408902-0x12b);}const _0x22d153=_0x164e7e['models'][_0xfca413];return{'label':_0x164e7e['label'],'baseUrl':_0x164e7e[_0x41e476(0x14e,_0x8b41ed._0x27b66a,_0x8b41ed._0x296eb7,0x71)],'modelsBaseUrl':_0x164e7e['modelsBaseUrl'],'anthropicBaseUrl':_0x164e7e[_0x41e476(_0x8b41ed._0x1f1103,_0x8b41ed._0x3d5d1a,0xb8,0x1da)],'surface':_0x22d153?.[_0x1a0119(0x453,0x3de,_0x8b41ed._0x590cfa,0x3ae)]??_0x164e7e[_0x41e476(_0x8b41ed._0x594180,0x16d,_0x8b41ed._0x588021,0x15f)],'authScheme':_0x164e7e[_0x1a0119(0x2ad,0x3e2,_0x8b41ed._0x106228,_0x8b41ed._0x27e39b)],'defaultModel':_0x164e7e[_0x1a0119(_0x8b41ed._0x1da64f,0x4bb,0x4d0,_0x8b41ed._0x3279c5)],'defaultModels':_0x164e7e[_0x41e476(_0x8b41ed._0x229fe2,_0x8b41ed._0x39310b,_0x8b41ed._0x19ce8e,0x124)],'supportsModelFetch':_0x164e7e[_0x1a0119(0x490,_0x8b41ed._0x1ec18e,_0x8b41ed._0x1b4c52,_0x8b41ed._0x4c610b)],'contextWindow':_0x22d153?.[_0x1a0119(_0x8b41ed._0x14654d,0x274,0x2ef,_0x8b41ed._0x3af588)],'maxOutput':_0x22d153?.[_0x1a0119(0x3a0,0x30b,0x31a,_0x8b41ed._0x32d0b2)]};}function _0x5dd8(_0x2ca74b,_0xa0015d){_0x2ca74b=_0x2ca74b-0x110;const _0x3196a5=_0x3196();let _0x5dd8c8=_0x3196a5[_0x2ca74b];if(_0x5dd8['ZegbzY']===undefined){var _0x15ad35=function(_0x36b1aa){const _0x4455fe='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x426178='',_0x1681ee='';for(let _0x18a73d=0x0,_0x26a411,_0x558012,_0x2cf5b4=0x0;_0x558012=_0x36b1aa['charAt'](_0x2cf5b4++);~_0x558012&&(_0x26a411=_0x18a73d%0x4?_0x26a411*0x40+_0x558012:_0x558012,_0x18a73d++%0x4)?_0x426178+=String['fromCharCode'](0xff&_0x26a411>>(-0x2*_0x18a73d&0x6)):0x0){_0x558012=_0x4455fe['indexOf'](_0x558012);}for(let _0x276be7=0x0,_0x4cb25c=_0x426178['length'];_0x276be7<_0x4cb25c;_0x276be7++){_0x1681ee+='%'+('00'+_0x426178['charCodeAt'](_0x276be7)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1681ee);};_0x5dd8['FpxypP']=_0x15ad35,_0x5dd8['OoVqjG']={},_0x5dd8['ZegbzY']=!![];}const _0x4ed160=_0x3196a5[0x0],_0x15458e=_0x2ca74b+_0x4ed160,_0x6143e=_0x5dd8['OoVqjG'][_0x15458e];return!_0x6143e?(_0x5dd8c8=_0x5dd8['FpxypP'](_0x5dd8c8),_0x5dd8['OoVqjG'][_0x15458e]=_0x5dd8c8):_0x5dd8c8=_0x6143e,_0x5dd8c8;}function getDefaultMaxTokens(){const _0x382fb8={_0x3f24f4:0xe2};function _0x1916e6(_0x1f0707,_0x11e9d2,_0x235237,_0x461cb0){return _0x55b3f6(_0x1f0707-0xa6,_0x235237-0x38e,_0x11e9d2,_0x461cb0-_0x382fb8._0x3f24f4);}return data[_0x1916e6(0x4b9,0x475,0x4c5,0x486)];}function getDefaultModel(){const _0x14c93c={_0x211c4b:0x108,_0x45b81e:0x1d8},_0x13a425={_0x4e1d5a:0x43b};function _0x53d173(_0x181ac1,_0x45101f,_0x4b1a13,_0xff322e){return _0x51d0c0(_0x181ac1-0x84,_0x45101f-0x13f,_0xff322e- -_0x13a425._0x4e1d5a,_0x4b1a13);}return data[_0x53d173(0x246,0x192,_0x14c93c._0x211c4b,_0x14c93c._0x45b81e)];}function getCliDefaultModel(){return data['cliDefaultModel'];}function getProviderLabel(_0x3579e2){const _0x58fcbf={_0x42eee4:0x4cf,_0x3ab882:0x56c,_0x4eb11d:0x4db,_0x4dbe43:0x43d},_0x31bd0b={_0x5586b6:0xa4,_0x5c094f:0x173},_0x65aac8={_0x5cf237:0x152};function _0x596434(_0x551fe2,_0xa057e5,_0x2573c6,_0x19ca0e){return _0x55b3f6(_0x551fe2-0x16a,_0x19ca0e- -0x65,_0xa057e5,_0x19ca0e-_0x65aac8._0x5cf237);}const _0x575c5f=findProviderKey(_0x3579e2);function _0x1b3cdc(_0x2aeb85,_0x16e431,_0xc5601c,_0x47f449){return _0x55b3f6(_0x2aeb85-_0x31bd0b._0x5586b6,_0x2aeb85-0x395,_0xc5601c,_0x47f449-_0x31bd0b._0x5c094f);}return _0x575c5f?data[_0x1b3cdc(0x4ac,0x547,_0x58fcbf._0x42eee4,_0x58fcbf._0x3ab882)][_0x575c5f][_0x1b3cdc(0x4d7,_0x58fcbf._0x4eb11d,_0x58fcbf._0x4dbe43,0x52a)]:void 0x0;}function getProviderDefaultModel(_0x7ba5c8){const _0x4e2bd0={_0x49aeb6:0x98,_0x5dd932:0x11b,_0x362753:0xe3,_0x24affd:0x297,_0x5078b3:0x1bd},_0x45b191={_0x1a48b3:0xc8,_0x387bf7:0x53},_0x3091fd={_0x2112e5:0x180,_0x1b7e54:0x7f,_0x54f2ed:0xa7};function _0x25b87a(_0x4adb10,_0x5e15b2,_0x25eb0c,_0x74268b){return _0x55b3f6(_0x4adb10-_0x3091fd._0x2112e5,_0x4adb10- -_0x3091fd._0x1b7e54,_0x5e15b2,_0x74268b-_0x3091fd._0x54f2ed);}const _0x5ea9a2=findProviderKey(_0x7ba5c8);function _0x23a1c6(_0x674df4,_0x339237,_0x4935ad,_0x5793ee){return _0x55b3f6(_0x674df4-0xa,_0x5793ee- -_0x45b191._0x1a48b3,_0x674df4,_0x5793ee-_0x45b191._0x387bf7);}if(!_0x5ea9a2)return void 0x0;return data[_0x25b87a(_0x4e2bd0._0x49aeb6,_0x4e2bd0._0x5dd932,0x8c,0xe5)][_0x5ea9a2][_0x23a1c6(0x149,_0x4e2bd0._0x362753,_0x4e2bd0._0x24affd,_0x4e2bd0._0x5078b3)];}function getProviderDefaultModels(_0x3e35dd){const _0x578bcb={_0x50c238:0x340,_0x24515a:0x372},_0x54b0a8={_0x46a4ab:0xb3,_0x3e92e1:0x21c};function _0x5860f1(_0x36f1d7,_0x1ae31f,_0x2575dd,_0xd7d9b0){return _0x55b3f6(_0x36f1d7-_0x54b0a8._0x46a4ab,_0x1ae31f-_0x54b0a8._0x3e92e1,_0x36f1d7,_0xd7d9b0-0x2c);}const _0x5d24af=findProviderKey(_0x3e35dd);if(!_0x5d24af)return[];return[...data['providers'][_0x5d24af][_0x5860f1(0x3ee,_0x578bcb._0x50c238,_0x578bcb._0x24515a,0x347)]??[]];}function providerSupportsModelFetch(_0x590663){const _0x1b4cf5={_0x3e9796:0x16a},_0x485539=findProviderKey(_0x590663);function _0x4af743(_0x49a9bf,_0x461b3c,_0x241112,_0x9b681b){return _0x55b3f6(_0x49a9bf-0x1a9,_0x49a9bf-0x305,_0x461b3c,_0x9b681b-_0x1b4cf5._0x3e9796);}if(!_0x485539)return![];return data['providers'][_0x485539][_0x4af743(0x567,0x5ee,0x644,0x593)]??![];}function getOnboardingProviderKeys(){const _0x468e51={_0xce6439:0x48d,_0x4cef82:0x3a1},_0x3d93b3={_0x1b406a:0x16e,_0x33d29e:0x69};function _0x527082(_0x1391c1,_0x1f3350,_0x13be8c,_0x4a5493){return _0x55b3f6(_0x1391c1-_0x3d93b3._0x1b406a,_0x1f3350-0x2c6,_0x1391c1,_0x4a5493-_0x3d93b3._0x33d29e);}return Object[_0x527082(_0x468e51._0xce6439,0x468,0x459,_0x468e51._0x4cef82)](data['providers']);}function toErrorMessage(_0x216499){const _0x4d8633={_0x2ddb23:0x9,_0x396a4b:0x6e,_0x2ac2a3:0x361,_0x530a42:0x373,_0x4d88a4:0x390,_0x42dc2e:0x44a},_0xd8aed5={_0xbdf36c:0x1c5,_0x18a3c5:0x13,_0x39f437:0x2c0},_0x5dcb95={_0x4ee83a:0x6a3};if(_0x216499 instanceof Error&&_0x216499[_0x1c3ca8(_0x4d8633._0x2ddb23,_0x4d8633._0x396a4b,-0x66,0x5c)]['length']>0x0)return _0x216499[_0x4824af(0x37d,_0x4d8633._0x2ac2a3,_0x4d8633._0x530a42,0x42d)];function _0x1c3ca8(_0x4b211b,_0x10e59e,_0x1ff134,_0x445789){return _0x51d0c0(_0x4b211b-0x2e,_0x10e59e-0x58,_0x1ff134- -_0x5dcb95._0x4ee83a,_0x445789);}function _0x4824af(_0x388eae,_0x511b12,_0x263267,_0x5bfe19){return _0x51d0c0(_0x388eae-_0xd8aed5._0xbdf36c,_0x511b12-_0xd8aed5._0x18a3c5,_0x388eae- -_0xd8aed5._0x39f437,_0x5bfe19);}return _0x4824af(0x39c,_0x4d8633._0x4d88a4,_0x4d8633._0x42dc2e,0x391);}function createDefaultWebSocketFactory(){const _0xa3e6c2={_0x1b6f28:0x357,_0x3db136:0x2e8,_0x160770:0x28c};return({headers:_0x8c12ce,url:_0x4ab9b8})=>{function _0x4f8305(_0x204f41,_0x2c6c2e,_0x57ef34,_0x596427){return _0x5dd8(_0x596427- -0x3e3,_0x57ef34);}const _0x3ce8e8=globalThis[_0x4f8305(-0x2d0,-_0xa3e6c2._0x1b6f28,-_0xa3e6c2._0x3db136,-_0xa3e6c2._0x160770)];return new _0x3ce8e8(_0x4ab9b8,{'headers':_0x8c12ce,'protocols':[]});};}async function*iterateSseEvents(_0x3bd542,_0xbde98){const _0x3503b6={_0x436c04:0x118,_0x385af9:0x1ae,_0x25cea0:0x32,_0xcf92a7:0xfe,_0x7870db:0x1e,_0x1db556:0x1b7,_0x126b00:0x159,_0x3e6970:0xc1,_0x388b63:0x95,_0x459016:0x2ca,_0x2d21c4:0x244,_0x42c4ff:0x178,_0x33214:0x9f,_0x2a469b:0x13e,_0x718c0e:0xef,_0x1c1d5b:0x28,_0x31fc47:0x23b,_0x4d5226:0x170,_0x346642:0x1ed,_0x245e95:0x26a,_0x43ebb1:0x211,_0x22a928:0x188,_0x34e6b1:0x176,_0x423654:0x1a3,_0x1776bf:0x107,_0x1f2b4d:0x1b2,_0xcbcd2d:0x217,_0x20ebae:0x266},_0x44a276={_0x2d0742:0x67a,_0x19bbe8:0x5ad,_0x3e9def:0x21f,_0x49dd92:0x180,_0x4c0904:0x269},_0x2f1fbd={_0x19b315:0x3c2,_0x9a6f45:0x4f},_0x539b2b={_0x5c9efa:0x15f,_0x5f003c:0x1aa},_0x2d662b={_0x30934c:0xf0};function _0x5684c2(_0x1965a6,_0x590edc,_0x48123c,_0x22ab49){return _0x51d0c0(_0x1965a6-_0x2d662b._0x30934c,_0x590edc-0xa,_0x590edc- -0x3f2,_0x48123c);}function _0x5aed48(_0x5df462,_0xf305,_0x2f3800,_0x2f859e){return _0x55b3f6(_0x5df462-_0x539b2b._0x5c9efa,_0x2f859e- -0x27d,_0xf305,_0x2f859e-_0x539b2b._0x5f003c);}const _0x261ba9=_0x3bd542[_0x5aed48(-0x19b,-_0x3503b6._0x436c04,-_0x3503b6._0x385af9,-0x161)]?.[_0x5aed48(-_0x3503b6._0x25cea0,-_0x3503b6._0xcf92a7,-0x133,-0x9d)]();if(!_0x261ba9)return;const _0xec2b40=new TextDecoder(_0x5aed48(-_0x3503b6._0x7870db,-0xe6,-_0x3503b6._0x1db556,-0xe7));let _0x5e04af='';const _0x3e40ce=addAbortListener(_0xbde98,()=>{const _0x2df1d9={_0x387464:0x49,_0x1f10d9:0xc,_0x159baf:0x1c8};function _0x462bf2(_0x1a8924,_0x23ff18,_0x115ec6,_0x1ed037){return _0x5684c2(_0x1a8924-0x6a,_0x115ec6-_0x2f1fbd._0x19b315,_0x1ed037,_0x1ed037-_0x2f1fbd._0x9a6f45);}function _0x26dede(_0x3f380e,_0x4aa480,_0x20e3dc,_0x1d993c){return _0x5684c2(_0x3f380e-_0x2df1d9._0x387464,_0x20e3dc-_0x2df1d9._0x1f10d9,_0x4aa480,_0x1d993c-_0x2df1d9._0x159baf);}void _0x261ba9[_0x462bf2(_0x44a276._0x2d0742,_0x44a276._0x19bbe8,0x5a9,0x4f9)](toAbortError(_0xbde98?.[_0x26dede(_0x44a276._0x3e9def,0x108,_0x44a276._0x49dd92,_0x44a276._0x4c0904)]))[_0x26dede(0x170,0x14b,0x1f1,0x1af)](()=>{});});try{while(!![]){throwIfAborted(_0xbde98);const {value:_0x489a73,done:_0x5762ba}=await _0x261ba9[_0x5684c2(_0x3503b6._0x126b00,0xd7,_0x3503b6._0x3e6970,_0x3503b6._0x388b63)]();throwIfAborted(_0xbde98);if(_0x5762ba)break;_0x5e04af+=_0xec2b40[_0x5684c2(_0x3503b6._0x459016,_0x3503b6._0x2d21c4,0x25a,0x1c3)](_0x489a73,{'stream':!![]});while(!![]){const _0x3db589=_0x5e04af['indexOf']('\x0a\x0a');if(_0x3db589===-0x1)break;const _0x48c5b4=_0x5e04af[_0x5684c2(0x1bb,_0x3503b6._0x42c4ff,_0x3503b6._0x33214,0xba)](0x0,_0x3db589);_0x5e04af=_0x5e04af['slice'](_0x3db589+0x2),_0x48c5b4[_0x5aed48(-_0x3503b6._0x2a469b,-_0x3503b6._0x718c0e,_0x3503b6._0x1c1d5b,-0xa3)]()[_0x5684c2(0x28a,_0x3503b6._0x31fc47,_0x3503b6._0x4d5226,0x2d4)]>0x0&&(yield _0x48c5b4);}}_0x5e04af+=_0xec2b40[_0x5684c2(_0x3503b6._0x346642,0x244,_0x3503b6._0x245e95,_0x3503b6._0x43ebb1)](),throwIfAborted(_0xbde98),_0x5e04af[_0x5684c2(_0x3503b6._0x22a928,_0x3503b6._0x34e6b1,_0x3503b6._0x423654,_0x3503b6._0x1776bf)]()[_0x5684c2(_0x3503b6._0x1f2b4d,0x23b,_0x3503b6._0xcbcd2d,_0x3503b6._0x20ebae)]>0x0&&(yield _0x5e04af);}finally{_0x3e40ce();}}async function waitForWebSocketOpen(_0x519cd7,_0xfbe1c0){const _0x44305f={_0x2693f5:0x39b,_0xbffbbf:0x2df,_0x4ff232:0x3a8,_0x5a8258:0x53c,_0x5044c8:0x469},_0x209601={_0x54dafc:0x2b4,_0x4dc5c3:0x18d,_0x32fbf4:0x2be,_0x988a34:0x2ad,_0x4fb5ee:0x1c9,_0x5a2afd:0x279,_0x42e0ef:0x2c1,_0x32633c:0x26b,_0x3cc1e9:0x250,_0x206156:0x263},_0x458617={_0x240924:0x790,_0xd78a5f:0x5f},_0x27e2f4={_0x2162f5:0x220,_0x3f5dde:0x4a0,_0x57bd3d:0x4ca,_0x2efb92:0x4b3,_0x49efb9:0x4a4,_0x17f019:0x14d,_0xc5b420:0x1be,_0x454e:0x17e,_0x55e309:0x4ba,_0x49ac7c:0x50d},_0x324819={_0x5f2fe2:0x113,_0x5be622:0x1d8};if(_0x519cd7[_0x5d190a(_0x44305f._0x2693f5,0x24f,_0x44305f._0xbffbbf,0x1fd)]===WebSocket[_0x5d190a(_0x44305f._0x4ff232,_0x44305f._0x5a8258,_0x44305f._0x5044c8,0x3af)]){throwIfAborted(_0xfbe1c0);return;}throwIfAborted(_0xfbe1c0);function _0x1a0821(_0x544d40,_0x46e890,_0x25bad3,_0x2e3b6a){return _0x55b3f6(_0x544d40-0xb5,_0x544d40-0x3a7,_0x25bad3,_0x2e3b6a-0xa5);}function _0x5d190a(_0x5a9f9b,_0x2ad65b,_0x5e8d40,_0x4afb8d){return _0x51d0c0(_0x5a9f9b-_0x324819._0x5f2fe2,_0x2ad65b-0x1b0,_0x5e8d40- -_0x324819._0x5be622,_0x5a9f9b);}await new Promise((_0x37fb29,_0x5c9c19)=>{const _0xba6cf0={_0x75f82e:0xa2,_0x29a501:0xdf,_0x1700a1:0x2a,_0x16de1b:0x42,_0x3d813f:0x1b2,_0x3f661a:0xdd,_0x5de59b:0x64},_0x889154={_0x2dcf90:0x2de,_0x2e0d02:0x3b0,_0x35f21f:0x44b,_0x515db5:0x128,_0x4621f6:0x8e},_0x22e7b9={_0x2b0b57:0x1dc},_0xee4d22={_0x466238:0x2f8},_0x3393a2={_0x392e8f:0x2e5,_0x11ac27:0x2f9,_0x2845d5:0x378,_0x7c55e5:0x3cf,_0x3c0557:0x2ff,_0x1aaf7f:0x462},_0x557186={_0x589d86:0x15},_0x55d541=()=>{_0x3447e5(),_0x37fb29();},_0x38f60e=_0x395c40=>{function _0x3712b2(_0x173096,_0x23cf2,_0x4eb061,_0x4ed692){return _0x5dd8(_0x23cf2-0x105,_0x4eb061);}function _0x2dfb13(_0x1d76ba,_0x2f9c8b,_0xc84033,_0x298f1e){return _0x5dd8(_0x1d76ba-_0x557186._0x589d86,_0x298f1e);}_0x3447e5(),_0x5c9c19(new Error(_0x395c40[_0x3712b2(0x397,0x3b0,_0x3393a2._0x392e8f,_0x3393a2._0x11ac27)]||_0x3712b2(_0x3393a2._0x2845d5,_0x3393a2._0x7c55e5,_0x3393a2._0x3c0557,_0x3393a2._0x1aaf7f)));},_0x86b966=_0x20c6d8=>{function _0x4e875f(_0x1465ea,_0x58f3ad,_0x2e66d3,_0x83ce87){return _0x5dd8(_0x58f3ad- -_0xee4d22._0x466238,_0x2e66d3);}function _0x471770(_0x394e5c,_0x3328ab,_0x38410d,_0x3f56ab){return _0x5dd8(_0x38410d-_0x22e7b9._0x2b0b57,_0x394e5c);}_0x3447e5();const _0x5e86d6=_0x20c6d8;_0x5c9c19(new Error(_0x5e86d6[_0x471770(0x366,_0x889154._0x2dcf90,_0x889154._0x2e0d02,_0x889154._0x35f21f)]||_0x4e875f(-0x9d,-_0x889154._0x515db5,-0xb5,-_0x889154._0x4621f6)));},_0x43904d=()=>{const _0x19a781={_0x50bdf5:0x8f};_0x3447e5();function _0x471f0f(_0x5b77c6,_0x372a5f,_0xf046af,_0x23d118){return _0x5dd8(_0xf046af-0x339,_0x23d118);}_0x519cd7[_0x471f0f(0x38a,0x44a,0x45e,0x50b)]===WebSocket[_0x234982(0x2d1,_0x27e2f4._0x2162f5,0x29d,0x244)]&&_0x519cd7[_0x471f0f(_0x27e2f4._0x3f5dde,_0x27e2f4._0x57bd3d,_0x27e2f4._0x2efb92,_0x27e2f4._0x49efb9)](0x3e8,_0x234982(_0x27e2f4._0x17f019,_0x27e2f4._0xc5b420,0x216,_0x27e2f4._0x454e));function _0x234982(_0x725c3f,_0x4d90ec,_0x43acb2,_0x36ea03){return _0x5dd8(_0x4d90ec- -_0x19a781._0x50bdf5,_0x36ea03);}_0x5c9c19(toAbortError(_0xfbe1c0?.[_0x471f0f(_0x27e2f4._0x55e309,0x513,_0x27e2f4._0x49ac7c,0x5b3)]));},_0x3447e5=()=>{const _0x12983e={_0x7becc6:0x391};_0x519cd7[_0x1b8dd4(_0xba6cf0._0x75f82e,-0x42,-_0xba6cf0._0x29a501,0xa4)](_0x1b8dd4(-0xa2,-_0xba6cf0._0x1700a1,-0x10a,0x9e),_0x55d541);function _0x1b8dd4(_0x43131a,_0x1c9e8a,_0x29a730,_0x169912){return _0x5dd8(_0x1c9e8a- -0x18c,_0x169912);}_0x519cd7['removeEventListener']('error',_0x38f60e);function _0x690100(_0x392925,_0xe5a17a,_0x39d739,_0xbfde4){return _0x5dd8(_0x39d739-_0x12983e._0x7becc6,_0xbfde4);}_0x519cd7['removeEventListener']('close',_0x86b966),_0xfbe1c0?.[_0x1b8dd4(-0x8e,-_0xba6cf0._0x16de1b,-0xe1,0x11)](_0x1b8dd4(_0xba6cf0._0x3d813f,_0xba6cf0._0x3f661a,0xf5,_0xba6cf0._0x5de59b),_0x43904d);};_0x519cd7[_0x4074db(-_0x209601._0x54dafc,-0x22c,-0x2d7,-0x253)](_0x4074db(-0x276,-0x204,-_0x209601._0x4dc5c3,-_0x209601._0x32fbf4),_0x55d541),_0x519cd7[_0x4074db(-_0x209601._0x54dafc,-0x2e1,-0x275,-_0x209601._0x988a34)](_0x216ff0(-0x2a4,-0x21c,-0x143,-_0x209601._0x4fb5ee),_0x38f60e),_0x519cd7[_0x216ff0(-_0x209601._0x5a2afd,-0x221,-0x36f,-_0x209601._0x42e0ef)](_0x216ff0(-0x2ba,-0x21b,-0x184,-_0x209601._0x32633c),_0x86b966);function _0x216ff0(_0x59b778,_0x5b11aa,_0x1f30af,_0xe072c7){return _0x1a0821(_0xe072c7- -_0x458617._0x240924,_0x5b11aa-_0x458617._0xd78a5f,_0x1f30af,_0xe072c7-0x121);}function _0x4074db(_0x7f4018,_0x4e966a,_0x48203b,_0x1e64a9){return _0x1a0821(_0x7f4018- -0x783,_0x4e966a-0x15a,_0x4e966a,_0x1e64a9-0x25);}_0xfbe1c0?.[_0x216ff0(-0x1dc,-_0x209601._0x3cc1e9,-0x2e7,-_0x209601._0x42e0ef)](_0x216ff0(-0xc5,-0x154,-_0x209601._0x206156,-0x17c),_0x43904d,{'once':!![]});});}function iterateWebSocketMessages(_0x51b25f,_0xe0567a){const _0x4755ef={_0x1f67d0:0x43a,_0x3cc506:0x453,_0x13214e:0x3fd,_0x508954:0x36e,_0x22ad00:0x55b,_0x7892df:0x332,_0x454ccc:0x36e,_0x535cf6:0x332,_0x148e79:0x518,_0x5836db:0x548,_0x25a177:0x4c6,_0xad148d:0x55a},_0x3d4e42={_0x10da1e:0x4ef,_0x1989bd:0x586,_0x3bd818:0x391,_0xd3adfd:0x345,_0x13b662:0x292,_0x3db9fc:0x250,_0x2753b4:0x31f,_0x538c85:0x333},_0x32633f={_0x4b4f7d:0x1ef},_0x46fe74={_0x2919d3:0x87,_0x243efb:0xc2,_0x16a40e:0x115,_0x9ecaab:0xc6,_0x2eda8f:0x11,_0x3cc50b:0x33,_0x28b162:0xac},_0x226e2e={_0x42c430:0x25e,_0x1349ba:0x17a,_0x3f5469:0x1ba,_0x104e8a:0xbb,_0x2cdf61:0x50c},_0x5bd549={_0xc7b713:0x2d1},_0x10bd33={_0x40ba8f:0x109,_0x212250:0xc4,_0x2b4649:0x14d,_0xca4e61:0x5be,_0x1083ee:0x5a8,_0x58d6ad:0x4f2},_0x617b6f={_0x11819c:0x57c,_0x4bdfe7:0x550,_0x29ee45:0x490,_0xdd5841:0x5ff,_0x250bf3:0x3ee,_0x49caa6:0x48b,_0x5eb864:0x531,_0x4443c3:0x5bd,_0x4f5863:0x498,_0x14a4ac:0x4af,_0x3f4ea1:0x50c,_0x484851:0x429},_0x16319b={_0xded991:0xc6,_0x17d3c5:0xbd,_0x24e9d6:0x203},_0x2276e1=[];function _0x509698(_0x450a12,_0x2fa3a2,_0x4865df,_0x2cffe0){return _0x51d0c0(_0x450a12-_0x16319b._0xded991,_0x2fa3a2-_0x16319b._0x17d3c5,_0x450a12- -_0x16319b._0x24e9d6,_0x4865df);}function _0x390595(_0x585738,_0x1f9e86,_0x1a7caa,_0x3e9a2e){return _0x55b3f6(_0x585738-0xdf,_0x3e9a2e-0x3dc,_0x585738,_0x3e9a2e-0x3c);}let _0x4d2322=![],_0x3675b2,_0x49625e;const _0x5ac4be=_0x58c8b2=>{const _0x1465c1={_0x4ea987:0x277},_0x16295c={_0x37a040:0x3a5};function _0x3b1a20(_0x1e76af,_0x12f488,_0x1cc7a9,_0x315da0){return _0x5dd8(_0x12f488-_0x16295c._0x37a040,_0x315da0);}const _0x23bef1=_0x58c8b2;function _0x341657(_0x141d78,_0x55f426,_0x49ecce,_0x8f20c4){return _0x5dd8(_0x49ecce-_0x1465c1._0x4ea987,_0x141d78);}try{_0x2276e1[_0x3b1a20(_0x617b6f._0x11819c,_0x617b6f._0x4bdfe7,_0x617b6f._0x29ee45,_0x617b6f._0xdd5841)](JSON[_0x341657(0x4bd,0x3e1,_0x617b6f._0x250bf3,_0x617b6f._0x49caa6)](String(_0x23bef1[_0x341657(_0x617b6f._0x5eb864,_0x617b6f._0x4443c3,0x54f,_0x617b6f._0x4f5863)]))),_0x49625e?.(),_0x49625e=void 0x0;}catch(_0xb80b0b){_0x3675b2=new Error(_0x3b1a20(_0x617b6f._0x14a4ac,_0x617b6f._0x3f4ea1,0x51e,_0x617b6f._0x484851)+toErrorMessage(_0xb80b0b)),_0x49625e?.(),_0x49625e=void 0x0;}},_0x2e75a9=_0x456c29=>{const _0x475146={_0x4582ea:0x1e7},_0x3a6eea=_0x456c29;function _0xbe9635(_0x5b098a,_0x39c68a,_0x5a5363,_0x13d8a5){return _0x5dd8(_0x13d8a5-0x228,_0x39c68a);}_0x3675b2=new Error(_0x3a6eea[_0x12193a(_0x10bd33._0x40ba8f,0x18a,_0x10bd33._0x212250,_0x10bd33._0x2b4649)]||_0xbe9635(_0x10bd33._0xca4e61,_0x10bd33._0x1083ee,0x54b,_0x10bd33._0x58d6ad)),_0x49625e?.();function _0x12193a(_0x192d45,_0x5b79ab,_0x39b754,_0x2223f4){return _0x5dd8(_0x39b754- -_0x475146._0x4582ea,_0x5b79ab);}_0x49625e=void 0x0;},_0x31902c=_0x15bd72=>{function _0x34b768(_0x4fef39,_0x5b94ff,_0x804ab0,_0x4d7dac){return _0x5dd8(_0x804ab0- -0xc1,_0x4fef39);}function _0x421558(_0x47a46a,_0x5f2f2f,_0x2f14e9,_0x21ae45){return _0x5dd8(_0x2f14e9-_0x5bd549._0xc7b713,_0x21ae45);}const _0x2739dd=_0x15bd72;!_0x4d2322&&_0x2739dd[_0x34b768(_0x226e2e._0x42c430,0xba,_0x226e2e._0x1349ba,_0x226e2e._0x3f5469)]!==0x3e8&&!_0x3675b2&&(_0x3675b2=new Error(_0x2739dd['reason']||_0x34b768(0x1ca,0xf4,0x151,_0x226e2e._0x104e8a)+_0x2739dd[_0x421558(0x4c1,0x4cd,_0x226e2e._0x2cdf61,0x4b7)])),_0x4d2322=!![],_0x49625e?.(),_0x49625e=void 0x0;},_0x11219c=addAbortListener(_0xe0567a,()=>{const _0x1f3e4d={_0x270d69:0x1b7},_0x261075={_0x2d036b:0x19a};function _0x2c4a0d(_0x1338c8,_0x4ddeec,_0xb0c6ac,_0x5096c9){return _0x5dd8(_0x1338c8- -_0x261075._0x2d036b,_0x4ddeec);}_0x3675b2=toAbortError(_0xe0567a?.[_0x2c4a0d(0x3a,_0x46fe74._0x2919d3,_0x46fe74._0x243efb,0x30)]);_0x51b25f['readyState']===WebSocket[_0x2c4a0d(_0x46fe74._0x16a40e,0x104,0x1c5,0x1af)]&&_0x51b25f[_0x1ea30c(-0x5c,-_0x46fe74._0x9ecaab,-0x3d,-0x7a)](0x3e8,_0x2c4a0d(0xb3,_0x46fe74._0x2eda8f,-_0x46fe74._0x3cc50b,_0x46fe74._0x28b162));function _0x1ea30c(_0x13892b,_0x3400d2,_0x877097,_0x2872c1){return _0x5dd8(_0x877097- -_0x1f3e4d._0x270d69,_0x13892b);}_0x49625e?.(),_0x49625e=void 0x0;});return _0x51b25f['addEventListener'](_0x509698(_0x4755ef._0x1f67d0,_0x4755ef._0x3cc506,_0x4755ef._0x13214e,_0x4755ef._0x508954),_0x5ac4be),_0x51b25f[_0x390595(0x49b,_0x4755ef._0x22ad00,0x5ea,0x504)](_0x509698(0x3ab,_0x4755ef._0x7892df,0x355,_0x4755ef._0x454ccc),_0x2e75a9),_0x51b25f[_0x509698(0x2b3,0x320,0x22c,_0x4755ef._0x535cf6)](_0x390595(_0x4755ef._0x148e79,_0x4755ef._0x5836db,_0x4755ef._0x25a177,_0x4755ef._0xad148d),_0x31902c),{async*[Symbol[_0x509698(0x2a1,0x204,0x277,0x276)]](){const _0x23294a={_0x156495:0x1ee,_0x5a1953:0x9d,_0x509022:0x23b};function _0xa83321(_0x109f98,_0x984e5e,_0x5d5343,_0x34f128){return _0x509698(_0x34f128-0x14c,_0x984e5e-_0x32633f._0x4b4f7d,_0x5d5343,_0x34f128-0x1eb);}function _0x39ace8(_0x1b9489,_0x115534,_0x19f70f,_0x402d78){return _0x390595(_0x115534,_0x115534-_0x23294a._0x156495,_0x19f70f-_0x23294a._0x5a1953,_0x19f70f- -_0x23294a._0x509022);}try{while(!![]){if(_0x3675b2)throw _0x3675b2;if(_0x2276e1['length']>0x0){yield _0x2276e1['shift']();continue;}if(_0x4d2322)break;await new Promise(_0x2ae43c=>{_0x49625e=_0x2ae43c;});}}finally{_0x51b25f['removeEventListener'](_0xa83321(0x4eb,_0x3d4e42._0x10da1e,0x4c3,_0x3d4e42._0x1989bd),_0x5ac4be),_0x51b25f[_0xa83321(_0x3d4e42._0x3bd818,0x4d9,0x366,0x425)](_0xa83321(0x48c,0x558,0x4eb,0x4f7),_0x2e75a9),_0x51b25f[_0xa83321(_0x3d4e42._0xd3adfd,0x44a,0x498,0x425)](_0x39ace8(_0x3d4e42._0x13b662,_0x3d4e42._0x3db9fc,_0x3d4e42._0x2753b4,_0x3d4e42._0x538c85),_0x31902c),_0x11219c();}}};}function toWebSocketUrl(_0x5be375,_0x4ed713){const _0x32f8b4={_0x46aa95:0x1fe,_0x513143:0x389,_0x4f8973:0x3c6,_0x500bd4:0x460,_0x390b63:0xd3,_0x519e7f:0x6f,_0x28ba99:0x19d,_0x45e738:0x202,_0x58bde3:0x1d2,_0x14d8e3:0x39a,_0x5585ea:0x415,_0x598a80:0x3c5},_0x82126d={_0x54e7e7:0x1c6,_0x3e152a:0x24f},_0x389fe1={_0x5833ee:0xd3,_0x26291d:0xc0,_0xb4997:0x1a6},_0x58cf7d=new URL(_0x4ed713,_0x5be375);function _0x4cbae1(_0x3bb20a,_0x4c0f2b,_0x2fd4f4,_0x46d80b){return _0x55b3f6(_0x3bb20a-_0x389fe1._0x5833ee,_0x3bb20a- -_0x389fe1._0x26291d,_0x2fd4f4,_0x46d80b-_0x389fe1._0xb4997);}function _0x5e75b4(_0x4405ac,_0xac47f9,_0x10fef2,_0x3e4c77){return _0x51d0c0(_0x4405ac-_0x82126d._0x54e7e7,_0xac47f9-0x18c,_0xac47f9- -_0x82126d._0x3e152a,_0x4405ac);}return _0x58cf7d[_0x4cbae1(0x1c7,0x20f,0x132,_0x32f8b4._0x46aa95)]=_0x58cf7d[_0x5e75b4(_0x32f8b4._0x513143,_0x32f8b4._0x4f8973,_0x32f8b4._0x500bd4,0x455)]===_0x4cbae1(0x13e,0x5c,_0x32f8b4._0x390b63,_0x32f8b4._0x519e7f)?_0x4cbae1(0x1c4,0x128,0x1d1,0x157):_0x4cbae1(_0x32f8b4._0x28ba99,0x1ac,_0x32f8b4._0x45e738,_0x32f8b4._0x58bde3),_0x58cf7d[_0x5e75b4(_0x32f8b4._0x14d8e3,_0x32f8b4._0x5585ea,0x42c,_0x32f8b4._0x598a80)]();}var ProviderSessionManager=class{[_0x51d0c0(0x638,0x4e6,0x57e,0x5c9)];[_0x51d0c0(0x555,0x4a7,0x52f,0x4e7)];constructor(_0x1ff6b1){const _0x4f7857={_0x405220:0x508},_0x356e79={_0x244ab5:0x44};function _0x54de72(_0x1edfd6,_0x55c0c1,_0x1e0a82,_0x12fef2){return _0x55b3f6(_0x1edfd6-_0x356e79._0x244ab5,_0x1edfd6-0x318,_0x55c0c1,_0x12fef2-0x4);}this[_0x54de72(_0x4f7857._0x405220,0x4a0,0x452,0x4b9)]=_0x1ff6b1;}async[_0x51d0c0(0x6a8,0x63c,0x5e0,0x65b)](_0x2c01b3){const _0x14447f={_0x61785f:0x422,_0x2e34f4:0x584,_0x18e72d:0x45a,_0x20b357:0x4eb,_0x68ac82:0x42c,_0x72f10c:0x58a,_0x20971a:0x3e9,_0x4b2047:0x4af},_0xb3e23={_0x384541:0xfd},_0x369dae={_0x3a5965:0xa4};!this[_0x5ecfb4(0x4eb,_0x14447f._0x61785f,_0x14447f._0x2e34f4,_0x14447f._0x18e72d)]&&(this[_0x5ecfb4(_0x14447f._0x20b357,0x4c6,0x412,0x535)]=this[_0x15b1a4(0x4e7,_0x14447f._0x68ac82,_0x14447f._0x72f10c,0x4fe)]['resolve'](_0x2c01b3));function _0x5ecfb4(_0x19151a,_0x176fb6,_0x5bb6c3,_0x8565d){return _0x55b3f6(_0x19151a-0xa4,_0x19151a-0x34a,_0x176fb6,_0x8565d-_0x369dae._0x3a5965);}function _0x15b1a4(_0x5db25b,_0xbc871c,_0x45cc62,_0x49d21e){return _0x55b3f6(_0x5db25b-_0xb3e23._0x384541,_0x49d21e-0x30e,_0x45cc62,_0x49d21e-0x9a);}return structuredClone(await this[_0x15b1a4(_0x14447f._0x20971a,0x410,0x52b,_0x14447f._0x4b2047)]);}[_0x51d0c0(0x637,0x4ec,0x552,0x4d0)](){const _0x574dc8={_0x350c23:0x187};function _0x59a8f6(_0x3e0a88,_0x4170f3,_0x269716,_0x495693){return _0x51d0c0(_0x3e0a88-0x67,_0x4170f3-_0x574dc8._0x350c23,_0x3e0a88- -0x415,_0x495693);}this[_0x59a8f6(0x11a,0x1bd,0xf6,0x75)]=void 0x0;}};async function prepareProviderRequest(_0x4b6eaf,_0x594487={}){const _0x6334a3={_0x16c355:0x2f6,_0x443c01:0x322,_0x20cf7b:0x2ef,_0x5be1cc:0x3ab,_0x5b72d1:0x414,_0x4b433e:0x1df,_0x39d6da:0x65,_0x58131c:0xcc,_0xc1dc7f:0x3},_0x220884={_0x4896d3:0x624},_0x5a5f0a={_0x300221:0x3e};function _0x2f9c02(_0x29d57e,_0x3094df,_0x2aafa6,_0x300a32){return _0x51d0c0(_0x29d57e-_0x5a5f0a._0x300221,_0x3094df-0x76,_0x3094df- -0x235,_0x2aafa6);}let _0x2bf991={'request':structuredClone(_0x4b6eaf),'session':_0x594487[_0x2f9c02(0x24c,_0x6334a3._0x16c355,_0x6334a3._0x443c01,_0x6334a3._0x20cf7b)]?await _0x594487[_0x2f9c02(0x33d,0x2f6,0x321,0x3b8)][_0x2f9c02(0x37c,_0x6334a3._0x5be1cc,0x351,_0x6334a3._0x5b72d1)](_0x594487[_0x4c4cc1(-_0x6334a3._0x4b433e,-0x136,-0x22a,-0x160)]):void 0x0};for(const _0x2a0b55 of _0x594487[_0x4c4cc1(-0x26,_0x6334a3._0x39d6da,-_0x6334a3._0x58131c,-_0x6334a3._0xc1dc7f)]??[]){_0x2bf991=await _0x2a0b55(_0x2bf991);}function _0x4c4cc1(_0x1729c1,_0x619e0d,_0x3be8f4,_0x31a675){return _0x51d0c0(_0x1729c1-0x15a,_0x619e0d-0x158,_0x31a675- -_0x220884._0x4896d3,_0x1729c1);}return _0x2bf991;}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'];['maxTokens'];[_0x55b3f6(0x22e,0x153,0x1d2,0xaf)];['apiKey'];[_0x51d0c0(0x4cc,0x508,0x4f8,0x41e)];[_0x55b3f6(0x20c,0x1c9,0x16d,0x26c)];['providerAdapter'];[_0x55b3f6(0x257,0x293,0x30f,0x34f)];['router'];['sessionManager'];['webSocketFactory'];[_0x55b3f6(0x270,0x23e,0x195,0x278)]=new Map();constructor(_0x385f4e){const _0x166d19={_0x62f637:0x160,_0x16168b:0x18f,_0x2bb4f2:0x5ae,_0x13118f:0x5d2,_0x425f8e:0x4f3,_0x24c597:0x525,_0x365d70:0xb3,_0x3da6da:0x149,_0x539c1c:0x52,_0x4d1d8b:0x4e,_0x1d7616:0xdd,_0x193139:0x22,_0x5502fd:0x4a2,_0x4ee966:0x3e8,_0x2e427e:0x464,_0xae992d:0x4dd,_0x93c1b0:0x48e,_0x3101b0:0x12a,_0x4afcbc:0x39,_0x1f7ab2:0x129,_0x4d5861:0x11b,_0x33881e:0x605,_0x38a141:0x542,_0x300f56:0x50c,_0x18a8bc:0x592,_0x962884:0x67e,_0x39e62c:0x5c1,_0x3c31ea:0x578,_0x1b8457:0x3c4,_0x2a6807:0x482,_0x262f20:0x522,_0x2e458b:0x3f1,_0xa5600:0x4d3,_0x11c2f3:0xfd,_0x5c1e60:0x43,_0x5fd68:0x32,_0x360477:0x581,_0x217458:0x178,_0x54db8a:0x26e,_0x12e3f0:0x2dc,_0x5ea066:0x562,_0x1ae9e2:0x3f7},_0x110865={_0x4ad5b9:0x14a},_0x98e3f={_0x1e9f8b:0x1d5};this['model']=_0x385f4e[_0x57e4cb(_0x166d19._0x62f637,_0x166d19._0x16168b,0x123,0x1ca)],this[_0x5137d3(_0x166d19._0x2bb4f2,_0x166d19._0x13118f,_0x166d19._0x425f8e,_0x166d19._0x24c597)]=_0x385f4e['maxTokens']??getDefaultMaxTokens(),this['reasoning']=_0x385f4e[_0x57e4cb(_0x166d19._0x365d70,_0x166d19._0x3da6da,_0x166d19._0x539c1c,_0x166d19._0x4d1d8b)]?structuredClone(_0x385f4e[_0x57e4cb(_0x166d19._0x365d70,0x123,_0x166d19._0x1d7616,-_0x166d19._0x193139)]):void 0x0,this[_0x5137d3(_0x166d19._0x5502fd,_0x166d19._0x4ee966,0x4fe,_0x166d19._0x2e427e)]=_0x385f4e[_0x5137d3(0x522,0x3ae,0x46d,0x464)],this[_0x5137d3(0x4cc,_0x166d19._0xae992d,0x3ab,_0x166d19._0x93c1b0)]=_0x385f4e[_0x57e4cb(0xca,_0x166d19._0x3101b0,_0x166d19._0x4afcbc,0x17d)],this[_0x57e4cb(_0x166d19._0x1f7ab2,0x14d,0x66,_0x166d19._0x4d5861)]=_0x385f4e['fetch']??globalThis[_0x5137d3(0x55e,_0x166d19._0x33881e,0x538,_0x166d19._0x38a141)],this[_0x5137d3(0x506,_0x166d19._0x300f56,0x589,_0x166d19._0x18a8bc)]=_0x385f4e['providerAdapter'],this[_0x5137d3(0x52b,0x546,_0x166d19._0x962884,0x5b7)]=_0x385f4e[_0x5137d3(_0x166d19._0x39e62c,0x544,_0x166d19._0x3c31ea,0x5b7)]??[],this[_0x5137d3(0x3bf,_0x166d19._0x1b8457,0x3a1,_0x166d19._0x2a6807)]=_0x385f4e[_0x5137d3(_0x166d19._0x262f20,_0x166d19._0x2e458b,_0x166d19._0xa5600,0x482)];function _0x57e4cb(_0x1d9ead,_0x1d2712,_0x1cd3d1,_0x36c16b){return _0x55b3f6(_0x1d9ead-_0x98e3f._0x1e9f8b,_0x1d9ead- -0xa0,_0x1d2712,_0x36c16b-0x104);}this[_0x57e4cb(_0x166d19._0x11c2f3,_0x166d19._0x62f637,0xed,0x1a8)]=_0x385f4e[_0x57e4cb(0xfd,_0x166d19._0x5c1e60,_0x166d19._0x5fd68,0x1b7)]??(_0x385f4e[_0x5137d3(0x63f,_0x166d19._0x360477,0x53f,0x5c2)]?new ProviderSessionManager(_0x385f4e['providerSessionResolver']):void 0x0);function _0x5137d3(_0x343321,_0x57d563,_0x2236a5,_0x127ef8){return _0x55b3f6(_0x343321-_0x110865._0x4ad5b9,_0x127ef8-0x324,_0x343321,_0x127ef8-0x2c);}this[_0x57e4cb(0x203,_0x166d19._0x217458,_0x166d19._0x54db8a,0x1ba)]=_0x385f4e[_0x57e4cb(0x203,0x2ab,_0x166d19._0x12e3f0,0x2b8)]??createDefaultWebSocketFactory();for(const _0x26f83d of _0x385f4e[_0x5137d3(0x640,0x510,0x5ed,_0x166d19._0x5ea066)]){this[_0x5137d3(0x5b7,0x4ae,0x5b1,0x562)][_0x5137d3(0x473,0x54a,_0x166d19._0x1ae9e2,0x4ad)](_0x26f83d['id'],_0x26f83d);}}['complete'](_0x506f46,_0x19e6a1){const _0x18666e={_0x30e7f0:0x90},_0x732fdd={_0x50eb1d:0x1ed};function _0x3bfd2b(_0x10243e,_0x3620dd,_0x17fd54,_0x557b1a){return _0x55b3f6(_0x10243e-0x56,_0x557b1a- -0x13f,_0x10243e,_0x557b1a-_0x732fdd._0x50eb1d);}return this[_0x3bfd2b(0x111,0x168,_0x18666e._0x30e7f0,0x8d)](_0x506f46,_0x19e6a1);}['stream'](_0x3036bc,_0x3850a5){const _0x312cd1={_0x7b11cc:0xcd,_0xe58f3a:0x144,_0x132204:0x177},_0x1f4f98={_0x47c330:0x1b7};function _0x86ea4b(_0x4bcd81,_0x21c56a,_0x3954d1,_0x43713e){return _0x51d0c0(_0x4bcd81-0x14a,_0x21c56a-_0x1f4f98._0x47c330,_0x4bcd81- -0x580,_0x43713e);}return this[_0x86ea4b(-_0x312cd1._0x7b11cc,-_0x312cd1._0xe58f3a,-0x74,-_0x312cd1._0x132204)](_0x3036bc,_0x3850a5);}async[_0x51d0c0(0x578,0x62d,0x55a,0x629)](_0x2fcd31,_0x96270a){const _0x70b154={_0x321540:0x1ea,_0x170675:0x13d,_0x75bda0:0x267,_0x1e6228:0x143,_0xb32824:0x14c},_0x57a8a5={_0x1d6dc5:0x37,_0x289248:0x374},_0x3f6ea3={_0x1565d6:0xb7};function _0x381a89(_0x192bf7,_0x27084e,_0x3d1522,_0x4c21f9){return _0x55b3f6(_0x192bf7-0x43,_0x192bf7- -0x4d,_0x4c21f9,_0x4c21f9-_0x3f6ea3._0x1565d6);}const _0xac35e9=this[_0x381a89(_0x70b154._0x321540,_0x70b154._0x170675,_0x70b154._0x75bda0,_0x70b154._0x1e6228)](_0x2fcd31),_0x52c92d=await this['router']['selectSurface'](_0xac35e9,{'mode':_0x381a89(0x219,_0x70b154._0xb32824,0x20a,0x215)});function _0xe3f2a5(_0x2c3768,_0x4f0fac,_0x1242ed,_0xf20807){return _0x51d0c0(_0x2c3768-0x1e1,_0x4f0fac-_0x57a8a5._0x1d6dc5,_0xf20807- -_0x57a8a5._0x289248,_0x2c3768);}return this['completeViaSurface'](_0xac35e9,_0x52c92d,_0x96270a);}async*['streamViaRouter'](_0x1abba5,_0x12c043){const _0x447cb2={_0x1aabea:0x43,_0x332cbb:0x6,_0x4ec8c7:0xd1,_0x362384:0x1a5,_0x1b05ff:0x12,_0x3f46c3:0x108},_0x2ab0f8={_0x135bc3:0x1c9,_0x26b303:0xef};function _0x1b66d1(_0x5a5016,_0x510031,_0x11366f,_0x472943){return _0x51d0c0(_0x5a5016-0xc,_0x510031-0x192,_0x472943- -0x582,_0x5a5016);}const _0xd3c0a=this[_0x1b66d1(-0x4c,-0x38,-0x62,_0x447cb2._0x1aabea)](_0x1abba5),_0x36c0ef=await this[_0x411078(-0x6,-0x94,-0x9,-0x9)][_0x411078(0xc7,-_0x447cb2._0x332cbb,_0x447cb2._0x4ec8c7,_0x447cb2._0x362384)](_0xd3c0a,{'mode':_0x411078(0x56,0x11b,_0x447cb2._0x1b05ff,0xad)});function _0x411078(_0x40f5a0,_0x4ee772,_0x26188e,_0x5b443b){return _0x55b3f6(_0x40f5a0-_0x2ab0f8._0x135bc3,_0x40f5a0- -0x164,_0x4ee772,_0x5b443b-_0x2ab0f8._0x26b303);}yield*this[_0x411078(0x11c,0x119,0x131,_0x447cb2._0x3f46c3)](_0xd3c0a,_0x36c0ef,_0x12c043);}async[_0x51d0c0(0x4c2,0x623,0x54f,0x51b)](_0x1ea3f8,_0x46dd18,_0x54c4d9){const _0x523fd0={_0x49dda2:0x5ac,_0x4560fd:0x518,_0x2ab743:0x13b,_0x1823b3:0x1e3,_0x2e88af:0x134,_0x10c5e2:0x129,_0x35be8f:0x5f,_0x3bede5:0x148,_0x1d501d:0x5a1,_0xe41523:0x52c,_0x176a28:0x5e9,_0xbde0f9:0x571,_0x362dfb:0x4e4,_0x4ed7fe:0x4c9,_0x578724:0x10b,_0x12dddc:0x118,_0x527059:0xd4,_0x3a9d10:0x131,_0x13782e:0x1a2,_0x3b074d:0x87,_0x457599:0x86,_0x321ba1:0x105,_0x376be2:0x3e,_0x43de6d:0x9b,_0x443921:0x1d6,_0x4c2c4f:0x1c},_0x3f8898={_0x4cffc2:0x467},_0x2f3425={_0x490757:0x56},_0x84dc6=this['applyModelDefaults'](_0x1ea3f8),_0x1d2640=this['getSurface'](_0x46dd18);if(_0x1d2640[_0x169d4f(_0x523fd0._0x49dda2,0x4ce,_0x523fd0._0x4560fd,0x507)]===_0x243671(_0x523fd0._0x2ab743,0x200,_0x523fd0._0x1823b3,_0x523fd0._0x2e88af)){const _0x47e6b0=await this[_0x169d4f(0x556,0x63a,0x5ed,0x58a)](_0x84dc6,_0x1d2640,![],_0x54c4d9);if(!_0x47e6b0['ok'])throw await this[_0x243671(_0x523fd0._0x10c5e2,0xfa,0x1e6,_0x523fd0._0x35be8f)](_0x47e6b0);if(!_0x1d2640[_0x243671(0x8c,-0x22,_0x523fd0._0x3bede5,-0x57)])throw new Error(_0x169d4f(_0x523fd0._0x1d501d,_0x523fd0._0xe41523,0x591,_0x523fd0._0x176a28)+_0x46dd18+_0x169d4f(_0x523fd0._0xbde0f9,0x4eb,_0x523fd0._0x362dfb,0x566));return _0x1d2640[_0x169d4f(_0x523fd0._0x4ed7fe,0x4c0,0x553,0x504)](await _0x47e6b0[_0x243671(0x78,_0x523fd0._0x578724,0xc1,_0x523fd0._0x12dddc)](),_0x84dc6);}let _0x1dd1e5;for await(const _0x37d2be of this[_0x243671(0x1a7,_0x523fd0._0x527059,_0x523fd0._0x3a9d10,_0x523fd0._0x13782e)](_0x84dc6,_0x46dd18,_0x54c4d9)){_0x37d2be[_0x243671(0x13c,0xee,_0x523fd0._0x527059,0x200)]===_0x243671(_0x523fd0._0x3b074d,_0x523fd0._0x457599,_0x523fd0._0x321ba1,_0x523fd0._0x376be2)&&(_0x1dd1e5=_0x37d2be['response']);}if(!_0x1dd1e5)throw new Error(_0x243671(0xf8,_0x523fd0._0x43de6d,_0x523fd0._0x443921,0x9d)+_0x46dd18+_0x243671(0xc0,0x19f,-_0x523fd0._0x4c2c4f,0x60));function _0x169d4f(_0xb7ab89,_0x318a31,_0x5d2c55,_0x43acdc){return _0x51d0c0(_0xb7ab89-_0x2f3425._0x490757,_0x318a31-0x14,_0x318a31- -0x33,_0x43acdc);}function _0x243671(_0x1ffaa1,_0x450545,_0xde2a47,_0x164702){return _0x51d0c0(_0x1ffaa1-0x1,_0x450545-0xeb,_0x1ffaa1- -_0x3f8898._0x4cffc2,_0xde2a47);}return _0x1dd1e5;}async*[_0x55b3f6(0x34a,0x280,0x311,0x1b1)](_0x49db38,_0x3a01f6,_0x25c5f9){const _0x5b0766={_0x4ff1db:0x392,_0x289947:0x2ce,_0x3263a6:0x243,_0x3f7095:0x36a,_0x38e3e2:0x394,_0x61ea52:0x226,_0x500a60:0x166,_0x7e8a45:0x2f9,_0x25dd46:0x2ac,_0x4cfffc:0x214,_0x183eae:0x1bc,_0x40b109:0x209,_0x1412d4:0x23a,_0x565ac6:0x26b,_0x1c54df:0x236,_0x5d45b9:0x289,_0x5e9587:0x1fd,_0x27a3f4:0x210},_0x1ffc51={_0x12be3f:0x6a,_0x3418a9:0x97,_0x1fe6b0:0x1c8},_0x13c37b=this[_0x333d6f(_0x5b0766._0x4ff1db,0x3b2,_0x5b0766._0x289947,_0x5b0766._0x3263a6)](_0x49db38);function _0x333d6f(_0xba39c5,_0x259e18,_0x43fa00,_0x3ec095){return _0x55b3f6(_0xba39c5-_0x1ffc51._0x12be3f,_0x43fa00-_0x1ffc51._0x3418a9,_0x3ec095,_0x3ec095-_0x1ffc51._0x1fe6b0);}const _0x26e3af=this[_0xaa8f0(0x3a4,_0x5b0766._0x3f7095,0x2dc,_0x5b0766._0x38e3e2)](_0x3a01f6);if(_0x26e3af[_0xaa8f0(_0x5b0766._0x61ea52,_0x5b0766._0x500a60,0x2ee,0x24d)]===_0xaa8f0(_0x5b0766._0x7e8a45,0x36e,0x367,0x2ee)){const _0x4a0211=await this[_0x333d6f(_0x5b0766._0x25dd46,0x1d3,0x258,_0x5b0766._0x4cfffc)](_0x13c37b,_0x3a01f6,_0x25c5f9);yield{'type':_0xaa8f0(_0x5b0766._0x183eae,0x173,_0x5b0766._0x40b109,_0x5b0766._0x1412d4),'response':_0x4a0211};return;}if(_0x26e3af[_0xaa8f0(_0x5b0766._0x565ac6,0x1b1,0x218,0x24d)]===_0x333d6f(0x27b,_0x5b0766._0x1c54df,0x266,_0x5b0766._0x5d45b9)){yield*this['streamHttpSurface'](_0x13c37b,_0x26e3af,_0x25c5f9);return;}function _0xaa8f0(_0x47504e,_0x28c380,_0x2c420a,_0x1df01f){return _0x51d0c0(_0x47504e-0x199,_0x28c380-0x14a,_0x1df01f- -0x2b4,_0x28c380);}yield*this['streamWebSocketSurface'](_0x13c37b,_0x26e3af,_0x25c5f9?.[_0xaa8f0(0x2a8,_0x5b0766._0x5e9587,0x187,_0x5b0766._0x27a3f4)]);}async['sendRawRequest'](_0xbb8c24){const _0xfe3ac2={_0x14c21:0x197,_0x4ad602:0x19a,_0x163edf:0x1d2,_0x219a05:0x2be,_0x101630:0x17e,_0x1e320e:0x239,_0x4f64c2:0x28a,_0xbf0b:0x241,_0x346da8:0x398,_0x5d7e5d:0x2f4,_0x104f97:0x3aa,_0x204800:0x30a,_0x3c2e66:0x82,_0x1967cf:0xf5,_0x4eefa8:0x208,_0x36f4cc:0xf3,_0x28800e:0x2e2,_0x3c1c1a:0x23a,_0x2128b3:0x297,_0x1173be:0x322,_0x1c47be:0x1dc,_0x17b81d:0xd0,_0x2652c8:0x1b8,_0x3e9c27:0x164,_0x2ffb55:0x105,_0x117bd7:0x166,_0x5b0a72:0x211,_0x4821fb:0x1a9,_0x3b024a:0x22c,_0x20f28c:0x2ef,_0x25bb43:0x199,_0x2f136a:0x1fb,_0x3730a3:0x171,_0x44b354:0x224,_0x57d292:0x244,_0x1772b9:0x190,_0x1a3994:0x18c,_0x2325a6:0x12e,_0x2ffedf:0xcf,_0xbc5f28:0x1fc,_0x3aaba2:0xc0,_0x225295:0xa7,_0x2db157:0x1cf,_0x3f3b32:0x268,_0x1c959d:0x1cb,_0x5e731f:0x1d2},_0xacd8b0=async()=>{const _0x377091={_0x567daa:0xa0},_0x48ded6=this[_0x2539c8(_0xfe3ac2._0x14c21,_0xfe3ac2._0x4ad602,0x23f,0x271)]?await this[_0x53b67e(_0xfe3ac2._0x163edf,_0xfe3ac2._0x219a05,_0xfe3ac2._0x101630,_0xfe3ac2._0x1e320e)]['resolve'](_0xbb8c24[_0x53b67e(_0xfe3ac2._0x4f64c2,_0xfe3ac2._0xbf0b,0x17c,_0xfe3ac2._0x163edf)]):void 0x0,_0x4c3fb7=this[_0x53b67e(_0xfe3ac2._0x346da8,_0xfe3ac2._0x5d7e5d,_0xfe3ac2._0x104f97,_0xfe3ac2._0x204800)]['resolveCredential'](this[_0x2539c8(_0xfe3ac2._0x3c2e66,0x13d,_0xfe3ac2._0x1967cf,_0xfe3ac2._0x4eefa8)],_0x48ded6);function _0x2539c8(_0x3f89e4,_0x44f46a,_0x222239,_0x5b8cdf){return _0x5dd8(_0x44f46a-0x1,_0x222239);}if(!_0x4c3fb7)throw this[_0x2539c8(_0xfe3ac2._0x36f4cc,0x130,0x57,0x20b)]();const _0x24b198=await this[_0x53b67e(_0xfe3ac2._0x28800e,_0xfe3ac2._0x3c1c1a,_0xfe3ac2._0x2128b3,_0xfe3ac2._0x1173be)]({'body':_0xbb8c24[_0x53b67e(_0xfe3ac2._0x1c47be,0x1a1,_0xfe3ac2._0x17b81d,_0xfe3ac2._0x2652c8)],'credential':_0x4c3fb7,'session':_0x48ded6,'stream':![]},{'accept':_0xbb8c24[_0x2539c8(0x104,_0xfe3ac2._0x3e9c27,0x171,_0xfe3ac2._0x2ffb55)]??_0x53b67e(0x434,0x340,0x445,0x364),'includeContentType':_0xbb8c24[_0x2539c8(0x15b,_0xfe3ac2._0x117bd7,_0xfe3ac2._0x5b0a72,_0xfe3ac2._0x4821fb)]==='POST'});function _0x53b67e(_0x3ab919,_0x573e82,_0x4be79f,_0x55b3d3){return _0x5dd8(_0x55b3d3-_0x377091._0x567daa,_0x4be79f);}return this['fetchImpl'](''+this[_0x53b67e(_0xfe3ac2._0x3b024a,_0xfe3ac2._0x20f28c,0x2ef,_0xfe3ac2._0x204800)][_0x53b67e(_0xfe3ac2._0x25bb43,_0xfe3ac2._0x2f136a,_0xfe3ac2._0x3730a3,0x233)](this[_0x2539c8(_0xfe3ac2._0x44b354,0x167,0x168,0xe9)],_0x48ded6)+_0xbb8c24['path'],{'method':_0xbb8c24[_0x53b67e(_0xfe3ac2._0x57d292,_0xfe3ac2._0x1772b9,0x22e,0x205)],'headers':_0x24b198,..._0xbb8c24[_0x53b67e(0x1e8,_0xfe3ac2._0x1a3994,_0xfe3ac2._0x2325a6,_0xfe3ac2._0x2652c8)]!==void 0x0?{'body':JSON[_0x2539c8(_0xfe3ac2._0x2ffedf,0x177,0x1a7,_0xfe3ac2._0xbc5f28)](_0xbb8c24[_0x2539c8(_0xfe3ac2._0x3aaba2,0x119,_0xfe3ac2._0x225295,_0xfe3ac2._0x2db157)])}:{},'signal':_0xbb8c24[_0x53b67e(0x147,_0xfe3ac2._0x3f3b32,_0xfe3ac2._0x1c959d,_0xfe3ac2._0x5e731f)]});};return await this['sendWithRetries'](_0xacd8b0,_0xbb8c24);}['getRetryDelayMs'](_0x17f79c,_0x1d08d4){const _0x453864={_0x5ec6ae:0x487,_0x522c68:0x4b8,_0x44f8fe:0x112,_0x50a1e2:0x19a,_0x38f20e:0x121,_0x52b740:0x18f,_0x57b705:0x12c,_0xd12389:0x13b,_0x318bf7:0x63b},_0x1143cc={_0x1813c7:0xd3,_0x181c9b:0x402},_0x5d795a=_0x17f79c?.[_0x33face(_0x453864._0x5ec6ae,0x565,_0x453864._0x522c68,0x5ef)]['get'](_0x45d769(0xac,_0x453864._0x44f8fe,0x110,-0x32));function _0x45d769(_0x5a91c8,_0x1629b5,_0x557767,_0x1c9d67){return _0x51d0c0(_0x5a91c8-0x103,_0x1629b5-_0x1143cc._0x1813c7,_0x5a91c8- -_0x1143cc._0x181c9b,_0x1c9d67);}if(_0x5d795a){const _0x42343c=Number(_0x5d795a);if(Number[_0x45d769(0x121,0x144,0x199,_0x453864._0x50a1e2)](_0x42343c)&&_0x42343c>=0x0)return _0x42343c*0x3e8;const _0x467da2=Date['parse'](_0x5d795a);if(Number[_0x45d769(_0x453864._0x38f20e,0x8f,0xec,_0x453864._0x52b740)](_0x467da2))return Math[_0x45d769(_0x453864._0x57b705,0x174,0x1ee,_0x453864._0xd12389)](0x0,_0x467da2-Date[_0x33face(0x5cc,_0x453864._0x318bf7,0x6d6,0x6ac)]());}function _0x33face(_0x164957,_0x4cdf96,_0xce029,_0x165a15){return _0x55b3f6(_0x164957-0xdd,_0x4cdf96-0x39e,_0xce029,_0x165a15-0x139);}const _0x5a5cd3=DEFAULT_RETRY_DELAY_MS*0x2**_0x1d08d4;if(_0x5a5cd3<RETRY_DELAY_STEP_CAP_MS)return _0x5a5cd3;return RETRY_DELAY_STEP_CAP_MS*0x2**(_0x1d08d4-0x5);}[_0x55b3f6(0x24c,0x1a8,0x147,0xff)](_0x4a0f8e){const _0x2516a9={_0xf1d16c:0x10d,_0x2ecd6d:0x15f,_0x536980:0x14d,_0x222d46:0x182},_0x4dd978={_0xcc136d:0x1dc,_0x568f19:0x101},_0x3f11ef={_0x463997:0x88,_0x3770c8:0x45b};function _0x49a04d(_0x32b53a,_0x200e99,_0x4ac3db,_0x2ebe7c){return _0x51d0c0(_0x32b53a-0x154,_0x200e99-_0x3f11ef._0x463997,_0x2ebe7c- -_0x3f11ef._0x3770c8,_0x4ac3db);}function _0xba7d6c(_0x972b75,_0x98196e,_0x3acda0,_0x2ea0b5){return _0x51d0c0(_0x972b75-_0x4dd978._0xcc136d,_0x98196e-_0x4dd978._0x568f19,_0x3acda0- -0x498,_0x2ea0b5);}return RETRYABLE_HTTP_STATUSES[_0xba7d6c(_0x2516a9._0xf1d16c,_0x2516a9._0x2ecd6d,0xa4,_0x2516a9._0x536980)](_0x4a0f8e[_0xba7d6c(0x129,0xfb,_0x2516a9._0x222d46,0x12b)]);}['shouldRetryRequestError'](_0x124878){return!isAbortError(_0x124878)&&_0x124878 instanceof TypeError;}[_0x51d0c0(0x5eb,0x653,0x605,0x5e4)](_0x43858f){const _0x1b3004={_0x21988e:0x4d4,_0x4f3a2a:0x47b,_0x56fa6c:0x4cb},_0x3e1570={_0x290c19:0x1c,_0x59dd95:0x49};function _0x1a7ee2(_0x2b793a,_0xbb979c,_0x2a6237,_0x358ddb){return _0x51d0c0(_0x2b793a-_0x3e1570._0x290c19,_0xbb979c-_0x3e1570._0x59dd95,_0x358ddb- -0x46,_0x2a6237);}return this[_0x1a7ee2(_0x1b3004._0x21988e,0x443,_0x1b3004._0x4f3a2a,_0x1b3004._0x56fa6c)](_0x43858f)||isRetryableProviderStreamEventError(_0x43858f);}async['waitForRetry'](_0x3980ad,_0x4c0af3){throwIfAborted(_0x4c0af3),await new Promise((_0x5390cc,_0x40223d)=>{const _0x3987d7={_0x5db012:0x1d1,_0x142680:0x25d,_0x479681:0x1a0};let _0x4dab2c=![];const _0x44e55a=addAbortListener(_0x4c0af3,()=>{function _0x476472(_0xaa7896,_0x360851,_0x13916e,_0x47eb5b){return _0x5dd8(_0x13916e-0x89,_0x47eb5b);}if(_0x4dab2c)return;_0x4dab2c=!![],clearTimeout(_0x253526),_0x40223d(toAbortError(_0x4c0af3?.[_0x476472(0x1e5,_0x3987d7._0x5db012,_0x3987d7._0x142680,_0x3987d7._0x479681)]));}),_0x253526=setTimeout(()=>{_0x4dab2c=!![],_0x44e55a(),_0x5390cc();},_0x3980ad);}),throwIfAborted(_0x4c0af3);}async[_0x51d0c0(0x631,0x5ab,0x5d6,0x683)](_0x44c7b8,_0x973560={}){const _0x2ccc86={_0x3c0000:0x260,_0x450381:0x19b,_0x352973:0xc5,_0x42a6b7:0x14c,_0x12e36c:0xac,_0xc11306:0x197,_0x4b712d:0x19e,_0x3c9cf6:0x246,_0x159e93:0x176,_0x10d84b:0xbc,_0x5d6cfe:0x19e,_0x388c06:0x13f,_0x47ac78:0x208,_0x3708aa:0x496},_0x5dbc0d={_0x5cefce:0xd},{signal:_0x142895}=_0x973560;function _0x4bf390(_0x4fc57a,_0x26d929,_0x3cd3f7,_0x1145c5){return _0x55b3f6(_0x4fc57a-0x162,_0x4fc57a- -_0x5dbc0d._0x5cefce,_0x26d929,_0x1145c5-0x14e);}function _0x4d9eed(_0x1b8453,_0x370536,_0x1ef15c,_0xd8407d){return _0x51d0c0(_0x1b8453-0xfa,_0x370536-0x1ec,_0xd8407d- -0x1bd,_0x1b8453);}let _0x4a1d77=![];for(let _0x45d741=0x0;_0x45d741<MAX_PROVIDER_REQUEST_ATTEMPTS;_0x45d741+=0x1){throwIfAborted(_0x142895);try{const _0x3e54a5=await _0x44c7b8();if(_0x3e54a5['status']===0x191&&this['sessionManager']&&!_0x4a1d77){_0x4a1d77=!![],this['sessionManager'][_0x4bf390(0x1b7,_0x2ccc86._0x3c0000,0x168,0x1e1)]();continue;}if(!this[_0x4bf390(_0x2ccc86._0x450381,0xf0,_0x2ccc86._0x352973,0x221)](_0x3e54a5)||_0x45d741===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)return _0x3e54a5;const _0xe22eb7=this[_0x4bf390(_0x2ccc86._0x42a6b7,0x1f4,_0x2ccc86._0x12e36c,_0x2ccc86._0xc11306)](_0x3e54a5,_0x45d741);await this[_0x4bf390(_0x2ccc86._0x4b712d,_0x2ccc86._0x3c9cf6,0x123,0x216)](_0xe22eb7,_0x142895);}catch(_0x2a4911){if(!this[_0x4bf390(_0x2ccc86._0x159e93,0x18c,_0x2ccc86._0x10d84b,0x128)](_0x2a4911)||_0x45d741===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0x2a4911;const _0x1663cb=this['getRetryDelayMs'](void 0x0,_0x45d741);await this[_0x4bf390(_0x2ccc86._0x5d6cfe,0x1f6,_0x2ccc86._0x388c06,_0x2ccc86._0x47ac78)](_0x1663cb,_0x142895);}}throw new Error(_0x4d9eed(_0x2ccc86._0x3708aa,0x48e,0x48e,0x40e));}[_0x55b3f6(0x17f,0x133,0xb2,0xbe)](){const _0x3c837b={_0x2f0496:0x12e,_0x37cc4e:0x1a4,_0x49df8f:0x24a},_0xf33107={_0x99a270:0xab,_0x35344c:0x21};function _0x4081b7(_0x3b4254,_0x4a9624,_0x4e0d59,_0x3406ee){return _0x55b3f6(_0x3b4254-0x113,_0x4e0d59-0x71,_0x4a9624,_0x3406ee-0x136);}function _0x39c3d1(_0x1d4f68,_0x3545e2,_0x4141ab,_0x13f892){return _0x51d0c0(_0x1d4f68-0x29,_0x3545e2-_0xf33107._0x99a270,_0x3545e2-_0xf33107._0x35344c,_0x13f892);}return this[_0x4081b7(0x3c5,0x323,0x2df,0x2a5)][_0x4081b7(_0x3c837b._0x2f0496,0x178,_0x3c837b._0x37cc4e,_0x3c837b._0x49df8f)]();}async['createHeaders'](_0x53c047,_0x3309f4){const _0x40f95b={_0x1c28c0:0x183,_0x488dcf:0x9a,_0x59b7a2:0x5d,_0x1ed5e1:0x82},_0x2069cd={_0x4e0c91:0x26,_0xa68cfc:0x696},_0x1de06a={_0x52e984:0xfe,_0x358fa0:0x4d};function _0x285f04(_0x4107eb,_0xfa0c48,_0x3c6b93,_0x338f50){return _0x51d0c0(_0x4107eb-_0x1de06a._0x52e984,_0xfa0c48-_0x1de06a._0x358fa0,_0x4107eb- -0x6d2,_0x338f50);}function _0x35f70c(_0x59222f,_0x3fc415,_0x516ab1,_0x4e08d7){return _0x51d0c0(_0x59222f-0x32,_0x3fc415-_0x2069cd._0x4e0c91,_0x3fc415- -_0x2069cd._0xa68cfc,_0x59222f);}return await this[_0x35f70c(-_0x40f95b._0x1c28c0,-_0x40f95b._0x488dcf,0x7,-0x73)][_0x35f70c(_0x40f95b._0x59b7a2,-_0x40f95b._0x1ed5e1,-0x24,-0x4d)](_0x53c047,_0x3309f4);}['mapApiError'](_0x101819){const _0x326f4a={_0x21a065:0xc6,_0x5394a9:0x155,_0xe3ddea:0x2f,_0x281aba:0xa8},_0x54bb34={_0x1b87f2:0x1d4,_0x371796:0xa2,_0x59aa5a:0xb4};function _0x1184a7(_0x1d1237,_0xbd5672,_0xcb3acd,_0x35098f){return _0x55b3f6(_0x1d1237-_0x54bb34._0x1b87f2,_0x1d1237- -_0x54bb34._0x371796,_0xcb3acd,_0x35098f-_0x54bb34._0x59aa5a);}function _0x14e2da(_0x211148,_0x1ceacd,_0x162ee3,_0x364756){return _0x51d0c0(_0x211148-0x106,_0x1ceacd-0xf8,_0x364756- -0x6a4,_0x162ee3);}return this[_0x14e2da(-_0x326f4a._0x21a065,-_0x326f4a._0x5394a9,_0x326f4a._0xe3ddea,-_0x326f4a._0x281aba)][_0x1184a7(0x1ef,0x28b,0x188,0x1d5)](_0x101819);}async[_0x55b3f6(0x2d3,0x202,0x259,0x19f)](_0x801c5f){const _0x26b540={_0x421bc9:0x4c0,_0x429850:0x564,_0x4fd0f0:0x2a6,_0x408220:0x24f},_0x35288d={_0x2242dd:0x229},_0x283c93={_0x491914:0x1bf};function _0x2e830f(_0x5b3838,_0x16a7b6,_0x1508fa,_0x49e55e){return _0x51d0c0(_0x5b3838-0x113,_0x16a7b6-_0x283c93._0x491914,_0x5b3838- -0x3bc,_0x16a7b6);}function _0x318d07(_0x423d97,_0x5b2c51,_0x493d57,_0x23d763){return _0x55b3f6(_0x423d97-0x5b,_0x423d97-_0x35288d._0x2242dd,_0x23d763,_0x23d763-0xf9);}return await this[_0x318d07(0x497,_0x26b540._0x421bc9,0x42f,_0x26b540._0x429850)][_0x2e830f(0x1d4,0x23a,_0x26b540._0x4fd0f0,_0x26b540._0x408220)](_0x801c5f);}[_0x55b3f6(0x2e1,0x2ba,0x2f4,0x2bb)](_0x2fb0d1){const _0x29fe6f={_0x2e0d00:0x27b,_0x2b7fce:0x393,_0x52aa45:0x1c8,_0x21f42f:0x226},_0x288f71={_0x5e5f05:0x15,_0xb92a42:0x90};function _0x4d2771(_0x4bc2b0,_0x87be52,_0x2aba07,_0x58366a){return _0x55b3f6(_0x4bc2b0-_0x288f71._0x5e5f05,_0x4bc2b0- -0xe,_0x87be52,_0x58366a-_0x288f71._0xb92a42);}const _0xcad251=this[_0x583aeb(_0x29fe6f._0x2e0d00,0x252,_0x29fe6f._0x2b7fce,0x2c5)][_0x4d2771(_0x29fe6f._0x52aa45,0x2ab,0x270,_0x29fe6f._0x21f42f)](_0x2fb0d1);function _0x583aeb(_0x31fbe2,_0x6456f3,_0x580502,_0x8b3615){return _0x55b3f6(_0x31fbe2-0xd6,_0x8b3615-0x87,_0x6456f3,_0x8b3615-0x39);}if(!_0xcad251)throw new Error(_0x4d2771(0x253,0x23e,0x290,0x1ef)+_0x2fb0d1);return _0xcad251;}async['prepareChatRequest'](_0x31b9c7,_0x29d9e9){const _0x550888={_0x2b2d1e:0x18e,_0x544c95:0x276,_0x11a2a7:0xd7,_0x4d2c51:0x6,_0x229495:0xe2,_0x23b1ad:0x330,_0x2b0b20:0x347,_0x33227e:0x219,_0x326303:0x1,_0x19909c:0xc4,_0x39c59b:0x85,_0x86fe11:0x29c,_0x409bcf:0x226,_0x2a9ecc:0x270,_0x459ef2:0x6,_0x3e513a:0xc6,_0x3950c0:0x3b,_0x463526:0x29d,_0x3a5e51:0x211},_0x18a3ff={_0x1f2a7b:0x4c0},_0x5a2160={_0x1dc0a5:0xd9},_0x5b0370=toModelRequest(_0x31b9c7),_0x164dd3=await prepareProviderRequest(_0x5b0370,{'sessionManager':this[_0x22a759(0x264,0x29a,_0x550888._0x2b2d1e,_0x550888._0x544c95)],'requestMutators':this[_0xd51fec(0x161,0x11d,_0x550888._0x11a2a7,0x1ab)],'signal':_0x29d9e9});function _0x22a759(_0x464698,_0x15c27c,_0x240cdb,_0x446a28){return _0x55b3f6(_0x464698-0xbb,_0x446a28-_0x5a2160._0x1dc0a5,_0x15c27c,_0x446a28-0x15b);}const _0x40f888=toChatRequest(_0x164dd3[_0xd51fec(-_0x550888._0x4d2c51,_0x550888._0x4d2c51,-0x90,_0x550888._0x229495)]);function _0xd51fec(_0x447b44,_0x24085d,_0x1b22e6,_0x1c1447){return _0x51d0c0(_0x447b44-0xc6,_0x24085d-0x1c,_0x447b44- -_0x18a3ff._0x1f2a7b,_0x24085d);}const _0x1bf020=this[_0x22a759(0x416,_0x550888._0x23b1ad,0x2bd,_0x550888._0x2b0b20)]['resolveCredential'](this[_0x22a759(0x2b1,0x209,0x2b4,_0x550888._0x33227e)],_0x164dd3['session']);if(!_0x1bf020)throw this[_0xd51fec(_0x550888._0x326303,-0x1f,_0x550888._0x19909c,_0x550888._0x39c59b)]();return{'baseUrl':this[_0x22a759(0x2e6,0x2e4,_0x550888._0x86fe11,0x347)][_0x22a759(0x28f,0x2ba,_0x550888._0x409bcf,_0x550888._0x2a9ecc)](this['baseUrl'],_0x164dd3[_0xd51fec(_0x550888._0x459ef2,_0x550888._0x3e513a,_0x550888._0x3950c0,-0xe0)]),'credential':_0x1bf020,'request':_0x40f888,'session':_0x164dd3[_0x22a759(0x276,_0x550888._0x463526,0x255,_0x550888._0x3a5e51)]};}[_0x55b3f6(0x29f,0x237,0x2ed,0x183)](_0x2e25fd){const _0x2f980a={_0x270850:0x245,_0x2f95b7:0x1d4,_0x525513:0x2ba},_0x4c3b1c={_0x214c39:0x16e,_0x5ba270:0x21d,_0x3d087f:0x109},_0x1e221d={_0x105560:0x17f,_0x2fb46:0x6b5};function _0x58d435(_0x2f5a94,_0x17c37c,_0x51502e,_0x6faea6){return _0x51d0c0(_0x2f5a94-0x10f,_0x17c37c-_0x1e221d._0x105560,_0x17c37c- -_0x1e221d._0x2fb46,_0x6faea6);}function _0x49bf22(_0x440dcf,_0x13538e,_0x2dfc38,_0x3142a1){return _0x55b3f6(_0x440dcf-_0x4c3b1c._0x214c39,_0x3142a1- -_0x4c3b1c._0x5ba270,_0x440dcf,_0x3142a1-_0x4c3b1c._0x3d087f);}return{...structuredClone(_0x2e25fd),..._0x2e25fd[_0x49bf22(-0x9b,-0x7e,-0xf7,-0xca)]===void 0x0&&this[_0x58d435(-_0x2f980a._0x270850,-0x1d4,-0x22b,-0x199)]!==void 0x0?{'reasoning':structuredClone(this[_0x58d435(-0x2a9,-_0x2f980a._0x2f95b7,-0x217,-_0x2f980a._0x525513)])}:{}};}async[_0x51d0c0(0x655,0x5a3,0x66d,0x694)](_0x3952ed,_0x562fe7,_0x375bcb,_0x3231dc={},_0x425d67=!![]){const _0x5cfddc={_0x26ce39:0x43,_0x328a3c:0xd5},_0x574c74={_0x45f1e2:0xde,_0x2006d8:0xf8},_0x58a27={_0x54b970:0x420,_0x70324c:0x41b,_0x51ea76:0x391,_0x13c73c:0x47d,_0x2d4e98:0x43d,_0x36fe99:0x601,_0x74eb97:0x574,_0x407c79:0x523,_0x52bbe4:0x5d9,_0x3af018:0x479,_0x406bb6:0x162,_0x2421f8:0x636,_0x5c50e0:0x714,_0x3ff8b2:0x554,_0x4c440a:0xdb,_0x3c6781:0x57,_0x598e08:0xaf,_0x1f2f9f:0x190,_0x164d4d:0x161,_0x2dd00b:0x587,_0x210b29:0x6c9,_0x277d2c:0x65,_0x1022ec:0x96,_0x6a3bcc:0x72,_0x213103:0x111,_0x3d5dd2:0x206,_0x1f9f40:0x203,_0x1eec91:0x519,_0x548311:0x5e9,_0x4fcb4a:0x4db,_0x3bc3d3:0x41c,_0x47b413:0x497,_0x561b24:0x4d2,_0x85e9de:0x47f,_0x3b302e:0x57f,_0x31ef4b:0x43d,_0x151d65:0x46a,_0x217b8d:0x507,_0x32fe26:0x4cc,_0x5b542c:0x469},{signal:_0x582bac}=_0x3231dc,_0x44bd76=async()=>{function _0x48d684(_0x52cc51,_0x5bea04,_0x5a82e7,_0xbed244){return _0x5dd8(_0x5a82e7- -0x8b,_0x52cc51);}function _0x450d1a(_0x47ee07,_0x304c71,_0x1c8902,_0x496896){return _0x5dd8(_0x47ee07-0x356,_0x496896);}const _0x23553b=await this[_0x450d1a(0x474,_0x58a27._0x54b970,_0x58a27._0x70324c,_0x58a27._0x51ea76)](_0x3952ed,_0x582bac);let _0xf4a6a0;try{_0xf4a6a0=_0x562fe7[_0x450d1a(_0x58a27._0x13c73c,_0x58a27._0x2d4e98,0x52a,0x3e4)](_0x23553b['request']);}catch(_0x1bd421){if(_0x1bd421 instanceof Error)throw new ProviderRequestConstructionError(_0x1bd421[_0x450d1a(_0x58a27._0x36fe99,0x54d,0x639,_0x58a27._0x74eb97)]);throw _0x1bd421;}if(!_0xf4a6a0['path'])throw new ProviderRequestConstructionError(_0x450d1a(_0x58a27._0x407c79,_0x58a27._0x52bbe4,_0x58a27._0x3af018,0x5a1)+_0x562fe7['id']+'\x20did\x20not\x20provide\x20an\x20HTTP\x20path');const _0xfda84b=await this[_0x48d684(0x1c8,_0x58a27._0x406bb6,0x1f7,0x1af)]({'request':_0x23553b['request'],'body':_0xf4a6a0[_0x48d684(0xf7,0x116,0x8d,0x19)],'credential':_0x23553b[_0x450d1a(_0x58a27._0x2421f8,_0x58a27._0x5c50e0,_0x58a27._0x3ff8b2,0x6a8)],'session':_0x23553b[_0x48d684(0x9,_0x58a27._0x4c440a,0xa9,0x96)],'stream':_0x375bcb},{'accept':_0xf4a6a0[_0x48d684(_0x58a27._0x3c6781,0x12f,0xd8,_0x58a27._0x598e08)]??(_0x375bcb?_0x48d684(_0x58a27._0x1f2f9f,0x1a,0xd3,_0x58a27._0x164d4d):_0x450d1a(0x61a,_0x58a27._0x2dd00b,_0x58a27._0x210b29,0x6dc)),'includeContentType':_0xf4a6a0[_0x48d684(_0x58a27._0x277d2c,_0x58a27._0x1022ec,0x8d,_0x58a27._0x6a3bcc)]!==void 0x0});for(const [_0x406838,_0x555605]of Object[_0x48d684(_0x58a27._0x213103,_0x58a27._0x3d5dd2,0x184,_0x58a27._0x1f9f40)](_0xf4a6a0[_0x450d1a(_0x58a27._0x1eec91,0x4ab,0x5a1,_0x58a27._0x548311)]??{})){_0xfda84b[_0x450d1a(_0x58a27._0x4fcb4a,0x5bb,_0x58a27._0x3bc3d3,0x50d)](_0x406838,_0x555605);}return this['fetchImpl'](''+_0x23553b[_0x48d684(0x134,0x64,0xdb,0x15d)]+_0xf4a6a0['path'],{'method':_0x450d1a(_0x58a27._0x47b413,_0x58a27._0x561b24,_0x58a27._0x85e9de,_0x58a27._0x3b302e),'headers':_0xfda84b,..._0xf4a6a0[_0x450d1a(0x46e,_0x58a27._0x31ef4b,_0x58a27._0x151d65,_0x58a27._0x217b8d)]!==void 0x0?{'body':JSON[_0x450d1a(_0x58a27._0x32fe26,_0x58a27._0x5b542c,0x4ba,0x54e)](_0xf4a6a0['body'])}:{},'signal':_0x582bac});};function _0x44777c(_0x804c4c,_0x190f2c,_0x51a567,_0x425d0b){return _0x51d0c0(_0x804c4c-_0x574c74._0x45f1e2,_0x190f2c-_0x574c74._0x2006d8,_0x804c4c- -0x62f,_0x51a567);}return _0x425d67?await this[_0x44777c(-0x59,-_0x5cfddc._0x26ce39,0x3,-_0x5cfddc._0x328a3c)](_0x44bd76,_0x3231dc):await _0x44bd76();}async*[_0x51d0c0(0x4c4,0x4b5,0x4d6,0x4b4)](_0x5b389c,_0x28cb0d,_0x3551d3={}){const _0x244ec1={_0x3fe1a6:0x480,_0x212ebf:0x59c,_0x526775:0x512,_0x307bb5:0x46a,_0x22f62e:0x45d,_0x2c2ac6:0x4bf,_0x2e2758:0xc0,_0x3fdf7e:0x98,_0x1fd00a:0x8,_0x442c9b:0x57,_0xc07a3f:0x9a,_0xe4f63e:0x4ca,_0x5124c1:0x3b2,_0x6df1bd:0x3f2,_0x3796fc:0x469,_0x340759:0x418,_0x2259ab:0x379,_0x45e325:0x404,_0x14aeb6:0x4e3,_0xfa935f:0x1a6,_0x467faf:0xf5,_0x16450c:0x5f6,_0x4527a7:0x514,_0x343d4d:0x15,_0x20741e:0x1a0,_0x464890:0x11a,_0x4347be:0x304,_0x4d676d:0x3c8,_0x310160:0x318,_0x2fc962:0x1b4,_0x538134:0x1fd,_0x49907b:0x14d,_0x581c0b:0x3f1,_0x3b0da6:0x4b1,_0x27ba74:0x3de},_0x2a101c={_0x183811:0x15b},_0x5cff84={_0x2187d5:0x195};function _0x1f29c6(_0x28466e,_0x123716,_0x1f99f6,_0x39bbe7){return _0x55b3f6(_0x28466e-0x57,_0x39bbe7- -_0x5cff84._0x2187d5,_0x1f99f6,_0x39bbe7-0x129);}const {signal:_0x560ba7}=_0x3551d3;function _0x2136e9(_0x532bc5,_0x23cf00,_0x479a94,_0x51115f){return _0x51d0c0(_0x532bc5-0x60,_0x23cf00-0x3c,_0x51115f- -_0x2a101c._0x183811,_0x479a94);}let _0xb739d1=![];for(let _0x1d81f3=0x0;_0x1d81f3<MAX_PROVIDER_REQUEST_ATTEMPTS;_0x1d81f3+=0x1){let _0x49af52=![];try{const _0x742fe1=await this[_0x2136e9(0x549,_0x244ec1._0x3fe1a6,_0x244ec1._0x212ebf,_0x244ec1._0x526775)](_0x5b389c,_0x28cb0d,!![],_0x3551d3,![]);if(_0x742fe1[_0x2136e9(_0x244ec1._0x307bb5,0x3d9,_0x244ec1._0x22f62e,_0x244ec1._0x2c2ac6)]===0x191&&this[_0x1f29c6(0xf,_0x244ec1._0x2e2758,-_0x244ec1._0x3fdf7e,_0x244ec1._0x1fd00a)]&&!_0xb739d1){_0xb739d1=!![],this['sessionManager'][_0x1f29c6(0x87,_0x244ec1._0x442c9b,_0x244ec1._0xc07a3f,0x2f)]();continue;}if(!_0x742fe1['ok'])throw await this[_0x2136e9(0x45f,0x3e1,_0x244ec1._0xe4f63e,0x435)](_0x742fe1);const _0x509e96=_0x28cb0d[_0x2136e9(0x3c5,0x335,_0x244ec1._0x5124c1,_0x244ec1._0x6df1bd)]?.(_0x5b389c);if(!_0x509e96?.[_0x2136e9(_0x244ec1._0x3796fc,_0x244ec1._0x340759,0x405,0x4bd)])throw new Error(_0x2136e9(_0x244ec1._0x2259ab,0x42a,0x434,_0x244ec1._0x45e325)+_0x28cb0d['id']+_0x2136e9(0x3f8,_0x244ec1._0x14aeb6,0x32d,0x408));for await(const _0x3a6ac6 of iterateSseEvents(_0x742fe1,_0x560ba7)){const _0x5681c9=_0x509e96[_0x1f29c6(0x99,_0x244ec1._0xfa935f,0x31,_0x244ec1._0x467faf)](_0x3a6ac6);for(const _0x3154af of _0x5681c9){_0x49af52=!![],yield _0x3154af;}}yield{'type':'done','response':_0x509e96[_0x2136e9(0x5b8,0x452,_0x244ec1._0x16450c,_0x244ec1._0x4527a7)]()};return;}catch(_0x30fb2c){if(_0x49af52||!this['shouldRetryStreamAttemptError'](_0x30fb2c)||_0x1d81f3===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0x30fb2c;const _0x389d1e=this['getRetryDelayMs'](void 0x0,_0x1d81f3),_0x2d3a23={'type':_0x1f29c6(_0x244ec1._0x343d4d,-0xa,0x13,0x77),'attempt':_0x1d81f3+0x1,'maxAttempts':MAX_PROVIDER_REQUEST_ATTEMPTS,'error':_0x30fb2c instanceof Error?_0x30fb2c[_0x1f29c6(0x1fc,0x169,_0x244ec1._0x20741e,_0x244ec1._0x464890)]:String(_0x30fb2c),'delayMs':_0x389d1e,'reason':this['shouldRetryRequestError'](_0x30fb2c)?_0x2136e9(_0x244ec1._0x4347be,_0x244ec1._0x4d676d,_0x244ec1._0x310160,0x3cb):_0x1f29c6(_0x244ec1._0x2fc962,0x14a,_0x244ec1._0x538134,_0x244ec1._0x49907b)};yield _0x2d3a23,await this[_0x2136e9(_0x244ec1._0x581c0b,0x3f0,_0x244ec1._0x3b0da6,_0x244ec1._0x27ba74)](_0x389d1e,_0x560ba7);}}}async*[_0x51d0c0(0x645,0x641,0x622,0x6c7)](_0x1b9a01,_0x2ae9b8,_0x2da2c3){const _0x374a7a={_0x3bfd61:0x66,_0x3bf83e:0x38,_0xade02c:0x2,_0x59ebb7:0x2a,_0x4fc61d:0x5a,_0x30b090:0x1ae,_0x1bcaa9:0x142,_0x5c90a0:0x15,_0xaa157e:0x4d,_0x16e8bc:0x212,_0x22e286:0xd4,_0x2a6f3b:0x91,_0x36c8ed:0xff,_0x177a3b:0x84,_0x4095b3:0xb1,_0x4da53:0xfb,_0x3bee67:0x21,_0x5d6a5d:0x1bc,_0x510bc4:0x44,_0x3bd504:0xe7,_0x23a607:0x50,_0x387d56:0x1f3,_0x274137:0x158,_0x4c2c8d:0x18f,_0x57fc6b:0x17e,_0x10b4d5:0xd7,_0x5cc1cc:0x198,_0x327514:0x28b,_0x4fe451:0x1b7,_0x30442b:0x12d,_0x2a858a:0x20a,_0x4471f5:0x31,_0xdff917:0x26f,_0x5f5c55:0x253,_0x12d493:0x19b,_0x48fc16:0x1bb,_0x471ec5:0x3,_0x4c499e:0x9a,_0x471321:0x7b,_0x4e3685:0x11,_0x537a75:0x2d,_0x523514:0xa,_0x328b8e:0xf7,_0x17e9e1:0x169,_0x5f2d68:0x136,_0x2ef960:0xe6,_0x32e200:0x86,_0x4cee88:0x130,_0x30e3b6:0x10b,_0x4c62bd:0x61,_0x2186b6:0x46,_0x2d1889:0xc1,_0x35f2ed:0x151,_0x56497e:0x1db,_0x3ac13b:0xf6,_0x449697:0x2b,_0x499f03:0x33,_0x3b6193:0xc4,_0x19b131:0x20,_0x1f38ca:0x76,_0x339853:0x7c,_0xa17eec:0x4e,_0x23136f:0x84,_0x3b8dfd:0x183,_0x497150:0x1d2,_0x13dd3d:0x49,_0x15980a:0x1c2,_0x37cd8a:0xed,_0x126f6f:0x124,_0x40ac70:0x170,_0x4f4bb2:0x140},_0x2b0573={_0x5b86fc:0x1b,_0x13901d:0x12d},_0xeda642={_0x33f36a:0x11},_0x3444c6=await this[_0xca989f(0x17,_0x374a7a._0x3bfd61,-0xb,-0x6d)](_0x1b9a01,_0x2da2c3),_0xe6d539=_0x2ae9b8[_0xca989f(-0xb4,_0x374a7a._0x3bf83e,-_0x374a7a._0xade02c,_0x374a7a._0x59ebb7)](_0x3444c6['request']),_0x149a44=_0x2ae9b8[_0x2462c6(-_0x374a7a._0x4fc61d,-_0x374a7a._0x30b090,-_0x374a7a._0x1bcaa9,-0x95)]?.(_0x1b9a01);function _0x2462c6(_0x147590,_0x1c09c5,_0x44d7ea,_0x22c949){return _0x55b3f6(_0x147590-0x18,_0x44d7ea- -0x301,_0x22c949,_0x22c949-_0xeda642._0x33f36a);}if(!_0x149a44?.[_0xca989f(0x65,_0x374a7a._0x5c90a0,-0x7,_0x374a7a._0xaa157e)])throw new Error(_0x2462c6(-_0x374a7a._0x16e8bc,-_0x374a7a._0x22e286,-0x130,-0x10e)+_0x2ae9b8['id']+_0xca989f(_0x374a7a._0x2a6f3b,0x1e3,0x179,_0x374a7a._0x36c8ed));function _0xca989f(_0x3f0f9f,_0x100f31,_0x564e7b,_0x314c96){return _0x55b3f6(_0x3f0f9f-_0x2b0573._0x5b86fc,_0x564e7b- -_0x2b0573._0x13901d,_0x100f31,_0x314c96-0x113);}const _0x774d35=_0xe6d539[_0x2462c6(_0x374a7a._0x177a3b,_0x374a7a._0x4095b3,-0x31,-_0x374a7a._0x4da53)]??(_0xe6d539[_0xca989f(-_0x374a7a._0x3bee67,0x95,0x6e,0x37)]?(''+_0x3444c6['baseUrl']+_0xe6d539['path'])['replace'](/^http:/,'ws:')[_0x2462c6(-_0x374a7a._0x5d6a5d,-0x36,-0x11c,-0x204)](/^https:/,_0x2462c6(-_0x374a7a._0x3bee67,_0x374a7a._0x510bc4,-0x7d,0x1c)):void 0x0);if(!_0x774d35)throw new ProviderRequestConstructionError('Surface\x20'+_0x2ae9b8['id']+_0x2462c6(-0xb5,-0x118,-_0x374a7a._0x3bd504,-_0x374a7a._0x23a607));const _0x4a2988=await this[_0xca989f(0xbe,0x12a,0x159,_0x374a7a._0x387d56)]({'request':_0x3444c6[_0x2462c6(-_0x374a7a._0x274137,-_0x374a7a._0x4c2c8d,-0x1d5,-_0x374a7a._0x57fc6b)],'body':_0xe6d539[_0xca989f(0xcb,0x15b,0x15b,_0x374a7a._0x10b4d5)],'credential':_0x3444c6[_0xca989f(_0x374a7a._0x5cc1cc,_0x374a7a._0x327514,_0x374a7a._0x4fe451,_0x374a7a._0x30442b)],'session':_0x3444c6[_0x2462c6(-_0x374a7a._0x2a858a,-0x10f,-0x1c9,-0x267)],'stream':!![]},{'accept':_0xe6d539[_0xca989f(0x84,0xcb,0x3a,-_0x374a7a._0x4471f5)]??_0xca989f(_0x374a7a._0xdff917,_0x374a7a._0x5f5c55,_0x374a7a._0x12d493,_0x374a7a._0x48fc16),'includeContentType':![]});for(const [_0x10931b,_0x1a554b]of Object[_0xca989f(_0x374a7a._0x471ec5,0xf4,0xe6,0x120)](_0xe6d539[_0xca989f(0x24,0xb2,_0x374a7a._0x4c499e,0xc0)]??{})){_0x4a2988[_0xca989f(_0x374a7a._0x471321,0x33,0x5c,0x7a)](_0x10931b,_0x1a554b);}_0x4a2988[_0xca989f(-0x39,-0x87,_0x374a7a._0x4e3685,-0x16)](_0xca989f(-_0x374a7a._0x537a75,_0x374a7a._0x523514,0x3a,-0x83));const _0x27ca44=this['webSocketFactory']({'headers':Object[_0xca989f(0x1b,0x13e,_0x374a7a._0x328b8e,_0x374a7a._0x17e9e1)](_0x4a2988[_0xca989f(_0x374a7a._0x5f2d68,0x87,_0x374a7a._0x2ef960,0x127)]()),'url':_0x774d35});try{throwIfAborted(_0x2da2c3);_0x27ca44[_0xca989f(_0x374a7a._0x32e200,-0x5c,-0x4,0x7c)]!==WebSocket[_0x2462c6(-0x113,-0x128,-0x4e,-0xb9)]&&await waitForWebSocketOpen(_0x27ca44,_0x2da2c3);throwIfAborted(_0x2da2c3);_0xe6d539[_0xca989f(0x23a,_0x374a7a._0x4cee88,0x15b,_0x374a7a._0x30e3b6)]!==void 0x0&&_0x27ca44['send'](JSON[_0xca989f(-0x47,_0x374a7a._0x4c62bd,0x4d,-_0x374a7a._0x2186b6)](_0xe6d539[_0xca989f(0x1db,_0x374a7a._0x2d1889,0x15b,0x10a)]));for await(const _0x2138b8 of iterateWebSocketMessages(_0x27ca44,_0x2da2c3)){yield*_0x149a44[_0x2462c6(-_0x374a7a._0x35f2ed,-0x1e8,-_0x374a7a._0x56497e,-0xff)](_0x2138b8);if(_0x149a44[_0xca989f(-0x32,_0x374a7a._0x3ac13b,0x1e,-_0x374a7a._0x449697)]?.())break;}yield{'type':_0xca989f(0x86,0x10d,0x33,_0x374a7a._0x499f03),'response':_0x149a44[_0x2462c6(-0xde,_0x374a7a._0x3b6193,-_0x374a7a._0x19b131,-_0x374a7a._0x1f38ca)]()};}finally{_0x27ca44['readyState']===WebSocket[_0x2462c6(-0x123,_0x374a7a._0x339853,-_0x374a7a._0xa17eec,-_0x374a7a._0x23136f)]&&_0x27ca44[_0x2462c6(-0x14d,-0xfc,-_0x374a7a._0x3b8dfd,-_0x374a7a._0x497150)](0x3e8,_0x2da2c3?.[_0x2462c6(-_0x374a7a._0x13dd3d,-0xfc,-0xb0,-0x108)]?_0xca989f(_0x374a7a._0x15980a,_0x374a7a._0x37cd8a,_0x374a7a._0x126f6f,_0x374a7a._0x40ac70):_0x2462c6(-_0x374a7a._0x4f4bb2,-0xd9,-0x5c,0x30));}}};async function createHttpError(_0x256540){const _0x2d7863={_0x2159a4:0xc0,_0x4503ff:0x77,_0x71ea26:0xe3,_0x377997:0x104,_0xf94924:0x186,_0x6cdd49:0x3e,_0x1bc8aa:0x50,_0x4b03f1:0x27,_0x30dcc3:0x20,_0x2d2619:0x1a1,_0x5b05d3:0xc2,_0x19fc58:0x2de},_0xb92d94={_0xce0b78:0x1e0},_0x51c270={_0xc4fb6:0x4f1};function _0x51c74a(_0x53a549,_0xbe068e,_0x1e9d81,_0x23cebf){return _0x51d0c0(_0x53a549-0x1ef,_0xbe068e-0x8c,_0x1e9d81- -_0x51c270._0xc4fb6,_0x53a549);}function _0xa8f7db(_0x1912fb,_0x281423,_0x42f8cc,_0x44d2fd){return _0x51d0c0(_0x1912fb-0x190,_0x281423-_0xb92d94._0xce0b78,_0x1912fb- -0x3b3,_0x44d2fd);}const _0x57a953=await _0x256540['text'](),_0x23ab08=_0x57a953[_0x51c74a(0xf,_0x2d7863._0x2159a4,_0x2d7863._0x4503ff,0xec)]()||_0x256540[_0xa8f7db(0x1c8,_0x2d7863._0x71ea26,_0x2d7863._0x377997,_0x2d7863._0xf94924)]||_0x51c74a(_0x2d7863._0x6cdd49,_0x2d7863._0x1bc8aa,_0x2d7863._0x4b03f1,-_0x2d7863._0x30dcc3);return new Error(_0x51c74a(0x12e,_0x2d7863._0x2d2619,_0x2d7863._0x5b05d3,0x90)+_0x256540[_0xa8f7db(0x267,0x181,0x1b7,_0x2d7863._0x19fc58)]+':\x20'+_0x23ab08);}var AnthropicProviderAdapter=class{[_0x55b3f6(0x1d7,0x158,0x236,0xde)];[_0x55b3f6(0x137,0x11a,0x164,0x14a)];[_0x51d0c0(0x6e9,0x5d7,0x635,0x6ff)];constructor(_0x11bf8d){const _0x418b50={_0x44c08c:0xf2,_0x4ecdbe:0xa7,_0x3fcece:0x13c,_0xd7ccde:0x1ae,_0x34586e:0x176,_0x26c3b1:0x15e},_0x31d8cb={_0x364067:0x94},_0x5d0f7e={_0x1c5d43:0xd3};this[_0x48973e(0xb0,_0x418b50._0x44c08c,_0x418b50._0x4ecdbe,0x85)]=_0x11bf8d['authScheme'],this[_0xf5e363(0x1d0,0x1ae,0x267,_0x418b50._0x3fcece)]=_0x11bf8d[_0xf5e363(0x1bd,_0x418b50._0xd7ccde,0x1c9,_0x418b50._0x34586e)];function _0x48973e(_0x6a0fff,_0x3e2980,_0xb962d,_0x3c7651){return _0x55b3f6(_0x6a0fff-0x1ef,_0x3c7651- -_0x5d0f7e._0x1c5d43,_0x3e2980,_0x3c7651-0x105);}function _0xf5e363(_0x358a52,_0x4eaab5,_0x37be8b,_0x368cd2){return _0x55b3f6(_0x358a52-0x143,_0x4eaab5-_0x31d8cb._0x364067,_0x358a52,_0x368cd2-0x9);}this[_0x48973e(0x1f3,0x244,_0x418b50._0x26c3b1,0x1d4)]=_0x11bf8d['protocolVersion'];}[_0x55b3f6(0x10a,0x133,0xdd,0x1dd)](){const _0x4c2bbc={_0x4d8e62:0x529,_0x410dee:0x4c4},_0x2c2157={_0x3a3649:0x2f4};function _0x1193d1(_0x352608,_0x4910c3,_0x34765b,_0x499eb7){return _0x55b3f6(_0x352608-0x13e,_0x352608-_0x2c2157._0x3a3649,_0x34765b,_0x499eb7-0x1c0);}return new Error(_0x1193d1(_0x4c2bbc._0x4d8e62,_0x4c2bbc._0x410dee,0x482,0x59c));}async[_0x51d0c0(0x586,0x6c3,0x614,0x622)](_0x1f1cb0,_0x128578){const _0x2457d6={_0x1d3f45:0x28b,_0x228368:0x299,_0x13c42e:0x1b2,_0x2b5ba7:0x21e,_0x492a52:0x233,_0x5784f7:0x2eb,_0x940722:0x2ce,_0x4865c4:0x35c,_0x50f54a:0x299,_0xc7b59e:0x1c8,_0x49e20e:0x1c4,_0x36fa7c:0x166,_0x1a27b6:0x3d8,_0x1eccd9:0x30a,_0x440620:0x420,_0x2ba936:0x405,_0x1da339:0x41d,_0x2c8a6e:0x3e7,_0xd3660b:0x2ec,_0x5aa7eb:0x1d5,_0x47b7ed:0x292,_0x535186:0x252,_0x657549:0x1bd,_0x33ab5c:0x103,_0x169990:0x2b7,_0x4604ea:0x94,_0x23dfe7:0x59,_0x4400aa:0x39b,_0x3f3d67:0x3d0,_0x2a2060:0x58,_0x52c9a7:0x81,_0x7b2f43:0x7b,_0xaf243:0x2c5,_0x420fde:0x2ad,_0x5e3cd1:0x397,_0x4cc263:0x3f4,_0x2f2189:0x28d,_0x1671d6:0x278,_0x3c6970:0x2a0,_0x2b2b90:0x248,_0xde4c84:0x2df,_0x300d5b:0x2ca,_0x296a53:0x325,_0x17dddb:0x37a,_0x1a888c:0x1fa,_0x344bc5:0x299,_0x2c9a46:0x2f9},_0x3299f0={_0x444b75:0x2b},_0x45b330=new Headers();_0x45b330[_0x3859a7(_0x2457d6._0x1d3f45,_0x2457d6._0x228368,0x34a,0x363)](_0x4daae7(-0x157,-_0x2457d6._0x13c42e,-0x13d,-0x1ff),_0x128578[_0x4daae7(-_0x2457d6._0x2b5ba7,-0x1b2,-0xcf,-0x186)]),_0x45b330[_0x3859a7(0x301,_0x2457d6._0x228368,_0x2457d6._0x492a52,_0x2457d6._0x5784f7)](_0x3859a7(_0x2457d6._0x940722,0x364,0x2cc,0x375),this['protocolVersion']);function _0x4daae7(_0x5b8b6c,_0x3564fb,_0x49e70f,_0x127083){return _0x55b3f6(_0x5b8b6c-_0x3299f0._0x444b75,_0x3564fb- -0x319,_0x49e70f,_0x127083-0x3a);}function _0x3859a7(_0x3fd690,_0x188231,_0x3ff67c,_0x5c0b99){return _0x51d0c0(_0x3fd690-0x56,_0x188231-0x87,_0x188231- -0x27e,_0x3fd690);}_0x128578['includeContentType']!==![]&&_0x45b330[_0x3859a7(_0x2457d6._0x4865c4,_0x2457d6._0x50f54a,0x357,_0x2457d6._0xc7b59e)](_0x4daae7(-0x100,-_0x2457d6._0x49e20e,-_0x2457d6._0x36fa7c,-0x1cb),_0x3859a7(0x3ba,_0x2457d6._0x1a27b6,_0x2457d6._0x1eccd9,_0x2457d6._0x440620));this['authScheme']===_0x3859a7(_0x2457d6._0x2ba936,0x3ed,_0x2457d6._0x1da339,_0x2457d6._0x2c8a6e)?_0x45b330[_0x3859a7(_0x2457d6._0xd3660b,_0x2457d6._0x228368,_0x2457d6._0x5aa7eb,_0x2457d6._0x47b7ed)](_0x4daae7(-_0x2457d6._0x535186,-_0x2457d6._0x657549,-0x12b,-_0x2457d6._0x33ab5c),_0x3859a7(0x380,_0x2457d6._0x169990,0x314,0x265)+_0x1f1cb0[_0x4daae7(-0xa4,-0x35,0x1c,_0x2457d6._0x4604ea)][_0x4daae7(-_0x2457d6._0x23dfe7,-0x58,-0x11c,-0x11c)]):_0x45b330['set'](_0x3859a7(0x2d7,_0x2457d6._0x4400aa,_0x2457d6._0x3f3d67,0x2e2),_0x1f1cb0['credential'][_0x4daae7(-0x12e,-_0x2457d6._0x2a2060,_0x2457d6._0x52c9a7,-_0x2457d6._0x7b2f43)]);const _0x2125be=await this[_0x3859a7(0x204,0x22a,_0x2457d6._0xaf243,_0x2457d6._0x420fde)]?.({'body':_0x1f1cb0['body'],'credential':_0x1f1cb0[_0x3859a7(_0x2457d6._0x5e3cd1,_0x2457d6._0x4cc263,0x39f,0x32c)],'request':_0x1f1cb0[_0x4daae7(-0x13e,-0x1ed,-_0x2457d6._0x2f2189,-_0x2457d6._0x1671d6)],'session':_0x1f1cb0[_0x3859a7(_0x2457d6._0x3c6970,_0x2457d6._0x2b2b90,_0x2457d6._0xde4c84,0x2a8)],'stream':_0x1f1cb0[_0x3859a7(0x352,_0x2457d6._0x300d5b,_0x2457d6._0x296a53,0x316)]});for(const [_0x565ecc,_0x355191]of Object[_0x3859a7(_0x2457d6._0x420fde,0x323,0x23e,_0x2457d6._0x17dddb)](_0x2125be??{})){_0x45b330[_0x3859a7(_0x2457d6._0x1a888c,_0x2457d6._0x344bc5,_0x2457d6._0x2c9a46,0x286)](_0x565ecc,_0x355191);}return _0x45b330;}[_0x51d0c0(0x5ec,0x636,0x61f,0x59f)](_0x17eb04){return _0x17eb04;}[_0x51d0c0(0x59d,0x506,0x525,0x57b)](_0x17e542,_0xa7b6aa){return resolveSessionBaseUrl(_0x17e542,_0xa7b6aa);}[_0x51d0c0(0x559,0x626,0x5b8,0x521)](_0x1239f7,_0x4a64d1){return resolveApiCredential(_0x1239f7,_0x4a64d1);}async[_0x55b3f6(0x228,0x202,0x26f,0x1ac)](_0x7d45f9){return await createHttpError(_0x7d45f9);}},AnthropicModel=class extends RoutedModel{constructor(_0x35e113={}){const _0x3b870c={_0x83cc22:0x284,_0x185a66:0x248,_0x570fa5:0x225,_0x3f8fdf:0x272,_0x3cd52d:0x2b0,_0x1d4090:0x1fe,_0x35498c:0x1be,_0x45fc08:0x141,_0x5a3a7e:0x1a0,_0x2ec1c8:0x130,_0x359aeb:0x33a,_0x51b571:0x266,_0x571b08:0x1a9,_0x1171db:0x304,_0x60b097:0x270,_0x34798d:0x2bd,_0x1b2eea:0x401,_0x18cc51:0x34d,_0x401265:0x2e1,_0x502b12:0x23a,_0x201f6a:0x232,_0x48f00f:0x2a0},_0x4318fb={_0x16eb63:0x5a,_0x341012:0x76a},_0x49b791={_0x1902d4:0xb6,_0x5ca39b:0x286};function _0x581e98(_0x1cdb85,_0x4003d5,_0x289ee2,_0x507e55){return _0x51d0c0(_0x1cdb85-_0x49b791._0x1902d4,_0x4003d5-0xb8,_0x4003d5- -_0x49b791._0x5ca39b,_0x289ee2);}function _0x10e5b8(_0x2fc8e0,_0x39f9dd,_0x5100ca,_0x27d1b6){return _0x51d0c0(_0x2fc8e0-0x1cd,_0x39f9dd-_0x4318fb._0x16eb63,_0x39f9dd- -_0x4318fb._0x341012,_0x5100ca);}super({'apiKey':_0x35e113[_0x581e98(_0x3b870c._0x83cc22,_0x3b870c._0x185a66,0x2e1,_0x3b870c._0x570fa5)],'baseUrl':trimTrailingSlashes(_0x35e113[_0x10e5b8(-0x1c5,-_0x3b870c._0x3f8fdf,-0x194,-0x330)]??_0x10e5b8(-_0x3b870c._0x3cd52d,-_0x3b870c._0x1d4090,-0x2d6,-0x185)),'fetch':_0x35e113[_0x10e5b8(-0x26a,-_0x3b870c._0x35498c,-_0x3b870c._0x45fc08,-_0x3b870c._0x5a3a7e)],'maxTokens':_0x35e113[_0x10e5b8(-_0x3b870c._0x2ec1c8,-0x1db,-0x170,-0x178)]??0x4000,'model':_0x35e113[_0x581e98(0x23a,0x308,0x292,0x2aa)]??_0x10e5b8(-_0x3b870c._0x359aeb,-_0x3b870c._0x51b571,-_0x3b870c._0x1d4090,-_0x3b870c._0x571b08),'reasoning':_0x35e113[_0x10e5b8(-0x32c,-0x289,-0x208,-0x345)],'providerAdapter':new AnthropicProviderAdapter({'authScheme':_0x35e113[_0x10e5b8(-_0x3b870c._0x1171db,-0x284,-_0x3b870c._0x60b097,-_0x3b870c._0x34798d)]??_0x581e98(_0x3b870c._0x1b2eea,0x393,_0x3b870c._0x18cc51,_0x3b870c._0x401265),'headerResolver':_0x35e113['headerResolver'],'protocolVersion':_0x35e113[_0x10e5b8(-0x5b,-0x135,-0x209,-0x66)]??_0x581e98(_0x3b870c._0x502b12,_0x3b870c._0x201f6a,0x171,_0x3b870c._0x48f00f)}),'providerSessionResolver':_0x35e113[_0x10e5b8(-0xd4,-0x13e,-0x20e,-0x14f)],'requestMutators':_0x35e113['requestMutators'],'router':new StaticModelSurfaceRouter({'complete':ANTHROPIC_MESSAGES_SURFACE,'stream':ANTHROPIC_MESSAGES_STREAM_SURFACE}),'surfaces':createAnthropicSurfaces()});}['complete'](_0x5c676c,_0x3aed22){const _0x536529={_0x354233:0x90},_0x2f7a86={_0x45f548:0x27e,_0x49d05d:0x7a};function _0x2729e6(_0x344904,_0x5d4291,_0x3713f9,_0x5a0f98){return _0x55b3f6(_0x344904-0x138,_0x3713f9- -_0x2f7a86._0x45f548,_0x344904,_0x5a0f98-_0x2f7a86._0x49d05d);}return this[_0x2729e6(-_0x536529._0x354233,-0x7e,-0xbd,-0xaa)](_0x5c676c,ANTHROPIC_MESSAGES_SURFACE,_0x3aed22);}[_0x51d0c0(0x46f,0x4eb,0x548,0x4b6)](_0xd326f8,_0x184f17){const _0x4a8187={_0x2ef0ee:0x578,_0xc65a7b:0x646},_0x554a46={_0x4f8792:0x13a,_0xdfe325:0xd5};function _0x228335(_0x98fa8b,_0x5ecaf1,_0xbabd5a,_0x25f908){return _0x55b3f6(_0x98fa8b-_0x554a46._0x4f8792,_0x5ecaf1-0x394,_0xbabd5a,_0x25f908-_0x554a46._0xdfe325);}return this[_0x228335(_0x4a8187._0x2ef0ee,0x614,_0x4a8187._0xc65a7b,0x64c)](_0xd326f8,ANTHROPIC_MESSAGES_STREAM_SURFACE,_0x184f17);}},OPENAI_CHAT_COMPLETIONS_SURFACE=_0x51d0c0(0x57e,0x68c,0x5ec,0x5e5),OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE=_0x51d0c0(0x564,0x66d,0x58d,0x4c5),OPENAI_RESPONSES_SURFACE=_0x51d0c0(0x716,0x6c0,0x66e,0x5ef),OPENAI_RESPONSES_STREAM_SURFACE='openai-responses-stream',OPENAI_RESPONSES_WEBSOCKET_SURFACE=_0x51d0c0(0x5fa,0x64d,0x588,0x536),OpenAiApiError=class extends Error{[_0x55b3f6(0x24f,0x28c,0x1e4,0x1a3)];[_0x55b3f6(0x188,0x11c,0x11e,0xc4)];constructor(_0x594d9b,_0x5e5f42,_0x40b56e){const _0x178433={_0x2a8c2f:0x380,_0x59e1bd:0x4cb},_0x5f767a={_0x408784:0xa6,_0xab4922:0x18d,_0xaee24e:0x168};super(_0x40b56e),this[_0x14bbd6(0x443,_0x178433._0x2a8c2f,_0x178433._0x59e1bd,0x3e2)]='OpenAiApiError',this['status']=_0x594d9b;function _0x14bbd6(_0xdbe2a0,_0x1cf356,_0x1c2fb4,_0x311246){return _0x55b3f6(_0xdbe2a0-_0x5f767a._0x408784,_0xdbe2a0-_0x5f767a._0xab4922,_0x311246,_0x311246-_0x5f767a._0xaee24e);}this['body']=_0x5e5f42;}};function stringifySystem(_0x2808d2){const _0x1044f8={_0x7e57e4:0x243,_0x2350f6:0xa8,_0x2f529f:0x227},_0x21ade9={_0x227ebe:0x1f4};function _0x37eb81(_0x339347,_0x5a45c4,_0x3c444d,_0x2feca9){return _0x51d0c0(_0x339347-0x11,_0x5a45c4-_0x21ade9._0x227ebe,_0x3c444d- -0x70a,_0x339347);}return _0x2808d2['map'](_0x1f6da7=>_0x1f6da7['text'])[_0x37eb81(-_0x1044f8._0x7e57e4,-_0x1044f8._0x2350f6,-0x191,-_0x1044f8._0x2f529f)]('\x0a\x0a');}function createToolDefinitions(_0x4a5e50){const _0x5ccd6e={_0x55d837:0x672,_0x255e8b:0x5d3,_0xe1430f:0x63b,_0x54e43e:0x569},_0x13b140={_0x5a6067:0x309,_0x206824:0x274,_0x485698:0x2af,_0x3fdf90:0x31c,_0x2eca43:0x1f2,_0x9eae89:0x151,_0x156d04:0x249,_0x32b3c6:0x144,_0x4a56e4:0x140,_0x2d60f0:0x1f4},_0x247020={_0x573f83:0x4ed},_0x265bb6={_0x450bb8:0x1da};if(_0x4a5e50[_0x1123c2(_0x5ccd6e._0x55d837,_0x5ccd6e._0x255e8b,0x610,0x647)]===0x0)return void 0x0;function _0x1123c2(_0x1ba2ce,_0xe972eb,_0x840d6b,_0x19565d){return _0x51d0c0(_0x1ba2ce-0xee,_0xe972eb-_0x265bb6._0x450bb8,_0x1ba2ce-0x45,_0x19565d);}function _0x1020b6(_0x1d3aa5,_0x7e1d3d,_0x5ec10f,_0x4fe052){return _0x51d0c0(_0x1d3aa5-0x141,_0x7e1d3d-0xaa,_0x4fe052- -_0x247020._0x573f83,_0x7e1d3d);}return _0x4a5e50[_0x1123c2(_0x5ccd6e._0xe1430f,0x718,_0x5ccd6e._0x54e43e,0x654)](_0x276f32=>{const _0x224bd0={_0x535ee5:0x1be,_0x5a79ce:0x185};function _0x3daa20(_0x5229d3,_0x57e52c,_0x3bdde9,_0x3adcc5){return _0x1020b6(_0x5229d3-0x13d,_0x3bdde9,_0x3bdde9-0x72,_0x3adcc5- -0x14f);}function _0x9003e2(_0xd9125f,_0x27ed68,_0x34c3c7,_0x2b9019){return _0x1020b6(_0xd9125f-0xc1,_0x2b9019,_0x34c3c7-_0x224bd0._0x535ee5,_0xd9125f-_0x224bd0._0x5a79ce);}return{'type':_0x9003e2(_0x13b140._0x5a6067,_0x13b140._0x206824,_0x13b140._0x485698,_0x13b140._0x3fdf90),'function':{'name':_0x276f32['name'],'description':_0x276f32[_0x9003e2(0x1ad,_0x13b140._0x2eca43,_0x13b140._0x9eae89,_0x13b140._0x156d04)],'parameters':_0x276f32[_0x9003e2(_0x13b140._0x32b3c6,_0x13b140._0x4a56e4,0x160,_0x13b140._0x2d60f0)]}};});}function isImageToolResultBlock(_0x4323c0){const _0x356ecf={_0xab4614:0xdd,_0x3858c0:0xc7,_0x53df74:0x492,_0x482678:0x3d5,_0x38c1d6:0x3e4,_0x2499bb:0x3e9,_0x4d1c82:0x332,_0x4aa5a1:0x16d,_0x177ffd:0x29,_0x4fcf58:0x101,_0x26a960:0xe2,_0x3b5d52:0x2b,_0x168d8e:0x67,_0x57617f:0xb9,_0x22ecc0:0x8d,_0x31ea46:0x5c,_0x5a7b62:0x68,_0xdecc10:0x520,_0x390a95:0x5c0,_0x547445:0x501,_0x3ea51d:0x5a8,_0x536892:0x4dd},_0x158c56={_0x49cb77:0x136},_0x1cb3e4={_0x14d9e8:0x5c};if(typeof _0x4323c0!==_0x4596a3(-_0x356ecf._0xab4614,-0x157,-0x60,-0xba)||_0x4323c0===null||Array[_0x4596a3(-0x63,-0xe0,-_0x356ecf._0x3858c0,-0x117)](_0x4323c0))return![];const _0xb1e589=_0x4323c0;function _0x3b7895(_0x24613b,_0x350561,_0x5bda33,_0x4ec97b){return _0x55b3f6(_0x24613b-_0x1cb3e4._0x14d9e8,_0x24613b-0x244,_0x4ec97b,_0x4ec97b-0x84);}function _0x4596a3(_0x4930b5,_0x32efc8,_0x5b1186,_0x4073b0){return _0x55b3f6(_0x4930b5-0x165,_0x4073b0- -0x376,_0x32efc8,_0x4073b0-_0x158c56._0x49cb77);}return _0xb1e589[_0x3b7895(0x459,_0x356ecf._0x53df74,_0x356ecf._0x482678,_0x356ecf._0x38c1d6)]===_0x3b7895(_0x356ecf._0x2499bb,0x4a9,_0x356ecf._0x4d1c82,0x3f8)&&_0xb1e589['source']?.['type']==='base64'&&typeof _0xb1e589[_0x4596a3(-_0x356ecf._0x4aa5a1,-0x85,-_0x356ecf._0x177ffd,-_0x356ecf._0x4fcf58)]['media_type']===_0x4596a3(-_0x356ecf._0x26a960,-_0x356ecf._0x3b5d52,-_0x356ecf._0x168d8e,-_0x356ecf._0x57617f)&&typeof _0xb1e589[_0x4596a3(-_0x356ecf._0x22ecc0,-_0x356ecf._0x31ea46,-_0x356ecf._0x5a7b62,-_0x356ecf._0x4fcf58)][_0x3b7895(_0x356ecf._0xdecc10,0x45d,0x481,_0x356ecf._0x390a95)]===_0x3b7895(_0x356ecf._0x547445,0x4c9,_0x356ecf._0x3ea51d,_0x356ecf._0x536892);}function getToolResultText(_0x592fb8){const _0x370774={_0x1d614d:0x15c,_0x10ccfc:0x245,_0xdf8024:0x29b,_0x14a04a:0x4bd,_0x16d255:0x599,_0x41d5f6:0x4e3,_0x2dad21:0xe0,_0x330043:0x173,_0x4462b2:0xd9,_0x313524:0x153,_0x27193f:0xd8,_0x4a299a:0x5ee,_0x38c2da:0x5d0,_0x1856c8:0x685,_0x456a29:0x5f3,_0x3dce75:0x53a,_0x358e74:0x4d6,_0x210665:0x514},_0x432dca={_0x282f63:0x18b,_0x3837f1:0x5d},_0x29fed5={_0x4b7dc6:0x2d,_0x2f3bd2:0x43},_0x55d4d0={_0x5b48bd:0x191,_0x31e21d:0x14a,_0x47c0cd:0xa8},_0x501d01={_0x10e62c:0x153,_0xc6a87c:0x40,_0x2d9dc4:0x406};function _0x3e9585(_0x50fff4,_0x616a41,_0x43be51,_0x36128a){return _0x51d0c0(_0x50fff4-_0x501d01._0x10e62c,_0x616a41-_0x501d01._0xc6a87c,_0x616a41- -_0x501d01._0x2d9dc4,_0x36128a);}if(typeof _0x592fb8===_0x3e9585(_0x370774._0x1d614d,_0x370774._0x10ccfc,_0x370774._0xdf8024,0x21c))return _0x592fb8;const _0x1e6cf5=_0x592fb8[_0x3e9585(0x137,0xf6,0x138,0x1a)](_0x5788c4=>{const _0x940ad4={_0x16330e:0x42,_0x5cf5f0:0xc7};function _0x5131a5(_0x33ed7c,_0x7e2ae5,_0x3d4aec,_0x5aa6b3){return _0x1104be(_0x33ed7c-_0x940ad4._0x16330e,_0x7e2ae5- -0x431,_0x33ed7c,_0x5aa6b3-_0x940ad4._0x5cf5f0);}function _0x26cf5e(_0x29b91d,_0x12ece1,_0x1c7622,_0x3ad668){return _0x3e9585(_0x29b91d-_0x55d4d0._0x5b48bd,_0x1c7622- -_0x55d4d0._0x31e21d,_0x1c7622-_0x55d4d0._0x47c0cd,_0x29b91d);}return typeof _0x5788c4==='object'&&_0x5788c4!==null&&_0x5788c4[_0x26cf5e(0x80,0x1d,0x53,0x132)]===_0x26cf5e(-_0x29fed5._0x4b7dc6,-0xa9,-_0x29fed5._0x2f3bd2,0x1c);})[_0x1104be(_0x370774._0x14a04a,_0x370774._0x16d255,0x5a5,_0x370774._0x41d5f6)](_0x3154b9=>_0x3154b9[_0x3e9585(0x1b7,0x107,0x1a6,0x56)])[_0x3e9585(_0x370774._0x2dad21,_0x370774._0x330043,_0x370774._0x4462b2,0x243)]('\x0a\x0a')[_0x3e9585(0xba,0x162,_0x370774._0x313524,_0x370774._0x27193f)]();function _0x1104be(_0x37ed13,_0xf098fe,_0x25bf3a,_0x136e78){return _0x51d0c0(_0x37ed13-0xfe,_0xf098fe-_0x432dca._0x282f63,_0xf098fe- -_0x432dca._0x3837f1,_0x25bf3a);}return _0x1e6cf5[_0x1104be(_0x370774._0x4a299a,_0x370774._0x38c2da,_0x370774._0x1856c8,0x51f)]>0x0?_0x1e6cf5:_0x1104be(_0x370774._0x456a29,_0x370774._0x3dce75,_0x370774._0x358e74,_0x370774._0x210665);}function getToolResultImages(_0xa6d347){const _0x4ac5ea={_0xf8966:0x20a,_0x284121:0x236},_0x3fbeec={_0x3a4a1f:0xd5};function _0x316201(_0x5528e7,_0x2b1210,_0x1d7861,_0x4c943d){return _0x55b3f6(_0x5528e7-0x1cf,_0x1d7861- -0x49,_0x5528e7,_0x4c943d-_0x3fbeec._0x3a4a1f);}return Array[_0x316201(_0x4ac5ea._0xf8966,0x1ee,0x216,_0x4ac5ea._0x284121)](_0xa6d347)?_0xa6d347['filter'](isImageToolResultBlock):[];}function parseToolInput2(_0x4cb3e7){const _0x1d0cf7={_0x503939:0x2da},_0x103480={_0x225bbe:0xe1};if(_0x4cb3e7[_0x57a839(0x2a3,0x3c3,_0x1d0cf7._0x503939,0x35f)]===0x0)return{};function _0x57a839(_0x42c724,_0x1b07f6,_0x513da9,_0x10711b){return _0x55b3f6(_0x42c724-_0x103480._0x225bbe,_0x513da9-0x3b,_0x42c724,_0x10711b-0x13b);}try{return JSON['parse'](_0x4cb3e7);}catch{return _0x4cb3e7;}}function isResponsesReasoningItem(_0x342674){const _0x329ce2={_0x12ee58:0x475,_0x1c8f75:0x39a,_0x5daf95:0x3ce,_0x174c46:0x19a,_0xfe60be:0x26a,_0x4ad1e0:0x27f,_0x2acfe8:0x25c,_0x295071:0x300,_0x46d5e:0x342},_0x337090={_0x10ada0:0x73d},_0x1a7fe5={_0xbae492:0x5f,_0x1440b4:0x1d5};function _0x2718f1(_0x1a09bd,_0x1a22e6,_0x488eac,_0xd48e3b){return _0x51d0c0(_0x1a09bd-0x1d3,_0x1a22e6-_0x1a7fe5._0xbae492,_0x1a22e6- -_0x1a7fe5._0x1440b4,_0x488eac);}function _0x39e0bb(_0x274486,_0x2feadb,_0x553816,_0x57b54b){return _0x51d0c0(_0x274486-0x2e,_0x2feadb-0x147,_0x2feadb- -_0x337090._0x10ada0,_0x274486);}return typeof _0x342674===_0x2718f1(0x48b,_0x329ce2._0x12ee58,_0x329ce2._0x1c8f75,0x3a1)&&_0x342674!==null&&_0x2718f1(0x378,_0x329ce2._0x5daf95,0x3d4,0x316)in _0x342674&&_0x342674[_0x39e0bb(-0x15c,-_0x329ce2._0x174c46,-_0x329ce2._0xfe60be,-_0x329ce2._0x4ad1e0)]===_0x39e0bb(-0x216,-_0x329ce2._0x2acfe8,-_0x329ce2._0x295071,-_0x329ce2._0x46d5e);}function isResponsesMessageItem(_0x254d90){const _0x4c8747={_0x4d706d:0x630,_0x9c6ed7:0x551,_0x2b0397:0x6f1,_0x46491d:0x7b,_0x4de3d6:0x66,_0x3c6828:0x13c},_0x5b327f={_0x2fe692:0x190},_0x180769={_0x3d39d1:0x1c0,_0x399a41:0xb8,_0x4e84cf:0x1a};function _0x2105d3(_0xba9b0a,_0x1332ff,_0x4852db,_0xd1b651){return _0x51d0c0(_0xba9b0a-_0x180769._0x3d39d1,_0x1332ff-_0x180769._0x399a41,_0xba9b0a- -_0x180769._0x4e84cf,_0x1332ff);}function _0x31d187(_0x461e2b,_0x2a7f24,_0xfa0182,_0x123b58){return _0x51d0c0(_0x461e2b-_0x5b327f._0x2fe692,_0x2a7f24-0x1df,_0x2a7f24- -0x53d,_0x461e2b);}return typeof _0x254d90===_0x2105d3(_0x4c8747._0x4d706d,0x671,_0x4c8747._0x9c6ed7,_0x4c8747._0x2b0397)&&_0x254d90!==null&&_0x31d187(-_0x4c8747._0x46491d,_0x4c8747._0x4de3d6,-0x42,-0x26)in _0x254d90&&_0x254d90[_0x2105d3(0x589,0x5ed,0x5c2,0x610)]===_0x31d187(0x50,0x100,_0x4c8747._0x3c6828,0x112);}function isResponsesFunctionCallItem(_0x52a77d){const _0x494f2d={_0x2c9308:0xcb,_0x562d9c:0x16,_0x51303c:0x79,_0xdd0baf:0x111},_0x39bb08={_0x4723e0:0x16f},_0x35b787={_0x4808f2:0x108,_0x183aa4:0x581};function _0x3451f1(_0x4051d0,_0x3b602a,_0x2bb4b0,_0x48ad38){return _0x51d0c0(_0x4051d0-_0x35b787._0x4808f2,_0x3b602a-0xb1,_0x48ad38- -_0x35b787._0x183aa4,_0x3b602a);}function _0x55e4f4(_0x325fdf,_0x5789bd,_0x247486,_0x3afe2a){return _0x55b3f6(_0x325fdf-0x1d5,_0x247486- -0x2af,_0x3afe2a,_0x3afe2a-_0x39bb08._0x4723e0);}return typeof _0x52a77d==='object'&&_0x52a77d!==null&&_0x55e4f4(-0xa2,-_0x494f2d._0x2c9308,-0x9a,_0x494f2d._0x562d9c)in _0x52a77d&&_0x52a77d[_0x3451f1(0x59,0x97,_0x494f2d._0x51303c,0x22)]===_0x3451f1(-0x5d,-_0x494f2d._0xdd0baf,-0x37,-0x6d);}function createContentBlocks(_0x199d19,_0x1c96fd,_0x3a47af){const _0x7c2b3f={_0x190f6c:0xe8,_0x501714:0x114,_0x46d881:0x25e,_0x492c2c:0x18f,_0x1505b4:0x2ba,_0x4a4d5a:0x31f,_0x28f26c:0x2ef,_0x569d99:0xf2,_0x3a6ea5:0x1c7,_0x3608c8:0x1e2,_0x318964:0x158,_0x20490a:0x22e,_0x4b19a8:0x14a,_0x1151b8:0x378,_0x2bba1e:0x34e,_0x54b23f:0x383,_0x488216:0x35f,_0x4eba5c:0x400,_0x215e56:0x304,_0x53b0f2:0xdb,_0xf8d373:0x123,_0x175bc8:0xae,_0x3fcae5:0x370,_0x38258a:0xfa,_0x37c41d:0xdb,_0x1aa405:0x91,_0x34c4d0:0x15c,_0x4e0224:0x16},_0x84ee4b={_0x7aeba1:0xd8,_0x3c3e01:0x92,_0x12da87:0x71f},_0x26e904={_0x31e32e:0xaf},_0x2caf1b=[];_0x3a47af&&_0x3a47af[_0x3dadea(-_0x7c2b3f._0x190f6c,-0xf2,-0xf2,-_0x7c2b3f._0x501714)]>0x0&&_0x2caf1b[_0x24cb4f(0x2f9,_0x7c2b3f._0x46d881,_0x7c2b3f._0x492c2c,0x264)]({'type':_0x24cb4f(_0x7c2b3f._0x1505b4,_0x7c2b3f._0x4a4d5a,_0x7c2b3f._0x28f26c,0x25a),'summary':[],'text':_0x3a47af});_0x199d19[_0x3dadea(-0x164,-_0x7c2b3f._0x569d99,-0x130,-0x15e)]>0x0&&_0x2caf1b[_0x3dadea(-_0x7c2b3f._0x3a6ea5,-_0x7c2b3f._0x3608c8,-0x12d,-_0x7c2b3f._0x318964)]({'type':_0x24cb4f(0x169,_0x7c2b3f._0x20490a,_0x7c2b3f._0x4b19a8,0x1bc),'text':_0x199d19});function _0x24cb4f(_0x355b45,_0x2bf094,_0x3eca94,_0xc46cf){return _0x55b3f6(_0x355b45-0x1bc,_0x2bf094-_0x26e904._0x31e32e,_0x3eca94,_0xc46cf-0xc9);}for(const _0x95e9ba of _0x1c96fd){if(_0x95e9ba['id']['trim']()[_0x24cb4f(_0x7c2b3f._0x1151b8,_0x7c2b3f._0x2bba1e,_0x7c2b3f._0x54b23f,0x27c)]===0x0||_0x95e9ba[_0x24cb4f(_0x7c2b3f._0x488216,0x392,_0x7c2b3f._0x4eba5c,_0x7c2b3f._0x215e56)][_0x3dadea(-0x47,-_0x7c2b3f._0x53b0f2,-_0x7c2b3f._0xf8d373,-_0x7c2b3f._0x175bc8)]['trim']()['length']===0x0)continue;_0x2caf1b['push']({'type':_0x3dadea(-0x2a8,-0x1d5,-0x140,-0x287),'id':_0x95e9ba['id'],'name':_0x95e9ba[_0x24cb4f(0x2d6,0x392,_0x7c2b3f._0x3fcae5,0x350)][_0x3dadea(-_0x7c2b3f._0x38258a,-_0x7c2b3f._0x37c41d,-0xa0,-_0x7c2b3f._0x1aa405)],'input':parseToolInput2(_0x95e9ba[_0x3dadea(-_0x7c2b3f._0x34c4d0,-0xae,-0x62,_0x7c2b3f._0x4e0224)]['arguments'])});}function _0x3dadea(_0x2242a1,_0x5662fc,_0x4d9160,_0x55363f){return _0x51d0c0(_0x2242a1-_0x84ee4b._0x7aeba1,_0x5662fc-_0x84ee4b._0x3c3e01,_0x5662fc- -_0x84ee4b._0x12da87,_0x4d9160);}return _0x2caf1b;}function createUsage(_0x5ecd92){const _0x211169={_0x4ca21e:0x1c8,_0x5eaa55:0xea,_0x5f0303:0x151,_0x3b8ccb:0xee,_0x3a3fbb:0xb5,_0xab69c2:0x9d,_0x110dd2:0xc4,_0x7a1006:0x182,_0xc7078b:0xf1},_0x1df3f8={_0x22a3e7:0xa5,_0x247358:0x1ae},_0x539047={_0x459f0a:0xc0,_0x1a9790:0xa8};function _0x42c653(_0x28a245,_0x1b07a8,_0x3683ee,_0x547608){return _0x55b3f6(_0x28a245-_0x539047._0x459f0a,_0x3683ee- -0x2dd,_0x547608,_0x547608-_0x539047._0x1a9790);}function _0x3bc38e(_0x590085,_0x41239c,_0x4d3e1d,_0x5138cb){return _0x55b3f6(_0x590085-_0x1df3f8._0x22a3e7,_0x4d3e1d- -0x3aa,_0x41239c,_0x5138cb-_0x1df3f8._0x247358);}return{'inputTokens':_0x5ecd92?.[_0x3bc38e(-_0x211169._0x4ca21e,-0x1f,-0xea,-_0x211169._0x5eaa55)]??0x0,'outputTokens':_0x5ecd92?.['completion_tokens']??0x0,..._0x5ecd92?.[_0x42c653(-_0x211169._0x5f0303,-_0x211169._0x3b8ccb,-_0x211169._0x3a3fbb,-_0x211169._0xab69c2)]?.['reasoning_tokens']!==void 0x0?{'reasoningTokens':_0x5ecd92[_0x3bc38e(-0x260,-_0x211169._0x110dd2,-_0x211169._0x7a1006,-0xce)][_0x3bc38e(-_0x211169._0xc7078b,-0xd6,-0xe1,-0xd1)]}:{}};}function resolveReasoningVisibility2(_0x4666b0){const _0x2d7a8d={_0x5fb803:0x133,_0x254acd:0x262,_0x252a3c:0xf0,_0x1b6bf7:0xfb,_0x7d505a:0x147,_0x5076b7:0x18e,_0x4387e3:0xf6},_0x509d63={_0x360c2e:0xe4},_0x5c5701={_0x1f6f4f:0x18a,_0x356b06:0x665};function _0x495764(_0x469c34,_0x1bcb77,_0x432ab8,_0x4f5e35){return _0x51d0c0(_0x469c34-_0x5c5701._0x1f6f4f,_0x1bcb77-0x1e4,_0x4f5e35- -_0x5c5701._0x356b06,_0x1bcb77);}function _0x218d2d(_0x121d84,_0x239c8d,_0x29c5f4,_0xd8dc3c){return _0x55b3f6(_0x121d84-0x44,_0xd8dc3c- -_0x509d63._0x360c2e,_0x121d84,_0xd8dc3c-0x1c3);}return _0x4666b0[_0x495764(-_0x2d7a8d._0x5fb803,-_0x2d7a8d._0x254acd,-0x17d,-0x184)]?.[_0x495764(-_0x2d7a8d._0x252a3c,-_0x2d7a8d._0x1b6bf7,-_0x2d7a8d._0x7d505a,-_0x2d7a8d._0x5076b7)]??_0x218d2d(0x186,0xbe,_0x2d7a8d._0x4387e3,0x14f);}function isUserVisibleReasoning(_0x392dd6){const _0x190272={_0x4f6286:0x1fb,_0xf25079:0x1e6,_0x5b4943:0x216,_0xf8fe1:0x46c,_0x49fc08:0x47b,_0x4c4547:0x3a3},_0x30597e={_0x1830c7:0x144,_0x1a0247:0x3e,_0x30c343:0x6f7};function _0x42142e(_0x124ce0,_0x5a9bbc,_0x2a53aa,_0x578251){return _0x51d0c0(_0x124ce0-_0x30597e._0x1830c7,_0x5a9bbc-_0x30597e._0x1a0247,_0x578251- -_0x30597e._0x30c343,_0x2a53aa);}function _0x2c7b34(_0x32c98d,_0x12f588,_0x29cd06,_0x50457d){return _0x55b3f6(_0x32c98d-0x14c,_0x50457d-0x170,_0x12f588,_0x50457d-0x1c6);}return resolveOpenAiReasoningConfig(_0x392dd6[_0x42142e(-0x2a7,-_0x190272._0x4f6286,-_0x190272._0xf25079,-_0x190272._0x5b4943)])!==void 0x0&&resolveReasoningVisibility2(_0x392dd6)===_0x2c7b34(_0x190272._0xf8fe1,0x347,_0x190272._0x49fc08,_0x190272._0x4c4547);}function createChatRequestBody(_0x5f0d03,_0x3ba6e6){const _0x4dfe7f={_0x3b349f:0x3e,_0x293e13:0x1c,_0x3e2586:0x40,_0xb4cef:0x17f,_0x3882aa:0xb3,_0x307420:0xef,_0x208049:0x3,_0x18f594:0x168,_0x3f02b3:0x119,_0x1b9535:0x4b,_0x10ac0d:0xda,_0x1ba0b3:0x201,_0x4b2ce0:0x7b,_0x233706:0x90,_0x105c04:0xf3,_0xd2aec7:0x4b,_0x551703:0x49,_0x5be6d3:0x48,_0xe6fe24:0x7,_0x47a2bf:0x4a,_0x4f05c3:0x61,_0x2314ef:0x83,_0x500f70:0x139,_0x10ecd7:0xa6,_0x33d407:0x1ac,_0x3d4d28:0x1c3,_0x47bafa:0x1f3,_0x181e40:0x19d,_0x51982f:0x17a,_0x4a24ce:0xe3,_0x23dfe6:0xe1,_0x21b8f7:0xed,_0x50526a:0x6c,_0x3075d0:0x172,_0x14ee41:0x238,_0x5a4b92:0x194,_0x1f0f20:0x10e,_0x282903:0x215,_0x1e9dc4:0x43,_0x1979ba:0x45,_0x324bdf:0x1fb,_0x196a50:0x1e0,_0xfe7bae:0x180,_0x5ef418:0xa,_0x301665:0xf6,_0x191d83:0xfa,_0x262789:0x1b7,_0x4f3ed7:0x30,_0x180d44:0x68,_0x2b0ff5:0x7c,_0x47441c:0x2a,_0x14750c:0x67,_0x3282ce:0x1a,_0x30e6f3:0x7e,_0x429eeb:0x5,_0xc702ff:0x6,_0x4c5e7f:0x1a0,_0x342b62:0x167,_0x534fb1:0x164,_0xa5ab55:0xde,_0xb98b2:0x207,_0x456d86:0x3d,_0x1fba1d:0x87,_0x352429:0x57,_0xa6bed2:0x186,_0x30b800:0x2,_0x3fc984:0xc4,_0x23babd:0x83,_0x189e92:0x28,_0x80939b:0x18b,_0x221247:0x20e,_0x103d29:0x1af,_0x5902b1:0x1c5,_0x2146c9:0x183},_0x5f1df9={_0x5c81ed:0x1c4},_0x72b56c={_0x4e81e7:0x18a,_0x4806e4:0xdc,_0x23d139:0x172,_0x49fe21:0x13a,_0x3ffd2f:0x1fb,_0x4033ac:0x1b1,_0x5df044:0x29c,_0x3fea7a:0xdb,_0x8eb148:0x142,_0x39a441:0x16a,_0x341b6d:0x1db,_0xe99344:0x52,_0x4a9cfe:0xb9,_0x5b2306:0x9a,_0x5ebc12:0x9e,_0x4f8917:0x1e6,_0x3c3462:0x203,_0x323699:0x233,_0x1640d8:0x209,_0x42843b:0x185,_0x249da2:0x92,_0x35183a:0xf1,_0x5c2efb:0x16c,_0x24ea5b:0x123,_0x1e4526:0xb1,_0x4dfa89:0xc9,_0xb86fc5:0x141,_0x2b5c6a:0x182,_0x17afd1:0x128,_0x2745a2:0x131,_0x1a63ec:0xae,_0x4a658a:0x182,_0x20e807:0x59,_0x425bfc:0x138,_0x329c1e:0x27,_0x38a1dc:0x2ff,_0x145611:0x199,_0x311c66:0x5a,_0x37c1b9:0x88,_0x3c3ec0:0x1be,_0x5df0a7:0xd2,_0x332318:0x1dd,_0x6dec88:0xe4,_0x4f700f:0x8e,_0x2329be:0x175,_0x28114d:0x2ba,_0x2f98ac:0x122,_0x284d2b:0x70,_0x5f3543:0x113,_0x146240:0x1ad,_0x851fca:0x155,_0x3f2384:0x2af,_0x438eca:0x22b},_0x4fe181={_0x41c6ed:0x4d};function _0x422498(_0x3f4378,_0x3ac9f5,_0x248465,_0xcc4104){return _0x51d0c0(_0x3f4378-0x1b3,_0x3ac9f5-0x171,_0xcc4104- -0x4c2,_0x248465);}const _0x448377=[],_0x147a87=stringifySystem(_0x5f0d03[_0x422498(-_0x4dfe7f._0x3b349f,_0x4dfe7f._0x293e13,0x7d,_0x4dfe7f._0x3e2586)]);_0x147a87['length']>0x0&&_0x448377[_0x26e878(-0x25,_0x4dfe7f._0xb4cef,_0x4dfe7f._0x3882aa,_0x4dfe7f._0x307420)]({'role':'system','content':_0x147a87});for(const _0x424dfa of _0x5f0d03[_0x26e878(_0x4dfe7f._0x208049,0xfc,0x95,0x170)]){const _0x1db10f=[],_0x43f646=[],_0x5d519d=[],_0x33f7d6=()=>{const _0x512b6c={_0x54269f:0x138,_0x473036:0x61};if(_0x424dfa[_0x11668d(_0x72b56c._0x4e81e7,_0x72b56c._0x4806e4,_0x72b56c._0x23d139,_0x72b56c._0x49fe21)]===_0x11668d(_0x72b56c._0x3ffd2f,_0x72b56c._0x4033ac,0x15c,0x1be)){if(_0x1db10f[_0x11668d(0x1f8,0x249,0x203,_0x72b56c._0x5df044)]===0x0&&_0x43f646[_0x28c69c(_0x72b56c._0x3fea7a,_0x72b56c._0x8eb148,_0x72b56c._0x39a441,_0x72b56c._0x341b6d)]===0x0)return;_0x448377[_0x28c69c(0x104,_0x72b56c._0xe99344,_0x72b56c._0x4a9cfe,0xcd)]({'role':_0x11668d(_0x72b56c._0x5b2306,_0x72b56c._0x5ebc12,0x15c,0x1ce),'content':_0x1db10f[_0x11668d(0x226,_0x72b56c._0x4f8917,_0x72b56c._0x3c3462,_0x72b56c._0x323699)]>0x0?_0x1db10f[_0x28c69c(0x13,0x8e,0x95,0x6c)]('\x0a\x0a'):null,..._0x43f646[_0x11668d(_0x72b56c._0x1640d8,0x186,0x203,0x206)]>0x0?{'tool_calls':_0x43f646[_0x11668d(_0x72b56c._0x42843b,_0x72b56c._0x249da2,_0x72b56c._0x35183a,0x22)](0x0)}:{}}),_0x1db10f[_0x28c69c(_0x72b56c._0x5c2efb,_0x72b56c._0x8eb148,_0x72b56c._0x8eb148,_0x72b56c._0x24ea5b)]=0x0;return;}function _0x11668d(_0x322d11,_0x4761ea,_0x352d37,_0x3c99ea){return _0x26e878(_0x4761ea,_0x4761ea-0x38,_0x352d37-0x60,_0x3c99ea-_0x4fe181._0x41c6ed);}if(_0x424dfa[_0x28c69c(0x190,_0x72b56c._0x1e4526,0x104,_0x72b56c._0x4dfa89)]===_0x28c69c(0x213,0x174,_0x72b56c._0xb86fc5,0x1b0)){if(_0x5d519d[_0x28c69c(_0x72b56c._0x2b5c6a,_0x72b56c._0x8eb148,0x101,_0x72b56c._0x17afd1)]===0x0)return;const _0x1b7505=_0x5d519d[_0x28c69c(_0x72b56c._0x2745a2,_0x72b56c._0x1a63ec,_0x72b56c._0x4a658a,_0x72b56c._0x20e807)](_0x3a45fe=>_0x3a45fe[_0x28c69c(0x4f,0xb8,0x15d,0xbc)]===_0x28c69c(0x100,0x14c,0x118,0x173));_0x448377[_0x28c69c(0x61,0x52,_0x72b56c._0x425bfc,_0x72b56c._0x329c1e)]({'role':_0x11668d(0x1fa,_0x72b56c._0x38a1dc,0x235,_0x72b56c._0x145611),'content':_0x1b7505?_0x5d519d['splice'](0x0):_0x5d519d[_0x11668d(_0x72b56c._0x311c66,_0x72b56c._0x37c1b9,0xf1,_0x72b56c._0x3c3ec0)](0x0)[_0x11668d(0x136,0xff,_0x72b56c._0x5df0a7,0x18e)](_0x130b7=>_0x130b7[_0x28c69c(0x90,0xb8,0x131,0x122)]===_0x11668d(0x19,0xf2,0xe3,0x20))[_0x28c69c(0xe6,0x10b,_0x72b56c._0x332318,_0x72b56c._0x6dec88)](_0xa5cf3b=>_0xa5cf3b['text'])[_0x28c69c(-0x3b,_0x72b56c._0x4f700f,0x72,_0x72b56c._0x2329be)]('\x0a\x0a')});return;}if(_0x1db10f[_0x11668d(0x222,_0x72b56c._0x28114d,_0x72b56c._0x3c3462,_0x72b56c._0x2f98ac)]===0x0)return;function _0x28c69c(_0x3590b3,_0x53d881,_0x1f9e51,_0xa7f00b){return _0x26e878(_0x3590b3,_0x53d881-_0x512b6c._0x54269f,_0x53d881- -_0x512b6c._0x473036,_0xa7f00b-0x10d);}_0x448377[_0x11668d(0x135,_0x72b56c._0x284d2b,_0x72b56c._0x5f3543,_0x72b56c._0x146240)]({'role':_0x424dfa['role'],'content':_0x1db10f[_0x28c69c(0xa0,_0x72b56c._0x4f700f,_0x72b56c._0x851fca,_0x72b56c._0x4f700f)]('\x0a\x0a')}),_0x1db10f[_0x11668d(_0x72b56c._0x3f2384,0x250,_0x72b56c._0x3c3462,_0x72b56c._0x438eca)]=0x0;};for(const _0x1a0605 of normalizeContent(_0x424dfa['content'])){if(_0x1a0605[_0x26e878(_0x4dfe7f._0x18f594,0x1e0,_0x4dfe7f._0x3f02b3,0x122)]===_0x422498(0xf6,0xe7,-0x92,_0x4dfe7f._0x1b9535)){_0x424dfa[_0x422498(0x1c0,0x49,0x27,_0x4dfe7f._0x10ac0d)]===_0x422498(0xea,_0x4dfe7f._0x1ba0b3,0xe4,0x19d)?_0x5d519d[_0x422498(0x19,0x114,0x9,_0x4dfe7f._0x4b2ce0)]({'type':_0x422498(-_0x4dfe7f._0x233706,_0x4dfe7f._0x105c04,-0x3b,_0x4dfe7f._0xd2aec7),'text':_0x1a0605[_0x422498(_0x4dfe7f._0x551703,_0x4dfe7f._0x5be6d3,_0x4dfe7f._0xe6fe24,0x4b)]}):_0x1db10f[_0x422498(_0x4dfe7f._0x47a2bf,0x9d,-0x3d,0x7b)](_0x1a0605[_0x26e878(0xac,-_0x4dfe7f._0x4f05c3,_0x4dfe7f._0x2314ef,_0x4dfe7f._0x500f70)]);continue;}if(_0x424dfa[_0x422498(_0x4dfe7f._0x10ecd7,0x79,_0x4dfe7f._0x33d407,0xda)]===_0x422498(_0x4dfe7f._0x3d4d28,0x1f6,_0x4dfe7f._0x47bafa,_0x4dfe7f._0x181e40)&&_0x1a0605[_0x422498(_0x4dfe7f._0x51982f,_0x4dfe7f._0x4a24ce,0x53,_0x4dfe7f._0x23dfe6)]===_0x26e878(_0x4dfe7f._0x21b8f7,_0x4dfe7f._0x50526a,0xa9,_0x4dfe7f._0x3075d0)){_0x5d519d['push']({'type':_0x26e878(_0x4dfe7f._0x14ee41,_0x4dfe7f._0x5a4b92,0x1ad,0x181),'image_url':{'url':_0x422498(0xc7,0x179,0x1d6,_0x4dfe7f._0x1f0f20)+_0x1a0605[_0x422498(0x1f6,_0x4dfe7f._0x282903,0x150,0x141)][_0x422498(0x76,-0x22,-_0x4dfe7f._0x47a2bf,_0x4dfe7f._0x1e9dc4)]+_0x422498(-0x5d,-_0x4dfe7f._0x1979ba,-0xba,0x13)+_0x1a0605['source'][_0x26e878(0x17d,_0x4dfe7f._0x324bdf,_0x4dfe7f._0x196a50,_0x4dfe7f._0xfe7bae)]}});continue;}if(_0x1a0605[_0x422498(0xd6,_0x4dfe7f._0x10ac0d,0x7e,0xe1)]===_0x26e878(0x16f,-_0x4dfe7f._0x5ef418,0xc0,0x129)){_0x43f646['push']({'id':_0x1a0605['id'],'type':_0x422498(_0x4dfe7f._0x301665,_0x4dfe7f._0x191d83,0x127,0x1af),'function':{'name':_0x1a0605[_0x422498(_0x4dfe7f._0x262789,0xc1,0x1e6,0x182)],'arguments':JSON[_0x422498(-_0x4dfe7f._0x4f3ed7,_0x4dfe7f._0x180d44,_0x4dfe7f._0x2b0ff5,0x46)](_0x1a0605[_0x26e878(0x68,_0x4dfe7f._0x47441c,_0x4dfe7f._0x14750c,0x17)]??{})}});continue;}if(_0x1a0605['type']!==_0x26e878(0xa0,_0x4dfe7f._0x3282ce,0x4a,0xf5))continue;_0x33f7d6(),_0x448377['push']({'role':_0x422498(0x74,-_0x4dfe7f._0x30e6f3,-0x88,_0x4dfe7f._0x429eeb),'content':getToolResultText(_0x1a0605[_0x422498(-_0x4dfe7f._0xc702ff,-0x18,0x5f,0x8f)]),'tool_call_id':_0x1a0605[_0x26e878(0x14a,0x21d,_0x4dfe7f._0x4c5e7f,_0x4dfe7f._0x342b62)]});const _0x54f159=getToolResultImages(_0x1a0605['content']);_0x54f159[_0x26e878(_0x4dfe7f._0x534fb1,_0x4dfe7f._0xa5ab55,0x1a3,0x25b)]>0x0&&_0x448377['push']({'role':'user','content':[{'type':'text','text':'Image\x20returned\x20by\x20ViewFile\x20for\x20tool\x20result\x20'+_0x1a0605[_0x26e878(0x1ef,0xc4,_0x4dfe7f._0x4c5e7f,_0x4dfe7f._0xb98b2)]+'.'},..._0x54f159['map'](_0x312731=>({'type':_0x422498(0xe2,0x159,0xa3,0x175),'image_url':{'url':_0x26e878(0x90,0x86,0x146,0x15e)+_0x312731[_0x26e878(0x175,0x1d2,0x179,0x252)][_0x26e878(0x11f,0xe8,0x7b,0xb3)]+_0x26e878(0x106,0x132,0x4b,-0x16)+_0x312731[_0x422498(0x195,0x164,0x12f,0x141)][_0x26e878(0x163,0x2ba,0x1e0,0x16c)]}}))]});}_0x33f7d6();}function _0x26e878(_0x56f4e4,_0x3c6667,_0x4640c2,_0x32b36d){return _0x51d0c0(_0x56f4e4-_0x5f1df9._0x5c81ed,_0x3c6667-0xaa,_0x4640c2- -0x48a,_0x56f4e4);}const _0x15d643=resolveOpenAiReasoningConfig(_0x5f0d03[_0x26e878(-_0x4dfe7f._0x456d86,_0x4dfe7f._0x1fba1d,_0x4dfe7f._0x352429,-0x45)]);return{'model':_0x5f0d03[_0x422498(0x68,0x195,_0x4dfe7f._0xa6bed2,0xcc)],'messages':_0x448377,'stream':_0x3ba6e6,..._0x15d643?{'max_completion_tokens':_0x5f0d03[_0x422498(_0x4dfe7f._0x30b800,0x73,0x18f,0xcd)]}:{'max_tokens':_0x5f0d03[_0x422498(_0x4dfe7f._0x3fc984,_0x4dfe7f._0x23babd,_0x4dfe7f._0x189e92,0xcd)]},..._0x15d643?.[_0x422498(0xb9,0x264,0xca,_0x4dfe7f._0x80939b)]?{'reasoning_effort':_0x15d643[_0x422498(_0x4dfe7f._0x221247,_0x4dfe7f._0x103d29,_0x4dfe7f._0x5902b1,_0x4dfe7f._0x80939b)]}:{},...createToolDefinitions(_0x5f0d03['tools'])?{'tools':createToolDefinitions(_0x5f0d03[_0x26e878(0x249,0x12a,_0x4dfe7f._0x2146c9,0x18d)])}:{}};}function createResponsesRequestBody(_0x8bd3f3,_0x20fb50){return{...toOpenAiResponsesRequest(_0x8bd3f3),..._0x20fb50?{'stream':!![]}:{},'store':![]};}function createOpenAiResponsesWebSocketEvent(_0x1a3039,_0x27dc7f={}){const _0x5b99d8={_0x3e151c:0x489,_0x44b416:0x3f4,_0x8b01b2:0x484,_0x5e36b9:0x1ef,_0x1ba61:0x17c,_0x1309e4:0x1f8,_0x5e5d8b:0x145},_0x2d89eb={_0x165fbe:0x301},_0x3117c2={_0x242152:0x153,_0x1ec10f:0xab};function _0x121a63(_0x42272c,_0x1afcc5,_0x1d1697,_0x381a5f){return _0x51d0c0(_0x42272c-_0x3117c2._0x242152,_0x1afcc5-0xb2,_0x42272c- -_0x3117c2._0x1ec10f,_0x1afcc5);}const _0x58b234=toOpenAiResponsesRequest(_0x1a3039);function _0x176ff3(_0x50c909,_0x1a6178,_0x29ae93,_0x49c3b5){return _0x51d0c0(_0x50c909-0x81,_0x1a6178-0xf4,_0x49c3b5- -_0x2d89eb._0x165fbe,_0x29ae93);}return{'type':_0x121a63(_0x5b99d8._0x3e151c,0x3f6,_0x5b99d8._0x44b416,_0x5b99d8._0x8b01b2),..._0x58b234,..._0x27dc7f[_0x176ff3(0x13a,0x2d9,_0x5b99d8._0x5e36b9,0x1f0)]?{'input':_0x27dc7f[_0x176ff3(_0x5b99d8._0x1ba61,_0x5b99d8._0x1309e4,_0x5b99d8._0x5e5d8b,0x1f0)]}:{},..._0x27dc7f['previousResponseId']?{'previous_response_id':_0x27dc7f['previousResponseId']}:{},'store':![]};}function _0x51d0c0(_0x492c84,_0x595860,_0x32f438,_0x13b94f){return _0x5dd8(_0x32f438-0x392,_0x13b94f);}function normalizeAssistantContent(_0x4a122c){const _0x4341f6={_0xaa5c2a:0x125,_0x2a3d88:0x11b,_0x5e6de8:0x1a8,_0x16db28:0x35,_0x12f187:0x2b},_0xa61d40={_0x5d19af:0x530,_0x5c2810:0x506,_0x2ab7a3:0x3e7,_0x1443a9:0xb6,_0x27d819:0x14,_0x2049f5:0x89,_0x5b8e51:0x41,_0x1c427f:0x4a4,_0x1f6765:0x57b,_0x41d8de:0x5dd},_0x6481af={_0x404be4:0x17,_0x20a197:0x5f9},_0x1f0f2e={_0xbaa31:0x1c6,_0x343895:0x83},_0x122e70={_0x52e549:0x14,_0x242e21:0x10b},_0x48df14={_0x34c415:0xce,_0x4b7f1f:0x1c8,_0x540aed:0x507};function _0x6e58cb(_0x578b59,_0x278f3a,_0x1162ea,_0xf96a0){return _0x51d0c0(_0x578b59-_0x48df14._0x34c415,_0x278f3a-_0x48df14._0x4b7f1f,_0xf96a0- -_0x48df14._0x540aed,_0x278f3a);}if(typeof _0x4a122c===_0x2f91dc(-_0x4341f6._0xaa5c2a,-0x8e,-_0x4341f6._0x2a3d88,-0xb3))return _0x4a122c;if(!Array['isArray'](_0x4a122c))return'';function _0x2f91dc(_0x1f9657,_0x877bf4,_0x19b38a,_0x187462){return _0x51d0c0(_0x1f9657-_0x122e70._0x52e549,_0x877bf4-_0x122e70._0x242e21,_0x877bf4- -0x6d9,_0x187462);}return _0x4a122c[_0x2f91dc(-0x77,-0xe3,-0x9c,-_0x4341f6._0x5e6de8)](_0x216ea9=>{function _0x12157e(_0x49dbe3,_0x2d9ad6,_0x41a5e8,_0x16ea3f){return _0x6e58cb(_0x49dbe3-_0x1f0f2e._0xbaa31,_0x16ea3f,_0x41a5e8-0x14e,_0x41a5e8-_0x1f0f2e._0x343895);}function _0x422795(_0x404d10,_0x271943,_0x185e51,_0x544c5c){return _0x2f91dc(_0x404d10-_0x6481af._0x404be4,_0x271943-_0x6481af._0x20a197,_0x185e51-0x112,_0x185e51);}return _0x216ea9[_0x422795(_0xa61d40._0x5d19af,0x4c3,_0xa61d40._0x5c2810,_0xa61d40._0x2ab7a3)]==='text'?_0x216ea9[_0x12157e(_0xa61d40._0x1443a9,_0xa61d40._0x27d819,_0xa61d40._0x2049f5,-_0xa61d40._0x5b8e51)]:_0x216ea9[_0x422795(_0xa61d40._0x1c427f,_0xa61d40._0x1f6765,_0xa61d40._0x41d8de,0x4c3)];})[_0x6e58cb(0x126,-_0x4341f6._0x16db28,_0x4341f6._0x12f187,0x72)]('');}function normalizeResponsesMessageContent(_0x2b977b){const _0x4d871a={_0xec2ebc:0x7,_0x163bdb:0xa5,_0x3da3e0:0x0,_0x5e83a3:0x36},_0x3d1e6e={_0x5c3aa2:0x3a0,_0x93a908:0xc2,_0x1b12f6:0x20,_0x469628:0x66,_0x26c1eb:0x201,_0x1608b1:0x1db,_0x5b37d1:0x2b2,_0x3b3313:0x5e,_0x5c1bd6:0x10f,_0x3d6e7c:0x113,_0x4912f4:0x95,_0x1316f3:0x1f,_0x4fb6bd:0xb2,_0x546b69:0x7e,_0xfdd399:0xcc,_0x1fbdd8:0x16},_0x7c876d={_0x237100:0x3a,_0x4d7568:0x91,_0x1cf79e:0x5f6},_0xe43fef={_0x4f1e65:0x2b9,_0x58763e:0x1a6};if(!Array[_0x237e9e(0x83,-0x9,0xc5,-_0x4d871a._0xec2ebc)](_0x2b977b))return'';function _0x403884(_0x5a8f47,_0x2c743a,_0x1bc14a,_0x16946e){return _0x55b3f6(_0x5a8f47-0x17f,_0x5a8f47- -_0xe43fef._0x4f1e65,_0x2c743a,_0x16946e-_0xe43fef._0x58763e);}function _0x237e9e(_0x44179a,_0x2ceec5,_0x5322a5,_0x38010c){return _0x51d0c0(_0x44179a-_0x7c876d._0x237100,_0x2ceec5-_0x7c876d._0x4d7568,_0x2ceec5- -_0x7c876d._0x1cf79e,_0x44179a);}return _0x2b977b[_0x237e9e(_0x4d871a._0x163bdb,_0x4d871a._0x3da3e0,-_0x4d871a._0x5e83a3,-0x13)](_0x4349fe=>{const _0x2a0f13={_0x59f9ca:0x34c,_0x56efbe:0x18c,_0x4639ed:0x72},_0x41dbce={_0x1ae101:0x18};function _0x2c258a(_0x52741a,_0x454ae8,_0xf4c003,_0x11a227){return _0x403884(_0x52741a-0xdc,_0xf4c003,_0xf4c003-0x17c,_0x11a227-_0x41dbce._0x1ae101);}if(!_0x4349fe||typeof _0x4349fe!==_0x532dbe(0x2bc,0x367,0x2f3,_0x3d1e6e._0x5c3aa2))return'';const _0x3f4101=_0x4349fe;function _0x532dbe(_0x207418,_0x2bd7ed,_0xff2bcb,_0x2a0382){return _0x237e9e(_0xff2bcb,_0x2a0382-_0x2a0f13._0x59f9ca,_0xff2bcb-_0x2a0f13._0x56efbe,_0x2a0382-_0x2a0f13._0x4639ed);}if(_0x3f4101[_0x2c258a(0x38,_0x3d1e6e._0x93a908,-_0x3d1e6e._0x1b12f6,_0x3d1e6e._0x469628)]===_0x532dbe(_0x3d1e6e._0x26c1eb,_0x3d1e6e._0x1608b1,_0x3d1e6e._0x5b37d1,0x20b)&&typeof _0x3f4101[_0x2c258a(-_0x3d1e6e._0x3b3313,-_0x3d1e6e._0x5c1bd6,-0xe4,0x3d)]===_0x2c258a(0xe0,0x159,_0x3d1e6e._0x3d6e7c,_0x3d1e6e._0x4912f4))return _0x3f4101[_0x2c258a(-0x5e,-0x90,-_0x3d1e6e._0x1316f3,-_0x3d1e6e._0x4fb6bd)];if(_0x3f4101['type']==='refusal'&&typeof _0x3f4101[_0x2c258a(0xf0,0x68,_0x3d1e6e._0x546b69,0xe2)]==='string')return _0x3f4101[_0x2c258a(0xf0,_0x3d1e6e._0xfdd399,_0x3d1e6e._0x1fbdd8,0x5d)];return'';})['join']('');}function extractOpenAiReasoningText(_0xa738d2){const _0x58634a={_0x3257bd:0x137,_0x3444b0:0x33,_0x35a347:0x139,_0x4c2f12:0x37,_0xc7077:0x62,_0x1aa1d7:0xb1,_0x2f56fc:0x69,_0x1aff46:0x85,_0x190cda:0x107,_0xac5b08:0x1c2,_0x21c670:0xb1,_0x39f94c:0x167,_0x314135:0xcc,_0x2969e9:0x129},_0x310028={_0x5dfeb9:0xe4},_0xee78d1={_0x444500:0xc7,_0x416bf7:0x5cb};function _0x1bef52(_0x41e9be,_0x111d12,_0x1250d5,_0x1dfc34){return _0x51d0c0(_0x41e9be-_0xee78d1._0x444500,_0x111d12-0x1a,_0x1dfc34- -_0xee78d1._0x416bf7,_0x1250d5);}if(typeof _0xa738d2['text']===_0x1bef52(_0x58634a._0x3257bd,-_0x58634a._0x3444b0,_0x58634a._0x35a347,0x80))return _0xa738d2[_0x1bef52(-_0x58634a._0x4c2f12,-0x3e,-_0x58634a._0xc7077,-0xbe)];function _0xb14977(_0x2176c3,_0xdcdcff,_0x45f3be,_0x322266){return _0x51d0c0(_0x2176c3-0xf2,_0xdcdcff-_0x310028._0x5dfeb9,_0x45f3be- -0x713,_0xdcdcff);}if(!Array[_0x1bef52(-_0x58634a._0x1aa1d7,-_0x58634a._0x2f56fc,-_0x58634a._0x1aff46,0x22)](_0xa738d2[_0xb14977(-0x279,-_0x58634a._0x190cda,-_0x58634a._0xac5b08,-0x1d2)]))return'';return _0xa738d2['content'][_0x1bef52(-0xbc,-_0x58634a._0x21c670,-_0x58634a._0x39f94c,-0xcf)](_0x35ac6e=>_0x35ac6e[_0x1bef52(-0x1b,-0x1c,-0xfd,-0x28)]===_0x1bef52(-0xe6,-0xdb,-0xf9,-0xc5)&&typeof _0x35ac6e[_0x1bef52(-0x74,-0x65,-0x70,-0xbe)]===_0x1bef52(0x68,0xb9,0x6a,0x80))[_0xb14977(-0x1de,-0xd1,-0x11d,-_0x58634a._0x314135)](_0x578de9=>_0x578de9[_0x1bef52(-0x173,-0x17d,-0x100,-0xbe)]??'')[_0x1bef52(-0xd0,-_0x58634a._0x2969e9,-0xfc,-0x52)]('');}function createOpenAiReasoningBlock(_0x8d91a4){const _0x5cc666={_0x1d756f:0x4ce,_0x13ae24:0x473},_0x504a65={_0x1715dc:0x16d,_0x488798:0x137},_0x1e95da=extractOpenAiReasoningText(_0x8d91a4);function _0x243816(_0x160ec6,_0x30b87b,_0x15de00,_0x3f3003){return _0x55b3f6(_0x160ec6-_0x504a65._0x1715dc,_0x30b87b-_0x504a65._0x488798,_0x15de00,_0x3f3003-0xc4);}function _0xde724e(_0x3b57a2,_0x58dde6,_0x2931f3,_0x50cef7){return _0x51d0c0(_0x3b57a2-0x1f,_0x58dde6-0x10a,_0x2931f3- -0x13,_0x58dde6);}return{'type':'openai_reasoning','summary':structuredClone(_0x8d91a4[_0xde724e(0x454,_0x5cc666._0x1d756f,0x51f,_0x5cc666._0x13ae24)]??[]),..._0x8d91a4['id']?{'id':_0x8d91a4['id']}:{},..._0x8d91a4['encrypted_content']?{'encryptedContent':_0x8d91a4[_0xde724e(0x6ee,0x655,0x656,0x58c)]}:{},..._0x1e95da['length']>0x0?{'text':_0x1e95da}:{}};}function _0x3196(){const _0x28ba06=['CMvHC29U','BxnNlq','DhjPBq','BNvTyMvY','C2XPy2u','CMvXDwvZDhm','Ahr0Chm6lY9HCgKUyw50AhjVCgLJlMnVBq','r0vu','z2v0uMvHzgvY','C2vZC2LVBKLK','y2XHDwrLlxnVBM5LDc00lJu','B21PDhrLza','z3b0ltu','CMvWBgfJzq','ywnJzxnZvg9Rzw4','oNjLyxnVBMLUzZOW','Dg9VBenHBgXZqNLjBMrLEa','Dg9VBenHBgXpCMrLCG','C3vTBwfYEv90zxH0','AM9PBG','ywDLBNq','C3rHDhvZvgv4Da','Ahr0Chm6lY9HCgKUy29TBwfUzgnVzguUywKVChjVDMLKzxi','y29TCgXLDgvwAwfszxnWB25ZzxntDxjMywnL','CMvZB2X2zxi','zgvLChnLzwSTDJqTChjV','DgvZDa','odeWotG2ngvTAfrfzG','l3yXl21LC3nHz2vZ','BwvZC2fNzuLUzgv4','C2HVDwXKuhjLzMvYuMvZCg9UC2vZqxbP','yxv0BW','yxnZAxn0yw50','B3bLBMfPuMvZCg9UC2vZuMvZCg9UC2vjza','B3bLBMfPlxjLC3bVBNnLCY13CW','y2HHDenVBxbSzxrL','y2HHDenVBxbSzxrPB25Zugf0Aa','Ahr0Chm6lY9HCgKUB3bLBMfPlMnVBs92mq','Ahr0Chm6','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNmTC3rYzwfT','Bw9KzwW','Bwf4vg9Rzw5Z','Dg9bCgLfCNjVCG','DMfSDwvZ','CMvZCc0','C3vYzMfJzq','B3v0Chv0sw5KzxG','mJG2mtu5mJn1v2LUuLK','CMvHC29UAw5Nx2rLDgfPBhm','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','Bwf4t3v0Chv0','C29Tzq','ChjVDMLKzxjFCMv0CNK','yNvKz2v0vg9Rzw5Z','CM9Szq','yw50AhjVCgLJx3rOAw5RAw5N','y2fJAgvdCMvHDgLVBKLUChv0vg9Rzw5Z','C3rHCNrZv2L0Aa','zgvSDge','zw50CMLLCW','Ahr0Cc1QC29U','DhLWzq','v2vIu29JA2v0ignSB3nLzcb3AxrOignVzguG','r2L0shvItw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5lcbHy2nLC3nuB2TLBIWGB3iGChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','CMvHC29UAw5NugfYDhm','t3bLBKfjigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','igrPzcbUB3qGChjVDMLKzsbHifDLyLnVy2TLDcbvuKWGB3iGCgf0Aa','yw50AhjVCgLJlw1LC3nHz2vZlxn0CMvHBq','DxnHz2u','yw50AhjVCgLJrgvSzwDHDgu','zMv0y2G','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzgvSDge','zxjYB3i','w0rptKvD','z2v0t3bLBKfPrgvSzwDHDgu','Dg9Rzw5fEgnOyw5NzufWAvzLCNnPB24','zNjVBuvUDhjPzxm','uhjVDMLKzxiGCMvXDwvZDcbMywLSzwqGD2L0AcbZDgf0DxmG','Aw50zxjSzwf2zwq','Bwf4x3rVA2vUCW','y29TCgXLDgLVBL90B2TLBNnFzgv0ywLSCW','zwrPDg9YugX1z2LUvMvYC2LVBG','CMvZB2X2zunYzwrLBNrPywW','C2vSzwn0u3vYzMfJzq','z2XTltqUnq','CMvZCg9UC2uUzMfPBgvK','zNjVBq','l2nVCgLSB3rFAw50zxjUywWVDJiVDg9Rzw4','Aw50zxjSzwf2zwqTDgHPBMTPBMCTmJaYns0Wns0Xna','y2fJAgvFy3jLyxrPB25FAw5WDxrFDg9Rzw5Z','C3vTBwfYEv9PBMrLEa','DxnLCI12AxnPyMXL','C29JA2v0','qw50AhjVCgLJtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','zM9Yy2vgDwXSuMvWBgf5','yxbWBhLnB2rLBerLzMf1BhrZ','BgfZDfjLC3bVBNnLswq','A2LUza','B3v0Chv0sw5KzxHuB0nHBgXjza','zgLZywjSzwq','B3bLBKfPrgvSzwDHDgu','uhjVDMLKzxiGCMvXDwvZDcbYzxrYEsbSB29Wigv4AxrLzcb1BMv4CgvJDgvKBhK','C3vYzMfJzxm','y29Kzq','CMvZCg9UC2vjza','CMv0CNLHyMXL','zgf0ytO','y2fJAgvFCMvHzf9PBNb1Df90B2TLBNm','C2vZC2LVBI10B2TLBG','z2L0AhvI','y2HVAwnLCW','B3v0Chv0x2LUzgv4','C2vUzfDPDgHszxrYAwvZ','y2f0y2G','y2HHDgnTCgWT','y2fUy2vS','y2fJAgvszwfKsw5WDxruB2TLBNm','z2XTltuUmq','Ahr0Chm6lY9HCgKUBwLUAw1HEc5PBY9HBNrOCM9WAwm','C3rYzwfTvMLHuMvZCg9UC2vZu3vYzMfJzq','C3rVCf9YzwfZB24','ywjVCNrLza','CMvZB2X2zq','DxnLC1jLC3bVBNnLC0fWAq','yw50AhjVCgLJlxzLCNnPB24','z2v0qw50AhjVCgLJrgvSzwDHDgu','Dg9VBf91C2vFzgvSDge','y29UDgvUDf9IBg9JA19ZDgfYDa','vw5ZDxbWB3j0zwqGr2L0shvIig1VzgvSihn1CMzHy2u6ia','CMvZCg9UC2uUB3v0Chv0x2L0zw0UywrKzwq','Dgv4Dej5sw5KzxG','yNvPBgrszxnWB25ZzxntB2nRzxrfDMvUDa','y2HHDgnTCgW','D3m6','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','AxnbCNjHEq','yMXVy2TZ','vw5RBM93BIbTB2rLBcbZDxjMywnLoIa','C3vWCg9YDhnnB2rLBezLDgnO','zMLUywXszxnWB25Zzq','mtaYodaZnKjXCNvoDG','twLUAu1HEc1nmW','y29TCgXLDgu','z2L0AhvIqxbPvxjS','BwfW','y2HHDfn0CMvHBq','wI5bsq','mtqYmdfIBxjss1K','t3bLBKfjiefqssbLCNjVCIa','ywjVCNq','ChjVDMLKzxjbzgfWDgvY','ChjLDMLVDxnszxnWB25ZzuLK','B3bLBMfPx3jLyxnVBMLUzW','DNnJB2rLlZeUmta0lJi','y29TCgXLDgvwAwfdAgf0q29TCgXLDgLVBNntDxjMywnL','CgvUzgLUzW','B3v0Chv0','C291CMnL','zgvLChnLzwSTDJqTzMXHC2G','C2HVDwXKuMv0CNLtDhjLyw1bDhrLBxb0rxjYB3i','t3bLBKfj','z2v0t3jdCMvHDgvszwfZB25PBMDjDgvT','Bwv0ywrHDge','l2nOyxqVy29TCgXLDgLVBNm','Ahr0Chm6lY9HCgKUEI5HAs9HCgKVy29KAw5Nl3bHyxmVDJq','Aw5WDxrFANnVBL9KzwX0yq','y2fWywjPBgL0AwvZ','Dg9VBhm','C3rYzwfTvMLHu3vYzMfJzq','l3jLC3bVBNnLCW','B2f1DgGTDg9Rzw4','Dg9VBc1JywXSlq','D3nZoG','zgvMyxvSDe1VzgvS','y3jLyxrLsgvHzgvYCW','ChjVDg9JB2W','Aw5PDgLHBev2zw50','C3bSAxq','y29UC3vTzvnZzuv2zw50','Ec1HCgKTA2v5','C3rHDhvZ','nJu0mtu2nxz4AgjqsW','yw50AhjVCgLJx3nPz25HDhvYzv9KzwX0yq','yw50AhjVCgLJx3jLzgfJDgvKx3rOAw5RAw5N','Dg9mB3DLCKnHC2u','BwfWqxbPrxjYB3i','CMvHC29UAw5Nx2nVBNrLBNq','CMvXDwvZDe11Dgf0B3jZ','C3rYzwfTv2vIu29JA2v0u3vYzMfJzq','l21VzgvSCW','BwvZC2fNzv9KzwX0yq','CMvZCg9UC2u','y29UDgvUDf9PBMrLEa','C29YDa','Bw9KzwXfBMrWB2LUDenHy2HL','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','Dg9VBf91C2vFAwq','BM93','ChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','BgvUz3rO','yxnZAxn0yw50lq','y29WAwXVDc1JAgf0lZaUmZeUmW','zgLZCgXHEq','D2vIu29JA2v0rMfJDg9YEq','DgHPBMTPBMC','y29TCgXLDgvK','ignHBM5VDcbWyxjZzsbxzwjtB2nRzxqGzxzLBNrZ','ChjVDg9JB2XwzxjZAw9U','zgvJB2rL','Aw1Hz2vFDxjS','y2XHDwrLlxnVBM5LDc00','CMvZCg9UC2uUB3v0Chv0x3rLEhqUzgvSDge','CMvZCg9UC2vtDhjLyw0','zwrPDg9YvMvYC2LVBG','nJiWnJi0owHiALjeDq','BwvZC2fNzq','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','DhjPBvn0yxj0','y2fSBeLKvg9pDxrWDxrjBMrLEa','t1bftG','r2L0shvIie1VzgvSCYaVienVCgLSB3q','CMvZCg9UC2vtB2nRzxq','BMfTzq','qw50AhjVCgLJigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','sw52ywXPzcbYzxf1zxn0oIa','ChjLCgfYzvjLC3bVBNnLC1nVy2TLDfjLCxvLC3q','z2v0u3vYzMfJzq','Bw9KzwXZqMfZzvvYBa','B2jQzwn0','C3rYAw5N','C3vWCg9YDgvKx2vUzhbVAw50CW','zwzMB3j0','ChjVBxb0x3rVA2vUCW','DMfSDwu','y29UBMvJDgLUzW','qMfZAa','ntaYmZC0tfHhyxrJ','C2HVDwXKuMv0CNLszxnWB25ZzxntB2nRzxrszxf1zxn0','Bwf4x2nVBNrLEhrFD2LUzg93x3rVA2vUCW','uhjVDMLKzxjtDhjLyw1fDMvUDevYCM9Y','yxbWBgLJyxrPB24VANnVBG','CMvHC29UAw5Nx3rVA2vUCW','y29TCgXLDgvwAwfszxnWB25ZzxnxzwjtB2nRzxrtDxjMywnL','zMLUza','yxjNDw1LBNrZ','CMvMDxnHBa','v2vIu29JA2v0ihjLCxvLC3qGzMfPBgvK','Aw5WDxruB2TLBNm','DxjS','DxnLCG','y29TCgXLDgvtDxjMywnL','DNnJB2rLlZeUmta2lJe','CMvZCg9UC2vuzxH0ugfYDhm','Dg9VBfvZzvn0yxj0rw1PDhrLza','Dg9tDhjPBMC','Dg9VBf9JywXSCW','Dgv4Df9KzwX0yq','C3rVCfjLyxnVBG','Aw5JBhvKzunVBNrLBNruExbL','zw5JCNLWDgvKx2nVBNrLBNq','zgf0yq','yMvHCMvY','qw50AhjVCgLJ','C2vUzeH0DhbtDxjMywnLuMvXDwvZDa','B3bLBMfPlxjLC3bVBNnLCW','zMLUAxnO','C3rYzwfTx2vYCM9Y','zNvUy3rPB24','y3jLzgvUDgLHBa','ywnXDwLYzvjLC3bVBNnLC1nVy2TLDeXVy2S','y2XHDwrLltmTns1ZB25UzxqTmJaYndeWmJi','y29UDgv4DfDPBMrVDW','yxn5BMnjDgvYyxrVCG','ChjVDMLKzxjZ','C3rYzwfTvMLHuMvZCg9UC2vZv2vIu29JA2v0u3vYzMfJzq','C3rYzwfTvMLHuMvZCg9UC2vZu29JA2v0qxr0zw1WDa','AgvHzgvYuMvZB2X2zxi','zxzLBNq6','yM9KEq','Ahr0Chm6lY9HCgKUz2L0AhvIlMnVBq','Aw5WDxrFC2nOzw1H','z3b0ltrV','CMv0CNKTywz0zxi','C3rYzwfTvMLHq2HHDenVBxbSzxrPB25Zu3vYzMfJzq','ChjLCgfYzunOyxrszxf1zxn0','uMvZCg9UC2vZifDLyLnVy2TLDcbYzxf1zxn0igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','zgvMyxvSDe1VzgvSCW','C3rYzwfTvMLHuM91DgvY','y29UC3vTzvDLyLnVy2TLDev2zw50','B3v0Chv0x3rLEhq','ywrKrxzLBNrmAxn0zw5LCG','CMvHzhLtDgf0zq','mJaYmY0WnI0Wmq','y3jLyxrLuMvXDwvZDa','CMvXDwvZDa','C2L6zq','Aw5WDxrFDg9Rzw5Z','ChjVEhK','C3rYzwfTvMLHugvYC2LZDgvUDfjLC3bVBNnLC1nVy2TLDa','t3bLBKfPtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','ywrK','y3jLyxrLtwLZC2LUz0nYzwrLBNrPywXfCNjVCG','ChjLDMLVDxnFCMvZCg9UC2vFBM90x2zVDw5K','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBKTLEq','C2LNBMfS','zgvMyxvSDe1HEfrVA2vUCW','C2vZC2LVBG','Dg9VBa','C2vUzfjHD1jLCxvLC3q','CMvHza','C3rYzwfTu3vYzMfJzq','yNvPBgrqyxj0AwfSt3v0Chv0','zgvSzxrL','CMvZCg9UC2vtB2nRzxrtDhjLyw0','yxbPs2v5','q29TBwfUzenVzgu','BgfIzwW','AxrLBv9Pza','zMLUzfjLC3bVBNnLC1nVy2TLDenOzwnRCg9PBNq','ue9tva','Dg9VBf9Yzxn1Bhq','o2jHC2u2ncW','C3rYzwfTshr0Cfn1CMzHy2u','DMLZAwjPBgL0Eq','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBLn0yxrL','AxneB25L','rgLYzwn0igfUC3DLCJOG','AxrLBq','CMvTB3zLrxzLBNrmAxn0zw5LCG','B3v0Chv0sw5KzxHuB1jLyxnVBMLUz0LK','C2HHCMvKuMvZCg9UC2vZu29JA2v0u2vZC2LVBNm','ANnVBG','uMf0zsbSAw1PDcbLEgnLzwrLzc4GugXLyxnLihrYEsbHz2fPBIbSyxrLCI4','CMvHC29UAw5N','zxzLBNq','y29UDgvUDc10ExbL','z2XTltqUnW','y29UDgv4Df9Szw5NDgG','yxv0AfnJAgvTzq','z2v0uMv0CNLezwXHEu1Z','CMvZCg9UC2uUy29TCgXLDgvK','v2vIu29JA2v0','yxv0Ag9YAxPHDgLVBG','Bw9Kzq','CM91DgvY','Bwf4x291Dhb1Df90B2TLBNm','zg9Uzq','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzg9Uzq','Dgv4Dc9LDMvUDc1ZDhjLyw0','Aw5WDxq','Aw5KzxG','CgfYC2vszxnWB25Zzq','B3bLBG','ywnJzxb0','y29UDgvUDf9KzwX0yq','Bwv0Ag9K','yMfZzvvYBa','sw52ywXPzcbxzwjtB2nRzxqGBwvZC2fNztOG','C3vTBwfYEuj5sw5KzxG','y29UDgvUDf9IBg9JAW','zMLSDgvY','Dgv4DfbHCNrZ','y29TCgXLDgvwAwfdB25MAwD1CMvKu3vYzMfJzq','B3bLBMfPl2DWDc00BW','Aw52ywXPzgf0zvjLC3bVBNnLC1nVy2TLDfnLC3nPB24','DhjHBNnWB3j0','C3LZDgvT','ChjVDMLKzxjtDgf0zq','y2XHDwrLlxnVBM5LDc00ltiWmJuWnte0','BwvKAwfFDhLWzq','CMvHC29UAw5Nx3rLEhq','CMvZCg9UC2vZugf0Aa','C3rYAw5NAwz5','CgfYC2u','zw5Kx3r1CM4','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzg9Uzq','y2XVC2u','Dgv4Da','D2vIC29JA2v0x2nVBM5Ly3rPB25FBgLTAxrFCMvHy2HLza','Dg9Wx3bYB3zPzgvY','twLUAu1HEa','C2HVDwXKuMv0CNLszxf1zxn0rxjYB3i','Aw5JBhvKzxm','yw50AhjVCgLJqxnZAxn0yw50q29UDgvUDa','zNvUy3rPB25Fy2fSBa','zgvZy3jPChrPB24','m0XqywzKsW','C2v0','vw5RBM93BIbWCM92AwrLCIbLCNjVCG','C2vUza','BwvZC2fNzuLK','C3bSAwnL','B3v0Chv0vg9Rzw5Z','uMvZCg9UC2vZifDLyLnVy2TLDcbJBg9ZzwqGyMvMB3jLihjLC3bVBNnLlMnVBxbSzxrLza','igrVzxmGBM90ihn1ChbVCNqGBM9Ulxn0CMvHBwLUzYbYzxnWB25Zzxm','BwvZC2fNzxm','C3vWCg9YDgvKrw5KCg9PBNrZ','y29UC3vTzuv2zw50','zw5HyMXLza','AxngAw5PDgu','DxrMltG','CMvZB2X2zujHC2vvCMW','DhjHBNnWB3j0x2vYCM9Y','igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','qw50AhjVCgLJihn0CMvHBsbMywLSzwq','Cgf0Aa','Aw5WDxrkC29U','C2vZC2LVBK1HBMfNzxi','Ahr0Chm6lY9HCgKUEI5HAs9HCgKVyw50AhjVCgLJ','zw5KCg9PBNrZ','Bwf4','y2fJAgvK','A2v5CW','otrPBwrpuMe','C3vTBwfYEq','Aw1Hz2u','CMvZCg9UC2uUy3jLyxrL','qMvHCMvYia','C2HVDwXKuMv0CNLszxnWB25Zzq','r2L0shvIq29WAwXVDenOyxqVmc4ZmY4X','BwvZC2fNzv9ZDgfYDa','D2fPDezVCLjLDhj5','yw50AhjVCgLJqMfZzvvYBa','CMvHC29UAw5NsxrLBxm','AgfZ','ChvZAa','CgfYDgLHBf9QC29U','zMXHDe1HCa','BgLTAxrZ','BhmGlwXH','z2XTltqUnG','B3v0Chv0x3rVA2vUCW','CMvZCg9UC2uUCMvHC29UAw5Nx3n1Bw1HCNLFDgv4Dc5KB25L','zw5JCNLWDgvKq29UDgvUDa','y2fWywjSzv9LBMrWB2LUDhm','Dg9VBenHBgXZ','C3rYzwfT','B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','Dg9VBf91C2u','Dg9Rzw4','z2v0tw9KzwXZ','y3jLyxrLu3rYzwfTugfYC2vY','yxbP','y29TCgXLDgvwAwftDxjMywnL','BwfYA01VzgvSqxnszxnWB25ZzxnpBMX5','y29UDgvUDa','Aw52ywXPzgf0zq','mJaYns0Xmc0Wmq','C2LNBMf0DxjLx2rLBhrH','AgvHzgvYCW','C2LNBMf0DxjL','zMv0y2HjBxbS','yw50AhjVCgLJlw1LC3nHz2vZ','y2fSBf9Pza','y29TCgXLDgvwAwfsB3v0zxi','z3b0ltuUmI1JB2rLEa','yxbPlwTLEq','Ahr0Cc1ZC2u','zMLUAxnOx3jLyxnVBG','u3vYzMfJzsa','Bw9KzwXZ','rgvLCfnLzwS','v2vIu29JA2v0ignSB3nLzcbIzwzVCMuGB3bLBMLUzW','ignHBM5VDcbWyxjZzsbtu0uGzxzLBNrZ','z2v0','CMvKywn0zwrFDgHPBMTPBMC'];_0x3196=function(){return _0x28ba06;};return _0x3196();}function hasVisibleOpenAiReasoning(_0x999958){const _0x19db6b={_0x437230:0x314,_0x594a78:0x3a9,_0x425865:0x3cb,_0x925024:0x180,_0x3a1000:0x3a,_0x56afcd:0x32,_0x3da609:0xf9,_0x3afa93:0x42d,_0x3db106:0x389},_0x206b6a={_0x56922a:0x1e,_0x7212a3:0x14d};function _0x402f06(_0x42c159,_0x6153c7,_0x516a8c,_0x3b0372){return _0x55b3f6(_0x42c159-_0x206b6a._0x56922a,_0x516a8c- -_0x206b6a._0x7212a3,_0x6153c7,_0x3b0372-0x47);}function _0x5a9eab(_0x241b66,_0x58901e,_0x4c1526,_0x26cd94){return _0x55b3f6(_0x241b66-0x160,_0x241b66-0x170,_0x26cd94,_0x26cd94-0x91);}return _0x999958[_0x5a9eab(_0x19db6b._0x437230,_0x19db6b._0x594a78,_0x19db6b._0x425865,0x371)][_0x402f06(0x166,0x20f,0x152,_0x19db6b._0x925024)]>0x0||typeof _0x999958[_0x402f06(0x97,-_0x19db6b._0x3a1000,_0x19db6b._0x56afcd,_0x19db6b._0x3da609)]===_0x5a9eab(_0x19db6b._0x3afa93,_0x19db6b._0x3db106,0x36e,0x42d);}function parseChatCompletionResponse(_0x450697){const _0x4f1185={_0x2fc911:0x49f,_0x15d936:0x492,_0x4cb049:0x2f6,_0x1a3d52:0x24d,_0x3b0659:0x282,_0x4739c7:0x31f,_0x2e49df:0x518,_0x21433c:0x434,_0x112eab:0x37d,_0x47550a:0x32c,_0xc01eac:0x3bf,_0x39408c:0x344,_0x5d5b0d:0x32e,_0xa29eb8:0x365,_0x39dc95:0x34e,_0x3ff1f7:0x4d1,_0x5bb639:0x46c,_0x471557:0x303,_0x1482d3:0x351,_0x4334f6:0x370,_0x1e6138:0x419,_0x3f9f80:0x3a2,_0x149734:0x2a5,_0x31c427:0x38e,_0x486227:0x1c7,_0x1c8f6d:0x2a4,_0xf1cd52:0x251,_0x496cf1:0x40f,_0x35a8ba:0x44e,_0x452df5:0x432,_0x1b371b:0x428,_0x3d7539:0x342,_0x360448:0x292,_0x515651:0x1ba},_0x36f402={_0x38c81d:0xdf},_0x31d0ab={_0x2eb319:0x196,_0x13c801:0x115};function _0x553485(_0x3b5208,_0x5606e6,_0x42f38b,_0x5039dd){return _0x55b3f6(_0x3b5208-_0x31d0ab._0x2eb319,_0x42f38b- -0x62,_0x5606e6,_0x5039dd-_0x31d0ab._0x13c801);}const _0x41f203=[],_0x4f421f=[];function _0x5e22f9(_0x108778,_0x1558b3,_0x34f95f,_0x4c6ca0){return _0x55b3f6(_0x108778-_0x36f402._0x38c81d,_0x34f95f-0x195,_0x108778,_0x4c6ca0-0x46);}let _0xfb5c49='end_turn';for(const _0x204312 of _0x450697[_0x5e22f9(_0x4f1185._0x2fc911,0x3df,0x3db,_0x4f1185._0x15d936)]??[]){const _0x1a8a9c=_0x204312[_0x553485(_0x4f1185._0x4cb049,0x1b3,_0x4f1185._0x1a3d52,_0x4f1185._0x3b0659)],_0x4dc039=normalizeAssistantContent(_0x1a8a9c?.[_0x5e22f9(0x3de,_0x4f1185._0x4739c7,0x358,0x325)]);_0x4dc039[_0x5e22f9(_0x4f1185._0x2e49df,0x3ea,_0x4f1185._0x21433c,_0x4f1185._0x112eab)]>0x0&&_0x41f203[_0x5e22f9(_0x4f1185._0x47550a,_0x4f1185._0xc01eac,_0x4f1185._0x39408c,0x2a6)](_0x4dc039),_0x1a8a9c?.[_0x5e22f9(0x3d6,0x3f9,0x46c,0x510)]&&_0x4f421f['push'](..._0x1a8a9c[_0x553485(0x218,_0x4f1185._0x5d5b0d,0x275,0x326)]),_0x204312[_0x5e22f9(0x3d4,0x360,_0x4f1185._0xa29eb8,_0x4f1185._0x39dc95)]===_0x5e22f9(_0x4f1185._0x3ff1f7,0x531,_0x4f1185._0x5bb639,0x3d5)&&(_0xfb5c49=_0x5e22f9(0x2a1,_0x4f1185._0x471557,_0x4f1185._0x1482d3,_0x4f1185._0x4334f6));}return _0x4f421f[_0x5e22f9(0x455,_0x4f1185._0x1e6138,0x434,0x492)]>0x0&&(_0xfb5c49=_0x5e22f9(_0x4f1185._0x3f9f80,_0x4f1185._0x149734,0x351,_0x4f1185._0x31c427)),{'id':_0x450697['id']??_0x553485(_0x4f1185._0x486227,_0x4f1185._0x1c8f6d,0x1e8,_0x4f1185._0xf1cd52)+Date[_0x5e22f9(_0x4f1185._0x496cf1,_0x4f1185._0x35a8ba,_0x4f1185._0x452df5,0x46e)](),'content':createContentBlocks(_0x41f203[_0x5e22f9(0x3f6,_0x4f1185._0x1b371b,0x380,_0x4f1185._0x3d7539)](''),_0x4f421f),'stopReason':_0xfb5c49,'usage':createUsage(_0x450697[_0x553485(_0x4f1185._0x360448,0x187,_0x4f1185._0x515651,0x289)])};}function parseResponsesResponse(_0x41d383,_0x5c6dce){const _0x4a99aa={_0x1f461b:0x99,_0x137713:0xb1,_0x44ae70:0x13a,_0x1f90be:0xff,_0x2ef64c:0x111,_0x5a3326:0x2ab,_0x32372a:0x33a,_0x40bcd4:0x2a4,_0x4a5960:0x1ec,_0x3b9cf3:0x168,_0x3ea95b:0x1b4,_0xc4b2d2:0x9,_0x578792:0x52,_0x1735d4:0x178,_0x45d6c2:0x137,_0x15fc80:0x1b9,_0xc2f36f:0x30e,_0x10edb9:0x132,_0x4d0a2d:0x70,_0x394576:0x45,_0x12e860:0x90,_0x32409b:0x26,_0x3a000f:0x13,_0xacf159:0x13b,_0x4016e2:0x26,_0x2c9e75:0x2d,_0x1ac475:0xcc,_0x50e080:0xec,_0x428f3f:0x55,_0x26f970:0xcb,_0x4d7cf8:0x16,_0x1b7e2c:0x20,_0x402708:0x162,_0x30aa89:0x15c,_0x59768d:0x9b,_0x1ed26b:0xea,_0x17e7a1:0x166,_0x28feb7:0x323,_0x15e9fb:0x27d,_0x298d9c:0x296,_0x8545f1:0x1ca,_0x2e620c:0x12f,_0x266d31:0x82,_0x4d106e:0x61,_0x418408:0x165,_0x1a0740:0x13c,_0x108277:0x156,_0x2bb4d5:0x84,_0x10dd56:0x133,_0x297c7b:0xac,_0x122e13:0x95,_0x271869:0x1bb,_0x51656a:0x20b,_0x368cf7:0xae,_0x1a129f:0x102,_0x1abfd2:0x1eb,_0x206838:0x251,_0x416d62:0x279},_0xd398c9={_0x9d82fd:0xf3,_0x47f069:0x24a,_0x34e21d:0x135},_0x322017={_0x413682:0x77,_0x5ecca8:0x389};function _0x4835b3(_0x2e053d,_0x36616c,_0x2c5fb9,_0x4ec0ce){return _0x51d0c0(_0x2e053d-0xfb,_0x36616c-_0x322017._0x413682,_0x2c5fb9- -_0x322017._0x5ecca8,_0x2e053d);}const _0x1e2375=[];function _0x7bfb2(_0x2e4d4b,_0x2ec6a7,_0x22c4d0,_0x3310fb){return _0x55b3f6(_0x2e4d4b-_0xd398c9._0x9d82fd,_0x2ec6a7- -_0xd398c9._0x47f069,_0x3310fb,_0x3310fb-_0xd398c9._0x34e21d);}for(const _0x4b652b of _0x41d383[_0x7bfb2(-0x91,0x2a,0xf8,-_0x4a99aa._0x1f461b)]??[]){if(isResponsesReasoningItem(_0x4b652b)){if(isUserVisibleReasoning(_0x5c6dce)){const _0x13ccdf=createOpenAiReasoningBlock(_0x4b652b);hasVisibleOpenAiReasoning(_0x13ccdf)&&_0x1e2375[_0x7bfb2(-0x129,-0x9b,-_0x4a99aa._0x137713,-_0x4a99aa._0x44ae70)](_0x13ccdf);}continue;}if(isResponsesMessageItem(_0x4b652b)){const _0x5afedb=normalizeResponsesMessageContent(_0x4b652b[_0x7bfb2(-0x51,-0x87,-_0x4a99aa._0x1f90be,-_0x4a99aa._0x2ef64c)]);_0x5afedb[_0x4835b3(_0x4a99aa._0x5a3326,_0x4a99aa._0x32372a,_0x4a99aa._0x40bcd4,_0x4a99aa._0x4a5960)]>0x0&&_0x1e2375[_0x4835b3(_0x4a99aa._0x3b9cf3,0xce,_0x4a99aa._0x3ea95b,0xcf)]({'type':_0x7bfb2(-_0x4a99aa._0xc4b2d2,-0xcb,-_0x4a99aa._0x578792,-_0x4a99aa._0x1735d4),'text':_0x5afedb});continue;}if(!isResponsesFunctionCallItem(_0x4b652b)||typeof _0x4b652b[_0x4835b3(0xf6,_0x4a99aa._0x45d6c2,0x1d0,_0x4a99aa._0x15fc80)]!==_0x4835b3(0x397,_0x4a99aa._0xc2f36f,0x2c2,0x1dd)||_0x4b652b['call_id'][_0x7bfb2(-_0x4a99aa._0x10edb9,-_0x4a99aa._0x4d0a2d,_0x4a99aa._0x394576,-0xc7)]()[_0x7bfb2(-_0x4a99aa._0x12e860,0x55,_0x4a99aa._0x32409b,_0x4a99aa._0x3a000f)]===0x0||typeof _0x4b652b[_0x4835b3(0x24d,0x354,0x2bb,0x2de)]!==_0x7bfb2(_0x4a99aa._0xacf159,0x73,0x85,-_0x4a99aa._0x4016e2)||_0x4b652b[_0x7bfb2(0x10e,0x6c,-_0x4a99aa._0x2c9e75,_0x4a99aa._0x1ac475)]['trim']()[_0x7bfb2(_0x4a99aa._0x50e080,_0x4a99aa._0x428f3f,_0x4a99aa._0x26f970,_0x4a99aa._0x4d7cf8)]===0x0||typeof _0x4b652b[_0x7bfb2(_0x4a99aa._0x1b7e2c,0x82,0xa3,_0x4a99aa._0x402708)]!=='string')continue;_0x1e2375[_0x7bfb2(-_0x4a99aa._0x30aa89,-_0x4a99aa._0x59768d,-0x13f,-_0x4a99aa._0x1ed26b)]({'type':'tool_use','id':_0x4b652b[_0x7bfb2(-0xec,-0x7f,-_0x4a99aa._0x17e7a1,-0xf3)],'name':_0x4b652b['name'],'input':parseToolInput2(_0x4b652b[_0x4835b3(_0x4a99aa._0x28feb7,0x34f,0x2d1,_0x4a99aa._0x15e9fb)])});}return!_0x1e2375[_0x4835b3(0x173,_0x4a99aa._0x298d9c,0x210,_0x4a99aa._0x8545f1)](_0x5aa921=>_0x5aa921[_0x4835b3(0x277,0x2c8,0x21a,0x145)]===_0x4835b3(0x223,0x150,0x184,0x192))&&_0x41d383[_0x7bfb2(-_0x4a99aa._0x2e620c,-0x123,-0x9f,-_0x4a99aa._0x266d31)]&&_0x1e2375[_0x7bfb2(-0x84,-_0x4a99aa._0x59768d,-_0x4a99aa._0x4d106e,-_0x4a99aa._0x418408)]({'type':_0x7bfb2(-0x86,-_0x4a99aa._0x26f970,-0x46,-_0x4a99aa._0x1a0740),'text':_0x41d383[_0x7bfb2(-0x1fe,-0x123,-0x1d1,-_0x4a99aa._0x108277)]}),{'id':_0x41d383['id'],'content':_0x1e2375,'stopReason':_0x1e2375[_0x7bfb2(-0x101,-0x3f,-0xe7,0xa6)](_0x2135d1=>_0x2135d1['type']==='tool_use')?'tool_use':'end_turn','usage':{'inputTokens':_0x41d383['usage']?.[_0x4835b3(0x1a9,_0x4a99aa._0x2bb4d5,_0x4a99aa._0x10dd56,_0x4a99aa._0x297c7b)]??0x0,'outputTokens':_0x41d383['usage']?.[_0x7bfb2(-0xc8,-_0x4a99aa._0x122e13,0x52,-0x6e)]??0x0,..._0x41d383['usage']?.['output_tokens_details']?.['reasoning_tokens']!==void 0x0?{'reasoningTokens':_0x41d383[_0x4835b3(0x1e8,_0x4a99aa._0x271869,0x221,_0x4a99aa._0x51656a)]['output_tokens_details'][_0x4835b3(0x29a,0x307,0x2ce,0x2c7)]}:{}},..._0x41d383[_0x7bfb2(0xa6,0x2a,-_0x4a99aa._0x368cf7,_0x4a99aa._0x1a129f)]?{'providerState':{'openaiResponsesOutput':structuredClone(_0x41d383[_0x4835b3(_0x4a99aa._0x1abfd2,_0x4a99aa._0x206838,_0x4a99aa._0x416d62,0x26a)]),'openaiResponsesResponseId':_0x41d383['id']}}:{}};}function extractErrorMessage(_0x26f401){const _0x3f79b7={_0x255476:0x5ad,_0x1a6632:0x5db,_0xe60674:0x3e1,_0x5648bc:0x496,_0x252268:0x3c1,_0x541566:0x339,_0x2c8da3:0x486,_0x35d07f:0x3d8,_0x21cd82:0x3da,_0x1bd443:0x436,_0x3dfe74:0x515,_0x445c00:0x32d,_0x8a1f19:0x2a5,_0x114ade:0x2f3,_0x2c288d:0x3e8,_0x996424:0x486,_0x4707a1:0x277,_0x109088:0x2ee,_0x12dac3:0x440,_0x4c107b:0x386,_0x525494:0x3e2,_0x5311ca:0x30f,_0x3d894f:0x4a7,_0x311fee:0x57e,_0x33c8ee:0x396,_0x4d091b:0x31f,_0x445cc0:0x2c0,_0x4f9ad9:0x31a,_0x389998:0x349,_0x196385:0x252,_0x68715b:0x523,_0x5d72ea:0x41d,_0x285f37:0x4eb,_0x220155:0x505,_0x190e6e:0x513,_0x5b6b5e:0x5d3,_0x50df2a:0x4b0,_0x322dff:0x188},_0x46e3e6={_0x1bcb9b:0x128},_0x458c52={_0x139b22:0x88,_0x30f76f:0x16b};if(_0x26f401[_0x1c1f50(0x505,0x56f,_0x3f79b7._0x255476,_0x3f79b7._0x1a6632)]===0x0)return'';try{const _0x336150=JSON[_0x1c1f50(_0x3f79b7._0xe60674,_0x3f79b7._0x5648bc,_0x3f79b7._0x252268,_0x3f79b7._0x541566)](_0x26f401);if(typeof _0x336150[_0x1c1f50(_0x3f79b7._0x2c8da3,_0x3f79b7._0x35d07f,_0x3f79b7._0x21cd82,_0x3f79b7._0x1bd443)]?.[_0x1c1f50(_0x3f79b7._0x3dfe74,0x4d1,0x5c9,0x4e8)]===_0x37241d(_0x3f79b7._0x445c00,_0x3f79b7._0x8a1f19,_0x3f79b7._0x114ade,_0x3f79b7._0x2c288d)&&_0x336150[_0x1c1f50(_0x3f79b7._0x996424,0x3d8,0x4e7,0x4ac)][_0x37241d(0x31f,_0x3f79b7._0x4707a1,_0x3f79b7._0x109088,0x38c)][_0x1c1f50(_0x3f79b7._0x12dac3,_0x3f79b7._0x4c107b,0x49a,_0x3f79b7._0x525494)]()[_0x37241d(_0x3f79b7._0x5311ca,0x2f9,0x345,0x2ed)]>0x0)return _0x336150['error'][_0x1c1f50(_0x3f79b7._0x3dfe74,_0x3f79b7._0x3d894f,0x53a,_0x3f79b7._0x311fee)][_0x1c1f50(0x440,_0x3f79b7._0x33c8ee,0x3ec,0x3c0)]();if(typeof _0x336150[_0x37241d(_0x3f79b7._0x4d091b,0x27d,_0x3f79b7._0x445cc0,_0x3f79b7._0x4f9ad9)]===_0x37241d(0x32d,0x400,_0x3f79b7._0x389998,_0x3f79b7._0x196385)&&_0x336150[_0x37241d(_0x3f79b7._0x4d091b,0x327,0x2ee,0x2e9)][_0x1c1f50(0x440,_0x3f79b7._0x68715b,_0x3f79b7._0x5d72ea,_0x3f79b7._0x285f37)]()[_0x1c1f50(_0x3f79b7._0x220155,_0x3f79b7._0x190e6e,0x5b6,_0x3f79b7._0x5b6b5e)]>0x0)return _0x336150[_0x1c1f50(0x515,0x48e,0x5d8,_0x3f79b7._0x50df2a)][_0x37241d(0x24a,0x1bd,0x1e0,_0x3f79b7._0x322dff)]();}catch{return _0x26f401;}function _0x37241d(_0x28bf7a,_0xae56f0,_0x5b4ba8,_0xb0042c){return _0x51d0c0(_0x28bf7a-_0x458c52._0x139b22,_0xae56f0-_0x458c52._0x30f76f,_0x28bf7a- -0x31e,_0x5b4ba8);}function _0x1c1f50(_0x42c3fc,_0x979719,_0x505303,_0x141a38){return _0x51d0c0(_0x42c3fc-0x2f,_0x979719-0x89,_0x42c3fc- -_0x46e3e6._0x1bcb9b,_0x505303);}return _0x26f401;}async function createOpenAiApiError(_0x291145){const _0x4c9b15={_0x3f2d67:0x492,_0x3fb912:0x552,_0x185500:0x536,_0x3408fd:0x54b,_0x399ab9:0x6a4,_0x4d2355:0x657,_0x4d5dc4:0x5fd},_0x2eb6ae={_0x38a8d4:0x160},_0x193531=(await _0x291145[_0x3c6550(0x42e,_0x4c9b15._0x3f2d67,0x491,_0x4c9b15._0x3fb912)]())[_0xfb5922(0x5d7,_0x4c9b15._0x185500,_0x4c9b15._0x3408fd,0x631)](),_0x1fab98=extractErrorMessage(_0x193531)||_0x291145['statusText']||_0xfb5922(0x5af,0x682,0x5dd,_0x4c9b15._0x399ab9)+_0x291145['status'];function _0x3c6550(_0x2b9098,_0x3971d3,_0x51b8d3,_0x2fd6da){return _0x55b3f6(_0x2b9098-_0x2eb6ae._0x38a8d4,_0x3971d3-0x313,_0x2fd6da,_0x2fd6da-0xeb);}function _0xfb5922(_0x44631f,_0x1ad2f8,_0x34f783,_0x438838){return _0x55b3f6(_0x44631f-0xbb,_0x34f783-0x371,_0x44631f,_0x438838-0x42);}return new OpenAiApiError(_0x291145[_0xfb5922(0x5c8,_0x4c9b15._0x4d2355,_0x4c9b15._0x4d5dc4,0x5e3)],_0x193531,_0x1fab98);}function readSseData(_0x31278b){const _0x3fba95={_0x360a89:0xb8,_0x160fd1:0x16,_0x2beb42:0x183,_0x54b8fa:0xc3,_0x3dfac3:0x101,_0xb99b6:0x131,_0xcbc2fb:0x87,_0xf0e22b:0xb3,_0x4237b3:0x10d,_0x20a005:0x6d,_0x441d3e:0xcc},_0x4bea5f={_0x3b0638:0x143,_0x305334:0x1e1,_0x8f606c:0x70},_0x22db35={_0x9a32e9:0x12e};function _0x29d585(_0x532071,_0x53ccb7,_0x4a9903,_0x1368df){return _0x55b3f6(_0x532071-0x6f,_0x1368df- -0x29f,_0x532071,_0x1368df-_0x22db35._0x9a32e9);}function _0x1dd14c(_0x5b9cee,_0x43b249,_0x25343a,_0x37bc6d){return _0x55b3f6(_0x5b9cee-_0x4bea5f._0x3b0638,_0x5b9cee- -_0x4bea5f._0x305334,_0x43b249,_0x37bc6d-_0x4bea5f._0x8f606c);}return _0x31278b[_0x29d585(-0x6d,-0xfd,_0x3fba95._0x360a89,-_0x3fba95._0x160fd1)]('\x0a')[_0x29d585(-_0x3fba95._0x2beb42,-_0x3fba95._0x54b8fa,-_0x3fba95._0x3dfac3,-_0x3fba95._0xb99b6)](_0x54d372=>_0x54d372[_0x29d585(-0x73,-0x8a,-0x107,-0x8e)](_0x29d585(-0x10a,0x7b,-0x1e,-0x5d)))[_0x1dd14c(_0x3fba95._0xcbc2fb,-0x28,_0x3fba95._0xf0e22b,_0x3fba95._0x4237b3)](_0x1cfa4d=>_0x1cfa4d[_0x1dd14c(-0x5,0x6c,-0xdf,-0x8)](0x5)[_0x29d585(-0x89,0x85,0xd7,0x12)]())[_0x1dd14c(0xa,-0x3,0x9e,-_0x3fba95._0x20a005)]('\x0a')[_0x29d585(-0x39,0x2,-_0x3fba95._0x441d3e,-0xc5)]();}function readString(_0xc401e){const _0x14bca7={_0x4d8b04:0xf9,_0x33c53a:0x121,_0x162d01:0x4b,_0xa4d878:0xe6},_0x510b42={_0x54e9c4:0xb1};function _0x1d7cb2(_0x52065f,_0x4de24c,_0x5b8950,_0x1f0f5e){return _0x55b3f6(_0x52065f-0xa1,_0x5b8950- -0x385,_0x52065f,_0x1f0f5e-0x135);}function _0x20c3da(_0xcd0477,_0x1d2e75,_0x3807ef,_0x31c32f){return _0x51d0c0(_0xcd0477-0x73,_0x1d2e75-_0x510b42._0x54e9c4,_0xcd0477- -0x552,_0x3807ef);}return typeof _0xc401e===_0x20c3da(_0x14bca7._0x4d8b04,0x195,_0x14bca7._0x33c53a,_0x14bca7._0x162d01)&&_0xc401e[_0x1d7cb2(-0x117,-0x38,-_0x14bca7._0xa4d878,-0x15f)]>0x0?_0xc401e:void 0x0;}function extractReasoningDetails(_0x53b155){const _0x348a9b={_0x4c6466:0xec,_0x1a88e0:0x5a,_0x5be703:0xb5,_0x1b2c94:0x120,_0x3bb8cd:0x118,_0x21ee33:0xc6},_0x3ac8ab={_0x4aaf61:0x6e,_0x31845e:0x3a,_0x301d97:0x4b3},_0x210703={_0xa80476:0x36d,_0x3064e9:0x2bd,_0x3cb182:0x385,_0x2873e4:0xda,_0x941c13:0x10,_0x44a3f6:0x80,_0x14efdf:0xa6,_0x58fd8c:0xf7,_0x16b076:0xdb,_0x2630be:0xc3,_0x290651:0x17,_0xd65035:0x9c,_0x212b02:0x34c,_0x34a9f6:0x1fd,_0x1f5751:0x3a},_0x2202e7={_0x5dbdb7:0xda,_0x41a748:0x8b},_0x28b9d3={_0x5df894:0x3f4};function _0x5d9d4c(_0x18319e,_0x4cff36,_0x2d29dd,_0x473cb3){return _0x51d0c0(_0x18319e-0xf9,_0x4cff36-0x99,_0x473cb3- -_0x28b9d3._0x5df894,_0x18319e);}if(!Array['isArray'](_0x53b155))return void 0x0;const _0x4eed50=_0x53b155[_0x3696a8(_0x348a9b._0x4c6466,-_0x348a9b._0x1a88e0,_0x348a9b._0x5be703,0x8c)](_0x5cdd37=>{const _0x1dab97={_0xae9b54:0x126};if(!_0x5cdd37||typeof _0x5cdd37!==_0x37134e(_0x210703._0xa80476,_0x210703._0x3064e9,0x365,_0x210703._0x3cb182))return[];const _0x5d35f0=_0x5cdd37;function _0x5e8cd4(_0x1d5f3b,_0x1bbfd1,_0x27428c,_0x47cab6){return _0x3696a8(_0x1d5f3b-_0x2202e7._0x5dbdb7,_0x47cab6,_0x27428c-_0x2202e7._0x41a748,_0x1bbfd1- -0x4a);}if(typeof _0x5d35f0[_0x5e8cd4(_0x210703._0x2873e4,_0x210703._0x941c13,-_0x210703._0x44a3f6,_0x210703._0x14efdf)]===_0x5e8cd4(0x10a,0x14e,0x1ab,0x1ee))return[_0x5d35f0[_0x5e8cd4(_0x210703._0x58fd8c,0x10,_0x210703._0x16b076,_0x210703._0x2630be)]];if(typeof _0x5d35f0[_0x5e8cd4(_0x210703._0x290651,0x35,0xe1,_0x210703._0xd65035)]===_0x37134e(_0x210703._0x212b02,0x2be,_0x210703._0x34a9f6,0x386))return[_0x5d35f0[_0x5e8cd4(-0x9f,0x35,_0x210703._0x1f5751,0x49)]];function _0x37134e(_0x5ee3ee,_0x106fc0,_0xf5377a,_0x4a0f2b){return _0x3696a8(_0x5ee3ee-0x45,_0x4a0f2b,_0xf5377a-0xf3,_0x106fc0-_0x1dab97._0xae9b54);}return[];});function _0x3696a8(_0x5c5bf4,_0x23cb22,_0x3b0a60,_0xb9443a){return _0x51d0c0(_0x5c5bf4-_0x3ac8ab._0x4aaf61,_0x23cb22-_0x3ac8ab._0x31845e,_0xb9443a- -_0x3ac8ab._0x301d97,_0x23cb22);}return _0x4eed50['length']>0x0?_0x4eed50[_0x3696a8(_0x348a9b._0x1b2c94,_0x348a9b._0x3bb8cd,0x124,_0x348a9b._0x21ee33)](''):void 0x0;}function extractChatCompletionReasoningDelta(_0x50c85d){const _0x45e0dc={_0x1f916a:0x200,_0x2bd4bf:0x347,_0x4c92a2:0x278,_0x330f89:0x18c,_0x1d2e8e:0x10b,_0x44727a:0x167},_0x4215d7={_0x4fd9e6:0x199,_0x1c810d:0x86,_0x34eda5:0x3fb},_0x2123d4={_0x291cb5:0x19a};function _0x3bd56a(_0x2512db,_0x42da7a,_0x1db5fb,_0x582f47){return _0x51d0c0(_0x2512db-0x166,_0x42da7a-0x11,_0x1db5fb- -_0x2123d4._0x291cb5,_0x582f47);}function _0x152416(_0x3780fe,_0x214428,_0x4b9a08,_0xc24b09){return _0x51d0c0(_0x3780fe-_0x4215d7._0x4fd9e6,_0x214428-_0x4215d7._0x1c810d,_0x4b9a08- -_0x4215d7._0x34eda5,_0x3780fe);}return extractReasoningDetails(_0x50c85d?.[_0x152416(0x20d,_0x45e0dc._0x1f916a,0x19b,0x25a)])??readString(_0x50c85d?.[_0x3bd56a(0x318,0x373,_0x45e0dc._0x2bd4bf,0x345)])??readString(_0x50c85d?.[_0x152416(_0x45e0dc._0x4c92a2,_0x45e0dc._0x330f89,0x225,0x23b)])??readString(_0x50c85d?.[_0x152416(0x1ed,0x8b,_0x45e0dc._0x1d2e8e,_0x45e0dc._0x44727a)])??'';}var OpenAiChatCompletionsStreamParser=class{[_0x51d0c0(0x54f,0x52c,0x5a6,0x622)]=[];[_0x51d0c0(0x574,0x435,0x4ba,0x430)];['textParts']=[];[_0x55b3f6(0x26c,0x1e8,0x259,0x1e8)]=new Map();['toolCallOrder']=[];['toolUseStartEmitted']=new Set();[_0x55b3f6(0x247,0x240,0x315,0x22b)]='';[_0x51d0c0(0x622,0x6bd,0x667,0x732)]='end_turn';['usage'];constructor(_0x40d579){const _0x421b55={_0x9e4529:0x504,_0x2e9ce4:0x46a},_0x4b441b={_0x42b426:0x3d8,_0xa9e0c8:0x8a};function _0x35cc4b(_0x572605,_0x30d3ea,_0x28e294,_0x267717){return _0x55b3f6(_0x572605-0x198,_0x28e294-_0x4b441b._0x42b426,_0x267717,_0x267717-_0x4b441b._0xa9e0c8);}this[_0x35cc4b(0x520,0x490,_0x421b55._0x9e4529,_0x421b55._0x2e9ce4)]=_0x40d579;}[_0x51d0c0(0x6dd,0x610,0x618,0x62f)](_0x2594eb){const _0x26338c={_0x18237c:0x17e,_0x5ae44a:0x14c,_0x3b5b7c:0x1b1,_0x2c55b3:0xa0,_0x3a5236:0x28,_0x50ff06:0x84,_0x186793:0x1d0,_0x1f227d:0x6d,_0x453d9a:0x2e,_0x43656c:0xa6,_0x4a4bf4:0x112,_0x4cd6d0:0xc9,_0x447ca6:0x120,_0x2389bf:0x52,_0x5c34b2:0x6e,_0x3873a8:0xd5,_0x367acb:0x68,_0x548c0d:0x3f,_0x199391:0x124},_0x4940c2={_0x1954f5:0x184},_0x23bbe4={_0x2e635d:0x1d6,_0x108787:0x153},_0x4bd376=readSseData(_0x2594eb);if(_0x4bd376[_0x45bda6(_0x26338c._0x18237c,_0x26338c._0x5ae44a,0x86,_0x26338c._0x3b5b7c)]===0x0||_0x4bd376==='[DONE]')return[];const _0x591d4b=JSON[_0x45bda6(-_0x26338c._0x2c55b3,_0x26338c._0x3a5236,_0x26338c._0x50ff06,0x8b)](_0x4bd376);this[_0x45bda6(_0x26338c._0x186793,0xed,_0x26338c._0x1f227d,0x3c)]=_0x591d4b['id']??this[_0x5be5d7(-_0x26338c._0x453d9a,-0x8c,0x5b,-_0x26338c._0x43656c)];function _0x45bda6(_0x225f63,_0xf31285,_0x18257b,_0x5c1e67){return _0x55b3f6(_0x225f63-_0x23bbe4._0x2e635d,_0xf31285- -_0x23bbe4._0x108787,_0x5c1e67,_0x5c1e67-0x11d);}function _0x5be5d7(_0x33cd4d,_0x2ea6e0,_0x4b99cc,_0x3e6068){return _0x51d0c0(_0x33cd4d-0xc3,_0x2ea6e0-_0x4940c2._0x1954f5,_0x33cd4d- -0x5fc,_0x4b99cc);}return this[_0x5be5d7(-0x52,-_0x26338c._0x4a4bf4,-0x6f,0x79)]=_0x591d4b[_0x45bda6(0x12e,_0x26338c._0x4cd6d0,_0x26338c._0x447ca6,0x11c)]??this[_0x5be5d7(-_0x26338c._0x2389bf,_0x26338c._0x5c34b2,-_0x26338c._0x3873a8,-_0x26338c._0x367acb)],this[_0x45bda6(_0x26338c._0x548c0d,0x40,_0x26338c._0x199391,-0x1d)](_0x591d4b);}[_0x55b3f6(0x39c,0x2e1,0x37a,0x2a7)](){const _0x32771a={_0x4d07a2:0x365,_0x3b2d1e:0x27f,_0x529875:0x37f,_0x9db7a2:0x16d,_0x5bff49:0x1db,_0x7c0e83:0x22d,_0x5664d9:0x23e,_0x5d3184:0x469,_0x1bb3b9:0x426,_0x23b087:0x4cd,_0x3bf3bb:0x439,_0x395e3c:0x4dd,_0x4ed731:0x533,_0x2878c5:0x434,_0x418d2d:0x2f4,_0x1b064e:0x455,_0x5ab402:0x39e,_0x47caee:0x2f2,_0x46fa5d:0x4a0,_0x2a9375:0x45d,_0x5ca35f:0x33d,_0x1867cb:0x2ea,_0x3f8aa9:0x3b2,_0x378919:0x3d0,_0x570efa:0x3da},_0x17736d={_0x5ab97b:0x72,_0x2a8393:0x11c},_0x2a218c={_0x306c76:0xa9,_0x5113b7:0x16};this[_0x5267a2(_0x32771a._0x4d07a2,_0x32771a._0x3b2d1e,0x2ea,0x2cc)]['length']>0x0&&(this['stopReason']=_0x53061e(0x510,_0x32771a._0x529875,0x42e,0x451));function _0x5267a2(_0x55107b,_0x481a0e,_0x1ab58f,_0x5d7933){return _0x55b3f6(_0x55107b-_0x2a218c._0x306c76,_0x1ab58f-0x101,_0x55107b,_0x5d7933-_0x2a218c._0x5113b7);}function _0x53061e(_0x2aba0a,_0x92ff0d,_0x46d740,_0x301546){return _0x51d0c0(_0x2aba0a-_0x17736d._0x5ab97b,_0x92ff0d-0x1c8,_0x46d740- -_0x17736d._0x2a8393,_0x92ff0d);}const _0x48ad24=isUserVisibleReasoning(this[_0x5267a2(_0x32771a._0x9db7a2,_0x32771a._0x5bff49,_0x32771a._0x7c0e83,_0x32771a._0x5664d9)])?this[_0x53061e(_0x32771a._0x5d3184,0x565,0x48a,0x456)]['join'](''):void 0x0;return{'id':this[_0x53061e(_0x32771a._0x1bb3b9,_0x32771a._0x23b087,0x4b2,_0x32771a._0x3bf3bb)]||_0x53061e(_0x32771a._0x395e3c,_0x32771a._0x4ed731,0x4bc,_0x32771a._0x2878c5)+Date[_0x5267a2(_0x32771a._0x418d2d,_0x32771a._0x1b064e,_0x32771a._0x5ab402,_0x32771a._0x47caee)](),'content':createContentBlocks(this['textParts'][_0x53061e(0x3b9,_0x32771a._0x46fa5d,_0x32771a._0x2a9375,0x410)](''),this[_0x5267a2(0x271,_0x32771a._0x5ca35f,_0x32771a._0x1867cb,_0x32771a._0x3f8aa9)],_0x48ad24),'stopReason':this[_0x5267a2(0x305,_0x32771a._0x378919,_0x32771a._0x570efa,0x3a0)],'usage':createUsage(this['usage'])};}[_0x55b3f6(0x132,0x193,0x100,0xd1)](_0x2b179b){const _0x1fea42={_0x5be6f2:0x249,_0x1a7e32:0x2f1,_0x2401d1:0x2cd,_0x2c3b0e:0xca,_0x26b18e:0x156,_0x544654:0x14c,_0x41ea25:0x12b,_0x27b9f1:0x204,_0x30098e:0x229,_0x432781:0x27f,_0x33f667:0x1b3,_0x1c7e64:0x143,_0x16dee8:0x337,_0x28940a:0x2c7,_0x387553:0x31,_0xb044eb:0xb0,_0x921659:0x108,_0x35c39a:0x4c,_0x124804:0x1a0,_0x460628:0x265,_0x517869:0x243,_0xb79b52:0x1a1,_0x3071e2:0x344,_0x393abd:0x111,_0xef136a:0x1f5,_0x38a28b:0x1b5,_0x8e048b:0xf2,_0x184766:0x2ce,_0x5d6eff:0x253,_0x1945f1:0x1fc,_0x3eaf6d:0x32,_0x96ce56:0x118,_0x1cbf75:0x18e,_0x5a5146:0xae,_0x35ce48:0xe1,_0x38346d:0x122,_0x120665:0x399,_0x8093da:0x411,_0x3e31e7:0x323,_0x6be9d6:0x36a,_0x4819ce:0x9e,_0x44b5a4:0x10c,_0x911b46:0x216,_0x36ce78:0x2d4,_0x270532:0x33d,_0x1ff9e6:0x231,_0x97f523:0x210,_0x33f996:0x22e,_0x3ff455:0x335,_0x275485:0x200,_0x345afc:0x270,_0x30cf7c:0x81,_0x36b0ee:0xeb,_0x55732a:0x15b,_0x5694bb:0xbf,_0x1b47b7:0xee,_0x32de49:0x195,_0x74a39d:0x3b9,_0x142c05:0x36a,_0x31ff2c:0x186,_0x17440b:0xae,_0x57ae31:0xc4,_0x50a990:0x29,_0x3f9d2b:0x22b,_0x20b221:0x389,_0x1ff20a:0x351,_0x56e264:0x5,_0x1ad880:0x38,_0x623e86:0xae,_0x1cb195:0x10d,_0xd6b157:0x386,_0x16aadb:0x2dd,_0x9b8eb5:0x36a,_0x57c7a6:0x39a,_0xccd99:0x362,_0x377027:0x35c,_0x469d9c:0x1f5,_0x1dee8e:0x232,_0x4405ba:0x14a,_0x2547d4:0x3d,_0xbef90e:0x40b,_0x3cac0c:0x3b3,_0xb9d5e0:0x3ad,_0x4bd75a:0x65,_0x39cfc7:0x36d,_0x30668f:0x3ca,_0x525b3f:0x291,_0x127e21:0x353,_0x289f23:0x2ed,_0x3c07b7:0x151,_0x149068:0x88,_0x2d1406:0x10e,_0x2a2224:0xc1,_0xdc136c:0x206,_0x40b163:0x1c4,_0x219735:0x1d9,_0x47a90f:0x257,_0x24a311:0xb2,_0x25bbad:0x1a4,_0x20b70f:0x20f,_0x481698:0x29b},_0x4580c9={_0x5b6a03:0xa7,_0x4928fd:0x364,_0x412132:0x1c2},_0x1c1ebc={_0x563fde:0x6b,_0x5b63f0:0x87,_0x5c7cdf:0x123},_0x318901=[];function _0x7a0850(_0xd1231c,_0x1e49c3,_0x5d44a9,_0x388e40){return _0x55b3f6(_0xd1231c-_0x1c1ebc._0x563fde,_0x388e40-_0x1c1ebc._0x5b63f0,_0x5d44a9,_0x388e40-_0x1c1ebc._0x5c7cdf);}for(const _0x427f4f of _0x2b179b[_0x7a0850(0x343,_0x1fea42._0x5be6f2,_0x1fea42._0x1a7e32,_0x1fea42._0x2401d1)]??[]){const _0x4be6c=_0x427f4f['delta'],_0x475f3e=extractChatCompletionReasoningDelta(_0x4be6c);_0x475f3e[_0x52a601(0x1b,-_0x1fea42._0x2c3b0e,-0xc5,-0x8a)]>0x0&&(this[_0x52a601(-0x17f,-_0x1fea42._0x26b18e,-_0x1fea42._0x544654,-_0x1fea42._0x41ea25)][_0x52a601(-0x1de,-_0x1fea42._0x27b9f1,-0x1b5,-0x1c1)](_0x475f3e),isUserVisibleReasoning(this[_0x7a0850(_0x1fea42._0x30098e,0x200,_0x1fea42._0x432781,_0x1fea42._0x33f667)])&&_0x318901['push']({'type':_0x52a601(-0x1b0,-_0x1fea42._0x1c7e64,-0x1a9,-0x289),'contentIndex':0x0,'delta':_0x475f3e,'itemId':(this[_0x7a0850(_0x1fea42._0x16dee8,0x2be,0x2e3,_0x1fea42._0x28940a)]||_0x52a601(-_0x1fea42._0x387553,-_0x1fea42._0xb044eb,-_0x1fea42._0x921659,-_0x1fea42._0x35c39a))+_0x52a601(-0x120,-_0x1fea42._0x124804,-0x17d,-_0x1fea42._0x460628),'outputIndex':0x0}));const _0x186ffe=typeof _0x4be6c?.[_0x52a601(-_0x1fea42._0x517869,-0x169,-_0x1fea42._0xb79b52,-0x14f)]===_0x7a0850(0x395,0x31b,0x3cb,_0x1fea42._0x3071e2)?_0x4be6c['content']:typeof _0x4be6c?.['refusal']==='string'?_0x4be6c['refusal']:'';_0x186ffe['length']>0x0&&(this[_0x52a601(-_0x1fea42._0x393abd,-0x2ae,-_0x1fea42._0xef136a,-0x2ac)][_0x52a601(-0x10c,-0x1fe,-_0x1fea42._0x38a28b,-_0x1fea42._0x8e048b)](_0x186ffe),_0x318901['push']({'type':_0x52a601(-_0x1fea42._0x184766,-_0x1fea42._0x5d6eff,-_0x1fea42._0x1945f1,-0x16b),'index':0x0,'text':_0x186ffe}));for(const _0x1f6a44 of _0x4be6c?.[_0x52a601(-_0x1fea42._0x3eaf6d,-_0x1fea42._0x96ce56,-0x8d,0x1e)]??[]){const _0x54c831=_0x1f6a44[_0x52a601(-0x145,-0x178,-0x200,-0x27d)]??0x0;let _0x435d83=this[_0x52a601(-0xf1,-0x1c8,-0x17c,-0xc4)][_0x52a601(-0xeb,-0x212,-_0x1fea42._0x1cbf75,-0x174)](_0x54c831);!_0x435d83&&(_0x435d83={'id':_0x1f6a44['id']??_0x52a601(-_0x1fea42._0x5a5146,-0x4d,-_0x1fea42._0x35ce48,-0x57)+_0x54c831,'type':_0x52a601(-0xc1,-_0x1fea42._0x38346d,-0x81,-0x147),'function':{'name':_0x1f6a44[_0x7a0850(_0x1fea42._0x120665,_0x1fea42._0x8093da,_0x1fea42._0x3e31e7,_0x1fea42._0x6be9d6)]?.[_0x52a601(-_0x1fea42._0x4819ce,-_0x1fea42._0x44b5a4,-_0x1fea42._0x5a5146,-0x45)]??'','arguments':''}},this[_0x7a0850(_0x1fea42._0x911b46,_0x1fea42._0x36ce78,_0x1fea42._0x270532,0x26f)][_0x7a0850(0x265,_0x1fea42._0x1ff9e6,0x183,_0x1fea42._0x97f523)](_0x54c831,_0x435d83),this[_0x7a0850(_0x1fea42._0x33f996,_0x1fea42._0x3ff455,_0x1fea42._0x275485,_0x1fea42._0x345afc)]['push'](_0x435d83));_0x1f6a44['id']&&(_0x435d83['id']=_0x1f6a44['id']);_0x1f6a44[_0x52a601(-0xf5,0x53,-_0x1fea42._0x30cf7c,-_0x1fea42._0x36b0ee)]?.['name']&&(_0x435d83[_0x52a601(-_0x1fea42._0x55732a,-_0x1fea42._0x5694bb,-_0x1fea42._0x30cf7c,-_0x1fea42._0x1b47b7)][_0x52a601(-0x174,-0xf9,-_0x1fea42._0x5a5146,-_0x1fea42._0x32de49)]=_0x1f6a44[_0x7a0850(_0x1fea42._0x74a39d,0x2e8,0x422,_0x1fea42._0x142c05)][_0x52a601(-_0x1fea42._0x31ff2c,-0x14c,-_0x1fea42._0x17440b,-0x197)]);!this[_0x52a601(-_0x1fea42._0x57ae31,_0x1fea42._0x50a990,-0x8f,-0x106)][_0x52a601(-_0x1fea42._0x3f9d2b,-0x27c,-0x1b6,-0x1a7)](_0x54c831)&&_0x435d83[_0x7a0850(_0x1fea42._0x20b221,_0x1fea42._0x1ff20a,0x35a,_0x1fea42._0x142c05)][_0x52a601(_0x1fea42._0x56e264,-_0x1fea42._0x1ad880,-_0x1fea42._0x623e86,-_0x1fea42._0x1cb195)]['trim']()[_0x52a601(-0xb1,-0xef,-0xc5,0xb)]>0x0&&(_0x318901[_0x52a601(-_0x1fea42._0x275485,-0x148,-_0x1fea42._0x38a28b,-0x1aa)]({'type':_0x7a0850(_0x1fea42._0xd6b157,0x293,0x266,_0x1fea42._0x16aadb),'id':_0x435d83['id'],'index':_0x54c831,'name':_0x435d83[_0x7a0850(0x336,0x307,0x2a0,_0x1fea42._0x9b8eb5)]['name']}),this[_0x7a0850(_0x1fea42._0x57c7a6,_0x1fea42._0xccd99,0x34d,_0x1fea42._0x377027)][_0x52a601(-_0x1fea42._0x469d9c,-0x239,-_0x1fea42._0x1dee8e,-_0x1fea42._0x4405ba)](_0x54c831));const _0x41b56d=_0x1f6a44[_0x52a601(-_0x1fea42._0x2547d4,0x33,-0x81,0x3d)]?.[_0x7a0850(_0x1fea42._0xbef90e,_0x1fea42._0x3cac0c,_0x1fea42._0xb9d5e0,0x353)]??'';_0x41b56d['length']>0x0&&(_0x435d83[_0x52a601(-_0x1fea42._0x4bd75a,-0xec,-_0x1fea42._0x30cf7c,0x18)][_0x7a0850(_0x1fea42._0x39cfc7,_0x1fea42._0x30668f,_0x1fea42._0x525b3f,_0x1fea42._0x127e21)]+=_0x41b56d,_0x318901[_0x7a0850(0x270,_0x1fea42._0x289f23,_0x1fea42._0x3c07b7,0x236)]({'type':_0x52a601(-_0x1fea42._0x149068,-0x151,-_0x1fea42._0x2d1406,-_0x1fea42._0x2a2224),'id':_0x435d83['id'],'index':_0x54c831,'inputDelta':_0x41b56d}));}_0x427f4f[_0x7a0850(_0x1fea42._0xdc136c,_0x1fea42._0x40b163,_0x1fea42._0x219735,_0x1fea42._0x47a90f)]==='tool_calls'&&(this[_0x52a601(-_0x1fea42._0x24a311,-0xc2,-0x8b,0x4f)]=_0x7a0850(_0x1fea42._0x25bbad,_0x1fea42._0x20b70f,_0x1fea42._0x481698,0x243));}function _0x52a601(_0x22d16a,_0x105e6d,_0x315717,_0xcfdb70){return _0x55b3f6(_0x22d16a-_0x4580c9._0x5b6a03,_0x315717- -_0x4580c9._0x4928fd,_0x105e6d,_0xcfdb70-_0x4580c9._0x412132);}return _0x318901;}},OpenAiResponsesStreamParser=class{[_0x55b3f6(0x2d1,0x2b2,0x299,0x258)]=new Map();[_0x51d0c0(0x570,0x68d,0x5f1,0x6a9)];[_0x51d0c0(0x529,0x6a0,0x5c8,0x596)]=new Map();[_0x51d0c0(0x473,0x424,0x4dd,0x486)]=new Map();['reasoningItems']=new Map();[_0x51d0c0(0x3ec,0x533,0x4ba,0x53a)];[_0x55b3f6(0x28c,0x2d4,0x2ef,0x215)]=new Map();['toolCalls']=new Map();constructor(_0x387ad0){this['request']=_0x387ad0;}['consumeSseEvent'](_0x1f3716){const _0x1db752={_0x3301ca:0x2e1,_0x50372f:0x29d,_0x5037e1:0x564,_0x31270f:0x4aa,_0x10de74:0x3cf,_0x162dbe:0x1b7,_0xa6b4a0:0x1fb,_0x43bde8:0x2c6,_0x50b46c:0x404,_0x36a84f:0x447,_0x3fb35e:0x199,_0x15ad4d:0x16d,_0x162a23:0x13e,_0x35adc7:0x16e,_0x47c33f:0x18b,_0x1d9a48:0x21c},_0x1af34c={_0x4047d6:0xc,_0x2f27fe:0x27},_0x2c2fd8={_0x36d8bc:0x10e,_0x4d2b37:0x152};function _0x90b4c1(_0x460991,_0x2d67d9,_0x5f203a,_0x4df08d){return _0x51d0c0(_0x460991-_0x2c2fd8._0x36d8bc,_0x2d67d9-_0x2c2fd8._0x4d2b37,_0x2d67d9- -0x1af,_0x5f203a);}const _0x500a45=_0x1f3716[_0x5666c3(_0x1db752._0x3301ca,0x264,0x32d,_0x1db752._0x50372f)]('\x0a');function _0x5666c3(_0x29d20f,_0x538fc4,_0x34901f,_0x5d73d0){return _0x55b3f6(_0x29d20f-_0x1af34c._0x4047d6,_0x538fc4- -0x25,_0x29d20f,_0x5d73d0-_0x1af34c._0x2f27fe);}const _0x29d2f2=_0x500a45[_0x90b4c1(_0x1db752._0x5037e1,_0x1db752._0x31270f,_0x1db752._0x10de74,0x424)](_0x42697d=>_0x42697d[_0x90b4c1(0x355,0x3f0,0x3bb,0x460)](_0x5666c3(0xfc,0xf6,0x5c,0x16f)))?.[_0x5666c3(0x119,_0x1db752._0x162dbe,_0x1db752._0xa6b4a0,0x160)](0x6)['trim'](),_0x5b0e17=_0x500a45[_0x90b4c1(_0x1db752._0x43bde8,0x34d,0x3b8,0x272)](_0x2e2f67=>_0x2e2f67[_0x90b4c1(0x38f,0x3f0,0x3c6,0x3d9)](_0x90b4c1(0x447,0x421,0x44a,0x3cb)))[_0x90b4c1(_0x1db752._0x50b46c,_0x1db752._0x36a84f,0x3a8,0x3c3)](_0x11cf11=>_0x11cf11[_0x5666c3(0x18d,0x1b7,0x20a,0x101)](0x5)[_0x5666c3(0x2a5,0x28c,0x31c,0x292)]())[_0x5666c3(0xf4,0x1c6,0x1ef,_0x1db752._0x3fb35e)]('\x0a')['trim']();if(_0x5b0e17['length']===0x0||_0x5b0e17===_0x5666c3(0x2c7,0x1fc,_0x1db752._0x15ad4d,_0x1db752._0x162a23))return[];const _0x18675d=JSON['parse'](_0x5b0e17);return this[_0x5666c3(0xcd,_0x1db752._0x35adc7,_0x1db752._0x47c33f,_0x1db752._0x1d9a48)](_0x29d2f2??String(_0x18675d['type']??''),_0x18675d);}['consumeWebSocketEvent'](_0x2533d5){const _0x2f85e8={_0x43a962:0x29d},_0x6a69da={_0x5b6fbd:0x18f};function _0x3c6956(_0x1aff34,_0x1c67f9,_0xcb2af6,_0x17b57c){return _0x55b3f6(_0x1aff34-0xcf,_0x17b57c-0x10c,_0x1aff34,_0x17b57c-_0x6a69da._0x5b6fbd);}return this[_0x3c6956(0x2d4,0x29a,_0x2f85e8._0x43a962,0x29f)](String(_0x2533d5['type']??''),_0x2533d5);}[_0x51d0c0(0x597,0x6fc,0x66f,0x662)](){const _0x1d2e99={_0x5617b7:0x63e,_0x2ca8ea:0x5ce,_0x110c05:0x547,_0x340043:0x4e1,_0x236980:0x322,_0x5dbdbc:0x34e,_0x38a869:0x407,_0x48d02a:0x3b5},_0x5a85ce={_0x44ab86:0xb3},_0x40b5cb={_0x255a1d:0x11c};function _0x455f83(_0x4b0b20,_0x28630f,_0x2095ff,_0xf71ad8){return _0x55b3f6(_0x4b0b20-_0x40b5cb._0x255a1d,_0x2095ff-0x36d,_0xf71ad8,_0xf71ad8-0x1c8);}function _0x2de13e(_0x5e3ecb,_0x348340,_0x5c3610,_0x2b9f63){return _0x51d0c0(_0x5e3ecb-0xf7,_0x348340-0x82,_0x5c3610- -_0x5a85ce._0x44ab86,_0x2b9f63);}const _0x133823=this['finalResponse']??{'id':_0x455f83(0x4f6,0x488,0x571,_0x1d2e99._0x5617b7)+Date['now'](),'object':_0x455f83(_0x1d2e99._0x2ca8ea,_0x1d2e99._0x110c05,0x604,0x555),'status':'completed','output':this[_0x2de13e(0x4e3,0x3a9,0x418,_0x1d2e99._0x340043)](),'usage':{'input_tokens':0x0,'output_tokens':0x0}};return parseResponsesResponse(_0x133823,this[_0x2de13e(_0x1d2e99._0x236980,_0x1d2e99._0x5dbdbc,_0x1d2e99._0x38a869,_0x1d2e99._0x48d02a)]);}[_0x55b3f6(0x1b4,0x14b,0x133,0x74)](){const _0x130516={_0x14a836:0xa4,_0xc90abc:0xec,_0x959b6a:0xc},_0x1429de={_0x4f6b0f:0x165};function _0x3d5c01(_0x30b665,_0x4dc702,_0x1c68cc,_0x4d8b2e){return _0x51d0c0(_0x30b665-0x8b,_0x4dc702-_0x1429de._0x4f6b0f,_0x4dc702- -0x505,_0x1c68cc);}return this[_0x3d5c01(_0x130516._0x14a836,_0x130516._0xc90abc,_0x130516._0x959b6a,0xce)]!==void 0x0;}['consumeEvent'](_0x5dcc9d,_0x33caea){const _0x554813={_0x4cc59b:0x4f7,_0x4881f4:0x640,_0x74cbd7:0x494,_0x12927a:0x563,_0x513f5f:0x3e9,_0x50df51:0x493,_0x1c24d0:0x483,_0xe2a684:0x4ff,_0x38510b:0x23,_0x328fc1:0x72,_0x5a149e:0xb,_0xf1f29e:0x8c,_0x8bb089:0x90,_0x5c5076:0x55,_0x52e2bf:0x67,_0x465dda:0x120,_0xb57858:0x4f4,_0x3bd9cc:0x5d3,_0x231bd8:0x67,_0x216505:0x135,_0x489893:0x62,_0x44e5c8:0x6c,_0x14490c:0x22,_0x1e72d2:0xc5,_0x42ed4b:0x2d,_0x4656d1:0x441,_0x3b7a61:0x4ca,_0x1bf77d:0x420,_0x58a563:0x47f,_0x17aae9:0x511,_0x14e099:0x5bd,_0x510f1a:0x42b,_0x4a9301:0x448,_0x3e6785:0x405,_0x2c3287:0x4d9,_0x2143bc:0x3ed,_0x573d5e:0x4cd,_0x330baf:0x3e,_0x2e5383:0x9d,_0x48c5cf:0x7e,_0x54df14:0x69,_0x5dbd70:0x414,_0x452ee7:0x476,_0x412aea:0x390,_0x3d3a8f:0x409,_0x2831eb:0x33,_0x560b31:0x4ee,_0x16bce3:0x604,_0x3df097:0x655,_0x33259b:0xd2,_0x4eb9de:0x44,_0x4e3cee:0x2,_0x263d14:0x6d,_0x208f7b:0x499,_0x29f18c:0x582,_0x1e7488:0x593,_0x38c9dc:0x12,_0x57b12f:0xaf,_0x26e9fd:0x11d,_0x2cd187:0x15,_0x2577ec:0x13e,_0x492ff2:0x10b,_0x36dafd:0x561,_0x1e6015:0x5a5,_0x58a2a5:0x6d,_0x408811:0x114,_0x281ea7:0x4e,_0x722d34:0x38,_0x10d138:0x7e,_0x6b7a02:0x160,_0x19ebd1:0x54b,_0x33a9c4:0x4cd,_0x291ecd:0x80,_0x290132:0x92,_0x241cf4:0x41,_0x11b5f9:0x4ab,_0x51edc8:0x3de,_0x5878b0:0x407,_0xeabeac:0x4d2,_0x1e8b77:0x0,_0x240d16:0x1d,_0x41bfb4:0x85,_0x4af9c0:0xed,_0x56a826:0x581,_0x3d1548:0x5d,_0x16fdb5:0x3c9,_0x811e02:0x4e7,_0x477883:0x575,_0x3862f3:0x53a,_0x4ea2de:0x48f,_0x22532d:0x100,_0x1d0001:0x10f,_0x5665b0:0x4e3,_0x242a19:0x456,_0x2af08e:0x535,_0x59f1c1:0x48e,_0x405b2f:0x7c,_0x461d6a:0xb5,_0x16d5a6:0x94,_0x249a40:0x109,_0x366b80:0x1e,_0x2e5760:0x13c,_0x3f9ba3:0x68,_0x227e2b:0x515,_0x512409:0x44b,_0xfea3a5:0x493,_0x87e666:0x491,_0x12d987:0x5a4,_0x2d6c24:0x9c,_0x500ec8:0x416,_0x148307:0xfc,_0x1a6c70:0x5ba,_0x2ba63a:0x4f2,_0x23a3cd:0x98,_0x13387f:0x5d3,_0x1fac99:0x4ff,_0x2789ef:0x510,_0x580588:0x46a,_0x304c9b:0x4a5,_0xba2ffc:0x562,_0x25ae30:0x162,_0x8ef53b:0x1c,_0xff095c:0x10d,_0x703ac1:0x11e,_0x221818:0xc,_0x5427b6:0xf,_0x2bd97f:0x9b,_0x1f1d00:0x6e,_0x4d9af3:0x483,_0x19b213:0x552,_0x5999a5:0x50a,_0x5db6f8:0x4ce,_0x45bb21:0x47f,_0x3709bd:0x8c,_0x3c2020:0x72,_0x2902f0:0x135,_0x273627:0x471,_0x430cbd:0x584,_0x2787d0:0xda,_0x31f8f8:0x29,_0x4ac9ff:0x105,_0x465485:0x559,_0x3c53c9:0xea,_0x1f9c3e:0x23,_0x215288:0x10,_0x517e0d:0x27,_0x4cc0af:0x43,_0x36ac6d:0x674,_0x22740a:0x65f,_0x18b046:0x41e,_0x40737c:0x38c,_0x16ba32:0x4aa,_0x18b882:0x3d,_0x57dbb1:0xa3,_0x2cc5d6:0x4d7,_0x3575a7:0x4ae,_0x4c81bf:0x45c,_0x27a62e:0x1,_0x1ffcfc:0xcc,_0x5d6a78:0xf,_0x460d8:0xcb,_0x3c2412:0x49a,_0x10998c:0x504,_0x323c19:0x437,_0x5ceb58:0x437,_0x4305aa:0xb9,_0x32ad7f:0x532,_0x43a54a:0x575,_0x4cdcf5:0x4d0,_0x2d5597:0x56b,_0x2dbe20:0x486,_0x5c61f8:0x4ca,_0x4f0a4f:0x4ac,_0x5c1034:0xa1,_0x357382:0x26,_0x3d0b30:0x64,_0x346b74:0x39e,_0x3d6b5d:0x384,_0x41b417:0xd,_0x266f1b:0x3ad,_0x332a21:0x345,_0x3a1747:0x11,_0x14a8d2:0x136,_0x3397d0:0x62,_0x20e610:0x4ef,_0x1b078e:0x65,_0x5cf8b8:0x4e5,_0x4a7893:0x443,_0x1794d9:0x5c1,_0x24e6a2:0x5d2,_0x10fbb6:0xaa,_0x549cee:0x6,_0x5c17b0:0x6a,_0x984c0:0x67,_0x38bcfb:0xca,_0x4eb83a:0x44d,_0x2a42bd:0x531,_0x8e152e:0x4,_0x533495:0x112,_0x48d6e2:0x17f,_0x5639c8:0x1a6,_0x15f8af:0x184,_0xa38f59:0x337,_0x58cf5a:0x37,_0x4e71cc:0x156,_0x3d2cb7:0x12d,_0x370237:0x38f,_0x4ca70d:0x3fb,_0x5381db:0x139,_0x1b7f97:0x8c,_0x21b936:0xf5,_0xb9d26c:0x1d0,_0x49b847:0xb3,_0x1f3404:0x6,_0xa815ab:0x110,_0x550560:0x43c,_0x31adfa:0x402,_0x26480d:0x11,_0x225db7:0xb9,_0x3bbb90:0x163,_0x2e0a2b:0x424,_0x1d45b8:0x186,_0x160607:0xa6,_0x2fe597:0x492,_0x453b2c:0xac,_0x4f6949:0x3a3,_0x15b1fe:0x469,_0x5e6924:0x57b,_0xd60301:0x49f,_0xf3ed92:0x4ff,_0x4d6015:0xbe,_0x3d0050:0x1c9,_0x4dbfe7:0xe9,_0x2b2a20:0x3ee,_0x10f790:0x3ce,_0x10fa19:0x549,_0x3ef0c7:0x48e,_0x1642ed:0x5,_0x2c3e0e:0x3e9,_0x5387fd:0x537,_0xe0d2ac:0x4eb,_0x378d5c:0x610,_0x1f6525:0x46e,_0x5efb75:0x68,_0x14a71f:0x5ad,_0x58c7c0:0x481,_0x2956bb:0x512,_0x54dde:0x30,_0x217ba5:0x16,_0x2d5ca1:0x1b2,_0x333690:0x10c,_0x20af35:0x3f,_0x3a3e39:0x7d,_0x67a107:0x20,_0x11b24b:0xc,_0x1b58f6:0x8f,_0x3d2eec:0x8b,_0x409b61:0x53,_0x58f54a:0x9e,_0x1d9366:0x132,_0x5d3fe2:0x10a,_0x490677:0x531,_0x497bfe:0x586,_0x3efa7a:0x45d,_0xa29833:0x82,_0x12302b:0x138,_0x3231db:0x9,_0x3ca4a8:0x24,_0x59e920:0x7d,_0x50eeac:0x59c,_0x1bb3a2:0x550,_0x525200:0x18f,_0x5f2f83:0x4fd,_0x326da0:0x575,_0x15af05:0x71,_0x25e594:0xd7,_0x44ddc9:0xd1,_0x131960:0x3f8,_0x72d096:0x450,_0x21a70d:0x377,_0x1df8a6:0x57a,_0x9f7d7:0x51b,_0xfbf439:0x53,_0x5512a6:0xdc,_0x3a4b27:0xb,_0xc95af9:0x46e,_0x48959c:0x5c7,_0x6f658e:0x594,_0x132c60:0x425,_0x3d2336:0x4e0,_0x304330:0x482,_0x2b704b:0x567,_0x2f472b:0x4b1,_0x13979b:0x53a,_0x378d56:0x436,_0x244b3d:0x4d8,_0x4dc120:0x18,_0x450056:0xe6,_0x109922:0x104,_0x284fdf:0x4d,_0x315d6b:0x54,_0x3f86fe:0x4ec,_0x4b65e0:0x56e},_0x10eb8d={_0x258745:0x19a,_0x467442:0x2b8,_0x4fc2c9:0x106},_0x342f9b={_0x3d3dbe:0xb5,_0xd32cc5:0x238};function _0x3362cc(_0x25a701,_0x491e3a,_0x3fbf16,_0x535852){return _0x55b3f6(_0x25a701-_0x342f9b._0x3d3dbe,_0x3fbf16- -_0x342f9b._0xd32cc5,_0x535852,_0x535852-0x4a);}function _0x485040(_0x54e29e,_0xd3b6a,_0x25ca16,_0x1f46c9){return _0x55b3f6(_0x54e29e-_0x10eb8d._0x258745,_0x1f46c9-_0x10eb8d._0x467442,_0xd3b6a,_0x1f46c9-_0x10eb8d._0x4fc2c9);}switch(_0x5dcc9d){case _0x485040(_0x554813._0x4cc59b,_0x554813._0x4881f4,_0x554813._0x74cbd7,_0x554813._0x12927a):{const _0x508cb4=typeof _0x33caea[_0x3362cc(0x14,-0xbc,0xf,0xf)]===_0x485040(0x458,_0x554813._0x513f5f,0x45d,_0x554813._0x50df51)?_0x33caea[_0x485040(0x4e6,0x5c2,_0x554813._0x1c24d0,_0x554813._0xe2a684)]:0x0,_0x5bb2cd=typeof _0x33caea[_0x3362cc(_0x554813._0x38510b,0xac,-0x26,_0x554813._0x328fc1)]===_0x3362cc(0x13,-0x56,0x85,_0x554813._0x5a149e)?_0x33caea[_0x3362cc(-_0x554813._0xf1f29e,-_0x554813._0x8bb089,-0x26,0x91)]:'';if(_0x5bb2cd[_0x3362cc(-0x15,-_0x554813._0x5c5076,_0x554813._0x52e2bf,_0x554813._0x465dda)]>0x0){const _0x12feff=this[_0x485040(_0x554813._0xb57858,_0x554813._0x3bd9cc,0x560,0x58c)][_0x3362cc(-_0x554813._0x231bd8,-_0x554813._0x216505,-_0x554813._0x489893,-0x50)](_0x508cb4)??[];return _0x12feff[_0x3362cc(-_0x554813._0x44e5c8,_0x554813._0x14490c,-0x89,-_0x554813._0x1e72d2)](_0x5bb2cd),this[_0x3362cc(-0x27,_0x554813._0x42ed4b,0x9c,0x84)][_0x485040(0x459,0x4e9,0x3f8,_0x554813._0x4656d1)](_0x508cb4,_0x12feff),[{'type':_0x485040(0x386,_0x554813._0x3b7a61,0x3c7,_0x554813._0x1bf77d),'index':_0x508cb4,'text':_0x5bb2cd}];}break;}case _0x485040(_0x554813._0x58a563,0x4e6,0x537,_0x554813._0x17aae9):{const _0x59ad06=typeof _0x33caea[_0x485040(0x4c5,0x5de,_0x554813._0x14e099,0x4ff)]==='number'?_0x33caea['output_index']:void 0x0,_0x230e68=_0x33caea[_0x485040(_0x554813._0x510f1a,_0x554813._0x4a9301,0x4ec,_0x554813._0x3e6785)];if(_0x230e68?.[_0x485040(_0x554813._0x2c3287,_0x554813._0x2143bc,0x521,_0x554813._0x573d5e)]==='function_call'&&_0x230e68[_0x3362cc(-0x3a,-0x5b,-0x6d,_0x554813._0x330baf)]&&_0x230e68[_0x3362cc(-0x30,_0x554813._0x2e5383,_0x554813._0x48c5cf,-_0x554813._0x54df14)])return this['toolCalls'][_0x485040(_0x554813._0x5dbd70,_0x554813._0x452ee7,_0x554813._0x412aea,0x441)](_0x230e68[_0x485040(0x3e7,0x485,_0x554813._0x3d3a8f,_0x554813._0x1c24d0)],{'id':_0x230e68[_0x3362cc(-0x66,-0x78,-0x6d,-_0x554813._0x2831eb)],'type':'function','function':{'name':_0x230e68[_0x485040(_0x554813._0x560b31,_0x554813._0x16bce3,_0x554813._0x3df097,0x56e)],'arguments':''}}),_0x59ad06!==void 0x0&&(this[_0x3362cc(-_0x554813._0x33259b,-_0x554813._0x4eb9de,_0x554813._0x4e3cee,-0xf)]['set'](_0x59ad06,_0x230e68[_0x3362cc(-0x13e,0x78,-_0x554813._0x263d14,-0xee)]),this[_0x485040(_0x554813._0x208f7b,_0x554813._0x29f18c,_0x554813._0x1e7488,0x56a)][_0x3362cc(-_0x554813._0x38c9dc,-0x4c,-_0x554813._0x57b12f,-_0x554813._0x26e9fd)](_0x230e68[_0x3362cc(-_0x554813._0x2cd187,-_0x554813._0x2577ec,-0x6d,-_0x554813._0x492ff2)],_0x59ad06)),[{'type':_0x485040(_0x554813._0x36dafd,0x58c,_0x554813._0x1e6015,0x50e),'id':_0x230e68[_0x3362cc(-0x12,-0x107,-_0x554813._0x58a2a5,-_0x554813._0x408811)],'index':_0x59ad06??0x0,'name':_0x230e68[_0x3362cc(_0x554813._0x281ea7,_0x554813._0x722d34,_0x554813._0x10d138,_0x554813._0x6b7a02)]}];if(_0x230e68?.[_0x485040(0x44f,_0x554813._0x19ebd1,0x525,_0x554813._0x33a9c4)]===_0x485040(0x4d5,0x3c8,_0x554813._0x2c3287,0x40b)&&_0x230e68['id']){const _0x15996d=this[_0x3362cc(-_0x554813._0x291ecd,-_0x554813._0x290132,_0x554813._0x241cf4,-0x4f)](_0x230e68['id'],_0x59ad06);_0x59ad06!==void 0x0&&this[_0x485040(0x386,_0x554813._0x11b5f9,_0x554813._0x51edc8,_0x554813._0x5878b0)][_0x485040(_0x554813._0xeabeac,0x4f0,0x4bd,_0x554813._0x4656d1)](_0x59ad06,_0x15996d['id']);}break;}case'response.function_call_arguments.delta':{const _0x2caade=typeof _0x33caea['call_id']===_0x3362cc(_0x554813._0x1e8b77,-_0x554813._0x240d16,_0x554813._0x41bfb4,_0x554813._0x4af9c0)?_0x33caea[_0x3362cc(-0x1e,-0x6,-_0x554813._0x263d14,-0xaf)]:typeof _0x33caea[_0x485040(0x562,_0x554813._0x56a826,0x4c9,0x4ff)]===_0x3362cc(0x5f,-0xcb,-_0x554813._0x3d1548,-0x80)?this['outputIndexToCallId'][_0x485040(_0x554813._0x16fdb5,0x54e,0x4be,0x48e)](_0x33caea[_0x485040(0x507,0x59c,0x53e,0x4ff)]):void 0x0,_0x37280f=typeof _0x33caea['delta']===_0x485040(0x5c6,0x499,_0x554813._0x811e02,_0x554813._0x477883)?_0x33caea[_0x485040(_0x554813._0x3862f3,_0x554813._0x4ea2de,0x584,_0x554813._0x3b7a61)]:'',_0x490cd4=_0x2caade?this[_0x3362cc(-_0x554813._0x22532d,-0x136,-0x7f,-_0x554813._0x1d0001)][_0x485040(_0x554813._0x5665b0,_0x554813._0x242a19,_0x554813._0x2af08e,_0x554813._0x59f1c1)](_0x2caade):void 0x0;if(_0x490cd4&&_0x37280f[_0x3362cc(0x69,_0x554813._0x4eb9de,_0x554813._0x231bd8,-_0x554813._0x405b2f)]>0x0)return _0x490cd4[_0x3362cc(0xfb,_0x554813._0x461d6a,0xab,0x124)][_0x3362cc(-0x38,0xe5,_0x554813._0x16d5a6,_0x554813._0x249a40)]+=_0x37280f,[{'type':_0x3362cc(-0xaf,0xf8,_0x554813._0x366b80,_0x554813._0x1e8b77),'id':_0x490cd4['id'],'index':this[_0x3362cc(0xf6,0xbd,0x7a,0x100)][_0x3362cc(-_0x554813._0x2e5760,-_0x554813._0x3f9ba3,-0x62,0x51)](_0x490cd4['id'])??(typeof _0x33caea['output_index']===_0x485040(_0x554813._0x227e2b,_0x554813._0x512409,0x4df,_0x554813._0xfea3a5)?_0x33caea[_0x485040(0x511,_0x554813._0x87e666,_0x554813._0x12d987,0x4ff)]:0x0),'inputDelta':_0x37280f}];break;}case _0x3362cc(-0xa4,-_0x554813._0x2d6c24,-0xd7,-_0x554813._0x52e2bf):{const _0x3efcdd=typeof _0x33caea[_0x485040(_0x554813._0x500ec8,0x3e3,0x485,0x483)]==='string'?_0x33caea[_0x3362cc(-0x12a,0xd,-0x6d,-_0x554813._0x148307)]:typeof _0x33caea['output_index']===_0x3362cc(-0x5d,0x3c,-_0x554813._0x3d1548,-0x82)?this[_0x485040(0x586,_0x554813._0x1a6c70,0x412,_0x554813._0x2ba63a)][_0x3362cc(-_0x554813._0x23a3cd,-0x71,-_0x554813._0x489893,0x41)](_0x33caea[_0x485040(_0x554813._0x13387f,0x5cd,0x423,_0x554813._0x1fac99)]):void 0x0,_0x5dbf04=_0x3efcdd?this[_0x485040(_0x554813._0x2789ef,_0x554813._0x580588,0x519,0x471)][_0x485040(_0x554813._0x304c9b,_0x554813._0xba2ffc,0x4d3,_0x554813._0x59f1c1)](_0x3efcdd):void 0x0;_0x5dbf04&&typeof _0x33caea[_0x3362cc(0x105,-0x25,0x94,0xe4)]==='string'&&(_0x5dbf04[_0x3362cc(_0x554813._0x25ae30,-_0x554813._0x8ef53b,0xab,0x14f)][_0x3362cc(_0x554813._0x291ecd,_0x554813._0xff095c,0x94,_0x554813._0x703ac1)]=_0x33caea['arguments']);break;}case'response.output_item.done':{const _0x690c84=typeof _0x33caea[_0x3362cc(0xd0,_0x554813._0x221818,_0x554813._0x5427b6,-_0x554813._0x2bd97f)]==='number'?_0x33caea[_0x3362cc(-_0x554813._0x1f1d00,-0x28,0xf,0xec)]:void 0x0,_0x1e70ee=_0x33caea['item'];if(_0x1e70ee?.[_0x485040(_0x554813._0x4d9af3,_0x554813._0x19b213,0x40b,0x4cd)]===_0x485040(_0x554813._0x5999a5,0x360,0x51f,0x43e)){const _0x596f5d=_0x1e70ee[_0x485040(_0x554813._0x5db6f8,0x45b,0x4e7,0x483)]??(_0x690c84!==void 0x0?this[_0x485040(_0x554813._0x87e666,0x4a3,_0x554813._0x45bb21,0x4f2)][_0x3362cc(-_0x554813._0x3709bd,_0x554813._0x3c2020,-_0x554813._0x489893,-_0x554813._0x2902f0)](_0x690c84):void 0x0),_0xf6c0b2=_0x596f5d?this[_0x485040(0x537,0x3e1,0x3b9,_0x554813._0x273627)]['get'](_0x596f5d):void 0x0;_0xf6c0b2&&typeof _0x1e70ee[_0x485040(0x5fb,0x5bc,0x528,_0x554813._0x430cbd)]===_0x3362cc(_0x554813._0x2787d0,_0x554813._0x31f8f8,_0x554813._0x41bfb4,_0x554813._0x4ac9ff)&&(_0xf6c0b2[_0x485040(0x5c5,_0x554813._0x465485,0x5aa,0x59b)]['arguments']=_0x1e70ee['arguments']);break;}if(_0x1e70ee?.[_0x3362cc(-_0x554813._0x3c53c9,0x5e,-_0x554813._0x1f9c3e,_0x554813._0x215288)]==='reasoning'&&_0x1e70ee['id']){const _0x289eb0=this[_0x3362cc(-_0x554813._0x517e0d,_0x554813._0x330baf,_0x554813._0x241cf4,-_0x554813._0x4cc0af)](_0x1e70ee['id'],_0x690c84);typeof _0x1e70ee[_0x485040(_0x554813._0x36ac6d,_0x554813._0x22740a,0x65b,_0x554813._0x1e7488)]==='string'&&(_0x289eb0[_0x485040(_0x554813._0x18b046,_0x554813._0x40737c,_0x554813._0x16ba32,0x46f)]=_0x1e70ee[_0x3362cc(-0x7,-_0x554813._0x18b882,_0x554813._0x57dbb1,0x111)]);if(Array['isArray'](_0x1e70ee[_0x485040(_0x554813._0x2cc5d6,_0x554813._0x3575a7,0x524,_0x554813._0x4c81bf)]))for(let _0x19f577=0x0;_0x19f577<_0x1e70ee[_0x3362cc(-_0x554813._0x27a62e,-0x5d,-_0x554813._0x16d5a6,0x0)]['length'];_0x19f577+=0x1){const _0x3ef883=_0x1e70ee[_0x3362cc(-_0x554813._0x1ffcfc,_0x554813._0x5d6a78,-_0x554813._0x16d5a6,-_0x554813._0x460d8)][_0x19f577];_0x3ef883['type']==='summary_text'&&typeof _0x3ef883[_0x485040(_0x554813._0x3c2412,_0x554813._0x10998c,0x47f,_0x554813._0x323c19)]==='string'&&_0x289eb0['summaryByIndex'][_0x3362cc(0x1c,-0x110,-_0x554813._0x57b12f,-0xe1)](_0x19f577,_0x3ef883[_0x485040(0x4f4,0x445,0x3ff,_0x554813._0x5ceb58)]);}typeof _0x1e70ee[_0x3362cc(-0xd2,0x1d,-_0x554813._0x4305aa,-0x184)]===_0x485040(_0x554813._0x32ad7f,0x656,0x511,_0x554813._0x43a54a)&&_0x289eb0[_0x485040(0x596,0x5c6,_0x554813._0x4cdcf5,0x512)][_0x3362cc(-0x122,-0x125,-0xaf,-0x14b)](0x0,_0x1e70ee[_0x485040(0x3dc,_0x554813._0xb57858,0x3cc,0x437)]);}break;}case'response.reasoning_summary_text.delta':{const _0xdee48b=typeof _0x33caea[_0x485040(_0x554813._0x2d5597,_0x554813._0x2dbe20,0x47f,_0x554813._0x5c61f8)]===_0x485040(0x5f0,0x54a,_0x554813._0x4f0a4f,0x575)?_0x33caea[_0x3362cc(-_0x554813._0x5c1034,_0x554813._0x52e2bf,-_0x554813._0x357382,_0x554813._0x3d0b30)]:'',_0x37e811=typeof _0x33caea[_0x485040(_0x554813._0x346b74,_0x554813._0x3d6b5d,0x440,0x3fb)]===_0x3362cc(_0x554813._0x41b417,_0x554813._0x216505,0x85,0xaa)?_0x33caea[_0x485040(0x4ae,_0x554813._0x266f1b,_0x554813._0x332a21,0x3fb)]:typeof _0x33caea['output_index']==='number'?this['outputIndexToReasoningId'][_0x3362cc(-_0x554813._0x3a1747,-_0x554813._0x14a8d2,-_0x554813._0x3397d0,-0x11)](_0x33caea[_0x485040(_0x554813._0x20e610,0x522,0x57e,0x4ff)]):void 0x0,_0x3f6a1e=typeof _0x33caea[_0x3362cc(-0x39,-0x16,_0x554813._0x5d6a78,-_0x554813._0x1b078e)]===_0x485040(0x54a,_0x554813._0x5cf8b8,0x400,_0x554813._0x50df51)?_0x33caea[_0x485040(_0x554813._0x4a7893,_0x554813._0x1794d9,_0x554813._0x24e6a2,_0x554813._0x1fac99)]:0x0,_0x35337a=typeof _0x33caea[_0x3362cc(-0x76,0xcb,-0x6,0xc9)]==='number'?_0x33caea[_0x3362cc(0xd6,-_0x554813._0x10fbb6,-_0x554813._0x549cee,-0x55)]:0x0;if(_0x37e811&&_0xdee48b[_0x3362cc(-_0x554813._0x5c17b0,0x55,_0x554813._0x984c0,_0x554813._0x38bcfb)]>0x0){const _0x4eef36=this[_0x485040(_0x554813._0x4eb83a,0x492,0x5f2,_0x554813._0x2a42bd)](_0x37e811,_0x3f6a1e);_0x4eef36['summaryByIndex'][_0x3362cc(_0x554813._0x8e152e,-_0x554813._0x533495,-_0x554813._0x57b12f,-_0x554813._0x48d6e2)](_0x35337a,''+(_0x4eef36[_0x3362cc(-_0x554813._0x5639c8,-_0x554813._0x15f8af,-0xcc,-0xe7)]['get'](_0x35337a)??'')+_0xdee48b);if(isUserVisibleReasoning(this[_0x485040(0x493,_0x554813._0xa38f59,0x35d,0x3e4)]))return[{'type':_0x3362cc(-_0x554813._0x58cf5a,0x47,0x78,_0x554813._0x4305aa),'delta':_0xdee48b,'itemId':_0x37e811,'outputIndex':_0x3f6a1e,'summaryIndex':_0x35337a}];}break;}case _0x3362cc(-_0x554813._0x4e71cc,-_0x554813._0x3d2cb7,-0x82,0x5b):{const _0x45c54b=typeof _0x33caea[_0x485040(_0x554813._0x370237,0x437,0x484,_0x554813._0x4ca70d)]===_0x3362cc(0x67,0x37,0x85,_0x554813._0x5381db)?_0x33caea[_0x3362cc(-0x9e,-_0x554813._0x1b7f97,-_0x554813._0x21b936,-_0x554813._0xb9d26c)]:typeof _0x33caea['output_index']===_0x3362cc(-_0x554813._0x49b847,-0xee,-0x5d,-0x10a)?this['outputIndexToReasoningId'][_0x3362cc(-0x137,-_0x554813._0x1f3404,-0x62,-_0x554813._0xa815ab)](_0x33caea['output_index']):void 0x0,_0x177ef9=typeof _0x33caea['output_index']===_0x485040(0x3eb,0x485,0x4ec,0x493)?_0x33caea['output_index']:0x0,_0xc12092=typeof _0x33caea['summary_index']===_0x485040(0x451,0x4a0,_0x554813._0x550560,0x493)?_0x33caea[_0x485040(0x596,0x520,_0x554813._0x31adfa,0x4ea)]:0x0,_0x256a54=typeof _0x33caea[_0x3362cc(-_0x554813._0x26480d,-0x16,-_0x554813._0x225db7,-_0x554813._0x3bbb90)]==='string'?_0x33caea['text']:'';_0x45c54b&&this['getOrCreateReasoningItem'](_0x45c54b,_0x177ef9)[_0x485040(0x4e6,0x388,0x43d,_0x554813._0x2e0a2b)][_0x3362cc(-0x23,-_0x554813._0x1d45b8,-0xaf,-0x84)](_0xc12092,_0x256a54);break;}case _0x3362cc(0xb3,-_0x554813._0x160607,-0x19,0xa3):{const _0x256590=typeof _0x33caea['delta']===_0x485040(_0x554813._0x2fe597,0x5c9,0x546,0x575)?_0x33caea[_0x3362cc(-_0x554813._0x453b2c,0x59,-0x26,-0x40)]:'',_0xb05e02=typeof _0x33caea[_0x485040(_0x554813._0x4f6949,_0x554813._0x15b1fe,0x4a0,0x3fb)]==='string'?_0x33caea['item_id']:typeof _0x33caea[_0x485040(_0x554813._0x5e6924,_0x554813._0xd60301,0x569,_0x554813._0xf3ed92)]==='number'?this[_0x3362cc(-_0x554813._0x4d6015,-_0x554813._0x3d0050,-_0x554813._0x4dbfe7,-0x1b4)][_0x485040(_0x554813._0x2b2a20,_0x554813._0x10f790,_0x554813._0x10fa19,_0x554813._0x3ef0c7)](_0x33caea[_0x3362cc(0x78,-_0x554813._0x1642ed,0xf,-0x36)]):void 0x0,_0x28bb74=typeof _0x33caea['output_index']===_0x485040(_0x554813._0x2c3e0e,_0x554813._0x5387fd,_0x554813._0xe0d2ac,0x493)?_0x33caea[_0x485040(0x44b,0x59c,0x523,_0x554813._0xe2a684)]:0x0,_0x102bae=typeof _0x33caea[_0x485040(_0x554813._0x378d5c,0x4b0,0x59a,0x550)]===_0x485040(_0x554813._0x1f6525,0x3aa,_0x554813._0x1c24d0,_0x554813._0x50df51)?_0x33caea['content_index']:0x0;if(_0xb05e02&&_0x256590[_0x3362cc(0x42,0x121,0x67,_0x554813._0x5efb75)]>0x0){const _0x4cb3f2=this[_0x485040(_0x554813._0x14a71f,_0x554813._0x58c7c0,0x52d,0x531)](_0xb05e02,_0x28bb74);_0x4cb3f2[_0x485040(0x5c2,0x45b,0x4a1,_0x554813._0x2956bb)][_0x3362cc(_0x554813._0x54dde,-_0x554813._0x217ba5,-0xaf,-0x8a)](_0x102bae,''+(_0x4cb3f2['textByIndex']['get'](_0x102bae)??'')+_0x256590);if(isUserVisibleReasoning(this[_0x3362cc(-_0x554813._0x2d5ca1,-0x198,-_0x554813._0x333690,-0x18d)]))return[{'type':_0x3362cc(-_0x554813._0x20af35,-0xa9,-_0x554813._0x3a3e39,_0x554813._0x67a107),'contentIndex':_0x102bae,'delta':_0x256590,'itemId':_0xb05e02,'outputIndex':_0x28bb74}];}break;}case _0x3362cc(_0x554813._0x11b24b,-_0x554813._0x1b58f6,-0xbb,-_0x554813._0x3d2eec):{const _0x3b0569=typeof _0x33caea[_0x485040(0x438,0x4ca,0x4ba,0x3fb)]===_0x3362cc(-_0x554813._0x409b61,_0x554813._0x58f54a,0x85,0x16d)?_0x33caea['item_id']:typeof _0x33caea['output_index']===_0x485040(0x525,0x3ec,0x50e,0x493)?this[_0x3362cc(-_0x554813._0x1d9366,-_0x554813._0x1b7f97,-_0x554813._0x4dbfe7,-_0x554813._0x5d3fe2)]['get'](_0x33caea[_0x485040(_0x554813._0x490677,_0x554813._0x497bfe,_0x554813._0x3efa7a,0x4ff)]):void 0x0,_0x511bcd=typeof _0x33caea['output_index']===_0x3362cc(-_0x554813._0xa29833,-_0x554813._0x12302b,-0x5d,_0x554813._0x3231db)?_0x33caea['output_index']:0x0,_0x53e903=typeof _0x33caea[_0x3362cc(0x5a,-_0x554813._0x3ca4a8,0x60,_0x554813._0x59e920)]==='number'?_0x33caea[_0x485040(0x615,0x62b,_0x554813._0x50eeac,_0x554813._0x1bb3a2)]:0x0,_0x992e1e=typeof _0x33caea[_0x3362cc(-0x116,-_0x554813._0x525200,-_0x554813._0x225db7,-0x174)]===_0x485040(_0x554813._0x5f2f83,0x59d,0x497,_0x554813._0x326da0)?_0x33caea[_0x3362cc(_0x554813._0x549cee,-0xae,-0xb9,0x29)]:'';_0x3b0569&&this[_0x3362cc(-_0x554813._0x15af05,0xf9,_0x554813._0x241cf4,_0x554813._0x25e594)](_0x3b0569,_0x511bcd)[_0x3362cc(_0x554813._0x44ddc9,-0x23,0x22,-0xad)][_0x485040(0x4f4,_0x554813._0x131960,0x50e,_0x554813._0x4656d1)](_0x53e903,_0x992e1e);break;}case _0x485040(_0x554813._0x18b046,_0x554813._0x72d096,_0x554813._0x21a70d,0x412):{this[_0x485040(0x485,_0x554813._0x1df8a6,0x4f9,_0x554813._0x9f7d7)]=_0x33caea['response'];break;}case _0x3362cc(_0x554813._0xfbf439,-_0x554813._0x5512a6,-_0x554813._0x3a4b27,-0x8):{const _0x2913b6=_0x33caea[_0x485040(_0x554813._0xc95af9,0x516,_0x554813._0x48959c,0x54f)];throw new ProviderStreamEventError(_0x2913b6?.[_0x485040(0x50e,_0x554813._0x6f658e,_0x554813._0x132c60,0x4d8)]?.[_0x485040(0x5e2,_0x554813._0x3d2336,_0x554813._0x304330,_0x554813._0x2b704b)]??'Responses\x20stream\x20failed',{'code':_0x2913b6?.[_0x485040(_0x554813._0x2f472b,_0x554813._0x13979b,_0x554813._0x378d56,_0x554813._0x244b3d)]?.[_0x3362cc(0x42,-0xb1,0x7,0xe1)],'retryable':!![]});}case _0x3362cc(_0x554813._0x3231db,-0xd,-_0x554813._0x4dc120,-_0x554813._0x328fc1):{const _0x3796e0=_0x33caea[_0x3362cc(-0xcd,0x9a,-_0x554813._0x4dc120,-_0x554813._0x450056)];throw new ProviderStreamEventError(_0x3796e0?.[_0x3362cc(-0x3f,0x46,0x77,_0x554813._0x109922)]??'Responses\x20stream\x20failed',{'code':_0x3796e0?.['code'],'retryable':!![],'status':typeof _0x33caea[_0x3362cc(_0x554813._0x284fdf,-0x8,_0x554813._0x315d6b,0x53)]===_0x485040(_0x554813._0x3f86fe,0x478,_0x554813._0x4b65e0,0x493)?_0x33caea['status']:void 0x0});}}return[];}[_0x51d0c0(0x542,0x4fb,0x4cb,0x462)](){const _0x8d8fe2={_0x95072e:0x17f,_0x12a285:0x17e,_0x42bb35:0xe7,_0x359234:0x3f,_0x22b6fb:0x9,_0x459c42:0x3b,_0xc37ebd:0x9e,_0x2ad3bd:0x1b9,_0x295b2c:0x1eb,_0x132edd:0x91,_0x49e5df:0x2f,_0x144e8:0x171,_0x3862a9:0x11e,_0x20d68d:0x2b5,_0x173696:0x5d,_0x1f0693:0x284,_0x34b672:0x198,_0x46529b:0x2af,_0xe6fc62:0x212,_0x409609:0x22c,_0x5dfabc:0x19f,_0x569cf7:0x4c,_0x14bcc5:0x20,_0xc8f0b9:0xf8,_0x42178f:0x308,_0x51143a:0x27a,_0x3dc0d5:0x76,_0x34f3fa:0x24,_0x1c57c2:0xf6,_0x29bbfb:0x59,_0xc7f495:0x84,_0x3b0ea0:0x14a,_0x257b53:0x15e,_0x34d0bf:0x174,_0x3f6eac:0x1e4,_0x438bfe:0xba,_0x276f9a:0xa2,_0x449d06:0x7d,_0x1e1d32:0xd7,_0xe9cc37:0x280,_0x5bd579:0x189,_0x1c7814:0x26d,_0x3cdebe:0x2b0,_0x5d612b:0x8c,_0x434e88:0x1d8,_0x43a9b8:0x6,_0x399b5a:0x68,_0x5e59be:0x97,_0x10845d:0x1a,_0x2e7966:0x67,_0x133530:0xbd,_0x2e6e5b:0x4b,_0x27e8c7:0x7e,_0x160024:0x29,_0x5edeb8:0x9a,_0x1efe5a:0x144,_0x136ad5:0x13a,_0x415380:0x180,_0x2b2653:0xfe,_0x5397e3:0xbd,_0x129270:0x1a7,_0x5d1ec5:0x114,_0x473f54:0xf3,_0xbcc320:0xd4,_0x4a1f93:0x15},_0x432934={_0x51e908:0x68,_0x326d00:0x771},_0x5c7aeb={_0x2362c1:0xd9,_0x58ecf2:0xed,_0x4b582f:0x13b,_0x243e0a:0x13a},_0x44e8a3={_0x12dce3:0x1ef,_0x27f28a:0x78},_0x100846={_0x331f0c:0x5b,_0x36ced1:0x3,_0x594f7:0x546};function _0x552161(_0xd75276,_0x5d2d71,_0x2b4e7d,_0x39a9b6){return _0x51d0c0(_0xd75276-_0x100846._0x331f0c,_0x5d2d71-_0x100846._0x36ced1,_0xd75276- -_0x100846._0x594f7,_0x39a9b6);}const _0x20735c=[];for(const [_0x3d7bf2,_0x47f3f2]of this['responseTextParts'][_0x451f72(-0x174,-0x107,-0x1d0,-_0x8d8fe2._0x95072e)]()){const _0x13a9ef=_0x47f3f2[_0x451f72(-_0x8d8fe2._0x12a285,-0x254,-0x1f8,-0x171)]('');if(_0x13a9ef[_0x552161(_0x8d8fe2._0x42bb35,0x12a,0x106,_0x8d8fe2._0x359234)]===0x0)continue;_0x20735c[_0x552161(-_0x8d8fe2._0x22b6fb,_0x8d8fe2._0x459c42,0xd3,_0x8d8fe2._0xc37ebd)]({'index':_0x3d7bf2,'item':{'type':_0x552161(0xf7,0x28,0xa0,0x99),'role':_0x451f72(-0x14c,-_0x8d8fe2._0x2ad3bd,-_0x8d8fe2._0x295b2c,-0x189),'content':[{'type':_0x552161(-_0x8d8fe2._0x132edd,-0x15a,-0xc1,_0x8d8fe2._0x49e5df),'text':_0x13a9ef}]}});}for(const _0x98b09d of this[_0x451f72(-_0x8d8fe2._0x144e8,-0x2cc,-0x236,-0x16d)][_0x451f72(-_0x8d8fe2._0x3862a9,-_0x8d8fe2._0x20d68d,-0x1e0,-0x1c5)]()){_0x20735c[_0x552161(-0x9,-_0x8d8fe2._0x173696,-0x4c,0x69)]({'index':_0x98b09d[_0x451f72(-0x131,-_0x8d8fe2._0x1f0693,-0x1dd,-0x19e)]??_0x20735c[_0x451f72(-_0x8d8fe2._0x34b672,-0x1ed,-0x144,-0x13e)],'item':{'type':_0x451f72(-_0x8d8fe2._0x46529b,-0x1a9,-0x290,-0x35a),'id':_0x98b09d['id'],..._0x98b09d[_0x451f72(-_0x8d8fe2._0xe6fc62,-0x18e,-_0x8d8fe2._0x409609,-_0x8d8fe2._0x5dfabc)]?{'encrypted_content':_0x98b09d['encryptedContent']}:{},..._0x98b09d[_0x552161(-_0x8d8fe2._0x569cf7,-0xea,_0x8d8fe2._0x14bcc5,-_0x8d8fe2._0xc8f0b9)][_0x451f72(-0x22b,-_0x8d8fe2._0x42178f,-0x2b6,-_0x8d8fe2._0x51143a)]>0x0?{'summary':Array[_0x552161(_0x8d8fe2._0x3dc0d5,-0x66,0x108,_0x8d8fe2._0x34f3fa)](_0x98b09d[_0x552161(-0x4c,-_0x8d8fe2._0x1c57c2,-0x5d,-_0x8d8fe2._0x29bbfb)][_0x552161(0x5b,0xd9,-0xe,-_0x8d8fe2._0xc7f495)]())[_0x451f72(-0xce,-0xc5,-_0x8d8fe2._0x3b0ea0,-_0x8d8fe2._0x257b53)]((_0x3cbf23,_0x6f0147)=>_0x3cbf23[0x0]-_0x6f0147[0x0])[_0x451f72(-_0x8d8fe2._0x34d0bf,-_0x8d8fe2._0x3f6eac,-0x17b,-_0x8d8fe2._0x438bfe)](([,_0x38528b])=>{function _0x4382dd(_0x172e7f,_0x5878e3,_0x2eb55d,_0x4004ef){return _0x451f72(_0x172e7f-_0x44e8a3._0x12dce3,_0x172e7f,_0x5878e3-0x2e6,_0x4004ef-_0x44e8a3._0x27f28a);}return{'type':_0x4382dd(_0x5c7aeb._0x2362c1,_0x5c7aeb._0x58ecf2,_0x5c7aeb._0x4b582f,_0x5c7aeb._0x243e0a),'text':_0x38528b};})}:{},..._0x98b09d[_0x552161(_0x8d8fe2._0x276f9a,0x83,0x55,_0x8d8fe2._0x449d06)]['size']>0x0?{'text':Array[_0x451f72(-_0x8d8fe2._0x1e1d32,-_0x8d8fe2._0xe9cc37,-0x1b5,-0x23c)](_0x98b09d[_0x451f72(-0x196,-0x251,-_0x8d8fe2._0x5bd579,-0x1e2)][_0x451f72(-0x276,-_0x8d8fe2._0x1c7814,-0x1d0,-_0x8d8fe2._0x3cdebe)]())[_0x451f72(-_0x8d8fe2._0x5d612b,-0x124,-0x14a,-_0x8d8fe2._0x434e88)]((_0x116604,_0x5d00d2)=>_0x116604[0x0]-_0x5d00d2[0x0])[_0x552161(0xb0,-_0x8d8fe2._0x43a9b8,_0x8d8fe2._0x399b5a,_0x8d8fe2._0x5e59be)](([,_0x45a218])=>_0x45a218)[_0x552161(0x33,-_0x8d8fe2._0x10845d,-_0x8d8fe2._0x2e7966,_0x8d8fe2._0x133530)]('')}:{}}});}for(const _0x49b2e8 of this['toolCalls'][_0x552161(_0x8d8fe2._0x2e6e5b,_0x8d8fe2._0x27e8c7,_0x8d8fe2._0x160024,_0x8d8fe2._0x5edeb8)]()){_0x20735c['push']({'index':this['callIdToOutputIndex']['get'](_0x49b2e8['id'])??_0x20735c[_0x451f72(-0x22d,-0x15f,-_0x8d8fe2._0x1efe5a,-_0x8d8fe2._0x136ad5)],'item':{'type':'function_call','call_id':_0x49b2e8['id'],'name':_0x49b2e8[_0x451f72(-0x9f,-0x1c7,-0x100,-_0x8d8fe2._0x415380)][_0x552161(_0x8d8fe2._0x2b2653,_0x8d8fe2._0x5397e3,_0x8d8fe2._0x129270,0x133)],'arguments':_0x49b2e8['function'][_0x552161(_0x8d8fe2._0x5d1ec5,0x19f,0x1fa,0xac)]}});}function _0x451f72(_0x1a5ab9,_0xa878b8,_0xdf2463,_0x7fb0d5){return _0x51d0c0(_0x1a5ab9-0x168,_0xa878b8-_0x432934._0x51e908,_0xdf2463- -_0x432934._0x326d00,_0xa878b8);}return _0x20735c[_0x552161(0xe1,_0x8d8fe2._0x473f54,0x10b,_0x8d8fe2._0xbcc320)]((_0x192c57,_0x3048c2)=>_0x192c57[_0x451f72(-0x2e7,-0x22c,-0x27f,-0x238)]-_0x3048c2[_0x552161(-0x54,-0x39,-0xcf,-0xcd)])[_0x552161(0xb0,0xa6,0xb1,-_0x8d8fe2._0x4a1f93)](_0x194841=>_0x194841['item']);}[_0x55b3f6(0x1b2,0x279,0x240,0x230)](_0x8432f6,_0x148238){const _0x68598b={_0x1ae5b2:0x133,_0x48d005:0x207,_0x2cf6ea:0x344,_0x281d12:0x266,_0x52754b:0x394,_0x29fa8a:0x2cd,_0x32f55f:0x237,_0x3e370b:0x2db,_0x18a489:0x193,_0x83b323:0xd0,_0x4e8313:0x1e1,_0x4944e6:0x159},_0x10287d={_0xf12b1b:0x116,_0x596b36:0x10e,_0x41ec85:0x24a},_0xc4807b={_0x507ae5:0x82,_0x461736:0x384};function _0x465250(_0x34cf37,_0x22dac8,_0x176005,_0x14bded){return _0x51d0c0(_0x34cf37-0x186,_0x22dac8-_0xc4807b._0x507ae5,_0x176005- -_0xc4807b._0x461736,_0x14bded);}const _0x44f242=this[_0x465250(_0x68598b._0x1ae5b2,0x1d0,0x1b7,_0x68598b._0x48d005)][_0x4f554a(_0x68598b._0x2cf6ea,_0x68598b._0x281d12,0x28e,0x31a)](_0x8432f6);if(_0x44f242)return _0x148238!==void 0x0&&(_0x44f242['outputIndex']=_0x148238,this['outputIndexToReasoningId'][_0x4f554a(0x270,_0x68598b._0x52754b,0x28b,_0x68598b._0x29fa8a)](_0x148238,_0x8432f6)),_0x44f242;const _0x1e9d1f={'id':_0x8432f6,'outputIndex':_0x148238,'summaryByIndex':new Map(),'textByIndex':new Map()};this[_0x4f554a(0x2cb,_0x68598b._0x32f55f,_0x68598b._0x3e370b,0x2f1)][_0x465250(0x15b,0x148,_0x68598b._0x18a489,0x212)](_0x8432f6,_0x1e9d1f);function _0x4f554a(_0x35b550,_0x5be04b,_0x37a648,_0x26c7fe){return _0x51d0c0(_0x35b550-_0x10287d._0xf12b1b,_0x5be04b-_0x10287d._0x596b36,_0x26c7fe- -_0x10287d._0x41ec85,_0x35b550);}return _0x148238!==void 0x0&&this[_0x465250(_0x68598b._0x83b323,_0x68598b._0x4e8313,_0x68598b._0x4944e6,0xf0)][_0x4f554a(0x364,0x390,0x384,_0x68598b._0x29fa8a)](_0x148238,_0x8432f6),_0x1e9d1f;}};function createOpenAiResponsesStreamParser(_0x56090c){return new OpenAiResponsesStreamParser(_0x56090c);}function createOpenAiSurfaces(_0x31328c={}){const _0x2d04c1={_0x57ea45:0x18e,_0x3152e6:0x14c,_0x165656:0xa5,_0xeeb93d:0x23b,_0x20d3d4:0x2b6,_0x26fb5b:0x1bc,_0x32ddf6:0x15d,_0x359047:0x1f8,_0x49f30b:0x216},_0x32ecbf={_0x366bb1:0x35d,_0x48de45:0x23d},_0x110221={_0x35cef1:0x63e,_0x5be5af:0x70d,_0x4c6b89:0x702},_0x11a02a={_0x3bee74:0x2f7,_0x33a768:0x22f},_0xee64ef={_0xeb73fb:0x9c,_0x567e9f:0xca,_0x536b42:0x42e},_0x38ed34={_0x2f0335:0x198,_0x1a28d9:0x1f2},_0x3f3ec8={_0x483a0d:0x1b0};function _0x5bfce3(_0x17cb40,_0xe302f7,_0x280649,_0x1a41eb){return _0x51d0c0(_0x17cb40-0xc1,_0xe302f7-0x22,_0x1a41eb- -0x6ef,_0x17cb40);}function _0x441407(_0x53a043,_0x2cdf36,_0x56b4a8,_0x4fa1a4){return _0x55b3f6(_0x53a043-0x141,_0x56b4a8- -0x3c7,_0x4fa1a4,_0x4fa1a4-_0x3f3ec8._0x483a0d);}const _0x17bea5=_0x31328c[_0x441407(-0x186,-0x108,-0x1cb,-0x15f)]??_0x441407(-_0x2d04c1._0x57ea45,-0xf7,-_0x2d04c1._0x3152e6,-_0x2d04c1._0x165656),_0x5cb34f=_0x31328c[_0x441407(-_0x2d04c1._0xeeb93d,-_0x2d04c1._0x20d3d4,-0x24e,-0x1b9)]??'/responses';return[{'id':OPENAI_CHAT_COMPLETIONS_SURFACE,'transport':'http-json','createRequest'(_0x299f93){function _0xf8f46(_0x24b9f3,_0x270e62,_0xbcd886,_0x27d87){return _0x5bfce3(_0xbcd886,_0x270e62-_0x38ed34._0x2f0335,_0xbcd886-_0x38ed34._0x1a28d9,_0x27d87-0x5e);}return{'accept':_0xf8f46(-0x100,0x7a,-0xcb,-0x3b),'body':createChatRequestBody(_0x299f93,![]),'path':_0x17bea5};},'parseResponse'(_0x1a90e2){return parseChatCompletionResponse(_0x1a90e2);}},{'id':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,'transport':'http-sse','createRequest'(_0x129a83){function _0x79d145(_0x38598b,_0x46cbbe,_0x2f03bb,_0xfece4d){return _0x5bfce3(_0x2f03bb,_0x46cbbe-_0xee64ef._0xeb73fb,_0x2f03bb-_0xee64ef._0x567e9f,_0x46cbbe-_0xee64ef._0x536b42);}return{'accept':_0x79d145(_0x11a02a._0x3bee74,_0x11a02a._0x33a768,0x2ec,0x216),'body':createChatRequestBody(_0x129a83,!![]),'path':_0x17bea5};},'createStreamParser'(_0x14dca1){return new OpenAiChatCompletionsStreamParser(_0x14dca1);}},{'id':OPENAI_RESPONSES_SURFACE,'transport':'http-json','createRequest'(_0x349933){const _0x197416={_0x1babc0:0x73d};function _0x2baa57(_0x323967,_0xb9fc38,_0x119dd3,_0x44923b){return _0x441407(_0x323967-0x27,_0xb9fc38-0x1c2,_0x323967-_0x197416._0x1babc0,_0x44923b);}return{'accept':_0x2baa57(_0x110221._0x35cef1,_0x110221._0x5be5af,_0x110221._0x4c6b89,0x6fd),'body':createResponsesRequestBody(_0x349933,![]),'path':_0x5cb34f};},'parseResponse'(_0x1413d9,_0x3a9b88){return parseResponsesResponse(_0x1413d9,_0x3a9b88);}},{'id':OPENAI_RESPONSES_STREAM_SURFACE,'transport':_0x441407(-_0x2d04c1._0x26fb5b,-_0x2d04c1._0x32ddf6,-_0x2d04c1._0x359047,-_0x2d04c1._0x49f30b),'createRequest'(_0x226c5d){const _0x132d9d={_0x5e5c74:0x494};function _0x4fb291(_0x14b349,_0x123031,_0x2c8909,_0x32b218){return _0x5bfce3(_0x123031,_0x123031-0x1ca,_0x2c8909-0xf5,_0x32b218-_0x132d9d._0x5e5c74);}return{'accept':_0x4fb291(_0x32ecbf._0x366bb1,_0x32ecbf._0x48de45,0x1dc,0x295),'body':createResponsesRequestBody(_0x226c5d,!![]),'path':_0x5cb34f};},'createStreamParser'(_0x1007f8){return new OpenAiResponsesStreamParser(_0x1007f8);}},{'id':OPENAI_RESPONSES_WEBSOCKET_SURFACE,'transport':'websocket','createRequest'(_0x2dda40){return{'initialEvent':createOpenAiResponsesWebSocketEvent(_0x2dda40),'path':_0x5cb34f};},'createStreamParser'(_0x15abe9){return createOpenAiResponsesStreamParser(_0x15abe9);}}];}var OpenAiProviderAdapter=class{[_0x51d0c0(0x3f2,0x537,0x4a8,0x483)];constructor(_0x132cf2){const _0x5a387d={_0x566dcd:0xc6,_0x37a2c1:0x1d2,_0x4fb28d:0x60},_0x1baa04={_0xfa3a44:0x69,_0x51e856:0x10a,_0x171291:0x35f};function _0x48b62e(_0x561a71,_0x10a716,_0x5088dd,_0x58ff53){return _0x51d0c0(_0x561a71-_0x1baa04._0xfa3a44,_0x10a716-_0x1baa04._0x51e856,_0x58ff53- -_0x1baa04._0x171291,_0x561a71);}this[_0x48b62e(_0x5a387d._0x566dcd,_0x5a387d._0x37a2c1,_0x5a387d._0x4fb28d,0x149)]=_0x132cf2;}[_0x55b3f6(0xe2,0x133,0x99,0x176)](){const _0x5a5121={_0x5d5130:0x2f7},_0x35ef71={_0x1162e0:0x15c};function _0x451a6d(_0x523779,_0x4d0fbf,_0x4d7928,_0x20125e){return _0x51d0c0(_0x523779-_0x35ef71._0x1162e0,_0x4d0fbf-0x71,_0x523779- -0x1c8,_0x4d0fbf);}return new Error(_0x451a6d(_0x5a5121._0x5d5130,0x349,0x21f,0x255));}async[_0x51d0c0(0x5ed,0x5b7,0x614,0x634)](_0x1a337c,_0x268904){const _0x4db73b={_0x3a5deb:0x263,_0x5056e4:0x332,_0x1ca569:0x1ee,_0x404109:0x32e,_0x20092c:0x256,_0x3655ea:0x285,_0x5b1ab5:0xf1,_0x42d884:0x23b,_0x1f962b:0x167,_0x2b1adb:0x290,_0x4c07b9:0x1af,_0x956de7:0x289,_0x4438aa:0x108,_0x194e80:0x61,_0x5d957f:0x153,_0x56ecf3:0x12b,_0x526f26:0x207,_0x4796a0:0x1b6,_0x109ec3:0x131,_0x440077:0x1dd,_0x160704:0xe4,_0x110d1c:0x18d,_0xc0262a:0x2ee,_0x3f9cd7:0x2a0,_0x5cf2c4:0x31c,_0x37eb08:0x2c0,_0x39c5b3:0x300,_0x2b5f05:0x214,_0x392fe3:0x1f9,_0x3f76be:0x14a,_0x4105a5:0x272,_0x3e1b17:0x1f2,_0x14c8bb:0x24b,_0x56af4d:0x2cc,_0x106a4b:0x225,_0x218872:0x2ae},_0x5ead00={_0x510ddb:0x130},_0x11c9fe={_0x192cf7:0x158,_0x563dad:0x356};function _0x53206e(_0x7535d7,_0x275984,_0x21e51e,_0x1f2245){return _0x51d0c0(_0x7535d7-0x1d5,_0x275984-_0x11c9fe._0x192cf7,_0x1f2245- -_0x11c9fe._0x563dad,_0x21e51e);}const _0x483b9f=new Headers();_0x483b9f[_0x1ea4fd(-_0x4db73b._0x3a5deb,-0x1c6,-0x1f3,-_0x4db73b._0x5056e4)](_0x1ea4fd(-0x285,-_0x4db73b._0x1ca569,-_0x4db73b._0x404109,-_0x4db73b._0x20092c),_0x268904[_0x53206e(_0x4db73b._0x3655ea,_0x4db73b._0x5b1ab5,_0x4db73b._0x42d884,0x19f)]),_0x483b9f[_0x53206e(_0x4db73b._0x1f962b,0x276,0x294,0x1c1)](_0x1ea4fd(-_0x4db73b._0x2b1adb,-_0x4db73b._0x4c07b9,-0x2cc,-0x249),_0x1ea4fd(-0x245,-0x2c2,-_0x4db73b._0x956de7,-0x215)+_0x1a337c[_0x1ea4fd(-_0x4db73b._0x4438aa,-0x1a5,-_0x4db73b._0x194e80,-_0x4db73b._0x5d957f)][_0x1ea4fd(-_0x4db73b._0x56ecf3,-0x75,-0x1d1,-_0x4db73b._0x526f26)]);_0x268904[_0x1ea4fd(-0x112,-0xa1,-_0x4db73b._0x4796a0,-_0x4db73b._0x109ec3)]!==![]&&_0x483b9f[_0x1ea4fd(-_0x4db73b._0x3a5deb,-0x2ed,-0x24a,-0x18a)](_0x53206e(0x245,_0x4db73b._0x440077,_0x4db73b._0x160704,_0x4db73b._0x110d1c),'application/json');function _0x1ea4fd(_0xa76692,_0x20a56,_0x5e4b6a,_0x1b5af5){return _0x55b3f6(_0xa76692-_0x5ead00._0x510ddb,_0xa76692- -0x3ec,_0x5e4b6a,_0x1b5af5-0x116);}const _0x5eda35=await this[_0x53206e(0x1aa,0x21a,0x1f7,0x152)]?.({'body':_0x1a337c['body'],'credential':_0x1a337c[_0x53206e(0x378,_0x4db73b._0xc0262a,_0x4db73b._0x3f9cd7,_0x4db73b._0x5cf2c4)],'request':_0x1a337c[_0x1ea4fd(-_0x4db73b._0x37eb08,-_0x4db73b._0x39c5b3,-_0x4db73b._0x2b5f05,-_0x4db73b._0x392fe3)],'session':_0x1a337c[_0x53206e(_0x4db73b._0x3f76be,0x219,0x94,0x170)],'stream':_0x1a337c[_0x53206e(0x1fd,_0x4db73b._0x4105a5,0x2a3,_0x4db73b._0x3e1b17)]});for(const [_0x1b2e1d,_0x5063f5]of Object[_0x53206e(0x2f7,0x2cd,0x2a3,_0x4db73b._0x14c8bb)](_0x5eda35??{})){_0x483b9f[_0x1ea4fd(-0x263,-_0x4db73b._0x56af4d,-_0x4db73b._0x106a4b,-_0x4db73b._0x218872)](_0x1b2e1d,_0x5063f5);}return _0x483b9f;}[_0x51d0c0(0x6ec,0x5a3,0x61f,0x6d2)](_0x40b394){return _0x40b394;}[_0x55b3f6(0x1ee,0x197,0x13e,0x200)](_0x157a3c,_0x460bcb){return resolveSessionBaseUrl(_0x157a3c,_0x460bcb);}[_0x51d0c0(0x64b,0x5e4,0x5b8,0x4df)](_0x4ffbac,_0x45abb2){return resolveApiCredential(_0x4ffbac,_0x45abb2);}async[_0x51d0c0(0x59c,0x614,0x590,0x532)](_0x27689c){return await createOpenAiApiError(_0x27689c);}},OpenAiModel=class _OpenAiModel extends RoutedModel{static [_0x55b3f6(0x14d,0x150,0xda,0x151)]=new Map();['chatCompletionsPath'];[_0x55b3f6(0xed,0x179,0xb9,0x236)];constructor(_0x4622c2={}){const _0x311cd6={_0x516855:0x215,_0x3cb596:0x337,_0x306ca3:0x43,_0x26365e:0x3cf,_0x4886a8:0x40e,_0x403759:0x441,_0x12c21d:0xd0,_0xbe48c6:0x13,_0x4fe528:0xfb,_0xc025aa:0x32f,_0x1d2478:0x2e5,_0x4f1780:0x330,_0x464b13:0x77,_0x499f36:0x33,_0x58332f:0x24,_0x3f2ea1:0x1,_0x32f74c:0x6c,_0x56c1ea:0x198,_0xcac64e:0x416,_0xbb9edb:0x3ce,_0x3ca59d:0x363,_0x5562b1:0x8b,_0xef4668:0xd},_0x325888={_0x118e94:0x14b,_0x511c50:0x1d1},_0x160d9c={_0x45a6d2:0x1d0,_0x4916ff:0x186,_0xbafd37:0x39};function _0x481473(_0x54b390,_0x221b00,_0x366125,_0x5d0316){return _0x55b3f6(_0x54b390-_0x160d9c._0x45a6d2,_0x5d0316- -_0x160d9c._0x4916ff,_0x221b00,_0x5d0316-_0x160d9c._0xbafd37);}const _0x206fc3=_0x4622c2['model']??_0x41cdf7(_0x311cd6._0x516855,0x31c,_0x311cd6._0x3cb596,0x2e5);function _0x41cdf7(_0xf5f349,_0x1d40f7,_0x24701f,_0x575c53){return _0x55b3f6(_0xf5f349-_0x325888._0x118e94,_0x575c53-0x1c6,_0x1d40f7,_0x575c53-_0x325888._0x511c50);}const _0x412c9e=_0x4622c2['maxTokens']??getDefaultMaxTokens(),_0x3220b3=_0x4622c2[_0x481473(_0x311cd6._0x306ca3,0x3a,0x121,0x76)]??_0x41cdf7(0x37c,_0x311cd6._0x26365e,_0x311cd6._0x4886a8,_0x311cd6._0x403759),_0x42d607=_0x4622c2['responsesPath']??_0x481473(0x162,_0x311cd6._0x12c21d,_0x311cd6._0xbe48c6,_0x311cd6._0x4fe528);super({'apiKey':_0x4622c2[_0x41cdf7(0x3a1,_0x311cd6._0xc025aa,0x25d,0x306)],'baseUrl':trimTrailingSlashes(_0x4622c2[_0x41cdf7(0x3be,_0x311cd6._0x1d2478,0x410,_0x311cd6._0x4f1780)]??_0x481473(0x2b,-0x24,0x152,_0x311cd6._0x464b13)),'fetch':_0x4622c2['fetch'],'maxTokens':_0x412c9e,'model':_0x206fc3,'reasoning':_0x4622c2[_0x481473(-0x2c,-0x24,-0xcc,-_0x311cd6._0x499f36)],'providerAdapter':new OpenAiProviderAdapter(_0x4622c2[_0x481473(-_0x311cd6._0x58332f,-0x122,-_0x311cd6._0x3f2ea1,-_0x311cd6._0x32f74c)]),'providerSessionResolver':_0x4622c2[_0x481473(_0x311cd6._0x56c1ea,0x32,0x158,0x118)],'requestMutators':_0x4622c2['requestMutators'],'router':new StaticModelSurfaceRouter({'complete':OPENAI_CHAT_COMPLETIONS_SURFACE,'stream':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE}),'sessionManager':_0x4622c2[_0x41cdf7(0x384,_0x311cd6._0xcac64e,_0x311cd6._0xbb9edb,_0x311cd6._0x3ca59d)],'surfaces':createOpenAiSurfaces({'chatCompletionsPath':_0x3220b3,'responsesPath':_0x42d607}),'webSocketFactory':_0x4622c2['webSocketFactory']}),this[_0x481473(0x59,0x73,-0x53,0x76)]=_0x3220b3,this[_0x481473(-0xac,-0x38,_0x311cd6._0x5562b1,-_0x311cd6._0xef4668)]=_0x42d607;}[_0x55b3f6(0x288,0x272,0x1bd,0x1ec)](_0x35e6fd,_0x33b0d5){const _0x72f765={_0x2004f3:0x1fb},_0x241ee6={_0x3885e3:0x12a,_0x46721b:0x196};function _0x1e852f(_0x21d01f,_0x5a13f3,_0x3ddbcd,_0x1b68a0){return _0x51d0c0(_0x21d01f-_0x241ee6._0x3885e3,_0x5a13f3-_0x241ee6._0x46721b,_0x3ddbcd- -0x74a,_0x5a13f3);}return this[_0x1e852f(-0x25b,-0x11d,-_0x72f765._0x2004f3,-0x250)](_0x35e6fd,OPENAI_CHAT_COMPLETIONS_SURFACE,_0x33b0d5);}[_0x51d0c0(0x553,0x56a,0x57d,0x633)](_0x463f97,_0x3fb0f1){const _0x16da10={_0x4dc6fe:0x21e,_0x184c28:0x287,_0x196286:0x1b8},_0x411169={_0x59c415:0x707};function _0x29ab1f(_0x4682b1,_0x5c2285,_0x2b1892,_0x333780){return _0x51d0c0(_0x4682b1-0x15,_0x5c2285-0x1e3,_0x333780- -_0x411169._0x59c415,_0x5c2285);}return this[_0x29ab1f(-_0x16da10._0x4dc6fe,-0x130,-_0x16da10._0x184c28,-_0x16da10._0x196286)](_0x463f97,OPENAI_RESPONSES_SURFACE,_0x3fb0f1);}[_0x51d0c0(0x5b3,0x5ae,0x658,0x655)](_0x70b13,_0x1b5471){const _0x2e1de6={_0x7d868b:0x236},_0x5d45d7={_0x36083e:0x1e6};function _0x22da9e(_0x5a0df2,_0x47e01e,_0x28549b,_0x593a6a){return _0x51d0c0(_0x5a0df2-_0x5d45d7._0x36083e,_0x47e01e-0x1a1,_0x5a0df2- -0x734,_0x47e01e);}return this[_0x22da9e(-0x1e5,-0x152,-0x1ff,-_0x2e1de6._0x7d868b)](_0x70b13,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x1b5471);}[_0x55b3f6(0x44,0x121,0xe8,0x55)](_0x231d41,_0x4fb5fe){const _0x44e0b2={_0x2ab0f4:0x27b,_0xa3a760:0x28e,_0x31bb54:0x316};function _0x2951fd(_0x153652,_0x44d26d,_0x272ef8,_0x538220){return _0x51d0c0(_0x153652-0x102,_0x44d26d-0xbf,_0x44d26d- -0x380,_0x153652);}return this[_0x2951fd(_0x44e0b2._0x2ab0f4,_0x44e0b2._0xa3a760,_0x44e0b2._0x31bb54,0x296)](_0x231d41,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,_0x4fb5fe);}[_0x55b3f6(0x1aa,0x24f,0x1e1,0x170)](_0x4f5902,_0x83eb){return this['streamViaSurface'](_0x4f5902,OPENAI_RESPONSES_STREAM_SURFACE,_0x83eb);}[_0x55b3f6(0x90,0x118,0xd7,0x11f)](_0x4a6f1c,_0x54192f){const _0xb0522f={_0x304cf3:0x590,_0x2084ae:0x3fc,_0x4c6486:0x54a},_0x20c03e={_0x16f156:0x19a};function _0x1e3e9c(_0x47c7e7,_0x252951,_0x30200c,_0x2c0547){return _0x55b3f6(_0x47c7e7-0x9d,_0x252951-0x249,_0x2c0547,_0x2c0547-_0x20c03e._0x16f156);}return this[_0x1e3e9c(_0xb0522f._0x304cf3,0x4c9,_0xb0522f._0x2084ae,_0xb0522f._0x4c6486)](_0x4a6f1c,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x54192f);}async[_0x55b3f6(0x14f,0x1fb,0x11e,0x1bc)](_0x1f420e,_0x32feb9){const _0x584536={_0x233ea1:0x556,_0x22b45c:0x57b,_0x29c453:0x5dd,_0xec7519:0x5e7,_0x20e454:0x508},_0x41585f={_0x580997:0x1a},_0x4ec751={_0x3212d5:0x1c8};function _0x766795(_0x4890f6,_0x53add7,_0x28674a,_0x43de0f){return _0x55b3f6(_0x4890f6-0x10d,_0x4890f6-0x356,_0x43de0f,_0x43de0f-_0x4ec751._0x3212d5);}function _0x424470(_0x344bf8,_0x2e0375,_0x5beadd,_0x163cfa){return _0x51d0c0(_0x344bf8-0x20,_0x2e0375-_0x41585f._0x580997,_0x344bf8- -_0x41585f._0x580997,_0x2e0375);}try{return await this[_0x424470(0x5e6,_0x584536._0x233ea1,_0x584536._0x22b45c,_0x584536._0x29c453)](_0x1f420e,_0x32feb9);}catch(_0x4516d1){if(_0x4516d1 instanceof OpenAiApiError)throw this[_0x766795(_0x584536._0xec7519,_0x584536._0x20e454,0x6ae,0x50f)](_0x4516d1);throw _0x4516d1;}}async[_0x51d0c0(0x5c7,0x600,0x625,0x643)](_0x31e75c,_0xfadc6f){try{return await this['completeViaResponsesSurface'](_0x31e75c,_0xfadc6f);}catch(_0x3bdabb){if(_0x3bdabb instanceof OpenAiApiError)throw this['mapApiError'](_0x3bdabb);throw _0x3bdabb;}}async[_0x51d0c0(0x6a0,0x6cb,0x643,0x67d)](_0x519b73,_0x16e58d){const _0x5433bc={_0x30348b:0x1da,_0x1df6a0:0x2c4,_0x12b074:0x25c,_0x4e23d0:0x1ea,_0x1350e4:0x2c9,_0x2d73a4:0x3b2},_0x4b217a={_0x27a7f8:0x11d,_0x25f1e0:0x96},_0x5e97e1={_0x5f4464:0x1,_0x240f8b:0x32a};function _0x4fea73(_0x148b11,_0x9810a2,_0x19502b,_0x3f5e6b){return _0x51d0c0(_0x148b11-0xd0,_0x9810a2-_0x5e97e1._0x5f4464,_0x19502b- -_0x5e97e1._0x240f8b,_0x9810a2);}function _0x3a7c1e(_0x2dd5bc,_0x300212,_0x5756a7,_0x33eda7){return _0x55b3f6(_0x2dd5bc-_0x4b217a._0x27a7f8,_0x33eda7-0xc7,_0x2dd5bc,_0x33eda7-_0x4b217a._0x25f1e0);}try{let _0x1202c1;for await(const _0x106eac of this['responseSocketStream'](_0x519b73,_0x16e58d)){_0x106eac[_0x4fea73(0x2af,0x2fd,0x279,_0x5433bc._0x30348b)]===_0x3a7c1e(0x1e3,0x235,_0x5433bc._0x1df6a0,0x227)&&(_0x1202c1=_0x106eac['response']);}if(!_0x1202c1)throw new Error(_0x3a7c1e(_0x5433bc._0x12b074,0x1f5,0x1da,_0x5433bc._0x4e23d0));return _0x1202c1;}catch(_0x3c7693){if(_0x3c7693 instanceof OpenAiApiError)throw this[_0x3a7c1e(0x3f0,_0x5433bc._0x1350e4,_0x5433bc._0x2d73a4,0x358)](_0x3c7693);throw _0x3c7693;}}async*['chatStream'](_0x3dd699,_0x1cdd59){const _0x467fb9={_0x196d9c:0x26,_0x7066fe:0x36},_0x2f7793={_0x92fe86:0x71,_0x34b107:0xe8,_0x367db3:0x645};function _0x2e60f4(_0x1d9c70,_0x46114f,_0x5576db,_0xe97cb8){return _0x51d0c0(_0x1d9c70-_0x2f7793._0x92fe86,_0x46114f-_0x2f7793._0x34b107,_0x46114f- -_0x2f7793._0x367db3,_0x5576db);}try{yield*this['streamViaChatCompletionsSurface'](_0x3dd699,_0x1cdd59);}catch(_0xd608e9){if(_0xd608e9 instanceof OpenAiApiError)throw this[_0x2e60f4(0xc0,-_0x467fb9._0x196d9c,-_0x467fb9._0x7066fe,0xa0)](_0xd608e9);throw _0xd608e9;}}async*[_0x51d0c0(0x57f,0x64f,0x63a,0x56e)](_0x561c33,_0x3b307a){const _0x4b9945={_0x2c1100:0x8b,_0x5b8b39:0xa8,_0x514658:0x22,_0x3c0b99:0x56e},_0x25662e={_0x3577f2:0x1e2,_0x222709:0x259,_0x5d543c:0x94},_0x3e4240={_0x5335d2:0x123,_0x26ec3e:0x194};function _0x2e22c1(_0x4b2722,_0x1f8ddb,_0x23927c,_0x7320e0){return _0x51d0c0(_0x4b2722-_0x3e4240._0x5335d2,_0x1f8ddb-0xa9,_0x4b2722- -_0x3e4240._0x26ec3e,_0x7320e0);}function _0x267a1e(_0x2340cb,_0x116c7a,_0x1b88df,_0x373cd0){return _0x55b3f6(_0x2340cb-_0x25662e._0x3577f2,_0x2340cb- -_0x25662e._0x222709,_0x1b88df,_0x373cd0-_0x25662e._0x5d543c);}try{yield*this[_0x267a1e(-0xa,-_0x4b9945._0x2c1100,-_0x4b9945._0x5b8b39,_0x4b9945._0x514658)](_0x561c33,_0x3b307a);}catch(_0x132034){if(_0x132034 instanceof OpenAiApiError)throw this[_0x2e22c1(0x48b,0x421,0x4ac,_0x4b9945._0x3c0b99)](_0x132034);throw _0x132034;}}async*[_0x55b3f6(0x5e,0x13f,0xd2,0x128)](_0x575242,_0x474dc6){try{yield*this['streamViaPersistentResponsesSocket'](_0x575242,_0x474dc6);}catch(_0x44b3ee){if(_0x44b3ee instanceof OpenAiApiError)throw this['mapApiError'](_0x44b3ee);throw _0x44b3ee;}}['complete'](_0x480fc8,_0x5e0b33){const _0x4ec0a4={_0x3ec95a:0x476,_0x50a44f:0x4c0,_0x1a6d04:0x409},_0x402893={_0x12c2ca:0x19e,_0x2560e7:0x87};function _0x4a3c98(_0x2a0ca3,_0x4d40b8,_0x3a348c,_0x493d40){return _0x51d0c0(_0x2a0ca3-_0x402893._0x12c2ca,_0x4d40b8-_0x402893._0x2560e7,_0x2a0ca3- -0x113,_0x3a348c);}return this[_0x4a3c98(_0x4ec0a4._0x3ec95a,_0x4ec0a4._0x50a44f,_0x4ec0a4._0x1a6d04,0x453)](_0x480fc8,_0x5e0b33);}['stream'](_0x5c85a9,_0x5e2359){const _0xce462a={_0x182056:0x550,_0x1469ab:0x427,_0x42f75e:0x4aa},_0x3fdcf7={_0x59ed83:0x1b3,_0x6c8dc2:0x241};function _0x2fdf23(_0x2301cb,_0x48472e,_0x1b62fb,_0x24bb54){return _0x55b3f6(_0x2301cb-_0x3fdcf7._0x59ed83,_0x24bb54-_0x3fdcf7._0x6c8dc2,_0x48472e,_0x24bb54-0x38);}return this[_0x2fdf23(_0xce462a._0x182056,_0xce462a._0x1469ab,0x480,_0xce462a._0x42f75e)](_0x5c85a9,_0x5e2359);}[_0x55b3f6(0x1ec,0x14a,0x224,0x136)](_0x3dffac){const _0x520d51={_0x144aff:0xf6,_0x59fe3d:0x193,_0x31c588:0x1ab,_0x10a2bd:0x3a6,_0x29d8d4:0x4d3,_0x57c24a:0x436},_0x48ac6f={_0x2ac173:0x2ad},_0x307a47={_0x52bd33:0x1,_0x2c4769:0x2cc,_0x11c701:0x80},_0x1bcdd7=this['getResponsesSocketSessionKey'](_0x3dffac);function _0x4e00c8(_0x507ad2,_0x17302b,_0x947ea1,_0x154589){return _0x55b3f6(_0x507ad2-_0x307a47._0x52bd33,_0x507ad2- -_0x307a47._0x2c4769,_0x17302b,_0x154589-_0x307a47._0x11c701);}function _0x409117(_0x39544f,_0x83bb7,_0x4a2fbb,_0x24ab96){return _0x55b3f6(_0x39544f-0x17c,_0x24ab96-_0x48ac6f._0x2ac173,_0x83bb7,_0x24ab96-0x37);}let _0x3f7162=_OpenAiModel['sharedResponsesSocketSessions'][_0x4e00c8(-_0x520d51._0x144aff,-_0x520d51._0x59fe3d,-_0x520d51._0x31c588,-0x1b8)](_0x1bcdd7);return!_0x3f7162&&(_0x3f7162={'pending':Promise['resolve']()},_OpenAiModel[_0x409117(_0x520d51._0x10a2bd,0x39c,_0x520d51._0x29d8d4,0x3fd)][_0x409117(0x51b,0x4b5,0x3cd,_0x520d51._0x57c24a)](_0x1bcdd7,_0x3f7162)),_0x3f7162;}[_0x51d0c0(0x453,0x50c,0x4c3,0x548)](_0x291bd0){const _0x9865ca={_0x324ed1:0x25f,_0x59984a:0x2e6,_0x6a0f3f:0x187,_0x670082:0x218},_0x2f75a2={_0x48296f:0x148,_0x228ee4:0x1bc,_0x58313d:0x2e1},_0x98f49a={_0x72652e:0x391,_0xc66d8f:0x90};function _0x15b0a1(_0x1bae86,_0x59a7d7,_0x1aa430,_0x57e07e){return _0x55b3f6(_0x1bae86-0x145,_0x57e07e- -_0x98f49a._0x72652e,_0x59a7d7,_0x57e07e-_0x98f49a._0xc66d8f);}function _0x122c62(_0x593d04,_0x1af070,_0x5c3ca9,_0x21eb82){return _0x51d0c0(_0x593d04-_0x2f75a2._0x48296f,_0x1af070-_0x2f75a2._0x228ee4,_0x1af070- -_0x2f75a2._0x58313d,_0x21eb82);}return''+trimTrailingSlashes(this[_0x122c62(0x231,0x217,0x28c,_0x9865ca._0x324ed1)])+this[_0x15b0a1(-0x205,-_0x9865ca._0x59984a,-_0x9865ca._0x6a0f3f,-_0x9865ca._0x670082)]+'::'+_0x291bd0;}async[_0x51d0c0(0x668,0x5e7,0x673,0x5f8)](_0x3c6c53){const _0x42c270={_0x1b17d7:0x225,_0x52900c:0x1c5,_0x3c7407:0x177,_0x32db51:0x155},_0x41608f={_0xafcd40:0x11e},_0x1c6550={_0x4bf9b9:0x0,_0x89ef38:0x16c},_0x393420=_0x3c6c53[_0x5cd432(_0x42c270._0x1b17d7,0x1a7,0x1b3,0x155)]['catch'](()=>{});let _0x50dd3f;const _0x854b1d=new Promise(_0x335b9c=>{_0x50dd3f=_0x335b9c;});_0x3c6c53[_0x5cd432(0x18b,_0x42c270._0x52900c,_0x42c270._0x3c7407,_0x42c270._0x32db51)]=_0x393420['then'](()=>_0x854b1d),await _0x393420;function _0x47355b(_0xdc9f37,_0x543c43,_0x417d98,_0x3dc9dd){return _0x51d0c0(_0xdc9f37-0x80,_0x543c43-_0x1c6550._0x4bf9b9,_0x543c43- -_0x1c6550._0x89ef38,_0x417d98);}function _0x5cd432(_0x11e8b5,_0x28e299,_0x35b59b,_0x17842d){return _0x55b3f6(_0x11e8b5-0x121,_0x17842d- -_0x41608f._0xafcd40,_0x11e8b5,_0x17842d-0x31);}return()=>{_0x50dd3f?.();};}async[_0x55b3f6(0x362,0x2b9,0x341,0x26a)](_0x4396c2,_0x3526b0){const _0x2cd515={_0x51aaca:0xa,_0xcb54f1:0xd3,_0x5b0b80:0x185,_0x54acd8:0xd,_0x55d663:0x1b6,_0x419ed2:0x12d,_0x367f70:0xd6,_0x213f49:0x1b7,_0x3def4c:0x24,_0x1ed16e:0x6c,_0x6ab9b9:0xd5,_0x990c4c:0xd5,_0x366856:0xe0,_0x617c66:0xe1,_0x5b0c72:0x141,_0x49d43f:0x64,_0x26885e:0x1d2,_0x2f31b3:0xfe,_0x2ae8eb:0x27,_0xa8a342:0xb8,_0x4276ea:0x17,_0x175dc:0xc2,_0x265a18:0x6b,_0x28ecbc:0x37,_0x5ca020:0x98,_0x17dd42:0xb9,_0x1ff00d:0x193,_0x330604:0x198,_0x4a8929:0xca,_0xe48a7a:0x1a,_0x2108ef:0x1d2,_0x410d43:0x18a,_0x59ca41:0x14c},_0x17bd56={_0x3d96a6:0x83},_0x551dfe={_0x3709f3:0x4d};function _0x565278(_0x234389,_0x4173ec,_0x35e7ef,_0x2846db){return _0x51d0c0(_0x234389-_0x551dfe._0x3709f3,_0x4173ec-0x51,_0x4173ec- -0x698,_0x234389);}const _0x433567=this[_0x565278(-_0x2cd515._0x51aaca,-_0x2cd515._0xcb54f1,-_0x2cd515._0x5b0b80,-_0x2cd515._0x54acd8)](_0x4396c2),_0x2d1de7=toModelRequest(_0x433567);function _0x183c3a(_0x5a14ef,_0x2038fe,_0xe2be07,_0x2a0021){return _0x55b3f6(_0x5a14ef-0xf9,_0xe2be07- -0x202,_0x2038fe,_0x2a0021-_0x17bd56._0x3d96a6);}const _0x37d994=await prepareProviderRequest(_0x2d1de7,{'sessionManager':this[_0x565278(-0x15b,-0x16d,-0x108,-0x18c)],'requestMutators':this[_0x183c3a(-0x22,0x11e,0x91,0x106)],'signal':_0x3526b0}),_0x30057a=toChatRequest(_0x37d994[_0x183c3a(-_0x2cd515._0x55d663,-_0x2cd515._0x419ed2,-_0x2cd515._0x367f70,-_0x2cd515._0x213f49)]),_0x1987c5=this[_0x183c3a(-_0x2cd515._0x3def4c,0x2,_0x2cd515._0x1ed16e,_0x2cd515._0x6ab9b9)][_0x565278(-_0x2cd515._0x990c4c,-_0x2cd515._0x366856,-_0x2cd515._0x617c66,-0x127)](this[_0x183c3a(-_0x2cd515._0x5b0c72,-_0x2cd515._0x49d43f,-0xc2,-0x70)],_0x37d994[_0x565278(-0x26a,-_0x2cd515._0x26885e,-0x116,-_0x2cd515._0x2f31b3)]);if(!_0x1987c5)throw this[_0x183c3a(-0x9c,-_0x2cd515._0x2ae8eb,-0xcf,-0xae)]();return{'baseUrl':this[_0x183c3a(_0x2cd515._0xa8a342,-0x1f,0x6c,0x135)][_0x183c3a(_0x2cd515._0x4276ea,-_0x2cd515._0x175dc,-_0x2cd515._0x265a18,-0x7d)](this[_0x183c3a(-0x70,-_0x2cd515._0x28ecbc,-_0x2cd515._0x5ca020,-_0x2cd515._0x17dd42)],_0x37d994[_0x183c3a(-_0x2cd515._0x1ff00d,-_0x2cd515._0x330604,-_0x2cd515._0x4a8929,_0x2cd515._0xe48a7a)]),'credential':_0x1987c5,'request':_0x30057a,'session':_0x37d994[_0x565278(-0x294,-_0x2cd515._0x2108ef,-_0x2cd515._0x410d43,-_0x2cd515._0x59ca41)]};}['buildResponsesSocketEvent'](_0x2567b7,_0x475b51,_0x5b3e93={}){const _0x11cd85={_0x565729:0x119,_0x3950e7:0x1f,_0x40c512:0xb1,_0xde5e19:0x213,_0x1c810a:0x102,_0x1974de:0x195,_0x43debb:0xe,_0x13acc8:0xaf,_0x6abd33:0xff,_0x166388:0x123,_0x2475bf:0xa7,_0x21742d:0x92,_0x218e66:0x156,_0x565330:0x67d,_0x38ebd0:0x593,_0x2b94f9:0x13d,_0x2b369c:0x1d2,_0x21c7ab:0x16c,_0x96c71c:0xf2,_0x5762c6:0x165,_0x4ffa4c:0x647,_0x24b4a2:0x616},_0x3f543b={_0x9b4e4:0xed,_0x276085:0x48},_0x23b255={_0x30943e:0x109,_0x1d8dca:0x29};if(!_0x5b3e93[_0x287a3c(-_0x11cd85._0x565729,-0x157,-_0x11cd85._0x3950e7,-_0x11cd85._0x40c512)]){const _0x4e3561=this[_0x287a3c(-_0x11cd85._0xde5e19,-0x172,-0x1ff,-0x1a3)](_0x2567b7);if(_0x4e3561&&_0x475b51[_0x287a3c(-_0x11cd85._0x1c810a,-_0x11cd85._0x1974de,_0x11cd85._0x43debb,-_0x11cd85._0x13acc8)]&&_0x4e3561[_0x287a3c(-_0x11cd85._0x6abd33,0xc,-_0x11cd85._0x166388,-_0x11cd85._0x2475bf)]===_0x475b51['lastResponseId']){const _0x4ce3fd=toOpenAiResponsesRequest({..._0x2567b7,'messages':_0x2567b7[_0x287a3c(-_0x11cd85._0x21742d,-0xd6,-0x21c,-_0x11cd85._0x218e66)][_0x36bd3c(_0x11cd85._0x565330,0x5b2,0x5a2,_0x11cd85._0x38ebd0)](_0x4e3561[_0x287a3c(-_0x11cd85._0x2b94f9,-_0x11cd85._0x2b369c,-_0x11cd85._0x21c7ab,-_0x11cd85._0x96c71c)]+0x1)})[_0x287a3c(-0x1ab,-_0x11cd85._0x5762c6,-0x254,-0x184)];return{'event':createOpenAiResponsesWebSocketEvent(_0x2567b7,{'input':_0x4ce3fd,'previousResponseId':_0x4e3561[_0x36bd3c(_0x11cd85._0x4ffa4c,_0x11cd85._0x24b4a2,0x577,0x663)]}),'previousResponseId':_0x4e3561['responseId']};}}function _0x287a3c(_0x34f953,_0x1377f7,_0x3dcb58,_0x27a38a){return _0x55b3f6(_0x34f953-_0x23b255._0x30943e,_0x27a38a- -0x2e7,_0x34f953,_0x27a38a-_0x23b255._0x1d8dca);}function _0x36bd3c(_0x23a88d,_0x4e6af3,_0x136380,_0x1a1733){return _0x51d0c0(_0x23a88d-0xd4,_0x4e6af3-_0x3f543b._0x9b4e4,_0x4e6af3-_0x3f543b._0x276085,_0x1a1733);}return{'event':createOpenAiResponsesWebSocketEvent(_0x2567b7)};}[_0x51d0c0(0x434,0x481,0x4d2,0x462)](_0x446ccb){const _0x574f0c={_0x428a33:0xe1,_0x28e4c1:0xc1,_0x3448a5:0x12d,_0x36e147:0x83,_0x160fcf:0x230,_0x45e86c:0x19b,_0x270cc4:0x1c1,_0xee3e5d:0x22e,_0x4e8d6d:0x1c9},_0x58a17d={_0x65ca52:0x1b6,_0x47dcb3:0x252},_0x1cf20c={_0x26399f:0x16b,_0x38e98c:0x26};function _0x21390b(_0x4497e1,_0x5ab821,_0x54438c,_0xc28631){return _0x55b3f6(_0x4497e1-_0x1cf20c._0x26399f,_0x54438c-_0x1cf20c._0x38e98c,_0x5ab821,_0xc28631-0x4a);}function _0x29fdb7(_0x517365,_0x2b0134,_0x461ff7,_0x1b4b5b){return _0x55b3f6(_0x517365-_0x58a17d._0x65ca52,_0x2b0134- -_0x58a17d._0x47dcb3,_0x1b4b5b,_0x1b4b5b-0x168);}for(let _0x156e54=_0x446ccb['messages']['length']-0x1;_0x156e54>=0x0;_0x156e54-=0x1){const _0x1a56f8=_0x446ccb[_0x29fdb7(-_0x574f0c._0x428a33,-_0x574f0c._0x28e4c1,-_0x574f0c._0x3448a5,-0x1a3)][_0x156e54],_0x57c71d=_0x1a56f8[_0x29fdb7(-0x8f,-0x44,-_0x574f0c._0x36e147,-0xba)]==='assistant'?_0x1a56f8[_0x21390b(0x218,_0x574f0c._0x160fcf,_0x574f0c._0x45e86c,_0x574f0c._0x270cc4)]?.[_0x21390b(0x1ad,_0x574f0c._0xee3e5d,0x21f,_0x574f0c._0x4e8d6d)]:void 0x0;if(_0x57c71d)return{'messageIndex':_0x156e54,'responseId':_0x57c71d};}return void 0x0;}[_0x55b3f6(0x2e4,0x2c5,0x2e6,0x366)](_0x28e94f){const _0x444659={_0x1073d9:0x45,_0x1fd2e2:0xb1,_0xd99944:0x3d,_0x235bf0:0xc6,_0x3d08f9:0x17,_0x10d368:0x2,_0x350176:0x4e,_0x5b3de6:0xa4},_0x44496c={_0x19e966:0x3f},_0x2447a1={_0x4fb120:0x179};function _0x3de263(_0x1d1786,_0x58388e,_0x5d44f2,_0xe52e95){return _0x55b3f6(_0x1d1786-0x44,_0x1d1786- -_0x2447a1._0x4fb120,_0x58388e,_0xe52e95-0x1ea);}function _0x511d7d(_0x12bf61,_0x150331,_0x3ac202,_0x4e1886){return _0x51d0c0(_0x12bf61-_0x44496c._0x19e966,_0x150331-0x103,_0x3ac202- -0x64e,_0x12bf61);}return _0x28e94f instanceof ProviderStreamEventError&&(_0x28e94f['code']===_0x3de263(-_0x444659._0x1073d9,-_0x444659._0x1fd2e2,-_0x444659._0xd99944,-0x77)||_0x28e94f[_0x3de263(_0x444659._0x235bf0,_0x444659._0x3d08f9,0x17d,0x8c)]===_0x3de263(0x7,_0x444659._0x10d368,_0x444659._0x350176,_0x444659._0x5b3de6));}['invalidateResponsesSocketSession'](_0x1863dd){const _0x23fce2={_0x7ad3ff:0x3ce,_0xadeaf2:0x283,_0x654392:0x37a,_0x3dce15:0x38f,_0x29118d:0x433,_0x124fc6:0x2f0,_0x144691:0x2be,_0x214f6c:0x12c,_0x2ebf66:0x13,_0x3fa9f2:0xf8,_0x23616c:0xe9,_0x11cad5:0x37,_0xcad558:0x236,_0x3e9e31:0x1d5},_0x219c39={_0x4778b9:0x1f2},_0x58f728={_0x2f2121:0x18e,_0x3c850e:0x221};function _0x5137e4(_0x15f503,_0x38d129,_0x57c126,_0x447d13){return _0x55b3f6(_0x15f503-_0x58f728._0x2f2121,_0x447d13- -_0x58f728._0x3c850e,_0x57c126,_0x447d13-0x74);}const _0x613bcc=_0x1863dd['socket'];_0x1863dd[_0x6e0fc(0x2ec,0x357,_0x23fce2._0x7ad3ff,_0x23fce2._0xadeaf2)]=void 0x0,_0x1863dd[_0x6e0fc(_0x23fce2._0x654392,_0x23fce2._0x3dce15,_0x23fce2._0x29118d,0x3b7)]=void 0x0;function _0x6e0fc(_0x55278d,_0x139712,_0x578f3b,_0x1b3f8b){return _0x55b3f6(_0x55278d-_0x219c39._0x4778b9,_0x55278d-0xb8,_0x1b3f8b,_0x1b3f8b-0x125);}_0x1863dd[_0x6e0fc(_0x23fce2._0x124fc6,0x2f7,_0x23fce2._0x144691,0x33a)]=void 0x0,_0x613bcc?.[_0x5137e4(-0x120,-_0x23fce2._0x214f6c,-_0x23fce2._0x2ebf66,-_0x23fce2._0x3fa9f2)]===WebSocket[_0x5137e4(_0x23fce2._0x23616c,-0x30,-_0x23fce2._0x11cad5,0x92)]&&_0x613bcc[_0x6e0fc(_0x23fce2._0xcad558,_0x23fce2._0x3e9e31,0x233,0x295)](0x3e8,'reset');}async['getOrCreateResponsesSocket'](_0x29b1a1,_0xa698e9,_0x5e257f,_0x3e5d05,_0x3672f6){const _0x16039f={_0x2afb15:0x409,_0xd41cfb:0x567,_0x5bf2e7:0x4e,_0x379449:0x191,_0x284eb2:0x484,_0x1b5ef6:0x434,_0x1343a7:0x19e,_0x369c5d:0x14b},_0x5a858f={_0x256e7f:0x507,_0x4c1d28:0x47f,_0x492000:0x4f0,_0x451fd8:0x5e4,_0x55da33:0x3ad,_0x105723:0x470,_0x4e97e9:0x456,_0x18df93:0x514,_0x63a23d:0x4e7,_0x5c7ad2:0x2fd,_0x1f96d7:0x41e,_0xe41a85:0x10c,_0x10fe39:0x9d,_0x2ca9ec:0x3b9,_0x4764d9:0x92,_0x7af7e7:0x141,_0x36276d:0x466,_0x5eb8af:0x52b,_0x49ee4a:0x3b8,_0x28ab8a:0x3a9,_0x25c986:0x34f,_0x1c0e87:0x277,_0x2d780e:0x24c,_0x3d6449:0x543,_0x50ff82:0x153,_0x48a7a6:0x97,_0x50e7c0:0x7,_0x2ca88e:0x155,_0x6a5525:0x16b,_0x4f34d4:0x206,_0xd848bb:0xcf},_0x473d7c={_0x3b5c02:0x587,_0x2cca8f:0x5df,_0x5cb94f:0x631,_0xc9e686:0x15d,_0x2afc3c:0x1c7,_0xa487cd:0x58b,_0x220e95:0x4dc,_0x5a51e1:0x57e},_0x4fac3c={_0x4aa7c1:0x5c,_0x2bb305:0x87},_0x4584e1={_0x499225:0x1db},_0x5859f0={_0x250851:0xed,_0x476d83:0xe},_0x32f619={_0x2f3b6b:0x165,_0x5a6384:0x9a};if(_0xa698e9[_0x52b5eb(0x4e0,_0x16039f._0x2afb15,0x42e,_0x16039f._0xd41cfb)]?.[_0x1879d3(-_0x16039f._0x5bf2e7,0x7c,0x77,0x18)]===WebSocket[_0x1879d3(0x13c,_0x16039f._0x379449,0xbd,0x72)])return _0xa698e9[_0x52b5eb(0x4e0,0x546,_0x16039f._0x284eb2,_0x16039f._0x1b5ef6)];if(_0xa698e9['connecting'])return await _0xa698e9[_0x1879d3(0x14b,_0x16039f._0x1343a7,0x1f9,0x16f)];function _0x52b5eb(_0x4f36c0,_0x431b49,_0x199e52,_0x336e3f){return _0x51d0c0(_0x4f36c0-_0x32f619._0x2f3b6b,_0x431b49-_0x32f619._0x5a6384,_0x4f36c0- -0xe2,_0x431b49);}function _0x1879d3(_0x169595,_0x11cc7a,_0x52dcee,_0x364af9){return _0x51d0c0(_0x169595-_0x5859f0._0x250851,_0x11cc7a-_0x5859f0._0x476d83,_0x169595- -0x505,_0x364af9);}_0xa698e9['connecting']=((async()=>{const _0x4b6e98=await this[_0x33bef5(_0x5a858f._0x256e7f,_0x5a858f._0x4c1d28,_0x5a858f._0x492000,_0x5a858f._0x451fd8)]({'request':_0x5e257f[_0x33bef5(_0x5a858f._0x55da33,_0x5a858f._0x105723,_0x5a858f._0x4e97e9,0x3ac)],'body':_0x3e5d05,'credential':_0x5e257f[_0x33bef5(0x565,0x619,_0x5a858f._0x18df93,_0x5a858f._0x63a23d)],'session':_0x5e257f[_0x33bef5(0x3b9,_0x5a858f._0x5c7ad2,_0x5a858f._0x1f96d7,0x40f)],'stream':!![]},{'accept':'application/json','includeContentType':![]});_0x4b6e98['delete']('accept');const _0x4a3e3c=this['webSocketFactory']({'headers':Object['fromEntries'](_0x4b6e98[_0xfaac37(-0x18d,-0xd6,-_0x5a858f._0xe41a85,-_0x5a858f._0x10fe39)]()),'url':(''+_0x5e257f[_0x33bef5(0x3eb,0x4ca,0x3b2,_0x5a858f._0x2ca9ec)]+this['responsesPath'])['replace'](/^http:/,_0xfaac37(-_0x5a858f._0x4764d9,-0x8c,-0x169,-_0x5a858f._0x7af7e7))[_0x33bef5(_0x5a858f._0x36276d,0x3a4,_0x5a858f._0x5eb8af,_0x5a858f._0x49ee4a)](/^https:/,_0x33bef5(0x505,0x595,0x59d,0x55e))});function _0x33bef5(_0x202e27,_0x1e8c4d,_0x284eb9,_0x310073){return _0x52b5eb(_0x202e27- -0x2b,_0x1e8c4d,_0x284eb9-_0x4584e1._0x499225,_0x310073-0x12a);}function _0xfaac37(_0x1b9c37,_0x232247,_0x21a1e3,_0x391560){return _0x1879d3(_0x232247- -0x172,_0x232247-_0x4fac3c._0x4aa7c1,_0x21a1e3-_0x4fac3c._0x2bb305,_0x21a1e3);}const _0x346a8a=()=>{const _0x7c0000={_0x4da4c9:0x2cd},_0x50741d={_0x127ea7:0xd2,_0x29ac95:0x1b5,_0x3f39a1:0xeb};function _0x505318(_0x273e4,_0x3fc3b7,_0x239607,_0x40b1f4){return _0x33bef5(_0x273e4-_0x50741d._0x127ea7,_0x40b1f4,_0x239607-_0x50741d._0x29ac95,_0x40b1f4-_0x50741d._0x3f39a1);}function _0xdb05c(_0x1aad08,_0x4616c1,_0x386c07,_0x24975e){return _0x33bef5(_0x1aad08- -_0x7c0000._0x4da4c9,_0x24975e,_0x386c07-0x165,_0x24975e-0xc6);}_0xa698e9[_0x505318(_0x473d7c._0x3b5c02,0x567,_0x473d7c._0x2cca8f,_0x473d7c._0x5cb94f)]===_0x4a3e3c&&(_0xa698e9[_0xdb05c(0x1e8,0x1ce,_0x473d7c._0xc9e686,_0x473d7c._0x2afc3c)]=void 0x0,_0xa698e9[_0x505318(_0x473d7c._0xa487cd,_0x473d7c._0x220e95,_0x473d7c._0x5a51e1,0x559)]=void 0x0);};_0x4a3e3c[_0x33bef5(_0x5a858f._0x28ab8a,_0x5a858f._0x25c986,0x36a,0x411)]('close',_0x346a8a);try{return throwIfAborted(_0x3672f6),_0x4a3e3c[_0xfaac37(-0x1bb,-0x1c0,-_0x5a858f._0x1c0e87,-_0x5a858f._0x2d780e)]!==WebSocket[_0x33bef5(0x534,_0x5a858f._0x3d6449,0x4d1,0x5ee)]&&await waitForWebSocketOpen(_0x4a3e3c,_0x3672f6),throwIfAborted(_0x3672f6),_0xa698e9[_0xfaac37(-_0x5a858f._0x50ff82,-0xb5,-0xa,-0x5)]=_0x4a3e3c,_0x4a3e3c;}catch(_0x39a40b){_0x346a8a();_0x4a3e3c[_0x33bef5(0x3aa,0x2e8,0x3c3,0x3c0)]===WebSocket[_0xfaac37(0xb2,-0x36,_0x5a858f._0x48a7a6,_0x5a858f._0x50e7c0)]&&_0x4a3e3c[_0xfaac37(-_0x5a858f._0x2ca88e,-_0x5a858f._0x6a5525,-_0x5a858f._0x4f34d4,-_0x5a858f._0xd848bb)](0x3e8,'connect_failed');throw _0x39a40b;}})());try{return await _0xa698e9['connecting'];}finally{_0xa698e9[_0x1879d3(_0x16039f._0x369c5d,0x209,0x105,0xfa)]=void 0x0;}}async*[_0x51d0c0(0x491,0x4c7,0x4be,0x4ba)](_0x1c1390,_0x22e56e){const _0x4096c6={_0x714667:0x1f9,_0x287a07:0x1ec,_0x51bcac:0x3e1,_0x555a5d:0xf1,_0x4d16b2:0x196,_0x11bd77:0x19a,_0x1710d6:0x1d7,_0x31bb12:0x28e,_0x59280b:0x339,_0x315e4e:0x2dd,_0x21be4f:0x224,_0x57563d:0x272,_0x3bc0b0:0x41d,_0x182bfa:0x37f,_0x3001b8:0x1f1,_0x222dcf:0x46c,_0x13dabc:0x3b3,_0x228055:0x2ec,_0x351b15:0xce,_0x3311a6:0x305,_0x226758:0x3d2,_0x6f4abf:0x465,_0x9b1a14:0x2ef,_0x11a555:0x1cb,_0x22ade2:0x1be,_0x533c4f:0x1f1,_0x26b765:0x16a,_0x303c1a:0x1ba},_0x4d63fc={_0x48bc40:0x17f,_0x48f11a:0x158,_0x28fecd:0x67},_0x4d6274={_0x15cf7d:0x3d9};function _0x112f0b(_0x5caaf4,_0x42586d,_0x505b9a,_0x5c3ed0){return _0x51d0c0(_0x5caaf4-0xd3,_0x42586d-0xe4,_0x505b9a- -_0x4d6274._0x15cf7d,_0x5caaf4);}const _0x304510=this[_0x112f0b(_0x4096c6._0x714667,0x11b,_0x4096c6._0x287a07,0x144)](_0x1c1390),_0x11b983=this['getResponsesSocketSessionState'](_0x304510['metadata'][_0x52a108(_0x4096c6._0x51bcac,0x339,0x41d,0x415)]);function _0x52a108(_0x30642a,_0x1124a0,_0x5aa882,_0x595605){return _0x55b3f6(_0x30642a-_0x4d63fc._0x48bc40,_0x1124a0-_0x4d63fc._0x48f11a,_0x30642a,_0x595605-_0x4d63fc._0x28fecd);}const _0x3782f7=await this['acquireResponsesSocketLock'](_0x11b983);try{const _0x330211=this['buildResponsesSocketEvent'](_0x304510,_0x11b983);try{yield*this['streamViaResponsesSocketAttempt'](_0x304510['metadata'][_0x112f0b(0x277,_0x4096c6._0x555a5d,_0x4096c6._0x4d16b2,_0x4096c6._0x11bd77)],_0x11b983,_0x304510,_0x330211['event'],_0x22e56e?.[_0x52a108(_0x4096c6._0x1710d6,_0x4096c6._0x31bb12,0x268,_0x4096c6._0x59280b)]);return;}catch(_0x53e768){if(!_0x330211[_0x112f0b(0x1d1,_0x4096c6._0x315e4e,_0x4096c6._0x21be4f,_0x4096c6._0x57563d)]||!this[_0x52a108(0x39b,_0x4096c6._0x3bc0b0,_0x4096c6._0x182bfa,0x455)](_0x53e768)){this[_0x52a108(0x380,0x2ca,0x312,_0x4096c6._0x3001b8)](_0x11b983);throw _0x53e768;}}this['invalidateResponsesSocketSession'](_0x11b983);const _0x4d17b8=this[_0x52a108(_0x4096c6._0x222dcf,_0x4096c6._0x13dabc,_0x4096c6._0x228055,0x43a)](_0x304510,_0x11b983,{'forceFullReplay':!![]});yield*this[_0x112f0b(0x11d,0xcf,_0x4096c6._0x351b15,0x43)](_0x304510[_0x52a108(_0x4096c6._0x3311a6,_0x4096c6._0x226758,_0x4096c6._0x6f4abf,_0x4096c6._0x9b1a14)][_0x112f0b(0x142,_0x4096c6._0x11a555,_0x4096c6._0x4d16b2,_0x4096c6._0x22ade2)],_0x11b983,_0x304510,_0x4d17b8[_0x112f0b(_0x4096c6._0x533c4f,_0x4096c6._0x26b765,0x109,_0x4096c6._0x303c1a)],_0x22e56e?.['signal']);}finally{_0x3782f7();}}async*[_0x51d0c0(0x474,0x578,0x4a7,0x3cc)](_0x10db45,_0x2bae6b,_0x372a14,_0x4feb0e,_0x1bb94d){const _0x23cb36={_0x8ad57d:0x3fa,_0x4361a3:0x49c,_0x2da6b9:0x34b,_0x29e1ae:0x2e2,_0x2b76ac:0x3d6,_0x570365:0x40f,_0x455139:0x280,_0x3ce611:0x3ae,_0x575229:0x32e,_0x2d3d8e:0x380,_0x182707:0x2ba,_0x2e0401:0x401,_0x5a12ec:0x304,_0x25b368:0x402,_0x49340c:0x3ee,_0x4b3f9b:0x329,_0x5a28b0:0x2b9,_0x39a718:0x4a3,_0x3bfa0b:0x3dc,_0xac4ca8:0x3a8,_0x5e22e3:0x363,_0x293603:0x3c7,_0x805e65:0x41b},_0x1d5f4a={_0x4f6f8d:0x7,_0x5a817c:0x1e3};function _0x297164(_0x3ca0fe,_0x1316ee,_0x27376c,_0x5be52c){return _0x55b3f6(_0x3ca0fe-_0x1d5f4a._0x4f6f8d,_0x5be52c-_0x1d5f4a._0x5a817c,_0x3ca0fe,_0x5be52c-0x9e);}function _0x3e74d7(_0x2cede2,_0x23cc0e,_0x1dc0ad,_0x30e7ab){return _0x55b3f6(_0x2cede2-0x1d8,_0x23cc0e-0x1c0,_0x30e7ab,_0x30e7ab-0xb2);}const _0x3559f6=await this[_0x297164(0x4d0,_0x23cb36._0x8ad57d,0x475,_0x23cb36._0x4361a3)](_0x372a14,_0x1bb94d),_0x2cd8f=await this['getOrCreateResponsesSocket'](_0x10db45,_0x2bae6b,_0x3559f6,_0x4feb0e,_0x1bb94d),_0x3621f1=createOpenAiResponsesStreamParser(_0x372a14);throwIfAborted(_0x1bb94d),_0x2cd8f[_0x3e74d7(0x305,_0x23cb36._0x2da6b9,_0x23cb36._0x29e1ae,_0x23cb36._0x2b76ac)](JSON[_0x297164(0x28c,0x2b8,0x2a9,0x35d)](_0x4feb0e));for await(const _0x3dfbc6 of iterateWebSocketMessages(_0x2cd8f,_0x1bb94d)){const _0xa46da7=_0x3621f1[_0x3e74d7(0x246,0x2e6,0x220,0x322)]?.(_0x3dfbc6)??[];yield*_0xa46da7;if(_0x3621f1[_0x297164(_0x23cb36._0x570365,_0x23cb36._0x455139,_0x23cb36._0x3ce611,_0x23cb36._0x575229)]?.())break;}if(!_0x3621f1[_0x3e74d7(0x298,0x30b,_0x23cb36._0x2d3d8e,0x3af)]?.())throw new Error(_0x297164(_0x23cb36._0x182707,_0x23cb36._0x2e0401,_0x23cb36._0x5a12ec,0x372));const _0x1b3fbc=_0x3621f1[_0x3e74d7(_0x23cb36._0x25b368,0x4a1,0x530,_0x23cb36._0x49340c)](),_0x1eefc3=_0x1b3fbc[_0x297164(0x372,_0x23cb36._0x4b3f9b,_0x23cb36._0x5a28b0,0x358)]?.[_0x297164(0x3a4,0x3c8,_0x23cb36._0x39a718,_0x23cb36._0x3bfa0b)]??_0x1b3fbc['id'];_0x1eefc3&&(_0x2bae6b[_0x297164(_0x23cb36._0xac4ca8,_0x23cb36._0x5e22e3,_0x23cb36._0x293603,_0x23cb36._0x805e65)]=_0x1eefc3),yield{'type':'done','response':_0x1b3fbc};}},AVAILABLE_CHAT_MODEL_SURFACES=[_0x55b3f6(0x21f,0x1ca,0x242,0x1ef),'openai-chat-completions',_0x55b3f6(0x24c,0x2e0,0x38d,0x2f4),'openai-responses-ws'];function isAnthropicSurface(_0x3b2949){const _0x3cbefd={_0x13221c:0x5a8,_0x3b4595:0x52e,_0x23b39a:0x4f2},_0x290579={_0x341970:0xb0,_0x5bfcca:0x1c8};function _0xe3c133(_0x574e54,_0x1c3b4b,_0x1e86ec,_0x15bfbd){return _0x55b3f6(_0x574e54-_0x290579._0x341970,_0x574e54-0x3de,_0x15bfbd,_0x15bfbd-_0x290579._0x5bfcca);}return _0x3b2949===_0xe3c133(_0x3cbefd._0x13221c,_0x3cbefd._0x3b4595,0x5bd,_0x3cbefd._0x23b39a);}function resolveDefaultBaseUrl(_0x206829){const _0x29e9cb={_0x3b8f06:0x11f,_0x48369c:0xf3,_0x3e4058:0x1d3,_0xfe6dc0:0x70,_0x2fa9b3:0x239},_0x1624cd={_0x54b3e0:0x3e,_0x84787b:0x64f},_0x1b14ef={_0x4c76bc:0x1da,_0x15d176:0x64b};function _0x275807(_0x38f6d6,_0x18a5ea,_0x2c7ee4,_0x1ab36b){return _0x51d0c0(_0x38f6d6-0x119,_0x18a5ea-_0x1b14ef._0x4c76bc,_0x1ab36b- -_0x1b14ef._0x15d176,_0x2c7ee4);}function _0x1214e7(_0x2b4771,_0x15b52b,_0x1f4335,_0x46c8e4){return _0x51d0c0(_0x2b4771-0x19b,_0x15b52b-_0x1624cd._0x54b3e0,_0x46c8e4- -_0x1624cd._0x84787b,_0x1f4335);}if(_0x206829===_0x275807(-_0x29e9cb._0x3b8f06,-0x48,-0xd5,-_0x29e9cb._0x48369c))return getProviderProfile('anthropic')?.[_0x275807(-0x210,-_0x29e9cb._0x3e4058,-0x1d9,-0x153)]??_0x1214e7(-0x158,-0xe0,-0x158,-0xe3);return getProviderProfile('openai')?.[_0x1214e7(-0x1fd,-_0x29e9cb._0xfe6dc0,-_0x29e9cb._0x2fa9b3,-0x157)]??_0x275807(-0xd8,-0x151,-0x157,-0xc0);}var ChatModel=class{['model'];['maxTokens'];[_0x55b3f6(0x21e,0x205,0x18f,0x229)];[_0x55b3f6(0x2b2,0x21d,0x2ab,0x1ad)];['openAiDelegate'];constructor(_0x52c434={}){const _0x537733={_0x1b6fbb:0x32d,_0xaf23aa:0x3f2,_0xb54e55:0x24f,_0x557866:0x2f3,_0xf76e57:0x3d8,_0x347275:0x3cc,_0x87efc1:0x332,_0x3e7d4a:0x3c0,_0x185c5e:0x1e2,_0x497f30:0x2cb,_0x3b8606:0x2f7,_0x5c887c:0x39e,_0x32a10c:0x30f,_0x142cf2:0x255,_0x1b8dd2:0x1dc,_0x558bcb:0x30c,_0x14b35d:0x310,_0x37a219:0x3f3,_0x534c84:0x2e4,_0x4088a1:0x2f2,_0x1fa9c1:0x3e9,_0x3288ed:0x337,_0x58e119:0x2d9,_0x452d53:0x38f,_0x2cfb4:0x33b,_0x6d02d1:0x32e,_0x2b7099:0x411,_0x4dfb8b:0x2b6,_0x5c5593:0x310,_0x194854:0x32e,_0x19ea76:0x370,_0x320200:0x37c},_0x470609={_0x34876a:0x0},_0x2101dd={_0x2c58b0:0x74,_0x43e36c:0x1e9,_0x1bcfa6:0x261};this['model']=_0x52c434[_0x1ecdfc(0x303,_0x537733._0x1b6fbb,_0x537733._0xaf23aa,0x36b)]??getDefaultModel();function _0x1ecdfc(_0x39b8a2,_0xa7cd31,_0x4129c7,_0x545603){return _0x51d0c0(_0x39b8a2-_0x2101dd._0x2c58b0,_0xa7cd31-_0x2101dd._0x43e36c,_0xa7cd31- -_0x2101dd._0x1bcfa6,_0x545603);}this[_0x1ecdfc(0x406,0x32e,0x3ec,0x306)]=_0x52c434[_0x1c1f0b(0x30f,_0x537733._0xb54e55,_0x537733._0x557866,_0x537733._0xf76e57)]??getDefaultMaxTokens(),this['surface']=_0x52c434[_0x1ecdfc(_0x537733._0x347275,_0x537733._0x87efc1,0x365,_0x537733._0x3e7d4a)]??'openai-chat-completions';const _0x477601=trimTrailingSlashes(_0x52c434[_0x1ecdfc(0x1e9,0x297,0x350,_0x537733._0x185c5e)]??resolveDefaultBaseUrl(this[_0x1ecdfc(0x296,_0x537733._0x87efc1,0x33e,_0x537733._0x497f30)]));function _0x1c1f0b(_0x2d4ce2,_0x4f27a7,_0x2c0f81,_0x55c66a){return _0x51d0c0(_0x2d4ce2-0x134,_0x4f27a7-_0x470609._0x34876a,_0x2c0f81- -0x29c,_0x55c66a);}if(isAnthropicSurface(this[_0x1c1f0b(0x2c5,0x288,_0x537733._0x3b8606,_0x537733._0x5c887c)])){this[_0x1c1f0b(0x390,0x2e9,_0x537733._0x32a10c,_0x537733._0x142cf2)]=new AnthropicModel({'apiKey':_0x52c434['apiKey'],'authScheme':_0x52c434[_0x1ecdfc(0x242,0x285,_0x537733._0x1b8dd2,0x1e6)],'baseUrl':_0x477601,'fetch':_0x52c434[_0x1c1f0b(_0x537733._0x558bcb,0x227,_0x537733._0x14b35d,_0x537733._0x37a219)],'maxTokens':this[_0x1ecdfc(0x377,0x32e,0x34b,0x251)],'model':this[_0x1c1f0b(0x263,_0x537733._0x534c84,_0x537733._0x4088a1,0x2fe)],'reasoning':_0x52c434['reasoning'],'providerSessionResolver':_0x52c434[_0x1c1f0b(_0x537733._0x1fa9c1,_0x537733._0x3288ed,0x390,_0x537733._0x58e119)],'requestMutators':_0x52c434['requestMutators']});return;}this[_0x1c1f0b(_0x537733._0x452d53,_0x537733._0x2cfb4,_0x537733._0x6d02d1,_0x537733._0x2b7099)]=new OpenAiModel({'apiKey':_0x52c434['apiKey'],'baseUrl':_0x477601,'fetch':_0x52c434[_0x1c1f0b(_0x537733._0x4dfb8b,0x25e,_0x537733._0x5c5593,0x3f2)],'headerResolver':_0x52c434['headerResolver'],'maxTokens':this[_0x1ecdfc(0x2a9,_0x537733._0x194854,0x325,_0x537733._0x19ea76)],'model':this[_0x1ecdfc(0x3c9,_0x537733._0x1b6fbb,_0x537733._0x320200,0x2e5)],'reasoning':_0x52c434[_0x1ecdfc(0x2a3,0x280,0x335,0x29f)],'providerSessionResolver':_0x52c434[_0x1c1f0b(0x452,0x302,0x390,_0x537733._0x194854)],'requestMutators':_0x52c434[_0x1ecdfc(0x2ed,0x3c0,0x37f,0x456)],'webSocketFactory':_0x52c434['webSocketFactory']});}['getAnthropicDelegate'](){const _0x5018a9={_0x5eaf81:0xc9,_0x87f94e:0x2f,_0x2e2166:0xae,_0x3c15d2:0x9b,_0x4c9cf8:0x18,_0xdacbfe:0xe3},_0x481826={_0x5b00fe:0x198},_0x1b509f={_0x2116f3:0xf1};if(!this[_0x42f29b(-_0x5018a9._0x5eaf81,0x12,-0xd0,-0x18e)])throw new Error(_0x42f29b(-_0x5018a9._0x87f94e,0x88,-0xf4,_0x5018a9._0x2e2166)+this[_0x4f26f9(-0x2f,_0x5018a9._0x3c15d2,-_0x5018a9._0x4c9cf8,-0x8d)]);function _0x42f29b(_0x29091e,_0x9cf435,_0x1f6958,_0x248436){return _0x51d0c0(_0x29091e-_0x1b509f._0x2116f3,_0x9cf435-0xba,_0x29091e- -0x674,_0x1f6958);}function _0x4f26f9(_0xa2a477,_0x119f05,_0x5d40ac,_0x1ed151){return _0x55b3f6(_0xa2a477-0xaf,_0x5d40ac- -0x21d,_0xa2a477,_0x1ed151-_0x481826._0x5b00fe);}return this[_0x4f26f9(0x71,-_0x5018a9._0xdacbfe,0x0,-0x24)];}[_0x55b3f6(0x290,0x222,0x2b6,0x27f)](){const _0x354451={_0x251a7a:0xc,_0x360770:0xa0,_0x3750c7:0xcc,_0x45cb80:0xaf,_0x39d267:0xc3,_0x427c00:0x9c,_0x433b2c:0x37,_0x5c782b:0x36,_0x8368b:0x26,_0xe5715e:0x74},_0x17a993={_0x2e1384:0x7c},_0x5a2fc8={_0x1ea2e7:0x1c2,_0x309793:0x105};if(!this[_0x3dda16(0x19,-_0x354451._0x251a7a,-_0x354451._0x360770,-_0x354451._0x3750c7)])throw new Error(_0x3dda16(0x11,-_0x354451._0x45cb80,-_0x354451._0x39d267,-0x11a)+this[_0x3dda16(-_0x354451._0x427c00,-_0x354451._0x433b2c,-0xd7,-0x95)]);function _0x3dda16(_0x5b58b9,_0x2c35c3,_0x323d51,_0x296146){return _0x55b3f6(_0x5b58b9-_0x5a2fc8._0x1ea2e7,_0x323d51- -0x2dc,_0x2c35c3,_0x296146-_0x5a2fc8._0x309793);}function _0x9391a1(_0x5939a1,_0x1f74c3,_0x3659cb,_0xe3d0d3){return _0x55b3f6(_0x5939a1-_0x17a993._0x2e1384,_0xe3d0d3- -0x216,_0x5939a1,_0xe3d0d3-0x18f);}return this[_0x9391a1(-_0x354451._0x5c782b,_0x354451._0x8368b,-_0x354451._0xe5715e,0x26)];}['complete'](_0x4eff6a,_0x4667d3){const _0xc43563={_0x2a8b79:0x3b4,_0x43dc2f:0x23b,_0x563895:0x144,_0x2dc39:0x16f,_0xad7ff0:0xfd,_0x2926dc:0x124,_0x518955:0x11e,_0x5010a0:0x3f1,_0x3f9083:0x362,_0x113a63:0x2e3,_0xea7859:0x354,_0x136bd2:0x225,_0x5bf608:0x1bb,_0x45f1b4:0x1e1,_0x5854e8:0x44d,_0x1c671d:0x3c1},_0x2c73ef={_0x27c9db:0x9a,_0x590270:0x15a,_0x316b89:0x8a};function _0x51ced8(_0x21e9d5,_0x41365b,_0x5d6bc8,_0x32fc38){return _0x55b3f6(_0x21e9d5-_0x2c73ef._0x27c9db,_0x41365b-_0x2c73ef._0x590270,_0x5d6bc8,_0x32fc38-_0x2c73ef._0x316b89);}function _0x4aafb3(_0x36cd23,_0x190daf,_0x414790,_0x4fc60b){return _0x51d0c0(_0x36cd23-0xb2,_0x190daf-0x1d4,_0x190daf- -0x76b,_0x4fc60b);}switch(this[_0x51ced8(0x306,0x35f,_0xc43563._0x2a8b79,0x29b)]){case _0x4aafb3(-0x156,-0x213,-0x17b,-_0xc43563._0x43dc2f):return this[_0x4aafb3(-0xda,-0x188,-0x22e,-_0xc43563._0x563895)]()[_0x4aafb3(-0xde,-0x177,-_0xc43563._0x2dc39,-0x124)](_0x4eff6a,_0x4667d3);case _0x4aafb3(-0x8c,-_0xc43563._0xad7ff0,-_0xc43563._0x2926dc,-_0xc43563._0x518955):return this['getOpenAiDelegate']()[_0x51ced8(0x42a,_0xc43563._0x5010a0,_0xc43563._0x3f9083,0x3fc)](_0x4eff6a,_0x4667d3);case _0x51ced8(_0xc43563._0x113a63,_0xc43563._0xea7859,0x3f3,0x2d0):return this[_0x4aafb3(-_0xc43563._0x136bd2,-_0xc43563._0x5bf608,-0x219,-_0xc43563._0x45f1b4)]()[_0x51ced8(_0xc43563._0x5854e8,0x40f,0x437,_0xc43563._0x1c671d)](_0x4eff6a,_0x4667d3);default:return this['getOpenAiDelegate']()['chatComplete'](_0x4eff6a,_0x4667d3);}}['stream'](_0x24613c,_0x1645fc){const _0x484607={_0x1a36b8:0x4db,_0x2a490a:0x37a,_0xe423e8:0x5df,_0x246193:0x5ca,_0x5b709a:0x159,_0xac49ce:0x10,_0x52673d:0x4a3,_0x5a357e:0x147,_0x154403:0xa4,_0x381105:0xa1,_0x1f5759:0xeb,_0x5e0415:0x92,_0x321a07:0x13a},_0x277cf7={_0x4f6918:0x9c},_0x5a9adf={_0x5c9aef:0xaf};function _0xb672a5(_0x1bb597,_0x252611,_0x512d62,_0x2b17c8){return _0x51d0c0(_0x1bb597-_0x5a9adf._0x5c9aef,_0x252611-0x12e,_0x512d62- -0x11e,_0x252611);}function _0x25cf0c(_0x566248,_0x3a8f88,_0x4e5c9d,_0x21fea3){return _0x51d0c0(_0x566248-0x125,_0x3a8f88-_0x277cf7._0x4f6918,_0x566248- -0x50c,_0x21fea3);}switch(this[_0x25cf0c(0x87,-0x42,-0x2a,-0x59)]){case _0xb672a5(_0x484607._0x1a36b8,0x4d4,0x43a,0x361):return this['getAnthropicDelegate']()[_0xb672a5(_0x484607._0x2a490a,0x459,0x42a,0x504)](_0x24613c,_0x1645fc);case _0xb672a5(_0x484607._0xe423e8,0x478,0x550,_0x484607._0x246193):return this[_0x25cf0c(0xa4,_0x484607._0x5b709a,_0x484607._0xac49ce,0x10c)]()[_0xb672a5(_0x484607._0x52673d,0x4f6,0x51c,0x560)](_0x24613c,_0x1645fc);case _0x25cf0c(0x7c,-0x65,_0x484607._0x5a357e,0x161):return this['getOpenAiDelegate']()['responseSocketStream'](_0x24613c,_0x1645fc);default:return this[_0x25cf0c(_0x484607._0x154403,-0x18,_0x484607._0x381105,0xbf)]()[_0x25cf0c(_0x484607._0x1f5759,0x17a,_0x484607._0x5e0415,_0x484607._0x321a07)](_0x24613c,_0x1645fc);}}};import{randomUUID}from'crypto';var GitHubAccessTokenResolver=class{[_0x51d0c0(0x4ec,0x610,0x574,0x5ba)];[_0x55b3f6(0x126,0x16a,0xdc,0x111)];['fetchImpl'];[_0x51d0c0(0x66c,0x59b,0x5f5,0x6a7)];['tokenExchangeApiVersion'];constructor(_0x41fc65){const _0x32b4de={_0x239a6d:0x123,_0x456fe1:0xf2,_0x4d4e3e:0x160,_0x469a31:0x242,_0x176c65:0x106,_0x1e2632:0x2b9,_0x274292:0x317,_0x100977:0x258,_0x58d821:0x17d,_0x42b9b7:0x180,_0x458117:0xbd,_0x38cdeb:0x467},_0x3c3218={_0x462ebb:0x12e},_0x4e3bb3={_0x110cfb:0x1d0,_0x5c9ae7:0x346,_0x4baa1d:0x6e};this[_0x25d8c8(-0x92,-0x184,-0x160,-_0x32b4de._0x239a6d)]=_0x41fc65[_0x25d8c8(-_0x32b4de._0x456fe1,-0x137,-_0x32b4de._0x4d4e3e,-_0x32b4de._0x469a31)],this[_0x25d8c8(-0x217,-0x12d,-0x1dc,-_0x32b4de._0x176c65)]=trimTrailingSlashes2(_0x41fc65[_0x5b337a(0x3a5,_0x32b4de._0x1e2632,_0x32b4de._0x274292,_0x32b4de._0x100977)]),this[_0x25d8c8(-0x220,-0x1ee,-_0x32b4de._0x58d821,-_0x32b4de._0x42b9b7)]=_0x41fc65[_0x25d8c8(-0x134,-0xd0,-0x128,-_0x32b4de._0x458117)],this[_0x5b337a(_0x32b4de._0x38cdeb,0x4d1,0x414,0x436)]=trimTrailingSlashes2(_0x41fc65['githubApiUrl']);function _0x25d8c8(_0x5c28eb,_0x3e123a,_0x5029dd,_0x260690){return _0x55b3f6(_0x5c28eb-_0x4e3bb3._0x110cfb,_0x5029dd- -_0x4e3bb3._0x5c9ae7,_0x3e123a,_0x260690-_0x4e3bb3._0x4baa1d);}function _0x5b337a(_0x25c7cc,_0x27ee52,_0x4c6559,_0x5e5545){return _0x55b3f6(_0x25c7cc-0x8b,_0x4c6559-0x1ad,_0x25c7cc,_0x5e5545-_0x3c3218._0x462ebb);}this['tokenExchangeApiVersion']=_0x41fc65['tokenExchangeApiVersion'];}async['resolve'](_0x4822f1){const _0x51feb9={_0xc6eb04:0x147,_0x32958d:0x11d,_0x4b5c6d:0x159,_0x2c1942:0xb4,_0x472926:0xfd,_0x2bf5c9:0xaf,_0x487396:0x3d,_0x2a4993:0xd3,_0x276f55:0x1be,_0x292aca:0x200,_0x44fa0b:0x188,_0x32bd58:0x15c,_0x5e3189:0x178,_0x53c5f4:0x156,_0x154058:0x131,_0x51fd5c:0x7c,_0x4bea01:0x2d5,_0x466e66:0x265,_0x467873:0x8d,_0x3e1e94:0xfa,_0x1b64bb:0x17e,_0x10dbd5:0x1ed,_0x379066:0x18c,_0x32288a:0x1d6,_0x3d94a1:0x224,_0x148041:0x4e,_0x56902d:0xd1,_0x5f3050:0xbe,_0x157b97:0x88,_0x58e073:0xfa,_0x58b540:0x99,_0x58911b:0xe8,_0x5977e6:0x11b,_0x572cfb:0xc8,_0x33cda9:0x81,_0xd8d014:0x35,_0x10ae3f:0xc9,_0x480ff9:0x1f,_0x2849bc:0x56,_0x34a65d:0x9d,_0x5ad12e:0x0,_0x24a2f1:0xf3,_0x64a57f:0x7e,_0x19521d:0x5d,_0x3f13db:0x17c},_0x3ddfef={_0x139d66:0xe6},_0x3e6dc8={_0x1b3ac9:0x1dd},_0x464a27=await this[_0x4e2d2c(0x1ac,_0x51feb9._0xc6eb04,_0x51feb9._0x32958d,0x10d)](this[_0x3e876a(_0x51feb9._0x4b5c6d,_0x51feb9._0x2c1942,0x51,_0x51feb9._0x472926)]+_0x3e876a(_0x51feb9._0x2bf5c9,_0x51feb9._0x487396,_0x51feb9._0x2a4993,0xc5),{'method':'GET','headers':new Headers({'accept':_0x3e876a(_0x51feb9._0x276f55,_0x51feb9._0x292aca,_0x51feb9._0x44fa0b,0x15e),'authorization':_0x4e2d2c(_0x51feb9._0x32bd58,_0x51feb9._0x5e3189,0xfb,0x8f)+this[_0x3e876a(_0x51feb9._0x53c5f4,0xfb,_0x51feb9._0x154058,_0x51feb9._0x51fd5c)],'editor-version':_0x4e2d2c(_0x51feb9._0x4bea01,_0x51feb9._0x466e66,0x227,0x180),'user-agent':_0x3e876a(-0xa8,0xfa,-0x74,0x3f),'x-github-api-version':this[_0x3e876a(_0x51feb9._0x467873,_0x51feb9._0x3e1e94,_0x51feb9._0x1b64bb,0xb9)]}),'signal':_0x4822f1});if(!_0x464a27['ok'])return{'credential':{'kind':_0x4e2d2c(_0x51feb9._0x10dbd5,_0x51feb9._0x379066,_0x51feb9._0x32288a,_0x51feb9._0x3d94a1),'value':this[_0x4e2d2c(_0x51feb9._0x32bd58,0x15d,0x13a,0x191)]},'endpoints':{'api':this[_0x4e2d2c(_0x51feb9._0x148041,_0x51feb9._0x56902d,_0x51feb9._0x5f3050,0x171)]}};function _0x4e2d2c(_0x2d6cfe,_0x203bca,_0x275506,_0x2f6c1c){return _0x51d0c0(_0x2d6cfe-_0x3e6dc8._0x1b3ac9,_0x203bca-0xd1,_0x275506- -0x43a,_0x203bca);}const _0x211aca=await _0x464a27[_0x4e2d2c(0x15b,0xa3,0xa5,_0x51feb9._0x157b97)]();function _0x3e876a(_0x3b3892,_0x12c60d,_0xf7d4fd,_0x18f792){return _0x55b3f6(_0x3b3892-_0x3ddfef._0x139d66,_0x18f792- -0x16a,_0x12c60d,_0x18f792-0x48);}return{'credential':{'kind':_0x3e876a(_0x51feb9._0x32958d,_0x51feb9._0x58e073,0xca,0xda),'value':_0x211aca[_0x4e2d2c(_0x51feb9._0x58b540,_0x51feb9._0x58911b,0x111,0x1aa)]??this['accessToken']},'endpoints':{'api':_0x211aca[_0x3e876a(_0x51feb9._0x5977e6,_0x51feb9._0x572cfb,-_0x51feb9._0x33cda9,_0x51feb9._0xd8d014)]?.[_0x3e876a(_0x51feb9._0x10ae3f,0x4d,-_0x51feb9._0x480ff9,_0x51feb9._0x2849bc)]??this[_0x3e876a(0xb5,-_0x51feb9._0x34a65d,0x84,_0x51feb9._0x5ad12e)],'originTracker':_0x211aca[_0x4e2d2c(0x88,0x15,_0x51feb9._0x24a2f1,0x146)]?.['origin-tracker'],'proxy':_0x211aca[_0x3e876a(-_0x51feb9._0x64a57f,-_0x51feb9._0x19521d,-0x3f,_0x51feb9._0xd8d014)]?.[_0x4e2d2c(0xdd,0x5d,0x83,0x168)],'telemetry':_0x211aca[_0x4e2d2c(_0x51feb9._0x3f13db,0xbd,0xf3,_0x51feb9._0x2849bc)]?.['telemetry']}};}};function trimTrailingSlashes2(_0xb40d2f){const _0x1a482e={_0x30b8ea:0x287,_0x485e6b:0x29b,_0x431c74:0x1f1},_0x28cdf6={_0x7e9b74:0x15a,_0x1aaa86:0x184,_0x1ca1bf:0x2ec};function _0x592c1a(_0x1eb1c7,_0x41c539,_0xb77bbf,_0x53a26b){return _0x51d0c0(_0x1eb1c7-_0x28cdf6._0x7e9b74,_0x41c539-_0x28cdf6._0x1aaa86,_0x41c539- -_0x28cdf6._0x1ca1bf,_0x53a26b);}return _0xb40d2f[_0x592c1a(0x1e2,_0x1a482e._0x30b8ea,_0x1a482e._0x485e6b,_0x1a482e._0x431c74)](/\/+$/,'');}function createModelInfo(_0x32e74a){const _0x2666bb={_0x10b8b5:0x5ef,_0x47c268:0x47d,_0x3a8389:0x4eb,_0x5df2e2:0x3d3,_0x162177:0x41f,_0x2fcccc:0x28,_0x3f7173:0x58,_0x489caf:0x32,_0x26225f:0x67,_0x16dd3c:0x450,_0x5d6f36:0x529,_0x4ca554:0x4ef,_0x2fcad9:0x135,_0x33349e:0xa0,_0x25d6b0:0x7b,_0x16d7fe:0x3e0,_0x5638f2:0x20,_0x68d437:0xfe},_0x5ee3a6={_0x1a230e:0x2d,_0x579abc:0x12b},_0x1853cc={_0x23c76f:0xe1,_0x363fa9:0x12a},_0x590d2f=_0x32e74a[_0x20e5c4(_0x2666bb._0x10b8b5,0x521,_0x2666bb._0x47c268,0x5c6)]??_0x32e74a[_0x20e5c4(_0x2666bb._0x3a8389,0x41b,_0x2666bb._0x5df2e2,_0x2666bb._0x162177)],_0x64899b=_0x32e74a[_0x1b9706(-_0x2666bb._0x2fcccc,-_0x2666bb._0x3f7173,-_0x2666bb._0x489caf,-_0x2666bb._0x26225f)]?.['limits']?.[_0x20e5c4(_0x2666bb._0x16dd3c,_0x2666bb._0x5d6f36,_0x2666bb._0x4ca554,0x587)];function _0x1b9706(_0x505c7c,_0x182774,_0x165220,_0xd4c6f1){return _0x51d0c0(_0x505c7c-_0x1853cc._0x23c76f,_0x182774-_0x1853cc._0x363fa9,_0x182774- -0x664,_0xd4c6f1);}const _0x175b5f=_0x32e74a[_0x1b9706(-_0x2666bb._0x2fcad9,-0x58,-0xd0,-0x34)]?.[_0x1b9706(-_0x2666bb._0x33349e,-0x124,-0x64,-_0x2666bb._0x25d6b0)]?.[_0x20e5c4(0x37a,0x3c2,_0x2666bb._0x16d7fe,0x450)];function _0x20e5c4(_0x38e0a3,_0xee2f20,_0x5a3861,_0x5c9947){return _0x51d0c0(_0x38e0a3-0x1d7,_0xee2f20-_0x5ee3a6._0x1a230e,_0xee2f20- -_0x5ee3a6._0x579abc,_0x38e0a3);}const _0x3a926b=_0x64899b!==void 0x0||_0x175b5f!==void 0x0?{..._0x64899b!==void 0x0?{'contextWindow':_0x64899b}:{},..._0x175b5f!==void 0x0?{'maxOutput':_0x175b5f}:{}}:void 0x0;return{'id':_0x32e74a['id'],'name':_0x32e74a[_0x1b9706(0x54,-_0x2666bb._0x5638f2,0x5,-_0x2666bb._0x68d437)]??_0x32e74a['id'],..._0x3a926b?{'limits':_0x3a926b}:{},..._0x590d2f?{'supportedEndpoints':_0x590d2f}:{}};}function deduplicateModels(_0x7318fd){const _0x363f54={_0x419468:0x332,_0x1f0b56:0x3ac,_0x411bbb:0x321,_0x420d2d:0x409},_0x455c92={_0x2a2a23:0x118};function _0x4071b3(_0x2cb6fe,_0x4cb805,_0x14a0a3,_0x575f9d){return _0x55b3f6(_0x2cb6fe-_0x455c92._0x2a2a23,_0x2cb6fe-0x1ee,_0x4cb805,_0x575f9d-0x1ec);}function _0x469f33(_0x221e52,_0x41a8e7,_0x250050,_0x97c80){return _0x51d0c0(_0x221e52-0x2f,_0x41a8e7-0xfa,_0x221e52- -0x141,_0x250050);}const _0x194e33=new Map();for(const _0x3973f4 of _0x7318fd){!_0x194e33[_0x469f33(0x3fb,0x48d,0x4a3,_0x363f54._0x419468)](_0x3973f4['id'])&&_0x194e33[_0x469f33(0x3d6,_0x363f54._0x1f0b56,_0x363f54._0x411bbb,0x407)](_0x3973f4['id'],_0x3973f4);}return Array[_0x4071b3(0x41c,0x418,0x45f,_0x363f54._0x420d2d)](_0x194e33['values']());}function hasUserPromptContent(_0x4c2b45){const _0xd456d0={_0x9c5cda:0xee,_0x5c538f:0x58f,_0x44b20d:0x60e,_0x23da40:0x5ac,_0x14b6ef:0x69,_0x4d8a9b:0xb6,_0x12253b:0x29,_0x2cfd54:0xee},_0x20b7d7={_0x25938e:0x167,_0x3170aa:0x17c,_0x56852f:0x75,_0x499d11:0x24e,_0x4974ea:0x216,_0xefbdf4:0x192,_0x5edc8f:0x143,_0x1d2f19:0xf5,_0x4319b5:0xfc,_0x35bd68:0x66,_0x552c06:0x27f,_0x310e4d:0x297,_0x42a03b:0x78,_0x4051b7:0x1b2,_0x1c587a:0x74,_0x293c55:0x13,_0x3ff82b:0xd9},_0x20823d={_0x5a6239:0x179,_0x12aa97:0x1b3},_0x293575={_0x442c11:0x15d};function _0x19cfe2(_0x3a990e,_0x5b6d6f,_0x1d123b,_0x1e3c01){return _0x51d0c0(_0x3a990e-0x139,_0x5b6d6f-_0x293575._0x442c11,_0x1e3c01- -0x5c4,_0x1d123b);}if(typeof _0x4c2b45===_0x19cfe2(0x5f,_0xd456d0._0x9c5cda,0x126,0x87))return _0x4c2b45[_0x87cd37(0x4ce,_0xd456d0._0x5c538f,_0xd456d0._0x44b20d,_0xd456d0._0x23da40)]()[_0x19cfe2(0x8a,0x58,-0x5,_0xd456d0._0x14b6ef)]>0x0;function _0x87cd37(_0xddab10,_0x421deb,_0x4d1868,_0x51aaff){return _0x51d0c0(_0xddab10-0x186,_0x421deb-0xed,_0x421deb-0x27,_0x4d1868);}if(!Array[_0x19cfe2(-_0xd456d0._0x4d8a9b,-0x8b,0x55,_0xd456d0._0x12253b)](_0x4c2b45))return![];return _0x4c2b45[_0x19cfe2(-_0xd456d0._0x2cfd54,0x1f,-0xaf,-0x2b)](_0x131d9b=>{const _0x430b77={_0x5b1d2d:0x135};if(!_0x131d9b||typeof _0x131d9b!==_0x45d1ca(0x79,_0x20b7d7._0x25938e,_0x20b7d7._0x3170aa,0xf6))return![];function _0x45d1ca(_0x320fea,_0x144c89,_0x3933ce,_0x4c93cb){return _0x87cd37(_0x320fea-_0x20823d._0x5a6239,_0x4c93cb- -0x57b,_0x320fea,_0x4c93cb-_0x20823d._0x12aa97);}function _0x2a3b12(_0x6961ad,_0x2cd7df,_0x2eb400,_0x597bf4){return _0x87cd37(_0x6961ad-_0x430b77._0x5b1d2d,_0x2eb400- -0x438,_0x2cd7df,_0x597bf4-0x4f);}const _0x1a45f3=_0x131d9b;return(_0x1a45f3[_0x45d1ca(0xdc,_0x20b7d7._0x56852f,0x6f,0x4f)]==='input_text'||_0x1a45f3[_0x2a3b12(_0x20b7d7._0x499d11,_0x20b7d7._0x4974ea,_0x20b7d7._0xefbdf4,0xd5)]===_0x2a3b12(_0x20b7d7._0x5edc8f,_0x20b7d7._0x1d2f19,_0x20b7d7._0x4319b5,_0x20b7d7._0x35bd68))&&typeof _0x1a45f3[_0x2a3b12(0x88,0x3d,0xfc,0x1af)]===_0x2a3b12(_0x20b7d7._0x552c06,0x23b,0x23a,_0x20b7d7._0x310e4d)&&_0x1a45f3['text'][_0x45d1ca(-0x52,0xd7,_0x20b7d7._0x42a03b,0x14)]()[_0x45d1ca(_0x20b7d7._0x4051b7,_0x20b7d7._0x1c587a,_0x20b7d7._0x293c55,_0x20b7d7._0x3ff82b)]>0x0;});}function _isUserPromptEntry(_0x3eedb3){const _0x15b2f7={_0x5ddb37:0x59,_0x21635f:0x10b,_0x3c4fee:0x2a8,_0x1f5697:0x2a5,_0x4b7ba7:0x21b,_0x2b8c9c:0xcb,_0x48328e:0x49,_0x3114de:0x3f},_0x546137={_0x4b75b6:0x121};function _0x1a2bf3(_0x199ad5,_0x36918b,_0xecef47,_0x26b47d){return _0x51d0c0(_0x199ad5-0xb8,_0x36918b-0xa6,_0x36918b- -0x5f1,_0x26b47d);}if(!_0x3eedb3||typeof _0x3eedb3!==_0x1a2bf3(-0x5a,_0x15b2f7._0x5ddb37,0x3a,_0x15b2f7._0x21635f))return![];const _0x20ee01=_0x3eedb3;function _0x86e741(_0xabed8f,_0x558207,_0xa9c04,_0x537695){return _0x55b3f6(_0xabed8f-_0x546137._0x4b75b6,_0xabed8f-0x9a,_0xa9c04,_0x537695-0x114);}if(_0x20ee01[_0x86e741(_0x15b2f7._0x3c4fee,_0x15b2f7._0x1f5697,_0x15b2f7._0x4b7ba7,0x33d)]!=='user')return![];if(_0x20ee01[_0x86e741(0x2af,0x288,0x35d,0x38b)]!==void 0x0&&_0x20ee01[_0x1a2bf3(-0xf9,-0x4e,-0xe6,-_0x15b2f7._0x2b8c9c)]!==_0x1a2bf3(-_0x15b2f7._0x48328e,0x4c,0x50,_0x15b2f7._0x3114de))return![];return hasUserPromptContent(_0x20ee01['content']);}function determineInitiator(_0x500bdb){const _0x1fb167={_0x1db9bf:0x543,_0x181bb8:0x48c,_0x54a387:0x577,_0x593ed6:0x3c0,_0x4e0054:0x3ea,_0x16b813:0x34f,_0xf7671:0x2fe,_0x5daa76:0x1d1,_0x99e459:0x27f,_0xd45cc2:0x397,_0x3c9284:0x2c8,_0x11e243:0x2bf,_0xc56ed2:0x57c,_0x3abc02:0x473,_0x1e9006:0x48f},_0x2c3108={_0x5f0ed2:0x119,_0x1cec2b:0x287},_0x4eab15={_0x5c1205:0x2c};if(!_0x500bdb||typeof _0x500bdb!==_0x3624ee(_0x1fb167._0x1db9bf,_0x1fb167._0x181bb8,0x5fb,_0x1fb167._0x54a387))return'agent';const _0x2d5f03='messages'in _0x500bdb?_0x500bdb[_0x3624ee(0x418,0x438,0x49a,_0x1fb167._0x593ed6)]:_0x3624ee(_0x1fb167._0x4e0054,0x41a,0x39e,0x35c)in _0x500bdb?_0x500bdb[_0x3624ee(0x3ea,0x31b,0x427,_0x1fb167._0x16b813)]:void 0x0;function _0x5ad1ca(_0x499519,_0x1a207d,_0xb3b274,_0x121ad2){return _0x55b3f6(_0x499519-0xaa,_0x121ad2-0x20,_0x1a207d,_0x121ad2-_0x4eab15._0x5c1205);}if(!Array[_0x5ad1ca(_0x1fb167._0xf7671,0x1d4,_0x1fb167._0x5daa76,_0x1fb167._0x99e459)](_0x2d5f03)||_0x2d5f03['length']===0x0)return'agent';function _0x3624ee(_0x3328b5,_0x4ba515,_0xf410f5,_0x3648f3){return _0x55b3f6(_0x3328b5-_0x2c3108._0x5f0ed2,_0x3328b5-_0x2c3108._0x1cec2b,_0x3648f3,_0x3648f3-0x14d);}return _isUserPromptEntry(_0x2d5f03[_0x2d5f03[_0x5ad1ca(_0x1fb167._0xd45cc2,0x2f4,_0x1fb167._0x3c9284,_0x1fb167._0x11e243)]-0x1])?_0x3624ee(0x558,0x4fd,0x526,_0x1fb167._0xc56ed2):_0x3624ee(_0x1fb167._0x3abc02,0x556,_0x1fb167._0x1e9006,0x3eb);}function isUnsupportedApiForModel(_0x47de1){const _0x591b52={_0x224795:0x1d7};function _0x50189d(_0x2b1507,_0x24d5b6,_0x216e89,_0x4a8bcf){return _0x51d0c0(_0x2b1507-0x1a9,_0x24d5b6-0x52,_0x4a8bcf- -0x3c6,_0x216e89);}return _0x47de1[_0x50189d(0x16f,0xe0,_0x591b52._0x224795,0x14c)]('unsupported_api_for_model');}function createResponseError(_0x5288c4,_0x2b6496){const _0x13579c={_0xe64cd3:0x38c,_0x3f22b2:0x4c8,_0x39538d:0x4cb},_0x3f8862={_0xcd3b04:0x16d},_0x5bb9b1={_0x1d6775:0x2c,_0x52e6eb:0x213,_0x3d7e1d:0x8a};if(_0x5288c4===0x191||_0x5288c4===0x193)return new Error('Authentication\x20failed.\x20Please\x20check\x20your\x20API\x20key.');if(_0x5288c4===0x198||_0x5288c4===0x1ad)return new Error(_0x3662d7(0x2fe,_0x13579c._0xe64cd3,0x371,0x365));function _0x3662d7(_0x2d30fd,_0x56cecc,_0x46c692,_0x1d68b3){return _0x55b3f6(_0x2d30fd-_0x5bb9b1._0x1d6775,_0x1d68b3-_0x5bb9b1._0x52e6eb,_0x2d30fd,_0x1d68b3-_0x5bb9b1._0x3d7e1d);}if(_0x5288c4===0x190)return new Error(_0x3662d7(0x48e,0x573,_0x13579c._0x3f22b2,_0x13579c._0x39538d)+_0x2b6496);function _0x122cd0(_0x5b333c,_0x3e241c,_0x4c1dec,_0x33b97c){return _0x51d0c0(_0x5b333c-0x16d,_0x3e241c-_0x3f8862._0xcd3b04,_0x33b97c- -0x283,_0x4c1dec);}return new Error(_0x2b6496||'GitHub\x20API\x20error\x20'+_0x5288c4);}var GitHubModel=class extends OpenAiModel{[_0x55b3f6(0x242,0x21d,0x2db,0x247)];[_0x51d0c0(0x650,0x55b,0x628,0x640)]=new Map();['surface'];constructor(_0x321d8b={}){const _0x1715ca={_0x11588a:0x3e2,_0x1a38ab:0x383,_0x424779:0x382,_0x4bb423:0x3b1,_0x18555f:0x405,_0xb452f2:0x41b,_0x349b97:0x65,_0x179de2:0x181,_0x3138c3:0x4a,_0x1f18ef:0x336,_0x5b3691:0x3c9,_0x3da63b:0xc,_0xd34818:0x20,_0x1ce7be:0x3c0,_0x28d27d:0x3f0,_0x380f1c:0x316,_0x4fa886:0xb,_0x1f41c2:0x14b,_0x561431:0x70,_0x486791:0x3b4,_0x3c4fc1:0x337,_0x672cf:0x120,_0x82551a:0xda,_0x11f8b3:0xa3,_0x1f61eb:0x16,_0x3a75ea:0x330,_0x280365:0x2ad,_0x564cbf:0x2b5,_0x37571c:0x3b6,_0x8638c6:0xb,_0x3e26f1:0x11c,_0x52aa59:0x375,_0xd33765:0x3c0,_0x342626:0x368,_0xbfc52f:0xb2,_0xd9e26f:0xfb},_0x149cf6={_0xc7e02e:0x1c3},_0x4df3a8={_0x138afb:0x1b9,_0x4fdaa1:0xd},_0x360a95=trimTrailingSlashes2(_0x321d8b['baseUrl']??'https://api.individual.githubcopilot.com');function _0x40e348(_0x4bb97b,_0x1dbdce,_0x1eb7f0,_0x3d0fac){return _0x55b3f6(_0x4bb97b-0x42,_0x1eb7f0- -_0x4df3a8._0x138afb,_0x1dbdce,_0x3d0fac-_0x4df3a8._0x4fdaa1);}const _0x3a8794=_0x321d8b[_0x45f5e2(0x331,_0x1715ca._0x11588a,_0x1715ca._0x1a38ab,_0x1715ca._0x424779)]??globalThis['fetch'];function _0x45f5e2(_0xb1d0ec,_0x45faa6,_0x477d12,_0x1a7989){return _0x51d0c0(_0xb1d0ec-_0x149cf6._0xc7e02e,_0x45faa6-0x80,_0xb1d0ec- -0x27b,_0x1a7989);}const _0x25e3e6=_0x321d8b[_0x45f5e2(_0x1715ca._0x4bb423,0x2e4,0x2e9,0x33a)]??(_0x321d8b['accessToken']?new GitHubAccessTokenResolver({'accessToken':_0x321d8b['accessToken'],'baseUrl':_0x360a95,'fetch':_0x3a8794,'githubApiUrl':_0x321d8b[_0x45f5e2(0x37a,_0x1715ca._0x18555f,0x2dd,_0x1715ca._0xb452f2)]??_0x40e348(-_0x1715ca._0x349b97,-_0x1715ca._0x179de2,-0x9c,-_0x1715ca._0x3138c3),'tokenExchangeApiVersion':_0x321d8b[_0x45f5e2(_0x1715ca._0x1f18ef,0x289,0x406,_0x1715ca._0x5b3691)]??_0x40e348(0xb8,-0x96,_0x1715ca._0x3da63b,-_0x1715ca._0xd34818)}):void 0x0),_0x5f0e52=_0x321d8b[_0x45f5e2(_0x1715ca._0x1ce7be,_0x1715ca._0x28d27d,0x30d,_0x1715ca._0x380f1c)]??_0x45f5e2(0x384,0x459,0x364,0x3fb),_0xae47da=_0x321d8b[_0x40e348(_0x1715ca._0x4fa886,_0x1715ca._0x1f41c2,_0x1715ca._0x561431,-0x19)]??_0x45f5e2(_0x1715ca._0x486791,0x419,_0x1715ca._0x3c4fc1,0x3a3),_0x4c51e2=({body:_0x1d0f37})=>{return{'editor-plugin-version':_0xae47da,'editor-version':_0x5f0e52,'x-initiator':determineInitiator(_0x1d0f37),'x-request-id':randomUUID()};},_0xa29bfe={'apiKey':_0x321d8b['apiKey'],'baseUrl':_0x360a95,'fetch':_0x3a8794,'maxTokens':_0x321d8b[_0x45f5e2(0x314,0x30a,0x32d,0x337)],'model':_0x321d8b['model'],'reasoning':_0x321d8b['reasoning'],'providerSessionResolver':_0x25e3e6,'requestMutators':_0x321d8b[_0x40e348(0x196,_0x1715ca._0x672cf,_0x1715ca._0x82551a,0x57)],'headerResolver':_0x4c51e2};super(_0xa29bfe),this['surface']=_0x321d8b[_0x45f5e2(0x318,0x38b,0x3a3,0x3af)]??_0x40e348(0x3f,_0x1715ca._0x11f8b3,0x3e,_0x1715ca._0x1f61eb),this[_0x45f5e2(_0x1715ca._0x3a75ea,_0x1715ca._0x280365,_0x1715ca._0x564cbf,_0x1715ca._0x37571c)]=new AnthropicModel({'apiKey':_0x321d8b[_0x40e348(-_0x1715ca._0x8638c6,-_0x1715ca._0x3e26f1,-0x79,0x51)],'authScheme':_0x45f5e2(_0x1715ca._0x28d27d,_0x1715ca._0x52aa59,_0x1715ca._0xd33765,_0x1715ca._0x342626),'baseUrl':_0x360a95,'fetch':_0x3a8794,'headerResolver':_0x4c51e2,'maxTokens':_0x321d8b['maxTokens'],'model':_0x321d8b['model'],'reasoning':_0x321d8b['reasoning'],'providerSessionResolver':_0x25e3e6,'requestMutators':_0x321d8b[_0x40e348(_0x1715ca._0xbfc52f,_0x1715ca._0xd9e26f,0xda,0x131)]});}[_0x51d0c0(0x42e,0x4f7,0x4c1,0x4c0)](){const _0x5f16d5={_0x89688b:0x45c,_0x8d8592:0x3a9,_0x3daf18:0x3bd},_0x5a5b3b={_0x1c2f5f:0x1b0,_0x3017da:0x179};function _0x1ad0a0(_0x3db6bf,_0xdfe55c,_0x13e6a1,_0x2afd40){return _0x51d0c0(_0x3db6bf-_0x5a5b3b._0x1c2f5f,_0xdfe55c-_0x5a5b3b._0x3017da,_0x3db6bf- -0x149,_0x2afd40);}return new Error(_0x1ad0a0(_0x5f16d5._0x89688b,0x4ca,_0x5f16d5._0x8d8592,_0x5f16d5._0x3daf18));}[_0x51d0c0(0x536,0x6bf,0x5e1,0x550)](_0x55e51f){const _0x383d6e={_0x3f505b:0x598,_0x3449f8:0x4c8,_0x1115f3:0x4f5,_0x329713:0x344,_0x53eb4e:0x37c,_0x725bb8:0x3db,_0x1f071a:0x431,_0x30560a:0x4ef},_0x5f4f4b={_0x23c019:0xdc},_0x3f36f0={_0x591be0:0x90},_0x2971dc=this[_0x1e75d2(_0x383d6e._0x3f505b,0x65e,_0x383d6e._0x3449f8,0x5ac)][_0x1e75d2(0x4d4,0x446,0x505,_0x383d6e._0x1115f3)](_0x55e51f);if(!_0x2971dc)return![];function _0x1e75d2(_0x4b3882,_0x3a64eb,_0x49d8a2,_0x251397){return _0x51d0c0(_0x4b3882-0x149,_0x3a64eb-0x124,_0x4b3882- -_0x3f36f0._0x591be0,_0x3a64eb);}function _0x4cc55d(_0x590516,_0x377dac,_0x5c2df1,_0x4e1a3e){return _0x55b3f6(_0x590516-_0x5f4f4b._0x23c019,_0x4e1a3e-0x26e,_0x5c2df1,_0x4e1a3e-0x118);}return!_0x2971dc['includes']('/chat/completions')&&_0x2971dc[_0x4cc55d(_0x383d6e._0x329713,_0x383d6e._0x53eb4e,_0x383d6e._0x725bb8,0x3f2)](_0x4cc55d(0x49d,_0x383d6e._0x1f071a,0x55a,_0x383d6e._0x30560a));}[_0x51d0c0(0x563,0x56a,0x584,0x59d)](_0x3227a8){const _0x5e1382={_0x8fcb78:0x7c,_0x397227:0xd1,_0x1a1585:0x7b,_0x39c7ed:0x4d,_0x41db5c:0xa2,_0x28308c:0x54d,_0x2ee352:0x5f4,_0x3921b8:0x6a2,_0x33c59b:0x4ec},_0x5329bf={_0x2ed23f:0x9c,_0x1416e4:0x3b},_0x1de16d={_0x4006f8:0x118};function _0x197890(_0x34f7be,_0x16a408,_0x59731b,_0x2e12cd){return _0x51d0c0(_0x34f7be-_0x1de16d._0x4006f8,_0x16a408-0xed,_0x16a408- -0x5ac,_0x34f7be);}const _0x1c4ae6=this[_0x197890(0x58,_0x5e1382._0x8fcb78,_0x5e1382._0x397227,_0x5e1382._0x1a1585)]['get'](_0x3227a8[_0x197890(_0x5e1382._0x39c7ed,-0x1e,-_0x5e1382._0x41db5c,0x48)]);function _0x2cffe3(_0x175fa8,_0x25f654,_0x3cffc2,_0x325807){return _0x51d0c0(_0x175fa8-0x1ba,_0x25f654-_0x5329bf._0x2ed23f,_0x175fa8-_0x5329bf._0x1416e4,_0x3cffc2);}if(!_0x1c4ae6)return![];if(resolveOpenAiReasoningConfig(_0x3227a8['reasoning']))return _0x1c4ae6[_0x2cffe3(_0x5e1382._0x28308c,0x498,0x564,0x4ca)](_0x2cffe3(0x64a,_0x5e1382._0x2ee352,0x61d,_0x5e1382._0x3921b8));return this['usesResponsesApi'](_0x3227a8[_0x2cffe3(0x5c9,0x5b5,_0x5e1382._0x33c59b,0x570)]);}[_0x51d0c0(0x5b3,0x53a,0x550,0x5e3)](_0x6e5266){const _0x7fc024={_0x551b87:0x358,_0x2284cd:0x3e4,_0x5ba3c0:0x34c,_0x1e16fc:0x1f7,_0x2fb3db:0x23b,_0x486f3d:0x114},_0x199e44={_0x37d2e0:0x18c,_0x4e7bf7:0xb2},_0x3a51d1={_0x205351:0x1aa,_0x4c2c24:0x13,_0x1408d2:0x723};function _0xe9201e(_0x247634,_0x7c685c,_0x46b4d3,_0x440d2f){return _0x51d0c0(_0x247634-_0x3a51d1._0x205351,_0x7c685c-_0x3a51d1._0x4c2c24,_0x247634- -_0x3a51d1._0x1408d2,_0x440d2f);}function _0xd32e3a(_0x22278d,_0x3ae6d9,_0x72ff60,_0x2fd1df){return _0x55b3f6(_0x22278d-_0x199e44._0x37d2e0,_0x2fd1df-_0x199e44._0x4e7bf7,_0x3ae6d9,_0x2fd1df-0x99);}this[_0xd32e3a(_0x7fc024._0x551b87,0x291,_0x7fc024._0x2284cd,_0x7fc024._0x5ba3c0)][_0xd32e3a(0x2de,0x25f,_0x7fc024._0x1e16fc,_0x7fc024._0x2fb3db)](_0x6e5266,[_0xe9201e(-_0x7fc024._0x486f3d,-0x1f5,-0xc3,-0x179)]);}[_0x51d0c0(0x65e,0x55b,0x61f,0x6f4)](_0x28c9b9){const _0x289dc3={_0x3a70ab:0x16f,_0x4caf33:0x213,_0x5d8348:0x274,_0x5c5833:0x1ea,_0x2e7263:0x164,_0x370d82:0x20c},_0x4152ae={_0x243807:0x431},_0x4327e7={_0x39bb57:0x38};if(_0x28c9b9 instanceof OpenAiApiError)return createResponseError(_0x28c9b9[_0x381e95(_0x289dc3._0x3a70ab,_0x289dc3._0x4caf33,0x1e9,_0x289dc3._0x5d8348)],_0x28c9b9[_0x1e6096(0x472,0x45b,0x4d0,0x3ce)]||_0x28c9b9[_0x381e95(_0x289dc3._0x5c5833,_0x289dc3._0x2e7263,_0x289dc3._0x370d82,0x224)]);function _0x1e6096(_0x2243aa,_0x28993f,_0x3cfdad,_0x237425){return _0x51d0c0(_0x2243aa-0x188,_0x28993f-0xef,_0x2243aa- -_0x4327e7._0x39bb57,_0x3cfdad);}function _0x381e95(_0x3d1b70,_0x5dba17,_0xf64043,_0x487c6a){return _0x51d0c0(_0x3d1b70-0x3d,_0x5dba17-0x12d,_0xf64043- -_0x4152ae._0x243807,_0x3d1b70);}return _0x28c9b9;}[_0x55b3f6(0x109,0x170,0xac,0x138)](_0x15a5a9,_0xa67d92){const _0x2d407e={_0x336637:0x150,_0x174652:0x189,_0x44d6a5:0x1e7,_0x37ad2b:0x244,_0x16005a:0x204,_0x140e60:0xc,_0x21cc93:0x58,_0x4e76f5:0x11f,_0x56e20c:0xd1,_0x505d30:0x77,_0x17281d:0x252,_0x532efb:0x280,_0x1e493d:0x2da,_0x1d338d:0x278,_0xa33689:0x27e,_0x23249e:0x326,_0x4abcd0:0x3f,_0x2b4d03:0x22,_0xc289a7:0x2c,_0x1e4717:0xa7,_0x38dcb9:0x17a,_0x24fd7d:0x122,_0x3fa1c6:0x258},_0x581d71={_0x40e246:0xd7,_0x5a963b:0x20e},_0x4f8ea3={_0x8da955:0x1c1,_0x1b3e8f:0x1dd};function _0x160c02(_0x494d08,_0x2f84f8,_0xaf42b6,_0x228e1b){return _0x55b3f6(_0x494d08-_0x4f8ea3._0x8da955,_0xaf42b6- -0x19,_0x228e1b,_0x228e1b-_0x4f8ea3._0x1b3e8f);}function _0x5bf6ba(_0x19630b,_0x463666,_0x18a6b3,_0xc95222){return _0x55b3f6(_0x19630b-_0x581d71._0x40e246,_0x18a6b3- -_0x581d71._0x5a963b,_0x19630b,_0xc95222-0x67);}switch(this[_0x160c02(_0x2d407e._0x336637,0x105,0x1ec,_0x2d407e._0x174652)]){case _0x160c02(0x18e,0x12e,0x1b1,_0x2d407e._0x44d6a5):return this[_0x160c02(_0x2d407e._0x37ad2b,0x126,_0x2d407e._0x16005a,0x16c)][_0x5bf6ba(-0x54,_0x2d407e._0x140e60,_0x2d407e._0x21cc93,0x57)](_0x15a5a9,_0xa67d92);case _0x5bf6ba(_0x2d407e._0x4e76f5,_0x2d407e._0x56e20c,0x50,_0x2d407e._0x505d30):return this[_0x160c02(0x121,_0x2d407e._0x17281d,0x1e2,_0x2d407e._0x532efb)](_0x15a5a9,_0xa67d92);case'openai-responses':return this[_0x160c02(_0x2d407e._0x1e493d,_0x2d407e._0x1d338d,_0x2d407e._0xa33689,_0x2d407e._0x23249e)](_0x15a5a9,_0xa67d92);case _0x5bf6ba(-0x2b,_0x2d407e._0x4abcd0,-0x14,-0x3a):return this[_0x5bf6ba(_0x2d407e._0x2b4d03,_0x2d407e._0xc289a7,_0x2d407e._0x1e4717,0x35)](_0x15a5a9,_0xa67d92);case _0x160c02(_0x2d407e._0x38dcb9,0x18c,0x1de,0x1f4):return this[_0x5bf6ba(_0x2d407e._0x24fd7d,-0x1f,_0x2d407e._0x21cc93,0x9c)](_0x15a5a9,_0xa67d92);}throw new Error('Unsupported\x20GitHub\x20model\x20surface:\x20'+String(this[_0x160c02(0x16c,0x156,0x1ec,_0x2d407e._0x3fa1c6)]));}['streamViaConfiguredSurface'](_0x30cb4d,_0x26a607){const _0x45c7e5={_0x28b95a:0x15a,_0x2558b8:0xe8,_0x1b505c:0x15f,_0x41b2fc:0xc0,_0x59a0b4:0x16c,_0x1b4ccc:0x1a,_0x4026c0:0x9d,_0x1a768d:0x10f,_0x101975:0xdc,_0x3c4f89:0x181,_0x48516a:0xef,_0x1ef0ca:0x9f,_0x2c4d32:0x124,_0x559f6d:0x1f6,_0x25d41d:0xc9},_0x4da84d={_0x7093c0:0x188,_0x23ce88:0x121,_0x152ff3:0x70a},_0x3d0ca9={_0x668800:0xaa,_0x2b6378:0xdb,_0x25aa43:0x4ab};switch(this[_0x3752dc(_0x45c7e5._0x28b95a,0x1c7,_0x45c7e5._0x2558b8,0x111)]){case'anthropic-messages':return this[_0x5a9a62(-_0x45c7e5._0x1b505c,-_0x45c7e5._0x41b2fc,-_0x45c7e5._0x59a0b4,-0x1a5)][_0x3752dc(-_0x45c7e5._0x1b4ccc,0x5a,_0x45c7e5._0x4026c0,_0x45c7e5._0x1a768d)](_0x30cb4d,_0x26a607);case'openai-chat-completions':return this[_0x3752dc(_0x45c7e5._0x101975,_0x45c7e5._0x3c4f89,0x14c,0x228)](_0x30cb4d,_0x26a607);case'openai-responses':return this['responseStream'](_0x30cb4d,_0x26a607);case'openai-responses-ws':return this[_0x3752dc(-0x2c,-0x1e,0x22,0x22)](_0x30cb4d,_0x26a607);case _0x5a9a62(-0x185,-0x265,-0x248,-0x243):return this[_0x3752dc(_0x45c7e5._0x48516a,0x48,_0x45c7e5._0x4026c0,_0x45c7e5._0x1ef0ca)](_0x30cb4d,_0x26a607);}function _0x3752dc(_0x2c6d72,_0x4eb639,_0x1d90c6,_0x2b7348){return _0x51d0c0(_0x2c6d72-_0x3d0ca9._0x668800,_0x4eb639-_0x3d0ca9._0x2b6378,_0x1d90c6- -_0x3d0ca9._0x25aa43,_0x2c6d72);}function _0x5a9a62(_0x47d33d,_0x441049,_0xf7e81f,_0xe0da48){return _0x51d0c0(_0x47d33d-_0x4da84d._0x7093c0,_0x441049-_0x4da84d._0x23ce88,_0x47d33d- -_0x4da84d._0x152ff3,_0x441049);}throw new Error(_0x5a9a62(-_0x45c7e5._0x2c4d32,-_0x45c7e5._0x559f6d,-0xd1,-_0x45c7e5._0x25d41d)+String(this['surface']));}async['complete'](_0x2491a6,_0x13b21c){const _0x101af6={_0x3106f6:0x1b,_0x2e60c5:0x107,_0x2c915a:0x22,_0x114d0d:0x2b7,_0x3a847e:0x325,_0x3e2cf1:0x2ba,_0xc1c574:0x272,_0xd64fee:0x29e,_0x167959:0x2ea,_0x6b1e7c:0x13b,_0x137c2a:0x19,_0x51a96a:0xd1,_0xd4ba12:0x467,_0x47aedb:0x2c7,_0x4417b1:0x3a0,_0x18b808:0x260,_0x1c5ba4:0x194,_0x3a27a9:0x1b4,_0x25855f:0x8d,_0x346ed6:0x3c1,_0x5d41d6:0x488},_0x67c02b={_0x5c28e5:0x117,_0x5b1fa9:0x260},_0x2c2329=this[_0x26180d(-_0x101af6._0x3106f6,-_0x101af6._0x2e60c5,-0x79,-_0x101af6._0x2c915a)](_0x2491a6);function _0x26180d(_0x19e740,_0x40bf30,_0x3b2a86,_0xa16a1e){return _0x55b3f6(_0x19e740-0x79,_0x3b2a86- -0x2b0,_0xa16a1e,_0xa16a1e-0xed);}if(this['surface']!==_0x36344a(0x24c,_0x101af6._0x114d0d,_0x101af6._0x3a847e,_0x101af6._0x3e2cf1))return this[_0x36344a(_0x101af6._0xc1c574,0x1c1,_0x101af6._0xd64fee,_0x101af6._0x167959)](_0x2c2329,_0x13b21c);function _0x36344a(_0x401884,_0x1a896a,_0xd93710,_0x86e293){return _0x51d0c0(_0x401884-_0x67c02b._0x5c28e5,_0x1a896a-0x77,_0xd93710- -_0x67c02b._0x5b1fa9,_0x401884);}if(this[_0x26180d(-0x7,-_0x101af6._0x6b1e7c,-0xba,-0xa3)](_0x2c2329))return this[_0x26180d(-0x7c,0x1e,-_0x101af6._0x137c2a,-_0x101af6._0x51a96a)](_0x2c2329,_0x13b21c);try{return await this[_0x36344a(_0x101af6._0xd4ba12,_0x101af6._0x47aedb,_0x101af6._0x4417b1,0x39b)](_0x2c2329,_0x13b21c);}catch(_0x30d85f){if(_0x30d85f instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x30d85f[_0x26180d(-0x250,-_0x101af6._0x18b808,-_0x101af6._0x1c5ba4,-_0x101af6._0x3a27a9)]))return this[_0x26180d(-0x1a5,-0xea,-0xee,-_0x101af6._0x25855f)](_0x2c2329['model']),this[_0x36344a(0x417,0x418,0x3c5,0x3e3)](_0x2c2329,_0x13b21c);throw this[_0x36344a(_0x101af6._0x346ed6,_0x101af6._0x5d41d6,0x3bf,0x411)](_0x30d85f);}throw _0x30d85f;}}async*[_0x51d0c0(0x5d9,0x628,0x548,0x51c)](_0x10fca3,_0xd08e31){const _0x40d6b3={_0x503639:0x4c6,_0xc382ff:0x4ea,_0x286f2c:0x2a5,_0x34335c:0x27a,_0xb56efa:0x308,_0xf62d58:0x33a,_0x432fc3:0x40f,_0x22e16d:0x38a,_0x1e17eb:0x3f6,_0x12fdcc:0x4d2,_0x12e10d:0x45f,_0x1d57b2:0x3ee,_0xd15fa8:0x40c,_0x5f17d7:0x514},_0x4426ce={_0x2e476e:0x17c,_0x322ffe:0x142},_0x39e0d9={_0x1c57a7:0x1a1};function _0x41e3a0(_0x535500,_0xa8139a,_0x535762,_0x233da4){return _0x55b3f6(_0x535500-0x81,_0x535500-0x219,_0x233da4,_0x233da4-_0x39e0d9._0x1c57a7);}const _0x41fa02=this[_0x41e3a0(0x450,0x3f8,_0x40d6b3._0x503639,_0x40d6b3._0xc382ff)](_0x10fca3);if(this[_0x4fc065(_0x40d6b3._0x286f2c,_0x40d6b3._0x34335c,_0x40d6b3._0xb56efa,0x347)]!==_0x41e3a0(0x410,0x3a4,0x4ad,_0x40d6b3._0xf62d58)){yield*this['streamViaConfiguredSurface'](_0x41fa02,_0xd08e31);return;}function _0x4fc065(_0x12e0e7,_0x4bed76,_0x3417fa,_0x32415b){return _0x55b3f6(_0x12e0e7-_0x4426ce._0x2e476e,_0x32415b-_0x4426ce._0x322ffe,_0x4bed76,_0x32415b-0x123);}if(this[_0x41e3a0(_0x40d6b3._0x432fc3,_0x40d6b3._0x22e16d,_0x40d6b3._0x1e17eb,0x4c4)](_0x41fa02)){yield*this[_0x4fc065(_0x40d6b3._0x12fdcc,_0x40d6b3._0x12e10d,0x32a,_0x40d6b3._0x1d57b2)](_0x41fa02,_0xd08e31);return;}try{yield*this['streamViaChatCompletionsSurface'](_0x41fa02,_0xd08e31);}catch(_0x15fbda){if(_0x15fbda instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x15fbda['body'])){this['markModelAsResponsesOnly'](_0x41fa02[_0x4fc065(_0x40d6b3._0xd15fa8,0x293,0x30b,0x342)]),yield*this[_0x4fc065(0x34c,0x4d3,0x327,_0x40d6b3._0x1d57b2)](_0x41fa02,_0xd08e31);return;}throw this[_0x41e3a0(0x4aa,0x461,0x44e,_0x40d6b3._0x5f17d7)](_0x15fbda);}throw _0x15fbda;}}async[_0x55b3f6(0x197,0x1be,0x24b,0x19b)](_0x41d2be){const _0xc0f4d4={_0x579ce8:0x103,_0x248baf:0x1d6,_0x378cb3:0x25e,_0x8cdb34:0x149,_0x41a725:0xa5,_0x6242f9:0xe2,_0x12a721:0x3f,_0x4b3fb8:0x2d5,_0x483d66:0x2ed,_0x3b3d82:0x231},_0x3e4c23={_0x8c4d:0xd0,_0x46f1d3:0x109,_0x274aaa:0x12a,_0xdc77e1:0x8,_0x122081:0x64,_0x5769ed:0x1,_0x2134c9:0x75},_0x430a5b={_0x4f1c06:0x31},_0x379b8d={_0x3aa459:0x89,_0x37e489:0x1f1,_0x43ab33:0x48b},_0x499968={_0x4c5862:0x1f3};function _0x313872(_0x3624e7,_0x4c47a0,_0xb7fe89,_0x5aca47){return _0x55b3f6(_0x3624e7-0x68,_0x4c47a0- -0x37,_0xb7fe89,_0x5aca47-_0x499968._0x4c5862);}function _0x4b0592(_0x4c1e21,_0x1e5ec3,_0x1b9829,_0x24b40d){return _0x51d0c0(_0x4c1e21-_0x379b8d._0x3aa459,_0x1e5ec3-_0x379b8d._0x37e489,_0x4c1e21- -_0x379b8d._0x43ab33,_0x1b9829);}const _0x4729f3=await this[_0x313872(0x164,_0xc0f4d4._0x579ce8,0x1ac,_0xc0f4d4._0x248baf)]({'path':_0x313872(0x208,_0xc0f4d4._0x378cb3,0x24f,0x1af),'method':_0x4b0592(0xe2,0xd0,_0xc0f4d4._0x8cdb34,_0xc0f4d4._0x41a725),'signal':_0x41d2be});if(!_0x4729f3['ok'])throw this[_0x4b0592(0x194,0x199,0x13c,_0xc0f4d4._0x6242f9)](await this['toApiError'](_0x4729f3));const _0x54c21c=await _0x4729f3[_0x4b0592(0x54,0xdd,-0x53,_0xc0f4d4._0x12a721)](),_0x27d83e=(_0x54c21c[_0x313872(0x1cd,0x2a5,0x1f4,_0xc0f4d4._0x4b3fb8)]??[])[_0x313872(_0xc0f4d4._0x483d66,_0xc0f4d4._0x3b3d82,0x1ae,0x1c9)](_0x5918a2=>{const _0x98e995={_0x3d0d11:0x15a,_0x37b2b9:0x86};function _0x463dc9(_0x5c0bb9,_0x5d07a2,_0x3400ff,_0x3b03a5){return _0x313872(_0x5c0bb9-0xdd,_0x5c0bb9- -_0x430a5b._0x4f1c06,_0x3b03a5,_0x3b03a5-0x8b);}function _0x3eb518(_0x306651,_0x3e87ca,_0x23bbac,_0x45f57b){return _0x313872(_0x306651-0x21,_0x306651- -_0x98e995._0x3d0d11,_0x23bbac,_0x45f57b-_0x98e995._0x37b2b9);}const _0x16032b=createModelInfo(_0x5918a2);return _0x16032b[_0x3eb518(0x1,_0x3e4c23._0x8c4d,0xca,-0xc5)]&&this[_0x3eb518(_0x3e4c23._0x46f1d3,0x1df,0xe7,_0x3e4c23._0x274aaa)][_0x3eb518(-_0x3e4c23._0xdc77e1,0x50,_0x3e4c23._0x122081,0x55)](_0x16032b['id'],_0x16032b[_0x3eb518(_0x3e4c23._0x5769ed,-0x8b,-_0x3e4c23._0x2134c9,-0xad)]),_0x16032b;});return deduplicateModels(_0x27d83e);}};function createHeaders(_0x43033a){const _0x12da00={_0x522b1b:0x7,_0x4b9a7f:0xbf,_0x22cd11:0x29,_0x2511e0:0xd7},_0x981213={_0x5dfb0b:0x71,_0x4af568:0x1db,_0x341a98:0x33},_0x23e34b={_0x5ac5e0:0x71,_0x52d03b:0x1d2},_0x45edd6=new Headers();function _0x910d35(_0x2b69a4,_0x2cc9ed,_0x51e18c,_0xade503){return _0x55b3f6(_0x2b69a4-_0x23e34b._0x5ac5e0,_0xade503- -0x1ea,_0x51e18c,_0xade503-_0x23e34b._0x52d03b);}function _0x10a0c5(_0x12784e,_0x2a86ed,_0x5b3abe,_0x44b325){return _0x51d0c0(_0x12784e-_0x981213._0x5dfb0b,_0x2a86ed-_0x981213._0x4af568,_0x2a86ed-_0x981213._0x341a98,_0x5b3abe);}for(const [_0x188896,_0x26ae84]of Object[_0x910d35(_0x12da00._0x522b1b,0x4b,_0x12da00._0x4b9a7f,_0x12da00._0x22cd11)](_0x43033a)){_0x45edd6[_0x910d35(-0xa8,0x1c,-_0x12da00._0x2511e0,-0x61)](_0x188896,_0x26ae84);}return _0x45edd6;}async function fetchRawResponse(_0x35874d){const _0x1c5c76={_0x4e08ec:0x18c,_0x5f439e:0x15f,_0x5ce229:0x1cf,_0x1bc925:0x516,_0xec93d9:0x12c,_0x530f6e:0x85,_0x351e77:0x265,_0x67120e:0x2e3,_0x57b9ae:0x2ad,_0x16e052:0x28e,_0x47bf28:0x34e,_0x20d382:0x1d4,_0x55f6f0:0x4ab,_0x3684f3:0x57f},_0x4c1954={_0x22c217:0xa,_0x24fa7a:0x17},_0x4fe12a={_0x5871d8:0xaa,_0x242c3c:0x14e,_0x453152:0x738};function _0x3b868a(_0x4d8b9d,_0x30115d,_0x2d6678,_0x39d445){return _0x51d0c0(_0x4d8b9d-_0x4fe12a._0x5871d8,_0x30115d-_0x4fe12a._0x242c3c,_0x4d8b9d- -_0x4fe12a._0x453152,_0x2d6678);}function _0x2230e0(_0x2d28fa,_0x4db95f,_0x54244f,_0xfbb243){return _0x51d0c0(_0x2d28fa-_0x4c1954._0x22c217,_0x4db95f-0x94,_0xfbb243- -_0x4c1954._0x24fa7a,_0x54244f);}const _0x3f1804=_0x35874d[_0x3b868a(-_0x1c5c76._0x4e08ec,-_0x1c5c76._0x5f439e,-_0x1c5c76._0x5ce229,-0xc9)]??globalThis[_0x2230e0(0x4ea,_0x1c5c76._0x1bc925,0x631,0x595)];return _0x3f1804(_0x35874d[_0x3b868a(-0xda,-_0x1c5c76._0xec93d9,-0x121,-_0x1c5c76._0x530f6e)],{'method':_0x3b868a(-_0x1c5c76._0x351e77,-_0x1c5c76._0x67120e,-0x222,-_0x1c5c76._0x57b9ae),'headers':createHeaders(_0x35874d['headers']),'body':JSON['stringify'](_0x35874d[_0x3b868a(-_0x1c5c76._0x16e052,-_0x1c5c76._0x47bf28,-_0x1c5c76._0x20d382,-0x24a)]),'signal':_0x35874d[_0x2230e0(_0x1c5c76._0x55f6f0,_0x1c5c76._0x3684f3,0x42a,0x4ad)]});}async function fetchJsonResponse(_0x4a9370){const _0x3f278b={_0x5afe44:0x16b,_0xf3cbb9:0x1cc,_0x807572:0x25a,_0x27a2b6:0x1c1,_0x258310:0x1a0,_0x79f68:0x227,_0x1f7a44:0x14c,_0x43d727:0x488,_0x14fac7:0x19e,_0x13c960:0xc6},_0x4d799a={_0x1403b2:0x105,_0x4b171a:0x341},_0x104d07={_0x2af0a8:0x1c7,_0x150ec2:0x141},_0x36a8f7=await fetchRawResponse(_0x4a9370);function _0x706952(_0x535bd6,_0x551469,_0x373c4c,_0x12f5ba){return _0x51d0c0(_0x535bd6-_0x104d07._0x2af0a8,_0x551469-_0x104d07._0x150ec2,_0x551469- -0x1dc,_0x12f5ba);}if(!_0x36a8f7['ok']){const _0x2634ce=await _0x36a8f7[_0x289fbd(_0x3f278b._0x5afe44,_0x3f278b._0xf3cbb9,_0x3f278b._0x807572,_0x3f278b._0x27a2b6)](),_0x4d797f=_0x2634ce[_0x289fbd(_0x3f278b._0x258310,_0x3f278b._0x79f68,0x1f2,_0x3f278b._0x1f7a44)]()||_0x36a8f7['statusText']||'Unknown\x20provider\x20error';throw new Error(_0x706952(0x46d,0x3d7,0x486,_0x3f278b._0x43d727)+_0x36a8f7[_0x706952(0x46a,0x43e,0x508,0x39c)]+':\x20'+_0x4d797f);}function _0x289fbd(_0x31c557,_0x37f79c,_0x558cda,_0x43fccd){return _0x51d0c0(_0x31c557-_0x4d799a._0x1403b2,_0x37f79c-0x93,_0x37f79c- -_0x4d799a._0x4b171a,_0x43fccd);}return await _0x36a8f7[_0x289fbd(0x227,_0x3f278b._0x14fac7,0xc8,_0x3f278b._0x13c960)]();}function findLastMessage(_0x3d899b,_0x137d52){const _0x591b1d={_0x28b4d5:0xd2,_0x2abc6:0x58,_0x4f8f74:0x121},_0x3969e4={_0x55cf01:0x11a,_0x551cd5:0x12d};function _0x28baff(_0x3b22e3,_0x21c2e6,_0x125709,_0x35dc1){return _0x55b3f6(_0x3b22e3-_0x3969e4._0x55cf01,_0x35dc1- -0x3c0,_0x3b22e3,_0x35dc1-_0x3969e4._0x551cd5);}for(let _0x26b901=_0x3d899b[_0x28baff(-_0x591b1d._0x28b4d5,-0x16b,-_0x591b1d._0x2abc6,-_0x591b1d._0x4f8f74)]-0x1;_0x26b901>=0x0;_0x26b901-=0x1){if(_0x3d899b[_0x26b901]['role']===_0x137d52)return _0x3d899b[_0x26b901];}return void 0x0;}function hasTool(_0x35708f,_0x8741b1){const _0x34db47={_0x490626:0xe4,_0xfc7666:0x181,_0x77e17e:0x5ef},_0x1121e1={_0x1d16ed:0x11f,_0x3aaa5d:0x1e9,_0x4acb74:0x56c},_0x44252c={_0x3f4eab:0x321,_0x2ff2af:0x150};function _0x29208d(_0x2ac189,_0x40fe63,_0x5d04ad,_0xe105e0){return _0x55b3f6(_0x2ac189-0x93,_0xe105e0-_0x44252c._0x3f4eab,_0x40fe63,_0xe105e0-_0x44252c._0x2ff2af);}function _0x13e805(_0x2a6528,_0x2b600d,_0x1a2f7a,_0x28e07b){return _0x51d0c0(_0x2a6528-_0x1121e1._0x1d16ed,_0x2b600d-_0x1121e1._0x3aaa5d,_0x28e07b- -_0x1121e1._0x4acb74,_0x2b600d);}return _0x35708f[_0x13e805(0x16,_0x34db47._0x490626,_0x34db47._0xfc7666,0xa1)][_0x29208d(0x459,0x599,_0x34db47._0x77e17e,0x52c)](_0x3418fe=>_0x3418fe[_0x29208d(0x53e,0x5c6,0x628,0x5d7)]===_0x8741b1);}function createMockResponse(_0x17bc1a,_0x2eb476,_0x436768,_0x2a557d){return{'id':_0x17bc1a,'content':_0x2eb476,'stopReason':_0x436768,'usage':_0x2a557d};}var MockModel=class{[_0x55b3f6(0x293,0x200,0x1ea,0x214)];['maxTokens'];[_0x51d0c0(0x5b5,0x506,0x56b,0x4b1)]=[];[_0x55b3f6(0x1b4,0x153,0x12c,0x1ec)];constructor(_0x4cf0c4={}){const _0x2ae8ba={_0x3d1987:0x538,_0x3e27c6:0x4b0,_0x2560a3:0x60b,_0x502c63:0x4d9,_0x4ed06c:0x40b,_0x59b024:0x49c,_0x43a3c1:0x507,_0x4363d8:0x49c,_0x4b58f3:0x3bd,_0x25534a:0xa9},_0x233e71={_0x5a777c:0x1ae},_0x26c985={_0x3ae28e:0x4b};this['model']=_0x4cf0c4[_0x3ee9c9(0x592,0x549,_0x2ae8ba._0x3d1987,_0x2ae8ba._0x3e27c6)]??'mock';function _0x3ee9c9(_0x28adf4,_0x396675,_0x3b8244,_0x1dc2c0){return _0x51d0c0(_0x28adf4-0x106,_0x396675-_0x26c985._0x3ae28e,_0x396675- -0x45,_0x1dc2c0);}function _0x58e592(_0x1e6a54,_0x575190,_0x54e0ac,_0x21a9cd){return _0x55b3f6(_0x1e6a54-0x13d,_0x21a9cd- -0x272,_0x54e0ac,_0x21a9cd-_0x233e71._0x5a777c);}this[_0x3ee9c9(_0x2ae8ba._0x2560a3,0x54a,0x4e6,_0x2ae8ba._0x502c63)]=_0x4cf0c4['maxTokens']??getDefaultMaxTokens(),this[_0x3ee9c9(_0x2ae8ba._0x4ed06c,_0x2ae8ba._0x59b024,0x4ee,_0x2ae8ba._0x43a3c1)]=_0x4cf0c4[_0x3ee9c9(0x562,_0x2ae8ba._0x4363d8,_0x2ae8ba._0x4b58f3,0x3dc)]?structuredClone(_0x4cf0c4[_0x58e592(-_0x2ae8ba._0x25534a,-0x15c,-0xee,-0x11f)]):void 0x0;}async['complete'](_0x2076fd,_0x6c1f43){const _0x541cd7={_0x3c8e5d:0x1e5,_0x1716d6:0x3bc,_0x14a5ca:0x35d,_0x1d153c:0x307,_0x687744:0x184,_0x494b88:0x1d6,_0xa50f01:0x301,_0x1a3709:0x31e,_0x31df3c:0x1c9,_0x20d324:0x39b,_0xf29f97:0x53f,_0x77ad79:0x401,_0x41d191:0x3dc,_0x215ea6:0x2e0,_0x14bb51:0x409,_0x1f87b2:0x331,_0x2eb621:0x557,_0x5ccb07:0x4a9,_0x1f4ac7:0x448,_0x1d3e08:0x2c4,_0xb31a0a:0x386,_0x3675f3:0x35e,_0x17b8c8:0x33d,_0x4e08fb:0x284,_0x4aed4d:0x32f,_0xfb069f:0x410,_0x4c0bfd:0x451,_0x1db1a3:0x4cc,_0x12d053:0x331,_0x2e02e0:0x417,_0x41e5b5:0x2fa,_0x2bea0f:0x3f7,_0x4d9619:0x355,_0x1224a3:0x2d7,_0x3c4bab:0x347,_0x2805bd:0x41c,_0x177b0a:0x28e,_0x4ed667:0x27c,_0x489b35:0x1db,_0x47404b:0x150,_0x8123c9:0x25c,_0x36f30f:0x1de,_0x45d177:0x276,_0x3ed60c:0x14a},_0x52606e={_0x58592d:0x121,_0x3a3dfb:0xb},_0x4e25d0={_0x2a56dd:0x128};function _0x4a3343(_0x3c6134,_0x5ab042,_0x49c2c0,_0x5a2b46){return _0x55b3f6(_0x3c6134-_0x4e25d0._0x2a56dd,_0x5a2b46-0x92,_0x49c2c0,_0x5a2b46-0x13f);}function _0x250f6a(_0x4cc00a,_0x81dae3,_0x1b0b35,_0x3fe6bb){return _0x55b3f6(_0x4cc00a-_0x52606e._0x58592d,_0x81dae3-0x20a,_0x1b0b35,_0x3fe6bb-_0x52606e._0x3a3dfb);}const _0x19cfaa={...structuredClone(_0x2076fd),..._0x2076fd[_0x4a3343(0x182,0x1c7,0x1e8,_0x541cd7._0x3c8e5d)]===void 0x0&&this[_0x250f6a(_0x541cd7._0x1716d6,_0x541cd7._0x14a5ca,_0x541cd7._0x1d153c,0x2f9)]!==void 0x0?{'reasoning':structuredClone(this[_0x4a3343(0x29c,_0x541cd7._0x687744,_0x541cd7._0x494b88,0x1e5)])}:{}};this['requests'][_0x4a3343(_0x541cd7._0xa50f01,_0x541cd7._0x1a3709,_0x541cd7._0x31df3c,0x241)](_0x19cfaa);const _0x4818cc=findLastMessage(_0x19cfaa[_0x250f6a(0x3c1,_0x541cd7._0x20d324,0x453,0x32d)],_0x250f6a(0x531,0x4db,_0x541cd7._0xf29f97,_0x541cd7._0x77ad79)),_0x2fb1b1=getToolResultBlocks(_0x4818cc),_0x35408d=_0x4a3343(0x27c,_0x541cd7._0x41d191,_0x541cd7._0x215ea6,0x332)+this[_0x250f6a(0x4cb,0x3e7,0x3ad,0x40b)][_0x4a3343(_0x541cd7._0x14bb51,0x383,0x3de,_0x541cd7._0x1f87b2)];if(_0x2fb1b1[_0x250f6a(_0x541cd7._0x2eb621,_0x541cd7._0x5ccb07,0x56e,0x3ee)]>0x0)return createMockResponse(_0x35408d,[{'type':_0x250f6a(_0x541cd7._0x1f4ac7,0x389,0x33c,0x404),'text':'I\x20checked\x20the\x20mocked\x20tool\x20result.\x20'+_0x2fb1b1[0x0]['content']}],_0x250f6a(_0x541cd7._0x1d3e08,_0x541cd7._0xb31a0a,0x35c,_0x541cd7._0x3675f3),{'inputTokens':0x78,'outputTokens':0x28});const _0x328648=getTextFromMessage(_0x4818cc);if(/list .*files|workspace/i[_0x4a3343(0x260,_0x541cd7._0x17b8c8,0x1bd,_0x541cd7._0x4e08fb)](_0x328648)&&hasTool(_0x19cfaa,_0x4a3343(_0x541cd7._0x4aed4d,_0x541cd7._0xfb069f,0x353,0x355)))return createMockResponse(_0x35408d,[{'type':'tool_use','id':'tool-call-'+this[_0x250f6a(_0x541cd7._0x4c0bfd,0x3e7,_0x541cd7._0x1db1a3,0x329)][_0x4a3343(0x298,0x3f8,0x38a,_0x541cd7._0x12d053)],'name':_0x4a3343(_0x541cd7._0x2e02e0,_0x541cd7._0x41e5b5,_0x541cd7._0x2bea0f,_0x541cd7._0x4d9619),'input':{'command':_0x250f6a(_0x541cd7._0x1224a3,0x3bd,_0x541cd7._0x3c4bab,_0x541cd7._0x2805bd)}}],_0x4a3343(_0x541cd7._0x177b0a,_0x541cd7._0x4ed667,_0x541cd7._0x489b35,0x24e),{'inputTokens':0x6e,'outputTokens':0x1c});return createMockResponse(_0x35408d,[{'type':_0x4a3343(0x1bf,0x172,0x155,0x211),'text':_0x4a3343(_0x541cd7._0x47404b,_0x541cd7._0x8123c9,0x298,_0x541cd7._0x36f30f)+_0x328648}],_0x4a3343(_0x541cd7._0x45d177,_0x541cd7._0x3ed60c,0x2af,0x20e),{'inputTokens':0x50,'outputTokens':0x12});}};function getFallbackModelLimits(_0x3168c4,_0x1ff002){const _0x3f9e53={_0x502f67:0xb4,_0x30ba1d:0x98,_0x231d61:0x10d,_0x592fca:0x10f,_0x800b7:0x12f,_0x12429c:0x22e,_0x342207:0x164,_0x5e0c77:0x1c2,_0x4ba4a6:0x1a8,_0xe261a1:0x293,_0x1eaab2:0x205,_0x49ec15:0x1a6,_0x513847:0x90},_0x46bba0={_0x4cb740:0x1bb};function _0x410cea(_0x40be04,_0x5adc7e,_0x5ad080,_0x2b88ed){return _0x51d0c0(_0x40be04-0x15a,_0x5adc7e-0x77,_0x40be04- -0x2a1,_0x5adc7e);}const _0x2e1905=getModelProfile(_0x3168c4,_0x1ff002);if(!_0x2e1905?.[_0x504f65(_0x3f9e53._0x502f67,-_0x3f9e53._0x30ba1d,0xb1,0x3a)]&&!_0x2e1905?.[_0x504f65(0xe2,_0x3f9e53._0x231d61,_0x3f9e53._0x592fca,_0x3f9e53._0x800b7)])return void 0x0;function _0x504f65(_0x46870a,_0x3cd546,_0x21d58b,_0x472ade){return _0x51d0c0(_0x46870a-0x18,_0x3cd546-_0x46bba0._0x4cb740,_0x472ade- -0x469,_0x46870a);}return{..._0x2e1905[_0x410cea(0x202,_0x3f9e53._0x12429c,_0x3f9e53._0x342207,_0x3f9e53._0x5e0c77)]?{'contextWindow':_0x2e1905[_0x410cea(0x202,_0x3f9e53._0x4ba4a6,_0x3f9e53._0xe261a1,_0x3f9e53._0x1eaab2)]}:{},..._0x2e1905['maxOutput']?{'maxOutput':_0x2e1905[_0x504f65(_0x3f9e53._0x49ec15,0x1c9,_0x3f9e53._0x513847,_0x3f9e53._0x800b7)]}:{}};}function normalizeModelInfo(_0x19dff2,_0x19113b){const _0x403599={_0x18ec87:0x6b,_0x3ef47a:0x2d,_0x3395bf:0x6b,_0x35b495:0x5b1,_0x1fdfb7:0x682,_0x53c930:0x634,_0x188a9d:0x5e0,_0x402be9:0x5b8,_0x4ef257:0x5df,_0x4ab6dc:0x611,_0x163400:0xc7,_0x4c4d2e:0x34,_0x388c15:0x88,_0x579397:0x4,_0x31db3d:0x39,_0x10f2c6:0x32,_0x1d45a0:0x469,_0x5558cf:0x4a1,_0x428e97:0x5ce,_0x1c88f5:0x474,_0xdc826a:0x4b3,_0x546a4f:0x45e,_0x3f32c5:0x557,_0x3cd4c0:0xde},_0x45b2aa={_0x269b1d:0x2fb,_0x26bd1f:0x1f4},_0x302e54={_0x14b34a:0x2ea,_0x19a79e:0x150},_0x418111=typeof _0x19113b['id']===_0x7bd4b9(_0x403599._0x18ec87,-0xdd,-_0x403599._0x3ef47a,_0x403599._0x3395bf)?_0x19113b['id']:'',_0x1252dd=typeof _0x19113b[_0x3b488c(_0x403599._0x35b495,_0x403599._0x1fdfb7,_0x403599._0x53c930,_0x403599._0x188a9d)]===_0x3b488c(_0x403599._0x402be9,0x654,_0x403599._0x4ef257,_0x403599._0x4ab6dc)?_0x19113b[_0x7bd4b9(0xa3,-_0x403599._0x163400,-_0x403599._0x4c4d2e,-0x1f)]:_0x418111,_0x273536=normalizeModelLimits(_0x19dff2,_0x19113b)??getFallbackModelLimits(_0x19dff2,_0x418111),_0x106635=Array['isArray'](_0x19113b[_0x7bd4b9(-_0x403599._0x388c15,_0x403599._0x579397,-0x2c,-0xad)])?_0x19113b[_0x7bd4b9(_0x403599._0x31db3d,-0xc2,-0x2c,_0x403599._0x10f2c6)][_0x3b488c(_0x403599._0x1d45a0,0x48f,_0x403599._0x5558cf,0x3d8)](_0xc3deac=>typeof _0xc3deac==='string'):Array[_0x3b488c(0x55a,_0x403599._0x428e97,_0x403599._0x1c88f5,0x5fb)](_0x19113b[_0x3b488c(_0x403599._0xdc826a,0x558,_0x403599._0x546a4f,_0x403599._0x3f32c5)])?_0x19113b['capable_endpoints'][_0x7bd4b9(-0x19b,-0x244,-0x17c,-_0x403599._0x3cd4c0)](_0x528042=>typeof _0x528042===_0x7bd4b9(0x81,0xe,-0x2d,0xa7)):void 0x0;function _0x7bd4b9(_0x919d82,_0x2ec487,_0x304cda,_0x2b3874){return _0x55b3f6(_0x919d82-0x74,_0x304cda- -_0x302e54._0x14b34a,_0x2ec487,_0x2b3874-_0x302e54._0x19a79e);}function _0x3b488c(_0x57cf4c,_0x3ff19e,_0x71f6b5,_0x3a7a12){return _0x55b3f6(_0x57cf4c-0x94,_0x57cf4c-_0x45b2aa._0x269b1d,_0x71f6b5,_0x3a7a12-_0x45b2aa._0x26bd1f);}return{'id':_0x418111,'name':_0x1252dd,..._0x273536?{'limits':_0x273536}:{},..._0x106635?{'supportedEndpoints':_0x106635}:{}};}function normalizeModelLimits(_0x420d2a,_0x5b21dd){const _0x1073a6={_0x594884:0x1b5,_0x34e669:0x1f8,_0x417130:0x2ac,_0x3edfc8:0x36b,_0x4ba309:0x20a,_0x5260a4:0x1b5,_0x39a83a:0x17e,_0x5d25c1:0xd8,_0x1a613e:0x75,_0x406a9c:0x118,_0x23e3e7:0x1ef,_0x547824:0x68,_0x12fda1:0x9f,_0x2411ac:0x545,_0x5384e3:0x510,_0x3430e5:0x5f1,_0x2568e4:0x494,_0x28f9ff:0x27c,_0xdad565:0x293,_0x55d535:0x248,_0x67a898:0x41d,_0x3e4f2d:0x467,_0x3835f9:0x293,_0x552d2a:0x2c9,_0x2129cc:0x252,_0x2c56dd:0x35f,_0xf59214:0x270,_0x1d44ad:0x1de,_0x3535d2:0x19f,_0x5d60cb:0x516,_0xa15d0f:0x444,_0x3bc5f6:0x5ec,_0x4d83d0:0x4c6,_0x150751:0x4e3,_0x1c71f9:0x169,_0x38bc48:0xf2,_0x16f2d2:0x16a,_0x51c1b9:0x15a,_0x481108:0x79,_0x52b6a7:0x1dc,_0x50b7e5:0x58a,_0x2fd14d:0x486,_0x385aa8:0x4e8,_0x54bc50:0x4b0,_0x31d820:0x559,_0x565861:0x44c,_0x35c6b3:0x4c0,_0x42ba71:0x492,_0xa51f09:0x40a,_0x500434:0x54e,_0x31b4d3:0x535,_0x383587:0x162,_0x15d4e2:0x5ca,_0x54dfcf:0x5c8,_0x2a7e31:0x492,_0x4af512:0x22a,_0x31f1ea:0x263,_0x2bfffa:0x562,_0x5b8c27:0x546,_0x12b14c:0x1de},_0x388d52={_0x58db03:0x4b};if(_0x5b21dd[_0x3a9b46(0x1eb,_0x1073a6._0x594884,0x1cb,_0x1073a6._0x34e669)]&&typeof _0x5b21dd['limits']===_0x3a9b46(_0x1073a6._0x417130,0x2bf,_0x1073a6._0x3edfc8,0x234)){const _0x3ba1a1=_0x5b21dd[_0x3a9b46(_0x1073a6._0x4ba309,_0x1073a6._0x5260a4,_0x1073a6._0x39a83a,_0x1073a6._0x5d25c1)];if(typeof _0x3ba1a1[_0x3a9b46(_0x1073a6._0x1a613e,_0x1073a6._0x406a9c,_0x1073a6._0x23e3e7,_0x1073a6._0x547824)]==='number')return{'contextWindow':_0x3ba1a1[_0x3a9b46(0x1ac,_0x1073a6._0x406a9c,_0x1073a6._0x12fda1,0x1e0)],...typeof _0x3ba1a1[_0x22f6a0(_0x1073a6._0x2411ac,_0x1073a6._0x5384e3,_0x1073a6._0x3430e5,_0x1073a6._0x2568e4)]==='number'?{'maxOutput':_0x3ba1a1[_0x3a9b46(0x219,0x20d,_0x1073a6._0x28f9ff,0x19c)]}:{}};}function _0x22f6a0(_0x2ba4c1,_0x459fdc,_0x466364,_0x289569){return _0x55b3f6(_0x2ba4c1-_0x388d52._0x58db03,_0x2ba4c1-0x33b,_0x459fdc,_0x289569-0x40);}if(_0x420d2a[_0x3a9b46(0x1d0,_0x1073a6._0xdad565,0x239,0x27d)]()===_0x3a9b46(0x1aa,_0x1073a6._0x55d535,0x31a,0x263)){const _0x4aca12=_0x5b21dd['capabilities'],_0x2a50cb=_0x4aca12?.[_0x22f6a0(0x4ed,_0x1073a6._0x67a898,0x437,_0x1073a6._0x3e4f2d)];if(typeof _0x2a50cb?.[_0x3a9b46(_0x1073a6._0x3835f9,_0x1073a6._0x552d2a,_0x1073a6._0x2129cc,_0x1073a6._0x2c56dd)]===_0x3a9b46(_0x1073a6._0xf59214,_0x1073a6._0x1d44ad,0x17f,_0x1073a6._0x3535d2))return{'contextWindow':_0x2a50cb['max_context_window_tokens'],...typeof _0x2a50cb['max_output_tokens']===_0x22f6a0(_0x1073a6._0x5d60cb,_0x1073a6._0xa15d0f,_0x1073a6._0x3bc5f6,_0x1073a6._0x4d83d0)?{'maxOutput':_0x2a50cb[_0x22f6a0(0x49a,0x4c2,_0x1073a6._0x150751,0x3f1)]}:{}};}const _0x5a9f3e=_0x5b21dd['metadata'],_0x1d2dfd=_0x5b21dd[_0x3a9b46(0xa1,0x184,_0x1073a6._0x1c71f9,_0x1073a6._0x38bc48)],_0xa4a296=typeof _0x5b21dd[_0x3a9b46(_0x1073a6._0x16f2d2,_0x1073a6._0x51c1b9,_0x1073a6._0x481108,_0x1073a6._0x52b6a7)]===_0x22f6a0(_0x1073a6._0x5d60cb,_0x1073a6._0x50b7e5,0x4b4,_0x1073a6._0x2fd14d)?_0x5b21dd[_0x22f6a0(0x492,_0x1073a6._0x385aa8,0x544,_0x1073a6._0x54bc50)]:typeof _0x5a9f3e?.['context_length']===_0x22f6a0(_0x1073a6._0x5d60cb,_0x1073a6._0x31d820,_0x1073a6._0x565861,_0x1073a6._0x35c6b3)?_0x5a9f3e[_0x22f6a0(_0x1073a6._0x42ba71,_0x1073a6._0xa51f09,_0x1073a6._0x500434,_0x1073a6._0x31b4d3)]:typeof _0x1d2dfd?.[_0x3a9b46(0x16e,0x15a,0x1af,_0x1073a6._0x383587)]===_0x22f6a0(0x516,_0x1073a6._0x15d4e2,0x478,_0x1073a6._0x54dfcf)?_0x1d2dfd[_0x22f6a0(_0x1073a6._0x2a7e31,0x54c,0x458,0x46f)]:void 0x0;function _0x3a9b46(_0x4449e8,_0x10fdd9,_0x49b12b,_0x5068d0){return _0x51d0c0(_0x4449e8-0xa5,_0x10fdd9-0xdf,_0x10fdd9- -0x38b,_0x4449e8);}if(_0xa4a296===void 0x0)return void 0x0;return{'contextWindow':_0xa4a296,...typeof _0x5a9f3e?.[_0x3a9b46(0x252,_0x1073a6._0x4af512,_0x1073a6._0x31f1ea,0x1ab)]==='number'?{'maxOutput':_0x5a9f3e[_0x22f6a0(_0x1073a6._0x2bfffa,_0x1073a6._0x5b8c27,0x4a9,0x60b)]}:typeof _0x1d2dfd?.['max_completion_tokens']===_0x3a9b46(0x1ce,_0x1073a6._0x12b14c,0x1fd,0x1a8)?{'maxOutput':_0x1d2dfd['max_completion_tokens']}:{}};}export{ANTHROPIC_MESSAGES_STREAM_SURFACE,ANTHROPIC_MESSAGES_SURFACE,AVAILABLE_CHAT_MODEL_SURFACES,AnthropicModel,ChatModel,GitHubModel,MockModel,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,OPENAI_CHAT_COMPLETIONS_SURFACE,OPENAI_RESPONSES_STREAM_SURFACE,OPENAI_RESPONSES_SURFACE,OPENAI_RESPONSES_WEBSOCKET_SURFACE,OpenAiApiError,OpenAiModel,ProviderSessionManager,RoutedModel,StaticModelSurfaceRouter,createAnthropicSurfaces,createDefaultWebSocketFactory,createOpenAiApiError,createOpenAiResponsesStreamParser,createOpenAiResponsesWebSocketEvent,createOpenAiSurfaces,fetchJsonResponse,fetchRawResponse,getCliDefaultModel,getDefaultMaxTokens,getDefaultModel,getFallbackModelLimits,getModelProfile,getOnboardingProviderKeys,getProviderDefaultModel,getProviderDefaultModels,getProviderLabel,getProviderProfile,iterateSseEvents,iterateWebSocketMessages,normalizeModelInfo,normalizeModelLimits,prepareProviderRequest,providerSupportsModelFetch,resolveApiCredential,resolveModelProfile,resolveSessionBaseUrl,toWebSocketUrl,trimTrailingSlashes,waitForWebSocketOpen};
|