@nuvin/agent-core 0.2.0-rc.9 → 0.2.1-rc.0
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/context-compactor.d.ts +1 -1
- package/dist/agent/index.js +1 -1
- package/dist/agent/summarize-transcript.d.ts +7 -0
- 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 -1
- package/dist/chunk-KIIEBXJF.js +1 -0
- package/dist/chunk-LIE76IJA.js +1 -1
- package/dist/chunk-X7VAACWY.js +1 -1
- package/dist/chunk-YNOIG4FD.js +1 -1
- package/dist/formats/index.js +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -1
- package/dist/shared/index.js +1 -1
- package/dist/shared/types.d.ts +11 -2
- 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 +132 -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} +1 -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-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 -34
- package/dist/tools/index.js +1 -1
- package/dist/tools/{mcp-connection-generation.d.ts → mcp/mcp-connection-generation.d.ts} +1 -1
- package/dist/tools/{mcp-tool-adapter.d.ts → mcp/mcp-tool-adapter.d.ts} +3 -3
- package/dist/tools/{glob-tool.d.ts → search/glob-tool.d.ts} +2 -2
- 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/{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} +4 -4
- package/dist/tools/{lsp-tool.d.ts → session/lsp-tool.d.ts} +4 -4
- 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/{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} +7 -7
- 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/{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 +3 -2
- package/dist/chunk-VYW6MSQ3.js +0 -1
- package/dist/tools/file-edit-tool.d.ts +0 -34
- package/dist/tools/mock-tool-runtime.d.ts +0 -3
- package/dist/tools/runtime-manager-tools.d.ts +0 -79
- package/dist/tools/update-topic-tool.d.ts +0 -12
- package/dist/tools/workspace-paths.d.ts +0 -5
- /package/dist/tools/{file-mutation.d.ts → file-editing/file-mutation.d.ts} +0 -0
- /package/dist/tools/{mcp-oauth-provider.d.ts → mcp/mcp-oauth-provider.d.ts} +0 -0
- /package/dist/tools/{mcp-safe-error-provenance.d.ts → mcp/mcp-safe-error-provenance.d.ts} +0 -0
- /package/dist/tools/{mcp-safe-error.d.ts → mcp/mcp-safe-error.d.ts} +0 -0
- /package/dist/tools/{mcp-server-manager.d.ts → mcp/mcp-server-manager.d.ts} +0 -0
- /package/dist/tools/{grep-engine.d.ts → search/grep-engine.d.ts} +0 -0
- /package/dist/tools/{ripgrep.d.ts → search/ripgrep.d.ts} +0 -0
- /package/dist/tools/{background-process-registry.d.ts → shell/background-process-registry.d.ts} +0 -0
- /package/dist/tools/{bash-internals.d.ts → shell/bash-internals.d.ts} +0 -0
- /package/dist/tools/{process-tree-termination.d.ts → shell/process-tree-termination.d.ts} +0 -0
- /package/dist/tools/{terminal-output-normalizer.d.ts → shell/terminal-output-normalizer.d.ts} +0 -0
- /package/dist/tools/{safe-fetch.d.ts → web/safe-fetch.d.ts} +0 -0
package/dist/chunk-IUZALP6K.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4573dd,_0x5c098a){var _0x5cdddd={_0x3c133a:0x37b,_0x5ad08c:0x37a,_0x5a2ab0:0x375,_0x441057:0x68,_0x51b495:0x36f,_0x3b4369:0x36d,_0x5ce999:0x373,_0xf2746b:0x73,_0x34bdfa:0x63,_0x5eb2e9:0x6e,_0x5624b6:0x378,_0x22bd7b:0x378,_0x4f087a:0x378,_0x1661fb:0x374,_0x482466:0x67,_0x299fd6:0x68,_0x1f9481:0x6a,_0x1ec726:0x5e,_0x3af5c4:0x6b,_0x50f6c4:0x377},_0x31116d={_0x393637:0x160},_0x35262b={_0x1dd866:0x280};function _0x35e29e(_0xd8727,_0x131fb4,_0x1f69a5,_0x3ebbfc){return _0x4c0d(_0x3ebbfc-_0x35262b._0x1dd866,_0x1f69a5);}function _0x119170(_0x402f33,_0x3a46a6,_0x14f0c5,_0xc46c4d){return _0x4c0d(_0xc46c4d- -_0x31116d._0x393637,_0x3a46a6);}var _0x21d45a=_0x4573dd();while(!![]){try{var _0x35c9c9=parseInt(_0x35e29e(_0x5cdddd._0x3c133a,_0x5cdddd._0x5ad08c,_0x5cdddd._0x5a2ab0,0x375))/0x1+parseInt(_0x119170(-0x70,-0x70,-_0x5cdddd._0x441057,-0x69))/0x2*(-parseInt(_0x35e29e(_0x5cdddd._0x51b495,0x36e,_0x5cdddd._0x3b4369,_0x5cdddd._0x5ce999))/0x3)+-parseInt(_0x119170(-0x75,-_0x5cdddd._0xf2746b,-0x68,-0x6e))/0x4+parseInt(_0x119170(-0x66,-_0x5cdddd._0x34bdfa,-_0x5cdddd._0x5eb2e9,-0x68))/0x5*(parseInt(_0x35e29e(_0x5cdddd._0x5624b6,_0x5cdddd._0x22bd7b,_0x5cdddd._0x4f087a,_0x5cdddd._0x1661fb))/0x6)+parseInt(_0x119170(-0x5f,-0x65,-_0x5cdddd._0x482466,-0x64))/0x7*(-parseInt(_0x119170(-_0x5cdddd._0x299fd6,-_0x5cdddd._0x1f9481,-_0x5cdddd._0x1ec726,-0x65))/0x8)+parseInt(_0x119170(-0x65,-_0x5cdddd._0x3af5c4,-0x6d,-_0x5cdddd._0x482466))/0x9+parseInt(_0x35e29e(0x36c,_0x5cdddd._0x50f6c4,0x369,0x370))/0xa*(parseInt(_0x119170(-0x67,-_0x5cdddd._0x3af5c4,-0x61,-0x66))/0xb);if(_0x35c9c9===_0x5c098a)break;else _0x21d45a['push'](_0x21d45a['shift']());}catch(_0x10a706){_0x21d45a['push'](_0x21d45a['shift']());}}}(_0x5dda,0x653a4));function _0x5dda(){var _0x4ea510=['mZHyyMPYBxK','mteZnJGXnwDNuM9cqq','mZGXodaXnML0sezzsW','otC4ndCYqwzhsvfh','mJKYmgLUCxDZwG','mteZodLmshj4sLq','B3bLBMfP','ndbet3fhDwe','yw50AhjVCgLJ','mJGXodq5mMHQCNv4qW','mZyXmZHpsKvzsvO','mtjkzNfLrK0','nZa3mJiYugjyDLHx','y29KzxG'];_0x5dda=function(){return _0x4ea510;};return _0x5dda();}function resolveAnthropicReasoningConfig(_0x1db82f){var _0x4b915c={_0x37534e:0x166,_0x589e16:0xe1},_0x234314={_0x32f990:0x252};function _0x543dca(_0x3fac36,_0x11e119,_0x581700,_0x3f765e){return _0x4c0d(_0x581700- -_0x234314._0x32f990,_0x3f765e);}function _0x1579d0(_0xc08f88,_0x200697,_0x165612,_0x353470){return _0x4c0d(_0x165612- -0x1d2,_0xc08f88);}return _0x1db82f?.[_0x543dca(-0x163,-_0x4b915c._0x37534e,-0x161,-0x15c)]?structuredClone(_0x1db82f[_0x1579d0(-0xdf,-0xe7,-_0x4b915c._0x589e16,-0xdd)]):void 0x0;}function _0x4c0d(_0x1bff6d,_0x514561){_0x1bff6d=_0x1bff6d-0xf0;var _0x5dda9f=_0x5dda();var _0x4c0d42=_0x5dda9f[_0x1bff6d];if(_0x4c0d['BeANrv']===undefined){var _0x1c0a40=function(_0x3091e8){var _0x4f31b6='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x1db82f='',_0x5f220a='';for(var _0x21586a=0x0,_0x5859d6,_0x228777,_0x72ceab=0x0;_0x228777=_0x3091e8['charAt'](_0x72ceab++);~_0x228777&&(_0x5859d6=_0x21586a%0x4?_0x5859d6*0x40+_0x228777:_0x228777,_0x21586a++%0x4)?_0x1db82f+=String['fromCharCode'](0xff&_0x5859d6>>(-0x2*_0x21586a&0x6)):0x0){_0x228777=_0x4f31b6['indexOf'](_0x228777);}for(var _0x49d55b=0x0,_0xd8b503=_0x1db82f['length'];_0x49d55b<_0xd8b503;_0x49d55b++){_0x5f220a+='%'+('00'+_0x1db82f['charCodeAt'](_0x49d55b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5f220a);};_0x4c0d['aXiSek']=_0x1c0a40,_0x4c0d['UblhiP']={},_0x4c0d['BeANrv']=!![];}var _0x541ee1=_0x5dda9f[0x0],_0x24d8e9=_0x1bff6d+_0x541ee1,_0x42d38c=_0x4c0d['UblhiP'][_0x24d8e9];return!_0x42d38c?(_0x4c0d42=_0x4c0d['aXiSek'](_0x4c0d42),_0x4c0d['UblhiP'][_0x24d8e9]=_0x4c0d42):_0x4c0d42=_0x42d38c,_0x4c0d42;}function resolveOpenAiReasoningConfig(_0x5f220a){var _0x577af9={_0x100a8:0x2ce,_0x11e5f1:0x2cc,_0x5aa5b9:0x2c3,_0x5b6fc0:0x2c8,_0x48536d:0x25b,_0xbdbd25:0x255,_0x520c63:0x25a,_0x2715f4:0x24e,_0x924860:0x257},_0x48426d={_0x3b9711:0x352},_0x486739={_0x4eaa35:0x3be};function _0x3566db(_0x25ea58,_0x126a5f,_0x4d8c39,_0x307cfb){return _0x4c0d(_0x4d8c39- -_0x486739._0x4eaa35,_0x25ea58);}if(_0x5f220a?.[_0x3566db(-_0x577af9._0x100a8,-_0x577af9._0x11e5f1,-0x2c8,-_0x577af9._0x5aa5b9)])return structuredClone(_0x5f220a[_0x3566db(-0x2c8,-0x2c3,-_0x577af9._0x5b6fc0,-0x2cc)]);function _0x186284(_0x2f8f86,_0x192015,_0x29b60b,_0x1a7c9b){return _0x4c0d(_0x29b60b- -_0x48426d._0x3b9711,_0x2f8f86);}return _0x5f220a?.[_0x186284(-_0x577af9._0x48536d,-0x251,-_0x577af9._0xbdbd25,-_0x577af9._0x520c63)]?structuredClone(_0x5f220a[_0x186284(-_0x577af9._0x2715f4,-0x251,-_0x577af9._0xbdbd25,-_0x577af9._0x924860)]):void 0x0;}export{resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x100f46,_0x255822){const _0x38a870={_0x21ce80:0x1c0,_0xef375:0x1f4,_0x532ef4:0x1ae,_0x9cb8a:0x20a,_0x38d7bf:0x1b6,_0x56eade:0x4c2,_0x294807:0x482,_0x56ecab:0x489,_0x34b8e6:0x1f8,_0xd469eb:0x20e,_0x51b050:0x24f,_0x51291e:0x48f,_0x271c9f:0x50a,_0x37a027:0x459,_0x31f05d:0x47b,_0x50aa24:0x458,_0x40866f:0x198,_0x338413:0x194,_0x5a5602:0x476},_0x47145b={_0x11de90:0x2da},_0x228a99=_0x100f46();function _0x322822(_0x28a301,_0x3328d1,_0x8e4910,_0x495a7){return _0x23c3(_0x28a301-0x380,_0x495a7);}function _0x1a25ea(_0x282c1a,_0x200838,_0x454271,_0x364128){return _0x23c3(_0x200838- -_0x47145b._0x11de90,_0x282c1a);}while(!![]){try{const _0x4dcfc7=parseInt(_0x1a25ea(-0x1e4,-_0x38a870._0x21ce80,-0x22a,-_0x38a870._0xef375))/0x1+parseInt(_0x1a25ea(-0x1dc,-_0x38a870._0x532ef4,-_0x38a870._0x9cb8a,-_0x38a870._0x38d7bf))/0x2*(parseInt(_0x322822(_0x38a870._0x56eade,0x4ae,_0x38a870._0x294807,_0x38a870._0x56ecab))/0x3)+parseInt(_0x1a25ea(-0x20a,-_0x38a870._0x34b8e6,-0x1a3,-0x1f2))/0x4+parseInt(_0x1a25ea(-0x1ba,-_0x38a870._0xd469eb,-_0x38a870._0x51b050,-0x265))/0x5+-parseInt(_0x322822(0x4e3,_0x38a870._0x51291e,0x501,_0x38a870._0x271c9f))/0x6+-parseInt(_0x322822(_0x38a870._0x37a027,_0x38a870._0x31f05d,_0x38a870._0x50aa24,0x49a))/0x7+parseInt(_0x1a25ea(-_0x38a870._0x40866f,-0x15e,-_0x38a870._0x338413,-0x147))/0x8*(-parseInt(_0x322822(_0x38a870._0x5a5602,0x40b,0x41a,0x4ca))/0x9);if(_0x4dcfc7===_0x255822)break;else _0x228a99['push'](_0x228a99['shift']());}catch(_0x4b1fc7){_0x228a99['push'](_0x228a99['shift']());}}}(_0x35c2,0xe8775));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 _0x565414(_0x1844e0,_0x501304,_0x30b57f,_0x5ece1b){return _0x23c3(_0x30b57f- -0x285,_0x501304);}function isJsonObject(_0xa11462){const _0x12f2ec={_0x48331a:0x481,_0x4aba20:0x498},_0x1d6426={_0x27ab97:0x380};function _0x4f3657(_0x587821,_0x48b206,_0x279633,_0x44aee6){return _0x23c3(_0x48b206-_0x1d6426._0x27ab97,_0x44aee6);}function _0x5ea347(_0x47e648,_0x345bc8,_0x4af188,_0xb324a6){return _0x23c3(_0xb324a6-0x3bb,_0x345bc8);}return typeof _0xa11462===_0x4f3657(_0x12f2ec._0x48331a,0x4a8,0x470,0x46a)&&_0xa11462!==null&&!Array[_0x4f3657(0x4bb,0x4e7,_0x12f2ec._0x4aba20,0x4d6)](_0xa11462);}function isToolOutputEnvelope(_0x260c07){const _0x17f665={_0x2ea66f:0x322,_0x58d4bb:0x368,_0x5d8876:0x3aa,_0x58490b:0x361,_0x217eb2:0x3ad,_0x1988cd:0x407,_0x5c7a07:0x41d},_0x19b6b7={_0xd39889:0x1fa},_0x69449d={_0x5ec78c:0x2ea};if(typeof _0x260c07!==_0x2a2af9(0x32f,0x389,_0x17f665._0x2ea66f,_0x17f665._0x58d4bb)||_0x260c07===null||Array[_0x2a2af9(0x3c5,_0x17f665._0x5d8876,_0x17f665._0x58490b,_0x17f665._0x217eb2)](_0x260c07))return![];if(typeof _0x260c07[_0xaa2cfb(_0x17f665._0x1988cd,0x405,_0x17f665._0x5c7a07,0x3e9)]!=='string')return![];const _0xbf9ab1=_0x260c07['structured'];function _0xaa2cfb(_0x16a04f,_0xc1d697,_0x43ced7,_0x29b2ac){return _0x23c3(_0x16a04f-_0x69449d._0x5ec78c,_0x29b2ac);}function _0x2a2af9(_0x5d969a,_0x4023a8,_0x41a535,_0x1daf11){return _0x23c3(_0x41a535-_0x19b6b7._0xd39889,_0x1daf11);}return _0xbf9ab1===void 0x0||isJsonObject(_0xbf9ab1);}function validateAgainstSchema(_0x324755,_0x53a074,_0x4e2519){const _0x49d183={_0xfa3a55:0x2f6,_0x688fdc:0x2e1,_0x500bb2:0x2aa,_0x59c42a:0x2dc,_0x54e0b5:0x11e,_0x240ebb:0xf7,_0x5ae72d:0x23d,_0x916f29:0xb5,_0x1b9b0d:0xdd,_0x326322:0x80,_0x3402a7:0x59,_0x36849d:0x2eb,_0x23816f:0x134,_0x23e3a2:0xc6,_0x188d30:0x23b,_0x1a6976:0x2a4,_0x19b13a:0x2b0,_0x41fa25:0x25a,_0x44273f:0xe0,_0x510f00:0x277,_0x4f1045:0x120,_0x5561c8:0x150,_0x2fd4f7:0x234,_0x397a44:0xd7,_0x513bd7:0x53,_0x4fcaec:0x5f,_0x1f9c1a:0x5,_0xbf3379:0x28d,_0x472e08:0x292,_0x322918:0x254,_0x3123cc:0x247,_0xdf8308:0x2d5,_0x1e4ded:0x290,_0x2e596e:0x2cb,_0x529771:0x2a9,_0x1ec1e6:0x2cc,_0x65c80f:0x27c,_0x4432d2:0x2e8,_0x5ad413:0x23a,_0x371c11:0x252,_0x368f08:0x122,_0x5c6644:0xf0,_0x4a4020:0x12a,_0x34275b:0x2cb,_0x56c16d:0x268,_0x364144:0x2d4,_0x1de9d7:0x27b},_0x329b95={_0x5cb195:0x3,_0x22ba78:0x1a},_0x15b699={_0x4de9e9:0x58,_0x506582:0x6c,_0x5f29e7:0x234},_0x2dc80b={_0x38366c:0x1d3},_0x3776c8={_0x541214:0x16a};function _0x174c62(_0x1d0242,_0x689fb7,_0x42e020,_0x49794f){return _0x23c3(_0x49794f-_0x3776c8._0x541214,_0x42e020);}function _0x171875(_0x5ece29,_0x3dbd30,_0x5d8bff,_0xef3ef0){return _0x23c3(_0x5ece29- -_0x2dc80b._0x38366c,_0x3dbd30);}if(_0x174c62(0x2ca,_0x49d183._0xfa3a55,_0x49d183._0x688fdc,_0x49d183._0x500bb2)in _0x4e2519){const _0x531458=_0x4e2519[_0x174c62(_0x49d183._0x59c42a,0x316,0x2e0,0x2aa)]['some'](_0x598b78=>{try{return validateAgainstSchema(_0x324755,_0x53a074,_0x598b78),!![];}catch{return![];}});if(!_0x531458)throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x324755+':\x20expected\x20value\x20matching\x20anyOf\x20schema');return;}switch(_0x4e2519[_0x171875(-_0x49d183._0x54e0b5,-_0x49d183._0x240ebb,-0x105,-0x178)]){case _0x174c62(0x221,0x1d7,0x205,_0x49d183._0x5ae72d):if(typeof _0x53a074!==_0x171875(-0x100,-_0x49d183._0x916f29,-0xb5,-_0x49d183._0x1b9b0d))throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x324755+':\x20expected\x20string');if(_0x4e2519[_0x171875(-_0x49d183._0x326322,-_0x49d183._0x3402a7,-0xd9,-0xa9)]!==void 0x0&&!_0x4e2519[_0x174c62(_0x49d183._0x36849d,0x26b,0x30a,0x2bd)][_0x171875(-0xfe,-0xd9,-0xf3,-_0x49d183._0x23816f)](_0x53a074))throw new Error(_0x171875(-_0x49d183._0x23e3a2,-0xba,-0x130,-0xbd)+_0x324755+_0x174c62(_0x49d183._0x188d30,_0x49d183._0x1a6976,_0x49d183._0x19b13a,_0x49d183._0x41fa25)+_0x4e2519[_0x174c62(0x2fb,0x2dc,0x2e5,0x2bd)]['join'](',\x20'));return;case'number':if(typeof _0x53a074!==_0x171875(-0x108,-0xb0,-0x12d,-_0x49d183._0x44273f))throw new Error(_0x174c62(0x29e,0x2aa,0x210,_0x49d183._0x510f00)+_0x324755+':\x20expected\x20number');return;case _0x171875(-_0x49d183._0x4f1045,-_0x49d183._0x5561c8,-0xee,-0x139):if(typeof _0x53a074!==_0x174c62(0x1b4,0x1de,0x237,0x21d))throw new Error(_0x174c62(_0x49d183._0x2fd4f7,0x2bd,0x250,0x277)+_0x324755+_0x174c62(0x272,0x2c6,0x1fa,0x265));return;case'array':if(!Array['isArray'](_0x53a074))throw new Error(_0x171875(-0xc6,-0x61,-_0x49d183._0x397a44,-0x62)+_0x324755+_0x171875(-0x5c,-0x93,-0x21,-_0x49d183._0x513bd7));_0x53a074[_0x171875(-_0x49d183._0x4fcaec,-0xbc,_0x49d183._0x1f9c1a,-0x46)]((_0x5a7928,_0x271f0b)=>{function _0x359a88(_0x1e672c,_0x99de91,_0x4efd0a,_0x3f6c95){return _0x174c62(_0x1e672c-_0x15b699._0x4de9e9,_0x99de91-_0x15b699._0x506582,_0x3f6c95,_0x99de91- -_0x15b699._0x5f29e7);}validateAgainstSchema(_0x324755+'['+_0x271f0b+']',_0x5a7928,_0x4e2519[_0x359a88(_0x329b95._0x5cb195,_0x329b95._0x22ba78,-0x22,-0x34)]);});return;case _0x174c62(0x2a7,0x2e3,_0x49d183._0xbf3379,_0x49d183._0x472e08):if(!isJsonObject(_0x53a074))throw new Error(_0x174c62(_0x49d183._0x322918,0x2ba,_0x49d183._0x3123cc,0x277)+_0x324755+_0x174c62(_0x49d183._0xdf8308,0x28c,_0x49d183._0x1e4ded,_0x49d183._0x2e596e));for(const _0x2d7405 of _0x4e2519[_0x174c62(0x297,_0x49d183._0x529771,0x2d1,0x29c)]??[]){if(!Object[_0x174c62(_0x49d183._0x1ec1e6,0x305,_0x49d183._0x65c80f,_0x49d183._0x4432d2)](_0x53a074,_0x2d7405))throw new Error(_0x171875(-_0x49d183._0x23e3a2,-0xe9,-0x6d,-0x5d)+_0x324755+_0x174c62(_0x49d183._0x5ad413,0x2a5,_0x49d183._0x5ae72d,_0x49d183._0x371c11)+_0x2d7405+'\x22');}if(_0x4e2519[_0x171875(-_0x49d183._0x368f08,-_0x49d183._0x5c6644,-0x152,-_0x49d183._0x4a4020)]===![]){const _0x566cff=Object['keys'](_0x53a074)[_0x174c62(_0x49d183._0x34275b,0x249,0x22f,_0x49d183._0x56c16d)](_0x3bc30c=>!Object[_0x171875(-0x55,-0x1,-0x8,-0xb9)](_0x4e2519[_0x171875(-0xa9,-0x69,-0x109,-0xaf)],_0x3bc30c));if(_0x566cff!==void 0x0)throw new Error(_0x171875(-0xc6,-0x8d,-0xea,-0x11e)+_0x324755+_0x174c62(_0x49d183._0x364144,_0x49d183._0x1de9d7,0x2e9,0x2d8)+_0x566cff+'\x22');}for(const [_0x400c93,_0x4115a3]of Object['entries'](_0x4e2519['properties'])){Object['hasOwn'](_0x53a074,_0x400c93)&&validateAgainstSchema(_0x324755+'.'+_0x400c93,_0x53a074[_0x400c93],_0x4115a3);}}}function normalizeToolOutputValue(_0xace598){const _0x2f152e={_0xb3400a:0x3a0,_0x9f8c5:0x36c,_0x2313f2:0x339,_0x25407a:0x3ec,_0x332183:0xf6,_0x5d5ea6:0xdd,_0x3f5587:0x118,_0x15915d:0x356,_0x1ca4cd:0x356,_0x3aae9f:0x1a5,_0x381152:0x15a,_0x3140bf:0x37c,_0x7eeaf8:0x2f7,_0xa86bf4:0x2fc};if(isToolOutputEnvelope(_0xace598))return{'output':_0xace598[_0x5c1d09(0x3fd,_0x2f152e._0xb3400a,_0x2f152e._0x9f8c5,0x35e)],'structured':_0xace598['structured']??{'value':_0xace598[_0x5c1d09(_0x2f152e._0x2313f2,_0x2f152e._0xb3400a,0x3b7,_0x2f152e._0x25407a)]},..._0xace598['content']!==void 0x0?{'content':_0xace598[_0x17d611(_0x2f152e._0x332183,_0x2f152e._0x5d5ea6,0xec,_0x2f152e._0x3f5587)]}:{}};function _0x5c1d09(_0x4e3be8,_0x50ca72,_0x39bec0,_0x4f6390){return _0x23c3(_0x50ca72-0x283,_0x39bec0);}if(typeof _0xace598===_0x5c1d09(_0x2f152e._0x15915d,_0x2f152e._0x1ca4cd,0x31e,0x348))return{'output':_0xace598,'structured':{'value':_0xace598}};if(typeof _0xace598===_0x17d611(_0x2f152e._0x3aae9f,_0x2f152e._0x381152,0x1b0,0x16f)&&_0xace598!==null&&!Array[_0x5c1d09(0x400,0x3ea,_0x2f152e._0x3140bf,0x405)](_0xace598))return{'output':JSON['stringify'](_0xace598,null,0x2),'structured':_0xace598};function _0x17d611(_0x37118d,_0x5614d8,_0x5bc8ee,_0x3fde3e){return _0x23c3(_0x5614d8-0x32,_0x37118d);}return{'output':JSON[_0x5c1d09(_0x2f152e._0x7eeaf8,0x35d,0x32a,_0x2f152e._0xa86bf4)](_0xace598,null,0x2),'structured':{'value':_0xace598}};}function createToolOutput(_0x4d70ed,_0x54fe63={'value':_0x4d70ed},_0x13d901){return{'output':_0x4d70ed,'structured':_0x54fe63,..._0x13d901!==void 0x0?{'content':_0x13d901}:{}};}var ToolExecutionError=class extends Error{[_0x565414(-0x140,-0x169,-0x16a,-0x196)];constructor(_0x4ef817,_0x2b3a87={}){const _0x584af8={_0x19ad91:0x25c,_0x556707:0x303,_0x5a7ee5:0x2bb,_0x5972a4:0x292},_0x1405e5={_0x45a891:0x3db,_0x473c40:0x3};super(_0x4ef817);function _0x133c69(_0x25b89f,_0x4dafef,_0x4d049a,_0x776590){return _0x565414(_0x25b89f-0xef,_0x25b89f,_0x776590-_0x1405e5._0x45a891,_0x776590-_0x1405e5._0x473c40);}function _0x682ffd(_0x369b32,_0x26d8d3,_0x29160c,_0x3552ac){return _0x565414(_0x369b32-0x2c,_0x29160c,_0x3552ac- -0x113,_0x3552ac-0x16e);}this[_0x133c69(0x2c8,_0x584af8._0x19ad91,_0x584af8._0x556707,0x2a2)]='ToolExecutionError',this[_0x133c69(_0x584af8._0x5a7ee5,_0x584af8._0x5972a4,0x289,0x271)]=_0x2b3a87;}};function defineTool(_0x471da9){return _0x471da9;}function resolveToolPermissionClass(_0x48487c){const _0x4e8b5e={_0x32cfa9:0x167,_0x4330fc:0x15b,_0x2a8087:0x21c,_0x178903:0x203,_0x2351a7:0xe8,_0x452374:0xce,_0x5105be:0xff,_0x5ef630:0x18d,_0x43d236:0x12d,_0x3e8d2a:0x14a,_0x2c9f2f:0x26d,_0x4cf2e5:0x2b9},_0x10f8e2={_0x4b8310:0x89},_0x5aa04f=_0x48487c?.[_0x41f7e9(_0x4e8b5e._0x32cfa9,0x115,0xfc,_0x4e8b5e._0x4330fc)];if(_0x5aa04f===_0x31f369(0x281,0x1b9,_0x4e8b5e._0x2a8087,_0x4e8b5e._0x178903)||_0x5aa04f===_0x41f7e9(_0x4e8b5e._0x2351a7,_0x4e8b5e._0x452374,_0x4e8b5e._0x5105be,0x96)||_0x5aa04f===_0x41f7e9(_0x4e8b5e._0x5ef630,0x12e,_0x4e8b5e._0x43d236,_0x4e8b5e._0x3e8d2a))return _0x5aa04f;function _0x31f369(_0x100c9c,_0x3610e3,_0x400bdc,_0x3bf1cb){return _0x565414(_0x100c9c-_0x10f8e2._0x4b8310,_0x3bf1cb,_0x400bdc-0x3d4,_0x3bf1cb-0x27);}function _0x41f7e9(_0x273991,_0x12262b,_0x21317e,_0x16c792){return _0x565414(_0x273991-0x2d,_0x16c792,_0x21317e-0x248,_0x16c792-0xcc);}return _0x31f369(_0x4e8b5e._0x2c9f2f,0x272,_0x4e8b5e._0x4cf2e5,0x286);}var ToolRegistry=class{[_0x565414(-0x1fd,-0x153,-0x1a0,-0x1f8)]=new Map();constructor(_0x175bb2=[]){const _0x495bcd={_0x3a4ffa:0x323,_0x3a3abe:0x3a5,_0x1827d0:0x372},_0x289275={_0x3bdd78:0x11c};function _0x4c2877(_0x8a3f06,_0x241759,_0x4e70f1,_0x2334a5){return _0x565414(_0x8a3f06-0x158,_0x241759,_0x4e70f1-0x4bc,_0x2334a5-_0x289275._0x3bdd78);}for(const _0x24f7d7 of _0x175bb2){this[_0x4c2877(_0x495bcd._0x3a4ffa,_0x495bcd._0x3a3abe,0x38d,_0x495bcd._0x1827d0)](_0x24f7d7);}}['register'](_0x4ffc3a){const _0x3da8f9={_0x4df5c9:0x227,_0xf82ca:0x1cc,_0x2a68d6:0x176,_0x24c6b2:0x1af,_0x51d0a1:0x171},_0x590582={_0x230ef2:0x4f2,_0x11f613:0x53,_0x1e71d6:0xed},_0x2b2d0f={_0x5d50f9:0x17,_0x1d99f4:0x78};function _0x359338(_0xc25301,_0x3aa9a3,_0x2f94e6,_0x311e94){return _0x1d23e3(_0x3aa9a3- -0x4ea,_0x3aa9a3-_0x2b2d0f._0x5d50f9,_0x2f94e6-_0x2b2d0f._0x1d99f4,_0xc25301);}function _0x457701(_0x436520,_0x1a5fce,_0x4fbfcb,_0xc6dc3a){return _0x1d23e3(_0xc6dc3a- -_0x590582._0x230ef2,_0x1a5fce-_0x590582._0x11f613,_0x4fbfcb-_0x590582._0x1e71d6,_0x436520);}this['toolsByName'][_0x359338(-0x1e2,-0x1ea,-_0x3da8f9._0x4df5c9,-_0x3da8f9._0xf82ca)](_0x4ffc3a[_0x359338(-_0x3da8f9._0x2a68d6,-_0x3da8f9._0x24c6b2,-_0x3da8f9._0x51d0a1,-0x1b9)],_0x4ffc3a);}[_0x565414(-0x135,-0x1ab,-0x147,-0x115)](_0x146fa5){const _0x40e497={_0x502e4d:0x300},_0x24f6ac={_0x142d81:0x7f,_0x3f0219:0x138};function _0x14ac3c(_0x41776d,_0x4a6bb0,_0x28d7bd,_0x740735){return _0x1d23e3(_0x4a6bb0- -0x5b0,_0x4a6bb0-_0x24f6ac._0x142d81,_0x28d7bd-_0x24f6ac._0x3f0219,_0x41776d);}return this[_0x14ac3c(-_0x40e497._0x502e4d,-0x2dc,-0x2fb,-0x2c2)]['get'](_0x146fa5);}[_0x1d23e3(0x360,0x312,0x309,0x337)](){const _0x221ecb={_0x53ef6f:0x206,_0x465648:0x260,_0x257c28:0x86},_0x21eb43={_0x41852a:0x10a};function _0x55808d(_0x2ff3b6,_0x3053c0,_0x108a92,_0x129453){return _0x565414(_0x2ff3b6-0x1f4,_0x108a92,_0x2ff3b6-0x3db,_0x129453-0xc9);}function _0x54faa1(_0x155f66,_0x38f677,_0x16f951,_0xfeda72){return _0x565414(_0x155f66-0xda,_0x16f951,_0x155f66-0x141,_0xfeda72-_0x21eb43._0x41852a);}return[...this[_0x55808d(0x23b,0x260,_0x221ecb._0x53ef6f,_0x221ecb._0x465648)][_0x54faa1(-_0x221ecb._0x257c28,-0x76,-0xe6,-0x69)]()];}[_0x1d23e3(0x330,0x307,0x32f,0x2d5)](){const _0x11bde3={_0x263e54:0x461},_0x9c97f={_0x4d1ee1:0x2a3,_0x3b910b:0x277,_0x5a847c:0x29f,_0x45ae9c:0x23d,_0x597628:0x261,_0x197207:0x25b},_0x4dd0ec={_0x2b0707:0x111},_0x322719={_0x953a3b:0x1e3,_0x126556:0x96};function _0x581b65(_0x231c86,_0x47468d,_0x2723ea,_0x1d379d){return _0x565414(_0x231c86-0x15b,_0x231c86,_0x47468d-0x583,_0x1d379d-0x1ee);}return this['list']()[_0x581b65(_0x11bde3._0x263e54,0x41d,0x3e5,0x413)](_0x4d789f=>{function _0x563c08(_0xd9fa6,_0xddcce7,_0x4ea0d7,_0x29a2f7){return _0x581b65(_0xd9fa6,_0x29a2f7- -0x6c1,_0x4ea0d7-_0x322719._0x953a3b,_0x29a2f7-_0x322719._0x126556);}function _0x43a886(_0x1a8a9c,_0x56a1e5,_0x32a5f6,_0x4c157c){return _0x581b65(_0x1a8a9c,_0x4c157c- -0x647,_0x32a5f6-0x7b,_0x4c157c-_0x4dd0ec._0x2b0707);}return{'name':_0x4d789f[_0x563c08(-_0x9c97f._0x4d1ee1,-0x22f,-0x2c5,-_0x9c97f._0x3b910b)],'description':_0x4d789f[_0x563c08(-_0x9c97f._0x5a847c,-_0x9c97f._0x45ae9c,-_0x9c97f._0x597628,-_0x9c97f._0x197207)],'input_schema':_0x4d789f['inputSchema']};});}};function validateToolInput(_0x1c3a87,_0x428b7f){const _0x33492a={_0x163dd6:0x12b},_0x2fe45c={_0x30f78d:0x3ef,_0x1e370d:0x193};function _0x5c4912(_0x2871c1,_0x5b7bdf,_0x2501fa,_0x1877a8){return _0x1d23e3(_0x1877a8- -_0x2fe45c._0x30f78d,_0x5b7bdf-0x1b8,_0x2501fa-_0x2fe45c._0x1e370d,_0x2871c1);}return validateAgainstSchema(_0x5c4912(-_0x33492a._0x163dd6,-0xc0,-0x74,-0xcb),_0x1c3a87,_0x428b7f),_0x1c3a87;}function deriveFinalToolOutput(_0x5a81ec){const _0x34ccfc={_0x1f4374:0x1ea,_0x10abb9:0x1cd,_0x46af1f:0x12c,_0x1af90a:0xb9,_0x12e864:0xf0,_0x4fd226:0x1ff,_0x1f1901:0xfb,_0x5f3bb0:0x106,_0x4611c:0x132,_0x2503b0:0x162,_0x278afe:0x172,_0xb45b67:0x1fe,_0x22771a:0x15c,_0x4cfe92:0x12e,_0x517dd6:0x136,_0x56f395:0x101,_0x9a265c:0xee,_0x4543c0:0xf9,_0x5149a0:0x139,_0x22d99b:0x12d,_0x27d32b:0x140},_0xa96572={_0x21fa3b:0xc3,_0x39eb04:0x8e};function _0x31553d(_0xc53f94,_0x57545a,_0x256b0c,_0x1b97d5){return _0x565414(_0xc53f94-_0xa96572._0x21fa3b,_0x57545a,_0x256b0c-0x78,_0x1b97d5-_0xa96572._0x39eb04);}if(_0x5a81ec[_0x6c567c(0x17b,0x160,_0x34ccfc._0x1f4374,0x18e)]===0x0)return{'output':'','structured':{}};if(_0x5a81ec[_0x6c567c(0x196,_0x34ccfc._0x10abb9,0x1f2,0x18e)]===0x1)return{'output':_0x5a81ec[0x0][_0x31553d(-_0x34ccfc._0x46af1f,-_0x34ccfc._0x1af90a,-_0x34ccfc._0x12e864,-0x9f)],'structured':_0x5a81ec[0x0][_0x6c567c(0x234,0x1c7,_0x34ccfc._0x4fd226,0x1d5)],..._0x5a81ec[0x0][_0x6c567c(0xf8,_0x34ccfc._0x1f1901,_0x34ccfc._0x5f3bb0,0x165)]!==void 0x0?{'content':_0x5a81ec[0x0][_0x31553d(-0x137,-_0x34ccfc._0x4611c,-_0x34ccfc._0x2503b0,-_0x34ccfc._0x278afe)]}:{}};function _0x6c567c(_0x490db0,_0x5b6449,_0x2e1b1a,_0x57eb13){return _0x565414(_0x490db0-0x79,_0x2e1b1a,_0x57eb13-0x33f,_0x57eb13-0x25);}const _0x18ed5a=_0x5a81ec['filter'](_0x1538a6=>_0x1538a6[_0x31553d(-0x1b5,-0x12b,-0x162,-0x155)]!==void 0x0);return{'output':_0x5a81ec[_0x6c567c(0x200,0x1e0,_0x34ccfc._0xb45b67,0x1d9)](_0x243b0f=>_0x243b0f[_0x6c567c(0x1b1,0x1cb,0x190,0x1d7)])[_0x6c567c(_0x34ccfc._0x22771a,_0x34ccfc._0x4cfe92,_0x34ccfc._0x517dd6,0x195)](''),'structured':{'chunks':_0x5a81ec[_0x31553d(-_0x34ccfc._0x56f395,-0x132,-_0x34ccfc._0x9a265c,-0x154)](_0x4b3c2d=>_0x4b3c2d[_0x6c567c(0x1f8,0x20b,0x20e,0x1d5)])},..._0x18ed5a[_0x31553d(-_0x34ccfc._0x4543c0,-0xf6,-_0x34ccfc._0x5149a0,-0xf8)]===0x1?{'content':_0x18ed5a[0x0][_0x31553d(-_0x34ccfc._0x22d99b,-_0x34ccfc._0x27d32b,-0x162,-0x184)]}:{}};}function createToolMeta(){return{'transforms':[]};}function createErrorToolResult(_0x6d6ed4,_0x16a346,_0x1c761b,_0x2d05bf=[]){const _0x49282d={_0x2a9f80:0x31a,_0x23da30:0x338};function _0x2c45b8(_0x34c81d,_0x298b9c,_0x46efa0,_0xbf55f7){return _0x1d23e3(_0xbf55f7- -0x26,_0x298b9c-0xa0,_0x46efa0-0x159,_0x298b9c);}function _0x529c7f(_0x1b1e89,_0x180a81,_0x4e2c69,_0x29427b){return _0x565414(_0x1b1e89-0x13c,_0x4e2c69,_0x180a81-0x34c,_0x29427b-0x4c);}return{'callId':_0x6d6ed4['id'],'toolName':_0x6d6ed4[_0x529c7f(0x207,0x213,0x234,0x260)],'status':_0x2c45b8(_0x49282d._0x2a9f80,0x31b,0x353,_0x49282d._0x23da30),'output':_0x16a346,'structured':_0x1c761b,'chunks':_0x2d05bf,'meta':createToolMeta()};}function _0x1d23e3(_0x513380,_0x272828,_0x4cf053,_0x5aac13){const _0x4592e8={_0x466664:0x1ef};return _0x23c3(_0x513380-_0x4592e8._0x466664,_0x5aac13);}function createRejectedToolResult(_0x10158e,_0x1cd063){const _0xffa7be={_0x24266d:0x256,_0x1a4f9a:0x1eb,_0x8f3d07:0x21c,_0x5ade4c:0x21b,_0x359e19:0x145,_0x1e0cee:0x1ac,_0x20b08a:0x1a6,_0x4c543a:0x1be,_0x213e10:0x154,_0x47f79a:0x1d1,_0x412b52:0x1b5},_0x5222ef={_0x1e4a6d:0x3a,_0xbf7340:0x115},_0x18b1c1={_0x209cab:0x21};function _0x18f918(_0x47fb98,_0x4d8c5d,_0x5ea103,_0x223624){return _0x1d23e3(_0x5ea103- -0x442,_0x4d8c5d-_0x18b1c1._0x209cab,_0x5ea103-0x78,_0x47fb98);}const _0x151cda=_0x1cd063?.['trim']()[_0x347cc7(-_0xffa7be._0x24266d,-_0xffa7be._0x1a4f9a,-_0xffa7be._0x8f3d07,-_0xffa7be._0x5ade4c)]?_0x1cd063:_0x18f918(-_0xffa7be._0x359e19,-_0xffa7be._0x1e0cee,-_0xffa7be._0x20b08a,-_0xffa7be._0x4c543a)+_0x10158e['name'];function _0x347cc7(_0x1cae78,_0x322aa2,_0x2bc4ca,_0x471fca){return _0x565414(_0x1cae78-0x14f,_0x2bc4ca,_0x322aa2- -_0x5222ef._0x1e4a6d,_0x471fca-_0x5222ef._0xbf7340);}return createErrorToolResult(_0x10158e,_0x151cda,{'error':_0x18f918(-0x164,-0xd9,-0x131,-_0xffa7be._0x213e10),..._0x1cd063?.[_0x347cc7(-0x164,-_0xffa7be._0x47f79a,-0x19d,-0x203)]()[_0x347cc7(-0x1f6,-_0xffa7be._0x1a4f9a,-0x193,-_0xffa7be._0x412b52)]?{'reason':_0x1cd063}:{}});}function createAbortedToolResult(_0x157796,_0x30ec6b,_0x140203=[]){const _0x1c6972={_0x4471f3:0xb2,_0x5b47a6:0x52,_0x3b6067:0x7c,_0x31003b:0x333,_0x3e959e:0x317,_0x3bb64f:0x31d},_0x37faee={_0xd92ea9:0x1ac},_0x3bc07b={_0x10c43b:0x5a3,_0x4a914d:0x9c};function _0x994a89(_0x2b1d0f,_0x2eba89,_0x16ceea,_0x50d5af){return _0x1d23e3(_0x2eba89- -_0x3bc07b._0x10c43b,_0x2eba89-0x17e,_0x16ceea-_0x3bc07b._0x4a914d,_0x16ceea);}function _0x4d2dc4(_0x4b5e51,_0x3756de,_0x124cd0,_0x368c6e){return _0x565414(_0x4b5e51-_0x37faee._0xd92ea9,_0x124cd0,_0x368c6e-0x15a,_0x368c6e-0x19e);}const _0x42d9eb=toAbortError(_0x30ec6b);return createErrorToolResult(_0x157796,_0x42d9eb[_0x4d2dc4(-_0x1c6972._0x4471f3,-_0x1c6972._0x5b47a6,-0x59,-_0x1c6972._0x3b6067)],{'error':_0x42d9eb[_0x994a89(-_0x1c6972._0x31003b,-0x305,-_0x1c6972._0x3e959e,-_0x1c6972._0x3bb64f)],'aborted':!![]},_0x140203);}function createSuccessToolResult(_0x44de4f,_0x1e413e,_0x40680a){const _0xdcca8b={_0x28fe78:0x205,_0x3b5dfd:0x245,_0x50ef48:0x231,_0x21bb52:0x178,_0x4113a3:0x153,_0x5284fd:0x180,_0x16740b:0x2e4},_0x8e4f51={_0x480c46:0x584,_0x382015:0xf4,_0x3c4c7f:0x1a9},_0xf76881={_0x4cf9c9:0x122,_0x153e2a:0x14f};function _0x2a0daf(_0x280db0,_0x5dcdfb,_0x49fb17,_0x5b3a8a){return _0x1d23e3(_0x280db0- -_0xf76881._0x4cf9c9,_0x5dcdfb-_0xf76881._0x153e2a,_0x49fb17-0x104,_0x5b3a8a);}function _0x51ed9b(_0x5f23e3,_0x54c2a2,_0x4da1ad,_0x5c7bc2){return _0x1d23e3(_0x5f23e3- -_0x8e4f51._0x480c46,_0x54c2a2-_0x8e4f51._0x382015,_0x4da1ad-_0x8e4f51._0x3c4c7f,_0x5c7bc2);}return{'callId':_0x44de4f['id'],'toolName':_0x44de4f[_0x51ed9b(-0x249,-0x28b,-0x1fd,-_0xdcca8b._0x28fe78)],'status':'ok','output':_0x1e413e[_0x2a0daf(0x1ea,0x1d2,_0xdcca8b._0x3b5dfd,0x1be)],'structured':_0x1e413e[_0x2a0daf(0x1e8,0x24c,0x24d,_0xdcca8b._0x50ef48)],..._0x1e413e[_0x2a0daf(_0xdcca8b._0x21bb52,0x1ca,_0xdcca8b._0x4113a3,_0xdcca8b._0x5284fd)]!==void 0x0?{'content':_0x1e413e[_0x51ed9b(-0x2ea,-_0xdcca8b._0x16740b,-0x292,-0x2b5)]}:{},'chunks':_0x40680a,'meta':createToolMeta()};}function createUnknownToolResult(_0x403b6f){const _0x33ccc8={_0x362a2e:0x14c,_0x279fae:0x14b,_0x4e80a0:0x4d8,_0x2bbfc1:0x4c5},_0x1b5a8a={_0x222d39:0xc1,_0x11c8b7:0x64d},_0x14d760={_0x37cc31:0xde};function _0x360b99(_0xe4c387,_0x262160,_0xaa474b,_0x18defc){return _0x1d23e3(_0x262160- -0x230,_0x262160-0xb6,_0xaa474b-_0x14d760._0x37cc31,_0x18defc);}function _0x59fa86(_0x30d7c0,_0x5e999f,_0xc43af3,_0x1e4b14){return _0x565414(_0x30d7c0-_0x1b5a8a._0x222d39,_0xc43af3,_0x30d7c0-_0x1b5a8a._0x11c8b7,_0x1e4b14-0x10a);}return createErrorToolResult(_0x403b6f,'Unknown\x20tool:\x20'+_0x403b6f[_0x360b99(_0x33ccc8._0x362a2e,0x10b,0xe9,_0x33ccc8._0x279fae)],{'error':_0x59fa86(_0x33ccc8._0x4e80a0,_0x33ccc8._0x2bbfc1,0x4f4,0x50d)});}function isDispatchDecision(_0x42300d){const _0x2c036a={_0x3ef26b:0x169,_0x8c4a14:0x268,_0x5375cc:0x24d,_0x184bfc:0x223,_0x126a19:0x5f,_0x3f3568:0xc8,_0x60b30f:0xcc,_0x1741b5:0x8d,_0x3a6ddf:0xca},_0x39e678={_0x3b86e0:0x102},_0x211e4c={_0x3330e6:0xbb};if(typeof _0x42300d!==_0x4ef432(0xe8,0xc3,0x11a,_0x2c036a._0x3ef26b)||_0x42300d===null)return![];function _0x215494(_0x3d8476,_0x38f92a,_0x184279,_0x418ce9){return _0x565414(_0x3d8476-0xf,_0x418ce9,_0x3d8476- -_0x211e4c._0x3330e6,_0x418ce9-0x1b7);}function _0x4ef432(_0xfbb344,_0xf790e7,_0xdf0e12,_0x465884){return _0x1d23e3(_0xdf0e12- -0x1fd,_0xf790e7-0x136,_0xdf0e12-_0x39e678._0x3b86e0,_0x465884);}return _0x42300d[_0x215494(-_0x2c036a._0x8c4a14,-_0x2c036a._0x5375cc,-_0x2c036a._0x184bfc,-0x226)]===_0x4ef432(_0x2c036a._0x126a19,0x79,_0x2c036a._0x3f3568,_0x2c036a._0x60b30f)||_0x42300d[_0x4ef432(0x70,_0x2c036a._0x1741b5,_0x2c036a._0x3a6ddf,0x7b)]==='run';}function normalizeExecutionError(_0x31083d){const _0x4d53ad={_0x5d66e1:0x1c3,_0x5db092:0x161,_0x4b797d:0x2d3,_0x762272:0x306,_0x567d58:0x28e,_0x4d3215:0x334,_0x1bd8ee:0x23c,_0x4c24fc:0x1a0,_0x4b29d5:0x15e,_0x465de9:0x1c3},_0x5d20ac={_0x306036:0xdb,_0x851fa4:0x69,_0x297eb2:0x83};function _0x1a4300(_0x42a4f6,_0x17f50e,_0x53a580,_0x33fe56){return _0x1d23e3(_0x42a4f6- -_0x5d20ac._0x306036,_0x17f50e-_0x5d20ac._0x851fa4,_0x53a580-_0x5d20ac._0x297eb2,_0x53a580);}if(_0x31083d instanceof ToolExecutionError)return{'errorMessage':_0x31083d[_0x1a4300(_0x4d53ad._0x5d66e1,0x200,0x209,0x16b)],'structured':{'error':_0x31083d[_0x1a4300(0x1c3,0x232,0x194,_0x4d53ad._0x5db092)],..._0x31083d['structured']}};if(_0x31083d instanceof Error)return{'errorMessage':_0x31083d[_0x479ecb(-0x310,-_0x4d53ad._0x4b797d,-_0x4d53ad._0x762272,-_0x4d53ad._0x567d58)],'structured':{'error':_0x31083d[_0x479ecb(-0x29e,-0x2d3,-_0x4d53ad._0x4d3215,-0x2cf)]}};if(typeof _0x31083d===_0x1a4300(0x23c,_0x4d53ad._0x1bd8ee,0x27c,0x265)&&_0x31083d!==null&&'message'in _0x31083d&&typeof _0x31083d[_0x1a4300(0x1c3,0x202,_0x4d53ad._0x4c24fc,_0x4d53ad._0x4b29d5)]==='string')return{'errorMessage':_0x31083d[_0x1a4300(_0x4d53ad._0x465de9,_0x4d53ad._0x4b29d5,0x1be,0x227)],'structured':{'error':_0x31083d[_0x479ecb(-0x27c,-0x2d3,-0x2fc,-0x270)]}};const _0x5b191e=String(_0x31083d);function _0x479ecb(_0x53a2e1,_0x58c421,_0x43640f,_0x308779){return _0x1d23e3(_0x58c421- -0x571,_0x58c421-0x81,_0x43640f-0x159,_0x308779);}return{'errorMessage':_0x5b191e,'structured':{'error':_0x5b191e}};}async function emitEvent(_0x593cf3,_0x3deb32,_0x532ae3){await _0x593cf3?.(_0x3deb32,_0x532ae3);}async function resolveDispatchDecision(_0x1e5e08,_0x3e9f81,_0x14515c){const _0xa1fff9={_0x12f0fd:0x22,_0x4d4873:0x4c,_0x3ba9bb:0x88,_0x399651:0xa1,_0x52d17e:0x1,_0x41cb14:0x2a},_0x43c7ad={_0x4b1791:0x1a4,_0x5ef9fc:0x1f3,_0x32dd29:0x27,_0x1c1cc1:0x14,_0x684a5b:0x94,_0x297b0b:0xbd,_0x3c1a7c:0xee},_0x5b75d5={_0x459d1a:0x16,_0x3cd57e:0x1fe},_0x38019f={_0xa0160b:0xba,_0x26ed18:0x158},_0x48c4fe={_0x211e2d:0x1b5,_0x4189ba:0x1c8};if(!_0x1e5e08)return{'action':_0x11a0c8(0x3d,-_0xa1fff9._0x12f0fd,-0x42,-0x2a)};const _0x4d7741=Promise[_0x11a0c8(_0xa1fff9._0x4d4873,-0x5b,-0x75,-0xd)]()['then'](()=>_0x1e5e08(_0x3e9f81,_0x14515c));function _0x11a0c8(_0x103291,_0x5756fe,_0x1fbaed,_0x28c3de){return _0x565414(_0x103291-_0x48c4fe._0x211e2d,_0x103291,_0x28c3de-0x1b3,_0x28c3de-_0x48c4fe._0x4189ba);}if(!_0x14515c['signal']){const _0x20eac4=await _0x4d7741;return isDispatchDecision(_0x20eac4)?_0x20eac4:{'action':'run'};}function _0x1e64ae(_0x239e2e,_0x23c592,_0x36469d,_0x110428){return _0x565414(_0x239e2e-0x67,_0x239e2e,_0x110428-_0x38019f._0xa0160b,_0x110428-_0x38019f._0x26ed18);}const _0x485c3c=new Promise((_0x30e4fa,_0x4365a4)=>{const _0x511b6a={_0x6880f3:0x78},_0x58e3b1={_0x56e458:0x423,_0x321bc1:0x449,_0xdb952:0x484,_0x5d58f3:0x409,_0x3e4ad0:0x443,_0x20aa5b:0x43d,_0x35c040:0x436,_0x9f462a:0x41f},_0x22f3be=()=>{function _0x193b9e(_0x3c2a8d,_0x1bca59,_0x3c8c8d,_0x58eeeb){return _0x23c3(_0x1bca59-0x37a,_0x3c2a8d);}_0x14515c[_0x193b9e(0x3c5,_0x58e3b1._0x56e458,_0x58e3b1._0x321bc1,0x414)]?.[_0x193b9e(0x48b,0x4ca,0x4dc,_0x58e3b1._0xdb952)](_0x5c8e63(_0x58e3b1._0x5d58f3,_0x58e3b1._0x3e4ad0,_0x58e3b1._0x20aa5b,0x468),_0x22f3be);function _0x5c8e63(_0x31b516,_0x1adf35,_0xb2edf5,_0x4bd2fa){return _0x23c3(_0x1adf35-0x347,_0xb2edf5);}_0x4365a4(toAbortError(_0x14515c[_0x193b9e(0x3cf,_0x58e3b1._0x56e458,0x47f,0x405)]?.[_0x5c8e63(_0x58e3b1._0x35c040,0x470,_0x58e3b1._0x9f462a,0x467)]));};function _0x5534c9(_0xd39ab3,_0x56f1db,_0x157a6c,_0x55e75c){return _0x11a0c8(_0x56f1db,_0x56f1db-_0x5b75d5._0x459d1a,_0x157a6c-0x131,_0x55e75c-_0x5b75d5._0x3cd57e);}if(_0x14515c['signal']?.[_0x5534c9(_0x43c7ad._0x4b1791,0x232,0x1b3,_0x43c7ad._0x5ef9fc)]){_0x4365a4(toAbortError(_0x14515c[_0x31792a(_0x43c7ad._0x32dd29,_0x43c7ad._0x1c1cc1,0x37,0x8e)]['reason']));return;}function _0x31792a(_0x1fbf31,_0x4f87ce,_0x46bbcb,_0x3c7ef0){return _0x11a0c8(_0x1fbf31,_0x4f87ce-0xd5,_0x46bbcb-_0x511b6a._0x6880f3,_0x46bbcb-0x60);}_0x14515c[_0x31792a(-0x9,0x75,0x37,-0x21)]?.[_0x31792a(0x97,0xe8,0xd6,_0x43c7ad._0x684a5b)](_0x31792a(0x57,_0x43c7ad._0x297b0b,0x8a,_0x43c7ad._0x3c1a7c),_0x22f3be,{'once':!![]});}),_0x118e01=await Promise[_0x1e64ae(-_0xa1fff9._0x3ba9bb,-0x36,-_0xa1fff9._0x399651,-0x73)]([_0x4d7741,_0x485c3c]);return isDispatchDecision(_0x118e01)?_0x118e01:{'action':_0x11a0c8(0x19,-_0xa1fff9._0x52d17e,-0x67,-_0xa1fff9._0x41cb14)};}async function executeCapturedToolCall(_0xffa2d2,_0x575bb8,_0x5d93f0,_0x57d4df,_0x4ca072){const _0x498fda={_0x321e5e:0x215,_0x5b011f:0x2d7,_0x3fa55e:0x283,_0xfce2a3:0x2c4,_0xed137a:0x1ee,_0x236d93:0x1bc,_0x78d613:0x250,_0x19a9b5:0x203,_0x3d71d6:0x339,_0xa0a856:0x1b7,_0x38c2e3:0x1f9,_0x10bd30:0x223,_0x2ab76e:0x239,_0xc30331:0x22e,_0x5cc1e4:0x196,_0x2033c7:0x1ac,_0x5569cf:0x213,_0x4850c4:0x25f,_0x5380ff:0x28f,_0x35f588:0x289,_0x3f2410:0x2a2,_0x2b1276:0x270,_0xada0e2:0x25a,_0x7d83d3:0x228,_0x5ca679:0x28c,_0x54cc43:0x1f4,_0x48f27c:0x208,_0x530306:0x2bc,_0x3c2e42:0x2ad,_0x128a16:0x30d,_0x337bda:0x343,_0x26dcf1:0x2d0,_0x33b1f3:0x261,_0x21e656:0x29c,_0x5efd33:0x1d1,_0x4d1139:0x27d,_0x552182:0x2b3,_0x731272:0x25f,_0x250b6b:0x236,_0x13081f:0x26b,_0x2e0899:0x2a6,_0x3f8c20:0x305,_0x4cd216:0x30e,_0x507cd9:0x266,_0xeab56f:0x2bf,_0xeec803:0x2ec,_0x10d4c0:0x2bf,_0x2eea18:0x288,_0x4325c2:0x27a,_0x10c40a:0x223,_0x1ddd08:0x30f,_0x27083f:0x2bf,_0x467460:0x2a9},_0x3ec99f={_0x38a4b5:0x23c,_0x1a2fb5:0x203,_0x2fe1db:0x23d,_0x16412f:0x182,_0x5c4bee:0x1cc,_0x5b495b:0x1cf},_0x364639={_0x4650d9:0x13c},_0x583103={_0x361e30:0x15},_0x18d69d={_0x890f06:0x23,_0x28d750:0x117},_0x147a12={_0x3b7a14:0x34},_0x589f8a={..._0x5d93f0,'toolCallId':_0x575bb8['id'],'permissionClass':resolveToolPermissionClass(_0xffa2d2),'executionAuthorization':void 0x0};throwIfAborted(_0x589f8a['signal']);let _0x4f854b;try{_0x4f854b=await resolveDispatchDecision(_0x57d4df,_0x575bb8,_0x589f8a);}catch(_0x112971){if(isAbortError(_0x112971)){const _0x149d76=createAbortedToolResult(_0x575bb8,_0x112971);return await emitEvent(_0x4ca072,{'type':'tool_completed','toolCall':_0x575bb8,'result':_0x149d76},_0x589f8a),_0x149d76;}const {errorMessage:_0x324a28,structured:_0x5ca8b3}=normalizeExecutionError(_0x112971),_0x3335d6=createErrorToolResult(_0x575bb8,_0x324a28,_0x5ca8b3);return await emitEvent(_0x4ca072,{'type':'tool_completed','toolCall':_0x575bb8,'result':_0x3335d6},_0x589f8a),_0x3335d6;}throwIfAborted(_0x589f8a[_0x32298d(-_0x498fda._0x321e5e,-_0x498fda._0x5b011f,-0x224,-_0x498fda._0x3fa55e)]);if(_0x4f854b['action']===_0x32298d(-_0x498fda._0xfce2a3,-0x278,-_0x498fda._0xed137a,-0x256)){const _0x694741=createRejectedToolResult(_0x575bb8,_0x4f854b[_0x32298d(-_0x498fda._0x236d93,-_0x498fda._0x78d613,-0x23d,-_0x498fda._0x19a9b5)]);return await emitEvent(_0x4ca072,{'type':_0x3c5dc7(0x272,0x2d8,0x307,_0x498fda._0x3d71d6),'toolCall':_0x575bb8,'result':_0x694741},_0x589f8a),_0x694741;}function _0x32298d(_0x17959a,_0x123a6a,_0x3a4d4f,_0x48108f){return _0x565414(_0x17959a-_0x147a12._0x3b7a14,_0x123a6a,_0x48108f- -0xa7,_0x48108f-0x193);}function _0x3c5dc7(_0x418c7a,_0x1ddb90,_0x82e0c5,_0x170a05){return _0x565414(_0x418c7a-_0x18d69d._0x890f06,_0x170a05,_0x1ddb90-0x43b,_0x170a05-_0x18d69d._0x28d750);}if(!_0xffa2d2){const _0x4d8a44=createUnknownToolResult(_0x575bb8);return await emitEvent(_0x4ca072,{'type':_0x32298d(-_0x498fda._0xa0a856,-0x1b6,-_0x498fda._0x38c2e3,-_0x498fda._0x10bd30),'toolCall':_0x575bb8,'result':_0x4d8a44},_0x589f8a),_0x4d8a44;}const _0x119f12={..._0x589f8a,'executionAuthorization':_0x4f854b['executionAuthorization']};throwIfAborted(_0x119f12[_0x3c5dc7(0x21f,0x25f,_0x498fda._0x2ab76e,_0x498fda._0xc30331)]),await emitEvent(_0x4ca072,{'type':_0x32298d(-0x1a6,-0x1df,-_0x498fda._0x5cc1e4,-_0x498fda._0x2033c7),'toolCall':_0x575bb8},_0x119f12);try{throwIfAborted(_0x119f12[_0x3c5dc7(_0x498fda._0x5569cf,_0x498fda._0x4850c4,0x219,0x211)]);const _0x19647c=validateToolInput(_0x575bb8[_0x3c5dc7(_0x498fda._0x5380ff,0x2eb,_0x498fda._0x35f588,0x342)],_0xffa2d2['inputSchema']),_0x1c448f=await _0xffa2d2['execute'](_0x19647c,_0x119f12),_0x3da514=[],_0x4988dc=addAbortListener(_0x119f12[_0x3c5dc7(_0x498fda._0x3f2410,0x25f,_0x498fda._0x2b1276,_0x498fda._0x78d613)],()=>{function _0x345cda(_0x3b48dc,_0x373a1e,_0x3879dc,_0x25d002){return _0x32298d(_0x3b48dc-0x39,_0x25d002,_0x3879dc-0x4e,_0x3b48dc- -_0x583103._0x361e30);}function _0x489bee(_0x41c432,_0x10a04f,_0x20b2c7,_0x46b19c){return _0x3c5dc7(_0x41c432-_0x364639._0x4650d9,_0x46b19c- -0x10c,_0x20b2c7-0x75,_0x10a04f);}void _0x1c448f[_0x489bee(_0x3ec99f._0x38a4b5,_0x3ec99f._0x1a2fb5,_0x3ec99f._0x2fe1db,0x217)](void 0x0)[_0x489bee(_0x3ec99f._0x16412f,_0x3ec99f._0x5c4bee,0x189,_0x3ec99f._0x5b495b)](()=>{});});try{throwIfAborted(_0x119f12[_0x3c5dc7(_0x498fda._0xada0e2,_0x498fda._0x4850c4,_0x498fda._0x7d83d3,_0x498fda._0x5ca679)]);let _0x11e53b=await _0x1c448f['next']();while(!_0x11e53b[_0x32298d(-0x1a5,-_0x498fda._0x54cc43,-0x1aa,-_0x498fda._0x48f27c)]){throwIfAborted(_0x119f12[_0x32298d(-0x232,-_0x498fda._0x530306,-_0x498fda._0x3c2e42,-_0x498fda._0x3fa55e)]);const _0x5c0ade=normalizeToolOutputValue(_0x11e53b[_0x3c5dc7(0x2ec,0x305,_0x498fda._0x128a16,_0x498fda._0x337bda)]);_0x3da514[_0x32298d(-_0x498fda._0x26dcf1,-_0x498fda._0x33b1f3,-_0x498fda._0x21e656,-0x27a)](_0x5c0ade),await emitEvent(_0x4ca072,{'type':_0x32298d(-_0x498fda._0x5efd33,-0x218,-_0x498fda._0x4d1139,-0x224),'toolCall':_0x575bb8,'chunk':_0x5c0ade},_0x119f12),throwIfAborted(_0x119f12[_0x3c5dc7(_0x498fda._0x552182,_0x498fda._0x731272,0x26c,_0x498fda._0x2b1276)]),_0x11e53b=await _0x1c448f[_0x32298d(-_0x498fda._0x250b6b,-_0x498fda._0x530306,-0x284,-_0x498fda._0x13081f)]();}throwIfAborted(_0x119f12['signal']);const _0xafec95=_0x11e53b[_0x3c5dc7(_0x498fda._0x2e0899,_0x498fda._0x3f8c20,0x2ac,_0x498fda._0x4cd216)]===void 0x0?deriveFinalToolOutput(_0x3da514):normalizeToolOutputValue(_0x11e53b['value']),_0x422b94=createSuccessToolResult(_0x575bb8,_0xafec95,_0x3da514);return await emitEvent(_0x4ca072,{'type':_0x3c5dc7(_0x498fda._0x507cd9,_0x498fda._0xeab56f,0x281,_0x498fda._0xeec803),'toolCall':_0x575bb8,'result':_0x422b94},_0x119f12),_0x422b94;}catch(_0x273606){if(isAbortError(_0x273606)){const _0x322c31=createAbortedToolResult(_0x575bb8,_0x273606,_0x3da514);return await emitEvent(_0x4ca072,{'type':_0x3c5dc7(0x2d6,_0x498fda._0x10d4c0,_0x498fda._0x2eea18,_0x498fda._0x4325c2),'toolCall':_0x575bb8,'result':_0x322c31},_0x119f12),_0x322c31;}const {errorMessage:_0x1b6eff,structured:_0x582ff5}=normalizeExecutionError(_0x273606),_0x4441a7=createErrorToolResult(_0x575bb8,_0x1b6eff,_0x582ff5,_0x3da514);return await emitEvent(_0x4ca072,{'type':_0x32298d(-0x25b,-0x208,-0x24b,-_0x498fda._0x10bd30),'toolCall':_0x575bb8,'result':_0x4441a7},_0x119f12),_0x4441a7;}finally{_0x4988dc();}}catch(_0xca36d9){if(isAbortError(_0xca36d9)){const _0x2017f2=createAbortedToolResult(_0x575bb8,_0xca36d9);return await emitEvent(_0x4ca072,{'type':_0x32298d(-0x1b6,-0x214,-0x1dc,-_0x498fda._0x10c40a),'toolCall':_0x575bb8,'result':_0x2017f2},_0x119f12),_0x2017f2;}const {errorMessage:_0x24b52e,structured:_0x51a15}=normalizeExecutionError(_0xca36d9),_0x357920=createErrorToolResult(_0x575bb8,_0x24b52e,_0x51a15);return await emitEvent(_0x4ca072,{'type':_0x3c5dc7(_0x498fda._0x1ddd08,_0x498fda._0x27083f,0x2b9,_0x498fda._0x467460),'toolCall':_0x575bb8,'result':_0x357920},_0x119f12),_0x357920;}}function _0x23c3(_0x31f3c7,_0x17efc9){_0x31f3c7=_0x31f3c7-0xa4;const _0x35c297=_0x35c2();let _0x23c3af=_0x35c297[_0x31f3c7];if(_0x23c3['JOLRwY']===undefined){var _0x5b2ab4=function(_0x482608){const _0x141ea0='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xa11462='',_0x260c07='';for(let _0xbf9ab1=0x0,_0x324755,_0x53a074,_0x4e2519=0x0;_0x53a074=_0x482608['charAt'](_0x4e2519++);~_0x53a074&&(_0x324755=_0xbf9ab1%0x4?_0x324755*0x40+_0x53a074:_0x53a074,_0xbf9ab1++%0x4)?_0xa11462+=String['fromCharCode'](0xff&_0x324755>>(-0x2*_0xbf9ab1&0x6)):0x0){_0x53a074=_0x141ea0['indexOf'](_0x53a074);}for(let _0x531458=0x0,_0x598b78=_0xa11462['length'];_0x531458<_0x598b78;_0x531458++){_0x260c07+='%'+('00'+_0xa11462['charCodeAt'](_0x531458)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x260c07);};_0x23c3['KbKGGE']=_0x5b2ab4,_0x23c3['PJTkaC']={},_0x23c3['JOLRwY']=!![];}const _0x42122d=_0x35c297[0x0],_0x331a8a=_0x31f3c7+_0x42122d,_0x9192ce=_0x23c3['PJTkaC'][_0x331a8a];return!_0x9192ce?(_0x23c3af=_0x23c3['KbKGGE'](_0x23c3af),_0x23c3['PJTkaC'][_0x331a8a]=_0x23c3af):_0x23c3af=_0x9192ce,_0x23c3af;}async function executeToolCall(_0x4c418,_0xf0795a,_0x24fc09,_0x27ff62,_0x1d2789){const _0x59d23f={_0x1dea3d:0x3b,_0x1fcbf5:0x61,_0x3af0a5:0x2d,_0x4a7039:0x44,_0x544f0a:0x1c,_0x264e40:0x9,_0x4c5e97:0x30,_0x1d7cf7:0x61,_0x133752:0x10,_0x2dddad:0x2ef,_0x4c2e70:0x2d3},_0x34823a={_0x4dfd8a:0x475};function _0x58fe3d(_0x4ed885,_0x4805fb,_0x2f1f27,_0x2a262a){return _0x565414(_0x4ed885-0x153,_0x2a262a,_0x4805fb-_0x34823a._0x4dfd8a,_0x2a262a-0x131);}function _0x5705d0(_0x7fdd82,_0xfa57ae,_0x3ba5f2,_0x2b6411){return _0x565414(_0x7fdd82-0xcd,_0x3ba5f2,_0x7fdd82-0x10c,_0x2b6411-0xcc);}const _0x1f51e0=_0x4c418[_0x5705d0(-_0x59d23f._0x1dea3d,-0x35,-0x3f,-_0x59d23f._0x1fcbf5)](_0xf0795a[_0x5705d0(-_0x59d23f._0x3af0a5,-_0x59d23f._0x4a7039,0x24,_0x59d23f._0x544f0a)]),_0x594c69=_0x1f51e0?.[_0x5705d0(-_0x59d23f._0x264e40,_0x59d23f._0x4c5e97,-_0x59d23f._0x1d7cf7,-_0x59d23f._0x133752)]?.[_0x58fe3d(_0x59d23f._0x2dddad,_0x59d23f._0x4c2e70,0x2b6,0x2e4)]();try{return await executeCapturedToolCall(_0x1f51e0,_0xf0795a,_0x24fc09,_0x27ff62,_0x1d2789);}finally{_0x594c69?.();}}function createInternalToolRuntime(_0x5af644=[],_0x40e77a={}){const _0x5205d6={_0x55ab5d:0x13b,_0x216e5d:0x128,_0x49aa2e:0x111},_0x2b6e47={_0x3baad3:0x196},_0x1c7ace={_0x4fc35:0x3c9},_0x2d8851={_0x2edc57:0xd6,_0x5c6184:0xca},_0x50fc87={_0x2cd771:0x77};let _0x5cb364=new ToolRegistry(_0x5af644);return{'listToolSchemas'(){function _0x3a2c66(_0x3a88eb,_0x3ca60c,_0x344302,_0x58cae7){return _0x23c3(_0x58cae7- -_0x50fc87._0x2cd771,_0x344302);}return _0x5cb364[_0x3a2c66(_0x2d8851._0x2edc57,0xbb,0xd1,_0x2d8851._0x5c6184)]();},'setTools'(_0xac1a72){_0x5cb364=new ToolRegistry(_0xac1a72);},async 'executeCalls'(_0x111be8,_0xd6f7f0){const _0x52b9fc={_0xbb6696:0x20d};function _0x463420(_0x117f20,_0x449124,_0x23f20b,_0x458854){return _0x23c3(_0x117f20-_0x1c7ace._0x4fc35,_0x449124);}function _0x2d5328(_0xf6ebbb,_0x47dfdf,_0x22bb19,_0x10f01e){return _0x23c3(_0x10f01e- -_0x52b9fc._0xbb6696,_0xf6ebbb);}return await Promise[_0x2d5328(-_0x5205d6._0x55ab5d,-0xcd,-_0x5205d6._0x216e5d,-0x10c)](_0x111be8[_0x2d5328(-_0x5205d6._0x49aa2e,-0x88,-0x98,-0xee)](async _0x56645c=>{const _0x2f564f={_0x46d0d2:0x1d5,_0x1c085e:0xc2,_0x5a7a83:0x10b};function _0x448ec7(_0x465a7c,_0x4a76c7,_0x189631,_0x3ff95e){return _0x2d5328(_0x4a76c7,_0x4a76c7-_0x2f564f._0x46d0d2,_0x189631-_0x2f564f._0x1c085e,_0x465a7c- -_0x2f564f._0x5a7a83);}return await executeToolCall(_0x5cb364,_0x56645c,_0xd6f7f0,_0x40e77a['onToolCall'],_0x40e77a[_0x448ec7(-_0x2b6e47._0x3baad3,-0x1bc,-0x1a7,-0x14d)]);}));},async 'execute'(_0x431db6,_0x1a90bf){const [_0xe8b0dc]=await this['executeCalls']([_0x431db6],_0x1a90bf);return _0xe8b0dc;}};}function getOrderedObserverExtensions(_0x5598ff,_0x336a95){const _0xc2fd62={_0x553858:0xae,_0x4aa1f3:0x11f,_0x129f46:0xb2},_0x359de0={_0x2529bb:0x218},_0x3318c8={_0x4f9b72:0x1a7},_0x5ecf14={_0x31a239:0x1ec,_0x2f0b69:0x1d6,_0x1aff92:0x4b5,_0x26f735:0x425,_0x5b7f32:0x44d,_0x33d70d:0x485,_0x33a616:0x47e},_0x5578c4={_0x507f5c:0xa3,_0x808890:0x4ef},_0x556053={_0x24d5d1:0x19},_0x66ec0f={_0x581d73:0x2d4,_0xa145f9:0x152},_0x57ee05={_0x2bfe98:0x44};function _0x2882a1(_0x44f01c,_0x55e6d8,_0x8ab2e4,_0x4e7bd9){return _0x1d23e3(_0x4e7bd9- -0x3a7,_0x55e6d8-0x5a,_0x8ab2e4-_0x57ee05._0x2bfe98,_0x55e6d8);}function _0x5a66a8(_0x5eac52,_0x521f29,_0x47d4de,_0x3bdfc1){return _0x1d23e3(_0x47d4de- -_0x66ec0f._0x581d73,_0x521f29-0x1ce,_0x47d4de-_0x66ec0f._0xa145f9,_0x3bdfc1);}return _0x5598ff[_0x2882a1(-_0xc2fd62._0x553858,-0x4e,-0xb0,-0xa5)](_0x1abc71=>{function _0x52f82f(_0x214a13,_0x522ec1,_0x16801e,_0x1337c0){return _0x2882a1(_0x214a13-_0x556053._0x24d5d1,_0x16801e,_0x16801e-0xa7,_0x522ec1-0x2b7);}function _0x2fb033(_0x6600d4,_0x8de59e,_0x41e8d9,_0x296d27){return _0x2882a1(_0x6600d4-0x137,_0x8de59e,_0x41e8d9-_0x5578c4._0x507f5c,_0x296d27-_0x5578c4._0x808890);}return _0x1abc71[_0x52f82f(_0x5ecf14._0x31a239,_0x5ecf14._0x2f0b69,0x1c3,0x1f5)]!==![]&&_0x1abc71[_0x2fb033(0x482,0x479,0x45e,0x417)]===_0x336a95&&_0x1abc71[_0x2fb033(_0x5ecf14._0x1aff92,_0x5ecf14._0x26f735,0x4aa,_0x5ecf14._0x5b7f32)]===_0x2fb033(0x41d,0x426,_0x5ecf14._0x33d70d,_0x5ecf14._0x33a616);})[_0x2882a1(-0x117,-0xc7,-_0xc2fd62._0x4aa1f3,-_0xc2fd62._0x129f46)]((_0x2ee7aa,_0x4f3bab)=>{const _0xe22e97={_0x416042:0x6c};function _0x2b05b7(_0x4bcdd4,_0x5b9f3b,_0xd51289,_0x25fed3){return _0x5a66a8(_0x4bcdd4-0x1c,_0x5b9f3b-_0xe22e97._0x416042,_0x4bcdd4- -0x23d,_0x25fed3);}if(_0x2ee7aa['terminal']===!![]&&_0x4f3bab[_0x4c4d56(-0x202,-0x1f7,-_0x359de0._0x2529bb,-0x1b4)]!==!![])return 0x1;if(_0x2ee7aa['terminal']!==!![]&&_0x4f3bab[_0x4c4d56(-0x1f3,-0x21e,-_0x359de0._0x2529bb,-0x20b)]===!![])return-0x1;function _0x4c4d56(_0xf30951,_0x54f220,_0x33f051,_0x260cc0){return _0x2882a1(_0xf30951-_0x3318c8._0x4f9b72,_0xf30951,_0x33f051-0xaf,_0x33f051- -0x141);}return _0x2ee7aa['order']-_0x4f3bab['order'];});}function getOrderedTransformerExtensions(_0x403768,_0x245d17){const _0x44d83e={_0x1f9e01:0x395,_0x1cb60b:0x342,_0x36d8b2:0x374,_0x50a765:0x388,_0x79a88d:0x3ab},_0x3699a9={_0x24ac16:0x9b,_0x18e8ff:0x103,_0x5d5bf2:0x93,_0x1e0cd1:0x48,_0x3179a2:0x8a,_0x563d92:0x79,_0x93a70f:0x4b,_0x2e8c4f:0x54,_0x3835b7:0x7b,_0x48a6de:0x94},_0x5b7c3a={_0x22fc97:0x45,_0x39bb6a:0x112},_0xfe88a7={_0xf917bd:0x1a4,_0x1ee68e:0x507,_0x5b4f2e:0xc8};function _0x3616f1(_0x4cfa86,_0x2c65ee,_0x16dd59,_0xb84028){return _0x565414(_0x4cfa86-_0xfe88a7._0xf917bd,_0xb84028,_0x16dd59-_0xfe88a7._0x1ee68e,_0xb84028-_0xfe88a7._0x5b4f2e);}function _0xd20e3f(_0x13cb07,_0x46992c,_0xed6f6d,_0x61fdcb){return _0x1d23e3(_0x13cb07- -0x19e,_0x46992c-_0x5b7c3a._0x22fc97,_0xed6f6d-_0x5b7c3a._0x39bb6a,_0xed6f6d);}return _0x403768[_0x3616f1(0x3ba,0x3fc,_0x44d83e._0x1f9e01,_0x44d83e._0x1cb60b)](_0x26c86f=>{const _0x10248b={_0x125993:0x3ec},_0x2963d9={_0x9d6aa6:0x1e3,_0x24a03f:0x7d};function _0xafbd66(_0x27d12b,_0x4f74bd,_0x4dc1a6,_0x396fab){return _0x3616f1(_0x27d12b-_0x2963d9._0x9d6aa6,_0x4f74bd-_0x2963d9._0x24a03f,_0x396fab- -0x1ec,_0x27d12b);}function _0x230a0f(_0x4dc21a,_0x1df94e,_0x1377ff,_0x211adf){return _0x3616f1(_0x4dc21a-0xe5,_0x1df94e-0x7d,_0x1377ff- -_0x10248b._0x125993,_0x1df94e);}return _0x26c86f[_0x230a0f(-_0x3699a9._0x24ac16,-_0x3699a9._0x18e8ff,-_0x3699a9._0x5d5bf2,-0xe9)]!==![]&&_0x26c86f[_0x230a0f(-_0x3699a9._0x1e0cd1,-0xea,-_0x3699a9._0x3179a2,-_0x3699a9._0x563d92)]===_0x245d17&&_0x26c86f[_0x230a0f(-0x93,-_0x3699a9._0x93a70f,-_0x3699a9._0x2e8c4f,-0x63)]===_0x230a0f(-0xe4,-0x2e,-_0x3699a9._0x3835b7,-_0x3699a9._0x48a6de);})[_0x3616f1(0x336,_0x44d83e._0x36d8b2,_0x44d83e._0x50a765,_0x44d83e._0x79a88d)]((_0x377df4,_0x37fe46)=>_0x377df4[_0xd20e3f(0x1a8,0x17b,0x139,0x158)]-_0x37fe46[_0x3616f1(0x3ed,0x441,0x3d9,0x420)]);}function createExtensionRegistry(){const _0x440ef2={_0x5bff42:0x200,_0x380083:0x1f1},_0x16fbea={_0x4641df:0xfb},_0x626d2a={_0x2e07e1:0x2b1,_0xbcee26:0x101,_0x2a3203:0x14b,_0x2fd07e:0x2d3,_0x28a1a5:0x272,_0x2184bb:0x2db,_0x52b671:0x274,_0x2d51ea:0x1b5,_0x259b6e:0x2fe,_0x4b85ad:0x314,_0x11852a:0x376,_0x214e24:0x1f1,_0x2ae0e2:0x1d3,_0x25c3ac:0x19e,_0x3b01ef:0x232,_0x54897d:0x1e2,_0x4786e6:0x15f,_0x24a3be:0x2aa,_0xcb31b7:0x2c6,_0x2a613:0x2a4,_0x2ece6e:0x263},_0x3eef49={_0xfd23b2:0x19b},_0x5956bc=[];return{'register'(_0x53df79){const _0x5bce8b={_0x2aaa80:0x2b3};function _0x2c58a7(_0x267582,_0xbe9fa4,_0xba22de,_0x504a93){return _0x23c3(_0xbe9fa4-_0x3eef49._0xfd23b2,_0xba22de);}function _0x161843(_0x49272b,_0x520177,_0x42bc9d,_0x32714c){return _0x23c3(_0x520177- -_0x5bce8b._0x2aaa80,_0x32714c);}if(_0x53df79[_0x2c58a7(0x27c,_0x626d2a._0x2e07e1,0x2ae,0x2fe)]===_0x161843(-_0x626d2a._0xbcee26,-0x16c,-_0x626d2a._0x2a3203,-0x128)&&_0x53df79[_0x2c58a7(_0x626d2a._0x2fd07e,_0x626d2a._0x28a1a5,0x20b,_0x626d2a._0x2184bb)]!==![]&&_0x53df79[_0x2c58a7(0x29e,0x27c,0x2d2,_0x626d2a._0x52b671)]===!![]){const _0x4ab9cc=_0x5956bc[_0x161843(-0x221,-_0x626d2a._0x2d51ea,-0x1a9,-0x1ae)](_0x4d9eac=>_0x4d9eac[_0x161843(-0x204,-0x19d,-0x1b6,-0x1fb)]===_0x161843(-0x136,-0x16c,-0x120,-0x15e)&&_0x4d9eac[_0x2c58a7(0x2aa,0x272,0x21e,0x25b)]!==![]&&_0x4d9eac['stage']===_0x53df79[_0x161843(-0x1cf,-0x1d3,-0x204,-0x197)]&&_0x4d9eac['terminal']===!![]);if(_0x4ab9cc)throw new Error(_0x2c58a7(_0x626d2a._0x259b6e,_0x626d2a._0x4b85ad,0x2be,_0x626d2a._0x11852a)+_0x53df79['id']+'\x22\x20for\x20'+_0x53df79[_0x161843(-_0x626d2a._0x214e24,-_0x626d2a._0x2ae0e2,-_0x626d2a._0x25c3ac,-_0x626d2a._0x3b01ef)]+_0x161843(-_0x626d2a._0x54897d,-0x1a5,-_0x626d2a._0x4786e6,-0x1cc)+_0x4ab9cc['id']+_0x2c58a7(_0x626d2a._0x24a3be,_0x626d2a._0xcb31b7,_0x626d2a._0x2a613,_0x626d2a._0x2ece6e));}_0x5956bc[_0x161843(-0x1b3,-0x201,-0x263,-0x1f9)]({..._0x53df79});},async 'runTransformers'(_0x21f13a,_0x5be870,_0x5262e9){let _0x5f0e4c=_0x5be870;for(const _0x4a2702 of getOrderedTransformerExtensions(_0x5956bc,_0x21f13a)){_0x5f0e4c=await _0x4a2702['run'](_0x5f0e4c,_0x5262e9);}return _0x5f0e4c;},async 'runObservers'(_0x2f7820,_0x27ffc4,_0x448567){function _0x14618b(_0xa1efeb,_0x2a02c6,_0x300e77,_0x27569){return _0x23c3(_0x2a02c6-_0x16fbea._0x4641df,_0x300e77);}for(const _0x449241 of getOrderedObserverExtensions(_0x5956bc,_0x2f7820)){await _0x449241[_0x14618b(_0x440ef2._0x5bff42,0x1a3,0x170,_0x440ef2._0x380083)](_0x27ffc4,_0x448567);}}};}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 applyModelCall(_0xe7810,_0x5d8c84){const _0x984c91={_0x12e7e2:0x11d,_0x423dc6:0xfd,_0x3dee95:0x11f,_0x28cf45:0xca,_0xd3bf37:0x69,_0x4fdc7a:0xd8,_0x418be3:0x5e,_0x1100ee:0xb9,_0x459bc8:0x47,_0x5b4642:0x8b,_0x1bcdfc:0x60,_0xf192b2:0x62,_0x46443e:0x7,_0x414604:0x19,_0x1b7562:0x60,_0x1a61f4:0x9b,_0x150151:0x51,_0x116b13:0x7a,_0x34fdf9:0xad,_0x5eb235:0x42,_0x5cfe9f:0x9f,_0x45aa89:0xe,_0x41a594:0x3d,_0x625464:0x29,_0x153073:0x25,_0x5a8280:0x3b,_0x25242e:0x27,_0x2a8eea:0x9d,_0x415537:0x54,_0x4127a7:0x8d,_0x3cd50b:0xf,_0x49fe9a:0x172,_0x56fd11:0xf8,_0x5a2d03:0x108,_0x42d4c6:0xb4,_0x3c289d:0xe6,_0x889c9d:0x91,_0x330347:0x70,_0x52f734:0x3f,_0x437f33:0xac,_0x4049a6:0xb2,_0x55e836:0x129,_0x3383e7:0x157,_0x1b8be7:0x4b,_0x5c74d:0x7d,_0x382f33:0xb,_0x24cc6c:0xb8,_0x16ee17:0xc2,_0x19648e:0x34,_0x56b325:0x78},_0x407b4f={_0x59d599:0x27,_0xb79882:0x1c6},_0x2aaf95={_0x11c7b3:0x49};function _0x495522(_0x117849,_0x1301b7,_0x500dd7,_0x6d60cd){return _0x1d23e3(_0x1301b7- -0x2ea,_0x1301b7-_0x2aaf95._0x11c7b3,_0x500dd7-0x163,_0x117849);}const _0x3b14bb=_0x5d8c84[_0x4b7f56(0x16e,_0x984c91._0x12e7e2,_0x984c91._0x423dc6,_0x984c91._0x3dee95)],_0x4e97f4=_0x3b14bb['inputTokens'],_0x4e326d=_0x3b14bb[_0x495522(_0x984c91._0x28cf45,0x7b,_0x984c91._0xd3bf37,0xd2)],_0x3b8692=_0x3b14bb[_0x4b7f56(0x83,_0x984c91._0x4fdc7a,_0x984c91._0x418be3,_0x984c91._0x1100ee)]??0x0,_0x201705=_0x4e97f4+_0x4e326d,_0x534e1c=_0x3b14bb['reportedCost']?.[_0x495522(0xa,-_0x984c91._0x459bc8,-_0x984c91._0x5b4642,-_0x984c91._0x1bcdfc)];function _0x4b7f56(_0x2d4412,_0x2249c3,_0x352c71,_0xab344f){return _0x565414(_0x2d4412-_0x407b4f._0x59d599,_0x352c71,_0xab344f-0x22f,_0xab344f-_0x407b4f._0xb79882);}const _0x8feb8f=_0x3b14bb[_0x495522(-_0x984c91._0xf192b2,-_0x984c91._0x46443e,-_0x984c91._0x414604,_0x984c91._0x1b7562)]?.[_0x495522(-0x35,-0x47,-0xb1,-0x19)],_0x3e550a=_0x534e1c??_0x8feb8f,{currentReportedCostUsdTicks:_0x192984,currentEstimatedCostUsdTicks:_0x3c63c2,..._0x275774}=_0xe7810;return{..._0x275774,'totalTokens':_0x275774['totalTokens']+_0x201705,'totalInputTokens':_0x275774[_0x495522(-0x47,-0x4d,-_0x984c91._0x1a61f4,-0x60)]+_0x4e97f4,'totalOutputTokens':_0x275774['totalOutputTokens']+_0x4e326d,'totalReasoningTokens':_0x275774[_0x495522(-0x72,-_0x984c91._0x150151,-0xa8,-_0x984c91._0x116b13)]+_0x3b8692,'modelCallCount':_0x275774[_0x495522(-0x40,-0x40,-_0x984c91._0x34fdf9,-0x45)]+0x1,'totalModelTimeMs':_0x275774[_0x495522(-0x2b,-_0x984c91._0x5eb235,-_0x984c91._0x5cfe9f,-_0x984c91._0x45aa89)]+_0x5d8c84[_0x495522(-_0x984c91._0x41a594,-_0x984c91._0x625464,-0xf,-0x49)],'currentTokens':_0x201705,'currentInputTokens':_0x4e97f4,'currentOutputTokens':_0x4e326d,'currentReasoningTokens':_0x3b8692,'currentModelTimeMs':_0x5d8c84[_0x495522(_0x984c91._0x153073,-_0x984c91._0x625464,-_0x984c91._0x5a8280,-_0x984c91._0x25242e)],..._0x275774['contextWindowLimit']&&_0x201705>0x0?{'contextWindowUsage':_0x201705/_0x275774[_0x4b7f56(0x10a,0xc5,0xf3,_0x984c91._0x2a8eea)]}:{},'totalCostUsdTicks':_0x3e550a===void 0x0?_0x275774[_0x495522(_0x984c91._0x415537,-0x10,-0xa,0x1c)]:_0x275774[_0x4b7f56(0x45,0x9a,_0x984c91._0x4127a7,0x95)]+_0x3e550a,'totalReportedCostUsdTicks':_0x534e1c===void 0x0?_0x275774[_0x495522(_0x984c91._0x28cf45,0x63,_0x984c91._0x3cd50b,0x53)]:_0x275774[_0x4b7f56(_0x984c91._0x49fe9a,0xd3,_0x984c91._0x56fd11,_0x984c91._0x5a2d03)]+_0x534e1c,'totalEstimatedCostUsdTicks':_0x8feb8f===void 0x0?_0x275774[_0x4b7f56(0x44,0x7c,0xe8,_0x984c91._0x42d4c6)]:_0x275774[_0x4b7f56(0xf7,_0x984c91._0x3c289d,0x11a,0xb4)]+_0x8feb8f,'reportedCostCallCount':_0x534e1c===void 0x0?_0x275774[_0x495522(_0x984c91._0x889c9d,_0x984c91._0x330347,_0x984c91._0x52f734,_0x984c91._0x437f33)]:_0x275774[_0x4b7f56(_0x984c91._0x4049a6,_0x984c91._0x55e836,_0x984c91._0x3383e7,0x115)]+0x1,'estimatedCostCallCount':_0x8feb8f===void 0x0?_0x275774['estimatedCostCallCount']:_0x275774[_0x495522(_0x984c91._0x2a8eea,_0x984c91._0x1b8be7,_0x984c91._0x5c74d,0xa3)]+0x1,'unpricedModelCallCount':_0x534e1c===void 0x0&&_0x8feb8f===void 0x0?_0x275774[_0x4b7f56(_0x984c91._0x382f33,_0x984c91._0x24cc6c,0x17,0x78)]+0x1:_0x275774[_0x4b7f56(0x1a,_0x984c91._0x16ee17,_0x984c91._0x19648e,_0x984c91._0x56b325)],..._0x534e1c!==void 0x0?{'currentReportedCostUsdTicks':_0x534e1c}:{},..._0x8feb8f!==void 0x0?{'currentEstimatedCostUsdTicks':_0x8feb8f}:{}};}function createAgentMetrics(_0x14cd9a={}){const _0x1d4068={_0x14ee9c:0x53},_0x5ad12f={_0x109b10:0x18f,_0x1ae0e4:0x189,_0x5bb3c1:0x1b8},_0x13b6ce={_0x28cc01:0x16a},_0x4bbbc4={_0x4a08be:0x1a,_0x2e3441:0x2f,_0x5a14a0:0x13,_0x5a349f:0x43,_0xe00321:0x359,_0x21c422:0x3bc,_0x60c605:0x64,_0x2ab364:0xc8,_0x334c2c:0x4a,_0xfe7419:0x62,_0xbb2345:0xb5,_0x3c2461:0x9a,_0x71573c:0x399,_0x332134:0x316},_0x5ca757={_0x4bcf4c:0x1d2,_0x3d4d4b:0xbc,_0x196085:0x20f,_0x49c2a4:0x221,_0x4c4c49:0x1e6,_0x1bacbd:0xe7,_0x460d36:0xda,_0x4b9e72:0x286,_0x410513:0xb4,_0xda97e2:0x12a,_0x132524:0x147,_0x10b572:0x11f,_0x2a2cba:0x28c,_0x27de23:0x23c,_0x1d7e3d:0x63,_0x5a2130:0x18,_0x51a544:0x25f,_0x58c8e5:0x1f0,_0x2a9322:0x1e0,_0x582aa8:0x197,_0x556621:0x7e,_0x24aa06:0xca,_0x552735:0xb7};let _0x560f50=createEmptySnapshot();const _0x3a7523=new Set();let _0x4e8082;const _0x3727d8=()=>{const _0x4140c3={..._0x560f50};for(const _0x5c0a86 of _0x3a7523)_0x5c0a86(_0x4140c3);};return{'getSnapshot'(){return{..._0x560f50};},'recordEvent'(_0x4cfb13){const _0x1a5ca3={_0x3c370b:0x18d};if(_0x4cfb13[_0x46c6e9(_0x5ca757._0x4bcf4c,0x203,0x1d1,0x1a7)]===_0x25dfca(-0x73,-0x6d,-0x51,-_0x5ca757._0x3d4d4b)){_0x4e8082=Date[_0x46c6e9(_0x5ca757._0x196085,0x280,_0x5ca757._0x49c2a4,_0x5ca757._0x4c4c49)]();const _0x24e40e=_0x14cd9a[_0x25dfca(-0x109,-_0x5ca757._0x1bacbd,-0x7c,-_0x5ca757._0x460d36)]?.(_0x4cfb13[_0x46c6e9(_0x5ca757._0x4b9e72,0x24a,0x219,0x228)]);_0x24e40e!==void 0x0&&(_0x560f50={..._0x560f50,'contextWindowLimit':_0x24e40e},_0x3727d8());return;}function _0x46c6e9(_0xe01e4a,_0x516550,_0x6f0e8,_0x4d84ac){return _0x23c3(_0x6f0e8-0x11c,_0x516550);}if(_0x4cfb13[_0x25dfca(-_0x5ca757._0x410513,-0xd8,-_0x5ca757._0xda97e2,-_0x5ca757._0x132524)]===_0x25dfca(-0xc8,-0xd5,-0x135,-_0x5ca757._0x10b572)){const _0x415e66=_0x4e8082===void 0x0?0x0:Date[_0x46c6e9(_0x5ca757._0x2a2cba,0x27f,_0x5ca757._0x49c2a4,_0x5ca757._0x27de23)]()-_0x4e8082;_0x4e8082=void 0x0,_0x560f50=applyModelCall(_0x560f50,{'usage':_0x4cfb13['response'][_0x25dfca(-_0x5ca757._0x1d7e3d,-_0x5ca757._0x5a2130,-0x7c,-0x7f)],'modelTimeMs':_0x4cfb13['modelTimeMs']??_0x415e66}),_0x3727d8();return;}if(_0x4cfb13['type']===_0x46c6e9(0x23c,0x24a,0x28e,0x225)){_0x560f50={..._0x560f50,'toolCallCount':_0x560f50[_0x46c6e9(0x2c7,0x202,_0x5ca757._0x51a544,_0x5ca757._0x58c8e5)]+0x1},_0x3727d8();return;}function _0x25dfca(_0x463d1d,_0x30b91d,_0x440db2,_0x351141){return _0x23c3(_0x30b91d- -_0x1a5ca3._0x3c370b,_0x463d1d);}_0x4cfb13['type']===_0x46c6e9(0x1b3,0x1f7,_0x5ca757._0x2a9322,_0x5ca757._0x582aa8)&&(_0x560f50={..._0x560f50,'requestCount':_0x560f50[_0x25dfca(-_0x5ca757._0x556621,-_0x5ca757._0x24aa06,-_0x5ca757._0x552735,-0x118)]+0x1},_0x3727d8());},'reset'(){_0x560f50=createEmptySnapshot(),_0x4e8082=void 0x0,_0x3727d8();},'restore'(_0x2c3ee2){const _0x2564f4={_0x3e9da3:0x247},_0x2c0f15={_0x54ffc6:0x136};function _0x5d209f(_0x29027d,_0xe108ff,_0x318ba2,_0x1d0b98){return _0x23c3(_0x29027d- -_0x2c0f15._0x54ffc6,_0x318ba2);}let _0x51a2f6=createEmptySnapshot();for(const _0x159cf9 of _0x2c3ee2[_0x5d209f(-_0x4bbbc4._0x4a08be,_0x4bbbc4._0x2e3441,-_0x4bbbc4._0x5a14a0,_0x4bbbc4._0x5a349f)]){_0x51a2f6=applyModelCall(_0x51a2f6,{'usage':_0x159cf9[_0x1ed7cd(_0x4bbbc4._0xe00321,0x3ab,0x358,_0x4bbbc4._0x21c422)],'modelTimeMs':_0x159cf9[_0x5d209f(-_0x4bbbc4._0x60c605,-_0x4bbbc4._0x2ab364,-0x46,-_0x4bbbc4._0x334c2c)]});}_0x560f50={..._0x51a2f6,'requestCount':_0x2c3ee2['modelCalls'][_0x5d209f(-0x23,-0x57,0x2c,-0x12)](_0x4411c4=>_0x4411c4[_0x5d209f(-0x6c,-0x95,-0x49,-0x33)])[_0x5d209f(-_0x4bbbc4._0xfe7419,-_0x4bbbc4._0xbb2345,-_0x4bbbc4._0x3c2461,-0x1b)],'toolCallCount':_0x2c3ee2['toolCallCount'],'historicalMetricsComplete':_0x2c3ee2[_0x1ed7cd(_0x4bbbc4._0x71573c,0x358,_0x4bbbc4._0x332134,0x32e)]===0x0,'missingHistoricalModelCallCount':_0x2c3ee2['missingModelCallCount']};function _0x1ed7cd(_0x38f12f,_0x11b77e,_0x5f3c6a,_0x330c72){return _0x23c3(_0x330c72-_0x2564f4._0x3e9da3,_0x11b77e);}_0x4e8082=void 0x0,_0x3727d8();},'subscribe'(_0x1c643c){function _0x237ea1(_0x5a2de0,_0x3f78dd,_0x3929b7,_0x29fc11){return _0x23c3(_0x3929b7- -_0x13b6ce._0x28cc01,_0x29fc11);}return _0x3a7523[_0x237ea1(-_0x1d4068._0x14ee9c,-0x46,-0xa8,-0x8e)](_0x1c643c),()=>{const _0x394b4a={_0x213d67:0x12b};function _0x595d6e(_0x2289d4,_0xd64561,_0xe3fd86,_0x549103){return _0x237ea1(_0x2289d4-0x5b,_0xd64561-0x104,_0x549103- -_0x394b4a._0x213d67,_0x2289d4);}_0x3a7523[_0x595d6e(-_0x5ad12f._0x109b10,-_0x5ad12f._0x1ae0e4,-_0x5ad12f._0x5bb3c1,-0x1f0)](_0x1c643c);};}};}function makeExtensionContext(_0x346ba2){return{'state':_0x346ba2};}async function runStage(_0x382851,_0x4d9994,_0x10ab3d,_0x2bbba5){const _0xd4f2a4={_0x499a8b:0xc5,_0x4bfe1f:0x218,_0x1b1ca5:0x224},_0xc7fd94={_0x5a774b:0x25},_0xccfdf2={_0x548521:0x1b5},_0x954928=await _0x382851[_0x5966e6(-_0xd4f2a4._0x499a8b,-0xce,-0x89,-0x55)](_0x4d9994,_0x10ab3d,_0x2bbba5);function _0x251fc3(_0x1bea7d,_0x4e346a,_0x514790,_0x4483d1){return _0x1d23e3(_0x4483d1- -0x51e,_0x4e346a-_0xccfdf2._0x548521,_0x514790-0x80,_0x4e346a);}function _0x5966e6(_0x73ba15,_0x887737,_0x2fcc14,_0x2925a8){return _0x565414(_0x73ba15-0x1bd,_0x2fcc14,_0x73ba15-0x45,_0x2925a8-_0xc7fd94._0x5a774b);}return await _0x382851[_0x251fc3(-_0xd4f2a4._0x4bfe1f,-0x22e,-_0xd4f2a4._0x1b1ca5,-0x223)](_0x4d9994,_0x954928,_0x2bbba5),_0x954928;}async function emitEvent2(_0xc6cfeb,_0x5d4dfc,_0x3f6d82){await _0xc6cfeb?.(_0x5d4dfc,_0x3f6d82);}function replaceToolUseBlocks(_0x45c95b,_0x93cb78){const _0x5b0f50={_0x4a0042:0xb9,_0xe6e1a8:0x101,_0xf38b9d:0x2a,_0x2f3593:0x1b},_0x31868f={_0x4266e8:0x19},_0x49628f={_0x51af26:0x195},_0x66b450={_0x4528f3:0x338,_0x50b3a8:0x16c},_0x5b4a0f={_0x5e0597:0xc6,_0x1db504:0x15e};function _0x464f96(_0x53c3ed,_0x2225de,_0x2cc5b8,_0x3f6915){return _0x1d23e3(_0x2225de- -_0x5b4a0f._0x5e0597,_0x2225de-_0x5b4a0f._0x1db504,_0x2cc5b8-0x196,_0x2cc5b8);}function _0x4125d3(_0x4a9730,_0x36cb3b,_0x3a66a9,_0x403e5f){return _0x1d23e3(_0x36cb3b- -_0x66b450._0x4528f3,_0x36cb3b-_0x66b450._0x50b3a8,_0x3a66a9-0xaa,_0x4a9730);}let _0x180201=0x0;return{..._0x45c95b,'content':_0x45c95b[_0x4125d3(-_0x5b0f50._0x4a0042,-0x9e,-0xb4,-_0x5b0f50._0xe6e1a8)][_0x4125d3(-0x17,-_0x5b0f50._0xf38b9d,-0x61,_0x5b0f50._0x2f3593)](_0x52625e=>{if(_0x52625e[_0x1dc77e(-0x27,-0x52,-0x6f,-_0x31868f._0x4266e8)]!=='tool_use')return _0x52625e;function _0x1dc77e(_0x479f93,_0x2ff1e6,_0x308d05,_0x41f1c9){return _0x464f96(_0x479f93-0x60,_0x41f1c9- -0x1f7,_0x479f93,_0x41f1c9-_0x49628f._0x51af26);}const _0x23565=_0x93cb78[_0x180201];return _0x180201+=0x1,structuredClone(_0x23565);})};}function createAssistantMessageId(_0x1a1bc4,_0x27cd46){const _0x24cde4={_0x3a95b6:0x2fd},_0x2e376e={_0x4d6bed:0x10,_0x39b8f1:0x496};function _0x24949d(_0x266135,_0x50f8b5,_0x5bc691,_0x12dd34){return _0x565414(_0x266135-_0x2e376e._0x4d6bed,_0x50f8b5,_0x5bc691-_0x2e376e._0x39b8f1,_0x12dd34-0x9b);}return _0x1a1bc4+_0x24949d(0x2c0,0x312,0x2cb,_0x24cde4._0x3a95b6)+_0x27cd46;}function createReasoningMessageId(_0x4cde87){return _0x4cde87+':reasoning';}function withMessageId(_0x16bfb6,_0x56b304){if(_0x16bfb6['id']===_0x56b304)return _0x16bfb6;return{..._0x16bfb6,'id':_0x56b304};}function createAssistantChunkEvent(_0x68e6cc,_0x242c28){const _0x28f597={_0x482f42:0x10f,_0x54a0a2:0x1bd,_0x4a3c39:0x20d,_0x14d0f4:0x1c8,_0x41c713:0x1f8,_0x53513a:0x110,_0x3a3593:0x131,_0x45af03:0x14e,_0x4b86c7:0x1b5,_0x238372:0x117,_0x2fc14e:0x186,_0x5ab528:0x10e},_0x206dc0={_0x26b129:0x2e},_0x4b89aa={_0xa06299:0x34f,_0x152a1b:0xc};function _0x4a4863(_0x2aff62,_0x153511,_0x5016f0,_0x2e1c5b){return _0x565414(_0x2aff62-0x5d,_0x153511,_0x5016f0-_0x4b89aa._0xa06299,_0x2e1c5b-_0x4b89aa._0x152a1b);}if(_0x68e6cc[_0x4a4863(0x1dd,_0x28f597._0x482f42,0x17f,_0x28f597._0x54a0a2)]!==_0x4a4863(0x22b,0x251,0x24b,0x287))return void 0x0;function _0x37e198(_0x3731df,_0x147236,_0x2e4146,_0x41a71f){return _0x565414(_0x3731df-_0x206dc0._0x26b129,_0x2e4146,_0x41a71f-0x290,_0x41a71f-0x173);}if(_0x68e6cc[_0x4a4863(_0x28f597._0x4a3c39,_0x28f597._0x14d0f4,_0x28f597._0x41c713,0x19c)]===void 0x0)return void 0x0;return{'type':_0x37e198(_0x28f597._0x53513a,0xe5,0x197,0x154),'index':_0x68e6cc[_0x37e198(0xa2,0x87,_0x28f597._0x3a3593,0xdc)]??0x0,'messageId':_0x242c28,'chunk':{'type':'content_delta','index':_0x68e6cc[_0x4a4863(_0x28f597._0x45af03,0x1b3,0x19b,_0x28f597._0x4b86c7)]??0x0,'text':_0x68e6cc[_0x37e198(_0x28f597._0x238372,_0x28f597._0x2fc14e,_0x28f597._0x5ab528,0x139)]}};}function createToolUseChunkEvent(_0x110975,_0x551ffc){const _0x21af30={_0x57000b:0x5b6,_0x2ff5b1:0x554,_0x4965a3:0x55c,_0x3b23cb:0x521,_0x10b2f8:0x465,_0x44f05f:0x4e8,_0x541475:0x4b3,_0x5c1d43:0x4c9,_0x3cd35b:0x52e,_0x40ad63:0x57,_0x58b563:0x76,_0x34aa59:0x2c,_0x263f57:0x31},_0x3a21ce={_0x80b7d2:0x1f3};function _0x201b7a(_0x34400c,_0x41122c,_0x25ce93,_0x2cb9bd){return _0x1d23e3(_0x34400c- -0x274,_0x41122c-0x16e,_0x25ce93-0x162,_0x2cb9bd);}function _0xb3e6db(_0x3a4eff,_0x3e9390,_0x3adccf,_0x23fa2e){return _0x1d23e3(_0x23fa2e-_0x3a21ce._0x80b7d2,_0x3e9390-0x150,_0x3adccf-0x105,_0x3a4eff);}if(_0x110975['type']!==_0xb3e6db(0x5b1,_0x21af30._0x57000b,_0x21af30._0x2ff5b1,_0x21af30._0x4965a3))return void 0x0;return{'type':_0xb3e6db(0x52b,0x4ff,0x526,_0x21af30._0x3b23cb),'index':_0x110975[_0xb3e6db(_0x21af30._0x10b2f8,0x48a,_0x21af30._0x44f05f,_0x21af30._0x541475)]??0x0,'messageId':_0x551ffc,'chunk':{'type':'tool_use_delta','id':_0x110975['id']??'','index':_0x110975[_0x201b7a(0x4c,0x81,0x77,0x25)]??0x0,..._0x110975[_0xb3e6db(_0x21af30._0x5c1d43,0x4d1,0x50a,_0x21af30._0x3cd35b)]!==void 0x0?{'name':_0x110975['name']}:{},..._0x110975[_0x201b7a(_0x21af30._0x40ad63,0xa7,_0x21af30._0x58b563,_0x21af30._0x34aa59)]!==void 0x0?{'inputDelta':_0x110975[_0x201b7a(_0x21af30._0x40ad63,0xbd,0x47,_0x21af30._0x263f57)]}:{}}};}function createReasoningChunkEvent(_0x51794a,_0x144e13){const _0x2ea9e7={_0x5a9e7e:0x2bb,_0x50df03:0x2e5,_0x4834a7:0x291,_0x5269f0:0x2a1,_0x153815:0x295,_0x541d71:0x273,_0x26d6f8:0x294,_0x606593:0x15a,_0x1f74c5:0x112,_0x4102d9:0x175,_0xed0231:0x22a,_0x17b7ca:0x28e,_0x21daf2:0x290,_0x3ca7f4:0x1db,_0x2f2852:0x19c,_0x1a3557:0x164,_0x2a9c6a:0x11f,_0x2ac558:0x1e3,_0x1db213:0x15f,_0x4188d5:0x1ab,_0x8fe25a:0x1e5,_0x34c1b9:0x163,_0x3f0941:0x1ab,_0x1200de:0x179,_0x3081e5:0x16f,_0x3cca4d:0x19f,_0x596a9d:0x1d6,_0x27d8f9:0x1c4,_0x570dde:0x27f,_0x41275a:0x26c,_0x5ed30a:0x1fc,_0x4c5700:0x205,_0x1f6d18:0x1ca,_0x334349:0x29b,_0x499f64:0x1d6,_0x2f43f4:0x1a7,_0x2b62e4:0x20d,_0xb0e3d8:0x203},_0x4efce3={_0x39df87:0xe1},_0x2b7bbe={_0xad8f06:0x594,_0x45534b:0x1f4,_0x3f6986:0x155};function _0x55b1f0(_0x361068,_0x410c88,_0x5d2c69,_0x554ea8){return _0x1d23e3(_0x554ea8- -_0x2b7bbe._0xad8f06,_0x410c88-_0x2b7bbe._0x45534b,_0x5d2c69-_0x2b7bbe._0x3f6986,_0x361068);}function _0x47e8dc(_0x3aa21f,_0x18bebf,_0x3de887,_0xf5b971){return _0x1d23e3(_0x18bebf- -0x48b,_0x18bebf-_0x4efce3._0x39df87,_0x3de887-0x63,_0x3aa21f);}switch(_0x51794a['type']){case _0x55b1f0(-0x2ef,-0x255,-0x324,-_0x2ea9e7._0x5a9e7e):return{'type':_0x55b1f0(-0x236,-_0x2ea9e7._0x50df03,-_0x2ea9e7._0x4834a7,-0x278),'index':_0x51794a['index'],'messageId':_0x144e13,'chunk':{'type':_0x55b1f0(-0x2ef,-0x2ba,-0x2df,-0x2bb),'index':_0x51794a[_0x55b1f0(-0x324,-_0x2ea9e7._0x5269f0,-_0x2ea9e7._0x153815,-0x2d4)]??0x0,'thinking':_0x51794a['thinking']??''},'text':_0x51794a['thinking']??''};case _0x55b1f0(-_0x2ea9e7._0x541d71,-_0x2ea9e7._0x26d6f8,-0x29e,-0x2a5):return{'type':_0x47e8dc(-_0x2ea9e7._0x606593,-0x16f,-_0x2ea9e7._0x1f74c5,-_0x2ea9e7._0x4102d9),'index':_0x51794a[_0x55b1f0(-0x2bd,-_0x2ea9e7._0xed0231,-_0x2ea9e7._0x17b7ca,-_0x2ea9e7._0x21daf2)],'messageId':_0x144e13,'chunk':{'type':_0x47e8dc(-_0x2ea9e7._0x3ca7f4,-_0x2ea9e7._0x2f2852,-_0x2ea9e7._0x1a3557,-0x18f),'contentIndex':_0x51794a[_0x47e8dc(-0x15c,-0x187,-_0x2ea9e7._0x2a9c6a,-_0x2ea9e7._0x2ac558)]??0x0,'delta':_0x51794a[_0x47e8dc(-_0x2ea9e7._0x1db213,-_0x2ea9e7._0x4188d5,-0x142,-_0x2ea9e7._0x8fe25a)]??'','itemId':_0x51794a[_0x47e8dc(-_0x2ea9e7._0x34c1b9,-0x129,-0x166,-0xd7)]??'','outputIndex':_0x51794a[_0x47e8dc(-0x17c,-0x16d,-0x140,-0x167)]??0x0},'text':_0x51794a[_0x47e8dc(-0x1d6,-_0x2ea9e7._0x3f0941,-0x16f,-0x17a)]??''};case'openai_reasoning_summary_delta':return{'type':_0x47e8dc(-_0x2ea9e7._0x1200de,-_0x2ea9e7._0x3081e5,-0x1a9,-_0x2ea9e7._0x3cca4d),'index':_0x51794a[_0x47e8dc(-0x23c,-_0x2ea9e7._0x596a9d,-_0x2ea9e7._0x27d8f9,-0x1f2)],'messageId':_0x144e13,'chunk':{'type':_0x55b1f0(-0x203,-_0x2ea9e7._0x570dde,-_0x2ea9e7._0x41275a,-0x245),'delta':_0x51794a[_0x47e8dc(-_0x2ea9e7._0x5ed30a,-_0x2ea9e7._0x4188d5,-_0x2ea9e7._0x4c5700,-_0x2ea9e7._0x1f6d18)]??'','itemId':_0x51794a[_0x55b1f0(-0x1e4,-0x1d6,-_0x2ea9e7._0x334349,-0x232)]??'','outputIndex':_0x51794a['outputIndex']??0x0,'summaryIndex':_0x51794a[_0x47e8dc(-0x191,-_0x2ea9e7._0x499f64,-0x1f7,-_0x2ea9e7._0x2f43f4)]??0x0},'text':_0x51794a[_0x47e8dc(-0x20a,-0x1ab,-_0x2ea9e7._0x2b62e4,-_0x2ea9e7._0xb0e3d8)]??''};default:return void 0x0;}}function isAbortedToolResult(_0x28f007){const _0x503ac8={_0x2922fb:0x489,_0x421f86:0x4b2,_0x296d8b:0x2e4,_0x5dab83:0x2aa,_0xffa985:0x29c},_0x3ad0c9={_0x5997b9:0x124,_0x1710cf:0x44e},_0x554966={_0x3a3d89:0x198};function _0x26c9e4(_0x5bdca7,_0x50484b,_0x19202b,_0x3990c8){return _0x1d23e3(_0x19202b-0x12b,_0x50484b-_0x554966._0x3a3d89,_0x19202b-0x19c,_0x50484b);}function _0x27dd71(_0x536eb5,_0x364bdc,_0x13174b,_0x6325f8){return _0x565414(_0x536eb5-_0x3ad0c9._0x5997b9,_0x536eb5,_0x364bdc-_0x3ad0c9._0x1710cf,_0x6325f8-0x1dc);}return _0x28f007[_0x27dd71(0x215,0x275,0x288,0x21b)]===_0x26c9e4(0x465,0x472,_0x503ac8._0x2922fb,_0x503ac8._0x421f86)&&_0x28f007[_0x27dd71(0x29d,_0x503ac8._0x296d8b,_0x503ac8._0x5dab83,0x318)][_0x27dd71(0x255,0x290,0x2b6,_0x503ac8._0xffa985)]===!![];}async function executeModelRequest(_0x5d93d0,_0xe21403,_0x4d8f2e,_0x10cf67,_0xc091ad,_0x11f0b5){const _0x372ea7={_0x35c53c:0x23a,_0x4b0b13:0x20a,_0x5e95ab:0x29e,_0x31c4a9:0x268,_0x6c6324:0x134,_0x4debf8:0x125,_0xe4da77:0x10e,_0x55aecd:0x139,_0x453d84:0x131,_0x40a9d4:0x267,_0x573c79:0x145,_0x24bcee:0x112,_0x48d216:0xb7,_0x392bf5:0x1fc,_0x2af969:0x2ad,_0x377fce:0x1aa,_0x953001:0x1ff,_0x1c67e5:0x2c3,_0x89184a:0x26d,_0x3ae0b2:0x184,_0x4163ee:0x1b2,_0x439276:0x152,_0x30af08:0x10d,_0x3f00c1:0xba,_0x154838:0x15e,_0xc9611f:0x139,_0x1a6661:0x15a,_0x49c057:0x176,_0x2692e1:0x1ed,_0x236cf5:0x1eb,_0x40339e:0x1bd,_0x4abdc5:0x1d4,_0x4b02d4:0x16f,_0x3d56d6:0x194,_0x258acd:0x1f4,_0x1f90a6:0x210,_0x2e8187:0x2cb,_0x2257a3:0x287,_0x458222:0x185,_0x38a29b:0x228,_0xa29482:0x11e,_0x481a9d:0x19f,_0x4500b2:0x1b1,_0x4b303b:0x14e,_0x3f2783:0x18f,_0x59eef4:0x169,_0x50414b:0x1e6,_0x1717a1:0x1b5,_0x3eed3e:0xd4,_0x38f4ea:0x11e,_0xf7e85a:0x181,_0x51ff51:0x13f,_0x2791e1:0x196,_0x3ff79:0x155,_0x2b3098:0x1f3,_0x2d65dd:0x197,_0x4a4ef9:0x1d7,_0x25c2ac:0x209,_0x14bba0:0x1a2,_0x26300e:0x17b,_0x50c231:0x20c,_0x533468:0x1ee,_0x3fa378:0x126,_0x38f491:0x1ac,_0x3dfb6c:0x1b8,_0x2d93d5:0x1d4,_0x344d1e:0x178,_0x82e5f2:0x117,_0x438fb7:0x157,_0x52e911:0x294,_0x15641e:0x107,_0x3f8818:0x1c8,_0x5d534a:0x194,_0x548ee8:0x1cd,_0x40a4b6:0x165,_0x4fd77d:0x14b,_0x10af8f:0x1d6},_0x2941b3={_0x506999:0x129},_0x49a559={_0x18901e:0x186,_0x55bca9:0x15d,_0x56522c:0x7a};function _0x3e964c(_0x12184c,_0x400aee,_0x6530a5,_0x599fed){return _0x1d23e3(_0x6530a5- -_0x49a559._0x18901e,_0x400aee-_0x49a559._0x55bca9,_0x6530a5-_0x49a559._0x56522c,_0x12184c);}throwIfAborted(_0xe21403[_0x307c7d(-_0x372ea7._0x35c53c,-_0x372ea7._0x4b0b13,-_0x372ea7._0x5e95ab,-_0x372ea7._0x31c4a9)]);if(!_0xe21403['streaming']||!_0x4d8f2e[_0x3e964c(_0x372ea7._0x6c6324,_0x372ea7._0x4debf8,0x125,0x10f)])return await _0x4d8f2e[_0x3e964c(_0x372ea7._0xe4da77,_0x372ea7._0x55aecd,_0x372ea7._0x453d84,_0x372ea7._0x6c6324)](_0x5d93d0,{'signal':_0xe21403['signal']});function _0x307c7d(_0x36ce1e,_0xf0c184,_0x2d89e0,_0x508ea3){return _0x1d23e3(_0x508ea3- -0x500,_0xf0c184-_0x2941b3._0x506999,_0x2d89e0-0xe5,_0x36ce1e);}let _0x3a420c;for await(const _0x29031d of _0x4d8f2e[_0x307c7d(-0x22a,-0x2ba,-0x26f,-0x255)](_0x5d93d0,{'signal':_0xe21403[_0x307c7d(-_0x372ea7._0x40a9d4,-0x2d0,-0x20f,-0x268)]})){throwIfAborted(_0xe21403[_0x3e964c(0x11c,_0x372ea7._0x573c79,_0x372ea7._0x24bcee,_0x372ea7._0x48d216)]);if(_0x29031d['type']===_0x3e964c(_0x372ea7._0x392bf5,0x1c4,0x18d,0x1d5)){_0x11f0b5[_0x307c7d(-0x2c4,-0x260,-_0x372ea7._0x2af969,-0x26d)][_0x307c7d(-0x252,-_0x372ea7._0x377fce,-0x19d,-_0x372ea7._0x953001)]!==void 0x0&&_0x11f0b5[_0x307c7d(-0x23d,-0x2d3,-_0x372ea7._0x1c67e5,-_0x372ea7._0x89184a)][_0x307c7d(-0x1a3,-0x20e,-_0x372ea7._0x3ae0b2,-_0x372ea7._0x4163ee)]===void 0x0&&(_0x11f0b5[_0x3e964c(0xe9,_0x372ea7._0x439276,_0x372ea7._0x30af08,_0x372ea7._0x3f00c1)]['reasoningCompletedAt']=Date['now']());_0x3a420c=_0x29031d[_0x3e964c(_0x372ea7._0x154838,0x13f,_0x372ea7._0xc9611f,0x149)];continue;}if(_0x29031d[_0x3e964c(_0x372ea7._0x1a6661,0xb3,0x11e,0xbc)]===_0x307c7d(-0x1dd,-_0x372ea7._0x49c057,-0x1d5,-0x1a5)){await emitEvent2(_0x10cf67[_0x3e964c(0x241,_0x372ea7._0x2692e1,_0x372ea7._0x236cf5,_0x372ea7._0x40339e)],{'type':'provider_stream_reset','assistantMessageId':_0x11f0b5['assistantMessageId'],'reasoningMessageId':_0x11f0b5[_0x307c7d(-_0x372ea7._0x4abdc5,-0x15e,-_0x372ea7._0x4b02d4,-_0x372ea7._0x3d56d6)]},_0xc091ad),delete _0x11f0b5['meta'][_0x307c7d(-0x1df,-_0x372ea7._0x258acd,-_0x372ea7._0x1f90a6,-_0x372ea7._0x953001)],delete _0x11f0b5[_0x307c7d(-0x2c5,-_0x372ea7._0x2e8187,-_0x372ea7._0x2257a3,-0x26d)][_0x3e964c(0x1aa,_0x372ea7._0x458222,0x1c8,_0x372ea7._0x38a29b)];continue;}if(_0x29031d[_0x3e964c(0xd9,0x153,_0x372ea7._0xa29482,0x12a)]===_0x3e964c(_0x372ea7._0x481a9d,0x160,_0x372ea7._0x40339e,_0x372ea7._0x4500b2)){await emitEvent2(_0x10cf67[_0x307c7d(-_0x372ea7._0x4b303b,-0x1f6,-0x1d9,-_0x372ea7._0x3f2783)],{..._0x29031d,'assistantMessageId':_0x11f0b5[_0x307c7d(-_0x372ea7._0x59eef4,-0x1af,-0x1ce,-0x1cd)]},_0xc091ad);continue;}const _0x15fda1=createReasoningChunkEvent(_0x29031d,_0x11f0b5[_0x3e964c(0x19e,0x1c2,_0x372ea7._0x50414b,_0x372ea7._0x1717a1)]);if(_0x15fda1&&_0x15fda1[_0x3e964c(0xd1,_0x372ea7._0x3eed3e,_0x372ea7._0x38f4ea,_0x372ea7._0xf7e85a)]===_0x3e964c(0x196,_0x372ea7._0x51ff51,_0x372ea7._0x2791e1,0x1bd)&&_0x15fda1[_0x3e964c(_0x372ea7._0x3ff79,_0x372ea7._0x2b3098,_0x372ea7._0x2d65dd,_0x372ea7._0x4a4ef9)]['length']>0x0){_0x11f0b5[_0x307c7d(-0x225,-_0x372ea7._0x25c2ac,-0x255,-0x26d)]['reasoningStartedAt']===void 0x0&&(_0x11f0b5['meta'][_0x3e964c(_0x372ea7._0x14bba0,0x15a,_0x372ea7._0x26300e,0x172)]=Date[_0x307c7d(-0x248,-0x1c8,-_0x372ea7._0x2b3098,-_0x372ea7._0x50c231)]());await emitEvent2(_0x10cf67[_0x307c7d(-_0x372ea7._0x533468,-_0x372ea7._0x3fa378,-_0x372ea7._0x38f491,-0x18f)],_0x15fda1,_0xc091ad);continue;}const _0x43629d=createAssistantChunkEvent(_0x29031d,_0x11f0b5[_0x307c7d(-_0x372ea7._0x3dfb6c,-0x214,-_0x372ea7._0x2d93d5,-0x1cd)]);if(_0x43629d){_0x11f0b5[_0x3e964c(0xa1,_0x372ea7._0x344d1e,0x10d,_0x372ea7._0x82e5f2)][_0x3e964c(0x1e5,0x10f,0x17b,_0x372ea7._0x438fb7)]!==void 0x0&&_0x11f0b5[_0x307c7d(-0x23a,-_0x372ea7._0x52e911,-0x268,-0x26d)]['reasoningCompletedAt']===void 0x0&&(_0x11f0b5[_0x3e964c(_0x372ea7._0x15641e,0x150,_0x372ea7._0x30af08,0xf1)][_0x3e964c(0x1ba,_0x372ea7._0x4b0b13,_0x372ea7._0x3f8818,0x1f8)]=Date[_0x3e964c(0x1d8,0x18a,0x16e,0x1a4)]());await emitEvent2(_0x10cf67['onEvent'],_0x43629d,_0xc091ad);continue;}const _0x21d89c=createToolUseChunkEvent(_0x29031d,_0x11f0b5[_0x307c7d(-0x1e1,-0x1af,-_0x372ea7._0x5d534a,-_0x372ea7._0x548ee8)]);_0x21d89c&&await emitEvent2(_0x10cf67[_0x307c7d(-_0x372ea7._0x40a4b6,-0x1b1,-_0x372ea7._0x4fd77d,-_0x372ea7._0x3f2783)],_0x21d89c,_0xc091ad);}if(!_0x3a420c)throw new Error(_0x3e964c(0x13c,_0x372ea7._0x10af8f,0x18f,0x1e4));return _0x3a420c;}function makeTurnGuards(_0x2fe6fb,_0x189613,_0x37cf46,_0x2ac93e,_0xf2f77f){return{async 'stage'(_0x49b0a0,_0x48c3d3){return throwIfAborted(_0x2fe6fb),await runStage(_0x189613,_0x49b0a0,_0x48c3d3,_0x2ac93e);},async 'emit'(_0x474c8a){throwIfAborted(_0x2fe6fb),await emitEvent2(_0x37cf46,_0x474c8a,_0xf2f77f);},async 'stageUnchecked'(_0x513e97,_0xcb3963){return await runStage(_0x189613,_0x513e97,_0xcb3963,_0x2ac93e);},async 'emitUnchecked'(_0x2cbcb2){await emitEvent2(_0x37cf46,_0x2cbcb2,_0xf2f77f);}};}async function runTurn(_0x9bb0a0,_0x3229fa){const _0x1e771a={_0x23efc5:0x341,_0x4f5972:0x344,_0x1f10b9:0x28c,_0x56be67:0x292,_0x29d223:0x24d,_0x4309dc:0x207,_0x42950c:0x33b,_0x455dee:0x2e5,_0x3671bc:0x1df,_0x47d1ce:0x22e,_0x1a51a3:0x257,_0x484fc9:0x309,_0x4b587f:0x2df,_0x328b6e:0x2e9,_0x1571f9:0x313,_0x672ad6:0x2d8,_0x4feb27:0x335,_0x124d6a:0x21f,_0x59cd30:0x274,_0x16f34e:0x29e,_0xbc32de:0x3ad,_0x42e321:0x34b,_0x2965c1:0x2fa,_0xb68e0b:0x25a,_0x29a6a8:0x2c7,_0x5e5e12:0x25f,_0x5ece93:0x299,_0x1b67a0:0x23b,_0x4dfd63:0x2e1,_0x423cf9:0x29b,_0x23a459:0x38b,_0x3e5265:0x327,_0x85b1b1:0x24d,_0xa9e744:0x2a8,_0x3f03e5:0x33c,_0xf18aaa:0x33b,_0x3fc008:0x2d8,_0x43b5f0:0x2a3,_0x5a1874:0x2bd,_0x5ae5f3:0x290,_0xb39955:0x2e9,_0x810d95:0x2f4,_0x2c77a0:0x34d,_0x4e3d8f:0x36c,_0x21e63f:0x390,_0x21670e:0x342,_0x2f14bf:0x22b,_0x4a6f17:0x32b,_0x4e2e9a:0x367,_0x530669:0x29d,_0x5517d0:0x300,_0x325254:0x2d0,_0xdd9a6b:0x25c,_0x1ae50e:0x232,_0x56cdc4:0x223,_0x3d77da:0x245,_0x95d23:0x239,_0xf42a4f:0x2b4,_0x9fdef9:0x2e4,_0x2fb407:0x333,_0x30362d:0x270,_0x127df6:0x1f0,_0x2d51b6:0x235,_0x4b1558:0x28f,_0xd792ba:0x227,_0x2e42d1:0x21d,_0xc67e76:0x30d,_0x4845e1:0x2fe,_0x1ab502:0x316,_0x21306f:0x2a9,_0x467181:0x3ab,_0x1aafc9:0x338,_0x40f72d:0x2a1,_0x3a1aa2:0x318,_0x8486c0:0x321,_0x1ba44e:0x31c,_0x2cbf2e:0x277,_0x3e92a4:0x231,_0x269ce1:0x2f5,_0x251270:0x2bf,_0x23a23d:0x291,_0x510485:0x2bd,_0x4a056d:0x326,_0x36c1f5:0x2ef,_0x9f5e63:0x2d0,_0x278161:0x323,_0x51b34e:0x2ea,_0x3eacae:0x2f8,_0x19d017:0x2c3,_0x4e1de2:0x242,_0x451ba0:0x2a0,_0x39bede:0x2e7,_0x8f82c:0x2f2,_0x8c2551:0x275,_0x3f5463:0x2e8,_0x187e71:0x2dc,_0x655c81:0x29e,_0x460ed4:0x28b,_0x2a251a:0x230,_0xa68950:0x32e,_0x591978:0x29e,_0x4b166f:0x2cf,_0x33e466:0x23c,_0x3359ef:0x2ad,_0x2e39e0:0x314,_0x48c07c:0x27d,_0xc9a13b:0x2dd,_0x11a702:0x283,_0x453d0e:0x2b8,_0x1a825b:0x25b,_0x186ac0:0x26c,_0x542e53:0x2d0,_0x26e2d2:0x28a,_0x1518bc:0x2fb,_0x2fd12e:0x2d0,_0x376c6b:0x2aa},_0x4a2359={_0x333dec:0x3ae,_0x194bad:0x297,_0x5e1a4d:0x202,_0x204078:0x1f0,_0x2de26b:0x24e,_0x59b261:0x207,_0x19c48a:0x355,_0x5c8666:0x458,_0x33b2c3:0x21e},_0x5b6e76={_0xbb009f:0x129,_0x258ee9:0xef,_0xee9b73:0xee},_0x4c8d41={_0xe024f8:0xac},_0x524350={_0x3d7bbc:0x19a,_0xa41925:0x112,_0x2816dc:0x53},_0xc6d34e={_0x573d08:0x72,_0x295384:0x4de,_0x31f4b4:0x493},_0x51f7bf={_0x592a27:0xeb},_0x537abd=_0x3229fa[_0x2e1578(0x333,_0x1e771a._0x23efc5,_0x1e771a._0x4f5972,0x323)],_0x1472f4=_0x9bb0a0[_0x2e1578(0x23a,0x257,_0x1e771a._0x1f10b9,_0x1e771a._0x56be67)]??new AbortController()['signal'],_0xa30e4c={'sessionId':_0x9bb0a0['sessionId'],'turnId':_0x9bb0a0[_0x12da37(-0x27e,-0x229,-_0x1e771a._0x29d223,-_0x1e771a._0x4309dc)],'system':normalizeSystem(_0x9bb0a0[_0x2e1578(0x329,_0x1e771a._0x42950c,0x2fd,0x342)]),'messages':(_0x9bb0a0[_0x2e1578(_0x1e771a._0x29d223,0x2ee,_0x1e771a._0x455dee,0x299)]??[])['map'](normalizeMessage),'lastResponse':void 0x0,'toolResults':[],'finalMessage':void 0x0,'sessionDir':typeof _0x3229fa[_0x12da37(-0x21c,-_0x1e771a._0x3671bc,-_0x1e771a._0x47d1ce,-_0x1e771a._0x1a51a3)]==='function'?_0x3229fa['sessionDir']():_0x3229fa['sessionDir']},_0x9cd8c6=makeExtensionContext(_0xa30e4c);function _0x2e1578(_0x397907,_0x58407a,_0x207bbd,_0x2f686d){return _0x565414(_0x397907-0x13d,_0x58407a,_0x2f686d-0x46e,_0x2f686d-0x2a);}const _0x16556a={'sessionId':_0xa30e4c[_0x2e1578(0x2e2,0x30e,_0x1e771a._0x484fc9,0x300)],'turnId':_0xa30e4c['turnId'],'state':_0xa30e4c,'signal':_0x1472f4,..._0x3229fa[_0x12da37(-_0x1e771a._0x4b587f,-0x2e7,-0x294,-_0x1e771a._0x328b6e)]?{'askUser':_0x3229fa[_0x2e1578(_0x1e771a._0x1571f9,0x321,_0x1e771a._0x672ad6,0x2ec)]}:{},..._0x3229fa['setTopic']?{'setTopic':_0x3229fa[_0x12da37(-0x2c7,-_0x1e771a._0x4feb27,-0x2da,-0x281)]}:{}},{stage:_0x381e62,emit:_0xcb3eea,stageUnchecked:_0x1f3c93,emitUnchecked:_0x8e28ed}=makeTurnGuards(_0x1472f4,_0x3229fa[_0x12da37(-_0x1e771a._0x124d6a,-0x2da,-_0x1e771a._0x59cd30,-_0x1e771a._0x16f34e)],_0x3229fa[_0x2e1578(_0x1e771a._0xbc32de,0x368,_0x1e771a._0x42e321,0x36b)],_0x9cd8c6,_0x16556a),_0x263121=async(_0x966369,_0x21030e)=>{const _0x5de8e9={_0x4c6797:0x9f},_0x33f810=_0x21030e?{..._0x9cd8c6,'turnMeta':_0x21030e}:_0x9cd8c6;function _0x3af0dd(_0x2e65cc,_0xb22f98,_0x42d590,_0x1988e9){return _0x12da37(_0x2e65cc,_0xb22f98-0x164,_0xb22f98-0x260,_0x1988e9-_0x5de8e9._0x4c6797);}function _0x38d92e(_0xa75a8a,_0x5a93d0,_0x1a9e10,_0x21a407){return _0x12da37(_0x5a93d0,_0x5a93d0-0x1f2,_0x1a9e10-0x6c0,_0x21a407-_0x51f7bf._0x592a27);}await _0x3229fa['registry'][_0x3af0dd(-0x56,-0x2b,0x3a,-_0xc6d34e._0x573d08)](_0x38d92e(0x425,_0xc6d34e._0x295384,0x485,_0xc6d34e._0x31f4b4),structuredClone(_0x966369),_0x33f810);};function _0x12da37(_0x578b5a,_0x3391f6,_0xc61036,_0x1d55fe){return _0x565414(_0x578b5a-_0x524350._0x3d7bbc,_0x578b5a,_0xc61036- -_0x524350._0xa41925,_0x1d55fe-_0x524350._0x2816dc);}const _0x56857d=async _0x1f4a47=>{if(!_0x9bb0a0[_0x46f080(0x3b2,0x3f5,_0x4a2359._0x333dec,0x442)])return 0x0;const _0x558c1d=await _0x9bb0a0[_0x1455a8(0x205,_0x4a2359._0x194bad,0x1ea,0x247)]();throwIfAborted(_0x1472f4);function _0x1455a8(_0x20286e,_0x2202bc,_0xfafa87,_0x5a8f91){return _0x2e1578(_0x20286e-0x1b6,_0x20286e,_0xfafa87-_0x4c8d41._0xe024f8,_0x5a8f91- -0xc0);}if(_0x558c1d['length']===0x0)return 0x0;await _0x1f4a47?.();function _0x46f080(_0x21a669,_0x2be546,_0x4b3aaa,_0x55d479){return _0x2e1578(_0x21a669-_0x5b6e76._0xbb009f,_0x21a669,_0x4b3aaa-_0x5b6e76._0x258ee9,_0x2be546-_0x5b6e76._0xee9b73);}for(const _0x422132 of _0x558c1d){const _0x1981cf=await _0x381e62(_0x1455a8(_0x4a2359._0x5e1a4d,_0x4a2359._0x204078,_0x4a2359._0x2de26b,_0x4a2359._0x59b261),normalizeMessage(_0x422132));throwIfAborted(_0x1472f4),_0xa30e4c[_0x46f080(_0x4a2359._0x19c48a,0x387,0x33e,0x3eb)]['push'](_0x1981cf),await _0x263121(_0x1981cf),await _0xcb3eea({'type':_0x46f080(_0x4a2359._0x5c8666,0x428,0x3c0,0x3f0),'message':_0x1981cf});}return _0x558c1d[_0x1455a8(0x20b,_0x4a2359._0x33b2c3,0x1f8,0x1fd)];};let _0xc351a3=0x0;try{const _0x3d094b=await _0x381e62(_0x2e1578(_0x1e771a._0x59cd30,_0x1e771a._0x2965c1,_0x1e771a._0xb68e0b,_0x1e771a._0x29a6a8),normalizeMessage(_0x9bb0a0['message']));_0xa30e4c[_0x2e1578(0x2dd,0x2c0,_0x1e771a._0x5e5e12,_0x1e771a._0x5ece93)][_0x2e1578(_0x1e771a._0x1b67a0,0x232,_0x1e771a._0x4dfd63,_0x1e771a._0x423cf9)](_0x3d094b),await _0x263121(_0x3d094b),await _0xcb3eea({'type':_0x2e1578(_0x1e771a._0x23a459,_0x1e771a._0x3e5265,0x2d6,0x33a),'message':_0x3d094b});while(!![]){throwIfAborted(_0x1472f4),_0xc351a3+=0x1;const _0x447344=createAssistantMessageId(_0xa30e4c[_0x12da37(-0x2bd,-0x24b,-_0x1e771a._0x85b1b1,-0x215)],_0xc351a3),_0x44c3ba=createReasoningMessageId(_0x447344),_0x4e3ae7={'model':_0x537abd[_0x2e1578(0x242,0x282,0x2aa,0x290)],'modelIdentity':_0x537abd['modelIdentity'],..._0x537abd[_0x2e1578(0x2db,0x2b9,0x2d0,_0x1e771a._0xa9e744)]?{'provider':_0x537abd[_0x12da37(-_0x1e771a._0x3f03e5,-_0x1e771a._0xf18aaa,-_0x1e771a._0x3fc008,-0x310)]}:{}};let _0x3519c5={'model':_0x537abd[_0x2e1578(0x273,_0x1e771a._0x43b5f0,_0x1e771a._0x5a1874,_0x1e771a._0x5ae5f3)],..._0x537abd[_0x2e1578(0x311,_0x1e771a._0xb39955,_0x1e771a._0x810d95,_0x1e771a._0x2c77a0)]!==void 0x0?{'maxTokens':_0x537abd['maxTokens']}:{},'system':structuredClone(_0xa30e4c[_0x2e1578(0x349,_0x1e771a._0x4e3d8f,_0x1e771a._0x21e63f,_0x1e771a._0x21670e)]),'messages':structuredClone(_0xa30e4c['messages']),'tools':_0x3229fa[_0x12da37(-0x239,-_0x1e771a._0x2f14bf,-0x218,-0x1bd)][_0x2e1578(0x2ef,0x35d,0x2c9,0x32a)](),'metadata':{'sessionId':_0xa30e4c[_0x2e1578(_0x1e771a._0x4a6f17,_0x1e771a._0x4e2e9a,_0x1e771a._0x530669,_0x1e771a._0x5517d0)],'turnId':_0xa30e4c[_0x2e1578(0x38b,0x30c,0x368,0x333)],'modelIdentity':_0x537abd[_0x2e1578(0x374,0x2d2,_0x1e771a._0x325254,0x310)],..._0x537abd[_0x12da37(-0x2bd,-0x2a9,-_0x1e771a._0xdd9a6b,-0x298)]!==void 0x0?{'pricingProviderId':_0x537abd['pricingProviderId']}:{}},..._0x3229fa[_0x12da37(-_0x1e771a._0x1ae50e,-_0x1e771a._0x56cdc4,-_0x1e771a._0x3d77da,-0x265)]?{'outputFormat':_0x3229fa[_0x2e1578(0x2e3,0x380,0x35f,_0x1e771a._0xf18aaa)]}:{}};_0x3519c5=await _0x381e62(_0x12da37(-_0x1e771a._0x95d23,-_0x1e771a._0xf42a4f,-0x2a5,-0x287),_0x3519c5);{const {pricingProviderId:_0x181b88,..._0x3530c3}=_0x3519c5[_0x2e1578(_0x1e771a._0x9fdef9,_0x1e771a._0x2fb407,0x38d,0x334)];_0x3519c5={..._0x3519c5,'metadata':{..._0x3530c3,..._0x537abd['pricingProviderId']!==void 0x0?{'pricingProviderId':_0x537abd[_0x12da37(-0x247,-0x22f,-0x25c,-_0x1e771a._0x30362d)]}:{}}};}await _0xcb3eea({'type':'model_request','request':_0x3519c5});const _0x5191ea=Date[_0x2e1578(0x2ad,0x323,0x314,0x2ee)]();_0x4e3ae7[_0x12da37(-_0x1e771a._0x127df6,-0x259,-_0x1e771a._0x2d51b6,-_0x1e771a._0x4b1558)]=_0x5191ea;let _0x55a54c=await executeModelRequest(_0x3519c5,_0x9bb0a0,_0x537abd,_0x3229fa,_0x16556a,{'assistantMessageId':_0x447344,'reasoningMessageId':_0x44c3ba,'meta':_0x4e3ae7});const _0x57e748=Date[_0x12da37(-0x300,-_0x1e771a._0xd792ba,-_0x1e771a._0x56be67,-0x263)]();_0x4e3ae7['turnCompletedAt']=_0x57e748,_0x55a54c=await _0x381e62(_0x12da37(-_0x1e771a._0x2e42d1,-0x241,-0x267,-0x2d0),_0x55a54c);_0x55a54c[_0x2e1578(_0x1e771a._0xc67e76,_0x1e771a._0x4845e1,_0x1e771a._0x1ab502,0x34e)]&&(_0x55a54c={..._0x55a54c,'providerState':{..._0x55a54c['providerState'],'originModelIdentity':_0x537abd['modelIdentity']}});_0x55a54c=withEstimatedModelCost(_0x3519c5,_0x55a54c);const _0x10df2a=Math[_0x2e1578(0x30a,0x27a,0x2dd,_0x1e771a._0x21306f)](0x0,_0x57e748-_0x5191ea),_0x4a6b8d={'version':0x1,'usage':structuredClone(_0x55a54c[_0x2e1578(0x398,_0x1e771a._0x467181,_0x1e771a._0x1aafc9,0x35e)]),'modelTimeMs':_0x10df2a},_0x4f1284=_0x128aba=>({..._0x4e3ae7,'metrics':{..._0x4a6b8d,'usage':structuredClone(_0x4a6b8d['usage']),'completesRequest':_0x128aba}});await _0xcb3eea({'type':_0x2e1578(0x24d,0x277,0x26b,_0x1e771a._0x40f72d),'response':_0x55a54c,'modelTimeMs':_0x10df2a}),_0xa30e4c[_0x2e1578(_0x1e771a._0x3a1aa2,0x2e9,_0x1e771a._0x8486c0,_0x1e771a._0x1ba44e)]=_0x55a54c;let _0x59b031=await _0x381e62(_0x12da37(-0x281,-_0x1e771a._0x2cbf2e,-_0x1e771a._0x3e92a4,-0x288),withMessageId(responseToAssistantMessage(_0x55a54c),_0x447344));_0x59b031=withMessageId(_0x59b031,_0x447344);const _0x222d04=getToolUseBlocks(_0x59b031),_0x1c4090=await Promise['all'](_0x222d04[_0x2e1578(0x2d2,_0x1e771a._0x269ce1,_0x1e771a._0x251270,0x308)](_0x143ae5=>_0x381e62(_0x12da37(-0x279,-0x2ed,-0x2c8,-0x2ec),_0x143ae5)));_0x1c4090[_0x2e1578(_0x1e771a._0x23a23d,0x28c,0x28e,_0x1e771a._0x510485)]>0x0&&(_0x59b031=replaceToolUseBlocks(_0x59b031,_0x1c4090));const _0x132e2d=withMessageId(_0x59b031,_0x447344);_0x59b031=_0x132e2d;const _0x5e5c54=createReasoningMessage(_0x59b031),_0x1274d3=createAssistantTextMessage(_0x59b031),_0x2bc113=createToolUseMessage(_0x59b031);_0x5e5c54&&await _0xcb3eea({'type':_0x2e1578(0x393,_0x1e771a._0x251270,0x358,_0x1e771a._0x4a056d),'message':withMessageId(_0x5e5c54,_0x44c3ba)});_0x1274d3&&await _0xcb3eea({'type':'assistant_message','message':withMessageId(_0x1274d3,_0x447344)});_0x2bc113&&await _0xcb3eea({'type':_0x12da37(-_0x1e771a._0x36c1f5,-_0x1e771a._0x9f5e63,-0x2ae,-0x2e5),'message':withMessageId(_0x2bc113,_0x447344)});_0xa30e4c['messages'][_0x12da37(-0x281,-_0x1e771a._0x278161,-0x2e5,-0x33b)](_0x132e2d);_0x1c4090[_0x2e1578(0x2f1,0x263,_0x1e771a._0x51b34e,_0x1e771a._0x510485)]>0x0&&await _0x263121(_0x132e2d,_0x4f1284(![]));for(const _0x47d289 of _0x1c4090){await _0xcb3eea({'type':'tool_call','toolCall':_0x47d289});}if(_0x1c4090[_0x12da37(-0x287,-_0x1e771a._0x3eacae,-_0x1e771a._0x19d017,-0x278)]===0x0){const _0x567a1e=await _0x56857d(async()=>{await _0x263121(_0x132e2d,_0x4f1284(![]));});if(_0x567a1e>0x0)continue;const _0x21f35b=await _0x381e62(_0x12da37(-0x233,-0x2a5,-0x27f,-0x21a),_0x59b031),_0x477fa6=withMessageId(_0x21f35b,_0x447344);return _0xa30e4c[_0x2e1578(0x2c8,_0x1e771a._0x530669,_0x1e771a._0x4e1de2,_0x1e771a._0x451ba0)]=_0x477fa6,_0xa30e4c['messages'][_0xa30e4c[_0x12da37(-0x2c2,-0x349,-_0x1e771a._0x39bede,-0x286)][_0x12da37(-_0x1e771a._0x1ab502,-0x28c,-0x2c3,-_0x1e771a._0x8f82c)]-0x1]=_0x477fa6,await _0x263121(_0x477fa6,_0x4f1284(!![])),await _0x8e28ed({'type':_0x12da37(-0x318,-_0x1e771a._0x8c2551,-0x2d3,-_0x1e771a._0x3f5463),'message':_0x477fa6}),throwIfAborted(_0x1472f4),await _0x3229fa[_0x2e1578(_0x1e771a._0x3e5265,_0x1e771a._0x187e71,0x335,0x30c)][_0x12da37(-_0x1e771a._0x655c81,-_0x1e771a._0x2965c1,-_0x1e771a._0x460ed4,-_0x1e771a._0x2a251a)](_0x2e1578(0x2d5,0x31b,0x37e,_0x1e771a._0xa68950),_0xa30e4c,_0x9cd8c6),await _0xcb3eea({'type':'turn_complete','state':_0xa30e4c}),{'status':_0x2e1578(0x369,_0x1e771a._0x591978,0x2e4,0x302),'finalMessage':_0x477fa6,'state':_0xa30e4c};}let _0x4e141e=await _0x3229fa[_0x2e1578(_0x1e771a._0x2c77a0,0x305,0x39a,0x368)]['executeCalls'](_0x1c4090,_0x16556a);const _0x41750c=_0x4e141e[_0x2e1578(0x26d,0x2d7,0x31e,_0x1e771a._0x4b166f)](isAbortedToolResult),_0x436e27=_0x41750c?_0x1f3c93:_0x381e62,_0x3e971d=_0x41750c?_0x8e28ed:_0xcb3eea;_0x4e141e=await Promise[_0x12da37(-_0x1e771a._0x33e466,-0x2ff,-0x296,-0x29b)](_0x4e141e[_0x2e1578(_0x1e771a._0x3359ef,_0x1e771a._0x1aafc9,_0x1e771a._0x2e39e0,0x308)](_0xbc7524=>_0x436e27(_0x2e1578(0x31d,0x31c,0x2e8,0x2de),_0xbc7524))),_0xa30e4c[_0x12da37(-_0x1e771a._0x48c07c,-0x2cc,-0x2ce,-0x2ee)][_0x12da37(-0x30c,-_0x1e771a._0xc9a13b,-0x2e5,-0x2bc)](..._0x4e141e);for(const _0x48a154 of _0x4e141e){await _0x3e971d({'type':'tool_result','result':_0x48a154});}const _0x91600b=await _0x436e27(_0x12da37(-0x2ea,-_0x1e771a._0x11a702,-_0x1e771a._0x453d0e,-_0x1e771a._0x1a825b),createToolResultUserMessage(_0x4e141e));await _0x3e971d({'type':'tool_result_message','message':_0x91600b}),_0xa30e4c['messages']['push'](_0x91600b),await _0x263121(_0x91600b);if(_0x41750c)return{'status':_0x12da37(-_0x1e771a._0x186ac0,-0x334,-_0x1e771a._0x542e53,-0x31e),'state':_0xa30e4c};await _0x56857d();}}catch(_0x12853b){if(!_0x1472f4[_0x12da37(-_0x1e771a._0x26e2d2,-_0x1e771a._0x1518bc,-_0x1e771a._0x2fd12e,-_0x1e771a._0x376c6b)])throw new TurnFailedError(_0x12853b,_0xa30e4c);return{'status':'aborted','state':_0xa30e4c};}}function createSessionId(){const _0x5d0b4d={_0x30241c:0x254,_0x3b1867:0x2cf,_0x32f4ac:0x2b0,_0x23d335:0x28a,_0x576839:0x2bc,_0x2f8b16:0x28f,_0x4764d7:0x26e,_0x50c6ba:0x29d},_0x3938c5={_0x319e9e:0x10a};function _0x44bd45(_0x3317ef,_0x2cc189,_0x400750,_0x225aad){return _0x1d23e3(_0x2cc189- -0x594,_0x2cc189-0x1e1,_0x400750-_0x3938c5._0x319e9e,_0x225aad);}function _0x1bd582(_0x454ae6,_0x24ba0b,_0x2a7b43,_0x120ba7){return _0x1d23e3(_0x2a7b43- -0x52,_0x24ba0b-0x8e,_0x2a7b43-0x148,_0x120ba7);}return _0x44bd45(-0x28b,-0x271,-_0x5d0b4d._0x30241c,-0x23b)+Date[_0x1bd582(0x293,0x30e,0x2a2,0x28e)]()+'-'+Math[_0x1bd582(_0x5d0b4d._0x3b1867,_0x5d0b4d._0x32f4ac,_0x5d0b4d._0x23d335,_0x5d0b4d._0x576839)]()[_0x1bd582(_0x5d0b4d._0x2f8b16,0x2ad,0x29c,0x302)](0x10)[_0x44bd45(-0x24f,-0x2ac,-_0x5d0b4d._0x4764d7,-_0x5d0b4d._0x50c6ba)](0x2,0xa);}function createTurnId(_0x31a645){const _0x5bacea={_0x2c0a69:0x54e},_0x4e2670={_0x1477cf:0x19a,_0x56a658:0x634};function _0x88421c(_0x71f41b,_0x584987,_0x53970d,_0x1accfd){return _0x565414(_0x71f41b-_0x4e2670._0x1477cf,_0x71f41b,_0x584987-_0x4e2670._0x56a658,_0x1accfd-0x179);}return _0x88421c(0x4ff,0x4e7,_0x5bacea._0x2c0a69,0x4f6)+_0x31a645;}function createDefaultMessage(_0x22de95){if(_0x22de95===void 0x0)return void 0x0;return normalizeUserInput(_0x22de95);}function normalizeUserInput(_0x5e07ee){const _0x17b8ac={_0x364c3c:0xef},_0x3b58c9={_0xc4f6f6:0x2c};if(typeof _0x5e07ee===_0x33e9c3(0x134,0xfd,0x13b,0x16a))return{'role':_0x33e9c3(_0x17b8ac._0x364c3c,0x12c,0xf2,0x17f),'content':[{'type':'text','text':_0x5e07ee}]};function _0x16e127(_0xc47178,_0x433ff4,_0x22e1f8,_0x44cf63){return _0x565414(_0xc47178-0x1c6,_0xc47178,_0x44cf63-0x529,_0x44cf63-_0x3b58c9._0xc4f6f6);}function _0x33e9c3(_0x928d9f,_0x544b3a,_0x19e5af,_0x436d66){return _0x565414(_0x928d9f-0x17d,_0x928d9f,_0x544b3a-0x2af,_0x436d66-0x153);}return normalizeMessage(_0x5e07ee);}function resolveChatModel(_0x374a31){const _0x4a9528={_0x60ba58:0xa7,_0x226062:0x107,_0x24ab07:0xb4,_0x54a54e:0xab,_0x34b574:0xe3,_0xbe7922:0xf2,_0x3509f2:0x90,_0x105dae:0x147},_0x3490b3={_0x6a24cd:0x16e},_0x21ddcc={_0x3efe54:0xd6,_0x1ec8a2:0x5a};function _0xa5c99b(_0x5b9a02,_0x21f7d8,_0x3adb48,_0x8f7744){return _0x565414(_0x5b9a02-_0x21ddcc._0x3efe54,_0x8f7744,_0x5b9a02-0xa4,_0x8f7744-_0x21ddcc._0x1ec8a2);}function _0x47ebd4(_0x30040b,_0x229514,_0x258bec,_0x3c7cd4){return _0x1d23e3(_0x3c7cd4- -0x422,_0x229514-0x189,_0x258bec-_0x3490b3._0x6a24cd,_0x30040b);}if(!_0x374a31[_0xa5c99b(-_0x4a9528._0x60ba58,-0xeb,-_0x4a9528._0x226062,-_0x4a9528._0x24ab07)])throw new Error(_0xa5c99b(-_0x4a9528._0x54a54e,-_0x4a9528._0x34b574,-_0x4a9528._0xbe7922,-_0x4a9528._0x3509f2));return _0x374a31[_0x47ebd4(-0xce,-_0x4a9528._0x105dae,-0x9c,-0xf9)];}function createRegistry(_0x52f3d1){const _0x272cec={_0x1a249a:0x2b1,_0xa27e0a:0x2ab,_0x3e4f37:0x246,_0x24eca6:0x193,_0x5c9cc4:0x204,_0x5597e4:0x200,_0x1eabf9:0x2c2},_0x548d01={_0x860455:0xfd,_0x58bfde:0x163,_0x3ee9fd:0x13f},_0x2875c3={_0x36cc9b:0x6d};if(_0x52f3d1[_0x1060fe(0x285,_0x272cec._0x1a249a,_0x272cec._0xa27e0a,0x246)])return _0x52f3d1[_0x1060fe(0x1ed,0x2b0,0x247,_0x272cec._0x3e4f37)];const _0x31e8dd=createExtensionRegistry();function _0x1060fe(_0x304d55,_0x11e051,_0x590174,_0x55ee3c){return _0x1d23e3(_0x55ee3c- -0xcc,_0x11e051-0x54,_0x590174-_0x2875c3._0x36cc9b,_0x590174);}const _0xcbdd39=_0x52f3d1[_0x1060fe(_0x272cec._0x24eca6,_0x272cec._0x5c9cc4,0x1b8,_0x272cec._0x5597e4)]??[];for(const _0x5b2656 of _0xcbdd39){_0x31e8dd[_0x1060fe(0x2bf,0x2d9,_0x272cec._0x1eabf9,0x279)](_0x5b2656);}function _0xf5ef24(_0xfed87a,_0x431cfd,_0x2441fd,_0x2593ae){return _0x565414(_0xfed87a-_0x548d01._0x860455,_0x2593ae,_0x431cfd-_0x548d01._0x58bfde,_0x2593ae-_0x548d01._0x3ee9fd);}return _0x31e8dd;}function _0x35c2(){const _0x58cf8b=['CMvQzwn0','zw5HyMXLza','ywn0Aw9U','ndi1odm4n3L2uujeuq','C3rYAw5NAwz5','AM9PBG','Aw5WDxrezwX0yq','zxH0zw5ZAw9UCW','B25vC2vYtwvZC2fNzq','yMvMB3jLvg9VBfjLC3vSDefWCgvUza','C3rHz2u','DgvYBwLUywW','nty3mti1mMjZsKPWBW','ywnXDwLYzq','AxrLBxm','Dg9VBhncEu5HBwu','C29Tzq','BwLZC2LUz01VzgvSq2fSBenVDw50','oIbTAxnZAw5NihjLCxvPCMvKigzPzwXKici','Dg9VBf91C2vFBwvZC2fNzq','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','Dg90ywXdB3n0vxnKvgLJA3m','C2vUza','CMfUzg9T','DhjPBq','DhjHBNnMB3jTzxi','oIbLEhbLy3rLzcbVBMuGB2yG','zgvSDge','yMvMB3jLtw9KzwXszxf1zxn0','y29UDgv4DfDPBMrVD0XPBwL0','zxn0Aw1HDgvKq29ZDa','ywz0zxjuB29SuMvZDwX0','nJaWotu3sw1cBLDI','DhvYBKLUzgv4','C3rHDgu','C2XPy2u','qwDLBNqUC2vUzcbYzxf1AxjLCYbHig1LC3nHz2uGD2HLBIbUBYbKzwzHDwX0ig1LC3nHz2uGAxmGy29UzMLNDxjLza','oIbLEhbLy3rLzcbIB29SzwfU','ywjVCNq','CMvXDwvZDa','zMLUza','Dg9tDhjPBMC','B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','ywXS','DxnLCG','yxnRvxnLCG','B25uB29Sq2fSBa','BM93','C29YDa','CMvZzxrnzxnZywDLCW','Dg9VBf9VDxrWDxrFy2H1BMS','Dg9VBf9JB21WBgv0zwq','Dg90ywXfC3rPBwf0zwrdB3n0vxnKvgLJA3m','C2v0vg9VBhm','CNvUt2jZzxj2zxjZ','sw52ywXPzcb0B29SigLUChv0igf0ia','oIb0zxjTAw5HBcbVyNnLCNzLCIaI','CMvHC29UAw5Nvg9Rzw5Z','Dw5RBM93BL90B29S','C2v0','CMvHC29UAw5Nu3rHCNrLzef0','zMLSDgvY','CMvJB3jKrxzLBNq','y29UDgvUDeLUzgv4','A2LUza','C2vZC2LVBKLK','yMvMB3jLrMLUywXpDxrWDxq','y29TCgXLDgvK','mti4mdy3ouLLBw5SyG','C3rYDwn0DxjLza','Bw9KzwXdywXSCW','B3v0Chv0','zhjHAw5tDgvLCMLUzW','BwfW','Bw9KzwXFCMvXDwvZDa','C3LZDgvTuhjVBxb0','Dg9VBf9YzwPLy3rLza','CMvNAxn0CNK','zg9Uzq','y2f0y2G','tw9KzwWGC3rYzwfTigvUzgvKihDPDgHVDxqGysbMAw5HBcbYzxnWB25Zzq','Bw9KzwXjzgvUDgL0Eq','B2jQzwn0','CMvHC29U','ChjVCgvYDgLLCW','iIbPCYbHBhjLywr5igvUywjSzwq','mti0q2XozwnK','CMvHC29UAw5Nx2nODw5R','Dgv4Da','B3v0Chv0sw5KzxG','ywz0zxjnB2rLBfjLC3bVBNnL','Bwv0CMLJCW','CMvXDwLYzwq','BgfZDfjLC3bVBNnL','C2vZC2LVBI0','Aw5WDxq','qwDLBNqGCMvXDwLYzxmGysbJAgf0tw9KzwW','zgvMyxvSDe1LC3nHz2u','DhvYBI0','CgvYBwLZC2LVBKnSyxnZ','y2HHDe1VzgvS','ChjPy2LUz1bYB3zPzgvYswq','D3jPDgu','CMvHC29UAw5Nx21LC3nHz2u','z2v0','Dg9VBf91C2vFy2H1BMS','yw55t2y','BgLZDfrVB2Xty2HLBwfZ','nZK1mZnmBMzuywO','Dg9VBenHBgXdB3vUDa','yxnZAxn0yw50twvZC2fNzuLK','ywz0zxjuDxjUq29TCgXLDgu','zxn0Aw1HDgvKq29ZDenHBgXdB3vUDa','B2jZzxj2zxi','ywrKrxzLBNrmAxn0zw5LCG','yxnZAxn0yw50x2nODw5R','DhvYBKLK','Bwv0ywrHDge','BMfTzq','Dg9VBhm','C3rYzwfTAw5N','DMfSDwu','CMvTB3zLrxzLBNrmAxn0zw5LCG','DxnLCL9TzxnZywDL','B3v0Chv0rM9YBwf0','zw51Bq','ChjVDMLKzxjFCMv0CNK','y2f1C2u','CMvNAxn0zxi','B3jKzxi','CMfJzq','C3LZDgvT','z2v0vg9VBhm','C2v0u3LZDgvTuhjVBxb0','ywz0zxjnzxnZywDLqxbWzw5K','zgvWCW','Dg90ywXszxbVCNrLzenVC3rvC2ruAwnRCW','CMvHC29UAw5Nq29TCgXLDgvKqxq','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','oIbLEhbLy3rLzcbVyMPLy3q','DhvYBLn0yxj0zwrbDa','nJGZmJGYnhDyENvACa','Bwf4vg9Rzw5Z','ChjVDMLKzxjtDgf0zq','yMvMB3jLqxnZAxn0yw50qxbWzw5K','AxnbCNjHEq','zgvZy3jPChrPB24','C2vZC2LVBKrPCG','ywX3yxLZlwnVBMzPCM0','CMvWB3j0zwrdB3n0q2fSBenVDw50','ChjVDMLKzxjFC3rYzwfTx3jLC2v0','CMv0DxjU','oIb1BMv4CgvJDgvKigzPzwXKici','zxjYB3i','Aw50zxjUywXmAwzLy3LJBgu','BgLZDa','Dg9VBf9JywXS','AxrLBuLK','zM9YrwfJAa','DxnHz2u','B3v0Chv0vg9Rzw5Z','oIbLEhbLy3rLzcbHCNjHEq','C2v0q2HHDe1VzgvS','q2fUBM90ihjLz2LZDgvYihrLCM1PBMfSig9IC2vYDMvYici','Dg9VBf91C2vFzgvSDge','CNvUvhjHBNnMB3jTzxjZ','mZeYB1nbrwzY','CMvHC29UAw5NtwvZC2fNzuLK','AgfZt3DU','Dg9VBfj1BNrPBwu','Dg9VBf9ZDgfYDgvK','y29UDgvUDf9KzwX0yq','B25fDMvUDa','Bwv0yq','zgvSzxrL','z2v0q29UDgv4DfDPBMrVD0XPBwL0','Bw9KzwW','CNvU','C2LNBMfS','Dg90ywXszwfZB25PBMDuB2TLBNm','y29UDgvUDa','C3rHDhvZ','vg9VBcbLEgvJDxrPB24GCMvQzwn0zwqGzM9Yia','Dg90ywXjBNb1DfrVA2vUCW','BwvZC2fNzq','BwvZC2fNzxm','ywrKAxrPB25HBfbYB3bLCNrPzxm','ChvZAa','yM9VBgvHBG','yw1VDw50vxnKvgLJA3m','DhLWzq','x3n5C3rLBvbYB21WDa','zMLUywXnzxnZywDL','Bw9KzwXFCMvZCg9UC2u','Dg90ywXnB2rLBfrPBwvnCW','oMfZC2LZDgfUDdO','Bw9KzwXdywXSq291BNq','C3rYzwfT','C2v0vg9WAwm','DMfSDwvZ','ChjVDMLKzxi','Bwf4','BMv4Da','ywrK','CMvXDwvZDenVDw50','zMLUywXFBwvZC2fNzq','CMvZB2X2zq','C3vTBwfYEuLUzgv4','ywjVCNrLza','y29TCgXLDgu','Dg9VBfjLC3vSDhm','y29TCgXLDgvZuMvXDwvZDa','BNvTyMvY','ndGWnJq5nvbPALnOrq','CMvHza','Dw5WCMLJzwrnB2rLBenHBgXdB3vUDa','yMvMB3jLvg9VBev4zwn1DgLVBG','CMvZCg9UC2u','Aw5KzxG','Bw9KzwXuAw1Ltxm','C3rYAw5N','BgvUz3rO','Aw5JBhvKzxm'];_0x35c2=function(){return _0x58cf8b;};return _0x35c2();}var Agent=class{[_0x1d23e3(0x2a5,0x253,0x23b,0x29b)];[_0x565414(-0xec,-0x144,-0x128,-0x106)];['metrics'];[_0x565414(-0x1cc,-0x181,-0x16e,-0x15e)];[_0x1d23e3(0x29f,0x2c6,0x2fc,0x292)];[_0x565414(-0x170,-0x1b0,-0x14e,-0x196)];[_0x1d23e3(0x2e6,0x34e,0x2de,0x2ee)];constructor(_0x4a6ceb={}){const _0x810f07={_0x97b76:0x8d,_0x570d06:0x31,_0x5cea58:0x24d,_0x2ba9c5:0x281,_0x5217a4:0x272,_0x215140:0xb,_0x234b53:0x18,_0xc1dbaa:0x3b,_0x473cc7:0x58,_0x370928:0x23a,_0x4873ff:0x29d,_0x5d8075:0x27c,_0x49840c:0x1d1,_0x474341:0x1d1,_0x465623:0x20b,_0x2f127e:0x2f,_0x35c6df:0x28,_0x579f78:0x91,_0x19b2ec:0x2b,_0x226c6c:0x281,_0x552d5a:0x2aa,_0x11d449:0x218,_0x1b1cc2:0x201,_0x26160c:0x32,_0x3bb876:0x6e,_0x3726a0:0x54,_0x35f2a0:0x26,_0x21d083:0x1,_0x1ff893:0x25,_0x385546:0x5,_0x33e34e:0x22,_0x51caa3:0x303,_0x8c7e62:0x288,_0x352079:0x297,_0xc5febb:0x2c4},_0x2bdcf2={_0x3806ec:0x14a,_0x204665:0x12e,_0x33e20b:0xe2,_0x2c1303:0x10c,_0x39c64f:0x424,_0x437ebb:0x429},_0x5bbe04={_0xbf18ce:0x9e,_0x4ea929:0xda};this[_0x2ac60e(_0x810f07._0x97b76,0x38,_0x810f07._0x570d06,0x2c)]=_0x4a6ceb[_0x3cab19(0x2a9,_0x810f07._0x5cea58,_0x810f07._0x2ba9c5,_0x810f07._0x5217a4)]??createSessionId(),this[_0x2ac60e(_0x810f07._0x215140,_0x810f07._0x234b53,-_0x810f07._0xc1dbaa,_0x810f07._0x473cc7)]=0x0,this['_systemPrompt']=_0x4a6ceb[_0x3cab19(_0x810f07._0x370928,_0x810f07._0x4873ff,0x22e,_0x810f07._0x5d8075)]??'';function _0x3cab19(_0x458213,_0x539767,_0x311a72,_0x4441e0){return _0x565414(_0x458213-_0x5bbe04._0xbf18ce,_0x311a72,_0x4441e0-0x3e0,_0x4441e0-_0x5bbe04._0x4ea929);}this[_0x3cab19(_0x810f07._0x49840c,0x1cb,_0x810f07._0x474341,_0x810f07._0x465623)]=(_0x4a6ceb[_0x2ac60e(0x23,-_0x810f07._0x2f127e,_0x810f07._0x35c6df,-0x2a)]??[])[_0x2ac60e(_0x810f07._0x579f78,0x40,-0x5,_0x810f07._0x19b2ec)](normalizeMessage),this[_0x3cab19(0x223,_0x810f07._0x226c6c,_0x810f07._0x552d5a,0x292)]=createDefaultMessage(_0x4a6ceb['message']),this['metrics']=createAgentMetrics({'getContextWindowLimit':_0x4a6ceb[_0x3cab19(0x26b,_0x810f07._0x11d449,0x1db,_0x810f07._0x1b1cc2)]});const _0x231b73=_0x4a6ceb['onEvent'],_0x29b3ac=async(_0x3f739f,_0x5ae2ce)=>{const _0x5682d0={_0x5aebea:0x135},_0x1aa601={_0x200fb8:0x1d8,_0x8741f9:0x3f1,_0x23abca:0x29};this[_0x4dfca1(_0x2bdcf2._0x3806ec,_0x2bdcf2._0x204665,_0x2bdcf2._0x33e20b,_0x2bdcf2._0x2c1303)][_0x44f8d3(_0x2bdcf2._0x39c64f,0x426,0x3e5,_0x2bdcf2._0x437ebb)](_0x3f739f);function _0x44f8d3(_0x36f718,_0x4f0b17,_0x37987d,_0x58290b){return _0x2ac60e(_0x36f718-_0x1aa601._0x200fb8,_0x4f0b17-_0x1aa601._0x8741f9,_0x37987d-_0x1aa601._0x23abca,_0x36f718);}function _0x4dfca1(_0x3862be,_0x5b21da,_0x245751,_0x34959d){return _0x2ac60e(_0x3862be-_0x5682d0._0x5aebea,_0x245751-0x90,_0x245751-0xc7,_0x34959d);}await _0x231b73?.(_0x3f739f,_0x5ae2ce);},_0x29d530=createInternalToolRuntime(_0x4a6ceb[_0x2ac60e(_0x810f07._0x26160c,_0x810f07._0x3bb876,_0x810f07._0x3726a0,_0x810f07._0x35f2a0)]??[],{'onEvent':_0x29b3ac,'onToolCall':_0x4a6ceb[_0x2ac60e(_0x810f07._0x21d083,_0x810f07._0x1ff893,-_0x810f07._0x385546,_0x810f07._0x33e34e)]});function _0x2ac60e(_0x34548f,_0x57f045,_0x5e161d,_0x373d64){return _0x565414(_0x34548f-0x42,_0x373d64,_0x57f045-0x1a6,_0x373d64-0xf6);}this['deps']={'registry':createRegistry(_0x4a6ceb),'chatModel':resolveChatModel(_0x4a6ceb),'toolRuntime':_0x29d530,'askUser':_0x4a6ceb[_0x3cab19(0x246,0x272,0x26a,0x25e)],'setTopic':_0x4a6ceb['setTopic'],'onEvent':_0x29b3ac,'sessionDir':_0x4a6ceb[_0x3cab19(_0x810f07._0x51caa3,_0x810f07._0x8c7e62,_0x810f07._0x352079,_0x810f07._0xc5febb)],'outputFormat':_0x4a6ceb['outputFormat']};}get['systemPrompt'](){return this['_systemPrompt'];}[_0x1d23e3(0x2fa,0x2d0,0x2bf,0x28e)](_0x4f428c=[]){const _0x235b36={_0x3a1190:0x324,_0x454660:0x313},_0x52c3b2={_0x5ce137:0x183,_0xf83cdd:0x43b,_0x2bf274:0xf};function _0x42c467(_0x33ae9f,_0xed7f85,_0x5482b0,_0x262b72){return _0x565414(_0x33ae9f-_0x52c3b2._0x5ce137,_0x5482b0,_0x262b72-_0x52c3b2._0xf83cdd,_0x262b72-_0x52c3b2._0x2bf274);}this[_0x42c467(0x2ec,0x343,_0x235b36._0x3a1190,_0x235b36._0x454660)]['toolRuntime']['setTools'](_0x4f428c);}[_0x565414(-0x172,-0x170,-0x12b,-0xbc)](){const _0x19a8fc={_0x45a0cf:0x22a,_0x1208be:0x288,_0x5393fe:0x118,_0x4a14fb:0x20e},_0x1b24df={_0xb1927a:0xbb,_0x5c8847:0x1c9},_0x17c636={_0x319210:0x352,_0xe3dab0:0x2c};function _0x1bac40(_0x203ec0,_0x2a762c,_0x51e1b5,_0x55014f){return _0x565414(_0x203ec0-0x1ed,_0x55014f,_0x203ec0-_0x17c636._0x319210,_0x55014f-_0x17c636._0xe3dab0);}function _0x66e8d2(_0x5490d6,_0x126755,_0x3a3ce9,_0x274f0b){return _0x1d23e3(_0x3a3ce9- -0x490,_0x126755-_0x1b24df._0xb1927a,_0x3a3ce9-_0x1b24df._0x5c8847,_0x274f0b);}return this[_0x1bac40(_0x19a8fc._0x45a0cf,_0x19a8fc._0x1208be,0x1c7,0x278)][_0x66e8d2(-_0x19a8fc._0x5393fe,-0x109,-0x122,-0xbb)][_0x1bac40(_0x19a8fc._0x4a14fb,0x246,0x1c9,0x1ed)]();}[_0x1d23e3(0x34a,0x2dd,0x323,0x2e0)](_0x289ad2,_0x2e329b={}){const _0xaf3678={_0x4916b4:0x406,_0x1ba980:0x3af,_0x4428b5:0x3af,_0x18162a:0x35b,_0x43504f:0x4af,_0x1c8dda:0x4f1,_0x1d683f:0x4ae},_0x5e80c5={_0x552594:0x584},_0x1d93b9={_0x50d2bc:0x1c9,_0x4bed13:0xb7,_0x565a98:0xd7};this['_systemPrompt']=_0x289ad2;function _0x5ce1e3(_0x1b4c34,_0x3c597d,_0x398f60,_0x3a3651){return _0x1d23e3(_0x1b4c34-_0x1d93b9._0x50d2bc,_0x3c597d-_0x1d93b9._0x4bed13,_0x398f60-_0x1d93b9._0x565a98,_0x398f60);}function _0x5ddcc0(_0x37747e,_0x413f3c,_0x3c1ad7,_0xa4cf15){return _0x565414(_0x37747e-0x78,_0x3c1ad7,_0x413f3c-_0x5e80c5._0x552594,_0xa4cf15-0xc6);}_0x2e329b[_0x5ddcc0(0x44f,_0xaf3678._0x4916b4,0x46c,_0xaf3678._0x1ba980)]===!![]&&(this[_0x5ddcc0(0x400,_0xaf3678._0x4428b5,0x345,_0xaf3678._0x18162a)]=[],this[_0x5ce1e3(_0xaf3678._0x43504f,_0xaf3678._0x1c8dda,0x4cf,_0xaf3678._0x1d683f)]=0x0);}['setSessionId'](_0x2a5a3c){function _0xaa9f71(_0x333cb1,_0x2ff932,_0x379e4b,_0x6afabc){return _0x565414(_0x333cb1-0x17c,_0x333cb1,_0x6afabc-0x520,_0x6afabc-0xc5);}this[_0xaa9f71(0x3db,0x3f1,0x40c,0x3b2)]=_0x2a5a3c;}[_0x1d23e3(0x367,0x3ae,0x39f,0x3d3)](_0x2d228b){const _0x305355={_0x4145eb:0x1b2,_0x1e3951:0x1fc,_0x2b5b31:0x227},_0x4f5ae1={_0x111db8:0x4a3,_0x377ebd:0x177},_0x4e7efb={_0x2749e9:0x14f,_0xe05af0:0x135,_0x14e8bd:0x1};function _0xf082f(_0x777a57,_0x560131,_0x179c9c,_0x4b66f6){return _0x1d23e3(_0x560131- -_0x4e7efb._0x2749e9,_0x560131-_0x4e7efb._0xe05af0,_0x179c9c-_0x4e7efb._0x14e8bd,_0x179c9c);}function _0x26440b(_0xf673ba,_0x2291e5,_0x100a89,_0x5cbe90){return _0x1d23e3(_0x5cbe90- -_0x4f5ae1._0x111db8,_0x2291e5-_0x4f5ae1._0x377ebd,_0x100a89-0x45,_0x100a89);}this[_0x26440b(-0x17a,-_0x305355._0x4145eb,-0x196,-0x157)][_0xf082f(_0x305355._0x1e3951,0x1da,0x22f,_0x305355._0x2b5b31)]=_0x2d228b;}async[_0x565414(-0x1be,-0x1ad,-0x199,-0x204)](_0x144365=this[_0x565414(-0x112,-0x19d,-0x14e,-0x1a4)],_0x2bb592={}){const _0x1419c8={_0x39fa3f:0x2be,_0x11e41f:0x373,_0xcf79bc:0x341,_0x360212:0x2d5,_0x4dae52:0x34e,_0x4aea21:0x312,_0x473707:0x339,_0x383749:0x32c,_0xde7caf:0x37e,_0x226b1a:0x33d,_0x343db3:0x382,_0x2ce8a5:0x332,_0x1b77e9:0x336,_0x48a437:0x2dc,_0x622c56:0x33c,_0xd35166:0x328,_0x5f5a67:0x2ef,_0x39f9d3:0x34f,_0x227c6a:0x379,_0x93e2d8:0x376,_0x222644:0x38b,_0x5b0121:0x2af,_0x46e306:0x270,_0x4f63aa:0x2cf,_0x3fbe23:0x291},_0x55d4fc={_0x346c48:0x5d5},_0x50cfbb={_0x4a0242:0x10c,_0x56e2e4:0x1a8};if(!_0x144365)throw new Error(_0x1bc283(0x32a,_0x1419c8._0x39fa3f,0x37a,_0x1419c8._0x11e41f));function _0x1bc283(_0x465a3f,_0x810e06,_0x30de98,_0xc056c7){return _0x565414(_0x465a3f-_0x50cfbb._0x4a0242,_0x30de98,_0x465a3f-0x4b5,_0xc056c7-_0x50cfbb._0x56e2e4);}this[_0x1bc283(0x327,0x373,_0x1419c8._0xcf79bc,_0x1419c8._0x360212)]+=0x1;function _0x163920(_0x3ea797,_0xf7cf86,_0xd62269,_0x59312d){return _0x1d23e3(_0x3ea797- -_0x55d4fc._0x346c48,_0xf7cf86-0xc6,_0xd62269-0x46,_0x59312d);}const _0x2240d6=_0x2bb592[_0x1bc283(_0x1419c8._0x4dae52,_0x1419c8._0x4aea21,_0x1419c8._0x473707,_0x1419c8._0x383749)];try{const _0xb4f1ab=await runTurn({'sessionId':this[_0x1bc283(0x347,0x33a,0x32a,0x314)],'turnId':createTurnId(this['turnIndex']),'streaming':_0x2bb592[_0x1bc283(_0x1419c8._0xde7caf,0x397,0x3cf,0x30f)],'signal':_0x2bb592[_0x163920(-_0x1419c8._0x226b1a,-0x383,-_0x1419c8._0x343db3,-0x34d)],'system':this['systemPrompt'],'messages':this[_0x1bc283(0x2e0,0x2ee,0x2b3,_0x1419c8._0x2ce8a5)],'message':normalizeUserInput(_0x144365),..._0x2240d6?{'drainSteering':async()=>(await _0x2240d6())[_0x163920(-0x2c7,-0x2da,-0x312,-0x2c4)](normalizeUserInput)}:{}},this['deps']);return this[_0x163920(-_0x1419c8._0x1b77e9,-0x31f,-_0x1419c8._0x48a437,-_0x1419c8._0x622c56)]=_0xb4f1ab[_0x1bc283(_0x1419c8._0xd35166,_0x1419c8._0x5f5a67,0x2d3,0x37b)]['messages'][_0x1bc283(_0x1419c8._0x39f9d3,0x38a,_0x1419c8._0x227c6a,0x355)](normalizeMessage),_0xb4f1ab;}catch(_0x1a5681){if(_0x1a5681 instanceof TurnFailedError){this[_0x163920(-_0x1419c8._0x1b77e9,-_0x1419c8._0x93e2d8,-0x2db,-0x301)]=synthesizeMissingToolResults(_0x1a5681['state'][_0x163920(-0x336,-_0x1419c8._0x222644,-0x2ff,-0x354)][_0x163920(-0x2c7,-0x2e9,-_0x1419c8._0x5b0121,-_0x1419c8._0x46e306)](normalizeMessage));throw _0x1a5681[_0x163920(-0x291,-_0x1419c8._0x4f63aa,-0x252,-_0x1419c8._0x3fbe23)];}throw _0x1a5681;}}};export{normalizeToolOutputValue,createToolOutput,ToolExecutionError,defineTool,resolveToolPermissionClass,ToolRegistry,validateToolInput,deriveFinalToolOutput,createInternalToolRuntime,createExtensionRegistry,createAgentMetrics,runTurn,Agent};
|
package/dist/chunk-LIE76IJA.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x19c2(){const _0x5291fb=['nJu3mZqXm3DZzfflqq','nZyZmJG2me5ltwLPDq','zgf0ytO','zgvZy3jPChrPB24','y29UDgvUDa','yxv0BW','Aw5WDxq','BwvZC2fNzq','otq5odC5tgPJtvfj','Dg9VBhm','Aw5WDxrFDgv4Da','BgvUz3rO','C3LZDgvT','Dgv4Da','zgf0yq','sw1Hz2uGCMv0DxjUzwqGyNKGvMLLD0zPBguGzM9YihrVB2WGCMvZDwX0ia','DhjPBq','zNvUy3rPB25Fy2fSBf9VDxrWDxq','odC4otK4oer4s3DrqG','Aw5WDxrFAw1Hz2u','mtuYmufyq01zCa','BwvKAwfFDhLWzq','zwzMB3j0','ndmZoevIr3HTAW','y29KzxG','AM9PBG','AxnbCNjHEq','yxnZAxn0yw50','DMLZAwjPBgL0Eq','Dg9VBf91C2u','DhLWzq','zNvUy3rPB25Fy2fSBa','BMfTzq','C2nOzw1H','Bw9KzwW','DxnLCI12AxnPyMXL','C3rYAw5N','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','Aw5WDxrFC2nOzw1H','Dg9VBf91C2vFAwq','B3v0Chv0rM9YBwf0','C3rYAwn0','ChvZAa','C3vTBwfYEq','C291CMnL','zNvUy3rPB24','zMLSDgvY','C3rHDhvZ','CM9Szq','mZG2vhnvDLLU','C3bSAwnL','Aw5JBhvKzuvUy3j5ChrLzenVBNrLBNq','DxnLCG','B2jQzwn0','BwfW','BwvZC2fNzxm','mta1ndK2uuXRr0jo','Aw1Hz2u','mZe1ntqWmgT2tuXZBa','yMfZzty0','CMvHC29UAw5N','Bwf4vg9Rzw5Z'];_0x19c2=function(){return _0x5291fb;};return _0x19c2();}(function(_0x30b5e5,_0x446c34){const _0x52bbb1={_0x819112:0x16e,_0x8d4fee:0x1a1,_0x55716b:0x198,_0x40b305:0x199,_0x2567b4:0x18c,_0x3a6246:0x183,_0x41a8e2:0x17d,_0x59680b:0x16d,_0x210852:0x187,_0x176a08:0x17c,_0x4c729d:0x19e,_0x48426e:0x194,_0x19ad74:0x169,_0x956422:0x16d,_0x3e30ea:0x199,_0x84eed3:0x19b,_0x36d419:0x185,_0x1aa4ec:0x176,_0x1fc228:0x16b},_0x11a2b9={_0x538d1b:0x38a};function _0x4c9d6b(_0x2daa94,_0x567925,_0x2b7193,_0x53ee85){return _0x8911(_0x53ee85- -0x374,_0x2b7193);}const _0x203a19=_0x30b5e5();function _0x1350f6(_0x4273b7,_0x24a1c9,_0x9c0220,_0x59d925){return _0x8911(_0x59d925- -_0x11a2b9._0x538d1b,_0x24a1c9);}while(!![]){try{const _0xc9df82=parseInt(_0x1350f6(-_0x52bbb1._0x819112,-_0x52bbb1._0x8d4fee,-_0x52bbb1._0x55716b,-0x18d))/0x1+parseInt(_0x4c9d6b(-_0x52bbb1._0x40b305,-0x194,-0x1a5,-_0x52bbb1._0x2567b4))/0x2*(parseInt(_0x4c9d6b(-_0x52bbb1._0x3a6246,-_0x52bbb1._0x41a8e2,-_0x52bbb1._0x59680b,-0x168))/0x3)+parseInt(_0x1350f6(-_0x52bbb1._0x210852,-_0x52bbb1._0x176a08,-0x1a8,-0x199))/0x4+parseInt(_0x1350f6(-_0x52bbb1._0x4c729d,-0x176,-0x1ad,-_0x52bbb1._0x48426e))/0x5+-parseInt(_0x4c9d6b(-_0x52bbb1._0x19ad74,-0x160,-0x159,-_0x52bbb1._0x956422))/0x6+parseInt(_0x1350f6(-0x1ae,-0x17f,-0x19b,-0x195))/0x7+parseInt(_0x4c9d6b(-_0x52bbb1._0x3e30ea,-_0x52bbb1._0x84eed3,-0x19e,-_0x52bbb1._0x36d419))/0x8*(-parseInt(_0x4c9d6b(-_0x52bbb1._0x1aa4ec,-0x17d,-0x178,-_0x52bbb1._0x1fc228))/0x9);if(_0xc9df82===_0x446c34)break;else _0x203a19['push'](_0x203a19['shift']());}catch(_0x37e07f){_0x203a19['push'](_0x203a19['shift']());}}}(_0x19c2,0xc0d4d));import{resolveOpenAiReasoningConfig}from'./chunk-IUZALP6K.js';import{isProviderStateCompatible,normalizeContent}from'./chunk-YNOIG4FD.js';function systemToInstructions(_0x3a5ad0){const _0x5b0f81={_0x31da59:0x594,_0x3605f3:0x5ab,_0x3132a8:0x5d1},_0x355980={_0x5bc45f:0x3c6},_0x416aa9={_0x525940:0x2f4};function _0x5681d9(_0x5a9cc7,_0x2f97e9,_0x49c3b9,_0x47694e){return _0x8911(_0x5a9cc7-_0x416aa9._0x525940,_0x49c3b9);}function _0x274c61(_0x1043c6,_0xcd9168,_0x59d73f,_0x1f09cc){return _0x8911(_0x1f09cc-_0x355980._0x5bc45f,_0xcd9168);}return normalizeContent(_0x3a5ad0)[_0x274c61(0x597,0x5a4,_0x5b0f81._0x31da59,_0x5b0f81._0x3605f3)](_0x2366ce=>_0x2366ce[_0x274c61(0x5ee,0x5ea,0x5bb,0x5d9)]===_0x5681d9(0x4f6,0x501,0x4e1,0x50f))[_0x274c61(_0x5b0f81._0x3132a8,0x5bc,0x5b7,0x5b3)](_0x1c4e3d=>_0x1c4e3d[_0x274c61(0x5ab,0x5e2,0x5b4,0x5c8)])['join']('\x0a\x0a');}function pushUserContentMessage(_0x124158,_0x1ed829,_0x5994a6){const _0x121873={_0x538afe:0x17c,_0x1137e2:0x15e,_0x514e76:0x1ad,_0x1bd6be:0x180,_0x6aa398:0x177},_0xfdc16b={_0x5774e1:0x37c};function _0x223f5c(_0x162456,_0x1b5920,_0x28a317,_0x356f16){return _0x8911(_0x162456- -_0xfdc16b._0x5774e1,_0x1b5920);}function _0x12b9b9(_0x2f8323,_0x86b88a,_0x209cf5,_0x41c332){return _0x8911(_0x86b88a- -0x200,_0x209cf5);}if(_0x5994a6[_0x223f5c(-_0x121873._0x538afe,-_0x121873._0x1137e2,-0x170,-0x191)]===0x0)return;_0x124158[_0x223f5c(-0x19b,-_0x121873._0x514e76,-0x186,-0x1b2)]({'type':_0x223f5c(-_0x121873._0x1bd6be,-0x18d,-_0x121873._0x6aa398,-0x182),'role':_0x1ed829,'content':_0x5994a6});}function hasSerializableToolUse(_0x5c9496){const _0x2793db={_0x2c8b9a:0x244,_0x581016:0x24e,_0x33bbf9:0x23d,_0x3b8cbb:0x23f,_0x2ddc5e:0x25d,_0x4eba26:0x158,_0x24268f:0x182,_0x3df7d4:0x171,_0x1937ef:0x15f,_0x1f08fe:0x17d},_0x2a5060={_0x2e4eb9:0x3f},_0x292b36={_0x17f6b8:0x368};function _0x4956f5(_0x29e34a,_0x47637a,_0xef8ab6,_0x5ff285){return _0x8911(_0x5ff285- -_0x292b36._0x17f6b8,_0x47637a);}function _0x4e5159(_0x2e8499,_0xb64df2,_0x49482e,_0x4d1ccf){return _0x8911(_0xb64df2-_0x2a5060._0x2e4eb9,_0x4d1ccf);}return _0x5c9496['id'][_0x4e5159(0x263,_0x2793db._0x2c8b9a,0x237,_0x2793db._0x581016)]()[_0x4e5159(_0x2793db._0x33bbf9,_0x2793db._0x3b8cbb,_0x2793db._0x2ddc5e,0x246)]>0x0&&_0x5c9496['name'][_0x4956f5(-_0x2793db._0x4eba26,-_0x2793db._0x24268f,-_0x2793db._0x3df7d4,-0x163)]()[_0x4956f5(-0x174,-_0x2793db._0x1937ef,-_0x2793db._0x1f08fe,-0x168)]>0x0;}function hasSerializableToolResult(_0x540cb0){const _0x167e20={_0x4b51a9:0x150,_0x46c349:0x4dd},_0x5debe7={_0x2ca3c8:0x2f0},_0x5f2356={_0x17cd20:0x36a};function _0x2723f7(_0x38f389,_0x13bee7,_0x40d2c6,_0x20e17){return _0x8911(_0x13bee7- -_0x5f2356._0x17cd20,_0x20e17);}function _0x171178(_0x4fa6f5,_0xb2cf4a,_0x5416cf,_0x3d5c7c){return _0x8911(_0x5416cf-_0x5debe7._0x2ca3c8,_0x4fa6f5);}return _0x540cb0['tool_use_id'][_0x2723f7(-0x165,-0x165,-_0x167e20._0x4b51a9,-0x15c)]()[_0x171178(0x4d9,_0x167e20._0x46c349,0x4f0,0x504)]>0x0;}function isResponseInputObject(_0x2f2433){const _0x22105e={_0x28e7d8:0x8,_0x3ffa39:0x1a,_0x5e2da1:0xa,_0x24304b:0x0,_0x167760:0x48,_0x922325:0x32,_0x5bfe69:0x4e},_0xb15ce8={_0x27f2d8:0x229},_0x17b554={_0x22d697:0x2fa};function _0x23a78c(_0x585ab6,_0xafa9df,_0x436462,_0x86e76d){return _0x8911(_0x585ab6- -_0x17b554._0x22d697,_0x436462);}if(typeof _0x2f2433!=='object'||_0x2f2433===null||Array[_0x4381e5(-0x28,-_0x22105e._0x28e7d8,-0x7,-_0x22105e._0x3ffa39)](_0x2f2433))return![];const _0x1bbd4d=_0x2f2433;function _0x4381e5(_0x2be602,_0xb591e2,_0x4af993,_0x21534b){return _0x8911(_0x21534b- -_0xb15ce8._0x27f2d8,_0xb591e2);}return typeof _0x1bbd4d[_0x4381e5(-_0x22105e._0x5e2da1,_0x22105e._0x24304b,-0x20,-0x16)]===_0x4381e5(-_0x22105e._0x167760,-_0x22105e._0x922325,-0x32,-_0x22105e._0x5bfe69);}function isImageToolResultBlock(_0x527ec7){const _0x42ea33={_0x30a97a:0x129,_0x772f49:0x223,_0x1f540e:0x22a,_0x6c7d0e:0x213,_0x56408b:0x20d,_0x70fb9b:0x1f6,_0x258809:0x238,_0x4212db:0x24d,_0x493318:0x12d,_0x56330a:0x137,_0x3c584c:0x136,_0x5a9034:0x123,_0x56015f:0x125,_0xd7161c:0x14a,_0x3ae5d9:0x1fb,_0x55cfe2:0x1fb,_0x1f0399:0x1f8,_0x42cafe:0x21c,_0x42e7b1:0x200},_0x5078c2={_0x1f9360:0x1d};if(typeof _0x527ec7!==_0x1859b9(-0x133,-_0x42ea33._0x30a97a,-0x12a,-0x137)||_0x527ec7===null||Array[_0x1f364d(0x214,0x224,_0x42ea33._0x772f49,0x22c)](_0x527ec7))return![];const _0x30230=_0x527ec7;function _0x1859b9(_0x275106,_0x4d127d,_0x216a3d,_0x584efd){return _0x8911(_0x275106- -0x31f,_0x216a3d);}function _0x1f364d(_0x565af7,_0x555558,_0x420d5f,_0x55a99){return _0x8911(_0x55a99-_0x5078c2._0x1f9360,_0x420d5f);}return _0x30230['type']===_0x1f364d(_0x42ea33._0x1f540e,0x222,_0x42ea33._0x6c7d0e,_0x42ea33._0x56408b)&&_0x30230[_0x1f364d(_0x42ea33._0x70fb9b,0x1fb,0x20d,0x200)]?.[_0x1f364d(_0x42ea33._0x258809,0x245,_0x42ea33._0x4212db,0x230)]===_0x1859b9(-_0x42ea33._0x493318,-_0x42ea33._0x56330a,-_0x42ea33._0x3c584c,-0x122)&&typeof _0x30230[_0x1859b9(-0x13c,-_0x42ea33._0x5a9034,-_0x42ea33._0x56015f,-_0x42ea33._0xd7161c)]['media_type']===_0x1f364d(_0x42ea33._0x3ae5d9,_0x42ea33._0x55cfe2,0x1f1,_0x42ea33._0x1f0399)&&typeof _0x30230[_0x1f364d(0x208,_0x42ea33._0x42cafe,_0x42ea33._0x42e7b1,0x200)]['data']==='string';}function getToolResultText(_0x593503){const _0x4282b7={_0x3ee203:0x53,_0x149972:0x40,_0x415617:0x4a,_0x16a5dd:0x31d,_0x3bc9b1:0x86,_0x13d32a:0x7d,_0x3867f8:0x7b,_0x163acd:0x32b,_0x100104:0x308,_0x37bc48:0x31a},_0x3b5e2f={_0x25a1dc:0x96,_0x226ed2:0x7e,_0x607f9f:0xec,_0x29683f:0x10b,_0x2d5ea1:0xb0};function _0x572350(_0x23f444,_0x83448c,_0x46b918,_0x51ea9c){return _0x8911(_0x23f444- -0x188,_0x46b918);}if(typeof _0x593503===_0x572350(_0x4282b7._0x3ee203,_0x4282b7._0x149972,0x6d,_0x4282b7._0x415617))return _0x593503;const _0x38f8cf=_0x593503['filter'](_0x30cb96=>{const _0x2a0c9e={_0x97c1e4:0x5c};function _0x2fcd0e(_0x23f17,_0x21cb4c,_0x312acd,_0x4d53f4){return _0x572350(_0x23f17-0x32,_0x21cb4c-0xd4,_0x4d53f4,_0x4d53f4-_0x2a0c9e._0x97c1e4);}function _0x42fe63(_0x3b4a29,_0x411d9b,_0x16a4c9,_0x45e0a0){return _0x572350(_0x45e0a0- -0x196,_0x411d9b-0xa4,_0x16a4c9,_0x45e0a0-0xe8);}return typeof _0x30cb96===_0x2fcd0e(_0x3b5e2f._0x25a1dc,0x93,_0x3b5e2f._0x226ed2,0xa8)&&_0x30cb96!==null&&_0x30cb96[_0x42fe63(-0x117,-_0x3b5e2f._0x607f9f,-0xff,-_0x3b5e2f._0x29683f)]===_0x2fcd0e(0xac,0xab,0xb5,_0x3b5e2f._0x2d5ea1);})[_0x5b7d71(_0x4282b7._0x16a5dd,0x326,0x317,0x32b)](_0xa5dfd9=>_0xa5dfd9[_0x5b7d71(0x340,0x325,0x339,0x340)])[_0x572350(_0x4282b7._0x3bc9b1,0xa1,0x75,0x94)]('\x0a\x0a')[_0x572350(_0x4282b7._0x13d32a,0x66,0x80,_0x4282b7._0x3867f8)]();function _0x5b7d71(_0x23d8b8,_0x582c03,_0x29d6be,_0x58a41b){return _0x8911(_0x58a41b-0x13e,_0x23d8b8);}return _0x38f8cf['length']>0x0?_0x38f8cf:_0x5b7d71(_0x4282b7._0x163acd,_0x4282b7._0x100104,0x32d,_0x4282b7._0x37bc48);}function getToolResultImages(_0x146308){const _0x435138={_0xba8215:0xd1,_0x1f5a1b:0x311};function _0x4bc6a5(_0x1910f8,_0x58f30f,_0x4d52b6,_0x2c0f64){return _0x8911(_0x4d52b6- -0x140,_0x2c0f64);}function _0x107833(_0x88a234,_0x432fa1,_0x16a153,_0x4568ba){return _0x8911(_0x16a153-0x12c,_0x4568ba);}return Array[_0x4bc6a5(0xd2,0xe9,0xcf,_0x435138._0xba8215)](_0x146308)?_0x146308[_0x107833(0x327,0x320,_0x435138._0x1f5a1b,0x315)](isImageToolResultBlock):[];}function resolveReasoningVisibility(_0x43ec99){const _0x3cad07={_0x3dfc23:0x526,_0x1eb813:0x51e,_0x4f58ee:0x522,_0x5d1c25:0x4dd,_0x352be2:0x509,_0x16fa7a:0x4eb},_0x54719={_0x837f13:0x311};function _0x89eabd(_0x5d36cf,_0x103765,_0x312ca9,_0x3ff429){return _0x8911(_0x3ff429-_0x54719._0x837f13,_0x103765);}function _0x50b50d(_0x17d3c3,_0x493d65,_0x2d203d,_0x224d94){return _0x8911(_0x493d65-0x2d1,_0x2d203d);}return _0x43ec99['reasoning']?.[_0x89eabd(0x534,_0x3cad07._0x3dfc23,_0x3cad07._0x1eb813,_0x3cad07._0x4f58ee)]??_0x89eabd(_0x3cad07._0x5d1c25,0x4eb,_0x3cad07._0x352be2,_0x3cad07._0x16fa7a);}function _0x8911(_0x39cd29,_0x1a5baa){_0x39cd29=_0x39cd29-0x1d7;const _0x19c29a=_0x19c2();let _0x891189=_0x19c29a[_0x39cd29];if(_0x8911['ijMAiK']===undefined){var _0x434422=function(_0xe3cb94){const _0x2e1fd1='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3a5ad0='',_0x2366ce='';for(let _0x1c4e3d=0x0,_0x124158,_0x1ed829,_0x5994a6=0x0;_0x1ed829=_0xe3cb94['charAt'](_0x5994a6++);~_0x1ed829&&(_0x124158=_0x1c4e3d%0x4?_0x124158*0x40+_0x1ed829:_0x1ed829,_0x1c4e3d++%0x4)?_0x3a5ad0+=String['fromCharCode'](0xff&_0x124158>>(-0x2*_0x1c4e3d&0x6)):0x0){_0x1ed829=_0x2e1fd1['indexOf'](_0x1ed829);}for(let _0x5c9496=0x0,_0x540cb0=_0x3a5ad0['length'];_0x5c9496<_0x540cb0;_0x5c9496++){_0x2366ce+='%'+('00'+_0x3a5ad0['charCodeAt'](_0x5c9496)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2366ce);};_0x8911['anHjPi']=_0x434422,_0x8911['REqmAA']={},_0x8911['ijMAiK']=!![];}const _0x143894=_0x19c29a[0x0],_0x4be5b8=_0x39cd29+_0x143894,_0x2a155d=_0x8911['REqmAA'][_0x4be5b8];return!_0x2a155d?(_0x891189=_0x8911['anHjPi'](_0x891189),_0x8911['REqmAA'][_0x4be5b8]=_0x891189):_0x891189=_0x2a155d,_0x891189;}function createOpenAiResponsesReasoning(_0x3d42b8){const _0x2432d1={_0x37d680:0x432,_0xef4a3a:0x433,_0x2192ae:0x40c,_0x10a253:0x415,_0x1a0eca:0x42c,_0x3e655b:0x43d,_0xa91d34:0x244,_0x19a670:0x225,_0xbcb9df:0x417,_0x53587c:0x3fc,_0x3a6d3e:0x41c,_0x1789b4:0x266,_0x3b47b7:0x253,_0x5d1c20:0x256,_0x56991a:0x262,_0x3237cd:0x266,_0x341f12:0x249,_0x473858:0x406,_0x19eba0:0x423,_0xeb3d9d:0x41d,_0x16f181:0x3fb,_0x273277:0x3fe,_0x5cd773:0x40c},_0x378926={_0x23a6af:0x222},_0x1f27e2=resolveOpenAiReasoningConfig(_0x3d42b8['reasoning']);if(!_0x1f27e2)return{};const _0x5c06c6={},_0x5c9e40=_0x3d42b8[_0x30eebf(_0x2432d1._0x37d680,_0x2432d1._0xef4a3a,_0x2432d1._0x2192ae,_0x2432d1._0x10a253)]?.[_0x30eebf(0x433,_0x2432d1._0x1a0eca,_0x2432d1._0x3e655b,0x42f)]!==void 0x0;function _0x30eebf(_0x302b72,_0x15f606,_0x32ce48,_0x1cd86f){return _0x8911(_0x1cd86f-_0x378926._0x23a6af,_0x302b72);}const _0x4ecd8a=(!_0x5c9e40&&_0x22cf02(0x23d,0x235,_0x2432d1._0xa91d34,0x245)in _0x1f27e2?_0x1f27e2[_0x22cf02(0x23d,0x237,0x24b,_0x2432d1._0x19a670)]:void 0x0)??(resolveReasoningVisibility(_0x3d42b8)===_0x30eebf(0x409,0x3e4,_0x2432d1._0xbcb9df,_0x2432d1._0x53587c)?_0x30eebf(0x409,0x3fe,0x42c,_0x2432d1._0x3a6d3e):void 0x0);_0x1f27e2[_0x22cf02(_0x2432d1._0x1789b4,_0x2432d1._0x3b47b7,_0x2432d1._0x5d1c20,_0x2432d1._0x56991a)]&&(_0x5c06c6[_0x22cf02(_0x2432d1._0x3237cd,_0x2432d1._0x341f12,0x282,0x26e)]=_0x1f27e2['effort']);function _0x22cf02(_0xccf37a,_0x2d63d8,_0x37cf23,_0x4f9ae9){return _0x8911(_0xccf37a-0x5b,_0x4f9ae9);}return _0x4ecd8a&&(_0x5c06c6[_0x30eebf(_0x2432d1._0x473858,_0x2432d1._0x19eba0,_0x2432d1._0xeb3d9d,0x404)]=_0x4ecd8a),{...!_0x5c9e40&&_0x30eebf(0x400,_0x2432d1._0x16f181,_0x2432d1._0xeb3d9d,0x40c)in _0x1f27e2&&_0x1f27e2[_0x30eebf(0x421,0x3fe,_0x2432d1._0x273277,_0x2432d1._0x5cd773)]===![]?{}:{'include':['reasoning.encrypted_content']},...Object['keys'](_0x5c06c6)['length']>0x0?{'reasoning':_0x5c06c6}:{}};}function pushAssistantProviderState(_0x3a9323,_0x4ad4d4,_0x5b14fa){const _0x2041db={_0x2effd8:0x12d,_0x451fbe:0x151,_0x1a5b7a:0x137,_0x34fb53:0x335,_0x43912f:0x32d,_0x2bed0b:0x320,_0x362fae:0x33a,_0x4be6db:0x32a,_0x534726:0x2fd,_0x3a5eb9:0x306,_0x418dcf:0x336,_0x5d2181:0x333,_0x239d22:0x31c,_0x1b5e03:0x2fc,_0x224e84:0x313,_0x3cbcb6:0x302,_0x111aad:0x314,_0x127895:0x32f,_0x49a456:0x33a,_0x25e0bf:0x31e,_0x1aebbb:0x13d,_0x218b6b:0x132,_0x461d91:0x2fe};if(_0x4ad4d4[_0x4915fc(_0x2041db._0x2effd8,0x145,_0x2041db._0x451fbe,_0x2041db._0x1a5b7a)]!==_0x417cc6(0x316,0x330,0x346,_0x2041db._0x34fb53))return![];function _0x417cc6(_0x2b793d,_0x45be2e,_0x3ec9ea,_0x407ef9){return _0x8911(_0x45be2e-0x120,_0x2b793d);}if(!isProviderStateCompatible(_0x4ad4d4,_0x5b14fa))return![];const _0x2d6921=_0x4ad4d4['providerState']?.['openaiResponsesOutput']??[];if(_0x2d6921[_0x417cc6(_0x2041db._0x43912f,_0x2041db._0x2bed0b,_0x2041db._0x362fae,_0x2041db._0x4be6db)]===0x0)return![];function _0x4915fc(_0x417a21,_0x23a47b,_0x377420,_0x5f0ee5){return _0x8911(_0x5f0ee5- -0xb0,_0x377420);}for(const _0x59f9f2 of _0x2d6921){if(isResponseInputObject(_0x59f9f2)){const _0x1f5650=structuredClone(_0x59f9f2);delete _0x1f5650[_0x417cc6(_0x2041db._0x534726,_0x2041db._0x3a5eb9,0x2f6,0x30b)],_0x1f5650[_0x417cc6(_0x2041db._0x418dcf,_0x2041db._0x5d2181,_0x2041db._0x239d22,0x326)]===_0x417cc6(_0x2041db._0x1b5e03,0x313,_0x2041db._0x224e84,_0x2041db._0x3cbcb6)&&!Array[_0x417cc6(_0x2041db._0x111aad,_0x2041db._0x127895,_0x2041db._0x362fae,_0x2041db._0x49a456)](_0x1f5650[_0x417cc6(0x2f1,0x302,_0x2041db._0x25e0bf,0x31b)])&&(_0x1f5650[_0x4915fc(_0x2041db._0x1aebbb,0x145,0x116,_0x2041db._0x218b6b)]=[]),_0x3a9323[_0x417cc6(_0x2041db._0x461d91,0x301,0x30e,0x313)](_0x1f5650);}}return!![];}function toOpenAiResponsesRequest(_0x3fea2f){const _0x57070f={_0x1b51a5:0x13e,_0xfbb730:0x133,_0x132683:0x1c0,_0xe58fb0:0x1ba,_0x922a22:0x1a8,_0x56fda3:0x1af,_0x3cac91:0x17a,_0x4e06fa:0x1ab,_0x500011:0x18e,_0x2c3eb0:0x1b0,_0x2a905b:0x189,_0x32cae6:0x160,_0x43e248:0x156,_0x330be7:0x16e,_0x204486:0x169,_0x41c4bf:0x1ab,_0xe1dd82:0x156,_0x35849a:0x14a,_0x56c5a7:0x12f,_0x168cd5:0x13a,_0x7578c3:0x147,_0x1b23db:0x14b,_0x2b7b2a:0x140,_0x6adfd4:0x133,_0x32e1d4:0x15a,_0x1655fd:0x16e,_0x13d140:0x14e,_0x372c9d:0x19e,_0x167135:0x181,_0x454cf5:0x19a,_0x4b1e4a:0x1cd,_0x342ad8:0x1bf,_0x1e5c29:0x1ad,_0x2e373e:0x171,_0x239e9c:0x1c8,_0x573a02:0x1c1,_0x2bb0fa:0x1b2,_0x441779:0x1ce,_0x1868e1:0x19a,_0x1d4c4a:0x19f,_0x494a9b:0x1a6,_0x38b851:0x16d,_0x3f7f43:0x136,_0x4c2e0f:0x142,_0x4162c1:0x128,_0xf382f6:0x128,_0x134dad:0x18c,_0x35f471:0x167,_0xbe3a07:0x1a5,_0x6e6163:0x19a,_0xa0856d:0x17b,_0x350a16:0x18b,_0x4dd979:0x189,_0x3c5d91:0x1a9,_0x3b9c84:0x175,_0x6e3ccb:0x194,_0x34dd83:0x1ae,_0x58adc1:0x144,_0x38ab18:0x14d,_0x218132:0x14b,_0x5bda36:0x14e,_0x4fcd17:0x143,_0x151a78:0x166,_0x163e7f:0x114,_0x18637f:0x146,_0x11e905:0x123,_0xf74164:0x1a2,_0x37dcf8:0x184,_0x2be146:0x1a4,_0x30f482:0x17a,_0x3d9a80:0x18c,_0x5ecb9a:0x10c,_0x46b928:0x199,_0x51b59c:0x177},_0x2ba74b={_0x3788d1:0x5ae,_0x3b36f7:0x59f,_0x566946:0x5c5,_0x32fedf:0x5c8,_0x4fc62a:0x5ab,_0x26009e:0x5ac},_0x43cb79={_0x3256a5:0x2b,_0x417264:0x423},_0x21e940={_0x115d0e:0x4d,_0x182bb8:0x39d},_0x2472d4=[];function _0x37b2c7(_0x2fb37b,_0x56777a,_0x2f0cde,_0x2fe37a){return _0x8911(_0x2fb37b- -0xb0,_0x2f0cde);}function _0x5a5de8(_0x296196,_0x1ae4ec,_0x49ab86,_0x46488b){return _0x8911(_0x46488b- -0x53,_0x296196);}for(const _0x4ec41b of _0x3fea2f[_0x37b2c7(_0x57070f._0x1b51a5,0x125,_0x57070f._0xfbb730,0x12c)]){if(pushAssistantProviderState(_0x2472d4,_0x4ec41b,_0x3fea2f))continue;const _0x52df30=[];for(const _0x56f869 of normalizeContent(_0x4ec41b['content'])){if(_0x56f869[_0x5a5de8(0x1c6,0x1a4,0x1bf,_0x57070f._0x132683)]===_0x5a5de8(0x1c3,_0x57070f._0xe58fb0,_0x57070f._0x922a22,_0x57070f._0x56fda3)){_0x52df30[_0x5a5de8(_0x57070f._0x3cac91,0x1a3,_0x57070f._0x4e06fa,_0x57070f._0x500011)](_0x4ec41b[_0x5a5de8(0x18e,_0x57070f._0x2c3eb0,_0x57070f._0x2a905b,0x194)]===_0x37b2c7(_0x57070f._0x32cae6,_0x57070f._0x43e248,_0x57070f._0x330be7,_0x57070f._0x204486)?{'type':'output_text','text':_0x56f869[_0x5a5de8(0x1a0,0x1cc,_0x57070f._0x41c4bf,0x1af)]}:{'type':'input_text','text':_0x56f869['text']});continue;}if(_0x56f869['type']===_0x37b2c7(0x140,0x144,0x144,_0x57070f._0xe1dd82)){_0x52df30[_0x37b2c7(0x131,_0x57070f._0x35849a,_0x57070f._0x56c5a7,_0x57070f._0x168cd5)]({'type':'input_image','image_url':_0x37b2c7(_0x57070f._0x7578c3,0x13f,_0x57070f._0x1b23db,_0x57070f._0x2b7b2a)+_0x56f869[_0x37b2c7(_0x57070f._0x6adfd4,0x150,0x14f,0x129)][_0x37b2c7(_0x57070f._0x32e1d4,0x143,0x156,_0x57070f._0x1655fd)]+';base64,'+_0x56f869['source'][_0x37b2c7(0x153,0x154,_0x57070f._0x13d140,0x161)]});continue;}pushUserContentMessage(_0x2472d4,_0x4ec41b['role'],_0x52df30[_0x5a5de8(_0x57070f._0x372c9d,_0x57070f._0x167135,_0x57070f._0x454cf5,0x196)](0x0));if(_0x56f869[_0x5a5de8(0x1bf,0x1b1,0x1aa,0x1c0)]===_0x5a5de8(_0x57070f._0x4b1e4a,0x1d0,_0x57070f._0xe58fb0,_0x57070f._0x342ad8)){if(!hasSerializableToolUse(_0x56f869))continue;_0x2472d4[_0x5a5de8(_0x57070f._0x1e5c29,0x184,_0x57070f._0x2e373e,0x18e)]({'type':_0x5a5de8(_0x57070f._0x922a22,0x1ae,_0x57070f._0x239e9c,_0x57070f._0x573a02),'call_id':_0x56f869['id'],'name':_0x56f869[_0x5a5de8(0x185,0x19f,0x196,0x184)],'arguments':JSON['stringify'](_0x56f869[_0x5a5de8(0x1a1,0x199,0x1b9,0x1a8)]??{})});continue;}if(_0x56f869[_0x5a5de8(_0x57070f._0x2bb0fa,_0x57070f._0x441779,0x1bd,0x1c0)]==='tool_result'){if(!hasSerializableToolResult(_0x56f869))continue;const _0x47b9fc=getToolResultText(_0x56f869[_0x5a5de8(0x18c,_0x57070f._0x1868e1,_0x57070f._0x1d4c4a,_0x57070f._0x494a9b)]);_0x2472d4['push']({'type':_0x37b2c7(0x156,0x155,_0x57070f._0x38b851,_0x57070f._0x2e373e),'call_id':_0x56f869[_0x37b2c7(0x12e,_0x57070f._0x168cd5,_0x57070f._0x3f7f43,0x125)],'output':_0x47b9fc});const _0xa22e59=getToolResultImages(_0x56f869['content']);_0xa22e59[_0x37b2c7(0x150,0x148,_0x57070f._0x4c2e0f,0x136)]>0x0&&_0x2472d4[_0x37b2c7(0x131,_0x57070f._0x4162c1,_0x57070f._0xf382f6,0x12f)]({'type':'message','role':_0x5a5de8(0x1a9,_0x57070f._0x134dad,0x189,0x198),'content':[{'type':_0x37b2c7(0x14f,_0x57070f._0x35f471,0x14e,0x146),'text':_0x5a5de8(0x1bd,_0x57070f._0xbe3a07,0x1b1,0x1b1)+_0x56f869[_0x5a5de8(0x19c,_0x57070f._0x6e6163,_0x57070f._0xa0856d,_0x57070f._0x350a16)]+'.'},..._0xa22e59[_0x5a5de8(0x193,_0x57070f._0x4dd979,_0x57070f._0x3c5d91,0x19a)](_0x4f48db=>({'type':_0x37b2c7(0x158,0x166,0x15f,0x14f),'image_url':_0x37b2c7(0x147,0x12d,0x12a,0x145)+_0x4f48db[_0x37b2c7(0x133,0x130,0x127,0x119)]['media_type']+';base64,'+_0x4f48db[_0x5a5de8(0x188,0x182,0x184,0x190)][_0x37b2c7(0x153,0x15c,0x15a,0x171)]}))]});}}pushUserContentMessage(_0x2472d4,_0x4ec41b[_0x5a5de8(0x18c,_0x57070f._0x3b9c84,0x183,_0x57070f._0x6e3ccb)],_0x52df30);}return{...createOpenAiResponsesReasoning(_0x3fea2f),'model':_0x3fea2f[_0x37b2c7(0x129,0x12f,0x10d,0x141)],'instructions':systemToInstructions(_0x3fea2f[_0x5a5de8(0x1b7,0x1b0,0x1ae,_0x57070f._0x34dd83)]),'input':_0x2472d4,..._0x3fea2f[_0x37b2c7(_0x57070f._0x58adc1,_0x57070f._0x38ab18,_0x57070f._0x218132,0x125)]!==void 0x0?{'max_output_tokens':_0x3fea2f['maxTokens']}:{},'tools':_0x3fea2f[_0x37b2c7(_0x57070f._0x5bda36,_0x57070f._0x4fcd17,0x15e,_0x57070f._0x151a78)]['map'](_0x5c4e38=>{function _0x4158f9(_0x24270f,_0x268514,_0x2b8a85,_0x883469){return _0x5a5de8(_0x268514,_0x268514-_0x21e940._0x115d0e,_0x2b8a85-0xb2,_0x883469-_0x21e940._0x182bb8);}function _0x1f5284(_0xb1f470,_0x1b02bc,_0x3bfd80,_0x18c5ff){return _0x5a5de8(_0x18c5ff,_0x1b02bc-0x1d,_0x3bfd80-_0x43cb79._0x3256a5,_0xb1f470-_0x43cb79._0x417264);}return{'type':_0x1f5284(0x5b4,_0x2ba74b._0x3788d1,_0x2ba74b._0x3b36f7,_0x2ba74b._0x566946),'name':_0x5c4e38['name'],'description':_0x5c4e38[_0x1f5284(0x5c8,_0x2ba74b._0x32fedf,0x5c5,0x5c9)],'parameters':_0x5c4e38[_0x1f5284(0x5ad,0x5a2,_0x2ba74b._0x4fc62a,_0x2ba74b._0x26009e)]};}),..._0x3fea2f[_0x37b2c7(_0x57070f._0x56c5a7,0x11e,_0x57070f._0x163e7f,_0x57070f._0x18637f)]?{'text':{'format':{'type':'json_schema','name':_0x3fea2f[_0x37b2c7(_0x57070f._0x56c5a7,_0x57070f._0x11e905,0x112,0x133)][_0x5a5de8(0x170,0x189,_0x57070f._0xf74164,_0x57070f._0x37dcf8)]??'structured_output','schema':_0x3fea2f[_0x5a5de8(_0x57070f._0x2be146,0x194,_0x57070f._0x30f482,_0x57070f._0x3d9a80)][_0x37b2c7(_0x57070f._0x4162c1,_0x57070f._0x5ecb9a,0x13f,0x143)],'strict':_0x3fea2f[_0x37b2c7(_0x57070f._0x56c5a7,0x130,0x137,0x11e)][_0x5a5de8(0x195,_0x57070f._0x46b928,_0x57070f._0x51b59c,0x18d)]??!![]}}}:{}};}export{toOpenAiResponsesRequest};
|
|
1
|
+
(function(_0x4e3db8,_0x1be647){const _0x18c176={_0x19a779:0xd5,_0x404204:0x3fb,_0x129881:0x3d1,_0x248bd6:0x3d0,_0x1f944e:0x3b2,_0x379284:0x3f3,_0x40ae5a:0x3ef,_0x34cb64:0x3d9,_0x1e1989:0x3d3,_0x5c4ceb:0x3fb,_0x2601d0:0x3e4,_0x5d24df:0x40f,_0x3f5e98:0x3f6,_0xeb0403:0xb6,_0x17366b:0xb4,_0x4a9efd:0x3f9,_0x3130e9:0x3f7,_0x39cf5b:0xab,_0x19d298:0xa2,_0x5a4530:0xab,_0x54aa84:0xc7,_0x2fd82f:0x3d4,_0x4fab5c:0x3ce},_0x32f5dd={_0x47192d:0x197},_0x2e994f=_0x4e3db8();function _0x3b1d44(_0x5d4a39,_0x5719e0,_0x5c4697,_0x32e406){return _0x28c2(_0x5d4a39-0x30a,_0x5c4697);}function _0x3d7298(_0x5665fa,_0x28f81d,_0x27c063,_0x3a8c7c){return _0x28c2(_0x5665fa- -_0x32f5dd._0x47192d,_0x27c063);}while(!![]){try{const _0x120b12=parseInt(_0x3d7298(-_0x18c176._0x19a779,-0xc1,-0xe4,-0xe3))/0x1*(-parseInt(_0x3b1d44(0x3e7,_0x18c176._0x404204,0x3fd,0x3dc))/0x2)+parseInt(_0x3b1d44(_0x18c176._0x129881,_0x18c176._0x248bd6,_0x18c176._0x1f944e,0x3c8))/0x3*(parseInt(_0x3b1d44(_0x18c176._0x379284,0x3e0,0x3f2,0x3d3))/0x4)+-parseInt(_0x3b1d44(_0x18c176._0x40ae5a,_0x18c176._0x34cb64,0x3fe,_0x18c176._0x1e1989))/0x5*(parseInt(_0x3b1d44(_0x18c176._0x5c4ceb,_0x18c176._0x2601d0,0x402,0x3fc))/0x6)+parseInt(_0x3b1d44(0x3fc,_0x18c176._0x5d24df,_0x18c176._0x3f5e98,0x3ef))/0x7+-parseInt(_0x3d7298(-0xcb,-_0x18c176._0xeb0403,-_0x18c176._0x17366b,-0xbc))/0x8*(parseInt(_0x3b1d44(_0x18c176._0x4a9efd,0x3eb,0x3f3,_0x18c176._0x3130e9))/0x9)+parseInt(_0x3d7298(-_0x18c176._0x39cf5b,-_0x18c176._0x19d298,-_0x18c176._0x5a4530,-_0x18c176._0x54aa84))/0xa+parseInt(_0x3b1d44(_0x18c176._0x2fd82f,0x3b3,0x3bb,0x3d7))/0xb*(parseInt(_0x3b1d44(_0x18c176._0x34cb64,0x3e3,_0x18c176._0x4fab5c,0x3e1))/0xc);if(_0x120b12===_0x1be647)break;else _0x2e994f['push'](_0x2e994f['shift']());}catch(_0x281b79){_0x2e994f['push'](_0x2e994f['shift']());}}}(_0x1f18,0x609ef));import{resolveOpenAiReasoningConfig}from'./chunk-IUZALP6K.js';import{isProviderStateCompatible,normalizeContent}from'./chunk-YNOIG4FD.js';function systemToInstructions(_0x4862e2){const _0x234b75={_0x5e86e3:0x1b2,_0x596884:0x1a1,_0x4e6745:0x15b,_0x1f3a99:0x16c};function _0x559da8(_0x274c2c,_0x45e3fc,_0x5600bb,_0x576add){return _0x28c2(_0x5600bb- -0x25a,_0x274c2c);}function _0x4d33a6(_0x28cc5d,_0x25ad4f,_0x282b71,_0x4a7e10){return _0x28c2(_0x4a7e10- -0x1bd,_0x28cc5d);}return normalizeContent(_0x4862e2)[_0x559da8(-0x184,-_0x234b75._0x5e86e3,-0x1a3,-_0x234b75._0x596884)](_0x46f211=>_0x46f211[_0x559da8(-0x1b6,-0x1c1,-0x1a4,-0x18c)]==='text')['map'](_0x55a64c=>_0x55a64c['text'])[_0x559da8(-0x17e,-_0x234b75._0x4e6745,-_0x234b75._0x1f3a99,-0x166)]('\x0a\x0a');}function pushUserContentMessage(_0x483c2f,_0x12bc3b,_0x3b3aac){const _0x34de3b={_0x2d1386:0x266,_0x39bfb5:0x26c,_0x5cca5a:0x250,_0x1eb9fb:0x244,_0x3c0697:0x24b,_0x1e9c36:0x24d,_0x22ef7d:0x24a,_0x1eaf6c:0x25d};function _0x1c3b69(_0xb36284,_0x2fdc71,_0x56a214,_0x3d22f7){return _0x28c2(_0x3d22f7-0x209,_0x56a214);}if(_0x3b3aac[_0x4aee08(0x28c,_0x34de3b._0x2d1386,0x286,_0x34de3b._0x39bfb5)]===0x0)return;function _0x4aee08(_0x4b7296,_0x2ed809,_0x56c546,_0x5c70a7){return _0x28c2(_0x5c70a7-0x179,_0x56c546);}_0x483c2f[_0x4aee08(_0x34de3b._0x5cca5a,_0x34de3b._0x1eb9fb,_0x34de3b._0x3c0697,_0x34de3b._0x1e9c36)]({'type':_0x4aee08(_0x34de3b._0x22ef7d,_0x34de3b._0x1eaf6c,0x250,0x23f),'role':_0x12bc3b,'content':_0x3b3aac});}function _0x28c2(_0x3dfeb8,_0x4ffd0d){_0x3dfeb8=_0x3dfeb8-0xb5;const _0x1f180e=_0x1f18();let _0x28c26e=_0x1f180e[_0x3dfeb8];if(_0x28c2['RcOVos']===undefined){var _0x2c596c=function(_0x25bcc9){const _0x4b836a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4862e2='',_0x46f211='';for(let _0x55a64c=0x0,_0x483c2f,_0x12bc3b,_0x3b3aac=0x0;_0x12bc3b=_0x25bcc9['charAt'](_0x3b3aac++);~_0x12bc3b&&(_0x483c2f=_0x55a64c%0x4?_0x483c2f*0x40+_0x12bc3b:_0x12bc3b,_0x55a64c++%0x4)?_0x4862e2+=String['fromCharCode'](0xff&_0x483c2f>>(-0x2*_0x55a64c&0x6)):0x0){_0x12bc3b=_0x4b836a['indexOf'](_0x12bc3b);}for(let _0x13b668=0x0,_0x2fe1fe=_0x4862e2['length'];_0x13b668<_0x2fe1fe;_0x13b668++){_0x46f211+='%'+('00'+_0x4862e2['charCodeAt'](_0x13b668)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x46f211);};_0x28c2['TGBmoj']=_0x2c596c,_0x28c2['JxNDhz']={},_0x28c2['RcOVos']=!![];}const _0x21c65e=_0x1f180e[0x0],_0x40f05d=_0x3dfeb8+_0x21c65e,_0xbee4bb=_0x28c2['JxNDhz'][_0x40f05d];return!_0xbee4bb?(_0x28c26e=_0x28c2['TGBmoj'](_0x28c26e),_0x28c2['JxNDhz'][_0x40f05d]=_0x28c26e):_0x28c26e=_0xbee4bb,_0x28c26e;}function hasSerializableToolUse(_0x13b668){const _0x13a55c={_0x11ac5f:0x28c,_0x534e67:0x28,_0x2fcf2d:0x26e,_0x30a4d7:0x26e},_0x1e6aa4={_0x202f8b:0x17b},_0x44098f={_0x4fbd5b:0xe7};function _0x33b6b6(_0x329a11,_0x1b3a03,_0x36fb9a,_0x4a1358){return _0x28c2(_0x36fb9a- -_0x44098f._0x4fbd5b,_0x329a11);}function _0xc14589(_0x4d4bc1,_0xd0437e,_0x18660d,_0x218657){return _0x28c2(_0x218657-_0x1e6aa4._0x202f8b,_0x18660d);}return _0x13b668['id']['trim']()[_0xc14589(_0x13a55c._0x11ac5f,0x262,0x272,0x26e)]>0x0&&_0x13b668['name'][_0x33b6b6(-_0x13a55c._0x534e67,0x13,-0xc,-0x27)]()[_0xc14589(0x286,_0x13a55c._0x2fcf2d,0x26d,_0x13a55c._0x30a4d7)]>0x0;}function hasSerializableToolResult(_0x2fe1fe){const _0x1f9c7e={_0x13740e:0x4f};function _0x4b58d9(_0x47fdbb,_0x33dcdd,_0x33bc8b,_0x4412c8){return _0x28c2(_0x4412c8- -0x90,_0x47fdbb);}return _0x2fe1fe['tool_use_id'][_0x4b58d9(0x40,_0x1f9c7e._0x13740e,_0x1f9c7e._0x13740e,0x4b)]()['length']>0x0;}function isResponseInputObject(_0x2f3050){const _0x4bad8d={_0x5ba8cd:0x331,_0x2f135c:0x31e,_0x5de99b:0x304,_0x3092b7:0x35d},_0x807922={_0x4b755e:0x2c6};if(typeof _0x2f3050!==_0x5511b0(-0x321,-_0x4bad8d._0x5ba8cd,-0x311,-0x2f9)||_0x2f3050===null||Array[_0x5511b0(-_0x4bad8d._0x2f135c,-0x318,-_0x4bad8d._0x5de99b,-0x307)](_0x2f3050))return![];const _0x4ee799=_0x2f3050;function _0x7210(_0x137977,_0x4c3d2f,_0x1c5ed0,_0x16c50b){return _0x28c2(_0x137977-_0x807922._0x4b755e,_0x1c5ed0);}function _0x5511b0(_0x344d48,_0x1c0246,_0x12b9d7,_0x22103a){return _0x28c2(_0x12b9d7- -0x3e7,_0x22103a);}return typeof _0x4ee799[_0x7210(0x37c,_0x4bad8d._0x3092b7,0x396,0x36b)]==='string';}function isImageToolResultBlock(_0xb9709f){const _0x201d81={_0x4ce9de:0x223,_0x4608ca:0x207,_0x4b39ee:0x21e,_0x107878:0x203,_0xfeb53a:0x13d,_0x1e3e5c:0x154,_0x41f61d:0x155,_0xf3ea41:0x163,_0x2d81f5:0x149,_0x4502bb:0x13c,_0x2eaed6:0x149,_0x4ba8ec:0x1e8,_0x8b9ba8:0x1f5,_0x5488e5:0x200},_0x1e7844={_0x282a92:0x20a},_0x3cfd14={_0x256b73:0x2e6};function _0x2b65eb(_0x6dc9cf,_0x3d0513,_0x117ddb,_0x381d7e){return _0x28c2(_0x381d7e- -_0x3cfd14._0x256b73,_0x6dc9cf);}if(typeof _0xb9709f!=='object'||_0xb9709f===null||Array[_0x2b65eb(-_0x201d81._0x4ce9de,-_0x201d81._0x4608ca,-_0x201d81._0x4b39ee,-_0x201d81._0x107878)](_0xb9709f))return![];function _0x4c8922(_0x32998f,_0x2d238a,_0x3c1da8,_0x7c4d72){return _0x28c2(_0x3c1da8- -_0x1e7844._0x282a92,_0x7c4d72);}const _0x3f2c21=_0xb9709f;return _0x3f2c21[_0x4c8922(-0x140,-_0x201d81._0xfeb53a,-_0x201d81._0x1e3e5c,-_0x201d81._0x41f61d)]==='image'&&_0x3f2c21[_0x4c8922(-_0x201d81._0xf3ea41,-0x159,-0x149,-_0x201d81._0x2d81f5)]?.[_0x2b65eb(-0x233,-0x219,-0x251,-0x230)]==='base64'&&typeof _0x3f2c21[_0x4c8922(-_0x201d81._0x4502bb,-0x147,-_0x201d81._0x2eaed6,-0x12d)][_0x2b65eb(-_0x201d81._0x4ba8ec,-0x1fa,-_0x201d81._0x8b9ba8,-0x207)]==='string'&&typeof _0x3f2c21['source']['data']===_0x2b65eb(-0x213,-0x1f6,-0x1ee,-_0x201d81._0x5488e5);}function getToolResultText(_0xd70af6){const _0x5bcc42={_0x1f204e:0x3b,_0x4b3666:0x25,_0x2f97de:0x3e,_0x5879de:0x34,_0x2ecbb3:0x14,_0x33cff4:0x8,_0x5ec001:0x16,_0xb660f3:0x5,_0x31cb6f:0x6,_0x27ee62:0x1c0,_0x5eb00c:0x1a,_0x4f5761:0x32,_0x192b6f:0x2b,_0x20952c:0x10},_0x5cf81a={_0x45261b:0xa,_0x45a3b0:0x11,_0x221cba:0xd,_0x2c3b24:0xb,_0x256cfc:0x49,_0x1f61a1:0x4a};if(typeof _0xd70af6===_0x4b13df(_0x5bcc42._0x1f204e,_0x5bcc42._0x4b3666,_0x5bcc42._0x2f97de,_0x5bcc42._0x5879de))return _0xd70af6;function _0x26e2da(_0x25bf60,_0x2d7838,_0x116469,_0x22aae0){return _0x28c2(_0x116469- -0x2af,_0x2d7838);}function _0x4b13df(_0x5cee76,_0x26b99e,_0x36a39f,_0x32c4ac){return _0x28c2(_0x26b99e- -0xc1,_0x32c4ac);}const _0x44abf2=_0xd70af6[_0x4b13df(_0x5bcc42._0x2ecbb3,-0xa,_0x5bcc42._0x33cff4,-0x17)](_0x2bd7e2=>{const _0x1c07a3={_0x3372c2:0x22};function _0x3e84a3(_0x2a6bc4,_0x41ff9c,_0x1aeb96,_0x39ca66){return _0x4b13df(_0x2a6bc4-_0x1c07a3._0x3372c2,_0x39ca66-0xaa,_0x1aeb96-0x114,_0x41ff9c);}function _0x579750(_0x4f09eb,_0x2e8cff,_0x5e8e0e,_0x25740e){return _0x26e2da(_0x4f09eb-0x196,_0x4f09eb,_0x5e8e0e-0x1cc,_0x25740e-0x119);}return typeof _0x2bd7e2===_0x579750(-_0x5cf81a._0x45261b,-_0x5cf81a._0x45a3b0,-_0x5cf81a._0x221cba,_0x5cf81a._0x2c3b24)&&_0x2bd7e2!==null&&_0x2bd7e2[_0x579750(-_0x5cf81a._0x256cfc,-0x40,-0x2d,-_0x5cf81a._0x1f61a1)]==='text';})[_0x4b13df(0x36,_0x5bcc42._0x5ec001,_0x5bcc42._0xb660f3,-_0x5bcc42._0x31cb6f)](_0x5711e1=>_0x5711e1[_0x26e2da(-0x1c2,-0x1c3,-0x1df,-0x1f3)])[_0x26e2da(-0x1cc,-_0x5bcc42._0x27ee62,-0x1c1,-0x1db)]('\x0a\x0a')[_0x26e2da(-0x1d4,-0x1eb,-0x1d4,-0x1e1)]();return _0x44abf2[_0x4b13df(_0x5bcc42._0x5eb00c,_0x5bcc42._0x4f5761,0x4d,0x51)]>0x0?_0x44abf2:_0x4b13df(_0x5bcc42._0x192b6f,0x21,_0x5bcc42._0x20952c,0x2f);}function getToolResultImages(_0x46b3e3){const _0x5a4d25={_0x26d8b7:0x256,_0x4bda4c:0x268,_0xf3bb1d:0x92},_0x94b6cd={_0x2a8bb3:0x39};function _0x5e6d9d(_0x4fc023,_0x436a86,_0x598236,_0x183179){return _0x28c2(_0x4fc023- -_0x94b6cd._0x2a8bb3,_0x183179);}function _0x16ae6f(_0x5c8177,_0x57f5e9,_0x4f0210,_0x1273e8){return _0x28c2(_0x4f0210- -0x34c,_0x5c8177);}return Array[_0x16ae6f(-_0x5a4d25._0x26d8b7,-_0x5a4d25._0x4bda4c,-0x269,-0x276)](_0x46b3e3)?_0x46b3e3[_0x5e6d9d(0x7e,_0x5a4d25._0xf3bb1d,0x84,0x70)](isImageToolResultBlock):[];}function resolveReasoningVisibility(_0x55da6a){const _0x3a43c9={_0x1ad902:0x1e9,_0x1d44ee:0x223,_0x47d794:0x222,_0x48c789:0x403,_0x6b479c:0x3eb,_0x4a7ee6:0x3e4};function _0x592db0(_0x342a76,_0x35f0ab,_0x5c3c30,_0x53c468){return _0x28c2(_0x5c3c30-0x326,_0x342a76);}function _0x3976ca(_0xed5f9a,_0x5906f6,_0x4edbd8,_0x295c07){return _0x28c2(_0xed5f9a-0x11a,_0x5906f6);}return _0x55da6a[_0x3976ca(0x204,_0x3a43c9._0x1ad902,_0x3a43c9._0x1d44ee,_0x3a43c9._0x47d794)]?.[_0x592db0(_0x3a43c9._0x48c789,0x3de,_0x3a43c9._0x6b479c,_0x3a43c9._0x4a7ee6)]??_0x3976ca(0x1d4,0x1d2,0x1c2,0x1df);}function createOpenAiResponsesReasoning(_0x402225){const _0x48721e={_0x4163f5:0x2aa,_0x33fe61:0x2ab,_0x5e2bd1:0x4ca,_0x29c2d4:0x4c6,_0x1d7407:0x4b0,_0x19a208:0x4b3,_0x36d5a6:0x2b4,_0x22b70e:0x2d0,_0x21524d:0x485,_0x18f0c3:0x29f,_0xe9669b:0x2a9,_0x26f3ad:0x492,_0x413e9b:0x481,_0x290424:0x2f2,_0x1549d2:0x2de,_0x3c24df:0x2d4,_0x463bda:0x2c3,_0x564d85:0x2df,_0x22afad:0x4c7,_0xb0ae3:0x4b1,_0x1f6dc3:0x4c8},_0x1e1e9f=resolveOpenAiReasoningConfig(_0x402225[_0x430120(-_0x48721e._0x4163f5,-_0x48721e._0x33fe61,-0x2a5,-0x2be)]);function _0x430120(_0x58e991,_0x1eaf92,_0x3f47d3,_0x54be9d){return _0x28c2(_0x3f47d3- -0x38f,_0x58e991);}if(!_0x1e1e9f)return{};const _0x34f8cc={};function _0x28cb3e(_0x497113,_0x16a687,_0x519696,_0x29b80c){return _0x28c2(_0x29b80c-0x3c6,_0x519696);}const _0x4898f7=_0x402225[_0x28cb3e(_0x48721e._0x5e2bd1,0x4a4,_0x48721e._0x29c2d4,_0x48721e._0x1d7407)]?.[_0x28cb3e(0x4b9,0x4af,_0x48721e._0x19a208,0x4a2)]!==void 0x0,_0x28fdfd=(!_0x4898f7&&_0x430120(-_0x48721e._0x36d5a6,-0x2be,-_0x48721e._0x22b70e,-0x2b6)in _0x1e1e9f?_0x1e1e9f[_0x28cb3e(0x477,0x471,0x48b,_0x48721e._0x21524d)]:void 0x0)??(resolveReasoningVisibility(_0x402225)==='user-visible'?_0x430120(-0x2a5,-_0x48721e._0x18f0c3,-0x2bd,-_0x48721e._0xe9669b):void 0x0);return _0x1e1e9f[_0x28cb3e(_0x48721e._0x26f3ad,0x494,0x473,_0x48721e._0x413e9b)]&&(_0x34f8cc[_0x28cb3e(0x486,0x482,0x484,0x481)]=_0x1e1e9f[_0x430120(-_0x48721e._0x290424,-_0x48721e._0x1549d2,-_0x48721e._0x3c24df,-_0x48721e._0x463bda)]),_0x28fdfd&&(_0x34f8cc[_0x430120(-_0x48721e._0x564d85,-0x2f0,-0x2d0,-0x2d4)]=_0x28fdfd),{...!_0x4898f7&&'includeEncryptedContent'in _0x1e1e9f&&_0x1e1e9f[_0x28cb3e(0x4cb,0x4a3,_0x48721e._0x22afad,_0x48721e._0xb0ae3)]===![]?{}:{'include':[_0x28cb3e(_0x48721e._0x1f6dc3,0x49b,0x4a4,0x4aa)]},...Object['keys'](_0x34f8cc)['length']>0x0?{'reasoning':_0x34f8cc}:{}};}function pushAssistantProviderState(_0x5a075e,_0x164e2d,_0x178fb5){const _0x95b41d={_0x34fef7:0x222,_0x214f18:0x206,_0x51bcf9:0xcd,_0x13dadc:0xb9,_0x46b222:0xc9,_0x3dcb4b:0xfc,_0x1c1ec3:0x10a,_0x2eaa07:0x226,_0x185d4e:0x215,_0x27588c:0x232,_0xdebbfd:0xcf,_0x2a537f:0xaf,_0x442d13:0xe8,_0x559a0c:0xdf,_0x10d828:0xd2,_0xd81829:0xd5,_0x448bfb:0x9f,_0x2a5ef7:0x1e6,_0x39c4f9:0x1fc},_0x52ea08={_0x1cedef:0x3};function _0x3f68a6(_0x5a2a88,_0x29778d,_0x1d09e7,_0x12322c){return _0x28c2(_0x1d09e7- -_0x52ea08._0x1cedef,_0x29778d);}if(_0x164e2d[_0x4113f7(_0x95b41d._0x34fef7,_0x95b41d._0x214f18,0x210,0x226)]!==_0x3f68a6(_0x95b41d._0x51bcf9,0xd7,0xce,_0x95b41d._0x13dadc))return![];if(!isProviderStateCompatible(_0x164e2d,_0x178fb5))return![];const _0x53f103=_0x164e2d['providerState']?.[_0x3f68a6(0xbb,0x99,0xb6,_0x95b41d._0x46b222)]??[];function _0x4113f7(_0x16ba90,_0x48c983,_0x9cb4c9,_0x2c015a){return _0x28c2(_0x2c015a-0x13e,_0x48c983);}if(_0x53f103[_0x3f68a6(_0x95b41d._0x3dcb4b,0x106,0xf0,_0x95b41d._0x1c1ec3)]===0x0)return![];for(const _0x303612 of _0x53f103){if(isResponseInputObject(_0x303612)){const _0xb8df41=structuredClone(_0x303612);delete _0xb8df41[_0x4113f7(0x21c,_0x95b41d._0x2eaa07,_0x95b41d._0x185d4e,_0x95b41d._0x27588c)],_0xb8df41[_0x3f68a6(_0x95b41d._0xdebbfd,_0x95b41d._0x2a537f,0xb3,0x9a)]==='reasoning'&&!Array[_0x3f68a6(_0x95b41d._0x442d13,_0x95b41d._0x559a0c,0xe0,_0x95b41d._0x10d828)](_0xb8df41[_0x3f68a6(0xa5,_0x95b41d._0xd81829,0xbc,_0x95b41d._0x448bfb)])&&(_0xb8df41[_0x4113f7(_0x95b41d._0x2a5ef7,0x20b,_0x95b41d._0x39c4f9,0x1fd)]=[]),_0x5a075e[_0x3f68a6(0xd7,0xbd,0xd1,0xbb)](_0xb8df41);}}return!![];}function toOpenAiResponsesRequest(_0xf980b8){const _0x29203d={_0x3a25f7:0x375,_0x4bdb1:0x351,_0x3c4b41:0x304,_0x180640:0x321,_0x20e40a:0x30a,_0x4f085a:0x219,_0x572d5e:0x242,_0x4b66d0:0x222,_0x22351f:0x33a,_0x4a1f07:0x34e,_0x225525:0x35d,_0x2b8361:0x203,_0x4a5c44:0x228,_0x19b3ae:0x216,_0x58e8b5:0x240,_0x2b6593:0x329,_0x3b87f1:0x346,_0x117cf1:0x341,_0x51182d:0x321,_0x2ccdf2:0x33c,_0x451145:0x235,_0x4a86e4:0x364,_0x4bb3d2:0x35a,_0x2f8296:0x221,_0x3ee5b1:0x229,_0x169d26:0x36d,_0xc3d5cf:0x21b,_0x436b03:0x239,_0x46e9a2:0x232,_0x19f5b7:0x233,_0x15ec0e:0x333,_0x2f3d26:0x344,_0xf511ae:0x219,_0x2a6b00:0x208,_0x4ad53d:0x20e,_0x62ded8:0x332,_0x42a1b1:0x251,_0x101cc7:0x34f,_0x10197f:0x333,_0x3380b0:0x223,_0x525859:0x22f,_0x254c46:0x21a,_0x3362b3:0x21f,_0x511b7c:0x232,_0x2cf7c9:0x1fe,_0x369ad7:0x203,_0x2013e1:0x225,_0x2d2084:0x331,_0x548a66:0x249,_0x1f4c75:0x22e,_0x3852ee:0x352,_0x458fc9:0x33d,_0x5ac7da:0x1f4,_0x2102de:0x20e,_0x3e3688:0x334,_0x118f58:0x357,_0x52a63b:0x33f,_0x4022ce:0x363,_0x399066:0x345,_0x48579c:0x346,_0x3e3f0a:0x330,_0x269ae7:0x31d,_0x2e6079:0x328,_0x47e11d:0x325,_0x53648e:0x20b,_0x56b218:0x202,_0x337093:0x206,_0x23a940:0x21f,_0x39c2ad:0x220,_0x3537d:0x21b,_0x3a5d3b:0x21b,_0x1b65e0:0x347,_0xe97dd8:0x25f,_0x23d199:0x23e,_0x3e07a5:0x34a,_0x1b5de8:0x343,_0x2f7790:0x346,_0x19238a:0x32e},_0x19a5d4={_0x32a680:0x114,_0x1c0644:0xff,_0x30d4a6:0x103,_0x13321d:0x3e8},_0x335faf={_0x5eda02:0x1bb,_0x53a991:0x5e4};function _0x1a1a20(_0x2054b6,_0x51daf1,_0x5765e1,_0x167c26){return _0x28c2(_0x51daf1-0x26b,_0x167c26);}const _0x1d54a4=[];for(const _0x155a59 of _0xf980b8[_0x1a1a20(0x35b,0x360,_0x29203d._0x3a25f7,_0x29203d._0x4bdb1)]){if(pushAssistantProviderState(_0x1d54a4,_0x155a59,_0xf980b8))continue;const _0x18fe4b=[];for(const _0x215e05 of normalizeContent(_0x155a59['content'])){if(_0x215e05[_0x1a1a20(_0x29203d._0x3c4b41,_0x29203d._0x180640,_0x29203d._0x20e40a,0x337)]==='text'){_0x18fe4b[_0x5e8142(-_0x29203d._0x4f085a,-_0x29203d._0x572d5e,-0x237,-_0x29203d._0x4b66d0)](_0x155a59[_0x1a1a20(0x34c,0x353,_0x29203d._0x22351f,_0x29203d._0x4a1f07)]===_0x1a1a20(_0x29203d._0x225525,0x33c,0x359,0x325)?{'type':_0x5e8142(-_0x29203d._0x2b8361,-0x20b,-_0x29203d._0x4a5c44,-_0x29203d._0x19b3ae),'text':_0x215e05['text']}:{'type':'input_text','text':_0x215e05['text']});continue;}if(_0x215e05[_0x5e8142(-0x260,-0x249,-0x232,-_0x29203d._0x58e8b5)]===_0x1a1a20(0x33f,_0x29203d._0x2b6593,_0x29203d._0x3b87f1,0x32a)){_0x18fe4b[_0x1a1a20(_0x29203d._0x117cf1,0x33f,0x357,_0x29203d._0x51182d)]({'type':_0x1a1a20(0x339,0x320,0x340,_0x29203d._0x2ccdf2),'image_url':_0x5e8142(-0x238,-0x21a,-0x221,-0x239)+_0x215e05[_0x5e8142(-0x22d,-0x23e,-0x243,-_0x29203d._0x451145)][_0x1a1a20(_0x29203d._0x4a86e4,0x34a,_0x29203d._0x4bb3d2,0x34a)]+_0x5e8142(-0x217,-_0x29203d._0x2f8296,-0x20c,-0x218)+_0x215e05['source'][_0x5e8142(-0x21a,-_0x29203d._0x4a5c44,-0x229,-_0x29203d._0x3ee5b1)]});continue;}pushUserContentMessage(_0x1d54a4,_0x155a59[_0x1a1a20(0x33d,0x353,0x335,_0x29203d._0x169d26)],_0x18fe4b[_0x5e8142(-_0x29203d._0xc3d5cf,-_0x29203d._0x436b03,-_0x29203d._0x46e9a2,-_0x29203d._0x19f5b7)](0x0));if(_0x215e05[_0x1a1a20(0x338,_0x29203d._0x51182d,_0x29203d._0x15ec0e,0x341)]==='tool_use'){if(!hasSerializableToolUse(_0x215e05))continue;_0x1d54a4[_0x1a1a20(0x35a,0x33f,_0x29203d._0x4bdb1,0x330)]({'type':_0x1a1a20(0x34a,_0x29203d._0x2f3d26,0x356,0x33d),'call_id':_0x215e05['id'],'name':_0x215e05[_0x5e8142(-0x226,-_0x29203d._0xf511ae,-0x21a,-0x236)],'arguments':JSON[_0x5e8142(-_0x29203d._0x2a6b00,-0x1fc,-_0x29203d._0x4ad53d,-0x206)](_0x215e05[_0x1a1a20(0x33c,0x327,_0x29203d._0x62ded8,0x30c)]??{})});continue;}if(_0x215e05['type']==='tool_result'){if(!hasSerializableToolResult(_0x215e05))continue;const _0x4b4c05=getToolResultText(_0x215e05[_0x5e8142(-_0x29203d._0x42a1b1,-0x24d,-0x230,-0x232)]);_0x1d54a4[_0x1a1a20(_0x29203d._0x101cc7,0x33f,0x347,_0x29203d._0x10197f)]({'type':'function_call_output','call_id':_0x215e05[_0x5e8142(-_0x29203d._0x3380b0,-_0x29203d._0x525859,-_0x29203d._0x254c46,-0x20f)],'output':_0x4b4c05});const _0x356732=getToolResultImages(_0x215e05[_0x5e8142(-0x228,-_0x29203d._0x3362b3,-0x240,-_0x29203d._0x511b7c)]);_0x356732[_0x5e8142(-_0x29203d._0x2cf7c9,-0x217,-0x20a,-_0x29203d._0x369ad7)]>0x0&&_0x1d54a4[_0x5e8142(-_0x29203d._0x2013e1,-0x204,-0x234,-0x222)]({'type':_0x1a1a20(0x319,_0x29203d._0x2d2084,0x342,0x33f),'role':'user','content':[{'type':_0x5e8142(-0x220,-0x22b,-0x218,-0x221),'text':_0x5e8142(-_0x29203d._0x548a66,-0x233,-0x21b,-_0x29203d._0x1f4c75)+_0x215e05[_0x1a1a20(0x349,_0x29203d._0x3852ee,0x35f,_0x29203d._0x458fc9)]+'.'},..._0x356732['map'](_0x2e5c8c=>({'type':_0x1a1a20(0x332,0x320,0x31e,0x326),'image_url':_0x1a1a20(0x308,0x328,0x336,0x331)+_0x2e5c8c[_0x1a1a20(0x32e,0x32c,0x319,0x342)][_0x1a1a20(0x34f,0x34a,0x35d,0x35e)]+_0x5e8142(-0x219,-0x1f8,-0x232,-0x218)+_0x2e5c8c[_0x5e8142(-0x23c,-0x22e,-0x230,-0x235)][_0x5e8142(-0x22f,-0x228,-0x22b,-0x229)]}))]});}}pushUserContentMessage(_0x1d54a4,_0x155a59[_0x5e8142(-_0x29203d._0x5ac7da,-0x229,-0x1fc,-_0x29203d._0x2102de)],_0x18fe4b);}function _0x5e8142(_0x51d96d,_0x3153c6,_0x5092b6,_0x11b295){return _0x28c2(_0x11b295- -0x2f6,_0x5092b6);}return{...createOpenAiResponsesReasoning(_0xf980b8),'model':_0xf980b8['model'],'instructions':systemToInstructions(_0xf980b8[_0x1a1a20(_0x29203d._0x3e3688,0x34c,_0x29203d._0x118f58,_0x29203d._0x52a63b)]),'input':_0x1d54a4,..._0xf980b8[_0x1a1a20(_0x29203d._0x4022ce,_0x29203d._0x399066,0x353,0x33f)]!==void 0x0?{'max_output_tokens':_0xf980b8[_0x1a1a20(_0x29203d._0x48579c,0x345,0x34b,_0x29203d._0x3e3f0a)]}:{},'tools':_0xf980b8[_0x1a1a20(_0x29203d._0x269ae7,0x334,_0x29203d._0x2e6079,_0x29203d._0x47e11d)][_0x5e8142(-_0x29203d._0x53648e,-_0x29203d._0x56b218,-_0x29203d._0x337093,-_0x29203d._0x23a940)](_0x58c20c=>{function _0x5ef734(_0x1bda25,_0x60d8f1,_0x42f373,_0x1b2696){return _0x1a1a20(_0x1bda25-0x1eb,_0x1b2696- -0x236,_0x42f373-0xd9,_0x60d8f1);}function _0x5ae65b(_0x105fc0,_0x187077,_0xed4032,_0x1647ce){return _0x5e8142(_0x105fc0-0x17e,_0x187077-_0x335faf._0x5eda02,_0x1647ce,_0xed4032-_0x335faf._0x53a991);}return{'type':'function','name':_0x58c20c[_0x5ef734(_0x19a5d4._0x32a680,0xda,0xdc,0xf5)],'description':_0x58c20c[_0x5ef734(0xfb,_0x19a5d4._0x1c0644,0xef,_0x19a5d4._0x30d4a6)],'parameters':_0x58c20c[_0x5ae65b(_0x19a5d4._0x13321d,0x3ee,0x3db,0x3e8)]};}),..._0xf980b8[_0x5e8142(-0x23f,-0x23d,-_0x29203d._0x39c2ad,-0x22b)]?{'text':{'format':{'type':_0x5e8142(-_0x29203d._0x3537d,-0x204,-_0x29203d._0x3a5d3b,-_0x29203d._0x3380b0),'name':_0xf980b8['outputFormat'][_0x1a1a20(0x311,0x32b,0x330,_0x29203d._0x1b65e0)]??_0x5e8142(-0x25e,-_0x29203d._0xe97dd8,-0x25e,-_0x29203d._0x23d199),'schema':_0xf980b8[_0x1a1a20(_0x29203d._0x3852ee,0x336,_0x29203d._0x3e07a5,0x341)][_0x1a1a20(_0x29203d._0x22351f,_0x29203d._0x1b5de8,0x35f,0x333)],'strict':_0xf980b8[_0x1a1a20(_0x29203d._0x2f7790,0x336,_0x29203d._0x269ae7,_0x29203d._0x19238a)]['strict']??!![]}}}:{}};}export{toOpenAiResponsesRequest};function _0x1f18(){const _0x2d0acd=['ndv0qLrmzNu','C3rYAw5NAwz5','mZbzr01Vruu','nda3mJa3nwHiCe95ua','BgvUz3rO','C3rHDhvZ','BwvZC2fNzxm','Aw5WDxrFAw1Hz2u','DhLWzq','zMLSDgvY','C3rYDwn0DxjLzf9VDxrWDxq','B3bLBMfPuMvZCg9UC2vZt3v0Chv0','DxnLCI12AxnPyMXL','zwzMB3j0','Aw5WDxq','zgf0ytO','Aw1Hz2u','C3vTBwfYEq','BMfTzq','C291CMnL','mtLmwwLot0y','C3bSAwnL','y29UDgvUDa','DMLZAwjPBgL0Eq','BwvZC2fNzq','m2XSD3D4za','sw1Hz2uGCMv0DxjUzwqGyNKGvMLLD0zPBguGzM9YihrVB2WGCMvZDwX0ia','Dg9VBhm','mJGZnJmWnKTqD2vesa','B3v0Chv0rM9YBwf0','mZiXmtq0AKjyBNPu','zgf0yq','zgvZy3jPChrPB24','mtj5vKvRBLu','Dgv4Da','yxnZAxn0yw50','yxv0BW','ANnVBL9Zy2HLBwe','ChvZAa','Aw5WDxrFDgv4Da','B2jQzwn0','BwfW','C2nOzw1H','zNvUy3rPB25Fy2fSBa','Bwf4vg9Rzw5Z','DhjPBq','y29KzxG','mJaXmJjLEKvvCwi','o2jHC2u2ncW','BwvKAwfFDhLWzq','B3v0Chv0x3rLEhq','C3LZDgvT','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','AxnbCNjHEq','CMvHC29UAw5NlMvUy3j5ChrLzf9JB250zw50','nZy1mJaWBKnlz0j2','C3rYAw5N','Dg9VBf91C2vFAwq','CM9Szq','mJCYodaXmKHovLDnqG','CMvHC29UAw5N','Aw5JBhvKzuvUy3j5ChrLzenVBNrLBNq','mZeYntKWtKTWEhLb','Aw5WDxrFC2nOzw1H','AM9PBG'];_0x1f18=function(){return _0x2d0acd;};return _0x1f18();}
|
package/dist/chunk-X7VAACWY.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x384215,_0x347dae){var _0x1ca1ce={_0x2dd64e:0x1eb,_0x338368:0x1e3,_0x4d899e:0x1e7,_0x20f49c:0x1e6,_0x3883cb:0x1f5,_0xca41c8:0x1e0,_0x4e17bc:0x1ea,_0x45bd40:0x1f4,_0x48af28:0x1e9,_0x34128b:0x1ed,_0x24c120:0x1e5,_0x25b0f3:0x1ef,_0xbdcca0:0x1d2,_0x15a110:0x1d9,_0x39f4b2:0x1e0,_0x519f9e:0x1e1,_0x542256:0x1fc,_0x5c0a12:0x1dd,_0x3316c4:0x1d6},_0x1b6426={_0x2e8c81:0x261},_0x3cbd4a={_0x3dada3:0x176};function _0x12e68b(_0x228eed,_0x188bb2,_0x4134cc,_0x4f9346){return _0x3c1b(_0x4f9346-_0x3cbd4a._0x3dada3,_0x228eed);}function _0x4481e7(_0x410883,_0x5eb3df,_0x1a425e,_0x243fdb){return _0x3c1b(_0x5eb3df- -_0x1b6426._0x2e8c81,_0x243fdb);}var _0x395ea8=_0x384215();while(!![]){try{var _0x4a013b=-parseInt(_0x4481e7(-0x1ea,-_0x1ca1ce._0x2dd64e,-0x1e8,-_0x1ca1ce._0x338368))/0x1+parseInt(_0x4481e7(-_0x1ca1ce._0x4d899e,-0x1e9,-0x1de,-_0x1ca1ce._0x20f49c))/0x2+-parseInt(_0x12e68b(0x1f4,_0x1ca1ce._0x3883cb,_0x1ca1ce._0xca41c8,0x1eb))/0x3*(-parseInt(_0x12e68b(0x1e9,_0x1ca1ce._0x4e17bc,_0x1ca1ce._0x45bd40,_0x1ca1ce._0x48af28))/0x4)+-parseInt(_0x12e68b(_0x1ca1ce._0x3883cb,0x1ef,_0x1ca1ce._0x34128b,0x1f8))/0x5*(parseInt(_0x12e68b(0x1f3,0x1ef,_0x1ca1ce._0x24c120,_0x1ca1ce._0x25b0f3))/0x6)+parseInt(_0x4481e7(-_0x1ca1ce._0x20f49c,-0x1e7,-0x1e9,-0x1e9))/0x7+parseInt(_0x4481e7(-_0x1ca1ce._0xbdcca0,-_0x1ca1ce._0x15a110,-0x1d9,-0x1de))/0x8*(parseInt(_0x4481e7(-0x1db,-_0x1ca1ce._0x39f4b2,-0x1dd,-_0x1ca1ce._0x519f9e))/0x9)+-parseInt(_0x12e68b(0x1f4,0x1fd,0x1f3,_0x1ca1ce._0x542256))/0xa*(-parseInt(_0x4481e7(-0x1e2,-_0x1ca1ce._0x5c0a12,-_0x1ca1ce._0x3316c4,-_0x1ca1ce._0x15a110))/0xb);if(_0x4a013b===_0x347dae)break;else _0x395ea8['push'](_0x395ea8['shift']());}catch(_0x27f528){_0x395ea8['push'](_0x395ea8['shift']());}}}(_0x550d,0x52cbe));var OperationAbortedError=class extends Error{[_0x7d76f1(-0x2fa,-0x2ff,-0x2f7,-0x2fc)]='ABORT_ERR';constructor(_0x3138e1=_0x7d76f1(-0x307,-0x305,-0x2fb,-0x2ff)){var _0x3fd970={_0x237249:0x2f6,_0x38db3c:0x2fa,_0x3f5c94:0x314,_0x38d164:0x318},_0x58af3f={_0x5b3580:0x60e},_0x373338={_0x4634a5:0x49,_0x403798:0x160};super(_0x3138e1);function _0x4badc3(_0x5e18e8,_0x3f7422,_0xb1141b,_0x14fd2e){return _0x7d76f1(_0x5e18e8-_0x373338._0x4634a5,_0x3f7422-_0x373338._0x403798,_0xb1141b,_0x5e18e8-0xa);}function _0x5e18ac(_0x2bef65,_0x5c88d6,_0x4d60ef,_0x53e98d){return _0x7d76f1(_0x2bef65-0xf1,_0x5c88d6-0x1e5,_0x53e98d,_0x4d60ef-_0x58af3f._0x5b3580);}this[_0x4badc3(-0x2f6,-_0x3fd970._0x237249,-_0x3fd970._0x38db3c,-0x301)]=_0x5e18ac(0x30b,0x31a,_0x3fd970._0x3f5c94,_0x3fd970._0x38d164);}};function _0x7d76f1(_0x25ae37,_0x5a8bd7,_0x2360ca,_0x465b0d){return _0x3c1b(_0x465b0d- -0x37f,_0x2360ca);}function toAbortError(_0x2aae47){var _0x48808b={_0x3e666d:0x88,_0x263fe2:0x8a,_0x1635ff:0x172,_0x5509f7:0x8f,_0x3980a9:0x96},_0x265fc4={_0x4541d7:0x261,_0x247883:0x85,_0x1f6840:0x45},_0x5d42ad={_0x301183:0x61};if(isAbortError(_0x2aae47))return _0x2aae47;if(_0x2aae47 instanceof Error)return new OperationAbortedError(_0x2aae47[_0x37f010(_0x48808b._0x3e666d,0x88,_0x48808b._0x263fe2,0x7f)]);if(typeof _0x2aae47===_0x15ea70(0x177,_0x48808b._0x1635ff,0x17d,0x178)&&_0x2aae47[_0x37f010(0x9a,_0x48808b._0x5509f7,0x86,_0x48808b._0x3980a9)]>0x0)return new OperationAbortedError(_0x2aae47);function _0x37f010(_0x87c220,_0x30bf55,_0x31666d,_0x3e585d){return _0x7d76f1(_0x87c220-0x1b9,_0x30bf55-_0x5d42ad._0x301183,_0x3e585d,_0x30bf55-0x393);}function _0x15ea70(_0x14d47e,_0x17c5c3,_0x340231,_0x2d9fad){return _0xdefde4(_0x2d9fad- -_0x265fc4._0x4541d7,_0x17c5c3-_0x265fc4._0x247883,_0x340231,_0x2d9fad-_0x265fc4._0x1f6840);}return new OperationAbortedError();}function _0x3c1b(_0x429848,_0x370ec4){_0x429848=_0x429848-0x73;var _0x550d61=_0x550d();var _0x3c1ba4=_0x550d61[_0x429848];if(_0x3c1b['nTQXcQ']===undefined){var _0x1667a9=function(_0x5744d1){var _0x1d1cb2='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x3138e1='',_0x2aae47='';for(var _0x487b27=0x0,_0x1e58f5,_0x1b10a5,_0x22b20c=0x0;_0x1b10a5=_0x5744d1['charAt'](_0x22b20c++);~_0x1b10a5&&(_0x1e58f5=_0x487b27%0x4?_0x1e58f5*0x40+_0x1b10a5:_0x1b10a5,_0x487b27++%0x4)?_0x3138e1+=String['fromCharCode'](0xff&_0x1e58f5>>(-0x2*_0x487b27&0x6)):0x0){_0x1b10a5=_0x1d1cb2['indexOf'](_0x1b10a5);}for(var _0x10b8ac=0x0,_0x1958b8=_0x3138e1['length'];_0x10b8ac<_0x1958b8;_0x10b8ac++){_0x2aae47+='%'+('00'+_0x3138e1['charCodeAt'](_0x10b8ac)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2aae47);};_0x3c1b['UkxgDT']=_0x1667a9,_0x3c1b['ehBwrn']={},_0x3c1b['nTQXcQ']=!![];}var _0x47d848=_0x550d61[0x0],_0x1b554f=_0x429848+_0x47d848,_0xcd7326=_0x3c1b['ehBwrn'][_0x1b554f];return!_0xcd7326?(_0x3c1ba4=_0x3c1b['UkxgDT'](_0x3c1ba4),_0x3c1b['ehBwrn'][_0x1b554f]=_0x3c1ba4):_0x3c1ba4=_0xcd7326,_0x3c1ba4;}function isAbortError(_0x487b27){var _0x3e8b80={_0x23a73e:0x13c,_0x24f104:0x2e6,_0x8f8c2e:0x2e3,_0x70c6ed:0x2dd,_0x19a0a9:0x2e2};function _0x22df77(_0x3dabfe,_0x4483e1,_0x33f0dd,_0x21e63f){return _0xdefde4(_0x4483e1- -0x6c3,_0x4483e1-0xa3,_0x3dabfe,_0x21e63f-0xb5);}function _0x5d43ed(_0x13c179,_0x4b10a4,_0x4ac1c4,_0x92d46f){return _0xdefde4(_0x4b10a4- -0x295,_0x4b10a4-0xd9,_0x92d46f,_0x92d46f-0x195);}return _0x487b27 instanceof OperationAbortedError||_0x487b27 instanceof Error&&(_0x487b27[_0x5d43ed(_0x3e8b80._0x23a73e,0x145,0x140,0x14c)]===_0x22df77(-_0x3e8b80._0x24f104,-_0x3e8b80._0x8f8c2e,-_0x3e8b80._0x70c6ed,-_0x3e8b80._0x19a0a9)||'code'in _0x487b27&&_0x487b27['code']===_0x22df77(-0x2f0,-0x2ec,-0x2eb,-0x2f2));}function _0xdefde4(_0x5d4da5,_0x44f082,_0x3e956e,_0x1ca7e1){var _0x2bf760={_0x39c2ad:0x35b};return _0x3c1b(_0x5d4da5-_0x2bf760._0x39c2ad,_0x3e956e);}function _0x550d(){var _0x49cdfe=['mZqZoti1nenhzgjArW','BgvUz3rO','qujpuLrFrvjs','ywjVCNq','C3rYAw5N','BMfTzq','t3bLCMf0Aw9UigfIB3j0zwq','mtq2mJy3mwDPquXHtW','nZbvwe9Wzuu','y29Kzq','ndrlr3buueS','qwjVCNrfCNjVCG','mte5mZyWA1Lbuw9t','ywrKrxzLBNrmAxn0zw5LCG','mtzYzKTUtLC','ndKYmZzsChH4BwO','BwvZC2fNzq','mtm4zhritM9I','ndi1ntCWs2f1BLPw','ywjVCNrLza','mtK5ndbowMviDuy','mJG5ntm2B1jQEMnz'];_0x550d=function(){return _0x49cdfe;};return _0x550d();}function throwIfAborted(_0x1e58f5){var _0x5f04e7={_0x257f95:0x449,_0x2050a5:0x440};if(!_0x1e58f5?.[_0x528848(_0x5f04e7._0x257f95,0x449,_0x5f04e7._0x2050a5,0x442)])return;function _0x528848(_0x125611,_0x3db7b7,_0x2c734f,_0x57131b){return _0xdefde4(_0x3db7b7-0x77,_0x3db7b7-0x1aa,_0x2c734f,_0x57131b-0x1ab);}throw toAbortError(_0x1e58f5['reason']);}function addAbortListener(_0x1b10a5,_0x22b20c){var _0x23d83c={_0x1520d8:0x14d,_0x114c3c:0x14b,_0x1cfcff:0x151,_0xd64df5:0x13d,_0xd40fe:0x13e,_0x2414da:0x148,_0x4244b8:0x147,_0x1bc7db:0x14f},_0x4167bc={_0x10d2f5:0x160,_0x39bdf1:0xd9,_0x149a03:0x1bb};function _0x3db290(_0x1f4f83,_0x3eba15,_0x36cf31,_0x40bda8){return _0x7d76f1(_0x1f4f83-0x118,_0x3eba15-0xff,_0x36cf31,_0x3eba15-0x475);}function _0x330441(_0x296a04,_0x45c6b5,_0x36e9be,_0x5c7205){return _0x7d76f1(_0x296a04-_0x4167bc._0x10d2f5,_0x45c6b5-_0x4167bc._0x39bdf1,_0x45c6b5,_0x296a04-_0x4167bc._0x149a03);}if(!_0x1b10a5)return()=>{};if(_0x1b10a5[_0x330441(-_0x23d83c._0x1520d8,-_0x23d83c._0x114c3c,-0x150,-_0x23d83c._0x1cfcff)])return _0x22b20c(),()=>{};const _0x10b8ac=()=>{_0x22b20c();};return _0x1b10a5[_0x330441(-_0x23d83c._0xd64df5,-_0x23d83c._0xd40fe,-_0x23d83c._0x2414da,-0x144)](_0x330441(-_0x23d83c._0x4244b8,-0x142,-_0x23d83c._0x1bc7db,-0x13f),_0x10b8ac,{'once':!![]}),()=>{_0x1b10a5['removeEventListener']('abort',_0x10b8ac);};}export{OperationAbortedError,toAbortError,isAbortError,throwIfAborted,addAbortListener};
|