@nuvin/agent-core 0.3.0-rc.4 → 0.3.0-rc.6

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.
@@ -0,0 +1,87 @@
1
+ import type { ChildProcess } from "node:child_process";
2
+ export type BackgroundBashStartRequest = Readonly<{
3
+ command: string;
4
+ description: string;
5
+ cwd: string;
6
+ stripAnsi: boolean;
7
+ prepare(): Promise<void>;
8
+ spawn(): ChildProcess;
9
+ }>;
10
+ export type BackgroundBashAttachInput = Readonly<{
11
+ child: ChildProcess;
12
+ description: string;
13
+ commandPreview: string;
14
+ cwd: string;
15
+ stripAnsi: boolean;
16
+ }>;
17
+ export type BackgroundBashAttached = Readonly<{
18
+ pid: number | null;
19
+ }>;
20
+ export type BackgroundBashTerminalResult = Readonly<{
21
+ status: "exited" | "killed" | "error";
22
+ exitCode: number | null;
23
+ signal: string | null;
24
+ truncated: boolean;
25
+ totalDropped: number;
26
+ gracefulRequested: boolean;
27
+ forceRequested: boolean;
28
+ errorCode?: string;
29
+ }>;
30
+ export type BackgroundBashStartErrorCode = "background-start-cancelled" | "background-start-failed";
31
+ /** Stable detached-only start failure that never exposes provider or OS error text. */
32
+ export declare class BackgroundBashStartError extends Error {
33
+ readonly code: BackgroundBashStartErrorCode;
34
+ constructor(code: BackgroundBashStartErrorCode);
35
+ }
36
+ export type BackgroundBashInspection = Readonly<{
37
+ description: string;
38
+ commandPreview: string;
39
+ cwd: string;
40
+ pid: number | null;
41
+ status: "running" | "terminating" | "exited" | "killed" | "error";
42
+ offset: number;
43
+ nextOffset: number;
44
+ endOffset: number;
45
+ output: string;
46
+ exitCode: number | null;
47
+ signal: string | null;
48
+ truncated: boolean;
49
+ totalDropped: number;
50
+ gracefulRequested: boolean;
51
+ forceRequested: boolean;
52
+ errorCode?: string;
53
+ }>;
54
+ export type BackgroundBashReadResult = Readonly<{
55
+ shellId: string;
56
+ offset: number;
57
+ nextOffset: number;
58
+ output: string;
59
+ status: "running" | "exited" | "killed" | "error";
60
+ exitCode: number | null;
61
+ signal: string | null;
62
+ truncated: boolean;
63
+ totalDropped: number;
64
+ }>;
65
+ export type BackgroundBashTerminationResult = Readonly<{
66
+ shellId: string;
67
+ outcome: "killed" | "already-terminal" | "failed";
68
+ status: "terminating" | "exited" | "killed" | "error";
69
+ exitCode: number | null;
70
+ signal: string | null;
71
+ errorCode?: string;
72
+ gracefulRequested: boolean;
73
+ forceRequested: boolean;
74
+ }>;
75
+ export interface BackgroundBashController {
76
+ start(request: BackgroundBashStartRequest): Promise<Readonly<{
77
+ shellId: string;
78
+ pid: number | null;
79
+ status: "running";
80
+ }>>;
81
+ read(request: Readonly<{
82
+ shellId: string;
83
+ offset?: number;
84
+ }>): Promise<BackgroundBashReadResult>;
85
+ kill(shellId: string): Promise<BackgroundBashTerminationResult>;
86
+ }
87
+ //# sourceMappingURL=background-bash-controller.d.ts.map
@@ -0,0 +1,49 @@
1
+ import type { BackgroundBashAttached, BackgroundBashAttachInput, BackgroundBashInspection, BackgroundBashTerminalResult, BackgroundBashTerminationResult } from "./background-bash-controller.ts";
2
+ import { type ProcessTreeSignalAdapter } from "./process-tree-termination.ts";
3
+ export type BackgroundBashProcessStoreOptions = Readonly<{
4
+ maxChars?: number;
5
+ maxEntries?: number;
6
+ platform?: NodeJS.Platform;
7
+ signalAdapter?: ProcessTreeSignalAdapter;
8
+ terminationWindowMs?: number;
9
+ }>;
10
+ /** Child-process resources only. Admission, ids, owners, and persistence belong to BackgroundWorkService. */
11
+ export declare class BackgroundBashProcessStore {
12
+ private readonly entries;
13
+ private readonly maxChars;
14
+ private readonly maxEntries;
15
+ private readonly platform;
16
+ private readonly signalAdapter;
17
+ private readonly terminationWindowMs;
18
+ constructor(options?: BackgroundBashProcessStoreOptions);
19
+ attach(workId: string, input: BackgroundBashAttachInput): BackgroundBashAttached;
20
+ waitForTerminal(workId: string): Promise<BackgroundBashTerminalResult>;
21
+ inspect(workId: string, request: {
22
+ offset?: number;
23
+ limit: number;
24
+ }): BackgroundBashInspection;
25
+ terminate(workId: string, signalAdapter?: ProcessTreeSignalAdapter, forceIfUnconfirmed?: boolean): Promise<BackgroundBashTerminationResult>;
26
+ release(workId: string): void;
27
+ private requestTermination;
28
+ private confirmed;
29
+ private failed;
30
+ private terminationResult;
31
+ private wait;
32
+ private settle;
33
+ private appendDecoded;
34
+ private flush;
35
+ private append;
36
+ private evict;
37
+ private entry;
38
+ }
39
+ export declare function filterBackgroundBashOutput(input: Readonly<{
40
+ output: string;
41
+ offset: number;
42
+ nextOffset: number;
43
+ status: "running" | "exited" | "killed" | "error";
44
+ regex?: string;
45
+ }>): Readonly<{
46
+ output: string;
47
+ nextOffset: number;
48
+ }>;
49
+ //# sourceMappingURL=background-bash-process.d.ts.map
@@ -1,9 +1,10 @@
1
- import type { BackgroundProcessRegistry } from "./background-process-registry.ts";
1
+ import type { BackgroundBashController } from "./background-bash-controller.ts";
2
2
  export interface BashOutputToolOptions {
3
- registry: BackgroundProcessRegistry;
3
+ backgroundController: BackgroundBashController;
4
4
  }
