@opentiny/next 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +12 -1
- package/index.js +624 -628
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -2,806 +2,801 @@ import { JSONRPCMessageSchema, EmptyResultSchema, ElicitResultSchema, CreateMess
|
|
|
2
2
|
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
|
|
3
3
|
import { SSEClientTransport } from "@modelcontextprotocol/sdk/client/sse.js";
|
|
4
4
|
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js";
|
|
5
|
+
import { WebSocketClientTransport } from "@modelcontextprotocol/sdk/client/websocket.js";
|
|
5
6
|
import { UnauthorizedError } from "@modelcontextprotocol/sdk/client/auth.js";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
function _0x425b() {
|
|
8
|
+
const _0x4fe318 = ["224340fQYLJj", "function", "onmessage", "port2", "341XVdnBD", "313767JEBgqL", "950bpstaX", "1354759gUhUbE", "wRKyh", "onclose", "2044SvCTUj", "endpoint", "24msSkHx", "164VuWYGY", "mOWMr", "EkZCC", "addEventListener", "postMessage", "120705iyGzUz", "8878392ivIdKn", "close", "_listen", "3619482FaLQHc", "start", "_endpoint", "kgkem", "bzNYT", "MessageChannel transport error: ", "stringify", "onmessageerror", "HvyCv", "undefined", "Jwyua", "message", "_globalObject", "parse", "authInfo", "thraG", "220pGvxgp", "_port", "EGhzU", "onerror", "data", "MhriV"];
|
|
9
|
+
_0x425b = function() {
|
|
10
|
+
return _0x4fe318;
|
|
11
|
+
};
|
|
12
|
+
return _0x425b();
|
|
13
|
+
}
|
|
14
|
+
(function(_0x3f2143, _0xebf1ca) {
|
|
15
|
+
const _0xf16569 = _0x3c98, _0xf8772f = _0x3c98, _0x12639d = _0x3f2143();
|
|
9
16
|
while (!![]) {
|
|
10
17
|
try {
|
|
11
|
-
const
|
|
12
|
-
if (
|
|
13
|
-
else
|
|
14
|
-
} catch (
|
|
15
|
-
|
|
18
|
+
const _0x4af7fb = parseInt(_0xf16569(417)) / (511 * 2 + -6 * -249 + -2515) * (parseInt(_0xf16569(421)) / (97 + 8149 + -4 * 2061)) + parseInt(_0xf16569(433)) / (2229 * 3 + 8997 + -15681) + parseInt(_0xf16569(424)) / (6411 + 1390 * -2 + -9 * 403) * (-parseInt(_0xf8772f(429)) / (1 * -6323 + 8277 + 1 * -1949)) + parseInt(_0xf8772f(423)) / (-6512 + 1542 + 4976) * (-parseInt(_0xf8772f(418)) / (-2923 + 27 * 123 + 1 * -391)) + -parseInt(_0xf8772f(430)) / (-255 * -15 + 3 * 1367 + 74 * -107) + -parseInt(_0xf16569(416)) / (164 + 9156 + -9311) * (-parseInt(_0xf16569(405)) / (-6648 + 4 * 1410 + -1018 * -1)) + -parseInt(_0xf16569(415)) / (2131 + 1 * -6940 + 4820) * (-parseInt(_0xf16569(411)) / (7402 + 4294 + -11684));
|
|
19
|
+
if (_0x4af7fb === _0xebf1ca) break;
|
|
20
|
+
else _0x12639d["push"](_0x12639d["shift"]());
|
|
21
|
+
} catch (_0x559f49) {
|
|
22
|
+
_0x12639d["push"](_0x12639d["shift"]());
|
|
16
23
|
}
|
|
17
24
|
}
|
|
18
|
-
})(
|
|
19
|
-
function _0xacbd(_0x396270, _0x4ec458) {
|
|
20
|
-
const _0x101255 = _0x2dd1();
|
|
21
|
-
return _0xacbd = function(_0x3e7420, _0x33b9ab) {
|
|
22
|
-
_0x3e7420 = _0x3e7420 - (-2505 + -1757 + 4391);
|
|
23
|
-
let _0x51f210 = _0x101255[_0x3e7420];
|
|
24
|
-
return _0x51f210;
|
|
25
|
-
}, _0xacbd(_0x396270, _0x4ec458);
|
|
26
|
-
}
|
|
25
|
+
})(_0x425b, -311599 + 305798 + 655998);
|
|
27
26
|
const getGlobalObject = () => {
|
|
28
|
-
const
|
|
29
|
-
return
|
|
30
|
-
}, "
|
|
31
|
-
return
|
|
32
|
-
}, "
|
|
33
|
-
return
|
|
34
|
-
}, "
|
|
35
|
-
if (
|
|
36
|
-
if (
|
|
37
|
-
if (
|
|
38
|
-
if (typeof self !==
|
|
39
|
-
return
|
|
40
|
-
}, sendMessage = (
|
|
41
|
-
const
|
|
42
|
-
|
|
43
|
-
return
|
|
44
|
-
},
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
},
|
|
53
|
-
const
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}, _0x52c361["rzcdo"] = _0x5c8414(166), _0x52c361[_0x5c8414(140)] = function(_0x2fc890, _0x471248) {
|
|
57
|
-
return _0x2fc890 in _0x471248;
|
|
58
|
-
}, _0x52c361[_0x472818(157)] = "onmessage", _0x52c361["jnGTR"] = function(_0x3d66fa, _0x410350) {
|
|
59
|
-
return _0x3d66fa !== _0x410350;
|
|
60
|
-
}, _0x52c361["xkAIW"] = "undefined";
|
|
61
|
-
const _0x96d7d9 = _0x52c361;
|
|
62
|
-
if (_0x96d7d9["tblHl"] in _0x1ca0bf && _0x96d7d9["CQBXk"](typeof _0x1ca0bf[_0x5c8414(152)], _0x96d7d9["rzcdo"])) _0x1ca0bf[_0x5c8414(152)]("message", _0x52f051);
|
|
63
|
-
else _0x96d7d9["SjhYv"](_0x96d7d9[_0x5c8414(157)], _0x1ca0bf) && _0x96d7d9[_0x5c8414(158)](typeof _0x1ca0bf["onmessage"], _0x96d7d9["xkAIW"]) && (_0x1ca0bf[_0x5c8414(130)] = _0x52f051);
|
|
27
|
+
const _0x3e2316 = _0x3c98, _0x4bbb30 = { "EGhzU": function(_0x43b0af, _0x410c74) {
|
|
28
|
+
return _0x43b0af !== _0x410c74;
|
|
29
|
+
}, "kIrDB": "undefined", "llYQe": function(_0x5e5b4b, _0x29e28d) {
|
|
30
|
+
return _0x5e5b4b !== _0x29e28d;
|
|
31
|
+
}, "PZfJg": function(_0x2df978, _0x2cbe44) {
|
|
32
|
+
return _0x2df978(_0x2cbe44);
|
|
33
|
+
}, "Jwyua": "return this" };
|
|
34
|
+
if (typeof globalThis !== "undefined") return globalThis;
|
|
35
|
+
if (_0x4bbb30[_0x3e2316(407)](typeof window, _0x4bbb30["kIrDB"])) return window;
|
|
36
|
+
if (_0x4bbb30["llYQe"](typeof global, _0x4bbb30["kIrDB"])) return global;
|
|
37
|
+
if (typeof self !== _0x3e2316(398)) return self;
|
|
38
|
+
return _0x4bbb30["PZfJg"](Function, _0x4bbb30[_0x3e2316(399)])();
|
|
39
|
+
}, sendMessage = (_0x3bc450, _0x51a3bf, _0x2954b6) => {
|
|
40
|
+
const _0x5d3b1d = _0x3c98, _0x5c5f72 = _0x3c98, _0x3de493 = {};
|
|
41
|
+
_0x3de493[_0x5d3b1d(410)] = _0x5c5f72(398), _0x3de493["dBkaX"] = function(_0x181821, _0x4dd2e8) {
|
|
42
|
+
return _0x181821 === _0x4dd2e8;
|
|
43
|
+
}, _0x3de493[_0x5c5f72(393)] = "function";
|
|
44
|
+
const _0x4aa378 = _0x3de493;
|
|
45
|
+
if (typeof window !== _0x4aa378[_0x5c5f72(410)]) _0x3bc450["postMessage"](_0x51a3bf, "*", _0x2954b6);
|
|
46
|
+
else _0x5c5f72(428) in _0x3bc450 && _0x4aa378["dBkaX"](typeof _0x3bc450["postMessage"], _0x4aa378[_0x5d3b1d(393)]) && _0x3bc450["postMessage"](_0x51a3bf, _0x2954b6);
|
|
47
|
+
}, setMessageHandler = (_0x432d6a, _0x1cebac) => {
|
|
48
|
+
const _0x4243fa = _0x3c98, _0x4b1b47 = _0x3c98, _0x83e376 = {};
|
|
49
|
+
_0x83e376["MbsGh"] = "addEventListener", _0x83e376["PPniK"] = function(_0x4bc6f6, _0x575566) {
|
|
50
|
+
return _0x4bc6f6 === _0x575566;
|
|
51
|
+
}, _0x83e376[_0x4243fa(419)] = _0x4b1b47(412), _0x83e376[_0x4b1b47(404)] = "onmessage", _0x83e376[_0x4243fa(397)] = "undefined";
|
|
52
|
+
const _0x5b21ac = _0x83e376;
|
|
53
|
+
if (_0x5b21ac["MbsGh"] in _0x432d6a && _0x5b21ac["PPniK"](typeof _0x432d6a[_0x4243fa(427)], _0x5b21ac["wRKyh"])) _0x432d6a[_0x4243fa(427)](_0x4243fa(400), _0x1cebac);
|
|
54
|
+
else _0x5b21ac["thraG"] in _0x432d6a && typeof _0x432d6a[_0x4b1b47(413)] !== _0x5b21ac[_0x4b1b47(397)] && (_0x432d6a["onmessage"] = _0x1cebac);
|
|
64
55
|
};
|
|
65
56
|
class MessageChannelTransport {
|
|
66
|
-
constructor(
|
|
67
|
-
|
|
57
|
+
constructor(_0x19f279) {
|
|
58
|
+
const _0x47a6b8 = _0x3c98;
|
|
59
|
+
this[_0x47a6b8(406)] = _0x19f279;
|
|
68
60
|
}
|
|
69
61
|
async ["start"]() {
|
|
70
|
-
const
|
|
71
|
-
if (!this[
|
|
72
|
-
this[
|
|
62
|
+
const _0x262fc0 = _0x3c98, _0x477225 = _0x3c98;
|
|
63
|
+
if (!this[_0x262fc0(406)]) return;
|
|
64
|
+
this[_0x262fc0(406)][_0x262fc0(413)] = (_0x12f751) => {
|
|
73
65
|
var _a, _b;
|
|
74
|
-
const
|
|
66
|
+
const _0xd637c1 = _0x262fc0, _0x3f2b55 = _0x477225;
|
|
75
67
|
try {
|
|
76
|
-
const
|
|
77
|
-
(_a = this[
|
|
78
|
-
} catch (
|
|
79
|
-
const
|
|
80
|
-
(_b = this[
|
|
68
|
+
const _0x288930 = JSONRPCMessageSchema[_0xd637c1(402)](_0x12f751["data"][_0xd637c1(400)]);
|
|
69
|
+
(_a = this[_0xd637c1(413)]) == null ? void 0 : _a.call(this, _0x288930, _0x12f751[_0x3f2b55(409)]["extra"]);
|
|
70
|
+
} catch (_0x199f0) {
|
|
71
|
+
const _0x349a7b = new Error("MessageChannel failed to parse message: " + _0x199f0);
|
|
72
|
+
(_b = this[_0x3f2b55(408)]) == null ? void 0 : _b.call(this, _0x349a7b);
|
|
81
73
|
}
|
|
82
|
-
}, this["_port"][
|
|
74
|
+
}, this["_port"][_0x262fc0(396)] = (_0x4dd993) => {
|
|
83
75
|
var _a;
|
|
84
|
-
const
|
|
85
|
-
(_a = this["onerror"]) == null ? void 0 : _a.call(this,
|
|
86
|
-
}, this[
|
|
87
|
-
}
|
|
88
|
-
async ["send"](
|
|
89
|
-
const
|
|
90
|
-
return
|
|
91
|
-
}, "
|
|
92
|
-
return
|
|
93
|
-
}, "Pfhxv": function(_0x54176e, _0x319f56) {
|
|
94
|
-
return _0x54176e(_0x319f56);
|
|
76
|
+
const _0x120c0e = _0x477225, _0x5758c1 = _0x477225, _0x1701f6 = new Error(_0x120c0e(394) + JSON[_0x5758c1(395)](_0x4dd993));
|
|
77
|
+
(_a = this["onerror"]) == null ? void 0 : _a.call(this, _0x1701f6);
|
|
78
|
+
}, this[_0x262fc0(406)][_0x262fc0(434)]();
|
|
79
|
+
}
|
|
80
|
+
async ["send"](_0x875889, _0x3c2eb4) {
|
|
81
|
+
const _0x231c3e = { "lEyuq": function(_0x44e3da) {
|
|
82
|
+
return _0x44e3da();
|
|
83
|
+
}, "YihNw": function(_0x1a99c7, _0x1da686) {
|
|
84
|
+
return _0x1a99c7(_0x1da686);
|
|
95
85
|
} };
|
|
96
|
-
return new Promise((
|
|
86
|
+
return new Promise((_0x2c883a, _0x7fbbef) => {
|
|
97
87
|
var _a;
|
|
98
|
-
const
|
|
88
|
+
const _0x1d8acc = _0x3c98, _0x252aac = _0x3c98;
|
|
99
89
|
try {
|
|
100
|
-
const
|
|
101
|
-
|
|
102
|
-
const
|
|
103
|
-
|
|
104
|
-
if (this[
|
|
105
|
-
|
|
106
|
-
} catch (
|
|
107
|
-
const
|
|
108
|
-
(_a = this[
|
|
90
|
+
const _0x1d9834 = {};
|
|
91
|
+
_0x1d9834[_0x1d8acc(403)] = _0x3c2eb4 == null ? void 0 : _0x3c2eb4[_0x1d8acc(403)];
|
|
92
|
+
const _0x280bd1 = {};
|
|
93
|
+
_0x280bd1[_0x252aac(400)] = _0x875889, _0x280bd1["extra"] = _0x1d9834;
|
|
94
|
+
if (this[_0x252aac(406)]) this[_0x1d8acc(406)]["postMessage"](_0x280bd1);
|
|
95
|
+
_0x231c3e["lEyuq"](_0x2c883a);
|
|
96
|
+
} catch (_0x4fe450) {
|
|
97
|
+
const _0x570003 = _0x4fe450 instanceof Error ? _0x4fe450 : new Error(_0x231c3e["YihNw"](String, _0x4fe450));
|
|
98
|
+
(_a = this[_0x252aac(408)]) == null ? void 0 : _a.call(this, _0x570003), _0x7fbbef(_0x570003);
|
|
109
99
|
}
|
|
110
100
|
});
|
|
111
101
|
}
|
|
112
102
|
async ["close"]() {
|
|
113
103
|
var _a, _b;
|
|
114
|
-
const
|
|
115
|
-
(_a = this["_port"]) == null ? void 0 : _a[
|
|
104
|
+
const _0x48e40 = _0x3c98, _0x15c0bc = _0x3c98;
|
|
105
|
+
(_a = this["_port"]) == null ? void 0 : _a[_0x48e40(431)](), this["_port"] = void 0, (_b = this[_0x15c0bc(420)]) == null ? void 0 : _b.call(this);
|
|
116
106
|
}
|
|
117
107
|
}
|
|
118
|
-
function _0x2dd1() {
|
|
119
|
-
const _0xc13ee7 = ["start", "18osCtKg", "RphJy", "FzgVC", "MJJde", "jnGTR", "LnNVQ", "1051519VVnrnU", "33477396wnvbno", "sxstg", "5032460FukhmU", "gdsVr", "11iMeJBh", "function", "_endpoint", "_listen", "1275704COqcWf", "56LfVOEz", "listen", "fDJxn", "undefined", "ports", "JlLHy", "4dKwrPa", "close", "onmessage", "postMessage", "authInfo", "11129553jiEKRY", "776455JhRkBm", "data", "port2", "onerror", "_port", "SUplI", "SjhYv", "extra", "cgHZW", "2982963YuFHfk", "OXUfv", "1sYviCF", "port1", "BODwV", "message", "ZJoRh", "_globalObject", "Pfhxv", "addEventListener"];
|
|
120
|
-
_0x2dd1 = function() {
|
|
121
|
-
return _0xc13ee7;
|
|
122
|
-
};
|
|
123
|
-
return _0x2dd1();
|
|
124
|
-
}
|
|
125
108
|
class MessageChannelClientTransport extends MessageChannelTransport {
|
|
126
|
-
constructor(
|
|
127
|
-
const
|
|
128
|
-
return
|
|
109
|
+
constructor(_0x597360, _0x528781 = getGlobalObject()) {
|
|
110
|
+
const _0x264b2b = _0x3c98, _0x1bf448 = _0x3c98, _0x34395f = { "EkZCC": function(_0x252e11, _0x32a364, _0x3fa642, _0x313f91) {
|
|
111
|
+
return _0x252e11(_0x32a364, _0x3fa642, _0x313f91);
|
|
129
112
|
} };
|
|
130
|
-
super(), this[
|
|
131
|
-
const
|
|
132
|
-
this[
|
|
113
|
+
super(), this[_0x264b2b(391)] = _0x597360, this[_0x1bf448(401)] = _0x528781;
|
|
114
|
+
const _0x2395ac = new MessageChannel();
|
|
115
|
+
this[_0x1bf448(406)] = _0x2395ac["port1"], _0x34395f[_0x1bf448(426)](sendMessage, this[_0x264b2b(401)], { "endpoint": this[_0x1bf448(391)] }, [_0x2395ac[_0x1bf448(414)]]);
|
|
133
116
|
}
|
|
134
117
|
}
|
|
135
118
|
class MessageChannelServerTransport extends MessageChannelTransport {
|
|
136
|
-
constructor(
|
|
137
|
-
const
|
|
138
|
-
return
|
|
139
|
-
}, "
|
|
140
|
-
return
|
|
141
|
-
}, "ZJoRh": function(_0x3422bb, _0x457e61, _0x2e2ec6) {
|
|
142
|
-
return _0x3422bb(_0x457e61, _0x2e2ec6);
|
|
119
|
+
constructor(_0x43868d, _0x200cbf = getGlobalObject()) {
|
|
120
|
+
const _0x1cf24b = _0x3c98, _0x5f15b5 = { "mOWMr": function(_0x117b52, _0x3755b6) {
|
|
121
|
+
return _0x117b52 === _0x3755b6;
|
|
122
|
+
}, "kgkem": function(_0x263de6, _0x137f7b, _0x35ee9a) {
|
|
123
|
+
return _0x263de6(_0x137f7b, _0x35ee9a);
|
|
143
124
|
} };
|
|
144
|
-
super(), this["_endpoint"] =
|
|
145
|
-
const
|
|
146
|
-
|
|
147
|
-
const
|
|
148
|
-
|
|
125
|
+
super(), this["_endpoint"] = _0x43868d, this["_globalObject"] = _0x200cbf, this[_0x1cf24b(432)] = new Promise((_0xc5a6a8) => {
|
|
126
|
+
const _0x205b86 = _0x1cf24b, _0x13755a = _0x1cf24b;
|
|
127
|
+
_0x5f15b5[_0x205b86(392)](setMessageHandler, this[_0x13755a(401)], (_0x44b81a) => {
|
|
128
|
+
const _0xd9e0bf = _0x13755a, _0x5f1705 = _0x13755a;
|
|
129
|
+
_0x44b81a["data"] && _0x5f15b5[_0xd9e0bf(425)](_0x44b81a["data"][_0x5f1705(422)], this[_0x5f1705(391)]) && (this[_0x5f1705(406)] = _0x44b81a["ports"][-1 * 4852 + 1 * 1601 + 3251], _0xc5a6a8());
|
|
149
130
|
});
|
|
150
131
|
});
|
|
151
132
|
}
|
|
152
|
-
async [
|
|
153
|
-
const
|
|
154
|
-
return this[
|
|
133
|
+
async ["listen"]() {
|
|
134
|
+
const _0x5cffe3 = _0x3c98;
|
|
135
|
+
return this[_0x5cffe3(432)];
|
|
155
136
|
}
|
|
156
137
|
}
|
|
138
|
+
function _0x3c98(_0x5f3c48, _0x59969d) {
|
|
139
|
+
const _0x29bc72 = _0x425b();
|
|
140
|
+
return _0x3c98 = function(_0x7d5de0, _0x53ddc5) {
|
|
141
|
+
_0x7d5de0 = _0x7d5de0 - (17 * -491 + -669 + 9407);
|
|
142
|
+
let _0x21b3d3 = _0x29bc72[_0x7d5de0];
|
|
143
|
+
return _0x21b3d3;
|
|
144
|
+
}, _0x3c98(_0x5f3c48, _0x59969d);
|
|
145
|
+
}
|
|
157
146
|
const createTransportPair = () => {
|
|
158
|
-
const
|
|
159
|
-
return [new MessageChannelTransport(
|
|
147
|
+
const _0x3ab70f = new MessageChannel();
|
|
148
|
+
return [new MessageChannelTransport(_0x3ab70f["port1"]), new MessageChannelTransport(_0x3ab70f["port2"])];
|
|
160
149
|
};
|
|
161
|
-
(function(
|
|
162
|
-
const
|
|
150
|
+
(function(_0x34e6b0, _0x35a269) {
|
|
151
|
+
const _0x1d530d = _0x436f, _0x4b1650 = _0x436f, _0x32f138 = _0x34e6b0();
|
|
163
152
|
while (!![]) {
|
|
164
153
|
try {
|
|
165
|
-
const
|
|
166
|
-
if (
|
|
167
|
-
else
|
|
168
|
-
} catch (
|
|
169
|
-
|
|
154
|
+
const _0x464b19 = parseInt(_0x1d530d(355)) / (-9237 + 21 * -101 + 11359) + -parseInt(_0x1d530d(356)) / (-1 * 393 + -1 * -7768 + -1 * 7373) * (-parseInt(_0x1d530d(373)) / (-705 + -4769 * 2 + -47 * -218)) + -parseInt(_0x1d530d(337)) / (-245 * 15 + 893 * 7 + 1 * -2572) + parseInt(_0x4b1650(357)) / (-240 * 17 + 3192 + 893) + -parseInt(_0x4b1650(389)) / (149 * 44 + 545 * -2 + -5460) * (-parseInt(_0x1d530d(396)) / (-5159 + -276 * -13 + -3 * -526)) + parseInt(_0x4b1650(325)) / (1 * -6978 + -3854 + -8 * -1355) * (parseInt(_0x1d530d(382)) / (-7214 + -2969 + 26 * 392)) + -parseInt(_0x1d530d(366)) / (316 * -5 + 562 * 5 + -61 * 20);
|
|
155
|
+
if (_0x464b19 === _0x35a269) break;
|
|
156
|
+
else _0x32f138["push"](_0x32f138["shift"]());
|
|
157
|
+
} catch (_0x390ed1) {
|
|
158
|
+
_0x32f138["push"](_0x32f138["shift"]());
|
|
170
159
|
}
|
|
171
160
|
}
|
|
172
|
-
})(
|
|
173
|
-
const forwardServerRequest = async (
|
|
161
|
+
})(_0x312b, -763475 + -52067 * 10 + 1724410);
|
|
162
|
+
const forwardServerRequest = async (_0x39b9c9, _0x5af7c1, _0x5dd2f7) => {
|
|
174
163
|
var _a;
|
|
175
|
-
const
|
|
176
|
-
|
|
177
|
-
const
|
|
178
|
-
let
|
|
179
|
-
switch (
|
|
180
|
-
case
|
|
181
|
-
|
|
164
|
+
const _0x4d8179 = _0x436f, _0x45d1c8 = _0x436f, _0x259709 = {};
|
|
165
|
+
_0x259709[_0x4d8179(345)] = "tools/list", _0x259709["rqstG"] = "tools/call", _0x259709["WqUnk"] = "resources/list", _0x259709[_0x4d8179(329)] = _0x45d1c8(358), _0x259709[_0x4d8179(365)] = _0x4d8179(335), _0x259709["ookoz"] = "resources/unsubscribe", _0x259709[_0x4d8179(385)] = _0x4d8179(340), _0x259709["VTIWq"] = "prompts/list", _0x259709["SkoRK"] = _0x4d8179(376), _0x259709["QUtUV"] = _0x4d8179(388), _0x259709["XtowM"] = _0x45d1c8(332);
|
|
166
|
+
const _0x386240 = _0x259709, { id: _0x5e3819, method: _0x1e7aac, params: _0xb3b73d } = _0x5dd2f7;
|
|
167
|
+
let _0x1affd2 = {};
|
|
168
|
+
switch (_0x1e7aac) {
|
|
169
|
+
case _0x386240[_0x45d1c8(345)]:
|
|
170
|
+
_0x1affd2 = await _0x5af7c1["listTools"](_0xb3b73d);
|
|
182
171
|
break;
|
|
183
|
-
case
|
|
184
|
-
|
|
172
|
+
case _0x386240["rqstG"]:
|
|
173
|
+
_0x1affd2 = await _0x5af7c1["callTool"](_0xb3b73d);
|
|
185
174
|
break;
|
|
186
|
-
case
|
|
187
|
-
|
|
175
|
+
case _0x386240[_0x4d8179(334)]:
|
|
176
|
+
_0x1affd2 = await _0x5af7c1[_0x4d8179(350)](_0xb3b73d);
|
|
188
177
|
break;
|
|
189
|
-
case
|
|
190
|
-
|
|
178
|
+
case _0x386240[_0x45d1c8(329)]:
|
|
179
|
+
_0x1affd2 = await _0x5af7c1["listResourceTemplates"](_0xb3b73d);
|
|
191
180
|
break;
|
|
192
|
-
case
|
|
193
|
-
|
|
181
|
+
case _0x4d8179(372):
|
|
182
|
+
_0x1affd2 = await _0x5af7c1[_0x4d8179(383)](_0xb3b73d);
|
|
194
183
|
break;
|
|
195
|
-
case
|
|
196
|
-
|
|
184
|
+
case _0x386240["HgYgW"]:
|
|
185
|
+
_0x1affd2 = await _0x5af7c1["subscribeResource"](_0xb3b73d);
|
|
197
186
|
break;
|
|
198
|
-
case "
|
|
199
|
-
|
|
187
|
+
case _0x386240["ookoz"]:
|
|
188
|
+
_0x1affd2 = await _0x5af7c1["unsubscribeResource"](_0xb3b73d);
|
|
200
189
|
break;
|
|
201
|
-
case
|
|
202
|
-
|
|
190
|
+
case _0x386240[_0x4d8179(385)]:
|
|
191
|
+
_0x1affd2 = await _0x5af7c1["getPrompt"](_0xb3b73d);
|
|
203
192
|
break;
|
|
204
|
-
case
|
|
205
|
-
|
|
193
|
+
case _0x386240["VTIWq"]:
|
|
194
|
+
_0x1affd2 = await _0x5af7c1["listPrompts"](_0xb3b73d);
|
|
206
195
|
break;
|
|
207
|
-
case
|
|
208
|
-
|
|
196
|
+
case _0x386240[_0x4d8179(344)]:
|
|
197
|
+
_0x1affd2 = await _0x5af7c1[_0x4d8179(376)]();
|
|
209
198
|
break;
|
|
210
|
-
case
|
|
211
|
-
|
|
199
|
+
case _0x386240["QUtUV"]:
|
|
200
|
+
_0x1affd2 = await _0x5af7c1["complete"](_0xb3b73d);
|
|
212
201
|
break;
|
|
213
|
-
case
|
|
214
|
-
|
|
202
|
+
case _0x4d8179(390):
|
|
203
|
+
_0x1affd2 = await _0x5af7c1[_0x4d8179(336)](_0xb3b73d == null ? void 0 : _0xb3b73d["level"]);
|
|
215
204
|
break;
|
|
216
205
|
}
|
|
217
|
-
const
|
|
218
|
-
|
|
219
|
-
}, forwardClientRequest = async (
|
|
206
|
+
const _0x1b9b3c = {};
|
|
207
|
+
_0x1b9b3c[_0x4d8179(361)] = _0x1affd2, _0x1b9b3c[_0x4d8179(394)] = _0x386240[_0x4d8179(364)], _0x1b9b3c["id"] = _0x5e3819, await ((_a = _0x39b9c9 == null ? void 0 : _0x39b9c9["transport"]) == null ? void 0 : _a[_0x4d8179(392)](_0x1b9b3c));
|
|
208
|
+
}, forwardClientRequest = async (_0x28f3d6, _0x4ac89d, _0x1051c9) => {
|
|
220
209
|
var _a;
|
|
221
|
-
const
|
|
222
|
-
|
|
223
|
-
const
|
|
224
|
-
let
|
|
225
|
-
switch (
|
|
226
|
-
case
|
|
227
|
-
const
|
|
228
|
-
|
|
210
|
+
const _0x3dda47 = _0x436f, _0x381b7f = _0x436f, _0xd1fdf3 = {};
|
|
211
|
+
_0xd1fdf3["jQBBS"] = "sampling/createMessage", _0xd1fdf3["EZqgC"] = "elicitation/create", _0xd1fdf3[_0x3dda47(370)] = _0x381b7f(376), _0xd1fdf3["aVeaL"] = _0x381b7f(332);
|
|
212
|
+
const _0x49fa5b = _0xd1fdf3, { id: _0x242c62, method: _0x5e5313, params: _0x26f936 } = _0x1051c9;
|
|
213
|
+
let _0x4a0446 = {};
|
|
214
|
+
switch (_0x5e5313) {
|
|
215
|
+
case _0x3dda47(368):
|
|
216
|
+
const _0x5729fc = {};
|
|
217
|
+
_0x5729fc["method"] = _0x5e5313, _0x5729fc[_0x381b7f(367)] = _0x26f936, _0x4a0446 = await _0x4ac89d["request"](_0x5729fc, ListRootsResultSchema);
|
|
229
218
|
break;
|
|
230
|
-
case
|
|
231
|
-
const
|
|
232
|
-
|
|
219
|
+
case _0x49fa5b[_0x381b7f(391)]:
|
|
220
|
+
const _0x1a4de5 = {};
|
|
221
|
+
_0x1a4de5["method"] = _0x5e5313, _0x1a4de5[_0x381b7f(367)] = _0x26f936, _0x4a0446 = await _0x4ac89d[_0x381b7f(381)](_0x1a4de5, CreateMessageResultSchema);
|
|
233
222
|
break;
|
|
234
|
-
case
|
|
235
|
-
const
|
|
236
|
-
|
|
223
|
+
case _0x49fa5b["EZqgC"]:
|
|
224
|
+
const _0x439309 = {};
|
|
225
|
+
_0x439309["method"] = _0x5e5313, _0x439309["params"] = _0x26f936, _0x4a0446 = await _0x4ac89d["request"](_0x439309, ElicitResultSchema);
|
|
237
226
|
break;
|
|
238
|
-
case
|
|
239
|
-
const
|
|
240
|
-
|
|
227
|
+
case _0x49fa5b[_0x381b7f(370)]:
|
|
228
|
+
const _0x26032a = {};
|
|
229
|
+
_0x26032a["method"] = _0x5e5313, _0x4a0446 = await _0x4ac89d[_0x381b7f(381)](_0x26032a, EmptyResultSchema);
|
|
241
230
|
break;
|
|
242
231
|
}
|
|
243
|
-
const
|
|
244
|
-
return
|
|
232
|
+
const _0x1cd5b1 = {};
|
|
233
|
+
return _0x1cd5b1[_0x381b7f(361)] = _0x4a0446, _0x1cd5b1["jsonrpc"] = _0x49fa5b[_0x381b7f(387)], _0x1cd5b1["id"] = _0x242c62, await ((_a = _0x28f3d6 == null ? void 0 : _0x28f3d6[_0x3dda47(371)]) == null ? void 0 : _a["send"](_0x1cd5b1)), _0x4a0446;
|
|
245
234
|
};
|
|
246
|
-
const forwardServerOnRequest = (
|
|
247
|
-
const
|
|
248
|
-
return
|
|
249
|
-
}, "
|
|
250
|
-
|
|
235
|
+
const forwardServerOnRequest = (_0x295fa6, _0x251926) => {
|
|
236
|
+
const _0x1cc476 = _0x436f, _0x23ae0d = { "gXsjT": function(_0x3ae5bb, _0x164ced) {
|
|
237
|
+
return _0x3ae5bb === _0x164ced;
|
|
238
|
+
}, "oegpC": _0x1cc476(351), "lZOUC": function(_0x453ca3, _0x364f6d, _0x56cba4, _0x977d42) {
|
|
239
|
+
return _0x453ca3(_0x364f6d, _0x56cba4, _0x977d42);
|
|
240
|
+
}, "ifIKG": "2.0" }, _0x4bcbe0 = _0x295fa6["_onrequest"];
|
|
241
|
+
_0x295fa6["_onrequest"] = async (_0x19eadb, _0x1be045) => {
|
|
251
242
|
var _a, _b, _c, _d, _e;
|
|
252
|
-
const
|
|
243
|
+
const _0x18b546 = _0x1cc476, _0x2a3fc6 = _0x1cc476, { id: _0x352576, method: _0x55a8de } = _0x19eadb;
|
|
253
244
|
try {
|
|
254
|
-
|
|
255
|
-
} catch (
|
|
256
|
-
const { code:
|
|
245
|
+
_0x23ae0d[_0x18b546(333)](_0x55a8de, _0x23ae0d["oegpC"]) ? await _0x4bcbe0[_0x18b546(386)](_0x295fa6, _0x19eadb, _0x1be045) : await _0x23ae0d["lZOUC"](forwardServerRequest, _0x295fa6, _0x251926, _0x19eadb);
|
|
246
|
+
} catch (_0x260152) {
|
|
247
|
+
const { code: _0x109aa0, message: _0x12f9b1, data: _0x2a49eb } = _0x260152;
|
|
257
248
|
try {
|
|
258
|
-
if (
|
|
259
|
-
const
|
|
260
|
-
|
|
261
|
-
const
|
|
262
|
-
|
|
263
|
-
} else (_c = (_b =
|
|
264
|
-
} catch (
|
|
265
|
-
(_e = (_d =
|
|
249
|
+
if (_0x109aa0) {
|
|
250
|
+
const _0x33e2da = {};
|
|
251
|
+
_0x33e2da["code"] = _0x109aa0, _0x33e2da["message"] = _0x12f9b1, _0x33e2da["data"] = _0x2a49eb;
|
|
252
|
+
const _0x577f56 = {};
|
|
253
|
+
_0x577f56["error"] = _0x33e2da, _0x577f56[_0x18b546(394)] = _0x23ae0d[_0x2a3fc6(331)], _0x577f56["id"] = _0x352576, await ((_a = _0x295fa6 == null ? void 0 : _0x295fa6["transport"]) == null ? void 0 : _a["send"](_0x577f56));
|
|
254
|
+
} else (_c = (_b = _0x295fa6 == null ? void 0 : _0x295fa6[_0x2a3fc6(371)]) == null ? void 0 : _b["onerror"]) == null ? void 0 : _c.call(_b, _0x260152);
|
|
255
|
+
} catch (_0x31b055) {
|
|
256
|
+
(_e = (_d = _0x295fa6 == null ? void 0 : _0x295fa6[_0x18b546(371)]) == null ? void 0 : _d["onerror"]) == null ? void 0 : _e.call(_d, _0x31b055);
|
|
266
257
|
}
|
|
267
258
|
}
|
|
268
259
|
};
|
|
269
260
|
};
|
|
270
|
-
const forwardServerOnNotification = (
|
|
271
|
-
const
|
|
272
|
-
|
|
273
|
-
return
|
|
274
|
-
},
|
|
275
|
-
const
|
|
276
|
-
|
|
261
|
+
const forwardServerOnNotification = (_0xbf4216, _0x2c1d64) => {
|
|
262
|
+
const _0x41d9f8 = _0x436f, _0x2f9e6b = _0x436f, _0x1b758a = {};
|
|
263
|
+
_0x1b758a[_0x41d9f8(363)] = function(_0x3941d3, _0x9b010a) {
|
|
264
|
+
return _0x3941d3 !== _0x9b010a;
|
|
265
|
+
}, _0x1b758a[_0x41d9f8(398)] = _0x41d9f8(353), _0x1b758a["hzhyg"] = "notifications/cancelled";
|
|
266
|
+
const _0xbe4b4b = _0x1b758a;
|
|
267
|
+
_0xbf4216["_onnotification"] = async (_0x1da5cb) => {
|
|
277
268
|
var _a, _b;
|
|
278
|
-
const
|
|
279
|
-
if (
|
|
280
|
-
await
|
|
281
|
-
} catch (
|
|
282
|
-
(_b = (_a =
|
|
269
|
+
const _0x1daf66 = _0x41d9f8, _0x3a44ec = _0x2f9e6b, { method: _0x36956c, params: _0x3bca7c } = _0x1da5cb;
|
|
270
|
+
if (_0xbe4b4b[_0x1daf66(363)](_0x36956c, _0xbe4b4b[_0x3a44ec(398)]) && (_0xbe4b4b[_0x1daf66(363)](_0x36956c, _0xbe4b4b["hzhyg"]) || (_0x3bca7c == null ? void 0 : _0x3bca7c["forward"]))) try {
|
|
271
|
+
await _0x2c1d64["notification"](_0x1da5cb);
|
|
272
|
+
} catch (_0x322fdf) {
|
|
273
|
+
(_b = (_a = _0xbf4216 == null ? void 0 : _0xbf4216["transport"]) == null ? void 0 : _a["onerror"]) == null ? void 0 : _b.call(_a, _0x322fdf);
|
|
283
274
|
}
|
|
284
275
|
};
|
|
285
276
|
};
|
|
286
|
-
const forwardClientOnRequest = (
|
|
277
|
+
const forwardClientOnRequest = (_0x5ba9fc, _0x3c2127) => async (_0x35e391) => {
|
|
287
278
|
var _a, _b, _c, _d, _e;
|
|
288
|
-
const
|
|
289
|
-
|
|
290
|
-
|
|
279
|
+
const _0x18219 = _0x436f, _0xf7764b = _0x436f, _0x1fe570 = {};
|
|
280
|
+
_0x1fe570["SEmWX"] = _0x18219(332);
|
|
281
|
+
const _0x4db6d5 = _0x1fe570;
|
|
291
282
|
try {
|
|
292
|
-
return await
|
|
293
|
-
} catch (
|
|
294
|
-
const { code:
|
|
283
|
+
return await forwardClientRequest(_0x5ba9fc, _0x3c2127, _0x35e391);
|
|
284
|
+
} catch (_0x5475d2) {
|
|
285
|
+
const { code: _0x145668, message: _0x30e917, data: _0x308ae4 } = _0x5475d2;
|
|
295
286
|
try {
|
|
296
|
-
if (
|
|
297
|
-
const
|
|
298
|
-
|
|
299
|
-
const
|
|
300
|
-
|
|
301
|
-
} else (_c = (_b =
|
|
302
|
-
} catch (
|
|
303
|
-
(_e = (_d =
|
|
287
|
+
if (_0x145668) {
|
|
288
|
+
const _0x3f0c29 = {};
|
|
289
|
+
_0x3f0c29[_0xf7764b(377)] = _0x145668, _0x3f0c29["message"] = _0x30e917, _0x3f0c29["data"] = _0x308ae4;
|
|
290
|
+
const _0x3e511c = {};
|
|
291
|
+
_0x3e511c[_0xf7764b(348)] = _0x3f0c29, _0x3e511c["jsonrpc"] = _0x4db6d5[_0x18219(338)], _0x3e511c["id"] = _0x35e391["id"], await ((_a = _0x5ba9fc == null ? void 0 : _0x5ba9fc["transport"]) == null ? void 0 : _a[_0xf7764b(392)](_0x3e511c));
|
|
292
|
+
} else (_c = (_b = _0x5ba9fc == null ? void 0 : _0x5ba9fc["transport"]) == null ? void 0 : _b[_0xf7764b(339)]) == null ? void 0 : _c.call(_b, _0x5475d2);
|
|
293
|
+
} catch (_0x44d349) {
|
|
294
|
+
(_e = (_d = _0x5ba9fc == null ? void 0 : _0x5ba9fc[_0x18219(371)]) == null ? void 0 : _d[_0xf7764b(339)]) == null ? void 0 : _e.call(_d, _0x44d349);
|
|
304
295
|
}
|
|
305
296
|
}
|
|
306
297
|
};
|
|
307
|
-
|
|
308
|
-
const _0x25ea07 = ["level", "originalOnResponse", "55170mBdYDU", "message", "forward", "completion/complete", "YTglM", "_onrequest", "push", "resources/subscribe", "method", "evRYg", "IwJLf", "36vWOzfl", "INhFO", "ERLmZ", "4771400ICkNjz", "removeListener", "bepKH", "jsonrpc", "1588030zEKxZA", "readResource", "request", "indexOf", "_onresponse", "elicitation/create", "transport", "listResourceTemplates", "SAxlc", "TivTb", "VvMvg", "lKSxx", "resources/templates/list", "send", "removeRequestListener", "resources/list", "HHuTf", "error", "unsubscribeResource", "JgvOQ", "params", "HMnPG", "mKgNI", "initialize", "2.0", "clearListener", "result", "xAZkD", "_onnotification", "notifications/initialized", "DNAeN", "deQam", "18856juHcqp", "1408312pVrTzy", "exSlO", "_notificationHandlers", "fallbackRequestHandler", "1770391vhkQKM", "clear", "length", "917098eoebuK", "onerror", "eBAUu", "subscribeResource", "get", "clearRequestListener", "dFopk", "listPrompts", "2853mVPrjm", "addNotificationListener", "lfNNa", "prompts/list", "code", "call", "18wkYBws", "addResponseListener", "data", "RZSpk"];
|
|
309
|
-
_0x5c4b = function() {
|
|
310
|
-
return _0x25ea07;
|
|
311
|
-
};
|
|
312
|
-
return _0x5c4b();
|
|
313
|
-
}
|
|
314
|
-
const forwardClientOnNotification = (_0x56a744, _0x5bc58a) => async (_0x229c21) => {
|
|
298
|
+
const forwardClientOnNotification = (_0x28d609, _0x4bf7cb) => async (_0x4bc3b1) => {
|
|
315
299
|
var _a, _b, _c;
|
|
316
|
-
const
|
|
317
|
-
|
|
318
|
-
return
|
|
319
|
-
},
|
|
320
|
-
const
|
|
321
|
-
if (
|
|
322
|
-
const
|
|
323
|
-
|
|
324
|
-
} catch (
|
|
325
|
-
(_c = (_b =
|
|
300
|
+
const _0x3b3b4a = _0x436f, _0x1002c0 = _0x436f, _0x35ae78 = {};
|
|
301
|
+
_0x35ae78["dtUgZ"] = function(_0x4ee941, _0x184cdc) {
|
|
302
|
+
return _0x4ee941 !== _0x184cdc;
|
|
303
|
+
}, _0x35ae78["jgCIb"] = _0x3b3b4a(353), _0x35ae78["uUjKY"] = "2.0";
|
|
304
|
+
const _0x564be4 = _0x35ae78, { method: _0x4170f4, params: _0x466e2b } = _0x4bc3b1;
|
|
305
|
+
if (_0x564be4["dtUgZ"](_0x4170f4, _0x564be4["jgCIb"]) && (_0x4170f4 !== _0x3b3b4a(400) || (_0x466e2b == null ? void 0 : _0x466e2b["forward"]))) try {
|
|
306
|
+
const _0x2fa139 = { ..._0x4bc3b1 };
|
|
307
|
+
_0x2fa139[_0x3b3b4a(394)] = _0x564be4[_0x1002c0(352)], await ((_a = _0x4bf7cb == null ? void 0 : _0x4bf7cb[_0x3b3b4a(371)]) == null ? void 0 : _a[_0x3b3b4a(392)](_0x2fa139));
|
|
308
|
+
} catch (_0x4981b1) {
|
|
309
|
+
(_c = (_b = _0x28d609 == null ? void 0 : _0x28d609[_0x3b3b4a(371)]) == null ? void 0 : _b[_0x1002c0(339)]) == null ? void 0 : _c.call(_b, _0x4981b1);
|
|
326
310
|
}
|
|
327
311
|
};
|
|
328
|
-
function
|
|
329
|
-
const
|
|
330
|
-
return
|
|
331
|
-
|
|
332
|
-
let
|
|
333
|
-
return
|
|
334
|
-
},
|
|
312
|
+
function _0x436f(_0x3eb3da, _0x246fe0) {
|
|
313
|
+
const _0x190ef0 = _0x312b();
|
|
314
|
+
return _0x436f = function(_0x3844a1, _0x22bcbf) {
|
|
315
|
+
_0x3844a1 = _0x3844a1 - (9 * -113 + -1439 * -1 + -97);
|
|
316
|
+
let _0x3446e7 = _0x190ef0[_0x3844a1];
|
|
317
|
+
return _0x3446e7;
|
|
318
|
+
}, _0x436f(_0x3eb3da, _0x246fe0);
|
|
335
319
|
}
|
|
336
|
-
const forwardClientOnResponse = (
|
|
320
|
+
const forwardClientOnResponse = (_0x1e680e, _0x1c8008) => async (_0x525a8d) => {
|
|
337
321
|
var _a, _b, _c, _d, _e, _f;
|
|
338
|
-
const
|
|
339
|
-
|
|
340
|
-
const
|
|
322
|
+
const _0x4cc7de = _0x436f, _0x48c146 = _0x436f, _0x15ca71 = {};
|
|
323
|
+
_0x15ca71[_0x4cc7de(401)] = _0x48c146(332);
|
|
324
|
+
const _0x27611c = _0x15ca71;
|
|
341
325
|
try {
|
|
342
|
-
await ((_a =
|
|
343
|
-
} catch (
|
|
344
|
-
const { code:
|
|
326
|
+
await ((_a = _0x1c8008 == null ? void 0 : _0x1c8008["transport"]) == null ? void 0 : _a["send"](_0x525a8d));
|
|
327
|
+
} catch (_0x4fb145) {
|
|
328
|
+
const { code: _0x42cf0b, message: _0xe29332, data: _0x3919ab } = _0x4fb145;
|
|
345
329
|
try {
|
|
346
|
-
if (
|
|
347
|
-
const
|
|
348
|
-
|
|
349
|
-
const
|
|
350
|
-
|
|
351
|
-
} else (_d = (_c =
|
|
352
|
-
} catch (
|
|
353
|
-
(_f = (_e =
|
|
330
|
+
if (_0x42cf0b) {
|
|
331
|
+
const _0x15d8af = {};
|
|
332
|
+
_0x15d8af["code"] = _0x42cf0b, _0x15d8af[_0x4cc7de(399)] = _0xe29332, _0x15d8af["data"] = _0x3919ab;
|
|
333
|
+
const _0x5acd21 = {};
|
|
334
|
+
_0x5acd21[_0x4cc7de(348)] = _0x15d8af, _0x5acd21[_0x4cc7de(394)] = _0x27611c["OhJjz"], _0x5acd21["id"] = _0x525a8d["id"], await ((_b = _0x1e680e == null ? void 0 : _0x1e680e[_0x4cc7de(371)]) == null ? void 0 : _b["send"](_0x5acd21));
|
|
335
|
+
} else (_d = (_c = _0x1e680e == null ? void 0 : _0x1e680e["transport"]) == null ? void 0 : _c[_0x48c146(339)]) == null ? void 0 : _d.call(_c, _0x4fb145);
|
|
336
|
+
} catch (_0x18c5af) {
|
|
337
|
+
(_f = (_e = _0x1e680e == null ? void 0 : _0x1e680e["transport"]) == null ? void 0 : _e["onerror"]) == null ? void 0 : _f.call(_e, _0x18c5af);
|
|
354
338
|
}
|
|
355
339
|
}
|
|
356
340
|
};
|
|
357
341
|
const createHandleListener = () => {
|
|
358
|
-
const
|
|
359
|
-
return
|
|
360
|
-
}, "
|
|
361
|
-
return
|
|
362
|
-
}, "
|
|
363
|
-
return
|
|
364
|
-
},
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
const _0x20b740 = [];
|
|
370
|
-
for (const _0xd61b85 of _0x3fed1f) {
|
|
342
|
+
const _0x584790 = _0x436f, _0xfde4fe = _0x436f, _0x4ea6ca = { "vnkqu": function(_0x403bc5, _0x53bd2e) {
|
|
343
|
+
return _0x403bc5 !== _0x53bd2e;
|
|
344
|
+
}, "wxDWr": function(_0x1c881b, _0x66c10d) {
|
|
345
|
+
return _0x1c881b(_0x66c10d);
|
|
346
|
+
}, "GdkkV": function(_0x9d4748, _0x24b020) {
|
|
347
|
+
return _0x9d4748 === _0x24b020;
|
|
348
|
+
} }, _0x5de2ad = [], _0x1c01fe = (_0x431466, _0x28ccda) => {
|
|
349
|
+
const _0x1d408a = _0x436f, _0x120458 = _0x436f;
|
|
350
|
+
if (_0x28ccda) {
|
|
351
|
+
const _0x1e8724 = [];
|
|
352
|
+
for (const _0x1264b7 of _0x5de2ad) {
|
|
371
353
|
try {
|
|
372
|
-
|
|
354
|
+
_0x1e8724["push"](_0x1264b7(_0x431466, _0x28ccda));
|
|
373
355
|
} catch {
|
|
374
356
|
}
|
|
375
357
|
}
|
|
376
|
-
for (const
|
|
377
|
-
if (
|
|
358
|
+
for (const _0x445fc2 of _0x1e8724) {
|
|
359
|
+
if (_0x4ea6ca[_0x1d408a(379)](_0x445fc2, null)) return _0x445fc2;
|
|
378
360
|
}
|
|
379
|
-
} else for (const
|
|
361
|
+
} else for (const _0x4637f1 of _0x5de2ad) {
|
|
380
362
|
try {
|
|
381
|
-
|
|
363
|
+
_0x4ea6ca[_0x120458(343)](_0x4637f1, _0x431466);
|
|
382
364
|
} catch {
|
|
383
365
|
}
|
|
384
366
|
}
|
|
385
|
-
},
|
|
386
|
-
const
|
|
387
|
-
|
|
388
|
-
},
|
|
389
|
-
const
|
|
390
|
-
|
|
391
|
-
},
|
|
392
|
-
const
|
|
393
|
-
|
|
394
|
-
},
|
|
395
|
-
return
|
|
396
|
-
}, setClientListener = (
|
|
397
|
-
const
|
|
398
|
-
return
|
|
399
|
-
}, "
|
|
400
|
-
return
|
|
401
|
-
}, "SwOnF": function(_0xbb267d) {
|
|
402
|
-
return _0xbb267d();
|
|
367
|
+
}, _0x46917c = (_0x2b37ef) => {
|
|
368
|
+
const _0x562515 = _0x436f;
|
|
369
|
+
_0x4ea6ca[_0x562515(384)](typeof _0x2b37ef, _0x562515(369)) && !_0x5de2ad["includes"](_0x2b37ef) && _0x5de2ad["push"](_0x2b37ef);
|
|
370
|
+
}, _0x1187af = (_0x522cb1) => {
|
|
371
|
+
const _0x530b39 = _0x5de2ad["indexOf"](_0x522cb1);
|
|
372
|
+
_0x530b39 !== -1 && _0x5de2ad["splice"](_0x530b39, 1 * -6854 + 8 * -33 + 7119);
|
|
373
|
+
}, _0x21be0c = () => {
|
|
374
|
+
const _0x217721 = _0x436f;
|
|
375
|
+
_0x5de2ad[_0x217721(374)] = 7102 * 1 + 5522 + -526 * 24;
|
|
376
|
+
}, _0x3a7414 = {};
|
|
377
|
+
return _0x3a7414[_0x584790(346)] = _0x1c01fe, _0x3a7414[_0xfde4fe(330)] = _0x46917c, _0x3a7414["removeListener"] = _0x1187af, _0x3a7414[_0x584790(359)] = _0x21be0c, _0x3a7414;
|
|
378
|
+
}, setClientListener = (_0x44ee2c) => {
|
|
379
|
+
const _0x41b7db = _0x436f, _0x543db2 = _0x436f, _0x158fa1 = { "xwPeb": function(_0x2ff8e4) {
|
|
380
|
+
return _0x2ff8e4();
|
|
381
|
+
}, "Mfvzm": function(_0x557d5a) {
|
|
382
|
+
return _0x557d5a();
|
|
403
383
|
} };
|
|
404
384
|
{
|
|
405
|
-
const { handleListener:
|
|
406
|
-
|
|
385
|
+
const { handleListener: _0x1d5fdc, addListener: _0x47b60e, removeListener: _0x7a7da6, clearListener: _0x32a47a } = _0x158fa1[_0x41b7db(326)](createHandleListener);
|
|
386
|
+
_0x44ee2c["_onresponse"] = _0x1d5fdc, _0x44ee2c[_0x41b7db(395)] = _0x47b60e, _0x44ee2c["removeResponseListener"] = _0x7a7da6, _0x44ee2c["clearResponseListener"] = _0x32a47a;
|
|
407
387
|
}
|
|
408
388
|
{
|
|
409
|
-
const { handleListener:
|
|
410
|
-
|
|
389
|
+
const { handleListener: _0x2a5fe3, addListener: _0x630b07, removeListener: _0xb70f6, clearListener: _0x3e94ce } = _0x158fa1[_0x543db2(326)](createHandleListener);
|
|
390
|
+
_0x44ee2c[_0x543db2(328)] = _0x2a5fe3, _0x44ee2c["addRequestListener"] = _0x630b07, _0x44ee2c[_0x543db2(354)] = _0xb70f6, _0x44ee2c[_0x543db2(341)] = _0x3e94ce;
|
|
411
391
|
}
|
|
412
392
|
{
|
|
413
|
-
const { handleListener:
|
|
414
|
-
|
|
393
|
+
const { handleListener: _0x535dd5, addListener: _0x394877, removeListener: _0x253b3b, clearListener: _0x44f208 } = _0x158fa1[_0x41b7db(375)](createHandleListener);
|
|
394
|
+
_0x44ee2c[_0x41b7db(342)] = _0x535dd5, _0x44ee2c[_0x41b7db(327)] = _0x394877, _0x44ee2c["removeNotificationListener"] = _0x253b3b, _0x44ee2c["clearNotificationListener"] = _0x44f208;
|
|
415
395
|
}
|
|
416
396
|
};
|
|
417
|
-
|
|
418
|
-
const
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
397
|
+
function _0x312b() {
|
|
398
|
+
const _0x10336d = ["uUjKY", "notifications/initialized", "removeRequestListener", "96194JysfjF", "36346SGEWAV", "1357830AJaOeY", "resources/templates/list", "clearListener", "iQqcJ", "result", "tqDZP", "sSeCz", "XtowM", "HgYgW", "3913230mjiatC", "params", "roots/list", "function", "bfmJT", "transport", "resources/read", "27FNuDmk", "length", "Mfvzm", "ping", "code", "_onresponse", "vnkqu", "cjSoZ", "request", "9gIMIPC", "readResource", "GdkkV", "ptMjy", "call", "aVeaL", "completion/complete", "5035122lFbpzR", "logging/setLevel", "jQBBS", "send", "_requestHandlers", "jsonrpc", "addResponseListener", "7SpcenI", "ElOQH", "MDIkN", "message", "notifications/cancelled", "OhJjz", "clear", "672216JzFEyR", "xwPeb", "addNotificationListener", "fallbackRequestHandler", "sYzPD", "addListener", "ifIKG", "2.0", "gXsjT", "WqUnk", "resources/subscribe", "setLoggingLevel", "2491772kFUWFh", "SEmWX", "onerror", "prompts/get", "clearRequestListener", "fallbackNotificationHandler", "wxDWr", "SkoRK", "uTeHc", "handleListener", "Zybtx", "error", "originalOnResponse", "listResources", "initialize"];
|
|
399
|
+
_0x312b = function() {
|
|
400
|
+
return _0x10336d;
|
|
401
|
+
};
|
|
402
|
+
return _0x312b();
|
|
403
|
+
}
|
|
404
|
+
const initClientHandler = (_0x4eae35, { beforeInit: _0x5ede3e, afterInit: _0x392ad7 } = {}) => {
|
|
405
|
+
const _0x39ee68 = _0x436f, _0x2ff689 = _0x436f, _0xef50a3 = { "tqDZP": function(_0x3b46af, _0x42b551) {
|
|
406
|
+
return _0x3b46af === _0x42b551;
|
|
407
|
+
}, "cjSoZ": "function", "iQqcJ": _0x39ee68(378), "Zybtx": function(_0x5e40d5, _0xea2fd6) {
|
|
408
|
+
return _0x5e40d5(_0xea2fd6);
|
|
409
|
+
}, "ElOQH": function(_0x29a1dd) {
|
|
410
|
+
return _0x29a1dd();
|
|
411
|
+
} }, _0x28c085 = new Map(_0x4eae35["_notificationHandlers"]);
|
|
412
|
+
_0x4eae35[_0x39ee68(393)][_0x39ee68(402)](), _0x4eae35["_notificationHandlers"][_0x39ee68(402)](), _0xef50a3["tqDZP"](typeof _0x5ede3e, _0xef50a3[_0x39ee68(380)]) && _0x5ede3e(), _0xef50a3[_0x39ee68(362)](_0x4eae35["_onresponse"]["name"], _0xef50a3[_0x39ee68(360)]) && (_0x4eae35[_0x2ff689(349)] = _0x4eae35["_onresponse"]), _0xef50a3[_0x39ee68(347)](setClientListener, _0x4eae35), _0x4eae35["addResponseListener"]((_0x5b9ccc) => {
|
|
413
|
+
const _0x44116a = _0x2ff689;
|
|
414
|
+
_0x4eae35["originalOnResponse"][_0x44116a(386)](_0x4eae35, _0x5b9ccc);
|
|
415
|
+
}), _0xef50a3["tqDZP"](typeof _0x392ad7, _0xef50a3[_0x2ff689(380)]) && _0xef50a3[_0x39ee68(397)](_0x392ad7), _0x4eae35[_0x2ff689(327)]((_0x4b3e63) => {
|
|
416
|
+
const { method: _0x52cc8d } = _0x4b3e63, _0x1d4650 = _0x28c085["get"](_0x52cc8d);
|
|
417
|
+
_0xef50a3["tqDZP"](typeof _0x1d4650, _0xef50a3["cjSoZ"]) && _0x1d4650(_0x4b3e63);
|
|
433
418
|
});
|
|
434
419
|
};
|
|
435
|
-
const
|
|
436
|
-
function
|
|
437
|
-
const
|
|
438
|
-
return _0x1297 = function(_0x2f5cb5, _0x4e91df) {
|
|
439
|
-
_0x2f5cb5 = _0x2f5cb5 - (-499 * 3 + 1 * -890 + -337 * -8);
|
|
440
|
-
let _0xf2c16e = _0x40b1f3[_0x2f5cb5];
|
|
441
|
-
return _0xf2c16e;
|
|
442
|
-
}, _0x1297(_0x430353, _0x592bca);
|
|
443
|
-
}
|
|
444
|
-
(function(_0x63ec62, _0x14ec52) {
|
|
445
|
-
const _0x75460f = _0x1297, _0x264884 = _0x1297, _0x3d2de = _0x63ec62();
|
|
420
|
+
const _0x1c80bf = _0x4f47, _0x53d80a = _0x4f47;
|
|
421
|
+
(function(_0x274e6a, _0x42a727) {
|
|
422
|
+
const _0x110d0e = _0x4f47, _0x242f23 = _0x4f47, _0x198664 = _0x274e6a();
|
|
446
423
|
while (!![]) {
|
|
447
424
|
try {
|
|
448
|
-
const
|
|
449
|
-
if (
|
|
450
|
-
else
|
|
451
|
-
} catch (
|
|
452
|
-
|
|
425
|
+
const _0x571b93 = -parseInt(_0x110d0e(393)) / (7531 + 5849 + -13379) + parseInt(_0x110d0e(397)) / (12 * -615 + -1 * 5783 + 13165) * (-parseInt(_0x110d0e(400)) / (-7435 + 6318 + 1120)) + -parseInt(_0x242f23(398)) / (7 * 545 + 5036 * -1 + -1225 * -1) + parseInt(_0x110d0e(390)) / (-6 * 970 + 7 * -914 + -12223 * -1) * (parseInt(_0x242f23(388)) / (-79 * 78 + 5153 + 1015)) + -parseInt(_0x110d0e(389)) / (1 * -613 + 1 * 9786 + -9166) + -parseInt(_0x110d0e(402)) / (1906 * 4 + -3703 + -7 * 559) * (-parseInt(_0x242f23(395)) / (139 + -3 * -647 + -2071)) + parseInt(_0x242f23(399)) / (1110 + -78 * 79 + 5062 * 1) * (parseInt(_0x242f23(385)) / (-3040 + 1 * 4645 + 2 * -797));
|
|
426
|
+
if (_0x571b93 === _0x42a727) break;
|
|
427
|
+
else _0x198664["push"](_0x198664["shift"]());
|
|
428
|
+
} catch (_0x222798) {
|
|
429
|
+
_0x198664["push"](_0x198664["shift"]());
|
|
453
430
|
}
|
|
454
431
|
}
|
|
455
|
-
})(
|
|
456
|
-
|
|
457
|
-
const
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
return
|
|
462
|
-
},
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
if (_0x50bbd[_0x130126(313)](typeof crypto, _0x50bbd["aiAIs"]) && crypto[_0x130126(314)]) return crypto["randomUUID"]();
|
|
469
|
-
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"["replace"](/[xy]/g, (_0x314035) => {
|
|
470
|
-
const _0x243f0f = _0x130126, _0x546fa8 = _0x130126, _0x1446e2 = _0x50bbd[_0x243f0f(317)](crypto[_0x546fa8(321)](new Uint8Array(-8718 + 124 * 25 + 5619))[-6393 + -329 * -4 + 1 * 5077], 222 * -2 + -5419 * -1 + -496 * 10), _0x5e28a6 = _0x314035 === "x" ? _0x1446e2 : _0x50bbd["koxtC"](_0x50bbd["CJbSq"](_0x1446e2, 333 + 1177 + 1 * -1507), 737 * -3 + -3740 + 5959);
|
|
471
|
-
return _0x5e28a6["toString"](-2193 + -5935 + 8144);
|
|
472
|
-
});
|
|
473
|
-
}, randomBytes = (_0x2231b4) => {
|
|
474
|
-
const _0x420377 = _0x1297, _0x2cc52c = _0x1297, _0x24e611 = new Uint8Array(_0x2231b4);
|
|
475
|
-
return crypto[_0x420377(321)](_0x24e611), Array[_0x420377(311)](_0x24e611, (_0x490f10) => _0x490f10["toString"](-9830 * 1 + 15 * -389 + 15681)["padStart"](9437 + 1442 + -10877, "0"))[_0x2cc52c(328)]("");
|
|
476
|
-
}, _0x21d13c = {};
|
|
477
|
-
function _0x3b6d() {
|
|
478
|
-
const _0x2eb984 = ["322602YEeXTL", "cWMWo", "randomBytes", "360714cQwoni", "4jGlyZR", "getRandomValues", "11vuSHLa", "7coyLYd", "576200ZDqfSL", "25441610RPtFTZ", "koxtC", "4124070gqAgCl", "join", "object", "8383374JYLMHO", "from", "4496536egULKP", "bXzKK", "randomUUID", "4ZgaCxq"];
|
|
479
|
-
_0x3b6d = function() {
|
|
480
|
-
return _0x2eb984;
|
|
432
|
+
})(_0x13a3, -1 * -881393 + 2 * 180895 + 1 * -644809);
|
|
433
|
+
function _0x4f47(_0x5d6b98, _0xbed46d) {
|
|
434
|
+
const _0x7f5b81 = _0x13a3();
|
|
435
|
+
return _0x4f47 = function(_0x98208d, _0x540f7c) {
|
|
436
|
+
_0x98208d = _0x98208d - (-1861 + -499 * 4 + 4241);
|
|
437
|
+
let _0x1f0479 = _0x7f5b81[_0x98208d];
|
|
438
|
+
return _0x1f0479;
|
|
439
|
+
}, _0x4f47(_0x5d6b98, _0xbed46d);
|
|
440
|
+
}
|
|
441
|
+
function _0x13a3() {
|
|
442
|
+
const _0x2dd535 = ["toString", "getRandomValues", "2101mUsYMI", "EQHzo", "padStart", "30UvDAkd", "1609706yzlqYx", "974735GrhZVO", "randomUUID", "REzPF", "562771BvAnoG", "dHTfU", "2047455boiYXf", "randomBytes", "14664qHAdbF", "3772144jLpQch", "52310AkWksx", "318MkjaVb", "from", "40WRwnSc"];
|
|
443
|
+
_0x13a3 = function() {
|
|
444
|
+
return _0x2dd535;
|
|
481
445
|
};
|
|
482
|
-
return
|
|
446
|
+
return _0x13a3();
|
|
483
447
|
}
|
|
484
|
-
|
|
485
|
-
const
|
|
486
|
-
|
|
487
|
-
|
|
448
|
+
const randomUUID = () => {
|
|
449
|
+
const _0x503b55 = _0x4f47, _0x5d1fe2 = _0x4f47, _0x1c89e3 = {};
|
|
450
|
+
_0x1c89e3["REzPF"] = function(_0x36d31b, _0x2b87c4) {
|
|
451
|
+
return _0x36d31b & _0x2b87c4;
|
|
452
|
+
}, _0x1c89e3["suJHI"] = function(_0x341adf, _0x50c362) {
|
|
453
|
+
return _0x341adf === _0x50c362;
|
|
454
|
+
}, _0x1c89e3[_0x503b55(386)] = function(_0x2bd9d4, _0x55e7e8) {
|
|
455
|
+
return _0x2bd9d4 & _0x55e7e8;
|
|
456
|
+
}, _0x1c89e3[_0x5d1fe2(394)] = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx";
|
|
457
|
+
const _0x2305bc = _0x1c89e3;
|
|
458
|
+
if (_0x2305bc["suJHI"](typeof crypto, "object") && crypto["randomUUID"]) return crypto[_0x5d1fe2(391)]();
|
|
459
|
+
return _0x2305bc["dHTfU"]["replace"](/[xy]/g, (_0x47a253) => {
|
|
460
|
+
const _0xee7adc = _0x503b55, _0x3ebe42 = _0x503b55, _0x3b82cf = _0x2305bc[_0xee7adc(392)](crypto[_0xee7adc(384)](new Uint8Array(-25 * -62 + 7113 + 2 * -4331))[741 * 2 + -1385 * -2 + 4252 * -1], 8648 + -107 * 62 + -1999), _0x5cd225 = _0x2305bc["suJHI"](_0x47a253, "x") ? _0x3b82cf : _0x2305bc[_0x3ebe42(386)](_0x3b82cf, -2516 + -1861 + 4 * 1095) | 5047 + 32 + 461 * -11;
|
|
461
|
+
return _0x5cd225["toString"](9449 + 4 * -461 + -7589);
|
|
462
|
+
});
|
|
463
|
+
}, randomBytes = (_0x2added) => {
|
|
464
|
+
const _0x3977c7 = _0x4f47, _0x2f0d95 = _0x4f47, _0x516c9f = new Uint8Array(_0x2added);
|
|
465
|
+
return crypto["getRandomValues"](_0x516c9f), Array[_0x3977c7(401)](_0x516c9f, (_0x145cf8) => _0x145cf8[_0x2f0d95(403)](-3 * 1739 + -6509 + 2 * 5871)[_0x3977c7(387)](6365 + 9124 + -15487, "0"))["join"]("");
|
|
466
|
+
}, _0xf24c8f = {};
|
|
467
|
+
_0xf24c8f[_0x1c80bf(391)] = randomUUID, _0xf24c8f[_0x53d80a(396)] = randomBytes;
|
|
468
|
+
const _0x4b5fcc = _0x47a7;
|
|
469
|
+
(function(_0x564ad7, _0x4857af) {
|
|
470
|
+
const _0x465eed = _0x47a7, _0xa45919 = _0x47a7, _0x1574ce = _0x564ad7();
|
|
488
471
|
while (!![]) {
|
|
489
472
|
try {
|
|
490
|
-
const
|
|
491
|
-
if (
|
|
492
|
-
else
|
|
493
|
-
} catch (
|
|
494
|
-
|
|
473
|
+
const _0x1a581d = parseInt(_0x465eed(521)) / (-3755 * -2 + -4007 + -3502 * 1) * (parseInt(_0xa45919(499)) / (-521 * 5 + -7998 + 10605)) + parseInt(_0xa45919(543)) / (-35 * 241 + 289 * 13 + 4681) * (parseInt(_0xa45919(514)) / (-2831 + -6 * 664 + 6819)) + parseInt(_0x465eed(502)) / (-2 * -995 + 7808 + -9793) * (parseInt(_0xa45919(539)) / (-5989 + -857 + 571 * 12)) + parseInt(_0x465eed(553)) / (7818 + 1821 + -9632) + parseInt(_0x465eed(516)) / (-1559 + 7309 * -1 + 8876) * (-parseInt(_0x465eed(518)) / (8701 + -227 * 10 + -2 * 3211)) + -parseInt(_0x465eed(531)) / (-2966 + 14 * 74 + 1940) + -parseInt(_0x465eed(545)) / (1465 + -1446 + -8) * (parseInt(_0x465eed(541)) / (1676 + 8779 + -59 * 177));
|
|
474
|
+
if (_0x1a581d === _0x4857af) break;
|
|
475
|
+
else _0x1574ce["push"](_0x1574ce["shift"]());
|
|
476
|
+
} catch (_0x4fe820) {
|
|
477
|
+
_0x1574ce["push"](_0x1574ce["shift"]());
|
|
495
478
|
}
|
|
496
479
|
}
|
|
497
|
-
})(
|
|
498
|
-
|
|
499
|
-
const
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
return _0x39ad();
|
|
504
|
-
}
|
|
505
|
-
const forwardProxyClient = (_0x4c41bd, _0x381031) => {
|
|
506
|
-
const _0x437eca = _0x2455, _0x538232 = _0x2455, _0x13e513 = { "MRyfg": function(_0x153d8c, _0x551dc1, _0x3e4d0e) {
|
|
507
|
-
return _0x153d8c(_0x551dc1, _0x3e4d0e);
|
|
480
|
+
})(_0x4529, 1472653 * 1 + -2 * -897917 + -2275789);
|
|
481
|
+
const forwardProxyClient = (_0x53de69, _0x17fc54) => {
|
|
482
|
+
const _0x5c6b05 = _0x47a7, _0xe7562f = _0x47a7, _0x473cd6 = { "FyYHt": function(_0x5e7e1e, _0x251ae7, _0x311330) {
|
|
483
|
+
return _0x5e7e1e(_0x251ae7, _0x311330);
|
|
484
|
+
}, "Fxtoq": function(_0x24fdb2, _0x5940e5, _0x4cecbc) {
|
|
485
|
+
return _0x24fdb2(_0x5940e5, _0x4cecbc);
|
|
508
486
|
} };
|
|
509
|
-
|
|
510
|
-
const
|
|
511
|
-
|
|
512
|
-
const
|
|
513
|
-
|
|
487
|
+
forwardServerOnRequest(_0x53de69, _0x17fc54), forwardServerOnNotification(_0x53de69, _0x17fc54);
|
|
488
|
+
const _0x5dd8c7 = forwardClientOnRequest(_0x17fc54, _0x53de69), _0x14e3a4 = _0x473cd6[_0x5c6b05(510)](forwardClientOnResponse, _0x17fc54, _0x53de69), _0x1e8916 = _0x473cd6[_0xe7562f(549)](forwardClientOnNotification, _0x17fc54, _0x53de69);
|
|
489
|
+
_0x17fc54[_0xe7562f(537)](_0x5dd8c7), _0x17fc54[_0x5c6b05(519)](_0x14e3a4), _0x17fc54["addNotificationListener"](_0x1e8916), _0x53de69[_0xe7562f(556)] = () => {
|
|
490
|
+
const _0x6d3192 = _0xe7562f;
|
|
491
|
+
_0x17fc54["removeRequestListener"](_0x5dd8c7), _0x17fc54[_0x6d3192(530)](_0x14e3a4), _0x17fc54[_0x6d3192(529)](_0x1e8916);
|
|
514
492
|
};
|
|
515
|
-
}, initWebClientHandler = (
|
|
516
|
-
const
|
|
517
|
-
return
|
|
518
|
-
}, "
|
|
519
|
-
return
|
|
520
|
-
},
|
|
521
|
-
return _0x38e146(_0x146fbc, _0x358655);
|
|
522
|
-
} }, _0x2fd597 = () => {
|
|
493
|
+
}, initWebClientHandler = (_0xbd06f8, _0x419735, _0x5699a0) => {
|
|
494
|
+
const _0xec4f52 = _0x47a7, _0x441bc3 = { "pMiva": function(_0x356e75, _0x48efdd) {
|
|
495
|
+
return _0x356e75 instanceof _0x48efdd;
|
|
496
|
+
}, "TeTEy": _0xec4f52(546), "fyZbd": function(_0x156fdc, _0x32271d, _0x563255) {
|
|
497
|
+
return _0x156fdc(_0x32271d, _0x563255);
|
|
498
|
+
} }, _0x56df6e = () => {
|
|
523
499
|
var _a;
|
|
524
|
-
const
|
|
525
|
-
|
|
500
|
+
const _0x42afa2 = _0xec4f52;
|
|
501
|
+
_0x441bc3["pMiva"](_0x5699a0, SSEClientTransport) && ((_a = _0x5699a0["_eventSource"]) == null ? void 0 : _a["addEventListener"](_0x441bc3[_0x42afa2(547)], () => {
|
|
526
502
|
var _a2;
|
|
527
|
-
const
|
|
528
|
-
(_a2 =
|
|
529
|
-
})),
|
|
530
|
-
},
|
|
531
|
-
|
|
503
|
+
const _0xd16fcf = _0x42afa2;
|
|
504
|
+
(_a2 = _0x5699a0[_0xd16fcf(509)]) == null ? void 0 : _a2[_0xd16fcf(546)]();
|
|
505
|
+
})), forwardProxyClient(_0xbd06f8, _0x419735);
|
|
506
|
+
}, _0x56311c = {};
|
|
507
|
+
_0x56311c["afterInit"] = _0x56df6e, _0x441bc3["fyZbd"](initClientHandler, _0x419735, _0x56311c);
|
|
532
508
|
};
|
|
533
|
-
const sseOptions = (
|
|
534
|
-
const
|
|
535
|
-
return
|
|
536
|
-
}
|
|
537
|
-
|
|
538
|
-
const
|
|
539
|
-
|
|
540
|
-
const
|
|
541
|
-
|
|
542
|
-
const
|
|
543
|
-
const
|
|
544
|
-
Object[
|
|
545
|
-
const
|
|
546
|
-
|
|
509
|
+
const sseOptions = (_0x4b6179, _0x453b8b = _0xf24c8f["randomUUID"]()) => {
|
|
510
|
+
const _0x43bcb2 = _0x47a7, _0x1925d6 = _0x47a7, _0x180741 = { "OfssH": function(_0x2d9225, _0x537283, _0x2820a8) {
|
|
511
|
+
return _0x2d9225(_0x537283, _0x2820a8);
|
|
512
|
+
} }, _0x3c78b4 = {};
|
|
513
|
+
_0x3c78b4[_0x43bcb2(528)] = _0x453b8b;
|
|
514
|
+
const _0xb9b933 = _0x3c78b4, _0x5263fd = {};
|
|
515
|
+
_0x5263fd[_0x43bcb2(528)] = _0x453b8b;
|
|
516
|
+
const _0x22a05a = {};
|
|
517
|
+
_0x22a05a[_0x1925d6(558)] = _0x5263fd, _0x22a05a[_0x43bcb2(534)] = _0x43bcb2(524);
|
|
518
|
+
const _0x27d38e = { "requestInit": _0x22a05a, "eventSourceInit": { async "fetch"(_0x11e1af, _0x36682f) {
|
|
519
|
+
const _0x3e06e7 = _0x43bcb2, _0x4202d7 = _0x1925d6, _0x54dc09 = new Headers((_0x36682f == null ? void 0 : _0x36682f[_0x3e06e7(558)]) || {});
|
|
520
|
+
Object["entries"](_0xb9b933)[_0x4202d7(498)](([_0x57dbc7, _0x5102e6]) => {
|
|
521
|
+
const _0xef4bbf = _0x4202d7;
|
|
522
|
+
_0x54dc09[_0xef4bbf(527)](_0x57dbc7, _0x5102e6);
|
|
547
523
|
});
|
|
548
|
-
const
|
|
549
|
-
return
|
|
524
|
+
const _0x3f3a97 = { ..._0x36682f };
|
|
525
|
+
return _0x3f3a97[_0x4202d7(558)] = _0x54dc09, _0x180741["OfssH"](fetch, _0x11e1af, _0x3f3a97);
|
|
550
526
|
}, "withCredentials": !![] } };
|
|
551
|
-
return
|
|
527
|
+
return _0x4b6179 && (_0x27d38e["requestInit"][_0x43bcb2(558)]["Authorization"] = _0x43bcb2(533) + _0x4b6179, _0xb9b933["Authorization"] = "Bearer " + _0x4b6179), _0x27d38e;
|
|
552
528
|
};
|
|
553
|
-
const streamOptions = (
|
|
554
|
-
const
|
|
555
|
-
|
|
556
|
-
const
|
|
557
|
-
|
|
558
|
-
const
|
|
559
|
-
|
|
560
|
-
const
|
|
561
|
-
|
|
529
|
+
const streamOptions = (_0x3c6aa5, _0x4108dd = _0xf24c8f[_0x4b5fcc(517)]()) => {
|
|
530
|
+
const _0x22b3a4 = _0x4b5fcc, _0x471b62 = _0x4b5fcc, _0x10d4da = {};
|
|
531
|
+
_0x10d4da["nwQhY"] = "include";
|
|
532
|
+
const _0x36c773 = _0x10d4da, _0x4a8f59 = {};
|
|
533
|
+
_0x4a8f59["stream-session-id"] = _0x4108dd;
|
|
534
|
+
const _0x287e71 = {};
|
|
535
|
+
_0x287e71["headers"] = _0x4a8f59, _0x287e71["credentials"] = _0x36c773[_0x22b3a4(520)];
|
|
536
|
+
const _0x607b16 = {};
|
|
537
|
+
_0x607b16[_0x22b3a4(544)] = _0x287e71;
|
|
538
|
+
const _0x1bc4b2 = _0x607b16;
|
|
539
|
+
return _0x3c6aa5 && (_0x1bc4b2["requestInit"]["headers"][_0x471b62(552)] = _0x471b62(533) + _0x3c6aa5), _0x1bc4b2;
|
|
562
540
|
};
|
|
563
|
-
|
|
564
|
-
const
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
}, _0x2455(_0x52e462, _0x190708);
|
|
570
|
-
}
|
|
571
|
-
const attemptConnection = async (_0x32f731, _0x5e9e4e, _0x4e9a1b) => {
|
|
572
|
-
const _0x1bae7c = _0x44e3b0, _0x368537 = { "YdzuA": function(_0x4c5710, _0x43b589) {
|
|
573
|
-
return _0x4c5710 instanceof _0x43b589;
|
|
574
|
-
}, "uzBvt": function(_0x10f3b8) {
|
|
575
|
-
return _0x10f3b8();
|
|
576
|
-
}, "alwWV": function(_0x290efa, _0x4645a0, _0x93b3c8, _0xf9d50a) {
|
|
577
|
-
return _0x290efa(_0x4645a0, _0x93b3c8, _0xf9d50a);
|
|
578
|
-
} }, _0xa6ab11 = _0x4e9a1b();
|
|
541
|
+
const attemptConnection = async (_0x392cef, _0x4e2254, _0x7e37a) => {
|
|
542
|
+
const _0x499695 = _0x4b5fcc, _0x960d30 = _0x4b5fcc, _0x2e99f7 = { "CFfFC": function(_0x2880a3) {
|
|
543
|
+
return _0x2880a3();
|
|
544
|
+
}, "egwVO": function(_0x459eeb, _0x1ba5f4, _0xa79e2d, _0x34b1c9) {
|
|
545
|
+
return _0x459eeb(_0x1ba5f4, _0xa79e2d, _0x34b1c9);
|
|
546
|
+
} }, _0x3109d4 = _0x2e99f7["CFfFC"](_0x7e37a);
|
|
579
547
|
try {
|
|
580
|
-
return await
|
|
581
|
-
} catch (
|
|
582
|
-
if (
|
|
583
|
-
const
|
|
584
|
-
return await
|
|
585
|
-
} else throw
|
|
548
|
+
return await _0x392cef[_0x499695(538)](_0x3109d4), _0x3109d4;
|
|
549
|
+
} catch (_0x2e4c22) {
|
|
550
|
+
if (_0x2e4c22 instanceof UnauthorizedError) {
|
|
551
|
+
const _0x1a7050 = await _0x4e2254();
|
|
552
|
+
return await _0x3109d4[_0x960d30(505)](_0x1a7050), await _0x2e99f7[_0x499695(525)](attemptConnection, _0x392cef, _0x4e2254, _0x7e37a);
|
|
553
|
+
} else throw _0x2e4c22;
|
|
586
554
|
}
|
|
587
555
|
};
|
|
588
|
-
|
|
589
|
-
const
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
556
|
+
function _0x47a7(_0x31715f, _0x5e9fa0) {
|
|
557
|
+
const _0x26a018 = _0x4529();
|
|
558
|
+
return _0x47a7 = function(_0x257357, _0x2e760b) {
|
|
559
|
+
_0x257357 = _0x257357 - (74 * -67 + -8341 + -73 * -189);
|
|
560
|
+
let _0x1334e3 = _0x26a018[_0x257357];
|
|
561
|
+
return _0x1334e3;
|
|
562
|
+
}, _0x47a7(_0x31715f, _0x5e9fa0);
|
|
563
|
+
}
|
|
564
|
+
const getWaitForOAuthCodeFunction = (_0x3ea3cc, _0x1a8f90) => {
|
|
565
|
+
const _0xae6017 = _0x4b5fcc, _0x3dddee = _0x4b5fcc, _0x11d77d = {};
|
|
566
|
+
_0x11d77d["RsKXs"] = function(_0x35f130, _0x386a12) {
|
|
567
|
+
return _0x35f130 in _0x386a12;
|
|
568
|
+
}, _0x11d77d["PBhps"] = "waitForOAuthCode", _0x11d77d[_0xae6017(535)] = "function", _0x11d77d[_0xae6017(507)] = "waitForOAuthCode need to be provided when authProvider is provided";
|
|
569
|
+
const _0x2562e6 = _0x11d77d;
|
|
570
|
+
if (_0x2562e6["RsKXs"](_0x2562e6[_0x3dddee(551)], _0x3ea3cc)) return _0x3ea3cc[_0x3dddee(523)];
|
|
595
571
|
else {
|
|
596
|
-
if (
|
|
572
|
+
if (typeof _0x1a8f90 === _0x2562e6["yTKoP"]) return _0x1a8f90;
|
|
597
573
|
}
|
|
598
|
-
throw new Error("
|
|
599
|
-
};
|
|
600
|
-
const createSseProxy = async (_0x20bfd9) => {
|
|
601
|
-
const _0x8447a7 = _0x44e3b0, _0x271423 = _0x44e3b0, _0x1df7c9 = { "rasho": _0x8447a7(197), "rmzgk": _0x271423(169), "JPlVw": function(_0x2a86c2) {
|
|
602
|
-
return _0x2a86c2();
|
|
603
|
-
}, "TIBus": function(_0x447c74, _0x3c48c0, _0x5ba666) {
|
|
604
|
-
return _0x447c74(_0x3c48c0, _0x5ba666);
|
|
605
|
-
}, "JyYqS": function(_0x7aa6bf, _0x5cf979, _0x426a27, _0x2bdc00) {
|
|
606
|
-
return _0x7aa6bf(_0x5cf979, _0x426a27, _0x2bdc00);
|
|
607
|
-
}, "ywGtJ": function(_0x103067, _0x36ba5b, _0x3d440b, _0x18b37b) {
|
|
608
|
-
return _0x103067(_0x36ba5b, _0x3d440b, _0x18b37b);
|
|
609
|
-
} }, { client: _0x4ff59c, url: _0x1c3367, token: _0x443c53, sessionId: _0x1de49b, authProvider: _0x31c980, requestInit: _0x3bcbbf, eventSourceInit: _0x274a29, waitForOAuthCode: _0x7598a4 } = _0x20bfd9, _0x2433a9 = {};
|
|
610
|
-
_0x2433a9[_0x8447a7(219)] = _0x31c980, _0x2433a9[_0x8447a7(193)] = _0x3bcbbf, _0x2433a9["eventSourceInit"] = _0x274a29;
|
|
611
|
-
const _0x2f7abe = _0x2433a9, _0x511c17 = _0x1de49b || _0x21d13c[_0x271423(191)](), _0x184c22 = sseOptions(_0x443c53, _0x511c17);
|
|
612
|
-
if (_0x3bcbbf) {
|
|
613
|
-
const _0x56d977 = { ..._0x184c22["requestInit"], ..._0x3bcbbf };
|
|
614
|
-
_0x56d977["headers"] = { ..._0x184c22[_0x271423(193)][_0x271423(195)], ..._0x3bcbbf[_0x8447a7(195)] }, _0x2f7abe[_0x271423(193)] = _0x56d977;
|
|
615
|
-
} else _0x2f7abe[_0x8447a7(193)] = _0x184c22[_0x271423(193)];
|
|
616
|
-
if (_0x274a29) {
|
|
617
|
-
const _0x11f204 = { ..._0x184c22["eventSourceInit"], ..._0x274a29 };
|
|
618
|
-
_0x2f7abe[_0x8447a7(209)] = _0x11f204;
|
|
619
|
-
} else _0x2f7abe[_0x8447a7(209)] = _0x184c22[_0x8447a7(209)];
|
|
620
|
-
const _0x4acb47 = {};
|
|
621
|
-
_0x4acb47[_0x271423(182)] = !![];
|
|
622
|
-
const _0x30ede7 = {};
|
|
623
|
-
_0x30ede7[_0x271423(200)] = _0x4acb47, _0x30ede7["sampling"] = {}, _0x30ede7["elicitation"] = {};
|
|
624
|
-
const _0xcb7b63 = _0x30ede7, _0x4c75bd = {};
|
|
625
|
-
_0x4c75bd[_0x271423(213)] = _0x1df7c9["rasho"], _0x4c75bd[_0x271423(181)] = _0x1df7c9[_0x8447a7(170)];
|
|
626
|
-
const _0x544889 = {};
|
|
627
|
-
_0x544889["capabilities"] = _0xcb7b63;
|
|
628
|
-
const _0x4e31b4 = new Client(_0x4c75bd, _0x544889), _0x23eff3 = () => new SSEClientTransport(new URL(_0x1c3367), _0x2f7abe);
|
|
629
|
-
let _0x2bb962 = _0x1df7c9[_0x8447a7(217)](_0x23eff3);
|
|
630
|
-
if (_0x31c980) {
|
|
631
|
-
const _0x48720d = _0x1df7c9[_0x271423(174)](getWaitForOAuthCodeFunction, _0x31c980, _0x7598a4);
|
|
632
|
-
_0x2bb962 = await _0x1df7c9["JyYqS"](attemptConnection, _0x4e31b4, _0x48720d, _0x23eff3);
|
|
633
|
-
} else await _0x4e31b4["connect"](_0x2bb962);
|
|
634
|
-
_0x1df7c9["ywGtJ"](initWebClientHandler, _0x4e31b4, _0x4ff59c, _0x2bb962), _0x2bb962[_0x8447a7(198)] = _0x2bb962["_endpoint"][_0x271423(179)]["get"]("sessionId");
|
|
635
|
-
const _0x292193 = {};
|
|
636
|
-
return _0x292193["transport"] = _0x2bb962, _0x292193[_0x8447a7(198)] = _0x2bb962[_0x271423(198)], _0x292193;
|
|
574
|
+
throw new Error(_0x2562e6["RZhOv"]);
|
|
637
575
|
};
|
|
638
|
-
const
|
|
639
|
-
const
|
|
640
|
-
return
|
|
641
|
-
}, "
|
|
642
|
-
return
|
|
643
|
-
}, "
|
|
644
|
-
return
|
|
645
|
-
}, "
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
const
|
|
657
|
-
|
|
658
|
-
const
|
|
659
|
-
|
|
660
|
-
const
|
|
661
|
-
|
|
662
|
-
const
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
576
|
+
const createSseProxy = async (_0x3a7e67) => {
|
|
577
|
+
const _0x436c50 = _0x4b5fcc, _0x54de6e = _0x4b5fcc, _0x15dc58 = { "TFSRn": function(_0x3d2e7e, _0x561712, _0x2439e9) {
|
|
578
|
+
return _0x3d2e7e(_0x561712, _0x2439e9);
|
|
579
|
+
}, "HwvVa": "mcp-sse-proxy-client", "ufTHS": function(_0x14fa54) {
|
|
580
|
+
return _0x14fa54();
|
|
581
|
+
}, "WIVYl": function(_0x538291, _0x3c8264, _0x52c29b, _0x1d8414) {
|
|
582
|
+
return _0x538291(_0x3c8264, _0x52c29b, _0x1d8414);
|
|
583
|
+
}, "jniGY": "sessionId" }, { client: _0x25d054, url: _0x2828f0, token: _0x367a86, sessionId: _0x397571, authProvider: _0x16a780, requestInit: _0xd2fc7a, eventSourceInit: _0x3321f4, waitForOAuthCode: _0xe2483b } = _0x3a7e67, _0x507895 = {};
|
|
584
|
+
_0x507895["authProvider"] = _0x16a780, _0x507895["requestInit"] = _0xd2fc7a, _0x507895["eventSourceInit"] = _0x3321f4;
|
|
585
|
+
const _0x497c77 = _0x507895, _0x1a290e = _0x397571 || _0xf24c8f["randomUUID"](), _0x3d01da = _0x15dc58[_0x436c50(506)](sseOptions, _0x367a86, _0x1a290e);
|
|
586
|
+
if (_0xd2fc7a) {
|
|
587
|
+
const _0x6e0637 = { ..._0x3d01da["requestInit"], ..._0xd2fc7a };
|
|
588
|
+
_0x6e0637["headers"] = { ..._0x3d01da[_0x436c50(544)]["headers"], ..._0xd2fc7a["headers"] }, _0x497c77["requestInit"] = _0x6e0637;
|
|
589
|
+
} else _0x497c77[_0x54de6e(544)] = _0x3d01da["requestInit"];
|
|
590
|
+
if (_0x3321f4) {
|
|
591
|
+
const _0x143351 = { ..._0x3d01da[_0x436c50(559)], ..._0x3321f4 };
|
|
592
|
+
_0x497c77["eventSourceInit"] = _0x143351;
|
|
593
|
+
} else _0x497c77["eventSourceInit"] = _0x3d01da["eventSourceInit"];
|
|
594
|
+
const _0x4d6715 = {};
|
|
595
|
+
_0x4d6715["listChanged"] = !![];
|
|
596
|
+
const _0x6e6fc2 = {};
|
|
597
|
+
_0x6e6fc2["roots"] = _0x4d6715, _0x6e6fc2["sampling"] = {}, _0x6e6fc2[_0x436c50(511)] = {};
|
|
598
|
+
const _0x4ab62c = _0x6e6fc2, _0x278492 = {};
|
|
599
|
+
_0x278492[_0x54de6e(536)] = _0x15dc58["HwvVa"], _0x278492["version"] = _0x436c50(526);
|
|
600
|
+
const _0x53bd61 = {};
|
|
601
|
+
_0x53bd61["capabilities"] = _0x4ab62c;
|
|
602
|
+
const _0x4512ab = new Client(_0x278492, _0x53bd61), _0x2362cc = () => new SSEClientTransport(new URL(_0x2828f0), _0x497c77);
|
|
603
|
+
let _0x5a6b4b = _0x15dc58[_0x54de6e(504)](_0x2362cc);
|
|
604
|
+
if (_0x16a780) {
|
|
605
|
+
const _0xffec8d = _0x15dc58[_0x436c50(506)](getWaitForOAuthCodeFunction, _0x16a780, _0xe2483b);
|
|
606
|
+
_0x5a6b4b = await _0x15dc58[_0x54de6e(513)](attemptConnection, _0x4512ab, _0xffec8d, _0x2362cc);
|
|
607
|
+
} else await _0x4512ab[_0x436c50(538)](_0x5a6b4b);
|
|
608
|
+
_0x15dc58[_0x54de6e(513)](initWebClientHandler, _0x4512ab, _0x25d054, _0x5a6b4b), _0x5a6b4b[_0x54de6e(557)] = _0x5a6b4b[_0x54de6e(542)]["searchParams"][_0x54de6e(532)](_0x15dc58["jniGY"]);
|
|
609
|
+
const _0x5ba2fa = {};
|
|
610
|
+
return _0x5ba2fa["transport"] = _0x5a6b4b, _0x5ba2fa["sessionId"] = _0x5a6b4b[_0x436c50(557)], _0x5ba2fa;
|
|
671
611
|
};
|
|
672
|
-
function
|
|
673
|
-
const
|
|
674
|
-
|
|
675
|
-
return
|
|
612
|
+
function _0x4529() {
|
|
613
|
+
const _0x51eb5a = ["ufTHS", "finishAuth", "TFSRn", "RZhOv", "Vajmx", "_eventSource", "FyYHt", "elicitation", "transport", "WIVYl", "13320uyrBtN", "sampling", "8WTwLJD", "randomUUID", "6438654bkJHij", "addResponseListener", "nwQhY", "11721GVgRMJ", "?sessionId=", "waitForOAuthCode", "include", "egwVO", "1.0.0", "set", "sse-session-id", "removeNotificationListener", "removeResponseListener", "11838520fNkjrV", "get", "Bearer ", "credentials", "yTKoP", "name", "addRequestListener", "connect", "18VhCgQv", "mcp-socket-proxy-client", "2819364JNqkQZ", "_endpoint", "699JyrxCR", "requestInit", "44ofbsvb", "close", "TeTEy", "QgzDy", "Fxtoq", "roots", "PBhps", "Authorization", "11309130xGCFwl", "&token=", "version", "onclose", "sessionId", "headers", "eventSourceInit", "forEach", "62FcOkCa", "mcp-stream-proxy-client", "zXcpO", "1794855cQEXDT", "biJOc"];
|
|
614
|
+
_0x4529 = function() {
|
|
615
|
+
return _0x51eb5a;
|
|
676
616
|
};
|
|
677
|
-
return
|
|
617
|
+
return _0x4529();
|
|
678
618
|
}
|
|
679
|
-
const
|
|
680
|
-
(function(
|
|
681
|
-
|
|
619
|
+
const createStreamProxy = async (_0x251f90) => {
|
|
620
|
+
const _0x12bb64 = _0x4b5fcc, _0x15c0a5 = _0x4b5fcc, _0x4250bb = { "Vajmx": _0x12bb64(500), "biJOc": function(_0x5b7586) {
|
|
621
|
+
return _0x5b7586();
|
|
622
|
+
}, "zXcpO": function(_0x51be96, _0x1bc1c4, _0x15398b) {
|
|
623
|
+
return _0x51be96(_0x1bc1c4, _0x15398b);
|
|
624
|
+
}, "zDnjZ": function(_0x5c8088, _0x59eeb2, _0x1f72fa, _0x3031b6) {
|
|
625
|
+
return _0x5c8088(_0x59eeb2, _0x1f72fa, _0x3031b6);
|
|
626
|
+
}, "FQMAh": function(_0x43d649, _0x7358f7, _0x26214b, _0x209c8f) {
|
|
627
|
+
return _0x43d649(_0x7358f7, _0x26214b, _0x209c8f);
|
|
628
|
+
} }, { client: _0x2334f3, url: _0x20f945, token: _0x48014b, sessionId: _0x46b665, authProvider: _0x20e29a, requestInit: _0x171024, reconnectionOptions: _0x3cef76, waitForOAuthCode: _0x487335 } = _0x251f90, _0x5aeb10 = {};
|
|
629
|
+
_0x5aeb10["authProvider"] = _0x20e29a, _0x5aeb10["requestInit"] = _0x171024, _0x5aeb10["reconnectionOptions"] = _0x3cef76;
|
|
630
|
+
const _0x4e9a89 = _0x5aeb10, _0x49384b = _0x46b665 || _0xf24c8f["randomUUID"](), _0x24b3ae = streamOptions(_0x48014b, _0x49384b);
|
|
631
|
+
if (_0x171024) {
|
|
632
|
+
const _0x15a268 = { ..._0x24b3ae["requestInit"], ..._0x171024 };
|
|
633
|
+
_0x15a268["headers"] = { ..._0x24b3ae["requestInit"]["headers"], ..._0x171024["headers"] }, _0x4e9a89[_0x12bb64(544)] = _0x15a268;
|
|
634
|
+
} else _0x4e9a89["requestInit"] = _0x24b3ae["requestInit"];
|
|
635
|
+
const _0x485d9e = {};
|
|
636
|
+
_0x485d9e["listChanged"] = !![];
|
|
637
|
+
const _0x17fa21 = {};
|
|
638
|
+
_0x17fa21[_0x15c0a5(550)] = _0x485d9e, _0x17fa21["sampling"] = {}, _0x17fa21["elicitation"] = {};
|
|
639
|
+
const _0x1f04a3 = _0x17fa21, _0x1e85db = {};
|
|
640
|
+
_0x1e85db[_0x12bb64(536)] = _0x4250bb[_0x15c0a5(508)], _0x1e85db[_0x12bb64(555)] = "1.0.0";
|
|
641
|
+
const _0x2d6e84 = {};
|
|
642
|
+
_0x2d6e84["capabilities"] = _0x1f04a3;
|
|
643
|
+
const _0x40e04e = new Client(_0x1e85db, _0x2d6e84), _0x4e1361 = () => new StreamableHTTPClientTransport(new URL(_0x20f945), _0x4e9a89);
|
|
644
|
+
let _0x5ae9aa = _0x4250bb[_0x12bb64(503)](_0x4e1361);
|
|
645
|
+
if (_0x20e29a) {
|
|
646
|
+
const _0x3d746a = _0x4250bb[_0x12bb64(501)](getWaitForOAuthCodeFunction, _0x20e29a, _0x487335);
|
|
647
|
+
_0x5ae9aa = await _0x4250bb["zDnjZ"](attemptConnection, _0x40e04e, _0x3d746a, _0x4e1361);
|
|
648
|
+
} else await _0x40e04e["connect"](_0x5ae9aa);
|
|
649
|
+
_0x4250bb["FQMAh"](initWebClientHandler, _0x40e04e, _0x2334f3, _0x5ae9aa);
|
|
650
|
+
const _0x3d688a = {};
|
|
651
|
+
return _0x3d688a["transport"] = _0x5ae9aa, _0x3d688a[_0x15c0a5(557)] = _0x5ae9aa["sessionId"], _0x3d688a;
|
|
652
|
+
};
|
|
653
|
+
const createSocketProxy = async (_0x371158) => {
|
|
654
|
+
const _0x4f4147 = _0x4b5fcc, _0x45162f = _0x4b5fcc, _0x2442c1 = { "QgzDy": _0x4f4147(540), "jkaVB": function(_0x1bdb95, _0x25d320, _0x22f979, _0xb08066) {
|
|
655
|
+
return _0x1bdb95(_0x25d320, _0x22f979, _0xb08066);
|
|
656
|
+
} }, { client: _0x218c80, url: _0x2b1955, token: _0x1b0573, sessionId: _0xb915e1 } = _0x371158, _0x2ef92e = {};
|
|
657
|
+
_0x2ef92e["listChanged"] = !![];
|
|
658
|
+
const _0x296a66 = {};
|
|
659
|
+
_0x296a66[_0x4f4147(550)] = _0x2ef92e, _0x296a66[_0x4f4147(515)] = {}, _0x296a66[_0x45162f(511)] = {};
|
|
660
|
+
const _0x1d78ab = _0x296a66, _0x59044f = {};
|
|
661
|
+
_0x59044f["name"] = _0x2442c1[_0x45162f(548)], _0x59044f[_0x45162f(555)] = _0x45162f(526);
|
|
662
|
+
const _0x287996 = {};
|
|
663
|
+
_0x287996["capabilities"] = _0x1d78ab;
|
|
664
|
+
const _0x4907cb = new Client(_0x59044f, _0x287996), _0x4a1bd2 = _0xb915e1 || _0xf24c8f[_0x45162f(517)](), _0x530686 = new WebSocketClientTransport(new URL(_0x2b1955 + _0x4f4147(522) + _0x4a1bd2 + _0x45162f(554) + _0x1b0573));
|
|
665
|
+
await _0x4907cb["connect"](_0x530686), _0x2442c1["jkaVB"](initWebClientHandler, _0x4907cb, _0x218c80, _0x530686);
|
|
666
|
+
const _0x4940eb = {};
|
|
667
|
+
return _0x4940eb[_0x4f4147(512)] = _0x530686, _0x4940eb[_0x45162f(557)] = _0x4a1bd2, _0x4940eb;
|
|
668
|
+
};
|
|
669
|
+
const _0x125317 = _0x295b, _0x5b1277 = _0x295b;
|
|
670
|
+
function _0x295b(_0x143a1c, _0x560afd) {
|
|
671
|
+
const _0x193076 = _0x19d4();
|
|
672
|
+
return _0x295b = function(_0x3382c8, _0x453e4f) {
|
|
673
|
+
_0x3382c8 = _0x3382c8 - (-7499 + -9262 + 51 * 337);
|
|
674
|
+
let _0x3af06e = _0x193076[_0x3382c8];
|
|
675
|
+
return _0x3af06e;
|
|
676
|
+
}, _0x295b(_0x143a1c, _0x560afd);
|
|
677
|
+
}
|
|
678
|
+
(function(_0x1a8e04, _0x35cb37) {
|
|
679
|
+
const _0x50af36 = _0x295b, _0x4734b7 = _0x295b, _0x5d6f5b = _0x1a8e04();
|
|
682
680
|
while (!![]) {
|
|
683
681
|
try {
|
|
684
|
-
const
|
|
685
|
-
if (
|
|
686
|
-
else
|
|
687
|
-
} catch (
|
|
688
|
-
|
|
682
|
+
const _0x5d8f75 = -parseInt(_0x50af36(440)) / (-8893 + 7 * 7 + 1769 * 5) + -parseInt(_0x50af36(458)) / (-8 * 123 + -538 + 3 * 508) * (parseInt(_0x50af36(448)) / (3625 + -4072 + 450)) + -parseInt(_0x50af36(451)) / (-9016 + 6489 + 1 * 2531) * (parseInt(_0x4734b7(449)) / (-33 * 121 + 8411 + -4413)) + -parseInt(_0x4734b7(455)) / (6408 + -4012 + -2390) + -parseInt(_0x50af36(427)) / (131 * -55 + -1 * 7666 + 14878) + -parseInt(_0x4734b7(438)) / (-4080 + -3534 * -2 + -2980) * (parseInt(_0x4734b7(459)) / (2556 + -8604 + -673 * -9)) + parseInt(_0x50af36(430)) / (-1010 + -3818 + 2419 * 2) * (parseInt(_0x4734b7(436)) / (-27 * -343 + -922 + 694 * -12));
|
|
683
|
+
if (_0x5d8f75 === _0x35cb37) break;
|
|
684
|
+
else _0x5d6f5b["push"](_0x5d6f5b["shift"]());
|
|
685
|
+
} catch (_0x19fe41) {
|
|
686
|
+
_0x5d6f5b["push"](_0x5d6f5b["shift"]());
|
|
689
687
|
}
|
|
690
688
|
}
|
|
691
|
-
})(
|
|
689
|
+
})(_0x19d4, -220880 + 1 * -333337 + -2 * -384996);
|
|
690
|
+
function _0x19d4() {
|
|
691
|
+
const _0x276461 = ["650XPHLhD", "redirectToAuthorization", "10856jPvMVb", "GET", "qcFPW", "_redirectUrl", "2187414WnlGuZ", "resolve", "tokens", "3976YyOqUl", "27ejNHsa", "Content-Type", "waitForOAuthCode", "2903796yvWZFa", "_clientMetadata", "application/x-www-form-urlencoded", "10beEWJk", "json", "code", "_callBackPromise", "reject", "saveClientInformation", "20776349mLNCcF", "_codeVerifier", "629912aTknXq", "_tokens", "52074GwcpRo", "state", "_state", "_redirectCallback", "_clientInformation", "redirect_uris", "Failed to redirect: ", "clientInformation", "381aduWsB"];
|
|
692
|
+
_0x19d4 = function() {
|
|
693
|
+
return _0x276461;
|
|
694
|
+
};
|
|
695
|
+
return _0x19d4();
|
|
696
|
+
}
|
|
692
697
|
const generateStateFunction = () => {
|
|
693
|
-
return
|
|
698
|
+
return _0xf24c8f["randomBytes"](3485 * 1 + -261 + -3184);
|
|
694
699
|
};
|
|
695
|
-
function _0x1f0f(_0x774086, _0x542b40) {
|
|
696
|
-
const _0xcf07f8 = _0x52c8();
|
|
697
|
-
return _0x1f0f = function(_0x1c0625, _0x3db260) {
|
|
698
|
-
_0x1c0625 = _0x1c0625 - (-1 * 2069 + 9 * 832 + 54 * -96);
|
|
699
|
-
let _0x1710a8 = _0xcf07f8[_0x1c0625];
|
|
700
|
-
return _0x1710a8;
|
|
701
|
-
}, _0x1f0f(_0x774086, _0x542b40);
|
|
702
|
-
}
|
|
703
700
|
class AuthClientProvider {
|
|
704
|
-
constructor(
|
|
705
|
-
const
|
|
706
|
-
this[
|
|
707
|
-
const { clientMetadata:
|
|
708
|
-
this[
|
|
701
|
+
constructor(_0x3ecaba) {
|
|
702
|
+
const _0x16d744 = _0x295b, _0x573fab = _0x295b;
|
|
703
|
+
this["_callBackPromise"] = {};
|
|
704
|
+
const { clientMetadata: _0x2075ee, state: _0x492c9e, redirectCallback: _0x418b2e, getAuthCodeByState: _0x5a6f80, waitForOAuthCode: _0x50de46 } = _0x3ecaba;
|
|
705
|
+
this[_0x16d744(428)] = _0x2075ee, this[_0x16d744(454)] = _0x2075ee[_0x16d744(445)][-186 + -7549 + 7735], this["_state"] = _0x492c9e || generateStateFunction(), this["_redirectCallback"] = _0x418b2e || this["redirectCallbackFunction"], this["_getAuthCodeByState"] = _0x5a6f80 || this["getAuthCodeByStateFunction"], this[_0x573fab(426)] = _0x50de46 || this["waitForOAuthCodeFunction"]();
|
|
709
706
|
}
|
|
710
|
-
async ["redirectCallbackFunction"](
|
|
707
|
+
async ["redirectCallbackFunction"](_0x182039) {
|
|
711
708
|
var _a, _b, _c, _d, _e, _f;
|
|
712
|
-
const
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
const
|
|
717
|
-
!
|
|
718
|
-
|
|
719
|
-
if (!_0x349519["ok"]) {
|
|
720
|
-
(_d = (_c = this[_0x33db4e(275)])[_0x33db4e(258)]) == null ? void 0 : _d.call(_c, _0x33db4e(252) + _0x349519[_0x33db4e(248)]);
|
|
709
|
+
const _0x2d7e3c = _0x295b, _0x2a3a87 = _0x295b, _0x3c788d = { "qITTp": function(_0x20812e, _0x1b0a26, _0x3458a1) {
|
|
710
|
+
return _0x20812e(_0x1b0a26, _0x3458a1);
|
|
711
|
+
}, "qcFPW": _0x2d7e3c(452) }, _0x2eeda1 = await _0x3c788d["qITTp"](fetch, _0x182039, { "method": _0x3c788d[_0x2d7e3c(453)] });
|
|
712
|
+
!_0x2eeda1["ok"] && ((_b = (_a = this["_callBackPromise"])["reject"]) == null ? void 0 : _b.call(_a, _0x2a3a87(446) + _0x2eeda1["statusText"]));
|
|
713
|
+
const _0x4cf1ec = await this["_getAuthCodeByState"](this[_0x2a3a87(454)], this[_0x2d7e3c(442)]);
|
|
714
|
+
if (!_0x4cf1ec["ok"]) {
|
|
715
|
+
(_d = (_c = this[_0x2d7e3c(433)])["reject"]) == null ? void 0 : _d.call(_c, "Failed to fetch auth code: " + _0x4cf1ec["statusText"]);
|
|
721
716
|
return;
|
|
722
717
|
}
|
|
723
|
-
const
|
|
724
|
-
(_f = (_e = this[
|
|
718
|
+
const _0x37d882 = await _0x4cf1ec[_0x2d7e3c(431)]();
|
|
719
|
+
(_f = (_e = this[_0x2a3a87(433)])[_0x2d7e3c(456)]) == null ? void 0 : _f.call(_e, _0x37d882[_0x2d7e3c(432)]);
|
|
725
720
|
}
|
|
726
|
-
async ["getAuthCodeByStateFunction"](
|
|
727
|
-
const
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
721
|
+
async ["getAuthCodeByStateFunction"](_0x17f993, _0x1a4325) {
|
|
722
|
+
const _0x3626c4 = _0x295b, _0x5612c4 = _0x295b, _0xc6e3ca = {};
|
|
723
|
+
_0xc6e3ca["tuSmb"] = _0x3626c4(429);
|
|
724
|
+
const _0x28efc2 = _0xc6e3ca, _0x383513 = {};
|
|
725
|
+
_0x383513[_0x3626c4(460)] = _0x28efc2["tuSmb"];
|
|
726
|
+
const _0x9e72f2 = {};
|
|
727
|
+
return _0x9e72f2[_0x5612c4(441)] = _0x1a4325, fetch(_0x17f993, { "method": "POST", "headers": _0x383513, "body": new URLSearchParams(_0x9e72f2) });
|
|
731
728
|
}
|
|
732
729
|
["waitForOAuthCodeFunction"]() {
|
|
733
|
-
const
|
|
734
|
-
return () => new Promise((
|
|
735
|
-
const
|
|
736
|
-
|
|
730
|
+
const _0xa710fb = _0x295b, _0x511b52 = this[_0xa710fb(433)];
|
|
731
|
+
return () => new Promise((_0x1edebd, _0x1825a2) => {
|
|
732
|
+
const _0x268a86 = _0xa710fb;
|
|
733
|
+
_0x511b52["resolve"] = _0x1edebd, _0x511b52[_0x268a86(434)] = _0x1825a2;
|
|
737
734
|
});
|
|
738
735
|
}
|
|
739
|
-
get [
|
|
740
|
-
|
|
736
|
+
get ["redirectUrl"]() {
|
|
737
|
+
const _0x4af006 = _0x295b;
|
|
738
|
+
return this[_0x4af006(454)];
|
|
741
739
|
}
|
|
742
|
-
get [
|
|
740
|
+
get ["clientMetadata"]() {
|
|
743
741
|
return this["_clientMetadata"];
|
|
744
742
|
}
|
|
745
743
|
["state"]() {
|
|
746
|
-
|
|
747
|
-
return this[_0x54c930(274)];
|
|
744
|
+
return this["_state"];
|
|
748
745
|
}
|
|
749
|
-
[
|
|
750
|
-
|
|
746
|
+
[_0x125317(447)]() {
|
|
747
|
+
const _0x403dc5 = _0x125317;
|
|
748
|
+
return this[_0x403dc5(444)];
|
|
751
749
|
}
|
|
752
|
-
[
|
|
753
|
-
const
|
|
754
|
-
this[
|
|
750
|
+
[_0x5b1277(435)](_0x48ae19) {
|
|
751
|
+
const _0x2f8a8e = _0x125317;
|
|
752
|
+
this[_0x2f8a8e(444)] = _0x48ae19;
|
|
755
753
|
}
|
|
756
|
-
[
|
|
757
|
-
|
|
754
|
+
[_0x5b1277(457)]() {
|
|
755
|
+
const _0x4f9f20 = _0x5b1277;
|
|
756
|
+
return this[_0x4f9f20(439)];
|
|
758
757
|
}
|
|
759
|
-
[
|
|
760
|
-
|
|
761
|
-
this[_0x5817ee(272)] = _0x2c82da;
|
|
758
|
+
["saveTokens"](_0x23e270) {
|
|
759
|
+
this["_tokens"] = _0x23e270;
|
|
762
760
|
}
|
|
763
|
-
[
|
|
764
|
-
const
|
|
765
|
-
this[
|
|
761
|
+
[_0x5b1277(450)](_0x3b8777) {
|
|
762
|
+
const _0x43d6aa = _0x125317;
|
|
763
|
+
this[_0x43d6aa(443)](_0x3b8777);
|
|
766
764
|
}
|
|
767
|
-
[
|
|
768
|
-
|
|
769
|
-
this[_0x3c9cc8(268)] = _0x360b5e;
|
|
765
|
+
["saveCodeVerifier"](_0x24fa92) {
|
|
766
|
+
this["_codeVerifier"] = _0x24fa92;
|
|
770
767
|
}
|
|
771
|
-
[
|
|
772
|
-
const
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
if (!this["_codeVerifier"]) throw new Error(_0x8e7b25[_0x4b7887(255)]);
|
|
776
|
-
return this[_0x4b7887(268)];
|
|
768
|
+
["codeVerifier"]() {
|
|
769
|
+
const _0x5580e8 = _0x125317;
|
|
770
|
+
if (!this[_0x5580e8(437)]) throw new Error("No code verifier saved");
|
|
771
|
+
return this["_codeVerifier"];
|
|
777
772
|
}
|
|
778
773
|
}
|
|
779
|
-
(function(
|
|
780
|
-
var
|
|
774
|
+
(function(_0x3eddf7, _0x37edba) {
|
|
775
|
+
var _0x4f4dfb = _0x2d57, _0x26a47e = _0x2d57, _0x455a42 = _0x3eddf7();
|
|
781
776
|
while (!![]) {
|
|
782
777
|
try {
|
|
783
|
-
var
|
|
784
|
-
if (
|
|
785
|
-
else
|
|
786
|
-
} catch (
|
|
787
|
-
|
|
778
|
+
var _0x352785 = parseInt(_0x4f4dfb(361)) / (-8487 + 3575 + -17 * -289) * (parseInt(_0x26a47e(363)) / (-1 * -8543 + 5 * 233 + -9706)) + -parseInt(_0x4f4dfb(358)) / (-4 * -991 + -4153 * 1 + 192) + parseInt(_0x4f4dfb(359)) / (8411 + -6883 + 381 * -4) * (parseInt(_0x4f4dfb(357)) / (37 * -99 + -553 * -13 + 1 * -3521)) + parseInt(_0x26a47e(354)) / (3127 + 1287 + -4408) * (parseInt(_0x4f4dfb(360)) / (79 * -47 + -6867 + -10587 * -1)) + parseInt(_0x26a47e(362)) / (2879 * -1 + -4327 + 7214 * 1) + parseInt(_0x26a47e(364)) / (-7772 + -1 * -7873 + -92) + -parseInt(_0x26a47e(356)) / (9184 + -6643 + -2531) * (parseInt(_0x4f4dfb(355)) / (1843 + 1 * 9218 + 425 * -26));
|
|
779
|
+
if (_0x352785 === _0x37edba) break;
|
|
780
|
+
else _0x455a42["push"](_0x455a42["shift"]());
|
|
781
|
+
} catch (_0x2a1929) {
|
|
782
|
+
_0x455a42["push"](_0x455a42["shift"]());
|
|
788
783
|
}
|
|
789
784
|
}
|
|
790
|
-
})(
|
|
791
|
-
function
|
|
792
|
-
var
|
|
793
|
-
|
|
794
|
-
return
|
|
785
|
+
})(_0x59e6, -73523 * -3 + 1 * -407717 + 530518);
|
|
786
|
+
function _0x59e6() {
|
|
787
|
+
var _0x5ee1c4 = ["40ecBYYe", "1095owKKYD", "486870YOVwZy", "5752xWiyTO", "561484biNVMw", "1fWJmxQ", "1866064SPnyhb", "1109522vMiuMX", "1602351pPEGwH", "12sVyMLL", "2573296LTwOhv"];
|
|
788
|
+
_0x59e6 = function() {
|
|
789
|
+
return _0x5ee1c4;
|
|
795
790
|
};
|
|
796
|
-
return
|
|
791
|
+
return _0x59e6();
|
|
797
792
|
}
|
|
798
|
-
function
|
|
799
|
-
var
|
|
800
|
-
return
|
|
801
|
-
|
|
802
|
-
var
|
|
803
|
-
return
|
|
804
|
-
},
|
|
793
|
+
function _0x2d57(_0x22a4e9, _0x3c5d7b) {
|
|
794
|
+
var _0x3ed0bb = _0x59e6();
|
|
795
|
+
return _0x2d57 = function(_0x19cb9d, _0x563453) {
|
|
796
|
+
_0x19cb9d = _0x19cb9d - (-1 * -642 + 503 * -5 + 2227);
|
|
797
|
+
var _0x246bca = _0x3ed0bb[_0x19cb9d];
|
|
798
|
+
return _0x246bca;
|
|
799
|
+
}, _0x2d57(_0x22a4e9, _0x3c5d7b);
|
|
805
800
|
}
|
|
806
801
|
export {
|
|
807
802
|
AuthClientProvider,
|
|
@@ -809,6 +804,7 @@ export {
|
|
|
809
804
|
MessageChannelServerTransport,
|
|
810
805
|
MessageChannelTransport,
|
|
811
806
|
attemptConnection,
|
|
807
|
+
createSocketProxy,
|
|
812
808
|
createSseProxy,
|
|
813
809
|
createStreamProxy,
|
|
814
810
|
createTransportPair,
|