@nuvin/agent-core 0.2.0-rc.1 → 0.2.0-rc.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/VERSION +2 -2
- package/dist/agent/index.js +1 -1
- package/dist/agent/metrics.d.ts +17 -1
- package/dist/chunk-D5IVWJHX.js +1 -1
- package/dist/chunk-FFIZ6TKW.js +1 -1
- package/dist/chunk-GAZGO6N7.js +1 -0
- package/dist/chunk-IUZALP6K.js +1 -0
- package/dist/chunk-LIE76IJA.js +1 -0
- package/dist/chunk-X7VAACWY.js +1 -1
- package/dist/chunk-YNOIG4FD.js +1 -0
- package/dist/chunk-ZHE3E26D.js +1 -0
- package/dist/formats/index.js +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/lsp/client.d.ts +4 -0
- package/dist/models/chat-model.d.ts +1 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +1 -1
- package/dist/models/mock-model.d.ts +2 -0
- package/dist/models/model-cost.d.ts +5 -0
- package/dist/models/model-pricing-generator.d.ts +9 -0
- package/dist/models/model-pricing-products.d.ts +45 -0
- package/dist/models/model-pricing-types.d.ts +33 -0
- package/dist/models/model-pricing.d.ts +13 -0
- package/dist/models/model-pricing.generated.d.ts +23147 -0
- package/dist/models/model-registry.d.ts +8 -0
- package/dist/models/openai-surfaces.d.ts +4 -1
- package/dist/models/routed-model.d.ts +3 -0
- package/dist/shared/abort-aware-semaphore.d.ts +5 -0
- package/dist/shared/index.d.ts +1 -0
- package/dist/shared/index.js +1 -1
- package/dist/shared/reasoning-config.d.ts +3 -4
- package/dist/shared/types.d.ts +94 -22
- package/dist/tools/{internal-tool-runtime.d.ts → core/internal-tool-runtime.d.ts} +1 -1
- package/dist/tools/core/mock-tool-runtime.d.ts +3 -0
- package/dist/tools/core/runtime-manager-tools.d.ts +87 -0
- package/dist/tools/{tool-output-offload.d.ts → core/tool-output-offload.d.ts} +1 -1
- package/dist/tools/{tools.d.ts → core/tools.d.ts} +4 -1
- package/dist/tools/file-editing/anchored-file-edit.d.ts +53 -0
- package/dist/tools/file-editing/anchored-file-errors.d.ts +5 -0
- package/dist/tools/file-editing/anchored-file-operations.d.ts +38 -0
- package/dist/tools/file-editing/anchored-file-read.d.ts +37 -0
- package/dist/tools/file-editing/atomic-file-write.d.ts +19 -0
- package/dist/tools/file-editing/file-edit-tool.d.ts +166 -0
- package/dist/tools/file-editing/file-mutation-coordinator.d.ts +13 -0
- package/dist/tools/file-editing/file-mutation.d.ts +15 -0
- package/dist/tools/{file-new-tool.d.ts → file-editing/file-new-tool.d.ts} +5 -2
- package/dist/tools/file-editing/file-observation-store.d.ts +40 -0
- package/dist/tools/{file-read-tool.d.ts → file-editing/file-read-tool.d.ts} +8 -2
- package/dist/tools/file-editing/file-snapshot.d.ts +16 -0
- package/dist/tools/file-editing/hashline-file-edit-adapter.d.ts +19 -0
- package/dist/tools/file-editing/structured-file-edit-adapter.d.ts +94 -0
- package/dist/tools/file-editing/workspace-paths.d.ts +20 -0
- package/dist/tools/index.d.ts +43 -29
- package/dist/tools/index.js +1 -1
- package/dist/tools/mcp/mcp-connection-generation.d.ts +59 -0
- package/dist/tools/mcp/mcp-safe-error-provenance.d.ts +4 -0
- package/dist/tools/mcp/mcp-safe-error.d.ts +14 -0
- package/dist/tools/mcp/mcp-server-manager.d.ts +16 -0
- package/dist/tools/mcp/mcp-tool-adapter.d.ts +72 -0
- package/dist/tools/{glob-tool.d.ts → search/glob-tool.d.ts} +2 -2
- package/dist/tools/search/grep-engine.d.ts +22 -0
- package/dist/tools/{grep-tool.d.ts → search/grep-tool.d.ts} +3 -3
- package/dist/tools/{ls-tool.d.ts → search/ls-tool.d.ts} +2 -2
- package/dist/tools/{ripgrep.d.ts → search/ripgrep.d.ts} +1 -0
- package/dist/tools/{view-file-tool.d.ts → search/view-file-tool.d.ts} +2 -2
- package/dist/tools/{ask-user-tool.d.ts → session/ask-user-tool.d.ts} +2 -2
- package/dist/tools/{lsp-tool.d.ts → session/lsp-tool.d.ts} +5 -5
- package/dist/tools/{skill-tool.d.ts → session/skill-tool.d.ts} +2 -2
- package/dist/tools/{todo-write-tool.d.ts → session/todo-write-tool.d.ts} +2 -2
- package/dist/tools/session/update-topic-tool.d.ts +12 -0
- package/dist/tools/shell/background-process-registry.d.ts +116 -0
- package/dist/tools/{bash-output-tool.d.ts → shell/bash-output-tool.d.ts} +2 -2
- package/dist/tools/{bash-tool.d.ts → shell/bash-tool.d.ts} +10 -6
- package/dist/tools/{command-tool.d.ts → shell/command-tool.d.ts} +2 -2
- package/dist/tools/{kill-shell-tool.d.ts → shell/kill-shell-tool.d.ts} +2 -2
- package/dist/tools/shell/process-tree-termination.d.ts +25 -0
- package/dist/tools/shell/terminal-output-normalizer.d.ts +6 -0
- package/dist/tools/{web-fetch-tool.d.ts → web/web-fetch-tool.d.ts} +2 -2
- package/dist/tools/{web-search-tool.d.ts → web/web-search-tool.d.ts} +2 -2
- package/package.json +4 -3
- package/dist/chunk-E4R6CEFK.js +0 -1
- package/dist/chunk-NYZR4XKO.js +0 -1
- package/dist/chunk-RABU4RC2.js +0 -1
- package/dist/chunk-RTDLM6FU.js +0 -1
- package/dist/tools/background-process-registry.d.ts +0 -64
- package/dist/tools/file-edit-tool.d.ts +0 -34
- package/dist/tools/mcp-server-manager.d.ts +0 -60
- package/dist/tools/mcp-tool-adapter.d.ts +0 -47
- package/dist/tools/mock-tool-runtime.d.ts +0 -3
- package/dist/tools/runtime-manager-tools.d.ts +0 -58
- package/dist/tools/update-topic-tool.d.ts +0 -12
- package/dist/tools/workspace-paths.d.ts +0 -5
- /package/dist/tools/{mcp-oauth-provider.d.ts → mcp/mcp-oauth-provider.d.ts} +0 -0
- /package/dist/tools/{bash-internals.d.ts → shell/bash-internals.d.ts} +0 -0
- /package/dist/tools/{safe-fetch.d.ts → web/safe-fetch.d.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x127c29,_0x37049b){var _0x2715f7={_0x19bb5b:0x448,_0x3599a5:0x44e,_0x2b7219:0x44b,_0x452bd5:0x457,_0x36e009:0x458,_0xb9b544:0x450,_0x44e353:0x451,_0x11a425:0x44f,_0x559aed:0x450,_0x1b53bd:0x44a,_0x3b60e1:0x44d,_0x110440:0x446,_0x509970:0x3f7,_0x3e6607:0x3f0,_0x164b6c:0x3ec,_0xceac08:0x3f2,_0x3f3baf:0x3f6,_0x17cb8b:0x3f0,_0x222f79:0x3fb,_0x1a008a:0x3fc},_0x579404={_0x1fb944:0x358},_0x582229={_0x23051e:0x2fe};function _0x38625b(_0x536b6e,_0x4bc44f,_0x407b9c,_0x5d181c){return _0x353e(_0x4bc44f-_0x582229._0x23051e,_0x536b6e);}var _0x8e0e74=_0x127c29();function _0x3fe81e(_0x557331,_0x438ade,_0x53c475,_0x5b16dc){return _0x353e(_0x53c475-_0x579404._0x1fb944,_0x438ade);}while(!![]){try{var _0x2758cb=parseInt(_0x3fe81e(0x453,_0x2715f7._0x19bb5b,_0x2715f7._0x3599a5,_0x2715f7._0x2b7219))/0x1+parseInt(_0x3fe81e(0x452,_0x2715f7._0x452bd5,0x452,_0x2715f7._0x36e009))/0x2*(-parseInt(_0x3fe81e(_0x2715f7._0xb9b544,_0x2715f7._0x44e353,_0x2715f7._0x11a425,0x451))/0x3)+-parseInt(_0x3fe81e(_0x2715f7._0x559aed,0x44d,0x454,_0x2715f7._0x3599a5))/0x4*(-parseInt(_0x3fe81e(0x44d,_0x2715f7._0x1b53bd,_0x2715f7._0x3b60e1,_0x2715f7._0x110440))/0x5)+-parseInt(_0x38625b(0x3eb,0x3f1,0x3f8,_0x2715f7._0x509970))/0x6*(-parseInt(_0x3fe81e(0x44b,0x44f,_0x2715f7._0xb9b544,0x44e))/0x7)+parseInt(_0x38625b(0x3fb,_0x2715f7._0x509970,0x3f3,_0x2715f7._0x3e6607))/0x8+-parseInt(_0x38625b(_0x2715f7._0x164b6c,_0x2715f7._0xceac08,0x3f1,0x3f2))/0x9+parseInt(_0x38625b(_0x2715f7._0x3f3baf,_0x2715f7._0x17cb8b,0x3e9,0x3ee))/0xa*(-parseInt(_0x38625b(0x3fd,_0x2715f7._0x222f79,_0x2715f7._0x1a008a,_0x2715f7._0x222f79))/0xb);if(_0x2758cb===_0x37049b)break;else _0x8e0e74['push'](_0x8e0e74['shift']());}catch(_0x4fc245){_0x8e0e74['push'](_0x8e0e74['shift']());}}}(_0x5467,0xa2be5));function resolveAnthropicReasoningConfig(_0xd75b81){return _0xd75b81?.['anthropic']?structuredClone(_0xd75b81['anthropic']):void 0x0;}function resolveOpenAiReasoningConfig(_0x4af5bb){var _0x363d8b={_0x578139:0x22d,_0x164dda:0x231,_0xc398e1:0x234};function _0x422380(_0x143159,_0x36aa17,_0x247e3f,_0x455e0a){return _0x353e(_0x247e3f-0x136,_0x36aa17);}function _0x53f8b3(_0x472c1b,_0x45e8e1,_0x3cfc5e,_0x338241){return _0x353e(_0x472c1b-0x1ba,_0x45e8e1);}if(_0x4af5bb?.['codex'])return structuredClone(_0x4af5bb[_0x422380(_0x363d8b._0x578139,0x22b,0x231,0x22c)]);return _0x4af5bb?.[_0x422380(0x232,_0x363d8b._0x164dda,_0x363d8b._0xc398e1,0x230)]?structuredClone(_0x4af5bb['openai']):void 0x0;}function _0x5467(){var _0x3c62f9=['mZC4nte4CxPJCLj0','y29KzxG','ne50A2XrzG','ndeWnteYm3n3tNHLva','B3bLBMfP','ntbqtxr5CgW','nK1hvwX1DW','nJuWmJvkA0DnCui','ndG3mtCZmeDuq0zOsG','mZKYndiXD2ftywrg','mtHLC29Nz3K','odmYntmZofP1whncCG','odK1mZKYmejyuhrrtW'];_0x5467=function(){return _0x3c62f9;};return _0x5467();}function _0x353e(_0x10e996,_0x472901){_0x10e996=_0x10e996-0xf2;var _0x54674b=_0x5467();var _0x353ec9=_0x54674b[_0x10e996];if(_0x353e['JVnjqJ']===undefined){var _0x2d2b12=function(_0x54c50a){var _0x158af3='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0xd75b81='',_0x4af5bb='';for(var _0x3c0ad7=0x0,_0x3db8fd,_0x713e6f,_0x5288b1=0x0;_0x713e6f=_0x54c50a['charAt'](_0x5288b1++);~_0x713e6f&&(_0x3db8fd=_0x3c0ad7%0x4?_0x3db8fd*0x40+_0x713e6f:_0x713e6f,_0x3c0ad7++%0x4)?_0xd75b81+=String['fromCharCode'](0xff&_0x3db8fd>>(-0x2*_0x3c0ad7&0x6)):0x0){_0x713e6f=_0x158af3['indexOf'](_0x713e6f);}for(var _0x5a38f9=0x0,_0x57b73f=_0xd75b81['length'];_0x5a38f9<_0x57b73f;_0x5a38f9++){_0x4af5bb+='%'+('00'+_0xd75b81['charCodeAt'](_0x5a38f9)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4af5bb);};_0x353e['SnYMqZ']=_0x2d2b12,_0x353e['rbjToY']={},_0x353e['JVnjqJ']=!![];}var _0x3117e3=_0x54674b[0x0],_0x1b3b88=_0x10e996+_0x3117e3,_0x4abf32=_0x353e['rbjToY'][_0x1b3b88];return!_0x4abf32?(_0x353ec9=_0x353e['SnYMqZ'](_0x353ec9),_0x353e['rbjToY'][_0x1b3b88]=_0x353ec9):_0x353ec9=_0x4abf32,_0x353ec9;}export{resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x5ee1f0,_0x397def){const _0x20a88b={_0x2a8160:0x263,_0x299f1f:0x26c,_0x4c6e76:0x28e,_0x3df23f:0x2ad,_0x5b9a71:0x297,_0x5f4e81:0x2f8,_0x2af993:0x2f2,_0x5c51a2:0x30e,_0x247c28:0x2e5,_0x4f6393:0x2f4,_0x30c27b:0x2fd,_0x735e3:0x324,_0x4f1424:0x2fb,_0x47bc5a:0x32d,_0x5197c2:0x2f7,_0x16d315:0x2df,_0x131cf0:0x2db,_0x1fd563:0x2f7,_0x278d2d:0x2b2,_0x44fe64:0x25a,_0x1afbbd:0x290,_0x4bcc86:0x2ac,_0x43ecee:0x29e},_0x5eb166={_0x4a1008:0x202},_0x510a77={_0x58b2c7:0x18e};function _0x49994d(_0x1386d0,_0x366e0d,_0x5eb207,_0x2635a0){return _0x1a9f(_0x2635a0-_0x510a77._0x58b2c7,_0x5eb207);}function _0x1a21d3(_0x49e987,_0x1790a8,_0x546432,_0x25e60a){return _0x1a9f(_0x49e987-_0x5eb166._0x4a1008,_0x546432);}const _0x28e7e4=_0x5ee1f0();while(!![]){try{const _0x348ab8=parseInt(_0x49994d(_0x20a88b._0x2a8160,_0x20a88b._0x299f1f,_0x20a88b._0x4c6e76,0x27e))/0x1+parseInt(_0x49994d(_0x20a88b._0x3df23f,0x2a7,_0x20a88b._0x5b9a71,0x2a6))/0x2*(-parseInt(_0x1a21d3(_0x20a88b._0x5f4e81,_0x20a88b._0x2af993,_0x20a88b._0x5c51a2,_0x20a88b._0x247c28))/0x3)+parseInt(_0x1a21d3(0x304,_0x20a88b._0x4f6393,_0x20a88b._0x30c27b,0x313))/0x4+parseInt(_0x1a21d3(0x317,_0x20a88b._0x735e3,_0x20a88b._0x4f1424,0x31f))/0x5+parseInt(_0x1a21d3(0x315,_0x20a88b._0x47bc5a,_0x20a88b._0x5197c2,_0x20a88b._0x47bc5a))/0x6+-parseInt(_0x1a21d3(_0x20a88b._0x16d315,0x2c8,_0x20a88b._0x131cf0,_0x20a88b._0x1fd563))/0x7*(parseInt(_0x49994d(0x28d,_0x20a88b._0x278d2d,0x27f,0x297))/0x8)+parseInt(_0x49994d(_0x20a88b._0x44fe64,_0x20a88b._0x1afbbd,0x26f,0x270))/0x9*(-parseInt(_0x49994d(_0x20a88b._0x4bcc86,0x283,0x2b6,_0x20a88b._0x43ecee))/0xa);if(_0x348ab8===_0x397def)break;else _0x28e7e4['push'](_0x28e7e4['shift']());}catch(_0x2fd5e0){_0x28e7e4['push'](_0x28e7e4['shift']());}}}(_0x4d90,0x9b8b2));import{resolveOpenAiReasoningConfig}from'./chunk-IUZALP6K.js';import{isProviderStateCompatible,normalizeContent}from'./chunk-YNOIG4FD.js';function systemToInstructions(_0x48e478){const _0x1c454d={_0x389782:0x27d,_0x2c30ca:0x27d,_0x3f5cce:0x292,_0x29e970:0x29f},_0x533cb0={_0xf031ee:0x150};function _0x3d9f10(_0x1e4288,_0x45f8a4,_0x5a1c55,_0xa130f9){return _0x1a9f(_0xa130f9-0x1a9,_0x45f8a4);}function _0x1db895(_0x31e8c2,_0x41ebf2,_0x8a8c28,_0x2c762d){return _0x1a9f(_0x31e8c2- -_0x533cb0._0xf031ee,_0x41ebf2);}return normalizeContent(_0x48e478)[_0x3d9f10(_0x1c454d._0x389782,_0x1c454d._0x2c30ca,0x283,_0x1c454d._0x3f5cce)](_0x5a1e51=>_0x5a1e51[_0x1db895(-0x74,-0x55,-0x8b,-0x7c)]==='text')[_0x3d9f10(0x2c6,0x2bd,_0x1c454d._0x29e970,0x2a9)](_0x17dbd2=>_0x17dbd2['text'])[_0x1db895(-0x41,-0x41,-0x2c,-0x5a)]('\x0a\x0a');}function pushUserContentMessage(_0x1b2d13,_0xa4797e,_0x3a7bcc){const _0x2001f4={_0xb84094:0x7,_0x949fdf:0x3aa,_0x369b97:0x390,_0x48bae:0x391};function _0x55525a(_0x457b65,_0x2c5e10,_0x326447,_0x11f3ec){return _0x1a9f(_0x11f3ec- -0x100,_0x457b65);}function _0x4aa3a4(_0x47610a,_0x493fe3,_0x2438e8,_0x29aab0){return _0x1a9f(_0x493fe3-0x2a6,_0x2438e8);}if(_0x3a7bcc[_0x55525a(_0x2001f4._0xb84094,-0x14,-0x1e,-0x1)]===0x0)return;_0x1b2d13['push']({'type':_0x4aa3a4(_0x2001f4._0x949fdf,_0x2001f4._0x369b97,_0x2001f4._0x48bae,0x38f),'role':_0xa4797e,'content':_0x3a7bcc});}function hasSerializableToolUse(_0x317c1d){const _0xfb44a9={_0x522640:0x87,_0x40e1cb:0x63,_0x36f468:0x78,_0x16424f:0x6e},_0x111354={_0xa12420:0x87},_0x27e7de={_0x67410b:0x2ee};function _0x34e985(_0xb3db8c,_0x1419f6,_0x4c1822,_0x27a649){return _0x1a9f(_0x27a649- -_0x27e7de._0x67410b,_0x4c1822);}function _0x432ca0(_0x32afc8,_0x212e98,_0x19e724,_0x219b91){return _0x1a9f(_0x212e98- -_0x111354._0xa12420,_0x32afc8);}return _0x317c1d['id'][_0x432ca0(0x93,_0xfb44a9._0x522640,0x80,0x8c)]()['length']>0x0&&_0x317c1d[_0x34e985(-0x20a,-0x1ed,-0x212,-0x201)]['trim']()[_0x432ca0(_0xfb44a9._0x40e1cb,_0xfb44a9._0x36f468,0x5b,_0xfb44a9._0x16424f)]>0x0;}function hasSerializableToolResult(_0x3c90b1){const _0x5589c0={_0x43d46d:0x40c,_0x45299f:0x3ec,_0x3173a1:0x3fd,_0x315159:0x3ed,_0x343578:0x40d},_0x14a24c={_0x3fd6c5:0x31a},_0x2243c7={_0x3e7f10:0x2fe};function _0x249b6a(_0x5d4984,_0x91fbe1,_0x1f7804,_0x4667e4){return _0x1a9f(_0x5d4984-_0x2243c7._0x3e7f10,_0x91fbe1);}function _0x1a22d3(_0xd68f30,_0x12419f,_0x2d8427,_0x4aca53){return _0x1a9f(_0x2d8427- -_0x14a24c._0x3fd6c5,_0xd68f30);}return _0x3c90b1['tool_use_id'][_0x249b6a(_0x5589c0._0x43d46d,0x3f7,_0x5589c0._0x45299f,0x3f9)]()[_0x249b6a(_0x5589c0._0x3173a1,_0x5589c0._0x315159,_0x5589c0._0x343578,0x41d)]>0x0;}function isResponseInputObject(_0x416e09){const _0x5e778d={_0x124139:0xe0,_0xd1d89a:0x11a,_0x569596:0x21b,_0x4cf768:0x22d},_0x2e39de={_0x2b2257:0x300};function _0x483a0f(_0x5f1c17,_0x38ae44,_0x51a144,_0x13fb43){return _0x1a9f(_0x51a144-0x6,_0x5f1c17);}if(typeof _0x416e09!==_0x483a0f(0xe1,0xd7,_0x5e778d._0x124139,0xcc)||_0x416e09===null||Array[_0x483a0f(0x10a,0x123,0x104,_0x5e778d._0xd1d89a)](_0x416e09))return![];function _0x1c1e35(_0x34be23,_0x15cfdb,_0x57ecb9,_0x5ac736){return _0x1a9f(_0x5ac736- -_0x2e39de._0x2b2257,_0x15cfdb);}const _0x48e4b4=_0x416e09;return typeof _0x48e4b4[_0x1c1e35(-_0x5e778d._0x569596,-0x234,-_0x5e778d._0x4cf768,-0x224)]==='string';}function isImageToolResultBlock(_0x446539){const _0x2d28cd={_0x3663f9:0x1fd,_0x5511ab:0x21c,_0x52512d:0x227,_0x2494df:0x1d3,_0x442e7a:0x1c0,_0x39031d:0x1db,_0x5b1435:0x204,_0x2708af:0x22b,_0x11144b:0x1e4,_0x146ddd:0x1e3,_0x57069a:0x20f,_0x1f1dbe:0x1f8,_0x44f345:0x1e0,_0x12926c:0x1b6,_0x4c4d43:0x1ea,_0x39c577:0x1d3,_0x182755:0x1ce,_0x4e0b00:0x1ae,_0x5e83fc:0x203,_0x5ea8cc:0x230,_0x4b7b0d:0x229,_0x30f0f8:0x19e,_0x3e9a99:0x1c6,_0x46f9aa:0x19b},_0x89909b={_0x48c259:0x2bf};function _0x564858(_0x5eddbf,_0x1e6431,_0x583a21,_0x829705){return _0x1a9f(_0x1e6431- -0x31a,_0x829705);}if(typeof _0x446539!==_0x590db9(-0x1dc,-0x1e7,-0x1c9,-0x1e5)||_0x446539===null||Array[_0x564858(-_0x2d28cd._0x3663f9,-_0x2d28cd._0x5511ab,-_0x2d28cd._0x52512d,-0x214)](_0x446539))return![];function _0x590db9(_0x1b3eff,_0x14de85,_0x11ee08,_0x5469e9){return _0x1a9f(_0x5469e9- -_0x89909b._0x48c259,_0x11ee08);}const _0x5a5ee7=_0x446539;return _0x5a5ee7['type']===_0x590db9(-_0x2d28cd._0x2494df,-_0x2d28cd._0x442e7a,-0x1f4,-_0x2d28cd._0x39031d)&&_0x5a5ee7[_0x564858(-0x23b,-0x21f,-_0x2d28cd._0x5b1435,-_0x2d28cd._0x2708af)]?.[_0x590db9(-0x1f9,-0x1d3,-_0x2d28cd._0x11144b,-_0x2d28cd._0x146ddd)]===_0x564858(-0x22c,-_0x2d28cd._0x57069a,-0x22a,-_0x2d28cd._0x1f1dbe)&&typeof _0x5a5ee7[_0x590db9(-0x1d5,-0x1df,-_0x2d28cd._0x44f345,-0x1c4)][_0x590db9(-_0x2d28cd._0x12926c,-_0x2d28cd._0x4c4d43,-_0x2d28cd._0x39c577,-_0x2d28cd._0x182755)]===_0x590db9(-0x1be,-0x1bf,-0x19b,-_0x2d28cd._0x4e0b00)&&typeof _0x5a5ee7['source'][_0x564858(-_0x2d28cd._0x5e83fc,-0x210,-_0x2d28cd._0x5ea8cc,-_0x2d28cd._0x4b7b0d)]===_0x590db9(-_0x2d28cd._0x30f0f8,-_0x2d28cd._0x3e9a99,-_0x2d28cd._0x46f9aa,-_0x2d28cd._0x4e0b00);}function getToolResultText(_0xcf7412){const _0x11ff36={_0x50b7a9:0x199,_0x405690:0x1a2,_0x4fb6cd:0x19f,_0x4101d7:0x1c1,_0x2891ed:0x1a7,_0x53396e:0x182,_0x5a18c1:0x1b4,_0x5f11f7:0x1ae,_0x326306:0x2bb,_0x23070c:0x2c9,_0xf2beea:0x2bf,_0x84351e:0x2d0,_0x1b59ab:0x2e1,_0x35d939:0x2ce,_0x38dc7d:0x2af,_0x2cfc46:0x2c9,_0x16dab3:0x2c7},_0x2c6b58={_0x167ae2:0x8a,_0x30fdea:0x78,_0x404f04:0x76,_0x1b77a5:0x5d,_0x319b26:0x7e,_0x854e3b:0x74,_0x148537:0x93},_0x436b19={_0x1244b0:0x158,_0x41f3c0:0x167},_0x4adfc4={_0x1d2ffe:0x103,_0x1e2b02:0x176};if(typeof _0xcf7412===_0x1aab04(-_0x11ff36._0x50b7a9,-_0x11ff36._0x405690,-0x1a3,-_0x11ff36._0x4fb6cd))return _0xcf7412;function _0x2eabf3(_0x5bda07,_0x3d7051,_0x301284,_0x1eaa35){return _0x1a9f(_0x1eaa35- -0x3cd,_0x5bda07);}function _0x1aab04(_0xccba90,_0x1f277a,_0x577d9c,_0x3373ca){return _0x1a9f(_0xccba90- -0x2aa,_0x1f277a);}const _0x134565=_0xcf7412[_0x1aab04(-_0x11ff36._0x4101d7,-_0x11ff36._0x2891ed,-0x1be,-0x1c7)](_0x3da0ae=>{function _0x5f4cff(_0x43f771,_0x4e76e6,_0x3a4caf,_0x45f0ad){return _0x1aab04(_0x45f0ad-0x353,_0x3a4caf,_0x3a4caf-_0x4adfc4._0x1d2ffe,_0x45f0ad-_0x4adfc4._0x1e2b02);}function _0x31c153(_0x33bf05,_0x3d33be,_0x4f1142,_0x2e031c){return _0x1aab04(_0x3d33be-_0x436b19._0x1244b0,_0x2e031c,_0x4f1142-_0x436b19._0x41f3c0,_0x2e031c-0x1c8);}return typeof _0x3da0ae===_0x31c153(-_0x2c6b58._0x167ae2,-_0x2c6b58._0x30fdea,-0x95,-0x64)&&_0x3da0ae!==null&&_0x3da0ae[_0x31c153(-0x7b,-_0x2c6b58._0x404f04,-_0x2c6b58._0x1b77a5,-0x7d)]===_0x31c153(-_0x2c6b58._0x319b26,-_0x2c6b58._0x854e3b,-_0x2c6b58._0x148537,-0x8e);})['map'](_0x10a544=>_0x10a544['text'])[_0x1aab04(-0x19b,-_0x11ff36._0x53396e,-_0x11ff36._0x5a18c1,-_0x11ff36._0x5f11f7)]('\x0a\x0a')[_0x2eabf3(-_0x11ff36._0x326306,-0x2b6,-_0x11ff36._0x23070c,-_0x11ff36._0xf2beea)]();return _0x134565[_0x2eabf3(-0x2ce,-_0x11ff36._0x84351e,-_0x11ff36._0x1b59ab,-_0x11ff36._0x35d939)]>0x0?_0x134565:_0x2eabf3(-0x2ab,-_0x11ff36._0x38dc7d,-_0x11ff36._0x2cfc46,-_0x11ff36._0x16dab3);}function getToolResultImages(_0x47fc1c){return Array['isArray'](_0x47fc1c)?_0x47fc1c['filter'](isImageToolResultBlock):[];}function _0x1a9f(_0x5516f8,_0x73aa7f){_0x5516f8=_0x5516f8-0xd9;const _0x4d9052=_0x4d90();let _0x1a9f6c=_0x4d9052[_0x5516f8];if(_0x1a9f['fdDRWu']===undefined){var _0x37e1a1=function(_0x590fd3){const _0x36fc30='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x48e478='',_0x5a1e51='';for(let _0x17dbd2=0x0,_0x1b2d13,_0xa4797e,_0x3a7bcc=0x0;_0xa4797e=_0x590fd3['charAt'](_0x3a7bcc++);~_0xa4797e&&(_0x1b2d13=_0x17dbd2%0x4?_0x1b2d13*0x40+_0xa4797e:_0xa4797e,_0x17dbd2++%0x4)?_0x48e478+=String['fromCharCode'](0xff&_0x1b2d13>>(-0x2*_0x17dbd2&0x6)):0x0){_0xa4797e=_0x36fc30['indexOf'](_0xa4797e);}for(let _0x317c1d=0x0,_0x3c90b1=_0x48e478['length'];_0x317c1d<_0x3c90b1;_0x317c1d++){_0x5a1e51+='%'+('00'+_0x48e478['charCodeAt'](_0x317c1d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5a1e51);};_0x1a9f['SxNlbT']=_0x37e1a1,_0x1a9f['tvZUYg']={},_0x1a9f['fdDRWu']=!![];}const _0x20af65=_0x4d9052[0x0],_0x45bf67=_0x5516f8+_0x20af65,_0x15438a=_0x1a9f['tvZUYg'][_0x45bf67];return!_0x15438a?(_0x1a9f6c=_0x1a9f['SxNlbT'](_0x1a9f6c),_0x1a9f['tvZUYg'][_0x45bf67]=_0x1a9f6c):_0x1a9f6c=_0x15438a,_0x1a9f6c;}function resolveReasoningVisibility(_0x4116ef){const _0x461e93={_0x49a409:0xd0,_0x23f34f:0xb5,_0xa7194b:0xcb,_0x3910a2:0xae,_0x4fc721:0xe9,_0x52b6d1:0xeb},_0x32df33={_0x5d66ba:0x332};function _0x4b9c21(_0x56cdca,_0x206dc8,_0x21502f,_0x58f492){return _0x1a9f(_0x56cdca- -0x42,_0x58f492);}function _0x10bb1d(_0x208776,_0x10c096,_0x356b2e,_0x40a790){return _0x1a9f(_0x10c096- -_0x32df33._0x5d66ba,_0x208776);}return _0x4116ef[_0x4b9c21(_0x461e93._0x49a409,0xd9,0xc5,_0x461e93._0x23f34f)]?.['visibility']??_0x4b9c21(_0x461e93._0xa7194b,_0x461e93._0x3910a2,_0x461e93._0x4fc721,_0x461e93._0x52b6d1);}function createOpenAiResponsesReasoning(_0x10620e){const _0x2f42bd={_0x29cca2:0x1a0,_0x305652:0x18c,_0xcfd63c:0x1c6,_0x3207cf:0x1a6,_0x151a7e:0x188,_0x1777ca:0x1bc,_0x3b033c:0x1ba,_0x142df5:0x1d9,_0x134638:0x173,_0x391241:0x173,_0xbbac7c:0x160,_0x561d81:0x18f,_0x54d4a6:0x191,_0x55d26d:0x193,_0x21dbe1:0x19d,_0x54da3a:0x1b1,_0x5d89d1:0x193,_0x2a15ec:0x1db,_0x2e5939:0x1d1,_0x40cacb:0x1e4,_0x4ada83:0x1df,_0x249931:0x1a3,_0x504310:0x18e,_0x1def76:0x1a1,_0x899462:0x196,_0x80ad2:0x1d0,_0x15b45d:0x1bc,_0x2104a1:0x19c,_0x48ef35:0x1b9,_0xd6a265:0x1b8},_0x4e50ec=resolveOpenAiReasoningConfig(_0x10620e[_0x134ca1(-_0x2f42bd._0x29cca2,-0x1a6,-_0x2f42bd._0x305652,-0x190)]);if(!_0x4e50ec)return{};function _0x2834d6(_0x16df19,_0x4b9a83,_0x203b96,_0x20a095){return _0x1a9f(_0x4b9a83-0x8c,_0x16df19);}const _0x52015a={},_0x8783f1=_0x10620e[_0x134ca1(-_0x2f42bd._0xcfd63c,-_0x2f42bd._0x3207cf,-_0x2f42bd._0x151a7e,-_0x2f42bd._0x1777ca)]?.[_0x134ca1(-_0x2f42bd._0x3b033c,-0x1bf,-_0x2f42bd._0x142df5,-0x1a7)]!==void 0x0,_0x2a2fb5=(!_0x8783f1&&_0x2834d6(0x180,_0x2f42bd._0x134638,0x18a,_0x2f42bd._0x391241)in _0x4e50ec?_0x4e50ec[_0x2834d6(_0x2f42bd._0xbbac7c,_0x2f42bd._0x391241,_0x2f42bd._0x561d81,0x177)]:void 0x0)??(resolveReasoningVisibility(_0x10620e)===_0x134ca1(-_0x2f42bd._0x54d4a6,-0x1ab,-0x192,-0x1a0)?'auto':void 0x0);function _0x134ca1(_0x295c12,_0x1b4813,_0x4fca76,_0x4ba5b0){return _0x1a9f(_0x1b4813- -0x2b8,_0x295c12);}return _0x4e50ec[_0x2834d6(0x17f,_0x2f42bd._0x55d26d,0x177,0x18e)]&&(_0x52015a[_0x134ca1(-_0x2f42bd._0x21dbe1,-_0x2f42bd._0x54da3a,-0x196,-0x1a4)]=_0x4e50ec[_0x2834d6(0x1a7,_0x2f42bd._0x5d89d1,0x196,0x1b3)]),_0x2a2fb5&&(_0x52015a[_0x134ca1(-_0x2f42bd._0x2a15ec,-_0x2f42bd._0x2e5939,-_0x2f42bd._0x40cacb,-_0x2f42bd._0x4ada83)]=_0x2a2fb5),{...!_0x8783f1&&_0x2834d6(0x1c3,_0x2f42bd._0x249931,0x188,0x1bf)in _0x4e50ec&&_0x4e50ec[_0x134ca1(-_0x2f42bd._0x504310,-_0x2f42bd._0x1def76,-0x1a8,-_0x2f42bd._0x899462)]===![]?{}:{'include':[_0x134ca1(-_0x2f42bd._0x80ad2,-0x1b0,-0x1b8,-_0x2f42bd._0x15b45d)]},...Object[_0x2834d6(0x18b,0x190,_0x2f42bd._0x2104a1,_0x2f42bd._0x391241)](_0x52015a)[_0x134ca1(-0x1c9,-_0x2f42bd._0x48ef35,-_0x2f42bd._0xd6a265,-0x1c4)]>0x0?{'reasoning':_0x52015a}:{}};}function _0x4d90(){const _0x21cdcc=['o2jHC2u2ncW','AxnbCNjHEq','BgvUz3rO','BwfW','C2nOzw1H','mZm1otK1mNLez1vczW','Aw5WDxrFC2nOzw1H','A2v5CW','C3rYAw5NAwz5','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','zwzMB3j0','CMvHC29UAw5NlMvUy3j5ChrLzf9JB250zw50','mZa5mdruvgvXr1q','zgf0yq','yMfZzty0','C3rHDhvZ','DxnLCI12AxnPyMXL','DhjPBq','AM9PBG','mta5mgjftvLywa','C3rYAw5N','CMvHC29UAw5N','ndC5mZiZmMfeAeXqvW','B3bLBMfPuMvZCg9UC2vZt3v0Chv0','mJiWnJy2nw1IrwL5DW','zgf0ytO','Aw5JBhvKzuvUy3j5ChrLzenVBNrLBNq','nJuYotaWzMLnzNfy','C3bSAwnL','B2jQzwn0','Dg9VBhm','DhLWzq','mtqWse1PtLnp','Dgv4Da','sw1Hz2uGCMv0DxjUzwqGyNKGvMLLD0zPBguGzM9YihrVB2WGCMvZDwX0ia','C3rYDwn0DxjLzf9VDxrWDxq','Aw5WDxrFAw1Hz2u','mtuYotm3B0DqDfbO','ChvZAa','Aw1Hz2u','yxnZAxn0yw50','zNvUy3rPB25Fy2fSBf9VDxrWDxq','C3vTBwfYEq','Dg9VBf91C2vFAwq','zMLSDgvY','BwvZC2fNzq','B3v0Chv0x3rLEhq','ChjVDMLKzxjtDgf0zq','BMfTzq','B3v0Chv0rM9YBwf0','Bwf4vg9Rzw5Z','mteZotmXmhjnD21vEq','BwvKAwfFDhLWzq','zgvZy3jPChrPB24','zNvUy3rPB24','Dg9VBf91C2u','CM9Szq','nNHIDuXxva','Aw5WDxrFDgv4Da','y29UDgvUDa','y29KzxG','Aw5WDxq','C291CMnL','Bw9KzwW'];_0x4d90=function(){return _0x21cdcc;};return _0x4d90();}function pushAssistantProviderState(_0x16d598,_0x54c5af,_0x5552c1){const _0x29eb19={_0x4afa60:0x1e3,_0x446445:0x207,_0x5a8df6:0x1d3,_0x2a4486:0x1ec,_0x3dff6a:0x1f4,_0x204e83:0x1f8,_0x1ce097:0x1ed,_0x21062c:0x1fa,_0x50c467:0x1d9,_0x2e6183:0x1dd,_0xe95336:0x2fb,_0x26a593:0x2d0,_0x59a03d:0x2d0,_0x23e151:0x30a,_0x4d1ca5:0x30d,_0x502858:0x2f2,_0x290942:0x2f4,_0x225f98:0x2f6,_0x2ab1c0:0x1d5,_0x2d9a30:0x1ca,_0x213563:0x1de};function _0x3ae983(_0x37c830,_0x5920e5,_0x168297,_0xd233e5){return _0x1a9f(_0x5920e5-0x1f4,_0xd233e5);}if(_0x54c5af[_0x33960b(_0x29eb19._0x4afa60,_0x29eb19._0x446445,_0x29eb19._0x5a8df6,0x1ec)]!=='assistant')return![];function _0x33960b(_0x275d32,_0x1f9f22,_0x10e5e3,_0x4fd5c2){return _0x1a9f(_0x4fd5c2-0xf7,_0x10e5e3);}if(!isProviderStateCompatible(_0x54c5af,_0x5552c1))return![];const _0x3830e0=_0x54c5af[_0x33960b(_0x29eb19._0x2a4486,_0x29eb19._0x3dff6a,0x1e4,_0x29eb19._0x4afa60)]?.[_0x33960b(_0x29eb19._0x204e83,_0x29eb19._0x1ce097,_0x29eb19._0x21062c,0x20b)]??[];if(_0x3830e0[_0x33960b(_0x29eb19._0x50c467,0x214,_0x29eb19._0x2e6183,0x1f6)]===0x0)return![];for(const _0x5a9a1f of _0x3830e0){if(isResponseInputObject(_0x5a9a1f)){const _0x49a213=structuredClone(_0x5a9a1f);delete _0x49a213[_0x3ae983(0x2e8,0x300,0x309,_0x29eb19._0xe95336)],_0x49a213[_0x3ae983(0x2c6,_0x29eb19._0x26a593,0x2d4,_0x29eb19._0x59a03d)]===_0x3ae983(_0x29eb19._0x23e151,0x306,0x30e,_0x29eb19._0x4d1ca5)&&!Array[_0x3ae983(0x2e4,_0x29eb19._0x502858,_0x29eb19._0x290942,_0x29eb19._0x225f98)](_0x49a213[_0x33960b(0x1dd,_0x29eb19._0x2ab1c0,_0x29eb19._0x2d9a30,_0x29eb19._0x213563)])&&(_0x49a213[_0x3ae983(0x2c4,0x2db,0x2bb,0x2d6)]=[]),_0x16d598['push'](_0x49a213);}}return!![];}function toOpenAiResponsesRequest(_0x4ad9e3){const _0x4a55f3={_0x2c86bf:0xba,_0x5d1099:0xa1,_0x1d33fc:0xc9,_0x573f14:0xa9,_0x5dea48:0x1ad,_0x25e3ad:0x189,_0x1eafbc:0xad,_0x208937:0x9f,_0xac6667:0xbb,_0x4c8330:0xa8,_0x713048:0x1c7,_0x36f8c6:0x1ab,_0x58017f:0x80,_0x1bc230:0x98,_0xe5699b:0x1a9,_0x3c501d:0x1c5,_0x21f342:0x1b4,_0x26a067:0x18b,_0x3ea54b:0xa7,_0x28cfec:0xc5,_0x160dd0:0x1c1,_0x38079a:0x188,_0x5ab617:0xd8,_0x531d36:0xdc,_0x552071:0xd1,_0x1fc865:0xb3,_0x122646:0xc8,_0x8e1af3:0xbf,_0x2aafc4:0xbd,_0xafb94b:0x166,_0x4a8f3a:0x1a3,_0x2b73f3:0x19b,_0xa9d640:0x1ac,_0x11126d:0x1a6,_0x2a1c01:0x198,_0x1bda5a:0x1a9,_0x2fe69b:0x1b3,_0x5c53a0:0x18f,_0x285431:0x179,_0x2489d2:0x191,_0x1868f3:0x186,_0x32acd6:0xa5,_0x13b602:0x9b,_0x2fdea0:0x87,_0x33c8f8:0xcc,_0x193518:0xc7,_0x525622:0xda,_0x56d373:0xbc,_0x38662e:0x1c7,_0x3e692b:0x1a4,_0x3f7078:0x174,_0x4623b3:0x18d,_0x3f448b:0x1a4,_0x4bbdc6:0x1a2,_0x2d7f22:0x194,_0xab1fda:0x19b,_0x53ff22:0x195,_0x101e1c:0x193,_0x3d8bda:0xc6,_0x5b070a:0xc0,_0x5f0942:0x1b7,_0x4c92bd:0x18c,_0x345a96:0x19d,_0x3c145e:0x171,_0x4335d0:0x185,_0x43a2b3:0x196,_0x685bd4:0x1a5,_0x523ede:0x196,_0x3bd4d4:0xac,_0x41b9f5:0x1a8,_0xd4d78f:0x1aa,_0x5f2bae:0x16a,_0x52ca18:0xb0,_0x50d354:0xae,_0x3dba36:0x92,_0x1c86da:0xa3,_0xb063a2:0x97,_0x35a1e7:0x186,_0x3df648:0xb0,_0x24961a:0x9a,_0x4113cf:0xc3,_0x12bc0a:0xa5,_0x1b64ad:0xa4,_0x2ac6d9:0xc4},_0x3a617b={_0x1f92c1:0x158,_0x282153:0x14c,_0x396557:0x131,_0x14073c:0x147,_0x2f27a0:0x15e,_0x32f09:0x122,_0x1d902b:0x141,_0x51f617:0x12b,_0x361b8a:0x146,_0x3c5759:0x13a,_0x331dcd:0x164},_0x1f4471={_0x10bd6a:0x123},_0x2ad02c={_0x38600d:0x92,_0x49c40f:0x1c1},_0x47ffdd={_0x38fc7c:0x3e},_0x21b51e=[];for(const _0x2e0cb1 of _0x4ad9e3['messages']){if(pushAssistantProviderState(_0x21b51e,_0x2e0cb1,_0x4ad9e3))continue;const _0x2fe742=[];for(const _0x26353f of normalizeContent(_0x2e0cb1[_0x31a07a(_0x4a55f3._0x2c86bf,0xc4,0xd0,_0x4a55f3._0x5d1099)])){if(_0x26353f['type']==='text'){_0x2fe742['push'](_0x2e0cb1[_0x31a07a(0xb7,_0x4a55f3._0x1d33fc,_0x4a55f3._0x573f14,0xbe)]===_0x46d4ae(-_0x4a55f3._0x5dea48,-_0x4a55f3._0x25e3ad,-0x1a0,-0x1bd)?{'type':_0x31a07a(_0x4a55f3._0x1eafbc,_0x4a55f3._0x208937,_0x4a55f3._0xac6667,_0x4a55f3._0x4c8330),'text':_0x26353f[_0x46d4ae(-0x1a5,-0x19a,-0x1a7,-_0x4a55f3._0x713048)]}:{'type':_0x46d4ae(-_0x4a55f3._0x36f8c6,-0x193,-0x18e,-0x177),'text':_0x26353f[_0x31a07a(0xa0,0xae,_0x4a55f3._0x58017f,_0x4a55f3._0x1bc230)]});continue;}if(_0x26353f[_0x46d4ae(-0x1a5,-0x1ae,-_0x4a55f3._0xe5699b,-_0x4a55f3._0x3c501d)]===_0x46d4ae(-0x1a5,-_0x4a55f3._0x21f342,-0x1a1,-_0x4a55f3._0x26a067)){_0x2fe742[_0x31a07a(0xa5,_0x4a55f3._0x3ea54b,_0x4a55f3._0x28cfec,0xb7)]({'type':_0x46d4ae(-0x1b7,-_0x4a55f3._0x160dd0,-0x1a4,-_0x4a55f3._0x38079a),'image_url':_0x31a07a(_0x4a55f3._0x5ab617,_0x4a55f3._0x531d36,_0x4a55f3._0x552071,0xd1)+_0x26353f['source'][_0x31a07a(_0x4a55f3._0x1fc865,_0x4a55f3._0x122646,0xa0,0xa1)]+_0x31a07a(_0x4a55f3._0x8e1af3,0xd4,0xba,0xaa)+_0x26353f[_0x31a07a(_0x4a55f3._0x2aafc4,0xb8,0xb1,0xa4)][_0x46d4ae(-0x189,-0x191,-0x17b,-_0x4a55f3._0xafb94b)]});continue;}pushUserContentMessage(_0x21b51e,_0x2e0cb1[_0x46d4ae(-0x18c,-_0x4a55f3._0x4a8f3a,-0x190,-_0x4a55f3._0x2b73f3)],_0x2fe742[_0x46d4ae(-0x19c,-0x1a4,-_0x4a55f3._0xa9d640,-_0x4a55f3._0x11126d)](0x0));if(_0x26353f[_0x46d4ae(-0x19a,-_0x4a55f3._0x2a1c01,-_0x4a55f3._0x1bda5a,-_0x4a55f3._0x2fe69b)]===_0x46d4ae(-_0x4a55f3._0x5c53a0,-_0x4a55f3._0x285431,-_0x4a55f3._0x2489d2,-_0x4a55f3._0x1868f3)){if(!hasSerializableToolUse(_0x26353f))continue;_0x21b51e[_0x31a07a(_0x4a55f3._0x32acd6,_0x4a55f3._0x13b602,_0x4a55f3._0x2fdea0,0xa8)]({'type':'function_call','call_id':_0x26353f['id'],'name':_0x26353f[_0x31a07a(0xaf,_0x4a55f3._0x1fc865,_0x4a55f3._0x33c8f8,0x91)],'arguments':JSON[_0x31a07a(_0x4a55f3._0x193518,0xb0,0xb9,_0x4a55f3._0x525622)](_0x26353f[_0x31a07a(_0x4a55f3._0x56d373,0xa2,_0x4a55f3._0x525622,0xc8)]??{})});continue;}if(_0x26353f[_0x46d4ae(-0x1c8,-_0x4a55f3._0x38662e,-0x1a9,-0x1b1)]==='tool_result'){if(!hasSerializableToolResult(_0x26353f))continue;const _0x2db74c=getToolResultText(_0x26353f[_0x46d4ae(-_0x4a55f3._0x3e692b,-_0x4a55f3._0x3f7078,-_0x4a55f3._0x4623b3,-_0x4a55f3._0x3f448b)]);_0x21b51e[_0x46d4ae(-0x1a3,-0x1af,-_0x4a55f3._0x4bbdc6,-0x185)]({'type':_0x46d4ae(-0x1a6,-_0x4a55f3._0x2d7f22,-0x19f,-_0x4a55f3._0xab1fda),'call_id':_0x26353f[_0x46d4ae(-_0x4a55f3._0x53ff22,-_0x4a55f3._0x101e1c,-0x19d,-0x182)],'output':_0x2db74c});const _0x2083e6=getToolResultImages(_0x26353f['content']);_0x2083e6['length']>0x0&&_0x21b51e['push']({'type':_0x31a07a(0xac,_0x4a55f3._0x3d8bda,0xa5,0xc5),'role':'user','content':[{'type':_0x31a07a(0xb9,0xa2,_0x4a55f3._0x5d1099,_0x4a55f3._0x5b070a),'text':_0x46d4ae(-_0x4a55f3._0x5f0942,-_0x4a55f3._0x4c92bd,-0x1a6,-0x19d)+_0x26353f[_0x46d4ae(-0x1a8,-_0x4a55f3._0x2a1c01,-0x19d,-_0x4a55f3._0x345a96)]+'.'},..._0x2083e6[_0x46d4ae(-0x173,-_0x4a55f3._0x3c145e,-_0x4a55f3._0x4335d0,-_0x4a55f3._0x43a2b3)](_0x422c8=>({'type':_0x31a07a(0xa3,0xc0,0xc1,0x8a),'image_url':'data:'+_0x422c8[_0x46d4ae(-0x196,-0x1a1,-0x18a,-0x175)][_0x31a07a(0xb3,0xce,0xbf,0xc6)]+_0x46d4ae(-0x1a1,-0x174,-0x188,-0x16e)+_0x422c8[_0x31a07a(0xbd,0x9d,0x9f,0x9d)][_0x31a07a(0xcc,0xb0,0xd6,0xbd)]}))]});}}pushUserContentMessage(_0x21b51e,_0x2e0cb1['role'],_0x2fe742);}function _0x46d4ae(_0x43d063,_0x248e11,_0x42a1ec,_0x1722fd){return _0x1a9f(_0x42a1ec- -0x285,_0x43d063);}function _0x31a07a(_0x27a6aa,_0x3ffc2d,_0x49f079,_0x365d41){return _0x1a9f(_0x27a6aa- -_0x47ffdd._0x38fc7c,_0x49f079);}return{...createOpenAiResponsesReasoning(_0x4ad9e3),'model':_0x4ad9e3[_0x46d4ae(-0x18d,-_0x4a55f3._0x685bd4,-0x189,-0x179)],'instructions':systemToInstructions(_0x4ad9e3['system']),'input':_0x21b51e,..._0x4ad9e3[_0x46d4ae(-0x178,-0x1ac,-_0x4a55f3._0x523ede,-0x1b6)]!==void 0x0?{'max_output_tokens':_0x4ad9e3[_0x31a07a(0xb1,_0x4a55f3._0x3bd4d4,0x9c,0xc1)]}:{},'tools':_0x4ad9e3[_0x46d4ae(-0x1c6,-_0x4a55f3._0x41b9f5,-_0x4a55f3._0xd4d78f,-0x1a6)][_0x46d4ae(-_0x4a55f3._0x5f2bae,-0x19c,-0x185,-0x175)](_0x8a1a9d=>{function _0x1251f9(_0x1ef57b,_0x538c24,_0x2c3a79,_0x4b673e){return _0x31a07a(_0x4b673e-_0x2ad02c._0x38600d,_0x538c24-_0x2ad02c._0x49c40f,_0x2c3a79,_0x4b673e-0xbe);}function _0x4d8a22(_0x368fa6,_0x250281,_0x34a07e,_0x2466ec){return _0x31a07a(_0x2466ec-0x95,_0x250281-0x12e,_0x250281,_0x2466ec-_0x1f4471._0x10bd6a);}return{'type':_0x1251f9(_0x3a617b._0x1f92c1,_0x3a617b._0x282153,_0x3a617b._0x396557,_0x3a617b._0x14073c),'name':_0x8a1a9d[_0x1251f9(_0x3a617b._0x2f27a0,_0x3a617b._0x32f09,0x127,_0x3a617b._0x1d902b)],'description':_0x8a1a9d[_0x1251f9(0x134,0x13a,_0x3a617b._0x51f617,_0x3a617b._0x361b8a)],'parameters':_0x8a1a9d[_0x1251f9(0x16a,_0x3a617b._0x3c5759,_0x3a617b._0x331dcd,0x157)]};}),..._0x4ad9e3[_0x31a07a(_0x4a55f3._0x52ca18,0x9b,_0x4a55f3._0x50d354,_0x4a55f3._0x3dba36)]?{'text':{'format':{'type':'json_schema','name':_0x4ad9e3[_0x31a07a(_0x4a55f3._0x52ca18,_0x4a55f3._0x1c86da,_0x4a55f3._0xb063a2,0xaf)][_0x31a07a(0xaf,0xbc,_0x4a55f3._0x193518,0xb6)]??_0x46d4ae(-0x1ae,-0x1b0,-0x1a5,-_0x4a55f3._0x35a1e7),'schema':_0x4ad9e3[_0x31a07a(_0x4a55f3._0x3df648,0xa4,0xb5,_0x4a55f3._0x24961a)][_0x31a07a(_0x4a55f3._0x4113cf,0xbf,_0x4a55f3._0x12bc0a,_0x4a55f3._0x1b64ad)],'strict':_0x4ad9e3[_0x31a07a(0xb0,_0x4a55f3._0x2ac6d9,0xad,0x96)]['strict']??!![]}}}:{}};}export{toOpenAiResponsesRequest};
|
package/dist/chunk-X7VAACWY.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4185cb,_0x21c4e2){var _0x5c2af4={_0xfa929b:0x14,_0x4e651a:0x24,_0x3078e2:0x1c,_0x17257b:0x30,_0x64460e:0x2d,_0x212d3e:0x22,_0x525d97:0x32,_0x5cddc1:0x39,_0x149d7f:0x2e,_0x2b5d6d:0x3b,_0x426b20:0x34,_0x470ffc:0x39,_0x41f318:0x38,_0x5fa8a4:0x36,_0x42d391:0x32},_0x584014={_0x2379e9:0x6f},_0x38959e=_0x4185cb();function _0x58d5b7(_0x500c49,_0xfb7144,_0x22ba94,_0x41c3ec){return _0x3986(_0x22ba94- -_0x584014._0x2379e9,_0x500c49);}function _0xedde99(_0x265e2b,_0x38e041,_0x1bab37,_0x564996){return _0x3986(_0x265e2b- -0xd1,_0x38e041);}while(!![]){try{var _0x54dd52=-parseInt(_0x58d5b7(_0x5c2af4._0xfa929b,_0x5c2af4._0x4e651a,0x1f,_0x5c2af4._0x3078e2))/0x1*(-parseInt(_0xedde99(-0x34,-0x32,-0x34,-_0x5c2af4._0x17257b))/0x2)+-parseInt(_0x58d5b7(0x24,0x2f,_0x5c2af4._0x64460e,0x34))/0x3*(parseInt(_0x58d5b7(0x1c,0x1c,_0x5c2af4._0x212d3e,0x26))/0x4)+parseInt(_0xedde99(-0x3d,-_0x5c2af4._0x525d97,-0x42,-0x45))/0x5*(parseInt(_0xedde99(-_0x5c2af4._0x5cddc1,-_0x5c2af4._0x149d7f,-0x38,-0x33))/0x6)+parseInt(_0x58d5b7(0x2d,_0x5c2af4._0x2b5d6d,_0x5c2af4._0x426b20,_0x5c2af4._0x470ffc))/0x7+-parseInt(_0xedde99(-0x3a,-0x35,-0x43,-_0x5c2af4._0x41f318))/0x8*(parseInt(_0xedde99(-_0x5c2af4._0x2b5d6d,-0x3c,-0x46,-0x46))/0x9)+-parseInt(_0xedde99(-_0x5c2af4._0x41f318,-0x3d,-0x2e,-0x37))/0xa*(-parseInt(_0xedde99(-_0x5c2af4._0x5fa8a4,-0x34,-_0x5c2af4._0x42d391,-_0x5c2af4._0x17257b))/0xb)+-parseInt(_0x58d5b7(0x2a,0x39,0x2f,0x29))/0xc;if(_0x54dd52===_0x21c4e2)break;else _0x38959e['push'](_0x38959e['shift']());}catch(_0x4dec22){_0x38959e['push'](_0x38959e['shift']());}}}(_0x443d,0xf0104));function _0x3986(_0x383308,_0x3b3f9f){_0x383308=_0x383308-0x8e;var _0x443d5b=_0x443d();var _0x398679=_0x443d5b[_0x383308];if(_0x3986['lEpwOz']===undefined){var _0x3950db=function(_0x30ba49){var _0x2043b5='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x32355d='',_0x268ee3='';for(var _0x304b5c=0x0,_0x544cb3,_0x2fc54b,_0x149da8=0x0;_0x2fc54b=_0x30ba49['charAt'](_0x149da8++);~_0x2fc54b&&(_0x544cb3=_0x304b5c%0x4?_0x544cb3*0x40+_0x2fc54b:_0x2fc54b,_0x304b5c++%0x4)?_0x32355d+=String['fromCharCode'](0xff&_0x544cb3>>(-0x2*_0x304b5c&0x6)):0x0){_0x2fc54b=_0x2043b5['indexOf'](_0x2fc54b);}for(var _0x28ce18=0x0,_0x5d9912=_0x32355d['length'];_0x28ce18<_0x5d9912;_0x28ce18++){_0x268ee3+='%'+('00'+_0x32355d['charCodeAt'](_0x28ce18)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x268ee3);};_0x3986['oVhvXd']=_0x3950db,_0x3986['ZSsAAU']={},_0x3986['lEpwOz']=!![];}var _0x5f6df3=_0x443d5b[0x0],_0x37d4a3=_0x383308+_0x5f6df3,_0x2a5485=_0x3986['ZSsAAU'][_0x37d4a3];return!_0x2a5485?(_0x398679=_0x3986['oVhvXd'](_0x398679),_0x3986['ZSsAAU'][_0x37d4a3]=_0x398679):_0x398679=_0x2a5485,_0x398679;}function _0x5afca7(_0x187e00,_0x33df52,_0x38185c,_0x35fcf3){var _0x304a99={_0x153872:0x15f};return _0x3986(_0x35fcf3-_0x304a99._0x153872,_0x33df52);}var OperationAbortedError=class extends Error{[_0x1f302d(-0x14b,-0x146,-0x141,-0x142)]=_0x1f302d(-0x152,-0x14d,-0x14c,-0x144);constructor(_0x32355d=_0x1f302d(-0x13b,-0x133,-0x13c,-0x145)){var _0x124e4e={_0x1b2633:0x17c,_0x4ecf17:0x183},_0x3854e4={_0x583595:0x66,_0x484d5f:0x370};function _0x3b0bc7(_0x2114fe,_0x4a8bc2,_0xd2f383,_0x7f8d05){return _0x5afca7(_0x2114fe-_0x3854e4._0x583595,_0x2114fe,_0xd2f383-0x3,_0xd2f383- -_0x3854e4._0x484d5f);}super(_0x32355d),this['name']=_0x3b0bc7(-0x186,-0x183,-_0x124e4e._0x1b2633,-_0x124e4e._0x4ecf17);}};function toAbortError(_0x268ee3){var _0x1bafc1={_0x413e53:0x1a,_0x32efc6:0x168};function _0x532662(_0x35cbbb,_0x575dbe,_0x599f9e,_0x19b68b){return _0x5afca7(_0x35cbbb-_0x1bafc1._0x413e53,_0x19b68b,_0x599f9e-0x11,_0x35cbbb-_0x1bafc1._0x32efc6);}if(isAbortError(_0x268ee3))return _0x268ee3;if(_0x268ee3 instanceof Error)return new OperationAbortedError(_0x268ee3[_0x532662(0x369,0x36b,0x36c,0x368)]);if(typeof _0x268ee3==='string'&&_0x268ee3['length']>0x0)return new OperationAbortedError(_0x268ee3);return new OperationAbortedError();}function _0x443d(){var _0x2a14db=['mJe0mdy0n0jzzuvYvG','mty5mJr1BKzzAKe','mJa3mJaYotjbAgTMExm','t3bLCMf0Aw9UigfIB3j0zwq','ywjVCNq','CMvHC29U','BwvZC2fNzq','mJiZmty1nKrmu1LZEa','mtuXqKLXsKL3','qujpuLrFrvjs','CMvTB3zLrxzLBNrmAxn0zw5LCG','neP0DfPbua','ywjVCNrLza','ywrKrxzLBNrmAxn0zw5LCG','mJK1BhLjDg1l','qwjVCNrfCNjVCG','nde0rLnxC0rQ','odK1ntjzvurbvMu','ode0mdjiELjKs08','mtG3mhPlC3fZqq','y29Kzq','ota2nZnrzfz1Exy'];_0x443d=function(){return _0x2a14db;};return _0x443d();}function _0x1f302d(_0x50c163,_0x241f65,_0x119b1d,_0x263a09){var _0x5cf98a={_0x183729:0x1db};return _0x3986(_0x119b1d- -_0x5cf98a._0x183729,_0x241f65);}function isAbortError(_0x304b5c){var _0x528e14={_0x32e4f3:0x2c8,_0x427d0d:0x2c2,_0xfd0228:0x2d0,_0x1268ab:0x2d1,_0x313515:0x2c5,_0x3fa2ba:0x7a},_0x535a33={_0x24934c:0xd5},_0x3d8cbb={_0x373968:0x195};function _0x42d536(_0x2233ac,_0x4e2568,_0x30e47d,_0x37dac2){return _0x5afca7(_0x2233ac-_0x3d8cbb._0x373968,_0x30e47d,_0x30e47d-0x142,_0x2233ac- -0x4c1);}function _0x449a58(_0x209f31,_0x3ed3f6,_0x414fed,_0x45678c){return _0x1f302d(_0x209f31-0x146,_0x3ed3f6,_0x45678c-0x1c6,_0x45678c-_0x535a33._0x24934c);}return _0x304b5c instanceof OperationAbortedError||_0x304b5c instanceof Error&&(_0x304b5c['name']==='AbortError'||_0x42d536(-_0x528e14._0x32e4f3,-_0x528e14._0x427d0d,-0x2bf,-_0x528e14._0xfd0228)in _0x304b5c&&_0x304b5c[_0x42d536(-0x2c8,-0x2ce,-_0x528e14._0x1268ab,-_0x528e14._0x313515)]===_0x449a58(0x82,0x7d,0x81,_0x528e14._0x3fa2ba));}function throwIfAborted(_0x544cb3){var _0x2c41d8={_0x16a54c:0xad,_0x3eec74:0x6e,_0x580f98:0x6d},_0xbfaf34={_0x1ec9b8:0xac},_0x2a4572={_0x507309:0x25,_0x3be64a:0x12};function _0xd358dd(_0x36e3a2,_0x16769b,_0xfe8dcf,_0x92ada2){return _0x1f302d(_0x36e3a2-_0x2a4572._0x507309,_0x36e3a2,_0x92ada2-0xcc,_0x92ada2-_0x2a4572._0x3be64a);}if(!_0x544cb3?.[_0x58b543(-0xa0,-_0x2c41d8._0x16a54c,-0xa8,-0xa9)])return;function _0x58b543(_0x1c9479,_0x2bcc93,_0x164de6,_0x1e0b00){return _0x1f302d(_0x1c9479-_0xbfaf34._0x1ec9b8,_0x2bcc93,_0x1e0b00-0xa0,_0x1e0b00-0xd3);}throw toAbortError(_0x544cb3[_0xd358dd(-_0x2c41d8._0x3eec74,-_0x2c41d8._0x580f98,-0x6a,-0x6e)]);}function addAbortListener(_0x2fc54b,_0x149da8){var _0x53352e={_0x1c8088:0x282,_0x5a235d:0x28a,_0xd2a55f:0x283,_0x4247c8:0x276},_0x348b24={_0x33be6e:0x237,_0x3dd71f:0x243,_0xbe26:0x23f},_0x9b38d9={_0x2612c6:0x129},_0x3676f2={_0x44cd7b:0x126,_0x1c67e6:0x328};if(!_0x2fc54b)return()=>{};function _0x591b36(_0x54eccd,_0x290960,_0x218f7c,_0x4725bc){return _0x1f302d(_0x54eccd-0x157,_0x290960,_0x218f7c- -0x13b,_0x4725bc-0x19e);}if(_0x2fc54b['aborted'])return _0x149da8(),()=>{};function _0x237120(_0x492eb7,_0x11ab7b,_0x1d0e27,_0x4c0fec){return _0x1f302d(_0x492eb7-_0x3676f2._0x44cd7b,_0x4c0fec,_0x11ab7b-_0x3676f2._0x1c67e6,_0x4c0fec-0x12d);}const _0x28ce18=()=>{_0x149da8();};return _0x2fc54b[_0x591b36(-_0x53352e._0x1c8088,-_0x53352e._0x5a235d,-_0x53352e._0xd2a55f,-0x284)](_0x591b36(-0x272,-_0x53352e._0x4247c8,-_0x53352e._0x4247c8,-0x272),_0x28ce18,{'once':!![]}),()=>{var _0x4a3836={_0x5494f2:0x2f0};function _0xc9d038(_0x5bf02f,_0x52435e,_0x1ab685,_0x897de1){return _0x237120(_0x5bf02f-_0x9b38d9._0x2612c6,_0x52435e-0x5a,_0x1ab685-0x11a,_0x5bf02f);}function _0x443c60(_0x4a305f,_0x2574ca,_0x933104,_0x58e8b7){return _0x237120(_0x4a305f-0x18,_0x2574ca- -_0x4a3836._0x5494f2,_0x933104-0x17b,_0x4a305f);}_0x2fc54b[_0xc9d038(0x230,_0x348b24._0x33be6e,0x23d,0x230)](_0xc9d038(0x24f,0x247,_0x348b24._0x3dd71f,_0x348b24._0xbe26),_0x28ce18);};}export{OperationAbortedError,toAbortError,isAbortError,throwIfAborted,addAbortListener};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x3956db,_0x208b77){const _0xa65577={_0x186da0:0x297,_0x3b87be:0x29f,_0x171c3c:0xee,_0x4acabf:0xc3,_0x29f9af:0x2a4,_0x1d0b69:0x2aa,_0x22ea91:0x2b1,_0x2c764e:0xf0,_0x3ef953:0x2af,_0x30feb7:0x290,_0x56604d:0xea,_0x42de6f:0xd4,_0x3cdf15:0x2b0,_0x3c7c33:0x2c6,_0x1bcd51:0x2bd,_0x39862d:0x29b,_0x4ea9ca:0x28a,_0x38653f:0x28d},_0x593ba9={_0x19867b:0xd0},_0x13babf=_0x3956db();function _0x35a809(_0x3f142e,_0xd1ebfa,_0x529f94,_0x439c1f){return _0x10e9(_0x439c1f-_0x593ba9._0x19867b,_0x3f142e);}function _0x4a83ba(_0xda09d1,_0x171b39,_0x440bf7,_0x59c198){return _0x10e9(_0xda09d1- -0x109,_0x171b39);}while(!![]){try{const _0x419f6b=parseInt(_0x35a809(_0xa65577._0x186da0,0x27c,_0xa65577._0x3b87be,0x298))/0x1*(parseInt(_0x4a83ba(0xd4,_0xa65577._0x171c3c,_0xa65577._0x4acabf,0xc3))/0x2)+parseInt(_0x35a809(_0xa65577._0x29f9af,0x2bf,0x2b8,0x2a4))/0x3*(-parseInt(_0x35a809(0x2c0,0x2b5,0x2bd,0x2c5))/0x4)+parseInt(_0x35a809(_0xa65577._0x1d0b69,0x28e,_0xa65577._0x22ea91,0x2a1))/0x5*(parseInt(_0x4a83ba(0xe1,0xf0,0xf7,_0xa65577._0x2c764e))/0x6)+parseInt(_0x35a809(0x2bd,_0xa65577._0x3ef953,_0xa65577._0x30feb7,0x2a9))/0x7+-parseInt(_0x4a83ba(_0xa65577._0x56604d,0xf7,0xea,_0xa65577._0x42de6f))/0x8+-parseInt(_0x35a809(0x2c5,_0xa65577._0x3cdf15,_0xa65577._0x3c7c33,_0xa65577._0x1bcd51))/0x9+parseInt(_0x35a809(_0xa65577._0x39862d,0x297,_0xa65577._0x4ea9ca,_0xa65577._0x38653f))/0xa;if(_0x419f6b===_0x208b77)break;else _0x13babf['push'](_0x13babf['shift']());}catch(_0x4eb3df){_0x13babf['push'](_0x13babf['shift']());}}}(_0x1de7,0x8ce0b));function createTextBlock(_0x48f9b4){const _0x333b18={_0x1654a1:0x4,_0x5504dc:0x1f},_0x4bd91c={_0xa92542:0x1e8};function _0x5c7b5e(_0x104570,_0x23e27a,_0xbb2774,_0x28dd00){return _0x10e9(_0xbb2774- -_0x4bd91c._0xa92542,_0x104570);}return{'type':_0x5c7b5e(0xe,-_0x333b18._0x1654a1,-0xe,-_0x333b18._0x5504dc),'text':_0x48f9b4};}function normalizeTextBlock(_0x303135){const _0x58cca9={_0x3aafed:0x242,_0x21a17b:0x250},_0x24fa3c={_0x15a9c3:0x76};function _0x23a015(_0x3aa323,_0x222683,_0x25a244,_0x5c0462){return _0x10e9(_0x5c0462-_0x24fa3c._0x15a9c3,_0x25a244);}return createTextBlock(_0x303135[_0x23a015(0x242,0x240,_0x58cca9._0x3aafed,_0x58cca9._0x21a17b)]??'');}function normalizeContent(_0x300632){const _0x58daf9={_0x4fc635:0x1b,_0x23f27b:0x2,_0x4fd5eb:0x5,_0x532d22:0x4f4,_0x1a6273:0x4ea},_0x4d38ad={_0x5814f4:0x1a7,_0x1fb821:0x1a1,_0x56b450:0x497},_0x23d99d={_0x33d109:0x332};if(typeof _0x300632==='string')return[createTextBlock(_0x300632)];function _0x546eb2(_0x449335,_0x549499,_0x3dd151,_0x28e0e5){return _0x10e9(_0x449335-_0x23d99d._0x33d109,_0x3dd151);}function _0x13d24b(_0x429b01,_0x235ed2,_0x359cbd,_0x5c7ada){return _0x10e9(_0x359cbd- -0x1f4,_0x429b01);}if(!Array[_0x13d24b(-0x1d,-_0x58daf9._0x4fc635,_0x58daf9._0x23f27b,_0x58daf9._0x4fd5eb)](_0x300632))return[];return _0x300632[_0x546eb2(_0x58daf9._0x532d22,0x4fa,_0x58daf9._0x1a6273,0x4d5)](_0x42073c=>{const _0x109d78={_0x17333e:0x161,_0x4e10ec:0x16f},_0x9b979d={_0x354bc2:0x4c7,_0x3fca51:0x7d};if(_0x42073c[_0x3bbb29(_0x4d38ad._0x5814f4,0x1c0,0x1dc,_0x4d38ad._0x1fb821)]===_0x493c2d(0x4ad,0x4ae,0x494,_0x4d38ad._0x56b450))return normalizeTextBlock(_0x42073c);function _0x493c2d(_0x5bc815,_0xb2a6f3,_0x583aa3,_0x2f917c){return _0x13d24b(_0xb2a6f3,_0xb2a6f3-0x1da,_0x5bc815-_0x9b979d._0x354bc2,_0x2f917c-_0x9b979d._0x3fca51);}function _0x3bbb29(_0x348fee,_0x244b0f,_0x2bf748,_0x3cce18){return _0x546eb2(_0x244b0f- -0x34a,_0x244b0f-_0x109d78._0x17333e,_0x348fee,_0x3cce18-_0x109d78._0x4e10ec);}return structuredClone(_0x42073c);});}function normalizeSystem(_0x1d8d92=[]){const _0x2b719a={_0x2240e6:0x3f7,_0x5e8284:0x410},_0x55a366={_0x3e7c5e:0x23e},_0x3abbdf={_0x24e80c:0x20e};function _0x4d602b(_0x3d7ca4,_0x23a3af,_0x350f39,_0x48600a){return _0x10e9(_0x23a3af-_0x3abbdf._0x24e80c,_0x3d7ca4);}function _0x3a88e5(_0x3980bf,_0x5d33b1,_0x41ddff,_0x4e6fac){return _0x10e9(_0x5d33b1-_0x55a366._0x3e7c5e,_0x4e6fac);}return normalizeContent(_0x1d8d92)[_0x4d602b(0x40b,_0x2b719a._0x2240e6,0x404,_0x2b719a._0x5e8284)](_0x4db886=>_0x4db886[_0x4d602b(0x3d6,0x3e6,0x3c9,0x3d1)]==='text');}function isProviderStateCompatible(_0x1cfc04,_0x168e45){const _0x329416={_0x34b4ca:0x1b3,_0x5284b0:0x1bc,_0x2f41fa:0x1f2,_0x662381:0x1d6};function _0x50bec0(_0x491ef3,_0x4f94e1,_0x366de5,_0x3962c8){return _0x10e9(_0x3962c8- -0x1a,_0x491ef3);}const _0x8806ea=_0x1cfc04[_0x50bec0(0x1a9,0x193,_0x329416._0x34b4ca,0x1aa)]?.['originModelIdentity'];function _0x4599a2(_0x3c3e18,_0x5b96be,_0x295e34,_0x3e4b03){return _0x10e9(_0x295e34-0x308,_0x5b96be);}return _0x8806ea===void 0x0||_0x8806ea===_0x168e45['metadata'][_0x50bec0(_0x329416._0x5284b0,_0x329416._0x2f41fa,0x1d0,_0x329416._0x662381)]||_0x8806ea===_0x168e45['model'];}function normalizeMessage(_0x181556){const _0x5bfd09={_0x282a17:0x27,_0x388304:0x17,_0x44a566:0x12,_0xd590d9:0x16,_0x201193:0xf,_0x561692:0xc,_0x51793e:0xa,_0x15852d:0x21,_0x4c8b01:0x3b,_0xd38d2d:0x1},_0x4681c8={_0x28381a:0x1b2};function _0x5853b0(_0x1b427a,_0x34ad09,_0x55565b,_0x53e624){return _0x10e9(_0x55565b- -_0x4681c8._0x28381a,_0x34ad09);}function _0x33eeab(_0x5a774a,_0x2dfeac,_0x305b74,_0xadb5a7){return _0x10e9(_0x5a774a- -0x1e5,_0x2dfeac);}return{...typeof _0x181556['id']===_0x33eeab(-0x1e,-_0x5bfd09._0x282a17,-0x1,-_0x5bfd09._0x388304)?{'id':_0x181556['id']}:{},'role':_0x181556[_0x5853b0(_0x5bfd09._0x44a566,_0x5bfd09._0xd590d9,_0x5bfd09._0x201193,-_0x5bfd09._0x561692)],'content':normalizeContent(_0x181556[_0x5853b0(-0x4,_0x5bfd09._0x51793e,0x8,-0x2)]),..._0x181556['providerState']?{'providerState':structuredClone(_0x181556[_0x33eeab(-_0x5bfd09._0x15852d,-_0x5bfd09._0x4c8b01,-_0x5bfd09._0xd38d2d,-0xc)])}:{}};}function _0x10e9(_0x59e518,_0x100f8a){_0x59e518=_0x59e518-0x1b9;const _0x1de75b=_0x1de7();let _0x10e9df=_0x1de75b[_0x59e518];if(_0x10e9['Gxtedk']===undefined){var _0x19dcc1=function(_0x27e743){const _0x4a3db6='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x48f9b4='',_0x303135='';for(let _0x300632=0x0,_0x42073c,_0x1d8d92,_0x4db886=0x0;_0x1d8d92=_0x27e743['charAt'](_0x4db886++);~_0x1d8d92&&(_0x42073c=_0x300632%0x4?_0x42073c*0x40+_0x1d8d92:_0x1d8d92,_0x300632++%0x4)?_0x48f9b4+=String['fromCharCode'](0xff&_0x42073c>>(-0x2*_0x300632&0x6)):0x0){_0x1d8d92=_0x4a3db6['indexOf'](_0x1d8d92);}for(let _0x1cfc04=0x0,_0x168e45=_0x48f9b4['length'];_0x1cfc04<_0x168e45;_0x1cfc04++){_0x303135+='%'+('00'+_0x48f9b4['charCodeAt'](_0x1cfc04)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x303135);};_0x10e9['aLFJGY']=_0x19dcc1,_0x10e9['isjvWC']={},_0x10e9['Gxtedk']=!![];}const _0x403c00=_0x1de75b[0x0],_0x4965ba=_0x59e518+_0x403c00,_0x27a178=_0x10e9['isjvWC'][_0x4965ba];return!_0x27a178?(_0x10e9df=_0x10e9['aLFJGY'](_0x10e9df),_0x10e9['isjvWC'][_0x4965ba]=_0x10e9df):_0x10e9df=_0x27a178,_0x10e9df;}function compileRequest(_0x62bb06){const _0x11f8b1={_0x5a2f8b:0x4a,_0x40a81c:0x50,_0x26e411:0x13,_0x4e0d23:0x30,_0x429dcf:0x426,_0x4dff63:0x43a,_0x3e4100:0x452,_0x1b7fc4:0x437,_0x3f5a47:0x3a,_0x5af540:0x35,_0x19e94f:0x51,_0x2014a7:0x12,_0x447f31:0x5,_0x7bd439:0x43c,_0x316cf0:0x441,_0xbfafdc:0x469,_0x48499e:0x438,_0x48f635:0x420,_0x1ed187:0x435,_0x44b64d:0x42e},_0x40bfc2={_0x109c17:0x1ab},_0x392a94={_0x2d3df0:0x25e};function _0x2046f4(_0x5c5a46,_0x9c07a2,_0x4431d6,_0x2e1fc1){return _0x10e9(_0x2e1fc1-_0x392a94._0x2d3df0,_0x9c07a2);}function _0x95f230(_0x5a3e82,_0x521889,_0x2b20b9,_0x42ba9f){return _0x10e9(_0x5a3e82- -_0x40bfc2._0x109c17,_0x42ba9f);}return{'model':_0x62bb06[_0x95f230(0x4c,0x58,_0x11f8b1._0x5a2f8b,0x4b)]??'claude-sonnet-4-20250514',..._0x62bb06[_0x95f230(0x31,_0x11f8b1._0x40a81c,_0x11f8b1._0x26e411,_0x11f8b1._0x4e0d23)]!==void 0x0?{'max_tokens':_0x62bb06[_0x2046f4(_0x11f8b1._0x429dcf,0x444,0x430,_0x11f8b1._0x4dff63)]}:{},..._0x62bb06[_0x2046f4(_0x11f8b1._0x3e4100,0x423,_0x11f8b1._0x1b7fc4,0x443)]?{'reasoning':structuredClone(_0x62bb06[_0x95f230(_0x11f8b1._0x3f5a47,0x56,_0x11f8b1._0x5af540,_0x11f8b1._0x19e94f)])}:{},'system':normalizeSystem(_0x62bb06[_0x95f230(0xe,0x1d,_0x11f8b1._0x2014a7,_0x11f8b1._0x447f31)]),'messages':_0x62bb06[_0x2046f4(_0x11f8b1._0x7bd439,_0x11f8b1._0x316cf0,_0x11f8b1._0xbfafdc,0x44c)][_0x2046f4(_0x11f8b1._0x48499e,0x43d,0x43d,_0x11f8b1._0x48f635)](normalizeMessage),'tools':structuredClone(_0x62bb06[_0x2046f4(_0x11f8b1._0x48499e,_0x11f8b1._0x1ed187,_0x11f8b1._0x44b64d,0x43d)]??[]),'metadata':{'session_id':_0x62bb06['sessionId'],'turn_id':_0x62bb06['turnId']}};}function toChatRequest(_0x1b8520){const _0x28d3fa={_0x47dbf1:0x53d,_0x5224d2:0x54e,_0x3f6391:0x55f,_0x346791:0x127,_0x7398f2:0x14a,_0xd00fa9:0x130,_0x263e63:0x54d,_0x42e5b1:0x561,_0x3ba51a:0x124,_0x28f362:0x10f,_0x131db5:0x13e,_0x338b07:0x155,_0x21827a:0x121,_0x57fb65:0x532,_0x25da90:0x548,_0x29ef62:0x541,_0x123017:0x509,_0x5cb4c6:0x514,_0x408d68:0x513,_0x2e6d7d:0x51f,_0x4ff072:0x53d,_0x224039:0x538,_0x666f78:0x527,_0x2c8920:0x53a,_0x2183e6:0x526,_0x3bde71:0x519,_0x260e4f:0x563,_0x3b9046:0x52b,_0x102fb8:0x137,_0x349c02:0x150,_0x2ddf6e:0x51f,_0x1069ff:0x53b,_0x4d7fdc:0x546},_0x4ad887={_0x299876:0x303};function _0x4f5c7a(_0x27d616,_0x5e8373,_0x528107,_0x4baae1){return _0x10e9(_0x27d616- -_0x4ad887._0x299876,_0x528107);}function _0x3fa01e(_0xf3b427,_0x39ece1,_0x4fd7d0,_0x374e58){return _0x10e9(_0x4fd7d0-0x357,_0x39ece1);}return{'model':_0x1b8520[_0x3fa01e(0x549,_0x28d3fa._0x47dbf1,_0x28d3fa._0x5224d2,_0x28d3fa._0x3f6391)],..._0x1b8520[_0x4f5c7a(-_0x28d3fa._0x346791,-0x140,-0x128,-0x10b)]!==void 0x0?{'maxTokens':_0x1b8520['max_tokens']}:{},..._0x1b8520['reasoning']?{'reasoning':structuredClone(_0x1b8520['reasoning'])}:{},'system':structuredClone(_0x1b8520[_0x4f5c7a(-_0x28d3fa._0x7398f2,-0x12d,-_0x28d3fa._0xd00fa9,-0x137)]),'messages':structuredClone(_0x1b8520[_0x3fa01e(_0x28d3fa._0x263e63,0x564,0x545,_0x28d3fa._0x42e5b1)]),'tools':structuredClone(_0x1b8520[_0x4f5c7a(-_0x28d3fa._0x3ba51a,-_0x28d3fa._0x28f362,-0x114,-0x112)]),'metadata':{'sessionId':_0x1b8520['metadata'][_0x4f5c7a(-_0x28d3fa._0x131db5,-_0x28d3fa._0x338b07,-0x126,-_0x28d3fa._0x21827a)],'turnId':_0x1b8520[_0x3fa01e(0x53f,_0x28d3fa._0x57fb65,_0x28d3fa._0x25da90,_0x28d3fa._0x29ef62)][_0x3fa01e(_0x28d3fa._0x123017,_0x28d3fa._0x5cb4c6,_0x28d3fa._0x408d68,_0x28d3fa._0x2e6d7d)],..._0x1b8520[_0x3fa01e(_0x28d3fa._0x4ff072,_0x28d3fa._0x224039,0x548,0x562)][_0x3fa01e(0x51d,_0x28d3fa._0x666f78,0x526,0x516)]!==void 0x0?{'modelIdentity':_0x1b8520[_0x3fa01e(0x53e,_0x28d3fa._0x2c8920,_0x28d3fa._0x25da90,0x542)][_0x3fa01e(0x53b,0x537,_0x28d3fa._0x2183e6,_0x28d3fa._0x3bde71)]}:{},..._0x1b8520[_0x3fa01e(_0x28d3fa._0x260e4f,0x540,0x548,_0x28d3fa._0x3b9046)][_0x4f5c7a(-_0x28d3fa._0x102fb8,-0x118,-_0x28d3fa._0x349c02,-0x149)]!==void 0x0?{'pricingProviderId':_0x1b8520['metadata'][_0x3fa01e(0x50c,0x530,0x523,_0x28d3fa._0x2ddf6e)]}:{}},..._0x1b8520['outputFormat']?{'outputFormat':structuredClone(_0x1b8520[_0x3fa01e(_0x28d3fa._0x1069ff,0x559,0x53a,_0x28d3fa._0x4d7fdc)])}:{}};}function toModelRequest(_0x1428e0){const _0x104baa={_0x113ac5:0x445,_0x3e1099:0x440,_0x56beea:0x428,_0xec2af4:0x73,_0x52f225:0x5c,_0xd6c660:0x6e,_0x51abd8:0x91,_0x89c79a:0x77,_0x3f7d64:0x7b,_0x4bad94:0x40b,_0x52690d:0x442,_0xfd27ce:0x43d,_0x1e9228:0x413,_0x3f8524:0x3ff,_0x499135:0x403,_0x12330f:0x3fd,_0x87f2fa:0x425,_0x4c94a2:0x434,_0x246c8d:0x44c,_0x3bc543:0x71,_0x2f6e6a:0x79,_0x5943bd:0x8d,_0xeff992:0x43d,_0x220e10:0x451,_0x5f27b0:0x83,_0x46d0b0:0x8d,_0x5ee3e9:0x6b,_0x5262e0:0x79,_0x500090:0x91,_0x4ec76d:0xa0,_0x578793:0x455,_0x2794de:0x6a,_0x113d8a:0x4d,_0x39e44f:0x83,_0x1f8212:0x412,_0xe149a6:0x40c,_0x14e562:0x40f,_0x198414:0x419,_0x48c1e4:0x59},_0x2b429a={_0x264869:0x16e};function _0x3fc338(_0x444f27,_0x146335,_0xbbca93,_0x21bb3f){return _0x10e9(_0x146335-0x246,_0x21bb3f);}function _0x26105f(_0x5ad0d4,_0x2f4a72,_0x5ba781,_0x53d61e){return _0x10e9(_0x5ad0d4- -_0x2b429a._0x264869,_0x2f4a72);}return{'model':_0x1428e0[_0x3fc338(_0x104baa._0x113ac5,0x43d,_0x104baa._0x3e1099,_0x104baa._0x56beea)],..._0x1428e0[_0x26105f(_0x104baa._0xec2af4,0x5e,_0x104baa._0x52f225,0x78)]!==void 0x0?{'max_tokens':_0x1428e0[_0x26105f(_0x104baa._0xec2af4,_0x104baa._0xd6c660,_0x104baa._0x51abd8,0x70)]}:{},..._0x1428e0[_0x26105f(_0x104baa._0x89c79a,_0x104baa._0x3f7d64,0x92,0x7e)]?{'reasoning':structuredClone(_0x1428e0[_0x3fc338(_0x104baa._0x4bad94,0x42b,_0x104baa._0x52690d,_0x104baa._0xfd27ce)])}:{},'system':structuredClone(_0x1428e0[_0x3fc338(_0x104baa._0x1e9228,_0x104baa._0x3f8524,_0x104baa._0x499135,_0x104baa._0x12330f)]),'messages':structuredClone(_0x1428e0[_0x3fc338(_0x104baa._0x87f2fa,_0x104baa._0x4c94a2,0x444,_0x104baa._0x246c8d)]),'tools':structuredClone(_0x1428e0[_0x26105f(_0x104baa._0x3bc543,_0x104baa._0x2f6e6a,0x82,0x72)]),'metadata':{'session_id':_0x1428e0[_0x26105f(0x83,0x84,0x9c,_0x104baa._0x5943bd)][_0x3fc338(_0x104baa._0xeff992,0x43a,0x429,_0x104baa._0x220e10)],'turn_id':_0x1428e0[_0x26105f(_0x104baa._0x5f27b0,0x82,_0x104baa._0x46d0b0,_0x104baa._0x5ee3e9)][_0x26105f(0x67,0x5d,0x77,_0x104baa._0x5262e0)],..._0x1428e0['metadata'][_0x26105f(0x82,0x70,_0x104baa._0x500090,_0x104baa._0x4ec76d)]!==void 0x0?{'model_identity':_0x1428e0['metadata']['modelIdentity']}:{},..._0x1428e0[_0x3fc338(_0x104baa._0x578793,0x437,0x42a,0x42d)][_0x26105f(0x58,_0x104baa._0x2794de,_0x104baa._0x113d8a,0x45)]!==void 0x0?{'pricing_provider_id':_0x1428e0[_0x26105f(_0x104baa._0x39e44f,0x7e,0xa3,_0x104baa._0x500090)][_0x3fc338(_0x104baa._0x1f8212,_0x104baa._0xe149a6,_0x104baa._0x14e562,_0x104baa._0x198414)]}:{}},..._0x1428e0[_0x26105f(0x75,0x63,0x5e,_0x104baa._0x48c1e4)]?{'outputFormat':structuredClone(_0x1428e0[_0x26105f(0x75,0x77,_0x104baa._0x48c1e4,0x67)])}:{}};}function toProviderModelRequest(_0x220727){const _0x17b514={_0x446bac:0x3ee,_0x3e8c84:0x3b9,_0x8b4256:0x3e2,_0x1f1039:0x247,_0x1609d0:0x260,_0x55633f:0x3c0,_0x3529c6:0x3af,_0x16691a:0x3d8},_0x38b622={_0x143684:0xa8};function _0x2e3e38(_0x342c76,_0x3f23b3,_0x5c7c48,_0x39160e){return _0x10e9(_0x342c76-0x1e1,_0x3f23b3);}function _0x5a5f87(_0x4e7451,_0x14deab,_0x2c9f8c,_0x5346fd){return _0x10e9(_0x2c9f8c-_0x38b622._0x143684,_0x14deab);}return{'model':_0x220727[_0x2e3e38(0x3d8,0x3d2,_0x17b514._0x446bac,_0x17b514._0x3e8c84)],..._0x220727['maxTokens']!==void 0x0?{'max_tokens':_0x220727[_0x2e3e38(0x3c2,_0x17b514._0x8b4256,0x3cc,0x3d6)]}:{},'system':structuredClone(_0x220727[_0x5a5f87(0x262,_0x17b514._0x1f1039,0x261,_0x17b514._0x1609d0)]),'messages':structuredClone(_0x220727[_0x5a5f87(0x28c,0x28d,0x296,0x287)]),'tools':structuredClone(_0x220727[_0x2e3e38(_0x17b514._0x55633f,0x3c0,_0x17b514._0x3529c6,_0x17b514._0x16691a)])};}function toChatResponse(_0x597aab){const _0x2ebc2a={_0x5151d3:0x67,_0x42836e:0x69,_0x47f58a:0x9,_0x3fe4b7:0x28,_0x5ee428:0x27,_0x386c99:0x23,_0x31f002:0x18,_0x2b3713:0x1,_0x18b24f:0x16,_0x5246b3:0x1b,_0x467f14:0x52,_0x193dcf:0x7e,_0x550401:0x62,_0x5f218a:0x14,_0x2e9b05:0x13,_0x25d7dd:0x22,_0x4f8c19:0x33,_0x19549d:0x1a,_0x17fb55:0x33,_0x276e39:0x4,_0x4fce71:0x6},_0x3cc1b6={_0x488bcc:0x1fa};function _0x3d8e53(_0x5a3aee,_0xf92c60,_0x4f3682,_0xcb3e79){return _0x10e9(_0x5a3aee- -_0x3cc1b6._0x488bcc,_0xf92c60);}function _0x37cd7b(_0x56aaf7,_0x5e6082,_0x3600dc,_0x1e4ad3){return _0x10e9(_0x3600dc- -0x244,_0x5e6082);}return{'id':_0x597aab['id'],'content':structuredClone(_0x597aab['content']),'stopReason':_0x597aab[_0x37cd7b(-0x63,-_0x2ebc2a._0x5151d3,-0x76,-_0x2ebc2a._0x42836e)],'usage':{'inputTokens':_0x597aab[_0x3d8e53(-0x18,-0x11,-_0x2ebc2a._0x47f58a,-0x3)][_0x3d8e53(-_0x2ebc2a._0x3fe4b7,-_0x2ebc2a._0x5ee428,-_0x2ebc2a._0x386c99,-0x3c)],'outputTokens':_0x597aab[_0x3d8e53(-0x18,-_0x2ebc2a._0x31f002,-_0x2ebc2a._0x2b3713,0x5)][_0x3d8e53(-_0x2ebc2a._0x18b24f,-0x11,-_0x2ebc2a._0x5246b3,-0x17)],..._0x597aab[_0x37cd7b(-_0x2ebc2a._0x467f14,-_0x2ebc2a._0x193dcf,-_0x2ebc2a._0x550401,-0x79)][_0x3d8e53(-0x1a,-0x11,-_0x2ebc2a._0x5f218a,-_0x2ebc2a._0x2e9b05)]!==void 0x0?{'reasoningTokens':_0x597aab[_0x3d8e53(-0x18,-_0x2ebc2a._0x25d7dd,0x6,-_0x2ebc2a._0x4f8c19)][_0x3d8e53(-_0x2ebc2a._0x19549d,-_0x2ebc2a._0x17fb55,-_0x2ebc2a._0x276e39,_0x2ebc2a._0x4fce71)]}:{}},..._0x597aab['providerState']?{'providerState':structuredClone(_0x597aab['providerState'])}:{}};}function _0x1de7(){const _0x53f9ac=['Bwf4x3rVA2vUCW','mJe2sNniqvPZ','kgvUy3j5ChrLzcbYzwfZB25PBMCP','Dg9VBhm','CMvHC29UAw5Nx3rVA2vUCW','Bwf4vg9Rzw5Z','DxnHz2u','B3v0Chv0rM9YBwf0','B3v0Chv0x3rVA2vUCW','CMvHC29UAw5N','DxnLCG','yw50AhjVCgLJx3rOAw5RAw5N','zxjYB3i','zMLSDgvY','mte5nJa0sLPzue5Y','ChvZAa','ywrK','mtmWmtC2menTC2HhDa','BwvZC2fNzxm','B3v0Chv0vg9Rzw5Z','Bw9KzwXjzgvUDgL0Eq','Bwv0ywrHDge','C3rHDhvZ','nJC0mJK4nevYshjkzW','C2vZC2LVBKLK','mtG0otG5nLL5zLDpCG','AxnbCNjHEq','Bw9KzwW','DhjPBq','C3LZDgvT','y29UDgvUDa','Dg9VBf9Yzxn1Bhq','DhvYBL9Pza','mtiYnZy1nJbZBM5brxu','khjLzgfJDgvKihjLyxnVBMLUzYK','B3v0Chv0','B3bLBMfPx3jLyxnVBMLUzW','CM9Szq','BwfW','zw5JCNLWDgvKq29UDgvUDa','ChjVDMLKzxjtDgf0zq','C2vZC2LVBL9Pza','ChjPy2LUz1bYB3zPzgvYswq','C3rYAw5N','mJm5nw9lB1brta','Dg9VBf91C2u','y2fSBeLK','BwvZC2fNzq','ChjPy2LUz19WCM92AwrLCL9Pza','Dg9VBf91C2vFAwq','C3rVCf9YzwfZB24','Bw9KzwXFAwrLBNrPDhK','AM9PBG','ntbYCfLVBNa','Aw5WDxrFDg9Rzw5Z','DgHPBMTPBMC','nKDOrfrKsa','DhvYBKLK','C3rVCfjLyxnVBG','yxnZAxn0yw50','DhLWzq','ntyYnJG4mg1tBhrKCa','Dgv4Da','BgvUz3rO'];_0x1de7=function(){return _0x53f9ac;};return _0x1de7();}function toModelResponse(_0xcb00aa){const _0x5a4112={_0xa3b5c8:0x2b6,_0x578899:0x2ce,_0x2c3868:0x2b5,_0x3199d8:0x2f3,_0x252fa8:0x383,_0x528214:0x386,_0x586d76:0x396,_0x13611f:0x39f,_0x9bfb3d:0x2e0,_0x4d796c:0x2f9,_0x51b098:0x2ee,_0x1c66e5:0x2ed,_0x2c3e41:0x2e0,_0x561513:0x2fb,_0x48a052:0x3b1,_0x47b014:0x3a0,_0x30c53e:0x392,_0x4a898d:0x38f,_0x3b1af6:0x374,_0x21e616:0x2c2,_0x20dcb0:0x2da},_0x4f240c={_0x4479a1:0x1b0};function _0x420642(_0x51b406,_0x3c1925,_0x92c84f,_0x36ecda){return _0x10e9(_0x36ecda-_0x4f240c._0x4479a1,_0x92c84f);}function _0x440caa(_0x1b5dfe,_0x48e23e,_0x60adca,_0x249903){return _0x10e9(_0x60adca-0xfe,_0x249903);}return{'id':_0xcb00aa['id'],'type':_0x440caa(_0x5a4112._0xa3b5c8,_0x5a4112._0x578899,0x2c9,_0x5a4112._0x2c3868),'role':_0x440caa(_0x5a4112._0x3199d8,0x2e7,0x2d5,0x2bf),'content':structuredClone(_0xcb00aa[_0x420642(_0x5a4112._0x252fa8,0x35e,0x359,0x36a)]),'stop_reason':_0xcb00aa[_0x420642(0x3a5,_0x5a4112._0x528214,_0x5a4112._0x586d76,0x386)],'stop_sequence':null,'usage':{'input_tokens':_0xcb00aa[_0x420642(0x3b2,_0x5a4112._0x13611f,0x3ab,0x392)]['inputTokens'],'output_tokens':_0xcb00aa[_0x440caa(0x2eb,0x2f8,_0x5a4112._0x9bfb3d,_0x5a4112._0x4d796c)][_0x440caa(_0x5a4112._0x51b098,0x2f5,_0x5a4112._0x1c66e5,0x2e1)],..._0xcb00aa[_0x440caa(0x2d8,0x2f1,_0x5a4112._0x2c3e41,_0x5a4112._0x561513)]['reasoningTokens']!==void 0x0?{'reasoning_tokens':_0xcb00aa[_0x420642(_0x5a4112._0x586d76,_0x5a4112._0x48a052,_0x5a4112._0x47b014,_0x5a4112._0x30c53e)]['reasoningTokens']}:{}},..._0xcb00aa[_0x420642(_0x5a4112._0x4a898d,0x383,0x36d,_0x5a4112._0x3b1af6)]?{'providerState':structuredClone(_0xcb00aa[_0x440caa(0x2bb,0x2ad,_0x5a4112._0x21e616,_0x5a4112._0x20dcb0)])}:{}};}function responseToAssistantMessage(_0x517739){const _0x3ef81a={_0x1594e0:0x15e,_0x4a2904:0x152,_0x2c7a98:0x147,_0x52f67a:0x160},_0x3ea732={_0x521cb7:0x2e8};function _0x1f68e2(_0x32fe5d,_0x5dabe1,_0x28909c,_0x553ce0){return _0x10e9(_0x5dabe1- -0x30c,_0x28909c);}function _0x34ce9e(_0x598dd6,_0x4257cf,_0x49d1be,_0x289c95){return _0x10e9(_0x289c95-_0x3ea732._0x521cb7,_0x4257cf);}return{'role':'assistant','content':normalizeContent(_0x517739[_0x1f68e2(-_0x3ef81a._0x1594e0,-_0x3ef81a._0x4a2904,-_0x3ef81a._0x2c7a98,-0x162)]),..._0x517739[_0x1f68e2(-_0x3ef81a._0x52f67a,-0x148,-0x15b,-0x12a)]?{'providerState':structuredClone(_0x517739['providerState'])}:{}};}function createReasoningMessage(_0x2a3515){const _0x3242b5={_0x578d3e:0x58a,_0x3fa1a0:0x5a5,_0x3526b1:0x574,_0xcf52c1:0x2e,_0x3dcd1b:0x8,_0x1fceb1:0x28},_0x5c6626=normalizeContent(_0x2a3515?.['content'])['filter'](_0x566f07=>{function _0x14e93f(_0x166db4,_0x290e5d,_0x512b5a,_0x5ec6a4){return _0x10e9(_0x5ec6a4-0x17c,_0x166db4);}return _0x566f07[_0x14e93f(0x372,0x35e,0x351,0x354)]==='anthropic_redacted_thinking'||_0x566f07['type']==='anthropic_thinking'||_0x566f07['type']==='openai_reasoning';});function _0x16f129(_0x3f2638,_0x7f032c,_0x4e12fd,_0x51ae12){return _0x10e9(_0x3f2638-0x3af,_0x7f032c);}if(_0x5c6626[_0x16f129(_0x3242b5._0x578d3e,_0x3242b5._0x3fa1a0,0x59f,_0x3242b5._0x3526b1)]===0x0)return void 0x0;function _0x7e1d34(_0x3ee49d,_0x3ce22a,_0xc05dd0,_0x514b3c){return _0x10e9(_0x514b3c- -0x1c5,_0x3ee49d);}return{'role':_0x7e1d34(_0x3242b5._0xcf52c1,-_0x3242b5._0x3dcd1b,_0x3242b5._0x1fceb1,0x12),'content':_0x5c6626};}function createAssistantTextMessage(_0x126d18){const _0x893338={_0x127101:0x501,_0x35e649:0x4e5,_0x6e1f8:0x517,_0x4946f0:0x49d,_0x1de08c:0x4a1,_0x312af0:0x47f,_0x6703f:0x49a,_0x53cfa8:0x522,_0x580fcf:0x53e,_0x4d8562:0x522,_0x589ef4:0x48b,_0x1d11c3:0x47c},_0x5e1859={_0x42ab3b:0x2b4},_0x1cc40a={_0x2c5e80:0x347},_0x2cee8c={_0x26fcf6:0x299,_0x16ba55:0x27d,_0x3cc7a7:0x1b4,_0x4dfb97:0x1e6},_0x19036f={_0x2f3ec2:0x20f},_0x4d984c=normalizeContent(_0x126d18?.[_0x42c738(_0x893338._0x127101,_0x893338._0x35e649,_0x893338._0x6e1f8,0x50e)])[_0x592d90(_0x893338._0x4946f0,_0x893338._0x1de08c,_0x893338._0x312af0,_0x893338._0x6703f)](_0x1c10f5=>{const _0x25fb22={_0x5729ef:0x153};function _0x5bbd72(_0x4922db,_0x5ab503,_0x2308d7,_0x278e46){return _0x592d90(_0x2308d7- -0x654,_0x5ab503-0x1cf,_0x5ab503,_0x278e46-_0x25fb22._0x5729ef);}function _0x39cfa7(_0x425409,_0x3ad461,_0x25c77f,_0x432493){return _0x592d90(_0x432493- -_0x19036f._0x2f3ec2,_0x3ad461-0x6a,_0x3ad461,_0x432493-0x146);}return _0x1c10f5[_0x39cfa7(0x27a,_0x2cee8c._0x26fcf6,_0x2cee8c._0x26fcf6,_0x2cee8c._0x16ba55)]===_0x5bbd72(-_0x2cee8c._0x3cc7a7,-0x1c2,-0x1c6,-_0x2cee8c._0x4dfb97);});if(_0x4d984c[_0x42c738(_0x893338._0x53cfa8,0x53e,_0x893338._0x580fcf,_0x893338._0x4d8562)]===0x0)return void 0x0;function _0x42c738(_0xbb7f93,_0x1af22d,_0x531cea,_0x422c47){return _0x10e9(_0xbb7f93-_0x1cc40a._0x2c5e80,_0x531cea);}function _0x592d90(_0x43164d,_0xc4cc88,_0x3be844,_0xf6e92a){return _0x10e9(_0x43164d-_0x5e1859._0x42ab3b,_0x3be844);}return{'role':_0x592d90(_0x893338._0x589ef4,0x481,_0x893338._0x1d11c3,0x491),'content':_0x4d984c};}function createToolUseMessage(_0x3ac23c){const _0x32c84d={_0x175f46:0x389,_0x1c5380:0x3a8,_0x457037:0x385,_0x1f0310:0x235,_0x5c4cbb:0x232,_0x59c344:0x23f,_0x57cf70:0x233},_0x2eaa0b={_0x5b58d1:0x57},_0x4e239d={_0x1ae1ee:0x367},_0xaa5fd2={_0x582b5b:0x2},_0x5141fd=normalizeContent(_0x3ac23c?.[_0x45dca0(0x384,0x38c,_0x32c84d._0x175f46,0x36f)])[_0x45dca0(_0x32c84d._0x1c5380,_0x32c84d._0x457037,0x3ac,0x39e)](_0x2555a7=>{function _0x2ca419(_0x1da9f8,_0x2c0800,_0x434a06,_0x25c34d){return _0x45dca0(_0x1da9f8-0xf4,_0x2c0800-0x1da,_0x434a06,_0x25c34d- -_0xaa5fd2._0x582b5b);}return _0x2555a7['type']===_0x2ca419(_0x4e239d._0x1ae1ee,0x37b,0x378,0x37c);});if(_0x5141fd[_0x9ac18f(_0x32c84d._0x1f0310,0x232,_0x32c84d._0x5c4cbb,_0x32c84d._0x59c344)]===0x0)return void 0x0;function _0x9ac18f(_0x409e94,_0x2210dd,_0x48d093,_0x35f843){return _0x10e9(_0x2210dd-_0x2eaa0b._0x5b58d1,_0x35f843);}function _0x45dca0(_0x479f6c,_0x89605c,_0x47741c,_0x2a4a8b){return _0x10e9(_0x2a4a8b-0x1b5,_0x47741c);}return{'role':_0x9ac18f(_0x32c84d._0x57cf70,0x22e,0x214,0x24e),'content':_0x5141fd};}function getTextFromMessage(_0x3cfb91){const _0xf8f184={_0x2f2595:0x4a,_0x1ebeaa:0x5f,_0x8a3371:0x7a,_0xb8b5eb:0x37,_0x1b805d:0x38,_0x6b5de8:0x68,_0x41898e:0x52},_0x39349d={_0x378e46:0x222};function _0x31c5a2(_0x1429f3,_0x54c53f,_0x123350,_0x3e918a){return _0x10e9(_0x54c53f- -0x163,_0x123350);}function _0x2107d1(_0x291e07,_0x2c94ac,_0x45a1d2,_0x1305f9){return _0x10e9(_0x1305f9- -_0x39349d._0x378e46,_0x2c94ac);}return normalizeContent(_0x3cfb91?.['content'])[_0x2107d1(-0x2f,-0x43,-_0xf8f184._0x2f2595,-0x39)](_0x3394d4=>_0x3394d4['type']==='text')[_0x31c5a2(0x5c,_0xf8f184._0x1ebeaa,_0xf8f184._0x8a3371,0x5e)](_0x167303=>_0x167303[_0x31c5a2(0x75,0x77,0x7c,0x8c)])[_0x2107d1(-_0xf8f184._0xb8b5eb,-_0xf8f184._0x1b805d,-_0xf8f184._0x6b5de8,-_0xf8f184._0x41898e)]('\x0a');}function getReasoningTextFromMessage(_0x369bf1){const _0x1a5dc6={_0x2db545:0x57,_0x443560:0x55,_0x5ef06a:0x4e},_0x10270d={_0x5e97d2:0x285,_0x479a5c:0x273,_0x11d9f1:0x258,_0x2ac594:0x26a,_0xf43bae:0x267,_0x4649cc:0x23a,_0x47328a:0x26c,_0x1decb8:0x25e,_0x511e19:0x23e,_0x15d7ba:0x260,_0x147c9b:0x273,_0x52ea04:0x243,_0xd9dadd:0x27b,_0x990673:0x292,_0x3f6df2:0x25d,_0x59f574:0x23d,_0x4122af:0x241,_0x2dae87:0x25b,_0xb4483f:0x25b,_0x104636:0x263,_0x3701ef:0x26e,_0x387f8b:0x24c,_0x2cad4d:0x265,_0x2e377c:0x256,_0x4c2a74:0x24d,_0x50cf34:0x25e,_0x2165df:0x26c,_0x463af9:0x27e,_0x511e0f:0x27a,_0x516235:0x27d,_0x4f512d:0x27c,_0x524d8c:0x25e,_0x2dcf89:0x27f,_0x3611d9:0x278,_0x5ec5f6:0x28d,_0x4e5f2c:0x272},_0x169c97={_0x17916b:0xa3};function _0xda50ba(_0x2defb6,_0x485cda,_0x2228cf,_0x3f0f35){return _0x10e9(_0x3f0f35- -0x182,_0x485cda);}return normalizeContent(_0x369bf1?.['content'])['flatMap'](_0x175000=>{if(_0x175000[_0x568d66(0x27b,_0x10270d._0x5e97d2,_0x10270d._0x479a5c,0x27e)]===_0x157039(_0x10270d._0x11d9f1,0x252,_0x10270d._0x2ac594,0x256))return _0x175000[_0x157039(_0x10270d._0xf43bae,_0x10270d._0x4649cc,0x256,_0x10270d._0x47328a)]['trim']()[_0x157039(0x27e,0x264,_0x10270d._0x1decb8,_0x10270d._0x511e19)]>0x0?[_0x175000[_0x157039(_0x10270d._0x15d7ba,_0x10270d._0x147c9b,0x256,_0x10270d._0x52ea04)]]:[];if(_0x175000[_0x568d66(_0x10270d._0xd9dadd,_0x10270d._0x990673,_0x10270d._0x3f6df2,0x27a)]==='anthropic_redacted_thinking')return[_0x157039(0x24c,_0x10270d._0x59f574,_0x10270d._0x4122af,_0x10270d._0x2dae87)];if(_0x175000[_0x157039(0x24e,0x254,_0x10270d._0xb4483f,0x275)]!==_0x568d66(_0x10270d._0x104636,_0x10270d._0x3701ef,_0x10270d._0x387f8b,0x276))return[];function _0x568d66(_0x5b2a38,_0x4df8f2,_0x304a23,_0x273f76){return _0x10e9(_0x5b2a38-_0x169c97._0x17916b,_0x4df8f2);}const _0x35fe56=_0x175000['summary'][_0x568d66(_0x10270d._0x2cad4d,_0x10270d._0x2e377c,_0x10270d._0x4c2a74,_0x10270d._0x50cf34)](_0x5f04f7=>_0x5f04f7[_0x157039(0x273,0x248,0x25d,0x257)])[_0x157039(_0x10270d._0x2e377c,_0x10270d._0x3701ef,_0x10270d._0x2165df,0x260)](_0x460afb=>_0x460afb[_0x568d66(0x29b,0x2ad,0x28b,0x2b3)]()[_0x568d66(0x27e,0x263,0x294,0x293)]>0x0)[_0x568d66(0x273,0x27f,0x286,0x27b)]('\x0a\x0a');if(_0x35fe56[_0x568d66(_0x10270d._0x463af9,0x265,_0x10270d._0x511e0f,0x265)]>0x0)return[_0x35fe56];if(_0x175000[_0x568d66(_0x10270d._0x516235,_0x10270d._0x4f512d,0x26a,_0x10270d._0x524d8c)]&&_0x175000[_0x568d66(_0x10270d._0x516235,_0x10270d._0x511e0f,0x29c,0x26d)]['trim']()[_0x568d66(_0x10270d._0x463af9,0x27e,_0x10270d._0xd9dadd,0x266)]>0x0)return[_0x175000[_0x568d66(0x27d,_0x10270d._0x2dcf89,_0x10270d._0x3611d9,_0x10270d._0x5ec5f6)]];function _0x157039(_0x3618ce,_0x369fac,_0x158417,_0x1623b4){return _0x10e9(_0x158417-0x83,_0x1623b4);}return _0x175000[_0x568d66(0x266,_0x10270d._0x4e5f2c,0x26a,0x26c)]?[_0x568d66(0x281,0x295,_0x10270d._0x463af9,0x295)]:[];})[_0xda50ba(_0x1a5dc6._0x2db545,0x5f,_0x1a5dc6._0x443560,_0x1a5dc6._0x5ef06a)]('\x0a\x0a');}function getToolUseBlocks(_0x3b4ed9){const _0x42737d={_0x205627:0x3c8,_0x6ea9eb:0x3cf,_0x40753d:0x3e1,_0x5367cb:0x40c},_0x3d0f34={_0x1f7d9e:0x1fc};function _0x469422(_0x1cd164,_0x1f6470,_0x2485d2,_0x51ba6d){return _0x10e9(_0x2485d2-_0x3d0f34._0x1f7d9e,_0x1f6470);}function _0x22d685(_0x86dd06,_0x1d83b6,_0x1b4f46,_0x4892f6){return _0x10e9(_0x1b4f46-0x215,_0x1d83b6);}return normalizeContent(_0x3b4ed9?.[_0x22d685(_0x42737d._0x205627,0x3b8,_0x42737d._0x6ea9eb,_0x42737d._0x6ea9eb)])[_0x22d685(_0x42737d._0x40753d,0x3e0,0x3fe,_0x42737d._0x5367cb)](_0x3e8937=>_0x3e8937[_0x22d685(0x3de,0x3d1,0x3ed,0x3e9)]===_0x469422(0x3aa,0x3dc,0x3c5,0x3d8));}function getToolResultBlocks(_0x20e0d2){const _0x192c13={_0x1b5a6f:0x52a,_0x1152ea:0x545},_0x3a2bde={_0x508c31:0x179};function _0x23928f(_0x128420,_0x28225f,_0x1b2a63,_0x4de056){return _0x10e9(_0x28225f- -_0x3a2bde._0x508c31,_0x128420);}function _0x303dbd(_0x2f8f3d,_0x26a507,_0x20324a,_0x164df4){return _0x10e9(_0x20324a-0x35c,_0x164df4);}return normalizeContent(_0x20e0d2?.[_0x303dbd(0x51b,0x52c,0x516,_0x192c13._0x1b5a6f)])[_0x303dbd(0x541,0x530,0x545,_0x192c13._0x1152ea)](_0x5b57d8=>_0x5b57d8[_0x303dbd(0x53a,0x51f,0x534,0x52f)]===_0x23928f(0x50,0x42,0x48,0x33));}function createToolResultUserMessage(_0xbe7142){const _0x3b5f9f={_0x5c4c2c:0x455,_0x531392:0x436},_0x5a9b85={_0x2abd55:0x1dd,_0x3b6706:0xe9,_0x5c3356:0xf7,_0x1d1322:0x1cc,_0x3fb433:0x1dc,_0x182abd:0x1f3,_0x2f7ef4:0xd4,_0x43b219:0xee,_0x74487e:0x1ff,_0x548f49:0x209,_0x475d00:0x225},_0x9e8910={_0x3c262c:0x274};function _0x4cda22(_0xbe4782,_0x36e1d1,_0x48b42f,_0xb4b53){return _0x10e9(_0xb4b53-_0x9e8910._0x3c262c,_0xbe4782);}return{'role':'user','content':_0xbe7142[_0x4cda22(_0x3b5f9f._0x5c4c2c,0x427,0x41f,_0x3b5f9f._0x531392)](_0x45751a=>{const _0x1d59f0={_0x5d9e8b:0x12b};function _0x4a0a04(_0x27b51f,_0x333fc4,_0x349e47,_0x103fbf){return _0x4cda22(_0x103fbf,_0x333fc4-0x174,_0x349e47-0x11,_0x349e47- -0x35f);}function _0x51795f(_0x4ac8ba,_0x4cf32c,_0x30f662,_0x50eca5){return _0x4cda22(_0x50eca5,_0x4cf32c-0x1aa,_0x30f662-_0x1d59f0._0x5d9e8b,_0x30f662- -0x252);}return{'type':_0x51795f(0x1e5,0x1cc,_0x5a9b85._0x2abd55,0x1f2),'tool_use_id':_0x45751a[_0x4a0a04(_0x5a9b85._0x3b6706,_0x5a9b85._0x5c3356,0xdf,0xd7)],'content':_0x45751a[_0x51795f(0x1c6,_0x5a9b85._0x1d1322,_0x5a9b85._0x3fb433,_0x5a9b85._0x182abd)]??_0x45751a[_0x4a0a04(_0x5a9b85._0x2f7ef4,0xde,_0x5a9b85._0x2f7ef4,_0x5a9b85._0x43b219)],'is_error':_0x45751a[_0x4a0a04(0x104,0xf6,0x107,0xec)]===_0x51795f(_0x5a9b85._0x74487e,_0x5a9b85._0x548f49,0x20a,_0x5a9b85._0x475d00)};})};}var INTERRUPTED_TOOL_RESULT_TEXT='Tool\x20execution\x20was\x20interrupted\x20before\x20completion\x20and\x20produced\x20no\x20result.';function synthesizeMissingToolResults(_0xa599e0){const _0x3b011c={_0x59df51:0x37d,_0x1f19dc:0x368,_0x3de91f:0x342,_0x248c26:0x34c,_0xf831ca:0x166,_0x5d354c:0x168,_0x405092:0x359,_0x33fa51:0x35c,_0x55b475:0x17c,_0x1eb642:0x177,_0x4e5fb7:0x35a,_0x370d06:0x372,_0x4d22b1:0x191,_0x3459ba:0x36b,_0x274e1f:0x35d},_0x57745b={_0x293a06:0x353},_0x26f2a7=new Set();function _0x530d35(_0x2e48b0,_0x5a25eb,_0x246925,_0x293903){return _0x10e9(_0x246925- -_0x57745b._0x293a06,_0x5a25eb);}function _0x127e0f(_0x5e2268,_0x599f3b,_0x1075c8,_0x308c5a){return _0x10e9(_0x599f3b-0x17f,_0x1075c8);}for(const _0x40a938 of _0xa599e0){for(const _0x2eb7f5 of getToolResultBlocks(_0x40a938)){_0x26f2a7[_0x127e0f(_0x3b011c._0x59df51,0x36b,0x35c,_0x3b011c._0x1f19dc)](_0x2eb7f5[_0x127e0f(_0x3b011c._0x3de91f,_0x3b011c._0x248c26,0x341,0x367)]);}}const _0x507769=[];for(const _0x3cebf8 of _0xa599e0){_0x507769[_0x530d35(-0x184,-_0x3b011c._0xf831ca,-_0x3b011c._0x5d354c,-0x188)](_0x3cebf8);const _0x579475=getToolUseBlocks(_0x3cebf8)[_0x127e0f(_0x3b011c._0x405092,_0x3b011c._0x1f19dc,0x374,_0x3b011c._0x33fa51)](_0x175985=>!_0x26f2a7['has'](_0x175985['id']));if(_0x579475[_0x530d35(-_0x3b011c._0x55b475,-_0x3b011c._0x1eb642,-0x178,-0x15c)]===0x0)continue;_0x507769[_0x127e0f(0x369,0x36a,_0x3b011c._0x4e5fb7,0x350)]({'role':_0x127e0f(0x36f,0x365,0x370,_0x3b011c._0x370d06),'content':_0x579475[_0x530d35(-0x179,-0x190,-_0x3b011c._0x4d22b1,-0x1ab)](_0x5520a8=>({'type':'tool_result','tool_use_id':_0x5520a8['id'],'content':INTERRUPTED_TOOL_RESULT_TEXT,'is_error':!![]}))});for(const _0x328883 of _0x579475){_0x26f2a7[_0x127e0f(0x363,_0x3b011c._0x3459ba,0x357,_0x3b011c._0x274e1f)](_0x328883['id']);}}return _0x507769;}export{createTextBlock,normalizeTextBlock,normalizeContent,normalizeSystem,isProviderStateCompatible,normalizeMessage,compileRequest,toChatRequest,toModelRequest,toProviderModelRequest,toChatResponse,toModelResponse,responseToAssistantMessage,createReasoningMessage,createAssistantTextMessage,createToolUseMessage,getTextFromMessage,getReasoningTextFromMessage,getToolUseBlocks,getToolResultBlocks,createToolResultUserMessage,INTERRUPTED_TOOL_RESULT_TEXT,synthesizeMissingToolResults};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x494dd7,_0x3c7f69){const _0x459585={_0x56b902:0x1df,_0xab3b40:0x1ef,_0x4d47a3:0x24c,_0x259451:0x1b5,_0x51fbbf:0x1e0,_0x1867e1:0x1f2,_0xef80df:0x94,_0xc240f1:0x2f,_0x2d853e:0x1d,_0x3d585e:0x1c,_0x39a95c:0x1e6,_0x44f42b:0x24,_0x3c5829:0x5a,_0x2fb5a2:0x52,_0x3b1c38:0xb5,_0x547e39:0x15,_0xdf3b97:0x4f,_0x34c6ca:0x79,_0x536295:0x66,_0x1f5582:0x3c,_0x289819:0x187,_0x1536b3:0x1df,_0x17a105:0x235,_0x1a56c8:0x9c,_0x4bc8d5:0x59,_0xfbc978:0x64},_0x86f11={_0x9d9724:0xfb},_0x1d8c22={_0x78eba0:0xda};function _0x4f6589(_0x8faff,_0x8ae406,_0x594c5d,_0x24bd54){return _0x63b3(_0x594c5d- -_0x1d8c22._0x78eba0,_0x8ae406);}const _0x41b76e=_0x494dd7();function _0x194b6a(_0x39b8fd,_0xad0f80,_0x5f56d8,_0x471c53){return _0x63b3(_0x471c53-_0x86f11._0x9d9724,_0xad0f80);}while(!![]){try{const _0x2d894b=-parseInt(_0x194b6a(_0x459585._0x56b902,_0x459585._0xab3b40,0x23b,_0x459585._0x4d47a3))/0x1*(-parseInt(_0x194b6a(_0x459585._0x259451,_0x459585._0x51fbbf,0x1dd,_0x459585._0x1867e1))/0x2)+parseInt(_0x4f6589(0xd4,_0x459585._0xef80df,0x72,0xbe))/0x3*(parseInt(_0x4f6589(-_0x459585._0xc240f1,-_0x459585._0x2d853e,-_0x459585._0x3d585e,-0x2a))/0x4)+parseInt(_0x194b6a(0x1f4,0x22f,0x227,_0x459585._0x39a95c))/0x5*(-parseInt(_0x4f6589(_0x459585._0x44f42b,-_0x459585._0x3c5829,-0x4b,-_0x459585._0x2fb5a2))/0x6)+-parseInt(_0x4f6589(_0x459585._0x3b1c38,0x78,0x47,0x5a))/0x7*(parseInt(_0x4f6589(_0x459585._0x3d585e,-0x39,-_0x459585._0x547e39,_0x459585._0xdf3b97))/0x8)+-parseInt(_0x4f6589(-_0x459585._0x34c6ca,-_0x459585._0x536295,-0x2e,_0x459585._0x1f5582))/0x9+-parseInt(_0x194b6a(0x213,0x1a2,_0x459585._0x289819,_0x459585._0x1536b3))/0xa*(parseInt(_0x194b6a(_0x459585._0x17a105,0x23d,0x262,0x231))/0xb)+parseInt(_0x4f6589(-_0x459585._0x1a56c8,-0x5d,-_0x459585._0x4bc8d5,-_0x459585._0xfbc978))/0xc;if(_0x2d894b===_0x3c7f69)break;else _0x41b76e['push'](_0x41b76e['shift']());}catch(_0x45763f){_0x41b76e['push'](_0x41b76e['shift']());}}}(_0x26cd,0xb8c2a));import{withEstimatedModelCost}from'./chunk-GAZGO6N7.js';import{createAssistantTextMessage,createReasoningMessage,createToolResultUserMessage,createToolUseMessage,getToolUseBlocks,normalizeMessage,normalizeSystem,responseToAssistantMessage,synthesizeMissingToolResults}from'./chunk-YNOIG4FD.js';import{TurnFailedError}from'./chunk-FFIZ6TKW.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'./chunk-X7VAACWY.js';function isJsonObject(_0x43043c){const _0x25125a={_0x2f4745:0xfe},_0x10d1a8={_0x4260a4:0xd};function _0x3aefe2(_0x3825d3,_0x3b1c0e,_0x364f56,_0x359ad2){return _0x63b3(_0x3b1c0e-_0x10d1a8._0x4260a4,_0x3825d3);}return typeof _0x43043c===_0x3aefe2(0x143,_0x25125a._0x2f4745,0x143,0x119)&&_0x43043c!==null&&!Array['isArray'](_0x43043c);}function isToolOutputEnvelope(_0x1372d0){const _0xcb4c66={_0x5e063e:0x105,_0x2418a9:0x1eb,_0x53427d:0x208,_0x935c50:0x1e5,_0x47c53a:0x76,_0x47ddaf:0xb1},_0x252bcc={_0xe847c0:0xf6};if(typeof _0x1372d0!==_0x1396d2(-0xbd,-0x10c,-0x102,-_0xcb4c66._0x5e063e)||_0x1372d0===null||Array[_0x1396d2(-0x120,-0xd3,-0xde,-0xf4)](_0x1372d0))return![];function _0x5b0670(_0x39f68a,_0x3ac647,_0x37a64b,_0x11c0ba){return _0x63b3(_0x39f68a-_0x252bcc._0xe847c0,_0x37a64b);}if(typeof _0x1372d0[_0x5b0670(0x1fd,_0xcb4c66._0x2418a9,_0xcb4c66._0x53427d,_0xcb4c66._0x935c50)]!==_0x1396d2(-_0xcb4c66._0x47c53a,-0x41,-_0xcb4c66._0x47ddaf,-0x81))return![];function _0x1396d2(_0x399bc3,_0x363160,_0xf1270,_0x56a4cc){return _0x63b3(_0x399bc3- -0x1ae,_0xf1270);}const _0xd507e8=_0x1372d0['structured'];return _0xd507e8===void 0x0||isJsonObject(_0xd507e8);}function validateAgainstSchema(_0x1b4c04,_0x15abb0,_0x4382cd){const _0x14bc30={_0x587503:0x28e,_0xff9715:0x27f,_0x5ce636:0x276,_0x3e6cbb:0x2b7,_0xddba99:0x306,_0x21617a:0x22e,_0x2576b2:0x1f2,_0x3a9542:0x1d9,_0x52da26:0x244,_0x3f2791:0x1f5,_0x25b9ae:0x205,_0x5d0552:0x1a9,_0x5bc2b4:0x28e,_0x1f3388:0x21b,_0x1aed93:0x253,_0x20be45:0x273,_0x5b8dc3:0x222,_0x32cd5f:0x29b,_0x4a041d:0x27e,_0x313109:0x2ac,_0x544810:0x1d9,_0x1c62d1:0x218,_0x43be8b:0x22e,_0x2adb82:0x20c,_0x32159e:0x26b,_0x1ac10c:0x249,_0x4c7b39:0x1ea,_0x48490d:0x20d,_0xe2ab31:0x24e,_0x31aff3:0x281,_0x9615d0:0x316,_0x51ea8b:0x2b4,_0x566239:0x270,_0x1a064c:0x267,_0x2fb972:0x222,_0x39b458:0x1d1,_0x2fc41b:0x179,_0x1f2da6:0x197,_0x4bde85:0x183,_0x36634d:0x190,_0x41cc3d:0x271,_0x215f61:0x2ab,_0x2dd64b:0x2a7,_0x2bffa9:0x258,_0xbf6c33:0x2f9,_0x187476:0x2c4,_0x30a165:0x2ee,_0x3334fc:0x2b8,_0xc66905:0x222,_0x2aa841:0x230,_0x47a352:0x1d1,_0x1eb2ff:0x214,_0x4806de:0x1e6,_0x2492f9:0x20a,_0x395861:0x1ec,_0x1b89e5:0x292,_0x44b9c5:0x1d2,_0x19a542:0x247,_0x4bf04a:0x1de,_0x588d3a:0x20a,_0x5526b3:0x1b7,_0x261536:0x252,_0x12fbc6:0x285,_0x1f18cb:0x2ae,_0x565a65:0x296,_0x4b70db:0x27b,_0x4f9bc7:0x283};function _0x58090b(_0x1ae247,_0xf5f17,_0x551afc,_0x116839){return _0x63b3(_0x116839-0x153,_0x1ae247);}if(_0x4eea69(0x2e5,0x297,0x28a,_0x14bc30._0x587503)in _0x4382cd){const _0x32d5b9=_0x4382cd[_0x58090b(0x2d3,_0x14bc30._0xff9715,0x27c,_0x14bc30._0x5ce636)][_0x4eea69(0x259,_0x14bc30._0x3e6cbb,0x2ff,_0x14bc30._0xddba99)](_0x21a684=>{try{return validateAgainstSchema(_0x1b4c04,_0x15abb0,_0x21a684),!![];}catch{return![];}});if(!_0x32d5b9)throw new Error(_0x4eea69(_0x14bc30._0x21617a,_0x14bc30._0x2576b2,_0x14bc30._0x3a9542,_0x14bc30._0x52da26)+_0x1b4c04+_0x58090b(0x1af,_0x14bc30._0x3f2791,0x1b0,_0x14bc30._0x25b9ae));return;}function _0x4eea69(_0x596165,_0x25d556,_0xe06a22,_0x1bac63){return _0x63b3(_0x25d556-0x174,_0x596165);}switch(_0x4382cd['type']){case'string':if(typeof _0x15abb0!=='string')throw new Error(_0x58090b(0x1ad,0x221,_0x14bc30._0x5d0552,0x1d1)+_0x1b4c04+_0x58090b(_0x14bc30._0x5bc2b4,0x219,0x1d5,_0x14bc30._0x1f3388));if(_0x4382cd['enum']!==void 0x0&&!_0x4382cd[_0x58090b(_0x14bc30._0x1aed93,_0x14bc30._0x20be45,_0x14bc30._0x5b8dc3,0x20c)][_0x58090b(_0x14bc30._0x32cd5f,_0x14bc30._0x4a041d,0x2b1,_0x14bc30._0x313109)](_0x15abb0))throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x1b4c04+_0x58090b(0x246,_0x14bc30._0x544810,0x282,0x243)+_0x4382cd[_0x58090b(_0x14bc30._0x1c62d1,0x278,_0x14bc30._0x43be8b,_0x14bc30._0x2adb82)][_0x4eea69(0x2cf,0x281,_0x14bc30._0x32159e,_0x14bc30._0x1ac10c)](',\x20'));return;case'number':if(typeof _0x15abb0!==_0x4eea69(0x194,0x1fe,_0x14bc30._0x4c7b39,_0x14bc30._0x48490d))throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x1b4c04+_0x4eea69(0x291,_0x14bc30._0xe2ab31,0x29f,_0x14bc30._0x31aff3));return;case _0x4eea69(_0x14bc30._0x9615d0,_0x14bc30._0x51ea8b,_0x14bc30._0x566239,_0x14bc30._0x1a064c):if(typeof _0x15abb0!=='boolean')throw new Error(_0x58090b(0x1bb,0x209,_0x14bc30._0x2fb972,_0x14bc30._0x39b458)+_0x1b4c04+_0x4eea69(0x31d,0x2c9,0x2fc,0x2ef));return;case'array':if(!Array[_0x58090b(_0x14bc30._0x2fc41b,0x1f1,_0x14bc30._0x1f2da6,0x1e1)](_0x15abb0))throw new Error(_0x58090b(_0x14bc30._0x4bde85,_0x14bc30._0x36634d,0x23d,0x1d1)+_0x1b4c04+_0x4eea69(0x261,0x269,0x203,_0x14bc30._0x41cc3d));_0x15abb0[_0x4eea69(0x2fc,0x2af,0x303,_0x14bc30._0x215f61)]((_0x28d315,_0x184f2)=>{validateAgainstSchema(_0x1b4c04+'['+_0x184f2+']',_0x28d315,_0x4382cd['items']);});return;case _0x4eea69(_0x14bc30._0x2dd64b,0x265,0x2a4,_0x14bc30._0x2bffa9):if(!isJsonObject(_0x15abb0))throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x1b4c04+_0x4eea69(_0x14bc30._0xbf6c33,_0x14bc30._0x187476,_0x14bc30._0x30a165,0x329));for(const _0x1440af of _0x4382cd[_0x4eea69(0x256,0x245,0x265,_0x14bc30._0x3334fc)]??[]){if(!Object['hasOwn'](_0x15abb0,_0x1440af))throw new Error(_0x58090b(_0x14bc30._0xc66905,_0x14bc30._0x2aa841,0x1fe,_0x14bc30._0x47a352)+_0x1b4c04+':\x20missing\x20required\x20field\x20\x22'+_0x1440af+'\x22');}if(_0x4382cd[_0x58090b(0x1fa,0x1ba,_0x14bc30._0x5d0552,_0x14bc30._0x1eb2ff)]===![]){const _0x2958ad=Object[_0x58090b(_0x14bc30._0x4806de,0x1e7,_0x14bc30._0x2492f9,_0x14bc30._0x395861)](_0x15abb0)[_0x58090b(0x23e,0x28e,0x305,_0x14bc30._0x1b89e5)](_0x36aeae=>!Object['hasOwn'](_0x4382cd[_0x4eea69(0x2dd,0x26e,0x283,0x20e)],_0x36aeae));if(_0x2958ad!==void 0x0)throw new Error(_0x4eea69(_0x14bc30._0x44b9c5,0x1f2,_0x14bc30._0x19a542,0x1fd)+_0x1b4c04+_0x4eea69(_0x14bc30._0x4bf04a,_0x14bc30._0x588d3a,_0x14bc30._0x5526b3,_0x14bc30._0x261536)+_0x2958ad+'\x22');}for(const [_0x5b1b4b,_0x314cb8]of Object[_0x4eea69(0x1f5,0x254,0x222,_0x14bc30._0x12fbc6)](_0x4382cd[_0x58090b(0x201,_0x14bc30._0x1f18cb,_0x14bc30._0x565a65,0x24d)])){Object[_0x58090b(_0x14bc30._0x4b70db,0x299,_0x14bc30._0x4f9bc7,0x265)](_0x15abb0,_0x5b1b4b)&&validateAgainstSchema(_0x1b4c04+'.'+_0x5b1b4b,_0x15abb0[_0x5b1b4b],_0x314cb8);}}}function normalizeToolOutputValue(_0x1a22d1){const _0x2845a7={_0x1eaa36:0x27d,_0x4ce770:0x24d,_0x6873a8:0x25b,_0x2aa104:0x2f7,_0x24ad31:0x2c2,_0x4f0fd3:0x279,_0x30594b:0x2e5,_0x29f69c:0x2c2,_0xca1c7c:0x265,_0x3f0f2f:0x210,_0x234470:0x276,_0x20d8ad:0x2ea,_0x6331e2:0x2cf,_0x5f3785:0x1f6,_0x3d6b44:0x284,_0x228bed:0x227};if(isToolOutputEnvelope(_0x1a22d1))return{'output':_0x1a22d1[_0x345889(-_0x2845a7._0x1eaa36,-0x2dd,-0x21f,-_0x2845a7._0x4ce770)],'structured':_0x1a22d1[_0x4b6e9b(-0x2db,-0x24c,-0x2ad,-0x24a)]??{'value':_0x1a22d1[_0x345889(-0x27d,-0x21e,-_0x2845a7._0x6873a8,-0x2a3)]},..._0x1a22d1[_0x4b6e9b(-0x2b0,-_0x2845a7._0x2aa104,-_0x2845a7._0x24ad31,-_0x2845a7._0x4f0fd3)]!==void 0x0?{'content':_0x1a22d1[_0x4b6e9b(-0x266,-_0x2845a7._0x30594b,-_0x2845a7._0x29f69c,-_0x2845a7._0xca1c7c)]}:{}};function _0x4b6e9b(_0x4e97e7,_0x3f55a5,_0x4a1473,_0x2afdcc){return _0x63b3(_0x4a1473- -0x382,_0x3f55a5);}if(typeof _0x1a22d1===_0x4b6e9b(-_0x2845a7._0x3f0f2f,-_0x2845a7._0x234470,-0x24a,-0x28f))return{'output':_0x1a22d1,'structured':{'value':_0x1a22d1}};if(typeof _0x1a22d1==='object'&&_0x1a22d1!==null&&!Array[_0x4b6e9b(-0x2f7,-_0x2845a7._0x20d8ad,-0x2f4,-0x32b)](_0x1a22d1))return{'output':JSON[_0x345889(-0x268,-0x266,-_0x2845a7._0x6331e2,-0x28e)](_0x1a22d1,null,0x2),'structured':_0x1a22d1};function _0x345889(_0x8287af,_0x31858e,_0x326e0b,_0x2601d2){return _0x63b3(_0x8287af- -0x384,_0x326e0b);}return{'output':JSON[_0x4b6e9b(-_0x2845a7._0x5f3785,-_0x2845a7._0x3d6b44,-0x266,-_0x2845a7._0x228bed)](_0x1a22d1,null,0x2),'structured':{'value':_0x1a22d1}};}function createToolOutput(_0x39697f,_0x1f2af6={'value':_0x39697f},_0x551608){return{'output':_0x39697f,'structured':_0x1f2af6,..._0x551608!==void 0x0?{'content':_0x551608}:{}};}var ToolExecutionError=class extends Error{['structured'];constructor(_0x38b7b5,_0x2b2967={}){const _0x479088={_0x484fe8:0x198,_0x824d71:0x170,_0x3e4e5c:0x290,_0x5562b3:0x1cf,_0x731ab:0x165},_0x4a10bf={_0x2d2199:0xef};function _0xcb0dc6(_0x1c0ab3,_0x13f240,_0x2f18c9,_0x625eb2){return _0x63b3(_0x1c0ab3- -0x255,_0x2f18c9);}super(_0x38b7b5),this[_0x545350(_0x479088._0x484fe8,_0x479088._0x824d71,0x1bf,0x205)]=_0x545350(0x241,_0x479088._0x3e4e5c,0x229,0x28f);function _0x545350(_0x1664cb,_0x25c5a1,_0x3b49da,_0x314df8){return _0x63b3(_0x3b49da-_0x4a10bf._0x2d2199,_0x25c5a1);}this[_0x545350(0x21c,_0x479088._0x5562b3,0x1c4,_0x479088._0x731ab)]=_0x2b2967;}};function defineTool(_0x4b0b7e){return _0x4b0b7e;}function resolveToolPermissionClass(_0xeb1b7){const _0x2871e0={_0x5f0406:0x300,_0x9325be:0x2c9,_0x5e6b71:0x390,_0x3b32a4:0x430,_0x12aca8:0x3cf,_0x260334:0x3a6,_0x5227e1:0x346,_0x90e3c0:0x384,_0x376388:0x316,_0x35723b:0x2e4,_0x23708c:0x346,_0x8662e0:0x377},_0x4398b1=_0xeb1b7?.[_0x4ce322(0x365,0x35c,_0x2871e0._0x5f0406,0x35d)];function _0x95e8d5(_0x17ab5b,_0x53b744,_0x1543e0,_0x383f94){return _0x63b3(_0x1543e0-0x274,_0x17ab5b);}function _0x4ce322(_0x469717,_0x2b2dfe,_0x5439c9,_0x2b7fd9){return _0x63b3(_0x5439c9-0x1d9,_0x2b7fd9);}if(_0x4398b1===_0x95e8d5(0x2e4,_0x2871e0._0x9325be,0x336,_0x2871e0._0x5e6b71)||_0x4398b1===_0x95e8d5(_0x2871e0._0x3b32a4,0x38b,_0x2871e0._0x12aca8,0x38b)||_0x4398b1===_0x95e8d5(_0x2871e0._0x260334,0x321,_0x2871e0._0x5227e1,_0x2871e0._0x90e3c0))return _0x4398b1;return _0x95e8d5(_0x2871e0._0x376388,_0x2871e0._0x35723b,_0x2871e0._0x23708c,_0x2871e0._0x8662e0);}var ToolRegistry=class{[_0x4d4502(-0x129,-0x161,-0x162,-0x115)]=new Map();constructor(_0x15c4fd=[]){const _0x557d9f={_0x881945:0xae,_0x408f0e:0xaa,_0x2f344e:0x3f},_0x1271e7={_0x543bdf:0x1be,_0x31b064:0xcf};function _0x2a57dc(_0x3d3899,_0x408329,_0x391e35,_0x235ffd){return _0x4d4502(_0x391e35-_0x1271e7._0x543bdf,_0x408329-0x14b,_0x3d3899,_0x235ffd-_0x1271e7._0x31b064);}for(const _0x604833 of _0x15c4fd){this[_0x2a57dc(_0x557d9f._0x881945,_0x557d9f._0x408f0e,0x67,_0x557d9f._0x2f344e)](_0x604833);}}[_0x4d4502(-0x157,-0x151,-0x1c5,-0xe3)](_0x4a4d3a){const _0x25c06f={_0x584d19:0xb1,_0x422955:0xf9,_0x41001c:0xc2,_0xf27452:0xd0,_0x3b80c2:0xce,_0x357da9:0x11d,_0x46dc9f:0xaa},_0x110700={_0x3fe122:0x1ef,_0x3cfad2:0x11f};function _0x2896a0(_0x3a9c3a,_0x596e26,_0x350b27,_0x44e5cf){return _0x4d4502(_0x3a9c3a-0x218,_0x596e26-0xb9,_0x350b27,_0x44e5cf-0xdb);}function _0x316f9c(_0x55989f,_0x404224,_0x4fadbc,_0x262f58){return _0x1213ea(_0x55989f-0x17f,_0x404224-_0x110700._0x3fe122,_0x55989f,_0x4fadbc-_0x110700._0x3cfad2);}this[_0x2896a0(0xef,_0x25c06f._0x584d19,0x11f,_0x25c06f._0x422955)][_0x316f9c(-_0x25c06f._0x41001c,-_0x25c06f._0xf27452,-_0x25c06f._0x3b80c2,-_0x25c06f._0x357da9)](_0x4a4d3a[_0x2896a0(0xa4,0x9d,0x83,_0x25c06f._0x46dc9f)],_0x4a4d3a);}[_0x1213ea(-0x135,-0x141,-0x17c,-0x1a3)](_0x5c7b23){const _0x5c6a5c={_0x38322b:0x1b8,_0x33e72d:0xe2},_0x2029f5={_0x318c84:0x253,_0x335704:0xd5,_0x5f0db7:0x55};function _0x327b7c(_0x11c4bf,_0x208eb9,_0x273ea6,_0x33f033){return _0x4d4502(_0x33f033-_0x2029f5._0x318c84,_0x208eb9-_0x2029f5._0x335704,_0x208eb9,_0x33f033-_0x2029f5._0x5f0db7);}function _0x2f9c36(_0x7604ac,_0x59342d,_0xe04537,_0x5aff59){return _0x1213ea(_0x7604ac-0x158,_0x59342d-0x70,_0x7604ac,_0x59342d- -0x2e);}return this[_0x327b7c(0x135,0xec,0x118,0x12a)][_0x327b7c(0xda,_0x5c6a5c._0x38322b,_0x5c6a5c._0x33e72d,0x14c)](_0x5c7b23);}[_0x1213ea(-0x214,-0x188,-0x180,-0x1dc)](){const _0x1287e9={_0x406fcf:0x6f,_0x22e4b3:0xe0,_0x387942:0x121,_0x272459:0x41a,_0x282903:0x3e5,_0x4aecec:0x427,_0x30b431:0x411},_0x1c7407={_0x45ea76:0x1b8,_0x1ad0b7:0x1cf};function _0x10bbf9(_0x3217f9,_0x26bbbf,_0x14aa00,_0x409624){return _0x4d4502(_0x26bbbf-0x4e7,_0x26bbbf-_0x1c7407._0x45ea76,_0x409624,_0x409624-_0x1c7407._0x1ad0b7);}function _0x2629b9(_0x37dcf7,_0x483e83,_0x3e4a1d,_0xbd6c99){return _0x4d4502(_0x483e83-0x49,_0x483e83-0x4b,_0x37dcf7,_0xbd6c99-0x163);}return[...this[_0x2629b9(-_0x1287e9._0x406fcf,-_0x1287e9._0x22e4b3,-_0x1287e9._0x387942,-0x6d)][_0x10bbf9(_0x1287e9._0x272459,_0x1287e9._0x282903,_0x1287e9._0x4aecec,_0x1287e9._0x30b431)]()];}[_0x4d4502(-0xf0,-0xd1,-0xbb,-0xca)](){const _0x5a5027={_0x1a9408:0x3d6,_0x157fa3:0x226},_0x255225={_0x204c8a:0x202,_0xf45741:0x236,_0x595779:0x23d,_0x443b73:0x27e},_0x53d794={_0x3f0c05:0x1e},_0x19f5c1={_0x2c4df4:0xc9,_0xc1b76:0xfc},_0x42f51e={_0x44f6ea:0xd9};function _0x1ad688(_0x4f4adb,_0x49e259,_0x1d09ab,_0x1083e0){return _0x4d4502(_0x1d09ab-0x3b4,_0x49e259-0x0,_0x4f4adb,_0x1083e0-_0x42f51e._0x44f6ea);}function _0x333433(_0x368962,_0xea998d,_0x1e607f,_0x2c99d6){return _0x1213ea(_0x368962-_0x19f5c1._0x2c4df4,_0xea998d-_0x19f5c1._0xc1b76,_0x1e607f,_0x368962-0x580);}return this[_0x333433(0x3a4,0x39c,0x3bd,_0x5a5027._0x1a9408)]()[_0x1ad688(0x1eb,0x1bc,_0x5a5027._0x157fa3,0x256)](_0x126097=>{const _0x14d096={_0x280851:0x3c};function _0x7933f3(_0x1c5cd1,_0x4d1072,_0x4c4e89,_0x3df2d0){return _0x333433(_0x1c5cd1- -0x105,_0x4d1072-0x7a,_0x4c4e89,_0x3df2d0-_0x53d794._0x3f0c05);}function _0x39c133(_0x5244e8,_0x3c983b,_0x23cc82,_0x452786){return _0x1ad688(_0x23cc82,_0x3c983b-0x1b7,_0x452786-0x1a2,_0x452786-_0x14d096._0x280851);}return{'name':_0x126097[_0x7933f3(0x26b,0x2ab,_0x255225._0x204c8a,0x2d5)],'description':_0x126097[_0x7933f3(_0x255225._0xf45741,_0x255225._0x595779,0x1ce,_0x255225._0x443b73)],'input_schema':_0x126097['inputSchema']};});}};function validateToolInput(_0x511e,_0x24acfc){const _0x1c49cb={_0x40fc14:0x3ca,_0x104c66:0x426},_0x383546={_0x3fb9d8:0x504,_0x18ae29:0x7d};function _0x14ad63(_0x3411b3,_0x407bcf,_0x1870a1,_0x51b394){return _0x4d4502(_0x3411b3-_0x383546._0x3fb9d8,_0x407bcf-_0x383546._0x18ae29,_0x407bcf,_0x51b394-0x10a);}return validateAgainstSchema(_0x14ad63(0x3c5,_0x1c49cb._0x40fc14,_0x1c49cb._0x104c66,0x3ec),_0x511e,_0x24acfc),_0x511e;}function deriveFinalToolOutput(_0x324708){const _0x2481f8={_0x351440:0x2a4,_0x5c4ceb:0x29e,_0x93d65a:0x2e1,_0x164513:0x2a4,_0x49573b:0x23e,_0x3fedc0:0x1f0,_0x4bc12f:0x271,_0x5099eb:0x287,_0x12ffa1:0x21d,_0xb63cbe:0x164,_0x3323bf:0x130,_0x1cea93:0x276,_0x2a2fbf:0x27e,_0x17e8d9:0x285,_0x5083e6:0xdd,_0x276faf:0x8c,_0x3527e7:0xe0,_0x1fb269:0xaa,_0x5cd7c5:0x287,_0x11a9a0:0x25a},_0x65c05a={_0x4e4b8f:0x2ec},_0x3b7389={_0x33cef0:0x5a,_0x2dbc50:0x91};if(_0x324708[_0x24de95(-_0x2481f8._0x351440,-_0x2481f8._0x5c4ceb,-0x2b3,-_0x2481f8._0x93d65a)]===0x0)return{'output':'','structured':{}};if(_0x324708[_0x24de95(-_0x2481f8._0x164513,-0x2e4,-0x270,-_0x2481f8._0x49573b)]===0x1)return{'output':_0x324708[0x0][_0x24de95(-0x240,-_0x2481f8._0x3fedc0,-0x1eb,-0x2ac)],'structured':_0x324708[0x0][_0x24de95(-0x272,-0x203,-_0x2481f8._0x4bc12f,-0x25e)],..._0x324708[0x0]['content']!==void 0x0?{'content':_0x324708[0x0][_0x24de95(-_0x2481f8._0x5099eb,-_0x2481f8._0x12ffa1,-0x2ec,-0x2b6)]}:{}};const _0x2331eb=_0x324708[_0x3895b7(0x138,0x177,_0x2481f8._0xb63cbe,_0x2481f8._0x3323bf)](_0x190620=>_0x190620[_0x24de95(-0x287,-0x272,-0x29e,-0x2f5)]!==void 0x0);function _0x24de95(_0x58559b,_0x1d7a3b,_0x178ae8,_0x1c7e3a){return _0x1213ea(_0x58559b-_0x3b7389._0x33cef0,_0x1d7a3b-_0x3b7389._0x2dbc50,_0x178ae8,_0x58559b- -0x67);}function _0x3895b7(_0x21509c,_0x5c636f,_0x11bcb2,_0x42b9e){return _0x1213ea(_0x21509c-0x4a,_0x5c636f-0x2b,_0x21509c,_0x42b9e-_0x65c05a._0x4e4b8f);}return{'output':_0x324708[_0x24de95(-0x291,-0x2d8,-0x289,-_0x2481f8._0x1cea93)](_0x16ab39=>_0x16ab39[_0x24de95(-0x240,-0x22a,-0x235,-0x222)])[_0x24de95(-0x23a,-_0x2481f8._0x2a2fbf,-0x20f,-_0x2481f8._0x17e8d9)](''),'structured':{'chunks':_0x324708[_0x3895b7(0x128,_0x2481f8._0x5083e6,_0x2481f8._0x276faf,0xc2)](_0x2fd2dc=>_0x2fd2dc[_0x24de95(-0x272,-0x2d3,-0x2dc,-0x28e)])},..._0x2331eb[_0x3895b7(_0x2481f8._0x3527e7,0xa4,_0x2481f8._0x1fb269,0xaf)]===0x1?{'content':_0x2331eb[0x0][_0x24de95(-_0x2481f8._0x5cd7c5,-0x2d6,-0x238,-_0x2481f8._0x11a9a0)]}:{}};}function createToolMeta(){return{'transforms':[]};}function createErrorToolResult(_0x28b2fa,_0x386e12,_0x3970b3,_0x4feb50=[]){const _0x231069={_0x59749b:0x344,_0x565df0:0x366,_0x3f8486:0x281},_0x9f8938={_0x2eb890:0x187},_0x596602={_0x5e33be:0x103};function _0x4be66d(_0x1e0c2e,_0x200dae,_0x505946,_0x2c1d30){return _0x1213ea(_0x1e0c2e-0x1d7,_0x200dae-0x2d,_0x1e0c2e,_0x505946- -_0x596602._0x5e33be);}function _0xcd4f31(_0x131f11,_0x41d6ef,_0x90a3e5,_0x42a3d1){return _0x1213ea(_0x131f11-_0x9f8938._0x2eb890,_0x41d6ef-0x7f,_0x90a3e5,_0x41d6ef-0x2c6);}return{'callId':_0x28b2fa['id'],'toolName':_0x28b2fa[_0x4be66d(-_0x231069._0x59749b,-0x33b,-0x313,-_0x231069._0x565df0)],'status':_0x4be66d(-0x2f0,-0x252,-_0x231069._0x3f8486,-0x226),'output':_0x386e12,'structured':_0x3970b3,'chunks':_0x4feb50,'meta':createToolMeta()};}function createRejectedToolResult(_0x488402,_0x1dd8e4){const _0x1f7d5a={_0x234888:0x91,_0x43045f:0x43,_0x729551:0x38,_0x38d846:0xb1,_0x3ea049:0x3a6,_0x560742:0x357,_0x54b849:0x37d,_0x48821a:0x3ee},_0x1e0e76={_0x3a3c9e:0x20,_0x1bf780:0x22,_0x109a6c:0x280},_0x2460b8={_0x49c917:0xd7,_0x20ed1c:0x1c9};function _0x249069(_0x4f22fa,_0x4e4fae,_0x187d18,_0x5b1b36){return _0x4d4502(_0x4e4fae-0x50d,_0x4e4fae-_0x2460b8._0x49c917,_0x5b1b36,_0x5b1b36-_0x2460b8._0x20ed1c);}const _0x24cd97=_0x1dd8e4?.[_0x3ef352(0xd0,0x108,_0x1f7d5a._0x234888,0xac)]()[_0x3ef352(_0x1f7d5a._0x43045f,0x1d,_0x1f7d5a._0x729551,_0x1f7d5a._0x38d846)]?_0x1dd8e4:_0x249069(0x391,_0x1f7d5a._0x3ea049,_0x1f7d5a._0x560742,_0x1f7d5a._0x54b849)+_0x488402[_0x249069(0x3c8,0x399,0x36f,_0x1f7d5a._0x48821a)];function _0x3ef352(_0x51b29c,_0x36019f,_0x4dde8c,_0x2cc83f){return _0x1213ea(_0x51b29c-_0x1e0e76._0x3a3c9e,_0x36019f-_0x1e0e76._0x1bf780,_0x2cc83f,_0x51b29c-_0x1e0e76._0x109a6c);}return createErrorToolResult(_0x488402,_0x24cd97,{'error':'tool_rejected',..._0x1dd8e4?.['trim']()['length']?{'reason':_0x1dd8e4}:{}});}function createAbortedToolResult(_0x39611e,_0xb6e1b7,_0x550e26=[]){const _0x87e75b={_0x476f8d:0x73},_0x40a796={_0x1a6bff:0x1b9,_0x2573cd:0x116,_0x1511d9:0x29e},_0x2dfd7b=toAbortError(_0xb6e1b7);function _0x3844b2(_0x24abaf,_0x33799c,_0x2a6ad1,_0x9384d3){return _0x1213ea(_0x24abaf-_0x40a796._0x1a6bff,_0x33799c-_0x40a796._0x2573cd,_0x33799c,_0x24abaf-_0x40a796._0x1511d9);}return createErrorToolResult(_0x39611e,_0x2dfd7b['message'],{'error':_0x2dfd7b[_0x3844b2(_0x87e75b._0x476f8d,0x10,0xde,0xc1)],'aborted':!![]},_0x550e26);}function createSuccessToolResult(_0x582950,_0x1c4473,_0x56a0e6){const _0x3ad2ff={_0x48c017:0x25d,_0xe43bb7:0x219,_0x59aba2:0x4,_0x593010:0x11,_0x3e6ead:0x193},_0x563b56={_0x5960cb:0x63},_0x2d5f05={_0x52bfa3:0xd1};function _0xf56d88(_0x26d4b0,_0x273d9f,_0x45c6ff,_0x4369c0){return _0x4d4502(_0x45c6ff-0x173,_0x273d9f-0x116,_0x4369c0,_0x4369c0-_0x2d5f05._0x52bfa3);}function _0x28cb5b(_0x342f82,_0x5d3a04,_0x3cf6bd,_0x3ce082){return _0x1213ea(_0x342f82-_0x563b56._0x5960cb,_0x5d3a04-0xa,_0x342f82,_0x5d3a04-0x3fd);}return{'callId':_0x582950['id'],'toolName':_0x582950[_0x28cb5b(0x254,0x1ed,0x1cf,_0x3ad2ff._0x48c017)],'status':'ok','output':_0x1c4473['output'],'structured':_0x1c4473[_0x28cb5b(0x1dc,0x1f2,0x205,_0x3ad2ff._0xe43bb7)],..._0x1c4473[_0xf56d88(_0x3ad2ff._0x59aba2,0x15,-_0x3ad2ff._0x593010,-0x17)]!==void 0x0?{'content':_0x1c4473[_0x28cb5b(_0x3ad2ff._0x3e6ead,0x1dd,0x1e7,0x1a3)]}:{},'chunks':_0x56a0e6,'meta':createToolMeta()};}function createUnknownToolResult(_0x1d2573){const _0x2170ac={_0x488feb:0x395,_0x1719f3:0x31b,_0x408c4c:0x374,_0x10964b:0x3a4},_0x2a6773={_0xb35f56:0x1d};function _0x5f2b7e(_0x587060,_0x17ad2e,_0x2009e8,_0x9463ef){return _0x1213ea(_0x587060-0x46,_0x17ad2e-0xd6,_0x17ad2e,_0x2009e8-0x575);}function _0x4f5e2b(_0x31ea69,_0x33a184,_0x317931,_0x394725){return _0x4d4502(_0x317931-0x225,_0x33a184-_0x2a6773._0xb35f56,_0x33a184,_0x394725-0xec);}return createErrorToolResult(_0x1d2573,_0x5f2b7e(_0x2170ac._0x488feb,0x358,0x33c,0x366)+_0x1d2573['name'],{'error':_0x5f2b7e(_0x2170ac._0x1719f3,_0x2170ac._0x408c4c,0x373,_0x2170ac._0x10964b)});}function isDispatchDecision(_0x8d056d){const _0x6630b1={_0x3c6c30:0x231,_0x25660a:0x19c,_0x134474:0x17c,_0x530621:0x1c1,_0x38626e:0x194,_0x329f7c:0x24e,_0x301ad5:0x1b5,_0x554d80:0x1bb,_0xa8e56e:0x217},_0x2584ac={_0x10bb8f:0xe9,_0x431d38:0xff};function _0x57aacb(_0x2f7535,_0x53a36c,_0x3b5969,_0x35413b){return _0x1213ea(_0x2f7535-_0x2584ac._0x10bb8f,_0x53a36c-_0x2584ac._0x431d38,_0x2f7535,_0x35413b-0x3b0);}function _0x12151a(_0xa7cc5d,_0x12436f,_0x4793f7,_0xa06345){return _0x4d4502(_0xa06345- -0xc3,_0x12436f-0x84,_0x4793f7,_0xa06345-0x11);}if(typeof _0x8d056d!==_0x57aacb(_0x6630b1._0x3c6c30,_0x6630b1._0x25660a,_0x6630b1._0x134474,_0x6630b1._0x530621)||_0x8d056d===null)return![];return _0x8d056d[_0x12151a(-_0x6630b1._0x38626e,-_0x6630b1._0x329f7c,-_0x6630b1._0x301ad5,-0x205)]===_0x57aacb(0x25c,0x282,_0x6630b1._0x554d80,_0x6630b1._0xa8e56e)||_0x8d056d['action']==='run';}function normalizeExecutionError(_0x24f2f2){const _0x176dc2={_0x1c4146:0x255,_0x1fac47:0x29a,_0x310587:0x2be,_0x33d0a3:0x275,_0x3016cd:0x215,_0xaff053:0x132,_0x5c7b3d:0x171,_0x233636:0x255,_0x1a712b:0x148,_0x4022f4:0x110,_0x4acf61:0x11c,_0x4af104:0x22c,_0x2ec5c7:0x2d8,_0x54ab37:0x341,_0x235cd4:0x135,_0x49a73e:0x11f},_0x1b359a={_0x21ae13:0x19c,_0x565e50:0x373};function _0x5b52fe(_0x456554,_0x485ebe,_0x1b15bd,_0x310b4c){return _0x1213ea(_0x456554-_0x1b359a._0x21ae13,_0x485ebe-0x1bf,_0x456554,_0x485ebe-_0x1b359a._0x565e50);}if(_0x24f2f2 instanceof ToolExecutionError)return{'errorMessage':_0x24f2f2[_0x402f55(_0x176dc2._0x1c4146,_0x176dc2._0x1fac47,_0x176dc2._0x310587,0x285)],'structured':{'error':_0x24f2f2['message'],..._0x24f2f2[_0x402f55(_0x176dc2._0x33d0a3,_0x176dc2._0x3016cd,0x2a0,0x22e)]}};if(_0x24f2f2 instanceof Error)return{'errorMessage':_0x24f2f2[_0x5b52fe(_0x176dc2._0xaff053,0x148,_0x176dc2._0x5c7b3d,0x16b)],'structured':{'error':_0x24f2f2[_0x402f55(_0x176dc2._0x233636,0x21e,0x2b8,0x23a)]}};if(typeof _0x24f2f2==='object'&&_0x24f2f2!==null&&_0x5b52fe(0x109,_0x176dc2._0x1a712b,_0x176dc2._0x4022f4,_0x176dc2._0x4acf61)in _0x24f2f2&&typeof _0x24f2f2[_0x402f55(_0x176dc2._0x233636,0x2b1,_0x176dc2._0x4af104,0x258)]===_0x402f55(_0x176dc2._0x2ec5c7,_0x176dc2._0x54ab37,0x2fa,0x333))return{'errorMessage':_0x24f2f2[_0x5b52fe(_0x176dc2._0x235cd4,0x148,0x12d,0x160)],'structured':{'error':_0x24f2f2[_0x5b52fe(0x13d,0x148,0x185,_0x176dc2._0x49a73e)]}};const _0x2fef1d=String(_0x24f2f2);function _0x402f55(_0x330f76,_0x599db7,_0x44ac1a,_0x27f8db){return _0x1213ea(_0x330f76-0x15c,_0x599db7-0x4d,_0x44ac1a,_0x330f76-0x480);}return{'errorMessage':_0x2fef1d,'structured':{'error':_0x2fef1d}};}async function emitEvent(_0x20e600,_0x295694,_0x55a0a4){await _0x20e600?.(_0x295694,_0x55a0a4);}async function resolveDispatchDecision(_0x561c4d,_0x11ccfa,_0xa813a7){const _0x19998b={_0x5274f0:0x1bf,_0x2e01a5:0x162,_0x309deb:0x232,_0x3aa036:0xaf,_0x3e65c2:0x6b,_0xbbd4b6:0xb5,_0x3566db:0x65,_0x29c2f6:0x0,_0x7ed946:0x57,_0xdf4ad7:0x9e,_0x1ca68c:0xf3,_0x16b439:0x72,_0x4a3bc2:0x113},_0x1554c1={_0x1a7146:0x5e},_0x176618={_0x5c6a02:0xa6,_0x502909:0x7d,_0x3ec97d:0x10b,_0x170c6b:0x15a,_0x5bec83:0x169,_0x2864fa:0x1cb,_0x137004:0x117,_0x21e51d:0x10b,_0x21bc91:0x15a,_0x1fe1eb:0x133,_0x50f5fb:0x185},_0x4aa8e9={_0x29c6df:0xf4},_0x5e7c71={_0x44b50d:0x1b,_0x3a5e0a:0x41};function _0x421bd4(_0x582917,_0x4a5038,_0x5068fa,_0x5426d3){return _0x1213ea(_0x582917-_0x5e7c71._0x44b50d,_0x4a5038-_0x5e7c71._0x3a5e0a,_0x5426d3,_0x4a5038-0x255);}if(!_0x561c4d)return{'action':_0x164cbc(0x1c1,_0x19998b._0x5274f0,_0x19998b._0x2e01a5,0x1f3)};const _0x5106f7=Promise[_0x164cbc(_0x19998b._0x309deb,0x22a,0x1d7,0x1b7)]()[_0x421bd4(_0x19998b._0x3aa036,_0x19998b._0x3e65c2,0x97,_0x19998b._0xbbd4b6)](()=>_0x561c4d(_0x11ccfa,_0xa813a7));if(!_0xa813a7[_0x421bd4(-_0x19998b._0x3566db,_0x19998b._0x29c2f6,0x60,-_0x19998b._0x7ed946)]){const _0x4603e5=await _0x5106f7;return isDispatchDecision(_0x4603e5)?_0x4603e5:{'action':_0x421bd4(_0x19998b._0xdf4ad7,0x4e,0x8d,0x60)};}const _0x597421=new Promise((_0x58ac2d,_0x2dd46d)=>{const _0x79f7e5={_0x460971:0x379,_0x25025b:0x79},_0x5965e1={_0x43daa0:0x22b,_0x1fb0d5:0x23a,_0x17d03a:0x446,_0x5f566c:0x3fa,_0x2fff42:0x4e8,_0xc42fa6:0x213},_0x1cb1c5=()=>{const _0x101f95={_0x5aa15c:0x188};function _0x4d6dfb(_0x3c8026,_0x343fe2,_0x132bfc,_0x5f2012){return _0x63b3(_0x343fe2-_0x101f95._0x5aa15c,_0x132bfc);}_0xa813a7[_0x4d6dfb(_0x5965e1._0x43daa0,0x213,_0x5965e1._0x1fb0d5,0x241)]?.[_0x43ec33(0x474,_0x5965e1._0x17d03a,_0x5965e1._0x5f566c,0x452)](_0x43ec33(0x483,0x4ce,0x4bd,_0x5965e1._0x2fff42),_0x1cb1c5);function _0x43ec33(_0x590cb7,_0x2a1553,_0x502475,_0x2c86fe){return _0x63b3(_0x2a1553-0x36f,_0x502475);}_0x2dd46d(toAbortError(_0xa813a7[_0x4d6dfb(0x21f,_0x5965e1._0xc42fa6,0x285,0x1f9)]?.['reason']));};function _0x352577(_0xfd2e34,_0xf6e8ff,_0x440f11,_0x24e361){return _0x164cbc(_0xf6e8ff,_0xfd2e34- -_0x79f7e5._0x460971,_0x440f11-_0x79f7e5._0x25025b,_0x24e361-0x1d9);}if(_0xa813a7['signal']?.['aborted']){_0x2dd46d(toAbortError(_0xa813a7[_0x5cbc52(0xc2,_0x176618._0x5c6a02,_0x176618._0x502909,_0x176618._0x3ec97d)][_0x352577(-_0x176618._0x170c6b,-_0x176618._0x5bec83,-0x150,-_0x176618._0x2864fa)]));return;}function _0x5cbc52(_0x24f7c1,_0x3217cb,_0x546a3a,_0x4f9cf2){return _0x421bd4(_0x24f7c1-_0x4aa8e9._0x29c6df,_0x24f7c1-0xc2,_0x546a3a-0x5e,_0x546a3a);}_0xa813a7[_0x5cbc52(0xc2,0x60,_0x176618._0x137004,0x8e)]?.[_0x5cbc52(_0x176618._0x21e51d,_0x176618._0x21bc91,0x105,_0x176618._0x1fe1eb)](_0x5cbc52(0x196,_0x176618._0x50f5fb,0x20a,0x1e4),_0x1cb1c5,{'once':!![]});});function _0x164cbc(_0x2fd1c2,_0x37a071,_0x26f2aa,_0x25c042){return _0x4d4502(_0x37a071-0x32a,_0x37a071-_0x1554c1._0x1a7146,_0x2fd1c2,_0x25c042-0x1c5);}const _0x16f4d4=await Promise[_0x421bd4(_0x19998b._0x1ca68c,0xb1,_0x19998b._0x16b439,_0x19998b._0x4a3bc2)]([_0x5106f7,_0x597421]);return isDispatchDecision(_0x16f4d4)?_0x16f4d4:{'action':_0x164cbc(0x172,0x1bf,0x1ac,0x170)};}async function executeCapturedToolCall(_0xfccdf7,_0x312b5b,_0x2bed4c,_0x5ee4b3,_0xe44496){const _0x14bab1={_0x5b49a9:0xcb,_0x442534:0x7b,_0x2c88f5:0x10c,_0x54a853:0x100,_0xdf85a3:0x121,_0x378456:0x12e,_0x286a67:0xf0,_0x250631:0x10b,_0x3cc5eb:0xdb,_0x8fc987:0x9a,_0xa773a1:0x4c,_0x462458:0x7f,_0x42cba9:0xf2,_0x9b778f:0x74,_0x22a2b8:0xb5,_0x36e15f:0xcb,_0x1b88bf:0x88,_0xca49a3:0x11f,_0x535989:0x146,_0x3d209c:0x174,_0x3773fb:0x3c,_0x4b3e39:0x30,_0xf69f5e:0x128,_0x144533:0x105,_0x3d1ec9:0x6a,_0x5e4d26:0x9c,_0x5ca04d:0x170,_0x50bec1:0xd4,_0x35db4b:0x4b,_0xc1bce0:0x55,_0x5a2bd8:0x1a7,_0x54b29b:0x176,_0xe84a4d:0x186,_0x527449:0x20f,_0x304823:0x19e,_0x21e9e1:0xff,_0x1f7ae9:0xfc,_0x2aac0c:0x21b,_0x50d419:0x17a,_0x42ca8c:0x1ae,_0x5d49c8:0xa0},_0x584840={_0x379fe7:0x149,_0x37ad7d:0x180,_0x21c6a4:0x177,_0x5386e1:0x179,_0x59bd50:0x1cd,_0x448999:0x18c},_0x1cdaec={_0x1820f5:0x1b,_0x10727a:0x1c6},_0x1db70a={_0x36163e:0x1d};function _0x3570ad(_0x4c6856,_0xdb8329,_0x1e8d4a,_0x20c59b){return _0x1213ea(_0x4c6856-0x145,_0xdb8329-_0x1db70a._0x36163e,_0x1e8d4a,_0xdb8329-0x18a);}const _0x41daff={..._0x2bed4c,'toolCallId':_0x312b5b['id'],'permissionClass':resolveToolPermissionClass(_0xfccdf7),'executionAuthorization':void 0x0};throwIfAborted(_0x41daff[_0x3570ad(-0xa3,-_0x14bab1._0x5b49a9,-0x75,-_0x14bab1._0x442534)]);let _0x18ff90;function _0x26095e(_0x4b67a3,_0x1783e8,_0x25b306,_0x2cdbaf){return _0x4d4502(_0x2cdbaf-_0x1cdaec._0x1820f5,_0x1783e8-0x1f4,_0x1783e8,_0x2cdbaf-_0x1cdaec._0x10727a);}try{_0x18ff90=await resolveDispatchDecision(_0x5ee4b3,_0x312b5b,_0x41daff);}catch(_0xdfee83){if(isAbortError(_0xdfee83)){const _0x52bd75=createAbortedToolResult(_0x312b5b,_0xdfee83);return await emitEvent(_0xe44496,{'type':_0x3570ad(-_0x14bab1._0x2c88f5,-0xdb,-_0x14bab1._0x54a853,-0x127),'toolCall':_0x312b5b,'result':_0x52bd75},_0x41daff),_0x52bd75;}const {errorMessage:_0x2f3383,structured:_0x3f7801}=normalizeExecutionError(_0xdfee83),_0x46d550=createErrorToolResult(_0x312b5b,_0x2f3383,_0x3f7801);return await emitEvent(_0xe44496,{'type':_0x26095e(-0x209,-0x16f,-0x18c,-0x1ae),'toolCall':_0x312b5b,'result':_0x46d550},_0x41daff),_0x46d550;}throwIfAborted(_0x41daff['signal']);if(_0x18ff90[_0x26095e(-0xcf,-_0x14bab1._0xdf85a3,-0x10e,-0x127)]==='reject'){const _0x13c6f3=createRejectedToolResult(_0x312b5b,_0x18ff90[_0x26095e(-_0x14bab1._0x378456,-0xbc,-0x92,-_0x14bab1._0x286a67)]);return await emitEvent(_0xe44496,{'type':_0x3570ad(-0xaf,-0x90,-0x53,-0x70),'toolCall':_0x312b5b,'result':_0x13c6f3},_0x41daff),_0x13c6f3;}if(!_0xfccdf7){const _0x42b4d0=createUnknownToolResult(_0x312b5b);return await emitEvent(_0xe44496,{'type':_0x3570ad(-_0x14bab1._0x250631,-_0x14bab1._0x3cc5eb,-0x148,-_0x14bab1._0x8fc987),'toolCall':_0x312b5b,'result':_0x42b4d0},_0x41daff),_0x42b4d0;}const _0x210433={..._0x41daff,'executionAuthorization':_0x18ff90[_0x3570ad(-_0x14bab1._0xa773a1,-0xbc,-_0x14bab1._0x462458,-_0x14bab1._0x42cba9)]};throwIfAborted(_0x210433[_0x3570ad(-0x102,-0xcb,-0xf4,-0x106)]),await emitEvent(_0xe44496,{'type':_0x3570ad(-_0x14bab1._0x9b778f,-_0x14bab1._0x22a2b8,-0xdf,-0x58),'toolCall':_0x312b5b},_0x210433);try{throwIfAborted(_0x210433[_0x3570ad(-0xe6,-_0x14bab1._0x36e15f,-_0x14bab1._0x1b88bf,-0x7a)]);const _0x1724db=validateToolInput(_0x312b5b[_0x26095e(-_0x14bab1._0xca49a3,-_0x14bab1._0x535989,-_0x14bab1._0x3d209c,-0x124)],_0xfccdf7[_0x3570ad(0x18,-0x8,_0x14bab1._0x3773fb,-_0x14bab1._0x4b3e39)]),_0x3ca855=await _0xfccdf7[_0x3570ad(-_0x14bab1._0xf69f5e,-0xc9,-0x80,-_0x14bab1._0x144533)](_0x1724db,_0x210433),_0x8f07bd=[],_0x2a70c3=addAbortListener(_0x210433[_0x3570ad(-_0x14bab1._0x3d1ec9,-_0x14bab1._0x5b49a9,-0xfd,-_0x14bab1._0x5e4d26)],()=>{const _0x28fac0={_0x332494:0x105,_0xcf86cc:0x212};function _0x2228b2(_0x2c4d6d,_0x40896d,_0x203046,_0xa262d9){return _0x3570ad(_0x2c4d6d-_0x28fac0._0x332494,_0xa262d9-_0x28fac0._0xcf86cc,_0x2c4d6d,_0xa262d9-0xc5);}function _0xdca2b2(_0x11eb4e,_0x572550,_0x274b2a,_0x10c5ce){return _0x3570ad(_0x11eb4e-0x168,_0x11eb4e-0x1b1,_0x572550,_0x10c5ce-0x1ea);}void _0x3ca855[_0xdca2b2(_0x584840._0x379fe7,_0x584840._0x37ad7d,0x146,_0x584840._0x21c6a4)](void 0x0)[_0xdca2b2(_0x584840._0x5386e1,0x1b1,_0x584840._0x59bd50,_0x584840._0x448999)](()=>{});});try{throwIfAborted(_0x210433['signal']);let _0x410276=await _0x3ca855[_0x26095e(-_0x14bab1._0x2c88f5,-0x102,-_0x14bab1._0x5ca04d,-0xfc)]();while(!_0x410276[_0x3570ad(-_0x14bab1._0x50bec1,-0xab,-_0x14bab1._0x35db4b,-_0x14bab1._0xc1bce0)]){throwIfAborted(_0x210433[_0x26095e(-_0x14bab1._0x5a2bd8,-_0x14bab1._0x54b29b,-_0x14bab1._0xe84a4d,-0x19e)]);const _0x1a8650=normalizeToolOutputValue(_0x410276[_0x3570ad(-0x90,-0xca,-0x7c,-_0x14bab1._0x144533)]);_0x8f07bd['push'](_0x1a8650),await emitEvent(_0xe44496,{'type':'tool_output_chunk','toolCall':_0x312b5b,'chunk':_0x1a8650},_0x210433),throwIfAborted(_0x210433[_0x26095e(-_0x14bab1._0x527449,-0x208,-0x14d,-_0x14bab1._0x304823)]),_0x410276=await _0x3ca855[_0x26095e(-0x10a,-_0x14bab1._0x21e9e1,-0x105,-_0x14bab1._0x1f7ae9)]();}throwIfAborted(_0x210433['signal']);const _0x4b4a95=_0x410276['value']===void 0x0?deriveFinalToolOutput(_0x8f07bd):normalizeToolOutputValue(_0x410276['value']),_0x1893d7=createSuccessToolResult(_0x312b5b,_0x4b4a95,_0x8f07bd);return await emitEvent(_0xe44496,{'type':_0x26095e(-0x1c1,-_0x14bab1._0x2aac0c,-_0x14bab1._0x50d419,-_0x14bab1._0x42ca8c),'toolCall':_0x312b5b,'result':_0x1893d7},_0x210433),_0x1893d7;}catch(_0x3b3f26){if(isAbortError(_0x3b3f26)){const _0x35edb9=createAbortedToolResult(_0x312b5b,_0x3b3f26,_0x8f07bd);return await emitEvent(_0xe44496,{'type':'tool_completed','toolCall':_0x312b5b,'result':_0x35edb9},_0x210433),_0x35edb9;}const {errorMessage:_0x737a42,structured:_0x4f0ad6}=normalizeExecutionError(_0x3b3f26),_0x27e6fd=createErrorToolResult(_0x312b5b,_0x737a42,_0x4f0ad6,_0x8f07bd);return await emitEvent(_0xe44496,{'type':'tool_completed','toolCall':_0x312b5b,'result':_0x27e6fd},_0x210433),_0x27e6fd;}finally{_0x2a70c3();}}catch(_0x39e00e){if(isAbortError(_0x39e00e)){const _0x1d622f=createAbortedToolResult(_0x312b5b,_0x39e00e);return await emitEvent(_0xe44496,{'type':'tool_completed','toolCall':_0x312b5b,'result':_0x1d622f},_0x210433),_0x1d622f;}const {errorMessage:_0x2b755e,structured:_0x8804ed}=normalizeExecutionError(_0x39e00e),_0x862482=createErrorToolResult(_0x312b5b,_0x2b755e,_0x8804ed);return await emitEvent(_0xe44496,{'type':_0x3570ad(-0x69,-0xdb,-0x10e,-_0x14bab1._0x5d49c8),'toolCall':_0x312b5b,'result':_0x862482},_0x210433),_0x862482;}}async function executeToolCall(_0x5eaeee,_0x3214c3,_0x44bc4c,_0x416ef7,_0x57b650){const _0x1fad09={_0x1c1596:0x1c8,_0x4dc08c:0x217,_0xfafd00:0x427,_0x4e6dba:0x46f,_0xbeb44d:0x46d,_0x179a86:0x4bd},_0x437089={_0x3c5b7c:0x4e},_0x2c0546={_0x32e4bf:0x8d,_0x3ab6a6:0x36b},_0xd67560=_0x5eaeee[_0x95da6f(_0x1fad09._0x1c1596,0x22c,_0x1fad09._0x4dc08c,0x1b4)](_0x3214c3[_0x95da6f(0x15b,0x11b,0x155,0x126)]),_0x38e016=_0xd67560?.[_0x3e4b87(0x44a,0x3e8,0x406,_0x1fad09._0xfafd00)]?.[_0x3e4b87(_0x1fad09._0x4e6dba,0x47f,_0x1fad09._0xbeb44d,_0x1fad09._0x179a86)]();function _0x95da6f(_0x365037,_0x235c63,_0x3425ce,_0x36114e){return _0x1213ea(_0x365037-0x19,_0x235c63-_0x2c0546._0x32e4bf,_0x235c63,_0x365037-_0x2c0546._0x3ab6a6);}function _0x3e4b87(_0x14a093,_0x35d715,_0x53482e,_0x5ba40a){return _0x4d4502(_0x53482e-0x59a,_0x35d715-_0x437089._0x3c5b7c,_0x5ba40a,_0x5ba40a-0x8);}try{return await executeCapturedToolCall(_0xd67560,_0x3214c3,_0x44bc4c,_0x416ef7,_0x57b650);}finally{_0x38e016?.();}}function createInternalToolRuntime(_0x4aa321=[],_0x2e97d8={}){const _0x3e2519={_0x187cde:0x1da,_0x4246c0:0x292},_0x1d1d9c={_0x504a8e:0x13e,_0x35dff7:0xf7,_0x21f1d9:0x1c9,_0x259818:0x1c0,_0x533310:0x1b4},_0x4aa665={_0x38d4ee:0x313,_0x4b9ff2:0x2bd,_0x285c01:0x321,_0xf474c2:0x32b},_0x436fe9={_0x4b4479:0x224},_0x156ef4={_0x5ab823:0x54c};let _0x2bb091=new ToolRegistry(_0x4aa321);return{'listToolSchemas'(){function _0x5a261d(_0x1f9a1f,_0x4592df,_0x5d3f84,_0x3e40ce){return _0x63b3(_0x5d3f84-0x3b7,_0x3e40ce);}return _0x2bb091[_0x5a261d(0x4f6,0x4b8,0x50b,_0x156ef4._0x5ab823)]();},'setTools'(_0x100356){_0x2bb091=new ToolRegistry(_0x100356);},async 'executeCalls'(_0x63e8ba,_0x3e32de){function _0x29e716(_0x183668,_0x3521bb,_0x126bcd,_0x4b7eac){return _0x63b3(_0x3521bb- -0x276,_0x4b7eac);}function _0x3d04a2(_0x34cd14,_0x3652cb,_0x5c1ad6,_0xd84a26){return _0x63b3(_0x34cd14-_0x436fe9._0x4b4479,_0x3652cb);}return await Promise[_0x29e716(-_0x1d1d9c._0x504a8e,-0x14a,-0x1a8,-_0x1d1d9c._0x35dff7)](_0x63e8ba[_0x29e716(-_0x1d1d9c._0x21f1d9,-_0x1d1d9c._0x259818,-_0x1d1d9c._0x533310,-0x154)](async _0x856dfb=>{const _0x39fcce={_0x644fd:0x27,_0x57a64a:0x397,_0xde10ee:0x2e};function _0x224c36(_0x2714e9,_0x21a69f,_0x2a1e48,_0x65ed68){return _0x29e716(_0x2714e9-_0x39fcce._0x644fd,_0x2714e9-_0x39fcce._0x57a64a,_0x2a1e48-_0x39fcce._0xde10ee,_0x21a69f);}function _0x297b81(_0x20cf68,_0x585967,_0x3c0485,_0x18871c){return _0x3d04a2(_0x585967-0x1e,_0x3c0485,_0x3c0485-0x96,_0x18871c-0xff);}return await executeToolCall(_0x2bb091,_0x856dfb,_0x3e32de,_0x2e97d8[_0x297b81(0x2fc,0x364,_0x4aa665._0x38d4ee,0x31c)],_0x2e97d8[_0x297b81(_0x4aa665._0x4b9ff2,_0x4aa665._0x285c01,_0x4aa665._0xf474c2,0x2d4)]);}));},async 'execute'(_0x31c66b,_0x40e9c7){const [_0x16c650]=await this[_0x29112d(_0x3e2519._0x187cde,0x269,_0x3e2519._0x4246c0,0x22c)]([_0x31c66b],_0x40e9c7);function _0x29112d(_0x2bfe9f,_0xe4e7ce,_0x17db48,_0x2fda19){return _0x63b3(_0x2fda19-0x120,_0xe4e7ce);}return _0x16c650;}};}function getOrderedObserverExtensions(_0x2a9f61,_0x4bb794){const _0x52e2ec={_0xc137fd:0x20d,_0x5e4137:0x211,_0x5b8a15:0x1d8},_0x4d39de={_0x16fd40:0x32,_0x3f7d1a:0x25,_0x4ea019:0x1e,_0x48761b:0x2a4,_0x555a98:0x2ee,_0x78a42:0x284,_0xb8865c:0x2b3,_0xaeb86b:0x6e,_0x35fade:0x2d,_0x8d9ac8:0x2ee},_0x61cbbb={_0x369585:0xc5,_0x31a831:0x196},_0x42e74c={_0x5cd264:0x137,_0x50f204:0x1cc,_0x7f8639:0x1e0,_0x377bd5:0x19c,_0x3a3dca:0x284,_0x24fa85:0x214,_0x332e71:0x258,_0xa1040d:0x214},_0xdd413f={_0x59dab4:0x95,_0x272ea2:0xdd};function _0x4887d2(_0x167de5,_0x8a0894,_0x400400,_0x50047c){return _0x4d4502(_0x400400-0x2db,_0x8a0894-_0xdd413f._0x59dab4,_0x167de5,_0x50047c-_0xdd413f._0x272ea2);}return _0x2a9f61[_0x4887d2(_0x52e2ec._0xc137fd,_0x52e2ec._0x5e4137,0x1bb,_0x52e2ec._0x5b8a15)](_0x1ccb2f=>{const _0x5a7bf4={_0x2a6541:0x1ce,_0x1415be:0x18,_0x544cdf:0x18f},_0x5a7522={_0x1c55d1:0x10a,_0x498aab:0x9};function _0xc7836c(_0x88b0d2,_0x3a993c,_0x5f1c03,_0x40987c){return _0x4887d2(_0x5f1c03,_0x3a993c-_0x5a7522._0x1c55d1,_0x88b0d2-0xda,_0x40987c-_0x5a7522._0x498aab);}function _0x3e382a(_0x149548,_0x546fe8,_0x3bb454,_0x14787e){return _0x4887d2(_0x149548,_0x546fe8-_0x5a7bf4._0x2a6541,_0x14787e- -_0x5a7bf4._0x1415be,_0x14787e-_0x5a7bf4._0x544cdf);}return _0x1ccb2f[_0x3e382a(_0x42e74c._0x5cd264,_0x42e74c._0x50f204,_0x42e74c._0x7f8639,_0x42e74c._0x377bd5)]!==![]&&_0x1ccb2f[_0xc7836c(_0x42e74c._0x3a3dca,0x225,_0x42e74c._0x24fa85,0x2cc)]===_0x4bb794&&_0x1ccb2f[_0xc7836c(0x24c,0x1eb,_0x42e74c._0x332e71,_0x42e74c._0xa1040d)]==='observer';})['sort']((_0x4273cb,_0x16ddb1)=>{function _0x561eb6(_0x15a178,_0x204296,_0x497f66,_0x2daa8c){return _0x4887d2(_0x15a178,_0x204296-0x24,_0x204296- -0x466,_0x2daa8c-0x11d);}function _0x1176ce(_0x3185d2,_0x42096f,_0x3b5803,_0x55bd5d){return _0x4887d2(_0x42096f,_0x42096f-_0x61cbbb._0x369585,_0x55bd5d- -_0x61cbbb._0x31a831,_0x55bd5d-0xae);}if(_0x4273cb[_0x1176ce(_0x4d39de._0x16fd40,-0x15,_0x4d39de._0x3f7d1a,-_0x4d39de._0x4ea019)]===!![]&&_0x16ddb1[_0x561eb6(-_0x4d39de._0x48761b,-_0x4d39de._0x555a98,-_0x4d39de._0x78a42,-_0x4d39de._0xb8865c)]!==!![])return 0x1;if(_0x4273cb[_0x1176ce(-_0x4d39de._0xaeb86b,-_0x4d39de._0x35fade,-0x6d,-0x1e)]!==!![]&&_0x16ddb1[_0x561eb6(-0x2f1,-_0x4d39de._0x8d9ac8,-0x28b,-0x340)]===!![])return-0x1;return _0x4273cb['order']-_0x16ddb1['order'];});}function getOrderedTransformerExtensions(_0x534343,_0x32cd0d){const _0x1ba68a={_0x35022a:0x6e,_0x3b262b:0xac,_0x5b608a:0x28,_0x40075d:0x14f,_0x1029d6:0xdd},_0x3732e7={_0x376eb1:0xbd,_0x1fe0d7:0x1b,_0x3f24de:0xc7},_0x215dfc={_0xd9bbd2:0xcc,_0x21a1f7:0xdf,_0x5ef8d8:0x9d},_0x43d824={_0x14cb5b:0x1c9,_0x445d85:0x11e},_0x56cb92={_0x5b6f47:0x1cd,_0x328989:0x14e};function _0x251ed0(_0xf3a30,_0x1b597b,_0x398b92,_0x54a84a){return _0x4d4502(_0xf3a30-0x5f8,_0x1b597b-_0x56cb92._0x5b6f47,_0x398b92,_0x54a84a-_0x56cb92._0x328989);}function _0x184fe8(_0x22e2b7,_0x493465,_0x28adca,_0x29434d){return _0x1213ea(_0x22e2b7-_0x43d824._0x14cb5b,_0x493465-_0x43d824._0x445d85,_0x493465,_0x22e2b7-0x177);}return _0x534343[_0x184fe8(-0x45,-_0x1ba68a._0x35022a,-_0x1ba68a._0x3b262b,-_0x1ba68a._0x5b608a)](_0x585d6f=>{const _0x3f5dac={_0x56f541:0x109,_0x13ccc7:0x110,_0x423e87:0xcb};function _0x368770(_0x4a408a,_0x310188,_0x5b7e43,_0x408b8f){return _0x184fe8(_0x5b7e43- -_0x215dfc._0xd9bbd2,_0x408b8f,_0x5b7e43-_0x215dfc._0x21a1f7,_0x408b8f-_0x215dfc._0x5ef8d8);}function _0x5113d2(_0x2715e8,_0x5c471e,_0x33c226,_0x2b1b10){return _0x184fe8(_0x2b1b10-_0x3f5dac._0x56f541,_0x2715e8,_0x33c226-_0x3f5dac._0x13ccc7,_0x2b1b10-_0x3f5dac._0x423e87);}return _0x585d6f[_0x5113d2(0x110,0x107,0x56,_0x3732e7._0x376eb1)]!==![]&&_0x585d6f[_0x368770(-0x13b,-0x122,-0x122,-0xe1)]===_0x32cd0d&&_0x585d6f[_0x5113d2(0x67,_0x3732e7._0x1fe0d7,_0x3732e7._0x3f24de,0x7b)]==='transformer';})[_0x184fe8(-0xe1,-_0x1ba68a._0x40075d,-0x9d,-_0x1ba68a._0x1029d6)]((_0x2bd745,_0x5dc985)=>_0x2bd745[_0x251ed0(0x450,0x4be,0x408,0x478)]-_0x5dc985[_0x251ed0(0x450,0x452,0x442,0x417)]);}function _0x1213ea(_0x1b9809,_0x4a88dd,_0x5713fc,_0x12ac26){return _0x63b3(_0x12ac26- -0x2e0,_0x5713fc);}function createExtensionRegistry(){const _0xaf018={_0x4064ba:0x2c7,_0x19e362:0x211,_0x26e9d0:0x21c},_0x324e1c={_0x331990:0x330},_0x16337a={_0x23a6c0:0x5a,_0x18d3df:0x5c,_0xaa7644:0x21},_0x5b74a6={_0x545543:0x219,_0xb35199:0x2aa,_0xab966c:0x21c,_0x3296e1:0x1b1,_0x43faba:0x1f5,_0x297e36:0x221,_0x685740:0x285,_0x23be1e:0x195,_0x327c46:0x1f8,_0x1b0861:0x203,_0x339c1c:0x284,_0x40c797:0x24c,_0x5b2cf8:0x2b8,_0x1697f7:0x232,_0x13f5ec:0x284,_0x638c00:0x1f3,_0x4dabee:0x230},_0x4f7566={_0x380176:0x337},_0x5d2ea3=[];return{'register'(_0x3bd1e6){const _0x4c9499={_0x21b7f9:0x345};if(_0x3bd1e6[_0x287a35(-_0x5b74a6._0x545543,-_0x5b74a6._0xb35199,-_0x5b74a6._0xab966c,-0x26a)]===_0xbddefe(-_0x5b74a6._0x3296e1,-_0x5b74a6._0x43faba,-0x17e,-0x1df)&&_0x3bd1e6[_0x287a35(-_0x5b74a6._0x297e36,-0x202,-0x292,-0x228)]!==![]&&_0x3bd1e6[_0xbddefe(-0x2af,-0x211,-_0x5b74a6._0x685740,-0x256)]===!![]){const _0x2d7d2d=_0x5d2ea3[_0xbddefe(-0x196,-_0x5b74a6._0x23be1e,-0x1c9,-_0x5b74a6._0x327c46)](_0x24b4c0=>_0x24b4c0['kind']===_0x287a35(-0x1f8,-0x24b,-0x1f1,-0x1ed)&&_0x24b4c0['enabled']!==![]&&_0x24b4c0[_0xbddefe(-0x288,-0x1c2,-0x1fe,-0x224)]===_0x3bd1e6[_0xbddefe(-0x202,-0x1b5,-0x1e8,-0x224)]&&_0x24b4c0[_0xbddefe(-0x221,-0x1f2,-0x1e8,-0x256)]===!![]);if(_0x2d7d2d)throw new Error(_0x287a35(-_0x5b74a6._0x1b0861,-_0x5b74a6._0x339c1c,-0x24e,-_0x5b74a6._0x40c797)+_0x3bd1e6['id']+_0x287a35(-0x1d5,-_0x5b74a6._0x5b2cf8,-0x23a,-0x246)+_0x3bd1e6[_0x287a35(-0x1ef,-0x21f,-0x201,-_0x5b74a6._0x1697f7)]+_0x287a35(-0x28b,-0x272,-0x26e,-0x2b2)+_0x2d7d2d['id']+'\x22\x20is\x20already\x20enabled');}function _0x287a35(_0x244915,_0x4e01ed,_0x362c0f,_0x406d02){return _0x63b3(_0x406d02- -_0x4c9499._0x21b7f9,_0x4e01ed);}function _0xbddefe(_0x58ec22,_0x39c7c6,_0x5740b4,_0x3beb08){return _0x63b3(_0x3beb08- -_0x4f7566._0x380176,_0x58ec22);}_0x5d2ea3[_0x287a35(-0x26c,-_0x5b74a6._0x13f5ec,-_0x5b74a6._0x638c00,-_0x5b74a6._0x4dabee)]({..._0x3bd1e6});},async 'runTransformers'(_0x216f78,_0x4da7f8,_0x50a566){const _0x15f17c={_0x44e3af:0x7f};let _0x35ba0d=_0x4da7f8;for(const _0x31b1d9 of getOrderedTransformerExtensions(_0x5d2ea3,_0x216f78)){_0x35ba0d=await _0x31b1d9[_0x44e09e(0x5e,_0x16337a._0x23a6c0,_0x16337a._0x18d3df,_0x16337a._0xaa7644)](_0x35ba0d,_0x50a566);}function _0x44e09e(_0x20c1db,_0x3ee47f,_0x7e8b0d,_0x2e6916){return _0x63b3(_0x3ee47f- -_0x15f17c._0x44e3af,_0x7e8b0d);}return _0x35ba0d;},async 'runObservers'(_0x236355,_0x4666c9,_0x2caa83){function _0x2fa5fd(_0xba6376,_0x9a0d9f,_0x30ddd4,_0x44a31b){return _0x63b3(_0x30ddd4- -_0x324e1c._0x331990,_0x9a0d9f);}for(const _0x3a67cb of getOrderedObserverExtensions(_0x5d2ea3,_0x236355)){await _0x3a67cb[_0x2fa5fd(-_0xaf018._0x4064ba,-_0xaf018._0x19e362,-0x257,-_0xaf018._0x26e9d0)](_0x4666c9,_0x2caa83);}}};}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(_0x730de,_0x33e9da){const _0x5850da={_0x58c46a:0xda,_0x419b9c:0x83,_0x14e0bb:0x6e,_0x469046:0x6,_0x5b69c9:0x56,_0x53847b:0x2c9,_0x6f7a77:0x265,_0x3c1bc8:0x2f3,_0x315b5e:0x33b,_0x6fd55a:0x388,_0x155d85:0x321,_0x25e84c:0x30e,_0x1f151b:0xf0,_0x5a0ae8:0x2b,_0x1f7e09:0x71,_0x207cf2:0x110,_0x579928:0x2b6,_0x520c44:0xd,_0x531977:0x2d,_0x2a111b:0x38,_0x18bd0f:0x32,_0x4472ed:0x34,_0x45e98f:0x64,_0x8d3cc:0xfa,_0x51aa94:0x1b,_0x445f4d:0x29,_0x3234d7:0x53,_0x17495d:0x61,_0x24d36c:0xde,_0x503694:0x6d,_0x200534:0x35b,_0x3b5ca0:0x2d6,_0x14d7eb:0xca,_0x157c35:0x70,_0x59efc0:0x92,_0xfb95d9:0x2ce,_0xa746f1:0x2f,_0x5cb7ed:0x7e,_0x5c6a2c:0x2f0},_0x4b0ad8={_0x350dd4:0x1b9},_0x365a9b={_0x96cb56:0xca},_0x270168=_0x33e9da[_0x393e31(_0x5850da._0x58c46a,_0x5850da._0x419b9c,_0x5850da._0x14e0bb,_0x5850da._0x469046)];function _0x393e31(_0x135890,_0xce687d,_0x270677,_0x44a3bc){return _0x4d4502(_0x270677-0x1b4,_0xce687d-0xd6,_0xce687d,_0x44a3bc-_0x365a9b._0x96cb56);}const _0x207d60=_0x270168['inputTokens'],_0x3b419f=_0x270168[_0x393e31(_0x5850da._0x5b69c9,-0xd,0x0,0x5c)],_0x1cef79=_0x270168[_0x11fa3e(-_0x5850da._0x53847b,-_0x5850da._0x6f7a77,-0x283,-0x333)]??0x0,_0x2c3dd6=_0x207d60+_0x3b419f,_0x50078c=_0x270168['reportedCost']?.[_0x11fa3e(-_0x5850da._0x3c1bc8,-0x2c6,-_0x5850da._0x315b5e,-0x33b)],_0x3f1760=_0x270168[_0x11fa3e(-0x354,-_0x5850da._0x6fd55a,-0x324,-0x37b)]?.[_0x11fa3e(-0x2f3,-0x2c7,-_0x5850da._0x155d85,-_0x5850da._0x25e84c)];function _0x11fa3e(_0xa59143,_0x5ccbc6,_0xfaec30,_0x54e14d){return _0x4d4502(_0xa59143- -0x196,_0x5ccbc6-0x2c,_0xfaec30,_0x54e14d-_0x4b0ad8._0x350dd4);}const _0x1063b7=_0x50078c??_0x3f1760,{currentReportedCostUsdTicks:_0x551433,currentEstimatedCostUsdTicks:_0x1688ff,..._0x426eea}=_0x730de;return{..._0x426eea,'totalTokens':_0x426eea[_0x393e31(_0x5850da._0x1f151b,_0x5850da._0x5a0ae8,0x99,_0x5850da._0x1f7e09)]+_0x2c3dd6,'totalInputTokens':_0x426eea[_0x393e31(_0x5850da._0x207cf2,0xf6,0xd0,0xf7)]+_0x207d60,'totalOutputTokens':_0x426eea[_0x11fa3e(-0x2d9,-0x2a5,-_0x5850da._0x579928,-0x2f5)]+_0x3b419f,'totalReasoningTokens':_0x426eea[_0x393e31(0x53,-0x23,-_0x5850da._0x520c44,-_0x5850da._0x531977)]+_0x1cef79,'modelCallCount':_0x426eea[_0x393e31(_0x5850da._0x2a111b,_0x5850da._0x18bd0f,_0x5850da._0x4472ed,0x11)]+0x1,'totalModelTimeMs':_0x426eea[_0x393e31(0x5f,0x5,0x3a,-0x4)]+_0x33e9da[_0x393e31(0x6,0xb4,_0x5850da._0x45e98f,0x31)],'currentTokens':_0x2c3dd6,'currentInputTokens':_0x207d60,'currentOutputTokens':_0x3b419f,'currentReasoningTokens':_0x1cef79,'currentModelTimeMs':_0x33e9da[_0x11fa3e(-0x2e6,-0x2c0,-0x2e6,-0x2d7)],..._0x426eea[_0x393e31(0xdf,0x76,0xb5,_0x5850da._0x8d3cc)]&&_0x2c3dd6>0x0?{'contextWindowUsage':_0x2c3dd6/_0x426eea['contextWindowLimit']}:{},'totalCostUsdTicks':_0x1063b7===void 0x0?_0x426eea[_0x393e31(_0x5850da._0x51aa94,_0x5850da._0x445f4d,0x15,-_0x5850da._0x3234d7)]:_0x426eea['totalCostUsdTicks']+_0x1063b7,'totalReportedCostUsdTicks':_0x50078c===void 0x0?_0x426eea['totalReportedCostUsdTicks']:_0x426eea[_0x393e31(_0x5850da._0x17495d,_0x5850da._0x24d36c,_0x5850da._0x503694,0x8d)]+_0x50078c,'totalEstimatedCostUsdTicks':_0x3f1760===void 0x0?_0x426eea['totalEstimatedCostUsdTicks']:_0x426eea[_0x11fa3e(-0x307,-0x2d3,-_0x5850da._0x200534,-_0x5850da._0x3b5ca0)]+_0x3f1760,'reportedCostCallCount':_0x50078c===void 0x0?_0x426eea['reportedCostCallCount']:_0x426eea[_0x393e31(_0x5850da._0x14d7eb,0xc,_0x5850da._0x157c35,_0x5850da._0x59efc0)]+0x1,'estimatedCostCallCount':_0x3f1760===void 0x0?_0x426eea[_0x11fa3e(-0x2d4,-0x2f8,-0x2c0,-_0x5850da._0xfb95d9)]:_0x426eea['estimatedCostCallCount']+0x1,'unpricedModelCallCount':_0x50078c===void 0x0&&_0x3f1760===void 0x0?_0x426eea[_0x393e31(-0x11,_0x5850da._0xa746f1,0x5a,_0x5850da._0x5cb7ed)]+0x1:_0x426eea[_0x11fa3e(-_0x5850da._0x5c6a2c,-0x30f,-0x2be,-0x32b)],..._0x50078c!==void 0x0?{'currentReportedCostUsdTicks':_0x50078c}:{},..._0x3f1760!==void 0x0?{'currentEstimatedCostUsdTicks':_0x3f1760}:{}};}function createAgentMetrics(_0x1a62b8={}){const _0x547a60={_0x1abc8b:0x482,_0x157199:0x45e,_0x4b0951:0x4aa},_0x415796={_0x3a5b00:0x241,_0x4a1ed:0x24a,_0x13ac82:0x452,_0x4149cd:0x491,_0x4112ad:0x492,_0x4b81d0:0x3f8,_0x1e0a50:0x3d5,_0x53ac3a:0x411,_0x280671:0x389},_0x2a59cc={_0x364b61:0x145},_0x1b7b92={_0xf91a48:0x252,_0x47c686:0x28d,_0x21dabb:0x291,_0x13db93:0x2fe,_0x13ac3e:0x201,_0x28a45d:0x21e,_0x29ac99:0x1fc,_0x37495f:0x2c8,_0x48fd85:0x325,_0x17659d:0x30f,_0x91c7bc:0x23a,_0x38ed84:0x2eb,_0x4c40d7:0x305,_0x1b5409:0x285,_0x3c2ed0:0x2d3,_0x5333f0:0x2cf,_0x3ab02f:0x294,_0x22b94c:0x260,_0x3a9ebd:0x23c,_0x5c4300:0x261,_0x11d83a:0x2b7,_0x371831:0x2be,_0x13b2ed:0x2ef,_0x3ed27d:0x228,_0x51e6e7:0x278,_0x23ae1a:0x3d4,_0xe08504:0x267,_0x5431ca:0x26d,_0x585cba:0x274},_0x5183c6={_0x2e2300:0x3e3};let _0x404f92=createEmptySnapshot();const _0x1af114=new Set();let _0x5b4396;const _0x2281f3=()=>{const _0x23f648={..._0x404f92};for(const _0x1d27ba of _0x1af114)_0x1d27ba(_0x23f648);};return{'getSnapshot'(){return{..._0x404f92};},'recordEvent'(_0x202bb6){if(_0x202bb6[_0x4e7366(-_0x1b7b92._0xf91a48,-_0x1b7b92._0x47c686,-_0x1b7b92._0x21dabb,-_0x1b7b92._0x13db93)]===_0x2bd966(-0x25d,-0x224,-0x2b3,-_0x1b7b92._0x13ac3e)){_0x5b4396=Date[_0x2bd966(-0x24e,-_0x1b7b92._0x28a45d,-_0x1b7b92._0x29ac99,-0x217)]();const _0x53af92=_0x1a62b8[_0x4e7366(-_0x1b7b92._0x37495f,-_0x1b7b92._0x48fd85,-0x327,-_0x1b7b92._0x17659d)]?.(_0x202bb6[_0x4e7366(-_0x1b7b92._0x91c7bc,-0x2cb,-0x2a2,-_0x1b7b92._0x38ed84)]);_0x53af92!==void 0x0&&(_0x404f92={..._0x404f92,'contextWindowLimit':_0x53af92},_0x2281f3());return;}function _0x2bd966(_0x2e5737,_0x5b3c77,_0x48202b,_0x4b8348){return _0x63b3(_0x2e5737- -0x376,_0x4b8348);}function _0x4e7366(_0x3d2fbd,_0x2e4016,_0x2d235a,_0x501914){return _0x63b3(_0x2d235a- -_0x5183c6._0x2e2300,_0x501914);}if(_0x202bb6[_0x4e7366(-_0x1b7b92._0x4c40d7,-_0x1b7b92._0x1b5409,-0x291,-_0x1b7b92._0x3c2ed0)]===_0x4e7366(-0x2c1,-_0x1b7b92._0x5333f0,-_0x1b7b92._0x3ab02f,-0x29b)){const _0x1352db=_0x5b4396===void 0x0?0x0:Date['now']()-_0x5b4396;_0x5b4396=void 0x0,_0x404f92=applyModelCall(_0x404f92,{'usage':_0x202bb6[_0x2bd966(-_0x1b7b92._0x22b94c,-0x29e,-_0x1b7b92._0x3a9ebd,-_0x1b7b92._0x5c4300)][_0x4e7366(-_0x1b7b92._0x11d83a,-0x2c9,-0x2e5,-0x333)],'modelTimeMs':_0x202bb6[_0x4e7366(-0x30a,-_0x1b7b92._0x371831,-_0x1b7b92._0x13b2ed,-0x2e4)]??_0x1352db}),_0x2281f3();return;}if(_0x202bb6[_0x2bd966(-0x224,-0x205,-_0x1b7b92._0x3ed27d,-_0x1b7b92._0x51e6e7)]==='tool_call'){_0x404f92={..._0x404f92,'toolCallCount':_0x404f92[_0x4e7366(-0x381,-0x3c1,-0x361,-_0x1b7b92._0x23ae1a)]+0x1},_0x2281f3();return;}_0x202bb6[_0x4e7366(-0x2c4,-_0x1b7b92._0xe08504,-_0x1b7b92._0x21dabb,-_0x1b7b92._0x5431ca)]===_0x4e7366(-_0x1b7b92._0x585cba,-_0x1b7b92._0x22b94c,-0x2af,-_0x1b7b92._0x3c2ed0)&&(_0x404f92={..._0x404f92,'requestCount':_0x404f92['requestCount']+0x1},_0x2281f3());},'reset'(){_0x404f92=createEmptySnapshot(),_0x5b4396=void 0x0,_0x2281f3();},'restore'(_0x1c4c95){const _0x19fd4d={_0x126c03:0x355};let _0x2a964b=createEmptySnapshot();function _0x18f827(_0x25a098,_0x249df3,_0x46df6b,_0x129931){return _0x63b3(_0x249df3-_0x19fd4d._0x126c03,_0x46df6b);}function _0x391edc(_0x161e0a,_0x5261b9,_0x171a85,_0x1989e7){return _0x63b3(_0x161e0a-_0x2a59cc._0x364b61,_0x171a85);}for(const _0x1aed1a of _0x1c4c95['modelCalls']){_0x2a964b=applyModelCall(_0x2a964b,{'usage':_0x1aed1a[_0x391edc(0x243,_0x415796._0x3a5b00,_0x415796._0x4a1ed,0x2a3)],'modelTimeMs':_0x1aed1a[_0x18f827(_0x415796._0x13ac82,0x449,_0x415796._0x4149cd,0x47e)]});}_0x404f92={..._0x2a964b,'requestCount':_0x1c4c95['modelCalls'][_0x18f827(_0x415796._0x4112ad,0x479,0x45c,0x4e8)](_0x951a3=>_0x951a3[_0x391edc(0x24d,0x260,0x1f8,0x27c)])[_0x18f827(0x38a,_0x415796._0x4b81d0,0x38e,0x3f7)],'toolCallCount':_0x1c4c95['toolCallCount'],'historicalMetricsComplete':_0x1c4c95['missingModelCallCount']===0x0,'missingHistoricalModelCallCount':_0x1c4c95[_0x18f827(0x3f0,_0x415796._0x1e0a50,_0x415796._0x53ac3a,_0x415796._0x280671)]},_0x5b4396=void 0x0,_0x2281f3();},'subscribe'(_0x4e5c18){const _0x27a8ff={_0x11c677:0x3e7};_0x1af114[_0x3d8521(_0x547a60._0x1abc8b,_0x547a60._0x157199,0x477,_0x547a60._0x4b0951)](_0x4e5c18);function _0x3d8521(_0x1063ec,_0x393884,_0x5b92d7,_0x1a46c1){return _0x63b3(_0x1a46c1-_0x27a8ff._0x11c677,_0x1063ec);}return()=>{_0x1af114['delete'](_0x4e5c18);};}};}function makeExtensionContext(_0x335842){return{'state':_0x335842};}async function runStage(_0x421a77,_0x548a9e,_0x2f1656,_0x315a3a){const _0x50ee33={_0x36e20f:0x159,_0x3e2045:0x47,_0x213e0a:0xfd};function _0xbf5b0e(_0x52ad9a,_0x4f9a4f,_0x381481,_0x1365e4){return _0x4d4502(_0x381481-0x26b,_0x4f9a4f-0xce,_0x1365e4,_0x1365e4-0x121);}const _0x42ad64=await _0x421a77[_0xbf5b0e(0x1a3,0x121,_0x50ee33._0x36e20f,0x138)](_0x548a9e,_0x2f1656,_0x315a3a);await _0x421a77[_0x3bbd22(-_0x50ee33._0x3e2045,-_0x50ee33._0x213e0a,-0xa8,-0xbd)](_0x548a9e,_0x42ad64,_0x315a3a);function _0x3bbd22(_0xfe3ecb,_0x583812,_0x5be4c6,_0x3fcfb2){return _0x1213ea(_0xfe3ecb-0x198,_0x583812-0x73,_0xfe3ecb,_0x5be4c6-0x153);}return _0x42ad64;}async function emitEvent2(_0x2cc1b2,_0x28b453,_0xe19bb3){await _0x2cc1b2?.(_0x28b453,_0xe19bb3);}function replaceToolUseBlocks(_0x5b2e0a,_0x6905c1){const _0x4b9d4f={_0x5f54dc:0x14e,_0x1c79ec:0xf3,_0x317fb3:0x24,_0x4322ab:0x7e},_0x4bfa14={_0xd4a6c:0x3c,_0xe20802:0x49},_0x361e38={_0x274b64:0x7e},_0x172eb9={_0x54be0a:0x1f,_0x13a77f:0x12d},_0x424285={_0x22c9b4:0x6e};function _0x1149c3(_0x458089,_0x21b186,_0xa202bd,_0x468d0e){return _0x1213ea(_0x458089-0x96,_0x21b186-_0x424285._0x22c9b4,_0x21b186,_0x468d0e-0x248);}function _0x3cd123(_0x1e3d7a,_0x56695b,_0x1f065b,_0xcda428){return _0x1213ea(_0x1e3d7a-_0x172eb9._0x54be0a,_0x56695b-0x12e,_0x1e3d7a,_0xcda428-_0x172eb9._0x13a77f);}let _0x2a6cf1=0x0;return{..._0x5b2e0a,'content':_0x5b2e0a[_0x3cd123(-0xe2,-_0x4b9d4f._0x5f54dc,-0x130,-_0x4b9d4f._0x1c79ec)][_0x1149c3(-_0x4b9d4f._0x317fb3,-0x55,_0x4b9d4f._0x4322ab,0x1e)](_0x4d0f4d=>{if(_0x4d0f4d[_0x4bd1e7(0x5b,0x88,_0x4bfa14._0xd4a6c,_0x4bfa14._0xe20802)]!=='tool_use')return _0x4d0f4d;const _0x44f156=_0x6905c1[_0x2a6cf1];_0x2a6cf1+=0x1;function _0x4bd1e7(_0x1bf254,_0x45b523,_0x31049a,_0x38aa94){return _0x1149c3(_0x1bf254-0x8,_0x45b523,_0x31049a-0x15b,_0x31049a- -_0x361e38._0x274b64);}return structuredClone(_0x44f156);})};}function createAssistantMessageId(_0x3c8614,_0x248912){function _0x784ca7(_0x3c7e85,_0x14533c,_0xb75711,_0x41cdc9){return _0x4d4502(_0x3c7e85-0x133,_0x14533c-0x9e,_0xb75711,_0x41cdc9-0x153);}return _0x3c8614+_0x784ca7(-0x64,-0x15,-0xae,-0x46)+_0x248912;}function createReasoningMessageId(_0x4742a5){const _0x5c52ff={_0x37b5a9:0x62,_0x276dcc:0x7a},_0x28bcb4={_0x38f380:0xe1,_0x51629a:0x2f};function _0x4b431f(_0x409027,_0x202595,_0x1f65ca,_0x122893){return _0x1213ea(_0x409027-_0x28bcb4._0x38f380,_0x202595-_0x28bcb4._0x51629a,_0x1f65ca,_0x122893-0x1ab);}return _0x4742a5+_0x4b431f(-0x19,-_0x5c52ff._0x37b5a9,-0x41,-_0x5c52ff._0x276dcc);}function _0x26cd(){const _0x5d8c0f=['y29UDgvUDa','ywrKAxrPB25HBfbYB3bLCNrPzxm','CMvHza','ywrK','Bw9KzwXdywXSq291BNq','nJe2z2zLs1jo','Dg9VBf9YzwPLy3rLza','C2vUza','oIbLEhbLy3rLzcbZDhjPBMC','yMvMB3jLrMLUywXpDxrWDxq','Dg90ywXnB2rLBfrPBwvnCW','zMLUywXnzxnZywDL','yxnZAxn0yw50twvZC2fNzuLK','Dg9VBf91C2vFzgvSDge','yMvMB3jLqxnZAxn0yw50qxbWzw5K','Dg9VBfj1BNrPBwu','BMfTzq','CMvXDwLYzwq','ywX3yxLZlwnVBMzPCM0','Dg90ywXfC3rPBwf0zwrdB3n0vxnKvgLJA3m','ywrKrxzLBNrmAxn0zw5LCG','C3rYDwn0DxjLza','y29TCgXLDgu','CMvTB3zLrxzLBNrmAxn0zw5LCG','Dg9VBf9Yzxn1BhrFBwvZC2fNzq','CNvU','oIbLEhbLy3rLzcbUDw1Izxi','A2LUza','C2vZC2LVBI0','vg9VBcbLEgvJDxrPB24GCMvQzwn0zwqGzM9Yia','Dw5RBM93BL90B29S','B25fDMvUDa','zw50CMLLCW','DgvYBwLUywW','C2vZC2LVBKLK','DhvYBLn0yxj0zwrbDa','mtbNvvnnCwu','CNvUt2jZzxj2zxjZ','ChjVDMLKzxi','yw1VDw50vxnKvgLJA3m','Bw9KzwW','CMvJB3jKrxzLBNq','Dw5WCMLJzwrnB2rLBenHBgXdB3vUDa','mJu4mtu1AurHrLfT','y2HHDe1VzgvS','CMvNAxn0zxi','CMv0DxjU','zgvSDge','oIbLEhbLy3rLzcbVBMuGB2yG','B2jQzwn0','DxnLCL9TzxnZywDL','C2v0','Bw9KzwXuAw1Ltxm','oIbLEhbLy3rLzcbHCNjHEq','DgHLBG','mti1mdu4oerKAevAsG','DxnLCG','q2fUBM90ihjLz2LZDgvYihrLCM1PBMfSig9IC2vYDMvYici','ChjVCgvYDgLLCW','C2v0u2vZC2LVBKLK','DhvYBKLUzgv4','Dg90ywXszxbVCNrLzenVC3rvC2ruAwnRCW','DxnHz2u','iIbMB3iG','CMvWB3j0zwrdB3n0q2fSBenVDw50','Dg90ywXpDxrWDxruB2TLBNm','ywn0Aw9U','C2v0vg9VBhm','BgLZDa','Aw5WDxq','zxn0Aw1HDgvKq29ZDenHBgXdB3vUDa','B3v0Chv0','y29TCgXLDgvZuMvXDwvZDa','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','C2v0u3LZDgvTuhjVBxb0','z2v0vg9VBhm','zxHLy3v0zunHBgXZ','AM9PBG','zxH0zw5ZAw9UCW','y29UDgvUDf9KzwX0yq','CMvZzxrnzxnZywDLCW','CMvHC29UAw5Nvg9Rzw5Z','AgfZt3DU','C3rHz2u','zgvMyxvSDe1LC3nHz2u','ChvZAa','CMvZCg9UC2u','ywnXDwLYzq','y29TCgXLDgvK','Bw9KzwXFCMvXDwvZDa','qwDLBNqGCMvXDwLYzxmGysbJAgf0tw9KzwW','Dg9VBhncEu5HBwu','C3rYAw5NAwz5','zw5HyMXLza','y2f0y2G','ChjPy2LUz1bYB3zPzgvYswq','y2f1C2u','nde0nJHAEu53B1u','B25uB29Sq2fSBa','yw55t2y','zMLSDgvY','CMvHC29UAw5Nu3rHCNrLzef0','Dg9VBf91C2vFy2H1BMS','CgvYBwLZC2LVBKnSyxnZ','BM93','Dg90ywXuB2TLBNm','ChjVDMLKzxjFCMv0CNK','Dgv4Da','ywXS','BMv4Da','Bwv0yq','zNvUy3rPB24','DhjPBq','Dg9VBf9JywXS','CNvUvhjHBNnMB3jTzxjZ','Bwv0ywrHDge','zMLUywXFBwvZC2fNzq','CMvHC29UAw5Nq29TCgXLDgvKqxq','mtqXmJCWohLOz2HNAG','CMvHC29UAw5Nx21LC3nHz2u','C3rYAw5N','CMvHC29U','vg9VBev4zwn1DgLVBKvYCM9Y','zM9YrwfJAa','CMfJzq','z2v0','zhjHAw5tDgvLCMLUzW','zMLUza','yM9VBgvHBG','CMvXDwvZDa','DMfSDwvZ','C29Tzq','CMvZB2X2zq','y29UDgv4DfDPBMrVD0XPBwL0','ywz0zxjnzxnZywDLqxbWzw5K','CMvQzwn0','DhvYBKLK','C3rHDgu','CMvNAxn0CNK','B3v0Chv0sw5KzxG','nJa5Bxvzserc','DgHPBMTPBMC','Aw5WDxrty2HLBwe','Bw9KzwXFCMvZCg9UC2u','oIbLEhbLy3rLzcbVyMPLy3q','mNjbtwXNCa','DhLWzq','C2v0q2HHDe1VzgvS','BgLZDfrVB2Xty2HLBwfZ','oIbLEhbLy3rLzcbIB29SzwfU','Dg9tDhjPBMC','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','B2jZzxj2zxi','Aw5JBhvKzxm','ywz0zxjuB29SuMvZDwX0','D3jPDgu','Bwf4vg9Rzw5Z','C2XPy2u','tw9KzwWGC3rYzwfTigvUzgvKihDPDgHVDxqGysbMAw5HBcbYzxnWB25Zzq','ywjVCNq','Dg90ywXjBNb1DfrVA2vUCW','yMvMB3jLvg9VBfjLC3vSDefWCgvUza','zxjYB3i','Dg9VBf9JB21WBgv0zwq','C3LZDgvTuhjVBxb0','Aw5KzxG','sw52ywXPzcb0B29SigLUChv0igf0ia','ywjVCNrLza','BwLZC2LUz01VzgvSq2fSBenVDw50','nJu4mZqWnevVBhvwsa','Dg9VBenHBgXdB3vUDa','Dg90ywXszwfZB25PBMDuB2TLBNm','CMvHC29UAw5Nx2nODw5R','C2v0vg9WAwm','zxn0Aw1HDgvKq29ZDa','yxnZAxn0yw50x2nODw5R','C29YDa','yxnZAxn0yw50x21LC3nHz2u','BNvTyMvY','C2LNBMfS','DMfSDwu','zxHLy3v0zq','AxnbCNjHEq','ndjNqKjSqLu','B3v0Chv0vg9Rzw5Z','AxrLBuLK','DhvYBL9JB21WBgv0zq','oIb0zxjTAw5HBcbVyNnLCNzLCIaI','DhvYBKnVBxbSzxrLzef0','Bwf4','oIb1BMv4CgvJDgvKigzPzwXKici','y29UDgvUDeLUzgv4','ywz0zxjuDxjUq29TCgXLDgu','A2v5CW','zxHLy3v0Aw9Uqxv0Ag9YAxPHDgLVBG','zgvZy3jPChrPB24','B3jKzxi','C3rHDhvZ','Bwv0CMLJCW','B3v0Chv0rM9YBwf0','ChjVDMLKzxjtDgf0zq','Dg9VBf9ZDgfYDgvK','Bw9KzwXjzgvUDgL0Eq','BgvUz3rO','C2vZC2LVBKrPCG','Dg90ywXdB3n0vxnKvgLJA3m','C3rYzwfTAw5N','vw5RBM93BIb0B29SoIa','BwvZC2fNzxm','B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','zgvWCW','zg9Uzq','nZG3odeWnxPzsw1NAq','oMfZC2LZDgfUDdO','C3rYzwfT','DhvYBI0','Aw50zxjUywXmAwzLy3LJBgu','C3vTBwfYEuLUzgv4','oIbLEhbLy3rLzcb2ywX1zsbTyxrJAgLUzYbHBNLpzIbZy2HLBwe','B25vC2vYtwvZC2fNzq','yMvMB3jLvg9VBev4zwn1DgLVBG','BwvZC2fNzq','BwfW','CMfUzg9T','x3n5C3rLBvbYB21WDa','zw51Bq','BgfZDfjLC3bVBNnL','oNjLyxnVBMLUzW','z2v0q29UDgv4DfDPBMrVD0XPBwL0','yxnRvxnLCG','mtuZndHbuKrOq2S','C3LZDgvT'];_0x26cd=function(){return _0x5d8c0f;};return _0x26cd();}function withMessageId(_0x21eb1b,_0x535744){if(_0x21eb1b['id']===_0x535744)return _0x21eb1b;return{..._0x21eb1b,'id':_0x535744};}function createAssistantChunkEvent(_0x339148,_0x1ba20e){const _0x20e756={_0x102bff:0x17a,_0x4d8f85:0x173,_0x2e8b42:0x1cd,_0x394fec:0xb8,_0x125b84:0x37,_0x27147b:0x15,_0x4751f1:0x22,_0x5fe6c6:0x47,_0x48ef8e:0x2b,_0x52a055:0x51,_0x543565:0x12,_0x4588ff:0x6d,_0x1c9dbb:0xa5,_0x5b9e29:0x21},_0x117d1f={_0x49380a:0x222};function _0x28443b(_0x250efe,_0xaf2aca,_0x31c0ad,_0x2b5149){return _0x4d4502(_0xaf2aca-0x26c,_0xaf2aca-0x3,_0x31c0ad,_0x2b5149-0x7c);}function _0x5909f5(_0x3b322c,_0x387d38,_0x1628d1,_0x4afdf3){return _0x1213ea(_0x3b322c-0x2b,_0x387d38-0x1c7,_0x387d38,_0x3b322c-_0x117d1f._0x49380a);}if(_0x339148[_0x28443b(0x147,_0x20e756._0x102bff,_0x20e756._0x4d8f85,_0x20e756._0x2e8b42)]!=='content_delta')return void 0x0;if(_0x339148[_0x5909f5(0x6d,_0x20e756._0x394fec,0x4a,0x7)]===void 0x0)return void 0x0;return{'type':_0x5909f5(-_0x20e756._0x125b84,_0x20e756._0x27147b,-0x29,-_0x20e756._0x4751f1),'index':_0x339148[_0x5909f5(-0x41,-_0x20e756._0x5fe6c6,-_0x20e756._0x48ef8e,-0x5e)]??0x0,'messageId':_0x1ba20e,'chunk':{'type':_0x5909f5(_0x20e756._0x52a055,0x5d,-0xf,_0x20e756._0x543565),'index':_0x339148['index']??0x0,'text':_0x339148[_0x5909f5(_0x20e756._0x4588ff,_0x20e756._0x1c9dbb,_0x20e756._0x5b9e29,0x28)]}};}function _0x4d4502(_0x9365ab,_0x5c6bfe,_0x4a6357,_0x2fe338){return _0x63b3(_0x9365ab- -0x244,_0x4a6357);}function createToolUseChunkEvent(_0x8f986c,_0x57f233){const _0x2cd45f={_0x111e7b:0x4da,_0x131d51:0x438,_0x518509:0x431,_0x2b997f:0x4b3,_0x5d6b05:0x405,_0x474170:0x3ef,_0x4bdc5:0x3b8,_0x19d616:0x406,_0x334202:0x457,_0x148737:0x43e,_0x311861:0x46e,_0xce691:0x458,_0x514789:0x44d,_0x4ea02b:0x466,_0x4967e1:0x3f5},_0x4d9747={_0x231065:0x105};function _0x1e4213(_0x2d6c37,_0x2e350e,_0x5e4da2,_0x106bbf){return _0x1213ea(_0x2d6c37-0xe,_0x2e350e-0xef,_0x5e4da2,_0x2e350e-0x668);}function _0x3c8ef0(_0x1db4d5,_0x3dd9fe,_0x154131,_0x1d4453){return _0x1213ea(_0x1db4d5-_0x4d9747._0x231065,_0x3dd9fe-0x78,_0x1d4453,_0x3dd9fe-0x66a);}if(_0x8f986c[_0x1e4213(0x517,_0x2cd45f._0x111e7b,0x4ec,0x470)]!==_0x3c8ef0(_0x2cd45f._0x131d51,0x457,_0x2cd45f._0x518509,0x418))return void 0x0;return{'type':_0x1e4213(0x500,0x4ae,_0x2cd45f._0x2b997f,0x4d3),'index':_0x8f986c[_0x1e4213(0x3b6,_0x2cd45f._0x5d6b05,_0x2cd45f._0x474170,_0x2cd45f._0x4bdc5)]??0x0,'messageId':_0x57f233,'chunk':{'type':_0x3c8ef0(_0x2cd45f._0x19d616,_0x2cd45f._0x334202,_0x2cd45f._0x148737,0x452),'id':_0x8f986c['id']??'','index':_0x8f986c[_0x3c8ef0(0x464,0x407,0x43b,0x39f)]??0x0,..._0x8f986c[_0x1e4213(_0x2cd45f._0x311861,_0x2cd45f._0xce691,_0x2cd45f._0x474170,0x48b)]!==void 0x0?{'name':_0x8f986c[_0x1e4213(_0x2cd45f._0x514789,0x458,_0x2cd45f._0x4ea02b,_0x2cd45f._0x4967e1)]}:{},..._0x8f986c['inputDelta']!==void 0x0?{'inputDelta':_0x8f986c['inputDelta']}:{}}};}function createReasoningChunkEvent(_0xf5bf7b,_0x23293c){const _0x1bda2e={_0x18a8f3:0x2f1,_0x4d4bbc:0x12e,_0x1b6480:0x151,_0x3a4524:0xd1,_0x3d6bef:0x1b4,_0x4ad102:0x262,_0x90cac3:0x186,_0x1d92f0:0x150,_0x2f606f:0x12c,_0x162744:0x322,_0x36ee7c:0x2c7,_0x1d3cfc:0x30d,_0x4ef896:0x23e,_0x293cd2:0x205,_0x50b8b3:0x1b3,_0x3b3c18:0x20f,_0x87362b:0x167,_0x3d39d1:0x26e,_0x8e14c9:0x229,_0x469912:0x211,_0x50189c:0x252,_0x74c9e0:0x172,_0x5ec332:0x16c,_0x5143c7:0x1be,_0x28eed5:0x23e,_0x4d46ac:0x1fc,_0x5415bc:0x2f6,_0x5597dd:0x2c5,_0x105e85:0x141,_0x161fca:0xed,_0x490be6:0xbb,_0x588e71:0x203,_0x3d4cdd:0x246,_0x227580:0x22b,_0x312240:0x193,_0x2073d5:0x148,_0x377eb3:0xfe,_0x344722:0x1ae,_0x357464:0x1a3,_0x5db24a:0x20b,_0xe115f2:0x2c5,_0x168415:0x242,_0x242305:0x1bb,_0x51216a:0x291,_0x3215a6:0x29d},_0x121a61={_0x1c2348:0x17b,_0x67aee6:0xa9};function _0x2ab2f5(_0x12a30c,_0x31bb2e,_0x2e1b0d,_0x4a3509){return _0x1213ea(_0x12a30c-0xf8,_0x31bb2e-0x1b2,_0x12a30c,_0x2e1b0d-0x45a);}function _0x11467d(_0x23b087,_0x228a2c,_0x35405f,_0x3c364a){return _0x1213ea(_0x23b087-0xc5,_0x228a2c-_0x121a61._0x1c2348,_0x23b087,_0x228a2c-_0x121a61._0x67aee6);}switch(_0xf5bf7b[_0x2ab2f5(0x274,0x326,0x2cc,_0x1bda2e._0x18a8f3)]){case _0x11467d(-0x116,-_0x1bda2e._0x4d4bbc,-_0x1bda2e._0x1b6480,-_0x1bda2e._0x3a4524):return{'type':_0x2ab2f5(0x238,_0x1bda2e._0x3d6bef,0x1fe,0x1f3),'index':_0xf5bf7b[_0x2ab2f5(0x1a4,_0x1bda2e._0x4ad102,0x1f7,_0x1bda2e._0x90cac3)],'messageId':_0x23293c,'chunk':{'type':_0x11467d(-_0x1bda2e._0x1d92f0,-0x12e,-_0x1bda2e._0x2f606f,-0xed),'index':_0xf5bf7b['index']??0x0,'thinking':_0xf5bf7b[_0x2ab2f5(0x295,0x2fa,0x2c7,0x339)]??''},'text':_0xf5bf7b[_0x2ab2f5(_0x1bda2e._0x162744,0x2a8,_0x1bda2e._0x36ee7c,_0x1bda2e._0x1d3cfc)]??''};case _0x2ab2f5(_0x1bda2e._0x4ef896,_0x1bda2e._0x293cd2,0x223,0x28f):return{'type':_0x11467d(-0x16a,-_0x1bda2e._0x50b8b3,-_0x1bda2e._0x3b3c18,-_0x1bda2e._0x87362b),'index':_0xf5bf7b[_0x2ab2f5(_0x1bda2e._0x3d39d1,_0x1bda2e._0x8e14c9,_0x1bda2e._0x469912,_0x1bda2e._0x50189c)],'messageId':_0x23293c,'chunk':{'type':_0x11467d(-_0x1bda2e._0x74c9e0,-0x18e,-_0x1bda2e._0x5ec332,-_0x1bda2e._0x5143c7),'contentIndex':_0xf5bf7b['contentIndex']??0x0,'delta':_0xf5bf7b['delta']??'','itemId':_0xf5bf7b[_0x2ab2f5(_0x1bda2e._0x28eed5,0x20f,0x20b,_0x1bda2e._0x4d46ac)]??'','outputIndex':_0xf5bf7b[_0x2ab2f5(0x2e9,_0x1bda2e._0x5415bc,_0x1bda2e._0x5597dd,0x2d1)]??0x0},'text':_0xf5bf7b['delta']??''};case _0x11467d(-_0x1bda2e._0x105e85,-0xe0,-_0x1bda2e._0x161fca,-_0x1bda2e._0x490be6):return{'type':'reasoning_chunk','index':_0xf5bf7b[_0x2ab2f5(_0x1bda2e._0x588e71,_0x1bda2e._0x3d4cdd,_0x1bda2e._0x227580,0x21c)],'messageId':_0x23293c,'chunk':{'type':_0x11467d(-0x12f,-0xe0,-0xb2,-0xea),'delta':_0xf5bf7b[_0x11467d(-_0x1bda2e._0x312240,-_0x1bda2e._0x2073d5,-_0x1bda2e._0x377eb3,-0x158)]??'','itemId':_0xf5bf7b[_0x2ab2f5(_0x1bda2e._0x344722,_0x1bda2e._0x357464,_0x1bda2e._0x5db24a,_0x1bda2e._0x5143c7)]??'','outputIndex':_0xf5bf7b[_0x2ab2f5(0x286,0x2ec,_0x1bda2e._0xe115f2,0x32a)]??0x0,'summaryIndex':_0xf5bf7b[_0x2ab2f5(0x1dd,_0x1bda2e._0x168415,_0x1bda2e._0x227580,_0x1bda2e._0x242305)]??0x0},'text':_0xf5bf7b[_0x2ab2f5(_0x1bda2e._0x51216a,_0x1bda2e._0x3215a6,0x269,0x25f)]??''};default:return void 0x0;}}function isAbortedToolResult(_0x134dc2){const _0x3b21bc={_0x1a5dbd:0x143,_0x426d06:0xef},_0x583151={_0x5a9848:0x1,_0x330676:0x2b,_0x701489:0x26d},_0x17806a={_0x2dbd50:0x264};function _0x328132(_0x5ae353,_0x1713ca,_0x2a8770,_0x36f769){return _0x1213ea(_0x5ae353-0xd6,_0x1713ca-0x40,_0x5ae353,_0x2a8770-_0x17806a._0x2dbd50);}function _0x37e768(_0x46fe17,_0x8a998c,_0x527459,_0x562d47){return _0x1213ea(_0x46fe17-_0x583151._0x5a9848,_0x8a998c-_0x583151._0x330676,_0x8a998c,_0x527459-_0x583151._0x701489);}return _0x134dc2[_0x328132(0x29,0x72,0x21,0x17)]===_0x37e768(_0x3b21bc._0x1a5dbd,0x100,_0x3b21bc._0x426d06,0x128)&&_0x134dc2['structured']['aborted']===!![];}async function executeModelRequest(_0x106357,_0x195b2b,_0x32760f,_0x35085b,_0x541545,_0x298474){const _0x29e37a={_0x517b23:0x448,_0x131ee6:0x456,_0x5e6e66:0x4a4,_0x4e5e4b:0x4a5,_0x10e174:0x319,_0x509e56:0x2e5,_0xe3a62e:0x30c,_0x144960:0x303,_0x40710a:0x29e,_0x36c4d9:0x28b,_0x142769:0x4a1,_0x284420:0x4a1,_0x476b0d:0x4ff,_0x318879:0x457,_0x2ddb7b:0x479,_0x9a1571:0x414,_0x1a24b6:0x314,_0x3cd1f2:0x587,_0x28ee47:0x51d,_0x1e7313:0x509,_0x588c92:0x2ea,_0x257eff:0x30e,_0x218dea:0x364,_0x5e2f79:0x37c,_0x37bbc6:0x3e5,_0x9e4697:0x374,_0x4c83f3:0x4f9,_0x10ab71:0x54b,_0x50da59:0x4d8,_0x248df7:0x4ce,_0x2bbd57:0x367,_0x120d04:0x4e8,_0xc16199:0x51d,_0x4a395a:0x54a,_0x48a219:0x369,_0x294e36:0x4a8,_0x1906c5:0x443,_0x5d7df0:0x3ec,_0x1d88e7:0x44f,_0x121395:0x2ce,_0x17c367:0x2e2,_0x2f6206:0x355,_0x43cc8f:0x364,_0x4af20d:0x4f9,_0x3562ce:0x564,_0x18b797:0x372,_0x2b991b:0x2fb,_0x42dbd4:0x4ad,_0x484c5c:0x4f3,_0x16feae:0x54e,_0xb54f4a:0x4e0,_0x4933d8:0x4aa,_0xb54cdb:0x499,_0x73d27f:0x51a,_0x13b731:0x487,_0xcdd1e1:0x4f0,_0x3b6954:0x493,_0x270cab:0x508,_0x5d6ed8:0x4e9,_0x34617b:0x560,_0x58445d:0x532,_0x1e3b9c:0x395,_0x217b20:0x3b3,_0x2daeb4:0x514,_0x4c4242:0x4b6,_0x479265:0x4f3,_0x5890a9:0x484,_0x3e168a:0x460,_0x42acbb:0x4df,_0x4f9ce2:0x39d,_0x3e21b7:0x332,_0x482da9:0x3a9},_0x2647cc={_0x54f9e7:0x4b,_0x35f0fc:0x51f},_0x4ab46b={_0x33a1bc:0x6e};function _0x5953b2(_0x14ed62,_0x38383e,_0x1fc9fb,_0x2c515f){return _0x1213ea(_0x14ed62-_0x4ab46b._0x33a1bc,_0x38383e-0x34,_0x2c515f,_0x38383e-0x6ab);}throwIfAborted(_0x195b2b[_0x5953b2(_0x29e37a._0x517b23,_0x29e37a._0x131ee6,_0x29e37a._0x5e6e66,_0x29e37a._0x4e5e4b)]);function _0x38ec4e(_0x252035,_0x242a21,_0x1b70dd,_0x120571){return _0x1213ea(_0x252035-0x1b0,_0x242a21-_0x2647cc._0x54f9e7,_0x1b70dd,_0x242a21-_0x2647cc._0x35f0fc);}if(!_0x195b2b[_0x38ec4e(_0x29e37a._0x10e174,_0x29e37a._0x509e56,_0x29e37a._0xe3a62e,_0x29e37a._0x144960)]||!_0x32760f[_0x38ec4e(_0x29e37a._0x40710a,0x2ed,_0x29e37a._0x36c4d9,0x28e)])return await _0x32760f[_0x5953b2(_0x29e37a._0x142769,_0x29e37a._0x284420,0x499,_0x29e37a._0x476b0d)](_0x106357,{'signal':_0x195b2b[_0x5953b2(0x436,0x456,_0x29e37a._0x318879,0x445)]});let _0x5d31df;for await(const _0x4b99f0 of _0x32760f[_0x5953b2(0x473,_0x29e37a._0x2ddb7b,0x44e,_0x29e37a._0x9a1571)](_0x106357,{'signal':_0x195b2b[_0x38ec4e(0x2d6,0x2ca,0x28d,_0x29e37a._0x1a24b6)]})){throwIfAborted(_0x195b2b['signal']);if(_0x4b99f0[_0x5953b2(_0x29e37a._0x3cd1f2,_0x29e37a._0x28ee47,0x556,_0x29e37a._0x1e7313)]===_0x38ec4e(0x358,_0x29e37a._0x588c92,0x352,0x2a9)){_0x298474['meta'][_0x38ec4e(_0x29e37a._0x257eff,_0x29e37a._0x218dea,_0x29e37a._0x5e2f79,0x3b7)]!==void 0x0&&_0x298474['meta'][_0x38ec4e(_0x29e37a._0x37bbc6,_0x29e37a._0x9e4697,0x32f,_0x29e37a._0x9e4697)]===void 0x0&&(_0x298474[_0x5953b2(0x52d,_0x29e37a._0x4c83f3,0x523,0x4f4)][_0x5953b2(_0x29e37a._0x10ab71,0x500,_0x29e37a._0x50da59,_0x29e37a._0x248df7)]=Date[_0x38ec4e(0x31c,_0x29e37a._0x2bbd57,0x321,0x3c5)]());_0x5d31df=_0x4b99f0['response'];continue;}if(_0x4b99f0[_0x5953b2(_0x29e37a._0x120d04,_0x29e37a._0xc16199,_0x29e37a._0x4a395a,0x530)]===_0x38ec4e(_0x29e37a._0x1a24b6,_0x29e37a._0x48a219,0x3b7,0x37f)){await emitEvent2(_0x35085b[_0x5953b2(_0x29e37a._0x294e36,0x4aa,0x4d9,_0x29e37a._0x1906c5)],_0x4b99f0,_0x541545);continue;}const _0x97a96b=createReasoningChunkEvent(_0x4b99f0,_0x298474['reasoningMessageId']);if(_0x97a96b&&_0x97a96b[_0x38ec4e(0x349,0x391,0x355,0x387)]===_0x5953b2(_0x29e37a._0x5d7df0,_0x29e37a._0x1d88e7,0x40e,0x3dd)&&_0x97a96b['text'][_0x38ec4e(_0x29e37a._0x121395,_0x29e37a._0x17c367,_0x29e37a._0x10e174,0x302)]>0x0){_0x298474['meta'][_0x38ec4e(_0x29e37a._0x2f6206,_0x29e37a._0x43cc8f,0x316,0x374)]===void 0x0&&(_0x298474[_0x5953b2(0x55d,_0x29e37a._0x4af20d,0x505,_0x29e37a._0x3562ce)][_0x38ec4e(_0x29e37a._0x18b797,0x364,_0x29e37a._0x2b991b,0x30c)]=Date[_0x5953b2(_0x29e37a._0x42dbd4,_0x29e37a._0x484c5c,_0x29e37a._0x16feae,_0x29e37a._0xb54f4a)]());await emitEvent2(_0x35085b[_0x5953b2(0x4d4,_0x29e37a._0x4933d8,_0x29e37a._0xb54cdb,0x4d6)],_0x97a96b,_0x541545);continue;}const _0x3efe6f=createAssistantChunkEvent(_0x4b99f0,_0x298474[_0x38ec4e(0x30a,0x30b,0x375,0x374)]);if(_0x3efe6f){_0x298474[_0x5953b2(0x55e,_0x29e37a._0x4c83f3,_0x29e37a._0x73d27f,_0x29e37a._0x13b731)][_0x5953b2(0x4ed,_0x29e37a._0xcdd1e1,_0x29e37a._0x3b6954,_0x29e37a._0x270cab)]!==void 0x0&&_0x298474[_0x5953b2(_0x29e37a._0x5d6ed8,0x4f9,_0x29e37a._0x34617b,0x4f3)][_0x5953b2(0x4d4,0x500,_0x29e37a._0x58445d,0x4f0)]===void 0x0&&(_0x298474[_0x38ec4e(0x33b,0x36d,_0x29e37a._0x1e3b9c,_0x29e37a._0x217b20)][_0x5953b2(_0x29e37a._0x2daeb4,0x500,_0x29e37a._0x4c4242,_0x29e37a._0x479265)]=Date[_0x38ec4e(0x3aa,0x367,0x3cd,_0x29e37a._0x5e2f79)]());await emitEvent2(_0x35085b[_0x5953b2(0x4ac,_0x29e37a._0x4933d8,_0x29e37a._0x5890a9,_0x29e37a._0x3e168a)],_0x3efe6f,_0x541545);continue;}const _0x24d94e=createToolUseChunkEvent(_0x4b99f0,_0x298474[_0x5953b2(0x45f,0x497,0x4ee,_0x29e37a._0x42acbb)]);_0x24d94e&&await emitEvent2(_0x35085b['onEvent'],_0x24d94e,_0x541545);}if(!_0x5d31df)throw new Error(_0x38ec4e(0x3f3,_0x29e37a._0x4f9ce2,_0x29e37a._0x3e21b7,_0x29e37a._0x482da9));return _0x5d31df;}function makeTurnGuards(_0x1bb6ad,_0x330270,_0x31ffec,_0x32be79,_0x514013){return{async 'stage'(_0x2e7dc8,_0x1c2b30){return throwIfAborted(_0x1bb6ad),await runStage(_0x330270,_0x2e7dc8,_0x1c2b30,_0x32be79);},async 'emit'(_0x197065){throwIfAborted(_0x1bb6ad),await emitEvent2(_0x31ffec,_0x197065,_0x514013);},async 'stageUnchecked'(_0x4b8ce0,_0x30cc0a){return await runStage(_0x330270,_0x4b8ce0,_0x30cc0a,_0x32be79);},async 'emitUnchecked'(_0x40992c){await emitEvent2(_0x31ffec,_0x40992c,_0x514013);}};}async function runTurn(_0x55f2a1,_0x14a5ae){const _0x4788ba={_0x36a541:0x3d8,_0x1aa358:0x403,_0x4f33cd:0x4b4,_0x2df470:0x4d0,_0x594c80:0x4ec,_0x132b9d:0x474,_0xb7286:0x4e3,_0xde06cd:0x4e4,_0x41872f:0x49a,_0x4762a8:0x429,_0x2522e4:0x417,_0x14f38e:0x47d,_0x1e8b17:0x48c,_0x1f5c51:0x483,_0x17d26b:0x45b,_0x4208a3:0x4b2,_0x37e7db:0x482,_0x364c0d:0x402,_0x27d58b:0x459,_0x26def9:0x4ac,_0x3a0122:0x44c,_0x163b19:0x426,_0x4852e1:0x434,_0x5eb32d:0x45d,_0x2201b8:0x3d4,_0x38c9e2:0x409,_0x11d31f:0x418,_0x3e968a:0x46c,_0x302bd5:0x48a,_0x405a7c:0x4b4,_0x4b3576:0x484,_0x3e3616:0x4bc,_0x456470:0x500,_0x5a613f:0x3e9,_0x36689b:0x44b,_0x449f70:0x4c7,_0xd7b60d:0x4d3,_0x5d61e5:0x486,_0x499a3d:0x44b,_0x8c2712:0x49d,_0xa4766f:0x3f3,_0x775e6d:0x431,_0x380441:0x3bd,_0x2861f8:0x46f,_0xcfaa9e:0x536,_0x4e664d:0x491,_0x64ef28:0x524,_0x340323:0x4c3,_0x47adb9:0x4b1,_0x194446:0x49e,_0x25b590:0x4bd,_0x57b09a:0x475,_0x41a044:0x4db,_0x3cef8f:0x4a2,_0x5362c5:0x426,_0x42b12f:0x478,_0x194631:0x4b2,_0x5e115c:0x3d7,_0xd4108d:0x444,_0x132ebf:0x479,_0x3ba80f:0x416,_0x1586e4:0x439,_0x1d21c7:0x52c,_0x26d4ef:0x3fd,_0x192f1c:0x4c9,_0x47f605:0x45e,_0x2faaf3:0x452,_0x40e2c6:0x472,_0x310b60:0x4be,_0x21e258:0x531,_0x51439a:0x44e,_0x2847f4:0x4ab,_0x1edb05:0x414,_0x58489e:0x442,_0x24bf74:0x544,_0x4b0ed0:0x50e,_0x4cfd4a:0x485,_0x170ad2:0x41b,_0x45df93:0x467,_0x373ea7:0x40c,_0xb75ee3:0x3fb,_0x4f3f51:0x47e,_0x291eb5:0x447,_0x3bb7b9:0x4f5,_0x24516d:0x40a,_0x39d891:0x48d,_0x514904:0x3e0,_0x1c8ccf:0x421,_0x488ba4:0x47d,_0x23974d:0x425,_0x55b981:0x4c6,_0x264b9c:0x496,_0x728cc5:0x4d9,_0x557e5d:0x489,_0x26b0e9:0x42a,_0x32ef33:0x451,_0x43ed18:0x3db,_0x42c724:0x40a,_0x20e894:0x46d,_0x2f8b47:0x4aa,_0x3dbd09:0x43d,_0x1be3b2:0x49c,_0x199ebb:0x473,_0xf2a2f1:0x50a,_0x29291e:0x497,_0x2d13d4:0x4d5,_0x2b8280:0x4a1,_0x253f9c:0x47b,_0x1d1698:0x4f3,_0x7217af:0x550,_0xfdcf40:0x4cc,_0x25fe8c:0x47c,_0x4cc2ae:0x43a,_0x2a9652:0x498,_0x5b4129:0x47c,_0x380c42:0x4b9,_0x47d52e:0x411,_0x58480e:0x454,_0x3b8c69:0x3ea,_0x46835b:0x441,_0x41aca5:0x423},_0x507218={_0x1edd6c:0x13f,_0x1eb979:0x10f,_0x5ce9e1:0x116,_0x2fd254:0x41d,_0x2aa784:0x48d,_0x2c79fb:0x3f3,_0x43af51:0x54,_0x3063dc:0xc8,_0x886ade:0x96,_0x3868bb:0x4ad,_0x52434d:0x46c,_0x578945:0x48a,_0x4af2ed:0x469},_0x2142b2={_0x3f64dd:0x84,_0x1d571c:0x1e2},_0x12f4e8={_0x320a44:0x10,_0x5cdc99:0x39,_0x4a5405:0x672},_0x2d1e55={_0x22fea7:0x164,_0x207554:0x33d,_0x539ce9:0x36f,_0x444a86:0x38b},_0x4fa4ba={_0x5b683b:0xaa,_0x32a9b2:0x38a},_0x25f1db={_0x2a3074:0x120,_0x5dcf62:0xd},_0x36ff20=_0x14a5ae['chatModel'],_0x4dc1ee=_0x55f2a1[_0x250ff3(0x41d,_0x4788ba._0x36a541,0x3f2,0x40f)]??new AbortController()[_0x3b4a7f(_0x4788ba._0x1aa358,0x471,0x46d,0x42f)];function _0x3b4a7f(_0x131dc2,_0x11a2f8,_0xb3fbe6,_0xb3e3dc){return _0x4d4502(_0xb3e3dc-0x5e8,_0x11a2f8-0x191,_0x131dc2,_0xb3e3dc-0x1f4);}const _0x272655={'sessionId':_0x55f2a1['sessionId'],'turnId':_0x55f2a1[_0x3b4a7f(_0x4788ba._0x4f33cd,0x490,_0x4788ba._0x2df470,_0x4788ba._0x594c80)],'system':normalizeSystem(_0x55f2a1['system']),'messages':(_0x55f2a1['messages']??[])['map'](normalizeMessage),'lastResponse':void 0x0,'toolResults':[],'finalMessage':void 0x0,'sessionDir':typeof _0x14a5ae['sessionDir']===_0x3b4a7f(0x466,0x4b8,0x489,0x4d3)?_0x14a5ae[_0x250ff3(0x436,0x473,0x45d,0x3fe)]():_0x14a5ae['sessionDir']},_0x3a1d9e=makeExtensionContext(_0x272655),_0x595dd5={'sessionId':_0x272655[_0x250ff3(_0x4788ba._0x132b9d,_0x4788ba._0xb7286,_0x4788ba._0xde06cd,_0x4788ba._0x41872f)],'turnId':_0x272655['turnId'],'state':_0x272655,'signal':_0x4dc1ee,..._0x14a5ae[_0x250ff3(0x44f,_0x4788ba._0x4762a8,0x461,0x45f)]?{'askUser':_0x14a5ae['askUser']}:{},..._0x14a5ae[_0x250ff3(_0x4788ba._0x2522e4,0x41f,0x459,0x436)]?{'setTopic':_0x14a5ae[_0x250ff3(0x417,0x405,_0x4788ba._0x14f38e,0x3df)]}:{}},{stage:_0x1f4329,emit:_0x1489a7,stageUnchecked:_0x25d8a3,emitUnchecked:_0x1d7102}=makeTurnGuards(_0x4dc1ee,_0x14a5ae['registry'],_0x14a5ae[_0x250ff3(0x471,_0x4788ba._0x1e8b17,0x418,_0x4788ba._0x1f5c51)],_0x3a1d9e,_0x595dd5),_0x295b23=async(_0x9f519a,_0x438cc5)=>{const _0x1e948d=_0x438cc5?{..._0x3a1d9e,'turnMeta':_0x438cc5}:_0x3a1d9e;function _0x54b92f(_0x5cedc7,_0x3000e4,_0x44da92,_0x5a0173){return _0x3b4a7f(_0x5cedc7,_0x3000e4-_0x25f1db._0x2a3074,_0x44da92-_0x25f1db._0x5dcf62,_0x44da92- -0x17b);}function _0x4081e1(_0x26e179,_0x427b36,_0x3a806a,_0x4f060a){return _0x3b4a7f(_0x4f060a,_0x427b36-0x71,_0x3a806a-_0x4fa4ba._0x5b683b,_0x3a806a- -_0x4fa4ba._0x32a9b2);}await _0x14a5ae[_0x4081e1(0x16d,0x111,_0x2d1e55._0x22fea7,0x16e)][_0x54b92f(_0x2d1e55._0x207554,0x2cb,0x30e,0x2b0)](_0x54b92f(0x38f,0x342,_0x2d1e55._0x539ce9,_0x2d1e55._0x444a86),structuredClone(_0x9f519a),_0x1e948d);};function _0x250ff3(_0x58c666,_0x3873a2,_0x520783,_0xcf908f){return _0x1213ea(_0x58c666-_0x12f4e8._0x320a44,_0x3873a2-_0x12f4e8._0x5cdc99,_0xcf908f,_0x58c666-_0x12f4e8._0x4a5405);}const _0x201923=async _0x3e6e60=>{const _0x58425c={_0x3f3880:0x3a4,_0x34b0a3:0x16a};function _0x12b3db(_0x5567c4,_0x2d671e,_0x2ff764,_0x42d8eb){return _0x250ff3(_0x5567c4-0x6,_0x2d671e-_0x2142b2._0x3f64dd,_0x2ff764-_0x2142b2._0x1d571c,_0x42d8eb);}if(!_0x55f2a1[_0x8d921d(_0x507218._0x1edd6c,_0x507218._0x1eb979,_0x507218._0x5ce9e1,0x12c)])return 0x0;const _0x233838=await _0x55f2a1['drainSteering']();throwIfAborted(_0x4dc1ee);if(_0x233838[_0x12b3db(0x43b,_0x507218._0x2fd254,0x463,_0x507218._0x2aa784)]===0x0)return 0x0;await _0x3e6e60?.();for(const _0x445a65 of _0x233838){const _0x49753b=await _0x1f4329(_0x12b3db(0x44b,0x436,_0x507218._0x2c79fb,0x49d),normalizeMessage(_0x445a65));throwIfAborted(_0x4dc1ee),_0x272655[_0x8d921d(_0x507218._0x43af51,_0x507218._0x3063dc,0x2e,_0x507218._0x886ade)][_0x12b3db(_0x507218._0x3868bb,0x4a2,0x508,_0x507218._0x52434d)](_0x49753b),await _0x295b23(_0x49753b),await _0x1489a7({'type':_0x12b3db(_0x507218._0x578945,_0x507218._0x4af2ed,0x4b4,0x4bf),'message':_0x49753b});}function _0x8d921d(_0x4c9029,_0x26a342,_0x3ff833,_0x3b0854){return _0x250ff3(_0x3b0854- -_0x58425c._0x3f3880,_0x26a342-_0x58425c._0x34b0a3,_0x3ff833-0x1bb,_0x3ff833);}return _0x233838['length'];};let _0x306117=0x0;try{const _0x1518f3=await _0x1f4329(_0x3b4a7f(_0x4788ba._0x17d26b,0x405,_0x4788ba._0x4208a3,0x457),normalizeMessage(_0x55f2a1[_0x3b4a7f(_0x4788ba._0x37e7db,_0x4788ba._0x364c0d,0x471,_0x4788ba._0x27d58b)]));_0x272655[_0x3b4a7f(0x3fc,0x437,_0x4788ba._0x26def9,_0x4788ba._0x3a0122)]['push'](_0x1518f3),await _0x295b23(_0x1518f3),await _0x1489a7({'type':_0x3b4a7f(0x4ad,0x45b,_0x4788ba._0x163b19,0x496),'message':_0x1518f3});while(!![]){throwIfAborted(_0x4dc1ee),_0x306117+=0x1;const _0x5759a6=createAssistantMessageId(_0x272655['turnId'],_0x306117),_0x5c473e=createReasoningMessageId(_0x5759a6),_0x6f7417={'model':_0x36ff20['model'],'modelIdentity':_0x36ff20[_0x250ff3(_0x4788ba._0x4852e1,_0x4788ba._0x5eb32d,0x478,_0x4788ba._0x2201b8)],..._0x36ff20[_0x250ff3(0x478,_0x4788ba._0x38c9e2,_0x4788ba._0x11d31f,0x43a)]?{'provider':_0x36ff20[_0x3b4a7f(0x47d,_0x4788ba._0x3e968a,0x4ed,_0x4788ba._0x302bd5)]}:{}};let _0x53def8={'model':_0x36ff20[_0x3b4a7f(_0x4788ba._0x405a7c,_0x4788ba._0x4b3576,0x41b,0x48c)],..._0x36ff20[_0x3b4a7f(0x527,_0x4788ba._0x3e3616,0x496,_0x4788ba._0x456470)]!==void 0x0?{'maxTokens':_0x36ff20['maxTokens']}:{},'system':structuredClone(_0x272655[_0x250ff3(0x451,0x416,0x465,_0x4788ba._0x5a613f)]),'messages':structuredClone(_0x272655[_0x3b4a7f(_0x4788ba._0x36689b,0x450,0x497,_0x4788ba._0x3a0122)]),'tools':_0x14a5ae['toolRuntime']['listToolSchemas'](),'metadata':{'sessionId':_0x272655[_0x3b4a7f(_0x4788ba._0x449f70,_0x4788ba._0xd7b60d,0x4d6,_0x4788ba._0x5d61e5)],'turnId':_0x272655['turnId'],'modelIdentity':_0x36ff20[_0x3b4a7f(0x3e8,_0x4788ba._0x499a3d,0x41a,0x446)],..._0x36ff20['pricingProviderId']!==void 0x0?{'pricingProviderId':_0x36ff20['pricingProviderId']}:{}},..._0x14a5ae[_0x3b4a7f(_0x4788ba._0x8c2712,_0x4788ba._0xa4766f,0x419,0x443)]?{'outputFormat':_0x14a5ae[_0x250ff3(_0x4788ba._0x775e6d,0x487,_0x4788ba._0x380441,_0x4788ba._0x2861f8)]}:{}};_0x53def8=await _0x1f4329('beforeModelRequest',_0x53def8);{const {pricingProviderId:_0x31923d,..._0x1e0840}=_0x53def8[_0x3b4a7f(_0x4788ba._0xcfaa9e,_0x4788ba._0xcfaa9e,_0x4788ba._0x4e664d,0x4d7)];_0x53def8={..._0x53def8,'metadata':{..._0x1e0840,..._0x36ff20['pricingProviderId']!==void 0x0?{'pricingProviderId':_0x36ff20[_0x3b4a7f(0x536,0x454,_0x4788ba._0x64ef28,_0x4788ba._0x340323)]}:{}}};}await _0x1489a7({'type':_0x3b4a7f(_0x4788ba._0x47adb9,0x4ac,_0x4788ba._0x194446,_0x4788ba._0x25b590),'request':_0x53def8});const _0x435583=Date['now']();_0x6f7417[_0x250ff3(_0x4788ba._0x57b09a,0x468,0x485,0x475)]=_0x435583;let _0x4128a0=await executeModelRequest(_0x53def8,_0x55f2a1,_0x36ff20,_0x14a5ae,_0x595dd5,{'assistantMessageId':_0x5759a6,'reasoningMessageId':_0x5c473e,'meta':_0x6f7417});const _0x2f273f=Date[_0x3b4a7f(_0x4788ba._0x41a044,0x521,_0x4788ba._0x3cef8f,0x4cc)]();_0x6f7417[_0x250ff3(_0x4788ba._0x5362c5,_0x4788ba._0x42b12f,0x43c,0x3da)]=_0x2f273f,_0x4128a0=await _0x1f4329('afterModelResponse',_0x4128a0);_0x4128a0[_0x3b4a7f(_0x4788ba._0x194631,_0x4788ba._0x5e115c,_0x4788ba._0x364c0d,_0x4788ba._0xd4108d)]&&(_0x4128a0={..._0x4128a0,'providerState':{..._0x4128a0[_0x250ff3(0x432,0x496,_0x4788ba._0x132ebf,_0x4788ba._0x5a613f)],'originModelIdentity':_0x36ff20[_0x250ff3(0x434,0x423,_0x4788ba._0x3ba80f,_0x4788ba._0xa4766f)]}});_0x4128a0=withEstimatedModelCost(_0x53def8,_0x4128a0);const _0x20cdc0=Math[_0x3b4a7f(0x3d6,0x3c9,0x3fd,_0x4788ba._0x1586e4)](0x0,_0x2f273f-_0x435583),_0x478252={'version':0x1,'usage':structuredClone(_0x4128a0['usage']),'modelTimeMs':_0x20cdc0},_0x253240=_0x582a04=>({..._0x6f7417,'metrics':{..._0x478252,'usage':structuredClone(_0x478252[_0x3b4a7f(0x44a,0x465,0x4af,0x4a2)]),'completesRequest':_0x582a04}});await _0x1489a7({'type':_0x250ff3(0x4e1,0x46e,0x4f0,_0x4788ba._0x1d21c7),'response':_0x4128a0,'modelTimeMs':_0x20cdc0}),_0x272655[_0x3b4a7f(_0x4788ba._0x26d4ef,0x406,_0x4788ba._0x192f1c,_0x4788ba._0x47f605)]=_0x4128a0;let _0x4a8af4=await _0x1f4329(_0x3b4a7f(_0x4788ba._0x2faaf3,_0x4788ba._0x4208a3,0x4aa,_0x4788ba._0x40e2c6),withMessageId(responseToAssistantMessage(_0x4128a0),_0x5759a6));_0x4a8af4=withMessageId(_0x4a8af4,_0x5759a6);const _0x14b5f4=getToolUseBlocks(_0x4a8af4),_0x4ebb40=await Promise[_0x250ff3(_0x4788ba._0x310b60,_0x4788ba._0x21e258,0x499,0x4ee)](_0x14b5f4[_0x250ff3(0x448,_0x4788ba._0x51439a,0x432,_0x4788ba._0x2847f4)](_0x3f28ca=>_0x1f4329(_0x3b4a7f(0x429,0x3fe,0x421,0x458),_0x3f28ca)));_0x4ebb40[_0x3b4a7f(_0x4788ba._0x1edb05,0x496,_0x4788ba._0x58489e,0x447)]>0x0&&(_0x4a8af4=replaceToolUseBlocks(_0x4a8af4,_0x4ebb40));const _0x59c95d=withMessageId(_0x4a8af4,_0x5759a6);_0x4a8af4=_0x59c95d;const _0x4ebad5=createReasoningMessage(_0x4a8af4),_0x390bfe=createAssistantTextMessage(_0x4a8af4),_0x2aa373=createToolUseMessage(_0x4a8af4);_0x4ebad5&&await _0x1489a7({'type':_0x3b4a7f(_0x4788ba._0x24bf74,_0x4788ba._0x4b0ed0,_0x4788ba._0x4cfd4a,0x4db),'message':withMessageId(_0x4ebad5,_0x5c473e)});_0x390bfe&&await _0x1489a7({'type':_0x250ff3(_0x4788ba._0x170ad2,0x3f5,_0x4788ba._0x45df93,0x444),'message':withMessageId(_0x390bfe,_0x5759a6)});_0x2aa373&&await _0x1489a7({'type':'tool_use_message','message':withMessageId(_0x2aa373,_0x5759a6)});_0x272655['messages'][_0x3b4a7f(0x47e,0x470,0x46d,0x4b9)](_0x59c95d);_0x4ebb40[_0x3b4a7f(_0x4788ba._0x373ea7,_0x4788ba._0xb75ee3,_0x4788ba._0x4f3f51,_0x4788ba._0x291eb5)]>0x0&&await _0x295b23(_0x59c95d,_0x253240(![]));for(const _0x245750 of _0x4ebb40){await _0x1489a7({'type':_0x3b4a7f(_0x4788ba._0x1e8b17,_0x4788ba._0x3bb7b9,0x4a8,0x4d5),'toolCall':_0x245750});}if(_0x4ebb40['length']===0x0){const _0x4cf798=await _0x201923(async()=>{await _0x295b23(_0x59c95d,_0x253240(![]));});if(_0x4cf798>0x0)continue;const _0xb6794d=await _0x1f4329(_0x3b4a7f(_0x4788ba._0x24516d,0x438,0x45e,0x46d),_0x4a8af4),_0x35cd5a=withMessageId(_0xb6794d,_0x5759a6);return _0x272655[_0x3b4a7f(0x46b,_0x4788ba._0x39d891,0x408,_0x4788ba._0x2861f8)]=_0x35cd5a,_0x272655[_0x3b4a7f(_0x4788ba._0x514904,0x470,0x4b7,0x44c)][_0x272655[_0x3b4a7f(0x481,0x423,_0x4788ba._0x1c8ccf,0x44c)][_0x3b4a7f(_0x4788ba._0x488ba4,_0x4788ba._0x23974d,0x471,_0x4788ba._0x291eb5)]-0x1]=_0x35cd5a,await _0x295b23(_0x35cd5a,_0x253240(!![])),await _0x1d7102({'type':_0x250ff3(_0x4788ba._0x55b981,0x486,0x50e,_0x4788ba._0x264b9c),'message':_0x35cd5a}),throwIfAborted(_0x4dc1ee),await _0x14a5ae['registry'][_0x3b4a7f(0x428,_0x4788ba._0x728cc5,0x49f,_0x4788ba._0x557e5d)](_0x250ff3(_0x4788ba._0x26b0e9,_0x4788ba._0x32ef33,_0x4788ba._0x43ed18,_0x4788ba._0x42c724),_0x272655,_0x3a1d9e),await _0x1489a7({'type':_0x250ff3(0x424,0x45b,_0x4788ba._0x20e894,0x474),'state':_0x272655}),{'status':_0x250ff3(_0x4788ba._0x2f8b47,0x4e5,_0x4788ba._0x3dbd09,0x4ff),'finalMessage':_0x35cd5a,'state':_0x272655};}let _0x89fae=await _0x14a5ae[_0x3b4a7f(_0x4788ba._0x1be3b2,0x402,0x445,_0x4788ba._0x199ebb)][_0x3b4a7f(_0x4788ba._0xf2a2f1,_0x4788ba._0x29291e,0x4a9,0x4b0)](_0x4ebb40,_0x595dd5);const _0xabe337=_0x89fae[_0x250ff3(_0x4788ba._0x2d13d4,0x481,_0x4788ba._0x2b8280,0x4e4)](isAbortedToolResult),_0xc1e3d0=_0xabe337?_0x25d8a3:_0x1f4329,_0x1dfe03=_0xabe337?_0x1d7102:_0x1489a7;_0x89fae=await Promise[_0x250ff3(0x4be,_0x4788ba._0x45df93,0x490,_0x4788ba._0x253f9c)](_0x89fae['map'](_0x1141e9=>_0xc1e3d0(_0x3b4a7f(0x56e,0x537,0x555,0x4fe),_0x1141e9))),_0x272655['toolResults']['push'](..._0x89fae);for(const _0x5db7b4 of _0x89fae){await _0x1dfe03({'type':'tool_result','result':_0x5db7b4});}const _0x4c8a0c=await _0xc1e3d0(_0x250ff3(_0x4788ba._0x1d1698,0x48d,0x553,_0x4788ba._0x7217af),createToolResultUserMessage(_0x89fae));await _0x1dfe03({'type':_0x3b4a7f(0x472,0x4e6,_0x4788ba._0xfdcf40,_0x4788ba._0x25fe8c),'message':_0x4c8a0c}),_0x272655[_0x250ff3(_0x4788ba._0x4cc2ae,0x416,0x3fd,0x46b)][_0x3b4a7f(0x4d6,_0x4788ba._0x2a9652,_0x4788ba._0x5b4129,_0x4788ba._0x380c42)](_0x4c8a0c),await _0x295b23(_0x4c8a0c);if(_0xabe337)return{'status':_0x250ff3(0x411,0x443,0x457,0x3f5),'state':_0x272655};await _0x201923();}}catch(_0x3787e5){if(!_0x4dc1ee[_0x250ff3(_0x4788ba._0x47d52e,_0x4788ba._0x58480e,_0x4788ba._0x3b8c69,0x43c)])throw new TurnFailedError(_0x3787e5,_0x272655);return{'status':_0x3b4a7f(_0x4788ba._0x1f5c51,0x48f,_0x4788ba._0x46835b,_0x4788ba._0x41aca5),'state':_0x272655};}}function createSessionId(){const _0x5065d1={_0x47f750:0xc6,_0x3569f9:0x5f,_0x287870:0xa0,_0x3e8bb4:0x406,_0x46b44a:0x3ee,_0x3c683d:0x46a,_0x6ba876:0x3d4};function _0x35e87c(_0x1bce5f,_0x343689,_0x133e37,_0x2a9fbf){return _0x4d4502(_0x343689-0x4f4,_0x343689-0x83,_0x1bce5f,_0x2a9fbf-0x5c);}function _0x2c4ee0(_0x1e4381,_0x253586,_0x3cf0bf,_0x5ef65f){return _0x4d4502(_0x1e4381-0xa2,_0x253586-0x1cd,_0x253586,_0x5ef65f-0x2b);}return _0x2c4ee0(-_0x5065d1._0x47f750,-_0x5065d1._0x3569f9,-0x5e,-_0x5065d1._0x287870)+Date['now']()+'-'+Math[_0x2c4ee0(-0xeb,-0x10e,-0xee,-0xb0)]()[_0x35e87c(0x3df,_0x5065d1._0x3e8bb4,0x437,0x3fe)](0x10)[_0x35e87c(_0x5065d1._0x46b44a,0x40d,_0x5065d1._0x3c683d,_0x5065d1._0x6ba876)](0x2,0xa);}function createTurnId(_0x3506af){const _0x6a77c5={_0x5b164b:0x35d,_0x516df0:0x2f9},_0x4b268a={_0x14b7d0:0x48c};function _0x1eeaa2(_0x166ef4,_0x51c163,_0x4a922c,_0x3c6513){return _0x4d4502(_0x166ef4-_0x4b268a._0x14b7d0,_0x51c163-0x19d,_0x51c163,_0x3c6513-0xb4);}return _0x1eeaa2(0x2f7,_0x6a77c5._0x5b164b,_0x6a77c5._0x516df0,0x2a8)+_0x3506af;}function _0x63b3(_0x114009,_0x4568e5){_0x114009=_0x114009-0x7b;const _0x26cd95=_0x26cd();let _0x63b35e=_0x26cd95[_0x114009];if(_0x63b3['nDHMPW']===undefined){var _0x2ca5ce=function(_0x4f8378){const _0x16f617='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x43043c='',_0x1372d0='';for(let _0xd507e8=0x0,_0x1b4c04,_0x15abb0,_0x4382cd=0x0;_0x15abb0=_0x4f8378['charAt'](_0x4382cd++);~_0x15abb0&&(_0x1b4c04=_0xd507e8%0x4?_0x1b4c04*0x40+_0x15abb0:_0x15abb0,_0xd507e8++%0x4)?_0x43043c+=String['fromCharCode'](0xff&_0x1b4c04>>(-0x2*_0xd507e8&0x6)):0x0){_0x15abb0=_0x16f617['indexOf'](_0x15abb0);}for(let _0x32d5b9=0x0,_0x21a684=_0x43043c['length'];_0x32d5b9<_0x21a684;_0x32d5b9++){_0x1372d0+='%'+('00'+_0x43043c['charCodeAt'](_0x32d5b9)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1372d0);};_0x63b3['TKmmxi']=_0x2ca5ce,_0x63b3['EobtJL']={},_0x63b3['nDHMPW']=!![];}const _0xe74b22=_0x26cd95[0x0],_0x989a0c=_0x114009+_0xe74b22,_0x502c27=_0x63b3['EobtJL'][_0x989a0c];return!_0x502c27?(_0x63b35e=_0x63b3['TKmmxi'](_0x63b35e),_0x63b3['EobtJL'][_0x989a0c]=_0x63b35e):_0x63b35e=_0x502c27,_0x63b35e;}function createDefaultMessage(_0xb5014){if(_0xb5014===void 0x0)return void 0x0;return normalizeUserInput(_0xb5014);}function normalizeUserInput(_0x22799b){const _0x36b053={_0xc69525:0x198,_0x25162e:0x204,_0x548534:0x237,_0x54f81c:0x254,_0x5cdf80:0x282,_0x128d4b:0x253,_0x18e9a3:0x26a,_0x5b4a48:0x294,_0x2724c5:0x202},_0x5d3e78={_0x7598f6:0xa4},_0x499713={_0x566ca1:0x383,_0x244680:0xf3,_0x450cab:0x1a3};function _0x1b491f(_0x43cbb8,_0x29d97b,_0x87ca6e,_0xe70096){return _0x4d4502(_0x43cbb8-_0x499713._0x566ca1,_0x29d97b-_0x499713._0x244680,_0x87ca6e,_0xe70096-_0x499713._0x450cab);}if(typeof _0x22799b===_0x3fd612(0x15c,0x1cd,_0x36b053._0xc69525,_0x36b053._0x25162e))return{'role':_0x1b491f(_0x36b053._0x548534,_0x36b053._0x54f81c,_0x36b053._0x5cdf80,_0x36b053._0x128d4b),'content':[{'type':_0x1b491f(_0x36b053._0x18e9a3,0x27e,_0x36b053._0x5b4a48,_0x36b053._0x2724c5),'text':_0x22799b}]};function _0x3fd612(_0x5d1b7d,_0x2ba620,_0x177cd8,_0x501d3d){return _0x1213ea(_0x5d1b7d-_0x5d3e78._0x7598f6,_0x2ba620-0x3d,_0x501d3d,_0x177cd8-0x340);}return normalizeMessage(_0x22799b);}function resolveChatModel(_0x3ce116){const _0x1e725f={_0x2957ab:0x1b9,_0x558ca6:0x18c,_0x540675:0x166,_0x2c05c8:0x14d,_0x28cce6:0x162,_0x270fed:0x6b,_0x30aef7:0x96,_0x98ab58:0x78},_0x230a71={_0x3cc8f9:0x18},_0x4b432f={_0x160ae1:0x3};if(!_0x3ce116[_0x22a6e8(-_0x1e725f._0x2957ab,-0x17b,-0x1dc,-_0x1e725f._0x558ca6)])throw new Error(_0x22a6e8(-_0x1e725f._0x540675,-_0x1e725f._0x2c05c8,-0x1c0,-_0x1e725f._0x28cce6));function _0x22a6e8(_0x401880,_0x128861,_0x2b1853,_0x26e280){return _0x4d4502(_0x128861- -0x23,_0x128861-_0x4b432f._0x160ae1,_0x401880,_0x26e280-0x1ae);}function _0x4787e2(_0x47d2fb,_0x2652dd,_0x5742d2,_0x309e1a){return _0x1213ea(_0x47d2fb-0x45,_0x2652dd-_0x230a71._0x3cc8f9,_0x2652dd,_0x5742d2-0x17c);}return _0x3ce116[_0x4787e2(-_0x1e725f._0x270fed,-_0x1e725f._0x30aef7,-_0x1e725f._0x98ab58,-0x53)];}function createRegistry(_0x22126f){const _0x9c98ec={_0x58efbf:0x5,_0x25ed2b:0x185,_0x24838d:0x1ef,_0x36a460:0xc4,_0x282e42:0x18,_0x1180f4:0x58},_0x598e76={_0x2525b8:0xff},_0x153ffc={_0x34b412:0x153};if(_0x22126f['registry'])return _0x22126f[_0x4b9232(0xd,-0x43,_0x9c98ec._0x58efbf,0x6b)];const _0xbc62e4=createExtensionRegistry();function _0x4f1217(_0x21a319,_0x22b6de,_0x243931,_0x52d9e0){return _0x1213ea(_0x21a319-0xa,_0x22b6de-_0x153ffc._0x34b412,_0x21a319,_0x52d9e0- -0x1d);}const _0x518f85=_0x22126f[_0x4f1217(-_0x9c98ec._0x25ed2b,-0x23b,-0x199,-_0x9c98ec._0x24838d)]??[];function _0x4b9232(_0x3ca109,_0x2c4cb2,_0x308d91,_0x595d70){return _0x4d4502(_0x308d91-_0x598e76._0x2525b8,_0x2c4cb2-0x148,_0x595d70,_0x595d70-0x150);}for(const _0x200349 of _0x518f85){_0xbc62e4[_0x4b9232(-_0x9c98ec._0x36a460,-_0x9c98ec._0x282e42,-_0x9c98ec._0x1180f4,0x1)](_0x200349);}return _0xbc62e4;}var Agent=class{[_0x1213ea(-0x282,-0x275,-0x1f1,-0x228)];[_0x4d4502(-0x19a,-0x174,-0x203,-0x19f)];[_0x1213ea(-0x1e2,-0x231,-0x285,-0x242)];['sessionId'];[_0x4d4502(-0x19c,-0x1e6,-0x20f,-0x138)];['defaultMessage'];[_0x4d4502(-0x148,-0xef,-0x1b1,-0x108)];constructor(_0x3142f0={}){const _0x1b58e6={_0x28b6df:0x13a,_0x5e4673:0x1ad,_0x1a01d4:0x20a,_0x53ae3c:0x1d7,_0x176697:0x195,_0x185738:0x1b0,_0x239c5e:0x1a2,_0x2032d3:0x22e,_0x3c076e:0x1ec,_0x55a56f:0x103,_0x1710ef:0x131,_0x40635e:0x1b5,_0x3c7b5f:0x14a,_0x52a032:0x183,_0x4cd806:0x122,_0x435bd6:0x170,_0x1964ae:0x189,_0x3655bb:0x157,_0xbfc755:0x15e,_0x22b926:0x112,_0x4b4671:0x140,_0x1713ba:0x1f9,_0x4af1b3:0x154,_0x412621:0x20d,_0x29168f:0x1c5,_0x38831c:0x1c4,_0x79ebb0:0x13f,_0x4dbd9e:0x109,_0x5a697f:0x14c,_0x317a4f:0x171,_0x25c9ed:0x1e5,_0x1e9abf:0x1e3,_0x5638f5:0x18b,_0x3b01a3:0x114},_0x42d18e={_0xf1c1a:0x39,_0x4fa480:0x23,_0x18ac3b:0x4a4,_0x355dbb:0x416},_0x4ca867={_0x2631e8:0x1b6,_0x132144:0x83},_0x45b990={_0x520b3f:0xaf,_0x1be0c8:0x78};this[_0x5830db(_0x1b58e6._0x28b6df,0x162,0x15e,0x184)]=_0x3142f0[_0x2bfd9e(-_0x1b58e6._0x5e4673,-0x18c,-0x182,-0x186)]??createSessionId(),this[_0x5830db(0x1d9,0x17c,_0x1b58e6._0x1a01d4,0x19e)]=0x0;function _0x2bfd9e(_0x4bec2a,_0x484f87,_0x82f0fc,_0x1375fb){return _0x1213ea(_0x4bec2a-_0x45b990._0x520b3f,_0x484f87-0x6,_0x82f0fc,_0x1375fb-_0x45b990._0x1be0c8);}this[_0x2bfd9e(-_0x1b58e6._0x53ae3c,-0x1cb,-_0x1b58e6._0x176697,-_0x1b58e6._0x185738)]=_0x3142f0[_0x2bfd9e(-0x17a,-_0x1b58e6._0x239c5e,-_0x1b58e6._0x2032d3,-_0x1b58e6._0x3c076e)]??'',this[_0x2bfd9e(-0x22b,-0x169,-0x190,-0x1c0)]=(_0x3142f0[_0x5830db(_0x1b58e6._0x55a56f,_0x1b58e6._0x1710ef,_0x1b58e6._0x40635e,_0x1b58e6._0x3c7b5f)]??[])[_0x2bfd9e(-_0x1b58e6._0x52a032,-0x186,-0x177,-0x1b2)](normalizeMessage),this['defaultMessage']=createDefaultMessage(_0x3142f0[_0x5830db(_0x1b58e6._0x4cd806,_0x1b58e6._0x435bd6,_0x1b58e6._0x1964ae,_0x1b58e6._0x3655bb)]);function _0x5830db(_0x4d7ef2,_0x18849d,_0x1dfc8e,_0x4f598d){return _0x1213ea(_0x4d7ef2-_0x4ca867._0x2631e8,_0x18849d-_0x4ca867._0x132144,_0x4d7ef2,_0x4f598d-0x382);}this[_0x5830db(_0x1b58e6._0xbfc755,_0x1b58e6._0x22b926,0x128,_0x1b58e6._0x4b4671)]=createAgentMetrics({'getContextWindowLimit':_0x3142f0[_0x2bfd9e(-0x215,-_0x1b58e6._0x1713ba,-_0x1b58e6._0x4af1b3,-0x1ac)]});const _0x24e178=_0x3142f0['onEvent'],_0x3b7261=async(_0x73cec2,_0x22132b)=>{const _0x336c52={_0x5a875b:0x1ed};function _0x10bd88(_0x45dfeb,_0x47aaf,_0x5849b7,_0x332a36){return _0x5830db(_0x332a36,_0x47aaf-0xc2,_0x5849b7-0x1b7,_0x47aaf-0x2eb);}function _0x291470(_0x59b1f6,_0x37f84a,_0x59cb29,_0x113bb7){return _0x2bfd9e(_0x59b1f6-0x102,_0x37f84a-0xce,_0x59cb29,_0x113bb7-_0x336c52._0x5a875b);}this[_0x291470(_0x42d18e._0xf1c1a,-0x30,-0x27,_0x42d18e._0x4fa480)][_0x10bd88(_0x42d18e._0x18ac3b,0x476,_0x42d18e._0x355dbb,0x42e)](_0x73cec2),await _0x24e178?.(_0x73cec2,_0x22132b);},_0x105082=createInternalToolRuntime(_0x3142f0['tools']??[],{'onEvent':_0x3b7261,'onToolCall':_0x3142f0[_0x5830db(_0x1b58e6._0x412621,0x201,_0x1b58e6._0x29168f,_0x1b58e6._0x38831c)]});this[_0x5830db(_0x1b58e6._0x79ebb0,0x109,_0x1b58e6._0x4dbd9e,_0x1b58e6._0x5a697f)]={'registry':createRegistry(_0x3142f0),'chatModel':resolveChatModel(_0x3142f0),'toolRuntime':_0x105082,'askUser':_0x3142f0['askUser'],'setTopic':_0x3142f0[_0x2bfd9e(-_0x1b58e6._0x317a4f,-_0x1b58e6._0x25c9ed,-0x1df,-_0x1b58e6._0x1e9abf)],'onEvent':_0x3b7261,'sessionDir':_0x3142f0[_0x5830db(_0x1b58e6._0x5638f5,_0x1b58e6._0x3b01a3,0xde,0x146)],'outputFormat':_0x3142f0['outputFormat']};}get['systemPrompt'](){const _0x3bf081={_0x46b56e:0xce};function _0x1fa17e(_0x140668,_0x53450e,_0xdbee14,_0xff70af){return _0x4d4502(_0x53450e-0x609,_0x53450e-_0x3bf081._0x46b56e,_0xff70af,_0xff70af-0x12b);}return this[_0x1fa17e(0x4cd,0x47d,0x4e0,0x4e5)];}[_0x1213ea(-0x249,-0x19c,-0x1d2,-0x1dd)](_0x31ed2b=[]){const _0x4ff247={_0x4aa835:0x15b,_0x482754:0xf5,_0x4df56c:0x12b,_0x233ca6:0x14d},_0x41ed29={_0x11c0bc:0x2f5,_0x27a836:0xa};function _0x31d4f7(_0x119cb8,_0x5cd570,_0x5c3933,_0x3dd701){return _0x4d4502(_0x5cd570-_0x41ed29._0x11c0bc,_0x5cd570-0x0,_0x3dd701,_0x3dd701-_0x41ed29._0x27a836);}function _0x2ed8a0(_0x407de7,_0x1577dd,_0x14f5aa,_0x5e4364){return _0x4d4502(_0x14f5aa-0x4b,_0x1577dd-0xf0,_0x5e4364,_0x5e4364-0x8d);}this['deps'][_0x2ed8a0(-_0x4ff247._0x4aa835,-_0x4ff247._0x482754,-0x12a,-0x105)][_0x2ed8a0(-_0x4ff247._0x4df56c,-_0x4ff247._0x233ca6,-0xf6,-0xe2)](_0x31ed2b);}[_0x1213ea(-0x18f,-0x1df,-0x18b,-0x1d5)](){const _0x220adc={_0x401a6f:0x168,_0x13f388:0x1aa,_0x509175:0x277,_0x37f86b:0xbb,_0x6cdfdd:0xb8},_0x3974f9={_0x2e096e:0x117},_0x26f59f={_0x4865f0:0x16};function _0x46987d(_0x57f470,_0xd3c4d4,_0xe7dce6,_0x2c7ac3){return _0x4d4502(_0xd3c4d4- -0x10d,_0xd3c4d4-0x5b,_0xe7dce6,_0x2c7ac3-_0x26f59f._0x4865f0);}function _0x388f92(_0x5f4988,_0x4b5816,_0x48f259,_0x20ae33){return _0x1213ea(_0x5f4988-0x14b,_0x4b5816-_0x3974f9._0x2e096e,_0x20ae33,_0x4b5816-0xce);}return this[_0x388f92(-0x199,-_0x220adc._0x401a6f,-0x119,-_0x220adc._0x13f388)][_0x46987d(-_0x220adc._0x509175,-0x282,-0x2f3,-0x2a4)][_0x388f92(-_0x220adc._0x37f86b,-0xbe,-_0x220adc._0x6cdfdd,-0xc9)]();}[_0x1213ea(-0x19c,-0x1ed,-0x1fd,-0x1d6)](_0x5702da,_0x2d7024={}){const _0x33d58d={_0x2e68d0:0x2a1,_0x1a7ab5:0x269,_0x160205:0x21b,_0x547740:0x27e,_0x4ba65b:0x2a9,_0x35ab04:0x34c,_0xb7f04e:0x2a8,_0x15a8f3:0x2ab,_0x2fca05:0x308},_0x4ce4c7={_0x1aaa0d:0x16a,_0x61e8f3:0x491},_0x369e41={_0x3fc1dd:0x175,_0x1d4c71:0xd2};function _0x226be2(_0x2ca5ac,_0x3522cc,_0x2d9de3,_0x40711e){return _0x4d4502(_0x40711e- -_0x369e41._0x3fc1dd,_0x3522cc-_0x369e41._0x1d4c71,_0x3522cc,_0x40711e-0x198);}this[_0x35a8e1(0x22f,_0x33d58d._0x2e68d0,_0x33d58d._0x1a7ab5,_0x33d58d._0x160205)]=_0x5702da;function _0x35a8e1(_0x27903e,_0x5acca5,_0x55f596,_0x35fbf9){return _0x1213ea(_0x27903e-_0x4ce4c7._0x1aaa0d,_0x5acca5-0x119,_0x27903e,_0x55f596-_0x4ce4c7._0x61e8f3);}_0x2d7024[_0x226be2(-_0x33d58d._0x1a7ab5,-0x2ab,-_0x33d58d._0x547740,-_0x33d58d._0x4ba65b)]===!![]&&(this[_0x226be2(-0x2f2,-0x363,-_0x33d58d._0x35ab04,-0x311)]=[],this[_0x226be2(-_0x33d58d._0xb7f04e,-_0x33d58d._0x15a8f3,-_0x33d58d._0x2fca05,-0x2bd)]=0x0);}[_0x4d4502(-0x149,-0x128,-0xfb,-0x118)](_0x13b0a1){const _0x45b20e={_0x1bc549:0x2e},_0x1e3111={_0x3e7484:0x134};function _0x46cbff(_0x33588a,_0x178c9b,_0xddce2e,_0x1cee05){return _0x4d4502(_0xddce2e-_0x1e3111._0x3e7484,_0x178c9b-0x18d,_0x1cee05,_0x1cee05-0x154);}this[_0x46cbff(0x3e,-0x76,-_0x45b20e._0x1bc549,0x5)]=_0x13b0a1;}[_0x4d4502(-0xf1,-0x9e,-0x13c,-0x14d)](_0x4d7f6e){const _0x535cbf={_0x305880:0x249,_0x161001:0x1fa,_0x5c8dae:0x280,_0x841df3:0x25f,_0x532d3a:0x324},_0xcf7055={_0x1de166:0x495},_0x4454e6={_0x1c441b:0x19d,_0x13acae:0xfd};function _0x481ad3(_0x2e4816,_0x39564f,_0x299786,_0x9c65fb){return _0x1213ea(_0x2e4816-0x1d4,_0x39564f-_0x4454e6._0x1c441b,_0x299786,_0x39564f- -_0x4454e6._0x13acae);}function _0x40f9e8(_0x280c67,_0x54d76b,_0x491033,_0x5c1aea){return _0x1213ea(_0x280c67-0x157,_0x54d76b-0x91,_0x491033,_0x5c1aea-_0xcf7055._0x1de166);}this[_0x40f9e8(_0x535cbf._0x305880,_0x535cbf._0x161001,_0x535cbf._0x5c8dae,_0x535cbf._0x841df3)][_0x481ad3(-_0x535cbf._0x532d3a,-0x2f1,-0x306,-0x2cc)]=_0x4d7f6e;}async[_0x1213ea(-0x20f,-0x253,-0x1f5,-0x219)](_0x34a900=this[_0x1213ea(-0x1bb,-0x228,-0x1f7,-0x1cc)],_0x504728={}){const _0x53bb1a={_0x6a9838:0x2a9,_0x1df714:0x317,_0x264d32:0x308,_0x2d9c7e:0x49,_0xad8c0e:0x36,_0x2de246:0x2f1,_0x555df4:0x320,_0x1ceada:0x361,_0x51fac0:0x2e4,_0xf83bc3:0x11d,_0x186aeb:0x123,_0x1e6802:0x80,_0x576771:0x63,_0x2cdfc6:0x91,_0x2f186d:0xa3,_0x2bc544:0xd7,_0x7e9a32:0xcc,_0x318416:0xb7,_0x4d1684:0x67,_0x18bf27:0x2b,_0x1dc13d:0x6,_0xda6093:0x5d,_0x1f9e71:0x137,_0x4170a1:0x2e,_0x455e3d:0x47,_0x2ce7b9:0x65,_0x580ca4:0x64,_0x644cf:0x2ba,_0x3627ec:0x54,_0x4d79d8:0x4d},_0x529160={_0x365ba1:0xe6},_0x260481={_0x5202bf:0x159,_0x1f2d05:0x16c};if(!_0x34a900)throw new Error('Agent.send\x20requires\x20a\x20message\x20when\x20no\x20default\x20message\x20is\x20configured');function _0x425dcf(_0x433adf,_0x48678a,_0x539d6b,_0x9373b4){return _0x1213ea(_0x433adf-0xd2,_0x48678a-_0x260481._0x5202bf,_0x9373b4,_0x48678a-_0x260481._0x1f2d05);}function _0x1a664a(_0x30607b,_0x5f53f7,_0x3c45b2,_0x2adfaa){return _0x1213ea(_0x30607b-0x64,_0x5f53f7-0x190,_0x2adfaa,_0x5f53f7- -_0x529160._0x365ba1);}this[_0x1a664a(-_0x53bb1a._0x6a9838,-0x2ca,-_0x53bb1a._0x1df714,-_0x53bb1a._0x264d32)]+=0x1;const _0x382c53=_0x504728[_0x425dcf(-_0x53bb1a._0x2d9c7e,-_0x53bb1a._0xad8c0e,-0x5c,-0x51)];try{const _0xccb4de=await runTurn({'sessionId':this[_0x1a664a(-0x356,-0x2e4,-_0x53bb1a._0x2de246,-0x2df)],'turnId':createTurnId(this[_0x1a664a(-0x2f2,-0x2ca,-0x335,-0x2f0)]),'streaming':_0x504728[_0x1a664a(-0x38d,-_0x53bb1a._0x555df4,-_0x53bb1a._0x1ceada,-_0x53bb1a._0x51fac0)],'signal':_0x504728['signal'],'system':this[_0x425dcf(-0xe2,-0xf8,-_0x53bb1a._0xf83bc3,-_0x53bb1a._0x186aeb)],'messages':this[_0x425dcf(-0x106,-0xcc,-_0x53bb1a._0x1e6802,-_0x53bb1a._0x576771)],'message':normalizeUserInput(_0x34a900),..._0x382c53?{'drainSteering':async()=>(await _0x382c53())[_0x425dcf(-0xe1,-0xbe,-0xd8,-0x5a)](normalizeUserInput)}:{}},this[_0x425dcf(-_0x53bb1a._0x2cdfc6,-0xca,-0xb4,-_0x53bb1a._0x2f186d)]);return this[_0x425dcf(-_0x53bb1a._0x2bc544,-_0x53bb1a._0x7e9a32,-0xb6,-_0x53bb1a._0x318416)]=_0xccb4de[_0x425dcf(-_0x53bb1a._0x4d1684,-_0x53bb1a._0x18bf27,-_0x53bb1a._0x1dc13d,-0x9f)][_0x425dcf(-_0x53bb1a._0xda6093,-0xcc,-_0x53bb1a._0x1f9e71,-0xa0)]['map'](normalizeMessage),_0xccb4de;}catch(_0x3ae3f8){if(_0x3ae3f8 instanceof TurnFailedError){this['messages']=synthesizeMissingToolResults(_0x3ae3f8[_0x425dcf(_0x53bb1a._0x4170a1,-0x2b,-0x6d,-_0x53bb1a._0x455e3d)][_0x425dcf(-_0x53bb1a._0x2ce7b9,-0xcc,-0xf4,-_0x53bb1a._0x580ca4)][_0x1a664a(-0x2c8,-0x310,-_0x53bb1a._0x644cf,-0x36c)](normalizeMessage));throw _0x3ae3f8[_0x425dcf(0x12,-_0x53bb1a._0x3627ec,-_0x53bb1a._0x4d79d8,-0x82)];}throw _0x3ae3f8;}}};export{normalizeToolOutputValue,createToolOutput,ToolExecutionError,defineTool,resolveToolPermissionClass,ToolRegistry,validateToolInput,deriveFinalToolOutput,createInternalToolRuntime,createExtensionRegistry,createAgentMetrics,runTurn,Agent};
|
package/dist/formats/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x123cc0,_0x188d45){const _0x21bcfe={_0x2733f9:0x4f8,_0x3bff58:0x4f3,_0x1cbff1:0x38d,_0xae96bb:0x4e0,_0x264231:0x4eb,_0x3db2d1:0x381,_0x436fa3:0x383,_0x1c033d:0x386,_0x235757:0x38b,_0x51bbdb:0x392,_0x55ab0e:0x396,_0x51ca27:0x38e,_0x3151ae:0x39e,_0x252310:0x391,_0xc14af1:0x393,_0x3b71a8:0x4ec,_0x34862e:0x4e8,_0x2dd10c:0x4e9,_0x35b789:0x4da,_0x4530d6:0x4ed,_0x52ea5c:0x378,_0x24cf43:0x38a,_0x2cb626:0x37f,_0x161cd2:0x38e,_0x2ed67e:0x4e2},_0x11d96a={_0x3d91ca:0x1c8};function _0x3a92a7(_0x305276,_0x13aea6,_0x43d96b,_0x3d1b67){return _0x42d5(_0x13aea6-0x324,_0x43d96b);}const _0x1466e0=_0x123cc0();function _0x52d941(_0xbd16ef,_0x2648ac,_0x2d0919,_0x3ef8fa){return _0x42d5(_0x2d0919-_0x11d96a._0x3d91ca,_0x2648ac);}while(!![]){try{const _0x177e69=-parseInt(_0x3a92a7(0x4f2,_0x21bcfe._0x2733f9,_0x21bcfe._0x3bff58,0x4f6))/0x1*(-parseInt(_0x52d941(0x38d,_0x21bcfe._0x1cbff1,0x393,0x38b))/0x2)+-parseInt(_0x3a92a7(0x4ed,_0x21bcfe._0xae96bb,_0x21bcfe._0x264231,0x4e3))/0x3*(parseInt(_0x52d941(0x394,_0x21bcfe._0x3db2d1,0x38a,_0x21bcfe._0x436fa3))/0x4)+parseInt(_0x52d941(0x391,0x393,0x389,0x38c))/0x5*(parseInt(_0x52d941(0x387,0x389,_0x21bcfe._0x1c033d,_0x21bcfe._0x235757))/0x6)+-parseInt(_0x52d941(0x38b,_0x21bcfe._0x51bbdb,_0x21bcfe._0x1cbff1,_0x21bcfe._0x55ab0e))/0x7*(-parseInt(_0x52d941(_0x21bcfe._0x51ca27,_0x21bcfe._0x3151ae,_0x21bcfe._0x252310,_0x21bcfe._0xc14af1))/0x8)+parseInt(_0x3a92a7(_0x21bcfe._0x3b71a8,_0x21bcfe._0x34862e,0x4f4,_0x21bcfe._0x2dd10c))/0x9*(parseInt(_0x3a92a7(0x4d6,0x4de,_0x21bcfe._0x35b789,0x4ec))/0xa)+parseInt(_0x3a92a7(0x4ea,0x4ec,_0x21bcfe._0x4530d6,0x4f2))/0xb*(-parseInt(_0x52d941(0x388,_0x21bcfe._0x52ea5c,0x380,0x389))/0xc)+parseInt(_0x52d941(_0x21bcfe._0x24cf43,_0x21bcfe._0x2cb626,_0x21bcfe._0x161cd2,0x38a))/0xd*(-parseInt(_0x3a92a7(_0x21bcfe._0x2ed67e,0x4e7,0x4f1,_0x21bcfe._0x3b71a8))/0xe);if(_0x177e69===_0x188d45)break;else _0x1466e0['push'](_0x1466e0['shift']());}catch(_0x3caf88){_0x1466e0['push'](_0x1466e0['shift']());}}}(_0x4c3d,0x47d9c));import{toOpenAiResponsesRequest}from'../chunk-LIE76IJA.js';import'../chunk-IUZALP6K.js';import{INTERRUPTED_TOOL_RESULT_TEXT,compileRequest,createAssistantTextMessage,createReasoningMessage,createTextBlock,createToolResultUserMessage,createToolUseMessage,getReasoningTextFromMessage,getTextFromMessage,getToolResultBlocks,getToolUseBlocks,isProviderStateCompatible,normalizeContent,normalizeMessage,normalizeSystem,normalizeTextBlock,responseToAssistantMessage,synthesizeMissingToolResults,toChatRequest,toChatResponse,toModelRequest,toModelResponse,toProviderModelRequest}from'../chunk-YNOIG4FD.js';var DATA_URI_REGEX=/data:(image\/(?:png|jpeg|jpg|gif|webp));base64,((?:[A-Za-z0-9+/]|\r?\n(?!data:))+={0,2})/g;function normalizeMediaType(_0x229476){const _0x1e0b15={_0x5da15d:0x16e,_0x2b28d8:0x167,_0x127a06:0x177,_0x5aa7d8:0x27b,_0x20f49b:0x277},_0x40aeaf={_0xffae9:0x336},_0x37fa4a={_0x2022e4:0xab};function _0x52462a(_0x3e2b67,_0x6f0fee,_0x3f98d2,_0x3ff935){return _0x42d5(_0x3e2b67-_0x37fa4a._0x2022e4,_0x3f98d2);}function _0x4780ae(_0x58c2b3,_0x3074b0,_0x72a95b,_0x1002a8){return _0x42d5(_0x58c2b3- -_0x40aeaf._0xffae9,_0x1002a8);}return _0x229476===_0x4780ae(-0x16c,-_0x1e0b15._0x5da15d,-_0x1e0b15._0x2b28d8,-_0x1e0b15._0x127a06)?_0x52462a(_0x1e0b15._0x5aa7d8,0x27a,0x277,_0x1e0b15._0x20f49b):_0x229476;}function isValidBase64(_0x2383b6){const _0x544346={_0x19928a:0x15b,_0x3dd740:0x160,_0x1ff78c:0x155,_0x4dc66c:0x149,_0x4b18be:0x15a,_0x2ed0f6:0x146,_0x14491c:0x152};function _0x5e5c84(_0x1693d0,_0x2394b9,_0x314a71,_0x556036){return _0x42d5(_0x556036- -0x325,_0x314a71);}function _0x4cccd5(_0x32035f,_0x2af797,_0x55ce05,_0x5c7a39){return _0x42d5(_0x2af797- -0x32a,_0x32035f);}if(_0x2383b6[_0x5e5c84(-_0x544346._0x19928a,-0x161,-_0x544346._0x3dd740,-0x157)]===0x0||_0x2383b6[_0x5e5c84(-_0x544346._0x1ff78c,-0x150,-_0x544346._0x4dc66c,-0x157)]%0x4!==0x0)return![];return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/[_0x5e5c84(-_0x544346._0x4b18be,-_0x544346._0x2ed0f6,-_0x544346._0x14491c,-0x152)](_0x2383b6);}function _0x4c3d(){const _0x3bddc0=['Aw1Hz2u','zMLSDgvY','BgvUz3rO','C2XPy2u','Aw1Hz2uVANbLzW','yMfZzty0','Bwf0y2HbBgW','DgvZDa','mZiXnuD6Buj6BG','mtqYnZu0ngD6s0TJAW','BgfZDeLUzgv4','mJK5nZCXmeThqwP5sW','zNjVBq','oti1mdq3zNnfD3r6','Dgv4Da','mta4r0juz2rj','CMvWBgfJzq','Aw5KzxG','mtiWmJu1senYBxfl','ngnPAMrNDW','mteYD0reyurK','ounfwKrYDW','odyXoda1AuXqAuDm','mZiYnte3thrSCgvh','ChvZAa','ndrvuefyEKy','ohPPAMDvra','Aw1Hz2uVANbN','mJyYwuHJr09r'];_0x4c3d=function(){return _0x3bddc0;};return _0x4c3d();}function collectImageMatches(_0x402dd4){const _0x5ee78d={_0xf218ba:0x97,_0x87e24:0x98,_0x5dbad3:0x1c8,_0x43c22d:0xb2,_0x58087f:0x1d0,_0x2b6e6e:0x1da},_0x3a77b4={_0x53361d:0x7d,_0xe9887e:0x7a},_0x4423b2={_0x569300:0x14d},_0x2d848f={_0x248630:0x122};function _0x4aee24(_0x572629,_0x2685d7,_0x5300d5,_0x3ff8ae){return _0x42d5(_0x2685d7-0xd,_0x572629);}DATA_URI_REGEX[_0x281963(_0x5ee78d._0xf218ba,_0x5ee78d._0x87e24,0x8b,0x95)]=0x0;function _0x281963(_0x3a3a17,_0x3702bf,_0x4441e7,_0x5da33d){return _0x42d5(_0x3a3a17- -_0x2d848f._0x248630,_0x5da33d);}return Array[_0x4aee24(0x1c2,0x1c8,0x1cf,_0x5ee78d._0x5dbad3)](_0x402dd4[_0x281963(0xb0,0xbf,_0x5ee78d._0x43c22d,0xa7)](DATA_URI_REGEX))[_0x4aee24(_0x5ee78d._0x58087f,_0x5ee78d._0x2b6e6e,0x1e6,0x1cb)](_0x4ca5d0=>{function _0x4f7b7f(_0x12d73f,_0x2a25cd,_0x184401,_0xa44fe6){return _0x4aee24(_0x2a25cd,_0x12d73f- -0x14f,_0x184401-0xf9,_0xa44fe6-_0x4423b2._0x569300);}const _0x2e4c6b=(_0x4ca5d0[0x2]??'')[_0x4f7b7f(_0x3a77b4._0x53361d,0x80,_0x3a77b4._0xe9887e,0x88)](/[\r\n]/g,'');return isValidBase64(_0x2e4c6b);});}function hasPastedImages(_0xdda063){const _0x119332={_0x206a5d:0xa1,_0x447037:0x9f,_0x57b670:0x9b},_0x3c03a4={_0x49bd46:0x26d};function _0x156aac(_0x465e5c,_0x124b8f,_0x49d422,_0x13fbde){return _0x42d5(_0x13fbde- -_0x3c03a4._0x49bd46,_0x465e5c);}return collectImageMatches(_0xdda063)[_0x156aac(-_0x119332._0x206a5d,-_0x119332._0x447037,-_0x119332._0x57b670,-_0x119332._0x447037)]>0x0;}function contentFromPastedText(_0x1b0df5){const _0xd6fb34={_0x9c27b2:0x352,_0x7d53d:0x352,_0x1eea9b:0x359,_0x42c74e:0x34f,_0x110dcf:0x34d,_0x405160:0x35e,_0x4da996:0x35c,_0x237f5c:0xfa,_0x377e24:0x359,_0x9e7994:0x354,_0x2ff159:0x367,_0x2a31e1:0x361,_0x48c35e:0x356,_0xf80f9a:0x10c,_0x4ad476:0xfe,_0xda91a3:0x345},_0x4efd20={_0x4d28f9:0x192},_0x34c79b={_0x2f4f3e:0xd0};function _0x47f422(_0x5dc546,_0x144385,_0x4235bd,_0x2b2204){return _0x42d5(_0x4235bd- -_0x34c79b._0x2f4f3e,_0x5dc546);}const _0x532e33=collectImageMatches(_0x1b0df5),_0x5c4bd6=[];let _0x1a8762=0x0;for(const _0xe10ae7 of _0x532e33){const _0x225bb1=_0xe10ae7[_0x175314(_0xd6fb34._0x9c27b2,0x350,0x351,_0xd6fb34._0x7d53d)]??0x0,[_0x5cd34f,_0x42e6f6,_0x29941b]=_0xe10ae7;_0x225bb1>_0x1a8762&&_0x5c4bd6[_0x175314(_0xd6fb34._0x1eea9b,_0xd6fb34._0x42c74e,0x35a,_0xd6fb34._0x110dcf)]({'type':_0x175314(_0xd6fb34._0x42c74e,0x358,0x35d,0x34c),'text':_0x1b0df5['slice'](_0x1a8762,_0x225bb1)}),_0x5c4bd6['push']({'type':_0x175314(_0xd6fb34._0x405160,0x366,0x363,_0xd6fb34._0x4da996),'source':{'type':_0x175314(0x363,0x36b,0x36c,0x36b),'media_type':normalizeMediaType(_0x42e6f6),'data':_0x29941b[_0x47f422(_0xd6fb34._0x237f5c,0xec,0xef,0xf2)](/[\r\n]/g,'')}}),_0x1a8762=_0x225bb1+_0x5cd34f[_0x175314(0x360,0x367,0x35d,0x364)];}function _0x175314(_0x3f9f98,_0x3faa0d,_0xcda2d8,_0x53d18f){return _0x42d5(_0x3f9f98-_0x4efd20._0x4d28f9,_0x53d18f);}return _0x1a8762<_0x1b0df5[_0x175314(0x360,0x35f,0x35b,0x35c)]&&_0x5c4bd6[_0x175314(_0xd6fb34._0x377e24,_0xd6fb34._0x9e7994,0x365,_0xd6fb34._0x2ff159)]({'type':'text','text':_0x1b0df5[_0x175314(_0xd6fb34._0x2a31e1,0x36f,_0xd6fb34._0x48c35e,0x353)](_0x1a8762)}),_0x5c4bd6[_0x47f422(_0xd6fb34._0xf80f9a,0x106,_0xd6fb34._0x4ad476,0xf3)]>0x0?_0x5c4bd6:[{'type':_0x175314(0x34f,0x34a,_0xd6fb34._0xda91a3,_0xd6fb34._0x7d53d),'text':_0x1b0df5}];}function _0x42d5(_0x567e9b,_0x11d1e3){_0x567e9b=_0x567e9b-0x1b8;const _0x4c3d58=_0x4c3d();let _0x42d50d=_0x4c3d58[_0x567e9b];if(_0x42d5['wDhhrc']===undefined){var _0x48bb77=function(_0xc58eaf){const _0x5c5a8d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x229476='',_0x2383b6='';for(let _0x402dd4=0x0,_0x4ca5d0,_0x2e4c6b,_0xdda063=0x0;_0x2e4c6b=_0xc58eaf['charAt'](_0xdda063++);~_0x2e4c6b&&(_0x4ca5d0=_0x402dd4%0x4?_0x4ca5d0*0x40+_0x2e4c6b:_0x2e4c6b,_0x402dd4++%0x4)?_0x229476+=String['fromCharCode'](0xff&_0x4ca5d0>>(-0x2*_0x402dd4&0x6)):0x0){_0x2e4c6b=_0x5c5a8d['indexOf'](_0x2e4c6b);}for(let _0x1b0df5=0x0,_0x532e33=_0x229476['length'];_0x1b0df5<_0x532e33;_0x1b0df5++){_0x2383b6+='%'+('00'+_0x229476['charCodeAt'](_0x1b0df5)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2383b6);};_0x42d5['XpdgUe']=_0x48bb77,_0x42d5['xOZxjS']={},_0x42d5['wDhhrc']=!![];}const _0x169f1f=_0x4c3d58[0x0],_0x154171=_0x567e9b+_0x169f1f,_0xaed5c0=_0x42d5['xOZxjS'][_0x154171];return!_0xaed5c0?(_0x42d50d=_0x42d5['XpdgUe'](_0x42d50d),_0x42d5['xOZxjS'][_0x154171]=_0x42d50d):_0x42d50d=_0xaed5c0,_0x42d50d;}export{INTERRUPTED_TOOL_RESULT_TEXT,compileRequest,contentFromPastedText,createAssistantTextMessage,createReasoningMessage,createTextBlock,createToolResultUserMessage,createToolUseMessage,getReasoningTextFromMessage,getTextFromMessage,getToolResultBlocks,getToolUseBlocks,hasPastedImages,isProviderStateCompatible,normalizeContent,normalizeMessage,normalizeSystem,normalizeTextBlock,responseToAssistantMessage,synthesizeMissingToolResults,toChatRequest,toChatResponse,toModelRequest,toModelResponse,toOpenAiResponsesRequest,toProviderModelRequest};
|