@opentiny/agent 0.3.3 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -1,1087 +1,1098 @@
1
- import _0x55456e from "jsonwebtoken";
1
+ import _0x42bb3b 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 { JSONRPCMessageSchema, EmptyResultSchema, ElicitResultSchema, CreateMessageResultSchema, ListRootsResultSchema, isInitializeRequest } from "@modelcontextprotocol/sdk/types.js";
7
- import _0xafee6b from "cors";
8
- import _0xec42e8 from "express";
7
+ import _0x310cf0 from "cors";
8
+ import _0x5cd98a 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
- const _0x57ef6f = _0x3a81;
15
- (function(_0x14843e, _0x5069fd) {
16
- const _0x38c567 = _0x3a81, _0x43b791 = _0x3a81, _0x4dbc6f = _0x14843e();
14
+ const _0x2891c6 = _0x3dac;
15
+ (function(_0x332e45, _0x27c64c) {
16
+ const _0x1b32d0 = _0x3dac, _0x27f092 = _0x3dac, _0x352d37 = _0x332e45();
17
17
  while (!![]) {
18
18
  try {
19
- const _0x2b32ea = parseInt(_0x38c567(489)) / (-4828 + -13 * -12 + 4673) + parseInt(_0x38c567(496)) / (1097 * 2 + -121 * 1 + -19 * 109) + parseInt(_0x38c567(498)) / (3 * -2081 + 18 * 159 + 3384) + parseInt(_0x43b791(497)) / (-5709 + -77 + 5790) * (-parseInt(_0x38c567(506)) / (-6556 + -14 * -189 + 9 * 435)) + parseInt(_0x38c567(505)) / (1 * -3719 + -7209 + -71 * -154) + parseInt(_0x43b791(486)) / (-1 * -1957 + 7849 + -9799) * (parseInt(_0x38c567(504)) / (4784 + 8582 + -13358)) + -parseInt(_0x38c567(495)) / (2460 + 2 * 822 + -4095);
20
- if (_0x2b32ea === _0x5069fd) break;
21
- else _0x4dbc6f["push"](_0x4dbc6f["shift"]());
22
- } catch (_0x37a7dd) {
23
- _0x4dbc6f["push"](_0x4dbc6f["shift"]());
19
+ const _0x24b621 = parseInt(_0x1b32d0(490)) / (643 * -11 + 4739 + 2335) + parseInt(_0x27f092(479)) / (7659 + 547 * -1 + -7110) + parseInt(_0x1b32d0(483)) / (-581 * 14 + 1 * -8503 + 16640) + parseInt(_0x27f092(492)) / (1338 * -3 + 6438 + -2420) + -parseInt(_0x27f092(485)) / (-5641 * -1 + -2755 + -2881) + parseInt(_0x1b32d0(484)) / (-31 * 218 + 3019 + -1 * -3745) * (-parseInt(_0x1b32d0(493)) / (-1002 * 1 + 689 + 320)) + -parseInt(_0x1b32d0(489)) / (239 * 7 + 8439 + -10104);
20
+ if (_0x24b621 === _0x27c64c) break;
21
+ else _0x352d37["push"](_0x352d37["shift"]());
22
+ } catch (_0xebda2e) {
23
+ _0x352d37["push"](_0x352d37["shift"]());
24
24
  }
25
25
  }
26
- })(_0x3d3a, 455039 + 1 * 62630 + 26374);
27
- function _0x3a81(_0x574125, _0x431b73) {
28
- const _0x10c871 = _0x3d3a();
29
- return _0x3a81 = function(_0x17836e, _0x1efeb7) {
30
- _0x17836e = _0x17836e - (5 * 78 + -7411 + 7507);
31
- let _0x21f0fc = _0x10c871[_0x17836e];
32
- return _0x21f0fc;
33
- }, _0x3a81(_0x574125, _0x431b73);
26
+ })(_0x3533, 3049 * -69 + 709411 + 1 * -57557);
27
+ const SUBPROTOCOL = "mcp";
28
+ function _0x3dac(_0x4d1ee5, _0x42e258) {
29
+ const _0x5de25c = _0x3533();
30
+ return _0x3dac = function(_0x31d554, _0x48d1d2) {
31
+ _0x31d554 = _0x31d554 - (3 * 2846 + 4146 + -12208);
32
+ let _0x4c57f4 = _0x5de25c[_0x31d554];
33
+ return _0x4c57f4;
34
+ }, _0x3dac(_0x4d1ee5, _0x42e258);
34
35
  }
35
- function _0x3d3a() {
36
- const _0x1753f6 = ["5IPOFFa", "798WVzKmk", "message", "send", "1003048CrcRiX", "toString", "close", "onerror", "FWfnP", "vkfvw", "24638427mIoURR", "1794792xxYZSS", "333176JjQIRT", "2016036NHXzDh", "nmmli", "protocol", "_socket", "mcp", "error", "55536eLxIwF", "6576faqCII"];
37
- _0x3d3a = function() {
38
- return _0x1753f6;
39
- };
40
- return _0x3d3a();
41
- }
42
- const SUBPROTOCOL = _0x57ef6f(502);
43
36
  class WebSocketServerTransport {
44
- constructor(_0x289e8d) {
45
- this["_socket"] = _0x289e8d;
37
+ constructor(_0x4f3ce8) {
38
+ const _0x34b022 = _0x3dac;
39
+ this[_0x34b022(488)] = _0x4f3ce8;
46
40
  }
47
41
  async ["start"]() {
48
- const _0x55d8bf = _0x57ef6f, _0x348a49 = _0x57ef6f, _0x43fe65 = {};
49
- _0x43fe65[_0x55d8bf(494)] = "Unsupported websocket subprotocol", _0x43fe65[_0x348a49(493)] = _0x348a49(503);
50
- const _0x330ecf = _0x43fe65;
42
+ const _0x56f695 = _0x3dac, _0x4d0111 = _0x3dac, _0x3e06a9 = {};
43
+ _0x3e06a9[_0x56f695(491)] = function(_0x5ba5f7, _0x24bd08) {
44
+ return _0x5ba5f7 !== _0x24bd08;
45
+ }, _0x3e06a9[_0x56f695(480)] = _0x56f695(477), _0x3e06a9["SmXiv"] = "close", _0x3e06a9["hQRmC"] = "message";
46
+ const _0x2ab248 = _0x3e06a9;
51
47
  if (!this["_socket"]) return;
52
- if (this[_0x348a49(501)][_0x55d8bf(500)] !== SUBPROTOCOL) {
53
- this[_0x348a49(501)]["close"](4475 * -2 + 9471 * -1 + -19423 * -1, _0x330ecf[_0x55d8bf(494)]);
48
+ if (_0x2ab248["JMmdJ"](this["_socket"][_0x4d0111(487)], SUBPROTOCOL)) {
49
+ this["_socket"][_0x56f695(476)](1752 * -1 + 491 * -2 + 3736, "Unsupported websocket subprotocol");
54
50
  return;
55
51
  }
56
- this["_socket"]["on"](_0x330ecf[_0x55d8bf(493)], (_0x5ca3d6) => {
52
+ this["_socket"]["on"](_0x2ab248["EKPiV"], (_0x11c63f) => {
57
53
  var _a;
58
- const _0x583d7f = _0x55d8bf;
59
- (_a = this[_0x583d7f(492)]) == null ? void 0 : _a.call(this, _0x5ca3d6);
60
- }), this["_socket"]["on"]("close", () => {
54
+ (_a = this["onerror"]) == null ? void 0 : _a.call(this, _0x11c63f);
55
+ }), this["_socket"]["on"](_0x2ab248["SmXiv"], () => {
61
56
  var _a;
62
- this["_socket"] = void 0, (_a = this["onclose"]) == null ? void 0 : _a.call(this);
63
- }), this["_socket"]["on"](_0x55d8bf(487), (_0x5a85e3) => {
57
+ const _0x1c1c36 = _0x56f695;
58
+ this[_0x1c1c36(488)] = void 0, (_a = this["onclose"]) == null ? void 0 : _a.call(this);
59
+ }), this["_socket"]["on"](_0x2ab248["hQRmC"], (_0x2d2a5d) => {
64
60
  var _a, _b;
65
- const _0x2abeb7 = _0x348a49, _0x27308b = _0x55d8bf;
66
- let _0x542de8;
61
+ const _0x47d433 = _0x4d0111, _0x500ffa = _0x4d0111;
62
+ let _0x3a3905;
67
63
  try {
68
- _0x542de8 = JSONRPCMessageSchema["parse"](JSON["parse"](_0x5a85e3[_0x2abeb7(490)]()));
69
- } catch (_0x29ca21) {
70
- (_a = this[_0x27308b(492)]) == null ? void 0 : _a.call(this, _0x29ca21);
64
+ _0x3a3905 = JSONRPCMessageSchema[_0x47d433(478)](JSON["parse"](_0x2d2a5d[_0x500ffa(482)]()));
65
+ } catch (_0x3151f4) {
66
+ (_a = this["onerror"]) == null ? void 0 : _a.call(this, _0x3151f4);
71
67
  return;
72
68
  }
73
- (_b = this["onmessage"]) == null ? void 0 : _b.call(this, _0x542de8);
69
+ (_b = this[_0x47d433(481)]) == null ? void 0 : _b.call(this, _0x3a3905);
74
70
  });
75
71
  }
76
- async [_0x57ef6f(491)]() {
72
+ async [_0x2891c6(476)]() {
77
73
  var _a;
78
- (_a = this["_socket"]) == null ? void 0 : _a["close"]();
74
+ const _0x408e37 = _0x2891c6, _0x13d168 = _0x2891c6;
75
+ (_a = this[_0x408e37(488)]) == null ? void 0 : _a[_0x13d168(476)]();
79
76
  }
80
- [_0x57ef6f(488)](_0x42fe5b) {
81
- const _0x4b6d2a = { "nmmli": function(_0x50888e, _0x5b4aa9) {
82
- return _0x50888e(_0x5b4aa9);
83
- }, "SYuIv": "Not connected", "PXqmr": function(_0x222499) {
84
- return _0x222499();
77
+ [_0x2891c6(494)](_0x495886) {
78
+ const _0x5683ef = { "YJyZD": function(_0x304fc0, _0xe8bf91) {
79
+ return _0x304fc0(_0xe8bf91);
80
+ }, "TxKcd": "Not connected", "zOrNR": function(_0x4cdc77) {
81
+ return _0x4cdc77();
85
82
  } };
86
- return new Promise((_0x186d95, _0xeb75f9) => {
83
+ return new Promise((_0x1ab727, _0xd1e4bb) => {
87
84
  var _a;
88
- const _0x42764d = _0x3a81;
85
+ const _0x21b2ff = _0x3dac;
89
86
  if (!this["_socket"]) {
90
- _0x4b6d2a[_0x42764d(499)](_0xeb75f9, new Error(_0x4b6d2a["SYuIv"]));
87
+ _0x5683ef["YJyZD"](_0xd1e4bb, new Error(_0x5683ef[_0x21b2ff(486)]));
91
88
  return;
92
89
  }
93
- (_a = this[_0x42764d(501)]) == null ? void 0 : _a["send"](JSON["stringify"](_0x42fe5b)), _0x4b6d2a["PXqmr"](_0x186d95);
90
+ (_a = this["_socket"]) == null ? void 0 : _a[_0x21b2ff(494)](JSON[_0x21b2ff(495)](_0x495886)), _0x5683ef["zOrNR"](_0x1ab727);
94
91
  });
95
92
  }
96
93
  }
97
- function _0x2983() {
98
- const _0x49ac59 = ["name", "clearRequestListener", "GrPty", "setLoggingLevel", "function", "listResources", "YAaae", "hRKkR", "qgcOc", "push", "QJDCY", "elicitation/create", "6209840ieICTt", "level", "JtpyX", "subscribeResource", "HIaTT", "fallbackRequestHandler", "originalOnResponse", "19342SbDDId", "resources/list", "method", "WMwKc", "ReZfj", "CYqhf", "kzqbq", "addResponseListener", "kvcMm", "fallbackNotificationHandler", "hRqHE", "indexOf", "2.0", "clear", "83xNYRqH", "_notificationHandlers", "tools/list", "_onresponse", "code", "gMTWu", "9JldXZB", "4776750ybOOUk", "mnnBm", "initialize", "22nuklNJ", "send", "completion/complete", "splice", "Nqqnp", "eUyqE", "error", "params", "logging/setLevel", "message", "ROeTW", "handleListener", "zWzUq", "8834248gJshOB", "call", "result", "wfyMt", "_onnotification", "25vCaUtg", "transport", "data", "_onrequest", "339356eFMciq", "jsonrpc", "JAhfk", "ping", "otKXF", "1520370ocQwgt", "onerror", "readResource", "SnMEh", "AJTeD", "3500400jFDPbK", "removeResponseListener", "aUVsM", "removeRequestListener", "LsKal", "request", "notifications/cancelled", "voZyw", "vRhZk"];
99
- _0x2983 = function() {
100
- return _0x49ac59;
94
+ function _0x3533() {
95
+ const _0x44f907 = ["356565GiPzgN", "JMmdJ", "1498940hVnlBx", "4295053dxdaHi", "send", "stringify", "close", "error", "parse", "1239054eqBjwD", "EKPiV", "onmessage", "toString", "2110668CEyjwG", "6FYZHXb", "1542420FAtsvs", "TxKcd", "protocol", "_socket", "5526776XaQyWR"];
96
+ _0x3533 = function() {
97
+ return _0x44f907;
101
98
  };
102
- return _0x2983();
99
+ return _0x3533();
103
100
  }
104
- (function(_0x4bc357, _0x293c93) {
105
- const _0x300a52 = _0x593e, _0x4ff2cb = _0x593e, _0x148e6d = _0x4bc357();
101
+ (function(_0x176bdd, _0x56bfdd) {
102
+ const _0x387f6e = _0x1181, _0x46c97b = _0x1181, _0x490dd9 = _0x176bdd();
106
103
  while (!![]) {
107
104
  try {
108
- const _0x1f7e14 = -parseInt(_0x300a52(442)) / (1006 * 8 + -1 * 3083 + -4964) * (-parseInt(_0x4ff2cb(428)) / (-1 * -2011 + 6874 * -1 + 4865)) + -parseInt(_0x4ff2cb(364)) / (861 + -5770 + 1 * 4912) * (-parseInt(_0x4ff2cb(390)) / (5 * -564 + -984 * -8 + -2 * 2524)) + -parseInt(_0x4ff2cb(386)) / (2411 + 8361 + -10767) * (parseInt(_0x4ff2cb(395)) / (-7039 * 1 + -1921 * 4 + 14729)) + parseInt(_0x300a52(421)) / (-8257 * -1 + -8430 + -9 * -20) + -parseInt(_0x4ff2cb(381)) / (7190 + -1 * 8269 + 1087) + parseInt(_0x4ff2cb(365)) / (163 * 10 + 9882 + 11503 * -1) + -parseInt(_0x4ff2cb(400)) / (7843 + -6926 + -907) * (-parseInt(_0x300a52(368)) / (1718 * -3 + 1144 * -3 + 8597));
109
- if (_0x1f7e14 === _0x293c93) break;
110
- else _0x148e6d["push"](_0x148e6d["shift"]());
111
- } catch (_0x42dfdf) {
112
- _0x148e6d["push"](_0x148e6d["shift"]());
105
+ const _0x4d5b93 = -parseInt(_0x387f6e(339)) / (8039 + 5219 + -13257) * (-parseInt(_0x387f6e(405)) / (700 * 2 + 1875 * -1 + -53 * -9)) + -parseInt(_0x46c97b(343)) / (5144 + -2040 * 1 + -443 * 7) + -parseInt(_0x387f6e(383)) / (848 * 5 + 6294 + -54 * 195) * (parseInt(_0x46c97b(385)) / (926 + 1994 * 2 + -4909)) + -parseInt(_0x46c97b(337)) / (2041 + -9639 + 7604) * (parseInt(_0x387f6e(420)) / (761 + -4391 + -3637 * -1)) + parseInt(_0x46c97b(361)) / (9 * -579 + -1 * -4637 + -291 * -2) * (parseInt(_0x387f6e(412)) / (1 * 5938 + -7351 + 158 * 9)) + parseInt(_0x46c97b(358)) / (5483 + -5550 + 11 * 7) * (parseInt(_0x387f6e(364)) / (-67 * 1 + 2488 + -2410)) + parseInt(_0x387f6e(330)) / (2500 + -8457 + 5969) * (-parseInt(_0x46c97b(377)) / (-6263 + 8845 + -367 * 7));
106
+ if (_0x4d5b93 === _0x56bfdd) break;
107
+ else _0x490dd9["push"](_0x490dd9["shift"]());
108
+ } catch (_0x568109) {
109
+ _0x490dd9["push"](_0x490dd9["shift"]());
113
110
  }
114
111
  }
115
- })(_0x2983, -787224 + -102 * -4954 + 1085820);
116
- const forwardServerRequest = async (_0x824cd1, _0x293ea1, _0x322333) => {
112
+ })(_0x19ad, -3 * 487523 + -927748 + 3175987 * 1);
113
+ function _0x19ad() {
114
+ const _0x54a468 = ["removeResponseListener", "QqcZC", "get", "20SKJNGJ", "notifications/cancelled", "complete", "70184euqRDS", "jsonrpc", "addResponseListener", "5603851wxWhAo", "initialize", "EvGJT", "EPDgC", "Tjglr", "awyWl", "resources/subscribe", "xuySB", "_onrequest", "name", "OsntO", "prompts/list", "elicitation/create", "334711pfAseH", "addNotificationListener", "params", "KYLcN", "CevKb", "lwlhr", "6388TimbFA", "ZQTJd", "45BVKBYz", "indexOf", "addRequestListener", "transport", "level", "splice", "send", "completion/complete", "logging/setLevel", "gzXMQ", "_onresponse", "notifications/initialized", "setLoggingLevel", "removeNotificationListener", "handleListener", "roots/list", "MsQKG", "PwoZn", "2.0", "_requestHandlers", "8CMMYQS", "method", "jFgAA", "call", "zgMtg", "resources/list", "callTool", "1575JzqyMP", "length", "push", "listResourceTemplates", "LQlBY", "request", "error", "removeListener", "10661lWHBHG", "originalOnResponse", "result", "JGSLT", "900qmHDum", "clear", "LUzBE", "JqaEZ", "ZgDoK", "clearResponseListener", "tools/list", "2454kjcfpQ", "unsubscribeResource", "341615mqkABV", "AIQzg", "Yjaln", "bsFTc", "1699926JCRyGF", "onerror", "prompts/get", "addListener", "KHwEl", "IIDFo", "function", "eiTfc", "code", "message", "fallbackRequestHandler", "listPrompts"];
115
+ _0x19ad = function() {
116
+ return _0x54a468;
117
+ };
118
+ return _0x19ad();
119
+ }
120
+ const forwardServerRequest = async (_0x1eb6c0, _0x4cef98, _0xb59f9f) => {
117
121
  var _a;
118
- const _0x1fd413 = _0x593e, _0x3947d4 = _0x593e, _0x18c930 = {};
119
- _0x18c930[_0x1fd413(404)] = _0x1fd413(444), _0x18c930["nwPVQ"] = "tools/call", _0x18c930["eUyqE"] = _0x1fd413(429), _0x18c930[_0x1fd413(434)] = "resources/templates/list", _0x18c930[_0x3947d4(398)] = "prompts/get", _0x18c930[_0x3947d4(378)] = "prompts/list", _0x18c930["IZjiZ"] = _0x3947d4(376), _0x18c930[_0x1fd413(436)] = "2.0";
120
- const _0x4b831b = _0x18c930, { id: _0x2fd464, method: _0x142e51, params: _0x5dcbb5 } = _0x322333;
121
- let _0x2ad8aa = {};
122
- switch (_0x142e51) {
123
- case _0x4b831b["LsKal"]:
124
- _0x2ad8aa = await _0x293ea1["listTools"](_0x5dcbb5);
122
+ const _0x186e82 = _0x1181, _0x31ffb1 = _0x1181, _0x1b4ae5 = {};
123
+ _0x1b4ae5[_0x186e82(347)] = _0x186e82(336), _0x1b4ae5[_0x186e82(407)] = "tools/call", _0x1b4ae5[_0x186e82(401)] = _0x31ffb1(410), _0x1b4ae5["KYLcN"] = "resources/read", _0x1b4ae5["DsuFc"] = _0x186e82(370), _0x1b4ae5[_0x186e82(368)] = "resources/unsubscribe", _0x1b4ae5["GYqRq"] = _0x31ffb1(375), _0x1b4ae5["ZgDoK"] = _0x31ffb1(392), _0x1b4ae5[_0x186e82(340)] = _0x186e82(403);
124
+ const _0x5498bb = _0x1b4ae5, { id: _0x45a87a, method: _0xfd1956, params: _0x2448d8 } = _0xb59f9f;
125
+ let _0x1b5fe6 = {};
126
+ switch (_0xfd1956) {
127
+ case _0x5498bb[_0x31ffb1(347)]:
128
+ _0x1b5fe6 = await _0x4cef98["listTools"](_0x2448d8);
125
129
  break;
126
- case _0x4b831b["nwPVQ"]:
127
- _0x2ad8aa = await _0x293ea1["callTool"](_0x5dcbb5);
130
+ case _0x5498bb["jFgAA"]:
131
+ _0x1b5fe6 = await _0x4cef98[_0x186e82(411)](_0x2448d8);
128
132
  break;
129
- case _0x4b831b[_0x1fd413(373)]:
130
- _0x2ad8aa = await _0x293ea1[_0x3947d4(414)](_0x5dcbb5);
133
+ case _0x5498bb[_0x31ffb1(401)]:
134
+ _0x1b5fe6 = await _0x4cef98["listResources"](_0x2448d8);
131
135
  break;
132
- case _0x4b831b["kzqbq"]:
133
- _0x2ad8aa = await _0x293ea1["listResourceTemplates"](_0x5dcbb5);
136
+ case "resources/templates/list":
137
+ _0x1b5fe6 = await _0x4cef98[_0x31ffb1(415)](_0x2448d8);
134
138
  break;
135
- case "resources/read":
136
- _0x2ad8aa = await _0x293ea1[_0x3947d4(397)](_0x5dcbb5);
139
+ case _0x5498bb[_0x186e82(380)]:
140
+ _0x1b5fe6 = await _0x4cef98["readResource"](_0x2448d8);
137
141
  break;
138
- case "resources/subscribe":
139
- _0x2ad8aa = await _0x293ea1[_0x3947d4(424)](_0x5dcbb5);
142
+ case _0x5498bb["DsuFc"]:
143
+ _0x1b5fe6 = await _0x4cef98["subscribeResource"](_0x2448d8);
140
144
  break;
141
- case "resources/unsubscribe":
142
- _0x2ad8aa = await _0x293ea1["unsubscribeResource"](_0x5dcbb5);
145
+ case _0x5498bb["Tjglr"]:
146
+ _0x1b5fe6 = await _0x4cef98[_0x31ffb1(338)](_0x2448d8);
143
147
  break;
144
- case _0x4b831b["SnMEh"]:
145
- _0x2ad8aa = await _0x293ea1["getPrompt"](_0x5dcbb5);
148
+ case _0x31ffb1(345):
149
+ _0x1b5fe6 = await _0x4cef98["getPrompt"](_0x2448d8);
146
150
  break;
147
- case _0x4b831b[_0x1fd413(378)]:
148
- _0x2ad8aa = await _0x293ea1["listPrompts"](_0x5dcbb5);
151
+ case _0x5498bb["GYqRq"]:
152
+ _0x1b5fe6 = await _0x4cef98[_0x31ffb1(354)](_0x2448d8);
149
153
  break;
150
- case _0x3947d4(393):
151
- _0x2ad8aa = await _0x293ea1["ping"]();
154
+ case "ping":
155
+ _0x1b5fe6 = await _0x4cef98["ping"]();
152
156
  break;
153
- case _0x3947d4(370):
154
- _0x2ad8aa = await _0x293ea1["complete"](_0x5dcbb5);
157
+ case _0x5498bb[_0x186e82(334)]:
158
+ _0x1b5fe6 = await _0x4cef98[_0x31ffb1(360)](_0x2448d8);
155
159
  break;
156
- case _0x4b831b["IZjiZ"]:
157
- _0x2ad8aa = await _0x293ea1[_0x1fd413(412)](_0x5dcbb5 == null ? void 0 : _0x5dcbb5[_0x1fd413(422)]);
160
+ case _0x186e82(393):
161
+ _0x1b5fe6 = await _0x4cef98[_0x186e82(397)](_0x2448d8 == null ? void 0 : _0x2448d8[_0x186e82(389)]);
158
162
  break;
159
163
  }
160
- const _0xce4cd2 = {};
161
- _0xce4cd2[_0x3947d4(383)] = _0x2ad8aa, _0xce4cd2[_0x1fd413(391)] = _0x4b831b[_0x3947d4(436)], _0xce4cd2["id"] = _0x2fd464, await ((_a = _0x824cd1 == null ? void 0 : _0x824cd1[_0x3947d4(387)]) == null ? void 0 : _a[_0x3947d4(369)](_0xce4cd2));
162
- }, forwardClientRequest = async (_0x1d5176, _0x54c02a, _0x461bf4) => {
164
+ const _0x39df96 = {};
165
+ _0x39df96[_0x186e82(328)] = _0x1b5fe6, _0x39df96[_0x186e82(362)] = _0x5498bb[_0x31ffb1(340)], _0x39df96["id"] = _0x45a87a, await ((_a = _0x1eb6c0 == null ? void 0 : _0x1eb6c0[_0x31ffb1(388)]) == null ? void 0 : _a[_0x186e82(391)](_0x39df96));
166
+ }, forwardClientRequest = async (_0x5664c1, _0x21c65c, _0x31a2df) => {
163
167
  var _a;
164
- const _0x36644a = _0x593e, _0x226145 = _0x593e, _0x5bf4de = {};
165
- _0x5bf4de[_0x36644a(408)] = "roots/list", _0x5bf4de["hRKkR"] = "sampling/createMessage", _0x5bf4de["simWI"] = _0x226145(420), _0x5bf4de["kPDql"] = _0x226145(393), _0x5bf4de[_0x36644a(415)] = _0x36644a(440);
166
- const _0x28df21 = _0x5bf4de, { id: _0xac7f7, method: _0x33fb33, params: _0x316a73 } = _0x461bf4;
167
- let _0x3be6a1 = {};
168
- switch (_0x33fb33) {
169
- case _0x28df21[_0x226145(408)]:
170
- const _0x18f9fb = {};
171
- _0x18f9fb[_0x226145(430)] = _0x33fb33, _0x18f9fb[_0x36644a(375)] = _0x316a73, _0x3be6a1 = await _0x54c02a["request"](_0x18f9fb, ListRootsResultSchema);
168
+ const _0x563101 = _0x1181, _0x1d2a33 = _0x1181, _0xacb82a = {};
169
+ _0xacb82a["IIDFo"] = _0x563101(400), _0xacb82a[_0x563101(369)] = "sampling/createMessage", _0xacb82a["gzXMQ"] = _0x1d2a33(376), _0xacb82a["OsntO"] = "ping", _0xacb82a["xuySB"] = "2.0";
170
+ const _0x121fcc = _0xacb82a, { id: _0x537b65, method: _0xa1b4, params: _0x3f3a25 } = _0x31a2df;
171
+ let _0x509dc6 = {};
172
+ switch (_0xa1b4) {
173
+ case _0x121fcc[_0x563101(348)]:
174
+ const _0x394266 = {};
175
+ _0x394266[_0x1d2a33(406)] = _0xa1b4, _0x394266[_0x1d2a33(379)] = _0x3f3a25, _0x509dc6 = await _0x21c65c["request"](_0x394266, ListRootsResultSchema);
172
176
  break;
173
- case _0x28df21[_0x226145(416)]:
174
- const _0x520f08 = {};
175
- _0x520f08[_0x226145(430)] = _0x33fb33, _0x520f08[_0x36644a(375)] = _0x316a73, _0x3be6a1 = await _0x54c02a["request"](_0x520f08, CreateMessageResultSchema);
177
+ case _0x121fcc[_0x563101(369)]:
178
+ const _0x4c40d6 = {};
179
+ _0x4c40d6[_0x563101(406)] = _0xa1b4, _0x4c40d6[_0x563101(379)] = _0x3f3a25, _0x509dc6 = await _0x21c65c[_0x563101(417)](_0x4c40d6, CreateMessageResultSchema);
176
180
  break;
177
- case _0x28df21["simWI"]:
178
- const _0x578ac6 = {};
179
- _0x578ac6[_0x226145(430)] = _0x33fb33, _0x578ac6[_0x36644a(375)] = _0x316a73, _0x3be6a1 = await _0x54c02a[_0x36644a(405)](_0x578ac6, ElicitResultSchema);
181
+ case _0x121fcc[_0x1d2a33(394)]:
182
+ const _0x3fc95d = {};
183
+ _0x3fc95d[_0x563101(406)] = _0xa1b4, _0x3fc95d[_0x563101(379)] = _0x3f3a25, _0x509dc6 = await _0x21c65c[_0x1d2a33(417)](_0x3fc95d, ElicitResultSchema);
180
184
  break;
181
- case _0x28df21["kPDql"]:
182
- const _0x33f7d7 = {};
183
- _0x33f7d7["method"] = _0x33fb33, _0x3be6a1 = await _0x54c02a["request"](_0x33f7d7, EmptyResultSchema);
185
+ case _0x121fcc[_0x1d2a33(374)]:
186
+ const _0x272bb7 = {};
187
+ _0x272bb7[_0x563101(406)] = _0xa1b4, _0x509dc6 = await _0x21c65c[_0x563101(417)](_0x272bb7, EmptyResultSchema);
184
188
  break;
185
189
  }
186
- const _0x53d8a9 = {};
187
- return _0x53d8a9[_0x226145(383)] = _0x3be6a1, _0x53d8a9[_0x226145(391)] = _0x28df21[_0x36644a(415)], _0x53d8a9["id"] = _0xac7f7, await ((_a = _0x1d5176 == null ? void 0 : _0x1d5176[_0x36644a(387)]) == null ? void 0 : _a["send"](_0x53d8a9)), _0x3be6a1;
190
+ const _0x8bb89c = {};
191
+ return _0x8bb89c["result"] = _0x509dc6, _0x8bb89c["jsonrpc"] = _0x121fcc[_0x563101(371)], _0x8bb89c["id"] = _0x537b65, await ((_a = _0x5664c1 == null ? void 0 : _0x5664c1["transport"]) == null ? void 0 : _a[_0x563101(391)](_0x8bb89c)), _0x509dc6;
188
192
  };
189
- const forwardServerOnRequest = (_0x4cfb3b, _0x4f414d) => {
190
- const _0x3505bf = _0x593e, _0x39cdb4 = { "voZyw": function(_0x50c207, _0x161783, _0x559c83, _0x33a22f) {
191
- return _0x50c207(_0x161783, _0x559c83, _0x33a22f);
192
- }, "Nqqnp": "2.0" }, _0x59b66e = _0x4cfb3b["_onrequest"];
193
- _0x4cfb3b[_0x3505bf(389)] = async (_0x527a36, _0x4f4ead) => {
193
+ const forwardServerOnRequest = (_0xac7dd2, _0x36ea68) => {
194
+ const _0x26efa7 = _0x1181, _0x55bd73 = _0x1181, _0x835fee = { "pVhZK": function(_0x21266f, _0x1aa6cd) {
195
+ return _0x21266f === _0x1aa6cd;
196
+ }, "bsFTc": _0x26efa7(365), "ZQTJd": function(_0x19a6ef, _0x33220f, _0x5c71a5, _0x5d78be) {
197
+ return _0x19a6ef(_0x33220f, _0x5c71a5, _0x5d78be);
198
+ }, "DfdYr": _0x26efa7(403) }, _0x1ba832 = _0xac7dd2["_onrequest"];
199
+ _0xac7dd2[_0x26efa7(372)] = async (_0x1066e9, _0x22ef09) => {
194
200
  var _a, _b, _c, _d, _e;
195
- const _0x3b840f = _0x3505bf, _0x3a4bd6 = _0x3505bf, { id: _0x3161b9, method: _0x176194 } = _0x527a36;
201
+ const _0x4d6f38 = _0x55bd73, _0x2dab97 = _0x55bd73, { id: _0x305ba1, method: _0x508758 } = _0x1066e9;
196
202
  try {
197
- _0x176194 === _0x3b840f(367) ? await _0x59b66e[_0x3a4bd6(382)](_0x4cfb3b, _0x527a36, _0x4f4ead) : await _0x39cdb4[_0x3b840f(407)](forwardServerRequest, _0x4cfb3b, _0x4f414d, _0x527a36);
198
- } catch (_0x5b52d4) {
199
- const { code: _0x8d32c8, message: _0x2e23a9, data: _0x5064de } = _0x5b52d4;
203
+ _0x835fee["pVhZK"](_0x508758, _0x835fee[_0x4d6f38(342)]) ? await _0x1ba832["call"](_0xac7dd2, _0x1066e9, _0x22ef09) : await _0x835fee[_0x2dab97(384)](forwardServerRequest, _0xac7dd2, _0x36ea68, _0x1066e9);
204
+ } catch (_0xf9c543) {
205
+ const { code: _0x22a3ff, message: _0x4526cd, data: _0x4c84d1 } = _0xf9c543;
200
206
  try {
201
- if (_0x8d32c8) {
202
- const _0x322c6b = {};
203
- _0x322c6b["code"] = _0x8d32c8, _0x322c6b["message"] = _0x2e23a9, _0x322c6b["data"] = _0x5064de;
204
- const _0x4ac2b2 = {};
205
- _0x4ac2b2[_0x3a4bd6(374)] = _0x322c6b, _0x4ac2b2["jsonrpc"] = _0x39cdb4[_0x3a4bd6(372)], _0x4ac2b2["id"] = _0x3161b9, await ((_a = _0x4cfb3b == null ? void 0 : _0x4cfb3b[_0x3a4bd6(387)]) == null ? void 0 : _a[_0x3a4bd6(369)](_0x4ac2b2));
206
- } else (_c = (_b = _0x4cfb3b == null ? void 0 : _0x4cfb3b["transport"]) == null ? void 0 : _b["onerror"]) == null ? void 0 : _c.call(_b, _0x5b52d4);
207
- } catch (_0x14cc28) {
208
- (_e = (_d = _0x4cfb3b == null ? void 0 : _0x4cfb3b["transport"]) == null ? void 0 : _d["onerror"]) == null ? void 0 : _e.call(_d, _0x14cc28);
207
+ if (_0x22a3ff) {
208
+ const _0x30bfe5 = {};
209
+ _0x30bfe5[_0x4d6f38(351)] = _0x22a3ff, _0x30bfe5["message"] = _0x4526cd, _0x30bfe5["data"] = _0x4c84d1;
210
+ const _0x2826a9 = {};
211
+ _0x2826a9[_0x2dab97(418)] = _0x30bfe5, _0x2826a9[_0x4d6f38(362)] = _0x835fee["DfdYr"], _0x2826a9["id"] = _0x305ba1, await ((_a = _0xac7dd2 == null ? void 0 : _0xac7dd2[_0x2dab97(388)]) == null ? void 0 : _a[_0x2dab97(391)](_0x2826a9));
212
+ } else (_c = (_b = _0xac7dd2 == null ? void 0 : _0xac7dd2[_0x4d6f38(388)]) == null ? void 0 : _b[_0x2dab97(344)]) == null ? void 0 : _c.call(_b, _0xf9c543);
213
+ } catch (_0x40eae9) {
214
+ (_e = (_d = _0xac7dd2 == null ? void 0 : _0xac7dd2["transport"]) == null ? void 0 : _d["onerror"]) == null ? void 0 : _e.call(_d, _0x40eae9);
209
215
  }
210
216
  }
211
217
  };
212
218
  };
213
- const forwardServerOnNotification = (_0x1a1c0a, _0x430afd) => {
214
- const _0x2118c4 = _0x593e, _0x59b5a2 = {};
215
- _0x59b5a2[_0x2118c4(432)] = function(_0x23c44f, _0x100c82) {
216
- return _0x23c44f !== _0x100c82;
217
- }, _0x59b5a2["QJDCY"] = "notifications/initialized", _0x59b5a2[_0x2118c4(438)] = function(_0x19dc64, _0x3deff4) {
218
- return _0x19dc64 !== _0x3deff4;
219
- }, _0x59b5a2["WMwKc"] = "notifications/cancelled";
220
- const _0x21d78a = _0x59b5a2;
221
- _0x1a1c0a[_0x2118c4(385)] = async (_0xd38b0c) => {
219
+ const forwardServerOnNotification = (_0xb4ba8d, _0xf834ff) => {
220
+ const _0x51c3b7 = _0x1181, _0x5e43ec = _0x1181, _0x4fb04f = {};
221
+ _0x4fb04f[_0x51c3b7(416)] = function(_0x1e14c7, _0x4655ce) {
222
+ return _0x1e14c7 !== _0x4655ce;
223
+ }, _0x4fb04f[_0x51c3b7(341)] = _0x51c3b7(396), _0x4fb04f[_0x51c3b7(381)] = _0x5e43ec(359);
224
+ const _0x2c4e40 = _0x4fb04f;
225
+ _0xb4ba8d["_onnotification"] = async (_0x292553) => {
222
226
  var _a, _b;
223
- const _0xab747c = _0x2118c4, _0x17e9d4 = _0x2118c4, { method: _0x27a5d8, params: _0x232adc } = _0xd38b0c;
224
- if (_0x21d78a[_0xab747c(432)](_0x27a5d8, _0x21d78a[_0xab747c(419)]) && (_0x21d78a["hRqHE"](_0x27a5d8, _0x21d78a[_0xab747c(431)]) || (_0x232adc == null ? void 0 : _0x232adc["forward"]))) try {
225
- await _0x430afd["notification"](_0xd38b0c);
226
- } catch (_0x4c1f5b) {
227
- (_b = (_a = _0x1a1c0a == null ? void 0 : _0x1a1c0a[_0xab747c(387)]) == null ? void 0 : _a[_0x17e9d4(396)]) == null ? void 0 : _b.call(_a, _0x4c1f5b);
227
+ const _0xeb083 = _0x51c3b7, _0x2fc11f = _0x5e43ec, { method: _0x5a72b5, params: _0x1b931b } = _0x292553;
228
+ if (_0x2c4e40["LQlBY"](_0x5a72b5, _0x2c4e40[_0xeb083(341)]) && (_0x2c4e40[_0x2fc11f(416)](_0x5a72b5, _0x2c4e40[_0x2fc11f(381)]) || (_0x1b931b == null ? void 0 : _0x1b931b["forward"]))) try {
229
+ await _0xf834ff["notification"](_0x292553);
230
+ } catch (_0x181fb6) {
231
+ (_b = (_a = _0xb4ba8d == null ? void 0 : _0xb4ba8d[_0x2fc11f(388)]) == null ? void 0 : _a[_0x2fc11f(344)]) == null ? void 0 : _b.call(_a, _0x181fb6);
228
232
  }
229
233
  };
230
234
  };
231
- const forwardClientOnRequest = (_0x4fb333, _0x32035f) => async (_0x49f7c8) => {
235
+ const forwardClientOnRequest = (_0x32659b, _0x4b000c) => async (_0xe2dde8) => {
232
236
  var _a, _b, _c, _d, _e;
233
- const _0x552319 = _0x593e, _0x1627a9 = _0x593e, _0x2a8233 = { "rVFpi": function(_0x973069, _0x412ac0, _0x65ab82, _0x546e2f) {
234
- return _0x973069(_0x412ac0, _0x65ab82, _0x546e2f);
235
- } };
237
+ const _0x22b4ad = _0x1181, _0x595874 = _0x1181, _0x5e1322 = { "EPDgC": function(_0xbc7e6a, _0x226d0b, _0x942db, _0xc2757d) {
238
+ return _0xbc7e6a(_0x226d0b, _0x942db, _0xc2757d);
239
+ }, "yXxfl": "2.0" };
236
240
  try {
237
- return await _0x2a8233["rVFpi"](forwardClientRequest, _0x4fb333, _0x32035f, _0x49f7c8);
238
- } catch (_0x438e7b) {
239
- const { code: _0x50c004, message: _0x1ad1a1, data: _0x1dd0b9 } = _0x438e7b;
241
+ return await _0x5e1322[_0x22b4ad(367)](forwardClientRequest, _0x32659b, _0x4b000c, _0xe2dde8);
242
+ } catch (_0x4cfcfa) {
243
+ const { code: _0x18ac33, message: _0x2c8a17, data: _0x1f7994 } = _0x4cfcfa;
240
244
  try {
241
- if (_0x50c004) {
242
- const _0x36560a = {};
243
- _0x36560a[_0x552319(362)] = _0x50c004, _0x36560a["message"] = _0x1ad1a1, _0x36560a[_0x1627a9(388)] = _0x1dd0b9;
244
- const _0xbfcc2d = {};
245
- _0xbfcc2d[_0x552319(374)] = _0x36560a, _0xbfcc2d["jsonrpc"] = "2.0", _0xbfcc2d["id"] = _0x49f7c8["id"], await ((_a = _0x4fb333 == null ? void 0 : _0x4fb333["transport"]) == null ? void 0 : _a[_0x552319(369)](_0xbfcc2d));
246
- } else (_c = (_b = _0x4fb333 == null ? void 0 : _0x4fb333[_0x1627a9(387)]) == null ? void 0 : _b["onerror"]) == null ? void 0 : _c.call(_b, _0x438e7b);
247
- } catch (_0x146761) {
248
- (_e = (_d = _0x4fb333 == null ? void 0 : _0x4fb333["transport"]) == null ? void 0 : _d["onerror"]) == null ? void 0 : _e.call(_d, _0x146761);
245
+ if (_0x18ac33) {
246
+ const _0x86d84d = {};
247
+ _0x86d84d["code"] = _0x18ac33, _0x86d84d[_0x22b4ad(352)] = _0x2c8a17, _0x86d84d["data"] = _0x1f7994;
248
+ const _0x193c35 = {};
249
+ _0x193c35[_0x595874(418)] = _0x86d84d, _0x193c35[_0x595874(362)] = _0x5e1322["yXxfl"], _0x193c35["id"] = _0xe2dde8["id"], await ((_a = _0x32659b == null ? void 0 : _0x32659b[_0x595874(388)]) == null ? void 0 : _a["send"](_0x193c35));
250
+ } else (_c = (_b = _0x32659b == null ? void 0 : _0x32659b[_0x22b4ad(388)]) == null ? void 0 : _b["onerror"]) == null ? void 0 : _c.call(_b, _0x4cfcfa);
251
+ } catch (_0x15b561) {
252
+ (_e = (_d = _0x32659b == null ? void 0 : _0x32659b[_0x595874(388)]) == null ? void 0 : _d[_0x22b4ad(344)]) == null ? void 0 : _e.call(_d, _0x15b561);
249
253
  }
250
254
  }
251
255
  };
252
- const forwardClientOnNotification = (_0x144e33, _0x53a87a) => async (_0x430e72) => {
256
+ const forwardClientOnNotification = (_0x372fb8, _0x2de20b) => async (_0x36d5ea) => {
253
257
  var _a, _b, _c;
254
- const _0x501de3 = _0x593e, _0x52ea1c = _0x593e, _0x1d2190 = {};
255
- _0x1d2190["qgcOc"] = function(_0x5c6f0e, _0x2a9d21) {
256
- return _0x5c6f0e !== _0x2a9d21;
257
- }, _0x1d2190["zWzUq"] = function(_0x41c59b, _0x236867) {
258
- return _0x41c59b !== _0x236867;
259
- }, _0x1d2190["KMkci"] = _0x501de3(406), _0x1d2190[_0x501de3(366)] = "2.0";
260
- const _0x5aa68c = _0x1d2190, { method: _0x4ab0e2, params: _0x4ff384 } = _0x430e72;
261
- if (_0x5aa68c[_0x501de3(417)](_0x4ab0e2, "notifications/initialized") && (_0x5aa68c[_0x501de3(380)](_0x4ab0e2, _0x5aa68c["KMkci"]) || (_0x4ff384 == null ? void 0 : _0x4ff384["forward"]))) try {
262
- const _0x1544f1 = { ..._0x430e72 };
263
- _0x1544f1["jsonrpc"] = _0x5aa68c[_0x501de3(366)], await ((_a = _0x53a87a == null ? void 0 : _0x53a87a["transport"]) == null ? void 0 : _a["send"](_0x1544f1));
264
- } catch (_0x1b112c) {
265
- (_c = (_b = _0x144e33 == null ? void 0 : _0x144e33[_0x501de3(387)]) == null ? void 0 : _b[_0x52ea1c(396)]) == null ? void 0 : _c.call(_b, _0x1b112c);
258
+ const _0x278cea = _0x1181, _0x1310c9 = _0x1181, _0x162b13 = {};
259
+ _0x162b13[_0x278cea(350)] = function(_0x109b35, _0x2ed8c4) {
260
+ return _0x109b35 !== _0x2ed8c4;
261
+ }, _0x162b13["LbsLD"] = "notifications/initialized", _0x162b13[_0x1310c9(409)] = function(_0x1eb0d0, _0x1d1d78) {
262
+ return _0x1eb0d0 !== _0x1d1d78;
263
+ }, _0x162b13[_0x278cea(356)] = _0x278cea(359);
264
+ const _0x369e86 = _0x162b13, { method: _0xcd3b11, params: _0x379407 } = _0x36d5ea;
265
+ if (_0x369e86[_0x278cea(350)](_0xcd3b11, _0x369e86["LbsLD"]) && (_0x369e86[_0x1310c9(409)](_0xcd3b11, _0x369e86[_0x278cea(356)]) || (_0x379407 == null ? void 0 : _0x379407["forward"]))) try {
266
+ const _0x492ea3 = { ..._0x36d5ea };
267
+ _0x492ea3["jsonrpc"] = "2.0", await ((_a = _0x2de20b == null ? void 0 : _0x2de20b[_0x278cea(388)]) == null ? void 0 : _a[_0x278cea(391)](_0x492ea3));
268
+ } catch (_0x1b2458) {
269
+ (_c = (_b = _0x372fb8 == null ? void 0 : _0x372fb8["transport"]) == null ? void 0 : _b[_0x278cea(344)]) == null ? void 0 : _c.call(_b, _0x1b2458);
266
270
  }
267
271
  };
268
272
  const createHandleListener = () => {
269
- const _0x377b7b = _0x593e, _0x293df8 = _0x593e, _0x5d1946 = { "HWMPS": function(_0x2b875f, _0x423a45, _0x1c0d9a) {
270
- return _0x2b875f(_0x423a45, _0x1c0d9a);
271
- }, "GrPty": function(_0x5e0d16, _0x2762a7) {
272
- return _0x5e0d16 !== _0x2762a7;
273
- }, "wfyMt": function(_0x3a6f80, _0x3c1c93) {
274
- return _0x3a6f80(_0x3c1c93);
275
- }, "ZrWRI": function(_0x543a2f, _0x5759cd) {
276
- return _0x543a2f === _0x5759cd;
277
- }, "otKXF": _0x377b7b(413) }, _0x56aa39 = [], _0x4cf098 = (_0x302121, _0x1039b4) => {
278
- const _0xe76322 = _0x377b7b;
279
- if (_0x1039b4) {
280
- const _0x5b2951 = [];
281
- for (const _0x4780ef of _0x56aa39) {
273
+ const _0x3d420c = _0x1181, _0x1db963 = _0x1181, _0x67b429 = { "KRzLb": function(_0x47bd85, _0x3f5278, _0x49d5c8) {
274
+ return _0x47bd85(_0x3f5278, _0x49d5c8);
275
+ }, "VuaGF": function(_0x4c6cf1, _0x31b018) {
276
+ return _0x4c6cf1 !== _0x31b018;
277
+ }, "juaWL": function(_0x3f88e3, _0x27fe19) {
278
+ return _0x3f88e3(_0x27fe19);
279
+ }, "LUzBE": function(_0x2f3367, _0x5a57a4) {
280
+ return _0x2f3367 === _0x5a57a4;
281
+ } }, _0x364e0d = [], _0x20263d = (_0x1e2bf8, _0x249ad3) => {
282
+ const _0x52051f = _0x1181;
283
+ if (_0x249ad3) {
284
+ const _0x55ae80 = [];
285
+ for (const _0x5ac8c7 of _0x364e0d) {
282
286
  try {
283
- _0x5b2951["push"](_0x5d1946["HWMPS"](_0x4780ef, _0x302121, _0x1039b4));
287
+ _0x55ae80[_0x52051f(414)](_0x67b429["KRzLb"](_0x5ac8c7, _0x1e2bf8, _0x249ad3));
284
288
  } catch {
285
289
  }
286
290
  }
287
- for (const _0x18bf96 of _0x5b2951) {
288
- if (_0x5d1946[_0xe76322(411)](_0x18bf96, null)) return _0x18bf96;
291
+ for (const _0x4b4b76 of _0x55ae80) {
292
+ if (_0x67b429["VuaGF"](_0x4b4b76, null)) return _0x4b4b76;
289
293
  }
290
- } else for (const _0x49dac of _0x56aa39) {
294
+ } else for (const _0x108683 of _0x364e0d) {
291
295
  try {
292
- _0x5d1946[_0xe76322(384)](_0x49dac, _0x302121);
296
+ _0x67b429["juaWL"](_0x108683, _0x1e2bf8);
293
297
  } catch {
294
298
  }
295
299
  }
296
- }, _0x5c8170 = (_0xa0f8c9) => {
297
- const _0x5e0645 = _0x377b7b, _0xe67ace = _0x377b7b;
298
- _0x5d1946["ZrWRI"](typeof _0xa0f8c9, _0x5d1946[_0x5e0645(394)]) && !_0x56aa39["includes"](_0xa0f8c9) && _0x56aa39[_0xe67ace(418)](_0xa0f8c9);
299
- }, _0x54ac78 = (_0x39f582) => {
300
- const _0x578e6b = _0x377b7b, _0x30a5bb = _0x377b7b, _0x49d0d2 = _0x56aa39[_0x578e6b(439)](_0x39f582);
301
- _0x5d1946["GrPty"](_0x49d0d2, -1) && _0x56aa39[_0x30a5bb(371)](_0x49d0d2, 2878 + 174 * 49 + -11403);
302
- }, _0x268398 = () => {
303
- _0x56aa39["length"] = -13 * 455 + -1782 + 7697;
304
- }, _0x4b470b = {};
305
- return _0x4b470b[_0x293df8(379)] = _0x4cf098, _0x4b470b["addListener"] = _0x5c8170, _0x4b470b["removeListener"] = _0x54ac78, _0x4b470b["clearListener"] = _0x268398, _0x4b470b;
306
- }, setClientListener = (_0x103287) => {
307
- const _0x48d13c = _0x593e, _0x599320 = _0x593e, _0x39d6f4 = { "JtpyX": function(_0x2821c7) {
308
- return _0x2821c7();
300
+ }, _0x2d9cd8 = (_0x4531d5) => {
301
+ const _0x229534 = _0x1181;
302
+ _0x67b429[_0x229534(332)](typeof _0x4531d5, _0x229534(349)) && !_0x364e0d["includes"](_0x4531d5) && _0x364e0d[_0x229534(414)](_0x4531d5);
303
+ }, _0x9dc975 = (_0x4cfd2b) => {
304
+ const _0x27e710 = _0x1181, _0x58cdca = _0x1181, _0x5cfc9e = _0x364e0d[_0x27e710(386)](_0x4cfd2b);
305
+ _0x5cfc9e !== -1 && _0x364e0d[_0x58cdca(390)](_0x5cfc9e, 1497 + 900 + -2 * 1198);
306
+ }, _0x521014 = () => {
307
+ const _0x3e4310 = _0x1181;
308
+ _0x364e0d[_0x3e4310(413)] = 7203 + -5554 + 1649 * -1;
309
+ }, _0xa35486 = {};
310
+ return _0xa35486[_0x3d420c(399)] = _0x20263d, _0xa35486[_0x1db963(346)] = _0x2d9cd8, _0xa35486[_0x1db963(419)] = _0x9dc975, _0xa35486["clearListener"] = _0x521014, _0xa35486;
311
+ }, setClientListener = (_0x45257f) => {
312
+ const _0x5439a0 = _0x1181, _0x2c7f68 = _0x1181, _0x11a992 = { "lwlhr": function(_0x4c73bd) {
313
+ return _0x4c73bd();
314
+ }, "HSkRw": function(_0x27eeca) {
315
+ return _0x27eeca();
309
316
  } };
310
317
  {
311
- const { handleListener: _0x560156, addListener: _0x4dec4d, removeListener: _0x4ff4b3, clearListener: _0x164651 } = _0x39d6f4[_0x48d13c(423)](createHandleListener);
312
- _0x103287[_0x599320(361)] = _0x560156, _0x103287["addResponseListener"] = _0x4dec4d, _0x103287[_0x48d13c(401)] = _0x4ff4b3, _0x103287["clearResponseListener"] = _0x164651;
318
+ const { handleListener: _0x45d201, addListener: _0x2aadec, removeListener: _0x5520cd, clearListener: _0x4e4a52 } = _0x11a992[_0x5439a0(382)](createHandleListener);
319
+ _0x45257f[_0x5439a0(395)] = _0x45d201, _0x45257f[_0x5439a0(363)] = _0x2aadec, _0x45257f[_0x5439a0(355)] = _0x5520cd, _0x45257f[_0x5439a0(335)] = _0x4e4a52;
313
320
  }
314
321
  {
315
- const { handleListener: _0x3d835b, addListener: _0x1995a8, removeListener: _0x56f22b, clearListener: _0x441d8e } = createHandleListener();
316
- _0x103287[_0x48d13c(426)] = _0x3d835b, _0x103287["addRequestListener"] = _0x1995a8, _0x103287[_0x599320(403)] = _0x56f22b, _0x103287[_0x48d13c(410)] = _0x441d8e;
322
+ const { handleListener: _0x125a7c, addListener: _0x287870, removeListener: _0x46d98a, clearListener: _0x5515a6 } = _0x11a992["HSkRw"](createHandleListener);
323
+ _0x45257f[_0x5439a0(353)] = _0x125a7c, _0x45257f[_0x2c7f68(387)] = _0x287870, _0x45257f["removeRequestListener"] = _0x46d98a, _0x45257f["clearRequestListener"] = _0x5515a6;
317
324
  }
318
325
  {
319
- const { handleListener: _0x461cf2, addListener: _0x152cfb, removeListener: _0x223358, clearListener: _0x2fb35b } = createHandleListener();
320
- _0x103287[_0x48d13c(437)] = _0x461cf2, _0x103287["addNotificationListener"] = _0x152cfb, _0x103287["removeNotificationListener"] = _0x223358, _0x103287["clearNotificationListener"] = _0x2fb35b;
326
+ const { handleListener: _0x18b88f, addListener: _0x274f41, removeListener: _0x430102, clearListener: _0x1462dc } = _0x11a992["lwlhr"](createHandleListener);
327
+ _0x45257f["fallbackNotificationHandler"] = _0x18b88f, _0x45257f[_0x2c7f68(378)] = _0x274f41, _0x45257f[_0x2c7f68(398)] = _0x430102, _0x45257f["clearNotificationListener"] = _0x1462dc;
321
328
  }
322
329
  };
323
- function _0x593e(_0x3570ee, _0x57e594) {
324
- const _0x23692a = _0x2983();
325
- return _0x593e = function(_0x4addf5, _0x3efee3) {
326
- _0x4addf5 = _0x4addf5 - (-6409 + 4934 * 1 + 54 * 34);
327
- let _0x20b22c = _0x23692a[_0x4addf5];
328
- return _0x20b22c;
329
- }, _0x593e(_0x3570ee, _0x57e594);
330
+ function _0x1181(_0x6bedb3, _0xe3189c) {
331
+ const _0x22bc1a = _0x19ad();
332
+ return _0x1181 = function(_0x671652, _0x29a241) {
333
+ _0x671652 = _0x671652 - (-7465 + -5032 + 12825);
334
+ let _0x1bde0e = _0x22bc1a[_0x671652];
335
+ return _0x1bde0e;
336
+ }, _0x1181(_0x6bedb3, _0xe3189c);
330
337
  }
331
- const initClientHandler = (_0x21d5fc, { beforeInit: _0xb08e32, afterInit: _0x1eeab0 } = {}) => {
332
- const _0x321c5b = _0x593e, _0x43d753 = _0x593e, _0x3ab046 = { "HIaTT": function(_0x27d8b7, _0x36c4e0) {
333
- return _0x27d8b7 === _0x36c4e0;
334
- }, "JAhfk": "function", "CYqhf": function(_0x228d3d, _0x18461d) {
335
- return _0x228d3d(_0x18461d);
336
- }, "AJTeD": function(_0x372b17) {
337
- return _0x372b17();
338
- }, "YjJdu": function(_0x4ca7fc, _0x264987) {
339
- return _0x4ca7fc === _0x264987;
340
- }, "gMTWu": function(_0x509186, _0x540605) {
341
- return _0x509186(_0x540605);
342
- } }, _0x40bcdd = new Map(_0x21d5fc[_0x321c5b(443)]);
343
- _0x21d5fc["_requestHandlers"]["clear"](), _0x21d5fc[_0x321c5b(443)][_0x43d753(441)](), _0x3ab046[_0x321c5b(425)](typeof _0xb08e32, _0x3ab046[_0x43d753(392)]) && _0x3ab046["AJTeD"](_0xb08e32), _0x3ab046["YjJdu"](_0x21d5fc[_0x321c5b(361)][_0x43d753(409)], "_onresponse") && (_0x21d5fc[_0x43d753(427)] = _0x21d5fc[_0x43d753(361)]), _0x3ab046[_0x321c5b(363)](setClientListener, _0x21d5fc), _0x21d5fc[_0x321c5b(435)]((_0x263710) => {
344
- const _0x596350 = _0x321c5b;
345
- _0x21d5fc[_0x596350(427)]["call"](_0x21d5fc, _0x263710);
346
- }), _0x3ab046["YjJdu"](typeof _0x1eeab0, _0x3ab046[_0x321c5b(392)]) && _0x3ab046[_0x43d753(399)](_0x1eeab0), _0x21d5fc["addNotificationListener"]((_0x10f35d) => {
347
- const _0x211844 = _0x321c5b, { method: _0x46107e } = _0x10f35d, _0x47e3ad = _0x40bcdd["get"](_0x46107e);
348
- _0x3ab046["HIaTT"](typeof _0x47e3ad, _0x3ab046[_0x211844(392)]) && _0x3ab046[_0x211844(433)](_0x47e3ad, _0x10f35d);
338
+ const initClientHandler = (_0x35f090, { beforeInit: _0x2967e8, afterInit: _0x27bcef } = {}) => {
339
+ const _0x4c142e = _0x1181, _0x4daaba = _0x1181, _0x1ecdc4 = { "PwoZn": function(_0x532ea1, _0x2e8b14) {
340
+ return _0x532ea1 === _0x2e8b14;
341
+ }, "JqaEZ": _0x4c142e(349), "RIPWm": function(_0x7f533c, _0x9dbf2b) {
342
+ return _0x7f533c(_0x9dbf2b);
343
+ }, "EvGJT": function(_0x3da6e9, _0xf9a90b) {
344
+ return _0x3da6e9 === _0xf9a90b;
345
+ }, "ARELI": function(_0xc67076) {
346
+ return _0xc67076();
347
+ }, "tGLCP": _0x4daaba(395), "NOoqd": function(_0x4de624, _0x3402d4) {
348
+ return _0x4de624(_0x3402d4);
349
+ } }, _0x5aa9d7 = new Map(_0x35f090["_notificationHandlers"]);
350
+ _0x35f090[_0x4c142e(404)][_0x4c142e(331)](), _0x35f090["_notificationHandlers"][_0x4daaba(331)](), _0x1ecdc4[_0x4c142e(366)](typeof _0x2967e8, _0x1ecdc4["JqaEZ"]) && _0x1ecdc4["ARELI"](_0x2967e8), _0x1ecdc4[_0x4daaba(402)](_0x35f090[_0x4c142e(395)][_0x4daaba(373)], _0x1ecdc4["tGLCP"]) && (_0x35f090["originalOnResponse"] = _0x35f090[_0x4daaba(395)]), _0x1ecdc4["NOoqd"](setClientListener, _0x35f090), _0x35f090["addResponseListener"]((_0x24a8a1) => {
351
+ const _0x4a7898 = _0x4c142e;
352
+ _0x35f090[_0x4a7898(421)][_0x4a7898(408)](_0x35f090, _0x24a8a1);
353
+ }), typeof _0x27bcef === "function" && _0x27bcef(), _0x35f090["addNotificationListener"]((_0x467dad) => {
354
+ const _0x318e0b = _0x4daaba, { method: _0x3f238f } = _0x467dad, _0x5e2a92 = _0x5aa9d7[_0x318e0b(357)](_0x3f238f);
355
+ _0x1ecdc4["PwoZn"](typeof _0x5e2a92, _0x1ecdc4[_0x318e0b(333)]) && _0x1ecdc4["RIPWm"](_0x5e2a92, _0x467dad);
349
356
  });
350
357
  };
351
- function _0x28b5() {
352
- const _0x4f4fd3 = ["3911016EvciNJ", "randomBytes", "randomUUID", "yGbXZ", "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx", "14085YeOQFM", "2790EVoFAe", "replace", "from", "2018884yaUhJo", "toString", "3131885LtuuFF", "6594EzGtez", "6WZHpAW", "256455hqdIVv", "3152JlDIrL", "object", "794268NUTwGu"];
353
- _0x28b5 = function() {
354
- return _0x4f4fd3;
355
- };
356
- return _0x28b5();
357
- }
358
- const _0x36a176 = _0x2e93;
359
- (function(_0x359d44, _0x24b8f9) {
360
- const _0x4b5bcb = _0x2e93, _0x8af79e = _0x2e93, _0x5e6754 = _0x359d44();
358
+ const _0x57871e = _0x37cd;
359
+ (function(_0x4a2642, _0x4d53de) {
360
+ const _0x5a383b = _0x37cd, _0x11a9e7 = _0x37cd, _0x67e0b8 = _0x4a2642();
361
361
  while (!![]) {
362
362
  try {
363
- const _0x5669ac = parseInt(_0x4b5bcb(409)) / (-2390 + 443 * 9 + 12 * -133) + -parseInt(_0x8af79e(422)) / (-49 * -127 + 4168 + -3463 * 3) + -parseInt(_0x4b5bcb(412)) / (467 + -1 * -9543 + -10007) + parseInt(_0x8af79e(413)) / (731 + 779 + 6 * -251) + -parseInt(_0x4b5bcb(424)) / (3989 + 2 * 3236 + -10456) * (-parseInt(_0x8af79e(426)) / (443 * 9 + -1728 + -2253)) + -parseInt(_0x4b5bcb(425)) / (9696 * 1 + -2408 + -809 * 9) * (-parseInt(_0x4b5bcb(410)) / (-1 * -3461 + 910 * 2 + -5273 * 1)) + parseInt(_0x4b5bcb(418)) / (4555 + -1 * 1299 + -17 * 191) * (-parseInt(_0x8af79e(419)) / (-7135 + -7248 + 14393));
364
- if (_0x5669ac === _0x24b8f9) break;
365
- else _0x5e6754["push"](_0x5e6754["shift"]());
366
- } catch (_0x311668) {
367
- _0x5e6754["push"](_0x5e6754["shift"]());
363
+ const _0x459f4d = parseInt(_0x5a383b(323)) / (-1 * -1161 + 37 * -4 + -1012) * (parseInt(_0x5a383b(312)) / (4017 + -1 * -7765 + 62 * -190)) + parseInt(_0x11a9e7(319)) / (-34 * 203 + -3512 + -11 * -947) * (-parseInt(_0x5a383b(318)) / (1843 + 1 * 1880 + 3719 * -1)) + parseInt(_0x5a383b(327)) / (-8284 + -3 * -1387 + 4128) * (-parseInt(_0x11a9e7(313)) / (9217 * -1 + 157 * 1 + 9066)) + -parseInt(_0x5a383b(326)) / (7318 + -2177 * -2 + -5 * 2333) * (-parseInt(_0x11a9e7(309)) / (4427 * -1 + -4169 * 1 + 8604)) + parseInt(_0x5a383b(325)) / (8628 + 6564 + 5061 * -3) * (parseInt(_0x11a9e7(314)) / (-4305 + 11 * 87 + 3358)) + -parseInt(_0x5a383b(317)) / (9927 * 1 + -2802 + -7114) * (parseInt(_0x11a9e7(320)) / (4 * -2090 + 2 * 2826 + 2720)) + -parseInt(_0x5a383b(324)) / (-3484 + 6 * 186 + 2381) * (-parseInt(_0x11a9e7(322)) / (-6467 + 895 + 5586));
364
+ if (_0x459f4d === _0x4d53de) break;
365
+ else _0x67e0b8["push"](_0x67e0b8["shift"]());
366
+ } catch (_0x4b03b5) {
367
+ _0x67e0b8["push"](_0x67e0b8["shift"]());
368
368
  }
369
369
  }
370
- })(_0x28b5, -26 * -19094 + 3 * 240984 + 139699 * -5);
370
+ })(_0x4d6f, -70916 + 484898 + -157620);
371
371
  const randomUUID = () => {
372
- const _0x3fe6cf = _0x2e93, _0x206faf = _0x2e93, _0x37eec2 = {};
373
- _0x37eec2["anYpD"] = function(_0x1e0203, _0x1b73e4) {
374
- return _0x1e0203 & _0x1b73e4;
375
- }, _0x37eec2[_0x3fe6cf(416)] = function(_0x3807b0, _0x26246d) {
376
- return _0x3807b0 | _0x26246d;
377
- }, _0x37eec2["bePiR"] = function(_0x250e76, _0x3626d9) {
378
- return _0x250e76 === _0x3626d9;
379
- }, _0x37eec2["uJPTB"] = _0x3fe6cf(411);
380
- const _0x15d3af = _0x37eec2;
381
- if (_0x15d3af["bePiR"](typeof crypto, _0x15d3af["uJPTB"]) && crypto["randomUUID"]) return crypto["randomUUID"]();
382
- return _0x3fe6cf(417)[_0x3fe6cf(420)](/[xy]/g, (_0x488a59) => {
383
- const _0x1718a6 = _0x3fe6cf, _0x26da5b = _0x206faf, _0xc1ca08 = _0x15d3af["anYpD"](crypto["getRandomValues"](new Uint8Array(-6766 + 7815 + 1 * -1048))[-3883 + -2227 + -65 * -94], -3045 + 9362 + 6302 * -1), _0x56c24d = _0x488a59 === "x" ? _0xc1ca08 : _0x15d3af[_0x1718a6(416)](_0x15d3af["anYpD"](_0xc1ca08, -15 * -652 + -7126 + -2651), -5700 + 2648 * -1 + 8356);
384
- return _0x56c24d[_0x26da5b(423)](-2081 * 1 + 1 * -377 + -2474 * -1);
372
+ const _0x3fd457 = _0x37cd, _0x18b939 = {};
373
+ _0x18b939["iMLeY"] = function(_0xb95b8d, _0x357fb7) {
374
+ return _0xb95b8d & _0x357fb7;
375
+ }, _0x18b939["AfkFc"] = function(_0x5e1b5a, _0x4b4469) {
376
+ return _0x5e1b5a === _0x4b4469;
377
+ }, _0x18b939[_0x3fd457(315)] = function(_0x275556, _0x3086ab) {
378
+ return _0x275556 | _0x3086ab;
379
+ }, _0x18b939["lXWlJ"] = "object", _0x18b939[_0x3fd457(316)] = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx";
380
+ const _0x360e1c = _0x18b939;
381
+ if (typeof crypto === _0x360e1c["lXWlJ"] && crypto["randomUUID"]) return crypto["randomUUID"]();
382
+ return _0x360e1c["TgEQJ"]["replace"](/[xy]/g, (_0x330643) => {
383
+ const _0x37133f = _0x3fd457, _0xb63864 = _0x360e1c["iMLeY"](crypto["getRandomValues"](new Uint8Array(-9498 + -129 * 38 + 1 * 14401))[6211 + -1441 * 3 + -16 * 118], 1481 * -1 + -1 * 5426 + 1 * 6922), _0x61d527 = _0x360e1c[_0x37133f(328)](_0x330643, "x") ? _0xb63864 : _0x360e1c[_0x37133f(315)](_0x360e1c["iMLeY"](_0xb63864, 355 * -8 + 7520 + 1 * -4677), -5610 + 1 * 1279 + 4339 * 1);
384
+ return _0x61d527["toString"](3137 * 3 + -5379 + -4016);
385
385
  });
386
- }, randomBytes = (_0x53be61) => {
387
- const _0xa94349 = _0x2e93, _0x3a6852 = new Uint8Array(_0x53be61);
388
- return crypto["getRandomValues"](_0x3a6852), Array[_0xa94349(421)](_0x3a6852, (_0x2d7a55) => _0x2d7a55["toString"](-3319 * -3 + 9096 + -19037)["padStart"](-81 * -17 + 17 * -121 + 682, "0"))["join"]("");
389
- }, _0x325be1 = {};
390
- _0x325be1[_0x36a176(415)] = randomUUID, _0x325be1[_0x36a176(414)] = randomBytes;
391
- function _0x2e93(_0x5329bc, _0x4b803f) {
392
- const _0x3b3646 = _0x28b5();
393
- return _0x2e93 = function(_0x3a9766, _0x282379) {
394
- _0x3a9766 = _0x3a9766 - (6086 + -1749 + -4 * 982);
395
- let _0x47424b = _0x3b3646[_0x3a9766];
396
- return _0x47424b;
397
- }, _0x2e93(_0x5329bc, _0x4b803f);
386
+ }, randomBytes = (_0x48bdb7) => {
387
+ const _0x26cb3f = _0x37cd, _0x301f84 = _0x37cd, _0x4aab8b = new Uint8Array(_0x48bdb7);
388
+ return crypto[_0x26cb3f(311)](_0x4aab8b), Array["from"](_0x4aab8b, (_0x2ea426) => _0x2ea426[_0x26cb3f(321)](-5686 + -83 * 11 + 6615 * 1)[_0x26cb3f(310)](-8945 * -1 + 5 * 525 + -48 * 241, "0"))[_0x301f84(308)]("");
389
+ }, _0x1a9a7a = {};
390
+ function _0x4d6f() {
391
+ const _0x19f64f = ["88nLAvAi", "padStart", "getRandomValues", "2IeXpGt", "1895970GWXOUI", "830SFAZva", "yGUWS", "TgEQJ", "5224769CnJgiw", "1950968yrcqKg", "3xizYBD", "12OMaoYl", "toString", "46718lIDNiA", "380701tBBDNK", "1235BBideQ", "44217UXxqNh", "273371RNKObV", "5GMHUki", "AfkFc", "randomUUID", "join"];
392
+ _0x4d6f = function() {
393
+ return _0x19f64f;
394
+ };
395
+ return _0x4d6f();
396
+ }
397
+ _0x1a9a7a[_0x57871e(329)] = randomUUID, _0x1a9a7a["randomBytes"] = randomBytes;
398
+ function _0x37cd(_0x4d9d7f, _0x350eae) {
399
+ const _0x53bced = _0x4d6f();
400
+ return _0x37cd = function(_0xe6858f, _0x46a480) {
401
+ _0xe6858f = _0xe6858f - (4 * -230 + -1 * 9874 + -427 * -26);
402
+ let _0x2c5757 = _0x53bced[_0xe6858f];
403
+ return _0x2c5757;
404
+ }, _0x37cd(_0x4d9d7f, _0x350eae);
398
405
  }
399
- const _0x4f1f27 = _0x1255, _0x127d59 = _0x1255;
400
- (function(_0x258c94, _0x348606) {
401
- const _0x4939a9 = _0x1255, _0x2eeb11 = _0x1255, _0x59cc87 = _0x258c94();
406
+ const _0x41e2e9 = _0x51d3, _0x213126 = _0x51d3;
407
+ (function(_0x1164d4, _0x45d9de) {
408
+ const _0x26ba1f = _0x51d3, _0x4df724 = _0x51d3, _0x3581a6 = _0x1164d4();
402
409
  while (!![]) {
403
410
  try {
404
- const _0x91b6b = parseInt(_0x4939a9(207)) / (-5531 + -7771 + 13303) * (parseInt(_0x4939a9(201)) / (-71 * -56 + 5613 * -1 + 11 * 149)) + -parseInt(_0x2eeb11(177)) / (1442 + 74 * -71 + 5 * 763) + -parseInt(_0x4939a9(182)) / (7939 + -8843 + 908) + -parseInt(_0x4939a9(208)) / (-613 + -9783 + -1 * -10401) + -parseInt(_0x2eeb11(179)) / (8104 + -1 * -3237 + -11335) + -parseInt(_0x4939a9(122)) / (-6736 + 5e3 + 3 * 581) * (parseInt(_0x2eeb11(203)) / (8106 + -8987 + -7 * -127)) + parseInt(_0x2eeb11(151)) / (-7422 + -3 * 159 + 7908) * (parseInt(_0x4939a9(186)) / (1 * 5931 + -2072 + -1 * 3849));
405
- if (_0x91b6b === _0x348606) break;
406
- else _0x59cc87["push"](_0x59cc87["shift"]());
407
- } catch (_0x10d7a0) {
408
- _0x59cc87["push"](_0x59cc87["shift"]());
411
+ const _0x5574e4 = parseInt(_0x26ba1f(510)) / (2 * 731 + -19 * -373 + -8548 * 1) + parseInt(_0x26ba1f(561)) / (-8123 * 1 + -13 * 667 + 16796) + parseInt(_0x4df724(502)) / (1256 * 1 + 7534 + -2929 * 3) * (-parseInt(_0x4df724(522)) / (-9713 + 3183 + 6534)) + parseInt(_0x26ba1f(530)) / (-4278 + 8021 + -3738) * (parseInt(_0x26ba1f(572)) / (-3 * -1252 + -1837 + -1913)) + parseInt(_0x26ba1f(553)) / (6764 + 1 * 4331 + -11088) + parseInt(_0x26ba1f(559)) / (-8235 + -4855 + 13098) + parseInt(_0x4df724(484)) / (8350 + 1548 + -11 * 899) * (-parseInt(_0x26ba1f(516)) / (-4328 + -595 + 4933));
412
+ if (_0x5574e4 === _0x45d9de) break;
413
+ else _0x3581a6["push"](_0x3581a6["shift"]());
414
+ } catch (_0xaf8042) {
415
+ _0x3581a6["push"](_0x3581a6["shift"]());
409
416
  }
410
417
  }
411
- })(_0x3052, -4409 * 43 + -1 * 218391 + 264579 * 3);
412
- function _0x3052() {
413
- const _0x20a1db = ["redirectUri", "574068RqPnnk", "authorize", "expiresAt", "1761960XIbBKq", "randomBytes", "exp", "bearer", "10GCAncC", "codeChallenge", "href", "access_token", "now", "status", "accessTokensStore", "clients", "Router", "YzTge", "clientId", "generateRefreshToken", "znCUL", "revokeToken", "saveRefreshToken", "3758wnqYSr", "state", "32dIyDQt", "NEmHZ", "scope", "redirect_uris", "198AQOMeo", "701280gKCXcq", "Refresh token has expired for this client: ", "FFZiq", "Refresh token was not issued to this client: ", "jcWcV", "set", "AIxvn", "verifyAccessToken", " to this client: ", "client_id", "deleteClient", "delete", "issuer", "token_type_hint", "accessTokenExpiresIn", "488887LdkNbl", "redirect", "toString", "cRvfG", "floor", "EUXXd", "/.well-known/oauth-protected-resource", "accessTokens", "bbEXg", "refreshTokens", "json", "OTBiX", "deleteCodeData", "get", "revokeAccessToken", "use", "resource", "aud", "getRefreshToken", "params", "uNGka", "Invalid authorization code for this client: ", "JKLtp", ", got: ", "Refresh token is invalid or has been revoked for this client: ", "codes", "Rgxxb", "pHSox", "code", "15310278oiIhaq", "/.well-known/oauth-authorization-server", "ZIIhI", "exchangeAuthorizationCode", "hWABh", "codesStore", "extra", "generateAccessToken", "refreshTokenExpiresIn", "join", "XqNjm", "saveClient", "token", "scopes", "generateAuthorizationCode", "client", "getCodeDate", "search", "AleNl", "refresh_token", "rWZDT", "saveCodeData", "clientsStore", "query", "send", "revokeRefreshToken", "2194911AHueup"];
414
- _0x3052 = function() {
415
- return _0x20a1db;
418
+ })(_0x546c, 7 * 47702 + -893118 + -227 * -5534);
419
+ function _0x546c() {
420
+ const _0x5f445d = ["client_id", "saveCodeData", "configuredResource", "access-control-allow-origin", "LYfiu", "yEBSy", "Authorization code was not issued to this client: ", "350TbRoZy", "use", "saveRefreshToken", "saveClient", "resource", "pRrjv", "KMJLb", "Token is invalid", "refreshTokenExpiresIn", "accessTokensStore", "NJOYh", "state", "expiresAt", "MnTVg", "authorize", "Access-Control-Allow-Origin", "getAccessToken", "redirect_uris", "accessTokens", "NtLNZ", "join", "generateAccessToken", "scope", "4256294hjXESV", "getRefreshToken", "refreshTokensStore", "Router", "token", "search", "7147200HrfFEz", "gnlGJ", "689926uXTJYY", "body", "scopes", "rhzvc", "registerClient", "RZFdN", "bearer", "codesStore", "redirect", "Refresh token is invalid or does not belong to this client: ", "access_token", "22662sytYEP", "VBcPV", "randomBytes", "now", "generateAuthorizationCode", "accessTokenExpiresIn", "Bearer", "94518WgSjRK", "split", "exp", "params", "client", "rbfjJ", "refreshTokens", "QSLMV", "href", "getHeader", "deleteCodeData", "clientId", "token_type_hint", "delete", "query", "redirectUri", "Invalid authorization code for this client: ", "generateRefreshToken", "118890VNbZaA", "get", "refresh_token", "/.well-known/oauth-authorization-server", "hwcVG", "json", "MZSsG", "codes", "1046851yvzKrR", "set", "HqYqs", "dYbbc", "clients", "rISOo", "1060oXrpJU", "extra", "getCodeDate", "setHeader", "verifyAccessToken", "getClient", "136GFWgmW"];
421
+ _0x546c = function() {
422
+ return _0x5f445d;
416
423
  };
417
- return _0x3052();
424
+ return _0x546c();
418
425
  }
419
- function _0x1255(_0x44e6b7, _0x69a48a) {
420
- const _0x408213 = _0x3052();
421
- return _0x1255 = function(_0x41fdab, _0x53c487) {
422
- _0x41fdab = _0x41fdab - (-977 * 10 + -5 * -1025 + 4764);
423
- let _0xca5ecd = _0x408213[_0x41fdab];
424
- return _0xca5ecd;
425
- }, _0x1255(_0x44e6b7, _0x69a48a);
426
+ function _0x51d3(_0x51b50d, _0x46c74f) {
427
+ const _0x349c99 = _0x546c();
428
+ return _0x51d3 = function(_0x5b339e, _0x261678) {
429
+ _0x5b339e = _0x5b339e - (4093 * -1 + 9184 + -4611);
430
+ let _0x2d5fb8 = _0x349c99[_0x5b339e];
431
+ return _0x2d5fb8;
432
+ }, _0x51d3(_0x51b50d, _0x46c74f);
426
433
  }
427
- const ACCESS_TOKEN_EXPIRES_IN = (-2 * 1721 + 9273 + -1 * 5807) * (7 * 296 + 1 * -5585 + 397 * 9) * (6279 + -355 + -8 * 733);
428
- const REFRESH_TOKEN_EXPIRES_IN = (-9 * -446 + 1 * 359 + -4366) * (3407 + 191 * -26 + 1583) * (-2983 + -1091 + 1 * 4134) * (1 * -8471 + -8520 + 17051);
434
+ const ACCESS_TOKEN_EXPIRES_IN = (-1931 + 3112 * -2 + 1 * 8179) * (-5 * -1779 + -9 * -491 + 4418 * -3) * (3389 + -4 * 905 + 3 * 97);
435
+ const REFRESH_TOKEN_EXPIRES_IN = (2899 * -3 + 5905 + 2799) * (8359 + -4353 + -22 * 181) * (-2 * -2425 + 3 * 1095 + -19 * 425) * (-1338 * 7 + -7381 + 16807);
429
436
  const generateAuthorizationCodeFunction = () => {
430
- const _0x2be745 = _0x1255;
431
- return _0x325be1[_0x2be745(183)](1 * 1758 + -2090 + 1 * 356);
437
+ const _0x17c020 = _0x51d3;
438
+ return _0x1a9a7a[_0x17c020(574)](-6291 + -7516 + 1 * 13831);
432
439
  }, generateAccessTokenFunction = () => {
433
- const _0x5e8688 = _0x1255;
434
- return _0x325be1[_0x5e8688(183)](-3597 + 2306 + 21 * 63);
440
+ return _0x1a9a7a["randomBytes"](-7490 + -4299 + 1 * 11821);
435
441
  }, generateRefreshTokenFunction = () => {
436
- return _0x325be1["randomBytes"](-7330 + 5651 + 1727);
442
+ return _0x1a9a7a["randomBytes"](-808 * 1 + -9477 + -10333 * -1);
437
443
  };
438
444
  class MemoryClientsStore {
439
445
  constructor() {
440
- const _0x63191d = _0x1255;
441
- this[_0x63191d(193)] = /* @__PURE__ */ new Map();
446
+ this["clients"] = /* @__PURE__ */ new Map();
442
447
  }
443
- async ["getClient"](_0x4749a1) {
444
- const _0x9b9de0 = _0x1255;
445
- return this[_0x9b9de0(193)]["get"](_0x4749a1);
448
+ async [_0x41e2e9(521)](_0x4a3414) {
449
+ const _0x3ca175 = _0x41e2e9;
450
+ return this["clients"][_0x3ca175(503)](_0x4a3414);
446
451
  }
447
- async ["saveClient"](_0x8b2931) {
448
- const _0x8c9566 = _0x1255;
449
- return this["clients"]["set"](_0x8b2931[_0x8c9566(217)], _0x8b2931), _0x8b2931;
452
+ async [_0x41e2e9(533)](_0x4035d1) {
453
+ const _0x17f788 = _0x213126;
454
+ return this["clients"][_0x17f788(511)](_0x4035d1["client_id"], _0x4035d1), _0x4035d1;
450
455
  }
451
- async [_0x4f1f27(218)](_0x406b89) {
452
- const _0x3873b7 = _0x4f1f27;
453
- return this[_0x3873b7(193)]["delete"](_0x406b89);
456
+ async ["deleteClient"](_0x301e29) {
457
+ const _0x1e5303 = _0x213126;
458
+ return this[_0x1e5303(514)]["delete"](_0x301e29);
454
459
  }
455
- async ["registerClient"](_0x3b2dcb) {
456
- const _0x451ada = _0x4f1f27;
457
- return this[_0x451ada(162)](_0x3b2dcb);
460
+ async [_0x41e2e9(565)](_0x41b149) {
461
+ return this["saveClient"](_0x41b149);
458
462
  }
459
463
  }
460
464
  class MemoryAuthorizationCodeStore {
461
465
  constructor() {
462
466
  this["codes"] = /* @__PURE__ */ new Map();
463
467
  }
464
- async ["getCodeDate"](_0x39c5e0) {
465
- const _0x46f782 = _0x4f1f27;
466
- return this["codes"][_0x46f782(135)](_0x39c5e0);
468
+ async [_0x41e2e9(518)](_0x17d56e) {
469
+ const _0x2672a5 = _0x213126;
470
+ return this["codes"][_0x2672a5(503)](_0x17d56e);
467
471
  }
468
- async [_0x127d59(172)](_0x7f8ec6, _0x41e501) {
469
- const _0x15c8a8 = _0x127d59;
470
- return this[_0x15c8a8(147)][_0x15c8a8(213)](_0x7f8ec6, _0x41e501), !![];
472
+ async [_0x213126(524)](_0x288704, _0x403271) {
473
+ const _0x2cc2d6 = _0x213126, _0x40c5b7 = _0x41e2e9;
474
+ return this[_0x2cc2d6(509)][_0x40c5b7(511)](_0x288704, _0x403271), !![];
471
475
  }
472
- async [_0x127d59(134)](_0x1edbb8) {
473
- const _0x49a458 = _0x127d59;
474
- return this["codes"][_0x49a458(219)](_0x1edbb8);
476
+ async [_0x213126(494)](_0x2573f0) {
477
+ const _0x1255ff = _0x41e2e9;
478
+ return this["codes"][_0x1255ff(497)](_0x2573f0);
475
479
  }
476
480
  }
477
481
  class MemoryAccessTokensStore {
478
482
  constructor() {
479
- const _0x1e38a3 = _0x4f1f27;
480
- this[_0x1e38a3(129)] = /* @__PURE__ */ new Map();
483
+ this["accessTokens"] = /* @__PURE__ */ new Map();
481
484
  }
482
- async ["getAccessToken"](_0x5b9216) {
483
- const _0x59c717 = _0x127d59, _0x146508 = _0x4f1f27;
484
- return this[_0x59c717(129)][_0x146508(135)](_0x5b9216);
485
+ async [_0x213126(546)](_0x4e2e6d) {
486
+ return this["accessTokens"]["get"](_0x4e2e6d);
485
487
  }
486
- async ["saveAccessToken"](_0x607848, _0xaac4f8) {
487
- const _0xe77978 = _0x4f1f27;
488
- return this[_0xe77978(129)]["set"](_0x607848, _0xaac4f8), !![];
488
+ async ["saveAccessToken"](_0x3dae91, _0x505c58) {
489
+ return this["accessTokens"]["set"](_0x3dae91, _0x505c58), !![];
489
490
  }
490
- async ["revokeAccessToken"](_0x5dadd1) {
491
- const _0x3816e8 = _0x4f1f27;
492
- return this["accessTokens"][_0x3816e8(219)](_0x5dadd1);
491
+ async ["revokeAccessToken"](_0x5994c4) {
492
+ const _0x5e14ee = _0x213126;
493
+ return this[_0x5e14ee(548)]["delete"](_0x5994c4);
493
494
  }
494
495
  }
495
496
  class MemoryRefreshTokensStore {
496
497
  constructor() {
497
- this["refreshTokens"] = /* @__PURE__ */ new Map();
498
+ const _0x329aad = _0x41e2e9;
499
+ this[_0x329aad(490)] = /* @__PURE__ */ new Map();
498
500
  }
499
- async [_0x127d59(140)](_0x3841b8) {
500
- const _0x51dc2f = _0x127d59;
501
- return this["refreshTokens"][_0x51dc2f(135)](_0x3841b8);
501
+ async [_0x213126(554)](_0x353cc6) {
502
+ const _0x4cbb73 = _0x41e2e9;
503
+ return this[_0x4cbb73(490)]["get"](_0x353cc6);
502
504
  }
503
- async ["saveRefreshToken"](_0xc6b6cd, _0x593148) {
504
- const _0x2d9174 = _0x4f1f27;
505
- return this[_0x2d9174(131)]["set"](_0xc6b6cd, _0x593148), !![];
505
+ async [_0x213126(532)](_0x9ee135, _0x3443ee) {
506
+ const _0x530e10 = _0x213126;
507
+ return this["refreshTokens"][_0x530e10(511)](_0x9ee135, _0x3443ee), !![];
506
508
  }
507
- async ["revokeRefreshToken"](_0x361705) {
508
- const _0x16027e = _0x4f1f27;
509
- return this[_0x16027e(131)][_0x16027e(219)](_0x361705);
509
+ async ["revokeRefreshToken"](_0x5629c1) {
510
+ return this["refreshTokens"]["delete"](_0x5629c1);
510
511
  }
511
512
  }
512
513
  class AuthServerProvider {
513
- constructor(_0x35ef3a = {}) {
514
- const _0x225ac6 = _0x127d59, _0x4b4834 = _0x4f1f27, _0x338366 = {};
515
- _0x338366[_0x225ac6(204)] = function(_0x2c94c8, _0x2abba7) {
516
- return _0x2c94c8 || _0x2abba7;
517
- }, _0x338366[_0x4b4834(130)] = function(_0xc1e2de, _0x37420a) {
518
- return _0xc1e2de || _0x37420a;
519
- }, _0x338366["brCoD"] = function(_0x568726, _0x5f11fd) {
520
- return _0x568726 || _0x5f11fd;
514
+ constructor(_0x52b1ad = {}) {
515
+ const _0x3eba9c = _0x213126, _0x1f8da0 = _0x213126, _0x239d64 = {};
516
+ _0x239d64["KMJLb"] = function(_0x2ed2e7, _0x2716fc) {
517
+ return _0x2ed2e7 || _0x2716fc;
518
+ }, _0x239d64["mfqSi"] = function(_0xceb615, _0xf13f47) {
519
+ return _0xceb615 || _0xf13f47;
521
520
  };
522
- const _0x2ed076 = _0x338366, { clientsStore: _0x5c8bda, codesStore: _0x5863ae, accessTokensStore: _0x1df822, refreshTokensStore: _0x10e970, generateAuthorizationCode: _0x5ac15c, generateAccessToken: _0x35c5ae, generateRefreshToken: _0x58df46, accessTokenExpiresIn: _0x1e37d4, refreshTokenExpiresIn: _0x540c69 } = _0x35ef3a;
523
- this[_0x225ac6(173)] = _0x5c8bda || new MemoryClientsStore(), this[_0x4b4834(156)] = _0x5863ae || new MemoryAuthorizationCodeStore(), this["accessTokensStore"] = _0x1df822 || new MemoryAccessTokensStore(), this["refreshTokensStore"] = _0x10e970 || new MemoryRefreshTokensStore(), this["generateAuthorizationCode"] = _0x5ac15c || generateAuthorizationCodeFunction, this[_0x225ac6(158)] = _0x2ed076["NEmHZ"](_0x35c5ae, generateAccessTokenFunction), this[_0x225ac6(197)] = _0x2ed076[_0x4b4834(130)](_0x58df46, generateRefreshTokenFunction), this[_0x4b4834(121)] = _0x2ed076["NEmHZ"](_0x1e37d4, ACCESS_TOKEN_EXPIRES_IN), this[_0x225ac6(159)] = _0x2ed076["brCoD"](_0x540c69, REFRESH_TOKEN_EXPIRES_IN);
521
+ const _0x4359fc = _0x239d64, { clientsStore: _0x48d91d, codesStore: _0x1eb5f5, accessTokensStore: _0x6876fa, refreshTokensStore: _0x5a3fe2, generateAuthorizationCode: _0xca3e6c, generateAccessToken: _0x9277b, generateRefreshToken: _0x4e64d8, accessTokenExpiresIn: _0x2b2396, refreshTokenExpiresIn: _0x334795 } = _0x52b1ad;
522
+ this["clientsStore"] = _0x48d91d || new MemoryClientsStore(), this[_0x3eba9c(568)] = _0x1eb5f5 || new MemoryAuthorizationCodeStore(), this["accessTokensStore"] = _0x6876fa || new MemoryAccessTokensStore(), this[_0x1f8da0(555)] = _0x5a3fe2 || new MemoryRefreshTokensStore(), this[_0x1f8da0(481)] = _0x4359fc["KMJLb"](_0xca3e6c, generateAuthorizationCodeFunction), this[_0x3eba9c(551)] = _0x4359fc[_0x3eba9c(536)](_0x9277b, generateAccessTokenFunction), this["generateRefreshToken"] = _0x4359fc["KMJLb"](_0x4e64d8, generateRefreshTokenFunction), this[_0x1f8da0(482)] = _0x2b2396 || ACCESS_TOKEN_EXPIRES_IN, this[_0x3eba9c(538)] = _0x4359fc["mfqSi"](_0x334795, REFRESH_TOKEN_EXPIRES_IN);
524
523
  }
525
- async [_0x127d59(180)](_0x1ba629, _0x5cbd93, _0x22631e) {
526
- const _0x1750cf = _0x4f1f27, _0x333464 = _0x127d59, _0x4fe0ce = {};
527
- _0x4fe0ce["IDxWU"] = function(_0xc53598, _0x43bd3e) {
528
- return _0xc53598 !== _0x43bd3e;
529
- }, _0x4fe0ce[_0x1750cf(195)] = _0x333464(202);
530
- const _0x2f857f = _0x4fe0ce, _0x47f797 = this[_0x1750cf(165)](), _0x592160 = {};
531
- _0x592160[_0x333464(150)] = _0x47f797;
532
- const _0x128d00 = new URLSearchParams(_0x592160);
533
- _0x2f857f["IDxWU"](_0x5cbd93[_0x333464(202)], void 0) && _0x128d00["set"](_0x2f857f["YzTge"], _0x5cbd93["state"]);
534
- const _0x282f56 = {};
535
- _0x282f56[_0x1750cf(166)] = _0x1ba629, _0x282f56[_0x1750cf(141)] = _0x5cbd93, await this["codesStore"][_0x333464(172)](_0x47f797, _0x282f56);
536
- const _0x28aaeb = new URL(_0x5cbd93[_0x333464(178)] || _0x1ba629["redirect_uris"][106 * -16 + -2344 + 10 * 404]);
537
- _0x28aaeb[_0x1750cf(168)] = _0x128d00[_0x333464(124)](), _0x22631e[_0x1750cf(123)](_0x28aaeb[_0x1750cf(124)]());
524
+ async [_0x41e2e9(544)](_0x28a5d7, _0x1eece5, _0x20517b) {
525
+ const _0x4da09b = _0x41e2e9, _0x4c8d2f = _0x213126, _0x520389 = {};
526
+ _0x520389["gnlGJ"] = function(_0x463dc3, _0x1b8b49) {
527
+ return _0x463dc3 !== _0x1b8b49;
528
+ }, _0x520389["KibBY"] = "state";
529
+ const _0x4ea3f5 = _0x520389, _0x4fba03 = this[_0x4da09b(481)](), _0x2420a6 = {};
530
+ _0x2420a6["code"] = _0x4fba03;
531
+ const _0x51b78c = new URLSearchParams(_0x2420a6);
532
+ _0x4ea3f5[_0x4da09b(560)](_0x1eece5[_0x4c8d2f(541)], void 0) && _0x51b78c["set"](_0x4ea3f5["KibBY"], _0x1eece5["state"]);
533
+ const _0x4a093a = {};
534
+ _0x4a093a[_0x4c8d2f(488)] = _0x28a5d7, _0x4a093a[_0x4c8d2f(487)] = _0x1eece5, await this["codesStore"]["saveCodeData"](_0x4fba03, _0x4a093a);
535
+ const _0x4af24c = new URL(_0x1eece5["redirectUri"] || _0x28a5d7["redirect_uris"][-16 * 367 + 7394 + 2 * -761]);
536
+ _0x4af24c[_0x4c8d2f(558)] = _0x51b78c["toString"](), _0x20517b[_0x4c8d2f(569)](_0x4af24c["toString"]());
538
537
  }
539
- async ["challengeForAuthorizationCode"](_0x259318, _0x4e5193) {
540
- const _0x185831 = _0x4f1f27, _0x59cafd = _0x127d59, _0x969209 = await this["codesStore"][_0x185831(167)](_0x4e5193);
541
- if (!_0x969209) throw new InvalidGrantError("Invalid authorization code for this client: " + _0x259318["client_id"]);
542
- return _0x969209[_0x59cafd(141)][_0x59cafd(187)];
538
+ async ["challengeForAuthorizationCode"](_0x5486b9, _0x41cba7) {
539
+ const _0x3ad093 = _0x41e2e9, _0x4ff28c = await this[_0x3ad093(568)]["getCodeDate"](_0x41cba7);
540
+ if (!_0x4ff28c) throw new InvalidGrantError("Invalid authorization code for this client: " + _0x5486b9[_0x3ad093(523)]);
541
+ return _0x4ff28c[_0x3ad093(487)]["codeChallenge"];
543
542
  }
544
- async [_0x127d59(154)](_0x18ec46, _0x45e62f) {
545
- const _0x3fdf3d = _0x4f1f27, _0x3606e2 = _0x127d59, _0x4cd957 = {};
546
- _0x4cd957["XqNjm"] = function(_0x5bed6c, _0x27b1be) {
547
- return _0x5bed6c !== _0x27b1be;
548
- }, _0x4cd957[_0x3fdf3d(198)] = function(_0x3826c5, _0x202972) {
549
- return _0x3826c5 + _0x202972;
550
- }, _0x4cd957["Rgxxb"] = function(_0x28cc18, _0x3d52ec) {
551
- return _0x28cc18 * _0x3d52ec;
543
+ async ["exchangeAuthorizationCode"](_0xe7634c, _0x1306a6) {
544
+ const _0x2e62a3 = _0x41e2e9, _0x164d9c = _0x41e2e9, _0x25b42e = {};
545
+ _0x25b42e["TPDdm"] = function(_0x4186f0, _0x3f2dd9) {
546
+ return _0x4186f0 !== _0x3f2dd9;
547
+ }, _0x25b42e["hwcVG"] = function(_0xf114e5, _0x282a69) {
548
+ return _0xf114e5 + _0x282a69;
549
+ }, _0x25b42e["NtLNZ"] = function(_0x4c9b64, _0x29bcf4) {
550
+ return _0x4c9b64 * _0x29bcf4;
552
551
  };
553
- const _0x379992 = _0x4cd957, _0x2a4518 = await this["codesStore"]["getCodeDate"](_0x45e62f);
554
- if (!_0x2a4518) throw new InvalidGrantError(_0x3606e2(143) + _0x18ec46["client_id"]);
555
- if (_0x379992[_0x3606e2(161)](_0x2a4518["client"]["client_id"], _0x18ec46["client_id"])) throw new InvalidGrantError("Authorization code was not issued to this client: " + _0x18ec46[_0x3fdf3d(217)]);
556
- const _0x578ca1 = _0x2a4518[_0x3606e2(141)]["redirectUri"] || _0x2a4518["client"][_0x3fdf3d(206)][371 + 5 * 778 + -1 * 4261];
557
- await this["codesStore"][_0x3fdf3d(134)](_0x45e62f);
558
- const _0x2cc2cb = this["generateAccessToken"](), _0x14678b = this[_0x3606e2(197)](), _0x716e88 = {};
559
- _0x716e88[_0x3606e2(178)] = _0x578ca1;
560
- const _0x18ff4e = { "token": _0x2cc2cb, "clientId": _0x18ec46["client_id"], "scopes": _0x2a4518[_0x3606e2(141)][_0x3606e2(164)] || [], "expiresAt": _0x379992[_0x3fdf3d(198)](Date[_0x3606e2(190)](), _0x379992[_0x3606e2(148)](this["accessTokenExpiresIn"], -1 * 6668 + 35 * -222 + 15438 * 1)), "resource": _0x2a4518[_0x3fdf3d(141)][_0x3fdf3d(138)], "extra": _0x716e88 };
561
- await this["accessTokensStore"]["saveAccessToken"](_0x2cc2cb, _0x18ff4e);
562
- const _0x87282c = {};
563
- _0x87282c["isRevoked"] = ![];
564
- const _0x1a1a78 = { "token": _0x14678b, "clientId": _0x18ec46[_0x3606e2(217)], "scopes": _0x2a4518[_0x3606e2(141)]["scopes"] || [], "expiresAt": _0x379992["znCUL"](Date["now"](), _0x379992[_0x3fdf3d(148)](this[_0x3fdf3d(159)], 1 * 5461 + -1024 + 7 * -491)), "extra": _0x87282c };
565
- return await this["refreshTokensStore"][_0x3606e2(200)](_0x14678b, _0x1a1a78), { "access_token": _0x2cc2cb, "refresh_token": _0x14678b, "token_type": _0x3606e2(185), "expires_in": this[_0x3fdf3d(121)], "scope": (_0x2a4518["params"]["scopes"] || [])["join"](" ") };
552
+ const _0x171cff = _0x25b42e, _0x12d412 = await this[_0x2e62a3(568)]["getCodeDate"](_0x1306a6);
553
+ if (!_0x12d412) throw new InvalidGrantError(_0x164d9c(500) + _0xe7634c["client_id"]);
554
+ if (_0x171cff["TPDdm"](_0x12d412["client"][_0x164d9c(523)], _0xe7634c[_0x164d9c(523)])) throw new InvalidGrantError(_0x164d9c(529) + _0xe7634c["client_id"]);
555
+ const _0x56dbb6 = _0x12d412["params"][_0x164d9c(499)] || _0x12d412["client"][_0x2e62a3(547)][-50 * 16 + -4 * -50 + -40 * -15];
556
+ await this[_0x2e62a3(568)][_0x164d9c(494)](_0x1306a6);
557
+ const _0xd56756 = this[_0x2e62a3(551)](), _0x1479aa = this[_0x2e62a3(501)](), _0x68d8ff = {};
558
+ _0x68d8ff["redirectUri"] = _0x56dbb6;
559
+ const _0x548e78 = { "token": _0xd56756, "clientId": _0xe7634c[_0x2e62a3(523)], "scopes": _0x12d412[_0x2e62a3(487)][_0x164d9c(563)] || [], "expiresAt": _0x171cff["hwcVG"](Date["now"](), this[_0x164d9c(482)] * (377 * 26 + 3260 * 1 + -12062)), "resource": _0x12d412[_0x2e62a3(487)]["resource"], "extra": _0x68d8ff };
560
+ await this[_0x2e62a3(539)]["saveAccessToken"](_0xd56756, _0x548e78);
561
+ const _0x42dbd7 = {};
562
+ _0x42dbd7["isRevoked"] = ![];
563
+ const _0x3fbe89 = { "token": _0x1479aa, "clientId": _0xe7634c["client_id"], "scopes": _0x12d412["params"][_0x2e62a3(563)] || [], "expiresAt": _0x171cff[_0x164d9c(506)](Date[_0x164d9c(480)](), _0x171cff[_0x2e62a3(549)](this["refreshTokenExpiresIn"], -169 * -28 + 1 * -2141 + -1591)), "extra": _0x42dbd7 };
564
+ return await this[_0x164d9c(555)][_0x2e62a3(532)](_0x1479aa, _0x3fbe89), { "access_token": _0xd56756, "refresh_token": _0x1479aa, "token_type": _0x2e62a3(567), "expires_in": this["accessTokenExpiresIn"], "scope": (_0x12d412[_0x2e62a3(487)][_0x164d9c(563)] || [])["join"](" ") };
566
565
  }
567
- async ["exchangeRefreshToken"](_0x275849, _0x54f7d7) {
568
- const _0x21ed17 = _0x4f1f27, _0x34b86e = _0x127d59, _0x405613 = {};
569
- _0x405613["EUXXd"] = function(_0x2a995c, _0x4b7d91) {
570
- return _0x2a995c < _0x4b7d91;
571
- }, _0x405613["ZnKXL"] = function(_0x5124ad, _0x462798) {
572
- return _0x5124ad !== _0x462798;
573
- }, _0x405613[_0x21ed17(125)] = function(_0x3699a0, _0x438497) {
574
- return _0x3699a0 + _0x438497;
575
- }, _0x405613[_0x34b86e(212)] = "Bearer";
576
- const _0x427751 = _0x405613, _0x16a8c5 = await this["refreshTokensStore"]["getRefreshToken"](_0x54f7d7);
577
- if (!_0x16a8c5) throw new InvalidGrantError(_0x34b86e(146) + _0x275849["client_id"]);
578
- if (_0x427751[_0x34b86e(127)](_0x16a8c5[_0x34b86e(181)], Date["now"]())) throw new InvalidGrantError(_0x21ed17(209) + _0x275849[_0x34b86e(217)]);
579
- if (_0x427751["ZnKXL"](_0x16a8c5[_0x21ed17(196)], _0x275849["client_id"])) throw new InvalidGrantError(_0x34b86e(211) + _0x275849[_0x21ed17(217)]);
580
- await this["refreshTokensStore"][_0x21ed17(176)](_0x54f7d7);
581
- const _0x11d08f = this["generateAccessToken"](), _0x341610 = this["generateRefreshToken"](), _0x2f39e5 = { "token": _0x54f7d7, "clientId": _0x275849[_0x21ed17(217)], "scopes": _0x16a8c5[_0x34b86e(164)], "expiresAt": _0x427751[_0x21ed17(125)](Date[_0x21ed17(190)](), this["refreshTokenExpiresIn"] * (-2833 * -1 + 11 * -28 + -61 * 25)) };
582
- return await this["refreshTokensStore"]["saveRefreshToken"](_0x54f7d7, _0x2f39e5), { "access_token": _0x11d08f, "refresh_token": _0x341610, "token_type": _0x427751[_0x34b86e(212)], "expires_in": this["accessTokenExpiresIn"], "scope": _0x16a8c5["scopes"][_0x21ed17(160)](" ") };
566
+ async ["exchangeRefreshToken"](_0x200485, _0x3f1bf7) {
567
+ const _0x4cb376 = _0x41e2e9, _0x216041 = _0x41e2e9, _0x108810 = {};
568
+ _0x108810[_0x4cb376(508)] = function(_0x2743ba, _0x531785) {
569
+ return _0x2743ba !== _0x531785;
570
+ }, _0x108810["Qryol"] = function(_0x40cde2, _0x502f98) {
571
+ return _0x40cde2 * _0x502f98;
572
+ }, _0x108810[_0x216041(543)] = _0x4cb376(483);
573
+ const _0x4d15a6 = _0x108810, _0x38de8b = await this["refreshTokensStore"][_0x4cb376(554)](_0x3f1bf7);
574
+ if (!_0x38de8b) throw new InvalidGrantError("Refresh token is invalid or has been revoked for this client: " + _0x200485[_0x4cb376(523)]);
575
+ if (_0x38de8b[_0x4cb376(542)] < Date[_0x216041(480)]()) throw new InvalidGrantError("Refresh token has expired for this client: " + _0x200485["client_id"]);
576
+ if (_0x4d15a6["MZSsG"](_0x38de8b["clientId"], _0x200485["client_id"])) throw new InvalidGrantError("Refresh token was not issued to this client: " + _0x200485[_0x216041(523)]);
577
+ await this["refreshTokensStore"]["revokeRefreshToken"](_0x3f1bf7);
578
+ const _0x2a05b7 = this[_0x4cb376(551)](), _0x332e00 = this[_0x4cb376(501)](), _0x10af51 = { "token": _0x3f1bf7, "clientId": _0x200485[_0x216041(523)], "scopes": _0x38de8b["scopes"], "expiresAt": Date[_0x216041(480)]() + _0x4d15a6["Qryol"](this["refreshTokenExpiresIn"], -4 * 1709 + -9572 + 17408) };
579
+ return await this["refreshTokensStore"]["saveRefreshToken"](_0x3f1bf7, _0x10af51), { "access_token": _0x2a05b7, "refresh_token": _0x332e00, "token_type": _0x4d15a6["MnTVg"], "expires_in": this[_0x4cb376(482)], "scope": _0x38de8b[_0x4cb376(563)][_0x216041(550)](" ") };
583
580
  }
584
- async [_0x127d59(215)](_0x5ece9d) {
585
- const _0x5a1d54 = _0x127d59, _0x52a1dc = _0x4f1f27, _0x3d1a11 = {};
586
- _0x3d1a11["OTBiX"] = function(_0x23e008, _0x521daa) {
587
- return _0x23e008 / _0x521daa;
588
- };
589
- const _0x31f97a = _0x3d1a11, _0x7f06e4 = await this[_0x5a1d54(192)]["getAccessToken"](_0x5ece9d);
590
- if (!_0x7f06e4 || !_0x7f06e4[_0x52a1dc(181)]) throw new InvalidTokenError("Token is invalid");
591
- return { "token": _0x5ece9d, "clientId": _0x7f06e4["clientId"], "scopes": _0x7f06e4["scopes"], "expiresAt": Math[_0x52a1dc(126)](_0x31f97a[_0x5a1d54(133)](_0x7f06e4["expiresAt"], -728 + 7451 + -5723)), "resource": _0x7f06e4["resource"], "extra": _0x7f06e4[_0x52a1dc(157)] };
581
+ async [_0x213126(520)](_0x4ac668) {
582
+ const _0x1e90c9 = _0x213126, _0x2cbf6e = _0x213126, _0x4a422f = await this[_0x1e90c9(539)]["getAccessToken"](_0x4ac668);
583
+ if (!_0x4a422f || !_0x4a422f["expiresAt"]) throw new InvalidTokenError(_0x1e90c9(537));
584
+ return { "token": _0x4ac668, "clientId": _0x4a422f["clientId"], "scopes": _0x4a422f["scopes"], "expiresAt": Math["floor"](_0x4a422f[_0x2cbf6e(542)] / (4735 + 8133 + -6 * 1978)), "resource": _0x4a422f["resource"], "extra": _0x4a422f[_0x1e90c9(517)] };
592
585
  }
593
- async [_0x127d59(199)](_0x5b33bb, _0x37f304) {
594
- const _0x507a15 = _0x127d59, _0x2fbd3c = _0x127d59, _0x379e07 = {};
595
- _0x379e07[_0x507a15(153)] = function(_0x3e18bf, _0x3361a3) {
596
- return _0x3e18bf === _0x3361a3;
597
- }, _0x379e07[_0x2fbd3c(169)] = _0x2fbd3c(189), _0x379e07["hWABh"] = _0x507a15(170);
598
- const _0x2954c9 = _0x379e07;
599
- if (_0x2954c9["ZIIhI"](_0x37f304["token_type_hint"], _0x2954c9["AleNl"])) {
600
- const _0x24f5be = await this["accessTokensStore"]["getAccessToken"](_0x37f304["token"]);
601
- if (!_0x24f5be || _0x24f5be["clientId"] !== _0x5b33bb["client_id"]) throw new InvalidTokenError("Access token is invalid or does not belong to this client: " + _0x5b33bb["client_id"]);
602
- await this[_0x507a15(192)][_0x507a15(136)](_0x37f304["token"]);
586
+ async ["revokeToken"](_0x4cc77e, _0x2657a1) {
587
+ const _0xf9eb84 = _0x213126, _0x532d81 = _0x41e2e9, _0x549cb0 = {};
588
+ _0x549cb0["sGkHE"] = function(_0x20dc9e, _0x21effd) {
589
+ return _0x20dc9e === _0x21effd;
590
+ }, _0x549cb0["NZKym"] = _0xf9eb84(571), _0x549cb0["HqYqs"] = _0x532d81(504), _0x549cb0[_0x532d81(515)] = function(_0x5c8d3c, _0x35a47b) {
591
+ return _0x5c8d3c !== _0x35a47b;
592
+ };
593
+ const _0x31e7e1 = _0x549cb0;
594
+ if (_0x31e7e1["sGkHE"](_0x2657a1["token_type_hint"], _0x31e7e1["NZKym"])) {
595
+ const _0x4e4762 = await this["accessTokensStore"]["getAccessToken"](_0x2657a1[_0x532d81(557)]);
596
+ if (!_0x4e4762 || _0x4e4762["clientId"] !== _0x4cc77e["client_id"]) throw new InvalidTokenError("Access token is invalid or does not belong to this client: " + _0x4cc77e[_0xf9eb84(523)]);
597
+ await this[_0xf9eb84(539)]["revokeAccessToken"](_0x2657a1["token"]);
603
598
  } else {
604
- if (_0x37f304[_0x2fbd3c(120)] === _0x2954c9[_0x2fbd3c(155)]) {
605
- const _0x6202ed = await this["refreshTokensStore"][_0x2fbd3c(140)](_0x37f304["token"]);
606
- if (!_0x6202ed || _0x6202ed["clientId"] !== _0x5b33bb["client_id"]) throw new InvalidTokenError("Refresh token is invalid or does not belong to this client: " + _0x5b33bb["client_id"]);
607
- await this["refreshTokensStore"]["revokeRefreshToken"](_0x37f304[_0x507a15(163)]);
608
- } else throw new InvalidGrantError("Unsupported token type hint: " + _0x37f304["token_type_hint"] + _0x507a15(216) + _0x5b33bb["client_id"]);
599
+ if (_0x31e7e1["sGkHE"](_0x2657a1["token_type_hint"], _0x31e7e1[_0xf9eb84(512)])) {
600
+ const _0xcd1e76 = await this[_0xf9eb84(555)][_0x532d81(554)](_0x2657a1["token"]);
601
+ if (!_0xcd1e76 || _0x31e7e1[_0x532d81(515)](_0xcd1e76["clientId"], _0x4cc77e[_0x532d81(523)])) throw new InvalidTokenError(_0x532d81(570) + _0x4cc77e["client_id"]);
602
+ await this[_0x532d81(555)]["revokeRefreshToken"](_0x2657a1["token"]);
603
+ } else throw new InvalidGrantError("Unsupported token type hint: " + _0x2657a1[_0xf9eb84(496)] + " to this client: " + _0x4cc77e[_0x532d81(523)]);
609
604
  }
610
605
  }
611
606
  }
612
- const createAuthMiddleware = (_0x19b1e5, _0x522442) => {
613
- const _0x5070a3 = _0x127d59, _0x64a2b5 = _0x4f1f27, _0x4c109f = { "FFZiq": function(_0x5201f0, _0x33b638) {
614
- return _0x5201f0(_0x33b638);
615
- }, "rWZDT": function(_0x5815b7, _0x169377) {
616
- return _0x5815b7(_0x169377);
617
- } }, _0x4b51f6 = async (_0xb5399b) => {
607
+ const createAuthMiddleware = (_0x19ddb5, _0x45de00) => {
608
+ const _0x5233a8 = _0x213126, _0x46a672 = { "pRrjv": function(_0x21b1f3, _0x4e0951) {
609
+ return _0x21b1f3(_0x4e0951);
610
+ }, "rhzvc": function(_0x102958, _0x5356f7) {
611
+ return _0x102958(_0x5356f7);
612
+ } }, _0xdd2a59 = async (_0x3006de) => {
618
613
  var _a;
619
- const _0x4aba80 = _0x1255, _0x40c4f6 = _0x1255, _0x3281c2 = await _0x19b1e5["verifyAccessToken"](_0xb5399b), _0x3129ac = { "active": !![], "client_id": _0x3281c2["clientId"], "scope": _0x3281c2["scopes"][_0x4aba80(160)](" "), "exp": _0x3281c2["expiresAt"], "aud": _0x3281c2[_0x4aba80(138)] };
620
- if (!_0x3129ac[_0x40c4f6(139)]) throw new Error("Resource Indicator (RFC8707) missing");
621
- const _0x4d39c5 = {};
622
- _0x4d39c5["requestedResource"] = _0x3129ac[_0x4aba80(139)], _0x4d39c5["configuredResource"] = _0x522442;
623
- if (!_0x4c109f[_0x40c4f6(210)](checkResourceAllowed, _0x4d39c5)) throw new Error("Expected resource indicator " + _0x522442 + _0x4aba80(145) + _0x3129ac["aud"]);
624
- return { "token": _0xb5399b, "clientId": _0x3129ac[_0x4aba80(217)], "scopes": _0x3129ac[_0x40c4f6(205)] ? _0x3129ac["scope"]["split"](" ") : [], "expiresAt": _0x3129ac[_0x40c4f6(184)], "redirectUri": (_a = _0x3281c2["extra"]) == null ? void 0 : _a["redirectUri"] };
625
- }, _0x1ae01a = {};
626
- return _0x1ae01a[_0x5070a3(215)] = _0x4b51f6, _0x4c109f[_0x64a2b5(171)](requireBearerAuth, { "verifier": _0x1ae01a, "requiredScopes": [], "resourceMetadataUrl": _0x4c109f[_0x5070a3(171)](getOAuthProtectedResourceMetadataUrl, new URL(_0x522442)) });
614
+ const _0x456b0b = _0x51d3, _0xde420c = _0x51d3, _0x2af921 = await _0x19ddb5["verifyAccessToken"](_0x3006de), _0xa4b0f = { "active": !![], "client_id": _0x2af921[_0x456b0b(495)], "scope": _0x2af921[_0x456b0b(563)]["join"](" "), "exp": _0x2af921[_0x456b0b(542)], "aud": _0x2af921[_0xde420c(534)] };
615
+ if (!_0xa4b0f["aud"]) throw new Error("Resource Indicator (RFC8707) missing");
616
+ const _0x1d833d = {};
617
+ _0x1d833d["requestedResource"] = _0xa4b0f["aud"], _0x1d833d[_0x456b0b(525)] = _0x45de00;
618
+ if (!_0x46a672[_0x456b0b(535)](checkResourceAllowed, _0x1d833d)) throw new Error("Expected resource indicator " + _0x45de00 + ", got: " + _0xa4b0f["aud"]);
619
+ return { "token": _0x3006de, "clientId": _0xa4b0f["client_id"], "scopes": _0xa4b0f[_0xde420c(552)] ? _0xa4b0f["scope"][_0xde420c(485)](" ") : [], "expiresAt": _0xa4b0f[_0xde420c(486)], "redirectUri": (_a = _0x2af921[_0xde420c(517)]) == null ? void 0 : _a["redirectUri"] };
620
+ }, _0x311312 = {};
621
+ return _0x311312["verifyAccessToken"] = _0xdd2a59, _0x46a672[_0x5233a8(564)](requireBearerAuth, { "verifier": _0x311312, "requiredScopes": [], "resourceMetadataUrl": getOAuthProtectedResourceMetadataUrl(new URL(_0x45de00)) });
627
622
  };
628
- const createAuthCallbackRouter = (_0x13d88b, ..._0x1bca73) => {
629
- const _0x3f356d = _0x4f1f27, _0x5d39c6 = _0x4f1f27, _0x34d920 = _0xec42e8[_0x3f356d(194)](), _0x340c25 = /* @__PURE__ */ new Map();
630
- _0x34d920["get"](_0x13d88b, _0xec42e8["json"](), (_0x5bc39d, _0x37815e) => {
631
- const _0x16444f = _0x3f356d, _0x33c36e = _0x3f356d, { code: _0x3d6607, state: _0x40ef02, error: _0x5b9601 } = _0x5bc39d[_0x16444f(174)];
632
- if (_0x3d6607 && _0x40ef02) _0x340c25[_0x33c36e(213)](_0x40ef02, _0x3d6607), _0x37815e["json"]({});
633
- else _0x5b9601 && _0x37815e[_0x33c36e(191)](-5365 + 1 * 762 + 1 * 5003)[_0x16444f(175)]("OAuth authorization failed: " + _0x5b9601);
623
+ const createAuthCallbackRouter = (_0x42c312, ..._0x4f84c4) => {
624
+ const _0x296674 = _0x213126, _0x334879 = _0x213126, _0x4b6c4c = {};
625
+ _0x4b6c4c[_0x296674(527)] = function(_0x168cfc, _0x77f061) {
626
+ return _0x168cfc && _0x77f061;
627
+ };
628
+ const _0x59a5b6 = _0x4b6c4c, _0x10e83a = _0x5cd98a[_0x296674(556)](), _0x5cf9bf = /* @__PURE__ */ new Map();
629
+ _0x10e83a[_0x334879(503)](_0x42c312, _0x5cd98a[_0x296674(507)](), (_0x1b45bf, _0x2c5f85) => {
630
+ const _0x202b1d = _0x296674, _0x427b06 = _0x296674, { code: _0x36b89c, state: _0x30815f, error: _0x36491c } = _0x1b45bf[_0x202b1d(498)];
631
+ if (_0x59a5b6[_0x427b06(527)](_0x36b89c, _0x30815f)) _0x5cf9bf[_0x427b06(511)](_0x30815f, _0x36b89c), _0x2c5f85["json"]({});
632
+ else _0x36491c && _0x2c5f85["status"](-1 * 501 + -581 * 3 + 2644)["send"]("OAuth authorization failed: " + _0x36491c);
634
633
  });
635
- const _0x5f17f7 = [_0xec42e8[_0x5d39c6(132)](), ..._0x1bca73, (_0x405472, _0x3cbdc8) => {
636
- const _0x33f8db = _0x5d39c6, _0x1f3333 = _0x5d39c6, { state: _0x3b0267 } = _0x405472["body"];
637
- if (_0x3b0267 && _0x340c25["has"](_0x3b0267)) {
638
- const _0x3d8a4f = _0x340c25[_0x33f8db(135)](_0x3b0267);
639
- _0x340c25[_0x1f3333(219)](_0x3b0267);
640
- const _0x3eaf39 = {};
641
- _0x3eaf39["code"] = _0x3d8a4f, _0x3cbdc8["json"](_0x3eaf39);
642
- } else _0x3cbdc8["status"](1018 * -7 + -583 * -7 + 3445)[_0x33f8db(175)]("No authorization code found for state: " + _0x3b0267);
634
+ const _0x267a0f = [_0x5cd98a[_0x296674(507)](), ..._0x4f84c4, (_0x654be, _0x2c907d) => {
635
+ const _0x4255dc = _0x334879, _0x29b965 = _0x334879, { state: _0x374377 } = _0x654be[_0x4255dc(562)];
636
+ if (_0x374377 && _0x5cf9bf["has"](_0x374377)) {
637
+ const _0x4c6f44 = _0x5cf9bf[_0x4255dc(503)](_0x374377);
638
+ _0x5cf9bf[_0x29b965(497)](_0x374377);
639
+ const _0x35c2a1 = {};
640
+ _0x35c2a1["code"] = _0x4c6f44, _0x2c907d["json"](_0x35c2a1);
641
+ } else _0x2c907d["status"](4333 + 263 * 31 + -12086)["send"]("No authorization code found for state: " + _0x374377);
643
642
  }];
644
- return _0x34d920["post"](_0x13d88b, ..._0x5f17f7), _0x34d920;
643
+ return _0x10e83a["post"](_0x42c312, ..._0x267a0f), _0x10e83a;
645
644
  };
646
- const metadataHandler = (_0x2ae2be) => {
647
- const _0x32588f = _0x127d59, _0x1e3246 = _0x4f1f27, _0x4a5846 = { "rQtLU": function(_0x14b22d) {
648
- return _0x14b22d();
649
- }, "pHSox": "GET" }, _0x1d0da3 = _0xec42e8[_0x32588f(194)]();
650
- return _0x1d0da3[_0x1e3246(137)](_0x4a5846["rQtLU"](_0xafee6b)), _0x1d0da3["use"](allowedMethods([_0x4a5846[_0x32588f(149)]])), _0x1d0da3["use"]("/", (_0x4455d1, _0x5e3828) => {
651
- const _0x3789e2 = _0x32588f;
652
- _0x5e3828[_0x3789e2(191)](-6469 + -3109 + 9778)["json"](_0x2ae2be);
653
- }), _0x1d0da3;
645
+ const metadataHandler = (_0x524dad) => {
646
+ const _0xf76a65 = _0x213126, _0x2a8627 = _0x41e2e9, _0x34c2d2 = { "TvEhp": function(_0x19a545) {
647
+ return _0x19a545();
648
+ }, "vrwMC": function(_0x45346b, _0x3a2609) {
649
+ return _0x45346b(_0x3a2609);
650
+ }, "VBcPV": "GET", "yEBSy": "OPTIONS" }, _0x2cdeaf = _0x5cd98a[_0xf76a65(556)]();
651
+ return _0x2cdeaf["use"](_0x34c2d2["TvEhp"](_0x310cf0)), _0x2cdeaf[_0x2a8627(531)](_0x34c2d2["vrwMC"](allowedMethods, [_0x34c2d2[_0xf76a65(573)], _0x34c2d2[_0x2a8627(528)]])), _0x2cdeaf[_0xf76a65(531)]("/", (_0x3776bd, _0xacd5df) => {
652
+ _0xacd5df["status"](2126 * 2 + -8108 * 1 + -12 * -338)["json"](_0x524dad);
653
+ }), _0x2cdeaf;
654
654
  };
655
- const createAuthMetadataRouter = (_0x426d42, _0xa88f4, _0x10874d) => {
656
- const _0x41e0a5 = _0x127d59, _0x378bf2 = _0x4f1f27, _0x4a08ea = { "uNGka": _0x41e0a5(128), "JKLtp": _0x378bf2(152), "pOGFN": function(_0x5bf265, _0xf77ed2) {
657
- return _0x5bf265(_0xf77ed2);
658
- } }, _0x3a6779 = _0xec42e8["Router"](), _0x2e3c19 = createOAuthMetadata({ "provider": _0x426d42, "issuerUrl": new URL(_0xa88f4) }), _0x119c5a = { "resource": new URL(_0x10874d)[_0x378bf2(188)], "authorization_servers": [_0x2e3c19[_0x378bf2(119)]] };
659
- return _0x3a6779["use"](_0x4a08ea[_0x41e0a5(142)], metadataHandler(_0x119c5a)), _0x3a6779[_0x41e0a5(137)](_0x4a08ea[_0x378bf2(144)], _0x4a08ea["pOGFN"](metadataHandler, _0x2e3c19)), _0x3a6779;
655
+ const createAuthMetadataRouter = (_0x55f315, _0x1cb019, _0x2fdcb0, _0x55df86) => {
656
+ const _0x25f842 = _0x41e2e9, _0x3846e0 = _0x213126, _0x46aeca = { "QSLMV": function(_0xd8f9f1, _0x5df111) {
657
+ return _0xd8f9f1(_0x5df111);
658
+ }, "NJOYh": function(_0x4a8cc2, _0x8ce4b1) {
659
+ return _0x4a8cc2 || _0x8ce4b1;
660
+ }, "dYbbc": function(_0x3cb297, _0x31d423) {
661
+ return _0x3cb297 === _0x31d423;
662
+ }, "RZFdN": _0x25f842(505) }, _0x384df7 = _0x5cd98a[_0x25f842(556)](), _0x38e1e3 = _0x46aeca[_0x3846e0(491)](createOAuthMetadata, { "provider": _0x55f315, "issuerUrl": new URL(_0x46aeca[_0x3846e0(540)](_0x55df86, _0x1cb019)) }), _0xff54b9 = { "resource": new URL(_0x2fdcb0)[_0x3846e0(492)], "authorization_servers": [new URL(_0x1cb019)["href"]] }, _0x47b025 = new URL(_0x2fdcb0)["pathname"];
663
+ return _0x384df7["use"]("/.well-known/oauth-protected-resource" + (_0x46aeca[_0x25f842(513)](_0x47b025, "/") ? "" : _0x47b025), _0x46aeca[_0x3846e0(491)](metadataHandler, _0xff54b9)), _0x384df7["use"](_0x46aeca[_0x25f842(566)], _0x46aeca[_0x3846e0(491)](metadataHandler, _0x38e1e3)), _0x384df7;
660
664
  };
661
- const createAuthRouter = (_0x39beed) => {
662
- const _0x7cb428 = _0x127d59, _0x1e14fa = { "AIxvn": function(_0x3bd353, _0x4ca437) {
663
- return _0x3bd353(_0x4ca437);
665
+ const createAuthRouter = (_0x12bca1) => {
666
+ const _0x2baa3e = { "FHLti": function(_0x2e3a7d, _0x328c77) {
667
+ return _0x2e3a7d(_0x328c77);
664
668
  } };
665
- return _0x1e14fa[_0x7cb428(214)](mcpAuthRouter, _0x39beed);
669
+ return _0x2baa3e["FHLti"](mcpAuthRouter, _0x12bca1);
670
+ };
671
+ const lockCors = (_0xbc1c61) => {
672
+ const _0x360019 = _0x213126, _0x27c834 = _0x213126, _0x277cee = { "muxSj": function(_0x51c2e0, _0x43db51) {
673
+ return _0x51c2e0 === _0x43db51;
674
+ }, "eqRUu": _0x360019(526), "FvGsU": _0x27c834(545), "rbfjJ": function(_0x98d564, _0x2b83a7, _0x534a29, _0x4113f6) {
675
+ return _0x98d564(_0x2b83a7, _0x534a29, _0x4113f6);
676
+ } }, _0x1acf55 = _0x310cf0(_0xbc1c61);
677
+ return (_0x518579, _0x4f24fb, _0x4bfa11) => {
678
+ const _0x2499e0 = _0x360019, _0x3152eb = _0x360019, _0x8eac0b = _0x4f24fb[_0x2499e0(519)];
679
+ _0x4f24fb["setHeader"] = function(_0x24a9af, _0x270df6) {
680
+ const _0x175656 = _0x2499e0;
681
+ if (_0x277cee["muxSj"](_0x24a9af["toLowerCase"](), _0x277cee["eqRUu"])) {
682
+ const _0x11e5ab = _0x4f24fb[_0x175656(493)](_0x277cee["FvGsU"]);
683
+ if (_0x11e5ab) return this;
684
+ }
685
+ return _0x8eac0b["apply"](this, [_0x24a9af, _0x270df6]);
686
+ }, _0x277cee[_0x3152eb(489)](_0x1acf55, _0x518579, _0x4f24fb, _0x4bfa11);
687
+ };
666
688
  };
667
- const _0xba5988 = _0x2d47, _0x5ef2b3 = _0x2d47;
668
- (function(_0x4c0065, _0x31d325) {
669
- const _0x102c6c = _0x2d47, _0x1ecce7 = _0x2d47, _0x1e6b6c = _0x4c0065();
689
+ function _0x2101(_0x283b22, _0x172b74) {
690
+ const _0xde55ee = _0x4eb4();
691
+ return _0x2101 = function(_0x2845f4, _0x3f5577) {
692
+ _0x2845f4 = _0x2845f4 - (-47 * -194 + 7 * 526 + -1 * 12599);
693
+ let _0x57af8b = _0xde55ee[_0x2845f4];
694
+ return _0x57af8b;
695
+ }, _0x2101(_0x283b22, _0x172b74);
696
+ }
697
+ const _0x301a2 = _0x2101, _0x12c17d = _0x2101;
698
+ (function(_0x364076, _0x495627) {
699
+ const _0x597399 = _0x2101, _0x146110 = _0x2101, _0x21fb80 = _0x364076();
670
700
  while (!![]) {
671
701
  try {
672
- const _0xc80251 = parseInt(_0x102c6c(471)) / (-588 + -161 * -53 + -7944) * (-parseInt(_0x1ecce7(480)) / (-3109 + -5392 + 8503)) + -parseInt(_0x102c6c(532)) / (3181 + -8 * 1183 + 1 * 6286) * (-parseInt(_0x1ecce7(515)) / (436 + -2143 * -1 + -2575)) + parseInt(_0x1ecce7(536)) / (-3634 + -1 * -6202 + -2563) + -parseInt(_0x102c6c(571)) / (2129 * 2 + 2 * -133 + -3986) * (-parseInt(_0x1ecce7(504)) / (4687 + 3477 + -3 * 2719)) + parseInt(_0x102c6c(581)) / (-2059 * 4 + -9751 * -1 + 1 * -1507) * (parseInt(_0x1ecce7(477)) / (-7685 + 7517 * -1 + 287 * 53)) + parseInt(_0x102c6c(533)) / (-5765 * -1 + -1 * -2161 + -4 * 1979) + -parseInt(_0x102c6c(557)) / (-51 * 173 + 41 * -18 + 1 * 9572);
673
- if (_0xc80251 === _0x31d325) break;
674
- else _0x1e6b6c["push"](_0x1e6b6c["shift"]());
675
- } catch (_0x15dec4) {
676
- _0x1e6b6c["push"](_0x1e6b6c["shift"]());
702
+ const _0x2e82be = parseInt(_0x597399(264)) / (-3639 + -1028 + 4668) * (-parseInt(_0x146110(326)) / (-4506 + 6319 + -1811)) + -parseInt(_0x597399(322)) / (-4139 * -2 + 178 * 55 + -5 * 3613) * (-parseInt(_0x146110(215)) / (3422 + 4976 * -1 + -1558 * -1)) + -parseInt(_0x146110(299)) / (7094 + 373 * 5 + -242 * 37) * (parseInt(_0x146110(323)) / (20 * -376 + 470 * -14 + 14106)) + parseInt(_0x597399(218)) / (492 + 1 * 7833 + 1 * -8318) * (parseInt(_0x146110(283)) / (-1546 * 1 + -2697 + 4251)) + parseInt(_0x146110(311)) / (300 + 8357 + -8648) + -parseInt(_0x597399(286)) / (23 * -221 + 1 * 7182 + 1 * -2089) * (parseInt(_0x146110(342)) / (6571 + -5258 + -1 * 1302)) + -parseInt(_0x146110(211)) / (-4 * -577 + -4229 * -1 + -29 * 225) * (parseInt(_0x597399(334)) / (-5984 + 433 * 12 + -1 * -801));
703
+ if (_0x2e82be === _0x495627) break;
704
+ else _0x21fb80["push"](_0x21fb80["shift"]());
705
+ } catch (_0x416b08) {
706
+ _0x21fb80["push"](_0x21fb80["shift"]());
677
707
  }
678
708
  }
679
- })(_0x291b, -1087134 + -26902 * -1 + 1631827);
680
- function _0x2d47(_0x5bb66f, _0x400ccc) {
681
- const _0x199ffd = _0x291b();
682
- return _0x2d47 = function(_0x446088, _0x3373a3) {
683
- _0x446088 = _0x446088 - (-5465 + 7172 + 1 * -1247);
684
- let _0x51b535 = _0x199ffd[_0x446088];
685
- return _0x51b535;
686
- }, _0x2d47(_0x5bb66f, _0x400ccc);
687
- }
688
- function _0x291b() {
689
- const _0x14d326 = ["message", "subscribe", "addNotificationListener", "event: close\ndata: \n\n", "listChanged", "8734599AkTAzm", "WDwuj", "shouldClose", "2EdcnDx", "onclose", "error", "xQTaf", "accept", "connect", "details", "end", "tTEpX", "Savqr", "No client found for session ID ", "Method not allowed.", "verify", "auth", "handleRequest", "url", "_notificationHandlers", "handleWebSocket", "length", "json", "mcp-socket-twin-client", "iJYRJ", "mcp-server", "server", "182llvKCz", "NANjm", "value", "completions", "protocolVersion", "qvQdx", "sse-session-id", "ping", "mcp-session-id", "keys", "tLvAF", "164vgPyEd", "handleSseProxy", "jlwsJ", "sQKbx", "tools", "JtlEB", "prompts", "JbNzm", "cyRCJ", "dJnin", "afterInit", "sampling", "WqgNn", "qSNcZ", "code", "DELETE", "bonKW", "44967tFuEYG", "7374560hqUzIE", "body", "set", "5298095GAlGQW", "capabilities", "query", "push", "user", "headersSent", "map", "BkXdQ", "gSfFs", "sessionId", "write", "iMpqN", "ErRDQ", "Oqkqt", "status", "tFxkc", "WuneN", "version", "fulfilled", "logging", "transport", "39302054TcqqMG", "1.0.0", "notifications/initialized", "uuogb", "BDrVA", "includes", "name", "_sessionId", "HjRbb", "elicitation", "Dwtny", "referer", "send", "tIHLW", "193590opGJPI", "token", "x-forwarded-for", "LVmNq", "JGpQa", "user-agent", "forEach", "values", "headers", "wmAfK", "8BoJHMH", "resolve", "WebSocket", "AtduA", "xTmPn", "method", "Allow", "GHsdz", "resources", "jsonrpc", "roots", "fbAOS", "get", "close", "stream-session-id", "http://localhost", "reset", "mcp-sse-proxy-server", "_sseResponse", "POST", "IPRWX", "OLalj", "client", "onerror", "UhSLE", "76516CiRKQp"];
690
- _0x291b = function() {
691
- return _0x14d326;
709
+ })(_0x4eb4, -73 * 12766 + 142643 * -1 + 1544570);
710
+ function _0x4eb4() {
711
+ const _0x51abca = ["KFXQU", "tYBNZ", "2.0", "length", "jsonrpc", "auth", "TmlVG", "BGZnq", "ping", "inspectors", "completions", "status", "headersSent", "stringify", "shouldClose", "dgfmu", "verify", "name", "http://localhost", "reset", "logging", "text/event-stream", "ImPVm", "type", "PAfsa", "PlIPJ", "mcp-server", "body", "subscribe", "message", "close", "_webStandardTransport", "set", "CuDLn", "rcexc", "handleStreamInspector", "values", "addNotificationListener", "azSTD", "GET", "removeNotificationListener", "send", "rGwIR", "1051BzFGMo", "_requestHandlers", "XkVIZ", "tools", "Allow", "client", "authorization", "kzfhr", "Bad Request: No valid session ID provided", "once", "CZTzM", "error", "fPZdc", "all", "onerror", "tcQpN", "remoterSessions", "yvXqV", "NhddI", "27064LNxORS", "transport", "roots", "644860XCDCRS", "map", "resolve", "query", "split", "notifications/initialized", "PYRrS", "allSettled", "Method not allowed.", "json", "end", "mcp-sse-twin-client", "handleStreamRequest", "10cKFySR", "yNhxA", "version", "get", "fTIRa", "kggHK", "handlePostMessage", "Invalid or missing session ID", "muQDP", "1.0.0", "No transport found", "user", "7544799fpiVma", "sampling", "referer", "onclose", "Invalid bearer token", "value", "capabilities", "GOskr", "push", "mcp-stream-twin-client", "mcpServer", "1239KXrjKL", "883716DumyzE", "url", "gweEn", "934MCCmjG", "handleWebSocket", "prompts", "LIZsT", "sessionIdGenerator", "headers", "handleSseMessage", "params", "3038867VkUuhS", "SSE", "_notificationHandlers", "Internal server error", "listChanged", "keys", "resources", "method", "33gIgkYQ", "DELETE", "ggQPt", "code", "connect", "handleSseProxy", "handleRequest", "WliyP", "sessionId", "WjQFk", "Qfisp", "fEkjP", "12oWQWOl", "remoters", "HwRPG", "stream-session-id", "4868qGusFh", "BuMZz", "forEach", "707anyqod", "zlCns", "onClientError"];
712
+ _0x4eb4 = function() {
713
+ return _0x51abca;
692
714
  };
693
- return _0x291b();
715
+ return _0x4eb4();
694
716
  }
695
- const auth = ({ secret: _0xa3b1 }) => (_0x193369, _0xfe7e71, _0x4f0e84) => {
717
+ const auth = ({ secret: _0x1729dd }) => (_0x5cfefe, _0x155b75, _0x473599) => {
696
718
  var _a;
697
- const _0x389aed = _0x2d47, _0x5887f3 = _0x2d47, _0x1cd08b = {};
698
- _0x1cd08b[_0x389aed(570)] = "Missing bearer token", _0x1cd08b["gIZEr"] = "Invalid bearer token";
699
- const _0x7c4a55 = _0x1cd08b, _0x2e5a22 = (_a = _0x193369["headers"]["authorization"]) == null ? void 0 : _a["split"](" ")[-4 * 653 + 1 * 4141 + -1528];
700
- if (!_0x2e5a22) {
701
- _0xfe7e71["status"](8248 + 2531 * 1 + -1 * 10378)["send"](_0x7c4a55[_0x389aed(570)]);
719
+ const _0x3022c7 = _0x2101, _0x304409 = _0x2101, _0x755060 = { "Qfisp": "Missing bearer token", "fPZdc": function(_0x3a6f61) {
720
+ return _0x3a6f61();
721
+ }, "lArCW": _0x3022c7(315) }, _0x22150b = (_a = _0x5cfefe[_0x3022c7(331)][_0x304409(270)]) == null ? void 0 : _a[_0x304409(290)](" ")[-2753 + -134 + 2888];
722
+ if (!_0x22150b) {
723
+ _0x155b75[_0x304409(232)](8650 + 3191 + -11440)["send"](_0x755060[_0x3022c7(209)]);
702
724
  return;
703
725
  }
704
726
  try {
705
- _0x193369[_0x5887f3(540)] = _0x55456e[_0x389aed(492)](_0x2e5a22, _0xa3b1), _0x4f0e84();
706
- } catch (_0x199088) {
707
- const _0x2070cc = {};
708
- _0x2070cc["error"] = _0x7c4a55["gIZEr"], _0x2070cc[_0x389aed(486)] = _0x199088["message"], _0xfe7e71["status"](-6652 + 1 * 1126 + 5929)["json"](_0x2070cc);
727
+ _0x5cfefe["user"] = _0x42bb3b[_0x304409(237)](_0x22150b, _0x1729dd), _0x755060[_0x3022c7(276)](_0x473599);
728
+ } catch (_0x4ad0dd) {
729
+ const _0x200270 = {};
730
+ _0x200270[_0x3022c7(275)] = _0x755060["lArCW"], _0x200270["details"] = _0x4ad0dd[_0x304409(250)], _0x155b75[_0x3022c7(232)](9641 + -2329 + -6909)["json"](_0x200270);
709
731
  }
710
732
  };
711
- const jwtAuth = (_0x138759, _0x2162dc) => {
712
- const _0x351d7b = _0x2d47, _0x190f54 = _0x2d47, _0x5a757d = {};
713
- _0x5a757d["Hahiu"] = function(_0x478c60, _0x2a51c1) {
714
- return _0x478c60 + _0x2a51c1;
715
- }, _0x5a757d[_0x351d7b(478)] = _0x351d7b(572), _0x5a757d["qvQdx"] = "Invalid bearer token";
716
- const _0x38d61e = _0x5a757d, _0x31600a = new URL(_0x38d61e["Hahiu"]("http://localhost", _0x138759["url"])), _0x287dcf = _0x31600a["searchParams"]["get"](_0x38d61e[_0x190f54(478)]);
717
- if (!_0x287dcf) throw new Error("Missing bearer token");
733
+ const jwtAuth = (_0x366268, _0x5696aa) => {
734
+ const _0x5585f1 = _0x2101, _0x4922c5 = _0x2101, _0x19c857 = {};
735
+ _0x19c857[_0x5585f1(266)] = function(_0x54f919, _0x3642cd) {
736
+ return _0x54f919 + _0x3642cd;
737
+ }, _0x19c857[_0x4922c5(263)] = _0x4922c5(239), _0x19c857["yvXqV"] = "token", _0x19c857["LIZsT"] = "Missing bearer token", _0x19c857["eJVIE"] = _0x4922c5(315);
738
+ const _0x78ed1a = _0x19c857, _0xa2aa96 = new URL(_0x78ed1a[_0x5585f1(266)](_0x78ed1a[_0x4922c5(263)], _0x366268[_0x5585f1(324)])), _0x42c490 = _0xa2aa96["searchParams"][_0x4922c5(302)](_0x78ed1a[_0x5585f1(281)]);
739
+ if (!_0x42c490) throw new Error(_0x78ed1a[_0x5585f1(329)]);
718
740
  try {
719
- _0x138759[_0x351d7b(540)] = _0x55456e["verify"](_0x287dcf, _0x2162dc);
720
- } catch (_0x8dc9c2) {
721
- throw new Error(_0x38d61e[_0x351d7b(509)]);
741
+ _0x366268[_0x5585f1(310)] = _0x42bb3b[_0x4922c5(237)](_0x42c490, _0x5696aa);
742
+ } catch (_0x5a0ab7) {
743
+ throw new Error(_0x78ed1a["eJVIE"]);
722
744
  }
723
745
  };
724
- const getDeviceInfo = (_0x173bc1) => ({ "ip": _0x173bc1["headers"][_0xba5988(573)] || _0x173bc1["ip"] || "", "userAgent": _0x173bc1["headers"][_0xba5988(576)] || "", "acceptLanguage": _0x173bc1[_0x5ef2b3(579)]["accept-language"] || "", "referer": _0x173bc1[_0xba5988(579)][_0x5ef2b3(568)] || "" }), forwardProxyServer = (_0x1df0b3, _0x54278e) => {
725
- const _0x3bdd00 = _0xba5988, _0x44329d = _0xba5988, _0x4e3800 = { "OLalj": function(_0x34823d, _0x4786b4, _0x3d5d97) {
726
- return _0x34823d(_0x4786b4, _0x3d5d97);
727
- }, "Savqr": function(_0x2f6219, _0x485555, _0x38e5e3) {
728
- return _0x2f6219(_0x485555, _0x38e5e3);
746
+ const getDeviceInfo = (_0x5cbc20) => ({ "ip": _0x5cbc20["headers"]["x-forwarded-for"] || _0x5cbc20["ip"] || "", "userAgent": _0x5cbc20["headers"]["user-agent"] || "", "acceptLanguage": _0x5cbc20[_0x301a2(331)]["accept-language"] || "", "referer": _0x5cbc20["headers"][_0x12c17d(313)] || "" }), forwardProxyServer = (_0x4fdab4, _0x30924e) => {
747
+ const _0x258634 = _0x12c17d, _0x50009e = _0x12c17d, _0x12c075 = { "dgfmu": function(_0x305a6f, _0x23f323, _0x1d92f8) {
748
+ return _0x305a6f(_0x23f323, _0x1d92f8);
749
+ }, "tYBNZ": function(_0x52afec, _0x469ccb, _0x17c074) {
750
+ return _0x52afec(_0x469ccb, _0x17c074);
729
751
  } };
730
- _0x4e3800[_0x3bdd00(467)](forwardServerOnRequest, _0x1df0b3, _0x54278e), forwardServerOnNotification(_0x1df0b3, _0x54278e);
731
- const _0xe57e0f = _0x4e3800[_0x3bdd00(489)](forwardClientOnRequest, _0x54278e, _0x1df0b3), _0x3216a5 = _0x4e3800["OLalj"](forwardClientOnNotification, _0x54278e, _0x1df0b3);
732
- _0x54278e["addRequestListener"](_0xe57e0f), _0x54278e[_0x44329d(474)](_0x3216a5), _0x1df0b3["onclose"] = () => {
733
- _0x54278e["removeRequestListener"](_0xe57e0f), _0x54278e["removeNotificationListener"](_0x3216a5);
752
+ _0x12c075[_0x258634(236)](forwardServerOnRequest, _0x4fdab4, _0x30924e), _0x12c075[_0x50009e(236)](forwardServerOnNotification, _0x4fdab4, _0x30924e);
753
+ const _0x582998 = _0x12c075[_0x258634(222)](forwardClientOnRequest, _0x30924e, _0x4fdab4), _0x34ea47 = forwardClientOnNotification(_0x30924e, _0x4fdab4);
754
+ _0x30924e["addRequestListener"](_0x582998), _0x30924e[_0x258634(258)](_0x34ea47), _0x4fdab4[_0x258634(314)] = () => {
755
+ const _0x33d269 = _0x258634;
756
+ _0x30924e["removeRequestListener"](_0x582998), _0x30924e[_0x33d269(261)](_0x34ea47);
734
757
  };
735
- }, initTwinClientHandler = (_0x7c249, _0x978026) => {
736
- const _0x2d7938 = _0x5ef2b3, _0x298da8 = _0xba5988, _0x3fc174 = { "rAXgw": _0x2d7938(559), "mlzRA": _0x298da8(475), "dJnin": function(_0x1c9439, _0x365c84) {
737
- return _0x1c9439 instanceof _0x365c84;
738
- }, "qSNcZ": function(_0x424002, _0x184eee, _0x2209ae) {
739
- return _0x424002(_0x184eee, _0x2209ae);
740
- } }, _0x4df33a = () => {
741
- const _0x1028f2 = _0x298da8, _0x1414b8 = _0x2d7938, _0x507ad0 = {};
742
- _0x507ad0["listChanged"] = !![];
743
- const _0x28ec31 = {};
744
- _0x28ec31[_0x1028f2(473)] = !![], _0x28ec31[_0x1414b8(476)] = !![];
745
- const _0x26607a = {};
746
- _0x26607a[_0x1028f2(476)] = !![];
747
- const _0x474c77 = {};
748
- _0x474c77["prompts"] = _0x507ad0, _0x474c77["resources"] = _0x28ec31, _0x474c77[_0x1414b8(519)] = _0x26607a, _0x474c77[_0x1414b8(507)] = {}, _0x474c77[_0x1028f2(555)] = {};
749
- const _0x4e2671 = _0x474c77, _0x2ad1bf = {};
750
- _0x2ad1bf["name"] = _0x1414b8(502), _0x2ad1bf[_0x1414b8(553)] = "1.0.0", _0x7c249["_requestHandlers"][_0x1028f2(535)]("initialize", (_0x3f7a0d) => ({ "protocolVersion": _0x3f7a0d["params"][_0x1028f2(508)], "capabilities": _0x4e2671, "serverInfo": _0x2ad1bf })), _0x7c249[_0x1414b8(496)]["set"](_0x3fc174["rAXgw"], () => {
758
+ }, initTwinClientHandler = (_0x1b6419, _0x55bdb2) => {
759
+ const _0x32cbe3 = _0x12c17d, _0x73ed6e = _0x301a2, _0x20196b = {};
760
+ _0x20196b[_0x32cbe3(245)] = "initialize", _0x20196b[_0x32cbe3(300)] = _0x73ed6e(291), _0x20196b["Utgwz"] = "event: close\ndata: \n\n";
761
+ const _0x1a9de1 = _0x20196b, _0x281e12 = () => {
762
+ const _0xa79966 = _0x73ed6e, _0x560db8 = _0x32cbe3, _0x9b41bf = {};
763
+ _0x9b41bf["listChanged"] = !![];
764
+ const _0x1627d8 = {};
765
+ _0x1627d8["subscribe"] = !![], _0x1627d8[_0xa79966(338)] = !![];
766
+ const _0x27bff6 = {};
767
+ _0x27bff6[_0xa79966(338)] = !![];
768
+ const _0x46e367 = {};
769
+ _0x46e367[_0x560db8(328)] = _0x9b41bf, _0x46e367["resources"] = _0x1627d8, _0x46e367["tools"] = _0x27bff6, _0x46e367[_0x560db8(231)] = {}, _0x46e367["logging"] = {};
770
+ const _0x1e53c8 = _0x46e367, _0x4d5661 = {};
771
+ _0x4d5661["name"] = _0xa79966(247), _0x4d5661[_0x560db8(301)] = _0x560db8(308), _0x1b6419[_0xa79966(265)]["set"](_0x1a9de1["PAfsa"], (_0xbc442c) => ({ "protocolVersion": _0xbc442c[_0x560db8(333)]["protocolVersion"], "capabilities": _0x1e53c8, "serverInfo": _0x4d5661 })), _0x1b6419[_0xa79966(336)][_0x560db8(253)](_0x1a9de1["yNhxA"], () => {
751
772
  });
752
- }, _0x52ab13 = () => {
753
- const _0x45f094 = _0x298da8, _0x3f0edf = _0x2d7938, _0x4b80bf = {};
754
- _0x4b80bf[_0x45f094(531)] = _0x3fc174["mlzRA"];
755
- const _0x22437b = _0x4b80bf;
756
- _0x3fc174[_0x45f094(524)](_0x978026, SSEServerTransport) && (_0x978026[_0x3f0edf(594)] = () => {
773
+ }, _0x2999f5 = () => {
774
+ const _0x4a667a = _0x32cbe3;
775
+ _0x55bdb2 instanceof SSEServerTransport && (_0x55bdb2[_0x4a667a(251)] = () => {
757
776
  var _a, _b;
758
- const _0x8028fb = _0x3f0edf, _0x577b4b = _0x3f0edf;
759
- return (_a = _0x978026["_sseResponse"]) == null ? void 0 : _a[_0x8028fb(546)](_0x22437b["bonKW"])["end"](), _0x978026[_0x577b4b(464)] = void 0, (_b = _0x978026["onclose"]) == null ? void 0 : _b.call(_0x978026), Promise[_0x8028fb(582)]();
777
+ const _0x3e81d9 = _0x4a667a, _0x261d11 = _0x4a667a;
778
+ return (_a = _0x55bdb2["_sseResponse"]) == null ? void 0 : _a["write"](_0x1a9de1["Utgwz"])[_0x3e81d9(296)](), _0x55bdb2["_sseResponse"] = void 0, (_b = _0x55bdb2["onclose"]) == null ? void 0 : _b.call(_0x55bdb2), Promise[_0x261d11(288)]();
760
779
  });
761
- }, _0x18fd4b = {};
762
- _0x18fd4b["beforeInit"] = _0x4df33a, _0x18fd4b[_0x2d7938(525)] = _0x52ab13, _0x3fc174[_0x2d7938(528)](initClientHandler, _0x7c249, _0x18fd4b);
780
+ }, _0x1ad533 = {};
781
+ _0x1ad533["beforeInit"] = _0x281e12, _0x1ad533["afterInit"] = _0x2999f5, initClientHandler(_0x1b6419, _0x1ad533);
763
782
  };
764
783
  const useProxyHandles = () => {
765
- const _0x46ea31 = _0x5ef2b3, _0x2e1a8d = _0xba5988, _0x221f25 = { "alGar": function(_0x4bbf0f, _0x3c0a1c) {
766
- return _0x4bbf0f(_0x3c0a1c);
767
- }, "jlwsJ": "SSE", "agiqr": _0x46ea31(510), "Oqkqt": _0x46ea31(594), "NANjm": "mcp-sse-twin-client", "Idtbh": function(_0x2611c4, _0x3cfac7) {
768
- return _0x2611c4(_0x3cfac7);
769
- }, "LVmNq": function(_0x3e17bb, _0x144b77, _0x39ad00) {
770
- return _0x3e17bb(_0x144b77, _0x39ad00);
771
- }, "UIPMh": function(_0x233874, _0x2035d7) {
772
- return _0x233874(_0x2035d7);
773
- }, "Dwtny": _0x46ea31(463), "AtduA": "1.0.0", "eHFMQ": "No transport found", "oHhSC": function(_0x2b48b2, _0x1b177e, _0x11f08d) {
774
- return _0x2b48b2(_0x1b177e, _0x11f08d);
775
- }, "GHsdz": function(_0x4bdb2d, _0xdc597b) {
776
- return _0x4bdb2d === _0xdc597b;
777
- }, "JGpQa": "GET", "iMpqN": _0x46ea31(530), "HjRbb": function(_0x209fb5, _0x2c257e) {
778
- return _0x209fb5(_0x2c257e);
779
- }, "xTmPn": "GET, POST, DELETE", "sQKbx": "2.0", "yTSaG": _0x2e1a8d(491), "cyRCJ": _0x2e1a8d(512), "AooGk": "text/event-stream", "fbAOS": function(_0x42bb93, _0x15b206) {
780
- return _0x42bb93 === _0x15b206;
781
- }, "CpGZm": function(_0x7f7ff) {
782
- return _0x7f7ff();
783
- }, "tTEpX": "Invalid or missing session ID", "tFxkc": function(_0x5852be, _0x201b41) {
784
- return _0x5852be(_0x201b41);
785
- }, "tLvAF": "StreamableHTTP", "NOdQz": _0x46ea31(460), "vGikC": "mcp-stream-twin-client", "WuneN": function(_0x1265b3, _0x558ad4) {
786
- return _0x1265b3(_0x558ad4);
787
- }, "xQTaf": "Bad Request: No valid session ID provided", "iJYRJ": "Internal server error", "wmAfK": function(_0x38357c, _0x960bc) {
788
- return _0x38357c === _0x960bc;
789
- }, "lOUtF": "POST", "UhSLE": function(_0xbfe3f7, _0x8e0f64, _0x329a37) {
790
- return _0xbfe3f7(_0x8e0f64, _0x329a37);
791
- }, "FWtdw": function(_0x162b72, _0x350585) {
792
- return _0x162b72 === _0x350585;
793
- }, "gSfFs": "mcp-stream-proxy-server", "JtlEB": function(_0x14ab37, _0x769a56) {
794
- return _0x14ab37(_0x769a56);
795
- }, "MpuHH": function(_0x5972b0, _0x32e951, _0x2f0712) {
796
- return _0x5972b0(_0x32e951, _0x2f0712);
797
- }, "IPRWX": _0x46ea31(583), "QICRf": function(_0x393c99, _0x38328d) {
798
- return _0x393c99 + _0x38328d;
799
- }, "BDrVA": _0x46ea31(461), "WqgNn": _0x2e1a8d(545), "JbNzm": function(_0x16e03e, _0x53d5c9, _0x4ea158) {
800
- return _0x16e03e(_0x53d5c9, _0x4ea158);
801
- }, "uuogb": function(_0x3e6a27, _0x45c05c) {
802
- return _0x3e6a27 !== _0x45c05c;
803
- }, "ErRDQ": _0x2e1a8d(554) }, _0x49e752 = {}, _0x284689 = {}, _0x4c5c52 = {}, _0xa3a621 = {};
804
- let _0xa96593 = () => {
784
+ const _0x2291e6 = _0x12c17d, _0x5639bd = _0x12c17d, _0x5e1a71 = { "CuDLn": _0x2291e6(335), "CZTzM": "close", "WGubu": _0x2291e6(297), "HwRPG": "1.0.0", "kggHK": function(_0x34e87c, _0x1e2fab) {
785
+ return _0x34e87c(_0x1e2fab);
786
+ }, "GNsDw": function(_0x534a1e, _0x95cd27, _0x37e86a) {
787
+ return _0x534a1e(_0x95cd27, _0x37e86a);
788
+ }, "fUOrr": "mcp-sse-proxy-server", "azSTD": function(_0x129fd2, _0x1db0c1) {
789
+ return _0x129fd2 === _0x1db0c1;
790
+ }, "BuMZz": _0x2291e6(260), "zlCns": _0x5639bd(343), "NhddI": function(_0x5650b0, _0x23bfbe, _0x20a4a7) {
791
+ return _0x5650b0(_0x23bfbe, _0x20a4a7);
792
+ }, "OKiBt": "GET, POST, DELETE", "crLLx": "2.0", "WcQJb": _0x5639bd(294), "uahNm": "mcp-session-id", "gptGR": function(_0x452e85, _0x1d4ba5) {
793
+ return _0x452e85 === _0x1d4ba5;
794
+ }, "PlIPJ": _0x2291e6(242), "WjQFk": function(_0x11d4d9, _0x5d7f50) {
795
+ return _0x11d4d9 === _0x5d7f50;
796
+ }, "sSlkJ": function(_0x2e7774) {
797
+ return _0x2e7774();
798
+ }, "fTIRa": function(_0x47b85d, _0x2bb400) {
799
+ return _0x47b85d(_0x2bb400);
800
+ }, "bcUJB": "StreamableHTTP", "fEkjP": _0x2291e6(214), "ZqEaq": _0x2291e6(320), "KFXQU": function(_0x28aa72, _0x328ad1, _0x24276b) {
801
+ return _0x28aa72(_0x328ad1, _0x24276b);
802
+ }, "WliyP": function(_0x6e09e0, _0x311406) {
803
+ return _0x6e09e0(_0x311406);
804
+ }, "tcQpN": _0x2291e6(272), "yCUbW": function(_0x4d5b81, _0x53d7f6, _0x4823f3) {
805
+ return _0x4d5b81(_0x53d7f6, _0x4823f3);
806
+ }, "kzfhr": function(_0x2dce06, _0x3687b9) {
807
+ return _0x2dce06 === _0x3687b9;
808
+ }, "muQDP": function(_0x5a9f29, _0x16b2f2, _0x220bd4) {
809
+ return _0x5a9f29(_0x16b2f2, _0x220bd4);
810
+ }, "ImPVm": "mcp-stream-proxy-server", "cvMUn": function(_0x46d3e0, _0x2c310e, _0x2684e6) {
811
+ return _0x46d3e0(_0x2c310e, _0x2684e6);
812
+ }, "BGZnq": _0x2291e6(337), "gtTgN": function(_0x4e9af7, _0x548bef) {
813
+ return _0x4e9af7(_0x548bef);
814
+ }, "HWXAa": function(_0x57649b, _0x246eb9) {
815
+ return _0x57649b + _0x246eb9;
816
+ }, "gweEn": _0x2291e6(239), "TmlVG": "WebSocket", "PYRrS": "fulfilled" }, _0x243b2b = {}, _0xc92a32 = {}, _0x1a9767 = {}, _0x26b49a = {};
817
+ let _0x11fd3e = () => {
805
818
  };
806
- const _0x3fa284 = (_0x2369bc) => {
807
- _0xa96593 = _0x2369bc;
819
+ const _0x11e558 = (_0x573be7) => {
820
+ _0x11fd3e = _0x573be7;
808
821
  };
809
- let _0x43f5b8 = () => {
822
+ let _0x4f384e = () => {
810
823
  };
811
- const _0x56cd0a = (_0x46766e) => {
812
- _0x43f5b8 = _0x46766e;
813
- }, _0x2364bd = async (_0x310dfa, _0xc5346c, _0x5ddf26) => {
814
- const _0x28c90e = _0x46ea31, _0x1622d2 = _0x2e1a8d, _0x371d62 = { "LnkSG": function(_0x480c8a, _0x1892a0) {
815
- return _0x221f25["alGar"](_0x480c8a, _0x1892a0);
816
- }, "hAiCT": _0x221f25["jlwsJ"] }, _0x5e557e = new SSEServerTransport(_0x5ddf26, _0xc5346c), _0x46af28 = _0x310dfa["headers"][_0x221f25["agiqr"]];
817
- _0x46af28 && (_0x5e557e[_0x28c90e(564)] = _0x46af28);
818
- const _0xc7d5bf = _0x5e557e["sessionId"];
819
- _0x49e752[_0xc7d5bf] = _0x5e557e, _0x310dfa["on"](_0x221f25[_0x28c90e(549)], () => {
820
- const _0x5288fa = _0x28c90e;
821
- _0x5e557e[_0x5288fa(594)](), delete _0x49e752[_0xc7d5bf], delete _0x284689[_0xc7d5bf];
824
+ const _0xb1dfd7 = (_0x44f0cc) => {
825
+ _0x4f384e = _0x44f0cc;
826
+ }, _0x539ed2 = async (_0x58908c, _0x3c813b, _0x374bfc) => {
827
+ const _0xcafd25 = _0x5639bd, _0x4ac3b3 = _0x2291e6, _0x553d45 = new SSEServerTransport(_0x374bfc, _0x3c813b), _0x2207df = _0x58908c["headers"]["sse-session-id"];
828
+ _0x2207df && (_0x553d45["_sessionId"] = _0x2207df);
829
+ const _0x2cf749 = _0x553d45["sessionId"];
830
+ _0x243b2b[_0x2cf749] = _0x553d45, _0x58908c["on"](_0x5e1a71[_0xcafd25(274)], () => {
831
+ _0x553d45["close"](), delete _0x243b2b[_0x2cf749], delete _0xc92a32[_0x2cf749];
822
832
  });
823
- const _0x504c52 = {};
824
- _0x504c52["listChanged"] = !![];
825
- const _0x1d83ae = {};
826
- _0x1d83ae["subscribe"] = !![], _0x1d83ae["listChanged"] = !![];
827
- const _0x494b36 = {};
828
- _0x494b36[_0x28c90e(476)] = !![];
829
- const _0x4b820a = {};
830
- _0x4b820a[_0x28c90e(476)] = !![];
831
- const _0x4ef2ba = {};
832
- _0x4ef2ba[_0x1622d2(521)] = _0x504c52, _0x4ef2ba["resources"] = _0x1d83ae, _0x4ef2ba[_0x28c90e(519)] = _0x494b36, _0x4ef2ba["completions"] = {}, _0x4ef2ba[_0x1622d2(555)] = {}, _0x4ef2ba["roots"] = _0x4b820a, _0x4ef2ba["sampling"] = {}, _0x4ef2ba["elicitation"] = {};
833
- const _0x28fff2 = _0x4ef2ba, _0x4f166b = {};
834
- _0x4f166b["name"] = _0x221f25[_0x1622d2(505)], _0x4f166b["version"] = "1.0.0";
835
- const _0x23ab06 = {};
836
- _0x23ab06["capabilities"] = _0x28fff2;
837
- const _0x4ee7aa = new Client(_0x4f166b, _0x23ab06);
838
- _0x284689[_0xc7d5bf] = { "client": _0x4ee7aa, "transport": _0x5e557e, "user": _0x310dfa[_0x28c90e(493)] || _0x310dfa["user"], "device": _0x221f25["Idtbh"](getDeviceInfo, _0x310dfa), "type": _0x221f25[_0x28c90e(517)] }, _0x5e557e["onerror"] = (_0x44d348) => {
839
- _0x371d62["LnkSG"](_0xa96593, { "client": _0x4ee7aa, "transport": _0x5e557e, "error": _0x44d348, "type": _0x371d62["hAiCT"] });
840
- }, _0x221f25[_0x28c90e(574)](initTwinClientHandler, _0x4ee7aa, _0x5e557e), await _0x4ee7aa["connect"](_0x5e557e);
841
- }, _0x4ff2b8 = async (_0x529750, _0xbf55dc, _0x3c2339) => {
833
+ const _0x5e8967 = {};
834
+ _0x5e8967[_0x4ac3b3(338)] = !![];
835
+ const _0x16e855 = {};
836
+ _0x16e855["subscribe"] = !![], _0x16e855[_0x4ac3b3(338)] = !![];
837
+ const _0x1b910e = {};
838
+ _0x1b910e[_0x4ac3b3(338)] = !![];
839
+ const _0x406a51 = {};
840
+ _0x406a51["listChanged"] = !![];
841
+ const _0x169d71 = {};
842
+ _0x169d71[_0x4ac3b3(328)] = _0x5e8967, _0x169d71["resources"] = _0x16e855, _0x169d71["tools"] = _0x1b910e, _0x169d71["completions"] = {}, _0x169d71["logging"] = {}, _0x169d71["roots"] = _0x406a51, _0x169d71[_0x4ac3b3(312)] = {}, _0x169d71["elicitation"] = {};
843
+ const _0x553488 = _0x169d71, _0x382087 = {};
844
+ _0x382087[_0x4ac3b3(238)] = _0x5e1a71["WGubu"], _0x382087[_0xcafd25(301)] = _0x5e1a71[_0x4ac3b3(213)];
845
+ const _0x31c28c = {};
846
+ _0x31c28c[_0x4ac3b3(317)] = _0x553488;
847
+ const _0x4d3d4b = new Client(_0x382087, _0x31c28c);
848
+ _0xc92a32[_0x2cf749] = { "client": _0x4d3d4b, "transport": _0x553d45, "user": _0x58908c[_0xcafd25(226)] || _0x58908c[_0x4ac3b3(310)], "device": _0x5e1a71[_0xcafd25(304)](getDeviceInfo, _0x58908c), "type": _0x5e1a71[_0xcafd25(254)] }, _0x553d45[_0xcafd25(278)] = (_0x23410b) => {
849
+ const _0x5327cb = _0xcafd25, _0x5968dd = {};
850
+ _0x5968dd["client"] = _0x4d3d4b, _0x5968dd[_0x5327cb(284)] = _0x553d45, _0x5968dd[_0x5327cb(275)] = _0x23410b, _0x5968dd["type"] = _0x5e1a71["CuDLn"], _0x11fd3e(_0x5968dd);
851
+ }, _0x5e1a71["GNsDw"](initTwinClientHandler, _0x4d3d4b, _0x553d45), await _0x4d3d4b[_0xcafd25(203)](_0x553d45);
852
+ }, _0x1e95b0 = async (_0x426fc1, _0x53614b, _0x12c7cf) => {
842
853
  var _a;
843
- const _0x1c732b = _0x2e1a8d, _0x952030 = _0x46ea31, _0x12666f = _0x529750["query"]["sessionId"], _0x13abc1 = (_a = _0x284689[_0x12666f]) == null ? void 0 : _a["client"];
844
- if (!_0x13abc1) {
845
- _0xbf55dc[_0x1c732b(550)](-327 * -14 + -6245 + 2067)[_0x952030(569)]("No client found for session ID " + _0x12666f);
854
+ const _0x4892fb = _0x2291e6, _0x2937be = _0x5639bd, _0x24d812 = _0x426fc1["query"][_0x4892fb(207)], _0x56fffd = (_a = _0xc92a32[_0x24d812]) == null ? void 0 : _a["client"];
855
+ if (!_0x56fffd) {
856
+ _0x53614b["status"](-11 * 505 + -9540 + 1 * 15495)[_0x4892fb(262)]("No client found for session ID " + _0x24d812);
846
857
  return;
847
858
  }
848
- const _0x537b12 = new SSEServerTransport(_0x3c2339, _0xbf55dc), _0x186622 = _0x537b12["sessionId"];
849
- _0x4c5c52[_0x186622] = _0x537b12, _0x529750["on"](_0x221f25["Oqkqt"], () => {
850
- _0x537b12["close"](), delete _0x4c5c52[_0x186622], delete _0xa3a621[_0x186622];
859
+ const _0x17bdb4 = new SSEServerTransport(_0x12c7cf, _0x53614b), _0x5513f9 = _0x17bdb4["sessionId"];
860
+ _0x1a9767[_0x5513f9] = _0x17bdb4, _0x426fc1["on"](_0x5e1a71["CZTzM"], () => {
861
+ _0x17bdb4["close"](), delete _0x1a9767[_0x5513f9], delete _0x26b49a[_0x5513f9];
851
862
  });
852
- const _0x29eaf6 = {};
853
- _0x29eaf6["listChanged"] = !![];
854
- const _0x570351 = {};
855
- _0x570351["subscribe"] = !![], _0x570351[_0x952030(476)] = !![];
856
- const _0x4917cd = {};
857
- _0x4917cd[_0x1c732b(476)] = !![];
858
- const _0x2faea2 = {};
859
- _0x2faea2[_0x1c732b(521)] = _0x29eaf6, _0x2faea2[_0x952030(589)] = _0x570351, _0x2faea2["tools"] = _0x4917cd, _0x2faea2[_0x1c732b(507)] = {}, _0x2faea2[_0x1c732b(555)] = {};
860
- const _0x438639 = _0x2faea2, _0x36c0cc = {};
861
- _0x36c0cc["name"] = _0x221f25[_0x1c732b(567)], _0x36c0cc["version"] = _0x221f25[_0x1c732b(584)];
862
- const _0x2f1b96 = {};
863
- _0x2f1b96[_0x952030(537)] = _0x438639;
864
- const _0x388b75 = new McpServer(_0x36c0cc, _0x2f1b96);
865
- _0xa3a621[_0x186622] = { "mcpServer": _0x388b75, "transport": _0x537b12, "client": _0x12666f, "user": _0x529750["auth"] || _0x529750["user"], "device": getDeviceInfo(_0x529750), "type": _0x221f25[_0x1c732b(517)] }, _0x537b12[_0x952030(469)] = (_0x48f1e) => {
866
- const _0x38954d = _0x1c732b;
867
- _0x221f25["UIPMh"](_0x43f5b8, { "mcpServer": _0x388b75, "transport": _0x537b12, "client": _0x12666f, "error": _0x48f1e, "type": _0x221f25[_0x38954d(517)] });
868
- }, await _0x388b75["connect"](_0x537b12), _0x221f25[_0x952030(574)](forwardProxyServer, _0x388b75["server"], _0x13abc1);
869
- }, _0x33b2f4 = async (_0x375eef, _0x47f1b6) => {
870
- const _0x5cd0c4 = _0x2e1a8d, _0x347660 = _0x375eef[_0x5cd0c4(538)]["sessionId"], _0x1d60cf = _0x49e752[_0x347660] || _0x4c5c52[_0x347660];
871
- _0x1d60cf ? await _0x1d60cf["handlePostMessage"](_0x375eef, _0x47f1b6) : _0x47f1b6["status"](-7037 + -8997 * -1 + -1560)["send"](_0x221f25["eHFMQ"]);
872
- }, _0x129b7d = async (_0x46bee1, _0x410a43) => {
873
- const _0x10b017 = _0x2e1a8d, _0x2c79b6 = _0x2e1a8d;
874
- if (_0x46bee1[_0x10b017(586)] === _0x2c79b6(465)) await _0x221f25["oHhSC"](_0x57b58e, _0x46bee1, _0x410a43);
875
- else _0x221f25["GHsdz"](_0x46bee1[_0x2c79b6(586)], _0x221f25["JGpQa"]) || _0x221f25[_0x2c79b6(588)](_0x46bee1[_0x2c79b6(586)], _0x221f25["iMpqN"]) ? await _0x221f25["oHhSC"](_0x1d7800, _0x46bee1, _0x410a43) : await _0x221f25["HjRbb"](_0x11d555, _0x410a43);
876
- }, _0x11d555 = async (_0x186d82) => {
877
- const _0x2b5a38 = _0x46ea31, _0x33a484 = {};
878
- _0x33a484[_0x2b5a38(587)] = _0x221f25[_0x2b5a38(585)];
879
- const _0x306e74 = {};
880
- _0x306e74[_0x2b5a38(590)] = _0x221f25["sQKbx"], _0x306e74[_0x2b5a38(482)] = {}, _0x306e74["id"] = null, _0x306e74[_0x2b5a38(482)]["code"] = -32e3, _0x306e74[_0x2b5a38(482)][_0x2b5a38(472)] = _0x221f25["yTSaG"], _0x186d82["writeHead"](-1912 + -7498 + -5 * -1963, _0x33a484)[_0x2b5a38(487)](JSON["stringify"](_0x306e74));
881
- }, _0x1d7800 = async (_0x4620a0, _0x3c3fa2) => {
863
+ const _0x19440e = {};
864
+ _0x19440e["listChanged"] = !![];
865
+ const _0xe2c047 = {};
866
+ _0xe2c047[_0x2937be(249)] = !![], _0xe2c047["listChanged"] = !![];
867
+ const _0x339606 = {};
868
+ _0x339606[_0x4892fb(338)] = !![];
869
+ const _0x240e28 = {};
870
+ _0x240e28["prompts"] = _0x19440e, _0x240e28[_0x4892fb(340)] = _0xe2c047, _0x240e28["tools"] = _0x339606, _0x240e28["completions"] = {}, _0x240e28[_0x2937be(241)] = {};
871
+ const _0x1cabf9 = _0x240e28, _0x3cc7c9 = {};
872
+ _0x3cc7c9["name"] = _0x5e1a71["fUOrr"], _0x3cc7c9["version"] = _0x5e1a71["HwRPG"];
873
+ const _0x512484 = {};
874
+ _0x512484["capabilities"] = _0x1cabf9;
875
+ const _0x41a52f = new McpServer(_0x3cc7c9, _0x512484);
876
+ _0x26b49a[_0x5513f9] = { "mcpServer": _0x41a52f, "transport": _0x17bdb4, "client": _0x24d812, "user": _0x426fc1["auth"] || _0x426fc1[_0x4892fb(310)], "device": getDeviceInfo(_0x426fc1), "type": _0x5e1a71[_0x2937be(254)] }, _0x17bdb4["onerror"] = (_0x59da57) => {
877
+ const _0x4368d6 = _0x2937be, _0x1ca485 = _0x2937be, _0x5eadf2 = {};
878
+ _0x5eadf2[_0x4368d6(321)] = _0x41a52f, _0x5eadf2["transport"] = _0x17bdb4, _0x5eadf2[_0x4368d6(269)] = _0x24d812, _0x5eadf2[_0x1ca485(275)] = _0x59da57, _0x5eadf2[_0x4368d6(244)] = _0x4368d6(335), _0x4f384e(_0x5eadf2);
879
+ }, await _0x41a52f[_0x2937be(203)](_0x17bdb4), _0x5e1a71["GNsDw"](forwardProxyServer, _0x41a52f["server"], _0x56fffd);
880
+ }, _0x1a3e04 = async (_0x12f4e9, _0x5904a5) => {
881
+ const _0x4d4fd4 = _0x5639bd, _0x143856 = _0x2291e6, _0x2dce0c = _0x12f4e9[_0x4d4fd4(289)]["sessionId"], _0x43de07 = _0x243b2b[_0x2dce0c] || _0x1a9767[_0x2dce0c];
882
+ _0x43de07 ? await _0x43de07[_0x143856(305)](_0x12f4e9, _0x5904a5) : _0x5904a5["status"](2269 + 1 * -893 + -8 * 122)[_0x4d4fd4(262)](_0x143856(309));
883
+ }, _0x1b46da = async (_0x3ca457, _0x31fa6b) => {
884
+ const _0x5c0afa = _0x5639bd, _0xbbbeee = _0x5639bd;
885
+ if (_0x5e1a71[_0x5c0afa(259)](_0x3ca457[_0xbbbeee(341)], "POST")) await _0x472a74(_0x3ca457, _0x31fa6b);
886
+ else _0x5e1a71["azSTD"](_0x3ca457[_0xbbbeee(341)], _0x5e1a71["BuMZz"]) || _0x5e1a71["azSTD"](_0x3ca457[_0xbbbeee(341)], _0x5e1a71[_0xbbbeee(219)]) ? await _0x5e1a71[_0xbbbeee(282)](_0x12bd53, _0x3ca457, _0x31fa6b) : await _0x5e1a71["kggHK"](_0x388552, _0x31fa6b);
887
+ }, _0x388552 = async (_0xdbb902) => {
888
+ const _0x3c5dfb = _0x5639bd, _0x58b751 = _0x2291e6, _0x1a90dd = {};
889
+ _0x1a90dd[_0x3c5dfb(268)] = _0x5e1a71["OKiBt"];
890
+ const _0x3b4de6 = {};
891
+ _0x3b4de6["jsonrpc"] = _0x5e1a71["crLLx"], _0x3b4de6[_0x58b751(275)] = {}, _0x3b4de6["id"] = null, _0x3b4de6[_0x58b751(275)]["code"] = -32e3, _0x3b4de6[_0x58b751(275)]["message"] = _0x5e1a71["WcQJb"], _0xdbb902["writeHead"](-64 * 94 + 1370 + 5051, _0x1a90dd)["end"](JSON[_0x3c5dfb(234)](_0x3b4de6));
892
+ }, _0x12bd53 = async (_0x459e63, _0x3514b3) => {
882
893
  var _a;
883
- const _0x39bb39 = _0x46ea31, _0x4c9c1a = _0x2e1a8d, _0x13217b = _0x4620a0[_0x39bb39(579)][_0x221f25[_0x39bb39(523)]], _0x32a3c1 = _0x49e752[_0x13217b];
884
- if (_0x32a3c1) {
885
- await _0x32a3c1[_0x39bb39(494)](_0x4620a0, _0x3c3fa2);
886
- const _0x28e7ef = () => {
887
- delete _0x49e752[_0x13217b], delete _0x284689[_0x13217b];
894
+ const _0x13b891 = _0x5639bd, _0x33ea02 = _0x2291e6, _0x23709e = _0x459e63["headers"][_0x5e1a71["uahNm"]], _0x18372e = _0x243b2b[_0x23709e];
895
+ if (_0x18372e) {
896
+ await _0x18372e[_0x13b891(205)](_0x459e63, _0x3514b3);
897
+ const _0x26bc37 = () => {
898
+ delete _0x243b2b[_0x23709e], delete _0xc92a32[_0x23709e];
888
899
  };
889
- if (_0x221f25[_0x4c9c1a(588)](_0x4620a0["method"], _0x221f25[_0x39bb39(575)]) && ((_a = _0x4620a0[_0x4c9c1a(579)][_0x39bb39(484)]) == null ? void 0 : _a[_0x39bb39(562)](_0x221f25["AooGk"]))) _0x4620a0["once"](_0x221f25[_0x39bb39(549)], _0x28e7ef);
890
- else _0x221f25["fbAOS"](_0x4620a0[_0x39bb39(586)], _0x221f25["iMpqN"]) && _0x221f25["CpGZm"](_0x28e7ef);
891
- } else _0x3c3fa2["status"](-576 * -16 + -4215 + -4601)[_0x39bb39(569)](_0x221f25[_0x39bb39(488)]);
892
- }, _0x57b58e = async (_0x3fa9b3, _0x554417) => {
893
- const _0x5aa50e = _0x2e1a8d, _0x42349d = _0x46ea31;
900
+ if (_0x5e1a71["gptGR"](_0x459e63[_0x13b891(341)], _0x5e1a71[_0x33ea02(216)]) && ((_a = _0x459e63["headers"]["accept"]) == null ? void 0 : _a["includes"](_0x5e1a71[_0x33ea02(246)]))) _0x459e63[_0x13b891(273)](_0x5e1a71[_0x13b891(274)], _0x26bc37);
901
+ else _0x5e1a71[_0x33ea02(208)](_0x459e63[_0x13b891(341)], _0x5e1a71["zlCns"]) && _0x5e1a71["sSlkJ"](_0x26bc37);
902
+ } else _0x3514b3["status"](-550 + 9444 + -62 * 137)["send"]("Invalid or missing session ID");
903
+ }, _0x472a74 = async (_0x2a3ece, _0x5c8bcf) => {
904
+ const _0x3f5b52 = _0x5639bd, _0x5c94db = _0x5639bd;
894
905
  try {
895
- const _0x5482e1 = _0x3fa9b3[_0x5aa50e(579)][_0x221f25["cyRCJ"]], _0x13a5e3 = _0x3fa9b3["headers"][_0x221f25["NOdQz"]];
896
- let _0x3cb5b7 = _0x49e752[_0x5482e1];
897
- if (_0x3cb5b7) await _0x3cb5b7[_0x42349d(494)](_0x3fa9b3, _0x554417, _0x3fa9b3["body"]);
906
+ const _0x52bc9a = _0x2a3ece["headers"]["mcp-session-id"], _0xc7383c = _0x2a3ece[_0x3f5b52(331)][_0x5e1a71[_0x5c94db(210)]];
907
+ let _0x167e59 = _0x243b2b[_0x52bc9a];
908
+ if (_0x167e59) await _0x167e59["handleRequest"](_0x2a3ece, _0x5c8bcf, _0x2a3ece["body"]);
898
909
  else {
899
- if (!_0x5482e1 && _0x221f25[_0x5aa50e(565)](isInitializeRequest, _0x3fa9b3["body"])) {
900
- const _0x88d72b = {};
901
- _0x88d72b["sessionIdGenerator"] = () => _0x13a5e3, _0x3cb5b7 = new StreamableHTTPServerTransport(_0x88d72b);
902
- const _0x5298e4 = {};
903
- _0x5298e4[_0x42349d(476)] = !![];
904
- const _0x4508c1 = {};
905
- _0x4508c1[_0x42349d(473)] = !![], _0x4508c1["listChanged"] = !![];
906
- const _0x40d451 = {};
907
- _0x40d451["listChanged"] = !![];
908
- const _0x17715a = {};
909
- _0x17715a["listChanged"] = !![];
910
- const _0x22993c = {};
911
- _0x22993c[_0x5aa50e(521)] = _0x5298e4, _0x22993c["resources"] = _0x4508c1, _0x22993c["tools"] = _0x40d451, _0x22993c["completions"] = {}, _0x22993c[_0x42349d(555)] = {}, _0x22993c[_0x5aa50e(591)] = _0x17715a, _0x22993c[_0x42349d(526)] = {}, _0x22993c[_0x42349d(566)] = {};
912
- const _0x5db47b = _0x22993c, _0x210888 = {};
913
- _0x210888["name"] = _0x221f25["vGikC"], _0x210888["version"] = _0x221f25["AtduA"];
914
- const _0xf32c2a = {};
915
- _0xf32c2a["capabilities"] = _0x5db47b;
916
- const _0x5092c2 = new Client(_0x210888, _0xf32c2a);
917
- _0x221f25["LVmNq"](initTwinClientHandler, _0x5092c2, _0x3cb5b7), _0x284689[_0x13a5e3] = { "client": _0x5092c2, "transport": _0x3cb5b7, "user": _0x3fa9b3[_0x5aa50e(493)] || _0x3fa9b3["user"], "device": _0x221f25[_0x42349d(552)](getDeviceInfo, _0x3fa9b3), "type": _0x221f25["tLvAF"] }, _0x49e752[_0x13a5e3] = _0x3cb5b7, _0x3cb5b7["sessionId"] = _0x13a5e3, _0x3cb5b7[_0x5aa50e(481)] = () => {
918
- const _0x224176 = _0x42349d, _0x3e7396 = _0x3cb5b7[_0x224176(545)];
919
- _0x3e7396 && _0x49e752[_0x3e7396] && (delete _0x49e752[_0x3e7396], delete _0x284689[_0x3e7396]);
920
- }, _0x3cb5b7[_0x42349d(469)] = (_0x5e35ec) => {
921
- const _0x16cbea = _0x42349d;
922
- _0x221f25[_0x16cbea(551)](_0xa96593, { "client": _0x5092c2, "transport": _0x3cb5b7, "error": _0x5e35ec, "type": _0x221f25["tLvAF"] });
923
- }, await _0x5092c2[_0x42349d(485)](_0x3cb5b7), await _0x3cb5b7["handleRequest"](_0x3fa9b3, _0x554417, _0x3fa9b3["body"]);
910
+ if (!_0x52bc9a && _0x5e1a71[_0x5c94db(304)](isInitializeRequest, _0x2a3ece[_0x3f5b52(248)])) {
911
+ const _0x455005 = {};
912
+ _0x455005["sessionIdGenerator"] = () => _0xc7383c, _0x167e59 = new StreamableHTTPServerTransport(_0x455005);
913
+ const _0x18772f = {};
914
+ _0x18772f["listChanged"] = !![];
915
+ const _0x693949 = {};
916
+ _0x693949["subscribe"] = !![], _0x693949["listChanged"] = !![];
917
+ const _0x13132b = {};
918
+ _0x13132b["listChanged"] = !![];
919
+ const _0x244ff5 = {};
920
+ _0x244ff5["listChanged"] = !![];
921
+ const _0x27a6f3 = {};
922
+ _0x27a6f3[_0x5c94db(328)] = _0x18772f, _0x27a6f3["resources"] = _0x693949, _0x27a6f3[_0x3f5b52(267)] = _0x13132b, _0x27a6f3["completions"] = {}, _0x27a6f3[_0x5c94db(241)] = {}, _0x27a6f3[_0x3f5b52(285)] = _0x244ff5, _0x27a6f3["sampling"] = {}, _0x27a6f3["elicitation"] = {};
923
+ const _0x13791b = _0x27a6f3, _0x591aee = {};
924
+ _0x591aee["name"] = _0x5e1a71["ZqEaq"], _0x591aee[_0x5c94db(301)] = _0x5e1a71["HwRPG"];
925
+ const _0x54ff00 = {};
926
+ _0x54ff00[_0x3f5b52(317)] = _0x13791b;
927
+ const _0x56bd0b = new Client(_0x591aee, _0x54ff00);
928
+ _0x5e1a71[_0x5c94db(221)](initTwinClientHandler, _0x56bd0b, _0x167e59), _0xc92a32[_0xc7383c] = { "client": _0x56bd0b, "transport": _0x167e59, "user": _0x2a3ece["auth"] || _0x2a3ece["user"], "device": _0x5e1a71[_0x3f5b52(206)](getDeviceInfo, _0x2a3ece), "type": _0x5e1a71["bcUJB"] }, _0x243b2b[_0xc7383c] = _0x167e59, _0x167e59[_0x3f5b52(252)] ? _0x167e59[_0x5c94db(252)][_0x5c94db(207)] = _0xc7383c : _0x167e59[_0x5c94db(207)] = _0xc7383c, _0x167e59[_0x3f5b52(314)] = () => {
929
+ const _0x565331 = _0x167e59["sessionId"];
930
+ _0x565331 && _0x243b2b[_0x565331] && (delete _0x243b2b[_0x565331], delete _0xc92a32[_0x565331]);
931
+ }, _0x167e59[_0x3f5b52(278)] = (_0x45b867) => {
932
+ const _0x2f910f = _0x5c94db;
933
+ _0x5e1a71[_0x2f910f(303)](_0x11fd3e, { "client": _0x56bd0b, "transport": _0x167e59, "error": _0x45b867, "type": _0x5e1a71["bcUJB"] });
934
+ }, await _0x56bd0b["connect"](_0x167e59), await _0x167e59[_0x3f5b52(205)](_0x2a3ece, _0x5c8bcf, _0x2a3ece["body"]);
924
935
  } else {
925
- const _0x2bd9e4 = {};
926
- _0x2bd9e4["jsonrpc"] = _0x221f25["sQKbx"], _0x2bd9e4[_0x42349d(482)] = {}, _0x2bd9e4["id"] = null, _0x2bd9e4[_0x42349d(482)][_0x42349d(529)] = -(10380 * 4 + 1813 * 1 + -11333), _0x2bd9e4[_0x42349d(482)]["message"] = _0x221f25[_0x42349d(483)], _0x554417["status"](-2991 + -8267 + -3 * -3886)["json"](_0x2bd9e4);
936
+ const _0x3cca99 = {};
937
+ _0x3cca99[_0x5c94db(225)] = _0x5e1a71["crLLx"], _0x3cca99[_0x3f5b52(275)] = {}, _0x3cca99["id"] = null, _0x3cca99[_0x3f5b52(275)][_0x5c94db(202)] = -(-7746 + 5844 + 33902), _0x3cca99[_0x3f5b52(275)]["message"] = _0x5e1a71[_0x3f5b52(279)], _0x5c8bcf["status"](-7 * 141 + -1 * -7513 + 6 * -1021)["json"](_0x3cca99);
927
938
  }
928
939
  }
929
940
  } catch {
930
- if (!_0x554417[_0x5aa50e(541)]) {
931
- const _0x17d908 = {};
932
- _0x17d908["code"] = -32603, _0x17d908["message"] = _0x221f25[_0x42349d(501)];
933
- const _0x5dc08c = {};
934
- _0x5dc08c["jsonrpc"] = "2.0", _0x5dc08c["error"] = _0x17d908, _0x5dc08c["id"] = null, _0x554417[_0x42349d(550)](-2776 + -6511 + 9787)["json"](_0x5dc08c);
941
+ if (!_0x5c8bcf[_0x3f5b52(233)]) {
942
+ const _0xb3f9d6 = {};
943
+ _0xb3f9d6[_0x3f5b52(202)] = -32603, _0xb3f9d6["message"] = "Internal server error";
944
+ const _0x33a1bb = {};
945
+ _0x33a1bb["jsonrpc"] = _0x5e1a71["crLLx"], _0x33a1bb[_0x5c94db(275)] = _0xb3f9d6, _0x33a1bb["id"] = null, _0x5c8bcf["status"](-4982 + 5301 + 181)["json"](_0x33a1bb);
935
946
  }
936
947
  }
937
- }, _0x1d47c9 = async (_0x19b297, _0x1c73f8) => {
938
- const _0x482aab = _0x46ea31, _0xe4800 = _0x2e1a8d;
939
- if (_0x221f25[_0x482aab(580)](_0x19b297[_0xe4800(586)], _0x221f25["lOUtF"])) await _0x221f25[_0xe4800(470)](_0x172310, _0x19b297, _0x1c73f8);
940
- else _0x221f25["FWtdw"](_0x19b297["method"], _0x221f25["JGpQa"]) || _0x19b297["method"] === _0x221f25[_0xe4800(547)] ? await _0x55728b(_0x19b297, _0x1c73f8) : await _0x11d555(_0x1c73f8);
941
- }, _0x55728b = async (_0x4b6406, _0x3135f7) => {
942
- const _0x5ec4a9 = _0x46ea31, _0xf6cc95 = _0x46ea31, _0x5b9459 = _0x4b6406[_0x5ec4a9(579)][_0x221f25["cyRCJ"]], _0x2abe03 = _0x4c5c52[_0x5b9459];
943
- _0x2abe03 ? (await _0x2abe03["handleRequest"](_0x4b6406, _0x3135f7), _0x221f25[_0xf6cc95(592)](_0x4b6406[_0x5ec4a9(586)], _0x221f25["iMpqN"]) && (delete _0x4c5c52[_0x5b9459], delete _0xa3a621[_0x5b9459])) : _0x3135f7["status"](2594 * 1 + 9247 + 17 * -673)["send"](_0x221f25["tTEpX"]);
944
- }, _0x172310 = async (_0x40c907, _0x9d0172) => {
948
+ }, _0x3124bf = async (_0x377d8c, _0xa696f) => {
949
+ const _0x393684 = _0x2291e6, _0x1cecde = _0x2291e6;
950
+ if (_0x5e1a71[_0x393684(208)](_0x377d8c[_0x1cecde(341)], "POST")) await _0x5e1a71["yCUbW"](_0x3fd852, _0x377d8c, _0xa696f);
951
+ else _0x377d8c["method"] === _0x5e1a71[_0x393684(216)] || _0x5e1a71[_0x1cecde(271)](_0x377d8c["method"], "DELETE") ? await _0x5e1a71[_0x1cecde(307)](_0x2d8648, _0x377d8c, _0xa696f) : await _0x5e1a71[_0x1cecde(206)](_0x388552, _0xa696f);
952
+ }, _0x2d8648 = async (_0x2d1efa, _0x40f46f) => {
953
+ const _0x3fd616 = _0x5639bd, _0x56cd6d = _0x2d1efa["headers"][_0x5e1a71["uahNm"]], _0x2fb01b = _0x1a9767[_0x56cd6d];
954
+ _0x2fb01b ? (await _0x2fb01b["handleRequest"](_0x2d1efa, _0x40f46f), _0x5e1a71[_0x3fd616(259)](_0x2d1efa[_0x3fd616(341)], _0x5e1a71["zlCns"]) && (delete _0x1a9767[_0x56cd6d], delete _0x26b49a[_0x56cd6d])) : _0x40f46f[_0x3fd616(232)](-173 * -23 + -3 * -2749 + -54 * 219)["send"](_0x3fd616(306));
955
+ }, _0x3fd852 = async (_0x54c094, _0x304099) => {
945
956
  var _a;
946
- const _0x2475c3 = _0x2e1a8d, _0x565e5a = _0x46ea31;
957
+ const _0x698917 = _0x5639bd, _0x16c550 = _0x2291e6;
947
958
  try {
948
- const _0xb0d7b0 = _0x40c907["headers"][_0x2475c3(512)], _0x32bcc3 = _0x40c907["query"]["sessionId"];
949
- let _0x3dd4f3 = _0x4c5c52[_0xb0d7b0];
950
- if (_0x3dd4f3) await _0x3dd4f3[_0x2475c3(494)](_0x40c907, _0x9d0172, _0x40c907[_0x2475c3(534)]);
959
+ const _0x47b312 = _0x54c094["headers"][_0x5e1a71["uahNm"]], _0x89ef2d = _0x54c094[_0x698917(289)]["sessionId"];
960
+ let _0x2e94c1 = _0x1a9767[_0x47b312];
961
+ if (_0x2e94c1) await _0x2e94c1["handleRequest"](_0x54c094, _0x304099, _0x54c094["body"]);
951
962
  else {
952
- if (!_0xb0d7b0 && isInitializeRequest(_0x40c907[_0x2475c3(534)])) {
953
- const _0xe55654 = (_a = _0x284689[_0x32bcc3]) == null ? void 0 : _a[_0x2475c3(468)];
954
- if (!_0xe55654) {
955
- _0x9d0172[_0x565e5a(550)](8518 + -3 * -545 + -9753)["send"](_0x2475c3(490) + _0x32bcc3);
963
+ if (!_0x47b312 && _0x5e1a71["fTIRa"](isInitializeRequest, _0x54c094[_0x698917(248)])) {
964
+ const _0x5437a4 = (_a = _0xc92a32[_0x89ef2d]) == null ? void 0 : _a["client"];
965
+ if (!_0x5437a4) {
966
+ _0x304099["status"](-9140 + -7339 * -1 + 71 * 31)["send"]("No client found for session ID " + _0x89ef2d);
956
967
  return;
957
968
  }
958
- const _0x16876a = _0x325be1["randomUUID"](), _0x23e87f = {};
959
- _0x23e87f["sessionIdGenerator"] = () => _0x16876a, _0x3dd4f3 = new StreamableHTTPServerTransport(_0x23e87f);
960
- const _0x1531ac = {};
961
- _0x1531ac["listChanged"] = !![];
962
- const _0xc0f8c8 = {};
963
- _0xc0f8c8[_0x565e5a(473)] = !![], _0xc0f8c8[_0x2475c3(476)] = !![];
964
- const _0x1e5728 = {};
965
- _0x1e5728["listChanged"] = !![];
966
- const _0x54d024 = {};
967
- _0x54d024["prompts"] = _0x1531ac, _0x54d024["resources"] = _0xc0f8c8, _0x54d024["tools"] = _0x1e5728, _0x54d024["completions"] = {}, _0x54d024["logging"] = {};
968
- const _0x3ebb7a = _0x54d024, _0x21ae4a = {};
969
- _0x21ae4a[_0x565e5a(563)] = _0x221f25[_0x565e5a(544)], _0x21ae4a["version"] = _0x221f25["AtduA"];
970
- const _0x20780b = {};
971
- _0x20780b[_0x2475c3(537)] = _0x3ebb7a;
972
- const _0x2366e7 = new McpServer(_0x21ae4a, _0x20780b);
973
- _0xa3a621[_0x16876a] = { "mcpServer": _0x2366e7, "transport": _0x3dd4f3, "client": _0x32bcc3, "user": _0x40c907["auth"] || _0x40c907["user"], "device": _0x221f25[_0x565e5a(520)](getDeviceInfo, _0x40c907), "type": _0x221f25["tLvAF"] }, _0x4c5c52[_0x16876a] = _0x3dd4f3, _0x3dd4f3["sessionId"] = _0x16876a, _0x3dd4f3["onclose"] = () => {
974
- const _0x4f8ec9 = _0x3dd4f3["sessionId"];
975
- _0x4f8ec9 && _0x49e752[_0x4f8ec9] && (delete _0x4c5c52[_0x4f8ec9], delete _0xa3a621[_0x4f8ec9]);
976
- }, _0x3dd4f3["onerror"] = (_0x5a8a6c) => {
977
- const _0x35df9b = _0x565e5a, _0x4eb170 = _0x565e5a;
978
- _0x221f25[_0x35df9b(565)](_0x43f5b8, { "mcpServer": _0x2366e7, "transport": _0x3dd4f3, "client": _0x32bcc3, "error": _0x5a8a6c, "type": _0x221f25[_0x35df9b(514)] });
979
- }, await _0x2366e7["connect"](_0x3dd4f3), _0x221f25["MpuHH"](forwardProxyServer, _0x2366e7[_0x2475c3(503)], _0xe55654), await _0x3dd4f3[_0x565e5a(494)](_0x40c907, _0x9d0172, _0x40c907["body"]);
969
+ const _0x3921d8 = _0x1a9a7a["randomUUID"](), _0x17f978 = {};
970
+ _0x17f978[_0x16c550(330)] = () => _0x3921d8, _0x2e94c1 = new StreamableHTTPServerTransport(_0x17f978);
971
+ const _0x4c964b = {};
972
+ _0x4c964b["listChanged"] = !![];
973
+ const _0x13584e = {};
974
+ _0x13584e["subscribe"] = !![], _0x13584e[_0x698917(338)] = !![];
975
+ const _0x3d1790 = {};
976
+ _0x3d1790["listChanged"] = !![];
977
+ const _0x31bc09 = {};
978
+ _0x31bc09["prompts"] = _0x4c964b, _0x31bc09["resources"] = _0x13584e, _0x31bc09["tools"] = _0x3d1790, _0x31bc09[_0x16c550(231)] = {}, _0x31bc09[_0x16c550(241)] = {};
979
+ const _0x594354 = _0x31bc09, _0x36c823 = {};
980
+ _0x36c823[_0x16c550(238)] = _0x5e1a71[_0x698917(243)], _0x36c823[_0x16c550(301)] = _0x5e1a71[_0x698917(213)];
981
+ const _0x377b8a = {};
982
+ _0x377b8a["capabilities"] = _0x594354;
983
+ const _0x3c3ab1 = new McpServer(_0x36c823, _0x377b8a);
984
+ _0x26b49a[_0x3921d8] = { "mcpServer": _0x3c3ab1, "transport": _0x2e94c1, "client": _0x89ef2d, "user": _0x54c094["auth"] || _0x54c094[_0x16c550(310)], "device": _0x5e1a71["WliyP"](getDeviceInfo, _0x54c094), "type": _0x5e1a71["bcUJB"] }, _0x1a9767[_0x3921d8] = _0x2e94c1, _0x2e94c1[_0x698917(252)] ? _0x2e94c1["_webStandardTransport"]["sessionId"] = _0x3921d8 : _0x2e94c1["sessionId"] = _0x3921d8, _0x2e94c1["onclose"] = () => {
985
+ const _0x122b64 = _0x2e94c1["sessionId"];
986
+ _0x122b64 && _0x243b2b[_0x122b64] && (delete _0x1a9767[_0x122b64], delete _0x26b49a[_0x122b64]);
987
+ }, _0x2e94c1["onerror"] = (_0x37ed50) => {
988
+ const _0x52733b = _0x698917, _0x136c12 = _0x16c550, _0x40ee0b = {};
989
+ _0x40ee0b[_0x52733b(321)] = _0x3c3ab1, _0x40ee0b["transport"] = _0x2e94c1, _0x40ee0b["client"] = _0x89ef2d, _0x40ee0b[_0x136c12(275)] = _0x37ed50, _0x40ee0b["type"] = "StreamableHTTP", _0x4f384e(_0x40ee0b);
990
+ }, await _0x3c3ab1[_0x698917(203)](_0x2e94c1), _0x5e1a71["cvMUn"](forwardProxyServer, _0x3c3ab1["server"], _0x5437a4), await _0x2e94c1["handleRequest"](_0x54c094, _0x304099, _0x54c094[_0x16c550(248)]);
980
991
  } else {
981
- const _0x5e3637 = {};
982
- _0x5e3637["code"] = -(1 * 29594 + 391 * 91 + -33175), _0x5e3637[_0x2475c3(472)] = "Bad Request: No valid session ID provided";
983
- const _0xef886f = {};
984
- _0xef886f["jsonrpc"] = _0x221f25[_0x565e5a(518)], _0xef886f["error"] = _0x5e3637, _0xef886f["id"] = null, _0x9d0172["status"](-652 + -1424 + 2476)[_0x565e5a(499)](_0xef886f);
992
+ const _0x2c88b4 = {};
993
+ _0x2c88b4["jsonrpc"] = _0x5e1a71["crLLx"], _0x2c88b4[_0x698917(275)] = {}, _0x2c88b4["id"] = null, _0x2c88b4[_0x698917(275)][_0x698917(202)] = -(16937 * -2 + 2531 + -1 * -63343), _0x2c88b4[_0x698917(275)][_0x698917(250)] = _0x5e1a71[_0x16c550(279)], _0x304099[_0x16c550(232)](4640 + 6435 + -1525 * 7)["json"](_0x2c88b4);
985
994
  }
986
995
  }
987
996
  } catch {
988
- if (!_0x9d0172[_0x565e5a(541)]) {
989
- const _0x2c3215 = {};
990
- _0x2c3215["jsonrpc"] = _0x221f25["sQKbx"], _0x2c3215[_0x565e5a(482)] = {}, _0x2c3215["id"] = null, _0x2c3215[_0x565e5a(482)]["code"] = -32603, _0x2c3215[_0x565e5a(482)]["message"] = _0x221f25[_0x2475c3(501)], _0x9d0172["status"](-138 * 23 + 1951 * -2 + 1 * 7576)["json"](_0x2c3215);
997
+ if (!_0x304099["headersSent"]) {
998
+ const _0x46bf82 = {};
999
+ _0x46bf82[_0x698917(202)] = -32603, _0x46bf82[_0x698917(250)] = _0x5e1a71[_0x16c550(228)];
1000
+ const _0x3a1662 = {};
1001
+ _0x3a1662["jsonrpc"] = _0x698917(223), _0x3a1662["error"] = _0x46bf82, _0x3a1662["id"] = null, _0x304099["status"](-2452 + -803 + -1 * -3755)[_0x698917(295)](_0x3a1662);
991
1002
  }
992
1003
  }
993
- }, _0x75af0b = async (_0x36190a, _0x363c94) => {
994
- const _0x52cda5 = _0x46ea31, _0xdd3f7d = _0x46ea31, _0x34ecb0 = new URL(_0x221f25["QICRf"](_0x221f25[_0x52cda5(561)], _0x363c94[_0x52cda5(495)])), _0x4febff = _0x34ecb0["searchParams"][_0xdd3f7d(593)](_0x221f25[_0xdd3f7d(527)]), _0x33e097 = new WebSocketServerTransport(_0x36190a), _0x2bd76a = {};
995
- _0x2bd76a["listChanged"] = !![];
996
- const _0x2f43cd = {};
997
- _0x2f43cd["subscribe"] = !![], _0x2f43cd[_0xdd3f7d(476)] = !![];
998
- const _0x3c118a = {};
999
- _0x3c118a[_0x52cda5(476)] = !![];
1000
- const _0x2c2d38 = {};
1001
- _0x2c2d38["listChanged"] = !![];
1002
- const _0x4be3ce = {};
1003
- _0x4be3ce[_0x52cda5(521)] = _0x2bd76a, _0x4be3ce[_0xdd3f7d(589)] = _0x2f43cd, _0x4be3ce[_0x52cda5(519)] = _0x3c118a, _0x4be3ce[_0xdd3f7d(507)] = {}, _0x4be3ce[_0x52cda5(555)] = {}, _0x4be3ce["roots"] = _0x2c2d38, _0x4be3ce[_0xdd3f7d(526)] = {}, _0x4be3ce["elicitation"] = {};
1004
- const _0x17c112 = _0x4be3ce, _0x32c241 = {};
1005
- _0x32c241[_0x52cda5(563)] = _0xdd3f7d(500), _0x32c241[_0x52cda5(553)] = _0x52cda5(558);
1006
- const _0x662aab = {};
1007
- _0x662aab[_0x52cda5(537)] = _0x17c112;
1008
- const _0x33aea5 = new Client(_0x32c241, _0x662aab);
1009
- _0x221f25[_0xdd3f7d(522)](initTwinClientHandler, _0x33aea5, _0x33e097), _0x284689[_0x4febff] = { "client": _0x33aea5, "transport": _0x33e097, "user": _0x363c94["user"], "device": _0x221f25["WuneN"](getDeviceInfo, _0x363c94), "type": _0x221f25[_0xdd3f7d(466)] }, _0x49e752[_0x4febff] = _0x33e097, _0x33e097[_0xdd3f7d(545)] = _0x4febff, _0x33e097["onclose"] = () => {
1010
- delete _0x49e752[_0x4febff], delete _0x284689[_0x4febff];
1011
- }, _0x33e097["onerror"] = (_0x53e145) => {
1012
- const _0x409a3e = _0x52cda5, _0x3808d9 = _0xdd3f7d, _0x3a8a50 = {};
1013
- _0x3a8a50["client"] = _0x33aea5, _0x3a8a50[_0x409a3e(556)] = _0x33e097, _0x3a8a50[_0x3808d9(482)] = _0x53e145, _0x3a8a50["type"] = _0x221f25[_0x3808d9(466)], _0xa96593(_0x3a8a50);
1014
- }, await _0x33aea5[_0xdd3f7d(485)](_0x33e097);
1015
- }, _0x108a79 = () => {
1016
- const _0x27b5f1 = _0x2e1a8d, _0xbe4050 = _0x2e1a8d;
1004
+ }, _0x3156fc = async (_0x2f7032, _0x4c0577) => {
1005
+ const _0x310ca7 = _0x2291e6, _0x3c6fe1 = _0x5639bd, _0x48ad44 = new URL(_0x5e1a71["HWXAa"](_0x5e1a71[_0x310ca7(325)], _0x4c0577[_0x310ca7(324)])), _0x1d6b9a = _0x48ad44["searchParams"][_0x310ca7(302)]("sessionId"), _0x5f1da6 = new WebSocketServerTransport(_0x2f7032), _0xeb3ed0 = {};
1006
+ _0xeb3ed0["listChanged"] = !![];
1007
+ const _0x20e0a0 = {};
1008
+ _0x20e0a0[_0x3c6fe1(249)] = !![], _0x20e0a0["listChanged"] = !![];
1009
+ const _0x1da0a6 = {};
1010
+ _0x1da0a6["listChanged"] = !![];
1011
+ const _0x54ebea = {};
1012
+ _0x54ebea[_0x3c6fe1(338)] = !![];
1013
+ const _0x2e5615 = {};
1014
+ _0x2e5615["prompts"] = _0xeb3ed0, _0x2e5615[_0x310ca7(340)] = _0x20e0a0, _0x2e5615[_0x310ca7(267)] = _0x1da0a6, _0x2e5615[_0x3c6fe1(231)] = {}, _0x2e5615["logging"] = {}, _0x2e5615["roots"] = _0x54ebea, _0x2e5615["sampling"] = {}, _0x2e5615["elicitation"] = {};
1015
+ const _0x4bd42d = _0x2e5615, _0x4a67ff = {};
1016
+ _0x4a67ff[_0x3c6fe1(238)] = "mcp-socket-twin-client", _0x4a67ff[_0x3c6fe1(301)] = "1.0.0";
1017
+ const _0x2984f2 = {};
1018
+ _0x2984f2["capabilities"] = _0x4bd42d;
1019
+ const _0x5a2c36 = new Client(_0x4a67ff, _0x2984f2);
1020
+ initTwinClientHandler(_0x5a2c36, _0x5f1da6), _0xc92a32[_0x1d6b9a] = { "client": _0x5a2c36, "transport": _0x5f1da6, "user": _0x4c0577[_0x3c6fe1(310)], "device": _0x5e1a71[_0x310ca7(304)](getDeviceInfo, _0x4c0577), "type": _0x5e1a71[_0x310ca7(227)] }, _0x243b2b[_0x1d6b9a] = _0x5f1da6, _0x5f1da6[_0x3c6fe1(207)] = _0x1d6b9a, _0x5f1da6[_0x3c6fe1(314)] = () => {
1021
+ delete _0x243b2b[_0x1d6b9a], delete _0xc92a32[_0x1d6b9a];
1022
+ }, _0x5f1da6["onerror"] = (_0x46c561) => {
1023
+ const _0x33104b = _0x310ca7, _0x526a22 = _0x3c6fe1, _0x16e60d = {};
1024
+ _0x16e60d["client"] = _0x5a2c36, _0x16e60d[_0x33104b(284)] = _0x5f1da6, _0x16e60d[_0x526a22(275)] = _0x46c561, _0x16e60d[_0x526a22(244)] = "WebSocket", _0x5e1a71["gtTgN"](_0x11fd3e, _0x16e60d);
1025
+ }, await _0x5a2c36["connect"](_0x5f1da6);
1026
+ }, _0x558163 = () => {
1027
+ const _0x36f8ac = _0x2291e6, _0xf4872e = _0x2291e6;
1017
1028
  try {
1018
- Object["values"](_0x49e752)["forEach"]((_0x367616) => _0x367616[_0x27b5f1(594)]()), Object["values"](_0x4c5c52)["forEach"]((_0x5e0053) => _0x5e0053[_0x27b5f1(594)]()), Object[_0xbe4050(578)](_0x284689)["forEach"]((_0x186203) => _0x186203["client"][_0xbe4050(594)]()), Object["values"](_0xa3a621)[_0x27b5f1(577)]((_0x390000) => _0x390000["mcpServer"]["close"]());
1029
+ Object["values"](_0x243b2b)[_0x36f8ac(217)]((_0x1a7671) => _0x1a7671[_0xf4872e(251)]()), Object[_0xf4872e(257)](_0x1a9767)["forEach"]((_0x56ba51) => _0x56ba51[_0xf4872e(251)]()), Object["values"](_0xc92a32)["forEach"]((_0x3099b5) => _0x3099b5["client"][_0xf4872e(251)]()), Object[_0xf4872e(257)](_0x26b49a)[_0x36f8ac(217)]((_0x189756) => _0x189756[_0x36f8ac(321)][_0xf4872e(251)]());
1019
1030
  } catch {
1020
1031
  }
1021
1032
  try {
1022
- Object[_0x27b5f1(513)](_0x49e752)[_0x27b5f1(577)]((_0x459e4d) => delete _0x49e752[_0x459e4d]), Object[_0x27b5f1(513)](_0x4c5c52)["forEach"]((_0x39d861) => delete _0x4c5c52[_0x39d861]), Object[_0xbe4050(513)](_0x284689)["forEach"]((_0x31a006) => delete _0x284689[_0x31a006]), Object[_0x27b5f1(513)](_0xa3a621)[_0xbe4050(577)]((_0x1aa60c) => delete _0xa3a621[_0x1aa60c]);
1033
+ Object[_0xf4872e(339)](_0x243b2b)["forEach"]((_0x4461f1) => delete _0x243b2b[_0x4461f1]), Object["keys"](_0x1a9767)["forEach"]((_0x18f9be) => delete _0x1a9767[_0x18f9be]), Object["keys"](_0xc92a32)["forEach"]((_0x36abc8) => delete _0xc92a32[_0x36abc8]), Object[_0xf4872e(339)](_0x26b49a)[_0x36f8ac(217)]((_0x2238c1) => delete _0x26b49a[_0x2238c1]);
1023
1034
  } catch {
1024
1035
  }
1025
1036
  return {};
1026
- }, _0x49f04c = async () => {
1027
- const _0x316bbf = _0x2e1a8d, _0x4cfbbf = _0x2e1a8d, _0x22b88b = {};
1028
- _0x22b88b[_0x316bbf(543)] = function(_0x4a1091, _0x591cea) {
1029
- return _0x4a1091 === _0x591cea;
1030
- }, _0x22b88b["czgjI"] = _0x221f25[_0x4cfbbf(548)];
1031
- const _0x3ac821 = _0x22b88b, _0x8aa310 = Object[_0x316bbf(513)](_0x284689)[_0x316bbf(542)](async (_0x2d5fc3) => {
1032
- const _0x746fe1 = _0x4cfbbf, _0x25fe62 = _0x316bbf, { client: _0x5c54de } = _0x284689[_0x2d5fc3];
1037
+ }, _0x4b6109 = async () => {
1038
+ const _0x25b4c1 = _0x5639bd, _0x3cd5e2 = _0x5639bd, _0x408d60 = {};
1039
+ _0x408d60[_0x25b4c1(255)] = function(_0x2199b0, _0x2e6d9e) {
1040
+ return _0x2199b0 !== _0x2e6d9e;
1041
+ }, _0x408d60[_0x25b4c1(318)] = function(_0x3cabfc, _0x1f1f21) {
1042
+ return _0x3cabfc === _0x1f1f21;
1043
+ }, _0x408d60[_0x3cd5e2(201)] = _0x5e1a71["PYRrS"];
1044
+ const _0x33f1f7 = _0x408d60, _0x12aab7 = Object["keys"](_0xc92a32)["map"](async (_0x5a39c4) => {
1045
+ const _0x4b4d03 = _0x3cd5e2, _0x4ff78c = _0x25b4c1, { client: _0x2f3026 } = _0xc92a32[_0x5a39c4];
1033
1046
  try {
1034
- const _0x424121 = await _0x5c54de["ping"]();
1035
- return { "sessionId": _0x2d5fc3, "shouldClose": _0x221f25["uuogb"](Object[_0x746fe1(513)](_0x424121)[_0x25fe62(498)], 1 * -8244 + 7699 + 545) };
1047
+ const _0x5be026 = await _0x2f3026["ping"]();
1048
+ return { "sessionId": _0x5a39c4, "shouldClose": Object["keys"](_0x5be026)[_0x4b4d03(224)] !== -2712 + -44 * 39 + 108 * 41 };
1036
1049
  } catch {
1037
- const _0x2fd0b7 = {};
1038
- return _0x2fd0b7["sessionId"] = _0x2d5fc3, _0x2fd0b7[_0x25fe62(479)] = !![], _0x2fd0b7;
1050
+ const _0x1ea4de = {};
1051
+ return _0x1ea4de[_0x4ff78c(207)] = _0x5a39c4, _0x1ea4de["shouldClose"] = !![], _0x1ea4de;
1039
1052
  }
1040
- }), _0x4dd060 = Object[_0x316bbf(513)](_0xa3a621)["map"](async (_0xee9b4b) => {
1041
- const _0xc2f2b = _0x316bbf, _0x1c618b = _0x4cfbbf, { mcpServer: _0x2fba9c } = _0xa3a621[_0xee9b4b];
1053
+ }), _0x237578 = Object["keys"](_0x26b49a)[_0x3cd5e2(287)](async (_0x2520d3) => {
1054
+ const _0x28d6f6 = _0x3cd5e2, _0x167100 = _0x3cd5e2, { mcpServer: _0x3de407 } = _0x26b49a[_0x2520d3];
1042
1055
  try {
1043
- const _0x4e3b98 = await _0x2fba9c[_0xc2f2b(503)]["ping"]();
1044
- return { "sessionId": _0xee9b4b, "shouldClose": _0x221f25[_0x1c618b(560)](Object[_0xc2f2b(513)](_0x4e3b98)["length"], -1 * 773 + -2636 * -2 + 11 * -409) };
1056
+ const _0xda04f2 = await _0x3de407["server"][_0x28d6f6(229)]();
1057
+ return { "sessionId": _0x2520d3, "shouldClose": _0x33f1f7[_0x28d6f6(255)](Object[_0x167100(339)](_0xda04f2)["length"], 2269 + -183 * 15 + 14 * 34) };
1045
1058
  } catch {
1046
- const _0xc35820 = {};
1047
- return _0xc35820[_0x1c618b(545)] = _0xee9b4b, _0xc35820["shouldClose"] = !![], _0xc35820;
1059
+ const _0x2ac45f = {};
1060
+ return _0x2ac45f[_0x28d6f6(207)] = _0x2520d3, _0x2ac45f[_0x167100(235)] = !![], _0x2ac45f;
1048
1061
  }
1049
- }), [_0x2298fa, _0x1c2aa3] = await Promise["all"]([Promise["allSettled"](_0x8aa310), Promise["allSettled"](_0x4dd060)]), _0x249c69 = [], _0x5a6bbc = [];
1050
- _0x2298fa[_0x4cfbbf(577)]((_0x41c31a) => {
1051
- const _0x43217b = _0x316bbf, _0x3912a5 = _0x4cfbbf;
1052
- _0x3ac821[_0x43217b(543)](_0x41c31a["status"], _0x3ac821["czgjI"]) && _0x41c31a[_0x3912a5(506)][_0x3912a5(479)] && _0x249c69[_0x3912a5(539)](_0x41c31a["value"]["sessionId"]);
1053
- }), _0x1c2aa3[_0x316bbf(577)]((_0x346a26) => {
1054
- const _0x59a97e = _0x316bbf, _0x1a6846 = _0x4cfbbf;
1055
- _0x3ac821[_0x59a97e(543)](_0x346a26["status"], _0x3ac821["czgjI"]) && _0x346a26[_0x1a6846(506)][_0x59a97e(479)] && _0x5a6bbc["push"](_0x346a26["value"][_0x1a6846(545)]);
1062
+ }), [_0x20f18d, _0x907351] = await Promise[_0x3cd5e2(277)]([Promise[_0x3cd5e2(293)](_0x12aab7), Promise[_0x25b4c1(293)](_0x237578)]), _0x28db73 = [], _0x42e0d7 = [];
1063
+ _0x20f18d[_0x25b4c1(217)]((_0x4fbe8f) => {
1064
+ const _0x5e2d59 = _0x3cd5e2, _0x5bb210 = _0x25b4c1;
1065
+ _0x33f1f7[_0x5e2d59(318)](_0x4fbe8f["status"], _0x33f1f7[_0x5bb210(201)]) && _0x4fbe8f[_0x5e2d59(316)][_0x5e2d59(235)] && _0x28db73["push"](_0x4fbe8f["value"][_0x5e2d59(207)]);
1066
+ }), _0x907351[_0x25b4c1(217)]((_0x2de243) => {
1067
+ const _0x33cd9c = _0x25b4c1, _0x57c900 = _0x3cd5e2;
1068
+ _0x2de243[_0x33cd9c(232)] === _0x5e1a71[_0x57c900(292)] && _0x2de243[_0x57c900(316)]["shouldClose"] && _0x42e0d7[_0x33cd9c(319)](_0x2de243["value"][_0x57c900(207)]);
1056
1069
  });
1057
- const _0x27883e = _0x249c69["map"](async (_0x41c374) => {
1070
+ const _0x674358 = _0x28db73[_0x3cd5e2(287)](async (_0x101662) => {
1058
1071
  var _a, _b;
1059
- const _0x59cf2b = _0x316bbf;
1060
1072
  try {
1061
- (_a = _0x49e752[_0x41c374]) == null ? void 0 : _a[_0x59cf2b(594)](), (_b = _0x284689[_0x41c374]) == null ? void 0 : _b["client"]["close"]();
1073
+ (_a = _0x243b2b[_0x101662]) == null ? void 0 : _a["close"](), (_b = _0xc92a32[_0x101662]) == null ? void 0 : _b["client"]["close"]();
1062
1074
  } catch {
1063
1075
  }
1064
1076
  try {
1065
- delete _0x49e752[_0x41c374], delete _0x284689[_0x41c374];
1077
+ delete _0x243b2b[_0x101662], delete _0xc92a32[_0x101662];
1066
1078
  } catch {
1067
1079
  }
1068
- }), _0x180710 = _0x5a6bbc[_0x316bbf(542)](async (_0x496115) => {
1080
+ }), _0x1b0edc = _0x42e0d7["map"](async (_0x347e37) => {
1069
1081
  var _a, _b;
1070
- const _0x5deb25 = _0x316bbf;
1071
1082
  try {
1072
- (_a = _0x4c5c52[_0x496115]) == null ? void 0 : _a["close"](), (_b = _0xa3a621[_0x496115]) == null ? void 0 : _b["mcpServer"][_0x5deb25(594)]();
1083
+ (_a = _0x1a9767[_0x347e37]) == null ? void 0 : _a["close"](), (_b = _0x26b49a[_0x347e37]) == null ? void 0 : _b["mcpServer"]["close"]();
1073
1084
  } catch {
1074
1085
  }
1075
1086
  try {
1076
- delete _0x4c5c52[_0x496115], delete _0xa3a621[_0x496115];
1087
+ delete _0x1a9767[_0x347e37], delete _0x26b49a[_0x347e37];
1077
1088
  } catch {
1078
1089
  }
1079
1090
  });
1080
- await Promise["allSettled"]([..._0x27883e, ..._0x180710]);
1081
- const _0x2e1d49 = {};
1082
- return _0x2e1d49["clientSessions"] = _0x249c69, _0x2e1d49["remoterSessions"] = _0x5a6bbc, _0x2e1d49;
1083
- }, _0xba1128 = {};
1084
- return _0xba1128[_0x2e1a8d(516)] = _0x2364bd, _0xba1128["handleSseInspector"] = _0x4ff2b8, _0xba1128["handleSseMessage"] = _0x33b2f4, _0xba1128["handleStreamRequest"] = _0x129b7d, _0xba1128["handleStreamInspector"] = _0x1d47c9, _0xba1128[_0x46ea31(497)] = _0x75af0b, _0xba1128["clients"] = _0x284689, _0xba1128["remoters"] = _0xa3a621, _0xba1128["transports"] = _0x49e752, _0xba1128["inspectors"] = _0x4c5c52, _0xba1128[_0x2e1a8d(462)] = _0x108a79, _0xba1128[_0x46ea31(511)] = _0x49f04c, _0xba1128["onClientError"] = _0x3fa284, _0xba1128["onRemoterError"] = _0x56cd0a, _0xba1128;
1091
+ await Promise[_0x25b4c1(293)]([..._0x674358, ..._0x1b0edc]);
1092
+ const _0x2b4383 = {};
1093
+ return _0x2b4383["clientSessions"] = _0x28db73, _0x2b4383[_0x3cd5e2(280)] = _0x42e0d7, _0x2b4383;
1094
+ }, _0x57e304 = {};
1095
+ return _0x57e304[_0x5639bd(204)] = _0x539ed2, _0x57e304["handleSseInspector"] = _0x1e95b0, _0x57e304[_0x5639bd(332)] = _0x1a3e04, _0x57e304[_0x2291e6(298)] = _0x1b46da, _0x57e304[_0x5639bd(256)] = _0x3124bf, _0x57e304[_0x2291e6(327)] = _0x3156fc, _0x57e304["clients"] = _0xc92a32, _0x57e304[_0x5639bd(212)] = _0x26b49a, _0x57e304["transports"] = _0x243b2b, _0x57e304[_0x2291e6(230)] = _0x1a9767, _0x57e304[_0x5639bd(240)] = _0x558163, _0x57e304["ping"] = _0x4b6109, _0x57e304[_0x5639bd(220)] = _0x11e558, _0x57e304["onRemoterError"] = _0xb1dfd7, _0x57e304;
1085
1096
  };
1086
1097
  export {
1087
1098
  ACCESS_TOKEN_EXPIRES_IN,
@@ -1098,5 +1109,6 @@ export {
1098
1109
  createAuthMiddleware,
1099
1110
  createAuthRouter,
1100
1111
  jwtAuth,
1112
+ lockCors,
1101
1113
  useProxyHandles
1102
1114
  };