@opentiny/agent 0.3.1 → 0.3.2

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 +742 -737
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,952 +1,957 @@
1
- import _0xb6e97a from "jsonwebtoken";
1
+ import _0x93d5a6 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 _0x3ff0bd from "cors";
8
- import _0x3b4ea9 from "express";
7
+ import _0x42d1ae from "cors";
8
+ import _0x1ba5a3 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 _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();
14
+ (function(_0x414590, _0x4b8a15) {
15
+ const _0x1d6a63 = _0x4044, _0x4f9f34 = _0x4044, _0x2b8c88 = _0x414590();
24
16
  while (!![]) {
25
17
  try {
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"]());
18
+ const _0x3c17dd = parseInt(_0x1d6a63(501)) / (-637 + 8355 + 1 * -7717) * (parseInt(_0x4f9f34(449)) / (2932 + 9972 * 1 + -12902)) + parseInt(_0x1d6a63(459)) / (-1 * 3154 + -539 * 2 + 4235) + -parseInt(_0x4f9f34(515)) / (12 + 7728 + 7736 * -1) + -parseInt(_0x1d6a63(456)) / (-2 * -1384 + -7084 + 4321) + parseInt(_0x1d6a63(493)) / (-9640 + 3 * -2904 + 18358) + parseInt(_0x4f9f34(509)) / (-9169 + 807 * -1 + 9983) * (parseInt(_0x1d6a63(453)) / (-8925 + -1 * -787 + 8146)) + -parseInt(_0x4f9f34(506)) / (-1335 * 1 + -1928 + 3272) * (parseInt(_0x4f9f34(499)) / (3540 + 5501 + 9031 * -1));
19
+ if (_0x3c17dd === _0x4b8a15) break;
20
+ else _0x2b8c88["push"](_0x2b8c88["shift"]());
21
+ } catch (_0x45ee5f) {
22
+ _0x2b8c88["push"](_0x2b8c88["shift"]());
31
23
  }
32
24
  }
33
- })(_0xd45d, 193871 * 1 + -232149 + 605619);
34
- const forwardServerRequest = async (_0x359b10, _0x5f18c3, _0xe94488) => {
25
+ })(_0x4502, -19771 * 13 + 72868 + 1 * 316326);
26
+ function _0x4044(_0x357129, _0x319f99) {
27
+ const _0x2a0fa4 = _0x4502();
28
+ return _0x4044 = function(_0x4577a9, _0x4a6fa2) {
29
+ _0x4577a9 = _0x4577a9 - (9 * 334 + 1070 + 1 * -3631);
30
+ let _0x40fad1 = _0x2a0fa4[_0x4577a9];
31
+ return _0x40fad1;
32
+ }, _0x4044(_0x357129, _0x319f99);
33
+ }
34
+ function _0x4502() {
35
+ const _0x110955 = ["originalOnResponse", "IWycK", "mHXXj", "resources/templates/list", "readResource", "769336wESUPJ", "call", "listResources", "result", "data", "tools/list", "addRequestListener", "push", "AFyaI", "initialize", "clearNotificationListener", "prompts/list", "_onrequest", "NBngV", "ZFsMq", "length", "jsonrpc", "TgEut", "2oRtKoi", "addResponseListener", "method", "XAOgt", "7368LSLXZA", "code", "message", "1026645KrXCFZ", "rJyGJ", "onerror", "305829WseTZR", "cjyyP", "ICaQy", "resources/subscribe", "prompts/get", "completion/complete", "tQWau", "splice", "gHncM", "tools/call", "callTool", "listResourceTemplates", "kmUmj", "clearRequestListener", "indexOf", "notification", "bWxLM", "addListener", "ping", "notifications/cancelled", "kiyeT", "params", "clear", "iHAKU", "error", "mnKTH", "clearListener", "aktdr", "_onresponse", "unsubscribeResource", "iCroC", "notifications/initialized", "2.0", "vJSNK", "1489344rcYdID", "resources/list", "rDeRr", "name", "resources/unsubscribe", "handleListener", "290FPirjE", "ZfGsk", "234134Qtogqx", "transport", "subscribeResource", "send", "jLliF", "36054ZWFXMB", "setLoggingLevel", "function", "469iYmoTK"];
36
+ _0x4502 = function() {
37
+ return _0x110955;
38
+ };
39
+ return _0x4502();
40
+ }
41
+ const forwardServerRequest = async (_0x5ddbd7, _0x31537f, _0x24e0a5) => {
35
42
  var _a;
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);
43
+ const _0x161c24 = _0x4044, _0x31010d = _0x4044, _0x241b8f = {};
44
+ _0x241b8f["nxptd"] = _0x161c24(468), _0x241b8f[_0x161c24(479)] = _0x31010d(494), _0x241b8f["tNMrc"] = "resources/read", _0x241b8f[_0x31010d(511)] = _0x31010d(462), _0x241b8f["cjyyP"] = _0x31010d(497), _0x241b8f[_0x31010d(500)] = _0x161c24(526), _0x241b8f[_0x31010d(448)] = _0x161c24(464), _0x241b8f["JQxQT"] = "2.0";
45
+ const _0x2712aa = _0x241b8f, { id: _0x51aaf7, method: _0x5cf14d, params: _0x430be3 } = _0x24e0a5;
46
+ let _0x1b9c9c = {};
47
+ switch (_0x5cf14d) {
48
+ case _0x31010d(520):
49
+ _0x1b9c9c = await _0x31537f["listTools"](_0x430be3);
43
50
  break;
44
- case _0x483b74[_0x289131(310)]:
45
- _0x5820d0 = await _0x5f18c3[_0x1decbb(329)](_0x40a0f1);
51
+ case _0x2712aa["nxptd"]:
52
+ _0x1b9c9c = await _0x31537f[_0x161c24(469)](_0x430be3);
46
53
  break;
47
- case "resources/list":
48
- _0x5820d0 = await _0x5f18c3[_0x1decbb(357)](_0x40a0f1);
54
+ case _0x2712aa["kiyeT"]:
55
+ _0x1b9c9c = await _0x31537f[_0x31010d(517)](_0x430be3);
49
56
  break;
50
- case _0x483b74["yLRdW"]:
51
- _0x5820d0 = await _0x5f18c3["listResourceTemplates"](_0x40a0f1);
57
+ case _0x31010d(513):
58
+ _0x1b9c9c = await _0x31537f[_0x161c24(470)](_0x430be3);
52
59
  break;
53
- case _0x483b74[_0x1decbb(378)]:
54
- _0x5820d0 = await _0x5f18c3["readResource"](_0x40a0f1);
60
+ case _0x2712aa["tNMrc"]:
61
+ _0x1b9c9c = await _0x31537f[_0x161c24(514)](_0x430be3);
55
62
  break;
56
- case _0x483b74["zxSfQ"]:
57
- _0x5820d0 = await _0x5f18c3["subscribeResource"](_0x40a0f1);
63
+ case _0x2712aa["IWycK"]:
64
+ _0x1b9c9c = await _0x31537f[_0x161c24(503)](_0x430be3);
58
65
  break;
59
- case _0x289131(326):
60
- _0x5820d0 = await _0x5f18c3[_0x289131(346)](_0x40a0f1);
66
+ case _0x2712aa[_0x31010d(460)]:
67
+ _0x1b9c9c = await _0x31537f[_0x161c24(488)](_0x430be3);
61
68
  break;
62
- case _0x483b74[_0x289131(334)]:
63
- _0x5820d0 = await _0x5f18c3[_0x1decbb(348)](_0x40a0f1);
69
+ case _0x31010d(463):
70
+ _0x1b9c9c = await _0x31537f["getPrompt"](_0x430be3);
64
71
  break;
65
- case _0x483b74["qLMuk"]:
66
- _0x5820d0 = await _0x5f18c3[_0x1decbb(362)](_0x40a0f1);
72
+ case _0x2712aa[_0x161c24(500)]:
73
+ _0x1b9c9c = await _0x31537f["listPrompts"](_0x430be3);
67
74
  break;
68
- case _0x483b74[_0x289131(352)]:
69
- _0x5820d0 = await _0x5f18c3[_0x289131(351)]();
75
+ case _0x31010d(477):
76
+ _0x1b9c9c = await _0x31537f[_0x161c24(477)]();
70
77
  break;
71
- case _0x483b74[_0x1decbb(314)]:
72
- _0x5820d0 = await _0x5f18c3[_0x1decbb(359)](_0x40a0f1);
78
+ case _0x2712aa[_0x31010d(448)]:
79
+ _0x1b9c9c = await _0x31537f["complete"](_0x430be3);
73
80
  break;
74
- case _0x483b74["bMZEp"]:
75
- _0x5820d0 = await _0x5f18c3["setLoggingLevel"](_0x40a0f1 == null ? void 0 : _0x40a0f1[_0x1decbb(356)]);
81
+ case "logging/setLevel":
82
+ _0x1b9c9c = await _0x31537f[_0x31010d(507)](_0x430be3 == null ? void 0 : _0x430be3["level"]);
76
83
  break;
77
84
  }
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) => {
85
+ const _0x2be629 = {};
86
+ _0x2be629[_0x31010d(518)] = _0x1b9c9c, _0x2be629[_0x161c24(447)] = _0x2712aa["JQxQT"], _0x2be629["id"] = _0x51aaf7, await ((_a = _0x5ddbd7 == null ? void 0 : _0x5ddbd7["transport"]) == null ? void 0 : _a[_0x31010d(504)](_0x2be629));
87
+ }, forwardClientRequest = async (_0x421651, _0x5187b4, _0x27142b) => {
81
88
  var _a;
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);
89
+ const _0x4b02a5 = _0x4044, _0x19432e = _0x4044, _0x4ca4fa = {};
90
+ _0x4ca4fa[_0x4b02a5(471)] = "roots/list", _0x4ca4fa["jLliF"] = "sampling/createMessage", _0x4ca4fa["qrMyG"] = _0x19432e(491);
91
+ const _0x2645a1 = _0x4ca4fa, { id: _0x400403, method: _0xbcd1ac, params: _0x200a76 } = _0x27142b;
92
+ let _0x540365 = {};
93
+ switch (_0xbcd1ac) {
94
+ case _0x2645a1[_0x4b02a5(471)]:
95
+ const _0x53f230 = {};
96
+ _0x53f230["method"] = _0xbcd1ac, _0x53f230[_0x19432e(480)] = _0x200a76, _0x540365 = await _0x5187b4["request"](_0x53f230, ListRootsResultSchema);
90
97
  break;
91
- case _0x280111(367):
92
- const _0x30eedf = {};
93
- _0x30eedf["method"] = _0x208b31, _0x30eedf["params"] = _0x4c98b6, _0x2cef6f = await _0x3d1e13[_0x567dc4(336)](_0x30eedf, CreateMessageResultSchema);
98
+ case _0x2645a1[_0x4b02a5(505)]:
99
+ const _0x638a4a = {};
100
+ _0x638a4a["method"] = _0xbcd1ac, _0x638a4a[_0x19432e(480)] = _0x200a76, _0x540365 = await _0x5187b4["request"](_0x638a4a, CreateMessageResultSchema);
94
101
  break;
95
- case _0x5c974c["xDwgD"]:
96
- const _0x5e0254 = {};
97
- _0x5e0254[_0x567dc4(330)] = _0x208b31, _0x5e0254[_0x567dc4(372)] = _0x4c98b6, _0x2cef6f = await _0x3d1e13["request"](_0x5e0254, ElicitResultSchema);
102
+ case "elicitation/create":
103
+ const _0x162a48 = {};
104
+ _0x162a48[_0x4b02a5(451)] = _0xbcd1ac, _0x162a48["params"] = _0x200a76, _0x540365 = await _0x5187b4["request"](_0x162a48, ElicitResultSchema);
98
105
  break;
99
- case _0x5c974c[_0x567dc4(331)]:
100
- const _0x5b3819 = {};
101
- _0x5b3819[_0x567dc4(330)] = _0x208b31, _0x2cef6f = await _0x3d1e13[_0x567dc4(336)](_0x5b3819, EmptyResultSchema);
106
+ case "ping":
107
+ const _0x4c169e = {};
108
+ _0x4c169e[_0x19432e(451)] = _0xbcd1ac, _0x540365 = await _0x5187b4["request"](_0x4c169e, EmptyResultSchema);
102
109
  break;
103
110
  }
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;
111
+ const _0xa55e1b = {};
112
+ return _0xa55e1b[_0x19432e(518)] = _0x540365, _0xa55e1b[_0x19432e(447)] = _0x2645a1["qrMyG"], _0xa55e1b["id"] = _0x400403, await ((_a = _0x421651 == null ? void 0 : _0x421651[_0x4b02a5(502)]) == null ? void 0 : _a[_0x19432e(504)](_0xa55e1b)), _0x540365;
106
113
  };
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) => {
114
+ const forwardServerOnRequest = (_0x18ef46, _0x192806) => {
115
+ const _0x5a20e3 = _0x4044, _0x103c0e = { "bWxLM": function(_0x3fc8b0, _0x4b6f5f) {
116
+ return _0x3fc8b0 === _0x4b6f5f;
117
+ }, "KakbL": _0x5a20e3(524), "iCroC": function(_0x47887d, _0x2edaea, _0x1e8c3e, _0x2c2b5f) {
118
+ return _0x47887d(_0x2edaea, _0x1e8c3e, _0x2c2b5f);
119
+ } }, _0x6c961f = _0x18ef46[_0x5a20e3(527)];
120
+ _0x18ef46[_0x5a20e3(527)] = async (_0x396437, _0xddbb07) => {
114
121
  var _a, _b, _c, _d, _e;
115
- const _0x409c4a = _0x3e078d, _0x379177 = _0x3e078d, { id: _0x59c6e3, method: _0x45ccd7 } = _0x285aa8;
122
+ const _0x4edf77 = _0x5a20e3, _0x214b66 = _0x5a20e3, { id: _0x461832, method: _0x255764 } = _0x396437;
116
123
  try {
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;
124
+ _0x103c0e[_0x4edf77(475)](_0x255764, _0x103c0e["KakbL"]) ? await _0x6c961f[_0x214b66(516)](_0x18ef46, _0x396437, _0xddbb07) : await _0x103c0e[_0x214b66(489)](forwardServerRequest, _0x18ef46, _0x192806, _0x396437);
125
+ } catch (_0x5bc967) {
126
+ const { code: _0x32ef58, message: _0x4b20d5, data: _0x2a2cdb } = _0x5bc967;
120
127
  try {
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);
128
+ if (_0x32ef58) {
129
+ const _0x28b048 = {};
130
+ _0x28b048[_0x4edf77(454)] = _0x32ef58, _0x28b048[_0x4edf77(455)] = _0x4b20d5, _0x28b048[_0x214b66(519)] = _0x2a2cdb;
131
+ const _0x4c93f1 = {};
132
+ _0x4c93f1["error"] = _0x28b048, _0x4c93f1["jsonrpc"] = _0x4edf77(491), _0x4c93f1["id"] = _0x461832, await ((_a = _0x18ef46 == null ? void 0 : _0x18ef46["transport"]) == null ? void 0 : _a["send"](_0x4c93f1));
133
+ } else (_c = (_b = _0x18ef46 == null ? void 0 : _0x18ef46["transport"]) == null ? void 0 : _b["onerror"]) == null ? void 0 : _c.call(_b, _0x5bc967);
134
+ } catch (_0x2a65e7) {
135
+ (_e = (_d = _0x18ef46 == null ? void 0 : _0x18ef46[_0x214b66(502)]) == null ? void 0 : _d[_0x4edf77(458)]) == null ? void 0 : _e.call(_d, _0x2a65e7);
129
136
  }
130
137
  }
131
138
  };
132
139
  };
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) => {
140
+ const forwardServerOnNotification = (_0x380ea8, _0x54bf5f) => {
141
+ const _0xee3c22 = _0x4044, _0x19469f = {};
142
+ _0x19469f["mNMii"] = function(_0x1a72e2, _0x48cbcb) {
143
+ return _0x1a72e2 !== _0x48cbcb;
144
+ }, _0x19469f["rDeRr"] = _0xee3c22(478);
145
+ const _0xf7a9ae = _0x19469f;
146
+ _0x380ea8["_onnotification"] = async (_0x3d9bdf) => {
140
147
  var _a, _b;
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);
148
+ const _0x570a08 = _0xee3c22, _0x1f82a8 = _0xee3c22, { method: _0x54529f, params: _0x263fbc } = _0x3d9bdf;
149
+ if (_0xf7a9ae["mNMii"](_0x54529f, "notifications/initialized") && (_0xf7a9ae["mNMii"](_0x54529f, _0xf7a9ae[_0x570a08(495)]) || (_0x263fbc == null ? void 0 : _0x263fbc["forward"]))) try {
150
+ await _0x54bf5f[_0x1f82a8(474)](_0x3d9bdf);
151
+ } catch (_0x5a0d32) {
152
+ (_b = (_a = _0x380ea8 == null ? void 0 : _0x380ea8["transport"]) == null ? void 0 : _a[_0x570a08(458)]) == null ? void 0 : _b.call(_a, _0x5a0d32);
146
153
  }
147
154
  };
148
155
  };
