@nuvin/agent-core 0.0.0-rc.2 → 0.0.0-rc.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/VERSION +2 -2
- package/dist/agent/agent.d.ts +28 -0
- package/dist/agent/context-compactor.d.ts +8 -0
- package/dist/agent/extension-registry.d.ts +3 -0
- package/dist/agent/index.d.ts +8 -30
- package/dist/agent/index.js +1 -1
- package/dist/agent/messages-to-text.d.ts +3 -0
- package/dist/agent/metrics.d.ts +30 -0
- package/dist/agent/topic-reminder-extension.d.ts +32 -0
- package/dist/agent/turn-engine.d.ts +3 -0
- package/dist/chunk-FFIZ6TKW.js +1 -0
- package/dist/chunk-HRU363DY.js +1 -0
- package/dist/chunk-NHBKADBW.js +1 -0
- package/dist/chunk-NYZR4XKO.js +1 -1
- package/dist/chunk-QDOE7NWO.js +1 -0
- package/dist/chunk-X7VAACWY.js +1 -1
- package/dist/formats/base64-image-content.d.ts +4 -0
- package/dist/formats/index.d.ts +4 -25
- package/dist/formats/index.js +1 -1
- package/dist/formats/message-format.d.ts +33 -0
- package/dist/formats/provider-adapters.d.ts +3 -0
- package/dist/hooks/executor.d.ts +3 -0
- package/dist/hooks/extensions.d.ts +28 -0
- package/dist/hooks/index.d.ts +7 -0
- package/dist/hooks/index.js +1 -0
- package/dist/hooks/registry.d.ts +8 -0
- package/dist/hooks/types.d.ts +40 -0
- package/dist/lsp/client.d.ts +11 -0
- package/dist/lsp/index.d.ts +24 -0
- package/dist/lsp/installer.d.ts +11 -0
- package/dist/lsp/language.d.ts +2 -0
- package/dist/lsp/server.d.ts +6 -0
- package/dist/lsp/types.d.ts +68 -0
- package/dist/models/anthropic-model.d.ts +27 -0
- package/dist/models/anthropic-surface.d.ts +5 -0
- package/dist/models/chat-model.d.ts +31 -0
- package/dist/models/github-model.d.ts +32 -0
- package/dist/models/http-transport.d.ts +10 -0
- package/dist/models/index.d.ts +16 -344
- package/dist/models/index.js +1 -1
- package/dist/models/mock-model.d.ts +15 -0
- package/dist/models/model-errors.d.ts +16 -0
- package/dist/models/model-limits.d.ts +7 -0
- package/dist/models/model-registry.d.ts +44 -0
- package/dist/models/model-surface-router.d.ts +19 -0
- package/dist/models/model-transports.d.ts +17 -0
- package/dist/models/openai-model.d.ts +67 -0
- package/dist/models/openai-surfaces.d.ts +74 -0
- package/dist/models/provider-adapter.d.ts +23 -0
- package/dist/models/provider-session.d.ts +16 -0
- package/dist/models/routed-model.d.ts +90 -0
- package/dist/shared/abort.d.ts +9 -0
- package/dist/shared/index.d.ts +5 -17
- package/dist/shared/index.js +1 -1
- package/dist/shared/reasoning-config.d.ts +5 -0
- package/dist/shared/turn-failed.d.ts +6 -0
- package/dist/shared/types.d.ts +737 -0
- package/dist/tools/ask-user-tool.d.ts +55 -0
- package/dist/tools/bash-tool.d.ts +63 -0
- package/dist/tools/command-tool.d.ts +23 -0
- package/dist/tools/file-edit-tool.d.ts +29 -0
- package/dist/tools/file-new-tool.d.ts +21 -0
- package/dist/tools/file-read-tool.d.ts +27 -0
- package/dist/tools/glob-tool.d.ts +26 -0
- package/dist/tools/grep-tool.d.ts +34 -0
- package/dist/tools/index.d.ts +28 -480
- package/dist/tools/index.js +1 -1
- package/dist/tools/internal-tool-runtime.d.ts +8 -0
- package/dist/tools/ls-tool.d.ts +20 -0
- package/dist/tools/lsp-tool.d.ts +36 -0
- package/dist/tools/mcp-oauth-provider.d.ts +11 -0
- package/dist/tools/mcp-server-manager.d.ts +43 -0
- package/dist/tools/mcp-tool-adapter.d.ts +47 -0
- package/dist/tools/mock-tool-runtime.d.ts +3 -0
- package/dist/tools/ripgrep.d.ts +20 -0
- package/dist/tools/runtime-manager-tools.d.ts +58 -0
- package/dist/tools/safe-fetch.d.ts +36 -0
- package/dist/tools/skill-tool.d.ts +33 -0
- package/dist/tools/todo-write-tool.d.ts +66 -0
- package/dist/tools/tool-output-offload.d.ts +12 -0
- package/dist/tools/tools.d.ts +24 -0
- package/dist/tools/update-topic-tool.d.ts +12 -0
- package/dist/tools/view-file-tool.d.ts +22 -0
- package/dist/tools/web-fetch-tool.d.ts +23 -0
- package/dist/tools/web-search-tool.d.ts +75 -0
- package/dist/tools/workspace-paths.d.ts +5 -0
- package/package.json +17 -4
- package/dist/chunk-G2FR4UGO.js +0 -1
- package/dist/chunk-LXQDGX4K.js +0 -1
- package/dist/chunk-VFTQW5WK.js +0 -1
- package/dist/provider-adapters-Cb5hUJoD.d.ts +0 -5
- package/dist/types-QPBW5jHO.d.ts +0 -695
package/dist/models/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x4538b7,_0x47a6cf){const _0x4855af={_0x6e6d6f:0xfa,_0x312215:0x1af,_0x2add5b:0x199,_0x7b1de3:0x15d,_0x54a770:0xeb,_0x269675:0x9a,_0x4eefce:0xd1,_0x390a5e:0xb7,_0x40f0a7:0xbc,_0x2a1379:0x118,_0x3665bb:0xb1,_0x478a58:0x17,_0x4003ee:0x6b,_0x3ff48b:0xe8,_0x2e0c0b:0xbd,_0x4daa48:0x27,_0x3a3c40:0xd7,_0x70d1aa:0x5c,_0x387c01:0x63,_0x1c5a73:0x1c,_0x523d39:0xd2,_0x10d6a6:0x30,_0x503480:0x1d,_0x52e176:0x97,_0x1961e8:0xae,_0x4e49ba:0x38,_0x5051d1:0x4e},_0x24b096={_0x2a6b05:0x259};function _0x656686(_0x5c5963,_0x213a15,_0x3fbedd,_0x212152){return _0x25f1(_0x5c5963- -_0x24b096._0x2a6b05,_0x212152);}function _0x1a2c88(_0x8872b8,_0x50cbcc,_0x33b9b4,_0x9f47c){return _0x25f1(_0x50cbcc- -0x267,_0x9f47c);}const _0x39323a=_0x4538b7();while(!![]){try{const _0x2e5541=parseInt(_0x656686(-_0x4855af._0x6e6d6f,-0x13a,-0x72,-_0x4855af._0x312215))/0x1*(-parseInt(_0x1a2c88(-_0x4855af._0x2add5b,-0x107,-0x156,-0x13a))/0x2)+parseInt(_0x1a2c88(-_0x4855af._0x7b1de3,-0xc5,-_0x4855af._0x54a770,-0xca))/0x3*(parseInt(_0x1a2c88(-_0x4855af._0x269675,-_0x4855af._0x4eefce,-_0x4855af._0x390a5e,-_0x4855af._0x40f0a7))/0x4)+-parseInt(_0x1a2c88(-0x36,-0xe4,-_0x4855af._0x2a1379,-_0x4855af._0x3665bb))/0x5*(parseInt(_0x656686(_0x4855af._0x478a58,0x5,_0x4855af._0x4003ee,0x5b))/0x6)+parseInt(_0x1a2c88(-0x16d,-_0x4855af._0x3ff48b,-_0x4855af._0x2e0c0b,-_0x4855af._0x4daa48))/0x7*(-parseInt(_0x1a2c88(_0x4855af._0x3a3c40,0x2f,-0x36,-_0x4855af._0x269675))/0x8)+-parseInt(_0x656686(-_0x4855af._0x70d1aa,_0x4855af._0x387c01,-0x4,-0xee))/0x9*(parseInt(_0x656686(-0x8c,_0x4855af._0x1c5a73,0xd,-0x7c))/0xa)+-parseInt(_0x1a2c88(-0x6e,-0x1f,-_0x4855af._0x523d39,-_0x4855af._0x10d6a6))/0xb+-parseInt(_0x656686(-_0x4855af._0x503480,-0x21,_0x4855af._0x52e176,-_0x4855af._0x1961e8))/0xc*(-parseInt(_0x1a2c88(-_0x4855af._0x4e49ba,0x1d,0xa5,_0x4855af._0x5051d1))/0xd);if(_0x2e5541===_0x47a6cf)break;else _0x39323a['push'](_0x39323a['shift']());}catch(_0x24eb97){_0x39323a['push'](_0x39323a['shift']());}}}(_0x35dd,0xb8971));import{toOpenAiResponsesRequest}from'../chunk-LXQDGX4K.js';import{resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig}from'../chunk-NYZR4XKO.js';import{getTextFromMessage,getToolResultBlocks,normalizeContent,toChatRequest,toModelRequest,toProviderModelRequest}from'../chunk-G2FR4UGO.js';import{addAbortListener,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';var ANTHROPIC_MESSAGES_SURFACE=_0x2b6123(0x28b,0x35b,0x2b7,0x22c),ANTHROPIC_MESSAGES_STREAM_SURFACE=_0x2b6123(0x1d5,0x1b7,0x239,0x245);function parseToolInput(_0x59edd8){try{return JSON['parse'](_0x59edd8);}catch{return _0x59edd8;}}function resolveReasoningVisibility(_0x19c802){const _0x37a579={_0x4caea3:0x2ca,_0x255b63:0x381,_0x5076cd:0x3c4},_0x5f185f={_0x208bd5:0x14e,_0x106891:0x76},_0x3d3e8c={_0x5cba3c:0x1cd,_0x543a28:0x9f,_0x3c3978:0x71};function _0x3533b0(_0x9cfff0,_0x4700cb,_0x4278d2,_0x24408c){return _0x2b6123(_0x9cfff0,_0x4700cb-_0x3d3e8c._0x5cba3c,_0x4278d2- -_0x3d3e8c._0x543a28,_0x24408c-_0x3d3e8c._0x3c3978);}function _0x56eec5(_0x195ede,_0x24b2c8,_0x297908,_0x1dac19){return _0x2b6123(_0x1dac19,_0x24b2c8-_0x5f185f._0x208bd5,_0x297908-0x86,_0x1dac19-_0x5f185f._0x106891);}return _0x19c802[_0x3533b0(0x2e0,0x2fc,_0x37a579._0x4caea3,_0x37a579._0x255b63)]?.[_0x56eec5(_0x37a579._0x5076cd,0x3ea,0x373,0x2f5)]??'user-visible';}function isUserVisibleThinking(_0x436f18){const _0x34e238={_0x475d89:0x253,_0x5a1475:0x19d,_0x7d10ee:0xb,_0x1809d9:0x37,_0x182477:0x32},_0x2d9917={_0xbfd783:0x1ee},_0x1febf0={_0x2dda8d:0x13c};function _0x453a1e(_0x18830e,_0x2280b7,_0x4e2942,_0x3f81e0){return _0x2b6123(_0x18830e,_0x2280b7-_0x1febf0._0x2dda8d,_0x2280b7- -0x2a9,_0x3f81e0-0x9d);}const _0x2e3f26=resolveAnthropicThinkingConfig(_0x436f18['reasoning']);function _0x2fa5c3(_0x133f0e,_0x2e2e39,_0x578672,_0x592b6d){return _0x2b6123(_0x2e2e39,_0x2e2e39-0x132,_0x133f0e- -0x4ba,_0x592b6d-_0x2d9917._0xbfd783);}return _0x2e3f26!==void 0x0&&_0x2e3f26[_0x2fa5c3(-0x1fb,-0x282,-_0x34e238._0x475d89,-_0x34e238._0x5a1475)]!=='disabled'&&resolveReasoningVisibility(_0x436f18)===_0x453a1e(-_0x34e238._0x7d10ee,0x2d,-_0x34e238._0x1809d9,-_0x34e238._0x182477);}function createAnthropicThinkingBody(_0x1ffc19){const _0x2b8257={_0x102cc2:0x200,_0x4607d9:0x1d5,_0x32fdd0:0x188,_0xe7cf63:0x10d,_0x24e76b:0x60,_0xf7d6ee:0x189,_0x422672:0xec,_0x18fc6d:0x173,_0x5c1960:0x11c,_0xfc9943:0x1eb,_0x3ec95a:0x125,_0x205618:0x10c,_0x6832b4:0x18c,_0x54d168:0x118,_0x223489:0x1c6,_0x2ab71b:0x1e0,_0x3f8818:0x200,_0x28dba1:0x1da,_0x1d3b6f:0x1a0,_0x27618a:0x143,_0x186cb9:0xc9,_0x261b63:0x23e,_0x27d00d:0x1f0,_0x333d2f:0x1ff,_0x453be5:0x246,_0x536334:0xb6,_0x30e910:0x9d,_0x59689f:0x118},_0x57153e={_0x35eff2:0xcc,_0x431d62:0x5ef,_0x7732c6:0x9a},_0x2dcd3={_0x26db6e:0x197};function _0x3debaf(_0x4611f3,_0x391cd1,_0x5135a9,_0x52455c){return _0x2b6123(_0x5135a9,_0x391cd1-0x15b,_0x391cd1- -0x1dc,_0x52455c-_0x2dcd3._0x26db6e);}function _0x131355(_0x358c2c,_0x338a67,_0x2648f0,_0x17970f){return _0x38c793(_0x2648f0,_0x338a67-_0x57153e._0x35eff2,_0x17970f- -_0x57153e._0x431d62,_0x17970f-_0x57153e._0x7732c6);}const _0xa1db61=resolveAnthropicThinkingConfig(_0x1ffc19[_0x3debaf(0x1bc,0x18d,0x111,0x118)]);if(!_0xa1db61||_0xa1db61[_0x131355(-0x1f9,-0x235,-0x29a,-_0x2b8257._0x102cc2)]===_0x3debaf(0x22d,_0x2b8257._0x4607d9,_0x2b8257._0x32fdd0,0x139))return{};const _0x37f518=_0xa1db61[_0x3debaf(0xfd,_0x2b8257._0xe7cf63,0x42,_0x2b8257._0x24e76b)]??(isUserVisibleThinking(_0x1ffc19)?_0x131355(-_0x2b8257._0xf7d6ee,-_0x2b8257._0x422672,-_0x2b8257._0x18fc6d,-_0x2b8257._0x5c1960):_0x3debaf(0xc7,0x160,0x1e3,_0x2b8257._0xfc9943)),_0x3d797a=_0xa1db61[_0x3debaf(_0x2b8257._0x3ec95a,_0x2b8257._0x205618,0x154,_0x2b8257._0x6832b4)]?{'anthropic-beta':_0x131355(-_0x2b8257._0x54d168,-0x287,-_0x2b8257._0x223489,-_0x2b8257._0x2ab71b)}:void 0x0;if(_0xa1db61[_0x131355(-0x183,-0x254,-0x19a,-_0x2b8257._0x3f8818)]===_0x131355(-0x18e,-0x15d,-_0x2b8257._0x28dba1,-_0x2b8257._0x1d3b6f))return{..._0x3d797a?{'headers':_0x3d797a}:{},'thinking':{'type':_0x3debaf(0x152,_0x2b8257._0x27618a,_0x2b8257._0x186cb9,0xd4),'budget_tokens':_0xa1db61[_0x3debaf(0x1e4,0x173,_0x2b8257._0x261b63,0x197)],'display':_0x37f518}};return{..._0x3d797a?{'headers':_0x3d797a}:{},'thinking':{'type':'adaptive',..._0xa1db61[_0x131355(-_0x2b8257._0x27d00d,-0x2f5,-_0x2b8257._0x333d2f,-_0x2b8257._0x453be5)]?{'effort':_0xa1db61[_0x3debaf(_0x2b8257._0x536334,_0x2b8257._0x30e910,_0x2b8257._0x59689f,0x150)]}:{},'display':_0x37f518}};}function toAnthropicRequestContent(_0x37f43b){const _0x4b2409={_0x3f6a27:0x694,_0x3d0948:0x699,_0x99fe26:0x52a,_0x56b0d8:0x505,_0x2e2ad9:0x4e6,_0x594f55:0x487,_0x504043:0x57c,_0xfa2b32:0x3df,_0x1d9612:0x47d,_0x55108c:0x430,_0x265166:0x3f0,_0x3892db:0x3ed,_0x17d05c:0x440,_0x56ba92:0x4ad,_0x4cb6dd:0x49b,_0x2e51bf:0x435,_0x98140:0x491,_0x4f8301:0x3a0,_0x26c3a3:0x46b,_0x44d2d6:0x31c,_0x4bb8f3:0x5f5,_0x194a33:0x5dc,_0x1d2aae:0x5b6,_0x564e3c:0x4cc,_0x14c1a6:0x4e0,_0x15d006:0x4bb,_0x37951c:0x499,_0xa82966:0x46b,_0x44d1c6:0x4cb,_0xaf6b86:0x5f4,_0x1a280f:0x4bb,_0x15ce00:0x568,_0x487d7c:0x5b9,_0x326630:0x4f5},_0x389a1e={_0x308038:0x10f};if(_0x37f43b['role']===_0x55b63f(_0x4b2409._0x3f6a27,0x636,_0x4b2409._0x3d0948,0x682)&&_0x37f43b[_0x1ab11a(_0x4b2409._0x99fe26,_0x4b2409._0x56b0d8,_0x4b2409._0x2e2ad9,0x487)]?.['anthropicAssistantContent'])return structuredClone(_0x37f43b[_0x1ab11a(0x47f,0x505,_0x4b2409._0x594f55,_0x4b2409._0x504043)][_0x1ab11a(_0x4b2409._0xfa2b32,_0x4b2409._0x1d9612,_0x4b2409._0x55108c,_0x4b2409._0x265166)]);function _0x55b63f(_0x315e0e,_0x1a0f38,_0x28ff20,_0x4f3808){return _0x2b6123(_0x4f3808,_0x1a0f38-0x117,_0x1a0f38-0x2c8,_0x4f3808-0xbd);}const _0x1d6b53=[];function _0x1ab11a(_0x44306d,_0xfe052d,_0x596ef7,_0x3ec3fd){return _0x38c793(_0x3ec3fd,_0xfe052d-_0x389a1e._0x308038,_0xfe052d-0x35,_0x3ec3fd-0x18d);}for(const _0x5c771c of normalizeContent(_0x37f43b[_0x1ab11a(_0x4b2409._0x3892db,_0x4b2409._0x17d05c,_0x4b2409._0x56ba92,0x3f3)])){if(_0x5c771c['type']===_0x1ab11a(_0x4b2409._0x4cb6dd,_0x4b2409._0x2e51bf,0x3e8,_0x4b2409._0x98140))continue;if(_0x5c771c['type']===_0x1ab11a(0x373,_0x4b2409._0x4f8301,_0x4b2409._0x26c3a3,_0x4b2409._0x44d2d6)){_0x1d6b53[_0x55b63f(_0x4b2409._0x4bb8f3,_0x4b2409._0x194a33,0x593,_0x4b2409._0x1d2aae)]({'type':_0x1ab11a(0x572,_0x4b2409._0x564e3c,_0x4b2409._0x14c1a6,0x593),'thinking':_0x5c771c['thinking'],'signature':_0x5c771c[_0x1ab11a(0x443,_0x4b2409._0x15d006,_0x4b2409._0x37951c,_0x4b2409._0xa82966)]});continue;}if(_0x5c771c[_0x55b63f(_0x4b2409._0x44d1c6,0x587,0x572,_0x4b2409._0xaf6b86)]===_0x55b63f(_0x4b2409._0x1a280f,_0x4b2409._0x15ce00,_0x4b2409._0x487d7c,0x5ca)){_0x1d6b53['push']({'type':'redacted_thinking','data':_0x5c771c['data']});continue;}_0x1d6b53[_0x1ab11a(0x51c,0x479,_0x4b2409._0x326630,0x41d)](structuredClone(_0x5c771c));}return _0x1d6b53;}function createAnthropicRequest(_0x5f15c9,_0x51e727){const _0x428363={_0x20dfd0:0x6c,_0x306262:0x73,_0x5c0a1f:0xef,_0x53877d:0x3a,_0x2f0216:0xf,_0x3caf6f:0xc1,_0x11a5dd:0x89,_0x6996e6:0x8e,_0x3b9524:0xd,_0x521bb0:0x8d,_0x5b058b:0x11,_0x23c68c:0x9a},_0x140147={_0x5d0313:0x4f2,_0x1bea98:0x4e4,_0x456d64:0x58c},_0x2cd9b8={_0x124f1b:0x4a9},_0x1e0ba5={_0xba0747:0x12b},_0xafc13e={_0x1c5334:0x46},_0xb676d0=toProviderModelRequest(_0x5f15c9);function _0x53f91a(_0x80de,_0x3cbb48,_0x3533ee,_0x58cef8){return _0x2b6123(_0x80de,_0x3cbb48-_0xafc13e._0x1c5334,_0x3533ee- -0x29b,_0x58cef8-0xd9);}const _0x4d6e17=createAnthropicThinkingBody(_0x5f15c9);function _0x229293(_0x43579a,_0x1940b9,_0xf5812c,_0x220e89){return _0x2b6123(_0x220e89,_0x1940b9-0x4a,_0xf5812c- -0x2d9,_0x220e89-_0x1e0ba5._0xba0747);}return{'accept':_0x51e727?_0x229293(-0x4d,_0x428363._0x20dfd0,_0x428363._0x306262,0x117):_0x53f91a(-0x69,0xab,-0x1a,-0xa2),'body':{..._0xb676d0,'messages':_0x5f15c9[_0x229293(-_0x428363._0x5c0a1f,-0xc3,-_0x428363._0x53877d,-0x20)]['map'](_0x1632ae=>{function _0x1a47d7(_0x1fa77b,_0x12db7d,_0x23029f,_0x180def){return _0x53f91a(_0x1fa77b,_0x12db7d-0xcd,_0x12db7d-_0x2cd9b8._0x124f1b,_0x180def-0x93);}return{'role':_0x1632ae[_0x1a47d7(_0x140147._0x5d0313,0x529,_0x140147._0x1bea98,_0x140147._0x456d64)],'content':toAnthropicRequestContent(_0x1632ae)};}),..._0x4d6e17[_0x229293(_0x428363._0x2f0216,0x44,0x8e,0x7a)]?{'thinking':_0x4d6e17[_0x229293(_0x428363._0x3caf6f,_0x428363._0x11a5dd,_0x428363._0x6996e6,0x100)]}:{},..._0x51e727?{'stream':!![]}:{}},..._0x4d6e17[_0x53f91a(_0x428363._0x3b9524,0x5e,-0x27,-_0x428363._0x521bb0)]?{'headers':_0x4d6e17['headers']}:{},'path':_0x229293(_0x428363._0x5b058b,0x11,0x9b,_0x428363._0x23c68c)};}function parseAnthropicResponse(_0x32e2f3,_0x2dfa0c){const _0x32f391={_0x459466:0x458,_0x463edc:0x49f,_0x1e1b66:0x3d1,_0x52a003:0x4ff,_0x121369:0x39e,_0x2c9dfc:0x448,_0x53887c:0x507,_0x55d3b6:0x41b,_0x4e8b5d:0x433,_0x2ac84e:0x421,_0x5add9f:0x46a,_0x12cd44:0x434,_0x4b7cfc:0x434,_0x45b796:0x451,_0x2e4f84:0x3d4,_0x1f7dbf:0x3ff,_0x1edc32:0x370,_0x5e4f6b:0x37c,_0x27b647:0x414,_0x522fba:0x3b8,_0xe0b40c:0x446,_0x34ca2e:0x4f9,_0x32f461:0x3d0,_0x4f2724:0x4f4,_0x3cae2e:0x38d,_0x1a215c:0x3c7,_0x5e8255:0x4a5,_0x21fdb4:0x4d4,_0x45a1da:0x4a2,_0x5ab588:0x397,_0x49784f:0x423,_0x359bae:0x373,_0x3bb63d:0x407,_0x4c931c:0x3d0,_0x24ca21:0x4b3,_0x22eadb:0x469,_0xf5a0c6:0x3ea,_0x2a5d98:0x380,_0xd8d982:0x436,_0x4ba89e:0x364,_0x360f1a:0x44f,_0x30e362:0x3c6,_0xfa47c7:0x34e,_0x32b3a8:0x339,_0x54d6a1:0x394},_0x959459={_0x22cb45:0x134,_0x3ce950:0x1f2},_0x82dcc2={_0x34d8e5:0x1a3},_0x1bc717=[];function _0x5d5296(_0x52ee2c,_0x1427f2,_0x30354f,_0x2c25f0){return _0x2b6123(_0x30354f,_0x1427f2-_0x82dcc2._0x34d8e5,_0x2c25f0-0x1e0,_0x2c25f0-0x1af);}const _0x2fd9d4=_0x32e2f3['content']??[];let _0x331cc7=![];function _0x429ade(_0x454524,_0x51c609,_0x18a10d,_0x1d993e){return _0x2b6123(_0x454524,_0x51c609-0xdc,_0x51c609-_0x959459._0x22cb45,_0x1d993e-_0x959459._0x3ce950);}for(const _0x2c3b05 of _0x2fd9d4){if(_0x2c3b05[_0x5d5296(0x43e,0x4bd,_0x32f391._0x459466,_0x32f391._0x463edc)]===_0x429ade(_0x32f391._0x1e1b66,0x49b,_0x32f391._0x52a003,0x433)){_0x331cc7=!![];isUserVisibleThinking(_0x2dfa0c)&&_0x1bc717[_0x429ade(_0x32f391._0x121369,_0x32f391._0x2c9dfc,0x3c5,_0x32f391._0x53887c)]({'type':_0x5d5296(0x3ee,0x3ae,0x3ad,_0x32f391._0x55d3b6),'thinking':_0x2c3b05['thinking'],'signature':_0x2c3b05[_0x429ade(_0x32f391._0x4e8b5d,0x48a,_0x32f391._0x2ac84e,_0x32f391._0x5add9f)]});continue;}if(_0x2c3b05['type']===_0x5d5296(0x382,_0x32f391._0x12cd44,0x398,_0x32f391._0x4b7cfc)){_0x331cc7=!![];isUserVisibleThinking(_0x2dfa0c)&&_0x1bc717[_0x429ade(0x42b,0x448,0x3d2,_0x32f391._0x45b796)]({'type':_0x429ade(0x38c,_0x32f391._0x2e4f84,0x3bc,_0x32f391._0x1f7dbf),'data':_0x2c3b05[_0x429ade(0x34d,0x3a4,_0x32f391._0x1edc32,_0x32f391._0x5e4f6b)]});continue;}if(_0x2c3b05[_0x5d5296(_0x32f391._0x27b647,0x4b0,0x55a,_0x32f391._0x463edc)]===_0x429ade(_0x32f391._0x522fba,_0x32f391._0xe0b40c,_0x32f391._0x34ca2e,_0x32f391._0x32f461)){_0x2c3b05[_0x429ade(0x497,0x446,0x3b9,0x49c)][_0x5d5296(0x4f9,_0x32f391._0x522fba,0x4e3,0x47b)]>0x0&&_0x1bc717[_0x5d5296(0x47f,0x44d,0x545,_0x32f391._0x4f2724)](structuredClone(_0x2c3b05));continue;}_0x1bc717[_0x429ade(0x388,0x448,_0x32f391._0x3cae2e,_0x32f391._0x1a215c)](structuredClone(_0x2c3b05));}return{'id':_0x32e2f3['id']??_0x429ade(0x487,0x40e,_0x32f391._0x5e8255,0x42d)+Date[_0x5d5296(_0x32f391._0x4b7cfc,0x428,0x4ea,_0x32f391._0x21fdb4)](),'content':_0x1bc717,'stopReason':_0x1bc717[_0x5d5296(0x61d,0x577,_0x32f391._0x45a1da,0x55d)](_0xf6f270=>_0xf6f270[_0x429ade(0x335,0x3f3,0x393,0x3f5)]==='tool_use')?'tool_use':_0x32e2f3[_0x429ade(0x2ed,_0x32f391._0x5ab588,_0x32f391._0x49784f,_0x32f391._0x359bae)]===_0x429ade(0x46c,_0x32f391._0x3bb63d,_0x32f391._0x4c931c,0x4d0)?_0x5d5296(0x546,0x433,0x4f6,_0x32f391._0x24ca21):_0x5d5296(_0x32f391._0x22eadb,_0x32f391._0xf5a0c6,_0x32f391._0x2a5d98,_0x32f391._0xd8d982),'usage':{'inputTokens':_0x32e2f3[_0x429ade(0x317,_0x32f391._0x4ba89e,0x3e4,0x2e7)]?.[_0x429ade(_0x32f391._0x360f1a,_0x32f391._0x30e362,_0x32f391._0xfa47c7,_0x32f391._0x32b3a8)]??0x0,'outputTokens':_0x32e2f3[_0x5d5296(0x3ef,0x3f0,_0x32f391._0x54d6a1,0x410)]?.['output_tokens']??0x0},..._0x331cc7?{'providerState':{'anthropicAssistantContent':structuredClone(_0x2fd9d4)}}:{}};}var AnthropicMessagesStreamParser=class{[_0x2b6123(0x267,0x1e3,0x2a6,0x2b0)]=new Map();[_0x38c793(0x4e5,0x50d,0x49a,0x3f4)]=0x0;[_0x2b6123(0x46b,0x3ca,0x3b9,0x42a)]=_0x38c793(0x3df,0x3f8,0x40a,0x3b6)+Date[_0x2b6123(0x287,0x234,0x2f4,0x25e)]();[_0x38c793(0x30e,0x390,0x36a,0x323)]=0x0;[_0x38c793(0x415,0x328,0x3dd,0x3ac)];[_0x2b6123(0x1ec,0x2d0,0x25a,0x1cb)]=_0x2b6123(0x293,0x1f3,0x256,0x2a5);constructor(_0x5150dc){const _0x10580c={_0x3c69aa:0x45e,_0x1d82c3:0x3fd},_0x387d08={_0x3d652a:0x1e6,_0x35cd09:0x126};function _0x121364(_0x2913a7,_0x42536,_0x17a6a6,_0x2a5aef){return _0x2b6123(_0x17a6a6,_0x42536-_0x387d08._0x3d652a,_0x2913a7-0x1b1,_0x2a5aef-_0x387d08._0x35cd09);}this[_0x121364(_0x10580c._0x3c69aa,0x4a9,_0x10580c._0x1d82c3,0x4ef)]=_0x5150dc;}[_0x2b6123(0x2b3,0x1e1,0x29c,0x20b)](_0x8788ff){const _0x3b432d={_0x1cd60b:0x385,_0x15470b:0x4f8,_0x2b1bc1:0x39d,_0xcc60f0:0x4ad,_0x420dbd:0x50d,_0x420d23:0x36f,_0x4984e7:0x436,_0x47c155:0x30b,_0x18abe7:0x3d2,_0x387e8d:0x4b3,_0x64de64:0x33d,_0x33ae0a:0x339,_0x5c3536:0x2b8,_0xc459bb:0x32b,_0x257b0d:0x357,_0x2000a6:0x2d1,_0x15090c:0x333,_0x289013:0x43d,_0x4f16ce:0x452,_0x3855a9:0x3d0,_0x119802:0x317,_0x4b1d3c:0x348,_0x410bde:0x431,_0x317126:0x4e4,_0x8a685f:0x4ea,_0x519faa:0x414,_0x42cd94:0x36c,_0x191632:0x46e,_0x1f98db:0x453,_0x5199e3:0x469,_0x37f3f0:0x401,_0x2ec1fd:0x3e1,_0x549a92:0x3a9,_0x237e0b:0x405,_0x446fcf:0x435,_0x44e7c2:0x3a0,_0x415dc2:0x3ec,_0x336467:0x315,_0x3e4556:0x3e7,_0x5377af:0x41f,_0x405935:0x42f,_0x838ed9:0x364,_0x40d7e1:0x453,_0x3ae5c3:0x491,_0x2e37dd:0x2ec,_0x4d8854:0x53e,_0x3edfe8:0x53e,_0x8e52e4:0x3a5,_0x3cc5ea:0x4ea,_0x91f65c:0x5ad,_0x55feba:0x3d7,_0x59f769:0x476,_0x482ae5:0x390,_0x43c062:0x409,_0x1769b7:0x36a,_0xc1e766:0x4bf,_0x2f74df:0x4fb,_0x44b4ec:0x4ce,_0x2ce060:0x4c8,_0x547f91:0x504,_0x4d2e62:0x3c8,_0x12d1f8:0x515,_0x269924:0x45f,_0x3afe78:0x480,_0xa07d4d:0x48f,_0x5c8f36:0x404,_0x51e520:0x3fa,_0xabddd4:0x43a,_0x11cfbf:0x416,_0x26ddfb:0x48c,_0x2489c9:0x448,_0x5db4ca:0x46b,_0x1153c3:0x4e8,_0x250e19:0x415,_0x11e08b:0x3d1,_0x40dd9c:0x3b2,_0x1b85ab:0x415,_0x122bec:0x464,_0x3c2164:0x408,_0x42edcd:0x42b,_0x344a31:0x420,_0x750f5f:0x4c2,_0x371e66:0x399,_0x4d9bb5:0x43f,_0x4694ee:0x4a6,_0x2b88d0:0x4fd,_0x663990:0x445,_0x534fa6:0x4bf,_0x65da1e:0x3af,_0x4cc2ec:0x444,_0x11e565:0x3bc,_0x319418:0x2ef,_0xd3b99a:0x431,_0x40fb69:0x48a,_0x150195:0x305,_0x564f9e:0x2d4,_0x10d27d:0x3ff,_0x222421:0x4cb,_0x3fec4d:0x49e,_0x29f776:0x410,_0x1838f2:0x408,_0x2deb89:0x444,_0x22abc3:0x376,_0x14dd27:0x494,_0x49fd71:0x493,_0x4a4efb:0x440,_0x19dc71:0x48e,_0x181c2b:0x46c,_0x4a162f:0x2ba,_0x57e671:0x43e,_0x43480d:0x433,_0x5d2ed6:0x3d4,_0x3b9cc2:0x460,_0x324fbf:0x42c,_0x60534d:0x37d,_0xf75e84:0x544,_0x1f3178:0x470,_0x3f395d:0x4bc,_0x220ff3:0x4fb,_0x52a7ba:0x3f4,_0x56c7b4:0x46c,_0x5b36fb:0x3df,_0x57c4b6:0x560,_0x54114c:0x54c,_0x10d5fb:0x4ea,_0x3e1233:0x457,_0x9484c4:0x4d1,_0xe7a4e1:0x3b0,_0x4077c8:0x48d,_0x7b44ef:0x50b,_0x3ba544:0x441,_0x571736:0x499,_0x48cd36:0x436,_0x255915:0x491,_0x4be047:0x472,_0x4b15c3:0x496,_0x29959c:0x31a,_0x2729f:0x3c4,_0xcbb877:0x377,_0x25e2c5:0x32c,_0x228765:0x3c8,_0x50579f:0x478,_0x5437a1:0x505,_0x3b84cd:0x44a,_0x5bbb80:0x412,_0x614c9f:0x365,_0x1979d0:0x32e,_0x39dd75:0x3dd,_0xc1f8b:0x3fd,_0x8cf38e:0x590,_0x11e30f:0x534,_0x59f83c:0x570,_0x536746:0x4d6,_0x17679a:0x497,_0xfd8106:0x3b8,_0x25d97b:0x46f,_0xc7f383:0x318},_0x1f0521={_0x8d8f8b:0x16c,_0x529b82:0x1c7},_0x3f1bcf={_0x35c9ae:0x6b,_0x2653fc:0x8};function _0x40119f(_0x3f4192,_0x4442ac,_0x178cf2,_0x4974c7){return _0x38c793(_0x4974c7,_0x4442ac-0x1db,_0x3f4192- -_0x3f1bcf._0x35c9ae,_0x4974c7-_0x3f1bcf._0x2653fc);}const _0x32e976=_0x8788ff[_0x40119f(0x3d2,0x446,_0x3b432d._0x1cd60b,0x37b)]('\x0a'),_0x924b9e=_0x32e976[_0x40119f(0x462,_0x3b432d._0x15470b,_0x3b432d._0x2b1bc1,0x406)](_0xf674dd=>_0xf674dd[_0x40119f(0x3b5,0x446,0x33e,0x43b)](_0x40119f(0x44e,0x4d8,0x420,0x384)))?.['slice'](0x6)['trim'](),_0x34ff7f=_0x32e976['filter'](_0x4a6361=>_0x4a6361['startsWith'](_0x40119f(0x33f,0x2f1,0x3dc,0x3a1)))[_0x20a203(0x522,0x516,_0x3b432d._0xcc60f0,_0x3b432d._0x420dbd)](_0x52cc48=>_0x52cc48[_0x20a203(0x4f5,0x463,0x3e5,0x4f3)](0x5)['trimStart']())['join']('\x0a')[_0x20a203(_0x3b432d._0x420d23,_0x3b432d._0x4984e7,0x3da,0x3b2)]();if(_0x34ff7f[_0x40119f(0x360,0x39d,0x2d2,_0x3b432d._0x47c155)]===0x0||_0x34ff7f==='[DONE]')return[];const _0x44b5d8=JSON[_0x20a203(_0x3b432d._0x18abe7,0x48b,0x430,_0x3b432d._0x387e8d)](_0x34ff7f);switch(_0x924b9e){case _0x40119f(_0x3b432d._0x64de64,0x34f,_0x3b432d._0x33ae0a,_0x3b432d._0x5c3536):{const _0x440e8f=_0x44b5d8['message'];this['messageId']=_0x440e8f?.['id']??this['messageId'],this['inputTokens']=_0x440e8f?.[_0x40119f(0x2f5,_0x3b432d._0xc459bb,0x236,0x2e9)]?.[_0x40119f(_0x3b432d._0x257b0d,_0x3b432d._0x2000a6,_0x3b432d._0x15090c,0x3cd)]??this[_0x40119f(0x42f,_0x3b432d._0x289013,0x3d7,_0x3b432d._0x4f16ce)];break;}case _0x40119f(_0x3b432d._0x3855a9,_0x3b432d._0x119802,_0x3b432d._0x4b1d3c,_0x3b432d._0x410bde):{const _0x4d4bb4=typeof _0x44b5d8[_0x20a203(0x54a,_0x3b432d._0x317126,_0x3b432d._0x8a685f,0x517)]===_0x20a203(0x3b3,_0x3b432d._0x519faa,_0x3b432d._0x42cd94,_0x3b432d._0x191632)?_0x44b5d8['index']:0x0,_0x352970=_0x44b5d8['content_block'];if(_0x352970?.[_0x20a203(0x494,_0x3b432d._0x1f98db,0x4c7,_0x3b432d._0x5199e3)]==='tool_use'&&_0x352970['id']&&_0x352970[_0x20a203(_0x3b432d._0x37f3f0,_0x3b432d._0x2ec1fd,_0x3b432d._0x549a92,_0x3b432d._0x237e0b)])return this['blocks'][_0x40119f(_0x3b432d._0x446fcf,0x488,0x3d8,_0x3b432d._0x44e7c2)](_0x4d4bb4,{'id':_0x352970['id'],'index':_0x4d4bb4,'inputJson':JSON[_0x20a203(_0x3b432d._0x415dc2,0x3d1,_0x3b432d._0x336467,_0x3b432d._0x3e4556)](_0x352970[_0x40119f(_0x3b432d._0x5377af,0x406,0x4ae,_0x3b432d._0x405935)]??{}),'kind':'tool_use','name':_0x352970['name']}),[{'type':'tool_use_delta','id':_0x352970['id'],'index':_0x4d4bb4,'name':_0x352970[_0x40119f(0x312,0x3cf,0x322,_0x3b432d._0x838ed9)]}];if(_0x352970?.[_0x20a203(0x48f,_0x3b432d._0x40d7e1,0x41a,0x4cb)]===_0x40119f(0x42c,_0x3b432d._0x3ae5c3,0x39b,0x481)){this[_0x40119f(0x36b,0x3fb,_0x3b432d._0x2e37dd,0x3b1)][_0x20a203(0x500,0x504,0x446,0x572)](_0x4d4bb4,{'index':_0x4d4bb4,'kind':'thinking','signature':typeof _0x352970[_0x20a203(_0x3b432d._0x4d8854,0x4ea,0x436,_0x3b432d._0x3edfe8)]===_0x40119f(0x390,0x3da,_0x3b432d._0x8e52e4,0x315)?_0x352970[_0x20a203(0x4eb,_0x3b432d._0x3cc5ea,0x4a9,_0x3b432d._0x91f65c)]:'','thinking':typeof _0x352970[_0x40119f(_0x3b432d._0x55feba,0x39b,_0x3b432d._0x59f769,0x43f)]===_0x40119f(_0x3b432d._0x482ae5,_0x3b432d._0x43c062,_0x3b432d._0x1769b7,0x34a)?_0x352970['text']:typeof _0x352970[_0x20a203(0x472,0x4fb,0x4ca,0x4be)]===_0x40119f(_0x3b432d._0x482ae5,0x3d6,0x3e9,0x32a)?String(_0x352970[_0x20a203(_0x3b432d._0xc1e766,_0x3b432d._0x2f74df,_0x3b432d._0x44b4ec,0x5b6)]):''});break;}if(_0x352970?.[_0x20a203(0x3a7,0x453,0x3fc,0x492)]==='redacted_thinking'){this[_0x40119f(0x36b,0x2a3,0x37e,0x400)][_0x20a203(_0x3b432d._0x2ce060,_0x3b432d._0x547f91,0x44e,0x47c)](_0x4d4bb4,{'index':_0x4d4bb4,'kind':_0x20a203(_0x3b432d._0x4d2e62,0x3e8,0x3c4,0x331),'data':typeof _0x352970['data']===_0x20a203(_0x3b432d._0x12d1f8,_0x3b432d._0x269924,_0x3b432d._0x3afe78,0x3fb)?String(_0x352970[_0x20a203(_0x3b432d._0xa07d4d,_0x3b432d._0x5c8f36,_0x3b432d._0x51e520,0x3d2)]):''});break;}this[_0x20a203(0x498,_0x3b432d._0xabddd4,_0x3b432d._0x11cfbf,0x425)]['set'](_0x4d4bb4,{'index':_0x4d4bb4,'kind':'text','text':_0x352970?.[_0x40119f(0x3d7,_0x3b432d._0x26ddfb,0x3ae,0x322)]??''});break;}case _0x40119f(_0x3b432d._0x2489c9,_0x3b432d._0x5db4ca,0x404,_0x3b432d._0x1153c3):{const _0xc2cff=typeof _0x44b5d8[_0x40119f(_0x3b432d._0x250e19,0x36e,_0x3b432d._0x11e08b,0x38e)]===_0x20a203(0x42a,0x414,_0x3b432d._0x40dd9c,0x483)?_0x44b5d8[_0x40119f(_0x3b432d._0x1b85ab,_0x3b432d._0x122bec,_0x3b432d._0x3c2164,0x4c4)]:0x0,_0x399b6a=this['blocks']['get'](_0xc2cff),_0x1be16a=_0x44b5d8['delta'];if(!_0x399b6a||!_0x1be16a?.['type'])break;if(_0x1be16a[_0x20a203(_0x3b432d._0x42edcd,0x453,0x47f,_0x3b432d._0x344a31)]===_0x40119f(0x3fb,_0x3b432d._0x750f5f,_0x3b432d._0x371e66,0x4bd)&&_0x399b6a['kind']==='text'&&typeof _0x1be16a[_0x20a203(_0x3b432d._0x4d9bb5,_0x3b432d._0x4694ee,_0x3b432d._0x2b88d0,_0x3b432d._0x663990)]===_0x20a203(_0x3b432d._0x534fa6,_0x3b432d._0x269924,_0x3b432d._0x65da1e,0x3dd))return _0x399b6a[_0x40119f(0x3d7,0x373,_0x3b432d._0x4cc2ec,_0x3b432d._0x11e565)]+=_0x1be16a[_0x20a203(0x56d,0x4a6,0x4de,0x414)],[{'type':'content_delta','index':_0xc2cff,'text':_0x1be16a['text']}];if(_0x1be16a[_0x40119f(0x384,0x411,_0x3b432d._0x319418,_0x3b432d._0xd3b99a)]===_0x40119f(0x3f9,_0x3b432d._0x40fb69,0x3e4,0x43f)&&_0x399b6a[_0x40119f(_0x3b432d._0x150195,_0x3b432d._0x564f9e,0x30e,0x282)]===_0x20a203(_0x3b432d._0x10d27d,0x467,0x488,_0x3b432d._0x222421)&&typeof _0x1be16a[_0x20a203(0x407,_0x3b432d._0x3fec4d,0x3f6,0x528)]==='string')return _0x399b6a[_0x40119f(_0x3b432d._0x29f776,0x364,_0x3b432d._0x1838f2,0x43e)]==='{}'&&(_0x399b6a[_0x20a203(0x452,0x4df,_0x3b432d._0x2deb89,0x473)]=''),_0x399b6a[_0x40119f(_0x3b432d._0x29f776,0x3cc,_0x3b432d._0x22abc3,_0x3b432d._0x1cd60b)]+=_0x1be16a[_0x20a203(0x502,0x49e,_0x3b432d._0x14dd27,0x47d)],[{'type':_0x20a203(0x4cd,0x476,_0x3b432d._0x49fd71,0x52f),'id':_0x399b6a['id'],'index':_0xc2cff,'inputDelta':_0x1be16a[_0x40119f(0x3cf,_0x3b432d._0x4a4efb,_0x3b432d._0x19dc71,_0x3b432d._0x181c2b)]}];if(_0x1be16a[_0x40119f(0x384,_0x3b432d._0x4a162f,0x3d2,_0x3b432d._0x57e671)]===_0x40119f(0x47a,0x3e7,0x4e0,_0x3b432d._0x43480d)&&_0x399b6a[_0x20a203(0x45e,_0x3b432d._0x5d2ed6,_0x3b432d._0x3b9cc2,0x321)]===_0x40119f(_0x3b432d._0x324fbf,0x38c,0x4af,_0x3b432d._0x60534d)){const _0x41e4a8=typeof _0x1be16a[_0x20a203(0x5a5,_0x3b432d._0x2f74df,_0x3b432d._0xf75e84,0x55a)]===_0x20a203(0x39f,_0x3b432d._0x269924,_0x3b432d._0x1f3178,0x441)?String(_0x1be16a[_0x20a203(_0x3b432d._0x3f395d,_0x3b432d._0x220ff3,0x555,0x467)]):'';if(_0x41e4a8[_0x20a203(_0x3b432d._0x181c2b,0x42f,0x3a0,_0x3b432d._0x52a7ba)]>0x0){_0x399b6a['thinking']+=_0x41e4a8;if(isUserVisibleThinking(this['request']))return[{'type':_0x40119f(0x3cd,0x39d,0x477,_0x3b432d._0x56c7b4),'index':_0xc2cff,'thinking':_0x41e4a8}];}}if(_0x1be16a['type']===_0x40119f(0x425,_0x3b432d._0x5b36fb,0x472,0x427)&&_0x399b6a['kind']===_0x20a203(_0x3b432d._0x57c4b6,0x4fb,_0x3b432d._0x54114c,0x5bf)){const _0x1d85f9=typeof _0x1be16a[_0x20a203(0x446,_0x3b432d._0x10d5fb,0x599,_0x3b432d._0x3e1233)]===_0x20a203(_0x3b432d._0x9484c4,0x45f,_0x3b432d._0xe7a4e1,_0x3b432d._0x750f5f)?String(_0x1be16a[_0x20a203(0x4e1,0x4ea,0x571,_0x3b432d._0x4077c8)]):'';if(_0x1d85f9['length']>0x0){_0x399b6a[_0x20a203(0x423,_0x3b432d._0x3cc5ea,0x436,0x423)]=_0x1d85f9;if(isUserVisibleThinking(this[_0x20a203(_0x3b432d._0x7b44ef,_0x3b432d._0x3ba544,0x4e4,0x41f)]))return[{'type':_0x20a203(_0x3b432d._0x4694ee,0x50f,0x4df,_0x3b432d._0x571736),'index':_0xc2cff,'signature':_0x1d85f9}];}}break;}case _0x20a203(_0x3b432d._0x48cd36,_0x3b432d._0x255915,_0x3b432d._0x4be047,_0x3b432d._0x4b15c3):{const _0x3a64e2=_0x44b5d8['delta'],_0x26ae5f=_0x44b5d8[_0x20a203(_0x3b432d._0x29959c,_0x3b432d._0x2729f,0x34a,_0x3b432d._0xcbb877)];this[_0x40119f(0x2ff,_0x3b432d._0x25e2c5,_0x3b432d._0x228765,0x2be)]=_0x26ae5f?.[_0x40119f(_0x3b432d._0x50579f,0x3e3,_0x3b432d._0x5437a1,_0x3b432d._0x3b84cd)]??this[_0x20a203(_0x3b432d._0x5bbb80,0x3ce,0x3e2,_0x3b432d._0x614c9f)],this['stopReason']=_0x3a64e2?.[_0x40119f(0x328,_0x3b432d._0x1979d0,0x301,0x34a)]===_0x20a203(0x4bc,0x467,0x4c8,_0x3b432d._0x40d7e1)?_0x20a203(_0x3b432d._0x39dd75,0x467,_0x3b432d._0xc1f8b,0x46a):'end_turn';break;}case _0x20a203(0x488,0x4d6,_0x3b432d._0x8cf38e,_0x3b432d._0x11e30f):{const _0x18a613=_0x44b5d8[_0x20a203(_0x3b432d._0x59f83c,_0x3b432d._0x536746,_0x3b432d._0x17679a,0x411)];throw new Error(_0x18a613?.['message']??_0x40119f(_0x3b432d._0xfd8106,_0x3b432d._0x25d97b,_0x3b432d._0xc7f383,0x403));}}function _0x20a203(_0x49517e,_0x2f05f6,_0x1b50e9,_0x5e5c8e){return _0x38c793(_0x49517e,_0x2f05f6-_0x1f0521._0x8d8f8b,_0x2f05f6-0x64,_0x5e5c8e-_0x1f0521._0x529b82);}return[];}[_0x2b6123(0x3c7,0x360,0x38e,0x458)](){const _0x4ac3a0={_0x351178:0x3b3,_0x676f32:0x468,_0x167d5b:0x3f9,_0x886451:0x4f7,_0x484c7c:0x4c3,_0x1b349b:0x4e1,_0x3a61f5:0x118,_0x18cd06:0xe1,_0x2cbe06:0x159,_0x115000:0x16d,_0x410b97:0x240,_0x44bced:0x468,_0x407c36:0x4f7,_0x21d02e:0x426,_0x50c67a:0x4e2,_0x3cba0e:0x45d,_0x258c79:0x44b,_0x2925e9:0x1b5,_0x5ef27c:0x1c5,_0x3f6670:0x12a,_0x11ad7a:0x16f,_0x2ac202:0x157,_0x30e1a6:0x390,_0x1b0261:0x36d,_0x59477e:0x402,_0x1cb3e5:0x4ca,_0x90b063:0x55f,_0x547e54:0x59d,_0x215bd3:0x520,_0x5e9589:0x58d,_0x34a2bc:0x449,_0x20af11:0x465,_0x26458b:0x1a0,_0x1bb4bb:0x208,_0x1e6dfe:0x2a1,_0xef927a:0x518,_0x329a9c:0x5cc,_0x2312e4:0x3a0,_0x52d162:0x3a2,_0x1b299f:0x3ab,_0x3233fb:0x416,_0x6a1ca:0x172,_0x59eabc:0x1b5,_0x7fad18:0x203,_0x1f6000:0x1fa,_0x499946:0x1f0,_0x2ad857:0x155,_0x334120:0x142,_0x13af06:0xd6,_0x59a3e0:0x63,_0x582ace:0x50d,_0x45f931:0x4b1,_0x2126f9:0x528,_0x13d68f:0x198,_0x317876:0x1d8,_0x9e227e:0x290,_0x1edb4a:0x42c,_0x85bbc3:0x4be,_0x37a412:0x42d,_0x3b98c2:0x43d,_0x4ae560:0x3fc,_0xdf40f0:0x431},_0x3a6827={_0x41ddf9:0x59,_0x1a7b3c:0xd1},_0x2cc983={_0xfb7e7:0x14b,_0x3e094a:0x168};function _0x58a84e(_0x426c11,_0x4f9d14,_0xb958fa,_0x27711c){return _0x2b6123(_0x426c11,_0x4f9d14-_0x2cc983._0xfb7e7,_0xb958fa-0x1c2,_0x27711c-_0x2cc983._0x3e094a);}const _0x2c2f83=Array['from'](this[_0x58a84e(0x4b3,_0x4ac3a0._0x351178,_0x4ac3a0._0x676f32,0x51e)][_0x58a84e(_0x4ac3a0._0x167d5b,0x416,0x4a9,_0x4ac3a0._0x886451)]())[_0x58a84e(0x421,0x486,_0x4ac3a0._0x484c7c,_0x4ac3a0._0x1b349b)]((_0x55e008,_0x41cd79)=>_0x55e008[_0x3eee00(0x284,0x1f1,0x13d,0x177)]-_0x41cd79[_0x3eee00(0x12c,0x1f1,0x221,0x143)]),_0x287d4c=[];function _0x3eee00(_0x23b092,_0x4b9c85,_0x180998,_0x5a70d5){return _0x38c793(_0x180998,_0x4b9c85-_0x3a6827._0x41ddf9,_0x4b9c85- -0x28f,_0x5a70d5-_0x3a6827._0x1a7b3c);}for(const _0x3d043c of _0x2c2f83){if(_0x3d043c[_0x3eee00(_0x4ac3a0._0x3a61f5,_0x4ac3a0._0x18cd06,_0x4ac3a0._0x2cbe06,0x144)]===_0x3eee00(0x22f,0x1b3,_0x4ac3a0._0x115000,_0x4ac3a0._0x410b97)){_0x3d043c[_0x58a84e(_0x4ac3a0._0x44bced,_0x4ac3a0._0x407c36,0x4d4,_0x4ac3a0._0x21d02e)][_0x58a84e(_0x4ac3a0._0x50c67a,0x49b,_0x4ac3a0._0x3cba0e,_0x4ac3a0._0x258c79)]>0x0&&_0x287d4c[_0x3eee00(0x1be,_0x4ac3a0._0x2925e9,_0x4ac3a0._0x5ef27c,0x25b)]({'type':_0x3eee00(_0x4ac3a0._0x3f6670,0x1b3,_0x4ac3a0._0x11ad7a,_0x4ac3a0._0x2ac202),'text':_0x3d043c['text']});continue;}if(_0x3d043c[_0x58a84e(_0x4ac3a0._0x30e1a6,_0x4ac3a0._0x1b0261,_0x4ac3a0._0x59477e,_0x4ac3a0._0x1cb3e5)]===_0x58a84e(_0x4ac3a0._0x90b063,_0x4ac3a0._0x547e54,0x529,_0x4ac3a0._0x215bd3)){_0x287d4c[_0x58a84e(_0x4ac3a0._0x5e9589,_0x4ac3a0._0x34a2bc,0x4d6,_0x4ac3a0._0x20af11)]({'type':'thinking','thinking':_0x3d043c[_0x3eee00(_0x4ac3a0._0x26458b,_0x4ac3a0._0x1bb4bb,_0x4ac3a0._0x1e6dfe,0x205)],'signature':_0x3d043c[_0x58a84e(0x5ba,0x46a,_0x4ac3a0._0xef927a,_0x4ac3a0._0x329a9c)]});continue;}if(_0x3d043c[_0x58a84e(_0x4ac3a0._0x2312e4,_0x4ac3a0._0x52d162,0x402,_0x4ac3a0._0x1b299f)]===_0x58a84e(0x435,0x3e9,_0x4ac3a0._0x3233fb,0x397)){_0x287d4c[_0x3eee00(_0x4ac3a0._0x6a1ca,_0x4ac3a0._0x59eabc,_0x4ac3a0._0x7fad18,0x270)]({'type':'redacted_thinking','data':_0x3d043c['data']});continue;}_0x287d4c[_0x3eee00(_0x4ac3a0._0x1f6000,0x1b5,_0x4ac3a0._0x499946,_0x4ac3a0._0x2ad857)]({'type':'tool_use','id':_0x3d043c['id'],'name':_0x3d043c[_0x3eee00(_0x4ac3a0._0x334120,0xee,_0x4ac3a0._0x13af06,_0x4ac3a0._0x59a3e0)],'input':parseToolInput(_0x3d043c[_0x58a84e(0x45b,0x570,_0x4ac3a0._0x582ace,0x571)][_0x58a84e(0x4ac,_0x4ac3a0._0x45f931,0x45d,_0x4ac3a0._0x2126f9)]>0x0?_0x3d043c['inputJson']:'{}')});}return parseAnthropicResponse({'id':this[_0x3eee00(_0x4ac3a0._0x13d68f,0x25a,_0x4ac3a0._0x317876,_0x4ac3a0._0x9e227e)],'type':_0x58a84e(_0x4ac3a0._0x1edb4a,0x3b6,0x474,_0x4ac3a0._0x85bbc3),'role':'assistant','content':_0x287d4c,'stop_reason':this['stopReason'],'stop_sequence':null,'usage':{'input_tokens':this['inputTokens'],'output_tokens':this[_0x58a84e(_0x4ac3a0._0x37a412,_0x4ac3a0._0x3b98c2,_0x4ac3a0._0x4ae560,_0x4ac3a0._0xdf40f0)]}},this['request']);}};function createAnthropicSurfaces(){const _0x1d6734={_0x17af88:0x36b,_0x424342:0xdf,_0x47f907:0xc4,_0x4eb062:0x7},_0x504f82={_0x444cf1:0x77};function _0x42194e(_0x55fd64,_0x26de0c,_0x2c187a,_0x301389){return _0x38c793(_0x301389,_0x26de0c-0x1b7,_0x2c187a- -0x29e,_0x301389-0x104);}function _0x5f42aa(_0x2fa778,_0x33568f,_0x2b3847,_0x3aa9ef){return _0x2b6123(_0x33568f,_0x33568f-0x2e,_0x2b3847-_0x504f82._0x444cf1,_0x3aa9ef-0x1d4);}return[{'id':ANTHROPIC_MESSAGES_SURFACE,'transport':_0x5f42aa(0x32a,0x2a2,0x2d0,_0x1d6734._0x17af88),'createRequest'(_0x2fa7d3){return createAnthropicRequest(_0x2fa7d3,![]);},'parseResponse'(_0xe8a2aa,_0x4782d8){return parseAnthropicResponse(_0xe8a2aa,_0x4782d8);}},{'id':ANTHROPIC_MESSAGES_STREAM_SURFACE,'transport':_0x42194e(_0x1d6734._0x424342,0x1a,_0x1d6734._0x47f907,_0x1d6734._0x4eb062),'createRequest'(_0xe120f2){return createAnthropicRequest(_0xe120f2,!![]);},'createStreamParser'(_0x1640d7){return new AnthropicMessagesStreamParser(_0x1640d7);}}];}var StaticModelSurfaceRouter=class{[_0x38c793(0x398,0x473,0x3eb,0x416)];[_0x38c793(0x2ef,0x2c6,0x35f,0x39d)];constructor(_0x53e5cc){const _0x647e9c={_0x2ccfac:0x5f8,_0x3ffca5:0x5f6,_0x130f20:0x66f,_0x463b80:0x5a4},_0x54984e={_0x1e3650:0x51};this[_0x33bcaa(0x568,_0x647e9c._0x2ccfac,0x4b9,0x5a7)]=_0x53e5cc['complete'];function _0x33bcaa(_0x2ff4ac,_0x5c5f7a,_0x5a85d7,_0x2820cb){return _0x38c793(_0x5a85d7,_0x5c5f7a-0xbb,_0x2ff4ac-0x17d,_0x2820cb-0x1b8);}function _0x5d75d2(_0x33ac4d,_0x251116,_0x4fc27a,_0x148ed5){return _0x2b6123(_0x33ac4d,_0x251116-0x7,_0x148ed5-_0x54984e._0x1e3650,_0x148ed5-0x12a);}this['streamSurface']=_0x53e5cc[_0x33bcaa(_0x647e9c._0x3ffca5,0x66c,_0x647e9c._0x130f20,_0x647e9c._0x463b80)];}['selectSurface'](_0x4d1c72,_0x5a4c1c){const _0x53d5f5={_0x3a0a93:0x265,_0x5c354a:0x1bb,_0x28958e:0x1f,_0xebfc40:0x170,_0xe11813:0x24e,_0x449d2d:0x22e},_0x546571={_0x5bd093:0x1f4};function _0x5069dd(_0xcc3702,_0x2708d9,_0x1a4941,_0xbe63bc){return _0x38c793(_0x1a4941,_0x2708d9-0x121,_0xcc3702- -0x5ac,_0xbe63bc-_0x546571._0x5bd093);}function _0x3a7b2(_0x1c2657,_0x2c4686,_0x14c0d7,_0x492520){return _0x38c793(_0x14c0d7,_0x2c4686-0x1c5,_0x2c4686- -0x410,_0x492520-0xf4);}return _0x5a4c1c[_0x5069dd(-0x1e9,-_0x53d5f5._0x3a0a93,-_0x53d5f5._0x5c354a,-0x14a)]===_0x3a7b2(-_0x53d5f5._0x28958e,0x69,0x90,0x3f)?this['streamSurface']:this[_0x5069dd(-0x1c1,-_0x53d5f5._0xebfc40,-_0x53d5f5._0xe11813,-_0x53d5f5._0x449d2d)];}};function trimTrailingSlashes(_0x48058d){const _0x272144={_0x5cf57e:0x343,_0x183e6c:0x364,_0x53fbf5:0x32a},_0x49414f={_0x25808b:0x8b,_0x3d6a1b:0x186,_0x5a08ff:0xd};function _0x22c12e(_0x584a1e,_0x100529,_0x1338f3,_0x58a2d9){return _0x38c793(_0x1338f3,_0x100529-_0x49414f._0x25808b,_0x584a1e- -_0x49414f._0x3d6a1b,_0x58a2d9-_0x49414f._0x5a08ff);}return _0x48058d[_0x22c12e(0x2da,_0x272144._0x5cf57e,_0x272144._0x183e6c,_0x272144._0x53fbf5)](/\/+$/,'');}function resolveApiCredential(_0x6bf615,_0x35b43e){const _0x395a16={_0xeefdb7:0x4cc,_0x2a4a7c:0x15d,_0x1956de:0x1c0},_0x2d6b04={_0x425961:0x98},_0x430e41={_0x34465b:0x1c8,_0x52dfcd:0x130};function _0x2e5dd0(_0x26d9ea,_0x406301,_0x32738e,_0x31a3a5){return _0x2b6123(_0x406301,_0x406301-0x134,_0x32738e- -_0x430e41._0x34465b,_0x31a3a5-_0x430e41._0x52dfcd);}if(_0x35b43e?.[_0x3c8b4d(0x359,0x41c,0x4dc,_0x395a16._0xeefdb7)])return _0x35b43e[_0x3c8b4d(0x3a7,0x41c,0x48c,0x4d7)];function _0x3c8b4d(_0x2fddbd,_0x7699be,_0x423607,_0x5aeaea){return _0x38c793(_0x5aeaea,_0x7699be-0x133,_0x7699be- -_0x2d6b04._0x425961,_0x5aeaea-0x13d);}if(!_0x6bf615)return void 0x0;return{'kind':_0x2e5dd0(_0x395a16._0x2a4a7c,0x19c,_0x395a16._0x1956de,0x238),'value':_0x6bf615};}function resolveSessionBaseUrl(_0x101d46,_0x4e3258){const _0x437532={_0x2d6ea8:0xf,_0xd76074:0x6f,_0x2ba3d3:0xe1,_0x26c003:0x35},_0x5e0c7d={_0x30338b:0x3d2,_0x4e32fa:0xb1};function _0x51cb52(_0x1d9159,_0x5d8673,_0x55bc9f,_0x16cb95){return _0x38c793(_0x16cb95,_0x5d8673-0x168,_0x5d8673-0x26,_0x16cb95-0x4d);}function _0x1d9438(_0x4a230d,_0x3b5e2a,_0x3a16ba,_0x5b772c){return _0x38c793(_0x3a16ba,_0x3b5e2a-0xd5,_0x3b5e2a- -_0x5e0c7d._0x30338b,_0x5b772c-_0x5e0c7d._0x4e32fa);}return trimTrailingSlashes(_0x4e3258?.[_0x1d9438(-_0x437532._0x2d6ea8,_0x437532._0xd76074,-0x26,_0x437532._0x2ba3d3)]?.[_0x1d9438(0xb8,_0x437532._0x26c003,0x14,0xe5)]??_0x101d46);}function toErrorMessage(_0x356af5){const _0x3670da={_0x2460a2:0x3a4,_0x113c82:0x3d,_0x40e59e:0x55,_0x4ed865:0x88,_0x407317:0x7e,_0x23478e:0x19},_0x3257ee={_0x482972:0x319,_0x38190e:0x3f},_0x496a13={_0x1f556c:0x193,_0x358d7c:0xf2,_0x1b8ae2:0xd3};function _0x87d7c0(_0x4491b5,_0x4de173,_0x5a6fd0,_0x53e808){return _0x2b6123(_0x5a6fd0,_0x4de173-_0x496a13._0x1f556c,_0x4de173-_0x496a13._0x358d7c,_0x53e808-_0x496a13._0x1b8ae2);}function _0x18af36(_0x591f5a,_0x3e1576,_0x14fff3,_0x52c302){return _0x2b6123(_0x3e1576,_0x3e1576-0x160,_0x52c302- -_0x3257ee._0x482972,_0x52c302-_0x3257ee._0x38190e);}if(_0x356af5 instanceof Error&&_0x356af5[_0x87d7c0(0x431,_0x3670da._0x2460a2,0x3dc,0x330)][_0x18af36(-_0x3670da._0x113c82,-_0x3670da._0x40e59e,-_0x3670da._0x4ed865,-_0x3670da._0x407317)]>0x0)return _0x356af5['message'];return _0x18af36(0x98,0x29,0x81,_0x3670da._0x23478e);}function createDefaultWebSocketFactory(){const _0x235696={_0x7593d4:0x4af,_0x14aa57:0x480,_0xaddc2b:0x45a},_0x3400ae={_0x23632a:0x1f1};return({headers:_0xd88590,url:_0x2b7cec})=>{const _0x4f9906=globalThis[_0x4c2e6a(_0x235696._0x7593d4,0x55b,_0x235696._0x14aa57,_0x235696._0xaddc2b)];function _0x4c2e6a(_0x43ae71,_0xa6c685,_0x48cab8,_0x247a25){return _0x25f1(_0x43ae71-_0x3400ae._0x23632a,_0x48cab8);}return new _0x4f9906(_0x2b7cec,{'headers':_0xd88590,'protocols':[]});};}async function*iterateSseEvents(_0x13b3a7,_0x187dde){const _0x4a8a2a={_0x4b17cb:0x57,_0x10fd0d:0x277,_0x1fcf8c:0x1f1,_0x26da05:0xe3,_0x413f96:0x75,_0x50b235:0x106,_0xadf783:0x164,_0x5c35f0:0x1d8,_0x33f92e:0x82,_0x22484a:0x115,_0x28fcba:0x61,_0x1b14a8:0x24d,_0x1cfacf:0x2f2},_0x509e2b={_0x1f9742:0x168,_0x1faae3:0xc3,_0x5ee7c6:0xab,_0x5a07f5:0x3b},_0x3a0d90={_0x1c87da:0x17a,_0x479ccf:0x17,_0x4ec713:0x73},_0x2f2a1d={_0x372101:0x384},_0x76a1c5={_0x2dc4e4:0x29b};function _0x53b4b9(_0x3a4e37,_0x3083cd,_0x26eb83,_0x5a2d45){return _0x38c793(_0x26eb83,_0x3083cd-0x190,_0x3083cd- -_0x76a1c5._0x2dc4e4,_0x5a2d45-0x1cd);}const _0x566e91=_0x13b3a7[_0x53b4b9(0xec,0xd4,_0x4a8a2a._0x4b17cb,0x166)]?.[_0x53b4b9(_0x4a8a2a._0x10fd0d,_0x4a8a2a._0x1fcf8c,0x245,0x24b)]();if(!_0x566e91)return;function _0x545560(_0x52c75c,_0x54776d,_0x303d09,_0x4317bb){return _0x2b6123(_0x303d09,_0x54776d-0x1c7,_0x54776d- -_0x2f2a1d._0x372101,_0x4317bb-0x2a);}const _0x4ed76b=new TextDecoder('utf-8');let _0x4f239f='';const _0x86df66=addAbortListener(_0x187dde,()=>{const _0x5b8628={_0x5bd472:0x12b,_0x1aeae4:0x5b9};function _0x4791b8(_0x56e68f,_0x3eb37e,_0x58df0b,_0x469b36){return _0x545560(_0x56e68f-_0x5b8628._0x5bd472,_0x58df0b-_0x5b8628._0x1aeae4,_0x56e68f,_0x469b36-0x71);}function _0x393533(_0x398cca,_0x44f15e,_0x57b318,_0x13475a){return _0x545560(_0x398cca-_0x3a0d90._0x1c87da,_0x13475a-_0x3a0d90._0x479ccf,_0x398cca,_0x13475a-_0x3a0d90._0x4ec713);}void _0x566e91[_0x393533(-0x127,-_0x509e2b._0x1f9742,-0xfe,-_0x509e2b._0x1faae3)](toAbortError(_0x187dde?.[_0x393533(-0x29,_0x509e2b._0x5ee7c6,0x2f,_0x509e2b._0x5a07f5)]))['catch'](()=>{});});try{while(!![]){throwIfAborted(_0x187dde);const {value:_0x3adf1e,done:_0xec4b1a}=await _0x566e91['read']();throwIfAborted(_0x187dde);if(_0xec4b1a)break;_0x4f239f+=_0x4ed76b[_0x53b4b9(0x24b,0x24d,0x1a6,0x1bb)](_0x3adf1e,{'stream':!![]});while(!![]){const _0x1c5bd0=_0x4f239f[_0x545560(-_0x4a8a2a._0x26da05,-_0x4a8a2a._0x413f96,0x34,-_0x4a8a2a._0x50b235)]('\x0a\x0a');if(_0x1c5bd0===-0x1)break;const _0x24671a=_0x4f239f['slice'](0x0,_0x1c5bd0);_0x4f239f=_0x4f239f[_0x53b4b9(0x1f3,_0x4a8a2a._0xadf783,0x12b,0x13a)](_0x1c5bd0+0x2),_0x24671a[_0x53b4b9(_0x4a8a2a._0x5c35f0,0x137,_0x4a8a2a._0x33f92e,_0x4a8a2a._0x22484a)]()[_0x545560(-0x59,-0xe9,-_0x4a8a2a._0x28fcba,-0x24)]>0x0&&(yield _0x24671a);}}_0x4f239f+=_0x4ed76b[_0x53b4b9(0x29e,_0x4a8a2a._0x1b14a8,_0x4a8a2a._0x1cfacf,0x27d)](),throwIfAborted(_0x187dde),_0x4f239f['trim']()['length']>0x0&&(yield _0x4f239f);}finally{_0x86df66();}}async function waitForWebSocketOpen(_0x57d6e3,_0x3f93fc){const _0x1aa18f={_0x16b49e:0x24b,_0x51a5ae:0x35a,_0x5cefd9:0x35f,_0x3fab36:0x2c6,_0x5a1fff:0x23a,_0x85f8e6:0x1f9,_0x5c25ce:0x337},_0x33d5e6={_0x463d13:0xcc},_0x1f198e={_0x1b23bd:0x1de,_0x523fc6:0x138,_0x32030f:0xf0,_0x482da4:0xb2},_0x59e497={_0x418814:0x2cb};if(_0x57d6e3['readyState']===WebSocket['OPEN']){throwIfAborted(_0x3f93fc);return;}throwIfAborted(_0x3f93fc),await new Promise((_0x41af25,_0x44d26a)=>{const _0x14b1ad={_0x1e8335:0x106},_0x54cdd3={_0x1a1043:0x4ef,_0x54227d:0x551,_0x25a59f:0x527,_0x5ecfbf:0x276,_0xcfc670:0x2a9,_0x59b53a:0x321,_0x5af63b:0x2cc,_0x564722:0x274,_0x581f91:0x2ba,_0x40271b:0x2a3},_0x403706={_0xac61ea:0x29b},_0x15f24d={_0x529fcd:0x62},_0x1790dd={_0x213fb3:0x3af,_0x3ce66f:0x309},_0x377d84=()=>{_0x3648c7(),_0x41af25();},_0x5bac92=_0x2dad3f=>{const _0x53d47a={_0xf8720c:0x82};_0x3648c7();function _0x55c697(_0x5e32e8,_0x1f19db,_0x3f69ea,_0x37a54e){return _0x25f1(_0x3f69ea-_0x53d47a._0xf8720c,_0x1f19db);}_0x44d26a(new Error(_0x2dad3f['message']||_0x55c697(0x33b,0x22f,_0x59e497._0x418814,0x381)));},_0x21f341=_0x1983d3=>{const _0xc39286={_0xe82ee9:0x44};_0x3648c7();function _0x2e5946(_0xd63987,_0xdb78b4,_0x243062,_0x474b6e){return _0x25f1(_0xdb78b4-_0xc39286._0xe82ee9,_0xd63987);}const _0x24f0ba=_0x1983d3;_0x44d26a(new Error(_0x24f0ba[_0x2e5946(_0x1790dd._0x213fb3,0x303,_0x1790dd._0x3ce66f,0x388)]||'WebSocket\x20closed\x20before\x20opening'));},_0x283d20=()=>{_0x3648c7();function _0xaedc23(_0x1f6e20,_0x43744b,_0x409dc7,_0x231f86){return _0x25f1(_0x231f86- -0x391,_0x1f6e20);}_0x57d6e3[_0x1d4996(_0x1f198e._0x1b23bd,0x22d,0x29c,0x1d9)]===WebSocket[_0xaedc23(-_0x1f198e._0x523fc6,-0xea,-0x39,-_0x1f198e._0x32030f)]&&_0x57d6e3['close'](0x3e8,_0xaedc23(-0x15,-_0x1f198e._0x482da4,-0x13e,-0xc0));function _0x1d4996(_0x5ca1a5,_0x4fdded,_0x3bfc86,_0x199290){return _0x25f1(_0x4fdded-_0x15f24d._0x529fcd,_0x5ca1a5);}_0x44d26a(toAbortError(_0x3f93fc?.['reason']));},_0x3648c7=()=>{const _0x28a71d={_0x14b1a9:0x1d};function _0x2c269f(_0x3bcfee,_0x4aa065,_0x5c2b05,_0x23cd76){return _0x25f1(_0x3bcfee-_0x28a71d._0x14b1a9,_0x5c2b05);}_0x57d6e3['removeEventListener'](_0x33d03f(0x56c,_0x54cdd3._0x1a1043,_0x54cdd3._0x54227d,0x512),_0x377d84);function _0x33d03f(_0x460287,_0x2a26fd,_0x3fcdfb,_0x3a0d0b){return _0x25f1(_0x2a26fd-_0x403706._0xac61ea,_0x3a0d0b);}_0x57d6e3[_0x33d03f(0x4be,_0x54cdd3._0x25a59f,0x55a,0x4bc)](_0x2c269f(_0x54cdd3._0x5ecfbf,0x2b0,0x256,0x249),_0x5bac92),_0x57d6e3['removeEventListener'](_0x2c269f(0x209,0x216,0x14d,0x2b0),_0x21f341),_0x3f93fc?.[_0x2c269f(_0x54cdd3._0xcfc670,0x33b,_0x54cdd3._0x59b53a,_0x54cdd3._0x5af63b)](_0x2c269f(_0x54cdd3._0x564722,_0x54cdd3._0x581f91,0x1e3,_0x54cdd3._0x40271b),_0x283d20);};_0x57d6e3[_0x5e3142(0x2c5,0x346,_0x1aa18f._0x16b49e,0x342)](_0x5e3142(_0x1aa18f._0x51a5ae,0x2ef,0x391,0x34a),_0x377d84);function _0x4da2b4(_0x27b363,_0x3fa21b,_0xa5f9c6,_0xf2f290){return _0x25f1(_0xa5f9c6-_0x33d5e6._0x463d13,_0x27b363);}function _0x5e3142(_0x216379,_0x1c0838,_0x29880d,_0x252b40){return _0x25f1(_0x216379-_0x14b1ad._0x1e8335,_0x252b40);}_0x57d6e3['addEventListener'](_0x5e3142(_0x1aa18f._0x5cefd9,0x409,0x3e7,_0x1aa18f._0x3fab36),_0x5bac92),_0x57d6e3[_0x5e3142(0x2c5,0x2e9,0x220,0x2f0)]('close',_0x21f341),_0x3f93fc?.[_0x4da2b4(_0x1aa18f._0x5a1fff,_0x1aa18f._0x85f8e6,0x28b,_0x1aa18f._0x5c25ce)]('abort',_0x283d20,{'once':!![]});});}function iterateWebSocketMessages(_0x3cd1c2,_0x3c4c46){const _0x198e25={_0x4569d1:0x9,_0x1a04b3:0xd0,_0x56b28a:0x1,_0x5303b1:0x62,_0x52af88:0x11,_0x21804a:0xc6,_0x56b9de:0x1ad,_0x13c4d4:0x188,_0x51e1ea:0x5b,_0x13afff:0xee,_0x4379b0:0x73,_0x25a9bc:0xd9,_0x1001fd:0x7,_0x24930f:0x59,_0x5f20d2:0x29,_0xf0321f:0x2a,_0x1e3848:0x6a},_0x5cf113={_0x4e0192:0x5be,_0x5fdd27:0x56e,_0x1b4f4a:0x524,_0x3e1a38:0x6d6,_0x53c6f9:0x41d,_0x595573:0x3cd,_0x1b94c7:0x625,_0xa86424:0x5a7,_0x135feb:0x5d7,_0x2a9f69:0x585},_0x3edcc4={_0x4c68eb:0x152,_0x18703b:0xdf},_0x17feea={_0x32de48:0x25e,_0x26ee65:0x2c2,_0x314322:0x242,_0xd34d3e:0x1a4,_0x19d99e:0x17d,_0x33be60:0x42,_0x1bdab8:0xac,_0x535983:0x2b,_0x2a3234:0x6c,_0xfaacfb:0x29c,_0x216c70:0x92,_0x1d799d:0x7},_0x356495={_0x94ee79:0x5f7,_0x1380c1:0x612,_0x580c03:0x47d},_0x2edb29={_0x3cd5f7:0x130},_0x2c877a={_0x4955f4:0x4c2,_0x32d13e:0x54a,_0x167b65:0x403,_0x227522:0x608,_0x572a52:0x5cc,_0x20ad5f:0x637},_0x529f77={_0x59c3ec:0x2f9},_0x49f1f5={_0x193599:0x383},_0x529f15={_0x4c4ad6:0x157,_0x8eb20d:0x9b},_0x1ebe02={_0x79ff6c:0x3f2,_0x4a3d85:0x46c,_0x2c15a5:0x534,_0x49553d:0x3d7,_0x223bdb:0x241,_0x97eaf4:0x2c3},_0x2408ea=[];let _0x50e148=![],_0x29c96d,_0x31d18f;const _0x1adc22=_0x4231db=>{const _0x1b8682={_0x1dfa77:0x19};function _0x5d93d4(_0xb40def,_0x2649f8,_0x494698,_0x213359){return _0x25f1(_0x2649f8-0x25e,_0x494698);}function _0xb8186d(_0x463487,_0x12bd7b,_0x4c0e29,_0x44e4d5){return _0x25f1(_0x463487- -_0x1b8682._0x1dfa77,_0x12bd7b);}const _0x19b31d=_0x4231db;try{_0x2408ea[_0x5d93d4(0x471,0x489,_0x1ebe02._0x79ff6c,0x4ef)](JSON[_0x5d93d4(0x45b,_0x1ebe02._0x4a3d85,_0x1ebe02._0x2c15a5,_0x1ebe02._0x49553d)](String(_0x19b31d['data']))),_0x31d18f?.(),_0x31d18f=void 0x0;}catch(_0x95b4eb){_0x29c96d=new Error(_0xb8186d(_0x1ebe02._0x223bdb,0x218,0x225,_0x1ebe02._0x97eaf4)+toErrorMessage(_0x95b4eb)),_0x31d18f?.(),_0x31d18f=void 0x0;}};function _0x245c8e(_0x5ea19b,_0x453553,_0x27e652,_0x40b826){return _0x2b6123(_0x5ea19b,_0x453553-_0x529f15._0x4c4ad6,_0x27e652- -0x430,_0x40b826-_0x529f15._0x8eb20d);}const _0x2248cd=_0x3cc835=>{const _0x492735=_0x3cc835;function _0xa84928(_0x432e88,_0x475a49,_0x41412f,_0x425ed4){return _0x25f1(_0x475a49-_0x49f1f5._0x193599,_0x432e88);}function _0x4b33d0(_0x557402,_0x68c1fc,_0x299210,_0x1d4ebb){return _0x25f1(_0x557402-_0x529f77._0x59c3ec,_0x1d4ebb);}_0x29c96d=new Error(_0x492735[_0x4b33d0(_0x2c877a._0x4955f4,_0x2c877a._0x32d13e,0x534,_0x2c877a._0x167b65)]||_0xa84928(_0x2c877a._0x227522,_0x2c877a._0x572a52,_0x2c877a._0x20ad5f,0x5ab)),_0x31d18f?.(),_0x31d18f=void 0x0;},_0x27e5bc=_0x413fbf=>{function _0x3c1a65(_0x121e6e,_0x48d6e9,_0xebd8ff,_0x1866cf){return _0x25f1(_0xebd8ff-_0x2edb29._0x3cd5f7,_0x121e6e);}const _0x124ba8=_0x413fbf;function _0x2eaf45(_0x2e4dc7,_0x4575a8,_0x15b901,_0x12e5b9){return _0x25f1(_0x2e4dc7-0x322,_0x15b901);}!_0x50e148&&_0x124ba8[_0x2eaf45(_0x356495._0x94ee79,0x68b,_0x356495._0x1380c1,0x581)]!==0x3e8&&!_0x29c96d&&(_0x29c96d=new Error(_0x124ba8['reason']||_0x3c1a65(_0x356495._0x580c03,0x381,0x3dd,0x3b4)+_0x124ba8[_0x2eaf45(0x5f7,0x695,0x6bd,0x543)])),_0x50e148=!![],_0x31d18f?.(),_0x31d18f=void 0x0;},_0x4eab76=addAbortListener(_0x3c4c46,()=>{_0x29c96d=toAbortError(_0x3c4c46?.[_0x201f19(_0x17feea._0x32de48,0x312,_0x17feea._0x26ee65,_0x17feea._0x314322)]);_0x3cd1c2[_0x55b2f1(-_0x17feea._0xd34d3e,-0x101,-_0x17feea._0x19d99e,-_0x17feea._0x33be60)]===WebSocket[_0x55b2f1(-_0x17feea._0x1bdab8,-_0x17feea._0x535983,0x1a,_0x17feea._0x2a3234)]&&_0x3cd1c2[_0x201f19(0x157,_0x17feea._0xfaacfb,0x1ef,0x1da)](0x3e8,_0x55b2f1(0x21,0x5,-_0x17feea._0x216c70,-_0x17feea._0x1d799d));_0x31d18f?.();function _0x201f19(_0x54f810,_0x21f022,_0x3ccfc8,_0x1f25d4){return _0x25f1(_0x3ccfc8-0x3,_0x1f25d4);}function _0x55b2f1(_0x16ac19,_0x18e1df,_0x20c6ae,_0x46a48d){return _0x25f1(_0x18e1df- -0x2cc,_0x20c6ae);}_0x31d18f=void 0x0;});_0x3cd1c2[_0x20c087(-_0x198e25._0x4569d1,-_0x198e25._0x1a04b3,0x8e,-0x29)](_0x20c087(_0x198e25._0x56b28a,_0x198e25._0x5303b1,_0x198e25._0x52af88,_0x198e25._0x21804a),_0x1adc22),_0x3cd1c2[_0x245c8e(-0x251,-_0x198e25._0x56b9de,-_0x198e25._0x13c4d4,-0x1c3)](_0x245c8e(-_0x198e25._0x51e1ea,-0x1a5,-_0x198e25._0x13afff,-_0x198e25._0x4379b0),_0x2248cd),_0x3cd1c2['addEventListener'](_0x20c087(0x24,_0x198e25._0x25a9bc,_0x198e25._0x1001fd,-_0x198e25._0x24930f),_0x27e5bc);function _0x20c087(_0x1e6a58,_0x353729,_0x276def,_0x1a688d){return _0x2b6123(_0x353729,_0x353729-0x154,_0x1e6a58- -0x2b1,_0x1a688d-0x1c7);}return{async*[Symbol[_0x20c087(_0x198e25._0x4569d1,-_0x198e25._0x5f20d2,-_0x198e25._0xf0321f,_0x198e25._0x1e3848)]](){const _0x5c5606={_0x1cb42a:0xd6};function _0x2f46be(_0x54d86a,_0xfc8bb1,_0x3f9af9,_0x430c37){return _0x20c087(_0x3f9af9-0x561,_0x54d86a,_0x3f9af9-_0x5c5606._0x1cb42a,_0x430c37-0x186);}function _0x129571(_0x206ed1,_0x372aa0,_0xc48a41,_0x47ee5a){return _0x245c8e(_0xc48a41,_0x372aa0-_0x3edcc4._0x4c68eb,_0x372aa0-0x5f8,_0x47ee5a-_0x3edcc4._0x18703b);}try{while(!![]){if(_0x29c96d)throw _0x29c96d;if(_0x2408ea['length']>0x0){yield _0x2408ea[_0x2f46be(0x607,_0x5cf113._0x4e0192,_0x5cf113._0x5fdd27,_0x5cf113._0x1b4f4a)]();continue;}if(_0x50e148)break;await new Promise(_0x107779=>{_0x31d18f=_0x107779;});}}finally{_0x3cd1c2[_0x2f46be(_0x5cf113._0x3e1a38,0x67c,0x625,0x5c1)](_0x129571(_0x5cf113._0x53c6f9,0x47a,0x43a,_0x5cf113._0x595573),_0x1adc22),_0x3cd1c2[_0x2f46be(0x5ae,0x5ce,_0x5cf113._0x1b94c7,0x6ea)](_0x2f46be(0x565,0x568,0x5f2,_0x5cf113._0xa86424),_0x2248cd),_0x3cd1c2['removeEventListener'](_0x2f46be(_0x5cf113._0x135feb,0x5ac,_0x5cf113._0x2a9f69,0x586),_0x27e5bc),_0x4eab76();}}};}function toWebSocketUrl(_0x308e1c,_0x6eca10){const _0x3e76ef={_0x5ebdde:0x492,_0x264cb6:0x4ce,_0x34bc2e:0x460,_0x1aa2ad:0x479,_0xf80d83:0x537,_0x5c9e05:0x516,_0x4f18cf:0x3cb},_0x3a7b53={_0x372599:0x64,_0x4a7289:0xa},_0xba05f={_0x3e7193:0x47f},_0x337799=new URL(_0x6eca10,_0x308e1c);function _0x4961d5(_0x42e698,_0x83529e,_0x26881b,_0x2c9aaf){return _0x2b6123(_0x83529e,_0x83529e-0x48,_0x42e698- -_0xba05f._0x3e7193,_0x2c9aaf-0x1aa);}function _0x54046a(_0x21a8c3,_0x99c35d,_0x947033,_0x3a7e23){return _0x2b6123(_0x99c35d,_0x99c35d-_0x3a7b53._0x372599,_0x21a8c3-0x1e5,_0x3a7e23-_0x3a7b53._0x4a7289);}return _0x337799['protocol']=_0x337799['protocol']===_0x54046a(0x40e,_0x3e76ef._0x5ebdde,0x368,0x450)?_0x54046a(0x48c,0x4ba,0x519,_0x3e76ef._0x264cb6):_0x54046a(0x437,0x3a9,_0x3e76ef._0x34bc2e,0x47d),_0x337799[_0x54046a(_0x3e76ef._0x1aa2ad,_0x3e76ef._0xf80d83,_0x3e76ef._0x5c9e05,_0x3e76ef._0x4f18cf)]();}var ProviderSessionManager=class{[_0x2b6123(0x403,0x289,0x341,0x32a)];[_0x38c793(0x482,0x4ed,0x494,0x53a)];constructor(_0x6e3947){const _0x1ac21a={_0x1c3465:0x1c6,_0x203279:0x140},_0x4b12d4={_0x12cd61:0xe2,_0x1d3577:0x16b};function _0x423bc2(_0x489a2c,_0x2f4a25,_0x3f65d5,_0x337db5){return _0x2b6123(_0x2f4a25,_0x2f4a25-_0x4b12d4._0x12cd61,_0x337db5- -0x481,_0x337db5-_0x4b12d4._0x1d3577);}this[_0x423bc2(-0x179,-0x193,-_0x1ac21a._0x1c3465,-_0x1ac21a._0x203279)]=_0x6e3947;}async['resolve'](_0x124ea8){const _0x59eeb1={_0x52948d:0x248,_0x2277e5:0x2d4,_0x565a38:0x183,_0x3648d9:0x1ae,_0x2eedb9:0x1c0},_0x51fb7a={_0x31304a:0x11b};function _0x4cd285(_0x13647e,_0xcf8308,_0x2d5175,_0x3352bb){return _0x38c793(_0x2d5175,_0xcf8308-0x126,_0x13647e- -0x236,_0x3352bb-0x8f);}!this[_0x4cd285(0x25e,_0x59eeb1._0x52948d,_0x59eeb1._0x2277e5,0x296)]&&(this[_0x3e107b(-0xd3,-0x106,-0x154,-0x37)]=this[_0x3e107b(-0xf6,-_0x59eeb1._0x565a38,-_0x59eeb1._0x3648d9,-_0x59eeb1._0x2eedb9)][_0x3e107b(-0x96,-0x2a,0x4,-0x118)](_0x124ea8));function _0x3e107b(_0x15ff98,_0x40904d,_0x5821bd,_0x4292b7){return _0x38c793(_0x5821bd,_0x40904d-0x2,_0x15ff98- -0x567,_0x4292b7-_0x51fb7a._0x31304a);}return structuredClone(await this['cached']);}['invalidate'](){const _0x335087={_0x4f9bb0:0xe4,_0x2a4821:0x3c},_0x46a80b={_0xbc6a2f:0x40,_0x481c1d:0x3cd};function _0x45bd1f(_0x532b17,_0x8cfad7,_0x4d9a25,_0x722975){return _0x2b6123(_0x532b17,_0x8cfad7-_0x46a80b._0xbc6a2f,_0x4d9a25- -_0x46a80b._0x481c1d,_0x722975-0xe6);}this[_0x45bd1f(-_0x335087._0x4f9bb0,-0xb7,-0x69,-_0x335087._0x2a4821)]=void 0x0;}};async function prepareProviderRequest(_0x53895f,_0x1b44dd={}){const _0x1e1523={_0x125094:0x2a3,_0x30ad18:0x1f0,_0x3852f3:0x225,_0x3b8fb3:0x21c,_0x239046:0x146,_0x1384ae:0x160,_0x5a2f72:0x196,_0x3aba3e:0xbd,_0x33fc12:0x158},_0x4b691e={_0x25b34c:0x82};function _0x4dcc2c(_0x1ca7e5,_0x42142e,_0x24eb5e,_0x174936){return _0x2b6123(_0x1ca7e5,_0x42142e-0x196,_0x24eb5e- -0x1c4,_0x174936-0x18);}function _0x475da2(_0x29cc66,_0x1e1494,_0x2ce258,_0x2600df){return _0x38c793(_0x1e1494,_0x1e1494-0xd6,_0x2600df- -0x2ee,_0x2600df-_0x4b691e._0x25b34c);}let _0x242b0c={'request':structuredClone(_0x53895f),'session':_0x1b44dd[_0x4dcc2c(0x1ce,_0x1e1523._0x125094,_0x1e1523._0x30ad18,_0x1e1523._0x3852f3)]?await _0x1b44dd[_0x4dcc2c(_0x1e1523._0x3b8fb3,_0x1e1523._0x239046,0x1f0,0x21f)]['resolve'](_0x1b44dd['signal']):void 0x0};for(const _0x2a3763 of _0x1b44dd[_0x475da2(_0x1e1523._0x1384ae,_0x1e1523._0x5a2f72,_0x1e1523._0x3aba3e,_0x1e1523._0x33fc12)]??[]){_0x242b0c=await _0x2a3763(_0x242b0c);}return _0x242b0c;}var RoutedModel=class{[_0x38c793(0x51c,0x4a9,0x4ac,0x4e2)];[_0x2b6123(0x1e9,0x1b0,0x26f,0x312)];[_0x38c793(0x498,0x3f2,0x499,0x524)];['apiKey'];[_0x2b6123(0x37a,0x356,0x399,0x463)];['fetchImpl'];[_0x38c793(0x32f,0x2e4,0x36e,0x3b7)];['requestMutators'];[_0x2b6123(0x1ef,0x262,0x27d,0x1dc)];[_0x2b6123(0x360,0x314,0x3b4,0x458)];[_0x2b6123(0x3a6,0x36d,0x3ab,0x3a6)];[_0x2b6123(0x345,0x319,0x2fb,0x3a5)]=new Map();constructor(_0x4284b0){const _0x1f43d6={_0x2238d:0x471,_0x54ac0c:0x417,_0x5ee0ec:0x3f8,_0xc11dd6:0x3f2,_0x38f177:0x425,_0x525a93:0x314,_0x2d47b2:0x200,_0x607f35:0x45e,_0x1ac183:0x442,_0x2fddcf:0x43b,_0x56f231:0x38e,_0x5b8c4e:0x48e,_0x1f9478:0x544,_0x1cbfdf:0x4fc,_0x2a203e:0x2ab,_0x2c3bab:0x452,_0x5952bb:0x3ad,_0x533bcc:0x4c2,_0x18dd2e:0x210,_0xaa497a:0x1c0,_0x43f198:0xf1,_0xb866c1:0x123,_0x1e75a8:0x40b,_0x340d9c:0x4bb,_0x5485e8:0x482,_0xcf7f6f:0x385,_0x37472b:0x360,_0x4602cc:0x2b6,_0x9f7141:0x331,_0x3fe097:0x3cf,_0x2b0011:0x130,_0x13cffa:0x189,_0x11ad19:0x9f,_0x175280:0x267,_0x5dcedc:0x343,_0x92257c:0x3a0,_0x5e6619:0x4a0,_0x509339:0x47a,_0x514980:0x25e,_0x1f6897:0x3f0,_0x3285b0:0x3ee},_0x2f4853={_0x17e8c9:0x3d,_0x22898e:0x5f},_0x3eaf1e={_0x33e9a7:0x111,_0x5022db:0xf5,_0x1b73e4:0xd};this['model']=_0x4284b0[_0x5e0b74(_0x1f43d6._0x2238d,0x513,_0x1f43d6._0x54ac0c,_0x1f43d6._0x5ee0ec)],this[_0x5e0b74(0x364,_0x1f43d6._0xc11dd6,0x3ee,_0x1f43d6._0x38f177)]=_0x4284b0[_0x5e0b74(0x364,0x3dd,0x2af,_0x1f43d6._0x525a93)]??0x4000,this[_0x5e7bea(0x21c,0x15f,_0x1f43d6._0x2d47b2,0x282)]=_0x4284b0[_0x5e0b74(_0x1f43d6._0x607f35,0x49a,0x3c1,_0x1f43d6._0x1ac183)]?structuredClone(_0x4284b0[_0x5e0b74(0x45e,0x3e4,0x4ae,_0x1f43d6._0x2fddcf)]):void 0x0,this[_0x5e0b74(0x3fc,0x364,_0x1f43d6._0x56f231,0x3ee)]=_0x4284b0['apiKey'],this['baseUrl']=_0x4284b0[_0x5e0b74(_0x1f43d6._0x5b8c4e,0x50b,_0x1f43d6._0x1f9478,_0x1f43d6._0x1cbfdf)],this[_0x5e0b74(0x35e,0x3e4,_0x1f43d6._0x2a203e,0x3b9)]=_0x4284b0[_0x5e0b74(_0x1f43d6._0x2c3bab,_0x1f43d6._0x5952bb,_0x1f43d6._0x533bcc,0x480)]??globalThis[_0x5e7bea(_0x1f43d6._0x18dd2e,_0x1f43d6._0xaa497a,0x2d5,0x146)],this['providerAdapter']=_0x4284b0[_0x5e7bea(_0x1f43d6._0x43f198,0x107,0xd6,_0x1f43d6._0xb866c1)],this[_0x5e0b74(_0x1f43d6._0x1e75a8,0x3a7,_0x1f43d6._0x340d9c,_0x1f43d6._0x5485e8)]=_0x4284b0[_0x5e0b74(_0x1f43d6._0x1e75a8,_0x1f43d6._0xcf7f6f,0x4ad,_0x1f43d6._0x37472b)]??[];function _0x5e0b74(_0x535fca,_0x401755,_0x33f63b,_0xb8402c){return _0x2b6123(_0xb8402c,_0x401755-_0x3eaf1e._0x33e9a7,_0x535fca-_0x3eaf1e._0x5022db,_0xb8402c-_0x3eaf1e._0x1b73e4);}this[_0x5e0b74(0x372,_0x1f43d6._0x4602cc,_0x1f43d6._0x9f7141,_0x1f43d6._0x3fe097)]=_0x4284b0[_0x5e7bea(_0x1f43d6._0x2b0011,_0x1f43d6._0x13cffa,0x14e,_0x1f43d6._0x11ad19)];function _0x5e7bea(_0x52b375,_0x55b01f,_0xdd10e3,_0x4e7295){return _0x2b6123(_0x55b01f,_0x55b01f-_0x2f4853._0x17e8c9,_0x52b375- -0x14d,_0x4e7295-_0x2f4853._0x22898e);}this[_0x5e7bea(_0x1f43d6._0x175280,0x2de,0x241,0x1d8)]=_0x4284b0['sessionManager']??(_0x4284b0[_0x5e0b74(_0x1f43d6._0x5dcedc,0x3d6,0x3fc,0x343)]?new ProviderSessionManager(_0x4284b0[_0x5e0b74(_0x1f43d6._0x5dcedc,0x2a6,0x3e3,_0x1f43d6._0x92257c)]):void 0x0),this[_0x5e0b74(_0x1f43d6._0x5e6619,_0x1f43d6._0x509339,0x3f1,0x4ee)]=_0x4284b0[_0x5e7bea(_0x1f43d6._0x514980,0x1b4,0x217,0x230)]??createDefaultWebSocketFactory();for(const _0x15d392 of _0x4284b0['surfaces']){this[_0x5e0b74(_0x1f43d6._0x1f6897,0x4a2,_0x1f43d6._0x3285b0,0x36c)]['set'](_0x15d392['id'],_0x15d392);}}['complete'](_0x2557d7,_0x48c980){const _0x52f91a={_0x2d1981:0x14d,_0x6d850d:0x79};function _0x5f1954(_0x5a5b95,_0x5c49d4,_0x2a4af5,_0x23057f){return _0x38c793(_0x2a4af5,_0x5c49d4-_0x52f91a._0x2d1981,_0x5a5b95-_0x52f91a._0x6d850d,_0x23057f-0x115);}return this[_0x5f1954(0x441,0x39b,0x3f7,0x484)](_0x2557d7,_0x48c980);}[_0x38c793(0x3fd,0x43b,0x479,0x4d4)](_0x240da8,_0x25ca27){const _0x146497={_0x1fa415:0x5df,_0x50ad4c:0x5ad,_0x5d6ae3:0x53b};function _0xe857d7(_0x3a17f7,_0x314e2d,_0x135e57,_0x4e6941){return _0x2b6123(_0x4e6941,_0x314e2d-0x175,_0x135e57-0x191,_0x4e6941-0xf5);}return this[_0xe857d7(_0x146497._0x1fa415,_0x146497._0x50ad4c,_0x146497._0x5d6ae3,0x5b0)](_0x240da8,_0x25ca27);}async['completeViaRouter'](_0x3dc059,_0x32b93b){const _0x2b8fef={_0x51b4ce:0x9e,_0x32941d:0x77,_0x1dcf5b:0x97,_0x5619a3:0x66,_0x95271b:0xd8,_0x511fa6:0x127,_0x4efbe5:0x33,_0x2bc98a:0x9c,_0x17ead0:0x148,_0x4640b1:0x2d},_0xea8b5={_0x5ae274:0x152,_0x1fde71:0x1d0,_0x7b822:0x16d},_0x1c0660={_0x2644c1:0x3ac,_0x56c197:0x176};function _0x1a91a1(_0x1f1d1a,_0x1f51e2,_0xab9140,_0x4cd6b1){return _0x2b6123(_0x1f1d1a,_0x1f51e2-0x1a0,_0x4cd6b1- -_0x1c0660._0x2644c1,_0x4cd6b1-_0x1c0660._0x56c197);}const _0x235b78=this[_0x1a91a1(0x16,-_0x2b8fef._0x51b4ce,0x4d,-_0x2b8fef._0x32941d)](_0x3dc059),_0x49f103=await this[_0x7ad778(0xad,_0x2b8fef._0x1dcf5b,_0x2b8fef._0x5619a3,_0x2b8fef._0x95271b)][_0x7ad778(0xdf,_0x2b8fef._0x511fa6,_0x2b8fef._0x4efbe5,_0x2b8fef._0x2bc98a)](_0x235b78,{'mode':_0x1a91a1(-0x43,-_0x2b8fef._0x17ead0,_0x2b8fef._0x4640b1,-_0x2b8fef._0x1dcf5b)});function _0x7ad778(_0x30cb9b,_0x283971,_0xb6cc7c,_0x3f3a4d){return _0x2b6123(_0x3f3a4d,_0x283971-_0xea8b5._0x5ae274,_0x30cb9b- -_0xea8b5._0x1fde71,_0x3f3a4d-_0xea8b5._0x7b822);}return this[_0x1a91a1(-0x10f,-0xaf,0x16,-0x5b)](_0x235b78,_0x49f103,_0x32b93b);}async*[_0x2b6123(0x3fb,0x36a,0x3aa,0x30b)](_0x1367e3,_0x20f9b0){const _0x42c4c7={_0x24c209:0x343,_0x307f9d:0xcc,_0x1c9e0e:0xdb,_0xd4332b:0x82,_0x45a1f4:0x234,_0x3efddc:0x225,_0x40ecc3:0x249,_0x24e3e8:0x2ce,_0x154a8b:0x1d6},_0x52a281={_0x1c9d9c:0x6c,_0x39a571:0x2ea,_0x212770:0x190},_0x425a21=this[_0x22ea9f(0x2ba,0x239,0x2b4,_0x42c4c7._0x24c209)](_0x1367e3);function _0x3217aa(_0x214472,_0x98f310,_0x5e70ed,_0x5ae0fb){return _0x2b6123(_0x5e70ed,_0x98f310-_0x52a281._0x1c9d9c,_0x5ae0fb- -_0x52a281._0x39a571,_0x5ae0fb-_0x52a281._0x212770);}function _0x22ea9f(_0xbb8f70,_0x329cf9,_0x4a9d47,_0x3ea1bf){return _0x2b6123(_0x3ea1bf,_0x329cf9-0xea,_0xbb8f70- -0x7b,_0x3ea1bf-0x5d);}const _0x29f5de=await this[_0x3217aa(-_0x42c4c7._0x307f9d,-_0x42c4c7._0x1c9e0e,-_0x42c4c7._0xd4332b,-0x6d)][_0x22ea9f(_0x42c4c7._0x45a1f4,_0x42c4c7._0x3efddc,_0x42c4c7._0x40ecc3,0x1a3)](_0x425a21,{'mode':_0x22ea9f(_0x42c4c7._0x24e3e8,0x28d,0x30e,0x32e)});yield*this[_0x22ea9f(_0x42c4c7._0x154a8b,0x18d,0x23a,0x197)](_0x425a21,_0x29f5de,_0x20f9b0);}async['completeViaSurface'](_0x45b43e,_0x3ca22b,_0x552583){const _0x1f6a80={_0x40f8f6:0x132,_0x18a6b8:0x204,_0x33cf12:0x135,_0x35aee8:0x185,_0x5d2495:0x7d,_0x453ab2:0x246,_0x2fa936:0x204,_0x48a730:0x1dc,_0x3ee904:0x155,_0x1e94b3:0xd4,_0x3c2e24:0x176,_0x62f61b:0x1a7,_0x4652da:0x189,_0x163a80:0x1ed,_0x257115:0x14e,_0x14acad:0xe9,_0x4f012d:0xb,_0x23fbe6:0x64,_0x16fee9:0x17a,_0x3a360b:0x183,_0x88b211:0x1d4,_0x2b87e7:0x1bf,_0x2a6766:0x169,_0x354911:0x1c2,_0x375f1f:0x1ac,_0x310a51:0x9c,_0x1b8ecb:0x1f3,_0x1d32c5:0x16d,_0x544b3c:0xbe,_0x514dfa:0x218,_0x23067e:0x22f,_0xe18477:0x1eb,_0x261e8e:0x1e3},_0x188590={_0x57f49f:0x12d,_0x3a58a9:0x45d,_0x1f917c:0xaf},_0x45a8c9={_0x54a9a6:0x14f,_0x5b1793:0x140};function _0x31c880(_0x30efb4,_0x2171dc,_0x1c7060,_0x1bacc3){return _0x38c793(_0x2171dc,_0x2171dc-_0x45a8c9._0x54a9a6,_0x30efb4- -0x2b4,_0x1bacc3-_0x45a8c9._0x5b1793);}function _0x547b16(_0x3c83ae,_0x194b46,_0x39a2a3,_0x1b132a){return _0x2b6123(_0x1b132a,_0x194b46-_0x188590._0x57f49f,_0x39a2a3- -_0x188590._0x3a58a9,_0x1b132a-_0x188590._0x1f917c);}const _0x34ff21=this[_0x31c880(0x1b1,_0x1f6a80._0x40f8f6,_0x1f6a80._0x18a6b8,0x11e)](_0x45b43e),_0x16fffb=this['getSurface'](_0x3ca22b);if(_0x16fffb[_0x31c880(_0x1f6a80._0x33cf12,0x19b,_0x1f6a80._0x35aee8,_0x1f6a80._0x5d2495)]===_0x547b16(-_0x1f6a80._0x453ab2,-0x2cc,-_0x1f6a80._0x2fa936,-_0x1f6a80._0x48a730)){const _0x2f622d=await this['sendHttpSurfaceRequest'](_0x34ff21,_0x16fffb,![],_0x552583?.[_0x31c880(_0x1f6a80._0x3ee904,0x143,_0x1f6a80._0x1e94b3,_0x1f6a80._0x3c2e24)]);if(!_0x2f622d['ok'])throw await this[_0x547b16(-_0x1f6a80._0x62f61b,-_0x1f6a80._0x4652da,-0x105,-0x189)](_0x2f622d);if(!_0x16fffb[_0x31c880(0x1e7,_0x1f6a80._0x163a80,0x178,0x11e)])throw new Error(_0x547b16(-_0x1f6a80._0x257115,-0xd,-0xc1,-0x39)+_0x3ca22b+_0x547b16(-_0x1f6a80._0x14acad,_0x1f6a80._0x4f012d,-0xb7,-0x14a));return _0x16fffb[_0x547b16(-0x44,-0xdf,-0xf2,-_0x1f6a80._0x23fbe6)](await _0x2f622d[_0x547b16(-_0x1f6a80._0x16fee9,-_0x1f6a80._0x3a360b,-_0x1f6a80._0x88b211,-0x15b)](),_0x34ff21);}let _0x15ebce;for await(const _0x30a447 of this[_0x547b16(-_0x1f6a80._0x2b87e7,-_0x1f6a80._0x2a6766,-0x20c,-_0x1f6a80._0x354911)](_0x34ff21,_0x3ca22b,_0x552583)){_0x30a447[_0x31c880(0x13b,_0x1f6a80._0x375f1f,_0x1f6a80._0x310a51,_0x1f6a80._0x1b8ecb)]===_0x31c880(_0x1f6a80._0x1d32c5,0x1a3,_0x1f6a80._0x544b3c,0x233)&&(_0x15ebce=_0x30a447['response']);}if(!_0x15ebce)throw new Error(_0x31c880(_0x1f6a80._0x514dfa,_0x1f6a80._0x23067e,0x162,0x24e)+_0x3ca22b+_0x31c880(_0x1f6a80._0xe18477,0x270,_0x1f6a80._0x261e8e,0x1eb));return _0x15ebce;}async*[_0x2b6123(0x1c6,0x286,0x251,0x288)](_0x30b49e,_0x1686d8,_0x264f71){const _0x1f9288={_0x14a003:0x28,_0x558bb4:0x25,_0x20db06:0x1b0,_0x5555ba:0xc0,_0x4e583c:0xeb,_0x24c962:0xdd,_0x4aa98f:0x148,_0x4fe27d:0x11e,_0x1ae7ea:0x139,_0x4ca8c5:0x18b,_0x30c69a:0x1f7,_0x43d560:0x69,_0x38e714:0x11b,_0xa3d149:0xcf,_0x45f978:0x128,_0x406307:0x160,_0x1b5381:0xa1,_0xe53e25:0x172,_0x41f701:0xbe,_0x135c6e:0x67,_0xad1b1e:0xb7},_0x2d24bc={_0x37c918:0x4c6,_0x3f33f2:0x1c1},_0x4bca05={_0xddb3b7:0x114};function _0x342a67(_0x32418d,_0x3aa56a,_0x2aaf54,_0x958fe3){return _0x38c793(_0x32418d,_0x3aa56a-_0x4bca05._0xddb3b7,_0x958fe3- -0x2c1,_0x958fe3-0x168);}const _0x10014f=this[_0x1be058(-_0x1f9288._0x14a003,0x53,-_0x1f9288._0x558bb4,-0x61)](_0x30b49e);function _0x1be058(_0x3bb915,_0x4cfe12,_0x36b702,_0x12d0d2){return _0x38c793(_0x3bb915,_0x4cfe12-0x7e,_0x12d0d2- -_0x2d24bc._0x37c918,_0x12d0d2-_0x2d24bc._0x3f33f2);}const _0x5dfddb=this[_0x342a67(0x27d,_0x1f9288._0x20db06,0x279,0x202)](_0x1686d8);if(_0x5dfddb[_0x1be058(-_0x1f9288._0x5555ba,-0x118,-_0x1f9288._0x4e583c,-_0x1f9288._0x24c962)]===_0x342a67(_0x1f9288._0x4aa98f,_0x1f9288._0x4fe27d,_0x1f9288._0x1ae7ea,0xc8)){yield{'type':_0x342a67(_0x1f9288._0x4ca8c5,0xfc,_0x1f9288._0x30c69a,0x160),'response':await this[_0x1be058(_0x1f9288._0x43d560,0x2a,0x2e,-0x45)](_0x10014f,_0x1686d8,_0x264f71)};return;}if(_0x5dfddb[_0x342a67(0xa4,_0x1f9288._0x38e714,_0x1f9288._0xa3d149,_0x1f9288._0x45f978)]===_0x342a67(0x110,0x64,_0x1f9288._0x406307,_0x1f9288._0x1b5381)){yield*this[_0x342a67(_0x1f9288._0xe53e25,0x250,0x1a5,0x1ef)](_0x10014f,_0x5dfddb,_0x264f71?.[_0x342a67(0x1c7,_0x1f9288._0x41f701,_0x1f9288._0x20db06,0x148)]);return;}yield*this[_0x1be058(0x29,0x62,_0x1f9288._0x135c6e,-_0x1f9288._0x558bb4)](_0x10014f,_0x5dfddb,_0x264f71?.[_0x1be058(-_0x1f9288._0xad1b1e,-0x130,-0x1f,-0xbd)]);}async[_0x38c793(0x36b,0x3b0,0x40d,0x4c7)](_0x2c3cc8){const _0xf210b3={_0xf4b146:0x3bf,_0x3ca674:0x4fa,_0x18c904:0x1c2,_0x47d154:0x227,_0x2b4715:0x30f},_0x11c3ae={_0x581b70:0x4a9,_0x5f5dde:0x49b,_0x38a36c:0x390,_0x4b49b8:0x3fd,_0x517cbe:0x39c,_0x446a76:0x394,_0xc460fe:0xfb,_0x2cc7a2:0x111,_0x134593:0xd6,_0x1bd035:0xb9,_0x5c38b8:0xde,_0x5ab02e:0x1a7,_0x54f293:0x1a1,_0x20bee8:0x196,_0x42973a:0x1c2,_0x2c421e:0x151,_0x31e18c:0x2d3,_0x282b35:0x242,_0x2e324c:0x279,_0x4b0140:0x205,_0x2bf8c2:0x440,_0x4cdbc7:0x468,_0x2af937:0x353,_0x4ff975:0x31b,_0x1b436b:0x493,_0x541103:0x489,_0x161bd7:0xb7,_0x2cb2c0:0x6a,_0x520f90:0x101,_0x5f1f23:0x153,_0x357269:0x1e2},_0x57e024={_0x51be6b:0x91,_0xaaa869:0x23c,_0x4005c0:0xbd};function _0x24a7be(_0x294a46,_0x3c8909,_0x3275e3,_0x4b7d48){return _0x2b6123(_0x4b7d48,_0x3c8909-_0x57e024._0x51be6b,_0x3275e3- -_0x57e024._0xaaa869,_0x4b7d48-_0x57e024._0x4005c0);}const _0x512b29=async()=>{const _0x42567d=this[_0x5b5674(0x418,0x3f1,_0x11c3ae._0x581b70,0x483)]?await this[_0x5b5674(_0x11c3ae._0x5f5dde,0x3d6,0x483,0x483)]['resolve'](_0x2c3cc8[_0x5b5674(0x388,_0x11c3ae._0x38a36c,_0x11c3ae._0x4b49b8,0x3a8)]):void 0x0,_0x2f2345=this[_0x5b5674(_0x11c3ae._0x517cbe,0x2ac,0x2db,0x30d)]['resolveCredential'](this['apiKey'],_0x42567d);if(!_0x2f2345)throw this[_0x5b5674(0x458,0x347,0x2d3,_0x11c3ae._0x446a76)]();const _0x12c64f=await this[_0x45a066(0xdf,_0x11c3ae._0xc460fe,_0x11c3ae._0x2cc7a2,_0x11c3ae._0x134593)]({'body':_0x2c3cc8[_0x45a066(_0x11c3ae._0x1bd035,0x8f,-0xc,_0x11c3ae._0x5c38b8)],'credential':_0x2f2345,'session':_0x42567d,'stream':![]},{'accept':_0x2c3cc8[_0x45a066(0x19a,0x1fd,_0x11c3ae._0x5ab02e,_0x11c3ae._0x54f293)]??'application/json','includeContentType':_0x2c3cc8[_0x5b5674(0x3d4,_0x11c3ae._0x517cbe,0x411,0x3c9)]===_0x45a066(_0x11c3ae._0x20bee8,0x246,_0x11c3ae._0x42973a,_0x11c3ae._0x2c421e)});function _0x5b5674(_0x3b43d2,_0x5411e3,_0x5945b7,_0x397e0e){return _0x25f1(_0x397e0e-0x1b8,_0x3b43d2);}function _0x45a066(_0x5a2103,_0x11a151,_0x23d839,_0x4dcb02){return _0x25f1(_0x5a2103- -0x9d,_0x23d839);}return this[_0x5b5674(0x292,0x3ca,_0x11c3ae._0x31e18c,0x338)](''+this[_0x5b5674(0x390,_0x11c3ae._0x282b35,_0x11c3ae._0x2e324c,0x30d)][_0x45a066(_0x11c3ae._0x4b0140,0x1e4,0x171,0x27b)](this[_0x5b5674(0x469,0x418,_0x11c3ae._0x2bf8c2,_0x11c3ae._0x4cdbc7)],_0x42567d)+_0x2c3cc8[_0x5b5674(_0x11c3ae._0x2af937,0x2be,0x344,_0x11c3ae._0x4ff975)],{'method':_0x2c3cc8[_0x5b5674(0x370,_0x11c3ae._0x1b436b,_0x11c3ae._0x541103,0x3c9)],'headers':_0x12c64f,..._0x2c3cc8['body']!==void 0x0?{'body':JSON[_0x45a066(_0x11c3ae._0x161bd7,0x16,0x173,_0x11c3ae._0x2cb2c0)](_0x2c3cc8[_0x45a066(_0x11c3ae._0x1bd035,0xf7,_0x11c3ae._0x520f90,0x11c)])}:{},'signal':_0x2c3cc8[_0x45a066(_0x11c3ae._0x5f1f23,0x1cf,_0x11c3ae._0x357269,0xc6)]});},_0x9ef7ff=await _0x512b29();if(_0x9ef7ff[_0x134fbf(_0xf210b3._0xf4b146,0x339,0x370,0x31c)]!==0x191||!this[_0x134fbf(0x51b,_0xf210b3._0x3ca674,0x480,0x3ee)])return _0x9ef7ff;this[_0x24a7be(_0xf210b3._0x18c904,_0xf210b3._0x47d154,0x178,0x243)][_0x134fbf(0x38d,_0xf210b3._0x2b4715,0x362,0x41e)]();function _0x134fbf(_0x4ab0fb,_0x52694b,_0x142075,_0x3fed2c){return _0x2b6123(_0x4ab0fb,_0x52694b-0x145,_0x142075-0xcc,_0x3fed2c-0x108);}return _0x512b29();}['createMissingCredentialError'](){const _0x126407={_0x30ca8b:0x86,_0x5683fa:0x33,_0x42837a:0xba},_0x157f9f={_0x566475:0x5ce},_0x248f97={_0x2070d1:0xa7};function _0x4dd26b(_0xbf0f28,_0x3a5411,_0x2183f7,_0x18e77f){return _0x2b6123(_0x3a5411,_0x3a5411-_0x248f97._0x2070d1,_0x2183f7- -0x1e9,_0x18e77f-0x4e);}function _0x2a718c(_0x18d422,_0x591011,_0x4edc3d,_0x1a4c3b){return _0x38c793(_0x1a4c3b,_0x591011-0x3a,_0x4edc3d- -_0x157f9f._0x566475,_0x1a4c3b-0x1a2);}return this[_0x4dd26b(_0x126407._0x30ca8b,-_0x126407._0x5683fa,0x55,_0x126407._0x42837a)][_0x4dd26b(0x16c,0x52,0xdc,0x12d)]();}async[_0x38c793(0x40b,0x322,0x395,0x315)](_0x588fee,_0x40d391){const _0x441b78={_0xa30260:0x23e,_0x1188d5:0xb5,_0x257d4a:0x102},_0x474655={_0x7b87a7:0x148,_0x2c3e1e:0xec};function _0x57cac4(_0x323bb3,_0x3e7a16,_0x2b2cfa,_0x466f41){return _0x38c793(_0x3e7a16,_0x3e7a16-0x192,_0x2b2cfa- -0x2e0,_0x466f41-0x157);}function _0x42c7c4(_0x297b71,_0x5ee099,_0x20d4d9,_0x26d651){return _0x38c793(_0x297b71,_0x5ee099-_0x474655._0x7b87a7,_0x5ee099- -0xf1,_0x26d651-_0x474655._0x2c3e1e);}return await this[_0x42c7c4(0x327,0x27d,_0x441b78._0xa30260,0x2e0)][_0x57cac4(0xcb,0x66,_0x441b78._0x1188d5,_0x441b78._0x257d4a)](_0x588fee,_0x40d391);}[_0x2b6123(0x215,0x1da,0x287,0x1d0)](_0x4db71a){const _0xc46189={_0xaaa3f7:0x160,_0x1182be:0x16e,_0x205661:0xf7},_0x32ae70={_0x2c9ebb:0x163,_0x55be8d:0x4ae},_0x42c285={_0x4839fb:0x331};function _0x5cb309(_0x11a0ca,_0x4d6b4f,_0x521c0d,_0x151cd5){return _0x2b6123(_0x521c0d,_0x4d6b4f-0x70,_0x4d6b4f- -_0x42c285._0x4839fb,_0x151cd5-0x193);}function _0x28f5e5(_0x41c651,_0xf0d8bd,_0x495739,_0x3c598c){return _0x38c793(_0x495739,_0xf0d8bd-_0x32ae70._0x2c9ebb,_0x3c598c- -_0x32ae70._0x55be8d,_0x3c598c-0x9d);}return this[_0x28f5e5(-_0xc46189._0xaaa3f7,-_0xc46189._0x1182be,-0xb2,-0x140)][_0x28f5e5(-0xe8,-0xba,-0x14a,-_0xc46189._0x205661)](_0x4db71a);}async[_0x2b6123(0x30c,0x358,0x358,0x3a4)](_0x867dce){const _0x387ed4={_0x4b5652:0x8e},_0x375f5f={_0x17e28d:0x24f},_0x42bb6b={_0xcb3179:0x85};function _0x1fd827(_0x2d3f9d,_0x53de3c,_0x2a374c,_0x5401f8){return _0x2b6123(_0x53de3c,_0x53de3c-0x39,_0x2a374c- -0x4c7,_0x5401f8-_0x42bb6b._0xcb3179);}function _0x2ba130(_0x1da873,_0x22944b,_0x31946b,_0x4013b5){return _0x2b6123(_0x22944b,_0x22944b-0xf3,_0x31946b- -_0x375f5f._0x17e28d,_0x4013b5-0x1d0);}return await this[_0x2ba130(-0xb0,-0x89,-0x11,0x61)][_0x2ba130(_0x387ed4._0x4b5652,0x194,0x109,0x6a)](_0x867dce);}[_0x2b6123(0x303,0x38b,0x393,0x437)](_0x312189){const _0x3254cd={_0x235ca2:0x25e,_0x5b2561:0x2fa},_0x59a3ad={_0x541fdb:0x162,_0x21f4b5:0x14c},_0x2d28e8={_0x217cf2:0x271,_0x3f3170:0x10b};function _0x1c3509(_0x470bec,_0x48ead0,_0x13445f,_0x4bb00e){return _0x2b6123(_0x4bb00e,_0x48ead0-0x112,_0x13445f-_0x2d28e8._0x217cf2,_0x4bb00e-_0x2d28e8._0x3f3170);}function _0x28c35d(_0x26f3fc,_0x4ea732,_0xbc343f,_0x9e6e0b){return _0x38c793(_0x26f3fc,_0x4ea732-_0x59a3ad._0x541fdb,_0xbc343f- -0xba,_0x9e6e0b-_0x59a3ad._0x21f4b5);}const _0x2a980e=this[_0x28c35d(0x2b1,0x2be,0x371,0x2bb)][_0x28c35d(0x2ee,_0x3254cd._0x235ca2,_0x3254cd._0x5b2561,0x2e5)](_0x312189);if(!_0x2a980e)throw new Error('Unknown\x20model\x20surface:\x20'+_0x312189);return _0x2a980e;}async[_0x38c793(0x2eb,0x341,0x373,0x2fe)](_0x297b36,_0x346993){const _0x31d684={_0x16ead1:0x5fa,_0x532edf:0x5ea,_0x492a13:0x56a,_0x3cc3b6:0x522,_0x37b306:0x4e3,_0x1841a5:0x5da,_0xf8be54:0x597,_0x4002bd:0x59c,_0x2b6ec6:0x5be,_0x538423:0x5eb,_0x86bdbc:0x54a,_0x78b328:0x55d,_0x462782:0x3f7,_0x888ab6:0x393,_0x2a85c1:0x430,_0x50a7ed:0x3f6,_0x1b687f:0x5a9,_0xc3d43a:0x311,_0x1af92a:0x3e5,_0x2f6b2e:0x462,_0xce993:0x3f7},_0x53a5fe={_0x58afc5:0x190},_0x461829={_0x2a7c64:0x177},_0x46631f=toModelRequest(_0x297b36),_0x370397=await prepareProviderRequest(_0x46631f,{'sessionManager':this['sessionManager'],'requestMutators':this[_0xc83df6(0x583,_0x31d684._0x16ead1,0x55a,_0x31d684._0x532edf)],'signal':_0x346993}),_0x1f3d76=toChatRequest(_0x370397['request']);function _0xc83df6(_0x2ada3f,_0x1807b5,_0x4bf656,_0xde74d){return _0x38c793(_0xde74d,_0x1807b5-0x1bb,_0x1807b5-0x1b4,_0xde74d-_0x461829._0x2a7c64);}const _0x47773c=this[_0xc83df6(_0x31d684._0x492a13,_0x31d684._0x3cc3b6,0x499,_0x31d684._0x37b306)][_0xc83df6(_0x31d684._0x1841a5,_0x31d684._0xf8be54,0x4d2,_0x31d684._0x4002bd)](this[_0xc83df6(_0x31d684._0x2b6ec6,_0x31d684._0x538423,_0x31d684._0x86bdbc,_0x31d684._0x78b328)],_0x370397[_0x3b0bf4(_0x31d684._0x462782,_0x31d684._0x888ab6,_0x31d684._0x2a85c1,_0x31d684._0x50a7ed)]);if(!_0x47773c)throw this[_0xc83df6(0x660,_0x31d684._0x1b687f,0x502,0x61c)]();function _0x3b0bf4(_0x2e6052,_0x38c3cb,_0x16693f,_0x107d4b){return _0x2b6123(_0x16693f,_0x38c3cb-_0x53a5fe._0x58afc5,_0x2e6052-0x6b,_0x107d4b-0x1c0);}return{'baseUrl':this[_0x3b0bf4(0x2a9,0x346,0x2b7,_0x31d684._0xc3d43a)][_0x3b0bf4(_0x31d684._0x50a7ed,0x3e0,0x447,_0x31d684._0x1af92a)](this['baseUrl'],_0x370397[_0x3b0bf4(0x3f7,_0x31d684._0x2f6b2e,0x413,0x374)]),'credential':_0x47773c,'request':_0x1f3d76,'session':_0x370397[_0x3b0bf4(_0x31d684._0xce993,0x3a1,0x34e,0x3c0)]};}['applyModelDefaults'](_0x18b2d1){const _0x757c02={_0x5e8946:0x2cf,_0x31bc08:0x288,_0x33b4d2:0x2ad,_0x183ba7:0x212},_0x180bd5={_0x2d868d:0x75,_0x24b7b3:0x439,_0x30f2b9:0x88},_0x536bea={_0x5791cc:0x63};function _0x56c740(_0x3bac85,_0x479714,_0x15a10e,_0x22bc67){return _0x2b6123(_0x22bc67,_0x479714-_0x536bea._0x5791cc,_0x15a10e- -0xe1,_0x22bc67-0x57);}function _0x376725(_0x541de4,_0x185e6c,_0x411ad9,_0x3f9e38){return _0x2b6123(_0x411ad9,_0x185e6c-_0x180bd5._0x2d868d,_0x3f9e38- -_0x180bd5._0x24b7b3,_0x3f9e38-_0x180bd5._0x30f2b9);}return{...structuredClone(_0x18b2d1),..._0x18b2d1['reasoning']===void 0x0&&this[_0x56c740(_0x757c02._0x5e8946,0x258,_0x757c02._0x31bc08,_0x757c02._0x33b4d2)]!==void 0x0?{'reasoning':structuredClone(this[_0x56c740(0x30b,0x2ac,0x288,_0x757c02._0x183ba7)])}:{}};}async[_0x2b6123(0x27d,0x326,0x329,0x26e)](_0x4dcf8e,_0x154638,_0x2bf90a,_0x391731){const _0x38e6c8={_0x110df7:0x11f,_0x177cb5:0xef,_0x1bb070:0x42d,_0xcc6704:0x489,_0x3c7547:0x48d,_0x4314e5:0x1b8,_0x219805:0x30f,_0xd617a1:0x2ec},_0x54e684={_0x23dc47:0xe3},_0x313d9e={_0x504c93:0x56,_0x2601d9:0x38,_0x513a47:0x6a,_0x37d69a:0x153,_0x50ca8a:0x207,_0x4edf02:0x20a,_0x43a7e2:0x21b,_0x27bddf:0x1d9,_0x4248ca:0x27c,_0x2f4f84:0x125,_0x547017:0x18,_0x152255:0x2e,_0x231a23:0x14d,_0x901abc:0x144,_0x569950:0x263,_0x21ea7c:0x1fb,_0x5f4660:0xaa,_0x485a6a:0x1eb,_0x3a3149:0x94,_0x54f2f1:0x12f,_0x48679f:0xe,_0x324d71:0x349,_0x5ddd8b:0x1d7,_0x373d69:0x289,_0x17bbef:0xf4,_0x40651e:0xd5,_0x543201:0x28c,_0x494290:0x254,_0x13310d:0x2f4,_0x30fddd:0x13f,_0x3afcca:0x162,_0x444105:0x166,_0x55fb95:0x202,_0x2d7e64:0x207,_0xa854c5:0x33d,_0x3cf5c9:0x2de,_0x55f41b:0x2db,_0x4d17f3:0x52,_0x4c9f9e:0x42,_0xa7eb31:0xdd},_0x46a2fa={_0x10ac22:0xca};function _0x505c03(_0x248e7b,_0xb1c76a,_0x30b0b9,_0xa4ddd3){return _0x2b6123(_0xa4ddd3,_0xb1c76a-0x181,_0xb1c76a-0x79,_0xa4ddd3-_0x46a2fa._0x10ac22);}const _0x502d6f=async()=>{const _0x35926e=await this[_0x496438(_0x313d9e._0x504c93,_0x313d9e._0x2601d9,0x107,-_0x313d9e._0x513a47)](_0x4dcf8e,_0x391731),_0x5f0446=_0x154638[_0x32df09(-_0x313d9e._0x37d69a,-0xba,-0x152,-_0x313d9e._0x50ca8a)](_0x35926e[_0x32df09(-0x187,-_0x313d9e._0x4edf02,-_0x313d9e._0x43a7e2,-_0x313d9e._0x27bddf)]);if(!_0x5f0446[_0x32df09(-0x221,-0x1fe,-_0x313d9e._0x4248ca,-0x310)])throw new Error(_0x496438(0x1af,0x205,_0x313d9e._0x2f4f84,0x189)+_0x154638['id']+_0x496438(0x9b,_0x313d9e._0x547017,0xc,_0x313d9e._0x152255));function _0x496438(_0x580c85,_0x54c564,_0x92e547,_0x577075){return _0x25f1(_0x580c85- -0x104,_0x92e547);}const _0x2c99eb=await this['createHeaders']({'request':_0x35926e['request'],'body':_0x5f0446['body'],'credential':_0x35926e[_0x32df09(-0x145,-_0x313d9e._0x231a23,-_0x313d9e._0x901abc,-0x1c9)],'session':_0x35926e[_0x496438(0x19f,_0x313d9e._0x569950,0xdd,0x12a)],'stream':_0x2bf90a},{'accept':_0x5f0446[_0x32df09(-0x269,-0x197,-0x1a8,-_0x313d9e._0x21ea7c)]??(_0x2bf90a?_0x496438(0x15f,0x1b6,_0x313d9e._0x5f4660,_0x313d9e._0x485a6a):_0x496438(_0x313d9e._0x3a3149,_0x313d9e._0x54f2f1,0x72,_0x313d9e._0x48679f)),'includeContentType':_0x5f0446[_0x32df09(-_0x313d9e._0x324d71,-_0x313d9e._0x5ddd8b,-_0x313d9e._0x373d69,-0x1ef)]!==void 0x0});function _0x32df09(_0x2b037c,_0x3e67c9,_0x1e214f,_0x1b0cc7){return _0x25f1(_0x1e214f- -0x3df,_0x3e67c9);}for(const [_0x2aa417,_0x349fd1]of Object[_0x496438(_0x313d9e._0x17bbef,_0x313d9e._0x40651e,0x85,0x60)](_0x5f0446[_0x32df09(-_0x313d9e._0x543201,-0x1ec,-_0x313d9e._0x494290,-0x242)]??{})){_0x2c99eb['set'](_0x2aa417,_0x349fd1);}return this[_0x32df09(-_0x313d9e._0x13310d,-0x1a7,-0x25f,-0x283)](''+_0x35926e[_0x32df09(-_0x313d9e._0x30fddd,-_0x313d9e._0x3afcca,-0x12f,-_0x313d9e._0x444105)]+_0x5f0446['path'],{'method':_0x32df09(-_0x313d9e._0x55fb95,-0x257,-0x1ac,-_0x313d9e._0x2d7e64),'headers':_0x2c99eb,..._0x5f0446[_0x32df09(-0x27f,-_0x313d9e._0xa854c5,-0x289,-0x238)]!==void 0x0?{'body':JSON[_0x32df09(-_0x313d9e._0x3cf5c9,-_0x313d9e._0x55f41b,-0x28b,-0x2e8)](_0x5f0446[_0x496438(_0x313d9e._0x4d17f3,-_0x313d9e._0x4c9f9e,_0x313d9e._0xa7eb31,0x0)])}:{},'signal':_0x391731});},_0xef568d=await _0x502d6f();if(_0xef568d[_0x51fc80(_0x38e6c8._0x110df7,_0x38e6c8._0x177cb5,0xa8,0x104)]!==0x191||!this[_0x505c03(0x38c,_0x38e6c8._0x1bb070,_0x38e6c8._0xcc6704,_0x38e6c8._0x3c7547)])return _0xef568d;function _0x51fc80(_0x2e0bd4,_0x36ec73,_0xd1878c,_0xc4ed34){return _0x38c793(_0x2e0bd4,_0x36ec73-_0x54e684._0x23dc47,_0xd1878c- -0x32c,_0xc4ed34-0x1c7);}return this[_0x51fc80(0x223,0x223,_0x38e6c8._0x4314e5,0x26a)][_0x505c03(0x37f,_0x38e6c8._0x219805,0x2e9,_0x38e6c8._0xd617a1)](),_0x502d6f();}async*[_0x2b6123(0x2ce,0x3a8,0x380,0x3d7)](_0x3c3690,_0xdc790f,_0x7a1ea1){const _0x1109ea={_0x27114e:0x16b,_0xe7612a:0xbf,_0x1ae754:0x144,_0x50ed78:0x13a,_0x452a1d:0xfd,_0x47a9c8:0x5b,_0x4e3196:0x31,_0x394480:0xe6,_0x15192b:0x38,_0x514255:0x1aa,_0x254d01:0x200,_0x26e8c1:0xdf,_0x1371b9:0xbb,_0x39eafc:0xe4,_0x255148:0xa9,_0x2ee6d:0x10e},_0x4f8c69={_0x1dcacb:0x1a},_0x95cb76={_0xe28fd:0x105,_0x1a1ec6:0x49c},_0x32b1eb=await this['sendHttpSurfaceRequest'](_0x3c3690,_0xdc790f,!![],_0x7a1ea1);function _0x42e3d9(_0x19b526,_0x3a8601,_0x5b0ade,_0x16d984){return _0x2b6123(_0x5b0ade,_0x3a8601-_0x95cb76._0xe28fd,_0x16d984- -_0x95cb76._0x1a1ec6,_0x16d984-0x28);}if(!_0x32b1eb['ok'])throw await this[_0x42e3d9(-0x1d3,-_0x1109ea._0x27114e,-_0x1109ea._0xe7612a,-_0x1109ea._0x1ae754)](_0x32b1eb);const _0x111a66=_0xdc790f[_0x5c4128(0xce,_0x1109ea._0x50ed78,0x17b,0xf0)]?.(_0x3c3690);if(!_0x111a66?.['consumeSseEvent'])throw new Error(_0x5c4128(0x18a,0x12d,_0x1109ea._0x452a1d,0xf2)+_0xdc790f['id']+_0x5c4128(_0x1109ea._0x47a9c8,-_0x1109ea._0x4e3196,_0x1109ea._0x394480,_0x1109ea._0x15192b));function _0x5c4128(_0x2672e2,_0x2abc97,_0x5530dd,_0x3bc47c){return _0x38c793(_0x3bc47c,_0x2abc97-_0x4f8c69._0x1dcacb,_0x2672e2- -0x342,_0x3bc47c-0x1a);}for await(const _0x3ffb56 of iterateSseEvents(_0x32b1eb,_0x7a1ea1)){yield*_0x111a66[_0x42e3d9(-0x182,-_0x1109ea._0x514255,-0x1a4,-_0x1109ea._0x254d01)](_0x3ffb56);}yield{'type':_0x5c4128(_0x1109ea._0x26e8c1,_0x1109ea._0x1371b9,0x28,0xd7),'response':_0x111a66[_0x42e3d9(-0x1d0,-_0x1109ea._0x39eafc,-_0x1109ea._0x255148,-_0x1109ea._0x2ee6d)]()};}async*['streamWebSocketSurface'](_0x1047d9,_0x2e6332,_0x113345){const _0x5d152e={_0x57f589:0x14,_0x310e34:0x92,_0x1d97b0:0x146,_0x1bd7c8:0x14a,_0x450094:0x110,_0x597f74:0x7d,_0x3c2c53:0xf2,_0xe256de:0x267,_0x46e1f3:0x2e8,_0x15984e:0x250,_0x2584f0:0x273,_0x34e4e3:0x14a,_0x54a14c:0x183,_0x37fb25:0x8a,_0x2f9407:0x17d,_0x1012d6:0x7c,_0x27245d:0x169,_0x3122cd:0xa0,_0xb42fa1:0x15b,_0x39385a:0x100,_0x539d70:0xb1,_0x7b49ec:0x111,_0x27f4ef:0x22,_0x5622fb:0x6c,_0x297c46:0x227,_0x2f3d4c:0x11b,_0x166137:0x18b,_0x2c1f67:0x35,_0x4fdf2a:0xf3,_0x4015b7:0xcb,_0x3e3c44:0xc9,_0x2bf3d6:0x121,_0x1cce94:0x1ab,_0x4eae08:0x184,_0x2983da:0x90,_0x3d0c8a:0x1df,_0x30796c:0x263,_0xa28855:0xc,_0x211e02:0x116,_0x1d6875:0x6e,_0x14d13c:0x44,_0x4bb54d:0x7e,_0x51e91c:0x4a,_0x40fa8c:0x202,_0x3d6222:0x247,_0x1ebf5d:0xe0,_0x22fdbf:0x151,_0x3b2408:0xf0,_0x3ac3fe:0xbe,_0x545aca:0x2b,_0x1406f8:0x1b5,_0x2655d5:0xb3,_0x4ce76a:0x8e,_0x4b0893:0xb1,_0x2bb58f:0xf3,_0x26c899:0x2c,_0x23856f:0x1b1,_0x32abb7:0x264,_0x1f95d4:0xde,_0x3bec79:0x217,_0x2a4809:0x3,_0x158906:0x55,_0x158df0:0xaa,_0x244b29:0x5e,_0xdd00e3:0x120,_0x4d6aaf:0x28,_0x33c6f0:0x167,_0x27201c:0x12f,_0x5936f5:0x15e,_0x131d46:0xbb,_0x32f9d0:0x1fc,_0x2762bc:0x2f3,_0x32e387:0x261,_0x520861:0x170,_0x354dc5:0x272,_0x3ac9c3:0x244,_0x4d758a:0x1ac,_0x16dd65:0x79,_0x4d99d8:0xe7,_0x118764:0xef},_0x53b691={_0xa06e0a:0x19a,_0x554206:0x230},_0x12a640=await this[_0x2342cd(0x13,-_0x5d152e._0x57f589,-_0x5d152e._0x310e34,0x3f)](_0x1047d9,_0x113345),_0x34f2ca=_0x2e6332[_0x2342cd(_0x5d152e._0x1d97b0,0x110,_0x5d152e._0x1bd7c8,_0x5d152e._0x450094)](_0x12a640[_0x2342cd(_0x5d152e._0x597f74,0x92,-0x3f,0x10d)]),_0x5255cd=_0x2e6332[_0x17948f(_0x5d152e._0x3c2c53,_0x5d152e._0xe256de,0x238,0x1b7)]?.(_0x1047d9);if(!_0x5255cd?.['consumeWebSocketEvent'])throw new Error(_0x17948f(_0x5d152e._0x46e1f3,_0x5d152e._0x15984e,0x266,_0x5d152e._0x2584f0)+_0x2e6332['id']+'\x20cannot\x20parse\x20WebSocket\x20events');const _0x2675c1=_0x34f2ca[_0x2342cd(_0x5d152e._0x34e4e3,_0x5d152e._0x54a14c,_0x5d152e._0x37fb25,_0x5d152e._0x2f9407)]??(_0x34f2ca[_0x17948f(0xfa,_0x5d152e._0x1012d6,0xea,0x123)]?(''+_0x12a640[_0x2342cd(_0x5d152e._0x27245d,_0x5d152e._0x3122cd,0x1c7,0x1c0)]+_0x34f2ca[_0x17948f(0x6d,_0x5d152e._0xb42fa1,0xdf,0x123)])[_0x2342cd(_0x5d152e._0x39385a,_0x5d152e._0x539d70,0x74,_0x5d152e._0x7b49ec)](/^http:/,_0x2342cd(_0x5d152e._0x27f4ef,0xc4,0x5f,_0x5d152e._0x5622fb))[_0x17948f(0x2af,0x20e,0x1dc,0x207)](/^https:/,_0x17948f(0x23a,0x15e,_0x5d152e._0x297c46,0x17e)):void 0x0);function _0x17948f(_0x256fa3,_0x1f605b,_0x509bb3,_0x242472){return _0x38c793(_0x509bb3,_0x1f605b-0x1eb,_0x242472- -0x259,_0x242472-0x199);}if(!_0x2675c1)throw new Error(_0x2342cd(0x16c,0x223,_0x5d152e._0x2f3d4c,_0x5d152e._0x166137)+_0x2e6332['id']+'\x20did\x20not\x20provide\x20a\x20WebSocket\x20URL\x20or\x20path');const _0x517a28=await this[_0x2342cd(_0x5d152e._0x2c1f67,_0x5d152e._0x4fdf2a,_0x5d152e._0x4015b7,_0x5d152e._0x3e3c44)]({'request':_0x12a640[_0x17948f(0x1d9,_0x5d152e._0x2bf3d6,_0x5d152e._0x1cce94,_0x5d152e._0x4eae08)],'body':_0x34f2ca[_0x17948f(_0x5d152e._0x2983da,0x142,0x160,0x14e)],'credential':_0x12a640['credential'],'session':_0x12a640[_0x17948f(0x1a5,_0x5d152e._0x3d0c8a,0x27b,_0x5d152e._0x30796c)],'stream':!![]},{'accept':_0x34f2ca['accept']??_0x2342cd(0x51,0xd1,_0x5d152e._0xa28855,-0x58),'includeContentType':![]});for(const [_0x4fc9c5,_0x29d5c7]of Object[_0x2342cd(0xb1,_0x5d152e._0x211e02,_0x5d152e._0x1d6875,0xad)](_0x34f2ca[_0x2342cd(_0x5d152e._0x14d13c,0x46,-_0x5d152e._0x4bb54d,_0x5d152e._0x51e91c)]??{})){_0x517a28[_0x17948f(0x22e,_0x5d152e._0x40fa8c,0x1fd,_0x5d152e._0x3d6222)](_0x4fc9c5,_0x29d5c7);}function _0x2342cd(_0x533024,_0xa0ee6c,_0x164730,_0x455d67){return _0x2b6123(_0x455d67,_0xa0ee6c-_0x53b691._0xa06e0a,_0x533024- -_0x53b691._0x554206,_0x455d67-0x170);}_0x517a28[_0x2342cd(_0x5d152e._0x1ebf5d,_0x5d152e._0xb42fa1,_0x5d152e._0x22fdbf,0x17)](_0x2342cd(_0x5d152e._0x3b2408,_0x5d152e._0x3ac3fe,_0x5d152e._0x545aca,0x7e));const _0x181c40=this['webSocketFactory']({'headers':Object[_0x2342cd(0x12b,_0x5d152e._0x1406f8,_0x5d152e._0x2655d5,_0x5d152e._0x4ce76a)](_0x517a28[_0x2342cd(_0x5d152e._0x4b0893,-0x15,_0x5d152e._0x2bb58f,_0x5d152e._0x26c899)]()),'url':_0x2675c1});try{throwIfAborted(_0x113345);_0x181c40['readyState']!==WebSocket[_0x17948f(_0x5d152e._0x23856f,_0x5d152e._0x32abb7,0x223,0x261)]&&await waitForWebSocketOpen(_0x181c40,_0x113345);throwIfAborted(_0x113345);_0x34f2ca['initialEvent']!==void 0x0&&_0x181c40['send'](JSON[_0x17948f(0x1d8,_0x5d152e._0x4eae08,_0x5d152e._0x1f95d4,0x114)](_0x34f2ca[_0x17948f(0x136,0x92,_0x5d152e._0x3bec79,0x14e)]));for await(const _0x216511 of iterateWebSocketMessages(_0x181c40,_0x113345)){yield*_0x5255cd[_0x2342cd(-_0x5d152e._0x2a4809,-_0x5d152e._0x158906,-_0x5d152e._0x158df0,-0xad)](_0x216511);if(_0x5255cd[_0x2342cd(_0x5d152e._0x244b29,-0x2c,_0x5d152e._0xdd00e3,-_0x5d152e._0x4d6aaf)]?.())break;}yield{'type':_0x17948f(_0x5d152e._0x33c6f0,_0x5d152e._0x27201c,0x263,0x1c8),'response':_0x5255cd[_0x2342cd(_0x5d152e._0x5936f5,_0x5d152e._0x131d46,0x104,0x171)]()};}finally{_0x181c40[_0x2342cd(0x84,-0x1d,0x64,-0x24)]===WebSocket[_0x17948f(_0x5d152e._0x32f9d0,_0x5d152e._0x2762bc,0x1a7,_0x5d152e._0x32e387)]&&_0x181c40[_0x17948f(_0x5d152e._0x520861,_0x5d152e._0x354dc5,_0x5d152e._0x3ac9c3,_0x5d152e._0x4d758a)](0x3e8,_0x113345?.['aborted']?'aborted':_0x2342cd(_0x5d152e._0x16dd65,0x144,_0x5d152e._0x4d99d8,_0x5d152e._0x118764));}}};async function createHttpError(_0x448db0){const _0x39f9e6={_0x1a4976:0x426,_0x4b9ef8:0x479,_0x46c42b:0x4ba,_0x5c9408:0x522,_0x358e5c:0x4e0,_0x11d1ac:0x469,_0x3d24d6:0x447,_0x592836:0x482,_0x3d5e55:0x363,_0x573338:0x40d},_0xc90ef2={_0x21f8c9:0x75,_0x1ad54b:0x174},_0x32dc1f=await _0x448db0[_0x1085c5(_0x39f9e6._0x1a4976,_0x39f9e6._0x4b9ef8,_0x39f9e6._0x46c42b,_0x39f9e6._0x5c9408)]();function _0x25ff55(_0xdfb45f,_0x50e9e3,_0x182aa6,_0x1d1d03){return _0x38c793(_0xdfb45f,_0x50e9e3-_0xc90ef2._0x21f8c9,_0x182aa6-0x1c,_0x1d1d03-_0xc90ef2._0x1ad54b);}const _0x1ebaed=_0x32dc1f['trim']()||_0x448db0[_0x25ff55(0x4f6,_0x39f9e6._0x358e5c,_0x39f9e6._0x11d1ac,_0x39f9e6._0x3d24d6)]||'Unknown\x20provider\x20error';function _0x1085c5(_0x53f6b8,_0x5681a6,_0x15195c,_0x1f7ba2){return _0x38c793(_0x53f6b8,_0x5681a6-0x11b,_0x15195c-0x78,_0x1f7ba2-0x11c);}return new Error(_0x25ff55(_0x39f9e6._0x592836,_0x39f9e6._0x3d5e55,_0x39f9e6._0x573338,0x3ad)+_0x448db0[_0x1085c5(0x3d5,0x39e,0x44c,0x485)]+':\x20'+_0x1ebaed);}var AnthropicProviderAdapter=class{['authScheme'];[_0x38c793(0x412,0x4bb,0x474,0x52b)];[_0x38c793(0x3f6,0x3be,0x487,0x4dd)];constructor(_0x1e3487){const _0x5ca8b5={_0x2839a2:0x269,_0x272a63:0x20f,_0x1600b2:0x1cc,_0x34fa7e:0x5b3,_0x3617e0:0x5b8,_0x14dba9:0x626,_0x55acc6:0xa8,_0x5d2f3e:0x16c,_0x7f4e33:0x1ae},_0x1cfb0d={_0x1853c1:0xb1,_0x5b8a0a:0xfe},_0x9b9856={_0x5804c6:0xe1};this[_0x1c34c5(_0x5ca8b5._0x2839a2,_0x5ca8b5._0x272a63,_0x5ca8b5._0x1600b2,0x18b)]=_0x1e3487[_0x1d5e6f(0x650,_0x5ca8b5._0x34fa7e,0x5fd,0x66f)];function _0x1c34c5(_0x216437,_0x21e94f,_0x2b326c,_0x1f0dc4){return _0x2b6123(_0x216437,_0x21e94f-_0x9b9856._0x5804c6,_0x2b326c- -0x1eb,_0x1f0dc4-0x19e);}function _0x1d5e6f(_0x464d4b,_0x1a16fb,_0x2df29b,_0x527921){return _0x2b6123(_0x1a16fb,_0x1a16fb-_0x1cfb0d._0x1853c1,_0x527921-0x2b8,_0x527921-_0x1cfb0d._0x5b8a0a);}this['headerResolver']=_0x1e3487[_0x1d5e6f(0x632,_0x5ca8b5._0x3617e0,_0x5ca8b5._0x14dba9,0x5fc)],this[_0x1c34c5(0xc8,_0x5ca8b5._0x55acc6,_0x5ca8b5._0x5d2f3e,_0x5ca8b5._0x7f4e33)]=_0x1e3487['protocolVersion'];}[_0x38c793(0x439,0x48a,0x3f5,0x400)](){const _0x58eb3f={_0x144f63:0x205,_0x2682ce:0x209};function _0x26826(_0x25b356,_0x55de83,_0x334fcd,_0x577c19){return _0x2b6123(_0x25b356,_0x55de83-0x1ef,_0x55de83- -0xf3,_0x577c19-0x13b);}return new Error(_0x26826(0x167,_0x58eb3f._0x144f63,0x1e2,_0x58eb3f._0x2682ce));}async[_0x38c793(0x402,0x420,0x395,0x2ff)](_0xfe70cd,_0x10af7d){const _0xe4a0b1={_0x330e1f:0x36e,_0x2fef9e:0x391,_0x5da239:0x3ba,_0x46d9e0:0xd8,_0x511bd3:0x33,_0xcaa43d:0x362,_0x1e5e23:0x31a,_0x261031:0x3fe,_0xdc8bb6:0x3a7,_0x4689fa:0x307,_0x435076:0xaa,_0x2b3f1c:0x14f,_0x3e574a:0x5a,_0x49b544:0x129,_0x546f50:0x22a,_0x39eadc:0x28d,_0xe3fa66:0x325,_0x58e0d6:0x38b,_0x38d123:0x2d4,_0x5738d8:0x2f7,_0x5ea53c:0x258,_0xdcbab1:0x24a,_0x3d816c:0x2fa,_0x2507cb:0x38c,_0x243c33:0x0,_0x9ceea2:0xb8,_0x33b51a:0x31a,_0x2567ec:0x339,_0x5aaeb9:0x379,_0x16068b:0x354,_0x19ad3a:0x2a0,_0x37ee84:0x2eb,_0x5312f6:0x326,_0x32a8c6:0x3,_0x18fa31:0xa,_0x1c50a2:0x197,_0x4dcd9a:0x2dd,_0x2640e5:0xc9,_0x2cf25e:0x45,_0x1e93b4:0x2b,_0x5068bd:0xc,_0x517806:0x41},_0x4d1059={_0xe8279a:0x154},_0x487c27={_0x199cbc:0x98,_0x1030c4:0x32b},_0x3a68a6=new Headers();_0x3a68a6['set']('accept',_0x10af7d[_0x4ad90a(0x255,0x2d5,_0xe4a0b1._0x330e1f,0x36c)]),_0x3a68a6[_0x4ad90a(_0xe4a0b1._0x2fef9e,0x325,0x2d9,_0xe4a0b1._0x5da239)](_0x4233e5(-0x73,-_0xe4a0b1._0x46d9e0,-0x79,_0xe4a0b1._0x511bd3),this[_0x4ad90a(0x2d2,0x30c,_0xe4a0b1._0xcaa43d,_0xe4a0b1._0x1e5e23)]);_0x10af7d[_0x4ad90a(_0xe4a0b1._0x261031,0x35a,0x362,_0xe4a0b1._0xdc8bb6)]!==![]&&_0x3a68a6['set'](_0x4ad90a(0x2c1,0x275,0x1e7,_0xe4a0b1._0x4689fa),_0x4233e5(-_0xe4a0b1._0x435076,-_0xe4a0b1._0x2b3f1c,-0xad,-0xa1));this[_0x4233e5(0x8c,_0xe4a0b1._0x3e574a,_0xe4a0b1._0x49b544,0xef)]===_0x4ad90a(_0xe4a0b1._0x546f50,0x2cf,_0xe4a0b1._0x39eadc,0x283)?_0x3a68a6[_0x4ad90a(0x3ce,_0xe4a0b1._0xe3fa66,_0xe4a0b1._0x58e0d6,0x333)](_0x4ad90a(_0xe4a0b1._0x38d123,0x359,0x2a5,_0xe4a0b1._0x5738d8),_0x4ad90a(_0xe4a0b1._0x5ea53c,_0xe4a0b1._0xdcbab1,0x302,_0xe4a0b1._0x3d816c)+_0xfe70cd[_0x4ad90a(0x298,0x339,0x35d,0x2f7)]['value']):_0x3a68a6[_0x4ad90a(_0xe4a0b1._0x2507cb,0x325,0x354,0x2ac)](_0x4233e5(_0xe4a0b1._0x243c33,-0x2c,-_0xe4a0b1._0x9ceea2,0xa3),_0xfe70cd[_0x4ad90a(_0xe4a0b1._0x33b51a,_0xe4a0b1._0x2567ec,_0xe4a0b1._0x5aaeb9,0x2c3)][_0x4ad90a(_0xe4a0b1._0x16068b,_0xe4a0b1._0x19ad3a,_0xe4a0b1._0x37ee84,_0xe4a0b1._0x5312f6)]);function _0x4233e5(_0x51fb36,_0x241175,_0x186e31,_0x45ae75){return _0x2b6123(_0x241175,_0x241175-_0x487c27._0x199cbc,_0x51fb36- -_0x487c27._0x1030c4,_0x45ae75-0xae);}function _0x4ad90a(_0x1ba5ca,_0xba0649,_0x381592,_0xb5dcb0){return _0x38c793(_0x381592,_0xba0649-_0x4d1059._0xe8279a,_0xba0649- -0x17b,_0xb5dcb0-0xf1);}const _0x2bd026=await this[_0x4233e5(0x19,-_0xe4a0b1._0x32a8c6,-0x77,_0xe4a0b1._0x18fa31)]?.({'body':_0xfe70cd[_0x4233e5(-0xec,-0x2f,-0x72,-0x75)],'credential':_0xfe70cd['credential'],'request':_0xfe70cd[_0x4ad90a(0x1d9,0x262,_0xe4a0b1._0x1c50a2,_0xe4a0b1._0x4dcd9a)],'session':_0xfe70cd['session'],'stream':_0xfe70cd[_0x4233e5(0x1e,-0x89,0xc1,_0xe4a0b1._0x2640e5)]});for(const [_0x3fa223,_0x568597]of Object['entries'](_0x2bd026??{})){_0x3a68a6[_0x4233e5(_0xe4a0b1._0x2cf25e,-_0xe4a0b1._0x1e93b4,-_0xe4a0b1._0x5068bd,-_0xe4a0b1._0x517806)](_0x3fa223,_0x568597);}return _0x3a68a6;}['mapApiError'](_0xcc4177){return _0xcc4177;}[_0x38c793(0x4c6,0x55c,0x4bb,0x3ff)](_0x1b6e50,_0x2fea13){return resolveSessionBaseUrl(_0x1b6e50,_0x2fea13);}[_0x38c793(0x42f,0x44e,0x3e3,0x41f)](_0x1f9754,_0x554e63){return resolveApiCredential(_0x1f9754,_0x554e63);}async[_0x38c793(0x47d,0x43f,0x488,0x4be)](_0x51c491){return await createHttpError(_0x51c491);}},AnthropicModel=class extends RoutedModel{constructor(_0x21e2c0={}){const _0x1263f2={_0xa8785b:0x2ea,_0x239b05:0x2ad,_0x144f8e:0x283,_0x587f29:0x2c3,_0xf95298:0x35c,_0x4172fd:0x26b,_0x368343:0x2ca,_0xbe423c:0x373,_0x40b8ee:0x215,_0xe97e51:0x2da,_0x5937e6:0x177,_0x224481:0x37d,_0x200525:0x318,_0x4eca8c:0x2d6,_0x2e3aa0:0x26f,_0x111033:0x2d1,_0x4daa2b:0x24d,_0x19a3b5:0x332,_0x47417f:0x389,_0x4ae48c:0x201,_0xb7be7:0x1d0,_0x42905e:0x1f4,_0x404e87:0x1e2,_0x79e424:0x285,_0x26df2d:0x2e2,_0x524537:0x224},_0x402cdd={_0x466eb6:0x1a,_0x3492c6:0x11b},_0x5186d2={_0x34da5e:0x93,_0x184503:0x9a};function _0x23e85f(_0x403e67,_0xf306af,_0x43b4d0,_0x185731){return _0x2b6123(_0xf306af,_0xf306af-0x192,_0x43b4d0- -_0x5186d2._0x34da5e,_0x185731-_0x5186d2._0x184503);}function _0x444adc(_0x5d7854,_0x12402f,_0x58bf7b,_0x3d628e){return _0x38c793(_0x3d628e,_0x12402f-_0x402cdd._0x466eb6,_0x12402f- -0x18a,_0x3d628e-_0x402cdd._0x3492c6);}super({'apiKey':_0x21e2c0[_0x444adc(_0x1263f2._0xa8785b,_0x1263f2._0x239b05,_0x1263f2._0x144f8e,0x34b)],'baseUrl':trimTrailingSlashes(_0x21e2c0[_0x23e85f(0x346,0x3a7,0x306,_0x1263f2._0x587f29)]??_0x23e85f(0x139,0x1f4,0x1c5,0x290)),'fetch':_0x21e2c0[_0x23e85f(_0x1263f2._0xf95298,_0x1263f2._0x4172fd,_0x1263f2._0x368343,_0x1263f2._0xbe423c)],'maxTokens':_0x21e2c0[_0x444adc(0x20c,_0x1263f2._0x40b8ee,_0x1263f2._0xe97e51,_0x1263f2._0x5937e6)]??0x4000,'model':_0x21e2c0['model']??_0x444adc(0x24e,0x2fa,0x344,0x3a4),'reasoning':_0x21e2c0[_0x23e85f(_0x1263f2._0x224481,_0x1263f2._0x200525,_0x1263f2._0x4eca8c,0x26f)],'providerAdapter':new AnthropicProviderAdapter({'authScheme':_0x21e2c0[_0x23e85f(0x377,0x333,0x324,_0x1263f2._0x2e3aa0)]??_0x444adc(0x2ee,_0x1263f2._0x111033,0x2ae,0x342),'headerResolver':_0x21e2c0[_0x444adc(_0x1263f2._0x4daa2b,_0x1263f2._0xa8785b,0x30d,_0x1263f2._0x19a3b5)],'protocolVersion':_0x21e2c0[_0x23e85f(_0x1263f2._0x47417f,_0x1263f2._0x4ae48c,0x2c4,0x249)]??'2023-06-01'}),'providerSessionResolver':_0x21e2c0[_0x444adc(_0x1263f2._0xb7be7,_0x1263f2._0x42905e,_0x1263f2._0x404e87,0x13e)],'requestMutators':_0x21e2c0[_0x23e85f(_0x1263f2._0x79e424,_0x1263f2._0x26df2d,0x283,_0x1263f2._0x524537)],'router':new StaticModelSurfaceRouter({'complete':ANTHROPIC_MESSAGES_SURFACE,'stream':ANTHROPIC_MESSAGES_STREAM_SURFACE}),'surfaces':createAnthropicSurfaces()});}['complete'](_0x30d0e5,_0x52d988){const _0x34680e={_0x42d0e6:0x622},_0x351382={_0x489629:0x177,_0x410256:0x2d1,_0x2d0dd4:0x13c};function _0x10eb34(_0x5b6c12,_0x5f1bab,_0x3f28b2,_0x429ac0){return _0x2b6123(_0x5b6c12,_0x5f1bab-_0x351382._0x489629,_0x429ac0-_0x351382._0x410256,_0x429ac0-_0x351382._0x2d0dd4);}return this[_0x10eb34(0x648,0x5b6,0x69f,_0x34680e._0x42d0e6)](_0x30d0e5,ANTHROPIC_MESSAGES_SURFACE,_0x52d988);}[_0x38c793(0x521,0x4ea,0x479,0x467)](_0x2b54e6,_0x3e1ba0){const _0x250b3e={_0x8724fa:0x429,_0xc304cb:0x364};function _0xae550b(_0x5a65fd,_0x56c4b2,_0x49147b,_0x1fc85e){return _0x2b6123(_0x49147b,_0x56c4b2-0xd1,_0x1fc85e-0x113,_0x1fc85e-0x121);}return this[_0xae550b(0x32e,0x2a8,_0x250b3e._0x8724fa,_0x250b3e._0xc304cb)](_0x2b54e6,ANTHROPIC_MESSAGES_STREAM_SURFACE,_0x3e1ba0);}},OPENAI_CHAT_COMPLETIONS_SURFACE=_0x38c793(0x2af,0x2ca,0x374,0x2ce),OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE=_0x2b6123(0x35c,0x34a,0x321,0x2ab),OPENAI_RESPONSES_SURFACE='openai-responses',OPENAI_RESPONSES_STREAM_SURFACE=_0x2b6123(0x235,0x284,0x28f,0x242),OPENAI_RESPONSES_WEBSOCKET_SURFACE='openai-responses-ws',OpenAiApiError=class extends Error{[_0x2b6123(0x361,0x24f,0x2a4,0x33f)];[_0x38c793(0x3f5,0x3c3,0x36f,0x3cd)];constructor(_0x4f2d0c,_0x10602b,_0x585067){const _0x44e696={_0x34b671:0xb9,_0x3adc09:0x49,_0x2b1fc7:0x62,_0x1c4f9:0x78,_0x3720e1:0x33,_0x3e8501:0xf6,_0x388f8e:0x417,_0x38365d:0x458},_0x28ef55={_0x4e388b:0x1ed,_0x64a81e:0x194},_0x3a4c82={_0x1baf5a:0x185,_0x3b7df3:0x1bc};function _0x599701(_0x424a01,_0x387e4d,_0x59b65b,_0x65ce00){return _0x38c793(_0x387e4d,_0x387e4d-_0x3a4c82._0x1baf5a,_0x59b65b-0xe9,_0x65ce00-_0x3a4c82._0x3b7df3);}super(_0x585067),this[_0x4268d6(-_0x44e696._0x34b671,-_0x44e696._0x3adc09,-0xba,-0xbb)]='OpenAiApiError';function _0x4268d6(_0x533ce4,_0x41792c,_0x1defff,_0xfcbb5a){return _0x38c793(_0xfcbb5a,_0x41792c-_0x28ef55._0x4e388b,_0x533ce4- -0x436,_0xfcbb5a-_0x28ef55._0x64a81e);}this[_0x4268d6(-_0x44e696._0x2b1fc7,-_0x44e696._0x1c4f9,-_0x44e696._0x3720e1,-_0x44e696._0x3e8501)]=_0x4f2d0c,this[_0x599701(0x462,_0x44e696._0x388f8e,_0x44e696._0x38365d,0x3c9)]=_0x10602b;}},OpenAiResponsesStreamError=class extends Error{['code'];[_0x2b6123(0x222,0x36f,0x2a4,0x280)];constructor(_0x3d47fc,_0x16ec8c={}){const _0x55cfb2={_0x238265:0x64,_0x31bed0:0xd9,_0x2877c3:0x3b2,_0x36dcb3:0x3e6,_0x30f181:0x231,_0x147f2e:0x239,_0x28423b:0x25e,_0x18fd54:0x39b},_0x90c825={_0x3e14a3:0x131,_0x4f24fb:0x8},_0x20b51c={_0x37fdf5:0x119,_0x361911:0x174,_0x30faea:0x1e8};super(_0x3d47fc),this[_0x20fa4b(_0x55cfb2._0x238265,_0x55cfb2._0x31bed0,0x15e,0x114)]=_0x2ef86d(_0x55cfb2._0x2877c3,0x491,_0x55cfb2._0x36dcb3,0x3f3),this[_0x20fa4b(0x243,0x24a,_0x55cfb2._0x30f181,_0x55cfb2._0x147f2e)]=_0x16ec8c[_0x20fa4b(0x242,0x24a,0x1b4,_0x55cfb2._0x28423b)];function _0x20fa4b(_0x583e11,_0x140c14,_0xc8c8dc,_0x3c1a8a){return _0x2b6123(_0x3c1a8a,_0x140c14-_0x20b51c._0x37fdf5,_0x140c14- -_0x20b51c._0x361911,_0x3c1a8a-_0x20b51c._0x30faea);}function _0x2ef86d(_0x218031,_0x2bed3d,_0x1aeab1,_0x2c2461){return _0x2b6123(_0x2bed3d,_0x2bed3d-_0x90c825._0x3e14a3,_0x1aeab1-0xf7,_0x2c2461-_0x90c825._0x4f24fb);}this[_0x2ef86d(0x301,0x3e1,_0x55cfb2._0x18fd54,0x415)]=_0x16ec8c['status'];}};function stringifySystem(_0x38c19e){const _0x490ae5={_0x390dcf:0x48,_0x40ba9d:0x6e,_0x551289:0x50,_0x2b3c88:0x8e},_0x438018={_0x2cf64e:0x19c},_0x589133={_0x4ed838:0x90,_0x566350:0x199};function _0x2d1734(_0x10a94d,_0x17781b,_0x3dd0f7,_0x12f9d3){return _0x38c793(_0x10a94d,_0x17781b-_0x589133._0x4ed838,_0x3dd0f7- -0x4f2,_0x12f9d3-_0x589133._0x566350);}function _0xa5e079(_0x2e4107,_0x3f4d6f,_0x12efd5,_0x529b2d){return _0x38c793(_0x12efd5,_0x3f4d6f-0x1a7,_0x3f4d6f- -0x4fa,_0x529b2d-_0x438018._0x2cf64e);}return _0x38c19e[_0xa5e079(0x37,-_0x490ae5._0x390dcf,-_0x490ae5._0x40ba9d,-0xff)](_0xab20a9=>_0xab20a9[_0xa5e079(-0x1b,-0xb8,-0x152,-0x154)])[_0x2d1734(-_0x490ae5._0x551289,-0xa6,-0xee,-_0x490ae5._0x2b3c88)]('\x0a\x0a');}function _0x35dd(){const _0x3c23b4=['B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','Bw9KzwXfBMrWB2LUDenHy2HL','y3jLyxrLtwLZC2LUz0nYzwrLBNrPywXfCNjVCG','CMvZCg9UC2uUCMvHC29UAw5Nx3n1Bw1HCNLFDgv4Dc5KB25L','rgLYzwn0igfUC3DLCJOG','Dgv4Dej5sw5KzxG','D2vIC29JA2v0','Dg9Rzw5fEgnOyw5NzufWAvzLCNnPB24','C3rYAw5N','C2HHCMvKuMvZCg9UC2vZu29JA2v0u2vZC2LVBNm','CMvZCg9UC2vjza','ChjVEhK','C2XPy2u','B3bLBMfPx3jLyxnVBMLUzW','CMvZCg9UC2vtB2nRzxrtDhjLyw0','B3v0Chv0x3rLEhq','Dg9VBf91C2u','AM9PBG','y2XVC2u','DxnLCI12AxnPyMXL','yxbP','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzgvSDge','C2LNBMfS','BxnNlq','y29UDgvUDa','y2HHDfn0CMvHBq','C2vUzfjHD1jLCxvLC3q','r2L0shvItw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5lcbHy2nLC3nuB2TLBIWGB3iGChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','Aw50zxjSzwf2zwqTDgHPBMTPBMCTmJaYns0Wns0Xna','y3jLyxrLu3rYzwfTugfYC2vY','zw50CMLLCW','Dg9VBf91C2vFzgvSDge','DgHLBG','BwvKAwfFDhLWzq','B3v0Chv0sw5KzxHuB1jLyxnVBMLUz0LK','nJKXnte1uwvAtMvN','DMfSDwvZ','Aw50zxjSzwf2zwq','zgLZCgXHEq','qMfZAa','DMfSDwu','zNjVBq','DMLZAwjPBgL0Eq','Bwf4x2nVBNrLEhrFD2LUzg93x3rVA2vUCW','t3bLBKfPuMvZCg9UC2vZu3rYzwfTrxjYB3i','C3rHCNrZv2L0Aa','zg9Uzq','y2HHDenVBxbSzxrPB25Zugf0Aa','qw50AhjVCgLJihn0CMvHBsbMywLSzwq','BM93','DxnLCG','Dg9VBhm','CgfYC2u','qw50AhjVCgLJtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','C3rYzwfTvMLHq29UzMLNDxjLzfn1CMzHy2u','Bwv0Ag9K','C3vYzMfJzxm','DNnJB2rLlZeUmta0lJi','BwvZC2fNzv9KzwX0yq','DhjPBvn0yxj0','y2HHDenVBxbSzxrL','B3bLBMfPlxjLC3bVBNnLCY13CW','C29YDa','C3rYzwfTvMLHuMvZCg9UC2vZu3vYzMfJzq','CMvZCg9UC2vZugf0Aa','r0vu','CMvZCg9UC2uUB3v0Chv0x2L0zw0UywrKzwq','Aw5JBhvKzxm','yxbPs2v5','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','C3rYzwfTvMLHq2HHDenVBxbSzxrPB25Zu3vYzMfJzq','CgfYDgLHBf9QC29U','y29UDgvUDf9IBg9JA19ZDgfYDa','ChjLDMLVDxnFCMvZCg9UC2vFBM90x2zVDw5K','C3bSAxq','C3rYzwfTvMLHuMvZCg9UC2vZu29JA2v0qxr0zw1WDa','Aw5KzxHpzG','zgvSzxrL','zw5KCg9PBNrZ','Dgv4Da','Dg9VBenHBgXpCMrLCG','ChvZAa','y29TCgXLDgu','CMvXDwvZDe11Dgf0B3jZ','zMLSDgvY','yw50AhjVCgLJqxnZAxn0yw50q29UDgvUDa','Dg9VBfvZzvn0yxj0rw1PDhrLza','yMvHCMvY','CM9Szq','ue9tva','C3rHDhvZvgv4Da','uMvZCg9UC2vZihn0CMvHBsbMywLSzwq','zw5HyMXLza','ywnJzxb0','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNmTC3rYzwfT','CMvHC29UAw5Nx3rVA2vUCW','y2fWywjSzv9LBMrWB2LUDhm','Dg9Rzw4','nJbwq0r2uhK','zMLUywXszxnWB25Zzq','CMvHC29UAw5NugfYDhm','y29UDgvUDf9PBMrLEa','C2vUzeH0DhbtDxjMywnLuMvXDwvZDa','C3vWCg9YDgvKx2vUzhbVAw50CW','Ec1HCgKTA2v5','CMvZCg9UC2vtB2nRzxq','qw50AhjVCgLJigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','B2f1DgGTDg9Rzw4','y29UBMvJDf9MywLSzwq','CMvWBgfJzq','mJK4otu4uvzqwwzj','v2vIu29JA2v0ihjLCxvLC3qGzMfPBgvK','zM9Yy2vgDwXSuMvWBgf5','Aw5WDxrFANnVBL9KzwX0yq','yxbWBhLnB2rLBerLzMf1BhrZ','Dgv4Df9KzwX0yq','ywnXDwLYzvjLC3bVBNnLC1nVy2TLDeXVy2S','CMvMDxnHBa','Aw52ywXPzgf0zvjLC3bVBNnLC1nVy2TLDfnLC3nPB24','Dg9VBf9JywXSCW','uMvZCg9UC2vZifDLyLnVy2TLDcbYzxf1zxn0igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','B21PDhrLza','B3bLBG','l2nOyxqVy29TCgXLDgLVBNm','y29TCgXLDgvwAwfszxnWB25ZzxntDxjMywnL','ywjVCNq','CMvZB2X2zxi','zxjYB3i','sw52ywXPzcbxzwjtB2nRzxqGBwvZC2fNztOG','AgvHzgvYuMvZB2X2zxi','BgfZDfjLC3bVBNnLswq','AgfZ','CMvZCg9UC2u','CMvZCg9UC2vtDhjLyw0','C3rYzwfT','C3vTBwfYEuj5sw5KzxG','Aw5WDxrkC29U','Dgv4Dc9LDMvUDc1ZDhjLyw0','Dg9VBf91C2vFAwq','zMXHDe1HCa','yNvKz2v0vg9Rzw5Z','Aw5KzxG','y29TCgXLDgvwAwftDxjMywnL','C2HVDwXKuhjLzMvYuMvZCg9UC2vZqxbP','yNvPBgrqyxj0AwfSt3v0Chv0','y2XHDwrLlxnVBM5LDc00ltiWmJuWnte0','Dgv4DfbHCNrZ','C2LNBMf0DxjL','ChjVDg9JB2XwzxjZAw9U','Dg9bCgLfCNjVCG','nJeWodK3mNDSDer5tW','Aw5WDxq','zNjVBuvUDhjPzxm','z2v0uMvHzgvY','zMv0y2G','o2jHC2u2ncW','Aw5WDxrFDgv4Da','C2LNBMf0DxjLx2rLBhrH','r2L0shvIq29WAwXVDenOyxqVmc4ZmY4X','B3v0Chv0sw5KzxG','zw5JCNLWDgvKq29UDgvUDa','y2fJAgvK','Dg9VBf9Yzxn1Bhq','CMvXDwvZDhm','DgHPBMTPBMC','y2fWywjPBgL0AwvZ','CMvHC29UAw5N','Aw5WDxruB2TLBNm','CgfYC2vszxnWB25Zzq','sw52ywXPzcbYzxf1zxn0oIa','mZKWotG5m21oExzNsG','yxnZAxn0yw50','igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','C2v0','C3rYzwfTv2vIu29JA2v0u3vYzMfJzq','C3vTBwfYEv90zxH0','C291CMnL','l3yXl21LC3nHz2vZ','CMvTB3zLrxzLBNrmAxn0zw5LCG','y3jLyxrLuMvXDwvZDa','y29TCgXLDgvwAwfdB25MAwD1CMvKu3vYzMfJzq','CMvZCg9UC2uUzMfPBgvK','Aw5WDxrFC2nOzw1H','DxjS','yw50AhjVCgLJx3nPz25HDhvYzv9KzwX0yq','Bw9KzwW','C29Tzq','DNnJB2rLlZeUmta2lJe','nJGZmJy0rwzhwKLU','C3rYzwfTshr0Cfn1CMzHy2u','C3rYzwfTvMLHugvYC2LZDgvUDfjLC3bVBNnLC1nVy2TLDa','BwfW','y29UDgvUDf9IBg9JA19KzwX0yq','y3jLzgvUDgLHBa','l3jLC3bVBNnLCW','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','C2L6zq','yxbPlwTLEq','zxzLBNq6','t1bftG','CMvZB2X2zujHC2vvCMW','C2vZC2LVBG','l2nVCgLSB3rFAw50zxjUywWVDJiVDg9Rzw4','zMLUAxnO','CgvUzgLUzW','C3vTBwfYEv9PBMrLEa','zgvSDge','z3b0ltrV','z2v0u3vYzMfJzq','z2v0t3jdCMvHDgvszxnWB25ZzxntB2nRzxq','oNjLyxnVBMLUzZOW','v2vIu29JA2v0ignSB3nLzcb3AxrOignVzguG','CMvZCg9UC2uUB3v0Chv0x2L0zw0Uzg9Uzq','C3rYzwfTvMLHuMvZCg9UC2vZv2vIu29JA2v0u3vYzMfJzq','yMfZzvvYBa','D2vIC29JA2v0x2nVBM5Ly3rPB25FBgLTAxrFCMvHy2HLza','y29TCgXLDgvwAwfdAgf0q29TCgXLDgLVBNntDxjMywnL','u3vYzMfJzsa','zMLUza','y29UC3vTzuv2zw50','BwfYA01VzgvSqxnszxnWB25ZzxnpBMX5','ChjVDMLKzxjtDgf0zq','CMvZB2X2zq','DgvZDa','C3vTBwfYAxPLza','yxv0Ag9YAxPHDgLVBG','Aw5JBhvKzunVBNrLBNruExbL','igrVzxmGBM90ihn1ChbVCNqGBM9Ulxn0CMvHBwLUzYbYzxnWB25Zzxm','v2vIu29JA2v0','CMvHC29U','CMvZCg9UC2vuzxH0ugfYDhm','C3rYzwfTvMLHuM91DgvY','D2vIu29JA2v0rMfJDg9YEq','ywDLBNq','y2HHDgnTCgW','Dg9VBenHBgXZqNLjBMrLEa','CMvHC29UAw5Nx2nVBNrLBNq','B3bLBKfPrgvSzwDHDgu','zgLZywjSzwq','AxnbCNjHEq','B3v0Chv0x3rVA2vUCW','C2vZC2LVBK1HBMfNzxi','DgHPBMTPBMDFzgvSDge','Dg9VBc1JywXSlq','yxv0AfnJAgvTzq','zgvJB2rL','BwvZC2fNzuLK','ywjVCNrLza','Bwv0ywrHDge','z2L0AhvIqxbPvxjS','ywnJzxnZvg9Rzw4','y29Kzq','Ahr0Chm6','zNvUy3rPB25Fy2fSBa','B3v0Chv0x3rVA2vUC19KzxrHAwXZ','yMfZzty0','y29UC3vTzvDLyLnVy2TLDev2zw50','mJaYns0Xmc0Wmq','C3rYzwfTu3vYzMfJzq','DxnHz2u','y2HVAwnLCW','Ahr0Cc1ZC2u','C3vTBwfYEq','CMvZCg9UC2uUCMvHC29UAw5Nx3n1Bw1HCNLFDgv4Dc5KzwX0yq','B3v0Chv0','y2HHDgnTCgWT','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzg9Uzq','zgvZy3jPChrPB24','yw50AhjVCgLJlw1LC3nHz2vZlxn0CMvHBq','B3v0Chv0vg9Rzw5Z','yw50AhjVCgLJx3rOAw5RAw5N','C3vYzMfJzq','C3rYAw5NAwz5','ChjVDMLKzxjbzgfWDgvY','yM9KEq','A2LUza','Aw1Hz2u','CMvZCg9UC2uUy29TCgXLDgvK','ChjLCgfYzunOyxrszxf1zxn0','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','l21VzgvSCW','yxjNDw1LBNrZ','vw5ZDxbWB3j0zwqGr2L0shvIig1VzgvSihn1CMzHy2u6ia','otC0m2zqshrIrG','nZrPA0jotxa','y2fSBeLKvg9pDxrWDxrjBMrLEa','z2v0qw50AhjVCgLJrgvSzwDHDgu','Cgf0Aa','BMfTzq','ChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','zwrPDg9YugX1z2LUvMvYC2LVBG','ywrK','C3rYzwfTvMLHu3vYzMfJzq','D3m6','CMvZCg9UC2uUy3jLyxrL','CMvKywn0zwrFDgHPBMTPBMC','t3bLBKfjigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','zw5Kx3r1CM4','Bw9JAW','Ahr0Chm6lY9HCgKUyw50AhjVCgLJlMnVBq','Ahr0Cc1QC29U','C3rVCfjLyxnVBG','z2v0t3jdCMvHDgvszwfZB25PBMDjDgvT','y29TCgXLDgLVBL90B2TLBNnFzgv0ywLSCW','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBKTLEq','C2HVDwXKuMv0CNLszxnWB25ZzxntB2nRzxrszxf1zxn0','C2vZC2LVBKLK','DgvSzw1LDhj5','qxv0AgvUDgLJyxrPB24GzMfPBgvKlIbqBgvHC2uGy2HLy2SGEw91CIbbueKGA2v5lG','B3bLBMfPuMvZCg9UC2vZuMvZCg9UC2vjza','C3rVCf9YzwfZB24','CMvHC29UAw5NsxrLBxm','y3jLyxrLsgvHzgvYCW','B2jQzwn0','Aw1Hz2vFDxjS','ntzKsxr3whK','zMv0y2HjBxbS','zNvUy3rPB24','AxrLBq','nvvgvxbdDG','ignHBM5VDcbWyxjZzsbtu0uGzxzLBNrZ','Ahr0Chm6lY9HCgKUB3bLBMfPlMnVBs92mq','Bwf4vg9Rzw5Z','zgf0yq','zw5JCNLWDgvKx2nVBNrLBNq','y2fSBf9Pza','C29JA2v0','AgvHzgvYCW','Dg9VBenHBgXZ','AxrLBv9Pza','Aw5PDgLHBev2zw50','BwvZC2fNzv9ZDgfYDa','zwzMB3j0','zgf0ytO','y29WAwXVDc1JAgf0lZaUmZeUmW','y29TCgXLDgLVBL90B2TLBNm','CM91DgvY','C3vWCg9YDgvKrw5KCg9PBNrZ','mZi4nfP3B25hEa','BNvTyMvY','yxbWBgLJyxrPB24VANnVBG','yw50AhjVCgLJrgvSzwDHDgu','B3v0Chv0x2LUzgv4','z2v0','z2v0t3bLBKfPrgvSzwDHDgu','t3bLBKfPtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','BwfWqxbPrxjYB3i','igrPzcbUB3qGChjVDMLKzsbHBIbivfrqihbHDgG','ANnVBG','yNvPBgrszxnWB25ZzxntB2nRzxrfDMvUDa','ntq2m1PywMzTAG','ChjLCgfYzvjLC3bVBNnLC1nVy2TLDfjLCxvLC3q','B3v0Chv0sw5KzxHuB0nHBgXjza','AxneB25L','B3bLBMfPlxjLC3bVBNnLCY1ZDhjLyw0','CMvHC29UAw5Nx3rLEhq','y29UBMvJDgLUzW','Aw5WDxrFDg9Rzw5Z','Bw9Kzq','Dg9tDhjPBMC','qMvHCMvYia','Aw52ywXPzgf0zq','w0rptKvD','y29TCgXLDgvwAwfsB3v0zxi','B3bLBMfPlxjLC3bVBNnLCW','DxnLC1jLC3bVBNnLC0fWAq','BgvUz3rO','y29UC3vTzvnZzuv2zw50','y29UDgvUDf9KzwX0yq','y2f0y2G','BwvZC2fNzxm','yw50AhjVCgLJx3jLzgfJDgvKx3rOAw5RAw5N','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzgvSDge','DhjPBq','ChjLDMLVDxnszxnWB25ZzuLK','C3rHDhvZ','C3LZDgvT','yMXVy2TZ','D3nZoG','ywrKrxzLBNrmAxn0zw5LCG','y29TCgXLDgvK','y2fUy2vS','B3jPz2LUlxrYywnRzxi','C2vUza','CMvXDwvZDa','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBLn0yxrL','C2vSzwn0u3vYzMfJzq','BwvZC2fNzuLUzgv4','C3bSAwnL','BwvZC2fNzq','CMvZB2X2zunYzwrLBNrPywW','CMvHzhLtDgf0zq','CMvZCc0','mJbhvMnMuKq','yw50AhjVCgLJlw1LC3nHz2vZ','yw50AhjVCgLJlxzLCNnPB24','DhjHBNnWB3j0','yxn5BMnjDgvYyxrVCG','y29TCgXLDgvtDxjMywnL','yxnZAxn0yw50lq','yxv0BW','C2HPzNq','DhLWzq','y29UDgvUDc10ExbL','uhjVDMLKzxiGCMvXDwvZDcbMywLSzwqGD2L0AcbZDgf0DxmG','zwrPDg9YvMvYC2LVBG'];_0x35dd=function(){return _0x3c23b4;};return _0x35dd();}function createToolDefinitions(_0x1ce47c){const _0x497502={_0x80ae00:0xb8,_0x293b74:0xb1,_0x358df9:0xee,_0x42fec3:0xab,_0x5a445f:0x1a0},_0x89a742={_0x868b30:0x1d,_0x4e903c:0xe,_0x4827d7:0x145,_0x2df046:0x1e3},_0x4bfb35={_0x3e74a0:0x60},_0x590930={_0x2ddf3b:0x8e,_0x2a96be:0x294,_0x21a7ac:0x3f},_0x2eda89={_0x24493c:0x4ba};function _0x19d2f9(_0x4b7284,_0x1bff1c,_0x1a0140,_0x4bb1a1){return _0x2b6123(_0x1a0140,_0x1bff1c-0xc,_0x4bb1a1- -_0x2eda89._0x24493c,_0x4bb1a1-0x1c7);}function _0x4f7e0d(_0x52e3b0,_0x31297e,_0x5c4bc7,_0x4675df){return _0x2b6123(_0x31297e,_0x31297e-_0x590930._0x2ddf3b,_0x52e3b0- -_0x590930._0x2a96be,_0x4675df-_0x590930._0x21a7ac);}if(_0x1ce47c[_0x4f7e0d(0x7,0x2f,_0x497502._0x80ae00,_0x497502._0x293b74)]===0x0)return void 0x0;return _0x1ce47c[_0x4f7e0d(_0x497502._0x358df9,_0x497502._0x42fec3,_0x497502._0x5a445f,0x79)](_0x223b19=>{const _0xd0df35={_0x148254:0x274};function _0x101eca(_0x360c3e,_0x1257d6,_0x40a732,_0x8db4a3){return _0x4f7e0d(_0x40a732-_0x4bfb35._0x3e74a0,_0x360c3e,_0x40a732-0xba,_0x8db4a3-0x28);}function _0x511d95(_0x370b42,_0x2b8f56,_0x57b7e9,_0x3c020b){return _0x19d2f9(_0x370b42-0x166,_0x2b8f56-0x20,_0x370b42,_0x57b7e9-_0xd0df35._0x148254);}return{'type':'function','function':{'name':_0x223b19[_0x101eca(0x2c,0xc9,0x19,-0x57)],'description':_0x223b19[_0x511d95(-_0x89a742._0x868b30,0xa5,-_0x89a742._0x4e903c,-0x52)],'parameters':_0x223b19[_0x101eca(0x143,0x1ad,_0x89a742._0x4827d7,_0x89a742._0x2df046)]}};});}function isImageToolResultBlock(_0x4fde29){const _0x564163={_0x2870bd:0x28,_0x354f3d:0x10f,_0xac4aed:0x8,_0x28ae62:0x96,_0x3f2862:0x99,_0x1438c5:0x8b,_0x327f29:0x10d,_0x594c40:0x86,_0x2a1132:0x1f2,_0x7ffbe0:0xd6,_0x56e709:0x12a,_0x13a809:0xba,_0x5d4c21:0x90,_0x3e357c:0xf,_0x5258cb:0x148,_0x125650:0x13d,_0x25f0a1:0x257,_0x1dbff0:0x1a3},_0x25898f={_0x1e55ba:0x1ba,_0x3673ff:0x2da,_0x754718:0x53},_0x388d95={_0x3b6dcd:0x0,_0x14c408:0x91};function _0x3ff62b(_0x1a1563,_0x37cae6,_0x820b31,_0x38ffd4){return _0x38c793(_0x37cae6,_0x37cae6-_0x388d95._0x3b6dcd,_0x820b31- -0x5b0,_0x38ffd4-_0x388d95._0x14c408);}if(typeof _0x4fde29!==_0x3bcf5b(_0x564163._0x2870bd,-0x40,-_0x564163._0x354f3d,-0x74)||_0x4fde29===null||Array['isArray'](_0x4fde29))return![];function _0x3bcf5b(_0x54c706,_0x703b39,_0x134850,_0xeb428){return _0x2b6123(_0x54c706,_0x703b39-_0x25898f._0x1e55ba,_0xeb428- -_0x25898f._0x3673ff,_0xeb428-_0x25898f._0x754718);}const _0x3d898f=_0x4fde29;return _0x3d898f[_0x3bcf5b(-0x6e,-_0x564163._0xac4aed,-0x4f,-0x1b)]===_0x3bcf5b(-_0x564163._0x28ae62,-0x14e,-0x25,-_0x564163._0x3f2862)&&_0x3d898f[_0x3ff62b(-_0x564163._0x1438c5,-0xf4,-_0x564163._0x327f29,-_0x564163._0x594c40)]?.[_0x3ff62b(-0x12f,-_0x564163._0x2a1132,-0x1c1,-0x14b)]===_0x3bcf5b(-_0x564163._0x7ffbe0,-_0x564163._0x56e709,-0xcc,-0xae)&&typeof _0x3d898f['source'][_0x3bcf5b(-_0x564163._0x13a809,-0x87,-0x57,0xa)]===_0x3bcf5b(-0xa0,0x99,-_0x564163._0x5d4c21,-_0x564163._0x3e357c)&&typeof _0x3d898f[_0x3ff62b(-0xdf,-_0x564163._0x5258cb,-0x10d,-0x10f)]['data']===_0x3ff62b(-_0x564163._0x125650,-_0x564163._0x25f0a1,-0x1b5,-_0x564163._0x1dbff0);}function getToolResultText(_0x370fb7){const _0x4b7efb={_0x476eb0:0x3be,_0x1b3bbe:0x146,_0x2f2ec0:0xa5,_0xe6cc9c:0x11d,_0xf789a5:0x31,_0x4a8e28:0x33b,_0x432800:0x375,_0x4e7311:0x367,_0x58df3a:0x3e6},_0x263a10={_0xed28b0:0xfc,_0x2f8904:0x141,_0x308b:0x11f},_0x4f30fc={_0x2e23b7:0x24c,_0x3d74d4:0x308,_0x14de29:0x31b,_0x4284ec:0x2d5,_0x440929:0x2d9,_0x2bc1c6:0x2cf,_0x5c3c13:0x27f,_0x24da0f:0x328},_0x52c7b6={_0x38a907:0x27,_0x1df4e3:0x53,_0x463289:0x1e0},_0x158353={_0x21484c:0x95,_0x3ce4f0:0x138};function _0x3bca5c(_0x2cdbd1,_0x55366b,_0x33c461,_0x4ed98d){return _0x2b6123(_0x55366b,_0x55366b-_0x158353._0x21484c,_0x33c461- -0x1b7,_0x4ed98d-_0x158353._0x3ce4f0);}if(typeof _0x370fb7===_0x591d73(0x370,0x2ba,0x29f,0x36a))return _0x370fb7;const _0xaf5711=_0x370fb7[_0x591d73(0x2df,0x306,0x314,_0x4b7efb._0x476eb0)](_0x387dfe=>{const _0x109502={_0x155bf2:0x16d,_0x2cc917:0x139};function _0x3a26be(_0x576b25,_0x5bc281,_0x241f02,_0x1a78b6){return _0x591d73(_0x5bc281,_0x1a78b6-_0x52c7b6._0x38a907,_0x241f02-_0x52c7b6._0x1df4e3,_0x1a78b6-_0x52c7b6._0x463289);}function _0x42c909(_0x23d822,_0x35c7db,_0x2f7ac3,_0x3bce41){return _0x3bca5c(_0x23d822-_0x109502._0x155bf2,_0x3bce41,_0x23d822-0x28,_0x3bce41-_0x109502._0x2cc917);}return typeof _0x387dfe===_0x3a26be(_0x4f30fc._0x2e23b7,0x1eb,_0x4f30fc._0x3d74d4,0x27c)&&_0x387dfe!==null&&_0x387dfe[_0x3a26be(0x39a,_0x4f30fc._0x14de29,0x339,_0x4f30fc._0x4284ec)]===_0x3a26be(_0x4f30fc._0x440929,_0x4f30fc._0x2bc1c6,_0x4f30fc._0x5c3c13,_0x4f30fc._0x24da0f);})['map'](_0x2c8d54=>_0x2c8d54[_0x591d73(0x3af,0x301,0x371,0x33e)])[_0x3bca5c(_0x4b7efb._0x1b3bbe,_0x4b7efb._0x2f2ec0,_0x4b7efb._0xe6cc9c,0xf0)]('\x0a\x0a')['trim']();function _0x591d73(_0x3d98be,_0x2469c4,_0x19f9aa,_0x23ea77){return _0x38c793(_0x3d98be,_0x2469c4-_0x263a10._0xed28b0,_0x2469c4- -_0x263a10._0x2f8904,_0x23ea77-_0x263a10._0x308b);}return _0xaf5711[_0x3bca5c(0xfe,_0x4b7efb._0xf789a5,0xe4,0xfb)]>0x0?_0xaf5711:_0x591d73(_0x4b7efb._0x4a8e28,_0x4b7efb._0x432800,_0x4b7efb._0x4e7311,_0x4b7efb._0x58df3a);}function getToolResultImages(_0x17040e){const _0x26c076={_0x2cd91f:0x5a8,_0x37800b:0x4b0,_0x288ec3:0x4ea,_0xead0f7:0xf1,_0x4298f0:0x23a},_0x831c67={_0x2d99aa:0x7d,_0x29fd41:0x40},_0x4bade5={_0x1ba476:0x5dd,_0x5a2f26:0x29};function _0x54f616(_0x155a74,_0x1e2632,_0x32b797,_0x2a860b){return _0x38c793(_0x155a74,_0x1e2632-0x21,_0x1e2632- -_0x4bade5._0x1ba476,_0x2a860b-_0x4bade5._0x5a2f26);}function _0x5dff45(_0x2a7642,_0x170486,_0x5850f8,_0x4a7575){return _0x38c793(_0x5850f8,_0x170486-_0x831c67._0x2d99aa,_0x2a7642-_0x831c67._0x29fd41,_0x4a7575-0x4);}return Array[_0x5dff45(0x522,_0x26c076._0x2cd91f,_0x26c076._0x37800b,_0x26c076._0x288ec3)](_0x17040e)?_0x17040e[_0x54f616(-_0x26c076._0xead0f7,-0x196,-0x169,-_0x26c076._0x4298f0)](isImageToolResultBlock):[];}function parseToolInput2(_0x16cd84){const _0x30fd35={_0x151336:0x369,_0x2774ae:0x434,_0x82e724:0x43a},_0x4934fb={_0x5eb286:0x127};function _0x3c4ec(_0x45e4d0,_0x4bf228,_0x3c471e,_0x212d09){return _0x38c793(_0x4bf228,_0x4bf228-_0x4934fb._0x5eb286,_0x45e4d0-0x61,_0x212d09-0x15a);}if(_0x16cd84[_0x3c4ec(0x42c,_0x30fd35._0x151336,_0x30fd35._0x2774ae,_0x30fd35._0x82e724)]===0x0)return{};try{return JSON['parse'](_0x16cd84);}catch{return _0x16cd84;}}function isResponsesReasoningItem(_0x276ca6){const _0x3fb770={_0x37a27e:0x4e3,_0x4432b4:0x472},_0x89efab={_0x466425:0x9f,_0x20d912:0x27d,_0x386f78:0x1ae};function _0xfe7334(_0x200986,_0x239d46,_0x7ce83d,_0x454eb3){return _0x2b6123(_0x239d46,_0x239d46-_0x89efab._0x466425,_0x200986-_0x89efab._0x20d912,_0x454eb3-_0x89efab._0x386f78);}return typeof _0x276ca6===_0xfe7334(_0x3fb770._0x37a27e,0x5ae,_0x3fb770._0x4432b4,0x477)&&_0x276ca6!==null&&'type'in _0x276ca6&&_0x276ca6['type']==='reasoning';}function isResponsesMessageItem(_0x15c239){const _0x453b19={_0x1748d2:0x13f,_0x3d22bd:0x1de,_0x55fc9a:0x184,_0x308899:0x104,_0x4398b7:0xf8,_0x37c7e2:0x177,_0x2191ab:0x12e},_0x4f0329={_0x2b91d8:0x1a4},_0x3e5351={_0x558fb9:0x26b,_0x196b52:0x1bd};function _0x5e93b5(_0x44a352,_0x13c68f,_0x39de7a,_0x3cd0f6){return _0x38c793(_0x44a352,_0x13c68f-0x195,_0x13c68f- -_0x3e5351._0x558fb9,_0x3cd0f6-_0x3e5351._0x196b52);}function _0x54a383(_0x1b79d0,_0x4bf2e0,_0x2a9a1e,_0x2bd6dc){return _0x38c793(_0x1b79d0,_0x4bf2e0-0xca,_0x2bd6dc- -0x520,_0x2bd6dc-_0x4f0329._0x2b91d8);}return typeof _0x15c239===_0x5e93b5(0x1da,0x12b,_0x453b19._0x1748d2,0x1ae)&&_0x15c239!==null&&'type'in _0x15c239&&_0x15c239[_0x5e93b5(_0x453b19._0x3d22bd,_0x453b19._0x55fc9a,_0x453b19._0x308899,_0x453b19._0x4398b7)]===_0x5e93b5(0x148,_0x453b19._0x37c7e2,_0x453b19._0x2191ab,0x13d);}function isResponsesFunctionCallItem(_0x1d8ce0){const _0x161a4a={_0x59fbc4:0x114,_0x186450:0xe1,_0x137975:0xf4,_0xa2512a:0x1d2},_0x4058b3={_0x2c8652:0xcb,_0x5cf8e4:0x2b5,_0x4f9520:0xab},_0x571a58={_0x3646c1:0x68,_0x419259:0x45,_0xb0eb99:0x1ec};function _0x56cfe9(_0x3cfd8f,_0x1c210c,_0xf15d79,_0x414c6e){return _0x2b6123(_0x414c6e,_0x1c210c-_0x571a58._0x3646c1,_0x3cfd8f- -_0x571a58._0x419259,_0x414c6e-_0x571a58._0xb0eb99);}function _0x16b09c(_0x31783d,_0x30981d,_0xb7f96c,_0x573910){return _0x38c793(_0x31783d,_0x30981d-_0x4058b3._0x2c8652,_0xb7f96c- -_0x4058b3._0x5cf8e4,_0x573910-_0x4058b3._0x4f9520);}return typeof _0x1d8ce0===_0x16b09c(_0x161a4a._0x59fbc4,0x11a,_0x161a4a._0x186450,0x1d)&&_0x1d8ce0!==null&&'type'in _0x1d8ce0&&_0x1d8ce0[_0x16b09c(_0x161a4a._0x137975,_0x161a4a._0xa2512a,0x13a,0x1b3)]==='function_call';}function createContentBlocks(_0x12c416,_0x2c54a4,_0x244a8f){const _0x31bde0={_0x4eed4a:0x5cf,_0x3241b0:0x47a,_0x415d34:0x61c,_0x7bf0d1:0x61f,_0x3dc540:0x500,_0x42b3b3:0x560,_0x39bf74:0x5eb,_0x34a3ae:0x4d1,_0x2d9db7:0x541,_0x15a339:0x55f,_0x4c914d:0x585,_0x36b899:0x5d6,_0x4e568e:0x514,_0x468365:0x4c6,_0x46eeb7:0x532,_0x173a62:0x46d,_0x2f7023:0x604,_0xc3fd03:0x542,_0x4cd3b4:0x495,_0x2bdbcc:0x436,_0x1f061b:0x566,_0x743139:0x566,_0x1d6b30:0x5a4,_0x4f2680:0x597,_0x4f91c3:0x556,_0x251012:0x654,_0x2a6629:0x4fa,_0x29f924:0x52e,_0x14b612:0x591,_0x408851:0x58b,_0x5514e0:0x504},_0x868451={_0x33e090:0x290,_0x27f39b:0x173},_0x32f6a8={_0x4be0ab:0x183,_0x4239ec:0xf6},_0x686479=[];_0x244a8f&&_0x244a8f[_0x515410(_0x31bde0._0x4eed4a,0x52b,_0x31bde0._0x3241b0,0x557)]>0x0&&_0x686479[_0x3c3edf(0x5d8,0x632,_0x31bde0._0x415d34,_0x31bde0._0x7bf0d1)]({'type':_0x515410(_0x31bde0._0x3dc540,_0x31bde0._0x42b3b3,0x5f8,_0x31bde0._0x39bf74),'summary':[],'text':_0x244a8f});function _0x3c3edf(_0x5d6911,_0x570f55,_0xa4c3b1,_0x5c3b50){return _0x38c793(_0xa4c3b1,_0x570f55-_0x32f6a8._0x4be0ab,_0x5d6911-0x194,_0x5c3b50-_0x32f6a8._0x4239ec);}_0x12c416[_0x515410(_0x31bde0._0x34a3ae,0x52b,_0x31bde0._0x2d9db7,_0x31bde0._0x15a339)]>0x0&&_0x686479[_0x515410(0x528,0x5a4,_0x31bde0._0x4c914d,0x521)]({'type':_0x3c3edf(_0x31bde0._0x36b899,_0x31bde0._0x4e568e,0x52f,0x53a),'text':_0x12c416});for(const _0x336832 of _0x2c54a4){if(_0x336832['id'][_0x515410(_0x31bde0._0x468365,_0x31bde0._0x46eeb7,0x5fa,_0x31bde0._0x173a62)]()[_0x3c3edf(_0x31bde0._0x15a339,0x4bb,_0x31bde0._0x2f7023,_0x31bde0._0xc3fd03)]===0x0||_0x336832[_0x3c3edf(0x52e,_0x31bde0._0x4cd3b4,0x487,0x4f4)][_0x515410(0x4dd,0x4dd,_0x31bde0._0x2bdbcc,0x53f)][_0x3c3edf(_0x31bde0._0x1f061b,_0x31bde0._0x743139,0x621,0x59c)]()['length']===0x0)continue;_0x686479[_0x515410(0x5bd,_0x31bde0._0x1d6b30,0x627,0x5fb)]({'type':_0x3c3edf(_0x31bde0._0x4f2680,_0x31bde0._0x4f91c3,0x52f,_0x31bde0._0x251012),'id':_0x336832['id'],'name':_0x336832[_0x515410(0x4bf,_0x31bde0._0x2a6629,0x4db,0x44c)]['name'],'input':parseToolInput2(_0x336832[_0x3c3edf(_0x31bde0._0x29f924,0x5e1,0x594,0x4c0)][_0x3c3edf(0x50a,_0x31bde0._0x14b612,_0x31bde0._0x408851,_0x31bde0._0x5514e0)])});}function _0x515410(_0x366bdb,_0x3fa656,_0x32a183,_0x4e790a){return _0x2b6123(_0x4e790a,_0x3fa656-0xb,_0x3fa656-_0x868451._0x33e090,_0x4e790a-_0x868451._0x27f39b);}return _0x686479;}function createUsage(_0x3b2c55){const _0xb3b542={_0x4db31d:0x2c8,_0x5be6ee:0x364,_0x43cea9:0x249,_0x1afdaa:0x367,_0x42cfaa:0x363,_0xf56a7f:0x2e3,_0x58100b:0x390},_0x57d603={_0x46c44a:0x1a0,_0x42146e:0x1d4},_0x18517b={_0x4791db:0x114};function _0x3dcd72(_0x56f547,_0x7e288f,_0x17b8d4,_0x398be8){return _0x2b6123(_0x398be8,_0x7e288f-_0x18517b._0x4791db,_0x56f547-0x41,_0x398be8-0xc7);}function _0x492e02(_0x308246,_0x2680da,_0x3ad168,_0x13408f){return _0x38c793(_0x13408f,_0x2680da-0x72,_0x2680da-_0x57d603._0x46c44a,_0x13408f-_0x57d603._0x42146e);}return{'inputTokens':_0x3b2c55?.['prompt_tokens']??0x0,'outputTokens':_0x3b2c55?.[_0x3dcd72(0x2bd,0x21f,0x2fd,0x332)]??0x0,..._0x3b2c55?.[_0x3dcd72(0x29d,_0xb3b542._0x4db31d,_0xb3b542._0x5be6ee,_0xb3b542._0x43cea9)]?.[_0x3dcd72(0x363,0x3ce,0x37b,0x317)]!==void 0x0?{'reasoningTokens':_0x3b2c55[_0x3dcd72(0x29d,_0xb3b542._0x1afdaa,0x339,0x27f)][_0x3dcd72(_0xb3b542._0x42cfaa,0x317,_0xb3b542._0xf56a7f,_0xb3b542._0x58100b)]}:{}};}function resolveReasoningVisibility2(_0x57b39d){const _0x36ad29={_0x16176f:0x77,_0x5a6a0e:0x32,_0x244be9:0x6a,_0x4833f2:0x3d,_0x138351:0x125,_0x2742d4:0xe6,_0x5d981e:0x195},_0x11054c={_0x4966e1:0x164,_0x1b1739:0x503},_0x18dcbc={_0x3312ad:0x13d,_0x554168:0x4b3};function _0x169a14(_0x457406,_0x133d05,_0x53a0a2,_0x141d08){return _0x38c793(_0x141d08,_0x133d05-_0x18dcbc._0x3312ad,_0x133d05- -_0x18dcbc._0x554168,_0x141d08-0xc9);}function _0x5cca0d(_0x225926,_0x593105,_0x33ba2f,_0x31893c){return _0x38c793(_0x225926,_0x593105-_0x11054c._0x4966e1,_0x33ba2f- -_0x11054c._0x1b1739,_0x31893c-0x177);}return _0x57b39d[_0x5cca0d(-_0x36ad29._0x16176f,_0x36ad29._0x5a6a0e,-_0x36ad29._0x244be9,-_0x36ad29._0x4833f2)]?.[_0x5cca0d(-0x133,-_0x36ad29._0x138351,-_0x36ad29._0x2742d4,-_0x36ad29._0x5d981e)]??'user-visible';}function isUserVisibleReasoning(_0x35d60a){const _0xc4f1ed={_0x393ead:0x544,_0x5ac841:0x568,_0x492dd4:0x4e3},_0x461ac2={_0x59dfb3:0x2b};function _0x392233(_0x3e102b,_0x5955a8,_0xd211f7,_0x36376b){return _0x2b6123(_0x5955a8,_0x5955a8-0xb5,_0xd211f7-0x1ff,_0x36376b-_0x461ac2._0x59dfb3);}return resolveOpenAiReasoningConfig(_0x35d60a[_0x392233(0x4e1,_0xc4f1ed._0x393ead,_0xc4f1ed._0x5ac841,_0xc4f1ed._0x492dd4)])!==void 0x0&&resolveReasoningVisibility2(_0x35d60a)==='user-visible';}function createChatRequestBody(_0x52989b,_0x195646){const _0x239f57={_0xa1066e:0x267,_0x24c608:0x1d1,_0x126f87:0xfe,_0x230f97:0x25e,_0x2b183c:0x240,_0x2cac0c:0x1fc,_0x5aa912:0x13a,_0x23a067:0x193,_0x1a2522:0x21f,_0x341011:0x117,_0xf82b85:0x10f,_0x2f9b50:0x11b,_0x2e23fd:0xba,_0x360795:0x16d,_0x560ad0:0x14b,_0x235407:0x28,_0x2a9fa4:0x2df,_0x53b581:0x234,_0x230999:0x240,_0x3f529e:0x2ea,_0x2be2ad:0x2ca,_0x1bcb26:0x291,_0xe82030:0x69,_0x13040b:0x133,_0x3cafb8:0xf3,_0x40fd96:0x78,_0x579268:0xee,_0x4f0aad:0xbc,_0x59f321:0x239,_0x4409d5:0x207,_0xe2ee5b:0x1cd,_0x538bc5:0x14d,_0x3f2ad9:0x1c7,_0x222e32:0x1be,_0x14ba58:0x2ea,_0x38752d:0x23e,_0x30dfd6:0x234,_0xd13189:0x303,_0x44211d:0x279,_0xec8f61:0x336,_0x539280:0x1e2,_0x106d40:0x15f,_0x1f1313:0x1e1,_0x3ce9b1:0xf1,_0x47f97b:0x155,_0x276665:0x23e,_0x4d04b1:0x1a5,_0x21edb2:0x1a7,_0x33f5ce:0x222,_0x521a29:0x2a2,_0x5cbe06:0x97,_0x25f2b9:0x112},_0x3cb694={_0x2b2814:0x3ce,_0x1dce66:0x90},_0x212e99={_0x335c1b:0x3a1,_0x4169af:0x52,_0x10b672:0x1,_0x1d580e:0x1b,_0x4f47e0:0x473,_0x4bdaad:0x3d8,_0x32a3bd:0x3b7,_0x29d379:0xa3,_0x5758c0:0x11f,_0x47bd74:0x1d,_0x4bee3f:0x42a,_0x468b05:0x3d6,_0x80225c:0x3b7,_0x511eb0:0x48,_0x573b9e:0x12b,_0x3824b4:0x18,_0x14faf1:0x34e,_0x21184b:0x3b7,_0x3691fc:0x3c,_0x57630f:0x77,_0x428edb:0x38,_0xbf8235:0x407,_0x5d1ce8:0x41d,_0x1fb716:0xea,_0x2af52b:0x120,_0x60e925:0xb6},_0x9f9f7b={_0x519fb5:0xd4,_0x2cc2de:0x5b},_0x1dca2a=[];function _0x301824(_0x322c37,_0x2cbc17,_0x12f304,_0x17892e){return _0x2b6123(_0x2cbc17,_0x2cbc17-0x22,_0x12f304- -_0x9f9f7b._0x519fb5,_0x17892e-_0x9f9f7b._0x2cc2de);}const _0x4c2a32=stringifySystem(_0x52989b[_0x301824(0x29a,_0x239f57._0xa1066e,_0x239f57._0x24c608,0x172)]);_0x4c2a32[_0x301824(_0x239f57._0x126f87,0x1bd,0x1c7,_0x239f57._0x230f97)]>0x0&&_0x1dca2a[_0x301824(0x193,0x17b,_0x239f57._0x2b183c,0x246)]({'role':_0x301824(_0x239f57._0x2cac0c,_0x239f57._0x5aa912,_0x239f57._0x24c608,_0x239f57._0x23a067),'content':_0x4c2a32});for(const _0x965ea7 of _0x52989b['messages']){const _0x3a2e0f=[],_0x1be829=[],_0x3bfae9=()=>{const _0x3f50f6={_0x15c03a:0x159,_0x155f82:0x5},_0x119094={_0x5cfb6c:0x4ea};function _0x4a7cf5(_0x1e658a,_0x45b1ee,_0x27275c,_0x23a49b){return _0x5897ac(_0x45b1ee,_0x45b1ee-0xf8,_0x23a49b-_0x119094._0x5cfb6c,_0x23a49b-0x9b);}function _0x558b99(_0x27f5db,_0x3fb917,_0xf06fc5,_0x3332e6){return _0x301824(_0x27f5db-_0x3f50f6._0x15c03a,_0xf06fc5,_0x27f5db- -0x15d,_0x3332e6-_0x3f50f6._0x155f82);}if(_0x965ea7[_0x4a7cf5(_0x212e99._0x335c1b,0x407,0x482,0x437)]===_0x558b99(0x13d,0x163,0x1d2,0xdc)){if(_0x3a2e0f[_0x558b99(0x6a,_0x212e99._0x4169af,-_0x212e99._0x10b672,_0x212e99._0x1d580e)]===0x0&&_0x1be829['length']===0x0)return;_0x1dca2a[_0x558b99(0xe3,0x6b,0x38,0x1a2)]({'role':'assistant','content':_0x3a2e0f[_0x4a7cf5(_0x212e99._0x4f47e0,_0x212e99._0x4bdaad,0x3fe,_0x212e99._0x32a3bd)]>0x0?_0x3a2e0f[_0x558b99(_0x212e99._0x29d379,_0x212e99._0x5758c0,_0x212e99._0x47bd74,0x9f)]('\x0a\x0a'):null,..._0x1be829[_0x4a7cf5(_0x212e99._0x4bee3f,_0x212e99._0x468b05,0x36d,_0x212e99._0x80225c)]>0x0?{'tool_calls':_0x1be829[_0x558b99(0x80,-_0x212e99._0x511eb0,_0x212e99._0x573b9e,-_0x212e99._0x3824b4)](0x0)}:{}}),_0x3a2e0f[_0x4a7cf5(0x406,_0x212e99._0x14faf1,0x306,_0x212e99._0x21184b)]=0x0;return;}if(_0x3a2e0f[_0x558b99(0x6a,_0x212e99._0x3691fc,_0x212e99._0x57630f,_0x212e99._0x428edb)]===0x0)return;_0x1dca2a[_0x4a7cf5(_0x212e99._0xbf8235,_0x212e99._0x5d1ce8,0x3f9,0x430)]({'role':_0x965ea7[_0x558b99(_0x212e99._0x1fb716,_0x212e99._0x2af52b,0x68,_0x212e99._0x60e925)],'content':_0x3a2e0f['join']('\x0a\x0a')}),_0x3a2e0f[_0x4a7cf5(0x392,0x34e,0x411,_0x212e99._0x80225c)]=0x0;};for(const _0xc2eea5 of normalizeContent(_0x965ea7[_0x301824(0x1d4,_0x239f57._0x1a2522,0x207,0x1c5)])){if(_0xc2eea5[_0x5897ac(-_0x239f57._0x341011,-0x1d3,-_0x239f57._0xf82b85,-_0x239f57._0x2f9b50)]==='text'){_0x3a2e0f[_0x5897ac(-0x9c,-0x57,-_0x239f57._0x2e23fd,-_0x239f57._0x360795)](_0xc2eea5[_0x5897ac(-0xc3,-_0x239f57._0x560ad0,-0xbc,-_0x239f57._0x235407)]);continue;}if(_0xc2eea5[_0x301824(0x298,0x2a4,0x1eb,0x19e)]==='tool_use'){_0x1be829[_0x301824(_0x239f57._0x2a9fa4,_0x239f57._0x53b581,_0x239f57._0x230999,0x18d)]({'id':_0xc2eea5['id'],'type':'function','function':{'name':_0xc2eea5['name'],'arguments':JSON['stringify'](_0xc2eea5[_0x301824(_0x239f57._0x3f529e,0x30e,0x286,0x1f5)]??{})}});continue;}if(_0xc2eea5['type']!==_0x301824(_0x239f57._0x2be2ad,0x2df,_0x239f57._0x1bcb26,0x20e))continue;_0x3bfae9(),_0x1dca2a['push']({'role':'tool','content':getToolResultText(_0xc2eea5[_0x5897ac(-_0x239f57._0xe82030,-_0x239f57._0x13040b,-_0x239f57._0x3cafb8,-0x15d)]),'tool_call_id':_0xc2eea5[_0x5897ac(-_0x239f57._0x40fd96,-_0x239f57._0x579268,-0x81,-_0x239f57._0x4f0aad)]});const _0x67688a=getToolResultImages(_0xc2eea5[_0x301824(0x163,_0x239f57._0x59f321,_0x239f57._0x4409d5,_0x239f57._0x560ad0)]);_0x67688a[_0x301824(_0x239f57._0xe2ee5b,_0x239f57._0x538bc5,_0x239f57._0x3f2ad9,_0x239f57._0x222e32)]>0x0&&_0x1dca2a['push']({'role':_0x301824(0x291,_0x239f57._0x14ba58,0x221,0x2de),'content':[{'type':_0x301824(0x25d,0x190,_0x239f57._0x38752d,_0x239f57._0x30dfd6),'text':'Image\x20returned\x20by\x20ViewFile\x20for\x20tool\x20result\x20'+_0xc2eea5[_0x301824(_0x239f57._0xd13189,0x21a,_0x239f57._0x44211d,_0x239f57._0xec8f61)]+'.'},..._0x67688a['map'](_0x420993=>({'type':_0x5897ac(-0x1f2,-0x137,-0x167,-0x1e9),'image_url':{'url':'data:'+_0x420993[_0x301824(0x2c7,0x216,0x29f,0x347)][_0x5897ac(-0x9d,-0x26,-0xea,-0x157)]+_0x5897ac(0x18,0x6,-0x70,-0xe5)+_0x420993[_0x301824(0x35d,0x2a8,0x29f,0x232)][_0x301824(0x17d,0x226,0x19c,0x149)]}}))]});}_0x3bfae9();}const _0x185be0=resolveOpenAiReasoningConfig(_0x52989b['reasoning']);function _0x5897ac(_0x2a729c,_0x270b6a,_0x199189,_0x119407){return _0x2b6123(_0x2a729c,_0x270b6a-0xe,_0x199189- -_0x3cb694._0x2b2814,_0x119407-_0x3cb694._0x1dce66);}return{'model':_0x52989b['model'],'messages':_0x1dca2a,'stream':_0x195646,..._0x185be0?{'max_completion_tokens':_0x52989b['maxTokens']}:{'max_tokens':_0x52989b[_0x5897ac(-_0x239f57._0x539280,-0x1ce,-_0x239f57._0x106d40,-0x1d2)]},..._0x185be0?.[_0x5897ac(-_0x239f57._0x1f1313,-_0x239f57._0x3ce9b1,-_0x239f57._0x47f97b,-0x106)]?{'reasoning_effort':_0x185be0[_0x301824(0x24b,_0x239f57._0x276665,_0x239f57._0x4d04b1,_0x239f57._0x21edb2)]}:{},...createToolDefinitions(_0x52989b[_0x301824(0x249,0x1dc,_0x239f57._0x33f5ce,_0x239f57._0x521a29)])?{'tools':createToolDefinitions(_0x52989b[_0x5897ac(-0x3f,-_0x239f57._0x5cbe06,-0xd8,-_0x239f57._0x25f2b9)])}:{}};}function createResponsesRequestBody(_0x5c53fe,_0x4b7fe3){return{...toOpenAiResponsesRequest(_0x5c53fe),..._0x4b7fe3?{'stream':!![]}:{},'store':![]};}function createOpenAiResponsesWebSocketEvent(_0x3e2204,_0x21dfb4={}){const _0x4ad6d0={_0x3b0319:0x1e2,_0x2ab3d9:0x31,_0x3c015a:0xdb,_0x3431f7:0x1a7,_0x4e2a35:0x137,_0xbe27b5:0x148},_0x4f0d28={_0x1b58ef:0x565},_0x37658e={_0x4b929b:0x5f,_0xeec54:0x1b3};function _0x208b0e(_0x51946c,_0x36fc66,_0x49a016,_0x4ac939){return _0x2b6123(_0x4ac939,_0x36fc66-_0x37658e._0x4b929b,_0x36fc66- -_0x37658e._0xeec54,_0x4ac939-0x15c);}const _0x4f4dd2=toOpenAiResponsesRequest(_0x3e2204);function _0x4cf849(_0x218cbd,_0xfc625b,_0x23b4cd,_0x5c947c){return _0x38c793(_0x23b4cd,_0xfc625b-0x149,_0x5c947c- -_0x4f0d28._0x1b58ef,_0x5c947c-0x1b3);}return{'type':_0x4cf849(-0x13b,-0x230,-0x23a,-_0x4ad6d0._0x3b0319),..._0x4f4dd2,..._0x21dfb4[_0x4cf849(-0x144,-_0x4ad6d0._0x2ab3d9,-0xd4,-_0x4ad6d0._0x3c015a)]?{'input':_0x21dfb4[_0x208b0e(0x14f,_0x4ad6d0._0x3431f7,0x157,_0x4ad6d0._0x4e2a35)]}:{},..._0x21dfb4['previousResponseId']?{'previous_response_id':_0x21dfb4[_0x208b0e(_0x4ad6d0._0xbe27b5,0xf0,0x154,0x42)]}:{},'store':![]};}function normalizeAssistantContent(_0x2273a7){const _0x835e7e={_0x53a761:0x1ab,_0x1ed018:0x260,_0x29b976:0x1ff,_0x35b7a5:0x458,_0x5b93aa:0x4b5,_0x4dda9e:0x3aa},_0x2f2d7c={_0x116ec3:0x146,_0x8f50be:0x16a,_0x457bff:0x91,_0x51801a:0x165},_0x11c049={_0x4388e1:0x1b7,_0x1ad317:0x4db};if(typeof _0x2273a7===_0x132d81(-0x253,-_0x835e7e._0x53a761,-_0x835e7e._0x1ed018,-_0x835e7e._0x29b976))return _0x2273a7;function _0x132d81(_0x4aba98,_0x37ad49,_0x5b7693,_0x4074f7){return _0x2b6123(_0x5b7693,_0x37ad49-0x123,_0x37ad49- -0x476,_0x4074f7-0xbd);}function _0x3693e6(_0x1995ba,_0x58cec0,_0x221482,_0x3e1ea6){return _0x2b6123(_0x221482,_0x58cec0-0xba,_0x58cec0-0xd6,_0x3e1ea6-0x1b0);}if(!Array['isArray'](_0x2273a7))return'';return _0x2273a7[_0x3693e6(0x47d,_0x835e7e._0x35b7a5,0x4f8,_0x835e7e._0x5b93aa)](_0x49088c=>{function _0x1637dc(_0x3d5d5e,_0x34a531,_0x5cc678,_0x12b93f){return _0x3693e6(_0x3d5d5e-_0x11c049._0x4388e1,_0x3d5d5e- -_0x11c049._0x1ad317,_0x12b93f,_0x12b93f-0xad);}return _0x49088c[_0x1637dc(-_0x2f2d7c._0x116ec3,-_0x2f2d7c._0x8f50be,-_0x2f2d7c._0x457bff,-_0x2f2d7c._0x51801a)]==='text'?_0x49088c['text']:_0x49088c['refusal'];})[_0x3693e6(0x3fa,_0x835e7e._0x4dda9e,0x37f,0x34c)]('');}function normalizeResponsesMessageContent(_0x37310c){const _0x716e4b={_0x14e073:0x6f0,_0x2d1518:0x5e8,_0x19bb00:0x719},_0xb75fff={_0x1211bb:0x133,_0x38f143:0x151,_0x3b03da:0x1be,_0x38e823:0x4c5,_0x33ee3b:0x495,_0x5ef18b:0x516,_0x259cd8:0x166,_0x1d10a9:0x113,_0x1d85a3:0xb,_0x475d71:0x466,_0x13bed5:0x492,_0x47cd70:0x4f2,_0x11c695:0x462,_0x76fc21:0x4c3,_0x350f67:0x61,_0x2892ee:0x28,_0x3f10b2:0x48,_0xd206b5:0x53c,_0x38a49b:0x479,_0x5125a9:0x508},_0x42d270={_0x1cfa2d:0xcd,_0x1c7f4b:0x1c9},_0x7d3b2e={_0x24f3c7:0xc5,_0x1d6e97:0x122};function _0x31cf68(_0x4c036d,_0x354955,_0x12f5a0,_0x3cc1ca){return _0x2b6123(_0x3cc1ca,_0x354955-0x79,_0x12f5a0-_0x7d3b2e._0x24f3c7,_0x3cc1ca-_0x7d3b2e._0x1d6e97);}function _0x3ba102(_0xbc59ab,_0x55ec52,_0x356ab1,_0x589b30){return _0x38c793(_0x55ec52,_0x55ec52-_0x42d270._0x1cfa2d,_0x589b30-0x1c8,_0x589b30-_0x42d270._0x1c7f4b);}if(!Array[_0x3ba102(_0x716e4b._0x14e073,0x612,_0x716e4b._0x2d1518,0x6aa)](_0x37310c))return'';return _0x37310c[_0x3ba102(0x668,_0x716e4b._0x19bb00,0x680,0x67a)](_0x4708fc=>{const _0x24354a={_0x10f855:0x27,_0x4f920f:0x119},_0x3876de={_0x6abdd3:0x41,_0x4a95bc:0x691};function _0x134f5e(_0x2bf28d,_0x31b371,_0x7b3bb2,_0x3c8936){return _0x3ba102(_0x2bf28d-_0x3876de._0x6abdd3,_0x3c8936,_0x7b3bb2-0x64,_0x31b371- -_0x3876de._0x4a95bc);}function _0x5ee43e(_0x1ce4bf,_0x50355d,_0x16bf36,_0x13070d){return _0x3ba102(_0x1ce4bf-_0x24354a._0x10f855,_0x50355d,_0x16bf36-_0x24354a._0x4f920f,_0x13070d- -0xf4);}if(!_0x4708fc||typeof _0x4708fc!==_0x134f5e(-0x1ae,-_0xb75fff._0x1211bb,-_0xb75fff._0x38f143,-_0xb75fff._0x3b03da))return'';const _0xcda266=_0x4708fc;if(_0xcda266['type']===_0x134f5e(-0x186,-0xc7,-0x12c,-0x179)&&typeof _0xcda266[_0x5ee43e(_0xb75fff._0x38e823,0x592,_0xb75fff._0x33ee3b,_0xb75fff._0x5ef18b)]===_0x134f5e(-_0xb75fff._0x259cd8,-0xce,-_0xb75fff._0x1d10a9,-_0xb75fff._0x1d85a3))return _0xcda266[_0x5ee43e(_0xb75fff._0x475d71,_0xb75fff._0x13bed5,0x5c8,0x516)];if(_0xcda266[_0x5ee43e(0x43e,_0xb75fff._0x47cd70,_0xb75fff._0x11c695,_0xb75fff._0x76fc21)]===_0x134f5e(-0x4b,-_0xb75fff._0x350f67,_0xb75fff._0x2892ee,-_0xb75fff._0x3f10b2)&&typeof _0xcda266[_0x5ee43e(0x55f,0x47f,0x497,_0xb75fff._0xd206b5)]==='string')return _0xcda266[_0x5ee43e(_0xb75fff._0x38a49b,_0xb75fff._0x5125a9,0x548,_0xb75fff._0xd206b5)];return'';})['join']('');}function extractOpenAiReasoningText(_0x4f8f79){const _0x3329c7={_0x2a93b0:0x11,_0x197f21:0x12,_0x2f954d:0x6f,_0x57b0bb:0x109,_0x30bcbf:0x78,_0x160906:0xa0,_0x35f0cb:0x47,_0x126f5e:0x547,_0x18a780:0x466,_0x4db679:0xee,_0x46e883:0x23,_0x386cdb:0x563,_0x519ada:0x4af,_0x4ca9f1:0x49e,_0x5927c2:0x4b5,_0x3288f2:0x508},_0x42c896={_0xd6bd4c:0x92,_0x3a9871:0x1bc},_0x1af2d4={_0x48c97f:0xdf,_0x297b0d:0x41};if(typeof _0x4f8f79[_0x461394(0x7,-0x28,_0x3329c7._0x2a93b0,_0x3329c7._0x197f21)]===_0x461394(-0xaa,-_0x3329c7._0x2f954d,-0x9,-0x125))return _0x4f8f79['text'];if(!Array[_0x461394(_0x3329c7._0x57b0bb,_0x3329c7._0x30bcbf,_0x3329c7._0x160906,-_0x3329c7._0x35f0cb)](_0x4f8f79[_0x100b86(0x4bc,0x42d,_0x3329c7._0x126f5e,_0x3329c7._0x18a780)]))return'';function _0x100b86(_0x45aaab,_0x52c889,_0x488d91,_0x17fae5){return _0x38c793(_0x52c889,_0x52c889-_0x1af2d4._0x48c97f,_0x45aaab-0xb1,_0x17fae5-_0x1af2d4._0x297b0d);}function _0x461394(_0x7bc080,_0x5472b2,_0x53ad51,_0x57d9bb){return _0x38c793(_0x53ad51,_0x5472b2-_0x42c896._0xd6bd4c,_0x5472b2- -0x46a,_0x57d9bb-_0x42c896._0x3a9871);}return _0x4f8f79['content'][_0x461394(-_0x3329c7._0x4db679,-_0x3329c7._0x46e883,-0x4d,-0x33)](_0x373075=>_0x373075['type']===_0x461394(-0x134,-0xaa,-0x158,-0x13f)&&typeof _0x373075[_0x461394(-0x86,-0x28,0x6e,0x5e)]===_0x461394(-0x6,-0x6f,-0x4b,0x3c))[_0x100b86(_0x3329c7._0x386cdb,_0x3329c7._0x519ada,_0x3329c7._0x4ca9f1,0x4ef)](_0x78f591=>_0x78f591[_0x461394(-0x13,-0x28,-0x9f,-0x41)]??'')[_0x100b86(_0x3329c7._0x5927c2,0x50e,0x56d,_0x3329c7._0x3288f2)]('');}function createOpenAiReasoningBlock(_0x14dcdc){const _0x4f6365={_0x1686bf:0x1b3,_0x14f4ae:0x1ca,_0x11562a:0x1f4,_0x576065:0x159,_0x3a90c0:0x215,_0x1ac145:0x104,_0x8df1fe:0x149,_0x576ce2:0x1c0},_0x1da0d1={_0x259d9d:0x13e,_0x484c68:0x5ca,_0x4da978:0x134},_0x4086e9={_0x12ee98:0x113,_0x452878:0x14a};function _0x488db1(_0x5c9f5c,_0x35fbf9,_0x5d0b9c,_0x2b4dee){return _0x2b6123(_0x5d0b9c,_0x35fbf9-_0x4086e9._0x12ee98,_0x5c9f5c- -0x3ca,_0x2b4dee-_0x4086e9._0x452878);}function _0x1014d4(_0xa2b495,_0x496c80,_0x8ceb7b,_0x492f21){return _0x38c793(_0x8ceb7b,_0x496c80-_0x1da0d1._0x259d9d,_0x496c80- -_0x1da0d1._0x484c68,_0x492f21-_0x1da0d1._0x4da978);}const _0x439047=extractOpenAiReasoningText(_0x14dcdc);return{'type':_0x1014d4(-_0x4f6365._0x1686bf,-_0x4f6365._0x14f4ae,-0x28e,-_0x4f6365._0x11562a),'summary':structuredClone(_0x14dcdc['summary']??[]),..._0x14dcdc['id']?{'id':_0x14dcdc['id']}:{},..._0x14dcdc[_0x488db1(-_0x4f6365._0x576065,-_0x4f6365._0x3a90c0,-_0x4f6365._0x1ac145,-0x129)]?{'encryptedContent':_0x14dcdc['encrypted_content']}:{},..._0x439047[_0x488db1(-0x12f,-_0x4f6365._0x8df1fe,-0xd8,-_0x4f6365._0x576ce2)]>0x0?{'text':_0x439047}:{}};}function hasVisibleOpenAiReasoning(_0x30739d){const _0x496f7f={_0x43acb3:0x144,_0x18ebaf:0x200,_0x7c61c4:0x1b0,_0x2fccde:0x257,_0x266517:0x207,_0x4e094a:0xf8},_0x215b54={_0x3e9626:0x21b},_0x15b6ad={_0x25d420:0x1};function _0x104a7b(_0x28b1c6,_0x5d1140,_0x550969,_0xea4343){return _0x2b6123(_0x5d1140,_0x5d1140-0x14d,_0x550969- -0x3a5,_0xea4343-_0x15b6ad._0x25d420);}function _0x382cf0(_0x2d1273,_0x37cbb6,_0x2a29d5,_0x2a1674){return _0x38c793(_0x2d1273,_0x37cbb6-0x137,_0x2a1674- -_0x215b54._0x3e9626,_0x2a1674-0x129);}return _0x30739d['summary'][_0x382cf0(0x239,_0x496f7f._0x43acb3,_0x496f7f._0x18ebaf,_0x496f7f._0x7c61c4)]>0x0||typeof _0x30739d[_0x382cf0(_0x496f7f._0x2fccde,0x282,_0x496f7f._0x266517,0x227)]===_0x104a7b(-0x180,-0x92,-0xda,-_0x496f7f._0x4e094a);}function parseChatCompletionResponse(_0x571879){const _0x3eca13={_0x35f007:0x1c8,_0x5f42d7:0x129,_0x2f343c:0x51c,_0x428d40:0x1a0,_0x49db4e:0x1c4,_0x4451d8:0x649,_0x54f990:0x5f1,_0x82d2c6:0x556,_0x4d0ea7:0x60e,_0xa7c5f1:0xe4,_0x213249:0xda,_0x5267c7:0x14b,_0x1ca9a6:0x5d4,_0x512bfd:0x5d9,_0x1df7ba:0x520,_0x59e368:0x658,_0x37f565:0x1e6,_0x4b5773:0x220},_0x207160={_0x439e32:0x127,_0x4ebe1a:0x54e},_0xde3ba7={_0x407459:0x10a,_0x4ed8af:0x174},_0x233cd4=[],_0x471882=[];let _0x1eab62=_0x363fd8(-_0x3eca13._0x35f007,-0x251,-0x237,-_0x3eca13._0x5f42d7);function _0xd667bb(_0x3bed8e,_0x3cac01,_0x59586d,_0x4a38fc){return _0x2b6123(_0x3cac01,_0x3cac01-_0xde3ba7._0x407459,_0x3bed8e-0x2dd,_0x4a38fc-_0xde3ba7._0x4ed8af);}function _0x363fd8(_0x23d17d,_0x3a21ea,_0x38341d,_0x3109c3){return _0x38c793(_0x3a21ea,_0x3a21ea-_0x207160._0x439e32,_0x23d17d- -_0x207160._0x4ebe1a,_0x3109c3-0x3e);}for(const _0x3aac3f of _0x571879[_0xd667bb(0x50e,0x5c5,0x53e,_0x3eca13._0x2f343c)]??[]){const _0x255dfa=_0x3aac3f[_0x363fd8(-0x16c,-0x211,-0x15e,-0x1a2)],_0x48cf4d=normalizeAssistantContent(_0x255dfa?.[_0x363fd8(-0x143,-_0x3eca13._0x428d40,-0x10c,-_0x3eca13._0x49db4e)]);_0x48cf4d['length']>0x0&&_0x233cd4[_0xd667bb(0x5f1,0x697,0x56e,_0x3eca13._0x4451d8)](_0x48cf4d),_0x255dfa?.['tool_calls']&&_0x471882[_0xd667bb(_0x3eca13._0x54f990,_0x3eca13._0x82d2c6,_0x3eca13._0x4d0ea7,0x5bd)](..._0x255dfa['tool_calls']),_0x3aac3f['finish_reason']===_0x363fd8(-_0x3eca13._0xa7c5f1,-0x109,-_0x3eca13._0x213249,-0xcf)&&(_0x1eab62=_0xd667bb(0x5b0,0x540,0x55a,0x57f));}return _0x471882['length']>0x0&&(_0x1eab62=_0x363fd8(-_0x3eca13._0x5267c7,-0x161,-0xae,-0x121)),{'id':_0x571879['id']??_0xd667bb(0x513,0x541,_0x3eca13._0x1ca9a6,_0x3eca13._0x512bfd)+Date[_0xd667bb(0x5d1,0x672,_0x3eca13._0x1df7ba,0x606)](),'content':createContentBlocks(_0x233cd4[_0xd667bb(0x5b1,0x53d,_0x3eca13._0x59e368,0x4e7)](''),_0x471882),'stopReason':_0x1eab62,'usage':createUsage(_0x571879[_0x363fd8(-0x1ee,-_0x3eca13._0x37f565,-_0x3eca13._0x4b5773,-0x1d0)])};}function parseResponsesResponse(_0x35dbaa,_0x169821){const _0x4f55ca={_0x3081e3:0x6a,_0x1aeada:0x70,_0x41f058:0x17,_0xf7dac5:0x2b,_0x5e2bc2:0x5a,_0x1d00d0:0x100,_0x1d0e88:0xc7,_0x485b8a:0x186,_0x2a5470:0xfe,_0x49327d:0x152,_0x5eb2c1:0xce,_0x5f04ae:0xfc,_0x2fc2ee:0x3a,_0x2e2f2c:0xff,_0x27a6db:0x8e,_0x36d599:0x9b,_0x216fdf:0x8d,_0x3e8080:0x87,_0x4fcc48:0x97,_0x1eb410:0xe,_0xa846a0:0x68,_0x11c6ae:0xb7,_0x171f67:0x12a,_0x3edd56:0xfd,_0x388bdf:0x0,_0x7e5330:0xc2,_0x390983:0x1c6,_0x6de3ef:0x13f,_0x471f09:0x16d,_0x872d3a:0x130,_0x43ae15:0x9b,_0x414856:0x39,_0x184b0f:0x2c,_0x579ac9:0x212,_0x1226b6:0xa2,_0x28016b:0x169,_0x30776b:0xab,_0x12a0c5:0x14e,_0x1e4cd0:0xbd,_0x31f0af:0xbe,_0x47a439:0x3b,_0x3cdb87:0xc1,_0x25d1be:0x19f,_0x5ed4d3:0x2a,_0x29d41f:0x9a,_0x41a5fa:0xa7,_0x38d0d1:0x78,_0x11be8f:0xcd,_0x1b4231:0x131,_0x449127:0x16e,_0x3654e4:0x6b,_0x271b32:0x96,_0x5b2ba5:0x23d,_0x25414c:0x17a,_0x3788d0:0x1b7,_0x263c8a:0xd2,_0x1b1bc8:0x25,_0x31619b:0xe5,_0x21d160:0xaf,_0x1d996d:0x17,_0x5f09f9:0x1bf,_0x19613e:0x10e,_0x3ee42b:0x8f,_0x55e32f:0xa1,_0x33e32d:0x21,_0x409983:0xd4},_0x58dd85={_0x32ddf5:0xa6},_0x486941={_0x1b0490:0x214},_0x5b7295=[];function _0x14986d(_0x2f38c3,_0x55bc87,_0x773cd3,_0x1c1a4d){return _0x2b6123(_0x55bc87,_0x55bc87-0xb9,_0x773cd3- -_0x486941._0x1b0490,_0x1c1a4d-0x15a);}function _0xc88042(_0x44730f,_0x2050b4,_0x3e50a1,_0x4d212c){return _0x2b6123(_0x3e50a1,_0x2050b4-_0x58dd85._0x32ddf5,_0x44730f- -0x2fd,_0x4d212c-0x1bd);}for(const _0x339852 of _0x35dbaa[_0x14986d(-_0x4f55ca._0x3081e3,0xb,0x21,_0x4f55ca._0x1aeada)]??[]){if(isResponsesReasoningItem(_0x339852)){if(isUserVisibleReasoning(_0x169821)){const _0x14b8d0=createOpenAiReasoningBlock(_0x339852);hasVisibleOpenAiReasoning(_0x14b8d0)&&_0x5b7295[_0xc88042(_0x4f55ca._0x41f058,0x36,_0x4f55ca._0xf7dac5,-_0x4f55ca._0x5e2bc2)](_0x14b8d0);}continue;}if(isResponsesMessageItem(_0x339852)){const _0x32844a=normalizeResponsesMessageContent(_0x339852[_0x14986d(0x55,_0x4f55ca._0x1d00d0,_0x4f55ca._0x1d0e88,_0x4f55ca._0x485b8a)]);_0x32844a['length']>0x0&&_0x5b7295['push']({'type':_0x14986d(0x17a,0x1b4,_0x4f55ca._0x2a5470,0xd2),'text':_0x32844a});continue;}if(!isResponsesFunctionCallItem(_0x339852)||typeof _0x339852[_0xc88042(-0x8b,-0x109,-_0x4f55ca._0x49327d,-_0x4f55ca._0x5eb2c1)]!==_0x14986d(0x65,0x16c,0xb7,_0x4f55ca._0x5f04ae)||_0x339852['call_id'][_0x14986d(-_0x4f55ca._0x2fc2ee,_0x4f55ca._0x2e2f2c,_0x4f55ca._0x27a6db,0x118)]()[_0x14986d(_0x4f55ca._0x36d599,_0x4f55ca._0x216fdf,0x87,_0x4f55ca._0x3e8080)]===0x0||typeof _0x339852['name']!==_0xc88042(-0x32,-0x67,-_0x4f55ca._0x4fcc48,_0x4f55ca._0x1eb410)||_0x339852['name'][_0xc88042(-0x5b,-0x4d,-0xaa,-0x99)]()[_0xc88042(-0x62,0x45,_0x4f55ca._0xa846a0,-0xbc)]===0x0||typeof _0x339852[_0xc88042(-_0x4f55ca._0x11c6ae,-_0x4f55ca._0x171f67,-_0x4f55ca._0x3edd56,_0x4f55ca._0x388bdf)]!==_0xc88042(-0x32,-_0x4f55ca._0x7e5330,-0x32,0x3b))continue;_0x5b7295[_0x14986d(_0x4f55ca._0x390983,_0x4f55ca._0x6de3ef,0x100,0xca)]({'type':_0x14986d(0x116,_0x4f55ca._0x471f09,0xbf,_0x4f55ca._0x872d3a),'id':_0x339852[_0x14986d(_0x4f55ca._0x43ae15,0xe8,0x5e,-0x27)],'name':_0x339852[_0x14986d(0x92,-0x52,_0x4f55ca._0x414856,_0x4f55ca._0x184b0f)],'input':parseToolInput2(_0x339852['arguments'])});}return!_0x5b7295[_0x14986d(_0x4f55ca._0x579ac9,_0x4f55ca._0x1226b6,_0x4f55ca._0x28016b,_0x4f55ca._0x30776b)](_0xf3061=>_0xf3061[_0xc88042(-0x3e,0x6,-0xa9,-0xb5)]===_0x14986d(0x37,0x16d,0xfe,0x7a))&&_0x35dbaa[_0x14986d(_0x4f55ca._0x12a0c5,_0x4f55ca._0x1e4cd0,_0x4f55ca._0x31f0af,_0x4f55ca._0x47a439)]&&_0x5b7295[_0x14986d(_0x4f55ca._0x3cdb87,_0x4f55ca._0x25d1be,0x100,0xb9)]({'type':'text','text':_0x35dbaa[_0x14986d(0x9d,0x106,_0x4f55ca._0x31f0af,0x154)]}),{'id':_0x35dbaa['id'],'content':_0x5b7295,'stopReason':_0x5b7295['some'](_0x2ca048=>_0x2ca048[_0xc88042(-0x3e,0x2d,0xe,-0xf3)]===_0xc88042(-0x2a,-0x97,-0x9d,-0x79))?_0xc88042(-_0x4f55ca._0x5ed4d3,_0x4f55ca._0x29d41f,0x23,-0x61):_0xc88042(-_0x4f55ca._0x41a5fa,0x1d,-0xf1,-_0x4f55ca._0x38d0d1),'usage':{'inputTokens':_0x35dbaa[_0xc88042(-_0x4f55ca._0x11be8f,-0x50,-_0x4f55ca._0x1b4231,-_0x4f55ca._0x449127)]?.[_0xc88042(-_0x4f55ca._0x3654e4,-0x108,-0x102,-0x60)]??0x0,'outputTokens':_0x35dbaa[_0x14986d(-_0x4f55ca._0x5ed4d3,-0x22,0x1c,_0x4f55ca._0x271b32)]?.[_0x14986d(_0x4f55ca._0x5b2ba5,_0x4f55ca._0x25414c,0x19f,_0x4f55ca._0x3788d0)]??0x0,..._0x35dbaa['usage']?.[_0xc88042(-_0x4f55ca._0x263c8a,-_0x4f55ca._0x31f0af,-0x5f,-0x189)]?.[_0xc88042(_0x4f55ca._0x1b1bc8,_0x4f55ca._0x31619b,0x31,0xb4)]!==void 0x0?{'reasoningTokens':_0x35dbaa['usage'][_0x14986d(-_0x4f55ca._0x21d160,0xca,_0x4f55ca._0x1d996d,-0x32)][_0x14986d(_0x4f55ca._0x5f09f9,0x1b9,_0x4f55ca._0x19613e,0x159)]}:{}},..._0x35dbaa[_0xc88042(-0xc8,-0x135,-0xbc,-0xdf)]?{'providerState':{'openaiResponsesOutput':structuredClone(_0x35dbaa[_0x14986d(-_0x4f55ca._0x3ee42b,-_0x4f55ca._0x55e32f,_0x4f55ca._0x33e32d,_0x4f55ca._0x409983)]),'openaiResponsesResponseId':_0x35dbaa['id']}}:{}};}function extractErrorMessage(_0x312449){const _0x24077f={_0x4bbf37:0xe2,_0x4ae2c1:0x73,_0x168d48:0x41d,_0xb0cbc2:0x49b,_0x4430a8:0x43f,_0x22914f:0x3fc,_0x459fa6:0x3af,_0xb02520:0x4d1,_0x187094:0x541,_0x5f5ac0:0x3d5,_0x3f07de:0x5a,_0x15470f:0x3f9,_0xe8ebc5:0x4ae,_0x2201c8:0x43,_0x433c81:0x48,_0x48d950:0x43,_0x421e55:0xfe,_0x48c780:0x4b9,_0x4e05fe:0x46a,_0x97743b:0x3f3,_0x47521f:0x4a0,_0x17bc98:0x3cb,_0x2c4c14:0x381,_0x36ad21:0x431,_0x159a21:0x54,_0x1c5b14:0xac,_0x422fff:0xb6,_0x3395a7:0x74,_0x4c6765:0xf,_0x3c8eb6:0x43,_0x2a5ad4:0x3f4},_0x587de2={_0x543202:0xc8,_0x409b11:0x107},_0x4695a6={_0x51e85d:0x29,_0x42b19f:0x1ea};if(_0x312449[_0x1bf87b(0xee,_0x24077f._0x4bbf37,0x43,-_0x24077f._0x4ae2c1)]===0x0)return'';function _0x1299d2(_0x387b41,_0x4df939,_0x4bd34f,_0x197c94){return _0x38c793(_0x4bd34f,_0x4df939-0x14d,_0x4df939-_0x4695a6._0x51e85d,_0x197c94-_0x4695a6._0x42b19f);}try{const _0x1f83c2=JSON[_0x1299d2(0x4c6,0x450,_0x24077f._0x168d48,0x449)](_0x312449);if(typeof _0x1f83c2[_0x1299d2(0x500,_0x24077f._0xb0cbc2,_0x24077f._0x4430a8,_0x24077f._0x22914f)]?.['message']===_0x1299d2(_0x24077f._0x459fa6,0x424,_0x24077f._0xb02520,0x3ad)&&_0x1f83c2[_0x1299d2(_0x24077f._0x187094,_0x24077f._0xb0cbc2,_0x24077f._0x5f5ac0,0x40e)][_0x1bf87b(0x36,0x11d,_0x24077f._0x3f07de,0xfe)][_0x1299d2(0x33a,0x3fb,_0x24077f._0x15470f,_0x24077f._0xe8ebc5)]()[_0x1bf87b(0x86,0xb6,_0x24077f._0x2201c8,_0x24077f._0x433c81)]>0x0)return _0x1f83c2['error'][_0x1bf87b(-_0x24077f._0x48d950,0xac,0x5a,_0x24077f._0x421e55)][_0x1299d2(_0x24077f._0x48c780,0x3fb,_0x24077f._0x4e05fe,_0x24077f._0x97743b)]();if(typeof _0x1f83c2[_0x1299d2(_0x24077f._0x47521f,0x40b,_0x24077f._0x17bc98,0x3c5)]===_0x1299d2(0x4bf,0x424,_0x24077f._0x2c4c14,_0x24077f._0x36ad21)&&_0x1f83c2[_0x1bf87b(0x69,_0x24077f._0x159a21,0x5a,_0x24077f._0x1c5b14)][_0x1bf87b(_0x24077f._0x422fff,-_0x24077f._0x3395a7,0x4a,-_0x24077f._0x4c6765)]()[_0x1bf87b(0x36,0x78,_0x24077f._0x3c8eb6,0x1c)]>0x0)return _0x1f83c2[_0x1299d2(0x40f,0x40b,0x3f3,_0x24077f._0x2a5ad4)]['trim']();}catch{return _0x312449;}function _0x1bf87b(_0x37db6b,_0x5b4389,_0x4a31b0,_0x5742a8){return _0x2b6123(_0x5b4389,_0x5b4389-_0x587de2._0x543202,_0x4a31b0- -0x258,_0x5742a8-_0x587de2._0x409b11);}return _0x312449;}async function createOpenAiApiError(_0x5599af){const _0x2a8ad={_0x32a6eb:0x1dd,_0x4c2982:0x115,_0x1f8f55:0x10a,_0x4e79d4:0x30,_0x33edcc:0x9,_0x4ba309:0x51,_0x583eca:0x42,_0x350df7:0x1c3,_0x469e7a:0x1ce,_0x586b45:0x161,_0x5d3c80:0x18b},_0x591a8a={_0x1b9fbe:0x1b4},_0x5199a3={_0x34b600:0x2ec},_0x143d11=(await _0x5599af[_0x44df7c(_0x2a8ad._0x32a6eb,_0x2a8ad._0x4c2982,_0x2a8ad._0x1f8f55,0x156)]())[_0x214f70(_0x2a8ad._0x4e79d4,_0x2a8ad._0x33edcc,-_0x2a8ad._0x4ba309,_0x2a8ad._0x583eca)]();function _0x44df7c(_0x22bffc,_0x2cbb07,_0x5dffc2,_0x3c76de){return _0x38c793(_0x22bffc,_0x2cbb07-0xb5,_0x3c76de- -_0x5199a3._0x34b600,_0x3c76de-0x1d5);}const _0xe29de4=extractErrorMessage(_0x143d11)||_0x5599af[_0x44df7c(_0x2a8ad._0x350df7,_0x2a8ad._0x469e7a,0x101,_0x2a8ad._0x586b45)]||'OpenAI\x20API\x20error\x20'+_0x5599af[_0x44df7c(0x174,_0x2a8ad._0x5d3c80,0x100,0xe8)];function _0x214f70(_0x2d8514,_0x5b1658,_0x3208c4,_0x111ec3){return _0x2b6123(_0x5b1658,_0x5b1658-0x21,_0x3208c4- -0x2f3,_0x111ec3-_0x591a8a._0x1b9fbe);}return new OpenAiApiError(_0x5599af['status'],_0x143d11,_0xe29de4);}function readSseData(_0x5d010c){const _0x45ee08={_0x5c49df:0x407,_0xe36405:0x3ea,_0x3eeebe:0x470,_0x44b26f:0x34d,_0x2a9285:0x498,_0x5cd729:0x4fc,_0x2ff4e9:0x4e3},_0x351722={_0x2db968:0x119},_0x5668b4={_0x11e485:0xc0};function _0x4fbb9b(_0x43c155,_0x5f0f2c,_0x5ebc4a,_0x5b8a89){return _0x2b6123(_0x5b8a89,_0x5f0f2c-0x3d,_0x5ebc4a-_0x5668b4._0x11e485,_0x5b8a89-0x51);}function _0x29e356(_0x2b7748,_0x552d34,_0x701c37,_0x54b5e8){return _0x38c793(_0x701c37,_0x552d34-0x30,_0x2b7748-0x111,_0x54b5e8-_0x351722._0x2db968);}return _0x5d010c[_0x4fbb9b(0x469,_0x45ee08._0x5c49df,0x3cd,_0x45ee08._0xe36405)]('\x0a')[_0x4fbb9b(_0x45ee08._0x3eeebe,0x37d,0x3d7,_0x45ee08._0x44b26f)](_0x5e8625=>_0x5e8625['startsWith']('data:'))[_0x4fbb9b(_0x45ee08._0x2a9285,_0x45ee08._0x5cd729,0x442,0x499)](_0x80f892=>_0x80f892[_0x29e356(0x510,0x516,0x568,0x520)](0x5)[_0x4fbb9b(0x464,0x45b,0x3be,0x3dd)]())['join']('\x0a')[_0x29e356(_0x45ee08._0x2ff4e9,0x42a,0x5aa,0x4ed)]();}function readString(_0x2ea2ba){const _0x4d8120={_0x531e16:0x16c,_0x18ad1f:0x1fe,_0x366b28:0x19f,_0xb744f5:0x1a9};function _0x233064(_0xcfba68,_0x15fdec,_0x2bedb7,_0x2c141e){return _0x2b6123(_0x2c141e,_0x15fdec-0x11,_0x15fdec- -0x499,_0x2c141e-0x199);}return typeof _0x2ea2ba==='string'&&_0x2ea2ba[_0x233064(-_0x4d8120._0x531e16,-_0x4d8120._0x18ad1f,-_0x4d8120._0x366b28,-_0x4d8120._0xb744f5)]>0x0?_0x2ea2ba:void 0x0;}function extractReasoningDetails(_0x4aa2b7){const _0x275543={_0x4d618a:0x2b0,_0x417e69:0x3be,_0x10b750:0x35c,_0x46fcbb:0x1da,_0x2c868b:0x29b,_0xce6f00:0x1a1,_0x177dd6:0x1ba},_0x2b6651={_0xd6ed18:0x25d,_0xe3211f:0x283,_0x138343:0x378,_0x2f7dc7:0x309,_0xa62bbf:0x48,_0x34bfe5:0xe5,_0x51fc89:0x27,_0x1dbd68:0x6e,_0x238f46:0x1cd,_0x2eecad:0x25b,_0x39eedc:0x204,_0x34c39b:0x372,_0x27344e:0x2cf},_0x136f65={_0x5d00b4:0x119,_0x2fc314:0x19b},_0x3a363c={_0x30bb6e:0xc7},_0x113a07={_0xb7fbe4:0xe},_0x585790={_0x2ccf0a:0x113};function _0x31e728(_0x26cf95,_0x56a63a,_0x32304c,_0x17a5be){return _0x2b6123(_0x17a5be,_0x56a63a-_0x585790._0x2ccf0a,_0x32304c- -0x475,_0x17a5be-0x1ee);}if(!Array['isArray'](_0x4aa2b7))return void 0x0;function _0x3ddddf(_0xb50611,_0x5a91a3,_0x4317d3,_0x1d3e19){return _0x2b6123(_0xb50611,_0x5a91a3-0x103,_0x1d3e19-_0x113a07._0xb7fbe4,_0x1d3e19-0x181);}const _0x353e32=_0x4aa2b7[_0x3ddddf(0x2da,_0x275543._0x4d618a,_0x275543._0x417e69,_0x275543._0x10b750)](_0x238d3f=>{if(!_0x238d3f||typeof _0x238d3f!==_0x1ecfc9(0x1b5,0x198,_0x2b6651._0xd6ed18,_0x2b6651._0xe3211f))return[];const _0x4c7fd0=_0x238d3f;if(typeof _0x4c7fd0[_0x1ecfc9(_0x2b6651._0x138343,0x23f,_0x2b6651._0x2f7dc7,0x248)]===_0x34d6ac(-_0x2b6651._0xa62bbf,_0x2b6651._0x34bfe5,-0x78,_0x2b6651._0x51fc89))return[_0x4c7fd0[_0x34d6ac(0xdf,0x9,0x8c,_0x2b6651._0x1dbd68)]];if(typeof _0x4c7fd0[_0x1ecfc9(_0x2b6651._0x238f46,_0x2b6651._0x2eecad,0x22a,_0x2b6651._0x39eedc)]===_0x1ecfc9(0x286,0x23e,0x2c2,_0x2b6651._0x34c39b))return[_0x4c7fd0[_0x1ecfc9(0x2c3,_0x2b6651._0x27344e,0x22a,0x279)]];function _0x34d6ac(_0x17d2ee,_0xcb5d41,_0x1f820c,_0x210f3d){return _0x3ddddf(_0x1f820c,_0xcb5d41-_0x3a363c._0x30bb6e,_0x1f820c-0xdf,_0x210f3d- -0x2b2);}function _0x1ecfc9(_0x3d773f,_0x1306e4,_0x530fbe,_0x306def){return _0x3ddddf(_0x306def,_0x1306e4-_0x136f65._0x5d00b4,_0x530fbe-_0x136f65._0x2fc314,_0x530fbe- -0x17);}return[];});return _0x353e32[_0x31e728(-0x182,-0x22e,-_0x275543._0x46fcbb,-_0x275543._0x2c868b)]>0x0?_0x353e32[_0x31e728(-0x24a,-0x1c7,-_0x275543._0xce6f00,-_0x275543._0x177dd6)](''):void 0x0;}function extractChatCompletionReasoningDelta(_0x34c420){const _0x850fc5={_0x28e041:0x16,_0x5a6e29:0xa3,_0x4726c3:0xda,_0x38f307:0x178,_0x91be26:0x13d,_0x139275:0x8c,_0x498dc2:0x36},_0x26aff8={_0x3d2b97:0x1cb},_0x5adcf3={_0x55a952:0x2c6,_0x283e0c:0xf0};function _0x2fc4d0(_0x388e5a,_0xb0e674,_0x5d1ed1,_0x50228e){return _0x2b6123(_0x50228e,_0xb0e674-0xe1,_0x5d1ed1- -_0x5adcf3._0x55a952,_0x50228e-_0x5adcf3._0x283e0c);}function _0xb2f9be(_0x103f2f,_0x4c79d8,_0x169c12,_0x2ea4fa){return _0x2b6123(_0x4c79d8,_0x4c79d8-0x163,_0x169c12- -0x272,_0x2ea4fa-_0x26aff8._0x3d2b97);}return extractReasoningDetails(_0x34c420?.['reasoning_details'])??readString(_0x34c420?.[_0x2fc4d0(-_0x850fc5._0x28e041,0x1a,_0x850fc5._0x5a6e29,-0x20)])??readString(_0x34c420?.[_0xb2f9be(_0x850fc5._0x4726c3,_0x850fc5._0x38f307,_0x850fc5._0x91be26,0x1ab)])??readString(_0x34c420?.[_0x2fc4d0(-_0x850fc5._0x139275,0x3f,-_0x850fc5._0x498dc2,-0x5c)])??'';}function _0x25f1(_0x247a07,_0x2b54d5){_0x247a07=_0x247a07-0x140;const _0x35ddb6=_0x35dd();let _0x25f1d4=_0x35ddb6[_0x247a07];if(_0x25f1['ijOKSH']===undefined){var _0x1bf14b=function(_0x3e671e){const _0x50591d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x59edd8='',_0x19c802='';for(let _0x436f18=0x0,_0x2e3f26,_0x1ffc19,_0xa1db61=0x0;_0x1ffc19=_0x3e671e['charAt'](_0xa1db61++);~_0x1ffc19&&(_0x2e3f26=_0x436f18%0x4?_0x2e3f26*0x40+_0x1ffc19:_0x1ffc19,_0x436f18++%0x4)?_0x59edd8+=String['fromCharCode'](0xff&_0x2e3f26>>(-0x2*_0x436f18&0x6)):0x0){_0x1ffc19=_0x50591d['indexOf'](_0x1ffc19);}for(let _0x37f518=0x0,_0x3d797a=_0x59edd8['length'];_0x37f518<_0x3d797a;_0x37f518++){_0x19c802+='%'+('00'+_0x59edd8['charCodeAt'](_0x37f518)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x19c802);};_0x25f1['PHOqdS']=_0x1bf14b,_0x25f1['Chuqvm']={},_0x25f1['ijOKSH']=!![];}const _0x427d33=_0x35ddb6[0x0],_0x4a3c51=_0x247a07+_0x427d33,_0x39b9da=_0x25f1['Chuqvm'][_0x4a3c51];return!_0x39b9da?(_0x25f1d4=_0x25f1['PHOqdS'](_0x25f1d4),_0x25f1['Chuqvm'][_0x4a3c51]=_0x25f1d4):_0x25f1d4=_0x39b9da,_0x25f1d4;}var OpenAiChatCompletionsStreamParser=class{[_0x2b6123(0x2f0,0x2dc,0x327,0x3a9)]=[];['request'];['textParts']=[];[_0x38c793(0x49d,0x41e,0x4de,0x55f)]=new Map();[_0x2b6123(0x365,0x2cf,0x313,0x343)]=[];[_0x2b6123(0x332,0x28e,0x319,0x33f)]=new Set();['responseId']='';[_0x2b6123(0x225,0x1dd,0x25a,0x2b2)]='end_turn';[_0x2b6123(0x22b,0x29c,0x230,0x247)];constructor(_0x31ef78){const _0x4622c6={_0x215ae9:0x7b,_0x288030:0x175},_0x1cbdb2={_0x1b8621:0x13a,_0x1f096e:0x4d5};function _0x249d46(_0xb070fe,_0x591a55,_0xdcc63d,_0x358ec9){return _0x38c793(_0x358ec9,_0x591a55-_0x1cbdb2._0x1b8621,_0xb070fe- -_0x1cbdb2._0x1f096e,_0x358ec9-0x122);}this[_0x249d46(-0xf8,-0x11e,-_0x4622c6._0x215ae9,-_0x4622c6._0x288030)]=_0x31ef78;}[_0x38c793(0x397,0x3ec,0x3cc,0x43d)](_0x28d9fa){const _0x3f97e5={_0x2645c6:0x9,_0x5cbc2a:0x3f,_0xda7851:0x4ad,_0x38e1cd:0x450,_0x19eebc:0x469,_0x29d056:0x3b,_0x41871d:0x80,_0x1e397c:0xb,_0x284bc5:0x35a,_0x5bc9ac:0x3e9,_0x59143c:0x618,_0x4dc15b:0x5e0},_0x241580={_0x59bcdc:0x1b8},_0x5d2db6={_0x51eb20:0x89},_0x12f1b2=readSseData(_0x28d9fa);if(_0x12f1b2[_0x34d222(-0x57,_0x3f97e5._0x2645c6,_0x3f97e5._0x5cbc2a,0x12)]===0x0||_0x12f1b2===_0x56aeec(0x43e,_0x3f97e5._0xda7851,_0x3f97e5._0x38e1cd,0x41a))return[];function _0x56aeec(_0x1c9614,_0xb4856d,_0x45e155,_0x5dfbd6){return _0x38c793(_0xb4856d,_0xb4856d-0x1a3,_0x45e155-_0x5d2db6._0x51eb20,_0x5dfbd6-0x7b);}const _0x31cbc4=JSON[_0x56aeec(0x521,0x4b1,0x4b0,_0x3f97e5._0x19eebc)](_0x12f1b2);this['responseId']=_0x31cbc4['id']??this[_0x34d222(-0x23,_0x3f97e5._0x29d056,-_0x3f97e5._0x41871d,-_0x3f97e5._0x1e397c)];function _0x34d222(_0x16c1b7,_0x48ba6f,_0x4ab316,_0x5dfa17){return _0x38c793(_0x5dfa17,_0x48ba6f-0xf6,_0x48ba6f- -0x3c2,_0x5dfa17-_0x241580._0x59bcdc);}return this[_0x34d222(-0xff,-0x62,0x40,-0x70)]=_0x31cbc4['usage']??this[_0x56aeec(_0x3f97e5._0x284bc5,0x3c8,_0x3f97e5._0x5bc9ac,0x3ae)],this[_0x56aeec(_0x3f97e5._0x59143c,_0x3f97e5._0x4dc15b,0x557,0x51a)](_0x31cbc4);}[_0x2b6123(0x305,0x2e0,0x38e,0x312)](){const _0x4dc124={_0x3e0ff9:0x25b,_0x9e4672:0x1f1,_0x5ea676:0x255,_0x43acf3:0x129,_0x2ec83c:0x1a6,_0x29df14:0x138,_0x18668b:0x1b1,_0x51bd2b:0x251,_0x5b112e:0x18b,_0x33ba30:0xae,_0x3bbea6:0xb0,_0x144465:0x8f,_0x5353c5:0x186,_0x38334f:0x1da,_0x3840a1:0x1a1,_0x2514fa:0x1b2,_0x3821fe:0x24a,_0x143303:0x1f9,_0x59a523:0x82,_0x518adb:0x131,_0x3d018d:0x6f,_0x4557bf:0x127,_0x41db48:0x1b2,_0x3585bf:0x247},_0x16e660={_0x5c7e2f:0x3d7},_0x34e9f6={_0x4dd81a:0x14f};function _0x45215c(_0x157c2d,_0x5cc362,_0x26dea1,_0x4a1ef1){return _0x2b6123(_0x4a1ef1,_0x5cc362-0x1f2,_0x26dea1- -0x122,_0x4a1ef1-_0x34e9f6._0x4dd81a);}this[_0x45215c(0x2ae,_0x4dc124._0x3e0ff9,_0x4dc124._0x9e4672,_0x4dc124._0x5ea676)]['length']>0x0&&(this[_0x45215c(_0x4dc124._0x43acf3,_0x4dc124._0x2ec83c,_0x4dc124._0x29df14,0x1b2)]=_0x45215c(0x176,0x13a,_0x4dc124._0x18668b,_0x4dc124._0x51bd2b));const _0x1aa028=isUserVisibleReasoning(this[_0x45215c(0xeb,0x238,_0x4dc124._0x5b112e,0x1b4)])?this[_0x5cd25c(-_0x4dc124._0x33ba30,-_0x4dc124._0x3bbea6,-_0x4dc124._0x144465,-0x98)]['join'](''):void 0x0;function _0x5cd25c(_0x364101,_0x2b0b3d,_0x4394a7,_0x36eb7a){return _0x2b6123(_0x364101,_0x2b0b3d-0xb,_0x2b0b3d- -_0x16e660._0x5c7e2f,_0x36eb7a-0x106);}return{'id':this[_0x45215c(_0x4dc124._0x5353c5,0x1e0,0x1ab,_0x4dc124._0x38334f)]||_0x5cd25c(-0x13c,-_0x4dc124._0x3840a1,-_0x4dc124._0x2514fa,-_0x4dc124._0x3821fe)+Date[_0x45215c(0x10d,_0x4dc124._0x143303,0x1d2,0x18c)](),'content':createContentBlocks(this[_0x5cd25c(-0x10c,-_0x4dc124._0x59a523,-_0x4dc124._0x518adb,-_0x4dc124._0x3d018d)][_0x45215c(_0x4dc124._0x4557bf,0xfd,_0x4dc124._0x41db48,_0x4dc124._0x3585bf)](''),this['toolCallOrder'],_0x1aa028),'stopReason':this['stopReason'],'usage':createUsage(this[_0x5cd25c(-0xf5,-0x1a7,-0xea,-0xf8)])};}[_0x2b6123(0x458,0x36d,0x39e,0x331)](_0xc361ae){const _0xfd0424={_0x508e3f:0x21,_0x402ae7:0xfa,_0x3d3229:0x173,_0x575f3d:0x1c9,_0x21d304:0x18c,_0x18e80f:0x360,_0x21fb7f:0x4c3,_0x4650b0:0x410,_0x22f09a:0x485,_0x4db54a:0x375,_0x378d8e:0x307,_0x1d0bf3:0x34e,_0x36fc3d:0x5b,_0x391a2b:0x11e,_0x449ae6:0x2f6,_0x30bc61:0x2fe,_0x4be6d9:0x2ee,_0xbb66c6:0x409,_0x517374:0x425,_0x1c8807:0x3ec,_0x5c27c1:0x2af,_0x3fc1be:0x8a,_0x435fd8:0x9f,_0x8b6346:0x3d,_0x54c149:0x2,_0x13f258:0x95,_0x7241fb:0x35,_0x121c4a:0xe9,_0xa20fe6:0x10d,_0x1b1134:0x181,_0x4123b4:0x20c,_0x52d9bd:0x2d9,_0x16bd04:0x200,_0x271bac:0x492,_0xfebb80:0x474,_0x53d392:0x35e,_0x456f96:0x2b8,_0x51ba0b:0x376,_0x2aca35:0x31f,_0x9eedc2:0x174,_0x354bf0:0x12e,_0x54b6f4:0x150,_0x3eab29:0x38b,_0x3d120c:0x2a0,_0x2c0d9f:0x2fd,_0x39c3fa:0x2c7,_0x25f592:0x37c,_0xd82281:0x381,_0x2cc985:0x170,_0x4b5a92:0x181,_0x5be8fa:0x352,_0x1fc883:0x343,_0x41d221:0x256,_0xd06250:0x14a,_0x16feea:0x144,_0x516912:0x126,_0x1bcdbf:0x32d,_0x3930ae:0x345,_0x5a23df:0x3ff,_0x5bf0ca:0x2b0,_0x2868dc:0x2bf,_0x286411:0x10f,_0x280748:0xd2,_0xee2514:0x5a,_0x3dddea:0x1e1,_0x29b966:0x19b,_0x261ca2:0x1a5,_0x2a2eab:0x254,_0x49c338:0x150,_0x984694:0x211,_0xd1e54c:0x329,_0x897a6d:0x2a9,_0x46732c:0x2d3,_0x2d2fda:0x25a,_0xaa9422:0xfb,_0x1aa769:0x191,_0x37743a:0x2bc,_0x4c5fb1:0x25d,_0x1627ed:0x38e,_0xf4928:0x336,_0x231472:0x377},_0x1c2d35={_0x3614e3:0x51b},_0x5990df=[];function _0x5c7f0f(_0xbb71ee,_0x5551ed,_0x5b679e,_0x123129){return _0x38c793(_0x123129,_0x5551ed-0x17f,_0x5551ed- -0xcd,_0x123129-0x93);}function _0x5e0a03(_0x3a1f9e,_0x287d63,_0x197e0d,_0x47a525){return _0x38c793(_0x287d63,_0x287d63-0x19c,_0x197e0d- -_0x1c2d35._0x3614e3,_0x47a525-0xb);}for(const _0x4d8129 of _0xc361ae['choices']??[]){const _0x12c09c=_0x4d8129[_0x5e0a03(0x4f,0x26,-0x5a,-_0xfd0424._0x508e3f)],_0x52a61f=extractChatCompletionReasoningDelta(_0x12c09c);_0x52a61f['length']>0x0&&(this[_0x5c7f0f(0x3d2,0x38a,0x3e0,0x301)][_0x5e0a03(-_0xfd0424._0x402ae7,-_0xfd0424._0x3d3229,-0xd7,-0x10e)](_0x52a61f),isUserVisibleReasoning(this[_0x5e0a03(-0x130,-_0xfd0424._0x575f3d,-0x13e,-_0xfd0424._0x21d304)])&&_0x5990df['push']({'type':'openai_reasoning_delta','contentIndex':0x0,'delta':_0x52a61f,'itemId':(this[_0x5c7f0f(0x2fc,0x330,0x306,_0xfd0424._0x18e80f)]||_0x5c7f0f(_0xfd0424._0x21fb7f,_0xfd0424._0x4650b0,0x3bb,_0xfd0424._0x22f09a))+_0x5c7f0f(_0xfd0424._0x4db54a,0x3f8,0x414,0x4b6),'outputIndex':0x0}));const _0x407f63=typeof _0x12c09c?.[_0x5c7f0f(_0xfd0424._0x378d8e,0x33e,0x401,_0xfd0424._0x1d0bf3)]==='string'?_0x12c09c['content']:typeof _0x12c09c?.['refusal']===_0x5e0a03(-0x133,-_0xfd0424._0x36fc3d,-0x120,-_0xfd0424._0x391a2b)?_0x12c09c['refusal']:'';_0x407f63[_0x5c7f0f(_0xfd0424._0x449ae6,_0xfd0424._0x30bc61,0x2e6,_0xfd0424._0x4be6d9)]>0x0&&(this[_0x5c7f0f(_0xfd0424._0xbb66c6,0x3b8,_0xfd0424._0x517374,0x47a)][_0x5c7f0f(0x2c3,0x377,_0xfd0424._0x1c8807,0x368)](_0x407f63),_0x5990df['push']({'type':_0x5c7f0f(0x2a4,0x300,_0xfd0424._0x5c27c1,0x365),'index':0x0,'text':_0x407f63}));for(const _0x447e3c of _0x12c09c?.['tool_calls']??[]){const _0x2c8bbb=_0x447e3c[_0x5e0a03(-_0xfd0424._0x3fc1be,-_0xfd0424._0x435fd8,-0x9b,-0x161)]??0x0;let _0x5efb3b=this[_0x5e0a03(0x27,0xb,-_0xfd0424._0x8b6346,-_0xfd0424._0x54c149)]['get'](_0x2c8bbb);!_0x5efb3b&&(_0x5efb3b={'id':_0x447e3c['id']??_0x5e0a03(_0xfd0424._0x13f258,-0x26,-_0xfd0424._0x7241fb,-0x1)+_0x2c8bbb,'type':'function','function':{'name':_0x447e3c[_0x5e0a03(-_0xfd0424._0x121c4a,-_0xfd0424._0xa20fe6,-_0xfd0424._0x1b1134,-0x123)]?.[_0x5c7f0f(_0xfd0424._0x4123b4,0x2b0,_0xfd0424._0x52d9bd,_0xfd0424._0x16bd04)]??'','arguments':''}},this[_0x5c7f0f(_0xfd0424._0x271bac,0x411,_0xfd0424._0xfebb80,0x4cb)][_0x5c7f0f(_0xfd0424._0x53d392,0x3d3,0x35b,0x3f4)](_0x2c8bbb,_0x5efb3b),this[_0x5c7f0f(_0xfd0424._0x456f96,_0xfd0424._0x51ba0b,0x3b5,_0xfd0424._0x2aca35)][_0x5e0a03(-0x145,-_0xfd0424._0x9eedc2,-0xd7,-0x7e)](_0x5efb3b));_0x447e3c['id']&&(_0x5efb3b['id']=_0x447e3c['id']);_0x447e3c[_0x5e0a03(-_0xfd0424._0x354bf0,-0x155,-0x181,-_0xfd0424._0x54b6f4)]?.['name']&&(_0x5efb3b[_0x5c7f0f(_0xfd0424._0x3eab29,0x2cd,_0xfd0424._0x3d120c,_0xfd0424._0x2c0d9f)]['name']=_0x447e3c['function']['name']);!this[_0x5c7f0f(_0xfd0424._0x39c3fa,_0xfd0424._0x25f592,0x33a,0x349)][_0x5c7f0f(_0xfd0424._0xd82281,0x3a9,0x3fd,0x33b)](_0x2c8bbb)&&_0x5efb3b[_0x5e0a03(-0x17c,-_0xfd0424._0x2cc985,-_0xfd0424._0x4b5a92,-0x15d)][_0x5c7f0f(_0xfd0424._0x5be8fa,0x2b0,_0xfd0424._0x1fc883,_0xfd0424._0x41d221)][_0x5e0a03(-_0xfd0424._0xd06250,-0x95,-0x149,-_0xfd0424._0x16feea)]()['length']>0x0&&(_0x5990df[_0x5e0a03(-_0xfd0424._0x516912,-0x46,-0xd7,-0xac)]({'type':_0x5c7f0f(_0xfd0424._0x1bcdbf,_0xfd0424._0x3930ae,0x3fc,_0xfd0424._0x5a23df),'id':_0x5efb3b['id'],'index':_0x2c8bbb,'name':_0x5efb3b['function'][_0x5c7f0f(0x225,_0xfd0424._0x5bf0ca,_0xfd0424._0x2868dc,0x2a6)]}),this[_0x5e0a03(-_0xfd0424._0x286411,-0x70,-_0xfd0424._0x280748,-_0xfd0424._0xee2514)][_0x5e0a03(-_0xfd0424._0x3dddea,-0x243,-_0xfd0424._0x29b966,-0x1db)](_0x2c8bbb));const _0xe3fa18=_0x447e3c['function']?.[_0x5e0a03(-0x1f5,-0x1e9,-_0xfd0424._0x261ca2,-_0xfd0424._0x2a2eab)]??'';_0xe3fa18[_0x5e0a03(-0xb3,-0x18d,-_0xfd0424._0x49c338,-0xe2)]>0x0&&(_0x5efb3b[_0x5c7f0f(0x373,0x2cd,_0xfd0424._0x984694,_0xfd0424._0xd1e54c)][_0x5c7f0f(0x257,_0xfd0424._0x897a6d,_0xfd0424._0x46732c,_0xfd0424._0x2d2fda)]+=_0xe3fa18,_0x5990df['push']({'type':_0x5e0a03(-_0xfd0424._0xaa9422,-0xc7,-0x109,-_0xfd0424._0x1aa769),'id':_0x5efb3b['id'],'index':_0x2c8bbb,'inputDelta':_0xe3fa18}));}_0x4d8129['finish_reason']==='tool_calls'&&(this[_0x5c7f0f(_0xfd0424._0x37743a,0x2bd,_0xfd0424._0x4c5fb1,0x380)]=_0x5c7f0f(_0xfd0424._0x1627ed,_0xfd0424._0xf4928,0x297,_0xfd0424._0x231472));}return _0x5990df;}},OpenAiResponsesStreamParser=class{['callIdToOutputIndex']=new Map();[_0x38c793(0x3ff,0x3d5,0x456,0x40d)];[_0x2b6123(0x32e,0x234,0x28d,0x32f)]=new Map();[_0x2b6123(0x35c,0x388,0x2e5,0x230)]=new Map();[_0x38c793(0x3bd,0x318,0x394,0x426)]=new Map();['request'];[_0x2b6123(0x38e,0x3aa,0x3a9,0x3af)]=new Map();[_0x38c793(0x367,0x2fa,0x3a5,0x3ac)]=new Map();constructor(_0x21cd5e){this['request']=_0x21cd5e;}[_0x2b6123(0x2c7,0x34d,0x29c,0x284)](_0x437d43){const _0x454abb={_0x5124af:0x49e,_0x304721:0x54a,_0x425e2d:0x658,_0x2612ad:0x5da,_0x2b2902:0x648,_0x44bb3f:0xe3,_0x3f39f8:0x9a,_0x199024:0xbd,_0x2d0e82:0xd1,_0x4e69d6:0x26,_0x4d7437:0x1d9,_0x287685:0x18f,_0x1e4a81:0x5bf,_0x4658f2:0x48b,_0x10b9a0:0x14,_0x25325e:0x11c,_0x548299:0x3d,_0x5ac0e3:0x2e,_0x5ae575:0x66,_0x2f5dc8:0x640,_0xb773b:0x600,_0x1ab550:0x5db,_0x233374:0x699},_0x109c64={_0x26373e:0x231,_0x342e66:0x13f},_0x26f618={_0x126d99:0x38},_0x2a931b=_0x437d43[_0x2d332c(0x4fe,_0x454abb._0x5124af,_0x454abb._0x304721,0x593)]('\x0a'),_0x73c4f4=_0x2a931b[_0x2d332c(0x541,_0x454abb._0x425e2d,_0x454abb._0x2612ad,_0x454abb._0x2b2902)](_0x43d493=>_0x43d493[_0x26560c(0x176,0xbf,0xf7,0x121)](_0x26560c(0xd8,0x158,0x1a3,0x10a)))?.[_0x26560c(0x48,0x9e,_0x454abb._0x44bb3f,_0x454abb._0x3f39f8)](0x6)[_0x26560c(_0x454abb._0x199024,0x71,_0x454abb._0x2d0e82,_0x454abb._0x4e69d6)]();function _0x2d332c(_0x1e738e,_0x5962f5,_0x2e6b8f,_0x46c880){return _0x38c793(_0x1e738e,_0x5962f5-_0x26f618._0x126d99,_0x2e6b8f-0x10d,_0x46c880-0x114);}function _0x26560c(_0x43e87a,_0x2b6bd1,_0x2be8d7,_0x5c6fb0){return _0x2b6123(_0x43e87a,_0x2b6bd1-0x1b1,_0x2b6bd1- -_0x109c64._0x26373e,_0x5c6fb0-_0x109c64._0x342e66);}const _0xa3a3df=_0x2a931b['filter'](_0x397f1c=>_0x397f1c['startsWith'](_0x2d332c(0x3ff,0x4d2,0x4b7,0x424)))[_0x26560c(_0x454abb._0x4d7437,0x151,0x17d,_0x454abb._0x287685)](_0xc1621e=>_0xc1621e[_0x26560c(0x94,0x9e,-0x29,0x18)](0x5)['trimStart']())[_0x2d332c(_0x454abb._0x1e4a81,_0x454abb._0x4658f2,0x511,0x46b)]('\x0a')[_0x26560c(_0x454abb._0x10b9a0,0x71,_0x454abb._0x25325e,0x12d)]();if(_0xa3a3df[_0x26560c(_0x454abb._0x548299,0x6a,0x6f,-_0x454abb._0x5ac0e3)]===0x0||_0xa3a3df===_0x26560c(0x35,_0x454abb._0x5ae575,0x67,0x27))return[];const _0x2c4148=JSON[_0x26560c(0x150,0xc6,0xc9,0xbb)](_0xa3a3df);return this[_0x2d332c(_0x454abb._0x2f5dc8,_0x454abb._0xb773b,_0x454abb._0x1ab550,_0x454abb._0x233374)](_0x73c4f4??String(_0x2c4148['type']??''),_0x2c4148);}['consumeWebSocketEvent'](_0x47fa0d){const _0x442615={_0x1dac96:0x595,_0x197b7a:0x52c},_0x4d626c={_0x3267f9:0xfc,_0x2fccea:0x5e};function _0x4af727(_0x1bca0b,_0x39edc4,_0x104186,_0x28abae){return _0x38c793(_0x39edc4,_0x39edc4-_0x4d626c._0x3267f9,_0x28abae-_0x4d626c._0x2fccea,_0x28abae-0x34);}return this[_0x4af727(0x5f2,_0x442615._0x1dac96,0x598,_0x442615._0x197b7a)](String(_0x47fa0d['type']??''),_0x47fa0d);}[_0x2b6123(0x2cc,0x2dc,0x38e,0x2d0)](){const _0x2a1cbf={_0x5e4f8f:0x227,_0x3603d7:0x297,_0x1f22a1:0x364,_0x16f0a5:0x389,_0x4c354c:0x213,_0x28fc51:0x3fa,_0x1abb24:0x270,_0x33c450:0x20f,_0x152015:0x370,_0x3f4473:0x1d1},_0x3aacfe={_0x272209:0x6d,_0x4cbb74:0x22f},_0x11f986={_0x31a16a:0x53};function _0x5aea52(_0x131282,_0x5467b1,_0xf4dafa,_0x761026){return _0x38c793(_0xf4dafa,_0x5467b1-_0x11f986._0x31a16a,_0x761026- -0x5c,_0x761026-0xdd);}function _0xc58daf(_0x28ddc1,_0x49da99,_0x1ac5c8,_0x15578c){return _0x38c793(_0x1ac5c8,_0x49da99-_0x3aacfe._0x272209,_0x49da99- -_0x3aacfe._0x4cbb74,_0x15578c-0x14d);}const _0x587edd=this[_0xc58daf(0x1ce,_0x2a1cbf._0x5e4f8f,_0x2a1cbf._0x3603d7,0x298)]??{'id':_0x5aea52(0x32d,_0x2a1cbf._0x1f22a1,0x2f3,_0x2a1cbf._0x16f0a5)+Date[_0xc58daf(0x16d,0x1f5,0x177,_0x2a1cbf._0x4c354c)](),'object':_0x5aea52(_0x2a1cbf._0x28fc51,0x4d3,0x4a2,0x41b),'status':_0xc58daf(_0x2a1cbf._0x1abb24,0x1aa,_0x2a1cbf._0x33c450,0x252),'output':this[_0x5aea52(0x385,0x414,_0x2a1cbf._0x152015,0x427)](),'usage':{'input_tokens':0x0,'output_tokens':0x0}};return parseResponsesResponse(_0x587edd,this[_0xc58daf(0x105,0x1ae,_0x2a1cbf._0x3f4473,0x1dd)]);}['isDone'](){const _0x320c2f={_0x49831d:0x120,_0x298e92:0x2b,_0x2aef31:0xe9},_0x22b041={_0x10aa82:0x5b};function _0x3c11c4(_0x400144,_0x38955f,_0x2d920f,_0x31b15d){return _0x38c793(_0x2d920f,_0x38955f-_0x22b041._0x10aa82,_0x31b15d- -0x53f,_0x31b15d-0x97);}return this[_0x3c11c4(-_0x320c2f._0x49831d,-_0x320c2f._0x298e92,-0x4a,-_0x320c2f._0x2aef31)]!==void 0x0;}[_0x38c793(0x540,0x450,0x4ce,0x46c)](_0x1da4e7,_0x554399){const _0x4864c3={_0x8298b6:0x18e,_0x106429:0x15f,_0x4ed2db:0x18b,_0x181a04:0x151,_0x3e448a:0x249,_0x2194e1:0x232,_0x5c0d97:0x21d,_0x11250a:0x5fa,_0x44d356:0x5d5,_0x2bcf0f:0x53f,_0x776a2b:0x521,_0x5168dc:0x1b9,_0x5f55de:0x145,_0x3b5fb5:0x1f2,_0x4e0a12:0x558,_0x4f1ba5:0x277,_0x1fd7fc:0x27b,_0x319b20:0x1b6,_0x21f527:0x4e1,_0x3a0303:0x18e,_0x3d0c27:0x254,_0x5cadd6:0x15e,_0x75ceed:0x105,_0x33f5f6:0x3e4,_0x1ac284:0x462,_0x3fd12c:0x511,_0x38d86e:0x503,_0x4300a8:0x595,_0x4b1abb:0x135,_0x43b157:0x141,_0x5dcabf:0x55a,_0x5077bf:0x4f6,_0x1ef33d:0x50b,_0x1f0af4:0x4d1,_0x4bb2ae:0xd8,_0x35e988:0x5b4,_0x58905d:0x4a3,_0x48f657:0x4b6,_0x517acf:0x57f,_0x6ca76c:0x3ed,_0x38efb8:0x4ae,_0x252008:0x424,_0x5eb052:0x4b7,_0x1e253d:0x1e3,_0x36d1c6:0x1b5,_0x3deaaa:0x403,_0x1f5540:0x55c,_0x2b5ad9:0x258,_0x4423e1:0x282,_0x100ea0:0xed,_0x5262ef:0x233,_0x2ffb9d:0x2a5,_0x39fcc3:0x17d,_0x65e200:0x1a2,_0x439d51:0x218,_0x56c7d1:0x170,_0x40fa58:0x158,_0x42c0a0:0xce,_0x4b116c:0xbe,_0x476f01:0x1ca,_0x23883e:0x1b1,_0x439c5d:0x26e,_0x4eb562:0x58c,_0x28e056:0x5bb,_0xb3ff25:0x166,_0x444c26:0xbd,_0x20c1fb:0x1a2,_0x57ff51:0x27b,_0x250d9c:0x327,_0x196479:0x256,_0x3ad1c4:0x1ac,_0x395943:0x129,_0x490d82:0x5a3,_0x36fe12:0x50f,_0x5f42c8:0x466,_0x5afecc:0x210,_0x5e4636:0x1df,_0x18a514:0x4c7,_0x3f0c2d:0x4fd,_0x315a01:0x18b,_0x2a1024:0x108,_0x1bc63d:0x177,_0x1a245d:0x16a,_0x5074ca:0x626,_0x495c48:0x5d5,_0x7d1795:0x564,_0x6b99dd:0x67e,_0x5d08a4:0x1d6,_0x549877:0x264,_0x3ac01b:0x5fd,_0x2e9842:0x603,_0x77da7c:0x42b,_0x18eb26:0x4d3,_0x5bea31:0x54f,_0x5e5c10:0x175,_0x286b2b:0x164,_0x30e552:0xff,_0x5d9edc:0x1a4,_0x57d42d:0x201,_0x167dba:0x521,_0x2701db:0x48e,_0x7e19aa:0x4e7,_0x474520:0x4c8,_0x59d65d:0x578,_0x11007e:0xd1,_0x1cd8ab:0x203,_0x342e3c:0x142,_0x1f6d53:0x131,_0x37cc2a:0x17d,_0x1be275:0xeb,_0x8fdc0c:0x201,_0x9fb219:0x5cd,_0x21f93c:0x559,_0x417630:0x46a,_0x556991:0x472,_0x5b23b8:0x1d4,_0xf6e0b3:0x109,_0x3eac7e:0x18b,_0x47314d:0x111,_0x4478db:0x15d,_0x1f9308:0x58c,_0x37c979:0x4c7,_0x2a21e3:0x50e,_0x235345:0x4b4,_0x1b0de2:0x58a,_0x4e8f99:0x3de,_0x50201e:0x26d,_0x56cf64:0x1b3,_0x372064:0x225,_0x4d1921:0x151,_0x195346:0x95,_0x578cc1:0x178,_0x2b5f8e:0x287,_0x372b07:0x17c,_0x598651:0x4c7,_0x2970ad:0x4cf,_0x266754:0x56f,_0x42f6fb:0x184,_0x53a29d:0x15e,_0x52d4fd:0x475,_0x20e763:0x12c,_0x30608c:0x16f,_0x4176fe:0x546,_0x454e0e:0x48a,_0x3a7094:0x3c7,_0x4df4a8:0x3ca,_0x116a8f:0x116,_0x50cdc0:0x119,_0x248d53:0x544,_0x38808c:0x5ad,_0x1d9df8:0x615,_0x588c06:0x500,_0x810085:0x49f,_0x4fc6b4:0x3e5,_0x1c74d0:0x1d6,_0x587d3e:0x1cd,_0x3f0cb1:0x169,_0x4ee902:0x13e,_0x2dbcde:0x152,_0xa538f8:0x1a6,_0x1a5bc0:0x427,_0x74cf0f:0x477,_0x2deb10:0x3db,_0x370d5e:0x128,_0x572dfe:0x215,_0x413e58:0x580,_0x5440a6:0x255,_0x3b67fc:0x21d,_0x26284e:0x270,_0x275d07:0x263,_0x3af64b:0x1ce,_0x3f8b88:0x1dc,_0x272abc:0x556,_0x1240c2:0x5db,_0x2f3008:0x4e3,_0x51a215:0x3c8,_0x5620f8:0x58a,_0x460ccb:0x638,_0x3f112f:0x1a5,_0x5addb4:0x148,_0x33bae3:0xfc,_0x2a171e:0x55e,_0x227fdd:0x4b1,_0x130506:0x160,_0x18f142:0x4e2,_0x4c6510:0x529,_0x50a841:0x519,_0x2085c4:0x52c,_0x36c2eb:0x18b,_0x386109:0x251,_0x583d63:0x156,_0x3b67ae:0xcb,_0x2be03b:0x161,_0x4e29bd:0x120,_0x3c6220:0x232,_0xac05a1:0x104,_0x5bb2f4:0x101,_0x517e06:0x51a,_0x185d19:0x3fb,_0x2a5da0:0x255,_0x3413c7:0x5b4,_0x400b71:0x5d7,_0x35b290:0x197,_0x5826a8:0x1f3,_0x23447e:0x22d,_0x11b421:0x1d1,_0x2d2a82:0x50f,_0x18f953:0x509,_0x1c7ff6:0x1c2,_0x302c23:0x189,_0x2bd10c:0x572,_0x4e5f78:0x1f0,_0x17248b:0x1e6,_0x2d74c7:0x2a8,_0x36ea10:0x567,_0x3ab7a9:0x4c7,_0x58f5ac:0x49e,_0x25fd90:0x426,_0x5a2cf6:0x52b,_0x4f95ab:0x293,_0x515d63:0x214,_0x208abb:0x5a3,_0x3036bf:0x1bb,_0x23474c:0xa6,_0x1c2eb7:0x1a7,_0x51c7bc:0x295,_0x1c9d93:0x1c1,_0x43522b:0x544,_0x43f8ae:0x11a,_0x401d1b:0x616,_0x4b369f:0x4ba,_0x49091c:0x4dc,_0x202f91:0x581,_0x14eb44:0x5c3,_0x5eba7c:0x4c4,_0x257805:0x534,_0x753287:0x529,_0x3d9154:0x4bf,_0x35b7a2:0x555,_0x3085de:0x461,_0x422b08:0xe5,_0x850de6:0x1b6,_0x1e7e35:0x4ce,_0x473d3b:0x52e,_0x220fe0:0x1a8,_0x5e8829:0x211,_0x3f54aa:0x4f8,_0x486619:0x1a6,_0x4a3382:0x16b,_0x9d06c4:0x51a,_0x10d616:0x1b8,_0x18a88b:0x507,_0x2f72bc:0x539,_0x5445da:0x1dc,_0x1698be:0xdd,_0x311197:0x172,_0x41d0d0:0x5b5,_0x39c5f3:0x4c4,_0xd247fe:0x508,_0x153990:0x195,_0x2bd826:0x4f2,_0x4e25af:0x56c,_0x4438f9:0x5d2,_0x175a87:0x259,_0x2b90b7:0x3e9,_0x3217e7:0x448,_0xc1db98:0x4ba,_0x4bfa64:0x60e,_0x3a3ba7:0x5b4,_0xc20d23:0x53a,_0x341706:0x4fd,_0x1535f5:0x486,_0x59c0d7:0x523,_0x24540d:0x426,_0x338797:0x552,_0x318d8b:0x5fd,_0x1c403f:0x283,_0xa0c143:0x259,_0x475f68:0x30e,_0x279a15:0x5f4,_0x2aa031:0x586,_0x2f961c:0x52f,_0xf37147:0x110,_0x40ed12:0x150,_0x2cf92a:0x29b,_0x42d9e6:0x5f6,_0x340cf0:0x553,_0x119142:0x46b,_0x4cf9fa:0x60b,_0x235fe0:0x65a,_0x5a0e4b:0x602,_0x551e04:0x59a,_0x5be1ff:0x228,_0x461d53:0x1fe,_0x12ab98:0x4e8,_0x5d171e:0x4cb},_0x456949={_0x1cf73c:0xa0},_0x546804={_0x85df5e:0x111,_0x22e578:0x52};function _0x5057a2(_0x16f623,_0x5b6388,_0x1e4e3e,_0x4940fc){return _0x38c793(_0x4940fc,_0x5b6388-_0x546804._0x85df5e,_0x16f623- -0x225,_0x4940fc-_0x546804._0x22e578);}function _0x136a6f(_0x4b52a5,_0xb2b6f4,_0x1bc94b,_0x199e4f){return _0x38c793(_0x4b52a5,_0xb2b6f4-_0x456949._0x1cf73c,_0xb2b6f4-0x114,_0x199e4f-0xc0);}switch(_0x1da4e7){case'response.output_text.delta':{const _0x17397b=typeof _0x554399[_0x5057a2(_0x4864c3._0x8298b6,_0x4864c3._0x106429,0x1ef,0x19d)]===_0x5057a2(_0x4864c3._0x4ed2db,_0x4864c3._0x181a04,0x140,_0x4864c3._0x3e448a)?_0x554399[_0x5057a2(0x18e,_0x4864c3._0x2194e1,0xde,0xd5)]:0x0,_0x5db512=typeof _0x554399['delta']===_0x5057a2(0x1d6,0x120,_0x4864c3._0x5c0d97,0x26f)?_0x554399[_0x136a6f(_0x4864c3._0x11250a,_0x4864c3._0x44d356,_0x4864c3._0x2bcf0f,_0x4864c3._0x776a2b)]:'';if(_0x5db512[_0x5057a2(0x1a6,_0x4864c3._0x5168dc,0x14c,_0x4864c3._0x5f55de)]>0x0){const _0xf15d9e=this[_0x5057a2(0x2b4,0x279,_0x4864c3._0x3b5fb5,0x234)]['get'](_0x17397b)??[];return _0xf15d9e[_0x136a6f(0x519,_0x4864c3._0x4e0a12,0x5f9,0x4ec)](_0x5db512),this[_0x5057a2(0x2b4,0x1f5,0x2b6,_0x4864c3._0x4f1ba5)][_0x5057a2(_0x4864c3._0x1fd7fc,_0x4864c3._0x319b20,0x1db,0x228)](_0x17397b,_0xf15d9e),[{'type':_0x136a6f(0x49e,_0x4864c3._0x21f527,0x446,0x579),'index':_0x17397b,'text':_0x5db512}];}break;}case _0x136a6f(0x4f1,0x549,0x51f,0x4ab):{const _0x2e87cb=typeof _0x554399[_0x5057a2(_0x4864c3._0x3a0303,_0x4864c3._0x3d0c27,0x1cf,_0x4864c3._0x5cadd6)]==='number'?_0x554399[_0x5057a2(_0x4864c3._0x8298b6,0x16f,_0x4864c3._0x75ceed,0x220)]:void 0x0,_0x143730=_0x554399[_0x136a6f(_0x4864c3._0x33f5f6,0x4af,_0x4864c3._0x1ac284,_0x4864c3._0x3fd12c)];if(_0x143730?.[_0x136a6f(0x51b,_0x4864c3._0x38d86e,_0x4864c3._0x4300a8,0x5ca)]===_0x5057a2(_0x4864c3._0x4b1abb,_0x4864c3._0x43b157,0x1ed,0x17c)&&_0x143730[_0x136a6f(0x3ef,0x4b6,_0x4864c3._0x5dcabf,_0x4864c3._0x5077bf)]&&_0x143730[_0x136a6f(0x4fe,0x491,_0x4864c3._0x1ef33d,_0x4864c3._0x1f0af4)])return this[_0x5057a2(0x180,_0x4864c3._0x4bb2ae,0x149,0x16d)][_0x136a6f(0x642,_0x4864c3._0x35e988,0x63e,0x551)](_0x143730['call_id'],{'id':_0x143730[_0x136a6f(_0x4864c3._0x58905d,_0x4864c3._0x48f657,_0x4864c3._0x517acf,0x489)],'type':_0x136a6f(_0x4864c3._0x6ca76c,_0x4864c3._0x38efb8,0x542,_0x4864c3._0x252008),'function':{'name':_0x143730[_0x136a6f(_0x4864c3._0x5eb052,0x491,0x4e2,0x3d9)],'arguments':''}}),_0x2e87cb!==void 0x0&&(this[_0x5057a2(0x198,0x166,_0x4864c3._0x1e253d,_0x4864c3._0x36d1c6)]['set'](_0x2e87cb,_0x143730[_0x136a6f(_0x4864c3._0x3deaaa,0x4b6,_0x4864c3._0x1f5540,0x426)]),this['callIdToOutputIndex'][_0x5057a2(0x27b,_0x4864c3._0x2b5ad9,_0x4864c3._0x4423e1,0x1da)](_0x143730[_0x5057a2(0x17d,_0x4864c3._0x100ea0,0x10f,0x221)],_0x2e87cb)),[{'type':_0x5057a2(0x1ed,_0x4864c3._0x5262ef,0x146,_0x4864c3._0x2ffb9d),'id':_0x143730[_0x5057a2(_0x4864c3._0x39fcc3,_0x4864c3._0x65e200,_0x4864c3._0x439d51,_0x4864c3._0x56c7d1)],'index':_0x2e87cb??0x0,'name':_0x143730[_0x5057a2(_0x4864c3._0x40fa58,_0x4864c3._0x42c0a0,_0x4864c3._0x4b116c,0x21f)]}];if(_0x143730?.[_0x5057a2(_0x4864c3._0x476f01,_0x4864c3._0x23883e,0x1df,_0x4864c3._0x439c5d)]===_0x136a6f(_0x4864c3._0x4eb562,0x5ad,_0x4864c3._0x28e056,0x639)&&_0x143730['id']){const _0x1cd229=this[_0x5057a2(_0x4864c3._0xb3ff25,_0x4864c3._0x444c26,_0x4864c3._0x20c1fb,0x1e3)](_0x143730['id'],_0x2e87cb);_0x2e87cb!==void 0x0&&this['outputIndexToReasoningId'][_0x5057a2(_0x4864c3._0x57ff51,_0x4864c3._0x250d9c,_0x4864c3._0x196479,0x2c3)](_0x2e87cb,_0x1cd229['id']);}break;}case _0x5057a2(_0x4864c3._0x3ad1c4,0x106,0x11c,_0x4864c3._0x395943):{const _0x47f477=typeof _0x554399['call_id']===_0x136a6f(_0x4864c3._0x490d82,_0x4864c3._0x36fe12,_0x4864c3._0x5f42c8,0x514)?_0x554399[_0x5057a2(0x17d,_0x4864c3._0x5afecc,0x113,_0x4864c3._0x5e4636)]:typeof _0x554399[_0x136a6f(0x587,_0x4864c3._0x18a514,_0x4864c3._0x3f0c2d,0x4ac)]===_0x5057a2(_0x4864c3._0x315a01,_0x4864c3._0x2a1024,0x23d,0x232)?this['outputIndexToCallId']['get'](_0x554399[_0x5057a2(0x18e,0x204,_0x4864c3._0x1bc63d,_0x4864c3._0x1a245d)]):void 0x0,_0x2bb5d4=typeof _0x554399[_0x136a6f(_0x4864c3._0x5074ca,_0x4864c3._0x495c48,_0x4864c3._0x7d1795,_0x4864c3._0x6b99dd)]===_0x5057a2(_0x4864c3._0x5d08a4,_0x4864c3._0x549877,0x13c,0x25b)?_0x554399[_0x136a6f(0x63f,_0x4864c3._0x495c48,_0x4864c3._0x3ac01b,_0x4864c3._0x2e9842)]:'',_0x89695c=_0x47f477?this[_0x136a6f(0x46d,0x4b9,_0x4864c3._0x77da7c,_0x4864c3._0x18eb26)][_0x136a6f(_0x4864c3._0x5bea31,0x4c8,0x484,0x4eb)](_0x47f477):void 0x0;if(_0x89695c&&_0x2bb5d4['length']>0x0)return _0x89695c[_0x5057a2(_0x4864c3._0x5e5c10,_0x4864c3._0x286b2b,_0x4864c3._0x30e552,_0x4864c3._0x5d9edc)]['arguments']+=_0x2bb5d4,[{'type':_0x5057a2(0x1ed,0x1e7,_0x4864c3._0x57d42d,0x268),'id':_0x89695c['id'],'index':this[_0x136a6f(_0x4864c3._0x167dba,_0x4864c3._0x2701db,0x41c,0x4db)][_0x136a6f(_0x4864c3._0x7e19aa,_0x4864c3._0x474520,_0x4864c3._0x59d65d,0x4f7)](_0x89695c['id'])??(typeof _0x554399[_0x5057a2(_0x4864c3._0x3a0303,_0x4864c3._0x11007e,0x1ef,0x1c6)]===_0x5057a2(0x18b,_0x4864c3._0x1cd8ab,0x130,_0x4864c3._0x395943)?_0x554399[_0x136a6f(0x4e6,_0x4864c3._0x18a514,0x422,0x577)]:0x0),'inputDelta':_0x2bb5d4}];break;}case _0x5057a2(_0x4864c3._0x342e3c,_0x4864c3._0x1f6d53,0xf5,0xbf):{const _0xd8aa84=typeof _0x554399[_0x5057a2(_0x4864c3._0x37cc2a,_0x4864c3._0x1be275,0x1e7,_0x4864c3._0x8fdc0c)]===_0x136a6f(_0x4864c3._0x9fb219,0x50f,0x470,_0x4864c3._0x21f93c)?_0x554399[_0x136a6f(_0x4864c3._0x417630,_0x4864c3._0x48f657,_0x4864c3._0x556991,0x3ed)]:typeof _0x554399[_0x5057a2(_0x4864c3._0x8298b6,_0x4864c3._0x5b23b8,_0x4864c3._0xf6e0b3,0xe9)]===_0x5057a2(_0x4864c3._0x3eac7e,_0x4864c3._0x47314d,_0x4864c3._0x4478db,0x22d)?this['outputIndexToCallId']['get'](_0x554399[_0x136a6f(_0x4864c3._0x1f9308,_0x4864c3._0x37c979,0x54f,_0x4864c3._0x2a21e3)]):void 0x0,_0x457eda=_0xd8aa84?this[_0x5057a2(0x180,0x162,0x216,0x1b0)][_0x136a6f(_0x4864c3._0x235345,0x4c8,_0x4864c3._0x1b0de2,0x4fc)](_0xd8aa84):void 0x0;_0x457eda&&typeof _0x554399[_0x136a6f(0x422,0x48a,0x47e,_0x4864c3._0x4e8f99)]===_0x5057a2(0x1d6,0x183,0x218,_0x4864c3._0x50201e)&&(_0x457eda[_0x5057a2(_0x4864c3._0x5e5c10,0x1b3,_0x4864c3._0x56cf64,_0x4864c3._0x372064)][_0x5057a2(_0x4864c3._0x4d1921,0x111,_0x4864c3._0x195346,_0x4864c3._0x578cc1)]=_0x554399['arguments']);break;}case _0x5057a2(0x2a2,_0x4864c3._0x2b5f8e,0x1e4,0x2cf):{const _0x16ecbf=typeof _0x554399[_0x5057a2(0x18e,0x22f,0x1f5,_0x4864c3._0x372b07)]==='number'?_0x554399[_0x136a6f(0x4ee,_0x4864c3._0x598651,_0x4864c3._0x2970ad,_0x4864c3._0x266754)]:void 0x0,_0x1c6aa5=_0x554399[_0x5057a2(0x176,0x178,_0x4864c3._0x42f6fb,0x195)];if(_0x1c6aa5?.[_0x5057a2(_0x4864c3._0x476f01,0x1b3,0x10a,_0x4864c3._0x53a29d)]===_0x5057a2(0x135,0x12f,0x122,0x10d)){const _0x3d777a=_0x1c6aa5['call_id']??(_0x16ecbf!==void 0x0?this['outputIndexToCallId']['get'](_0x16ecbf):void 0x0),_0xdeea8f=_0x3d777a?this['toolCalls']['get'](_0x3d777a):void 0x0;_0xdeea8f&&typeof _0x1c6aa5[_0x136a6f(0x532,0x48a,_0x4864c3._0x52d4fd,_0x4864c3._0x21f527)]==='string'&&(_0xdeea8f['function'][_0x5057a2(_0x4864c3._0x181a04,_0x4864c3._0x20e763,0x1f5,_0x4864c3._0x30608c)]=_0x1c6aa5[_0x136a6f(_0x4864c3._0x4176fe,_0x4864c3._0x454e0e,_0x4864c3._0x3a7094,_0x4864c3._0x4df4a8)]);break;}if(_0x1c6aa5?.[_0x5057a2(0x1ca,_0x4864c3._0x116a8f,_0x4864c3._0x50cdc0,0x214)]===_0x136a6f(_0x4864c3._0x248d53,_0x4864c3._0x38808c,0x581,_0x4864c3._0x1d9df8)&&_0x1c6aa5['id']){const _0x59c162=this[_0x136a6f(_0x4864c3._0x588c06,_0x4864c3._0x810085,0x4ac,_0x4864c3._0x4fc6b4)](_0x1c6aa5['id'],_0x16ecbf);typeof _0x1c6aa5['encrypted_content']===_0x5057a2(_0x4864c3._0x1c74d0,0x24d,0x201,_0x4864c3._0x587d3e)&&(_0x59c162['encryptedContent']=_0x1c6aa5[_0x5057a2(0x17c,0x17a,0x1ac,_0x4864c3._0x3f0cb1)]);if(Array['isArray'](_0x1c6aa5[_0x5057a2(_0x4864c3._0x4ee902,0x192,0x9e,_0x4864c3._0x2dbcde)]))for(let _0x39cc99=0x0;_0x39cc99<_0x1c6aa5[_0x5057a2(0x13e,_0x4864c3._0x30e552,0xba,_0x4864c3._0x3eac7e)][_0x5057a2(_0x4864c3._0xa538f8,0x25b,0x21f,0x1ff)];_0x39cc99+=0x1){const _0xf245c=_0x1c6aa5[_0x136a6f(_0x4864c3._0x1a5bc0,_0x4864c3._0x74cf0f,0x424,_0x4864c3._0x2deb10)][_0x39cc99];_0xf245c[_0x5057a2(_0x4864c3._0x476f01,0x1c1,_0x4864c3._0x370d5e,_0x4864c3._0x572dfe)]===_0x136a6f(0x540,0x5b6,_0x4864c3._0x413e58,0x5f5)&&typeof _0xf245c['text']===_0x5057a2(_0x4864c3._0x1c74d0,0x139,0x123,0x1f0)&&_0x59c162[_0x5057a2(_0x4864c3._0x5440a6,_0x4864c3._0x3b67fc,_0x4864c3._0x26284e,0x293)]['set'](_0x39cc99,_0xf245c[_0x5057a2(_0x4864c3._0x3b67fc,_0x4864c3._0x275d07,_0x4864c3._0x3af64b,_0x4864c3._0x3f8b88)]);}typeof _0x1c6aa5['text']===_0x136a6f(0x5da,0x50f,0x48f,0x5ab)&&_0x59c162[_0x136a6f(0x547,0x50c,0x449,0x582)][_0x5057a2(0x27b,0x212,0x337,0x2a5)](0x0,_0x1c6aa5[_0x136a6f(0x5ee,_0x4864c3._0x272abc,_0x4864c3._0x1240c2,0x51a)]);}break;}case _0x136a6f(0x454,0x478,_0x4864c3._0x2f3008,_0x4864c3._0x51a215):{const _0x50f27e=typeof _0x554399[_0x136a6f(0x5eb,0x5d5,_0x4864c3._0x5620f8,0x551)]==='string'?_0x554399[_0x136a6f(0x60e,0x5d5,0x639,_0x4864c3._0x460ccb)]:'',_0x5104f3=typeof _0x554399[_0x5057a2(0x181,_0x4864c3._0x3f112f,_0x4864c3._0x5addb4,_0x4864c3._0x33bae3)]==='string'?_0x554399['item_id']:typeof _0x554399[_0x136a6f(_0x4864c3._0x2a171e,0x4c7,_0x4864c3._0x227fdd,0x4ea)]===_0x5057a2(0x18b,_0x4864c3._0x587d3e,0x20e,_0x4864c3._0x130506)?this[_0x136a6f(_0x4864c3._0x18f142,_0x4864c3._0x4c6510,_0x4864c3._0x18f142,_0x4864c3._0x50a841)][_0x5057a2(0x18f,0x1ad,0x1a2,0x120)](_0x554399['output_index']):void 0x0,_0x37a4ea=typeof _0x554399[_0x136a6f(0x518,0x4c7,_0x4864c3._0x2085c4,0x475)]===_0x5057a2(_0x4864c3._0x36c2eb,_0x4864c3._0x386109,_0x4864c3._0x583d63,0x142)?_0x554399[_0x5057a2(0x18e,_0x4864c3._0x3b67ae,_0x4864c3._0x2be03b,0x114)]:0x0,_0x12861f=typeof _0x554399['summary_index']===_0x5057a2(0x18b,0xca,_0x4864c3._0x4e29bd,_0x4864c3._0x3c6220)?_0x554399['summary_index']:0x0;if(_0x5104f3&&_0x50f27e[_0x5057a2(_0x4864c3._0xa538f8,_0x4864c3._0xac05a1,_0x4864c3._0x286b2b,_0x4864c3._0x5bb2f4)]>0x0){const _0x59681b=this[_0x136a6f(_0x4864c3._0x517e06,_0x4864c3._0x810085,_0x4864c3._0x185d19,0x55f)](_0x5104f3,_0x37a4ea);_0x59681b[_0x5057a2(_0x4864c3._0x2a5da0,0x2d7,0x282,0x2d5)][_0x136a6f(0x5f1,_0x4864c3._0x3413c7,_0x4864c3._0x400b71,0x544)](_0x12861f,''+(_0x59681b[_0x5057a2(0x255,_0x4864c3._0x35b290,0x252,_0x4864c3._0x5826a8)][_0x5057a2(0x18f,0x1e6,_0x4864c3._0x23447e,0xd8)](_0x12861f)??'')+_0x50f27e);if(isUserVisibleReasoning(this['request']))return[{'type':'openai_reasoning_summary_delta','delta':_0x50f27e,'itemId':_0x5104f3,'outputIndex':_0x37a4ea,'summaryIndex':_0x12861f}];}break;}case _0x5057a2(_0x4864c3._0x11b421,0x181,0x255,0x140):{const _0x4282b7=typeof _0x554399['item_id']===_0x136a6f(0x44a,_0x4864c3._0x2d2a82,0x499,0x495)?_0x554399[_0x136a6f(0x4ef,0x4ba,0x578,_0x4864c3._0x18f953)]:typeof _0x554399[_0x5057a2(0x18e,_0x4864c3._0x1c7ff6,_0x4864c3._0x302c23,0xda)]===_0x136a6f(0x4cd,0x4c4,_0x4864c3._0x2bd10c,0x53b)?this[_0x5057a2(_0x4864c3._0x4e5f78,0x151,_0x4864c3._0x17248b,_0x4864c3._0x2d74c7)][_0x5057a2(0x18f,0x1ea,0x141,_0x4864c3._0x342e3c)](_0x554399['output_index']):void 0x0,_0x1219a9=typeof _0x554399[_0x136a6f(_0x4864c3._0x36ea10,_0x4864c3._0x3ab7a9,_0x4864c3._0x58f5ac,_0x4864c3._0x25fd90)]==='number'?_0x554399['output_index']:0x0,_0x1e93e5=typeof _0x554399[_0x136a6f(0x65e,0x5d4,_0x4864c3._0x5a2cf6,0x670)]===_0x5057a2(0x18b,0xd2,0x213,0x255)?_0x554399[_0x5057a2(0x29b,_0x4864c3._0x4f95ab,_0x4864c3._0x515d63,0x2c6)]:0x0,_0x331cd7=typeof _0x554399[_0x136a6f(_0x4864c3._0x208abb,0x556,0x4b1,0x50c)]==='string'?_0x554399[_0x5057a2(0x21d,0x17d,_0x4864c3._0x3036bf,0x1cf)]:'';_0x4282b7&&this[_0x5057a2(0x166,_0x4864c3._0x23474c,_0x4864c3._0x1c2eb7,0xc1)](_0x4282b7,_0x1219a9)[_0x5057a2(0x255,_0x4864c3._0x51c7bc,0x26c,_0x4864c3._0x1c9d93)][_0x136a6f(0x523,_0x4864c3._0x35e988,_0x4864c3._0x43522b,0x4ea)](_0x1e93e5,_0x331cd7);break;}case _0x5057a2(0x1e3,_0x4864c3._0x43f8ae,0x169,0x27e):{const _0x18da21=typeof _0x554399['delta']==='string'?_0x554399[_0x136a6f(0x5e7,_0x4864c3._0x495c48,0x52a,_0x4864c3._0x401d1b)]:'',_0x1ee1cf=typeof _0x554399[_0x136a6f(0x54a,_0x4864c3._0x4b369f,0x45f,_0x4864c3._0x49091c)]===_0x136a6f(_0x4864c3._0x202f91,_0x4864c3._0x2d2a82,0x50f,_0x4864c3._0x14eb44)?_0x554399['item_id']:typeof _0x554399['output_index']===_0x136a6f(0x571,_0x4864c3._0x5eba7c,_0x4864c3._0x257805,0x4d2)?this[_0x136a6f(0x5a6,_0x4864c3._0x753287,0x4c7,0x465)][_0x136a6f(_0x4864c3._0x3d9154,0x4c8,_0x4864c3._0x35b7a2,0x400)](_0x554399[_0x136a6f(0x458,0x4c7,_0x4864c3._0x3085de,0x519)]):void 0x0,_0x42c92e=typeof _0x554399['output_index']==='number'?_0x554399[_0x5057a2(0x18e,_0x4864c3._0x422b08,0x1ce,_0x4864c3._0x850de6)]:0x0,_0x410d9c=typeof _0x554399[_0x136a6f(_0x4864c3._0x1e7e35,0x56c,0x59f,_0x4864c3._0x473d3b)]===_0x5057a2(0x18b,_0x4864c3._0x220fe0,_0x4864c3._0x5e8829,0x161)?_0x554399[_0x136a6f(_0x4864c3._0x2bcf0f,0x56c,0x52d,_0x4864c3._0x3f54aa)]:0x0;if(_0x1ee1cf&&_0x18da21[_0x5057a2(_0x4864c3._0x486619,0x252,0x25c,0x17f)]>0x0){const _0x29e04c=this[_0x5057a2(0x166,0x10a,0x167,0x14e)](_0x1ee1cf,_0x42c92e);_0x29e04c[_0x5057a2(0x1d3,0x210,0x25d,_0x4864c3._0x4a3382)][_0x136a6f(0x4f4,_0x4864c3._0x3413c7,0x505,_0x4864c3._0x9d06c4)](_0x410d9c,''+(_0x29e04c[_0x136a6f(0x56c,0x50c,0x49b,0x5ac)]['get'](_0x410d9c)??'')+_0x18da21);if(isUserVisibleReasoning(this[_0x5057a2(_0x4864c3._0x10d616,_0x4864c3._0x3e448a,0x13c,0x1c9)]))return[{'type':_0x136a6f(0x464,_0x4864c3._0x18a88b,0x509,_0x4864c3._0x2f72bc),'contentIndex':_0x410d9c,'delta':_0x18da21,'itemId':_0x1ee1cf,'outputIndex':_0x42c92e}];}break;}case'response.reasoning_text.done':{const _0x555296=typeof _0x554399[_0x5057a2(0x181,_0x4864c3._0x5445da,0x186,_0x4864c3._0x1698be)]==='string'?_0x554399['item_id']:typeof _0x554399['output_index']===_0x5057a2(0x18b,0x1a2,0x1b2,_0x4864c3._0x311197)?this[_0x136a6f(0x59d,0x529,_0x4864c3._0x41d0d0,0x5cd)][_0x136a6f(_0x4864c3._0x39c5f3,0x4c8,0x4ea,_0x4864c3._0xd247fe)](_0x554399['output_index']):void 0x0,_0x54e4d8=typeof _0x554399[_0x5057a2(0x18e,0xd0,0xfc,0x133)]==='number'?_0x554399[_0x136a6f(0x4fa,0x4c7,_0x4864c3._0x3f0c2d,0x444)]:0x0,_0x50c23c=typeof _0x554399[_0x5057a2(0x233,_0x4864c3._0x153990,0x291,0x1db)]==='number'?_0x554399[_0x136a6f(_0x4864c3._0x2bd826,_0x4864c3._0x4e25af,0x603,_0x4864c3._0x4438f9)]:0x0,_0x5240cd=typeof _0x554399[_0x5057a2(0x21d,0x1b8,0x20a,_0x4864c3._0x175a87)]===_0x136a6f(0x56a,0x50f,0x545,0x571)?_0x554399['text']:'';_0x555296&&this[_0x136a6f(_0x4864c3._0x2bd826,0x49f,0x3ed,_0x4864c3._0x2b90b7)](_0x555296,_0x54e4d8)[_0x136a6f(0x584,0x50c,_0x4864c3._0x3217e7,_0x4864c3._0xc1db98)][_0x136a6f(_0x4864c3._0x4bfa64,_0x4864c3._0x3a3ba7,_0x4864c3._0xc20d23,_0x4864c3._0x4c6510)](_0x50c23c,_0x5240cd);break;}case _0x136a6f(_0x4864c3._0x341706,_0x4864c3._0x1535f5,_0x4864c3._0x59c0d7,_0x4864c3._0x24540d):{this[_0x136a6f(_0x4864c3._0x2a21e3,0x56a,0x4e3,_0x4864c3._0x338797)]=_0x554399[_0x136a6f(_0x4864c3._0x318d8b,0x58b,0x555,0x53f)];break;}case _0x5057a2(_0x4864c3._0x1c403f,_0x4864c3._0xa0c143,_0x4864c3._0x475f68,0x2e0):{const _0x363c1f=_0x554399['response'];throw new OpenAiResponsesStreamError(_0x363c1f?.[_0x136a6f(_0x4864c3._0x279a15,_0x4864c3._0x2aa031,_0x4864c3._0x2f961c,0x4f6)]?.[_0x5057a2(0x1bd,_0x4864c3._0xf37147,0x100,_0x4864c3._0x40ed12)]??'Responses\x20stream\x20failed',{'code':_0x363c1f?.['error']?.[_0x5057a2(0x2c9,_0x4864c3._0x2cf92a,0x243,0x24e)]});}case'error':{const _0x2a81c4=_0x554399[_0x136a6f(0x4e3,0x586,_0x4864c3._0x42d9e6,_0x4864c3._0x340cf0)];throw new OpenAiResponsesStreamError(_0x2a81c4?.[_0x136a6f(0x554,_0x4864c3._0x5077bf,_0x4864c3._0x119142,0x57b)]??_0x136a6f(0x554,0x562,0x51e,_0x4864c3._0x4cf9fa),{'code':_0x2a81c4?.[_0x136a6f(_0x4864c3._0x235fe0,_0x4864c3._0x5a0e4b,0x6bc,_0x4864c3._0x551e04)],'status':typeof _0x554399[_0x5057a2(0x1af,0x264,_0x4864c3._0x5be1ff,_0x4864c3._0x461d53)]==='number'?_0x554399[_0x136a6f(0x568,_0x4864c3._0x12ab98,0x437,_0x4864c3._0x5d171e)]:void 0x0});}}return[];}[_0x2b6123(0x2df,0x2c6,0x353,0x2b8)](){const _0x346931={_0x56518a:0x3a0,_0x41e5ad:0x3c6,_0x563f79:0x445,_0x1ed017:0x1c3,_0x2df147:0x14e,_0x694b88:0x137,_0x2a4c1f:0x108,_0x215884:0xc7,_0x14432c:0x13f,_0xfed7d:0xab,_0x1d8418:0x158,_0x4e7ef5:0x31,_0x44bb47:0x39e,_0x47573c:0x331,_0x318d91:0x37f,_0x5a115b:0x3ae,_0x2fed92:0x365,_0x53a127:0x318,_0x30e4e7:0x1d6,_0x2bae59:0x252,_0x3b5854:0x389,_0x45ec93:0x134,_0x5c6ece:0x24e,_0x1bed9c:0x452,_0x512e03:0xf7,_0x5912f3:0x1b7,_0x55bace:0x199,_0x2815dd:0x108,_0xcf5815:0x148,_0x153aea:0x1da,_0x21b1da:0xcf,_0x5dbe10:0x17c,_0x6371c0:0x2c8,_0x229141:0x2bd,_0x4376d3:0x1f4,_0x15120e:0x145,_0x297fb2:0x191,_0x2d83d3:0x159,_0x3250bb:0x1b0,_0xba73eb:0xe5,_0x42bd77:0x135,_0x4441ed:0xa3,_0x41150e:0x17a,_0x46eafd:0x16e,_0x772d6:0x1be,_0x43c3cb:0x2f1,_0x125998:0x241,_0x2a5abe:0x35d,_0x501d6f:0x1e8,_0x50ad55:0x1ce,_0xa50f55:0xc8,_0x2f0e58:0x178,_0x328cbf:0x106,_0x37cda2:0xfd,_0x4c2909:0x129,_0x431f13:0xf1,_0x16d1f0:0x13a,_0x13ce7e:0x7c,_0x26c46f:0x97,_0x2306c0:0x145,_0x46a8ef:0x1d3,_0x30f785:0x2ae,_0xbd95c1:0x26a,_0x400ea0:0x2e2,_0x29e16a:0x2e7,_0x2e4739:0x225,_0xcc70c0:0x177},_0x4573c6={_0x5bcafa:0x8c},_0x8ccb8={_0x269c50:0x12f,_0x22727e:0x1c3},_0x410680={_0x3b4875:0x113,_0x489163:0x19d},_0x3605b1=[];for(const [_0x43cbd0,_0x232859]of this[_0x1e8af0(_0x346931._0x56518a,_0x346931._0x41e5ad,_0x346931._0x563f79,0x382)][_0xdfd622(_0x346931._0x1ed017,0x14a,_0x346931._0x2df147,0xe8)]()){const _0x1d59cf=_0x232859['join']('');if(_0x1d59cf[_0xdfd622(_0x346931._0x694b88,0x6f,_0x346931._0x2a4c1f,0x15e)]===0x0)continue;_0x3605b1['push']({'index':_0x43cbd0,'item':{'type':_0x1e8af0(0x344,0x2cf,0x267,0x353),'role':'assistant','content':[{'type':_0xdfd622(_0x346931._0x215884,0x13e,_0x346931._0x14432c,_0x346931._0xfed7d),'text':_0x1d59cf}]}});}function _0xdfd622(_0x40e42c,_0x1c7f4c,_0x1cb0e3,_0x2fce15){return _0x2b6123(_0x1c7f4c,_0x1c7f4c-_0x410680._0x3b4875,_0x1cb0e3- -0x193,_0x2fce15-_0x410680._0x489163);}for(const _0x3e8a4d of this[_0xdfd622(_0x346931._0x1d8418,_0x346931._0x4e7ef5,0xd1,0x2a)]['values']()){_0x3605b1[_0x1e8af0(_0x346931._0x44bb47,_0x346931._0x47573c,0x2ed,0x32c)]({'index':_0x3e8a4d[_0x1e8af0(0x37d,_0x346931._0x318d91,_0x346931._0x5a115b,0x43b)]??_0x3605b1[_0x1e8af0(_0x346931._0x2fed92,0x2b8,_0x346931._0x53a127,0x233)],'item':{'type':_0xdfd622(0x254,0x250,_0x346931._0x30e4e7,_0x346931._0x2bae59),'id':_0x3e8a4d['id'],..._0x3e8a4d[_0x1e8af0(0x332,0x380,0x2cc,_0x346931._0x3b5854)]?{'encrypted_content':_0x3e8a4d['encryptedContent']}:{},..._0x3e8a4d[_0xdfd622(_0x346931._0x45ec93,0x1f7,0x1b7,_0x346931._0x5c6ece)][_0x1e8af0(0x354,0x3a4,_0x346931._0x53a127,_0x346931._0x1bed9c)]>0x0?{'summary':Array['from'](_0x3e8a4d[_0xdfd622(_0x346931._0x512e03,0x18f,_0x346931._0x5912f3,_0x346931._0x55bace)][_0xdfd622(_0x346931._0x2815dd,0x92,0x14e,_0x346931._0xcf5815)]())[_0xdfd622(_0x346931._0x153aea,_0x346931._0x21b1da,0x16e,_0x346931._0x5dbe10)]((_0x57fa41,_0x3d2c7e)=>_0x57fa41[0x0]-_0x3d2c7e[0x0])['map'](([,_0x36a0a4])=>{const _0x292a72={_0xbb199e:0x291,_0x42cfd8:0x1,_0x195a44:0x125};function _0xdc7223(_0x270d66,_0x296500,_0x1ccca1,_0x235532){return _0x1e8af0(_0x235532,_0x270d66- -_0x292a72._0xbb199e,_0x1ccca1-_0x292a72._0x42cfd8,_0x235532-_0x292a72._0x195a44);}return{'type':_0xdc7223(0xfe,_0x8ccb8._0x269c50,_0x8ccb8._0x22727e,0x19b),'text':_0x36a0a4};})}:{},..._0x3e8a4d[_0x1e8af0(0x24d,0x2e5,0x25f,_0x346931._0x6371c0)][_0xdfd622(_0x346931._0x229141,0x2a7,_0x346931._0x4376d3,_0x346931._0x15120e)]>0x0?{'text':Array[_0xdfd622(_0x346931._0x297fb2,0x95,_0x346931._0x2d83d3,_0x346931._0x3250bb)](_0x3e8a4d[_0xdfd622(0x9d,_0x346931._0xba73eb,_0x346931._0x42bd77,_0x346931._0x4441ed)]['entries']())[_0xdfd622(_0x346931._0x41150e,0x1ca,_0x346931._0x46eafd,_0x346931._0x772d6)]((_0x240f61,_0x132f71)=>_0x240f61[0x0]-_0x132f71[0x0])['map'](([,_0x2acb60])=>_0x2acb60)[_0x1e8af0(0x2b5,_0x346931._0x43c3cb,_0x346931._0x125998,_0x346931._0x2a5abe)]('')}:{}}});}function _0x1e8af0(_0x2b32cc,_0xf792bc,_0x9def45,_0x1532e7){return _0x2b6123(_0x2b32cc,_0xf792bc-0xaa,_0xf792bc-0x1d,_0x1532e7-_0x4573c6._0x5bcafa);}for(const _0x73920e of this[_0x1e8af0(0x2f5,0x292,_0x346931._0x501d6f,_0x346931._0x50ad55)][_0xdfd622(_0x346931._0xa50f55,_0x346931._0x2f0e58,0x154,_0x346931._0x328cbf)]()){_0x3605b1[_0xdfd622(_0x346931._0x37cda2,_0x346931._0x4c2909,0x181,0x109)]({'index':this[_0xdfd622(0x4e,0x8f,0xb7,0x4c)][_0xdfd622(0xaa,0x176,_0x346931._0x431f13,0x148)](_0x73920e['id'])??_0x3605b1[_0xdfd622(_0x346931._0x4441ed,_0x346931._0x16d1f0,_0x346931._0x2815dd,_0x346931._0xfed7d)],'item':{'type':_0xdfd622(_0x346931._0x13ce7e,0x41,_0x346931._0x26c46f,_0x346931._0x2306c0),'call_id':_0x73920e['id'],'name':_0x73920e[_0x1e8af0(_0x346931._0x46a8ef,0x287,0x29a,0x317)][_0x1e8af0(_0x346931._0x30f785,_0x346931._0xbd95c1,_0x346931._0x400ea0,0x23c)],'arguments':_0x73920e[_0x1e8af0(_0x346931._0x29e16a,0x287,_0x346931._0x2e4739,0x254)]['arguments']}});}return _0x3605b1[_0xdfd622(0x12a,0x226,0x16e,_0x346931._0xcc70c0)]((_0x446a36,_0x35b744)=>_0x446a36[_0x1e8af0(0x359,0x36d,0x407,0x390)]-_0x35b744[_0x1e8af0(0x301,0x36d,0x36e,0x35c)])['map'](_0x13d35c=>_0x13d35c['item']);}['getOrCreateReasoningItem'](_0x55c07d,_0x2c486d){const _0x28deed={_0x892112:0x237,_0x23c5dd:0x201,_0x82c4e3:0x2ab,_0x1d53e1:0x262,_0x3f1ad0:0x3f8,_0x5a1e35:0x28b,_0x4577d2:0x3c5,_0x5638a4:0x47e,_0x5be61a:0x1bc,_0x3ec2cc:0x205,_0x179fa2:0x473,_0x2b879b:0x444,_0x5e4188:0x4d1},_0x4f9d69={_0x39890e:0x16e},_0x2d75e6={_0x4f085d:0x140,_0x4b6da0:0xdd},_0x445bf0=this[_0x59c83c(_0x28deed._0x892112,_0x28deed._0x23c5dd,_0x28deed._0x82c4e3,_0x28deed._0x1d53e1)]['get'](_0x55c07d);function _0x5c276a(_0x386658,_0x2f17f9,_0x1e5ebd,_0x43cf93){return _0x38c793(_0x386658,_0x2f17f9-_0x2d75e6._0x4f085d,_0x43cf93- -0x22,_0x43cf93-_0x2d75e6._0x4b6da0);}if(_0x445bf0)return _0x2c486d!==void 0x0&&(_0x445bf0[_0x5c276a(_0x28deed._0x3f1ad0,0x41a,0x458,0x470)]=_0x2c486d,this[_0x59c83c(0x330,_0x28deed._0x5a1e35,0x345,0x2e3)][_0x5c276a(_0x28deed._0x4577d2,0x4c7,0x3ee,_0x28deed._0x5638a4)](_0x2c486d,_0x55c07d)),_0x445bf0;const _0x59be7a={'id':_0x55c07d,'outputIndex':_0x2c486d,'summaryByIndex':new Map(),'textByIndex':new Map()};this[_0x59c83c(_0x28deed._0x5be61a,0x2ce,_0x28deed._0x3ec2cc,0x262)][_0x5c276a(_0x28deed._0x179fa2,_0x28deed._0x2b879b,_0x28deed._0x5e4188,0x47e)](_0x55c07d,_0x59be7a);function _0x59c83c(_0x406e20,_0x24d5ae,_0x5d608a,_0xc793e6){return _0x38c793(_0x406e20,_0x24d5ae-_0x4f9d69._0x39890e,_0xc793e6- -0x132,_0xc793e6-0x100);}return _0x2c486d!==void 0x0&&this['outputIndexToReasoningId']['set'](_0x2c486d,_0x55c07d),_0x59be7a;}};function createOpenAiResponsesStreamParser(_0x515527){return new OpenAiResponsesStreamParser(_0x515527);}function createOpenAiSurfaces(_0x4fd07a={}){const _0x654cb7={_0x3e6932:0x53,_0x41100d:0x391,_0x12f859:0x43b,_0x2cb8ff:0x35a,_0x3be82f:0x356,_0x2acd0d:0x3cd,_0x8a25e2:0x2f6,_0x42c945:0x3d8,_0x52a478:0x465,_0x44ca38:0x300,_0x394592:0x278,_0x571acd:0x2ac,_0x17dcfa:0x28e,_0x9eac25:0x2a,_0x57e519:0x8e},_0xdd2230={_0x410567:0x11e,_0x53e1bb:0xd1,_0x3c1ce5:0xba},_0x310f0d={_0x102227:0x1a1,_0x2a3602:0x15d},_0x4ca949={_0x342806:0x27c,_0x42e72a:0x320},_0x148292={_0x1351f4:0xf5,_0x3b366f:0x27},_0xb08a6c={_0x2dc34d:0x6f};function _0x1a0959(_0xb3a86e,_0x152b8e,_0x3920af,_0x44c88){return _0x2b6123(_0x152b8e,_0x152b8e-0x166,_0xb3a86e-0x53,_0x44c88-_0xb08a6c._0x2dc34d);}const _0x2ed729=_0x4fd07a[_0x561caa(_0x654cb7._0x3e6932,0xcf,-0x15,0x5c)]??_0x1a0959(_0x654cb7._0x41100d,_0x654cb7._0x12f859,_0x654cb7._0x2cb8ff,0x3da);function _0x561caa(_0x61ceaa,_0x445e15,_0x7a765f,_0x37c777){return _0x38c793(_0x445e15,_0x445e15-_0x148292._0x1351f4,_0x61ceaa- -0x3cf,_0x37c777-_0x148292._0x3b366f);}const _0x33c0a3=_0x4fd07a[_0x1a0959(_0x654cb7._0x3be82f,0x2fa,_0x654cb7._0x2acd0d,_0x654cb7._0x8a25e2)]??_0x1a0959(_0x654cb7._0x42c945,_0x654cb7._0x52a478,0x377,0x446);return[{'id':OPENAI_CHAT_COMPLETIONS_SURFACE,'transport':_0x1a0959(0x2ac,_0x654cb7._0x44ca38,_0x654cb7._0x394592,0x2d3),'createRequest'(_0x32a0f0){const _0x3aa037={_0x3cc0a3:0xe1};function _0x298c52(_0x4fc307,_0x50d969,_0x5896f4,_0x3a197b){return _0x1a0959(_0x50d969-0x4c,_0x4fc307,_0x5896f4-_0x3aa037._0x3cc0a3,_0x3a197b-0x1e1);}return{'accept':_0x298c52(0x3af,0x320,_0x4ca949._0x342806,_0x4ca949._0x42e72a),'body':createChatRequestBody(_0x32a0f0,![]),'path':_0x2ed729};},'parseResponse'(_0x580326){return parseChatCompletionResponse(_0x580326);}},{'id':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,'transport':'http-sse','createRequest'(_0x46f637){const _0x35e999={_0x5819ce:0xb0,_0x35092d:0x8b};function _0x191628(_0x13f856,_0x9c712c,_0x354cc2,_0x4a452d){return _0x561caa(_0x4a452d-_0x35e999._0x5819ce,_0x9c712c,_0x354cc2-_0x35e999._0x35092d,_0x4a452d-0x5a);}return{'accept':_0x191628(0x157,0x178,_0x310f0d._0x102227,_0x310f0d._0x2a3602),'body':createChatRequestBody(_0x46f637,!![]),'path':_0x2ed729};},'createStreamParser'(_0x2cc703){return new OpenAiChatCompletionsStreamParser(_0x2cc703);}},{'id':OPENAI_RESPONSES_SURFACE,'transport':_0x1a0959(_0x654cb7._0x571acd,_0x654cb7._0x17dcfa,0x2ea,0x2fb),'createRequest'(_0x978686){return{'accept':'application/json','body':createResponsesRequestBody(_0x978686,![]),'path':_0x33c0a3};},'parseResponse'(_0x2242a9,_0x201c19){return parseResponsesResponse(_0x2242a9,_0x201c19);}},{'id':OPENAI_RESPONSES_STREAM_SURFACE,'transport':'http-sse','createRequest'(_0xe23e9b){const _0x4123de={_0x54c623:0xd,_0x1d9dad:0x4a,_0x1639ab:0x110};function _0x29b3cc(_0xb60332,_0x3d96de,_0x3204bb,_0x2e6d57){return _0x561caa(_0x2e6d57-_0x4123de._0x54c623,_0xb60332,_0x3204bb-_0x4123de._0x1d9dad,_0x2e6d57-_0x4123de._0x1639ab);}return{'accept':_0x29b3cc(_0xdd2230._0x410567,0x184,_0xdd2230._0x53e1bb,_0xdd2230._0x3c1ce5),'body':createResponsesRequestBody(_0xe23e9b,!![]),'path':_0x33c0a3};},'createStreamParser'(_0x560d5c){return new OpenAiResponsesStreamParser(_0x560d5c);}},{'id':OPENAI_RESPONSES_WEBSOCKET_SURFACE,'transport':_0x561caa(_0x654cb7._0x9eac25,-0xb,_0x654cb7._0x57e519,0x87),'createRequest'(_0x291040){return{'initialEvent':createOpenAiResponsesWebSocketEvent(_0x291040),'path':_0x33c0a3};},'createStreamParser'(_0x14299f){return createOpenAiResponsesStreamParser(_0x14299f);}}];}var OpenAiProviderAdapter=class{[_0x38c793(0x499,0x476,0x474,0x46f)];constructor(_0x151945){this['headerResolver']=_0x151945;}['createMissingCredentialError'](){const _0xcce063={_0x573cc8:0x160,_0x58dbc2:0x163};function _0x31690d(_0x164beb,_0x51b1a0,_0x1678ec,_0x4c0cc2){return _0x2b6123(_0x1678ec,_0x51b1a0-0x102,_0x4c0cc2- -0x1da,_0x4c0cc2-0x4b);}return new Error(_0x31690d(_0xcce063._0x573cc8,0x7f,_0xcce063._0x58dbc2,0xac));}async[_0x2b6123(0x205,0x239,0x265,0x249)](_0xac53a6,_0x23fcf1){const _0x4284aa={_0x197c6e:0x486,_0x1d936f:0x3d3,_0x52323d:0x482,_0x4c63cb:0x396,_0x5a94de:0x3b4,_0x3b6748:0x1f3,_0x14d791:0x4a6,_0xb59088:0x4f4,_0xcf8518:0x437,_0x303c64:0x469,_0x1042ed:0x1a2,_0xcdf612:0x1f2,_0x5c11cf:0x1ea,_0x30f730:0x411,_0x5a719a:0x458,_0x5e9ab4:0x1df,_0x4639d5:0x132,_0x5132d0:0x1bf,_0x315378:0xe8,_0x66ba7b:0x18a,_0x1bcd34:0x2cf,_0x2c2dab:0x426,_0x1ed279:0x2dc,_0x5b7918:0x2f7,_0x2ee82e:0x360,_0x5a628f:0x2e0,_0x18760f:0x258,_0x26f63d:0x3d7,_0x451431:0x3fc},_0x39feaa={_0x1afbe9:0xc9},_0x596d10={_0x28aca2:0x68,_0x81aa5e:0x40};function _0x4237c7(_0x20b865,_0x439d6f,_0x4da94b,_0x3179e7){return _0x38c793(_0x4da94b,_0x439d6f-_0x596d10._0x28aca2,_0x3179e7- -0x231,_0x3179e7-_0x596d10._0x81aa5e);}const _0x508b46=new Headers();_0x508b46['set'](_0x5e18ef(_0x4284aa._0x197c6e,0x3cb,_0x4284aa._0x1d936f,0x33d),_0x23fcf1['accept']),_0x508b46[_0x5e18ef(_0x4284aa._0x52323d,_0x4284aa._0x4c63cb,0x423,_0x4284aa._0x5a94de)]('authorization',_0x4237c7(_0x4284aa._0x3b6748,0xd8,0x13f,0x194)+_0xac53a6[_0x5e18ef(_0x4284aa._0x14d791,_0x4284aa._0xb59088,_0x4284aa._0xcf8518,_0x4284aa._0x303c64)][_0x4237c7(0x1f8,_0x4284aa._0x1042ed,_0x4284aa._0xcdf612,_0x4284aa._0x5c11cf)]);function _0x5e18ef(_0x55cef0,_0x164599,_0x463a5a,_0x2ad436){return _0x38c793(_0x2ad436,_0x164599-_0x39feaa._0x1afbe9,_0x463a5a- -0x7d,_0x2ad436-0x8f);}_0x23fcf1[_0x5e18ef(0x46f,_0x4284aa._0x30f730,_0x4284aa._0x5a719a,0x42e)]!==![]&&_0x508b46['set'](_0x4237c7(_0x4284aa._0x5e9ab4,0x159,_0x4284aa._0x4639d5,_0x4284aa._0x5132d0),_0x4237c7(_0x4284aa._0x315378,0x1a1,_0x4284aa._0x66ba7b,0x180));const _0x32c65b=await this['headerResolver']?.({'body':_0xac53a6[_0x5e18ef(_0x4284aa._0x1bcd34,0x2ab,0x2f2,0x2d0)],'credential':_0xac53a6[_0x5e18ef(0x3cb,0x4ee,_0x4284aa._0xcf8518,_0x4284aa._0x2c2dab)],'request':_0xac53a6[_0x5e18ef(_0x4284aa._0x1ed279,_0x4284aa._0x5b7918,_0x4284aa._0x2ee82e,0x40a)],'session':_0xac53a6[_0x4237c7(_0x4284aa._0x5a628f,_0x4284aa._0x18760f,0x24e,0x28b)],'stream':_0xac53a6[_0x5e18ef(0x384,_0x4284aa._0x26f63d,_0x4284aa._0x451431,0x3af)]});for(const [_0x3d3173,_0x454043]of Object['entries'](_0x32c65b??{})){_0x508b46['set'](_0x3d3173,_0x454043);}return _0x508b46;}[_0x38c793(0x3b6,0x42a,0x3b7,0x303)](_0x44c7f2){return _0x44c7f2;}[_0x38c793(0x410,0x3fd,0x4bb,0x473)](_0x2034d6,_0xcfcab8){return resolveSessionBaseUrl(_0x2034d6,_0xcfcab8);}['resolveCredential'](_0x4f838f,_0x206daf){return resolveApiCredential(_0x4f838f,_0x206daf);}async[_0x2b6123(0x325,0x2d4,0x358,0x3f0)](_0x2c759d){return await createOpenAiApiError(_0x2c759d);}};function _0x2b6123(_0x395190,_0x1d019c,_0x26217b,_0x31fc8d){return _0x25f1(_0x26217b-0xe9,_0x395190);}var OpenAiModel=class _OpenAiModel extends RoutedModel{static [_0x2b6123(0x20f,0x32d,0x2cc,0x238)]=new Map();[_0x2b6123(0x325,0x285,0x2f2,0x23c)];[_0x38c793(0x43f,0x368,0x433,0x37e)];constructor(_0x4b3b40={}){const _0xc8f903={_0x17a8a3:0xdb,_0x17ffaa:0x117,_0x2ea446:0x268,_0x3dc43a:0x224,_0x59f6f4:0x271,_0xc4c8b3:0x204,_0x97b882:0x2b8,_0x314493:0x24c,_0x4ac590:0x138,_0x5dcc22:0x18c,_0x358450:0x239,_0x52694a:0x225,_0x2d265b:0x25f,_0x17d20c:0x2ae,_0x295e56:0x265,_0xeaab70:0x253,_0xc995a4:0x223,_0x306113:0x2ca,_0x55e89f:0x26d,_0x3f31f7:0x176,_0x1cabd2:0x205,_0x2a39e2:0x1af,_0x4da556:0x2ab},_0x2273c2={_0x31f9e8:0xdd,_0x40f152:0x2f},_0x2263f2={_0x5a250c:0x1de,_0x115835:0x493,_0x3a05ec:0xb8};function _0xe7e8b7(_0x1735c5,_0x216bab,_0x3730e0,_0x28ddae){return _0x2b6123(_0x1735c5,_0x216bab-_0x2263f2._0x5a250c,_0x3730e0- -_0x2263f2._0x115835,_0x28ddae-_0x2263f2._0x3a05ec);}const _0xd553de=_0x4b3b40[_0xe7e8b7(-0xe9,-_0xc8f903._0x17a8a3,-_0xc8f903._0x17ffaa,-0x13f)]??'gpt-4o',_0x2d0d14=_0x4b3b40[_0xe7e8b7(-_0xc8f903._0x2ea446,-0x1dc,-_0xc8f903._0x3dc43a,-0x1b0)]??0x4000,_0x341c55=_0x4b3b40[_0xe7e8b7(-0x120,-0x12b,-0x1a1,-0x13a)]??_0x4e535c(0x240,_0xc8f903._0x59f6f4,0x193,_0xc8f903._0xc4c8b3),_0x19ec13=_0x4b3b40['responsesPath']??_0x4e535c(0x287,0x1d5,_0xc8f903._0x97b882,_0xc8f903._0x314493);super({'apiKey':_0x4b3b40[_0xe7e8b7(-_0xc8f903._0x4ac590,-0x1d2,-_0xc8f903._0x5dcc22,-0x13a)],'baseUrl':trimTrailingSlashes(_0x4b3b40['baseUrl']??_0xe7e8b7(-_0xc8f903._0x358450,-0x22b,-_0xc8f903._0x52694a,-0x20b)),'fetch':_0x4b3b40[_0x4e535c(_0xc8f903._0x2d265b,0x316,0x23e,_0xc8f903._0x17d20c)],'maxTokens':_0x2d0d14,'model':_0xd553de,'reasoning':_0x4b3b40[_0x4e535c(0x26b,_0xc8f903._0x295e56,_0xc8f903._0xeaab70,_0xc8f903._0xc995a4)],'providerAdapter':new OpenAiProviderAdapter(_0x4b3b40[_0x4e535c(0x246,0x200,0x2f7,_0xc8f903._0x306113)]),'providerSessionResolver':_0x4b3b40['providerSessionResolver'],'requestMutators':_0x4b3b40['requestMutators'],'router':new StaticModelSurfaceRouter({'complete':OPENAI_CHAT_COMPLETIONS_SURFACE,'stream':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE}),'sessionManager':_0x4b3b40[_0xe7e8b7(-0x65,-0x159,-0xdf,-0x146)],'surfaces':createOpenAiSurfaces({'chatCompletionsPath':_0x341c55,'responsesPath':_0x19ec13}),'webSocketFactory':_0x4b3b40[_0x4e535c(0x2ad,0x216,_0xc8f903._0x55e89f,0x306)]});function _0x4e535c(_0xc6c3e9,_0x417fbd,_0x459e9e,_0x61ebf3){return _0x2b6123(_0x417fbd,_0x417fbd-_0x2273c2._0x31f9e8,_0xc6c3e9- -0xfe,_0x61ebf3-_0x2273c2._0x40f152);}this[_0xe7e8b7(-_0xc8f903._0x3f31f7,-0x24d,-0x1a1,-0x14b)]=_0x341c55,this[_0x4e535c(_0xc8f903._0x1cabd2,_0xc8f903._0x2a39e2,_0xc8f903._0x4da556,0x2a8)]=_0x19ec13;}[_0x38c793(0x57c,0x551,0x4cb,0x567)](_0xb723e0,_0x139b0a){const _0x37399c={_0x611291:0x157,_0x1f98fc:0xf0},_0x291e37={_0x163048:0x4a8};function _0x110691(_0xe3c446,_0x476d03,_0x3403a4,_0x14b5b1){return _0x2b6123(_0x476d03,_0x476d03-0x3,_0xe3c446- -_0x291e37._0x163048,_0x14b5b1-0x1e1);}return this[_0x110691(-_0x37399c._0x611291,-_0x37399c._0x1f98fc,-0x178,-0xff)](_0xb723e0,OPENAI_CHAT_COMPLETIONS_SURFACE,_0x139b0a);}[_0x38c793(0x4a6,0x495,0x46f,0x478)](_0x49aba9,_0xc796d4){const _0x2e3d2e={_0x1659e7:0x35c,_0x550b0f:0x244,_0x46a0ec:0x392},_0x654f69={_0x403279:0x48,_0x596f96:0x1b7,_0x175b1f:0xfc};function _0xada564(_0x5b81fe,_0x4994dd,_0x3aff27,_0x5cbfd6){return _0x38c793(_0x5cbfd6,_0x4994dd-_0x654f69._0x403279,_0x5b81fe- -_0x654f69._0x596f96,_0x5cbfd6-_0x654f69._0x175b1f);}return this[_0xada564(0x2ca,_0x2e3d2e._0x1659e7,_0x2e3d2e._0x550b0f,_0x2e3d2e._0x46a0ec)](_0x49aba9,OPENAI_RESPONSES_SURFACE,_0xc796d4);}['completeViaResponsesWebSocketSurface'](_0x4486de,_0x442d64){return this['completeViaSurface'](_0x4486de,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x442d64);}[_0x2b6123(0x325,0x2ae,0x309,0x39f)](_0x258328,_0x39bcc7){return this['streamViaSurface'](_0x258328,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,_0x39bcc7);}[_0x38c793(0x4ee,0x420,0x432,0x3d5)](_0xa513e3,_0x58ee6c){const _0xf8a483={_0x4f4a66:0x1db,_0x378947:0x149};function _0x487bff(_0x1ed1d4,_0x44cf8f,_0x401638,_0x350be5){return _0x38c793(_0x44cf8f,_0x44cf8f-_0xf8a483._0x4f4a66,_0x350be5- -_0xf8a483._0x378947,_0x350be5-0x1a2);}return this[_0x487bff(0x210,0x2b5,0x19f,0x238)](_0xa513e3,OPENAI_RESPONSES_STREAM_SURFACE,_0x58ee6c);}[_0x2b6123(0x364,0x345,0x398,0x2fb)](_0x24cd44,_0x2abce7){const _0x340a87={_0x48f9cf:0xbc,_0x36daa3:0x119,_0x3c20fd:0xe5},_0x13053f={_0x5c3b0b:0x268};function _0x34567e(_0x556834,_0x2e5226,_0x12e9ce,_0x5a646f){return _0x38c793(_0x2e5226,_0x2e5226-0x134,_0x12e9ce- -_0x13053f._0x5c3b0b,_0x5a646f-0xa6);}return this[_0x34567e(0xdd,_0x340a87._0x48f9cf,_0x340a87._0x36daa3,_0x340a87._0x3c20fd)](_0x24cd44,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x2abce7);}async[_0x38c793(0x4bf,0x4ea,0x42f,0x44c)](_0x27afcc,_0x2d9d27){const _0x1add38={_0x56f91c:0x8,_0x17b372:0x32},_0x4e0fc3={_0x5648eb:0x70,_0x5b67cf:0x13f};function _0xa32c05(_0x2c62a0,_0x387ad3,_0x43fbb1,_0x28b1d3){return _0x2b6123(_0x2c62a0,_0x387ad3-_0x4e0fc3._0x5648eb,_0x43fbb1- -0x2b9,_0x28b1d3-_0x4e0fc3._0x5b67cf);}try{return await this['completeViaChatCompletionsSurface'](_0x27afcc,_0x2d9d27);}catch(_0x2e1525){if(_0x2e1525 instanceof OpenAiApiError)throw this[_0xa32c05(-0xe7,_0x1add38._0x56f91c,-_0x1add38._0x17b372,0x77)](_0x2e1525);throw _0x2e1525;}}async['response'](_0x146ba1,_0x2b4961){const _0x552d27={_0x5b861b:0x16a,_0x40f28b:0xc2,_0x352f98:0x19e,_0x23d668:0x1fa},_0x1effaf={_0x1ce0e0:0x122},_0x55b4a5={_0x198963:0x4a9,_0x1eef01:0x31};function _0x4005bd(_0x58899f,_0x438e52,_0x3a061d,_0x2526a5){return _0x2b6123(_0x58899f,_0x438e52-0xdc,_0x438e52- -_0x55b4a5._0x198963,_0x2526a5-_0x55b4a5._0x1eef01);}function _0x5017eb(_0x154b91,_0xaf0c41,_0x1ccd62,_0x4e01d6){return _0x38c793(_0x4e01d6,_0xaf0c41-0xb3,_0x154b91- -0x266,_0x4e01d6-_0x1effaf._0x1ce0e0);}try{return await this[_0x4005bd(-0x22c,-_0x552d27._0x5b861b,-_0x552d27._0x40f28b,-0x129)](_0x146ba1,_0x2b4961);}catch(_0x11ee0a){if(_0x11ee0a instanceof OpenAiApiError)throw this[_0x4005bd(-_0x552d27._0x352f98,-0x222,-_0x552d27._0x23d668,-0x2b7)](_0x11ee0a);throw _0x11ee0a;}}async[_0x2b6123(0x29f,0x3eb,0x32c,0x3ea)](_0x2c8891,_0x470f0e){const _0xb1b118={_0x55840a:0x347,_0xb61f2b:0x2f8,_0x3a6da6:0x34f,_0x2d241d:0x33d,_0x5bd141:0x3f9,_0x67aa35:0x430,_0x4d9b2c:0x2f5,_0x317ef8:0x36f,_0x1a43df:0x2c6,_0x54f61b:0x219,_0x260075:0x232,_0x1a3c7e:0x3b9,_0x262d9e:0x25c,_0x28849e:0x36d,_0x5b5c64:0x287},_0xea3dad={_0x4bea7b:0x1a6};function _0x17f3b3(_0x56de9b,_0x5700bb,_0x46cd81,_0x2a06d1){return _0x2b6123(_0x2a06d1,_0x5700bb-_0xea3dad._0x4bea7b,_0x5700bb- -0x12e,_0x2a06d1-0x1c2);}function _0x25d4d7(_0x81adb5,_0x7072c7,_0x1d84a7,_0x3b8088){return _0x38c793(_0x81adb5,_0x7072c7-0x118,_0x1d84a7- -0xb2,_0x3b8088-0x127);}try{let _0x4aef20;for await(const _0x2cb0f5 of this[_0x25d4d7(_0xb1b118._0x55840a,_0xb1b118._0xb61f2b,_0xb1b118._0x3a6da6,0x359)](_0x2c8891,_0x470f0e)){_0x2cb0f5[_0x25d4d7(0x369,0x3a7,_0xb1b118._0x2d241d,_0xb1b118._0x5bd141)]===_0x25d4d7(_0xb1b118._0x67aa35,_0xb1b118._0x4d9b2c,_0xb1b118._0x317ef8,0x2fc)&&(_0x4aef20=_0x2cb0f5[_0x17f3b3(_0xb1b118._0x1a43df,_0xb1b118._0x54f61b,0x2dd,_0xb1b118._0x260075)]);}if(!_0x4aef20)throw new Error(_0x25d4d7(0x37d,0x440,_0xb1b118._0x1a3c7e,0x2ef));return _0x4aef20;}catch(_0x4809b8){if(_0x4809b8 instanceof OpenAiApiError)throw this[_0x25d4d7(_0xb1b118._0x262d9e,_0xb1b118._0x28849e,0x305,_0xb1b118._0x5b5c64)](_0x4809b8);throw _0x4809b8;}}async*[_0x38c793(0x34e,0x4a9,0x40c,0x44c)](_0x3194b8,_0x501c19){const _0xcf3e97={_0x107c3d:0x517,_0xfc39ea:0x5aa},_0x57fcc6={_0x1f62b3:0x100},_0x243149={_0x21c5c3:0xe4,_0x35f296:0x7f};function _0x2f3f9e(_0x568393,_0x12d0d8,_0x25b268,_0x10c55e){return _0x38c793(_0x10c55e,_0x12d0d8-_0x243149._0x21c5c3,_0x25b268-0x9a,_0x10c55e-_0x243149._0x35f296);}function _0x236d0b(_0x2de424,_0x311a8c,_0x23a566,_0x575fdd){return _0x2b6123(_0x2de424,_0x311a8c-_0x57fcc6._0x1f62b3,_0x575fdd-0x2ea,_0x575fdd-0x1f2);}try{yield*this[_0x2f3f9e(0x58f,_0xcf3e97._0x107c3d,0x4d3,0x44c)](_0x3194b8,_0x501c19);}catch(_0x3ff703){if(_0x3ff703 instanceof OpenAiApiError)throw this[_0x236d0b(0x541,_0xcf3e97._0xfc39ea,0x5d9,0x571)](_0x3ff703);throw _0x3ff703;}}async*['responseStream'](_0x13ed08,_0x26353b){const _0x65dc1c={_0x56ece3:0x396,_0x222242:0x3cb,_0x236e87:0x416,_0x1fe26a:0x2f1,_0x45b7b6:0x298,_0x5aad7a:0x350},_0x4de0ec={_0x1087a9:0x123,_0x263e5f:0xc9},_0x52d20a={_0x413517:0x102};function _0x35e6b3(_0x267b98,_0x45034b,_0x6109b4,_0x33d415){return _0x38c793(_0x6109b4,_0x45034b-0x135,_0x45034b- -0x474,_0x33d415-_0x52d20a._0x413517);}function _0xee52d8(_0x2c1e54,_0x4bfa34,_0x46b501,_0x307928){return _0x2b6123(_0x46b501,_0x4bfa34-_0x4de0ec._0x1087a9,_0x307928-_0x4de0ec._0x263e5f,_0x307928-0x191);}try{yield*this[_0xee52d8(0x380,0x3e6,_0x65dc1c._0x56ece3,_0x65dc1c._0x222242)](_0x13ed08,_0x26353b);}catch(_0x55943d){if(_0x55943d instanceof OpenAiApiError)throw this[_0xee52d8(_0x65dc1c._0x236e87,_0x65dc1c._0x1fe26a,_0x65dc1c._0x45b7b6,_0x65dc1c._0x5aad7a)](_0x55943d);throw _0x55943d;}}async*[_0x38c793(0x3d6,0x353,0x401,0x42e)](_0x4ade3e,_0x342aad){const _0x589e59={_0x14fb85:0x108},_0x19a5fe={_0x16e3af:0x10};function _0x4abf6f(_0x4ce74d,_0x337523,_0x941321,_0x18c251){return _0x2b6123(_0x4ce74d,_0x337523-_0x19a5fe._0x16e3af,_0x941321- -0x3ff,_0x18c251-0x12d);}try{yield*this[_0x4abf6f(0x1a,-_0x589e59._0x14fb85,-0x7e,-0x134)](_0x4ade3e,_0x342aad);}catch(_0x5e01d1){if(_0x5e01d1 instanceof OpenAiApiError)throw this['mapApiError'](_0x5e01d1);throw _0x5e01d1;}}[_0x2b6123(0x347,0x2e2,0x315,0x2d4)](_0x550485,_0xb25c68){const _0x18c503={_0x5c5edc:0x11a,_0x1089a4:0x16d,_0x2d593a:0x126},_0x295bb6={_0x33f879:0xad,_0x1415a9:0x419};function _0x2892e6(_0x2667d7,_0x27fde9,_0x210eec,_0x373836){return _0x2b6123(_0x210eec,_0x27fde9-_0x295bb6._0x33f879,_0x27fde9- -_0x295bb6._0x1415a9,_0x373836-0x2a);}return this[_0x2892e6(-0x95,-_0x18c503._0x5c5edc,-_0x18c503._0x1089a4,-_0x18c503._0x2d593a)](_0x550485,_0xb25c68);}['stream'](_0x3ba7e0,_0x4a60a6){return this['chatStream'](_0x3ba7e0,_0x4a60a6);}['getResponsesSocketSessionState'](_0x2bf737){const _0x3251ea={_0x5a444a:0x411,_0x71d8bb:0x454,_0x5e80f1:0x50f,_0x6df0b5:0x456,_0x13a449:0x4c3,_0xfe81a4:0x44,_0x9a39b4:0x1a,_0x4d1a41:0xfb,_0x16b86e:0x506,_0x58ada7:0x598,_0x5e45ac:0xbf},_0x558ac6={_0x51cebd:0xb0,_0x3dcdbe:0x3f8},_0x482925={_0x567cfd:0xc5,_0x18f402:0x1f7,_0x210b23:0xf6},_0x376a33=this[_0x5d1919(_0x3251ea._0x5a444a,0x4fb,0x3ad,_0x3251ea._0x71d8bb)](_0x2bf737);function _0x5d1919(_0x4266e8,_0x3721f9,_0x5a0f16,_0x10fdfd){return _0x2b6123(_0x3721f9,_0x3721f9-_0x482925._0x567cfd,_0x10fdfd-_0x482925._0x18f402,_0x10fdfd-_0x482925._0x210b23);}let _0x1c7803=_OpenAiModel[_0x5d1919(0x46e,_0x3251ea._0x5e80f1,_0x3251ea._0x6df0b5,_0x3251ea._0x13a449)][_0x420d38(0x35,-_0x3251ea._0xfe81a4,-_0x3251ea._0x9a39b4,-_0x3251ea._0x4d1a41)](_0x376a33);!_0x1c7803&&(_0x1c7803={'pending':Promise[_0x5d1919(0x640,_0x3251ea._0x16b86e,0x4f5,_0x3251ea._0x58ada7)]()},_OpenAiModel[_0x420d38(-_0x3251ea._0x5e45ac,0x4,-0xc,-0x23)]['set'](_0x376a33,_0x1c7803));function _0x420d38(_0x29a535,_0x356cda,_0x5dcc40,_0x4fe03c){return _0x38c793(_0x29a535,_0x356cda-_0x558ac6._0x51cebd,_0x356cda- -_0x558ac6._0x3dcdbe,_0x4fe03c-0x30);}return _0x1c7803;}['getResponsesSocketSessionKey'](_0x2d414b){const _0x32f594={_0x467629:0x1d7,_0x56efe9:0x1a6},_0x271ff6={_0x2663b2:0x154,_0x410537:0x1c2},_0x31c64f={_0x74716d:0xfc};function _0x10d889(_0x166df4,_0x357a4a,_0x2ca025,_0x2b2fb3){return _0x2b6123(_0x357a4a,_0x357a4a-0x1df,_0x2ca025- -0x2e9,_0x2b2fb3-_0x31c64f._0x74716d);}function _0x3e97b6(_0x6bdb44,_0x38aba1,_0x597f4e,_0x30a105){return _0x2b6123(_0x30a105,_0x38aba1-_0x271ff6._0x2663b2,_0x38aba1- -_0x271ff6._0x410537,_0x30a105-0x38);}return''+trimTrailingSlashes(this[_0x3e97b6(0x127,_0x32f594._0x467629,0x210,_0x32f594._0x56efe9)])+this[_0x3e97b6(0x198,0x141,0x12b,0x1ca)]+'::'+_0x2d414b;}async[_0x2b6123(0x3e8,0x351,0x337,0x31e)](_0x274863){const _0x3667fc={_0x586f48:0x196,_0x90712c:0xa8,_0x563a46:0x71,_0x3625b4:0x21,_0x42a1d6:0x3c,_0x5b7950:0xd0,_0xc7eba7:0xad,_0x5e1b2c:0x2df,_0x5bed4b:0x28b},_0x197f76={_0x2e72d4:0x2e},_0x5b5515={_0xe49f4e:0x58,_0x386fb5:0x167},_0x19cd03=_0x274863[_0x1f4151(_0x3667fc._0x586f48,0x172,0xd0,0x10e)][_0x1f4151(_0x3667fc._0x90712c,-_0x3667fc._0x563a46,-_0x3667fc._0x3625b4,0x44)](()=>{});let _0x4e681a;function _0x1b33ac(_0x615459,_0x19398b,_0x5b5d03,_0x4c62b3){return _0x2b6123(_0x615459,_0x19398b-0x1a3,_0x5b5d03- -_0x5b5515._0xe49f4e,_0x4c62b3-_0x5b5515._0x386fb5);}function _0x1f4151(_0x355864,_0x3caf2c,_0x3b7b79,_0x3db1fe){return _0x2b6123(_0x3caf2c,_0x3caf2c-_0x197f76._0x2e72d4,_0x3b7b79- -0x2bf,_0x3db1fe-0x1f1);}const _0xff8d20=new Promise(_0x3f8630=>{_0x4e681a=_0x3f8630;});return _0x274863[_0x1f4151(0xfd,_0x3667fc._0x42a1d6,_0x3667fc._0x5b7950,_0x3667fc._0xc7eba7)]=_0x19cd03[_0x1b33ac(_0x3667fc._0x5e1b2c,0x2f7,_0x3667fc._0x5bed4b,0x2e8)](()=>_0xff8d20),await _0x19cd03,()=>{_0x4e681a?.();};}async[_0x2b6123(0x32d,0x234,0x28c,0x248)](_0x2c9084,_0x33402d){const _0x3ed171={_0x42d5ce:0x9b,_0x7c8315:0xfd,_0xea056d:0x1b7,_0x1a9f6c:0x2eb,_0x54903a:0x30d,_0x3be3bb:0x212,_0x192b33:0x185,_0x2faf77:0x104,_0x209b9b:0x117,_0x2dfc47:0x13f,_0xa68bff:0x1f4,_0x4fb14f:0x250,_0x148a7e:0x263,_0x18abaf:0x23d,_0x4b2947:0x23e,_0x1b35a4:0x34,_0x761769:0xf0,_0x3c3f94:0x19e,_0x265317:0x13f,_0x42f715:0x1d9,_0x5cb984:0xd0,_0x502d21:0xd4,_0x318fa7:0x152,_0x33e0c3:0xa6},_0x192ee3={_0x36815f:0x1d2},_0x237bea={_0x27fe17:0x432,_0x433558:0x156},_0x38456e=this[_0x51dbec(-_0x3ed171._0x42d5ce,-_0x3ed171._0x7c8315,-_0x3ed171._0xea056d,-0x16d)](_0x2c9084);function _0x51dbec(_0xcf8b0f,_0x49e083,_0x4e2490,_0x120081){return _0x2b6123(_0x4e2490,_0x49e083-0x1b0,_0x49e083- -_0x237bea._0x27fe17,_0x120081-_0x237bea._0x433558);}const _0x18cb16=toModelRequest(_0x38456e),_0x4d4cf6=await prepareProviderRequest(_0x18cb16,{'sessionManager':this[_0x226b10(0x37c,0x327,0x2a9,_0x3ed171._0x1a9f6c)],'requestMutators':this[_0x226b10(_0x3ed171._0x54903a,_0x3ed171._0x3be3bb,0x199,0x24d)],'signal':_0x33402d}),_0x11b805=toChatRequest(_0x4d4cf6[_0x51dbec(-0xdb,-_0x3ed171._0x192b33,-_0x3ed171._0x2faf77,-_0x3ed171._0x209b9b)]),_0x270163=this[_0x51dbec(-_0x3ed171._0x2dfc47,-_0x3ed171._0xa68bff,-0x15f,-0x1ff)]['resolveCredential'](this[_0x226b10(_0x3ed171._0x4fb14f,_0x3ed171._0x148a7e,_0x3ed171._0x18abaf,_0x3ed171._0x4b2947)],_0x4d4cf6[_0x51dbec(-0xcd,-0xa6,-_0x3ed171._0x1b35a4,-_0x3ed171._0x761769)]);if(!_0x270163)throw this['createMissingCredentialError']();function _0x226b10(_0x36f4bf,_0x3c2157,_0x25ea36,_0x142893){return _0x2b6123(_0x36f4bf,_0x3c2157-_0x192ee3._0x36815f,_0x142893- -0xc9,_0x142893-0x9);}return{'baseUrl':this[_0x51dbec(-_0x3ed171._0x3c3f94,-0x1f4,-_0x3ed171._0x265317,-_0x3ed171._0x42f715)][_0x226b10(0x213,0x366,0x2ed,0x2c2)](this['baseUrl'],_0x4d4cf6[_0x51dbec(-_0x3ed171._0x5cb984,-0xa6,-0x54,-_0x3ed171._0x502d21)]),'credential':_0x270163,'request':_0x11b805,'session':_0x4d4cf6[_0x51dbec(-_0x3ed171._0x318fa7,-_0x3ed171._0x33e0c3,-0x37,-0xa0)]};}['buildResponsesSocketEvent'](_0x17a737,_0xe88407,_0x2fa0f6={}){const _0x4f6ab3={_0x916cc2:0x1d6,_0x1bfd2b:0x13e,_0x5eb868:0xf3,_0x5e15c2:0xc6,_0xe80708:0x10e,_0x3dcf2a:0x98,_0xab362d:0xa9,_0x585e1a:0x51,_0x10b5ca:0x589,_0x781224:0x4f8},_0x67d597={_0x1837d7:0x48},_0x1ed7df={_0xae459a:0x115,_0xb82045:0x17e};function _0x5245b1(_0x48b0dd,_0x2865f1,_0x5a35f8,_0x1a7746){return _0x38c793(_0x5a35f8,_0x2865f1-_0x1ed7df._0xae459a,_0x2865f1-0x18c,_0x1a7746-_0x1ed7df._0xb82045);}function _0x34c736(_0x2443e9,_0x539070,_0x156f29,_0x112a41){return _0x2b6123(_0x2443e9,_0x539070-_0x67d597._0x1837d7,_0x156f29- -0x207,_0x112a41-0x40);}if(!_0x2fa0f6[_0x34c736(0x1cc,_0x4f6ab3._0x916cc2,0x12c,0x104)]){const _0x899aef=this['findResponsesSocketCheckpoint'](_0x17a737);if(_0x899aef&&_0xe88407[_0x34c736(0xe1,0xc9,_0x4f6ab3._0x1bfd2b,0xd2)]&&_0x899aef[_0x34c736(_0x4f6ab3._0x5eb868,0xb0,_0x4f6ab3._0x5e15c2,0x47)]===_0xe88407[_0x34c736(_0x4f6ab3._0xe80708,_0x4f6ab3._0x3dcf2a,_0x4f6ab3._0x1bfd2b,0xc9)]){const _0x4c9bd9=toOpenAiResponsesRequest({..._0x17a737,'messages':_0x17a737['messages']['slice'](_0x899aef[_0x34c736(0x1e,-0x8,_0x4f6ab3._0xab362d,_0x4f6ab3._0x585e1a)]+0x1)})['input'];return{'event':createOpenAiResponsesWebSocketEvent(_0x17a737,{'input':_0x4c9bd9,'previousResponseId':_0x899aef[_0x5245b1(0x5eb,_0x4f6ab3._0x10b5ca,0x502,_0x4f6ab3._0x781224)]}),'previousResponseId':_0x899aef['responseId']};}}return{'event':createOpenAiResponsesWebSocketEvent(_0x17a737)};}['findResponsesSocketCheckpoint'](_0x2d2408){const _0x155e4a={_0x48c7d8:0x579,_0x417c40:0x50d,_0x1406d2:0x179,_0xd1d598:0x1d,_0x4ae022:0xb7,_0x5329c2:0x12e,_0x21787f:0x60a,_0x2a322d:0x6a8,_0x4cbd39:0x648,_0xeeacf1:0x108,_0x4fc7df:0x12,_0x42d6b8:0x66},_0x581ecc={_0x3975a6:0xfd,_0x3c09dc:0x1e8},_0x58420b={_0x176421:0x196,_0x4679a6:0x2da,_0x5c49ea:0x1dd};function _0x4d3f1f(_0xc0cb94,_0xe4a832,_0x1861ad,_0x37cab5){return _0x2b6123(_0xe4a832,_0xe4a832-_0x58420b._0x176421,_0x1861ad-_0x58420b._0x4679a6,_0x37cab5-_0x58420b._0x5c49ea);}for(let _0x31c155=_0x2d2408[_0x4d3f1f(0x5a3,0x58e,_0x155e4a._0x48c7d8,_0x155e4a._0x417c40)][_0x2b163f(0x110,0xb3,_0x155e4a._0x1406d2,0x157)]-0x1;_0x31c155>=0x0;_0x31c155-=0x1){const _0x5035d2=_0x2d2408[_0x2b163f(_0x155e4a._0xd1d598,_0x155e4a._0x4ae022,_0x155e4a._0x5329c2,0xf6)][_0x31c155],_0x11f471=_0x5035d2[_0x4d3f1f(0x640,_0x155e4a._0x21787f,0x5f5,0x581)]===_0x4d3f1f(_0x155e4a._0x2a322d,0x623,_0x155e4a._0x4cbd39,0x6b1)?_0x5035d2[_0x4d3f1f(0x621,0x6cc,0x67a,0x6a6)]?.[_0x2b163f(_0x155e4a._0xeeacf1,0x7a,_0x155e4a._0x4fc7df,_0x155e4a._0x42d6b8)]:void 0x0;if(_0x11f471)return{'messageIndex':_0x31c155,'responseId':_0x11f471};}function _0x2b163f(_0x343dc7,_0x4c65f1,_0x17f92a,_0x319976){return _0x2b6123(_0x319976,_0x4c65f1-_0x581ecc._0x3975a6,_0x4c65f1- -_0x581ecc._0x3c09dc,_0x319976-0x67);}return void 0x0;}[_0x2b6123(0x30b,0x306,0x25e,0x1ee)](_0x743ffc){const _0x360730={_0x3de556:0x43e,_0x135adb:0x458,_0x5c5598:0x4bb,_0x4b0f24:0x40b,_0x292c36:0x415,_0x4c8e3d:0x379,_0x51898c:0x41a,_0x1f9d33:0x4dc,_0x4ed48d:0x458},_0xead5d7={_0x42e203:0xc3,_0x19ecf1:0xb7},_0x512958={_0x182f44:0xb0};function _0x2a493e(_0x5258ae,_0x30f73b,_0x584804,_0xb4fbd1){return _0x38c793(_0x584804,_0x30f73b-0x3d,_0x5258ae- -_0x512958._0x182f44,_0xb4fbd1-0x11c);}function _0x4fa5d7(_0x4b8be4,_0x1dfede,_0x3cec30,_0x30dd43){return _0x38c793(_0x1dfede,_0x1dfede-0xed,_0x30dd43- -_0xead5d7._0x42e203,_0x30dd43-_0xead5d7._0x19ecf1);}return _0x743ffc instanceof OpenAiResponsesStreamError&&(_0x743ffc[_0x2a493e(_0x360730._0x3de556,_0x360730._0x135adb,_0x360730._0x5c5598,0x441)]===_0x4fa5d7(_0x360730._0x4b0f24,_0x360730._0x292c36,0x3f7,_0x360730._0x4c8e3d)||_0x743ffc['code']===_0x2a493e(_0x360730._0x51898c,0x46b,_0x360730._0x1f9d33,_0x360730._0x4ed48d));}[_0x2b6123(0x3b7,0x2e2,0x339,0x2d9)](_0x228260){const _0x3e9a2c={_0x57555d:0x396,_0x5095e5:0x374,_0x2b1ce8:0x395,_0x1bf09a:0x392,_0x44c387:0x143,_0x29c009:0x18e,_0x1a74a6:0x65,_0x1e736f:0x135,_0x44f3c6:0x8b,_0x276008:0x4c5,_0x554683:0x54f,_0x5562c6:0x3b8,_0x3d9617:0x335,_0x519a1b:0x3ed},_0x5cd15f=_0x228260[_0x1d6758(0x11f,0x71,0x58,0x1d)];_0x228260[_0x15aa62(0x439,0x38a,_0x3e9a2c._0x57555d,_0x3e9a2c._0x5095e5)]=void 0x0,_0x228260[_0x15aa62(_0x3e9a2c._0x2b1ce8,0x3f3,0x360,_0x3e9a2c._0x1bf09a)]=void 0x0,_0x228260[_0x1d6758(0x1d6,_0x3e9a2c._0x44c387,0x17a,_0x3e9a2c._0x29c009)]=void 0x0;function _0x15aa62(_0x22dee8,_0x130b2d,_0x5e005f,_0xfdecf6){return _0x38c793(_0x130b2d,_0x130b2d-0x20,_0xfdecf6- -0x2f,_0xfdecf6-0x15f);}function _0x1d6758(_0x5a7894,_0x5c90a4,_0x8789ca,_0x344f13){return _0x38c793(_0x8789ca,_0x5c90a4-0x143,_0x5c90a4- -0x332,_0x344f13-0xba);}_0x5cd15f?.[_0x1d6758(_0x3e9a2c._0x1a74a6,0xb2,_0x3e9a2c._0x1e736f,_0x3e9a2c._0x44f3c6)]===WebSocket[_0x15aa62(_0x3e9a2c._0x276008,0x405,_0x3e9a2c._0x554683,0x48b)]&&_0x5cd15f[_0x15aa62(_0x3e9a2c._0x5562c6,_0x3e9a2c._0x3d9617,_0x3e9a2c._0x519a1b,0x3d6)](0x3e8,'reset');}async[_0x2b6123(0x334,0x2e0,0x394,0x3f3)](_0x355c22,_0x2a626a,_0x300f4a,_0x164712,_0xd182d1){const _0x2453c6={_0x22aeea:0x116,_0x3f76f2:0xec,_0x5b156f:0xcc,_0x5d823e:0x33,_0x2e8dca:0x60,_0x1756d1:0x15,_0x3d4556:0x92,_0x5034bd:0x1c5,_0x2903b9:0x16b,_0x5012d3:0x1e5,_0x1d9b26:0x78,_0x116b47:0x11,_0x5abda2:0xc3,_0x40a723:0x114,_0x6172b3:0x288},_0x27ffb3={_0x3df91c:0x1a5,_0x3b38c1:0x107,_0x1a606b:0x110,_0x5c7902:0x1e,_0x212de6:0x4a,_0x2e3fb6:0x207,_0x3ef11e:0x2c4,_0x4e74b8:0x3e,_0x1ea86c:0x40,_0xdc62a1:0x19,_0x48999a:0xc7,_0x31647f:0xbd,_0x5f5b97:0x101,_0x527068:0x64,_0x2adaa1:0x36e,_0x42c4dd:0x2af,_0x2dc7c6:0x1eb,_0xd09ef5:0x1cd,_0x17fd8f:0x36,_0x5b7749:0x4f,_0x3a54ed:0x276,_0x469223:0x215,_0x1c7f30:0x1b5,_0x17b645:0x1fd,_0x535f4a:0x22c,_0x3466e5:0x2ca,_0x3b110c:0x260,_0x283b0c:0x393,_0x5369a0:0x29,_0x8ee6c8:0x233,_0x4dfe1b:0x5c},_0xb703dc={_0x151b8a:0x1ed,_0x1eb0da:0x31},_0x5b3746={_0x4e6a01:0x1c5,_0x471dbf:0x206,_0xe36390:0x1f0,_0x2ae086:0x1dd},_0x5679fa={_0x5e5567:0x456,_0x4f3b62:0x11},_0x62c2b={_0x20fe68:0x47,_0x1b0d64:0x6f};function _0x2be7d6(_0x202bbe,_0x5a6123,_0x56fd63,_0x189fc6){return _0x2b6123(_0x189fc6,_0x5a6123-_0x62c2b._0x20fe68,_0x56fd63- -0x280,_0x189fc6-_0x62c2b._0x1b0d64);}if(_0x2a626a['socket']?.[_0x2f1ca8(-0x107,-0x1cb,-0x1a2,-_0x2453c6._0x22aeea)]===WebSocket[_0x2f1ca8(-_0x2453c6._0x3f76f2,-0x9c,-_0x2453c6._0x5b156f,-_0x2453c6._0x5d823e)])return _0x2a626a[_0x2be7d6(-_0x2453c6._0x2e8dca,0x2,-0xd,-_0x2453c6._0x1756d1)];if(_0x2a626a[_0x2be7d6(-0xb2,_0x2453c6._0x3d4556,0x11,0x12)])return await _0x2a626a[_0x2f1ca8(-0x1f7,-0x145,-_0x2453c6._0x5034bd,-0x1dc)];function _0x2f1ca8(_0x3d28d9,_0x47bac8,_0x5d12db,_0x2e7e97){return _0x2b6123(_0x3d28d9,_0x47bac8-0x1d4,_0x5d12db- -_0x5679fa._0x5e5567,_0x2e7e97-_0x5679fa._0x4f3b62);}_0x2a626a[_0x2f1ca8(-_0x2453c6._0x2903b9,-0x1b5,-0x1c5,-_0x2453c6._0x5012d3)]=((async()=>{const _0x2f3fc3={_0x4329f6:0x378,_0x2c73c9:0x13c},_0x6410f4={_0x5ba6b1:0x125,_0x1cc35f:0x1ae,_0x1be542:0x1c0},_0x29f6f0=await this[_0x240efe(0x248,_0x27ffb3._0x3df91c,0x235,0x26a)]({'request':_0x300f4a[_0x39371e(-_0x27ffb3._0x3b38c1,-_0x27ffb3._0x1a606b,_0x27ffb3._0x5c7902,-_0x27ffb3._0x212de6)],'body':_0x164712,'credential':_0x300f4a[_0x240efe(_0x27ffb3._0x2e3fb6,_0x27ffb3._0x3ef11e,0x384,0x23e)],'session':_0x300f4a['session'],'stream':!![]},{'accept':'application/json','includeContentType':![]});_0x29f6f0[_0x39371e(-0xa,-_0x27ffb3._0x4e74b8,_0x27ffb3._0x1ea86c,_0x27ffb3._0xdc62a1)](_0x39371e(-0x38,_0x27ffb3._0x48999a,_0x27ffb3._0x31647f,0x29));const _0x6137de=this['webSocketFactory']({'headers':Object[_0x39371e(0x18,_0x27ffb3._0x5f5b97,0xfb,_0x27ffb3._0x527068)](_0x29f6f0['entries']()),'url':(''+_0x300f4a[_0x240efe(0x36e,0x2d9,0x277,_0x27ffb3._0x2adaa1)]+this['responsesPath'])['replace'](/^http:/,'ws:')[_0x240efe(_0x27ffb3._0x42c4dd,0x270,_0x27ffb3._0x2dc7c6,_0x27ffb3._0xd09ef5)](/^https:/,'wss:')});function _0x240efe(_0x5f1de0,_0x1e8b52,_0x1058e6,_0x4ca565){return _0x2be7d6(_0x5f1de0-_0x6410f4._0x5ba6b1,_0x1e8b52-_0x6410f4._0x1cc35f,_0x1e8b52-_0x6410f4._0x1be542,_0x4ca565);}const _0x37e1ca=()=>{const _0x16dc02={_0x1284fd:0xd7};function _0x3ff33c(_0x4dd804,_0x285df2,_0x2388d6,_0x4cb91d){return _0x39371e(_0x2388d6,_0x285df2-_0x16dc02._0x1284fd,_0x2388d6-0x105,_0x4cb91d-0x8c);}function _0x3a2e35(_0x537e5b,_0x5d81b6,_0x32b1de,_0x34d9da){return _0x240efe(_0x537e5b-0x147,_0x5d81b6- -_0x2f3fc3._0x4329f6,_0x32b1de-_0x2f3fc3._0x2c73c9,_0x32b1de);}_0x2a626a[_0x3a2e35(-0x230,-_0x5b3746._0x4e6a01,-_0x5b3746._0x471dbf,-0x19b)]===_0x6137de&&(_0x2a626a[_0x3a2e35(-_0x5b3746._0xe36390,-_0x5b3746._0x4e6a01,-0x1ec,-_0x5b3746._0x2ae086)]=void 0x0,_0x2a626a['lastResponseId']=void 0x0);};_0x6137de[_0x39371e(0x3c,_0x27ffb3._0x17fd8f,-0x8,-_0x27ffb3._0x5b7749)](_0x240efe(_0x27ffb3._0x3a54ed,_0x27ffb3._0x469223,_0x27ffb3._0x1c7f30,_0x27ffb3._0x17b645),_0x37e1ca);function _0x39371e(_0x51b182,_0x499816,_0x5296c0,_0x687a28){return _0x2be7d6(_0x51b182-_0xb703dc._0x151b8a,_0x499816-_0xb703dc._0x1eb0da,_0x687a28- -0x77,_0x51b182);}try{return throwIfAborted(_0xd182d1),_0x6137de['readyState']!==WebSocket[_0x240efe(_0x27ffb3._0x535f4a,_0x27ffb3._0x3466e5,_0x27ffb3._0x3b110c,_0x27ffb3._0x283b0c)]&&await waitForWebSocketOpen(_0x6137de,_0xd182d1),throwIfAborted(_0xd182d1),_0x2a626a[_0x39371e(0x47,-0x117,_0x27ffb3._0x5369a0,-0x84)]=_0x6137de,_0x6137de;}catch(_0x2bac16){_0x37e1ca();_0x6137de[_0x240efe(0x224,0x1f4,0x273,0x155)]===WebSocket[_0x240efe(_0x27ffb3._0x8ee6c8,0x2ca,0x312,0x292)]&&_0x6137de['close'](0x3e8,_0x39371e(-0x8c,0x18,_0x27ffb3._0x4dfe1b,0x38));throw _0x2bac16;}})());try{return await _0x2a626a[_0x2be7d6(0x3e,_0x2453c6._0x1d9b26,_0x2453c6._0x116b47,_0x2453c6._0x5abda2)];}finally{_0x2a626a[_0x2f1ca8(-_0x2453c6._0x40a723,-_0x2453c6._0x6172b3,-0x1c5,-0x256)]=void 0x0;}}async*[_0x2b6123(0x329,0x348,0x381,0x2fe)](_0x4e6134,_0x45fd0d){const _0xffe19d={_0x581014:0x113,_0x4a2689:0x2e,_0x2a98b0:0xa,_0x58a764:0x2d,_0x2da71d:0x42,_0x489d91:0x45,_0x46e6f7:0xc9,_0x2e27c1:0x202,_0x482e63:0x274,_0x128b31:0x3bc,_0x1f3907:0x2e,_0x30c48e:0x4,_0x3f6649:0x2c6,_0xde146:0x14c,_0x5a7c39:0x7b,_0x5de4f5:0x311,_0x1bec1f:0x274,_0x512c7b:0x1ad,_0x5daa0e:0x2ee,_0xcf0af6:0x262,_0x1f900e:0x273,_0x4f65aa:0x2e6,_0x17ab6b:0x36b,_0x3c7558:0x34e,_0x3aa07a:0x37d,_0x37bb46:0x392,_0xfaca53:0x81,_0x1a1863:0xd8,_0x53a2f2:0x323,_0x122df5:0x103,_0x3d28f5:0x129,_0x49793a:0x21,_0x4b1296:0x10,_0xa9db21:0x56},_0xb670d6={_0x3d23c5:0x5,_0x455d8a:0x15e},_0x55ee9a={_0xe6190c:0x10d,_0x40d546:0x2b8};function _0x265ec1(_0x3fc16e,_0x3d9913,_0x170980,_0x3c74b){return _0x2b6123(_0x170980,_0x3d9913-_0x55ee9a._0xe6190c,_0x3fc16e- -_0x55ee9a._0x40d546,_0x3c74b-0x16b);}const _0x1d8b0a=this[_0x265ec1(0x7d,_0xffe19d._0x581014,0x78,-_0xffe19d._0x4a2689)](_0x4e6134);function _0x310c5a(_0x1057bc,_0x3d9c29,_0x224eba,_0x115fd6){return _0x2b6123(_0x224eba,_0x3d9c29-_0xb670d6._0x3d23c5,_0x3d9c29-0x15,_0x115fd6-_0xb670d6._0x455d8a);}const _0x1d3924=this[_0x265ec1(-_0xffe19d._0x2a98b0,0x66,_0xffe19d._0x58a764,-_0xffe19d._0x2da71d)](_0x1d8b0a[_0x265ec1(0x103,_0xffe19d._0x489d91,0xde,_0xffe19d._0x46e6f7)][_0x310c5a(_0xffe19d._0x2e27c1,_0xffe19d._0x482e63,0x330,0x1c5)]),_0x4f3766=await this[_0x310c5a(0x39b,0x34c,0x301,_0xffe19d._0x128b31)](_0x1d3924);try{const _0x4292e7=this[_0x265ec1(-_0xffe19d._0x1f3907,-0x78,0x4f,_0xffe19d._0x30c48e)](_0x1d8b0a,_0x1d3924);try{yield*this[_0x310c5a(0x264,0x323,0x30a,_0xffe19d._0x3f6649)](_0x1d8b0a[_0x265ec1(0x103,_0xffe19d._0xde146,0x181,_0xffe19d._0x5a7c39)][_0x310c5a(_0xffe19d._0x5de4f5,_0xffe19d._0x1bec1f,_0xffe19d._0x512c7b,0x298)],_0x1d3924,_0x1d8b0a,_0x4292e7['event'],_0x45fd0d?.[_0x310c5a(0x329,_0xffe19d._0x5daa0e,0x35d,_0xffe19d._0xcf0af6)]);return;}catch(_0x8b6663){if(!_0x4292e7['previousResponseId']||!this[_0x310c5a(0x30f,_0xffe19d._0x1f900e,_0xffe19d._0x4f65aa,0x2cc)](_0x8b6663)){this[_0x310c5a(_0xffe19d._0x17ab6b,_0xffe19d._0x3c7558,_0xffe19d._0x3aa07a,_0xffe19d._0x37bb46)](_0x1d3924);throw _0x8b6663;}}this[_0x265ec1(_0xffe19d._0xfaca53,0x71,_0xffe19d._0x1a1863,0x10f)](_0x1d3924);const _0x2f5a47=this[_0x265ec1(-0x2e,0x3,0x90,-0x61)](_0x1d8b0a,_0x1d3924,{'forceFullReplay':!![]});yield*this[_0x310c5a(0x2c1,_0xffe19d._0x53a2f2,0x3a3,0x2ea)](_0x1d8b0a[_0x265ec1(_0xffe19d._0x122df5,_0xffe19d._0x3d28f5,0x105,0x12f)]['sessionId'],_0x1d3924,_0x1d8b0a,_0x2f5a47['event'],_0x45fd0d?.[_0x265ec1(_0xffe19d._0x49793a,-_0xffe19d._0x4b1296,-0x60,-_0xffe19d._0xa9db21)]);}finally{_0x4f3766();}}async*['streamViaResponsesSocketAttempt'](_0x4cdd30,_0x128bd2,_0x207285,_0x477492,_0x10aa69){const _0x4f6f34={_0x27cfcc:0x63,_0x2cae42:0x351,_0xc246e4:0x3c3,_0x2c558c:0x85,_0x5c6a3b:0x31,_0x3f5617:0x1c0,_0x55fa79:0x1c6,_0x315c87:0x1ea,_0x3ff53f:0x16a,_0x1a3340:0x24b,_0x22b55b:0x21b,_0x4752ab:0x2ac,_0x504166:0x15e,_0x2fc71d:0x6d,_0x54d817:0xd3,_0x37906f:0x15b,_0x2ee9c8:0x40,_0x36f8b5:0x43,_0x57a673:0x3f,_0x14d0a0:0x46,_0x2f68a1:0x4c,_0x486dbb:0x16c,_0x1a752b:0x12e,_0x79e0aa:0x15,_0x141d8f:0x1c,_0x4272b2:0x2ae,_0x5bfa7b:0x318},_0xc27a93={_0x2b1c88:0x5b},_0x5e0581={_0x3fa491:0x1cb,_0x20ae88:0x361},_0x305327=await this[_0x31f7b2(-0x3c,-0x192,-0xd5,-_0x4f6f34._0x27cfcc)](_0x207285,_0x10aa69),_0x23d12c=await this[_0x29acd4(0x2da,_0x4f6f34._0x2cae42,0x35e,_0x4f6f34._0xc246e4)](_0x4cdd30,_0x128bd2,_0x305327,_0x477492,_0x10aa69);function _0x31f7b2(_0x3f6657,_0x4107b9,_0xcd1f22,_0x36fe8d){return _0x2b6123(_0x36fe8d,_0x4107b9-_0x5e0581._0x3fa491,_0xcd1f22- -_0x5e0581._0x20ae88,_0x36fe8d-0xdb);}const _0xe43159=createOpenAiResponsesStreamParser(_0x207285);throwIfAborted(_0x10aa69),_0x23d12c[_0x31f7b2(-_0x4f6f34._0x2c558c,-_0x4f6f34._0x5c6a3b,-0xb5,-0xc8)](JSON[_0x29acd4(0x1b1,0x1fa,0x254,_0x4f6f34._0x3f5617)](_0x477492));for await(const _0x420e4f of iterateWebSocketMessages(_0x23d12c,_0x10aa69)){const _0x2a0d57=_0xe43159[_0x29acd4(_0x4f6f34._0x55fa79,_0x4f6f34._0x315c87,0x1b7,_0x4f6f34._0x3ff53f)]?.(_0x420e4f)??[];yield*_0x2a0d57;if(_0xe43159[_0x29acd4(0x2b2,_0x4f6f34._0x1a3340,_0x4f6f34._0x22b55b,_0x4f6f34._0x4752ab)]?.())break;}if(!_0xe43159[_0x31f7b2(-_0x4f6f34._0x504166,-_0x4f6f34._0x2fc71d,-_0x4f6f34._0x54d817,-_0x4f6f34._0x37906f)]?.())throw new Error('Responses\x20WebSocket\x20closed\x20before\x20response.completed');const _0x712e65=_0xe43159[_0x31f7b2(_0x4f6f34._0x2ee9c8,0x2b,0x2d,-0x40)](),_0x1755eb=_0x712e65[_0x31f7b2(0x2e,-_0x4f6f34._0x36f8b5,_0x4f6f34._0x57a673,-_0x4f6f34._0x14d0a0)]?.[_0x31f7b2(-_0x4f6f34._0x2f68a1,-_0x4f6f34._0x486dbb,-0xff,-_0x4f6f34._0x1a752b)]??_0x712e65['id'];_0x1755eb&&(_0x128bd2[_0x31f7b2(-0x57,-_0x4f6f34._0x79e0aa,-_0x4f6f34._0x141d8f,-0x3e)]=_0x1755eb);function _0x29acd4(_0x122a79,_0x115857,_0x53c0d8,_0x33d003){return _0x2b6123(_0x53c0d8,_0x115857-0xbe,_0x115857- -0x43,_0x33d003-_0xc27a93._0x2b1c88);}yield{'type':_0x29acd4(0x23d,_0x4f6f34._0x4272b2,_0x4f6f34._0x5bfa7b,0x35c),'response':_0x712e65};}},AVAILABLE_CHAT_MODEL_SURFACES=[_0x38c793(0x3fc,0x38e,0x3e7,0x3c8),'openai-chat-completions','openai-responses',_0x38c793(0x3eb,0x421,0x430,0x394)];function isAnthropicSurface(_0x5a0634){const _0x1576ba={_0x52289a:0x1c8,_0x348327:0x1aa},_0x21459e={_0x15b401:0x100,_0x3c9f0d:0x2c0};function _0x31582e(_0x14c060,_0x273ad4,_0x16fd98,_0x125862){return _0x38c793(_0x273ad4,_0x273ad4-_0x21459e._0x15b401,_0x14c060- -_0x21459e._0x3c9f0d,_0x125862-0x1e4);}return _0x5a0634===_0x31582e(0x127,_0x1576ba._0x52289a,0x1ca,_0x1576ba._0x348327);}function resolveDefaultBaseUrl(_0x1eec09){const _0x1dadf0={_0x95c94a:0x290,_0x95a7d1:0x257},_0x2d207b={_0x2205d2:0x144},_0x129ff0={_0xcefaf7:0x1a0,_0x44cd7a:0x4af,_0x43283c:0x18c};function _0x1002c8(_0x1bde65,_0x1f3cd0,_0x2368f4,_0x12ab64){return _0x38c793(_0x2368f4,_0x1f3cd0-_0x129ff0._0xcefaf7,_0x1f3cd0- -_0x129ff0._0x44cd7a,_0x12ab64-_0x129ff0._0x43283c);}function _0x22e403(_0x18914d,_0x40824b,_0x3cafef,_0x5aae88){return _0x38c793(_0x5aae88,_0x40824b-0xcd,_0x18914d- -_0x2d207b._0x2205d2,_0x5aae88-0x138);}return isAnthropicSurface(_0x1eec09)?_0x22e403(0x244,0x194,0x1ab,_0x1dadf0._0x95c94a):_0x22e403(0x25a,0x211,0x2c0,_0x1dadf0._0x95a7d1);}var ChatModel=class{[_0x38c793(0x515,0x52d,0x4ac,0x3e3)];[_0x38c793(0x34d,0x3ab,0x39f,0x3b6)];[_0x2b6123(0x1ce,0x20d,0x23c,0x1fc)];['anthropicDelegate'];[_0x2b6123(0x330,0x442,0x3b0,0x36f)];constructor(_0x30b71a={}){const _0x1b46d2={_0x5396ce:0x252,_0xf27461:0x2b9,_0x1d8281:0x29c,_0x5342c2:0xe1,_0x233aae:0xbd,_0x235d87:0x156,_0x1715f7:0x59a,_0x515fdc:0x4fe,_0xeac540:0x4fc,_0x3f1693:0x470,_0x47d2f7:0x53c,_0x1e2f21:0x5c4,_0x5ea4ce:0x1cf,_0x5d5c9a:0x211,_0x542232:0x4bd,_0xaccd80:0x4da,_0x57198d:0x1a5,_0x36154d:0x28e,_0x488ce5:0x263,_0xa4d346:0x1e4,_0x3d6f88:0x225,_0x10b082:0x65f,_0x28ed21:0x5c7,_0x17995f:0x5c5,_0x3a46c0:0x646,_0x41f71e:0x60f,_0x240a2c:0x1a1,_0x2985e5:0x91,_0x46035d:0x6ca,_0x3b8319:0x67d,_0x5464b6:0x63c,_0x5c830f:0xb4,_0x18daf7:0x137,_0x47863e:0x5bc,_0x5d39db:0x56e,_0x1aad3b:0x5d6,_0x211e71:0x696,_0x20140f:0x2c5,_0x5b4067:0x248},_0x477f29={_0x209338:0x6,_0xa1eaa3:0x249},_0x3c5c6e={_0x534ea5:0x64,_0x5298c1:0x2c0};this['model']=_0x30b71a[_0x2c9f34(0x2a8,0x1f3,_0x1b46d2._0x5396ce,0x263)]??_0x2c9f34(_0x1b46d2._0xf27461,_0x1b46d2._0x1d8281,0x26b,0x279),this[_0x2c9f34(_0x1b46d2._0x5342c2,0x1a6,_0x1b46d2._0x233aae,_0x1b46d2._0x235d87)]=_0x30b71a[_0x45c0a3(0x4e7,0x51c,0x52f,0x526)]??0x4000;function _0x45c0a3(_0x3d66b9,_0x136af4,_0x27c63f,_0xf2d7ad){return _0x2b6123(_0x136af4,_0x136af4-_0x3c5c6e._0x534ea5,_0x27c63f-_0x3c5c6e._0x5298c1,_0xf2d7ad-0x153);}this[_0x45c0a3(_0x1b46d2._0x1715f7,0x436,0x4fc,0x451)]=_0x30b71a[_0x45c0a3(0x4a5,_0x1b46d2._0x515fdc,_0x1b46d2._0xeac540,_0x1b46d2._0x3f1693)]??_0x45c0a3(_0x1b46d2._0x47d2f7,_0x1b46d2._0x1e2f21,0x504,0x51b);const _0x32cd69=trimTrailingSlashes(_0x30b71a[_0x2c9f34(_0x1b46d2._0x5ea4ce,_0x1b46d2._0x5d5c9a,0x1fa,0x280)]??resolveDefaultBaseUrl(this[_0x45c0a3(_0x1b46d2._0x542232,_0x1b46d2._0xaccd80,0x4fc,0x498)]));if(isAnthropicSurface(this['surface'])){this['anthropicDelegate']=new AnthropicModel({'apiKey':_0x30b71a['apiKey'],'authScheme':_0x30b71a['authScheme'],'baseUrl':_0x32cd69,'fetch':_0x30b71a[_0x2c9f34(_0x1b46d2._0x57198d,_0x1b46d2._0x36154d,0x288,0x244)],'maxTokens':this['maxTokens'],'model':this[_0x2c9f34(0x1ed,0x31f,0x19c,_0x1b46d2._0x488ce5)],'reasoning':_0x30b71a[_0x2c9f34(0x30b,_0x1b46d2._0xa4d346,_0x1b46d2._0x3d6f88,0x250)],'providerSessionResolver':_0x30b71a['providerSessionResolver'],'requestMutators':_0x30b71a['requestMutators']});return;}function _0x2c9f34(_0x4f2483,_0x4ca95d,_0x1e2d84,_0x34615b){return _0x38c793(_0x4ca95d,_0x4ca95d-_0x477f29._0x209338,_0x34615b- -_0x477f29._0xa1eaa3,_0x34615b-0x74);}this['openAiDelegate']=new OpenAiModel({'apiKey':_0x30b71a[_0x45c0a3(_0x1b46d2._0x10b082,0x60f,_0x1b46d2._0x28ed21,0x52c)],'baseUrl':_0x32cd69,'fetch':_0x30b71a['fetch'],'headerResolver':_0x30b71a[_0x45c0a3(_0x1b46d2._0x17995f,_0x1b46d2._0x3a46c0,0x604,_0x1b46d2._0x41f71e)],'maxTokens':this[_0x2c9f34(_0x1b46d2._0x240a2c,_0x1b46d2._0x2985e5,0x1a9,0x156)],'model':this[_0x45c0a3(_0x1b46d2._0x46035d,_0x1b46d2._0x3b8319,_0x1b46d2._0x5464b6,0x574)],'reasoning':_0x30b71a['reasoning'],'providerSessionResolver':_0x30b71a[_0x2c9f34(_0x1b46d2._0x5c830f,0xc5,_0x1b46d2._0x18daf7,0x135)],'requestMutators':_0x30b71a[_0x45c0a3(_0x1b46d2._0x47863e,_0x1b46d2._0x5d39db,_0x1b46d2._0x1aad3b,_0x1b46d2._0x211e71)],'webSocketFactory':_0x30b71a[_0x2c9f34(_0x1b46d2._0x20140f,_0x1b46d2._0x5b4067,0x2e0,0x292)]});}[_0x38c793(0x324,0x429,0x37b,0x34e)](){const _0x330514={_0x283916:0x2bf,_0x287da2:0x36c,_0x259f16:0x468,_0x19b23c:0x4f6,_0x2ed16d:0x3bd,_0x3200ea:0x3c2,_0x458f2a:0x365,_0x1543e3:0x3a4,_0x28eb4d:0x44e},_0x43ca70={_0x4d58a7:0x160},_0x1117dc={_0x24f5ff:0x93,_0x3a87ad:0x46,_0x5e5ee5:0xa8};function _0x5d7d10(_0x4d921e,_0x24d49d,_0x3301d5,_0x218b03){return _0x38c793(_0x218b03,_0x24d49d-_0x1117dc._0x24f5ff,_0x3301d5- -_0x1117dc._0x3a87ad,_0x218b03-_0x1117dc._0x5e5ee5);}if(!this[_0x5d7d10(_0x330514._0x283916,0x2cc,_0x330514._0x287da2,0x329)])throw new Error(_0x9839b3(0x3ba,_0x330514._0x259f16,_0x330514._0x19b23c,0x4e1)+this[_0x5d7d10(_0x330514._0x2ed16d,_0x330514._0x3200ea,0x326,_0x330514._0x458f2a)]);function _0x9839b3(_0x42f9dd,_0xfcd69,_0x48041b,_0x341050){return _0x38c793(_0x42f9dd,_0xfcd69-0x1e2,_0xfcd69-0xb,_0x341050-_0x43ca70._0x4d58a7);}return this[_0x9839b3(0x478,0x3bd,_0x330514._0x1543e3,_0x330514._0x28eb4d)];}[_0x38c793(0x433,0x46b,0x3b5,0x459)](){const _0x26d9a2={_0x3dfe74:0x95,_0x21f00c:0x3f,_0x36f766:0x585,_0x42a3d3:0x508,_0xf8d1f3:0x2a2,_0x43dd0f:0x285},_0x32f320={_0x4fce47:0x1c5},_0x46dd85={_0x198593:0x59,_0x384327:0x2f0,_0x5263e2:0x18};if(!this['openAiDelegate'])throw new Error(_0x1d711d(0x146,-0x32,_0x26d9a2._0x3dfe74,_0x26d9a2._0x21f00c)+this[_0x170faf(_0x26d9a2._0x36f766,_0x26d9a2._0x42a3d3,0x458,0x5b8)]);function _0x1d711d(_0x1b6b49,_0x59075d,_0x172920,_0x412ef7){return _0x38c793(_0x1b6b49,_0x59075d-_0x46dd85._0x198593,_0x172920- -_0x46dd85._0x384327,_0x412ef7-_0x46dd85._0x5263e2);}function _0x170faf(_0x3d74b,_0x25353e,_0x1e41be,_0x18844a){return _0x2b6123(_0x3d74b,_0x25353e-0x83,_0x25353e-0x2cc,_0x18844a-_0x32f320._0x4fce47);}return this[_0x1d711d(_0x26d9a2._0xf8d1f3,0x241,0x1f0,_0x26d9a2._0x43dd0f)];}[_0x38c793(0x3df,0x468,0x445,0x4ec)](_0x5b20ea,_0x1a264e){const _0x4d7ccd={_0x208c19:0x109,_0x1f6c35:0x16d,_0x5913d4:0x184,_0x31dfd1:0x22f,_0x576af0:0xdd,_0x1af18e:0x118,_0x1c0423:0x1e1,_0x355be3:0x141,_0x433263:0xc9,_0x28b6e3:0x10a,_0x32b839:0x1c6,_0x1e645c:0x209,_0x259a18:0x22c,_0x33a1c8:0x178,_0x444329:0x260,_0x10102b:0x271,_0x23de00:0x25d},_0x394e92={_0x285b8b:0xe3,_0x2ef4bd:0x263},_0x424314={_0x2e7e3c:0x198,_0x22ad13:0x75};function _0xfa815b(_0x32026e,_0x12cade,_0x259ecf,_0xa60215){return _0x2b6123(_0x259ecf,_0x12cade-_0x424314._0x2e7e3c,_0xa60215- -0x188,_0xa60215-_0x424314._0x22ad13);}function _0x400bfd(_0x98618b,_0x1d0a65,_0x3e99bc,_0x3dd0c4){return _0x38c793(_0x1d0a65,_0x1d0a65-_0x394e92._0x285b8b,_0x98618b- -_0x394e92._0x2ef4bd,_0x3dd0c4-0x1c7);}switch(this[_0x400bfd(_0x4d7ccd._0x208c19,0xa4,_0x4d7ccd._0x1f6c35,0x117)]){case _0x400bfd(_0x4d7ccd._0x5913d4,_0x4d7ccd._0x31dfd1,0x1e1,_0x4d7ccd._0x576af0):return this[_0x400bfd(_0x4d7ccd._0x1af18e,_0x4d7ccd._0x1c0423,_0x4d7ccd._0x355be3,_0x4d7ccd._0x433263)]()['complete'](_0x5b20ea,_0x1a264e);case _0x400bfd(0x166,0x132,_0x4d7ccd._0x28b6e3,_0x4d7ccd._0x32b839):return this['getOpenAiDelegate']()[_0x400bfd(0x214,0x268,_0x4d7ccd._0x1e645c,0x248)](_0x5b20ea,_0x1a264e);case _0xfa815b(0x223,0xee,_0x4d7ccd._0x259a18,_0x4d7ccd._0x33a1c8):return this['getOpenAiDelegate']()[_0xfa815b(0x1cd,_0x4d7ccd._0x444329,0x200,0x1a4)](_0x5b20ea,_0x1a264e);default:return this['getOpenAiDelegate']()[_0x400bfd(0x1cc,0x187,_0x4d7ccd._0x10102b,_0x4d7ccd._0x23de00)](_0x5b20ea,_0x1a264e);}}[_0x2b6123(0x406,0x30a,0x349,0x30b)](_0x22e147,_0x1b7902){const _0x28937e={_0x56329f:0x2c7,_0x7492ac:0x2c5,_0x13e2b9:0x338,_0x127417:0x36d,_0x3261ba:0x2fd,_0x4c2966:0x3a5,_0x39d1a7:0x2d6,_0x93234c:0x2ef,_0x5842ee:0x386,_0x11d830:0x14f,_0x4e9fc9:0x324,_0x10de94:0x2cc,_0x57ab9e:0x290,_0x1b21a7:0x381,_0x37d8fa:0x3ac,_0x1a2a33:0x3d3,_0x2d903b:0x48d,_0x59147f:0x356,_0x5277a4:0x250,_0x59d8d9:0x35c,_0x5c7854:0x323,_0x45ee73:0x26,_0x1792d2:0x94,_0x55e731:0x70},_0x3b5938={_0x58f379:0xda,_0x1f04fb:0x165},_0x8c24c={_0xcd107c:0x54};function _0x3762d9(_0x1ff43f,_0x184922,_0x122a74,_0x2b5f99){return _0x2b6123(_0x1ff43f,_0x184922-0x5b,_0x184922- -0x2bb,_0x2b5f99-_0x8c24c._0xcd107c);}function _0x5c27f5(_0xda7c45,_0x22249a,_0x31075b,_0x9d8d99){return _0x2b6123(_0x22249a,_0x22249a-_0x3b5938._0x58f379,_0xda7c45-0x8b,_0x9d8d99-_0x3b5938._0x1f04fb);}switch(this[_0x5c27f5(_0x28937e._0x56329f,_0x28937e._0x7492ac,_0x28937e._0x13e2b9,_0x28937e._0x127417)]){case _0x5c27f5(0x342,_0x28937e._0x3261ba,_0x28937e._0x4c2966,0x381):return this[_0x5c27f5(_0x28937e._0x39d1a7,_0x28937e._0x93234c,0x2f5,_0x28937e._0x5842ee)]()[_0x3762d9(0xad,0x8e,0xe7,_0x28937e._0x11d830)](_0x22e147,_0x1b7902);case _0x5c27f5(_0x28937e._0x4e9fc9,_0x28937e._0x10de94,_0x28937e._0x57ab9e,0x3a7):return this[_0x5c27f5(0x310,_0x28937e._0x1b21a7,0x329,_0x28937e._0x37d8fa)]()[_0x5c27f5(_0x28937e._0x1a2a33,0x382,_0x28937e._0x2d903b,_0x28937e._0x59147f)](_0x22e147,_0x1b7902);case'openai-responses-ws':return this[_0x5c27f5(0x310,0x332,_0x28937e._0x5277a4,0x2fe)]()[_0x5c27f5(_0x28937e._0x59d8d9,_0x28937e._0x5c7854,0x31c,0x3f2)](_0x22e147,_0x1b7902);default:return this[_0x3762d9(-0xfe,-0x36,0x35,-_0x28937e._0x45ee73)]()[_0x3762d9(-0x46,0x21,-_0x28937e._0x1792d2,_0x28937e._0x55e731)](_0x22e147,_0x1b7902);}}};function _0x38c793(_0x68fcce,_0x1f99ae,_0x4add4b,_0x2a7f26){const _0x1aa9fc={_0x2a8692:0x219};return _0x25f1(_0x4add4b-_0x1aa9fc._0x2a8692,_0x68fcce);}import{randomUUID}from'crypto';var GitHubAccessTokenResolver=class{[_0x38c793(0x56b,0x43d,0x4ed,0x471)];[_0x2b6123(0x32d,0x2d3,0x399,0x432)];[_0x2b6123(0x290,0x23c,0x269,0x255)];[_0x2b6123(0x30f,0x40a,0x3bc,0x314)];['tokenExchangeApiVersion'];constructor(_0x1d1077){const _0x20431e={_0x23b451:0x4fa,_0x2e3a9d:0x56d,_0x5c20d7:0x594,_0xc0b02e:0x15c,_0x2b7d83:0xaa,_0x10466f:0x1d1,_0x44eb65:0x4d6,_0x1ad64c:0x45e,_0x4cbf34:0x2c,_0xe01d96:0x58,_0x5ed3c1:0xcb,_0x3d9ee5:0x43a,_0x410290:0x521,_0x32308a:0x4f9,_0x382214:0x561,_0x3c714a:0x8d,_0x13ea64:0x4a,_0x10a9d1:0x5a,_0x41f4d5:0x9a},_0x2cebe0={_0x5169ba:0x13d,_0x58a3eb:0x177};this[_0x5e9963(_0x20431e._0x23b451,_0x20431e._0x2e3a9d,0x4c1,0x56d)]=_0x1d1077[_0x5e9963(0x4fa,0x43a,0x541,_0x20431e._0x5c20d7)];function _0x5e9963(_0x30bbdb,_0x590cf0,_0x4eece7,_0x5cb3d9){return _0x2b6123(_0x4eece7,_0x590cf0-0xf4,_0x30bbdb-_0x2cebe0._0x5169ba,_0x5cb3d9-_0x2cebe0._0x58a3eb);}this[_0x11c68f(_0x20431e._0xc0b02e,0x158,_0x20431e._0x2b7d83,_0x20431e._0x10466f)]=trimTrailingSlashes2(_0x1d1077[_0x5e9963(_0x20431e._0x44eb65,_0x20431e._0x1ad64c,0x4b3,0x4f2)]),this[_0x11c68f(_0x20431e._0x4cbf34,_0x20431e._0xe01d96,_0x20431e._0x5ed3c1,0xa0)]=_0x1d1077[_0x5e9963(0x49a,0x547,0x497,0x52d)],this[_0x5e9963(0x4f9,_0x20431e._0x3d9ee5,_0x20431e._0x410290,0x57e)]=trimTrailingSlashes2(_0x1d1077[_0x5e9963(_0x20431e._0x32308a,_0x20431e._0x382214,0x4c2,0x4b4)]);function _0x11c68f(_0x49339c,_0x835cbc,_0x4b90bf,_0x2bfa84){return _0x38c793(_0x835cbc,_0x835cbc-0xc6,_0x49339c- -0x36d,_0x2bfa84-0xf2);}this[_0x11c68f(_0x20431e._0x3c714a,_0x20431e._0x13ea64,_0x20431e._0x10a9d1,_0x20431e._0x41f4d5)]=_0x1d1077['tokenExchangeApiVersion'];}async[_0x2b6123(0x43b,0x316,0x3a1,0x440)](_0x462498){const _0x45aec2={_0x1e2767:0x24,_0x2d9dca:0x86,_0x21e954:0x148,_0x3ec7df:0x1cc,_0x150ebd:0xbf,_0x5abd6b:0xfe,_0x4e0536:0x3c,_0x48fc88:0xb0,_0xd7cb39:0x50,_0x1b07e2:0x53,_0x228a4e:0x48,_0x2fb2bf:0x178,_0x112fca:0x1e6,_0x50f128:0x85,_0xc5bef2:0xaa,_0x2e737e:0xda,_0xe5875a:0x2f4,_0x442245:0x2e9,_0x5b6f53:0x33f,_0x3163f0:0x2d4,_0x4810ce:0x234,_0xddc60f:0x2ff,_0x53f7c5:0x190,_0x176ef9:0x277,_0x1aee16:0x23b,_0x5866c7:0x2f0,_0x1b0345:0x24c,_0x2a3b9f:0x2b0,_0x49c545:0x237,_0x4d334b:0x296,_0x1c7576:0x19c,_0x55deaf:0x10b,_0x3db763:0xee,_0x1fa584:0x66,_0x582869:0xb6,_0x2eafc9:0xcc,_0x1d7dde:0x1e,_0x59e747:0xa8,_0x47b973:0x106,_0x1104a3:0x8b,_0x56aaa0:0x104,_0x32c862:0x189,_0x4bca5b:0x222,_0x3149d5:0x177},_0xc0af6d={_0x5b1aa1:0x38,_0x5bbd1b:0xe9},_0x3a1b97={_0x3124bb:0x1dc,_0x575189:0x245};function _0x401a2d(_0x1035ca,_0x422dda,_0x1ec4ee,_0x23e04e){return _0x2b6123(_0x23e04e,_0x422dda-_0x3a1b97._0x3124bb,_0x1035ca- -_0x3a1b97._0x575189,_0x23e04e-0x11c);}const _0x481308=await this[_0x401a2d(_0x45aec2._0x1e2767,0x47,_0x45aec2._0x2d9dca,0xbd)](this['githubApiUrl']+_0x401a2d(_0x45aec2._0x21e954,0xed,0x20a,_0x45aec2._0x3ec7df),{'method':_0x401a2d(_0x45aec2._0x150ebd,0x31,_0x45aec2._0x5abd6b,0xc3),'headers':new Headers({'accept':_0x401a2d(_0x45aec2._0x4e0536,_0x45aec2._0x48fc88,-0x6d,0x4),'authorization':_0x401a2d(_0x45aec2._0xd7cb39,_0x45aec2._0x1b07e2,-_0x45aec2._0x228a4e,-0x2d)+this[_0x401a2d(_0x45aec2._0x2fb2bf,0x1e0,0x14d,0x22b)],'editor-version':_0x401a2d(0x139,0x97,_0x45aec2._0x112fca,0x121),'user-agent':_0x401a2d(0x11c,0x141,0x11d,0xa0),'x-github-api-version':this[_0x401a2d(_0x45aec2._0x50f128,-0x35,_0x45aec2._0xc5bef2,_0x45aec2._0x2e737e)]}),'signal':_0x462498});if(!_0x481308['ok'])return{'credential':{'kind':_0x401a2d(0xe9,0x14b,0x29,0x32),'value':this[_0x13a3a5(_0x45aec2._0xe5875a,_0x45aec2._0x442245,_0x45aec2._0x5b6f53,_0x45aec2._0x3163f0)]},'endpoints':{'api':this[_0x13a3a5(_0x45aec2._0x4810ce,0x29b,_0x45aec2._0xddc60f,0x2b0)]}};const _0x4f37d8=await _0x481308['json']();function _0x13a3a5(_0x36d1e9,_0x1713b9,_0x3bac62,_0x56a5e1){return _0x2b6123(_0x36d1e9,_0x1713b9-_0xc0af6d._0x5b1aa1,_0x56a5e1- -_0xc0af6d._0x5bbd1b,_0x56a5e1-0x1ad);}return{'credential':{'kind':'session-token','value':_0x4f37d8[_0x13a3a5(_0x45aec2._0x53f7c5,_0x45aec2._0x176ef9,0x240,_0x45aec2._0x1aee16)]??this['accessToken']},'endpoints':{'api':_0x4f37d8[_0x13a3a5(_0x45aec2._0x5866c7,_0x45aec2._0x1b0345,_0x45aec2._0x2a3b9f,0x228)]?.[_0x13a3a5(0x148,_0x45aec2._0x49c545,_0x45aec2._0x4d334b,0x1ee)]??this[_0x401a2d(0x154,0x1e3,_0x45aec2._0x1c7576,_0x45aec2._0x55deaf)],'originTracker':_0x4f37d8[_0x401a2d(0xcc,0x40,_0x45aec2._0x3db763,0x193)]?.[_0x401a2d(_0x45aec2._0x1fa584,-0x3c,0x104,_0x45aec2._0x582869)],'proxy':_0x4f37d8[_0x401a2d(_0x45aec2._0x2eafc9,_0x45aec2._0x1d7dde,_0x45aec2._0x59e747,0xac)]?.[_0x401a2d(0x89,_0x45aec2._0x47b973,0x71,_0x45aec2._0x1104a3)],'telemetry':_0x4f37d8[_0x401a2d(0xcc,_0x45aec2._0x56aaa0,0x7c,0x111)]?.[_0x13a3a5(_0x45aec2._0x32c862,_0x45aec2._0x4bca5b,0x17b,_0x45aec2._0x3149d5)]}};}};function trimTrailingSlashes2(_0x3e1d02){const _0x552905={_0x45fdc4:0xe6,_0x338d91:0x4c,_0x49cb09:0x52},_0xf21779={_0x223769:0x73};function _0x3a5605(_0x35bd0b,_0x3a0537,_0x2ab564,_0x33fe2b){return _0x2b6123(_0x33fe2b,_0x3a0537-0x80,_0x2ab564- -0x2de,_0x33fe2b-_0xf21779._0x223769);}return _0x3e1d02[_0x3a5605(_0x552905._0x45fdc4,-_0x552905._0x338d91,_0x552905._0x49cb09,0x78)](/\/+$/,'');}function createModelInfo(_0x5562b6){const _0x551906={_0x59ed8f:0x16d,_0x180976:0x1e1,_0x5a61b4:0x16b,_0x517330:0x6c1,_0x1bf484:0x5f2,_0x5c4961:0x613,_0x128433:0x5aa,_0x123873:0x574,_0x5efe95:0x22f,_0x80228b:0x4d8,_0x3c7428:0x45c,_0x47e6bd:0x4ae},_0x32b694={_0x3d8ce9:0x169},_0x439608={_0x58a05f:0x15,_0x253ed0:0x2bc},_0x45c919=_0x5562b6[_0x49e047(0x12f,_0x551906._0x59ed8f,0x172,0xe8)]??_0x5562b6[_0x49e047(_0x551906._0x180976,0x111,_0x551906._0x5a61b4,0x145)];function _0x1a9f84(_0x39161a,_0x2eeb63,_0x2cdaf6,_0x40bf06){return _0x2b6123(_0x39161a,_0x2eeb63-_0x439608._0x58a05f,_0x2eeb63-_0x439608._0x253ed0,_0x40bf06-0x199);}function _0x49e047(_0x3675ae,_0x456c1d,_0x3ef904,_0x3a16bf){return _0x2b6123(_0x3a16bf,_0x456c1d-_0x32b694._0x3d8ce9,_0x3ef904- -0x1b8,_0x3a16bf-0xaf);}const _0x5ed231=_0x5562b6[_0x1a9f84(_0x551906._0x517330,0x624,_0x551906._0x1bf484,0x640)]?.['limits']?.[_0x1a9f84(_0x551906._0x5c4961,_0x551906._0x128433,0x663,_0x551906._0x123873)],_0x252f81=_0x5562b6[_0x49e047(0x1d4,0x147,0x1b0,_0x551906._0x5efe95)]?.['limits']?.['max_output_tokens'],_0x281289=_0x5ed231!==void 0x0||_0x252f81!==void 0x0?{..._0x5ed231!==void 0x0?{'contextWindow':_0x5ed231}:{},..._0x252f81!==void 0x0?{'maxOutput':_0x252f81}:{}}:void 0x0;return{'id':_0x5562b6['id'],'name':_0x5562b6[_0x1a9f84(_0x551906._0x80228b,0x509,_0x551906._0x3c7428,_0x551906._0x47e6bd)]??_0x5562b6['id'],..._0x281289?{'limits':_0x281289}:{},..._0x45c919?{'supportedEndpoints':_0x45c919}:{}};}function deduplicateModels(_0x281503){const _0x36c8a2={_0x2132ef:0x20,_0x7cd1fa:0x330},_0x4676be={_0x12e1b0:0x183,_0x4cc4b1:0x3cb,_0x957d16:0x105},_0x1539c4={_0x34d694:0x178,_0x26a7e7:0x85},_0x1e8e19=new Map();for(const _0x463c6a of _0x281503){!_0x1e8e19['has'](_0x463c6a['id'])&&_0x1e8e19[_0x4d7596(-0x2,0x4f,-_0x36c8a2._0x2132ef,-0x5b)](_0x463c6a['id'],_0x463c6a);}function _0x2c8b19(_0x365b40,_0x5d594f,_0x4df7c7,_0x15eea4){return _0x2b6123(_0x5d594f,_0x5d594f-_0x1539c4._0x34d694,_0x15eea4- -_0x1539c4._0x26a7e7,_0x15eea4-0x1e5);}function _0x4d7596(_0x3ae5e6,_0x1b729d,_0x218fc2,_0x2066f7){return _0x2b6123(_0x1b729d,_0x1b729d-_0x4676be._0x12e1b0,_0x2066f7- -_0x4676be._0x4cc4b1,_0x2066f7-_0x4676be._0x957d16);}return Array[_0x2c8b19(0x2b7,0x1d1,_0x36c8a2._0x7cd1fa,0x267)](_0x1e8e19['values']());}function hasUserPromptContent(_0x361334){const _0x3b65d3={_0x2a37be:0x48e,_0x3ee49e:0x514,_0x3c3ee3:0x5ac,_0x145434:0xdb,_0x3f335d:0x102,_0x4a1125:0x16e,_0x6e9ec7:0x49,_0x5aa6b0:0x50,_0x3b4731:0x39},_0x53d95f={_0x4afe38:0x44c,_0x22b1db:0x447,_0x487c07:0x156,_0x5b3b55:0x27f,_0x1be28e:0x13c,_0x3ab369:0x87,_0x5e5644:0x14b,_0x5efb75:0x538,_0x5da2ca:0x523,_0x10433c:0x4a0,_0x27d735:0x55e,_0x4bf388:0x4ac},_0x6ad7da={_0x56d42f:0x1a,_0x225294:0xa},_0x356de1={_0x44adf0:0x9d,_0x35b81:0x474};function _0x37678e(_0x29f820,_0x4cbbf5,_0x44a163,_0x9a51e2){return _0x38c793(_0x4cbbf5,_0x4cbbf5-_0x356de1._0x44adf0,_0x9a51e2- -_0x356de1._0x35b81,_0x9a51e2-0x15f);}if(typeof _0x361334===_0x4f60e3(_0x3b65d3._0x2a37be,0x463,_0x3b65d3._0x3ee49e,_0x3b65d3._0x3c3ee3))return _0x361334[_0x37678e(-_0x3b65d3._0x145434,-0x90,-0xc0,-0xa2)]()[_0x37678e(-_0x3b65d3._0x3f335d,-_0x3b65d3._0x4a1125,-0x132,-0xa9)]>0x0;function _0x4f60e3(_0xe0a047,_0x5db5a7,_0xf54e85,_0x52b8e9){return _0x38c793(_0x52b8e9,_0x5db5a7-_0x6ad7da._0x56d42f,_0xf54e85-0x119,_0x52b8e9-_0x6ad7da._0x225294);}if(!Array['isArray'](_0x361334))return![];return _0x361334[_0x37678e(0xb6,-_0x3b65d3._0x6e9ec7,_0x3b65d3._0x5aa6b0,_0x3b65d3._0x3b4731)](_0x6a14e0=>{const _0x57ec37={_0xc37f2:0x28,_0x3a8eea:0x8e,_0x2acfed:0x6f3},_0x137cbb={_0x3faded:0x5c};if(!_0x6a14e0||typeof _0x6a14e0!==_0x32a642(0x4e6,_0x53d95f._0x4afe38,0x3d7,_0x53d95f._0x22b1db))return![];function _0x32a642(_0x138c85,_0x199682,_0x5271ed,_0x2d32c8){return _0x4f60e3(_0x138c85-_0x137cbb._0x3faded,_0x199682-0xe0,_0x2d32c8- -0x68,_0x199682);}function _0x2609fd(_0x5eca01,_0x4b045b,_0xf34500,_0x358efd){return _0x4f60e3(_0x5eca01-_0x57ec37._0xc37f2,_0x4b045b-_0x57ec37._0x3a8eea,_0x4b045b- -_0x57ec37._0x2acfed,_0xf34500);}const _0x448e11=_0x6a14e0;return(_0x448e11[_0x2609fd(-_0x53d95f._0x487c07,-0x1eb,-_0x53d95f._0x5b3b55,-_0x53d95f._0x1be28e)]===_0x2609fd(-_0x53d95f._0x3ab369,-_0x53d95f._0x5e5644,-0x153,-0x1b0)||_0x448e11[_0x32a642(_0x53d95f._0x5efb75,_0x53d95f._0x5da2ca,0x50a,_0x53d95f._0x10433c)]==='text')&&typeof _0x448e11[_0x2609fd(-0x257,-0x198,-0xe7,-0x18e)]===_0x32a642(0x49a,_0x53d95f._0x27d735,0x4ee,_0x53d95f._0x4bf388)&&_0x448e11['text']['trim']()['length']>0x0;});}function isUserPromptEntry(_0xcc3ca0){const _0x5d956b={_0x281fe6:0x1de,_0x473288:0x185,_0x4e216f:0x199,_0x2a09c5:0x163,_0x55d703:0x174,_0x564707:0x1d1,_0x47ab93:0x182,_0x5c42f5:0x32,_0x9b9ed3:0xb7,_0xd0398e:0xfd,_0x1ef3b9:0x138},_0x35eac0={_0xf11deb:0x1ee,_0x38addd:0x1b5},_0x456448={_0x3482d1:0x26d,_0x5ac13e:0xb1};if(!_0xcc3ca0||typeof _0xcc3ca0!=='object')return![];const _0x15c157=_0xcc3ca0;if(_0x15c157[_0x5b8d94(0x26c,0x23d,0x1fc,_0x5d956b._0x281fe6)]!==_0x5b8d94(_0x5d956b._0x473288,_0x5d956b._0x4e216f,_0x5d956b._0x2a09c5,0x1b8))return![];function _0x5b8d94(_0x412a87,_0x2d878f,_0x3d3e47,_0x53547f){return _0x38c793(_0x2d878f,_0x2d878f-0x19c,_0x53547f- -_0x456448._0x3482d1,_0x53547f-_0x456448._0x5ac13e);}if(_0x15c157[_0x571016(0x1c2,0x111,0x10a,0xc3)]!==void 0x0&&_0x15c157[_0x5b8d94(_0x5d956b._0x55d703,_0x5d956b._0x564707,0x13f,_0x5d956b._0x47ab93)]!==_0x571016(_0x5d956b._0x5c42f5,_0x5d956b._0x9b9ed3,_0x5d956b._0xd0398e,_0x5d956b._0x1ef3b9))return![];function _0x571016(_0x5c2804,_0x153a64,_0x5deb0f,_0x1fc48){return _0x2b6123(_0x1fc48,_0x153a64-_0x35eac0._0xf11deb,_0x5deb0f- -_0x35eac0._0x38addd,_0x1fc48-0x1e8);}return hasUserPromptContent(_0x15c157['content']);}function determineInitiator(_0x27b433){const _0x11fbc2={_0x1e8391:0x1eb,_0x59de41:0x2a9,_0x4f419d:0x323,_0x3b4ca7:0x28f,_0x4e3a81:0x25b,_0x49b9a7:0x29c,_0x101bb4:0x312,_0x4ed6b3:0x315,_0x3ddc16:0x2c7,_0x323f38:0x30c,_0x380c2e:0x20f,_0x8b688b:0x1fb,_0x157586:0x259,_0x56ab4d:0x2bb},_0x1c6ef5={_0x1c9050:0x1d0};function _0xa81127(_0x3ef944,_0x37275b,_0x3342ab,_0x274b47){return _0x38c793(_0x37275b,_0x37275b-0xa9,_0x3ef944- -0x167,_0x274b47-0x27);}function _0x536878(_0x365919,_0x189797,_0xce00f6,_0x3d13fe){return _0x38c793(_0x365919,_0x189797-0x12c,_0x3d13fe- -_0x1c6ef5._0x1c9050,_0x3d13fe-0x1f3);}if(!_0x27b433||typeof _0x27b433!=='object')return'agent';const _0x30a271=_0xa81127(0x268,_0x11fbc2._0x1e8391,_0x11fbc2._0x59de41,0x303)in _0x27b433?_0x27b433['messages']:'input'in _0x27b433?_0x27b433[_0xa81127(_0x11fbc2._0x4f419d,0x31b,0x2d6,_0x11fbc2._0x3b4ca7)]:void 0x0;if(!Array[_0x536878(_0x11fbc2._0x4e3a81,0x29c,_0x11fbc2._0x49b9a7,_0x11fbc2._0x101bb4)](_0x30a271)||_0x30a271['length']===0x0)return _0x536878(_0x11fbc2._0x4ed6b3,0x305,_0x11fbc2._0x3ddc16,_0x11fbc2._0x323f38);return isUserPromptEntry(_0x30a271[_0x30a271[_0x536878(_0x11fbc2._0x380c2e,0x1fb,0x161,_0x11fbc2._0x8b688b)]-0x1])?_0xa81127(0x2be,0x32b,_0x11fbc2._0x157586,0x35c):_0x536878(0x249,0x3aa,_0x11fbc2._0x56ab4d,0x30c);}function isUnsupportedApiForModel(_0x2e3c3b){const _0x214058={_0x339643:0x598,_0x2298bb:0x555},_0x23c856={_0x2f15de:0x48,_0x1cd090:0x4};function _0x1094b0(_0x55c235,_0x364881,_0x300d3c,_0x5f2040){return _0x38c793(_0x364881,_0x364881-_0x23c856._0x2f15de,_0x55c235-0x16b,_0x5f2040-_0x23c856._0x1cd090);}return _0x2e3c3b[_0x1094b0(0x5a1,0x5c0,_0x214058._0x339643,_0x214058._0x2298bb)]('unsupported_api_for_model');}function createResponseError(_0x35637a,_0x4cf230){const _0x24e02f={_0x3d9c34:0x22e,_0x4acbd2:0x288,_0x395f67:0x170},_0x382369={_0x45f2f5:0x109},_0x16c3d0={_0xca4e7b:0x127,_0x57a726:0x554,_0x403add:0x170};if(_0x35637a===0x191||_0x35637a===0x193)return new Error(_0x2962dd(0x2e4,_0x24e02f._0x3d9c34,_0x24e02f._0x4acbd2,0x30a));function _0x23d635(_0x2c4528,_0x4792e9,_0xcc96ab,_0x3807cb){return _0x38c793(_0x2c4528,_0x4792e9-_0x16c3d0._0xca4e7b,_0x4792e9- -_0x16c3d0._0x57a726,_0x3807cb-_0x16c3d0._0x403add);}function _0x2962dd(_0x546a80,_0x26fff9,_0x55429b,_0x5e72e6){return _0x38c793(_0x5e72e6,_0x26fff9-0x165,_0x55429b- -_0x382369._0x45f2f5,_0x5e72e6-0x7e);}if(_0x35637a===0x198||_0x35637a===0x1ad)return new Error('Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.');if(_0x35637a===0x190)return new Error(_0x23d635(-0x13e,-0xb8,-0x57,-_0x24e02f._0x395f67)+_0x4cf230);return new Error(_0x4cf230||'GitHub\x20API\x20error\x20'+_0x35637a);}var GitHubModel=class extends OpenAiModel{[_0x38c793(0x46a,0x32f,0x3b2,0x3c0)];[_0x2b6123(0x2b0,0x269,0x2c4,0x384)]=new Map();[_0x2b6123(0x276,0x22f,0x23c,0x2a4)];constructor(_0x518f32={}){const _0x254c8c={_0x5bdef4:0x37c,_0x510b26:0x492,_0x3d2b23:0x132,_0x4ad594:0x10b,_0x108a6b:0x1dd,_0x3e7d4d:0x20e,_0x20c7d8:0x254,_0x51026e:0x2a0,_0x1b54cc:0x1db,_0x5632fc:0x182,_0x52c7e5:0x25c,_0x186684:0xba,_0x3a54a6:0x3a0,_0x343db6:0x405,_0x66d4af:0x1e0,_0x3bb0e9:0x168,_0x31d9a8:0x1bf,_0x2600fe:0x3e2,_0x1abdab:0x481,_0x4ac1f0:0x34d,_0x17a4f4:0x297,_0x2a0872:0x2c4,_0x370d88:0x32e,_0x1ffbf7:0x1e5,_0x377ccf:0x260,_0x12b795:0x28d,_0x256fef:0x231,_0x339b9a:0x24d,_0x3a9fff:0x328,_0x55e764:0x2b9,_0x231e95:0x255,_0x138f19:0x31a,_0x400ae4:0x34f,_0x5b51af:0x2af,_0x40ed63:0x296,_0x56337a:0x2b8,_0x4bcade:0x246,_0x57b16f:0x1eb,_0x23f7b7:0x1fa,_0x16d3bf:0x3f8,_0x3ebb7c:0x3bc,_0x52cfdd:0x4a3,_0x156bf6:0x176,_0x56d6d2:0x153,_0x214cd5:0xda,_0x31a713:0x206,_0x5406a3:0x447,_0x4061b5:0x4fd,_0x25c43b:0x3f9,_0xb958ed:0x3f4,_0x52024a:0x4a9,_0x19e166:0x44d},_0x357daa={_0x5544f8:0x173},_0x21b783=trimTrailingSlashes2(_0x518f32['baseUrl']??'https://api.individual.githubcopilot.com');function _0x352f7e(_0x1f00ea,_0x584811,_0x121b74,_0xd3f326){return _0x2b6123(_0xd3f326,_0x584811-_0x357daa._0x5544f8,_0x584811- -0x11c,_0xd3f326-0x155);}const _0x26b541=_0x518f32[_0x25f471(0x43b,_0x254c8c._0x5bdef4,0x433,_0x254c8c._0x510b26)]??globalThis['fetch'],_0xe2391f=_0x518f32[_0x352f7e(0x7b,_0x254c8c._0x3d2b23,0x7a,_0x254c8c._0x4ad594)]??(_0x518f32[_0x352f7e(0x2f6,0x2a1,_0x254c8c._0x108a6b,_0x254c8c._0x3e7d4d)]?new GitHubAccessTokenResolver({'accessToken':_0x518f32['accessToken'],'baseUrl':_0x21b783,'fetch':_0x26b541,'githubApiUrl':_0x518f32[_0x352f7e(_0x254c8c._0x20c7d8,_0x254c8c._0x51026e,_0x254c8c._0x1b54cc,0x20e)]??'https://api.github.com','tokenExchangeApiVersion':_0x518f32[_0x352f7e(0x116,0x1ae,_0x254c8c._0x5632fc,_0x254c8c._0x52c7e5)]??_0x352f7e(0x161,0x112,_0x254c8c._0x186684,0x66)}):void 0x0),_0x19dfba=_0x518f32[_0x25f471(_0x254c8c._0x3a54a6,0x43f,0x410,_0x254c8c._0x343db6)]??_0x352f7e(0x22b,_0x254c8c._0x66d4af,_0x254c8c._0x3bb0e9,0x1d7),_0x5c08bd=_0x518f32[_0x352f7e(0x188,0x133,_0x254c8c._0x31d9a8,0x112)]??_0x25f471(0x359,_0x254c8c._0x2600fe,0x359,0x368),_0x13a5ab=({body:_0x450449})=>{return{'editor-plugin-version':_0x5c08bd,'editor-version':_0x19dfba,'x-initiator':determineInitiator(_0x450449),'x-request-id':randomUUID()};},_0x375dd0={'apiKey':_0x518f32[_0x25f471(0x3e5,0x466,_0x254c8c._0x1abdab,0x46c)],'baseUrl':_0x21b783,'fetch':_0x26b541,'maxTokens':_0x518f32[_0x25f471(_0x254c8c._0x4ac1f0,_0x254c8c._0x17a4f4,_0x254c8c._0x2a0872,_0x254c8c._0x370d88)],'model':_0x518f32[_0x352f7e(_0x254c8c._0x1ffbf7,_0x254c8c._0x377ccf,_0x254c8c._0x12b795,_0x254c8c._0x256fef)],'reasoning':_0x518f32[_0x352f7e(0x1cc,_0x254c8c._0x339b9a,0x27c,0x298)],'providerSessionResolver':_0xe2391f,'requestMutators':_0x518f32['requestMutators'],'headerResolver':_0x13a5ab};super(_0x375dd0),this[_0x25f471(0x31a,_0x254c8c._0x3a9fff,_0x254c8c._0x55e764,_0x254c8c._0x231e95)]=_0x518f32[_0x25f471(_0x254c8c._0x138f19,_0x254c8c._0x400ae4,_0x254c8c._0x5b51af,0x2cb)]??_0x25f471(0x39b,0x38e,0x41f,0x341);function _0x25f471(_0x508f1f,_0x426970,_0x33d1d2,_0x45fe00){return _0x2b6123(_0x426970,_0x426970-0x1da,_0x508f1f-0xde,_0x45fe00-0x152);}this[_0x25f471(0x360,_0x254c8c._0x40ed63,0x3ba,_0x254c8c._0x56337a)]=new AnthropicModel({'apiKey':_0x518f32[_0x352f7e(_0x254c8c._0x4bcade,_0x254c8c._0x57b16f,_0x254c8c._0x23f7b7,0x1f8)],'authScheme':_0x25f471(_0x254c8c._0x16d3bf,_0x254c8c._0x3ebb7c,0x33d,_0x254c8c._0x52cfdd),'baseUrl':_0x21b783,'fetch':_0x26b541,'headerResolver':_0x13a5ab,'maxTokens':_0x518f32[_0x352f7e(_0x254c8c._0x156bf6,_0x254c8c._0x56d6d2,_0x254c8c._0x214cd5,_0x254c8c._0x31a713)],'model':_0x518f32['model'],'reasoning':_0x518f32[_0x25f471(_0x254c8c._0x5406a3,0x394,_0x254c8c._0x4061b5,_0x254c8c._0x25c43b)],'providerSessionResolver':_0xe2391f,'requestMutators':_0x518f32[_0x25f471(_0x254c8c._0xb958ed,_0x254c8c._0x52024a,_0x254c8c._0x19e166,0x4a3)]});}['createMissingCredentialError'](){const _0x40b6d6={_0x2a043d:0x1d,_0x515d31:0x38,_0xd4bfbc:0xb},_0x15b7a0={_0xe834d8:0x1c7,_0x46d9ec:0x3d6,_0x225772:0xe8};function _0x506916(_0x550a53,_0x28f058,_0x335fea,_0x1561a7){return _0x38c793(_0x550a53,_0x28f058-_0x15b7a0._0xe834d8,_0x335fea- -_0x15b7a0._0x46d9ec,_0x1561a7-_0x15b7a0._0x225772);}return new Error(_0x506916(0x8f,_0x40b6d6._0x2a043d,_0x40b6d6._0x515d31,-_0x40b6d6._0xd4bfbc));}[_0x38c793(0x325,0x36a,0x3ca,0x3a1)](_0x3fc891){const _0x56926d={_0x24f001:0x254,_0x203a1d:0x2de,_0x32709f:0x1cb,_0x1462a8:0x45,_0x4b8dab:0x5e,_0x493aac:0x14b,_0x7fd9f:0xa,_0x258636:0x73,_0x1d5cb4:0xdc,_0x20c1fd:0xee,_0x42c760:0xe6},_0x1716b6={_0x3ddc12:0x157,_0x367a46:0x4f,_0x13a50e:0x1ea},_0x269ce6={_0x3fd3ed:0x62,_0x319c7b:0x195};function _0x5801c7(_0x5d62f9,_0x577206,_0x586e9b,_0x16ae56){return _0x38c793(_0x586e9b,_0x577206-_0x269ce6._0x3fd3ed,_0x16ae56- -0x3cf,_0x16ae56-_0x269ce6._0x319c7b);}const _0x42c48b=this[_0x566733(_0x56926d._0x24f001,0x275,_0x56926d._0x203a1d,_0x56926d._0x32709f)]['get'](_0x3fc891);if(!_0x42c48b)return![];function _0x566733(_0x36993e,_0xeb0803,_0xd7be47,_0x2e654c){return _0x2b6123(_0xd7be47,_0xeb0803-_0x1716b6._0x3ddc12,_0xeb0803- -_0x1716b6._0x367a46,_0x2e654c-_0x1716b6._0x13a50e);}return!_0x42c48b[_0x5801c7(-0x4d,0x70,-_0x56926d._0x1462a8,0x67)](_0x5801c7(_0x56926d._0x4b8dab,_0x56926d._0x493aac,-_0x56926d._0x7fd9f,0x9f))&&_0x42c48b[_0x5801c7(0x105,_0x56926d._0x258636,0x76,0x67)](_0x5801c7(_0x56926d._0x1d5cb4,_0x56926d._0x20c1fd,0x12f,_0x56926d._0x42c760));}[_0x38c793(0x510,0x436,0x482,0x4fb)](_0x3848dc){const _0x204aee={_0x56af13:0x2fd,_0x311a31:0x2f4,_0x382e4c:0x32a,_0x3ef89a:0x74,_0x8ca822:0x60,_0x53f686:0x24,_0x2a9875:0x14e,_0x6df9f:0x115,_0x36fa0a:0x13d,_0x326de1:0x12c,_0x1b4687:0x109,_0x25e1f5:0x3a9,_0xfaa0d3:0x345,_0x3cef49:0x3bc,_0x3bfe29:0x18b,_0x4dd750:0x100,_0x1e995f:0x2e2,_0x8f51f6:0x2d3,_0x4bb4fd:0x249,_0x4d2e3d:0x448,_0x26286b:0x358},_0x2ffba7={_0x3d429b:0x1ba,_0x2eac5d:0xf7,_0x48f526:0x1a3},_0x1a7346={_0x3791aa:0x260,_0x2ab422:0x5f};function _0x4416b0(_0x38628c,_0x2f7f39,_0x1e0dbf,_0x50f573){return _0x2b6123(_0x1e0dbf,_0x2f7f39-0x2e,_0x50f573- -_0x1a7346._0x3791aa,_0x50f573-_0x1a7346._0x2ab422);}const _0x4c3c2b=this[_0x2b4acc(0x2b1,_0x204aee._0x56af13,_0x204aee._0x311a31,_0x204aee._0x382e4c)][_0x4416b0(_0x204aee._0x3ef89a,-0x8,-_0x204aee._0x8ca822,_0x204aee._0x53f686)](_0x3848dc[_0x4416b0(_0x204aee._0x2a9875,_0x204aee._0x6df9f,_0x204aee._0x36fa0a,0x11c)]);if(!_0x4c3c2b)return![];function _0x2b4acc(_0x432180,_0x299cb1,_0x272332,_0x281c35){return _0x38c793(_0x281c35,_0x299cb1-_0x2ffba7._0x3d429b,_0x299cb1- -_0x2ffba7._0x2eac5d,_0x281c35-_0x2ffba7._0x48f526);}if(resolveOpenAiReasoningConfig(_0x3848dc[_0x4416b0(_0x204aee._0x326de1,0x197,0x82,_0x204aee._0x1b4687)]))return _0x4c3c2b[_0x2b4acc(_0x204aee._0x25e1f5,0x33f,_0x204aee._0xfaa0d3,_0x204aee._0x3cef49)](_0x4416b0(_0x204aee._0x3bfe29,_0x204aee._0x4dd750,0xfc,0x125));return this[_0x2b4acc(_0x204aee._0x1e995f,_0x204aee._0x8f51f6,_0x204aee._0x4bb4fd,0x24b)](_0x3848dc[_0x2b4acc(0x3a6,0x3b5,_0x204aee._0x4d2e3d,_0x204aee._0x26286b)]);}[_0x2b6123(0x3be,0x2e8,0x39f,0x30f)](_0x438f0d){const _0xb6be1a={_0x565f28:0x1d2,_0x49f662:0x1fd},_0x4e914f={_0x2221b5:0x16b,_0x4a9a85:0x496,_0x4cd059:0xa8};function _0x335081(_0x42b81f,_0x1f6dca,_0x40fc96,_0x421aee){return _0x2b6123(_0x421aee,_0x1f6dca-_0x4e914f._0x2221b5,_0x1f6dca- -_0x4e914f._0x4a9a85,_0x421aee-_0x4e914f._0x4cd059);}this[_0x335081(-0x243,-_0xb6be1a._0x565f28,-0x1c7,-_0xb6be1a._0x49f662)]['set'](_0x438f0d,['/responses']);}[_0x2b6123(0x1ee,0x1d3,0x287,0x265)](_0x592004){const _0x259a12={_0x58cfdb:0x5a,_0x2dd487:0x37d,_0x1d8898:0x70};if(_0x592004 instanceof OpenAiApiError)return createResponseError(_0x592004['status'],_0x592004[_0x211244(-0x117,-0xd5,-0x13e,-0x93)]||_0x592004['message']);function _0x211244(_0xef9109,_0x366591,_0xccf802,_0x52a19f){return _0x2b6123(_0x52a19f,_0x366591-_0x259a12._0x58cfdb,_0xccf802- -_0x259a12._0x2dd487,_0x52a19f-_0x259a12._0x1d8898);}return _0x592004;}[_0x38c793(0x4b0,0x4b5,0x4a7,0x53a)](_0x3fe7fc,_0x15c54f){const _0x144b9b={_0x4816ec:0x33,_0x40e51a:0x5d,_0x303ec8:0x5,_0x2ab9df:0x43,_0x4cf943:0x4a,_0x360957:0x56,_0x45a2f4:0xf8,_0x508a52:0x41,_0x5e6c08:0xbd,_0x47bc6e:0x155,_0x40fa93:0x4c,_0x4c0206:0xed,_0x4e43f0:0x6f,_0x334d66:0x8e,_0x1024fa:0x57,_0x2988a3:0x46,_0x5626b1:0x83,_0x3833b5:0x11a,_0x320df1:0x27,_0x166bb3:0xd2,_0x1dfad8:0x3a,_0x22dc5f:0x62,_0x3113f3:0xbc,_0x6e1159:0x9f},_0x1eee70={_0x109c7d:0x120,_0x425b21:0x379,_0x3dd235:0x1e9},_0x3e1554={_0x5c5cb2:0x121,_0x196616:0x3d9,_0x43bc9f:0x1b4};function _0x16dbd9(_0x898b7a,_0x234d03,_0x2532fb,_0x1d6ef1){return _0x38c793(_0x898b7a,_0x234d03-_0x3e1554._0x5c5cb2,_0x1d6ef1- -_0x3e1554._0x196616,_0x1d6ef1-_0x3e1554._0x43bc9f);}switch(this['surface']){case _0x16dbd9(-0x8c,0x9e,-_0x144b9b._0x4816ec,0xe):return this['anthropicDelegate']['complete'](_0x3fe7fc,_0x15c54f);case _0x4e3961(-0x39,-0xa,_0x144b9b._0x40e51a,-_0x144b9b._0x303ec8):return this[_0x16dbd9(_0x144b9b._0x2ab9df,-_0x144b9b._0x4cf943,0x9f,_0x144b9b._0x360957)](_0x3fe7fc,_0x15c54f);case _0x4e3961(_0x144b9b._0x45a2f4,_0x144b9b._0x508a52,_0x144b9b._0x5e6c08,0x50):return this[_0x16dbd9(_0x144b9b._0x47bc6e,_0x144b9b._0x40fa93,0x95,0x9e)](_0x3fe7fc,_0x15c54f);case _0x16dbd9(_0x144b9b._0x4c0206,_0x144b9b._0x4e43f0,_0x144b9b._0x334d66,_0x144b9b._0x1024fa):return this[_0x16dbd9(0x80,_0x144b9b._0x2988a3,0x11d,_0x144b9b._0x5626b1)](_0x3fe7fc,_0x15c54f);case'auto':return this[_0x16dbd9(_0x144b9b._0x3833b5,_0x144b9b._0x320df1,_0x144b9b._0x166bb3,0x6c)](_0x3fe7fc,_0x15c54f);}function _0x4e3961(_0x54bb7c,_0x33306d,_0x9fff89,_0x16b956){return _0x38c793(_0x33306d,_0x33306d-_0x1eee70._0x109c7d,_0x16b956- -_0x1eee70._0x425b21,_0x16b956-_0x1eee70._0x3dd235);}throw new Error(_0x16dbd9(_0x144b9b._0x1dfad8,-0xae,0x3b,-_0x144b9b._0x22dc5f)+String(this[_0x16dbd9(-_0x144b9b._0x3113f3,-0xac,-_0x144b9b._0x6e1159,-0x6d)]));}['streamViaConfiguredSurface'](_0xd8da7f,_0x248b0e){const _0x2facff={_0x1a0012:0x84,_0x512a4a:0x39,_0x5b579d:0x8,_0x330f34:0x8b,_0x2447b5:0xc,_0x47bbc3:0x100,_0x45878b:0x199,_0x50eb3c:0x1a7,_0x20c9d8:0x5,_0x2b7dd7:0x9d,_0x581ae8:0x74,_0x43227d:0x122,_0x5bde47:0xfc,_0x584204:0x17e,_0x203deb:0xb,_0x3cf076:0x3a,_0x512fb6:0xb3,_0x5c8227:0xfb,_0x4a4fad:0x1a,_0x50ebfc:0x1f,_0x293967:0x7a},_0x2d4aa9={_0x10d7a3:0xa0},_0x551806={_0xc831d9:0x5f,_0x3bed33:0x379};function _0xe957fa(_0x3b8a9a,_0x38f7a4,_0xca963,_0x1edf6e){return _0x38c793(_0x1edf6e,_0x38f7a4-_0x551806._0xc831d9,_0x3b8a9a- -_0x551806._0x3bed33,_0x1edf6e-0x46);}switch(this[_0xe957fa(-0xd,-0x15,-0x13,-_0x2facff._0x1a0012)]){case'anthropic-messages':return this[_0xe957fa(_0x2facff._0x512a4a,_0x2facff._0x5b579d,-_0x2facff._0x330f34,_0x2facff._0x2447b5)][_0xe957fa(_0x2facff._0x47bbc3,0x13f,_0x2facff._0x45878b,_0x2facff._0x50eb3c)](_0xd8da7f,_0x248b0e);case _0xe957fa(-_0x2facff._0x20c9d8,0x12,-_0x2facff._0x2b7dd7,_0x2facff._0x581ae8):return this[_0x208bff(_0x2facff._0x43227d,_0x2facff._0x5bde47,_0x2facff._0x584204,0x11a)](_0xd8da7f,_0x248b0e);case _0xe957fa(0x50,0xb4,_0x2facff._0x203deb,0x52):return this['responseStream'](_0xd8da7f,_0x248b0e);case'openai-responses-ws':return this[_0xe957fa(0x88,0xec,0xc3,_0x2facff._0x3cf076)](_0xd8da7f,_0x248b0e);case _0x208bff(0x11a,0x30,_0x2facff._0x512fb6,_0x2facff._0x5c8227):return this['stream'](_0xd8da7f,_0x248b0e);}function _0x208bff(_0x42fc21,_0x579704,_0x4be8f4,_0x1b80a1){return _0x38c793(_0x42fc21,_0x579704-_0x2d4aa9._0x10d7a3,_0x1b80a1- -0x2f2,_0x1b80a1-0xfc);}throw new Error(_0xe957fa(-0x2,-_0x2facff._0x4a4fad,0x70,-_0x2facff._0x50ebfc)+String(this[_0x208bff(0x11,0x2b,0x6f,_0x2facff._0x293967)]));}async[_0x38c793(0x4a5,0x3f4,0x445,0x440)](_0x2f9792,_0x5ef527){const _0x469451={_0x5abd9a:0x9d,_0x574e53:0x30f,_0x1e5b3a:0x14c,_0x206b9c:0x157,_0x32152f:0x115,_0x3f19b3:0x21,_0x313ce1:0x102,_0xbfe971:0x34,_0x42e928:0x3d,_0x2fe981:0x1ee,_0x704287:0x193,_0x287756:0x68,_0x113d93:0x386,_0x2f19fc:0x3f3,_0x4ce2b3:0x121,_0x41bd10:0x11c,_0x33c2e3:0x106,_0x43908b:0x8b,_0x5f53a2:0x13f,_0x50cbe6:0x14b},_0x4f08e6={_0x3a2cfc:0x1c,_0x2b0ca7:0x3d2,_0x35c997:0x83},_0x31850b={_0x1bc608:0x6e};function _0x57b644(_0x54c8e5,_0x3405f4,_0x4b04f0,_0x37bc70){return _0x38c793(_0x37bc70,_0x3405f4-_0x31850b._0x1bc608,_0x54c8e5- -0x10b,_0x37bc70-0x51);}const _0x4e5dbe=this[_0x3fdeb4(-0x13a,-0x54,-0x124,-_0x469451._0x5abd9a)](_0x2f9792);function _0x3fdeb4(_0x3b00b4,_0x3b8cf9,_0x2e56b7,_0x4f364f){return _0x2b6123(_0x3b00b4,_0x3b8cf9-_0x4f08e6._0x3a2cfc,_0x4f364f- -_0x4f08e6._0x2b0ca7,_0x4f364f-_0x4f08e6._0x35c997);}if(this[_0x57b644(0x261,0x2c1,0x29c,_0x469451._0x574e53)]!==_0x3fdeb4(-0x11d,-_0x469451._0x1e5b3a,-_0x469451._0x206b9c,-_0x469451._0x32152f))return this[_0x3fdeb4(-_0x469451._0x3f19b3,-_0x469451._0x313ce1,-0x73,-0x5b)](_0x4e5dbe,_0x5ef527);if(this[_0x3fdeb4(-0x83,-_0x469451._0xbfe971,-_0x469451._0x42e928,-0x80)](_0x4e5dbe))return this['response'](_0x4e5dbe,_0x5ef527);try{return await this['completeViaChatCompletionsSurface'](_0x4e5dbe,_0x5ef527);}catch(_0x3de9c5){if(_0x3de9c5 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x3de9c5[_0x3fdeb4(-0x118,-0x110,-_0x469451._0x2fe981,-_0x469451._0x704287)]))return this[_0x3fdeb4(_0x469451._0x287756,-0xc2,-0x4f,-0x33)](_0x4e5dbe[_0x57b644(0x3a1,_0x469451._0x113d93,_0x469451._0x2f19fc,0x308)]),this[_0x3fdeb4(-_0x469451._0x4ce2b3,-_0x469451._0x41bd10,-_0x469451._0x33c2e3,-_0x469451._0x43908b)](_0x4e5dbe,_0x5ef527);throw this[_0x3fdeb4(-0x190,-0x16b,-_0x469451._0x5f53a2,-_0x469451._0x50cbe6)](_0x3de9c5);}throw _0x3de9c5;}}async*[_0x38c793(0x3af,0x4e1,0x479,0x411)](_0x1744a9,_0x2e0ee1){const _0x312e27={_0x5868b1:0x5c0,_0x1f1f9b:0x59e,_0x30e5e6:0x36c,_0x14b3fd:0x3d8,_0x1704ea:0x41d,_0x23afa7:0x48f,_0x3d5e35:0x50c,_0x5a4bb2:0x675,_0x283ded:0x3f9,_0x3a62fd:0x51e,_0x3a2e5e:0x4a8,_0x1533ae:0x648,_0x56977d:0x549,_0x43a332:0x641,_0x56a837:0x4c3,_0x5835ce:0x3d0,_0x1fb68c:0x4b9},_0x2aa26d={_0x55d946:0x2d,_0x4f8842:0xe2},_0x1cedff={_0x511354:0x13e,_0x1962f2:0x139},_0xa663cf=this[_0x53f282(0x5cd,0x60c,_0x312e27._0x5868b1,_0x312e27._0x1f1f9b)](_0x1744a9);function _0x53f282(_0x2613f5,_0x3730a3,_0x2989f9,_0x501fa3){return _0x38c793(_0x3730a3,_0x3730a3-_0x1cedff._0x511354,_0x501fa3-_0x1cedff._0x1962f2,_0x501fa3-0x1bd);}if(this[_0x5bb931(_0x312e27._0x30e5e6,0x467,_0x312e27._0x14b3fd,0x331)]!==_0x5bb931(0x3f8,_0x312e27._0x1704ea,0x459,_0x312e27._0x23afa7)){yield*this[_0x53f282(0x4a6,_0x312e27._0x3d5e35,0x4cb,0x562)](_0xa663cf,_0x2e0ee1);return;}function _0x5bb931(_0x428054,_0x40dcbb,_0x20fdfe,_0x8fcd2d){return _0x2b6123(_0x8fcd2d,_0x40dcbb-_0x2aa26d._0x55d946,_0x20fdfe-0x19c,_0x8fcd2d-_0x2aa26d._0x4f8842);}if(this[_0x53f282(_0x312e27._0x3d5e35,0x5c1,_0x312e27._0x5a4bb2,0x5bb)](_0xa663cf)){yield*this[_0x53f282(0x54a,0x4f3,0x592,0x5b1)](_0xa663cf,_0x2e0ee1);return;}try{yield*this['streamViaChatCompletionsSurface'](_0xa663cf,_0x2e0ee1);}catch(_0x36cb34){if(_0x36cb34 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x36cb34[_0x53f282(0x567,_0x312e27._0x283ded,_0x312e27._0x3a62fd,_0x312e27._0x3a2e5e)])){this[_0x53f282(_0x312e27._0x1533ae,_0x312e27._0x56977d,_0x312e27._0x43a332,0x608)](_0xa663cf[_0x5bb931(0x5af,0x51e,0x518,0x4c2)]),yield*this[_0x5bb931(_0x312e27._0x56a837,0x548,0x4e4,0x4ac)](_0xa663cf,_0x2e0ee1);return;}throw this[_0x5bb931(_0x312e27._0x5835ce,0x393,0x423,_0x312e27._0x1fb68c)](_0x36cb34);}throw _0x36cb34;}}async['getModels'](_0x3c65e0){const _0x561246={_0x22cc5f:0x3af,_0x3d1066:0x2fd,_0x1581b2:0x320,_0x41d3df:0x4c4,_0x2b80b2:0x492,_0x47f8e5:0x446,_0x4a5177:0x385,_0x40d0ce:0x31e,_0x1620fb:0x3cd,_0x45beb4:0x2ba,_0x20f858:0x366,_0x12219e:0x3f3,_0x351bac:0x3fd},_0xd7fcd1={_0x4c12b7:0x3f},_0x1b0d6c={_0x3c7d48:0x73,_0x44d809:0x2a,_0x177a60:0x618,_0xdd1254:0x526},_0x525042=await this['sendRawRequest']({'path':_0x2e182e(0x33b,_0x561246._0x22cc5f,_0x561246._0x3d1066,_0x561246._0x1581b2),'method':_0x2e182e(0x3fa,0x3fb,_0x561246._0x41d3df,_0x561246._0x2b80b2),'signal':_0x3c65e0});if(!_0x525042['ok'])throw this[_0x5d1bb3(0x43f,0x3ce,_0x561246._0x47f8e5,_0x561246._0x4a5177)](await this['toApiError'](_0x525042));const _0x2c0420=await _0x525042[_0x2e182e(0x37f,_0x561246._0x40d0ce,_0x561246._0x1620fb,_0x561246._0x45beb4)](),_0x5ae229=(_0x2c0420[_0x2e182e(_0x561246._0x20f858,_0x561246._0x12219e,_0x561246._0x351bac,0x3d1)]??[])['map'](_0x1009ba=>{const _0x3e44a0={_0xde6ec4:0xf0,_0x5f111b:0x1a7};function _0x598168(_0x3773fc,_0x23239a,_0x14236a,_0x57a6a6){return _0x5d1bb3(_0x57a6a6-_0x3e44a0._0xde6ec4,_0x23239a-0x17c,_0x3773fc,_0x57a6a6-_0x3e44a0._0x5f111b);}const _0x5a20e6=createModelInfo(_0x1009ba);function _0x217198(_0x3b48a9,_0x568920,_0x16a63b,_0x2bb2b9){return _0x2e182e(_0x2bb2b9- -0x39e,_0x568920-0x12f,_0x568920,_0x2bb2b9-0x8b);}return _0x5a20e6[_0x217198(_0x1b0d6c._0x3c7d48,0x2a,-0x68,-_0x1b0d6c._0x44d809)]&&this[_0x598168(0x4a7,0x556,0x53e,0x56c)][_0x598168(0x682,0x692,0x69d,_0x1b0d6c._0x177a60)](_0x5a20e6['id'],_0x5a20e6[_0x598168(0x4ed,0x551,0x536,_0x1b0d6c._0xdd1254)]),_0x5a20e6;});function _0x5d1bb3(_0x2e0765,_0x505155,_0x5c8051,_0x3c28ac){return _0x2b6123(_0x5c8051,_0x505155-_0xd7fcd1._0x4c12b7,_0x2e0765-0x1b8,_0x3c28ac-0x146);}function _0x2e182e(_0x22b3d9,_0x34e164,_0x4dec92,_0x4d7028){return _0x38c793(_0x4dec92,_0x34e164-0x13e,_0x22b3d9- -0x3a,_0x4d7028-0x5e);}return deduplicateModels(_0x5ae229);}};function createHeaders(_0x506a3f){const _0x1c1cbc={_0x5c547e:0x271,_0x52a389:0x48e},_0x54ac6b={_0x4306ef:0x184},_0x468f93={_0x1b7d2a:0x108};function _0xbdb15d(_0x1b73a2,_0x4e7035,_0x268f95,_0x33c108){return _0x2b6123(_0x33c108,_0x4e7035-0x1f4,_0x4e7035-_0x468f93._0x1b7d2a,_0x33c108-0x133);}function _0xbe0f8c(_0x12547e,_0x3638e9,_0x494034,_0x5e295f){return _0x38c793(_0x494034,_0x3638e9-0x96,_0x3638e9- -0xd6,_0x5e295f-_0x54ac6b._0x4306ef);}const _0xdf6e9c=new Headers();for(const [_0x2e9ba3,_0x464b7b]of Object[_0xbe0f8c(_0x1c1cbc._0x5c547e,0x33b,0x36c,0x347)](_0x506a3f)){_0xdf6e9c[_0xbdb15d(0x484,0x478,0x48f,_0x1c1cbc._0x52a389)](_0x2e9ba3,_0x464b7b);}return _0xdf6e9c;}async function fetchRawResponse(_0x34211d){const _0x53e461={_0x2c9455:0xbc,_0x58c334:0x50a,_0x57b1b5:0x538,_0x5a212b:0x1f,_0x501f98:0x92,_0x5209ed:0x7d,_0x75d043:0xb9,_0x23888d:0xee,_0x4544d2:0x158,_0x4b1f4e:0x43f,_0x42139d:0x3fd,_0xb24930:0x4a8},_0x598344={_0x3d2cc8:0x426},_0xc00e87={_0x24722d:0x3,_0xc87979:0x1be,_0x555f08:0x14f};function _0xffed6d(_0x180ec3,_0x1a2ba2,_0x38f460,_0x19727b){return _0x2b6123(_0x1a2ba2,_0x1a2ba2-_0xc00e87._0x24722d,_0x38f460-_0xc00e87._0xc87979,_0x19727b-_0xc00e87._0x555f08);}const _0x4709e0=_0x34211d[_0x479743(_0x53e461._0x2c9455,0x67,0x30,0x84)]??globalThis[_0xffed6d(0x4b9,0x47a,0x51b,0x52e)];function _0x479743(_0x3e133e,_0x332d22,_0x164341,_0x4e6200){return _0x38c793(_0x164341,_0x332d22-0xa7,_0x332d22- -_0x598344._0x3d2cc8,_0x4e6200-0x8f);}return _0x4709e0(_0x34211d[_0xffed6d(0x5b7,_0x53e461._0x58c334,_0x53e461._0x57b1b5,0x53e)],{'method':'POST','headers':createHeaders(_0x34211d[_0x479743(_0x53e461._0x5a212b,-0x82,-0x1c,-_0x53e461._0x501f98)]),'body':JSON[_0x479743(-_0x53e461._0x5209ed,-_0x53e461._0x75d043,-_0x53e461._0x23888d,-_0x53e461._0x4544d2)](_0x34211d[_0xffed6d(_0x53e461._0x4b1f4e,0x4ac,_0x53e461._0x42139d,0x430)]),'signal':_0x34211d[_0xffed6d(_0x53e461._0xb24930,0x4b8,0x497,0x48d)]});}async function fetchJsonResponse(_0x582e06){const _0x1608cf={_0x41057a:0x3c1,_0x523a74:0x307,_0x5785b1:0x43c,_0x170376:0x3eb,_0x594b1b:0x250,_0x5c2abc:0x13c,_0x2e2a2a:0x1aa,_0x165434:0x22a,_0x5cb4b6:0x230,_0x53bfef:0x31c},_0x4848cb={_0x2784f4:0x133,_0x2ee9dc:0xe3},_0x5dfba9={_0x100617:0x17c,_0x364191:0x225,_0x4c156c:0x1e4};function _0x2543d4(_0x4a45d4,_0x5426e1,_0x4165a4,_0x54e763){return _0x38c793(_0x54e763,_0x5426e1-_0x5dfba9._0x100617,_0x4a45d4- -_0x5dfba9._0x364191,_0x54e763-_0x5dfba9._0x4c156c);}function _0x54ce74(_0x23eca1,_0x18efa0,_0x4914cb,_0x552cb9){return _0x2b6123(_0x4914cb,_0x18efa0-_0x4848cb._0x2784f4,_0x23eca1-0x11f,_0x552cb9-_0x4848cb._0x2ee9dc);}const _0x1cdf4e=await fetchRawResponse(_0x582e06);if(!_0x1cdf4e['ok']){const _0x52dd87=await _0x1cdf4e['text'](),_0x4ca4c0=_0x52dd87[_0x54ce74(_0x1608cf._0x41057a,0x42e,0x422,_0x1608cf._0x523a74)]()||_0x1cdf4e[_0x54ce74(_0x1608cf._0x5785b1,0x464,_0x1608cf._0x170376,0x4ef)]||'Unknown\x20provider\x20error';throw new Error(_0x2543d4(0x1cc,_0x1608cf._0x594b1b,0x142,_0x1608cf._0x5c2abc)+_0x1cdf4e[_0x2543d4(0x1af,_0x1608cf._0x2e2a2a,_0x1608cf._0x165434,_0x1608cf._0x5cb4b6)]+':\x20'+_0x4ca4c0);}return await _0x1cdf4e[_0x54ce74(0x3a8,0x392,_0x1608cf._0x53bfef,0x2de)]();}function findLastMessage(_0x38c82a,_0x4d053b){const _0x55098={_0x2b8bc6:0x438,_0x550016:0x4cd,_0xd61306:0x4d2,_0x531214:0x4b8,_0x31447c:0x46f,_0x45cfc3:0x4bf,_0xc9d915:0x4aa},_0x3da8b3={_0xea2b10:0xe1};for(let _0x17beab=_0x38c82a[_0x595067(_0x55098._0x2b8bc6,_0x55098._0x550016,_0x55098._0xd61306,0x463)]-0x1;_0x17beab>=0x0;_0x17beab-=0x1){if(_0x38c82a[_0x17beab][_0x595067(_0x55098._0x531214,_0x55098._0x31447c,_0x55098._0x45cfc3,_0x55098._0xc9d915)]===_0x4d053b)return _0x38c82a[_0x17beab];}function _0x39eedf(_0x5b9f11,_0x9b8223,_0x3f85d4,_0x529995){return _0x2b6123(_0x3f85d4,_0x9b8223-0x130,_0x5b9f11-0x3b,_0x529995-_0x3da8b3._0xea2b10);}function _0x595067(_0x120f40,_0x2f846e,_0x2a4bee,_0xbc8931){return _0x2b6123(_0xbc8931,_0x2f846e-0xb6,_0x120f40-0x19d,_0xbc8931-0x138);}return void 0x0;}function hasTool(_0x2c7c8f,_0x4e2315){const _0x44c21f={_0x33022b:0x526,_0x4f4825:0x47f,_0x196b23:0x5e4},_0x546542={_0x5821f2:0x15a,_0x3601ff:0x190};function _0x794a32(_0x595b3c,_0x2a92f1,_0xeb76b6,_0x1e72cd){return _0x2b6123(_0x595b3c,_0x2a92f1-0x1d4,_0x2a92f1-0x21e,_0x1e72cd-0xd8);}function _0x5b2aa0(_0x5e61ea,_0x240621,_0x4aa3e1,_0x12b9cd){return _0x2b6123(_0x4aa3e1,_0x240621-_0x546542._0x5821f2,_0x5e61ea-0x230,_0x12b9cd-_0x546542._0x3601ff);}return _0x2c7c8f[_0x5b2aa0(_0x44c21f._0x33022b,_0x44c21f._0x4f4825,0x4f4,_0x44c21f._0x196b23)]['some'](_0x37e2c6=>_0x37e2c6[_0x5b2aa0(0x47d,0x44e,0x4cf,0x445)]===_0x4e2315);}function createMockResponse(_0x4e6e6a,_0x322ebc,_0x12979e,_0x50dd60){return{'id':_0x4e6e6a,'content':_0x322ebc,'stopReason':_0x12979e,'usage':_0x50dd60};}var MockModel=class{['model'];[_0x38c793(0x32c,0x34c,0x39f,0x3c9)];[_0x2b6123(0x2d0,0x2c5,0x366,0x2f6)]=[];[_0x2b6123(0x3f5,0x2ea,0x369,0x33f)];constructor(_0x3cb54a={}){const _0x586dec={_0x195783:0x11d,_0x234a4b:0x7,_0x5192b8:0x31,_0x5ef5ae:0x227,_0xd37e95:0x204,_0x212791:0x1df,_0x55ce63:0x1a1,_0x34069f:0x8f,_0x5a3d30:0x87,_0x2d9662:0x86},_0x1fe9b4={_0x5edc1b:0x47e},_0x5a1ae3={_0x13f63e:0xdf,_0x595cd1:0x410};function _0xb97ee6(_0x58cd88,_0x44e8dc,_0x39fb7a,_0x3140d5){return _0x2b6123(_0x39fb7a,_0x44e8dc-_0x5a1ae3._0x13f63e,_0x3140d5- -_0x5a1ae3._0x595cd1,_0x3140d5-0x4);}function _0x17e9a3(_0x1e9855,_0x267b4a,_0x5d5356,_0x18149a){return _0x2b6123(_0x5d5356,_0x267b4a-0x10d,_0x267b4a- -_0x1fe9b4._0x5edc1b,_0x18149a-0xbf);}this['model']=_0x3cb54a[_0xb97ee6(-_0x586dec._0x195783,_0x586dec._0x234a4b,-_0x586dec._0x5192b8,-0x94)]??_0x17e9a3(-0x170,-_0x586dec._0x5ef5ae,-0x2a7,-0x2b2),this[_0x17e9a3(-0x245,-0x20f,-0x1a5,-_0x586dec._0xd37e95)]=_0x3cb54a[_0xb97ee6(-0x1ae,-_0x586dec._0x212791,-0x1e3,-_0x586dec._0x55ce63)]??0x4000,this[_0xb97ee6(-_0x586dec._0x34069f,-0x10a,-0x147,-0xa7)]=_0x3cb54a[_0x17e9a3(-_0x586dec._0x5a3d30,-0x115,-_0x586dec._0x2d9662,-0x167)]?structuredClone(_0x3cb54a['reasoning']):void 0x0;}async['complete'](_0x5257af,_0x22391e){const _0x58feb6={_0x4c87af:0x76,_0x549404:0x58,_0x32612c:0xcd,_0x2ba100:0x60,_0x2d42be:0x1bd,_0x4edaa6:0x266,_0x5c376e:0x21d,_0x2832f9:0x8c,_0x2a3000:0xa4,_0xbbd10c:0x113,_0x2d2eb9:0x197,_0x33ec82:0x77,_0x45f756:0x22,_0x160b43:0x36,_0x29d11b:0x10,_0x498f67:0x41,_0x13edd2:0x88,_0x37a218:0xad,_0x428181:0x44,_0x56f358:0x2,_0x25297e:0xc4,_0x42f3ff:0x20d,_0x3d8c8d:0x1ff,_0x2d89e0:0x1a4,_0x40a381:0x105,_0x2e18f6:0x128,_0x2ba873:0x1cb,_0x77e888:0x104,_0x38441e:0x3d,_0x26e0fb:0xac,_0x479109:0x41,_0x5e679d:0x56,_0x299ce3:0x1e5,_0xfaf48a:0x152,_0x383493:0x48,_0x1af64a:0x7c},_0x4b7b99={_0x3a2d12:0x1a9,_0x1d70ba:0x1cd},_0x5161ac={_0x5f0796:0xdb,_0x164bad:0x401,_0x365f2a:0x29},_0x35dbe9={...structuredClone(_0x5257af),..._0x5257af[_0x52e888(0x144,0x40,0x98,0x45)]===void 0x0&&this[_0x52e888(_0x58feb6._0x4c87af,_0x58feb6._0x549404,0x98,0xad)]!==void 0x0?{'reasoning':structuredClone(this[_0x52e888(_0x58feb6._0x32612c,0x140,0x98,_0x58feb6._0x2ba100)])}:{}};this[_0x59d541(_0x58feb6._0x2d42be,0x1fe,_0x58feb6._0x4edaa6,_0x58feb6._0x5c376e)]['push'](_0x35dbe9);const _0x5be058=findLastMessage(_0x35dbe9['messages'],_0x52e888(_0x58feb6._0x2832f9,_0x58feb6._0x2a3000,0x24,0x9d)),_0x3cb0eb=getToolResultBlocks(_0x5be058),_0x31c110=_0x59d541(_0x58feb6._0xbbd10c,0x96,0x92,_0x58feb6._0x2d2eb9)+this['requests']['length'];if(_0x3cb0eb[_0x52e888(-_0x58feb6._0x33ec82,-_0x58feb6._0x45f756,-_0x58feb6._0x160b43,_0x58feb6._0x29d11b)]>0x0)return createMockResponse(_0x31c110,[{'type':_0x52e888(0xfe,0x13,_0x58feb6._0x498f67,-_0x58feb6._0x13edd2),'text':'I\x20checked\x20the\x20mocked\x20tool\x20result.\x20'+_0x3cb0eb[0x0]['content']}],_0x59d541(_0x58feb6._0x37a218,0x7b,0x1,0xa2),{'inputTokens':0x78,'outputTokens':0x28});const _0x467182=getTextFromMessage(_0x5be058);function _0x52e888(_0x4bde6f,_0x2eb7aa,_0x5df2e8,_0x273fa2){return _0x38c793(_0x4bde6f,_0x2eb7aa-_0x5161ac._0x5f0796,_0x5df2e8- -_0x5161ac._0x164bad,_0x273fa2-_0x5161ac._0x365f2a);}function _0x59d541(_0x456fa8,_0xd0b08a,_0x153c28,_0x6f22cc){return _0x2b6123(_0x153c28,_0xd0b08a-0x19b,_0x456fa8- -_0x4b7b99._0x3a2d12,_0x6f22cc-_0x4b7b99._0x1d70ba);}if(/list .*files|workspace/i[_0x52e888(0xb4,0x7,0xd1,0x26)](_0x467182)&&hasTool(_0x35dbe9,'Bash'))return createMockResponse(_0x31c110,[{'type':_0x52e888(-_0x58feb6._0x428181,0x21,_0x58feb6._0x56f358,_0x58feb6._0x25297e),'id':_0x59d541(_0x58feb6._0x42f3ff,_0x58feb6._0x3d8c8d,0x23d,_0x58feb6._0x2d89e0)+this[_0x59d541(_0x58feb6._0x2d42be,0x287,_0x58feb6._0x40a381,_0x58feb6._0x2e18f6)]['length'],'name':_0x59d541(0x141,_0x58feb6._0x2ba873,0x126,_0x58feb6._0x77e888),'input':{'command':'ls\x20-la'}}],'tool_use',{'inputTokens':0x6e,'outputTokens':0x1c});return createMockResponse(_0x31c110,[{'type':_0x52e888(_0x58feb6._0x38441e,_0x58feb6._0x26e0fb,_0x58feb6._0x479109,_0x58feb6._0x5e679d),'text':_0x59d541(0x11e,_0x58feb6._0x299ce3,_0x58feb6._0xfaf48a,0x182)+_0x467182}],_0x52e888(_0x58feb6._0x383493,-_0x58feb6._0x1af64a,-0x7b,0x33),{'inputTokens':0x50,'outputTokens':0x12});}};export{ANTHROPIC_MESSAGES_STREAM_SURFACE,ANTHROPIC_MESSAGES_SURFACE,AVAILABLE_CHAT_MODEL_SURFACES,AnthropicModel,ChatModel,GitHubModel,MockModel,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,OPENAI_CHAT_COMPLETIONS_SURFACE,OPENAI_RESPONSES_STREAM_SURFACE,OPENAI_RESPONSES_SURFACE,OPENAI_RESPONSES_WEBSOCKET_SURFACE,OpenAiApiError,OpenAiModel,OpenAiResponsesStreamError,ProviderSessionManager,RoutedModel,StaticModelSurfaceRouter,createAnthropicSurfaces,createDefaultWebSocketFactory,createOpenAiApiError,createOpenAiResponsesStreamParser,createOpenAiResponsesWebSocketEvent,createOpenAiSurfaces,fetchJsonResponse,fetchRawResponse,iterateSseEvents,iterateWebSocketMessages,prepareProviderRequest,resolveApiCredential,resolveSessionBaseUrl,toWebSocketUrl,trimTrailingSlashes,waitForWebSocketOpen};
|
|
1
|
+
(function(_0x3e9e6c,_0x411464){const _0x42d486={_0x3769c2:0x494,_0x45e96f:0x215,_0x14a865:0x1d0,_0x5842d5:0x409,_0x1faf05:0x4bc,_0x165fe3:0x55f,_0x276867:0x16c,_0x480fef:0x203,_0x49006f:0x1a6,_0x138861:0x5de,_0x269e7f:0x508,_0x481fa1:0x1ca,_0x33b052:0x1b2,_0xf2b833:0x3d9,_0x44c3b5:0x101,_0x10f08f:0x1f7,_0x599621:0x1b6,_0x47d4d4:0xda,_0x1b4b20:0x17e,_0x506adb:0x592,_0x590563:0x5d1,_0x255cd3:0x52a,_0x2eb790:0x4d6,_0x119a4f:0x103},_0x1b3ab7={_0x3f8c2b:0xf},_0x2deb1c={_0x486b27:0x301};function _0x22b0ec(_0x591d9c,_0x35072a,_0x5de8e6,_0x63d25e){return _0x4762(_0x591d9c-_0x2deb1c._0x486b27,_0x5de8e6);}const _0x4e629e=_0x3e9e6c();function _0x19e46e(_0x5259eb,_0x1878b2,_0x51fabe,_0x17e201){return _0x4762(_0x51fabe-_0x1b3ab7._0x3f8c2b,_0x5259eb);}while(!![]){try{const _0x4e8acf=parseInt(_0x22b0ec(_0x42d486._0x3769c2,0x41d,0x56f,0x44a))/0x1*(-parseInt(_0x19e46e(_0x42d486._0x45e96f,_0x42d486._0x14a865,0x1b7,0x266))/0x2)+parseInt(_0x22b0ec(0x4d1,_0x42d486._0x5842d5,_0x42d486._0x1faf05,_0x42d486._0x165fe3))/0x3*(parseInt(_0x19e46e(_0x42d486._0x276867,0x288,_0x42d486._0x480fef,_0x42d486._0x49006f))/0x4)+parseInt(_0x22b0ec(0x578,_0x42d486._0x138861,0x547,_0x42d486._0x269e7f))/0x5*(-parseInt(_0x19e46e(0x133,_0x42d486._0x481fa1,0x10d,_0x42d486._0x33b052))/0x6)+-parseInt(_0x22b0ec(0x4a0,0x489,_0x42d486._0xf2b833,0x40f))/0x7+parseInt(_0x19e46e(0x91,0x101,0x11f,_0x42d486._0x44c3b5))/0x8+parseInt(_0x19e46e(0x25b,_0x42d486._0x10f08f,_0x42d486._0x599621,_0x42d486._0x47d4d4))/0x9*(-parseInt(_0x19e46e(_0x42d486._0x14a865,_0x42d486._0x1b4b20,0x1f0,0x1cd))/0xa)+-parseInt(_0x22b0ec(_0x42d486._0x506adb,_0x42d486._0x590563,_0x42d486._0x255cd3,_0x42d486._0x2eb790))/0xb*(-parseInt(_0x19e46e(_0x42d486._0x119a4f,0x246,0x18b,0x189))/0xc);if(_0x4e8acf===_0x411464)break;else _0x4e629e['push'](_0x4e629e['shift']());}catch(_0x1f1307){_0x4e629e['push'](_0x4e629e['shift']());}}}(_0xc155,0x2b0c6));import{toOpenAiResponsesRequest}from'../chunk-NHBKADBW.js';import{resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig}from'../chunk-NYZR4XKO.js';import{getTextFromMessage,getToolResultBlocks,normalizeContent,toChatRequest,toModelRequest,toProviderModelRequest}from'../chunk-QDOE7NWO.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';var ProviderRequestConstructionError=class extends Error{constructor(_0x4c15c5){const _0xc5aed9={_0x40446e:0x206,_0x45a8d7:0x83,_0x2910df:0xd6},_0x41eb5c={_0x4609a6:0x21b},_0xfda704={_0x3d390d:0x3ae};super(_0x4c15c5);function _0x353eb3(_0x13173c,_0x3d6c97,_0x2a14f7,_0x4b4d9b){return _0x4762(_0x3d6c97- -_0xfda704._0x3d390d,_0x2a14f7);}function _0x3b96a4(_0x30c59b,_0x3f9c2f,_0x1b9689,_0x293453){return _0x4762(_0x1b9689- -_0x41eb5c._0x4609a6,_0x293453);}this[_0x353eb3(-_0xc5aed9._0x40446e,-0x2a0,-0x311,-0x1da)]=_0x3b96a4(-_0xc5aed9._0x45a8d7,-0x141,-_0xc5aed9._0x2910df,-0xae);}},ProviderStreamEventError=class extends Error{[_0xc7d8a6(-0x236,-0x1d0,-0x1ef,-0x1d2)];[_0xc7d8a6(-0xa7,0x3e,0x32,-0x25)];[_0x74a064(-0x76,0x0,0x6d,0x12b)];constructor(_0x56ddf3,_0x4cf5d7={}){const _0xbd2c89={_0x204c34:0x395,_0x375347:0x22f,_0x3fb228:0x33a,_0x2583d1:0x315,_0x142637:0x4a0,_0x41b035:0x1e0,_0x18dfc9:0x247,_0x331ab2:0xb,_0x11192f:0x8c,_0x40e3e5:0x4c4,_0x1dffa0:0x469,_0x4c1e01:0xb0,_0x4729bf:0xd5,_0x34f569:0x1af},_0x503f35={_0x2129c2:0xd8},_0x2abb26={_0x4d21d7:0xdc,_0x4475e8:0x75};function _0x4f0610(_0x2d3f32,_0x6c3a,_0x36d72e,_0xd7b479){return _0x74a064(_0x2d3f32-_0x2abb26._0x4d21d7,_0x6c3a-0x19,_0x6c3a-_0x2abb26._0x4475e8,_0x36d72e);}super(_0x56ddf3);function _0x56013b(_0x3dd1cf,_0x4c8ee0,_0x541ac7,_0x21f8a1){return _0x74a064(_0x3dd1cf-_0x503f35._0x2129c2,_0x4c8ee0-0x5e,_0x4c8ee0-0x33c,_0x3dd1cf);}this[_0x56013b(_0xbd2c89._0x204c34,0x2ee,_0xbd2c89._0x375347,_0xbd2c89._0x3fb228)]=_0x56013b(_0xbd2c89._0x2583d1,0x3ec,0x45f,_0xbd2c89._0x142637),this[_0x56013b(_0xbd2c89._0x41b035,0x2bc,0x344,_0xbd2c89._0x18dfc9)]=_0x4cf5d7[_0x4f0610(-0x59,-_0xbd2c89._0x331ab2,_0xbd2c89._0x11192f,-0x39)],this[_0x56013b(0x3f7,0x469,0x3fb,0x4d9)]=_0x4cf5d7[_0x56013b(_0xbd2c89._0x40e3e5,_0xbd2c89._0x1dffa0,0x4c8,0x3dd)]??!![],this[_0x4f0610(0x10,0xe2,_0xbd2c89._0x4c1e01,_0xbd2c89._0x4729bf)]=_0x4cf5d7[_0x4f0610(0xf6,0xe2,_0xbd2c89._0x34f569,0x110)];}};function isRetryableProviderStreamEventError(_0x40cd49){const _0x4ba75b={_0x1824e0:0xc2,_0x48dd1e:0x1a3,_0x3a8bd6:0x1f7},_0x2deac4={_0x283f85:0x197,_0x32122c:0x121,_0x45daa7:0x76};function _0x30f19a(_0x392b3c,_0x354c3c,_0x1e2805,_0x1e881d){return _0x74a064(_0x392b3c-_0x2deac4._0x283f85,_0x354c3c-_0x2deac4._0x32122c,_0x1e2805-_0x2deac4._0x45daa7,_0x392b3c);}return _0x40cd49 instanceof ProviderStreamEventError&&_0x40cd49[_0x30f19a(0x1ed,_0x4ba75b._0x1824e0,_0x4ba75b._0x48dd1e,_0x4ba75b._0x3a8bd6)];}var ANTHROPIC_MESSAGES_SURFACE=_0x74a064(0x73,-0xa6,0x10,-0xa),ANTHROPIC_MESSAGES_STREAM_SURFACE=_0xc7d8a6(0x74,0xbd,-0xc7,-0x1b);function parseToolInput(_0x141ec9){const _0x13241e={_0x3416b5:0x3eb,_0x3ad5dd:0x416},_0x31c57d={_0x436656:0x6e,_0x1f5394:0x137,_0x403ed4:0x48b};function _0x1d1a24(_0x135837,_0x42dd34,_0x3f3b8e,_0x511b67){return _0xc7d8a6(_0x135837-_0x31c57d._0x436656,_0x135837,_0x3f3b8e-_0x31c57d._0x1f5394,_0x42dd34-_0x31c57d._0x403ed4);}try{return JSON[_0x1d1a24(0x395,0x381,_0x13241e._0x3416b5,_0x13241e._0x3ad5dd)](_0x141ec9);}catch{return _0x141ec9;}}function resolveReasoningVisibility(_0x2a31b6){const _0x3f15ba={_0x4add6e:0x363,_0x3055d5:0x377,_0xae24f7:0x319,_0x2496da:0x1a0,_0x15550d:0x302},_0x15f154={_0x3be1ad:0x12a,_0x551e3b:0x8b};function _0xb37e53(_0x346d13,_0x2615ed,_0x47ecd6,_0xd5b9a5){return _0xc7d8a6(_0x346d13-_0x15f154._0x3be1ad,_0x2615ed,_0x47ecd6-_0x15f154._0x551e3b,_0xd5b9a5-0x343);}function _0x58c2e0(_0xd72f07,_0x26e6c1,_0x5e9242,_0x38dd4d){return _0x74a064(_0xd72f07-0x123,_0x26e6c1-0x24,_0x38dd4d-0x70,_0xd72f07);}return _0x2a31b6[_0xb37e53(_0x3f15ba._0x4add6e,0x25a,_0x3f15ba._0x3055d5,_0x3f15ba._0xae24f7)]?.[_0x58c2e0(0x177,_0x3f15ba._0x2496da,0x279,0x19b)]??_0xb37e53(_0x3f15ba._0x15550d,0x39b,0x298,0x2d4);}function isUserVisibleThinking(_0x17c2d1){const _0x259992={_0x2f0b26:0x5e6,_0x3a8c6a:0x674,_0x4c1e05:0x645,_0x41463f:0x5db},_0x41e852={_0x4cc85e:0x18d,_0x862a36:0x1b,_0x47d3d2:0x655},_0x59af70=resolveAnthropicThinkingConfig(_0x17c2d1['reasoning']);function _0x321711(_0x5c877a,_0x14b0d3,_0x7f221a,_0x4997c1){return _0xc7d8a6(_0x5c877a-_0x41e852._0x4cc85e,_0x14b0d3,_0x7f221a-_0x41e852._0x862a36,_0x5c877a-_0x41e852._0x47d3d2);}return _0x59af70!==void 0x0&&_0x59af70['type']!=='disabled'&&resolveReasoningVisibility(_0x17c2d1)===_0x321711(_0x259992._0x2f0b26,_0x259992._0x3a8c6a,_0x259992._0x4c1e05,_0x259992._0x41463f);}function createAnthropicThinkingBody(_0x228b7f){const _0x26c82a={_0xdab830:0x552,_0x28c959:0x48,_0x37ddf5:0x588,_0x2164e0:0x4b4,_0x144781:0x4fd,_0x4a8994:0x8a,_0x57c85e:0x79,_0x2d533e:0x110,_0x58143b:0xc5,_0x187f35:0x5c2,_0x28ca1d:0x5bf,_0x51c34f:0x644,_0x38b74a:0x54b,_0x243ef9:0xb0,_0x15e95f:0x1d,_0x54e9d8:0x7f,_0x8846bf:0x5a},_0x4869aa={_0x5206bc:0xca,_0x3553eb:0xdd},_0x10872c={_0x2ed982:0xde,_0x5492b8:0x100},_0x2c6c3c=resolveAnthropicThinkingConfig(_0x228b7f[_0xda0978(0x62a,_0x26c82a._0xdab830,0x5fc,0x6ab)]);if(!_0x2c6c3c||_0x2c6c3c[_0xe3f9ab(-0x9,-_0x26c82a._0x28c959,-0xaf,0x94)]===_0xda0978(_0x26c82a._0x37ddf5,_0x26c82a._0x2164e0,0x505,_0x26c82a._0x144781))return{};const _0x52089b=_0x2c6c3c[_0xe3f9ab(-_0x26c82a._0x4a8994,-_0x26c82a._0x57c85e,-_0x26c82a._0x2d533e,-_0x26c82a._0x58143b)]??(isUserVisibleThinking(_0x228b7f)?'summarized':_0xda0978(0x631,0x682,_0x26c82a._0x187f35,0x614)),_0xa69d7e=_0x2c6c3c['interleaved']?{'anthropic-beta':_0xda0978(0x581,_0x26c82a._0x28ca1d,_0x26c82a._0x51c34f,_0x26c82a._0x38b74a)}:void 0x0;function _0xe3f9ab(_0x26dfb6,_0x3bf1f2,_0x32336e,_0x5b7b45){return _0xc7d8a6(_0x26dfb6-0x12d,_0x5b7b45,_0x32336e-_0x10872c._0x2ed982,_0x26dfb6-_0x10872c._0x5492b8);}if(_0x2c6c3c[_0xda0978(0x54b,0x46f,0x5cc,0x4c1)]===_0xe3f9ab(_0x26c82a._0x243ef9,0x17e,0x8c,0xd3))return{..._0xa69d7e?{'headers':_0xa69d7e}:{},'thinking':{'type':'enabled','budget_tokens':_0x2c6c3c[_0xda0978(0x5b1,0x5cf,0x5ea,0x56e)],'display':_0x52089b}};function _0xda0978(_0x3a3969,_0x5bdaee,_0x2fead2,_0x3efeb5){return _0xc7d8a6(_0x3a3969-_0x4869aa._0x5206bc,_0x5bdaee,_0x2fead2-_0x4869aa._0x3553eb,_0x3a3969-0x654);}return{..._0xa69d7e?{'headers':_0xa69d7e}:{},'thinking':{'type':_0xe3f9ab(-_0x26c82a._0x15e95f,0x7b,-0xe3,-_0x26c82a._0x54e9d8),..._0x2c6c3c[_0xe3f9ab(0x52,_0x26c82a._0x8846bf,0x35,0x116)]?{'effort':_0x2c6c3c['effort']}:{},'display':_0x52089b}};}function toAnthropicRequestContent(_0x5c6205){const _0x16e151={_0x2e8f07:0x39a,_0x177ccd:0x630,_0x17bb78:0x33b,_0x3f229a:0x3f3,_0x6f9e22:0x46b,_0x433789:0x5b8,_0x3dc3e4:0x4bb,_0x24d4ed:0x443,_0x13cf92:0x53f,_0x151d38:0x539,_0x122620:0x4bc,_0xe2b669:0x436,_0xa85ce6:0x476,_0x1ec18f:0x541,_0x43bef6:0x5a3,_0x4dfa70:0x50c,_0x1abf3a:0x5d2,_0x3f30c4:0x409,_0x51cae4:0x411,_0x59fea9:0x6bc,_0x4414e3:0x3be,_0x26e1e8:0x3ea,_0x45e951:0x381,_0x26584b:0x397,_0x3ab394:0x3ea,_0x3f597f:0x3fb,_0xe8344f:0x306,_0x47b637:0x6d4,_0x5437d3:0x640,_0x240151:0x639,_0x32ab8e:0x4d1,_0x5b66fd:0x656,_0x3d6c02:0x579,_0x5e9f52:0x5e4,_0x5aed20:0x56b,_0x47850f:0x3e4,_0x35ae7c:0x402,_0x4de8b7:0x442,_0x5cfad0:0x438,_0x212c85:0x6c3,_0x277dd6:0x56c,_0x2946c3:0x691,_0x5e98b4:0x4b5},_0x32ae4a={_0x5ced93:0x105};if(_0x5c6205[_0xf35dcd(_0x16e151._0x2e8f07,0x45e,0x4b9,0x488)]===_0x109909(0x67f,_0x16e151._0x177ccd,0x62c,0x700)&&_0x5c6205[_0xf35dcd(0x2d7,_0x16e151._0x17bb78,_0x16e151._0x3f229a,0x26c)]?.[_0x109909(0x586,_0x16e151._0x6f9e22,0x4e9,_0x16e151._0x433789)])return structuredClone(_0x5c6205[_0x109909(0x3f2,0x570,_0x16e151._0x3dc3e4,_0x16e151._0x24d4ed)][_0x109909(_0x16e151._0x13cf92,_0x16e151._0x151d38,0x4e9,_0x16e151._0x122620)]);const _0x294547=[];for(const _0x273855 of normalizeContent(_0x5c6205[_0xf35dcd(_0x16e151._0xe2b669,_0x16e151._0xa85ce6,_0x16e151._0x1ec18f,0x48e)])){if(_0x273855[_0x109909(_0x16e151._0x43bef6,_0x16e151._0x4dfa70,0x579,_0x16e151._0x1abf3a)]===_0xf35dcd(0x4ca,_0x16e151._0x3f30c4,0x474,_0x16e151._0x51cae4))continue;if(_0x273855['type']===_0x109909(0x63e,_0x16e151._0x59fea9,0x5e9,0x672)){_0x294547[_0xf35dcd(0x3c4,0x335,0x3f5,_0x16e151._0x4414e3)]({'type':_0xf35dcd(0x49e,_0x16e151._0x26e1e8,_0x16e151._0x45e951,0x3ec),'thinking':_0x273855[_0xf35dcd(_0x16e151._0x26584b,_0x16e151._0x3ab394,_0x16e151._0x3f597f,_0x16e151._0xe8344f)],'signature':_0x273855[_0x109909(_0x16e151._0x47b637,_0x16e151._0x5437d3,0x670,_0x16e151._0x240151)]});continue;}if(_0x273855[_0x109909(_0x16e151._0x32ab8e,_0x16e151._0x5b66fd,_0x16e151._0x3d6c02,_0x16e151._0x5e9f52)]===_0x109909(_0x16e151._0x5aed20,_0x16e151._0x47850f,0x4b4,_0x16e151._0x35ae7c)){_0x294547[_0x109909(_0x16e151._0x4de8b7,0x45a,0x4b5,_0x16e151._0x5cfad0)]({'type':_0x109909(_0x16e151._0x212c85,_0x16e151._0x277dd6,0x631,_0x16e151._0x2946c3),'data':_0x273855['data']});continue;}_0x294547[_0x109909(0x4bc,0x44d,_0x16e151._0x5e98b4,0x4e4)](structuredClone(_0x273855));}function _0xf35dcd(_0x43a648,_0x4c8ac7,_0x5e9211,_0xa82f47){return _0xc7d8a6(_0x43a648-0x139,_0x5e9211,_0x5e9211-_0x32ae4a._0x5ced93,_0x4c8ac7-0x502);}function _0x109909(_0x25b053,_0x689fc8,_0xf07f02,_0x15aadc){return _0x74a064(_0x25b053-0x190,_0x689fc8-0x13f,_0xf07f02-0x530,_0x689fc8);}return _0x294547;}function createAnthropicRequest(_0x40bf49,_0x51dfb9){const _0x4e9590={_0x529d17:0x8a,_0x2a744a:0x92,_0x13f1d5:0x64f,_0x19687e:0x58b,_0x8de58a:0x49a,_0x3b7abd:0x572,_0x22077a:0xde,_0x534f30:0x9b,_0x29a93e:0xe6,_0x3a6490:0x403,_0x3610a4:0x142,_0x59d578:0x37,_0x2811e8:0xe2,_0x19b3a4:0x4d2,_0xa1bb64:0x515},_0x478cfc={_0x248f57:0x494},_0x3c75c5={_0x1a91a1:0x103,_0x595d08:0x61};function _0x1bfec3(_0x59be2a,_0x28abad,_0x3c4a96,_0x41328c){return _0x74a064(_0x59be2a-0x153,_0x28abad-_0x3c75c5._0x1a91a1,_0x3c4a96-_0x3c75c5._0x595d08,_0x59be2a);}const _0x3ef5cb=toProviderModelRequest(_0x40bf49);function _0x387cdb(_0xbf36e7,_0x196f23,_0x22ecb2,_0x2ca8dd){return _0x74a064(_0xbf36e7-0x69,_0x196f23-0xbc,_0x2ca8dd-_0x478cfc._0x248f57,_0xbf36e7);}const _0x30b855=createAnthropicThinkingBody(_0x40bf49);return{'accept':_0x51dfb9?'text/event-stream':_0x1bfec3(_0x4e9590._0x529d17,_0x4e9590._0x2a744a,0x73,0x8a),'body':{..._0x3ef5cb,'messages':_0x40bf49[_0x387cdb(0x5f5,0x4e7,_0x4e9590._0x13f1d5,_0x4e9590._0x19687e)][_0x387cdb(0x58a,0x5ca,_0x4e9590._0x8de58a,_0x4e9590._0x3b7abd)](_0x2e9635=>{return{'role':_0x2e9635['role'],'content':toAnthropicRequestContent(_0x2e9635)};}),..._0x30b855[_0x1bfec3(-0x8,_0x4e9590._0x22077a,_0x4e9590._0x534f30,_0x4e9590._0x29a93e)]?{'thinking':_0x30b855[_0x387cdb(0x59b,0x543,0x57c,0x4ce)]}:{},..._0x51dfb9?{'stream':!![]}:{},..._0x40bf49[_0x1bfec3(0xb8,0xa9,0x62,0xe5)]?{'output_config':{'format':{'type':_0x387cdb(0x4e1,0x4a4,_0x4e9590._0x3a6490,_0x4e9590._0x8de58a),'schema':_0x40bf49[_0x387cdb(0x4fb,0x4e1,0x422,0x495)][_0x1bfec3(0xc4,0x15f,_0x4e9590._0x3610a4,0xb3)]}}}:{}},..._0x30b855[_0x1bfec3(_0x4e9590._0x59d578,0xbe,_0x4e9590._0x2811e8,0x10c)]?{'headers':_0x30b855[_0x387cdb(0x5f9,_0x4e9590._0x19b3a4,0x4ee,_0x4e9590._0xa1bb64)]}:{},'path':'/v1/messages'};}function parseAnthropicResponse(_0x48b038,_0x1355a8){const _0xcaced6={_0xccd182:0x2,_0x1c2e8d:0xfe,_0x5eaba2:0x86,_0x24fbad:0x100,_0x1d7d31:0x386,_0x272e41:0x344,_0x5722b8:0x419,_0x4126fa:0x3f6,_0x32daa9:0x3d9,_0x261cc1:0x336,_0x47fb60:0x377,_0x2c8a39:0x404,_0x4c9cbb:0x523,_0x47d0fa:0x54b,_0xcfce5f:0x13,_0x3b185d:0x9,_0x1eb420:0xdc,_0x341b54:0x192,_0x31e019:0x178,_0x3c2d06:0x70,_0x3267e8:0x20f,_0x2eeaae:0x35c,_0x137a09:0x1f8,_0x1dbea4:0x2ef,_0xade67:0x340,_0x133f90:0x447,_0x4052f2:0x2c1,_0x2d1bb5:0x33a,_0x5339cd:0x467,_0x30e410:0x153,_0x55e940:0xbb,_0x9ba2e:0x155,_0x56c7d2:0x38e,_0x408398:0x20b,_0x163d27:0x304,_0x410009:0x71,_0x28bb8e:0x66,_0x1c2a39:0x39c,_0x14f114:0x310,_0x48fda0:0x7e,_0x181a41:0x6d,_0x553941:0x3a3,_0x1b9811:0x2bb,_0x62e5d4:0x14,_0x1390da:0x26,_0x1996bd:0xad,_0x580ceb:0x176,_0x521b5b:0x4c4,_0x1c15d6:0x466,_0x109946:0x4fb,_0xf8bf9:0xfd,_0x277aa1:0xad,_0x1fe919:0x347,_0x18f1fe:0x42a,_0x1d0158:0x362,_0x2afb51:0xd4,_0x8f8f72:0x14a,_0x56a062:0xa3,_0x2bb824:0xb0,_0x14fa0f:0xad,_0x5ae804:0x300,_0x6282bf:0x205,_0x35c02d:0x2c5,_0xfb4da6:0x3fd,_0x4117b8:0x42a,_0x2df4e:0x37a,_0x3ea1e4:0xc8,_0x55bf82:0x2d,_0x3db192:0x12c,_0x5de4db:0x45,_0x532497:0x7b,_0x4dd3c0:0x21,_0x1699ce:0x2a,_0x122328:0x470,_0x36bca8:0x2da},_0xadbf7d={_0x1d016e:0x16c,_0x4a5428:0x112},_0x1884e1={_0x283be0:0xff};function _0x27499e(_0x4ff9eb,_0x84077,_0x54d5f1,_0x353462){return _0x74a064(_0x4ff9eb-_0x1884e1._0x283be0,_0x84077-0x122,_0x54d5f1-0x33d,_0x353462);}const _0x2f8e54=[],_0x42c2c5=_0x48b038[_0x3c6ccf(_0xcaced6._0xccd182,_0xcaced6._0x1c2e8d,_0xcaced6._0x5eaba2,_0xcaced6._0x24fbad)]??[];let _0x14aa59=![];function _0x3c6ccf(_0x50f11a,_0x596664,_0x383c06,_0x5621db){return _0xc7d8a6(_0x50f11a-0xf7,_0x596664,_0x383c06-_0xadbf7d._0x1d016e,_0x383c06-_0xadbf7d._0x4a5428);}for(const _0x15d7ac of _0x42c2c5){if(_0x15d7ac[_0x27499e(0x379,0x386,_0xcaced6._0x1d7d31,_0xcaced6._0x272e41)]==='thinking'){_0x14aa59=!![];isUserVisibleThinking(_0x1355a8)&&_0x2f8e54['push']({'type':_0x27499e(0x404,_0xcaced6._0x5722b8,_0xcaced6._0x4126fa,0x36d),'thinking':_0x15d7ac[_0x27499e(_0xcaced6._0x32daa9,_0xcaced6._0x261cc1,_0xcaced6._0x47fb60,_0xcaced6._0x2c8a39)],'signature':_0x15d7ac[_0x27499e(_0xcaced6._0x4c9cbb,_0xcaced6._0x47d0fa,0x47d,0x45c)]});continue;}if(_0x15d7ac[_0x3c6ccf(_0xcaced6._0xcfce5f,-0xc5,_0xcaced6._0x3b185d,_0xcaced6._0x1eb420)]===_0x3c6ccf(_0xcaced6._0x341b54,_0xcaced6._0x31e019,0xc1,_0xcaced6._0x3c2d06)){_0x14aa59=!![];isUserVisibleThinking(_0x1355a8)&&_0x2f8e54[_0x27499e(_0xcaced6._0x3267e8,_0xcaced6._0x2eeaae,0x2c2,_0xcaced6._0x137a09)]({'type':_0x27499e(0x2df,0x2fb,0x2c1,0x26e),'data':_0x15d7ac[_0x27499e(0x3b0,_0xcaced6._0x1dbea4,_0xcaced6._0xade67,0x2c7)]});continue;}if(_0x15d7ac[_0x27499e(_0xcaced6._0x133f90,0x308,0x386,0x3ba)]===_0x27499e(0x267,_0xcaced6._0x4052f2,0x323,_0xcaced6._0x2d1bb5)){_0x15d7ac['text'][_0x27499e(0x474,0x487,_0xcaced6._0x5339cd,0x4d2)]>0x0&&_0x2f8e54[_0x3c6ccf(-_0xcaced6._0x30e410,-0xe4,-_0xcaced6._0x55e940,-_0xcaced6._0x9ba2e)](structuredClone(_0x15d7ac));continue;}_0x2f8e54[_0x27499e(0x24d,_0xcaced6._0x56c7d2,0x2c2,_0xcaced6._0x408398)](structuredClone(_0x15d7ac));}return{'id':_0x48b038['id']??_0x27499e(0x334,0x263,_0xcaced6._0x163d27,0x362)+Date['now'](),'content':_0x2f8e54,'stopReason':_0x2f8e54[_0x3c6ccf(-0xcb,-_0xcaced6._0x410009,-0xaa,-_0xcaced6._0x28bb8e)](_0x46ef47=>_0x46ef47[_0x3c6ccf(0xc1,0x81,0x9,-0xb)]===_0x3c6ccf(-0x106,-0xe9,-0x6d,-0x2a))?_0x27499e(_0xcaced6._0x1c2a39,0x23b,_0xcaced6._0x14f114,0x327):_0x48b038[_0x3c6ccf(-0x129,-0x3e,-_0xcaced6._0x48fda0,-_0xcaced6._0x181a41)]===_0x27499e(_0xcaced6._0x553941,_0xcaced6._0x1c2a39,0x310,_0xcaced6._0x1b9811)?_0x3c6ccf(-0x126,-0x12c,-_0xcaced6._0x181a41,_0xcaced6._0x62e5d4):'end_turn','usage':{'inputTokens':(_0x48b038[_0x3c6ccf(_0xcaced6._0x1390da,0xf3,_0xcaced6._0x1996bd,_0xcaced6._0x580ceb)]?.[_0x27499e(0x49a,_0xcaced6._0x521b5b,_0xcaced6._0x1c15d6,_0xcaced6._0x109946)]??0x0)+(_0x48b038[_0x3c6ccf(_0xcaced6._0xf8bf9,0x146,_0xcaced6._0x277aa1,0x40)]?.['cache_read_input_tokens']??0x0)+(_0x48b038[_0x27499e(_0xcaced6._0x1fe919,0x3bd,_0xcaced6._0x18f1fe,_0xcaced6._0x1d0158)]?.[_0x3c6ccf(-_0xcaced6._0x2afb51,-_0xcaced6._0x8f8f72,-_0xcaced6._0x56a062,-_0xcaced6._0x2bb824)]??0x0),'outputTokens':_0x48b038[_0x3c6ccf(0x163,0x127,_0xcaced6._0x14fa0f,0x46)]?.[_0x27499e(_0xcaced6._0x5ae804,_0xcaced6._0x6282bf,_0xcaced6._0x35c02d,0x3a1)]??0x0,..._0x48b038[_0x27499e(0x474,_0xcaced6._0xfb4da6,_0xcaced6._0x4117b8,_0xcaced6._0x2df4e)]?.[_0x3c6ccf(-0x6,-0xa,-0x2a,-_0xcaced6._0x3ea1e4)]?{'cacheReadInputTokens':_0x48b038[_0x3c6ccf(-_0xcaced6._0x55bf82,_0xcaced6._0x3db192,0xad,_0xcaced6._0x5de4db)][_0x3c6ccf(-_0xcaced6._0x532497,_0xcaced6._0x4dd3c0,-_0xcaced6._0x1699ce,0x2a)]}:{},..._0x48b038[_0x27499e(_0xcaced6._0x122328,0x48d,_0xcaced6._0x18f1fe,0x4d5)]?.[_0x27499e(0x283,0x1f4,_0xcaced6._0x36bca8,_0xcaced6._0x35c02d)]?{'cacheCreationInputTokens':_0x48b038[_0x3c6ccf(0x5b,0x128,0xad,0x25)]['cache_creation_input_tokens']}:{}},..._0x14aa59?{'providerState':{'anthropicAssistantContent':structuredClone(_0x42c2c5)}}:{}};}var AnthropicMessagesStreamParser=class{['blocks']=new Map();[_0xc7d8a6(-0xf8,0x28,0x52,-0x21)]=0x0;['cacheReadInputTokens']=0x0;[_0xc7d8a6(-0x1d9,-0x182,-0x171,-0x198)]=0x0;[_0xc7d8a6(-0x154,-0x168,-0x238,-0x16b)]=_0xc7d8a6(-0x174,-0x1bb,-0x1ed,-0x18b)+Date[_0xc7d8a6(-0x17e,-0xe9,0x3,-0xcf)]();[_0xc7d8a6(-0xcd,-0x19f,-0xe4,-0x14b)]=0x0;['request'];[_0xc7d8a6(0x5,-0x65,-0x10e,-0x91)]=_0x74a064(0xcc,0x60,0xd9,0x113);constructor(_0x4e7730){const _0x27b96c={_0x4cd926:0x3c,_0x19ac7d:0x40},_0xe5788f={_0x421296:0x82};function _0x4608ec(_0x262aeb,_0x43b656,_0x4c93fa,_0xae0ff7){return _0x74a064(_0x262aeb-0x132,_0x43b656-_0xe5788f._0x421296,_0x262aeb- -0x18,_0xae0ff7);}this[_0x4608ec(-_0x27b96c._0x4cd926,_0x27b96c._0x19ac7d,0x9b,0x31)]=_0x4e7730;}[_0xc7d8a6(0x19,0x11,0x53,-0x41)](_0x2b60bf){const _0x377922={_0x2d1ced:0xd,_0x5e84ec:0x75,_0x971ae5:0x58,_0x13f7e9:0x20,_0x2ed6df:0xff,_0x47d8c4:0x54,_0x5c3a1e:0x50,_0xcee0b9:0xd1,_0x138e4c:0x15c,_0xe91fcd:0x39,_0x2d2752:0x8f,_0x4a3670:0xa9,_0x40d79d:0x5e,_0x2309ee:0xf2,_0x2a0a8a:0x117,_0x231233:0x118,_0x5bc2d8:0x139,_0x3da769:0xf1,_0x14d48f:0x145,_0x2578b8:0xee,_0x731ecf:0x1e,_0x387221:0x68,_0x22db86:0x208,_0x27b9d1:0x151,_0x2068a5:0x189,_0x247ad9:0x9b,_0x55b9ae:0xc5,_0x1273a1:0x9e,_0x4e6701:0x30,_0x54daa8:0x34,_0x3317e6:0x177,_0x5a61d3:0x11,_0x472f8a:0x1cc,_0x3de8e5:0x21a,_0x25d6f1:0x1f9,_0x35f3b2:0x210,_0x41d9a8:0x1be,_0x3bb58b:0x59,_0x12800c:0xb3,_0x4bd7dd:0x18,_0x8abb14:0x2b,_0xed849b:0x46,_0x4c0436:0x61,_0x5b1283:0x3a,_0x517716:0xb1,_0x58d54d:0x12e,_0x3c6153:0x1d0,_0x4ef824:0x56,_0x42aaf1:0x0,_0xe8b756:0x6,_0x493a8d:0x23,_0xcc6980:0x2e,_0x2c55a0:0x15d,_0x44c18a:0xa,_0x123dc9:0x225,_0x697b22:0xa7,_0x116cf3:0x107,_0xa5318c:0xcd,_0x4ca750:0x93,_0x31d069:0x7c,_0x3f6582:0x17a,_0x1184d7:0x6,_0x242e53:0x17,_0x3e7447:0x119,_0x3b8a29:0x4b,_0x1a5452:0x1a4,_0x18231b:0xf7,_0x31cf4d:0x1d1,_0x380f52:0x34,_0x47902b:0x266,_0x40d773:0x2d5,_0x3c9824:0x57,_0x5a6df3:0x69,_0x46deb9:0x119,_0x3605cd:0x1f3,_0x1f6926:0x69,_0x3449ec:0x143,_0x38bf6a:0x64,_0x25baad:0x196,_0x322eb5:0xc9,_0x917ee4:0x1a9,_0x390ab2:0x99,_0x5cf5eb:0x4c,_0x4bb6dd:0x62,_0x3b665b:0x114,_0x13998a:0xe2,_0x57d530:0x113,_0x22e671:0x225,_0x4c35f4:0x2e3,_0x2a094b:0x14c,_0x1ea0ed:0xfa,_0xaaa7a8:0xcd,_0x3936a9:0x21,_0x29f0ea:0xc5,_0x40c26e:0x10,_0xe4438e:0x10a,_0xd95296:0x112,_0x325644:0x1b,_0x4d7bb9:0xec,_0x2fd8df:0x7b,_0x39b94d:0xcd,_0x2bb89b:0x1f,_0x28544f:0x9a,_0x5e5fc2:0x225,_0x43db26:0x28a,_0x23422e:0x158,_0x2cda1a:0x1dc,_0x1953f1:0x97,_0x599fa9:0x84,_0x9407eb:0x64,_0x39cbc3:0x8f,_0x37c765:0x69,_0x24eb9d:0xdc,_0x48e986:0xbb,_0x4143cc:0x137,_0x45d689:0x4e,_0x8634ee:0x139,_0x390cba:0x115,_0x7b9047:0x120,_0x54c98a:0x180,_0xb41f62:0xb1,_0x2c7be9:0x14f,_0x402407:0x270,_0x2bcf70:0xd5,_0xb336c9:0x1d0,_0x3082c0:0x82,_0x437889:0x133,_0x2bbb53:0xd3,_0x17ef7d:0x96,_0x459876:0x128,_0x5e1a9a:0xab,_0x4f014d:0x1a9,_0x3582d8:0x16,_0x3765bf:0x15c,_0x2f7e78:0xa9,_0x1e3dfc:0x6c,_0x116a09:0x6f,_0x11eaec:0x83,_0x146dd:0x195,_0x34d539:0x10a,_0x25388d:0x119,_0x56a828:0x15b,_0x57f266:0x56,_0x36c820:0x15a,_0x16ec9c:0x69,_0x2e4bab:0x89,_0x5d8b97:0x15,_0x117518:0x198,_0x15b45d:0x1bd,_0x127f72:0xdb,_0x56c31c:0xf9,_0x389989:0x4e,_0xd6791b:0x73,_0x58b92e:0x3d,_0x573a11:0x138,_0x2d6e17:0xb2,_0x490c8d:0xc,_0x596359:0x9c,_0x21a4fc:0x5b,_0x5ebadc:0x6c,_0x443c2:0x69,_0x418f2c:0x60,_0x19032f:0x18,_0x3f4a76:0x76,_0x513b69:0x21f,_0x2aba89:0x259,_0x440f36:0x219,_0x1144b:0x163,_0x742aaa:0x38,_0x11286d:0xb9,_0x24f66e:0x31,_0x499bec:0xb,_0x271880:0x3b,_0x1ee8c4:0x61,_0x46ffa1:0x17e,_0xc51d28:0xab,_0x20f1ec:0x132,_0x444694:0x5,_0x2d9302:0x10e,_0x42b52a:0x3,_0x3c79e5:0x95,_0x3955a6:0x208,_0x52df17:0x270,_0x3a1a50:0x216,_0x5f0214:0x2d1,_0x1ef482:0x290,_0x51d27d:0x205,_0x149e2e:0x7c,_0x28d678:0x9d,_0x23f949:0x33,_0x3f8268:0x42,_0x18b3df:0x1b2,_0x31a310:0xcd,_0x4fbcef:0x26,_0x1366e8:0x2,_0x1ba305:0x72,_0x46bee6:0xe6,_0x30603d:0x87,_0x5c0800:0x22,_0x3ffa60:0x66,_0x4a49a4:0xd6,_0x345f41:0x22,_0x40a04b:0x298,_0x46b2ef:0x153,_0x51f43a:0x29a,_0x32139f:0x68,_0x1bf3ec:0x6,_0x3829d0:0x78},_0xe72b56={_0x57fb42:0x19c,_0x3d2255:0x4f},_0x2a37c8={_0x9cc86d:0x14b,_0x57d4ef:0xdf},_0x512f79=_0x2b60bf[_0x4d86a8(-0x18,_0x377922._0x2d1ced,_0x377922._0x5e84ec,_0x377922._0x971ae5)]('\x0a'),_0x4b4c42=_0x512f79[_0x4d86a8(-0x9a,_0x377922._0x13f7e9,-0x6a,-_0x377922._0x2ed6df)](_0x327d5a=>_0x327d5a[_0x5d02ee(0x11b,0x12f,0x9d,0xa6)](_0x4d86a8(-0x112,-0x40,-0x55,-0x8e)))?.['slice'](0x6)['trim'](),_0x196486=_0x512f79[_0x4d86a8(-_0x377922._0x47d8c4,-_0x377922._0x5c3a1e,-_0x377922._0xcee0b9,-_0x377922._0x138e4c)](_0x174fb2=>_0x174fb2['startsWith']('data:'))[_0x4d86a8(0x171,-_0x377922._0xe91fcd,_0x377922._0x2d2752,_0x377922._0x4a3670)](_0x323c94=>_0x323c94[_0x5d02ee(0x101,0x14f,0x10e,0xe9)](0x5)[_0x4d86a8(-0x6b,-0x165,-0xbc,-0x153)]())[_0x4d86a8(-_0x377922._0x40d79d,-_0x377922._0x2309ee,-0x7a,-0xe3)]('\x0a')['trim']();if(_0x196486['length']===0x0||_0x196486===_0x4d86a8(-_0x377922._0x40d79d,-_0x377922._0x2a0a8a,-0x8b,-0x67))return[];function _0x5d02ee(_0x72008c,_0x371c6d,_0x514918,_0x1da844){return _0x74a064(_0x72008c-_0x2a37c8._0x9cc86d,_0x371c6d-0x1d2,_0x72008c-_0x2a37c8._0x57d4ef,_0x371c6d);}function _0x4d86a8(_0x2a60b3,_0x3b4573,_0x12dcf5,_0x44f22f){return _0x74a064(_0x2a60b3-0x0,_0x3b4573-_0xe72b56._0x57fb42,_0x12dcf5- -_0xe72b56._0x3d2255,_0x2a60b3);}const _0x5ef22c=JSON[_0x5d02ee(0x127,_0x377922._0x231233,_0x377922._0x5bc2d8,0xde)](_0x196486);switch(_0x4b4c42){case _0x4d86a8(_0x377922._0x3da769,_0x377922._0x14d48f,0xb0,_0x377922._0x2578b8):{const _0x18e00c=_0x5ef22c['message'];this['messageId']=_0x18e00c?.['id']??this[_0x4d86a8(-_0x377922._0x731ecf,-0x110,-_0x377922._0x387221,-0x25)],this['inputTokens']=_0x18e00c?.['usage']?.[_0x5d02ee(_0x377922._0x22db86,0x16c,_0x377922._0x27b9d1,_0x377922._0x2068a5)]??this['inputTokens'],this['cacheReadInputTokens']=_0x18e00c?.[_0x4d86a8(_0x377922._0x247ad9,_0x377922._0x55b9ae,_0x377922._0x1273a1,-_0x377922._0x4e6701)]?.[_0x4d86a8(0x50,_0x377922._0x54daa8,-0x39,0x22)]??this[_0x4d86a8(_0x377922._0x3317e6,_0x377922._0x5a61d3,0xd7,0x192)],this['cacheCreationInputTokens']=_0x18e00c?.[_0x5d02ee(_0x377922._0x472f8a,0x225,_0x377922._0x3de8e5,_0x377922._0x25d6f1)]?.['cache_creation_input_tokens']??this[_0x5d02ee(_0x377922._0x35f3b2,0x290,0x21a,_0x377922._0x41d9a8)];break;}case'content_block_start':{const _0x163a3a=typeof _0x5ef22c[_0x5d02ee(0x61,-0x3a,-_0x377922._0x3bb58b,0x27)]===_0x5d02ee(_0x377922._0x12800c,_0x377922._0x4bd7dd,_0x377922._0x8abb14,_0x377922._0xed849b)?_0x5ef22c[_0x5d02ee(_0x377922._0x4c0436,_0x377922._0x5b1283,0xae,_0x377922._0x517716)]:0x0,_0x59a2a3=_0x5ef22c[_0x5d02ee(_0x377922._0x58d54d,_0x377922._0x3c6153,0x1b3,_0x377922._0x4ef824)];if(_0x59a2a3?.[_0x4d86a8(_0x377922._0x42aaf1,-0xe8,-_0x377922._0xe8b756,_0x377922._0x493a8d)]===_0x5d02ee(0xb2,0x148,-_0x377922._0xcc6980,_0x377922._0x2c55a0)&&_0x59a2a3['id']&&_0x59a2a3[_0x5d02ee(0x91,-0x8,-_0x377922._0x44c18a,-_0x377922._0x2d1ced)])return this[_0x5d02ee(_0x377922._0x123dc9,0x1ac,0x2c8,0x2b1)]['set'](_0x163a3a,{'id':_0x59a2a3['id'],'index':_0x163a3a,'inputJson':JSON[_0x5d02ee(_0x377922._0x138e4c,_0x377922._0x697b22,_0x377922._0x116cf3,_0x377922._0xa5318c)](_0x59a2a3[_0x5d02ee(0x195,0x1af,0x26d,0x159)]??{}),'kind':_0x4d86a8(-0x78,-_0x377922._0x4ca750,-_0x377922._0x31d069,-0xf7),'name':_0x59a2a3[_0x4d86a8(0x17,-0x2c,-0x9d,-0x114)]}),[{'type':_0x5d02ee(0xc7,0x1a0,0xbc,_0x377922._0x3f6582),'id':_0x59a2a3['id'],'index':_0x163a3a,'name':_0x59a2a3['name']}];if(_0x59a2a3?.[_0x4d86a8(-0x60,-0x9f,-_0x377922._0x1184d7,_0x377922._0x242e53)]===_0x5d02ee(_0x377922._0x3e7447,_0x377922._0x3b8a29,0x1c7,0x179)){this[_0x4d86a8(_0x377922._0x1a5452,0x5d,_0x377922._0x18231b,_0x377922._0x31cf4d)]['set'](_0x163a3a,{'index':_0x163a3a,'kind':_0x5d02ee(0x119,0xe8,_0x377922._0x380f52,0x1a5),'signature':typeof _0x59a2a3['signature']===_0x5d02ee(0x69,-0x7d,-0x3e,-0x57)?_0x59a2a3[_0x5d02ee(0x21f,_0x377922._0x47902b,0x168,_0x377922._0x40d773)]:'','thinking':typeof _0x59a2a3[_0x5d02ee(_0x377922._0x55b9ae,0x78,0x8d,_0x377922._0x3c9824)]===_0x5d02ee(_0x377922._0x5a6df3,0xd2,0x1f,-0x75)?_0x59a2a3[_0x4d86a8(-0x9a,0x60,-0x69,-0x126)]:typeof _0x59a2a3[_0x5d02ee(_0x377922._0x46deb9,_0x377922._0x3605cd,0x164,0x1df)]===_0x5d02ee(_0x377922._0x1f6926,_0x377922._0x3449ec,0xeb,-_0x377922._0x38bf6a)?String(_0x59a2a3['thinking']):''});break;}if(_0x59a2a3?.['type']===_0x5d02ee(0x1e0,0x11f,0x22b,0x162)){this[_0x4d86a8(_0x377922._0x25baad,_0x377922._0x322eb5,0xf7,0xd1)][_0x5d02ee(0x1fb,_0x377922._0x917ee4,0x14e,0x13e)](_0x163a3a,{'index':_0x163a3a,'kind':'redacted_thinking','data':typeof _0x59a2a3[_0x4d86a8(_0x377922._0x390ab2,-0xd4,-_0x377922._0x5cf5eb,_0x377922._0x4bb6dd)]===_0x4d86a8(-0x148,-0x1b,-0xc5,-_0x377922._0x3b665b)?String(_0x59a2a3[_0x5d02ee(_0x377922._0x13998a,_0x377922._0x57d530,0x16f,0xc2)]):''});break;}this[_0x5d02ee(_0x377922._0x22e671,_0x377922._0x4c35f4,0x17f,_0x377922._0x2a094b)][_0x4d86a8(_0x377922._0x1ea0ed,-0x7,_0x377922._0xaaa7a8,0x3d)](_0x163a3a,{'index':_0x163a3a,'kind':_0x4d86a8(-0xec,-_0x377922._0x3936a9,-_0x377922._0x1f6926,0x63),'text':_0x59a2a3?.[_0x5d02ee(_0x377922._0x29f0ea,_0x377922._0x40c26e,_0x377922._0xe4438e,0x1e)]??''});break;}case _0x4d86a8(-_0x377922._0xd95296,-_0x377922._0x325644,-0x5e,-0xd0):{const _0xa213f3=typeof _0x5ef22c['index']===_0x4d86a8(-_0x377922._0x4d7bb9,0x12,-_0x377922._0x2fd8df,-_0x377922._0x39b94d)?_0x5ef22c[_0x5d02ee(0x61,_0x377922._0x2bb89b,_0x377922._0x28544f,0xf0)]:0x0,_0x47082b=this[_0x5d02ee(_0x377922._0x5e5fc2,_0x377922._0x43db26,0x2d2,0x1f0)][_0x5d02ee(_0x377922._0x23422e,0x15f,0x1c7,_0x377922._0x2cda1a)](_0xa213f3),_0x5e8578=_0x5ef22c[_0x5d02ee(0x83,0x73,0x6b,0x10a)];if(!_0x47082b||!_0x5e8578?.[_0x5d02ee(0x128,0x1fd,0x9a,0x8d)])break;if(_0x5e8578[_0x4d86a8(_0x377922._0x1953f1,0x39,-0x6,_0x377922._0x599fa9)]===_0x5d02ee(0x12f,0x1d9,_0x377922._0x9407eb,_0x377922._0x5c3a1e)&&_0x47082b[_0x4d86a8(-_0x377922._0x39cbc3,0xf,-0xc2,-0x1a2)]===_0x5d02ee(0xc5,_0x377922._0x2ed6df,0x19b,0x116)&&typeof _0x5e8578['text']==='string')return _0x47082b[_0x4d86a8(0x10,-0xa0,-_0x377922._0x37c765,-_0x377922._0x24eb9d)]+=_0x5e8578[_0x5d02ee(0xc5,_0x377922._0x48e986,_0x377922._0x4143cc,0x25)],[{'type':'content_delta','index':_0xa213f3,'text':_0x5e8578[_0x4d86a8(-0x3c,0x30,-0x69,_0x377922._0x45d689)]}];if(_0x5e8578[_0x5d02ee(0x128,0x185,_0x377922._0x8634ee,_0x377922._0x390cba)]===_0x4d86a8(0x1f,0x45,-0x85,-_0x377922._0x7b9047)&&_0x47082b[_0x4d86a8(-0x1a8,0x11,-0xc2,-0x69)]===_0x4d86a8(-0x149,-0xad,-0x7c,-0x1d)&&typeof _0x5e8578[_0x4d86a8(-_0x377922._0x54c98a,-0x142,-_0x377922._0xb41f62,-_0x377922._0x2c7be9)]==='string')return _0x47082b[_0x5d02ee(0x21d,0x28f,0x28c,_0x377922._0x402407)]==='{}'&&(_0x47082b[_0x4d86a8(0xfb,_0x377922._0x2bcf70,0xef,_0x377922._0xb336c9)]=''),_0x47082b['inputJson']+=_0x5e8578[_0x5d02ee(0x7d,_0x377922._0x3082c0,_0x377922._0x437889,0x10d)],[{'type':'tool_use_delta','id':_0x47082b['id'],'index':_0xa213f3,'inputDelta':_0x5e8578[_0x5d02ee(0x7d,_0x377922._0x2bbb53,_0x377922._0x17ef7d,0x8c)]}];if(_0x5e8578[_0x5d02ee(_0x377922._0x459876,_0x377922._0x5e1a9a,0x54,_0x377922._0x4f014d)]===_0x4d86a8(_0x377922._0x3582d8,_0x377922._0x3765bf,_0x377922._0x2f7e78,_0x377922._0x2309ee)&&_0x47082b[_0x5d02ee(_0x377922._0x1e3dfc,0xe3,-_0x377922._0x116a09,0xf9)]===_0x5d02ee(0x119,_0x377922._0x11eaec,_0x377922._0x146dd,_0x377922._0x34d539)){const _0x8f8870=typeof _0x5e8578[_0x5d02ee(_0x377922._0x25388d,_0x377922._0x56a828,_0x377922._0x57f266,_0x377922._0x36c820)]===_0x5d02ee(_0x377922._0x16ec9c,0xf,0x27,-0x13)?String(_0x5e8578[_0x4d86a8(_0x377922._0x2e4bab,-0x33,-_0x377922._0x5d8b97,-0xbb)]):'';if(_0x8f8870[_0x4d86a8(_0x377922._0x117518,_0x377922._0x15b45d,_0x377922._0x127f72,_0x377922._0x56c31c)]>0x0){_0x47082b[_0x5d02ee(0x119,0xa5,_0x377922._0x389989,0x132)]+=_0x8f8870;if(isUserVisibleThinking(this[_0x4d86a8(_0x377922._0x40d79d,_0x377922._0x4c0436,-_0x377922._0xd6791b,-0xa8)]))return[{'type':_0x4d86a8(-_0x377922._0x58b92e,_0x377922._0x573a11,0x88,0xe0),'index':_0xa213f3,'thinking':_0x8f8870}];}}if(_0x5e8578[_0x4d86a8(-_0x377922._0x2d6e17,_0x377922._0x490c8d,-0x6,-0xea)]===_0x4d86a8(_0x377922._0xcc6980,-_0x377922._0x596359,-0x51,-_0x377922._0x21a4fc)&&_0x47082b[_0x5d02ee(_0x377922._0x5ebadc,0x60,-0x26,0x3e)]==='thinking'){const _0x319907=typeof _0x5e8578[_0x4d86a8(0x55,0x34,0xf1,0x1a)]===_0x5d02ee(_0x377922._0x443c2,-_0x377922._0x418f2c,_0x377922._0x19032f,_0x377922._0x3f4a76)?String(_0x5e8578[_0x5d02ee(_0x377922._0x513b69,_0x377922._0x2aba89,_0x377922._0x440f36,_0x377922._0x117518)]):'';if(_0x319907[_0x4d86a8(0x10d,_0x377922._0x1144b,_0x377922._0x127f72,_0x377922._0x742aaa)]>0x0){_0x47082b['signature']=_0x319907;if(isUserVisibleThinking(this[_0x5d02ee(0xbb,_0x377922._0x11286d,-0x19,_0x377922._0x493a8d)]))return[{'type':_0x4d86a8(_0x377922._0x24f66e,-0x95,-_0x377922._0x499bec,0xd7),'index':_0xa213f3,'signature':_0x319907}];}}break;}case _0x5d02ee(0xe1,_0x377922._0x271880,_0x377922._0x1ee8c4,_0x377922._0x46ffa1):{const _0x47b51c=_0x5ef22c[_0x4d86a8(-0xf0,-_0x377922._0x1953f1,-_0x377922._0xc51d28,-_0x377922._0x20f1ec)],_0x43c0cc=_0x5ef22c[_0x4d86a8(_0x377922._0xcc6980,-_0x377922._0x444694,_0x377922._0x1273a1,_0x377922._0x2d9302)];this[_0x4d86a8(-_0x377922._0x42b52a,-0x96,-_0x377922._0x3c79e5,0xe)]=_0x43c0cc?.[_0x5d02ee(_0x377922._0x3955a6,0x202,_0x377922._0x52df17,_0x377922._0x3317e6)]??this[_0x4d86a8(-0x136,0x11,-0x95,-0x11b)],this[_0x5d02ee(0x205,0x156,0x235,_0x377922._0x3a1a50)]=_0x43c0cc?.['cache_read_input_tokens']??this['cacheReadInputTokens'],this[_0x5d02ee(_0x377922._0x35f3b2,_0x377922._0x5f0214,_0x377922._0x1ef482,_0x377922._0x51d27d)]=_0x43c0cc?.[_0x5d02ee(_0x377922._0x149e2e,_0x377922._0x28d678,_0x377922._0x23f949,-0x2a)]??this[_0x4d86a8(0x162,_0x377922._0x3f8268,0xe2,_0x377922._0x18b3df)],this['outputTokens']=_0x43c0cc?.[_0x5d02ee(0x67,_0x377922._0x31a310,-_0x377922._0x5cf5eb,_0x377922._0x4fbcef)]??this['outputTokens'],this[_0x4d86a8(0x5d,_0x377922._0x1366e8,_0x377922._0x1ba305,0xfe)]=_0x47b51c?.[_0x4d86a8(-0xeb,-_0x377922._0x46bee6,-0x8d,-0x80)]==='tool_use'?'tool_use':'end_turn';break;}case _0x4d86a8(_0x377922._0x30603d,0x98,_0x377922._0x5c0800,_0x377922._0x3ffa60):{const _0x1b6a4a=_0x5ef22c[_0x4d86a8(_0x377922._0x46bee6,_0x377922._0x4a49a4,_0x377922._0x345f41,-0x63)];throw new ProviderStreamEventError(_0x1b6a4a?.[_0x4d86a8(0x57,0x135,0x5a,_0x377922._0xd6791b)]??_0x5d02ee(0x1cb,_0x377922._0x40a04b,_0x377922._0x46b2ef,_0x377922._0x51f43a),{'code':_0x1b6a4a?.[_0x4d86a8(_0x377922._0x9407eb,-_0x377922._0x32139f,-_0x377922._0x1bf3ec,_0x377922._0x3829d0)],'retryable':!![]});}}return[];}[_0x74a064(0x6d,0x5e,0xf4,0x93)](){const _0x4db863={_0x281bd1:0x1f6,_0x321f35:0x20c,_0x582edc:0x270,_0x1a4934:0x1e0,_0x376676:0x2b8,_0xece89b:0xff,_0x27018f:0x254,_0x2d4c44:0x159,_0x2885ed:0x284,_0x41c6fd:0x2b6,_0x146b29:0x213,_0x10fbcb:0x24b,_0x1915e5:0x13c,_0x2e77c5:0x107,_0x53b010:0x1e1,_0x2fe1c5:0x1d9,_0x482db8:0x1aa,_0x5deca5:0x21e,_0x3f376c:0x14a,_0xa61d97:0x157,_0x3e39f0:0x179,_0x511e60:0x1f7,_0x58ba77:0x29,_0xe74a29:0x19a,_0x204401:0x34b,_0x277e2f:0x1df,_0x59d5ef:0x320,_0x5d07ce:0x2ac,_0x20d04c:0x2bd,_0x39a4c6:0x120,_0x2fd5c7:0xa6,_0x58e8aa:0x164,_0x1af4ac:0x8b,_0x2054c4:0xba,_0x1ec804:0x1a1,_0xfc2204:0x241,_0x188e48:0x18e,_0x14f83b:0x1b6,_0x59bd4e:0x188,_0xad7763:0x19c,_0x212fde:0xe8,_0x50aa1c:0x1c4,_0x4980d2:0x217,_0x1cd7f6:0x277,_0x7af3d:0x1f5,_0x695b39:0x27c,_0x4a3369:0xa9},_0x4bc18c={_0x4d26a4:0x1e},_0x31f1f9={_0x282797:0x103,_0x397b5a:0x92},_0x267efc=Array[_0x19689e(-_0x4db863._0x281bd1,-0x18a,-_0x4db863._0x321f35,-_0x4db863._0x582edc)](this['blocks'][_0x19689e(-0x23b,-_0x4db863._0x1a4934,-_0x4db863._0x376676,-_0x4db863._0xece89b)]())['sort']((_0xea4a3a,_0x4d1b74)=>_0xea4a3a[_0x19689e(-0x224,-0x262,-0x2f6,-0x1a5)]-_0x4d1b74[_0x19689e(-0x22c,-0x262,-0x31c,-0x1c7)]),_0x157a7e=[];function _0x19689e(_0x572ba5,_0x250444,_0x366f82,_0x36bd21){return _0xc7d8a6(_0x572ba5-0x21,_0x36bd21,_0x366f82-_0x31f1f9._0x282797,_0x250444- -_0x31f1f9._0x397b5a);}function _0x174d5f(_0x41117c,_0x3e35ef,_0x19c6e9,_0x1dd75e){return _0xc7d8a6(_0x41117c-_0x4bc18c._0x4d26a4,_0x19c6e9,_0x19c6e9-0x85,_0x1dd75e- -0xdf);}for(const _0x55c9ed of _0x267efc){if(_0x55c9ed['kind']===_0x19689e(-_0x4db863._0x27018f,-0x1fe,-0x197,-_0x4db863._0x2d4c44)){_0x55c9ed[_0x174d5f(-_0x4db863._0x2885ed,-_0x4db863._0x41c6fd,-_0x4db863._0x146b29,-_0x4db863._0x10fbcb)][_0x174d5f(-_0x4db863._0x1915e5,-0x34,-0x5b,-_0x4db863._0x2e77c5)]>0x0&&_0x157a7e['push']({'type':'text','text':_0x55c9ed[_0x19689e(-_0x4db863._0x53b010,-0x1fe,-_0x4db863._0x2fe1c5,-0x20f)]});continue;}if(_0x55c9ed['kind']===_0x19689e(-0x1ee,-_0x4db863._0x482db8,-0x245,-0x138)){_0x157a7e[_0x19689e(-0x29b,-0x25f,-0x2b9,-_0x4db863._0x5deca5)]({'type':_0x19689e(-0x234,-_0x4db863._0x482db8,-_0x4db863._0x3f376c,-0x12a),'thinking':_0x55c9ed[_0x174d5f(-0x267,-_0x4db863._0xa61d97,-_0x4db863._0x3e39f0,-_0x4db863._0x511e60)],'signature':_0x55c9ed[_0x19689e(_0x4db863._0x58ba77,-0xa4,0x30,-0x3)]});continue;}if(_0x55c9ed['kind']===_0x174d5f(-0xe8,-_0x4db863._0xe74a29,-0x150,-0x130)){_0x157a7e[_0x174d5f(-_0x4db863._0x204401,-_0x4db863._0x277e2f,-_0x4db863._0x59d5ef,-0x2ac)]({'type':'redacted_thinking','data':_0x55c9ed['data']});continue;}_0x157a7e[_0x174d5f(-_0x4db863._0x27018f,-0x236,-0x324,-_0x4db863._0x5d07ce)]({'type':'tool_use','id':_0x55c9ed['id'],'name':_0x55c9ed[_0x19689e(-_0x4db863._0x20d04c,-0x232,-0x207,-0x29d)],'input':parseToolInput(_0x55c9ed[_0x19689e(-_0x4db863._0x39a4c6,-_0x4db863._0x2fd5c7,-_0x4db863._0x58e8aa,-0x99)][_0x19689e(-_0x4db863._0x1af4ac,-_0x4db863._0x2054c4,-0x165,-_0x4db863._0x1ec804)]>0x0?_0x55c9ed['inputJson']:'{}')});}return parseAnthropicResponse({'id':this[_0x19689e(-0x125,-0x1fd,-_0x4db863._0xfc2204,-0x258)],'type':_0x174d5f(-_0x4db863._0x188e48,-0xe2,-_0x4db863._0x14f83b,-_0x4db863._0x59bd4e),'role':_0x19689e(-_0x4db863._0xad7763,-_0x4db863._0x212fde,-0xe2,-0x81),'content':_0x157a7e,'stop_reason':this['stopReason'],'stop_sequence':null,'usage':{'input_tokens':this[_0x174d5f(-_0x4db863._0x50aa1c,-0x23e,-_0x4db863._0x4980d2,-_0x4db863._0x1cd7f6)],'output_tokens':this[_0x19689e(-0x253,-0x1dd,-_0x4db863._0x7af3d,-_0x4db863._0x695b39)],'cache_read_input_tokens':this['cacheReadInputTokens'],'cache_creation_input_tokens':this[_0x174d5f(-0x1c1,-_0x4db863._0x4a3369,-0x55,-0x100)]}},this['request']);}};function createAnthropicSurfaces(){const _0x4340e1={_0x55db04:0x2db,_0xa5f007:0x32c,_0x401261:0x34d},_0x1df69a={_0x31d51d:0xc5},_0x810e67={_0x5a74f2:0x49};function _0xba7c13(_0x343bb9,_0xeb4602,_0x2cd8b2,_0x248e50){return _0x74a064(_0x343bb9-_0x810e67._0x5a74f2,_0xeb4602-0x1ab,_0xeb4602-0x26,_0x248e50);}function _0x1e5743(_0x443fe7,_0x13c4c2,_0x36a40d,_0x4f7444){return _0x74a064(_0x443fe7-0x129,_0x13c4c2-_0x1df69a._0x31d51d,_0x36a40d-0x22c,_0x4f7444);}return[{'id':ANTHROPIC_MESSAGES_SURFACE,'transport':_0x1e5743(0x38c,0x2b5,0x36d,_0x4340e1._0x55db04),'createRequest'(_0xa8e5ae){return createAnthropicRequest(_0xa8e5ae,![]);},'parseResponse'(_0x3abf4c,_0x2d9ba6){return parseAnthropicResponse(_0x3abf4c,_0x2d9ba6);}},{'id':ANTHROPIC_MESSAGES_STREAM_SURFACE,'transport':_0x1e5743(_0x4340e1._0xa5f007,_0x4340e1._0x401261,0x2fd,0x251),'createRequest'(_0x40b6b6){return createAnthropicRequest(_0x40b6b6,!![]);},'createStreamParser'(_0x17e3bd){return new AnthropicMessagesStreamParser(_0x17e3bd);}}];}var StaticModelSurfaceRouter=class{[_0x74a064(0x193,0x198,0xf2,0x92)];[_0x74a064(0x63,0x1a5,0x138,0xb5)];constructor(_0xcb6629){const _0x4bd986={_0x5ac13e:0x440,_0x66f277:0x403,_0x508869:0x3c8,_0x5b2e6b:0x4c6},_0x3cd9b9={_0xc93939:0x10c},_0x2d0804={_0x57f5c7:0x152};this[_0x311fc4(0x3df,0x36f,0x406,_0x4bd986._0x5ac13e)]=_0xcb6629[_0x311fc4(0x3d9,0x37e,_0x4bd986._0x66f277,_0x4bd986._0x508869)];function _0x311fc4(_0x110986,_0x53a6ba,_0x24e6ec,_0x206737){return _0x74a064(_0x110986-0x5d,_0x53a6ba-_0x2d0804._0x57f5c7,_0x206737-0x34e,_0x110986);}function _0x12d86a(_0x3be06c,_0x172928,_0x12e57e,_0x4800ba){return _0x74a064(_0x3be06c-0x54,_0x172928-_0x3cd9b9._0xc93939,_0x4800ba-0x4e3,_0x3be06c);}this['streamSurface']=_0xcb6629[_0x12d86a(0x55d,_0x4bd986._0x5b2e6b,0x481,0x525)];}[_0xc7d8a6(-0x1b8,-0x1c7,-0xdd,-0x141)](_0x4bd395,_0x45e7ae){const _0x2a24db={_0x44a7af:0x28f,_0x109fbe:0xcb,_0x5f350a:0x101,_0x3dc5ac:0xc0,_0xcaab02:0x242,_0x5a7091:0x1b9},_0x9a5f25={_0x5104a8:0x2f,_0x5b8251:0x239},_0x238add={_0x3a5ee7:0xff,_0x2a2cb0:0x11};function _0x5d5001(_0x300a07,_0x876d6b,_0x3d9726,_0xdf76fe){return _0x74a064(_0x300a07-_0x238add._0x3a5ee7,_0x876d6b-_0x238add._0x2a2cb0,_0x876d6b-0x150,_0x3d9726);}function _0x179294(_0x3dcad9,_0x4145a7,_0x9b3849,_0x2bdfb2){return _0x74a064(_0x3dcad9-0xf1,_0x4145a7-_0x9a5f25._0x5104a8,_0x4145a7- -_0x9a5f25._0x5b8251,_0x2bdfb2);}return _0x45e7ae['mode']===_0x179294(-_0x2a24db._0x44a7af,-0x1f7,-0x1d1,-0x29e)?this[_0x179294(-_0x2a24db._0x109fbe,-_0x2a24db._0x5f350a,-_0x2a24db._0x3dc5ac,-0x104)]:this[_0x5d5001(0x228,_0x2a24db._0xcaab02,_0x2a24db._0x5a7091,0x1b5)];}};function trimTrailingSlashes(_0x5f0d20){const _0x5ea682={_0x4bf34b:0x83,_0x5304ac:0x204};function _0x4fdb0c(_0x1de096,_0x4db8e5,_0x1449f0,_0x6de12b){return _0x74a064(_0x1de096-_0x5ea682._0x4bf34b,_0x4db8e5-0x1e1,_0x1de096- -_0x5ea682._0x5304ac,_0x4db8e5);}return _0x5f0d20[_0x4fdb0c(-0xe3,-0x20,-0x43,-0x17e)](/\/+$/,'');}function resolveApiCredential(_0x105de2,_0x2922dd){const _0x32d945={_0x4f0c79:0x1de,_0x52f81a:0x18f,_0x27c93a:0x76},_0x4850c7={_0x4a7675:0x13b},_0x45e2ef={_0x2a9276:0xa0};function _0x27813c(_0xe843cc,_0x8861bd,_0x4e2287,_0x31d060){return _0x74a064(_0xe843cc-0x195,_0x8861bd-0xbd,_0x4e2287-_0x45e2ef._0x2a9276,_0x8861bd);}if(_0x2922dd?.[_0x27813c(_0x32d945._0x4f0c79,0x149,0x109,0x58)])return _0x2922dd[_0x313442(0x6b,_0x32d945._0x52f81a,_0x32d945._0x27c93a,0xe2)];if(!_0x105de2)return void 0x0;function _0x313442(_0x5d3479,_0x4d97d8,_0x1eacb8,_0x55889b){return _0xc7d8a6(_0x5d3479-0x6d,_0x5d3479,_0x1eacb8-_0x4850c7._0x4a7675,_0x55889b-0x1cb);}return{'kind':'api-key','value':_0x105de2};}function resolveSessionBaseUrl(_0x4372b8,_0xc0503a){return trimTrailingSlashes(_0xc0503a?.['endpoints']?.['api']??_0x4372b8);}var model_registry_default={'defaultMaxTokens':0x4000,'defaultModel':_0xc7d8a6(0xb2,-0x58,-0xd7,-0x10),'cliDefaultModel':_0x74a064(-0xa1,-0x71,-0x32,0x7a),'providers':{'anthropic':{'label':_0xc7d8a6(-0xc9,-0x36,-0x1c,-0x7e),'baseUrl':'https://api.anthropic.com','surface':_0xc7d8a6(-0x112,-0x147,-0x16c,-0x142),'authScheme':_0xc7d8a6(-0x41,-0x2a,0x18,-0x52),'defaultModel':'claude-sonnet-4-20250514','defaultModels':[_0xc7d8a6(-0xcc,-0x14a,-0x16c,-0xf4),_0x74a064(0x58,-0x15,0xa0,0x15)],'supportsModelFetch':![],'models':{'claude-sonnet-4-20250514':{'contextWindow':0x30d40,'maxOutput':0x3e80},'claude-3-5-sonnet-20241022':{'contextWindow':0x30d40,'maxOutput':0x2000}}},'zai':{'label':_0xc7d8a6(-0x16d,-0xcf,-0x7f,-0x86),'baseUrl':'https://api.z.ai/api/coding/paas/v4','anthropicBaseUrl':_0x74a064(-0x3,-0x2b,0x57,0x108),'surface':'anthropic-messages','authScheme':'bearer','defaultModel':_0xc7d8a6(-0x134,-0x13c,-0x243,-0x184),'defaultModels':['glm-5.2',_0x74a064(0xad,0x4d,0x10d,0x100),'glm-4.7',_0x74a064(0x4d,0xc2,0x9e,0x90),_0x74a064(0xd7,0x61,0xe0,0x1a9)],'supportsModelFetch':![],'models':{'glm-5.2':{'contextWindow':0xf4240,'maxOutput':0x1f400},'glm-5.1':{'contextWindow':0x30d40,'maxOutput':0x1f400},'glm-4.7':{'contextWindow':0x30d40,'maxOutput':0x1f400},'glm-4.6':{'contextWindow':0x30d40,'maxOutput':0x1f400},'glm-4.5':{'contextWindow':0x30d40,'maxOutput':0x1f400}}},'openrouter':{'label':'OpenRouter','baseUrl':_0xc7d8a6(-0x2,-0x11a,-0x33,-0xe3),'surface':_0xc7d8a6(-0x120,-0xad,0x5a,-0x40),'authScheme':'bearer','defaultModel':'openai/gpt-4o','defaultModels':[_0x74a064(-0x3a,-0x27,-0x23,0x96),'openai/gpt-4o-mini'],'supportsModelFetch':!![],'models':{'anthropic/claude-3.5-sonnet':{'contextWindow':0x30d40,'maxOutput':0x2000},'openai/gpt-4o':{'contextWindow':0x1f400,'maxOutput':0x4000},'openai/gpt-4.1':{'contextWindow':0x1f400,'maxOutput':0x8000}}},'github':{'label':_0xc7d8a6(-0x22,-0x5c,0x2c,-0x30),'surface':_0x74a064(0x3d,0x71,0xb7,0x13f),'defaultModel':'gpt-5.2-codex','defaultModels':[_0xc7d8a6(-0xdf,-0xbc,-0xf5,-0x64),'gpt-4.1',_0x74a064(0xe4,0x1c,0x84,-0x43),_0xc7d8a6(-0xf5,-0x8,-0x64,-0xef),'grok-code-fast-1',_0xc7d8a6(0x11,-0x90,0x39,-0xb)],'supportsModelFetch':!![],'models':{'claude-sonnet-4.5':{'contextWindow':0x30d40,'maxOutput':0x3e80,'surface':'anthropic-messages'},'claude-sonnet-4':{'contextWindow':0x30d40,'maxOutput':0x3e80,'surface':_0x74a064(-0x6b,-0x55,0x10,0x19)},'gpt-5.1-codex':{'contextWindow':0x30d40,'maxOutput':0x186a0},'gpt-5':{'contextWindow':0x30d40,'maxOutput':0x186a0},'gpt-5-mini':{'contextWindow':0x30d40,'maxOutput':0x186a0},'gpt-4.1':{'contextWindow':0x1f400,'maxOutput':0x4000},'gpt-4o':{'contextWindow':0x1f400,'maxOutput':0x4000}}},'openai':{'label':_0xc7d8a6(-0x176,-0x1b8,-0x19c,-0x195),'baseUrl':_0x74a064(-0xd9,-0xa4,-0x4f,-0xca),'surface':_0x74a064(0x8f,0x7b,0x112,0x177),'authScheme':_0x74a064(0x82,0x12,0xdd,0x1b3),'defaultModel':_0xc7d8a6(-0x2d,-0x69,-0x2b,-0x10),'defaultModels':[],'supportsModelFetch':![],'models':{}},'deepseek':{'label':_0x74a064(-0xc8,0x29,-0x10,-0x73),'baseUrl':'https://api.deepseek.com/anthropic','surface':_0x74a064(-0xc6,0xdb,0x10,0x99),'authScheme':_0xc7d8a6(-0x110,-0x120,-0x4f,-0x75),'defaultModel':'deepseek-v4-pro','defaultModels':['deepseek-v4-pro',_0xc7d8a6(-0x1b2,-0x122,-0x61,-0xe4)],'supportsModelFetch':![],'models':{'deepseek-v4-pro':{'contextWindow':0xf4240,'maxOutput':0x5dc00},'deepseek-v4-flash':{'contextWindow':0xf4240,'maxOutput':0x5dc00}}},'minimax':{'label':_0x74a064(0x164,0xcb,0xa2,0xb),'baseUrl':_0x74a064(0xfd,0x7d,0x7b,-0x6a),'surface':_0x74a064(0x58,0x15,0x10,0x31),'authScheme':'bearer','defaultModel':'MiniMax-M3','defaultModels':[_0xc7d8a6(-0xfa,-0x1fc,-0x8a,-0x164)],'supportsModelFetch':![],'models':{'MiniMax-M3':{'contextWindow':0xf4240,'maxOutput':0x7d000},'MiniMax-M2.7':{'contextWindow':0x32000,'maxOutput':0x7d00}}},'commandcode':{'label':_0xc7d8a6(-0x147,-0x113,-0x40,-0xf6),'baseUrl':'https://api.commandcode.ai/provider','modelsBaseUrl':_0xc7d8a6(-0x21e,-0x1af,-0x194,-0x1b3),'surface':_0xc7d8a6(-0xcb,-0x161,-0x157,-0x142),'authScheme':_0xc7d8a6(0x5a,0x80,0x6,-0x52),'defaultModel':_0x74a064(-0x88,0x120,0x5e,0x3),'defaultModels':[],'supportsModelFetch':!![],'models':{}},'xiaomi':{'label':_0x74a064(-0x63,0x34,-0x29,-0x49),'baseUrl':_0xc7d8a6(-0x6b,0x6a,-0xda,-0x69),'modelsBaseUrl':_0xc7d8a6(-0xfb,-0xfe,-0x1cd,-0x143),'surface':_0x74a064(0x64,0x43,0x10,-0x25),'authScheme':_0x74a064(0x3d,0x1b7,0x100,0x97),'defaultModel':_0x74a064(0x11,0x70,0x4d,-0x1b),'defaultModels':[],'supportsModelFetch':!![],'models':{}}}},data=model_registry_default;function findProviderKey(_0x57b1a7){const _0x1c26d5={_0x25d8ea:0x231,_0x42f335:0x557,_0x73208:0x34e},_0x395601={_0x1305b7:0x1aa},_0x79026a={_0x12bcea:0x286},_0x1b6672=_0x57b1a7['toLowerCase']();function _0xc4ec55(_0x295619,_0x5322a2,_0x362802,_0xfca60a){return _0x74a064(_0x295619-0x21,_0x5322a2-0x125,_0x5322a2-_0x79026a._0x12bcea,_0x362802);}function _0x6aa611(_0x3ccaf0,_0x48bb25,_0x4c3e05,_0x559c58){return _0xc7d8a6(_0x3ccaf0-0x8a,_0x559c58,_0x4c3e05-_0x395601._0x1305b7,_0x4c3e05-0x68d);}return Object[_0xc4ec55(0x1e8,_0x1c26d5._0x25d8ea,0x2e9,0x1e1)](data[_0x6aa611(0x505,0x59b,0x4d5,_0x1c26d5._0x42f335)])[_0xc4ec55(0x187,0x26b,_0x1c26d5._0x73208,0x2a7)](_0x5b953b=>_0x5b953b[_0x6aa611(0x5c6,0x47d,0x555,0x4a5)]()===_0x1b6672);}function _0xc7d8a6(_0x4a04ea,_0x3792df,_0x3b3354,_0xbdb77d){return _0x4762(_0xbdb77d- -0x2ae,_0x3792df);}function getProviderProfile(_0x132daa){const _0xe742c1={_0x29c024:0x48d,_0x2d5697:0x47a,_0x5d8e4b:0x41c,_0x31719d:0x441,_0x1b9498:0x4d3,_0x47c445:0x592,_0x3ea874:0x26f,_0x1970b8:0x2d9,_0x5b5a37:0x2a1,_0x309eab:0x4cb,_0x218e99:0x4e0,_0x160648:0x247,_0x5c0e8a:0x21d,_0x4cb29f:0x2a0,_0x541080:0x21e,_0x16b4cf:0x257,_0x18d60f:0x182,_0x2c2905:0x2e6,_0x17bfd7:0x542,_0x3c54df:0x595,_0x1435c3:0x400,_0x6c5a0e:0x310},_0x17bce7={_0x3d401e:0x87},_0x75659f={_0x1aa177:0x14c,_0x262a59:0x38d},_0x4cd387=findProviderKey(_0x132daa);function _0xffab47(_0x5b9cb0,_0x131232,_0x236d9c,_0x1f33b6){return _0xc7d8a6(_0x5b9cb0-_0x75659f._0x1aa177,_0x131232,_0x236d9c-0x49,_0x5b9cb0-_0x75659f._0x262a59);}if(!_0x4cd387)return void 0x0;const _0x5c1255=data[_0x307d38(0x4e1,_0xe742c1._0x29c024,_0xe742c1._0x2d5697,_0xe742c1._0x5d8e4b)][_0x4cd387],_0x2c9149={};function _0x307d38(_0x42ece5,_0x446703,_0x13a6aa,_0x5e576c){return _0xc7d8a6(_0x42ece5-_0x17bce7._0x3d401e,_0x5e576c,_0x13a6aa-0xeb,_0x13a6aa-0x632);}for(const [_0x354716,_0x1761f0]of Object[_0xffab47(0x369,_0xe742c1._0x31719d,0x2c1,0x2c5)](_0x5c1255[_0x307d38(_0xe742c1._0x1b9498,0x65c,_0xe742c1._0x47c445,0x4bd)])){_0x2c9149[_0x354716]=_0x1761f0;}return{'label':_0x5c1255[_0xffab47(_0xe742c1._0x3ea874,_0xe742c1._0x1970b8,0x211,_0xe742c1._0x5b5a37)],'baseUrl':_0x5c1255[_0x307d38(0x50f,_0xe742c1._0x309eab,_0xe742c1._0x218e99,0x594)],'modelsBaseUrl':_0x5c1255['modelsBaseUrl'],'anthropicBaseUrl':_0x5c1255['anthropicBaseUrl'],'surface':_0x5c1255[_0xffab47(0x2e0,_0xe742c1._0x160648,0x2c9,_0xe742c1._0x5c0e8a)],'authScheme':_0x5c1255[_0xffab47(_0xe742c1._0x4cb29f,_0xe742c1._0x541080,0x202,0x254)],'defaultModel':_0x5c1255[_0xffab47(_0xe742c1._0x16b4cf,_0xe742c1._0x18d60f,_0xe742c1._0x2c2905,0x328)],'defaultModels':_0x5c1255[_0x307d38(_0xe742c1._0x17bfd7,0x525,_0xe742c1._0x3c54df,0x599)]??[],'supportsModelFetch':_0x5c1255[_0xffab47(0x351,_0xe742c1._0x1435c3,_0xe742c1._0x6c5a0e,0x2e9)]??![],'models':_0x2c9149};}function getModelProfile(_0x175538,_0xed4bba){const _0x30b4f4={_0x41d854:0x108,_0x14c820:0x1b7,_0x178493:0x1a1,_0x10a5b1:0x220},_0x66ece6={_0x25ff6a:0x13c,_0x4b6828:0x194,_0x2919b2:0x3};function _0x3dfb98(_0x390ff0,_0x4421d2,_0x42d96f,_0x4c63ce){return _0xc7d8a6(_0x390ff0-0x15a,_0x390ff0,_0x42d96f-0x2c,_0x42d96f-0x2c0);}function _0x558dcc(_0x373d71,_0x546291,_0x14d31b,_0x54c3d1){return _0xc7d8a6(_0x373d71-_0x66ece6._0x25ff6a,_0x14d31b,_0x14d31b-_0x66ece6._0x4b6828,_0x546291-_0x66ece6._0x2919b2);}const _0x513a90=findProviderKey(_0x175538);if(!_0x513a90)return void 0x0;return data[_0x3dfb98(0x1df,0x97,_0x30b4f4._0x41d854,0x1eb)][_0x513a90][_0x3dfb98(_0x30b4f4._0x14c820,_0x30b4f4._0x178493,_0x30b4f4._0x10a5b1,0x251)][_0xed4bba];}function resolveModelProfile(_0x52be3d,_0x1fa1cb){const _0x45fa82={_0x21c43e:0x359,_0x585253:0x523,_0x274b20:0x47d,_0x58dc96:0x52d,_0x423f84:0x54a,_0x59f8dc:0x498,_0x1557a4:0x449,_0x461278:0x4e3,_0x2d5273:0x44c,_0x1b0464:0x415,_0x1feed3:0x53a,_0x19b0b8:0x463,_0x2b0455:0x522,_0x18a3ce:0x509,_0x5cfab4:0x4d6,_0x143710:0x3f4,_0xf67dd:0x3dd,_0x486223:0x4ee,_0x34c037:0x4e4,_0x1bdbbe:0x526,_0x5750c3:0x534,_0xbae52f:0x574,_0x2b6b5b:0x587,_0x4310e3:0x543,_0x3dc937:0x400,_0x3172c8:0x487,_0x26bb3f:0x51c,_0x5da9bb:0x56d},_0x5975b0={_0x207703:0x52,_0x3b5864:0x471},_0xc4c3=findProviderKey(_0x52be3d);if(!_0xc4c3)return void 0x0;function _0x32560c(_0x421ff3,_0x50c9d7,_0x455bc0,_0x331ad2){return _0xc7d8a6(_0x421ff3-0x6b,_0x50c9d7,_0x455bc0-0x3c,_0x455bc0-0x5b6);}const _0x4d5dba=data[_0xc03a81(0x40b,0x4da,_0x45fa82._0x21c43e,0x3ed)][_0xc4c3],_0x1ecb24=_0x4d5dba[_0xc03a81(_0x45fa82._0x585253,_0x45fa82._0x274b20,_0x45fa82._0x58dc96,0x507)][_0x1fa1cb];function _0xc03a81(_0x38cd08,_0x34fded,_0x248a14,_0x24a1b8){return _0x74a064(_0x38cd08-0x199,_0x34fded-_0x5975b0._0x207703,_0x38cd08-_0x5975b0._0x3b5864,_0x248a14);}return{'label':_0x4d5dba[_0x32560c(_0x45fa82._0x423f84,0x43b,_0x45fa82._0x59f8dc,0x53d)],'baseUrl':_0x4d5dba['baseUrl'],'modelsBaseUrl':_0x4d5dba[_0xc03a81(_0x45fa82._0x1557a4,_0x45fa82._0x461278,0x3d1,_0x45fa82._0x59f8dc)],'anthropicBaseUrl':_0x4d5dba[_0xc03a81(0x47c,_0x45fa82._0x2d5273,0x39a,_0x45fa82._0x1b0464)],'surface':_0x1ecb24?.[_0xc03a81(0x516,_0x45fa82._0x1feed3,0x4ed,_0x45fa82._0x19b0b8)]??_0x4d5dba[_0x32560c(_0x45fa82._0x2b0455,0x560,_0x45fa82._0x18a3ce,0x5a2)],'authScheme':_0x4d5dba[_0xc03a81(_0x45fa82._0x5cfab4,_0x45fa82._0x143710,0x5b1,0x56d)],'defaultModel':_0x4d5dba[_0xc03a81(0x48d,_0x45fa82._0xf67dd,_0x45fa82._0x486223,_0x45fa82._0x34c037)],'defaultModels':_0x4d5dba[_0xc03a81(_0x45fa82._0x1bdbbe,0x607,_0x45fa82._0x5750c3,_0x45fa82._0xbae52f)],'supportsModelFetch':_0x4d5dba[_0xc03a81(_0x45fa82._0x2b6b5b,0x4b2,0x504,_0x45fa82._0x4310e3)],'contextWindow':_0x1ecb24?.[_0x32560c(0x4a3,0x436,_0x45fa82._0x3dc937,_0x45fa82._0x3172c8)],'maxOutput':_0x1ecb24?.[_0xc03a81(0x50a,0x51f,_0x45fa82._0x26bb3f,_0x45fa82._0x5da9bb)]};}function getDefaultMaxTokens(){const _0x43690b={_0x4c15f2:0x375,_0x170e74:0x2da},_0x2fe627={_0x29e212:0x3d6};function _0x10ca58(_0x11ebc9,_0x4b8c3b,_0x198715,_0x3d87c2){return _0xc7d8a6(_0x11ebc9-0x131,_0x4b8c3b,_0x198715-0x1c2,_0x3d87c2-_0x2fe627._0x29e212);}return data[_0x10ca58(_0x43690b._0x4c15f2,_0x43690b._0x170e74,0x2ec,0x2f0)];}function getDefaultModel(){const _0x7e444c={_0x397bfa:0x54,_0x949cf2:0xb8,_0x2a5072:0x39},_0x13f26b={_0x150b04:0xa5};function _0x5f4b7e(_0x4740a7,_0x2d40f5,_0x58bf14,_0x1b4498){return _0xc7d8a6(_0x4740a7-_0x13f26b._0x150b04,_0x2d40f5,_0x58bf14-0x5a,_0x1b4498-0xfd);}return data[_0x5f4b7e(-0x39,-_0x7e444c._0x397bfa,-_0x7e444c._0x949cf2,-_0x7e444c._0x2a5072)];}function getCliDefaultModel(){const _0x1c7fba={_0x21f888:0x23c,_0x16327a:0x228},_0x44770f={_0x49d66c:0x13e};function _0x11134c(_0x5427ab,_0x38331a,_0x307e34,_0xba3bd4){return _0xc7d8a6(_0x5427ab-_0x44770f._0x49d66c,_0xba3bd4,_0x307e34-0x12d,_0x5427ab-0x31e);}return data[_0x11134c(0x2d7,_0x1c7fba._0x21f888,_0x1c7fba._0x16327a,0x338)];}function getProviderLabel(_0x14bcc7){const _0x12d869={_0xa80e3a:0x308,_0x1743ac:0x287,_0x7528a4:0x386,_0x502d74:0x3fc},_0x13ee55={_0x4853ff:0x50},_0x30ac86={_0x85dd3d:0x182,_0x2b1503:0x504};function _0x37ff16(_0x42c730,_0x15745b,_0xb29ad4,_0x56c494){return _0xc7d8a6(_0x42c730-0x136,_0xb29ad4,_0xb29ad4-_0x30ac86._0x85dd3d,_0x56c494-_0x30ac86._0x2b1503);}const _0x5c434a=findProviderKey(_0x14bcc7);function _0x270493(_0xabd437,_0x16cf04,_0x2e3ff1,_0x432da5){return _0xc7d8a6(_0xabd437-0x2d,_0xabd437,_0x2e3ff1-_0x13ee55._0x4853ff,_0x16cf04-0x46c);}return _0x5c434a?data[_0x37ff16(0x312,_0x12d869._0xa80e3a,_0x12d869._0x1743ac,0x34c)][_0x5c434a][_0x37ff16(_0x12d869._0x7528a4,_0x12d869._0x502d74,0x3e2,0x3e6)]:void 0x0;}function getProviderDefaultModel(_0x485074){const _0xe235e6={_0x33742d:0x28e,_0x3322c0:0x229,_0x2ac556:0x2fd},_0x30ae4a={_0xe95842:0x17e,_0x99224a:0x2e1};function _0x47333f(_0x1ebf07,_0x29fceb,_0x1edd8c,_0x402b2b){return _0x74a064(_0x1ebf07-0x2e,_0x29fceb-_0x30ae4a._0xe95842,_0x402b2b-_0x30ae4a._0x99224a,_0x1edd8c);}const _0x4303a5=findProviderKey(_0x485074);if(!_0x4303a5)return void 0x0;return data['providers'][_0x4303a5][_0x47333f(_0xe235e6._0x33742d,0x2e0,_0xe235e6._0x3322c0,_0xe235e6._0x2ac556)];}function getProviderDefaultModels(_0x23ca6d){const _0xa224b5={_0x3bc2eb:0x39b,_0x27fe74:0x35a,_0x551bff:0x32b},_0x4adc0b={_0x4ecbe9:0x88};function _0x349eac(_0x2a75b0,_0x2bd788,_0x5e1a05,_0x5ab155){return _0xc7d8a6(_0x2a75b0-0xfe,_0x5ab155,_0x5e1a05-_0x4adc0b._0x4ecbe9,_0x2a75b0-0x3f7);}const _0x419243=findProviderKey(_0x23ca6d);function _0xfc8cce(_0x3b91a3,_0xa0efa4,_0x3ec227,_0x220488){return _0x74a064(_0x3b91a3-0xc6,_0xa0efa4-0x96,_0x3ec227-0x456,_0xa0efa4);}if(!_0x419243)return[];return[...data[_0xfc8cce(_0xa224b5._0x3bc2eb,0x46a,0x3f0,0x446)][_0x419243][_0x349eac(_0xa224b5._0x27fe74,0x27f,_0xa224b5._0x551bff,0x279)]??[]];}function providerSupportsModelFetch(_0x10afe0){const _0x405c82=findProviderKey(_0x10afe0);if(!_0x405c82)return![];return data['providers'][_0x405c82]['supportsModelFetch']??![];}function _0xc155(){const _0x1c2d4a=['y2fJAgvFy3jLyxrPB25FAw5WDxrFDg9Rzw5Z','CgfYDgLHBf9QC29U','Ahr0Chm6lY9HCgKUy29TBwfUzgnVzguUywKVChjVDMLKzxiVDJe','Dg9Wx3bYB3zPzgvY','ChjLDMLVDxnFCMvZCg9UC2vFBM90x2zVDw5K','ntGZmtiYsKPzv3jh','l2nOyxqVy29TCgXLDgLVBNm','zgvSDge','y29TCgXLDgvwAwfszxnWB25ZzxntDxjMywnL','BwfYA01VzgvSqxnszxnWB25ZzxnpBMX5','AxngAw5PDgu','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBKTLEq','CMvZCg9UC2vtB2nRzxrtDhjLyw0','uMvZCg9UC2vZifDLyLnVy2TLDcbJBg9ZzwqGyMvMB3jLihjLC3bVBNnLlMnVBxbSzxrLza','A2v5CW','AxnbCNjHEq','D2vIC29JA2v0','B3v0Chv0','l3jLC3bVBNnLCW','ywnXDwLYzvjLC3bVBNnLC1nVy2TLDeXVy2S','Ahr0Chm6lY9HCgKUB3bLBMfPlMnVBs92mq','BMfTzq','ywjVCNrLza','mteWmtCYoeTkuuj3AG','CMvZCg9UC2vZu29JA2v0u2vZC2LVBNm','vw5RBM93BIbWCM92AwrLCIbLCNjVCG','z2v0u3vYzMfJzq','C3vWCg9YDgvKx2vUzhbVAw50CW','yw50AhjVCgLJqxnZAxn0yw50q29UDgvUDa','Aw5WDxruB2TLBNm','t3bLBKfjigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','uMvZCg9UC2vZihn0CMvHBsbMywLSzwq','t3bLBKfj','C3rYzwfTvMLHu3vYzMfJzq','CMvHC29UAw5Nx2rLDgfPBhm','ChjVDMLKzxjbzgfWDgvY','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzgvSDge','C3rVCf9YzwfZB24','DhjHBNnWB3j0','w0rptKvD','CMvTB3zLrxzLBNrmAxn0zw5LCG','t3bLBKfjiefqssbLCNjVCIa','BxnNlq','zgLZCgXHEq','B3v0Chv0sw5KzxHuB1jLyxnVBMLUz0LK','Aw5WDxrFANnVBL9KzwX0yq','DhjPBq','D2fPDezVCLjLDhj5','C2HVDwXKuMv0CNLszxnWB25Zzq','z2XTltqUnW','Dg9Rzw5fEgnOyw5NzufWAvzLCNnPB24','vw5RBM93BIbTB2rLBcbZDxjMywnLoIa','Bwf5yMvfDMLJDfjLC3bVBNnLC1nVy2TLDfnLC3nPB24','zNvUy3rPB24','Dg9VBf91C2u','BNvTyMvY','AM9PBG','y29TCgXLDgvwAwfszxnWB25ZzxnxzwjtB2nRzxrtDxjMywnL','wgLHB21P','Bw9KzwXZqMfZzvvYBa','C3LZDgvT','C3rYzwfTvMLHq29UzMLNDxjLzfn1CMzHy2u','C2LNBMfS','CMvXDwvZDa','B3bLBMfPl2DWDc00BW','CgfYC2vszxnWB25Zzq','v2vIu29JA2v0ignSB3nLzcbIzwzVCMuGB3bLBMLUzW','DxnLCG','y2XVC2u','z2v0qw50AhjVCgLJrgvSzwDHDgu','CMvHC29U','Dg9VBenHBgXZ','zMLUza','Dgv4Da','BwvZC2fNzuLK','Dg9VBf91C2vFzgvSDge','uhjVDMLKzxjszxf1zxn0q29UC3rYDwn0Aw9UrxjYB3i','Aw5JBhvKzunVBNrLBNruExbL','Dg9VBa','y2fWywjSzv9LBMrWB2LUDhm','CMvZB2X2zq','twLUAu1HEc1nmW','t1bftG','rgvLCfnLzwS','y29UDgvUDf9IBg9JA19KzwX0yq','C3rYzwfTvMLHuMvZCg9UC2vZv2vIu29JA2v0u3vYzMfJzq','r0vu','y29UC3vTzvDLyLnVy2TLDev2zw50','C3rHDhvZvgv4Da','C2vZC2LVBK1HBMfNzxi','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBLn0yxrL','C3rYzwfTshr0Cfn1CMzHy2u','CMvZCg9UC2vtB2nRzxq','zxzLBNq6','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzgvSDge','rgLYzwn0igfUC3DLCJOG','qw50AhjVCgLJigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','C2LNBMf0DxjLx2rLBhrH','B3bLBG','yMfZzvvYBa','B3v0Chv0rM9YBwf0','BwvZC2fNzv9KzwX0yq','zgf0yq','DMfSDwvZ','C2vZC2LVBKLK','ANnVBL9Zy2HLBwe','B3v0Chv0vg9Rzw5Z','y2f0y2G','DxnLC1jLC3bVBNnLC0fWAq','CMvZCg9UC2uUB3v0Chv0x2L0zw0Uzg9Uzq','yw50AhjVCgLJqMfZzvvYBa','C3bSAwnL','y29UDgvUDf9PBMrLEa','ignHBM5VDcbWyxjZzsbtu0uGzxzLBNrZ','Ahr0Chm6lY90B2TLBI1WBgfUlxnNCc54AwfVBwLTAw1VlMnVBs92mq','yw50AhjVCgLJlw1LC3nHz2vZ','C2vSzwn0u3vYzMfJzq','yxbWBgLJyxrPB24VANnVBG','BwvKAwfFDhLWzq','DNnJB2rLlZeUmta0lJi','AxrLBq','y2fJAgvFCMvHzf9PBNb1Df90B2TLBNm','C3vTBwfYEv90zxH0','C3vYzMfJzxm','y2fWywjPBgL0AwvZ','Dg9mB3DLCKnHC2u','CMvZCg9UC2uUB3v0Chv0x2L0zw0UywrKzwq','zgvMyxvSDe1VzgvS','y29UC3vTzuv2zw50','CMvXDwvZDe11Dgf0B3jZ','y2HHDfn0CMvHBq','mZaXmKzgsK1rqW','C2vZC2LVBG','C2XPy2u','C3rYzwfTvMLHuMvZCg9UC2vZu3vYzMfJzq','CMvXDwvZDhm','y29TCgXLDgvwAwfsB3v0zxi','yw50AhjVCgLJlxzLCNnPB24','Bwf4x2nVBNrLEhrFD2LUzg93x3rVA2vUCW','y29UDgv4Df9Szw5NDgG','Aw52ywXPzgf0zq','y29TCgXLDgvK','B3v0Chv0sw5KzxHuB0nHBgXjza','C2HVDwXKuMv0CNLtDhjLyw1bDhrLBxb0rxjYB3i','D3m6','CMvHC29UAw5Nx3rLEhq','AgfZ','yxbWBhLnB2rLBerLzMf1BhrZ','y2fSBeLKvg9pDxrWDxrjBMrLEa','l21VzgvSCW','CMvHC29UAw5Nx3rVA2vUCW','BgfIzwW','ywrHChrPDMu','CMvZCg9UC2vjza','nMPnvKTyuG','uhjVDMLKzxiGCMvXDwvZDcbYzxrYEsbSB29Wigv4AxrLzcb1BMv4CgvJDgvKBhK','Aw1Hz2vFDxjS','DgHPBMTPBMC','yw50AhjVCgLJrgvSzwDHDgu','C3rHCNrZv2L0Aa','zMLUzfjLC3bVBNnLC1nVy2TLDenOzwnRCg9PBNq','ywrK','y3jLyxrLsgvHzgvYCW','ChjLCgfYzvjLC3bVBNnLC1nVy2TLDfjLCxvLC3q','AgvHzgvYuMvZB2X2zxi','C3rYzwfT','mJi2nZu4vMjqDwTA','yw50AhjVCgLJx3nPz25HDhvYzv9KzwX0yq','Bwv0Ag9K','ChjVDg9JB2XwzxjZAw9U','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','CgfYC2u','DhLWzq','Dg9VBenHBgXZqNLjBMrLEa','mti2v2Lcvezq','ndy0ndHxzMTmChK','BwLTBY12mI41lxbYBW','CMvZB2X2zujHC2vvCMW','y29UDgvUDf9IBg9JAW','Dgv4Df9KzwX0yq','yxnZAxn0yw50lq','Dg9Rzw4','Dgv4Dej5sw5KzxG','Ahr0Chm6lY9HCgKUyw50AhjVCgLJlMnVBq','ChjLCgfYzunOyxrszxf1zxn0','Bw9KzwW','Ahr0Chm6lY9HCgKUEI5HAs9HCgKVyw50AhjVCgLJ','z2L0AhvI','B3bLBMfPx3jLyxnVBMLUzW','zNjVBq','CMvZCg9UC2u','q29TBwfUzenVzgu','Aw1Hz2u','y2XHDwrLlxnVBM5LDc00ltiWmJuWnte0','y3jLyxrLtwLZC2LUz0nYzwrLBNrPywXfCNjVCG','C2vUza','ChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','v2vIu29JA2v0ihjLCxvLC3qGzMfPBgvK','z3b0ltuTBwLUAq','CMvZCg9UC2uUy29TCgXLDgvK','yxv0AfnJAgvTzq','mJaYns0Xmc0Wmq','zw5KCg9PBNrZ','CMvHC29UAw5Nx2nVBNrLBNq','y3jLzgvUDgLHBa','A2v5','y2HHDgnTCgWT','zgvMyxvSDe1HEfrVA2vUCW','C3rHDhvZ','zgvLChnLzwSTDJqTzMXHC2G','Ahr0Chm6lY9VCgvUCM91DgvYlMfPl2fWAs92mq','Bwv0ywrHDge','zxjYB3i','C3rYzwfTvMLHq2HHDenVBxbSzxrPB25Zu3vYzMfJzq','zgvSzxrL','mtaYnNLQs2LRuG','C29YDa','yxv0BW','D2vIu29JA2v0rMfJDg9YEq','ue9tva','z2v0','y29TCgXLDgu','Ahr0Chm6lY9HCgKUBwLUAw1HEc5PBY9HBNrOCM9WAwm','qMfZAa','C3rYAw5NAwz5','y29UBMvJDgLUzW','Aw50zxjSzwf2zwqTDgHPBMTPBMCTmJaYns0Wns0Xna','ywnJzxb0','AgvHzgvYCW','Aw5PDgLHBev2zw50','BM93','z3b0ltu','mJi1mteWrKjnq2rp','zgLZywjSzwq','B3v0Chv0x3rLEhq','l2nVCgLSB3rFAw50zxjUywWVDJiVDg9Rzw4','Aw5KzxHpzG','C3rYzwfTvMLHugvYC2LZDgvUDfjLC3bVBNnLC1nVy2TLDa','zMLUAxnOx3jLyxnVBG','C2HVDwXKuMv0CNLszxnWB25ZzxntB2nRzxrszxf1zxn0','Dgv4Dc9LDMvUDc1ZDhjLyw0','zNjVBuvUDhjPzxm','igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','Ahr0Chm6lY9HCgKUz2L0AhvIlMnVBq','y2fSBf9Pza','qMvHCMvYia','Aw52ywXPzgf0zvjLC3bVBNnLC1nVy2TLDfnLC3nPB24','yM9KEq','C2HVDwXKuhjLzMvYuMvZCg9UC2vZqxbP','Bwf4','mZyYoe5hrgrnrG','Bwf4t3v0Chv0','C3rYAwn0','B3bLBMfPlxjLC3bVBNnLCY13CW','oNjLyxnVBMLUzZOW','y29UDgvUDc10ExbL','z2XTltqUnG','zwrPDg9YvMvYC2LVBG','y2XHDwrLltmTns1ZB25UzxqTmJaYndeWmJi','vw5ZDxbWB3j0zwqGr2L0shvIig1VzgvSihn1CMzHy2u6ia','twLUAu1HEa','Dg9VBenHBgXpCMrLCG','zwzMB3j0','C3vYzMfJzq','y2HHDenVBxbSzxrPB25Zugf0Aa','CMvHC29UAw5NsxrLBxm','CMvZCg9UC2uUB3v0Chv0x3rLEhqUzgvSDge','BwvZC2fNzq','B2jQzwn0','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzg9Uzq','zMLUywXszxnWB25Zzq','Bw9KzwXfBMrWB2LUDenHy2HL','CM9Szq','yNvKz2v0vg9Rzw5Z','uhjVDMLKzxjtDhjLyw1fDMvUDevYCM9Y','DhjHBNnWB3j0x2vYCM9Y','Bw9KzwXZ','y3jLyxrLu3rYzwfTugfYC2vY','C3vTBwfYEq','zgvMyxvSDe1VzgvSCW','Aw5WDxq','B3bLBMfPlxjLC3bVBNnLCW','ChjLDMLVDxnszxnWB25ZzuLK','yw50AhjVCgLJx3rOAw5RAw5N','C291CMnL','BgfZDfjLC3bVBNnLswq','z2L0AhvIqxbPvxjS','zMv0y2G','B3bLBMfPlxjLC3bVBNnLCY1ZDhjLyw0','Bwf4x2nVBxbSzxrPB25FDg9Rzw5Z','CMvZCg9UC2uUzMfPBgvK','C3rVCfjLyxnVBG','yxbPs2v5','uMf0zsbSAw1PDcbLEgnLzwrLzc4GugXLyxnLihrYEsbHz2fPBIbSyxrLCI4','C3bSAxq','BgLTAxrZ','y29UDgvUDa','Bwf4x3rVA2vUCW','yw50AhjVCgLJ','B2f1DgGTDg9Rzw4','zM9Yy2vgDwXSuMvWBgf5','y3jLyxrLuMvXDwvZDa','wI5bsq','y2HVAwnLCW','BwfWqxbPrxjYB3i','ssbJAgvJA2vKihrOzsbTB2nRzwqGDg9VBcbYzxn1BhqUia','zgvJB2rL','Ahr0Cc1ZC2u','y29UDgvUDf9KzwX0yq','DNnJB2rLlZeUmta2lJe','qw50AhjVCgLJ','Aw5WDxrFC2nOzw1H','Bwf4vg9Rzw5Z','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','y2HHDgnTCgW','zw5Kx3r1CM4','CM91DgvY','CMvMDxnHBa','Dg9VBhm','yMvHCMvY','BwfW','yxv0Ag9YAxPHDgLVBG','z2XTltqUnq','C2nOzw1H','y29TCgXLDgvwAwftDxjMywnL','DxnLCI12AxnPyMXL','mJaYmY0WnI0Wmq','D3nZoG','C2HVDwXKuMv0CNLszxf1zxn0rxjYB3i','C3vTBwfYEuj5sw5KzxG','y29TCgXLDgvwAwfdAgf0q29TCgXLDgLVBNntDxjMywnL','Ahr0Chm6lY90B2TLBI1WBgfUlxnNCc54AwfVBwLTAw1VlMnVBs9HBNrOCM9WAwm','ChjVBxb0x3rVA2vUCW','CMvZCg9UC2vuzxH0ugfYDhm','qw50AhjVCgLJihn0CMvHBsbMywLSzwq','DxnHz2u','y2XHDwrLlxnVBM5LDc00lJu','z2v0t3jdCMvHDgvszxnWB25ZzxntB2nRzxq','y2HHDenVBxbSzxrL','ywrKrxzLBNrmAxn0zw5LCG','y29TCgXLDgvtDxjMywnL','ChjVDg9JB2W','zMLUAxnO','CMvHC29UAw5NugfYDhm','C2L6zq','BwvZC2fNzxm','DgHPBMTPBMDFzgvSDge','B3v0Chv0x2LUzgv4','CMvZCg9UC2vtDhjLyw0','ChjVEhK','yxnZAxn0yw50','AxneB25L','zg9Uzq','BwvZC2fNzv9ZDgfYDa','Ec1HCgKTA2v5','CMvKywn0zwrFDgHPBMTPBMC','zw5HyMXLza','B3v0Chv0sw5KzxG','zMXHDe1HCa','Bg9JA2vK','zMv0y2HjBxbS','C2vUzfDPDgHszxrYAwvZ','AxrLBv9Pza','CMvZCg9UC2uUCMvHC29UAw5Nx3n1Bw1HCNLFDgv4Dc5KB25L','C3rYzwfTv2vIu29JA2v0u3vYzMfJzq','y2XPrgvMyxvSDe1VzgvS','y2fJAgvK','z2XTltuUmq','zNvUy3rPB25Fy2fSBa','yxjNDw1LBNrZ','C2vUzeH0DhbtDxjMywnLuMvXDwvZDa','y29UC3vTzvnZzuv2zw50','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','igrPzcbUB3qGChjVDMLKzsbHBIbivfrqihbHDgG','zw5JCNLWDgvKx2nVBNrLBNq','C3rYzwfTvMLHuM91DgvY','C3vWCg9YDhnnB2rLBezLDgnO','zw5JCNLWDgvKq29UDgvUDa','z2v0tw9KzwXZ','z2v0t3jdCMvHDgvszwfZB25PBMDjDgvT','Dgv4DfbHCNrZ','nvznzNPQDq','C2v0','uhjVDMLKzxiGCMvXDwvZDcbMywLSzwqGD2L0AcbZDgf0DxmG','D2vIC29JA2v0x2nVBM5Ly3rPB25FBgLTAxrFCMvHy2HLza','z2v0uMv0CNLezwXHEu1Z','u3vYzMfJzsa','CMvWBgfJzq','r2L0shvIie1VzgvSCYaVienVCgLSB3q','Dg9VBf91C2vFAwq','Dg9VBf9JywXSCW','ywjVCNq','y2fJAgvszwfKsw5WDxruB2TLBNm','yMfZzty0','CMvHC29UAw5N','Aw5WDxrFDg9Rzw5Z','BgvUz3rO','DMLZAwjPBgL0Eq','C2vUzfjHD1jLCxvLC3q','CMv0CNLHyMXL','zw50CMLLCW','B21PDhrLza','C3rYzwfTvMLHuMvZCg9UC2vZu29JA2v0qxr0zw1WDa','y2fJAgvdCMvHDgLVBKLUChv0vg9Rzw5Z','Bwf4x291Dhb1Df90B2TLBNm','y29TCgXLDgLVBL90B2TLBNnFzgv0ywLSCW','C3vTBwfYEv9PBMrLEa','mtm2otvgyLDKy2m','Cgf0Aa','yw50AhjVCgLJlw1LC3nHz2vZlxn0CMvHBq','C3rYzwfTu3vYzMfJzq','CMvHzhLtDgf0zq','CgvUzgLUzW','B3bLBKfPrgvSzwDHDgu','o2jHC2u2ncW','r2L0shvIq29WAwXVDenOyxqVmc4ZmY4X','Aw5WDxrkC29U','Dg9bCgLfCNjVCG','C2LNBMf0DxjL','Ahr0Cc1QC29U','z3b0ltrV','igrPzcbUB3qGChjVDMLKzsbHifDLyLnVy2TLDcbvuKWGB3iGCgf0Aa','ywDLBNq','z2v0uMvHzgvY','yMXVy2TZ','y2XHDwrLlxnVBM5LDc00','ywnJzxnZvg9Rzw4','CMvZB2X2zxi','DMfSDwu','zMLSDgvY','CMvZB2X2zunYzwrLBNrPywW','y29Kzq','zxzLBNq','Aw5KzxG','Dg9VBfvZzvn0yxj0rw1PDhrLza','yw50AhjVCgLJx3jLzgfJDgvKx3rOAw5RAw5N','ChvZAa','yNvPBgrszxnWB25ZzxntB2nRzxrfDMvUDa','C3vWCg9YDgvKrw5KCg9PBNrZ','B3v0Chv0x3rVA2vUCW','Aw5WDxrFDgv4Da','C3rYAw5N','ChjVDMLKzxjtDgf0zq','y29UBMvJDf9MywLSzwq','A2LUza','zwrPDg9YugX1z2LUvMvYC2LVBG','CMvHza','CMvZCg9UC2vZugf0Aa','qw50AhjVCgLJtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','ANnVBG','DhjPBvn0yxj0','Aw5JBhvKzxm','z2v0t3bLBKfPrgvSzwDHDgu','C29Tzq','C29JA2v0','zgf0ytO','B3v0Chv0x3rVA2vUC19KzxrHAwXZ','ChjVDMLKzxjZ','zgvZy3jPChrPB24','y29UDgv4DfDPBMrVDW'];_0xc155=function(){return _0x1c2d4a;};return _0xc155();}function getOnboardingProviderKeys(){const _0x34c602={_0x557c58:0x282,_0x117622:0x1c0,_0x7e80c5:0x1c1,_0x16d602:0x34a,_0x1fbc3d:0x255},_0x543b93={_0x301fca:0x163};function _0x426603(_0x59ec7e,_0x4d33c8,_0xe61ad,_0x2ee570){return _0x74a064(_0x59ec7e-_0x543b93._0x301fca,_0x4d33c8-0x18d,_0x4d33c8-0x2d7,_0x59ec7e);}function _0x1d17e3(_0x18e77e,_0x139ecc,_0x291d38,_0x491cb5){return _0xc7d8a6(_0x18e77e-0x147,_0x291d38,_0x291d38-0x153,_0x139ecc-0x3b9);}return Object[_0x426603(0x241,_0x34c602._0x557c58,_0x34c602._0x117622,_0x34c602._0x7e80c5)](data[_0x426603(_0x34c602._0x16d602,0x271,0x27b,_0x34c602._0x1fbc3d)]);}function toErrorMessage(_0x2e2ab1){const _0x21e684={_0x4bb5f6:0x401,_0x193bcd:0x4c0,_0x26c197:0x468,_0x4e5eaf:0x53e,_0x4d82c9:0x5b6,_0x34a44f:0x452,_0x21763f:0x4b7,_0x4264f9:0x41,_0x5e5d82:0xcf,_0x3b6c1c:0x94},_0x242b37={_0x4f48d5:0x53},_0x275e7d={_0x32e111:0x6e};if(_0x2e2ab1 instanceof Error&&_0x2e2ab1[_0x1b533(0x599,0x55d,_0x21e684._0x4bb5f6,_0x21e684._0x193bcd)][_0x1b533(_0x21e684._0x26c197,_0x21e684._0x4e5eaf,_0x21e684._0x4d82c9,0x541)]>0x0)return _0x2e2ab1[_0x1b533(_0x21e684._0x34a44f,0x440,_0x21e684._0x21763f,0x4c0)];function _0x393e46(_0xbcb849,_0x150e93,_0x41476d,_0x3473ea){return _0x74a064(_0xbcb849-0xf9,_0x150e93-_0x275e7d._0x32e111,_0xbcb849- -0xa3,_0x3473ea);}function _0x1b533(_0x2e59d1,_0x4b27b8,_0x5d46de,_0x17d08d){return _0x74a064(_0x2e59d1-_0x242b37._0x4f48d5,_0x4b27b8-0xa3,_0x17d08d-0x417,_0x5d46de);}return _0x393e46(-_0x21e684._0x4264f9,-_0x21e684._0x5e5d82,0x20,_0x21e684._0x3b6c1c);}function createDefaultWebSocketFactory(){return({headers:_0x8779bf,url:_0x16475e})=>{const _0x3eec12=globalThis['WebSocket'];return new _0x3eec12(_0x16475e,{'headers':_0x8779bf,'protocols':[]});};}async function*iterateSseEvents(_0x247044,_0x29502c){const _0x486c0={_0x240b2a:0x1bf,_0x2c37b8:0x15c,_0x1e2d69:0x251,_0x5e614:0x142,_0x2dc167:0x181,_0x296ffe:0x162,_0x2ba830:0x149,_0x5bca02:0x14b,_0x57a3c6:0x1c8,_0x190afa:0x204,_0xc132dd:0x14b,_0x14ab50:0x12a,_0x110265:0xdb,_0x3c2df7:0x5,_0x5dfa51:0x6f,_0x2150e7:0x55,_0x5843a1:0xd7,_0x49cff7:0x215,_0x5f0005:0x1db},_0x10f57b={_0x5452e4:0x213,_0x2644c5:0x261,_0x499342:0x2c3,_0x1a3803:0x238},_0x3b4032={_0x1a04c8:0x189,_0xe1a8b:0x103},_0x58e009={_0x567ca0:0xdd,_0x35c569:0x10d};function _0x246e3f(_0x594f61,_0x62bb9b,_0x3aba92,_0x33d97d){return _0xc7d8a6(_0x594f61-0x8,_0x594f61,_0x3aba92-0x156,_0x33d97d-0x25e);}function _0x1c899e(_0x5e9aa5,_0x412835,_0x22920e,_0x14dad0){return _0x74a064(_0x5e9aa5-0x66,_0x412835-0xce,_0x412835- -0x16d,_0x22920e);}const _0x59554c=_0x247044[_0x1c899e(-_0x486c0._0x240b2a,-0xd8,-_0x486c0._0x2c37b8,-0x42)]?.[_0x246e3f(0x2cc,0x2d9,0x26a,_0x486c0._0x1e2d69)]();if(!_0x59554c)return;const _0x1d9394=new TextDecoder('utf-8');let _0x5b0f2f='';const _0x2bd3d0=addAbortListener(_0x29502c,()=>{function _0x14ac6c(_0xe8d962,_0x433830,_0x144914,_0x449360){return _0x246e3f(_0x449360,_0x433830-_0x58e009._0x567ca0,_0x144914-_0x58e009._0x35c569,_0x144914-0x124);}function _0x2b5bd6(_0x44fd58,_0x5b8f78,_0x3a74ba,_0x567205){return _0x1c899e(_0x44fd58-0xa5,_0x567205-_0x3b4032._0x1a04c8,_0x3a74ba,_0x567205-_0x3b4032._0xe1a8b);}void _0x59554c['cancel'](toAbortError(_0x29502c?.[_0x14ac6c(0x245,0x149,_0x10f57b._0x5452e4,0x151)]))[_0x14ac6c(_0x10f57b._0x2644c5,_0x10f57b._0x499342,_0x10f57b._0x1a3803,0x1c7)](()=>{});});try{while(!![]){throwIfAborted(_0x29502c);const {value:_0x1b9b67,done:_0x51688c}=await _0x59554c[_0x1c899e(-0x173,-0x1de,-_0x486c0._0x5e614,-_0x486c0._0x2dc167)]();throwIfAborted(_0x29502c);if(_0x51688c)break;_0x5b0f2f+=_0x1d9394['decode'](_0x1b9b67,{'stream':!![]});while(!![]){const _0x18d6be=_0x5b0f2f[_0x246e3f(_0x486c0._0x296ffe,0x254,0x181,0x195)]('\x0a\x0a');if(_0x18d6be===-0x1)break;const _0xe57e53=_0x5b0f2f[_0x1c899e(-_0x486c0._0x2ba830,-_0x486c0._0x5bca02,-_0x486c0._0x57a3c6,-_0x486c0._0x190afa)](0x0,_0x18d6be);_0x5b0f2f=_0x5b0f2f[_0x1c899e(-0x1df,-_0x486c0._0xc132dd,-0x1d1,-0xdc)](_0x18d6be+0x2),_0xe57e53[_0x1c899e(-0xf2,-0x1a2,-_0x486c0._0x14ab50,-0x1ab)]()[_0x1c899e(-0x8d,-0x43,0x1,-0x29)]>0x0&&(yield _0xe57e53);}}_0x5b0f2f+=_0x1d9394[_0x1c899e(-0x11e,-0x9d,-0x13d,-_0x486c0._0x110265)](),throwIfAborted(_0x29502c),_0x5b0f2f[_0x246e3f(-_0x486c0._0x3c2df7,_0x486c0._0x5dfa51,_0x486c0._0x2150e7,_0x486c0._0x5843a1)]()[_0x246e3f(_0x486c0._0x49cff7,_0x486c0._0x5f0005,0x171,0x236)]>0x0&&(yield _0x5b0f2f);}finally{_0x2bd3d0();}}async function waitForWebSocketOpen(_0x20d399,_0x212f96){const _0x1caa98={_0x5ae571:0x412,_0x47a60e:0x372,_0x2ce6e6:0x225},_0x569d93={_0x415cf9:0x2f4,_0x34876f:0x1f3,_0x421d51:0x2d1,_0x466b74:0x2bb,_0x13a1a2:0x350,_0x2f4139:0x251,_0x2f87f8:0x170},_0x9436c0={_0x3bec88:0x45b,_0x4e6f05:0xd9,_0x3f9474:0xa7},_0x389699={_0x4ad971:0x4aa,_0x41689f:0x419,_0x54b908:0x352},_0x399c46={_0x1f1fcf:0x8f,_0x374a11:0xd,_0x436ed2:0x9f,_0x143fc7:0xf},_0x5365f7={_0x5416cf:0x27b},_0x153a35={_0x1420ec:0x11b,_0x4c395c:0x3c4};function _0x2e5ba5(_0x4ee1e3,_0x4a4ce8,_0x261ef3,_0x745745){return _0xc7d8a6(_0x4ee1e3-_0x153a35._0x1420ec,_0x4a4ce8,_0x261ef3-0x4e,_0x745745-_0x153a35._0x4c395c);}if(_0x20d399[_0x2e5ba5(_0x1caa98._0x5ae571,0x319,_0x1caa98._0x47a60e,0x3ab)]===WebSocket[_0x2e5ba5(0x304,_0x1caa98._0x2ce6e6,0x319,0x261)]){throwIfAborted(_0x212f96);return;}throwIfAborted(_0x212f96);function _0x3e11aa(_0x2a2e1a,_0x381ec0,_0x28ebb0,_0x5ae8f3){return _0x74a064(_0x2a2e1a-0x3f,_0x381ec0-0x1d6,_0x381ec0- -_0x5365f7._0x5416cf,_0x2a2e1a);}await new Promise((_0x20e433,_0x140e75)=>{const _0x3bb4b2={_0x4336dd:0x22,_0x1e5ffb:0x73,_0x2c2db9:0x33a,_0x2a2ad9:0x32f,_0x17b00b:0x71,_0x586569:0x22,_0x1d1be8:0x34,_0x22bccf:0xce,_0x55a0be:0xa9,_0x4673a6:0x396,_0x59390c:0x2de,_0x5c0ba5:0x1af,_0x3c939f:0x204,_0xdf259:0x10c},_0x391184={_0x4e5aa4:0xff},_0x3f4e84={_0x305034:0x52,_0x61fab4:0x15,_0x189c7a:0x3f,_0x28eaa7:0xf9,_0x1ae8a6:0x138,_0x5aa85f:0xe1,_0x1ba644:0x1bc,_0x97cdcf:0x1a6,_0xaf0587:0x210,_0x1e555c:0x1be},_0x5befec={_0x14448d:0x2fd},_0x41f94d={_0x4364aa:0x4b9};function _0x93524b(_0x40c16b,_0x39e3d6,_0xb82270,_0x3058ae){return _0x2e5ba5(_0x40c16b-0x1e4,_0xb82270,_0xb82270-0x124,_0x40c16b- -_0x41f94d._0x4364aa);}const _0x33edab=()=>{_0x42a6b8(),_0x20e433();},_0xf13cd9=_0xf5ef71=>{function _0x45dbc5(_0x4896b6,_0x407755,_0x956215,_0x558cc6){return _0x4762(_0x407755- -0x1b1,_0x956215);}function _0x4552e8(_0x1df0e7,_0x566b0f,_0x59aabd,_0x199864){return _0x4762(_0x199864-0x344,_0x1df0e7);}_0x42a6b8(),_0x140e75(new Error(_0xf5ef71[_0x4552e8(0x5db,0x629,0x518,0x549)]||_0x45dbc5(_0x399c46._0x1f1fcf,_0x399c46._0x374a11,-_0x399c46._0x436ed2,_0x399c46._0x143fc7)));},_0x26a510=_0x54f760=>{_0x42a6b8();function _0x256cff(_0x43422e,_0x137684,_0x4fef9b,_0x68a2d7){return _0x4762(_0x137684-0x2de,_0x4fef9b);}const _0x23f794=_0x54f760;_0x140e75(new Error(_0x23f794['reason']||_0x256cff(_0x389699._0x4ad971,_0x389699._0x41689f,_0x389699._0x54b908,0x4d9)));},_0xd50104=()=>{_0x42a6b8();_0x20d399[_0x5cc592(-_0x3f4e84._0x305034,-_0x3f4e84._0x61fab4,-0x6c,-_0x3f4e84._0x189c7a)]===WebSocket[_0x5cc592(-0x190,-_0x3f4e84._0x28eaa7,-_0x3f4e84._0x1ae8a6,-0x189)]&&_0x20d399[_0x5cc592(-0x267,-0x1dc,-_0x3f4e84._0x5aa85f,-0x197)](0x3e8,_0x5cc592(-0xf7,-_0x3f4e84._0x1ba644,-_0x3f4e84._0x97cdcf,-0x1c5));function _0x5cc592(_0x15c36e,_0x5521ae,_0x2a76f8,_0x17c950){return _0x4762(_0x17c950- -0x2d4,_0x5521ae);}function _0x18a130(_0x386fd2,_0x5950d5,_0x22cd4b,_0x5b67c6){return _0x4762(_0x5950d5- -_0x5befec._0x14448d,_0x22cd4b);}_0x140e75(toAbortError(_0x212f96?.[_0x18a130(-_0x3f4e84._0xaf0587,-_0x3f4e84._0x1e555c,-0x10f,-0x25f)]));},_0x42a6b8=()=>{const _0x2db89f={_0x2caf78:0x1df};function _0x585b13(_0x1c7a4b,_0x12fc71,_0x39f6e6,_0x389902){return _0x4762(_0x12fc71- -_0x391184._0x4e5aa4,_0x389902);}_0x20d399[_0x585b13(-0xb3,_0x3bb4b2._0x4336dd,_0x3bb4b2._0x1e5ffb,0xb2)](_0x2e4719(_0x3bb4b2._0x2c2db9,_0x3bb4b2._0x2a2ad9,0x36b,0x41c),_0x33edab);function _0x2e4719(_0x31eaf7,_0x4db172,_0x2bce73,_0x442ef0){return _0x4762(_0x31eaf7-_0x2db89f._0x2caf78,_0x4db172);}_0x20d399[_0x585b13(_0x3bb4b2._0x17b00b,_0x3bb4b2._0x586569,0x14,0x45)](_0x585b13(_0x3bb4b2._0x1d1be8,_0x3bb4b2._0x22bccf,_0x3bb4b2._0x55a0be,0x0),_0xf13cd9),_0x20d399['removeEventListener'](_0x2e4719(0x31c,0x2f2,_0x3bb4b2._0x4673a6,0x2dc),_0x26a510),_0x212f96?.[_0x2e4719(0x300,_0x3bb4b2._0x59390c,0x280,0x31a)](_0x585b13(_0x3bb4b2._0x5c0ba5,0x182,_0x3bb4b2._0x3c939f,_0x3bb4b2._0xdf259),_0xd50104);};function _0xe2b47b(_0x3ddc9b,_0x34304b,_0x4d5866,_0x5e78c5){return _0x3e11aa(_0x4d5866,_0x3ddc9b-_0x9436c0._0x3bec88,_0x4d5866-_0x9436c0._0x4e6f05,_0x5e78c5-_0x9436c0._0x3f9474);}_0x20d399[_0xe2b47b(0x2d1,0x31b,_0x569d93._0x415cf9,_0x569d93._0x34876f)]('open',_0x33edab),_0x20d399[_0xe2b47b(_0x569d93._0x421d51,0x250,_0x569d93._0x466b74,_0x569d93._0x13a1a2)](_0xe2b47b(_0x569d93._0x2f4139,_0x569d93._0x2f87f8,0x29c,0x27b),_0xf13cd9),_0x20d399['addEventListener']('close',_0x26a510),_0x212f96?.[_0x93524b(-0x156,-0x213,-0xb3,-0x139)]('abort',_0xd50104,{'once':!![]});});}function iterateWebSocketMessages(_0x243139,_0xa9e7f9){const _0x43fed6={_0x36bb3a:0x57d,_0x3c885d:0x570,_0x492c37:0x595,_0x52dd99:0x5dd,_0x16ece0:0x4ff,_0x3a0b7a:0x496,_0x4912ba:0x43c,_0x2721b1:0x485,_0x2abe24:0x3a8},_0x6b701d={_0x102ae8:0x431,_0x2e110d:0x508,_0x5852fb:0x396,_0x55d0ed:0x431,_0x9655ca:0x386,_0x731314:0x4f5,_0x526afe:0x457,_0x3f6c62:0x4f9,_0x330795:0x43d,_0x1b427c:0x4db},_0x59a56c={_0x32dfa5:0x2f1,_0x107871:0x101,_0x15aaeb:0x173,_0x35a68a:0xa9,_0x1f7c6d:0x25d,_0x22b3f0:0x1ea,_0x30bf0c:0x297},_0x5a1e69={_0x4b6268:0x14e},_0x5d4a02={_0x542838:0x263,_0x2d2100:0x25f,_0x1ddb3c:0x1c8,_0x3c8d46:0x273},_0xe66d38={_0x60aaa1:0x1a,_0x54321b:0xad,_0x340ff1:0x1bc,_0x5807e1:0x139,_0x404662:0xdc,_0x469aa6:0x3},_0x1cdc72={_0x2a39ff:0x1d6,_0x414e53:0x11d,_0x59e180:0x2cd,_0x183c07:0x23d,_0x20e6fe:0x1b3,_0x58fd7e:0x22f},_0x3d0478={_0x13aa96:0x9b,_0x6c6003:0x5f6},_0x536c09={_0x41195d:0x18b,_0x59da0d:0x93,_0x46ac15:0x626};function _0x50fd83(_0x3a895,_0x1f2426,_0x474fb8,_0x59d48f){return _0xc7d8a6(_0x3a895-_0x536c09._0x41195d,_0x1f2426,_0x474fb8-_0x536c09._0x59da0d,_0x59d48f-_0x536c09._0x46ac15);}const _0x3fe769=[];let _0x9b1648=![],_0x4120b3;function _0x1c6439(_0x28cdbe,_0x379c80,_0x141e1f,_0x4c14d3){return _0xc7d8a6(_0x28cdbe-_0x3d0478._0x13aa96,_0x28cdbe,_0x141e1f-0x1e5,_0x379c80-_0x3d0478._0x6c6003);}let _0x415122;const _0x1d6a0f=_0x3f5332=>{function _0x173cd1(_0x10a261,_0x2a6ae9,_0x1919e3,_0x411486){return _0x4762(_0x2a6ae9- -0x2b7,_0x411486);}function _0x317f27(_0x2232ad,_0x3fab79,_0x572583,_0x254d03){return _0x4762(_0x572583- -0x3a4,_0x2232ad);}const _0x1ba407=_0x3f5332;try{_0x3fe769[_0x173cd1(-0x207,-_0x1cdc72._0x2a39ff,-0x170,-_0x1cdc72._0x414e53)](JSON[_0x317f27(-0x238,-_0x1cdc72._0x59e180,-0x200,-_0x1cdc72._0x183c07)](String(_0x1ba407[_0x173cd1(-_0x1cdc72._0x20e6fe,-0x158,-_0x1cdc72._0x58fd7e,-0x206)]))),_0x415122?.(),_0x415122=void 0x0;}catch(_0x275af0){_0x4120b3=new Error('Invalid\x20WebSocket\x20message:\x20'+toErrorMessage(_0x275af0)),_0x415122?.(),_0x415122=void 0x0;}},_0x11a2df=_0x5bd8fd=>{const _0x19d316={_0x1400bb:0xef},_0x9bf89c=_0x5bd8fd;_0x4120b3=new Error(_0x9bf89c[_0x6a473e(-0xd5,_0xe66d38._0x60aaa1,-0x95,-_0xe66d38._0x54321b)]||_0x6a473e(-_0xe66d38._0x340ff1,-_0xe66d38._0x5807e1,-_0xe66d38._0x404662,-_0xe66d38._0x469aa6));function _0x26b816(_0x5b8939,_0x1d458c,_0x4e551e,_0x3c69aa){return _0x4762(_0x5b8939-_0x19d316._0x1400bb,_0x4e551e);}_0x415122?.();function _0x6a473e(_0xc49743,_0xddc627,_0x3e9bd6,_0x3fc638){return _0x4762(_0x3e9bd6- -0x29a,_0x3fc638);}_0x415122=void 0x0;},_0x43a622=_0x4d25c5=>{const _0x246bb1=_0x4d25c5;!_0x9b1648&&_0x246bb1[_0x5f4132(0x28b,_0x5d4a02._0x542838,0x1b5,0x229)]!==0x3e8&&!_0x4120b3&&(_0x4120b3=new Error(_0x246bb1[_0xc88bd5(-_0x5d4a02._0x2d2100,-0x21c,-_0x5d4a02._0x1ddb3c,-0x2a0)]||'WebSocket\x20closed\x20with\x20code\x20'+_0x246bb1[_0xc88bd5(-_0x5d4a02._0x3c8d46,-0x39f,-0x383,-0x303)]));_0x9b1648=!![];function _0xc88bd5(_0x1e2cf1,_0x2cb759,_0x28a9b6,_0x9dcd06){return _0x4762(_0x9dcd06- -0x3df,_0x28a9b6);}function _0x5f4132(_0x4d5fc3,_0x41b521,_0x283284,_0x1bdade){return _0x4762(_0x41b521-0x187,_0x1bdade);}_0x415122?.(),_0x415122=void 0x0;},_0x281620=addAbortListener(_0xa9e7f9,()=>{function _0x516e0a(_0x2d0ceb,_0x2fc638,_0x3e217f,_0x3150ef){return _0x4762(_0x3e217f- -0x2be,_0x3150ef);}_0x4120b3=toAbortError(_0xa9e7f9?.[_0x2570f8(_0x59a56c._0x32dfa5,0x28d,0x31d,0x2f0)]);_0x243139['readyState']===WebSocket[_0x516e0a(-0x8d,-_0x59a56c._0x107871,-_0x59a56c._0x15aaeb,-_0x59a56c._0x35a68a)]&&_0x243139['close'](0x3e8,_0x2570f8(0x192,_0x59a56c._0x1f7c6d,_0x59a56c._0x22b3f0,_0x59a56c._0x30bf0c));function _0x2570f8(_0x3e295e,_0x54a411,_0x255a8b,_0x4a67fc){return _0x4762(_0x54a411-_0x5a1e69._0x4b6268,_0x4a67fc);}_0x415122?.(),_0x415122=void 0x0;});return _0x243139[_0x1c6439(0x510,0x595,0x51f,0x5cf)](_0x50fd83(0x4ad,0x644,0x50e,_0x43fed6._0x36bb3a),_0x1d6a0f),_0x243139[_0x1c6439(_0x43fed6._0x3c885d,_0x43fed6._0x492c37,_0x43fed6._0x52dd99,0x543)](_0x1c6439(0x4a5,0x515,_0x43fed6._0x16ece0,_0x43fed6._0x3a0b7a),_0x11a2df),_0x243139['addEventListener'](_0x1c6439(_0x43fed6._0x4912ba,_0x43fed6._0x2721b1,0x42b,_0x43fed6._0x2abe24),_0x43a622),{async*[Symbol['asyncIterator']](){const _0x1f1f4a={_0xd74660:0x56,_0x37a36e:0xb6};function _0x5327a5(_0x5c6595,_0x89db91,_0x3a0ef0,_0x5ef3c9){return _0x50fd83(_0x5c6595-0x85,_0x3a0ef0,_0x3a0ef0-0x3f,_0x89db91- -0x68);}function _0x2aa8cf(_0x56b6ce,_0x451af7,_0x276fff,_0x54ca19){return _0x1c6439(_0x276fff,_0x54ca19-_0x1f1f4a._0xd74660,_0x276fff-_0x1f1f4a._0x37a36e,_0x54ca19-0x10f);}try{while(!![]){if(_0x4120b3)throw _0x4120b3;if(_0x3fe769['length']>0x0){yield _0x3fe769['shift']();continue;}if(_0x9b1648)break;await new Promise(_0x451a0a=>{_0x415122=_0x451a0a;});}}finally{_0x243139[_0x5327a5(0x3e9,_0x6b701d._0x102ae8,_0x6b701d._0x2e110d,0x3dd)](_0x2aa8cf(0x528,0x627,0x646,0x5a3),_0x1d6a0f),_0x243139['removeEventListener']('error',_0x11a2df),_0x243139[_0x5327a5(_0x6b701d._0x5852fb,_0x6b701d._0x55d0ed,_0x6b701d._0x9655ca,_0x6b701d._0x731314)](_0x2aa8cf(_0x6b701d._0x526afe,_0x6b701d._0x3f6c62,_0x6b701d._0x330795,_0x6b701d._0x1b427c),_0x43a622),_0x281620();}}};}function toWebSocketUrl(_0x2a3aca,_0x113ec4){const _0x1ba216={_0x1b18b3:0x165,_0x3c49b4:0x181,_0x1a5b4c:0x129,_0xd74b78:0x1cd,_0x1bf99f:0xc0,_0x267889:0x1b6,_0x5d4e8e:0x7f,_0x2d7d88:0x63},_0x2aa1fb={_0x282608:0x6f},_0x2f62af={_0x4036b3:0x23,_0x391a46:0xea,_0x530812:0x29e},_0x8fc709=new URL(_0x113ec4,_0x2a3aca);_0x8fc709[_0x34af35(_0x1ba216._0x1b18b3,0x1b1,_0x1ba216._0x3c49b4,_0x1ba216._0x1a5b4c)]=_0x8fc709[_0x34af35(_0x1ba216._0xd74b78,0x1f5,0xf2,0x129)]==='https:'?_0x34af35(_0x1ba216._0x1bf99f,_0x1ba216._0x267889,0x18e,0x11b):_0x34af35(0x2c,-_0x1ba216._0x5d4e8e,0x35,_0x1ba216._0x2d7d88);function _0x16ac84(_0x50b193,_0x11c2f0,_0xb37acc,_0x3c8240){return _0xc7d8a6(_0x50b193-_0x2f62af._0x4036b3,_0x3c8240,_0xb37acc-_0x2f62af._0x391a46,_0xb37acc-_0x2f62af._0x530812);}function _0x34af35(_0x4e2966,_0x13d663,_0x365441,_0x4c06d3){return _0xc7d8a6(_0x4e2966-_0x2aa1fb._0x282608,_0x4e2966,_0x365441-0x17b,_0x4c06d3-0x188);}return _0x8fc709['toString']();}var ProviderSessionManager=class{[_0x74a064(-0xdb,0x38,-0x84,-0x53)];[_0x74a064(0x1d2,0x104,0x10c,0x17e)];constructor(_0x9a82ac){this['resolver']=_0x9a82ac;}async['resolve'](_0x2ce990){const _0x41b882={_0x43a45:0xe3,_0x57554c:0x97,_0x373062:0xad,_0x625cc2:0x23a,_0x395c88:0x3c2,_0x4e7b8d:0x418,_0x30f57f:0x373},_0x4447aa={_0x39799e:0x71,_0x332827:0x11a},_0x22f667={_0x121d20:0xbc,_0x4d5785:0x1},_0x151eae={_0x3fc3ea:0x357};function _0x281482(_0x249fbc,_0x1aac29,_0x56951c,_0x4421ec){return _0xc7d8a6(_0x249fbc-0x1d0,_0x56951c,_0x56951c-0x1cd,_0x249fbc-0x459);}if(!this[_0x596902(_0x41b882._0x43a45,_0x41b882._0x57554c,_0x41b882._0x373062,-0x7)]){const _0x236335=this['resolver'][_0x281482(0x2f4,_0x41b882._0x625cc2,_0x41b882._0x395c88,0x2b8)](_0x2ce990);_0x236335['catch'](()=>{function _0x3cecfa(_0x481a36,_0x2ecde5,_0x4d93c0,_0x1257ba){return _0x281482(_0x481a36- -_0x151eae._0x3fc3ea,_0x2ecde5-0x91,_0x2ecde5,_0x1257ba-0x9a);}this[_0x3cecfa(_0x22f667._0x121d20,_0x22f667._0x4d5785,0x137,0x164)]===_0x236335&&(this['cached']=void 0x0);}),this[_0x281482(0x413,_0x41b882._0x4e7b8d,0x3d4,_0x41b882._0x30f57f)]=_0x236335;}function _0x596902(_0x35ae49,_0xcd0219,_0x1aca01,_0x3e4998){return _0xc7d8a6(_0x35ae49-_0x4447aa._0x39799e,_0x1aca01,_0x1aca01-_0x4447aa._0x332827,_0xcd0219-0xdd);}return structuredClone(await this[_0x596902(0x141,0x97,0xf2,0x169)]);}[_0xc7d8a6(-0x209,-0x192,-0x4a,-0x129)](){this['cached']=void 0x0;}};async function prepareProviderRequest(_0x598322,_0x5a4d0b={}){const _0x4b04a5={_0x283232:0x552,_0x1a27cb:0x11d,_0x4637dc:0x9b,_0x4e6da9:0x1a3,_0x5f207d:0xed,_0x1634af:0x117,_0x22f4ac:0x3e1,_0x59d6cd:0x4ab,_0x26d9e6:0x454},_0x3a7775={_0x1e58b5:0x282};function _0x14c163(_0x4a8fdf,_0x6f52f5,_0x3d696c,_0x45af74){return _0x74a064(_0x4a8fdf-0x7e,_0x6f52f5-0x1d2,_0x3d696c-0x48d,_0x4a8fdf);}let _0x1843c6={'request':structuredClone(_0x598322),'session':_0x5a4d0b['sessionManager']?await _0x5a4d0b[_0x14c163(0x3ac,0x55c,0x483,_0x4b04a5._0x283232)][_0x8f6cd9(_0x4b04a5._0x1a27cb,_0x4b04a5._0x4637dc,_0x4b04a5._0x4e6da9,0x1e2)](_0x5a4d0b[_0x8f6cd9(0x10b,_0x4b04a5._0x5f207d,_0x4b04a5._0x1634af,0x67)]):void 0x0};function _0x8f6cd9(_0x1d77cb,_0xbfc55d,_0x5a5e87,_0x2a9e45){return _0xc7d8a6(_0x1d77cb-0x11e,_0xbfc55d,_0x5a5e87-0xcf,_0x1d77cb-_0x3a7775._0x1e58b5);}for(const _0x2add2f of _0x5a4d0b[_0x14c163(0x41a,_0x4b04a5._0x22f4ac,_0x4b04a5._0x59d6cd,_0x4b04a5._0x26d9e6)]??[]){_0x1843c6=await _0x2add2f(_0x1843c6);}return _0x1843c6;}var MAX_PROVIDER_REQUEST_ATTEMPTS=0xa,RETRYABLE_HTTP_STATUSES=new Set([0x198,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8]),DEFAULT_RETRY_DELAY_MS=0x1f4,RETRY_DELAY_STEP_CAP_MS=0x3a98,RoutedModel=class{[_0xc7d8a6(-0x28,-0xa2,-0xc2,-0xfc)];['maxTokens'];[_0x74a064(0x1d9,0xb9,0x128,0xb2)];[_0xc7d8a6(-0xe5,-0x4c,-0x69,-0x90)];[_0xc7d8a6(-0x15a,-0xdf,-0xdb,-0x152)];['fetchImpl'];[_0xc7d8a6(-0x146,-0x158,-0x16c,-0x192)];['requestMutators'];[_0xc7d8a6(-0x12e,-0x1a,0x18,-0x78)];[_0x74a064(-0x90,0x90,-0xa,0x98)];[_0x74a064(0x7f,-0x68,0x77,0xf7)];[_0xc7d8a6(-0xd8,-0x6c,-0x123,-0x13a)]=new Map();constructor(_0x3fbaff){const _0x4c65a8={_0x479a24:0x2f,_0x3974a7:0x46,_0x83d161:0x12,_0x395ba1:0x319,_0x2a0acc:0x2f0,_0x36a380:0x7f,_0x1c88ae:0x2d,_0x427f02:0x3a7,_0xee779f:0x3a2,_0x304c86:0x312,_0x43a906:0x4a,_0x488dd3:0x1e0,_0x5277b0:0x30e,_0x13fb8f:0x9e,_0x1f6b8c:0x65,_0x192e8e:0x5,_0x4de919:0x10,_0x30ed1d:0x75,_0x606e27:0x10,_0x167a33:0xb8,_0x2b17d8:0x3b6,_0x5e4004:0x29b,_0x693c8c:0xac,_0x1310d5:0x6b,_0x500f6f:0x28a,_0x2bafe9:0x4c,_0x3a378b:0x0,_0x18b0b1:0x2b1,_0x35b352:0x21e,_0x4c75e7:0x22b,_0x4c5c37:0x2fa,_0x373f8b:0x241,_0x1b6c0d:0x241,_0x4ad540:0xa7,_0x555f32:0xc0,_0x2a26eb:0x3e,_0x571991:0x8,_0x4a13cb:0x28c,_0xd75f96:0x321},_0x4f8e31={_0x1fc451:0x182,_0xc17248:0xa1},_0x568abe={_0x19e7e1:0x19d,_0x4047cf:0x142};this[_0x43817a(0xdc,-0x47,0x46,0x65)]=_0x3fbaff[_0x43817a(0xf2,-_0x4c65a8._0x479a24,_0x4c65a8._0x3974a7,-_0x4c65a8._0x83d161)];function _0x43817a(_0x5d7a80,_0x5b4f10,_0x499673,_0x2d07e6){return _0xc7d8a6(_0x5d7a80-0x10b,_0x5d7a80,_0x499673-_0x568abe._0x19e7e1,_0x499673-_0x568abe._0x4047cf);}this[_0x4cce3e(0x284,_0x4c65a8._0x395ba1,_0x4c65a8._0x2a0acc,0x2a0)]=_0x3fbaff[_0x43817a(_0x4c65a8._0x36a380,0x3d,0xc6,_0x4c65a8._0x1c88ae)]??getDefaultMaxTokens();function _0x4cce3e(_0x1e6808,_0x287f51,_0xe4fd30,_0xb4d911){return _0x74a064(_0x1e6808-_0x4f8e31._0x1fc451,_0x287f51-_0x4f8e31._0xc17248,_0xb4d911-0x1ca,_0xe4fd30);}this[_0x4cce3e(_0x4c65a8._0x427f02,_0x4c65a8._0xee779f,_0x4c65a8._0x304c86,0x2f2)]=_0x3fbaff['reasoning']?structuredClone(_0x3fbaff[_0x43817a(0x4d,_0x4c65a8._0x43a906,0x118,0x1b1)]):void 0x0,this[_0x4cce3e(_0x4c65a8._0x488dd3,0x2e4,_0x4c65a8._0x5277b0,0x28c)]=_0x3fbaff[_0x43817a(0xc5,0x5b,0xb2,_0x4c65a8._0x13fb8f)],this[_0x43817a(_0x4c65a8._0x1f6b8c,_0x4c65a8._0x192e8e,-_0x4c65a8._0x4de919,-0x1d)]=_0x3fbaff[_0x43817a(_0x4c65a8._0x30ed1d,0xcf,-_0x4c65a8._0x606e27,-_0x4c65a8._0x167a33)],this[_0x4cce3e(0x21c,_0x4c65a8._0x2b17d8,_0x4c65a8._0x5e4004,0x2d0)]=_0x3fbaff[_0x43817a(0x13,0x8b,0xad,0xa9)]??globalThis['fetch'],this[_0x4cce3e(_0x4c65a8._0x693c8c,0x166,0xc1,0x18a)]=_0x3fbaff['providerAdapter'],this['requestMutators']=_0x3fbaff[_0x43817a(0x8,_0x4c65a8._0x1310d5,0xe,0x4)]??[],this[_0x4cce3e(0x302,0x332,_0x4c65a8._0x500f6f,0x2a4)]=_0x3fbaff['router'],this['sessionManager']=_0x3fbaff[_0x43817a(-0x32,_0x4c65a8._0x2bafe9,-0x1a,_0x4c65a8._0x3a378b)]??(_0x3fbaff[_0x4cce3e(0x2b2,_0x4c65a8._0x18b0b1,_0x4c65a8._0x35b352,0x22b)]?new ProviderSessionManager(_0x3fbaff[_0x4cce3e(0x1c6,0x177,0x1fc,_0x4c65a8._0x4c75e7)]):void 0x0),this[_0x4cce3e(0x25a,_0x4c65a8._0x4c5c37,0x1f3,_0x4c65a8._0x373f8b)]=_0x3fbaff[_0x4cce3e(0x171,0x318,0x1b9,_0x4c65a8._0x1b6c0d)]??createDefaultWebSocketFactory();for(const _0x628a1 of _0x3fbaff[_0x43817a(_0x4c65a8._0x4ad540,-0xf,0x8,-_0x4c65a8._0x555f32)]){this[_0x43817a(0xee,-_0x4c65a8._0x2a26eb,_0x4c65a8._0x571991,0xc1)][_0x4cce3e(_0x4c65a8._0x4a13cb,0x38e,_0x4c65a8._0xd75f96,0x2e6)](_0x628a1['id'],_0x628a1);}}['complete'](_0x172e32,_0x64c3fa){const _0x4fb66d={_0x3b8c92:0x363,_0x2f64c9:0x363,_0x1d4725:0x32c},_0x48f563={_0x5911e0:0x1aa};function _0x5c8aa3(_0x44198d,_0x141835,_0x1076d4,_0x40502d){return _0xc7d8a6(_0x44198d-0x1c8,_0x1076d4,_0x1076d4-_0x48f563._0x5911e0,_0x44198d-0x490);}return this[_0x5c8aa3(_0x4fb66d._0x3b8c92,_0x4fb66d._0x2f64c9,_0x4fb66d._0x1d4725,0x2c7)](_0x172e32,_0x64c3fa);}[_0xc7d8a6(-0xa2,-0x52,-0x1e9,-0x110)](_0x45b0ee,_0x1b4677){const _0x5d694a={_0x40b18e:0xe1,_0x3f59ac:0x1c1};function _0x229533(_0x58b267,_0x429b09,_0x690d4c,_0x530c62){return _0x74a064(_0x58b267-0x5,_0x429b09-0x1b5,_0x530c62-0xa5,_0x429b09);}return this[_0x229533(0x15d,_0x5d694a._0x40b18e,_0x5d694a._0x3f59ac,0x1ba)](_0x45b0ee,_0x1b4677);}async[_0x74a064(0xc9,0x8c,0x25,0xe7)](_0x5eb61f,_0x3eeb93){const _0x264ca5={_0x5cae51:0x12e,_0x1cca3b:0x34,_0x31faf2:0x4e,_0x124968:0x15a,_0x192341:0x8c,_0x30944e:0x239},_0x25808c={_0x25c4a1:0x14c};function _0x156379(_0x3eac0f,_0x446cef,_0x47c1ab,_0x2b538f){return _0x74a064(_0x3eac0f-0x139,_0x446cef-_0x25808c._0x25c4a1,_0x3eac0f-0x78,_0x47c1ab);}function _0x87c6d5(_0x1bc817,_0x4c6f37,_0x5c2f83,_0x308e5e){return _0xc7d8a6(_0x1bc817-0x179,_0x1bc817,_0x5c2f83-0x1b9,_0x4c6f37-0x25d);}const _0x2acbda=this[_0x156379(0xa8,_0x264ca5._0x5cae51,_0x264ca5._0x1cca3b,_0x264ca5._0x31faf2)](_0x5eb61f),_0x50c4cf=await this[_0x156379(0x152,0x235,0x1ba,0x153)][_0x156379(0x89,0x76,0x44,0x107)](_0x2acbda,{'mode':'complete'});return this[_0x156379(_0x264ca5._0x124968,0xb7,_0x264ca5._0x192341,_0x264ca5._0x30944e)](_0x2acbda,_0x50c4cf,_0x3eeb93);}async*['streamViaRouter'](_0x5cd372,_0x5c6672){const _0x4e1c96={_0x4b25cb:0x2eb,_0x582a64:0x2dd,_0x241fa5:0x361,_0x324736:0x420,_0x15b3fb:0x113,_0x1e37c0:0x14f,_0x9bf222:0x195,_0x3d0cd1:0x27c},_0x2fa128={_0x5ccd6d:0x71,_0xabf623:0x1f2,_0x2322e3:0x2be},_0xc7849e={_0x35d6c5:0x8e};function _0x14aaea(_0x561f6e,_0x3d09de,_0x246f30,_0x343317){return _0x74a064(_0x561f6e-0xd6,_0x3d09de-0x5e,_0x3d09de- -_0xc7849e._0x35d6c5,_0x343317);}function _0x3f30f8(_0xafd247,_0x4dbb33,_0x150f74,_0x33c5a9){return _0x74a064(_0xafd247-_0x2fa128._0x5ccd6d,_0x4dbb33-_0x2fa128._0xabf623,_0x150f74-_0x2fa128._0x2322e3,_0xafd247);}const _0x16c8f0=this[_0x3f30f8(_0x4e1c96._0x4b25cb,0x237,0x2ee,0x3ae)](_0x5cd372),_0x52dea2=await this[_0x3f30f8(_0x4e1c96._0x582a64,_0x4e1c96._0x241fa5,0x398,_0x4e1c96._0x324736)][_0x14aaea(-_0x4e1c96._0x15b3fb,-0x7d,-_0x4e1c96._0x1e37c0,-0xa9)](_0x16c8f0,{'mode':'stream'});yield*this[_0x3f30f8(0x2ae,_0x4e1c96._0x9bf222,_0x4e1c96._0x3d0cd1,0x331)](_0x16c8f0,_0x52dea2,_0x5c6672);}async[_0x74a064(0x117,0x1c5,0xe2,0x10e)](_0x32e398,_0x59ac9a,_0x1df79d){const _0x4ff47d={_0x3eb815:0x53c,_0x28171f:0x5e3,_0x388f6c:0x55a,_0x5ed49c:0x1e0,_0x9e18:0xdb,_0x404e9d:0x162,_0x4b0196:0x15b,_0x33cf4d:0x16e,_0x52a6cd:0x23,_0x5a04cf:0xa6,_0x5eab7a:0xd5,_0xe0309b:0xbc,_0xdb4e08:0xe,_0x9de9d9:0x21,_0x5d790b:0x84,_0x54c027:0x4ea,_0x2f2ae1:0x4bd,_0x16608d:0x4eb,_0x13ab15:0x515,_0x4ac89a:0x419,_0x539af2:0x4ca,_0x9ab5ce:0x44c,_0x562ee1:0x16c,_0x5354b3:0xc3,_0x34c826:0x153,_0xe75918:0x8f,_0x3adc4b:0x3a,_0x2e588c:0x146},_0x51e3e1={_0x2805c7:0x65e},_0xbe0ff0={_0x337f0a:0xe4,_0x1e7453:0x11e},_0x3c79d6=this[_0x334376(_0x4ff47d._0x3eb815,_0x4ff47d._0x28171f,_0x4ff47d._0x388f6c,0x4f9)](_0x32e398),_0xcb931f=this[_0x4ef65b(-_0x4ff47d._0x5ed49c,-0x167,-_0x4ff47d._0x9e18,-0x179)](_0x59ac9a);if(_0xcb931f[_0x4ef65b(-_0x4ff47d._0x404e9d,-_0x4ff47d._0x4b0196,-0x193,-_0x4ff47d._0x33cf4d)]===_0x4ef65b(-0x8d,_0x4ff47d._0x52a6cd,-0x4,0x4f)){const _0x527401=await this[_0x4ef65b(_0x4ff47d._0x5a04cf,-0xe,_0x4ff47d._0x5eab7a,-_0x4ff47d._0xe0309b)](_0x3c79d6,_0xcb931f,![],_0x1df79d);if(!_0x527401['ok'])throw await this[_0x4ef65b(_0x4ff47d._0xdb4e08,_0x4ff47d._0x9de9d9,-0x41,_0x4ff47d._0x5d790b)](_0x527401);if(!_0xcb931f[_0x334376(_0x4ff47d._0x54c027,_0x4ff47d._0x2f2ae1,0x4e4,_0x4ff47d._0x16608d)])throw new Error('Surface\x20'+_0x59ac9a+'\x20does\x20not\x20support\x20non-streaming\x20responses');return _0xcb931f[_0x334376(_0x4ff47d._0x54c027,0x4f1,_0x4ff47d._0x13ab15,_0x4ff47d._0x4ac89a)](await _0x527401['json'](),_0x3c79d6);}let _0x3d800f;function _0x4ef65b(_0x460553,_0x53d3f1,_0x19d297,_0x3592f4){return _0x74a064(_0x460553-_0xbe0ff0._0x337f0a,_0x53d3f1-0x1af,_0x53d3f1- -_0xbe0ff0._0x1e7453,_0x3592f4);}for await(const _0x211c6b of this[_0x334376(_0x4ff47d._0x539af2,_0x4ff47d._0x9ab5ce,0x574,0x3e8)](_0x3c79d6,_0x59ac9a,_0x1df79d)){_0x211c6b[_0x4ef65b(-0x136,-0xd5,-_0x4ff47d._0x562ee1,-0x138)]==='done'&&(_0x3d800f=_0x211c6b[_0x4ef65b(-0x16d,-_0x4ff47d._0x5354b3,-_0x4ff47d._0x34c826,-0xae)]);}function _0x334376(_0x5098aa,_0x3a7159,_0x818ed2,_0x5e8255){return _0xc7d8a6(_0x5098aa-0x1a0,_0x818ed2,_0x818ed2-0x7a,_0x5098aa-_0x51e3e1._0x2805c7);}if(!_0x3d800f)throw new Error('Surface\x20'+_0x59ac9a+_0x4ef65b(-0x2b,-_0x4ff47d._0xe75918,_0x4ff47d._0x3adc4b,-_0x4ff47d._0x2e588c));return _0x3d800f;}async*[_0xc7d8a6(-0x190,-0x15e,-0x123,-0x194)](_0xd4dee7,_0x158fc5,_0x1dcf93){const _0x133e19={_0x2ed918:0xf,_0x17d81b:0x55,_0x1ed6b8:0x32b,_0x5a56f0:0x19c,_0xea6302:0x280,_0x817cf7:0x75,_0x46706c:0xf8,_0x4ff56c:0x207,_0x5ab954:0x81,_0x5be08e:0x139,_0x3cdaa6:0xf3,_0x4d2d2d:0xdd,_0x21fdfe:0x1d8,_0x7a453d:0x1fb,_0x19bf54:0x8f,_0x30415e:0x46,_0x301d67:0xfd},_0x533ca2={_0x2aa654:0x89},_0x22cc7a={_0x42723a:0x138,_0x3e4c78:0xe5},_0x3adad6=this[_0x12bf58(0x59,_0x133e19._0x2ed918,0xbf,_0x133e19._0x17d81b)](_0xd4dee7),_0x542ec2=this[_0xfc24be(-_0x133e19._0x1ed6b8,-_0x133e19._0x5a56f0,-0x2e1,-_0x133e19._0xea6302)](_0x158fc5);function _0xfc24be(_0x45f948,_0xd06b3f,_0xa55806,_0x27ffb4){return _0xc7d8a6(_0x45f948-_0x22cc7a._0x42723a,_0xd06b3f,_0xa55806-0x1a0,_0x27ffb4- -_0x22cc7a._0x3e4c78);}function _0x12bf58(_0x2f7a1c,_0x27bc84,_0x27d1e3,_0x1e9775){return _0xc7d8a6(_0x2f7a1c-_0x533ca2._0x2aa654,_0x2f7a1c,_0x27d1e3-0x25,_0x27bc84-0x131);}if(_0x542ec2['transport']===_0xfc24be(-_0x133e19._0x817cf7,-_0x133e19._0x46706c,-0x10d,-0xf6)){const _0x24a42b=await this['completeViaSurface'](_0x3adad6,_0x158fc5,_0x1dcf93);yield{'type':_0xfc24be(-_0x133e19._0x4ff56c,-_0x133e19._0x5ab954,-0x121,-_0x133e19._0x5be08e),'response':_0x24a42b};return;}if(_0x542ec2[_0x12bf58(-0x80,-0x5e,-_0x133e19._0x3cdaa6,-_0x133e19._0x4d2d2d)]==='http-sse'){yield*this[_0xfc24be(-0x288,-0x24b,-_0x133e19._0x21fdfe,-0x23f)](_0x3adad6,_0x542ec2,_0x1dcf93);return;}yield*this[_0xfc24be(-_0x133e19._0x7a453d,-0x1fa,-0x1ce,-0x12d)](_0x3adad6,_0x542ec2,_0x1dcf93?.[_0x12bf58(-_0x133e19._0x19bf54,-_0x133e19._0x30415e,-_0x133e19._0x301d67,0x9e)]);}async[_0xc7d8a6(-0x2f,0x65,0x91,-0x26)](_0x512fc4){const _0x44c63b={_0x2a4c67:0x13b,_0x13060b:0x116,_0x3400fc:0x183},_0x5a0f43={_0xd0455:0x1c7,_0x56c525:0x2e,_0x103810:0x242},_0x365a70={_0x54f9f6:0x1c1,_0x4b5a45:0x1cf,_0x3c0a21:0x3da,_0x2fe09c:0x422,_0x20f0bc:0x312,_0x5431fb:0x1e5,_0x4fbe68:0x1e9,_0x2753a2:0x278,_0x2597e7:0x37d,_0x4d6d44:0x458,_0x220473:0x445,_0x340207:0x43e,_0x39fb87:0x4b5,_0x46379b:0x52d,_0x4673e5:0x4d8,_0x41e2a5:0x22e,_0x4e4085:0x1d3,_0x2e6dd5:0x1e0,_0x5b96af:0x219,_0x143e6c:0x272,_0x3e5eb9:0x493,_0x2844b5:0x5aa,_0xa8896e:0x4b5,_0x5951ac:0x510,_0x47ef0e:0x4ad,_0xf8fea0:0x1bb,_0x11be92:0x11d,_0x488b9c:0x5c3,_0x63c37c:0x4b2,_0x27c935:0x128,_0x1e35a0:0x2e8},_0x3287af={_0x78cf9b:0x3af},_0x2a3cb9=async()=>{const _0x324afd=this[_0x22731c(-_0x365a70._0x54f9f6,-0x25d,-0x217,-_0x365a70._0x4b5a45)]?await this[_0x284fc4(_0x365a70._0x3c0a21,0x48e,_0x365a70._0x2fe09c,0x3ee)][_0x22731c(-_0x365a70._0x20f0bc,-0x266,-0x2f2,-_0x365a70._0x5431fb)](_0x512fc4[_0x22731c(-_0x365a70._0x4fbe68,-_0x365a70._0x2753a2,-0x269,-0x25a)]):void 0x0;function _0x284fc4(_0x50fb7c,_0x6f807e,_0x440aea,_0x1621b8){return _0x4762(_0x6f807e-0x33c,_0x440aea);}function _0x22731c(_0x231925,_0xcd63ca,_0x58fe27,_0x41b206){return _0x4762(_0xcd63ca- -_0x3287af._0x78cf9b,_0x58fe27);}const _0x9a293f=this[_0x284fc4(_0x365a70._0x2597e7,_0x365a70._0x4d6d44,_0x365a70._0x220473,_0x365a70._0x340207)]['resolveCredential'](this['apiKey'],_0x324afd);if(!_0x9a293f)throw this[_0x284fc4(0x558,0x4f7,_0x365a70._0x39fb87,0x449)]();const _0x5e27b8=await this['createHeaders']({'body':_0x512fc4[_0x284fc4(0x5ab,_0x365a70._0x46379b,0x525,_0x365a70._0x4673e5)],'credential':_0x9a293f,'session':_0x324afd,'stream':![]},{'accept':_0x512fc4[_0x22731c(-_0x365a70._0x41e2a5,-_0x365a70._0x4e4085,-0x220,-_0x365a70._0x2e6dd5)]??_0x22731c(-_0x365a70._0x5b96af,-0x241,-_0x365a70._0x143e6c,-0x22c),'includeContentType':_0x512fc4[_0x284fc4(_0x365a70._0x3e5eb9,0x4dd,0x4f1,_0x365a70._0x2844b5)]===_0x284fc4(_0x365a70._0xa8896e,_0x365a70._0x5951ac,_0x365a70._0x47ef0e,0x5c4)});return this['fetchImpl'](''+this[_0x22731c(-0x337,-0x293,-0x2d8,-_0x365a70._0xf8fea0)]['resolveBaseUrl'](this[_0x284fc4(0x54e,0x498,0x56c,0x471)],_0x324afd)+_0x512fc4[_0x22731c(-0x14e,-_0x365a70._0x11be92,-0x12c,-0x120)],{'method':_0x512fc4['method'],'headers':_0x5e27b8,..._0x512fc4[_0x284fc4(_0x365a70._0x488b9c,_0x365a70._0x46379b,0x58d,_0x365a70._0x63c37c)]!==void 0x0?{'body':JSON['stringify'](_0x512fc4[_0x22731c(-0x1c0,-0x1be,-_0x365a70._0x27c935,-0x254)])}:{},'signal':_0x512fc4[_0x22731c(-_0x365a70._0x1e35a0,-0x278,-0x1bb,-0x217)]});};function _0x3a91f1(_0x4a6cb5,_0x53f4ed,_0x40eb18,_0x394f10){return _0x74a064(_0x4a6cb5-_0x5a0f43._0xd0455,_0x53f4ed-_0x5a0f43._0x56c525,_0x4a6cb5- -_0x5a0f43._0x103810,_0x394f10);}return await this[_0x3a91f1(-_0x44c63b._0x2a4c67,-_0x44c63b._0x13060b,-_0x44c63b._0x3400fc,-0x1b1)](_0x2a3cb9,_0x512fc4);}[_0x74a064(0x156,0x160,0x11f,0x9f)](_0x511a2e,_0x3e5f7d){const _0x17cd1b={_0x2907d9:0x460,_0x34e321:0x440,_0x196f4c:0xe9,_0x2574f8:0x195,_0x178cc2:0xb3,_0x1de180:0xee,_0x48613c:0xf4,_0x341122:0x124,_0x486476:0x437},_0x444cde={_0x4736a1:0x110,_0x12d551:0x10c},_0xaa5fb1=_0x511a2e?.[_0xad50de(_0x17cd1b._0x2907d9,_0x17cd1b._0x34e321,0x531,0x4b0)]['get']('retry-after');function _0x57482e(_0x4a80b2,_0xe72dcd,_0x44de8c,_0x376718){return _0x74a064(_0x4a80b2-0x111,_0xe72dcd-0x1ac,_0xe72dcd- -0x13c,_0x44de8c);}if(_0xaa5fb1){const _0x1e3535=Number(_0xaa5fb1);if(Number[_0x57482e(-_0x17cd1b._0x196f4c,-_0x17cd1b._0x2574f8,-_0x17cd1b._0x178cc2,-_0x17cd1b._0x1de180)](_0x1e3535)&&_0x1e3535>=0x0)return _0x1e3535*0x3e8;const _0x1e2dfe=Date[_0x57482e(-0x1c4,-_0x17cd1b._0x48613c,-0x13c,-_0x17cd1b._0x341122)](_0xaa5fb1);if(Number['isFinite'](_0x1e2dfe))return Math[_0xad50de(0x3fd,_0x17cd1b._0x486476,0x404,0x4c6)](0x0,_0x1e2dfe-Date['now']());}const _0x1e6ab0=DEFAULT_RETRY_DELAY_MS*0x2**_0x3e5f7d;if(_0x1e6ab0<RETRY_DELAY_STEP_CAP_MS)return _0x1e6ab0;function _0xad50de(_0x101a68,_0x1ea6d4,_0x40cec4,_0x5d40c7){return _0xc7d8a6(_0x101a68-_0x444cde._0x4736a1,_0x101a68,_0x40cec4-_0x444cde._0x12d551,_0x5d40c7-0x581);}return RETRY_DELAY_STEP_CAP_MS*0x2**(_0x3e5f7d-0x5);}[_0x74a064(0xc,-0x7,-0x33,-0xe2)](_0xf3e3f6){const _0x273ca1={_0x1ac462:0xec},_0x246fa1={_0x17749c:0xd3,_0x39e29f:0x203};function _0x4e9ae1(_0x4dd45e,_0x20492a,_0xdf0cb,_0x283c8c){return _0x74a064(_0x4dd45e-_0x246fa1._0x17749c,_0x20492a-0x19f,_0x283c8c- -_0x246fa1._0x39e29f,_0xdf0cb);}function _0x13e125(_0x33d341,_0x15f208,_0x1e7262,_0x372b65){return _0x74a064(_0x33d341-0x1a6,_0x15f208-0x190,_0x15f208-0x237,_0x1e7262);}return RETRYABLE_HTTP_STATUSES[_0x13e125(0x33a,0x266,0x18c,0x219)](_0xf3e3f6[_0x4e9ae1(-0x16d,-_0x273ca1._0x1ac462,-0xc9,-0x196)]);}[_0x74a064(0x1c8,0x67,0xe6,0x10)](_0x1c1b06){return!isAbortError(_0x1c1b06)&&_0x1c1b06 instanceof TypeError;}[_0x74a064(0xa8,0x75,0x2c,-0x71)](_0x2f276f){const _0x49b85c={_0x2fd46f:0x16a,_0x56e132:0x10f},_0x20572a={_0x269cce:0x4};function _0x28ba16(_0x161eb1,_0xa690bf,_0x1f1709,_0x139d4d){return _0xc7d8a6(_0x161eb1-_0x20572a._0x269cce,_0x139d4d,_0x1f1709-0xd5,_0x1f1709-0x1d6);}return this[_0x28ba16(0x1df,0x172,_0x49b85c._0x2fd46f,_0x49b85c._0x56e132)](_0x2f276f)||isRetryableProviderStreamEventError(_0x2f276f);}async['waitForRetry'](_0x4e60b3,_0x23c83e){const _0x1a022c={_0xab45db:0xb1,_0x4983b2:0x14b};throwIfAborted(_0x23c83e),await new Promise((_0x5d3812,_0x4733cb)=>{let _0x58214c=![];const _0x2bd860=addAbortListener(_0x23c83e,()=>{if(_0x58214c)return;function _0x5074f3(_0x2f632a,_0x5cdc71,_0x238cdb,_0x2a34d5){return _0x4762(_0x2a34d5- -0x74,_0x2f632a);}_0x58214c=!![],clearTimeout(_0x32db57),_0x4733cb(toAbortError(_0x23c83e?.[_0x5074f3(_0x1a022c._0xab45db,_0x1a022c._0x4983b2,0xff,0xcb)]));}),_0x32db57=setTimeout(()=>{_0x58214c=!![],_0x2bd860(),_0x5d3812();},_0x4e60b3);}),throwIfAborted(_0x23c83e);}async['sendWithRetries'](_0x86d9be,_0x468af5={}){const _0x14bc9c={_0xa9e209:0x403,_0x4f2798:0x95,_0x17103f:0x52c,_0x396680:0x610,_0x54cdd5:0x48f,_0x1b4cde:0x5df,_0x3d8ede:0x121,_0x26dd0e:0x5a,_0xd0b9e:0x9d,_0x1c2878:0xf6,_0x1c43b1:0x12,_0x3c5454:0x445,_0x598058:0x3a6,_0x57e0c8:0x4c2},_0x4f443b={_0xfb1676:0x10f,_0x587791:0x3b},_0x20cac3={_0x4d7350:0x1,_0x5d3d31:0x40d},{signal:_0x30a4b3}=_0x468af5;let _0x115a80=![];function _0x4296c4(_0x55ca98,_0x405988,_0x4efbcb,_0x3f0684){return _0x74a064(_0x55ca98-_0x20cac3._0x4d7350,_0x405988-0x2b,_0x55ca98-_0x20cac3._0x5d3d31,_0x3f0684);}function _0x1a0fd9(_0x101090,_0x23a7d3,_0x36d534,_0x280f18){return _0x74a064(_0x101090-0xb3,_0x23a7d3-_0x4f443b._0xfb1676,_0x101090-_0x4f443b._0x587791,_0x36d534);}for(let _0x76bfed=0x0;_0x76bfed<MAX_PROVIDER_REQUEST_ATTEMPTS;_0x76bfed+=0x1){throwIfAborted(_0x30a4b3);try{const _0xde516d=await _0x86d9be();if(_0xde516d['status']===0x191&&this[_0x4296c4(_0x14bc9c._0xa9e209,0x46e,0x3f9,0x47b)]&&!_0x115a80){_0x115a80=!![],this[_0x1a0fd9(0x31,-0x83,_0x14bc9c._0x4f2798,-0x75)]['invalidate']();continue;}if(!this['shouldRetryResponse'](_0xde516d)||_0x76bfed===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)return _0xde516d;const _0x183eb7=this[_0x4296c4(_0x14bc9c._0x17103f,_0x14bc9c._0x396680,_0x14bc9c._0x54cdd5,_0x14bc9c._0x1b4cde)](_0xde516d,_0x76bfed);await this['waitForRetry'](_0x183eb7,_0x30a4b3);}catch(_0x444d67){if(!this[_0x1a0fd9(_0x14bc9c._0x3d8ede,0x12c,_0x14bc9c._0x26dd0e,_0x14bc9c._0xd0b9e)](_0x444d67)||_0x76bfed===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0x444d67;const _0x458bfc=this[_0x1a0fd9(0x15a,0x10b,_0x14bc9c._0x1c2878,0xcc)](void 0x0,_0x76bfed);await this[_0x1a0fd9(0x7,-0xd5,-_0x14bc9c._0x1c43b1,0x77)](_0x458bfc,_0x30a4b3);}}throw new Error(_0x4296c4(_0x14bc9c._0x3c5454,_0x14bc9c._0x598058,_0x14bc9c._0x57e0c8,0x40d));}[_0xc7d8a6(-0x123,-0xcf,-0xb9,-0xf3)](){const _0x53d4f6={_0x2a6f04:0x2c9},_0x83bd26={_0x14ae24:0x16a};function _0x285e8d(_0x1939c7,_0x4ba7bc,_0x5c8db5,_0x20f1aa){return _0xc7d8a6(_0x1939c7-_0x83bd26._0x14ae24,_0x1939c7,_0x5c8db5-0x1c1,_0x20f1aa-0x46a);}return this[_0x285e8d(0x27e,0x234,_0x53d4f6._0x2a6f04,0x2d8)]['createMissingCredentialError']();}async['createHeaders'](_0x2adb83,_0x9bce15){const _0x4989d5={_0x132134:0x30b,_0x3feb2d:0x226,_0x15df48:0x16b,_0x462a9f:0x177},_0x3b6013={_0x3c2d36:0x162,_0x39e22e:0x1e9},_0x5c5448={_0x247d7c:0x1d2,_0x1ddaf2:0xc4,_0x55fc7a:0x7c};function _0x25b787(_0x23f862,_0x8814fa,_0x601d52,_0x250b98){return _0x74a064(_0x23f862-_0x5c5448._0x247d7c,_0x8814fa-_0x5c5448._0x1ddaf2,_0x23f862-_0x5c5448._0x55fc7a,_0x601d52);}function _0x51f5ff(_0x316d97,_0x4cc32e,_0x59aa7c,_0x547f17){return _0x74a064(_0x316d97-_0x3b6013._0x3c2d36,_0x4cc32e-_0x3b6013._0x39e22e,_0x316d97-0x34b,_0x547f17);}return await this[_0x51f5ff(_0x4989d5._0x132134,0x335,0x3ad,_0x4989d5._0x3feb2d)][_0x25b787(0xbb,0x15c,_0x4989d5._0x15df48,_0x4989d5._0x462a9f)](_0x2adb83,_0x9bce15);}[_0x74a064(0xb8,0x63,0xce,0x6d)](_0x3f5b75){const _0x52b878={_0xfb3f43:0x491,_0x35fa7b:0x4ae,_0x674dc5:0x4f0,_0x336ebe:0x441,_0x21d31a:0x4c1,_0x29f5dc:0x500,_0x1a63d4:0x54f},_0x24bae9={_0x22b856:0x1ed,_0xeecb47:0xaa},_0x361830={_0x2974e0:0x104,_0x39bf24:0x481};function _0x1b240d(_0x3f1de1,_0x11fe3b,_0x4d76e2,_0x591b2a){return _0x74a064(_0x3f1de1-0x15,_0x11fe3b-_0x361830._0x2974e0,_0x591b2a-_0x361830._0x39bf24,_0x3f1de1);}function _0x4c9bb8(_0x48ff0d,_0x43b0fc,_0x11efdd,_0x19199c){return _0x74a064(_0x48ff0d-_0x24bae9._0x22b856,_0x43b0fc-_0x24bae9._0xeecb47,_0x48ff0d-0x1c9,_0x43b0fc);}return this[_0x1b240d(_0x52b878._0xfb3f43,_0x52b878._0x35fa7b,_0x52b878._0x674dc5,_0x52b878._0x336ebe)][_0x1b240d(_0x52b878._0x21d31a,0x4c6,_0x52b878._0x29f5dc,_0x52b878._0x1a63d4)](_0x3f5b75);}async[_0xc7d8a6(0x10,-0xa7,-0x45,-0x13)](_0x216bc8){const _0x14553d={_0x47c999:0x217,_0x348262:0x126},_0x23a84c={_0x3f0fe3:0x19f,_0x4f32c2:0x10c,_0x4eafbe:0x113};function _0x544fc7(_0x3027b6,_0x1e3cad,_0x4dcd26,_0xe01039){return _0xc7d8a6(_0x3027b6-_0x23a84c._0x3f0fe3,_0x4dcd26,_0x4dcd26-_0x23a84c._0x4f32c2,_0xe01039- -_0x23a84c._0x4eafbe);}function _0x492c99(_0x35c101,_0x5176f1,_0x45a50a,_0x381392){return _0xc7d8a6(_0x35c101-0x6,_0x45a50a,_0x45a50a-0x12f,_0x381392-0x80);}return await this[_0x544fc7(-0x21e,-_0x14553d._0x47c999,-0x303,-0x2a5)][_0x544fc7(-0x177,-0x1d3,-0xc5,-_0x14553d._0x348262)](_0x216bc8);}[_0x74a064(-0xa8,0x70,-0x49,-0x28)](_0x58f4b9){const _0x49a181={_0x2f7674:0x266,_0x16efa3:0x299,_0x490df1:0x315,_0x34424d:0x24c,_0x3eed6e:0x28e,_0x11d27f:0x1b4,_0x72d255:0x2df},_0x172ca0={_0x518fbb:0x19b,_0x2c9167:0x1ec},_0x598239={_0x7197b5:0x27e},_0x3b8671=this[_0x4ad703(-_0x49a181._0x2f7674,-_0x49a181._0x16efa3,-_0x49a181._0x490df1,-_0x49a181._0x34424d)][_0xb1df2f(0x201,_0x49a181._0x3eed6e,_0x49a181._0x11d27f,0x2f5)](_0x58f4b9);function _0x4ad703(_0x21f5e9,_0x3970c3,_0x255d3e,_0xf55ee5){return _0x74a064(_0x21f5e9-0x2b,_0x3970c3-0xd8,_0x21f5e9- -_0x598239._0x7197b5,_0x255d3e);}function _0xb1df2f(_0x589593,_0x54d826,_0x491229,_0x3b132d){return _0x74a064(_0x589593-_0x172ca0._0x518fbb,_0x54d826-_0x172ca0._0x2c9167,_0x54d826-0x215,_0x589593);}if(!_0x3b8671)throw new Error(_0x4ad703(-0x2ae,-_0x49a181._0x72d255,-0x2ac,-0x32d)+_0x58f4b9);return _0x3b8671;}async[_0xc7d8a6(-0x3b,-0x18e,-0x160,-0xfd)](_0x35df62,_0x124f8f){const _0x7dc9f2={_0x1a8535:0x282,_0x1f2078:0x1a0,_0x206baf:0x1b1,_0x354eab:0x1d5,_0x5a6840:0x1da,_0x3ec37e:0x1c6,_0x9838e9:0x2bc,_0x2df6b5:0x243,_0x18c670:0x2d5,_0x5a99eb:0x1be,_0x30335e:0x223,_0x40c1f9:0xa2,_0x1058de:0x19,_0x3fdbc7:0xec,_0x634f99:0x216,_0x38e393:0x19a,_0x38becd:0x198,_0x1cdbe3:0x1e7,_0x5d0913:0x1f2,_0x3a8b1b:0x154,_0x33dd17:0xd8,_0x52195f:0x11e,_0x3c3ad0:0x186},_0x6e1b2e={_0x2edf2f:0xb1,_0x1fb2c5:0x55},_0x3118ff={_0x375526:0x120},_0x5611fa=toModelRequest(_0x35df62),_0x3a5c0c=await prepareProviderRequest(_0x5611fa,{'sessionManager':this[_0x503e7b(-0x11b,-_0x7dc9f2._0x1a8535,-_0x7dc9f2._0x1f2078,-_0x7dc9f2._0x206baf)],'requestMutators':this[_0x503e7b(-_0x7dc9f2._0x354eab,-0x13a,-0x18c,-0x189)],'signal':_0x124f8f}),_0x3902f3=toChatRequest(_0x3a5c0c[_0x9fac4b(-_0x7dc9f2._0x5a6840,-0x11f,-0x188,-_0x7dc9f2._0x3ec37e)]),_0x134cfd=this[_0x503e7b(-_0x7dc9f2._0x9838e9,-_0x7dc9f2._0x2df6b5,-0x2c4,-0x1e7)][_0x9fac4b(-_0x7dc9f2._0x18c670,-0x266,-_0x7dc9f2._0x5a99eb,-_0x7dc9f2._0x30335e)](this[_0x503e7b(-_0x7dc9f2._0x40c1f9,-_0x7dc9f2._0x1058de,-_0x7dc9f2._0x3fdbc7,-0xe5)],_0x3a5c0c[_0x9fac4b(-0x12d,-0x1d1,-0x1ee,-0x181)]);function _0x9fac4b(_0x418576,_0x10a873,_0x1f7c3e,_0x1f3662){return _0xc7d8a6(_0x418576-0x15f,_0x1f7c3e,_0x1f7c3e-_0x3118ff._0x375526,_0x1f3662- -0x50);}if(!_0x134cfd)throw this[_0x503e7b(-0x1d3,-0x144,-_0x7dc9f2._0x634f99,-0x148)]();function _0x503e7b(_0x59ef9a,_0xdc67c8,_0x106f09,_0x10c171){return _0xc7d8a6(_0x59ef9a-_0x6e1b2e._0x2edf2f,_0x106f09,_0x106f09-0x1b3,_0x10c171- -_0x6e1b2e._0x1fb2c5);}return{'baseUrl':this[_0x503e7b(-_0x7dc9f2._0x38e393,-0x232,-_0x7dc9f2._0x38becd,-_0x7dc9f2._0x1cdbe3)][_0x9fac4b(-0x158,-_0x7dc9f2._0x5d0913,-0x6f,-_0x7dc9f2._0x3a8b1b)](this['baseUrl'],_0x3a5c0c['session']),'credential':_0x134cfd,'request':_0x3902f3,'session':_0x3a5c0c[_0x503e7b(-_0x7dc9f2._0x33dd17,-0x22c,-_0x7dc9f2._0x52195f,-_0x7dc9f2._0x3c3ad0)]};}[_0x74a064(-0x26,-0x8,0x30,0xbe)](_0x26985e){const _0x503506={_0x303697:0x65b,_0x225f62:0x600,_0x1c2b68:0x4e8,_0x502b38:0x610,_0x2396dc:0x567},_0x5a8683={_0x5e436a:0x92,_0x52a651:0x5bc};function _0x12c6ca(_0x4b78f1,_0x5a6909,_0x28dae4,_0x51b957){return _0xc7d8a6(_0x4b78f1-0x1a7,_0x4b78f1,_0x28dae4-_0x5a8683._0x5e436a,_0x28dae4-_0x5a8683._0x52a651);}function _0x541512(_0x3606f5,_0x170081,_0x2b8cf8,_0x3d7ab5){return _0xc7d8a6(_0x3606f5-0xd1,_0x170081,_0x2b8cf8-0xab,_0x3606f5-0x4c0);}return{...structuredClone(_0x26985e),..._0x26985e[_0x12c6ca(_0x503506._0x303697,_0x503506._0x225f62,0x592,_0x503506._0x1c2b68)]===void 0x0&&this[_0x12c6ca(0x5b7,_0x503506._0x502b38,0x592,0x56e)]!==void 0x0?{'reasoning':structuredClone(this[_0x12c6ca(_0x503506._0x2396dc,0x55a,0x592,0x54b)])}:{}};}async[_0x74a064(0x48,0x7e,0x110,0x6c)](_0x52a665,_0x5b864f,_0x3f0c52,_0x327e37={},_0x431b38=!![]){const _0x52570c={_0x9ed9a4:0x15f},_0x257bd8={_0x26480e:0x3c1,_0x53a60a:0x54b,_0x585bd3:0x3db,_0x2cdf5e:0x46e,_0x441d31:0x59d,_0x5ecb73:0x4e4,_0x13bd29:0x193,_0x4ae57f:0x539,_0xc8f45f:0x38e,_0xcfc173:0x3fe,_0x1924ff:0x3e1,_0x306182:0x32c,_0x104b2f:0x3c0,_0x3b2273:0x2e7,_0x8bb1d4:0x247,_0x7b50b7:0x241,_0x5e510a:0x21b,_0x3f6cd4:0x22d,_0xf8aec8:0x541,_0x1d37ee:0x3d0,_0x48d288:0x499,_0x44e02f:0x1c4,_0x5b1fdb:0x206,_0x3fb3c4:0x427,_0x362fdc:0x560,_0x37fc84:0x415,_0x1b2055:0x54d,_0x140dac:0x4ca,_0x473e78:0x49a,_0x547126:0x4e0,_0x413482:0x535,_0x4aadc8:0x144,_0x469645:0x1b2,_0x3a4a19:0x20b,_0x5c3bf9:0x478},{signal:_0x364bcb}=_0x327e37,_0x1b3c3f=async()=>{const _0x1e9393={_0x1e798e:0x2bd};function _0x210541(_0x2d080c,_0x33a788,_0x464b32,_0x597d70){return _0x4762(_0x597d70-_0x1e9393._0x1e798e,_0x2d080c);}const _0x30f21f=await this[_0x210541(_0x257bd8._0x26480e,_0x257bd8._0x53a60a,_0x257bd8._0x585bd3,_0x257bd8._0x2cdf5e)](_0x52a665,_0x364bcb);let _0xce0f07;try{_0xce0f07=_0x5b864f[_0x210541(_0x257bd8._0x441d31,0x4bd,0x458,_0x257bd8._0x5ecb73)](_0x30f21f[_0x2ee8f9(0xda,0x18e,_0x257bd8._0x13bd29,0x13d)]);}catch(_0x556608){if(_0x556608 instanceof Error)throw new ProviderRequestConstructionError(_0x556608['message']);throw _0x556608;}if(!_0xce0f07['path'])throw new ProviderRequestConstructionError(_0x210541(0x598,0x483,0x518,_0x257bd8._0x4ae57f)+_0x5b864f['id']+_0x2ee8f9(0x33d,0x2c5,_0x257bd8._0xc8f45f,0x390));function _0x2ee8f9(_0x2e52fd,_0x4ad7e2,_0xf03bcb,_0x7df473){return _0x4762(_0x4ad7e2-0x56,_0x2e52fd);}const _0x34ad37=await this[_0x210541(_0x257bd8._0xcfc173,0x4c5,0x47b,0x458)]({'request':_0x30f21f[_0x210541(_0x257bd8._0x1924ff,_0x257bd8._0x306182,_0x257bd8._0x104b2f,0x3f5)],'body':_0xce0f07[_0x2ee8f9(_0x257bd8._0x3b2273,_0x257bd8._0x8bb1d4,0x170,0x2c8)],'credential':_0x30f21f[_0x2ee8f9(_0x257bd8._0x7b50b7,_0x257bd8._0x5e510a,_0x257bd8._0x3f6cd4,0x245)],'session':_0x30f21f['session'],'stream':_0x3f0c52},{'accept':_0xce0f07[_0x210541(0x538,_0x257bd8._0xf8aec8,_0x257bd8._0x1d37ee,_0x257bd8._0x48d288)]??(_0x3f0c52?'text/event-stream':_0x2ee8f9(0xdd,_0x257bd8._0x44e02f,_0x257bd8._0x5b1fdb,0x217)),'includeContentType':_0xce0f07[_0x210541(_0x257bd8._0x3fb3c4,_0x257bd8._0x362fdc,_0x257bd8._0x37fc84,0x4ae)]!==void 0x0});for(const [_0x5d950a,_0x2a5605]of Object[_0x210541(_0x257bd8._0x1b2055,0x51a,0x562,0x547)](_0xce0f07[_0x210541(0x558,0x4ca,_0x257bd8._0x140dac,_0x257bd8._0x473e78)]??{})){_0x34ad37[_0x210541(_0x257bd8._0x547126,0x55c,0x4fa,_0x257bd8._0x413482)](_0x5d950a,_0x2a5605);}return this['fetchImpl'](''+_0x30f21f[_0x2ee8f9(_0x257bd8._0x4aadc8,_0x257bd8._0x469645,0x282,0x1e8)]+_0xce0f07['path'],{'method':'POST','headers':_0x34ad37,..._0xce0f07['body']!==void 0x0?{'body':JSON[_0x2ee8f9(0x2fa,0x22f,_0x257bd8._0x3a4a19,0x210)](_0xce0f07[_0x210541(_0x257bd8._0x5c3bf9,0x3f3,0x4f1,0x4ae)])}:{},'signal':_0x364bcb});};function _0x2115de(_0xe6f6a7,_0xac9019,_0x3fd5f7,_0x17ed18){return _0xc7d8a6(_0xe6f6a7-0x189,_0xe6f6a7,_0x3fd5f7-0x51,_0xac9019-0x1a1);}return _0x431b38?await this[_0x2115de(0x10a,0x156,0x84,_0x52570c._0x9ed9a4)](_0x1b3c3f,_0x327e37):await _0x1b3c3f();}async*['streamHttpSurface'](_0x3b849e,_0x39a77e,_0x550796={}){const _0x20a720={_0xeba13f:0x2cd,_0x2d1d7e:0x2b7,_0x392a75:0x260,_0x12b512:0x291,_0x291582:0x16a,_0x87981c:0x213,_0x361d0a:0x238,_0x103fdf:0x5b,_0x2e9d45:0xa,_0x4d2fa3:0xb3,_0x21fc92:0x133,_0x1f1261:0x1b,_0x2e9963:0x27,_0x22883c:0x3e0,_0x596525:0x2f1,_0x3d3661:0x3be,_0x433151:0x23c,_0x24287a:0x11a,_0x39a6e4:0x2e8,_0x1bf5c7:0x2fe,_0x2aac53:0x216,_0x40bf2b:0x1e2,_0x2569f7:0x2e4,_0x5a7fe3:0x31d,_0x1777a5:0x309,_0x354957:0x1d,_0x4fb51e:0x60,_0x4bf619:0xb6},_0x1108ae={_0x66ad72:0xb7,_0x26116a:0x14c},_0xeb1f4={_0x1aaba0:0xc6},{signal:_0x179bca}=_0x550796;function _0xb2e392(_0x918a3d,_0x2904ae,_0x91c38c,_0x1e7f38){return _0xc7d8a6(_0x918a3d-0x185,_0x918a3d,_0x91c38c-0x16a,_0x91c38c-_0xeb1f4._0x1aaba0);}let _0x25d47d=![];function _0x188b44(_0x9fd29d,_0x5f230f,_0x20c09e,_0x965a84){return _0x74a064(_0x9fd29d-_0x1108ae._0x66ad72,_0x5f230f-_0x1108ae._0x26116a,_0x20c09e-0x1ea,_0x965a84);}for(let _0x498331=0x0;_0x498331<MAX_PROVIDER_REQUEST_ATTEMPTS;_0x498331+=0x1){let _0x55b2d3=![];try{const _0x862e17=await this[_0xb2e392(0x74,-0x60,0x84,0x3f)](_0x3b849e,_0x39a77e,!![],_0x550796,![]);if(_0x862e17[_0x188b44(0x1c8,_0x20a720._0xeba13f,0x257,0x19b)]===0x191&&this[_0x188b44(0x16c,_0x20a720._0x2d1d7e,0x1e0,_0x20a720._0x392a75)]&&!_0x25d47d){_0x25d47d=!![],this[_0x188b44(_0x20a720._0x12b512,0x152,0x1e0,_0x20a720._0x291582)][_0x188b44(0x16a,0x2b2,_0x20a720._0x87981c,_0x20a720._0x361d0a)]();continue;}if(!_0x862e17['ok'])throw await this[_0xb2e392(_0x20a720._0x103fdf,_0x20a720._0x2e9d45,_0x20a720._0x4d2fa3,_0x20a720._0x21fc92)](_0x862e17);const _0x119402=_0x39a77e[_0xb2e392(_0x20a720._0x1f1261,-0x15,_0x20a720._0x2e9963,0x4b)]?.(_0x3b849e);if(!_0x119402?.['consumeSseEvent'])throw new Error(_0x188b44(_0x20a720._0x22883c,_0x20a720._0x596525,0x30a,_0x20a720._0x3d3661)+_0x39a77e['id']+_0x188b44(_0x20a720._0x433151,0x2d7,0x1f8,_0x20a720._0x24287a));for await(const _0xf6c80a of iterateSseEvents(_0x862e17,_0x179bca)){const _0x5e29ce=_0x119402['consumeSseEvent'](_0xf6c80a);for(const _0xd887dc of _0x5e29ce){_0x55b2d3=!![],yield _0xd887dc;}}yield{'type':_0x188b44(0x210,0x37a,_0x20a720._0x39a6e4,_0x20a720._0x1bf5c7),'response':_0x119402['finish']()};return;}catch(_0x281c59){if(_0x55b2d3||!this[_0x188b44(0x14c,0x183,_0x20a720._0x2aac53,_0x20a720._0x40bf2b)](_0x281c59)||_0x498331===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0x281c59;const _0x4abeb8=this[_0x188b44(_0x20a720._0x2569f7,_0x20a720._0x5a7fe3,_0x20a720._0x1777a5,0x250)](void 0x0,_0x498331),_0x1802ef={'type':'provider_retry','attempt':_0x498331+0x1,'maxAttempts':MAX_PROVIDER_REQUEST_ATTEMPTS,'error':_0x281c59 instanceof Error?_0x281c59[_0xb2e392(0xab,0x60,_0x20a720._0x354957,0xa8)]:String(_0x281c59),'delayMs':_0x4abeb8,'reason':this['shouldRetryRequestError'](_0x281c59)?_0xb2e392(0x59,_0x20a720._0x4fb51e,0x25,-0x22):'stream_error'};yield _0x1802ef,await this[_0xb2e392(-_0x20a720._0x4bf619,-0x113,-0xc0,0xc)](_0x4abeb8,_0x179bca);}}}async*[_0x74a064(0x8f,0x195,0x10a,0x15a)](_0x8fe5cd,_0x573b04,_0x54d5a1){const _0x3b1f15={_0x25d12b:0x2a5,_0x5f260a:0x391,_0xe2bca4:0x366,_0x80dca3:0x2b8,_0x22291c:0x277,_0x455022:0x2da,_0x20c2e0:0x24d,_0x387e33:0x2ba,_0x2bdb9a:0x276,_0xd0118:0x3f0,_0x1d0309:0x19a,_0x2699bc:0xb5,_0x2c4a25:0x14f,_0x4625f0:0x1d4,_0x2665d7:0x39d,_0x33c8cb:0x2bb,_0x2c5a79:0x29c,_0x200225:0x379,_0x8c0eaa:0x38e,_0x6fc8c4:0x370,_0xbe2170:0x303,_0x2aa755:0x32a,_0x2578dc:0x3c5,_0xb6f133:0x462,_0x33a76e:0x1d9,_0x3b9fc2:0x1c0,_0x204889:0x12f,_0x3e3663:0x359,_0x4ab1bc:0x260,_0x19869f:0x1bc,_0x178b4d:0x235,_0xc3a1e6:0x2ee,_0x4f5bca:0x345,_0x5b7bed:0x31b,_0xd3ad9c:0x3e4,_0x1ab8af:0x3a5,_0x55ca60:0x37d,_0x54c05a:0x31c,_0x50e7c2:0x2b6,_0x18274e:0x2dc,_0x143a55:0x291,_0x520128:0x21a,_0x495d39:0x23b,_0x4c421c:0x2d8,_0x2b67f6:0x329,_0x2dd25b:0x308,_0x4b088e:0x3d8,_0x40352b:0x3c9,_0x3b1b3f:0x34e,_0x512d73:0x3c6,_0x22c434:0x360,_0x21e4fa:0x28a,_0x4335ea:0x1da,_0xeb0c52:0x1d3,_0x2e79b3:0x252,_0x56fa2f:0x1c0,_0x312e42:0x31d,_0x17cc15:0x28f,_0x26cfe3:0x288,_0x5c34e2:0x2cf,_0x3e7697:0x1d0,_0x4b4fbe:0x30a,_0x385c3f:0x357,_0xc132d7:0x2ee,_0x16f164:0x324,_0x2ef541:0x1fc,_0x1bb901:0x2a2,_0x1b5160:0x1be,_0x11e5e7:0x201,_0x2e7226:0x21d,_0x2f86d8:0x25a,_0x1524a2:0x253,_0x54d21c:0x1a8,_0x277e4c:0x2ab,_0x4aef52:0x1c4},_0x9eac3b={_0x499840:0x124,_0x17311f:0x3ed},_0x52bfcc={_0x7902f3:0x46,_0x509468:0x19b};function _0x1722fc(_0x57427f,_0x3ec2d0,_0x53351e,_0x9af88a){return _0x74a064(_0x57427f-_0x52bfcc._0x7902f3,_0x3ec2d0-_0x52bfcc._0x509468,_0x57427f-0x19a,_0x9af88a);}const _0x10eafd=await this[_0x18b24d(_0x3b1f15._0x25d12b,0x2f0,0x241,_0x3b1f15._0x5f260a)](_0x8fe5cd,_0x54d5a1),_0xcd83e7=_0x573b04[_0x18b24d(0x443,_0x3b1f15._0xe2bca4,0x32a,_0x3b1f15._0x80dca3)](_0x10eafd[_0x18b24d(0x1ec,_0x3b1f15._0x22291c,0x1f4,_0x3b1f15._0x455022)]),_0x565d33=_0x573b04[_0x1722fc(_0x3b1f15._0x20c2e0,0x21f,0x21d,0x23b)]?.(_0x8fe5cd);if(!_0x565d33?.['consumeWebSocketEvent'])throw new Error(_0x1722fc(_0x3b1f15._0x387e33,0x254,_0x3b1f15._0x2bdb9a,0x23a)+_0x573b04['id']+'\x20cannot\x20parse\x20WebSocket\x20events');const _0x42a803=_0xcd83e7['url']??(_0xcd83e7[_0x18b24d(0x3f3,0x3d1,_0x3b1f15._0xd0118,0x2fd)]?(''+_0x10eafd[_0x1722fc(_0x3b1f15._0x1d0309,_0x3b1f15._0x2699bc,_0x3b1f15._0x2c4a25,_0x3b1f15._0x4625f0)]+_0xcd83e7[_0x1722fc(0x2d0,0x3af,_0x3b1f15._0x2665d7,0x26d)])[_0x1722fc(_0x3b1f15._0x33c8cb,_0x3b1f15._0x2c5a79,0x20b,0x26d)](/^http:/,_0x18b24d(_0x3b1f15._0x200225,0x2c8,_0x3b1f15._0x8c0eaa,0x270))[_0x18b24d(0x42f,0x3bc,_0x3b1f15._0x6fc8c4,_0x3b1f15._0xbe2170)](/^https:/,_0x18b24d(0x405,0x380,_0x3b1f15._0x2aa755,0x3a9)):void 0x0);if(!_0x42a803)throw new ProviderRequestConstructionError('Surface\x20'+_0x573b04['id']+_0x18b24d(_0x3b1f15._0x2578dc,0x3de,_0x3b1f15._0xb6f133,0x3ed));const _0x1ffd9f=await this[_0x1722fc(_0x3b1f15._0x33a76e,_0x3b1f15._0x3b9fc2,_0x3b1f15._0x204889,0x14c)]({'request':_0x10eafd[_0x18b24d(_0x3b1f15._0x3e3663,0x277,_0x3b1f15._0x4ab1bc,0x290)],'body':_0xcd83e7[_0x1722fc(0x21c,0x29e,0x1fd,0x1e6)],'credential':_0x10eafd[_0x1722fc(0x203,0x210,0x137,_0x3b1f15._0x19869f)],'session':_0x10eafd[_0x18b24d(0x394,0x2bc,_0x3b1f15._0x178b4d,_0x3b1f15._0xc3a1e6)],'stream':!![]},{'accept':_0xcd83e7[_0x18b24d(_0x3b1f15._0x4f5bca,_0x3b1f15._0x5b7bed,_0x3b1f15._0xd3ad9c,_0x3b1f15._0x1ab8af)]??'application/json','includeContentType':![]});for(const [_0x5ac87c,_0x24b42b]of Object['entries'](_0xcd83e7[_0x18b24d(_0x3b1f15._0x55ca60,_0x3b1f15._0x54c05a,0x2f1,0x31d)]??{})){_0x1ffd9f[_0x1722fc(_0x3b1f15._0x50e7c2,0x332,_0x3b1f15._0x18274e,_0x3b1f15._0x143a55)](_0x5ac87c,_0x24b42b);}_0x1ffd9f['delete'](_0x1722fc(_0x3b1f15._0x520128,_0x3b1f15._0x495d39,0x206,0x163));const _0xc6a704=this[_0x18b24d(0x2f1,0x312,0x267,_0x3b1f15._0x4c421c)]({'headers':Object[_0x18b24d(0x3d5,_0x3b1f15._0x2b67f6,0x36c,_0x3b1f15._0x2dd25b)](_0x1ffd9f[_0x18b24d(_0x3b1f15._0x4b088e,_0x3b1f15._0x40352b,0x3cd,0x3bf)]()),'url':_0x42a803});function _0x18b24d(_0x327821,_0xaad9b8,_0x471351,_0x576c23){return _0xc7d8a6(_0x327821-0x150,_0x576c23,_0x471351-_0x9eac3b._0x499840,_0xaad9b8-_0x9eac3b._0x17311f);}try{throwIfAborted(_0x54d5a1);_0xc6a704[_0x18b24d(0x3d1,0x3d4,_0x3b1f15._0x3b1b3f,_0x3b1f15._0x512d73)]!==WebSocket[_0x18b24d(_0x3b1f15._0x22c434,_0x3b1f15._0x21e4fa,0x304,_0x3b1f15._0x4335ea)]&&await waitForWebSocketOpen(_0xc6a704,_0x54d5a1);throwIfAborted(_0x54d5a1);_0xcd83e7['initialEvent']!==void 0x0&&_0xc6a704[_0x1722fc(0x1fa,_0x3b1f15._0xeb0c52,_0x3b1f15._0x2e79b3,0x118)](JSON[_0x1722fc(0x217,0x25b,0x235,_0x3b1f15._0x56fa2f)](_0xcd83e7[_0x18b24d(0x341,_0x3b1f15._0x312e42,0x2fb,0x293)]));for await(const _0x1a09f5 of iterateWebSocketMessages(_0xc6a704,_0x54d5a1)){yield*_0x565d33[_0x18b24d(0x231,_0x3b1f15._0x17cc15,_0x3b1f15._0x26cfe3,_0x3b1f15._0x5c34e2)](_0x1a09f5);if(_0x565d33[_0x1722fc(0x297,_0x3b1f15._0x3e7697,_0x3b1f15._0x4b4fbe,_0x3b1f15._0x385c3f)]?.())break;}yield{'type':_0x1722fc(0x298,_0x3b1f15._0xc132d7,0x1c4,_0x3b1f15._0x16f164),'response':_0x565d33[_0x18b24d(0x3cb,0x38f,_0x3b1f15._0xb6f133,0x46e)]()};}finally{_0xc6a704[_0x1722fc(0x2d3,0x367,0x20a,_0x3b1f15._0x2ef541)]===WebSocket[_0x18b24d(_0x3b1f15._0x1bb901,0x28a,_0x3b1f15._0x1b5160,0x1cb)]&&_0xc6a704[_0x1722fc(0x17b,_0x3b1f15._0x11e5e7,_0x3b1f15._0x2e7226,_0x3b1f15._0x2f86d8)](0x3e8,_0x54d5a1?.[_0x18b24d(0x254,0x24e,_0x3b1f15._0x1524a2,_0x3b1f15._0x54d21c)]?_0x18b24d(_0x3b1f15._0x277e4c,0x24e,0x26c,0x1f5):_0x1722fc(_0x3b1f15._0x4aef52,0x1f4,0x1c7,0x16f));}}};async function createHttpError(_0x4ec532){const _0x18b062={_0x4edad7:0x32e,_0xb7cca5:0x344,_0x74d624:0x2b7,_0x244ba0:0x341,_0x19665e:0xf3,_0xa1eda4:0x150,_0x4e7745:0x238,_0x3867ca:0x200,_0xa73728:0x26d,_0x27daec:0x1c6},_0x2fd000={_0x4ddae8:0x1b8},_0x3cadd3={_0x20de2d:0x11a,_0x4dc09f:0xcb,_0x5bd4b1:0x11b},_0xad2f00=await _0x4ec532[_0x19093a(-0x247,-0x2ea,-0x33b,-0x29c)]();function _0x2ed38c(_0x38c1cf,_0x4c5913,_0x3bf3ff,_0x2e8844){return _0xc7d8a6(_0x38c1cf-_0x3cadd3._0x20de2d,_0x38c1cf,_0x3bf3ff-_0x3cadd3._0x4dc09f,_0x4c5913- -_0x3cadd3._0x5bd4b1);}function _0x19093a(_0x3ecc51,_0x4c9cd2,_0x408211,_0x44f255){return _0xc7d8a6(_0x3ecc51-_0x2fd000._0x4ddae8,_0x3ecc51,_0x408211-0x4,_0x44f255- -0x130);}const _0x29dd92=_0xad2f00['trim']()||_0x4ec532[_0x2ed38c(-0x2c3,-0x278,-0x2f7,-_0x18b062._0x4edad7)]||_0x2ed38c(-_0x18b062._0xb7cca5,-_0x18b062._0x74d624,-0x32e,-_0x18b062._0x244ba0);return new Error(_0x2ed38c(-_0x18b062._0x19665e,-_0x18b062._0xa1eda4,-0x141,-0x1b3)+_0x4ec532[_0x2ed38c(-_0x18b062._0x4e7745,-_0x18b062._0x3867ca,-_0x18b062._0xa73728,-_0x18b062._0x27daec)]+':\x20'+_0x29dd92);}var AnthropicProviderAdapter=class{[_0x74a064(0x95,-0x18,0x65,0x11)];[_0xc7d8a6(-0x145,-0x117,-0xa8,-0x111)];[_0xc7d8a6(-0x4b,-0xf0,-0x43,-0x10c)];constructor(_0x146366){const _0x2958ce={_0x1c7451:0x13a,_0x2e3618:0xc7,_0x231011:0x106,_0x904823:0x15c,_0x527bbf:0x4b,_0x193f89:0x116,_0x6c1926:0x1e6,_0x45e545:0x1f3,_0x25dfc2:0x8d,_0x4d0acf:0x1e9,_0x1190fe:0x13d,_0x1a5a67:0x1d2,_0x1bafde:0x13d},_0x24b663={_0x39dbf5:0x11b,_0x41a959:0x6,_0x2525bc:0xf7},_0x5adae9={_0x4d4862:0x23,_0xa8b992:0xd5};this[_0x320977(0x212,_0x2958ce._0x1c7451,0x152,0x144)]=_0x146366[_0x537128(_0x2958ce._0x2e3618,_0x2958ce._0x231011,0x1a7,_0x2958ce._0x904823)],this[_0x320977(_0x2958ce._0x527bbf,_0x2958ce._0x193f89,0xe0,_0x2958ce._0x6c1926)]=_0x146366[_0x320977(_0x2958ce._0x45e545,_0x2958ce._0x193f89,0x17d,_0x2958ce._0x25dfc2)];function _0x320977(_0x594f99,_0x104364,_0x415779,_0x4f0b36){return _0x74a064(_0x594f99-_0x5adae9._0x4d4862,_0x104364-0x171,_0x104364-_0x5adae9._0xa8b992,_0x415779);}function _0x537128(_0x590d5e,_0x2094e2,_0x77d828,_0xe47eda){return _0x74a064(_0x590d5e-_0x24b663._0x39dbf5,_0x2094e2-_0x24b663._0x41a959,_0xe47eda-_0x24b663._0x2525bc,_0x77d828);}this[_0x537128(0x1aa,0x13c,_0x2958ce._0x4d0acf,_0x2958ce._0x1190fe)]=_0x146366[_0x537128(0x15f,_0x2958ce._0x1a5a67,0xa9,_0x2958ce._0x1bafde)];}['createMissingCredentialError'](){const _0x1b2c8a={_0x68ad1c:0xb4,_0x6ec906:0x2d,_0x266751:0x46},_0x18c538={_0x49a398:0x136,_0x4421b7:0xb5};function _0x4e34a9(_0x5d5c08,_0x2d8910,_0x555968,_0x4cb8c0){return _0x74a064(_0x5d5c08-_0x18c538._0x49a398,_0x2d8910-0x2b,_0x4cb8c0-_0x18c538._0x4421b7,_0x555968);}return new Error(_0x4e34a9(_0x1b2c8a._0x68ad1c,-_0x1b2c8a._0x6ec906,0x31,_0x1b2c8a._0x266751));}async['createHeaders'](_0x13b45b,_0x13ff79){const _0x473c0c={_0x67d992:0x160,_0x5f3a86:0x1b7,_0x46a66b:0x2d,_0x3e3bfc:0x75,_0x1ea301:0x14a,_0x3880a0:0x3c5,_0x24786e:0x35f,_0x295b7f:0x5d,_0x201831:0xdc,_0x5e6993:0x8e,_0x26bd27:0x21,_0x593806:0x92,_0x13ae0a:0xa1,_0x47187c:0x344,_0x56f65e:0x30f,_0x4a5f51:0x1,_0x32993c:0xe0,_0x4cec62:0x8,_0x18796c:0x7,_0x28df53:0x40,_0x26bb38:0xa2,_0x386113:0x27f,_0x13f838:0x3e9,_0x1c52c5:0x15d,_0x5e5e72:0xcc,_0x96efbb:0x88,_0x4bb71e:0x72,_0x5991d2:0x16,_0x31366a:0x392,_0x159668:0x262,_0x28e3cb:0x1fd,_0x1f5f1c:0x296,_0x4f6d1f:0x3c0,_0x558240:0x35f,_0x5b44ef:0x343,_0x44dbc9:0x291,_0x580043:0x35c,_0x20eed4:0x29d,_0xca1862:0x8a,_0x4b4e29:0x108,_0x38e44b:0x5e,_0x20b8ca:0xc1,_0x11de2b:0x2f,_0x4c2c4e:0x2a,_0x22f63c:0x170,_0x124696:0x123,_0x523e69:0x42e,_0x399914:0x438,_0xf8c80f:0x40b},_0x47950f={_0x3c4886:0x243},_0x692623={_0x3a3554:0x97};function _0xf4fff4(_0x5dfa1e,_0x29f182,_0x490490,_0x405881){return _0x74a064(_0x5dfa1e-0x1c9,_0x29f182-_0x692623._0x3a3554,_0x29f182- -0xb,_0x405881);}const _0x2178f6=new Headers();_0x2178f6[_0xf4fff4(_0x473c0c._0x67d992,0x111,0x169,_0x473c0c._0x5f3a86)](_0xf4fff4(-_0x473c0c._0x46a66b,_0x473c0c._0x3e3bfc,_0x473c0c._0x1ea301,0xfb),_0x13ff79['accept']),_0x2178f6[_0x2c3586(_0x473c0c._0x3880a0,_0x473c0c._0x24786e,0x298,0x3d9)](_0xf4fff4(_0x473c0c._0x295b7f,0x1b,_0x473c0c._0x201831,-0xbb),this['protocolVersion']);_0x13ff79[_0xf4fff4(_0x473c0c._0x5e6993,-_0x473c0c._0x26bd27,_0x473c0c._0x593806,_0x473c0c._0x13ae0a)]!==![]&&_0x2178f6[_0x2c3586(0x366,0x35f,_0x473c0c._0x47187c,_0x473c0c._0x56f65e)](_0xf4fff4(-_0x473c0c._0x4a5f51,0x92,_0x473c0c._0x32993c,0xf8),_0xf4fff4(-_0x473c0c._0x4cec62,_0x473c0c._0x18796c,-_0x473c0c._0x28df53,-_0x473c0c._0x26bb38));this['authScheme']===_0x2c3586(0x24c,0x320,_0x473c0c._0x386113,_0x473c0c._0x13f838)?_0x2178f6[_0xf4fff4(0xfa,0x111,_0x473c0c._0x1c52c5,_0x473c0c._0x5e5e72)](_0xf4fff4(0xe1,0xd4,0xdc,0x60),_0xf4fff4(0x33,_0x473c0c._0x96efbb,_0x473c0c._0x4bb71e,-_0x473c0c._0x5991d2)+_0x13b45b[_0x2c3586(_0x473c0c._0x31366a,0x2ac,_0x473c0c._0x159668,0x30c)][_0x2c3586(_0x473c0c._0x28e3cb,0x1c0,_0x473c0c._0x1f5f1c,0x182)]):_0x2178f6[_0x2c3586(_0x473c0c._0x4f6d1f,_0x473c0c._0x558240,0x2e9,0x373)](_0x2c3586(0x32c,_0x473c0c._0x5b44ef,0x3d7,0x2ac),_0x13b45b['credential']['value']);const _0x33a007=await this[_0x2c3586(_0x473c0c._0x44dbc9,0x284,_0x473c0c._0x580043,_0x473c0c._0x20eed4)]?.({'body':_0x13b45b[_0xf4fff4(0x15,_0x473c0c._0xca1862,-0x1f,_0x473c0c._0x4b4e29)],'credential':_0x13b45b[_0xf4fff4(_0x473c0c._0x4a5f51,_0x473c0c._0x38e44b,_0x473c0c._0x20b8ca,-0x7f)],'request':_0x13b45b[_0xf4fff4(-0x54,-_0x473c0c._0x11de2b,-0x7c,0xac)],'session':_0x13b45b[_0xf4fff4(-0x9c,_0x473c0c._0x5991d2,-_0x473c0c._0x4c2c4e,-0xb8)],'stream':_0x13b45b['stream']});for(const [_0x398931,_0x54e516]of Object[_0xf4fff4(_0x473c0c._0x22f63c,_0x473c0c._0x124696,0xcc,0x11d)](_0x33a007??{})){_0x2178f6[_0x2c3586(_0x473c0c._0x523e69,0x35f,_0x473c0c._0x399914,_0x473c0c._0xf8c80f)](_0x398931,_0x54e516);}function _0x2c3586(_0xb33f1,_0xb76765,_0x35c1ac,_0x335f6f){return _0x74a064(_0xb33f1-0xac,_0xb76765-0xe4,_0xb76765-_0x47950f._0x3c4886,_0x335f6f);}return _0x2178f6;}[_0xc7d8a6(-0x97,-0x85,0x28,-0x84)](_0x568258){return _0x568258;}[_0x74a064(0xa4,0x0,0x4e,0x11d)](_0x39349b,_0x529cac){return resolveSessionBaseUrl(_0x39349b,_0x529cac);}['resolveCredential'](_0x2c7fcf,_0x26c7e3){return resolveApiCredential(_0x2c7fcf,_0x26c7e3);}async[_0x74a064(0x1f5,0xab,0x13f,0x122)](_0x2a5764){return await createHttpError(_0x2a5764);}},AnthropicModel=class extends RoutedModel{constructor(_0x1339fa={}){const _0x53cbdf={_0x1fdb10:0xf0,_0x8a16a9:0x13c,_0x4211f5:0x1d0,_0x4c085e:0x2a3,_0x5b8dcd:0x30d,_0x3830df:0x104,_0x533c82:0x2e,_0x14dc94:0x166,_0x3293d1:0x84,_0x560c3d:0x72,_0x21439d:0xa1,_0xa7192f:0xd0,_0x48fe07:0x6f,_0x33484c:0x418,_0x1f8edc:0x285,_0x164505:0x33a,_0x503e8b:0x1e8,_0x16431e:0x73,_0x59704f:0x17c,_0x182bf1:0x41e,_0x48bb9f:0x41a,_0x45547a:0x36e},_0x573472={_0x42c968:0x156,_0x48f973:0x180};function _0xa67483(_0x460112,_0x4c8515,_0x51c624,_0x2e95bf){return _0xc7d8a6(_0x460112-_0x573472._0x42c968,_0x2e95bf,_0x51c624-0x2,_0x460112-_0x573472._0x48f973);}function _0x23cc6b(_0x13b165,_0x474283,_0x5123d4,_0xd955a3){return _0x74a064(_0x13b165-0xd1,_0x474283-0x12,_0xd955a3-0x30d,_0x5123d4);}super({'apiKey':_0x1339fa[_0xa67483(_0x53cbdf._0x1fdb10,0x33,_0x53cbdf._0x8a16a9,_0x53cbdf._0x4211f5)],'baseUrl':trimTrailingSlashes(_0x1339fa[_0x23cc6b(0x305,_0x53cbdf._0x4c085e,0x26b,_0x53cbdf._0x5b8dcd)]??'https://api.anthropic.com'),'fetch':_0x1339fa['fetch'],'maxTokens':_0x1339fa[_0xa67483(_0x53cbdf._0x3830df,_0x53cbdf._0x533c82,0x10b,_0x53cbdf._0x14dc94)]??0x4000,'model':_0x1339fa[_0xa67483(_0x53cbdf._0x3293d1,_0x53cbdf._0x560c3d,0x165,-0x9)]??'claude-sonnet-4-20250514','reasoning':_0x1339fa[_0xa67483(0x156,0xcf,0x188,_0x53cbdf._0x21439d)],'providerAdapter':new AnthropicProviderAdapter({'authScheme':_0x1339fa[_0xa67483(0x93,0x137,_0x53cbdf._0xa7192f,0x2d)]??'x-api-key','headerResolver':_0x1339fa[_0xa67483(_0x53cbdf._0x48fe07,0x2e,0xc9,0x88)],'protocolVersion':_0x1339fa[_0x23cc6b(_0x53cbdf._0x33484c,_0x53cbdf._0x1f8edc,_0x53cbdf._0x164505,0x353)]??_0xa67483(0x112,_0x53cbdf._0x503e8b,_0x53cbdf._0x16431e,_0x53cbdf._0x59704f)}),'providerSessionResolver':_0x1339fa[_0x23cc6b(_0x53cbdf._0x182bf1,_0x53cbdf._0x48bb9f,0x2ea,_0x53cbdf._0x45547a)],'requestMutators':_0x1339fa['requestMutators'],'router':new StaticModelSurfaceRouter({'complete':ANTHROPIC_MESSAGES_SURFACE,'stream':ANTHROPIC_MESSAGES_STREAM_SURFACE}),'surfaces':createAnthropicSurfaces()});}[_0xc7d8a6(-0xd3,-0xf6,-0x189,-0xd8)](_0x2f9655,_0x4bc6a2){return this['completeViaSurface'](_0x2f9655,ANTHROPIC_MESSAGES_SURFACE,_0x4bc6a2);}[_0xc7d8a6(-0x110,-0xa0,-0x1e8,-0x110)](_0x1fda7c,_0x1c15e0){const _0x4ff44a={_0x1f3412:0x2f9,_0x30e1ff:0x2e5,_0x3c371b:0x248},_0x41234f={_0x132273:0xdc,_0x120fb7:0x33b};function _0x1381fc(_0x2e55e3,_0x328879,_0x44de12,_0x2d5d87){return _0x74a064(_0x2e55e3-0xc9,_0x328879-_0x41234f._0x132273,_0x328879-_0x41234f._0x120fb7,_0x44de12);}return this[_0x1381fc(0x35f,_0x4ff44a._0x1f3412,_0x4ff44a._0x30e1ff,_0x4ff44a._0x3c371b)](_0x1fda7c,ANTHROPIC_MESSAGES_STREAM_SURFACE,_0x1c15e0);}},OPENAI_CHAT_COMPLETIONS_SURFACE=_0xc7d8a6(0x1c,0x3c,-0x9e,-0x40),OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE='openai-chat-completions-stream',OPENAI_RESPONSES_SURFACE='openai-responses',OPENAI_RESPONSES_STREAM_SURFACE=_0xc7d8a6(-0x69,-0xd6,0x35,-0x94),OPENAI_RESPONSES_WEBSOCKET_SURFACE=_0xc7d8a6(-0x3b,-0x12,-0x187,-0xb7),OpenAiApiError=class extends Error{['status'];['body'];constructor(_0x39b3ad,_0x5b5e54,_0x4e65f5){const _0x13cde6={_0x36c654:0xac,_0x1f0793:0x3c,_0x5745d2:0x10b,_0x2dc6a0:0x1de,_0x3caa77:0x198},_0x51a7fe={_0x1efc7e:0xfe,_0x535c14:0x1b6},_0x439bcc={_0x364364:0x196,_0x422b70:0x1f0};function _0xbbdeae(_0x41d997,_0x25e81c,_0x33723f,_0x20aa26){return _0xc7d8a6(_0x41d997-_0x439bcc._0x364364,_0x33723f,_0x33723f-0x17e,_0x41d997-_0x439bcc._0x422b70);}super(_0x4e65f5),this[_0x485e32(_0x13cde6._0x36c654,0x16,0xf6,-_0x13cde6._0x1f0793)]='OpenAiApiError';function _0x485e32(_0x4db856,_0xf6db30,_0x85d7cb,_0x3be530){return _0xc7d8a6(_0x4db856-0xf5,_0x3be530,_0x85d7cb-_0x51a7fe._0x1efc7e,_0xf6db30-_0x51a7fe._0x535c14);}this[_0xbbdeae(_0x13cde6._0x5745d2,_0x13cde6._0x2dc6a0,_0x13cde6._0x3caa77,0x8e)]=_0x39b3ad,this['body']=_0x5b5e54;}};function stringifySystem(_0x2d31e0){const _0x9d7f88={_0x14c309:0x165,_0x77680a:0x87,_0x1c76cc:0x17c},_0xc044c3={_0xf1cb8:0xe7},_0x530a10={_0x4f9fec:0x45};function _0x37a650(_0x35cd4e,_0x43846f,_0x4fa948,_0x3e0822){return _0xc7d8a6(_0x35cd4e-0xd2,_0x35cd4e,_0x4fa948-0x1af,_0x4fa948- -_0x530a10._0x4f9fec);}function _0x49c20d(_0xc8b843,_0x5d1c7a,_0x4f6565,_0x2ce1c9){return _0x74a064(_0xc8b843-0x13,_0x5d1c7a-_0xc044c3._0xf1cb8,_0x5d1c7a- -0x86,_0x2ce1c9);}return _0x2d31e0[_0x37a650(-_0x9d7f88._0x14c309,-_0x9d7f88._0x77680a,-0xb9,-_0x9d7f88._0x1c76cc)](_0x5e8d14=>_0x5e8d14[_0x49c20d(-0x14,-0xa0,-0xa1,-0x1b)])['join']('\x0a\x0a');}function createToolDefinitions(_0x25aada){const _0x199e2a={_0x566414:0x62b,_0x160905:0x16b},_0x565055={_0x263e09:0x40,_0x19a6be:0x11,_0xd8d01c:0xd6,_0x8201d0:0xd2,_0x1cd068:0x8f,_0x878c85:0x16e,_0x4bba36:0x100},_0x265cb6={_0x2ab9d4:0xc,_0x3d7de6:0x1d2},_0x2f74b4={_0x3d788b:0x11c,_0x495d83:0x10a},_0x15f695={_0x13d9ed:0x1c3,_0x12101a:0x1df},_0x514d23={_0x2cfe6f:0x34};if(_0x25aada[_0x2ae79c(0x6ae,0x5c3,_0x199e2a._0x566414,0x66a)]===0x0)return void 0x0;function _0x2ae79c(_0x453038,_0x23a87a,_0x3a7bb0,_0x41ea8b){return _0xc7d8a6(_0x453038-0xd1,_0x23a87a,_0x3a7bb0-_0x514d23._0x2cfe6f,_0x41ea8b-0x692);}function _0x285e59(_0x51c15d,_0x362498,_0x12542d,_0x5a92ca){return _0xc7d8a6(_0x51c15d-0xc,_0x12542d,_0x12542d-_0x15f695._0x13d9ed,_0x51c15d-_0x15f695._0x12101a);}return _0x25aada[_0x285e59(_0x199e2a._0x160905,0x1c1,0x165,0x159)](_0x8cdd6b=>{function _0x296f06(_0x58262c,_0x4861f9,_0x1484e6,_0x19dd01){return _0x2ae79c(_0x58262c-_0x2f74b4._0x3d788b,_0x58262c,_0x1484e6-_0x2f74b4._0x495d83,_0x4861f9- -0x4d2);}function _0x22234e(_0x11b8aa,_0x4cc34d,_0x18fe2e,_0x443e0a){return _0x285e59(_0x4cc34d-_0x265cb6._0x2ab9d4,_0x4cc34d-_0x265cb6._0x3d7de6,_0x443e0a,_0x443e0a-0xfd);}return{'type':_0x296f06(-0x7a,_0x565055._0x263e09,-_0x565055._0x19a6be,0xae),'function':{'name':_0x8cdd6b[_0x296f06(-0x78,0x20,_0x565055._0xd8d01c,0x4a)],'description':_0x8cdd6b[_0x296f06(_0x565055._0x8201d0,0x9,0x3e,-0xe)],'parameters':_0x8cdd6b[_0x22234e(_0x565055._0x1cd068,_0x565055._0x878c85,_0x565055._0x4bba36,0x21f)]}};});}function isImageToolResultBlock(_0x3b7d5d){const _0x2dda36={_0x36f8c2:0x3d3,_0x431a51:0x373,_0x5a7f11:0x170,_0x3a1a42:0xa0,_0x48f368:0x157,_0x8b7657:0x1ff,_0x4a6153:0x143,_0x2aacf5:0x2c5,_0x160d5b:0x336,_0x36869d:0x35f,_0x3b7026:0x449,_0x3626b5:0x3ef,_0x2d1b7c:0x3cc,_0x3ab4bc:0x432,_0x33e54a:0xa7,_0x44dfa8:0x71,_0x466ab9:0x22f,_0x5d7d55:0x15d,_0x399d5d:0x22f,_0x4aac1a:0x1c5},_0x181fd7={_0xf33d3a:0x164,_0x3936f3:0xb4},_0x79150f={_0x3ebb4d:0x6a,_0x115104:0x2a5};if(typeof _0x3b7d5d!==_0x3190bb(_0x2dda36._0x36f8c2,_0x2dda36._0x431a51,0x34f,0x3f5)||_0x3b7d5d===null||Array['isArray'](_0x3b7d5d))return![];const _0x72c2c5=_0x3b7d5d;function _0x3190bb(_0xf58647,_0x403dbc,_0x30f995,_0x63e0e7){return _0x74a064(_0xf58647-0x16f,_0x403dbc-_0x79150f._0x3ebb4d,_0x30f995-_0x79150f._0x115104,_0x63e0e7);}function _0x2df684(_0x3592f2,_0x242a64,_0x46b8b6,_0x391285){return _0xc7d8a6(_0x3592f2-_0x181fd7._0xf33d3a,_0x242a64,_0x46b8b6-_0x181fd7._0x3936f3,_0x391285- -0x4e);}return _0x72c2c5[_0x2df684(-_0x2dda36._0x5a7f11,-_0x2dda36._0x3a1a42,-0x22e,-_0x2dda36._0x48f368)]===_0x2df684(-_0x2dda36._0x8b7657,-0x202,-0x118,-_0x2dda36._0x4a6153)&&_0x72c2c5[_0x3190bb(_0x2dda36._0x2aacf5,_0x2dda36._0x160d5b,_0x2dda36._0x36869d,0x364)]?.['type']===_0x3190bb(_0x2dda36._0x3b7026,_0x2dda36._0x3626b5,_0x2dda36._0x2d1b7c,_0x2dda36._0x3ab4bc)&&typeof _0x72c2c5[_0x2df684(-_0x2dda36._0x33e54a,-_0x2dda36._0x44dfa8,-0x14a,-0xe6)]['media_type']===_0x3190bb(0x279,0x166,_0x2dda36._0x466ab9,0x2cf)&&typeof _0x72c2c5['source']['data']===_0x3190bb(_0x2dda36._0x5d7d55,0x189,_0x2dda36._0x399d5d,_0x2dda36._0x4aac1a);}function getToolResultText(_0x1017ca){const _0x562630={_0x2b4a4:0x114,_0x2380cf:0x8b,_0x465e8b:0x268,_0x427050:0x298,_0x3ac48e:0x47,_0x2cec05:0x1a0,_0x5c8299:0xd6,_0xeb81f4:0x1e4,_0x241d09:0xf7},_0x19790a={_0x3f8a0e:0x4c9,_0x491deb:0x471,_0x1b8ca0:0x503,_0x112b97:0x3b7,_0x12fea7:0x493,_0x335f0e:0x4f9,_0x5b1156:0x516},_0x53fdb7={_0x3d67a5:0x15e},_0x4fba66={_0x24d0e4:0x194,_0x279c0b:0x126},_0x53128f={_0x4a79ce:0xa6,_0x28f462:0x46c};function _0x3b312e(_0x544a45,_0x352710,_0x1358b6,_0x234cc5){return _0xc7d8a6(_0x544a45-_0x53128f._0x4a79ce,_0x352710,_0x1358b6-0x160,_0x1358b6-_0x53128f._0x28f462);}if(typeof _0x1017ca===_0x1024a6(0x107,_0x562630._0x2b4a4,-0x3e,_0x562630._0x2380cf))return _0x1017ca;function _0x1024a6(_0x2a0107,_0x30d08d,_0x14027f,_0x451b86){return _0x74a064(_0x2a0107-_0x4fba66._0x24d0e4,_0x30d08d-_0x4fba66._0x279c0b,_0x451b86-0x101,_0x2a0107);}const _0x555945=_0x1017ca[_0x3b312e(_0x562630._0x465e8b,0x256,_0x562630._0x427050,0x1f7)](_0x4343cb=>{function _0x1e9a09(_0x14ca18,_0x3bb2ea,_0x46e306,_0x4c89ae){return _0x3b312e(_0x14ca18-0x10b,_0x46e306,_0x3bb2ea-0x193,_0x4c89ae-0xf4);}function _0x1f9059(_0x4f1660,_0x2c107a,_0x1c3e44,_0x3476a1){return _0x3b312e(_0x4f1660-0x1c0,_0x1c3e44,_0x4f1660-0x105,_0x3476a1-_0x53fdb7._0x3d67a5);}return typeof _0x4343cb===_0x1f9059(_0x19790a._0x3f8a0e,_0x19790a._0x491deb,0x4f1,_0x19790a._0x1b8ca0)&&_0x4343cb!==null&&_0x4343cb['type']===_0x1e9a09(_0x19790a._0x112b97,_0x19790a._0x12fea7,_0x19790a._0x335f0e,_0x19790a._0x5b1156);})['map'](_0x360d22=>_0x360d22[_0x1024a6(0x1ae,0xfa,0xd5,0xe7)])[_0x1024a6(0x198,_0x562630._0x3ac48e,_0x562630._0x2cec05,_0x562630._0x5c8299)]('\x0a\x0a')['trim']();return _0x555945['length']>0x0?_0x555945:_0x1024a6(_0x562630._0xeb81f4,_0x562630._0x241d09,0xb4,0x148);}function getToolResultImages(_0xf25900){const _0x4cb7bf={_0x4da454:0x43a,_0x3af3f9:0x3a6,_0x36ad84:0x387},_0x543b2={_0x9ce6d2:0xf1},_0xb20f3a={_0x51401a:0xf4,_0x5e83b9:0x35};function _0x2a54ce(_0x4581e4,_0x53d41f,_0x2ef04a,_0x311a9f){return _0x74a064(_0x4581e4-0x37,_0x53d41f-_0xb20f3a._0x51401a,_0x53d41f- -_0xb20f3a._0x5e83b9,_0x311a9f);}function _0x57c547(_0x3f33e5,_0x136a45,_0x17cec1,_0x346301){return _0xc7d8a6(_0x3f33e5-0x3e,_0x17cec1,_0x17cec1-_0x543b2._0x9ce6d2,_0x136a45-0x615);}return Array[_0x2a54ce(-0x106,-0x89,-0x159,-0x133)](_0xf25900)?_0xf25900[_0x57c547(_0x4cb7bf._0x4da454,0x441,_0x4cb7bf._0x3af3f9,_0x4cb7bf._0x36ad84)](isImageToolResultBlock):[];}function parseToolInput2(_0x4b35c0){const _0x74d85e={_0x2e8bab:0x61b,_0x445bf4:0x647,_0x357ea5:0x1a1,_0x149591:0x12c,_0x1ac85c:0x1f2,_0x1254c2:0x15c},_0x16867c={_0x92cb15:0x1d0,_0x5a0f97:0x16c},_0x202c4a={_0x293df4:0x78,_0x587bfe:0x236};function _0x1626ff(_0x311b14,_0x59e5b5,_0x250eae,_0x4bbf78){return _0xc7d8a6(_0x311b14-_0x202c4a._0x293df4,_0x250eae,_0x250eae-0x116,_0x59e5b5-_0x202c4a._0x587bfe);}if(_0x4b35c0[_0x3757da(0x6e3,_0x74d85e._0x2e8bab,_0x74d85e._0x445bf4,0x630)]===0x0)return{};function _0x3757da(_0x259ed4,_0x8f1909,_0x50bfc7,_0x592bcb){return _0x74a064(_0x259ed4-_0x16867c._0x92cb15,_0x8f1909-_0x16867c._0x5a0f97,_0x50bfc7-0x51d,_0x259ed4);}try{return JSON[_0x1626ff(_0x74d85e._0x357ea5,_0x74d85e._0x149591,_0x74d85e._0x1ac85c,_0x74d85e._0x1254c2)](_0x4b35c0);}catch{return _0x4b35c0;}}function isResponsesReasoningItem(_0x2792cd){const _0x3cd459={_0x2809ed:0x61},_0x469363={_0x54e866:0x1a2};function _0x88616(_0x37a340,_0x49f53b,_0x231c99,_0x54d91a){return _0xc7d8a6(_0x37a340-0x60,_0x231c99,_0x231c99-_0x469363._0x54e866,_0x54d91a-0x106);}return typeof _0x2792cd==='object'&&_0x2792cd!==null&&_0x88616(0x90,-_0x3cd459._0x2809ed,0x6a,-0x3)in _0x2792cd&&_0x2792cd['type']==='reasoning';}function isResponsesMessageItem(_0x3d5d0d){const _0x5cadda={_0x4743b6:0x6,_0x17b7c0:0x8d,_0x2e9487:0x44,_0x4b4f02:0x2c2,_0xd7b860:0x2ba,_0x195753:0x320,_0x135c01:0x2b0,_0x5ab127:0x23a},_0x9bc5f1={_0x27bd57:0x16c};function _0x12e67e(_0x5bd543,_0x4a4fd1,_0x792125,_0x3bbfce){return _0xc7d8a6(_0x5bd543-0x29,_0x792125,_0x792125-_0x9bc5f1._0x27bd57,_0x4a4fd1-0x135);}function _0x20fbcb(_0x29b0bc,_0xc86502,_0x4d12b4,_0xa8055){return _0x74a064(_0x29b0bc-0x18d,_0xc86502-0x12a,_0x29b0bc-0x267,_0xa8055);}return typeof _0x3d5d0d===_0x12e67e(-_0x5cadda._0x4743b6,_0x5cadda._0x17b7c0,-_0x5cadda._0x2e9487,0xd9)&&_0x3d5d0d!==null&&_0x20fbcb(0x2b0,_0x5cadda._0x4b4f02,_0x5cadda._0xd7b860,_0x5cadda._0x195753)in _0x3d5d0d&&_0x3d5d0d[_0x20fbcb(_0x5cadda._0x135c01,0x264,_0x5cadda._0x5ab127,0x356)]==='message';}function isResponsesFunctionCallItem(_0x3f6cd9){const _0x2af617={_0x4a7e41:0x298,_0x28ea65:0x1a7,_0x5befaa:0x22f,_0x46d7e6:0x221,_0x2b8f1f:0x1bc,_0x125058:0x134,_0xc5638b:0x137},_0x45828e={_0x2b6804:0x1c1,_0x825bca:0x10b};function _0x165144(_0x2615e6,_0x40af17,_0x63c16,_0x1fa88e){return _0xc7d8a6(_0x2615e6-0x1a1,_0x2615e6,_0x63c16-0x96,_0x1fa88e- -0xf3);}function _0x505ff0(_0x5498de,_0x4b6330,_0x2dd28e,_0x2c68ff){return _0xc7d8a6(_0x5498de-_0x45828e._0x2b6804,_0x4b6330,_0x2dd28e-_0x45828e._0x825bca,_0x2c68ff-0x289);}return typeof _0x3f6cd9===_0x505ff0(0x176,_0x2af617._0x4a7e41,_0x2af617._0x28ea65,0x1e1)&&_0x3f6cd9!==null&&_0x165144(-0x198,-0x19b,-_0x2af617._0x5befaa,-0x1fc)in _0x3f6cd9&&_0x3f6cd9[_0x165144(-0x2d6,-_0x2af617._0x46d7e6,-_0x2af617._0x2b8f1f,-0x1fc)]===_0x165144(-0x54,-_0x2af617._0x125058,-0x161,-_0x2af617._0xc5638b);}function createContentBlocks(_0x16264e,_0xa2489f,_0x5e756c){const _0x4d6ea7={_0x5282d0:0x4dc,_0x3068c0:0x3ed,_0x3f6f9f:0x49d,_0x426d22:0x4d3,_0x5a6216:0x5c7,_0x2b7b66:0x309,_0x407781:0x361,_0x300dda:0x2f8,_0x543e65:0x3d9,_0x27a1e3:0x297,_0x2c90bf:0x359,_0x2e9ee8:0x2c2,_0x134970:0x420,_0x172475:0x3ac,_0x5744dd:0x654,_0x4440f4:0x423,_0x31c296:0x470,_0x2716ea:0x43a,_0x5bc2ff:0x450,_0x2e98d9:0x319,_0x1e6e4e:0x5a0,_0x31a280:0x573,_0x23ffce:0x548,_0x250494:0x346,_0x5c0a97:0x518,_0x42430c:0x531},_0x2abb0f={_0x40674b:0x142,_0x23f68f:0x1cb,_0x287983:0x5f0},_0x56cc8c={_0x266d8d:0x12e,_0x2ab53f:0x101},_0x4705a1=[];_0x5e756c&&_0x5e756c[_0x4028a4(_0x4d6ea7._0x5282d0,_0x4d6ea7._0x3068c0,_0x4d6ea7._0x3f6f9f,_0x4d6ea7._0x426d22)]>0x0&&_0x4705a1['push']({'type':'openai_reasoning','summary':[],'text':_0x5e756c});_0x16264e[_0x4670be(0x654,0x5d9,_0x4d6ea7._0x5a6216,0x5c8)]>0x0&&_0x4705a1[_0x4028a4(_0x4d6ea7._0x2b7b66,_0x4d6ea7._0x407781,_0x4d6ea7._0x300dda,_0x4d6ea7._0x543e65)]({'type':_0x4028a4(0x301,_0x4d6ea7._0x27a1e3,_0x4d6ea7._0x2c90bf,_0x4d6ea7._0x2e9ee8),'text':_0x16264e});function _0x4028a4(_0xba9e82,_0x586b7b,_0xef26aa,_0x14accf){return _0xc7d8a6(_0xba9e82-_0x56cc8c._0x266d8d,_0xba9e82,_0xef26aa-_0x56cc8c._0x2ab53f,_0xef26aa-0x4c5);}for(const _0x132061 of _0xa2489f){if(_0x132061['id'][_0x4670be(_0x4d6ea7._0x134970,0x508,_0x4d6ea7._0x172475,0x469)]()[_0x4670be(0x550,0x61e,_0x4d6ea7._0x5744dd,0x5c8)]===0x0||_0x132061[_0x4670be(0x4b8,_0x4d6ea7._0x4440f4,0x3ac,_0x4d6ea7._0x31c296)][_0x4670be(0x396,_0x4d6ea7._0x2716ea,0x4f2,_0x4d6ea7._0x5bc2ff)][_0x4028a4(0x305,_0x4d6ea7._0x2e98d9,0x33e,0x36b)]()[_0x4670be(_0x4d6ea7._0x1e6e4e,_0x4d6ea7._0x31a280,_0x4d6ea7._0x23ffce,0x5c8)]===0x0)continue;_0x4705a1['push']({'type':_0x4028a4(0x357,_0x4d6ea7._0x250494,_0x4d6ea7._0x250494,0x302),'id':_0x132061['id'],'name':_0x132061['function']['name'],'input':parseToolInput2(_0x132061['function'][_0x4670be(_0x4d6ea7._0x5c0a97,0x520,_0x4d6ea7._0x42430c,0x5ad)])});}function _0x4670be(_0x274009,_0x56ba02,_0x4e3f15,_0x194651){return _0xc7d8a6(_0x274009-_0x2abb0f._0x40674b,_0x4e3f15,_0x4e3f15-_0x2abb0f._0x23f68f,_0x194651-_0x2abb0f._0x287983);}return _0x4705a1;}function createUsage(_0x3ad267){const _0x8159c3={_0x4a50e4:0xaf,_0x493bb5:0x31,_0x45a349:0x560,_0x5e481f:0x490,_0x58b0aa:0x56e,_0x699f39:0x682,_0x1e89b:0x5a9,_0x311e45:0x651,_0x10bc85:0xba,_0xd895fe:0x1e,_0x57273d:0x8f},_0x1a3ffc={_0x2acc34:0x120,_0xee4efe:0x7b},_0xf5afb5={_0x3a0731:0x51e};function _0x5da6cf(_0x2ffdc2,_0x5a24e0,_0x502154,_0x28af57){return _0x74a064(_0x2ffdc2-0x170,_0x5a24e0-0x11a,_0x502154-_0xf5afb5._0x3a0731,_0x28af57);}function _0x4cf9b0(_0x12356f,_0x25b5d9,_0x35c6d1,_0x167c6c){return _0xc7d8a6(_0x12356f-_0x1a3ffc._0x2acc34,_0x12356f,_0x35c6d1-_0x1a3ffc._0xee4efe,_0x35c6d1-0x101);}return{'inputTokens':_0x3ad267?.[_0x4cf9b0(_0x8159c3._0x4a50e4,0xa9,0x99,_0x8159c3._0x493bb5)]??0x0,'outputTokens':_0x3ad267?.['completion_tokens']??0x0,..._0x3ad267?.[_0x4cf9b0(0x137,0xd3,0xe2,0x1b2)]?.[_0x5da6cf(_0x8159c3._0x45a349,_0x8159c3._0x5e481f,0x551,_0x8159c3._0x58b0aa)]!==void 0x0?{'reasoningTokens':_0x3ad267[_0x5da6cf(_0x8159c3._0x699f39,_0x8159c3._0x1e89b,_0x8159c3._0x311e45,0x60d)][_0x4cf9b0(_0x8159c3._0x10bc85,-0x3a,-_0x8159c3._0xd895fe,_0x8159c3._0x57273d)]}:{}};}function resolveReasoningVisibility2(_0x61ec9e){const _0x5240b2={_0x5c8483:0x28,_0x3767a8:0x11,_0x20014b:0xfb},_0x127e9d={_0x411490:0x1d5,_0x37252e:0x169},_0x144a9b={_0x32f079:0x1d3,_0x216240:0x48};function _0x51f7ae(_0x2992d2,_0x1428cd,_0x21e236,_0x376679){return _0x74a064(_0x2992d2-_0x144a9b._0x32f079,_0x1428cd-_0x144a9b._0x216240,_0x21e236- -0x164,_0x2992d2);}function _0x60988f(_0x446428,_0x48e528,_0x6277e8,_0x2f6ded){return _0x74a064(_0x446428-_0x127e9d._0x411490,_0x48e528-0x1e6,_0x446428- -_0x127e9d._0x37252e,_0x2f6ded);}return _0x61ec9e[_0x51f7ae(-_0x5240b2._0x5c8483,-_0x5240b2._0x3767a8,-0x3c,-_0x5240b2._0x20014b)]?.[_0x60988f(-0x3e,0x81,-0x27,-0x117)]??'user-visible';}function isUserVisibleReasoning(_0x44ea3c){return resolveOpenAiReasoningConfig(_0x44ea3c['reasoning'])!==void 0x0&&resolveReasoningVisibility2(_0x44ea3c)==='user-visible';}function createChatRequestBody(_0x9a828a,_0x20bcde){const _0x33ab34={_0x4ca8a5:0x107,_0x3e193d:0x21c,_0x2d52a5:0x9,_0x521fc4:0x70,_0x4e03ff:0x4b1,_0x10a8cf:0x50e,_0x59209e:0x483,_0x2b633c:0x51c,_0x4c08a8:0x51d,_0x3cb69b:0x381,_0x33e7e2:0x498,_0x5e7bb0:0x3e0,_0x271ace:0x4c5,_0x12ba10:0x65,_0x4ef69c:0x23,_0x379418:0x415,_0x3cfce0:0x4ce,_0x581d17:0x358,_0x1c21a5:0x3fd,_0x4769c0:0x451,_0x300dd6:0x37d,_0x3f1127:0xb0,_0x166c57:0x33,_0x20fbc1:0xd7,_0x29f6a3:0x126,_0x1b508e:0xb0,_0x339397:0x3f7,_0xc08ee1:0x35a,_0xa86349:0xce,_0x558c5d:0x26,_0x39f4ba:0x549,_0x13e05e:0x4d1,_0x9dbe26:0x39d,_0x11ecad:0x4a9,_0x1a4484:0x5fa,_0x40542d:0x4e0,_0x25f7cb:0x4ab,_0x7252f7:0x55b,_0x3fec47:0xce,_0x47e26b:0xad,_0x490cd2:0x45a,_0x1332ee:0x30e,_0x39a352:0xa,_0x369165:0xc8,_0x157fab:0x6c,_0x265e46:0x37,_0x305c0d:0x6a,_0x1306dc:0x44d,_0x3afd1a:0x3e7,_0x47ff00:0x3fb,_0x3f68f8:0x502,_0x7169be:0x53a,_0xf0d039:0x51a,_0x40c4e8:0x569,_0x457679:0x52b,_0x484142:0x59e,_0x4e8d66:0x415,_0x130d1f:0x39c,_0x47494b:0x40d,_0x3a9d3b:0x344,_0x2a33bb:0x40d,_0x89a30:0x125,_0x15c508:0x7,_0x4f2b30:0xe5,_0x2cfa38:0x1a8,_0x53c492:0x11d,_0x334c64:0xa2,_0x212dc3:0x97,_0x360f9f:0x5a4,_0x55dae4:0x53f,_0x30b4df:0x5c6,_0x537591:0x1f2,_0x21f649:0x173,_0x594a0e:0x12f,_0x166062:0xa5,_0x677ed2:0x4a5,_0x213e5f:0x48e,_0x591181:0x51c,_0xaea055:0x54d,_0x993475:0x490,_0x1975c9:0xd0,_0x57c8cc:0x1d5,_0x2349df:0x161,_0x180d7a:0xac,_0x377701:0x10d,_0x17a69e:0xd5,_0xf85b06:0x17,_0x3adc98:0x36c,_0x47307e:0x3cb,_0xde34e:0x4d0,_0x26d31b:0xe7,_0x412e9b:0x457},_0x4385b1={_0x47d864:0x65},_0x133842={_0x2b6eba:0x263,_0x522bac:0x2a1,_0x5c1443:0x2c6,_0x51038a:0x130,_0x329560:0x6f,_0xca27d3:0x9a,_0x17bf32:0x6c,_0x14c64e:0x14e,_0x1be072:0x149,_0x6c18f:0x47,_0x3e28fe:0xd8,_0x46b3cd:0x109,_0x60c0fe:0x4d,_0x39bfa8:0x108,_0xd9b794:0x1af,_0x3f6f85:0x1f2,_0x569e78:0xb0,_0x395166:0x152,_0xfd68bc:0x18a,_0x3a0b82:0x42b,_0x38ab74:0x1d4,_0x11ce2a:0x2eb,_0x5958ad:0x23f,_0x34596b:0x70,_0x1fb647:0x4e,_0x5bca58:0x2bd,_0x25b914:0x200,_0x4e5225:0x21d,_0x4aa728:0x26b,_0x10a820:0x1dd,_0x1cb5e0:0x160,_0x3ec438:0xb8,_0x38029e:0x234,_0x553dd1:0x242,_0x3ddbc7:0x393,_0x493d45:0x3c5,_0x2fc5fa:0x389,_0x672061:0x150,_0x6ea75d:0x188,_0x20a26f:0x1ff,_0x1f2693:0x234,_0x42c3f7:0x198,_0xeb6443:0x3fc,_0x49c52f:0x344},_0x2abf27={_0x3e4caa:0x12f},_0x2a8337={_0x28b1d7:0x12d,_0x3dee89:0x1d7},_0x4eaa63=[],_0x5082bb=stringifySystem(_0x9a828a['system']);function _0x4d4600(_0x5a15bf,_0x989d84,_0x287668,_0x1fdf52){return _0xc7d8a6(_0x5a15bf-0x140,_0x287668,_0x287668-_0x2a8337._0x28b1d7,_0x5a15bf-_0x2a8337._0x3dee89);}_0x5082bb[_0x4d4600(0x1af,_0x33ab34._0x4ca8a5,_0x33ab34._0x3e193d,0x248)]>0x0&&_0x4eaa63[_0x5c5ddd(0x41b,0x39c,0x3ae,0x341)]({'role':_0x4d4600(0x5e,-_0x33ab34._0x2d52a5,-0x53,-_0x33ab34._0x521fc4),'content':_0x5082bb});for(const _0x5c0b6b of _0x9a828a[_0x5c5ddd(_0x33ab34._0x4e03ff,_0x33ab34._0x10a8cf,_0x33ab34._0x59209e,_0x33ab34._0x2b633c)]){const _0x57d2ef=[],_0x21a6bb=[],_0x7a8591=[],_0x37cc9a=()=>{const _0x340d5a={_0x4a5312:0x20,_0x1c4f04:0x49};if(_0x5c0b6b[_0x2fcb33(_0x133842._0x2b6eba,_0x133842._0x522bac,0x30d,_0x133842._0x5c1443)]===_0x2fcb33(0x359,0x3fa,0x35b,0x2b6)){if(_0x57d2ef[_0x5134f7(-0x8d,-_0x133842._0x51038a,-_0x133842._0x329560,-0x6c)]===0x0&&_0x21a6bb[_0x5134f7(-0xf3,-0xfd,-_0x133842._0xca27d3,-_0x133842._0x17bf32)]===0x0)return;_0x4eaa63[_0x5134f7(-_0x133842._0x14c64e,-0x2d2,-_0x133842._0x1be072,-0x211)]({'role':_0x5134f7(-_0x133842._0x6c18f,-_0x133842._0x3e28fe,-0xa8,-_0x133842._0xca27d3),'content':_0x57d2ef[_0x5134f7(-_0x133842._0x46b3cd,_0x133842._0x60c0fe,-_0x133842._0x39bfa8,-_0x133842._0x17bf32)]>0x0?_0x57d2ef[_0x2fcb33(_0x133842._0xd9b794,0x187,0x234,_0x133842._0x3f6f85)]('\x0a\x0a'):null,..._0x21a6bb['length']>0x0?{'tool_calls':_0x21a6bb[_0x5134f7(-_0x133842._0x569e78,-0xfd,-_0x133842._0x395166,-_0x133842._0xfd68bc)](0x0)}:{}}),_0x57d2ef[_0x2fcb33(0x46a,0x373,0x389,_0x133842._0x3a0b82)]=0x0;return;}if(_0x5c0b6b['role']===_0x2fcb33(_0x133842._0x38ab74,_0x133842._0x11ce2a,_0x133842._0x5958ad,0x25e)){if(_0x7a8591[_0x5134f7(0x53,-_0x133842._0x34596b,_0x133842._0x1fb647,-0x6c)]===0x0)return;const _0x451386=_0x7a8591[_0x5134f7(-_0x133842._0x5bca58,-0x2bd,-0x2e5,-_0x133842._0x25b914)](_0xae83bb=>_0xae83bb[_0x5134f7(-0x132,-0x1a6,-0x21f,-0x14d)]===_0x2fcb33(0x1e5,0x1fc,0x298,0x28b));_0x4eaa63[_0x5134f7(-_0x133842._0x4e5225,-0x1a3,-0x2bc,-0x211)]({'role':'user','content':_0x451386?_0x7a8591['splice'](0x0):_0x7a8591[_0x2fcb33(0x2c2,0x284,_0x133842._0x4aa728,0x2fe)](0x0)[_0x2fcb33(0x25c,0x27e,_0x133842._0x10a820,_0x133842._0x1cb5e0)](_0x4a0f02=>_0x4a0f02['type']===_0x5134f7(-0x189,-0x25d,-0x16c,-0x1b0))[_0x5134f7(-0xf4,-0xb1,-0x45,-_0x133842._0x3ec438)](_0x4289b7=>_0x4289b7[_0x2fcb33(0x1ef,0x297,0x245,0x2da)])[_0x2fcb33(0x1aa,0x2d7,_0x133842._0x38029e,_0x133842._0x553dd1)]('\x0a\x0a')});return;}function _0x2fcb33(_0x3a0e1e,_0x2d40b1,_0x529f45,_0xc58edd){return _0x4d4600(_0x529f45-0x1da,_0x2d40b1-_0x340d5a._0x4a5312,_0x3a0e1e,_0xc58edd-_0x340d5a._0x1c4f04);}if(_0x57d2ef[_0x2fcb33(_0x133842._0x3ddbc7,_0x133842._0x493d45,_0x133842._0x2fc5fa,0x34f)]===0x0)return;function _0x5134f7(_0x203a9b,_0x20aaec,_0x33f4e4,_0x543ec3){return _0x5c5ddd(_0x203a9b-_0x2abf27._0x3e4caa,_0x543ec3- -0x5ad,_0x33f4e4-0x1ce,_0x33f4e4);}_0x4eaa63[_0x2fcb33(0x22a,0x1a4,0x1e4,_0x133842._0x672061)]({'role':_0x5c0b6b['role'],'content':_0x57d2ef[_0x2fcb33(_0x133842._0x6ea75d,_0x133842._0x20a26f,_0x133842._0x1f2693,_0x133842._0x42c3f7)]('\x0a\x0a')}),_0x57d2ef[_0x2fcb33(0x35b,_0x133842._0xeb6443,0x389,_0x133842._0x49c52f)]=0x0;};for(const _0x2877d4 of normalizeContent(_0x5c0b6b['content'])){if(_0x2877d4[_0x5c5ddd(_0x33ab34._0x4c08a8,0x460,_0x33ab34._0x3cb69b,_0x33ab34._0x33e7e2)]===_0x4d4600(0x6b,0x13c,-0x46,0xf7)){_0x5c0b6b[_0x5c5ddd(_0x33ab34._0x5e7bb0,_0x33ab34._0x271ace,0x3f3,0x50e)]===_0x4d4600(_0x33ab34._0x12ba10,0x62,0xee,_0x33ab34._0x4ef69c)?_0x7a8591['push']({'type':_0x5c5ddd(_0x33ab34._0x379418,0x3fd,_0x33ab34._0x3cfce0,0x4ae),'text':_0x2877d4[_0x5c5ddd(_0x33ab34._0x581d17,_0x33ab34._0x1c21a5,_0x33ab34._0x4769c0,_0x33ab34._0x300dd6)]}):_0x57d2ef[_0x4d4600(0xa,_0x33ab34._0x3f1127,-_0x33ab34._0x166c57,_0x33ab34._0x20fbc1)](_0x2877d4['text']);continue;}if(_0x5c0b6b[_0x4d4600(0x133,0x1dc,_0x33ab34._0x29f6a3,_0x33ab34._0x1b508e)]===_0x5c5ddd(0x34d,_0x33ab34._0x339397,0x4d7,_0x33ab34._0xc08ee1)&&_0x2877d4[_0x4d4600(_0x33ab34._0xa86349,0xe3,0xb7,0xc)]===_0x5c5ddd(0x4dc,0x474,0x470,0x538)){_0x7a8591[_0x4d4600(0xa,0x9e,-_0x33ab34._0x558c5d,-0x8)]({'type':'image_url','image_url':{'url':'data:'+_0x2877d4[_0x5c5ddd(_0x33ab34._0x39f4ba,_0x33ab34._0x13e05e,0x4b2,0x4dd)][_0x5c5ddd(_0x33ab34._0x9dbe26,0x42a,0x353,_0x33ab34._0x11ecad)]+_0x5c5ddd(_0x33ab34._0x1a4484,0x553,0x4a0,_0x33ab34._0x40542d)+_0x2877d4[_0x5c5ddd(_0x33ab34._0x25f7cb,0x4d1,_0x33ab34._0x7252f7,0x412)]['data']}});continue;}if(_0x2877d4[_0x4d4600(_0x33ab34._0x3fec47,_0x33ab34._0x47e26b,0x172,0x35)]===_0x5c5ddd(_0x33ab34._0x490cd2,0x3ea,0x327,_0x33ab34._0x1332ee)){_0x21a6bb[_0x4d4600(_0x33ab34._0x39a352,_0x33ab34._0x369165,-0x2f,_0x33ab34._0x157fab)]({'id':_0x2877d4['id'],'type':'function','function':{'name':_0x2877d4[_0x4d4600(_0x33ab34._0x265e46,0x61,-_0x33ab34._0x305c0d,0x26)],'arguments':JSON['stringify'](_0x2877d4['input']??{})}});continue;}if(_0x2877d4['type']!=='tool_result')continue;_0x37cc9a(),_0x4eaa63[_0x5c5ddd(0x2b9,0x39c,0x2da,_0x33ab34._0x1306dc)]({'role':_0x5c5ddd(_0x33ab34._0x3afd1a,0x402,0x3df,_0x33ab34._0x47ff00),'content':getToolResultText(_0x2877d4['content']),'tool_call_id':_0x2877d4[_0x5c5ddd(_0x33ab34._0x3f68f8,_0x33ab34._0x7169be,_0x33ab34._0xf0d039,_0x33ab34._0x40c4e8)]});const _0x5641a2=getToolResultImages(_0x2877d4[_0x5c5ddd(_0x33ab34._0x457679,0x4dd,_0x33ab34._0x484142,_0x33ab34._0x4e8d66)]);_0x5641a2['length']>0x0&&_0x4eaa63[_0x5c5ddd(0x433,_0x33ab34._0x130d1f,_0x33ab34._0x47494b,_0x33ab34._0x3a9d3b)]({'role':_0x5c5ddd(0x3b7,0x3f7,0x4dc,_0x33ab34._0x2a33bb),'content':[{'type':_0x4d4600(0x6b,_0x33ab34._0x89a30,_0x33ab34._0x15c508,_0x33ab34._0x4f2b30),'text':'Image\x20returned\x20by\x20ViewFile\x20for\x20tool\x20result\x20'+_0x2877d4[_0x4d4600(_0x33ab34._0x2cfa38,_0x33ab34._0x53c492,0x26d,0x1ce)]+'.'},..._0x5641a2[_0x4d4600(0x163,_0x33ab34._0x334c64,_0x33ab34._0x212dc3,0x9a)](_0x2d89e0=>({'type':_0x4d4600(0xbe,0xfd,0x19b,0x7f),'image_url':{'url':_0x5c5ddd(0x350,0x3af,0x302,0x3c4)+_0x2d89e0['source']['media_type']+_0x4d4600(0x1c1,0x241,0x276,0x28b)+_0x2d89e0['source'][_0x4d4600(0x88,-0x43,0x7f,0x100)]}}))]});}_0x37cc9a();}function _0x5c5ddd(_0x234b3e,_0x3340cc,_0x4a03e5,_0x22d910){return _0x74a064(_0x234b3e-_0x4385b1._0x47d864,_0x3340cc-0x10c,_0x3340cc-0x417,_0x22d910);}const _0x492f76=resolveOpenAiReasoningConfig(_0x9a828a[_0x5c5ddd(_0x33ab34._0x360f9f,_0x33ab34._0x55dae4,_0x33ab34._0x30b4df,0x52c)]);return{'model':_0x9a828a[_0x5c5ddd(0x506,0x46d,0x53f,0x44a)],'messages':_0x4eaa63,'stream':_0x20bcde,..._0x492f76?{'max_completion_tokens':_0x9a828a[_0x4d4600(0x15b,0x1ad,_0x33ab34._0x537591,0x185)]}:{'max_tokens':_0x9a828a[_0x4d4600(0x15b,_0x33ab34._0x21f649,_0x33ab34._0x594a0e,_0x33ab34._0x166062)]},..._0x492f76?.[_0x5c5ddd(_0x33ab34._0x677ed2,0x4bb,_0x33ab34._0x213e5f,0x4fd)]?{'reasoning_effort':_0x492f76[_0x5c5ddd(_0x33ab34._0x591181,0x4bb,_0x33ab34._0xaea055,_0x33ab34._0x993475)]}:{},...createToolDefinitions(_0x9a828a[_0x4d4600(0x161,_0x33ab34._0x1975c9,0x106,_0x33ab34._0x57c8cc)])?{'tools':createToolDefinitions(_0x9a828a[_0x4d4600(_0x33ab34._0x2349df,_0x33ab34._0x180d7a,_0x33ab34._0x377701,0xe6)])}:{},..._0x9a828a['outputFormat']?{'response_format':{'type':_0x4d4600(0x8b,_0x33ab34._0x17a69e,0x10d,-_0x33ab34._0xf85b06),'json_schema':{'name':_0x9a828a[_0x5c5ddd(_0x33ab34._0x3adc98,0x418,0x34f,_0x33ab34._0x47307e)][_0x5c5ddd(0x402,0x3c9,0x31a,0x4a2)]??'structured_output','schema':_0x9a828a[_0x5c5ddd(0x3b0,0x418,0x4ce,_0x33ab34._0xde34e)][_0x4d4600(0x166,_0x33ab34._0x26d31b,_0x33ab34._0x4f2b30,0xe5)],'strict':_0x9a828a['outputFormat'][_0x5c5ddd(0x57e,0x4b1,0x555,_0x33ab34._0x412e9b)]??!![]}}}:{}};}function createResponsesRequestBody(_0x2a2c65,_0x38be38){return{...toOpenAiResponsesRequest(_0x2a2c65),..._0x38be38?{'stream':!![]}:{},'store':![]};}function createOpenAiResponsesWebSocketEvent(_0x187a5b,_0x1e00dd={}){const _0x2e58fb={_0x199852:0x2a6,_0xee23f7:0x5f,_0x583f39:0x40,_0x4e5ced:0x13},_0x15290b={_0x48ff8c:0x1b,_0x5e2404:0x1de,_0x10eb52:0x59},_0x5ed642={_0x449c27:0xd7};function _0x1e7022(_0x26eb4a,_0x8cdf08,_0x1b6fce,_0x2ce534){return _0x74a064(_0x26eb4a-_0x5ed642._0x449c27,_0x8cdf08-0xe5,_0x1b6fce-0x1ec,_0x8cdf08);}const _0x4ec1d1=toOpenAiResponsesRequest(_0x187a5b);function _0x70c4dc(_0x57d3db,_0x1da143,_0x479cf6,_0x111beb){return _0x74a064(_0x57d3db-_0x15290b._0x48ff8c,_0x1da143-_0x15290b._0x5e2404,_0x1da143- -_0x15290b._0x10eb52,_0x57d3db);}return{'type':'response.create',..._0x4ec1d1,..._0x1e00dd[_0x1e7022(0x354,0x37b,0x2a2,0x35c)]?{'input':_0x1e00dd[_0x1e7022(0x308,0x1c6,0x2a2,_0x2e58fb._0x199852)]}:{},..._0x1e00dd[_0x70c4dc(0x93,_0x2e58fb._0xee23f7,_0x2e58fb._0x583f39,_0x2e58fb._0x4e5ced)]?{'previous_response_id':_0x1e00dd['previousResponseId']}:{},'store':![]};}function normalizeAssistantContent(_0x2043fe){const _0x5bb2a8={_0x26b5e5:0xf3,_0x1cb9a5:0x13e,_0x50d57d:0xda,_0x517bab:0x136,_0x42946f:0x2d,_0x7d46b:0x10f,_0x2ffc34:0x47},_0x5c348c={_0x8067ee:0x1c7,_0x4f4aa3:0x1c4,_0x4ffe87:0x129,_0x317b2f:0x7c,_0x3ebf63:0xac,_0x296cac:0xde,_0x4ad5b9:0x14f,_0x49cecb:0xc4,_0x4c2a8c:0x167,_0x2cfa6d:0x25a},_0x58cfd5={_0x1be9f7:0x16e},_0x3278a4={_0x29742b:0x1c5,_0x5e8e0f:0x2};if(typeof _0x2043fe===_0x12b519(_0x5bb2a8._0x26b5e5,0xf8,0x198,_0x5bb2a8._0x1cb9a5))return _0x2043fe;if(!Array['isArray'](_0x2043fe))return'';function _0x588525(_0x24a195,_0x590ca6,_0x4cd3ce,_0x59ab99){return _0xc7d8a6(_0x24a195-_0x3278a4._0x29742b,_0x4cd3ce,_0x4cd3ce-_0x3278a4._0x5e8e0f,_0x590ca6-0x1aa);}function _0x12b519(_0x335a34,_0x4fcba1,_0x1c6886,_0x1868a4){return _0x74a064(_0x335a34-0x9b,_0x4fcba1-0x38,_0x4fcba1-_0x58cfd5._0x1be9f7,_0x1c6886);}return _0x2043fe[_0x588525(_0x5bb2a8._0x50d57d,_0x5bb2a8._0x517bab,0xb8,0xef)](_0x50291b=>{const _0x16d6b4={_0x316bab:0x91,_0x81ad02:0xfd},_0x1fc9e9={_0x2eab48:0x88,_0x2e43b3:0x34};function _0x51da9b(_0x54ddae,_0xfad1ad,_0x161d15,_0x4d69f2){return _0x588525(_0x54ddae-0x134,_0x4d69f2-_0x1fc9e9._0x2eab48,_0xfad1ad,_0x4d69f2-_0x1fc9e9._0x2e43b3);}function _0x2cac66(_0x1b4546,_0x15906a,_0x169669,_0x2326b3){return _0x12b519(_0x1b4546-_0x16d6b4._0x316bab,_0x1b4546- -0x1bc,_0x169669,_0x2326b3-_0x16d6b4._0x81ad02);}return _0x50291b[_0x51da9b(0x1c9,_0x5c348c._0x8067ee,_0x5c348c._0x4f4aa3,_0x5c348c._0x4ffe87)]===_0x51da9b(_0x5c348c._0x317b2f,_0x5c348c._0x3ebf63,_0x5c348c._0x296cac,0xc6)?_0x50291b[_0x51da9b(0xb7,_0x5c348c._0x4ad5b9,_0x5c348c._0x49cecb,0xc6)]:_0x50291b[_0x51da9b(_0x5c348c._0x4c2a8c,0x216,_0x5c348c._0x2cfa6d,0x1bb)];})[_0x588525(0x5a,_0x5bb2a8._0x42946f,_0x5bb2a8._0x7d46b,_0x5bb2a8._0x2ffc34)]('');}function normalizeResponsesMessageContent(_0x1f412e){const _0x277d70={_0x59e77a:0x36c,_0x14d0e9:0x42c,_0x1a02af:0x429,_0x5bac11:0x540,_0x1839af:0x5a6,_0x57bb21:0x56e,_0x2b6c2b:0x606,_0x58cd44:0x46c,_0x4ba66d:0x517},_0x230aa4={_0x3db322:0x235,_0x4f7c10:0x1d5,_0xf93777:0x1e8,_0x4fd4f2:0x264,_0x432e44:0x2de,_0x4a82ce:0x267,_0x1c0df9:0x160,_0x2532a0:0xf6,_0x27614a:0x311,_0x533770:0x33e,_0xadce8e:0x175,_0x588e66:0x222},_0x1a36c0={_0x308b7f:0x126,_0x1d5da9:0x1c},_0x2f9847={_0x62ca00:0x176},_0x53362={_0x4b8885:0x191};function _0x26d4bb(_0x443e5e,_0x3e761e,_0xbf6236,_0x29dedb){return _0xc7d8a6(_0x443e5e-0x72,_0x3e761e,_0xbf6236-_0x53362._0x4b8885,_0x29dedb-0x5cf);}if(!Array[_0x26d4bb(_0x277d70._0x59e77a,_0x277d70._0x14d0e9,0x378,_0x277d70._0x1a02af)](_0x1f412e))return'';function _0x27d1bf(_0x273ee1,_0x15c305,_0x4ae253,_0x2de1ce){return _0x74a064(_0x273ee1-_0x2f9847._0x62ca00,_0x15c305-0x1a9,_0x4ae253-0x490,_0x15c305);}return _0x1f412e[_0x27d1bf(_0x277d70._0x5bac11,_0x277d70._0x1839af,_0x277d70._0x57bb21,_0x277d70._0x2b6c2b)](_0x5171ac=>{const _0x5bd281={_0x3df8d5:0xca,_0x40c272:0x174};if(!_0x5171ac||typeof _0x5171ac!==_0x13fcf1(_0x230aa4._0x3db322,0x1c1,_0x230aa4._0x4f7c10,_0x230aa4._0xf93777))return'';function _0x5c0f52(_0x6972ab,_0x2de8dd,_0x576684,_0x219869){return _0x27d1bf(_0x6972ab-_0x5bd281._0x3df8d5,_0x576684,_0x2de8dd- -0x1dd,_0x219869-_0x5bd281._0x40c272);}const _0x404d93=_0x5171ac;if(_0x404d93[_0x5c0f52(0x369,0x2fc,_0x230aa4._0x4fd4f2,_0x230aa4._0x432e44)]===_0x13fcf1(_0x230aa4._0x4a82ce,0x19e,0x1f6,0x103)&&typeof _0x404d93[_0x5c0f52(0x246,0x299,0x1f1,0x359)]==='string')return _0x404d93['text'];if(_0x404d93[_0x13fcf1(0x147,_0x230aa4._0x1c0df9,_0x230aa4._0x2532a0,0x197)]===_0x5c0f52(0x354,0x38e,_0x230aa4._0x27614a,_0x230aa4._0x533770)&&typeof _0x404d93[_0x13fcf1(0x23a,0x1f2,0x23c,0x135)]===_0x13fcf1(-0x3,0xa1,_0x230aa4._0xadce8e,0xd))return _0x404d93[_0x13fcf1(0x2a2,0x1f2,0x2a1,_0x230aa4._0x588e66)];function _0x13fcf1(_0x291a55,_0x4cf6b9,_0x4bc438,_0x120004){return _0x27d1bf(_0x291a55-_0x1a36c0._0x308b7f,_0x4bc438,_0x4cf6b9- -0x379,_0x120004-_0x1a36c0._0x1d5da9);}return'';})[_0x27d1bf(0x443,_0x277d70._0x58cd44,0x465,_0x277d70._0x4ba66d)]('');}function extractOpenAiReasoningText(_0x41a749){const _0x57cdaf={_0x5c74c2:0x1cb,_0x65c3c3:0x1d3,_0xdcfa0f:0x384,_0x2afc7b:0x22f,_0xe9bc85:0x92,_0x58eba8:0x26e,_0x239f86:0x1ef},_0x5ab7f3={_0x3df7ff:0x80,_0x4a34e8:0x150},_0x222f7f={_0x5830af:0x53d};if(typeof _0x41a749['text']==='string')return _0x41a749[_0x5e734d(_0x57cdaf._0x5c74c2,_0x57cdaf._0x65c3c3,0x1f5,0x1a8)];function _0x25323b(_0x329547,_0x3b63d8,_0x2da8fa,_0x2720eb){return _0x74a064(_0x329547-0x1a4,_0x3b63d8-0x71,_0x2720eb-_0x222f7f._0x5830af,_0x3b63d8);}if(!Array['isArray'](_0x41a749['content']))return'';function _0x5e734d(_0xef59f2,_0x369fc5,_0x6c7096,_0x1b2603){return _0xc7d8a6(_0xef59f2-_0x5ab7f3._0x3df7ff,_0x6c7096,_0x6c7096-_0x5ab7f3._0x4a34e8,_0x369fc5-0x33f);}return _0x41a749[_0x5e734d(0x24e,0x2b3,0x1cc,_0x57cdaf._0xdcfa0f)][_0x5e734d(0x1ab,0x16b,_0x57cdaf._0x2afc7b,_0x57cdaf._0xe9bc85)](_0x584bf8=>_0x584bf8['type']==='reasoning_text'&&typeof _0x584bf8[_0x25323b(0x5db,0x5f9,0x4a8,0x523)]==='string')[_0x5e734d(0x3ac,0x2cb,_0x57cdaf._0x58eba8,_0x57cdaf._0x239f86)](_0x4c5330=>_0x4c5330['text']??'')['join']('');}function createOpenAiReasoningBlock(_0x490448){const _0x5c1cea=extractOpenAiReasoningText(_0x490448);return{'type':'openai_reasoning','summary':structuredClone(_0x490448['summary']??[]),..._0x490448['id']?{'id':_0x490448['id']}:{},..._0x490448['encrypted_content']?{'encryptedContent':_0x490448['encrypted_content']}:{},..._0x5c1cea['length']>0x0?{'text':_0x5c1cea}:{}};}function hasVisibleOpenAiReasoning(_0x35fc43){const _0x27a832={_0x450ed0:0x74,_0x5ba6d0:0x21c,_0x5b1b79:0x2f6},_0x3aebe8={_0x1c38ee:0x104},_0x5c7ec1={_0x42eb97:0x3e4};function _0x441377(_0x5ca143,_0x3759d8,_0x3a2654,_0x4080ee){return _0xc7d8a6(_0x5ca143-0x16a,_0x3759d8,_0x3a2654-0x7,_0x5ca143-_0x5c7ec1._0x42eb97);}function _0x1281e5(_0x1291e3,_0x4ce976,_0x54f7af,_0x55191f){return _0x74a064(_0x1291e3-0x1dd,_0x4ce976-_0x3aebe8._0x1c38ee,_0x55191f- -0x1ea,_0x54f7af);}return _0x35fc43['summary'][_0x1281e5(-_0x27a832._0x450ed0,-0x38,-0x95,-0xc0)]>0x0||typeof _0x35fc43['text']===_0x441377(_0x27a832._0x5ba6d0,0x25f,_0x27a832._0x5b1b79,0x217);}function parseChatCompletionResponse(_0x21d637){const _0x3e6616={_0x20a3e7:0x77,_0x157f5f:0x7c,_0x22043e:0x28,_0x21f987:0x75,_0x31157f:0x1af,_0x5359f:0x24,_0x2ca083:0x106,_0x6187e4:0xc2,_0x179e00:0x29,_0x15b8ec:0x98,_0x3f15f7:0x19e,_0xf78b77:0x17c,_0x594962:0xc4,_0x32f92d:0xb4,_0x46c200:0x86,_0xd74c3d:0x15b,_0x141eff:0x23,_0x3b3840:0x192,_0x57d64c:0xda,_0x5cb47d:0x5a,_0x3a307d:0x18b,_0x543ae4:0x231,_0x2ab61b:0x1b1,_0xbc5cac:0x62,_0x3efd80:0x18b,_0x1039b5:0x172,_0x278d3a:0xdd,_0x12e843:0xdc,_0x4d9b01:0x7f,_0x352a13:0x137,_0x3d873f:0x1f4,_0x2400fc:0x1b8,_0x140009:0x16c},_0x598901={_0x56ee3a:0x1d4,_0xb2d7c1:0x157,_0x114a9c:0x51},_0x37d0b3={_0x454849:0x1c},_0xe2697c=[];function _0x1b0611(_0x22fcc0,_0x46ed77,_0x4b8e21,_0x11f4ab){return _0x74a064(_0x22fcc0-0xf8,_0x46ed77-_0x37d0b3._0x454849,_0x22fcc0-0x107,_0x4b8e21);}function _0x6e1069(_0x5cb7f9,_0x2d8d66,_0xca5168,_0x44dde1){return _0xc7d8a6(_0x5cb7f9-_0x598901._0x56ee3a,_0x2d8d66,_0xca5168-_0x598901._0xb2d7c1,_0xca5168-_0x598901._0x114a9c);}const _0x2b8e24=[];let _0x2d9d89=_0x6e1069(-_0x3e6616._0x20a3e7,-_0x3e6616._0x157f5f,-_0x3e6616._0x22043e,-_0x3e6616._0x21f987);for(const _0x2a91a3 of _0x21d637[_0x1b0611(0x1d4,_0x3e6616._0x31157f,0x1e7,0x258)]??[]){const _0x119739=_0x2a91a3['message'],_0x39c61f=normalizeAssistantContent(_0x119739?.[_0x6e1069(-_0x3e6616._0x5359f,0x71,-0x3b,-_0x3e6616._0x2ca083)]);_0x39c61f[_0x6e1069(_0x3e6616._0x6187e4,0xb3,_0x3e6616._0x179e00,-_0x3e6616._0x15b8ec)]>0x0&&_0xe2697c[_0x6e1069(-_0x3e6616._0x3f15f7,-0xe2,-_0x3e6616._0xf78b77,-0xf5)](_0x39c61f),_0x119739?.[_0x6e1069(-_0x3e6616._0x594962,_0x3e6616._0x32f92d,0x23,0x1)]&&_0x2b8e24[_0x1b0611(0x8c,_0x3e6616._0x46c200,0xd1,_0x3e6616._0xd74c3d)](..._0x119739[_0x6e1069(0xf8,-0xbb,_0x3e6616._0x141eff,-0x37)]),_0x2a91a3[_0x1b0611(_0x3e6616._0x3b3840,0x12c,0xcf,0x108)]==='tool_calls'&&(_0x2d9d89=_0x1b0611(_0x3e6616._0x57d64c,_0x3e6616._0x5cb47d,0x115,_0x3e6616._0x3a307d));}return _0x2b8e24[_0x1b0611(_0x3e6616._0x543ae4,0x1f5,_0x3e6616._0x2ab61b,0x1ee)]>0x0&&(_0x2d9d89=_0x6e1069(-_0x3e6616._0xbc5cac,-0x118,-0x12e,-_0x3e6616._0x3efd80)),{'id':_0x21d637['id']??_0x1b0611(_0x3e6616._0x1039b5,_0x3e6616._0x278d3a,0x10c,0xba)+Date['now'](),'content':createContentBlocks(_0xe2697c[_0x1b0611(_0x3e6616._0x12e843,_0x3e6616._0x4d9b01,0x1bc,_0x3e6616._0x352a13)](''),_0x2b8e24),'stopReason':_0x2d9d89,'usage':createUsage(_0x21d637[_0x1b0611(_0x3e6616._0x3d873f,_0x3e6616._0x2400fc,0x17d,_0x3e6616._0x140009)])};}function parseResponsesResponse(_0x5b47ee,_0x37c139){const _0x47b6f4={_0x30039f:0x29a,_0x42d3ac:0x249,_0x3f60ff:0x284,_0x29b835:0x2d9,_0x309bdc:0x327,_0x320604:0x210,_0x27b560:0x346,_0x69a52:0x2c7,_0x32ad2f:0x269,_0x146f88:0xe6,_0x2bd00a:0x1f4,_0x406b03:0x2c5,_0x31310a:0x252,_0x29b7da:0x211,_0x3f85d0:0x177,_0x1f159a:0x165,_0x4020dc:0x18d,_0x15a62b:0x269,_0x116a9e:0x2f3,_0x56ac46:0x183,_0x5697d9:0x26b,_0x5857df:0x223,_0x4c19dc:0x2f8,_0x3394c4:0x370,_0x416fd7:0xd6,_0x2172c5:0x147,_0x193567:0x1a2,_0x59f994:0x21c,_0x5271ea:0xf8,_0x15f32a:0x1fa,_0x820422:0x1f8,_0x472421:0xe4,_0x4c6f19:0x10,_0x1af05c:0xba,_0x1cdc2e:0x161,_0xcc42e8:0x1dc,_0x24b079:0x10f,_0x21790c:0x252,_0x5aca5d:0x100,_0x5cbc4a:0x1db,_0x4a17c1:0x17f,_0x4664db:0x22c,_0x547e3f:0x2d4,_0x17804a:0x23c,_0x1c8de8:0x187,_0x4f807b:0x219,_0x14cb01:0x189,_0x477334:0x333,_0x4d0b9c:0x31d,_0x3f81a9:0xca,_0x1d7099:0x333,_0x2137c2:0x2f9,_0x12488e:0x259,_0x24c8ea:0x1a7,_0x11bdb8:0x26d,_0x3f24a7:0x18f,_0x4e43c6:0x246,_0x3d6507:0x1df,_0x300bf6:0x206,_0x45f108:0x1c0,_0x20e9ce:0x274,_0x4759e0:0x1aa,_0x4671ef:0x1f2,_0x4a01b9:0x29d},_0x503c52={_0x2f773:0x47,_0x1981b8:0xa1};function _0x42448d(_0x13ca10,_0x367475,_0x529d4a,_0x45e560){return _0xc7d8a6(_0x13ca10-0x17a,_0x13ca10,_0x529d4a-0x1ec,_0x529d4a-0x398);}const _0x48803f=[];for(const _0x253841 of _0x5b47ee[_0xb1b11a(-0x245,-0x293,-0x2b3,-_0x47b6f4._0x30039f)]??[]){if(isResponsesReasoningItem(_0x253841)){if(isUserVisibleReasoning(_0x37c139)){const _0x195bfe=createOpenAiReasoningBlock(_0x253841);hasVisibleOpenAiReasoning(_0x195bfe)&&_0x48803f[_0xb1b11a(-0x26e,-_0x47b6f4._0x42d3ac,-0x336,-_0x47b6f4._0x3f60ff)](_0x195bfe);}continue;}if(isResponsesMessageItem(_0x253841)){const _0x101cea=normalizeResponsesMessageContent(_0x253841['content']);_0x101cea[_0x42448d(0x3d1,0x2df,0x370,_0x47b6f4._0x29b835)]>0x0&&_0x48803f[_0xb1b11a(-0x26e,-_0x47b6f4._0x309bdc,-_0x47b6f4._0x320604,-_0x47b6f4._0x27b560)]({'type':_0x42448d(0x29f,0x17b,0x22c,_0x47b6f4._0x69a52),'text':_0x101cea});continue;}if(!isResponsesFunctionCallItem(_0x253841)||typeof _0x253841['call_id']!==_0xb1b11a(-_0x47b6f4._0x32ad2f,-0x2bf,-0x267,-0x312)||_0x253841[_0xb1b11a(-0x161,-_0x47b6f4._0x146f88,-_0x47b6f4._0x2bd00a,-0x12b)][_0x42448d(_0x47b6f4._0x406b03,_0x47b6f4._0x31310a,_0x47b6f4._0x29b7da,0x282)]()[_0xb1b11a(-0xc9,-0x5a,-_0x47b6f4._0x3f85d0,-_0x47b6f4._0x1f159a)]===0x0||typeof _0x253841[_0x42448d(_0x47b6f4._0x4020dc,0x221,0x1f8,0x1c2)]!==_0xb1b11a(-_0x47b6f4._0x15a62b,-_0x47b6f4._0x116a9e,-_0x47b6f4._0x56ac46,-0x2ea)||_0x253841['name'][_0x42448d(_0x47b6f4._0x5697d9,_0x47b6f4._0x5857df,_0x47b6f4._0x29b7da,0x23e)]()[_0x42448d(0x41d,_0x47b6f4._0x4c19dc,_0x47b6f4._0x3394c4,0x2c0)]===0x0||typeof _0x253841[_0xb1b11a(-0xe4,-_0x47b6f4._0x416fd7,-0x1a7,-_0x47b6f4._0x2172c5)]!==_0xb1b11a(-0x269,-_0x47b6f4._0x193567,-_0x47b6f4._0x59f994,-0x22d))continue;_0x48803f['push']({'type':'tool_use','id':_0x253841[_0xb1b11a(-0x161,-0x11c,-_0x47b6f4._0x5271ea,-0x1fd)],'name':_0x253841[_0x42448d(_0x47b6f4._0x15f32a,0x165,_0x47b6f4._0x820422,0x2cb)],'input':parseToolInput2(_0x253841[_0xb1b11a(-_0x47b6f4._0x472421,-_0x47b6f4._0x4c6f19,-_0x47b6f4._0x1af05c,-_0x47b6f4._0x1cdc2e)])});}function _0xb1b11a(_0x3de291,_0x3e7c1b,_0x5be50e,_0x131f2d){return _0xc7d8a6(_0x3de291-0x1ac,_0x131f2d,_0x5be50e-_0x503c52._0x2f773,_0x3de291- -_0x503c52._0x1981b8);}return!_0x48803f[_0x42448d(0x274,0x1c0,_0x47b6f4._0xcc42e8,0xfa)](_0x4d81ce=>_0x4d81ce[_0xb1b11a(-0x1aa,-0x275,-0x1c7,-0x1a9)]===_0x42448d(0x2b6,0x2b3,0x22c,0x1b1))&&_0x5b47ee[_0xb1b11a(-0x16c,-_0x47b6f4._0x24b079,-0xbf,-_0x47b6f4._0x21790c)]&&_0x48803f[_0x42448d(_0x47b6f4._0x5aca5d,0x242,0x1cb,_0x47b6f4._0x5cbc4a)]({'type':_0x42448d(0x218,_0x47b6f4._0x4a17c1,_0x47b6f4._0x4664db,_0x47b6f4._0x547e3f),'text':_0x5b47ee[_0x42448d(_0x47b6f4._0x17804a,0x287,0x2cd,0x34a)]}),{'id':_0x5b47ee['id'],'content':_0x48803f,'stopReason':_0x48803f['some'](_0x38b6d2=>_0x38b6d2['type']===_0xb1b11a(-0x220,-0x17e,-0x304,-0x208))?_0x42448d(0x289,_0x47b6f4._0x1c8de8,_0x47b6f4._0x4f807b,_0x47b6f4._0x14cb01):'end_turn','usage':{'inputTokens':_0x5b47ee[_0x42448d(0x280,0x30f,_0x47b6f4._0x477334,_0x47b6f4._0x4d0b9c)]?.[_0xb1b11a(-_0x47b6f4._0x3f81a9,-_0x47b6f4._0x1c8de8,-0x162,-0x191)]??0x0,'outputTokens':_0x5b47ee[_0x42448d(0x31c,0x284,_0x47b6f4._0x477334,0x261)]?.['output_tokens']??0x0,..._0x5b47ee[_0x42448d(0x39e,0x359,_0x47b6f4._0x1d7099,_0x47b6f4._0x2137c2)]?.[_0x42448d(_0x47b6f4._0x12488e,0x1ac,0x1df,_0x47b6f4._0x24c8ea)]?.[_0xb1b11a(-0x1c0,-0x28b,-_0x47b6f4._0x11bdb8,-_0x47b6f4._0x3f24a7)]!==void 0x0?{'reasoningTokens':_0x5b47ee[_0x42448d(0x299,0x295,_0x47b6f4._0x1d7099,0x3e1)][_0x42448d(_0x47b6f4._0x4e43c6,0x1cc,_0x47b6f4._0x3d6507,_0x47b6f4._0x300bf6)][_0xb1b11a(-_0x47b6f4._0x45f108,-0x188,-_0x47b6f4._0x20e9ce,-_0x47b6f4._0x4759e0)]}:{}},..._0x5b47ee[_0x42448d(_0x47b6f4._0x4671ef,0x1f0,0x1f4,0x2bd)]?{'providerState':{'openaiResponsesOutput':structuredClone(_0x5b47ee[_0x42448d(0x2ca,0x1e6,_0x47b6f4._0x2bd00a,_0x47b6f4._0x4a01b9)]),'openaiResponsesResponseId':_0x5b47ee['id']}}:{}};}function extractErrorMessage(_0xff27d5){const _0x5b0bb4={_0x46c6e9:0x466,_0xa306e9:0x501,_0x21b508:0x398,_0xa57c92:0x2ee,_0x4dbfc4:0x301,_0x386cb4:0x377,_0x20f547:0x3f9,_0x44cf36:0x57c,_0x2ef623:0x4f8,_0x3e4763:0x5a7,_0x2b30c3:0x5fd,_0x12f691:0x641,_0x32562c:0x542,_0x45409:0x328,_0x7e34c8:0x57c,_0x2a84db:0x582,_0x2afe2d:0x45d,_0x5c805f:0x309,_0x36c2c2:0x5fd,_0x2723d7:0x5c5,_0x316e9f:0x6a0,_0x2b0fe1:0x4c4},_0x414a13={_0x5e99c1:0x17d},_0x34731b={_0x49e73a:0x114,_0x20a6e3:0x2ef};function _0x3003de(_0x4a40b3,_0x3416c2,_0x486239,_0x167a60){return _0x74a064(_0x4a40b3-0x1a,_0x3416c2-_0x34731b._0x49e73a,_0x4a40b3-_0x34731b._0x20a6e3,_0x486239);}if(_0xff27d5[_0x3003de(0x419,_0x5b0bb4._0x46c6e9,0x3c6,0x437)]===0x0)return'';function _0xdb4694(_0x266c27,_0x4ba2f3,_0x23d454,_0x2079b7){return _0xc7d8a6(_0x266c27-_0x414a13._0x5e99c1,_0x23d454,_0x23d454-0x24,_0x266c27-0x625);}try{const _0x4fbdfa=JSON[_0xdb4694(0x51b,0x535,_0x5b0bb4._0xa306e9,0x4ee)](_0xff27d5);if(typeof _0x4fbdfa['error']?.[_0x3003de(_0x5b0bb4._0x21b508,_0x5b0bb4._0xa57c92,0x430,0x475)]==='string'&&_0x4fbdfa[_0x3003de(0x360,_0x5b0bb4._0x4dbfc4,_0x5b0bb4._0x386cb4,_0x5b0bb4._0x20f547)][_0xdb4694(_0x5b0bb4._0x44cf36,_0x5b0bb4._0x2ef623,_0x5b0bb4._0x3e4763,0x5be)]['trim']()[_0xdb4694(_0x5b0bb4._0x2b30c3,_0x5b0bb4._0x12f691,_0x5b0bb4._0x32562c,0x653)]>0x0)return _0x4fbdfa['error'][_0x3003de(0x398,0x2df,0x329,_0x5b0bb4._0x45409)]['trim']();if(typeof _0x4fbdfa[_0xdb4694(_0x5b0bb4._0x7e34c8,0x5d9,_0x5b0bb4._0x2a84db,_0x5b0bb4._0x7e34c8)]===_0xdb4694(_0x5b0bb4._0x2afe2d,0x4f7,0x467,0x3d9)&&_0x4fbdfa[_0xdb4694(_0x5b0bb4._0x44cf36,0x4ac,0x574,0x4a6)][_0x3003de(0x2ba,_0x5b0bb4._0x5c805f,0x288,0x361)]()[_0xdb4694(_0x5b0bb4._0x36c2c2,_0x5b0bb4._0x2723d7,0x6bd,_0x5b0bb4._0x316e9f)]>0x0)return _0x4fbdfa[_0xdb4694(0x57c,0x5ae,_0x5b0bb4._0x2b0fe1,0x51a)][_0x3003de(0x2ba,0x2f7,0x314,0x251)]();}catch{return _0xff27d5;}return _0xff27d5;}async function createOpenAiApiError(_0x21dd2c){const _0x7782d6={_0x455d2a:0x2d,_0x4c4985:0x13,_0x2c4f5c:0xcd,_0x49dee3:0x35,_0x1b6391:0xa8,_0x189cd5:0x25d,_0x329294:0x20d,_0x3964b4:0x154,_0x38abb6:0xc4};function _0x8816b6(_0x9512e5,_0x5b9b62,_0x4b16d3,_0x44166a){return _0xc7d8a6(_0x9512e5-0x107,_0x44166a,_0x4b16d3-0x50,_0x5b9b62- -0xd1);}const _0xbdaaed=(await _0x21dd2c[_0x5c7a48(_0x7782d6._0x455d2a,_0x7782d6._0x4c4985,_0x7782d6._0x2c4f5c,0x17f)]())[_0x5c7a48(_0x7782d6._0x49dee3,0x162,0xb2,_0x7782d6._0x1b6391)](),_0x2924b8=extractErrorMessage(_0xbdaaed)||_0x21dd2c['statusText']||_0x8816b6(-0x2ed,-_0x7782d6._0x189cd5,-_0x7782d6._0x329294,-0x208)+_0x21dd2c[_0x5c7a48(0x17e,0x9f,_0x7782d6._0x3964b4,_0x7782d6._0x38abb6)];function _0x5c7a48(_0x4edd7e,_0x1e7483,_0x4b376f,_0x17f985){return _0xc7d8a6(_0x4edd7e-0x12b,_0x17f985,_0x4b376f-0x1c,_0x4b376f-0x239);}return new OpenAiApiError(_0x21dd2c['status'],_0xbdaaed,_0x2924b8);}function readSseData(_0x41d204){const _0x39482c={_0x4a3c6f:0x24b,_0xd9c3d4:0x16c,_0x2bb197:0x20b,_0x55caf2:0x11f,_0x209875:0xa3,_0x3a81fc:0x186,_0x4f23f4:0x24e,_0x2d3cab:0x1d1,_0x18c885:0xc8,_0x53c816:0x10,_0x256068:0x10b,_0x1028e7:0x73,_0x4eda99:0x130},_0xe362f8={_0x2063f6:0xe5,_0x1eac59:0x1fa};function _0x42ba5d(_0x320717,_0x3d56cc,_0x5bd8d9,_0x5c8ead){return _0x74a064(_0x320717-0x1e4,_0x3d56cc-0xf3,_0x3d56cc- -0x9d,_0x320717);}function _0x5a38ed(_0x13f84d,_0x5bedd0,_0x101da3,_0x1aff14){return _0xc7d8a6(_0x13f84d-_0xe362f8._0x2063f6,_0x13f84d,_0x101da3-0x196,_0x5bedd0-_0xe362f8._0x1eac59);}return _0x41d204[_0x5a38ed(_0x39482c._0x4a3c6f,_0x39482c._0xd9c3d4,0x1a0,_0x39482c._0x2bb197)]('\x0a')[_0x42ba5d(-0x1eb,-_0x39482c._0x55caf2,-0xe2,-0x120)](_0x5489fb=>_0x5489fb['startsWith'](_0x42ba5d(-0x170,-0x105,-0x21,-0x12e)))[_0x5a38ed(_0x39482c._0x209875,_0x39482c._0x3a81fc,_0x39482c._0x4f23f4,_0x39482c._0x2d3cab)](_0x5345af=>_0x5345af[_0x42ba5d(-0xe6,-0x7b,-0xe5,-0x13a)](0x5)[_0x42ba5d(-0x1a8,-0x10a,-0xf7,-0x13f)]())[_0x42ba5d(-0x86,-_0x39482c._0x18c885,-_0x39482c._0x53c816,-0x46)]('\x0a')[_0x5a38ed(_0x39482c._0x256068,_0x39482c._0x1028e7,-0x71,_0x39482c._0x4eda99)]();}function readString(_0x3db963){const _0x396364={_0x2040fb:0x25e,_0x5b7281:0x608,_0x3d5e83:0x674},_0x542ba7={_0xf5cecb:0xe2,_0x56288f:0x96},_0x1603d9={_0x481ad8:0x142};function _0x23c417(_0x2d91f3,_0xc57bd8,_0x3c7bd6,_0x3d9336){return _0xc7d8a6(_0x2d91f3-_0x1603d9._0x481ad8,_0xc57bd8,_0x3c7bd6-0x73,_0x3c7bd6-0x615);}function _0x411fb6(_0x1ebe1a,_0x43d818,_0x5d5cb7,_0x11168c){return _0xc7d8a6(_0x1ebe1a-0xc2,_0x5d5cb7,_0x5d5cb7-_0x542ba7._0xf5cecb,_0x43d818- -_0x542ba7._0x56288f);}return typeof _0x3db963===_0x411fb6(-0x1ab,-_0x396364._0x2040fb,-0x197,-0x2e2)&&_0x3db963[_0x23c417(_0x396364._0x5b7281,_0x396364._0x3d5e83,0x5ed,0x581)]>0x0?_0x3db963:void 0x0;}function extractReasoningDetails(_0x3ce79b){const _0x3061b5={_0x560cba:0x1c2,_0x5e3728:0x119,_0x4b5a8d:0x17a,_0x1abc64:0x197,_0x2a840a:0xf3},_0x2a59de={_0x5b8f82:0x36,_0x56c0d0:0x181,_0x2b4760:0x20b,_0x10cb8e:0x1d7,_0x2b76fb:0x26a,_0x145af0:0x233,_0xbd7a37:0x14e,_0x64ceb2:0x2e4,_0x2279d5:0x330},_0x523050={_0x38ff44:0x1cb},_0x1592ad={_0x8fdfcc:0x199};function _0x1c2ab4(_0x3d6490,_0x3ba50d,_0x4514fe,_0xbcf677){return _0xc7d8a6(_0x3d6490-0xa,_0x3d6490,_0x4514fe-_0x1592ad._0x8fdfcc,_0x3ba50d-0x1a);}if(!Array[_0x43905a(-0x312,-0x2b5,-0x271,-0x23f)](_0x3ce79b))return void 0x0;function _0x43905a(_0x4cde21,_0x136fa5,_0x221b0f,_0x21f3a9){return _0x74a064(_0x4cde21-0x14,_0x136fa5-_0x523050._0x38ff44,_0x221b0f- -0x21d,_0x4cde21);}const _0x4860b4=_0x3ce79b[_0x43905a(-_0x3061b5._0x560cba,-0x18b,-_0x3061b5._0x5e3728,-0x178)](_0x2ee77c=>{if(!_0x2ee77c||typeof _0x2ee77c!==_0x483c5e(-0x6a,-0xa2,-0x113,-_0x2a59de._0x5b8f82))return[];const _0x194fcc=_0x2ee77c;if(typeof _0x194fcc[_0x483c5e(-_0x2a59de._0x56c0d0,-_0x2a59de._0x2b4760,-_0x2a59de._0x10cb8e,-0x156)]===_0x483c5e(-0x22d,-_0x2a59de._0x2b76fb,-_0x2a59de._0x145af0,-_0x2a59de._0xbd7a37))return[_0x194fcc['text']];function _0x4bc876(_0x139f4b,_0x1d0f81,_0x107f75,_0x2e2aef){return _0x1c2ab4(_0x107f75,_0x139f4b-0x368,_0x107f75-0x19c,_0x2e2aef-0x53);}function _0x483c5e(_0x51eecc,_0x230e20,_0x14f5c1,_0xff3ec0){return _0x43905a(_0xff3ec0,_0x230e20-0x1c4,_0x14f5c1-0x60,_0xff3ec0-0x26);}if(typeof _0x194fcc[_0x4bc876(_0x2a59de._0x64ceb2,_0x2a59de._0x2279d5,0x3a2,0x26c)]==='string')return[_0x194fcc['summary']];return[];});return _0x4860b4[_0x43905a(-_0x3061b5._0x4b5a8d,-_0x3061b5._0x1abc64,-_0x3061b5._0x2a840a,-0x99)]>0x0?_0x4860b4['join'](''):void 0x0;}function extractChatCompletionReasoningDelta(_0x7b6b30){const _0x423157={_0x243743:0x2d3,_0x55d699:0x3b6,_0x3d2bfa:0x6f,_0x105228:0xae,_0x56cca9:0x102,_0x29a06d:0x2fd,_0x55f7b6:0x34f,_0x56da58:0x83,_0x4021fc:0x48},_0x24777a={_0xed819a:0x12c},_0x595abc={_0x3e56ee:0x466};function _0x190357(_0x31dc3b,_0x2788e4,_0x33a7b8,_0x3d88b1){return _0xc7d8a6(_0x31dc3b-0xe1,_0x33a7b8,_0x33a7b8-0x91,_0x2788e4-_0x595abc._0x3e56ee);}function _0x6da92f(_0x63d3a6,_0x46129b,_0x339940,_0x4d77bf){return _0xc7d8a6(_0x63d3a6-0x164,_0x46129b,_0x339940-0x4,_0x339940-_0x24777a._0xed819a);}return extractReasoningDetails(_0x7b6b30?.[_0x190357(0x2e6,_0x423157._0x243743,0x313,_0x423157._0x55d699)])??readString(_0x7b6b30?.[_0x6da92f(_0x423157._0x3d2bfa,_0x423157._0x105228,_0x423157._0x56cca9,0x15e)])??readString(_0x7b6b30?.[_0x190357(_0x423157._0x29a06d,0x37c,_0x423157._0x55f7b6,0x2d7)])??readString(_0x7b6b30?.[_0x6da92f(-_0x423157._0x56da58,-0x89,0x8,_0x423157._0x4021fc)])??'';}var OpenAiChatCompletionsStreamParser=class{[_0xc7d8a6(-0x54,0x58,0x56,-0x5d)]=[];[_0x74a064(0x63,-0xf0,-0x24,0x91)];['textParts']=[];[_0x74a064(0xee,-0x2f,0x4a,0xd8)]=new Map();[_0x74a064(0x5a,0x140,0xa3,0x10f)]=[];[_0x74a064(-0x15e,0x3b,-0x7d,-0xa7)]=new Set();['responseId']='';['stopReason']='end_turn';[_0x74a064(0x85,0x157,0xed,0x3a)];constructor(_0x5573b4){this['request']=_0x5573b4;}[_0xc7d8a6(0x97,0x1c,-0x103,-0x41)](_0x4323c6){const _0x3b972f={_0x18b25f:0x5f7,_0x5873d8:0x6b8,_0x198a56:0x491,_0x1f49fc:0x5ba,_0x132204:0x4e6,_0xfdd4d8:0x598,_0xbc8e05:0x5ba,_0x2c950c:0x67b,_0x41857a:0x264,_0x42a2b0:0x2b6,_0x33fe11:0x4b6,_0xd3073d:0x421},_0x3b30={_0x378da3:0x143,_0x7fc076:0x62,_0x1dd4ae:0x2c9},_0x38dd14={_0x229692:0xf2,_0x591f07:0x67},_0xf6cbf8=readSseData(_0x4323c6);if(_0xf6cbf8[_0x2cca09(0x561,_0x3b972f._0x18b25f,0x621,_0x3b972f._0x5873d8)]===0x0||_0xf6cbf8===_0x2cca09(0x3c5,_0x3b972f._0x198a56,0x4ee,0x436))return[];function _0x2cca09(_0xc5732b,_0x1c25b3,_0x1e7556,_0x4d6aca){return _0xc7d8a6(_0xc5732b-_0x38dd14._0x229692,_0xc5732b,_0x1e7556-_0x38dd14._0x591f07,_0x1c25b3-0x61f);}const _0x2a66d9=JSON['parse'](_0xf6cbf8);this['responseId']=_0x2a66d9['id']??this[_0x1f0351(0x194,0x1ad,0x27c,0x19f)];function _0x1f0351(_0x1be8b0,_0x2ec229,_0x807998,_0x50f651){return _0xc7d8a6(_0x1be8b0-_0x3b30._0x378da3,_0x50f651,_0x807998-_0x3b30._0x7fc076,_0x2ec229-_0x3b30._0x1dd4ae);}return this[_0x2cca09(0x577,_0x3b972f._0x1f49fc,_0x3b972f._0x132204,_0x3b972f._0xfdd4d8)]=_0x2a66d9[_0x2cca09(0x52f,_0x3b972f._0xbc8e05,0x5f2,_0x3b972f._0x2c950c)]??this[_0x1f0351(0x2b7,_0x3b972f._0x41857a,_0x3b972f._0x42a2b0,0x245)],this[_0x2cca09(_0x3b972f._0x33fe11,0x4ea,0x42d,_0x3b972f._0xd3073d)](_0x2a66d9);}[_0xc7d8a6(-0xc0,-0x4c,-0x9c,-0x5e)](){const _0x4a8d42={_0x306ed0:0x117,_0x3a1c01:0xfa,_0x1a0407:0xa0,_0x3870d3:0x1a3,_0x5d593c:0x165,_0x34609d:0x135,_0x5eeb39:0xd6,_0xa7fa42:0x21,_0x92d3c1:0x169,_0x119211:0x1ee,_0x369961:0x49,_0x43ea35:0x2e,_0x3323ae:0x12e,_0x58de87:0x1fb,_0x2c9620:0x210,_0x799cb8:0x1e7,_0x4407a5:0x190,_0xa16f86:0x1d5,_0x3c9ac2:0x1a5,_0x555804:0x238,_0x1f940b:0x18b},_0x46cfa4={_0x307671:0x17,_0x1d900e:0x74},_0x3fdb74={_0x195ad4:0x1b7,_0x5cfd37:0x114};function _0x451c2a(_0x36b3f1,_0x56b85d,_0x4eaaa7,_0x40a00f){return _0xc7d8a6(_0x36b3f1-_0x3fdb74._0x195ad4,_0x40a00f,_0x4eaaa7-0xda,_0x4eaaa7- -_0x3fdb74._0x5cfd37);}this[_0x3c163a(_0x4a8d42._0x306ed0,0x91,0xe8,_0x4a8d42._0x3a1c01)][_0x451c2a(-_0x4a8d42._0x1a0407,-_0x4a8d42._0x3870d3,-0x13c,-_0x4a8d42._0x5d593c)]>0x0&&(this[_0x3c163a(_0x4a8d42._0x34609d,0xf1,0x16c,0x1d6)]=_0x3c163a(0x47,_0x4a8d42._0x5eeb39,-_0x4a8d42._0xa7fa42,0xaf));function _0x3c163a(_0x3464b2,_0x37add6,_0x52be47,_0x2abcf8){return _0x74a064(_0x3464b2-_0x46cfa4._0x307671,_0x37add6-0x29,_0x3464b2-_0x46cfa4._0x1d900e,_0x37add6);}const _0x5b0f4c=isUserVisibleReasoning(this['request'])?this[_0x3c163a(_0x4a8d42._0x92d3c1,0x11d,_0x4a8d42._0x119211,0xb0)][_0x3c163a(_0x4a8d42._0x369961,0xf7,-_0x4a8d42._0x43ea35,0x8f)](''):void 0x0;return{'id':this['responseId']||_0x451c2a(-0x14e,-_0x4a8d42._0x3323ae,-_0x4a8d42._0x58de87,-_0x4a8d42._0x2c9620)+Date[_0x451c2a(-0x1e1,-0x129,-0x1e3,-_0x4a8d42._0x799cb8)](),'content':createContentBlocks(this[_0x3c163a(0x18e,_0x4a8d42._0x4407a5,_0x4a8d42._0xa16f86,0xad)]['join'](''),this['toolCallOrder'],_0x5b0f4c),'stopReason':this[_0x451c2a(-0x25c,-0x181,-_0x4a8d42._0x3c9ac2,-_0x4a8d42._0x555804)],'usage':createUsage(this[_0x451c2a(-0xed,-_0x4a8d42._0x1f940b,-0x179,-0x138)])};}['consumeEvent'](_0x244eac){const _0x3b6930={_0x37a412:0x1dd,_0x4cbde2:0x309,_0x5507be:0x2f6,_0x30bb52:0x345,_0x13e781:0x29f,_0x2dfb02:0x2b9,_0x588a70:0x36b,_0x104224:0x34c,_0x4a5b18:0x1e8,_0x489b16:0x1a9,_0x432149:0x354,_0x5a4e93:0x364,_0x20de8f:0x1d6,_0x485c5b:0x16b,_0x24b579:0x219,_0x68aabc:0x3b0,_0x34b189:0x28c,_0x4fc05f:0x319,_0x1f230d:0x3ef,_0xf5b614:0x3ac,_0x37e417:0x455,_0x57466a:0x1eb,_0x55e1db:0x2a0,_0x41baf4:0x3d3,_0x1daf70:0x4b9,_0x1ac390:0x3ec,_0xf24a4b:0x26f,_0x39a3d5:0x1e2,_0x8c4697:0x1f,_0x87078a:0x88,_0x21759e:0x1de,_0x3b3df7:0x1fa,_0x24c570:0x23f,_0x38648b:0x4c6,_0x31ff66:0x405,_0x1b48c9:0x388,_0x139b25:0x361,_0x1c6b5f:0x396,_0x31fafd:0x27d,_0x716ee5:0x341,_0x547267:0xdd,_0x4c9b69:0x17c,_0x33c466:0x1aa,_0xf10125:0x272,_0x18b3ac:0x18a,_0x449f0c:0x174,_0x2f8faf:0x26b,_0x321f04:0x373,_0x5dd706:0xe2,_0x38b99f:0x12f,_0x6a23df:0x422,_0xd218de:0x3cf,_0x4ee850:0x341,_0x252ccc:0x392,_0x4fcce7:0xc2,_0x3ad9e2:0x12c,_0xe64e2:0x182,_0x5ca7d2:0x361,_0x325a01:0x2e9,_0x827aa6:0x3e5,_0x3365a7:0x177,_0x5ef68:0x3,_0x31593e:0x3ed,_0x584603:0x386,_0x3a5490:0xdb,_0x31c95b:0x43c,_0x5cc8ca:0x4b9,_0x1ce83f:0x3d5,_0x28c883:0x16a,_0x577084:0x67,_0x50dda0:0x287,_0x460362:0x93,_0x521d8b:0x3d,_0xb31e7f:0x3cb,_0x5db5f7:0x328,_0x10e148:0x3cd,_0x2010b6:0xe2,_0x56a651:0x71,_0x28eb98:0x28,_0x4872f2:0x56e,_0x46a573:0x49e,_0x40cf66:0x23a,_0x27ebba:0x1ef,_0x267dbd:0x3f4,_0x410593:0x314,_0x5134f6:0x1b6,_0x18a3cb:0x1b3,_0x55ed99:0x492,_0x2abc90:0x4b3,_0x31ff0b:0x104,_0x3cb931:0x175},_0x32dd72={_0x34262f:0x1e9,_0x53fee7:0x38f};function _0x30d55c(_0x40d55d,_0x423873,_0x1b8e6f,_0x9a06b7){return _0x74a064(_0x40d55d-0x150,_0x423873-_0x32dd72._0x34262f,_0x9a06b7-_0x32dd72._0x53fee7,_0x40d55d);}const _0x3e9f3f=[];for(const _0x3660dc of _0x244eac[_0x2af566(_0x3b6930._0x37a412,0x1db,0x130,0x127)]??[]){const _0x5b30fe=_0x3660dc['delta'],_0x1634c1=extractChatCompletionReasoningDelta(_0x5b30fe);_0x1634c1[_0x2af566(0x23a,0x1a1,0x19f,_0x3b6930._0x4cbde2)]>0x0&&(this['reasoningParts'][_0x30d55c(_0x3b6930._0x5507be,0x32c,_0x3b6930._0x30bb52,0x314)](_0x1634c1),isUserVisibleReasoning(this[_0x30d55c(0x324,_0x3b6930._0x13e781,_0x3b6930._0x2dfb02,_0x3b6930._0x588a70)])&&_0x3e9f3f['push']({'type':'openai_reasoning_delta','contentIndex':0x0,'delta':_0x1634c1,'itemId':(this[_0x30d55c(0x3c0,_0x3b6930._0x104224,0x340,0x3c5)]||_0x2af566(_0x3b6930._0x4a5b18,0x18f,_0x3b6930._0x489b16,0x288))+_0x30d55c(_0x3b6930._0x432149,_0x3b6930._0x5a4e93,0x40f,0x42b),'outputIndex':0x0}));const _0x8655c3=typeof _0x5b30fe?.[_0x2af566(_0x3b6930._0x20de8f,_0x3b6930._0x485c5b,_0x3b6930._0x24b579,0x1ee)]===_0x30d55c(_0x3b6930._0x68aabc,0x376,_0x3b6930._0x34b189,_0x3b6930._0x4fc05f)?_0x5b30fe[_0x30d55c(0x436,_0x3b6930._0x1f230d,_0x3b6930._0xf5b614,_0x3b6930._0x37e417)]:typeof _0x5b30fe?.[_0x2af566(_0x3b6930._0x57466a,0x2a9,0x2cc,_0x3b6930._0x55e1db)]==='string'?_0x5b30fe['refusal']:'';_0x8655c3[_0x30d55c(0x502,0x3e2,_0x3b6930._0x41baf4,_0x3b6930._0x1daf70)]>0x0&&(this[_0x30d55c(0x3e5,0x3d8,0x50a,0x4a9)][_0x30d55c(_0x3b6930._0x1ac390,0x27f,_0x3b6930._0xf24a4b,0x314)](_0x8655c3),_0x3e9f3f['push']({'type':_0x2af566(_0x3b6930._0x39a3d5,0x23e,0x114,0x1b2),'index':0x0,'text':_0x8655c3}));for(const _0x1ffd81 of _0x5b30fe?.['tool_calls']??[]){const _0x400d0d=_0x1ffd81[_0x2af566(0x92,-_0x3b6930._0x8c4697,_0x3b6930._0x87078a,0x4a)]??0x0;let _0x5dbf06=this[_0x2af566(0x15a,_0x3b6930._0x21759e,_0x3b6930._0x3b3df7,_0x3b6930._0x24c570)][_0x30d55c(0x403,_0x3b6930._0x38648b,0x36d,0x408)](_0x400d0d);!_0x5dbf06&&(_0x5dbf06={'id':_0x1ffd81['id']??'tool-call-'+_0x400d0d,'type':'function','function':{'name':_0x1ffd81[_0x30d55c(_0x3b6930._0x31ff66,_0x3b6930._0x1b48c9,0x3be,_0x3b6930._0x139b25)]?.[_0x30d55c(_0x3b6930._0x1c6b5f,_0x3b6930._0x31fafd,0x2fd,_0x3b6930._0x716ee5)]??'','arguments':''}},this[_0x2af566(0x15a,_0x3b6930._0x547267,_0x3b6930._0x4c9b69,0x181)][_0x2af566(0x22c,_0x3b6930._0x33c466,_0x3b6930._0xf10125,0x1d6)](_0x400d0d,_0x5dbf06),this[_0x2af566(0x1b3,_0x3b6930._0x18b3ac,_0x3b6930._0x449f0c,_0x3b6930._0x2f8faf)][_0x30d55c(0x28f,_0x3b6930._0x321f04,0x28b,0x314)](_0x5dbf06));_0x1ffd81['id']&&(_0x5dbf06['id']=_0x1ffd81['id']);_0x1ffd81[_0x2af566(_0x3b6930._0x5dd706,0x1ad,_0x3b6930._0x38b99f,0x85)]?.[_0x30d55c(_0x3b6930._0x6a23df,_0x3b6930._0xd218de,0x2bd,_0x3b6930._0x4ee850)]&&(_0x5dbf06[_0x30d55c(0x2b4,_0x3b6930._0x252ccc,0x331,_0x3b6930._0x139b25)][_0x2af566(_0x3b6930._0x4fcce7,_0x3b6930._0x3ad9e2,_0x3b6930._0xe64e2,0x15b)]=_0x1ffd81[_0x30d55c(0x419,0x2d6,0x29f,_0x3b6930._0x5ca7d2)][_0x30d55c(_0x3b6930._0x325a01,_0x3b6930._0x827aa6,0x2a6,0x341)]);!this['toolUseStartEmitted']['has'](_0x400d0d)&&_0x5dbf06[_0x2af566(0xe2,_0x3b6930._0x3365a7,0xd9,_0x3b6930._0x5ef68)][_0x30d55c(0x2ff,_0x3b6930._0x31593e,_0x3b6930._0x584603,0x341)][_0x2af566(_0x3b6930._0x3a5490,0xd3,0x190,0xeb)]()[_0x30d55c(0x3fd,0x477,_0x3b6930._0x31c95b,_0x3b6930._0x5cc8ca)]>0x0&&(_0x3e9f3f[_0x30d55c(0x31a,_0x3b6930._0x1ce83f,0x256,0x314)]({'type':'tool_use_delta','id':_0x5dbf06['id'],'index':_0x400d0d,'name':_0x5dbf06[_0x2af566(0xe2,0x39,_0x3b6930._0x28c883,_0x3b6930._0x577084)][_0x30d55c(0x325,0x325,_0x3b6930._0x50dda0,0x341)]}),this[_0x2af566(_0x3b6930._0x460362,_0x3b6930._0x3ad9e2,-_0x3b6930._0x521d8b,0x6e)][_0x30d55c(_0x3b6930._0xb31e7f,0x32e,_0x3b6930._0x5db5f7,_0x3b6930._0x10e148)](_0x400d0d));const _0x41b8e8=_0x1ffd81[_0x2af566(_0x3b6930._0x2010b6,_0x3b6930._0x56a651,0x75,_0x3b6930._0x28eb98)]?.[_0x30d55c(0x50b,0x521,_0x3b6930._0x4872f2,_0x3b6930._0x46a573)]??'';_0x41b8e8[_0x2af566(_0x3b6930._0x40cf66,0x160,0x18b,_0x3b6930._0x27ebba)]>0x0&&(_0x5dbf06['function']['arguments']+=_0x41b8e8,_0x3e9f3f[_0x30d55c(0x250,0x294,_0x3b6930._0x267dbd,_0x3b6930._0x410593)]({'type':'tool_use_delta','id':_0x5dbf06['id'],'index':_0x400d0d,'inputDelta':_0x41b8e8}));}_0x3660dc[_0x2af566(0x19b,0x271,_0x3b6930._0x5134f6,_0x3b6930._0x18a3cb)]===_0x30d55c(0x3ff,0x56c,_0x3b6930._0x55ed99,_0x3b6930._0x2abc90)&&(this[_0x2af566(0x1d1,_0x3b6930._0x31ff0b,_0x3b6930._0x3cb931,0x1ca)]='tool_use');}function _0x2af566(_0x5190d7,_0x3356fd,_0x579c51,_0x441855){return _0xc7d8a6(_0x5190d7-0x2e,_0x579c51,_0x579c51-0xf9,_0x5190d7-0x262);}return _0x3e9f3f;}},OpenAiResponsesStreamParser=class{[_0xc7d8a6(-0xf6,-0xc7,-0xaf,-0x121)]=new Map();['finalResponse'];[_0x74a064(-0x1e,0x36,0x2b,0xc0)]=new Map();[_0x74a064(-0x80,0x3e,-0x37,-0xe1)]=new Map();['reasoningItems']=new Map();[_0x74a064(-0x7a,-0x56,-0x24,-0x6f)];[_0xc7d8a6(-0xfa,0x6c,-0x14b,-0x67)]=new Map();['toolCalls']=new Map();constructor(_0x56168e){this['request']=_0x56168e;}[_0xc7d8a6(0x7a,-0x1e,-0x3e,-0x41)](_0x218386){const _0x3e4c2e={_0x3a908f:0x205,_0x2da800:0x1ae,_0x5ddbc9:0x214,_0x287c2b:0x15c,_0x371165:0x599,_0x228d6c:0x5b1,_0x5ee4c0:0x1d3,_0x2a0064:0x166,_0x12f31f:0x404,_0x3f05f1:0x4e7,_0x29e79a:0x595,_0x100e22:0x4fc,_0x17ba29:0x4e0,_0xa19192:0x4bd,_0x1fc3ce:0x24d,_0x21f38a:0x196,_0x28eb6b:0xe8,_0x4d63bf:0x1f5,_0x75ddd:0x565},_0x597961={_0x51d199:0xb7};function _0x3cb2bd(_0x2e54e6,_0x44bd67,_0x786c8e,_0x514ecf){return _0x74a064(_0x2e54e6-0x8c,_0x44bd67-0xcb,_0x514ecf-0x191,_0x2e54e6);}const _0x375259=_0x218386['split']('\x0a'),_0x3173f2=_0x375259[_0x3cb2bd(0x214,0x18e,0x9c,0x176)](_0x22c8df=>_0x22c8df[_0x24ae48(0x5bf,0x630,0x558,0x522)]('event:'))?.[_0x3cb2bd(_0x3e4c2e._0x3a908f,_0x3e4c2e._0x2da800,_0x3e4c2e._0x5ddbc9,0x1b3)](0x6)[_0x3cb2bd(0xdd,0xaf,0x1a2,_0x3e4c2e._0x287c2b)]();function _0x24ae48(_0x6b8587,_0x54ccd1,_0x4c1363,_0x335ac3){return _0xc7d8a6(_0x6b8587-_0x597961._0x51d199,_0x6b8587,_0x4c1363-0xba,_0x4c1363-0x66e);}const _0x528b16=_0x375259['filter'](_0x212c99=>_0x212c99[_0x24ae48(0x5df,0x590,0x558,0x5d0)](_0x3cb2bd(0x1ae,0x12e,0x196,0x129)))[_0x24ae48(_0x3e4c2e._0x371165,0x523,0x5fa,_0x3e4c2e._0x228d6c)](_0x302e2b=>_0x302e2b[_0x24ae48(0x4d7,0x471,0x53e,0x4fa)](0x5)['trimStart']())[_0x3cb2bd(0x169,0xe3,_0x3e4c2e._0x5ee4c0,_0x3e4c2e._0x2a0064)]('\x0a')[_0x24ae48(0x58e,_0x3e4c2e._0x12f31f,_0x3e4c2e._0x3f05f1,_0x3e4c2e._0x29e79a)]();if(_0x528b16['length']===0x0||_0x528b16===_0x24ae48(_0x3e4c2e._0x100e22,0x5c0,_0x3e4c2e._0x17ba29,_0x3e4c2e._0xa19192))return[];const _0x3902d8=JSON[_0x3cb2bd(0x2be,0x19e,_0x3e4c2e._0x1fc3ce,0x1d9)](_0x528b16);return this[_0x3cb2bd(_0x3e4c2e._0x21f38a,_0x3e4c2e._0x28eb6b,_0x3e4c2e._0x4d63bf,0x1ae)](_0x3173f2??String(_0x3902d8[_0x24ae48(0x502,_0x3e4c2e._0x100e22,_0x3e4c2e._0x75ddd,0x600)]??''),_0x3902d8);}[_0xc7d8a6(-0x15e,-0xfb,-0x1da,-0x15e)](_0x222448){const _0x39cf19={_0x3ee87b:0xeb,_0xee3ecf:0x1b3,_0x460fee:0x10d,_0x18eeef:0x1de,_0x474eb6:0xb5,_0x3126b6:0x110},_0x3c1783={_0x15bbea:0x11,_0x29c7bf:0x1d4},_0x5a34b9={_0x4be1ac:0x8e};function _0x14060f(_0x47775c,_0x1fcdde,_0x273388,_0x7eb3b8){return _0xc7d8a6(_0x47775c-0xa8,_0x1fcdde,_0x273388-_0x5a34b9._0x4be1ac,_0x7eb3b8-0x219);}function _0x2179cb(_0x16fb5c,_0x1d485,_0x206108,_0x454e25){return _0xc7d8a6(_0x16fb5c-_0x3c1783._0x15bbea,_0x16fb5c,_0x206108-_0x3c1783._0x29c7bf,_0x1d485-0x1f6);}return this[_0x14060f(_0x39cf19._0x3ee87b,_0x39cf19._0xee3ecf,_0x39cf19._0x460fee,0xe4)](String(_0x222448[_0x14060f(0xab,_0x39cf19._0x18eeef,_0x39cf19._0x474eb6,_0x39cf19._0x3126b6)]??''),_0x222448);}[_0xc7d8a6(-0x4e,0x30,0x46,-0x5e)](){const _0x2db528={_0x5261d6:0xca,_0x16a739:0xc6,_0xfa939b:0x12,_0x21b360:0x6c,_0x4ab39a:0x2a,_0x40e5ec:0x78,_0xff9b67:0xf9,_0x5d7030:0x13f},_0xb4371a={_0x3f0dcc:0x70,_0x2930ba:0xe5},_0x2d64ae=this['finalResponse']??{'id':'resp-'+Date[_0x57802e(-_0x2db528._0x5261d6,-_0x2db528._0x16a739,_0x2db528._0xfa939b,-0x174)](),'object':_0x52ab29(0x7,-0x16,-0x46,_0x2db528._0x21b360),'status':_0x52ab29(-_0x2db528._0x4ab39a,_0x2db528._0x40e5ec,0x51,0x7),'output':this['buildPartialOutput'](),'usage':{'input_tokens':0x0,'output_tokens':0x0}};function _0x52ab29(_0x258c08,_0x3078b4,_0x536f8d,_0x4ef98b){return _0x74a064(_0x258c08-_0xb4371a._0x3f0dcc,_0x3078b4-_0xb4371a._0x2930ba,_0x258c08- -0x54,_0x536f8d);}function _0x57802e(_0x1ce073,_0x34b9be,_0x4e86e8,_0x45e219){return _0xc7d8a6(_0x1ce073-0x4b,_0x34b9be,_0x4e86e8-0x161,_0x1ce073-0x5);}return parseResponsesResponse(_0x2d64ae,this[_0x52ab29(-0x78,-_0x2db528._0xff9b67,-0x14b,-_0x2db528._0x5d7030)]);}[_0xc7d8a6(-0x1f,0x57,-0xd9,-0x55)](){const _0x1fd854={_0x16bc83:0x66f,_0x570fe2:0x4f9};function _0x422900(_0x3088a6,_0x954e45,_0x358a06,_0x1ff208){return _0x74a064(_0x3088a6-0x8f,_0x954e45-0x1a3,_0x3088a6-0x52e,_0x1ff208);}return this[_0x422900(0x5da,0x5c6,_0x1fd854._0x16bc83,_0x1fd854._0x570fe2)]!==void 0x0;}[_0x74a064(0x5d,0xd9,0x1d,0x2e)](_0x147ac3,_0x59c8de){const _0x42d1ca={_0x35fd09:0x340,_0x24cc0e:0x24b,_0x70b464:0x1eb,_0xb7b606:0x12d,_0x3a8ee3:0x19f,_0x19f2f7:0x3e2,_0x175f7c:0x356,_0x23f54f:0x3aa,_0x1b1b02:0x150,_0x4fafe1:0x21c,_0x436588:0x208,_0x1cfeb7:0x236,_0x33aa62:0x336,_0x317923:0x28e,_0x51e352:0x20d,_0x14d0f4:0x357,_0x362db6:0x292,_0x531b46:0x2ba,_0x2837b6:0x271,_0x476d69:0x247,_0x270d91:0x1e7,_0x43dae9:0x300,_0x2b3d91:0x29c,_0x239c27:0x345,_0x3ed9ca:0x215,_0x1e3ec0:0x200,_0x5bf958:0x1d2,_0x98914a:0x23c,_0x10d56a:0x1ec,_0x277ac5:0x248,_0x556682:0x2b6,_0x19cbd1:0x2b1,_0x2ce103:0x315,_0xc1f407:0x237,_0x4e0bed:0x2be,_0x56bb71:0x155,_0x61107:0x2d3,_0x17b715:0x2e9,_0x16f109:0x358,_0x15a508:0x392,_0x669b29:0x222,_0x121c4b:0x1de,_0x99409e:0x117,_0x2a6ba7:0x1d4,_0x196b7a:0x1e8,_0x443430:0x348,_0x18253e:0x1c8,_0x58d95b:0x229,_0x294487:0x1a6,_0x5ada75:0x1f1,_0x523e67:0x12d,_0x3ea576:0x15c,_0x5de131:0x291,_0x2b1465:0x30e,_0x106a9d:0x2bc,_0x1c988d:0x34f,_0x52edf2:0x213,_0x2c266b:0x142,_0x510ead:0x2bf,_0x3029b0:0x1e8,_0x4e2862:0x227,_0x5cf30e:0x258,_0x18c78d:0x273,_0xc66cd9:0x370,_0x2db7ce:0x322,_0xd8b012:0x344,_0x1c9f9e:0x18d,_0x4120a0:0x177,_0xc82891:0xaa,_0x46168e:0x1fd,_0xf870eb:0x266,_0x11730d:0x1bd,_0x2849ed:0x22c,_0x5f1381:0x384,_0x579a17:0x325,_0xbe477d:0x33f,_0x3b56df:0x1e3,_0x7bd42:0x147,_0x35d7e2:0x102,_0x417891:0x1d7,_0x4cfae8:0x2a1,_0x831c67:0xc4,_0x22664e:0x1ea,_0x5ddc16:0x260,_0x3d54d7:0x2b2,_0x262671:0x313,_0x51dcb0:0x251,_0x1eb6b6:0x25d,_0xe261cf:0x355,_0x75a79c:0x2a5,_0x6faea3:0x2dd,_0x3f89f4:0x32e,_0x1d2a51:0x25a,_0x3f5ee8:0x1b6,_0x2ae680:0x23a,_0x55011d:0x289,_0x4a8d1a:0x235,_0xbd0a55:0x2c1,_0x357872:0x34b,_0x5e019b:0x29c,_0x5941d2:0x31d,_0x3ec9d9:0x200,_0x4a873b:0x22c,_0x5a404c:0x213,_0x19f658:0x216,_0x243716:0x2a5,_0xc6943c:0x329,_0x3adbc3:0x373,_0x4c4e68:0x187,_0x49563f:0xea,_0x52ca59:0x2ea,_0x275d54:0x33b,_0x35c1d7:0x417,_0x3f6d8c:0x186,_0x4585f7:0x1fe,_0x5bff4b:0x3a5,_0x39cba2:0x33b,_0x32db42:0x3dc,_0x2b8629:0x269,_0x254ed4:0x1ca,_0xeff962:0x1cc,_0x5d5535:0x136,_0x2502d8:0x272,_0x4812db:0x1f7,_0x48ff16:0x1b8,_0x44eca5:0x308,_0xe6b2fb:0x1ff,_0x3745bf:0x1c4,_0x15fcdf:0x257,_0x5eed5e:0x2a5,_0x215b5:0x2b2,_0xf56a6d:0x1b6,_0x3679fa:0x176,_0x35b3ac:0x1e4,_0x110143:0x175,_0x296fa2:0x1fa,_0x236d9e:0x2be,_0x27ad8b:0x2b2,_0x5552be:0x207,_0x28b391:0x1ec,_0x382fd9:0x31d,_0xf4fed9:0x2cb,_0x4b7327:0x38a,_0x36ad4a:0x3e7,_0x49b6e0:0x2fa,_0x1c6393:0x3b3,_0x3b675f:0x304,_0x428e5c:0x25d,_0x14b03c:0x3c4,_0x4973f2:0x343,_0x84f1d1:0x40c,_0x47cb56:0x1d8,_0x31afaa:0x211,_0x81ff34:0xfd,_0x51beeb:0x311,_0xd7f0c7:0x21b,_0x2f6bc9:0x1a4,_0x91c927:0x1bf,_0x3f9b1f:0x275,_0x457afc:0x225,_0x172ff7:0x1e9,_0x28a35e:0x212,_0x51a538:0x2ab,_0x2ce370:0x2ef,_0x13d206:0x24a,_0x539103:0x226,_0x34856f:0x189,_0x96bd5c:0x20a,_0x410521:0x1b6,_0x144d5d:0x1f6,_0x20f146:0x1d0,_0x569b60:0xe9,_0x191572:0x125,_0x2eed1f:0x27c,_0x3b1591:0x393,_0x22ef05:0x334,_0x46e468:0x198,_0x41a6f1:0x25b,_0x101701:0x325,_0x2402b1:0x335,_0x3dd9f7:0x3e6,_0x186f1b:0x389,_0x221e7e:0x41e,_0x32e464:0x2ae,_0x51143c:0x2d7,_0x5bfa2f:0x140,_0x39f6df:0x16e,_0xafdf6:0x280,_0x2e00b1:0x360,_0x395477:0x3bc,_0x50c488:0x42b,_0x2864f7:0x316,_0x4b6efa:0x31b,_0x28900b:0x341,_0x13e025:0x28a,_0x2b5e42:0x32e,_0x28f23f:0x234,_0x1c6b60:0x299,_0xccc3bf:0x2a5,_0x4b903b:0x26c,_0x5e9d49:0x208,_0x30c776:0x2af,_0x518812:0x332,_0x40009a:0x29b,_0x348a17:0x302,_0x4ec9f1:0x200,_0x161b6f:0x261,_0x7c5055:0x1f8,_0x20377a:0x29c,_0x246403:0x3b7,_0x182ae7:0x166,_0x2be61d:0x1df,_0x420cc3:0x1f0,_0x42c7c9:0x43a,_0xca30c6:0x398,_0x22a944:0x3ed,_0x1a65a8:0x210,_0x3680ba:0x2ba,_0x5383d6:0x17e,_0x1777c8:0x16d,_0x8d6e8c:0x12f,_0x924a0f:0x243,_0x19dc23:0x1ef,_0x330d7f:0x1c1,_0x3b82fc:0x232,_0xb60d08:0x364,_0x2b0e5c:0x314,_0x13daf1:0x147,_0x4d2523:0x10b,_0x4fef16:0xc6,_0x483dc6:0x104,_0x414309:0x266,_0x2b9e6d:0x138,_0x4a661d:0x24c,_0x1cd28f:0x334,_0x2059eb:0x2e6,_0x2a5bc8:0x35e,_0x175bda:0x325,_0x58e894:0x323,_0x145482:0x241,_0x55ef58:0x1a2,_0x5685ed:0x168,_0x1205a3:0x16c,_0x4c81ee:0x13f,_0x48f6b0:0x217,_0x2facf7:0x214,_0x2e17ce:0x325,_0x50ffec:0x3da,_0x357a94:0x241,_0x3d1cbe:0x200,_0x4cf0e6:0x182,_0x540a1d:0x1f8,_0x95357b:0x18e,_0x582466:0x28b,_0x2e85bc:0x363,_0x7be013:0x21f,_0x57084a:0x3e8,_0x5bf88b:0x15f,_0x12be20:0x2a8,_0x165d06:0x26f,_0x5301a6:0x1ee,_0x4c3fc8:0x266,_0x4c15be:0x350,_0x572cb6:0x30b,_0x40bc3d:0x39f,_0x4573ea:0x5e,_0x5b84b4:0x112,_0x657a1c:0x360,_0x194e79:0x325,_0x6565dc:0x317,_0x3f947d:0x179,_0x3b6fb9:0x177,_0x17f97f:0x31c,_0x55bfa5:0x30e,_0x1fb975:0x319,_0x1eafbd:0x3f9,_0x318074:0x325,_0x22d845:0xe0,_0x384fae:0x1e2,_0x42c441:0x115,_0x3d3ef4:0x128,_0x485163:0xfc,_0x56b101:0x2bc,_0x1bb9af:0x299,_0x31b0a1:0x27f,_0x101c29:0x3d2,_0x4e55d6:0x23a,_0x3ac923:0x336,_0x4d5be0:0x290,_0x1d7f8f:0x356,_0x4a9dc0:0x319,_0x63a093:0x287,_0x398390:0x24b,_0x34f3eb:0x2d9,_0x1133aa:0x26e,_0x1c55c9:0x1c5,_0x2069bd:0x2ce,_0x171c6a:0x24c,_0x1d172a:0x12a,_0x52fca3:0x15f,_0xb3e478:0x133,_0x5700f0:0x180,_0x194ac6:0x214,_0x209a0c:0x6e,_0x4e8918:0x123,_0x523843:0x6f,_0x83217b:0x294,_0x499d59:0x2aa,_0x4e388c:0x29d,_0x394f02:0x2d5,_0x41a2ad:0x1f9,_0x489b8a:0x1be,_0x220877:0x66,_0x77c390:0x138,_0x75de9e:0x271,_0x31ee05:0xf5};function _0xdc73fe(_0x37fa54,_0x5988a1,_0x3f0de3,_0x48205f){return _0xc7d8a6(_0x37fa54-0x1b1,_0x48205f,_0x3f0de3-0xe1,_0x3f0de3-0x37e);}switch(_0x147ac3){case _0xdc73fe(0x225,0x292,0x2d4,0x27f):{const _0x99bf84=typeof _0x59c8de[_0xdc73fe(0x2cf,0x265,0x325,_0x42d1ca._0x35fd09)]==='number'?_0x59c8de[_0xdc73fe(_0x42d1ca._0x24cc0e,0x3b0,0x325,0x2c7)]:0x0,_0x3a5b69=typeof _0x59c8de['delta']===_0x558f7b(_0x42d1ca._0x70b464,0x198,_0x42d1ca._0xb7b606,0xcc)?_0x59c8de[_0x558f7b(0x9a,0xfd,0x147,_0x42d1ca._0x3a8ee3)]:'';if(_0x3a5b69[_0xdc73fe(0x36d,_0x42d1ca._0x19f2f7,_0x42d1ca._0x175f7c,_0x42d1ca._0x23f54f)]>0x0){const _0x572c86=this['responseTextParts'][_0x558f7b(0x292,_0x42d1ca._0x1b1b02,_0x42d1ca._0x4fafe1,_0x42d1ca._0x436588)](_0x99bf84)??[];return _0x572c86[_0xdc73fe(0x26f,0x168,0x1b1,0x13d)](_0x3a5b69),this[_0x558f7b(_0x42d1ca._0x1cfeb7,_0x42d1ca._0x33aa62,_0x42d1ca._0x317923,_0x42d1ca._0x51e352)][_0x558f7b(_0x42d1ca._0x14d0f4,_0x42d1ca._0x362db6,0x2bf,0x377)](_0x99bf84,_0x572c86),[{'type':_0x558f7b(_0x42d1ca._0x531b46,0x2d2,0x275,_0x42d1ca._0x2837b6),'index':_0x99bf84,'text':_0x3a5b69}];}break;}case _0xdc73fe(0x1d4,0x23a,_0x42d1ca._0x476d69,0x201):{const _0x3adf22=typeof _0x59c8de[_0x558f7b(_0x42d1ca._0x270d91,_0x42d1ca._0x43dae9,_0x42d1ca._0x2b3d91,_0x42d1ca._0x239c27)]===_0xdc73fe(_0x42d1ca._0x3ed9ca,0x227,_0x42d1ca._0x1e3ec0,_0x42d1ca._0x5bf958)?_0x59c8de['output_index']:void 0x0,_0x39ce83=_0x59c8de['item'];if(_0x39ce83?.[_0x558f7b(0x1bb,_0x42d1ca._0x98914a,_0x42d1ca._0x10d56a,_0x42d1ca._0x277ac5)]===_0x558f7b(_0x42d1ca._0x556682,0x2e4,_0x42d1ca._0x19cbd1,_0x42d1ca._0x2ce103)&&_0x39ce83[_0xdc73fe(_0x42d1ca._0xc1f407,0x208,_0x42d1ca._0x4e0bed,0x1e2)]&&_0x39ce83[_0x558f7b(0x17c,0x100,_0x42d1ca._0x56bb71,0x219)])return this[_0xdc73fe(_0x42d1ca._0x61107,0x1f4,0x210,_0x42d1ca._0x17b715)][_0xdc73fe(_0x42d1ca._0x16f109,_0x42d1ca._0x15a508,0x348,0x401)](_0x39ce83[_0xdc73fe(0x32a,0x25b,_0x42d1ca._0x4e0bed,0x1fa)],{'id':_0x39ce83['call_id'],'type':'function','function':{'name':_0x39ce83[_0xdc73fe(0x1ba,_0x42d1ca._0x669b29,_0x42d1ca._0x121c4b,_0x42d1ca._0x99409e)],'arguments':''}}),_0x3adf22!==void 0x0&&(this['outputIndexToCallId']['set'](_0x3adf22,_0x39ce83['call_id']),this[_0x558f7b(0x12b,0x1a6,_0x42d1ca._0x2a6ba7,_0x42d1ca._0x196b7a)][_0xdc73fe(0x268,0x383,_0x42d1ca._0x443430,0x2cf)](_0x39ce83['call_id'],_0x3adf22)),[{'type':_0x558f7b(_0x42d1ca._0x18253e,0x19a,0x18b,_0x42d1ca._0x58d95b),'id':_0x39ce83['call_id'],'index':_0x3adf22??0x0,'name':_0x39ce83[_0x558f7b(_0x42d1ca._0x294487,_0x42d1ca._0x5ada75,0x155,_0x42d1ca._0x58d95b)]}];if(_0x39ce83?.[_0x558f7b(0x190,_0x42d1ca._0x523e67,0x1ec,_0x42d1ca._0x3ea576)]===_0x558f7b(_0x42d1ca._0x5de131,0x2b4,0x2cb,_0x42d1ca._0x2b1465)&&_0x39ce83['id']){const _0x37855b=this[_0x558f7b(0x27a,0x24f,_0x42d1ca._0x106a9d,_0x42d1ca._0x1c988d)](_0x39ce83['id'],_0x3adf22);_0x3adf22!==void 0x0&&this[_0x558f7b(_0x42d1ca._0x52edf2,0x19f,0x16c,_0x42d1ca._0x2c266b)][_0x558f7b(0x2df,0x2a4,_0x42d1ca._0x510ead,0x23e)](_0x3adf22,_0x37855b['id']);}break;}case _0x558f7b(_0x42d1ca._0x3029b0,0x27b,0x19e,0x1eb):{const _0x5c51a3=typeof _0x59c8de[_0xdc73fe(0x233,0x347,0x2be,0x356)]===_0xdc73fe(_0x42d1ca._0x4e2862,_0x42d1ca._0x5cf30e,0x1b6,_0x42d1ca._0x18c78d)?_0x59c8de[_0xdc73fe(_0x42d1ca._0xc66cd9,_0x42d1ca._0x2db7ce,_0x42d1ca._0x4e0bed,_0x42d1ca._0xd8b012)]:typeof _0x59c8de['output_index']===_0x558f7b(0x1d7,_0x42d1ca._0x1c9f9e,_0x42d1ca._0x4120a0,_0x42d1ca._0xc82891)?this[_0x558f7b(_0x42d1ca._0x46168e,_0x42d1ca._0xf870eb,0x1ce,_0x42d1ca._0x11730d)][_0xdc73fe(0x2b6,0x242,0x2a5,_0x42d1ca._0x2849ed)](_0x59c8de[_0xdc73fe(0x2b9,_0x42d1ca._0x5f1381,_0x42d1ca._0x579a17,_0x42d1ca._0xbe477d)]):void 0x0,_0x548710=typeof _0x59c8de[_0x558f7b(_0x42d1ca._0x3b56df,0x1f6,_0x42d1ca._0x7bd42,0x186)]==='string'?_0x59c8de[_0xdc73fe(_0x42d1ca._0x35d7e2,0x278,0x1d0,0x138)]:'',_0x5ef15e=_0x5c51a3?this['toolCalls'][_0xdc73fe(0x377,0x35c,0x2a5,_0x42d1ca._0x417891)](_0x5c51a3):void 0x0;if(_0x5ef15e&&_0x548710[_0x558f7b(_0x42d1ca._0x4cfae8,0x35a,0x2cd,0x2c6)]>0x0)return _0x5ef15e[_0x558f7b(_0x42d1ca._0x831c67,0x21c,0x175,_0x42d1ca._0x22664e)][_0x558f7b(0x225,_0x42d1ca._0x5ddc16,_0x42d1ca._0x3d54d7,0x2c9)]+=_0x548710,[{'type':'tool_use_delta','id':_0x5ef15e['id'],'index':this[_0xdc73fe(_0x42d1ca._0x262671,_0x42d1ca._0x51dcb0,_0x42d1ca._0x1eb6b6,0x237)][_0xdc73fe(_0x42d1ca._0xe261cf,0x355,_0x42d1ca._0x75a79c,0x249)](_0x5ef15e['id'])??(typeof _0x59c8de[_0xdc73fe(0x2e9,_0x42d1ca._0x6faea3,0x325,0x361)]==='number'?_0x59c8de[_0xdc73fe(0x24b,0x2ba,_0x42d1ca._0x579a17,_0x42d1ca._0x3f89f4)]:0x0),'inputDelta':_0x548710}];break;}case'response.function_call_arguments.done':{const _0x112e16=typeof _0x59c8de[_0xdc73fe(0x1e4,0x21e,0x2be,_0x42d1ca._0x1d2a51)]===_0xdc73fe(0x174,0x133,_0x42d1ca._0x3f5ee8,_0x42d1ca._0x2849ed)?_0x59c8de[_0x558f7b(_0x42d1ca._0x2ae680,_0x42d1ca._0x55011d,_0x42d1ca._0x4a8d1a,_0x42d1ca._0xbd0a55)]:typeof _0x59c8de[_0x558f7b(0x27f,_0x42d1ca._0x357872,_0x42d1ca._0x5e019b,_0x42d1ca._0x5941d2)]===_0xdc73fe(0x1d6,0x185,_0x42d1ca._0x3ec9d9,_0x42d1ca._0x4a873b)?this[_0x558f7b(0x264,0xf7,0x1ce,_0x42d1ca._0x5a404c)][_0xdc73fe(0x355,_0x42d1ca._0x19f658,_0x42d1ca._0x243716,0x25e)](_0x59c8de[_0xdc73fe(_0x42d1ca._0xc6943c,_0x42d1ca._0x3adbc3,0x325,0x2d7)]):void 0x0,_0x290627=_0x112e16?this[_0x558f7b(0x169,0x1c9,_0x42d1ca._0x4c4e68,_0x42d1ca._0x49563f)]['get'](_0x112e16):void 0x0;_0x290627&&typeof _0x59c8de[_0xdc73fe(0x30a,_0x42d1ca._0x52ca59,_0x42d1ca._0x275d54,_0x42d1ca._0x35c1d7)]===_0x558f7b(0x6f,0x10a,_0x42d1ca._0xb7b606,0x5e)&&(_0x290627[_0xdc73fe(_0x42d1ca._0x3f6d8c,0x2a2,_0x42d1ca._0x4585f7,0x15c)][_0xdc73fe(0x3aa,_0x42d1ca._0x5bff4b,_0x42d1ca._0x39cba2,_0x42d1ca._0x32db42)]=_0x59c8de['arguments']);break;}case _0x558f7b(_0x42d1ca._0x2b8629,_0x42d1ca._0x254ed4,0x1ad,_0x42d1ca._0xeff962):{const _0xa0360b=typeof _0x59c8de['output_index']===_0x558f7b(_0x42d1ca._0x5d5535,0x242,_0x42d1ca._0x4120a0,_0x42d1ca._0x270d91)?_0x59c8de[_0x558f7b(0x33b,_0x42d1ca._0x2502d8,_0x42d1ca._0x2b3d91,0x258)]:void 0x0,_0x46ff7a=_0x59c8de[_0x558f7b(_0x42d1ca._0x4812db,0x258,_0x42d1ca._0x48ff16,0x22b)];if(_0x46ff7a?.[_0xdc73fe(_0x42d1ca._0x44eca5,_0x42d1ca._0xe6b2fb,0x275,0x325)]==='function_call'){const _0x295f08=_0x46ff7a[_0x558f7b(_0x42d1ca._0x17b715,0x22f,0x235,0x202)]??(_0xa0360b!==void 0x0?this[_0xdc73fe(_0x42d1ca._0x3745bf,0x297,_0x42d1ca._0x15fcdf,0x1ca)][_0xdc73fe(0x243,0x312,_0x42d1ca._0x5eed5e,0x30e)](_0xa0360b):void 0x0),_0x220b2e=_0x295f08?this[_0xdc73fe(0x2b4,0x186,0x210,0x228)][_0xdc73fe(0x356,0x310,0x2a5,0x31e)](_0x295f08):void 0x0;_0x220b2e&&typeof _0x46ff7a[_0x558f7b(0x1eb,0x30c,_0x42d1ca._0x215b5,0x32f)]===_0xdc73fe(0x191,0x108,_0x42d1ca._0xf56a6d,0x169)&&(_0x220b2e[_0x558f7b(_0x42d1ca._0x3679fa,_0x42d1ca._0x35b3ac,_0x42d1ca._0x110143,_0x42d1ca._0x296fa2)][_0x558f7b(_0x42d1ca._0x236d9e,0x328,_0x42d1ca._0x27ad8b,0x347)]=_0x46ff7a['arguments']);break;}if(_0x46ff7a?.[_0x558f7b(0x1b4,_0x42d1ca._0x5552be,_0x42d1ca._0x28b391,0x217)]===_0x558f7b(0x274,_0x42d1ca._0x382fd9,_0x42d1ca._0xf4fed9,_0x42d1ca._0x4b7327)&&_0x46ff7a['id']){const _0x4aac89=this[_0xdc73fe(_0x42d1ca._0x36ad4a,0x3db,0x345,_0x42d1ca._0x49b6e0)](_0x46ff7a['id'],_0xa0360b);typeof _0x46ff7a[_0xdc73fe(0x3c3,_0x42d1ca._0x1c6393,0x340,_0x42d1ca._0x3b675f)]===_0xdc73fe(0x17e,0x226,0x1b6,0xff)&&(_0x4aac89[_0xdc73fe(_0x42d1ca._0x428e5c,_0x42d1ca._0x14b03c,_0x42d1ca._0x4973f2,_0x42d1ca._0x84f1d1)]=_0x46ff7a[_0x558f7b(_0x42d1ca._0x47cb56,0x343,0x2b7,_0x42d1ca._0x31afaa)]);if(Array[_0x558f7b(_0x42d1ca._0x81ff34,0x11e,0x14f,0xb9)](_0x46ff7a['summary']))for(let _0xbe32b2=0x0;_0xbe32b2<_0x46ff7a['summary']['length'];_0xbe32b2+=0x1){const _0x143535=_0x46ff7a[_0x558f7b(0x1d2,_0x42d1ca._0x51beeb,0x257,_0x42d1ca._0xd7f0c7)][_0xbe32b2];_0x143535[_0xdc73fe(_0x42d1ca._0x2f6bc9,_0x42d1ca._0x91c927,_0x42d1ca._0x3f9b1f,0x313)]===_0x558f7b(_0x42d1ca._0x457afc,0x24a,0x1ba,0x176)&&typeof _0x143535[_0xdc73fe(_0x42d1ca._0x172ff7,0x1e3,_0x42d1ca._0x28a35e,_0x42d1ca._0x51a538)]==='string'&&_0x4aac89[_0xdc73fe(0x33c,0x323,0x313,0x339)][_0xdc73fe(0x419,_0x42d1ca._0x2ce370,0x348,0x2fb)](_0xbe32b2,_0x143535[_0x558f7b(0x1a8,_0x42d1ca._0x13d206,0x189,0xd5)]);}typeof _0x46ff7a[_0x558f7b(0x21c,_0x42d1ca._0x539103,_0x42d1ca._0x34856f,_0x42d1ca._0x96bd5c)]===_0xdc73fe(0xd0,0x1af,_0x42d1ca._0x410521,0xf9)&&_0x4aac89[_0x558f7b(_0x42d1ca._0x5cf30e,0x23e,_0x42d1ca._0x144d5d,0x110)][_0xdc73fe(0x425,0x349,0x348,0x28f)](0x0,_0x46ff7a['text']);}break;}case'response.reasoning_summary_text.delta':{const _0x3e1f53=typeof _0x59c8de[_0xdc73fe(_0x42d1ca._0x3ea576,0x104,_0x42d1ca._0x20f146,0x268)]===_0xdc73fe(_0x42d1ca._0x569b60,0x1e6,0x1b6,0x276)?_0x59c8de[_0xdc73fe(0x291,_0x42d1ca._0x191572,0x1d0,0x188)]:'',_0xc23647=typeof _0x59c8de[_0x558f7b(0x379,0x31d,_0x42d1ca._0x51a538,0x37d)]===_0xdc73fe(_0x42d1ca._0x2eed1f,0x192,0x1b6,0x125)?_0x59c8de[_0xdc73fe(0x264,_0x42d1ca._0x3b1591,_0x42d1ca._0x22ef05,0x36a)]:typeof _0x59c8de['output_index']===_0x558f7b(0x198,0xc4,_0x42d1ca._0x4120a0,_0x42d1ca._0x46e468)?this['outputIndexToReasoningId'][_0xdc73fe(0x229,0x2fc,0x2a5,0x314)](_0x59c8de[_0xdc73fe(0x2ea,_0x42d1ca._0x41a6f1,_0x42d1ca._0x101701,0x38b)]):void 0x0,_0x3d4c10=typeof _0x59c8de[_0xdc73fe(_0x42d1ca._0x2402b1,0x2e0,0x325,0x349)]==='number'?_0x59c8de[_0xdc73fe(_0x42d1ca._0x3dd9f7,0x3cd,0x325,_0x42d1ca._0x186f1b)]:0x0,_0x55580a=typeof _0x59c8de[_0xdc73fe(_0x42d1ca._0x221e7e,_0x42d1ca._0x32e464,0x360,_0x42d1ca._0x51143c)]===_0xdc73fe(_0x42d1ca._0x3b56df,_0x42d1ca._0x5bfa2f,0x200,_0x42d1ca._0x39f6df)?_0x59c8de[_0xdc73fe(0x2ce,_0x42d1ca._0xafdf6,_0x42d1ca._0x2e00b1,_0x42d1ca._0x395477)]:0x0;if(_0xc23647&&_0x3e1f53[_0xdc73fe(_0x42d1ca._0x50c488,0x2e6,0x356,_0x42d1ca._0x2864f7)]>0x0){const _0x31cf3c=this['getOrCreateReasoningItem'](_0xc23647,_0x3d4c10);_0x31cf3c[_0x558f7b(_0x42d1ca._0x4b6efa,_0x42d1ca._0x28900b,_0x42d1ca._0x13e025,_0x42d1ca._0x2b5e42)]['set'](_0x55580a,''+(_0x31cf3c[_0x558f7b(0x2cf,_0x42d1ca._0x28f23f,_0x42d1ca._0x13e025,_0x42d1ca._0x1c6b60)][_0xdc73fe(0x1ef,0x1fa,_0x42d1ca._0xccc3bf,0x298)](_0x55580a)??'')+_0x3e1f53);if(isUserVisibleReasoning(this[_0xdc73fe(_0x42d1ca._0x4b903b,0x13d,_0x42d1ca._0x5e9d49,0x1f2)]))return[{'type':_0xdc73fe(0x236,_0x42d1ca._0x30c776,_0x42d1ca._0x106a9d,_0x42d1ca._0x518812),'delta':_0x3e1f53,'itemId':_0xc23647,'outputIndex':_0x3d4c10,'summaryIndex':_0x55580a}];}break;}case _0x558f7b(0x309,0x377,0x2ac,0x267):{const _0x27b263=typeof _0x59c8de[_0xdc73fe(0x318,0x409,0x334,0x418)]==='string'?_0x59c8de[_0x558f7b(0x36f,_0x42d1ca._0x33aa62,_0x42d1ca._0x51a538,_0x42d1ca._0x40009a)]:typeof _0x59c8de[_0xdc73fe(_0x42d1ca._0x348a17,0x35e,_0x42d1ca._0x101701,0x34b)]===_0xdc73fe(0x181,0x2b3,_0x42d1ca._0x4ec9f1,_0x42d1ca._0x161b6f)?this['outputIndexToReasoningId'][_0xdc73fe(0x301,_0x42d1ca._0x2b5e42,0x2a5,_0x42d1ca._0x7c5055)](_0x59c8de[_0x558f7b(0x20d,0x246,_0x42d1ca._0x20377a,0x1fe)]):void 0x0,_0x181a52=typeof _0x59c8de[_0xdc73fe(0x3eb,_0x42d1ca._0x246403,0x325,0x39e)]===_0xdc73fe(_0x42d1ca._0x182ae7,0x15e,0x200,_0x42d1ca._0x2be61d)?_0x59c8de[_0x558f7b(_0x42d1ca._0x420cc3,_0x42d1ca._0x3b675f,0x29c,0x2fd)]:0x0,_0x29f8bf=typeof _0x59c8de[_0xdc73fe(_0x42d1ca._0x42c7c9,_0x42d1ca._0xca30c6,0x360,_0x42d1ca._0x22a944)]===_0xdc73fe(_0x42d1ca._0x1a65a8,0x273,0x200,_0x42d1ca._0xf4fed9)?_0x59c8de[_0x558f7b(0x359,0x33d,_0x42d1ca._0x51143c,_0x42d1ca._0x3680ba)]:0x0,_0x4dbbfa=typeof _0x59c8de[_0x558f7b(_0x42d1ca._0x5383d6,0x152,0x189,0x24b)]===_0x558f7b(_0x42d1ca._0x1777c8,_0x42d1ca._0x3679fa,0x12d,_0x42d1ca._0x8d6e8c)?_0x59c8de[_0x558f7b(_0x42d1ca._0x924a0f,_0x42d1ca._0x19dc23,0x189,_0x42d1ca._0x330d7f)]:'';_0x27b263&&this[_0x558f7b(_0x42d1ca._0x3b82fc,0x308,0x2bc,0x2a7)](_0x27b263,_0x181a52)['summaryByIndex'][_0xdc73fe(_0x42d1ca._0xb60d08,_0x42d1ca._0x2b0e5c,_0x42d1ca._0x443430,0x3e1)](_0x29f8bf,_0x4dbbfa);break;}case _0xdc73fe(_0x42d1ca._0x13daf1,0x2d3,0x1ed,_0x42d1ca._0x4d2523):{const _0x4aa66c=typeof _0x59c8de[_0x558f7b(_0x42d1ca._0x4fef16,0x129,0x147,_0x42d1ca._0x483dc6)]===_0xdc73fe(0x26a,_0x42d1ca._0x414309,0x1b6,_0x42d1ca._0x2b9e6d)?_0x59c8de[_0xdc73fe(0x18e,0x23e,0x1d0,_0x42d1ca._0x4a661d)]:'',_0x201292=typeof _0x59c8de[_0xdc73fe(0x2f1,0x39c,_0x42d1ca._0x1cd28f,_0x42d1ca._0x2059eb)]==='string'?_0x59c8de['item_id']:typeof _0x59c8de[_0xdc73fe(_0x42d1ca._0x2a5bc8,0x315,_0x42d1ca._0x175bda,_0x42d1ca._0x58e894)]===_0xdc73fe(_0x42d1ca._0x145482,_0x42d1ca._0x46168e,_0x42d1ca._0x1e3ec0,0x13c)?this[_0x558f7b(_0x42d1ca._0x55ef58,_0x42d1ca._0x5685ed,_0x42d1ca._0x1205a3,_0x42d1ca._0x4c81ee)][_0xdc73fe(0x1d3,0x2e9,_0x42d1ca._0x5eed5e,_0x42d1ca._0x48f6b0)](_0x59c8de['output_index']):void 0x0,_0x4b7c02=typeof _0x59c8de[_0x558f7b(0x307,0x21f,_0x42d1ca._0x20377a,_0x42d1ca._0x2facf7)]==='number'?_0x59c8de[_0xdc73fe(_0x42d1ca._0xafdf6,0x298,_0x42d1ca._0x2e17ce,_0x42d1ca._0x50ffec)]:0x0,_0x306d79=typeof _0x59c8de[_0xdc73fe(0x2de,0x221,0x239,_0x42d1ca._0x46168e)]===_0xdc73fe(_0x42d1ca._0x357a94,0x1f6,_0x42d1ca._0x3d1cbe,0x28c)?_0x59c8de[_0x558f7b(_0x42d1ca._0x4cf0e6,_0x42d1ca._0x540a1d,0x1b0,_0x42d1ca._0x95357b)]:0x0;if(_0x201292&&_0x4aa66c['length']>0x0){const _0xdf58df=this[_0xdc73fe(_0x42d1ca._0x582466,0x31b,_0x42d1ca._0x239c27,_0x42d1ca._0x2e85bc)](_0x201292,_0x4b7c02);_0xdf58df[_0x558f7b(0x1de,_0x42d1ca._0x7be013,0x1f6,0x2a8)][_0xdc73fe(0x391,0x2c9,0x348,_0x42d1ca._0x57084a)](_0x306d79,''+(_0xdf58df[_0x558f7b(_0x42d1ca._0x5bf88b,_0x42d1ca._0x12be20,0x1f6,_0x42d1ca._0x165d06)][_0xdc73fe(0x316,0x277,0x2a5,0x301)](_0x306d79)??'')+_0x4aa66c);if(isUserVisibleReasoning(this[_0xdc73fe(0x2e4,_0x42d1ca._0x5301a6,0x208,0x1a7)]))return[{'type':'openai_reasoning_delta','contentIndex':_0x306d79,'delta':_0x4aa66c,'itemId':_0x201292,'outputIndex':_0x4b7c02}];}break;}case _0xdc73fe(_0x42d1ca._0x4c3fc8,_0x42d1ca._0x4c15be,0x2d7,_0x42d1ca._0xd8b012):{const _0x16dc30=typeof _0x59c8de[_0xdc73fe(0x3a0,_0x42d1ca._0x572cb6,0x334,_0x42d1ca._0x40bc3d)]===_0x558f7b(_0x42d1ca._0x4573ea,0x7e,0x12d,_0x42d1ca._0x5b84b4)?_0x59c8de[_0x558f7b(_0x42d1ca._0x5eed5e,0x333,0x2ab,_0x42d1ca._0x657a1c)]:typeof _0x59c8de[_0xdc73fe(0x2a5,0x244,_0x42d1ca._0x194e79,_0x42d1ca._0x6565dc)]===_0x558f7b(_0x42d1ca._0x3f947d,0x1a4,_0x42d1ca._0x3b6fb9,0x194)?this[_0x558f7b(0x131,0x185,0x16c,_0x42d1ca._0x13daf1)]['get'](_0x59c8de['output_index']):void 0x0,_0x1dcff3=typeof _0x59c8de[_0xdc73fe(_0x42d1ca._0x17f97f,_0x42d1ca._0x55bfa5,0x325,_0x42d1ca._0x1fb975)]==='number'?_0x59c8de[_0xdc73fe(0x315,_0x42d1ca._0x1eafbd,_0x42d1ca._0x318074,0x292)]:0x0,_0x351149=typeof _0x59c8de[_0x558f7b(_0x42d1ca._0x22d845,_0x42d1ca._0x384fae,0x1b0,_0x42d1ca._0x42c441)]===_0xdc73fe(_0x42d1ca._0x3d3ef4,0x2e4,0x200,0x1df)?_0x59c8de[_0x558f7b(0x239,0x152,0x1b0,_0x42d1ca._0x485163)]:0x0,_0x308d92=typeof _0x59c8de['text']==='string'?_0x59c8de['text']:'';_0x16dc30&&this[_0x558f7b(0x370,_0x42d1ca._0xc1f407,_0x42d1ca._0x56b101,_0x42d1ca._0x1bb9af)](_0x16dc30,_0x1dcff3)[_0xdc73fe(0x306,_0x42d1ca._0xbe477d,_0x42d1ca._0x31b0a1,0x307)][_0xdc73fe(0x2b4,_0x42d1ca._0x101c29,0x348,0x2fb)](_0x351149,_0x308d92);break;}case _0xdc73fe(_0x42d1ca._0x4e55d6,_0x42d1ca._0x3ac923,_0x42d1ca._0x4d5be0,_0x42d1ca._0x1d7f8f):{this['finalResponse']=_0x59c8de[_0xdc73fe(0x367,_0x42d1ca._0x4a9dc0,_0x42d1ca._0x63a093,0x313)];break;}case _0xdc73fe(_0x42d1ca._0x398390,_0x42d1ca._0x34f3eb,0x2ec,_0x42d1ca._0x1133aa):{const _0x365a21=_0x59c8de[_0x558f7b(0x127,_0x42d1ca._0x2a6ba7,0x1fe,_0x42d1ca._0x1c55c9)];throw new ProviderStreamEventError(_0x365a21?.[_0xdc73fe(0x2e2,0x2fc,0x29d,0x2da)]?.[_0x558f7b(_0x42d1ca._0x2069bd,0x2d1,_0x42d1ca._0x171c6a,0x30f)]??_0x558f7b(0x155,_0x42d1ca._0x1d172a,_0x42d1ca._0x52fca3,0x191),{'code':_0x365a21?.[_0x558f7b(_0x42d1ca._0xb3e478,_0x42d1ca._0x5700f0,_0x42d1ca._0x194ac6,0x223)]?.[_0x558f7b(_0x42d1ca._0x209a0c,0x1b2,_0x42d1ca._0x4e8918,_0x42d1ca._0x523843)],'retryable':!![]});}case _0xdc73fe(_0x42d1ca._0x83217b,_0x42d1ca._0x499d59,_0x42d1ca._0x4e388c,_0x42d1ca._0x510ead):{const _0x182e37=_0x59c8de['error'];throw new ProviderStreamEventError(_0x182e37?.[_0xdc73fe(0x2cd,0x209,_0x42d1ca._0x394f02,_0x42d1ca._0x41a2ad)]??_0x558f7b(0xb8,_0x42d1ca._0x489b8a,0x15f,0x230),{'code':_0x182e37?.[_0x558f7b(_0x42d1ca._0x220877,0x6d,_0x42d1ca._0x4e8918,0x1d6)],'retryable':!![],'status':typeof _0x59c8de[_0x558f7b(_0x42d1ca._0x77c390,_0x42d1ca._0x277ac5,_0x42d1ca._0x1a65a8,_0x42d1ca._0x75de9e)]===_0x558f7b(0x9d,0x229,_0x42d1ca._0x3b6fb9,_0x42d1ca._0x31ee05)?_0x59c8de['status']:void 0x0});}}function _0x558f7b(_0x4e5f1e,_0x3647bd,_0x4beab9,_0x3e7e3f){return _0x74a064(_0x4e5f1e-0x10c,_0x3647bd-0xc5,_0x4beab9-0x1a3,_0x3647bd);}return[];}['buildPartialOutput'](){const _0x4ea64e={_0x2d98a8:0x12c,_0x504c96:0x13f,_0x141a8e:0x59f,_0x3a0e92:0x568,_0x24313c:0x59b,_0xb00b5c:0x552,_0x4d70aa:0x445,_0x4531aa:0x553,_0x4a09dc:0x518,_0x4ecd09:0x5d9,_0x2f88dd:0x57d,_0xfbaa49:0x4bd,_0x4fb30c:0x1c8,_0x3cb1c3:0x1ca,_0x2802af:0x219,_0x535953:0x158,_0x243eb7:0xdd,_0x53f779:0x576,_0x4f3680:0x4f8,_0x49a28c:0x61c,_0x26b9a3:0x5ad,_0x4af47f:0x5ab,_0x172bb3:0x6,_0xc56583:0x562,_0x58bc01:0xe8,_0x641e20:0x104,_0x2268bf:0xc5,_0x26295b:0x94,_0x483fe3:0x567,_0x32a6fe:0x53c,_0x20e283:0x55c,_0x17956c:0xa7,_0x1d9456:0x59f,_0x6322c4:0x65b,_0x376809:0x594,_0x43c69d:0x57f,_0x18787f:0x4e6,_0x319211:0x5b8,_0x1236e3:0x41d,_0x23b7fb:0x125,_0x558009:0x4b2,_0x5112ab:0x46f,_0x50f3d6:0x3f6,_0x8f7f1e:0x44e,_0xf86151:0x3b4,_0x1ab9f5:0x72,_0x17c865:0x14f,_0x55f825:0x179,_0x2d8bd3:0x13,_0x27158c:0x26,_0xa780ff:0x423,_0x52d84a:0x376,_0x2114d7:0x592,_0x4faec2:0x4fc},_0x31c1fc={_0x3d7978:0x13f,_0x5ad639:0x41},_0x3eecc5={_0x44e69c:0xb2},_0x5118d8=[];for(const [_0x3b626d,_0x2aed8e]of this[_0x4f8b40(_0x4ea64e._0x2d98a8,_0x4ea64e._0x504c96,0x81,0x145)][_0x237b43(_0x4ea64e._0x141a8e,_0x4ea64e._0x3a0e92,0x5f6,0x5c2)]()){const _0x4405b8=_0x2aed8e['join']('');if(_0x4405b8[_0x237b43(_0x4ea64e._0x24313c,0x53a,_0x4ea64e._0xb00b5c,0x577)]===0x0)continue;_0x5118d8[_0x237b43(0x3f6,0x369,0x36d,_0x4ea64e._0x4d70aa)]({'index':_0x3b626d,'item':{'type':_0x237b43(0x51a,0x4e7,0x564,_0x4ea64e._0x4531aa),'role':'assistant','content':[{'type':'output_text','text':_0x4405b8}]}});}for(const _0x5553e6 of this[_0x237b43(_0x4ea64e._0x4a09dc,_0x4ea64e._0x4ecd09,_0x4ea64e._0x2f88dd,0x44c)]['values']()){_0x5118d8['push']({'index':_0x5553e6[_0x237b43(0x574,0x63e,0x59d,_0x4ea64e._0xfbaa49)]??_0x5118d8[_0x4f8b40(0x16b,_0x4ea64e._0x4fb30c,_0x4ea64e._0x3cb1c3,0x18d)],'item':{'type':_0x4f8b40(0x169,0x232,_0x4ea64e._0x2802af,0x175),'id':_0x5553e6['id'],..._0x5553e6[_0x4f8b40(_0x4ea64e._0x535953,0x1f3,0x159,_0x4ea64e._0x243eb7)]?{'encrypted_content':_0x5553e6[_0x237b43(0x588,_0x4ea64e._0x53f779,_0x4ea64e._0x4f3680,0x5e9)]}:{},..._0x5553e6[_0x237b43(0x558,0x4ca,0x500,0x626)][_0x237b43(0x567,_0x4ea64e._0x49a28c,_0x4ea64e._0x26b9a3,_0x4ea64e._0x4af47f)]>0x0?{'summary':Array[_0x4f8b40(0x9b,0x3c,0x17d,_0x4ea64e._0x172bb3)](_0x5553e6[_0x237b43(0x558,0x61d,_0x4ea64e._0xc56583,0x58a)][_0x4f8b40(0x16f,0x1a3,0x1e8,_0x4ea64e._0x58bc01)]())[_0x4f8b40(0xb6,0xdf,_0x4ea64e._0x641e20,_0x4ea64e._0x2268bf)]((_0x49ae07,_0x318607)=>_0x49ae07[0x0]-_0x318607[0x0])[_0x4f8b40(0x11f,0x15f,0x11f,0x6c)](([,_0x496fad])=>{return{'type':'summary_text','text':_0x496fad};})}:{},..._0x5553e6[_0x4f8b40(_0x4ea64e._0x26295b,-0x13,0x37,-0x5)][_0x237b43(_0x4ea64e._0x483fe3,0x4e4,_0x4ea64e._0x32a6fe,_0x4ea64e._0x20e283)]>0x0?{'text':Array['from'](_0x5553e6[_0x4f8b40(_0x4ea64e._0x26295b,_0x4ea64e._0x17956c,0xc,0x16e)][_0x237b43(_0x4ea64e._0x1d9456,_0x4ea64e._0x6322c4,_0x4ea64e._0x376809,_0x4ea64e._0x43c69d)]())[_0x237b43(_0x4ea64e._0x18787f,_0x4ea64e._0x319211,0x47c,_0x4ea64e._0x1236e3)]((_0x4dfa58,_0x988042)=>_0x4dfa58[0x0]-_0x988042[0x0])[_0x4f8b40(0x11f,0x148,0x86,_0x4ea64e._0x23b7fb)](([,_0x558355])=>_0x558355)['join']('')}:{}}});}function _0x237b43(_0x4fb456,_0x10bd76,_0x42c23b,_0x40386e){return _0xc7d8a6(_0x4fb456-_0x3eecc5._0x44e69c,_0x42c23b,_0x42c23b-0x1a5,_0x4fb456-0x5c3);}function _0x4f8b40(_0x1d11d4,_0x49e5e1,_0x58fe2b,_0x1483ed){return _0x74a064(_0x1d11d4-0x1be,_0x49e5e1-_0x31c1fc._0x3d7978,_0x1d11d4-_0x31c1fc._0x5ad639,_0x49e5e1);}for(const _0x5edf69 of this[_0x237b43(0x455,0x473,_0x4ea64e._0x558009,_0x4ea64e._0x5112ab)]['values']()){_0x5118d8[_0x237b43(_0x4ea64e._0x50f3d6,_0x4ea64e._0x8f7f1e,_0x4ea64e._0xf86151,0x463)]({'index':this[_0x4f8b40(_0x4ea64e._0x1ab9f5,-0x38,-0xc,0xe8)][_0x237b43(0x4ea,_0x4ea64e._0x4d70aa,0x55a,_0x4ea64e._0x4af47f)](_0x5edf69['id'])??_0x5118d8['length'],'item':{'type':_0x4f8b40(_0x4ea64e._0x17c865,0x14d,0x1e8,_0x4ea64e._0x55f825),'call_id':_0x5edf69['id'],'name':_0x5edf69[_0x4f8b40(_0x4ea64e._0x2d8bd3,-_0x4ea64e._0x27158c,-0xb4,-0x76)][_0x237b43(_0x4ea64e._0xa780ff,_0x4ea64e._0x52d84a,0x42c,0x457)],'arguments':_0x5edf69['function']['arguments']}});}return _0x5118d8[_0x237b43(_0x4ea64e._0x18787f,_0x4ea64e._0x2114d7,_0x4ea64e._0x4faec2,0x5b6)]((_0x227196,_0x610759)=>_0x227196[_0x237b43(0x3f3,0x3f1,0x3cc,0x44d)]-_0x610759[_0x237b43(0x3f3,0x46c,0x333,0x402)])['map'](_0x4d4a3e=>_0x4d4a3e[_0x237b43(0x486,0x3b4,0x51d,0x4e5)]);}[_0x74a064(0x1a9,0x186,0x119,0x86)](_0x210b66,_0x5892f7){const _0x114259={_0x1f49b3:0x204,_0x201c29:0x11e,_0x27b2f8:0x271,_0x5e9446:0x17c,_0x5bb73c:0x1ef,_0x2669b0:0xd,_0x3e52e1:0x2d8,_0x31b2ff:0x26e,_0x48465c:0x1c2,_0xa6b7f4:0xc8,_0x1da2ba:0xb5,_0x4217a7:0x126,_0xd788a1:0x208},_0x10b267={_0x50e19c:0x1a2,_0x283ed0:0x197},_0x18108f={_0x4d508b:0x1c1};function _0x2d29b4(_0xf4166,_0x29fcbe,_0xa14e11,_0x146ffa){return _0x74a064(_0xf4166-_0x18108f._0x4d508b,_0x29fcbe-0x183,_0x29fcbe-0x1d,_0xa14e11);}const _0x2fd2a5=this['reasoningItems'][_0x22b348(_0x114259._0x1f49b3,_0x114259._0x201c29,0xf4,0x165)](_0x210b66);if(_0x2fd2a5)return _0x5892f7!==void 0x0&&(_0x2fd2a5[_0x22b348(0x296,_0x114259._0x27b2f8,_0x114259._0x5e9446,_0x114259._0x5bb73c)]=_0x5892f7,this[_0x2d29b4(-_0x114259._0x2669b0,-0x1a,0x19,-0x50)][_0x22b348(0x1e3,_0x114259._0x3e52e1,_0x114259._0x31b2ff,0x208)](_0x5892f7,_0x210b66)),_0x2fd2a5;const _0x1ff5fb={'id':_0x210b66,'outputIndex':_0x5892f7,'summaryByIndex':new Map(),'textByIndex':new Map()};this['reasoningItems'][_0x2d29b4(0x147,0x139,_0x114259._0x48465c,0x12a)](_0x210b66,_0x1ff5fb);_0x5892f7!==void 0x0&&this[_0x22b348(0x9e,_0x114259._0xa6b7f4,0x78,_0x114259._0x1da2ba)][_0x22b348(0x141,_0x114259._0x4217a7,0x290,_0x114259._0xd788a1)](_0x5892f7,_0x210b66);function _0x22b348(_0x43ca5f,_0x4dd35c,_0x17b547,_0x5a6cf9){return _0xc7d8a6(_0x43ca5f-_0x10b267._0x50e19c,_0x43ca5f,_0x17b547-_0x10b267._0x283ed0,_0x5a6cf9-0x23e);}return _0x1ff5fb;}};function createOpenAiResponsesStreamParser(_0x3f174d){return new OpenAiResponsesStreamParser(_0x3f174d);}function createOpenAiSurfaces(_0x5b3a60={}){const _0x205126={_0x48dbaa:0x1,_0xad3be8:0x10,_0xb3cbcb:0x6,_0xfc6115:0xc1,_0x2b6687:0x9e,_0x42b49f:0x43,_0x3d0ad1:0x9,_0x2b41bd:0x109,_0x52829f:0x136},_0x43338a={_0x43658b:0x5e5},_0x495b73={_0x376624:0x4a1,_0x653a43:0x4b7,_0x4edfb5:0x43a},_0x3ece2f={_0x25fc52:0x514,_0x40c749:0xd4},_0xe24c91={_0x26617c:0x263,_0x218dd4:0x107,_0x5b3d86:0x135},_0x38695b={_0x5bcbce:0xe3},_0x39e17c={_0x31e0b1:0x104,_0x27e0df:0x1d8};function _0x3b9cc8(_0xbcd120,_0x2576fa,_0xda8cee,_0x3f300e){return _0x74a064(_0xbcd120-_0x39e17c._0x31e0b1,_0x2576fa-_0x39e17c._0x27e0df,_0x2576fa-0x76,_0xda8cee);}const _0x2cfaf2=_0x5b3a60[_0x31f4d7(0x37,_0x205126._0x48dbaa,-0x45,_0x205126._0xad3be8)]??'/chat/completions';function _0x31f4d7(_0x3b2a84,_0x4767da,_0x2881b5,_0x1f542f){return _0xc7d8a6(_0x3b2a84-0x13b,_0x2881b5,_0x2881b5-0x14d,_0x3b2a84-_0x38695b._0x5bcbce);}const _0x43c662=_0x5b3a60[_0x31f4d7(-0xdf,-0x14a,-0x1a6,_0x205126._0xb3cbcb)]??_0x3b9cc8(-_0x205126._0xfc6115,0x25,-0x90,-_0x205126._0x2b6687);return[{'id':OPENAI_CHAT_COMPLETIONS_SURFACE,'transport':'http-json','createRequest'(_0x37f2dc){return{'accept':'application/json','body':createChatRequestBody(_0x37f2dc,![]),'path':_0x2cfaf2};},'parseResponse'(_0x1fb8d5){return parseChatCompletionResponse(_0x1fb8d5);}},{'id':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,'transport':'http-sse','createRequest'(_0x3d076f){function _0x2ac2f3(_0x6b674f,_0x2fe106,_0x121526,_0x243060){return _0x3b9cc8(_0x6b674f-0x7c,_0x2fe106-0xb2,_0x243060,_0x243060-0xac);}return{'accept':_0x2ac2f3(_0xe24c91._0x26617c,0x1b5,_0xe24c91._0x218dd4,_0xe24c91._0x5b3d86),'body':createChatRequestBody(_0x3d076f,!![]),'path':_0x2cfaf2};},'createStreamParser'(_0x418b5f){return new OpenAiChatCompletionsStreamParser(_0x418b5f);}},{'id':OPENAI_RESPONSES_SURFACE,'transport':'http-json','createRequest'(_0xeec351){function _0xb2678f(_0x980549,_0x5eca18,_0x57220e,_0x246ae1){return _0x31f4d7(_0x57220e-_0x3ece2f._0x25fc52,_0x5eca18-_0x3ece2f._0x40c749,_0x5eca18,_0x246ae1-0x1da);}return{'accept':_0xb2678f(_0x495b73._0x376624,0x456,_0x495b73._0x653a43,_0x495b73._0x4edfb5),'body':createResponsesRequestBody(_0xeec351,![]),'path':_0x43c662};},'parseResponse'(_0xda3b8d,_0x2d9209){return parseResponsesResponse(_0xda3b8d,_0x2d9209);}},{'id':OPENAI_RESPONSES_STREAM_SURFACE,'transport':_0x31f4d7(0x62,-_0x205126._0x42b49f,-0x13,-_0x205126._0x3d0ad1),'createRequest'(_0x1a4de7){const _0x3dec96={_0x57b5c0:0xf0,_0x5b1643:0x1f3};function _0x4770d7(_0x4525db,_0x110411,_0x3b1ef6,_0x8c1c7a){return _0x31f4d7(_0x4525db-0x4f2,_0x110411-_0x3dec96._0x57b5c0,_0x3b1ef6,_0x8c1c7a-_0x3dec96._0x5b1643);}return{'accept':_0x4770d7(0x510,_0x43338a._0x43658b,0x5c7,0x5f0),'body':createResponsesRequestBody(_0x1a4de7,!![]),'path':_0x43c662};},'createStreamParser'(_0x160659){return new OpenAiResponsesStreamParser(_0x160659);}},{'id':OPENAI_RESPONSES_WEBSOCKET_SURFACE,'transport':_0x31f4d7(-0xc2,-_0x205126._0x2b41bd,-0x186,-_0x205126._0x52829f),'createRequest'(_0x1a20e8){return{'initialEvent':createOpenAiResponsesWebSocketEvent(_0x1a20e8),'path':_0x43c662};},'createStreamParser'(_0x1808ca){return createOpenAiResponsesStreamParser(_0x1808ca);}}];}var OpenAiProviderAdapter=class{[_0x74a064(0x7,-0x8c,0x41,0xb2)];constructor(_0x49f279){const _0x24751a={_0x5cbcd1:0x1fd,_0x3486bc:0x137,_0x5ca884:0x240},_0x544b85={_0x4ac307:0x5f,_0x40f7c3:0x2ab};function _0x301bd9(_0x7fd49a,_0x38176c,_0x2573e0,_0x38a64d){return _0xc7d8a6(_0x7fd49a-0xfc,_0x2573e0,_0x2573e0-_0x544b85._0x4ac307,_0x38a64d-_0x544b85._0x40f7c3);}this[_0x301bd9(_0x24751a._0x5cbcd1,_0x24751a._0x3486bc,_0x24751a._0x5ca884,0x19a)]=_0x49f279;}[_0x74a064(0x137,-0x7f,0x5f,0xb3)](){return new Error('OpenAiModel\x20requires\x20an\x20apiKey\x20or\x20providerSessionResolver');}async[_0xc7d8a6(-0x18e,-0xbf,-0xb4,-0x113)](_0x305177,_0x2bc2c1){const _0x3fd5cf={_0x9aa586:0x5a7,_0xa37317:0x675,_0x7c88bb:0x604,_0x5edc1a:0x56a,_0x28c113:0x4da,_0xfcea12:0x6f,_0x25ec2d:0x68,_0x5d59b4:0xf,_0x257b1d:0x6,_0x10bee2:0x17c,_0x3c219d:0x7f,_0x5db7df:0x19,_0x5bc7da:0x42,_0x216664:0x501,_0x37612a:0x51b,_0xe049a8:0x12,_0x297a45:0xc7,_0x59dae9:0xa2,_0x20c34d:0x520,_0x1cbb34:0x584,_0x395a64:0x522,_0x3459ee:0x3,_0x26e08f:0xab,_0x3c751f:0x14,_0x2ed0c9:0x1e,_0x30dcc6:0x4d,_0x5eb95f:0x17e,_0x478cbe:0x8f,_0x2c5fe8:0xf8,_0x36cf43:0x1bc},_0x284c16={_0x5e0a04:0x94,_0x398182:0x12b,_0x495207:0x48b},_0x4ab4d2={_0x1bb143:0x150},_0x3bb7e9=new Headers();_0x3bb7e9[_0x77daed(0x4c9,_0x3fd5cf._0x9aa586,0x68a,_0x3fd5cf._0xa37317)]('accept',_0x2bc2c1['accept']);function _0x3819f1(_0x1eeb5b,_0x5083c3,_0x3f115e,_0x2ff64b){return _0x74a064(_0x1eeb5b-0xbf,_0x5083c3-_0x4ab4d2._0x1bb143,_0x1eeb5b- -0x24,_0x2ff64b);}_0x3bb7e9['set'](_0x77daed(_0x3fd5cf._0x7c88bb,_0x3fd5cf._0x5edc1a,_0x3fd5cf._0x28c113,0x595),_0x3819f1(_0x3fd5cf._0xfcea12,_0x3fd5cf._0x25ec2d,0x2d,_0x3fd5cf._0x5d59b4)+_0x305177['credential'][_0x3819f1(-0xa7,-_0x3fd5cf._0x257b1d,-0xa2,-_0x3fd5cf._0x10bee2)]);_0x2bc2c1[_0x3819f1(-0x3a,-_0x3fd5cf._0x3c219d,_0x3fd5cf._0x5db7df,-_0x3fd5cf._0x5bc7da)]!==![]&&_0x3bb7e9[_0x77daed(0x4fc,_0x3fd5cf._0x9aa586,0x656,0x4f6)](_0x77daed(0x48c,0x528,_0x3fd5cf._0x216664,_0x3fd5cf._0x37612a),_0x3819f1(-_0x3fd5cf._0xe049a8,0x38,-_0x3fd5cf._0x297a45,0xcb));function _0x77daed(_0x1c4ee1,_0x1006c2,_0xd47ead,_0x1c9a45){return _0x74a064(_0x1c4ee1-_0x284c16._0x5e0a04,_0x1006c2-_0x284c16._0x398182,_0x1006c2-_0x284c16._0x495207,_0x1c9a45);}const _0x5b24bd=await this[_0x3819f1(0x1d,-_0x3fd5cf._0x59dae9,0xfd,0x7b)]?.({'body':_0x305177[_0x77daed(0x4dc,_0x3fd5cf._0x20c34d,_0x3fd5cf._0x1cbb34,0x4d6)],'credential':_0x305177[_0x77daed(0x598,0x4f4,0x558,_0x3fd5cf._0x395a64)],'request':_0x305177[_0x3819f1(-0x48,-0xd9,-0x119,-0x109)],'session':_0x305177[_0x3819f1(-_0x3fd5cf._0x3459ee,-_0x3fd5cf._0x26e08f,0x2c,0x2)],'stream':_0x305177[_0x3819f1(0x1e,-_0x3fd5cf._0x3c751f,_0x3fd5cf._0x2ed0c9,_0x3fd5cf._0x30dcc6)]});for(const [_0x568b86,_0xfeadd7]of Object[_0x3819f1(0x10a,0xff,_0x3fd5cf._0x5eb95f,_0x3fd5cf._0x478cbe)](_0x5b24bd??{})){_0x3bb7e9[_0x3819f1(_0x3fd5cf._0x2c5fe8,_0x3fd5cf._0x36cf43,0x17a,0x124)](_0x568b86,_0xfeadd7);}return _0x3bb7e9;}['mapApiError'](_0x446265){return _0x446265;}[_0xc7d8a6(-0x1dd,-0x1a9,-0x2c,-0x104)](_0xfb1ce0,_0x3f7780){return resolveSessionBaseUrl(_0xfb1ce0,_0x3f7780);}[_0xc7d8a6(-0x1f2,-0x26c,-0x196,-0x1d3)](_0x37b7cf,_0x399338){return resolveApiCredential(_0x37b7cf,_0x399338);}async['toApiError'](_0x24d033){return await createOpenAiApiError(_0x24d033);}},OpenAiModel=class extends RoutedModel{[_0x74a064(0x1d,0x49,-0x4b,-0xaa)]=new Map();[_0x74a064(0xcc,0x11c,0xa6,-0x26)];[_0xc7d8a6(-0x106,-0x1ee,-0x15f,-0x1c2)];constructor(_0x4edb75={}){const _0x5b23b4={_0x27ba20:0x3b0,_0x19f07a:0x537,_0x3a544e:0x47a,_0x958f40:0x122,_0x55c5f8:0x89,_0x4344cd:0x116,_0x180dff:0x178,_0x54a5be:0x2e7,_0x2e8a53:0x302,_0x44521c:0x1bb,_0x29e909:0x197,_0x463e58:0x2da,_0x38b487:0x1b3,_0x3c13d0:0x10b,_0xf0d6e:0x23b,_0x190756:0x25e,_0x1aea14:0x501,_0x160a24:0x3fb,_0x26ab75:0x4e1,_0x395a34:0x48,_0xd90ea:0x184,_0x4f8c0d:0x24,_0x2f4694:0x1ab,_0x4a02c2:0x17d,_0x107a99:0x11d,_0x390be4:0x3f8,_0x1110ca:0x435,_0x278459:0x3a1,_0x16c22e:0x442,_0x12697a:0x1f6,_0x25232a:0xa0,_0x489127:0x146,_0xa43099:0x224,_0x42e46e:0xd7,_0x232dd5:0x183,_0x227036:0x2ae,_0x58432b:0x237},_0x105cd7={_0x4edd1c:0xb7,_0x2e0bcc:0x1ec};function _0x580677(_0x241769,_0x353a40,_0x535c6a,_0x3e42fb){return _0x74a064(_0x241769-0x1c2,_0x353a40-0x178,_0x3e42fb-0x424,_0x535c6a);}const _0x34bc5a=_0x4edb75[_0x580677(_0x5b23b4._0x27ba20,_0x5b23b4._0x19f07a,0x4c1,_0x5b23b4._0x3a544e)]??_0x3fb87a(-0x33,-0xaa,-_0x5b23b4._0x958f40,-0x17b),_0x2c4f80=_0x4edb75[_0x3fb87a(-_0x5b23b4._0x55c5f8,-_0x5b23b4._0x4344cd,-_0x5b23b4._0x180dff,-0xac)]??getDefaultMaxTokens();function _0x3fb87a(_0x52a5a8,_0x12798a,_0x210006,_0xc9285c){return _0x74a064(_0x52a5a8-_0x105cd7._0x4edd1c,_0x12798a-0x1c2,_0x12798a- -_0x105cd7._0x2e0bcc,_0x52a5a8);}const _0x54e701=_0x4edb75['chatCompletionsPath']??_0x3fb87a(-_0x5b23b4._0x54a5be,-0x249,-_0x5b23b4._0x2e8a53,-0x219),_0x12837c=_0x4edb75[_0x3fb87a(-_0x5b23b4._0x44521c,-0x25c,-_0x5b23b4._0x29e909,-0x19f)]??_0x3fb87a(-_0x5b23b4._0x463e58,-0x23d,-0x17e,-0x283);super({'apiKey':_0x4edb75['apiKey'],'baseUrl':trimTrailingSlashes(_0x4edb75[_0x3fb87a(-0x295,-0x1ec,-_0x5b23b4._0x38b487,-_0x5b23b4._0x3c13d0)]??_0x3fb87a(-0x1e0,-_0x5b23b4._0xf0d6e,-0x31b,-_0x5b23b4._0x190756)),'fetch':_0x4edb75[_0x580677(0x55e,_0x5b23b4._0x1aea14,_0x5b23b4._0x160a24,_0x5b23b4._0x26ab75)],'maxTokens':_0x2c4f80,'model':_0x34bc5a,'reasoning':_0x4edb75[_0x3fb87a(-_0x5b23b4._0x395a34,-0xc4,-_0x5b23b4._0xd90ea,-_0x5b23b4._0x4f8c0d)],'providerAdapter':new OpenAiProviderAdapter(_0x4edb75[_0x3fb87a(-0x147,-_0x5b23b4._0x2f4694,-_0x5b23b4._0x4a02c2,-_0x5b23b4._0x107a99)]),'providerSessionResolver':_0x4edb75['providerSessionResolver'],'requestMutators':_0x4edb75[_0x580677(_0x5b23b4._0x390be4,_0x5b23b4._0x1110ca,_0x5b23b4._0x278459,_0x5b23b4._0x16c22e)],'router':new StaticModelSurfaceRouter({'complete':OPENAI_CHAT_COMPLETIONS_SURFACE,'stream':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE}),'sessionManager':_0x4edb75[_0x3fb87a(-0x14e,-_0x5b23b4._0x12697a,-0x1ef,-0x16e)],'surfaces':createOpenAiSurfaces({'chatCompletionsPath':_0x54e701,'responsesPath':_0x12837c}),'webSocketFactory':_0x4edb75['webSocketFactory']}),this[_0x3fb87a(-_0x5b23b4._0x25232a,-_0x5b23b4._0x489127,-_0x5b23b4._0xa43099,-_0x5b23b4._0x42e46e)]=_0x54e701,this[_0x3fb87a(-_0x5b23b4._0x232dd5,-0x25c,-_0x5b23b4._0x227036,-_0x5b23b4._0x58432b)]=_0x12837c;}[_0xc7d8a6(-0x75,0x1f,0x6f,-0x6a)](_0xc277b9,_0x1cfdac){return this['completeViaSurface'](_0xc277b9,OPENAI_CHAT_COMPLETIONS_SURFACE,_0x1cfdac);}[_0x74a064(0x3b,0x8a,-0x5b,-0x53)](_0xc2bd06,_0x36149f){return this['completeViaSurface'](_0xc2bd06,OPENAI_RESPONSES_SURFACE,_0x36149f);}[_0x74a064(-0x26,-0x10c,-0x2a,-0x86)](_0x18f3e9,_0x3d00d0){return this['completeViaSurface'](_0x18f3e9,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x3d00d0);}[_0x74a064(0x28,-0x2b,0x72,-0x5c)](_0xffd98e,_0x509dc8){const _0x281435={_0x4d377e:0x1fe,_0x54b9f3:0x1a8,_0x11f921:0x24d,_0x25c1fd:0x146},_0x5221f1={_0x583c8b:0x1b2,_0x5d0205:0x6a};function _0x26fb94(_0x419f31,_0x2037b0,_0x2a3c7c,_0x68c5e0){return _0xc7d8a6(_0x419f31-0x9,_0x2a3c7c,_0x2a3c7c-_0x5221f1._0x583c8b,_0x419f31- -_0x5221f1._0x5d0205);}return this[_0x26fb94(-_0x281435._0x4d377e,-_0x281435._0x54b9f3,-_0x281435._0x11f921,-_0x281435._0x25c1fd)](_0xffd98e,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,_0x509dc8);}[_0x74a064(-0xa9,0x7,0x23,0x45)](_0x207371,_0x70c7bc){const _0x11cd96={_0x594211:0x221,_0xc7344d:0x1b2,_0x2105ef:0x298},_0x20dcb1={_0x771235:0x346};function _0x198a63(_0x3875c6,_0x450b2b,_0x54a0df,_0x1e221c){return _0xc7d8a6(_0x3875c6-0x104,_0x1e221c,_0x54a0df-0x77,_0x450b2b-_0x20dcb1._0x771235);}return this[_0x198a63(_0x11cd96._0x594211,_0x11cd96._0xc7344d,0x239,_0x11cd96._0x2105ef)](_0x207371,OPENAI_RESPONSES_STREAM_SURFACE,_0x70c7bc);}[_0x74a064(0x2e,0x56,-0xe,0xae)](_0xd7f154,_0x448f8e){const _0x8adf21={_0xa803aa:0x378,_0x37fcc8:0x3b7},_0x351390={_0x128e65:0x18f,_0x7a19ca:0x3f9};function _0x7a6fab(_0x25d219,_0x4d6263,_0x2c3d25,_0x11f0d3){return _0x74a064(_0x25d219-_0x351390._0x128e65,_0x4d6263-0x6a,_0x11f0d3-_0x351390._0x7a19ca,_0x2c3d25);}return this[_0x7a6fab(_0x8adf21._0xa803aa,0x2f5,0x458,_0x8adf21._0x37fcc8)](_0xd7f154,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x448f8e);}async[_0x74a064(0x186,0xcd,0xf0,0x5f)](_0x1e22eb,_0x1b7327){const _0x1e7559={_0x37e09b:0x74,_0x16f002:0x1c},_0x3dd67f={_0x1a7fb9:0x168,_0x55df6e:0x15e,_0x2f0a4f:0x86};function _0x513103(_0x132d19,_0x6e5b08,_0x554999,_0x486723){return _0xc7d8a6(_0x132d19-_0x3dd67f._0x1a7fb9,_0x132d19,_0x554999-_0x3dd67f._0x55df6e,_0x486723-_0x3dd67f._0x2f0a4f);}try{return await this[_0x513103(0x5e,_0x1e7559._0x37e09b,0x8,_0x1e7559._0x16f002)](_0x1e22eb,_0x1b7327);}catch(_0x269a07){if(_0x269a07 instanceof OpenAiApiError)throw this['mapApiError'](_0x269a07);throw _0x269a07;}}async[_0xc7d8a6(-0x25,-0x1c6,-0x143,-0xf7)](_0x5e84d1,_0x463b1e){const _0x173c26={_0x290725:0x2fd,_0x187e45:0x2e3,_0x190f65:0x439,_0x5ed822:0x361},_0x73dadc={_0x13321e:0xcf,_0x432726:0x3a,_0x53c84e:0x358};function _0x36c034(_0xeec37b,_0x496d78,_0x4c1e5f,_0x34d8d0){return _0x74a064(_0xeec37b-_0x73dadc._0x13321e,_0x496d78-_0x73dadc._0x432726,_0x4c1e5f-_0x73dadc._0x53c84e,_0x34d8d0);}function _0xe08bd1(_0x3d4f01,_0x5ee5e9,_0x1c8c5d,_0x334401){return _0x74a064(_0x3d4f01-0x6c,_0x5ee5e9-0xd4,_0x5ee5e9-0x62,_0x3d4f01);}try{return await this[_0x36c034(0x2b3,_0x173c26._0x290725,0x2fd,_0x173c26._0x187e45)](_0x5e84d1,_0x463b1e);}catch(_0x3cc64b){if(_0x3cc64b instanceof OpenAiApiError)throw this[_0x36c034(_0x173c26._0x190f65,_0x173c26._0x5ed822,0x426,0x41e)](_0x3cc64b);throw _0x3cc64b;}}async[_0xc7d8a6(-0xda,-0x17b,-0x140,-0x159)](_0x22412f,_0x3736be){const _0x4d1eb9={_0x4dc1da:0x351,_0x5e92c9:0x2ff,_0x363bdb:0x42a,_0x3adbfd:0x3f1,_0x516569:0x495,_0x2c6ef2:0x399,_0x67b972:0x6f,_0x2c1a7f:0x1f9,_0x587e86:0x97,_0x4c1658:0x133},_0x14404f={_0x4b584c:0x177,_0x42ff79:0x121},_0xd9be27={_0x14c8f3:0x158,_0x65a054:0x22a};function _0x42f376(_0x5d35af,_0x812231,_0x3f0683,_0x1f7963){return _0xc7d8a6(_0x5d35af-_0xd9be27._0x14c8f3,_0x3f0683,_0x3f0683-0xda,_0x1f7963-_0xd9be27._0x65a054);}function _0x104298(_0x722866,_0x13dd88,_0x5da981,_0x10b69f){return _0x74a064(_0x722866-_0x14404f._0x4b584c,_0x13dd88-_0x14404f._0x42ff79,_0x722866-0x3a8,_0x5da981);}try{let _0xcd3c83;for await(const _0x4fd7a7 of this[_0x104298(_0x4d1eb9._0x4dc1da,0x2e2,_0x4d1eb9._0x5e92c9,_0x4d1eb9._0x363bdb)](_0x22412f,_0x3736be)){_0x4fd7a7[_0x104298(_0x4d1eb9._0x3adbfd,0x3ec,_0x4d1eb9._0x516569,_0x4d1eb9._0x2c6ef2)]==='done'&&(_0xcd3c83=_0x4fd7a7[_0x42f376(_0x4d1eb9._0x67b972,_0x4d1eb9._0x2c1a7f,_0x4d1eb9._0x587e86,_0x4d1eb9._0x4c1658)]);}if(!_0xcd3c83)throw new Error('Responses\x20WebSocket\x20request\x20did\x20not\x20produce\x20a\x20final\x20response');return _0xcd3c83;}catch(_0x169129){if(_0x169129 instanceof OpenAiApiError)throw this['mapApiError'](_0x169129);throw _0x169129;}}async*['chatStream'](_0x24ce04,_0x48c4c8){const _0xddb542={_0xd2daae:0x66},_0x525edb={_0x3cf328:0xac,_0x40a5ca:0x15f,_0x496f08:0xd8};function _0x24c638(_0x24fb29,_0x4a8930,_0x65f575,_0x2b19b5){return _0x74a064(_0x24fb29-_0x525edb._0x3cf328,_0x4a8930-_0x525edb._0x40a5ca,_0x24fb29- -_0x525edb._0x496f08,_0x4a8930);}try{yield*this[_0x24c638(-_0xddb542._0xd2daae,-0x5f,0x6f,-0x43)](_0x24ce04,_0x48c4c8);}catch(_0x144420){if(_0x144420 instanceof OpenAiApiError)throw this['mapApiError'](_0x144420);throw _0x144420;}}async*[_0x74a064(0x1aa,0x3b,0xfa,0xb9)](_0x270b64,_0x510339){const _0x5cda13={_0x440de9:0x5a,_0x22fe93:0xe0,_0x44a7f2:0x4,_0x3619d5:0x3e4},_0x2b3159={_0x50204b:0x13c,_0x2d21d0:0x316},_0x58320a={_0x5d7cd7:0x10f,_0x5c0965:0x27};function _0x22cbc7(_0x145da9,_0x1fc00d,_0x481b35,_0x5d18cb){return _0x74a064(_0x145da9-_0x58320a._0x5d7cd7,_0x1fc00d-0x15,_0x481b35- -_0x58320a._0x5c0965,_0x1fc00d);}function _0x2d13a6(_0x483c53,_0xdcf3c8,_0x5c03ca,_0x38f171){return _0x74a064(_0x483c53-0xb,_0xdcf3c8-_0x2b3159._0x50204b,_0x5c03ca-_0x2b3159._0x2d21d0,_0x38f171);}try{yield*this[_0x22cbc7(-_0x5cda13._0x440de9,_0x5cda13._0x22fe93,-_0x5cda13._0x44a7f2,0x32)](_0x270b64,_0x510339);}catch(_0x2ee9f6){if(_0x2ee9f6 instanceof OpenAiApiError)throw this[_0x2d13a6(0x477,0x427,_0x5cda13._0x3619d5,0x48e)](_0x2ee9f6);throw _0x2ee9f6;}}async*['responseSocketStream'](_0x3d00e6,_0x5cf518){const _0x1577e9={_0x2d7c45:0x1b6,_0x448527:0x1f3,_0xc5f6f0:0x4c8,_0x2bd6ee:0x501},_0x57991a={_0x245a5b:0x57,_0x34ec67:0x433},_0x3c0679={_0x4ce01a:0x1ed};function _0x5ccae6(_0x4dd79e,_0x300372,_0x26a002,_0x1ea002){return _0x74a064(_0x4dd79e-0x1a7,_0x300372-_0x3c0679._0x4ce01a,_0x300372- -0x1ca,_0x4dd79e);}function _0x2ab475(_0x506ede,_0x1d45de,_0xbdc016,_0x5b3bf1){return _0x74a064(_0x506ede-0x4a,_0x1d45de-_0x57991a._0x245a5b,_0x5b3bf1-_0x57991a._0x34ec67,_0x1d45de);}try{yield*this[_0x5ccae6(-0x117,-0x140,-_0x1577e9._0x2d7c45,-_0x1577e9._0x448527)](_0x3d00e6,_0x5cf518);}catch(_0x2bf9df){if(_0x2bf9df instanceof OpenAiApiError)throw this[_0x2ab475(0x485,0x490,_0x1577e9._0xc5f6f0,_0x1577e9._0x2bd6ee)](_0x2bf9df);throw _0x2bf9df;}}[_0x74a064(-0x4e,0x52,0x7a,0x15c)](_0x4b4303,_0x70d330){return this['chatComplete'](_0x4b4303,_0x70d330);}[_0xc7d8a6(-0x1cd,-0x18b,-0xbe,-0x110)](_0x1bfffd,_0x1898a6){return this['chatStream'](_0x1bfffd,_0x1898a6);}[_0xc7d8a6(-0x157,-0x1b9,-0x196,-0x15b)](_0x1ee93e){const _0x54384e={_0x94fe70:0xc1,_0x10f6a5:0xca,_0x2abb98:0xed,_0x2667f7:0x2,_0x35704c:0x70,_0x3337ce:0x10,_0x1ecaa0:0xbb,_0xcb9d33:0x85,_0x358cca:0x7c,_0x4293b2:0x9},_0x3ed27a={_0x18d6d5:0x1ea,_0x1c10f9:0x107},_0x190e50={_0x184724:0x16f},_0x2c1b89=this[_0x2dba64(-0xde,-0x9b,-0xc6,-_0x54384e._0x94fe70)](_0x1ee93e);function _0x2dba64(_0x2a3c1e,_0x4fe10c,_0x3226d9,_0x471650){return _0x74a064(_0x2a3c1e-0x18c,_0x4fe10c-_0x190e50._0x184724,_0x471650- -0x69,_0x3226d9);}let _0x1f363b=this[_0x32fe0e(-_0x54384e._0x10f6a5,-0x96,-_0x54384e._0x2abb98,-0x172)][_0x2dba64(0x94,-_0x54384e._0x2667f7,-_0x54384e._0x35704c,_0x54384e._0x3337ce)](_0x2c1b89);!_0x1f363b&&(_0x1f363b={'key':_0x2c1b89,'locked':![],'pending':Promise[_0x2dba64(-0xce,-_0x54384e._0x1ecaa0,-_0x54384e._0xcb9d33,-_0x54384e._0x358cca)]()},this[_0x2dba64(-0x165,-0x105,-0x86,-0xb4)][_0x2dba64(0x77,0x103,-_0x54384e._0x4293b2,0xb3)](_0x2c1b89,_0x1f363b));function _0x32fe0e(_0x417fe5,_0x2aafca,_0x1a0c44,_0x44044b){return _0xc7d8a6(_0x417fe5-0x15f,_0x1a0c44,_0x1a0c44-_0x3ed27a._0x18d6d5,_0x2aafca-_0x3ed27a._0x1c10f9);}return _0x1f363b;}[_0xc7d8a6(-0x1b4,-0xc4,-0xe1,-0x181)](_0x8e78fe){const _0x4c4e23={_0x5b64d5:0x3e,_0x1d7a53:0xac,_0xebf3a5:0x36,_0x30cf1e:0x10a,_0x1f2084:0x123,_0x2b3f05:0x184,_0x9f8f2f:0xd7,_0x12a4f6:0x17b,_0x172b57:0x10e,_0x32b0e1:0x1a2,_0xdb8043:0xa0,_0x29eeee:0x27,_0x2c21ac:0x13},_0x357c00={_0x518ab7:0xf8,_0x40def0:0x11c};if(_0x8e78fe['locked']||_0x8e78fe[_0x5dabad(-_0x4c4e23._0x5b64d5,-0x35,_0x4c4e23._0x1d7a53,_0x4c4e23._0xebf3a5)]||_0x8e78fe[_0x4c1a60(_0x4c4e23._0x30cf1e,_0x4c4e23._0x1f2084,_0x4c4e23._0x2b3f05,_0x4c4e23._0x9f8f2f)])return;function _0x5dabad(_0x17ce79,_0x27acec,_0x11f34f,_0x3e57b2){return _0x74a064(_0x17ce79-_0x357c00._0x518ab7,_0x27acec-_0x357c00._0x40def0,_0x3e57b2- -0x48,_0x17ce79);}function _0x4c1a60(_0x5166d2,_0xef4138,_0x4925d4,_0x4313fe){return _0x74a064(_0x5166d2-0x1c2,_0xef4138-0x27,_0x4925d4-0x1ed,_0x4313fe);}this[_0x4c1a60(_0x4c4e23._0x12a4f6,_0x4c4e23._0x172b57,_0x4c4e23._0x32b0e1,0x1c2)]['get'](_0x8e78fe['key'])===_0x8e78fe&&this[_0x4c1a60(0x166,0x1d5,0x1a2,0x1bd)]['delete'](_0x8e78fe[_0x5dabad(-_0x4c4e23._0xdb8043,-_0x4c4e23._0x29eeee,_0x4c4e23._0x2c21ac,0x22)]);}[_0x74a064(0x84,-0x8a,-0x58,-0xcc)](_0x4ef8d9){const _0x20c158={_0x3edb76:0x3e},_0x3514df={_0x434abe:0x2b2};function _0x18b879(_0x13d577,_0x276fde,_0x5f37a2,_0x5474aa){return _0xc7d8a6(_0x13d577-0xd0,_0x5f37a2,_0x5f37a2-0xf3,_0x13d577-_0x3514df._0x434abe);}return''+trimTrailingSlashes(this['baseUrl'])+this[_0x18b879(0xf0,_0x20c158._0x3edb76,0x1c0,0xcd)]+'::'+_0x4ef8d9;}async[_0x74a064(-0x88,0x95,-0x50,0x32)](_0x45c3ab){const _0x569852={_0x1f3678:0x3b6,_0x2e141e:0x389,_0xa629bd:0x461,_0x4e745a:0x479,_0x125b8a:0x284,_0x1bc2a5:0xbc},_0x5becc1={_0x414b56:0x1b0,_0x5d8454:0x12,_0x5e5ec8:0x1a0,_0x3082fd:0x9e,_0xc1447d:0x1cd,_0x3014f0:0x107},_0x1f9a33={_0x1a23c9:0x146,_0x5d662d:0x2c},_0x1e21e1={_0x1dc350:0x473,_0x1d5fce:0x1af,_0x455509:0xbc},_0x268544={_0x1d49ab:0x12c,_0x4b5b60:0x3ce},_0x4da397={_0x27a445:0x115,_0x1f4d6e:0x82},_0x1bbaed=_0x45c3ab[_0x28e57a(_0x569852._0x1f3678,_0x569852._0x2e141e,_0x569852._0xa629bd,_0x569852._0x4e745a)][_0x28e57a(_0x569852._0x125b8a,0x271,0x20d,0x2b6)](()=>{});let _0x32d99d;const _0x171d66=new Promise(_0x5a7a57=>{_0x32d99d=_0x5a7a57;});function _0x1317ef(_0x2842cf,_0x469cc4,_0x5715de,_0x3a5951){return _0xc7d8a6(_0x2842cf-_0x4da397._0x27a445,_0x2842cf,_0x5715de-_0x4da397._0x1f4d6e,_0x3a5951-0x15b);}_0x45c3ab[_0x1317ef(0xe8,0x12d,_0x569852._0x1bc2a5,0x143)]=_0x1bbaed['then'](()=>_0x171d66),await _0x1bbaed;function _0x28e57a(_0x222e17,_0x28b60,_0x5419dc,_0x1881fd){return _0xc7d8a6(_0x222e17-0x110,_0x1881fd,_0x5419dc-_0x268544._0x1d49ab,_0x222e17-_0x268544._0x4b5b60);}return _0x45c3ab[_0x28e57a(0x381,0x304,0x442,0x41c)]=!![],()=>{_0x45c3ab[_0x3b2cbe(-_0x5becc1._0x414b56,-_0x5becc1._0x5d8454,-0x1a7,-0xf2)]=![],_0x32d99d?.();function _0x3b2cbe(_0x5289cd,_0x6a714a,_0x4ef24c,_0x4341a1){return _0x28e57a(_0x4341a1- -_0x1e21e1._0x1dc350,_0x6a714a-_0x1e21e1._0x1d5fce,_0x4ef24c-_0x1e21e1._0x455509,_0x5289cd);}function _0x215c58(_0x4f91f4,_0xa7f230,_0x593338,_0xc7f7b0){return _0x28e57a(_0xc7f7b0- -_0x1f9a33._0x1a23c9,_0xa7f230-0xf5,_0x593338-_0x1f9a33._0x5d662d,_0x593338);}this[_0x215c58(_0x5becc1._0x5e5ec8,_0x5becc1._0x3082fd,_0x5becc1._0xc1447d,_0x5becc1._0x3014f0)](_0x45c3ab);};}async[_0x74a064(0xeb,0xda,0x40,0x29)](_0x521c3f,_0x4227dd){const _0x1b2d92={_0x1bd35b:0x34,_0x31fc80:0xd1,_0x1c04b2:0x6c,_0x163fc6:0x112,_0xa5317b:0x8e,_0x3f2f73:0x110,_0x14c696:0x133,_0x437b7d:0x5fe,_0x32f1d5:0x651,_0x13c855:0x54,_0x33342d:0x170,_0x3385f8:0x3f,_0x3ce465:0x60e,_0x177cc5:0x4d9,_0x156415:0x142,_0x21c32f:0x14b,_0x330a18:0x227,_0x3f2acc:0xff,_0x2a96a4:0x120,_0x28f69a:0x100,_0x214f3f:0xfb,_0x116954:0x1b7},_0x41e836={_0x510dae:0x2c,_0x4f8ddb:0xb7},_0x3e8d83={_0x27ec02:0x1bf},_0x375c89=this['applyModelDefaults'](_0x521c3f);function _0x4ad9c4(_0x431b39,_0x2327b0,_0x402ee8,_0x623b99){return _0x74a064(_0x431b39-_0x3e8d83._0x27ec02,_0x2327b0-0x9c,_0x431b39-0x53c,_0x402ee8);}function _0x58cf84(_0x3a0d38,_0x467a7c,_0x1e34b0,_0x56f811){return _0xc7d8a6(_0x3a0d38-_0x41e836._0x510dae,_0x56f811,_0x1e34b0-_0x41e836._0x4f8ddb,_0x3a0d38-0x251);}const _0x1cdfb8=toModelRequest(_0x375c89),_0x221a8a=await prepareProviderRequest(_0x1cdfb8,{'sessionManager':this[_0x58cf84(0xf5,_0x1b2d92._0x1bd35b,_0x1b2d92._0x31fc80,_0x1b2d92._0x1c04b2)],'requestMutators':this[_0x58cf84(0x11d,_0x1b2d92._0x163fc6,0x84,0x173)],'signal':_0x4227dd}),_0x4d8533=toChatRequest(_0x221a8a[_0x4ad9c4(0x518,0x469,0x471,0x5ce)]),_0x50576c=this[_0x58cf84(0xbf,0x135,_0x1b2d92._0xa5317b,_0x1b2d92._0x3f2f73)][_0x58cf84(0x7e,_0x1b2d92._0x14c696,-0x4e,0x160)](this[_0x4ad9c4(_0x1b2d92._0x437b7d,0x63a,0x55e,_0x1b2d92._0x32f1d5)],_0x221a8a[_0x58cf84(0x120,_0x1b2d92._0x13c855,_0x1b2d92._0x33342d,_0x1b2d92._0x3385f8)]);if(!_0x50576c)throw this[_0x4ad9c4(0x59b,_0x1b2d92._0x3ce465,0x558,_0x1b2d92._0x177cc5)]();return{'baseUrl':this['providerAdapter'][_0x58cf84(0x14d,_0x1b2d92._0x156415,_0x1b2d92._0x21c32f,_0x1b2d92._0x330a18)](this[_0x58cf84(_0x1b2d92._0x3f2acc,0x6b,0x33,0x156)],_0x221a8a[_0x58cf84(_0x1b2d92._0x2a96a4,0xdf,_0x1b2d92._0x28f69a,_0x1b2d92._0x214f3f)]),'credential':_0x50576c,'request':_0x4d8533,'session':_0x221a8a[_0x58cf84(0x120,0x1c5,0xa8,_0x1b2d92._0x116954)]};}[_0x74a064(-0xe2,0x3d,-0x7a,0x10)](_0x3d3ece,_0x3ccf1d,_0x6e7fa5={}){const _0x1262b1={_0x4d1ede:0x85,_0x187174:0x5a,_0x3016af:0x83,_0x32ab02:0x7,_0x9ef1bd:0x77,_0x4506d2:0xb1,_0x387048:0xaf,_0x1f4ef4:0x46,_0x3d5819:0x69,_0x4f76a3:0xa4,_0x173efa:0x138,_0x2b3426:0x1e3,_0x4b28d4:0x1e8,_0x5a5570:0x1d9,_0xf1c470:0x1ad,_0x3a0672:0x24,_0x55222e:0x9d,_0x57b3cb:0x20,_0x112a5e:0x1d2,_0x7cc858:0x55,_0x1fec70:0x7f},_0x8ead10={_0x5008a4:0x48};if(!_0x6e7fa5[_0x49d98b(_0x1262b1._0x4d1ede,-_0x1262b1._0x187174,-_0x1262b1._0x3016af,-_0x1262b1._0x32ab02)]){const _0x2c38d9=this['findResponsesSocketCheckpoint'](_0x3d3ece);if(_0x2c38d9&&_0x3ccf1d['lastResponseId']&&_0x2c38d9[_0x90c976(_0x1262b1._0x9ef1bd,_0x1262b1._0x4506d2,_0x1262b1._0x387048,-_0x1262b1._0x1f4ef4)]===_0x3ccf1d[_0x49d98b(-0xf,-_0x1262b1._0x3d5819,-0x5d,-_0x1262b1._0x4f76a3)]){const _0x54fbb4=toOpenAiResponsesRequest({..._0x3d3ece,'messages':_0x3d3ece[_0x90c976(_0x1262b1._0x173efa,_0x1262b1._0x2b3426,_0x1262b1._0x4b28d4,0x1ac)][_0x49d98b(-_0x1262b1._0x5a5570,-0x102,-_0x1262b1._0xf1c470,-0x79)](_0x2c38d9['messageIndex']+0x1)})[_0x49d98b(_0x1262b1._0x3a0672,-0x6e,-_0x1262b1._0x55222e,-_0x1262b1._0x57b3cb)];return{'event':createOpenAiResponsesWebSocketEvent(_0x3d3ece,{'input':_0x54fbb4,'previousResponseId':_0x2c38d9[_0x49d98b(-0x1d5,-0xee,-_0x1262b1._0x112a5e,-0xfd)]}),'previousResponseId':_0x2c38d9[_0x90c976(_0x1262b1._0x9ef1bd,-_0x1262b1._0x7cc858,_0x1262b1._0x1fec70,-0x3b)]};}}function _0x90c976(_0x4dbc64,_0x4958e0,_0x2ebbd4,_0x54e409){return _0xc7d8a6(_0x4dbc64-_0x8ead10._0x5008a4,_0x2ebbd4,_0x2ebbd4-0x1cb,_0x4dbc64-0x193);}function _0x49d98b(_0x9fa317,_0x37a39c,_0x1afeb3,_0x349ec3){return _0x74a064(_0x9fa317-0x1f2,_0x37a39c-0x3b,_0x37a39c- -0x124,_0x9fa317);}return{'event':createOpenAiResponsesWebSocketEvent(_0x3d3ece)};}[_0xc7d8a6(-0xd6,-0x7d,-0xbe,-0x115)](_0x33d4f6){const _0x2f8f89={_0x1bae4f:0x8d,_0x13cd27:0x26,_0x202482:0x52d,_0x3b5bcf:0x5d7,_0x56d897:0x507,_0xafe85e:0x46e,_0x1c1298:0x501,_0x3619a9:0x5e3,_0x47ed1e:0xf4},_0x5ca13b={_0x1d6d70:0x80,_0x4cfc0a:0x557};for(let _0x6c887c=_0x33d4f6[_0x2278c1(_0x2f8f89._0x1bae4f,0xf4,-0x6e,_0x2f8f89._0x13cd27)][_0x320c1c(0x52f,0x5bc,_0x2f8f89._0x202482,_0x2f8f89._0x3b5bcf)]-0x1;_0x6c887c>=0x0;_0x6c887c-=0x1){const _0x4d3391=_0x33d4f6['messages'][_0x6c887c],_0x57ace0=_0x4d3391[_0x320c1c(0x4b3,_0x2f8f89._0x56d897,_0x2f8f89._0xafe85e,0x468)]===_0x320c1c(_0x2f8f89._0x1c1298,0x4f1,0x4f5,_0x2f8f89._0x3619a9)?_0x4d3391[_0x2278c1(-_0x2f8f89._0x47ed1e,-0x63,-0x15a,-0x146)]?.['openaiResponsesResponseId']:void 0x0;if(_0x57ace0)return{'messageIndex':_0x6c887c,'responseId':_0x57ace0};}function _0x320c1c(_0x16e4b8,_0x2025c0,_0x18c1c4,_0x476f9c){return _0xc7d8a6(_0x16e4b8-_0x5ca13b._0x1d6d70,_0x476f9c,_0x18c1c4-0x1d8,_0x16e4b8-_0x5ca13b._0x4cfc0a);}function _0x2278c1(_0x38ad05,_0x4e834f,_0x3fc3d5,_0x13ddfe){return _0xc7d8a6(_0x38ad05-0x7c,_0x3fc3d5,_0x3fc3d5-0x1ee,_0x13ddfe-0x81);}return void 0x0;}[_0x74a064(-0x3d,-0x58,0x8c,0x127)](_0x5a0c10){const _0x11b601={_0x283a7a:0xe2,_0x660c22:0x13b,_0x50e1f6:0x86,_0x54cdea:0x192,_0x12a9e3:0x15c,_0x364800:0x118},_0xe2fa={_0x5994b1:0x1f3};function _0x3ae7a8(_0x573d79,_0xf8d7e4,_0x108b48,_0xc61155){return _0x74a064(_0x573d79-_0xe2fa._0x5994b1,_0xf8d7e4-0x140,_0x108b48-0x3ea,_0x573d79);}function _0x5611bf(_0x11df1f,_0x11e23a,_0x45096e,_0x305fdd){return _0x74a064(_0x11df1f-0xae,_0x11e23a-0x13b,_0x45096e-0x1bb,_0x305fdd);}return _0x5a0c10 instanceof ProviderStreamEventError&&(_0x5a0c10[_0x5611bf(0xd2,_0x11b601._0x283a7a,_0x11b601._0x660c22,_0x11b601._0x50e1f6)]===_0x5611bf(0x205,_0x11b601._0x54cdea,_0x11b601._0x12a9e3,_0x11b601._0x364800)||_0x5a0c10['code']===_0x5611bf(0x25d,0x3bd,0x2d9,0x237));}[_0x74a064(0xa7,0xfd,0x94,-0x43)](_0x15f012){const _0x1d79a8={_0x2888d6:0x2b1,_0x3fac8f:0x269,_0x43a19b:0x22a,_0x46a496:0x285,_0x1526eb:0x350,_0x1e9545:0x3af,_0x2f0b81:0x376,_0x568471:0x1dd,_0x59a623:0x1e8},_0x4537a5={_0xcbc5ef:0x1a5},_0x587b98={_0x5c0048:0xf3,_0xc68d6b:0x692},_0x507ba0=_0x15f012['socket'];function _0x3a9b84(_0x4ae713,_0x3227ad,_0x13dfca,_0x3e5d53){return _0xc7d8a6(_0x4ae713-0x1e4,_0x3e5d53,_0x13dfca-_0x587b98._0x5c0048,_0x13dfca-_0x587b98._0xc68d6b);}_0x15f012[_0x5da1d8(0x301,_0x1d79a8._0x2888d6,_0x1d79a8._0x3fac8f,_0x1d79a8._0x43a19b)]=void 0x0,_0x15f012[_0x5da1d8(0x2fb,_0x1d79a8._0x46a496,_0x1d79a8._0x1526eb,_0x1d79a8._0x1e9545)]=void 0x0;function _0x5da1d8(_0x1f7319,_0x54b9ef,_0x3bf0a1,_0x4a0e12){return _0x74a064(_0x1f7319-0x5d,_0x54b9ef-_0x4537a5._0xcbc5ef,_0x3bf0a1-0x2d2,_0x54b9ef);}_0x15f012[_0x5da1d8(0x391,0x34f,0x38d,0x3b8)]=void 0x0,_0x507ba0?.['readyState']===WebSocket[_0x5da1d8(0x2e3,_0x1d79a8._0x2f0b81,0x2c1,_0x1d79a8._0x568471)]&&_0x507ba0[_0x5da1d8(0x1da,0x366,0x2b3,_0x1d79a8._0x59a623)](0x3e8,'reset');}async[_0xc7d8a6(0x36,0x26,0x59,-0x63)](_0x21106d,_0x292592,_0x1f2694,_0x23d23e,_0xa41217){const _0xfe62a0={_0x27df4d:0x461,_0xe6f307:0x535,_0x164ca2:0x298,_0x346126:0x2f8,_0x29efa8:0x2f0,_0x1a8cc1:0x28b,_0x4f9c5b:0x274,_0x6f372b:0x209,_0x542e86:0x1f6,_0xe56bcd:0x163,_0x4655e0:0x12e,_0x497f49:0x2b5,_0x1e06d5:0x47a,_0x4e95b4:0x472,_0x7bb782:0x4ee,_0x16044f:0x5a0,_0x5a1851:0x2da,_0x3114d6:0x12b,_0x322696:0x2b3},_0x4c3b02={_0x5256a4:0x478,_0xc55040:0x545,_0x45b522:0x511,_0x39f292:0x57c,_0x16d109:0x4dc,_0x3b98d2:0x51e,_0x29fe9b:0x40e,_0x2fc76e:0x4a8,_0x91df2:0x422,_0x2eca33:0x4b6,_0x47d7e4:0x5e1,_0x93abe4:0x52c,_0x4fe63a:0x5f9,_0x11bae1:0x505,_0x47efaf:0x43c,_0x3f9ae1:0x3fd,_0x1cebf5:0x49e,_0x11f46f:0x272,_0x262f69:0x33b,_0x2b2bbb:0x4ac,_0xfccc52:0x51c,_0x3e3a6d:0x568,_0x1bfa12:0x61e,_0x58818e:0x64c,_0xf229e7:0x669,_0x4bae9d:0x45c,_0x4dcb64:0x48d,_0x128b4e:0x4d1,_0x5d8412:0x435,_0x27021e:0x541,_0x10c385:0x664,_0x27e967:0x5a9,_0x19a29b:0x5d7,_0x4e709b:0x41c,_0x333d4a:0x517,_0x39bc36:0x252,_0x4e2c57:0x337},_0x3bf633={_0x459217:0x1a},_0x548e37={_0x245d26:0x14d},_0x11c28f={_0x4fbb18:0x287};if(_0x292592[_0x16e54f(0x474,_0xfe62a0._0x27df4d,0x3a3,_0xfe62a0._0xe6f307)]?.['readyState']===WebSocket[_0x50e9e1(-0x1d6,-_0xfe62a0._0x164ca2,-_0xfe62a0._0x346126,-0x1f0)])return _0x292592[_0x50e9e1(-0x28a,-_0xfe62a0._0x29efa8,-0x2d5,-_0xfe62a0._0x1a8cc1)];if(_0x292592[_0x50e9e1(-_0xfe62a0._0x4f9c5b,-_0xfe62a0._0x6f372b,-0x1b0,-_0xfe62a0._0x542e86)])return await _0x292592[_0x50e9e1(-_0xfe62a0._0xe56bcd,-0x209,-_0xfe62a0._0x4655e0,-_0xfe62a0._0x497f49)];function _0x50e9e1(_0x23386e,_0x25dcff,_0x599f31,_0x43a121){return _0x74a064(_0x23386e-0x138,_0x25dcff-0x82,_0x25dcff- -_0x11c28f._0x4fbb18,_0x23386e);}function _0x16e54f(_0x29eebb,_0x3d62c3,_0x4f2124,_0x25aa43){return _0xc7d8a6(_0x29eebb-0x1f3,_0x4f2124,_0x4f2124-_0x548e37._0x245d26,_0x3d62c3-0x61c);}_0x292592[_0x16e54f(_0xfe62a0._0x1e06d5,0x548,0x4d1,_0xfe62a0._0x4e95b4)]=((async()=>{const _0x6c8286={_0x14997c:0x38e,_0x4fc620:0x31e,_0x4d7a35:0x3f7},_0x46cc88={_0x42f9e6:0x144,_0xa15274:0x8d},_0x3dcd1c={_0x2c5cd4:0x2c,_0x213200:0x1c0},_0x476c29=await this['createHeaders']({'request':_0x1f2694['request'],'body':_0x23d23e,'credential':_0x1f2694['credential'],'session':_0x1f2694['session'],'stream':!![]},{'accept':'application/json','includeContentType':![]});function _0x4634c7(_0x36a086,_0x778b4d,_0x2d7fcd,_0x15c92a){return _0x16e54f(_0x36a086-0x61,_0x15c92a- -0x11f,_0x36a086,_0x15c92a-_0x3bf633._0x459217);}function _0x1cc681(_0x3477c8,_0x6a81c3,_0x3c4638,_0x48c4af){return _0x16e54f(_0x3477c8-0x142,_0x48c4af- -_0x3dcd1c._0x2c5cd4,_0x6a81c3,_0x48c4af-_0x3dcd1c._0x213200);}_0x476c29[_0x1cc681(_0x4c3b02._0x5256a4,_0x4c3b02._0xc55040,0x45f,_0x4c3b02._0x45b522)](_0x1cc681(0x4c4,_0x4c3b02._0x39f292,_0x4c3b02._0x16d109,_0x4c3b02._0x3b98d2));const _0x2d6634=this[_0x4634c7(0x461,_0x4c3b02._0x29fe9b,_0x4c3b02._0x2fc76e,_0x4c3b02._0x91df2)]({'headers':Object[_0x1cc681(0x59a,_0x4c3b02._0x2eca33,_0x4c3b02._0x47d7e4,_0x4c3b02._0x93abe4)](_0x476c29[_0x1cc681(0x65b,_0x4c3b02._0x4fe63a,0x5fc,0x5cc)]()),'url':(''+_0x1f2694[_0x1cc681(_0x4c3b02._0x11bae1,_0x4c3b02._0x47efaf,_0x4c3b02._0x3f9ae1,_0x4c3b02._0x1cebf5)]+this[_0x4634c7(0x388,_0x4c3b02._0x11f46f,0x2b6,_0x4c3b02._0x262f69)])[_0x4634c7(0x576,0x58e,0x519,0x4cc)](/^http:/,_0x1cc681(_0x4c3b02._0x2b2bbb,_0x4c3b02._0xfccc52,_0x4c3b02._0x3e3a6d,0x4cb))['replace'](/^https:/,_0x1cc681(_0x4c3b02._0x1bfa12,0x531,0x53e,0x583))}),_0x5372fe=()=>{function _0x465675(_0x3aa493,_0x41139a,_0x20beb5,_0x449b04){return _0x1cc681(_0x3aa493-_0x46cc88._0x42f9e6,_0x449b04,_0x20beb5-0x19c,_0x41139a- -_0x46cc88._0xa15274);}_0x292592['socket']===_0x2d6634&&(_0x292592[_0x465675(_0x6c8286._0x14997c,0x3a8,_0x6c8286._0x4fc620,_0x6c8286._0x4d7a35)]=void 0x0,_0x292592['lastResponseId']=void 0x0),this['maybeEvictResponsesSocketSession'](_0x292592);};_0x2d6634[_0x1cc681(_0x4c3b02._0x58818e,0x531,_0x4c3b02._0xf229e7,0x58f)]('close',_0x5372fe);try{return throwIfAborted(_0xa41217),_0x2d6634['readyState']!==WebSocket[_0x1cc681(_0x4c3b02._0x4bae9d,0x4ad,0x514,_0x4c3b02._0x4dcb64)]&&await waitForWebSocketOpen(_0x2d6634,_0xa41217),throwIfAborted(_0xa41217),_0x292592[_0x1cc681(_0x4c3b02._0x128b4e,0x4a7,0x46b,_0x4c3b02._0x5d8412)]=_0x2d6634,_0x2d6634;}catch(_0x294b3b){_0x5372fe();_0x2d6634[_0x1cc681(_0x4c3b02._0x27021e,_0x4c3b02._0x10c385,_0x4c3b02._0x27e967,_0x4c3b02._0x19a29b)]===WebSocket['OPEN']&&_0x2d6634[_0x1cc681(_0x4c3b02._0x4e709b,0x3c0,_0x4c3b02._0x333d4a,0x47f)](0x3e8,_0x4634c7(0x277,0x3d0,_0x4c3b02._0x39bc36,_0x4c3b02._0x4e2c57));throw _0x294b3b;}})());try{return await _0x292592[_0x16e54f(_0xfe62a0._0x7bb782,0x548,_0xfe62a0._0x16044f,0x56f)];}finally{_0x292592[_0x50e9e1(-_0xfe62a0._0x5a1851,-0x209,-_0xfe62a0._0x3114d6,-_0xfe62a0._0x322696)]=void 0x0;}}async*['streamViaPersistentResponsesSocket'](_0x1e1c72,_0x13206b){const _0x10ccc8={_0xce0aa0:0x6c,_0x4e228e:0x107,_0x5e90fc:0x98,_0xdbbd2a:0x1dd,_0x287595:0x260,_0x1877c0:0x2ee,_0x4d02d5:0x29d,_0x2c9c42:0x1e9,_0x2d7970:0x232,_0x349ce7:0x2,_0x15f3fa:0x43,_0x3fa108:0x2a,_0x228ba1:0xc1,_0x163bd9:0x41,_0x366ff8:0x17,_0x5347fb:0xf,_0x139e2b:0xe7,_0x59d958:0x27a,_0x4dbde1:0xd0,_0x385465:0x1ae,_0x57804b:0x1b3,_0x1a83d4:0x261,_0x49452d:0xe2,_0x3784b5:0x2fd,_0x485788:0x14b,_0x2d0335:0x2c,_0x528164:0xb5},_0x2bedfc={_0x49b9a3:0x3c},_0x2c818a=this[_0x49f09e(0x99,-0x57,_0x10ccc8._0xce0aa0,-0x64)](_0x1e1c72),_0x143230=this['getResponsesSocketSessionState'](_0x2c818a[_0x49f09e(_0x10ccc8._0x4e228e,0x49,0xac,_0x10ccc8._0x5e90fc)]['sessionId']);function _0x49f09e(_0x336eb7,_0x581cf3,_0x4d69e0,_0x6322e4){return _0x74a064(_0x336eb7-0x86,_0x581cf3-0x195,_0x4d69e0-_0x2bedfc._0x49b9a3,_0x581cf3);}function _0x2d0a26(_0x3b8cbf,_0x2f408d,_0x1391c2,_0x56182e){return _0xc7d8a6(_0x3b8cbf-0x16e,_0x56182e,_0x1391c2-0x136,_0x1391c2-0x37f);}const _0xb98353=await this[_0x2d0a26(0x1b6,0x267,_0x10ccc8._0xdbbd2a,_0x10ccc8._0x287595)](_0x143230);try{const _0x5a6aab=this['buildResponsesSocketEvent'](_0x2c818a,_0x143230);try{yield*this[_0x2d0a26(0x307,0x373,0x35d,0x333)](_0x2c818a[_0x2d0a26(_0x10ccc8._0x1877c0,0x259,_0x10ccc8._0x4d02d5,0x36d)][_0x2d0a26(_0x10ccc8._0x2c9c42,0x2e6,_0x10ccc8._0x2d7970,0x174)],_0x143230,_0x2c818a,_0x5a6aab[_0x49f09e(-0x3a,_0x10ccc8._0x349ce7,-_0x10ccc8._0x15f3fa,-_0x10ccc8._0x3fa108)],_0x13206b?.[_0x49f09e(_0x10ccc8._0x228ba1,_0x10ccc8._0x163bd9,_0x10ccc8._0x366ff8,_0x10ccc8._0x5347fb)]);return;}catch(_0x1634b8){if(!_0x5a6aab['previousResponseId']||!this[_0x49f09e(_0x10ccc8._0x139e2b,0x1a,0xc8,0x1f)](_0x1634b8)){this[_0x2d0a26(0x1ed,0x236,0x2c1,_0x10ccc8._0x59d958)](_0x143230);throw _0x1634b8;}}this[_0x49f09e(0x189,0x68,_0x10ccc8._0x4dbde1,0x157)](_0x143230);const _0x1ed185=this[_0x2d0a26(_0x10ccc8._0x385465,0x201,_0x10ccc8._0x57804b,_0x10ccc8._0x1a83d4)](_0x2c818a,_0x143230,{'forceFullReplay':!![]});yield*this[_0x49f09e(0x1c6,0x1cd,0x16c,_0x10ccc8._0x49452d)](_0x2c818a[_0x2d0a26(0x325,0x1e2,0x29d,_0x10ccc8._0x3784b5)][_0x2d0a26(0x250,0x2e6,_0x10ccc8._0x2d7970,_0x10ccc8._0x485788)],_0x143230,_0x2c818a,_0x1ed185[_0x49f09e(-_0x10ccc8._0x2d0335,-0x8,-0x43,0x78)],_0x13206b?.[_0x49f09e(0x3e,0xe9,0x17,-_0x10ccc8._0x528164)]);}finally{_0xb98353();}}async*['streamViaResponsesSocketAttempt'](_0x4ebfe6,_0x5256ca,_0x1fb617,_0x15a3f1,_0x23e874){const _0x566757={_0x23b1c6:0x3bd,_0x30c292:0x46c,_0x1a4b18:0x47e,_0x2112d4:0x3dd,_0x14f88a:0x3c8,_0x110a10:0x3fa,_0x34a210:0x44d,_0x2688b6:0x3b7,_0x59cb73:0x36f,_0x56f731:0x13a,_0x887c4:0x327,_0x1e3e7d:0x2bc,_0x35209d:0x471,_0x587ef0:0x4e0,_0x2fe989:0x457,_0x420b25:0xd1,_0x7f286c:0x66,_0x268cf4:0x438,_0x234697:0x3e3,_0x585486:0x24b,_0x5778ed:0x19c,_0x3c1f50:0x244},_0x5d127a={_0x3e01f5:0x47,_0x4d344d:0x1dd},_0x45b2a7=await this[_0x6183f5(_0x566757._0x23b1c6,0x34e,0x410,0x373)](_0x1fb617,_0x23e874),_0x1276ea=await this[_0x6183f5(_0x566757._0x30c292,_0x566757._0x1a4b18,0x44a,0x423)](_0x4ebfe6,_0x5256ca,_0x45b2a7,_0x15a3f1,_0x23e874),_0x5e1d04=createOpenAiResponsesStreamParser(_0x1fb617);throwIfAborted(_0x23e874),_0x1276ea[_0x6183f5(_0x566757._0x2112d4,_0x566757._0x14f88a,0x464,0x3bc)](JSON[_0x6183f5(_0x566757._0x110a10,_0x566757._0x34a210,_0x566757._0x2688b6,_0x566757._0x59cb73)](_0x15a3f1));for await(const _0x3c522f of iterateWebSocketMessages(_0x1276ea,_0x23e874)){const _0xdde523=_0x5e1d04[_0x316d54(0x1f3,0x190,_0x566757._0x56f731,0xfb)]?.(_0x3c522f)??[];yield*_0xdde523;if(_0x5e1d04['isDone']?.())break;}function _0x6183f5(_0x55f673,_0x3df0aa,_0x2c38a5,_0x554df2){return _0xc7d8a6(_0x55f673-_0x5d127a._0x3e01f5,_0x3df0aa,_0x2c38a5-_0x5d127a._0x4d344d,_0x55f673-0x4cf);}if(!_0x5e1d04['isDone']?.())throw new Error(_0x6183f5(_0x566757._0x887c4,0x34e,0x2a3,_0x566757._0x1e3e7d));const _0x3b15fe=_0x5e1d04[_0x6183f5(_0x566757._0x35209d,_0x566757._0x587ef0,0x429,_0x566757._0x2fe989)](),_0x3fc1b5=_0x3b15fe[_0x316d54(0x11,0x1ae,_0x566757._0x420b25,_0x566757._0x7f286c)]?.['openaiResponsesResponseId']??_0x3b15fe['id'];function _0x316d54(_0x19d023,_0x237865,_0x3ccc91,_0x256b89){return _0x74a064(_0x19d023-0x161,_0x237865-0x1d,_0x3ccc91-0x146,_0x237865);}_0x3fc1b5&&(_0x5256ca[_0x6183f5(_0x566757._0x268cf4,0x4ff,0x420,_0x566757._0x234697)]=_0x3fc1b5),yield{'type':_0x316d54(_0x566757._0x585486,_0x566757._0x5778ed,_0x566757._0x3c1f50,0x2da),'response':_0x3b15fe};}},AVAILABLE_CHAT_MODEL_SURFACES=['anthropic-messages',_0xc7d8a6(-0x2c,-0x4e,0x7,-0x40),_0x74a064(0x43,0x58,0xb7,0x194),'openai-responses-ws'];function isAnthropicSurface(_0x27bc1e){const _0x39489c={_0x4a3327:0xfb,_0x534df9:0x1c8,_0x26759d:0x81},_0x1d7fe7={_0x4a7333:0x24,_0x48c7fa:0x23d};function _0x196ad8(_0x5caa35,_0x56d068,_0x43eccb,_0x567373){return _0xc7d8a6(_0x5caa35-_0x1d7fe7._0x4a7333,_0x43eccb,_0x43eccb-0x128,_0x5caa35-_0x1d7fe7._0x48c7fa);}return _0x27bc1e===_0x196ad8(_0x39489c._0x4a3327,_0x39489c._0x534df9,0x10f,_0x39489c._0x26759d);}function resolveDefaultBaseUrl(_0x333410){const _0x1f17f5={_0x29fa94:0x3f3,_0x2bc2ef:0x419,_0x4627b2:0x433,_0x1cca7e:0x266,_0x306324:0x306,_0x8bf948:0x34b,_0x1fad58:0x359,_0x252dac:0x3e9,_0x3a769b:0x25c,_0x1b5cb0:0x30f,_0x254074:0x293},_0x213a36={_0x3a23f3:0x1e,_0x4498dd:0x32b},_0x9b37b1={_0x2a0792:0x18c,_0x554192:0x115,_0x2dd91d:0x22b};if(_0x333410==='anthropic-messages')return getProviderProfile(_0x292c00(_0x1f17f5._0x29fa94,_0x1f17f5._0x2bc2ef,0x453,_0x1f17f5._0x4627b2))?.[_0x292c00(0x32b,_0x1f17f5._0x1cca7e,_0x1f17f5._0x306324,_0x1f17f5._0x8bf948)]??_0x292c00(0x37f,_0x1f17f5._0x1fad58,_0x1f17f5._0x252dac,0x447);function _0x4cff1b(_0x2ca042,_0x143ac4,_0x367a65,_0x1c248b){return _0x74a064(_0x2ca042-_0x9b37b1._0x2a0792,_0x143ac4-_0x9b37b1._0x554192,_0x367a65- -_0x9b37b1._0x2dd91d,_0x2ca042);}function _0x292c00(_0x499848,_0xd3d307,_0x2ab61e,_0x1b88f0){return _0x74a064(_0x499848-0xa6,_0xd3d307-_0x213a36._0x3a23f3,_0x499848-_0x213a36._0x4498dd,_0x2ab61e);}return getProviderProfile('openai')?.['baseUrl']??_0x292c00(0x2dc,_0x1f17f5._0x3a769b,_0x1f17f5._0x1b5cb0,_0x1f17f5._0x254074);}var ChatModel=class{[_0xc7d8a6(-0x22,-0x93,-0xa2,-0xfc)];[_0x74a064(0x18b,0x12b,0xd6,0x145)];[_0x74a064(0xbc,-0x31,0xa5,0x184)];[_0x74a064(0x5c,-0x76,0x3b,-0x15)];[_0x74a064(0x103,0x1c4,0x13b,0xd1)];constructor(_0x2fb2e0={}){const _0x574c8e={_0x14e2ee:0x23f,_0x23c8d9:0x1b8,_0x55a189:0x1a2,_0x113dae:0x3e3,_0x2afb9c:0x2bf,_0x3bcafc:0x313,_0x2e11df:0x254,_0x521700:0x237,_0x339188:0x36b,_0x3dc49d:0x42e,_0x457391:0x445,_0x20bb70:0x4d1,_0x6f832:0x465,_0x397d91:0x2fb,_0x442f95:0x291,_0x20ce45:0x28e,_0x38a2b7:0x3cf,_0x5013c5:0x2ab,_0x3ad7c8:0x2cd,_0x3e5f0e:0x2a6,_0x286560:0x2ce,_0x4183b6:0x2dd,_0x417a3b:0x244,_0x5c1eb8:0x4a4,_0x814cb1:0x475,_0x5e13c6:0x3be,_0x3e506e:0x472,_0x7843e4:0x28f,_0x244221:0x2ad,_0xbbc79b:0x38f,_0x45cb72:0x49e,_0x50a7a5:0x269,_0x1133fd:0x299,_0x46294a:0x409,_0x49c055:0x451,_0x3ef5bf:0x311,_0x2a5219:0x371,_0x40f186:0x408,_0x1bdb3f:0x399,_0x2f5ba7:0x31a},_0x567341={_0x244fe3:0x189,_0x4d3c13:0x185},_0x445f22={_0x1d6884:0xc9,_0x4518ce:0x33b};function _0x52d18f(_0x3ae265,_0x31d969,_0xbe1e02,_0xdf8ad8){return _0xc7d8a6(_0x3ae265-0x1f,_0x31d969,_0xbe1e02-_0x445f22._0x1d6884,_0x3ae265-_0x445f22._0x4518ce);}this[_0x52d18f(_0x574c8e._0x14e2ee,_0x574c8e._0x23c8d9,_0x574c8e._0x55a189,0x2f0)]=_0x2fb2e0[_0x4699d0(0x383,_0x574c8e._0x113dae,0x3f6,0x45c)]??getDefaultModel(),this[_0x52d18f(_0x574c8e._0x2afb9c,_0x574c8e._0x3bcafc,_0x574c8e._0x2e11df,_0x574c8e._0x521700)]=_0x2fb2e0[_0x52d18f(0x2bf,0x2ff,0x346,_0x574c8e._0x339188)]??getDefaultMaxTokens();function _0x4699d0(_0x189522,_0x4bce6f,_0x3ccd98,_0x2a8e6c){return _0x74a064(_0x189522-_0x567341._0x244fe3,_0x4bce6f-_0x567341._0x4d3c13,_0x3ccd98-0x3a0,_0x4bce6f);}this[_0x4699d0(0x3d3,_0x574c8e._0x3dc49d,_0x574c8e._0x457391,_0x574c8e._0x20bb70)]=_0x2fb2e0[_0x4699d0(_0x574c8e._0x6f832,0x463,_0x574c8e._0x457391,0x4a5)]??_0x52d18f(_0x574c8e._0x397d91,0x23b,0x2ca,0x2ce);const _0x129764=trimTrailingSlashes(_0x2fb2e0[_0x52d18f(0x1e9,_0x574c8e._0x442f95,0x118,0x182)]??resolveDefaultBaseUrl(this[_0x52d18f(_0x574c8e._0x20ce45,0x366,0x242,0x2b8)]));if(isAnthropicSurface(this['surface'])){this[_0x4699d0(_0x574c8e._0x38a2b7,0x3bc,0x3db,0x496)]=new AnthropicModel({'apiKey':_0x2fb2e0[_0x52d18f(_0x574c8e._0x5013c5,0x22b,0x353,0x23d)],'authScheme':_0x2fb2e0[_0x52d18f(0x24e,_0x574c8e._0x3ad7c8,0x30a,0x229)],'baseUrl':_0x129764,'fetch':_0x2fb2e0[_0x52d18f(_0x574c8e._0x3e5f0e,0x322,0x351,0x1d8)],'maxTokens':this[_0x52d18f(_0x574c8e._0x2afb9c,_0x574c8e._0x286560,_0x574c8e._0x4183b6,_0x574c8e._0x417a3b)],'model':this['model'],'reasoning':_0x2fb2e0['reasoning'],'providerSessionResolver':_0x2fb2e0[_0x4699d0(0x412,_0x574c8e._0x5c1eb8,0x401,_0x574c8e._0x814cb1)],'requestMutators':_0x2fb2e0[_0x4699d0(0x478,0x493,_0x574c8e._0x5e13c6,0x3b9)]});return;}this[_0x4699d0(0x432,0x512,0x4db,_0x574c8e._0x3e506e)]=new OpenAiModel({'apiKey':_0x2fb2e0[_0x52d18f(0x2ab,0x2fd,_0x574c8e._0x7843e4,_0x574c8e._0x244221)],'baseUrl':_0x129764,'fetch':_0x2fb2e0['fetch'],'headerResolver':_0x2fb2e0[_0x4699d0(_0x574c8e._0xbbc79b,0x47c,0x3e1,_0x574c8e._0x45cb72)],'maxTokens':this[_0x52d18f(0x2bf,_0x574c8e._0x50a7a5,_0x574c8e._0x1133fd,0x243)],'model':this[_0x4699d0(_0x574c8e._0x46294a,_0x574c8e._0x49c055,0x3f6,0x41b)],'reasoning':_0x2fb2e0[_0x52d18f(_0x574c8e._0x3ef5bf,0x35a,_0x574c8e._0x2a5219,0x231)],'providerSessionResolver':_0x2fb2e0[_0x4699d0(_0x574c8e._0x40f186,0x3ae,0x401,0x477)],'requestMutators':_0x2fb2e0[_0x4699d0(_0x574c8e._0x1bdb3f,0x37f,0x3be,_0x574c8e._0x2f5ba7)],'webSocketFactory':_0x2fb2e0['webSocketFactory']});}[_0xc7d8a6(-0x1e9,-0x1ef,-0x24d,-0x170)](){const _0x48e849={_0xaaeaa8:0x53,_0x5ed402:0xd9,_0x1f2fa8:0xc4,_0x2f605c:0x77,_0x1be4cd:0x40,_0x3fa484:0x6},_0x4d9d95={_0x56a708:0x19d,_0x1fd718:0x84,_0x318785:0x63};function _0xa21712(_0x456ede,_0x291237,_0x5701b6,_0x463204){return _0x74a064(_0x456ede-_0x4d9d95._0x56a708,_0x291237-_0x4d9d95._0x1fd718,_0x291237-_0x4d9d95._0x318785,_0x456ede);}if(!this[_0x136f26(0x1e,_0x48e849._0xaaeaa8,_0x48e849._0x5ed402,-0x2)])throw new Error(_0x136f26(-_0x48e849._0x1f2fa8,_0x48e849._0x2f605c,0x70,-_0x48e849._0x1be4cd)+this[_0x136f26(-0x75,0xe0,_0x48e849._0x3fa484,0x68)]);function _0x136f26(_0xe9fc95,_0x5cce65,_0x261290,_0x4dc5cf){return _0xc7d8a6(_0xe9fc95-0x99,_0x261290,_0x261290-0x103,_0x4dc5cf-0x115);}return this[_0x136f26(0x4d,0xaf,0x86,-0x2)];}[_0x74a064(0x22,0x56,-0x6b,-0xa8)](){const _0x35df0b={_0x141727:0x12b,_0x14eeeb:0x92,_0x4001ae:0x147,_0x54e721:0x17f,_0x541bf5:0xf0,_0x31a9d4:0x1c1,_0x241973:0xeb},_0x3e9b72={_0x35d03b:0x1d7,_0x89d148:0x114},_0x55f5a0={_0x469380:0x5e};function _0x2a1a1c(_0x34f989,_0x103e5e,_0x354e7d,_0x273234){return _0x74a064(_0x34f989-_0x55f5a0._0x469380,_0x103e5e-0xd3,_0x354e7d- -0x13a,_0x273234);}function _0x35644a(_0x5907c3,_0x383686,_0xb246fa,_0x4a9e15){return _0xc7d8a6(_0x5907c3-0x1f,_0x4a9e15,_0xb246fa-_0x3e9b72._0x35d03b,_0x383686- -_0x3e9b72._0x89d148);}if(!this[_0x35644a(-0x15c,-_0x35df0b._0x141727,-_0x35df0b._0x14eeeb,-0x75)])throw new Error(_0x2a1a1c(-_0x35df0b._0x4001ae,-0x15f,-_0x35df0b._0x54e721,-_0x35df0b._0x541bf5)+this[_0x35644a(-0x27b,-_0x35df0b._0x31a9d4,-0x209,-_0x35df0b._0x241973)]);return this['openAiDelegate'];}['complete'](_0xb303ea,_0xd071c1){const _0xdae280={_0xcfbb49:0xf1,_0x4de1d0:0xed,_0x4d6520:0x6a,_0x57368f:0x516,_0x2b7301:0x522,_0x16ec75:0x53e,_0x57dc73:0x633,_0x324e24:0x536,_0x2fb419:0x501,_0xbb0e12:0x5c5,_0x55bdc8:0x3d4,_0x32272a:0x567,_0x1e42a9:0x47e,_0x441b23:0x4a3,_0x544968:0x5f1,_0x3009e6:0x4c4,_0x34f9c9:0x41c,_0x46c9f8:0x3e,_0x11b5de:0x4cc,_0x34264e:0x468,_0xce645:0x57f},_0x3600cb={_0x1260b4:0x62},_0x4aef7a={_0x510319:0x79};function _0x52d9b1(_0x29cc00,_0x457b6e,_0x1a52f4,_0x31d577){return _0xc7d8a6(_0x29cc00-_0x4aef7a._0x510319,_0x457b6e,_0x1a52f4-0x1af,_0x31d577-0x197);}function _0x457105(_0x1a1311,_0x2f959f,_0x18b9fe,_0x3d40c2){return _0x74a064(_0x1a1311-_0x3600cb._0x1260b4,_0x2f959f-0x1cf,_0x3d40c2-0x50e,_0x18b9fe);}switch(this[_0x52d9b1(_0xdae280._0xcfbb49,0x4,0x1a,0xea)]){case _0x52d9b1(0xc5,_0xdae280._0x4de1d0,_0xdae280._0x4d6520,0x55):return this[_0x457105(0x4ca,_0xdae280._0x57368f,_0xdae280._0x2b7301,0x4f0)]()[_0x457105(_0xdae280._0x16ec75,_0xdae280._0x57dc73,_0xdae280._0x324e24,0x588)](_0xb303ea,_0xd071c1);case _0x457105(_0xdae280._0x2fb419,0x577,0x5d6,_0xdae280._0xbb0e12):return this[_0x457105(_0xdae280._0x55bdc8,_0xdae280._0x32272a,_0xdae280._0x1e42a9,_0xdae280._0x441b23)]()[_0x457105(_0xdae280._0x544968,0x583,_0xdae280._0x3009e6,0x569)](_0xb303ea,_0xd071c1);case'openai-responses-ws':return this[_0x457105(_0xdae280._0x34f9c9,0x45a,0x4ea,0x4a3)]()[_0x52d9b1(0x6d,0x125,-0x2f,_0xdae280._0x46c9f8)](_0xb303ea,_0xd071c1);default:return this[_0x457105(_0xdae280._0x11b5de,_0xdae280._0x34264e,_0xdae280._0xce645,0x4a3)]()[_0x52d9b1(0x1ab,0x142,0xdb,0x135)](_0xb303ea,_0xd071c1);}}[_0x74a064(0xd9,0x14,0x42,0xe6)](_0x514a74,_0x3d0c75){const _0x3daf04={_0x37a452:0x107,_0x266e53:0x1a7,_0x2c3957:0x10e,_0x5eae53:0x32d,_0x173586:0x44c,_0x204528:0x3a9,_0x2fddaf:0x14a,_0x272c70:0x20a,_0x4a264a:0x203,_0x45be89:0x4ed,_0x2c80d3:0x23b,_0x56e41d:0x23e,_0x36075c:0x20d,_0x4a00da:0x362,_0x2fca86:0x322,_0x5209a2:0x38e,_0x2ed302:0x32e,_0x30cfa1:0x425,_0x514c3b:0x36d,_0x9c4d59:0x225},_0x2a6aa6={_0x3ec1ed:0x1ee,_0xb2bd62:0x399},_0x21b35c={_0x4d55fc:0x38};function _0x25ca0c(_0x43099b,_0x1d656a,_0x458cff,_0x40b390){return _0xc7d8a6(_0x43099b-0xab,_0x40b390,_0x458cff-_0x21b35c._0x4d55fc,_0x458cff- -0xfa);}function _0x11c53b(_0x1b2dc1,_0x8bca03,_0x41a4bb,_0x5976bf){return _0x74a064(_0x1b2dc1-_0x2a6aa6._0x3ec1ed,_0x8bca03-0x54,_0x5976bf-_0x2a6aa6._0xb2bd62,_0x1b2dc1);}switch(this[_0x25ca0c(-0x124,-_0x3daf04._0x37a452,-_0x3daf04._0x266e53,-_0x3daf04._0x2c3957)]){case _0x11c53b(_0x3daf04._0x5eae53,_0x3daf04._0x173586,0x403,_0x3daf04._0x204528):return this['getAnthropicDelegate']()[_0x25ca0c(-0x22f,-_0x3daf04._0x2fddaf,-_0x3daf04._0x272c70,-_0x3daf04._0x4a264a)](_0x514a74,_0x3d0c75);case _0x11c53b(0x399,0x37a,_0x3daf04._0x45be89,0x450):return this[_0x25ca0c(-_0x3daf04._0x2c80d3,-_0x3daf04._0x56e41d,-0x2b7,-_0x3daf04._0x36075c)]()['responseStream'](_0x514a74,_0x3d0c75);case _0x11c53b(0x3c4,_0x3daf04._0x4a00da,0x423,0x434):return this[_0x11c53b(0x36b,_0x3daf04._0x2fca86,_0x3daf04._0x5209a2,_0x3daf04._0x2ed302)]()[_0x11c53b(0x391,_0x3daf04._0x30cfa1,0x2e5,0x342)](_0x514a74,_0x3d0c75);default:return this[_0x11c53b(_0x3daf04._0x514c3b,0x33b,0x28b,0x32e)]()[_0x25ca0c(-_0x3daf04._0x9c4d59,-0x1ff,-0x22d,-0x189)](_0x514a74,_0x3d0c75);}}};import{randomUUID}from'crypto';var GitHubAccessTokenResolver=class{[_0x74a064(0xb6,0x73,0x148,0xd7)];['baseUrl'];[_0xc7d8a6(-0xde,-0x60,-0xaa,-0x4c)];[_0x74a064(0xa7,-0x18,0xbc,0x185)];[_0xc7d8a6(-0x1b1,-0x177,-0xe9,-0x183)];constructor(_0x493559){const _0x4b6aa3={_0x3d8f32:0x46,_0x494f2b:0x4d,_0x4e5665:0x11c,_0x3934ba:0x196,_0xac99a5:0x340,_0xb1f443:0xbe,_0x3f528b:0x9d,_0x1149a0:0x3a,_0x50eb0e:0x128,_0x144428:0x140,_0x106353:0x121,_0x444b4f:0x17d,_0x1d802a:0x130,_0x581421:0x1a8,_0x4579bb:0xc1,_0x1a5e44:0x323,_0x1455f4:0x31d,_0x3739d8:0x295},_0xf5f8cb={_0x53cc37:0x172,_0x800510:0x264},_0x1badb1={_0xe41984:0xe7,_0x149898:0x14a};this[_0xb3a59f(-0x17d,-_0x4b6aa3._0x3d8f32,-_0x4b6aa3._0x494f2b,-_0x4b6aa3._0x4e5665)]=_0x493559['accessToken'],this['baseUrl']=trimTrailingSlashes2(_0x493559[_0xb3a59f(-0x2ba,-_0x4b6aa3._0x3934ba,-_0x4b6aa3._0xac99a5,-0x264)]);function _0x1a3e33(_0x452776,_0x243911,_0x2e1e6a,_0x207d65){return _0xc7d8a6(_0x452776-0x18,_0x2e1e6a,_0x2e1e6a-_0x1badb1._0xe41984,_0x207d65-_0x1badb1._0x149898);}function _0xb3a59f(_0x390782,_0x1dbe08,_0x3d8fa3,_0x17cebf){return _0x74a064(_0x390782-0x1a8,_0x1dbe08-_0xf5f8cb._0x53cc37,_0x17cebf- -_0xf5f8cb._0x800510,_0x3d8fa3);}this[_0xb3a59f(-0x7e,-0xb2,-_0x4b6aa3._0xb1f443,-0x15e)]=_0x493559[_0x1a3e33(0xc9,-0x6,_0x4b6aa3._0x3f528b,0xb5)],this[_0x1a3e33(_0x4b6aa3._0x1149a0,_0x4b6aa3._0x50eb0e,_0x4b6aa3._0x144428,0xb4)]=trimTrailingSlashes2(_0x493559[_0xb3a59f(-_0x4b6aa3._0x106353,-_0x4b6aa3._0x444b4f,-_0x4b6aa3._0x1d802a,-_0x4b6aa3._0x581421)]),this[_0x1a3e33(-_0x4b6aa3._0x4579bb,-0xf6,-0x12,-0x39)]=_0x493559[_0xb3a59f(-0x375,-_0x4b6aa3._0x1a5e44,-_0x4b6aa3._0x1455f4,-_0x4b6aa3._0x3739d8)];}async[_0x74a064(-0x73,-0xc9,-0x13,-0x86)](_0x2da7ce){const _0x15ddda={_0x2b4448:0x392,_0x575f6b:0x463,_0x4239ac:0x328,_0x522584:0x254,_0x5bf146:0x228,_0x5e892c:0x322,_0x2df7ee:0x2c8,_0xb2827e:0x41a,_0x23c26c:0x342,_0x1b237d:0x37d,_0x307deb:0x23b,_0x3b923a:0x254,_0x232aef:0x308,_0x10de3a:0x2bb,_0x54c054:0x504,_0x24cc68:0x52d,_0x55572b:0x457,_0xe0d703:0x44d,_0x21d52a:0x1bf,_0x33ae9d:0x1cf,_0x8a34ad:0x204,_0xc96466:0x453,_0x1225d2:0x4c5,_0x1f979a:0x3e3,_0x3890ad:0x462,_0x573dad:0x31a,_0x2fb7c5:0x237,_0x5a59f0:0x21c,_0xcd0f69:0x261,_0x1a9ccf:0x287,_0x493ddb:0x2d3,_0x226746:0x29c,_0x1dfecc:0x36f,_0x265d81:0x4cc,_0x5aa538:0x389,_0x50bbce:0x379,_0xb15695:0x39f,_0x4068f5:0x381,_0xf56b85:0x383},_0x9126ae={_0x34210c:0x19a},_0x52f3a3={_0x368cfd:0x7b,_0x38cce5:0x46c},_0x7eb8b4=await this['fetchImpl'](this['githubApiUrl']+_0x5b10cb(_0x15ddda._0x2b4448,_0x15ddda._0x575f6b,0x3a2,_0x15ddda._0x4239ac),{'method':_0x134ef3(_0x15ddda._0x522584,0x204,_0x15ddda._0x5bf146,0x2a5),'headers':new Headers({'accept':'application/json','authorization':_0x134ef3(0x2a5,_0x15ddda._0x5e892c,_0x15ddda._0x2df7ee,0x304)+this[_0x134ef3(_0x15ddda._0xb2827e,_0x15ddda._0x23c26c,_0x15ddda._0x1b237d,0x2ad)],'editor-version':_0x134ef3(_0x15ddda._0x307deb,_0x15ddda._0x3b923a,_0x15ddda._0x232aef,_0x15ddda._0x10de3a),'user-agent':_0x5b10cb(_0x15ddda._0x54c054,_0x15ddda._0x24cc68,_0x15ddda._0x55572b,_0x15ddda._0xe0d703),'x-github-api-version':this[_0x134ef3(_0x15ddda._0x21d52a,_0x15ddda._0x33ae9d,_0x15ddda._0x8a34ad,0x2cd)]}),'signal':_0x2da7ce});function _0x5b10cb(_0xe75c2a,_0x48142f,_0x1e9d90,_0xfa3fe2){return _0xc7d8a6(_0xe75c2a-_0x52f3a3._0x368cfd,_0xe75c2a,_0x1e9d90-0x182,_0x1e9d90-_0x52f3a3._0x38cce5);}function _0x134ef3(_0x4af515,_0x1b7abb,_0x79478f,_0x161a70){return _0x74a064(_0x4af515-_0x9126ae._0x34210c,_0x1b7abb-0x14,_0x79478f-0x235,_0x1b7abb);}if(!_0x7eb8b4['ok'])return{'credential':{'kind':_0x5b10cb(_0x15ddda._0xc96466,_0x15ddda._0x1225d2,_0x15ddda._0x1f979a,0x396),'value':this[_0x5b10cb(0x4dd,0x466,_0x15ddda._0x3890ad,0x467)]},'endpoints':{'api':this[_0x5b10cb(0x3d4,0x27e,_0x15ddda._0x573dad,_0x15ddda._0x2fb7c5)]}};const _0x469db7=await _0x7eb8b4['json']();return{'credential':{'kind':'session-token','value':_0x469db7[_0x134ef3(_0x15ddda._0x5a59f0,_0x15ddda._0xcd0f69,_0x15ddda._0x1a9ccf,0x297)]??this[_0x5b10cb(0x3a9,0x382,0x462,0x50b)]},'endpoints':{'api':_0x469db7['endpoints']?.['api']??this[_0x134ef3(_0x15ddda._0x493ddb,0x1b8,0x235,0x274)],'originTracker':_0x469db7[_0x134ef3(0x2f1,0x2e8,_0x15ddda._0x226746,0x357)]?.['origin-tracker'],'proxy':_0x469db7[_0x134ef3(0x299,_0x15ddda._0x1dfecc,0x29c,0x25a)]?.[_0x5b10cb(_0x15ddda._0x265d81,_0x15ddda._0x5aa538,0x415,_0x15ddda._0x50bbce)],'telemetry':_0x469db7[_0x5b10cb(_0x15ddda._0xb15695,0x3ea,_0x15ddda._0x4068f5,_0x15ddda._0xf56b85)]?.['telemetry']}};}};function trimTrailingSlashes2(_0x5e5c33){return _0x5e5c33['replace'](/\/+$/,'');}function createModelInfo(_0xb9fce5){const _0x3fdfc3={_0x388b2b:0x22,_0x50d294:0x9,_0x34b4b7:0x1e,_0x1af95c:0x153,_0x2634af:0x8e,_0x5c450c:0x4cd,_0x200738:0x4bb,_0x3912b0:0x57b,_0x44a316:0x5be,_0x553427:0x542,_0x1e59b7:0x5c6,_0x284cd2:0x664,_0x95af02:0x6a},_0x109bab={_0x317fe5:0x156,_0x389e47:0xc7},_0x47f464={_0x504223:0x13e,_0x594aaa:0xd4,_0x5964ed:0x494},_0x39de40=_0xb9fce5['supported_endpoints']??_0xb9fce5[_0x58c4b2(_0x3fdfc3._0x388b2b,0x7a,0xca,0x2c)];function _0x455543(_0x38f6f9,_0xb9012c,_0x25b32f,_0x52b06c){return _0x74a064(_0x38f6f9-_0x47f464._0x504223,_0xb9012c-_0x47f464._0x594aaa,_0x25b32f-_0x47f464._0x5964ed,_0xb9012c);}const _0x3894e6=_0xb9fce5[_0x58c4b2(-_0x3fdfc3._0x50d294,0xa7,0x6d,-_0x3fdfc3._0x34b4b7)]?.[_0x58c4b2(0x239,_0x3fdfc3._0x1af95c,_0x3fdfc3._0x2634af,0x85)]?.[_0x455543(0x4bb,_0x3fdfc3._0x5c450c,_0x3fdfc3._0x200738,_0x3fdfc3._0x3912b0)];function _0x58c4b2(_0x2f0c79,_0x24a061,_0x497a55,_0x17cef7){return _0x74a064(_0x2f0c79-_0x109bab._0x317fe5,_0x24a061-_0x109bab._0x389e47,_0x24a061-0x8e,_0x497a55);}const _0x2b1b85=_0xb9fce5['capabilities']?.['limits']?.[_0x455543(_0x3fdfc3._0x44a316,_0x3fdfc3._0x553427,_0x3fdfc3._0x1e59b7,_0x3fdfc3._0x284cd2)],_0x4b297d=_0x3894e6!==void 0x0||_0x2b1b85!==void 0x0?{..._0x3894e6!==void 0x0?{'contextWindow':_0x3894e6}:{},..._0x2b1b85!==void 0x0?{'maxOutput':_0x2b1b85}:{}}:void 0x0;return{'id':_0xb9fce5['id'],'name':_0xb9fce5[_0x58c4b2(-0x9,0x40,-0x51,_0x3fdfc3._0x95af02)]??_0xb9fce5['id'],..._0x4b297d?{'limits':_0x4b297d}:{},..._0x39de40?{'supportedEndpoints':_0x39de40}:{}};}function deduplicateModels(_0x129bc7){const _0xad697e={_0x2a9cfe:0x1c8,_0x1bf738:0x258,_0x55ab41:0x158},_0xee84c3={_0x476029:0x1ac},_0x261e99={_0x1a0787:0x195,_0x504560:0x1f7};function _0x23fbb4(_0x13a453,_0x4c4cbf,_0x3578a7,_0x293ac8){return _0x74a064(_0x13a453-0x136,_0x4c4cbf-_0x261e99._0x1a0787,_0x13a453- -_0x261e99._0x504560,_0x293ac8);}const _0x14208d=new Map();for(const _0x3cb7da of _0x129bc7){!_0x14208d[_0x23fbb4(-_0xad697e._0x2a9cfe,-_0xad697e._0x1bf738,-0x290,-0x1b1)](_0x3cb7da['id'])&&_0x14208d[_0x23fbb4(-0xdb,-_0xad697e._0x55ab41,-0x14,-0xc5)](_0x3cb7da['id'],_0x3cb7da);}function _0x336d07(_0x3f8480,_0x307fc1,_0x5d1f85,_0x5d16f0){return _0x74a064(_0x3f8480-0x30,_0x307fc1-_0xee84c3._0x476029,_0x3f8480- -0x265,_0x307fc1);}return Array['from'](_0x14208d['values']());}function hasUserPromptContent(_0x1a8dee){const _0x2fc15e={_0x3b9551:0xe7,_0x52bebb:0xac,_0x53e889:0x2f3,_0x3d8fb0:0x2cd,_0x5829b3:0x1e7,_0x386173:0x85,_0x582a22:0x14f,_0x393bf1:0x1b3,_0x46c287:0x19d,_0x38ba50:0x162,_0x5b0947:0xdb,_0x379c45:0x1b3},_0x4dfad4={_0x5c843a:0x28,_0x35b80c:0x3c,_0x4d55e3:0x1d,_0x40ec2d:0x13a,_0x3abb25:0xee,_0x1f4833:0xc2,_0x586035:0xf3,_0x3f89bc:0xe1,_0x16d816:0xcc,_0xb5adc7:0xe6,_0xf8ded6:0x144,_0x5aa72f:0x1d1,_0x516bbe:0x11f,_0x55e392:0x1f2,_0x1a90b5:0xcd,_0x19c574:0x1cf,_0x1dc88b:0x169,_0x234452:0xbc},_0x5e9ed9={_0x2e5070:0x188,_0x304c13:0x19d},_0x511730={_0x11097c:0xb3,_0x3b285c:0x1a3};if(typeof _0x1a8dee===_0x2e56e0(-0x5a,-0xdd,-_0x2fc15e._0x3b9551,-_0x2fc15e._0x52bebb))return _0x1a8dee[_0x268d25(0x224,0x16e,0x202,0x22e)]()[_0x268d25(_0x2fc15e._0x53e889,_0x2fc15e._0x3d8fb0,_0x2fc15e._0x5829b3,0x2b9)]>0x0;if(!Array[_0x268d25(_0x2fc15e._0x386173,_0x2fc15e._0x582a22,_0x2fc15e._0x393bf1,_0x2fc15e._0x46c287)](_0x1a8dee))return![];function _0x268d25(_0x4781b5,_0x5330bf,_0x5a8c0f,_0xa5179e){return _0x74a064(_0x4781b5-0x20,_0x5330bf-_0x511730._0x11097c,_0x5330bf-_0x511730._0x3b285c,_0xa5179e);}function _0x2e56e0(_0x42730c,_0x575039,_0x54c72a,_0x277a2e){return _0x74a064(_0x42730c-_0x5e9ed9._0x2e5070,_0x575039-_0x5e9ed9._0x304c13,_0x54c72a- -0x71,_0x277a2e);}return _0x1a8dee[_0x2e56e0(-_0x2fc15e._0x38ba50,-0x19a,-_0x2fc15e._0x5b0947,-_0x2fc15e._0x379c45)](_0x1f446d=>{if(!_0x1f446d||typeof _0x1f446d!=='object')return![];function _0x23f361(_0x29347d,_0xa3562f,_0x75bb13,_0x42f59b){return _0x268d25(_0x29347d-0xb3,_0x29347d- -0x1f7,_0x75bb13-0x28,_0x75bb13);}const _0x381672=_0x1f446d;function _0x258834(_0x58d747,_0x50b514,_0x4c49c9,_0x18754d){return _0x2e56e0(_0x58d747-0x123,_0x50b514-0xed,_0x4c49c9- -0xb9,_0x18754d);}return(_0x381672[_0x23f361(-0xb,-_0x4dfad4._0x5c843a,_0x4dfad4._0x35b80c,_0x4dfad4._0x4d55e3)]===_0x23f361(-0xcb,-_0x4dfad4._0x40ec2d,-_0x4dfad4._0x3abb25,-_0x4dfad4._0x1f4833)||_0x381672[_0x258834(-0x162,-_0x4dfad4._0x586035,-_0x4dfad4._0x3f89bc,-_0x4dfad4._0x16d816)]===_0x258834(-0xcc,-_0x4dfad4._0xb5adc7,-_0x4dfad4._0xf8ded6,-0xd7))&&typeof _0x381672[_0x258834(-0x1be,-_0x4dfad4._0x5aa72f,-_0x4dfad4._0xf8ded6,-0x9c)]==='string'&&_0x381672[_0x258834(-0x64,-0x161,-0x144,-_0x4dfad4._0x516bbe)][_0x258834(-_0x4dfad4._0x55e392,-_0x4dfad4._0x1a90b5,-0x15f,-_0x4dfad4._0x19c574)]()[_0x23f361(0xd6,0xc7,_0x4dfad4._0x1dc88b,_0x4dfad4._0x234452)]>0x0;});}function _0x74a064(_0x234716,_0x346d0d,_0x2114cf,_0x55a54c){const _0x3916ed={_0x2ad9bd:0x15c};return _0x4762(_0x2114cf- -_0x3916ed._0x2ad9bd,_0x55a54c);}function _isUserPromptEntry(_0x27147a){const _0x32592b={_0x5c6f55:0x2ea,_0x2ba9e9:0x4e5,_0x4de8e2:0x4ec,_0x205cdd:0x517,_0x137193:0x516,_0x47cc93:0x1d9,_0x5f0814:0x2ea,_0x4b590b:0x460,_0x14530c:0x3b0,_0x1d68f0:0x2bf,_0x522d46:0x1ee},_0x437022={_0x882a62:0xf3,_0x4695e0:0x43e},_0x26d867={_0x511924:0x2b,_0x341ed2:0x34b};if(!_0x27147a||typeof _0x27147a!==_0x30ce9f(0x2a3,0x20b,_0x32592b._0x5c6f55,0x222))return![];const _0x52509a=_0x27147a;if(_0x52509a[_0x4ae934(_0x32592b._0x2ba9e9,_0x32592b._0x4de8e2,_0x32592b._0x205cdd,_0x32592b._0x137193)]!==_0x30ce9f(_0x32592b._0x47cc93,0x254,0x22b,0x2ab))return![];function _0x30ce9f(_0x1cea02,_0x1c7730,_0x209021,_0x549364){return _0xc7d8a6(_0x1cea02-0x190,_0x1c7730,_0x209021-_0x26d867._0x511924,_0x1cea02-_0x26d867._0x341ed2);}if(_0x52509a[_0x30ce9f(0x242,0x23d,0x1aa,_0x32592b._0x5f0814)]!==void 0x0&&_0x52509a[_0x4ae934(0x51e,0x487,_0x32592b._0x4b590b,_0x32592b._0x14530c)]!=='message')return![];function _0x4ae934(_0x397f9b,_0x896d29,_0x254528,_0x4f633d){return _0x74a064(_0x397f9b-_0x437022._0x882a62,_0x896d29-0xfe,_0x896d29-_0x437022._0x4695e0,_0x397f9b);}return hasUserPromptContent(_0x52509a[_0x30ce9f(_0x32592b._0x1d68f0,0x34d,_0x32592b._0x522d46,0x39e)]);}function _0x4762(_0x503aa1,_0x3f9693){_0x503aa1=_0x503aa1-0xd8;const _0xc15593=_0xc155();let _0x4762ed=_0xc15593[_0x503aa1];if(_0x4762['Axlnft']===undefined){var _0x24a6b6=function(_0x325e34){const _0x143505='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4c15c5='',_0x56ddf3='';for(let _0x4cf5d7=0x0,_0x40cd49,_0x141ec9,_0x2a31b6=0x0;_0x141ec9=_0x325e34['charAt'](_0x2a31b6++);~_0x141ec9&&(_0x40cd49=_0x4cf5d7%0x4?_0x40cd49*0x40+_0x141ec9:_0x141ec9,_0x4cf5d7++%0x4)?_0x4c15c5+=String['fromCharCode'](0xff&_0x40cd49>>(-0x2*_0x4cf5d7&0x6)):0x0){_0x141ec9=_0x143505['indexOf'](_0x141ec9);}for(let _0x17c2d1=0x0,_0x59af70=_0x4c15c5['length'];_0x17c2d1<_0x59af70;_0x17c2d1++){_0x56ddf3+='%'+('00'+_0x4c15c5['charCodeAt'](_0x17c2d1)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x56ddf3);};_0x4762['fgQMPO']=_0x24a6b6,_0x4762['CGghnP']={},_0x4762['Axlnft']=!![];}const _0x4b32f9=_0xc15593[0x0],_0x4b8c8f=_0x503aa1+_0x4b32f9,_0x248d7c=_0x4762['CGghnP'][_0x4b8c8f];return!_0x248d7c?(_0x4762ed=_0x4762['fgQMPO'](_0x4762ed),_0x4762['CGghnP'][_0x4b8c8f]=_0x4762ed):_0x4762ed=_0x248d7c,_0x4762ed;}function determineInitiator(_0x203315){const _0x326f30={_0x38046b:0x8,_0x11026b:0x38,_0x572801:0x16b,_0x2d38fe:0x134,_0x405733:0x171,_0x63aab0:0x22d,_0xf5ce5f:0x18b,_0xeb1b9d:0x169,_0x298d26:0x8a,_0x3c8d7c:0x16f,_0x51e05a:0x1a8,_0x53a2b8:0x15e,_0xf81b6:0x29,_0x3915f9:0x23f,_0x4bd7b3:0x154,_0x3c3689:0x64},_0x165aa7={_0x3f4976:0x119,_0x2abba3:0x7e},_0x358277={_0x9cd6e4:0x137,_0x1cc9c3:0x156};if(!_0x203315||typeof _0x203315!=='object')return _0x2992b2(-0x2d,-_0x326f30._0x38046b,-_0x326f30._0x11026b,0x29);function _0x2992b2(_0x2f9535,_0x3d1fc4,_0x4b2537,_0x23ad21){return _0x74a064(_0x2f9535-_0x358277._0x9cd6e4,_0x3d1fc4-_0x358277._0x1cc9c3,_0x23ad21- -0x11b,_0x4b2537);}function _0x6559a3(_0xb60b46,_0x3db00d,_0xd17bed,_0x50b1f3){return _0x74a064(_0xb60b46-0x53,_0x3db00d-_0x165aa7._0x3f4976,_0x3db00d-_0x165aa7._0x2abba3,_0x50b1f3);}const _0x32487d=_0x6559a3(0x92,0x175,_0x326f30._0x572801,_0x326f30._0x2d38fe)in _0x203315?_0x203315[_0x6559a3(_0x326f30._0x405733,0x175,_0x326f30._0x63aab0,_0x326f30._0xf5ce5f)]:_0x6559a3(0x129,_0x326f30._0x2d38fe,0x1f0,0x1e8)in _0x203315?_0x203315['input']:void 0x0;if(!Array[_0x2992b2(-0xe0,-_0x326f30._0xeb1b9d,-_0x326f30._0x298d26,-_0x326f30._0x3c8d7c)](_0x32487d)||_0x32487d[_0x6559a3(0x11e,_0x326f30._0x51e05a,0xd6,_0x326f30._0x53a2b8)]===0x0)return _0x2992b2(0x84,0x53,-0x18,_0x326f30._0xf81b6);return _isUserPromptEntry(_0x32487d[_0x32487d[_0x6559a3(_0x326f30._0x3915f9,_0x326f30._0x51e05a,_0x326f30._0x4bd7b3,0x13c)]-0x1])?'user':_0x2992b2(_0x326f30._0x3c3689,0x7d,-0x1e,0x29);}function isUnsupportedApiForModel(_0x1ae4cd){const _0x48d311={_0x24611b:0xb6},_0x59900e={_0x52798e:0x16f,_0x163194:0x1f1};function _0x3cd1ac(_0xe4303b,_0xa7a9d9,_0x2c18dc,_0x34ecf9){return _0xc7d8a6(_0xe4303b-_0x59900e._0x52798e,_0xa7a9d9,_0x2c18dc-_0x59900e._0x163194,_0x34ecf9-0x108);}return _0x1ae4cd[_0x3cd1ac(-0x184,-0x192,-0x147,-_0x48d311._0x24611b)]('unsupported_api_for_model');}function createResponseError(_0x5eb812,_0x445b01){const _0xb25f58={_0x151380:0x45d,_0x2b30b8:0x3b9,_0x23895e:0x35e},_0x10bc17={_0x43ab4a:0xa0};if(_0x5eb812===0x191||_0x5eb812===0x193)return new Error('Authentication\x20failed.\x20Please\x20check\x20your\x20API\x20key.');function _0x5ad168(_0x216ab3,_0x1f7384,_0x3cc9dd,_0x566b8e){return _0xc7d8a6(_0x216ab3-0x169,_0x3cc9dd,_0x3cc9dd-_0x10bc17._0x43ab4a,_0x1f7384-0x448);}if(_0x5eb812===0x198||_0x5eb812===0x1ad)return new Error(_0x5ad168(_0xb25f58._0x151380,_0xb25f58._0x2b30b8,_0xb25f58._0x23895e,0x46f));if(_0x5eb812===0x190)return new Error('Invalid\x20request:\x20'+_0x445b01);return new Error(_0x445b01||'GitHub\x20API\x20error\x20'+_0x5eb812);}var GitHubModel=class extends OpenAiModel{['anthropicDelegate'];[_0x74a064(0x142,0x133,0xad,0xc6)]=new Map();[_0xc7d8a6(-0x93,-0x5b,-0x79,-0xad)];constructor(_0x5bab59={}){const _0x6c9cb={_0x1c396f:0x3e5,_0x57ced4:0x38c,_0x1d2752:0x470,_0x5f5af7:0x409,_0x14e58d:0x514,_0x23470d:0x539,_0x3da64a:0x470,_0x42d489:0x3e9,_0x59ac02:0x466,_0x28aee9:0x3e4,_0x180a83:0x2f6,_0x20778c:0x3c0,_0x577c05:0x270,_0x23e5b9:0x2f7,_0x5b9c15:0x2e7,_0x714777:0x346,_0x1c7a27:0x38e,_0x444283:0x476,_0x4c9a8a:0x3c7,_0x581482:0x472,_0x208831:0x2c3,_0x33f99b:0x33c,_0x1aa50a:0x1f2,_0x28ce04:0x2b6,_0x3feb94:0x221,_0x2d8db1:0x5a4,_0x39218d:0x552,_0xd79d7d:0x483,_0x441899:0x53d,_0xddf0c6:0x4a5,_0x1a9e91:0x4b1,_0x4bd3dd:0x366,_0x1de432:0x346,_0x37a934:0x3e6,_0x5193d6:0x356,_0x49733e:0x364,_0x5128fa:0x3cd,_0x4fdbcc:0x43f,_0x1ce2b1:0x55d,_0x2d6ced:0x5ca,_0x49c263:0x363,_0x160a8a:0x342,_0x1612b8:0x5c4,_0xf432a:0x5df,_0x4c8d34:0x435,_0x53675e:0x505,_0x795700:0x481,_0x133956:0x48e},_0x57f2ac={_0x54b345:0x4e7},_0x569631={_0x2667ab:0xb3,_0x49f4cc:0x47a},_0x10329e=trimTrailingSlashes2(_0x5bab59['baseUrl']??'https://api.individual.githubcopilot.com');function _0x482b6b(_0x94bb4a,_0x446e79,_0x180b4a,_0x16fe8f){return _0xc7d8a6(_0x94bb4a-0x132,_0x94bb4a,_0x180b4a-_0x569631._0x2667ab,_0x446e79-_0x569631._0x49f4cc);}const _0x485de6=_0x5bab59[_0x482b6b(0x340,_0x6c9cb._0x1c396f,0x383,0x303)]??globalThis['fetch'],_0x49914e=_0x5bab59['providerSessionResolver']??(_0x5bab59[_0x482b6b(_0x6c9cb._0x57ced4,_0x6c9cb._0x1d2752,_0x6c9cb._0x5f5af7,_0x6c9cb._0x14e58d)]?new GitHubAccessTokenResolver({'accessToken':_0x5bab59[_0x482b6b(_0x6c9cb._0x23470d,_0x6c9cb._0x3da64a,_0x6c9cb._0x42d489,_0x6c9cb._0x59ac02)],'baseUrl':_0x10329e,'fetch':_0x485de6,'githubApiUrl':_0x5bab59[_0x482b6b(0x3c9,_0x6c9cb._0x28aee9,0x440,0x44c)]??_0x482b6b(0x370,0x3b9,_0x6c9cb._0x180a83,_0x6c9cb._0x20778c),'tokenExchangeApiVersion':_0x5bab59[_0x482b6b(_0x6c9cb._0x577c05,_0x6c9cb._0x23e5b9,_0x6c9cb._0x5b9c15,0x2d3)]??_0x482b6b(_0x6c9cb._0x714777,_0x6c9cb._0x1c7a27,0x45f,0x449)}):void 0x0),_0x3664dc=_0x5bab59[_0x482b6b(_0x6c9cb._0x444283,_0x6c9cb._0x4c9a8a,0x2e8,_0x6c9cb._0x581482)]??_0x482b6b(_0x6c9cb._0x208831,_0x6c9cb._0x33f99b,0x3b6,0x2b3),_0x13773d=_0x5bab59[_0x482b6b(_0x6c9cb._0x1aa50a,_0x6c9cb._0x28ce04,_0x6c9cb._0x3feb94,0x2b4)]??'copilot-chat/0.31.3',_0x996213=({body:_0x1b5439})=>{return{'editor-plugin-version':_0x13773d,'editor-version':_0x3664dc,'x-initiator':determineInitiator(_0x1b5439),'x-request-id':randomUUID()};};function _0x129460(_0x13928f,_0x1c6bc4,_0x2e1380,_0x40d5af){return _0x74a064(_0x13928f-0x147,_0x1c6bc4-0x1a3,_0x1c6bc4-_0x57f2ac._0x54b345,_0x2e1380);}const _0x5a2e43={'apiKey':_0x5bab59['apiKey'],'baseUrl':_0x10329e,'fetch':_0x485de6,'maxTokens':_0x5bab59[_0x129460(_0x6c9cb._0x2d8db1,0x5bd,_0x6c9cb._0x39218d,0x5e6)],'model':_0x5bab59[_0x129460(_0x6c9cb._0xd79d7d,_0x6c9cb._0x441899,0x50f,_0x6c9cb._0xddf0c6)],'reasoning':_0x5bab59[_0x482b6b(0x46a,0x450,_0x6c9cb._0x1a9e91,_0x6c9cb._0x14e58d)],'providerSessionResolver':_0x49914e,'requestMutators':_0x5bab59[_0x482b6b(_0x6c9cb._0x4bd3dd,_0x6c9cb._0x1de432,_0x6c9cb._0x37a934,0x41b)],'headerResolver':_0x996213};super(_0x5a2e43),this[_0x482b6b(0x357,0x3cd,_0x6c9cb._0x5193d6,0x321)]=_0x5bab59[_0x482b6b(_0x6c9cb._0x49733e,_0x6c9cb._0x5128fa,0x42b,_0x6c9cb._0x4fdbcc)]??_0x129460(0x52e,_0x6c9cb._0x1ce2b1,0x4ce,_0x6c9cb._0x2d6ced),this[_0x482b6b(0x43d,_0x6c9cb._0x49c263,0x3f0,0x3c9)]=new AnthropicModel({'apiKey':_0x5bab59[_0x482b6b(0x489,0x3ea,_0x6c9cb._0x160a8a,0x3b0)],'authScheme':_0x129460(0x5d9,_0x6c9cb._0x1612b8,_0x6c9cb._0xf432a,0x52f),'baseUrl':_0x10329e,'fetch':_0x485de6,'headerResolver':_0x996213,'maxTokens':_0x5bab59[_0x482b6b(0x4e4,0x3fe,0x432,0x36d)],'model':_0x5bab59['model'],'reasoning':_0x5bab59['reasoning'],'providerSessionResolver':_0x49914e,'requestMutators':_0x5bab59[_0x129460(_0x6c9cb._0x4c8d34,_0x6c9cb._0x53675e,_0x6c9cb._0x795700,_0x6c9cb._0x133956)]});}['createMissingCredentialError'](){return new Error('GitHubModel\x20requires\x20an\x20apiKey,\x20accessToken,\x20or\x20providerSessionResolver');}[_0x74a064(-0x7f,-0x6a,0x9,-0x23)](_0x10a871){const _0x348858={_0x4b834:0xbc,_0x4b607c:0x63,_0x2f21cb:0x1e3,_0x14e16e:0x223,_0x219e0d:0xe1,_0x4fb6df:0x193,_0x575ce9:0x182,_0x48d4d6:0x13c,_0x14d5c9:0x184,_0x40bc27:0x1d3,_0x535e8d:0x19f},_0x4ef9b9={_0x25adef:0xce},_0x39e9ed=this['modelEndpointCache'][_0x368015(_0x348858._0x4b834,0x131,0xa8,_0x348858._0x4b607c)](_0x10a871);function _0x273e26(_0x5b6816,_0x57b37b,_0x35232a,_0x184478){return _0x74a064(_0x5b6816-0x46,_0x57b37b-_0x4ef9b9._0x25adef,_0x5b6816-0x1f0,_0x57b37b);}function _0x368015(_0x573578,_0x47e3c,_0x4b9c52,_0x500fe2){return _0x74a064(_0x573578-0x9b,_0x47e3c-0x19,_0x4b9c52-0x2f,_0x573578);}if(!_0x39e9ed)return![];return!_0x39e9ed[_0x273e26(0x184,_0x348858._0x2f21cb,_0x348858._0x14e16e,_0x348858._0x219e0d)](_0x273e26(_0x348858._0x4fb6df,0x256,_0x348858._0x575ce9,_0x348858._0x48d4d6))&&_0x39e9ed[_0x273e26(_0x348858._0x14d5c9,_0x348858._0x40bc27,0x172,0xde)](_0x273e26(_0x348858._0x535e8d,0x116,0x25f,0x1ed));}[_0x74a064(0x152,0x11e,0x96,0x43)](_0x5adf28){const _0x429861={_0x52d04c:0xa4,_0xb313c1:0x1ca,_0x4cc044:0x1ac,_0x2d76bb:0xf3,_0x2670fd:0x1cf,_0x11479d:0xa5,_0x365f71:0xa5,_0x34d8cc:0x9e,_0x204922:0x1df,_0x198a35:0x1bd,_0x491f3e:0x138,_0xe2c086:0x21e,_0x59fef3:0x17b,_0x2ccc35:0x148,_0x1128a9:0x9e,_0xbf968d:0x81,_0x224444:0xfb},_0x5437c6={_0x2f118d:0x18d},_0x43dee3=this[_0x349ccf(-0x83,-0xe8,-0xe6,-_0x429861._0x52d04c)][_0x5e2bf3(-_0x429861._0xb313c1,-0x154,-0xea,-_0x429861._0x4cc044)](_0x5adf28[_0x5e2bf3(-0xb2,-0x177,-_0x429861._0x2d76bb,-_0x429861._0x2670fd)]);function _0x349ccf(_0x598eb8,_0x857291,_0x4a4546,_0x3aebe1){return _0xc7d8a6(_0x598eb8-0x4c,_0x857291,_0x4a4546-_0x5437c6._0x2f118d,_0x3aebe1-0x1);}if(!_0x43dee3)return![];if(resolveOpenAiReasoningConfig(_0x5adf28[_0x5e2bf3(-_0x429861._0x11479d,-_0x429861._0x365f71,-0xdb,-_0x429861._0x34d8cc)]))return _0x43dee3[_0x349ccf(-0x199,-_0x429861._0x204922,-0xf1,-_0x429861._0x198a35)](_0x5e2bf3(-_0x429861._0x491f3e,-_0x429861._0xe2c086,-_0x429861._0x59fef3,-0x23b));function _0x5e2bf3(_0x3463ff,_0x2f1498,_0x423cbe,_0x1e3d22){return _0x74a064(_0x3463ff-0xc3,_0x2f1498-0x97,_0x2f1498- -0x1cd,_0x423cbe);}return this[_0x349ccf(-0x143,-0xd1,-0x1fd,-_0x429861._0x2ccc35)](_0x5adf28[_0x349ccf(-_0x429861._0x1128a9,-_0x429861._0xbf968d,-0xc6,-_0x429861._0x224444)]);}['markModelAsResponsesOnly'](_0x3c45de){const _0x1d7135={_0x20f2f0:0x323,_0x58cdf3:0x2c3,_0x16e570:0x3d9,_0x45c99f:0x349,_0x33cdbd:0x11a,_0x1e5291:0x7e,_0x58b61a:0x5f,_0x5797d2:0x109},_0x3e5a98={_0x57fd67:0x185,_0x26b8ef:0x1b8,_0x41b669:0xb8};function _0xf66ed4(_0x4f281e,_0x5816c0,_0x2fe86d,_0x483a83){return _0x74a064(_0x4f281e-0x1c5,_0x5816c0-0xa7,_0x5816c0-0x216,_0x483a83);}function _0x478249(_0x3721fa,_0x3a055f,_0x5b7884,_0x207373){return _0x74a064(_0x3721fa-_0x3e5a98._0x57fd67,_0x3a055f-_0x3e5a98._0x26b8ef,_0x207373- -_0x3e5a98._0x41b669,_0x3a055f);}this[_0xf66ed4(_0x1d7135._0x20f2f0,_0x1d7135._0x58cdf3,0x2e7,0x1f4)][_0xf66ed4(_0x1d7135._0x16e570,0x332,0x3cd,_0x1d7135._0x45c99f)](_0x3c45de,[_0x478249(-_0x1d7135._0x33cdbd,-_0x1d7135._0x1e5291,-_0x1d7135._0x58b61a,-_0x1d7135._0x5797d2)]);}['mapApiError'](_0x301816){const _0x182c40={_0x5af0a6:0x2be,_0x25eeaf:0x1f6,_0x40beaf:0x2dc,_0x3e6b96:0xaa,_0x390ff4:0x76,_0x349111:0x97,_0x4aa272:0xbe,_0x3a38a4:0x146},_0x1ff733={_0x251e2a:0x16,_0x28fcba:0x43};if(_0x301816 instanceof OpenAiApiError)return createResponseError(_0x301816[_0x2e6ff9(_0x182c40._0x5af0a6,_0x182c40._0x25eeaf,0x28a,_0x182c40._0x40beaf)],_0x301816[_0x1a4536(_0x182c40._0x3e6b96,_0x182c40._0x390ff4,0x64,0xd8)]||_0x301816[_0x1a4536(_0x182c40._0x349111,_0x182c40._0x4aa272,_0x182c40._0x3a38a4,0xec)]);function _0x2e6ff9(_0x1b7e2d,_0x5d2481,_0x85549e,_0x1e0731){return _0xc7d8a6(_0x1b7e2d-0x17f,_0x85549e,_0x85549e-0x74,_0x1b7e2d-0x3a3);}function _0x1a4536(_0x428c1e,_0x14cf10,_0x21c8bc,_0x29007d){return _0x74a064(_0x428c1e-0x41,_0x14cf10-_0x1ff733._0x251e2a,_0x29007d-_0x1ff733._0x28fcba,_0x428c1e);}return _0x301816;}['completeViaConfiguredSurface'](_0x211d4a,_0x4cea0d){const _0x4b8e5a={_0x545764:0x9e,_0x6b5fd4:0x19b,_0x1ffd50:0x10f,_0x4ac6e0:0x3ac,_0x433e5b:0x446,_0x57e5df:0x363,_0x3ebebe:0x6c,_0x4ddb2e:0x3cd,_0x17c4bc:0x465,_0x3a12d6:0x526,_0x4cd451:0x4c5,_0x44505e:0x473,_0x5c813f:0x430,_0x25a8a0:0x40a,_0x5e89c4:0x489,_0x110fbb:0x2c7,_0x563f6b:0x13b,_0x27d109:0xe8,_0x280cb3:0x186,_0x56623d:0x17a,_0x163d05:0x11,_0x18da7d:0x123,_0x83ef7a:0x1a5,_0x48d851:0xee,_0x2e97d3:0x1a0},_0x3f9dbd={_0x12bf17:0x4d},_0x556ac6={_0x1f51b8:0x1a7,_0x4bd2c5:0x70,_0x2257a2:0x353};function _0x9344d5(_0x8efcbe,_0x382cb6,_0x49e805,_0x2ce687){return _0x74a064(_0x8efcbe-_0x556ac6._0x1f51b8,_0x382cb6-_0x556ac6._0x4bd2c5,_0x2ce687-_0x556ac6._0x2257a2,_0x8efcbe);}switch(this[_0xd52a88(_0x4b8e5a._0x545764,0xf2,_0x4b8e5a._0x6b5fd4,_0x4b8e5a._0x1ffd50)]){case _0x9344d5(_0x4b8e5a._0x4ac6e0,_0x4b8e5a._0x433e5b,0x3eb,_0x4b8e5a._0x57e5df):return this[_0xd52a88(_0x4b8e5a._0x3ebebe,0x88,0x12d,-0x2c)][_0x9344d5(0x309,0x3ae,0x458,_0x4b8e5a._0x4ddb2e)](_0x211d4a,_0x4cea0d);case _0x9344d5(0x402,0x464,0x527,_0x4b8e5a._0x17c4bc):return this[_0x9344d5(_0x4b8e5a._0x3a12d6,_0x4b8e5a._0x4cd451,0x428,0x443)](_0x211d4a,_0x4cea0d);case _0x9344d5(_0x4b8e5a._0x44505e,0x4a0,_0x4b8e5a._0x5c813f,_0x4b8e5a._0x25a8a0):return this[_0x9344d5(_0x4b8e5a._0x5e89c4,_0x4b8e5a._0x110fbb,0x312,0x3ae)](_0x211d4a,_0x4cea0d);case _0xd52a88(_0x4b8e5a._0x563f6b,_0x4b8e5a._0x27d109,_0x4b8e5a._0x280cb3,_0x4b8e5a._0x56623d):return this[_0xd52a88(-0x6b,0x46,-0x44,0xcd)](_0x211d4a,_0x4cea0d);case _0xd52a88(_0x4b8e5a._0x163d05,0xc3,0x102,0x28):return this[_0xd52a88(0x171,0xc7,_0x4b8e5a._0x18da7d,_0x4b8e5a._0x83ef7a)](_0x211d4a,_0x4cea0d);}function _0xd52a88(_0x89b1b5,_0x48c399,_0x28c830,_0x26a4e7){return _0x74a064(_0x89b1b5-0x1ca,_0x48c399-0x45,_0x48c399-_0x3f9dbd._0x12bf17,_0x89b1b5);}throw new Error(_0xd52a88(0xa0,_0x4b8e5a._0x48d851,_0x4b8e5a._0x2e97d3,0x36)+String(this[_0xd52a88(0xc8,0xf2,0xde,0x1a7)]));}['streamViaConfiguredSurface'](_0x3acb88,_0x4489b2){const _0x335c3e={_0x3db27f:0x9b,_0x2c4405:0xa2,_0x2ec88f:0x568,_0x4e3214:0x527,_0x1066de:0x5f3,_0x48d1b5:0x573,_0x4a89f1:0x55f,_0x4e056b:0x5f9,_0x6cfd7f:0x648,_0x2c9ed3:0x107,_0x32a369:0x128,_0x340827:0x587,_0x246017:0x676,_0x42153e:0x704,_0x54f782:0x41f,_0x903b49:0x424,_0x562774:0x4c4,_0x40dd1a:0x4cd,_0x4e98d8:0x192,_0x3d95fe:0xd1,_0xcadabf:0x520,_0x259b66:0x698},_0x148087={_0x40e4c3:0x10a},_0x24e7b9={_0x50a8c1:0x1f1};function _0x2e00b7(_0x459d8a,_0x53036f,_0x270d71,_0x299ef2){return _0x74a064(_0x459d8a-0x100,_0x53036f-_0x24e7b9._0x50a8c1,_0x299ef2-0x524,_0x270d71);}function _0x36cd87(_0x1f663f,_0x47c065,_0x574f18,_0x387b0c){return _0xc7d8a6(_0x1f663f-_0x148087._0x40e4c3,_0x387b0c,_0x574f18-0x14d,_0x574f18-0xb);}switch(this[_0x36cd87(-_0x335c3e._0x3db27f,-0xce,-_0x335c3e._0x2c4405,-0x10d)]){case _0x2e00b7(0x56e,_0x335c3e._0x2ec88f,0x60b,0x534):return this[_0x2e00b7(_0x335c3e._0x4e3214,_0x335c3e._0x1066de,_0x335c3e._0x48d1b5,_0x335c3e._0x4a89f1)][_0x2e00b7(_0x335c3e._0x4e056b,_0x335c3e._0x6cfd7f,0x505,0x566)](_0x3acb88,_0x4489b2);case'openai-chat-completions':return this[_0x36cd87(-0xe1,-_0x335c3e._0x2c9ed3,-_0x335c3e._0x32a369,-0xe7)](_0x3acb88,_0x4489b2);case _0x2e00b7(0x692,0x5a2,_0x335c3e._0x340827,0x5db):return this[_0x2e00b7(0x624,_0x335c3e._0x246017,_0x335c3e._0x42153e,0x61e)](_0x3acb88,_0x4489b2);case'openai-responses-ws':return this[_0x2e00b7(_0x335c3e._0x54f782,_0x335c3e._0x903b49,_0x335c3e._0x562774,_0x335c3e._0x40dd1a)](_0x3acb88,_0x4489b2);case _0x36cd87(-0xbf,-_0x335c3e._0x4e98d8,-_0x335c3e._0x3d95fe,-0x77):return this['stream'](_0x3acb88,_0x4489b2);}throw new Error('Unsupported\x20GitHub\x20model\x20surface:\x20'+String(this[_0x2e00b7(0x545,_0x335c3e._0xcadabf,_0x335c3e._0x259b66,0x5c9)]));}async[_0xc7d8a6(-0xbf,-0x97,-0x192,-0xd8)](_0xfd69a1,_0x38fe27){const _0xd98e11={_0x8743e0:0x104,_0x1e250b:0x480,_0x5ddf47:0x436,_0x1d49bc:0x42c,_0x5c8791:0x4e7,_0x2dfa55:0x4b9,_0x487ca2:0x455,_0x4f471d:0x376,_0x28ae60:0xa8,_0x122b9a:0xd4,_0x24695d:0x164,_0xa7420b:0x4,_0x40fb68:0x359,_0x356ab0:0x37b,_0x37602a:0x15d,_0x5e262d:0xb1,_0x1e79dc:0x28b,_0x3cf2cb:0xf0},_0x2131f7=this[_0x13e58a(0x132,0x132,_0xd98e11._0x8743e0,0x176)](_0xfd69a1);function _0x12ccfb(_0x55871f,_0x2532a3,_0x1b1d35,_0x5c40ed){return _0x74a064(_0x55871f-0x1a2,_0x2532a3-0x25,_0x2532a3-0x3c0,_0x55871f);}if(this['surface']!==_0x12ccfb(_0xd98e11._0x1e250b,_0xd98e11._0x5ddf47,_0xd98e11._0x1d49bc,0x357))return this['completeViaConfiguredSurface'](_0x2131f7,_0x38fe27);function _0x13e58a(_0x37b5fe,_0x5ca761,_0x263626,_0x3adf69){return _0xc7d8a6(_0x37b5fe-0x189,_0x263626,_0x263626-0x16d,_0x37b5fe-0x254);}if(this[_0x12ccfb(_0xd98e11._0x5c8791,0x456,0x375,_0xd98e11._0x2dfa55)](_0x2131f7))return this['response'](_0x2131f7,_0x38fe27);try{return await this['completeViaChatCompletionsSurface'](_0x2131f7,_0x38fe27);}catch(_0x5b73c0){if(_0x5b73c0 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x5b73c0[_0x12ccfb(0x422,_0xd98e11._0x487ca2,0x3eb,_0xd98e11._0x4f471d)]))return this[_0x13e58a(_0xd98e11._0x28ae60,_0xd98e11._0x122b9a,_0xd98e11._0x24695d,_0xd98e11._0xa7420b)](_0x2131f7[_0x12ccfb(_0xd98e11._0x40fb68,0x416,_0xd98e11._0x356ab0,0x4b2)]),this[_0x13e58a(_0xd98e11._0x37602a,0x1f4,0x161,_0xd98e11._0x5e262d)](_0x2131f7,_0x38fe27);throw this[_0x13e58a(0x1d0,0x144,_0xd98e11._0x1e79dc,_0xd98e11._0x3cf2cb)](_0x5b73c0);}throw _0x5b73c0;}}async*[_0x74a064(-0x4c,0x103,0x42,0x1f)](_0x14c9ec,_0x47c269){const _0x43fd99={_0x30283f:0x371,_0x4b28e2:0x297,_0x23a3d3:0x302,_0x44badf:0x202,_0x1eb6a7:0x248,_0x3cfef3:0xee,_0x3073b7:0x1c7,_0x5cfec6:0x272,_0x5da7ce:0x353,_0x293c55:0x363,_0x177091:0x23b,_0xad2203:0x2e7,_0xcbae49:0x254,_0x309fcc:0x1fe,_0x3c3b8f:0x331,_0x260ac3:0x235,_0x147ebf:0x1ec,_0x40f1ad:0x140,_0x1fd1dd:0x16a,_0x4bd925:0x2e7,_0x1d7dcd:0x29e,_0x27b4a5:0x2aa},_0x3042e8={_0x10256f:0xda},_0x4ac05b={_0x5571fe:0x1b9,_0x3a4aa5:0xcd};function _0x37da30(_0x4584c4,_0x3a4039,_0x57645e,_0x49c868){return _0x74a064(_0x4584c4-_0x4ac05b._0x5571fe,_0x3a4039-_0x4ac05b._0x3a4aa5,_0x57645e-0x267,_0x4584c4);}function _0x1c4c1e(_0xc03e33,_0x14ba90,_0x565baa,_0x148d7e){return _0xc7d8a6(_0xc03e33-_0x3042e8._0x10256f,_0x14ba90,_0x565baa-0xba,_0x565baa-0x33f);}const _0x9a4b73=this[_0x37da30(_0x43fd99._0x30283f,0x272,_0x43fd99._0x4b28e2,0x300)](_0x14c9ec);if(this[_0x1c4c1e(0x1f8,0x2b6,0x292,0x308)]!==_0x1c4c1e(_0x43fd99._0x23a3d3,0x212,0x263,_0x43fd99._0x44badf)){yield*this[_0x1c4c1e(_0x43fd99._0x1eb6a7,_0x43fd99._0x3cfef3,_0x43fd99._0x3073b7,_0x43fd99._0x5cfec6)](_0x9a4b73,_0x47c269);return;}if(this[_0x37da30(_0x43fd99._0x5da7ce,_0x43fd99._0x293c55,0x2fd,0x35d)](_0x9a4b73)){yield*this[_0x1c4c1e(0x2da,_0x43fd99._0x177091,_0x43fd99._0xad2203,_0x43fd99._0xcbae49)](_0x9a4b73,_0x47c269);return;}try{yield*this[_0x37da30(_0x43fd99._0x309fcc,0x263,0x2d9,_0x43fd99._0x3c3b8f)](_0x9a4b73,_0x47c269);}catch(_0x3d5212){if(_0x3d5212 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x3d5212[_0x1c4c1e(_0x43fd99._0x260ac3,_0x43fd99._0x147ebf,0x282,0x2eb)])){this[_0x1c4c1e(0x1e4,_0x43fd99._0x40f1ad,0x193,0x125)](_0x9a4b73[_0x1c4c1e(0x19c,_0x43fd99._0x1fd1dd,0x243,0x31e)]),yield*this[_0x1c4c1e(0x28c,0x2ec,_0x43fd99._0x4bd925,0x2da)](_0x9a4b73,_0x47c269);return;}throw this[_0x37da30(0x40e,_0x43fd99._0x1d7dcd,0x335,_0x43fd99._0x27b4a5)](_0x3d5212);}throw _0x3d5212;}}async[_0xc7d8a6(0x3a,0xa9,-0xcb,-0x3a)](_0x3b57fa){const _0x1de6e6={_0x3b1718:0x117,_0x2bde8c:0xdf,_0x526429:0xd2,_0x41c7ed:0x57,_0x5df607:0x160,_0x460ed5:0x7c,_0x162b77:0xc8,_0x3e9b31:0x172,_0x5a421a:0x143,_0x95cdb:0x2a,_0x1f0e84:0x43,_0xf932cf:0xbc,_0xadfd6c:0x12d,_0x4bc323:0x180},_0x24c2f4={_0xcf6652:0x21,_0x29dc68:0x31},_0x3b446a={_0x4ada23:0x3b3,_0x3606ae:0x3ca,_0xc9b20e:0x1b5,_0x456900:0x435,_0x26c22e:0x2d6,_0x1e08d9:0x384},_0x173e01={_0x35d4d4:0x14e},_0x18ae2e={_0x566fb6:0x43,_0x5ebc9b:0x14};function _0x35da26(_0x2f9c10,_0x16caec,_0x4555c7,_0x1fab99){return _0x74a064(_0x2f9c10-_0x18ae2e._0x566fb6,_0x16caec-_0x18ae2e._0x5ebc9b,_0x1fab99-0x96,_0x16caec);}const _0x1b6b8d=await this[_0x1556c9(-_0x1de6e6._0x3b1718,-_0x1de6e6._0x2bde8c,-_0x1de6e6._0x526429,-_0x1de6e6._0x41c7ed)]({'path':_0x35da26(0xcf,_0x1de6e6._0x5df607,_0x1de6e6._0x460ed5,_0x1de6e6._0x162b77),'method':_0x1556c9(-_0x1de6e6._0x3e9b31,-_0x1de6e6._0x5a421a,-0x12a,-0x190),'signal':_0x3b57fa});if(!_0x1b6b8d['ok'])throw this[_0x1556c9(_0x1de6e6._0x95cdb,-0x78,-_0x1de6e6._0x1f0e84,-0xb5)](await this['toApiError'](_0x1b6b8d));const _0x1822eb=await _0x1b6b8d[_0x35da26(-0x5c,0xf1,0x105,0x28)](),_0x57988d=(_0x1822eb[_0x1556c9(-_0x1de6e6._0xf932cf,-_0x1de6e6._0xadfd6c,-0x22e,-_0x1de6e6._0x4bc323)]??[])['map'](_0x310c3b=>{const _0x2e4c67={_0x57dec3:0x79,_0x4b57cd:0xf2,_0xa97186:0x338},_0x2dbe26=createModelInfo(_0x310c3b);function _0x35dab0(_0x267560,_0x5b4f79,_0x47f9b2,_0x3761e0){return _0x35da26(_0x267560-_0x173e01._0x35d4d4,_0x47f9b2,_0x47f9b2-0xf7,_0x267560-0x93);}function _0x1af59c(_0x26c244,_0x52d513,_0x43fdad,_0x197830){return _0x35da26(_0x26c244-_0x2e4c67._0x57dec3,_0x26c244,_0x43fdad-_0x2e4c67._0x4b57cd,_0x197830-_0x2e4c67._0xa97186);}return _0x2dbe26['supportedEndpoints']&&this[_0x1af59c(_0x3b446a._0x4ada23,0x4cb,_0x3b446a._0x3606ae,0x47b)][_0x35dab0(0x245,0x2bb,_0x3b446a._0xc9b20e,0x2bd)](_0x2dbe26['id'],_0x2dbe26[_0x1af59c(_0x3b446a._0x456900,_0x3b446a._0x26c22e,_0x3b446a._0x1e08d9,0x355)]),_0x2dbe26;});function _0x1556c9(_0x13fb6e,_0x350b2b,_0x57d443,_0x1465ff){return _0xc7d8a6(_0x13fb6e-0xde,_0x57d443,_0x57d443-_0x24c2f4._0xcf6652,_0x1465ff- -_0x24c2f4._0x29dc68);}return deduplicateModels(_0x57988d);}};function createHeaders(_0x2c27f8){const _0x35e724={_0x1938b4:0x196,_0x219314:0x125},_0x2e8348={_0x556055:0x1a8,_0x428ca2:0x68},_0x19615d=new Headers();function _0x4571a3(_0x39d2a0,_0x295db0,_0x4d5374,_0xbc99cb){return _0x74a064(_0x39d2a0-_0x2e8348._0x556055,_0x295db0-0xa5,_0x39d2a0-_0x2e8348._0x428ca2,_0x4d5374);}for(const [_0x17dd2d,_0x1df50b]of Object[_0x4571a3(_0x35e724._0x1938b4,0x134,0x25e,_0x35e724._0x219314)](_0x2c27f8)){_0x19615d['set'](_0x17dd2d,_0x1df50b);}return _0x19615d;}async function fetchRawResponse(_0x545530){const _0x588f51={_0x35345a:0x4d1,_0x11d889:0x614,_0x15de08:0x667,_0x3b661c:0x1a1,_0x184335:0x70,_0x2b72f6:0x118,_0x246916:0x54b,_0x40b2c7:0x518,_0x442653:0x5ef,_0x147aee:0x4c4,_0x548c81:0x3e9,_0xbd530a:0x4d8,_0x26ced2:0x4bc},_0x24c29c={_0x394d6a:0x1cc},_0x579a62={_0x267d31:0x190};function _0x31cae2(_0x3f8ad8,_0x4f161e,_0x48a60a,_0x2b31ba){return _0x74a064(_0x3f8ad8-0x1cc,_0x4f161e-0x165,_0x2b31ba- -_0x579a62._0x267d31,_0x48a60a);}const _0x3c474c=_0x545530[_0x2c0477(_0x588f51._0x35345a,_0x588f51._0x11d889,0x59e,_0x588f51._0x15de08)]??globalThis['fetch'];function _0x2c0477(_0x3ce236,_0x38b26a,_0x2a43da,_0x7ac625){return _0x74a064(_0x3ce236-0x130,_0x38b26a-_0x24c29c._0x394d6a,_0x2a43da-0x4e1,_0x38b26a);}return _0x3c474c(_0x545530['url'],{'method':_0x31cae2(-0x65,-_0x588f51._0x3b661c,-_0x588f51._0x184335,-_0x588f51._0x2b72f6),'headers':createHeaders(_0x545530['headers']),'body':JSON[_0x2c0477(_0x588f51._0x246916,0x560,0x55e,_0x588f51._0x40b2c7)](_0x545530[_0x2c0477(_0x588f51._0x442653,0x504,0x576,_0x588f51._0x147aee)]),'signal':_0x545530[_0x2c0477(_0x588f51._0x548c81,_0x588f51._0xbd530a,_0x588f51._0x26ced2,0x40a)]});}async function fetchJsonResponse(_0x3daf71){const _0x679d02={_0x431b3d:0x421,_0x519e96:0x470,_0x328eba:0x3e5,_0x34ee48:0x4b2,_0x57d9e8:0x4cd,_0x2e6803:0x4ed,_0x35c64b:0x473,_0x4ecbc5:0x53a,_0x14d9dd:0x59f,_0x173788:0x5da,_0x4a4ae2:0x590,_0x34e59e:0x46f,_0x284ae9:0x4e4,_0x512f6e:0x498,_0x435bd7:0x44f},_0x5d3b58={_0x42ab4:0x1d0};function _0x43c81c(_0x4ca2a9,_0x44f505,_0x5b035e,_0x4a915d){return _0x74a064(_0x4ca2a9-0xbe,_0x44f505-0x1b5,_0x5b035e-0x4bd,_0x4ca2a9);}const _0x27cf86=await fetchRawResponse(_0x3daf71);function _0x2c109d(_0x323fd8,_0x1d7598,_0x4481ca,_0x56f177){return _0x74a064(_0x323fd8-0x7f,_0x1d7598-_0x5d3b58._0x42ab4,_0x1d7598-0x4f3,_0x4481ca);}if(!_0x27cf86['ok']){const _0x106a1d=await _0x27cf86[_0x2c109d(_0x679d02._0x431b3d,0x4d9,0x5bd,0x491)](),_0x170a80=_0x106a1d[_0x43c81c(_0x679d02._0x519e96,0x413,0x488,0x474)]()||_0x27cf86[_0x43c81c(_0x679d02._0x328eba,0x4b3,_0x679d02._0x34ee48,_0x679d02._0x57d9e8)]||_0x43c81c(0x4af,_0x679d02._0x2e6803,_0x679d02._0x35c64b,_0x679d02._0x4ecbc5);throw new Error(_0x43c81c(_0x679d02._0x14d9dd,0x5de,_0x679d02._0x173788,0x5ba)+_0x27cf86[_0x43c81c(_0x679d02._0x4a4ae2,0x45e,0x52a,_0x679d02._0x34e59e)]+':\x20'+_0x170a80);}return await _0x27cf86[_0x43c81c(_0x679d02._0x284ae9,_0x679d02._0x512f6e,_0x679d02._0x435bd7,0x3cf)]();}function findLastMessage(_0x3aa77b,_0x3e437d){const _0x55c8d4={_0x46c1cf:0x63c,_0x52c739:0x55f},_0x2f6769={_0x943a14:0x59,_0x3ab60d:0x19,_0x46ec88:0x640};function _0x67e4b1(_0x31fb57,_0x139abc,_0x315177,_0x29fa0b){return _0xc7d8a6(_0x31fb57-_0x2f6769._0x943a14,_0x315177,_0x315177-_0x2f6769._0x3ab60d,_0x139abc-_0x2f6769._0x46ec88);}for(let _0x1709c7=_0x3aa77b[_0x67e4b1(0x62f,0x618,_0x55c8d4._0x46c1cf,_0x55c8d4._0x52c739)]-0x1;_0x1709c7>=0x0;_0x1709c7-=0x1){if(_0x3aa77b[_0x1709c7]['role']===_0x3e437d)return _0x3aa77b[_0x1709c7];}return void 0x0;}function hasTool(_0x98bc03,_0x482af2){const _0x4fd6be={_0x2b8217:0x2e,_0x2473b6:0x19,_0x4f7491:0x75,_0x13b6fe:0x134,_0x24b461:0x10b,_0x5d2769:0x2a},_0x57e0e3={_0x2a3ec4:0x6c},_0xf978a3={_0x1b8842:0x1a8};function _0x79f3f1(_0x58081c,_0x17e641,_0x10ca80,_0x667f54){return _0xc7d8a6(_0x58081c-_0xf978a3._0x1b8842,_0x667f54,_0x10ca80-0x182,_0x17e641-0x157);}function _0x25e363(_0x5cc316,_0x23c65c,_0x169850,_0x95ea0d){return _0xc7d8a6(_0x5cc316-_0x57e0e3._0x2a3ec4,_0x23c65c,_0x169850-0x175,_0x5cc316-0xa4);}return _0x98bc03[_0x25e363(_0x4fd6be._0x2b8217,_0x4fd6be._0x2473b6,-0x75,-_0x4fd6be._0x4f7491)][_0x79f3f1(-_0x4fd6be._0x13b6fe,-0x65,-_0x4fd6be._0x24b461,-_0x4fd6be._0x5d2769)](_0x47d705=>_0x47d705[_0x79f3f1(-0xca,-0x49,-0xb4,0x1b)]===_0x482af2);}function createMockResponse(_0x22fe97,_0x369fb1,_0x58add1,_0x571b18){return{'id':_0x22fe97,'content':_0x369fb1,'stopReason':_0x58add1,'usage':_0x571b18};}var MockModel=class{[_0x74a064(-0x3a,0xd7,0x56,0x93)];[_0xc7d8a6(-0x121,-0x35,-0xf7,-0x7c)];['requests']=[];[_0x74a064(0xc7,0x11a,0x128,0x44)];constructor(_0x5251ca={}){const _0x3db088={_0x27d06b:0x87,_0x239c4f:0xef,_0x3f6cfb:0xba,_0x5007d7:0x6f,_0x30cfc0:0x7d,_0x3f9248:0x5e6,_0x5aa03f:0x5b9,_0x2bcc91:0x45b,_0x136ced:0xcd,_0x4f5507:0x66,_0x59301f:0xc4},_0x36f01b={_0x410a4f:0x139,_0x3c7a59:0xfd},_0x29b1e3={_0x336b35:0xb8};this[_0x21fca0(-0xef,-0xcd,-_0x3db088._0x27d06b,-0x19c)]=_0x5251ca[_0x21fca0(-_0x3db088._0x239c4f,-_0x3db088._0x3f6cfb,-0x29,-0x17c)]??'mock',this['maxTokens']=_0x5251ca[_0x21fca0(-_0x3db088._0x5007d7,-0x8d,-0x47,-_0x3db088._0x30cfc0)]??getDefaultMaxTokens();function _0x2b7c23(_0x40f7a2,_0x44130f,_0x1490d5,_0x2e439e){return _0x74a064(_0x40f7a2-0x171,_0x44130f-_0x29b1e3._0x336b35,_0x44130f-0x3d8,_0x2e439e);}function _0x21fca0(_0x2310cb,_0xba953e,_0x230343,_0x2ae11a){return _0xc7d8a6(_0x2310cb-_0x36f01b._0x410a4f,_0x2ae11a,_0x230343-_0x36f01b._0x3c7a59,_0x2310cb-0xd);}this[_0x2b7c23(_0x3db088._0x3f9248,0x500,_0x3db088._0x5aa03f,_0x3db088._0x2bcc91)]=_0x5251ca['reasoning']?structuredClone(_0x5251ca[_0x21fca0(-0x1d,-_0x3db088._0x136ced,_0x3db088._0x4f5507,_0x3db088._0x59301f)]):void 0x0;}async[_0x74a064(0x149,0xae,0x7a,-0x8)](_0x534f00,_0x19f5a3){const _0xcab993={_0x578b79:0x165,_0x11e810:0xa2,_0x1b082a:0x103,_0x4cd166:0x27,_0x16038c:0xdc,_0x411071:0x19,_0x2c7002:0xd5,_0x1b4adc:0x6d,_0x17d43b:0xab,_0x1f23ac:0x50,_0x5ddf0a:0x84,_0xd92e2f:0x30,_0x1bb914:0xcc,_0x4a6c72:0x9e,_0x32e758:0xb4,_0x47ef0f:0x5d,_0x4220b2:0xa9,_0x2dbb15:0x127,_0x1932be:0x153,_0xbcb96d:0xa9,_0x470cea:0x16b,_0x4be8f8:0x17f,_0xdf24a1:0x58,_0x2eefee:0x5a,_0x14b9aa:0xc9,_0x104bdb:0x100,_0x4e6e68:0x2a,_0x35cf0b:0x82,_0x25c0fd:0xaf,_0x3d031b:0x7b,_0x31499c:0xf8,_0x102125:0x11a,_0x52f5cd:0x16c,_0xbd634:0x37,_0x5b712a:0x19e,_0x526b94:0x5d,_0x4d7647:0x24},_0x439b7f={_0xcfeb49:0x188,_0x25c5e8:0xe},_0x387076={_0x12711c:0x100,_0x1d6246:0x81},_0x5026be={...structuredClone(_0x534f00),..._0x534f00[_0x2e6441(0xa7,0xcc,0xa1,_0xcab993._0x578b79)]===void 0x0&&this[_0x113cd0(0x28,-0x52,_0xcab993._0x11e810,_0xcab993._0x1b082a)]!==void 0x0?{'reasoning':structuredClone(this[_0x113cd0(0x28,-_0xcab993._0x4cd166,0x76,0x72)])}:{}};function _0x2e6441(_0x380e9f,_0x2b0ec4,_0x32dd3d,_0xc61fa1){return _0x74a064(_0x380e9f-_0x387076._0x12711c,_0x2b0ec4-0x181,_0x380e9f- -_0x387076._0x1d6246,_0x32dd3d);}this[_0x113cd0(-_0xcab993._0x16038c,-_0xcab993._0x411071,-0xd3,-0x1b2)][_0x113cd0(-0x17b,-0x1f3,-_0xcab993._0x2c7002,-0xa0)](_0x5026be);function _0x113cd0(_0x18cbe1,_0x28a913,_0x50be1e,_0x153c13){return _0xc7d8a6(_0x18cbe1-_0x439b7f._0xcfeb49,_0x153c13,_0x50be1e-_0x439b7f._0x25c5e8,_0x18cbe1-0x52);}const _0x38d96b=findLastMessage(_0x5026be[_0x113cd0(-0x9,_0xcab993._0x1b4adc,0xd5,_0xcab993._0x17d43b)],_0x113cd0(-0x120,-_0xcab993._0x1f23ac,-0x193,-_0xcab993._0x5ddf0a)),_0x46b684=getToolResultBlocks(_0x38d96b),_0x4cf6ed=_0x2e6441(-_0xcab993._0xd92e2f,-_0xcab993._0x1bb914,_0xcab993._0x4a6c72,_0xcab993._0x32e758)+this[_0x2e6441(-_0xcab993._0x47ef0f,-0xa0,-0x4d,-0x94)][_0x2e6441(_0xcab993._0x4220b2,_0xcab993._0x2dbb15,_0xcab993._0x1932be,0x10b)];if(_0x46b684[_0x2e6441(_0xcab993._0xbcb96d,0x100,0x74,_0xcab993._0x470cea)]>0x0)return createMockResponse(_0x4cf6ed,[{'type':_0x2e6441(-0x9b,-0xbc,-0x167,-_0xcab993._0x4be8f8),'text':_0x2e6441(0x4e,0x4b,-0x47,-0x65)+_0x46b684[0x0]['content']}],_0x2e6441(_0xcab993._0xdf24a1,0xaa,0xd5,_0xcab993._0x2eefee),{'inputTokens':0x78,'outputTokens':0x28});const _0x2c4e36=getTextFromMessage(_0x38d96b);if(/list .*files|workspace/i['test'](_0x2c4e36)&&hasTool(_0x5026be,_0x2e6441(-0x5,-_0xcab993._0x14b9aa,0x6b,-0x30)))return createMockResponse(_0x4cf6ed,[{'type':_0x2e6441(-0xae,-_0xcab993._0x104bdb,-0x6b,-0x15b),'id':'tool-call-'+this[_0x2e6441(-0x5d,0x6b,-0xbd,-0x1b)][_0x113cd0(_0xcab993._0x4e6e68,-0x64,-_0xcab993._0x35cf0b,-0xa6)],'name':_0x2e6441(-0x5,_0xcab993._0x25c0fd,_0xcab993._0x3d031b,0xa1),'input':{'command':'ls\x20-la'}}],_0x113cd0(-0x12d,-0x95,-_0xcab993._0x31499c,-0x1cc),{'inputTokens':0x6e,'outputTokens':0x1c});return createMockResponse(_0x4cf6ed,[{'type':_0x113cd0(-_0xcab993._0x102125,-_0xcab993._0x52f5cd,-_0xcab993._0xbd634,-0x14a),'text':_0x113cd0(-0x104,-0x186,-_0xcab993._0x5b712a,-0x113)+_0x2c4e36}],_0x113cd0(-0x27,_0xcab993._0x526b94,0xa5,-_0xcab993._0x4d7647),{'inputTokens':0x50,'outputTokens':0x12});}};function getFallbackModelLimits(_0x4cb704,_0x2340ed){const _0x5242ed={_0x57ca77:0x253,_0x32ed76:0x19c,_0x484f55:0x2df,_0x58531f:0x243,_0x129dc1:0x32c,_0x4db13c:0xdf,_0x3ca73c:0x1a9,_0x56f60b:0x1e2,_0x4777d8:0x237,_0x31c2f4:0x233},_0xbb70b7={_0x5c415f:0x111},_0x3a833d={_0x1219d2:0x129},_0x28cd76=getModelProfile(_0x4cb704,_0x2340ed);function _0x41f33f(_0x58b506,_0x112d25,_0x5e14be,_0x836c24){return _0xc7d8a6(_0x58b506-0x87,_0x5e14be,_0x5e14be-0xb,_0x58b506- -_0x3a833d._0x1219d2);}if(!_0x28cd76?.[_0xdd984e(-_0x5242ed._0x57ca77,-_0x5242ed._0x32ed76,-0x1a9,-0x104)]&&!_0x28cd76?.['maxOutput'])return void 0x0;function _0xdd984e(_0x5efbc9,_0x9a52ae,_0x10a251,_0x33d3fd){return _0xc7d8a6(_0x5efbc9-_0xbb70b7._0x5c415f,_0x33d3fd,_0x10a251-0xc0,_0x10a251-0xd);}return{..._0x28cd76[_0x41f33f(-_0x5242ed._0x484f55,-_0x5242ed._0x58531f,-0x2b4,-_0x5242ed._0x129dc1)]?{'contextWindow':_0x28cd76[_0xdd984e(-_0x5242ed._0x4db13c,-0xdf,-_0x5242ed._0x3ca73c,-0x1a9)]}:{},..._0x28cd76[_0x41f33f(-_0x5242ed._0x56f60b,-0x173,-0x11a,-0x2be)]?{'maxOutput':_0x28cd76[_0x41f33f(-0x1e2,-_0x5242ed._0x4777d8,-0x218,-_0x5242ed._0x31c2f4)]}:{}};}function normalizeModelInfo(_0x2937fe,_0x2bebc7){const _0x5cd252={_0x595ac2:0x435,_0x44bdc5:0x53c,_0x258c46:0x58c,_0x2065cb:0x14c,_0x2ea75b:0x1ce,_0x3c8617:0x52d,_0x13939f:0x487,_0x4c7c8e:0x4eb,_0x3d05b8:0x4ab,_0x3cf2ef:0x232,_0x55696f:0x1dd,_0x5e9800:0x28b,_0x2b8154:0x4b1,_0x382c6a:0x51f,_0x4318bb:0x4dd,_0x220b0b:0x5ca,_0x5b7473:0x120,_0x1948d4:0x27d},_0x206441={_0x4bd5b7:0x65},_0x3f99cc={_0x4a359a:0x185,_0x69daae:0x27a},_0x26ef15=typeof _0x2bebc7['id']===_0x30d1c4(_0x5cd252._0x595ac2,0x4bd,_0x5cd252._0x44bdc5,_0x5cd252._0x258c46)?_0x2bebc7['id']:'';function _0x2d8e23(_0x36ea69,_0x5ed2bd,_0x1fc8c4,_0x47b424){return _0x74a064(_0x36ea69-0x1bc,_0x5ed2bd-_0x3f99cc._0x4a359a,_0x36ea69-_0x3f99cc._0x69daae,_0x5ed2bd);}const _0x3e5186=typeof _0x2bebc7['name']===_0x2d8e23(0x204,_0x5cd252._0x2065cb,0x23f,_0x5cd252._0x2ea75b)?_0x2bebc7['name']:_0x26ef15,_0x5e1d31=normalizeModelLimits(_0x2937fe,_0x2bebc7)??getFallbackModelLimits(_0x2937fe,_0x26ef15);function _0x30d1c4(_0x15f182,_0x265c2c,_0x4358d5,_0xa15069){return _0x74a064(_0x15f182-0x166,_0x265c2c-_0x206441._0x4bd5b7,_0x265c2c-0x533,_0x15f182);}const _0x29ed0e=Array[_0x30d1c4(_0x5cd252._0x3c8617,0x4df,0x50a,0x4fe)](_0x2bebc7[_0x30d1c4(_0x5cd252._0x13939f,_0x5cd252._0x4c7c8e,0x43b,_0x5cd252._0x3d05b8)])?_0x2bebc7[_0x2d8e23(_0x5cd252._0x3cf2ef,_0x5cd252._0x55696f,0x255,_0x5cd252._0x5e9800)][_0x30d1c4(0x50a,_0x5cd252._0x2b8154,0x458,0x476)](_0x345d53=>typeof _0x345d53===_0x30d1c4(0x46e,0x4bd,0x54a,0x3ec)):Array['isArray'](_0x2bebc7[_0x30d1c4(0x543,_0x5cd252._0x382c6a,_0x5cd252._0x4318bb,0x5fe)])?_0x2bebc7[_0x30d1c4(0x441,_0x5cd252._0x382c6a,_0x5cd252._0x220b0b,0x571)][_0x2d8e23(0x1f8,_0x5cd252._0x5b7473,0x267,_0x5cd252._0x1948d4)](_0x273084=>typeof _0x273084===_0x30d1c4(0x472,0x4bd,0x512,0x516)):void 0x0;return{'id':_0x26ef15,'name':_0x3e5186,..._0x5e1d31?{'limits':_0x5e1d31}:{},..._0x29ed0e?{'supportedEndpoints':_0x29ed0e}:{}};}function normalizeModelLimits(_0x42eaf7,_0x55b401){const _0x2c7ec5={_0x123ac6:0x112,_0x28b68f:0x252,_0x234cb5:0x1c2,_0xe591b8:0x407,_0xa07eb2:0x3b5,_0x3d8a1c:0x409,_0x4e362b:0x25b,_0x270f19:0x1bd,_0x54b06b:0x284,_0x46dddb:0x348,_0x141371:0x266,_0x5f33b7:0x3b1,_0x466d9f:0x31e,_0x3733c2:0x120,_0x38a639:0x1ce,_0x31f915:0x35c,_0x63f4b4:0x296,_0x2cfc7f:0x17f,_0x2c4db9:0x3a7,_0x2e879c:0x2a2,_0x3fe875:0x24e,_0x592a8e:0x225,_0x18d076:0x1fc,_0x5d8720:0x16c,_0x489fee:0x240,_0x594c2b:0x2a5,_0x287f79:0x2bc,_0x5731d0:0x345,_0x1f853c:0x296,_0x3b78cc:0x2bc,_0x34ff2a:0x304,_0x1703d8:0x68,_0x501e1f:0x324,_0x2f8e8e:0x36d,_0x465bce:0x3d4,_0x481733:0x216,_0x273818:0x2a0,_0x2a8175:0x23f,_0x2f881f:0x346,_0x41d43b:0x276,_0x3d695c:0x390,_0x592695:0x259,_0x43e6a0:0x310,_0x30e0c0:0x2f2,_0x59b75c:0x310,_0x4e4d00:0x3a0,_0x4bb215:0x31c,_0x345069:0x1a0,_0xef47f8:0x1ea,_0xc4a119:0x1b8,_0x390e94:0x1a0,_0x4c580e:0x251,_0x5b31ff:0x3ba,_0x2ab0ba:0x3a7,_0x21bdc2:0x377,_0x4b8483:0x293,_0x2ea077:0x3a7,_0x354e2d:0x2d9},_0x1df26a={_0x792469:0x115},_0x584572={_0x430d04:0x1ad,_0x20bd2d:0x2e8};function _0x12f445(_0x387de9,_0x4d575d,_0x57cc29,_0x5e4a76){return _0x74a064(_0x387de9-_0x584572._0x430d04,_0x4d575d-0x44,_0x57cc29-_0x584572._0x20bd2d,_0x5e4a76);}if(_0x55b401[_0x1983aa(-_0x2c7ec5._0x123ac6,-_0x2c7ec5._0x28b68f,-0x1a2,-_0x2c7ec5._0x234cb5)]&&typeof _0x55b401[_0x12f445(_0x2c7ec5._0xe591b8,_0x2c7ec5._0xa07eb2,0x3ad,_0x2c7ec5._0x3d8a1c)]===_0x1983aa(-0x21c,-_0x2c7ec5._0x4e362b,-_0x2c7ec5._0x270f19,-0x29d)){const _0x3abeaf=_0x55b401['limits'];if(typeof _0x3abeaf[_0x12f445(0x241,0x2aa,_0x2c7ec5._0x54b06b,_0x2c7ec5._0x46dddb)]==='number')return{'contextWindow':_0x3abeaf[_0x1983aa(-_0x2c7ec5._0x141371,-_0x2c7ec5._0x5f33b7,-0x2cb,-_0x2c7ec5._0x466d9f)],...typeof _0x3abeaf[_0x1983aa(-_0x2c7ec5._0x3733c2,-0x1ed,-_0x2c7ec5._0x38a639,-0x1b9)]===_0x12f445(0x31e,0x200,0x2bc,_0x2c7ec5._0x31f915)?{'maxOutput':_0x3abeaf[_0x1983aa(-0x26a,-_0x2c7ec5._0x63f4b4,-_0x2c7ec5._0x38a639,-_0x2c7ec5._0x2cfc7f)]}:{}};}if(_0x42eaf7['toLowerCase']()===_0x12f445(0x36b,0x27a,0x340,_0x2c7ec5._0x2c4db9)){const _0x570e1f=_0x55b401[_0x1983aa(-_0x2c7ec5._0x2e879c,-0x2fc,-_0x2c7ec5._0x3fe875,-_0x2c7ec5._0x592a8e)],_0x3e478e=_0x570e1f?.[_0x1983aa(-0x174,-0xc9,-0x1a2,-_0x2c7ec5._0x18d076)];if(typeof _0x3e478e?.[_0x1983aa(-_0x2c7ec5._0x5d8720,-0x262,-_0x2c7ec5._0x489fee,-_0x2c7ec5._0x594c2b)]===_0x12f445(0x32b,0x2ac,_0x2c7ec5._0x287f79,_0x2c7ec5._0x5731d0))return{'contextWindow':_0x3e478e['max_context_window_tokens'],...typeof _0x3e478e['max_output_tokens']===_0x12f445(0x35a,_0x2c7ec5._0x1f853c,_0x2c7ec5._0x3b78cc,_0x2c7ec5._0x34ff2a)?{'maxOutput':_0x3e478e[_0x1983aa(-0x131,-0x18b,-0x135,-_0x2c7ec5._0x1703d8)]}:{}};}const _0x118109=_0x55b401['metadata'];function _0x1983aa(_0x6f4fe4,_0x1d7c8c,_0x3b3012,_0x271d83){return _0xc7d8a6(_0x6f4fe4-0x137,_0x271d83,_0x3b3012-0x14f,_0x3b3012- -_0x1df26a._0x792469);}const _0x24d798=_0x55b401[_0x1983aa(-0x33c,-_0x2c7ec5._0x501e1f,-0x2c7,-0x20c)],_0x583014=typeof _0x55b401[_0x12f445(0x382,_0x2c7ec5._0x2f8e8e,0x310,_0x2c7ec5._0x465bce)]==='number'?_0x55b401[_0x1983aa(-_0x2c7ec5._0x481733,-_0x2c7ec5._0x273818,-_0x2c7ec5._0x2a8175,-0x1c5)]:typeof _0x118109?.['context_length']===_0x12f445(_0x2c7ec5._0x2f881f,_0x2c7ec5._0x41d43b,0x2bc,0x2c3)?_0x118109[_0x12f445(_0x2c7ec5._0x3d695c,_0x2c7ec5._0x592695,_0x2c7ec5._0x43e6a0,0x283)]:typeof _0x24d798?.[_0x12f445(0x2c8,_0x2c7ec5._0x30e0c0,_0x2c7ec5._0x59b75c,_0x2c7ec5._0x4e4d00)]==='number'?_0x24d798[_0x1983aa(-_0x2c7ec5._0x4bb215,-_0x2c7ec5._0x345069,-0x23f,-_0x2c7ec5._0xef47f8)]:void 0x0;if(_0x583014===void 0x0)return void 0x0;return{'contextWindow':_0x583014,...typeof _0x118109?.[_0x1983aa(-0x1d0,-0x154,-_0x2c7ec5._0x345069,-0x213)]==='number'?{'maxOutput':_0x118109[_0x1983aa(-_0x2c7ec5._0xc4a119,-0x25d,-_0x2c7ec5._0x390e94,-_0x2c7ec5._0x4c580e)]}:typeof _0x24d798?.[_0x12f445(0x393,_0x2c7ec5._0x5b31ff,_0x2c7ec5._0x2ab0ba,0x360)]===_0x1983aa(-0x2b3,-_0x2c7ec5._0x21bdc2,-_0x2c7ec5._0x4b8483,-0x365)?{'maxOutput':_0x24d798[_0x12f445(0x361,0x3d5,_0x2c7ec5._0x2ea077,_0x2c7ec5._0x354e2d)]}:{}};}export{ANTHROPIC_MESSAGES_STREAM_SURFACE,ANTHROPIC_MESSAGES_SURFACE,AVAILABLE_CHAT_MODEL_SURFACES,AnthropicModel,ChatModel,GitHubModel,MockModel,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,OPENAI_CHAT_COMPLETIONS_SURFACE,OPENAI_RESPONSES_STREAM_SURFACE,OPENAI_RESPONSES_SURFACE,OPENAI_RESPONSES_WEBSOCKET_SURFACE,OpenAiApiError,OpenAiModel,ProviderSessionManager,RoutedModel,StaticModelSurfaceRouter,createAnthropicSurfaces,createChatRequestBody,createDefaultWebSocketFactory,createOpenAiApiError,createOpenAiResponsesStreamParser,createOpenAiResponsesWebSocketEvent,createOpenAiSurfaces,fetchJsonResponse,fetchRawResponse,getCliDefaultModel,getDefaultMaxTokens,getDefaultModel,getFallbackModelLimits,getModelProfile,getOnboardingProviderKeys,getProviderDefaultModel,getProviderDefaultModels,getProviderLabel,getProviderProfile,iterateSseEvents,iterateWebSocketMessages,normalizeModelInfo,normalizeModelLimits,prepareProviderRequest,providerSupportsModelFetch,resolveApiCredential,resolveModelProfile,resolveSessionBaseUrl,toWebSocketUrl,trimTrailingSlashes,waitForWebSocketOpen};
|