5
5
  export declare function createBashOutputTool(options: BashOutputToolOptions): import("../../shared/types.ts").ToolDefinition<{
6
6
  shellId: string;
7
+ offset?: number | undefined;
7
8
  regex?: string | undefined;
8
9
  }, never, import("../../shared/types.ts").ToolOutputEnvelope, {
9
10
  type: "object";
@@ -11,6 +12,9 @@ export declare function createBashOutputTool(options: BashOutputToolOptions): im
11
12
  shellId: {
12
13
  type: "string";
13
14
  };
15
+ offset: {
16
+ type: "number";
17
+ };
14
18
  regex: {
15
19
  type: "string";
16
20
  };
@@ -1,5 +1,5 @@
1
1
  import type { BashExecutionTarget, ToolExecutionContext } from "../../shared/types.ts";
2
- import type { BackgroundProcessRegistry } from "./background-process-registry.ts";
2
+ import { type BackgroundBashController } from "./background-bash-controller.ts";
3
3
  export interface BashToolInput {
4
4
  command: string;
5
5
  description: string;
@@ -20,7 +20,7 @@ export interface BashToolOptions {
20
20
  stripAnsi?: boolean;
21
21
  scrubEnvKeys?: readonly string[];
22
22
  scrubEnvPrefixes?: readonly string[];
23
- backgroundRegistry?: BackgroundProcessRegistry;
23
+ backgroundController?: BackgroundBashController;
24
24
  verifyExecution?: (target: BashExecutionTarget, authorization: unknown, ctx: ToolExecutionContext) => Promise<void> | void;
25
25
  }
26
26
  export declare function resolveBashExecutionTarget(input: Pick<BashToolInput, "command" | "cwd" | "runInBackground">, options?: Pick<BashToolOptions, "allowedDirs" | "defaultCwd" | "shellPath">): BashExecutionTarget;
@@ -1,6 +1,6 @@
1
- import type { BackgroundProcessRegistry } from "./background-process-registry.ts";
1
+ import type { BackgroundBashController } from "./background-bash-controller.ts";
2
2
  export interface KillShellToolOptions {
3
- registry: BackgroundProcessRegistry;
3
+ backgroundController: BackgroundBashController;
4
4
  }
5
5
  export declare function createKillShellTool(options: KillShellToolOptions): import("../../shared/types.ts").ToolDefinition<{
6
6
  shellId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuvin/agent-core",
3
- "version": "0.3.0-rc.4",
3
+ "version": "0.3.0-rc.6",
4
4
  "private": false,
5
5
  "description": "Core agent, model, format, and tool primitives for Nuvin",
6
6
  "license": "Apache-2.0",
@@ -56,7 +56,7 @@
56
56
  "tsup": "^8.5.1",
57
57
  "typescript": "^6.0.2",
58
58
  "vitest": "^4.1.2",
59
- "@nuvin/config": "0.3.1-rc.1"
59
+ "@nuvin/config": "0.3.1-rc.3"
60
60
  },
61
61
  "dependencies": {
62
62
  "@anthropic-ai/sdk": "^0.82.0",
@@ -1,32 +0,0 @@
1
- import type { TransformerExtensionRegistration } from "../shared/types.ts";
2
- /**
3
- * Options for {@link createTopicReminderExtension}.
4
- * The host supplies a live getter so the extension always reflects the
5
- * most-recently-set topic without holding a stale captured value.
6
- */
7
- export interface TopicReminderExtensionOptions {
8
- /** Return the current session topic, or undefined if not yet set. */
9
- getTopic: () => string | undefined;
10
- }
11
- /**
12
- * Build the `<system-reminder>` text that instructs the agent whether to call
13
- * `UpdateTopic`. Exported for unit testing.
14
- */
15
- export declare function buildTopicReminderText(topic: string): string;
16
- /**
17
- * Creates a `beforeModelRequest` transformer that appends a `<system-reminder>`
18
- * TextBlock to every model request, informing the agent of the current session
19
- * topic and nudging it to call `UpdateTopic` only when the topic truly changes.
20
- *
21
- * - Reads `getTopic()` **live** on each run so the reminder always reflects the
22
- * most recent topic, even across tool calls within a single turn.
23
- * - When `getTopic()` returns `undefined` the placeholder text `"not yet set"`
24
- * is used so the agent is still nudged from the very first turn.
25
- * - Returns a **new** `ChatRequest` with a **new** `system` array; the incoming
26
- * array is never mutated in place.
27
- *
28
- * Order 3000 runs after the context-monitor observer (order 2000) registered in
29
- * daemon-session-host so the reminder is always the last thing appended.
30
- */
31
- export declare function createTopicReminderExtension(options: TopicReminderExtensionOptions): TransformerExtensionRegistration<"beforeModelRequest">;
32
- //# sourceMappingURL=topic-reminder-extension.d.ts.map
@@ -1 +0,0 @@
1
- (function(_0x480fa6,_0x4e36f6){const _0x50e171={_0x5f6d25:0x441,_0x110b92:0x4d5,_0x1605e8:0x5ad,_0x2a9d98:0x30a,_0x56f7df:0x363,_0x5353ad:0x440,_0x1aaa11:0x486,_0x277b31:0x3ea,_0x61221d:0x395,_0x25fa47:0x322,_0x523d6f:0x304,_0x4366ba:0x4ae,_0x164f6b:0x4ee,_0x15c63c:0x375,_0x4cc877:0x302,_0x475fc6:0x4b2,_0x122255:0x554,_0x20a04c:0x513,_0x523693:0x4da},_0x52cf8c={_0x72739a:0x14b},_0x4d415e=_0x480fa6();function _0x539e4f(_0x349da1,_0x27bda2,_0x4aa76b,_0xc3dfc0){return _0x5e07(_0x349da1-0x311,_0x4aa76b);}function _0x7e1a53(_0x1bca40,_0x13b39f,_0x39aa78,_0x586958){return _0x5e07(_0x13b39f-_0x52cf8c._0x72739a,_0x1bca40);}while(!![]){try{const _0xd8d22e=parseInt(_0x539e4f(0x4a5,0x495,0x472,_0x50e171._0x5f6d25))/0x1*(parseInt(_0x539e4f(0x52a,_0x50e171._0x110b92,0x4cc,_0x50e171._0x1605e8))/0x2)+parseInt(_0x7e1a53(0x2b8,_0x50e171._0x2a9d98,_0x50e171._0x56f7df,0x325))/0x3*(-parseInt(_0x539e4f(_0x50e171._0x5353ad,_0x50e171._0x1aaa11,0x488,_0x50e171._0x277b31))/0x4)+-parseInt(_0x7e1a53(_0x50e171._0x61221d,_0x50e171._0x25fa47,0x303,_0x50e171._0x523d6f))/0x5+-parseInt(_0x539e4f(0x508,_0x50e171._0x4366ba,_0x50e171._0x164f6b,0x518))/0x6+parseInt(_0x7e1a53(0x36f,_0x50e171._0x15c63c,0x31a,0x3d3))/0x7*(parseInt(_0x7e1a53(0x296,_0x50e171._0x4cc877,0x321,0x335))/0x8)+-parseInt(_0x539e4f(0x4b2,0x4e7,_0x50e171._0x475fc6,0x4c8))/0x9+parseInt(_0x539e4f(0x4fd,_0x50e171._0x122255,_0x50e171._0x20a04c,_0x50e171._0x523693))/0xa;if(_0xd8d22e===_0x4e36f6)break;else _0x4d415e['push'](_0x4d415e['shift']());}catch(_0x4ebd3b){_0x4d415e['push'](_0x4d415e['shift']());}}}(_0x4f1b,0xb43d5));function _0x129ebd(_0x29a94a,_0x3e330f,_0x3efd77,_0x547f0f){const _0x3b0686={_0x95ebd1:0x370};return _0x5e07(_0x3efd77-_0x3b0686._0x95ebd1,_0x3e330f);}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(_0x41ee9d){const _0x521f61={_0x9abe1b:0x146,_0x4adef1:0x193,_0x5671c8:0x1e6,_0x17a671:0x12e},_0x422705={_0x3ea4bb:0x29};function _0x2e4345(_0x126278,_0x9ed219,_0x53bdda,_0x2b3026){return _0x5e07(_0x9ed219- -_0x422705._0x3ea4bb,_0x53bdda);}return typeof _0x41ee9d==='object'&&_0x41ee9d!==null&&!Array[_0x2e4345(_0x521f61._0x9abe1b,_0x521f61._0x4adef1,_0x521f61._0x5671c8,_0x521f61._0x17a671)](_0x41ee9d);}function isToolOutputEnvelope(_0x1cc92f){const _0x2176ae={_0x5a6581:0x2d1,_0x41bed1:0x31d,_0x5e75f7:0x30,_0x2026f7:0x40,_0x3f3049:0x1a,_0x5dd30f:0x87,_0x5786ab:0x14,_0x26fc9e:0x2de,_0x37611e:0x2db,_0x298c0f:0x32a},_0x442e87={_0x1c9cea:0x152};if(typeof _0x1cc92f!==_0x1b1260(_0x2176ae._0x5a6581,0x314,_0x2176ae._0x41bed1,0x327)||_0x1cc92f===null||Array[_0x2b7d7b(-_0x2176ae._0x5e75f7,_0x2176ae._0x2026f7,_0x2176ae._0x3f3049,-0x1)](_0x1cc92f))return![];function _0x2b7d7b(_0x419eeb,_0x44c58f,_0x1823eb,_0x1512ab){return _0x5e07(_0x1823eb- -0x1a2,_0x1512ab);}if(typeof _0x1cc92f[_0x2b7d7b(0x3,_0x2176ae._0x5dd30f,0x84,_0x2176ae._0x5786ab)]!=='string')return![];const _0xc64d4d=_0x1cc92f[_0x1b1260(_0x2176ae._0x26fc9e,_0x2176ae._0x37611e,0x27a,_0x2176ae._0x298c0f)];function _0x1b1260(_0x387121,_0xc39708,_0x44d511,_0x463de6){return _0x5e07(_0x387121-_0x442e87._0x1c9cea,_0xc39708);}return _0xc64d4d===void 0x0||isJsonObject(_0xc64d4d);}function validateAgainstSchema(_0x4af47d,_0x309748,_0x28afbd){const _0x1a9f25={_0x441fc2:0x34f,_0x4896f1:0x324,_0x1737d6:0x3a6,_0xc398fd:0x30c,_0x320cb0:0x34f,_0x29ae3f:0x333,_0xc51e92:0x39f,_0x1a780d:0x35e,_0x2c8ece:0x57e,_0x4f8666:0x541,_0x2fb6f8:0x560,_0x3016aa:0x525,_0x3bb077:0x294,_0x2a66d6:0x2a6,_0x13b9c2:0x26a,_0x2fd2f7:0x2f2,_0x3d3156:0x2e2,_0x5437f1:0x547,_0x5cf5ca:0x5a5,_0x2fb1fe:0x314,_0x21decc:0x2f9,_0x1f1188:0x354,_0x3b1400:0x2e3,_0x3bcf25:0x514,_0x34283b:0x5c3,_0x14c693:0x604,_0x4e1dff:0x343,_0x564d51:0x2d6,_0x489578:0x59d,_0x387599:0x314,_0x15fead:0x33d,_0xca1695:0x59e,_0x53d122:0x5da,_0x48b1c6:0x623,_0x461f15:0x2cb,_0x14c76c:0x31f,_0x5b4a98:0x58b,_0x1292fa:0x5fb,_0x2a0fbc:0x5ca,_0x1d8a84:0x2cb,_0x16c07e:0x2a0,_0x2ea8fa:0x251,_0x134ecd:0x5e5,_0x493d11:0x2e5,_0xcc335a:0x60b,_0x1de9c3:0x570,_0x482773:0x316,_0x25ca86:0x35a,_0x50f96b:0x3c0,_0x5e13ec:0x36b,_0x1c3036:0x35c,_0x33486e:0x32d,_0x587580:0x2fc,_0x4a154f:0x54e,_0x454c4c:0x4cf,_0x38d6da:0x504,_0x4512d6:0x59c,_0x5b8606:0x55e,_0x3526d2:0x57a,_0x1c33df:0x629,_0x5a3560:0x614,_0x59bcea:0x51f,_0xbd074e:0x58e,_0x2eadfd:0x2d9,_0x1b2112:0x352,_0x22667b:0x536,_0x31a196:0x515,_0x4432bb:0x562,_0x2c0f6e:0x4f4,_0x2d0df2:0x322,_0x4eb63c:0x36b,_0x11cb5e:0x29f,_0x2c02c3:0x537,_0x2cb71b:0x50a,_0x5d8e5a:0x2b1},_0x5ab417={_0x51a668:0xa5,_0x31dbea:0xb0},_0x1129f6={_0x1f66ba:0x3cf};function _0x7c4583(_0x5cb6e3,_0x33cb00,_0x4ebb93,_0x1de6b5){return _0x5e07(_0x5cb6e3-_0x1129f6._0x1f66ba,_0x4ebb93);}function _0x370003(_0x20dfdb,_0x49a75e,_0x22dc14,_0x3cf3e4){return _0x5e07(_0x20dfdb-0x153,_0x22dc14);}if(_0x370003(_0x1a9f25._0x441fc2,_0x1a9f25._0x4896f1,_0x1a9f25._0x1737d6,_0x1a9f25._0xc398fd)in _0x28afbd){const _0x5e0c68=_0x28afbd[_0x370003(_0x1a9f25._0x320cb0,_0x1a9f25._0x29ae3f,_0x1a9f25._0xc51e92,_0x1a9f25._0x1a780d)][_0x7c4583(0x521,_0x1a9f25._0x2c8ece,_0x1a9f25._0x4f8666,0x50a)](_0x1f5050=>{try{return validateAgainstSchema(_0x4af47d,_0x309748,_0x1f5050),!![];}catch{return![];}});if(!_0x5e0c68)throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x4af47d+_0x7c4583(0x52b,_0x1a9f25._0x2fb6f8,0x50f,_0x1a9f25._0x3016aa));return;}switch(_0x28afbd[_0x370003(_0x1a9f25._0x3bb077,_0x1a9f25._0x2a66d6,_0x1a9f25._0x13b9c2,0x23e)]){case'string':if(typeof _0x309748!==_0x370003(_0x1a9f25._0x2fd2f7,0x356,0x368,_0x1a9f25._0x3d3156))throw new Error(_0x7c4583(_0x1a9f25._0x5437f1,0x5c1,0x573,0x559)+_0x4af47d+_0x7c4583(0x5c9,0x630,0x634,_0x1a9f25._0x5cf5ca));if(_0x28afbd[_0x370003(_0x1a9f25._0x2fb1fe,_0x1a9f25._0x21decc,_0x1a9f25._0x1f1188,_0x1a9f25._0x3b1400)]!==void 0x0&&!_0x28afbd[_0x7c4583(0x590,0x522,_0x1a9f25._0x3bcf25,0x50e)][_0x7c4583(_0x1a9f25._0x34283b,0x575,0x5e8,_0x1a9f25._0x14c693)](_0x309748))throw new Error(_0x370003(0x2cb,0x27d,_0x1a9f25._0x4e1dff,_0x1a9f25._0x564d51)+_0x4af47d+_0x7c4583(0x552,_0x1a9f25._0x489578,0x563,0x4f7)+_0x28afbd[_0x370003(_0x1a9f25._0x387599,0x34c,0x2aa,_0x1a9f25._0x15fead)]['join'](',\x20'));return;case _0x7c4583(0x5da,_0x1a9f25._0xca1695,0x585,0x5ea):if(typeof _0x309748!==_0x7c4583(_0x1a9f25._0x53d122,0x606,_0x1a9f25._0x48b1c6,0x55e))throw new Error(_0x370003(_0x1a9f25._0x461f15,_0x1a9f25._0x14c76c,0x309,0x27a)+_0x4af47d+':\x20expected\x20number');return;case _0x7c4583(0x5aa,0x537,0x582,0x622):if(typeof _0x309748!==_0x7c4583(0x5aa,_0x1a9f25._0x5b4a98,_0x1a9f25._0x1292fa,_0x1a9f25._0x2a0fbc))throw new Error(_0x370003(_0x1a9f25._0x1d8a84,0x254,_0x1a9f25._0x16c07e,_0x1a9f25._0x2ea8fa)+_0x4af47d+_0x7c4583(_0x1a9f25._0x134ecd,0x568,0x661,0x5c3));return;case _0x370003(0x2d4,_0x1a9f25._0x493d11,0x315,0x302):if(!Array[_0x7c4583(0x58b,_0x1a9f25._0xcc335a,_0x1a9f25._0x1de9c3,0x5ae)](_0x309748))throw new Error(_0x370003(0x2cb,0x2b0,0x338,_0x1a9f25._0x482773)+_0x4af47d+_0x370003(_0x1a9f25._0x25ca86,0x3d2,_0x1a9f25._0x50f96b,_0x1a9f25._0x5e13ec));_0x309748[_0x370003(_0x1a9f25._0x1c3036,_0x1a9f25._0x33486e,0x378,_0x1a9f25._0x587580)]((_0x547d8d,_0x5f25ce)=>{const _0x409280={_0x2b168b:0x18c,_0x4f2223:0x13c,_0x17969a:0xd9};function _0x3de791(_0x4dea4b,_0x880e8,_0x4850cf,_0x1580c2){return _0x370003(_0x4850cf- -_0x409280._0x2b168b,_0x880e8-_0x409280._0x4f2223,_0x880e8,_0x1580c2-_0x409280._0x17969a);}validateAgainstSchema(_0x4af47d+'['+_0x5f25ce+']',_0x547d8d,_0x28afbd[_0x3de791(_0x5ab417._0x51a668,_0x5ab417._0x31dbea,0x112,0xc5)]);});return;case _0x7c4583(_0x1a9f25._0x4a154f,_0x1a9f25._0x454c4c,_0x1a9f25._0x38d6da,_0x1a9f25._0x4512d6):if(!isJsonObject(_0x309748))throw new Error(_0x7c4583(_0x1a9f25._0x5437f1,_0x1a9f25._0x5b8606,0x5a9,_0x1a9f25._0x3526d2)+_0x4af47d+_0x7c4583(0x5b7,0x572,_0x1a9f25._0x1c33df,_0x1a9f25._0x5a3560));for(const _0x430cd3 of _0x28afbd[_0x7c4583(_0x1a9f25._0x59bcea,0x4b8,_0x1a9f25._0xbd074e,0x574)]??[]){if(!Object[_0x370003(_0x1a9f25._0x2eadfd,0x28c,_0x1a9f25._0x1b2112,0x2fc)](_0x309748,_0x430cd3))throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x4af47d+':\x20missing\x20required\x20field\x20\x22'+_0x430cd3+'\x22');}if(_0x28afbd[_0x7c4583(_0x1a9f25._0x22667b,0x550,0x4dc,0x53a)]===![]){const _0x510906=Object[_0x7c4583(_0x1a9f25._0x31a196,_0x1a9f25._0x4432bb,_0x1a9f25._0x2c0f6e,0x518)](_0x309748)[_0x370003(_0x1a9f25._0x2d0df2,_0x1a9f25._0x4eb63c,0x337,_0x1a9f25._0x11cb5e)](_0x4a000a=>!Object['hasOwn'](_0x28afbd['properties'],_0x4a000a));if(_0x510906!==void 0x0)throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x4af47d+':\x20unexpected\x20field\x20\x22'+_0x510906+'\x22');}for(const [_0x31d7fd,_0x6702a4]of Object[_0x7c4583(0x53d,0x4fc,_0x1a9f25._0x2c02c3,_0x1a9f25._0x2cb71b)](_0x28afbd[_0x370003(0x288,0x271,_0x1a9f25._0x5d8e5a,0x212)])){Object[_0x7c4583(0x555,0x550,0x568,0x582)](_0x309748,_0x31d7fd)&&validateAgainstSchema(_0x4af47d+'.'+_0x31d7fd,_0x309748[_0x31d7fd],_0x6702a4);}}}function normalizeToolOutputValue(_0x2afb42){const _0x491d02={_0x131c31:0x2c7,_0x305064:0x2fe,_0x14bfb2:0x302,_0x53ee60:0x2f9,_0x416ef8:0x242,_0x49a69c:0x1d8,_0x7edd44:0x201,_0x4a9e05:0x24b,_0x200e9a:0x1ec},_0x425c99={_0xab22ce:0xa1},_0x4214db={_0x2f2db2:0xf0};if(isToolOutputEnvelope(_0x2afb42))return{'output':_0x2afb42['output'],'structured':_0x2afb42['structured']??{'value':_0x2afb42[_0x38b181(_0x491d02._0x131c31,0x2eb,0x280,0x33a)]},..._0x2afb42['content']!==void 0x0?{'content':_0x2afb42[_0x407e71(_0x491d02._0x305064,0x2e1,0x339,_0x491d02._0x14bfb2)]}:{}};if(typeof _0x2afb42==='string')return{'output':_0x2afb42,'structured':{'value':_0x2afb42}};if(typeof _0x2afb42==='object'&&_0x2afb42!==null&&!Array[_0x407e71(_0x491d02._0x53ee60,0x2ac,0x22d,_0x491d02._0x416ef8)](_0x2afb42))return{'output':JSON[_0x38b181(_0x491d02._0x49a69c,_0x491d02._0x7edd44,0x1c4,_0x491d02._0x4a9e05)](_0x2afb42,null,0x2),'structured':_0x2afb42};function _0x407e71(_0x59320c,_0x57fe1f,_0x5de527,_0x1f814b){return _0x5e07(_0x57fe1f-_0x4214db._0x2f2db2,_0x5de527);}function _0x38b181(_0x545e37,_0x3b26a5,_0x21775b,_0x23e26d){return _0x5e07(_0x545e37-_0x425c99._0xab22ce,_0x23e26d);}return{'output':JSON[_0x407e71(0x21b,0x227,0x226,_0x491d02._0x200e9a)](_0x2afb42,null,0x2),'structured':{'value':_0x2afb42}};}function createToolOutput(_0x4b1011,_0x211d00={'value':_0x4b1011},_0x15677b){return{'output':_0x4b1011,'structured':_0x211d00,..._0x15677b!==void 0x0?{'content':_0x15677b}:{}};}var ToolExecutionError=class extends Error{[_0x25dd81(0x2d5,0x217,0x276,0x2ec)];constructor(_0x4ceb7c,_0x269be1={}){const _0xb8b32a={_0xd86c7e:0x4ed,_0x287067:0x4c6,_0x17df28:0x5d9,_0x548751:0x5f1,_0x531cea:0x1d6,_0x295eae:0x224},_0x5663d0={_0x15ec48:0xd9,_0x1e7e8b:0xae,_0x343bdb:0xa0},_0x44611e={_0x2fb4c9:0x7,_0x5b838d:0xb4,_0x158021:0x276};function _0x3c7bbd(_0xe21a0,_0x2c1ebc,_0x567d7d,_0x3ae98e){return _0x25dd81(_0xe21a0-_0x44611e._0x2fb4c9,_0x2c1ebc-_0x44611e._0x5b838d,_0xe21a0-_0x44611e._0x158021,_0x3ae98e);}function _0x2941f1(_0x2b7d5b,_0x18d8e5,_0x5b2a56,_0x303722){return _0x25dd81(_0x2b7d5b-_0x5663d0._0x15ec48,_0x18d8e5-_0x5663d0._0x1e7e8b,_0x2b7d5b- -_0x5663d0._0x343bdb,_0x5b2a56);}super(_0x4ceb7c),this[_0x3c7bbd(0x531,0x4da,_0xb8b32a._0xd86c7e,_0xb8b32a._0x287067)]=_0x3c7bbd(0x57c,_0xb8b32a._0x17df28,0x554,_0xb8b32a._0x548751),this[_0x2941f1(_0xb8b32a._0x531cea,0x1de,0x1f6,_0xb8b32a._0x295eae)]=_0x269be1;}};function defineTool(_0x324a86){return _0x324a86;}function resolveToolPermissionClass(_0x1831a5){const _0x5933f9={_0x58239a:0x271,_0x250aa9:0x2a1,_0x9d3073:0x190,_0x1a386c:0x171,_0x5bea64:0x1da,_0x37d539:0x1e1,_0x52373b:0x199},_0x3d7873={_0x58d8e2:0x9e,_0x3792fc:0x2a},_0x33468c={_0x164517:0xe9},_0x37f101=_0x1831a5?.[_0x32e84d(0x23b,_0x5933f9._0x58239a,0x21b,_0x5933f9._0x250aa9)];function _0x1ac572(_0x5081dc,_0x1e5b07,_0x55cce0,_0x9752dd){return _0x25dd81(_0x5081dc-_0x33468c._0x164517,_0x1e5b07-0x12e,_0x9752dd- -0x8c,_0x1e5b07);}function _0x32e84d(_0x3e3fcb,_0x1f1a05,_0x2cc902,_0x3a035f){return _0x25dd81(_0x3e3fcb-0x32,_0x1f1a05-_0x3d7873._0x58d8e2,_0x1f1a05- -_0x3d7873._0x3792fc,_0x3e3fcb);}if(_0x37f101===_0x1ac572(_0x5933f9._0x9d3073,0x199,0x200,0x204)||_0x37f101===_0x1ac572(_0x5933f9._0x1a386c,_0x5933f9._0x5bea64,_0x5933f9._0x37d539,0x1c3)||_0x37f101==='always-confirm')return _0x37f101;return _0x1ac572(0x128,_0x5933f9._0x52373b,_0x5933f9._0x1a386c,0x19b);}var ToolRegistry=class{['toolsByName']=new Map();constructor(_0x4c3297=[]){const _0x28b6f3={_0x1fa429:0x249,_0x1f81ad:0x227,_0x42380f:0x2b8};function _0x58082a(_0x20664f,_0x32849b,_0x1e3030,_0x255112){return _0x25dd81(_0x20664f-0x1dc,_0x32849b-0x1ad,_0x20664f- -0x38,_0x1e3030);}for(const _0x19937d of _0x4c3297){this[_0x58082a(_0x28b6f3._0x1fa429,0x1cd,_0x28b6f3._0x1f81ad,_0x28b6f3._0x42380f)](_0x19937d);}}['register'](_0x43841f){const _0x233de0={_0x1e18f7:0x2f1,_0x4d1533:0x28f,_0x1ed7ba:0x113},_0x3dd036={_0x2585fd:0x7a},_0x36c8d4={_0xec048d:0xd5,_0x34b70d:0x43};function _0x595f1c(_0x3f22ca,_0x39ab23,_0x3ae7ec,_0x109d27){return _0x25dd81(_0x3f22ca-0xfd,_0x39ab23-_0x36c8d4._0xec048d,_0x3ae7ec-_0x36c8d4._0x34b70d,_0x3f22ca);}function _0x57371a(_0x534c09,_0x4875c0,_0xcb0db9,_0x5d096c){return _0x25dd81(_0x534c09-_0x3dd036._0x2585fd,_0x4875c0-0x1b1,_0x534c09- -0x3ce,_0x5d096c);}this[_0x595f1c(0x2ab,_0x233de0._0x1e18f7,_0x233de0._0x4d1533,0x278)]['set'](_0x43841f[_0x57371a(-_0x233de0._0x1ed7ba,-0x13e,-0x13e,-0x172)],_0x43841f);}['get'](_0x587c4f){const _0x35c1d4={_0x353ff2:0x90,_0xa35ffb:0x18,_0x4dd165:0x44,_0x35d8c4:0x91,_0x2bc9ab:0x2b},_0xe920cc={_0x3636bd:0x7d,_0x20c14d:0x26a};function _0x4e98be(_0x1b2e64,_0x4a072b,_0x3ff110,_0x3f2b9d){return _0x25dd81(_0x1b2e64-0x4c,_0x4a072b-0x1ba,_0x3ff110- -0x63,_0x1b2e64);}function _0x8aa895(_0x4c58b2,_0x27b3c9,_0x3a87c7,_0x29eec9){return _0x25dd81(_0x4c58b2-0xb,_0x27b3c9-_0xe920cc._0x3636bd,_0x4c58b2- -_0xe920cc._0x20c14d,_0x29eec9);}return this[_0x8aa895(-0x1e,-_0x35c1d4._0x353ff2,-_0x35c1d4._0xa35ffb,-_0x35c1d4._0x4dd165)][_0x8aa895(-0x42,-0x4,-_0x35c1d4._0x35d8c4,-_0x35c1d4._0x2bc9ab)](_0x587c4f);}[_0x129ebd(0x507,0x475,0x4dd,0x4f7)](){const _0x481679={_0x592d12:0x44c,_0x4c671a:0x409,_0x5bd7ef:0x2e9},_0x2a53ab={_0x4b02a6:0x51};function _0x1de352(_0x318a05,_0x5f57c3,_0x28381a,_0x396b52){return _0x129ebd(_0x318a05-0x154,_0x396b52,_0x318a05- -0x2b6,_0x396b52-0x57);}function _0x28e8d1(_0x1ff284,_0x41b09,_0x3cf1fe,_0x3fe475){return _0x129ebd(_0x1ff284-0x141,_0x3fe475,_0x3cf1fe- -_0x2a53ab._0x4b02a6,_0x3fe475-0x19d);}return[...this[_0x28e8d1(_0x481679._0x592d12,_0x481679._0x4c671a,0x481,0x4ca)][_0x1de352(0x282,0x2fe,_0x481679._0x5bd7ef,0x20c)]()];}[_0x129ebd(0x51e,0x48f,0x4f8,0x503)](){const _0x5f1025={_0x16c705:0xc4},_0x571fd0={_0x16abe2:0x26e,_0x2d114c:0x2a8},_0x42f8e9={_0x2d2290:0x15};function _0x43a56c(_0x56602e,_0xe57538,_0x249a0d,_0x2004fa){return _0x129ebd(_0x56602e-_0x42f8e9._0x2d2290,_0xe57538,_0x249a0d- -0x4e7,_0x2004fa-0xdd);}return this['list']()[_0x43a56c(_0x5f1025._0x16c705,0x1a,0x5d,0x5f)](_0x5378ad=>{const _0x1f98d6={_0x21a7f2:0x190};function _0x9bedb0(_0x252f89,_0xb4ed42,_0x3197fd,_0x420efa){return _0x43a56c(_0x252f89-0x36,_0x420efa,_0x3197fd-0x20f,_0x420efa-_0x1f98d6._0x21a7f2);}return{'name':_0x5378ad['name'],'description':_0x5378ad['description'],'input_schema':_0x5378ad[_0x9bedb0(_0x571fd0._0x16abe2,0x27c,0x296,_0x571fd0._0x2d114c)]};});}};function validateToolInput(_0x2744c8,_0x57e619){const _0x440d3c={_0x4e10c3:0xf},_0x19184e={_0x5806d3:0x555,_0x55e62a:0x52};validateAgainstSchema(_0x212032(0x18,-_0x440d3c._0x4e10c3,-0x50,0x74),_0x2744c8,_0x57e619);function _0x212032(_0x2ea01d,_0x56ff55,_0x320727,_0x2806f4){return _0x129ebd(_0x2ea01d-0xef,_0x2806f4,_0x56ff55- -_0x19184e._0x5806d3,_0x2806f4-_0x19184e._0x55e62a);}return _0x2744c8;}function deriveFinalToolOutput(_0x4587ce){const _0x2363b9={_0x18f615:0x170,_0x3ca32a:0xf0,_0xbdee0f:0x139,_0x162eaf:0x1e0,_0x4a2a87:0x198,_0x32c808:0x1e1,_0x56b847:0x202,_0x433b04:0x277,_0x1c215a:0x25a,_0x3ec704:0x2c3,_0x3b71b5:0x24c,_0x302acb:0x1f0,_0x503feb:0x1e0,_0x4c5656:0x15d,_0x321b12:0x228,_0x53eeaa:0x240,_0x18da48:0x1ed},_0x3b9f86={_0xabf7da:0x17d,_0x231bb5:0x364},_0x3ef8f9={_0x42a6e8:0x74e,_0x3302a4:0x64};function _0x5615a5(_0x381c30,_0x33e254,_0x201e0d,_0x1664d8){return _0x129ebd(_0x381c30-0x1c4,_0x381c30,_0x201e0d- -_0x3ef8f9._0x42a6e8,_0x1664d8-_0x3ef8f9._0x3302a4);}if(_0x4587ce[_0x260db9(_0x2363b9._0x18f615,_0x2363b9._0x3ca32a,_0x2363b9._0xbdee0f,_0x2363b9._0x162eaf)]===0x0)return{'output':'','structured':{}};function _0x260db9(_0x2a26f2,_0x24ca5e,_0x19f95d,_0x237a9d){return _0x129ebd(_0x2a26f2-_0x3b9f86._0xabf7da,_0x24ca5e,_0x2a26f2- -_0x3b9f86._0x231bb5,_0x237a9d-0x16c);}if(_0x4587ce['length']===0x1)return{'output':_0x4587ce[0x0]['output'],'structured':_0x4587ce[0x0][_0x260db9(_0x2363b9._0x4a2a87,_0x2363b9._0x32c808,0x1a0,_0x2363b9._0x56b847)],..._0x4587ce[0x0][_0x260db9(0x1fd,0x192,0x18f,0x18b)]!==void 0x0?{'content':_0x4587ce[0x0]['content']}:{}};const _0x3a99b5=_0x4587ce[_0x5615a5(-_0x2363b9._0x433b04,-_0x2363b9._0x1c215a,-0x28d,-_0x2363b9._0x3ec704)](_0x39bf56=>_0x39bf56[_0x5615a5(-0x1d3,-0x17b,-0x1ed,-0x247)]!==void 0x0);return{'output':_0x4587ce[_0x260db9(0x1e0,_0x2363b9._0x3b71b5,_0x2363b9._0x302acb,0x238)](_0x33916d=>_0x33916d[_0x260db9(0x232,0x1ba,0x297,0x1bf)])['join'](''),'structured':{'chunks':_0x4587ce[_0x260db9(_0x2363b9._0x503feb,0x20b,_0x2363b9._0x4c5656,0x18d)](_0x3e1383=>_0x3e1383[_0x260db9(0x198,0x210,0x1d6,0x1aa)])},..._0x3a99b5['length']===0x1?{'content':_0x3a99b5[0x0][_0x5615a5(-_0x2363b9._0x321b12,-_0x2363b9._0x53eeaa,-_0x2363b9._0x18da48,-0x22a)]}:{}};}var ToolRuntimeInfrastructureError=class extends Error{constructor(_0xfc03db){const _0x3b7093={_0x3ca218:0x1df,_0x1b7157:0x291,_0x145891:0x30a,_0x4fb3bd:0x32b,_0x561400:0x2b2,_0x34d7db:0x274},_0x169354={_0x4f87d5:0x12},_0x3a4631={_0x16d996:0x95};function _0x230bd2(_0x2c690e,_0x46675a,_0x2d1f0a,_0x22e819){return _0x129ebd(_0x2c690e-_0x3a4631._0x16d996,_0x2d1f0a,_0x2c690e- -0x56c,_0x22e819-0x195);}super(_0xb5902e(_0x3b7093._0x3ca218,0x245,_0x3b7093._0x1b7157,0x223),{'cause':_0xfc03db});function _0xb5902e(_0x1a0918,_0x16df5e,_0x3cfab7,_0x7e68c3){return _0x129ebd(_0x1a0918-_0x169354._0x4f87d5,_0x1a0918,_0x16df5e- -0x278,_0x7e68c3-0xb5);}this[_0xb5902e(0x26f,0x2c9,_0x3b7093._0x145891,_0x3b7093._0x4fb3bd)]=_0xb5902e(_0x3b7093._0x561400,_0x3b7093._0x34d7db,0x22a,0x273);}},boundNestedExecutionControls=new WeakMap();function closeBoundNestedToolExecution(_0x282a4e,_0x109458){const _0x1c5d1a={_0x271729:0x119,_0x31cb3d:0xe9};function _0x3071fe(_0x540f3d,_0x134c0d,_0x1f9801,_0x23f0f8){return _0x129ebd(_0x540f3d-0x164,_0x23f0f8,_0x540f3d- -0x3cc,_0x23f0f8-0x11d);}_0x282a4e&&boundNestedExecutionControls['get'](_0x282a4e)?.[_0x3071fe(_0x1c5d1a._0x271729,0xb3,_0x1c5d1a._0x31cb3d,0x9f)](_0x109458);}function _0x5e07(_0x34662e,_0x5789fb){_0x34662e=_0x34662e-0x125;const _0x4f1bc3=_0x4f1b();let _0x5e070b=_0x4f1bc3[_0x34662e];if(_0x5e07['jKfVAq']===undefined){var _0x19ccc1=function(_0x2c11fb){const _0x581638='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x41ee9d='',_0x1cc92f='';for(let _0xc64d4d=0x0,_0x4af47d,_0x309748,_0x28afbd=0x0;_0x309748=_0x2c11fb['charAt'](_0x28afbd++);~_0x309748&&(_0x4af47d=_0xc64d4d%0x4?_0x4af47d*0x40+_0x309748:_0x309748,_0xc64d4d++%0x4)?_0x41ee9d+=String['fromCharCode'](0xff&_0x4af47d>>(-0x2*_0xc64d4d&0x6)):0x0){_0x309748=_0x581638['indexOf'](_0x309748);}for(let _0x5e0c68=0x0,_0x1f5050=_0x41ee9d['length'];_0x5e0c68<_0x1f5050;_0x5e0c68++){_0x1cc92f+='%'+('00'+_0x41ee9d['charCodeAt'](_0x5e0c68)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1cc92f);};_0x5e07['whNDNF']=_0x19ccc1,_0x5e07['MQnpto']={},_0x5e07['jKfVAq']=!![];}const _0x56a371=_0x4f1bc3[0x0],_0x1a060a=_0x34662e+_0x56a371,_0x32382c=_0x5e07['MQnpto'][_0x1a060a];return!_0x32382c?(_0x5e070b=_0x5e07['whNDNF'](_0x5e070b),_0x5e07['MQnpto'][_0x1a060a]=_0x5e070b):_0x5e070b=_0x32382c,_0x5e070b;}async function drainBoundNestedToolPersistence(_0x539e98){const _0xb8b7fb={_0x5d20c3:0x12a,_0x13a64f:0x198},_0x1415b4={_0x2660d5:0x5eb};function _0x310133(_0x26df08,_0x253356,_0x41799f,_0xd684eb){return _0x129ebd(_0x26df08-0x30,_0x26df08,_0xd684eb- -_0x1415b4._0x2660d5,_0xd684eb-0xa6);}_0x539e98&&await boundNestedExecutionControls[_0x310133(-_0xb8b7fb._0x5d20c3,-_0xb8b7fb._0x13a64f,-0x1a9,-0x13d)](_0x539e98)?.['drainPersistence']();}function commitBoundToolExecutionTerminalState(_0xd4ff41){const _0x326e56={_0x17769a:0xe0,_0x1c26fa:0x6a},_0x42679c={_0x309000:0x624,_0x5ca264:0x16a},_0x1215ea={_0x52e357:0x16c,_0x19ea0a:0x65c};function _0xc8d63f(_0x17f530,_0x44a8e7,_0x52d214,_0x3c88a2){return _0x129ebd(_0x17f530-_0x1215ea._0x52e357,_0x52d214,_0x17f530- -_0x1215ea._0x19ea0a,_0x3c88a2-0x1af);}function _0x1a0a57(_0x2f4952,_0x4a6d11,_0x41a1f9,_0x5dcb94){return _0x129ebd(_0x2f4952-0x8f,_0x2f4952,_0x41a1f9- -_0x42679c._0x309000,_0x5dcb94-_0x42679c._0x5ca264);}_0xd4ff41&&boundNestedExecutionControls[_0xc8d63f(-0x1ae,-0x1da,-0x17d,-0x1eb)](_0xd4ff41)?.[_0xc8d63f(-_0x326e56._0x17769a,-0x151,-_0x326e56._0x1c26fa,-0x123)]();}var PARENT_TOOL_SETTLED_MESSAGE='Parent\x20tool\x20execution\x20settled';function createToolMeta(){return{'transforms':[]};}function _0x4f1b(){const _0x30ecf6=['CMv0DxjU','ChjVz3jHBs1PBNrLCM1LzgLHDgu','BwLZC2LUz01VzgvSq2fSBenVDw50','y29UDgv4DfDPBMrVD0XPBwL0','C2vZC2LVBKrPCG','zg9Uzq','B25uB29Sq2fSBa','Dg9VBa','yMvNAw5qCM9NCMfTvhjHy2u','CMvXDwvZDgvKtMfTzq','DxnHz2u','oIbLEhbLy3rLzcbVyMPLy3q','Aw5KzxG','C2v0u2vZC2LVBKLK','CMfUzg9T','mJaWnJG0ndb4AhneBhm','ChjVDMLKzxjFC3rYzwfTx3jLC2v0','Dg9VBenHBgXdB3vUDa','Dg9VBenHBgXqyxrO','B3jPz2LU','y29UDgvUDa','igLZig91DcbVzIbVCMrLCJSGzxHWzwn0zwqG','ywn0Aw9U','Aw5JBhvKzxm','Dg9VBenHBgXjza','C2v0vg9WAwm','mZGYmdiZmfDVDLnHrq','ywrKrxzLBNrmAxn0zw5LCG','oNjLyxnVBMLUzW','oIbLEhbLy3rLzcbZDhjPBMC','CMvHC29UAw5Nx21LC3nHz2u','yw55t2y','yMvMB3jLtw9KzwXszxf1zxn0','Aw5WDxrty2HLBwe','DhvYBKLK','zxHLy3v0Aw9Uqxv0Ag9YAxPHDgLVBG','zMLUywXnzxnZywDL','ywjVCNrLza','C3vTBwfYEuLUzgv4','iIbMB3iG','iIbPCYbHBhjLywr5igvUywjSzwq','CMvZzxrnzxnZywDLCW','oIbLEhbLy3rLzcbHCNjHEq','DhjHy2u','zM9YrwfJAa','CMvHC29UAw5Nq29TCgXLDgvKqxq','BNvTyMvY','y29TBwL0vgvYBwLUywXtDgf0zq','ywDLBNrjza','tMvZDgvKihrVB2WGy2fSBcbHBMqGzgvMAw5PDgLVBIbUyw1LCYbTDxn0ig1HDgnOihrOzsbYzxf1zxn0zwqGBMfTzq','DhvYBKLUzgv4','B25vC2vYtwvZC2fNzq','Dg9tDhjPBMC','C2v0vg9VBhm','CMvNAxn0CNK','y29VCMrPBMf0B3i','Dg9VBf9JywXS','oIbLEhbLy3rLzcbIB29SzwfU','Dg90ywXdB3n0vxnKvgLJA3m','DxnLCG','ndmYmZC0uxn3svrM','BM93','zMLUywXFBwvZC2fNzq','vg9VBev4zwn1DgLVBKvYCM9Y','Dg90ywXszwfZB25PBMDuB2TLBNm','ChjVDMLKzxi','CMvJB3jKvg9VBenHBgW','yMvMB3jLvg9VBfjLC3vSDefWCgvUza','zMfPBa','BwvZC2fNzq','Dg9VBf9ZDgfYDgvK','DgHLBG','C2vZC2LVBI0','B3v0Chv0','CMvZCg9UC2u','C3rHz2u','Dg90ywXnB2rLBfrPBwvnCW','mZi0otrkqvzut2W','C2vZC2LVBKLK','q2fUBM90ihjLz2LZDgvYihrLCM1PBMfSig9IC2vYDMvYici','B2jZzxj2zxi','DgvYBwLUywW','zxjYB3i','ywz0zxjnzxnZywDLqxbWzw5K','A2LUza','z2v0vg9VBhm','yMvMB3jLrMLUywXpDxrWDxq','zxH0zw5ZAw9UCW','odbfsgn2CuO','y29UDgvUDf9KzwX0yq','oMfZC2LZDgfUDdO','B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','vw5RBM93BIb0B29SoIa','Dg9VBf9Yzxn1Bhq','ChjVCgvYDgLLCW','CMvHC29UAw5Nx2nODw5R','C3rYAw5NAwz5','ywjVCNq','C3LZDgvTuhjVBxb0','CMvWB3j0zwrdB3n0q2fSBenVDw50','yMvMB3jLvg9VBev4zwn1DgLVBG','C2LNBMfS','ywX3yxLZlwnVBMzPCM0','z2v0','CMvHC29UAw5Nu3rHCNrLzef0','Dg9VBf9Yzxn1BhrFBwvZC2fNzq','DhLWzq','CNvUt2jZzxj2zxjZ','tw9KzwWGC3rYzwfTigvUzgvKihDPDgHVDxqGysbMAw5HBcbYzxnWB25Zzq','Dw5RBM93BL90B29S','y2HHDe1VzgvS','A2v5CW','C2vUza','C3LZDgvT','Dg9VBf9JB21WBgv0zwq','BMv4Da','AxrLBxm','CMvZB2X2zq','vg9VBcbYDw50Aw1Ligv2zw50ihb1yMXPy2f0Aw9UigzHAwXLza','Dg9VBf9YzwPLy3rLza','x3n5C3rLBvbYB21WDa','CMvXDwLYzwq','zMLSDgvY','C29Tzq','Dg9VBf91C2vFBwvZC2fNzq','Dg9VBf91C2u','Dg9VBe5HBwu','ywrK','B25fDMvUDa','y2f1C2u','ChjVz3jHBsbLEgvJDxrPB24GD2fZigfIB3j0zwq','Bw9KzwXuAw1Ltxm','C3vIBwLZC2LVBG','oIbLEhbLy3rLzcb2ywX1zsbTyxrJAgLUzYbHBNLpzIbZy2HLBwe','B3v0Chv0rM9YBwf0','CMvHC29UAw5NtwvZC2fNzuLK','Dg90ywXpDxrWDxruB2TLBNm','Bwv0yq','uhjVz3jHBq','Dg9VBhncEu5HBwu','DhjHBNnMB3jTzxi','BgvUz3rO','D3jPDgu','ywXS','ywrKAxrPB25HBfbYB3bLCNrPzxm','Aw5WDxruB2TLBNm','zNjLzxPL','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','Dg9VBf9VDxrWDxrFy2H1BMS','vg9VBcbLEgvJDxrPB24GCMvQzwn0zwqGzM9Yia','BgLZDa','zw50CMLLCW','C2v0q2HHDe1VzgvS','zxHLy3v0zunHBgXZ','y2fWywjPBgL0AwvZ','ywz0zxjuDxjUq29TCgXLDgu','zxHLy3v0Aw9Uu2nVCgu','zgvSzxrL','y2XVC2u','C3rHDgu','AxrLBuLK','sw52ywXPzcb0B29SigLUChv0igf0ia','zxn0Aw1HDgvKq29ZDenHBgXdB3vUDa','Dg9VBf91C2vFzgvSDge','ywz0zxjnB2rLBfjLC3bVBNnL','vg9VBfj1BNrPBwvjBMzYyxn0CNvJDhvYzuvYCM9Y','zgvWCW','tMvZDgvKihrVB2WGy2fSBcbZzxf1zw5Jzsa','B2jQzwn0','zgvSDge','yxjYyxK','ChvZAa','oIbLEhbLy3rLzcbVBMuGB2yG','C2v0u3LZDgvTuhjVBxb0','y2fSBeLK','AgfZt3DU','Bw9KzwW','BgLZDfrVB2Xty2HLBwfZ','yxnRvxnLCG','qwDLBNqUC2vUzcbYzxf1AxjLCYbHig1LC3nHz2uGD2HLBIbUBYbKzwzHDwX0ig1LC3nHz2uGAxmGy29UzMLNDxjLza','Bwv0ywrHDge','C3rYDwn0DxjLza','Dg9VBenHBgW','Bwf4','Dg90ywXszxbVCNrLzenVC3rvC2ruAwnRCW','DMfSDwu','Bw9KzwXjzgvUDgL0Eq','ChjPy2LUz1bYB3zPzgvYswq','DhvYBL9JB21WBgv0zq','mLHoCfHxBa','yxnZAxn0yw50x2nODw5R','Dgv4Da','CMvNAxn0zxi','CMvXDwvZDenVDw50','C29YDa','zw5HyMXLza','yw1VDw50vxnKvgLJA3m','z2v0q29UDgv4DfDPBMrVD0XPBwL0','CMvHC29UAw5Nvg9Rzw5Z','ywz0zxjuB29SuMvZDwX0','C3rYAw5N','DhvYBLn0yxj0zwrbDa','mti4otu5mdjtCePgs3e','C3rHDhvZ','ywXSu2v0DgXLza','Bw9KzwXdywXSCW','CMvHC29U','CMvHza','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','oIb0zxjTAw5HBcbVyNnLCNzLCIaI','Bwv0CMLJCW','ywrTAxq','yMvMB3jLqxnZAxn0yw50qxbWzw5K','ywnXDwLYzq','yxnZAxn0yw50twvZC2fNzuLK','ywDLBNq','C3rYzwfT','DgHPBMTPBMC','CgvYBwLZC2LVBKnSyxnZ','y2H1BMS','ChjVDMLKzxjtDgf0zq','y29TCgXLDgvZuMvXDwvZDa','C3rYzwfTAw5N','CMvZDwX0','mJe1mNvTtg1ltq','C2v0','Dg9VBfjLC3vSDhm','qwDLBNqGCMvXDwLYzxmGysbJAgf0tw9KzwW','Bw9KzwXFCMvXDwvZDa','AxnbCNjHEq','CNvU','B3v0Chv0vg9Rzw5Z','mtiXmdyYChL5ufvV','B3v0Chv0sw5KzxG','zw51Bq','DhvYBI0','Dg90ywXfC3rPBwf0zwrdB3n0vxnKvgLJA3m','B3jKzxi','y2f0y2G','C2L6zq','C2vXDwvUy2u','DMfSDwvZ','CNvUvhjHBNnMB3jTzxjZ','CMvJB3jKrxzLBNq','BwvZC2fNzxm','ChjVz3jHBs1HyM9YDgvK','ChjVz3jHBs10Aw1LB3v0','yxnZAxn0yw50','zMLUza','Dg9VBfj1BNrPBwu','BMfTzq','y29UDgvUDeLUzgv4','AxnuzxjTAw5HBfn0yxrLq29TBwL0DgvK','BwfW','zhjHAw5tDgvLCMLUzW','Aw5WDxq','mZy0otyWAwjwC21Y','Aw5WDxrezwX0yq','zgvMyxvSDe1LC3nHz2u','zNvUy3rPB24','yM9VBgvHBG','CMvTB3zLrxzLBNrmAxn0zw5LCG'];_0x4f1b=function(){return _0x30ecf6;};return _0x4f1b();}function createErrorToolResult(_0x14fec1,_0x5390bb,_0xb04df3,_0x23690b,_0x3a427d=[]){return{'callId':_0x14fec1,'toolName':_0x5390bb,'status':'error','output':_0xb04df3,'structured':_0x23690b,'chunks':_0x3a427d,'meta':createToolMeta()};}function createRejectedToolResult(_0x3542f3,_0x3e20b3,_0x30cf04){const _0x20c03e={_0x9854c9:0x314,_0x15693e:0x31f,_0x153565:0x307,_0x238617:0x2d0,_0x15206a:0x3aa,_0x2e6dd4:0x327,_0x3a5881:0x315,_0x55e5d1:0x2bd,_0x238c5a:0x360,_0x3452f0:0x309,_0x495777:0x2bd,_0x2c1ff8:0x31f},_0x9a7e70={_0x321bdc:0xa5,_0x589d48:0x61,_0x23ad38:0xd1},_0xb58209=_0x30cf04?.['trim']()[_0x178fd9(_0x20c03e._0x9854c9,0x2c7,_0x20c03e._0x15693e,_0x20c03e._0x153565)]?_0x30cf04:_0x178fd9(_0x20c03e._0x238617,_0x20c03e._0x15206a,_0x20c03e._0x2e6dd4,_0x20c03e._0x3a5881)+_0x3e20b3;function _0x178fd9(_0x2d5784,_0x4eebb4,_0x41d407,_0x464ac7){return _0x25dd81(_0x2d5784-_0x9a7e70._0x321bdc,_0x4eebb4-_0x9a7e70._0x589d48,_0x41d407-_0x9a7e70._0x23ad38,_0x464ac7);}function _0x5d9d7b(_0x196308,_0x1c489b,_0x39f4a9,_0x49ccae){return _0x129ebd(_0x196308-0x1d,_0x1c489b,_0x196308- -0x1db,_0x49ccae-0x1df);}return createErrorToolResult(_0x3542f3,_0x3e20b3,_0xb58209,{'error':_0x178fd9(_0x20c03e._0x55e5d1,_0x20c03e._0x238c5a,_0x20c03e._0x3452f0,0x2c3),..._0x30cf04?.['trim']()[_0x178fd9(_0x20c03e._0x495777,0x319,_0x20c03e._0x2c1ff8,0x2a9)]?{'reason':_0x30cf04}:{}});}function createAbortedToolResult(_0x13c8fa,_0x47f7a5,_0x57365a,_0x434f1c=[]){const _0x195b70={_0x1954c2:0x1cb,_0x553099:0x1e3,_0x1cbc51:0xd,_0x4a3cb3:0x2bb,_0x38af97:0x313,_0x59a336:0x2ff,_0x538764:0x2b7,_0x4d9ea1:0x304,_0x442910:0x61},_0x25d0c4={_0x1625d7:0x23,_0x1b7699:0x1d},_0x3738f6={_0x1c5481:0x1};function _0xe97870(_0x26a4cf,_0x585053,_0x3d91f8,_0x179fd6){return _0x25dd81(_0x26a4cf-0x16c,_0x585053-0x4d,_0x3d91f8-_0x3738f6._0x1c5481,_0x585053);}function _0x3d2bb6(_0x3751d2,_0x41cf5b,_0x3ab8b6,_0x31e34d){return _0x25dd81(_0x3751d2-_0x25d0c4._0x1625d7,_0x41cf5b-_0x25d0c4._0x1b7699,_0x31e34d- -0x1df,_0x3ab8b6);}if(_0x47f7a5===_0xe97870(0x2a4,_0x195b70._0x1954c2,0x24c,_0x195b70._0x553099))return createErrorToolResult(_0x13c8fa,_0x47f7a5,_0x3d2bb6(0x1b,_0x195b70._0x1cbc51,0x6f,0x64),{'error':_0xe97870(0x317,_0x195b70._0x4a3cb3,0x2b7,0x332),'aborted':!![]},_0x434f1c);const _0x26ad93=toAbortError(_0x57365a);return createErrorToolResult(_0x13c8fa,_0x47f7a5,_0x26ad93[_0xe97870(_0x195b70._0x38af97,0x305,0x30d,_0x195b70._0x59a336)],{'error':_0x26ad93[_0xe97870(0x37d,_0x195b70._0x538764,0x30d,_0x195b70._0x4d9ea1)],..._0x57365a instanceof ToolExecutionError?_0x57365a[_0x3d2bb6(_0x195b70._0x442910,0x61,0x71,0x97)]:{},'aborted':!![]},_0x434f1c);}function createSuccessToolResult(_0x3019c8,_0x399658,_0x1b05c9,_0x3d13f8){const _0x1469d8={_0x15e248:0x12c,_0x5d3567:0x17d,_0x5985b0:0x11a,_0x220b44:0xdd,_0x62eb2d:0xe3,_0x3981da:0x148},_0x5ca77b={_0x4722a4:0x1e0};function _0x38ff38(_0x1ec807,_0x307c1a,_0x102e45,_0x2c2d70){return _0x129ebd(_0x1ec807-0x12e,_0x102e45,_0x2c2d70- -0x48b,_0x2c2d70-_0x5ca77b._0x4722a4);}function _0x99eab2(_0x1836ba,_0x1bf6e7,_0x4a9050,_0x5cd4ef){return _0x25dd81(_0x1836ba-0x1ec,_0x1bf6e7-0x153,_0x5cd4ef- -0x193,_0x1836ba);}return{'callId':_0x3019c8,'toolName':_0x399658,'status':'ok','output':_0x1b05c9[_0x99eab2(_0x1469d8._0x15e248,0x1c6,0x191,_0x1469d8._0x5d3567)],'structured':_0x1b05c9[_0x99eab2(_0x1469d8._0x5985b0,_0x1469d8._0x220b44,0x6e,_0x1469d8._0x62eb2d)],..._0x1b05c9[_0x99eab2(0x1a3,0xd2,0x14a,_0x1469d8._0x3981da)]!==void 0x0?{'content':_0x1b05c9['content']}:{},'chunks':_0x3d13f8,'meta':createToolMeta()};}function createUnknownToolResult(_0x57e6e4,_0x9ac587){const _0x4cf106={_0x58fbf5:0x1f5,_0x4a3d92:0x18c,_0x1ededb:0x1a9,_0x40e2db:0x1a3,_0x690081:0x19d,_0xfd44ff:0x176},_0x348542={_0x2e7803:0xef,_0x4b774:0x13c},_0x797315={_0x4691f4:0x7d,_0x505093:0x91};function _0x555519(_0x14b999,_0x612019,_0x490203,_0x1b5663){return _0x25dd81(_0x14b999-0x101,_0x612019-_0x797315._0x4691f4,_0x490203- -_0x797315._0x505093,_0x14b999);}function _0x2ce25b(_0x222192,_0x43e1a3,_0x4c814c,_0x311ddf){return _0x129ebd(_0x222192-_0x348542._0x2e7803,_0x43e1a3,_0x311ddf- -0x65c,_0x311ddf-_0x348542._0x4b774);}return createErrorToolResult(_0x57e6e4,_0x9ac587,_0x555519(_0x4cf106._0x58fbf5,0x1a0,_0x4cf106._0x4a3d92,0x1be)+_0x9ac587,{'error':_0x555519(_0x4cf106._0x1ededb,_0x4cf106._0x40e2db,_0x4cf106._0x690081,_0x4cf106._0xfd44ff)});}function _0x25dd81(_0x4b3d6b,_0xc00bb8,_0x55c030,_0x41b3ee){const _0x46f6ba={_0x3b2bdb:0xea};return _0x5e07(_0x55c030-_0x46f6ba._0x3b2bdb,_0x41b3ee);}function cloneToolCallForPublication(_0x1d05a2,_0x5080d7,_0x25970f){const _0x315ef3={_0x1d7c72:0x1d,_0x2edf5c:0x103,_0x4a8821:0xac},_0x5bd568={_0x4be2a2:0x57,_0x594890:0x43a,_0x8ffe1f:0x23};function _0x2cf767(_0x392c85,_0xa3f8fc,_0x8d3ec2,_0x245db3){return _0x129ebd(_0x392c85-_0x5bd568._0x4be2a2,_0x8d3ec2,_0x392c85- -_0x5bd568._0x594890,_0x245db3-_0x5bd568._0x8ffe1f);}return{...structuredClone(_0x1d05a2),'type':_0x2cf767(0x8a,_0x315ef3._0x1d7c72,_0x315ef3._0x2edf5c,_0x315ef3._0x4a8821),'id':_0x5080d7,'name':_0x25970f};}function cloneToolResultChunkForPublication(_0x1f9c61){return structuredClone(_0x1f9c61);}function cloneToolResultForPublication(_0x1b25a3,_0xcc3f34,_0x184b3d){const {chunks:_0x1d8bc7,..._0x58bac6}=_0x1b25a3;return{...structuredClone(_0x58bac6),'callId':_0xcc3f34,'toolName':_0x184b3d,'chunks':_0x1d8bc7['map'](cloneToolResultChunkForPublication)};}function isDispatchDecision(_0x3bc2d6){const _0xaea74={_0x267305:0x58b,_0x4514d5:0x567,_0x111a8c:0x60e,_0x224cdb:0x523,_0x2cd4de:0x5a5,_0x265e2a:0x5fa},_0xe0a8d0={_0x3125ea:0x2fe};if(typeof _0x3bc2d6!==_0x1e40f2(0x500,_0xaea74._0x267305,_0xaea74._0x4514d5,0x5b5)||_0x3bc2d6===null)return![];function _0x55dbe5(_0x17d1d2,_0x18ad52,_0x22b000,_0x551193){return _0x129ebd(_0x17d1d2-0x1cd,_0x551193,_0x18ad52- -0x1be,_0x551193-0x4a);}function _0x1e40f2(_0x36fad3,_0x2c2b43,_0x3bebe9,_0x2c26ec){return _0x25dd81(_0x36fad3-0x112,_0x2c2b43-0xec,_0x3bebe9-_0xe0a8d0._0x3125ea,_0x2c26ec);}return _0x3bc2d6[_0x55dbe5(0x414,0x3a5,0x3d4,0x347)]==='reject'||_0x3bc2d6['action']===_0x1e40f2(_0xaea74._0x111a8c,_0xaea74._0x224cdb,_0xaea74._0x2cd4de,_0xaea74._0x265e2a);}function normalizeExecutionError(_0x394bce){const _0x5b8254={_0x274dfd:0x345,_0x3d0efc:0x3b7,_0x52fcdc:0x3f3,_0x51a16a:0x368,_0x11d5d7:0x2f3,_0x4e4171:0x321,_0x229fb2:0x363,_0x5b3e7c:0x11d,_0x276ed5:0x1b5,_0x20f117:0x1c1,_0x1359aa:0xf6,_0x1c0da2:0x18b,_0x59e6d7:0xf3,_0x16e48:0x42d,_0x18bbae:0x36f,_0x3cea24:0x191,_0x36e97e:0xae,_0x57e47f:0x11e},_0x20cba5={_0x5ad7e5:0x6b0,_0x46016a:0x33},_0x4437a8={_0x52cb1a:0x23,_0x54de42:0x1db,_0x312bb2:0x1b1};if(_0x394bce instanceof ToolExecutionError)return{'errorMessage':_0x394bce['message'],'structured':{'error':_0x394bce[_0x56785c(_0x5b8254._0x274dfd,0x3a2,_0x5b8254._0x3d0efc,_0x5b8254._0x52fcdc)],..._0x394bce[_0x56785c(_0x5b8254._0x51a16a,_0x5b8254._0x11d5d7,_0x5b8254._0x4e4171,_0x5b8254._0x229fb2)]}};if(_0x394bce instanceof Error)return{'errorMessage':_0x394bce[_0x5deea8(-0x164,-_0x5b8254._0x5b3e7c,-0x11e,-0x169)],'structured':{'error':_0x394bce['message']}};if(typeof _0x394bce===_0x5deea8(-_0x5b8254._0x276ed5,-0x205,-_0x5b8254._0x20f117,-0x170)&&_0x394bce!==null&&_0x56785c(0x41e,0x3e3,_0x5b8254._0x3d0efc,0x33d)in _0x394bce&&typeof _0x394bce[_0x5deea8(-_0x5b8254._0x1359aa,-_0x5b8254._0x1c0da2,-0x11e,-_0x5b8254._0x59e6d7)]==='string')return{'errorMessage':_0x394bce[_0x56785c(_0x5b8254._0x16e48,_0x5b8254._0x18bbae,_0x5b8254._0x3d0efc,0x3ed)],'structured':{'error':_0x394bce[_0x5deea8(-_0x5b8254._0x3cea24,-_0x5b8254._0x36e97e,-_0x5b8254._0x57e47f,-0x171)]}};const _0x141aaf=String(_0x394bce);function _0x56785c(_0x160487,_0x2260e7,_0x5eab32,_0x569d55){return _0x129ebd(_0x160487-_0x4437a8._0x52cb1a,_0x160487,_0x5eab32- -_0x4437a8._0x54de42,_0x569d55-_0x4437a8._0x312bb2);}function _0x5deea8(_0x210b09,_0x1a701a,_0x992130,_0x4a58ec){return _0x129ebd(_0x210b09-0x1ab,_0x1a701a,_0x992130- -_0x20cba5._0x5ad7e5,_0x4a58ec-_0x20cba5._0x46016a);}return{'errorMessage':_0x141aaf,'structured':{'error':_0x141aaf}};}function cloneToolEventForPublication(_0xd80198){const _0x4f81a4={_0x1e218d:0x269,_0x7428b:0x1ee,_0x184d1e:0x222,_0x147796:0x282,_0x4bc00b:0x39f,_0x1c76e1:0x38a,_0x440346:0x3e7,_0x1e0e68:0x309,_0x54a2a8:0x21d,_0x44486a:0x258,_0x2a03f1:0x29f,_0x31e6c0:0x2d8,_0x2915af:0x309,_0x435423:0x31e,_0x30a4d6:0x304,_0x584147:0x2e7,_0x1a1fc9:0x2f4,_0x19a4f3:0x2ff,_0x37e613:0x2b0,_0x293505:0x1d9,_0x3ae2b0:0x189,_0x135b06:0x1f8,_0x419984:0x20d,_0xe2361a:0x20d,_0x516ab2:0x21d,_0x2efcb3:0x1b6,_0x334573:0x167,_0x4704fe:0x18a,_0x3d4c55:0x1c0,_0x191e66:0x332,_0x1b4b80:0x377,_0x162514:0x2c4,_0x48e805:0x34d,_0x2e3a3c:0x2f6,_0x93776:0x3b4,_0x5bb220:0x2ca,_0x596ddf:0x2b0,_0x2018d3:0x34a,_0x3beb3a:0x332,_0x488650:0x2b1,_0x2a7e9f:0x29d,_0x37e52f:0x301,_0x5111df:0x332,_0x3056d4:0x255,_0x1dbc58:0x2b6,_0x48bf07:0x2ab},_0x2b2590={_0xe15150:0xf5,_0x2fa737:0x71a,_0x20effa:0xd3};function _0x3c4fa3(_0x460a2e,_0xc12a3a,_0x20c71c,_0x52b8ff){return _0x129ebd(_0x460a2e-_0x2b2590._0xe15150,_0xc12a3a,_0x460a2e- -_0x2b2590._0x2fa737,_0x52b8ff-_0x2b2590._0x20effa);}function _0x1dde6b(_0x4f3d7d,_0x4357d4,_0x1d24ae,_0x1f55f1){return _0x129ebd(_0x4f3d7d-0x73,_0x1d24ae,_0x4357d4- -0x1f4,_0x1f55f1-0xdf);}switch(_0xd80198[_0x3c4fa3(-_0x4f81a4._0x1e218d,-_0x4f81a4._0x7428b,-_0x4f81a4._0x184d1e,-_0x4f81a4._0x147796)]){case'tool_call':case _0x1dde6b(0x3bd,_0x4f81a4._0x4bc00b,_0x4f81a4._0x1c76e1,_0x4f81a4._0x440346):return{..._0xd80198,'toolCall':cloneToolCallForPublication(_0xd80198[_0x1dde6b(0x291,_0x4f81a4._0x1e0e68,0x2b6,0x2ff)],_0xd80198[_0x3c4fa3(-_0x4f81a4._0x54a2a8,-_0x4f81a4._0x44486a,-0x1f7,-_0x4f81a4._0x2a03f1)]['id'],_0xd80198[_0x1dde6b(_0x4f81a4._0x31e6c0,_0x4f81a4._0x2915af,0x286,0x31a)][_0x1dde6b(0x36d,0x34d,_0x4f81a4._0x435423,0x389)])};case _0x1dde6b(_0x4f81a4._0x30a4d6,_0x4f81a4._0x584147,0x274,_0x4f81a4._0x1a1fc9):return{..._0xd80198,'toolCall':cloneToolCallForPublication(_0xd80198[_0x1dde6b(_0x4f81a4._0x19a4f3,0x309,0x33e,_0x4f81a4._0x37e613)],_0xd80198['toolCall']['id'],_0xd80198['toolCall'][_0x3c4fa3(-_0x4f81a4._0x293505,-_0x4f81a4._0x3ae2b0,-0x24b,-0x20c)]),'chunk':cloneToolResultChunkForPublication(_0xd80198[_0x3c4fa3(-_0x4f81a4._0x135b06,-_0x4f81a4._0x419984,-_0x4f81a4._0xe2361a,-0x1fd)])};case'tool_completed':case'tool_rejected':return{..._0xd80198,'toolCall':cloneToolCallForPublication(_0xd80198['toolCall'],_0xd80198['toolCall']['id'],_0xd80198[_0x3c4fa3(-_0x4f81a4._0x516ab2,-0x24e,-_0x4f81a4._0x2efcb3,-0x1d5)][_0x3c4fa3(-0x1d9,-_0x4f81a4._0x334573,-_0x4f81a4._0x4704fe,-_0x4f81a4._0x3d4c55)]),'result':cloneToolResultForPublication(_0xd80198[_0x1dde6b(0x342,_0x4f81a4._0x191e66,_0x4f81a4._0x1b4b80,_0x4f81a4._0x162514)],_0xd80198['toolCall']['id'],_0xd80198['toolCall'][_0x1dde6b(0x2f5,_0x4f81a4._0x48e805,_0x4f81a4._0x2e3a3c,_0x4f81a4._0x93776)])};case _0x1dde6b(_0x4f81a4._0x5bb220,_0x4f81a4._0x596ddf,0x2c0,0x235):return{..._0xd80198,'result':cloneToolResultForPublication(_0xd80198['result'],_0xd80198[_0x1dde6b(_0x4f81a4._0x2018d3,_0x4f81a4._0x3beb3a,_0x4f81a4._0x488650,0x316)][_0x1dde6b(_0x4f81a4._0x2a7e9f,_0x4f81a4._0x37e52f,0x2a8,0x292)],_0xd80198[_0x1dde6b(0x352,_0x4f81a4._0x5111df,0x399,0x2cc)][_0x3c4fa3(-_0x4f81a4._0x3056d4,-0x26e,-_0x4f81a4._0x1dbc58,-_0x4f81a4._0x48bf07)])};default:return _0xd80198;}}async function emitEvent(_0x2053a6,_0x4b41bb,_0x428d73){try{await _0x2053a6?.(cloneToolEventForPublication(_0x4b41bb),_0x428d73);}catch(_0x57cc6f){throw new ToolRuntimeInfrastructureError(_0x57cc6f);}}function actualCancellationHasPrecedence(_0x2cae7d,_0x46f9f6){const _0x1349c8={_0x36eb32:0x2a5,_0x5d522c:0x2f0,_0x41326f:0x14f,_0x2f0b7d:0x78},_0x562050={_0x2e6cec:0xc4};function _0x5f0436(_0x59c500,_0x235930,_0x9f2c35,_0x24fd7e){return _0x25dd81(_0x59c500-0x1a3,_0x235930-0x19e,_0x235930-0x7f,_0x24fd7e);}function _0x4e04d4(_0x56a87b,_0x42507c,_0x348d3e,_0xc3fdd6){return _0x129ebd(_0x56a87b-_0x562050._0x2e6cec,_0x348d3e,_0xc3fdd6- -0x49c,_0xc3fdd6-0x10d);}return _0x2cae7d[_0x5f0436(0x278,_0x1349c8._0x36eb32,0x23f,_0x1349c8._0x5d522c)][_0x4e04d4(_0x1349c8._0x41326f,_0x1349c8._0x2f0b7d,_0x1349c8._0x2f0b7d,0xd6)]&&!_0x46f9f6;}function selectActualCancellationReason(_0x104def,_0x305ca8){const _0x5b4cd0={_0x1cd3e7:0x499,_0x5dac98:0x533},_0x1a6ad3={_0x4a137b:0xfb,_0x2aa08f:0x9b,_0x3e5cbc:0x129},_0x5240e9={_0x24f2b9:0x6a,_0x1b0bbd:0x247};function _0x5b7886(_0x1d2e15,_0x5cbd5d,_0x58bff1,_0x593c1c){return _0x25dd81(_0x1d2e15-0x8a,_0x5cbd5d-_0x5240e9._0x24f2b9,_0x5cbd5d-_0x5240e9._0x1b0bbd,_0x58bff1);}function _0x1c43b7(_0x2d5b2f,_0x19dba7,_0x5650c6,_0x517409){return _0x25dd81(_0x2d5b2f-_0x1a6ad3._0x4a137b,_0x19dba7-_0x1a6ad3._0x2aa08f,_0x5650c6- -_0x1a6ad3._0x3e5cbc,_0x19dba7);}return _0x104def instanceof ToolExecutionError&&_0x104def[_0x5b7886(_0x5b4cd0._0x1cd3e7,0x4bd,0x4ca,0x4db)][_0x5b7886(0x57f,_0x5b4cd0._0x5dac98,0x4c2,0x540)]===!![]?_0x104def:_0x305ca8;}function selectedTerminalStateHasPrecedence(_0x35d400,_0x13682a,_0x4bc10b,_0x620ca9){const _0x5d0187={_0x2b012e:0x36c,_0x10a3a7:0x2ab,_0x1ea76e:0x38c,_0x4c1b29:0x4ff,_0x3fa981:0x378,_0x10bc77:0x3ac,_0x26c901:0x34b,_0x4e2052:0x33a,_0x2584ca:0x317,_0x2f9975:0x3a4,_0x5e4b21:0x3d4,_0xcfabd5:0x3fe,_0x141aac:0x3d5,_0x29cba7:0x38a,_0x56e3bd:0x3b6,_0x1fdd0f:0x3d9,_0x1d65de:0x438,_0x295e80:0x480,_0x1bd2ed:0x434,_0x459e6f:0x421,_0x1dfb4a:0x479,_0x608e7e:0x4fb,_0x10f2d8:0x420},_0x3c42d8={_0x4bf489:0x1d3,_0x459c7b:0xc4},_0x240bef={_0x39da7e:0x101,_0x3ef9f5:0x186,_0x37a4fd:0x10f};if(_0x13682a[_0x51f813(_0x5d0187._0x2b012e,0x3af,0x38c,0x38c)]!==_0x51f813(0x394,_0x5d0187._0x10a3a7,0x313,_0x5d0187._0x1ea76e))return![];function _0x51f813(_0x1a46da,_0x885192,_0x59c205,_0x5f02e5){return _0x129ebd(_0x1a46da-_0x240bef._0x39da7e,_0x5f02e5,_0x59c205- -_0x240bef._0x3ef9f5,_0x5f02e5-_0x240bef._0x37a4fd);}if(!_0x620ca9)return _0x13682a[_0x51f813(0x3bb,0x382,0x376,0x316)][_0x2be70c(0x49a,_0x5d0187._0x4c1b29,0x4ae,0x510)]===!![]&&actualCancellationHasPrecedence(_0x4bc10b,_0x620ca9);if(_0x35d400!==_0x51f813(_0x5d0187._0x3fa981,_0x5d0187._0x10bc77,_0x5d0187._0x26c901,_0x5d0187._0x4e2052))return![];function _0x2be70c(_0x38c2f1,_0x3d636e,_0x42e6cd,_0x253fab){return _0x129ebd(_0x38c2f1-_0x3c42d8._0x4bf489,_0x3d636e,_0x42e6cd- -_0x3c42d8._0x459c7b,_0x253fab-0x1e2);}return _0x13682a[_0x51f813(_0x5d0187._0x2584ca,_0x5d0187._0x2f9975,0x376,0x3ee)][_0x2be70c(_0x5d0187._0x5e4b21,_0x5d0187._0xcfabd5,_0x5d0187._0x141aac,0x37e)]===_0x51f813(_0x5d0187._0x29cba7,0x35f,_0x5d0187._0x56e3bd,0x408)||_0x13682a[_0x2be70c(_0x5d0187._0x1fdd0f,0x4b3,_0x5d0187._0x1d65de,_0x5d0187._0x295e80)][_0x2be70c(0x359,0x3ff,0x3d5,_0x5d0187._0x1bd2ed)]===_0x2be70c(0x4d0,_0x5d0187._0x459e6f,_0x5d0187._0x1dfb4a,_0x5d0187._0x608e7e)||_0x13682a['structured'][_0x2be70c(0x3ef,0x425,_0x5d0187._0x141aac,_0x5d0187._0x10f2d8)]==='program-resource-limit';}async function emitToolCompletedEventWithTerminalPrecedence(_0x4c366b,_0xaaf986,_0x34cce7,_0x4166b9,_0x456ec3,_0x116e10,_0x2dae9=![]){const _0x362b16={_0x1c4fd2:0x15e,_0x3a1575:0x1a1,_0xa2fdba:0x19d,_0x4c99f8:0x1bf};function _0x57a20e(_0x490056,_0x3bdcb3,_0x47c95a,_0x3719c7){return _0x129ebd(_0x490056-0x43,_0x3719c7,_0x47c95a- -0x31c,_0x3719c7-0x2b);}try{await emitEvent(_0x4c366b,{'type':_0x57a20e(_0x362b16._0x1c4fd2,_0x362b16._0x3a1575,_0x362b16._0xa2fdba,_0x362b16._0x4c99f8),'toolCall':cloneToolCallForPublication(_0xaaf986,_0x34cce7,_0x4166b9),'result':_0x456ec3},_0x116e10);}catch(_0x30dbec){if(!(_0x30dbec instanceof ToolRuntimeInfrastructureError)||!selectedTerminalStateHasPrecedence(_0x4166b9,_0x456ec3,_0x116e10,_0x2dae9))throw _0x30dbec;}}async function awaitWithAbort(_0x4de3ca,_0xe9f98b){const _0x32e154={_0xdbee8f:0x112},_0x48eb2a={_0x306927:0x276,_0x52fac7:0x137,_0x7e4f72:0x1b6,_0x2d6027:0x139};let _0x51f066=()=>{},_0x409c71;function _0x3ee047(_0x27d916,_0x670075,_0x588af7,_0x300792){return _0x129ebd(_0x27d916-0x62,_0x588af7,_0x670075- -0x567,_0x300792-0x14b);}_0xe9f98b&&(throwIfAborted(_0xe9f98b),_0x409c71=new Promise((_0x3d1c0e,_0x400a04)=>{const _0x4e45e4={_0x545bd8:0x7e};function _0x464fd6(_0x5636eb,_0x27166f,_0x33501e,_0x249b3b){return _0x5e07(_0x27166f-_0x4e45e4._0x545bd8,_0x33501e);}const _0x1b73a1=()=>{_0x400a04(toAbortError(_0xe9f98b['reason']));};function _0x42aaaf(_0x510cc8,_0x3308e6,_0x108ba5,_0x23b103){return _0x5e07(_0x3308e6- -0x32c,_0x510cc8);}_0xe9f98b[_0x464fd6(0x248,_0x48eb2a._0x306927,0x227,0x1f5)](_0x464fd6(_0x48eb2a._0x52fac7,_0x48eb2a._0x7e4f72,0x164,_0x48eb2a._0x2d6027),_0x1b73a1,{'once':!![]}),_0x51f066=()=>_0xe9f98b[_0x42aaaf(-0x1c7,-0x150,-0xd4,-0xee)]('abort',_0x1b73a1);}));const _0x2b873e=Promise[_0x3ee047(-_0x32e154._0xdbee8f,-0xab,-0x3a,-0x11d)]()['then'](()=>{return throwIfAborted(_0xe9f98b),_0x4de3ca();});try{return await(_0x409c71?Promise['race']([_0x2b873e,_0x409c71]):_0x2b873e);}finally{_0x51f066();}}function createNestedCallAdmissionGate(){const _0x410e6b={_0x3526d4:0x3fd},_0x4ed175={_0x2791bf:0x139,_0x21c4d3:0x11c,_0x45638a:0x204,_0x384719:0x205},_0x4fcd0b={_0x20d83e:0x19a},_0x492fcc={_0x3c014b:0x57,_0x382d59:0xcf},_0x4599c9={_0x122b83:0x10a,_0x5f2ec6:0x209};function _0x1bb109(_0x3a0149,_0x13d4af,_0x58952d,_0x5da75c){return _0x25dd81(_0x3a0149-0x1df,_0x13d4af-_0x4599c9._0x122b83,_0x58952d-_0x4599c9._0x5f2ec6,_0x5da75c);}let _0x5a3d2c=0x1,_0xee9b68=![],_0x17492e,_0x265525=Promise[_0x1bb109(0x3e9,0x4b0,0x43f,_0x410e6b._0x3526d4)]();const _0x2eaf54=new Set(),_0x44bffb=_0xbe524c=>{!_0xee9b68&&(_0xee9b68=!![],_0x17492e=_0xbe524c);for(const _0x222602 of[..._0x2eaf54]){_0x222602();}};return{'register'(_0xccb054){const _0x5883fd={_0x36583f:0x1e,_0x159ab3:0x97};if(_0xee9b68)throw _0x17492e;if(_0xccb054!==_0x5a3d2c){const _0x1a3fce=new Error(_0x1b22ad(0xeb,_0x4ed175._0x2791bf,0x119,_0x4ed175._0x21c4d3)+_0xccb054+_0x1b22ad(0x1b3,0x1ad,_0x4ed175._0x45638a,_0x4ed175._0x384719)+_0x5a3d2c);_0x44bffb(_0x1a3fce);throw _0x1a3fce;}_0x5a3d2c+=0x1;function _0x1b22ad(_0x2f07ef,_0xa6b766,_0x1543a8,_0x5670ef){return _0x1bb109(_0x2f07ef-_0x492fcc._0x3c014b,_0xa6b766-_0x492fcc._0x382d59,_0xa6b766- -0x338,_0x1543a8);}const _0x4d7a92=_0x265525;let _0x585be8;_0x265525=new Promise(_0x45d942=>{_0x585be8=_0x45d942;});function _0x239415(_0x54c87c,_0x402dfc,_0x17691c,_0x329dae){return _0x1bb109(_0x54c87c-0x105,_0x402dfc-0x11a,_0x17691c- -_0x4fcd0b._0x20d83e,_0x54c87c);}const _0xb92028=()=>{const _0x161362={_0x549753:0x1e1};if(_0x585be8===void 0x0)return;const _0x2ddba1=_0x585be8;_0x585be8=void 0x0,_0x2eaf54[_0x61a916(0x7,0x23,_0x5883fd._0x36583f,_0x5883fd._0x159ab3)](_0xb92028);function _0x61a916(_0x34b994,_0x5d76f4,_0x14f29b,_0x440325){return _0x239415(_0x34b994,_0x5d76f4-_0x161362._0x549753,_0x14f29b- -0x2af,_0x440325-0xae);}_0x2ddba1();};return _0x2eaf54['add'](_0xb92028),{async 'admit'(_0x13d728,_0x1e6280){try{await awaitWithAbort(()=>_0x4d7a92,_0x1e6280);if(_0xee9b68)throw _0x17492e;await _0x13d728();if(_0xee9b68)throw _0x17492e;}catch(_0x3c119f){_0x44bffb(_0x3c119f);throw _0x3c119f;}finally{_0xb92028();}},'fail'(_0x37209b){_0x44bffb(_0x37209b),_0xb92028();}};},'fail':_0x44bffb};}async function awaitRequiredPersistence(_0x4d0415,_0x247f47,_0x2d5c4e){const _0x287fae={_0x85a35c:0x118,_0x44bb27:0xfd,_0x23e1c7:0x55},_0x2965aa={_0xfbb3e1:0x2e0};await awaitWithAbort(()=>{const _0x5c1a0a=Promise[_0x5c6511(-_0x287fae._0x85a35c,-0xb6,-_0x287fae._0x44bb27,-0x167)]()[_0x5c6511(-0x40,-0x39,-_0x287fae._0x23e1c7,-0x78)](_0x4d0415);function _0x5432bd(_0x386d8e,_0x2270b7,_0x1705bc,_0x46dc48){return _0x5e07(_0x46dc48-_0x2965aa._0xfbb3e1,_0x2270b7);}function _0x5c6511(_0x35a468,_0x31a9d3,_0x17864f,_0x3378a8){return _0x5e07(_0x35a468- -0x264,_0x3378a8);}return _0x2d5c4e(_0x5c1a0a),_0x5c1a0a;},_0x247f47);}async function awaitUncancellableAfterAdmission(_0x42cc3b,_0x7cabd4){const _0xdcd308={_0x4d6010:0x2a7,_0x2528ac:0x23e,_0x174b9f:0x1e7,_0x4484ef:0x13d},_0x177d18={_0x8be1ee:0x73,_0xd398b3:0x3b},_0x56594f={_0x4d2a47:0x3dd};throwIfAborted(_0x7cabd4);function _0x195379(_0x2f4fa6,_0x37cdfd,_0x156700,_0x5e30a3){return _0x129ebd(_0x2f4fa6-0x20,_0x37cdfd,_0x156700- -_0x56594f._0x4d2a47,_0x5e30a3-0x143);}const _0x40a965=()=>{};_0x7cabd4[_0x137b6e(_0xdcd308._0x4d6010,0x31e,0x291,_0xdcd308._0x2528ac)](_0x137b6e(_0xdcd308._0x174b9f,0x1cd,0x209,0x21a),_0x40a965,{'once':!![]});function _0x137b6e(_0x4c8ae2,_0x4f8953,_0x49aada,_0x2eb05f){return _0x25dd81(_0x4c8ae2-0x3e,_0x4f8953-_0x177d18._0x8be1ee,_0x4c8ae2- -_0x177d18._0xd398b3,_0x2eb05f);}try{return throwIfAborted(_0x7cabd4),await _0x42cc3b();}finally{_0x7cabd4['removeEventListener'](_0x195379(0x8e,0xb3,0xcb,_0xdcd308._0x4484ef),_0x40a965);}}async function resolveDispatchDecision(_0x5de6ae,_0x4b80f1,_0x2699bc){const _0x30b840={_0xfe493f:0x1f4,_0xfadcc4:0x221,_0x584c3a:0x251,_0x29c167:0x10e,_0x18d5c4:0x276,_0x311c96:0x1e1},_0x51ba53={_0x2088e0:0xec};function _0x313fde(_0x395259,_0xaaa528,_0x2768e6,_0x26199f){return _0x25dd81(_0x395259-0x3a,_0xaaa528-_0x51ba53._0x2088e0,_0xaaa528- -0x70,_0x395259);}function _0x26890d(_0x3db6c1,_0x3ff589,_0x3df4a9,_0x169678){return _0x129ebd(_0x3db6c1-0xb0,_0x3df4a9,_0x3db6c1- -0x339,_0x169678-0x153);}if(!_0x5de6ae)return{'action':_0x26890d(_0x30b840._0xfe493f,0x1a4,_0x30b840._0xfadcc4,_0x30b840._0x584c3a)};const _0x2d1aa2=await awaitWithAbort(()=>_0x5de6ae(_0x4b80f1,_0x2699bc),_0x2699bc[_0x26890d(0x173,_0x30b840._0x29c167,0x11a,0x150)]);return isDispatchDecision(_0x2d1aa2)?_0x2d1aa2:{'action':_0x313fde(_0x30b840._0x18d5c4,0x237,0x27a,_0x30b840._0x311c96)};}async function prepareNestedToolCall(_0x5cc4cb,_0x10275b,_0x3be029,_0x135a4c){const _0x33ef6c={_0x42d740:0x49,_0x364dad:0x751},_0x5d8b51={_0x54643e:0x85};function _0x167a16(_0x1be019,_0x8647a1,_0x422eed,_0xa2da28){return _0x129ebd(_0x1be019-0x76,_0xa2da28,_0x8647a1- -0x57c,_0xa2da28-_0x5d8b51._0x54643e);}if(!_0x5cc4cb)return _0x10275b;function _0x34f7e1(_0x3d25c8,_0x2c96d0,_0xb21034,_0x5e0fae){return _0x129ebd(_0x3d25c8-_0x33ef6c._0x42d740,_0xb21034,_0x2c96d0- -_0x33ef6c._0x364dad,_0x5e0fae-0x1be);}const _0x2641bf=await awaitWithAbort(()=>_0x5cc4cb[_0x167a16(-0x71,-0x43,-0x52,0x1c)](_0x167a16(-0x73,-0xd1,-0xb3,-0xf5),_0x10275b,_0x3be029),_0x135a4c);return throwIfAborted(_0x135a4c),await awaitWithAbort(()=>_0x5cc4cb[_0x34f7e1(-0x309,-0x29f,-0x2f1,-0x2d4)](_0x167a16(-0xf5,-0xd1,-0xe2,-0xc5),_0x2641bf,_0x3be029),_0x135a4c),_0x2641bf;}async function transformNestedToolResult(_0x58431f,_0x4d24a2,_0x2dc45d,_0x56c885){const _0x24a655={_0x577b90:0x59};if(!_0x58431f)return _0x4d24a2;const _0x5f2f31=await awaitWithAbort(()=>_0x58431f[_0x52539d(0x31f,0x37a,0x2e5,0x2a1)](_0x52539d(0x2f4,0x29f,0x2fe,0x33c),_0x4d24a2,_0x2dc45d),_0x56c885);throwIfAborted(_0x56c885),await awaitWithAbort(()=>_0x58431f[_0x52539d(0x298,0x22e,0x2d2,0x2bc)](_0x545780(0x246,0x213,0x295,0x26f),_0x5f2f31,_0x2dc45d),_0x56c885);function _0x545780(_0xce520a,_0x4880b6,_0x50d88a,_0x220140){return _0x25dd81(_0xce520a-0x199,_0x4880b6-0x2d,_0x4880b6- -0x75,_0xce520a);}function _0x52539d(_0x1e2db3,_0x4734bc,_0xbc36d3,_0x5eff85){return _0x25dd81(_0x1e2db3-_0x24a655._0x577b90,_0x4734bc-0x1c,_0x1e2db3-0x6c,_0xbc36d3);}return _0x5f2f31;}function snapshotNestedToolRequest(_0x276f40){const _0x58b96e={_0x592384:0x2d0,_0x208221:0x2e4,_0x3c5424:0x267,_0x166275:0x2e4,_0x43ecd4:0x341,_0x299b8f:0x31e,_0x14b317:0x101,_0x1f39b7:0xa4,_0x50d339:0xf1,_0x16a483:0xe6,_0x69b832:0x71,_0x52c9da:0x6d,_0x350373:0xa7,_0x53465e:0xaa,_0xada439:0x102,_0x15a5de:0x39},_0x155427={_0x45dd80:0x120,_0x5bb93c:0x6d},_0x54cafc={_0x5e11ce:0x198},_0x382098=_0x276f40[_0x5189f1(0x33d,_0x58b96e._0x592384,0x328,0x309)],_0x13dd54=_0x276f40['tool'],_0x20f419=_0x276f40[_0x5189f1(_0x58b96e._0x208221,0x2ff,_0x58b96e._0x3c5424,0x2f9)]['id'],_0x532ce3=structuredClone(_0x276f40[_0x5189f1(_0x58b96e._0x166275,0x2a9,_0x58b96e._0x43ecd4,0x35e)]);function _0x157478(_0x456526,_0x185cfb,_0x260308,_0x14da04){return _0x25dd81(_0x456526-0x27,_0x185cfb-_0x54cafc._0x5e11ce,_0x185cfb- -0x24e,_0x260308);}const _0x54d6b1=_0x276f40[_0x5189f1(_0x58b96e._0x299b8f,0x320,0x303,0x2fa)],_0x2e1ddd=_0x276f40[_0x157478(_0x58b96e._0x14b317,_0x58b96e._0x1f39b7,_0x58b96e._0x50d339,_0x58b96e._0x16a483)];function _0x5189f1(_0x18a874,_0x14719d,_0x1fbe53,_0x2433a7){return _0x25dd81(_0x18a874-0x18e,_0x14719d-_0x155427._0x45dd80,_0x18a874-_0x155427._0x5bb93c,_0x1fbe53);}if(_0x532ce3['name']!==_0x382098||_0x13dd54!==void 0x0&&_0x13dd54[_0x157478(_0x58b96e._0x69b832,_0x58b96e._0x52c9da,0x45,0x24)]!==_0x382098)throw new Error(_0x157478(_0x58b96e._0x350373,_0x58b96e._0x53465e,_0x58b96e._0xada439,_0x58b96e._0x15a5de));return{'requestedName':_0x382098,'tool':_0x13dd54,'toolCall':_0x532ce3,'toolCallId':_0x20f419,'sequence':_0x54d6b1,'trace':_0x2e1ddd};}function createImmutableExecutionScope(_0xe37c29,_0x4c1553){const _0x2cd4b9={_0x4803b2:0xd9,_0x390a9a:0xb2,_0x24ea01:0xe6,_0x564091:0x181},_0x5e2cfc={_0x153e77:0x58b,_0x423b36:0x1ae};function _0x45d8c1(_0x9aedbb,_0x51c749,_0x236670,_0x2e10bc){return _0x129ebd(_0x9aedbb-0xad,_0x2e10bc,_0x236670- -_0x5e2cfc._0x153e77,_0x2e10bc-_0x5e2cfc._0x423b36);}function _0xc4387d(_0x28bede,_0x252d70,_0xab99d3,_0x37aed7){return _0x129ebd(_0x28bede-0xbc,_0xab99d3,_0x28bede- -0x358,_0x37aed7-0x183);}return Object[_0x45d8c1(-0x10d,-_0x2cd4b9._0x4803b2,-_0x2cd4b9._0x390a9a,-_0x2cd4b9._0x24ea01)]({'agentId':_0xe37c29,'toolCallPath':Object[_0xc4387d(_0x2cd4b9._0x564091,0x16f,0x102,0x18d)]([..._0x4c1553])});}async function executeNestedToolRequest(_0xca6bda,_0x2ef5f8,_0x737001,_0x361831,_0x1c0e53,_0x5d469d,_0x5e0a6f,_0x37918d){const _0x5b2ce1={_0x475724:0x550,_0x182b08:0x4d3,_0x3ab848:0xa6,_0x49d951:0x53,_0x18e17b:0x70,_0x3d6217:0x5f0,_0x2886b1:0x570,_0x3a4d27:0x4d8,_0x1f016:0x4a7,_0xcfc5de:0x4f4,_0xcabc6a:0x574,_0xbc8f60:0x4e1,_0x30d2ab:0x51b,_0x26faef:0x9c,_0x306c4c:0x10,_0x24c0e2:0xf9,_0x1c416f:0x26,_0x3b1ba8:0x4d,_0x20a513:0x515,_0x133a2b:0x57c,_0x3fa8ba:0x552,_0x5cd1ad:0x562,_0x19d4d7:0x553,_0x6271da:0x543,_0x1fc66f:0x577,_0x489f0d:0x5b7,_0x6039a3:0x4f6,_0x39c9f7:0x5c6,_0x18c87b:0x565,_0x55dc8a:0x15,_0x38215b:0xa4,_0x5e35e0:0x9d,_0x425330:0x4b0,_0xa7dcb9:0x493,_0x5a1dbd:0x491,_0x47b243:0x1b,_0x402327:0x553,_0x3313b9:0x50e},_0x314c87={_0x1180fb:0x2f8,_0x1a6aa7:0x29a,_0x4539f4:0x313,_0x3c262d:0x1fb,_0x541c13:0x1a8,_0x55fc80:0x133,_0x2f2194:0x180,_0x5d6e08:0x1b5,_0x205bbf:0x1a1,_0x4ca277:0x151,_0x4f264f:0x195,_0x3666c5:0x191,_0x1cea7c:0x36a,_0xb3c2cf:0x2b3,_0x1cdb8d:0x2f1},_0x23f1c3={_0x29ef92:0x104,_0x1cd470:0xec,_0x2ec68f:0xcf,_0x28b6d1:0xe2,_0x5e0a23:0x396,_0x5ad3ba:0x3b6},_0x56710e={_0x5bfd31:0xde,_0x2f01c8:0x31b},_0x4f8ce7={'state':_0x2ef5f8[_0xc22470(0x523,0x4e4,_0x5b2ce1._0x475724,_0x5b2ce1._0x182b08)],'delivery':_0x1b011e(-_0x5b2ce1._0x3ab848,-0x8a,-_0x5b2ce1._0x49d951,-_0x5b2ce1._0x18e17b),'executionScope':_0x737001};function _0x1b011e(_0x39188d,_0x62de5c,_0x200004,_0x1edfc2){return _0x25dd81(_0x39188d-0x3f,_0x62de5c-_0x56710e._0x5bfd31,_0x200004- -_0x56710e._0x2f01c8,_0x39188d);}let _0x4f0c38;try{_0x4f0c38=await prepareNestedToolCall(_0x5d469d[_0xc22470(_0x5b2ce1._0x3d6217,0x4f2,0x5c9,_0x5b2ce1._0x2886b1)],_0xca6bda[_0xc22470(_0x5b2ce1._0x3a4d27,0x510,_0x5b2ce1._0x1f016,0x4ea)],_0x4f8ce7,_0x361831);if(_0x4f0c38['id']!==_0xca6bda[_0xc22470(_0x5b2ce1._0xcfc5de,0x5a7,0x593,0x552)]||_0x4f0c38[_0xc22470(_0x5b2ce1._0xcabc6a,_0x5b2ce1._0xbc8f60,_0x5b2ce1._0x30d2ab,0x52e)]!==_0xca6bda[_0x1b011e(-0x13,-0xa,-0x4b,-_0x5b2ce1._0x26faef)])throw new Error('Nested\x20beforeToolExecution\x20extensions\x20must\x20preserve\x20the\x20call\x20ID\x20and\x20requested\x20name');}catch(_0x417393){_0x1c0e53[_0x1b011e(0x41,-0x68,-_0x5b2ce1._0x306c4c,0x3a)](_0x417393);throw _0x417393;}const _0x27eca8={..._0x2ef5f8,'signal':_0x361831,'executionScope':_0x737001,'toolCallId':void 0x0,'permissionClass':void 0x0,'executionAuthorization':void 0x0,'executeNestedTool':void 0x0,'beginProgramTrace':void 0x0},_0x9bbc7=async(_0x43916b,_0x410dec)=>{const _0x3db57e={_0x1545fe:0x1d2,_0x43e6a6:0xfe,_0x1e5554:0xcc};function _0x1dac5e(_0x46bcdb,_0x384fe7,_0x9024b7,_0x23e0d8){return _0x1b011e(_0x9024b7,_0x384fe7-0x11c,_0x384fe7-0x3e5,_0x23e0d8-0xf);}if(_0x361831[_0x4b622e(_0x23f1c3._0x29ef92,_0x23f1c3._0x1cd470,_0x23f1c3._0x2ec68f,_0x23f1c3._0x28b6d1)])return;function _0x4b622e(_0x5de9ad,_0x4f8d0c,_0x358a69,_0x2f9ce5){return _0x1b011e(_0x5de9ad,_0x4f8d0c-_0x3db57e._0x1545fe,_0x358a69-_0x3db57e._0x43e6a6,_0x2f9ce5-_0x3db57e._0x1e5554);}try{await awaitWithAbort(()=>_0x5e0a6f?.(_0x43916b,_0x410dec),_0x361831);}catch(_0x48196c){if(!isAbortError(_0x48196c)||!_0x361831[_0x1dac5e(_0x23f1c3._0x5e0a23,_0x23f1c3._0x5ad3ba,0x3f7,0x337)])throw _0x48196c;}};await _0x1c0e53[_0x1b011e(-0xdd,-0x5a,-0x87,-_0x5b2ce1._0x24c0e2)](async()=>{const _0x42c11f={_0x43237d:0x96,_0x26a777:0x1d1},_0x2b5111={_0x396d5d:0x51,_0x33ed9c:0x252};function _0x12d7ae(_0xce25de,_0x2b4a5e,_0x117963,_0x552a33){return _0xc22470(_0x117963,_0x2b4a5e-0x123,_0x117963-_0x2b5111._0x396d5d,_0x552a33- -_0x2b5111._0x33ed9c);}throwIfAborted(_0x361831);function _0x4d373d(_0x4dbe98,_0x6b49d1,_0x475a18,_0x4e5188){return _0x1b011e(_0x4dbe98,_0x6b49d1-_0x42c11f._0x43237d,_0x6b49d1-_0x42c11f._0x26a777,_0x4e5188-0x82);}if(_0xca6bda[_0x12d7ae(_0x314c87._0x1180fb,_0x314c87._0x1a6aa7,0x296,_0x314c87._0x4539f4)]){const _0x235809=_0xca6bda[_0x4d373d(_0x314c87._0x3c262d,_0x314c87._0x541c13,0x22a,_0x314c87._0x55fc80)];await awaitRequiredPersistence(()=>_0x235809[_0x4d373d(0x1c9,0x1bf,0x228,0x1ea)](_0xca6bda[_0x4d373d(0x13a,0x167,0x1e2,0x1a7)],cloneToolCallForPublication(_0x4f0c38,_0xca6bda[_0x12d7ae(0x2c0,0x2ed,0x2dd,0x300)],_0xca6bda[_0x12d7ae(0x2fe,0x34e,0x355,0x2f1)])),_0x361831,_0x37918d);}await _0x9bbc7({'type':_0x4d373d(_0x314c87._0x2f2194,_0x314c87._0x5d6e08,_0x314c87._0x205bbf,0x193),'toolCall':cloneToolCallForPublication(_0x4f0c38,_0xca6bda[_0x4d373d(_0x314c87._0x4ca277,_0x314c87._0x4f264f,0x1a4,_0x314c87._0x3666c5)],_0xca6bda[_0x12d7ae(_0x314c87._0x1cea7c,0x287,_0x314c87._0xb3c2cf,_0x314c87._0x1cdb8d)])},_0x27eca8),throwIfAborted(_0x361831);},_0x361831);const _0x39fb06=await executeCapturedToolCall(_0xca6bda[_0x1b011e(-0x5e,-_0x5b2ce1._0x1c416f,-_0x5b2ce1._0x3b1ba8,0x17)],_0x4f0c38,_0xca6bda[_0xc22470(0x4f0,_0x5b2ce1._0x20a513,_0x5b2ce1._0x133a2b,_0x5b2ce1._0x3fa8ba)],_0xca6bda[_0xc22470(_0x5b2ce1._0x5cd1ad,_0x5b2ce1._0x19d4d7,0x4f3,_0x5b2ce1._0x6271da)],_0x27eca8,_0x5d469d,_0x9bbc7);throwIfAborted(_0x361831);const _0x1afc5c=await transformNestedToolResult(_0x5d469d[_0xc22470(0x51f,_0x5b2ce1._0x1fc66f,_0x5b2ce1._0x489f0d,_0x5b2ce1._0x2886b1)],_0x39fb06,_0x4f8ce7,_0x361831),_0x41e2ac=cloneToolResultForPublication(_0x1afc5c,_0xca6bda[_0xc22470(_0x5b2ce1._0x30d2ab,0x5d0,_0x5b2ce1._0x6039a3,0x552)],_0xca6bda[_0xc22470(0x4ce,0x4f1,0x56c,0x543)]);throwIfAborted(_0x361831);function _0xc22470(_0x4113a5,_0x900c75,_0x33a96e,_0x11527b){return _0x129ebd(_0x4113a5-0xa,_0x4113a5,_0x11527b- -0x13,_0x11527b-0x120);}if(_0xca6bda[_0xc22470(_0x5b2ce1._0x39c9f7,0x53e,0x55f,_0x5b2ce1._0x18c87b)]){const _0x3deebd=_0xca6bda[_0x1b011e(_0x5b2ce1._0x55dc8a,-_0x5b2ce1._0x38215b,-0x29,-_0x5b2ce1._0x5e35e0)];await awaitRequiredPersistence(()=>_0x3deebd['recordToolResult'](_0xca6bda[_0xc22470(0x58a,0x540,0x4b2,0x524)],cloneToolResultForPublication(_0x41e2ac,_0xca6bda[_0xc22470(0x505,0x51d,0x5d5,0x552)],_0xca6bda[_0x1b011e(-0x40,-0x32,-0x4b,-0x52)])),_0x361831,_0x37918d);}return await _0x9bbc7({'type':_0xc22470(_0x5b2ce1._0x425330,0x482,_0x5b2ce1._0xa7dcb9,_0x5b2ce1._0x5a1dbd),'result':cloneToolResultForPublication(_0x41e2ac,_0xca6bda[_0x1b011e(_0x5b2ce1._0x47b243,-0x13,-0x3c,-0x97)],_0xca6bda[_0xc22470(_0x5b2ce1._0x402327,0x4e7,_0x5b2ce1._0x3313b9,_0x5b2ce1._0x6271da)])},_0x27eca8),throwIfAborted(_0x361831),_0x41e2ac;}function createBoundToolExecutionControl(_0x230e26,_0x193e29,_0x536e2a,_0x4e1c21){const _0x98b260={_0x1a863a:0x4f2,_0x130c13:0x1c2,_0x3999ac:0xef,_0x5bbd7d:0x128,_0x41a73f:0x125,_0x540837:0x1c5,_0x68d55:0x208,_0x483217:0x1b7,_0x1ec2ab:0x19a,_0x125437:0x5b7,_0x532f6d:0x575,_0x30272b:0x5de},_0x1bbb36={_0x159586:0x121},_0x2e4917={_0x56c3af:0x198,_0x3f09d0:0x1e2},_0x5e8410={_0x444aa2:0x19c},_0x436142={_0xdcc784:0x457,_0x50e505:0x3df,_0x4b0c1a:0x1aa,_0xc6376f:0x247,_0x4d9059:0x218,_0x43ff97:0x29e,_0x2f0dce:0x2bf,_0x5a25b8:0x28d,_0x1ee7a0:0x226,_0x6e53ef:0x425,_0x49b713:0x3ff,_0x34812e:0x46c,_0x2b6c1e:0x460,_0x493937:0x3bc,_0x990955:0x3bf,_0x3d09c2:0x2a4,_0x33a4b7:0x2a3,_0x163c4c:0x232,_0x334e91:0x372,_0x5988d0:0x387,_0x210536:0x358,_0x48fb12:0x35d},_0x3a3bd4={_0x536521:0xfb},_0x7ee0a8={_0x1c8707:0x2e8,_0x2ad481:0x2db,_0x4d8e2e:0x4bb,_0x3fcd39:0x46c,_0x41eb15:0x4c8},_0x4c03f1={_0x43616b:0x137,_0x413e67:0x13c,_0x1107f3:0x6b,_0x2e1a7b:0x96},_0x40f365={_0x2c1ae5:0x92,_0x469b7a:0x9e,_0x1da046:0xc1},_0x547c7d={_0x559b85:0x24,_0x26999b:0x247},_0x2a08e7={_0x298d22:0xf1,_0x5a3644:0x7c},_0x118cf5={_0x2ba79a:0x202,_0x5aa3e5:0x156},_0x204fc4={_0x407629:0x25},_0x43b5fb={_0xdc605:0x2d3},_0x276569=createImmutableExecutionScope(_0x193e29[_0x21dcf3(_0x98b260._0x1a863a,0x510,0x530,0x4ff)][_0x3431f9(0x1ad,_0x98b260._0x130c13,0x23a,0x1e1)],_0x193e29[_0x3431f9(_0x98b260._0x3999ac,_0x98b260._0x5bbd7d,_0x98b260._0x41a73f,0xf6)][_0x3431f9(_0x98b260._0x540837,0x1a4,0x1cc,_0x98b260._0x68d55)]),_0x11aefe=new Set(),_0x487006=new Set(),_0x597822=new AbortController(),_0x4edb9c=createNestedCallAdmissionGate();function _0x21dcf3(_0x7b34b2,_0x423811,_0x577908,_0x189582){return _0x25dd81(_0x7b34b2-0x60,_0x423811-0x9e,_0x577908-_0x43b5fb._0xdc605,_0x189582);}let _0x591fed=![],_0x3290ee=![],_0x330a50,_0x4a0652=![],_0x16be1d=()=>{};const _0x4f0152=_0x1d36c0=>{const _0x533a79={_0x2f62e3:0x19b,_0x6f38e4:0x13e};function _0x52d180(_0x1b88fb,_0x4d5828,_0x235a4f,_0x59e4c9){return _0x21dcf3(_0x1b88fb-_0x533a79._0x2f62e3,_0x4d5828-_0x533a79._0x6f38e4,_0x1b88fb- -0x791,_0x4d5828);}if(_0x591fed)return;_0x591fed=!![];const _0x6c3e0b=toAbortError(_0x1d36c0??PARENT_TOOL_SETTLED_MESSAGE);_0x4edb9c[_0x11f4fb(0x261,0x26e,0x2d7,_0x118cf5._0x2ba79a)](_0x6c3e0b);function _0x11f4fb(_0x270208,_0x4235a6,_0x46a986,_0x23f1ee){return _0x21dcf3(_0x270208-0x63,_0x4235a6-_0x204fc4._0x407629,_0x270208- -0x37d,_0x23f1ee);}_0x597822['abort'](_0x6c3e0b);for(const _0x221835 of _0x11aefe){_0x221835[_0x11f4fb(0x178,0x126,0x157,_0x118cf5._0x5aa3e5)](_0x6c3e0b);}_0x16be1d();};_0x16be1d=addAbortListener(_0x193e29['signal'],()=>{const _0x5a7aae={_0x2cbed7:0x138};function _0x4a2788(_0x5d5d76,_0x3eb8a5,_0x3a3d14,_0x33a2fc){return _0x21dcf3(_0x5d5d76-_0x5a7aae._0x2cbed7,_0x3eb8a5-0x190,_0x3a3d14- -0x5de,_0x5d5d76);}_0x4f0152(_0x193e29['signal'][_0x4a2788(-0xb4,-_0x2a08e7._0x298d22,-_0x2a08e7._0x5a3644,-0xd0)]);});const _0x1a591e=_0x54bb2c=>{const _0x4fd267={_0x88c97b:0x677};_0x487006[_0x4b4c0e(-_0x4c03f1._0x43616b,-_0x4c03f1._0x413e67,-0x12b,-0x12b)](_0x54bb2c);function _0x4b4c0e(_0x42bf4b,_0x3cf15e,_0x2bff65,_0x2808fb){return _0x3431f9(_0x42bf4b-_0x547c7d._0x559b85,_0x3cf15e- -_0x547c7d._0x26999b,_0x2bff65-0x1d7,_0x2808fb);}const _0x4103cc=()=>{const _0x976c89={_0x3e0a55:0x125,_0x2beb05:0x8c,_0x2d3365:0x177};function _0x15645c(_0x5adabd,_0x4e18e1,_0x553fd6,_0x29d4d4){return _0x4b4c0e(_0x5adabd-_0x976c89._0x3e0a55,_0x5adabd-_0x976c89._0x2beb05,_0x553fd6-_0x976c89._0x2d3365,_0x553fd6);}_0x487006[_0x15645c(-_0x40f365._0x2c1ae5,-_0x40f365._0x469b7a,-_0x40f365._0x1da046,-0xb6)](_0x54bb2c);},_0xfa068b=_0x440020=>{!_0x3290ee&&(_0x3290ee=!![],_0x330a50=_0x440020),_0x4103cc();};function _0x5053ba(_0x410f4a,_0x213f83,_0x89cf98,_0x57190d){return _0x21dcf3(_0x410f4a-0x126,_0x213f83-0x137,_0x57190d- -_0x4fd267._0x88c97b,_0x213f83);}void _0x54bb2c[_0x5053ba(-0x34,-_0x4c03f1._0x1107f3,-0x117,-_0x4c03f1._0x2e1a7b)](_0x4103cc,_0xfa068b);},_0x4cf144=async()=>{const _0x321393={_0x3a9dd:0x72},_0x2540cd={_0x5d030f:0x141};function _0x1a6980(_0xf24be8,_0x24d8fb,_0x492544,_0x110320){return _0x3431f9(_0xf24be8-0xa0,_0xf24be8-0xf2,_0x492544-_0x2540cd._0x5d030f,_0x24d8fb);}function _0x1ed55d(_0x42bf01,_0x134d3b,_0x1a6eb4,_0x1d7cb4){return _0x21dcf3(_0x42bf01-_0x321393._0x3a9dd,_0x134d3b-0x18b,_0x134d3b- -0xf4,_0x42bf01);}while(_0x487006[_0x1a6980(0x26d,0x229,_0x7ee0a8._0x1c8707,_0x7ee0a8._0x2ad481)]>0x0){await Promise[_0x1ed55d(_0x7ee0a8._0x4d8e2e,_0x7ee0a8._0x3fcd39,_0x7ee0a8._0x41eb15,0x454)]([..._0x487006]);}if(_0x3290ee)throw _0x330a50;},_0x2dcd8a=async _0x3d7fbc=>{const _0x27d92b={_0x5218d6:0x23f,_0x1b2e26:0x218,_0x1a6e58:0x28d,_0x1b96ea:0x20c},_0xf43026={_0xd83737:0xf3,_0x491d92:0x281};if(_0x591fed)throw toAbortError(PARENT_TOOL_SETTLED_MESSAGE);let _0x319c31;function _0x45ee73(_0x51b376,_0x85784a,_0x371a7d,_0x49eda6){return _0x21dcf3(_0x51b376-_0x3a3bd4._0x536521,_0x85784a-0x1e9,_0x85784a- -0x33d,_0x49eda6);}try{_0x319c31=snapshotNestedToolRequest(_0x3d7fbc);}catch(_0x5b473a){_0x4edb9c[_0x54f655(_0x436142._0xdcc784,0x41b,0x4aa,_0x436142._0x50e505)](_0x5b473a);throw _0x5b473a;}const _0x2556e2=_0x4edb9c[_0x45ee73(0x278,0x217,_0x436142._0x4b0c1a,0x1d9)](_0x319c31[_0x45ee73(0x269,_0x436142._0xc6376f,_0x436142._0x4d9059,_0x436142._0x43ff97)]),_0x5190f7=createImmutableExecutionScope(_0x276569[_0x45ee73(_0x436142._0x2f0dce,_0x436142._0x5a25b8,_0x436142._0x1ee7a0,0x2ad)],[..._0x276569[_0x54f655(_0x436142._0x6e53ef,_0x436142._0x49b713,_0x436142._0x34812e,_0x436142._0x2b6c1e)],_0x230e26]),_0x33b2e2=new AbortController();_0x11aefe['add'](_0x33b2e2);function _0x54f655(_0x2e8fc0,_0x1a6158,_0x3ccd04,_0x2d1d4b){return _0x3431f9(_0x2e8fc0-_0xf43026._0xd83737,_0x2e8fc0-_0xf43026._0x491d92,_0x3ccd04-0x13a,_0x1a6158);}_0x591fed&&_0x33b2e2[_0x54f655(0x36e,0x3d7,_0x436142._0x493937,_0x436142._0x990955)](toAbortError(PARENT_TOOL_SETTLED_MESSAGE));const _0x1eff7f=executeNestedToolRequest(_0x319c31,_0x193e29,_0x5190f7,_0x33b2e2[_0x45ee73(0x153,0x1bc,0x234,0x213)],_0x2556e2,_0x536e2a,_0x4e1c21,_0x1a591e),_0x786dcc=()=>{function _0x323b12(_0x46d4fa,_0x4a696d,_0x2aaf9a,_0x4b0919){return _0x54f655(_0x4a696d- -0x5c2,_0x46d4fa,_0x2aaf9a-0x1a,_0x4b0919-0xa5);}_0x11aefe[_0x323b12(-_0x27d92b._0x5218d6,-_0x27d92b._0x1b2e26,-_0x27d92b._0x1a6e58,-_0x27d92b._0x1b96ea)](_0x33b2e2);};return void _0x1eff7f[_0x45ee73(0x2cd,_0x436142._0x3d09c2,_0x436142._0x33a4b7,_0x436142._0x163c4c)](_0x786dcc,_0x786dcc),await awaitWithAbort(()=>_0x1eff7f,_0x597822[_0x54f655(_0x436142._0x334e91,_0x436142._0x5988d0,_0x436142._0x210536,_0x436142._0x48fb12)]);},_0x112636={'executeNestedTool':_0x2dcd8a},_0x4d0c02=_0x536e2a[_0x3431f9(_0x98b260._0x483217,_0x98b260._0x1ec2ab,0x1cb,0x21b)];_0x4d0c02&&(_0x112636[_0x21dcf3(_0x98b260._0x125437,0x553,0x5a2,0x5d4)]=async()=>{function _0xe9dd90(_0x1f7cee,_0x23d32a,_0x52ae86,_0xbf3198){return _0x21dcf3(_0x1f7cee-0x17c,_0x23d32a-0x2f,_0xbf3198- -0x65b,_0x1f7cee);}function _0x545b3c(_0x4af15d,_0x3f841b,_0x384f33,_0x21bb38){return _0x3431f9(_0x4af15d-_0x5e8410._0x444aa2,_0x21bb38-0x7c,_0x384f33-0x8e,_0x3f841b);}if(_0x591fed)throw toAbortError(PARENT_TOOL_SETTLED_MESSAGE);return await awaitUncancellableAfterAdmission(()=>_0x4d0c02({'executionScope':createImmutableExecutionScope(_0x276569[_0x545b3c(0x281,0x26f,0x279,0x23e)],_0x276569[_0x545b3c(0x1fa,0x271,0x1e7,0x220)]),'programToolCallId':_0x230e26}),_0x597822[_0x545b3c(_0x2e4917._0x56c3af,0x185,_0x2e4917._0x3f09d0,0x16d)]);});const _0x320554=()=>{_0x4a0652=!![],_0x4f0152();},_0x2ef1ab=()=>_0x4a0652,_0x5002df={'capabilities':_0x112636,'close':_0x4f0152,'commitTerminalState':_0x320554,'drainPersistence':_0x4cf144,'isTerminalStateCommitted':_0x2ef1ab};boundNestedExecutionControls[_0x21dcf3(0x588,0x5e0,_0x98b260._0x532f6d,_0x98b260._0x30272b)](_0x2dcd8a,_0x5002df);function _0x3431f9(_0x2a881d,_0xc05b29,_0x2dd696,_0x3aed7f){return _0x25dd81(_0x2a881d-_0x1bbb36._0x159586,_0xc05b29-0x8b,_0xc05b29- -0x135,_0x3aed7f);}return _0x5002df;}async function executeCapturedToolCall(_0xb32f5c,_0x528b16,_0x5c1def,_0x318529,_0x55c1e0,_0xb73688,_0x333863=_0xb73688[_0x129ebd(0x4b3,0x4a9,0x4c7,0x4c3)]){const _0x24a181={_0x8c7c08:0x30c,_0x25ac1d:0x350,_0x598cfe:0x400,_0x21a0be:0x39d,_0x5a40c6:0x375,_0x48b1bb:0x345,_0x43febc:0x2cd},_0x2c2796={_0x113440:0xa4,_0x2d1fb7:0x9,_0x3910ff:0xe6},_0x2ea510={_0x55eb39:0x1a5,_0x8b1cef:0x2d0},_0x56fed9={..._0x55c1e0,'toolCallId':_0x5c1def,'permissionClass':resolveToolPermissionClass(_0xb32f5c),'executionAuthorization':void 0x0};function _0x39f77f(_0x23fe8e,_0x5cf4a8,_0x3925f0,_0x26a3b7){return _0x129ebd(_0x23fe8e-_0x2ea510._0x55eb39,_0x23fe8e,_0x3925f0- -_0x2ea510._0x8b1cef,_0x26a3b7-0x132);}function _0x3b86ae(_0x12ebd6,_0x37846c,_0x305254,_0xe7a9c3){return _0x25dd81(_0x12ebd6-_0x2c2796._0x113440,_0x37846c-_0x2c2796._0x2d1fb7,_0x37846c-_0x2c2796._0x3910ff,_0x12ebd6);}if(_0x56fed9[_0x3b86ae(0x2a3,_0x24a181._0x8c7c08,0x31f,_0x24a181._0x25ac1d)][_0x3b86ae(0x408,0x3d2,_0x24a181._0x598cfe,0x3bf)]){const _0x4a18b4=createAbortedToolResult(_0x5c1def,_0x318529,_0x56fed9['signal'][_0x3b86ae(_0x24a181._0x21a0be,_0x24a181._0x5a40c6,0x325,_0x24a181._0x48b1bb)]);return await emitToolCompletedEventWithTerminalPrecedence(_0x333863,_0x528b16,_0x5c1def,_0x318529,_0x4a18b4,_0x56fed9),_0x4a18b4;}let _0x410cc6;try{_0x410cc6=_0xb32f5c?.['internalLifecycle']?.[_0x39f77f(0x28e,0x26d,0x24c,_0x24a181._0x43febc)]();}catch(_0x1a90a5){const _0x49ac78=isAbortError(_0x1a90a5);let _0x1cb041;if(_0x49ac78)_0x1cb041=createAbortedToolResult(_0x5c1def,_0x318529,_0x1a90a5);else{const {errorMessage:_0x5dab8d,structured:_0x31175e}=normalizeExecutionError(_0x1a90a5);_0x1cb041=createErrorToolResult(_0x5c1def,_0x318529,_0x5dab8d,_0x31175e);}return _0x49ac78?await emitToolCompletedEventWithTerminalPrecedence(_0x333863,_0x528b16,_0x5c1def,_0x318529,_0x1cb041,_0x56fed9):await emitEvent(_0x333863,{'type':'tool_completed','toolCall':cloneToolCallForPublication(_0x528b16,_0x5c1def,_0x318529),'result':_0x1cb041},_0x56fed9),_0x1cb041;}try{return await executeAcquiredToolCall(_0xb32f5c,_0x528b16,_0x5c1def,_0x318529,_0x55c1e0,_0xb73688,_0x333863);}finally{_0x410cc6?.();}}async function executeAcquiredToolCall(_0x12c571,_0x2c4fb3,_0x58df85,_0x3a3941,_0x1baa41,_0x30fc6a,_0x6222c2){const _0x1fab3d={_0x524fe4:0x179,_0x44f545:0x1b4,_0x53aa9d:0x16a,_0x2335e4:0x88,_0x5c2b93:0x56,_0x151064:0x37,_0x296e36:0x179,_0x20f512:0x1aa,_0x3741ba:0xd3,_0x5edb65:0x1ce,_0x5463fa:0xb5,_0x11fd09:0x4a,_0x31161d:0xfa,_0x5e33b4:0x114,_0x1e5360:0x12d,_0x4f2a60:0x177,_0x10098d:0xc0,_0x1763e8:0x67,_0x4a5d23:0xd7,_0x192e68:0x12f,_0x2e3f2a:0x12f,_0x4c7fcb:0x180,_0x12de41:0xbe,_0x5e68a5:0x1b,_0x46a4d4:0x4a,_0x26c2ac:0x6e,_0x1f0894:0x6d,_0x33601b:0xce,_0x555ae7:0x40,_0x4e71ef:0x16b,_0x350996:0x11f,_0x11df9e:0x139,_0x5a18c6:0x121,_0x4f34a9:0xbe,_0x3d0ef0:0xe3,_0x54d82b:0x193,_0x2e9fe4:0x1a0,_0x10fb91:0x134,_0x3a8d78:0x109,_0x3179d2:0x162,_0x1e0cea:0xf0,_0x5a8ed6:0x133,_0x506678:0xb3,_0x27b6d3:0x107,_0x1c3b78:0x189,_0x426567:0xdf,_0x324a88:0x12f,_0x5c4d03:0x185,_0x312455:0x159,_0x115b97:0x1a4,_0x802eb:0x13a,_0x262cb2:0x157,_0x5c2a95:0x13b,_0x17e1ae:0x156,_0x1953ce:0xd8,_0x301260:0xe2,_0x5e0895:0x198,_0x4acea6:0x140,_0x3f072a:0x9a,_0x5d24ef:0x100,_0x53abda:0x86,_0x148094:0x81,_0x4c6f4a:0x136,_0x528044:0xde,_0x5f2b9c:0x98,_0x3ac459:0x151,_0x14ddf7:0xc6,_0x34d935:0x191,_0x10fada:0xf6,_0x2aef7b:0xfb,_0x2d0cc0:0xd2},_0x4ff006={_0x87f146:0x93,_0x2e1acb:0xd2,_0x3d8840:0x67},_0x4d280d={_0x29c795:0xfe,_0x5b12c0:0xcb},_0x286134={_0x426e26:0x1d,_0x2e3e64:0x111,_0x309fd4:0x26},_0x5adb0b={_0x34f30f:0x84,_0x245a87:0x1da},_0x3b4ce2={..._0x1baa41,'toolCallId':_0x58df85,'permissionClass':resolveToolPermissionClass(_0x12c571),'executionAuthorization':void 0x0};throwIfAborted(_0x3b4ce2[_0x2699ba(-0x18c,-_0x1fab3d._0x524fe4,-_0x1fab3d._0x44f545,-_0x1fab3d._0x53aa9d)]);let _0x3193d2;function _0x381cac(_0x492ee4,_0x5d6869,_0x32d0dd,_0x3a2af9){return _0x129ebd(_0x492ee4-0x1d6,_0x5d6869,_0x492ee4- -0x5db,_0x3a2af9-0xe8);}try{_0x3193d2=await resolveDispatchDecision(_0x30fc6a[_0x381cac(-_0x1fab3d._0x2335e4,-_0x1fab3d._0x5c2b93,-_0x1fab3d._0x151064,-0xa5)],_0x2c4fb3,_0x3b4ce2);}catch(_0xeed070){if(isAbortError(_0xeed070)){const _0x47755b=createAbortedToolResult(_0x58df85,_0x3a3941,_0xeed070);return await emitToolCompletedEventWithTerminalPrecedence(_0x6222c2,_0x2c4fb3,_0x58df85,_0x3a3941,_0x47755b,_0x3b4ce2),_0x47755b;}const {errorMessage:_0x3977a2,structured:_0x246634}=normalizeExecutionError(_0xeed070),_0x4da8fb=createErrorToolResult(_0x58df85,_0x3a3941,_0x3977a2,_0x246634);return await emitEvent(_0x6222c2,{'type':'tool_completed','toolCall':cloneToolCallForPublication(_0x2c4fb3,_0x58df85,_0x3a3941),'result':_0x4da8fb},_0x3b4ce2),_0x4da8fb;}throwIfAborted(_0x3b4ce2[_0x2699ba(-0x19b,-_0x1fab3d._0x296e36,-0x19d,-_0x1fab3d._0x20f512)]);if(_0x3193d2['action']==='reject'){const _0x21c60a=createRejectedToolResult(_0x58df85,_0x3a3941,_0x3193d2[_0x381cac(-0xc6,-0x9a,-_0x1fab3d._0x3741ba,-0x122)]);return await emitEvent(_0x6222c2,{'type':_0x2699ba(-0x1b4,-0x167,-_0x1fab3d._0x5edb65,-0x172),'toolCall':cloneToolCallForPublication(_0x2c4fb3,_0x58df85,_0x3a3941),'result':_0x21c60a},_0x3b4ce2),_0x21c60a;}if(!_0x12c571){const _0x1f2835=createUnknownToolResult(_0x58df85,_0x3a3941);return await emitEvent(_0x6222c2,{'type':'tool_completed','toolCall':cloneToolCallForPublication(_0x2c4fb3,_0x58df85,_0x3a3941),'result':_0x1f2835},_0x3b4ce2),_0x1f2835;}const _0x75553c=createBoundToolExecutionControl(_0x58df85,_0x3b4ce2,_0x30fc6a,_0x6222c2),_0x59a99a={..._0x3b4ce2,'executionAuthorization':_0x3193d2[_0x2699ba(-0x114,-_0x1fab3d._0x5463fa,-_0x1fab3d._0x11fd09,-0xa0)],..._0x75553c[_0x381cac(-_0x1fab3d._0x31161d,-0x77,-_0x1fab3d._0x5e33b4,-_0x1fab3d._0x1e5360)]};throwIfAborted(_0x59a99a[_0x381cac(-0x12f,-0xb1,-0x10c,-_0x1fab3d._0x4f2a60)]);try{await emitEvent(_0x6222c2,{'type':_0x381cac(-0x48,-0x5,-0x76,-_0x1fab3d._0x10098d),'toolCall':cloneToolCallForPublication(_0x2c4fb3,_0x58df85,_0x3a3941)},_0x59a99a);}catch(_0xf17396){const _0x115d16=_0x75553c[_0x381cac(-0x98,-_0x1fab3d._0x1763e8,-_0x1fab3d._0x4a5d23,-0xaa)]();if(actualCancellationHasPrecedence(_0x59a99a,_0x115d16)){const _0x2f72d6=selectActualCancellationReason(_0xf17396,_0x59a99a[_0x381cac(-_0x1fab3d._0x192e68,-0x177,-0xe5,-0x14d)][_0x2699ba(-0xa8,-0x110,-0xac,-0x15d)]),_0xe28984=createAbortedToolResult(_0x58df85,_0x3a3941,_0x2f72d6);return _0x75553c['close'](_0x2f72d6),await emitToolCompletedEventWithTerminalPrecedence(_0x6222c2,_0x2c4fb3,_0x58df85,_0x3a3941,_0xe28984,_0x59a99a,_0x115d16),_0xe28984;}_0x75553c['close'](_0xf17396);throw _0xf17396;}function _0x2699ba(_0x190ddb,_0x33e4d5,_0x312a63,_0xf1dfd3){return _0x129ebd(_0x190ddb-_0x5adb0b._0x34f30f,_0xf1dfd3,_0x33e4d5- -0x625,_0xf1dfd3-_0x5adb0b._0x245a87);}try{throwIfAborted(_0x59a99a[_0x381cac(-_0x1fab3d._0x2e3f2a,-_0x1fab3d._0x4c7fcb,-0x159,-_0x1fab3d._0x12de41)]);const _0x4e363c=validateToolInput(_0x2c4fb3[_0x381cac(-0x95,-_0x1fab3d._0x5e68a5,-_0x1fab3d._0x46a4d4,-_0x1fab3d._0x26c2ac)],_0x12c571[_0x381cac(-_0x1fab3d._0x1f0894,-0x3f,-_0x1fab3d._0x33601b,-_0x1fab3d._0x555ae7)]),_0xa2f3e7=await _0x12c571['execute'](_0x4e363c,_0x59a99a),_0x35606c=[],_0x512981=addAbortListener(_0x59a99a[_0x381cac(-_0x1fab3d._0x192e68,-_0x1fab3d._0x4e71ef,-_0x1fab3d._0x350996,-_0x1fab3d._0x11df9e)],()=>{function _0x12adb3(_0x3327ab,_0x17e179,_0x3e6c32,_0x57185f){return _0x381cac(_0x57185f- -_0x286134._0x426e26,_0x17e179,_0x3e6c32-_0x286134._0x2e3e64,_0x57185f-_0x286134._0x309fd4);}function _0x4175a4(_0x13556a,_0x4e6cc6,_0x16a4ea,_0x35b740){return _0x381cac(_0x4e6cc6- -0x5,_0x13556a,_0x16a4ea-_0x4d280d._0x29c795,_0x35b740-_0x4d280d._0x5b12c0);}!_0x75553c['isTerminalStateCommitted']()&&void _0xa2f3e7[_0x4175a4(-0x5b,-_0x4ff006._0x87f146,-_0x4ff006._0x2e1acb,-_0x4ff006._0x3d8840)](void 0x0)[_0x4175a4(-0x57,-0xab,-0x123,-0xb1)](()=>{});});try{throwIfAborted(_0x59a99a['signal']);let _0x10c700=await _0xa2f3e7[_0x381cac(-_0x1fab3d._0x5a18c6,-_0x1fab3d._0x4f34a9,-_0x1fab3d._0x3d0ef0,-0x18f)]();while(!_0x10c700['done']){throwIfAborted(_0x59a99a[_0x381cac(-0x12f,-_0x1fab3d._0x54d82b,-_0x1fab3d._0x2e9fe4,-_0x1fab3d._0x10fb91)]);const _0x1de628=normalizeToolOutputValue(_0x10c700[_0x2699ba(-_0x1fab3d._0x3a8d78,-0x125,-0x127,-_0x1fab3d._0x3179d2)]);_0x35606c[_0x2699ba(-_0x1fab3d._0x1e0cea,-_0x1fab3d._0x5a8ed6,-0xe7,-_0x1fab3d._0x506678)](_0x1de628),await emitEvent(_0x6222c2,{'type':_0x2699ba(-0x16a,-0x14a,-_0x1fab3d._0x27b6d3,-0x143),'toolCall':cloneToolCallForPublication(_0x2c4fb3,_0x58df85,_0x3a3941),'chunk':_0x1de628},_0x59a99a),throwIfAborted(_0x59a99a[_0x2699ba(-_0x1fab3d._0x1c3b78,-0x179,-0x11d,-0x139)]),_0x10c700=await _0xa2f3e7['next']();}!_0x75553c[_0x381cac(-0x98,-0x96,-0x94,-_0x1fab3d._0x426567)]()&&throwIfAborted(_0x59a99a[_0x381cac(-_0x1fab3d._0x324a88,-_0x1fab3d._0x5c4d03,-0xb3,-_0x1fab3d._0x312455)]);const _0x12be49=_0x10c700[_0x2699ba(-_0x1fab3d._0x115b97,-0x125,-_0x1fab3d._0x802eb,-_0x1fab3d._0x262cb2)]===void 0x0?deriveFinalToolOutput(_0x35606c):normalizeToolOutputValue(_0x10c700['value']),_0xd6c33d=createSuccessToolResult(_0x58df85,_0x3a3941,_0x12be49,_0x35606c);return _0x75553c[_0x2699ba(-0x187,-0x140,-_0x1fab3d._0x5c2a95,-_0x1fab3d._0x17e1ae)](),await emitEvent(_0x6222c2,{'type':'tool_completed','toolCall':cloneToolCallForPublication(_0x2c4fb3,_0x58df85,_0x3a3941),'result':_0xd6c33d},_0x59a99a),_0xd6c33d;}catch(_0x4ba9a3){const _0x571d5c=_0x75553c[_0x2699ba(-_0x1fab3d._0x1953ce,-_0x1fab3d._0x301260,-0xfc,-0x11e)](),_0x38b5bc=actualCancellationHasPrecedence(_0x59a99a,_0x571d5c);if(_0x38b5bc||isAbortError(_0x4ba9a3)){const _0x12dac7=_0x38b5bc?selectActualCancellationReason(_0x4ba9a3,_0x59a99a[_0x381cac(-0x12f,-_0x1fab3d._0x5e0895,-0x10f,-_0x1fab3d._0x4acea6)][_0x381cac(-0xc6,-_0x1fab3d._0x3f072a,-_0x1fab3d._0x5d24ef,-_0x1fab3d._0x1e5360)]):_0x4ba9a3,_0x29d481=createAbortedToolResult(_0x58df85,_0x3a3941,_0x12dac7,_0x35606c);return _0x75553c[_0x381cac(-0xf6,-0x74,-_0x1fab3d._0x53abda,-_0x1fab3d._0x148094)](_0x12dac7),await emitToolCompletedEventWithTerminalPrecedence(_0x6222c2,_0x2c4fb3,_0x58df85,_0x3a3941,_0x29d481,_0x59a99a,_0x571d5c),_0x29d481;}if(_0x4ba9a3 instanceof ToolRuntimeInfrastructureError)throw _0x4ba9a3;const {errorMessage:_0x1f4124,structured:_0x2fbdea}=normalizeExecutionError(_0x4ba9a3),_0x135bec=createErrorToolResult(_0x58df85,_0x3a3941,_0x1f4124,_0x2fbdea,_0x35606c);return _0x75553c['close'](_0x4ba9a3),await emitToolCompletedEventWithTerminalPrecedence(_0x6222c2,_0x2c4fb3,_0x58df85,_0x3a3941,_0x135bec,_0x59a99a,_0x75553c[_0x2699ba(-0x95,-_0x1fab3d._0x301260,-_0x1fab3d._0x4c6f4a,-_0x1fab3d._0x528044)]()),_0x135bec;}finally{_0x512981();}}catch(_0x34a56e){const _0x1cd740=_0x75553c[_0x381cac(-_0x1fab3d._0x5f2b9c,-_0x1fab3d._0x5e33b4,-0xb0,-0x1b)](),_0x5ed114=actualCancellationHasPrecedence(_0x59a99a,_0x1cd740);if(_0x5ed114||isAbortError(_0x34a56e)){const _0x1e5fe1=_0x5ed114?selectActualCancellationReason(_0x34a56e,_0x59a99a[_0x2699ba(-0x1ed,-_0x1fab3d._0x296e36,-_0x1fab3d._0x3ac459,-0x1f4)][_0x381cac(-_0x1fab3d._0x14ddf7,-0xa0,-0x11c,-0x10f)]):_0x34a56e,_0x5b0ba8=createAbortedToolResult(_0x58df85,_0x3a3941,_0x1e5fe1);return _0x75553c[_0x2699ba(-0xd3,-0x140,-0x1ba,-_0x1fab3d._0x34d935)](_0x1e5fe1),await emitToolCompletedEventWithTerminalPrecedence(_0x6222c2,_0x2c4fb3,_0x58df85,_0x3a3941,_0x5b0ba8,_0x59a99a,_0x1cd740),_0x5b0ba8;}if(_0x34a56e instanceof ToolRuntimeInfrastructureError)throw _0x34a56e;const {errorMessage:_0x413e7f,structured:_0xa806a0}=normalizeExecutionError(_0x34a56e),_0x425159=createErrorToolResult(_0x58df85,_0x3a3941,_0x413e7f,_0xa806a0);return _0x75553c[_0x381cac(-_0x1fab3d._0x10fada,-0x7f,-_0x1fab3d._0x2aef7b,-0x16a)](_0x34a56e),await emitEvent(_0x6222c2,{'type':_0x381cac(-0x122,-0xc3,-_0x1fab3d._0x2d0cc0,-0x155),'toolCall':cloneToolCallForPublication(_0x2c4fb3,_0x58df85,_0x3a3941),'result':_0x425159},_0x59a99a),_0x425159;}finally{_0x75553c['close']();}}async function executeRegisteredToolCall(_0x4d1abc,_0x28cc51,_0x1a1419,_0x261e27){const _0x1df148={_0x51ed3d:0x5,_0x2dea2c:0x26,_0x379484:0x2d,_0x3de507:0x46},_0x1d946e={_0x3e71c6:0x1b3,_0x30e0ed:0x2e5},_0x2f3b2c={_0x50ed40:0x1ce,_0x409553:0x2e1},_0x339b7e=_0x28cc51['id'],_0x417f2a=_0x28cc51[_0x1e70f1(_0x1df148._0x51ed3d,-_0x1df148._0x2dea2c,_0x1df148._0x379484,-_0x1df148._0x3de507)];function _0x1e70f1(_0x26f0ce,_0x360e94,_0x304d6f,_0x471a6f){return _0x25dd81(_0x26f0ce-0x185,_0x360e94-_0x2f3b2c._0x50ed40,_0x360e94- -_0x2f3b2c._0x409553,_0x26f0ce);}function _0x5c9b01(_0x137d14,_0x8d5bbe,_0x31ddc1,_0x411447){return _0x25dd81(_0x137d14-0x6d,_0x8d5bbe-_0x1d946e._0x3e71c6,_0x137d14- -_0x1d946e._0x30e0ed,_0x8d5bbe);}const _0x31128d=_0x4d1abc[_0x5c9b01(-0xbd,-0xd8,-0xe0,-0x123)](_0x417f2a);return await executeCapturedToolCall(_0x31128d,_0x28cc51,_0x339b7e,_0x417f2a,_0x1a1419,_0x261e27);}function createInternalToolRuntime(_0x907967=[],_0x77ac8e={}){const _0x157f03={_0x4ef944:0x44,_0x19209d:0x132},_0x6e14bb={_0x315c90:0x22a},_0x2b6a43={_0x714519:0x160,_0x36a8cb:0x19e,_0x5bca85:0x128,_0x4a8b14:0x1f},_0x5eccbd={_0x39b6a9:0x44c},_0x1d6396={_0x1d709b:0x259};let _0x2da756=new ToolRegistry(_0x907967);return{'listToolSchemas'(){function _0x1915cd(_0x2066c9,_0xcb4e28,_0xe7223d,_0x256ef8){return _0x5e07(_0x2066c9-_0x1d6396._0x1d709b,_0xcb4e28);}return _0x2da756[_0x1915cd(0x3e1,0x3ef,_0x5eccbd._0x39b6a9,0x41e)]();},'setTools'(_0x26d689){_0x2da756=new ToolRegistry(_0x26d689);},async 'executeCalls'(_0x50deca,_0x3869e0){function _0x4eba2a(_0x21adfb,_0x114b23,_0x2dacba,_0x4f3364){return _0x5e07(_0x4f3364- -0x17c,_0x2dacba);}function _0x4352d3(_0x55de83,_0x105417,_0x1a6e5a,_0xa1264f){return _0x5e07(_0x55de83- -0x2c6,_0x105417);}return await Promise[_0x4352d3(-_0x2b6a43._0x714519,-_0x2b6a43._0x36a8cb,-_0x2b6a43._0x5bca85,-0x18e)](_0x50deca[_0x4eba2a(_0x2b6a43._0x4a8b14,0x5a,-0x2,0x58)](async _0x524861=>{return await executeRegisteredToolCall(_0x2da756,_0x524861,_0x3869e0,_0x77ac8e);}));},async 'execute'(_0x817094,_0x5bd6ab){function _0x835302(_0x229eae,_0xb3278b,_0x51462a,_0x1c2e8c){return _0x5e07(_0x1c2e8c- -_0x6e14bb._0x315c90,_0x51462a);}const [_0x39cc07]=await this[_0x835302(-_0x157f03._0x4ef944,-0x98,-_0x157f03._0x19209d,-0xba)]([_0x817094],_0x5bd6ab);return _0x39cc07;}};}function getOrderedObserverExtensions(_0x3d8487,_0x589c49){const _0x22fc67={_0x1ee94a:0xe4,_0x8f9018:0xcb,_0x8609d0:0x188},_0x2eaef1={_0x53551e:0x10f,_0x2734e0:0x148,_0x3c49f3:0x1e0,_0xf3fa94:0x17b,_0x503cd6:0x128,_0x5d2c57:0x77,_0x9cdbad:0x122,_0x1dd5be:0x51,_0x18dca4:0x33,_0x5263ac:0xac},_0x56d25e={_0x479605:0x385},_0x58ce77={_0x253d76:0x417,_0x1d547d:0x474,_0x2d49ee:0x573,_0x50f9fd:0x3f3,_0x1412bd:0x3f4,_0x525d19:0x479},_0x47e5d6={_0x2dc018:0x295},_0x38ad05={_0x139e68:0x1d6,_0x3a78f4:0x28e,_0x3abf41:0xf5};function _0xfe21f8(_0x23d63a,_0x7efe61,_0x328eb0,_0xe90607){return _0x129ebd(_0x23d63a-_0x38ad05._0x139e68,_0x23d63a,_0x7efe61- -_0x38ad05._0x3a78f4,_0xe90607-_0x38ad05._0x3abf41);}function _0xd180da(_0x34c53b,_0x5e1787,_0x1d62a3,_0x31cc82){return _0x129ebd(_0x34c53b-0x16f,_0x31cc82,_0x5e1787- -0x394,_0x31cc82-0x1e8);}return _0x3d8487[_0xd180da(_0x22fc67._0x1ee94a,0x12d,_0x22fc67._0x8f9018,0x1a6)](_0x31d112=>{function _0x56d7c5(_0x4991c5,_0x134819,_0x528da3,_0x477f6d){return _0xd180da(_0x4991c5-0xc7,_0x134819-0x35d,_0x528da3-0x176,_0x477f6d);}function _0x5a8ed1(_0x5ca224,_0xc6162f,_0x460038,_0x38eb7f){return _0xd180da(_0x5ca224-0x17,_0xc6162f-_0x47e5d6._0x2dc018,_0x460038-0x145,_0x5ca224);}return _0x31d112[_0x5a8ed1(_0x58ce77._0x253d76,0x40b,_0x58ce77._0x1d547d,0x48b)]!==![]&&_0x31d112[_0x56d7c5(0x53b,0x561,0x4eb,_0x58ce77._0x2d49ee)]===_0x589c49&&_0x31d112['kind']===_0x56d7c5(_0x58ce77._0x50f9fd,0x460,_0x58ce77._0x1412bd,_0x58ce77._0x525d19);})[_0xd180da(_0x22fc67._0x8609d0,0x175,0x1dc,0x1cd)]((_0x3af3c4,_0xce9fb0)=>{if(_0x3af3c4[_0x30e412(-0x1bc,-0x19e,-_0x2eaef1._0x53551e,-_0x2eaef1._0x2734e0)]===!![]&&_0xce9fb0[_0x5862f3(-0x114,-_0x2eaef1._0x3c49f3,-_0x2eaef1._0xf3fa94,-0x13b)]!==!![])return 0x1;if(_0x3af3c4['terminal']!==!![]&&_0xce9fb0[_0x30e412(-0x101,-0x194,-_0x2eaef1._0x503cd6,-0x148)]===!![])return-0x1;function _0x30e412(_0x52a89b,_0xd7099a,_0x21d461,_0x406c80){return _0xd180da(_0x52a89b-0xf0,_0x406c80- -0x24c,_0x21d461-0x6c,_0x52a89b);}function _0x5862f3(_0x2f944b,_0x2771c7,_0x27fe8c,_0x2323a3){return _0xfe21f8(_0x2771c7,_0x27fe8c- -_0x56d25e._0x479605,_0x27fe8c-0xb8,_0x2323a3-0x95);}return _0x3af3c4[_0x30e412(-_0x2eaef1._0x5d2c57,-_0x2eaef1._0x9cdbad,-_0x2eaef1._0x1dd5be,-0xac)]-_0xce9fb0[_0x30e412(-_0x2eaef1._0x18dca4,-0x3f,-0x119,-_0x2eaef1._0x5263ac)];});}function getOrderedTransformerExtensions(_0x1f203d,_0x412470){const _0x2645c9={_0x19e0cb:0x264,_0x2dcdc3:0x208,_0x6d1f68:0x212},_0x528da4={_0x12a6a0:0x59d,_0x14ea53:0x5d5,_0x1b8d6a:0x6,_0xa1c6ab:0x39,_0x29b8fa:0x54b,_0x9d5fdc:0x120,_0x32ad14:0x11e},_0x496f5a={_0x144c5b:0xf9},_0x674043={_0xa7c6bf:0xed,_0x2eec33:0x33};function _0x3b688a(_0x301223,_0x351323,_0x1caa75,_0x3a45ce){return _0x25dd81(_0x301223-0x8d,_0x351323-_0x674043._0xa7c6bf,_0x1caa75- -_0x674043._0x2eec33,_0x301223);}function _0x46300b(_0x1b7e1a,_0x10da82,_0xcdc774,_0x305757){return _0x25dd81(_0x1b7e1a-_0x496f5a._0x144c5b,_0x10da82-0x1aa,_0x305757- -0x393,_0x10da82);}return _0x1f203d[_0x3b688a(0x1c4,_0x2645c9._0x19e0cb,_0x2645c9._0x2dcdc3,_0x2645c9._0x6d1f68)](_0x48c238=>{const _0x3a068c={_0x32ccf8:0x18d,_0x270a0f:0x318,_0x2a6edc:0x54},_0x51b3be={_0x4adf24:0xac};function _0x4d9403(_0x282fab,_0x4dcbb9,_0x1d378,_0x1bdc45){return _0x3b688a(_0x4dcbb9,_0x4dcbb9-0x1d,_0x282fab- -0x33a,_0x1bdc45-_0x51b3be._0x4adf24);}function _0x321ddc(_0x16653b,_0x39fdc5,_0x5a5fd5,_0x30d911){return _0x3b688a(_0x16653b,_0x39fdc5-_0x3a068c._0x32ccf8,_0x30d911-_0x3a068c._0x270a0f,_0x30d911-_0x3a068c._0x2a6edc);}return _0x48c238[_0x321ddc(_0x528da4._0x12a6a0,0x5a5,_0x528da4._0x14ea53,0x569)]!==![]&&_0x48c238[_0x4d9403(-0x5b,-0x99,-_0x528da4._0x1b8d6a,-_0x528da4._0xa1c6ab)]===_0x412470&&_0x48c238[_0x321ddc(0x515,_0x528da4._0x29b8fa,0x4fa,0x4fa)]===_0x4d9403(-_0x528da4._0x9d5fdc,-_0x528da4._0x32ad14,-0xc3,-0xe5);})['sort']((_0x1a9634,_0x3802a0)=>_0x1a9634[_0x3b688a(0x2da,0x2e8,0x27b,0x24f)]-_0x3802a0[_0x3b688a(0x213,0x2dd,0x27b,0x291)]);}function createExtensionRegistry(){const _0x368e67={_0x518543:0x14e,_0x51ab1d:0xf8},_0xd5e929={_0x580ae9:0x337,_0x1dd07f:0x102,_0x1a0fce:0x190,_0x7107c:0x1ab,_0x3ecc8f:0x180,_0xffe997:0x10c,_0x598aa5:0x14e,_0x4286ff:0x273,_0x380ca7:0x3f7,_0x1bd715:0x3c5,_0x35fc50:0x149,_0xc2042d:0x1ff,_0x4bfbf7:0x13b,_0x410af8:0x157,_0x3851a3:0x394,_0x40063e:0x3c6,_0x1df00f:0x31d,_0x5d7536:0x380,_0x2564bf:0x33d},_0x7a7cf1=[];return{'register'(_0x340773){const _0x2751a0={_0x27f7d6:0x6d};if(_0x340773[_0x2350e9(0x359,0x2a1,0x2ec,_0xd5e929._0x580ae9)]===_0x333e2a(_0xd5e929._0x1dd07f,0xba,0x102,0xf8)&&_0x340773[_0x333e2a(_0xd5e929._0x1a0fce,0x12d,_0xd5e929._0x7107c,0xab)]!==![]&&_0x340773['terminal']===!![]){const _0x151672=_0x7a7cf1[_0x333e2a(_0xd5e929._0x3ecc8f,0x162,_0xd5e929._0xffe997,_0xd5e929._0x598aa5)](_0x1d7b6e=>_0x1d7b6e['kind']===_0x2350e9(0x2c8,0x2dd,0x2e8,0x357)&&_0x1d7b6e['enabled']!==![]&&_0x1d7b6e[_0x333e2a(0x14a,0x1bb,0x17c,0x19f)]===_0x340773[_0x333e2a(0x160,0x1bb,0x15f,0x21d)]&&_0x1d7b6e['terminal']===!![]);if(_0x151672)throw new Error(_0x2350e9(0x2ac,_0xd5e929._0x4286ff,0x2e7,0x321)+_0x340773['id']+_0x2350e9(_0xd5e929._0x380ca7,0x3c4,_0xd5e929._0x1bd715,0x3f9)+_0x340773[_0x333e2a(_0xd5e929._0x35fc50,0x1bb,0x20f,_0xd5e929._0xc2042d)]+_0x333e2a(0x157,_0xd5e929._0x4bfbf7,_0xd5e929._0x410af8,0xcd)+_0x151672['id']+_0x2350e9(0x3d9,_0xd5e929._0x3851a3,_0xd5e929._0x40063e,0x380));}function _0x2350e9(_0x3adbea,_0x34f200,_0x54ed3b,_0x4073c6){return _0x5e07(_0x54ed3b-0x1c1,_0x34f200);}function _0x333e2a(_0xba3931,_0x76dfb3,_0x2e5132,_0x272ac6){return _0x5e07(_0x76dfb3- -_0x2751a0._0x27f7d6,_0xba3931);}_0x7a7cf1[_0x2350e9(_0xd5e929._0x1df00f,_0xd5e929._0x5d7536,0x343,_0xd5e929._0x2564bf)]({..._0x340773});},async 'runTransformers'(_0x4dcbc3,_0xcce059,_0x1b8e3c){let _0x34297d=_0xcce059;for(const _0x523884 of getOrderedTransformerExtensions(_0x7a7cf1,_0x4dcbc3)){_0x34297d=await _0x523884['run'](_0x34297d,_0x1b8e3c);}return _0x34297d;},async 'runObservers'(_0x59a44f,_0x24ce8d,_0x4e5988){const _0x41baff={_0x98fe0d:0x85};function _0x41848f(_0x4df577,_0x21e1a8,_0x3fa967,_0x3fe88e){return _0x5e07(_0x3fa967- -_0x41baff._0x98fe0d,_0x3fe88e);}for(const _0x55d6cc of getOrderedObserverExtensions(_0x7a7cf1,_0x59a44f)){await _0x55d6cc[_0x41848f(_0x368e67._0x518543,_0x368e67._0x51ab1d,0x138,0x138)](_0x24ce8d,_0x4e5988);}}};}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(_0x47404e,_0x5edfe6){const _0x2e8c43={_0x241f13:0x41,_0x283376:0x14,_0x246262:0xa7,_0x5118a6:0x47,_0x19c7c3:0x247,_0xfbc9d4:0x20c,_0x523816:0x76,_0xe20933:0x5b,_0x42c65d:0x12,_0x2f7401:0x243,_0x3f7699:0x2be,_0x5ce981:0x243,_0x18e86c:0x217,_0x24c603:0x1ad,_0x42149c:0x238,_0x3a2c00:0x29a,_0x157da3:0x277,_0xbe168c:0x26c,_0x4f76a7:0x2fb,_0x657d2d:0x202,_0x104f8d:0x1fa,_0x39f9d1:0x254,_0x42a56e:0x22f,_0x1f61ab:0x24b,_0x1bd565:0x38,_0x3df1ba:0x2bf,_0x27a3c3:0x2f4,_0x25bf82:0x28a,_0x437cd8:0xd2,_0x9320e0:0x68,_0x485406:0x1c5,_0x5ab3b6:0x35,_0x401523:0x15,_0x4623fb:0x18,_0x215acc:0x1e2,_0xdd58f5:0x24c,_0x261d2b:0x27,_0x530f0b:0x36},_0x4e7b10={_0x564b94:0x51f},_0x52c2db={_0x4f7d1c:0xc5};function _0x52d365(_0x513958,_0x2e1c51,_0xd006fe,_0x507f92){return _0x129ebd(_0x513958-_0x52c2db._0x4f7d1c,_0xd006fe,_0x513958- -0x2c8,_0x507f92-0xd9);}const _0x449ed8=_0x5edfe6[_0x7d479a(_0x2e8c43._0x241f13,-_0x2e8c43._0x283376,0x59,0x38)],_0x1a6bb3=_0x449ed8[_0x7d479a(-_0x2e8c43._0x246262,-0x3b,-0x67,-_0x2e8c43._0x5118a6)],_0x16ed2c=_0x449ed8[_0x52d365(0x266,_0x2e8c43._0x19c7c3,_0x2e8c43._0xfbc9d4,0x2dd)],_0x1d1046=_0x449ed8[_0x7d479a(-_0x2e8c43._0x523816,-0x4a,_0x2e8c43._0xe20933,-_0x2e8c43._0x42c65d)]??0x0;function _0x7d479a(_0x3b6f45,_0x1c005d,_0x5509c5,_0x4a9476){return _0x129ebd(_0x3b6f45-0x1ed,_0x5509c5,_0x4a9476- -_0x4e7b10._0x564b94,_0x4a9476-0x35);}const _0x394225=_0x1a6bb3+_0x16ed2c,_0x468219=_0x449ed8['reportedCost']?.[_0x52d365(_0x2e8c43._0x2f7401,0x26e,_0x2e8c43._0x3f7699,0x1df)],_0x46b569=_0x449ed8['estimatedCost']?.[_0x52d365(_0x2e8c43._0x5ce981,0x29f,0x286,0x227)],_0x43be5f=_0x468219??_0x46b569,{currentReportedCostUsdTicks:_0x34beba,currentEstimatedCostUsdTicks:_0x4e0484,..._0x566802}=_0x47404e;return{..._0x566802,'totalTokens':_0x566802['totalTokens']+_0x394225,'totalInputTokens':_0x566802['totalInputTokens']+_0x1a6bb3,'totalOutputTokens':_0x566802[_0x52d365(0x207,_0x2e8c43._0x18e86c,_0x2e8c43._0x24c603,_0x2e8c43._0x42149c)]+_0x16ed2c,'totalReasoningTokens':_0x566802[_0x52d365(0x2c5,_0x2e8c43._0x3a2c00,_0x2e8c43._0x157da3,0x24e)]+_0x1d1046,'modelCallCount':_0x566802['modelCallCount']+0x1,'totalModelTimeMs':_0x566802[_0x52d365(0x2d1,0x26a,_0x2e8c43._0xbe168c,_0x2e8c43._0x4f76a7)]+_0x5edfe6['modelTimeMs'],'currentTokens':_0x394225,'currentInputTokens':_0x1a6bb3,'currentOutputTokens':_0x16ed2c,'currentReasoningTokens':_0x1d1046,'currentModelTimeMs':_0x5edfe6[_0x52d365(_0x2e8c43._0x657d2d,0x23e,0x1e3,_0x2e8c43._0x104f8d)],..._0x566802[_0x52d365(0x288,_0x2e8c43._0x39f9d1,_0x2e8c43._0x42a56e,_0x2e8c43._0x1f61ab)]&&_0x394225>0x0?{'contextWindowUsage':_0x394225/_0x566802[_0x7d479a(-_0x2e8c43._0x1bd565,-0x2c,-0x43,0x31)]}:{},'totalCostUsdTicks':_0x43be5f===void 0x0?_0x566802[_0x52d365(_0x2e8c43._0x3df1ba,_0x2e8c43._0x27a3c3,0x2b8,_0x2e8c43._0x25bf82)]:_0x566802[_0x7d479a(0x43,_0x2e8c43._0x437cd8,0x82,_0x2e8c43._0x9320e0)]+_0x43be5f,'totalReportedCostUsdTicks':_0x468219===void 0x0?_0x566802[_0x52d365(0x237,0x2a5,_0x2e8c43._0x485406,0x20f)]:_0x566802['totalReportedCostUsdTicks']+_0x468219,'totalEstimatedCostUsdTicks':_0x46b569===void 0x0?_0x566802[_0x7d479a(-_0x2e8c43._0x5ab3b6,_0x2e8c43._0x401523,0x67,0x14)]:_0x566802[_0x7d479a(-0x2b,-_0x2e8c43._0x4623fb,0x6f,0x14)]+_0x46b569,'reportedCostCallCount':_0x468219===void 0x0?_0x566802['reportedCostCallCount']:_0x566802[_0x52d365(_0x2e8c43._0x215acc,_0x2e8c43._0xdd58f5,0x1eb,0x235)]+0x1,'estimatedCostCallCount':_0x46b569===void 0x0?_0x566802[_0x7d479a(-0x40,-0x10,-_0x2e8c43._0x261d2b,-_0x2e8c43._0x530f0b)]:_0x566802[_0x7d479a(-0x30,-0xa0,0x44,-0x36)]+0x1,'unpricedModelCallCount':_0x468219===void 0x0&&_0x46b569===void 0x0?_0x566802['unpricedModelCallCount']+0x1:_0x566802['unpricedModelCallCount'],..._0x468219!==void 0x0?{'currentReportedCostUsdTicks':_0x468219}:{},..._0x46b569!==void 0x0?{'currentEstimatedCostUsdTicks':_0x46b569}:{}};}function createAgentMetrics(_0x26b489={}){const _0x12220f={_0x3b4a71:0x86},_0x29f991={_0x402d34:0xa5},_0x618721={_0x538334:0x2b3,_0x59ceae:0x2b9,_0x1d1939:0x3ef,_0x2c565:0x471,_0x6c9df3:0x3fc,_0x2a57bb:0x42c,_0x17e2d9:0x279,_0x6faeda:0x205,_0x58ec0b:0x28d,_0x2266d6:0x266,_0x4406b5:0x24a,_0xb7247d:0x279,_0x27a29b:0x2d3,_0x24b446:0x280,_0x2be83d:0x303,_0x566f64:0x2dc,_0x5f36c0:0x2f4,_0x38f18c:0x299},_0x31b2a9={_0x139890:0x1c5,_0x12bcab:0x1a5,_0x329744:0x1a9,_0x18be7d:0x1e8,_0x5f4692:0x117,_0x5e6d2f:0x175,_0x1dda14:0x17a,_0x17dbf9:0x23f,_0xad4d8:0x194,_0x4c9d43:0x22c,_0x4a92a4:0x1a4,_0x249727:0x211,_0x409930:0xfb,_0x10aae4:0xbd,_0xba3a3c:0x251,_0x1135cc:0x169,_0x145d00:0x54d,_0x25368c:0x54d,_0x35ca33:0x4c0,_0x1f7589:0x4d5,_0x131264:0x514},_0x22be33={_0x13e00e:0x37c};let _0x389d71=createEmptySnapshot();const _0xc98207=new Set();let _0x57bf3f;const _0x19b2ef=()=>{const _0x2bdac1={..._0x389d71};for(const _0x467a44 of _0xc98207)_0x467a44(_0x2bdac1);};return{'getSnapshot'(){return{..._0x389d71};},'recordEvent'(_0x1e12cc){const _0x23e69f={_0xec7dff:0x329};if(_0x1e12cc[_0x43044c(-_0x31b2a9._0x139890,-0x1e8,-0x23f,-0x18b)]===_0x4ce4cd(0x4ed,0x4f0,0x4f9,0x537)){_0x57bf3f=Date['now']();const _0x31772b=_0x26b489[_0x43044c(-0x1bd,-0x18d,-_0x31b2a9._0x12bcab,-_0x31b2a9._0x329744)]?.(_0x1e12cc['request']);_0x31772b!==void 0x0&&(_0x389d71={..._0x389d71,'contextWindowLimit':_0x31772b},_0x19b2ef());return;}function _0x43044c(_0x51836a,_0x54b23c,_0x2116b8,_0x2b1aee){return _0x5e07(_0x54b23c- -_0x23e69f._0xec7dff,_0x2b1aee);}if(_0x1e12cc[_0x43044c(-_0x31b2a9._0x329744,-_0x31b2a9._0x18be7d,-0x1c8,-0x1ac)]==='model_response'){const _0x838b50=_0x57bf3f===void 0x0?0x0:Date[_0x43044c(-_0x31b2a9._0x5f4692,-0x10f,-0xfc,-_0x31b2a9._0x5e6d2f)]()-_0x57bf3f;_0x57bf3f=void 0x0,_0x389d71=applyModelCall(_0x389d71,{'usage':_0x1e12cc['response']['usage'],'modelTimeMs':_0x1e12cc[_0x43044c(-_0x31b2a9._0x1dda14,-0x1cf,-_0x31b2a9._0x17dbf9,-_0x31b2a9._0xad4d8)]??_0x838b50}),_0x19b2ef();return;}if(_0x1e12cc[_0x43044c(-_0x31b2a9._0x4c9d43,-0x1e8,-_0x31b2a9._0x4a92a4,-_0x31b2a9._0x249727)]==='tool_call'){_0x389d71={..._0x389d71,'toolCallCount':_0x389d71[_0x43044c(-_0x31b2a9._0x409930,-0x13b,-0x16b,-_0x31b2a9._0x10aae4)]+0x1},_0x19b2ef();return;}function _0x4ce4cd(_0x6ff6d5,_0x5a0904,_0x15d9d0,_0x821ada){return _0x5e07(_0x821ada-_0x22be33._0x13e00e,_0x5a0904);}_0x1e12cc[_0x43044c(-0x244,-_0x31b2a9._0x18be7d,-_0x31b2a9._0xba3a3c,-_0x31b2a9._0x1135cc)]===_0x4ce4cd(_0x31b2a9._0x145d00,_0x31b2a9._0x25368c,0x5a7,0x597)&&(_0x389d71={..._0x389d71,'requestCount':_0x389d71[_0x4ce4cd(_0x31b2a9._0x35ca33,0x4b5,_0x31b2a9._0x1f7589,_0x31b2a9._0x131264)]+0x1},_0x19b2ef());},'reset'(){_0x389d71=createEmptySnapshot(),_0x57bf3f=void 0x0,_0x19b2ef();},'restore'(_0xb16ba2){let _0x37a7e4=createEmptySnapshot();function _0x456793(_0x4b8fad,_0x3dc191,_0x2d4cab,_0x307a3a){return _0x5e07(_0x2d4cab-0x215,_0x307a3a);}for(const _0x523b1a of _0xb16ba2[_0x1cbf5a(0x326,_0x618721._0x538334,0x2ef,_0x618721._0x59ceae)]){_0x37a7e4=applyModelCall(_0x37a7e4,{'usage':_0x523b1a[_0x456793(_0x618721._0x1d1939,_0x618721._0x2c565,_0x618721._0x6c9df3,_0x618721._0x2a57bb)],'modelTimeMs':_0x523b1a['modelTimeMs']});}function _0x1cbf5a(_0x3cdc3a,_0x3e7d85,_0x4313e7,_0x467863){return _0x5e07(_0x467863-0x115,_0x3cdc3a);}_0x389d71={..._0x37a7e4,'requestCount':_0xb16ba2[_0x1cbf5a(_0x618721._0x17e2d9,0x323,0x339,0x2b9)][_0x1cbf5a(_0x618721._0x6faeda,0x2e7,_0x618721._0x58ec0b,_0x618721._0x2266d6)](_0x2ee17d=>_0x2ee17d[_0x1cbf5a(0x307,0x329,0x26f,0x2c9)])[_0x1cbf5a(0x293,_0x618721._0x4406b5,0x273,_0x618721._0xb7247d)],'toolCallCount':_0xb16ba2[_0x1cbf5a(0x286,_0x618721._0x27a29b,_0x618721._0x24b446,_0x618721._0x2be83d)],'historicalMetricsComplete':_0xb16ba2[_0x1cbf5a(0x2c0,0x302,_0x618721._0x566f64,_0x618721._0x5f36c0)]===0x0,'missingHistoricalModelCallCount':_0xb16ba2[_0x1cbf5a(_0x618721._0x38f18c,0x2c4,0x32e,0x2f4)]},_0x57bf3f=void 0x0,_0x19b2ef();},'subscribe'(_0x140324){_0xc98207[_0x2a5271(-0x93,-0x68,-_0x12220f._0x3b4a71,-0xb8)](_0x140324);function _0x2a5271(_0x55b875,_0x2db9b9,_0x8b6e9e,_0x4efb34){return _0x5e07(_0x8b6e9e- -0x1dc,_0x55b875);}return()=>{const _0x1c6ad5={_0x25a873:0x161};function _0x555533(_0x3c00ea,_0x2c948a,_0x1998c4,_0x25fef9){return _0x2a5271(_0x2c948a,_0x2c948a-_0x1c6ad5._0x25a873,_0x25fef9-0x146,_0x25fef9-0x1a6);}_0xc98207[_0x555533(0x12c,0x14c,_0x29f991._0x402d34,0xde)](_0x140324);};}};}function normalizeExecutionScope(_0x6b0a0c){const _0xb43dd5={_0xbdf502:0x9d,_0x859b10:0xea,_0x388c4b:0x89},_0x3a3480={_0xddea10:0x125,_0x1573d9:0x4a1,_0x22cd43:0x4a};function _0x2c4173(_0x54679e,_0x50337a,_0x25ddf2,_0x318092){return _0x129ebd(_0x54679e-_0x3a3480._0xddea10,_0x318092,_0x25ddf2- -_0x3a3480._0x1573d9,_0x318092-_0x3a3480._0x22cd43);}function _0x21d9c(_0x561fea,_0x51a711,_0x43504e,_0x17239d){return _0x129ebd(_0x561fea-0x7e,_0x51a711,_0x561fea- -0x649,_0x17239d-0x12c);}return{'agentId':_0x6b0a0c?.['agentId']??_0x2c4173(0x1c,0xb5,_0xb43dd5._0xbdf502,0x5a),'toolCallPath':[..._0x6b0a0c?.[_0x21d9c(-_0xb43dd5._0x859b10,-0x7d,-0x110,-_0xb43dd5._0x388c4b)]??[]]};}function makeExtensionContext(_0xb32857,_0xe914e0){const _0x3ec087={_0x4556e0:0x280,_0x44567b:0x292};function _0x207c34(_0x52deb3,_0x411bbb,_0x5deb64,_0x3dfebb){return _0x129ebd(_0x52deb3-0x195,_0x52deb3,_0x5deb64- -0x74d,_0x3dfebb-0x4b);}return{'state':_0xb32857,'delivery':_0x207c34(-_0x3ec087._0x4556e0,-_0x3ec087._0x44567b,-0x256,-0x295),'executionScope':_0xe914e0};}async function runStage(_0x149846,_0x344a4f,_0x4bc850,_0x30639f){const _0x425152={_0xdda243:0x331,_0x50d2b6:0x343},_0x1f6fab={_0x29a2f4:0x213,_0x5b9566:0x2d},_0x22d8ba=await _0x149846[_0x50cd4e(_0x425152._0xdda243,_0x425152._0x50d2b6,0x326,0x2c0)](_0x344a4f,_0x4bc850,_0x30639f);function _0x50cd4e(_0xdba174,_0x3442c3,_0x40132f,_0x15f51b){return _0x129ebd(_0xdba174-0x142,_0x15f51b,_0x40132f- -_0x1f6fab._0x29a2f4,_0x15f51b-_0x1f6fab._0x5b9566);}return await _0x149846['runObservers'](_0x344a4f,_0x22d8ba,_0x30639f),_0x22d8ba;}async function emitEvent2(_0x1ae13a,_0x509a23,_0x427dc5){await _0x1ae13a?.(_0x509a23,_0x427dc5);}function replaceToolUseBlocks(_0x5604e8,_0x5a67ad){const _0x2dcd20={_0x1e6e16:0x1c3,_0x10ae63:0x271,_0x446934:0x267,_0x32eb6b:0x288,_0xc91518:0x271},_0x10d097={_0x30a5dc:0x160,_0x163eea:0x151,_0x56a2fa:0x1b9,_0x45d33e:0x36},_0x9104af={_0x37f680:0x195,_0x59ddd1:0x9a},_0x3d2e95={_0x228275:0x105,_0x21f598:0x1cc},_0x13bfa7={_0x3fedfa:0x1a7,_0x2dea06:0x1c7,_0x4a6fcd:0xd2};function _0x4f4825(_0x123ce6,_0x3a1fc0,_0x48fa00,_0x36ce03){return _0x129ebd(_0x123ce6-_0x13bfa7._0x3fedfa,_0x48fa00,_0x3a1fc0- -_0x13bfa7._0x2dea06,_0x36ce03-_0x13bfa7._0x4a6fcd);}function _0x4460a8(_0x458a0a,_0x27345a,_0x59873f,_0x3431a8){return _0x25dd81(_0x458a0a-_0x3d2e95._0x228275,_0x27345a-_0x3d2e95._0x21f598,_0x458a0a- -0x9b,_0x3431a8);}let _0x6ce20c=0x0;return{..._0x5604e8,'content':_0x5604e8[_0x4460a8(0x240,_0x2dcd20._0x1e6e16,_0x2dcd20._0x10ae63,_0x2dcd20._0x446934)][_0x4460a8(0x223,0x25c,_0x2dcd20._0x32eb6b,_0x2dcd20._0xc91518)](_0x383e7b=>{const _0x317be5={_0x9edc27:0x189};if(_0x383e7b[_0x2abddf(_0x10d097._0x30a5dc,_0x10d097._0x163eea,0x155,_0x10d097._0x56a2fa)]!==_0x472ce0(-_0x10d097._0x45d33e,0xb2,0x8e,0x46))return _0x383e7b;const _0x27dd2d=_0x5a67ad[_0x6ce20c];function _0x472ce0(_0xb3ea5a,_0x5cc461,_0x20f9b1,_0x47ecab){return _0x4460a8(_0x47ecab- -0x15d,_0x5cc461-_0x317be5._0x9edc27,_0x20f9b1-0x92,_0xb3ea5a);}_0x6ce20c+=0x1;function _0x2abddf(_0x37e146,_0x19e06c,_0x3d4ccd,_0x9fe36c){return _0x4f4825(_0x37e146-0x151,_0x3d4ccd- -_0x9104af._0x37f680,_0x19e06c,_0x9fe36c-_0x9104af._0x59ddd1);}return structuredClone(_0x27dd2d);})};}function createAssistantMessageId(_0x4abf75,_0x573f78){const _0xb0ff6a={_0x187045:0x21e},_0x5be8fe={_0x5e6e97:0x245};function _0x1b5e9b(_0x275f5f,_0x4ff9f3,_0x5738d3,_0x594eff){return _0x129ebd(_0x275f5f-0x1a0,_0x5738d3,_0x275f5f- -_0x5be8fe._0x5e6e97,_0x594eff-0x199);}return _0x4abf75+_0x1b5e9b(0x25c,0x23a,_0xb0ff6a._0x187045,0x2b4)+_0x573f78;}function createReasoningMessageId(_0x487acf){const _0x3703b0={_0x278228:0x361,_0x4dcbea:0x387,_0x29f3b9:0x33a,_0x304649:0x2c6};function _0x5893bf(_0x43a1cb,_0x3d56ee,_0x51e872,_0x178351){return _0x129ebd(_0x43a1cb-0x81,_0x43a1cb,_0x51e872- -0x22f,_0x178351-0x1b7);}return _0x487acf+_0x5893bf(_0x3703b0._0x278228,_0x3703b0._0x4dcbea,_0x3703b0._0x29f3b9,_0x3703b0._0x304649);}function withMessageId(_0x3badf2,_0xed1db7){if(_0x3badf2['id']===_0xed1db7)return _0x3badf2;return{..._0x3badf2,'id':_0xed1db7};}function createAssistantChunkEvent(_0x45c81b,_0x3f2ec8){const _0x31ca47={_0x469cc9:0x82,_0x9b5d63:0xe5,_0x1bf072:0x97,_0x3385d1:0x4b,_0xcb7403:0xa8,_0x17549c:0x27,_0x3a0deb:0xa,_0x3493f5:0x35c,_0x5eb5cb:0x2db,_0x316b30:0x33e,_0x501702:0x1,_0x4f5777:0x121,_0x3c8ff2:0x3e,_0x420a82:0xa8,_0x34d6aa:0x3ea,_0x38f410:0x312,_0x2f3014:0x392,_0x4d96e0:0x33f},_0x5bc55b={_0x30bfa0:0xc1,_0xaf21c4:0x548,_0x48ec19:0x58},_0x15cdc6={_0x4b4f59:0x31,_0x334246:0x1c7};if(_0x45c81b[_0x36c432(-_0x31ca47._0x469cc9,-_0x31ca47._0x9b5d63,-0xa6,-_0x31ca47._0x1bf072)]!==_0x36c432(-0x109,-_0x31ca47._0x3385d1,-0x8e,-_0x31ca47._0xcb7403))return void 0x0;if(_0x45c81b[_0x36c432(-0x15,-_0x31ca47._0x17549c,-_0x31ca47._0x3a0deb,-0x42)]===void 0x0)return void 0x0;function _0x1aec32(_0xb4c2f3,_0x344fc3,_0x35fd84,_0x29fed0){return _0x129ebd(_0xb4c2f3-_0x15cdc6._0x4b4f59,_0x344fc3,_0x29fed0- -_0x15cdc6._0x334246,_0x29fed0-0xb2);}function _0x36c432(_0x25706c,_0x343aa8,_0x4692f6,_0x1fc1b0){return _0x129ebd(_0x25706c-_0x5bc55b._0x30bfa0,_0x25706c,_0x1fc1b0- -_0x5bc55b._0xaf21c4,_0x1fc1b0-_0x5bc55b._0x48ec19);}return{'type':_0x1aec32(0x324,_0x31ca47._0x3493f5,_0x31ca47._0x5eb5cb,_0x31ca47._0x316b30),'index':_0x45c81b[_0x36c432(-_0x31ca47._0x501702,0x12,-0x50,0x11)]??0x0,'messageId':_0x3f2ec8,'chunk':{'type':_0x36c432(-_0x31ca47._0x4f5777,-0x38,-_0x31ca47._0x3c8ff2,-_0x31ca47._0x420a82),'index':_0x45c81b[_0x1aec32(0x396,_0x31ca47._0x34d6aa,_0x31ca47._0x38f410,_0x31ca47._0x2f3014)]??0x0,'text':_0x45c81b[_0x1aec32(0x324,0x374,0x38d,_0x31ca47._0x4d96e0)]}};}function createToolUseChunkEvent(_0x4e3870,_0x52155b){const _0x1e72a2={_0x531d6a:0x117,_0x1bc362:0xe0,_0x4a1c5f:0x9e,_0x5dbc72:0xce,_0x227e93:0xc4,_0x72e1f9:0x8c,_0x1b52ad:0xeb,_0x2630df:0x45,_0x2e1751:0x6f,_0x370ee2:0xe,_0xcd03bd:0x12,_0x16fb93:0x7b,_0x2f417d:0x6d,_0x49f392:0xee,_0x5c25b3:0x80,_0x23bfd1:0x8f,_0x170c26:0xbe,_0x20b150:0xe4},_0x2b8ef4={_0x3b54b3:0x5c8,_0xd489ce:0x17c},_0x4cb9f5={_0xfdacac:0x11e,_0x33c9bf:0x328};if(_0x4e3870[_0x131579(-_0x1e72a2._0x531d6a,-_0x1e72a2._0x1bc362,-_0x1e72a2._0x4a1c5f,-_0x1e72a2._0x5dbc72)]!==_0x1058b3(-_0x1e72a2._0x227e93,-0x13e,-0x118,-_0x1e72a2._0x72e1f9))return void 0x0;function _0x1058b3(_0x1d5942,_0x54b5e3,_0x56a353,_0x3082de){return _0x25dd81(_0x1d5942-_0x4cb9f5._0xfdacac,_0x54b5e3-0x90,_0x1d5942- -_0x4cb9f5._0x33c9bf,_0x56a353);}function _0x131579(_0x1f69ae,_0x352707,_0x34b90a,_0x32d772){return _0x129ebd(_0x1f69ae-0x9a,_0x352707,_0x1f69ae- -_0x2b8ef4._0x3b54b3,_0x32d772-_0x2b8ef4._0xd489ce);}return{'type':'tool_use_chunk','index':_0x4e3870['index']??0x0,'messageId':_0x52155b,'chunk':{'type':_0x1058b3(-0xc4,-_0x1e72a2._0x1b52ad,-_0x1e72a2._0x2630df,-0x101),'id':_0x4e3870['id']??'','index':_0x4e3870[_0x131579(-_0x1e72a2._0x2e1751,-_0x1e72a2._0x370ee2,-0x81,-0x23)]??0x0,..._0x4e3870[_0x131579(-0x87,-_0x1e72a2._0xcd03bd,-_0x1e72a2._0x16fb93,-0xd4)]!==void 0x0?{'name':_0x4e3870[_0x1058b3(-_0x1e72a2._0x2f417d,-_0x1e72a2._0x49f392,-0x67,0x12)]}:{},..._0x4e3870[_0x131579(-_0x1e72a2._0x5c25b3,-_0x1e72a2._0x23bfd1,-_0x1e72a2._0x170c26,-0x19)]!==void 0x0?{'inputDelta':_0x4e3870[_0x1058b3(-0x66,-0x2e,-_0x1e72a2._0x20b150,-0xd4)]}:{}}};}function createReasoningChunkEvent(_0x36ca62,_0x555264){const _0x277a79={_0x5efa89:0x24e,_0x32362b:0x1dd,_0x41b0d2:0x198,_0x21ae1d:0x2d8,_0x571f54:0x290,_0xe75360:0x229,_0x455dfc:0x2a6,_0x2f8bee:0x257,_0x558732:0x167,_0x521cbf:0x19c,_0x946a15:0x160,_0x24933:0x1d9,_0x2132e0:0x17a,_0x4e87b3:0x158,_0x4661f7:0x19a,_0x2447e9:0x196,_0x4de456:0x1c4,_0xc7131e:0x244,_0x72ba5a:0x1d2,_0x50dcfc:0x15e,_0x530a95:0x173,_0x428fd2:0x1dc,_0x3603d9:0x1fb,_0xc67434:0x232,_0x3c1c9d:0x202,_0x26ce67:0x1f0,_0x17e036:0x116,_0x1f7b75:0x247,_0x5cf9cd:0x20d,_0x42c73e:0x265,_0x2b4be0:0x27d,_0x203ac1:0x217,_0x329221:0x248,_0x31a8f3:0x1c4},_0x3cf7af={_0x4b5a0d:0x32c,_0x2eb4b9:0x24},_0x5233d5={_0x15d588:0x17f,_0x12415b:0x7c,_0xb32ea0:0x43};function _0x4aa84f(_0x56f74e,_0x4dfada,_0x408c0,_0x377099){return _0x25dd81(_0x56f74e-_0x5233d5._0x15d588,_0x4dfada-_0x5233d5._0x12415b,_0x377099- -_0x5233d5._0xb32ea0,_0x56f74e);}function _0x5160c7(_0x187002,_0x2c809a,_0x2459ea,_0x27d222){return _0x129ebd(_0x187002-0x89,_0x2c809a,_0x187002- -_0x3cf7af._0x4b5a0d,_0x27d222-_0x3cf7af._0x2eb4b9);}switch(_0x36ca62['type']){case _0x4aa84f(0x221,0x28f,0x227,_0x277a79._0x5efa89):return{'type':_0x4aa84f(0x1c6,0x1e5,0x1b5,_0x277a79._0x32362b),'index':_0x36ca62[_0x4aa84f(0x257,0x2eb,0x2ed,0x290)],'messageId':_0x555264,'chunk':{'type':_0x5160c7(0x1eb,0x197,0x261,_0x277a79._0x41b0d2),'index':_0x36ca62[_0x4aa84f(_0x277a79._0x21ae1d,_0x277a79._0x571f54,_0x277a79._0xe75360,_0x277a79._0x571f54)]??0x0,'thinking':_0x36ca62[_0x5160c7(0x1f4,0x20f,0x198,0x18f)]??''},'text':_0x36ca62[_0x4aa84f(_0x277a79._0x455dfc,0x22f,0x261,_0x277a79._0x2f8bee)]??''};case _0x4aa84f(_0x277a79._0x558732,_0x277a79._0x521cbf,_0x277a79._0x946a15,_0x277a79._0x24933):return{'type':_0x5160c7(_0x277a79._0x2132e0,0x16c,_0x277a79._0x4e87b3,0x1c6),'index':_0x36ca62[_0x5160c7(0x216,_0x277a79._0x4661f7,0x261,_0x277a79._0x2447e9)],'messageId':_0x555264,'chunk':{'type':'openai_reasoning_delta','contentIndex':_0x36ca62['contentIndex']??0x0,'delta':_0x36ca62[_0x5160c7(_0x277a79._0x4de456,_0x277a79._0xc7131e,_0x277a79._0x72ba5a,0x163)]??'','itemId':_0x36ca62[_0x5160c7(0x1bb,_0x277a79._0x50dcfc,_0x277a79._0x530a95,0x177)]??'','outputIndex':_0x36ca62[_0x5160c7(0x204,_0x277a79._0x428fd2,_0x277a79._0x3603d9,0x223)]??0x0},'text':_0x36ca62[_0x5160c7(0x1c4,_0x277a79._0xc67434,_0x277a79._0x3c1c9d,0x195)]??''};case _0x4aa84f(0x229,0x249,_0x277a79._0x26ce67,0x211):return{'type':_0x5160c7(0x17a,0xf8,_0x277a79._0x17e036,0x1b2),'index':_0x36ca62[_0x5160c7(_0x277a79._0x1f7b75,0x265,_0x277a79._0x5cf9cd,_0x277a79._0x42c73e)],'messageId':_0x555264,'chunk':{'type':_0x4aa84f(_0x277a79._0x2b4be0,_0x277a79._0x203ac1,_0x277a79._0x329221,0x211),'delta':_0x36ca62[_0x4aa84f(0x245,0x27b,_0x277a79._0x31a8f3,0x227)]??'','itemId':_0x36ca62['itemId']??'','outputIndex':_0x36ca62['outputIndex']??0x0,'summaryIndex':_0x36ca62['summaryIndex']??0x0},'text':_0x36ca62['delta']??''};default:return void 0x0;}}function cloneToolResultChunkForPublication2(_0x395713){return structuredClone(_0x395713);}function cloneToolResultForPublication2(_0x155563){const _0xf44b27={_0x5e450f:0x4d6,_0x2d1d95:0x4b0},_0x10d7d4={_0x5518fa:0x15,_0x123bfe:0x16a},_0xce6c50=_0x155563['callId'],_0x483b22=_0x155563['toolName'],{chunks:_0x42bb37,..._0x331d0d}=_0x155563;function _0x1e3e3b(_0x202870,_0x5ccdc0,_0x5b25a2,_0x4276e5){return _0x129ebd(_0x202870-0x15c,_0x5ccdc0,_0x4276e5- -_0x10d7d4._0x5518fa,_0x4276e5-_0x10d7d4._0x123bfe);}return{...structuredClone(_0x331d0d),'callId':_0xce6c50,'toolName':_0x483b22,'chunks':_0x42bb37[_0x1e3e3b(_0xf44b27._0x5e450f,0x55f,_0xf44b27._0x2d1d95,0x52f)](cloneToolResultChunkForPublication2)};}function isAbortedToolResult(_0x3c5959){const _0x51dada={_0x20dc18:0x2a6,_0x457a04:0x218,_0x4b09af:0x2eb,_0x4fc70d:0x291,_0x3e0c7e:0x1f0,_0x5db561:0x1f4,_0x41da42:0x218,_0x24ae61:0x2ea,_0xf8db3b:0x27b,_0x4fd932:0x35f},_0x507c47={_0xcde01d:0x2},_0x5ef3ff={_0x29320e:0x19,_0x2a71ae:0x43,_0x33a27b:0x38b};function _0x433b18(_0x242e2b,_0x30cb49,_0x4cb358,_0x1926b8){return _0x25dd81(_0x242e2b-_0x5ef3ff._0x29320e,_0x30cb49-_0x5ef3ff._0x2a71ae,_0x30cb49- -_0x5ef3ff._0x33a27b,_0x242e2b);}function _0x8a8f57(_0x548150,_0x247c3e,_0x2872ee,_0x178611){return _0x25dd81(_0x548150-0x76,_0x247c3e-_0x507c47._0xcde01d,_0x178611-0x5,_0x247c3e);}return _0x3c5959[_0x8a8f57(_0x51dada._0x20dc18,_0x51dada._0x457a04,_0x51dada._0x4b09af,_0x51dada._0x4fc70d)]===_0x8a8f57(_0x51dada._0x3e0c7e,_0x51dada._0x5db561,0x23a,_0x51dada._0x41da42)&&_0x3c5959[_0x8a8f57(_0x51dada._0x24ae61,0x20c,0x2b9,_0x51dada._0xf8db3b)][_0x8a8f57(_0x51dada._0x4fd932,0x2de,0x2a1,0x2f1)]===!![];}async function executeModelRequest(_0x3f8b7a,_0x5e067c,_0x2f2601,_0x31b7e5,_0x4697f5,_0x2138ea){const _0x1c6323={_0x4a2aa6:0xa2,_0x3d5fab:0x1de,_0x4f6960:0x13f,_0x2c6b11:0x14c,_0x5234cd:0x4a,_0x30b382:0x84,_0x28601b:0x1,_0x302608:0x3f,_0x19c3e1:0x7a,_0xe8b243:0x1e5,_0x2e07a1:0x25e,_0x5d4370:0x1d0,_0xbd81d4:0x253,_0x1d3738:0x7f,_0x1dceba:0x3a,_0x15ecab:0xe,_0x570c11:0x5d,_0x1b5cd2:0x5b,_0x358a9c:0x93,_0x34f112:0x28,_0x33de3d:0x184,_0x14b154:0x205,_0x3504df:0x1b0,_0x29caaf:0x70,_0x3b5002:0x8e,_0x29d1e4:0x6f,_0xbfc730:0x4c,_0x1d7234:0x1,_0x556776:0x30,_0x4ac543:0xa0,_0x27f902:0x8d,_0x8e8adc:0x2c,_0x214e55:0xf,_0x2ddfa5:0x162,_0x40d52f:0x19a,_0x3bf35a:0x10e,_0x39db20:0x143,_0x40f02a:0x17f,_0x59a534:0x1e,_0x237adc:0x1cc,_0x501705:0x200,_0x704cbb:0x248,_0x4d9f82:0x1db,_0x49418f:0x16d,_0x56588e:0x238,_0xd948a9:0x21e,_0x360eaf:0x1fc,_0x37cb4f:0x18e,_0x23dd7b:0x180,_0x564e4e:0xbc,_0xf1ce9:0x112,_0x1bc637:0xe4,_0x15293d:0x6,_0x117f4d:0xa0,_0x1094bb:0x14f,_0x3d1cce:0x1f8,_0x5e92d0:0x149,_0x3b6725:0x1cc,_0x3f9c31:0x1a0,_0x30a2a1:0x234,_0x147901:0xd6,_0xe87fd6:0xde,_0x3b8a2e:0x89,_0x364aef:0x31,_0x521b64:0x5e,_0xf9cd48:0xa3,_0x1b97ce:0x169,_0x4b9d28:0x5b,_0x340035:0x9,_0x180107:0x1e7,_0x560b0b:0x1d5,_0x136236:0x19b,_0x6a7ad6:0x57,_0x235ca8:0x86,_0x2554e9:0x7f},_0x144050={_0x49fdfc:0x13b,_0x505f11:0x69c,_0x4a9092:0x19d};throwIfAborted(_0x5e067c[_0x225353(-0x5e,-0x83,-_0x1c6323._0x4a2aa6,-0x1)]);if(!_0x5e067c[_0x493d68(-_0x1c6323._0x3d5fab,-0x177,-_0x1c6323._0x4f6960,-_0x1c6323._0x2c6b11)]||!_0x2f2601[_0x225353(0x15,0x93,-_0x1c6323._0x5234cd,_0x1c6323._0x30b382)])return await _0x2f2601['complete'](_0x3f8b7a,{'signal':_0x5e067c[_0x225353(-0x5e,-_0x1c6323._0x28601b,-_0x1c6323._0x302608,-0xbf)]});let _0x596f80;function _0x493d68(_0x59d654,_0x410489,_0x2cb857,_0x138958){return _0x129ebd(_0x59d654-_0x144050._0x49fdfc,_0x138958,_0x410489- -_0x144050._0x505f11,_0x138958-_0x144050._0x4a9092);}for await(const _0x5ce508 of _0x2f2601['stream'](_0x3f8b7a,{'signal':_0x5e067c[_0x225353(-0x5e,-0xa2,-_0x1c6323._0x19c3e1,-0x2d)]})){throwIfAborted(_0x5e067c[_0x493d68(-_0x1c6323._0xe8b243,-0x1f0,-0x1e2,-_0x1c6323._0x2e07a1)]);if(_0x5ce508[_0x493d68(-_0x1c6323._0x5d4370,-0x1eb,-_0x1c6323._0xbd81d4,-0x211)]===_0x225353(0x48,0xc1,0xb2,_0x1c6323._0x1d3738)){_0x2138ea[_0x225353(-_0x1c6323._0x1dceba,-0x9c,_0x1c6323._0x15ecab,-_0x1c6323._0x570c11)][_0x225353(-_0x1c6323._0x1b5cd2,-_0x1c6323._0x358a9c,-_0x1c6323._0x34f112,-0xc4)]!==void 0x0&&_0x2138ea[_0x493d68(-_0x1c6323._0x33de3d,-0x1cc,-_0x1c6323._0x14b154,-_0x1c6323._0x3504df)][_0x225353(_0x1c6323._0x29caaf,_0x1c6323._0x3b5002,_0x1c6323._0x29d1e4,_0x1c6323._0xbfc730)]===void 0x0&&(_0x2138ea['meta'][_0x225353(0x70,_0x1c6323._0x1d7234,0x72,0xcc)]=Date[_0x225353(0x80,_0x1c6323._0x556776,_0x1c6323._0x4ac543,0x102)]());_0x596f80=_0x5ce508[_0x225353(_0x1c6323._0x27f902,_0x1c6323._0x8e8adc,0x11,_0x1c6323._0x214e55)];continue;}if(_0x5ce508['type']===_0x493d68(-_0x1c6323._0x2ddfa5,-_0x1c6323._0x4f6960,-0x185,-0xca)){await emitEvent2(_0x31b7e5['onEvent'],{'type':_0x493d68(-_0x1c6323._0x40d52f,-_0x1c6323._0x4f6960,-_0x1c6323._0x3bf35a,-0x16d),'assistantMessageId':_0x2138ea[_0x493d68(-_0x1c6323._0x39db20,-_0x1c6323._0x40f02a,-0x12f,-0x1f6)],'reasoningMessageId':_0x2138ea[_0x225353(-0x3c,0x41,_0x1c6323._0x59a534,0x15)]},_0x4697f5),delete _0x2138ea[_0x493d68(-0x1ca,-_0x1c6323._0x237adc,-0x24f,-0x1da)][_0x493d68(-0x216,-0x1ed,-0x19a,-0x21e)],delete _0x2138ea['meta']['reasoningCompletedAt'];continue;}if(_0x5ce508[_0x493d68(-_0x1c6323._0x501705,-0x1eb,-0x170,-_0x1c6323._0x704cbb)]==='provider_retry'){await emitEvent2(_0x31b7e5['onEvent'],{..._0x5ce508,'assistantMessageId':_0x2138ea['assistantMessageId']},_0x4697f5);continue;}const _0x499d4f=createReasoningChunkEvent(_0x5ce508,_0x2138ea[_0x493d68(-_0x1c6323._0x3d5fab,-0x1ce,-0x1b1,-0x227)]);if(_0x499d4f&&_0x499d4f[_0x493d68(-_0x1c6323._0x4d9f82,-0x1eb,-_0x1c6323._0x49418f,-0x221)]===_0x493d68(-_0x1c6323._0x56588e,-0x1f6,-0x224,-_0x1c6323._0xd948a9)&&_0x499d4f[_0x493d68(-_0x1c6323._0x49418f,-0x196,-_0x1c6323._0x360eaf,-0x161)]['length']>0x0){_0x2138ea[_0x493d68(-_0x1c6323._0x37cb4f,-0x1cc,-0x16e,-0x198)][_0x225353(-0x5b,-0x7b,0x19,-0x38)]===void 0x0&&(_0x2138ea[_0x493d68(-_0x1c6323._0x23dd7b,-_0x1c6323._0x237adc,-0x189,-0x22e)]['reasoningStartedAt']=Date[_0x493d68(-_0x1c6323._0x564e4e,-_0x1c6323._0xf1ce9,-0x98,-_0x1c6323._0x1bc637)]());await emitEvent2(_0x31b7e5[_0x225353(-0x43,-_0x1c6323._0x15293d,-_0x1c6323._0x117f4d,-0x56)],_0x499d4f,_0x4697f5);continue;}const _0x290045=createAssistantChunkEvent(_0x5ce508,_0x2138ea[_0x493d68(-_0x1c6323._0x1094bb,-0x17f,-_0x1c6323._0x3d1cce,-0x162)]);if(_0x290045){_0x2138ea[_0x493d68(-0x1d4,-_0x1c6323._0x237adc,-0x15d,-_0x1c6323._0x5e92d0)][_0x493d68(-0x1a6,-0x1ed,-0x206,-0x258)]!==void 0x0&&_0x2138ea[_0x493d68(-0x18b,-_0x1c6323._0x3b6725,-_0x1c6323._0x3f9c31,-_0x1c6323._0x30a2a1)][_0x225353(0x70,_0x1c6323._0x147901,_0x1c6323._0xe87fd6,_0x1c6323._0x3b8a2e)]===void 0x0&&(_0x2138ea[_0x225353(-0x3a,_0x1c6323._0x364aef,-_0x1c6323._0x521b64,-_0x1c6323._0xf9cd48)][_0x493d68(-0x15d,-0x122,-_0x1c6323._0x1b97ce,-0x185)]=Date[_0x225353(0x80,0x9e,0x22,_0x1c6323._0x4b9d28)]());await emitEvent2(_0x31b7e5[_0x225353(-0x43,-0xa,-0x89,-_0x1c6323._0x340035)],_0x290045,_0x4697f5);continue;}const _0x3ec638=createToolUseChunkEvent(_0x5ce508,_0x2138ea['assistantMessageId']);_0x3ec638&&await emitEvent2(_0x31b7e5[_0x493d68(-_0x1c6323._0x180107,-_0x1c6323._0x560b0b,-0x1ea,-_0x1c6323._0x136236)],_0x3ec638,_0x4697f5);}if(!_0x596f80)throw new Error(_0x225353(-_0x1c6323._0x6a7ad6,0x20,-_0x1c6323._0x235ca8,-_0x1c6323._0x2554e9));function _0x225353(_0x40f740,_0x10cc80,_0x190760,_0x96330a){return _0x129ebd(_0x40f740-0x130,_0x96330a,_0x40f740- -0x50a,_0x96330a-0x40);}return _0x596f80;}function makeTurnGuards(_0x5a1e8b,_0x534698,_0x288040,_0x2981f7,_0x5bbedd){return{async 'stage'(_0x1823fa,_0x565082){return throwIfAborted(_0x5a1e8b),await runStage(_0x534698,_0x1823fa,_0x565082,_0x2981f7);},async 'emit'(_0x5a738c){throwIfAborted(_0x5a1e8b),await emitEvent2(_0x288040,_0x5a738c,_0x5bbedd);},async 'stageUnchecked'(_0x4641bb,_0x32469e){return await runStage(_0x534698,_0x4641bb,_0x32469e,_0x2981f7);},async 'emitUnchecked'(_0xe6296f){await emitEvent2(_0x288040,_0xe6296f,_0x5bbedd);}};}async function runTurn(_0x18776e,_0x24936f){const _0x5b1f0d={_0x241ea5:0x17,_0x55d307:0x97,_0x579ee4:0x27a,_0x221fab:0x29e,_0x308a37:0x26d,_0x362d74:0x89,_0x17ca12:0xe1,_0x2945c0:0xe3,_0x487571:0xe4,_0xd1724e:0x1f5,_0x116854:0x23d,_0x16902b:0x21f,_0x39c48d:0x202,_0x1ad482:0x277,_0x50b06e:0x18e,_0x3c5307:0xa8,_0x534f06:0xb0,_0x22790c:0xc7,_0x334f1a:0xf7,_0x2241df:0x137,_0x2589f5:0x131,_0x41bc9d:0x146,_0x4dc458:0x170,_0x276c31:0x145,_0x277081:0xd6,_0x380a7a:0x27,_0x40b4ab:0x32,_0x3199cb:0x102,_0x3dab80:0x3d,_0x113562:0xd5,_0x1febe9:0x196,_0x3f75ad:0xe1,_0x1f432f:0xb7,_0x194358:0x142,_0x13f573:0x1b3,_0x304c1a:0x176,_0x55da27:0x71,_0x3758db:0xcb,_0x16a10c:0x71,_0x549d8d:0xc1,_0x1a6cac:0x37,_0x9d39db:0x20,_0x42ec84:0xa7,_0x5d3c5c:0x10e,_0x139f67:0x25a,_0x42874f:0x9d,_0x2c1dd7:0x67,_0x26e600:0xd1,_0x323630:0x169,_0x18bf21:0x13f,_0x3a0a07:0x194,_0x5a65f5:0x9e,_0x276b8a:0xb7,_0x26c46b:0x125,_0x50de43:0x16c,_0x40c3e3:0x220,_0x5051ae:0x9f,_0x4c5c70:0x98,_0x4823ec:0x17e,_0x43601e:0x1ed,_0x3bba14:0x1e5,_0xeb91a0:0x1e0,_0x51dd92:0x217,_0x2f7967:0x181,_0x2fd0c0:0xa8,_0x4c9b01:0x124,_0x4a72a6:0xb3,_0x2a50ab:0xaf,_0x447147:0xe8,_0x4e8f67:0xbe,_0x408563:0xb6,_0x5d2459:0xea,_0x2ede9c:0x86,_0x268f5f:0x23b,_0x32e324:0x19c,_0x5c3565:0x1a9,_0x18ec44:0x15d,_0x12f281:0xc9,_0x28f781:0xab,_0x4df3dc:0xfd,_0x13f56f:0x135,_0x35ac82:0xdc,_0x5162a4:0x107,_0x3b82ce:0x104,_0x4e953a:0x17c,_0x243e31:0x111,_0x15ff1d:0x119,_0xc95334:0x172,_0x35da19:0xa3,_0x19214b:0x174,_0xd94544:0x109,_0x77ad8c:0x1e4,_0x232e30:0x174,_0x1bea2a:0x185,_0xb05315:0x1f3,_0x3bf44d:0x1da,_0x9aa176:0x7a,_0x93e3a6:0x6d,_0x5c5829:0xa,_0x256530:0x108,_0x96c0a2:0xd9,_0x512698:0xd2,_0x16bfeb:0x222,_0x3e627e:0x21e,_0x29afa6:0xe1,_0x33341a:0x105,_0x1fb68e:0x1b6,_0x4a77e6:0x24d,_0x1c52cf:0x58,_0x2db1eb:0x193,_0x2ecba0:0x1b8,_0x2d2b3f:0x1fb,_0x5a6ec8:0xae,_0x137a9a:0xe2,_0x41e647:0x15,_0x1d0ebc:0x187,_0x3b3720:0xea,_0x3c9417:0xe9,_0xdd8cb3:0x114,_0x304042:0xd1,_0x36747c:0x100,_0x1e676d:0x145,_0x1d5129:0xe7,_0x1bbd71:0x223,_0x2303a6:0x1e9,_0x3d5380:0x1dd,_0xe302a1:0x271,_0x3637bf:0x1c9,_0xbd2aaf:0x25f},_0x45e764={_0x5d3f16:0x275,_0x574716:0x20f,_0x3ff6b7:0x1be,_0x3a97bd:0x1ce,_0xefb308:0x237,_0x53100a:0x2f0,_0x194648:0x2bd,_0x52418d:0x268,_0x39da9d:0x28d},_0x4c135a={_0x8c3cb:0x8c,_0x43851f:0x14d},_0x5c3b65={_0x26f530:0x11e,_0x5d5235:0x136,_0x12fbce:0x108,_0x263f90:0xd3},_0x14095f={_0x38b017:0x1b1},_0x50e1f8={_0x494cfd:0x1c5,_0x5142bf:0x233,_0xfb058e:0x2b1,_0x39e738:0x24b,_0x321cd1:0x28f},_0x2aacef={_0x3e0e6c:0x18d},_0xdc4c1c={_0x93df66:0x179,_0x405815:0x45a},_0x1cd0cb=_0x24936f[_0x142051(0x5b,0x4c,0xad,0x1d)],_0x5982b0=_0x18776e['signal']??new AbortController()['signal'],_0x1e2fde=normalizeExecutionScope(_0x24936f[_0x142051(0x89,_0x5b1f0d._0x241ea5,_0x5b1f0d._0x55d307,0x4f)]);function _0x142051(_0x3f6aed,_0x4926bf,_0x5f7f4d,_0x1b7c9b){return _0x129ebd(_0x3f6aed-_0xdc4c1c._0x93df66,_0x1b7c9b,_0x3f6aed- -_0xdc4c1c._0x405815,_0x1b7c9b-0x14);}const _0x1d4c19={'sessionId':_0x18776e['sessionId'],'turnId':_0x18776e[_0x285283(0x220,_0x5b1f0d._0x579ee4,_0x5b1f0d._0x221fab,_0x5b1f0d._0x308a37)],'system':normalizeSystem(_0x18776e[_0x142051(0x5e,_0x5b1f0d._0x362d74,0x4a,0x57)]),'messages':(_0x18776e[_0x142051(_0x5b1f0d._0x17ca12,_0x5b1f0d._0x2945c0,0xa1,_0x5b1f0d._0x487571)]??[])[_0x285283(_0x5b1f0d._0xd1724e,_0x5b1f0d._0x116854,0x24b,_0x5b1f0d._0x16902b)](normalizeMessage),'lastResponse':void 0x0,'toolResults':[],'finalMessage':void 0x0,'sessionDir':typeof _0x24936f[_0x285283(_0x5b1f0d._0x39c48d,_0x5b1f0d._0x1ad482,0x274,_0x5b1f0d._0x50b06e)]===_0x142051(0xf0,_0x5b1f0d._0x3c5307,0x10a,_0x5b1f0d._0x534f06)?_0x24936f[_0x142051(0xf7,0x115,0xa7,_0x5b1f0d._0x22790c)]():_0x24936f[_0x142051(_0x5b1f0d._0x334f1a,_0x5b1f0d._0x2241df,0x98,_0x5b1f0d._0x2589f5)]};function _0x285283(_0x46ed7a,_0x3007e0,_0x206b1e,_0x19e2b0){return _0x129ebd(_0x46ed7a-0x1e8,_0x19e2b0,_0x46ed7a- -0x34f,_0x19e2b0-_0x2aacef._0x3e0e6c);}const _0x267c2a=makeExtensionContext(_0x1d4c19,_0x1e2fde),_0x3ca280={'sessionId':_0x1d4c19[_0x285283(_0x5b1f0d._0x41bc9d,_0x5b1f0d._0x4dc458,0x13b,0xef)],'turnId':_0x1d4c19[_0x142051(0x115,_0x5b1f0d._0x276c31,0x141,_0x5b1f0d._0x277081)],'state':_0x1d4c19,'executionScope':_0x1e2fde,'signal':_0x5982b0,..._0x24936f[_0x142051(0x9f,_0x5b1f0d._0x380a7a,0x33,0xb6)]?{'askUser':_0x24936f[_0x142051(0x9f,_0x5b1f0d._0x40b4ab,_0x5b1f0d._0x3199cb,_0x5b1f0d._0x3dab80)]}:{},..._0x24936f[_0x142051(0x10c,0x18f,0xf7,0x8c)]?{'setTopic':_0x24936f['setTopic']}:{}},{stage:_0x1787fb,emit:_0x1d7476,stageUnchecked:_0x4368a8,emitUnchecked:_0x1b2b95}=makeTurnGuards(_0x5982b0,_0x24936f[_0x142051(0x129,_0x5b1f0d._0x113562,_0x5b1f0d._0x1febe9,0x12d)],_0x24936f['onEvent'],_0x267c2a,_0x3ca280),_0x3c2bf8=async(_0x5430b7,_0x4f788e)=>{const _0xc761f5={_0x3223ad:0xa0,_0x287a38:0x50};function _0x5d1c1d(_0x456d79,_0x1b81bd,_0x5e0eb9,_0x4f0d8c){return _0x285283(_0x5e0eb9- -0x396,_0x1b81bd-_0xc761f5._0x3223ad,_0x5e0eb9-_0xc761f5._0x287a38,_0x456d79);}const _0x524023=_0x4f788e?{..._0x267c2a,'turnMeta':_0x4f788e}:_0x267c2a;function _0x491c64(_0x54049e,_0x581a1c,_0xd3631a,_0x39292f){return _0x142051(_0x39292f-0x2f7,_0x581a1c-0x141,_0xd3631a-0x3b,_0xd3631a);}await _0x24936f[_0x5d1c1d(-0x1de,-0x14c,-0x162,-0x1ae)][_0x5d1c1d(-_0x50e1f8._0x494cfd,-0x1e1,-_0x50e1f8._0x5142bf,-0x2b4)](_0x5d1c1d(-0x1ef,-_0x50e1f8._0xfb058e,-_0x50e1f8._0x39e738,-_0x50e1f8._0x321cd1),structuredClone(_0x5430b7),_0x524023);},_0x5f2455=_0x3cff7a=>{function _0x315bcc(_0x4530d8,_0x305a9d,_0x407c0e,_0x23f73d){return _0x285283(_0x407c0e-0x36e,_0x305a9d-0x1ee,_0x407c0e-0x104,_0x23f73d);}function _0x3d6aaf(_0x183c22,_0x5ef60c,_0x433b92,_0x4c5ad0){return _0x285283(_0x433b92- -0xff,_0x5ef60c-0x1,_0x433b92-_0x14095f._0x38b017,_0x4c5ad0);}if(_0x3cff7a?.['origin']===_0x3d6aaf(_0x5c3b65._0x26f530,0xcc,_0x5c3b65._0x5d5235,_0x5c3b65._0x12fbce))return{'submissionOrigin':_0x3d6aaf(0xd2,_0x5c3b65._0x263f90,_0x5c3b65._0x5d5235,0x185)};if(_0x3cff7a?.['origin']===_0x3d6aaf(0x121,0x13e,0xd0,0xa6))return{'submissionOrigin':'agent','senderAgentId':_0x3cff7a['senderAgentId']};return void 0x0;},_0x67837f=_0x3a3a74=>_0x3a3a74?.[_0x142051(0x106,0x9a,0xe4,0xbf)]===_0x142051(0xc4,0xa6,0x97,0x48)?{'senderAgentId':_0x3a3a74['senderAgentId']}:void 0x0,_0x2bbcd3=_0x413a22=>typeof _0x413a22==='object'&&_0x413a22!==null&&_0x285283(0x1f7,0x1f1,0x19e,0x25c)in _0x413a22&&_0x142051(0x71,0xb4,0x9,0x57)in _0x413a22,_0xa7d7c3=async _0x3b9d0c=>{const _0x824622={_0x220b1f:0x1a};function _0x58a14f(_0x5b8074,_0x4eced6,_0x4f71d8,_0x19bf9f){return _0x285283(_0x4f71d8-_0x4c135a._0x8c3cb,_0x4eced6-_0x4c135a._0x43851f,_0x4f71d8-0x1c3,_0x4eced6);}if(!_0x18776e['drainSteering'])return 0x0;const _0x5bd819=await _0x18776e['drainSteering']();throwIfAborted(_0x5982b0);if(_0x5bd819[_0x2dc1d2(-0x20f,-0x2b0,-0x1fc,-0x22e)]===0x0)return 0x0;await _0x3b9d0c?.();for(const _0xe5dbcc of _0x5bd819){const _0x10f08e=_0x2bbcd3(_0xe5dbcc)?_0xe5dbcc[_0x58a14f(0x23b,_0x45e764._0x5d3f16,0x283,_0x45e764._0x574716)]:_0xe5dbcc,_0x2e28bd=_0x2bbcd3(_0xe5dbcc)?_0xe5dbcc[_0x2dc1d2(-0x294,-_0x45e764._0x3ff6b7,-_0x45e764._0x3a97bd,-_0x45e764._0xefb308)]:void 0x0,_0x5471b7=await _0x1787fb(_0x58a14f(0x2c5,_0x45e764._0x53100a,_0x45e764._0x194648,_0x45e764._0x52418d),normalizeMessage(_0x10f08e));throwIfAborted(_0x5982b0),_0x1d4c19['messages']['push'](_0x5471b7),await _0x3c2bf8(_0x5471b7,_0x5f2455(_0x2e28bd)),await _0x1d7476({'type':'user_message','message':_0x5471b7,..._0x67837f(_0x2e28bd)});}function _0x2dc1d2(_0x49ef10,_0x35c198,_0x330d81,_0x24ec95){return _0x142051(_0x24ec95- -0x2a8,_0x35c198-_0x824622._0x220b1f,_0x330d81-0x16,_0x49ef10);}return _0x5bd819[_0x58a14f(_0x45e764._0x39da9d,0x1cf,0x211,0x274)];};let _0x409b72=0x0;try{const _0x4e5d63=await _0x1787fb('onUserMessage',normalizeMessage(_0x18776e['message']));_0x1d4c19[_0x142051(_0x5b1f0d._0x3f75ad,0x10b,_0x5b1f0d._0x1f432f,_0x5b1f0d._0x194358)][_0x285283(0x1a3,_0x5b1f0d._0x13f573,_0x5b1f0d._0x304c1a,0x130)](_0x4e5d63),await _0x3c2bf8(_0x4e5d63,_0x5f2455(_0x18776e[_0x142051(_0x5b1f0d._0x55da27,0x63,0xc,_0x5b1f0d._0x3758db)])),await _0x1d7476({'type':'user_message','message':_0x4e5d63,..._0x67837f(_0x18776e[_0x142051(_0x5b1f0d._0x16a10c,_0x5b1f0d._0x549d8d,_0x5b1f0d._0x1a6cac,_0x5b1f0d._0x9d39db)])});while(!![]){throwIfAborted(_0x5982b0),_0x409b72+=0x1;const _0x1facbc=createAssistantMessageId(_0x1d4c19['turnId'],_0x409b72),_0xd6854c=createReasoningMessageId(_0x1facbc),_0x4294a6={'model':_0x1cd0cb['model'],'modelIdentity':_0x1cd0cb[_0x142051(_0x5b1f0d._0x42ec84,_0x5b1f0d._0x5d3c5c,0x11c,0x6c)],..._0x1cd0cb[_0x142051(0x134,_0x5b1f0d._0x3199cb,0x175,0xcf)]?{'provider':_0x1cd0cb[_0x285283(0x23f,0x21e,_0x5b1f0d._0x139f67,0x1fa)]}:{}};let _0x368c77={'model':_0x1cd0cb[_0x142051(_0x5b1f0d._0x42874f,_0x5b1f0d._0x2c1dd7,_0x5b1f0d._0x26e600,0x91)],..._0x1cd0cb['maxTokens']!==void 0x0?{'maxTokens':_0x1cd0cb['maxTokens']}:{},'system':structuredClone(_0x1d4c19[_0x285283(_0x5b1f0d._0x323630,0x1ca,0x17f,_0x5b1f0d._0x18bf21)]),'messages':structuredClone(_0x1d4c19[_0x142051(_0x5b1f0d._0x3f75ad,0xe3,0xb7,0xf1)]),'tools':_0x24936f[_0x285283(0x1f1,0x22a,0x21e,_0x5b1f0d._0x3a0a07)][_0x142051(_0x5b1f0d._0x5a65f5,0xea,0xd8,_0x5b1f0d._0x276b8a)](),'metadata':{'sessionId':_0x1d4c19[_0x285283(_0x5b1f0d._0x41bc9d,0x14a,_0x5b1f0d._0x26c46b,_0x5b1f0d._0x50de43)],'turnId':_0x1d4c19[_0x285283(_0x5b1f0d._0x40c3e3,0x27d,0x1ac,_0x5b1f0d._0x39c48d)],'modelIdentity':_0x1cd0cb[_0x142051(_0x5b1f0d._0x42ec84,0x25,_0x5b1f0d._0x5051ae,_0x5b1f0d._0x4c5c70)],..._0x1cd0cb['pricingProviderId']!==void 0x0?{'pricingProviderId':_0x1cd0cb['pricingProviderId']}:{}},..._0x24936f[_0x285283(_0x5b1f0d._0x4823ec,0x1e9,_0x5b1f0d._0x43601e,0x1ae)]?{'outputFormat':_0x24936f[_0x285283(_0x5b1f0d._0x4823ec,_0x5b1f0d._0x3bba14,0x179,0x10c)]}:{}};_0x368c77=await _0x1787fb(_0x285283(0x21e,0x288,0x247,_0x5b1f0d._0xeb91a0),_0x368c77);{const {pricingProviderId:_0x40cb11,..._0x14c561}=_0x368c77[_0x285283(0x1ac,_0x5b1f0d._0x51dd92,0x1df,0x1f4)];_0x368c77={..._0x368c77,'metadata':{..._0x14c561,..._0x1cd0cb[_0x285283(0x1b3,0x1ff,_0x5b1f0d._0x2f7967,0x1b7)]!==void 0x0?{'pricingProviderId':_0x1cd0cb[_0x142051(_0x5b1f0d._0x2fd0c0,_0x5b1f0d._0x4c9b01,_0x5b1f0d._0x4a72a6,0x111)]}:{}}};}await _0x1d7476({'type':'model_request','request':_0x368c77});const _0x3e5826=Date[_0x142051(0x130,_0x5b1f0d._0x2a50ab,_0x5b1f0d._0x447147,_0x5b1f0d._0x4e8f67)]();_0x4294a6[_0x142051(_0x5b1f0d._0x408563,_0x5b1f0d._0x5d2459,0x50,_0x5b1f0d._0x2ede9c)]=_0x3e5826;let _0x12a969=await executeModelRequest(_0x368c77,_0x18776e,_0x1cd0cb,_0x24936f,_0x3ca280,{'assistantMessageId':_0x1facbc,'reasoningMessageId':_0xd6854c,'meta':_0x4294a6});const _0x2339c0=Date[_0x285283(_0x5b1f0d._0x268f5f,0x2bd,0x28f,0x2b3)]();_0x4294a6['turnCompletedAt']=_0x2339c0,_0x12a969=await _0x1787fb(_0x285283(_0x5b1f0d._0x32e324,_0x5b1f0d._0x5c3565,_0x5b1f0d._0x18ec44,0x15a),_0x12a969);_0x12a969[_0x142051(_0x5b1f0d._0x12f281,_0x5b1f0d._0x4e8f67,0xad,0x67)]&&(_0x12a969={..._0x12a969,'providerState':{..._0x12a969['providerState'],'originModelIdentity':_0x1cd0cb['modelIdentity']}});_0x12a969=withEstimatedModelCost(_0x368c77,_0x12a969);const _0x5f40a=Math[_0x142051(0xa4,0xdf,0xa6,_0x5b1f0d._0x28f781)](0x0,_0x2339c0-_0x3e5826),_0x4a0bee={'version':0x1,'usage':structuredClone(_0x12a969[_0x142051(_0x5b1f0d._0x4df3dc,_0x5b1f0d._0x13f56f,_0x5b1f0d._0x35ac82,0x140)]),'modelTimeMs':_0x5f40a},_0xce8c26=_0x4d91f4=>({..._0x4294a6,'metrics':{..._0x4a0bee,'usage':structuredClone(_0x4a0bee[_0x285283(0x208,0x1b8,0x209,0x1ae)]),'completesRequest':_0x4d91f4}});await _0x1d7476({'type':'model_response','response':_0x12a969,'modelTimeMs':_0x5f40a}),_0x1d4c19['lastResponse']=_0x12a969;let _0x3276fb=await _0x1787fb(_0x142051(0xc1,_0x5b1f0d._0x5162a4,0x9c,_0x5b1f0d._0x3b82ce),withMessageId(responseToAssistantMessage(_0x12a969),_0x1facbc));_0x3276fb=withMessageId(_0x3276fb,_0x1facbc);const _0x56ef0e=getToolUseBlocks(_0x3276fb),_0x55500e=await Promise[_0x285283(0x187,0x12e,_0x5b1f0d._0x4e953a,0x13c)](_0x56ef0e[_0x142051(0xea,0xa8,0xf6,0xf6)](_0x342b07=>_0x1787fb(_0x142051(0x51,0x70,-0x1,0x9),_0x342b07)));_0x55500e['length']>0x0&&(_0x3276fb=replaceToolUseBlocks(_0x3276fb,_0x55500e));const _0x3273d4=withMessageId(_0x3276fb,_0x1facbc);_0x3276fb=_0x3273d4;const _0x1274f5=createReasoningMessage(_0x3276fb),_0x346543=createAssistantTextMessage(_0x3276fb),_0x250768=createToolUseMessage(_0x3276fb);_0x1274f5&&await _0x1d7476({'type':_0x142051(_0x5b1f0d._0x243e31,_0x5b1f0d._0x15ff1d,_0x5b1f0d._0xc95334,_0x5b1f0d._0x35da19),'message':withMessageId(_0x1274f5,_0xd6854c)});_0x346543&&await _0x1d7476({'type':'assistant_message','message':withMessageId(_0x346543,_0x1facbc)});_0x250768&&await _0x1d7476({'type':_0x285283(_0x5b1f0d._0x19214b,_0x5b1f0d._0xd94544,0x176,0x181),'message':withMessageId(_0x250768,_0x1facbc)});_0x1d4c19[_0x285283(0x1ec,0x22d,_0x5b1f0d._0x77ad8c,_0x5b1f0d._0x232e30)]['push'](_0x3273d4);_0x55500e[_0x285283(_0x5b1f0d._0x1bea2a,0x1e5,_0x5b1f0d._0xb05315,_0x5b1f0d._0x3bf44d)]>0x0&&await _0x3c2bf8(_0x3273d4,_0xce8c26(![]));for(const _0x29ca49 of _0x55500e){await _0x1d7476({'type':_0x142051(0x12b,0x15a,0x18d,0x18e),'toolCall':structuredClone(_0x29ca49)});}if(_0x55500e[_0x142051(_0x5b1f0d._0x9aa176,_0x5b1f0d._0x93e3a6,_0x5b1f0d._0x5c5829,0xb0)]===0x0){const _0x11e2e2=await _0xa7d7c3(async()=>{await _0x3c2bf8(_0x3273d4,_0xce8c26(![]));});if(_0x11e2e2>0x0)continue;const _0x36263e=await _0x1787fb(_0x285283(0x14e,_0x5b1f0d._0x256530,_0x5b1f0d._0x96c0a2,_0x5b1f0d._0x512698),_0x3276fb),_0x3a2bc4=withMessageId(_0x36263e,_0x1facbc);return _0x1d4c19[_0x285283(_0x5b1f0d._0x16bfeb,0x290,0x246,_0x5b1f0d._0x3e627e)]=_0x3a2bc4,_0x1d4c19[_0x142051(_0x5b1f0d._0x29afa6,0x7d,_0x5b1f0d._0x33341a,_0x5b1f0d._0x16a10c)][_0x1d4c19[_0x285283(0x1ec,0x1f5,0x214,_0x5b1f0d._0x1fb68e)]['length']-0x1]=_0x3a2bc4,await _0x3c2bf8(_0x3a2bc4,_0xce8c26(!![])),await _0x1b2b95({'type':_0x285283(0x23c,_0x5b1f0d._0x4a77e6,0x247,0x233),'message':_0x3a2bc4}),throwIfAborted(_0x5982b0),await _0x24936f['registry'][_0x142051(_0x5b1f0d._0x1c52cf,0x8b,0x6,-0x11)](_0x285283(_0x5b1f0d._0x2db1eb,_0x5b1f0d._0x2ecba0,0x12d,0x186),_0x1d4c19,_0x267c2a),await _0x1d7476({'type':_0x142051(0xa9,0x67,_0x5b1f0d._0x2a50ab,0x110),'state':_0x1d4c19}),{'status':'completed','finalMessage':_0x3a2bc4,'state':_0x1d4c19};}let _0x35b532=await _0x24936f[_0x285283(0x1f1,0x224,_0x5b1f0d._0x2d2b3f,0x16e)][_0x142051(0x86,0x89,_0x5b1f0d._0x5a6ec8,0xd3)](_0x55500e,_0x3ca280);const _0x31137e=_0x35b532[_0x142051(0x68,_0x5b1f0d._0x137a9a,_0x5b1f0d._0x41e647,0x8d)](isAbortedToolResult),_0xec299=_0x31137e?_0x4368a8:_0x1787fb,_0x5d8980=_0x31137e?_0x1b2b95:_0x1d7476;_0x35b532=await Promise[_0x285283(_0x5b1f0d._0x1d0ebc,_0x5b1f0d._0x194358,0x19d,0x157)](_0x35b532[_0x142051(_0x5b1f0d._0x3b3720,0xc5,_0x5b1f0d._0x3c9417,0xae)](_0x4907b=>_0xec299(_0x285283(0x1bf,0x1ec,0x1af,0x23a),_0x4907b))),_0x1d4c19[_0x142051(0xcf,_0x5b1f0d._0xdd8cb3,0xf8,_0x5b1f0d._0x304042)]['push'](..._0x35b532);for(const _0x5c71c3 of _0x35b532){await _0x5d8980({'type':'tool_result','result':cloneToolResultForPublication2(_0x5c71c3)});}const _0x2bf6bb=await _0xec299(_0x142051(0x136,0x139,0x177,_0x5b1f0d._0x36747c),createToolResultUserMessage(_0x35b532));await _0x5d8980({'type':_0x285283(0x161,0x131,0x1a3,_0x5b1f0d._0x1e676d),'message':_0x2bf6bb}),_0x1d4c19['messages'][_0x142051(0x98,0x8b,0xb2,_0x5b1f0d._0x1d5129)](_0x2bf6bb),await _0x3c2bf8(_0x2bf6bb);if(_0x31137e)return{'status':_0x285283(0x223,0x25f,0x1b7,0x258),'state':_0x1d4c19};await _0xa7d7c3();}}catch(_0x129f31){if(!_0x5982b0[_0x285283(_0x5b1f0d._0x1bbd71,0x22d,_0x5b1f0d._0x2303a6,_0x5b1f0d._0x3d5380)])throw new TurnFailedError(_0x129f31,_0x1d4c19);return{'status':_0x285283(0x223,_0x5b1f0d._0xe302a1,_0x5b1f0d._0x3637bf,_0x5b1f0d._0xbd2aaf),'state':_0x1d4c19};}}function createSessionId(){const _0x4df53b={_0xc4cf87:0x180,_0x4744e3:0x175,_0x585f1b:0xd4,_0x119620:0xe2,_0x2f293b:0x103,_0xebc8ef:0x137};function _0x1da7a3(_0x113484,_0x42d056,_0x212c62,_0x481cdf){return _0x25dd81(_0x113484-0xff,_0x42d056-0xe4,_0x42d056- -0x219,_0x113484);}function _0x3c73fb(_0x27a6a7,_0x2ffbc3,_0x4c8bc2,_0x3f34d9){return _0x25dd81(_0x27a6a7-0x86,_0x2ffbc3-0x37,_0x2ffbc3- -0x18f,_0x4c8bc2);}return _0x3c73fb(0x190,_0x4df53b._0xc4cf87,0x200,0x109)+Date[_0x3c73fb(0xf7,_0x4df53b._0x4744e3,0x1d8,0x178)]()+'-'+Math[_0x1da7a3(0x7e,0xbc,0x11d,_0x4df53b._0x585f1b)]()[_0x1da7a3(0xf0,_0x4df53b._0x119620,_0x4df53b._0x2f293b,_0x4df53b._0xebc8ef)](0x10)['slice'](0x2,0xa);}function createTurnId(_0x4d7667){const _0x189a13={_0x5f1f0f:0x41c},_0x2d1da6={_0x4ab416:0x17e};function _0x4fdb1b(_0x2c2a02,_0xdf3872,_0x2d1394,_0x24e5f5){return _0x129ebd(_0x2c2a02-_0x2d1da6._0x4ab416,_0x2d1394,_0x24e5f5- -0x14e,_0x24e5f5-0x3b);}return _0x4fdb1b(_0x189a13._0x5f1f0f,0x43e,0x415,0x3e4)+_0x4d7667;}function createDefaultMessage(_0x310e76){if(_0x310e76===void 0x0)return void 0x0;return normalizeUserInput(_0x310e76);}function normalizeUserInput(_0x129256){const _0x362d55={_0x5d04a6:0x4c2,_0x59f9e9:0x436},_0x487ace={_0x37086e:0x12d};function _0x12c709(_0x3d59d1,_0x2c40d0,_0x2f70e5,_0x1345ed){return _0x25dd81(_0x3d59d1-0x8f,_0x2c40d0-0x2c,_0x2c40d0-0x128,_0x2f70e5);}if(typeof _0x129256===_0x563b95(0x447,_0x362d55._0x5d04a6,0x48d,0x478))return{'role':_0x12c709(0x477,0x42a,0x410,_0x362d55._0x59f9e9),'content':[{'type':'text','text':_0x129256}]};function _0x563b95(_0x432144,_0x45d888,_0x439332,_0x51d55d){return _0x25dd81(_0x432144-_0x487ace._0x37086e,_0x45d888-0xc8,_0x432144-0x1be,_0x439332);}return normalizeMessage(_0x129256);}function isTaggedSteeringInput(_0x2e1e85){const _0x44b710={_0x4bc5df:0xb4,_0x4d1848:0x79,_0xfe1845:0xb6,_0x138021:0x22,_0x5a5f90:0x54,_0x2a1f63:0x3ee,_0x190fd1:0x3f7,_0x5a10fe:0x442},_0xc7275b={_0xe03991:0x18d},_0x2c23b9={_0x4d3806:0xb3,_0x397054:0xdc,_0x4e8ce9:0x2e2};function _0x25105d(_0x4a5e09,_0x4058ac,_0x1f8332,_0xe2a1f){return _0x25dd81(_0x4a5e09-_0x2c23b9._0x4d3806,_0x4058ac-_0x2c23b9._0x397054,_0x1f8332- -_0x2c23b9._0x4e8ce9,_0x4a5e09);}function _0x3ab1(_0xa10caa,_0x483757,_0x49501b,_0x4df75a){return _0x25dd81(_0xa10caa-0x1d8,_0x483757-_0xc7275b._0xe03991,_0x483757-0x1b2,_0xa10caa);}return typeof _0x2e1e85===_0x25105d(-_0x44b710._0x4bc5df,-0xd,-_0x44b710._0x4d1848,-_0x44b710._0xfe1845)&&_0x2e1e85!==null&&_0x25105d(0x4a,-0xa1,-_0x44b710._0x138021,_0x44b710._0x5a5f90)in _0x2e1e85&&_0x3ab1(_0x44b710._0x2a1f63,_0x44b710._0x190fd1,0x43a,_0x44b710._0x5a10fe)in _0x2e1e85;}function resolveChatModel(_0xb68725){const _0x16b5e9={_0x5d5a49:0x1c7,_0x16edf2:0x1a6,_0x423267:0x2e,_0x43e148:0xe,_0x4478a5:0x65},_0x282dc2={_0x8603e6:0x1ab,_0x57b954:0x24},_0x2ae251={_0x58508f:0xfe};function _0x10732e(_0x1565cf,_0x3b0c0d,_0x2a5cfd,_0x46d0ec){return _0x25dd81(_0x1565cf-0x18f,_0x3b0c0d-0x1b5,_0x46d0ec- -_0x2ae251._0x58508f,_0x3b0c0d);}function _0x125bc1(_0x4d7c75,_0x346009,_0x1150aa,_0x2567e1){return _0x25dd81(_0x4d7c75-_0x282dc2._0x8603e6,_0x346009-_0x282dc2._0x57b954,_0x346009- -0x201,_0x1150aa);}if(!_0xb68725['chatModel'])throw new Error(_0x10732e(0x1df,0x17f,_0x16b5e9._0x5d5a49,_0x16b5e9._0x16edf2));return _0xb68725[_0x125bc1(0x16,_0x16b5e9._0x423267,-_0x16b5e9._0x43e148,_0x16b5e9._0x4478a5)];}function normalizeExecutionScope2(_0x594a21){const _0x13f578={_0x2364f7:0x312,_0x277c8b:0x365,_0x26e266:0x3e1,_0x253e18:0x34f},_0x130436={_0x216774:0x1d1},_0x570717={_0x19f8c3:0x1d9};function _0x234e2c(_0x4255a2,_0x28cade,_0x5405c7,_0x3f5963){return _0x129ebd(_0x4255a2-0x1e7,_0x3f5963,_0x5405c7- -_0x570717._0x19f8c3,_0x3f5963-0x21);}function _0x3a41fd(_0x48a135,_0x4beac3,_0x77b3f2,_0x1bf59d){return _0x25dd81(_0x48a135-_0x130436._0x216774,_0x4beac3-0xd8,_0x48a135- -0xf2,_0x1bf59d);}return{'agentId':_0x594a21?.['agentId']??_0x234e2c(0x305,_0x13f578._0x2364f7,_0x13f578._0x277c8b,_0x13f578._0x26e266),'toolCallPath':[..._0x594a21?.[_0x234e2c(0x3fd,_0x13f578._0x253e18,0x386,0x407)]??[]]};}function createRegistry(_0x1c5336){const _0x3133b3={_0xddded2:0x1cf,_0x5883f6:0x16b,_0x2eb011:0x173,_0x4171e8:0x1ad,_0x2d1791:0x294,_0x26a4be:0x2d2,_0x5ee42a:0x250},_0x38dd56={_0x2e020:0x468};function _0x152f77(_0x47196f,_0x201850,_0x385ef8,_0x5a8b5f){return _0x25dd81(_0x47196f-0x197,_0x201850-0x194,_0x5a8b5f- -_0x38dd56._0x2e020,_0x385ef8);}function _0x313062(_0x2e6d12,_0x13346c,_0xbc8b5c,_0x1f88a3){return _0x25dd81(_0x2e6d12-0x8e,_0x13346c-0x1,_0x2e6d12- -0x18a,_0xbc8b5c);}if(_0x1c5336[_0x152f77(-_0x3133b3._0xddded2,-0x12d,-0x107,-_0x3133b3._0x5883f6)])return _0x1c5336[_0x313062(_0x3133b3._0x2eb011,_0x3133b3._0x4171e8,0x14a,0x169)];const _0x5745a3=createExtensionRegistry(),_0x35b66e=_0x1c5336[_0x152f77(-_0x3133b3._0x2d1791,-_0x3133b3._0x26a4be,-0x26e,-_0x3133b3._0x5ee42a)]??[];for(const _0x7dbf4b of _0x35b66e){_0x5745a3[_0x152f77(-_0x3133b3._0x5883f6,-0x1f6,-0x25a,-0x1e7)](_0x7dbf4b);}return _0x5745a3;}var Agent=class{[_0x25dd81(0x2a9,0x1f5,0x239,0x1f1)];[_0x129ebd(0x50a,0x525,0x4ed,0x472)];[_0x25dd81(0x27a,0x24b,0x293,0x2c9)];[_0x25dd81(0x1de,0x251,0x20f,0x243)];['messages'];[_0x25dd81(0x287,0x24d,0x2c3,0x33d)];['turnIndex'];constructor(_0x482924={}){const _0x5a7a04={_0x2b7094:0x26f,_0x5aa095:0x249,_0x450edd:0x200,_0x1505fe:0x1ba,_0x1ad12d:0x211,_0x4e958e:0x1a2,_0x2fd0f4:0x4ca,_0x5de7c4:0x4bc,_0x3dd26f:0x40a,_0x1337ab:0x16d,_0x538a56:0x185,_0x10a9c8:0x13c,_0x23fb33:0x17d,_0x48729c:0x15d,_0x15971c:0xda,_0x5ac890:0xf1,_0x5ac58e:0x114,_0x5c3ef6:0x4a3,_0x2d1d8f:0x49a,_0x57edac:0x4d8,_0x4ebb07:0x4d5,_0x29f27d:0x4cb,_0x184284:0x15f,_0x3aa33d:0x1c0,_0x1336c2:0x205,_0x29cd0e:0x1df,_0x4d4b7d:0x4c2,_0x1ddf4a:0x4ac,_0x53cc21:0x4a9,_0x2a8695:0x1c8,_0x406fb2:0x59e,_0x5572cf:0x581,_0x12f57b:0x196,_0x3f640b:0x155,_0x5b22d5:0x252,_0x5a0ed3:0x1f1,_0x5441d3:0x42d,_0x1b513d:0x45d,_0x3f92e6:0x4e8,_0x39abfb:0x588,_0xead44e:0x576},_0x58ec38={_0x3b4f37:0x192,_0x299ce3:0x1aa},_0x5e0a80={_0x5dc669:0x125};function _0x516595(_0xe884c,_0x38ed09,_0x522d74,_0x3a8e46){return _0x25dd81(_0xe884c-_0x5e0a80._0x5dc669,_0x38ed09-0x4c,_0x3a8e46- -0x420,_0x38ed09);}function _0xce8d26(_0x541dac,_0x5a7167,_0x3e35d8,_0x9ca6f9){return _0x129ebd(_0x541dac-0x17a,_0x9ca6f9,_0x3e35d8- -0x41,_0x9ca6f9-0x190);}this[_0x516595(-_0x5a7a04._0x2b7094,-0x1cb,-0x198,-0x211)]=_0x482924[_0x516595(-_0x5a7a04._0x5aa095,-_0x5a7a04._0x450edd,-_0x5a7a04._0x1505fe,-_0x5a7a04._0x1ad12d)]??createSessionId(),this[_0x516595(-0x116,-_0x5a7a04._0x4e958e,-0x107,-0x127)]=0x0,this[_0xce8d26(_0x5a7a04._0x2fd0f4,_0x5a7a04._0x5de7c4,0x47e,_0x5a7a04._0x3dd26f)]=_0x482924['systemPrompt']??'',this['messages']=(_0x482924[_0x516595(-_0x5a7a04._0x1337ab,-_0x5a7a04._0x538a56,-_0x5a7a04._0x10a9c8,-0x16b)]??[])['map'](normalizeMessage),this[_0x516595(-0x19e,-0x187,-_0x5a7a04._0x23fb33,-_0x5a7a04._0x48729c)]=createDefaultMessage(_0x482924[_0x516595(-_0x5a7a04._0x15971c,-_0x5a7a04._0x5ac890,-0x139,-_0x5a7a04._0x5ac58e)]),this[_0xce8d26(_0x5a7a04._0x5c3ef6,_0x5a7a04._0x2d1d8f,_0x5a7a04._0x57edac,0x4be)]=createAgentMetrics({'getContextWindowLimit':_0x482924[_0xce8d26(_0x5a7a04._0x4ebb07,0x54c,_0x5a7a04._0x29f27d,0x54c)]});const _0x523f1e=_0x482924[_0x516595(-_0x5a7a04._0x184284,-_0x5a7a04._0x3aa33d,-_0x5a7a04._0x1336c2,-_0x5a7a04._0x29cd0e)],_0x3f903c=async(_0x1c03ea,_0x5ad34f)=>{function _0x28baa7(_0x337f33,_0x29aca7,_0x11ee9a,_0x308987){return _0xce8d26(_0x337f33-0x179,_0x29aca7-0x39,_0x11ee9a- -0x347,_0x308987);}this[_0x28baa7(0x1a1,0x16c,0x191,0x1e8)][_0x1378c3(-_0x58ec38._0x3b4f37,-_0x58ec38._0x299ce3,-0x140,-0x1a4)](_0x1c03ea);function _0x1378c3(_0x2c6583,_0x2f3e3b,_0x3cbcc7,_0x2cbe04){return _0xce8d26(_0x2c6583-0x1b5,_0x2f3e3b-0xc,_0x2cbe04- -0x69d,_0x2f3e3b);}await _0x523f1e?.(_0x1c03ea,_0x5ad34f);},_0x48feab=createRegistry(_0x482924),_0x4170e0=createInternalToolRuntime(_0x482924['tools']??[],{'onEvent':_0x3f903c,'onToolCall':_0x482924['onToolCall'],'registry':_0x48feab,'beginProgramTrace':_0x482924['beginProgramTrace']});this[_0xce8d26(0x4d7,_0x5a7a04._0x4d4b7d,_0x5a7a04._0x1ddf4a,_0x5a7a04._0x53cc21)]={'registry':_0x48feab,'chatModel':resolveChatModel(_0x482924),'toolRuntime':_0x4170e0,'askUser':_0x482924[_0x516595(-_0x5a7a04._0x2a8695,-_0x5a7a04._0x1505fe,-0x15b,-0x1ad)],'setTopic':_0x482924[_0xce8d26(_0x5a7a04._0x406fb2,_0x5a7a04._0x5572cf,0x525,0x53f)],'onEvent':_0x3f903c,'sessionDir':_0x482924[_0x516595(-_0x5a7a04._0x12f57b,-0xd7,-0xfc,-_0x5a7a04._0x3f640b)],'outputFormat':_0x482924[_0x516595(-_0x5a7a04._0x5b22d5,-_0x5a7a04._0x5a0ed3,-0x189,-0x1d9)],'executionScope':normalizeExecutionScope2(_0x482924[_0xce8d26(_0x5a7a04._0x5441d3,_0x5a7a04._0x1b513d,0x4a2,_0x5a7a04._0x3f92e6)]),'beginProgramTrace':_0x482924[_0xce8d26(_0x5a7a04._0x39abfb,_0x5a7a04._0xead44e,0x514,0x49b)]};}get[_0x129ebd(0x460,0x50f,0x4a9,0x4dd)](){return this['_systemPrompt'];}[_0x129ebd(0x565,0x509,0x582,0x5bc)](_0x331681=[]){const _0xc9202={_0x5da796:0x21d,_0x503e9f:0x24a,_0x1dcef6:0x1f4,_0x1509a5:0x1e3,_0x2ec996:0x215},_0x3b5d80={_0x181093:0xb2},_0x322da7={_0x463b20:0x16f};function _0x5c66f3(_0x20ba3b,_0x4d26bc,_0x5d42c3,_0x4ac4e7){return _0x129ebd(_0x20ba3b-_0x322da7._0x463b20,_0x4d26bc,_0x5d42c3- -0x737,_0x4ac4e7-0x92);}function _0xe6a254(_0xae0a89,_0x448678,_0x3875e3,_0x41f1a){return _0x25dd81(_0xae0a89-0x1a3,_0x448678-_0x3b5d80._0x181093,_0x3875e3- -0xc6,_0x448678);}this[_0x5c66f3(-0x1ed,-_0xc9202._0x5da796,-_0xc9202._0x503e9f,-_0xc9202._0x1dcef6)][_0x5c66f3(-0x1b5,-_0xc9202._0x1509a5,-0x1f7,-_0xc9202._0x2ec996)][_0x5c66f3(-_0xc9202._0x2ec996,-0x1fd,-0x1b5,-0x14a)](_0x331681);}[_0x129ebd(0x460,0x4b3,0x49c,0x4fd)](){const _0x31a843={_0x57149f:0xd1,_0x17fa7d:0x123,_0x1325cb:0x178,_0x1b64af:0x537},_0x4e66b8={_0x33bb79:0x5b,_0x4a97d3:0x38a},_0x3322f8={_0xb97fb:0x49};function _0x5eb22f(_0x49ec05,_0x5d4f64,_0x1b5b3c,_0x29d9e9){return _0x129ebd(_0x49ec05-0x9,_0x5d4f64,_0x49ec05-0x60,_0x29d9e9-_0x3322f8._0xb97fb);}function _0x3b7581(_0x348d84,_0xf47f9b,_0x2df86b,_0x599db5){return _0x25dd81(_0x348d84-_0x4e66b8._0x33bb79,_0xf47f9b-0xb9,_0x2df86b- -_0x4e66b8._0x4a97d3,_0x348d84);}return this[_0x3b7581(-_0x31a843._0x57149f,-0xbf,-_0x31a843._0x17fa7d,-_0x31a843._0x1325cb)][_0x5eb22f(0x5a0,_0x31a843._0x1b64af,0x549,0x56a)]['listToolSchemas']();}[_0x25dd81(0x212,0x202,0x26e,0x1eb)](_0x3f4742,_0x4164ed={}){const _0x484886={_0x519e3f:0x19f,_0x4e46aa:0x189,_0x7bb54a:0x11c},_0x152dab={_0x5b9a7c:0x2e},_0x2d8ca1={_0x23d0ba:0x14c};function _0x5ab660(_0x215b61,_0xc42325,_0x2a2e18,_0x2ff709){return _0x25dd81(_0x215b61-0x6b,_0xc42325-0xeb,_0x215b61-_0x2d8ca1._0x23d0ba,_0xc42325);}this['_systemPrompt']=_0x3f4742;function _0x3203cf(_0xc23f2a,_0x9351b4,_0x3e0401,_0x2e35b3){return _0x129ebd(_0xc23f2a-0x43,_0x9351b4,_0x3e0401- -0x708,_0x2e35b3-_0x152dab._0x5b9a7c);}_0x4164ed[_0x3203cf(-0x1fd,-0x1d2,-0x192,-0x1e9)]===!![]&&(this['messages']=[],this[_0x3203cf(-0x179,-_0x484886._0x519e3f,-_0x484886._0x4e46aa,-_0x484886._0x7bb54a)]=0x0);}[_0x129ebd(0x5af,0x4f7,0x55a,0x576)](_0x1daa6a){const _0x53bf4c={_0x177719:0x7,_0x5efe4c:0x1d},_0x3cf9c3={_0x88a3fa:0x6e,_0x3234d5:0x4b2,_0x4674b4:0x1cf};function _0x2ecdfe(_0x5e2b99,_0x2288a5,_0x4a31c5,_0xf6e8d){return _0x129ebd(_0x5e2b99-_0x3cf9c3._0x88a3fa,_0x5e2b99,_0xf6e8d- -_0x3cf9c3._0x3234d5,_0xf6e8d-_0x3cf9c3._0x4674b4);}this[_0x2ecdfe(0x63,0x0,-_0x53bf4c._0x177719,-_0x53bf4c._0x5efe4c)]=_0x1daa6a;}[_0x25dd81(0x269,0x20c,0x259,0x28f)](_0xf738c1){const _0x439c9e={_0x4431e2:0x162,_0x25df73:0xe6,_0x38b5df:0x147};function _0x3a07a7(_0x5dece5,_0x315c02,_0x3aa0f9,_0x1487aa){return _0x25dd81(_0x5dece5-0x25,_0x315c02-0xfc,_0x315c02- -0x34d,_0x3aa0f9);}this[_0x3a07a7(-_0x439c9e._0x4431e2,-_0x439c9e._0x25df73,-0x74,-_0x439c9e._0x38b5df)]['chatModel']=_0xf738c1;}async[_0x25dd81(0x1cf,0x222,0x231,0x207)](_0xebbd40=this[_0x129ebd(0x4e2,0x590,0x549,0x59c)],_0x321a83={}){const _0x5d9dc7={_0x5dddc4:0x348,_0xa421d9:0x342,_0x568011:0xc1,_0xc5954c:0xee,_0x18eddb:0x1b,_0x237fcd:0x58,_0x1cf5f0:0x25,_0x50e1e0:0x2bb,_0x495b2b:0x41a,_0x1645e2:0x3ca,_0x274305:0x3b3,_0x2b60a2:0x71,_0x5c6979:0x8c,_0x1c6ca4:0x44,_0x58bbb6:0x29,_0x178db9:0x3d6,_0x5cb832:0x3b6,_0x302f32:0x447,_0x1d31d6:0x6a,_0x4326b7:0x0,_0x5a290d:0x55,_0x21eb5b:0x7,_0x46b56c:0x5e,_0x378f5a:0x43c,_0x1551b1:0x443,_0x5d75f2:0x448,_0x1ba12d:0x3de,_0x536a74:0x44c,_0x2ca866:0x18,_0x4a44a8:0x4,_0x3c0aba:0x350,_0x2220ae:0x387,_0x1db766:0x3d6,_0x590df7:0xb8};function _0xb5dc3a(_0x47be09,_0x44064f,_0x2b6d5c,_0x28b968){return _0x25dd81(_0x47be09-0x1b4,_0x44064f-0x18f,_0x44064f- -0x267,_0x2b6d5c);}if(!_0xebbd40)throw new Error(_0x248cc6(0x395,_0x5d9dc7._0x5dddc4,_0x5d9dc7._0xa421d9,0x32c));function _0x248cc6(_0x52b6b4,_0x32a909,_0x3f6d9a,_0x475ed5){return _0x129ebd(_0x52b6b4-0x145,_0x3f6d9a,_0x52b6b4- -0x165,_0x475ed5-0x1cc);}this[_0xb5dc3a(0xd2,0x92,_0x5d9dc7._0x568011,_0x5d9dc7._0xc5954c)]+=0x1;const _0x50b020=_0x321a83[_0xb5dc3a(_0x5d9dc7._0x18eddb,_0x5d9dc7._0x237fcd,_0x5d9dc7._0x1cf5f0,0xbc)];try{const _0x6f7193=await runTurn({'sessionId':this[_0x248cc6(0x330,_0x5d9dc7._0x50e1e0,0x375,0x36c)],'turnId':createTurnId(this[_0x248cc6(_0x5d9dc7._0x495b2b,_0x5d9dc7._0x1645e2,_0x5d9dc7._0x274305,0x456)]),'streaming':_0x321a83['streaming'],'signal':_0x321a83[_0xb5dc3a(-_0x5d9dc7._0x2b60a2,-0x41,-0x14,-_0x5d9dc7._0x5c6979)],'system':this[_0xb5dc3a(-0x54,-_0x5d9dc7._0x1c6ca4,_0x5d9dc7._0x58bbb6,-0x90)],'messages':this[_0x248cc6(_0x5d9dc7._0x178db9,_0x5d9dc7._0x5cb832,_0x5d9dc7._0x302f32,0x3aa)],'message':normalizeUserInput(_0xebbd40),..._0x321a83['submission']===void 0x0?{}:{'submission':_0x321a83[_0xb5dc3a(-0x71,-0x22,-0x5a,-_0x5d9dc7._0x1d31d6)]},..._0x50b020?{'drainSteering':async()=>(await _0x50b020())[_0xb5dc3a(0x6,0x57,0xcf,0x4)](_0x55e6ef=>isTaggedSteeringInput(_0x55e6ef)?{'input':normalizeUserInput(_0x55e6ef['input']),'submission':_0x55e6ef[_0xb5dc3a(-0x1c,-0x22,0x7,-0x46)]}:normalizeUserInput(_0x55e6ef))}:{}},this[_0xb5dc3a(0x64,_0x5d9dc7._0x4326b7,0x56,_0x5d9dc7._0x5a290d)]);return this['messages']=_0x6f7193[_0xb5dc3a(-0xf,-_0x5d9dc7._0x21eb5b,-0x21,-_0x5d9dc7._0x46b56c)][_0x248cc6(0x3d6,_0x5d9dc7._0x378f5a,_0x5d9dc7._0x1551b1,_0x5d9dc7._0x5d75f2)][_0x248cc6(0x3df,_0x5d9dc7._0x1ba12d,_0x5d9dc7._0x536a74,0x379)](normalizeMessage),_0x6f7193;}catch(_0x3f63ef){if(_0x3f63ef instanceof TurnFailedError){this[_0xb5dc3a(_0x5d9dc7._0x2ca866,0x4e,0xb1,_0x5d9dc7._0x4a44a8)]=synthesizeMissingToolResults(_0x3f63ef[_0x248cc6(0x381,_0x5d9dc7._0x3c0aba,_0x5d9dc7._0x2220ae,0x3b2)][_0x248cc6(_0x5d9dc7._0x1db766,0x38b,0x3ef,0x3c9)][_0xb5dc3a(0xab,0x57,_0x5d9dc7._0x590df7,0x76)](normalizeMessage));throw _0x3f63ef[_0x248cc6(0x363,0x3ba,0x2ef,0x315)];}throw _0x3f63ef;}}};export{normalizeToolOutputValue,createToolOutput,ToolExecutionError,defineTool,resolveToolPermissionClass,ToolRegistry,validateToolInput,deriveFinalToolOutput,closeBoundNestedToolExecution,drainBoundNestedToolPersistence,commitBoundToolExecutionTerminalState,createInternalToolRuntime,createExtensionRegistry,createAgentMetrics,runTurn,Agent};
@@ -1,12 +0,0 @@
1
- export declare function createUpdateTopicTool(): import("../../shared/types.ts").ToolDefinition<{
2
- topic: string;
3
- }, import("../../shared/types.ts").ToolOutputEnvelope, undefined, {
4
- readonly type: "object";
5
- readonly properties: {
6
- readonly topic: {
7
- readonly type: "string";
8
- };
9
- };
10
- readonly required: readonly ["topic"];
11
- }>;
12
- //# sourceMappingURL=update-topic-tool.d.ts.map