149
- const forwardClientOnRequest = (_0x2e765c, _0x40b7cd) => async (_0x5448d5) => {
156
+ const forwardClientOnRequest = (_0x323cff, _0x43fb61) => async (_0x38a817) => {
150
157
  var _a, _b, _c, _d, _e;
151
- const _0x3c6fc4 = _0x47e3, _0x200849 = _0x47e3, _0x49cba7 = { "RoSaN": function(_0x578c38, _0x195121, _0x2ef806, _0x2d5641) {
152
- return _0x578c38(_0x195121, _0x2ef806, _0x2d5641);
153
- }, "aFNdj": _0x3c6fc4(373) };
158
+ const _0x2a1ac9 = _0x4044, _0x137dbc = _0x4044, _0x27e052 = { "flUTc": function(_0x3dbcc7, _0x2299bc, _0x14a599, _0x259a13) {
159
+ return _0x3dbcc7(_0x2299bc, _0x14a599, _0x259a13);
160
+ }, "tQWau": _0x2a1ac9(491) };
154
161
  try {
155
- return await _0x49cba7["RoSaN"](forwardClientRequest, _0x2e765c, _0x40b7cd, _0x5448d5);
156
- } catch (_0xb75b03) {
157
- const { code: _0x2c5c92, message: _0x39d839, data: _0x43dcdf } = _0xb75b03;
162
+ return await _0x27e052["flUTc"](forwardClientRequest, _0x323cff, _0x43fb61, _0x38a817);
163
+ } catch (_0x10ab66) {
164
+ const { code: _0x47eb64, message: _0x1b8544, data: _0x1d0644 } = _0x10ab66;
158
165
  try {
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);
166
+ if (_0x47eb64) {
167
+ const _0x4af81b = {};
168
+ _0x4af81b[_0x137dbc(454)] = _0x47eb64, _0x4af81b[_0x137dbc(455)] = _0x1b8544, _0x4af81b["data"] = _0x1d0644;
169
+ const _0x1cae04 = {};
170
+ _0x1cae04["error"] = _0x4af81b, _0x1cae04["jsonrpc"] = _0x27e052[_0x2a1ac9(465)], _0x1cae04["id"] = _0x38a817["id"], await ((_a = _0x323cff == null ? void 0 : _0x323cff["transport"]) == null ? void 0 : _a["send"](_0x1cae04));
171
+ } else (_c = (_b = _0x323cff == null ? void 0 : _0x323cff[_0x137dbc(502)]) == null ? void 0 : _b[_0x2a1ac9(458)]) == null ? void 0 : _c.call(_b, _0x10ab66);
172
+ } catch (_0x48919e) {
173
+ (_e = (_d = _0x323cff == null ? void 0 : _0x323cff["transport"]) == null ? void 0 : _d["onerror"]) == null ? void 0 : _e.call(_d, _0x48919e);
167
174
  }
168
175
  }
169
176
  };
170
- const forwardClientOnNotification = (_0x4f21c5, _0x2360c8) => async (_0x130fb7) => {
177
+ const forwardClientOnNotification = (_0x9821b2, _0x310108) => async (_0x372cfb) => {
171
178
  var _a, _b, _c;
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);
179
+ const _0x34643e = _0x4044, _0x34dce2 = _0x4044, _0x411811 = {};
180
+ _0x411811[_0x34643e(461)] = _0x34643e(490), _0x411811["ZrgoL"] = function(_0x38d1c2, _0x7d1689) {
181
+ return _0x38d1c2 !== _0x7d1689;
182
+ }, _0x411811[_0x34dce2(528)] = "notifications/cancelled", _0x411811[_0x34643e(512)] = "2.0";
183
+ const _0x25a8e1 = _0x411811, { method: _0x1cc6f5, params: _0x342a0c } = _0x372cfb;
184
+ if (_0x1cc6f5 !== _0x25a8e1[_0x34dce2(461)] && (_0x25a8e1["ZrgoL"](_0x1cc6f5, _0x25a8e1["NBngV"]) || (_0x342a0c == null ? void 0 : _0x342a0c["forward"]))) try {
185
+ const _0x44cacf = { ..._0x372cfb };
186
+ _0x44cacf["jsonrpc"] = _0x25a8e1["mHXXj"], await ((_a = _0x310108 == null ? void 0 : _0x310108["transport"]) == null ? void 0 : _a[_0x34dce2(504)](_0x44cacf));
187
+ } catch (_0x3ba934) {
188
+ (_c = (_b = _0x9821b2 == null ? void 0 : _0x9821b2[_0x34643e(502)]) == null ? void 0 : _b["onerror"]) == null ? void 0 : _c.call(_b, _0x3ba934);
182
189
  }
183
190
  };
184
191
  const createHandleListener = () => {
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) {
192
+ const _0x133c34 = _0x4044, _0x367bb4 = _0x4044, _0xfb81a4 = { "AlJTO": function(_0x523b20, _0x194ee8, _0x223e85) {
193
+ return _0x523b20(_0x194ee8, _0x223e85);
194
+ }, "ILUTH": function(_0x46576e, _0x2d5e97) {
195
+ return _0x46576e !== _0x2d5e97;
196
+ }, "XAOgt": function(_0x12683b, _0x57bec2) {
197
+ return _0x12683b(_0x57bec2);
198
+ }, "AFyaI": function(_0x12e884, _0x3e577e) {
199
+ return _0x12e884 === _0x3e577e;
200
+ }, "cFEvs": _0x133c34(508) }, _0x2d79d1 = [], _0xde4734 = (_0x23b3da, _0x1a62d0) => {
201
+ const _0x3da6b8 = _0x133c34, _0x5973c8 = _0x133c34;
202
+ if (_0x1a62d0) {
203
+ const _0x524cab = [];
204
+ for (const _0x471bce of _0x2d79d1) {
200
205
  try {
201
- _0x206b80[_0x3b51a6(328)](_0x3ab4be["QWHjY"](_0x1e6d9f, _0x1428aa, _0x31fbce));
206
+ _0x524cab[_0x3da6b8(522)](_0xfb81a4["AlJTO"](_0x471bce, _0x23b3da, _0x1a62d0));
202
207
  } catch {
203
208
  }
204
209
  }
205
- for (const _0x2d80ab of _0x206b80) {
206
- if (_0x3ab4be["cHNMS"](_0x2d80ab, null)) return _0x2d80ab;
210
+ for (const _0x127b35 of _0x524cab) {
211
+ if (_0xfb81a4["ILUTH"](_0x127b35, null)) return _0x127b35;
207
212
  }
208
- } else for (const _0x18f315 of _0xad526d) {
213
+ } else for (const _0x2f742f of _0x2d79d1) {
209
214
  try {
210
- _0x3ab4be["BMgEW"](_0x18f315, _0x1428aa);
215
+ _0xfb81a4[_0x5973c8(452)](_0x2f742f, _0x23b3da);
211
216
  } catch {
212
217
  }
213
218
  }
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();
219
+ }, _0x4a19db = (_0x40e2c9) => {
220
+ const _0x48d6f8 = _0x133c34;
221
+ _0xfb81a4[_0x48d6f8(523)](typeof _0x40e2c9, _0xfb81a4["cFEvs"]) && !_0x2d79d1["includes"](_0x40e2c9) && _0x2d79d1["push"](_0x40e2c9);
222
+ }, _0x415dba = (_0x2521b) => {
223
+ const _0x4fbec0 = _0x133c34, _0x170b1a = _0x133c34, _0x180537 = _0x2d79d1[_0x4fbec0(473)](_0x2521b);
224
+ _0x180537 !== -1 && _0x2d79d1[_0x170b1a(466)](_0x180537, 8314 + 7148 + -15461 * 1);
225
+ }, _0x456e19 = () => {
226
+ const _0x53fa4b = _0x133c34;
227
+ _0x2d79d1[_0x53fa4b(446)] = -1044 + 5 * 287 + -391 * 1;
228
+ }, _0x8cd665 = {};
229
+ return _0x8cd665[_0x133c34(498)] = _0xde4734, _0x8cd665[_0x133c34(476)] = _0x4a19db, _0x8cd665["removeListener"] = _0x415dba, _0x8cd665[_0x367bb4(485)] = _0x456e19, _0x8cd665;
230
+ }, setClientListener = (_0x479365) => {
231
+ const _0x5db56e = _0x4044, _0x176b64 = _0x4044, _0x121704 = { "lPQDm": function(_0x1ac16d) {
232
+ return _0x1ac16d();
233
+ }, "iHAKU": function(_0xcdc756) {
234
+ return _0xcdc756();
235
+ }, "aktdr": function(_0x3ad61a) {
236
+ return _0x3ad61a();
229
237
  } };
230
238
  {
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
+ const { handleListener: _0x5e0b6c, addListener: _0x4911ea, removeListener: _0x5ee924, clearListener: _0x288665 } = _0x121704["lPQDm"](createHandleListener);
240
+ _0x479365["_onresponse"] = _0x5e0b6c, _0x479365["addResponseListener"] = _0x4911ea, _0x479365["removeResponseListener"] = _0x5ee924, _0x479365["clearResponseListener"] = _0x288665;
233
241
  }
234
242
  {
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
+ const { handleListener: _0x5be1af, addListener: _0x126a3d, removeListener: _0x4a45eb, clearListener: _0x510c57 } = _0x121704[_0x5db56e(482)](createHandleListener);
244
+ _0x479365["fallbackRequestHandler"] = _0x5be1af, _0x479365[_0x176b64(521)] = _0x126a3d, _0x479365["removeRequestListener"] = _0x4a45eb, _0x479365[_0x5db56e(472)] = _0x510c57;
237
245
  }
238
246
  {
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
+ const { handleListener: _0x39a9eb, addListener: _0x1e6016, removeListener: _0x288fcf, clearListener: _0x4006db } = _0x121704[_0x176b64(486)](createHandleListener);
248
+ _0x479365["fallbackNotificationHandler"] = _0x39a9eb, _0x479365["addNotificationListener"] = _0x1e6016, _0x479365["removeNotificationListener"] = _0x288fcf, _0x479365[_0x5db56e(525)] = _0x4006db;
241
249
  }
242
250
  };
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);
251
+ const initClientHandler = (_0x4b92bd, { beforeInit: _0x230fdd, afterInit: _0xd16416 } = {}) => {
252
+ const _0x5183b6 = _0x4044, _0x58fc93 = _0x4044, _0xac52f7 = { "vqRbz": function(_0x1b35cc, _0x362d4d) {
253
+ return _0x1b35cc === _0x362d4d;
254
+ }, "rJyGJ": _0x5183b6(508), "gHncM": function(_0x4bd2d4, _0x36dcde) {
255
+ return _0x4bd2d4(_0x36dcde);
256
+ }, "ZFsMq": _0x58fc93(487), "vJSNK": function(_0x1c20f7) {
257
+ return _0x1c20f7();
258
+ } }, _0x589b1a = new Map(_0x4b92bd["_notificationHandlers"]);
259
+ _0x4b92bd["_requestHandlers"][_0x58fc93(481)](), _0x4b92bd["_notificationHandlers"]["clear"](), _0xac52f7["vqRbz"](typeof _0x230fdd, _0x58fc93(508)) && _0x230fdd(), _0x4b92bd[_0x5183b6(487)][_0x5183b6(496)] === _0xac52f7[_0x5183b6(445)] && (_0x4b92bd[_0x58fc93(510)] = _0x4b92bd["_onresponse"]), _0xac52f7[_0x5183b6(467)](setClientListener, _0x4b92bd), _0x4b92bd[_0x5183b6(450)]((_0x33b3c1) => {
260
+ const _0x8f1836 = _0x5183b6, _0x587ea9 = _0x58fc93;
261
+ _0x4b92bd[_0x8f1836(510)][_0x587ea9(516)](_0x4b92bd, _0x33b3c1);
262
+ }), typeof _0xd16416 === "function" && _0xac52f7[_0x58fc93(492)](_0xd16416), _0x4b92bd["addNotificationListener"]((_0x449c5b) => {
263
+ const _0x104f43 = _0x58fc93, _0x2fe341 = _0x58fc93, { method: _0x21f9dc } = _0x449c5b, _0x475fdf = _0x589b1a["get"](_0x21f9dc);
264
+ _0xac52f7["vqRbz"](typeof _0x475fdf, _0xac52f7[_0x104f43(457)]) && _0xac52f7[_0x2fe341(467)](_0x475fdf, _0x449c5b);
266
265
  });
267
266
  };
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();
267
+ const _0x174478 = _0x85e5, _0x2b1096 = _0x85e5;
268
+ (function(_0x49f094, _0x28a72f) {
269
+ const _0x1e722b = _0x85e5, _0x3a1109 = _0x85e5, _0x412ec8 = _0x49f094();
277
270
  while (!![]) {
278
271
  try {
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"]());
272
+ const _0x77aa96 = -parseInt(_0x1e722b(359)) / (15 * -9 + -2 * 3831 + 7798) + parseInt(_0x3a1109(370)) / (-4833 * 1 + -6643 + -3 * -3826) + -parseInt(_0x3a1109(355)) / (-2641 + 263 * -37 + -165 * -75) + parseInt(_0x1e722b(366)) / (-7839 + -16 * -490 + 3 * 1) + -parseInt(_0x1e722b(362)) / (-1 * -3963 + -4493 * -1 + -8451) + -parseInt(_0x3a1109(361)) / (-6955 + 4647 + 2314) + parseInt(_0x1e722b(367)) / (-272 * -35 + -5433 + 17 * -240) * (parseInt(_0x1e722b(353)) / (-7787 * 1 + -1344 + 9139));
273
+ if (_0x77aa96 === _0x28a72f) break;
274
+ else _0x412ec8["push"](_0x412ec8["shift"]());
275
+ } catch (_0x36e71f) {
276
+ _0x412ec8["push"](_0x412ec8["shift"]());
284
277
  }
285
278
  }
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);
279
+ })(_0x3c31, -418 * 703 + -1213 * -158 + 498869);
280
+ function _0x85e5(_0x52ead4, _0x32d1a9) {
281
+ const _0x1b6a32 = _0x3c31();
282
+ return _0x85e5 = function(_0x4d8349, _0xeb65a8) {
283
+ _0x4d8349 = _0x4d8349 - (-3 * 1 + 1171 * 6 + -6671);
284
+ let _0x463176 = _0x1b6a32[_0x4d8349];
285
+ return _0x463176;
286
+ }, _0x85e5(_0x52ead4, _0x32d1a9);
294
287
  }
