@nuvin/agent-core 0.2.0-rc.1 → 0.2.0-rc.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/VERSION +2 -2
- package/dist/agent/index.js +1 -1
- package/dist/agent/metrics.d.ts +17 -1
- package/dist/chunk-D5IVWJHX.js +1 -1
- package/dist/chunk-FFIZ6TKW.js +1 -1
- package/dist/chunk-GAZGO6N7.js +1 -0
- package/dist/chunk-IUZALP6K.js +1 -0
- package/dist/chunk-KIIEBXJF.js +1 -0
- package/dist/chunk-LIE76IJA.js +1 -0
- package/dist/chunk-X7VAACWY.js +1 -1
- package/dist/chunk-YNOIG4FD.js +1 -0
- package/dist/formats/index.js +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/lsp/client.d.ts +4 -0
- package/dist/models/chat-model.d.ts +1 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +1 -1
- package/dist/models/mock-model.d.ts +2 -0
- package/dist/models/model-cost.d.ts +5 -0
- package/dist/models/model-pricing-generator.d.ts +9 -0
- package/dist/models/model-pricing-products.d.ts +45 -0
- package/dist/models/model-pricing-types.d.ts +33 -0
- package/dist/models/model-pricing.d.ts +13 -0
- package/dist/models/model-pricing.generated.d.ts +23147 -0
- package/dist/models/model-registry.d.ts +8 -0
- package/dist/models/openai-surfaces.d.ts +4 -1
- package/dist/models/routed-model.d.ts +3 -0
- package/dist/shared/abort-aware-semaphore.d.ts +5 -0
- package/dist/shared/index.d.ts +1 -0
- package/dist/shared/index.js +1 -1
- package/dist/shared/reasoning-config.d.ts +3 -4
- package/dist/shared/types.d.ts +105 -24
- package/dist/tools/{internal-tool-runtime.d.ts → core/internal-tool-runtime.d.ts} +1 -1
- package/dist/tools/core/mock-tool-runtime.d.ts +3 -0
- package/dist/tools/core/runtime-manager-tools.d.ts +87 -0
- package/dist/tools/{tool-output-offload.d.ts → core/tool-output-offload.d.ts} +1 -1
- package/dist/tools/{tools.d.ts → core/tools.d.ts} +4 -1
- package/dist/tools/file-editing/anchored-file-edit.d.ts +53 -0
- package/dist/tools/file-editing/anchored-file-errors.d.ts +5 -0
- package/dist/tools/file-editing/anchored-file-operations.d.ts +38 -0
- package/dist/tools/file-editing/anchored-file-read.d.ts +37 -0
- package/dist/tools/file-editing/atomic-file-write.d.ts +19 -0
- package/dist/tools/file-editing/file-edit-tool.d.ts +166 -0
- package/dist/tools/file-editing/file-mutation-coordinator.d.ts +13 -0
- package/dist/tools/file-editing/file-mutation.d.ts +15 -0
- package/dist/tools/{file-new-tool.d.ts → file-editing/file-new-tool.d.ts} +5 -2
- package/dist/tools/file-editing/file-observation-store.d.ts +40 -0
- package/dist/tools/{file-read-tool.d.ts → file-editing/file-read-tool.d.ts} +8 -2
- package/dist/tools/file-editing/file-snapshot.d.ts +16 -0
- package/dist/tools/file-editing/hashline-file-edit-adapter.d.ts +19 -0
- package/dist/tools/file-editing/structured-file-edit-adapter.d.ts +94 -0
- package/dist/tools/file-editing/workspace-paths.d.ts +20 -0
- package/dist/tools/index.d.ts +43 -29
- package/dist/tools/index.js +1 -1
- package/dist/tools/mcp/mcp-connection-generation.d.ts +59 -0
- package/dist/tools/mcp/mcp-safe-error-provenance.d.ts +4 -0
- package/dist/tools/mcp/mcp-safe-error.d.ts +14 -0
- package/dist/tools/mcp/mcp-server-manager.d.ts +16 -0
- package/dist/tools/mcp/mcp-tool-adapter.d.ts +72 -0
- package/dist/tools/{glob-tool.d.ts → search/glob-tool.d.ts} +2 -2
- package/dist/tools/search/grep-engine.d.ts +22 -0
- package/dist/tools/{grep-tool.d.ts → search/grep-tool.d.ts} +3 -3
- package/dist/tools/{ls-tool.d.ts → search/ls-tool.d.ts} +2 -2
- package/dist/tools/{ripgrep.d.ts → search/ripgrep.d.ts} +1 -0
- package/dist/tools/{view-file-tool.d.ts → search/view-file-tool.d.ts} +2 -2
- package/dist/tools/{ask-user-tool.d.ts → session/ask-user-tool.d.ts} +2 -2
- package/dist/tools/{lsp-tool.d.ts → session/lsp-tool.d.ts} +5 -5
- package/dist/tools/{skill-tool.d.ts → session/skill-tool.d.ts} +2 -2
- package/dist/tools/{todo-write-tool.d.ts → session/todo-write-tool.d.ts} +2 -2
- package/dist/tools/session/update-topic-tool.d.ts +12 -0
- package/dist/tools/shell/background-process-registry.d.ts +116 -0
- package/dist/tools/{bash-output-tool.d.ts → shell/bash-output-tool.d.ts} +2 -2
- package/dist/tools/{bash-tool.d.ts → shell/bash-tool.d.ts} +10 -6
- package/dist/tools/{command-tool.d.ts → shell/command-tool.d.ts} +2 -2
- package/dist/tools/{kill-shell-tool.d.ts → shell/kill-shell-tool.d.ts} +2 -2
- package/dist/tools/shell/process-tree-termination.d.ts +25 -0
- package/dist/tools/shell/terminal-output-normalizer.d.ts +6 -0
- package/dist/tools/{web-fetch-tool.d.ts → web/web-fetch-tool.d.ts} +2 -2
- package/dist/tools/{web-search-tool.d.ts → web/web-search-tool.d.ts} +2 -2
- package/package.json +4 -3
- package/dist/chunk-E4R6CEFK.js +0 -1
- package/dist/chunk-NYZR4XKO.js +0 -1
- package/dist/chunk-RABU4RC2.js +0 -1
- package/dist/chunk-RTDLM6FU.js +0 -1
- package/dist/tools/background-process-registry.d.ts +0 -64
- package/dist/tools/file-edit-tool.d.ts +0 -34
- package/dist/tools/mcp-server-manager.d.ts +0 -60
- package/dist/tools/mcp-tool-adapter.d.ts +0 -47
- package/dist/tools/mock-tool-runtime.d.ts +0 -3
- package/dist/tools/runtime-manager-tools.d.ts +0 -58
- package/dist/tools/update-topic-tool.d.ts +0 -12
- package/dist/tools/workspace-paths.d.ts +0 -5
- /package/dist/tools/{mcp-oauth-provider.d.ts → mcp/mcp-oauth-provider.d.ts} +0 -0
- /package/dist/tools/{bash-internals.d.ts → shell/bash-internals.d.ts} +0 -0
- /package/dist/tools/{safe-fetch.d.ts → web/safe-fetch.d.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x2d5f66,_0xdbe54b){var _0x5538b1={_0xd844d2:0x2f9,_0x52e5a4:0x2f7,_0x5cbddf:0x403,_0x2e6d6e:0x400,_0x5e1e30:0x3fa,_0x1081d7:0x2f2,_0x433ba4:0x2ef,_0x5ad187:0x2f7,_0x3740e4:0x3f9,_0x560869:0x3fe,_0x3df089:0x3fa,_0x2a0422:0x2f2,_0x17837a:0x2ef,_0x133428:0x3fa,_0x307668:0x3fc,_0x3e2add:0x2f3,_0x36be7d:0x2f2,_0x3d67a2:0x2f5,_0x1a95fc:0x3ff},_0xe9d1a9={_0x2377a2:0x114},_0x3700a6={_0x3b4f6b:0x21d};function _0x36041f(_0x474979,_0xf95f83,_0x4054f5,_0x1bff5f){return _0x322f(_0x4054f5-_0x3700a6._0x3b4f6b,_0xf95f83);}var _0x47adde=_0x2d5f66();function _0x2b069e(_0x52ebca,_0x15e5b3,_0x37468f,_0x36d9b7){return _0x322f(_0x15e5b3-_0xe9d1a9._0x2377a2,_0x52ebca);}while(!![]){try{var _0xeecbd8=-parseInt(_0x2b069e(0x2f3,_0x5538b1._0xd844d2,_0x5538b1._0x52e5a4,0x2f9))/0x1+-parseInt(_0x36041f(0x403,_0x5538b1._0x5cbddf,_0x5538b1._0x2e6d6e,_0x5538b1._0x5e1e30))/0x2+parseInt(_0x2b069e(0x2ef,_0x5538b1._0x1081d7,_0x5538b1._0x433ba4,_0x5538b1._0x5ad187))/0x3*(parseInt(_0x36041f(_0x5538b1._0x3740e4,_0x5538b1._0x560869,_0x5538b1._0x5e1e30,_0x5538b1._0x3df089))/0x4)+-parseInt(_0x2b069e(_0x5538b1._0x2a0422,_0x5538b1._0x17837a,0x2f2,_0x5538b1._0x1081d7))/0x5*(-parseInt(_0x36041f(_0x5538b1._0x133428,0x3fc,0x3f7,_0x5538b1._0x307668))/0x6)+parseInt(_0x2b069e(0x2ef,0x2f3,_0x5538b1._0x3e2add,_0x5538b1._0x36be7d))/0x7+-parseInt(_0x2b069e(_0x5538b1._0xd844d2,_0x5538b1._0x3d67a2,0x2f6,0x2f9))/0x8+parseInt(_0x36041f(0x3f9,0x3fd,_0x5538b1._0x1a95fc,_0x5538b1._0x2e6d6e))/0x9;if(_0xeecbd8===_0xdbe54b)break;else _0x47adde['push'](_0x47adde['shift']());}catch(_0x48ff66){_0x47adde['push'](_0x47adde['shift']());}}}(_0x3944,0x2b83c));function resolveAnthropicReasoningConfig(_0x1eecb5){var _0x589ac9={_0x427503:0x39,_0x1d7a7b:0x35,_0x20eb7b:0x37,_0x4390d8:0x3a},_0x5b2030={_0x276f46:0x196};function _0x107035(_0x13d18d,_0x229867,_0x394dbb,_0xfc434f){return _0x322f(_0x13d18d- -_0x5b2030._0x276f46,_0xfc434f);}function _0x494f94(_0x29258d,_0x464444,_0x4319ea,_0x44ccd8){return _0x322f(_0x4319ea- -0x213,_0x44ccd8);}return _0x1eecb5?.[_0x494f94(-_0x589ac9._0x427503,-0x33,-0x37,-0x31)]?structuredClone(_0x1eecb5[_0x494f94(-_0x589ac9._0x1d7a7b,-0x39,-_0x589ac9._0x20eb7b,-_0x589ac9._0x4390d8)]):void 0x0;}function resolveOpenAiReasoningConfig(_0x3c6373){var _0x2243ca={_0x366bac:0x3b,_0x5446fb:0x44,_0x1d316c:0x3c,_0x25ad94:0x40,_0x29a2af:0x64,_0x2033e4:0x6e},_0x1a21d7={_0x4db477:0x224};function _0x2b515d(_0x3534e1,_0x45a1b0,_0x267ead,_0x249ef8){return _0x322f(_0x267ead- -0x248,_0x3534e1);}if(_0x3c6373?.[_0xae9d0c(-_0x2243ca._0x366bac,-0x3b,-0x40,-_0x2243ca._0x5446fb)])return structuredClone(_0x3c6373[_0xae9d0c(-0x3f,-_0x2243ca._0x1d316c,-_0x2243ca._0x25ad94,-_0x2243ca._0x25ad94)]);function _0xae9d0c(_0x3266a8,_0x506317,_0x33adcf,_0x52ba3f){return _0x322f(_0x33adcf- -_0x1a21d7._0x4db477,_0x52ba3f);}return _0x3c6373?.[_0x2b515d(-0x64,-0x69,-0x68,-0x68)]?structuredClone(_0x3c6373[_0x2b515d(-_0x2243ca._0x29a2af,-_0x2243ca._0x2033e4,-0x68,-0x66)]):void 0x0;}export{resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig};function _0x322f(_0x49493d,_0x1d4ab2){_0x49493d=_0x49493d-0x1da;var _0x3944d2=_0x3944();var _0x322fd8=_0x3944d2[_0x49493d];if(_0x322f['cErRgs']===undefined){var _0x46361c=function(_0x5daa9c){var _0x276159='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x1eecb5='',_0x3c6373='';for(var _0x84c886=0x0,_0x9793f0,_0x498693,_0x473fb1=0x0;_0x498693=_0x5daa9c['charAt'](_0x473fb1++);~_0x498693&&(_0x9793f0=_0x84c886%0x4?_0x9793f0*0x40+_0x498693:_0x498693,_0x84c886++%0x4)?_0x1eecb5+=String['fromCharCode'](0xff&_0x9793f0>>(-0x2*_0x84c886&0x6)):0x0){_0x498693=_0x276159['indexOf'](_0x498693);}for(var _0x598132=0x0,_0x37a632=_0x1eecb5['length'];_0x598132<_0x37a632;_0x598132++){_0x3c6373+='%'+('00'+_0x1eecb5['charCodeAt'](_0x598132)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3c6373);};_0x322f['aWCRyg']=_0x46361c,_0x322f['wecbwN']={},_0x322f['cErRgs']=!![];}var _0xc3b0c0=_0x3944d2[0x0],_0x6e931f=_0x49493d+_0xc3b0c0,_0x1e6eb4=_0x322f['wecbwN'][_0x6e931f];return!_0x1e6eb4?(_0x322fd8=_0x322f['aWCRyg'](_0x322fd8),_0x322f['wecbwN'][_0x6e931f]=_0x322fd8):_0x322fd8=_0x1e6eb4,_0x322fd8;}function _0x3944(){var _0x1e77b2=['mJGYnZqXm0vfvhDtrq','nJq0mZC0u29KswDM','y29KzxG','mJG1nZe0DhDmC25U','mJm0ndGWCxD0DLPg','ndbIq2DQy0y','yw50AhjVCgLJ','oty1mMTQu0vnAq','mJe5vLzLr1fA','nde2nJi2tMX5AejT','B3bLBMfP','nJeWnJe2CNLQD2DV'];_0x3944=function(){return _0x1e77b2;};return _0x3944();}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x562b18,_0x440154){const _0x2f49bb={_0x1f6346:0xc0,_0x2ba537:0x99,_0x4540da:0x3bd,_0x3e73eb:0x391,_0x373045:0x375,_0x2888ff:0x3ac,_0x4f3367:0x3fe,_0x25c8de:0x3da,_0x3c2ca2:0xda,_0x3dd8fc:0xe9,_0x79186:0x117,_0x4d1dec:0x9e,_0x274804:0x3b2,_0xe993aa:0x3d4,_0x20f381:0x123,_0x3e9826:0xf7},_0x3dd7bf={_0x491e9a:0x1c9};function _0x2cbac7(_0x3d2ac1,_0x13a4f6,_0x1375cb,_0x304c52){return _0x5eb5(_0x3d2ac1- -_0x3dd7bf._0x491e9a,_0x13a4f6);}const _0x2eb538=_0x562b18();function _0x293a92(_0xb87e8b,_0x9d2fa6,_0x2509e2,_0x54227b){return _0x5eb5(_0x2509e2-0x2be,_0x54227b);}while(!![]){try{const _0x469a04=parseInt(_0x2cbac7(-_0x2f49bb._0x1f6346,-0x10a,-0x8a,-_0x2f49bb._0x2ba537))/0x1+-parseInt(_0x293a92(_0x2f49bb._0x4540da,_0x2f49bb._0x3e73eb,_0x2f49bb._0x373045,_0x2f49bb._0x2888ff))/0x2+-parseInt(_0x293a92(0x3d1,_0x2f49bb._0x4f3367,_0x2f49bb._0x25c8de,0x43d))/0x3+parseInt(_0x2cbac7(-_0x2f49bb._0x3c2ca2,-0x142,-0x12c,-0x11b))/0x4+-parseInt(_0x2cbac7(-0xf0,-_0x2f49bb._0x3dd8fc,-_0x2f49bb._0x79186,-_0x2f49bb._0x4d1dec))/0x5+-parseInt(_0x293a92(0x3dd,0x34b,0x3a6,_0x2f49bb._0x274804))/0x6*(parseInt(_0x293a92(0x41d,0x388,_0x2f49bb._0xe993aa,0x3b7))/0x7)+parseInt(_0x2cbac7(-_0x2f49bb._0x20f381,-0x103,-0xc9,-_0x2f49bb._0x3e9826))/0x8;if(_0x469a04===_0x440154)break;else _0x2eb538['push'](_0x2eb538['shift']());}catch(_0x59e886){_0x2eb538['push'](_0x2eb538['shift']());}}}(_0x2891,0xa7211));import{withEstimatedModelCost}from'./chunk-GAZGO6N7.js';import{createAssistantTextMessage,createReasoningMessage,createToolResultUserMessage,createToolUseMessage,getToolUseBlocks,normalizeMessage,normalizeSystem,responseToAssistantMessage,synthesizeMissingToolResults}from'./chunk-YNOIG4FD.js';import{TurnFailedError}from'./chunk-FFIZ6TKW.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'./chunk-X7VAACWY.js';function isJsonObject(_0x157af1){const _0x5c9c12={_0x19d670:0x388,_0x2a2384:0x3ec,_0x4a7a4d:0x3c2,_0x40100b:0x405};function _0x5cbdaf(_0x3a8c90,_0x224493,_0x1b5e60,_0x22329e){return _0x5eb5(_0x22329e-0x244,_0x224493);}function _0x1a0af7(_0x153fc9,_0x1d83bf,_0x347b87,_0x17648f){return _0x5eb5(_0x347b87-0x304,_0x17648f);}return typeof _0x157af1===_0x1a0af7(_0x5c9c12._0x19d670,_0x5c9c12._0x2a2384,0x3cc,0x38d)&&_0x157af1!==null&&!Array[_0x1a0af7(_0x5c9c12._0x4a7a4d,0x3ce,_0x5c9c12._0x40100b,0x3ed)](_0x157af1);}function isToolOutputEnvelope(_0x14cb05){const _0x2aee81={_0x54222d:0x3a4,_0x2999c5:0x404,_0x2a5884:0xd3,_0x3c6ad1:0x15b,_0x1aaa97:0x11e},_0x438fee={_0x220b29:0x12},_0x1c5c7e={_0x61d932:0x2a3};if(typeof _0x14cb05!=='object'||_0x14cb05===null||Array[_0x5ba102(0x409,0x3b2,_0x2aee81._0x54222d,_0x2aee81._0x2999c5)](_0x14cb05))return![];if(typeof _0x14cb05[_0x5ec449(0xf0,0xe5,_0x2aee81._0x2a5884,0xe4)]!==_0x5ec449(0x104,_0x2aee81._0x3c6ad1,_0x2aee81._0x1aaa97,_0x2aee81._0x3c6ad1))return![];function _0x5ba102(_0x58a040,_0x1debef,_0x4434e3,_0x6f86b4){return _0x5eb5(_0x4434e3-_0x1c5c7e._0x61d932,_0x6f86b4);}const _0xe3365d=_0x14cb05['structured'];function _0x5ec449(_0x35ee09,_0x1424cc,_0x267e23,_0x15c044){return _0x5eb5(_0x15c044-_0x438fee._0x220b29,_0x35ee09);}return _0xe3365d===void 0x0||isJsonObject(_0xe3365d);}function validateAgainstSchema(_0x70fdc5,_0xda0e49,_0x38cfdc){const _0x4f526c={_0x1a19e5:0x16,_0x1cb179:0x30,_0x1d68f4:0x4f,_0x3205a6:0xa,_0x5da905:0x21,_0x261030:0x392,_0x2c0195:0x379,_0x2387bd:0x2bd,_0x217d83:0x2d5,_0x453144:0x350,_0x5b0783:0x325,_0x548f78:0x5e,_0x22a2b2:0xa5,_0x3498b1:0x5d,_0x3e75b6:0x31,_0xbaf834:0x4,_0x2e10f2:0x20,_0x47defa:0x3a4,_0x2cc02c:0x366,_0x62a726:0x3,_0x1dc1ee:0x43,_0x1629bf:0x309,_0x37c6e6:0x346,_0x241d4f:0x2eb,_0x2863bc:0xfe,_0x1d4d5e:0xa0,_0x2ee566:0x2ee,_0x20e9e0:0x2ec,_0xbe092c:0x7f,_0x4628f0:0x2bf,_0x59fd5f:0x318,_0x5109c1:0x35,_0x86960b:0x49,_0x3f3dae:0x2df,_0x473fa7:0x337,_0x1091b7:0x363,_0x37b913:0x31a,_0x47dd1b:0x5a,_0x237ed4:0x3a,_0x4a6954:0x2d1,_0x2c270e:0x300,_0x5be2f9:0x22,_0x305897:0x43,_0x571d77:0x80,_0xfbdd6:0x332,_0x567eb6:0x2da,_0x160c87:0x25f,_0x1e58fc:0x30e,_0x1995ae:0x2ac,_0x56d21f:0x17,_0x48b4b8:0x7,_0x1fe0a6:0x50,_0x66b5f2:0x2f6,_0x48ce64:0x82,_0x3d53d5:0xb7,_0x3f270d:0x2bf,_0x245eb6:0x80},_0x43b7c8={_0x7327d:0x1a},_0x1c8178={_0xcc64:0x293},_0x232602={_0x2c0a7e:0x169};function _0x49f2fc(_0x5aba5f,_0x2ff9d1,_0x18524b,_0x95120f){return _0x5eb5(_0x95120f-0x1ff,_0x2ff9d1);}function _0x2e111e(_0x4d9fa7,_0x55a3b4,_0x518976,_0x28d5a0){return _0x5eb5(_0x28d5a0- -_0x232602._0x2c0a7e,_0x518976);}if(_0x2e111e(-_0x4f526c._0x1a19e5,_0x4f526c._0x1cb179,_0x4f526c._0x1d68f4,_0x4f526c._0x3205a6)in _0x38cfdc){const _0x2ca0f7=_0x38cfdc[_0x2e111e(-_0x4f526c._0x5da905,0x2e,-0x47,0xa)][_0x49f2fc(0x2d1,_0x4f526c._0x261030,_0x4f526c._0x2c0195,0x32c)](_0x269af8=>{try{return validateAgainstSchema(_0x70fdc5,_0xda0e49,_0x269af8),!![];}catch{return![];}});if(!_0x2ca0f7)throw new Error(_0x49f2fc(_0x4f526c._0x2387bd,_0x4f526c._0x217d83,_0x4f526c._0x453144,_0x4f526c._0x5b0783)+_0x70fdc5+':\x20expected\x20value\x20matching\x20anyOf\x20schema');return;}switch(_0x38cfdc[_0x2e111e(-_0x4f526c._0x548f78,-_0x4f526c._0x22a2b2,-0xc0,-_0x4f526c._0x3498b1)]){case _0x2e111e(_0x4f526c._0x3e75b6,-_0x4f526c._0xbaf834,0xa,-_0x4f526c._0x2e10f2):if(typeof _0xda0e49!==_0x49f2fc(_0x4f526c._0x47defa,_0x4f526c._0x2cc02c,0x2f4,0x348))throw new Error(_0x2e111e(-0x62,-0x1f,_0x4f526c._0x62a726,-_0x4f526c._0x1dc1ee)+_0x70fdc5+_0x49f2fc(_0x4f526c._0x1629bf,_0x4f526c._0x37c6e6,0x2d9,_0x4f526c._0x241d4f));if(_0x38cfdc[_0x2e111e(-_0x4f526c._0x2863bc,-0x88,-_0x4f526c._0x1d4d5e,-0xb5)]!==void 0x0&&!_0x38cfdc[_0x49f2fc(_0x4f526c._0x2ee566,_0x4f526c._0x20e9e0,0x297,0x2b3)]['includes'](_0xda0e49))throw new Error(_0x2e111e(-0x24,-_0x4f526c._0xbe092c,0x1f,-0x43)+_0x70fdc5+_0x49f2fc(_0x4f526c._0x4628f0,0x30c,_0x4f526c._0x59fd5f,0x2ec)+_0x38cfdc['enum']['join'](',\x20'));return;case _0x2e111e(-0x21,-_0x4f526c._0x5109c1,-0xa3,-0x5c):if(typeof _0xda0e49!=='number')throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x70fdc5+_0x49f2fc(0x334,0x3b5,0x36a,0x35c));return;case _0x2e111e(-0x1c,-0x1e,-_0x4f526c._0x86960b,-0x52):if(typeof _0xda0e49!==_0x49f2fc(_0x4f526c._0x3f3dae,_0x4f526c._0x473fa7,0x371,0x316))throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x70fdc5+_0x49f2fc(0x37b,0x30f,_0x4f526c._0x1091b7,_0x4f526c._0x37b913));return;case _0x2e111e(_0x4f526c._0x47dd1b,_0x4f526c._0x237ed4,-0x28,-_0x4f526c._0x3205a6):if(!Array[_0x49f2fc(0x2cd,_0x4f526c._0x4a6954,0x2f2,_0x4f526c._0x2c270e)](_0xda0e49))throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x70fdc5+_0x49f2fc(0x30b,0x319,0x315,0x302));_0xda0e49['forEach']((_0x349119,_0x7fe5d5)=>{function _0x4baf75(_0x186f97,_0x5b6c74,_0x28d8b7,_0x39b6ab){return _0x49f2fc(_0x186f97-0x1d2,_0x28d8b7,_0x28d8b7-0x19c,_0x186f97- -_0x1c8178._0xcc64);}validateAgainstSchema(_0x70fdc5+'['+_0x7fe5d5+']',_0x349119,_0x38cfdc[_0x4baf75(0x72,_0x43b7c8._0x7327d,0x54,0xb6)]);});return;case'object':if(!isJsonObject(_0xda0e49))throw new Error(_0x2e111e(-0x5f,-_0x4f526c._0x5be2f9,-0x58,-_0x4f526c._0x305897)+_0x70fdc5+':\x20expected\x20object');for(const _0x46673b of _0x38cfdc['required']??[]){if(!Object[_0x2e111e(-0xa1,-0x33,-0x28,-_0x4f526c._0x571d77)](_0xda0e49,_0x46673b))throw new Error(_0x49f2fc(_0x4f526c._0xfbdd6,0x2eb,_0x4f526c._0x567eb6,0x325)+_0x70fdc5+_0x49f2fc(_0x4f526c._0x160c87,_0x4f526c._0x1e58fc,_0x4f526c._0x1995ae,0x2aa)+_0x46673b+'\x22');}if(_0x38cfdc[_0x49f2fc(0x354,0x35d,0x360,0x304)]===![]){const _0x3d7c93=Object[_0x2e111e(-0x45,-_0x4f526c._0x56d21f,0x2e,-_0x4f526c._0x48b4b8)](_0xda0e49)[_0x2e111e(-_0x4f526c._0x1fe0a6,-0x69,-0x4e,-0x4b)](_0x4aa5f9=>!Object[_0x49f2fc(0x2ce,0x33c,0x327,0x2e8)](_0x38cfdc['properties'],_0x4aa5f9));if(_0x3d7c93!==void 0x0)throw new Error(_0x49f2fc(0x2e9,_0x4f526c._0x66b5f2,0x342,_0x4f526c._0x5b0783)+_0x70fdc5+_0x2e111e(-0x8f,-0x11c,-_0x4f526c._0x48ce64,-_0x4f526c._0x3d53d5)+_0x3d7c93+'\x22');}for(const [_0x23df8b,_0x1bad7b]of Object['entries'](_0x38cfdc[_0x49f2fc(0x318,0x2d1,_0x4f526c._0x3f270d,0x2e5)])){Object[_0x2e111e(-0xc5,-0xdc,-0xad,-_0x4f526c._0x245eb6)](_0xda0e49,_0x23df8b)&&validateAgainstSchema(_0x70fdc5+'.'+_0x23df8b,_0xda0e49[_0x23df8b],_0x1bad7b);}}}function normalizeToolOutputValue(_0x41f68c){const _0x426edb={_0x5efb79:0x25c,_0x5236c1:0x26d,_0x236048:0x3fc,_0x5d3b27:0x425,_0x29d9dd:0x458,_0x5b1fcb:0x4b7,_0x3607b9:0x410,_0x43ab16:0x440,_0x167428:0x3b4,_0x5cee43:0x48f,_0x1502bd:0x210},_0x11cde2={_0x52afa6:0x30f};if(isToolOutputEnvelope(_0x41f68c))return{'output':_0x41f68c[_0x28e336(-_0x426edb._0x5efb79,-0x274,-_0x426edb._0x5236c1,-0x29f)],'structured':_0x41f68c['structured']??{'value':_0x41f68c['output']},..._0x41f68c[_0x110aa0(0x428,_0x426edb._0x236048,_0x426edb._0x5d3b27,0x3c7)]!==void 0x0?{'content':_0x41f68c['content']}:{}};function _0x28e336(_0x3f6d0d,_0x41c6e2,_0x2710c4,_0x333583){return _0x5eb5(_0x41c6e2- -0x346,_0x2710c4);}if(typeof _0x41f68c===_0x110aa0(_0x426edb._0x29d9dd,0x409,_0x426edb._0x5b1fcb,0x443))return{'output':_0x41f68c,'structured':{'value':_0x41f68c}};function _0x110aa0(_0x2b8729,_0x1eb0ee,_0xb41274,_0x43b7be){return _0x5eb5(_0x2b8729-_0x11cde2._0x52afa6,_0xb41274);}if(typeof _0x41f68c==='object'&&_0x41f68c!==null&&!Array[_0x110aa0(_0x426edb._0x3607b9,_0x426edb._0x43ab16,0x3d6,_0x426edb._0x167428)](_0x41f68c))return{'output':JSON[_0x110aa0(0x43f,0x451,0x453,_0x426edb._0x5cee43)](_0x41f68c,null,0x2),'structured':_0x41f68c};return{'output':JSON[_0x28e336(-0x1be,-0x216,-_0x426edb._0x1502bd,-0x1c0)](_0x41f68c,null,0x2),'structured':{'value':_0x41f68c}};}function _0x1b09d0(_0x4a7aa4,_0x38149a,_0x308a18,_0x402ee6){const _0x3d0fd9={_0x2ebdc2:0x28c};return _0x5eb5(_0x308a18-_0x3d0fd9._0x2ebdc2,_0x4a7aa4);}function createToolOutput(_0x262124,_0x209034={'value':_0x262124},_0x567ca5){return{'output':_0x262124,'structured':_0x209034,..._0x567ca5!==void 0x0?{'content':_0x567ca5}:{}};}var ToolExecutionError=class extends Error{[_0x253ce3(0x121,0x1d0,0x12f,0x175)];constructor(_0x328b67,_0x40412f={}){const _0x6fc581={_0xa3da8:0x1ba,_0x54b916:0x1f1,_0x592b3b:0x174},_0x3bd161={_0x208e07:0xff,_0x195b0d:0x9e},_0x3c81b0={_0x1d4c0d:0x1b2,_0x339a91:0x7f,_0x14719e:0x23};super(_0x328b67),this[_0x3e7f0f(0x167,0x157,0x1c5,0x11e)]=_0x3e7f0f(_0x6fc581._0xa3da8,_0x6fc581._0x54b916,0x1c8,_0x6fc581._0x592b3b);function _0x3e7f0f(_0x6c7566,_0x46569d,_0x19a9c4,_0x4d1541){return _0x253ce3(_0x6c7566-_0x3c81b0._0x1d4c0d,_0x4d1541,_0x19a9c4-_0x3c81b0._0x339a91,_0x6c7566- -_0x3c81b0._0x14719e);}function _0x4d8a78(_0x4f149d,_0x5d1c84,_0x53c81c,_0x139e3e){return _0x253ce3(_0x4f149d-0x1a8,_0x4f149d,_0x53c81c-_0x3bd161._0x208e07,_0x139e3e-_0x3bd161._0x195b0d);}this[_0x4d8a78(0x215,0x1f1,0x204,0x213)]=_0x40412f;}};function defineTool(_0x377b4f){return _0x377b4f;}function resolveToolPermissionClass(_0xeaee57){const _0x4bb651={_0x43537a:0x11b,_0x5f3e13:0x15f,_0x2ceece:0x145,_0x4bbbb1:0x18a,_0x1a17b5:0xf4},_0x4dc7c0={_0x4c9434:0x9,_0x5ae674:0xbc},_0x22d26e={_0x2b35fe:0x12c},_0x5d7f8b=_0xeaee57?.['permissionClass'];if(_0x5d7f8b===_0x547f9f(0x1c4,_0x4bb651._0x43537a,_0x4bb651._0x5f3e13,_0x4bb651._0x2ceece)||_0x5d7f8b===_0x547f9f(_0x4bb651._0x4bbbb1,_0x4bb651._0x1a17b5,0x152,0x127)||_0x5d7f8b==='always-confirm')return _0x5d7f8b;function _0x36ba36(_0x1ab511,_0x4414ae,_0x5a1b10,_0x2f69df){return _0x253ce3(_0x1ab511-0xed,_0x1ab511,_0x5a1b10-_0x22d26e._0x2b35fe,_0x5a1b10- -0x136);}function _0x547f9f(_0x33bf44,_0x1e00df,_0x1fc9ae,_0x5a7323){return _0x253ce3(_0x33bf44-_0x4dc7c0._0x4c9434,_0x1e00df,_0x1fc9ae-0xcb,_0x1fc9ae- -_0x4dc7c0._0x5ae674);}return'always-confirm';}var ToolRegistry=class{['toolsByName']=new Map();constructor(_0x34a672=[]){const _0x453f43={_0x4b62e1:0x47c,_0xe1fdc9:0x4bd},_0x30380f={_0x2f199d:0x158};function _0x243174(_0x1e3e32,_0x457da4,_0x299103,_0x3978bd){return _0x253ce3(_0x1e3e32-0x8e,_0x3978bd,_0x299103-_0x30380f._0x2f199d,_0x457da4-0x329);}for(const _0x48e731 of _0x34a672){this[_0x243174(0x4cb,_0x453f43._0x4b62e1,0x4c5,_0x453f43._0xe1fdc9)](_0x48e731);}}['register'](_0x297eff){const _0x41fbfb={_0x8b53ec:0x85,_0x197d1b:0x11,_0x25045c:0x4b},_0x2af4ca={_0x27bc5d:0x12d,_0x274de7:0x1b7,_0xb51b4c:0x13a};function _0x7901aa(_0x5aa8b1,_0x47a590,_0x123365,_0x441066){return _0x253ce3(_0x5aa8b1-_0x2af4ca._0x27bc5d,_0x47a590,_0x123365-_0x2af4ca._0x274de7,_0x123365- -_0x2af4ca._0xb51b4c);}this[_0x7901aa(_0x41fbfb._0x8b53ec,-_0x41fbfb._0x197d1b,_0x41fbfb._0x25045c,-0x11)]['set'](_0x297eff['name'],_0x297eff);}['get'](_0x5d9097){const _0x3a7890={_0x4e42ea:0x7d,_0x1849ae:0x2a},_0x44c607={_0x2ae882:0x2c,_0x212612:0x3a,_0x3a4a63:0x2b8},_0x543421={_0x2b17a2:0x197};function _0x86bf4d(_0x3835ce,_0x3aa33a,_0x39cb6e,_0x2fdfbf){return _0x253ce3(_0x3835ce-0x1d3,_0x3aa33a,_0x39cb6e-_0x543421._0x2b17a2,_0x2fdfbf- -0x1a8);}function _0x247aea(_0x1227a3,_0x119949,_0x502de9,_0x1629ba){return _0x253ce3(_0x1227a3-_0x44c607._0x2ae882,_0x119949,_0x502de9-_0x44c607._0x212612,_0x502de9- -_0x44c607._0x3a4a63);}return this[_0x86bf4d(-0x6f,-0x39,-_0x3a7890._0x4e42ea,-0x23)][_0x86bf4d(0x82,0x4f,_0x3a7890._0x1849ae,0x40)](_0x5d9097);}[_0x253ce3(0x1c0,0x19e,0x196,0x1f5)](){const _0x27aaa1={_0x20fd43:0xa9,_0x3222f8:0x10b},_0x21fe8a={_0x4463a4:0x10a,_0x560d24:0x19c};function _0x402f2c(_0x4116f8,_0x4685b4,_0x13ba28,_0x297cd9){return _0x1b09d0(_0x4685b4,_0x4685b4-_0x21fe8a._0x4463a4,_0x297cd9- -0x47e,_0x297cd9-_0x21fe8a._0x560d24);}return[...this['toolsByName'][_0x402f2c(-_0x27aaa1._0x20fd43,-_0x27aaa1._0x3222f8,-0x113,-0xca)]()];}['listToolSchemas'](){const _0x44309b={_0x1ea21e:0x24d},_0x427c5b={_0x193804:0x47b,_0x55e133:0x452,_0x4ee026:0x3b5,_0x40d263:0x34d,_0x5c98f1:0x3ea,_0x15485f:0x39e},_0x221508={_0x15cdc1:0x4f},_0x42ed4a={_0x5dffe8:0xb2,_0x211a56:0x3dc};function _0x47fd3e(_0x418b4f,_0x4305df,_0x1e7eed,_0x420250){return _0x253ce3(_0x418b4f-_0x42ed4a._0x5dffe8,_0x1e7eed,_0x1e7eed-0x39,_0x4305df- -_0x42ed4a._0x211a56);}return this['list']()[_0x47fd3e(-0x262,-_0x44309b._0x1ea21e,-0x1eb,-0x212)](_0x18d60b=>{const _0x23b67f={_0x4bd244:0x14c};function _0x3a8d4d(_0x1c4603,_0x2da52d,_0x4bc465,_0x29f981){return _0x47fd3e(_0x1c4603-_0x23b67f._0x4bd244,_0x1c4603-0x61e,_0x2da52d,_0x29f981-0x130);}function _0x494929(_0x18ee62,_0x3c89f7,_0x3c0b76,_0x2bd716){return _0x47fd3e(_0x18ee62-_0x221508._0x15cdc1,_0x3c89f7-0x6e9,_0x18ee62,_0x2bd716-0x197);}return{'name':_0x18d60b[_0x494929(0x439,0x497,0x4ad,0x4a3)],'description':_0x18d60b[_0x3a8d4d(0x44d,_0x427c5b._0x193804,_0x427c5b._0x55e133,0x41b)],'input_schema':_0x18d60b[_0x3a8d4d(_0x427c5b._0x4ee026,_0x427c5b._0x40d263,_0x427c5b._0x5c98f1,_0x427c5b._0x15485f)]};});}};function validateToolInput(_0x1d0805,_0x2fdb41){const _0x2061a9={_0x3f0e2b:0x2f2,_0x2377a1:0x265},_0x279660={_0x4feec3:0x1cd,_0x1db842:0x2c,_0x3652ea:0xed};validateAgainstSchema(_0x33b77b(0x2cd,_0x2061a9._0x3f0e2b,_0x2061a9._0x2377a1,0x327),_0x1d0805,_0x2fdb41);function _0x33b77b(_0x371a30,_0x48769a,_0x327b67,_0x1d9488){return _0x253ce3(_0x371a30-_0x279660._0x4feec3,_0x48769a,_0x327b67-_0x279660._0x1db842,_0x371a30-_0x279660._0x3652ea);}return _0x1d0805;}function deriveFinalToolOutput(_0x392437){const _0x4754ae={_0xd34c74:0x1d4,_0x12754d:0x1d3,_0x597185:0xd8,_0x14ba4a:0xfc,_0x176783:0xe6,_0x5aa263:0xa8,_0x150652:0x1bd,_0x121a74:0x14b,_0x2076ec:0x1a0,_0x3ee533:0x19e,_0x39bbe8:0x1df,_0x2c08b2:0x177,_0x565124:0x131,_0x9b499f:0xd7,_0x466f7e:0x153,_0x11fba3:0xfc,_0x398634:0x11c,_0x4d660f:0x16a,_0x3faf3e:0x138,_0x2b400c:0x193},_0x4604bf={_0x3e8cd3:0x4,_0x3c2d0f:0x240,_0x22f5eb:0xbd},_0x18daa0={_0x10faed:0x18c,_0x4a9eba:0x5};function _0x32e610(_0x32ff5b,_0x34c31f,_0x5cb05f,_0x174f6d){return _0x253ce3(_0x32ff5b-_0x18daa0._0x10faed,_0x5cb05f,_0x5cb05f-_0x18daa0._0x4a9eba,_0x34c31f- -0x32d);}if(_0x392437[_0x32e610(-_0x4754ae._0xd34c74,-_0x4754ae._0x12754d,-0x1d4,-0x22e)]===0x0)return{'output':'','structured':{}};if(_0x392437[_0x2ebbc6(_0x4754ae._0x597185,_0x4754ae._0x14ba4a,_0x4754ae._0x176783,_0x4754ae._0x5aa263)]===0x1)return{'output':_0x392437[0x0][_0x32e610(-0x181,-0x1b1,-_0x4754ae._0x150652,-0x17f)],'structured':_0x392437[0x0]['structured'],..._0x392437[0x0][_0x2ebbc6(0x123,0x165,_0x4754ae._0x121a74,_0x4754ae._0x2076ec)]!==void 0x0?{'content':_0x392437[0x0]['content']}:{}};function _0x2ebbc6(_0x1af778,_0x4fa0e9,_0x17ba18,_0x4fbd3f){return _0x1b09d0(_0x17ba18,_0x4fa0e9-_0x4604bf._0x3e8cd3,_0x4fa0e9- -_0x4604bf._0x3c2d0f,_0x4fbd3f-_0x4604bf._0x22f5eb);}const _0x301995=_0x392437['filter'](_0x38afe7=>_0x38afe7['content']!==void 0x0);return{'output':_0x392437[_0x32e610(-0x1f7,-_0x4754ae._0x3ee533,-_0x4754ae._0x39bbe8,-_0x4754ae._0x2c08b2)](_0x2f6481=>_0x2f6481[_0x32e610(-0x214,-0x1b1,-0x1df,-0x155)])['join'](''),'structured':{'chunks':_0x392437[_0x2ebbc6(0x12e,_0x4754ae._0x565124,_0x4754ae._0x9b499f,_0x4754ae._0x466f7e)](_0x3ca1cf=>_0x3ca1cf[_0x32e610(-0x1ea,-0x1b8,-0x1ba,-0x1bf)])},..._0x301995[_0x2ebbc6(0x164,_0x4754ae._0x11fba3,_0x4754ae._0x398634,0xdb)]===0x1?{'content':_0x301995[0x0][_0x32e610(-0x159,-_0x4754ae._0x4d660f,-_0x4754ae._0x3faf3e,-_0x4754ae._0x2b400c)]}:{}};}function createToolMeta(){return{'transforms':[]};}function createErrorToolResult(_0x39f457,_0x16bb5d,_0x1ec9a9,_0x12f415=[]){const _0x2d6128={_0x27ca7b:0x3e9,_0x231eb8:0x38c,_0x1d6381:0x430,_0x2cf965:0x3f1},_0x135c9b={_0x266bd6:0x111};function _0x20ef4b(_0x1807ac,_0x225520,_0x34595f,_0x5d6a09){return _0x253ce3(_0x1807ac-_0x135c9b._0x266bd6,_0x225520,_0x34595f-0x153,_0x5d6a09-0x267);}return{'callId':_0x39f457['id'],'toolName':_0x39f457[_0x20ef4b(_0x2d6128._0x27ca7b,_0x2d6128._0x231eb8,_0x2d6128._0x1d6381,_0x2d6128._0x2cf965)],'status':'error','output':_0x16bb5d,'structured':_0x1ec9a9,'chunks':_0x12f415,'meta':createToolMeta()};}function createRejectedToolResult(_0x4fb17f,_0xc1a5d1){const _0x15642d={_0x38c292:0x3aa,_0x38b258:0x3ef,_0x4d47cb:0x3a7,_0xe6b321:0x1ae,_0x1c7f6d:0x1c3,_0x2e7cf8:0x1aa,_0x108af8:0xe9,_0x4aacb6:0x14e,_0x50070c:0x439,_0x377830:0x3d4,_0x4bb157:0x427,_0x1d99a7:0x3fb,_0x52de55:0x433},_0x57225d={_0x43d2c3:0x34d},_0x110862={_0x4b0ab3:0x2a1},_0x233ece=_0xc1a5d1?.['trim']()[_0xed872d(0x3fb,_0x15642d._0x38c292,_0x15642d._0x38b258,_0x15642d._0x4d47cb)]?_0xc1a5d1:'Tool\x20execution\x20rejected\x20for\x20'+_0x4fb17f[_0x368198(-_0x15642d._0xe6b321,-0x214,-_0x15642d._0x1c7f6d,-_0x15642d._0x2e7cf8)];function _0xed872d(_0x4e37b3,_0x1fd3ed,_0x2fa5d4,_0x18fa50){return _0x253ce3(_0x4e37b3-0x1d6,_0x18fa50,_0x2fa5d4-0x3a,_0x4e37b3-_0x110862._0x4b0ab3);}function _0x368198(_0x4fcede,_0x1915a7,_0x456bec,_0x3a9d7f){return _0x253ce3(_0x4fcede-0xf6,_0x1915a7,_0x456bec-0x1ba,_0x456bec- -_0x57225d._0x43d2c3);}return createErrorToolResult(_0x4fb17f,_0x233ece,{'error':_0x368198(-0xe9,-_0x15642d._0x108af8,-_0x15642d._0x4aacb6,-0x165),..._0xc1a5d1?.[_0xed872d(_0x15642d._0x50070c,_0x15642d._0x377830,0x46e,_0x15642d._0x4bb157)]()[_0xed872d(_0x15642d._0x1d99a7,0x453,_0x15642d._0x52de55,0x404)]?{'reason':_0xc1a5d1}:{}});}function createAbortedToolResult(_0x1eaafb,_0x18b315,_0x4a8e7a=[]){const _0x586f9c={_0x1ea193:0xf9,_0x2da69c:0xdc},_0x236418={_0x573c8c:0x166},_0x3e1965=toAbortError(_0x18b315);function _0x5d0791(_0x3e558b,_0x4f3171,_0x2fca2f,_0x57772e){return _0x1b09d0(_0x2fca2f,_0x4f3171-0xd1,_0x4f3171- -0x30e,_0x57772e-_0x236418._0x573c8c);}return createErrorToolResult(_0x1eaafb,_0x3e1965[_0x5d0791(0xa8,0xe5,_0x586f9c._0x1ea193,_0x586f9c._0x2da69c)],{'error':_0x3e1965['message'],'aborted':!![]},_0x4a8e7a);}function createSuccessToolResult(_0x38e09c,_0x49ad92,_0x4fa467){const _0x4d24b4={_0x98b4b0:0x278,_0x41b256:0x296,_0x132b98:0x290,_0x2bca12:0x29c,_0x561884:0x2c2,_0x1bcdb7:0x230,_0x13f372:0x20e,_0x2c6306:0x257},_0x42e38b={_0x4b92bd:0x1a8,_0x3e2090:0x5fc},_0x4f79be={_0x2669ed:0x26,_0x160b60:0x1af};function _0x20e623(_0x3ef74c,_0x2ef34e,_0x270657,_0x581453){return _0x1b09d0(_0x270657,_0x2ef34e-0xd,_0x2ef34e- -_0x4f79be._0x2669ed,_0x581453-_0x4f79be._0x160b60);}function _0x55cc84(_0x48db6b,_0x387eb4,_0x1c7f94,_0x20cbe7){return _0x1b09d0(_0x387eb4,_0x387eb4-_0x42e38b._0x4b92bd,_0x1c7f94- -_0x42e38b._0x3e2090,_0x20cbe7-0x1a5);}return{'callId':_0x38e09c['id'],'toolName':_0x38e09c[_0x55cc84(-_0x4d24b4._0x98b4b0,-_0x4d24b4._0x41b256,-_0x4d24b4._0x132b98,-0x269)],'status':'ok','output':_0x49ad92[_0x55cc84(-0x2b1,-_0x4d24b4._0x2bca12,-0x29e,-_0x4d24b4._0x561884)],'structured':_0x49ad92['structured'],..._0x49ad92[_0x55cc84(-0x22e,-0x241,-0x257,-_0x4d24b4._0x1bcdb7)]!==void 0x0?{'content':_0x49ad92[_0x55cc84(-_0x4d24b4._0x13f372,-0x255,-_0x4d24b4._0x2c6306,-0x2b1)]}:{},'chunks':_0x4fa467,'meta':createToolMeta()};}function createUnknownToolResult(_0x3d3cbe){const _0x1476cd={_0x2b04ca:0x50,_0x57baae:0xa0,_0x22c9a0:0x5c,_0x2df517:0x2b,_0xcf9352:0x24},_0xcb9a4e={_0x406eb5:0x1b9};function _0xd39516(_0x361152,_0x1a311c,_0x25a030,_0x1fc37e){return _0x253ce3(_0x361152-0xbb,_0x361152,_0x25a030-0x115,_0x1fc37e- -0x19d);}function _0xdae4e9(_0xb5a991,_0xc412f0,_0x447fdb,_0x462d51){return _0x253ce3(_0xb5a991-0x1e5,_0xb5a991,_0x447fdb-0x13c,_0xc412f0- -_0xcb9a4e._0x406eb5);}return createErrorToolResult(_0x3d3cbe,_0xd39516(_0x1476cd._0x2b04ca,0x87,_0x1476cd._0x57baae,_0x1476cd._0x22c9a0)+_0x3d3cbe[_0xdae4e9(0x1b,-0x2f,-_0x1476cd._0x2df517,0x2b)],{'error':_0xd39516(0xe,0x1b,-_0x1476cd._0xcf9352,-0x45)});}function isDispatchDecision(_0x3859a4){const _0x4eb0ff={_0x30d0f9:0x154,_0x31b9ac:0x14a,_0x5f233a:0x107,_0x2b59a3:0x19d,_0x2c7e8c:0x1c2,_0x2ab71c:0x20b,_0x5c4fb9:0x201},_0x11b966={_0x4af7d7:0x2a2};if(typeof _0x3859a4!==_0x586828(0xb2,0x9f,0xcb,0xc6)||_0x3859a4===null)return![];function _0x26231f(_0x42efb7,_0x3cfa72,_0x3c427c,_0x522c7c){return _0x253ce3(_0x42efb7-0x1ad,_0x42efb7,_0x3c427c-0x119,_0x522c7c- -0x418);}function _0x586828(_0x3064fa,_0x13d0b4,_0x4554df,_0x11bdc5){return _0x1b09d0(_0x13d0b4,_0x13d0b4-0x1c,_0x3064fa- -_0x11b966._0x4af7d7,_0x11bdc5-0xec);}return _0x3859a4['action']===_0x586828(_0x4eb0ff._0x30d0f9,0x170,_0x4eb0ff._0x31b9ac,_0x4eb0ff._0x5f233a)||_0x3859a4[_0x26231f(-_0x4eb0ff._0x2b59a3,-_0x4eb0ff._0x2c7e8c,-_0x4eb0ff._0x2ab71c,-_0x4eb0ff._0x5c4fb9)]==='run';}function normalizeExecutionError(_0x3f74da){const _0x5dd176={_0x454e6e:0x1c9,_0xeb331e:0x193,_0x4de71c:0x162,_0x1d3125:0x1c9,_0xa59e90:0x1eb,_0x380bd0:0x1a6,_0x11cac0:0x1d3,_0x5bfa7e:0x154,_0x5cc88a:0xde,_0x252725:0x10a,_0x5a2228:0x1f7,_0x4b22f9:0x2a4,_0x100393:0x2ae,_0x4ee3dd:0x203,_0x4e3115:0xf4,_0x26f378:0xd6,_0x5e8cbf:0x1e7,_0x31af8d:0x241,_0x54f1f0:0x1b3,_0x1538b9:0xed,_0x520c69:0xa9,_0x5a149f:0x10a},_0x1ed83a={_0x1317b7:0x13f},_0x3ff05f={_0x4036bc:0x121};if(_0x3f74da instanceof ToolExecutionError)return{'errorMessage':_0x3f74da[_0x757f35(-_0x5dd176._0x454e6e,-_0x5dd176._0xeb331e,-0x18a,-_0x5dd176._0x4de71c)],'structured':{'error':_0x3f74da[_0x757f35(-_0x5dd176._0x1d3125,-_0x5dd176._0xa59e90,-_0x5dd176._0x380bd0,-_0x5dd176._0x11cac0)],..._0x3f74da['structured']}};if(_0x3f74da instanceof Error)return{'errorMessage':_0x3f74da[_0x11e98a(_0x5dd176._0x5bfa7e,_0x5dd176._0x5cc88a,0x126,_0x5dd176._0x252725)],'structured':{'error':_0x3f74da[_0x757f35(-0x1c9,-_0x5dd176._0x5a2228,-0x209,-0x1ea)]}};function _0x757f35(_0x5103c0,_0x54f4f0,_0x953c5e,_0x5ddac8){return _0x253ce3(_0x5103c0-_0x3ff05f._0x4036bc,_0x5ddac8,_0x953c5e-0x113,_0x5103c0- -0x3da);}if(typeof _0x3f74da===_0x757f35(-0x268,-_0x5dd176._0x4b22f9,-_0x5dd176._0x100393,-_0x5dd176._0x4ee3dd)&&_0x3f74da!==null&&'message'in _0x3f74da&&typeof _0x3f74da[_0x11e98a(0xea,_0x5dd176._0x4e3115,_0x5dd176._0x26f378,_0x5dd176._0x252725)]===_0x757f35(-_0x5dd176._0x5e8cbf,-0x193,-0x1ec,-_0x5dd176._0x31af8d))return{'errorMessage':_0x3f74da[_0x757f35(-_0x5dd176._0x454e6e,-0x17a,-0x231,-_0x5dd176._0x54f1f0)],'structured':{'error':_0x3f74da[_0x11e98a(0x158,_0x5dd176._0x1538b9,_0x5dd176._0x520c69,_0x5dd176._0x5a149f)]}};const _0x190b31=String(_0x3f74da);function _0x11e98a(_0x895ee8,_0x6db521,_0x2aa761,_0x35f4b9){return _0x1b09d0(_0x6db521,_0x6db521-0x15a,_0x35f4b9- -0x2e9,_0x35f4b9-_0x1ed83a._0x1317b7);}return{'errorMessage':_0x190b31,'structured':{'error':_0x190b31}};}async function emitEvent(_0x50592d,_0x40c1b0,_0x4fc404){await _0x50592d?.(_0x40c1b0,_0x4fc404);}async function resolveDispatchDecision(_0x49bfd8,_0xf02770,_0x354c08){const _0x1763bb={_0x648275:0x1e2,_0x4e1a4f:0x230,_0x39a6b0:0x17d,_0x4b1873:0x18a,_0x50a741:0x171,_0x5defc4:0x19e,_0x42d312:0x1c5,_0x1b358a:0x1fe,_0x2ab557:0x19b,_0x33cae8:0x10b,_0x167d88:0x10e},_0x385a12={_0x292663:0x16b},_0x5dd5e1={_0x550e1a:0x2c5,_0x193352:0x307,_0x53c70b:0x2b5,_0x38c00b:0x2d7,_0x5a8732:0x318,_0x19b056:0x33a,_0x6eb2a2:0x31d,_0x4ddc79:0x300},_0x5674ab={_0x3f266b:0xb4,_0x1e100d:0x170,_0x5dba18:0x33c};if(!_0x49bfd8)return{'action':_0x27d381(_0x1763bb._0x648275,0x21a,0x20c,_0x1763bb._0x4e1a4f)};const _0x54020f=Promise[_0x23fde3(-_0x1763bb._0x39a6b0,-_0x1763bb._0x4b1873,-0x14f,-_0x1763bb._0x50a741)]()[_0x23fde3(-0x1ad,-_0x1763bb._0x5defc4,-_0x1763bb._0x42d312,-0x1de)](()=>_0x49bfd8(_0xf02770,_0x354c08));function _0x23fde3(_0x4ceaf7,_0xfae384,_0x208aef,_0x19a468){return _0x253ce3(_0x4ceaf7-_0x5674ab._0x3f266b,_0xfae384,_0x208aef-_0x5674ab._0x1e100d,_0x208aef- -_0x5674ab._0x5dba18);}if(!_0x354c08[_0x23fde3(-0x1fb,-_0x1763bb._0x1b358a,-0x1bd,-_0x1763bb._0x2ab557)]){const _0x1e40a9=await _0x54020f;return isDispatchDecision(_0x1e40a9)?_0x1e40a9:{'action':'run'};}const _0x3018bd=new Promise((_0x518919,_0x376e42)=>{const _0x50eab6={_0x290005:0x17a},_0x1be070={_0x4d3ac7:0x37,_0x14901e:0x93,_0x2517c4:0xf,_0x2c3b1b:0x3e,_0x46b10b:0x83,_0x24b2fe:0x20},_0x5c6b72={_0x3818c3:0xe8,_0x1e9bb4:0xb2};function _0x11b72d(_0x36706f,_0x5316c8,_0x2ccbfc,_0x5b8e6a){return _0x23fde3(_0x36706f-_0x5c6b72._0x3818c3,_0x5b8e6a,_0x36706f-0x482,_0x5b8e6a-_0x5c6b72._0x1e9bb4);}const _0x3be311=()=>{function _0x599f5c(_0x3c5b9e,_0x28735f,_0x3d0074,_0x1e6a26){return _0x5eb5(_0x28735f- -0x113,_0x3d0074);}function _0x5a8888(_0x112527,_0x48e0a5,_0x235e49,_0x3ea899){return _0x5eb5(_0x48e0a5- -0x14,_0x3ea899);}_0x354c08['signal']?.[_0x599f5c(-0x6e,-0x1b,-0x1b,-0x7)](_0x599f5c(_0x1be070._0x4d3ac7,0x37,_0x1be070._0x14901e,_0x1be070._0x2517c4),_0x3be311),_0x376e42(toAbortError(_0x354c08[_0x599f5c(-0x38,-_0x1be070._0x2c3b1b,-_0x1be070._0x46b10b,_0x1be070._0x24b2fe)]?.['reason']));};function _0x3282cf(_0x582359,_0x299135,_0x436498,_0x588bed){return _0x27d381(_0x582359-0x119,_0x436498,_0x436498-0x1b3,_0x588bed-_0x50eab6._0x290005);}if(_0x354c08[_0x11b72d(_0x5dd5e1._0x550e1a,_0x5dd5e1._0x193352,0x2d7,0x2f2)]?.['aborted']){_0x376e42(toAbortError(_0x354c08['signal'][_0x3282cf(0x2cf,_0x5dd5e1._0x53c70b,_0x5dd5e1._0x38c00b,0x2aa)]));return;}_0x354c08[_0x11b72d(0x2c5,0x280,0x324,_0x5dd5e1._0x5a8732)]?.['addEventListener'](_0x11b72d(_0x5dd5e1._0x19b056,0x335,_0x5dd5e1._0x6eb2a2,_0x5dd5e1._0x4ddc79),_0x3be311,{'once':!![]});}),_0x2c23a7=await Promise[_0x23fde3(-0xd7,-_0x1763bb._0x33cae8,-0x13f,-_0x1763bb._0x167d88)]([_0x54020f,_0x3018bd]);function _0x27d381(_0x439af4,_0x131317,_0x43a33e,_0x1465c9){return _0x1b09d0(_0x131317,_0x131317-0x1ef,_0x439af4- -0x17d,_0x1465c9-_0x385a12._0x292663);}return isDispatchDecision(_0x2c23a7)?_0x2c23a7:{'action':'run'};}async function executeCapturedToolCall(_0x50f2cc,_0x4de6b8,_0x4f5e78,_0x1bac7b,_0xc329ca){const _0x51e685={_0x36e6a6:0x492,_0xd3df41:0x40d,_0x532148:0x44d,_0x40a065:0x131,_0x23cdb3:0x18f,_0x13e899:0x13e,_0x3b3723:0x1eb,_0x4585ff:0x128,_0x5d8a1b:0x19f,_0x57f693:0x49b,_0x25aab9:0x4e5,_0x29adf0:0xfb,_0x1d151b:0xb5,_0x42d6fa:0x3f2,_0xccfc41:0x41f,_0x41adcb:0xbf,_0x44f6a7:0x10b,_0x5497e7:0x15d,_0xae2a2c:0x168,_0x1ef10e:0x18c,_0x2c74f4:0x1d5,_0x11d4b0:0x1b5,_0x2bf90f:0x1a6,_0x4b9881:0x20a,_0x48c364:0x142,_0x501b93:0x50d,_0x48c4b0:0x4ae,_0x4ff026:0x43f,_0x3f2bca:0x464,_0x16753d:0x4e4,_0x4c0c9a:0x158,_0x581dd6:0x18b,_0x20c5a8:0x41b,_0x52159b:0x410,_0x56bccc:0x14c,_0x22daa4:0x124,_0x498ffd:0x451,_0x5d03e3:0x47a,_0x2a5ff1:0x1ce,_0x4aa5bd:0x17f,_0x253dbb:0x43e,_0x3eae5b:0x4ad,_0x187982:0x449,_0x56ba8d:0x44d,_0x108ac1:0x467,_0x4dccc9:0x4d4,_0x234e00:0x3f0,_0x1fd2b3:0x456,_0x286cfc:0x18f,_0x4a6974:0x1c9,_0x1e109c:0x3ef,_0x5b1603:0x1c1,_0x425f53:0x1a0,_0x2051a9:0x433,_0x1d34a3:0x457},_0x89bfa6={_0x44027d:0x5ac,_0x50150f:0x549},_0x5bd138={_0x47fa2f:0x121},_0x146024={_0x5c6daa:0x4ec,_0x580fdc:0x1ac};function _0x33d97e(_0x26dffe,_0x4f93f9,_0x43ac98,_0xa15636){return _0x1b09d0(_0xa15636,_0x4f93f9-0xec,_0x4f93f9- -_0x146024._0x5c6daa,_0xa15636-_0x146024._0x580fdc);}const _0x153b29={..._0x4f5e78,'toolCallId':_0x4de6b8['id'],'permissionClass':resolveToolPermissionClass(_0x50f2cc),'executionAuthorization':void 0x0};throwIfAborted(_0x153b29[_0x5cb712(_0x51e685._0x36e6a6,0x426,_0x51e685._0xd3df41,_0x51e685._0x532148)]);let _0x2968b4;function _0x5cb712(_0x2e995f,_0x1d8de0,_0x5bd954,_0x321841){return _0x253ce3(_0x2e995f-0xac,_0x2e995f,_0x5bd954-_0x5bd138._0x47fa2f,_0x321841-0x2ce);}try{_0x2968b4=await resolveDispatchDecision(_0x1bac7b,_0x4de6b8,_0x153b29);}catch(_0x3bb8a4){if(isAbortError(_0x3bb8a4)){const _0x3ac6b7=createAbortedToolResult(_0x4de6b8,_0x3bb8a4);return await emitEvent(_0xc329ca,{'type':_0x33d97e(-_0x51e685._0x40a065,-_0x51e685._0x23cdb3,-0x19d,-0x14f),'toolCall':_0x4de6b8,'result':_0x3ac6b7},_0x153b29),_0x3ac6b7;}const {errorMessage:_0x2e2e17,structured:_0x4fe308}=normalizeExecutionError(_0x3bb8a4),_0x2c01e7=createErrorToolResult(_0x4de6b8,_0x2e2e17,_0x4fe308);return await emitEvent(_0xc329ca,{'type':_0x33d97e(-0x1ce,-0x18f,-_0x51e685._0x13e899,-_0x51e685._0x3b3723),'toolCall':_0x4de6b8,'result':_0x2c01e7},_0x153b29),_0x2c01e7;}throwIfAborted(_0x153b29[_0x33d97e(-_0x51e685._0x4585ff,-0x18b,-0x179,-_0x51e685._0x5d8a1b)]);if(_0x2968b4[_0x5cb712(0x51d,0x480,_0x51e685._0x57f693,_0x51e685._0x25aab9)]===_0x33d97e(-0x126,-0xf6,-_0x51e685._0x29adf0,-_0x51e685._0x1d151b)){const _0x1f85f0=createRejectedToolResult(_0x4de6b8,_0x2968b4[_0x5cb712(0x416,_0x51e685._0x42d6fa,0x3c0,_0x51e685._0xccfc41)]);return await emitEvent(_0xc329ca,{'type':_0x33d97e(-_0x51e685._0x41adcb,-_0x51e685._0x44f6a7,-0xad,-_0x51e685._0x5497e7),'toolCall':_0x4de6b8,'result':_0x1f85f0},_0x153b29),_0x1f85f0;}if(!_0x50f2cc){const _0x29b9b6=createUnknownToolResult(_0x4de6b8);return await emitEvent(_0xc329ca,{'type':'tool_completed','toolCall':_0x4de6b8,'result':_0x29b9b6},_0x153b29),_0x29b9b6;}const _0x1dd280={..._0x153b29,'executionAuthorization':_0x2968b4[_0x33d97e(-_0x51e685._0xae2a2c,-_0x51e685._0x1ef10e,-_0x51e685._0x2c74f4,-0x150)]};throwIfAborted(_0x1dd280['signal']),await emitEvent(_0xc329ca,{'type':_0x33d97e(-_0x51e685._0x11d4b0,-_0x51e685._0x2bf90f,-_0x51e685._0x4b9881,-0x20b),'toolCall':_0x4de6b8},_0x1dd280);try{throwIfAborted(_0x1dd280[_0x33d97e(-0x197,-0x18b,-0x1ab,-_0x51e685._0x48c364)]);const _0x1b09c2=validateToolInput(_0x4de6b8[_0x5cb712(_0x51e685._0x501b93,0x4a2,0x45f,_0x51e685._0x48c4b0)],_0x50f2cc[_0x5cb712(_0x51e685._0x4ff026,0x491,0x41f,0x441)]),_0x5414e1=await _0x50f2cc[_0x5cb712(_0x51e685._0x3f2bca,0x4ee,_0x51e685._0x16753d,0x48b)](_0x1b09c2,_0x1dd280),_0x55ce64=[],_0x1f5fea=addAbortListener(_0x1dd280[_0x33d97e(-_0x51e685._0x4c0c9a,-_0x51e685._0x581dd6,-0x1c7,-0x1c8)],()=>{const _0x19b513={_0x6ff96e:0x4};function _0x2e102d(_0x4b3a6b,_0x213a12,_0x5ea85a,_0x1211df){return _0x5cb712(_0x5ea85a,_0x213a12-_0x19b513._0x6ff96e,_0x5ea85a-0x1ec,_0x213a12-0x5f);}void _0x5414e1['return'](void 0x0)[_0x2e102d(_0x89bfa6._0x44027d,0x54b,0x51e,_0x89bfa6._0x50150f)](()=>{});});try{throwIfAborted(_0x1dd280[_0x5cb712(0x44c,_0x51e685._0x20c5a8,0x432,_0x51e685._0x532148)]);let _0x4d1e8b=await _0x5414e1['next']();while(!_0x4d1e8b['done']){throwIfAborted(_0x1dd280[_0x5cb712(_0x51e685._0x52159b,0x3f3,_0x51e685._0x20c5a8,0x44d)]);const _0x42a336=normalizeToolOutputValue(_0x4d1e8b[_0x33d97e(-0x1a3,-_0x51e685._0x56bccc,-0x15c,-_0x51e685._0x22daa4)]);_0x55ce64[_0x5cb712(_0x51e685._0x498ffd,0x4b2,0x4b3,_0x51e685._0x5d03e3)](_0x42a336),await emitEvent(_0xc329ca,{'type':_0x33d97e(-_0x51e685._0x2a5ff1,-_0x51e685._0x4aa5bd,-0x1a8,-0x129),'toolCall':_0x4de6b8,'chunk':_0x42a336},_0x1dd280),throwIfAborted(_0x1dd280[_0x5cb712(_0x51e685._0x253dbb,_0x51e685._0x3eae5b,0x468,0x44d)]),_0x4d1e8b=await _0x5414e1['next']();}throwIfAborted(_0x1dd280[_0x5cb712(0x4b4,0x4a9,_0x51e685._0x187982,_0x51e685._0x56ba8d)]);const _0x492922=_0x4d1e8b[_0x5cb712(_0x51e685._0x108ac1,0x4b7,_0x51e685._0x4dccc9,0x48c)]===void 0x0?deriveFinalToolOutput(_0x55ce64):normalizeToolOutputValue(_0x4d1e8b['value']),_0x3c87f7=createSuccessToolResult(_0x4de6b8,_0x492922,_0x55ce64);return await emitEvent(_0xc329ca,{'type':_0x5cb712(_0x51e685._0x234e00,0x45f,_0x51e685._0x1fd2b3,0x449),'toolCall':_0x4de6b8,'result':_0x3c87f7},_0x1dd280),_0x3c87f7;}catch(_0x34000c){if(isAbortError(_0x34000c)){const _0x4e53f1=createAbortedToolResult(_0x4de6b8,_0x34000c,_0x55ce64);return await emitEvent(_0xc329ca,{'type':_0x33d97e(-0x1d8,-_0x51e685._0x286cfc,-0x187,-_0x51e685._0x4a6974),'toolCall':_0x4de6b8,'result':_0x4e53f1},_0x1dd280),_0x4e53f1;}const {errorMessage:_0xc4c65b,structured:_0x3af221}=normalizeExecutionError(_0x34000c),_0x5780ca=createErrorToolResult(_0x4de6b8,_0xc4c65b,_0x3af221,_0x55ce64);return await emitEvent(_0xc329ca,{'type':_0x5cb712(_0x51e685._0x1e109c,0x44e,0x486,_0x51e685._0x187982),'toolCall':_0x4de6b8,'result':_0x5780ca},_0x1dd280),_0x5780ca;}finally{_0x1f5fea();}}catch(_0x32113a){if(isAbortError(_0x32113a)){const _0x1a8885=createAbortedToolResult(_0x4de6b8,_0x32113a);return await emitEvent(_0xc329ca,{'type':_0x33d97e(-_0x51e685._0x5b1603,-0x18f,-_0x51e685._0x425f53,-0x1a7),'toolCall':_0x4de6b8,'result':_0x1a8885},_0x1dd280),_0x1a8885;}const {errorMessage:_0xcc5dd4,structured:_0x586ebe}=normalizeExecutionError(_0x32113a),_0x2e4977=createErrorToolResult(_0x4de6b8,_0xcc5dd4,_0x586ebe);return await emitEvent(_0xc329ca,{'type':_0x5cb712(0x45e,_0x51e685._0x2051a9,_0x51e685._0x1d34a3,_0x51e685._0x187982),'toolCall':_0x4de6b8,'result':_0x2e4977},_0x1dd280),_0x2e4977;}}async function executeToolCall(_0x283be2,_0x4c4dad,_0x16a0e8,_0x5bcdb7,_0x22213f){const _0x2e6a46={_0x3ab0ab:0x100},_0x5982bb=_0x283be2['get'](_0x4c4dad['name']);function _0x386825(_0x37b7f0,_0x218bd7,_0x149b83,_0x451aca){return _0x253ce3(_0x37b7f0-0x192,_0x451aca,_0x149b83-0x1b2,_0x218bd7- -0xb4);}const _0x5f0e21=_0x5982bb?.['internalLifecycle']?.[_0x386825(_0x2e6a46._0x3ab0ab,0xa9,0xf4,0xf1)]();try{return await executeCapturedToolCall(_0x5982bb,_0x4c4dad,_0x16a0e8,_0x5bcdb7,_0x22213f);}finally{_0x5f0e21?.();}}function createInternalToolRuntime(_0x2d1d68=[],_0x4e1711={}){const _0x48fccb={_0x52a4e2:0x2e3},_0x408bd1={_0xd8b96f:0x4ff,_0x93d6ce:0x4e8,_0x491efb:0x8d,_0x4ee6f6:0xbe,_0x1bc47c:0x9d},_0x115375={_0x594f19:0x2e8,_0x31406f:0x289},_0x48ab40={_0x3e458a:0x7d,_0x5be23d:0xa};let _0xe66b81=new ToolRegistry(_0x2d1d68);return{'listToolSchemas'(){const _0xe0e01b={_0x5c44c8:0xbe};function _0x5c2f3c(_0x5b8057,_0x3475bf,_0x1a01a6,_0x85af3c){return _0x5eb5(_0x3475bf- -_0xe0e01b._0x5c44c8,_0x5b8057);}return _0xe66b81[_0x5c2f3c(_0x48ab40._0x3e458a,0x52,_0x48ab40._0x5be23d,0x93)]();},'setTools'(_0x1fce05){_0xe66b81=new ToolRegistry(_0x1fce05);},async 'executeCalls'(_0x293534,_0x13410e){const _0x36fab6={_0x520f51:0x15,_0x429393:0x100},_0x1be979={_0x45c5ce:0x58};function _0x5105e2(_0x565e24,_0x4b2570,_0x5e12c8,_0x2bc07d){return _0x5eb5(_0x565e24-0x371,_0x2bc07d);}function _0x3c0fd8(_0x4604f3,_0x3a02f9,_0x2945a6,_0x404000){return _0x5eb5(_0x4604f3- -_0x1be979._0x45c5ce,_0x404000);}return await Promise[_0x5105e2(0x4a8,0x472,_0x408bd1._0xd8b96f,_0x408bd1._0x93d6ce)](_0x293534[_0x3c0fd8(_0x408bd1._0x491efb,_0x408bd1._0x4ee6f6,_0x408bd1._0x1bc47c,0xb4)](async _0x45528c=>{function _0x5a5366(_0x15466b,_0x4d8e50,_0x438610,_0x46f7fc){return _0x3c0fd8(_0x15466b-0x1ce,_0x4d8e50-_0x36fab6._0x520f51,_0x438610-_0x36fab6._0x429393,_0x4d8e50);}return await executeToolCall(_0xe66b81,_0x45528c,_0x13410e,_0x4e1711[_0x5a5366(_0x115375._0x594f19,0x2e1,_0x115375._0x31406f,0x30f)],_0x4e1711['onEvent']);}));},async 'execute'(_0x24641c,_0x2f3da6){function _0xbd4cf4(_0x2e0de3,_0x2ed067,_0x31080f,_0x352629){return _0x5eb5(_0x352629- -0x38b,_0x2e0de3);}const [_0x41ebe9]=await this[_0xbd4cf4(-0x2a4,-0x2a0,-0x2cc,-_0x48fccb._0x52a4e2)]([_0x24641c],_0x2f3da6);return _0x41ebe9;}};}function getOrderedObserverExtensions(_0x510749,_0x2bbd84){const _0x5b9e85={_0x31feba:0x3bc,_0x574266:0x3fd,_0x20ee42:0x382},_0x39c2c5={_0x237f83:0xdb,_0x361881:0xa3,_0x1a2cae:0x100,_0x238b68:0x123,_0x27edf6:0x10d,_0x23386a:0x82,_0x3f3ad7:0x14c},_0x3d914b={_0x15e7e9:0xb5,_0x4d6677:0x11a,_0x535283:0x8e,_0x366d4c:0x99,_0x1e6891:0xad,_0x203913:0x91,_0x484979:0x110,_0xc37a5b:0x15f,_0x450d6e:0x164,_0x471af3:0xa9},_0x3651a9={_0x10b643:0x115},_0x296abd={_0x449873:0x12f,_0x47dcee:0xb9},_0x5c2f63={_0x46b574:0x185,_0x2f945f:0x35,_0x2ec226:0x1c3};function _0x32ac28(_0x377403,_0xaf5cd5,_0x44f4f4,_0x2d7dcb){return _0x1b09d0(_0x377403,_0xaf5cd5-_0x5c2f63._0x46b574,_0x2d7dcb-_0x5c2f63._0x2f945f,_0x2d7dcb-_0x5c2f63._0x2ec226);}function _0x1891b5(_0x1a5460,_0x4f7d9b,_0x3bb1bb,_0x4f8d20){return _0x1b09d0(_0x4f8d20,_0x4f7d9b-_0x296abd._0x449873,_0x4f7d9b- -0x169,_0x4f8d20-_0x296abd._0x47dcee);}return _0x510749[_0x32ac28(0x447,_0x5b9e85._0x31feba,0x424,_0x5b9e85._0x574266)](_0x52bfcc=>{const _0xa395a7={_0x16b5cd:0x16d,_0x3ade78:0x1ba,_0x4c2d87:0x486};function _0x35de5f(_0x38cb46,_0x522061,_0x594928,_0x257df7){return _0x32ac28(_0x257df7,_0x522061-_0xa395a7._0x16b5cd,_0x594928-_0xa395a7._0x3ade78,_0x594928- -_0xa395a7._0x4c2d87);}function _0x51f5a3(_0x2d81cc,_0x35a9de,_0x35b712,_0x10bd52){return _0x32ac28(_0x10bd52,_0x35a9de-_0x3651a9._0x10b643,_0x35b712-0x13b,_0x2d81cc- -0x4c8);}return _0x52bfcc['enabled']!==![]&&_0x52bfcc[_0x51f5a3(-_0x3d914b._0x15e7e9,-_0x3d914b._0x4d6677,-_0x3d914b._0x535283,-0xee)]===_0x2bbd84&&_0x52bfcc[_0x35de5f(-_0x3d914b._0x366d4c,-0x9f,-_0x3d914b._0x1e6891,-_0x3d914b._0x203913)]===_0x51f5a3(-_0x3d914b._0x484979,-_0x3d914b._0xc37a5b,-_0x3d914b._0x450d6e,-_0x3d914b._0x471af3);})[_0x32ac28(_0x5b9e85._0x20ee42,0x362,0x368,0x3bc)]((_0x2db3ee,_0x3f0f85)=>{const _0x8fc8c9={_0xf200e8:0x113,_0x14a837:0x2a4};function _0x46965c(_0x337b97,_0x507f5b,_0x7c614d,_0x53f032){return _0x1891b5(_0x337b97-0x158,_0x337b97- -0xb6,_0x7c614d-0x7b,_0x507f5b);}if(_0x2db3ee[_0x80f820(0xae,_0x39c2c5._0x237f83,0x78,_0x39c2c5._0x361881)]===!![]&&_0x3f0f85['terminal']!==!![])return 0x1;if(_0x2db3ee[_0x80f820(_0x39c2c5._0x1a2cae,0xdb,_0x39c2c5._0x238b68,_0x39c2c5._0x27edf6)]!==!![]&&_0x3f0f85[_0x80f820(_0x39c2c5._0x23386a,0xdb,0xde,0x116)]===!![])return-0x1;function _0x80f820(_0x295955,_0x323a14,_0x3ed112,_0x4c3b18){return _0x32ac28(_0x3ed112,_0x323a14-0xee,_0x3ed112-_0x8fc8c9._0xf200e8,_0x323a14- -_0x8fc8c9._0x14a837);}return _0x2db3ee[_0x80f820(_0x39c2c5._0x3f3ad7,0x186,0x139,0x1b7)]-_0x3f0f85['order'];});}function _0x253ce3(_0x3b157a,_0xe855e7,_0x4f9617,_0x4a5aea){const _0x4f4b03={_0xd51631:0xaa};return _0x5eb5(_0x4a5aea-_0x4f4b03._0xd51631,_0xe855e7);}function getOrderedTransformerExtensions(_0x4becf5,_0x18c8ab){const _0x5e3e0c={_0x323c6a:0x195,_0x1c5feb:0x1f5,_0x4f3134:0x40b},_0x4099ff={_0x2f4714:0x3b0,_0x29ff9c:0x429,_0x389e59:0x3c9,_0x8ba617:0x213,_0x4dff84:0x1de,_0x413279:0x28d},_0x1f8806={_0x4b2137:0x231},_0x24b72b={_0x13be5c:0xc4,_0x383571:0x266},_0x546778={_0x2fabbd:0xa4};function _0x258e6b(_0x439a83,_0x714a37,_0x532a4e,_0x531770){return _0x1b09d0(_0x439a83,_0x714a37-_0x546778._0x2fabbd,_0x531770- -0x1d3,_0x531770-0xd0);}function _0x1419e3(_0xe8a8df,_0xe83f41,_0x28692f,_0x1a596a){return _0x253ce3(_0xe8a8df-_0x24b72b._0x13be5c,_0xe8a8df,_0x28692f-0x135,_0xe83f41-_0x24b72b._0x383571);}return _0x4becf5[_0x258e6b(0x18e,_0x5e3e0c._0x323c6a,0x1d6,_0x5e3e0c._0x1c5feb)](_0x3e2dc7=>{const _0x5987ab={_0x39175f:0x1d7};function _0x898198(_0x5bf7fb,_0x2483b5,_0x19996b,_0x2333c6){return _0x258e6b(_0x5bf7fb,_0x2483b5-_0x5987ab._0x39175f,_0x19996b-0x1ad,_0x2483b5- -0x44b);}function _0x2a896e(_0x4f33f2,_0x2de065,_0x4c0ed2,_0x22a5d7){return _0x258e6b(_0x2de065,_0x2de065-0xc6,_0x4c0ed2-0x2f,_0x22a5d7-_0x1f8806._0x4b2137);}return _0x3e2dc7[_0x2a896e(_0x4099ff._0x2f4714,0x384,_0x4099ff._0x29ff9c,_0x4099ff._0x389e59)]!==![]&&_0x3e2dc7[_0x898198(-_0x4099ff._0x8ba617,-0x240,-_0x4099ff._0x4dff84,-_0x4099ff._0x413279)]===_0x18c8ab&&_0x3e2dc7['kind']==='transformer';})[_0x1419e3(0x467,_0x5e3e0c._0x4f3134,0x421,0x3b2)]((_0x14ace5,_0x544d08)=>_0x14ace5['order']-_0x544d08['order']);}function createExtensionRegistry(){const _0x34cb62={_0x3f7cb5:0x88},_0x43bebc={_0x35bdc7:0x1da,_0x4ff21b:0x1d0},_0x454757={_0x4371ac:0x190,_0x2412f8:0x154,_0xfbea88:0x176,_0x52e905:0x16d,_0x2a332b:0x186,_0x2daabc:0x18c,_0x38c8e6:0x13f,_0x1095f9:0x20e,_0x11283e:0x1f6,_0x287150:0x216,_0x2de06f:0x16c,_0x51479f:0x1e2,_0x73077:0x175,_0x1e1cec:0x1ba,_0x40ec13:0x1e9},_0x54de06={_0x5b73d7:0xb8},_0x47866e=[];return{'register'(_0x44454f){if(_0x44454f['kind']==='observer'&&_0x44454f[_0x33b10a(-_0x454757._0x4371ac,-0xed,-0xee,-_0x454757._0x2412f8)]!==![]&&_0x44454f[_0x23700d(_0x454757._0xfbea88,_0x454757._0x52e905,0x16f,_0x454757._0x2a332b)]===!![]){const _0x3b71db=_0x47866e['find'](_0xfa7921=>_0xfa7921[_0x23700d(0x1d0,0x1e1,0x1da,0x200)]==='observer'&&_0xfa7921[_0x23700d(0x197,0x18f,0x1f2,0x1c6)]!==![]&&_0xfa7921[_0x23700d(0x20a,0x1ec,0x1f1,0x1ac)]===_0x44454f['stage']&&_0xfa7921['terminal']===!![]);if(_0x3b71db)throw new Error('Cannot\x20register\x20terminal\x20observer\x20\x22'+_0x44454f['id']+_0x33b10a(-0x1a4,-_0x454757._0x2daabc,-_0x454757._0x38c8e6,-0x17a)+_0x44454f[_0x23700d(0x20a,_0x454757._0x1095f9,0x205,_0x454757._0x11283e)]+_0x23700d(_0x454757._0x287150,0x210,0x232,0x26a)+_0x3b71db['id']+_0x23700d(0x19b,_0x454757._0x2de06f,_0x454757._0x51479f,_0x454757._0x73077));}function _0x33b10a(_0x34111b,_0x403459,_0xbc7ea9,_0x39eca){return _0x5eb5(_0x39eca- -0x233,_0xbc7ea9);}function _0x23700d(_0x4b4d4c,_0x5a1445,_0x1ecf5d,_0x2abf15){return _0x5eb5(_0x4b4d4c-_0x54de06._0x5b73d7,_0x5a1445);}_0x47866e[_0x23700d(_0x454757._0x1e1cec,0x204,_0x454757._0x40ec13,0x1f9)]({..._0x44454f});},async 'runTransformers'(_0x48e956,_0x451b16,_0x1e9945){const _0x461866={_0x3267f2:0x29a};let _0xee7c6d=_0x451b16;for(const _0x6dd26d of getOrderedTransformerExtensions(_0x47866e,_0x48e956)){_0xee7c6d=await _0x6dd26d[_0x133d38(-_0x43bebc._0x35bdc7,-0x1c1,-_0x43bebc._0x4ff21b,-0x1c7)](_0xee7c6d,_0x1e9945);}function _0x133d38(_0x39d8c8,_0x536b71,_0xf173c5,_0x4a834e){return _0x5eb5(_0x4a834e- -_0x461866._0x3267f2,_0x39d8c8);}return _0xee7c6d;},async 'runObservers'(_0x99d0e5,_0x453b11,_0x161d82){const _0x331081={_0x553676:0x37};function _0x2469b2(_0x32908,_0xfc41f1,_0x16992e,_0x2ae40f){return _0x5eb5(_0x2ae40f- -_0x331081._0x553676,_0x32908);}for(const _0x4f1db9 of getOrderedObserverExtensions(_0x47866e,_0x99d0e5)){await _0x4f1db9[_0x2469b2(0xa7,_0x34cb62._0x3f7cb5,0x6a,0x9c)](_0x453b11,_0x161d82);}}};}function createEmptySnapshot(){return{'totalTokens':0x0,'totalInputTokens':0x0,'totalOutputTokens':0x0,'totalReasoningTokens':0x0,'requestCount':0x0,'modelCallCount':0x0,'toolCallCount':0x0,'totalModelTimeMs':0x0,'currentTokens':0x0,'currentInputTokens':0x0,'currentOutputTokens':0x0,'currentReasoningTokens':0x0,'currentModelTimeMs':0x0,'totalCostUsdTicks':0x0,'totalReportedCostUsdTicks':0x0,'totalEstimatedCostUsdTicks':0x0,'reportedCostCallCount':0x0,'estimatedCostCallCount':0x0,'unpricedModelCallCount':0x0,'historicalMetricsComplete':!![],'missingHistoricalModelCallCount':0x0};}function _0x2891(){const _0x36673b=['B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','D3jPDgu','ywrK','yxnZAxn0yw50twvZC2fNzuLK','BwvZC2fNzq','CNvUvhjHBNnMB3jTzxjZ','B3jKzxi','CMvQzwn0','x3n5C3rLBvbYB21WDa','yMvMB3jLqxnZAxn0yw50qxbWzw5K','ywn0Aw9U','Bwf4','yw1VDw50vxnKvgLJA3m','ChjVDMLKzxi','CMvHza','B25uB29Sq2fSBa','yw55t2y','y2f0y2G','qwDLBNqUC2vUzcbYzxf1AxjLCYbHig1LC3nHz2uGD2HLBIbUBYbKzwzHDwX0ig1LC3nHz2uGAxmGy29UzMLNDxjLza','mJGZmJK2odHKzKXdvgm','CMvHC29U','zxHLy3v0zunHBgXZ','CMvNAxn0zxi','DhvYBKnVBxbSzxrLzef0','oIbTAxnZAw5NihjLCxvPCMvKigzPzwXKici','Dg9VBenHBgXdB3vUDa','Bwf4vg9Rzw5Z','Dw5RBM93BL90B29S','Dg9VBf91C2vFBwvZC2fNzq','BgvUz3rO','C2vZC2LVBKrPCG','oIb1BMv4CgvJDgvKigzPzwXKici','ywnXDwLYzq','zw51Bq','ChjVDMLKzxjtDgf0zq','C2vZC2LVBI0','mZCXnJC4AK5Us3bj','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','iIbMB3iG','Dg9VBf9ZDgfYDgvK','Dg90ywXjBNb1DfrVA2vUCW','CMvJB3jKrxzLBNq','CMvZCg9UC2u','DgvYBwLUywW','qwDLBNqGCMvXDwLYzxmGysbJAgf0tw9KzwW','y2f1C2u','Dgv4Da','yMvMB3jLvg9VBfjLC3vSDefWCgvUza','C3LZDgvTuhjVBxb0','z2v0vg9VBhm','yxnRvxnLCG','C2v0u2vZC2LVBKLK','y29UDgv4DfDPBMrVD0XPBwL0','B2jQzwn0','Aw5WDxrty2HLBwe','C3vTBwfYEuLUzgv4','C3rYDwn0DxjLza','z2v0q29UDgv4DfDPBMrVD0XPBwL0','DgHLBG','CMvZzxrnzxnZywDLCW','CNvUt2jZzxj2zxjZ','Dg9VBf91C2u','Dg9VBf9JB21WBgv0zwq','B3v0Chv0','CNvU','zxHLy3v0Aw9Uqxv0Ag9YAxPHDgLVBG','C2LNBMfS','CMvNAxn0CNK','ChjVDMLKzxjFCMv0CNK','ywz0zxjuDxjUq29TCgXLDgu','mJe2otG0mfvxEhrRqq','Dg9VBfj1BNrPBwu','Dg9VBhncEu5HBwu','C2XPy2u','Bwv0yq','DhvYBI0','zw5HyMXLza','BMfTzq','Dg9VBf9VDxrWDxrFy2H1BMS','yMvMB3jLrMLUywXpDxrWDxq','iIbPCYbHBhjLywr5igvUywjSzwq','zMLUywXnzxnZywDL','BwfW','ChjVCgvYDgLLCW','zgvWCW','mJrOzgP1ufC','AgfZt3DU','Dg9tDhjPBMC','CMvWB3j0zwrdB3n0','oIbLEhbLy3rLzcbZDhjPBMC','oIbLEhbLy3rLzcbVBMuGB2yG','DhjPBq','mJqXmZaWD3rbthPu','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','CMvHC29UAw5NtwvZC2fNzuLK','BM93','Aw5KzxG','zgvSDge','Dg90ywXfC3rPBwf0zwrdB3n0vxnKvgLJA3m','B25fDMvUDa','B2jZzxj2zxi','CMvTB3zLrxzLBNrmAxn0zw5LCG','y2HHDe1VzgvS','Bw9KzwXjzgvUDgL0Eq','C29YDa','DxnHz2u','Dg9VBhm','C2vUza','ChjVDMLKzxjFC3rYzwfTx3jLC2v0','CMvHC29UAw5Nu3rHCNrLzef0','AxnbCNjHEq','ChvZAa','oIbLEhbLy3rLzcbHCNjHEq','DhvYBKLUzgv4','ywrKAxrPB25HBfbYB3bLCNrPzxm','AxrLBxm','zgvMyxvSDe1LC3nHz2u','Dg90ywXpDxrWDxruB2TLBNm','mtK3ng10wvDktW','y29TCgXLDgvK','zg9Uzq','DhLWzq','BNvTyMvY','y29UDgvUDeLUzgv4','C3rYzwfT','BgLZDfrVB2Xty2HLBwfZ','yxnZAxn0yw50x21LC3nHz2u','zxH0zw5ZAw9UCW','zxHLy3v0zq','DMfSDwu','ywz0zxjuB29SuMvZDwX0','mtK3ndG5nNHZywLVCa','yM9VBgvHBG','A2LUza','y29UDgvUDa','Bw9KzwXuAw1Ltxm','oIbLEhbLy3rLzcbIB29SzwfU','mZuXmtG5mgn4A1zKEq','C3LZDgvT','zMLUza','B25vC2vYtwvZC2fNzq','Dg9VBf9JywXS','oMfZC2LZDgfUDdO','Dg9VBf91C2vFzgvSDge','tw9KzwWGC3rYzwfTigvUzgvKihDPDgHVDxqGysbMAw5HBcbYzxnWB25Zzq','DhvYBKLK','zhjHAw5tDgvLCMLUzW','sw52ywXPzcb0B29SigLUChv0igf0ia','Dg90ywXdB3n0vxnKvgLJA3m','DMfSDwvZ','Bw9KzwXFCMvXDwvZDa','zMLUywXFBwvZC2fNzq','y29TCgXLDgu','B3v0Chv0rM9YBwf0','C29Tzq','Bw9KzwXdywXSCW','CMvHC29UAw5Nx2nODw5R','C3rYAw5NAwz5','C2v0vg9VBhm','CMvXDwvZDenVDw50','vg9VBev4zwn1DgLVBKvYCM9Y','BwvZC2fNzxm','CMvHC29UAw5Nvg9Rzw5Z','Aw5WDxq','ywXS','Dg90ywXszwfZB25PBMDuB2TLBNm','DgHPBMTPBMC','BwLZC2LUz01VzgvSq2fSBenVDw50','Dg9VBfjLC3vSDhm','zMLSDgvY','zxjYB3i','z2v0','Dw5WCMLJzwrnB2rLBenHBgXdB3vUDa','DhvYBL9JB21WBgv0zq','C2vZC2LVBKLK','zxn0Aw1HDgvKq29ZDenHBgXdB3vUDa','CMvZB2X2zq','B3v0Chv0sw5KzxG','C2v0vg9WAwm','B3v0Chv0vg9Rzw5Z','Dg9VBf91C2vFy2H1BMS','Bw9KzwW','C3rYAw5N','ywjVCNq','BgLZDa','yMvMB3jLvg9VBev4zwn1DgLVBG','AxrLBuLK','DxnLCL9TzxnZywDL','vw5RBM93BIb0B29SoIa','Bw9KzwXFCMvZCg9UC2u','ywz0zxjnzxnZywDLqxbWzw5K','C3rHz2u','CMfJzq','Bwv0CMLJCW','Dg9VBf9YzwPLy3rLza','ChjPy2LUz1bYB3zPzgvYswq','Dg9VBf9Yzxn1BhrFBwvZC2fNzq','C3rHDgu','CMvHC29UAw5Nq29TCgXLDgvKqxq','C2v0q2HHDe1VzgvS','y29UDgvUDf9KzwX0yq','ywjVCNrLza','oIbLEhbLy3rLzcbUDw1Izxi','oIb0zxjTAw5HBcbVyNnLCNzLCIaI','yxjYyxK','Aw5WDxrezwX0yq','zgvZy3jPChrPB24','A2v5CW'];_0x2891=function(){return _0x36673b;};return _0x2891();}function applyModelCall(_0x57b336,_0x5959e2){const _0xddac46={_0x11a13c:0x2c5,_0x19ab15:0x313,_0x2f26e0:0x2a9,_0x1ba759:0x86,_0xb4545e:0x49,_0x95cf1c:0x9,_0x3b3d97:0x55,_0x1e5e93:0x6,_0x292f72:0x47,_0x3774e1:0x349,_0x29bbde:0x34d,_0x204c63:0x23a,_0x56ecf8:0x18,_0xf90b47:0x2b7,_0x1360a5:0x254,_0x335999:0x2a,_0x4127c2:0x0,_0x52b2f1:0x3f,_0x2a1c0c:0x38,_0x56ce91:0x246,_0x3ec421:0x274,_0xf2c05f:0x27b,_0x169b2f:0x63,_0x2f2425:0x36,_0xe8d494:0x70,_0xc95ec2:0x52,_0x3ad0ec:0x44,_0x460488:0x4e,_0x34031a:0xb2,_0x475e32:0x9f},_0x21e7a3={_0x2bfb66:0x37c,_0x47e8c2:0x102},_0x1d411a={_0x169a4c:0x14a},_0x5a0603=_0x5959e2['usage'],_0x488da8=_0x5a0603['inputTokens'];function _0x461206(_0xf548b5,_0x278b0e,_0x32f59f,_0x5069f8){return _0x1b09d0(_0x278b0e,_0x278b0e-0xe7,_0xf548b5- -0x10d,_0x5069f8-_0x1d411a._0x169a4c);}const _0x1c7d18=_0x5a0603[_0x461206(_0xddac46._0x11a13c,_0xddac46._0x19ab15,_0xddac46._0x2f26e0,0x281)],_0x42fe2d=_0x5a0603[_0x594eac(_0xddac46._0x1ba759,0x45,_0xddac46._0xb4545e,_0xddac46._0x95cf1c)]??0x0,_0x3df39f=_0x488da8+_0x1c7d18,_0x5778d1=_0x5a0603[_0x594eac(-_0xddac46._0x3b3d97,-0x5,-_0xddac46._0x1e5e93,-_0xddac46._0x292f72)]?.[_0x461206(0x2ee,0x2ab,_0xddac46._0x3774e1,0x290)],_0x1982ba=_0x5a0603['estimatedCost']?.[_0x461206(0x2ee,_0xddac46._0x29bbde,0x2ee,0x2d7)],_0x2a6324=_0x5778d1??_0x1982ba;function _0x594eac(_0x5b000c,_0x1fcf25,_0x48bec9,_0x2eb509){return _0x1b09d0(_0x2eb509,_0x1fcf25-0x1c7,_0x1fcf25- -_0x21e7a3._0x2bfb66,_0x2eb509-_0x21e7a3._0x47e8c2);}const {currentReportedCostUsdTicks:_0x522801,currentEstimatedCostUsdTicks:_0x2d461c,..._0x10de94}=_0x57b336;return{..._0x10de94,'totalTokens':_0x10de94['totalTokens']+_0x3df39f,'totalInputTokens':_0x10de94[_0x461206(_0xddac46._0x204c63,0x1f6,0x26b,0x26c)]+_0x488da8,'totalOutputTokens':_0x10de94[_0x594eac(0x49,_0xddac46._0x56ecf8,0x6b,0x42)]+_0x1c7d18,'totalReasoningTokens':_0x10de94[_0x461206(_0xddac46._0xf90b47,0x25f,_0xddac46._0x1360a5,0x257)]+_0x42fe2d,'modelCallCount':_0x10de94['modelCallCount']+0x1,'totalModelTimeMs':_0x10de94['totalModelTimeMs']+_0x5959e2[_0x594eac(0x21,0x2a,0x45,-_0xddac46._0x335999)],'currentTokens':_0x3df39f,'currentInputTokens':_0x488da8,'currentOutputTokens':_0x1c7d18,'currentReasoningTokens':_0x42fe2d,'currentModelTimeMs':_0x5959e2['modelTimeMs'],..._0x10de94[_0x594eac(_0xddac46._0x4127c2,-0x29,_0xddac46._0x52b2f1,-_0xddac46._0x2a1c0c)]&&_0x3df39f>0x0?{'contextWindowUsage':_0x3df39f/_0x10de94[_0x461206(_0xddac46._0x56ce91,0x216,0x28f,0x215)]}:{},'totalCostUsdTicks':_0x2a6324===void 0x0?_0x10de94[_0x461206(0x2a6,0x2c6,_0xddac46._0x3ec421,_0xddac46._0xf2c05f)]:_0x10de94[_0x461206(0x2a6,0x2fd,0x304,0x30c)]+_0x2a6324,'totalReportedCostUsdTicks':_0x5778d1===void 0x0?_0x10de94['totalReportedCostUsdTicks']:_0x10de94['totalReportedCostUsdTicks']+_0x5778d1,'totalEstimatedCostUsdTicks':_0x1982ba===void 0x0?_0x10de94['totalEstimatedCostUsdTicks']:_0x10de94[_0x594eac(-_0xddac46._0x169b2f,0x5,0x63,_0xddac46._0x2f2425)]+_0x1982ba,'reportedCostCallCount':_0x5778d1===void 0x0?_0x10de94['reportedCostCallCount']:_0x10de94['reportedCostCallCount']+0x1,'estimatedCostCallCount':_0x1982ba===void 0x0?_0x10de94[_0x594eac(_0xddac46._0xe8d494,_0xddac46._0xc95ec2,_0xddac46._0x3ad0ec,0x75)]:_0x10de94[_0x594eac(0x24,0x52,_0xddac46._0x460488,_0xddac46._0x34031a)]+0x1,'unpricedModelCallCount':_0x5778d1===void 0x0&&_0x1982ba===void 0x0?_0x10de94[_0x594eac(0x41,0x4f,0x54,_0xddac46._0x475e32)]+0x1:_0x10de94['unpricedModelCallCount'],..._0x5778d1!==void 0x0?{'currentReportedCostUsdTicks':_0x5778d1}:{},..._0x1982ba!==void 0x0?{'currentEstimatedCostUsdTicks':_0x1982ba}:{}};}function createAgentMetrics(_0x555e0e={}){const _0x5ac436={_0x4ce66d:0x2ce,_0xd2733f:0x2e6},_0x177037={_0x49c1e9:0xe8,_0x3d77ee:0x20c,_0x577d7e:0x1e1,_0x8b3fa3:0x1d2,_0x383234:0x198,_0x1282dd:0x1a2,_0x1b5041:0x17a,_0x28af45:0x14b,_0x40d6d6:0x127,_0x394b66:0x136,_0x49532a:0x175,_0x3b615c:0x22c,_0x4ff57c:0x25c,_0x31c385:0x1de},_0x1d1457={_0x56dd5a:0x489,_0x579966:0x42c,_0x1e4184:0x4c4,_0x593d00:0x447,_0x2f8748:0x208,_0x3dfdd8:0x1d0,_0x1cd6c0:0x3f8,_0xa548e5:0x1b4,_0x2f0920:0x1ae,_0xa24b16:0x455,_0x9566e5:0x455,_0x270f3e:0x1bb,_0x5d252e:0x18f,_0x221c53:0x169,_0x1d6ad4:0x1e2,_0x309b76:0x246,_0xde1250:0x206,_0x3528cb:0x1a4,_0xcab921:0x200},_0x14422e={_0x4cf34b:0xb8};let _0x2f108f=createEmptySnapshot();const _0x220bf2=new Set();let _0x341e3d;const _0x3c9565=()=>{const _0x1c77d8={..._0x2f108f};for(const _0x26b812 of _0x220bf2)_0x26b812(_0x1c77d8);};return{'getSnapshot'(){return{..._0x2f108f};},'recordEvent'(_0x5d1606){if(_0x5d1606[_0x2caf3b(0x482,0x3e3,0x447,0x4ae)]===_0x2caf3b(_0x1d1457._0x56dd5a,_0x1d1457._0x579966,0x464,_0x1d1457._0x1e4184)){_0x341e3d=Date[_0x2caf3b(0x43e,0x42f,0x42d,0x3f1)]();const _0x1eca77=_0x555e0e['getContextWindowLimit']?.(_0x5d1606['request']);_0x1eca77!==void 0x0&&(_0x2f108f={..._0x2f108f,'contextWindowLimit':_0x1eca77},_0x3c9565());return;}function _0x42b756(_0x29dae9,_0x469f84,_0x9342f4,_0x5c6241){return _0x5eb5(_0x29dae9-_0x14422e._0x4cf34b,_0x5c6241);}function _0x2caf3b(_0x4f6ee9,_0x3e3acd,_0x5b03cf,_0x334040){return _0x5eb5(_0x5b03cf-0x33b,_0x4f6ee9);}if(_0x5d1606[_0x2caf3b(0x420,0x428,_0x1d1457._0x593d00,0x402)]===_0x42b756(_0x1d1457._0x2f8748,0x207,0x1a9,_0x1d1457._0x3dfdd8)){const _0x1a8ca7=_0x341e3d===void 0x0?0x0:Date['now']()-_0x341e3d;_0x341e3d=void 0x0,_0x2f108f=applyModelCall(_0x2f108f,{'usage':_0x5d1606[_0x2caf3b(0x3fb,0x3a4,_0x1d1457._0x1cd6c0,0x452)][_0x42b756(_0x1d1457._0xa548e5,0x170,0x20b,_0x1d1457._0x2f0920)],'modelTimeMs':_0x5d1606[_0x2caf3b(0x48f,_0x1d1457._0xa24b16,_0x1d1457._0x9566e5,0x45d)]??_0x1a8ca7}),_0x3c9565();return;}if(_0x5d1606[_0x42b756(0x1c4,_0x1d1457._0x270f3e,_0x1d1457._0x5d252e,0x210)]==='tool_call'){_0x2f108f={..._0x2f108f,'toolCallCount':_0x2f108f['toolCallCount']+0x1},_0x3c9565();return;}_0x5d1606[_0x42b756(0x1c4,_0x1d1457._0x221c53,0x16b,0x1c3)]===_0x42b756(_0x1d1457._0x1d6ad4,_0x1d1457._0x309b76,_0x1d1457._0xde1250,_0x1d1457._0x3528cb)&&(_0x2f108f={..._0x2f108f,'requestCount':_0x2f108f[_0x42b756(0x1ea,0x204,0x239,_0x1d1457._0xcab921)]+0x1},_0x3c9565());},'reset'(){_0x2f108f=createEmptySnapshot(),_0x341e3d=void 0x0,_0x3c9565();},'restore'(_0x5ffc0b){let _0x36973d=createEmptySnapshot();for(const _0x35a4ef of _0x5ffc0b[_0x4e3472(0x16c,0x11b,_0x177037._0x49c1e9,0xda)]){_0x36973d=applyModelCall(_0x36973d,{'usage':_0x35a4ef['usage'],'modelTimeMs':_0x35a4ef[_0x50bdce(0x257,_0x177037._0x3d77ee,0x1b8,0x24a)]});}_0x2f108f={..._0x36973d,'requestCount':_0x5ffc0b[_0x50bdce(_0x177037._0x577d7e,0x220,_0x177037._0x8b3fa3,0x1dc)]['filter'](_0x2332ca=>_0x2332ca['completesRequest'])[_0x50bdce(_0x177037._0x383234,_0x177037._0x1282dd,0x1e2,0x1a9)],'toolCallCount':_0x5ffc0b[_0x50bdce(0x187,0x19e,0x164,_0x177037._0x1b5041)],'historicalMetricsComplete':_0x5ffc0b[_0x4e3472(_0x177037._0x28af45,_0x177037._0x40d6d6,_0x177037._0x394b66,_0x177037._0x49532a)]===0x0,'missingHistoricalModelCallCount':_0x5ffc0b[_0x50bdce(0x27b,_0x177037._0x3b615c,_0x177037._0x4ff57c,_0x177037._0x31c385)]},_0x341e3d=void 0x0;function _0x50bdce(_0x44cb05,_0x4e327b,_0x41488a,_0xfc72dd){return _0x5eb5(_0x4e327b-0xf2,_0x44cb05);}function _0x4e3472(_0x616e60,_0x52b8c9,_0x2ed4b1,_0x1ae0c3){return _0x5eb5(_0x52b8c9- -0x13,_0x2ed4b1);}_0x3c9565();},'subscribe'(_0x65c66c){const _0x3f8cf4={_0x449376:0x169};_0x220bf2[_0x36ee7e(_0x5ac436._0x4ce66d,_0x5ac436._0xd2733f,0x2ce,0x2a3)](_0x65c66c);function _0x36ee7e(_0x3f4f25,_0x1c0601,_0x473171,_0x5d578a){return _0x5eb5(_0x3f4f25-_0x3f8cf4._0x449376,_0x1c0601);}return()=>{_0x220bf2['delete'](_0x65c66c);};}};}function makeExtensionContext(_0x2e0022){return{'state':_0x2e0022};}async function runStage(_0x45a930,_0x3c346f,_0x19cab8,_0x57834b){const _0x277d44={_0x527857:0x4e9},_0x2dc6a3={_0x5936f4:0xc3,_0x2b219d:0xf5,_0x37d6bc:0x9e},_0x419a6f=await _0x45a930[_0x1a25e0(0x4b5,0x506,_0x277d44._0x527857,0x4d6)](_0x3c346f,_0x19cab8,_0x57834b);await _0x45a930['runObservers'](_0x3c346f,_0x419a6f,_0x57834b);function _0x1a25e0(_0x14336a,_0x40c7fa,_0x2f6cb0,_0x5fb7a6){return _0x1b09d0(_0x5fb7a6,_0x40c7fa-_0x2dc6a3._0x5936f4,_0x2f6cb0-_0x2dc6a3._0x2b219d,_0x5fb7a6-_0x2dc6a3._0x37d6bc);}return _0x419a6f;}async function emitEvent2(_0x44a641,_0x1ca8cc,_0x4ce57a){await _0x44a641?.(_0x1ca8cc,_0x4ce57a);}function replaceToolUseBlocks(_0x7ca15c,_0x540208){const _0x5524a5={_0x4a326f:0x23d,_0x37eee3:0x273,_0xca7661:0x16,_0x526bd4:0x5b},_0x186e46={_0x4616f9:0x2cd,_0x1b8c7a:0x35a},_0xc3b975={_0x68211:0x159};function _0x3fb378(_0x115d30,_0x1b0677,_0x44a110,_0x2544d4){return _0x1b09d0(_0x115d30,_0x1b0677-0xcc,_0x1b0677- -0x33b,_0x2544d4-_0xc3b975._0x68211);}let _0x2d8ae5=0x0;function _0x5a6a86(_0x4ef2d8,_0x13cfae,_0x1b6c40,_0x51ff89){return _0x1b09d0(_0x1b6c40,_0x13cfae-0x17c,_0x4ef2d8- -0x168,_0x51ff89-0xfe);}return{..._0x7ca15c,'content':_0x7ca15c[_0x5a6a86(_0x5524a5._0x4a326f,0x21a,_0x5524a5._0x37eee3,0x243)][_0x3fb378(-_0x5524a5._0xca7661,0x36,_0x5524a5._0x526bd4,0x64)](_0x295d63=>{const _0x3f4d38={_0xaaa1be:0x4fd};function _0x2a2702(_0x5a1902,_0x31b996,_0x266071,_0x413a94){return _0x3fb378(_0x266071,_0x5a1902-0x385,_0x266071-0x35,_0x413a94-0x10f);}if(_0x295d63[_0x30d86f(-0x293,-0x314,-_0x186e46._0x4616f9,-0x320)]!==_0x2a2702(0x3a6,0x3c5,_0x186e46._0x1b8c7a,0x359))return _0x295d63;const _0x1b43cf=_0x540208[_0x2d8ae5];_0x2d8ae5+=0x1;function _0x30d86f(_0x4b248a,_0x902eb1,_0x1ef0cd,_0x539224){return _0x5a6a86(_0x1ef0cd- -_0x3f4d38._0xaaa1be,_0x902eb1-0x15d,_0x902eb1,_0x539224-0x11b);}return structuredClone(_0x1b43cf);})};}function createAssistantMessageId(_0x33d4fc,_0x248632){const _0x1a2b58={_0x1c7563:0x53,_0x5c13c8:0x6a,_0x547cbb:0x6},_0x50c2b2={_0x1ee12a:0x163};function _0x1227bb(_0xe00254,_0x4ad82f,_0x3cb7d0,_0x135851){return _0x253ce3(_0xe00254-_0x50c2b2._0x1ee12a,_0x3cb7d0,_0x3cb7d0-0xcf,_0xe00254- -0x1ba);}return _0x33d4fc+_0x1227bb(0x11,-_0x1a2b58._0x1c7563,_0x1a2b58._0x5c13c8,-_0x1a2b58._0x547cbb)+_0x248632;}function createReasoningMessageId(_0x1e0d40){return _0x1e0d40+':reasoning';}function _0x5eb5(_0x1d5f84,_0x4b7d6b){_0x1d5f84=_0x1d5f84-0xa5;const _0x2891ac=_0x2891();let _0x5eb5a0=_0x2891ac[_0x1d5f84];if(_0x5eb5['KAIklU']===undefined){var _0x173490=function(_0x4dd35c){const _0x2d410e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x157af1='',_0x14cb05='';for(let _0xe3365d=0x0,_0x70fdc5,_0xda0e49,_0x38cfdc=0x0;_0xda0e49=_0x4dd35c['charAt'](_0x38cfdc++);~_0xda0e49&&(_0x70fdc5=_0xe3365d%0x4?_0x70fdc5*0x40+_0xda0e49:_0xda0e49,_0xe3365d++%0x4)?_0x157af1+=String['fromCharCode'](0xff&_0x70fdc5>>(-0x2*_0xe3365d&0x6)):0x0){_0xda0e49=_0x2d410e['indexOf'](_0xda0e49);}for(let _0x2ca0f7=0x0,_0x269af8=_0x157af1['length'];_0x2ca0f7<_0x269af8;_0x2ca0f7++){_0x14cb05+='%'+('00'+_0x157af1['charCodeAt'](_0x2ca0f7)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x14cb05);};_0x5eb5['SLWfNp']=_0x173490,_0x5eb5['ErSpNu']={},_0x5eb5['KAIklU']=!![];}const _0x1f6a94=_0x2891ac[0x0],_0xd0c9da=_0x1d5f84+_0x1f6a94,_0xff7d45=_0x5eb5['ErSpNu'][_0xd0c9da];return!_0xff7d45?(_0x5eb5a0=_0x5eb5['SLWfNp'](_0x5eb5a0),_0x5eb5['ErSpNu'][_0xd0c9da]=_0x5eb5a0):_0x5eb5a0=_0xff7d45,_0x5eb5a0;}function withMessageId(_0x57db21,_0x34b015){if(_0x57db21['id']===_0x34b015)return _0x57db21;return{..._0x57db21,'id':_0x34b015};}function createAssistantChunkEvent(_0x5adf37,_0x2205e7){const _0x226014={_0x247362:0x1dc,_0x504a70:0x244,_0x264ad1:0x1fe,_0x19acfb:0x199},_0x354a1d={_0x1d9450:0x1a3},_0x23b7e9={_0x41e496:0x1};function _0xddefa8(_0x3019ee,_0x59e113,_0x321e73,_0x367121){return _0x1b09d0(_0x321e73,_0x59e113-0xe4,_0x3019ee-0x3c,_0x367121-_0x23b7e9._0x41e496);}if(_0x5adf37['type']!=='content_delta')return void 0x0;function _0x2ecbad(_0x3f71b0,_0x18bbb9,_0x4170ff,_0x451fa3){return _0x1b09d0(_0x451fa3,_0x18bbb9-0x3a,_0x4170ff- -_0x354a1d._0x1d9450,_0x451fa3-0x15b);}if(_0x5adf37['text']===void 0x0)return void 0x0;return{'type':'assistant_chunk','index':_0x5adf37[_0x2ecbad(0x22b,0x1f5,_0x226014._0x247362,0x187)]??0x0,'messageId':_0x2205e7,'chunk':{'type':_0x2ecbad(0x238,0x205,_0x226014._0x504a70,0x20e),'index':_0x5adf37[_0x2ecbad(_0x226014._0x264ad1,0x21a,_0x226014._0x247362,_0x226014._0x19acfb)]??0x0,'text':_0x5adf37['text']}};}function createToolUseChunkEvent(_0x2377f1,_0x1afd57){const _0x39c9ff={_0x16f99d:0x2e6,_0x55bfc7:0x29e,_0x42b85a:0x316,_0x19a1df:0x31e,_0x434709:0x29e,_0x508d97:0x343,_0x5f2d11:0x2af,_0x58500a:0x2f1,_0x4accfc:0x29c,_0x4d731c:0x2d2,_0x1360e9:0x2db,_0x40438c:0x255,_0x41daaa:0x272,_0x3cc0b0:0x28e,_0x477e0d:0x311,_0x9ed186:0x31f},_0x29061e={_0x53995c:0x1be,_0x1f69fe:0x1e2,_0x2bb88a:0xcd};function _0x14c7de(_0x5737b4,_0x5b9467,_0x225d67,_0x56dcda){return _0x253ce3(_0x5737b4-_0x29061e._0x53995c,_0x225d67,_0x225d67-_0x29061e._0x1f69fe,_0x5b9467-_0x29061e._0x2bb88a);}function _0x436344(_0x1dd78e,_0x412e75,_0x2e3475,_0x515d4c){return _0x253ce3(_0x1dd78e-0x18d,_0x515d4c,_0x2e3475-0x140,_0x412e75-0x112);}if(_0x2377f1[_0x436344(_0x39c9ff._0x16f99d,0x2c8,0x2bf,_0x39c9ff._0x55bfc7)]!==_0x436344(0x31e,0x2de,_0x39c9ff._0x42b85a,_0x39c9ff._0x19a1df))return void 0x0;return{'type':_0x436344(_0x39c9ff._0x434709,0x303,_0x39c9ff._0x508d97,0x2e3),'index':_0x2377f1[_0x436344(0x2eb,_0x39c9ff._0x5f2d11,0x290,_0x39c9ff._0x58500a)]??0x0,'messageId':_0x1afd57,'chunk':{'type':'tool_use_delta','id':_0x2377f1['id']??'','index':_0x2377f1['index']??0x0,..._0x2377f1[_0x436344(0x256,_0x39c9ff._0x4accfc,_0x39c9ff._0x4d731c,_0x39c9ff._0x1360e9)]!==void 0x0?{'name':_0x2377f1[_0x14c7de(_0x39c9ff._0x40438c,0x257,_0x39c9ff._0x41daaa,_0x39c9ff._0x3cc0b0)]}:{},..._0x2377f1[_0x14c7de(0x333,0x2d7,_0x39c9ff._0x477e0d,_0x39c9ff._0x9ed186)]!==void 0x0?{'inputDelta':_0x2377f1['inputDelta']}:{}}};}function createReasoningChunkEvent(_0x301f17,_0x2a70ec){const _0x5d036e={_0x2d47d0:0x2ab,_0x2ecead:0x24f,_0x40f59d:0x25d,_0x13f856:0x363,_0x1719c6:0x310,_0x5467ad:0x2c8,_0x393560:0x2f6,_0x67831a:0x277,_0xc26d41:0x282,_0x106c6d:0x32c,_0x35ea24:0x2c5,_0xf1cf7:0x2cf,_0x4cff97:0x306,_0x31da6a:0x2f5,_0x1f305b:0x36f,_0x5ead5f:0x363,_0x3f0c8c:0x344,_0x5a33c9:0x34a,_0x2f5aaa:0x2c1,_0x41ff4a:0x2e7,_0x349b6a:0x2a4,_0x5da931:0x298,_0x43b24b:0x340,_0x1aba3d:0x360,_0x192b0a:0x365,_0x378801:0x336,_0x5b0ed9:0x2d5,_0x23a6ea:0x2c7,_0x2df02f:0x2e3,_0x5772de:0x29c,_0x5e7d1b:0x2b8,_0x475632:0x2dd,_0xfea2:0x2fc,_0x5d5191:0x281,_0x1964fa:0x2e9,_0x56059e:0x2d1,_0x4d8d65:0x2c3,_0x3b1c5f:0x325,_0x19aedb:0x32e,_0x2d7ffe:0x2ed,_0x2f3fdc:0x2ef,_0x218258:0x294},_0x3214f3={_0x1ee8c2:0xdc,_0x3277e9:0x137},_0x59dd7={_0x1f04c0:0x110,_0x5d803f:0x149};function _0x576238(_0x3afc69,_0x1bf2ff,_0x41a68f,_0xf646ba){return _0x253ce3(_0x3afc69-_0x59dd7._0x1f04c0,_0x1bf2ff,_0x41a68f-0x10a,_0x3afc69-_0x59dd7._0x5d803f);}function _0x3d64d4(_0x3e25b0,_0x54c22c,_0x15b1af,_0x150598){return _0x253ce3(_0x3e25b0-_0x3214f3._0x1ee8c2,_0x150598,_0x15b1af-0x94,_0x15b1af-_0x3214f3._0x3277e9);}switch(_0x301f17['type']){case _0x576238(_0x5d036e._0x2d47d0,_0x5d036e._0x2ecead,0x2ad,_0x5d036e._0x40f59d):return{'type':_0x3d64d4(0x2e1,_0x5d036e._0x13f856,_0x5d036e._0x1719c6,0x2e1),'index':_0x301f17[_0x3d64d4(_0x5d036e._0x5467ad,_0x5d036e._0x393560,0x2d4,0x2c1)],'messageId':_0x2a70ec,'chunk':{'type':_0x3d64d4(_0x5d036e._0x67831a,_0x5d036e._0xc26d41,0x299,0x244),'index':_0x301f17['index']??0x0,'thinking':_0x301f17[_0x576238(_0x5d036e._0x106c6d,_0x5d036e._0x35ea24,_0x5d036e._0xf1cf7,0x372)]??''},'text':_0x301f17[_0x3d64d4(_0x5d036e._0x4cff97,0x318,0x31a,_0x5d036e._0x31da6a)]??''};case _0x3d64d4(_0x5d036e._0x1f305b,_0x5d036e._0x5ead5f,_0x5d036e._0x3f0c8c,0x39e):return{'type':'reasoning_chunk','index':_0x301f17['contentIndex'],'messageId':_0x2a70ec,'chunk':{'type':_0x3d64d4(0x375,0x35d,0x344,0x38b),'contentIndex':_0x301f17[_0x576238(0x301,_0x5d036e._0x5a33c9,0x2cc,_0x5d036e._0x2f5aaa)]??0x0,'delta':_0x301f17[_0x576238(_0x5d036e._0x41ff4a,_0x5d036e._0x349b6a,0x349,_0x5d036e._0x5da931)]??'','itemId':_0x301f17[_0x576238(_0x5d036e._0x43b24b,0x365,0x318,0x2e4)]??'','outputIndex':_0x301f17[_0x576238(0x337,_0x5d036e._0x1aba3d,_0x5d036e._0x192b0a,0x2fd)]??0x0},'text':_0x301f17[_0x3d64d4(_0x5d036e._0x378801,0x326,_0x5d036e._0x5b0ed9,_0x5d036e._0x23a6ea)]??''};case _0x576238(_0x5d036e._0x2df02f,_0x5d036e._0x5772de,_0x5d036e._0x5e7d1b,_0x5d036e._0x475632):return{'type':_0x3d64d4(_0x5d036e._0xfea2,0x2bd,0x310,0x2ed),'index':_0x301f17['summaryIndex'],'messageId':_0x2a70ec,'chunk':{'type':_0x3d64d4(_0x5d036e._0x5d5191,_0x5d036e._0x1964fa,_0x5d036e._0x56059e,0x30f),'delta':_0x301f17[_0x3d64d4(_0x5d036e._0x4d8d65,0x2ca,0x2d5,0x287)]??'','itemId':_0x301f17[_0x3d64d4(_0x5d036e._0x393560,_0x5d036e._0x3b1c5f,_0x5d036e._0x19aedb,0x33b)]??'','outputIndex':_0x301f17['outputIndex']??0x0,'summaryIndex':_0x301f17[_0x576238(0x2bd,0x299,_0x5d036e._0x2d7ffe,0x28e)]??0x0},'text':_0x301f17[_0x3d64d4(_0x5d036e._0x2f3fdc,_0x5d036e._0x218258,0x2d5,_0x5d036e._0x56059e)]??''};default:return void 0x0;}}function isAbortedToolResult(_0x4736f5){const _0x2dfeaa={_0x46b79b:0x4be,_0x80b4df:0x46f,_0x45e4b8:0x462,_0xadac1:0x41e,_0x7f4652:0x458,_0x42f552:0x4d8,_0x33974c:0x49b},_0x40afbd={_0x7f76b7:0x10,_0x31566e:0xb3,_0xb9a1ff:0xb1},_0x24a287={_0x2ede7f:0x79,_0x4e2825:0x88};function _0x343bcd(_0x101b8f,_0x375837,_0xa8fba7,_0x41bba8){return _0x1b09d0(_0x101b8f,_0x375837-_0x24a287._0x2ede7f,_0xa8fba7- -0x507,_0x41bba8-_0x24a287._0x4e2825);}function _0x44f8c5(_0x317965,_0x1a330d,_0x2e5394,_0x1d5e0d){return _0x1b09d0(_0x317965,_0x1a330d-_0x40afbd._0x7f76b7,_0x1d5e0d-_0x40afbd._0x31566e,_0x1d5e0d-_0x40afbd._0xb9a1ff);}return _0x4736f5['status']===_0x44f8c5(_0x2dfeaa._0x46b79b,0x467,_0x2dfeaa._0x80b4df,0x47c)&&_0x4736f5[_0x44f8c5(_0x2dfeaa._0x45e4b8,0x420,_0x2dfeaa._0xadac1,0x40a)][_0x44f8c5(_0x2dfeaa._0x7f4652,_0x2dfeaa._0x42f552,0x477,_0x2dfeaa._0x33974c)]===!![];}async function executeModelRequest(_0x5db7ec,_0x47df76,_0x143479,_0x4c85ec,_0x27c28c,_0x2cfaef){const _0x3fd82b={_0x15611d:0x26e,_0x424c8b:0x26b,_0x11b41e:0x2fc,_0xdf8b21:0x2a4,_0x22c772:0x153,_0x38dcf8:0x2a5,_0x2ebb2e:0x264,_0x222e02:0x1e6,_0x42545c:0x1e6,_0x14ec46:0x172,_0x191367:0x1ad,_0x991f8e:0x16c,_0x59a878:0x294,_0x1d9e1a:0x300,_0x3694f5:0x273,_0x2279a1:0x17e,_0xb9bfbc:0x19a,_0x5aa642:0x1a1,_0x5080bc:0x2ef,_0x315b01:0x152,_0x3b61fd:0x16a,_0x325607:0x2bc,_0xbd50fd:0x286,_0x44a7f2:0x2df,_0x165a13:0x2c7,_0x4d7280:0x2a2,_0x26c204:0x2fb,_0x9c854e:0x27d,_0xa4f5b8:0x295,_0x21f3cb:0x2a9,_0x891d88:0x260,_0x2a79c4:0x289,_0x2437d3:0x2b6,_0x2fc5a2:0x269,_0x3528be:0x287,_0x3c4857:0x125,_0x2b77c3:0x109,_0x48d9cd:0x18c,_0x1956e3:0x26b,_0x3b3fb6:0x26e,_0x24770f:0x26d,_0x558842:0x276,_0x1ac41f:0x2ee,_0x457be9:0x27a,_0x35ea14:0x2d7,_0x32c242:0x26b,_0x391b77:0x2d7,_0x3490f4:0x2a6,_0x455c54:0x2c5,_0x1571e7:0x1bd,_0x5b197f:0x1fb,_0x3f37aa:0x161,_0x49f77d:0x17f,_0x4cc655:0x1ba,_0x3ad28e:0x1da,_0x434d4d:0x1a4,_0x3a0982:0x1e9,_0x205455:0x232,_0x4cdce1:0x2e7,_0x456caf:0x28a,_0x46869e:0x296,_0x319241:0x188,_0x4993d7:0x15f,_0x13710f:0xdf,_0xc04816:0x17c,_0x9f9baa:0xc1,_0x503cdd:0x251,_0x5156cd:0x1cd,_0x24fac2:0x1b8,_0xe67e49:0x193,_0x4f60c4:0xff,_0x48acc4:0x206,_0x2a1ee:0x208,_0x116a47:0x13d,_0x4d0aa3:0x2d6,_0x3b95c4:0x2e4,_0x1d68e1:0x318,_0x2dde4f:0x2d3,_0x135ae3:0x188,_0x5b1c69:0x26c,_0x2f1437:0x2d4,_0x2c2887:0x2b9},_0x27520e={_0x3e0904:0xbf},_0x2b74ec={_0x39e999:0x154,_0x4a5b8a:0xae};throwIfAborted(_0x47df76[_0x29ad15(_0x3fd82b._0x15611d,0x216,0x210,_0x3fd82b._0x424c8b)]);if(!_0x47df76['streaming']||!_0x143479[_0x29ad15(0x29a,_0x3fd82b._0x11b41e,_0x3fd82b._0xdf8b21,0x2a5)])return await _0x143479[_0x30aac4(-_0x3fd82b._0x22c772,-0x192,-0x13f,-0x171)](_0x5db7ec,{'signal':_0x47df76['signal']});let _0x3250a7;function _0x30aac4(_0x103424,_0xa1ef66,_0xa620ec,_0x4bad1d){return _0x253ce3(_0x103424-_0x2b74ec._0x39e999,_0xa1ef66,_0xa620ec-_0x2b74ec._0x4a5b8a,_0x103424- -0x328);}for await(const _0x348919 of _0x143479[_0x29ad15(0x242,0x280,0x308,_0x3fd82b._0x38dcf8)](_0x5db7ec,{'signal':_0x47df76[_0x29ad15(0x215,0x2a6,_0x3fd82b._0x2ebb2e,0x26b)]})){throwIfAborted(_0x47df76[_0x30aac4(-0x1a9,-0x1b1,-_0x3fd82b._0x222e02,-_0x3fd82b._0x42545c)]);if(_0x348919[_0x30aac4(-_0x3fd82b._0x14ec46,-_0x3fd82b._0x191367,-0x1c6,-_0x3fd82b._0x991f8e)]===_0x29ad15(0x2bd,_0x3fd82b._0x59a878,_0x3fd82b._0x1d9e1a,0x2a1)){_0x2cfaef[_0x29ad15(0x20e,0x21f,0x219,_0x3fd82b._0x3694f5)][_0x30aac4(-_0x3fd82b._0x2279a1,-0x1a1,-0x127,-_0x3fd82b._0xb9bfbc)]!==void 0x0&&_0x2cfaef[_0x30aac4(-_0x3fd82b._0x5aa642,-0x1ec,-0x172,-0x1ff)][_0x29ad15(0x353,0x2b1,_0x3fd82b._0x38dcf8,_0x3fd82b._0x5080bc)]===void 0x0&&(_0x2cfaef['meta'][_0x30aac4(-0x125,-_0x3fd82b._0x315b01,-0x18a,-_0x3fd82b._0x3b61fd)]=Date[_0x29ad15(_0x3fd82b._0x325607,_0x3fd82b._0xbd50fd,_0x3fd82b._0x44a7f2,0x288)]());_0x3250a7=_0x348919['response'];continue;}if(_0x348919[_0x29ad15(_0x3fd82b._0x165a13,0x28d,0x259,_0x3fd82b._0x4d7280)]===_0x29ad15(_0x3fd82b._0x26c204,_0x3fd82b._0x9c854e,0x2a3,_0x3fd82b._0xa4f5b8)){await emitEvent2(_0x4c85ec[_0x29ad15(_0x3fd82b._0x21f3cb,_0x3fd82b._0x891d88,_0x3fd82b._0x2a79c4,0x28c)],{'type':_0x30aac4(-0x17f,-0x16c,-0x137,-0x118),'assistantMessageId':_0x2cfaef[_0x29ad15(0x2ed,0x2e7,0x2af,_0x3fd82b._0x11b41e)],'reasoningMessageId':_0x2cfaef['reasoningMessageId']},_0x27c28c),delete _0x2cfaef[_0x29ad15(_0x3fd82b._0x2437d3,_0x3fd82b._0x2fc5a2,_0x3fd82b._0x3528be,0x273)][_0x30aac4(-0x17e,-0x191,-0x1d5,-_0x3fd82b._0x191367)],delete _0x2cfaef['meta'][_0x30aac4(-_0x3fd82b._0x3c4857,-_0x3fd82b._0x2b77c3,-0x129,-0x14c)];continue;}if(_0x348919[_0x30aac4(-0x172,-_0x3fd82b._0x48d9cd,-0x16d,-0x134)]===_0x29ad15(_0x3fd82b._0x1956e3,0x22d,_0x3fd82b._0x3b3fb6,_0x3fd82b._0x24770f)){await emitEvent2(_0x4c85ec['onEvent'],{..._0x348919,'assistantMessageId':_0x2cfaef['assistantMessageId']},_0x27c28c);continue;}const _0x2ea35b=createReasoningChunkEvent(_0x348919,_0x2cfaef[_0x29ad15(_0x3fd82b._0x558842,0x29f,_0x3fd82b._0x1ac41f,0x287)]);if(_0x2ea35b&&_0x2ea35b[_0x29ad15(0x276,_0x3fd82b._0x457be9,_0x3fd82b._0x35ea14,_0x3fd82b._0x4d7280)]===_0x29ad15(_0x3fd82b._0x32c242,_0x3fd82b._0x391b77,_0x3fd82b._0x3490f4,_0x3fd82b._0x455c54)&&_0x2ea35b[_0x30aac4(-_0x3fd82b._0x1571e7,-_0x3fd82b._0x5b197f,-_0x3fd82b._0x3f37aa,-_0x3fd82b._0x49f77d)]['length']>0x0){_0x2cfaef[_0x30aac4(-_0x3fd82b._0x5aa642,-0x152,-0x168,-_0x3fd82b._0x4cc655)][_0x30aac4(-0x17e,-0x171,-_0x3fd82b._0x3ad28e,-0x17f)]===void 0x0&&(_0x2cfaef[_0x30aac4(-_0x3fd82b._0x5aa642,-_0x3fd82b._0x434d4d,-0x18c,-_0x3fd82b._0x3a0982)][_0x29ad15(_0x3fd82b._0x205455,_0x3fd82b._0x4cdce1,_0x3fd82b._0x456caf,_0x3fd82b._0x46869e)]=Date['now']());await emitEvent2(_0x4c85ec[_0x30aac4(-_0x3fd82b._0x319241,-0x12d,-_0x3fd82b._0x4993d7,-0x1a4)],_0x2ea35b,_0x27c28c);continue;}const _0x7c3a14=createAssistantChunkEvent(_0x348919,_0x2cfaef[_0x30aac4(-0x118,-_0x3fd82b._0x13710f,-_0x3fd82b._0xc04816,-_0x3fd82b._0x9f9baa)]);if(_0x7c3a14){_0x2cfaef[_0x29ad15(0x228,0x2a2,_0x3fd82b._0x503cdd,_0x3fd82b._0x3694f5)]['reasoningStartedAt']!==void 0x0&&_0x2cfaef[_0x30aac4(-0x1a1,-_0x3fd82b._0x5156cd,-_0x3fd82b._0x24fac2,-_0x3fd82b._0xe67e49)][_0x30aac4(-0x125,-0x10b,-_0x3fd82b._0x4f60c4,-0x153)]===void 0x0&&(_0x2cfaef[_0x30aac4(-0x1a1,-_0x3fd82b._0x48acc4,-_0x3fd82b._0x2a1ee,-_0x3fd82b._0x116a47)]['reasoningCompletedAt']=Date[_0x29ad15(0x2c9,_0x3fd82b._0x4d0aa3,_0x3fd82b._0x4d0aa3,0x288)]());await emitEvent2(_0x4c85ec[_0x29ad15(0x2e5,0x252,_0x3fd82b._0x3b95c4,0x28c)],_0x7c3a14,_0x27c28c);continue;}const _0x5b6a55=createToolUseChunkEvent(_0x348919,_0x2cfaef[_0x29ad15(_0x3fd82b._0x1d68e1,0x2ef,_0x3fd82b._0x2dde4f,_0x3fd82b._0x11b41e)]);_0x5b6a55&&await emitEvent2(_0x4c85ec[_0x30aac4(-_0x3fd82b._0x135ae3,-0x1b3,-0x1e7,-_0x3fd82b._0xc04816)],_0x5b6a55,_0x27c28c);}function _0x29ad15(_0x37b35b,_0x4565dd,_0x5941fe,_0x3492a9){return _0x253ce3(_0x37b35b-_0x27520e._0x3e0904,_0x4565dd,_0x5941fe-0x16a,_0x3492a9-0xec);}if(!_0x3250a7)throw new Error(_0x29ad15(0x2cc,_0x3fd82b._0x5b1c69,_0x3fd82b._0x2f1437,_0x3fd82b._0x2c2887));return _0x3250a7;}function makeTurnGuards(_0x17103f,_0x4db145,_0x4bff02,_0x4caf24,_0x1c4ef4){return{async 'stage'(_0x149d3e,_0x25cb4f){return throwIfAborted(_0x17103f),await runStage(_0x4db145,_0x149d3e,_0x25cb4f,_0x4caf24);},async 'emit'(_0x38f7e5){throwIfAborted(_0x17103f),await emitEvent2(_0x4bff02,_0x38f7e5,_0x1c4ef4);},async 'stageUnchecked'(_0x25cecc,_0x147b13){return await runStage(_0x4db145,_0x25cecc,_0x147b13,_0x4caf24);},async 'emitUnchecked'(_0x456fcc){await emitEvent2(_0x4bff02,_0x456fcc,_0x1c4ef4);}};}async function runTurn(_0x225a2a,_0x4ffb7b){const _0x28beba={_0x14db04:0x478,_0x5f502f:0x47d,_0x52e957:0xca,_0x35372a:0x85,_0x5f09f1:0x70,_0x3f64f2:0xb2,_0x20313b:0x136,_0x401adf:0x18f,_0x268f81:0x152,_0x30e872:0x163,_0x30dac2:0x4ec,_0x248d34:0x4ab,_0x45f7c9:0xf8,_0x362dfb:0x3d3,_0xd0ad66:0x453,_0x406e36:0x10c,_0x1ecb9f:0xd6,_0x1acfa7:0x4c0,_0x3cf1ec:0x49e,_0x199ad3:0x125,_0xc5e764:0xba,_0x38b2d3:0x57,_0x378ef9:0x7a,_0x1dea2a:0x4c4,_0x55abd3:0x4b0,_0x4ca74f:0x4e0,_0x20aadb:0x4c4,_0x485e43:0x496,_0x516c58:0xcb,_0x199640:0xdc,_0xd6f61:0x49a,_0x19c74d:0xf7,_0x2037a2:0x128,_0x2365fb:0x15c,_0x2478f5:0x142,_0x187727:0x525,_0x6e9b01:0x4f3,_0xd9f9d7:0x4e2,_0x13eaf7:0x4a4,_0x2a5e45:0x4ef,_0x16ac3d:0x503,_0x43fbd7:0x51c,_0x4f5650:0x528,_0x3a1026:0xb5,_0x511506:0x4b3,_0x460d1d:0x4a6,_0x432944:0x4cb,_0x3ccd42:0x162,_0x163a0d:0x190,_0x53db0f:0xef,_0x267259:0xbb,_0x586ccc:0xc8,_0x4457fe:0x487,_0x59a11d:0x479,_0xba69e8:0x14b,_0x28b543:0x119,_0x43bcd9:0x52a,_0x3ed810:0xfa,_0x16eb0a:0x14b,_0x489fb1:0x502,_0x34f983:0x109,_0x5659ac:0x4d5,_0x4fa858:0x501,_0x104d1c:0x10b,_0xccc657:0xda,_0x42893a:0x4bd,_0x3bd14f:0x429,_0x465afc:0x4d5,_0x1c30a1:0x4d0,_0xa02343:0x441,_0x1e3c0b:0x3e6,_0x2463a7:0x3e2,_0x113414:0x418,_0x15e8ac:0x45f,_0x370627:0xed,_0x4d1788:0x173,_0x46471d:0x4da,_0x20e747:0x47b,_0x12c490:0x434,_0x535a70:0x48d,_0x289c37:0x145,_0x3d6fd1:0x104,_0x1de79f:0x161,_0x5b5819:0x1ba,_0x446441:0xff,_0x4c41d1:0x12c,_0x38f722:0x135,_0xc61b86:0x14c,_0x3fc74c:0x148,_0x39e6a3:0xa5,_0x48a70a:0xd5,_0x225b67:0x106,_0x206318:0x435,_0x2826e8:0x437,_0x4d9f23:0x130,_0x514248:0x181,_0x4d181d:0x496,_0x4f5aa0:0x481,_0x21bd41:0x16e,_0xe5c2bf:0xa5,_0x21d16f:0x41d,_0x300c44:0x4a6,_0xc0e977:0x4c4,_0x1fda47:0x4c2,_0x182ffb:0x4dd,_0x5ec2bc:0x4da,_0x1ae351:0x4d7,_0x4cf062:0x3d7,_0x2316bc:0x446,_0x3310fa:0x4fc,_0x3ef5bc:0xc4,_0x42dbaa:0x11a,_0x4f8458:0xd8,_0x3d7f02:0xdc,_0x504ee0:0x4aa,_0x3a5457:0x4bf,_0x118376:0x489,_0x59b66c:0x4ae,_0x1de474:0x4a4,_0x27b2ba:0x3cf,_0xcde093:0xe5,_0x2f2ff2:0xe3,_0x3b0326:0x194,_0x55babf:0x13a,_0xbcdf50:0xfd,_0x462a8d:0x147,_0x2824c7:0xa2,_0x488630:0x11b,_0x4b0ae1:0x43b,_0x26975b:0x441,_0x2760fc:0x494,_0x470d44:0x476,_0x446e6a:0x4d6,_0x4a7380:0x4cd,_0x160613:0xc2,_0x1e755c:0x186,_0x55f5d1:0x146,_0xc1c6a0:0xc1,_0x2b3cb2:0x4db,_0x41bfda:0x4f7,_0x4db105:0x536,_0x568b93:0x151,_0x3a7a0b:0x118,_0x5311d0:0x141,_0x1f207c:0xf3,_0x145feb:0x151},_0x231a4f={_0x260661:0xbd},_0x287c6b={_0x2f2176:0x2ac,_0x49ec97:0x2ec,_0x7a7a2a:0x387,_0x2f28c4:0x387,_0x498b73:0x320,_0x51c239:0x3aa,_0x30154d:0x3f7,_0x19b47e:0x39c,_0x7755a6:0x380,_0x3466e5:0x3b2,_0x21e306:0x2d7,_0x518c9e:0x2b6,_0x46c872:0x318},_0x5c077d={_0x47d18f:0x273},_0x40e709={_0x17c750:0x3e,_0x122d79:0xb8,_0x6dfa83:0x64,_0x4db8e8:0x4,_0x316f93:0x50,_0x41fb9:0xe,_0x1c4708:0x2},_0x1b7840={_0x38de93:0x5b,_0x1258df:0xfc,_0x4c1036:0xb5},_0x3a5984=_0x4ffb7b[_0xcf628b(0x436,_0x28beba._0x14db04,_0x28beba._0x5f502f,0x45f)],_0x284858=_0x225a2a[_0x251e72(_0x28beba._0x52e957,_0x28beba._0x35372a,_0x28beba._0x5f09f1,_0x28beba._0x3f64f2)]??new AbortController()['signal'],_0x1fc8fe={'sessionId':_0x225a2a[_0x251e72(_0x28beba._0x20313b,0x164,_0x28beba._0x401adf,_0x28beba._0x268f81)],'turnId':_0x225a2a[_0x251e72(0x119,0xdb,0xce,_0x28beba._0x30e872)],'system':normalizeSystem(_0x225a2a[_0xcf628b(_0x28beba._0x30dac2,0x49c,0x438,_0x28beba._0x248d34)]),'messages':(_0x225a2a[_0x251e72(0x129,_0x28beba._0x45f7c9,0x18b,0xe1)]??[])[_0x251e72(0xda,0x76,0x125,0x7d)](normalizeMessage),'lastResponse':void 0x0,'toolResults':[],'finalMessage':void 0x0,'sessionDir':typeof _0x4ffb7b[_0xcf628b(_0x28beba._0x362dfb,0x430,0x3ea,_0x28beba._0xd0ad66)]==='function'?_0x4ffb7b[_0x251e72(0xa6,0xe2,0xf0,0xb2)]():_0x4ffb7b[_0x251e72(0xa6,_0x28beba._0x406e36,_0x28beba._0x1ecb9f,0xf6)]},_0x4ec753=makeExtensionContext(_0x1fc8fe);function _0x251e72(_0x22d0e4,_0x391d15,_0x305a7f,_0x433fb4){return _0x253ce3(_0x22d0e4-_0x1b7840._0x38de93,_0x305a7f,_0x305a7f-_0x1b7840._0x1258df,_0x22d0e4- -_0x1b7840._0x4c1036);}const _0x1ad2ba={'sessionId':_0x1fc8fe[_0xcf628b(0x521,_0x28beba._0x1acfa7,0x4ec,_0x28beba._0x3cf1ec)],'turnId':_0x1fc8fe[_0x251e72(0x119,_0x28beba._0x199ad3,0xcc,0xef)],'state':_0x1fc8fe,'signal':_0x284858,..._0x4ffb7b[_0x251e72(_0x28beba._0xc5e764,_0x28beba._0x38b2d3,_0x28beba._0x378ef9,0xe4)]?{'askUser':_0x4ffb7b['askUser']}:{},..._0x4ffb7b[_0xcf628b(0x45f,_0x28beba._0x1dea2a,0x4a5,_0x28beba._0x55abd3)]?{'setTopic':_0x4ffb7b[_0xcf628b(_0x28beba._0x4ca74f,_0x28beba._0x20aadb,0x4b0,_0x28beba._0x485e43)]}:{}},{stage:_0x5afa00,emit:_0x2e1aa7,stageUnchecked:_0x3580ab,emitUnchecked:_0x4aa833}=makeTurnGuards(_0x284858,_0x4ffb7b[_0x251e72(_0x28beba._0x516c58,_0x28beba._0x199640,0x12b,0x7e)],_0x4ffb7b['onEvent'],_0x4ec753,_0x1ad2ba),_0x27aa2c=async(_0x454bb7,_0x11e7c4)=>{const _0x114093={_0x309af1:0x4b2},_0x122cb2={_0x3b8a4d:0xc},_0x2611a7=_0x11e7c4?{..._0x4ec753,'turnMeta':_0x11e7c4}:_0x4ec753;function _0x43207d(_0x35bd76,_0x3280ab,_0x4897ec,_0x3333b7){return _0xcf628b(_0x35bd76-_0x122cb2._0x3b8a4d,_0x4897ec- -0x4ce,_0x35bd76,_0x3333b7-0x111);}function _0x4f10b7(_0x31dbc5,_0x1643c0,_0x14aae7,_0x5d23ec){return _0xcf628b(_0x31dbc5-0xf5,_0x31dbc5- -_0x114093._0x309af1,_0x1643c0,_0x5d23ec-0x1dd);}await _0x4ffb7b[_0x43207d(-_0x40e709._0x17c750,-0x32,-0x79,-_0x40e709._0x122d79)][_0x4f10b7(-_0x40e709._0x6dfa83,-0x9e,-_0x40e709._0x4db8e8,-0x84)](_0x43207d(-_0x40e709._0x316f93,_0x40e709._0x41fb9,_0x40e709._0x1c4708,0x44),structuredClone(_0x454bb7),_0x2611a7);},_0x1716df=async _0x322b23=>{const _0x37a295={_0x58625d:0x24};function _0x299cef(_0x7234b3,_0x319f67,_0x28ef2d,_0x2b70c3){return _0xcf628b(_0x7234b3-_0x37a295._0x58625d,_0x319f67- -0x755,_0x28ef2d,_0x2b70c3-0x1c8);}if(!_0x225a2a['drainSteering'])return 0x0;const _0x265cc4=await _0x225a2a[_0x299cef(-_0x287c6b._0x2f2176,-0x2b1,-_0x287c6b._0x49ec97,-0x27d)]();throwIfAborted(_0x284858);if(_0x265cc4['length']===0x0)return 0x0;await _0x322b23?.();for(const _0x119e40 of _0x265cc4){const _0x31b6e3=await _0x5afa00(_0x7d6b2d(0x3cf,_0x287c6b._0x7a7a2a,_0x287c6b._0x2f28c4,_0x287c6b._0x498b73),normalizeMessage(_0x119e40));throwIfAborted(_0x284858),_0x1fc8fe[_0x7d6b2d(_0x287c6b._0x51c239,_0x287c6b._0x30154d,_0x287c6b._0x19b47e,0x38f)][_0x7d6b2d(_0x287c6b._0x7755a6,0x383,0x36a,_0x287c6b._0x3466e5)](_0x31b6e3),await _0x27aa2c(_0x31b6e3),await _0x2e1aa7({'type':_0x299cef(-0x261,-0x288,-_0x287c6b._0x21e306,-_0x287c6b._0x2f2176),'message':_0x31b6e3});}function _0x7d6b2d(_0x44de0c,_0x8e99a8,_0x276d3c,_0x5ab8ab){return _0x251e72(_0x276d3c-_0x5c077d._0x47d18f,_0x8e99a8-0x13a,_0x5ab8ab,_0x5ab8ab-0xaa);}return _0x265cc4[_0x7d6b2d(0x32c,_0x287c6b._0x518c9e,_0x287c6b._0x46c872,0x317)];};let _0x113319=0x0;function _0xcf628b(_0x21ab7f,_0x434b5b,_0x26c20b,_0x390259){return _0x253ce3(_0x21ab7f-0x1e,_0x26c20b,_0x26c20b-_0x231a4f._0x260661,_0x434b5b-0x2d5);}try{const _0x2693fa=await _0x5afa00('onUserMessage',normalizeMessage(_0x225a2a[_0xcf628b(_0x28beba._0xd6f61,0x4e6,0x504,0x497)]));_0x1fc8fe['messages'][_0x251e72(_0x28beba._0x19c74d,0x15a,_0x28beba._0x2037a2,0xc4)](_0x2693fa),await _0x27aa2c(_0x2693fa),await _0x2e1aa7({'type':_0x251e72(0x143,_0x28beba._0x2365fb,0xf9,_0x28beba._0x2478f5),'message':_0x2693fa});while(!![]){throwIfAborted(_0x284858),_0x113319+=0x1;const _0x2f2300=createAssistantMessageId(_0x1fc8fe['turnId'],_0x113319),_0x3ef150=createReasoningMessageId(_0x2f2300),_0x21a1e9={'model':_0x3a5984[_0xcf628b(_0x28beba._0x187727,0x4c7,0x4e6,_0x28beba._0x6e9b01)],'modelIdentity':_0x3a5984['modelIdentity'],..._0x3a5984[_0xcf628b(_0x28beba._0xd9f9d7,0x4ef,0x4a4,0x527)]?{'provider':_0x3a5984[_0xcf628b(_0x28beba._0x13eaf7,_0x28beba._0x2a5e45,0x54a,0x511)]}:{}};let _0x613fcf={'model':_0x3a5984[_0xcf628b(_0x28beba._0x16ac3d,0x4c7,_0x28beba._0x43fbd7,_0x28beba._0x4f5650)],..._0x3a5984[_0x251e72(0xa2,0xb0,0xbd,0x7c)]!==void 0x0?{'maxTokens':_0x3a5984[_0x251e72(0xa2,0xa7,0x53,_0x28beba._0x3a1026)]}:{},'system':structuredClone(_0x1fc8fe['system']),'messages':structuredClone(_0x1fc8fe[_0xcf628b(0x453,_0x28beba._0x511506,_0x28beba._0x460d1d,_0x28beba._0x432944)]),'tools':_0x4ffb7b['toolRuntime']['listToolSchemas'](),'metadata':{'sessionId':_0x1fc8fe[_0x251e72(_0x28beba._0x20313b,_0x28beba._0x3ccd42,_0x28beba._0x163a0d,0x16d)],'turnId':_0x1fc8fe[_0x251e72(0x119,_0x28beba._0x53db0f,_0x28beba._0x267259,_0x28beba._0x586ccc)],'modelIdentity':_0x3a5984[_0xcf628b(_0x28beba._0x4457fe,_0x28beba._0x59a11d,0x4c4,0x4ca)],..._0x3a5984[_0x251e72(_0x28beba._0xba69e8,0xf7,0x16e,_0x28beba._0x28b543)]!==void 0x0?{'pricingProviderId':_0x3a5984[_0xcf628b(0x4ea,0x4d5,_0x28beba._0x43bcd9,0x4a6)]}:{}},..._0x4ffb7b[_0x251e72(0x121,_0x28beba._0x3ed810,_0x28beba._0x16eb0a,0x15c)]?{'outputFormat':_0x4ffb7b[_0xcf628b(0x4d8,0x4ab,0x4a1,_0x28beba._0x489fb1)]}:{}};_0x613fcf=await _0x5afa00('beforeModelRequest',_0x613fcf);{const {pricingProviderId:_0xd93cb2,..._0x36a526}=_0x613fcf['metadata'];_0x613fcf={..._0x613fcf,'metadata':{..._0x36a526,..._0x3a5984[_0x251e72(0x14b,_0x28beba._0x34f983,0x183,0x158)]!==void 0x0?{'pricingProviderId':_0x3a5984[_0xcf628b(0x499,_0x28beba._0x5659ac,0x49b,_0x28beba._0x4fa858)]}:{}}};}await _0x2e1aa7({'type':_0x251e72(0x11e,0x108,_0x28beba._0x104d1c,_0x28beba._0xccc657),'request':_0x613fcf});const _0x1364f2=Date[_0xcf628b(0x4b1,0x471,_0x28beba._0x4457fe,_0x28beba._0x42893a)]();_0x21a1e9['turnStartedAt']=_0x1364f2;let _0x487afd=await executeModelRequest(_0x613fcf,_0x225a2a,_0x3a5984,_0x4ffb7b,_0x1ad2ba,{'assistantMessageId':_0x2f2300,'reasoningMessageId':_0x3ef150,'meta':_0x21a1e9});const _0x418a92=Date[_0xcf628b(_0x28beba._0x3bd14f,0x471,_0x28beba._0x465afc,_0x28beba._0x1c30a1)]();_0x21a1e9[_0xcf628b(0x451,0x429,_0x28beba._0xa02343,_0x28beba._0x1e3c0b)]=_0x418a92,_0x487afd=await _0x5afa00('afterModelResponse',_0x487afd);_0x487afd['providerState']&&(_0x487afd={..._0x487afd,'providerState':{..._0x487afd[_0xcf628b(_0x28beba._0x2463a7,0x434,_0x28beba._0x113414,_0x28beba._0x15e8ac)],'originModelIdentity':_0x3a5984[_0x251e72(_0x28beba._0x53db0f,_0x28beba._0xba69e8,0xee,_0x28beba._0x370627)]}});_0x487afd=withEstimatedModelCost(_0x613fcf,_0x487afd);const _0xc4da25=Math[_0x251e72(0x163,0x19c,0x15e,_0x28beba._0x4d1788)](0x0,_0x418a92-_0x1364f2),_0x5d63a4={'version':0x1,'usage':structuredClone(_0x487afd[_0xcf628b(_0x28beba._0x46471d,_0x28beba._0x20e747,_0x28beba._0x12c490,_0x28beba._0x535a70)]),'modelTimeMs':_0xc4da25},_0x1aa0eb=_0x1527bd=>({..._0x21a1e9,'metrics':{..._0x5d63a4,'usage':structuredClone(_0x5d63a4['usage']),'completesRequest':_0x1527bd}});await _0x2e1aa7({'type':_0x251e72(_0x28beba._0x289c37,0x12d,_0x28beba._0x3d6fd1,0x108),'response':_0x487afd,'modelTimeMs':_0xc4da25}),_0x1fc8fe['lastResponse']=_0x487afd;let _0xe30407=await _0x5afa00(_0x251e72(_0x28beba._0x1de79f,0x174,_0x28beba._0x5b5819,_0x28beba._0x446441),withMessageId(responseToAssistantMessage(_0x487afd),_0x2f2300));_0xe30407=withMessageId(_0xe30407,_0x2f2300);const _0x3141c1=getToolUseBlocks(_0xe30407),_0x4a6237=await Promise[_0x251e72(_0x28beba._0x4c41d1,_0x28beba._0x38f722,_0x28beba._0xc61b86,_0x28beba._0x3fc74c)](_0x3141c1[_0xcf628b(0x43e,0x464,0x46c,0x434)](_0x22ab72=>_0x5afa00(_0x251e72(0x141,0x1a9,0x130,0xf7),_0x22ab72)));_0x4a6237[_0x251e72(_0x28beba._0x39e6a3,_0x28beba._0x48a70a,0xf5,0xa3)]>0x0&&(_0xe30407=replaceToolUseBlocks(_0xe30407,_0x4a6237));const _0x1d07e8=withMessageId(_0xe30407,_0x2f2300);_0xe30407=_0x1d07e8;const _0xeeeaa2=createReasoningMessage(_0xe30407),_0x3bac31=createAssistantTextMessage(_0xe30407),_0x34dcae=createToolUseMessage(_0xe30407);_0xeeeaa2&&await _0x2e1aa7({'type':'reasoning_message','message':withMessageId(_0xeeeaa2,_0x3ef150)});_0x3bac31&&await _0x2e1aa7({'type':_0x251e72(_0x28beba._0x225b67,0x15f,0x11b,0x10d),'message':withMessageId(_0x3bac31,_0x2f2300)});_0x34dcae&&await _0x2e1aa7({'type':_0xcf628b(_0x28beba._0x206318,0x42e,0x45d,_0x28beba._0x2826e8),'message':withMessageId(_0x34dcae,_0x2f2300)});_0x1fc8fe[_0x251e72(0x129,_0x28beba._0x4d9f23,0x157,_0x28beba._0x514248)][_0xcf628b(_0x28beba._0x4d181d,_0x28beba._0x4f5aa0,0x45c,0x436)](_0x1d07e8);_0x4a6237['length']>0x0&&await _0x27aa2c(_0x1d07e8,_0x1aa0eb(![]));for(const _0x429fb2 of _0x4a6237){await _0x2e1aa7({'type':_0x251e72(0x115,_0x28beba._0x21bd41,0x164,0xd6),'toolCall':_0x429fb2});}if(_0x4a6237[_0x251e72(_0x28beba._0xe5c2bf,0x72,0x7a,0x4e)]===0x0){const _0x2879c3=await _0x1716df(async()=>{await _0x27aa2c(_0x1d07e8,_0x1aa0eb(![]));});if(_0x2879c3>0x0)continue;const _0x4fdded=await _0x5afa00(_0xcf628b(0x4a9,0x461,_0x28beba._0x21d16f,_0x28beba._0x300c44),_0xe30407),_0x468171=withMessageId(_0x4fdded,_0x2f2300);return _0x1fc8fe[_0xcf628b(0x415,0x463,_0x28beba._0xc0e977,_0x28beba._0x12c490)]=_0x468171,_0x1fc8fe[_0xcf628b(_0x28beba._0x1fda47,0x4b3,_0x28beba._0x182ffb,_0x28beba._0x5ec2bc)][_0x1fc8fe[_0xcf628b(0x4fe,0x4b3,_0x28beba._0x1ae351,0x4e8)][_0xcf628b(0x46e,0x42f,_0x28beba._0x4cf062,_0x28beba._0x2316bc)]-0x1]=_0x468171,await _0x27aa2c(_0x468171,_0x1aa0eb(!![])),await _0x4aa833({'type':_0xcf628b(0x4de,0x4a9,_0x28beba._0x3310fa,0x4ef),'message':_0x468171}),throwIfAborted(_0x284858),await _0x4ffb7b['registry'][_0x251e72(_0x28beba._0x3ef5bc,0x124,_0x28beba._0x42dbaa,0xba)](_0x251e72(0xcd,0x67,_0x28beba._0x4f8458,_0x28beba._0x3d7f02),_0x1fc8fe,_0x4ec753),await _0x2e1aa7({'type':_0xcf628b(0x4ce,0x4bf,_0x28beba._0x504ee0,0x486),'state':_0x1fc8fe}),{'status':_0xcf628b(_0x28beba._0x3a5457,_0x28beba._0x118376,0x49e,_0x28beba._0x504ee0),'finalMessage':_0x468171,'state':_0x1fc8fe};}let _0x1abeeb=await _0x4ffb7b[_0xcf628b(_0x28beba._0x59b66c,0x459,_0x28beba._0x1de474,0x45f)][_0xcf628b(0x3c4,0x427,0x47d,_0x28beba._0x27b2ba)](_0x4a6237,_0x1ad2ba);const _0x23e4c6=_0x1abeeb['some'](isAbortedToolResult),_0x264619=_0x23e4c6?_0x3580ab:_0x5afa00,_0x1c69ed=_0x23e4c6?_0x4aa833:_0x2e1aa7;_0x1abeeb=await Promise[_0x251e72(_0x28beba._0x4c41d1,_0x28beba._0xcde093,_0x28beba._0x2f2ff2,_0x28beba._0x3b0326)](_0x1abeeb[_0x251e72(0xda,0x78,0x93,_0x28beba._0x55babf)](_0x155e87=>_0x264619(_0xcf628b(0x4d7,0x494,0x4c0,0x49a),_0x155e87))),_0x1fc8fe[_0x251e72(0x130,_0x28beba._0xbcdf50,0x13b,_0x28beba._0x462a8d)][_0x251e72(0xf7,_0x28beba._0x2824c7,_0x28beba._0x488630,0x12f)](..._0x1abeeb);for(const _0x67a683 of _0x1abeeb){await _0x1c69ed({'type':'tool_result','result':_0x67a683});}const _0x31f48b=await _0x264619(_0xcf628b(_0x28beba._0x4b0ae1,_0x28beba._0x26975b,_0x28beba._0x2760fc,0x456),createToolResultUserMessage(_0x1abeeb));await _0x1c69ed({'type':_0xcf628b(_0x28beba._0x470d44,_0x28beba._0x446e6a,_0x28beba._0x4a7380,0x4d5),'message':_0x31f48b}),_0x1fc8fe[_0x251e72(0x129,0xef,_0x28beba._0x160613,_0x28beba._0x1e755c)][_0x251e72(0xf7,_0x28beba._0x55f5d1,0x13b,_0x28beba._0xc1c6a0)](_0x31f48b),await _0x27aa2c(_0x31f48b);if(_0x23e4c6)return{'status':_0xcf628b(0x492,_0x28beba._0x2b3cb2,_0x28beba._0x41bfda,_0x28beba._0x4db105),'state':_0x1fc8fe};await _0x1716df();}}catch(_0x2872f9){if(!_0x284858[_0x251e72(_0x28beba._0x568b93,_0x28beba._0x3a7a0b,_0x28beba._0x5311d0,_0x28beba._0x1f207c)])throw new TurnFailedError(_0x2872f9,_0x1fc8fe);return{'status':_0x251e72(_0x28beba._0x145feb,0x136,0x173,_0x28beba._0x1e755c),'state':_0x1fc8fe};}}function createSessionId(){const _0x2c5dfd={_0x1fa1d9:0x4c,_0x9a27b7:0x1a,_0x174c33:0xb7,_0x2cf226:0x102,_0x233b0b:0x103,_0x30fec5:0x27,_0x38d236:0x35,_0x2d0de9:0x13},_0x10df25={_0x2ae212:0x1e5,_0x448e3e:0x17a},_0x365f65={_0x5d1b87:0x1};function _0x4e7f61(_0x35a7ce,_0x516edc,_0x3caf5c,_0x2ef16c){return _0x253ce3(_0x35a7ce-_0x365f65._0x5d1b87,_0x3caf5c,_0x3caf5c-0x141,_0x2ef16c- -0x91);}function _0x451294(_0x1f9a66,_0x1a7979,_0x12863a,_0x55cdb5){return _0x253ce3(_0x1f9a66-_0x10df25._0x2ae212,_0x1f9a66,_0x12863a-0x1b4,_0x1a7979- -_0x10df25._0x448e3e);}return _0x451294(_0x2c5dfd._0x1fa1d9,-_0x2c5dfd._0x9a27b7,-0x30,-0x2e)+Date['now']()+'-'+Math['random']()[_0x4e7f61(_0x2c5dfd._0x174c33,_0x2c5dfd._0x2cf226,0x15c,_0x2c5dfd._0x233b0b)](0x10)[_0x451294(_0x2c5dfd._0x30fec5,0xc,_0x2c5dfd._0x38d236,_0x2c5dfd._0x2d0de9)](0x2,0xa);}function createTurnId(_0x6171f8){const _0x71950d={_0x40f8dc:0x44};function _0x2bc053(_0x557858,_0x235ca7,_0x1b6148,_0x331e25){return _0x1b09d0(_0x1b6148,_0x235ca7-0x16,_0x235ca7- -_0x71950d._0x40f8dc,_0x331e25-0x8f);}return _0x2bc053(0x328,0x326,0x308,0x2dc)+_0x6171f8;}function createDefaultMessage(_0x5981e8){if(_0x5981e8===void 0x0)return void 0x0;return normalizeUserInput(_0x5981e8);}function normalizeUserInput(_0x3f4fa4){const _0xfe80b0={_0x38673f:0x1b,_0x118f65:0x11,_0x40bee5:0xc2},_0x4463ba={_0x3bf30e:0x66,_0x3166ce:0x3cb,_0x524797:0x24},_0x5a0748={_0x3e4ccd:0x29e,_0x21418e:0xf6};function _0x28e946(_0x3535b7,_0x437f49,_0x46fcc1,_0x34cbf9){return _0x1b09d0(_0x34cbf9,_0x437f49-0x1c4,_0x46fcc1- -_0x5a0748._0x3e4ccd,_0x34cbf9-_0x5a0748._0x21418e);}if(typeof _0x3f4fa4===_0x23e6f8(0xa,0xd,_0xfe80b0._0x38673f,_0xfe80b0._0x118f65))return{'role':'user','content':[{'type':_0x28e946(0xe9,_0xfe80b0._0x40bee5,0xaf,0x102),'text':_0x3f4fa4}]};function _0x23e6f8(_0x3c564f,_0x53f938,_0x1aa8e3,_0x3e05d9){return _0x1b09d0(_0x53f938,_0x53f938-_0x4463ba._0x3bf30e,_0x3c564f- -_0x4463ba._0x3166ce,_0x3e05d9-_0x4463ba._0x524797);}return normalizeMessage(_0x3f4fa4);}function resolveChatModel(_0x401750){const _0x429f2e={_0x181612:0x462,_0x5ea4fa:0x48c,_0x522b7f:0x475,_0x3772f3:0x452,_0x51462a:0x411,_0x2029a0:0x485,_0x8aa23f:0x4c5},_0x5e5c37={_0x579a74:0x2e9};if(!_0x401750[_0xd65b3e(_0x429f2e._0x181612,_0x429f2e._0x5ea4fa,_0x429f2e._0x522b7f,0x477)])throw new Error(_0xd65b3e(0x48e,_0x429f2e._0x3772f3,_0x429f2e._0x51462a,_0x429f2e._0x2029a0));function _0xd65b3e(_0x186e16,_0x27b1a1,_0x5121d2,_0x81242e){return _0x253ce3(_0x186e16-0xc7,_0x5121d2,_0x5121d2-0x113,_0x27b1a1-_0x5e5c37._0x579a74);}function _0x5d6fe6(_0x5d9bfd,_0x2234e4,_0x4e20f5,_0x5c2f50){return _0x1b09d0(_0x2234e4,_0x2234e4-0x1d1,_0x5c2f50- -0x630,_0x5c2f50-0x4);}return _0x401750[_0xd65b3e(_0x429f2e._0x8aa23f,0x48c,0x4b1,0x46b)];}function createRegistry(_0x48921d){const _0x1d4d8c={_0x5109d4:0xb1,_0xd7e6f8:0x79,_0x2ff385:0x1dd},_0x47bc2e={_0xed9878:0xc1},_0x3850b0={_0x4aa6ed:0x141};if(_0x48921d['registry'])return _0x48921d['registry'];const _0x332d70=createExtensionRegistry(),_0x24f97c=_0x48921d[_0x44dd36(-_0x1d4d8c._0x5109d4,-0x85,-0xc9,-_0x1d4d8c._0xd7e6f8)]??[];function _0x44dd36(_0x12f10a,_0x1f26e7,_0x10f4ee,_0x5d4e04){return _0x1b09d0(_0x12f10a,_0x1f26e7-_0x3850b0._0x4aa6ed,_0x1f26e7- -0x423,_0x5d4e04-0x184);}function _0x29c198(_0x4eed56,_0x210215,_0xfcc04b,_0x1b6ba9){return _0x253ce3(_0x4eed56-0x32,_0x210215,_0xfcc04b-0x196,_0xfcc04b-_0x47bc2e._0xed9878);}for(const _0xeb53f0 of _0x24f97c){_0x332d70[_0x29c198(0x24b,_0x1d4d8c._0x2ff385,0x214,0x1f9)](_0xeb53f0);}return _0x332d70;}var Agent=class{[_0x1b09d0(0x39d,0x39a,0x3f7,0x444)];[_0x253ce3(0x1b3,0x1f4,0x15c,0x191)];[_0x1b09d0(0x3b8,0x426,0x3e0,0x421)];[_0x253ce3(0x222,0x247,0x247,0x1eb)];[_0x1b09d0(0x3e8,0x363,0x3c0,0x3a1)];[_0x253ce3(0x203,0x1b1,0x1e8,0x1b1)];[_0x253ce3(0x15b,0x166,0x16f,0x1ae)];constructor(_0x365afb={}){const _0x125616={_0x1197e2:0x463,_0x7a033:0x488,_0x464222:0x45f,_0x5dde2a:0x442,_0x2c094c:0x44a,_0x114285:0x488,_0x24f5e4:0x43f,_0x8f4330:0x44b,_0x213672:0x414,_0x332596:0x1e7,_0x4daa79:0x13f,_0x111838:0x4a1,_0x3380d0:0x488,_0x20d997:0x47b,_0x302106:0x4d5,_0x5d321b:0x156,_0x53a792:0x183,_0x58e4e0:0x121,_0x3ca66e:0x4ae,_0x393f4e:0x469,_0x561b4a:0x448,_0x5c6a26:0x404,_0x258ebd:0x413,_0x2a4bac:0x172,_0x49b495:0x1bf,_0x297d30:0x40b,_0x8a7156:0x47a,_0x396d4d:0x444,_0x3fe268:0x194,_0x21cfb6:0x43a,_0x122702:0x407,_0x11fa8f:0x3f4,_0x4cfec7:0x4d7,_0x2866fe:0x4b8,_0x33baa8:0x48c,_0x37927e:0x460,_0x33e5cb:0x3f8,_0x122296:0x143},_0x532895={_0x3e9600:0x1f7,_0x239e8d:0x2c8},_0x39c429={_0x3a9939:0x1e6},_0x1605ef={_0x4f1c34:0x109,_0x485049:0xb0,_0x24ffcc:0x2e};this[_0x288692(_0x125616._0x1197e2,0x4b0,_0x125616._0x7a033,_0x125616._0x464222)]=_0x365afb[_0x288692(_0x125616._0x5dde2a,_0x125616._0x2c094c,_0x125616._0x114285,0x439)]??createSessionId();function _0x5859c9(_0x1c0348,_0x58c8a1,_0x5708a3,_0x564f97){return _0x253ce3(_0x1c0348-_0x1605ef._0x4f1c34,_0x1c0348,_0x5708a3-_0x1605ef._0x485049,_0x5708a3- -_0x1605ef._0x24ffcc);}this[_0x288692(_0x125616._0x24f5e4,0x47a,_0x125616._0x8f4330,_0x125616._0x213672)]=0x0,this[_0x5859c9(0x24e,0x197,_0x125616._0x332596,0x240)]=_0x365afb[_0x5859c9(0x152,0x123,_0x125616._0x4daa79,0x131)]??'';function _0x288692(_0x4fb7d3,_0x45081e,_0x549940,_0x102e3d){return _0x253ce3(_0x4fb7d3-_0x39c429._0x3a9939,_0x102e3d,_0x549940-0x80,_0x549940-0x29d);}this[_0x288692(_0x125616._0x111838,0x429,0x47b,_0x125616._0x3380d0)]=(_0x365afb[_0x288692(0x481,0x4a6,_0x125616._0x20d997,_0x125616._0x302106)]??[])['map'](normalizeMessage),this[_0x5859c9(_0x125616._0x5d321b,0x135,_0x125616._0x53a792,_0x125616._0x58e4e0)]=createDefaultMessage(_0x365afb[_0x288692(0x469,0x485,_0x125616._0x3ca66e,_0x125616._0x393f4e)]),this['metrics']=createAgentMetrics({'getContextWindowLimit':_0x365afb[_0x288692(_0x125616._0x561b4a,_0x125616._0x5c6a26,_0x125616._0x258ebd,0x3fa)]});const _0x3876d1=_0x365afb[_0x5859c9(0x1cd,0x1c8,_0x125616._0x2a4bac,_0x125616._0x49b495)],_0x2a45cf=async(_0x29ed07,_0x1dc3b4)=>{const _0x435083={_0x21ff72:0x1c1,_0x3b6b3d:0x400,_0x40edd0:0x9a};function _0x2e8506(_0x38d8b7,_0x4090e6,_0x21c20f,_0x2c30d9){return _0x5859c9(_0x38d8b7,_0x4090e6-_0x435083._0x21ff72,_0x4090e6- -_0x435083._0x3b6b3d,_0x2c30d9-_0x435083._0x40edd0);}function _0x3bc75e(_0x5dd83c,_0x57b5a8,_0x53a48c,_0x3758e1){return _0x288692(_0x5dd83c-0x1b2,_0x57b5a8-0xf3,_0x57b5a8- -0xe3,_0x53a48c);}this[_0x2e8506(-0x225,-0x230,-0x22f,-_0x532895._0x3e9600)][_0x2e8506(-0x304,-_0x532895._0x239e8d,-0x2c9,-0x299)](_0x29ed07),await _0x3876d1?.(_0x29ed07,_0x1dc3b4);},_0x3d3041=createInternalToolRuntime(_0x365afb[_0x288692(_0x125616._0x297d30,_0x125616._0x8a7156,_0x125616._0x396d4d,0x45a)]??[],{'onEvent':_0x2a45cf,'onToolCall':_0x365afb[_0x5859c9(0x218,0x1a6,0x1ee,_0x125616._0x3fe268)]});this['deps']={'registry':createRegistry(_0x365afb),'chatModel':resolveChatModel(_0x365afb),'toolRuntime':_0x3d3041,'askUser':_0x365afb[_0x288692(_0x125616._0x21cfb6,_0x125616._0x122702,0x40c,_0x125616._0x11fa8f)],'setTopic':_0x365afb[_0x288692(_0x125616._0x4cfec7,_0x125616._0x2866fe,_0x125616._0x33baa8,0x457)],'onEvent':_0x2a45cf,'sessionDir':_0x365afb[_0x288692(0x414,_0x125616._0x37927e,_0x125616._0x33e5cb,0x3f7)],'outputFormat':_0x365afb[_0x5859c9(_0x125616._0x122296,0x143,0x1a8,0x1cc)]};}get[_0x1b09d0(0x2ec,0x34b,0x34f,0x344)](){const _0x489cef={_0x3701f6:0x224},_0x151150={_0x386b15:0x1aa,_0x1ec309:0x1d3};function _0x16da7c(_0x3d2753,_0x12249d,_0x15d02f,_0x5e2384){return _0x1b09d0(_0x12249d,_0x12249d-_0x151150._0x386b15,_0x15d02f- -_0x151150._0x1ec309,_0x5e2384-0xe0);}return this[_0x16da7c(0x236,0x219,_0x489cef._0x3701f6,0x1eb)];}[_0x1b09d0(0x40e,0x386,0x3bd,0x3eb)](_0x63f990=[]){const _0x589a74={_0xf3e8ab:0x2f2,_0x51e429:0x318,_0x156868:0x32d,_0x210f32:0x36e},_0x46acfd={_0x24efd0:0x14c,_0x5e6049:0x39},_0x1e73d4={_0x32f9b5:0xed,_0x3c58f3:0x71};function _0x5a5ae2(_0xc47462,_0x3ab99c,_0x21cbf6,_0x20011d){return _0x1b09d0(_0xc47462,_0x3ab99c-_0x1e73d4._0x32f9b5,_0x3ab99c- -_0x1e73d4._0x3c58f3,_0x20011d-0x40);}function _0x27d9e8(_0x127ab8,_0x38d030,_0x5af3a0,_0xf36f2a){return _0x1b09d0(_0x127ab8,_0x38d030-_0x46acfd._0x24efd0,_0xf36f2a- -_0x46acfd._0x5e6049,_0xf36f2a-0x1ce);}this['deps'][_0x27d9e8(0x364,_0x589a74._0xf3e8ab,_0x589a74._0x51e429,_0x589a74._0x156868)][_0x27d9e8(_0x589a74._0x210f32,0x3ad,0x321,0x384)](_0x63f990);}[_0x253ce3(0x113,0x19a,0x190,0x16e)](){const _0x4e58b6={_0x4e0167:0x439,_0x22df08:0x472,_0x5a0c95:0x92,_0x47a31d:0xd5,_0x116da5:0x6f,_0x1bce89:0x99},_0x5ba0f0={_0x4b3dd6:0x49},_0x345fc9={_0x16b1ae:0x1c6,_0x892310:0x2a8};function _0x274efc(_0x2ce6f1,_0x1e4c5f,_0x135f3a,_0x10dc24){return _0x253ce3(_0x2ce6f1-0xff,_0x10dc24,_0x135f3a-_0x345fc9._0x16b1ae,_0x1e4c5f-_0x345fc9._0x892310);}function _0x2608da(_0x231f2e,_0x12ea73,_0x1d3c1a,_0x35b42a){return _0x253ce3(_0x231f2e-0x13,_0x1d3c1a,_0x1d3c1a-_0x5ba0f0._0x4b3dd6,_0x231f2e- -0x216);}return this[_0x274efc(0x486,_0x4e58b6._0x4e0167,_0x4e58b6._0x22df08,0x454)][_0x2608da(-_0x4e58b6._0x5a0c95,-0x89,-0x6a,-_0x4e58b6._0x47a31d)][_0x2608da(-0x5c,-0xe,-_0x4e58b6._0x116da5,-_0x4e58b6._0x1bce89)]();}['setSystemPrompt'](_0x208e0f,_0x4345ba={}){const _0xae8253={_0x170eae:0x1da,_0x5a6df3:0x185,_0x2483b8:0x20a,_0x3500fa:0x26f,_0x4397a6:0x23b},_0xeeaff2={_0x558cb8:0x22,_0x35db81:0x57c,_0x192960:0x11},_0x388724={_0x409f59:0x3c2};this[_0x3071db(-_0xae8253._0x170eae,-0x1d6,-0x19b,-_0xae8253._0x5a6df3)]=_0x208e0f;function _0x5ca135(_0x2ed69e,_0x420c55,_0x2866d3,_0x3570a1){return _0x1b09d0(_0x2866d3,_0x420c55-0x16b,_0x420c55- -_0x388724._0x409f59,_0x3570a1-0x39);}function _0x3071db(_0x5d369d,_0x21a255,_0x101f40,_0x4acccb){return _0x1b09d0(_0x5d369d,_0x21a255-_0xeeaff2._0x558cb8,_0x4acccb- -_0xeeaff2._0x35db81,_0x4acccb-_0xeeaff2._0x192960);}_0x4345ba[_0x3071db(-_0xae8253._0x2483b8,-_0xae8253._0x3500fa,-_0xae8253._0x4397a6,-0x222)]===!![]&&(this['messages']=[],this['turnIndex']=0x0);}[_0x1b09d0(0x2f3,0x38e,0x352,0x35d)](_0xaa62b8){this['sessionId']=_0xaa62b8;}[_0x1b09d0(0x41e,0x44d,0x3e6,0x41c)](_0x362293){const _0x3b5f6b={_0x92d75a:0x49c},_0x583649={_0x2aef9e:0xe9,_0x3a80ad:0x2e4},_0x523813={_0x58f0a2:0x1a5};function _0xb4af3a(_0xeb8d5f,_0x420625,_0x39a98c,_0x190b0d){return _0x253ce3(_0xeb8d5f-_0x523813._0x58f0a2,_0x420625,_0x39a98c-0x114,_0xeb8d5f-0x2f9);}function _0xf49239(_0x1ea117,_0x190f79,_0x4f1b99,_0x2c2834){return _0x253ce3(_0x1ea117-_0x583649._0x2aef9e,_0x2c2834,_0x4f1b99-0xe4,_0x1ea117- -_0x583649._0x3a80ad);}this[_0xf49239(-0x153,-0x140,-0x124,-0x173)][_0xb4af3a(_0x3b5f6b._0x92d75a,0x4c3,0x4e0,0x4e2)]=_0x362293;}async[_0x1b09d0(0x3c3,0x35c,0x38a,0x3dd)](_0x4405c1=this[_0x1b09d0(0x380,0x3d4,0x393,0x351)],_0x59970b={}){const _0x5ec4a4={_0x927287:0x1e2,_0x1d2d32:0x1cb,_0x54b3fb:0x295,_0x18a0ff:0x33c,_0x592b33:0x2f4,_0x17b1f3:0x35f,_0x328b30:0x236,_0x44c371:0x225,_0x14b8ed:0x22a,_0x2b2063:0x26e,_0x19d3b8:0x2a3,_0x75ba5f:0x25a,_0x1a4c67:0x31c,_0x4d5a58:0x34b,_0x593f50:0x2f8,_0x26497e:0x349,_0x5102b8:0x29b,_0x32b369:0x2a9,_0x4ecf71:0x25c,_0x40241b:0x2e9,_0x2001c9:0x22e},_0x3dbfd2={_0x446ce1:0xbb},_0x1f4c1={_0x27aa3c:0x153,_0xff6d91:0x165};if(!_0x4405c1)throw new Error(_0x3e1e21(0x182,_0x5ec4a4._0x927287,0x1e5,_0x5ec4a4._0x1d2d32));this['turnIndex']+=0x1;function _0x3e1e21(_0x3e136c,_0x4d8b43,_0x283adb,_0x5c0f64){return _0x253ce3(_0x3e136c-_0x1f4c1._0x27aa3c,_0x3e136c,_0x283adb-_0x1f4c1._0xff6d91,_0x5c0f64-0x7c);}const _0x54b387=_0x59970b[_0x301d0b(_0x5ec4a4._0x54b3fb,0x2e9,0x337,_0x5ec4a4._0x18a0ff)];function _0x301d0b(_0x59e1f3,_0x18f87e,_0x1a5737,_0x571d79){return _0x253ce3(_0x59e1f3-_0x3dbfd2._0x446ce1,_0x1a5737,_0x1a5737-0x5f,_0x18f87e-0x11a);}try{const _0xc3ba22=await runTurn({'sessionId':this[_0x301d0b(_0x5ec4a4._0x592b33,0x305,0x2ba,_0x5ec4a4._0x17b1f3)],'turnId':createTurnId(this[_0x3e1e21(_0x5ec4a4._0x328b30,_0x5ec4a4._0x44c371,0x21b,_0x5ec4a4._0x14b8ed)]),'streaming':_0x59970b['streaming'],'signal':_0x59970b[_0x301d0b(0x2c1,0x299,0x2ff,_0x5ec4a4._0x2b2063)],'system':this['systemPrompt'],'messages':this['messages'],'message':normalizeUserInput(_0x4405c1),..._0x54b387?{'drainSteering':async()=>(await _0x54b387())[_0x3e1e21(0x219,0x1de,0x1a5,0x20b)](normalizeUserInput)}:{}},this['deps']);return this[_0x3e1e21(_0x5ec4a4._0x19d3b8,0x20b,0x229,_0x5ec4a4._0x75ba5f)]=_0xc3ba22[_0x301d0b(0x379,_0x5ec4a4._0x1a4c67,_0x5ec4a4._0x4d5a58,0x380)]['messages']['map'](normalizeMessage),_0xc3ba22;}catch(_0x37f340){if(_0x37f340 instanceof TurnFailedError){this[_0x301d0b(0x2f3,_0x5ec4a4._0x593f50,0x2df,_0x5ec4a4._0x26497e)]=synthesizeMissingToolResults(_0x37f340['state']['messages'][_0x301d0b(_0x5ec4a4._0x5102b8,_0x5ec4a4._0x32b369,_0x5ec4a4._0x4ecf71,_0x5ec4a4._0x40241b)](normalizeMessage));throw _0x37f340[_0x301d0b(_0x5ec4a4._0x2001c9,0x284,_0x5ec4a4._0x5102b8,0x2e7)];}throw _0x37f340;}}};export{normalizeToolOutputValue,createToolOutput,ToolExecutionError,defineTool,resolveToolPermissionClass,ToolRegistry,validateToolInput,deriveFinalToolOutput,createInternalToolRuntime,createExtensionRegistry,createAgentMetrics,runTurn,Agent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function _0x85db(_0x385141,_0x5543f1){_0x385141=_0x385141-0xc6;const _0xfe8573=_0xfe85();let _0x85db4b=_0xfe8573[_0x385141];if(_0x85db['updUTX']===undefined){var _0x47a991=function(_0x2436f8){const _0x428068='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5e0213='',_0x2c6473='';for(let _0x2bed3a=0x0,_0x247186,_0x3ae15a,_0x3fad67=0x0;_0x3ae15a=_0x2436f8['charAt'](_0x3fad67++);~_0x3ae15a&&(_0x247186=_0x2bed3a%0x4?_0x247186*0x40+_0x3ae15a:_0x3ae15a,_0x2bed3a++%0x4)?_0x5e0213+=String['fromCharCode'](0xff&_0x247186>>(-0x2*_0x2bed3a&0x6)):0x0){_0x3ae15a=_0x428068['indexOf'](_0x3ae15a);}for(let _0x212271=0x0,_0x5b51ad=_0x5e0213['length'];_0x212271<_0x5b51ad;_0x212271++){_0x2c6473+='%'+('00'+_0x5e0213['charCodeAt'](_0x212271)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2c6473);};_0x85db['AnYSBq']=_0x47a991,_0x85db['gBAhBs']={},_0x85db['updUTX']=!![];}const _0x4952f2=_0xfe8573[0x0],_0x4575c4=_0x385141+_0x4952f2,_0x1784f5=_0x85db['gBAhBs'][_0x4575c4];return!_0x1784f5?(_0x85db4b=_0x85db['AnYSBq'](_0x85db4b),_0x85db['gBAhBs'][_0x4575c4]=_0x85db4b):_0x85db4b=_0x1784f5,_0x85db4b;}(function(_0x12bc16,_0x176d83){const _0x541b2a={_0x2b4b49:0x14a,_0x3faadf:0x162,_0x5a8f73:0x156,_0x1e364f:0x179,_0x149dbe:0x163,_0x18769a:0x16e,_0x423a5b:0x48,_0x2c925a:0x48,_0x2dd7a0:0x193,_0x9a97ec:0x16b,_0x400792:0x160,_0x37fc1f:0x15f,_0x985b90:0x145,_0x456b81:0x181,_0x1d108f:0x180,_0x3a6393:0x18c,_0x2e3e60:0x34,_0x3bc41a:0x178,_0x17e659:0x154,_0x1462c9:0x1a0,_0x18b134:0x190,_0x14b32a:0x51,_0x16875e:0x50,_0x41a769:0x49,_0x23aff1:0x2e,_0x2f1100:0x4e},_0x3b5123={_0x54def6:0x133},_0x2cf687={_0x56982c:0x8a};function _0x1b328c(_0x37b9ec,_0x531c61,_0x49a450,_0x36be49){return _0x85db(_0x531c61-_0x2cf687._0x56982c,_0x37b9ec);}function _0x452b17(_0x412638,_0x33229f,_0x4842e9,_0x43fb5b){return _0x85db(_0x43fb5b- -_0x3b5123._0x54def6,_0x4842e9);}const _0x4f91d5=_0x12bc16();while(!![]){try{const _0x292b74=parseInt(_0x1b328c(_0x541b2a._0x2b4b49,_0x541b2a._0x3faadf,_0x541b2a._0x5a8f73,_0x541b2a._0x1e364f))/0x1+parseInt(_0x1b328c(0x154,0x150,_0x541b2a._0x149dbe,_0x541b2a._0x18769a))/0x2*(-parseInt(_0x452b17(-0x46,-_0x541b2a._0x423a5b,-_0x541b2a._0x2c925a,-0x43))/0x3)+parseInt(_0x1b328c(_0x541b2a._0x2dd7a0,0x175,_0x541b2a._0x9a97ec,0x171))/0x4*(parseInt(_0x1b328c(0x161,_0x541b2a._0x400792,_0x541b2a._0x37fc1f,_0x541b2a._0x985b90))/0x5)+parseInt(_0x1b328c(_0x541b2a._0x456b81,_0x541b2a._0x1d108f,_0x541b2a._0x3a6393,0x17c))/0x6+-parseInt(_0x452b17(-_0x541b2a._0x2e3e60,-0x32,-0x5f,-0x44))/0x7*(-parseInt(_0x1b328c(_0x541b2a._0x3bc41a,0x16f,_0x541b2a._0x3bc41a,_0x541b2a._0x17e659))/0x8)+parseInt(_0x1b328c(_0x541b2a._0x1462c9,0x18c,0x193,_0x541b2a._0x18b134))/0x9*(-parseInt(_0x452b17(-_0x541b2a._0x14b32a,-_0x541b2a._0x16875e,-0x55,-0x58))/0xa)+-parseInt(_0x452b17(-_0x541b2a._0x41a769,-_0x541b2a._0x23aff1,-_0x541b2a._0x2f1100,-0x3c))/0xb;if(_0x292b74===_0x176d83)break;else _0x4f91d5['push'](_0x4f91d5['shift']());}catch(_0x2dbbc9){_0x4f91d5['push'](_0x4f91d5['shift']());}}}(_0xfe85,0x2b81a));import{resolveOpenAiReasoningConfig}from'./chunk-IUZALP6K.js';import{isProviderStateCompatible,normalizeContent}from'./chunk-YNOIG4FD.js';function systemToInstructions(_0x5e0213){const _0x18129d={_0xbafb8a:0x248,_0x2e4e60:0x23e,_0xdd73f4:0x24a},_0x1c3f91={_0x489d76:0x212},_0x3ab641={_0x3e929e:0x32c};function _0x595823(_0x3f82a0,_0x263f41,_0x3d7a5f,_0x15ff4b){return _0x85db(_0x15ff4b- -_0x3ab641._0x3e929e,_0x263f41);}function _0x53698b(_0x30db31,_0x535ea0,_0x2fb052,_0x2e352f){return _0x85db(_0x2fb052- -_0x1c3f91._0x489d76,_0x2e352f);}return normalizeContent(_0x5e0213)['filter'](_0x2c6473=>_0x2c6473['type']===_0x53698b(-0x132,-0x12c,-0x113,-0xf9))['map'](_0x2bed3a=>_0x2bed3a['text'])[_0x595823(-_0x18129d._0xbafb8a,-_0x18129d._0x2e4e60,-0x264,-_0x18129d._0xdd73f4)]('\x0a\x0a');}function pushUserContentMessage(_0x247186,_0x3ae15a,_0x3fad67){const _0x10f220={_0x31d221:0x2ba,_0xb37269:0x2ae,_0x131b84:0x2b5,_0x4bf27e:0x2c0},_0x1fa74f={_0x290f57:0x1f4};function _0x4025bf(_0x329e24,_0x71e4c8,_0x22b71f,_0x77b479){return _0x85db(_0x77b479-0x1db,_0x71e4c8);}if(_0x3fad67[_0x1eb97d(0x2bc,0x2b6,_0x10f220._0x31d221,_0x10f220._0xb37269)]===0x0)return;function _0x1eb97d(_0x24cdd0,_0x3c4304,_0x3af577,_0xf0c017){return _0x85db(_0x24cdd0-_0x1fa74f._0x290f57,_0xf0c017);}_0x247186['push']({'type':_0x1eb97d(0x2cd,0x2c4,_0x10f220._0x131b84,_0x10f220._0x4bf27e),'role':_0x3ae15a,'content':_0x3fad67});}function hasSerializableToolUse(_0x212271){const _0x435f99={_0xd79a7a:0x162,_0x3d73ab:0x175,_0x25ddc2:0x15f,_0x5af454:0x169,_0x4ba623:0x22e,_0x5d64d3:0x221,_0x3af359:0x19b},_0x2176ab={_0x289d38:0x278};function _0xeb68fe(_0x4a701a,_0x1b4e60,_0x153c3f,_0x40b166){return _0x85db(_0x1b4e60- -_0x2176ab._0x289d38,_0x4a701a);}function _0x10f7fe(_0x230772,_0x1a8aeb,_0x18e827,_0x4d7963){return _0x85db(_0x18e827-0x114,_0x4d7963);}return _0x212271['id'][_0xeb68fe(-_0x435f99._0xd79a7a,-_0x435f99._0x3d73ab,-_0x435f99._0x25ddc2,-_0x435f99._0x5af454)]()['length']>0x0&&_0x212271['name'][_0x10f7fe(_0x435f99._0x4ba623,0x1f7,0x217,_0x435f99._0x5d64d3)]()[_0xeb68fe(-_0x435f99._0x3af359,-0x1b0,-0x1c8,-0x1c0)]>0x0;}function hasSerializableToolResult(_0x5b51ad){const _0x1641f7={_0x478a5c:0x389,_0x49026a:0x362,_0x167b9c:0x384};function _0x1f8789(_0x198e25,_0x24aa2a,_0x4ac48f,_0x17d323){return _0x85db(_0x24aa2a-0x2a7,_0x198e25);}function _0x549310(_0x50afd2,_0x26cae0,_0x1c8d49,_0x2c3400){return _0x85db(_0x1c8d49-0xc4,_0x2c3400);}return _0x5b51ad[_0x1f8789(0x364,0x378,0x36a,_0x1641f7._0x478a5c)]['trim']()[_0x1f8789(_0x1641f7._0x49026a,0x36f,0x380,_0x1641f7._0x167b9c)]>0x0;}function isResponseInputObject(_0x1055a){const _0x294422={_0x15a516:0x2c7,_0x3a9ee7:0x2ee,_0x3855b8:0x2e7},_0x1ae510={_0x47ed24:0x213};if(typeof _0x1055a!=='object'||_0x1055a===null||Array['isArray'](_0x1055a))return![];function _0x5299(_0x131063,_0x447491,_0x1de340,_0x8857a4){return _0x85db(_0x8857a4-_0x1ae510._0x47ed24,_0x131063);}const _0x269dfc=_0x1055a;return typeof _0x269dfc['type']===_0x5299(_0x294422._0x15a516,0x2fb,_0x294422._0x3a9ee7,_0x294422._0x3855b8);}function isImageToolResultBlock(_0xbed510){const _0x43e750={_0x4af924:0x3bf,_0x223470:0x3a1,_0xf80cc4:0x333,_0x25e305:0x380,_0xf60400:0x3a9,_0x29ef4f:0x3c9,_0x562c8e:0x38e,_0x435356:0x38f,_0x41664b:0x370,_0x309d8b:0x30a,_0x317133:0x2fc,_0x55b522:0x2e1,_0xcf2732:0x3ad,_0x532662:0x387,_0x33997d:0x39b,_0x20d5c5:0x2f9,_0xe81028:0x2f7,_0x519d12:0x2e9,_0x38bce7:0x319,_0x247efe:0x334},_0x287c57={_0x538263:0x2c1};if(typeof _0xbed510!==_0x442b4f(0x3ce,0x3bb,_0x43e750._0x4af924,_0x43e750._0x223470)||_0xbed510===null||Array['isArray'](_0xbed510))return![];const _0x242251=_0xbed510;function _0x442b4f(_0x2e20e8,_0x5ee828,_0x4381e2,_0x3de0dd){return _0x85db(_0x4381e2-_0x287c57._0x538263,_0x3de0dd);}function _0x25a17c(_0x597c32,_0x108d09,_0x2489fd,_0x54d8ae){return _0x85db(_0x108d09- -0x3e8,_0x54d8ae);}return _0x242251[_0x25a17c(-_0x43e750._0xf80cc4,-0x31a,-0x321,-0x30a)]===_0x442b4f(_0x43e750._0x25e305,0x38b,0x38d,_0x43e750._0xf60400)&&_0x242251[_0x442b4f(0x3b3,0x3a2,0x3c1,_0x43e750._0x29ef4f)]?.[_0x442b4f(_0x43e750._0x562c8e,0x387,_0x43e750._0x435356,_0x43e750._0x41664b)]===_0x25a17c(-_0x43e750._0x309d8b,-_0x43e750._0x317133,-_0x43e750._0x55b522,-0x313)&&typeof _0x242251[_0x442b4f(0x3c7,0x3ca,0x3c1,_0x43e750._0xcf2732)]['media_type']===_0x442b4f(0x3ab,_0x43e750._0x532662,0x395,_0x43e750._0x33997d)&&typeof _0x242251['source'][_0x25a17c(-_0x43e750._0x20d5c5,-_0x43e750._0xe81028,-0x2f4,-_0x43e750._0x519d12)]===_0x25a17c(-_0x43e750._0x38bce7,-0x314,-_0x43e750._0x247efe,-0x332);}function getToolResultText(_0x5602f8){const _0xacda5b={_0x4fdf13:0x5a,_0x2f8a45:0x53,_0x35c71e:0x74,_0x4b1dad:0x245,_0x282b23:0x22b,_0xafe5df:0x225,_0x124b3e:0x238,_0x20737b:0x23c,_0x4caa3c:0x66,_0x40abec:0x3f,_0x3b5306:0x2f,_0x49d1c8:0x30,_0x1ac86c:0x20,_0x43f2e9:0x24,_0xf66ec7:0x26b,_0x3cbf10:0x227,_0x591d92:0x218,_0xfb8ac4:0x222},_0x146cec={_0x3322fa:0x31e,_0xe1b301:0x335},_0x47c4c0={_0x120f8e:0x364,_0x7bbca2:0x17e};if(typeof _0x5602f8===_0x3ff1e0(-_0xacda5b._0x4fdf13,-_0xacda5b._0x2f8a45,-0x45,-_0xacda5b._0x35c71e))return _0x5602f8;function _0x3ff1e0(_0x224182,_0x3dbe41,_0x2fbc0a,_0x202285){return _0x85db(_0x224182- -0x12e,_0x2fbc0a);}const _0x1b621b=_0x5602f8[_0x3ae61c(-_0xacda5b._0x4b1dad,-_0xacda5b._0x282b23,-_0xacda5b._0xafe5df,-0x219)](_0x593b7f=>{const _0x22f518={_0x3d8f49:0x15e,_0x95d7fc:0x14b,_0x28fbd5:0xd7};function _0x3fcd49(_0x28d4e8,_0x116998,_0x2155ca,_0x1a82e9){return _0x3ff1e0(_0x1a82e9-_0x47c4c0._0x120f8e,_0x116998-0x2,_0x28d4e8,_0x1a82e9-_0x47c4c0._0x7bbca2);}function _0x1a980d(_0x168b62,_0xee2588,_0x3ba95d,_0x1de0b0){return _0x3ff1e0(_0x3ba95d-_0x22f518._0x3d8f49,_0xee2588-_0x22f518._0x95d7fc,_0x1de0b0,_0x1de0b0-_0x22f518._0x28fbd5);}return typeof _0x593b7f===_0x3fcd49(0x353,0x31d,0x31d,0x334)&&_0x593b7f!==null&&_0x593b7f[_0x3fcd49(0x2eb,0x2e5,0x308,0x304)]===_0x3fcd49(_0x146cec._0x3322fa,0x34d,0x334,_0x146cec._0xe1b301);})[_0x3ae61c(-0x22a,-0x237,-_0xacda5b._0x124b3e,-_0xacda5b._0x20737b)](_0x3dae8d=>_0x3dae8d['text'])[_0x3ff1e0(-0x4c,-_0xacda5b._0x4caa3c,-_0xacda5b._0x40abec,-_0xacda5b._0x3b5306)]('\x0a\x0a')[_0x3ff1e0(-0x2b,-_0xacda5b._0x49d1c8,-_0xacda5b._0x1ac86c,-_0xacda5b._0x43f2e9)]();function _0x3ae61c(_0x28e1e3,_0x2fec30,_0x4d3b2e,_0x53c035){return _0x85db(_0x2fec30- -0x32c,_0x28e1e3);}return _0x1b621b[_0x3ae61c(-_0xacda5b._0xf66ec7,-0x264,-0x267,-0x246)]>0x0?_0x1b621b:_0x3ae61c(-0x217,-_0xacda5b._0x3cbf10,-_0xacda5b._0x591d92,-_0xacda5b._0xfb8ac4);}function getToolResultImages(_0x52f534){const _0x3e7e83={_0x30988d:0x27e,_0x55f7f0:0x255,_0x5e4804:0x26b},_0x14e9b3={_0x3b89d5:0x35e};function _0x1ec0e2(_0x38e1c8,_0x251df7,_0x3452f8,_0x595905){return _0x85db(_0x595905- -_0x14e9b3._0x3b89d5,_0x3452f8);}return Array[_0x1ec0e2(-_0x3e7e83._0x30988d,-0x25f,-_0x3e7e83._0x55f7f0,-_0x3e7e83._0x5e4804)](_0x52f534)?_0x52f534['filter'](isImageToolResultBlock):[];}function resolveReasoningVisibility(_0x4ea22b){const _0x405f35={_0x311eba:0x164,_0x24e09e:0x165},_0x370282={_0x351541:0x232};function _0x29441b(_0x3450b9,_0x420419,_0x3aeb6c,_0x37b888){return _0x85db(_0x3aeb6c- -0x98,_0x420419);}function _0x10c1aa(_0x2d8079,_0x28298c,_0x16b638,_0x169907){return _0x85db(_0x16b638- -_0x370282._0x351541,_0x169907);}return _0x4ea22b[_0x10c1aa(-0x152,-0x14c,-0x169,-_0x405f35._0x311eba)]?.[_0x10c1aa(-0x142,-0x135,-0x154,-_0x405f35._0x24e09e)]??'user-visible';}function createOpenAiResponsesReasoning(_0x402cd2){const _0x2ba1dc={_0x159578:0x106,_0x58a26a:0x139,_0x93b5f5:0x13e,_0x4bc30b:0x13b,_0x56bbba:0x114,_0x1a645f:0x4eb,_0x2c2530:0x4d9,_0x275330:0x4c0,_0x430054:0x4bd,_0x47c8f3:0x4a7,_0x521362:0x4ca,_0x4242f9:0x11f,_0x341772:0x130,_0x562288:0xff,_0x579df9:0x4aa,_0x4fe7a3:0x4ab,_0x451210:0x49b,_0x3ec63d:0x4b0,_0x1d15cb:0x4c8,_0x2cd36a:0x49c,_0x26a566:0x111,_0x52f434:0x10b,_0x1e4860:0x4ce,_0x454ade:0x4c3,_0x24e018:0x4e7,_0x5ce36e:0x4c2,_0x245cc9:0x4cc,_0x32d0b6:0x126,_0x41434a:0x133},_0x4ef698={_0x4fe266:0x1ee},_0x5a7375=resolveOpenAiReasoningConfig(_0x402cd2[_0x4dbf35(-0x125,-_0x2ba1dc._0x159578,-0x113,-_0x2ba1dc._0x58a26a)]);if(!_0x5a7375)return{};const _0x5521a8={};function _0x567322(_0x423471,_0x2b4ca8,_0x344ba1,_0x471801){return _0x85db(_0x423471-0x3e1,_0x2b4ca8);}function _0x4dbf35(_0x1d94a0,_0x2eb613,_0x2683a7,_0x365503){return _0x85db(_0x1d94a0- -_0x4ef698._0x4fe266,_0x2683a7);}const _0x310a57=_0x402cd2[_0x4dbf35(-0x125,-_0x2ba1dc._0x93b5f5,-_0x2ba1dc._0x4bc30b,-_0x2ba1dc._0x56bbba)]?.[_0x567322(0x4dd,_0x2ba1dc._0x1a645f,_0x2ba1dc._0x2c2530,_0x2ba1dc._0x275330)]!==void 0x0,_0x5ce4b6=(!_0x310a57&&_0x567322(0x4b0,_0x2ba1dc._0x430054,_0x2ba1dc._0x47c8f3,_0x2ba1dc._0x521362)in _0x5a7375?_0x5a7375[_0x4dbf35(-_0x2ba1dc._0x4242f9,-_0x2ba1dc._0x341772,-0x11f,-_0x2ba1dc._0x562288)]:void 0x0)??(resolveReasoningVisibility(_0x402cd2)==='user-visible'?'auto':void 0x0);return _0x5a7375[_0x567322(0x4ab,0x49e,_0x2ba1dc._0x579df9,0x4be)]&&(_0x5521a8['effort']=_0x5a7375[_0x567322(_0x2ba1dc._0x4fe7a3,0x496,0x4bd,_0x2ba1dc._0x451210)]),_0x5ce4b6&&(_0x5521a8[_0x567322(_0x2ba1dc._0x3ec63d,_0x2ba1dc._0x1d15cb,0x4c7,_0x2ba1dc._0x2cd36a)]=_0x5ce4b6),{...!_0x310a57&&_0x4dbf35(-0x101,-_0x2ba1dc._0x26a566,-0x121,-_0x2ba1dc._0x52f434)in _0x5a7375&&_0x5a7375[_0x567322(_0x2ba1dc._0x1e4860,_0x2ba1dc._0x454ade,_0x2ba1dc._0x24e018,0x4c2)]===![]?{}:{'include':['reasoning.encrypted_content']},...Object[_0x567322(_0x2ba1dc._0x5ce36e,0x4c6,0x4dc,_0x2ba1dc._0x245cc9)](_0x5521a8)[_0x4dbf35(-_0x2ba1dc._0x32d0b6,-_0x2ba1dc._0x56bbba,-0x136,-_0x2ba1dc._0x41434a)]>0x0?{'reasoning':_0x5521a8}:{}};}function pushAssistantProviderState(_0x2c69fb,_0x43ad33,_0x2e0181){const _0x5ef88c={_0x3119be:0x379,_0x26e0d8:0x379,_0x58cf20:0x35d,_0x47be4f:0x2c6,_0x20e544:0x377,_0x47b289:0x362,_0x53b7be:0x351,_0x137b32:0x342,_0x1ef45c:0x330,_0x3f527c:0x347,_0x3e11ca:0x341,_0xf36c01:0x33f,_0x1e9a48:0x35b,_0x1910eb:0x35e,_0x510a9c:0x32c,_0x186c4a:0x29e,_0x3b76ab:0x2a2,_0x236c7f:0x27e,_0xe8770f:0x26e,_0x392a34:0x26b,_0x36abd2:0x36d,_0x3ac807:0x34e,_0x5254f:0x34f},_0x4db2bb={_0x4c362a:0x1af},_0x70f6e6={_0x270f96:0x27f};function _0x4c7b33(_0x1f60a0,_0xf962ec,_0xe4b632,_0x231616){return _0x85db(_0xe4b632-_0x70f6e6._0x270f96,_0xf962ec);}function _0x106cc8(_0x10a4c5,_0x518320,_0x414a08,_0xd53f67){return _0x85db(_0x518320-_0x4db2bb._0x4c362a,_0xd53f67);}if(_0x43ad33[_0x4c7b33(0x36f,_0x5ef88c._0x3119be,_0x5ef88c._0x26e0d8,_0x5ef88c._0x58cf20)]!==_0x106cc8(0x2a3,0x2b3,0x2bf,_0x5ef88c._0x47be4f))return![];if(!isProviderStateCompatible(_0x43ad33,_0x2e0181))return![];const _0x4828a0=_0x43ad33[_0x4c7b33(_0x5ef88c._0x20e544,_0x5ef88c._0x47b289,0x35e,_0x5ef88c._0x53b7be)]?.['openaiResponsesOutput']??[];if(_0x4828a0[_0x4c7b33(_0x5ef88c._0x137b32,_0x5ef88c._0x1ef45c,_0x5ef88c._0x3f527c,_0x5ef88c._0x3e11ca)]===0x0)return![];for(const _0x2b1dd7 of _0x4828a0){if(isResponseInputObject(_0x2b1dd7)){const _0x290d8f=structuredClone(_0x2b1dd7);delete _0x290d8f[_0x4c7b33(_0x5ef88c._0xf36c01,0x368,_0x5ef88c._0x1e9a48,0x354)],_0x290d8f[_0x106cc8(0x26c,0x27d,0x25f,0x296)]===_0x4c7b33(_0x5ef88c._0x1910eb,_0x5ef88c._0x510a9c,0x348,0x360)&&!Array[_0x106cc8(_0x5ef88c._0x186c4a,_0x5ef88c._0x3b76ab,0x282,0x288)](_0x290d8f[_0x106cc8(0x28b,_0x5ef88c._0x236c7f,_0x5ef88c._0xe8770f,_0x5ef88c._0x392a34)])&&(_0x290d8f[_0x4c7b33(0x331,_0x5ef88c._0x36abd2,_0x5ef88c._0x3ac807,_0x5ef88c._0x5254f)]=[]),_0x2c69fb['push'](_0x290d8f);}}return!![];}function _0xfe85(){const _0x48defe=['Dgv4Da','C291CMnL','zMLSDgvY','nJnLzM1esxq','DhjPBq','yxnZAxn0yw50','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','neHwCKPIsW','B3v0Chv0rM9YBwf0','BgvUz3rO','CMvHC29UAw5N','zwzMB3j0','zNvUy3rPB24','Aw1Hz2u','y29UDgvUDa','DhLWzq','C3vTBwfYEq','C3LZDgvT','Dg9VBf91C2vFAwq','Aw5WDxq','B3v0Chv0x3rLEhq','C3rYAw5N','zNvUy3rPB25Fy2fSBa','otC1nuzzwhvHzq','sw1Hz2uGCMv0DxjUzwqGyNKGvMLLD0zPBguGzM9YihrVB2WGCMvZDwX0ia','mtaYntHhDuT2Afi','BwvZC2fNzq','BMfTzq','mJC1mdKWu0jbyNrZ','C3rHDhvZ','zgf0ytO','DMLZAwjPBgL0Eq','ChjVDMLKzxjtDgf0zq','Dg9VBf9Yzxn1Bhq','A2v5CW','AM9PBG','Bwf4vg9Rzw5Z','Bw9KzwW','nte1otj0sKneCvq','Dg9VBf91C2u','Aw5WDxrFC2nOzw1H','C2nOzw1H','C3rYDwn0DxjLzf9VDxrWDxq','Aw5WDxrFAw1Hz2u','nZa4AxjMr25L','yMfZzty0','Aw5JBhvKzuvUy3j5ChrLzenVBNrLBNq','BwvKAwfFDhLWzq','mtG5zhb3EMDH','mJG0nJy3s21nCNjU','zgf0yq','C3rYAwn0','AxnbCNjHEq','o2jHC2u2ncW','BwfW','mZa1ntm4qw9Yr0Dw','mJiWoty4uvDgBeHf','C3bSAwnL','Aw5WDxrFDgv4Da','CM9Szq','BwvZC2fNzxm','y29KzxG','ChvZAa','B2jQzwn0'];_0xfe85=function(){return _0x48defe;};return _0xfe85();}function toOpenAiResponsesRequest(_0x4c5ecc){const _0xfbed9={_0x355826:0x23e,_0x2b4c57:0x254,_0x318dfb:0x65,_0x414192:0x74,_0x547fa5:0x25f,_0x4bdb07:0x261,_0x2a0e4f:0x25c,_0x59c5c2:0x263,_0x6c8256:0x221,_0x1709e8:0x235,_0x1da47e:0x232,_0x566d94:0x23b,_0x494285:0x25b,_0x491813:0x272,_0x30ebde:0x279,_0xbac580:0x261,_0x25a86e:0x213,_0x50dde0:0x22e,_0x440f9b:0x222,_0x33d560:0x27b,_0x1cb20b:0x32,_0x519fb8:0x70,_0x3efd89:0x43,_0x2e9530:0x38,_0x51dcec:0x5d,_0x1c06b6:0x66,_0x1a6583:0x6c,_0x173b5b:0x241,_0x2effe2:0x256,_0x5b5e66:0x24a,_0x1b8e56:0x42,_0x5c5b4c:0x64,_0x55d321:0x246,_0x5bfe33:0x22e,_0x2b78a4:0x24c,_0x31cb62:0x2c,_0x39f3e3:0x2e,_0x19dc4e:0x29,_0x4c3f0e:0x46,_0xab04ad:0x3c,_0x3a28fd:0x25,_0x3dfb7e:0x37,_0x2f3b5f:0x25,_0x16ebdd:0x245,_0x32cd59:0x26a,_0x4f0fd8:0x3d,_0x1d9762:0x48,_0x41b3f8:0x24e,_0x5dbe6f:0x25f,_0x13e313:0x266,_0x357c0e:0x259,_0x551ddb:0x54,_0x5d27dc:0x24,_0xc25bc7:0x52,_0x142783:0x49,_0x459ca8:0x25b,_0x2f391a:0x262,_0x265395:0x245,_0x31e235:0x245,_0x480430:0x257,_0x269537:0x238,_0x5df695:0x28,_0x1ae362:0x4f,_0xd79d99:0x49,_0x402e39:0x19,_0x18e2ed:0x4e,_0x8f93d:0x67,_0x177f06:0x69,_0x21b34b:0x25d,_0x4b6424:0x241},_0x5da875={_0x5c11a9:0x106,_0x424b2f:0x4b,_0x3e7907:0x67,_0x8bdd9d:0x109,_0x3bd925:0x111},_0x475fda={_0x13b59f:0x9a},_0xcbb2e1={_0x57f507:0x162};function _0x461af2(_0x147169,_0x503d45,_0x1c671e,_0x429c6f){return _0x85db(_0x1c671e-_0xcbb2e1._0x57f507,_0x147169);}function _0x364784(_0xf827f7,_0x379de1,_0x1a44ad,_0x1166f8){return _0x85db(_0xf827f7- -_0x475fda._0x13b59f,_0x1a44ad);}const _0x3aa057=[];for(const _0x42c815 of _0x4c5ecc[_0x461af2(_0xfbed9._0x355826,0x275,0x25d,_0xfbed9._0x2b4c57)]){if(pushAssistantProviderState(_0x3aa057,_0x42c815,_0x4c5ecc))continue;const _0x1d3c79=[];for(const _0x40c261 of normalizeContent(_0x42c815[_0x461af2(0x20f,0x21a,0x22f,0x22b)])){if(_0x40c261['type']===_0x364784(_0xfbed9._0x318dfb,_0xfbed9._0x414192,0x46,0x85)){_0x1d3c79[_0x461af2(0x250,0x27f,_0xfbed9._0x547fa5,0x24f)](_0x42c815[_0x461af2(0x276,_0xfbed9._0x4bdb07,_0xfbed9._0x2a0e4f,_0xfbed9._0x59c5c2)]==='assistant'?{'type':_0x461af2(_0xfbed9._0x6c8256,0x250,_0xfbed9._0x1709e8,_0xfbed9._0x1da47e),'text':_0x40c261['text']}:{'type':_0x461af2(0x253,_0xfbed9._0x566d94,_0xfbed9._0x494285,0x257),'text':_0x40c261[_0x461af2(_0xfbed9._0x491813,_0xfbed9._0x30ebde,_0xfbed9._0xbac580,0x281)]});continue;}if(_0x40c261['type']===_0x461af2(_0xfbed9._0x25a86e,0x21d,_0xfbed9._0x50dde0,_0xfbed9._0x440f9b)){_0x1d3c79[_0x461af2(_0xfbed9._0x33d560,0x258,0x25f,0x24b)]({'type':_0x364784(0x50,_0xfbed9._0x1cb20b,0x57,_0xfbed9._0x519fb8),'image_url':_0x364784(_0xfbed9._0x3efd89,0x5a,_0xfbed9._0x2e9530,_0xfbed9._0x51dcec)+_0x40c261[_0x364784(_0xfbed9._0x1c06b6,0x6d,0x73,_0xfbed9._0x1a6583)][_0x461af2(0x231,0x25b,0x250,_0xfbed9._0x173b5b)]+_0x461af2(0x275,_0xfbed9._0x355826,_0xfbed9._0x2effe2,_0xfbed9._0x5b5e66)+_0x40c261[_0x461af2(0x25d,0x281,0x262,0x280)]['data']});continue;}pushUserContentMessage(_0x3aa057,_0x42c815[_0x364784(0x60,_0xfbed9._0x1b8e56,0x52,_0xfbed9._0x5c5b4c)],_0x1d3c79[_0x461af2(_0xfbed9._0x55d321,0x27a,0x25a,0x24b)](0x0));if(_0x40c261['type']===_0x461af2(0x268,_0xfbed9._0x5bfe33,0x248,_0xfbed9._0x2b78a4)){if(!hasSerializableToolUse(_0x40c261))continue;_0x3aa057['push']({'type':_0x364784(0x3b,0x39,_0xfbed9._0x31cb62,_0xfbed9._0x39f3e3),'call_id':_0x40c261['id'],'name':_0x40c261['name'],'arguments':JSON['stringify'](_0x40c261[_0x364784(0x38,_0xfbed9._0x19dc4e,0x24,0x3f)]??{})});continue;}if(_0x40c261['type']===_0x364784(_0xfbed9._0x4c3f0e,0x44,0x51,_0xfbed9._0xab04ad)){if(!hasSerializableToolResult(_0x40c261))continue;const _0x270c95=getToolResultText(_0x40c261[_0x364784(0x33,0x32,0x33,_0xfbed9._0x3a28fd)]);_0x3aa057['push']({'type':'function_call_output','call_id':_0x40c261[_0x364784(_0xfbed9._0x3dfb7e,0x4a,0x4e,_0xfbed9._0x2f3b5f)],'output':_0x270c95});const _0x4a7698=getToolResultImages(_0x40c261['content']);_0x4a7698['length']>0x0&&_0x3aa057[_0x461af2(0x24d,_0xfbed9._0x16ebdd,0x25f,0x261)]({'type':'message','role':'user','content':[{'type':_0x461af2(0x257,_0xfbed9._0x32cd59,0x25b,0x245),'text':_0x364784(_0xfbed9._0x4f0fd8,0x3e,_0xfbed9._0x1d9762,0x4b)+_0x40c261[_0x461af2(_0xfbed9._0x41b3f8,0x236,0x233,0x246)]+'.'},..._0x4a7698['map'](_0x20ac2c=>({'type':_0x364784(0x50,0x59,0x41,0x3e),'image_url':_0x364784(0x43,0x56,0x3d,0x4e)+_0x20ac2c[_0x364784(0x66,0x67,0x53,0x69)][_0x461af2(0x241,0x264,0x250,0x268)]+_0x364784(0x5a,0x48,0x55,0x71)+_0x20ac2c[_0x461af2(0x27c,0x274,0x262,0x24e)]['data']}))]});}}pushUserContentMessage(_0x3aa057,_0x42c815[_0x461af2(_0xfbed9._0x5dbe6f,_0xfbed9._0x13e313,_0xfbed9._0x2a0e4f,_0xfbed9._0x357c0e)],_0x1d3c79);}return{...createOpenAiResponsesReasoning(_0x4c5ecc),'model':_0x4c5ecc[_0x461af2(0x251,0x229,_0xfbed9._0x55d321,_0xfbed9._0x357c0e)],'instructions':systemToInstructions(_0x4c5ecc[_0x364784(0x36,_0xfbed9._0x551ddb,_0xfbed9._0x5d27dc,_0xfbed9._0xc25bc7)]),'input':_0x3aa057,..._0x4c5ecc[_0x364784(_0xfbed9._0x142783,0x59,0x38,_0xfbed9._0x1c06b6)]!==void 0x0?{'max_output_tokens':_0x4c5ecc[_0x461af2(_0xfbed9._0x459ca8,_0xfbed9._0x2f391a,_0xfbed9._0x265395,_0xfbed9._0x31e235)]}:{},'tools':_0x4c5ecc['tools'][_0x461af2(0x242,0x23a,_0xfbed9._0x480430,_0xfbed9._0x269537)](_0x219130=>{const _0x4f0549={_0xbc35df:0x171};function _0x450aa3(_0x2dfa95,_0x5e8d2f,_0x584643,_0x2a5c38){return _0x364784(_0x2dfa95- -0x8b,_0x5e8d2f-0x45,_0x584643,_0x2a5c38-0x1c);}function _0x565e1a(_0x1db94f,_0x4c696c,_0x847a07,_0x240f95){return _0x461af2(_0x1db94f,_0x4c696c-_0x4f0549._0xbc35df,_0x4c696c- -0x352,_0x240f95-0x161);}return{'type':_0x565e1a(-_0x5da875._0x5c11a9,-0x125,-0x109,-0x11f),'name':_0x219130[_0x450aa3(-_0x5da875._0x424b2f,-0x5d,-0x30,-_0x5da875._0x3e7907)],'description':_0x219130['description'],'parameters':_0x219130[_0x565e1a(-0x129,-_0x5da875._0x8bdd9d,-_0x5da875._0x3bd925,-0x129)]};}),..._0x4c5ecc['outputFormat']?{'text':{'format':{'type':'json_schema','name':_0x4c5ecc[_0x364784(0x2d,_0xfbed9._0x5df695,0x3f,0x16)]['name']??_0x364784(_0xfbed9._0x1ae362,0x3d,_0xfbed9._0x1cb20b,0x30),'schema':_0x4c5ecc[_0x364784(0x2d,0x38,_0xfbed9._0xd79d99,_0xfbed9._0x402e39)][_0x364784(_0xfbed9._0x18e2ed,_0xfbed9._0x8f93d,_0xfbed9._0x177f06,0x54)],'strict':_0x4c5ecc['outputFormat'][_0x461af2(_0xfbed9._0x21b34b,0x248,0x254,_0xfbed9._0x4b6424)]??!![]}}}:{}};}export{toOpenAiResponsesRequest};
|
package/dist/chunk-X7VAACWY.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2cd8bc,_0x4135c1){var _0xf3abf8={_0x1483b5:0x351,_0x1d561d:0x353,_0x1a0df7:0x354,_0xb85e52:0x2e3,_0x8e03ed:0x2ec,_0x4ffe26:0x2df,_0x5bbb35:0x2d6,_0x333f89:0x2e6,_0x7541d7:0x2eb,_0x429b67:0x34b,_0x4edd83:0x353,_0x52d8a3:0x34f,_0x2bc795:0x2e9,_0x1321f3:0x2e6,_0x290ee6:0x2ec,_0xe68486:0x2e4},_0x175ab6={_0x2e5bd6:0x3c5};function _0x2c2acb(_0x1f1f2f,_0x5e816b,_0x1b9c65,_0x31b703){return _0x14e1(_0x31b703- -_0x175ab6._0x2e5bd6,_0x1f1f2f);}var _0x20cfe2=_0x2cd8bc();function _0x900f68(_0x378c25,_0x165b40,_0x4c2a72,_0x40517d){return _0x14e1(_0x4c2a72-0x271,_0x40517d);}while(!![]){try{var _0x4c2ef6=parseInt(_0x900f68(_0xf3abf8._0x1483b5,0x34a,_0xf3abf8._0x1d561d,_0xf3abf8._0x1a0df7))/0x1+parseInt(_0x2c2acb(-_0xf3abf8._0xb85e52,-0x2f0,-0x2f4,-_0xf3abf8._0x8e03ed))/0x2+-parseInt(_0x2c2acb(-0x2e2,-_0xf3abf8._0x4ffe26,-0x2dc,-0x2dc))/0x3+parseInt(_0x2c2acb(-_0xf3abf8._0x5bbb35,-0x2df,-0x2e0,-0x2df))/0x4*(parseInt(_0x2c2acb(-0x2f1,-_0xf3abf8._0x333f89,-0x2e5,-_0xf3abf8._0x7541d7))/0x5)+-parseInt(_0x900f68(_0xf3abf8._0x429b67,0x354,0x34e,_0xf3abf8._0x4edd83))/0x6+parseInt(_0x900f68(_0xf3abf8._0x52d8a3,0x352,0x351,0x353))/0x7*(parseInt(_0x2c2acb(-_0xf3abf8._0x2bc795,-_0xf3abf8._0x1321f3,-0x2e2,-0x2e2))/0x8)+parseInt(_0x2c2acb(-_0xf3abf8._0x290ee6,-_0xf3abf8._0xe68486,-0x2e9,-0x2ed))/0x9;if(_0x4c2ef6===_0x4135c1)break;else _0x20cfe2['push'](_0x20cfe2['shift']());}catch(_0x80033c){_0x20cfe2['push'](_0x20cfe2['shift']());}}}(_0x4e97,0x5e418));var OperationAbortedError=class extends Error{[_0x31535b(0x27a,0x27a,0x273,0x276)]=_0x574c91(-0xf3,-0xf9,-0xfb,-0x102);constructor(_0xbf6762=_0x574c91(-0xfd,-0xfe,-0xfa,-0xf6)){super(_0xbf6762),this['name']='AbortError';}};function toAbortError(_0xb68f7c){var _0x25517b={_0xa1b89d:0x55,_0x182a54:0x57},_0x88b449={_0xaeae08:0x2d8,_0x175903:0x168};if(isAbortError(_0xb68f7c))return _0xb68f7c;if(_0xb68f7c instanceof Error)return new OperationAbortedError(_0xb68f7c['message']);function _0xafbc8b(_0x5ec642,_0x2a8752,_0x219533,_0x2e60a1){return _0x31535b(_0x2e60a1- -_0x88b449._0xaeae08,_0x2a8752-_0x88b449._0x175903,_0x2a8752,_0x2e60a1-0x6);}if(typeof _0xb68f7c==='string'&&_0xb68f7c[_0xafbc8b(-_0x25517b._0xa1b89d,-0x4f,-_0x25517b._0x182a54,-0x58)]>0x0)return new OperationAbortedError(_0xb68f7c);return new OperationAbortedError();}function _0x14e1(_0x5401ce,_0x149f27){_0x5401ce=_0x5401ce-0xd8;var _0x4e971a=_0x4e97();var _0x14e1c0=_0x4e971a[_0x5401ce];if(_0x14e1['jOJwkt']===undefined){var _0x274f76=function(_0x51d16e){var _0x395bdd='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0xbf6762='',_0xb68f7c='';for(var _0x2e310f=0x0,_0x54fbcd,_0x32dc9a,_0x251802=0x0;_0x32dc9a=_0x51d16e['charAt'](_0x251802++);~_0x32dc9a&&(_0x54fbcd=_0x2e310f%0x4?_0x54fbcd*0x40+_0x32dc9a:_0x32dc9a,_0x2e310f++%0x4)?_0xbf6762+=String['fromCharCode'](0xff&_0x54fbcd>>(-0x2*_0x2e310f&0x6)):0x0){_0x32dc9a=_0x395bdd['indexOf'](_0x32dc9a);}for(var _0x362e83=0x0,_0x1e51de=_0xbf6762['length'];_0x362e83<_0x1e51de;_0x362e83++){_0xb68f7c+='%'+('00'+_0xbf6762['charCodeAt'](_0x362e83)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xb68f7c);};_0x14e1['KuqnXZ']=_0x274f76,_0x14e1['lamOBh']={},_0x14e1['jOJwkt']=!![];}var _0x1d9f84=_0x4e971a[0x0],_0x4f4ce4=_0x5401ce+_0x1d9f84,_0x43aa19=_0x14e1['lamOBh'][_0x4f4ce4];return!_0x43aa19?(_0x14e1c0=_0x14e1['KuqnXZ'](_0x14e1c0),_0x14e1['lamOBh'][_0x4f4ce4]=_0x14e1c0):_0x14e1c0=_0x43aa19,_0x14e1c0;}function _0x4e97(){var _0x3d5b0c=['mti2nde2EurZq2fg','BgvUz3rO','BMfTzq','mtC4mJGZn2TxDvjvuG','nty0odm0nNPvy2XYEq','mJy5nti4qwXHEhfq','ntbXBuX2C0m','ywrKrxzLBNrmAxn0zw5LCG','ywjVCNq','nde5ndm3ofrfqML0rG','qujpuLrFrvjs','t3bLCMf0Aw9UigfIB3j0zwq','mti2qK1XAKTH','y29Kzq','nta3mdaYEwDJDxHf','nde3odriDg5Vwe4','CMvHC29U','CMvTB3zLrxzLBNrmAxn0zw5LCG'];_0x4e97=function(){return _0x3d5b0c;};return _0x4e97();}function isAbortError(_0x2e310f){var _0x375812={_0x126eee:0x7e,_0x40e162:0x83,_0x5e619b:0x80,_0x1132ab:0x80,_0x4a96c1:0x78,_0x5b2e6c:0x79,_0x7e636e:0x7e},_0x1dc09d={_0x3838d8:0x9},_0x26fe71={_0x473539:0x69};function _0x40799a(_0x493fcc,_0x32519b,_0x506c98,_0x3b9d94){return _0x31535b(_0x506c98- -_0x26fe71._0x473539,_0x32519b-0x1e3,_0x3b9d94,_0x3b9d94-0x136);}function _0x5efa23(_0x50b1a0,_0x3c58f5,_0xc19b1,_0xc64ea7){return _0x574c91(_0x50b1a0,_0x3c58f5-0x122,_0xc64ea7-0x171,_0xc64ea7-_0x1dc09d._0x3838d8);}return _0x2e310f instanceof OperationAbortedError||_0x2e310f instanceof Error&&(_0x2e310f[_0x5efa23(0x78,_0x375812._0x126eee,_0x375812._0x40e162,_0x375812._0x5e619b)]==='AbortError'||_0x5efa23(0x79,_0x375812._0x1132ab,_0x375812._0x4a96c1,0x79)in _0x2e310f&&_0x2e310f[_0x5efa23(0x82,0x82,0x7a,_0x375812._0x5b2e6c)]===_0x5efa23(_0x375812._0x7e636e,0x75,0x6e,0x76));}function throwIfAborted(_0x54fbcd){var _0x4505c9={_0x23201d:0x19b,_0x3bf110:0x194,_0x11de05:0x192};function _0x1e1342(_0x4e0228,_0x40e810,_0x480551,_0x418b26){return _0x31535b(_0x4e0228- -0xe2,_0x40e810-0x184,_0x418b26,_0x418b26-0x174);}if(!_0x54fbcd?.['aborted'])return;throw toAbortError(_0x54fbcd[_0x1e1342(_0x4505c9._0x23201d,_0x4505c9._0x3bf110,_0x4505c9._0x11de05,_0x4505c9._0x3bf110)]);}function _0x574c91(_0x5aef37,_0xf57428,_0x5b5a02,_0x578320){var _0x2ee2b8={_0x1ffa29:0x1d9};return _0x14e1(_0x5b5a02- -_0x2ee2b8._0x1ffa29,_0x5aef37);}function addAbortListener(_0x32dc9a,_0x251802){var _0x208393={_0x123e70:0xb7,_0x308d6a:0x1da,_0x58872a:0x1d2,_0x4c9808:0x1d1},_0x4a21a0={_0x3e9bb6:0x51,_0x42676c:0x52,_0xc602e6:0x16e,_0x197156:0x173},_0x72d8d2={_0x5b17d4:0x18b,_0x309408:0x1cb,_0x5dfb68:0x6f},_0x5f08bf={_0x4f351d:0x22b},_0x1bf56e={_0x2bad03:0xdc,_0x502f93:0x117},_0x354991={_0x2100b4:0x16d};if(!_0x32dc9a)return()=>{};if(_0x32dc9a['aborted'])return _0x251802(),()=>{};function _0x2ec7ae(_0x4b8887,_0x43b550,_0x3a93c2,_0x34323f){return _0x574c91(_0x3a93c2,_0x43b550-0x1cd,_0x34323f-0x1b5,_0x34323f-_0x354991._0x2100b4);}const _0x362e83=()=>{_0x251802();};function _0xc58b2d(_0x55612e,_0x39f0a3,_0x40c28e,_0x64d460){return _0x574c91(_0x55612e,_0x39f0a3-_0x1bf56e._0x2bad03,_0x39f0a3-0x2cf,_0x64d460-_0x1bf56e._0x502f93);}return _0x32dc9a[_0x2ec7ae(0xb9,_0x208393._0x123e70,0xb3,0xb7)](_0xc58b2d(_0x208393._0x308d6a,_0x208393._0x58872a,0x1d4,_0x208393._0x4c9808),_0x362e83,{'once':!![]}),()=>{function _0x16cbaa(_0x3b832b,_0x537ed7,_0x55a574,_0x3f6d22){return _0x2ec7ae(_0x3b832b-0x37,_0x537ed7-0x38,_0x3b832b,_0x55a574- -_0x5f08bf._0x4f351d);}function _0x572c95(_0x4ca9cd,_0x5920e2,_0x2ae574,_0x332cf0){return _0x2ec7ae(_0x4ca9cd-_0x72d8d2._0x5b17d4,_0x5920e2-_0x72d8d2._0x309408,_0x5920e2,_0x2ae574- -_0x72d8d2._0x5dfb68);}_0x32dc9a[_0x572c95(_0x4a21a0._0x3e9bb6,0x57,_0x4a21a0._0x42676c,0x56)](_0x16cbaa(-0x16a,-_0x4a21a0._0xc602e6,-_0x4a21a0._0x197156,-0x16f),_0x362e83);};}function _0x31535b(_0x5bfbe1,_0x32731b,_0x2ee3ae,_0x50dec6){return _0x14e1(_0x5bfbe1-0x199,_0x2ee3ae);}export{OperationAbortedError,toAbortError,isAbortError,throwIfAborted,addAbortListener};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x54847c,_0x241a8a){const _0x32fa17={_0x77019b:0x187,_0x5d90fa:0x190,_0x56c327:0x181,_0x27bc0b:0x17b,_0x58347f:0x19b,_0x580375:0x2d5,_0x5eae08:0x2d5,_0x507bea:0x2d1,_0x4084e6:0x2a2,_0x5db6fc:0x2d6,_0x335721:0x2fa,_0x3556be:0x2e8,_0x7e7ee2:0x2c0,_0x5e8dd1:0x29c,_0x1d1798:0x2b5,_0x183709:0x2bb,_0x11a7b8:0x2b6,_0x582a63:0x2bc,_0x18badd:0x2d0,_0x4cb404:0x2db},_0x334d99={_0x36e1e1:0x20a},_0x7d3080={_0x1f95df:0xc4},_0x748831=_0x54847c();function _0x3706f0(_0x59f8e9,_0x539793,_0x556c87,_0x14989e){return _0x5d70(_0x14989e-_0x7d3080._0x1f95df,_0x59f8e9);}function _0x14bf86(_0x355d8b,_0x514b1e,_0x529c03,_0x413e4d){return _0x5d70(_0x413e4d-_0x334d99._0x36e1e1,_0x514b1e);}while(!![]){try{const _0x514e08=parseInt(_0x3706f0(_0x32fa17._0x77019b,_0x32fa17._0x5d90fa,_0x32fa17._0x56c327,0x197))/0x1+parseInt(_0x3706f0(_0x32fa17._0x27bc0b,0x1a9,_0x32fa17._0x58347f,0x191))/0x2*(-parseInt(_0x14bf86(_0x32fa17._0x580375,_0x32fa17._0x5eae08,_0x32fa17._0x507bea,0x2c3))/0x3)+-parseInt(_0x14bf86(0x2d4,_0x32fa17._0x4084e6,0x2dd,0x2c0))/0x4+-parseInt(_0x14bf86(0x2d0,_0x32fa17._0x5db6fc,_0x32fa17._0x335721,_0x32fa17._0x3556be))/0x5+parseInt(_0x14bf86(_0x32fa17._0x7e7ee2,0x2ba,_0x32fa17._0x5e8dd1,_0x32fa17._0x1d1798))/0x6+-parseInt(_0x14bf86(_0x32fa17._0x183709,_0x32fa17._0x183709,0x2ce,_0x32fa17._0x11a7b8))/0x7+parseInt(_0x14bf86(0x2ec,_0x32fa17._0x582a63,_0x32fa17._0x18badd,_0x32fa17._0x4cb404))/0x8;if(_0x514e08===_0x241a8a)break;else _0x748831['push'](_0x748831['shift']());}catch(_0x208d98){_0x748831['push'](_0x748831['shift']());}}}(_0x4d4f,0x4cb71));function createTextBlock(_0x21c5a3){const _0x29e24c={_0x3561f5:0x2de,_0x12a8a6:0x2e0,_0x47c52f:0x2e7};function _0x24c105(_0x6b0df5,_0x2de97f,_0x354d86,_0x20d280){return _0x5d70(_0x20d280- -0x3c1,_0x6b0df5);}return{'type':_0x24c105(-_0x29e24c._0x3561f5,-_0x29e24c._0x12a8a6,-0x2eb,-_0x29e24c._0x47c52f),'text':_0x21c5a3};}function normalizeTextBlock(_0x5010fd){const _0x5f4719={_0x12ed30:0x46b,_0x722398:0x456};function _0x52550b(_0x6f5343,_0x6ddc8d,_0x494c7e,_0x4641ec){return _0x5d70(_0x6f5343-0x392,_0x4641ec);}return createTextBlock(_0x5010fd[_0x52550b(0x46c,_0x5f4719._0x12ed30,_0x5f4719._0x722398,0x45c)]??'');}function normalizeContent(_0x9f6202){const _0x4769f9={_0x5eb733:0x4a0,_0x427e69:0x478,_0x1f7351:0x496,_0xb3dfeb:0x398,_0x1d70d8:0x3ae,_0x3106af:0x38b},_0x3c8619={_0x5aad8a:0x129,_0x268552:0x127,_0x3baae0:0x235,_0x53df0f:0x22f},_0x58f384={_0x184159:0x17d},_0x555b63={_0x1795cf:0x3e4};if(typeof _0x9f6202===_0x493e44(_0x4769f9._0x5eb733,0x496,_0x4769f9._0x427e69,_0x4769f9._0x1f7351))return[createTextBlock(_0x9f6202)];function _0x493e44(_0x2976ea,_0x23c7de,_0x39b0aa,_0x341533){return _0x5d70(_0x341533-_0x555b63._0x1795cf,_0x2976ea);}function _0x4291af(_0x2081cf,_0x221257,_0x2867d3,_0x375fdd){return _0x5d70(_0x2081cf-0x2f1,_0x375fdd);}if(!Array[_0x4291af(_0x4769f9._0xb3dfeb,_0x4769f9._0x1d70d8,_0x4769f9._0x3106af,0x3a9)](_0x9f6202))return[];return _0x9f6202[_0x4291af(0x399,0x3a2,0x3b8,0x3b3)](_0x4033bf=>{const _0x54d8fc={_0x40d78f:0x4e3,_0x2f3a97:0xb1};function _0x2eb125(_0x42e739,_0x55fd8a,_0x2e96af,_0x41b059){return _0x4291af(_0x2e96af- -_0x58f384._0x184159,_0x55fd8a-0x17e,_0x2e96af-0x13d,_0x41b059);}if(_0x4033bf[_0x36ccb2(-0x111,-_0x3c8619._0x5aad8a,-0x131,-_0x3c8619._0x268552)]===_0x2eb125(_0x3c8619._0x3baae0,0x231,0x24e,_0x3c8619._0x53df0f))return normalizeTextBlock(_0x4033bf);function _0x36ccb2(_0x43833f,_0x5d3fef,_0x2b6ec0,_0x5093a1){return _0x4291af(_0x5d3fef- -_0x54d8fc._0x40d78f,_0x5d3fef-_0x54d8fc._0x2f3a97,_0x2b6ec0-0x183,_0x43833f);}return structuredClone(_0x4033bf);});}function normalizeSystem(_0x2dc9af=[]){const _0x7d8026={_0x2d5de1:0xf1,_0xe154c9:0xea};function _0x397b39(_0x143503,_0x7f7d67,_0x2ab954,_0x2e6813){return _0x5d70(_0x2ab954-0x3d3,_0x143503);}function _0x570b58(_0x194be2,_0x3a8102,_0x39ef89,_0x3c5294){return _0x5d70(_0x39ef89- -0x1a8,_0x3c5294);}return normalizeContent(_0x2dc9af)[_0x570b58(-_0x7d8026._0x2d5de1,-0xeb,-0xd6,-_0x7d8026._0xe154c9)](_0xf29670=>_0xf29670[_0x570b58(-0xf7,-0xd8,-0xdf,-0xea)]===_0x397b39(0x49f,0x4a0,0x4ad,0x4b2));}function isProviderStateCompatible(_0x10a70d,_0x1923dc){const _0x1aed70={_0x40ee34:0x449,_0x219d9a:0x443,_0x57b75f:0x42c,_0xa32744:0x202},_0x38e825={_0x25a298:0x10a},_0x6ee633={_0x2dfe73:0x36b};function _0x43d7d9(_0x8bb569,_0x3d0eb8,_0x4ca66b,_0x35b34f){return _0x5d70(_0x35b34f-_0x6ee633._0x2dfe73,_0x3d0eb8);}const _0x2c58bf=_0x10a70d['providerState']?.['originModelIdentity'];function _0x5a5c32(_0x2aecc1,_0x1f9ea4,_0x9d559d,_0x166cea){return _0x5d70(_0x2aecc1-_0x38e825._0x25a298,_0x1f9ea4);}return _0x2c58bf===void 0x0||_0x2c58bf===_0x1923dc[_0x43d7d9(0x448,_0x1aed70._0x40ee34,0x440,0x44c)][_0x43d7d9(0x434,0x442,_0x1aed70._0x219d9a,_0x1aed70._0x57b75f)]||_0x2c58bf===_0x1923dc[_0x5a5c32(0x1ea,0x1f8,0x1cd,_0x1aed70._0xa32744)];}function normalizeMessage(_0x5dbe8d){const _0x5c804c={_0xdd1b9b:0x385,_0x2a377d:0x36c,_0x21b77b:0x39f,_0x1e9b36:0x3a8,_0x1c1fd9:0x3bb,_0x43a45e:0x3c4},_0x2169a6={_0x334a8e:0x2d3};function _0x5e35ec(_0x4c5af9,_0x1fe221,_0x1b80eb,_0x3860a4){return _0x5d70(_0x1b80eb-0x274,_0x4c5af9);}function _0x28334d(_0x2c2e8e,_0x9a1e61,_0x6c7463,_0xa13a64){return _0x5d70(_0x2c2e8e-_0x2169a6._0x334a8e,_0xa13a64);}return{...typeof _0x5dbe8d['id']===_0x28334d(_0x5c804c._0xdd1b9b,_0x5c804c._0x2a377d,_0x5c804c._0x21b77b,0x38a)?{'id':_0x5dbe8d['id']}:{},'role':_0x5dbe8d[_0x28334d(_0x5c804c._0x1e9b36,_0x5c804c._0x1c1fd9,_0x5c804c._0x43a45e,0x39b)],'content':normalizeContent(_0x5dbe8d[_0x28334d(0x387,0x379,0x399,0x38d)]),..._0x5dbe8d['providerState']?{'providerState':structuredClone(_0x5dbe8d[_0x28334d(0x3af,0x39e,0x39c,0x3bf)])}:{}};}function compileRequest(_0x287ca0){const _0x3fb6cb={_0x587c28:0x73,_0xa3c50d:0x9f,_0x2e82ac:0x96,_0x50a331:0x60,_0x1c8a70:0x150,_0xc59c11:0x162,_0x574592:0x14b,_0x362c12:0x160,_0x48e5d6:0xa7,_0x5a1074:0xa0,_0x27a2ea:0x8b,_0x1419a7:0x16a,_0x138f46:0xb5,_0x42d405:0x9e,_0x1cf6aa:0xa1},_0x5273af={_0x1fec45:0x14f};function _0x3e9c1e(_0x3fef23,_0x295978,_0xb65259,_0x30dc6f){return _0x5d70(_0x295978- -_0x5273af._0x1fec45,_0x30dc6f);}function _0x245b15(_0x320a97,_0x58fc0a,_0x5ba4a6,_0x137e55){return _0x5d70(_0x320a97-0x90,_0x5ba4a6);}return{'model':_0x287ca0['model']??'claude-sonnet-4-20250514',..._0x287ca0[_0x3e9c1e(-_0x3fb6cb._0x587c28,-0x92,-_0x3fb6cb._0xa3c50d,-_0x3fb6cb._0x2e82ac)]!==void 0x0?{'max_tokens':_0x287ca0['max_tokens']}:{},..._0x287ca0['reasoning']?{'reasoning':structuredClone(_0x287ca0[_0x3e9c1e(-0x6e,-0x79,-0x8f,-_0x3fb6cb._0x50a331)])}:{},'system':normalizeSystem(_0x287ca0[_0x245b15(_0x3fb6cb._0x1c8a70,_0x3fb6cb._0xc59c11,_0x3fb6cb._0x574592,_0x3fb6cb._0x362c12)]),'messages':_0x287ca0['messages'][_0x3e9c1e(-0x90,-_0x3fb6cb._0x48e5d6,-_0x3fb6cb._0x5a1074,-_0x3fb6cb._0x27a2ea)](normalizeMessage),'tools':structuredClone(_0x287ca0[_0x245b15(0x155,0x13a,_0x3fb6cb._0x1419a7,0x171)]??[]),'metadata':{'session_id':_0x287ca0['sessionId'],'turn_id':_0x287ca0[_0x3e9c1e(-_0x3fb6cb._0x138f46,-_0x3fb6cb._0x42d405,-0xa3,-_0x3fb6cb._0x1cf6aa)]}};}function toChatRequest(_0x3e4814){const _0xe97b2e={_0x5af886:0x420,_0x168803:0x438,_0x54ea89:0x426,_0xc5ae08:0x416,_0x53e5b8:0x422,_0x43003f:0x413,_0x5c1650:0x42e,_0xf51e42:0x400,_0x4393f1:0x3e5,_0x4d2205:0x2de,_0xa09a5c:0x2c6,_0x328b36:0x2b0,_0x25389e:0x421,_0x150b99:0x431,_0x5c0e11:0x41f,_0x905270:0x42a,_0x1de272:0x41b,_0x547874:0x41a,_0x43a7e8:0x2c9,_0x56b295:0x2ab,_0x3afa51:0x2db,_0x2fb969:0x3f0,_0x562181:0x2c4,_0x320cd2:0x43f,_0x42c5dc:0x43e,_0x4799a1:0x3e6,_0x1a83e9:0x412},_0x32805d={_0x377092:0x201};function _0x2dbeac(_0x558fe4,_0x162554,_0xbf413a,_0x2183b5){return _0x5d70(_0xbf413a-_0x32805d._0x377092,_0x162554);}function _0x5e9b58(_0x23e233,_0x393117,_0x176fff,_0x2bc5f4){return _0x5d70(_0x23e233-0x340,_0x176fff);}return{'model':_0x3e4814[_0x5e9b58(_0xe97b2e._0x5af886,_0xe97b2e._0x168803,_0xe97b2e._0x54ea89,0x431)],..._0x3e4814['max_tokens']!==void 0x0?{'maxTokens':_0x3e4814['max_tokens']}:{},..._0x3e4814[_0x5e9b58(_0xe97b2e._0xc5ae08,_0xe97b2e._0x53e5b8,_0xe97b2e._0x43003f,_0xe97b2e._0x5c1650)]?{'reasoning':structuredClone(_0x3e4814['reasoning'])}:{},'system':structuredClone(_0x3e4814[_0x5e9b58(_0xe97b2e._0xf51e42,0x402,0x41c,0x3ec)]),'messages':structuredClone(_0x3e4814[_0x5e9b58(_0xe97b2e._0x4393f1,0x3ff,0x3cb,0x3f6)]),'tools':structuredClone(_0x3e4814[_0x2dbeac(0x2b2,_0xe97b2e._0x4d2205,_0xe97b2e._0xa09a5c,_0xe97b2e._0x328b36)]),'metadata':{'sessionId':_0x3e4814[_0x5e9b58(_0xe97b2e._0x25389e,0x422,_0xe97b2e._0x150b99,_0xe97b2e._0x5c0e11)][_0x5e9b58(0x40c,_0xe97b2e._0x905270,_0xe97b2e._0x1de272,0x40d)],'turnId':_0x3e4814['metadata'][_0x5e9b58(0x403,0x422,_0xe97b2e._0x547874,_0xe97b2e._0x5c0e11)],..._0x3e4814['metadata'][_0x2dbeac(_0xe97b2e._0x43a7e8,0x291,0x2af,_0xe97b2e._0x56b295)]!==void 0x0?{'modelIdentity':_0x3e4814[_0x2dbeac(0x2e8,_0xe97b2e._0x3afa51,0x2e2,0x2e6)][_0x5e9b58(0x3ee,0x3dc,_0xe97b2e._0x2fb969,0x3f3)]}:{},..._0x3e4814['metadata'][_0x2dbeac(0x2c6,0x2a4,0x2bb,_0xe97b2e._0x562181)]!==void 0x0?{'pricingProviderId':_0x3e4814[_0x5e9b58(0x421,_0xe97b2e._0x320cd2,0x405,_0xe97b2e._0x42c5dc)][_0x5e9b58(0x3fa,_0xe97b2e._0x4799a1,0x3e5,0x413)]}:{}},..._0x3e4814['outputFormat']?{'outputFormat':structuredClone(_0x3e4814[_0x5e9b58(0x40f,0x41d,0x3f4,_0xe97b2e._0x1a83e9)])}:{}};}function toModelRequest(_0x28b545){const _0x12b47e={_0x21302f:0x275,_0x29ffd7:0x26c,_0x211e89:0x282,_0x3ab036:0x263,_0x43d963:0x271,_0x5479a9:0x27a,_0x405b8e:0x27c,_0x1257f2:0x290,_0x1c2158:0x28f,_0x5aef56:0x28b,_0x212eb2:0x212,_0x3e903e:0x235,_0x5c58:0x231,_0x185ef8:0x222,_0xd7cb18:0x26f,_0x1d1da2:0x25e,_0x5d6840:0x273,_0x1f8f1a:0x21a,_0x4ac4a5:0x222,_0x3eff90:0x28a,_0xf706aa:0x26f,_0x227256:0x263,_0xea2413:0x21b,_0x16baae:0x233,_0xa0264a:0x257,_0x4c3233:0x264,_0x3344ad:0x281,_0x3fd458:0x265,_0x501e49:0x27d,_0x1740a2:0x224,_0x179290:0x20a,_0x86fdcb:0x23d},_0x2a3e8a={_0x2e7791:0x350};function _0x4a1984(_0x359d0f,_0x13eef0,_0x1120a5,_0x3d748e){return _0x5d70(_0x13eef0- -_0x2a3e8a._0x2e7791,_0x1120a5);}function _0xb7ddea(_0x429cd0,_0x2ab68f,_0x3ac856,_0xd222a7){return _0x5d70(_0x429cd0-0x155,_0x2ab68f);}return{'model':_0x28b545[_0x4a1984(-_0x12b47e._0x21302f,-0x270,-_0x12b47e._0x29ffd7,-0x260)],..._0x28b545[_0x4a1984(-0x28b,-0x271,-_0x12b47e._0x211e89,-_0x12b47e._0x3ab036)]!==void 0x0?{'max_tokens':_0x28b545[_0x4a1984(-0x272,-_0x12b47e._0x43d963,-0x26a,-0x280)]}:{},..._0x28b545['reasoning']?{'reasoning':structuredClone(_0x28b545[_0x4a1984(-0x28d,-_0x12b47e._0x5479a9,-0x265,-_0x12b47e._0x405b8e)])}:{},'system':structuredClone(_0x28b545[_0x4a1984(-0x287,-_0x12b47e._0x1257f2,-_0x12b47e._0x1c2158,-0x286)]),'messages':structuredClone(_0x28b545['messages']),'tools':structuredClone(_0x28b545[_0x4a1984(-0x2a8,-_0x12b47e._0x5aef56,-0x291,-0x290)]),'metadata':{'session_id':_0x28b545['metadata'][_0xb7ddea(0x22c,_0x12b47e._0x212eb2,_0x12b47e._0x3e903e,_0x12b47e._0x5c58)],'turn_id':_0x28b545['metadata'][_0xb7ddea(0x206,0x218,_0x12b47e._0x185ef8,0x204)],..._0x28b545[_0x4a1984(-0x275,-_0x12b47e._0xd7cb18,-_0x12b47e._0x1d1da2,-_0x12b47e._0x5d6840)][_0x4a1984(-0x2a7,-0x28f,-0x27b,-_0x12b47e._0x5d6840)]!==void 0x0?{'model_identity':_0x28b545[_0xb7ddea(0x236,0x235,_0x12b47e._0x1f8f1a,_0x12b47e._0x4ac4a5)]['modelIdentity']}:{},..._0x28b545[_0x4a1984(-_0x12b47e._0x3eff90,-_0x12b47e._0xf706aa,-_0x12b47e._0x227256,-0x262)][_0xb7ddea(_0x12b47e._0xea2413,0x20b,0x207,_0x12b47e._0x16baae)]!==void 0x0?{'pricing_provider_id':_0x28b545[_0x4a1984(-_0x12b47e._0xa0264a,-_0x12b47e._0xd7cb18,-_0x12b47e._0x4c3233,-0x25e)]['pricingProviderId']}:{}},..._0x28b545[_0x4a1984(-0x29d,-_0x12b47e._0x3344ad,-_0x12b47e._0x3fd458,-_0x12b47e._0x501e49)]?{'outputFormat':structuredClone(_0x28b545[_0xb7ddea(_0x12b47e._0x1740a2,_0x12b47e._0x179290,_0x12b47e._0x86fdcb,0x20d)])}:{}};}function _0x5d70(_0x2338a7,_0x4f0b9c){_0x2338a7=_0x2338a7-0xa5;const _0x4d4f16=_0x4d4f();let _0x5d70d4=_0x4d4f16[_0x2338a7];if(_0x5d70['QylsNk']===undefined){var _0x283fdd=function(_0x367dc6){const _0x556d0d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x21c5a3='',_0x5010fd='';for(let _0x9f6202=0x0,_0x4033bf,_0x2dc9af,_0xf29670=0x0;_0x2dc9af=_0x367dc6['charAt'](_0xf29670++);~_0x2dc9af&&(_0x4033bf=_0x9f6202%0x4?_0x4033bf*0x40+_0x2dc9af:_0x2dc9af,_0x9f6202++%0x4)?_0x21c5a3+=String['fromCharCode'](0xff&_0x4033bf>>(-0x2*_0x9f6202&0x6)):0x0){_0x2dc9af=_0x556d0d['indexOf'](_0x2dc9af);}for(let _0x10a70d=0x0,_0x1923dc=_0x21c5a3['length'];_0x10a70d<_0x1923dc;_0x10a70d++){_0x5010fd+='%'+('00'+_0x21c5a3['charCodeAt'](_0x10a70d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5010fd);};_0x5d70['LKXUnC']=_0x283fdd,_0x5d70['ywKpIQ']={},_0x5d70['QylsNk']=!![];}const _0x38ce2a=_0x4d4f16[0x0],_0x27f216=_0x2338a7+_0x38ce2a,_0x286a69=_0x5d70['ywKpIQ'][_0x27f216];return!_0x286a69?(_0x5d70d4=_0x5d70['LKXUnC'](_0x5d70d4),_0x5d70['ywKpIQ'][_0x27f216]=_0x5d70d4):_0x5d70d4=_0x286a69,_0x5d70d4;}function toProviderModelRequest(_0x151a48){const _0x25c87f={_0x5711cb:0x29a,_0x24913c:0x287,_0x597e59:0x2a1,_0x988202:0x299,_0x4ae656:0x65,_0x1cc97d:0x51,_0xe076f:0xa8,_0x86df19:0x8b,_0x328bb3:0x290,_0x47e8e4:0x27f,_0x4a8eb9:0x277};function _0x293b23(_0xf5ad31,_0x3080ed,_0x5d0872,_0x19beb5){return _0x5d70(_0x5d0872-0x1ba,_0xf5ad31);}function _0x1ed797(_0x4d0ccd,_0x10398d,_0x3fe0cc,_0x4ad167){return _0x5d70(_0x3fe0cc- -0x130,_0x4d0ccd);}return{'model':_0x151a48[_0x293b23(0x2b2,0x2a7,_0x25c87f._0x5711cb,_0x25c87f._0x24913c)],..._0x151a48[_0x293b23(_0x25c87f._0x597e59,0x29d,_0x25c87f._0x988202,0x2af)]!==void 0x0?{'max_tokens':_0x151a48[_0x1ed797(-_0x25c87f._0x4ae656,-0x35,-_0x25c87f._0x1cc97d,-0x3c)]}:{},'system':structuredClone(_0x151a48['system']),'messages':structuredClone(_0x151a48[_0x1ed797(-0x73,-_0x25c87f._0xe076f,-_0x25c87f._0x86df19,-0x92)]),'tools':structuredClone(_0x151a48[_0x293b23(_0x25c87f._0x328bb3,0x292,_0x25c87f._0x47e8e4,_0x25c87f._0x4a8eb9)])};}function toChatResponse(_0x5ee210){const _0x141d5f={_0x5eecf4:0x168,_0x32a396:0x14f,_0x3e7322:0x144,_0x266fc2:0x13f,_0x328733:0x166,_0x23eee6:0x15c,_0x46a4f7:0x15e,_0x45c358:0x163,_0x1e5d5b:0x163,_0x182522:0x15e,_0x4e8dd8:0x173,_0xb23d76:0x309,_0x5a378f:0x2eb,_0x35adeb:0x2f2,_0x382735:0x320,_0x17b999:0x308,_0x238903:0x300,_0x4d2598:0x159},_0x4b8e88={_0x47148f:0x22e},_0x3eb412={_0x3d87b6:0x3d7};function _0xce10bb(_0x5cbb6d,_0x3020b6,_0x587af9,_0x102bd1){return _0x5d70(_0x3020b6- -_0x3eb412._0x3d87b6,_0x5cbb6d);}function _0x2e8880(_0x299d08,_0x568dab,_0x335310,_0x40002a){return _0x5d70(_0x568dab- -_0x4b8e88._0x47148f,_0x40002a);}return{'id':_0x5ee210['id'],'content':structuredClone(_0x5ee210[_0x2e8880(-0x178,-0x17a,-0x16d,-_0x141d5f._0x5eecf4)]),'stopReason':_0x5ee210[_0x2e8880(-_0x141d5f._0x32a396,-0x15a,-_0x141d5f._0x3e7322,-_0x141d5f._0x266fc2)],'usage':{'inputTokens':_0x5ee210['usage'][_0x2e8880(-0x162,-_0x141d5f._0x328733,-_0x141d5f._0x23eee6,-0x178)],'outputTokens':_0x5ee210[_0x2e8880(-0x176,-_0x141d5f._0x46a4f7,-_0x141d5f._0x45c358,-0x179)]['output_tokens'],..._0x5ee210[_0x2e8880(-_0x141d5f._0x1e5d5b,-_0x141d5f._0x182522,-0x173,-_0x141d5f._0x4e8dd8)]['reasoning_tokens']!==void 0x0?{'reasoningTokens':_0x5ee210[_0xce10bb(-_0x141d5f._0xb23d76,-0x307,-_0x141d5f._0x5a378f,-_0x141d5f._0x35adeb)][_0xce10bb(-_0x141d5f._0x382735,-0x31f,-_0x141d5f._0x17b999,-_0x141d5f._0x238903)]}:{}},..._0x5ee210[_0x2e8880(-0x136,-0x152,-0x143,-0x138)]?{'providerState':structuredClone(_0x5ee210[_0x2e8880(-_0x141d5f._0x4d2598,-0x152,-0x168,-0x14f)])}:{}};}function toModelResponse(_0x359917){const _0x690fa4={_0x142122:0x6f,_0x1576bd:0x7f,_0x37ee07:0x59,_0x3b70a0:0x75,_0x360fd9:0x65,_0x7244f6:0x62,_0x2e6e11:0x7c,_0xd126df:0x83,_0x1c8ec4:0x9e,_0x2d9075:0xad,_0x5bc078:0x82,_0x269a58:0xad,_0x9066f2:0xde,_0x4dc37b:0xd8,_0x397d0e:0x7c,_0x44d20c:0x8a,_0x3bd812:0x58,_0x297989:0x76,_0x369f70:0x6a,_0x4ae57d:0xea,_0x424a77:0xf6,_0x1e80ae:0xdf,_0x415fad:0xee},_0x59bffc={_0x564e6a:0x3f};function _0x340a30(_0x2b7525,_0x765af3,_0x3334d2,_0x5f311a){return _0x5d70(_0x765af3- -_0x59bffc._0x564e6a,_0x2b7525);}function _0x1e6399(_0x49df09,_0x51a208,_0x14945a,_0x256c80){return _0x5d70(_0x49df09-0xe,_0x256c80);}return{'id':_0x359917['id'],'type':_0x340a30(_0x690fa4._0x142122,_0x690fa4._0x1576bd,0x9a,0x6b),'role':'assistant','content':structuredClone(_0x359917[_0x340a30(_0x690fa4._0x37ee07,_0x690fa4._0x3b70a0,_0x690fa4._0x360fd9,_0x690fa4._0x7244f6)]),'stop_reason':_0x359917['stopReason'],'stop_sequence':null,'usage':{'input_tokens':_0x359917['usage'][_0x340a30(_0x690fa4._0x2e6e11,_0x690fa4._0xd126df,_0x690fa4._0x1c8ec4,0xa0)],'output_tokens':_0x359917[_0x340a30(_0x690fa4._0x1576bd,0x91,_0x690fa4._0x2d9075,_0x690fa4._0x5bc078)][_0x1e6399(0xbb,_0x690fa4._0x269a58,0xa6,0xbf)],..._0x359917[_0x1e6399(_0x690fa4._0x9066f2,0xf8,0xd9,_0x690fa4._0x4dc37b)][_0x340a30(_0x690fa4._0x397d0e,0x76,_0x690fa4._0x44d20c,_0x690fa4._0x3bd812)]!==void 0x0?{'reasoning_tokens':_0x359917['usage'][_0x340a30(0x67,_0x690fa4._0x297989,0x78,_0x690fa4._0x369f70)]}:{}},..._0x359917[_0x1e6399(0xea,0xfc,0xed,0xd3)]?{'providerState':structuredClone(_0x359917[_0x1e6399(_0x690fa4._0x4ae57d,_0x690fa4._0x424a77,_0x690fa4._0x1e80ae,_0x690fa4._0x415fad)])}:{}};}function _0x988f1e(_0x3954f5,_0x208029,_0x25c369,_0x4a9ff6){return _0x5d70(_0x208029- -0x18f,_0x4a9ff6);}function responseToAssistantMessage(_0x2ad856){const _0x4211fc={_0xc6e8a8:0x354,_0x13a98a:0x357,_0x561194:0x366,_0x5b97f2:0x2fc,_0x1af419:0x308,_0xf85181:0x2c6,_0x3ec8ba:0x2da,_0x2aaf8d:0x2c6},_0x2cc6b2={_0x4c96b1:0x3a2};function _0x27dd50(_0x9854c9,_0x142a42,_0x3f6f7c,_0x5e31f0){return _0x5d70(_0x3f6f7c-0x2ad,_0x142a42);}function _0x1039aa(_0x3ec52e,_0x16a4d9,_0x5818c3,_0x12acda){return _0x5d70(_0x16a4d9- -_0x2cc6b2._0x4c96b1,_0x12acda);}return{'role':_0x27dd50(0x348,_0x4211fc._0xc6e8a8,_0x4211fc._0x13a98a,_0x4211fc._0x561194),'content':normalizeContent(_0x2ad856[_0x1039aa(-_0x4211fc._0x5b97f2,-0x2ee,-_0x4211fc._0x1af419,-0x2e7)]),..._0x2ad856[_0x1039aa(-0x2c0,-_0x4211fc._0xf85181,-_0x4211fc._0x3ec8ba,-0x2c9)]?{'providerState':structuredClone(_0x2ad856[_0x1039aa(-0x2e4,-_0x4211fc._0x2aaf8d,-0x2ce,-0x2b8)])}:{}};}function createReasoningMessage(_0x53129f){const _0xd977bb={_0x5c49c4:0x202,_0x164a2f:0x217,_0x239c9e:0x219,_0xc352f4:0x1e2,_0x1b097c:0x1fb,_0x49ba73:0x21d,_0x26b906:0x241,_0x482c37:0x223},_0x421715={_0xa26491:0xfb},_0x58606a={_0x16bbd9:0xc2,_0x134799:0xc9,_0x102c09:0xf4,_0x39dfaa:0xe6,_0x2fc811:0x101,_0x3b3b9e:0x241,_0xc0daeb:0x243,_0x4c91f4:0x234,_0x3c29e5:0x259,_0x24ba3e:0x255,_0x322de5:0xd6,_0x119b31:0xe2};function _0x10659d(_0x1fa64e,_0x4bed67,_0x4d5561,_0x22aab9){return _0x5d70(_0x4d5561- -0x2cd,_0x1fa64e);}const _0x1859dc=normalizeContent(_0x53129f?.[_0x10659d(-_0xd977bb._0x5c49c4,-_0xd977bb._0x164a2f,-_0xd977bb._0x239c9e,-0x20c)])[_0x10659d(-_0xd977bb._0xc352f4,-_0xd977bb._0x5c49c4,-_0xd977bb._0x1b097c,-0x1e8)](_0x3ce72d=>{const _0x42beb2={_0x470847:0x41},_0x241cbc={_0x575699:0x1bf};function _0x51768a(_0x58ce37,_0x229911,_0xd0557d,_0xce0b3){return _0x10659d(_0x58ce37,_0x229911-_0x241cbc._0x575699,_0xd0557d-0x141,_0xce0b3-0x16a);}function _0x1bdce7(_0x233ecf,_0x2a8ef6,_0x31a477,_0x46df66){return _0xf0c7e3(_0x233ecf- -0x20f,_0x2a8ef6-_0x42beb2._0x470847,_0x31a477,_0x46df66-0x12f);}return _0x3ce72d[_0x51768a(-_0x58606a._0x16bbd9,-_0x58606a._0x134799,-0xc3,-0xd7)]===_0x51768a(-0x101,-_0x58606a._0x102c09,-_0x58606a._0x39dfaa,-_0x58606a._0x2fc811)||_0x3ce72d[_0x1bdce7(-_0x58606a._0x3b3b9e,-_0x58606a._0xc0daeb,-_0x58606a._0x4c91f4,-0x253)]===_0x1bdce7(-0x24b,-_0x58606a._0x3c29e5,-_0x58606a._0x24ba3e,-0x24d)||_0x3ce72d[_0x51768a(-_0x58606a._0x322de5,-_0x58606a._0x119b31,-0xc3,-0xdd)]==='openai_reasoning';});function _0xf0c7e3(_0x1498ad,_0x3e0112,_0x3abe15,_0x1599ae){return _0x5d70(_0x1498ad- -_0x421715._0xa26491,_0x3abe15);}if(_0x1859dc[_0x10659d(-0x206,-0x228,-_0xd977bb._0x49ba73,-0x202)]===0x0)return void 0x0;return{'role':_0x10659d(-_0xd977bb._0x26b906,-0x23b,-_0xd977bb._0x482c37,-0x208),'content':_0x1859dc};}function createAssistantTextMessage(_0xd07c57){const _0x50c876={_0x4ec3c1:0x27},_0x129216={_0x29c72f:0xbf,_0x566a61:0xea,_0x5df366:0xea},_0x4582c0={_0x4d1a6a:0x6f};function _0x22ca5f(_0x4c12be,_0x3c61ba,_0x37395,_0x4bc631){return _0x5d70(_0x4bc631- -_0x4582c0._0x4d1a6a,_0x37395);}const _0x24bfee=normalizeContent(_0xd07c57?.['content'])['filter'](_0x18e8c4=>{const _0x5c5c5d={_0x332c2a:0x19e},_0x3e9b96={_0x2d186e:0x366};function _0x1af48c(_0x2f5220,_0x5e2fd9,_0x407086,_0x385db2){return _0x5d70(_0x2f5220-_0x3e9b96._0x2d186e,_0x385db2);}function _0x26d8cd(_0x1e0ab2,_0x21fc66,_0x2a5303,_0x4a4200){return _0x5d70(_0x4a4200- -_0x5c5c5d._0x332c2a,_0x1e0ab2);}return _0x18e8c4[_0x26d8cd(-_0x129216._0x29c72f,-_0x129216._0x566a61,-_0x129216._0x5df366,-0xd5)]===_0x26d8cd(-0xa5,-0xb4,-0xd7,-0xc4);});if(_0x24bfee['length']===0x0)return void 0x0;return{'role':_0x22ca5f(_0x50c876._0x4ec3c1,0x57,0x40,0x3b),'content':_0x24bfee};}function _0x4d4f(){const _0x54d820=['vg9VBcbLEgvJDxrPB24GD2fZigLUDgvYCNvWDgvKigjLzM9YzsbJB21WBgv0Aw9UigfUzcbWCM9KDwnLzcbUBYbYzxn1BhqU','ntKYnJyWwMLHvwjo','Bwf4vg9Rzw5Z','Bw9KzwW','Bwv0ywrHDge','DxnLCG','BwvZC2fNzxm','yw50AhjVCgLJx3jLzgfJDgvKx3rOAw5RAw5N','AxnbCNjHEq','BwfW','AgfZ','yxnZAxn0yw50','ntG3ndbXEgzqwuO','otuXndGYC3vlBhDP','B3v0Chv0vg9Rzw5Z','Bw9KzwXFAwrLBNrPDhK','Dg9VBf91C2u','BgvUz3rO','DhvYBKLK','C3rYAw5N','DgHPBMTPBMC','y29UDgvUDa','CMvHC29UAw5Nvg9Rzw5Z','mtu0mJi0neDsseHkCq','DhjPBq','CMvHC29UAw5Nx3rVA2vUCW','mtK1mdCYtxnpuvv6','ChjPy2LUz19WCM92AwrLCL9Pza','AM9PBG','zMXHDe1HCa','Bwf4x3rVA2vUCW','BwvZC2fNzq','yw50AhjVCgLJx3rOAw5RAw5N','C3LZDgvT','Bw9KzwXjzgvUDgL0Eq','Aw5WDxruB2TLBNm','DhvYBL9Pza','ywrK','Dg9VBhm','ChjPy2LUz1bYB3zPzgvYswq','Dg9VBf9Yzxn1Bhq','Aw5WDxrFDg9Rzw5Z','DhLWzq','C3vTBwfYEq','C3rHDhvZ','C2vZC2LVBL9Pza','mLbkz2Dgsq','B3v0Chv0','B3v0Chv0rM9YBwf0','DxnHz2u','mZi5nJa4mgX2Bvr6rW','zMLSDgvY','ntK3ndy4C3Dvugzr','C3rVCf9YzwfZB24','CM9Szq','CMvHC29UAw5N','C2vZC2LVBKLK','zw5JCNLWDgvKq29UDgvUDa','kgvUy3j5ChrLzcbYzwfZB25PBMCP','Dgv4Da','ChvZAa','ChjVDMLKzxjtDgf0zq'];_0x4d4f=function(){return _0x54d820;};return _0x4d4f();}function createToolUseMessage(_0x4b0b6b){const _0x3c314c={_0x29d417:0x3e0,_0x560597:0x3f4,_0x336db8:0x3d9,_0x567977:0x3c0,_0x56b70c:0x3ce,_0x486b35:0x3ab,_0x248f4a:0x3bc},_0x5b4bf2={_0x1b6ace:0x340},_0x771e78={_0x12dae8:0x351,_0x3163fc:0x332,_0x42f424:0x350,_0x59b7a4:0x173,_0x5ac5a0:0x192},_0x10f548={_0x5f8966:0x235},_0x1b4466={_0x48d15d:0xc7,_0x26843a:0x88,_0x353946:0xd7};function _0x11a0c1(_0x33036c,_0x12355e,_0x5008bf,_0x3e2a0f){return _0x5d70(_0x33036c-0x301,_0x12355e);}const _0x1727ab=normalizeContent(_0x4b0b6b?.[_0x5d3a97(_0x3c314c._0x29d417,0x3e7,0x3ef,_0x3c314c._0x560597)])[_0x11a0c1(0x3d3,0x3d1,_0x3c314c._0x336db8,0x3c3)](_0x16c1e1=>{function _0x251ead(_0xf9aff6,_0x437e55,_0x1dd0cc,_0x508d90){return _0x5d3a97(_0xf9aff6-_0x1b4466._0x48d15d,_0x437e55,_0x1dd0cc-_0x1b4466._0x26843a,_0x1dd0cc- -_0x1b4466._0x353946);}function _0x4847b4(_0x785b0,_0x38880a,_0x80c88a,_0x160ad9){return _0x11a0c1(_0x38880a- -_0x10f548._0x5f8966,_0x80c88a,_0x80c88a-0xd7,_0x160ad9-0x125);}return _0x16c1e1[_0x251ead(_0x771e78._0x12dae8,0x321,_0x771e78._0x3163fc,_0x771e78._0x42f424)]===_0x4847b4(_0x771e78._0x59b7a4,0x17b,0x16e,_0x771e78._0x5ac5a0);});function _0x5d3a97(_0x4edc9c,_0x334b59,_0x3b9ec4,_0x4d73a9){return _0x5d70(_0x4d73a9-_0x5b4bf2._0x1b6ace,_0x334b59);}if(_0x1727ab[_0x11a0c1(0x3b1,_0x3c314c._0x567977,0x39d,_0x3c314c._0x56b70c)]===0x0)return void 0x0;return{'role':_0x11a0c1(_0x3c314c._0x486b35,_0x3c314c._0x248f4a,0x3b3,0x3ab),'content':_0x1727ab};}function getTextFromMessage(_0x4fbff4){const _0x1ac381={_0x493395:0x369,_0x45f1b7:0x21,_0x59c4c5:0x13,_0x2652c0:0x30,_0x457f31:0x29,_0x3e2589:0x34a};function _0x4dd949(_0xaa86b,_0x50d474,_0x586bce,_0x4d4fba){return _0x5d70(_0x4d4fba-0x29b,_0x50d474);}function _0x287e79(_0x1f2d1a,_0x438af3,_0xe743dc,_0x161aa4){return _0x5d70(_0x438af3- -0xd8,_0x161aa4);}return normalizeContent(_0x4fbff4?.[_0x4dd949(0x33e,_0x1ac381._0x493395,0x351,0x34f)])[_0x287e79(-_0x1ac381._0x45f1b7,-0x6,-0xb,-0xd)](_0x357f02=>_0x357f02[_0x4dd949(0x358,0x355,0x36f,0x364)]===_0x287e79(0x3,0x2,0x7,-0x17))[_0x287e79(-_0x1ac381._0x59c4c5,-_0x1ac381._0x2652c0,-0x1b,-_0x1ac381._0x457f31)](_0x2a699=>_0x2a699[_0x4dd949(0x389,0x37b,0x35f,0x375)])[_0x4dd949(0x347,_0x1ac381._0x3e2589,0x347,0x356)]('\x0a');}function getReasoningTextFromMessage(_0x3bed5e){const _0x3efe27={_0x23e1d2:0xc7,_0xf903e9:0xe1,_0x53b29b:0xdf,_0x8dc023:0x38f,_0x27aadb:0x3a5,_0x3bb319:0x396,_0x4a55cc:0x377},_0x2f02d2={_0x3d65ee:0x3f8,_0x2d2e05:0x3ec,_0x3bb829:0x422,_0x28283b:0x406,_0x1cb91a:0x404,_0x2baaa1:0x3e5,_0x2eb2de:0x40b,_0x530920:0x3fa,_0x588edb:0x3ff,_0x3230bc:0x407,_0x5e3ee0:0x405,_0x61efcc:0x40d,_0xdcb9ac:0x1c,_0x386a9b:0x3a,_0x2d1075:0x3f,_0x3775b5:0x3a,_0x51d94b:0x33,_0x1f4d4c:0x21,_0x40b7b8:0x26,_0x2841d3:0x3e2,_0x5243a2:0x3da,_0x5805f1:0x405,_0x174df1:0x11,_0x5e0146:0x3f9,_0x78734e:0x415,_0x181af3:0x417,_0x342a0c:0x35,_0x4c9dc6:0x36,_0x25c532:0x40,_0x186c0c:0x407,_0x4bcaa4:0x421,_0x3c3684:0x2f,_0x293f1:0x16,_0xcc41e5:0x46,_0x24e369:0x40,_0x112347:0x16,_0x49698b:0x18,_0x5b4a3d:0x14,_0x277040:0x17},_0x1a6000={_0x400cbe:0x113,_0x55052c:0x32e},_0x209fa4={_0x334d08:0x2db},_0x52cd69={_0x2e8109:0x19};function _0x251a65(_0x174ed3,_0x3667a1,_0x3ac3ea,_0x410977){return _0x5d70(_0x410977-_0x52cd69._0x2e8109,_0x3667a1);}function _0x4e0fe2(_0x46e874,_0x4c2293,_0x2cc8bf,_0x581a5a){return _0x5d70(_0x2cc8bf-_0x209fa4._0x334d08,_0x4c2293);}return normalizeContent(_0x3bed5e?.[_0x251a65(0xb8,0xbb,_0x3efe27._0x23e1d2,0xcd)])[_0x251a65(_0x3efe27._0xf903e9,0xe9,_0x3efe27._0x53b29b,0xd5)](_0x42a51c=>{const _0x2e9ed4={_0x2709ac:0x2c,_0x15605f:0x109};if(_0x42a51c['type']===_0x753b55(_0x2f02d2._0x3d65ee,_0x2f02d2._0x2d2e05,_0x2f02d2._0x3bb829,_0x2f02d2._0x28283b))return _0x42a51c[_0x753b55(_0x2f02d2._0x1cb91a,_0x2f02d2._0x2baaa1,_0x2f02d2._0x2eb2de,_0x2f02d2._0x530920)][_0x753b55(_0x2f02d2._0x588edb,_0x2f02d2._0x3230bc,_0x2f02d2._0x5e3ee0,0x3fe)]()[_0x753b55(_0x2f02d2._0x61efcc,0x402,_0x2f02d2._0x2d2e05,0x3f7)]>0x0?[_0x42a51c['thinking']]:[];function _0xa65b54(_0xa148c4,_0x25cf42,_0x19bdb1,_0xc4afff){return _0x251a65(_0xa148c4-0xcd,_0xa148c4,_0x19bdb1-_0x2e9ed4._0x2709ac,_0xc4afff- -_0x2e9ed4._0x15605f);}if(_0x42a51c[_0xa65b54(-_0x2f02d2._0xdcb9ac,-_0x2f02d2._0x386a9b,-0x30,-0x27)]==='anthropic_redacted_thinking')return['(redacted\x20reasoning)'];if(_0x42a51c[_0xa65b54(-_0x2f02d2._0x2d1075,-_0x2f02d2._0x3775b5,-0x2e,-0x27)]!=='openai_reasoning')return[];const _0x55655c=_0x42a51c[_0xa65b54(-_0x2f02d2._0x51d94b,-_0x2f02d2._0x1f4d4c,-0x3d,-_0x2f02d2._0x40b7b8)][_0x753b55(_0x2f02d2._0x2841d3,_0x2f02d2._0x5243a2,_0x2f02d2._0x5805f1,0x3ef)](_0x2dd4ca=>_0x2dd4ca[_0xa65b54(-0x2d,-0x1d,-0x14,-0x16)])[_0xa65b54(-_0x2f02d2._0x174df1,-0x1f,0x1,-0x1e)](_0x4123bf=>_0x4123bf[_0xa65b54(-0x25,-0x3e,-0x4e,-0x39)]()['length']>0x0)[_0x753b55(_0x2f02d2._0x5e0146,_0x2f02d2._0x78734e,_0x2f02d2._0x181af3,0x402)]('\x0a\x0a');if(_0x55655c[_0xa65b54(-_0x2f02d2._0x342a0c,-_0x2f02d2._0x4c9dc6,-_0x2f02d2._0x1f4d4c,-_0x2f02d2._0x25c532)]>0x0)return[_0x55655c];function _0x753b55(_0x42dc19,_0x10de56,_0x58b850,_0x4d49af){return _0x251a65(_0x42dc19-0x22,_0x10de56,_0x58b850-_0x1a6000._0x400cbe,_0x4d49af-_0x1a6000._0x55052c);}if(_0x42a51c[_0x753b55(0x406,_0x2f02d2._0x186c0c,0x432,_0x2f02d2._0x4bcaa4)]&&_0x42a51c[_0xa65b54(-_0x2f02d2._0x3c3684,0x2,-0x24,-_0x2f02d2._0x293f1)][_0x753b55(0x405,_0x2f02d2._0x2841d3,_0x2f02d2._0x186c0c,0x3fe)]()[_0xa65b54(-_0x2f02d2._0xcc41e5,-0x41,-0x39,-_0x2f02d2._0x24e369)]>0x0)return[_0x42a51c['text']];return _0x42a51c[_0xa65b54(-_0x2f02d2._0x112347,0x1,-0x19,-_0x2f02d2._0x49698b)]?[_0xa65b54(-0x3,-0xd,-_0x2f02d2._0x5b4a3d,-_0x2f02d2._0x277040)]:[];})[_0x4e0fe2(_0x3efe27._0x8dc023,_0x3efe27._0x27aadb,_0x3efe27._0x3bb319,_0x3efe27._0x4a55cc)]('\x0a\x0a');}function getToolUseBlocks(_0xc8216e){const _0x29e396={_0x2b4fff:0x1d2,_0xb86a55:0x1d8,_0x2a552b:0x1c4};function _0xdad919(_0x31e314,_0x517906,_0xc55356,_0x19b757){return _0x5d70(_0x31e314- -0xca,_0xc55356);}function _0x41080a(_0x55fe89,_0xc19841,_0xc0aa03,_0x2f84ab){return _0x5d70(_0x55fe89- -0x286,_0x2f84ab);}return normalizeContent(_0xc8216e?.[_0x41080a(-0x1d2,-_0x29e396._0x2b4fff,-_0x29e396._0xb86a55,-_0x29e396._0x2a552b)])['filter'](_0x2fad6a=>_0x2fad6a[_0xdad919(-0x1,-0x3,0xe,-0x16)]==='tool_use');}function getToolResultBlocks(_0x4a117b){const _0x10c8c5={_0x432024:0x194};function _0x1e4b1b(_0x5ee7ac,_0x1d789d,_0x59829d,_0x562f30){return _0x5d70(_0x5ee7ac- -_0x10c8c5._0x432024,_0x562f30);}return normalizeContent(_0x4a117b?.['content'])['filter'](_0x122a52=>_0x122a52[_0x1e4b1b(-0xcb,-0xca,-0xca,-0xc2)]==='tool_result');}function createToolResultUserMessage(_0x4132d4){const _0x3003e9={_0x474bfa:0x168,_0x53a6f1:0xb7,_0x521e7b:0xaf},_0x171152={_0x54fd39:0x17b,_0x423bed:0x16b,_0x4649ef:0x155,_0x1a1cd1:0x174,_0x1aa3b2:0x168,_0x4a066f:0x151,_0x12de51:0x17a,_0x257d7c:0x15d},_0x371723={_0x71c586:0x92},_0x362431={_0x14699d:0xb};function _0x138351(_0x533a2d,_0x54c341,_0xc39d4e,_0x1e9eaf){return _0x5d70(_0x533a2d- -0x246,_0xc39d4e);}function _0x1399ea(_0x569b00,_0x41d27a,_0xaa0837,_0x35258e){return _0x5d70(_0x41d27a-0xf,_0x569b00);}return{'role':_0x138351(-0x164,-0x174,-_0x3003e9._0x474bfa,-0x16e),'content':_0x4132d4[_0x1399ea(0xca,_0x3003e9._0x53a6f1,0xb8,_0x3003e9._0x521e7b)](_0x3929a5=>{function _0x4c6ce7(_0x54e47d,_0x3a2fdc,_0x566661,_0x423133){return _0x138351(_0x423133-_0x362431._0x14699d,_0x3a2fdc-0xd9,_0x566661,_0x423133-0xc2);}function _0x353a4f(_0x1e8985,_0x48861a,_0x2ea576,_0x4c5a7f){return _0x138351(_0x4c5a7f-0x385,_0x48861a-0x32,_0x2ea576,_0x4c5a7f-_0x371723._0x71c586);}return{'type':_0x4c6ce7(-_0x171152._0x54fd39,-_0x171152._0x423bed,-_0x171152._0x4649ef,-_0x171152._0x1a1cd1),'tool_use_id':_0x3929a5['callId'],'content':_0x3929a5[_0x4c6ce7(-0x17b,-_0x171152._0x1aa3b2,-0x19f,-0x187)]??_0x3929a5[_0x4c6ce7(-_0x171152._0x4a066f,-0x175,-0x15f,-0x16d)],'is_error':_0x3929a5[_0x4c6ce7(-_0x171152._0x12de51,-0x157,-_0x171152._0x257d7c,-0x170)]==='error'};})};}var INTERRUPTED_TOOL_RESULT_TEXT=_0x988f1e(-0xc9,-0xb2,-0xa5,-0xa0);function synthesizeMissingToolResults(_0x498083){const _0x54c784={_0x501603:0x3c9,_0x31cfd6:0x300,_0x490ea2:0x2f7,_0x4f26ed:0x2f5,_0xe20d81:0x3f6,_0x39b7cc:0x3e0,_0x56318b:0x3f8,_0x565d43:0x3e2,_0x2717fd:0x3f2,_0x9dac52:0x3e7,_0x573868:0x3ca,_0x483f75:0x2cd,_0x4c94bc:0x2bd,_0x308765:0x2cc},_0x2bb928=new Set();for(const _0x38ad8b of _0x498083){for(const _0x3bfd83 of getToolResultBlocks(_0x38ad8b)){_0x2bb928[_0x5c4caf(0x3e5,0x3b5,_0x54c784._0x501603,0x3ad)](_0x3bfd83['tool_use_id']);}}const _0x350841=[];function _0x5c4caf(_0x208a55,_0x14dae7,_0x168ab9,_0x5aaf8b){return _0x988f1e(_0x208a55-0x57,_0x168ab9-0x494,_0x168ab9-0xe3,_0x14dae7);}for(const _0xe2c46 of _0x498083){_0x350841[_0x443f47(0x30e,_0x54c784._0x31cfd6,0x2e8,0x2fc)](_0xe2c46);const _0x3634ad=getToolUseBlocks(_0xe2c46)[_0x443f47(0x2d8,_0x54c784._0x490ea2,0x314,_0x54c784._0x4f26ed)](_0x5b0cc5=>!_0x2bb928[_0x5c4caf(0x39f,0x3c2,0x3ae,0x390)](_0x5b0cc5['id']));if(_0x3634ad['length']===0x0)continue;_0x350841[_0x5c4caf(0x3f7,_0x54c784._0xe20d81,_0x54c784._0x39b7cc,_0x54c784._0x56318b)]({'role':_0x5c4caf(_0x54c784._0x565d43,_0x54c784._0x2717fd,_0x54c784._0x9dac52,_0x54c784._0x573868),'content':_0x3634ad[_0x443f47(0x2cb,_0x54c784._0x483f75,_0x54c784._0x4c94bc,0x2c6)](_0x2c4fc8=>({'type':_0x443f47(0x2ea,0x2ec,0x30b,0x309),'tool_use_id':_0x2c4fc8['id'],'content':INTERRUPTED_TOOL_RESULT_TEXT,'is_error':!![]}))});for(const _0x2b61bf of _0x3634ad){_0x2bb928[_0x443f47(0x2ef,0x2e9,_0x54c784._0x308765,0x2d0)](_0x2b61bf['id']);}}function _0x443f47(_0xf6ec75,_0x3681f4,_0x4dd9b0,_0x4e0471){return _0x988f1e(_0xf6ec75-0x67,_0x3681f4-0x3b4,_0x4dd9b0-0x4a,_0x4e0471);}return _0x350841;}export{createTextBlock,normalizeTextBlock,normalizeContent,normalizeSystem,isProviderStateCompatible,normalizeMessage,compileRequest,toChatRequest,toModelRequest,toProviderModelRequest,toChatResponse,toModelResponse,responseToAssistantMessage,createReasoningMessage,createAssistantTextMessage,createToolUseMessage,getTextFromMessage,getReasoningTextFromMessage,getToolUseBlocks,getToolResultBlocks,createToolResultUserMessage,INTERRUPTED_TOOL_RESULT_TEXT,synthesizeMissingToolResults};
|
package/dist/formats/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1dfd9a,_0x44a347){const _0x4e7600={_0x301e59:0x575,_0x1a2086:0x57d,_0x58bf37:0x316,_0xb4e098:0x317,_0x2d1900:0x30f,_0x398856:0x579,_0x4c4ed9:0x57f,_0x364063:0x30b,_0x2e6552:0x31d,_0x4a2215:0x312,_0x25ad18:0x571,_0x597437:0x588},_0x1448d4={_0x5cdd9c:0x39d},_0x316433={_0x1493cf:0x147};function _0x610117(_0x4b5d60,_0x5ad4de,_0x2c441c,_0x59da31){return _0x117e(_0x2c441c-_0x316433._0x1493cf,_0x5ad4de);}const _0xfa477=_0x1dfd9a();function _0x23d116(_0x295206,_0x1f48a3,_0x4e6689,_0x77c46a){return _0x117e(_0x77c46a-_0x1448d4._0x5cdd9c,_0x4e6689);}while(!![]){try{const _0x1c1f1f=-parseInt(_0x23d116(0x56b,_0x4e7600._0x301e59,_0x4e7600._0x1a2086,0x575))/0x1*(parseInt(_0x610117(0x30f,_0x4e7600._0x58bf37,_0x4e7600._0xb4e098,_0x4e7600._0x2d1900))/0x2)+parseInt(_0x610117(0x325,0x319,0x324,0x31e))/0x3+parseInt(_0x610117(0x32b,0x322,0x323,0x318))/0x4*(parseInt(_0x23d116(_0x4e7600._0x398856,0x576,0x56e,0x578))/0x5)+-parseInt(_0x23d116(_0x4e7600._0x4c4ed9,0x575,0x575,_0x4e7600._0x1a2086))/0x6+parseInt(_0x610117(_0x4e7600._0x364063,_0x4e7600._0x2e6552,_0x4e7600._0x4a2215,0x307))/0x7*(-parseInt(_0x23d116(0x56e,0x56b,_0x4e7600._0x25ad18,0x572))/0x8)+parseInt(_0x610117(0x30f,0x30a,0x315,0x31a))/0x9*(parseInt(_0x610117(0x320,0x321,0x318,0x321))/0xa)+parseInt(_0x23d116(_0x4e7600._0x597437,0x574,0x57c,0x57c))/0xb;if(_0x1c1f1f===_0x44a347)break;else _0xfa477['push'](_0xfa477['shift']());}catch(_0x15dc73){_0xfa477['push'](_0xfa477['shift']());}}}(_0x17cd,0xdcca4));import{toOpenAiResponsesRequest}from'../chunk-LIE76IJA.js';function _0x117e(_0xbf5a8a,_0x36836b){_0xbf5a8a=_0xbf5a8a-0x1cb;const _0x17cd96=_0x17cd();let _0x117ec9=_0x17cd96[_0xbf5a8a];if(_0x117e['cttpmk']===undefined){var _0x50f3f9=function(_0x3204aa){const _0x23b49e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5a2fc9='',_0x48baee='';for(let _0x257bcf=0x0,_0x228029,_0x7d1780,_0xc2c35f=0x0;_0x7d1780=_0x3204aa['charAt'](_0xc2c35f++);~_0x7d1780&&(_0x228029=_0x257bcf%0x4?_0x228029*0x40+_0x7d1780:_0x7d1780,_0x257bcf++%0x4)?_0x5a2fc9+=String['fromCharCode'](0xff&_0x228029>>(-0x2*_0x257bcf&0x6)):0x0){_0x7d1780=_0x23b49e['indexOf'](_0x7d1780);}for(let _0x15f21e=0x0,_0xead30f=_0x5a2fc9['length'];_0x15f21e<_0xead30f;_0x15f21e++){_0x48baee+='%'+('00'+_0x5a2fc9['charCodeAt'](_0x15f21e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x48baee);};_0x117e['sgMpFl']=_0x50f3f9,_0x117e['HQtVzU']={},_0x117e['cttpmk']=!![];}const _0x2edf46=_0x17cd96[0x0],_0xd4dabb=_0xbf5a8a+_0x2edf46,_0xf926ae=_0x117e['HQtVzU'][_0xd4dabb];return!_0xf926ae?(_0x117ec9=_0x117e['sgMpFl'](_0x117ec9),_0x117e['HQtVzU'][_0xd4dabb]=_0x117ec9):_0x117ec9=_0xf926ae,_0x117ec9;}import'../chunk-IUZALP6K.js';import{INTERRUPTED_TOOL_RESULT_TEXT,compileRequest,createAssistantTextMessage,createReasoningMessage,createTextBlock,createToolResultUserMessage,createToolUseMessage,getReasoningTextFromMessage,getTextFromMessage,getToolResultBlocks,getToolUseBlocks,isProviderStateCompatible,normalizeContent,normalizeMessage,normalizeSystem,normalizeTextBlock,responseToAssistantMessage,synthesizeMissingToolResults,toChatRequest,toChatResponse,toModelRequest,toModelResponse,toProviderModelRequest}from'../chunk-YNOIG4FD.js';var DATA_URI_REGEX=/data:(image\/(?:png|jpeg|jpg|gif|webp));base64,((?:[A-Za-z0-9+/]|\r?\n(?!data:))+={0,2})/g;function normalizeMediaType(_0x5a2fc9){const _0x1c25ba={_0x7e3814:0x127,_0x5f5ba1:0x11e},_0x334ebe={_0x2195b2:0x300};function _0x4274c3(_0x4a98a9,_0x202526,_0x5e45ee,_0x2c2b05){return _0x117e(_0x5e45ee- -0x37d,_0x2c2b05);}function _0xee6f0e(_0x1dd805,_0x2e6ef6,_0x392b17,_0x4e2af2){return _0x117e(_0x392b17- -_0x334ebe._0x2195b2,_0x1dd805);}return _0x5a2fc9===_0xee6f0e(-0x13a,-0x13e,-0x133,-0x129)?_0xee6f0e(-0x126,-0x130,-_0x1c25ba._0x7e3814,-_0x1c25ba._0x5f5ba1):_0x5a2fc9;}function isValidBase64(_0x48baee){const _0x1307c2={_0x571bb6:0x19d,_0x289eff:0x19a,_0x308f22:0x1a4,_0x5b92ef:0x4ae,_0x21007b:0x4aa},_0x12f7ed={_0x2b7ada:0x37e};function _0x1c763a(_0x1dc867,_0x298316,_0x5dccb4,_0x12537e){return _0x117e(_0x1dc867-0x2d0,_0x298316);}if(_0x48baee['length']===0x0||_0x48baee[_0x35ce8e(-0x1a9,-_0x1307c2._0x571bb6,-_0x1307c2._0x289eff,-_0x1307c2._0x308f22)]%0x4!==0x0)return![];function _0x35ce8e(_0x33b31b,_0x3a65a7,_0x293966,_0x5a928f){return _0x117e(_0x3a65a7- -_0x12f7ed._0x2b7ada,_0x33b31b);}return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/[_0x1c763a(_0x1307c2._0x5b92ef,0x4ab,_0x1307c2._0x21007b,_0x1307c2._0x5b92ef)](_0x48baee);}function collectImageMatches(_0x257bcf){const _0x3f2f20={_0x3db2b8:0xcf,_0x49b16a:0xd8},_0x1919ce={_0x512929:0x30c};DATA_URI_REGEX['lastIndex']=0x0;function _0x5bc7fc(_0x25c8c6,_0x4d74c3,_0x2f1689,_0x8e0a14){return _0x117e(_0x25c8c6- -0x10b,_0x4d74c3);}return Array['from'](_0x257bcf['matchAll'](DATA_URI_REGEX))[_0x5bc7fc(_0x3f2f20._0x3db2b8,0xc8,_0x3f2f20._0x49b16a,0xd4)](_0x228029=>{const _0x246054={_0x16b0c7:0x8b,_0x2cb538:0x116};function _0x450ac0(_0x3b6300,_0x407da0,_0x2b027f,_0x1ae00c){return _0x5bc7fc(_0x3b6300-0x24e,_0x407da0,_0x2b027f-_0x246054._0x16b0c7,_0x1ae00c-_0x246054._0x2cb538);}const _0x7d1780=(_0x228029[0x2]??'')[_0x450ac0(0x30f,_0x1919ce._0x512929,0x30f,0x306)](/[\r\n]/g,'');return isValidBase64(_0x7d1780);});}function _0x17cd(){const _0x178822=['Dgv4Da','mZy4EhHOrfr1','Aw1Hz2u','yMfZzty0','mJeXmJj5DuHkCMu','Aw1Hz2uVANbLzW','zMLSDgvY','mZe1AK9WwxrU','odyZnJHdrNLorwi','ntqWmtm2ofDHEMnLCW','DgvZDa','mZC0odqXnvHhDMDoCG','otG4mJm0mKXACuzAzW','BgvUz3rO','mtq2mZK4AvHjr1nl','CMvWBgfJzq','Aw1Hz2uVANbN','mZuYotiYnevWtuzeuq','ChvZAa','mZzcB2rdrgK','mtbPsLHlzMe','C2XPy2u','Aw5KzxG'];_0x17cd=function(){return _0x178822;};return _0x17cd();}function hasPastedImages(_0xc2c35f){const _0x476958={_0x5868f7:0x4e0,_0x5bc190:0x4d4},_0x1caa22={_0x53dc0c:0x2ff};function _0x17833d(_0x2bf5a8,_0x3625df,_0xb7976f,_0x7ebe7e){return _0x117e(_0xb7976f-_0x1caa22._0x53dc0c,_0x2bf5a8);}return collectImageMatches(_0xc2c35f)[_0x17833d(0x4dd,0x4e5,_0x476958._0x5868f7,_0x476958._0x5bc190)]>0x0;}function contentFromPastedText(_0x15f21e){const _0x47ccda={_0x5206ba:0x9e,_0x47c5fa:0x92,_0x10af9d:0x9d,_0x72eb47:0x196,_0x131d8f:0x195,_0x592a44:0x89,_0x58c6fc:0x19e,_0xf1d5a6:0x1a2,_0x3cf239:0x1a5,_0x1ab5c6:0x19b,_0x593378:0x196,_0x50b540:0x8c,_0x319be2:0x90,_0x1f18b8:0x93,_0x2411e6:0x8b,_0x299a07:0x87,_0x5b073e:0x9a,_0x4fb120:0xa0,_0x45a2e7:0x9f,_0x5892bf:0x1a8,_0xb56344:0xa0,_0x50b717:0xa1,_0x1bfc44:0x192},_0x399697={_0x1f6523:0x371},_0xead30f=collectImageMatches(_0x15f21e),_0x491cf6=[];let _0xfd78f4=0x0;for(const _0x287757 of _0xead30f){const _0x40d3e7=_0x287757[_0x1a507f(_0x47ccda._0x5206ba,_0x47ccda._0x47c5fa,_0x47ccda._0x10af9d,0x9d)]??0x0,[_0x1672bd,_0x1d6efe,_0x25a703]=_0x287757;_0x40d3e7>_0xfd78f4&&_0x491cf6['push']({'type':_0x4c2b33(-_0x47ccda._0x72eb47,-_0x47ccda._0x131d8f,-0x19d,-0x19e),'text':_0x15f21e[_0x1a507f(0x87,0x91,_0x47ccda._0x592a44,0x8d)](_0xfd78f4,_0x40d3e7)}),_0x491cf6[_0x4c2b33(-_0x47ccda._0x58c6fc,-0x1a0,-_0x47ccda._0xf1d5a6,-_0x47ccda._0x3cf239)]({'type':_0x4c2b33(-0x1a0,-0x1a2,-_0x47ccda._0x1ab5c6,-_0x47ccda._0x593378),'source':{'type':_0x1a507f(_0x47ccda._0x50b540,0x96,_0x47ccda._0x319be2,_0x47ccda._0x1f18b8),'media_type':normalizeMediaType(_0x1d6efe),'data':_0x25a703[_0x1a507f(0x93,_0x47ccda._0x2411e6,_0x47ccda._0x299a07,0x93)](/[\r\n]/g,'')}}),_0xfd78f4=_0x40d3e7+_0x1672bd[_0x1a507f(_0x47ccda._0x5b073e,_0x47ccda._0x4fb120,0x98,_0x47ccda._0x45a2e7)];}function _0x4c2b33(_0x35ca17,_0x3ef35d,_0x2a5469,_0x3218a9){return _0x117e(_0x2a5469- -_0x399697._0x1f6523,_0x35ca17);}function _0x1a507f(_0x2bd926,_0x3514f2,_0xbd001e,_0x2300f7){return _0x117e(_0x3514f2- -0x141,_0x2300f7);}return _0xfd78f4<_0x15f21e['length']&&_0x491cf6['push']({'type':_0x1a507f(0x9d,0x93,0x90,_0x47ccda._0x2411e6),'text':_0x15f21e[_0x4c2b33(-0x199,-_0x47ccda._0x5892bf,-0x19f,-0x1a8)](_0xfd78f4)}),_0x491cf6[_0x1a507f(0xa1,_0x47ccda._0xb56344,_0x47ccda._0x50b717,0x9b)]>0x0?_0x491cf6:[{'type':_0x4c2b33(-0x192,-_0x47ccda._0x1bfc44,-0x19d,-0x1a8),'text':_0x15f21e}];}export{INTERRUPTED_TOOL_RESULT_TEXT,compileRequest,contentFromPastedText,createAssistantTextMessage,createReasoningMessage,createTextBlock,createToolResultUserMessage,createToolUseMessage,getReasoningTextFromMessage,getTextFromMessage,getToolResultBlocks,getToolUseBlocks,hasPastedImages,isProviderStateCompatible,normalizeContent,normalizeMessage,normalizeSystem,normalizeTextBlock,responseToAssistantMessage,synthesizeMissingToolResults,toChatRequest,toChatResponse,toModelRequest,toModelResponse,toOpenAiResponsesRequest,toProviderModelRequest};
|