@opentiny/agent 0.3.0 → 0.3.1

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.
Files changed (2) hide show
  1. package/index.js +740 -739
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -1,952 +1,953 @@
1
- import _0x1323d6 from "jsonwebtoken";
1
+ import _0xb6e97a from "jsonwebtoken";
2
2
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
3
3
  import { Client } from "@modelcontextprotocol/sdk/client/index.js";
4
4
  import { SSEServerTransport } from "@modelcontextprotocol/sdk/server/sse.js";
5
5
  import { StreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/streamableHttp.js";
6
6
  import { EmptyResultSchema, ElicitResultSchema, CreateMessageResultSchema, ListRootsResultSchema, isInitializeRequest } from "@modelcontextprotocol/sdk/types.js";
7
- import _0x46f055 from "cors";
8
- import _0x6b975c from "express";
7
+ import _0x3ff0bd from "cors";
8
+ import _0x3b4ea9 from "express";
9
9
  import { getOAuthProtectedResourceMetadataUrl, createOAuthMetadata, mcpAuthRouter } from "@modelcontextprotocol/sdk/server/auth/router.js";
10
10
  import { checkResourceAllowed } from "@modelcontextprotocol/sdk/shared/auth-utils.js";
11
11
  import { requireBearerAuth } from "@modelcontextprotocol/sdk/server/auth/middleware/bearerAuth.js";
12
12
  import { allowedMethods } from "@modelcontextprotocol/sdk/server/auth/middleware/allowedMethods.js";
13
13
  import { InvalidGrantError, InvalidTokenError } from "@modelcontextprotocol/sdk/server/auth/errors.js";
14
- (function(_0x24506a, _0x1759b0) {
15
- const _0x5ad8fc = _0x2148, _0x26d4b4 = _0x2148, _0x213d6c = _0x24506a();
14
+ function _0x47e3(_0x5f4b98, _0x5afdf9) {
15
+ const _0x40e224 = _0xd45d();
16
+ return _0x47e3 = function(_0x104d66, _0x4576ae) {
17
+ _0x104d66 = _0x104d66 - (9648 + -43 * -2 + -9426);
18
+ let _0x15d074 = _0x40e224[_0x104d66];
19
+ return _0x15d074;
20
+ }, _0x47e3(_0x5f4b98, _0x5afdf9);
21
+ }
22
+ (function(_0x2766de, _0x4745f6) {
23
+ const _0x4d4689 = _0x47e3, _0x27c1f6 = _0x47e3, _0x408001 = _0x2766de();
16
24
  while (!![]) {
17
25
  try {
18
- const _0x2ccbe8 = parseInt(_0x5ad8fc(468)) / (-6588 + 1540 + 33 * 153) + parseInt(_0x26d4b4(442)) / (-2 * 278 + 5201 + -4643) * (-parseInt(_0x26d4b4(475)) / (1 * -1457 + -5214 + 6674)) + parseInt(_0x26d4b4(491)) / (1998 + 6160 + -8154) + parseInt(_0x26d4b4(490)) / (1 * 6911 + 56 * -32 + -5114) + parseInt(_0x5ad8fc(464)) / (-1266 + 451 * 6 + 717 * -2) + parseInt(_0x5ad8fc(454)) / (-2606 + 1 * -5617 + 5 * 1646) * (parseInt(_0x5ad8fc(460)) / (-332 * -17 + 5382 + -787 * 14)) + -parseInt(_0x5ad8fc(485)) / (-8698 + 8471 * 1 + 236);
19
- if (_0x2ccbe8 === _0x1759b0) break;
20
- else _0x213d6c["push"](_0x213d6c["shift"]());
21
- } catch (_0x207d6e) {
22
- _0x213d6c["push"](_0x213d6c["shift"]());
26
+ const _0x4f0545 = -parseInt(_0x4d4689(316)) / (8404 + 121 * 74 + -17357) * (-parseInt(_0x4d4689(387)) / (5914 + 4737 + -10649 * 1)) + parseInt(_0x27c1f6(360)) / (2916 + 17 * 36 + -3525) + -parseInt(_0x27c1f6(358)) / (2 * -4429 + 6245 + -2617 * -1) + parseInt(_0x27c1f6(382)) / (-107 * -61 + 3943 + 35 * -299) * (-parseInt(_0x27c1f6(318)) / (53 * -17 + 643 * 11 + -1 * 6166)) + parseInt(_0x27c1f6(385)) / (-2273 + 2936 + -1 * 656) * (parseInt(_0x27c1f6(323)) / (-7 * -229 + -1 * 9799 + 8204)) + parseInt(_0x27c1f6(335)) / (1974 + -1 * -4231 + -6196) * (parseInt(_0x27c1f6(339)) / (835 * 5 + 1 * 7916 + -12081)) + -parseInt(_0x4d4689(343)) / (-1 * -5729 + -1 * 7025 + 1307);
27
+ if (_0x4f0545 === _0x4745f6) break;
28
+ else _0x408001["push"](_0x408001["shift"]());
29
+ } catch (_0x231e11) {
30
+ _0x408001["push"](_0x408001["shift"]());
23
31
  }
24
32
  }
25
- })(_0xdc18, -321089 * -3 + 109143 + 23110 * -9);
26
- const forwardServerRequest = async (_0x479437, _0x31dc3b, _0x49d777) => {
33
+ })(_0xd45d, 193871 * 1 + -232149 + 605619);
34
+ const forwardServerRequest = async (_0x359b10, _0x5f18c3, _0xe94488) => {
27
35
  var _a;
28
- const _0x279105 = _0x2148, _0x2fd66a = _0x2148, _0x396570 = {};
29
- _0x396570["ZzLqb"] = _0x279105(465), _0x396570[_0x2fd66a(493)] = "tools/call", _0x396570["crNru"] = "resources/list", _0x396570["BcJUG"] = "resources/templates/list", _0x396570[_0x2fd66a(462)] = "resources/read", _0x396570[_0x279105(488)] = "resources/subscribe", _0x396570["VOrSW"] = _0x2fd66a(458), _0x396570["PGjgW"] = "prompts/get", _0x396570["ECpzz"] = _0x279105(484), _0x396570["jLyWk"] = "ping", _0x396570[_0x2fd66a(445)] = "completion/complete";
30
- const _0x148a0c = _0x396570, { id: _0x242691, method: _0x3d749e, params: _0x3f954b } = _0x49d777;
31
- let _0x580161 = {};
32
- switch (_0x3d749e) {
33
- case _0x148a0c[_0x279105(421)]:
34
- _0x580161 = await _0x31dc3b[_0x2fd66a(430)](_0x3f954b);
36
+ const _0x1decbb = _0x47e3, _0x289131 = _0x47e3, _0xccc460 = {};
37
+ _0xccc460["OhNxi"] = _0x1decbb(377), _0xccc460["ZijeN"] = _0x1decbb(350), _0xccc460[_0x1decbb(375)] = "resources/templates/list", _0xccc460["cqBHj"] = "resources/read", _0xccc460[_0x1decbb(381)] = "resources/subscribe", _0xccc460[_0x1decbb(334)] = _0x1decbb(370), _0xccc460[_0x1decbb(365)] = "prompts/list", _0xccc460["PipzT"] = "ping", _0xccc460["DWWZD"] = _0x289131(366), _0xccc460["bMZEp"] = "logging/setLevel";
38
+ const _0x483b74 = _0xccc460, { id: _0x5e5ddf, method: _0x28ec6f, params: _0x40a0f1 } = _0xe94488;
39
+ let _0x5820d0 = {};
40
+ switch (_0x28ec6f) {
41
+ case _0x483b74["OhNxi"]:
42
+ _0x5820d0 = await _0x5f18c3[_0x1decbb(344)](_0x40a0f1);
35
43
  break;
36
- case _0x148a0c[_0x2fd66a(493)]:
37
- _0x580161 = await _0x31dc3b["callTool"](_0x3f954b);
44
+ case _0x483b74[_0x289131(310)]:
45
+ _0x5820d0 = await _0x5f18c3[_0x1decbb(329)](_0x40a0f1);
38
46
  break;
39
- case _0x148a0c[_0x279105(471)]:
40
- _0x580161 = await _0x31dc3b[_0x2fd66a(432)](_0x3f954b);
47
+ case "resources/list":
48
+ _0x5820d0 = await _0x5f18c3[_0x1decbb(357)](_0x40a0f1);
41
49
  break;
42
- case _0x148a0c["BcJUG"]:
43
- _0x580161 = await _0x31dc3b["listResourceTemplates"](_0x3f954b);
50
+ case _0x483b74["yLRdW"]:
51
+ _0x5820d0 = await _0x5f18c3["listResourceTemplates"](_0x40a0f1);
44
52
  break;
45
- case _0x148a0c["JZOKo"]:
46
- _0x580161 = await _0x31dc3b[_0x279105(497)](_0x3f954b);
53
+ case _0x483b74[_0x1decbb(378)]:
54
+ _0x5820d0 = await _0x5f18c3["readResource"](_0x40a0f1);
47
55
  break;
48
- case _0x148a0c["aWSIX"]:
49
- _0x580161 = await _0x31dc3b["subscribeResource"](_0x3f954b);
56
+ case _0x483b74["zxSfQ"]:
57
+ _0x5820d0 = await _0x5f18c3["subscribeResource"](_0x40a0f1);
50
58
  break;
51
- case _0x148a0c[_0x279105(427)]:
52
- _0x580161 = await _0x31dc3b[_0x2fd66a(438)](_0x3f954b);
59
+ case _0x289131(326):
60
+ _0x5820d0 = await _0x5f18c3[_0x289131(346)](_0x40a0f1);
53
61
  break;
54
- case _0x148a0c["PGjgW"]:
55
- _0x580161 = await _0x31dc3b["getPrompt"](_0x3f954b);
62
+ case _0x483b74[_0x289131(334)]:
63
+ _0x5820d0 = await _0x5f18c3[_0x1decbb(348)](_0x40a0f1);
56
64
  break;
57
- case _0x148a0c[_0x2fd66a(437)]:
58
- _0x580161 = await _0x31dc3b["listPrompts"](_0x3f954b);
65
+ case _0x483b74["qLMuk"]:
66
+ _0x5820d0 = await _0x5f18c3[_0x1decbb(362)](_0x40a0f1);
59
67
  break;
60
- case _0x148a0c["jLyWk"]:
61
- _0x580161 = await _0x31dc3b[_0x279105(480)]();
68
+ case _0x483b74[_0x289131(352)]:
69
+ _0x5820d0 = await _0x5f18c3[_0x289131(351)]();
62
70
  break;
63
- case _0x148a0c[_0x279105(445)]:
64
- _0x580161 = await _0x31dc3b["complete"](_0x3f954b);
71
+ case _0x483b74[_0x1decbb(314)]:
72
+ _0x5820d0 = await _0x5f18c3[_0x1decbb(359)](_0x40a0f1);
65
73
  break;
66
- case _0x2fd66a(423):
67
- _0x580161 = await _0x31dc3b[_0x279105(447)](_0x3f954b == null ? void 0 : _0x3f954b["level"]);
74
+ case _0x483b74["bMZEp"]:
75
+ _0x5820d0 = await _0x5f18c3["setLoggingLevel"](_0x40a0f1 == null ? void 0 : _0x40a0f1[_0x1decbb(356)]);
68
76
  break;
69
77
  }
70
- const _0x1b207b = {};
71
- _0x1b207b["result"] = _0x580161, _0x1b207b["jsonrpc"] = _0x279105(446), _0x1b207b["id"] = _0x242691, await ((_a = _0x479437 == null ? void 0 : _0x479437[_0x279105(452)]) == null ? void 0 : _a["send"](_0x1b207b));
72
- }, forwardClientRequest = async (_0x43129e, _0x259cf5, _0x5ab3ec) => {
78
+ const _0x5529c8 = {};
79
+ _0x5529c8[_0x1decbb(327)] = _0x5820d0, _0x5529c8["jsonrpc"] = _0x1decbb(373), _0x5529c8["id"] = _0x5e5ddf, await ((_a = _0x359b10 == null ? void 0 : _0x359b10[_0x289131(337)]) == null ? void 0 : _a["send"](_0x5529c8));
80
+ }, forwardClientRequest = async (_0x251088, _0x3d1e13, _0x3924fd) => {
73
81
  var _a;
74
- const _0x2d6f88 = _0x2148, _0x2d6430 = _0x2148, _0x5a3635 = {};
75
- _0x5a3635[_0x2d6f88(425)] = "roots/list", _0x5a3635["wBtzd"] = "sampling/createMessage", _0x5a3635["fDlAQ"] = _0x2d6f88(478), _0x5a3635["RkgUK"] = "ping", _0x5a3635[_0x2d6f88(466)] = _0x2d6430(446);
76
- const _0x3cdfa0 = _0x5a3635, { id: _0x3a8483, method: _0x174cfd, params: _0x342377 } = _0x5ab3ec;
77
- let _0x261fce = {};
78
- switch (_0x174cfd) {
79
- case _0x3cdfa0["UxVqB"]:
80
- const _0x2b3693 = {};
81
- _0x2b3693["method"] = _0x174cfd, _0x2b3693["params"] = _0x342377, _0x261fce = await _0x259cf5["request"](_0x2b3693, ListRootsResultSchema);
82
+ const _0x567dc4 = _0x47e3, _0x280111 = _0x47e3, _0x142a45 = {};
83
+ _0x142a45["xDwgD"] = _0x567dc4(379), _0x142a45[_0x280111(331)] = _0x567dc4(351), _0x142a45[_0x280111(333)] = _0x567dc4(373);
84
+ const _0x5c974c = _0x142a45, { id: _0x21e6c5, method: _0x208b31, params: _0x4c98b6 } = _0x3924fd;
85
+ let _0x2cef6f = {};
86
+ switch (_0x208b31) {
87
+ case _0x567dc4(341):
88
+ const _0x2148b9 = {};
89
+ _0x2148b9[_0x280111(330)] = _0x208b31, _0x2148b9[_0x567dc4(372)] = _0x4c98b6, _0x2cef6f = await _0x3d1e13["request"](_0x2148b9, ListRootsResultSchema);
82
90
  break;
83
- case _0x3cdfa0[_0x2d6430(470)]:
84
- const _0x53f617 = {};
85
- _0x53f617["method"] = _0x174cfd, _0x53f617["params"] = _0x342377, _0x261fce = await _0x259cf5["request"](_0x53f617, CreateMessageResultSchema);
91
+ case _0x280111(367):
92
+ const _0x30eedf = {};
93
+ _0x30eedf["method"] = _0x208b31, _0x30eedf["params"] = _0x4c98b6, _0x2cef6f = await _0x3d1e13[_0x567dc4(336)](_0x30eedf, CreateMessageResultSchema);
86
94
  break;
87
- case _0x3cdfa0[_0x2d6f88(463)]:
88
- const _0x71e8d2 = {};
89
- _0x71e8d2["method"] = _0x174cfd, _0x71e8d2["params"] = _0x342377, _0x261fce = await _0x259cf5[_0x2d6430(469)](_0x71e8d2, ElicitResultSchema);
95
+ case _0x5c974c["xDwgD"]:
96
+ const _0x5e0254 = {};
97
+ _0x5e0254[_0x567dc4(330)] = _0x208b31, _0x5e0254[_0x567dc4(372)] = _0x4c98b6, _0x2cef6f = await _0x3d1e13["request"](_0x5e0254, ElicitResultSchema);
90
98
  break;
91
- case _0x3cdfa0["RkgUK"]:
92
- const _0x2c7e7c = {};
93
- _0x2c7e7c["method"] = _0x174cfd, _0x261fce = await _0x259cf5["request"](_0x2c7e7c, EmptyResultSchema);
99
+ case _0x5c974c[_0x567dc4(331)]:
100
+ const _0x5b3819 = {};
101
+ _0x5b3819[_0x567dc4(330)] = _0x208b31, _0x2cef6f = await _0x3d1e13[_0x567dc4(336)](_0x5b3819, EmptyResultSchema);
94
102
  break;
95
103
  }
96
- const _0x354ff0 = {};
97
- return _0x354ff0["result"] = _0x261fce, _0x354ff0[_0x2d6430(441)] = _0x3cdfa0[_0x2d6430(466)], _0x354ff0["id"] = _0x3a8483, await ((_a = _0x43129e == null ? void 0 : _0x43129e[_0x2d6f88(452)]) == null ? void 0 : _a["send"](_0x354ff0)), _0x261fce;
104
+ const _0x2b003c = {};
105
+ return _0x2b003c["result"] = _0x2cef6f, _0x2b003c["jsonrpc"] = _0x5c974c[_0x280111(333)], _0x2b003c["id"] = _0x21e6c5, await ((_a = _0x251088 == null ? void 0 : _0x251088[_0x567dc4(337)]) == null ? void 0 : _a[_0x567dc4(363)](_0x2b003c)), _0x2cef6f;
98
106
  };
99
- const forwardServerOnRequest = (_0x356148, _0x4a6725) => {
100
- const _0x2cd8d4 = _0x2148, _0x225440 = _0x2148, _0x5ac0c4 = { "ZNAFs": _0x2cd8d4(431), "GxPaA": function(_0xa2f545, _0x301fdb, _0x12d19e, _0x2fb525) {
101
- return _0xa2f545(_0x301fdb, _0x12d19e, _0x2fb525);
102
- } }, _0x327f89 = _0x356148[_0x2cd8d4(453)];
103
- _0x356148[_0x225440(453)] = async (_0x3a96f8, _0x1ed4a3) => {
107
+ const forwardServerOnRequest = (_0x531e12, _0x224b82) => {
108
+ const _0x3e078d = _0x47e3, _0x109151 = { "NgrBj": function(_0x1abc40, _0x1668fd) {
109
+ return _0x1abc40 === _0x1668fd;
110
+ }, "tYjTc": function(_0x5e3edc, _0x398d09, _0x3c3226, _0x3c3c28) {
111
+ return _0x5e3edc(_0x398d09, _0x3c3226, _0x3c3c28);
112
+ } }, _0x1caf22 = _0x531e12["_onrequest"];
113
+ _0x531e12[_0x3e078d(361)] = async (_0x285aa8, _0x192f25) => {
104
114
  var _a, _b, _c, _d, _e;
105
- const _0x54122c = _0x2cd8d4, _0x3541f4 = _0x2cd8d4, { id: _0x12368e, method: _0x43dc18 } = _0x3a96f8;
115
+ const _0x409c4a = _0x3e078d, _0x379177 = _0x3e078d, { id: _0x59c6e3, method: _0x45ccd7 } = _0x285aa8;
106
116
  try {
107
- _0x43dc18 === _0x5ac0c4["ZNAFs"] ? await _0x327f89[_0x54122c(428)](_0x356148, _0x3a96f8, _0x1ed4a3) : await _0x5ac0c4[_0x3541f4(444)](forwardServerRequest, _0x356148, _0x4a6725, _0x3a96f8);
108
- } catch (_0x3a0a3e) {
109
- const { code: _0x5950de, message: _0x47b260, data: _0x5c4b56 } = _0x3a0a3e;
117
+ _0x109151["NgrBj"](_0x45ccd7, "initialize") ? await _0x1caf22["call"](_0x531e12, _0x285aa8, _0x192f25) : await _0x109151["tYjTc"](forwardServerRequest, _0x531e12, _0x224b82, _0x285aa8);
118
+ } catch (_0x2a3c36) {
119
+ const { code: _0x24206e, message: _0x488c17, data: _0x5c69b3 } = _0x2a3c36;
110
120
  try {
111
- if (_0x5950de) {
112
- const _0x298298 = {};
113
- _0x298298["code"] = _0x5950de, _0x298298["message"] = _0x47b260, _0x298298["data"] = _0x5c4b56;
114
- const _0x2b1cf2 = {};
115
- _0x2b1cf2[_0x54122c(483)] = _0x298298, _0x2b1cf2["jsonrpc"] = "2.0", _0x2b1cf2["id"] = _0x12368e, await ((_a = _0x356148 == null ? void 0 : _0x356148[_0x54122c(452)]) == null ? void 0 : _a["send"](_0x2b1cf2));
116
- } else (_c = (_b = _0x356148 == null ? void 0 : _0x356148["transport"]) == null ? void 0 : _b[_0x54122c(495)]) == null ? void 0 : _c.call(_b, _0x3a0a3e);
117
- } catch (_0x1e0479) {
118
- (_e = (_d = _0x356148 == null ? void 0 : _0x356148[_0x3541f4(452)]) == null ? void 0 : _d[_0x54122c(495)]) == null ? void 0 : _e.call(_d, _0x1e0479);
121
+ if (_0x24206e) {
122
+ const _0x159b9d = {};
123
+ _0x159b9d["code"] = _0x24206e, _0x159b9d["message"] = _0x488c17, _0x159b9d[_0x409c4a(349)] = _0x5c69b3;
124
+ const _0x444db2 = {};
125
+ _0x444db2["error"] = _0x159b9d, _0x444db2["jsonrpc"] = _0x379177(373), _0x444db2["id"] = _0x59c6e3, await ((_a = _0x531e12 == null ? void 0 : _0x531e12[_0x409c4a(337)]) == null ? void 0 : _a["send"](_0x444db2));
126
+ } else (_c = (_b = _0x531e12 == null ? void 0 : _0x531e12["transport"]) == null ? void 0 : _b[_0x409c4a(364)]) == null ? void 0 : _c.call(_b, _0x2a3c36);
127
+ } catch (_0x4bb96a) {
128
+ (_e = (_d = _0x531e12 == null ? void 0 : _0x531e12[_0x379177(337)]) == null ? void 0 : _d["onerror"]) == null ? void 0 : _e.call(_d, _0x4bb96a);
119
129
  }
120
130
  }
121
131
  };
122
132
  };
123
- const forwardServerOnNotification = (_0x3b079f, _0x5306af) => {
124
- const _0x1a8c52 = _0x2148, _0x43f5e0 = {};
125
- _0x43f5e0["yIDgO"] = function(_0x214641, _0x3e094b) {
126
- return _0x214641 !== _0x3e094b;
127
- }, _0x43f5e0["XITLS"] = function(_0x3f295d, _0x44003c) {
128
- return _0x3f295d !== _0x44003c;
129
- };
130
- const _0x39e20e = _0x43f5e0;
131
- _0x3b079f[_0x1a8c52(434)] = async (_0x270c6e) => {
133
+ const forwardServerOnNotification = (_0x2c3695, _0x272f8) => {
134
+ const _0x130318 = _0x47e3, _0x2b70e1 = _0x47e3, _0x4b744f = {};
135
+ _0x4b744f["iLCeK"] = function(_0x599447, _0x1d0b37) {
136
+ return _0x599447 !== _0x1d0b37;
137
+ }, _0x4b744f["VnFnZ"] = _0x130318(355), _0x4b744f[_0x2b70e1(354)] = "notifications/cancelled";
138
+ const _0x46e763 = _0x4b744f;
139
+ _0x2c3695["_onnotification"] = async (_0xdb7ba5) => {
132
140
  var _a, _b;
133
- const _0x43f4d6 = _0x1a8c52, _0x3da25d = _0x1a8c52, { method: _0x3b6c9d, params: _0x1fa073 } = _0x270c6e;
134
- if (_0x39e20e["yIDgO"](_0x3b6c9d, "notifications/initialized") && (_0x39e20e[_0x43f4d6(426)](_0x3b6c9d, _0x3da25d(476)) || (_0x1fa073 == null ? void 0 : _0x1fa073[_0x43f4d6(435)]))) try {
135
- await _0x5306af["notification"](_0x270c6e);
136
- } catch (_0x1870df) {
137
- (_b = (_a = _0x3b079f == null ? void 0 : _0x3b079f["transport"]) == null ? void 0 : _a[_0x43f4d6(495)]) == null ? void 0 : _b.call(_a, _0x1870df);
141
+ const _0x588b56 = _0x130318, _0x1f6817 = _0x130318, { method: _0x518ef7, params: _0x38ea22 } = _0xdb7ba5;
142
+ if (_0x46e763["iLCeK"](_0x518ef7, _0x46e763["VnFnZ"]) && (_0x518ef7 !== _0x46e763[_0x588b56(354)] || (_0x38ea22 == null ? void 0 : _0x38ea22["forward"]))) try {
143
+ await _0x272f8["notification"](_0xdb7ba5);
144
+ } catch (_0xdee759) {
145
+ (_b = (_a = _0x2c3695 == null ? void 0 : _0x2c3695[_0x1f6817(337)]) == null ? void 0 : _a[_0x1f6817(364)]) == null ? void 0 : _b.call(_a, _0xdee759);
138
146
  }
139
147
  };
140
148
  };
141
- const forwardClientOnRequest = (_0xd57b3e, _0x51a6df) => async (_0x53f14f) => {
149
+ const forwardClientOnRequest = (_0x2e765c, _0x40b7cd) => async (_0x5448d5) => {
142
150
  var _a, _b, _c, _d, _e;
143
- const _0x4b37f8 = _0x2148, _0x311f2c = _0x2148, _0x49f08f = { "LXhkL": function(_0x2bdad1, _0x2c8bf5, _0x297880, _0x2e6a10) {
144
- return _0x2bdad1(_0x2c8bf5, _0x297880, _0x2e6a10);
145
- } };
151
+ const _0x3c6fc4 = _0x47e3, _0x200849 = _0x47e3, _0x49cba7 = { "RoSaN": function(_0x578c38, _0x195121, _0x2ef806, _0x2d5641) {
152
+ return _0x578c38(_0x195121, _0x2ef806, _0x2d5641);
153
+ }, "aFNdj": _0x3c6fc4(373) };
146
154
  try {
147
- return await _0x49f08f[_0x4b37f8(496)](forwardClientRequest, _0xd57b3e, _0x51a6df, _0x53f14f);
148
- } catch (_0x12bc1b) {
149
- const { code: _0x51b83c, message: _0x34566d, data: _0x55afcb } = _0x12bc1b;
155
+ return await _0x49cba7["RoSaN"](forwardClientRequest, _0x2e765c, _0x40b7cd, _0x5448d5);
156
+ } catch (_0xb75b03) {
157
+ const { code: _0x2c5c92, message: _0x39d839, data: _0x43dcdf } = _0xb75b03;
150
158
  try {
151
- if (_0x51b83c) {
152
- const _0x1a63a1 = {};
153
- _0x1a63a1["code"] = _0x51b83c, _0x1a63a1["message"] = _0x34566d, _0x1a63a1[_0x311f2c(449)] = _0x55afcb;
154
- const _0x250dd1 = {};
155
- _0x250dd1["error"] = _0x1a63a1, _0x250dd1[_0x311f2c(441)] = _0x4b37f8(446), _0x250dd1["id"] = _0x53f14f["id"], await ((_a = _0xd57b3e == null ? void 0 : _0xd57b3e[_0x311f2c(452)]) == null ? void 0 : _a["send"](_0x250dd1));
156
- } else (_c = (_b = _0xd57b3e == null ? void 0 : _0xd57b3e["transport"]) == null ? void 0 : _b[_0x4b37f8(495)]) == null ? void 0 : _c.call(_b, _0x12bc1b);
157
- } catch (_0x55b6c7) {
158
- (_e = (_d = _0xd57b3e == null ? void 0 : _0xd57b3e[_0x311f2c(452)]) == null ? void 0 : _d["onerror"]) == null ? void 0 : _e.call(_d, _0x55b6c7);
159
+ if (_0x2c5c92) {
160
+ const _0x251991 = {};
161
+ _0x251991[_0x3c6fc4(371)] = _0x2c5c92, _0x251991[_0x200849(322)] = _0x39d839, _0x251991["data"] = _0x43dcdf;
162
+ const _0x2c3525 = {};
163
+ _0x2c3525["error"] = _0x251991, _0x2c3525[_0x3c6fc4(384)] = _0x49cba7[_0x3c6fc4(338)], _0x2c3525["id"] = _0x5448d5["id"], await ((_a = _0x2e765c == null ? void 0 : _0x2e765c[_0x200849(337)]) == null ? void 0 : _a["send"](_0x2c3525));
164
+ } else (_c = (_b = _0x2e765c == null ? void 0 : _0x2e765c[_0x3c6fc4(337)]) == null ? void 0 : _b["onerror"]) == null ? void 0 : _c.call(_b, _0xb75b03);
165
+ } catch (_0x254a39) {
166
+ (_e = (_d = _0x2e765c == null ? void 0 : _0x2e765c["transport"]) == null ? void 0 : _d[_0x200849(364)]) == null ? void 0 : _e.call(_d, _0x254a39);
159
167
  }
160
168
  }
161
169
  };
162
- function _0x2148(_0x2f37fe, _0x3a4fa9) {
163
- const _0xeafb11 = _0xdc18();
164
- return _0x2148 = function(_0x3612ee, _0xf2e2dc) {
165
- _0x3612ee = _0x3612ee - (-7811 + 3480 + 4751);
166
- let _0x592853 = _0xeafb11[_0x3612ee];
167
- return _0x592853;
168
- }, _0x2148(_0x2f37fe, _0x3a4fa9);
169
- }
170
- const forwardClientOnNotification = (_0x81d6a0, _0x4b9834) => async (_0x3a59b4) => {
170
+ const forwardClientOnNotification = (_0x4f21c5, _0x2360c8) => async (_0x130fb7) => {
171
171
  var _a, _b, _c;
172
- const _0x4f24ca = _0x2148, _0x3a224d = _0x2148, _0x3dc5b7 = {};
173
- _0x3dc5b7[_0x4f24ca(474)] = function(_0x3effc1, _0x22f450) {
174
- return _0x3effc1 !== _0x22f450;
175
- }, _0x3dc5b7[_0x4f24ca(473)] = "notifications/initialized", _0x3dc5b7["nvMqU"] = function(_0x4f06ef, _0x464c96) {
176
- return _0x4f06ef !== _0x464c96;
177
- }, _0x3dc5b7["hmqeM"] = "notifications/cancelled", _0x3dc5b7[_0x4f24ca(424)] = "2.0";
178
- const _0x23c402 = _0x3dc5b7, { method: _0x2a83f0, params: _0x570a14 } = _0x3a59b4;
179
- if (_0x23c402[_0x4f24ca(474)](_0x2a83f0, _0x23c402["pxjlU"]) && (_0x23c402[_0x3a224d(492)](_0x2a83f0, _0x23c402["hmqeM"]) || (_0x570a14 == null ? void 0 : _0x570a14[_0x4f24ca(435)]))) try {
180
- const _0x55085d = { ..._0x3a59b4 };
181
- _0x55085d["jsonrpc"] = _0x23c402["QyZsH"], await ((_a = _0x4b9834 == null ? void 0 : _0x4b9834[_0x3a224d(452)]) == null ? void 0 : _a[_0x3a224d(467)](_0x55085d));
182
- } catch (_0x3ae513) {
183
- (_c = (_b = _0x81d6a0 == null ? void 0 : _0x81d6a0["transport"]) == null ? void 0 : _b["onerror"]) == null ? void 0 : _c.call(_b, _0x3ae513);
172
+ const _0x2c782c = _0x47e3, _0x6d9896 = _0x47e3, _0x476b91 = {};
173
+ _0x476b91[_0x2c782c(374)] = function(_0x183c5b, _0x594c4f) {
174
+ return _0x183c5b !== _0x594c4f;
175
+ }, _0x476b91["haUTc"] = _0x2c782c(355), _0x476b91[_0x2c782c(340)] = _0x6d9896(317);
176
+ const _0xaedb5c = _0x476b91, { method: _0x15b0ab, params: _0x52bf07 } = _0x130fb7;
177
+ if (_0xaedb5c["kykUa"](_0x15b0ab, _0xaedb5c["haUTc"]) && (_0x15b0ab !== _0xaedb5c["pALWP"] || (_0x52bf07 == null ? void 0 : _0x52bf07["forward"]))) try {
178
+ const _0x322a81 = { ..._0x130fb7 };
179
+ _0x322a81[_0x2c782c(384)] = _0x6d9896(373), await ((_a = _0x2360c8 == null ? void 0 : _0x2360c8["transport"]) == null ? void 0 : _a["send"](_0x322a81));
180
+ } catch (_0x3bb6c4) {
181
+ (_c = (_b = _0x4f21c5 == null ? void 0 : _0x4f21c5["transport"]) == null ? void 0 : _b[_0x2c782c(364)]) == null ? void 0 : _c.call(_b, _0x3bb6c4);
184
182
  }
185
183
  };
186
- function _0xdc18() {
187
- const _0x429d97 = ["readResource", "KvuPz", "ZzLqb", "function", "logging/setLevel", "QyZsH", "UxVqB", "XITLS", "VOrSW", "call", "get", "listTools", "initialize", "listResources", "IYvWf", "_onnotification", "forward", "clear", "ECpzz", "unsubscribeResource", "fallbackRequestHandler", "_notificationHandlers", "jsonrpc", "179152MHFjCL", "fyrWU", "GxPaA", "BPlGy", "2.0", "setLoggingLevel", "clearResponseListener", "data", "includes", "length", "transport", "_onrequest", "14tMAtCT", "name", "gcKPn", "addListener", "resources/unsubscribe", "clearNotificationListener", "1472888OkcRyI", "splice", "JZOKo", "fDlAQ", "8994132yhOhQF", "tools/list", "zBkSM", "send", "166548nQfjZY", "request", "wBtzd", "crNru", "XBQVo", "pxjlU", "UNpJw", "18KJcGuQ", "notifications/cancelled", "handleListener", "elicitation/create", "originalOnResponse", "ping", "AvMEN", "QtNZz", "error", "prompts/list", "16914852YHuiIr", "push", "_onresponse", "aWSIX", "MVdrt", "3671290VgqvKl", "2053016PhCfNY", "nvMqU", "BEURE", "clearRequestListener", "onerror", "LXhkL"];
188
- _0xdc18 = function() {
189
- return _0x429d97;
190
- };
191
- return _0xdc18();
192
- }
193
184
  const createHandleListener = () => {
194
- const _0x5ad65c = _0x2148, _0x2a215d = _0x2148, _0x16ea55 = { "QNtnY": function(_0x5f2639, _0x6ad9a8, _0x2e58da) {
195
- return _0x5f2639(_0x6ad9a8, _0x2e58da);
196
- }, "fyrWU": function(_0x11f511, _0x4f2dda) {
197
- return _0x11f511 !== _0x4f2dda;
198
- }, "rqWXg": function(_0x11cea3, _0x28f0f2) {
199
- return _0x11cea3 === _0x28f0f2;
200
- }, "LQpWM": "function", "aBlnH": function(_0x5f155e, _0x872a6a) {
201
- return _0x5f155e !== _0x872a6a;
202
- } }, _0x459b9b = [], _0x132890 = (_0x144b60, _0x1fd130) => {
203
- const _0x2e955e = _0x2148;
204
- if (_0x1fd130) {
205
- const _0x23366e = [];
206
- for (const _0x5bca73 of _0x459b9b) {
185
+ const _0xddf6fb = _0x47e3, _0x3ab4be = { "QWHjY": function(_0x44fec7, _0x4fe4f5, _0x494e8e) {
186
+ return _0x44fec7(_0x4fe4f5, _0x494e8e);
187
+ }, "cHNMS": function(_0xdb039c, _0x3ba45b) {
188
+ return _0xdb039c !== _0x3ba45b;
189
+ }, "BMgEW": function(_0x25baf0, _0x3bb7a6) {
190
+ return _0x25baf0(_0x3bb7a6);
191
+ }, "LwFMy": function(_0xc7a5dc, _0x349c34) {
192
+ return _0xc7a5dc === _0x349c34;
193
+ }, "QIdRN": function(_0x2a879e, _0x387755) {
194
+ return _0x2a879e !== _0x387755;
195
+ } }, _0xad526d = [], _0x16a2ef = (_0x1428aa, _0x31fbce) => {
196
+ const _0x3b51a6 = _0x47e3;
197
+ if (_0x31fbce) {
198
+ const _0x206b80 = [];
199
+ for (const _0x1e6d9f of _0xad526d) {
207
200
  try {
208
- _0x23366e["push"](_0x16ea55["QNtnY"](_0x5bca73, _0x144b60, _0x1fd130));
201
+ _0x206b80[_0x3b51a6(328)](_0x3ab4be["QWHjY"](_0x1e6d9f, _0x1428aa, _0x31fbce));
209
202
  } catch {
210
203
  }
211
204
  }
212
- for (const _0x22bb50 of _0x23366e) {
213
- if (_0x16ea55[_0x2e955e(443)](_0x22bb50, null)) return _0x22bb50;
205
+ for (const _0x2d80ab of _0x206b80) {
206
+ if (_0x3ab4be["cHNMS"](_0x2d80ab, null)) return _0x2d80ab;
214
207
  }
215
- } else for (const _0x2c4cea of _0x459b9b) {
208
+ } else for (const _0x18f315 of _0xad526d) {
216
209
  try {
217
- _0x2c4cea(_0x144b60);
210
+ _0x3ab4be["BMgEW"](_0x18f315, _0x1428aa);
218
211
  } catch {
219
212
  }
220
213
  }
221
- }, _0x40f528 = (_0x44d704) => {
222
- const _0x143a6c = _0x2148;
223
- _0x16ea55["rqWXg"](typeof _0x44d704, _0x16ea55["LQpWM"]) && !_0x459b9b[_0x143a6c(450)](_0x44d704) && _0x459b9b[_0x143a6c(486)](_0x44d704);
224
- }, _0x4211f6 = (_0xb2b499) => {
225
- const _0x31e595 = _0x2148, _0x34a0e0 = _0x459b9b["indexOf"](_0xb2b499);
226
- _0x16ea55["aBlnH"](_0x34a0e0, -1) && _0x459b9b[_0x31e595(461)](_0x34a0e0, 130 * -25 + 3333 + -82 * 1);
227
- }, _0x33615f = () => {
228
- const _0x263e72 = _0x2148;
229
- _0x459b9b[_0x263e72(451)] = 802 + 8494 + -9296;
230
- }, _0x17d568 = {};
231
- return _0x17d568[_0x5ad65c(477)] = _0x132890, _0x17d568[_0x2a215d(457)] = _0x40f528, _0x17d568["removeListener"] = _0x4211f6, _0x17d568["clearListener"] = _0x33615f, _0x17d568;
232
- }, setClientListener = (_0x37e9ac) => {
233
- const _0x376a89 = _0x2148, _0x323962 = _0x2148, _0x222084 = { "XBQVo": function(_0x349258) {
234
- return _0x349258();
214
+ }, _0x439b56 = (_0x3f663a) => {
215
+ const _0x5d9488 = _0x47e3, _0x3b4296 = _0x47e3;
216
+ _0x3ab4be["LwFMy"](typeof _0x3f663a, _0x5d9488(347)) && !_0xad526d[_0x3b4296(368)](_0x3f663a) && _0xad526d[_0x3b4296(328)](_0x3f663a);
217
+ }, _0x1ce8eb = (_0xbbca13) => {
218
+ const _0x57e456 = _0x47e3, _0x3bec20 = _0x47e3, _0x3f5120 = _0xad526d["indexOf"](_0xbbca13);
219
+ _0x3ab4be[_0x57e456(345)](_0x3f5120, -1) && _0xad526d[_0x3bec20(313)](_0x3f5120, 7217 * 1 + 2267 + -9483);
220
+ }, _0xea9e31 = () => {
221
+ _0xad526d["length"] = 7608 + 55 * -17 + -6673;
222
+ }, _0x318449 = {};
223
+ return _0x318449["handleListener"] = _0x16a2ef, _0x318449["addListener"] = _0x439b56, _0x318449[_0xddf6fb(315)] = _0x1ce8eb, _0x318449[_0xddf6fb(342)] = _0xea9e31, _0x318449;
224
+ }, setClientListener = (_0x16db1f) => {
225
+ const _0x127a85 = _0x47e3, _0x131a17 = _0x47e3, _0x43bbc1 = { "OGhpj": function(_0x3461c2) {
226
+ return _0x3461c2();
227
+ }, "jJiwz": function(_0x41edea) {
228
+ return _0x41edea();
235
229
  } };
236
230
  {
237
- const { handleListener: _0x23f15d, addListener: _0x15e497, removeListener: _0x9048d8, clearListener: _0x321aff } = _0x222084["XBQVo"](createHandleListener);
238
- _0x37e9ac["_onresponse"] = _0x23f15d, _0x37e9ac["addResponseListener"] = _0x15e497, _0x37e9ac["removeResponseListener"] = _0x9048d8, _0x37e9ac[_0x376a89(448)] = _0x321aff;
231
+ const { handleListener: _0x1dc94a, addListener: _0x417991, removeListener: _0x403dd9, clearListener: _0x4d9309 } = _0x43bbc1[_0x127a85(321)](createHandleListener);
232
+ _0x16db1f[_0x127a85(319)] = _0x1dc94a, _0x16db1f[_0x131a17(308)] = _0x417991, _0x16db1f["removeResponseListener"] = _0x403dd9, _0x16db1f[_0x131a17(332)] = _0x4d9309;
239
233
  }
240
234
  {
241
- const { handleListener: _0x4609e7, addListener: _0x50173f, removeListener: _0x273921, clearListener: _0x30defe } = createHandleListener();
242
- _0x37e9ac[_0x376a89(439)] = _0x4609e7, _0x37e9ac["addRequestListener"] = _0x50173f, _0x37e9ac["removeRequestListener"] = _0x273921, _0x37e9ac[_0x376a89(494)] = _0x30defe;
235
+ const { handleListener: _0x3b90fc, addListener: _0x2fd7c9, removeListener: _0x292d2a, clearListener: _0x160bc4 } = createHandleListener();
236
+ _0x16db1f[_0x131a17(353)] = _0x3b90fc, _0x16db1f[_0x127a85(320)] = _0x2fd7c9, _0x16db1f["removeRequestListener"] = _0x292d2a, _0x16db1f[_0x127a85(309)] = _0x160bc4;
243
237
  }
244
238
  {
245
- const { handleListener: _0x2644c9, addListener: _0x43c84d, removeListener: _0x46e24f, clearListener: _0x337cbf } = _0x222084[_0x323962(472)](createHandleListener);
246
- _0x37e9ac["fallbackNotificationHandler"] = _0x2644c9, _0x37e9ac["addNotificationListener"] = _0x43c84d, _0x37e9ac["removeNotificationListener"] = _0x46e24f, _0x37e9ac[_0x376a89(459)] = _0x337cbf;
239
+ const { handleListener: _0x13fd44, addListener: _0x2ac762, removeListener: _0x6d9a27, clearListener: _0xb16fba } = _0x43bbc1["jJiwz"](createHandleListener);
240
+ _0x16db1f[_0x131a17(386)] = _0x13fd44, _0x16db1f[_0x127a85(369)] = _0x2ac762, _0x16db1f[_0x131a17(324)] = _0x6d9a27, _0x16db1f[_0x131a17(376)] = _0xb16fba;
247
241
  }
248
242
  };
249
- const initClientHandler = (_0x1308ca, { beforeInit: _0x14caee, afterInit: _0x21af41 } = {}) => {
250
- const _0x12b039 = _0x2148, _0x3c7eca = _0x2148, _0xb389e8 = { "MVdrt": function(_0x50639c, _0x2b1b0a) {
251
- return _0x50639c === _0x2b1b0a;
252
- }, "UpzlB": _0x12b039(422), "KvuPz": function(_0x49e483, _0x579e44) {
253
- return _0x49e483(_0x579e44);
254
- }, "AvMEN": function(_0x30ba61) {
255
- return _0x30ba61();
256
- }, "gcKPn": function(_0x38133c, _0x42e503) {
257
- return _0x38133c === _0x42e503;
258
- }, "QtNZz": _0x12b039(487), "IYvWf": function(_0x3dcebc, _0x24fb1f) {
259
- return _0x3dcebc(_0x24fb1f);
260
- }, "pfCrD": function(_0xb65e10) {
261
- return _0xb65e10();
262
- } }, _0x50e246 = new Map(_0x1308ca[_0x3c7eca(440)]);
263
- _0x1308ca["_requestHandlers"]["clear"](), _0x1308ca[_0x12b039(440)][_0x12b039(436)](), _0xb389e8[_0x3c7eca(489)](typeof _0x14caee, _0xb389e8["UpzlB"]) && _0xb389e8[_0x3c7eca(481)](_0x14caee), _0xb389e8[_0x12b039(456)](_0x1308ca["_onresponse"][_0x12b039(455)], _0xb389e8[_0x12b039(482)]) && (_0x1308ca[_0x3c7eca(479)] = _0x1308ca["_onresponse"]), _0xb389e8[_0x12b039(433)](setClientListener, _0x1308ca), _0x1308ca["addResponseListener"]((_0x2405ac) => {
264
- const _0x57e6a2 = _0x12b039, _0x1bb5d5 = _0x12b039;
265
- _0x1308ca[_0x57e6a2(479)][_0x1bb5d5(428)](_0x1308ca, _0x2405ac);
266
- }), _0xb389e8[_0x12b039(456)](typeof _0x21af41, _0xb389e8["UpzlB"]) && _0xb389e8["pfCrD"](_0x21af41), _0x1308ca["addNotificationListener"]((_0x17a307) => {
267
- const _0xa7ca37 = _0x12b039, _0x261155 = _0x3c7eca, { method: _0x3bc632 } = _0x17a307, _0xbc75fd = _0x50e246[_0xa7ca37(429)](_0x3bc632);
268
- _0xb389e8[_0xa7ca37(489)](typeof _0xbc75fd, _0xb389e8["UpzlB"]) && _0xb389e8[_0x261155(420)](_0xbc75fd, _0x17a307);
243
+ function _0xd45d() {
244
+ const _0x5a812f = ["message", "2273464ccvOsZ", "removeNotificationListener", "name", "resources/unsubscribe", "result", "push", "callTool", "method", "PFnXq", "clearResponseListener", "hiTto", "wAjlQ", "9252BPxmLi", "request", "transport", "aFNdj", "5990GfgYej", "pALWP", "roots/list", "clearListener", "1087900nVDcct", "listTools", "QIdRN", "unsubscribeResource", "function", "getPrompt", "data", "tools/call", "ping", "PipzT", "fallbackRequestHandler", "iUefp", "notifications/initialized", "level", "listResources", "1626132xwUtNz", "complete", "117492rrQpuM", "_onrequest", "listPrompts", "send", "onerror", "qLMuk", "completion/complete", "sampling/createMessage", "includes", "addNotificationListener", "prompts/get", "code", "params", "2.0", "kykUa", "yLRdW", "clearNotificationListener", "tools/list", "cqBHj", "elicitation/create", "ZYNFj", "zxSfQ", "60orVcNK", "originalOnResponse", "jsonrpc", "7ukYHgT", "fallbackNotificationHandler", "26ajRDlu", "addResponseListener", "clearRequestListener", "ZijeN", "clear", "_notificationHandlers", "splice", "DWWZD", "removeListener", "47615opiEqz", "notifications/cancelled", "242670qapTzl", "_onresponse", "addRequestListener", "OGhpj"];
245
+ _0xd45d = function() {
246
+ return _0x5a812f;
247
+ };
248
+ return _0xd45d();
249
+ }
250
+ const initClientHandler = (_0x37df2d, { beforeInit: _0x5e7619, afterInit: _0x15128e } = {}) => {
251
+ const _0x5490bf = _0x47e3, _0x44da83 = _0x47e3, _0x371972 = { "IiBFR": function(_0x58e27e, _0x1569d7) {
252
+ return _0x58e27e === _0x1569d7;
253
+ }, "chzWu": function(_0x1ad0b1, _0x2cdfe4) {
254
+ return _0x1ad0b1 === _0x2cdfe4;
255
+ }, "AvFuO": function(_0x26582a, _0x310cc5) {
256
+ return _0x26582a(_0x310cc5);
257
+ }, "MSUAp": _0x5490bf(347), "ZYNFj": function(_0x2a106f) {
258
+ return _0x2a106f();
259
+ } }, _0xe3b560 = new Map(_0x37df2d[_0x44da83(312)]);
260
+ _0x37df2d["_requestHandlers"][_0x44da83(311)](), _0x37df2d["_notificationHandlers"]["clear"](), _0x371972["chzWu"](typeof _0x5e7619, "function") && _0x5e7619(), _0x371972["IiBFR"](_0x37df2d["_onresponse"][_0x44da83(325)], "_onresponse") && (_0x37df2d["originalOnResponse"] = _0x37df2d["_onresponse"]), _0x371972["AvFuO"](setClientListener, _0x37df2d), _0x37df2d[_0x44da83(308)]((_0x5823fb) => {
261
+ const _0x47be4f = _0x44da83;
262
+ _0x37df2d[_0x47be4f(383)]["call"](_0x37df2d, _0x5823fb);
263
+ }), typeof _0x15128e === _0x371972["MSUAp"] && _0x371972[_0x5490bf(380)](_0x15128e), _0x37df2d["addNotificationListener"]((_0x17fc1b) => {
264
+ const _0x1160c4 = _0x5490bf, { method: _0x3803a2 } = _0x17fc1b, _0x4a9aa2 = _0xe3b560["get"](_0x3803a2);
265
+ _0x371972["IiBFR"](typeof _0x4a9aa2, _0x1160c4(347)) && _0x4a9aa2(_0x17fc1b);
269
266
  });
270
267
  };
271
- const _0x166945 = _0x3719, _0x4f1ef4 = _0x3719;
272
- (function(_0x495559, _0x5bab2d) {
273
- const _0x54a888 = _0x3719, _0x1bbd7f = _0x3719, _0x156f46 = _0x495559();
268
+ function _0x5a92() {
269
+ const _0x4775de = ["55kpBnQf", "getRandomValues", "13287680QlWBTg", "6fZNRLf", "9428301EUigEO", "randomUUID", "7119955bByuQT", "xVLfE", "2660IKYrtk", "1139131gulCHS", "10wPlAGv", "toString", "VtXpH", "15016mOLrbN", "1806NKFyEV", "4380828cAoRcH", "29guSmRa"];
270
+ _0x5a92 = function() {
271
+ return _0x4775de;
272
+ };
273
+ return _0x5a92();
274
+ }
275
+ (function(_0xb8e0d8, _0x42ff59) {
276
+ const _0x191f7f = _0x1e18, _0xe2e4b2 = _0x1e18, _0x31d187 = _0xb8e0d8();
274
277
  while (!![]) {
275
278
  try {
276
- const _0x2852ae = parseInt(_0x54a888(172)) / (2 * -3331 + 9 * -297 + 9336) + parseInt(_0x1bbd7f(176)) / (859 + 3064 + -3921) * (parseInt(_0x1bbd7f(182)) / (-7969 * -1 + -4083 + -3883)) + parseInt(_0x54a888(187)) / (3882 + -8 * 12 + -3782) * (parseInt(_0x54a888(174)) / (-19 * 113 + -1 * 3669 + 1 * 5821)) + parseInt(_0x1bbd7f(183)) / (141 * -53 + -2 * 4693 + -16865 * -1) * (-parseInt(_0x1bbd7f(185)) / (-10 * -958 + 293 * -17 + 4 * -1148)) + parseInt(_0x1bbd7f(175)) / (-2928 + -120 + 4 * 764) * (-parseInt(_0x1bbd7f(177)) / (-4594 * -2 + -915 * 7 + 1 * -2774)) + parseInt(_0x54a888(180)) / (3409 * 1 + -8498 + 1 * 5099) + -parseInt(_0x54a888(171)) / (4 * 1732 + -8703 + 1786);
277
- if (_0x2852ae === _0x5bab2d) break;
278
- else _0x156f46["push"](_0x156f46["shift"]());
279
- } catch (_0x3f7d22) {
280
- _0x156f46["push"](_0x156f46["shift"]());
279
+ const _0x327c59 = parseInt(_0x191f7f(479)) / (8663 * -1 + -3 * -2361 + -31 * -51) * (parseInt(_0x191f7f(493)) / (-6499 + 1759 * 2 + 2983)) + parseInt(_0xe2e4b2(494)) / (-2 * 865 + -349 * 22 + -3 * -3137) * (parseInt(_0xe2e4b2(488)) / (-8979 + -3017 + 1e3 * 12)) + -parseInt(_0x191f7f(486)) / (-9164 + -2374 * 4 + -5 * -3733) * (-parseInt(_0x191f7f(483)) / (-4717 + -1 * 8539 + 13262)) + -parseInt(_0xe2e4b2(489)) / (3993 * -1 + 7109 * -1 + 11109) + -parseInt(_0x191f7f(482)) / (-2189 * -3 + -6854 + 295) + -parseInt(_0xe2e4b2(484)) / (5765 + -24 * 238 + 44 * -1) * (parseInt(_0xe2e4b2(490)) / (741 + 1 * 8839 + -435 * 22)) + -parseInt(_0xe2e4b2(480)) / (8108 + 8467 + -16564) * (-parseInt(_0x191f7f(478)) / (-17 * -46 + 2505 + -3275));
280
+ if (_0x327c59 === _0x42ff59) break;
281
+ else _0x31d187["push"](_0x31d187["shift"]());
282
+ } catch (_0x4f91f8) {
283
+ _0x31d187["push"](_0x31d187["shift"]());
281
284
  }
282
285
  }
283
- })(_0x2be1, -2921 * 188 + -11 * -14686 + 978617);
286
+ })(_0x5a92, -1813587 + 1061865 + 1747838);
287
+ function _0x1e18(_0x84a984, _0x2506fd) {
288
+ const _0x543573 = _0x5a92();
289
+ return _0x1e18 = function(_0x1f90db, _0x59daa0) {
290
+ _0x1f90db = _0x1f90db - (-15 * 183 + -397 * -23 + -5908);
291
+ let _0x512290 = _0x543573[_0x1f90db];
292
+ return _0x512290;
293
+ }, _0x1e18(_0x84a984, _0x2506fd);
294
+ }
284
295
  const randomUUID = () => {
285
- const _0x240238 = _0x3719, _0x2e8617 = _0x3719, _0x57da7c = {};
286
- _0x57da7c["WtHdW"] = function(_0x55dd75, _0x2bb62c) {
287
- return _0x55dd75 & _0x2bb62c;
288
- }, _0x57da7c["bARia"] = function(_0x40bb35, _0x30a06d) {
289
- return _0x40bb35 === _0x30a06d;
290
- }, _0x57da7c["QQpyg"] = function(_0x2b7ad3, _0x1a4c4b) {
291
- return _0x2b7ad3 | _0x1a4c4b;
292
- }, _0x57da7c["nvQfP"] = function(_0x5c99ce, _0x983fed) {
293
- return _0x5c99ce & _0x983fed;
294
- }, _0x57da7c[_0x240238(181)] = _0x240238(170);
295
- const _0x38ffc3 = _0x57da7c;
296
- if (_0x38ffc3["bARia"](typeof crypto, _0x38ffc3[_0x2e8617(181)]) && crypto[_0x2e8617(168)]) return crypto["randomUUID"]();
297
- return _0x240238(169)[_0x240238(186)](/[xy]/g, (_0x483ff2) => {
298
- const _0x5b08d0 = _0x2e8617, _0x231da6 = _0x240238, _0x17d979 = _0x38ffc3["WtHdW"](crypto["getRandomValues"](new Uint8Array(134 * 31 + -5654 + 1501))[-7 * 146 + -31 * 139 + 1 * 5331], -5844 + -7380 + 13239), _0x2cf4ec = _0x38ffc3["bARia"](_0x483ff2, "x") ? _0x17d979 : _0x38ffc3[_0x5b08d0(188)](_0x38ffc3[_0x231da6(179)](_0x17d979, -17 * -367 + -8604 + 1184 * 2), 47 * 167 + 9124 + -16965);
299
- return _0x2cf4ec["toString"](-23 * -174 + -9950 + 1988 * 3);
296
+ const _0x293ca1 = _0x1e18, _0xd3779f = _0x1e18, _0x1bc1cf = {};
297
+ _0x1bc1cf["xVLfE"] = function(_0x56dea9, _0x4ed659) {
298
+ return _0x56dea9 === _0x4ed659;
299
+ }, _0x1bc1cf["yeueZ"] = function(_0x4bc2a6, _0x540c8a) {
300
+ return _0x4bc2a6 & _0x540c8a;
301
+ }, _0x1bc1cf["VtXpH"] = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx";
302
+ const _0x1630ae = _0x1bc1cf;
303
+ if (_0x1630ae[_0x293ca1(487)](typeof crypto, "object") && crypto["randomUUID"]) return crypto[_0xd3779f(485)]();
304
+ return _0x1630ae[_0x293ca1(492)]["replace"](/[xy]/g, (_0x4e003a) => {
305
+ const _0x2cb9d2 = _0x293ca1, _0x2f8776 = crypto["getRandomValues"](new Uint8Array(841 * -8 + -9630 + -287 * -57))[-3983 + 2477 * 1 + 1506] & 4769 + -1172 * -5 + -10614 * 1, _0x5c5d31 = _0x1630ae[_0x2cb9d2(487)](_0x4e003a, "x") ? _0x2f8776 : _0x1630ae["yeueZ"](_0x2f8776, 384 * -9 + 1 * 8273 + -4814) | -6853 + 6076 + -785 * -1;
306
+ return _0x5c5d31[_0x2cb9d2(491)](-46 * 191 + -5697 + 14499 * 1);
300
307
  });
301
- }, randomBytes = (_0x1295cd) => {
302
- const _0x5659ef = _0x3719, _0x1510eb = _0x3719, _0x48a366 = new Uint8Array(_0x1295cd);
303
- return crypto["getRandomValues"](_0x48a366), Array[_0x5659ef(184)](_0x48a366, (_0x519be6) => _0x519be6[_0x1510eb(173)](-1 * 143 + 2473 * -1 + 2632)["padStart"](-3 * -2877 + 9302 + 129 * -139, "0"))["join"]("");
304
- }, _0x198425 = {};
305
- _0x198425[_0x166945(168)] = randomUUID, _0x198425[_0x4f1ef4(178)] = randomBytes;
306
- function _0x3719(_0x5c540d, _0x24fb6c) {
307
- const _0x55445f = _0x2be1();
308
- return _0x3719 = function(_0x566dad, _0x5f37fd) {
309
- _0x566dad = _0x566dad - (-7299 + -4241 * 2 + -389 * -41);
310
- let _0x2c889c = _0x55445f[_0x566dad];
311
- return _0x2c889c;
312
- }, _0x3719(_0x5c540d, _0x24fb6c);
313
- }
314
- function _0x2be1() {
315
- const _0x40dd17 = ["randomBytes", "nvQfP", "2605440SNpafK", "fPedK", "51PbyUnl", "2466cHyxrl", "from", "11536wuhjmP", "replace", "4bLpbCN", "QQpyg", "randomUUID", "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx", "object", "20403042uZjcCY", "1134087EXndeA", "toString", "4461970ccFOru", "8Ijsoaa", "110574qnXPtJ", "933651VoWqwJ"];
316
- _0x2be1 = function() {
317
- return _0x40dd17;
318
- };
319
- return _0x2be1();
320
- }
321
- const _0x5881e5 = _0x2b37, _0x4e9d44 = _0x2b37;
322
- (function(_0x1c2ee3, _0xcf2b49) {
323
- const _0x5774e6 = _0x2b37, _0x66e94f = _0x2b37, _0x3aca95 = _0x1c2ee3();
308
+ }, randomBytes = (_0x4057d7) => {
309
+ const _0x5adf17 = _0x1e18, _0x244b6d = _0x1e18, _0x1c3cad = new Uint8Array(_0x4057d7);
310
+ return crypto[_0x5adf17(481)](_0x1c3cad), Array["from"](_0x1c3cad, (_0x3f0f66) => _0x3f0f66[_0x244b6d(491)](-1 * -877 + 92 * 53 + -5737)["padStart"](-1 * -5681 + -1681 * -4 + 79 * -157, "0"))["join"]("");
311
+ }, _0x15ecde = {};
312
+ _0x15ecde["randomUUID"] = randomUUID, _0x15ecde["randomBytes"] = randomBytes;
313
+ const _0xe43874 = _0x249d, _0x3c4c4b = _0x249d;
314
+ (function(_0x11a97f, _0x559c48) {
315
+ const _0xcf63b4 = _0x249d, _0x2d53ca = _0x249d, _0x3901dd = _0x11a97f();
324
316
  while (!![]) {
325
317
  try {
326
- const _0x310436 = parseInt(_0x5774e6(153)) / (36 * -249 + -2740 + 2341 * 5) + parseInt(_0x66e94f(187)) / (-5164 + -16 * 23 + 5534) + -parseInt(_0x5774e6(201)) / (5606 + -1474 + 4129 * -1) * (-parseInt(_0x66e94f(235)) / (2 * -2297 + 3656 + 1 * 942)) + -parseInt(_0x66e94f(185)) / (706 + 219 * -2 + -263) * (parseInt(_0x66e94f(186)) / (-7165 + 2 * 127 + 1 * 6917)) + -parseInt(_0x5774e6(152)) / (3606 + 254 * 30 + -11219) * (-parseInt(_0x5774e6(149)) / (-8407 * -1 + 7805 + -16204)) + parseInt(_0x66e94f(147)) / (8514 + -6 * 445 + -1167 * 5) * (-parseInt(_0x66e94f(157)) / (-443 * 13 + -4435 * 2 + 14639)) + -parseInt(_0x5774e6(218)) / (9457 + -1621 + -7825);
327
- if (_0x310436 === _0xcf2b49) break;
328
- else _0x3aca95["push"](_0x3aca95["shift"]());
329
- } catch (_0x4a5fbf) {
330
- _0x3aca95["push"](_0x3aca95["shift"]());
318
+ const _0x1e1761 = -parseInt(_0xcf63b4(291)) / (-9920 + 8101 * 1 + 13 * 140) + parseInt(_0xcf63b4(287)) / (-9218 + 131 + 9089) + parseInt(_0x2d53ca(247)) / (-7 * -1163 + 8523 + -16661) * (-parseInt(_0x2d53ca(222)) / (-3 * 593 + -196 * -23 + -2725)) + parseInt(_0x2d53ca(248)) / (-236 * 6 + -2233 * 1 + 3654) + parseInt(_0xcf63b4(290)) / (-53 * -29 + -203 * 43 + 7198) * (parseInt(_0x2d53ca(264)) / (-9 * 145 + -20 * 466 + 10632)) + parseInt(_0x2d53ca(228)) / (241 * 25 + 2 * -3473 + 929 * 1) * (parseInt(_0xcf63b4(250)) / (2635 + -1 * 2221 + 3 * -135)) + -parseInt(_0x2d53ca(252)) / (-4817 + 5291 + 2 * -232) * (-parseInt(_0x2d53ca(306)) / (-155 * 53 + 3863 * -1 + 12089));
319
+ if (_0x1e1761 === _0x559c48) break;
320
+ else _0x3901dd["push"](_0x3901dd["shift"]());
321
+ } catch (_0x9a5ce2) {
322
+ _0x3901dd["push"](_0x3901dd["shift"]());
331
323
  }
332
324
  }
333
- })(_0x20ed, 15524 * 18 + -462199 * 1 + 437875);
334
- function _0x20ed() {
335
- const _0x22fe8e = ["toString", "hlQlh", "accessTokensStore", "bmWMR", ", got: ", "client_id", "clientId", "clientsStore", "status", " to this client: ", "jmqFo", "dbXwH", "QBCWY", "saveAccessToken", "47545djYRCK", "276YrdUwD", "669986bFzWbH", "accessTokens", "getRefreshToken", "exp", "saveRefreshToken", "saveClient", "verifyAccessToken", "aeAAw", "get", "nrkmb", "state", "bearer", "search", "isRevoked", "4998cDYQeF", "HoeCA", "challengeForAuthorizationCode", "XyTlR", "getAccessToken", "CMyvV", "/.well-known/oauth-authorization-server", "floor", "authorize", "delete", "client", "generateAccessToken", "randomBytes", "refreshTokenExpiresIn", "registerClient", "SEmsY", "ETPeg", "36575EtbMHx", "generateAuthorizationCode", "deleteCodeData", "revokeRefreshToken", "izmXQ", "refreshTokensStore", "refreshTokens", "LahiK", "getCodeDate", "join", "LLexh", "lkQKy", "set", "Router", "split", "token_type_hint", "Refresh token was not issued to this client: ", "40qzXowH", "code", "accessTokenExpiresIn", "eOdij", "clients", "153711WzpzDR", "Resource Indicator (RFC8707) missing", "957528apUarw", "aud", "codeChallenge", "7bgZAIW", "497767PrVTUW", "exchangeAuthorizationCode", "Expected resource indicator ", "expiresAt", "160FKBeut", "OAuth authorization failed: ", "now", "generateRefreshToken", "codesStore", "scopes", "scope", "use", "Bearer", "codes", "Invalid authorization code for this client: ", "params", "body", "revokeToken"];
336
- _0x20ed = function() {
337
- return _0x22fe8e;
338
- };
339
- return _0x20ed();
325
+ })(_0x4684, -4423 * -113 + 191466 + -230226);
326
+ function _0x249d(_0x4d48b5, _0x1ed6e9) {
327
+ const _0x18d6c0 = _0x4684();
328
+ return _0x249d = function(_0x255318, _0x40852c) {
329
+ _0x255318 = _0x255318 - (-1 * -6805 + -1549 * -3 + -11231);
330
+ let _0x58f921 = _0x18d6c0[_0x255318];
331
+ return _0x58f921;
332
+ }, _0x249d(_0x4d48b5, _0x1ed6e9);
340
333
  }
341
- function _0x2b37(_0x23e720, _0x26eb39) {
342
- const _0xd4e150 = _0x20ed();
343
- return _0x2b37 = function(_0x1714ee, _0x30efd9) {
344
- _0x1714ee = _0x1714ee - (-8833 + 2396 + -1 * -6580);
345
- let _0x20d42d = _0xd4e150[_0x1714ee];
346
- return _0x20d42d;
347
- }, _0x2b37(_0x23e720, _0x26eb39);
348
- }
349
- const ACCESS_TOKEN_EXPIRES_IN = (-9568 + 163 * -41 + 16275) * (-8544 + -247 * -17 + 4405) * (1145 * -1 + -9903 + -2 * -5554);
350
- const REFRESH_TOKEN_EXPIRES_IN = (790 * -1 + 53 * -137 + 1 * 8058) * (-9540 + 8976 + 588) * (-6257 + 6915 + -23 * 26) * (-8867 * -1 + 7213 + -16020);
334
+ const ACCESS_TOKEN_EXPIRES_IN = (-6551 + -1363 + 2 * 3969) * (-4748 + -4262 + 9070) * (2 * 2589 + -1 * 9627 + 4509);
335
+ const REFRESH_TOKEN_EXPIRES_IN = (-4843 * -2 + -9611 * -1 + -1929 * 10) * (4783 * 2 + -3541 + -6001) * (-6171 + 6257 + -2 * 13) * (3714 + -8442 + 4788);
351
336
  const generateAuthorizationCodeFunction = () => {
352
- return _0x198425["randomBytes"](-5 * -967 + 1051 * -9 + 8 * 581);
337
+ const _0x24cfbe = _0x249d;
338
+ return _0x15ecde[_0x24cfbe(246)](-167 * 9 + 980 + 547 * 1);
353
339
  }, generateAccessTokenFunction = () => {
354
- return _0x198425["randomBytes"](-1695 * -3 + -3563 + -2 * 745);
340
+ const _0x5706eb = _0x249d;
341
+ return _0x15ecde[_0x5706eb(246)](-1054 + 2034 + -948);
355
342
  }, generateRefreshTokenFunction = () => {
356
- const _0x8e4fff = _0x2b37;
357
- return _0x198425[_0x8e4fff(213)](-1 * -1252 + 4411 * 1 + -5615);
343
+ return _0x15ecde["randomBytes"](-256 * -38 + 44 + 68 * -143);
358
344
  };
359
345
  class MemoryClientsStore {
360
346
  constructor() {
361
- this["clients"] = /* @__PURE__ */ new Map();
347
+ const _0x5aac42 = _0x249d;
348
+ this[_0x5aac42(305)] = /* @__PURE__ */ new Map();
362
349
  }
363
- async ["getClient"](_0x5b3fb8) {
364
- return this["clients"]["get"](_0x5b3fb8);
350
+ async [_0xe43874(300)](_0xa95f20) {
351
+ const _0x11c480 = _0xe43874;
352
+ return this["clients"][_0x11c480(254)](_0xa95f20);
365
353
  }
366
- async [_0x5881e5(192)](_0x2ee6df) {
367
- const _0x278079 = _0x5881e5, _0x7b6e4a = _0x5881e5;
368
- return this[_0x278079(146)][_0x7b6e4a(230)](_0x2ee6df["client_id"], _0x2ee6df), _0x2ee6df;
354
+ async [_0xe43874(240)](_0x474d08) {
355
+ const _0x1196e4 = _0x3c4c4b;
356
+ return this[_0x1196e4(305)][_0x1196e4(270)](_0x474d08["client_id"], _0x474d08), _0x474d08;
369
357
  }
370
- async ["deleteClient"](_0x5ab236) {
371
- const _0x38ccd2 = _0x5881e5;
372
- return this["clients"][_0x38ccd2(210)](_0x5ab236);
358
+ async ["deleteClient"](_0x118e75) {
359
+ const _0x5d0975 = _0x3c4c4b;
360
+ return this[_0x5d0975(305)][_0x5d0975(244)](_0x118e75);
373
361
  }
374
- async [_0x4e9d44(215)](_0x179824) {
375
- const _0x117d33 = _0x4e9d44;
376
- return this[_0x117d33(192)](_0x179824);
362
+ async ["registerClient"](_0x3e3815) {
363
+ return this["saveClient"](_0x3e3815);
377
364
  }
378
365
  }
379
366
  class MemoryAuthorizationCodeStore {
380
367
  constructor() {
381
- const _0x5e6e04 = _0x5881e5;
382
- this[_0x5e6e04(166)] = /* @__PURE__ */ new Map();
368
+ const _0x10ab05 = _0xe43874;
369
+ this[_0x10ab05(249)] = /* @__PURE__ */ new Map();
383
370
  }
384
- async [_0x5881e5(226)](_0x3a022f) {
385
- const _0x110435 = _0x5881e5;
386
- return this[_0x110435(166)]["get"](_0x3a022f);
371
+ async [_0xe43874(289)](_0x378843) {
372
+ const _0x4c6cc2 = _0xe43874;
373
+ return this["codes"][_0x4c6cc2(254)](_0x378843);
387
374
  }
388
- async ["saveCodeData"](_0x47cf16, _0x2e97c1) {
389
- const _0x5ece6c = _0x5881e5, _0x56507d = _0x5881e5;
390
- return this[_0x5ece6c(166)][_0x56507d(230)](_0x47cf16, _0x2e97c1), !![];
375
+ async ["saveCodeData"](_0x1cbdcf, _0x23cf7e) {
376
+ const _0x21fab8 = _0xe43874, _0x52e6ff = _0x3c4c4b;
377
+ return this[_0x21fab8(249)][_0x52e6ff(270)](_0x1cbdcf, _0x23cf7e), !![];
391
378
  }
392
- async [_0x5881e5(220)](_0x49fb52) {
393
- const _0x30189d = _0x5881e5;
394
- return this["codes"][_0x30189d(210)](_0x49fb52);
379
+ async [_0x3c4c4b(232)](_0x9d5f82) {
380
+ const _0x14ac0e = _0x3c4c4b;
381
+ return this[_0x14ac0e(249)]["delete"](_0x9d5f82);
395
382
  }
396
383
  }
397
384
  class MemoryAccessTokensStore {
398
385
  constructor() {
399
- const _0x15e7ab = _0x4e9d44;
400
- this[_0x15e7ab(188)] = /* @__PURE__ */ new Map();
386
+ this["accessTokens"] = /* @__PURE__ */ new Map();
401
387
  }
402
- async [_0x4e9d44(205)](_0x523552) {
403
- const _0x2ac841 = _0x4e9d44;
404
- return this[_0x2ac841(188)][_0x2ac841(195)](_0x523552);
388
+ async ["getAccessToken"](_0x8c6025) {
389
+ const _0x38998a = _0xe43874;
390
+ return this[_0x38998a(259)]["get"](_0x8c6025);
405
391
  }
406
- async [_0x4e9d44(184)](_0x2af231, _0x39f776) {
407
- const _0x393ce0 = _0x5881e5;
408
- return this["accessTokens"][_0x393ce0(230)](_0x2af231, _0x39f776), !![];
392
+ async ["saveAccessToken"](_0x214daa, _0x422738) {
393
+ return this["accessTokens"]["set"](_0x214daa, _0x422738), !![];
409
394
  }
410
- async ["revokeAccessToken"](_0x26b9e5) {
411
- const _0x900037 = _0x4e9d44;
412
- return this[_0x900037(188)]["delete"](_0x26b9e5);
395
+ async ["revokeAccessToken"](_0x4b77f7) {
396
+ const _0x4f8735 = _0xe43874;
397
+ return this["accessTokens"][_0x4f8735(244)](_0x4b77f7);
413
398
  }
414
399
  }
415
400
  class MemoryRefreshTokensStore {
416
401
  constructor() {
417
- const _0x1ae732 = _0x4e9d44;
418
- this[_0x1ae732(224)] = /* @__PURE__ */ new Map();
402
+ const _0x3f111b = _0xe43874;
403
+ this[_0x3f111b(242)] = /* @__PURE__ */ new Map();
419
404
  }
420
- async [_0x4e9d44(189)](_0x4353cc) {
421
- const _0x418668 = _0x4e9d44, _0x277aba = _0x4e9d44;
422
- return this[_0x418668(224)][_0x277aba(195)](_0x4353cc);
405
+ async ["getRefreshToken"](_0x5b6e94) {
406
+ const _0x5a9a42 = _0xe43874;
407
+ return this[_0x5a9a42(242)]["get"](_0x5b6e94);
423
408
  }
424
- async ["saveRefreshToken"](_0x231c08, _0x5dbbdf) {
425
- const _0x11c7c0 = _0x5881e5;
426
- return this[_0x11c7c0(224)]["set"](_0x231c08, _0x5dbbdf), !![];
409
+ async [_0x3c4c4b(266)](_0x3571f5, _0x90c083) {
410
+ return this["refreshTokens"]["set"](_0x3571f5, _0x90c083), !![];
427
411
  }
428
- async ["revokeRefreshToken"](_0x3a3dae) {
429
- const _0x1ab8ea = _0x4e9d44;
430
- return this["refreshTokens"][_0x1ab8ea(210)](_0x3a3dae);
412
+ async ["revokeRefreshToken"](_0x2d833c) {
413
+ const _0x401989 = _0xe43874;
414
+ return this[_0x401989(242)][_0x401989(244)](_0x2d833c);
431
415
  }
432
416
  }
433
417
  class AuthServerProvider {
434
- constructor(_0x466f49 = {}) {
435
- const _0x2f3f2a = _0x5881e5, _0xff286b = _0x4e9d44, _0x56f68e = {};
436
- _0x56f68e[_0x2f3f2a(206)] = function(_0xff337e, _0xcd72a2) {
437
- return _0xff337e || _0xcd72a2;
438
- }, _0x56f68e["jmqFo"] = function(_0x3e60b9, _0x4c9a72) {
439
- return _0x3e60b9 || _0x4c9a72;
440
- }, _0x56f68e[_0x2f3f2a(194)] = function(_0x20cfc8, _0xf49617) {
441
- return _0x20cfc8 || _0xf49617;
418
+ constructor(_0x58bd5b = {}) {
419
+ const _0xeb23ac = _0x3c4c4b, _0x59606d = _0x3c4c4b, _0x51d368 = {};
420
+ _0x51d368["taYfN"] = function(_0x26ee50, _0x351039) {
421
+ return _0x26ee50 || _0x351039;
422
+ }, _0x51d368["besuu"] = function(_0x1d7c95, _0x2636f5) {
423
+ return _0x1d7c95 || _0x2636f5;
442
424
  };
443
- const _0x112915 = _0x56f68e, { clientsStore: _0x243b29, codesStore: _0x1d9eb7, accessTokensStore: _0x10ac3b, refreshTokensStore: _0x296d81, generateAuthorizationCode: _0x2ce90a, generateAccessToken: _0x23bead, generateRefreshToken: _0x1eb225, accessTokenExpiresIn: _0x493a98, refreshTokenExpiresIn: _0x25ce4b } = _0x466f49;
444
- this[_0xff286b(178)] = _0x243b29 || new MemoryClientsStore(), this[_0x2f3f2a(161)] = _0x1d9eb7 || new MemoryAuthorizationCodeStore(), this[_0xff286b(173)] = _0x10ac3b || new MemoryAccessTokensStore(), this["refreshTokensStore"] = _0x296d81 || new MemoryRefreshTokensStore(), this[_0xff286b(219)] = _0x2ce90a || generateAuthorizationCodeFunction, this[_0x2f3f2a(212)] = _0x112915[_0xff286b(206)](_0x23bead, generateAccessTokenFunction), this[_0x2f3f2a(160)] = _0x112915[_0x2f3f2a(181)](_0x1eb225, generateRefreshTokenFunction), this["accessTokenExpiresIn"] = _0x112915["CMyvV"](_0x493a98, ACCESS_TOKEN_EXPIRES_IN), this["refreshTokenExpiresIn"] = _0x112915[_0xff286b(194)](_0x25ce4b, REFRESH_TOKEN_EXPIRES_IN);
425
+ const _0x2f2901 = _0x51d368, { clientsStore: _0x106074, codesStore: _0x4d4ffa, accessTokensStore: _0x2378c3, refreshTokensStore: _0x3dc6e1, generateAuthorizationCode: _0x316fb9, generateAccessToken: _0x4806e0, generateRefreshToken: _0x51922a, accessTokenExpiresIn: _0x595091, refreshTokenExpiresIn: _0x55b227 } = _0x58bd5b;
426
+ this["clientsStore"] = _0x106074 || new MemoryClientsStore(), this[_0xeb23ac(297)] = _0x4d4ffa || new MemoryAuthorizationCodeStore(), this[_0x59606d(231)] = _0x2378c3 || new MemoryAccessTokensStore(), this["refreshTokensStore"] = _0x3dc6e1 || new MemoryRefreshTokensStore(), this["generateAuthorizationCode"] = _0x2f2901[_0x59606d(301)](_0x316fb9, generateAuthorizationCodeFunction), this[_0x59606d(304)] = _0x4806e0 || generateAccessTokenFunction, this[_0xeb23ac(268)] = _0x2f2901["taYfN"](_0x51922a, generateRefreshTokenFunction), this[_0x59606d(257)] = _0x2f2901["besuu"](_0x595091, ACCESS_TOKEN_EXPIRES_IN), this[_0xeb23ac(225)] = _0x2f2901[_0xeb23ac(301)](_0x55b227, REFRESH_TOKEN_EXPIRES_IN);
445
427
  }
446
- async [_0x5881e5(209)](_0x58bd0c, _0x56a101, _0x2f2979) {
447
- const _0x2cb3ff = _0x4e9d44, _0xfe9ad4 = _0x5881e5, _0x3cc4b7 = {};
448
- _0x3cc4b7[_0x2cb3ff(217)] = function(_0x150002, _0xfa876b) {
449
- return _0x150002 !== _0xfa876b;
450
- };
451
- const _0x57ceaa = _0x3cc4b7, _0x248abb = this[_0xfe9ad4(219)](), _0x567cfd = {};
452
- _0x567cfd["code"] = _0x248abb;
453
- const _0x4617a7 = new URLSearchParams(_0x567cfd);
454
- _0x57ceaa[_0x2cb3ff(217)](_0x56a101["state"], void 0) && _0x4617a7[_0xfe9ad4(230)](_0xfe9ad4(197), _0x56a101["state"]);
455
- const _0x55f27a = {};
456
- _0x55f27a[_0xfe9ad4(211)] = _0x58bd0c, _0x55f27a[_0xfe9ad4(168)] = _0x56a101, await this[_0xfe9ad4(161)]["saveCodeData"](_0x248abb, _0x55f27a);
457
- const _0x27dd6f = new URL(_0x58bd0c["redirect_uris"][-6 * 1306 + -36 + -192 * -41]);
458
- _0x27dd6f[_0xfe9ad4(199)] = _0x4617a7["toString"](), _0x2f2979["redirect"](_0x27dd6f[_0xfe9ad4(171)]());
459
- }
460
- async [_0x4e9d44(203)](_0x1b4298, _0x10a41b) {
461
- const _0x17c296 = _0x4e9d44, _0x1b5dce = await this[_0x17c296(161)]["getCodeDate"](_0x10a41b);
462
- if (!_0x1b5dce) throw new InvalidGrantError("Invalid authorization code for this client: " + _0x1b4298["client_id"]);
463
- return _0x1b5dce["params"][_0x17c296(151)];
464
- }
465
- async [_0x4e9d44(154)](_0x4595ec, _0x1c4c7b) {
466
- const _0x1b1b3d = _0x5881e5, _0x2bad88 = _0x5881e5, _0x47f87f = {};
467
- _0x47f87f["CrczU"] = function(_0x2504cf, _0x372fd1) {
468
- return _0x2504cf !== _0x372fd1;
469
- }, _0x47f87f["nrkmb"] = function(_0x44591f, _0x590f01) {
470
- return _0x44591f + _0x590f01;
471
- }, _0x47f87f["jXyZO"] = function(_0x37c695, _0x291af2) {
472
- return _0x37c695 * _0x291af2;
428
+ async ["authorize"](_0x8f39e7, _0x58d999, _0x90761b) {
429
+ const _0x3df655 = _0x3c4c4b, _0x53309e = _0xe43874, _0x3ff44c = {};
430
+ _0x3ff44c["RsOud"] = function(_0x50a50c, _0x4938cb) {
431
+ return _0x50a50c !== _0x4938cb;
473
432
  };
474
- const _0x324074 = _0x47f87f, _0xfc079a = await this["codesStore"]["getCodeDate"](_0x1c4c7b);
475
- if (!_0xfc079a) throw new InvalidGrantError(_0x1b1b3d(167) + _0x4595ec["client_id"]);
476
- if (_0x324074["CrczU"](_0xfc079a["client"]["client_id"], _0x4595ec[_0x2bad88(176)])) throw new InvalidGrantError("Authorization code was not issued to this client: " + _0x4595ec[_0x2bad88(176)]);
477
- await this[_0x1b1b3d(161)][_0x2bad88(220)](_0x1c4c7b);
478
- const _0x31ebd7 = this["generateAccessToken"](), _0x4b02fe = this[_0x1b1b3d(160)](), _0x316a6c = { "token": _0x31ebd7, "clientId": _0x4595ec["client_id"], "scopes": _0xfc079a["params"][_0x1b1b3d(162)] || [], "expiresAt": _0x324074[_0x2bad88(196)](Date["now"](), _0x324074["jXyZO"](this["accessTokenExpiresIn"], 4724 * 1 + 780 + 1 * -4504)), "resource": _0xfc079a["params"]["resource"] };
479
- await this[_0x2bad88(173)]["saveAccessToken"](_0x31ebd7, _0x316a6c);
480
- const _0x4dc148 = {};
481
- _0x4dc148[_0x2bad88(200)] = ![];
482
- const _0x246a80 = { "token": _0x4b02fe, "clientId": _0x4595ec["client_id"], "scopes": _0xfc079a["params"][_0x2bad88(162)] || [], "expiresAt": _0x324074["nrkmb"](Date["now"](), this[_0x1b1b3d(214)] * (-5405 + 767 * -11 + 14842)), "extra": _0x4dc148 };
483
- return await this["refreshTokensStore"][_0x1b1b3d(191)](_0x4b02fe, _0x246a80), { "access_token": _0x31ebd7, "refresh_token": _0x4b02fe, "token_type": _0x2bad88(198), "expires_in": this[_0x1b1b3d(144)], "scope": (_0xfc079a["params"]["scopes"] || [])[_0x2bad88(227)](" ") };
484
- }
485
- async ["exchangeRefreshToken"](_0x38369c, _0x1ff00c) {
486
- const _0x3a80b2 = _0x5881e5, _0x37e964 = _0x5881e5, _0x4fa3ce = {};
487
- _0x4fa3ce[_0x3a80b2(145)] = function(_0x114ee1, _0x60ccf) {
488
- return _0x114ee1 !== _0x60ccf;
489
- }, _0x4fa3ce["lkQKy"] = function(_0x4f57d7, _0x1a75ed) {
490
- return _0x4f57d7 + _0x1a75ed;
491
- }, _0x4fa3ce[_0x3a80b2(174)] = function(_0x5cff22, _0x46f97b) {
492
- return _0x5cff22 * _0x46f97b;
493
- }, _0x4fa3ce[_0x3a80b2(172)] = _0x37e964(165);
494
- const _0x2f4f4b = _0x4fa3ce, _0x566584 = await this["refreshTokensStore"][_0x3a80b2(189)](_0x1ff00c);
495
- if (!_0x566584) throw new InvalidGrantError("Refresh token is invalid or has been revoked for this client: " + _0x38369c["client_id"]);
496
- if (_0x566584["expiresAt"] < Date["now"]()) throw new InvalidGrantError("Refresh token has expired for this client: " + _0x38369c["client_id"]);
497
- if (_0x2f4f4b[_0x37e964(145)](_0x566584[_0x3a80b2(177)], _0x38369c[_0x3a80b2(176)])) throw new InvalidGrantError(_0x37e964(234) + _0x38369c["client_id"]);
498
- await this[_0x37e964(223)]["revokeRefreshToken"](_0x1ff00c);
499
- const _0x237710 = this[_0x3a80b2(212)](), _0x4a8c31 = this[_0x37e964(160)](), _0x3b135d = { "token": _0x1ff00c, "clientId": _0x38369c[_0x37e964(176)], "scopes": _0x566584[_0x37e964(162)], "expiresAt": _0x2f4f4b[_0x37e964(229)](Date[_0x37e964(159)](), _0x2f4f4b[_0x37e964(174)](this[_0x37e964(214)], -124 * 7 + 379 * -6 + -19 * -218)) };
500
- return await this["refreshTokensStore"][_0x37e964(191)](_0x1ff00c, _0x3b135d), { "access_token": _0x237710, "refresh_token": _0x4a8c31, "token_type": _0x2f4f4b["hlQlh"], "expires_in": this[_0x3a80b2(144)], "scope": _0x566584["scopes"]["join"](" ") };
501
- }
502
- async ["verifyAccessToken"](_0xbb061) {
503
- const _0x1fd60e = _0x4e9d44, _0x4dbb94 = _0x5881e5, _0x804bae = {};
504
- _0x804bae["izmXQ"] = "Token is invalid", _0x804bae[_0x1fd60e(182)] = function(_0x2c4a0d, _0x206bac) {
505
- return _0x2c4a0d / _0x206bac;
506
- };
507
- const _0x171b25 = _0x804bae, _0x103083 = await this[_0x1fd60e(173)][_0x1fd60e(205)](_0xbb061);
508
- if (!_0x103083 || !_0x103083[_0x4dbb94(156)]) throw new InvalidTokenError(_0x171b25[_0x1fd60e(222)]);
509
- return { "token": _0xbb061, "clientId": _0x103083[_0x4dbb94(177)], "scopes": _0x103083["scopes"], "expiresAt": Math[_0x1fd60e(208)](_0x171b25["dbXwH"](_0x103083["expiresAt"], -3202 + 17 * 523 + -4689)), "resource": _0x103083["resource"] };
510
- }
511
- async [_0x4e9d44(170)](_0x50b7c3, _0x257cce) {
512
- const _0xb99faa = _0x5881e5, _0x4b19e4 = _0x4e9d44, _0x576778 = {};
513
- _0x576778["TNZcy"] = function(_0x1ab946, _0x513555) {
514
- return _0x1ab946 === _0x513555;
515
- }, _0x576778[_0xb99faa(183)] = "access_token", _0x576778[_0x4b19e4(204)] = function(_0x5989e5, _0x452d71) {
516
- return _0x5989e5 !== _0x452d71;
517
- };
518
- const _0x44ea89 = _0x576778;
519
- if (_0x44ea89["TNZcy"](_0x257cce[_0xb99faa(233)], _0x44ea89[_0x4b19e4(183)])) {
520
- const _0x312b70 = await this[_0xb99faa(173)][_0xb99faa(205)](_0x257cce["token"]);
521
- if (!_0x312b70 || _0x44ea89[_0xb99faa(204)](_0x312b70["clientId"], _0x50b7c3[_0x4b19e4(176)])) throw new InvalidTokenError("Access token is invalid or does not belong to this client: " + _0x50b7c3["client_id"]);
522
- await this[_0x4b19e4(173)]["revokeAccessToken"](_0x257cce["token"]);
433
+ const _0x53299b = _0x3ff44c, _0x944856 = this[_0x3df655(265)](), _0x5782b0 = {};
434
+ _0x5782b0["code"] = _0x944856;
435
+ const _0xd4484b = new URLSearchParams(_0x5782b0);
436
+ _0x53299b["RsOud"](_0x58d999["state"], void 0) && _0xd4484b[_0x53309e(270)]("state", _0x58d999["state"]);
437
+ const _0x44007f = {};
438
+ _0x44007f[_0x53309e(280)] = _0x8f39e7, _0x44007f["params"] = _0x58d999, await this["codesStore"]["saveCodeData"](_0x944856, _0x44007f);
439
+ const _0x6096a5 = new URL(_0x58d999["redirectUri"] || _0x8f39e7["redirect_uris"][3433 + -8658 + 1045 * 5]);
440
+ _0x6096a5["search"] = _0xd4484b[_0x53309e(258)](), _0x90761b[_0x53309e(227)](_0x6096a5[_0x53309e(258)]());
441
+ }
442
+ async [_0xe43874(308)](_0xdf69bb, _0x2eb0cc) {
443
+ const _0x46df41 = _0xe43874, _0x10b0e1 = await this[_0x46df41(297)]["getCodeDate"](_0x2eb0cc);
444
+ if (!_0x10b0e1) throw new InvalidGrantError(_0x46df41(224) + _0xdf69bb[_0x46df41(226)]);
445
+ return _0x10b0e1["params"]["codeChallenge"];
446
+ }
447
+ async ["exchangeAuthorizationCode"](_0x5e11bf, _0x452fb1) {
448
+ const _0x15f280 = _0x3c4c4b, _0x126457 = _0xe43874, _0x4ceb2c = {};
449
+ _0x4ceb2c["taKwi"] = function(_0x5697ca, _0x396baf) {
450
+ return _0x5697ca !== _0x396baf;
451
+ }, _0x4ceb2c["cegXx"] = function(_0xa8c6be, _0x486863) {
452
+ return _0xa8c6be + _0x486863;
453
+ }, _0x4ceb2c[_0x15f280(285)] = function(_0x349471, _0x220da8) {
454
+ return _0x349471 * _0x220da8;
455
+ }, _0x4ceb2c[_0x15f280(271)] = function(_0x4a0893, _0x5c4387) {
456
+ return _0x4a0893 * _0x5c4387;
457
+ }, _0x4ceb2c["yaAXj"] = "bearer";
458
+ const _0x19faf7 = _0x4ceb2c, _0x3e662e = await this[_0x126457(297)][_0x126457(289)](_0x452fb1);
459
+ if (!_0x3e662e) throw new InvalidGrantError(_0x126457(224) + _0x5e11bf[_0x126457(226)]);
460
+ if (_0x19faf7["taKwi"](_0x3e662e["client"]["client_id"], _0x5e11bf["client_id"])) throw new InvalidGrantError(_0x15f280(275) + _0x5e11bf[_0x126457(226)]);
461
+ await this[_0x15f280(297)][_0x15f280(232)](_0x452fb1);
462
+ const _0x1b6733 = this["generateAccessToken"](), _0x370c1b = this["generateRefreshToken"](), _0x1ced36 = { "token": _0x1b6733, "clientId": _0x5e11bf[_0x15f280(226)], "scopes": _0x3e662e[_0x126457(273)]["scopes"] || [], "expiresAt": _0x19faf7[_0x126457(299)](Date[_0x126457(235)](), _0x19faf7[_0x15f280(285)](this["accessTokenExpiresIn"], -4944 + -8490 + 14434)), "resource": _0x3e662e["params"][_0x15f280(237)] };
463
+ await this["accessTokensStore"][_0x15f280(272)](_0x1b6733, _0x1ced36);
464
+ const _0x57f1e1 = {};
465
+ _0x57f1e1[_0x126457(281)] = ![];
466
+ const _0x344006 = { "token": _0x370c1b, "clientId": _0x5e11bf[_0x126457(226)], "scopes": _0x3e662e["params"]["scopes"] || [], "expiresAt": _0x19faf7[_0x15f280(299)](Date["now"](), _0x19faf7["zQDvg"](this[_0x15f280(225)], 2 * 4307 + 8 * -521 + -3446)), "extra": _0x57f1e1 };
467
+ return await this[_0x15f280(284)][_0x126457(266)](_0x370c1b, _0x344006), { "access_token": _0x1b6733, "refresh_token": _0x370c1b, "token_type": _0x19faf7["yaAXj"], "expires_in": this[_0x126457(257)], "scope": (_0x3e662e["params"]["scopes"] || [])["join"](" ") };
468
+ }
469
+ async ["exchangeRefreshToken"](_0x224106, _0x3af171) {
470
+ const _0x19477d = _0x3c4c4b, _0xf20ae5 = _0xe43874, _0xe12de3 = {};
471
+ _0xe12de3["JIFCu"] = function(_0x29a526, _0xe27ecb) {
472
+ return _0x29a526 < _0xe27ecb;
473
+ }, _0xe12de3[_0x19477d(267)] = function(_0x31ff42, _0x2defe6) {
474
+ return _0x31ff42 !== _0x2defe6;
475
+ }, _0xe12de3["gnySI"] = function(_0x2abea1, _0x49b0bd) {
476
+ return _0x2abea1 + _0x49b0bd;
477
+ }, _0xe12de3["JzexV"] = function(_0x496d90, _0x2c5eb1) {
478
+ return _0x496d90 * _0x2c5eb1;
479
+ }, _0xe12de3[_0xf20ae5(261)] = "Bearer";
480
+ const _0x5eb2df = _0xe12de3, _0x3f17a0 = await this[_0x19477d(284)]["getRefreshToken"](_0x3af171);
481
+ if (!_0x3f17a0) throw new InvalidGrantError("Refresh token is invalid or has been revoked for this client: " + _0x224106["client_id"]);
482
+ if (_0x5eb2df[_0xf20ae5(294)](_0x3f17a0[_0xf20ae5(263)], Date["now"]())) throw new InvalidGrantError("Refresh token has expired for this client: " + _0x224106["client_id"]);
483
+ if (_0x5eb2df[_0x19477d(267)](_0x3f17a0["clientId"], _0x224106["client_id"])) throw new InvalidGrantError(_0x19477d(276) + _0x224106[_0xf20ae5(226)]);
484
+ await this[_0x19477d(284)]["revokeRefreshToken"](_0x3af171);
485
+ const _0x6afb59 = this["generateAccessToken"](), _0x329672 = this[_0xf20ae5(268)](), _0x432a61 = { "token": _0x3af171, "clientId": _0x224106[_0xf20ae5(226)], "scopes": _0x3f17a0[_0x19477d(241)], "expiresAt": _0x5eb2df[_0x19477d(245)](Date["now"](), _0x5eb2df[_0xf20ae5(269)](this[_0x19477d(225)], 1 * 2221 + 8001 + -9222)) };
486
+ return await this[_0xf20ae5(284)][_0xf20ae5(266)](_0x3af171, _0x432a61), { "access_token": _0x6afb59, "refresh_token": _0x329672, "token_type": _0x5eb2df[_0x19477d(261)], "expires_in": this[_0xf20ae5(257)], "scope": _0x3f17a0[_0x19477d(241)][_0x19477d(238)](" ") };
487
+ }
488
+ async [_0xe43874(292)](_0x3947b2) {
489
+ const _0x2ba222 = _0x3c4c4b, _0x3fb7d9 = _0x3c4c4b, _0x47740e = await this[_0x2ba222(231)][_0x3fb7d9(303)](_0x3947b2);
490
+ if (!_0x47740e || !_0x47740e["expiresAt"]) throw new InvalidTokenError(_0x3fb7d9(298));
491
+ return { "token": _0x3947b2, "clientId": _0x47740e["clientId"], "scopes": _0x47740e["scopes"], "expiresAt": Math["floor"](_0x47740e["expiresAt"] / (781 + 8828 + 8609 * -1)), "resource": _0x47740e["resource"] };
492
+ }
493
+ async ["revokeToken"](_0x42ff7c, _0x4c082d) {
494
+ const _0x15b0e7 = _0x3c4c4b, _0x165108 = _0x3c4c4b, _0x55779c = {};
495
+ _0x55779c[_0x15b0e7(223)] = function(_0x575e05, _0xe3d8af) {
496
+ return _0x575e05 === _0xe3d8af;
497
+ }, _0x55779c[_0x165108(251)] = function(_0xbcb15f, _0x5d105e) {
498
+ return _0xbcb15f !== _0x5d105e;
499
+ }, _0x55779c["uzsQa"] = "refresh_token";
500
+ const _0x44ca17 = _0x55779c;
501
+ if (_0x44ca17["jCdyX"](_0x4c082d[_0x15b0e7(239)], "access_token")) {
502
+ const _0x22f07b = await this["accessTokensStore"]["getAccessToken"](_0x4c082d[_0x15b0e7(277)]);
503
+ if (!_0x22f07b || _0x44ca17["adLAw"](_0x22f07b["clientId"], _0x42ff7c[_0x15b0e7(226)])) throw new InvalidTokenError(_0x165108(233) + _0x42ff7c[_0x165108(226)]);
504
+ await this[_0x15b0e7(231)][_0x15b0e7(283)](_0x4c082d["token"]);
523
505
  } else {
524
- if (_0x44ea89["TNZcy"](_0x257cce["token_type_hint"], "refresh_token")) {
525
- const _0x1656a5 = await this[_0xb99faa(223)][_0x4b19e4(189)](_0x257cce["token"]);
526
- if (!_0x1656a5 || _0x44ea89["XyTlR"](_0x1656a5["clientId"], _0x50b7c3[_0x4b19e4(176)])) throw new InvalidTokenError("Refresh token is invalid or does not belong to this client: " + _0x50b7c3["client_id"]);
527
- await this[_0xb99faa(223)][_0x4b19e4(221)](_0x257cce["token"]);
528
- } else throw new InvalidGrantError("Unsupported token type hint: " + _0x257cce[_0x4b19e4(233)] + _0x4b19e4(180) + _0x50b7c3["client_id"]);
506
+ if (_0x4c082d[_0x15b0e7(239)] === _0x44ca17["uzsQa"]) {
507
+ const _0xde2495 = await this[_0x15b0e7(284)]["getRefreshToken"](_0x4c082d[_0x165108(277)]);
508
+ if (!_0xde2495 || _0xde2495[_0x15b0e7(255)] !== _0x42ff7c[_0x165108(226)]) throw new InvalidTokenError("Refresh token is invalid or does not belong to this client: " + _0x42ff7c["client_id"]);
509
+ await this["refreshTokensStore"][_0x15b0e7(234)](_0x4c082d["token"]);
510
+ } else throw new InvalidGrantError(_0x165108(296) + _0x4c082d[_0x15b0e7(239)] + " to this client: " + _0x42ff7c[_0x15b0e7(226)]);
529
511
  }
530
512
  }
531
513
  }
532
- const createAuthMiddleware = (_0xf3df04, _0x158e03) => {
533
- const _0x54d4c3 = _0x4e9d44, _0x22639f = { "SEmsY": function(_0x3fd1d0, _0x48c89f) {
534
- return _0x3fd1d0(_0x48c89f);
535
- } }, _0x4ce940 = async (_0x5c8321) => {
536
- const _0x37a4d9 = _0x2b37, _0x16ec2b = _0x2b37, _0x469a0e = await _0xf3df04[_0x37a4d9(193)](_0x5c8321), _0x55b928 = { "active": !![], "client_id": _0x469a0e["clientId"], "scope": _0x469a0e["scopes"][_0x37a4d9(227)](" "), "exp": _0x469a0e["expiresAt"], "aud": _0x469a0e["resource"] };
537
- if (!_0x55b928[_0x16ec2b(150)]) throw new Error(_0x37a4d9(148));
538
- const _0x522888 = {};
539
- _0x522888["requestedResource"] = _0x55b928[_0x16ec2b(150)], _0x522888["configuredResource"] = _0x158e03;
540
- if (!_0x22639f["SEmsY"](checkResourceAllowed, _0x522888)) throw new Error(_0x16ec2b(155) + _0x158e03 + _0x16ec2b(175) + _0x55b928["aud"]);
541
- return { "token": _0x5c8321, "clientId": _0x55b928[_0x37a4d9(176)], "scopes": _0x55b928[_0x16ec2b(163)] ? _0x55b928[_0x37a4d9(163)][_0x16ec2b(232)](" ") : [], "expiresAt": _0x55b928[_0x37a4d9(190)] };
542
- }, _0x1ed4f2 = {};
543
- return _0x1ed4f2["verifyAccessToken"] = _0x4ce940, _0x22639f["SEmsY"](requireBearerAuth, { "verifier": _0x1ed4f2, "requiredScopes": [], "resourceMetadataUrl": _0x22639f[_0x54d4c3(216)](getOAuthProtectedResourceMetadataUrl, new URL(_0x158e03)) });
514
+ const createAuthMiddleware = (_0x3baed3, _0x238dff) => {
515
+ const _0x2c5dae = _0xe43874, _0x43e28e = { "ebfKl": function(_0x6689cb, _0x118b09) {
516
+ return _0x6689cb(_0x118b09);
517
+ }, "kpBZz": function(_0x29f55e, _0xe110e2) {
518
+ return _0x29f55e(_0xe110e2);
519
+ } }, _0xbcfc6 = async (_0x229d85) => {
520
+ const _0x21a8a7 = _0x249d, _0x1edf54 = _0x249d, _0x3bb6bf = await _0x3baed3["verifyAccessToken"](_0x229d85), _0x2fcc24 = { "active": !![], "client_id": _0x3bb6bf[_0x21a8a7(255)], "scope": _0x3bb6bf["scopes"][_0x1edf54(238)](" "), "exp": _0x3bb6bf[_0x1edf54(263)], "aud": _0x3bb6bf["resource"] };
521
+ if (!_0x2fcc24[_0x1edf54(236)]) throw new Error(_0x1edf54(302));
522
+ const _0xd2b81a = {};
523
+ _0xd2b81a["requestedResource"] = _0x2fcc24["aud"], _0xd2b81a["configuredResource"] = _0x238dff;
524
+ if (!_0x43e28e["ebfKl"](checkResourceAllowed, _0xd2b81a)) throw new Error("Expected resource indicator " + _0x238dff + _0x1edf54(293) + _0x2fcc24["aud"]);
525
+ return { "token": _0x229d85, "clientId": _0x2fcc24[_0x1edf54(226)], "scopes": _0x2fcc24["scope"] ? _0x2fcc24[_0x21a8a7(286)][_0x1edf54(288)](" ") : [], "expiresAt": _0x2fcc24[_0x1edf54(307)] };
526
+ }, _0x9b8c4a = {};
527
+ return _0x9b8c4a[_0x2c5dae(292)] = _0xbcfc6, requireBearerAuth({ "verifier": _0x9b8c4a, "requiredScopes": [], "resourceMetadataUrl": _0x43e28e["kpBZz"](getOAuthProtectedResourceMetadataUrl, new URL(_0x238dff)) });
544
528
  };
545
- const createAuthCallbackRouter = (_0x533820, ..._0x3d4e6a) => {
546
- const _0x44c5df = _0x5881e5, _0x9e3520 = _0x5881e5, _0x37c704 = {};
547
- _0x37c704[_0x44c5df(228)] = function(_0x273a1b, _0xe94e71) {
548
- return _0x273a1b && _0xe94e71;
529
+ const createAuthCallbackRouter = (_0x17454d, ..._0x53ce66) => {
530
+ const _0x30326c = _0xe43874, _0x5f5665 = {};
531
+ _0x5f5665["XUwJv"] = function(_0x3f35fc, _0x3299fc) {
532
+ return _0x3f35fc && _0x3299fc;
549
533
  };
550
- const _0x516c37 = _0x37c704, _0xbc31b = _0x6b975c["Router"](), _0x3c7617 = /* @__PURE__ */ new Map();
551
- _0xbc31b[_0x9e3520(195)](_0x533820, _0x6b975c["json"](), (_0x59ecc7, _0x5170de) => {
552
- const _0x10e0db = _0x44c5df, _0x2a1476 = _0x9e3520, { code: _0x2b6233, state: _0xf67045, error: _0x117717 } = _0x59ecc7["query"];
553
- if (_0x516c37[_0x10e0db(228)](_0x2b6233, _0xf67045)) _0x3c7617["set"](_0xf67045, _0x2b6233), _0x5170de["json"]({});
554
- else _0x117717 && _0x5170de[_0x2a1476(179)](815 * -11 + 31 * -243 + 142 * 119)["send"](_0x2a1476(158) + _0x117717);
534
+ const _0x22d48d = _0x5f5665, _0x41b8f7 = _0x3b4ea9["Router"](), _0x388e64 = /* @__PURE__ */ new Map();
535
+ _0x41b8f7["get"](_0x17454d, _0x3b4ea9["json"](), (_0x14c802, _0x267c78) => {
536
+ const _0x58962f = _0x249d, _0x278763 = _0x249d, { code: _0x2440fe, state: _0x2e9b9f, error: _0x2b16d7 } = _0x14c802[_0x58962f(253)];
537
+ if (_0x22d48d[_0x58962f(282)](_0x2440fe, _0x2e9b9f)) _0x388e64["set"](_0x2e9b9f, _0x2440fe), _0x267c78["json"]({});
538
+ else _0x2b16d7 && _0x267c78[_0x278763(221)](-5182 * 1 + 1 * 8606 + -3024)["send"](_0x278763(278) + _0x2b16d7);
555
539
  });
556
- const _0x3a3698 = [_0x6b975c["json"](), ..._0x3d4e6a, (_0x13c9da, _0x1f20f8) => {
557
- const _0x5007ca = _0x9e3520, _0x4e5d5e = _0x44c5df, { state: _0x4c97e0 } = _0x13c9da[_0x5007ca(169)];
558
- if (_0x4c97e0 && _0x3c7617["has"](_0x4c97e0)) {
559
- const _0x314560 = _0x3c7617["get"](_0x4c97e0);
560
- _0x3c7617["delete"](_0x4c97e0);
561
- const _0x3a6bf5 = {};
562
- _0x3a6bf5[_0x4e5d5e(143)] = _0x314560, _0x1f20f8["json"](_0x3a6bf5);
563
- } else _0x1f20f8["status"](8209 + 3274 * -2 + 1 * -1261)["send"]("No authorization code found for state: " + _0x4c97e0);
540
+ const _0x42e771 = [_0x3b4ea9["json"](), ..._0x53ce66, (_0x3c82ed, _0x3494a0) => {
541
+ const _0x5f100c = _0x249d, { state: _0x32e61a } = _0x3c82ed["body"];
542
+ if (_0x32e61a && _0x388e64["has"](_0x32e61a)) {
543
+ const _0x537ab6 = _0x388e64["get"](_0x32e61a);
544
+ _0x388e64["delete"](_0x32e61a);
545
+ const _0x654ab8 = {};
546
+ _0x654ab8["code"] = _0x537ab6, _0x3494a0["json"](_0x654ab8);
547
+ } else _0x3494a0[_0x5f100c(221)](-3066 * -1 + -3516 + -850 * -1)["send"]("No authorization code found for state: " + _0x32e61a);
564
548
  }];
565
- return _0xbc31b["post"](_0x533820, ..._0x3a3698), _0xbc31b;
549
+ return _0x41b8f7[_0x30326c(243)](_0x17454d, ..._0x42e771), _0x41b8f7;
566
550
  };
567
- const metadataHandler = (_0x5309c1) => {
568
- const _0x2e6e3e = _0x5881e5, _0x2ae220 = _0x5881e5, _0x28fdbb = { "ewlPd": function(_0xc5602a, _0x280af9) {
569
- return _0xc5602a(_0x280af9);
570
- }, "gJMqp": "GET" }, _0xbaf2c2 = _0x6b975c[_0x2e6e3e(231)]();
571
- return _0xbaf2c2[_0x2ae220(164)](_0x46f055()), _0xbaf2c2[_0x2ae220(164)](_0x28fdbb["ewlPd"](allowedMethods, [_0x28fdbb["gJMqp"]])), _0xbaf2c2[_0x2ae220(164)]("/", (_0x3d018c, _0x2a382b) => {
572
- _0x2a382b["status"](7267 + 356 + -7423)["json"](_0x5309c1);
573
- }), _0xbaf2c2;
551
+ const metadataHandler = (_0x5df121) => {
552
+ const _0x3a5bac = _0x3c4c4b, _0x89aaf2 = _0x3c4c4b, _0x6fbdb1 = { "MpGmT": function(_0x2d3620, _0x23bbdc) {
553
+ return _0x2d3620(_0x23bbdc);
554
+ }, "vILMJ": _0x3a5bac(256) }, _0x3a53c5 = _0x3b4ea9[_0x89aaf2(230)]();
555
+ return _0x3a53c5[_0x3a5bac(279)](_0x3ff0bd()), _0x3a53c5[_0x3a5bac(279)](_0x6fbdb1["MpGmT"](allowedMethods, [_0x6fbdb1[_0x89aaf2(229)]])), _0x3a53c5[_0x3a5bac(279)]("/", (_0x489ab3, _0x3f55a2) => {
556
+ const _0x54085b = _0x89aaf2;
557
+ _0x3f55a2[_0x54085b(221)](2107 + -9895 * -1 + 2 * -5901)["json"](_0x5df121);
558
+ }), _0x3a53c5;
574
559
  };
575
- const createAuthMetadataRouter = (_0x4f78e8, _0x21b5ab, _0x55edf7) => {
576
- const _0x5bbfce = _0x5881e5, _0x407f4b = _0x4e9d44, _0x556047 = { "LahiK": _0x5bbfce(207), "HoeCA": function(_0x2da314, _0x2de64d) {
577
- return _0x2da314(_0x2de64d);
578
- } }, _0x325724 = _0x6b975c[_0x407f4b(231)](), _0x3172ba = createOAuthMetadata({ "provider": _0x4f78e8, "issuerUrl": new URL(_0x21b5ab) }), _0x12cc3e = { "resource": new URL(_0x55edf7)["href"], "authorization_servers": [_0x3172ba["issuer"]] };
579
- return _0x325724[_0x407f4b(164)]("/.well-known/oauth-protected-resource", metadataHandler(_0x12cc3e)), _0x325724["use"](_0x556047[_0x407f4b(225)], _0x556047[_0x5bbfce(202)](metadataHandler, _0x3172ba)), _0x325724;
560
+ const createAuthMetadataRouter = (_0x413313, _0x2ef4ff, _0x34eb23) => {
561
+ const _0xc6727a = _0x3c4c4b, _0x8e98bb = _0xe43874, _0x3d56f8 = { "VbkeF": function(_0x3634c9, _0x2927af) {
562
+ return _0x3634c9(_0x2927af);
563
+ }, "VoqUG": function(_0x24dbd6, _0x30040d) {
564
+ return _0x24dbd6(_0x30040d);
565
+ }, "tpdlC": function(_0x55324a, _0x5c43ea) {
566
+ return _0x55324a(_0x5c43ea);
567
+ } }, _0x2d20da = _0x3b4ea9["Router"](), _0x37ed34 = _0x3d56f8["VbkeF"](createOAuthMetadata, { "provider": _0x413313, "issuerUrl": new URL(_0x2ef4ff) }), _0x166518 = { "resource": new URL(_0x34eb23)["href"], "authorization_servers": [_0x37ed34[_0xc6727a(274)]] };
568
+ return _0x2d20da["use"](_0xc6727a(260), _0x3d56f8[_0x8e98bb(295)](metadataHandler, _0x166518)), _0x2d20da["use"](_0x8e98bb(262), _0x3d56f8["tpdlC"](metadataHandler, _0x37ed34)), _0x2d20da;
580
569
  };
581
- const createAuthRouter = (_0x503c8b) => {
582
- const _0xb2fb2b = { "GKiYF": function(_0x1d197b, _0x2d00b8) {
583
- return _0x1d197b(_0x2d00b8);
584
- } };
585
- return _0xb2fb2b["GKiYF"](mcpAuthRouter, _0x503c8b);
570
+ const createAuthRouter = (_0x22196d) => {
571
+ return mcpAuthRouter(_0x22196d);
586
572
  };
587
- const _0x3e1736 = _0x2f7b, _0x81757 = _0x2f7b;
588
- (function(_0x1374da, _0x1a8ed9) {
589
- const _0x193023 = _0x2f7b, _0x9e58d1 = _0x2f7b, _0x503462 = _0x1374da();
573
+ function _0x4684() {
574
+ const _0x1541a9 = ["/.well-known/oauth-protected-resource", "RCEuG", "/.well-known/oauth-authorization-server", "expiresAt", "7KjLRvp", "generateAuthorizationCode", "saveRefreshToken", "qUaqe", "generateRefreshToken", "JzexV", "set", "zQDvg", "saveAccessToken", "params", "issuer", "Authorization code was not issued to this client: ", "Refresh token was not issued to this client: ", "token", "OAuth authorization failed: ", "use", "client", "isRevoked", "XUwJv", "revokeAccessToken", "refreshTokensStore", "tVRuV", "scope", "200306JLaqFy", "split", "getCodeDate", "1166574pWmdds", "488801NTRbRY", "verifyAccessToken", ", got: ", "JIFCu", "VoqUG", "Unsupported token type hint: ", "codesStore", "Token is invalid", "cegXx", "getClient", "taYfN", "Resource Indicator (RFC8707) missing", "getAccessToken", "generateAccessToken", "clients", "1232dCaLzQ", "exp", "challengeForAuthorizationCode", "status", "28916BWqlor", "jCdyX", "Invalid authorization code for this client: ", "refreshTokenExpiresIn", "client_id", "redirect", "50008pDBaSY", "vILMJ", "Router", "accessTokensStore", "deleteCodeData", "Access token is invalid or does not belong to this client: ", "revokeRefreshToken", "now", "aud", "resource", "join", "token_type_hint", "saveClient", "scopes", "refreshTokens", "post", "delete", "gnySI", "randomBytes", "318lXUBXF", "3529785QLPjOU", "codes", "333wOKJhm", "adLAw", "43240HivtQs", "query", "get", "clientId", "GET", "accessTokenExpiresIn", "toString", "accessTokens"];
575
+ _0x4684 = function() {
576
+ return _0x1541a9;
577
+ };
578
+ return _0x4684();
579
+ }
580
+ const _0x4d15c2 = _0x27a6, _0x969375 = _0x27a6;
581
+ function _0x27a6(_0x578df3, _0x35c841) {
582
+ const _0x481407 = _0x38cb();
583
+ return _0x27a6 = function(_0x283e3d, _0x3a92a3) {
584
+ _0x283e3d = _0x283e3d - (-1 * 6333 + 36 * 5 + 6418);
585
+ let _0x135a03 = _0x481407[_0x283e3d];
586
+ return _0x135a03;
587
+ }, _0x27a6(_0x578df3, _0x35c841);
588
+ }
589
+ (function(_0x31a920, _0x4c86d0) {
590
+ const _0x3465cf = _0x27a6, _0x1eb74e = _0x27a6, _0x310b10 = _0x31a920();
590
591
  while (!![]) {
591
592
  try {
592
- const _0x5eda81 = parseInt(_0x193023(319)) / (-3489 + 224 * -7 + -1 * -5058) + parseInt(_0x9e58d1(421)) / (-2 * -233 + 1006 + 35 * -42) + -parseInt(_0x9e58d1(343)) / (-1 * -8804 + -5 * 1069 + -216 * 16) * (parseInt(_0x9e58d1(356)) / (5153 * -1 + -1851 + -876 * -8)) + parseInt(_0x193023(392)) / (-1 * -6679 + -339 * -9 + 1 * -9725) + parseInt(_0x9e58d1(363)) / (-7612 + 3459 + 4159) * (parseInt(_0x193023(420)) / (-9281 + 7745 + 1543)) + -parseInt(_0x9e58d1(369)) / (1 * 2549 + 845 + -3386) * (-parseInt(_0x9e58d1(400)) / (-3 * 1421 + 5940 + -1668)) + -parseInt(_0x193023(374)) / (-12 * 406 + 5556 + -674) * (parseInt(_0x9e58d1(410)) / (77 * -27 + 2969 * 2 + -3848));
593
- if (_0x5eda81 === _0x1a8ed9) break;
594
- else _0x503462["push"](_0x503462["shift"]());
595
- } catch (_0x48c034) {
596
- _0x503462["push"](_0x503462["shift"]());
593
+ const _0x852137 = parseInt(_0x3465cf(335)) / (-9797 + 2 * -3769 + 17336) + parseInt(_0x1eb74e(327)) / (6244 + 1 * -3805 + -2437) * (-parseInt(_0x1eb74e(265)) / (1614 * 6 + 394 * -14 + -4165)) + -parseInt(_0x1eb74e(267)) / (6360 + -4663 + -1693) + -parseInt(_0x1eb74e(341)) / (-7380 + 71 * 89 + 1066) * (-parseInt(_0x3465cf(269)) / (26 * -61 + -2057 + 3649)) + parseInt(_0x1eb74e(295)) / (-6095 + 2865 + 1079 * 3) * (parseInt(_0x3465cf(376)) / (-4799 + -1 * -7804 + 111 * -27)) + -parseInt(_0x3465cf(290)) / (7027 * 1 + -9504 + 22 * 113) * (parseInt(_0x1eb74e(387)) / (-122 * 34 + 497 * 1 + 3661)) + parseInt(_0x1eb74e(272)) / (-168 * 25 + -1 * 7059 + -490 * -23);
594
+ if (_0x852137 === _0x4c86d0) break;
595
+ else _0x310b10["push"](_0x310b10["shift"]());
596
+ } catch (_0x291175) {
597
+ _0x310b10["push"](_0x310b10["shift"]());
597
598
  }
598
599
  }
599
- })(_0x6b51, -575209 * 1 + 1045640 + 277882 * 1);
600
- function _0x2f7b(_0x37a693, _0x3ad569) {
601
- const _0x1268fe = _0x6b51();
602
- return _0x2f7b = function(_0x239d2d, _0x3788e6) {
603
- _0x239d2d = _0x239d2d - (3295 + -4673 + 6 * 281);
604
- let _0x12060f = _0x1268fe[_0x239d2d];
605
- return _0x12060f;
606
- }, _0x2f7b(_0x37a693, _0x3ad569);
600
+ })(_0x38cb, -2 * -58043 + -126232 + 773259 * 1);
601
+ function _0x38cb() {
602
+ const _0x45165b = ["handleSseInspector", "completions", "write", "GET", "mcp-sse-proxy-server", "stream-session-id", "EMxHT", "lGlsW", "elicitation", "No client found for session ID ", "1.0.0", "server", "jsonrpc", "9zXbOds", "mcp-stream-twin-client", "zPeZJ", "error", "StreamableHTTP", "7xwxkmh", "value", "details", "qmRGt", "headersSent", "Missing bearer token", "Allow", "auth", "sampling", "code", "headers", "set", "end", "handleSseProxy", "vXsBf", "onclose", "rzmhK", "IQrpu", "name", "tools", "logging", "tGtcf", "jWXaz", "ping", "WWWVd", "sessionId", "shouldClose", "handleStreamInspector", "mcpServer", "onerror", "version", "OrrCz", "2qfrvTF", "mcp-sse-twin-client", "qCTJV", "roots", "verify", "DELETE", "prompts", "resolve", "351221WUbiFl", "body", "Internal server error", "close", "sse-session-id", "resources", "7421345YmxeKP", "_sessionId", "kpQjh", "length", "json", "IkWeJ", "tMQIg", "user", "qoKBW", "SSE", "connect", "protocolVersion", "handleRequest", "Invalid or missing session ID", "method", "DhEmq", "referer", "forEach", "send", "capabilities", "map", "listChanged", "client", "EjXtZ", "randomUUID", "allSettled", "message", "push", "nKUoO", "authorization", "handlePostMessage", "handleSseMessage", "JCqRL", "keys", "values", "3533736LEKWWc", "user-agent", "_sseResponse", "ZEsCW", "SRmvJ", "addRequestListener", "afterInit", "reset", "status", "subscribe", "query", "9647270CJAnSA", "Method not allowed.", "awHjn", "sessionIdGenerator", "3685938AqsJHp", "xYsEG", "5660264afuFcU", "IxQwK", "6dExhCA", "zxoAS", "removeRequestListener", "23037795NgAckT", "BDeTx", "sHVfg", "trzfV", "dLhvm"];
603
+ _0x38cb = function() {
604
+ return _0x45165b;
605
+ };
606
+ return _0x38cb();
607
607
  }
608
- const auth = ({ secret: _0x522e9e }) => (_0x2da066, _0x63a239, _0x3fad67) => {
608
+ const auth = ({ secret: _0x13b538 }) => (_0x5ab11b, _0x46174f, _0x2f7802) => {
609
609
  var _a;
610
- const _0x2a317d = _0x2f7b, _0x362bc1 = _0x2f7b, _0xbcde2b = {};
611
- _0xbcde2b[_0x2a317d(350)] = _0x362bc1(323), _0xbcde2b[_0x362bc1(403)] = "Invalid bearer token";
612
- const _0x3a590b = _0xbcde2b, _0x3d6a7d = (_a = _0x2da066["headers"][_0x2a317d(330)]) == null ? void 0 : _a[_0x362bc1(315)](" ")[8451 + 9456 + -17906];
613
- if (!_0x3d6a7d) {
614
- _0x63a239[_0x2a317d(353)](-1 * 877 + -8 * 548 + 5662)["send"](_0x3a590b[_0x2a317d(350)]);
610
+ const _0x348030 = _0x27a6, _0x123859 = _0x27a6, _0x4cc780 = { "gjxBL": _0x348030(300), "BDeTx": function(_0x294845) {
611
+ return _0x294845();
612
+ }, "JCqRL": "Invalid bearer token" }, _0x57b212 = (_a = _0x5ab11b[_0x348030(305)][_0x348030(370)]) == null ? void 0 : _a["split"](" ")[-4745 + 4444 + -1 * -302];
613
+ if (!_0x57b212) {
614
+ _0x46174f[_0x123859(384)](232 * 6 + 2267 + -3258)["send"](_0x4cc780["gjxBL"]);
615
615
  return;
616
616
  }
617
617
  try {
618
- _0x2da066["user"] = _0x1323d6["verify"](_0x3d6a7d, _0x522e9e), _0x3fad67();
619
- } catch (_0x420789) {
620
- const _0x5d73ba = {};
621
- _0x5d73ba["error"] = _0x3a590b[_0x362bc1(403)], _0x5d73ba[_0x2a317d(428)] = _0x420789[_0x2a317d(327)], _0x63a239["status"](565 + 9749 * 1 + -583 * 17)["json"](_0x5d73ba);
618
+ _0x5ab11b[_0x123859(348)] = _0xb6e97a[_0x348030(331)](_0x57b212, _0x13b538), _0x4cc780[_0x348030(273)](_0x2f7802);
619
+ } catch (_0x47bca2) {
620
+ const _0x48ecab = {};
621
+ _0x48ecab[_0x348030(293)] = _0x4cc780[_0x123859(373)], _0x48ecab[_0x123859(297)] = _0x47bca2[_0x348030(367)], _0x46174f[_0x123859(384)](17 * -169 + 1848 * -2 + 6972)["json"](_0x48ecab);
622
622
  }
623
623
  };
624
- const getDeviceInfo = (_0x359b5a) => ({ "ip": _0x359b5a["headers"]["x-forwarded-for"] || _0x359b5a["ip"] || "", "userAgent": _0x359b5a["headers"]["user-agent"] || "", "acceptLanguage": _0x359b5a["headers"]["accept-language"] || "", "referer": _0x359b5a[_0x3e1736(344)][_0x3e1736(361)] || "" }), forwardProxyServer = (_0x4fbbf7, _0x55fb26) => {
625
- const _0xccabab = _0x81757, _0x254223 = _0x3e1736, _0x54360e = { "IBiUI": function(_0x18dca1, _0x2aa65e, _0x3c86d0) {
626
- return _0x18dca1(_0x2aa65e, _0x3c86d0);
624
+ const getDeviceInfo = (_0x149038) => ({ "ip": _0x149038["headers"]["x-forwarded-for"] || _0x149038["ip"] || "", "userAgent": _0x149038[_0x4d15c2(305)][_0x969375(377)] || "", "acceptLanguage": _0x149038[_0x969375(305)]["accept-language"] || "", "referer": _0x149038[_0x969375(305)][_0x969375(357)] || "" }), forwardProxyServer = (_0x1e276c, _0x19a185) => {
625
+ const _0x20e5b9 = _0x969375, _0x13bc4d = { "jWXaz": function(_0x10bfe8, _0x36d00b, _0x142672) {
626
+ return _0x10bfe8(_0x36d00b, _0x142672);
627
+ }, "KfZbo": function(_0x3478f5, _0x3baeb0, _0x2019f4) {
628
+ return _0x3478f5(_0x3baeb0, _0x2019f4);
627
629
  } };
628
- forwardServerOnRequest(_0x4fbbf7, _0x55fb26), forwardServerOnNotification(_0x4fbbf7, _0x55fb26);
629
- const _0x2ff679 = _0x54360e["IBiUI"](forwardClientOnRequest, _0x55fb26, _0x4fbbf7), _0x7ac9b8 = forwardClientOnNotification(_0x55fb26, _0x4fbbf7);
630
- _0x55fb26[_0xccabab(320)](_0x2ff679), _0x55fb26[_0xccabab(331)](_0x7ac9b8), _0x4fbbf7[_0xccabab(339)] = () => {
631
- const _0x325f2d = _0x254223;
632
- _0x55fb26["removeRequestListener"](_0x2ff679), _0x55fb26[_0x325f2d(391)](_0x7ac9b8);
630
+ forwardServerOnRequest(_0x1e276c, _0x19a185), _0x13bc4d[_0x20e5b9(317)](forwardServerOnNotification, _0x1e276c, _0x19a185);
631
+ const _0x2b323f = _0x13bc4d["jWXaz"](forwardClientOnRequest, _0x19a185, _0x1e276c), _0x4715fe = _0x13bc4d["KfZbo"](forwardClientOnNotification, _0x19a185, _0x1e276c);
632
+ _0x19a185[_0x20e5b9(381)](_0x2b323f), _0x19a185["addNotificationListener"](_0x4715fe), _0x1e276c["onclose"] = () => {
633
+ const _0x119dbd = _0x20e5b9;
634
+ _0x19a185[_0x119dbd(271)](_0x2b323f), _0x19a185["removeNotificationListener"](_0x4715fe);
633
635
  };
634
- }, initTwinClientHandler = (_0x54589c, _0x2855d0) => {
635
- const _0x24c013 = _0x3e1736, _0x42378e = _0x3e1736, _0x3cd2f9 = { "IcHpP": _0x24c013(401), "XovhO": _0x42378e(324), "VcBKB": _0x24c013(316), "CGcoc": function(_0xa9c7c2, _0x58d5d2) {
636
- return _0xa9c7c2 instanceof _0x58d5d2;
637
- }, "EypRd": function(_0x50a56b, _0x236374, _0x17d617) {
638
- return _0x50a56b(_0x236374, _0x17d617);
639
- } }, _0x2a4b41 = () => {
640
- const _0x29f855 = _0x24c013, _0x8d8298 = _0x42378e, _0xb6188b = {};
641
- _0xb6188b["listChanged"] = !![];
642
- const _0x2803a7 = {};
643
- _0x2803a7["subscribe"] = !![], _0x2803a7[_0x29f855(393)] = !![];
644
- const _0x960712 = {};
645
- _0x960712["listChanged"] = !![];
646
- const _0x25f58a = {};
647
- _0x25f58a[_0x29f855(309)] = _0xb6188b, _0x25f58a["resources"] = _0x2803a7, _0x25f58a[_0x8d8298(380)] = _0x960712, _0x25f58a[_0x8d8298(367)] = {}, _0x25f58a[_0x8d8298(407)] = {};
648
- const _0x53ea52 = _0x25f58a, _0x5ed97b = {};
649
- _0x5ed97b[_0x29f855(336)] = _0x29f855(397), _0x5ed97b[_0x29f855(310)] = "1.0.0", _0x54589c["_requestHandlers"]["set"](_0x3cd2f9["IcHpP"], (_0x3b61ef) => ({ "protocolVersion": _0x3b61ef[_0x29f855(430)]["protocolVersion"], "capabilities": _0x53ea52, "serverInfo": _0x5ed97b })), _0x54589c[_0x29f855(332)]["set"](_0x3cd2f9["XovhO"], () => {
636
+ }, initTwinClientHandler = (_0x2ad7a3, _0x1154c9) => {
637
+ const _0x1c937a = _0x4d15c2, _0x342b40 = {};
638
+ _0x342b40["UFacz"] = "initialize", _0x342b40["zPeZJ"] = "notifications/initialized", _0x342b40[_0x1c937a(349)] = "event: close\ndata: \n\n";
639
+ const _0x56464f = _0x342b40, _0x36e58a = () => {
640
+ const _0x70f09d = _0x1c937a, _0x4824c9 = _0x1c937a, _0x5a1392 = {};
641
+ _0x5a1392[_0x70f09d(362)] = !![];
642
+ const _0x45d212 = {};
643
+ _0x45d212[_0x70f09d(385)] = !![], _0x45d212[_0x70f09d(362)] = !![];
644
+ const _0x532829 = {};
645
+ _0x532829["listChanged"] = !![];
646
+ const _0x2c89b9 = {};
647
+ _0x2c89b9["prompts"] = _0x5a1392, _0x2c89b9["resources"] = _0x45d212, _0x2c89b9[_0x4824c9(314)] = _0x532829, _0x2c89b9["completions"] = {}, _0x2c89b9["logging"] = {};
648
+ const _0x104a35 = _0x2c89b9, _0xac6e72 = {};
649
+ _0xac6e72[_0x4824c9(313)] = "mcp-server", _0xac6e72["version"] = _0x70f09d(287), _0x2ad7a3["_requestHandlers"][_0x4824c9(306)](_0x56464f["UFacz"], (_0x3c68dc) => ({ "protocolVersion": _0x3c68dc["params"][_0x70f09d(352)], "capabilities": _0x104a35, "serverInfo": _0xac6e72 })), _0x2ad7a3["_notificationHandlers"][_0x70f09d(306)](_0x56464f[_0x70f09d(292)], () => {
650
650
  });
651
- }, _0x218e61 = () => {
652
- const _0x380295 = _0x42378e;
653
- _0x3cd2f9["CGcoc"](_0x2855d0, SSEServerTransport) && (_0x2855d0[_0x380295(337)] = () => {
651
+ }, _0x27a111 = () => {
652
+ const _0x18133e = {};
653
+ _0x18133e["lUgOo"] = _0x56464f["qoKBW"];
654
+ const _0x40723e = _0x18133e;
655
+ _0x1154c9 instanceof SSEServerTransport && (_0x1154c9["close"] = () => {
654
656
  var _a, _b;
655
- const _0xd93343 = _0x380295;
656
- return (_a = _0x2855d0["_sseResponse"]) == null ? void 0 : _a[_0xd93343(414)](_0x3cd2f9[_0xd93343(405)])["end"](), _0x2855d0[_0xd93343(384)] = void 0, (_b = _0x2855d0["onclose"]) == null ? void 0 : _b.call(_0x2855d0), Promise[_0xd93343(390)]();
657
+ const _0x4e33f3 = _0x27a6, _0x49e16e = _0x27a6;
658
+ return (_a = _0x1154c9[_0x4e33f3(378)]) == null ? void 0 : _a[_0x4e33f3(279)](_0x40723e["lUgOo"])["end"](), _0x1154c9[_0x4e33f3(378)] = void 0, (_b = _0x1154c9[_0x49e16e(310)]) == null ? void 0 : _b.call(_0x1154c9), Promise[_0x4e33f3(334)]();
657
659
  });
658
- }, _0x4187b6 = {};
659
- _0x4187b6["beforeInit"] = _0x2a4b41, _0x4187b6[_0x24c013(341)] = _0x218e61, _0x3cd2f9[_0x42378e(425)](initClientHandler, _0x54589c, _0x4187b6);
660
+ }, _0x268bfe = {};
661
+ _0x268bfe["beforeInit"] = _0x36e58a, _0x268bfe[_0x1c937a(382)] = _0x27a111, initClientHandler(_0x2ad7a3, _0x268bfe);
660
662
  };
661
663
  const useProxyHandles = () => {
662
- const _0x366cc9 = _0x3e1736, _0x45f122 = _0x81757, _0x3bd65f = { "Lndqr": function(_0x14371b, _0x1c681f) {
663
- return _0x14371b(_0x1c681f);
664
- }, "jiGQt": _0x366cc9(359), "FCEDe": "sse-session-id", "UWXex": "close", "sjrOH": "mcp-sse-twin-client", "tOrTB": function(_0x22ccfe, _0xfaf819) {
665
- return _0x22ccfe(_0xfaf819);
666
- }, "IBanx": "mcp-sse-proxy-server", "dMURb": _0x366cc9(404), "IsLWU": function(_0x535c39, _0x3bdf42, _0x57daa9) {
667
- return _0x535c39(_0x3bdf42, _0x57daa9);
668
- }, "CcOpT": function(_0x50e61c, _0x1d2b45) {
669
- return _0x50e61c === _0x1d2b45;
670
- }, "MnmYe": function(_0x45a9d1, _0x4099c4) {
671
- return _0x45a9d1 === _0x4099c4;
672
- }, "Zmjjs": "GET", "xrxSg": "DELETE", "Hrtvy": function(_0x30efd3, _0x39add5, _0x24cb21) {
673
- return _0x30efd3(_0x39add5, _0x24cb21);
674
- }, "hCjHy": _0x366cc9(408), "JuViw": _0x45f122(342), "Isgge": function(_0x47474d, _0x5b9651) {
675
- return _0x47474d(_0x5b9651);
676
- }, "xmKBD": "StreamableHTTP", "mIkYm": function(_0x41da88, _0x2c0a8f) {
677
- return _0x41da88(_0x2c0a8f);
678
- }, "gFkTc": "mcp-stream-twin-client", "RcENs": function(_0x1211bd, _0x2a2bae, _0x5642ba) {
679
- return _0x1211bd(_0x2a2bae, _0x5642ba);
680
- }, "CFhYM": function(_0x3e9ce1, _0x116f59) {
681
- return _0x3e9ce1(_0x116f59);
682
- }, "MCyPx": _0x366cc9(317), "HjNnp": _0x366cc9(373), "URNvt": function(_0x1d96ed, _0x244aa6, _0xf00629) {
683
- return _0x1d96ed(_0x244aa6, _0xf00629);
684
- }, "aAlJA": function(_0x3924a3, _0x27de42) {
685
- return _0x3924a3 === _0x27de42;
686
- }, "spzPF": function(_0x5684ee, _0x383411, _0x595e92) {
687
- return _0x5684ee(_0x383411, _0x595e92);
688
- }, "KVwnS": "Invalid or missing session ID", "poUzV": function(_0xdb217d, _0x10b16a) {
689
- return _0xdb217d(_0x10b16a);
690
- }, "AwNKh": function(_0x47f844, _0x36bac2, _0x29ed61) {
691
- return _0x47f844(_0x36bac2, _0x29ed61);
692
- }, "GGSyp": _0x366cc9(406), "ufHqk": function(_0x29fef5, _0x2ad43f) {
693
- return _0x29fef5 !== _0x2ad43f;
694
- } }, _0x5e15f9 = {}, _0x2dffd2 = {}, _0x10216e = {}, _0xe7dee8 = {};
695
- let _0x53a5d2 = () => {
664
+ const _0x356f5f = _0x4d15c2, _0xa78d72 = _0x4d15c2, _0x521a3b = { "IQrpu": function(_0x3297db, _0x3a018a) {
665
+ return _0x3297db(_0x3a018a);
666
+ }, "vXsBf": _0x356f5f(350), "kLinO": _0x356f5f(339), "PbSkZ": _0x356f5f(338), "SRmvJ": _0x356f5f(328), "xYsEG": _0x356f5f(287), "WOwsg": function(_0x579f29, _0x325946) {
667
+ return _0x579f29(_0x325946);
668
+ }, "XabnH": function(_0x51bf20, _0xe5ae99, _0x2d0b2d) {
669
+ return _0x51bf20(_0xe5ae99, _0x2d0b2d);
670
+ }, "zxoAS": _0xa78d72(281), "EMxHT": function(_0x3ef8bf, _0x5b8003) {
671
+ return _0x3ef8bf(_0x5b8003);
672
+ }, "OrrCz": function(_0x319a63, _0x15923f, _0xe8bd8a) {
673
+ return _0x319a63(_0x15923f, _0xe8bd8a);
674
+ }, "DhEmq": function(_0x4e94c5, _0x54cd90) {
675
+ return _0x4e94c5 === _0x54cd90;
676
+ }, "nKUoO": "POST", "qCTJV": function(_0x1f594f, _0x1156ea, _0x42bb77) {
677
+ return _0x1f594f(_0x1156ea, _0x42bb77);
678
+ }, "IkWeJ": _0xa78d72(280), "tMQIg": _0x356f5f(332), "dLhvm": "GET, POST, DELETE", "VenRq": "2.0", "rzmhK": "mcp-session-id", "CGiaz": function(_0x3e93de, _0x145817) {
679
+ return _0x3e93de === _0x145817;
680
+ }, "peXdP": _0xa78d72(291), "qmRGt": function(_0x3970f6, _0x1d1f1c, _0x48f8ed) {
681
+ return _0x3970f6(_0x1d1f1c, _0x48f8ed);
682
+ }, "kpQjh": "Bad Request: No valid session ID provided", "xqeyg": _0x356f5f(337), "tGtcf": function(_0x14a423, _0x32173d, _0x46874a) {
683
+ return _0x14a423(_0x32173d, _0x46874a);
684
+ }, "WWWVd": function(_0x4f62f6, _0x212b31) {
685
+ return _0x4f62f6 === _0x212b31;
686
+ }, "sHVfg": function(_0x28831d, _0x45369b) {
687
+ return _0x28831d === _0x45369b;
688
+ }, "ZEsCW": function(_0x137c6a, _0xae6e0e, _0x7a3e7b) {
689
+ return _0x137c6a(_0xae6e0e, _0x7a3e7b);
690
+ }, "wYJPs": function(_0x12d2c0, _0x3f276d) {
691
+ return _0x12d2c0 === _0x3f276d;
692
+ }, "EjXtZ": "mcp-stream-proxy-server", "IxQwK": "StreamableHTTP", "RDJUO": function(_0x19bd22, _0x4c91b4) {
693
+ return _0x19bd22 !== _0x4c91b4;
694
+ }, "PgxKv": function(_0x374c6d, _0x1ceeaf) {
695
+ return _0x374c6d === _0x1ceeaf;
696
+ }, "SUhnQ": "fulfilled" }, _0xca7918 = {}, _0x2b58e6 = {}, _0x2d370c = {}, _0x4a2f0f = {};
697
+ let _0x2b6c8f = () => {
696
698
  };
697
- const _0x1a3cee = (_0x209f7e) => {
698
- _0x53a5d2 = _0x209f7e;
699
+ const _0x3d2fa1 = (_0x3df710) => {
700
+ _0x2b6c8f = _0x3df710;
699
701
  };
700
- let _0x2b24ac = () => {
702
+ let _0x595907 = () => {
701
703
  };
702
- const _0x998834 = (_0x4d8bcf) => {
703
- _0x2b24ac = _0x4d8bcf;
704
- }, _0x18e4be = async (_0x343925, _0x41cf43, _0x1ed22e) => {
705
- const _0xf98538 = _0x45f122, _0x12cc03 = _0x366cc9, _0x50a952 = new SSEServerTransport(_0x1ed22e, _0x41cf43), _0x366bd8 = _0x343925["headers"][_0x3bd65f[_0xf98538(416)]];
706
- _0x366bd8 && (_0x50a952["_sessionId"] = _0x366bd8);
707
- const _0xdc067e = _0x50a952["sessionId"];
708
- _0x5e15f9[_0xdc067e] = _0x50a952, _0x343925["on"](_0x3bd65f["UWXex"], () => {
709
- const _0x1387f9 = _0xf98538;
710
- _0x50a952[_0x1387f9(337)](), delete _0x5e15f9[_0xdc067e], delete _0x2dffd2[_0xdc067e];
704
+ const _0x223176 = (_0x51fe0e) => {
705
+ _0x595907 = _0x51fe0e;
706
+ }, _0x517e01 = async (_0x12d335, _0x29f340, _0x1cae8b) => {
707
+ const _0x240115 = _0x356f5f, _0x27d88a = _0xa78d72, _0x4e6fba = new SSEServerTransport(_0x1cae8b, _0x29f340), _0x117b22 = _0x12d335[_0x240115(305)][_0x521a3b["kLinO"]];
708
+ _0x117b22 && (_0x4e6fba[_0x240115(342)] = _0x117b22);
709
+ const _0x5ec0b6 = _0x4e6fba[_0x27d88a(320)];
710
+ _0xca7918[_0x5ec0b6] = _0x4e6fba, _0x12d335["on"](_0x521a3b["PbSkZ"], () => {
711
+ const _0x1bb0e2 = _0x27d88a;
712
+ _0x4e6fba[_0x1bb0e2(338)](), delete _0xca7918[_0x5ec0b6], delete _0x2b58e6[_0x5ec0b6];
711
713
  });
712
- const _0x131448 = {};
713
- _0x131448["listChanged"] = !![];
714
- const _0x96970b = {};
715
- _0x96970b["subscribe"] = !![], _0x96970b["listChanged"] = !![];
716
- const _0x8bdd69 = {};
717
- _0x8bdd69[_0x12cc03(393)] = !![];
718
- const _0x5b240b = {};
719
- _0x5b240b[_0xf98538(393)] = !![];
720
- const _0x37e102 = {};
721
- _0x37e102[_0xf98538(309)] = _0x131448, _0x37e102[_0x12cc03(411)] = _0x96970b, _0x37e102[_0xf98538(380)] = _0x8bdd69, _0x37e102["completions"] = {}, _0x37e102[_0xf98538(407)] = {}, _0x37e102[_0xf98538(375)] = _0x5b240b, _0x37e102["sampling"] = {}, _0x37e102[_0x12cc03(413)] = {};
722
- const _0x3fb912 = _0x37e102, _0x325ed2 = {};
723
- _0x325ed2["name"] = _0x3bd65f[_0xf98538(357)], _0x325ed2[_0x12cc03(310)] = _0xf98538(404);
724
- const _0x1286b7 = {};
725
- _0x1286b7[_0x12cc03(381)] = _0x3fb912;
726
- const _0x52b902 = new Client(_0x325ed2, _0x1286b7);
727
- _0x2dffd2[_0xdc067e] = { "client": _0x52b902, "transport": _0x50a952, "user": _0x343925["auth"] || _0x343925["user"], "device": _0x3bd65f["tOrTB"](getDeviceInfo, _0x343925), "type": "SSE" }, _0x50a952["onerror"] = (_0x1442fa) => {
728
- const _0x183df2 = _0x12cc03;
729
- _0x3bd65f[_0x183df2(370)](_0x53a5d2, { "client": _0x52b902, "transport": _0x50a952, "error": _0x1442fa, "type": _0x3bd65f[_0x183df2(335)] });
730
- }, initTwinClientHandler(_0x52b902, _0x50a952), await _0x52b902[_0xf98538(312)](_0x50a952);
731
- }, _0x385d91 = async (_0x38e7b6, _0x596c71, _0x4353f8) => {
714
+ const _0x1c15d3 = {};
715
+ _0x1c15d3["listChanged"] = !![];
716
+ const _0x345732 = {};
717
+ _0x345732[_0x27d88a(385)] = !![], _0x345732["listChanged"] = !![];
718
+ const _0x1cd3ac = {};
719
+ _0x1cd3ac[_0x240115(362)] = !![];
720
+ const _0x2072d8 = {};
721
+ _0x2072d8["listChanged"] = !![];
722
+ const _0x39f2d8 = {};
723
+ _0x39f2d8[_0x27d88a(333)] = _0x1c15d3, _0x39f2d8["resources"] = _0x345732, _0x39f2d8[_0x27d88a(314)] = _0x1cd3ac, _0x39f2d8[_0x240115(278)] = {}, _0x39f2d8[_0x27d88a(315)] = {}, _0x39f2d8[_0x240115(330)] = _0x2072d8, _0x39f2d8[_0x27d88a(303)] = {}, _0x39f2d8[_0x240115(285)] = {};
724
+ const _0x229650 = _0x39f2d8, _0x4cd952 = {};
725
+ _0x4cd952["name"] = _0x521a3b[_0x27d88a(380)], _0x4cd952[_0x27d88a(325)] = _0x521a3b[_0x240115(266)];
726
+ const _0x1b1021 = {};
727
+ _0x1b1021[_0x27d88a(360)] = _0x229650;
728
+ const _0x28a162 = new Client(_0x4cd952, _0x1b1021);
729
+ _0x2b58e6[_0x5ec0b6] = { "client": _0x28a162, "transport": _0x4e6fba, "user": _0x12d335[_0x240115(302)] || _0x12d335[_0x240115(348)], "device": _0x521a3b["WOwsg"](getDeviceInfo, _0x12d335), "type": _0x27d88a(350) }, _0x4e6fba["onerror"] = (_0x5cd65c) => {
730
+ const _0x2ac346 = _0x240115;
731
+ _0x521a3b["IQrpu"](_0x2b6c8f, { "client": _0x28a162, "transport": _0x4e6fba, "error": _0x5cd65c, "type": _0x521a3b[_0x2ac346(309)] });
732
+ }, _0x521a3b["XabnH"](initTwinClientHandler, _0x28a162, _0x4e6fba), await _0x28a162["connect"](_0x4e6fba);
733
+ }, _0xd3034b = async (_0x162351, _0x32540f, _0x44723c) => {
732
734
  var _a;
733
- const _0x3db27c = _0x366cc9, _0x2e6fee = _0x45f122, _0x28d740 = _0x38e7b6[_0x3db27c(346)][_0x2e6fee(417)], _0x45fda1 = (_a = _0x2dffd2[_0x28d740]) == null ? void 0 : _a["client"];
734
- if (!_0x45fda1) {
735
- _0x596c71["status"](-4983 + -1 * 9491 + 1 * 14874)["send"](_0x3db27c(345) + _0x28d740);
735
+ const _0x4dff13 = _0xa78d72, _0x2f79ac = _0xa78d72, _0x2ef0b0 = { "XbcEv": function(_0x51da5a, _0x12e9fd) {
736
+ return _0x51da5a(_0x12e9fd);
737
+ }, "BigXJ": _0x521a3b[_0x4dff13(309)] }, _0x2de9da = _0x162351["query"][_0x4dff13(320)], _0x3805e8 = (_a = _0x2b58e6[_0x2de9da]) == null ? void 0 : _a[_0x2f79ac(363)];
738
+ if (!_0x3805e8) {
739
+ _0x32540f[_0x4dff13(384)](9880 + 7565 + -487 * 35)[_0x2f79ac(359)](_0x2f79ac(286) + _0x2de9da);
736
740
  return;
737
741
  }
738
- const _0x1564ef = new SSEServerTransport(_0x4353f8, _0x596c71), _0x1e9c58 = _0x1564ef["sessionId"];
739
- _0x10216e[_0x1e9c58] = _0x1564ef, _0x38e7b6["on"](_0x3bd65f["UWXex"], () => {
740
- _0x1564ef["close"](), delete _0x10216e[_0x1e9c58], delete _0xe7dee8[_0x1e9c58];
742
+ const _0x1fccb8 = new SSEServerTransport(_0x44723c, _0x32540f), _0x56c90f = _0x1fccb8[_0x2f79ac(320)];
743
+ _0x2d370c[_0x56c90f] = _0x1fccb8, _0x162351["on"]("close", () => {
744
+ const _0x48fdc1 = _0x2f79ac;
745
+ _0x1fccb8[_0x48fdc1(338)](), delete _0x2d370c[_0x56c90f], delete _0x4a2f0f[_0x56c90f];
741
746
  });
742
- const _0x379be7 = {};
743
- _0x379be7[_0x3db27c(393)] = !![];
744
- const _0x3e73ed = {};
745
- _0x3e73ed[_0x3db27c(318)] = !![], _0x3e73ed[_0x2e6fee(393)] = !![];
746
- const _0x19796c = {};
747
- _0x19796c["listChanged"] = !![];
748
- const _0x2eb53c = {};
749
- _0x2eb53c[_0x2e6fee(309)] = _0x379be7, _0x2eb53c[_0x2e6fee(411)] = _0x3e73ed, _0x2eb53c["tools"] = _0x19796c, _0x2eb53c["completions"] = {}, _0x2eb53c[_0x2e6fee(407)] = {};
750
- const _0xd6bf9e = _0x2eb53c, _0x25654c = {};
751
- _0x25654c[_0x2e6fee(336)] = _0x3bd65f[_0x3db27c(368)], _0x25654c["version"] = _0x3bd65f[_0x2e6fee(382)];
752
- const _0x15d2b6 = {};
753
- _0x15d2b6[_0x2e6fee(381)] = _0xd6bf9e;
754
- const _0x477feb = new McpServer(_0x25654c, _0x15d2b6);
755
- _0xe7dee8[_0x1e9c58] = { "mcpServer": _0x477feb, "transport": _0x1564ef, "client": _0x28d740, "user": _0x38e7b6[_0x3db27c(418)] || _0x38e7b6[_0x2e6fee(426)], "device": _0x3bd65f["tOrTB"](getDeviceInfo, _0x38e7b6), "type": _0x3bd65f["jiGQt"] }, _0x1564ef[_0x3db27c(376)] = (_0x52b353) => {
756
- const _0x3c863e = _0x3db27c, _0x269b14 = _0x2e6fee, _0x113f41 = {};
757
- _0x113f41[_0x3c863e(398)] = _0x477feb, _0x113f41[_0x269b14(354)] = _0x1564ef, _0x113f41["client"] = _0x28d740, _0x113f41["error"] = _0x52b353, _0x113f41["type"] = "SSE", _0x2b24ac(_0x113f41);
758
- }, await _0x477feb[_0x3db27c(312)](_0x1564ef), _0x3bd65f["IsLWU"](forwardProxyServer, _0x477feb["server"], _0x45fda1);
759
- }, _0x1eda8e = async (_0x177122, _0x467126) => {
760
- const _0x1f3611 = _0x45f122, _0x47a646 = _0x45f122, _0x11c84f = _0x177122["query"][_0x1f3611(417)], _0x20ac80 = _0x5e15f9[_0x11c84f] || _0x10216e[_0x11c84f];
761
- _0x20ac80 ? await _0x20ac80[_0x47a646(328)](_0x177122, _0x467126) : _0x467126[_0x1f3611(353)](523 * 1 + 7483 + -7606 * 1)["send"](_0x47a646(360));
762
- }, _0x260117 = async (_0x134be1, _0x632f12) => {
763
- const _0x379847 = _0x45f122, _0xdf0ea1 = _0x366cc9;
764
- if (_0x3bd65f[_0x379847(314)](_0x134be1[_0xdf0ea1(385)], "POST")) await _0x3bd65f["IsLWU"](_0x2a9db2, _0x134be1, _0x632f12);
765
- else _0x3bd65f["MnmYe"](_0x134be1["method"], _0x3bd65f["Zmjjs"]) || _0x134be1[_0x379847(385)] === _0x3bd65f[_0xdf0ea1(423)] ? await _0x3bd65f[_0x379847(386)](_0x514e4f, _0x134be1, _0x632f12) : await _0x3bd65f["tOrTB"](_0x4c9429, _0x632f12);
766
- }, _0x4c9429 = async (_0x179cd8) => {
767
- const _0x300578 = _0x45f122, _0x590ea7 = _0x45f122, _0xf09263 = {};
768
- _0xf09263["Allow"] = _0x300578(352);
769
- const _0x212787 = {};
770
- _0x212787["code"] = -32e3, _0x212787["message"] = _0x300578(313);
771
- const _0x5e23da = {};
772
- _0x5e23da["jsonrpc"] = _0x3bd65f[_0x590ea7(399)], _0x5e23da[_0x300578(388)] = _0x212787, _0x5e23da["id"] = null, _0x179cd8["writeHead"](29 * -5 + 4499 * -2 + 9548, _0xf09263)["end"](JSON[_0x590ea7(383)](_0x5e23da));
773
- }, _0x514e4f = async (_0xca8fbf, _0x327708) => {
774
- const _0x3416f2 = _0x45f122, _0x5a09ac = _0xca8fbf[_0x3416f2(344)][_0x3bd65f["JuViw"]], _0x391cd8 = _0x5e15f9[_0x5a09ac];
775
- _0x391cd8 ? (await _0x391cd8["handleRequest"](_0xca8fbf, _0x327708), _0x3bd65f["MnmYe"](_0xca8fbf[_0x3416f2(385)], "DELETE") && (delete _0x5e15f9[_0x5a09ac], delete _0x2dffd2[_0x5a09ac])) : _0x327708["status"](16 * -47 + 6800 + -2 * 2824)["send"]("Invalid or missing session ID");
776
- }, _0x2a9db2 = async (_0x3a639d, _0x5615a3) => {
777
- const _0x59a9b9 = _0x366cc9, _0x13579d = _0x45f122;
747
+ const _0x2efd88 = {};
748
+ _0x2efd88[_0x4dff13(362)] = !![];
749
+ const _0x39b90e = {};
750
+ _0x39b90e["subscribe"] = !![], _0x39b90e[_0x4dff13(362)] = !![];
751
+ const _0x3ee090 = {};
752
+ _0x3ee090[_0x4dff13(362)] = !![];
753
+ const _0x4f625d = {};
754
+ _0x4f625d[_0x2f79ac(333)] = _0x2efd88, _0x4f625d["resources"] = _0x39b90e, _0x4f625d["tools"] = _0x3ee090, _0x4f625d[_0x2f79ac(278)] = {}, _0x4f625d[_0x2f79ac(315)] = {};
755
+ const _0x52a4f6 = _0x4f625d, _0x260186 = {};
756
+ _0x260186[_0x2f79ac(313)] = _0x521a3b[_0x2f79ac(270)], _0x260186[_0x2f79ac(325)] = _0x521a3b[_0x2f79ac(266)];
757
+ const _0x535777 = {};
758
+ _0x535777["capabilities"] = _0x52a4f6;
759
+ const _0xfee25f = new McpServer(_0x260186, _0x535777);
760
+ _0x4a2f0f[_0x56c90f] = { "mcpServer": _0xfee25f, "transport": _0x1fccb8, "client": _0x2de9da, "user": _0x162351[_0x4dff13(302)] || _0x162351["user"], "device": _0x521a3b["EMxHT"](getDeviceInfo, _0x162351), "type": _0x521a3b[_0x2f79ac(309)] }, _0x1fccb8["onerror"] = (_0x1e2887) => {
761
+ _0x2ef0b0["XbcEv"](_0x595907, { "mcpServer": _0xfee25f, "transport": _0x1fccb8, "client": _0x2de9da, "error": _0x1e2887, "type": _0x2ef0b0["BigXJ"] });
762
+ }, await _0xfee25f["connect"](_0x1fccb8), _0x521a3b[_0x2f79ac(326)](forwardProxyServer, _0xfee25f[_0x4dff13(288)], _0x3805e8);
763
+ }, _0x169d65 = async (_0x3a8589, _0x51fa73) => {
764
+ const _0x491692 = _0x356f5f, _0x5d63a5 = _0x356f5f, _0x13164a = _0x3a8589[_0x491692(386)][_0x5d63a5(320)], _0xeb9fff = _0xca7918[_0x13164a] || _0x2d370c[_0x13164a];
765
+ _0xeb9fff ? await _0xeb9fff[_0x491692(371)](_0x3a8589, _0x51fa73) : _0x51fa73[_0x491692(384)](-5 * -1503 + -1 * -3534 + -10649)[_0x5d63a5(359)]("No transport found");
766
+ }, _0x54856e = async (_0x389c72, _0x91a3f6) => {
767
+ const _0x19c7f8 = _0x356f5f, _0x3d83a4 = _0x356f5f;
768
+ if (_0x521a3b[_0x19c7f8(356)](_0x389c72[_0x19c7f8(355)], _0x521a3b[_0x3d83a4(369)])) await _0x521a3b[_0x19c7f8(329)](_0x3846f2, _0x389c72, _0x91a3f6);
769
+ else _0x389c72[_0x19c7f8(355)] === _0x521a3b[_0x3d83a4(346)] || _0x389c72["method"] === _0x521a3b["tMQIg"] ? await _0x521a3b["XabnH"](_0xa97d05, _0x389c72, _0x91a3f6) : await _0x521a3b["WOwsg"](_0x5177ff, _0x91a3f6);
770
+ }, _0x5177ff = async (_0x578ba5) => {
771
+ const _0x34c7fe = _0xa78d72, _0x5e3da9 = _0x356f5f, _0x3bdba1 = {};
772
+ _0x3bdba1[_0x34c7fe(301)] = _0x521a3b[_0x34c7fe(276)];
773
+ const _0x3f2b60 = {};
774
+ _0x3f2b60["code"] = -32e3, _0x3f2b60[_0x5e3da9(367)] = _0x34c7fe(388);
775
+ const _0x318b58 = {};
776
+ _0x318b58[_0x34c7fe(289)] = _0x521a3b["VenRq"], _0x318b58["error"] = _0x3f2b60, _0x318b58["id"] = null, _0x578ba5["writeHead"](-941 * -4 + 1607 + 13 * -382, _0x3bdba1)[_0x34c7fe(307)](JSON["stringify"](_0x318b58));
777
+ }, _0xa97d05 = async (_0x12307f, _0xb6cab3) => {
778
+ const _0x41e3a2 = _0xa78d72, _0x430834 = _0xa78d72, _0x5dd679 = _0x12307f["headers"][_0x521a3b["rzmhK"]], _0x2e32a7 = _0xca7918[_0x5dd679];
779
+ _0x2e32a7 ? (await _0x2e32a7[_0x41e3a2(353)](_0x12307f, _0xb6cab3), _0x521a3b["CGiaz"](_0x12307f["method"], _0x521a3b[_0x430834(347)]) && (delete _0xca7918[_0x5dd679], delete _0x2b58e6[_0x5dd679])) : _0xb6cab3[_0x430834(384)](5 * -467 + 1 * -2659 + -87 * -62)[_0x41e3a2(359)]("Invalid or missing session ID");
780
+ }, _0x3846f2 = async (_0x44f0a1, _0xe79278) => {
781
+ const _0x493add = _0xa78d72, _0x35133d = _0x356f5f, _0x5381fd = { "dCZKQ": function(_0x148016, _0x194075) {
782
+ return _0x148016(_0x194075);
783
+ }, "fmIVP": "StreamableHTTP" };
778
784
  try {
779
- const _0x35a7e3 = _0x3a639d[_0x59a9b9(344)]["mcp-session-id"], _0x321df3 = _0x3a639d["headers"]["stream-session-id"];
780
- let _0x4368f1 = _0x5e15f9[_0x35a7e3];
781
- if (_0x4368f1) await _0x4368f1["handleRequest"](_0x3a639d, _0x5615a3, _0x3a639d[_0x59a9b9(377)]);
785
+ const _0x53c27d = _0x44f0a1["headers"][_0x521a3b["rzmhK"]], _0x333822 = _0x44f0a1["headers"][_0x493add(282)];
786
+ let _0x4284e0 = _0xca7918[_0x53c27d];
787
+ if (_0x4284e0) await _0x4284e0[_0x35133d(353)](_0x44f0a1, _0xe79278, _0x44f0a1["body"]);
782
788
  else {
783
- if (!_0x35a7e3 && _0x3bd65f[_0x13579d(308)](isInitializeRequest, _0x3a639d[_0x59a9b9(377)])) {
784
- const _0x19e54f = {};
785
- _0x19e54f[_0x59a9b9(362)] = () => _0x321df3, _0x4368f1 = new StreamableHTTPServerTransport(_0x19e54f);
786
- const _0x2e32b7 = {};
787
- _0x2e32b7["listChanged"] = !![];
788
- const _0x56464b = {};
789
- _0x56464b[_0x59a9b9(318)] = !![], _0x56464b[_0x13579d(393)] = !![];
790
- const _0x18cfc6 = {};
791
- _0x18cfc6["listChanged"] = !![];
792
- const _0x48cb7f = {};
793
- _0x48cb7f[_0x13579d(393)] = !![];
794
- const _0x1dc16e = {};
795
- _0x1dc16e["prompts"] = _0x2e32b7, _0x1dc16e[_0x13579d(411)] = _0x56464b, _0x1dc16e["tools"] = _0x18cfc6, _0x1dc16e["completions"] = {}, _0x1dc16e["logging"] = {}, _0x1dc16e[_0x13579d(375)] = _0x48cb7f, _0x1dc16e["sampling"] = {}, _0x1dc16e["elicitation"] = {};
796
- const _0x4a8549 = _0x1dc16e, _0x3d3167 = {};
797
- _0x3d3167["name"] = _0x3bd65f["gFkTc"], _0x3d3167[_0x59a9b9(310)] = _0x3bd65f["dMURb"];
798
- const _0x1db239 = {};
799
- _0x1db239["capabilities"] = _0x4a8549;
800
- const _0x25c872 = new Client(_0x3d3167, _0x1db239);
801
- _0x3bd65f[_0x59a9b9(333)](initTwinClientHandler, _0x25c872, _0x4368f1), _0x2dffd2[_0x321df3] = { "client": _0x25c872, "transport": _0x4368f1, "user": _0x3a639d["auth"] || _0x3a639d["user"], "device": _0x3bd65f["CFhYM"](getDeviceInfo, _0x3a639d), "type": _0x3bd65f["xmKBD"] }, _0x5e15f9[_0x321df3] = _0x4368f1, _0x4368f1[_0x13579d(417)] = _0x321df3, _0x4368f1["onclose"] = () => {
802
- const _0x2aef8d = _0x4368f1["sessionId"];
803
- _0x2aef8d && _0x5e15f9[_0x2aef8d] && (delete _0x5e15f9[_0x2aef8d], delete _0x2dffd2[_0x2aef8d]);
804
- }, _0x4368f1[_0x59a9b9(376)] = (_0x23432f) => {
805
- const _0x5dfea9 = _0x13579d;
806
- _0x3bd65f["Isgge"](_0x53a5d2, { "client": _0x25c872, "transport": _0x4368f1, "error": _0x23432f, "type": _0x3bd65f[_0x5dfea9(355)] });
807
- }, await _0x25c872[_0x13579d(312)](_0x4368f1), await _0x4368f1["handleRequest"](_0x3a639d, _0x5615a3, _0x3a639d[_0x13579d(377)]);
789
+ if (!_0x53c27d && isInitializeRequest(_0x44f0a1[_0x493add(336)])) {
790
+ const _0x3218a1 = {};
791
+ _0x3218a1["sessionIdGenerator"] = () => _0x333822, _0x4284e0 = new StreamableHTTPServerTransport(_0x3218a1);
792
+ const _0x413162 = {};
793
+ _0x413162[_0x35133d(362)] = !![];
794
+ const _0x31603f = {};
795
+ _0x31603f[_0x35133d(385)] = !![], _0x31603f[_0x35133d(362)] = !![];
796
+ const _0x1485b8 = {};
797
+ _0x1485b8[_0x35133d(362)] = !![];
798
+ const _0x1a92de = {};
799
+ _0x1a92de["listChanged"] = !![];
800
+ const _0x1240d3 = {};
801
+ _0x1240d3["prompts"] = _0x413162, _0x1240d3["resources"] = _0x31603f, _0x1240d3[_0x35133d(314)] = _0x1485b8, _0x1240d3[_0x35133d(278)] = {}, _0x1240d3[_0x35133d(315)] = {}, _0x1240d3["roots"] = _0x1a92de, _0x1240d3["sampling"] = {}, _0x1240d3[_0x493add(285)] = {};
802
+ const _0x521e2e = _0x1240d3, _0x13ab2f = {};
803
+ _0x13ab2f[_0x493add(313)] = _0x521a3b["peXdP"], _0x13ab2f["version"] = _0x521a3b[_0x35133d(266)];
804
+ const _0x437219 = {};
805
+ _0x437219[_0x493add(360)] = _0x521e2e;
806
+ const _0x3e728f = new Client(_0x13ab2f, _0x437219);
807
+ _0x521a3b[_0x35133d(298)](initTwinClientHandler, _0x3e728f, _0x4284e0), _0x2b58e6[_0x333822] = { "client": _0x3e728f, "transport": _0x4284e0, "user": _0x44f0a1["auth"] || _0x44f0a1["user"], "device": getDeviceInfo(_0x44f0a1), "type": _0x493add(294) }, _0xca7918[_0x333822] = _0x4284e0, _0x4284e0[_0x35133d(320)] = _0x333822, _0x4284e0["onclose"] = () => {
808
+ const _0x535e24 = _0x4284e0["sessionId"];
809
+ _0x535e24 && _0xca7918[_0x535e24] && (delete _0xca7918[_0x535e24], delete _0x2b58e6[_0x535e24]);
810
+ }, _0x4284e0["onerror"] = (_0x223810) => {
811
+ _0x5381fd["dCZKQ"](_0x2b6c8f, { "client": _0x3e728f, "transport": _0x4284e0, "error": _0x223810, "type": _0x5381fd["fmIVP"] });
812
+ }, await _0x3e728f["connect"](_0x4284e0), await _0x4284e0[_0x35133d(353)](_0x44f0a1, _0xe79278, _0x44f0a1[_0x493add(336)]);
808
813
  } else {
809
- const _0x1da915 = {};
810
- _0x1da915["jsonrpc"] = _0x3bd65f[_0x13579d(399)], _0x1da915[_0x13579d(388)] = {}, _0x1da915["id"] = null, _0x1da915[_0x13579d(388)]["code"] = -(11 * -1137 + 3637 + 20435 * 2), _0x1da915[_0x13579d(388)]["message"] = _0x3bd65f[_0x13579d(322)], _0x5615a3[_0x59a9b9(353)](4441 + -394 + -3647 * 1)[_0x13579d(424)](_0x1da915);
814
+ const _0x54620f = {};
815
+ _0x54620f["jsonrpc"] = _0x521a3b["VenRq"], _0x54620f[_0x35133d(293)] = {}, _0x54620f["id"] = null, _0x54620f[_0x35133d(293)]["code"] = -(5 * -9497 + -63087 + 142572), _0x54620f[_0x35133d(293)]["message"] = _0x521a3b[_0x493add(343)], _0xe79278[_0x35133d(384)](67 * -2 + 5236 + -2351 * 2)[_0x35133d(345)](_0x54620f);
811
816
  }
812
817
  }
813
818
  } catch {
814
- if (!_0x5615a3[_0x59a9b9(409)]) {
815
- const _0x112089 = {};
816
- _0x112089["jsonrpc"] = _0x3bd65f["hCjHy"], _0x112089[_0x59a9b9(388)] = {}, _0x112089["id"] = null, _0x112089[_0x59a9b9(388)][_0x13579d(412)] = -32603, _0x112089[_0x59a9b9(388)]["message"] = _0x3bd65f["HjNnp"], _0x5615a3[_0x59a9b9(353)](-3189 * 3 + 295 * 20 + 4167)["json"](_0x112089);
819
+ if (!_0xe79278["headersSent"]) {
820
+ const _0x1bcec9 = {};
821
+ _0x1bcec9["jsonrpc"] = _0x521a3b["VenRq"], _0x1bcec9["error"] = {}, _0x1bcec9["id"] = null, _0x1bcec9["error"]["code"] = -32603, _0x1bcec9["error"]["message"] = _0x521a3b["xqeyg"], _0xe79278[_0x35133d(384)](-9495 + -496 * 16 + 17931)["json"](_0x1bcec9);
817
822
  }
818
823
  }
819
- }, _0xd0ea7e = async (_0x1bb2c2, _0x1380ed) => {
820
- const _0x349537 = _0x366cc9;
821
- if (_0x3bd65f["MnmYe"](_0x1bb2c2["method"], _0x349537(351))) await _0x3bd65f[_0x349537(429)](_0x42e735, _0x1bb2c2, _0x1380ed);
822
- else _0x3bd65f["aAlJA"](_0x1bb2c2[_0x349537(385)], "GET") || _0x3bd65f["CcOpT"](_0x1bb2c2["method"], _0x3bd65f[_0x349537(423)]) ? await _0x3bd65f[_0x349537(334)](_0x5be953, _0x1bb2c2, _0x1380ed) : await _0x3bd65f["tOrTB"](_0x4c9429, _0x1380ed);
823
- }, _0x5be953 = async (_0x22a989, _0x5eba24) => {
824
- const _0x1372d1 = _0x45f122, _0x1b7c3a = _0x22a989[_0x1372d1(344)][_0x3bd65f["JuViw"]], _0x2d5332 = _0x10216e[_0x1b7c3a];
825
- _0x2d5332 ? (await _0x2d5332["handleRequest"](_0x22a989, _0x5eba24), _0x3bd65f["MnmYe"](_0x22a989["method"], _0x3bd65f["xrxSg"]) && (delete _0x10216e[_0x1b7c3a], delete _0xe7dee8[_0x1b7c3a])) : _0x5eba24[_0x1372d1(353)](-138 * -22 + 1681 * -1 + -955)[_0x1372d1(329)](_0x3bd65f["KVwnS"]);
826
- }, _0x42e735 = async (_0x27f4db, _0x410220) => {
824
+ }, _0x274c7c = async (_0x58599f, _0x338f96) => {
825
+ const _0x7a6d7b = _0xa78d72, _0x438520 = _0x356f5f;
826
+ if (_0x521a3b["CGiaz"](_0x58599f[_0x7a6d7b(355)], "POST")) await _0x521a3b[_0x438520(316)](_0x322cdc, _0x58599f, _0x338f96);
827
+ else _0x521a3b[_0x438520(319)](_0x58599f[_0x438520(355)], _0x521a3b["IkWeJ"]) || _0x521a3b[_0x7a6d7b(274)](_0x58599f[_0x7a6d7b(355)], _0x521a3b["tMQIg"]) ? await _0x521a3b[_0x438520(379)](_0xc40260, _0x58599f, _0x338f96) : await _0x521a3b[_0x7a6d7b(312)](_0x5177ff, _0x338f96);
828
+ }, _0xc40260 = async (_0x34780f, _0xab6027) => {
829
+ const _0x58dfa5 = _0x356f5f, _0x3bf700 = _0xa78d72, _0x126f06 = _0x34780f[_0x58dfa5(305)][_0x521a3b[_0x58dfa5(311)]], _0x2f07f4 = _0x2d370c[_0x126f06];
830
+ _0x2f07f4 ? (await _0x2f07f4["handleRequest"](_0x34780f, _0xab6027), _0x521a3b["wYJPs"](_0x34780f["method"], _0x521a3b[_0x3bf700(347)]) && (delete _0x2d370c[_0x126f06], delete _0x4a2f0f[_0x126f06])) : _0xab6027["status"](13 * -49 + -7451 * 1 + 8488)[_0x58dfa5(359)](_0x3bf700(354));
831
+ }, _0x322cdc = async (_0x4b31e0, _0xa63506) => {
827
832
  var _a;
828
- const _0x476f52 = _0x366cc9, _0x40ecc3 = _0x366cc9;
833
+ const _0x95628c = _0xa78d72, _0x4aa102 = _0x356f5f, _0x298da4 = { "lGlsW": function(_0x3b1c26, _0x19dffb) {
834
+ return _0x3b1c26(_0x19dffb);
835
+ } };
829
836
  try {
830
- const _0x2bc3cd = _0x27f4db[_0x476f52(344)][_0x3bd65f[_0x476f52(378)]], _0xbd3448 = _0x27f4db["query"]["sessionId"];
831
- let _0x4352e6 = _0x10216e[_0x2bc3cd];
832
- if (_0x4352e6) await _0x4352e6[_0x40ecc3(321)](_0x27f4db, _0x410220, _0x27f4db[_0x476f52(377)]);
837
+ const _0x2f863d = _0x4b31e0[_0x95628c(305)][_0x521a3b[_0x95628c(311)]], _0x5ece38 = _0x4b31e0["query"][_0x95628c(320)];
838
+ let _0x29b996 = _0x2d370c[_0x2f863d];
839
+ if (_0x29b996) await _0x29b996[_0x4aa102(353)](_0x4b31e0, _0xa63506, _0x4b31e0[_0x95628c(336)]);
833
840
  else {
834
- if (!_0x2bc3cd && _0x3bd65f[_0x476f52(348)](isInitializeRequest, _0x27f4db[_0x476f52(377)])) {
835
- const _0x101a7e = (_a = _0x2dffd2[_0xbd3448]) == null ? void 0 : _a[_0x476f52(389)];
836
- if (!_0x101a7e) {
837
- _0x410220["status"](7408 + 331 * -13 + -2705)["send"](_0x476f52(345) + _0xbd3448);
841
+ if (!_0x2f863d && _0x521a3b[_0x4aa102(283)](isInitializeRequest, _0x4b31e0["body"])) {
842
+ const _0x1b8d42 = (_a = _0x2b58e6[_0x5ece38]) == null ? void 0 : _a["client"];
843
+ if (!_0x1b8d42) {
844
+ _0xa63506[_0x95628c(384)](19 * 25 + 3 * -2417 + -26 * -276)["send"](_0x4aa102(286) + _0x5ece38);
838
845
  return;
839
846
  }
840
- const _0xc3b56d = _0x198425["randomUUID"](), _0x3ad461 = {};
841
- _0x3ad461[_0x40ecc3(362)] = () => _0xc3b56d, _0x4352e6 = new StreamableHTTPServerTransport(_0x3ad461);
842
- const _0x4f69b0 = {};
843
- _0x4f69b0[_0x476f52(393)] = !![];
844
- const _0xd9e458 = {};
845
- _0xd9e458[_0x40ecc3(318)] = !![], _0xd9e458[_0x476f52(393)] = !![];
846
- const _0x3cb19d = {};
847
- _0x3cb19d[_0x476f52(393)] = !![];
848
- const _0x367e1e = {};
849
- _0x367e1e["prompts"] = _0x4f69b0, _0x367e1e["resources"] = _0xd9e458, _0x367e1e["tools"] = _0x3cb19d, _0x367e1e[_0x40ecc3(367)] = {}, _0x367e1e["logging"] = {};
850
- const _0x89bb6 = _0x367e1e, _0xb30a8d = {};
851
- _0xb30a8d["name"] = _0x476f52(371), _0xb30a8d[_0x40ecc3(310)] = _0x3bd65f["dMURb"];
852
- const _0x180afd = {};
853
- _0x180afd["capabilities"] = _0x89bb6;
854
- const _0x6791ba = new McpServer(_0xb30a8d, _0x180afd);
855
- _0xe7dee8[_0xc3b56d] = { "mcpServer": _0x6791ba, "transport": _0x4352e6, "client": _0xbd3448, "user": _0x27f4db["auth"] || _0x27f4db["user"], "device": _0x3bd65f[_0x476f52(427)](getDeviceInfo, _0x27f4db), "type": _0x3bd65f[_0x476f52(355)] }, _0x10216e[_0xc3b56d] = _0x4352e6, _0x4352e6["sessionId"] = _0xc3b56d, _0x4352e6[_0x476f52(339)] = () => {
856
- const _0x117681 = _0x4352e6["sessionId"];
857
- _0x117681 && _0x5e15f9[_0x117681] && (delete _0x10216e[_0x117681], delete _0xe7dee8[_0x117681]);
858
- }, _0x4352e6["onerror"] = (_0x54d64b) => {
859
- const _0x260711 = _0x40ecc3, _0x4faffc = _0x476f52, _0x1a6c2d = {};
860
- _0x1a6c2d["mcpServer"] = _0x6791ba, _0x1a6c2d["transport"] = _0x4352e6, _0x1a6c2d["client"] = _0xbd3448, _0x1a6c2d[_0x260711(388)] = _0x54d64b, _0x1a6c2d[_0x260711(396)] = _0x4faffc(365), _0x3bd65f[_0x260711(427)](_0x2b24ac, _0x1a6c2d);
861
- }, await _0x6791ba[_0x476f52(312)](_0x4352e6), _0x3bd65f["AwNKh"](forwardProxyServer, _0x6791ba[_0x476f52(395)], _0x101a7e), await _0x4352e6["handleRequest"](_0x27f4db, _0x410220, _0x27f4db["body"]);
847
+ const _0x128afa = _0x15ecde[_0x95628c(365)](), _0x4f3b0b = {};
848
+ _0x4f3b0b[_0x4aa102(390)] = () => _0x128afa, _0x29b996 = new StreamableHTTPServerTransport(_0x4f3b0b);
849
+ const _0x30cb25 = {};
850
+ _0x30cb25["listChanged"] = !![];
851
+ const _0x171ff6 = {};
852
+ _0x171ff6[_0x4aa102(385)] = !![], _0x171ff6["listChanged"] = !![];
853
+ const _0x30475b = {};
854
+ _0x30475b[_0x4aa102(362)] = !![];
855
+ const _0x1a2841 = {};
856
+ _0x1a2841[_0x4aa102(333)] = _0x30cb25, _0x1a2841[_0x95628c(340)] = _0x171ff6, _0x1a2841[_0x4aa102(314)] = _0x30475b, _0x1a2841["completions"] = {}, _0x1a2841[_0x95628c(315)] = {};
857
+ const _0x29300a = _0x1a2841, _0x3ca8b0 = {};
858
+ _0x3ca8b0[_0x95628c(313)] = _0x521a3b[_0x95628c(364)], _0x3ca8b0[_0x4aa102(325)] = _0x521a3b[_0x4aa102(266)];
859
+ const _0x3c012b = {};
860
+ _0x3c012b[_0x95628c(360)] = _0x29300a;
861
+ const _0x22992e = new McpServer(_0x3ca8b0, _0x3c012b);
862
+ _0x4a2f0f[_0x128afa] = { "mcpServer": _0x22992e, "transport": _0x29b996, "client": _0x5ece38, "user": _0x4b31e0[_0x95628c(302)] || _0x4b31e0[_0x4aa102(348)], "device": _0x521a3b[_0x4aa102(312)](getDeviceInfo, _0x4b31e0), "type": _0x521a3b[_0x95628c(268)] }, _0x2d370c[_0x128afa] = _0x29b996, _0x29b996["sessionId"] = _0x128afa, _0x29b996[_0x95628c(310)] = () => {
863
+ const _0x47aa14 = _0x29b996["sessionId"];
864
+ _0x47aa14 && _0xca7918[_0x47aa14] && (delete _0x2d370c[_0x47aa14], delete _0x4a2f0f[_0x47aa14]);
865
+ }, _0x29b996[_0x95628c(324)] = (_0x4e7e1f) => {
866
+ const _0x57bf6c = _0x95628c, _0x2cfd65 = _0x95628c, _0x560100 = {};
867
+ _0x560100["mcpServer"] = _0x22992e, _0x560100["transport"] = _0x29b996, _0x560100[_0x57bf6c(363)] = _0x5ece38, _0x560100["error"] = _0x4e7e1f, _0x560100["type"] = "StreamableHTTP", _0x298da4[_0x2cfd65(284)](_0x595907, _0x560100);
868
+ }, await _0x22992e[_0x4aa102(351)](_0x29b996), _0x521a3b[_0x95628c(316)](forwardProxyServer, _0x22992e["server"], _0x1b8d42), await _0x29b996["handleRequest"](_0x4b31e0, _0xa63506, _0x4b31e0[_0x4aa102(336)]);
862
869
  } else {
863
- const _0x4f88be = {};
864
- _0x4f88be[_0x476f52(326)] = _0x3bd65f["hCjHy"], _0x4f88be["error"] = {}, _0x4f88be["id"] = null, _0x4f88be["error"][_0x476f52(412)] = -(32983 + 25873 * -1 + 4978 * 5), _0x4f88be["error"][_0x476f52(327)] = _0x3bd65f["MCyPx"], _0x410220[_0x476f52(353)](-1566 + 125 * -37 + -169 * -39)["json"](_0x4f88be);
870
+ const _0x218e96 = {};
871
+ _0x218e96[_0x95628c(289)] = _0x521a3b["VenRq"], _0x218e96[_0x95628c(293)] = {}, _0x218e96["id"] = null, _0x218e96[_0x95628c(293)]["code"] = -(54708 + 22492 + -9040 * 5), _0x218e96[_0x95628c(293)]["message"] = _0x521a3b[_0x95628c(343)], _0xa63506["status"](-778 + 6428 + -1750 * 3)["json"](_0x218e96);
865
872
  }
866
873
  }
867
874
  } catch {
868
- if (!_0x410220["headersSent"]) {
869
- const _0x5b0fe9 = {};
870
- _0x5b0fe9["jsonrpc"] = _0x3bd65f[_0x40ecc3(399)], _0x5b0fe9[_0x476f52(388)] = {}, _0x5b0fe9["id"] = null, _0x5b0fe9[_0x476f52(388)][_0x476f52(412)] = -32603, _0x5b0fe9[_0x476f52(388)][_0x476f52(327)] = _0x3bd65f["HjNnp"], _0x410220[_0x40ecc3(353)](6 * 82 + 207 + -199)[_0x476f52(424)](_0x5b0fe9);
875
+ if (!_0xa63506[_0x95628c(299)]) {
876
+ const _0x26347e = {};
877
+ _0x26347e[_0x4aa102(289)] = _0x521a3b["VenRq"], _0x26347e["error"] = {}, _0x26347e["id"] = null, _0x26347e["error"][_0x4aa102(304)] = -32603, _0x26347e["error"][_0x95628c(367)] = _0x521a3b["xqeyg"], _0xa63506[_0x4aa102(384)](-5734 + -3721 * 1 + 9955)["json"](_0x26347e);
871
878
  }
872
879
  }
873
- }, _0x909535 = () => {
874
- const _0xf950b5 = _0x366cc9, _0x490e10 = _0x366cc9;
880
+ }, _0x571656 = () => {
881
+ const _0x14abe7 = _0xa78d72, _0x4b90b3 = _0x356f5f;
875
882
  try {
876
- Object[_0xf950b5(311)](_0x5e15f9)[_0x490e10(372)]((_0x3adf63) => _0x3adf63[_0xf950b5(337)]()), Object[_0x490e10(311)](_0x10216e)["forEach"]((_0x11c697) => _0x11c697["close"]()), Object["values"](_0x2dffd2)[_0xf950b5(372)]((_0x1bfcfa) => _0x1bfcfa[_0xf950b5(389)][_0x490e10(337)]()), Object["values"](_0xe7dee8)[_0x490e10(372)]((_0x35e2d3) => _0x35e2d3["mcpServer"][_0xf950b5(337)]());
883
+ Object[_0x14abe7(375)](_0xca7918)[_0x4b90b3(358)]((_0x5aea61) => _0x5aea61["close"]()), Object["values"](_0x2d370c)["forEach"]((_0x494c93) => _0x494c93[_0x4b90b3(338)]()), Object[_0x14abe7(375)](_0x2b58e6)["forEach"]((_0x3792c4) => _0x3792c4[_0x4b90b3(363)][_0x4b90b3(338)]()), Object["values"](_0x4a2f0f)["forEach"]((_0x419b2c) => _0x419b2c["mcpServer"]["close"]());
877
884
  } catch {
878
885
  }
879
886
  try {
880
- Object[_0x490e10(379)](_0x5e15f9)["forEach"]((_0x19750e) => delete _0x5e15f9[_0x19750e]), Object[_0xf950b5(379)](_0x10216e)["forEach"]((_0x29c57a) => delete _0x10216e[_0x29c57a]), Object[_0xf950b5(379)](_0x2dffd2)["forEach"]((_0x2b6359) => delete _0x2dffd2[_0x2b6359]), Object["keys"](_0xe7dee8)[_0xf950b5(372)]((_0xbf21b6) => delete _0xe7dee8[_0xbf21b6]);
887
+ Object[_0x14abe7(374)](_0xca7918)[_0x14abe7(358)]((_0x44b36c) => delete _0xca7918[_0x44b36c]), Object["keys"](_0x2d370c)["forEach"]((_0x359a7e) => delete _0x2d370c[_0x359a7e]), Object["keys"](_0x2b58e6)["forEach"]((_0x25f4db) => delete _0x2b58e6[_0x25f4db]), Object["keys"](_0x4a2f0f)[_0x4b90b3(358)]((_0x3cfdba) => delete _0x4a2f0f[_0x3cfdba]);
881
888
  } catch {
882
889
  }
883
890
  return {};
884
- }, _0x24ba59 = async () => {
885
- const _0x2b1d55 = _0x366cc9, _0x370416 = _0x366cc9, _0x413489 = { "qLStB": function(_0x510a6a, _0x5030f2) {
886
- const _0x3836a1 = _0x2f7b;
887
- return _0x3bd65f[_0x3836a1(419)](_0x510a6a, _0x5030f2);
888
- } }, _0x3a50e6 = Object[_0x2b1d55(379)](_0x2dffd2)[_0x2b1d55(387)](async (_0x4e2688) => {
889
- const _0x3073fb = _0x2b1d55, _0x485d2b = _0x2b1d55, { client: _0x5bdbfc } = _0x2dffd2[_0x4e2688];
891
+ }, _0x4adadb = async () => {
892
+ const _0x410387 = _0xa78d72, _0x3e90d2 = _0xa78d72, _0x436dd1 = { "pKdJu": function(_0x445de7, _0x2cbd37) {
893
+ return _0x521a3b["RDJUO"](_0x445de7, _0x2cbd37);
894
+ }, "awHjn": function(_0x3d9c6e, _0xa6039d) {
895
+ return _0x521a3b["PgxKv"](_0x3d9c6e, _0xa6039d);
896
+ }, "trzfV": _0x521a3b["SUhnQ"] }, _0x2323fc = Object["keys"](_0x2b58e6)[_0x410387(361)](async (_0x4e84c) => {
897
+ const _0x22bae2 = _0x410387, _0x34de8b = _0x410387, { client: _0x5d47a7 } = _0x2b58e6[_0x4e84c];
890
898
  try {
891
- const _0x1d9cbf = await _0x5bdbfc["ping"]();
892
- return { "sessionId": _0x4e2688, "shouldClose": Object["keys"](_0x1d9cbf)[_0x3073fb(325)] !== -22 * 219 + -1 * 3085 + 7903 };
899
+ const _0x5e60ac = await _0x5d47a7["ping"]();
900
+ return { "sessionId": _0x4e84c, "shouldClose": _0x436dd1["pKdJu"](Object[_0x22bae2(374)](_0x5e60ac)["length"], 1 * -1991 + -2922 + -4913 * -1) };
893
901
  } catch {
894
- const _0x252ea3 = {};
895
- return _0x252ea3[_0x485d2b(417)] = _0x4e2688, _0x252ea3[_0x3073fb(394)] = !![], _0x252ea3;
902
+ const _0x2a68e2 = {};
903
+ return _0x2a68e2[_0x34de8b(320)] = _0x4e84c, _0x2a68e2["shouldClose"] = !![], _0x2a68e2;
896
904
  }
897
- }), _0x428399 = Object["keys"](_0xe7dee8)["map"](async (_0x33d294) => {
898
- const _0x1338b8 = _0x370416, _0xb03fc3 = _0x2b1d55, { mcpServer: _0x141bf1 } = _0xe7dee8[_0x33d294];
905
+ }), _0x9cd1ba = Object[_0x3e90d2(374)](_0x4a2f0f)[_0x3e90d2(361)](async (_0x2da174) => {
906
+ const _0x2df005 = _0x3e90d2, { mcpServer: _0x2e955b } = _0x4a2f0f[_0x2da174];
899
907
  try {
900
- const _0x4900fd = await _0x141bf1[_0x1338b8(395)][_0x1338b8(402)]();
901
- return { "sessionId": _0x33d294, "shouldClose": _0x413489[_0xb03fc3(358)](Object["keys"](_0x4900fd)[_0x1338b8(325)], -303 * -7 + -576 + -1545) };
908
+ const _0x5ce4a6 = await _0x2e955b[_0x2df005(288)][_0x2df005(318)]();
909
+ return { "sessionId": _0x2da174, "shouldClose": _0x436dd1["pKdJu"](Object["keys"](_0x5ce4a6)[_0x2df005(344)], 855 + -31 * -88 + -3583) };
902
910
  } catch {
903
- const _0x5882a0 = {};
904
- return _0x5882a0["sessionId"] = _0x33d294, _0x5882a0["shouldClose"] = !![], _0x5882a0;
911
+ const _0x5a6753 = {};
912
+ return _0x5a6753["sessionId"] = _0x2da174, _0x5a6753[_0x2df005(321)] = !![], _0x5a6753;
905
913
  }
906
- }), [_0x5d90fc, _0x1181d9] = await Promise[_0x2b1d55(347)]([Promise["allSettled"](_0x3a50e6), Promise["allSettled"](_0x428399)]), _0x1b415c = [], _0x18681e = [];
907
- _0x5d90fc[_0x2b1d55(372)]((_0x55a306) => {
908
- const _0x3a1a11 = _0x370416;
909
- _0x55a306[_0x3a1a11(353)] === _0x3bd65f[_0x3a1a11(364)] && _0x55a306["value"]["shouldClose"] && _0x1b415c["push"](_0x55a306["value"]["sessionId"]);
910
- }), _0x1181d9[_0x2b1d55(372)]((_0x201eea) => {
911
- const _0x42b83e = _0x2b1d55, _0x5af32b = _0x370416;
912
- _0x201eea[_0x42b83e(353)] === _0x3bd65f["GGSyp"] && _0x201eea[_0x5af32b(349)][_0x42b83e(394)] && _0x18681e[_0x42b83e(366)](_0x201eea[_0x5af32b(349)]["sessionId"]);
914
+ }), [_0x4a0ee7, _0xc56ab9] = await Promise["all"]([Promise["allSettled"](_0x2323fc), Promise[_0x410387(366)](_0x9cd1ba)]), _0x2312c3 = [], _0x99e86b = [];
915
+ _0x4a0ee7[_0x3e90d2(358)]((_0x45a11d) => {
916
+ const _0x27e50e = _0x3e90d2, _0x34c306 = _0x410387;
917
+ _0x45a11d[_0x27e50e(384)] === "fulfilled" && _0x45a11d[_0x27e50e(296)][_0x34c306(321)] && _0x2312c3[_0x34c306(368)](_0x45a11d[_0x27e50e(296)][_0x34c306(320)]);
918
+ }), _0xc56ab9[_0x410387(358)]((_0x118e70) => {
919
+ const _0x23d0e6 = _0x410387, _0x2ff33f = _0x410387;
920
+ _0x436dd1[_0x23d0e6(389)](_0x118e70["status"], _0x436dd1[_0x2ff33f(275)]) && _0x118e70["value"][_0x23d0e6(321)] && _0x99e86b[_0x2ff33f(368)](_0x118e70[_0x2ff33f(296)][_0x23d0e6(320)]);
913
921
  });
914
- const _0x4f3792 = _0x1b415c["map"](async (_0x1cff8c) => {
922
+ const _0x154f6e = _0x2312c3["map"](async (_0x1ed1dc) => {
915
923
  var _a, _b;
916
- const _0x4abcdf = _0x2b1d55;
924
+ const _0x51cc68 = _0x3e90d2;
917
925
  try {
918
- (_a = _0x5e15f9[_0x1cff8c]) == null ? void 0 : _a[_0x4abcdf(337)](), (_b = _0x2dffd2[_0x1cff8c]) == null ? void 0 : _b["client"][_0x4abcdf(337)]();
926
+ (_a = _0xca7918[_0x1ed1dc]) == null ? void 0 : _a["close"](), (_b = _0x2b58e6[_0x1ed1dc]) == null ? void 0 : _b["client"][_0x51cc68(338)]();
919
927
  } catch {
920
928
  }
921
929
  try {
922
- delete _0x5e15f9[_0x1cff8c], delete _0x2dffd2[_0x1cff8c];
930
+ delete _0xca7918[_0x1ed1dc], delete _0x2b58e6[_0x1ed1dc];
923
931
  } catch {
924
932
  }
925
- }), _0x305506 = _0x18681e[_0x2b1d55(387)](async (_0x367fe9) => {
933
+ }), _0x63a5b = _0x99e86b["map"](async (_0x11047c) => {
926
934
  var _a, _b;
927
- const _0x5e2f3a = _0x2b1d55;
935
+ const _0x2d6c34 = _0x410387, _0x169703 = _0x3e90d2;
928
936
  try {
929
- (_a = _0x10216e[_0x367fe9]) == null ? void 0 : _a["close"](), (_b = _0xe7dee8[_0x367fe9]) == null ? void 0 : _b["mcpServer"][_0x5e2f3a(337)]();
937
+ (_a = _0x2d370c[_0x11047c]) == null ? void 0 : _a[_0x2d6c34(338)](), (_b = _0x4a2f0f[_0x11047c]) == null ? void 0 : _b[_0x2d6c34(323)][_0x169703(338)]();
930
938
  } catch {
931
939
  }
932
940
  try {
933
- delete _0x10216e[_0x367fe9], delete _0xe7dee8[_0x367fe9];
941
+ delete _0x2d370c[_0x11047c], delete _0x4a2f0f[_0x11047c];
934
942
  } catch {
935
943
  }
936
944
  });
937
- await Promise["allSettled"]([..._0x4f3792, ..._0x305506]);
938
- const _0x1f90ab = {};
939
- return _0x1f90ab["clientSessions"] = _0x1b415c, _0x1f90ab["remoterSessions"] = _0x18681e, _0x1f90ab;
940
- }, _0x44e0c6 = {};
941
- return _0x44e0c6[_0x45f122(431)] = _0x18e4be, _0x44e0c6["handleSseInspector"] = _0x385d91, _0x44e0c6["handleSseMessage"] = _0x1eda8e, _0x44e0c6[_0x45f122(422)] = _0x260117, _0x44e0c6["handleStreamInspector"] = _0xd0ea7e, _0x44e0c6["clients"] = _0x2dffd2, _0x44e0c6["remoters"] = _0xe7dee8, _0x44e0c6["transports"] = _0x5e15f9, _0x44e0c6[_0x45f122(415)] = _0x10216e, _0x44e0c6["reset"] = _0x909535, _0x44e0c6["ping"] = _0x24ba59, _0x44e0c6[_0x366cc9(338)] = _0x1a3cee, _0x44e0c6[_0x45f122(340)] = _0x998834, _0x44e0c6;
945
+ await Promise["allSettled"]([..._0x154f6e, ..._0x63a5b]);
946
+ const _0x26d18a = {};
947
+ return _0x26d18a["clientSessions"] = _0x2312c3, _0x26d18a["remoterSessions"] = _0x99e86b, _0x26d18a;
948
+ }, _0xa1a2b5 = {};
949
+ return _0xa1a2b5[_0x356f5f(308)] = _0x517e01, _0xa1a2b5[_0xa78d72(277)] = _0xd3034b, _0xa1a2b5[_0xa78d72(372)] = _0x169d65, _0xa1a2b5["handleStreamRequest"] = _0x54856e, _0xa1a2b5[_0xa78d72(322)] = _0x274c7c, _0xa1a2b5["clients"] = _0x2b58e6, _0xa1a2b5["remoters"] = _0x4a2f0f, _0xa1a2b5["transports"] = _0xca7918, _0xa1a2b5["inspectors"] = _0x2d370c, _0xa1a2b5[_0x356f5f(383)] = _0x571656, _0xa1a2b5[_0xa78d72(318)] = _0x4adadb, _0xa1a2b5["onClientError"] = _0x3d2fa1, _0xa1a2b5["onRemoterError"] = _0x223176, _0xa1a2b5;
942
950
  };
943
- function _0x6b51() {
944
- const _0x390c80 = ["tOrTB", "details", "URNvt", "params", "handleSseProxy", "mIkYm", "prompts", "version", "values", "connect", "Method not allowed.", "CcOpT", "split", "event: close\ndata: \n\n", "Bad Request: No valid session ID provided", "subscribe", "1083562jcWPcE", "addRequestListener", "handleRequest", "MCyPx", "Missing bearer token", "notifications/initialized", "length", "jsonrpc", "message", "handlePostMessage", "send", "authorization", "addNotificationListener", "_notificationHandlers", "RcENs", "spzPF", "jiGQt", "name", "close", "onClientError", "onclose", "onRemoterError", "afterInit", "mcp-session-id", "303wmcoub", "headers", "No client found for session ID ", "query", "all", "poUzV", "value", "VcuqS", "POST", "GET, POST, DELETE", "status", "transport", "xmKBD", "59124NhmyFT", "sjrOH", "qLStB", "SSE", "No transport found", "referer", "sessionIdGenerator", "242256uBBPSI", "GGSyp", "StreamableHTTP", "push", "completions", "IBanx", "9816TWKerG", "Lndqr", "mcp-stream-proxy-server", "forEach", "Internal server error", "9229910dXUjLF", "roots", "onerror", "body", "JuViw", "keys", "tools", "capabilities", "dMURb", "stringify", "_sseResponse", "method", "Hrtvy", "map", "error", "client", "resolve", "removeNotificationListener", "3944525GHCRpB", "listChanged", "shouldClose", "server", "type", "mcp-server", "mcpServer", "hCjHy", "9234JiZfnS", "initialize", "ping", "sKJxy", "1.0.0", "VcBKB", "fulfilled", "logging", "2.0", "headersSent", "22iZCOcW", "resources", "code", "elicitation", "write", "inspectors", "FCEDe", "sessionId", "auth", "ufHqk", "35FagELh", "1507854ndNPRD", "handleStreamRequest", "xrxSg", "json", "EypRd", "user"];
945
- _0x6b51 = function() {
946
- return _0x390c80;
947
- };
948
- return _0x6b51();
949
- }
950
951
  export {
951
952
  ACCESS_TOKEN_EXPIRES_IN,
952
953
  AuthServerProvider,