295
288
  const randomUUID = () => {
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);
289
+ const _0x54795d = _0x85e5, _0x2b9a75 = _0x85e5, _0x477739 = {};
290
+ _0x477739["UVwSO"] = function(_0x40fb7e, _0x519dad) {
291
+ return _0x40fb7e & _0x519dad;
292
+ }, _0x477739["usyxO"] = function(_0x1ebf7d, _0x4328b5) {
293
+ return _0x1ebf7d === _0x4328b5;
294
+ }, _0x477739["Vmtbe"] = function(_0x363f0f, _0x16b168) {
295
+ return _0x363f0f | _0x16b168;
296
+ }, _0x477739["Eymvg"] = function(_0x5db526, _0x8b213c) {
297
+ return _0x5db526 === _0x8b213c;
298
+ }, _0x477739[_0x54795d(369)] = "object", _0x477739[_0x54795d(354)] = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx";
299
+ const _0x321cf1 = _0x477739;
300
+ if (_0x321cf1[_0x2b9a75(358)](typeof crypto, _0x321cf1["yEwBs"]) && crypto["randomUUID"]) return crypto["randomUUID"]();
301
+ return _0x321cf1[_0x2b9a75(354)][_0x2b9a75(356)](/[xy]/g, (_0x4a99d2) => {
302
+ const _0x3e02dd = _0x54795d, _0x5e898d = _0x54795d, _0x25b62a = _0x321cf1[_0x3e02dd(365)](crypto["getRandomValues"](new Uint8Array(-4420 + -3564 + 1597 * 5))[-15 * 5 + -298 * -14 + -4097], 4 * -416 + -5 * 221 + 2784), _0x576ad7 = _0x321cf1[_0x5e898d(360)](_0x4a99d2, "x") ? _0x25b62a : _0x321cf1[_0x3e02dd(352)](_0x321cf1["UVwSO"](_0x25b62a, 331 * 7 + -9813 * 1 + 1 * 7499), -4294 * -1 + 28 * -356 + 5682);
303
+ return _0x576ad7[_0x3e02dd(363)](8896 + 47 * -50 + -653 * 10);
307
304
  });
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();
305
+ }, randomBytes = (_0x4ee949) => {
306
+ const _0x26ef89 = _0x85e5, _0x32a773 = new Uint8Array(_0x4ee949);
307
+ return crypto["getRandomValues"](_0x32a773), Array["from"](_0x32a773, (_0x1b0457) => _0x1b0457["toString"](-1931 + 9555 + -1902 * 4)["padStart"](-2484 * -3 + 451 * 11 + -12411, "0"))[_0x26ef89(357)]("");
308
+ }, _0x268db3 = {};
309
+ _0x268db3[_0x174478(368)] = randomUUID, _0x268db3[_0x2b1096(364)] = randomBytes;
310
+ function _0x3c31() {
311
+ const _0x283233 = ["Vmtbe", "16NtBzZW", "mxbcI", "556449GnctmW", "replace", "join", "Eymvg", "584078guKyeG", "usyxO", "2310564UsarHd", "455735dtMeLt", "toString", "randomBytes", "UVwSO", "2286592abUDEo", "1254631BWQwGE", "randomUUID", "yEwBs", "1424714zvOIHr"];
312
+ _0x3c31 = function() {
313
+ return _0x283233;
314
+ };
315
+ return _0x3c31();
316
+ }
317
+ const _0x4f289c = _0x5738, _0x27c85b = _0x5738;
318
+ (function(_0x519967, _0x9b1766) {
319
+ const _0x42e7ce = _0x5738, _0x3c754a = _0x5738, _0x1eac77 = _0x519967();
316
320
  while (!![]) {
317
321
  try {
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"]());
322
+ const _0x986d94 = -parseInt(_0x42e7ce(434)) / (-6041 + -7754 + 13796) * (parseInt(_0x42e7ce(365)) / (2128 + -4323 + 2197)) + -parseInt(_0x42e7ce(342)) / (2 * 1193 + 40 * 96 + -6223) + parseInt(_0x42e7ce(373)) / (-3406 + -13 * 509 + -10027 * -1) + -parseInt(_0x3c754a(363)) / (1 * 9733 + -8 * 1217 + 2 * 4) + parseInt(_0x42e7ce(399)) / (-2427 * 2 + -4 * -761 + 1816) + parseInt(_0x3c754a(358)) / (-3853 * 1 + -3585 + 7445) * (parseInt(_0x3c754a(341)) / (8 * -1007 + 1 * -8704 + -64 * -262)) + parseInt(_0x42e7ce(388)) / (8424 + -34 * -68 + 631 * -17) * (parseInt(_0x42e7ce(403)) / (-1 * 8696 + 2 * -2320 + -1 * -13346));
323
+ if (_0x986d94 === _0x9b1766) break;
324
+ else _0x1eac77["push"](_0x1eac77["shift"]());
325
+ } catch (_0xb9cd89) {
326
+ _0x1eac77["push"](_0x1eac77["shift"]());
323
327
  }
324
328
  }
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);
329
+ })(_0x4ca2, 1 * -141413 + 61361 + 208214);
330
+ function _0x5738(_0x4f614c, _0x4b67f5) {
331
+ const _0x1f8e1d = _0x4ca2();
332
+ return _0x5738 = function(_0x14decf, _0x35e552) {
333
+ _0x14decf = _0x14decf - (736 * 13 + -3617 + -5612);
334
+ let _0x85fcb = _0x1f8e1d[_0x14decf];
335
+ return _0x85fcb;
336
+ }, _0x5738(_0x4f614c, _0x4b67f5);
333
337
  }
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);
338
+ const ACCESS_TOKEN_EXPIRES_IN = (-4673 + 2286 + 2411) * (6387 + -203 * 48 + 3417) * (3 * -2447 + -142 * -28 + 3425);
339
+ const REFRESH_TOKEN_EXPIRES_IN = (-177 + 8 * -401 + 3392) * (1 * 1135 + -58 * -28 + -2735) * (-2059 + 5 * 128 + 1479) * (-5596 + 9842 + -4186);
336
340
  const generateAuthorizationCodeFunction = () => {
337
- const _0x24cfbe = _0x249d;
338
- return _0x15ecde[_0x24cfbe(246)](-167 * 9 + 980 + 547 * 1);
341
+ const _0x3939e2 = _0x5738;
342
+ return _0x268db3[_0x3939e2(397)](-8863 * 1 + 612 + 8275);
339
343
  }, generateAccessTokenFunction = () => {
340
- const _0x5706eb = _0x249d;
341
- return _0x15ecde[_0x5706eb(246)](-1054 + 2034 + -948);
344
+ return _0x268db3["randomBytes"](-7036 + 1461 + -801 * -7);
342
345
  }, generateRefreshTokenFunction = () => {
343
- return _0x15ecde["randomBytes"](-256 * -38 + 44 + 68 * -143);
346
+ return _0x268db3["randomBytes"](-361 * -3 + 5507 + -6542);
344
347
  };
