@opentiny/next 0.2.1 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/client.js DELETED
@@ -1,668 +0,0 @@
1
- import { JSONRPCMessageSchema, EmptyResultSchema, CreateMessageResultSchema, ListRootsResultSchema } from "@modelcontextprotocol/sdk/types.js";
2
- import { Client } from "@modelcontextprotocol/sdk/client/index.js";
3
- import { SSEClientTransport } from "@modelcontextprotocol/sdk/client/sse.js";
4
- import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js";
5
- function _0x5d34() {
6
- const _0x1efc11 = ["xvQXC", "603309hhGmOf", "object", "160767aSXjlh", "kgSPd", "toString", "821472ICyrFe", "3022854AnmWAK", "replace", "1492478hKDkXm", "456955eGHvGi", "randomUUID", "getRandomValues", "4IGLajm", "HlhgH", "1409958waVENt", "696JipcmK"];
7
- _0x5d34 = function() {
8
- return _0x1efc11;
9
- };
10
- return _0x5d34();
11
- }
12
- (function(_0x4dc11c, _0x342bbc) {
13
- const _0x3c49e9 = _0x289c, _0x37f6f6 = _0x289c, _0x426ff0 = _0x4dc11c();
14
- while (!![]) {
15
- try {
16
- const _0xd0da30 = -parseInt(_0x3c49e9(362)) / (-2801 + 1626 + 1176) + parseInt(_0x3c49e9(365)) / (109 * -47 + -781 * -1 + 4344) + -parseInt(_0x3c49e9(371)) / (1449 + 5290 + -6736) + -parseInt(_0x37f6f6(369)) / (9948 + -1 * -5575 + -2217 * 7) * (-parseInt(_0x37f6f6(366)) / (-857 * -3 + 843 + 487 * -7)) + -parseInt(_0x3c49e9(363)) / (3198 * 2 + -664 * -9 + -12366) + -parseInt(_0x3c49e9(357)) / (-274 * 13 + -2 * 4478 + 12525) + -parseInt(_0x3c49e9(372)) / (8894 + -9603 + 717) * (-parseInt(_0x37f6f6(359)) / (7464 + 1 * -8275 + 820));
17
- if (_0xd0da30 === _0x342bbc) break;
18
- else _0x426ff0["push"](_0x426ff0["shift"]());
19
- } catch (_0x5dc85b) {
20
- _0x426ff0["push"](_0x426ff0["shift"]());
21
- }
22
- }
23
- })(_0x5d34, 425592 + -13470 * 23 + 394475);
24
- function _0x289c(_0x512315, _0x222a6f) {
25
- const _0x5306d2 = _0x5d34();
26
- return _0x289c = function(_0x1a2d06, _0x4b468c) {
27
- _0x1a2d06 = _0x1a2d06 - (-2 * -2318 + -1565 * -1 + 1948 * -3);
28
- let _0x1d079e = _0x5306d2[_0x1a2d06];
29
- return _0x1d079e;
30
- }, _0x289c(_0x512315, _0x222a6f);
31
- }
32
- const generateUUID = () => {
33
- const _0x3efd85 = _0x289c, _0x155517 = _0x289c, _0x279997 = {};
34
- _0x279997[_0x3efd85(360)] = function(_0x1ac68e, _0x55103b) {
35
- return _0x1ac68e & _0x55103b;
36
- }, _0x279997[_0x3efd85(370)] = function(_0x10aa46, _0x16c636) {
37
- return _0x10aa46 === _0x16c636;
38
- }, _0x279997[_0x3efd85(373)] = function(_0x122514, _0x47a8ac) {
39
- return _0x122514 | _0x47a8ac;
40
- }, _0x279997["Lxvwz"] = _0x3efd85(358);
41
- const _0x2a72a1 = _0x279997;
42
- if (_0x2a72a1[_0x3efd85(370)](typeof crypto, _0x2a72a1["Lxvwz"]) && crypto[_0x155517(367)]) return crypto["randomUUID"]();
43
- return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"[_0x3efd85(364)](/[xy]/g, (_0x524583) => {
44
- const _0x3e769a = _0x155517, _0x5f5be0 = _0x155517, _0x4f8415 = _0x2a72a1["kgSPd"](crypto[_0x3e769a(368)](new Uint8Array(-2273 + -4356 + 170 * 39))[-2 * 1726 + 4100 + -648], -478 * -1 + 63 * -88 + 5081), _0x4fa1f7 = _0x2a72a1[_0x3e769a(370)](_0x524583, "x") ? _0x4f8415 : _0x2a72a1[_0x5f5be0(373)](_0x2a72a1[_0x3e769a(360)](_0x4f8415, -1 * 3833 + 2 * 872 + 2092), -5 * -125 + -272 + -345);
45
- return _0x4fa1f7[_0x5f5be0(361)](2375 + -753 + -803 * 2);
46
- });
47
- };
48
- const _0x1bfdb8 = _0x25bb;
49
- (function(_0x50733a, _0x2583a6) {
50
- const _0x563472 = _0x25bb, _0x275dfa = _0x25bb, _0x255adf = _0x50733a();
51
- while (!![]) {
52
- try {
53
- const _0x5adf99 = -parseInt(_0x563472(190)) / (-8787 * 1 + -1929 + 10717) * (-parseInt(_0x563472(222)) / (-7006 + 2511 + -1 * -4497)) + parseInt(_0x275dfa(204)) / (9565 + -4765 + -1599 * 3) * (parseInt(_0x275dfa(231)) / (-5435 + 2908 * 1 + 2531)) + parseInt(_0x563472(194)) / (1092 + -3 * -1919 + -6844) * (-parseInt(_0x563472(223)) / (-2131 + -968 * 6 + 1 * 7945)) + parseInt(_0x275dfa(217)) / (-8742 + -1 * 3389 + 12138) + -parseInt(_0x275dfa(195)) / (7528 + 1094 * -2 + -5332) + parseInt(_0x563472(232)) / (1 * -14 + -8826 + 8849) * (-parseInt(_0x563472(192)) / (-1 * -1426 + -3826 * -1 + -2 * 2621)) + parseInt(_0x275dfa(234)) / (2279 * 3 + 1205 + -3 * 2677);
54
- if (_0x5adf99 === _0x2583a6) break;
55
- else _0x255adf["push"](_0x255adf["shift"]());
56
- } catch (_0x3f0ca7) {
57
- _0x255adf["push"](_0x255adf["shift"]());
58
- }
59
- }
60
- })(_0x49a5, 1 * -1712191 + 10 * -131891 + -3919385 * -1);
61
- const getGlobalObject = () => {
62
- const _0x23b82a = _0x25bb, _0x4af369 = _0x25bb, _0x1d1152 = { "HKFrs": "3|4|2|0|1", "NXAqB": function(_0x582ca9, _0x48bda6) {
63
- return _0x582ca9 !== _0x48bda6;
64
- }, "yUAGf": _0x23b82a(226), "RFXXY": function(_0x363a9d, _0x528c26) {
65
- return _0x363a9d(_0x528c26);
66
- }, "XNizk": "return this" }, _0x2b7deb = _0x1d1152[_0x23b82a(213)]["split"]("|");
67
- let _0x2741fe = 5677 + -4633 * 1 + -1044;
68
- while (!![]) {
69
- switch (_0x2b7deb[_0x2741fe++]) {
70
- case "0":
71
- if (_0x1d1152[_0x4af369(207)](typeof self, _0x1d1152["yUAGf"])) return self;
72
- continue;
73
- case "1":
74
- return _0x1d1152[_0x4af369(225)](Function, _0x1d1152[_0x23b82a(236)])();
75
- case "2":
76
- if (_0x1d1152["NXAqB"](typeof global, _0x1d1152["yUAGf"])) return global;
77
- continue;
78
- case "3":
79
- if (typeof globalThis !== _0x1d1152["yUAGf"]) return globalThis;
80
- continue;
81
- case "4":
82
- if (_0x1d1152[_0x4af369(207)](typeof window, _0x1d1152[_0x23b82a(191)])) return window;
83
- continue;
84
- }
85
- break;
86
- }
87
- }, sendMessage = (_0x53058f, _0x1b280c, _0x3c090e) => {
88
- const _0x4a8659 = _0x25bb, _0x5bdb65 = _0x25bb, _0x258adf = {};
89
- _0x258adf[_0x4a8659(196)] = function(_0x206a3a, _0xe5b6f3) {
90
- return _0x206a3a !== _0xe5b6f3;
91
- }, _0x258adf["aJDpp"] = "undefined", _0x258adf[_0x4a8659(221)] = function(_0x507d06, _0x440bfc) {
92
- return _0x507d06 in _0x440bfc;
93
- }, _0x258adf["qKvEo"] = _0x4a8659(229), _0x258adf[_0x5bdb65(215)] = _0x5bdb65(197);
94
- const _0x4bdd96 = _0x258adf;
95
- if (_0x4bdd96[_0x5bdb65(196)](typeof window, _0x4bdd96["aJDpp"])) _0x53058f["postMessage"](_0x1b280c, "*", _0x3c090e);
96
- else _0x4bdd96["WVeFE"](_0x4bdd96["qKvEo"], _0x53058f) && typeof _0x53058f["postMessage"] === _0x4bdd96["ctLco"] && _0x53058f["postMessage"](_0x1b280c, _0x3c090e);
97
- }, setMessageHandler = (_0x97a54d, _0x43d901) => {
98
- const _0x53a350 = _0x25bb, _0x187012 = _0x25bb, _0x5b0505 = {};
99
- _0x5b0505["trFbG"] = function(_0x1eb611, _0x205a42) {
100
- return _0x1eb611 in _0x205a42;
101
- }, _0x5b0505["TBOUS"] = "addEventListener", _0x5b0505["bJaJS"] = function(_0x1a84f0, _0x593bc4) {
102
- return _0x1a84f0 === _0x593bc4;
103
- }, _0x5b0505["iXIHW"] = "message", _0x5b0505["EfsGA"] = _0x53a350(230), _0x5b0505["YSdDH"] = function(_0x5ad290, _0x1cb9f4) {
104
- return _0x5ad290 !== _0x1cb9f4;
105
- }, _0x5b0505["yAfBV"] = _0x187012(226);
106
- const _0x422749 = _0x5b0505;
107
- if (_0x422749[_0x187012(235)](_0x422749[_0x187012(203)], _0x97a54d) && _0x422749["bJaJS"](typeof _0x97a54d[_0x53a350(219)], _0x187012(197))) _0x97a54d[_0x187012(219)](_0x422749[_0x187012(200)], _0x43d901);
108
- else _0x422749["EfsGA"] in _0x97a54d && _0x422749[_0x53a350(199)](typeof _0x97a54d["onmessage"], _0x422749["yAfBV"]) && (_0x97a54d["onmessage"] = _0x43d901);
109
- };
110
- class MessageChannelTransport {
111
- constructor(_0x3291c0, _0x48f9ca) {
112
- const _0x50d5f2 = _0x25bb, _0x4cf2a7 = _0x25bb, _0x3fb2ff = {};
113
- _0x3fb2ff["yImye"] = "3|2|0|4|1|5";
114
- const _0x2a856a = _0x3fb2ff, _0x5ab738 = _0x2a856a["yImye"]["split"]("|");
115
- let _0x2dafa0 = -332 + -1070 * 8 + 8892;
116
- while (!![]) {
117
- switch (_0x5ab738[_0x2dafa0++]) {
118
- case "0":
119
- this["_port"] = _0x3291c0;
120
- continue;
121
- case "1":
122
- this["_started"] = ![];
123
- continue;
124
- case "2":
125
- this[_0x50d5f2(206)] = ![];
126
- continue;
127
- case "3":
128
- this[_0x50d5f2(210)] = ![];
129
- continue;
130
- case "4":
131
- this[_0x4cf2a7(198)] = _0x48f9ca;
132
- continue;
133
- case "5":
134
- this[_0x4cf2a7(206)] = ![];
135
- continue;
136
- }
137
- break;
138
- }
139
- }
140
- async ["start"]() {
141
- const _0xe93998 = _0x25bb, _0x17d5a7 = _0x25bb;
142
- if (this["_started"] || this["_closed"] || !this[_0xe93998(216)]) return;
143
- this[_0x17d5a7(210)] = !![], this[_0x17d5a7(216)]["onmessage"] = (_0xc6619d) => {
144
- var _a, _b;
145
- const _0x1e4df3 = _0x17d5a7;
146
- try {
147
- const _0x36ca7c = JSONRPCMessageSchema[_0x1e4df3(201)](_0xc6619d[_0x1e4df3(227)]);
148
- (_a = this[_0x1e4df3(230)]) == null ? void 0 : _a.call(this, _0x36ca7c);
149
- } catch (_0x4911eb) {
150
- const _0x5c7589 = new Error("Failed to parse message: " + _0x4911eb);
151
- (_b = this[_0x1e4df3(212)]) == null ? void 0 : _b.call(this, _0x5c7589);
152
- }
153
- }, this[_0xe93998(216)][_0x17d5a7(228)] = (_0x551eb5) => {
154
- var _a;
155
- const _0x3c4f8b = _0x17d5a7, _0x392df8 = new Error("MessagePort error: " + JSON["stringify"](_0x551eb5));
156
- (_a = this[_0x3c4f8b(212)]) == null ? void 0 : _a.call(this, _0x392df8);
157
- }, this["_port"][_0xe93998(205)]();
158
- }
159
- async ["send"](_0x47baae) {
160
- const _0x7330 = _0x25bb, _0x305b2f = { "mEePn": function(_0x1e0407) {
161
- return _0x1e0407();
162
- }, "YtLsL": function(_0x2fc2a3, _0x59ddf9) {
163
- return _0x2fc2a3 instanceof _0x59ddf9;
164
- }, "MAuuf": function(_0x29881e, _0xf8dfc1) {
165
- return _0x29881e(_0xf8dfc1);
166
- }, "hAyRG": function(_0x3106a5, _0x34c9c6) {
167
- return _0x3106a5(_0x34c9c6);
168
- } };
169
- if (this[_0x7330(206)] || !this["_port"]) return;
170
- return new Promise((_0x39499d, _0x1dd119) => {
171
- var _a;
172
- const _0x25b58a = _0x7330, _0x38e0ab = _0x7330;
173
- try {
174
- if (this["_port"]) this[_0x25b58a(216)]["postMessage"](_0x47baae);
175
- _0x305b2f["mEePn"](_0x39499d);
176
- } catch (_0x32af17) {
177
- const _0xfa30d = _0x305b2f["YtLsL"](_0x32af17, Error) ? _0x32af17 : new Error(_0x305b2f["MAuuf"](String, _0x32af17));
178
- (_a = this["onerror"]) == null ? void 0 : _a.call(this, _0xfa30d), _0x305b2f[_0x38e0ab(214)](_0x1dd119, _0xfa30d);
179
- }
180
- });
181
- }
182
- async [_0x1bfdb8(202)]() {
183
- var _a;
184
- const _0x2b64c1 = _0x1bfdb8;
185
- if (this["_closed"] || !this["_port"]) return;
186
- this["_closed"] = !![], this["_port"][_0x2b64c1(202)](), (_a = this["onclose"]) == null ? void 0 : _a.call(this);
187
- }
188
- get ["sessionId"]() {
189
- const _0x1c6f8f = _0x1bfdb8;
190
- return this[_0x1c6f8f(198)];
191
- }
192
- }
193
- function _0x49a5() {
194
- const _0x5d7bfb = ["endpoint", "_started", "_globalObject", "onerror", "HKFrs", "hAyRG", "ctLco", "_port", "6357498MylexY", "sessionId", "addEventListener", "Qdmwi", "WVeFE", "2571152TAiISL", "10340886KVKStC", "nKvYQ", "RFXXY", "undefined", "data", "onmessageerror", "postMessage", "onmessage", "4sCECAn", "54tPiUsm", "_endpoint", "2092167qFLRxD", "trFbG", "XNizk", "port2", "1voHuKs", "yUAGf", "1555570JcyrXi", "ports", "5fwVkQB", "1793592DbUnOK", "EeNHO", "function", "_sessionId", "YSdDH", "iXIHW", "parse", "close", "TBOUS", "4155957vBaybS", "start", "_closed", "NXAqB", "KUmPc"];
195
- _0x49a5 = function() {
196
- return _0x5d7bfb;
197
- };
198
- return _0x49a5();
199
- }
200
- function _0x25bb(_0x259301, _0x174918) {
201
- const _0x1db798 = _0x49a5();
202
- return _0x25bb = function(_0x2acd10, _0x1805f4) {
203
- _0x2acd10 = _0x2acd10 - (-2 * 2471 + -9757 + -3 * -4963);
204
- let _0xe5f456 = _0x1db798[_0x2acd10];
205
- return _0xe5f456;
206
- }, _0x25bb(_0x259301, _0x174918);
207
- }
208
- class MessageChannelClientTransport extends MessageChannelTransport {
209
- constructor(_0x36243e, _0x2009f1 = getGlobalObject()) {
210
- const _0x1ed500 = _0x1bfdb8, _0x1652cc = _0x1bfdb8, _0x20e881 = { "Qdmwi": function(_0x2a8d25) {
211
- return _0x2a8d25();
212
- }, "acxGw": function(_0x29bb84, _0x562bb2, _0x3e5cc1, _0xc286ee) {
213
- return _0x29bb84(_0x562bb2, _0x3e5cc1, _0xc286ee);
214
- } };
215
- super(), this[_0x1ed500(233)] = _0x36243e, this[_0x1652cc(211)] = _0x2009f1;
216
- const _0x43ef5b = new MessageChannel(), _0x34d037 = _0x20e881[_0x1652cc(220)](generateUUID);
217
- this["_port"] = _0x43ef5b["port1"], this[_0x1652cc(198)] = _0x34d037, _0x20e881["acxGw"](sendMessage, this[_0x1ed500(211)], { "endpoint": this[_0x1ed500(233)], "sessionId": _0x34d037 }, [_0x43ef5b[_0x1652cc(237)]]);
218
- }
219
- }
220
- class MessageChannelServerTransport extends MessageChannelTransport {
221
- constructor(_0x2531ca, _0x397a3f = getGlobalObject()) {
222
- const _0x5c94d2 = { "nKvYQ": function(_0x54e475, _0x492795, _0x15d342) {
223
- return _0x54e475(_0x492795, _0x15d342);
224
- } };
225
- super(), this["_endpoint"] = _0x2531ca, this["_globalObject"] = _0x397a3f, this["_listen"] = new Promise((_0x300e40) => {
226
- const _0x360931 = _0x25bb, _0x23edfd = _0x25bb, _0x5d1a32 = {};
227
- _0x5d1a32[_0x360931(208)] = function(_0x561090, _0x5b8d5c) {
228
- return _0x561090 === _0x5b8d5c;
229
- };
230
- const _0x1bbd84 = _0x5d1a32;
231
- _0x5c94d2[_0x360931(224)](setMessageHandler, this["_globalObject"], (_0x497a2c) => {
232
- const _0x5c9bb5 = _0x360931, _0x56aec5 = _0x23edfd;
233
- _0x497a2c[_0x5c9bb5(227)] && _0x1bbd84["KUmPc"](_0x497a2c[_0x56aec5(227)][_0x56aec5(209)], this[_0x56aec5(233)]) && (this[_0x56aec5(216)] = _0x497a2c[_0x5c9bb5(193)][-1 * 1697 + 2889 + -596 * 2], this["_sessionId"] = _0x497a2c["data"][_0x5c9bb5(218)], _0x300e40());
234
- });
235
- });
236
- }
237
- async ["listen"]() {
238
- return this["_listen"];
239
- }
240
- }
241
- const createTransportPair = () => {
242
- const _0x287e54 = { "UdUkT": function(_0x2dc06b) {
243
- return _0x2dc06b();
244
- } }, _0x1f0e76 = new MessageChannel(), _0x270235 = _0x287e54["UdUkT"](generateUUID);
245
- return [new MessageChannelTransport(_0x1f0e76["port1"], _0x270235), new MessageChannelTransport(_0x1f0e76["port2"], _0x270235)];
246
- };
247
- (function(_0x55a9d7, _0x1c1b1c) {
248
- const _0x511b70 = _0x4af2, _0x1a34ce = _0x4af2, _0x46d5ad = _0x55a9d7();
249
- while (!![]) {
250
- try {
251
- const _0x21c022 = -parseInt(_0x511b70(150)) / (-14 * -3 + -1683 + -2 * -821) + parseInt(_0x1a34ce(147)) / (-8158 + 7512 + 648) * (-parseInt(_0x511b70(157)) / (-9234 + -17 * 359 + 260 * 59)) + parseInt(_0x511b70(153)) / (-9695 + -148 * 1 + -9847 * -1) * (-parseInt(_0x511b70(143)) / (3813 * 1 + 2 * -2813 + 1818)) + -parseInt(_0x1a34ce(145)) / (330 + -9451 * 1 + 9127) + parseInt(_0x511b70(152)) / (-3336 + -8188 + 11531) * (parseInt(_0x1a34ce(155)) / (71 * 109 + 5463 + -13194)) + -parseInt(_0x1a34ce(144)) / (-2 * -4741 + -3022 + -6451 * 1) + -parseInt(_0x511b70(146)) / (8747 + -3476 + -5261) * (-parseInt(_0x1a34ce(151)) / (-4 * 309 + 961 + 286));
252
- if (_0x21c022 === _0x1c1b1c) break;
253
- else _0x46d5ad["push"](_0x46d5ad["shift"]());
254
- } catch (_0x5b6c24) {
255
- _0x46d5ad["push"](_0x46d5ad["shift"]());
256
- }
257
- }
258
- })(_0x215e, -974071 + 975210 + 628825);
259
- function _0x4af2(_0x387515, _0x2ab620) {
260
- const _0x32c5be = _0x215e();
261
- return _0x4af2 = function(_0x164eda, _0x239e1b) {
262
- _0x164eda = _0x164eda - (-2363 + 2488 * -3 + 9970);
263
- let _0x4fdce7 = _0x32c5be[_0x164eda];
264
- return _0x4fdce7;
265
- }, _0x4af2(_0x387515, _0x2ab620);
266
- }
267
- const sseOptions = (_0x2f1cc4, _0x208c79 = generateUUID()) => ({ "requestInit": { "headers": { "Authorization": "Bearer " + _0x2f1cc4, "sse-session-id": _0x208c79 } }, "eventSourceInit": { async "fetch"(_0x43ea14, _0x4557ec) {
268
- const _0x4b7a71 = _0x4af2, _0x50b396 = { "AiGNv": _0x4b7a71(154), "vSQiS": "sse-session-id", "XdpCs": function(_0x1f15a0, _0x4616a0, _0x14f5b5) {
269
- return _0x1f15a0(_0x4616a0, _0x14f5b5);
270
- } }, _0x5a64eb = new Headers((_0x4557ec == null ? void 0 : _0x4557ec["headers"]) || {});
271
- _0x5a64eb["set"](_0x50b396[_0x4b7a71(148)], "Bearer " + _0x2f1cc4), _0x5a64eb[_0x4b7a71(156)](_0x50b396[_0x4b7a71(149)], _0x208c79);
272
- const _0x474368 = { ..._0x4557ec };
273
- return _0x474368["headers"] = _0x5a64eb, _0x50b396["XdpCs"](fetch, _0x43ea14, _0x474368);
274
- } } });
275
- const streamOptions = (_0x3bc494, _0x19a952 = generateUUID()) => ({ "requestInit": { "headers": { "Authorization": "Bearer " + _0x3bc494, "stream-session-id": _0x19a952 } } });
276
- function _0x215e() {
277
- const _0x42af44 = ["vSQiS", "1232600XmyMuo", "21373eXHBdU", "425355MVAcRJ", "12AWycNK", "authorization", "56hXzxWH", "set", "1260255yqMDQL", "773300AfCyyF", "9359541qoODls", "5783370zsljtT", "22260yFjCbi", "2osLpLl", "AiGNv"];
278
- _0x215e = function() {
279
- return _0x42af44;
280
- };
281
- return _0x215e();
282
- }
283
- (function(_0x3a7ddb, _0x193954) {
284
- const _0xb50952 = _0x389e, _0x5f5705 = _0x389e, _0x1794b6 = _0x3a7ddb();
285
- while (!![]) {
286
- try {
287
- const _0x499732 = -parseInt(_0xb50952(257)) / (5705 + 335 + -6039) * (-parseInt(_0x5f5705(283)) / (-9824 + -131 + -9957 * -1)) + -parseInt(_0xb50952(298)) / (-2421 * 3 + -9902 + 17168) + -parseInt(_0xb50952(241)) / (599 + -2 * -911 + -2417 * 1) + -parseInt(_0x5f5705(290)) / (4253 + 274 * -29 + -3698 * -1) + parseInt(_0xb50952(253)) / (2481 + 2 * -3211 + -3947 * -1) + -parseInt(_0x5f5705(313)) / (5864 + -1 * 5937 + 16 * 5) * (parseInt(_0x5f5705(279)) / (9032 + -5381 + 1 * -3643)) + parseInt(_0xb50952(271)) / (8127 + -8309 * 1 + 191) * (parseInt(_0xb50952(281)) / (-3643 * 1 + 1459 * -1 + 5112));
288
- if (_0x499732 === _0x193954) break;
289
- else _0x1794b6["push"](_0x1794b6["shift"]());
290
- } catch (_0x458381) {
291
- _0x1794b6["push"](_0x1794b6["shift"]());
292
- }
293
- }
294
- })(_0x5ce7, 1 * -958321 + -1498149 + 42 * 76909);
295
- function _0x389e(_0x4c53e7, _0x5019cc) {
296
- const _0x328e54 = _0x5ce7();
297
- return _0x389e = function(_0x776f85, _0x224cf9) {
298
- _0x776f85 = _0x776f85 - (2 * 2869 + -2589 * 1 + 2909 * -1);
299
- let _0x4bc9c9 = _0x328e54[_0x776f85];
300
- return _0x4bc9c9;
301
- }, _0x389e(_0x4c53e7, _0x5019cc);
302
- }
303
- const forwardServerRequest = async (_0x5c4d13, _0x14efd6, _0x3d0783) => {
304
- var _a;
305
- const _0x3ffbda = _0x389e, _0x475e61 = _0x389e, _0x543329 = {};
306
- _0x543329[_0x3ffbda(255)] = _0x3ffbda(296), _0x543329[_0x475e61(269)] = "resources/list", _0x543329[_0x475e61(266)] = _0x3ffbda(256), _0x543329["RRkap"] = "resources/subscribe", _0x543329["upnaf"] = "resources/unsubscribe", _0x543329["lsGQt"] = "prompts/get", _0x543329[_0x475e61(275)] = _0x475e61(309), _0x543329[_0x475e61(312)] = _0x475e61(305), _0x543329["kQNzn"] = _0x3ffbda(252), _0x543329[_0x475e61(263)] = _0x3ffbda(246);
307
- const _0x1afe15 = _0x543329, { id: _0x2cf226, method: _0x24430b, params: _0x5660ad } = _0x3d0783;
308
- let _0x10d088 = {};
309
- switch (_0x24430b) {
310
- case _0x3ffbda(306):
311
- _0x10d088 = await _0x14efd6["listTools"](_0x5660ad);
312
- break;
313
- case _0x1afe15[_0x3ffbda(255)]:
314
- _0x10d088 = await _0x14efd6[_0x3ffbda(293)](_0x5660ad);
315
- break;
316
- case _0x1afe15["STkQf"]:
317
- _0x10d088 = await _0x14efd6[_0x475e61(286)](_0x5660ad);
318
- break;
319
- case _0x475e61(267):
320
- _0x10d088 = await _0x14efd6[_0x3ffbda(317)](_0x5660ad);
321
- break;
322
- case _0x1afe15["ClDpH"]:
323
- _0x10d088 = await _0x14efd6["readResource"](_0x5660ad);
324
- break;
325
- case _0x1afe15["RRkap"]:
326
- _0x10d088 = await _0x14efd6["subscribeResource"](_0x5660ad);
327
- break;
328
- case _0x1afe15["upnaf"]:
329
- _0x10d088 = await _0x14efd6[_0x475e61(260)](_0x5660ad);
330
- break;
331
- case _0x1afe15[_0x475e61(324)]:
332
- _0x10d088 = await _0x14efd6["getPrompt"](_0x5660ad);
333
- break;
334
- case _0x1afe15[_0x3ffbda(275)]:
335
- _0x10d088 = await _0x14efd6["listPrompts"](_0x5660ad);
336
- break;
337
- case "ping":
338
- _0x10d088 = await _0x14efd6["ping"]();
339
- break;
340
- case _0x1afe15["gUByd"]:
341
- _0x10d088 = await _0x14efd6[_0x3ffbda(289)](_0x5660ad);
342
- break;
343
- case _0x1afe15[_0x475e61(240)]:
344
- _0x10d088 = await _0x14efd6["setLoggingLevel"](_0x5660ad == null ? void 0 : _0x5660ad[_0x475e61(294)]);
345
- break;
346
- }
347
- const _0x115738 = {};
348
- _0x115738["result"] = _0x10d088, _0x115738[_0x475e61(321)] = _0x1afe15[_0x475e61(263)], _0x115738["id"] = _0x2cf226, await ((_a = _0x5c4d13 == null ? void 0 : _0x5c4d13["transport"]) == null ? void 0 : _a["send"](_0x115738));
349
- }, forwardClientRequest = async (_0x308d7b, _0x3df369, _0x13e839) => {
350
- var _a;
351
- const _0x3acbfa = _0x389e, _0x1334d1 = _0x389e, _0x7caf02 = {};
352
- _0x7caf02[_0x3acbfa(272)] = _0x3acbfa(280), _0x7caf02["HJWCi"] = "sampling/createMessage", _0x7caf02[_0x3acbfa(276)] = _0x1334d1(319), _0x7caf02["zAPVJ"] = "2.0";
353
- const _0x5dc149 = _0x7caf02, { id: _0x5aa3bf, method: _0x1361c3, params: _0x3a0352 } = _0x13e839;
354
- let _0x37ef20 = {};
355
- switch (_0x1361c3) {
356
- case _0x5dc149[_0x1334d1(272)]:
357
- const _0xac694b = {};
358
- _0xac694b["method"] = _0x1361c3, _0xac694b[_0x3acbfa(287)] = _0x3a0352, _0x37ef20 = await _0x3df369[_0x1334d1(285)](_0xac694b, ListRootsResultSchema);
359
- break;
360
- case _0x5dc149[_0x3acbfa(270)]:
361
- const _0x468975 = {};
362
- _0x468975["method"] = _0x1361c3, _0x468975["params"] = _0x3a0352, _0x37ef20 = await _0x3df369[_0x1334d1(285)](_0x468975, CreateMessageResultSchema);
363
- break;
364
- case _0x5dc149["MHdLd"]:
365
- const _0xec923d = {};
366
- _0xec923d[_0x3acbfa(308)] = _0x1361c3, _0x37ef20 = await _0x3df369[_0x1334d1(285)](_0xec923d, EmptyResultSchema);
367
- break;
368
- }
369
- const _0x449fe0 = {};
370
- _0x449fe0["result"] = _0x37ef20, _0x449fe0["jsonrpc"] = _0x5dc149[_0x1334d1(261)], _0x449fe0["id"] = _0x5aa3bf, await ((_a = _0x308d7b == null ? void 0 : _0x308d7b["transport"]) == null ? void 0 : _a[_0x3acbfa(300)](_0x449fe0));
371
- };
372
- const forwardServerOnRequest = (_0x27dc5c, _0x568fc4) => {
373
- const _0x2a7d93 = _0x389e, _0x70caed = _0x389e, _0x48a546 = { "uakTp": _0x2a7d93(278), "PRkoG": function(_0x5c2227, _0x1301c4, _0x41f8ad, _0x4c4201) {
374
- return _0x5c2227(_0x1301c4, _0x41f8ad, _0x4c4201);
375
- }, "BPMzo": "2.0" }, _0x1057cb = _0x27dc5c[_0x2a7d93(322)];
376
- _0x27dc5c[_0x70caed(322)] = async (_0x2e41e0, _0x2c3def) => {
377
- var _a;
378
- const _0x4571c5 = _0x2a7d93, _0x3d02b1 = _0x2a7d93, { id: _0x4f5e54, method: _0x3c76bd } = _0x2e41e0;
379
- try {
380
- _0x3c76bd === _0x48a546[_0x4571c5(277)] ? await _0x1057cb[_0x4571c5(264)](_0x27dc5c, _0x2e41e0, _0x2c3def) : await _0x48a546[_0x4571c5(302)](forwardServerRequest, _0x27dc5c, _0x568fc4, _0x2e41e0);
381
- } catch (_0x5006ec) {
382
- const { code: _0x2407e9, message: _0x5aed23, data: _0x40147e } = _0x5006ec;
383
- try {
384
- const _0x8d37fc = {};
385
- _0x8d37fc[_0x4571c5(295)] = _0x2407e9, _0x8d37fc["message"] = _0x5aed23, _0x8d37fc[_0x4571c5(315)] = _0x40147e;
386
- const _0x4de494 = {};
387
- _0x4de494[_0x3d02b1(259)] = _0x8d37fc, _0x4de494[_0x4571c5(321)] = _0x48a546["BPMzo"], _0x4de494["id"] = _0x4f5e54, await ((_a = _0x27dc5c == null ? void 0 : _0x27dc5c[_0x3d02b1(314)]) == null ? void 0 : _a[_0x4571c5(300)](_0x4de494));
388
- } catch {
389
- }
390
- }
391
- };
392
- };
393
- function _0x5ce7() {
394
- const _0x2adf5a = ["jQOHt", "logging/setLevel", "9148050QavroF", "addResponseListener", "DKcdb", "resources/read", "2dhabXO", "notifications/cancelled", "error", "unsubscribeResource", "zAPVJ", "taVWl", "tPJej", "call", "fallbackRequestHandler", "ClDpH", "resources/templates/list", "wFRTc", "STkQf", "HJWCi", "9HsXPHL", "EteND", "notifications/progress", "abort", "KRjHw", "MHdLd", "uakTp", "initialize", "1592OvFQRg", "roots/list", "24485730fwSTLx", "clearNotificationListener", "495382ohHKQU", "function", "request", "listResources", "params", "KfGLt", "complete", "5554650asvKKt", "vAQOh", "qGHPg", "callTool", "level", "code", "tools/call", "removeResponseListener", "3707892TeWMjJ", "clear", "send", "FqNTf", "PRkoG", "LyVnY", "length", "completion/complete", "tools/list", "ChEvV", "method", "prompts/list", "jatfb", "fEKFh", "gUByd", "9079gFgwwb", "transport", "data", "YbuGL", "listResourceTemplates", "handleListener", "ping", "UARSo", "jsonrpc", "_onrequest", "removeNotificationListener", "lsGQt", "kQNzn", "4359700wMGLtX", "addRequestListener", "Dplaa", "clearListener", "_requestHandlerAbortControllers", "2.0", "addNotificationListener", "push", "AroLw", "message"];
395
- _0x5ce7 = function() {
396
- return _0x2adf5a;
397
- };
398
- return _0x5ce7();
399
- }
400
- const forwardServerOnNotification = (_0x5f3aac, _0x2bdcd5) => {
401
- const _0xb4015b = _0x389e, _0x4424e2 = _0x389e, _0x3faa0b = {};
402
- _0x3faa0b["LyVnY"] = function(_0x5a2961, _0x19fff8) {
403
- return _0x5a2961 !== _0x19fff8;
404
- }, _0x3faa0b[_0xb4015b(249)] = "notifications/initialized", _0x3faa0b[_0x4424e2(311)] = "notifications/cancelled";
405
- const _0x12d3ea = _0x3faa0b;
406
- _0x5f3aac["_onnotification"] = async (_0x658a8d) => {
407
- const _0x194fa4 = _0xb4015b, _0xd3ef49 = _0xb4015b, { method: _0x4bf9c9, params: _0x261f04 } = _0x658a8d;
408
- if (_0x12d3ea[_0x194fa4(303)](_0x4bf9c9, _0x12d3ea[_0xd3ef49(249)]) && (_0x4bf9c9 !== _0x12d3ea[_0x194fa4(311)] || (_0x261f04 == null ? void 0 : _0x261f04["forward"]))) try {
409
- await _0x2bdcd5["notification"](_0x658a8d);
410
- } catch {
411
- }
412
- };
413
- };
414
- const forwardClientOnRequest = (_0x34be45, _0x27f842) => async (_0x4571ee) => {
415
- var _a;
416
- const _0x35bbc3 = _0x389e, _0xd5ee3e = _0x389e, _0x2c60e8 = {};
417
- _0x2c60e8[_0x35bbc3(292)] = "2.0";
418
- const _0x1a394c = _0x2c60e8;
419
- try {
420
- await forwardClientRequest(_0x34be45, _0x27f842, _0x4571ee);
421
- } catch (_0x4b58a8) {
422
- const { code: _0x3b52be, message: _0x43e67e, data: _0x460c24 } = _0x4b58a8;
423
- try {
424
- const _0x586af5 = {};
425
- _0x586af5["code"] = _0x3b52be, _0x586af5[_0xd5ee3e(250)] = _0x43e67e, _0x586af5["data"] = _0x460c24;
426
- const _0x3002ef = {};
427
- _0x3002ef[_0x35bbc3(259)] = _0x586af5, _0x3002ef["jsonrpc"] = _0x1a394c[_0x35bbc3(292)], _0x3002ef["id"] = _0x4571ee["id"], await ((_a = _0x34be45 == null ? void 0 : _0x34be45[_0xd5ee3e(314)]) == null ? void 0 : _a["send"](_0x3002ef));
428
- } catch {
429
- }
430
- }
431
- };
432
- const forwardClientOnNotification = (_0x4cb45e) => async (_0x158ed6) => {
433
- var _a;
434
- const _0x5fdd9d = _0x389e, _0x448197 = _0x389e, _0x235af7 = {};
435
- _0x235af7["jQOHt"] = "notifications/initialized", _0x235af7[_0x5fdd9d(310)] = function(_0x38778c, _0x48cd24) {
436
- return _0x38778c !== _0x48cd24;
437
- }, _0x235af7[_0x5fdd9d(262)] = _0x448197(258);
438
- const _0x394d84 = _0x235af7, { method: _0x35ccf1, params: _0x19894a } = _0x158ed6;
439
- if (_0x35ccf1 !== _0x394d84[_0x448197(251)] && (_0x394d84[_0x5fdd9d(310)](_0x35ccf1, _0x394d84[_0x5fdd9d(262)]) || (_0x19894a == null ? void 0 : _0x19894a["forward"]))) try {
440
- const _0x583913 = { ..._0x158ed6 };
441
- _0x583913["jsonrpc"] = _0x5fdd9d(246), await ((_a = _0x4cb45e == null ? void 0 : _0x4cb45e["transport"]) == null ? void 0 : _a["send"](_0x583913));
442
- } catch {
443
- }
444
- };
445
- const forwardClientOnResponse = (_0x49b3ee, _0x1bcb55) => async (_0x20fe15) => {
446
- var _a, _b;
447
- const _0x2d3103 = _0x389e, _0x16f509 = _0x389e, _0x1074b0 = {};
448
- _0x1074b0["vxoaP"] = _0x2d3103(246);
449
- const _0x4af8a2 = _0x1074b0;
450
- try {
451
- await ((_a = _0x1bcb55 == null ? void 0 : _0x1bcb55["transport"]) == null ? void 0 : _a["send"](_0x20fe15));
452
- } catch (_0x4dbf02) {
453
- const { code: _0x3adf06, message: _0x2d3c7b, data: _0x2756ac } = _0x4dbf02;
454
- try {
455
- const _0x801073 = {};
456
- _0x801073[_0x16f509(295)] = _0x3adf06, _0x801073["message"] = _0x2d3c7b, _0x801073[_0x2d3103(315)] = _0x2756ac;
457
- const _0x25a81c = {};
458
- _0x25a81c[_0x2d3103(259)] = _0x801073, _0x25a81c["jsonrpc"] = _0x4af8a2["vxoaP"], _0x25a81c["id"] = _0x20fe15["id"], await ((_b = _0x49b3ee == null ? void 0 : _0x49b3ee[_0x16f509(314)]) == null ? void 0 : _b["send"](_0x25a81c));
459
- } catch {
460
- }
461
- }
462
- };
463
- const createHandleListener = () => {
464
- const _0x14f631 = _0x389e, _0x4676c6 = { "REOpj": function(_0x4198da, _0x5d67ce) {
465
- return _0x4198da(_0x5d67ce);
466
- }, "UARSo": function(_0x27912a, _0x2a191a) {
467
- return _0x27912a === _0x2a191a;
468
- }, "wFRTc": "function", "cboFW": function(_0x37ca4b, _0x1bdaa1) {
469
- return _0x37ca4b !== _0x1bdaa1;
470
- } }, _0x3d4a8e = [], _0x130821 = (_0x1334da) => {
471
- const _0x233d74 = [..._0x3d4a8e];
472
- let _0x19903a;
473
- for (const _0x59d78f of _0x233d74) {
474
- try {
475
- _0x19903a = _0x4676c6["REOpj"](_0x59d78f, _0x1334da);
476
- } catch {
477
- }
478
- }
479
- if (!(_0x19903a instanceof Promise)) return _0x19903a;
480
- }, _0x1c4719 = (_0x6a094d) => {
481
- const _0x5c27b3 = _0x389e, _0x373d85 = _0x389e;
482
- _0x4676c6[_0x5c27b3(320)](typeof _0x6a094d, _0x4676c6[_0x373d85(268)]) && !_0x3d4a8e["includes"](_0x6a094d) && _0x3d4a8e[_0x373d85(248)](_0x6a094d);
483
- }, _0x52815b = (_0x5cb516) => {
484
- const _0x2a4330 = _0x3d4a8e["indexOf"](_0x5cb516);
485
- _0x4676c6["cboFW"](_0x2a4330, -1) && _0x3d4a8e["splice"](_0x2a4330, -241 * 1 + 321 * -6 + 2168);
486
- }, _0x3eda68 = () => {
487
- const _0x532f40 = _0x389e;
488
- _0x3d4a8e[_0x532f40(304)] = -459 * 21 + 2 * -2763 + 1011 * 15;
489
- }, _0x1f3623 = {};
490
- return _0x1f3623[_0x14f631(318)] = _0x130821, _0x1f3623["addListener"] = _0x1c4719, _0x1f3623["removeListener"] = _0x52815b, _0x1f3623[_0x14f631(244)] = _0x3eda68, _0x1f3623;
491
- }, setClientListener = (_0xa67e25) => {
492
- const _0x3c676a = _0x389e, _0x107291 = _0x389e, _0x45201d = { "Dplaa": function(_0x427539) {
493
- return _0x427539();
494
- }, "KfGLt": function(_0x348224) {
495
- return _0x348224();
496
- } };
497
- {
498
- const { handleListener: _0x116e1d, addListener: _0x1edd51, removeListener: _0x1623d8, clearListener: _0x160253 } = createHandleListener();
499
- _0xa67e25["_onresponse"] = _0x116e1d, _0xa67e25["addResponseListener"] = _0x1edd51, _0xa67e25[_0x3c676a(297)] = _0x1623d8, _0xa67e25["clearResponseListener"] = _0x160253;
500
- }
501
- {
502
- const { handleListener: _0x3ef79d, addListener: _0x36d9e5, removeListener: _0x1fcb7b, clearListener: _0x10ea28 } = _0x45201d[_0x3c676a(243)](createHandleListener);
503
- _0xa67e25[_0x3c676a(265)] = _0x3ef79d, _0xa67e25[_0x107291(242)] = _0x36d9e5, _0xa67e25["removeRequestListener"] = _0x1fcb7b, _0xa67e25["clearRequestListener"] = _0x10ea28;
504
- }
505
- {
506
- const { handleListener: _0x21759f, addListener: _0x1a2b9d, removeListener: _0x283abb, clearListener: _0xf93403 } = _0x45201d[_0x107291(288)](createHandleListener);
507
- _0xa67e25["fallbackNotificationHandler"] = _0x21759f, _0xa67e25[_0x107291(247)] = _0x1a2b9d, _0xa67e25[_0x107291(323)] = _0x283abb, _0xa67e25[_0x3c676a(282)] = _0xf93403;
508
- }
509
- };
510
- const initClientHandler = (_0x434b5f, _0x238cde, { beforeInit: _0xaa72ce, afterInit: _0x471e82 } = {}) => {
511
- const _0x35c179 = _0x389e, _0x39ff3e = _0x389e, _0x371c24 = { "ChEvV": function(_0x21d19c, _0x7715f7) {
512
- return _0x21d19c === _0x7715f7;
513
- }, "YbuGL": _0x35c179(319), "FqNTf": function(_0x37a6ab, _0x3c89f5) {
514
- return _0x37a6ab === _0x3c89f5;
515
- }, "WUrMn": _0x35c179(284), "vAQOh": function(_0x5ad5c3) {
516
- return _0x5ad5c3();
517
- }, "DiIVP": function(_0x20ef27, _0x3c47bc) {
518
- return _0x20ef27(_0x3c47bc);
519
- }, "ArGZD": function(_0x374747, _0x4ae463) {
520
- return _0x374747 === _0x4ae463;
521
- } };
522
- _0x434b5f["_requestHandlers"][_0x35c179(299)](), _0x434b5f["_notificationHandlers"]["clear"]();
523
- typeof _0xaa72ce === _0x371c24["WUrMn"] && _0x371c24[_0x35c179(291)](_0xaa72ce);
524
- const _0x2504f2 = _0x434b5f["_onresponse"];
525
- _0x371c24["DiIVP"](setClientListener, _0x434b5f), _0x434b5f[_0x35c179(254)]((_0x2b1c87) => {
526
- _0x2504f2["call"](_0x434b5f, _0x2b1c87);
527
- }), _0x434b5f[_0x35c179(242)]((_0x2fa87a) => {
528
- const _0xd40917 = _0x35c179, { method: _0x48e479 } = _0x2fa87a;
529
- if (_0x371c24[_0xd40917(307)](_0x48e479, _0x371c24[_0xd40917(316)])) return {};
530
- }), _0x434b5f["addNotificationListener"]((_0x16f826) => {
531
- const _0x4ffb37 = _0x35c179, _0x544f53 = _0x39ff3e, { method: _0x1aefd7, params: _0x4e9a46 } = _0x16f826;
532
- if (_0x371c24[_0x4ffb37(301)](_0x1aefd7, _0x4ffb37(258))) {
533
- const _0x225a74 = _0x434b5f[_0x544f53(245)]["get"](_0x4e9a46["requestId"]);
534
- _0x225a74 == null ? void 0 : _0x225a74[_0x4ffb37(274)](_0x4e9a46 == null ? void 0 : _0x4e9a46["reason"]);
535
- } else _0x1aefd7 === _0x4ffb37(273) && _0x434b5f["_onprogress"](_0x16f826);
536
- }), _0x371c24["ArGZD"](typeof _0x471e82, _0x371c24["WUrMn"]) && _0x471e82();
537
- };
538
- (function(_0x3a51f9, _0x27e9aa) {
539
- const _0x213d97 = _0x3f42, _0x226132 = _0x3f42, _0x1ff3f6 = _0x3a51f9();
540
- while (!![]) {
541
- try {
542
- const _0x447c57 = -parseInt(_0x213d97(286)) / (-3985 + 1 * -4629 + 8615) * (parseInt(_0x226132(296)) / (17 * -391 + 4980 + 1 * 1669)) + -parseInt(_0x213d97(283)) / (-6963 + 41 * 164 + -2 * -121) + parseInt(_0x213d97(306)) / (1 * -1137 + -3846 + 4987 * 1) * (-parseInt(_0x226132(285)) / (-1 * -1649 + -4259 + -1 * -2615)) + -parseInt(_0x213d97(305)) / (124 * 63 + 9811 + -17617) + -parseInt(_0x213d97(317)) / (-1 * -265 + 5846 + -6104) * (parseInt(_0x226132(318)) / (22 * -389 + 9648 + -541 * 2)) + parseInt(_0x226132(308)) / (-5 * 804 + 9632 + -5603 * 1) * (parseInt(_0x226132(304)) / (3 * 2927 + -753 + -211 * 38)) + -parseInt(_0x226132(292)) / (21 * 133 + -8233 * -1 + -1 * 11015) * (-parseInt(_0x213d97(314)) / (-7685 + -879 + -8 * -1072));
543
- if (_0x447c57 === _0x27e9aa) break;
544
- else _0x1ff3f6["push"](_0x1ff3f6["shift"]());
545
- } catch (_0x52210d) {
546
- _0x1ff3f6["push"](_0x1ff3f6["shift"]());
547
- }
548
- }
549
- })(_0x40c7, 73514 + -9970 * -20 + 69651);
550
- function _0x3f42(_0x38f123, _0x4c4a41) {
551
- const _0x4c6b28 = _0x40c7();
552
- return _0x3f42 = function(_0x8f66f0, _0x107472) {
553
- _0x8f66f0 = _0x8f66f0 - (-5350 * -1 + -4 * 662 + 2420 * -1);
554
- let _0x2c4baf = _0x4c6b28[_0x8f66f0];
555
- return _0x2c4baf;
556
- }, _0x3f42(_0x38f123, _0x4c4a41);
557
- }
558
- const forwardProxyClient = (_0x3ffec4, _0x512b11) => {
559
- const _0x869d7 = _0x3f42, _0x585eb4 = _0x3f42, _0x177126 = { "wtkds": function(_0x5a4977, _0x2b1bf4, _0x4b88ef) {
560
- return _0x5a4977(_0x2b1bf4, _0x4b88ef);
561
- } };
562
- _0x177126["wtkds"](forwardServerOnRequest, _0x3ffec4, _0x512b11), _0x177126[_0x869d7(310)](forwardServerOnNotification, _0x3ffec4, _0x512b11);
563
- const _0x34aa96 = forwardClientOnRequest(_0x512b11, _0x3ffec4), _0xf28fb = _0x177126[_0x585eb4(310)](forwardClientOnResponse, _0x512b11, _0x3ffec4), _0x117a73 = forwardClientOnNotification(_0x3ffec4);
564
- _0x512b11["addRequestListener"](_0x34aa96), _0x512b11["addResponseListener"](_0xf28fb), _0x512b11[_0x869d7(312)](_0x117a73), _0x3ffec4[_0x585eb4(321)] = () => {
565
- const _0x599903 = _0x585eb4, _0x43399a = _0x585eb4;
566
- _0x512b11[_0x599903(300)](_0x34aa96), _0x512b11["removeResponseListener"](_0xf28fb), _0x512b11[_0x43399a(299)](_0x117a73);
567
- };
568
- }, initWebClientHandler = (_0x395e7c, _0x46c4f2) => {
569
- const _0x113deb = _0x3f42, _0x5c020f = _0x3f42, _0x2a8105 = { "pvctu": function(_0xebd8e4, _0x32c296) {
570
- return _0xebd8e4 instanceof _0x32c296;
571
- }, "Stdcb": _0x113deb(323), "MhUJa": function(_0x41cf16, _0xdefd83, _0x236512, _0x3d1937) {
572
- return _0x41cf16(_0xdefd83, _0x236512, _0x3d1937);
573
- } }, _0x38c7ec = () => {
574
- var _a;
575
- const _0x11c915 = _0x113deb;
576
- _0x2a8105["pvctu"](_0x46c4f2, SSEClientTransport) && ((_a = _0x46c4f2["_eventSource"]) == null ? void 0 : _a[_0x11c915(291)](_0x2a8105["Stdcb"], () => {
577
- var _a2;
578
- const _0xe9d09e = _0x11c915;
579
- (_a2 = _0x46c4f2[_0xe9d09e(319)]) == null ? void 0 : _a2["close"]();
580
- }));
581
- }, _0x4db354 = {};
582
- _0x4db354["afterInit"] = _0x38c7ec, _0x2a8105[_0x5c020f(298)](initClientHandler, _0x395e7c, _0x46c4f2, _0x4db354);
583
- };
584
- const createSseProxy = async (_0x3476bd) => {
585
- const _0x454b87 = _0x3f42, _0x45d35a = _0x3f42, _0x292cdb = { "fWZFK": function(_0x1a51fb) {
586
- return _0x1a51fb();
587
- }, "MHbif": function(_0x482437, _0x27e904, _0x1b9bd2) {
588
- return _0x482437(_0x27e904, _0x1b9bd2);
589
- }, "cGSyh": _0x454b87(284), "nAXtx": _0x45d35a(309), "NYETq": function(_0xbbe73a, _0x237ec4, _0x4b124c) {
590
- return _0xbbe73a(_0x237ec4, _0x4b124c);
591
- } }, { client: _0x2239f7, url: _0x4c8606, token: _0x184465, sessionId: _0x240bd1 } = _0x3476bd, _0xbd785d = _0x240bd1 || _0x292cdb["fWZFK"](generateUUID), _0x1ebb2c = new SSEClientTransport(new URL(_0x4c8606), _0x292cdb[_0x45d35a(290)](sseOptions, _0x184465, _0xbd785d)), _0x325a8a = {};
592
- _0x325a8a[_0x454b87(316)] = !![];
593
- const _0x1cedf0 = {};
594
- _0x1cedf0["prompts"] = {}, _0x1cedf0[_0x45d35a(295)] = {}, _0x1cedf0[_0x45d35a(303)] = {}, _0x1cedf0[_0x45d35a(315)] = {}, _0x1cedf0[_0x454b87(288)] = _0x325a8a, _0x1cedf0["sampling"] = {};
595
- const _0x3d4a35 = _0x1cedf0, _0x104240 = {};
596
- _0x104240["name"] = _0x292cdb[_0x454b87(322)], _0x104240["version"] = _0x292cdb[_0x45d35a(302)];
597
- const _0x5b7516 = {};
598
- _0x5b7516["capabilities"] = _0x3d4a35;
599
- const _0x2960cc = new Client(_0x104240, _0x5b7516);
600
- await _0x2960cc["connect"](_0x1ebb2c), _0x292cdb[_0x45d35a(290)](initWebClientHandler, _0x2239f7, _0x1ebb2c), _0x292cdb["NYETq"](forwardProxyClient, _0x2960cc, _0x2239f7), _0x1ebb2c["sessionId"] = _0xbd785d;
601
- const _0x13f204 = {};
602
- return _0x13f204[_0x454b87(287)] = _0x1ebb2c, _0x13f204["sessionId"] = _0xbd785d, _0x13f204;
603
- };
604
- const createStreamProxy = async (_0x15218f) => {
605
- const _0x551a73 = _0x3f42, _0x3b3748 = _0x3f42, _0x5ea558 = { "STOLL": function(_0x276436) {
606
- return _0x276436();
607
- }, "Ralpb": function(_0x6f7b57, _0x17336b, _0x467f4a) {
608
- return _0x6f7b57(_0x17336b, _0x467f4a);
609
- }, "kRoIR": _0x551a73(307), "zBxUW": "1.0.0", "MLIWZ": function(_0x11beef, _0x321a32, _0xf6db6a) {
610
- return _0x11beef(_0x321a32, _0xf6db6a);
611
- } }, { client: _0x316e48, url: _0x3ea39b, token: _0x267d0c, sessionId: _0x346bab } = _0x15218f, _0x217cdb = _0x346bab || _0x5ea558[_0x3b3748(282)](generateUUID), _0x490cd8 = new StreamableHTTPClientTransport(new URL(_0x3ea39b), _0x5ea558[_0x551a73(311)](streamOptions, _0x267d0c, _0x217cdb)), _0x3f4689 = {};
612
- _0x3f4689["listChanged"] = !![];
613
- const _0x2e09fc = {};
614
- _0x2e09fc[_0x3b3748(320)] = {}, _0x2e09fc["resources"] = {}, _0x2e09fc[_0x551a73(303)] = {}, _0x2e09fc[_0x551a73(315)] = {}, _0x2e09fc[_0x551a73(288)] = _0x3f4689, _0x2e09fc[_0x551a73(313)] = {};
615
- const _0x4a3b1b = _0x2e09fc, _0x2d4b2f = {};
616
- _0x2d4b2f["name"] = _0x5ea558["kRoIR"], _0x2d4b2f[_0x551a73(301)] = _0x5ea558[_0x551a73(289)];
617
- const _0x4d1011 = {};
618
- _0x4d1011["capabilities"] = _0x4a3b1b;
619
- const _0x503534 = new Client(_0x2d4b2f, _0x4d1011);
620
- await _0x503534[_0x3b3748(297)](_0x490cd8), _0x5ea558[_0x551a73(293)](initWebClientHandler, _0x316e48, _0x490cd8), _0x5ea558[_0x551a73(311)](forwardProxyClient, _0x503534, _0x316e48);
621
- const _0x55c735 = {};
622
- return _0x55c735[_0x3b3748(287)] = _0x490cd8, _0x55c735[_0x3b3748(294)] = _0x217cdb, _0x55c735;
623
- };
624
- function _0x40c7() {
625
- const _0x215da0 = ["MhUJa", "removeNotificationListener", "removeRequestListener", "version", "nAXtx", "tools", "802030ULkOOd", "888120XOtYOc", "2249276aONbFk", "mcp-stream-proxy-client", "9Zrtczb", "1.0.0", "wtkds", "Ralpb", "addNotificationListener", "sampling", "48gpfGZR", "logging", "listChanged", "76643wQMMNV", "176xFTxxv", "_eventSource", "prompts", "onclose", "cGSyh", "close", "STOLL", "1365396TZnVUQ", "mcp-sse-proxy-client", "5alDkiu", "12031tcYqPf", "transport", "roots", "zBxUW", "MHbif", "addEventListener", "4952893dMIJix", "MLIWZ", "sessionId", "resources", "22ACquGI", "connect"];
626
- _0x40c7 = function() {
627
- return _0x215da0;
628
- };
629
- return _0x40c7();
630
- }
631
- (function(_0x5f44e1, _0x50db57) {
632
- var _0x470aa1 = _0x624e, _0x228588 = _0x624e, _0x3d7e54 = _0x5f44e1();
633
- while (!![]) {
634
- try {
635
- var _0x5853e8 = -parseInt(_0x470aa1(146)) / (-5603 + -3 * -2705 + -3 * 837) + -parseInt(_0x470aa1(151)) / (5066 + -320 * 16 + 56) * (parseInt(_0x470aa1(150)) / (-146 * 31 + -4 * -1590 + -1831)) + parseInt(_0x470aa1(148)) / (-656 * -5 + -4206 + 3 * 310) + -parseInt(_0x470aa1(152)) / (814 + 2139 + 2948 * -1) + -parseInt(_0x470aa1(149)) / (1 * -917 + -1 * 3123 + 4046) + -parseInt(_0x470aa1(147)) / (8908 + -73 * 67 + -4010) * (-parseInt(_0x228588(153)) / (-1 * 8774 + 2809 + -1991 * -3)) + parseInt(_0x470aa1(145)) / (-1761 + -1301 * 2 + 2186 * 2);
636
- if (_0x5853e8 === _0x50db57) break;
637
- else _0x3d7e54["push"](_0x3d7e54["shift"]());
638
- } catch (_0x1095cf) {
639
- _0x3d7e54["push"](_0x3d7e54["shift"]());
640
- }
641
- }
642
- })(_0x290a, 421 * 846 + -1230358 + 1829094);
643
- function _0x624e(_0x6862c7, _0x3553e9) {
644
- var _0x834ca = _0x290a();
645
- return _0x624e = function(_0x5077ba, _0x5a96cc) {
646
- _0x5077ba = _0x5077ba - (4870 + -7584 + -1 * -2859);
647
- var _0xb6bb90 = _0x834ca[_0x5077ba];
648
- return _0xb6bb90;
649
- }, _0x624e(_0x6862c7, _0x3553e9);
650
- }
651
- function _0x290a() {
652
- var _0x1564d5 = ["6990666lmTFZb", "12303JhneIQ", "442jbtgOa", "8311125vypyPK", "368KGtkFm", "31159062Uuazld", "1452721vYzYtN", "171122cONrrN", "6218584okJVdB"];
653
- _0x290a = function() {
654
- return _0x1564d5;
655
- };
656
- return _0x290a();
657
- }
658
- export {
659
- MessageChannelClientTransport,
660
- MessageChannelServerTransport,
661
- MessageChannelTransport,
662
- createSseProxy,
663
- createStreamProxy,
664
- createTransportPair,
665
- generateUUID,
666
- sseOptions,
667
- streamOptions
668
- };