345
348
  class MemoryClientsStore {
346
349
  constructor() {
347
- const _0x5aac42 = _0x249d;
348
- this[_0x5aac42(305)] = /* @__PURE__ */ new Map();
350
+ const _0x47ee45 = _0x5738;
351
+ this[_0x47ee45(418)] = /* @__PURE__ */ new Map();
349
352
  }
350
- async [_0xe43874(300)](_0xa95f20) {
351
- const _0x11c480 = _0xe43874;
352
- return this["clients"][_0x11c480(254)](_0xa95f20);
353
+ async ["getClient"](_0x2a1f88) {
354
+ const _0x1f179a = _0x5738;
355
+ return this["clients"][_0x1f179a(364)](_0x2a1f88);
353
356
  }
354
- async [_0xe43874(240)](_0x474d08) {
355
- const _0x1196e4 = _0x3c4c4b;
356
- return this[_0x1196e4(305)][_0x1196e4(270)](_0x474d08["client_id"], _0x474d08), _0x474d08;
357
+ async ["saveClient"](_0x5d20f9) {
358
+ const _0x16ac5b = _0x5738, _0x7ef6ee = _0x5738;
359
+ return this[_0x16ac5b(418)][_0x7ef6ee(422)](_0x5d20f9[_0x7ef6ee(419)], _0x5d20f9), _0x5d20f9;
357
360
  }
358
- async ["deleteClient"](_0x118e75) {
359
- const _0x5d0975 = _0x3c4c4b;
360
- return this[_0x5d0975(305)][_0x5d0975(244)](_0x118e75);
361
+ async [_0x4f289c(432)](_0x1c9a29) {
362
+ const _0x49579c = _0x4f289c;
363
+ return this[_0x49579c(418)]["delete"](_0x1c9a29);
361
364
  }
362
- async ["registerClient"](_0x3e3815) {
363
- return this["saveClient"](_0x3e3815);
365
+ async ["registerClient"](_0x406d66) {
366
+ return this["saveClient"](_0x406d66);
364
367
  }
365
368
  }
366
369
  class MemoryAuthorizationCodeStore {
367
370
  constructor() {
368
- const _0x10ab05 = _0xe43874;
369
- this[_0x10ab05(249)] = /* @__PURE__ */ new Map();
371
+ this["codes"] = /* @__PURE__ */ new Map();
370
372
  }
371
- async [_0xe43874(289)](_0x378843) {
372
- const _0x4c6cc2 = _0xe43874;
373
- return this["codes"][_0x4c6cc2(254)](_0x378843);
373
+ async ["getCodeDate"](_0x1794a2) {
374
+ const _0x1de897 = _0x4f289c, _0x7e7701 = _0x4f289c;
375
+ return this[_0x1de897(425)][_0x7e7701(364)](_0x1794a2);
374
376
  }
375
- async ["saveCodeData"](_0x1cbdcf, _0x23cf7e) {
376
- const _0x21fab8 = _0xe43874, _0x52e6ff = _0x3c4c4b;
377
- return this[_0x21fab8(249)][_0x52e6ff(270)](_0x1cbdcf, _0x23cf7e), !![];
377
+ async ["saveCodeData"](_0x19c6f0, _0x903099) {
378
+ const _0x4721c0 = _0x4f289c;
379
+ return this[_0x4721c0(425)][_0x4721c0(422)](_0x19c6f0, _0x903099), !![];
378
380
  }
379
- async [_0x3c4c4b(232)](_0x9d5f82) {
380
- const _0x14ac0e = _0x3c4c4b;
381
- return this[_0x14ac0e(249)]["delete"](_0x9d5f82);
381
+ async [_0x27c85b(401)](_0x24ca6c) {
382
+ const _0x3e8a08 = _0x4f289c;
383
+ return this[_0x3e8a08(425)][_0x3e8a08(414)](_0x24ca6c);
382
384
  }
383
385
  }
384
386
  class MemoryAccessTokensStore {
385
387
  constructor() {
386
388
  this["accessTokens"] = /* @__PURE__ */ new Map();
387
389
  }
388
- async ["getAccessToken"](_0x8c6025) {
389
- const _0x38998a = _0xe43874;
390
- return this[_0x38998a(259)]["get"](_0x8c6025);
390
+ async ["getAccessToken"](_0x20cf1a) {
391
+ return this["accessTokens"]["get"](_0x20cf1a);
391
392
  }
392
- async ["saveAccessToken"](_0x214daa, _0x422738) {
393
- return this["accessTokens"]["set"](_0x214daa, _0x422738), !![];
393
+ async ["saveAccessToken"](_0x227269, _0x42a52f) {
394
+ return this["accessTokens"]["set"](_0x227269, _0x42a52f), !![];
394
395
  }
395
- async ["revokeAccessToken"](_0x4b77f7) {
396
- const _0x4f8735 = _0xe43874;
397
- return this["accessTokens"][_0x4f8735(244)](_0x4b77f7);
396
+ async ["revokeAccessToken"](_0x52a35d) {
397
+ return this["accessTokens"]["delete"](_0x52a35d);
398
398
  }
399
399
  }
400
400
  class MemoryRefreshTokensStore {
401
401
  constructor() {
402
- const _0x3f111b = _0xe43874;
403
- this[_0x3f111b(242)] = /* @__PURE__ */ new Map();
402
+ this["refreshTokens"] = /* @__PURE__ */ new Map();
404
403
  }
405
- async ["getRefreshToken"](_0x5b6e94) {
406
- const _0x5a9a42 = _0xe43874;
407
- return this[_0x5a9a42(242)]["get"](_0x5b6e94);
404
+ async [_0x4f289c(368)](_0x468058) {
405
+ const _0x1b7c71 = _0x27c85b;
406
+ return this[_0x1b7c71(427)]["get"](_0x468058);
408
407
  }
409
- async [_0x3c4c4b(266)](_0x3571f5, _0x90c083) {
410
- return this["refreshTokens"]["set"](_0x3571f5, _0x90c083), !![];
408
+ async [_0x4f289c(349)](_0x5d96fe, _0x169a38) {
409
+ return this["refreshTokens"]["set"](_0x5d96fe, _0x169a38), !![];
411
410
  }
412
- async ["revokeRefreshToken"](_0x2d833c) {
413
- const _0x401989 = _0xe43874;
414
- return this[_0x401989(242)][_0x401989(244)](_0x2d833c);
411
+ async [_0x4f289c(370)](_0x462845) {
412
+ const _0x5a1b5a = _0x4f289c, _0x2c4bd0 = _0x27c85b;
413
+ return this[_0x5a1b5a(427)][_0x2c4bd0(414)](_0x462845);
415
414
  }
416
415
  }
417
416
  class AuthServerProvider {
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;
417
+ constructor(_0x32512e = {}) {
418
+ const _0x23793a = _0x4f289c, _0x23eb31 = _0x27c85b, _0x230b86 = {};
419
+ _0x230b86[_0x23793a(415)] = function(_0x5eebd9, _0x1af0bc) {
420
+ return _0x5eebd9 || _0x1af0bc;
424
421
  };
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);
427
- }
428
- async ["authorize"](_0x8f39e7, _0x58d999, _0x90761b) {
429
- const _0x3df655 = _0x3c4c4b, _0x53309e = _0xe43874, _0x3ff44c = {};
430
- _0x3ff44c["RsOud"] = function(_0x50a50c, _0x4938cb) {
431
- return _0x50a50c !== _0x4938cb;
422
+ const _0x12ebce = _0x230b86, { clientsStore: _0x367533, codesStore: _0x256b62, accessTokensStore: _0x83e880, refreshTokensStore: _0x36d198, generateAuthorizationCode: _0x2f92ca, generateAccessToken: _0x235dde, generateRefreshToken: _0x135ec4, accessTokenExpiresIn: _0x3c493a, refreshTokenExpiresIn: _0x5d748f } = _0x32512e;
423
+ this["clientsStore"] = _0x367533 || new MemoryClientsStore(), this[_0x23eb31(376)] = _0x256b62 || new MemoryAuthorizationCodeStore(), this[_0x23793a(374)] = _0x83e880 || new MemoryAccessTokensStore(), this[_0x23793a(361)] = _0x36d198 || new MemoryRefreshTokensStore(), this["generateAuthorizationCode"] = _0x12ebce[_0x23793a(415)](_0x2f92ca, generateAuthorizationCodeFunction), this[_0x23eb31(436)] = _0x235dde || generateAccessTokenFunction, this["generateRefreshToken"] = _0x12ebce["kxhTT"](_0x135ec4, generateRefreshTokenFunction), this[_0x23793a(412)] = _0x3c493a || ACCESS_TOKEN_EXPIRES_IN, this["refreshTokenExpiresIn"] = _0x12ebce["kxhTT"](_0x5d748f, REFRESH_TOKEN_EXPIRES_IN);
424
+ }
425
+ async [_0x4f289c(383)](_0x5871f1, _0x342ebc, _0x524ea8) {
426
+ const _0x4ec492 = _0x4f289c, _0x56f616 = _0x4f289c, _0x163639 = {};
427
+ _0x163639["CjAor"] = function(_0x25ba7a, _0x57a2b1) {
428
+ return _0x25ba7a !== _0x57a2b1;
429
+ }, _0x163639[_0x4ec492(404)] = "state";
430
+ const _0x40add4 = _0x163639, _0x509d1b = this[_0x56f616(343)](), _0x353bd3 = {};
431
+ _0x353bd3[_0x56f616(410)] = _0x509d1b;
432
+ const _0x7425dc = new URLSearchParams(_0x353bd3);
433
+ _0x40add4["CjAor"](_0x342ebc["state"], void 0) && _0x7425dc["set"](_0x40add4[_0x56f616(404)], _0x342ebc[_0x4ec492(420)]);
434
+ const _0x5efce6 = {};
435
+ _0x5efce6[_0x4ec492(431)] = _0x5871f1, _0x5efce6[_0x4ec492(369)] = _0x342ebc, await this[_0x4ec492(376)][_0x56f616(346)](_0x509d1b, _0x5efce6);
436
+ const _0x1ff8d7 = new URL(_0x342ebc["redirectUri"] || _0x5871f1[_0x56f616(384)][-1481 * -1 + -6046 + 83 * 55]);
437
+ _0x1ff8d7[_0x56f616(351)] = _0x7425dc[_0x4ec492(360)](), _0x524ea8[_0x4ec492(355)](_0x1ff8d7[_0x4ec492(360)]());
438
+ }
439
+ async [_0x27c85b(382)](_0x104e52, _0x494b8f) {
440
+ const _0x4943b2 = _0x27c85b, _0x2c9085 = await this["codesStore"]["getCodeDate"](_0x494b8f);
441
+ if (!_0x2c9085) throw new InvalidGrantError(_0x4943b2(353) + _0x104e52["client_id"]);
442
+ return _0x2c9085[_0x4943b2(369)][_0x4943b2(375)];
443
+ }
444
+ async [_0x27c85b(405)](_0x2adcff, _0x19482b) {
445
+ const _0x597b57 = _0x4f289c, _0x5c6596 = _0x27c85b, _0x5d0149 = {};
446
+ _0x5d0149["sKcvw"] = function(_0x4c7054, _0x2cef3d) {
447
+ return _0x4c7054 !== _0x2cef3d;
448
+ }, _0x5d0149[_0x597b57(344)] = function(_0x438cd2, _0x367e03) {
449
+ return _0x438cd2 + _0x367e03;
450
+ }, _0x5d0149["XKVYr"] = function(_0x4fb462, _0x57caaa) {
451
+ return _0x4fb462 * _0x57caaa;
452
+ }, _0x5d0149[_0x5c6596(378)] = function(_0xef8ffd, _0x35dedd) {
453
+ return _0xef8ffd * _0x35dedd;
454
+ }, _0x5d0149[_0x597b57(429)] = _0x5c6596(387);
455
+ const _0x1c8357 = _0x5d0149, _0x50c85b = await this[_0x597b57(376)]["getCodeDate"](_0x19482b);
456
+ if (!_0x50c85b) throw new InvalidGrantError("Invalid authorization code for this client: " + _0x2adcff[_0x597b57(419)]);
457
+ if (_0x1c8357["sKcvw"](_0x50c85b[_0x5c6596(431)]["client_id"], _0x2adcff[_0x5c6596(419)])) throw new InvalidGrantError(_0x5c6596(339) + _0x2adcff["client_id"]);
458
+ const _0x111fa2 = _0x50c85b["params"]["redirectUri"] || _0x50c85b[_0x5c6596(431)][_0x597b57(384)][-9433 + 512 * -2 + -10457 * -1];
459
+ await this[_0x597b57(376)][_0x5c6596(401)](_0x19482b);
460
+ const _0x107f30 = this["generateAccessToken"](), _0x925d45 = this["generateRefreshToken"](), _0x3dbe82 = {};
461
+ _0x3dbe82[_0x5c6596(394)] = _0x111fa2;
462
+ const _0x5c96f5 = { "token": _0x107f30, "clientId": _0x2adcff[_0x5c6596(419)], "scopes": _0x50c85b[_0x5c6596(369)][_0x597b57(359)] || [], "expiresAt": _0x1c8357[_0x597b57(344)](Date[_0x597b57(354)](), _0x1c8357["XKVYr"](this[_0x597b57(412)], 6752 + 8165 + -13917)), "resource": _0x50c85b["params"]["resource"], "extra": _0x3dbe82 };
463
+ await this[_0x597b57(374)][_0x5c6596(367)](_0x107f30, _0x5c96f5);
464
+ const _0x2ce974 = {};
465
+ _0x2ce974["isRevoked"] = ![];
466
+ const _0xbf52b9 = { "token": _0x925d45, "clientId": _0x2adcff["client_id"], "scopes": _0x50c85b[_0x597b57(369)][_0x597b57(359)] || [], "expiresAt": _0x1c8357["WbEUC"](Date[_0x5c6596(354)](), _0x1c8357[_0x5c6596(378)](this[_0x5c6596(357)], 1 * -2921 + -1542 * -6 + -5331)), "extra": _0x2ce974 };
467
+ return await this["refreshTokensStore"]["saveRefreshToken"](_0x925d45, _0xbf52b9), { "access_token": _0x107f30, "refresh_token": _0x925d45, "token_type": _0x1c8357[_0x597b57(429)], "expires_in": this[_0x5c6596(412)], "scope": (_0x50c85b["params"][_0x5c6596(359)] || [])["join"](" ") };
468
+ }
469
+ async ["exchangeRefreshToken"](_0x1a781d, _0x27006f) {
470
+ const _0x478159 = _0x4f289c, _0x4d6ca4 = _0x4f289c, _0x3e04cb = {};
471
+ _0x3e04cb[_0x478159(389)] = function(_0xf7c948, _0x229ccf) {
472
+ return _0xf7c948 < _0x229ccf;
473
+ }, _0x3e04cb[_0x4d6ca4(362)] = function(_0x14ed30, _0x1fa976) {
474
+ return _0x14ed30 + _0x1fa976;
475
+ }, _0x3e04cb["DdiDW"] = function(_0xfb60e8, _0x1af7ae) {
476
+ return _0xfb60e8 * _0x1af7ae;
432
477
  };
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"]);
478
+ const _0xcf6654 = _0x3e04cb, _0x259297 = await this["refreshTokensStore"]["getRefreshToken"](_0x27006f);
479
+ if (!_0x259297) throw new InvalidGrantError(_0x478159(413) + _0x1a781d["client_id"]);
480
+ if (_0xcf6654[_0x4d6ca4(389)](_0x259297["expiresAt"], Date[_0x4d6ca4(354)]())) throw new InvalidGrantError("Refresh token has expired for this client: " + _0x1a781d["client_id"]);
481
+ if (_0x259297["clientId"] !== _0x1a781d[_0x4d6ca4(419)]) throw new InvalidGrantError(_0x478159(350) + _0x1a781d[_0x4d6ca4(419)]);
482
+ await this[_0x478159(361)]["revokeRefreshToken"](_0x27006f);
483
+ const _0x46b77e = this["generateAccessToken"](), _0x336c80 = this[_0x4d6ca4(407)](), _0x91c844 = { "token": _0x27006f, "clientId": _0x1a781d[_0x4d6ca4(419)], "scopes": _0x259297[_0x478159(359)], "expiresAt": _0xcf6654["DRJfV"](Date[_0x4d6ca4(354)](), _0xcf6654[_0x4d6ca4(356)](this[_0x4d6ca4(357)], -8422 * -1 + 5677 + 1 * -13099)) };
484
+ return await this[_0x4d6ca4(361)]["saveRefreshToken"](_0x27006f, _0x91c844), { "access_token": _0x46b77e, "refresh_token": _0x336c80, "token_type": "Bearer", "expires_in": this[_0x478159(412)], "scope": _0x259297["scopes"][_0x4d6ca4(408)](" ") };
485
+ }
486
+ async ["verifyAccessToken"](_0x519a3e) {
487
+ const _0x5d96d0 = _0x27c85b, _0x2a6af1 = _0x27c85b, _0x120462 = {};
488
+ _0x120462[_0x5d96d0(411)] = _0x2a6af1(377);
489
+ const _0x1a8098 = _0x120462, _0x233371 = await this[_0x5d96d0(374)][_0x2a6af1(423)](_0x519a3e);
490
+ if (!_0x233371 || !_0x233371[_0x5d96d0(371)]) throw new InvalidTokenError(_0x1a8098["RmhZb"]);
491
+ return { "token": _0x519a3e, "clientId": _0x233371["clientId"], "scopes": _0x233371[_0x2a6af1(359)], "expiresAt": Math["floor"](_0x233371["expiresAt"] / (1 * 2417 + 1 * 6353 + -518 * 15)), "resource": _0x233371["resource"], "extra": _0x233371["extra"] };
492
+ }
493
+ async [_0x4f289c(428)](_0x585eeb, _0x5888e1) {
494
+ const _0x5b9e9a = _0x27c85b, _0x16b1f8 = _0x27c85b, _0x33affc = {};
495
+ _0x33affc["VNwJm"] = function(_0x2862fc, _0x40c765) {
496
+ return _0x2862fc === _0x40c765;
497
+ }, _0x33affc[_0x5b9e9a(433)] = "access_token", _0x33affc[_0x5b9e9a(396)] = "refresh_token";
498
+ const _0x2b96a6 = _0x33affc;
499
+ if (_0x2b96a6[_0x5b9e9a(430)](_0x5888e1["token_type_hint"], _0x2b96a6["ItKpe"])) {
500
+ const _0x51aa75 = await this["accessTokensStore"]["getAccessToken"](_0x5888e1[_0x16b1f8(385)]);
501
+ if (!_0x51aa75 || _0x51aa75[_0x5b9e9a(391)] !== _0x585eeb[_0x5b9e9a(419)]) throw new InvalidTokenError(_0x16b1f8(400) + _0x585eeb["client_id"]);
502
+ await this["accessTokensStore"]["revokeAccessToken"](_0x5888e1[_0x16b1f8(385)]);
505
503
  } else {
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)]);
504
+ if (_0x5888e1[_0x5b9e9a(395)] === _0x2b96a6[_0x16b1f8(396)]) {
505
+ const _0x115c98 = await this[_0x16b1f8(361)][_0x16b1f8(368)](_0x5888e1["token"]);
506
+ if (!_0x115c98 || _0x115c98[_0x16b1f8(391)] !== _0x585eeb[_0x5b9e9a(419)]) throw new InvalidTokenError(_0x16b1f8(386) + _0x585eeb[_0x5b9e9a(419)]);
507
+ await this[_0x16b1f8(361)]["revokeRefreshToken"](_0x5888e1["token"]);
508
+ } else throw new InvalidGrantError("Unsupported token type hint: " + _0x5888e1[_0x16b1f8(395)] + _0x5b9e9a(380) + _0x585eeb[_0x5b9e9a(419)]);
511
509
  }
512
510
  }
513
511
  }
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)) });
512
+ const createAuthMiddleware = (_0x4976b7, _0x345a24) => {
513
+ const _0x9e2557 = _0x4f289c, _0x3ed1fb = { "XTXiP": function(_0x3ff663, _0x2ab790) {
514
+ return _0x3ff663(_0x2ab790);
515
+ } }, _0x50ebef = async (_0x10f0a3) => {
516
+ var _a;
517
+ const _0x3a4c75 = _0x5738, _0x415584 = _0x5738, _0x557663 = await _0x4976b7["verifyAccessToken"](_0x10f0a3), _0x325011 = { "active": !![], "client_id": _0x557663["clientId"], "scope": _0x557663[_0x3a4c75(359)][_0x415584(408)](" "), "exp": _0x557663["expiresAt"], "aud": _0x557663["resource"] };
518
+ if (!_0x325011["aud"]) throw new Error(_0x3a4c75(345));
519
+ const _0x52035d = {};
520
+ _0x52035d["requestedResource"] = _0x325011["aud"], _0x52035d["configuredResource"] = _0x345a24;
521
+ if (!checkResourceAllowed(_0x52035d)) throw new Error(_0x3a4c75(381) + _0x345a24 + _0x415584(417) + _0x325011[_0x415584(426)]);
522
+ return { "token": _0x10f0a3, "clientId": _0x325011["client_id"], "scopes": _0x325011["scope"] ? _0x325011["scope"][_0x3a4c75(347)](" ") : [], "expiresAt": _0x325011["exp"], "redirectUri": (_a = _0x557663[_0x415584(352)]) == null ? void 0 : _a["redirectUri"] };
523
+ }, _0x126d54 = {};
524
+ return _0x126d54[_0x9e2557(424)] = _0x50ebef, _0x3ed1fb["XTXiP"](requireBearerAuth, { "verifier": _0x126d54, "requiredScopes": [], "resourceMetadataUrl": _0x3ed1fb["XTXiP"](getOAuthProtectedResourceMetadataUrl, new URL(_0x345a24)) });
528
525
  };
529
- const createAuthCallbackRouter = (_0x17454d, ..._0x53ce66) => {
530
- const _0x30326c = _0xe43874, _0x5f5665 = {};
531
- _0x5f5665["XUwJv"] = function(_0x3f35fc, _0x3299fc) {
532
- return _0x3f35fc && _0x3299fc;
526
+ const createAuthCallbackRouter = (_0x385d17, ..._0x390fd2) => {
527
+ const _0xb0a8ef = _0x4f289c, _0x20d228 = _0x4f289c, _0x3e2237 = {};
528
+ _0x3e2237["IssiA"] = function(_0x5044a5, _0x29bfd1) {
529
+ return _0x5044a5 && _0x29bfd1;
533
530
  };
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);
531
+ const _0x47e062 = _0x3e2237, _0x25e151 = _0x1ba5a3[_0xb0a8ef(393)](), _0x21fd45 = /* @__PURE__ */ new Map();
532
+ _0x25e151["get"](_0x385d17, _0x1ba5a3[_0xb0a8ef(372)](), (_0x13ec44, _0x3e99a6) => {
533
+ const _0x8d3b94 = _0xb0a8ef, _0x332f8a = _0x20d228, { code: _0x228ff5, state: _0x552812, error: _0x30e522 } = _0x13ec44[_0x8d3b94(416)];
534
+ if (_0x47e062["IssiA"](_0x228ff5, _0x552812)) _0x21fd45["set"](_0x552812, _0x228ff5), _0x3e99a6[_0x8d3b94(372)]({});
535
+ else _0x30e522 && _0x3e99a6[_0x8d3b94(366)](2305 + -4275 + 1 * 2370)[_0x332f8a(402)]("OAuth authorization failed: " + _0x30e522);
539
536
  });
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);
537
+ const _0x36d338 = [_0x1ba5a3[_0x20d228(372)](), ..._0x390fd2, (_0x5e1b24, _0x1ddfaf) => {
538
+ const _0x47d319 = _0x20d228, _0xc50672 = _0xb0a8ef, { state: _0x5a5e11 } = _0x5e1b24[_0x47d319(398)];
539
+ if (_0x5a5e11 && _0x21fd45["has"](_0x5a5e11)) {
540
+ const _0x40df20 = _0x21fd45["get"](_0x5a5e11);
541
+ _0x21fd45["delete"](_0x5a5e11);
542
+ const _0x25c4e5 = {};
543
+ _0x25c4e5[_0xc50672(410)] = _0x40df20, _0x1ddfaf[_0xc50672(372)](_0x25c4e5);
544
+ } else _0x1ddfaf[_0x47d319(366)](138 * -25 + -1181 + 1677 * 3)["send"](_0x47d319(392) + _0x5a5e11);
548
545
  }];
549
- return _0x41b8f7[_0x30326c(243)](_0x17454d, ..._0x42e771), _0x41b8f7;
546
+ return _0x25e151["post"](_0x385d17, ..._0x36d338), _0x25e151;
550
547
  };
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;
548
+ function _0x4ca2() {
549
+ const _0x273b7b = ["deleteClient", "ItKpe", "58213QdubMn", "issuer", "generateAccessToken", "Authorization code was not issued to this client: ", "THtZy", "309304uJgGPc", "650586YkQhCn", "generateAuthorizationCode", "WbEUC", "Resource Indicator (RFC8707) missing", "saveCodeData", "split", "/.well-known/oauth-protected-resource", "saveRefreshToken", "Refresh token was not issued to this client: ", "search", "extra", "Invalid authorization code for this client: ", "now", "redirect", "DdiDW", "refreshTokenExpiresIn", "35GscyjL", "scopes", "toString", "refreshTokensStore", "DRJfV", "1222270BhrteE", "get", "2JEGwTi", "status", "saveAccessToken", "getRefreshToken", "params", "revokeRefreshToken", "expiresAt", "json", "995164kgcxSY", "accessTokensStore", "codeChallenge", "codesStore", "Token is invalid", "ZXMTG", "hpQMb", " to this client: ", "Expected resource indicator ", "challengeForAuthorizationCode", "authorize", "redirect_uris", "token", "Refresh token is invalid or does not belong to this client: ", "bearer", "169281FmVANd", "POOxX", "wBcEJ", "clientId", "No authorization code found for state: ", "Router", "redirectUri", "token_type_hint", "JSdBP", "randomBytes", "body", "1120656Arlgdu", "Access token is invalid or does not belong to this client: ", "deleteCodeData", "send", "10EFrFLG", "dHuiq", "exchangeAuthorizationCode", "use", "generateRefreshToken", "join", "EslVC", "code", "RmhZb", "accessTokenExpiresIn", "Refresh token is invalid or has been revoked for this client: ", "delete", "kxhTT", "query", ", got: ", "clients", "client_id", "state", "/.well-known/oauth-authorization-server", "set", "getAccessToken", "verifyAccessToken", "codes", "aud", "refreshTokens", "revokeToken", "gNROD", "VNwJm", "client"];
550
+ _0x4ca2 = function() {
551
+ return _0x273b7b;
552
+ };
553
+ return _0x4ca2();
554
+ }
555
+ const metadataHandler = (_0x16cd97) => {
556
+ const _0x173faa = _0x4f289c, _0x29b53f = _0x27c85b, _0x702826 = { "wBcEJ": function(_0x5bc079) {
557
+ return _0x5bc079();
558
+ }, "UZDZv": "GET" }, _0x6a802d = _0x1ba5a3["Router"]();
559
+ return _0x6a802d["use"](_0x702826[_0x173faa(390)](_0x42d1ae)), _0x6a802d["use"](allowedMethods([_0x702826["UZDZv"]])), _0x6a802d[_0x29b53f(406)]("/", (_0x4b8b3f, _0x57e378) => {
560
+ _0x57e378["status"](-2898 * 1 + 4386 + -1288)["json"](_0x16cd97);
561
+ }), _0x6a802d;
559
562
  };
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;
563
+ const createAuthMetadataRouter = (_0x406d6e, _0x2ab56f, _0x296201) => {
564
+ const _0x13f907 = _0x4f289c, _0x588652 = _0x4f289c, _0x11d350 = { "aUtvX": function(_0x5bd16c, _0x3241ac) {
565
+ return _0x5bd16c(_0x3241ac);
566
+ }, "hpQMb": _0x13f907(348), "THtZy": _0x13f907(421) }, _0x2a7b57 = _0x1ba5a3[_0x13f907(393)](), _0x5c14c7 = _0x11d350["aUtvX"](createOAuthMetadata, { "provider": _0x406d6e, "issuerUrl": new URL(_0x2ab56f) }), _0x2c1bf4 = { "resource": new URL(_0x296201)["href"], "authorization_servers": [_0x5c14c7[_0x13f907(435)]] };
567
+ return _0x2a7b57[_0x588652(406)](_0x11d350[_0x588652(379)], _0x11d350["aUtvX"](metadataHandler, _0x2c1bf4)), _0x2a7b57[_0x588652(406)](_0x11d350[_0x13f907(340)], metadataHandler(_0x5c14c7)), _0x2a7b57;
569
568
  };
570
- const createAuthRouter = (_0x22196d) => {
571
- return mcpAuthRouter(_0x22196d);
569
+ const createAuthRouter = (_0x21f432) => {
570
+ const _0x2af24a = _0x27c85b, _0x5d02c1 = { "EslVC": function(_0x5086c3, _0x2dfe11) {
571
+ return _0x5086c3(_0x2dfe11);
572
+ } };
573
+ return _0x5d02c1[_0x2af24a(409)](mcpAuthRouter, _0x21f432);
572
574
  };
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;
575
+ function _0x52c6() {
576
+ const _0x439ef1 = ["clientSessions", "allSettled", "completions", "ECnDb", "pSeJH", "prompts", "Allow", "version", "writeHead", "bIWcn", "mcp-server", "roots", "user", "sampling", "transport", "1.0.0", "event: close\ndata: \n\n", "tools", "hZKhj", "forEach", "cmFzA", "nCrwA", "jlJyR", "9131868HdwBlj", "auth", "initialize", "Method not allowed.", "close", "logging", "end", "qfAwp", "_sseResponse", "No client found for session ID ", "Internal server error", "rsQQt", "Invalid or missing session ID", "body", "2898986xCDZlF", "mcp-stream-proxy-server", "mcp-session-id", "capabilities", "params", "onerror", "HGCzN", "HhAxF", "client", "connect", "POST", "8912645hTBRuD", "KMbUG", "axyYw", "yWHog", "shouldClose", "server", "SSE", "onRemoterError", "protocolVersion", "json", "includes", "BziWR", "75260CBUrtR", "sessionId", "details", "handleStreamInspector", "gSYHi", "716buJdhN", "1548xdKZTF", "2.0", "type", "verify", "set", "transports", "x-forwarded-for", "clients", "_requestHandlers", "217uzhJsK", "message", "raqFy", "3126RcLxQD", "IIRYw", "headers", "PzXZN", "fulfilled", "SwShd", "brEPQ", "resources", "elicitation", "Dbvnn", "mcpServer", "_sessionId", "HvRHL", "subscribe", "sse-session-id", "listChanged", "jGlwo", "dbAQN", "62679034pRdoDC", "handleSseMessage", "1hzHwJw", "pcDEc", "method", "write", "bxdHV", "send", "push", "name", "handleStreamRequest", "error", "keys", "ping", "GET", "referer", "jsonrpc", "code", "HOJlP", "map", "DELETE", "removeRequestListener", "gyQZO", "377144FmDxyG", "GKIhY", "lVnwc", "value", "status", "handleRequest", "handleSseProxy", "notifications/initialized"];
577
+ _0x52c6 = function() {
578
+ return _0x439ef1;
577
579
  };
578
- return _0x4684();
580
+ return _0x52c6();
579
581
  }
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();
582
+ const _0x20a06a = _0x46ad, _0x294689 = _0x46ad;
583
+ (function(_0x3fbcd0, _0x537973) {
584
+ const _0x1b7fd1 = _0x46ad, _0x38e9b9 = _0x46ad, _0x28dfb2 = _0x3fbcd0();
591
585
  while (!![]) {
592
586
  try {
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"]());
587
+ const _0x203043 = -parseInt(_0x1b7fd1(263)) / (9927 + -6422 + -16 * 219) * (parseInt(_0x1b7fd1(202)) / (-5979 * 1 + -8270 + -14251 * -1)) + parseInt(_0x1b7fd1(243)) / (-1130 * -7 + 11 * 98 + -5 * 1797) * (-parseInt(_0x38e9b9(230)) / (1 * -3694 + -5961 + 9659)) + -parseInt(_0x38e9b9(213)) / (167 + 2490 + 12 * -221) + -parseInt(_0x1b7fd1(315)) / (3789 + -371 * 14 + -1 * -1411) + parseInt(_0x38e9b9(240)) / (-947 * -1 + -16 * 25 + 36 * -15) * (parseInt(_0x1b7fd1(284)) / (15 * -572 + -370 + 8958)) + parseInt(_0x38e9b9(231)) / (3 * 1049 + 22 * 263 + 97 * -92) * (-parseInt(_0x38e9b9(225)) / (-51 * 46 + 3507 * 1 + -1151)) + parseInt(_0x38e9b9(261)) / (111 * -71 + 9481 + -1589);
588
+ if (_0x203043 === _0x537973) break;
589
+ else _0x28dfb2["push"](_0x28dfb2["shift"]());
590
+ } catch (_0x4699a4) {
591
+ _0x28dfb2["push"](_0x28dfb2["shift"]());
598
592
  }
599
593
  }
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();
594
+ })(_0x52c6, 1 * -945178 + 130 * -4808 + 2494755);
595
+ function _0x46ad(_0x4a052d, _0x3a738d) {
596
+ const _0x1bb64c = _0x52c6();
597
+ return _0x46ad = function(_0x29dc2f, _0x219f82) {
598
+ _0x29dc2f = _0x29dc2f - (10 * 827 + 1 * 1223 + 3097 * -3);
599
+ let _0x3d4d7b = _0x1bb64c[_0x29dc2f];
600
+ return _0x3d4d7b;
601
+ }, _0x46ad(_0x4a052d, _0x3a738d);
607
602
  }
608
- const auth = ({ secret: _0x13b538 }) => (_0x5ab11b, _0x46174f, _0x2f7802) => {
603
+ const auth = ({ secret: _0x1876fa }) => (_0x3a27be, _0x4fbb72, _0xa4e5b5) => {
609
604
  var _a;
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"]);
605
+ const _0x2630dd = _0x46ad, _0xfb8b34 = _0x46ad, _0xdf2662 = {};
606
+ _0xdf2662["Dbvnn"] = "Missing bearer token", _0xdf2662["lVnwc"] = "Invalid bearer token";
607
+ const _0x2303c8 = _0xdf2662, _0x3f9aed = (_a = _0x3a27be["headers"]["authorization"]) == null ? void 0 : _a["split"](" ")[67 * 37 + -291 * -17 + -7425];
608
+ if (!_0x3f9aed) {
609
+ _0x4fbb72["status"](1761 + 8167 * 1 + 1361 * -7)[_0x2630dd(268)](_0x2303c8[_0x2630dd(252)]);
615
610
  return;
616
611
  }
617
612
  try {
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);
613
+ _0x3a27be["user"] = _0x93d5a6[_0x2630dd(234)](_0x3f9aed, _0x1876fa), _0xa4e5b5();
614
+ } catch (_0x305aa7) {
615
+ const _0x29550d = {};
616
+ _0x29550d[_0x2630dd(272)] = _0x2303c8[_0xfb8b34(286)], _0x29550d[_0xfb8b34(227)] = _0x305aa7[_0xfb8b34(241)], _0x4fbb72[_0xfb8b34(288)](1 * -6821 + -719 + 7943)[_0xfb8b34(222)](_0x29550d);
622
617
  }
623
618
  };
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);
619
+ const getDeviceInfo = (_0x5ddeb2) => ({ "ip": _0x5ddeb2[_0x20a06a(245)][_0x20a06a(237)] || _0x5ddeb2["ip"] || "", "userAgent": _0x5ddeb2["headers"]["user-agent"] || "", "acceptLanguage": _0x5ddeb2[_0x20a06a(245)]["accept-language"] || "", "referer": _0x5ddeb2[_0x294689(245)][_0x294689(276)] || "" }), forwardProxyServer = (_0x408e33, _0x3d3116) => {
620
+ const _0x29bd7e = _0x20a06a, _0x387a62 = _0x294689, _0x2eab7f = { "raqFy": function(_0x16cd0a, _0x3f3e27, _0x1d6e3a) {
621
+ return _0x16cd0a(_0x3f3e27, _0x1d6e3a);
629
622
  } };
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);
623
+ _0x2eab7f[_0x29bd7e(242)](forwardServerOnRequest, _0x408e33, _0x3d3116), _0x2eab7f["raqFy"](forwardServerOnNotification, _0x408e33, _0x3d3116);
624
+ const _0x247b0b = _0x2eab7f[_0x387a62(242)](forwardClientOnRequest, _0x3d3116, _0x408e33), _0x538a1e = _0x2eab7f[_0x387a62(242)](forwardClientOnNotification, _0x3d3116, _0x408e33);
625
+ _0x3d3116["addRequestListener"](_0x247b0b), _0x3d3116["addNotificationListener"](_0x538a1e), _0x408e33["onclose"] = () => {
626
+ const _0x1a89c1 = _0x387a62;
627
+ _0x3d3116[_0x1a89c1(282)](_0x247b0b), _0x3d3116["removeNotificationListener"](_0x538a1e);
635
628
  };
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)], () => {
629
+ }, initTwinClientHandler = (_0xa5328e, _0x5a76ba) => {
630
+ const _0x515cc5 = _0x20a06a, _0x1dae9a = _0x294689, _0x129c13 = {};
631
+ _0x129c13["rcraz"] = _0x515cc5(291), _0x129c13[_0x515cc5(249)] = function(_0x22b4cc, _0x3d4a15) {
632
+ return _0x22b4cc instanceof _0x3d4a15;
633
+ };
634
+ const _0x366115 = _0x129c13, _0xa89204 = () => {
635
+ const _0x2f8a67 = _0x515cc5, _0x164caa = _0x515cc5, _0x151499 = {};
636
+ _0x151499["listChanged"] = !![];
637
+ const _0x3695f8 = {};
638
+ _0x3695f8[_0x2f8a67(256)] = !![], _0x3695f8["listChanged"] = !![];
639
+ const _0xd183f1 = {};
640
+ _0xd183f1[_0x2f8a67(258)] = !![];
641
+ const _0x50df50 = {};
642
+ _0x50df50["prompts"] = _0x151499, _0x50df50["resources"] = _0x3695f8, _0x50df50[_0x164caa(309)] = _0xd183f1, _0x50df50["completions"] = {}, _0x50df50[_0x164caa(320)] = {};
643
+ const _0x2793e1 = _0x50df50, _0x3af332 = {};
644
+ _0x3af332[_0x164caa(270)] = _0x2f8a67(302), _0x3af332[_0x164caa(299)] = _0x164caa(307), _0xa5328e[_0x2f8a67(239)]["set"](_0x164caa(317), (_0xd67aec) => ({ "protocolVersion": _0xd67aec[_0x164caa(206)][_0x2f8a67(221)], "capabilities": _0x2793e1, "serverInfo": _0x3af332 })), _0xa5328e["_notificationHandlers"][_0x164caa(235)](_0x366115["rcraz"], () => {
650
645
  });
651
- }, _0x27a111 = () => {
652
- const _0x18133e = {};
653
- _0x18133e["lUgOo"] = _0x56464f["qoKBW"];
654
- const _0x40723e = _0x18133e;
655
- _0x1154c9 instanceof SSEServerTransport && (_0x1154c9["close"] = () => {
646
+ }, _0x57bfbe = () => {
647
+ const _0x47ccda = _0x515cc5, _0x3e27a5 = _0x1dae9a, _0x220345 = {};
648
+ _0x220345[_0x47ccda(285)] = _0x3e27a5(308);
649
+ const _0x5011fa = _0x220345;
650
+ _0x366115["brEPQ"](_0x5a76ba, SSEServerTransport) && (_0x5a76ba["close"] = () => {
656
651
  var _a, _b;
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)]();
652
+ const _0x1f3c83 = _0x3e27a5;
653
+ return (_a = _0x5a76ba["_sseResponse"]) == null ? void 0 : _a[_0x1f3c83(266)](_0x5011fa[_0x1f3c83(285)])["end"](), _0x5a76ba[_0x1f3c83(323)] = void 0, (_b = _0x5a76ba["onclose"]) == null ? void 0 : _b.call(_0x5a76ba), Promise["resolve"]();
659
654
  });
660
- }, _0x268bfe = {};
661
- _0x268bfe["beforeInit"] = _0x36e58a, _0x268bfe[_0x1c937a(382)] = _0x27a111, initClientHandler(_0x2ad7a3, _0x268bfe);
655
+ }, _0x250d0c = {};
656
+ _0x250d0c["beforeInit"] = _0xa89204, _0x250d0c["afterInit"] = _0x57bfbe, initClientHandler(_0xa5328e, _0x250d0c);
662
657
  };
663
658
  const useProxyHandles = () => {
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 = () => {
659
+ const _0x76a38c = _0x20a06a, _0x51262c = _0x20a06a, _0x35bafb = { "HGCzN": function(_0x2e02fd, _0x46b511) {
660
+ return _0x2e02fd(_0x46b511);
661
+ }, "dbAQN": _0x76a38c(257), "JcfPn": "mcp-sse-twin-client", "pSeJH": "1.0.0", "tJNRe": function(_0xb38d1c, _0x58b5e7) {
662
+ return _0xb38d1c(_0x58b5e7);
663
+ }, "WYlPz": _0x51262c(219), "KgkaV": function(_0x5595af, _0x3136f8, _0x45555f) {
664
+ return _0x5595af(_0x3136f8, _0x45555f);
665
+ }, "axyYw": _0x76a38c(319), "sDlMU": function(_0x27042f, _0x5ff4b9) {
666
+ return _0x27042f(_0x5ff4b9);
667
+ }, "gyQZO": "No transport found", "aPbtV": function(_0x425111, _0x4422eb) {
668
+ return _0x425111 === _0x4422eb;
669
+ }, "nCrwA": _0x51262c(212), "jlJyR": function(_0x457260, _0x228947) {
670
+ return _0x457260 === _0x228947;
671
+ }, "cmFzA": _0x76a38c(275), "SwShd": _0x76a38c(281), "HIkJt": function(_0x49c7ef, _0x71802a) {
672
+ return _0x49c7ef(_0x71802a);
673
+ }, "HhAxF": "GET, POST, DELETE", "uixmn": _0x76a38c(232), "xLWyK": function(_0x4b2aab, _0x1ec110) {
674
+ return _0x4b2aab === _0x1ec110;
675
+ }, "bIWcn": "text/event-stream", "hZKhj": function(_0x422a3e, _0x26bd1f) {
676
+ return _0x422a3e === _0x26bd1f;
677
+ }, "pcDEc": function(_0x4bf747) {
678
+ return _0x4bf747();
679
+ }, "aWvfb": "Invalid or missing session ID", "nHfJw": function(_0x5027c8, _0x3557f6) {
680
+ return _0x5027c8(_0x3557f6);
681
+ }, "HvRHL": "StreamableHTTP", "yWHog": "mcp-session-id", "xJOKW": "stream-session-id", "BziWR": "mcp-stream-twin-client", "rsQQt": function(_0x5e9790, _0x3c8135, _0x2bd0dd) {
682
+ return _0x5e9790(_0x3c8135, _0x2bd0dd);
683
+ }, "bxdHV": function(_0x468588, _0x4ee8e3) {
684
+ return _0x468588(_0x4ee8e3);
685
+ }, "ivJNB": "Bad Request: No valid session ID provided", "ECnDb": function(_0x35f2c7, _0x48e69a) {
686
+ return _0x35f2c7(_0x48e69a);
687
+ }, "HuQqg": _0x76a38c(203), "gSYHi": "Internal server error", "HNJCu": function(_0x5371a6, _0x9f321f) {
688
+ return _0x5371a6 !== _0x9f321f;
689
+ }, "jGlwo": function(_0x35dde4, _0x3469c7) {
690
+ return _0x35dde4 !== _0x3469c7;
691
+ }, "IIRYw": function(_0x3e617b, _0x5a5083) {
692
+ return _0x3e617b === _0x5a5083;
693
+ }, "KMbUG": _0x51262c(247), "HOJlP": function(_0x58bba3, _0x3f1e4b) {
694
+ return _0x58bba3 === _0x3f1e4b;
695
+ } }, _0x20f02f = {}, _0x444bf8 = {}, _0x283b90 = {}, _0x1af8fb = {};
696
+ let _0x255a21 = () => {
698
697
  };
699
- const _0x3d2fa1 = (_0x3df710) => {
700
- _0x2b6c8f = _0x3df710;
698
+ const _0x3fabb8 = (_0x508066) => {
699
+ _0x255a21 = _0x508066;
701
700
  };
702
- let _0x595907 = () => {
701
+ let _0x451ac6 = () => {
703
702
  };
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];
703
+ const _0x320940 = (_0x562564) => {
704
+ _0x451ac6 = _0x562564;
705
+ }, _0x31ee3c = async (_0x2d5107, _0x29e397, _0x451d88) => {
706
+ const _0x226402 = _0x76a38c, _0x2026ef = _0x51262c, _0x2ee668 = new SSEServerTransport(_0x451d88, _0x29e397), _0x4554e2 = _0x2d5107[_0x226402(245)][_0x35bafb[_0x226402(260)]];
707
+ _0x4554e2 && (_0x2ee668[_0x226402(254)] = _0x4554e2);
708
+ const _0xe06ac6 = _0x2ee668[_0x226402(226)];
709
+ _0x20f02f[_0xe06ac6] = _0x2ee668, _0x2d5107["on"](_0x2026ef(319), () => {
710
+ _0x2ee668["close"](), delete _0x20f02f[_0xe06ac6], delete _0x444bf8[_0xe06ac6];
713
711
  });
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) => {
712
+ const _0x1ce9f1 = {};
713
+ _0x1ce9f1[_0x226402(258)] = !![];
714
+ const _0x25acb5 = {};
715
+ _0x25acb5[_0x2026ef(256)] = !![], _0x25acb5["listChanged"] = !![];
716
+ const _0x293dd5 = {};
717
+ _0x293dd5[_0x226402(258)] = !![];
718
+ const _0x43b120 = {};
719
+ _0x43b120["listChanged"] = !![];
720
+ const _0x408bcc = {};
721
+ _0x408bcc[_0x226402(297)] = _0x1ce9f1, _0x408bcc[_0x2026ef(250)] = _0x25acb5, _0x408bcc[_0x2026ef(309)] = _0x293dd5, _0x408bcc["completions"] = {}, _0x408bcc["logging"] = {}, _0x408bcc[_0x226402(303)] = _0x43b120, _0x408bcc[_0x2026ef(305)] = {}, _0x408bcc[_0x2026ef(251)] = {};
722
+ const _0x504ed8 = _0x408bcc, _0x26f4e7 = {};
723
+ _0x26f4e7[_0x226402(270)] = _0x35bafb["JcfPn"], _0x26f4e7[_0x226402(299)] = _0x35bafb["pSeJH"];
724
+ const _0x466ce3 = {};
725
+ _0x466ce3[_0x2026ef(205)] = _0x504ed8;
726
+ const _0x15fcf0 = new Client(_0x26f4e7, _0x466ce3);
727
+ _0x444bf8[_0xe06ac6] = { "client": _0x15fcf0, "transport": _0x2ee668, "user": _0x2d5107["auth"] || _0x2d5107[_0x226402(304)], "device": _0x35bafb["tJNRe"](getDeviceInfo, _0x2d5107), "type": _0x35bafb["WYlPz"] }, _0x2ee668[_0x2026ef(207)] = (_0xa3eed4) => {
728
+ const _0x17894a = _0x2026ef, _0x3610a3 = _0x226402, _0x1ad3e1 = {};
729
+ _0x1ad3e1["client"] = _0x15fcf0, _0x1ad3e1[_0x17894a(306)] = _0x2ee668, _0x1ad3e1[_0x3610a3(272)] = _0xa3eed4, _0x1ad3e1[_0x17894a(233)] = "SSE", _0x35bafb[_0x17894a(208)](_0x255a21, _0x1ad3e1);
730
+ }, _0x35bafb["KgkaV"](initTwinClientHandler, _0x15fcf0, _0x2ee668), await _0x15fcf0[_0x2026ef(211)](_0x2ee668);
731
+ }, _0x36fe27 = async (_0x4a9267, _0x34d664, _0x9188d) => {
734
732
  var _a;
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);
733
+ const _0x228889 = _0x76a38c, _0xd3f124 = _0x76a38c, _0x4af169 = { "qfAwp": function(_0x5927cb, _0x413a75) {
734
+ return _0x5927cb(_0x413a75);
735
+ }, "COdPg": "SSE" }, _0x2e83b6 = _0x4a9267["query"]["sessionId"], _0x2965e8 = (_a = _0x444bf8[_0x2e83b6]) == null ? void 0 : _a[_0x228889(210)];
736
+ if (!_0x2965e8) {
737
+ _0x34d664[_0xd3f124(288)](-6790 + 1 * 1502 + 5688)["send"]("No client found for session ID " + _0x2e83b6);
740
738
  return;
741
739
  }
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];
740
+ const _0x5f1b27 = new SSEServerTransport(_0x9188d, _0x34d664), _0x4c1f4b = _0x5f1b27["sessionId"];
741
+ _0x283b90[_0x4c1f4b] = _0x5f1b27, _0x4a9267["on"](_0x35bafb[_0xd3f124(215)], () => {
742
+ _0x5f1b27["close"](), delete _0x283b90[_0x4c1f4b], delete _0x1af8fb[_0x4c1f4b];
746
743
  });
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" };
744
+ const _0x51ac56 = {};
745
+ _0x51ac56["listChanged"] = !![];
746
+ const _0x4c8653 = {};
747
+ _0x4c8653["subscribe"] = !![], _0x4c8653[_0xd3f124(258)] = !![];
748
+ const _0x2d60b6 = {};
749
+ _0x2d60b6["listChanged"] = !![];
750
+ const _0x18a0af = {};
751
+ _0x18a0af["prompts"] = _0x51ac56, _0x18a0af[_0x228889(250)] = _0x4c8653, _0x18a0af[_0x228889(309)] = _0x2d60b6, _0x18a0af[_0xd3f124(294)] = {}, _0x18a0af[_0x228889(320)] = {};
752
+ const _0x2650d8 = _0x18a0af, _0x289e6a = {};
753
+ _0x289e6a["name"] = "mcp-sse-proxy-server", _0x289e6a["version"] = _0x35bafb[_0x228889(296)];
754
+ const _0x5bb048 = {};
755
+ _0x5bb048["capabilities"] = _0x2650d8;
756
+ const _0x2ba5f0 = new McpServer(_0x289e6a, _0x5bb048);
757
+ _0x1af8fb[_0x4c1f4b] = { "mcpServer": _0x2ba5f0, "transport": _0x5f1b27, "client": _0x2e83b6, "user": _0x4a9267["auth"] || _0x4a9267[_0x228889(304)], "device": _0x35bafb["sDlMU"](getDeviceInfo, _0x4a9267), "type": _0x35bafb["WYlPz"] }, _0x5f1b27["onerror"] = (_0x48455f) => {
758
+ const _0xe1d310 = _0xd3f124;
759
+ _0x4af169[_0xe1d310(322)](_0x451ac6, { "mcpServer": _0x2ba5f0, "transport": _0x5f1b27, "client": _0x2e83b6, "error": _0x48455f, "type": _0x4af169["COdPg"] });
760
+ }, await _0x2ba5f0[_0xd3f124(211)](_0x5f1b27), _0x35bafb["KgkaV"](forwardProxyServer, _0x2ba5f0["server"], _0x2965e8);
761
+ }, _0xa26b82 = async (_0x3b6605, _0xd4d5d4) => {
762
+ const _0x3bb410 = _0x76a38c, _0x48e644 = _0x76a38c, _0x4b6498 = _0x3b6605["query"]["sessionId"], _0x48157d = _0x20f02f[_0x4b6498] || _0x283b90[_0x4b6498];
763
+ _0x48157d ? await _0x48157d["handlePostMessage"](_0x3b6605, _0xd4d5d4) : _0xd4d5d4[_0x3bb410(288)](46 * -163 + -189 * -36 + 547 * 2)[_0x48e644(268)](_0x35bafb[_0x48e644(283)]);
764
+ }, _0x598f32 = async (_0x4f0123, _0x576383) => {
765
+ const _0x3778d2 = _0x76a38c, _0x1452ab = _0x51262c;
766
+ if (_0x35bafb["aPbtV"](_0x4f0123[_0x3778d2(265)], _0x35bafb[_0x3778d2(313)])) await _0x35bafb["KgkaV"](_0xa8a1cd, _0x4f0123, _0x576383);
767
+ else _0x35bafb[_0x1452ab(314)](_0x4f0123[_0x3778d2(265)], _0x35bafb[_0x3778d2(312)]) || _0x4f0123[_0x3778d2(265)] === _0x35bafb[_0x1452ab(248)] ? await _0x434a15(_0x4f0123, _0x576383) : await _0x35bafb["HIkJt"](_0x1599c5, _0x576383);
768
+ }, _0x1599c5 = async (_0xccf4b7) => {
769
+ const _0x465f4a = _0x76a38c, _0x202c77 = _0x76a38c, _0x387d1b = {};
770
+ _0x387d1b[_0x465f4a(298)] = _0x35bafb[_0x465f4a(209)];
771
+ const _0xab7381 = {};
772
+ _0xab7381[_0x202c77(278)] = -32e3, _0xab7381[_0x465f4a(241)] = _0x465f4a(318);
773
+ const _0x5c39f9 = {};
774
+ _0x5c39f9[_0x465f4a(277)] = _0x35bafb["uixmn"], _0x5c39f9[_0x202c77(272)] = _0xab7381, _0x5c39f9["id"] = null, _0xccf4b7[_0x465f4a(300)](-3983 + 6788 + 30 * -80, _0x387d1b)[_0x465f4a(321)](JSON["stringify"](_0x5c39f9));
775
+ }, _0x434a15 = async (_0x50445f, _0x324b0c) => {
776
+ var _a;
777
+ const _0x3efc91 = _0x51262c, _0x38472c = _0x76a38c, _0x29315d = _0x50445f["headers"][_0x3efc91(204)], _0x2808f2 = _0x20f02f[_0x29315d];
778
+ if (_0x2808f2) {
779
+ await _0x2808f2["handleRequest"](_0x50445f, _0x324b0c);
780
+ const _0x321ed2 = () => {
781
+ delete _0x20f02f[_0x29315d], delete _0x444bf8[_0x29315d];
782
+ };
783
+ if (_0x35bafb["xLWyK"](_0x50445f["method"], _0x35bafb["cmFzA"]) && ((_a = _0x50445f[_0x3efc91(245)]["accept"]) == null ? void 0 : _a[_0x38472c(223)](_0x35bafb[_0x38472c(301)]))) _0x50445f["once"](_0x35bafb[_0x38472c(215)], _0x321ed2);
784
+ else _0x35bafb["hZKhj"](_0x50445f["method"], _0x35bafb["SwShd"]) && _0x35bafb[_0x3efc91(264)](_0x321ed2);
785
+ } else _0x324b0c[_0x38472c(288)](2 * 4306 + -2923 + -5289)[_0x38472c(268)](_0x35bafb["aWvfb"]);
786
+ }, _0xa8a1cd = async (_0x5ddf6e, _0x5be061) => {
787
+ const _0x1a3f1b = _0x51262c, _0x274d0f = _0x51262c;
784
788
  try {
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"]);
789
+ const _0x4729ac = _0x5ddf6e[_0x1a3f1b(245)][_0x35bafb[_0x1a3f1b(216)]], _0x488e88 = _0x5ddf6e["headers"][_0x35bafb["xJOKW"]];
790
+ let _0xdbe225 = _0x20f02f[_0x4729ac];
791
+ if (_0xdbe225) await _0xdbe225["handleRequest"](_0x5ddf6e, _0x5be061, _0x5ddf6e["body"]);
788
792
  else {
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)]);
793
+ if (!_0x4729ac && _0x35bafb["tJNRe"](isInitializeRequest, _0x5ddf6e["body"])) {
794
+ const _0x2d9b07 = {};
795
+ _0x2d9b07["sessionIdGenerator"] = () => _0x488e88, _0xdbe225 = new StreamableHTTPServerTransport(_0x2d9b07);
796
+ const _0x4fa118 = {};
797
+ _0x4fa118[_0x274d0f(258)] = !![];
798
+ const _0xd6a6ae = {};
799
+ _0xd6a6ae["subscribe"] = !![], _0xd6a6ae["listChanged"] = !![];
800
+ const _0x1e2cef = {};
801
+ _0x1e2cef["listChanged"] = !![];
802
+ const _0x1643d4 = {};
803
+ _0x1643d4["listChanged"] = !![];
804
+ const _0x45b046 = {};
805
+ _0x45b046["prompts"] = _0x4fa118, _0x45b046[_0x1a3f1b(250)] = _0xd6a6ae, _0x45b046[_0x274d0f(309)] = _0x1e2cef, _0x45b046["completions"] = {}, _0x45b046[_0x274d0f(320)] = {}, _0x45b046[_0x274d0f(303)] = _0x1643d4, _0x45b046[_0x274d0f(305)] = {}, _0x45b046["elicitation"] = {};
806
+ const _0x346679 = _0x45b046, _0x471c1d = {};
807
+ _0x471c1d["name"] = _0x35bafb[_0x274d0f(224)], _0x471c1d["version"] = _0x35bafb[_0x1a3f1b(296)];
808
+ const _0x24f908 = {};
809
+ _0x24f908[_0x1a3f1b(205)] = _0x346679;
810
+ const _0x292d84 = new Client(_0x471c1d, _0x24f908);
811
+ _0x35bafb[_0x1a3f1b(326)](initTwinClientHandler, _0x292d84, _0xdbe225), _0x444bf8[_0x488e88] = { "client": _0x292d84, "transport": _0xdbe225, "user": _0x5ddf6e["auth"] || _0x5ddf6e[_0x1a3f1b(304)], "device": _0x35bafb[_0x1a3f1b(267)](getDeviceInfo, _0x5ddf6e), "type": _0x35bafb[_0x274d0f(255)] }, _0x20f02f[_0x488e88] = _0xdbe225, _0xdbe225[_0x1a3f1b(226)] = _0x488e88, _0xdbe225["onclose"] = () => {
812
+ const _0x497152 = _0xdbe225["sessionId"];
813
+ _0x497152 && _0x20f02f[_0x497152] && (delete _0x20f02f[_0x497152], delete _0x444bf8[_0x497152]);
814
+ }, _0xdbe225["onerror"] = (_0x3b4790) => {
815
+ _0x35bafb["nHfJw"](_0x255a21, { "client": _0x292d84, "transport": _0xdbe225, "error": _0x3b4790, "type": _0x35bafb["HvRHL"] });
816
+ }, await _0x292d84["connect"](_0xdbe225), await _0xdbe225["handleRequest"](_0x5ddf6e, _0x5be061, _0x5ddf6e[_0x1a3f1b(328)]);
813
817
  } else {
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);
818
+ const _0x2025f8 = {};
819
+ _0x2025f8["jsonrpc"] = _0x35bafb["uixmn"], _0x2025f8[_0x1a3f1b(272)] = {}, _0x2025f8["id"] = null, _0x2025f8[_0x1a3f1b(272)]["code"] = -(-56767 + -1 * -51601 + 37166), _0x2025f8[_0x1a3f1b(272)][_0x274d0f(241)] = _0x35bafb["ivJNB"], _0x5be061[_0x274d0f(288)](4866 + -5743 + 1277)["json"](_0x2025f8);
816
820
  }
817
821
  }
818
822
  } catch {
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);
823
+ if (!_0x5be061["headersSent"]) {
824
+ const _0x137ac5 = {};
825
+ _0x137ac5["code"] = -32603, _0x137ac5[_0x1a3f1b(241)] = _0x274d0f(325);
826
+ const _0x20b4ae = {};
827
+ _0x20b4ae["jsonrpc"] = _0x274d0f(232), _0x20b4ae["error"] = _0x137ac5, _0x20b4ae["id"] = null, _0x5be061["status"](-71 * -48 + 3637 + -11 * 595)[_0x274d0f(222)](_0x20b4ae);
822
828
  }
823
829
  }
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) => {
830
+ }, _0xd1b50f = async (_0x23472f, _0x85b2e8) => {
831
+ const _0x268133 = _0x76a38c, _0x4061ea = _0x51262c;
832
+ if (_0x35bafb["jlJyR"](_0x23472f[_0x268133(265)], _0x35bafb[_0x4061ea(313)])) await _0x35bafb["KgkaV"](_0x14d4c3, _0x23472f, _0x85b2e8);
833
+ else _0x35bafb[_0x4061ea(310)](_0x23472f["method"], _0x35bafb["cmFzA"]) || _0x23472f[_0x268133(265)] === _0x35bafb[_0x268133(248)] ? await _0x5c7eee(_0x23472f, _0x85b2e8) : await _0x35bafb[_0x268133(295)](_0x1599c5, _0x85b2e8);
834
+ }, _0x5c7eee = async (_0x309024, _0x5092cc) => {
835
+ const _0x17a472 = _0x51262c, _0x34394d = _0x309024["headers"]["mcp-session-id"], _0x4c53de = _0x283b90[_0x34394d];
836
+ _0x4c53de ? (await _0x4c53de["handleRequest"](_0x309024, _0x5092cc), _0x309024[_0x17a472(265)] === _0x35bafb[_0x17a472(248)] && (delete _0x283b90[_0x34394d], delete _0x1af8fb[_0x34394d])) : _0x5092cc[_0x17a472(288)](-7657 + 34 * -13 + 8499)[_0x17a472(268)](_0x17a472(327));
837
+ }, _0x14d4c3 = async (_0x233126, _0x1351e0) => {
832
838
  var _a;
833
- const _0x95628c = _0xa78d72, _0x4aa102 = _0x356f5f, _0x298da4 = { "lGlsW": function(_0x3b1c26, _0x19dffb) {
834
- return _0x3b1c26(_0x19dffb);
835
- } };
839
+ const _0x4959f2 = _0x51262c, _0x3e9af9 = _0x51262c;
836
840
  try {
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)]);
841
+ const _0x328653 = _0x233126[_0x4959f2(245)][_0x35bafb[_0x4959f2(216)]], _0x3da94e = _0x233126["query"][_0x4959f2(226)];
842
+ let _0x3bf4fd = _0x283b90[_0x328653];
843
+ if (_0x3bf4fd) await _0x3bf4fd["handleRequest"](_0x233126, _0x1351e0, _0x233126["body"]);
840
844
  else {
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);
845
+ if (!_0x328653 && _0x35bafb[_0x3e9af9(295)](isInitializeRequest, _0x233126["body"])) {
846
+ const _0x589046 = (_a = _0x444bf8[_0x3da94e]) == null ? void 0 : _a[_0x3e9af9(210)];
847
+ if (!_0x589046) {
848
+ _0x1351e0["status"](2865 + -9191 + 177 * 38)[_0x4959f2(268)](_0x3e9af9(324) + _0x3da94e);
845
849
  return;
846
850
  }
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)]);
851
+ const _0x42a0c5 = _0x268db3["randomUUID"](), _0x5efd47 = {};
852
+ _0x5efd47["sessionIdGenerator"] = () => _0x42a0c5, _0x3bf4fd = new StreamableHTTPServerTransport(_0x5efd47);
853
+ const _0x56d383 = {};
854
+ _0x56d383["listChanged"] = !![];
855
+ const _0x49405c = {};
856
+ _0x49405c["subscribe"] = !![], _0x49405c[_0x3e9af9(258)] = !![];
857
+ const _0x385253 = {};
858
+ _0x385253["listChanged"] = !![];
859
+ const _0xb2e1f3 = {};
860
+ _0xb2e1f3["prompts"] = _0x56d383, _0xb2e1f3[_0x3e9af9(250)] = _0x49405c, _0xb2e1f3[_0x3e9af9(309)] = _0x385253, _0xb2e1f3["completions"] = {}, _0xb2e1f3["logging"] = {};
861
+ const _0x151caa = _0xb2e1f3, _0x1c9f77 = {};
862
+ _0x1c9f77[_0x4959f2(270)] = _0x35bafb["HuQqg"], _0x1c9f77[_0x3e9af9(299)] = _0x35bafb["pSeJH"];
863
+ const _0x3a8952 = {};
864
+ _0x3a8952["capabilities"] = _0x151caa;
865
+ const _0x508f18 = new McpServer(_0x1c9f77, _0x3a8952);
866
+ _0x1af8fb[_0x42a0c5] = { "mcpServer": _0x508f18, "transport": _0x3bf4fd, "client": _0x3da94e, "user": _0x233126[_0x4959f2(316)] || _0x233126[_0x4959f2(304)], "device": _0x35bafb["bxdHV"](getDeviceInfo, _0x233126), "type": _0x35bafb[_0x3e9af9(255)] }, _0x283b90[_0x42a0c5] = _0x3bf4fd, _0x3bf4fd["sessionId"] = _0x42a0c5, _0x3bf4fd["onclose"] = () => {
867
+ const _0x59be51 = _0x3bf4fd["sessionId"];
868
+ _0x59be51 && _0x20f02f[_0x59be51] && (delete _0x283b90[_0x59be51], delete _0x1af8fb[_0x59be51]);
869
+ }, _0x3bf4fd[_0x3e9af9(207)] = (_0x2b5819) => {
870
+ const _0x5a948c = _0x4959f2, _0x431533 = _0x3e9af9, _0x3c8454 = {};
871
+ _0x3c8454["mcpServer"] = _0x508f18, _0x3c8454["transport"] = _0x3bf4fd, _0x3c8454[_0x5a948c(210)] = _0x3da94e, _0x3c8454[_0x431533(272)] = _0x2b5819, _0x3c8454["type"] = _0x35bafb["HvRHL"], _0x451ac6(_0x3c8454);
872
+ }, await _0x508f18["connect"](_0x3bf4fd), _0x35bafb[_0x4959f2(326)](forwardProxyServer, _0x508f18[_0x4959f2(218)], _0x589046), await _0x3bf4fd[_0x4959f2(289)](_0x233126, _0x1351e0, _0x233126["body"]);
869
873
  } else {
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);
874
+ const _0x23bc3c = {};
875
+ _0x23bc3c[_0x4959f2(278)] = -(3005 * -5 + -2 * -19098 + 8829), _0x23bc3c["message"] = "Bad Request: No valid session ID provided";
876
+ const _0x3f80bd = {};
877
+ _0x3f80bd[_0x3e9af9(277)] = _0x35bafb["uixmn"], _0x3f80bd["error"] = _0x23bc3c, _0x3f80bd["id"] = null, _0x1351e0["status"](-7031 + 1300 * -6 + 15231 * 1)["json"](_0x3f80bd);
872
878
  }
873
879
  }
874
880
  } catch {
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);
881
+ if (!_0x1351e0["headersSent"]) {
882
+ const _0x3ee562 = {};
883
+ _0x3ee562["jsonrpc"] = _0x35bafb["uixmn"], _0x3ee562[_0x3e9af9(272)] = {}, _0x3ee562["id"] = null, _0x3ee562[_0x3e9af9(272)][_0x3e9af9(278)] = -32603, _0x3ee562[_0x3e9af9(272)]["message"] = _0x35bafb[_0x4959f2(229)], _0x1351e0[_0x3e9af9(288)](1 * 2239 + -3240 + -79 * -19)["json"](_0x3ee562);
878
884
  }
879
885
  }
880
- }, _0x571656 = () => {
881
- const _0x14abe7 = _0xa78d72, _0x4b90b3 = _0x356f5f;
886
+ }, _0x185a46 = () => {
887
+ const _0x887a58 = _0x51262c, _0x247bde = _0x51262c;
882
888
  try {
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"]());
889
+ Object["values"](_0x20f02f)[_0x887a58(311)]((_0x1527d1) => _0x1527d1[_0x887a58(319)]()), Object["values"](_0x283b90)[_0x247bde(311)]((_0x464d20) => _0x464d20["close"]()), Object["values"](_0x444bf8)["forEach"]((_0x4da3ab) => _0x4da3ab["client"]["close"]()), Object["values"](_0x1af8fb)["forEach"]((_0x5b03d8) => _0x5b03d8[_0x247bde(253)][_0x887a58(319)]());
884
890
  } catch {
885
891
  }
886
892
  try {
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]);
893
+ Object["keys"](_0x20f02f)[_0x887a58(311)]((_0x161207) => delete _0x20f02f[_0x161207]), Object[_0x887a58(273)](_0x283b90)[_0x247bde(311)]((_0x59cea1) => delete _0x283b90[_0x59cea1]), Object[_0x887a58(273)](_0x444bf8)[_0x887a58(311)]((_0x39edcf) => delete _0x444bf8[_0x39edcf]), Object["keys"](_0x1af8fb)[_0x247bde(311)]((_0x537136) => delete _0x1af8fb[_0x537136]);
888
894
  } catch {
889
895
  }
890
896
  return {};
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];
897
+ }, _0x7fa775 = async () => {
898
+ const _0x50b983 = _0x76a38c, _0x5e8fae = _0x76a38c, _0x1ec662 = { "Srrtp": function(_0xf2a64d, _0x53b7a4) {
899
+ const _0x8456df = _0x46ad;
900
+ return _0x35bafb[_0x8456df(279)](_0xf2a64d, _0x53b7a4);
901
+ }, "PzXZN": _0x35bafb[_0x50b983(214)] }, _0x2d5e2a = Object["keys"](_0x444bf8)[_0x5e8fae(280)](async (_0x2c1c9d) => {
902
+ const _0x210534 = _0x50b983, _0x3cc955 = _0x5e8fae, { client: _0x2b6042 } = _0x444bf8[_0x2c1c9d];
898
903
  try {
899
- const _0x5e60ac = await _0x5d47a7["ping"]();
900
- return { "sessionId": _0x4e84c, "shouldClose": _0x436dd1["pKdJu"](Object[_0x22bae2(374)](_0x5e60ac)["length"], 1 * -1991 + -2922 + -4913 * -1) };
904
+ const _0x1e74b4 = await _0x2b6042["ping"]();
905
+ return { "sessionId": _0x2c1c9d, "shouldClose": _0x35bafb["HNJCu"](Object[_0x210534(273)](_0x1e74b4)["length"], 5 * 313 + -722 + -843) };
901
906
  } catch {
902
- const _0x2a68e2 = {};
903
- return _0x2a68e2[_0x34de8b(320)] = _0x4e84c, _0x2a68e2["shouldClose"] = !![], _0x2a68e2;
907
+ const _0x4ef8c7 = {};
908
+ return _0x4ef8c7[_0x3cc955(226)] = _0x2c1c9d, _0x4ef8c7["shouldClose"] = !![], _0x4ef8c7;
904
909
  }
905
- }), _0x9cd1ba = Object[_0x3e90d2(374)](_0x4a2f0f)[_0x3e90d2(361)](async (_0x2da174) => {
906
- const _0x2df005 = _0x3e90d2, { mcpServer: _0x2e955b } = _0x4a2f0f[_0x2da174];
910
+ }), _0x3ea5a2 = Object["keys"](_0x1af8fb)[_0x5e8fae(280)](async (_0x55278e) => {
911
+ const _0x15934d = _0x50b983, _0x37a0fa = _0x5e8fae, { mcpServer: _0x24e528 } = _0x1af8fb[_0x55278e];
907
912
  try {
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) };
913
+ const _0x7d6d88 = await _0x24e528["server"][_0x15934d(274)]();
914
+ return { "sessionId": _0x55278e, "shouldClose": _0x35bafb[_0x37a0fa(259)](Object["keys"](_0x7d6d88)["length"], 35 * -119 + -7 * -1337 + -5194) };
910
915
  } catch {
911
- const _0x5a6753 = {};
912
- return _0x5a6753["sessionId"] = _0x2da174, _0x5a6753[_0x2df005(321)] = !![], _0x5a6753;
916
+ const _0x369d46 = {};
917
+ return _0x369d46[_0x15934d(226)] = _0x55278e, _0x369d46["shouldClose"] = !![], _0x369d46;
913
918
  }
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)]);
919
+ }), [_0x5778b5, _0x47fa63] = await Promise["all"]([Promise["allSettled"](_0x2d5e2a), Promise[_0x50b983(293)](_0x3ea5a2)]), _0x2879b0 = [], _0xcc388d = [];
920
+ _0x5778b5[_0x5e8fae(311)]((_0x37bab6) => {
921
+ const _0x1c3201 = _0x50b983, _0x22bd78 = _0x50b983;
922
+ _0x35bafb[_0x1c3201(244)](_0x37bab6["status"], _0x35bafb["KMbUG"]) && _0x37bab6[_0x22bd78(287)][_0x1c3201(217)] && _0x2879b0[_0x22bd78(269)](_0x37bab6[_0x1c3201(287)]["sessionId"]);
923
+ }), _0x47fa63[_0x50b983(311)]((_0x5b046f) => {
924
+ const _0x5aeaac = _0x5e8fae, _0x3ede31 = _0x5e8fae;
925
+ _0x1ec662["Srrtp"](_0x5b046f[_0x5aeaac(288)], _0x1ec662[_0x5aeaac(246)]) && _0x5b046f["value"][_0x3ede31(217)] && _0xcc388d["push"](_0x5b046f[_0x5aeaac(287)]["sessionId"]);
921
926
  });
922
- const _0x154f6e = _0x2312c3["map"](async (_0x1ed1dc) => {
927
+ const _0x40cb72 = _0x2879b0[_0x5e8fae(280)](async (_0x35615a) => {
923
928
  var _a, _b;
924
- const _0x51cc68 = _0x3e90d2;
929
+ const _0x335446 = _0x5e8fae;
925
930
  try {
926
- (_a = _0xca7918[_0x1ed1dc]) == null ? void 0 : _a["close"](), (_b = _0x2b58e6[_0x1ed1dc]) == null ? void 0 : _b["client"][_0x51cc68(338)]();
931
+ (_a = _0x20f02f[_0x35615a]) == null ? void 0 : _a[_0x335446(319)](), (_b = _0x444bf8[_0x35615a]) == null ? void 0 : _b[_0x335446(210)]["close"]();
927
932
  } catch {
928
933
  }
929
934
  try {
930
- delete _0xca7918[_0x1ed1dc], delete _0x2b58e6[_0x1ed1dc];
935
+ delete _0x20f02f[_0x35615a], delete _0x444bf8[_0x35615a];
931
936
  } catch {
932
937
  }
933
- }), _0x63a5b = _0x99e86b["map"](async (_0x11047c) => {
938
+ }), _0x949649 = _0xcc388d[_0x50b983(280)](async (_0x4178a2) => {
934
939
  var _a, _b;
935
- const _0x2d6c34 = _0x410387, _0x169703 = _0x3e90d2;
940
+ const _0x3adc1d = _0x50b983;
936
941
  try {
937
- (_a = _0x2d370c[_0x11047c]) == null ? void 0 : _a[_0x2d6c34(338)](), (_b = _0x4a2f0f[_0x11047c]) == null ? void 0 : _b[_0x2d6c34(323)][_0x169703(338)]();
942
+ (_a = _0x283b90[_0x4178a2]) == null ? void 0 : _a["close"](), (_b = _0x1af8fb[_0x4178a2]) == null ? void 0 : _b[_0x3adc1d(253)]["close"]();
938
943
  } catch {
939
944
  }
940
945
  try {
941
- delete _0x2d370c[_0x11047c], delete _0x4a2f0f[_0x11047c];
946
+ delete _0x283b90[_0x4178a2], delete _0x1af8fb[_0x4178a2];
942
947
  } catch {
943
948
  }
944
949
  });
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;
950
+ await Promise[_0x5e8fae(293)]([..._0x40cb72, ..._0x949649]);
951
+ const _0x2cb281 = {};
952
+ return _0x2cb281[_0x5e8fae(292)] = _0x2879b0, _0x2cb281["remoterSessions"] = _0xcc388d, _0x2cb281;
953
+ }, _0x230d55 = {};
954
+ return _0x230d55[_0x76a38c(290)] = _0x31ee3c, _0x230d55["handleSseInspector"] = _0x36fe27, _0x230d55[_0x76a38c(262)] = _0xa26b82, _0x230d55[_0x76a38c(271)] = _0x598f32, _0x230d55[_0x76a38c(228)] = _0xd1b50f, _0x230d55[_0x51262c(238)] = _0x444bf8, _0x230d55["remoters"] = _0x1af8fb, _0x230d55[_0x51262c(236)] = _0x20f02f, _0x230d55["inspectors"] = _0x283b90, _0x230d55["reset"] = _0x185a46, _0x230d55["ping"] = _0x7fa775, _0x230d55["onClientError"] = _0x3fabb8, _0x230d55[_0x76a38c(220)] = _0x320940, _0x230d55;
950
955
  };
951
956
  export {
952
957
  ACCESS_TOKEN_EXPIRES_IN,