@opentiny/next-sdk 0.1.15-beta.3 → 0.1.15-beta.5
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/agent/AgentModelProvider.ts +3 -7
- package/dist/WebMcpClient.d.ts +26 -165
- package/dist/WebMcpServer.d.ts +147 -36
- package/dist/index.es.dev.js +7400 -3881
- package/dist/index.es.js +16311 -13500
- package/dist/index.js +114 -114
- package/dist/index.umd.dev.js +7335 -3816
- package/dist/index.umd.js +63 -61
- package/dist/{mcpsdk@1.24.3.dev.js → mcpsdk@1.23.1.dev.js} +201 -1695
- package/dist/{mcpsdk@1.24.3.es.dev.js → mcpsdk@1.23.1.es.dev.js} +201 -1695
- package/dist/mcpsdk@1.23.1.es.js +15530 -0
- package/dist/mcpsdk@1.23.1.js +43 -0
- package/dist/webagent.dev.js +13766 -9961
- package/dist/webagent.es.dev.js +13847 -10042
- package/dist/webagent.es.js +17687 -14644
- package/dist/webagent.js +60 -58
- package/dist/webmcp-full.dev.js +6697 -3408
- package/dist/webmcp-full.es.dev.js +6672 -3383
- package/dist/webmcp-full.es.js +11482 -8820
- package/dist/webmcp-full.js +28 -28
- package/dist/webmcp.dev.js +652 -618
- package/dist/webmcp.es.dev.js +652 -618
- package/dist/webmcp.es.js +665 -626
- package/dist/webmcp.js +1 -1
- package/package.json +2 -2
- package/dist/mcpsdk@1.24.3.es.js +0 -16781
- package/dist/mcpsdk@1.24.3.js +0 -43
package/dist/webmcp.es.dev.js
CHANGED
|
@@ -11,799 +11,833 @@ import { z } from "zod";
|
|
|
11
11
|
import { UriTemplate } from "@modelcontextprotocol/sdk/shared/uriTemplate.js";
|
|
12
12
|
import { completable } from "@modelcontextprotocol/sdk/server/completable.js";
|
|
13
13
|
import { getDisplayName } from "@modelcontextprotocol/sdk/shared/metadataUtils.js";
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
return _0x4fe318;
|
|
18
|
-
};
|
|
19
|
-
return _0x425b();
|
|
20
|
-
}
|
|
21
|
-
(function(_0x3f2143, _0xebf1ca) {
|
|
22
|
-
const _0xf16569 = _0x3c98, _0xf8772f = _0x3c98, _0x12639d = _0x3f2143();
|
|
14
|
+
const _0x4f2826 = _0xad7a;
|
|
15
|
+
(function(_0x5153c5, _0x3abbea) {
|
|
16
|
+
const _0x5f186f = _0xad7a, _0x3f8155 = _0xad7a, _0x5ad68c = _0x5153c5();
|
|
23
17
|
while (!![]) {
|
|
24
18
|
try {
|
|
25
|
-
const
|
|
26
|
-
if (
|
|
27
|
-
else
|
|
28
|
-
} catch (
|
|
29
|
-
|
|
19
|
+
const _0x1209c2 = parseInt(_0x5f186f(403)) / (-1 * -8962 + 7125 + -1 * 16086) + -parseInt(_0x5f186f(411)) / (-118 * -62 + 5798 + -298 * 44) * (-parseInt(_0x3f8155(406)) / (-3602 + 4764 + -1159 * 1)) + -parseInt(_0x3f8155(425)) / (-878 * 8 + 6350 + 678) * (parseInt(_0x5f186f(387)) / (-2471 + -7095 + 9571)) + -parseInt(_0x3f8155(426)) / (-1158 + 4090 + -266 * 11) + parseInt(_0x3f8155(395)) / (-5007 + 205 * 3 + 83 * 53) * (-parseInt(_0x5f186f(419)) / (-4925 + 9223 + -4290)) + -parseInt(_0x5f186f(413)) / (8348 + -7962 + -1 * 377) + parseInt(_0x3f8155(400)) / (-1828 + 1230 + 608);
|
|
20
|
+
if (_0x1209c2 === _0x3abbea) break;
|
|
21
|
+
else _0x5ad68c["push"](_0x5ad68c["shift"]());
|
|
22
|
+
} catch (_0x3c6d23) {
|
|
23
|
+
_0x5ad68c["push"](_0x5ad68c["shift"]());
|
|
30
24
|
}
|
|
31
25
|
}
|
|
32
|
-
})(
|
|
26
|
+
})(_0xf7c7, -118057 + 3521 * -35 + -2099 * -233);
|
|
33
27
|
const getGlobalObject = () => {
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
28
|
+
const _0x5b06d9 = _0xad7a, _0x55441c = _0xad7a, _0x3922ee = {};
|
|
29
|
+
_0x3922ee[_0x5b06d9(420)] = "3|0|2|1|4", _0x3922ee["vQYJZ"] = function(_0x5e2b69, _0x44350c) {
|
|
30
|
+
return _0x5e2b69 !== _0x44350c;
|
|
31
|
+
}, _0x3922ee[_0x55441c(394)] = _0x55441c(414), _0x3922ee["ktWqD"] = function(_0x187cae, _0x331f13) {
|
|
32
|
+
return _0x187cae !== _0x331f13;
|
|
33
|
+
}, _0x3922ee[_0x5b06d9(424)] = _0x5b06d9(391);
|
|
34
|
+
const _0x4bc984 = _0x3922ee, _0x58c960 = _0x4bc984[_0x55441c(420)]["split"]("|");
|
|
35
|
+
let _0x55d9fc = 859 * 2 + -3 * -1039 + -4835 * 1;
|
|
36
|
+
while (!![]) {
|
|
37
|
+
switch (_0x58c960[_0x55d9fc++]) {
|
|
38
|
+
case "0":
|
|
39
|
+
if (_0x4bc984[_0x55441c(407)](typeof window, "undefined")) return window;
|
|
40
|
+
continue;
|
|
41
|
+
case "1":
|
|
42
|
+
if (_0x4bc984["vQYJZ"](typeof self, _0x4bc984["NZmUq"])) return self;
|
|
43
|
+
continue;
|
|
44
|
+
case "2":
|
|
45
|
+
if (_0x4bc984[_0x55441c(405)](typeof global, "undefined")) return global;
|
|
46
|
+
continue;
|
|
47
|
+
case "3":
|
|
48
|
+
if (_0x4bc984[_0x55441c(405)](typeof globalThis, _0x4bc984[_0x5b06d9(394)])) return globalThis;
|
|
49
|
+
continue;
|
|
50
|
+
case "4":
|
|
51
|
+
return Function(_0x4bc984[_0x5b06d9(424)])();
|
|
52
|
+
}
|
|
53
|
+
break;
|
|
54
|
+
}
|
|
55
|
+
}, sendMessage = (_0x35d0b8, _0xeea47, _0xfb13f6) => {
|
|
56
|
+
const _0x348bd2 = _0xad7a, _0x30ad92 = _0xad7a, _0x31ab0f = {};
|
|
57
|
+
_0x31ab0f["eOzBp"] = function(_0xa5b644, _0x9c2e17) {
|
|
58
|
+
return _0xa5b644 !== _0x9c2e17;
|
|
59
|
+
}, _0x31ab0f["ooaJk"] = "undefined", _0x31ab0f[_0x348bd2(402)] = function(_0x3bec39, _0x3d0904) {
|
|
60
|
+
return _0x3bec39 === _0x3d0904;
|
|
61
|
+
}, _0x31ab0f[_0x348bd2(421)] = "function";
|
|
62
|
+
const _0x3ab65e = _0x31ab0f;
|
|
63
|
+
if (_0x3ab65e[_0x30ad92(389)](typeof window, _0x3ab65e["ooaJk"])) _0x35d0b8[_0x30ad92(423)](_0xeea47, "*", _0xfb13f6);
|
|
64
|
+
else _0x348bd2(423) in _0x35d0b8 && _0x3ab65e["pTvSc"](typeof _0x35d0b8[_0x30ad92(423)], _0x3ab65e[_0x348bd2(421)]) && _0x35d0b8["postMessage"](_0xeea47, _0xfb13f6);
|
|
65
|
+
}, setMessageHandler = (_0x47e26b, _0x56d6f3) => {
|
|
66
|
+
const _0x3198b3 = _0xad7a, _0x178e44 = _0xad7a, _0x878ed8 = {};
|
|
67
|
+
_0x878ed8["nTCfA"] = function(_0x161049, _0x23c671) {
|
|
68
|
+
return _0x161049 in _0x23c671;
|
|
69
|
+
}, _0x878ed8[_0x3198b3(390)] = "addEventListener", _0x878ed8[_0x3198b3(385)] = function(_0x113571, _0x525d77) {
|
|
70
|
+
return _0x113571 === _0x525d77;
|
|
71
|
+
}, _0x878ed8[_0x3198b3(409)] = "function", _0x878ed8["VaHpd"] = _0x178e44(392), _0x878ed8[_0x178e44(384)] = _0x3198b3(417), _0x878ed8["FPOYW"] = function(_0x450905, _0x43bced) {
|
|
72
|
+
return _0x450905 !== _0x43bced;
|
|
73
|
+
};
|
|
74
|
+
const _0xbc5ca5 = _0x878ed8;
|
|
75
|
+
if (_0xbc5ca5["nTCfA"](_0xbc5ca5["ogKey"], _0x47e26b) && _0xbc5ca5[_0x178e44(385)](typeof _0x47e26b["addEventListener"], _0xbc5ca5[_0x178e44(409)])) _0x47e26b[_0x178e44(386)](_0xbc5ca5["VaHpd"], _0x56d6f3);
|
|
76
|
+
else _0xbc5ca5[_0x178e44(384)] in _0x47e26b && _0xbc5ca5[_0x3198b3(398)](typeof _0x47e26b[_0x178e44(417)], _0x3198b3(414)) && (_0x47e26b["onmessage"] = _0x56d6f3);
|
|
62
77
|
};
|
|
63
78
|
class MessageChannelTransport {
|
|
64
|
-
constructor(
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
this[_0x262fc0(406)][_0x262fc0(413)] = (_0x12f751) => {
|
|
79
|
+
constructor(_0x34a0c2) {
|
|
80
|
+
this["_port"] = _0x34a0c2;
|
|
81
|
+
}
|
|
82
|
+
async [_0x4f2826(401)]() {
|
|
83
|
+
const _0x128b02 = _0x4f2826, _0x5486a4 = _0x4f2826;
|
|
84
|
+
if (!this[_0x128b02(422)]) return;
|
|
85
|
+
this[_0x5486a4(422)]["onmessage"] = (_0x589d80) => {
|
|
72
86
|
var _a, _b;
|
|
73
|
-
const
|
|
87
|
+
const _0x48ea76 = _0x128b02;
|
|
74
88
|
try {
|
|
75
|
-
const
|
|
76
|
-
(_a = this[
|
|
77
|
-
} catch (
|
|
78
|
-
const
|
|
79
|
-
(_b = this[
|
|
89
|
+
const _0xb2e035 = JSONRPCMessageSchema["parse"](_0x589d80["data"]["message"]);
|
|
90
|
+
(_a = this["onmessage"]) == null ? void 0 : _a.call(this, _0xb2e035, _0x589d80[_0x48ea76(412)][_0x48ea76(428)]);
|
|
91
|
+
} catch (_0x28fd34) {
|
|
92
|
+
const _0x19f373 = new Error("MessageChannel failed to parse message: " + _0x28fd34);
|
|
93
|
+
(_b = this[_0x48ea76(383)]) == null ? void 0 : _b.call(this, _0x19f373);
|
|
80
94
|
}
|
|
81
|
-
}, this["_port"][
|
|
95
|
+
}, this["_port"]["onmessageerror"] = (_0xf11ae3) => {
|
|
82
96
|
var _a;
|
|
83
|
-
const
|
|
84
|
-
(_a = this["onerror"]) == null ? void 0 : _a.call(this,
|
|
85
|
-
}, this[
|
|
86
|
-
}
|
|
87
|
-
async ["send"](
|
|
88
|
-
const
|
|
89
|
-
return
|
|
90
|
-
}, "
|
|
91
|
-
return
|
|
97
|
+
const _0x2e8678 = _0x5486a4, _0x2174a2 = new Error("MessageChannel transport error: " + JSON[_0x2e8678(415)](_0xf11ae3));
|
|
98
|
+
(_a = this["onerror"]) == null ? void 0 : _a.call(this, _0x2174a2);
|
|
99
|
+
}, this[_0x5486a4(422)]["start"]();
|
|
100
|
+
}
|
|
101
|
+
async ["send"](_0x53414e, _0x1fad39) {
|
|
102
|
+
const _0x242e50 = { "EoBZE": function(_0x5dfbdd) {
|
|
103
|
+
return _0x5dfbdd();
|
|
104
|
+
}, "leEiG": function(_0x2c92ea, _0x3a00c7) {
|
|
105
|
+
return _0x2c92ea instanceof _0x3a00c7;
|
|
106
|
+
}, "cDUwk": function(_0x502cb0, _0x62d20e) {
|
|
107
|
+
return _0x502cb0(_0x62d20e);
|
|
92
108
|
} };
|
|
93
|
-
return new Promise((
|
|
109
|
+
return new Promise((_0x27cc57, _0x179db2) => {
|
|
94
110
|
var _a;
|
|
95
|
-
const
|
|
111
|
+
const _0x1ce41e = _0xad7a, _0x5396c7 = _0xad7a;
|
|
96
112
|
try {
|
|
97
|
-
const
|
|
98
|
-
|
|
99
|
-
const
|
|
100
|
-
|
|
101
|
-
if (this[
|
|
102
|
-
|
|
103
|
-
} catch (
|
|
104
|
-
const
|
|
105
|
-
(_a = this[
|
|
113
|
+
const _0x4c1128 = {};
|
|
114
|
+
_0x4c1128[_0x1ce41e(404)] = _0x1fad39 == null ? void 0 : _0x1fad39[_0x1ce41e(404)];
|
|
115
|
+
const _0x2b6c6f = {};
|
|
116
|
+
_0x2b6c6f[_0x1ce41e(392)] = _0x53414e, _0x2b6c6f["extra"] = _0x4c1128;
|
|
117
|
+
if (this["_port"]) this["_port"][_0x5396c7(423)](_0x2b6c6f);
|
|
118
|
+
_0x242e50[_0x1ce41e(399)](_0x27cc57);
|
|
119
|
+
} catch (_0xd49ca8) {
|
|
120
|
+
const _0x306c32 = _0x242e50["leEiG"](_0xd49ca8, Error) ? _0xd49ca8 : new Error(_0x242e50["cDUwk"](String, _0xd49ca8));
|
|
121
|
+
(_a = this["onerror"]) == null ? void 0 : _a.call(this, _0x306c32), _0x179db2(_0x306c32);
|
|
106
122
|
}
|
|
107
123
|
});
|
|
108
124
|
}
|
|
109
125
|
async ["close"]() {
|
|
110
126
|
var _a, _b;
|
|
111
|
-
const
|
|
112
|
-
(_a = this["_port"]) == null ? void 0 : _a[
|
|
127
|
+
const _0x45fe11 = _0x4f2826, _0x27cc50 = _0x4f2826;
|
|
128
|
+
(_a = this["_port"]) == null ? void 0 : _a[_0x45fe11(393)](), this[_0x45fe11(422)] = void 0, (_b = this[_0x27cc50(408)]) == null ? void 0 : _b.call(this);
|
|
113
129
|
}
|
|
114
130
|
}
|
|
115
131
|
class MessageChannelClientTransport extends MessageChannelTransport {
|
|
116
|
-
constructor(
|
|
117
|
-
const
|
|
118
|
-
return
|
|
132
|
+
constructor(_0x20201a, _0x4e42d0 = getGlobalObject()) {
|
|
133
|
+
const _0xe917b4 = _0x4f2826, _0x2ee57a = { "lSpBh": function(_0x15fcf6, _0xd26994, _0x5aabc7, _0x5b05d2) {
|
|
134
|
+
return _0x15fcf6(_0xd26994, _0x5aabc7, _0x5b05d2);
|
|
119
135
|
} };
|
|
120
|
-
super(), this[
|
|
121
|
-
const
|
|
122
|
-
this[
|
|
136
|
+
super(), this["_endpoint"] = _0x20201a, this["_globalObject"] = _0x4e42d0;
|
|
137
|
+
const _0x24f521 = new MessageChannel();
|
|
138
|
+
this["_port"] = _0x24f521[_0xe917b4(410)], _0x2ee57a[_0xe917b4(418)](sendMessage, this["_globalObject"], { "endpoint": this[_0xe917b4(397)] }, [_0x24f521[_0xe917b4(429)]]);
|
|
123
139
|
}
|
|
124
140
|
}
|
|
125
141
|
class MessageChannelServerTransport extends MessageChannelTransport {
|
|
126
|
-
constructor(
|
|
127
|
-
const
|
|
128
|
-
return
|
|
129
|
-
}, "
|
|
130
|
-
return
|
|
142
|
+
constructor(_0x3de1c8, _0x3c4f19 = getGlobalObject()) {
|
|
143
|
+
const _0x2eab2a = _0x4f2826, _0x26e754 = _0x4f2826, _0x496337 = { "HITdC": function(_0xf4906b, _0x545503) {
|
|
144
|
+
return _0xf4906b === _0x545503;
|
|
145
|
+
}, "QdDxM": function(_0xe02af1) {
|
|
146
|
+
return _0xe02af1();
|
|
147
|
+
}, "jowPp": function(_0x44b8f3, _0x17adcb, _0xc8cd9d) {
|
|
148
|
+
return _0x44b8f3(_0x17adcb, _0xc8cd9d);
|
|
131
149
|
} };
|
|
132
|
-
super(), this[
|
|
133
|
-
const
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
150
|
+
super(), this[_0x2eab2a(397)] = _0x3de1c8, this[_0x26e754(388)] = _0x3c4f19, this[_0x26e754(416)] = new Promise((_0x1e1df9) => {
|
|
151
|
+
const _0x5d87de = _0x2eab2a, _0xb8f004 = { "XlglK": function(_0xfd91d5, _0x4e700d) {
|
|
152
|
+
return _0x496337["HITdC"](_0xfd91d5, _0x4e700d);
|
|
153
|
+
}, "pXlad": function(_0x35325b) {
|
|
154
|
+
return _0x496337["QdDxM"](_0x35325b);
|
|
155
|
+
} };
|
|
156
|
+
_0x496337[_0x5d87de(427)](setMessageHandler, this["_globalObject"], (_0x594651) => {
|
|
157
|
+
const _0x598787 = _0x5d87de, _0x338e8d = _0x5d87de;
|
|
158
|
+
_0x594651[_0x598787(412)] && _0xb8f004["XlglK"](_0x594651["data"][_0x338e8d(396)], this["_endpoint"]) && (this[_0x598787(422)] = _0x594651[_0x338e8d(430)][122 * -38 + 1600 + -1518 * -2], _0xb8f004["pXlad"](_0x1e1df9));
|
|
137
159
|
});
|
|
138
160
|
});
|
|
139
161
|
}
|
|
140
162
|
async ["listen"]() {
|
|
141
|
-
|
|
142
|
-
return this[_0x5cffe3(432)];
|
|
163
|
+
return this["_listen"];
|
|
143
164
|
}
|
|
144
165
|
}
|
|
145
|
-
function
|
|
146
|
-
const
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
166
|
+
function _0xf7c7() {
|
|
167
|
+
const _0x217378 = ["message", "close", "NZmUq", "177464iLQCGm", "endpoint", "_endpoint", "FPOYW", "EoBZE", "3022630ngzRBs", "start", "pTvSc", "272809yMhhPJ", "authInfo", "ktWqD", "21849KofsKk", "vQYJZ", "onclose", "mkHJS", "port1", "22dUTKmE", "data", "608229RXNlUs", "undefined", "stringify", "_listen", "onmessage", "lSpBh", "8FmlYyF", "XwdDB", "cHbAW", "_port", "postMessage", "kFtNB", "72572mbPnfL", "689424jqaGZE", "jowPp", "extra", "port2", "ports", "onerror", "Fzdib", "mkuHv", "addEventListener", "55juYkZZ", "_globalObject", "eOzBp", "ogKey", "return this"];
|
|
168
|
+
_0xf7c7 = function() {
|
|
169
|
+
return _0x217378;
|
|
170
|
+
};
|
|
171
|
+
return _0xf7c7();
|
|
172
|
+
}
|
|
173
|
+
function _0xad7a(_0x5c8efe, _0x17336f) {
|
|
174
|
+
const _0x4b62f0 = _0xf7c7();
|
|
175
|
+
return _0xad7a = function(_0x222a68, _0x35aa14) {
|
|
176
|
+
_0x222a68 = _0x222a68 - (9175 + 8052 + 1 * -16844);
|
|
177
|
+
let _0x4cf37b = _0x4b62f0[_0x222a68];
|
|
178
|
+
return _0x4cf37b;
|
|
179
|
+
}, _0xad7a(_0x5c8efe, _0x17336f);
|
|
152
180
|
}
|
|
153
181
|
const createTransportPair = () => {
|
|
154
|
-
const
|
|
155
|
-
return [new MessageChannelTransport(
|
|
182
|
+
const _0x4bcc62 = new MessageChannel();
|
|
183
|
+
return [new MessageChannelTransport(_0x4bcc62["port1"]), new MessageChannelTransport(_0x4bcc62["port2"])];
|
|
156
184
|
};
|
|
157
|
-
(function(
|
|
158
|
-
const
|
|
185
|
+
(function(_0x3d7f1e, _0xfc81c8) {
|
|
186
|
+
const _0x276c7b = _0x21a3, _0x2dfe35 = _0x21a3, _0x234d86 = _0x3d7f1e();
|
|
159
187
|
while (!![]) {
|
|
160
188
|
try {
|
|
161
|
-
const
|
|
162
|
-
if (
|
|
163
|
-
else
|
|
164
|
-
} catch (
|
|
165
|
-
|
|
189
|
+
const _0x380f07 = parseInt(_0x276c7b(452)) / (-9341 * 1 + 3580 + 5762) * (parseInt(_0x2dfe35(441)) / (-6775 + 1161 + 16 * 351)) + parseInt(_0x2dfe35(434)) / (-4159 + -9100 + -349 * -38) * (-parseInt(_0x2dfe35(418)) / (6 * -1155 + 1020 * 9 + 2246 * -1)) + parseInt(_0x276c7b(459)) / (-2939 * -1 + -7622 + 4688) + parseInt(_0x276c7b(482)) / (8451 * 1 + 426 * 14 + -14409) * (-parseInt(_0x276c7b(479)) / (8180 + 7314 + -17 * 911)) + -parseInt(_0x276c7b(458)) / (6370 + -4744 + -1618) * (parseInt(_0x276c7b(457)) / (10 * 983 + 2949 * -3 + -487 * 2)) + -parseInt(_0x2dfe35(416)) / (-1 * -8615 + 9674 + -18279) + -parseInt(_0x276c7b(450)) / (-9359 + 3829 + 5541) * (-parseInt(_0x276c7b(433)) / (6146 + -143 * 39 + 1 * -557));
|
|
190
|
+
if (_0x380f07 === _0xfc81c8) break;
|
|
191
|
+
else _0x234d86["push"](_0x234d86["shift"]());
|
|
192
|
+
} catch (_0x1d5794) {
|
|
193
|
+
_0x234d86["push"](_0x234d86["shift"]());
|
|
166
194
|
}
|
|
167
195
|
}
|
|
168
|
-
})(
|
|
169
|
-
const forwardServerRequest = async (
|
|
196
|
+
})(_0x3610, -411935 * 1 + 228107 + 208149 * 2);
|
|
197
|
+
const forwardServerRequest = async (_0x1da138, _0x46e2a5, _0xa7e9d) => {
|
|
170
198
|
var _a;
|
|
171
|
-
const
|
|
172
|
-
|
|
173
|
-
const
|
|
174
|
-
let
|
|
175
|
-
switch (
|
|
176
|
-
case
|
|
177
|
-
|
|
199
|
+
const _0x334ed0 = _0x21a3, _0x4f511c = _0x21a3, _0x249fa5 = {};
|
|
200
|
+
_0x249fa5["VRyiJ"] = "tools/list", _0x249fa5["VkPYu"] = "tools/call", _0x249fa5[_0x334ed0(475)] = _0x334ed0(411), _0x249fa5["SoCaE"] = "resources/templates/list", _0x249fa5[_0x4f511c(484)] = "resources/read", _0x249fa5[_0x334ed0(461)] = "prompts/get", _0x249fa5["srIIC"] = _0x4f511c(477), _0x249fa5[_0x4f511c(436)] = _0x4f511c(478), _0x249fa5[_0x4f511c(442)] = _0x334ed0(437), _0x249fa5["dEmVs"] = _0x334ed0(465);
|
|
201
|
+
const _0x472708 = _0x249fa5, { id: _0x467a84, method: _0x866073, params: _0x4698ee } = _0xa7e9d;
|
|
202
|
+
let _0x413eb6 = {};
|
|
203
|
+
switch (_0x866073) {
|
|
204
|
+
case _0x472708["VRyiJ"]:
|
|
205
|
+
_0x413eb6 = await _0x46e2a5["listTools"](_0x4698ee);
|
|
178
206
|
break;
|
|
179
|
-
case
|
|
180
|
-
|
|
207
|
+
case _0x472708["VkPYu"]:
|
|
208
|
+
_0x413eb6 = await _0x46e2a5["callTool"](_0x4698ee);
|
|
181
209
|
break;
|
|
182
|
-
case
|
|
183
|
-
|
|
210
|
+
case _0x472708["fgMSD"]:
|
|
211
|
+
_0x413eb6 = await _0x46e2a5["listResources"](_0x4698ee);
|
|
184
212
|
break;
|
|
185
|
-
case
|
|
186
|
-
|
|
213
|
+
case _0x472708[_0x4f511c(466)]:
|
|
214
|
+
_0x413eb6 = await _0x46e2a5["listResourceTemplates"](_0x4698ee);
|
|
187
215
|
break;
|
|
188
|
-
case
|
|
189
|
-
|
|
216
|
+
case _0x472708["sthgI"]:
|
|
217
|
+
_0x413eb6 = await _0x46e2a5[_0x334ed0(455)](_0x4698ee);
|
|
190
218
|
break;
|
|
191
|
-
case
|
|
192
|
-
|
|
219
|
+
case _0x4f511c(486):
|
|
220
|
+
_0x413eb6 = await _0x46e2a5["subscribeResource"](_0x4698ee);
|
|
193
221
|
break;
|
|
194
|
-
case
|
|
195
|
-
|
|
222
|
+
case _0x334ed0(410):
|
|
223
|
+
_0x413eb6 = await _0x46e2a5["unsubscribeResource"](_0x4698ee);
|
|
196
224
|
break;
|
|
197
|
-
case
|
|
198
|
-
|
|
225
|
+
case _0x472708[_0x4f511c(461)]:
|
|
226
|
+
_0x413eb6 = await _0x46e2a5[_0x4f511c(414)](_0x4698ee);
|
|
199
227
|
break;
|
|
200
|
-
case
|
|
201
|
-
|
|
228
|
+
case _0x472708[_0x334ed0(412)]:
|
|
229
|
+
_0x413eb6 = await _0x46e2a5[_0x334ed0(491)](_0x4698ee);
|
|
202
230
|
break;
|
|
203
|
-
case
|
|
204
|
-
|
|
231
|
+
case _0x472708[_0x334ed0(436)]:
|
|
232
|
+
_0x413eb6 = await _0x46e2a5[_0x334ed0(478)]();
|
|
205
233
|
break;
|
|
206
|
-
case
|
|
207
|
-
|
|
234
|
+
case _0x472708["kkNqg"]:
|
|
235
|
+
_0x413eb6 = await _0x46e2a5["complete"](_0x4698ee);
|
|
208
236
|
break;
|
|
209
|
-
case
|
|
210
|
-
|
|
237
|
+
case _0x334ed0(464):
|
|
238
|
+
_0x413eb6 = await _0x46e2a5["setLoggingLevel"](_0x4698ee == null ? void 0 : _0x4698ee[_0x4f511c(443)]);
|
|
211
239
|
break;
|
|
212
240
|
}
|
|
213
|
-
const
|
|
214
|
-
|
|
215
|
-
}, forwardClientRequest = async (
|
|
241
|
+
const _0x58de11 = {};
|
|
242
|
+
_0x58de11["result"] = _0x413eb6, _0x58de11["jsonrpc"] = _0x472708[_0x4f511c(472)], _0x58de11["id"] = _0x467a84, await ((_a = _0x1da138 == null ? void 0 : _0x1da138[_0x4f511c(488)]) == null ? void 0 : _a[_0x334ed0(460)](_0x58de11));
|
|
243
|
+
}, forwardClientRequest = async (_0x28a0ac, _0x338cef, _0x40baf5) => {
|
|
216
244
|
var _a;
|
|
217
|
-
const
|
|
218
|
-
|
|
219
|
-
const
|
|
220
|
-
let
|
|
221
|
-
switch (
|
|
222
|
-
case
|
|
223
|
-
const
|
|
224
|
-
|
|
245
|
+
const _0x5efcdf = _0x21a3, _0x450048 = _0x21a3, _0x2c33ce = {};
|
|
246
|
+
_0x2c33ce[_0x5efcdf(487)] = _0x450048(462), _0x2c33ce["ypHTC"] = "ping", _0x2c33ce["fPExS"] = _0x5efcdf(465);
|
|
247
|
+
const _0x319e5f = _0x2c33ce, { id: _0x70260b, method: _0x3f464d, params: _0x362734 } = _0x40baf5;
|
|
248
|
+
let _0xc56c52 = {};
|
|
249
|
+
switch (_0x3f464d) {
|
|
250
|
+
case "roots/list":
|
|
251
|
+
const _0x408740 = {};
|
|
252
|
+
_0x408740["method"] = _0x3f464d, _0x408740[_0x450048(446)] = _0x362734, _0xc56c52 = await _0x338cef[_0x5efcdf(469)](_0x408740, ListRootsResultSchema);
|
|
225
253
|
break;
|
|
226
|
-
case
|
|
227
|
-
const
|
|
228
|
-
|
|
254
|
+
case "sampling/createMessage":
|
|
255
|
+
const _0x14dd4f = {};
|
|
256
|
+
_0x14dd4f[_0x5efcdf(481)] = _0x3f464d, _0x14dd4f[_0x5efcdf(446)] = _0x362734, _0xc56c52 = await _0x338cef["request"](_0x14dd4f, CreateMessageResultSchema);
|
|
229
257
|
break;
|
|
230
|
-
case
|
|
231
|
-
const
|
|
232
|
-
|
|
258
|
+
case _0x319e5f[_0x5efcdf(487)]:
|
|
259
|
+
const _0x5991f6 = {};
|
|
260
|
+
_0x5991f6["method"] = _0x3f464d, _0x5991f6[_0x450048(446)] = _0x362734, _0xc56c52 = await _0x338cef["request"](_0x5991f6, ElicitResultSchema);
|
|
233
261
|
break;
|
|
234
|
-
case
|
|
235
|
-
const
|
|
236
|
-
|
|
262
|
+
case _0x319e5f["ypHTC"]:
|
|
263
|
+
const _0x41ab78 = {};
|
|
264
|
+
_0x41ab78["method"] = _0x3f464d, _0xc56c52 = await _0x338cef["request"](_0x41ab78, EmptyResultSchema);
|
|
237
265
|
break;
|
|
238
266
|
}
|
|
239
|
-
const
|
|
240
|
-
return
|
|
267
|
+
const _0x5e6d17 = {};
|
|
268
|
+
return _0x5e6d17["result"] = _0xc56c52, _0x5e6d17["jsonrpc"] = _0x319e5f["fPExS"], _0x5e6d17["id"] = _0x70260b, await ((_a = _0x28a0ac == null ? void 0 : _0x28a0ac["transport"]) == null ? void 0 : _a["send"](_0x5e6d17)), _0xc56c52;
|
|
241
269
|
};
|
|
242
|
-
|
|
243
|
-
const
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
270
|
+
function _0x21a3(_0x59a0be, _0x1661dd) {
|
|
271
|
+
const _0x4be0a9 = _0x3610();
|
|
272
|
+
return _0x21a3 = function(_0x137762, _0x29cfcd) {
|
|
273
|
+
_0x137762 = _0x137762 - (-71 * 113 + 4 * -2344 + -17809 * -1);
|
|
274
|
+
let _0x1f8d56 = _0x4be0a9[_0x137762];
|
|
275
|
+
return _0x1f8d56;
|
|
276
|
+
}, _0x21a3(_0x59a0be, _0x1661dd);
|
|
277
|
+
}
|
|
278
|
+
const forwardServerOnRequest = (_0x329455, _0x16d5d5) => {
|
|
279
|
+
const _0x5a2100 = _0x21a3, _0x4a22d9 = _0x21a3, _0x577008 = { "vYlhn": function(_0x330259, _0x50ff20) {
|
|
280
|
+
return _0x330259 === _0x50ff20;
|
|
281
|
+
}, "DhPFX": _0x5a2100(470), "NYVNC": function(_0x5732a5, _0x76d95c, _0x228f7f, _0x207877) {
|
|
282
|
+
return _0x5732a5(_0x76d95c, _0x228f7f, _0x207877);
|
|
283
|
+
}, "yfZbw": "2.0" }, _0x516d92 = _0x329455["_onrequest"];
|
|
284
|
+
_0x329455[_0x4a22d9(463)] = async (_0x5a04f0, _0xbef58f) => {
|
|
249
285
|
var _a, _b, _c, _d, _e;
|
|
250
|
-
const
|
|
286
|
+
const _0x54051b = _0x4a22d9, _0x80d773 = _0x5a2100, { id: _0x32bf38, method: _0x463a73 } = _0x5a04f0;
|
|
251
287
|
try {
|
|
252
|
-
|
|
253
|
-
} catch (
|
|
254
|
-
const { code:
|
|
288
|
+
_0x577008[_0x54051b(451)](_0x463a73, _0x577008["DhPFX"]) ? await _0x516d92["call"](_0x329455, _0x5a04f0, _0xbef58f) : await _0x577008[_0x80d773(474)](forwardServerRequest, _0x329455, _0x16d5d5, _0x5a04f0);
|
|
289
|
+
} catch (_0x508f60) {
|
|
290
|
+
const { code: _0x214832, message: _0xfed545, data: _0x33967a } = _0x508f60;
|
|
255
291
|
try {
|
|
256
|
-
if (
|
|
257
|
-
const
|
|
258
|
-
|
|
259
|
-
const
|
|
260
|
-
|
|
261
|
-
} else (_c = (_b =
|
|
262
|
-
} catch (
|
|
263
|
-
(_e = (_d =
|
|
292
|
+
if (_0x214832) {
|
|
293
|
+
const _0x15f047 = {};
|
|
294
|
+
_0x15f047[_0x80d773(485)] = _0x214832, _0x15f047[_0x54051b(422)] = _0xfed545, _0x15f047["data"] = _0x33967a;
|
|
295
|
+
const _0x567f35 = {};
|
|
296
|
+
_0x567f35[_0x80d773(448)] = _0x15f047, _0x567f35["jsonrpc"] = _0x577008[_0x54051b(417)], _0x567f35["id"] = _0x32bf38, await ((_a = _0x329455 == null ? void 0 : _0x329455["transport"]) == null ? void 0 : _a[_0x80d773(460)](_0x567f35));
|
|
297
|
+
} else (_c = (_b = _0x329455 == null ? void 0 : _0x329455["transport"]) == null ? void 0 : _b["onerror"]) == null ? void 0 : _c.call(_b, _0x508f60);
|
|
298
|
+
} catch (_0x541ca6) {
|
|
299
|
+
(_e = (_d = _0x329455 == null ? void 0 : _0x329455["transport"]) == null ? void 0 : _d["onerror"]) == null ? void 0 : _e.call(_d, _0x541ca6);
|
|
264
300
|
}
|
|
265
301
|
}
|
|
266
302
|
};
|
|
267
303
|
};
|
|
268
|
-
const forwardServerOnNotification = (
|
|
269
|
-
const
|
|
270
|
-
|
|
271
|
-
return
|
|
272
|
-
},
|
|
273
|
-
const
|
|
274
|
-
|
|
304
|
+
const forwardServerOnNotification = (_0x59fb06, _0xc053ae) => {
|
|
305
|
+
const _0xa34383 = _0x21a3, _0x5b22bf = _0x21a3, _0x4c9779 = {};
|
|
306
|
+
_0x4c9779[_0xa34383(476)] = _0xa34383(439), _0x4c9779[_0xa34383(431)] = function(_0x473631, _0x5f30f9) {
|
|
307
|
+
return _0x473631 !== _0x5f30f9;
|
|
308
|
+
}, _0x4c9779["UPdQt"] = "notifications/cancelled";
|
|
309
|
+
const _0x1bd652 = _0x4c9779;
|
|
310
|
+
_0x59fb06[_0xa34383(421)] = async (_0xa54d77) => {
|
|
275
311
|
var _a, _b;
|
|
276
|
-
const
|
|
277
|
-
if (
|
|
278
|
-
await
|
|
279
|
-
} catch (
|
|
280
|
-
(_b = (_a =
|
|
312
|
+
const _0x2e1bc3 = _0xa34383, _0x535235 = _0x5b22bf, { method: _0x33bd7f, params: _0x53a86f } = _0xa54d77;
|
|
313
|
+
if (_0x33bd7f !== _0x1bd652[_0x2e1bc3(476)] && (_0x1bd652["QWYMz"](_0x33bd7f, _0x1bd652["UPdQt"]) || (_0x53a86f == null ? void 0 : _0x53a86f[_0x535235(490)]))) try {
|
|
314
|
+
await _0xc053ae[_0x2e1bc3(445)](_0xa54d77);
|
|
315
|
+
} catch (_0x113034) {
|
|
316
|
+
(_b = (_a = _0x59fb06 == null ? void 0 : _0x59fb06[_0x2e1bc3(488)]) == null ? void 0 : _a[_0x2e1bc3(480)]) == null ? void 0 : _b.call(_a, _0x113034);
|
|
281
317
|
}
|
|
282
318
|
};
|
|
283
319
|
};
|
|
284
|
-
const forwardClientOnRequest = (
|
|
320
|
+
const forwardClientOnRequest = (_0x30f928, _0x3f46c8) => async (_0x31962c) => {
|
|
285
321
|
var _a, _b, _c, _d, _e;
|
|
286
|
-
const
|
|
287
|
-
|
|
288
|
-
|
|
322
|
+
const _0x356ff8 = _0x21a3, _0x26811b = _0x21a3, _0x1cab49 = { "TJhyV": function(_0x18467a, _0x4aa001, _0x48eb92, _0x5965f6) {
|
|
323
|
+
return _0x18467a(_0x4aa001, _0x48eb92, _0x5965f6);
|
|
324
|
+
}, "MMNTY": _0x356ff8(465) };
|
|
289
325
|
try {
|
|
290
|
-
return await forwardClientRequest
|
|
291
|
-
} catch (
|
|
292
|
-
const { code:
|
|
326
|
+
return await _0x1cab49["TJhyV"](forwardClientRequest, _0x30f928, _0x3f46c8, _0x31962c);
|
|
327
|
+
} catch (_0x29fecb) {
|
|
328
|
+
const { code: _0x3da4f4, message: _0x3bdceb, data: _0x3744ea } = _0x29fecb;
|
|
293
329
|
try {
|
|
294
|
-
if (
|
|
295
|
-
const
|
|
296
|
-
|
|
297
|
-
const
|
|
298
|
-
|
|
299
|
-
} else (_c = (_b =
|
|
300
|
-
} catch (
|
|
301
|
-
(_e = (_d =
|
|
330
|
+
if (_0x3da4f4) {
|
|
331
|
+
const _0x3e55f6 = {};
|
|
332
|
+
_0x3e55f6["code"] = _0x3da4f4, _0x3e55f6[_0x356ff8(422)] = _0x3bdceb, _0x3e55f6[_0x26811b(419)] = _0x3744ea;
|
|
333
|
+
const _0x290f0d = {};
|
|
334
|
+
_0x290f0d[_0x356ff8(448)] = _0x3e55f6, _0x290f0d[_0x356ff8(424)] = _0x1cab49["MMNTY"], _0x290f0d["id"] = _0x31962c["id"], await ((_a = _0x30f928 == null ? void 0 : _0x30f928["transport"]) == null ? void 0 : _a[_0x26811b(460)](_0x290f0d));
|
|
335
|
+
} else (_c = (_b = _0x30f928 == null ? void 0 : _0x30f928["transport"]) == null ? void 0 : _b[_0x356ff8(480)]) == null ? void 0 : _c.call(_b, _0x29fecb);
|
|
336
|
+
} catch (_0x1c8062) {
|
|
337
|
+
(_e = (_d = _0x30f928 == null ? void 0 : _0x30f928[_0x356ff8(488)]) == null ? void 0 : _d["onerror"]) == null ? void 0 : _e.call(_d, _0x1c8062);
|
|
302
338
|
}
|
|
303
339
|
}
|
|
304
340
|
};
|
|
305
|
-
const forwardClientOnNotification = (
|
|
341
|
+
const forwardClientOnNotification = (_0x320cea, _0x3f25ca) => async (_0x4767e2) => {
|
|
306
342
|
var _a, _b, _c;
|
|
307
|
-
const
|
|
308
|
-
|
|
309
|
-
return
|
|
310
|
-
},
|
|
311
|
-
const
|
|
312
|
-
if (
|
|
313
|
-
const
|
|
314
|
-
|
|
315
|
-
} catch (
|
|
316
|
-
(_c = (_b =
|
|
343
|
+
const _0x1d24fb = _0x21a3, _0x27d938 = _0x21a3, _0x213b9b = {};
|
|
344
|
+
_0x213b9b["xmcLM"] = function(_0x12d227, _0x276a63) {
|
|
345
|
+
return _0x12d227 !== _0x276a63;
|
|
346
|
+
}, _0x213b9b["xSWLt"] = "notifications/initialized", _0x213b9b[_0x1d24fb(420)] = _0x27d938(453);
|
|
347
|
+
const _0x1e4b70 = _0x213b9b, { method: _0x4711e2, params: _0x108731 } = _0x4767e2;
|
|
348
|
+
if (_0x1e4b70["xmcLM"](_0x4711e2, _0x1e4b70["xSWLt"]) && (_0x1e4b70["xmcLM"](_0x4711e2, _0x1e4b70[_0x27d938(420)]) || (_0x108731 == null ? void 0 : _0x108731[_0x27d938(490)]))) try {
|
|
349
|
+
const _0x8005f4 = { ..._0x4767e2 };
|
|
350
|
+
_0x8005f4["jsonrpc"] = _0x1d24fb(465), await ((_a = _0x3f25ca == null ? void 0 : _0x3f25ca[_0x1d24fb(488)]) == null ? void 0 : _a["send"](_0x8005f4));
|
|
351
|
+
} catch (_0x32056a) {
|
|
352
|
+
(_c = (_b = _0x320cea == null ? void 0 : _0x320cea["transport"]) == null ? void 0 : _b["onerror"]) == null ? void 0 : _c.call(_b, _0x32056a);
|
|
317
353
|
}
|
|
318
354
|
};
|
|
319
|
-
function
|
|
320
|
-
const
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
}, _0x436f(_0x3eb3da, _0x246fe0);
|
|
355
|
+
function _0x3610() {
|
|
356
|
+
const _0x541b55 = ["JMaxV", "cNneM", "completion/complete", "addResponseListener", "notifications/initialized", "call", "570686biwZQB", "kkNqg", "level", "addNotificationListener", "notification", "params", "addListener", "error", "_onresponse", "164054EGcqjc", "vYlhn", "1PDRdga", "notifications/cancelled", "_requestHandlers", "readResource", "FjTAY", "1782ueLDLp", "4496TJFZWc", "1767765yPcVQJ", "send", "HefvS", "elicitation/create", "_onrequest", "logging/setLevel", "2.0", "SoCaE", "HucXo", "function", "request", "initialize", "push", "dEmVs", "addRequestListener", "NYVNC", "fgMSD", "CSjwA", "prompts/list", "ping", "35pZrnNj", "onerror", "method", "238086YifXhM", "get", "sthgI", "code", "resources/subscribe", "sttJM", "transport", "jsmFN", "forward", "listPrompts", "resources/unsubscribe", "resources/list", "srIIC", "originalOnResponse", "getPrompt", "indexOf", "3653560KcjkMk", "yfZbw", "4SAWlvk", "data", "rCDHw", "_onnotification", "message", "UlqiY", "jsonrpc", "yCyFn", "clearNotificationListener", "VWsxO", "name", "UynHf", "length", "QWYMz", "fallbackRequestHandler", "492jTClKn", "1028589HsbHVQ"];
|
|
357
|
+
_0x3610 = function() {
|
|
358
|
+
return _0x541b55;
|
|
359
|
+
};
|
|
360
|
+
return _0x3610();
|
|
326
361
|
}
|
|
327
|
-
const forwardClientOnResponse = (
|
|
362
|
+
const forwardClientOnResponse = (_0x52736d, _0x58c3cf) => async (_0xd20f53) => {
|
|
328
363
|
var _a, _b, _c, _d, _e, _f;
|
|
329
|
-
const
|
|
330
|
-
|
|
331
|
-
const
|
|
364
|
+
const _0xf4b324 = _0x21a3, _0x2956df = _0x21a3, _0x4964bc = {};
|
|
365
|
+
_0x4964bc["kSvAZ"] = _0xf4b324(465);
|
|
366
|
+
const _0x4c53ce = _0x4964bc;
|
|
332
367
|
try {
|
|
333
|
-
await ((_a =
|
|
334
|
-
} catch (
|
|
335
|
-
const { code:
|
|
368
|
+
await ((_a = _0x58c3cf == null ? void 0 : _0x58c3cf[_0x2956df(488)]) == null ? void 0 : _a[_0x2956df(460)](_0xd20f53));
|
|
369
|
+
} catch (_0x1408a9) {
|
|
370
|
+
const { code: _0x512075, message: _0xe99b85, data: _0x347365 } = _0x1408a9;
|
|
336
371
|
try {
|
|
337
|
-
if (
|
|
338
|
-
const
|
|
339
|
-
|
|
340
|
-
const
|
|
341
|
-
|
|
342
|
-
} else (_d = (_c =
|
|
343
|
-
} catch (
|
|
344
|
-
(_f = (_e =
|
|
372
|
+
if (_0x512075) {
|
|
373
|
+
const _0x6472f2 = {};
|
|
374
|
+
_0x6472f2["code"] = _0x512075, _0x6472f2["message"] = _0xe99b85, _0x6472f2["data"] = _0x347365;
|
|
375
|
+
const _0x41cab2 = {};
|
|
376
|
+
_0x41cab2["error"] = _0x6472f2, _0x41cab2[_0x2956df(424)] = _0x4c53ce["kSvAZ"], _0x41cab2["id"] = _0xd20f53["id"], await ((_b = _0x52736d == null ? void 0 : _0x52736d["transport"]) == null ? void 0 : _b["send"](_0x41cab2));
|
|
377
|
+
} else (_d = (_c = _0x52736d == null ? void 0 : _0x52736d["transport"]) == null ? void 0 : _c[_0xf4b324(480)]) == null ? void 0 : _d.call(_c, _0x1408a9);
|
|
378
|
+
} catch (_0x1e60d2) {
|
|
379
|
+
(_f = (_e = _0x52736d == null ? void 0 : _0x52736d[_0xf4b324(488)]) == null ? void 0 : _e[_0x2956df(480)]) == null ? void 0 : _f.call(_e, _0x1e60d2);
|
|
345
380
|
}
|
|
346
381
|
}
|
|
347
382
|
};
|
|
348
383
|
const createHandleListener = () => {
|
|
349
|
-
const
|
|
350
|
-
return
|
|
351
|
-
}, "
|
|
352
|
-
return
|
|
353
|
-
}, "
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
const _0x1e8724 = [];
|
|
359
|
-
for (const _0x1264b7 of _0x5de2ad) {
|
|
384
|
+
const _0xac9689 = _0x21a3, _0x1107c8 = { "rgPZO": function(_0x5d043a, _0x1def76) {
|
|
385
|
+
return _0x5d043a !== _0x1def76;
|
|
386
|
+
}, "VWsxO": function(_0x2ade8e, _0xecf54) {
|
|
387
|
+
return _0x2ade8e(_0xecf54);
|
|
388
|
+
}, "FjTAY": "function" }, _0x2eb4ef = [], _0x4b0952 = (_0x496b22, _0x2a3c52) => {
|
|
389
|
+
const _0x4de46f = _0x21a3;
|
|
390
|
+
if (_0x2a3c52) {
|
|
391
|
+
const _0x568d5d = [];
|
|
392
|
+
for (const _0x3baad7 of _0x2eb4ef) {
|
|
360
393
|
try {
|
|
361
|
-
|
|
394
|
+
_0x568d5d["push"](_0x3baad7(_0x496b22, _0x2a3c52));
|
|
362
395
|
} catch {
|
|
363
396
|
}
|
|
364
397
|
}
|
|
365
|
-
for (const
|
|
366
|
-
if (
|
|
398
|
+
for (const _0x5f4b66 of _0x568d5d) {
|
|
399
|
+
if (_0x1107c8["rgPZO"](_0x5f4b66, null)) return _0x5f4b66;
|
|
367
400
|
}
|
|
368
|
-
} else for (const
|
|
401
|
+
} else for (const _0xbf6e37 of _0x2eb4ef) {
|
|
369
402
|
try {
|
|
370
|
-
|
|
403
|
+
_0x1107c8[_0x4de46f(427)](_0xbf6e37, _0x496b22);
|
|
371
404
|
} catch {
|
|
372
405
|
}
|
|
373
406
|
}
|
|
374
|
-
},
|
|
375
|
-
const
|
|
376
|
-
|
|
377
|
-
},
|
|
378
|
-
const
|
|
379
|
-
|
|
380
|
-
},
|
|
381
|
-
const
|
|
382
|
-
|
|
383
|
-
},
|
|
384
|
-
return
|
|
385
|
-
}, setClientListener = (
|
|
386
|
-
const
|
|
387
|
-
return
|
|
388
|
-
}, "
|
|
389
|
-
return
|
|
407
|
+
}, _0x55a910 = (_0x173206) => {
|
|
408
|
+
const _0xcd10e3 = _0x21a3, _0x1d3d8a = _0x21a3;
|
|
409
|
+
typeof _0x173206 === _0x1107c8[_0xcd10e3(456)] && !_0x2eb4ef["includes"](_0x173206) && _0x2eb4ef[_0x1d3d8a(471)](_0x173206);
|
|
410
|
+
}, _0x5bbfbf = (_0x5069e7) => {
|
|
411
|
+
const _0x26df23 = _0x21a3, _0x270444 = _0x2eb4ef[_0x26df23(415)](_0x5069e7);
|
|
412
|
+
_0x270444 !== -1 && _0x2eb4ef["splice"](_0x270444, -9598 + -7993 + 6 * 2932);
|
|
413
|
+
}, _0x5e8325 = () => {
|
|
414
|
+
const _0x1c5cd6 = _0x21a3;
|
|
415
|
+
_0x2eb4ef[_0x1c5cd6(430)] = -505 * 7 + 1322 + 2213;
|
|
416
|
+
}, _0x192b11 = {};
|
|
417
|
+
return _0x192b11["handleListener"] = _0x4b0952, _0x192b11[_0xac9689(447)] = _0x55a910, _0x192b11["removeListener"] = _0x5bbfbf, _0x192b11["clearListener"] = _0x5e8325, _0x192b11;
|
|
418
|
+
}, setClientListener = (_0x3f2a4b) => {
|
|
419
|
+
const _0x2b0dcf = _0x21a3, _0x59aa79 = _0x21a3, _0x1dbe74 = { "UlqiY": function(_0x29f7e1) {
|
|
420
|
+
return _0x29f7e1();
|
|
421
|
+
}, "jsmFN": function(_0x491d18) {
|
|
422
|
+
return _0x491d18();
|
|
390
423
|
} };
|
|
391
424
|
{
|
|
392
|
-
const { handleListener:
|
|
393
|
-
|
|
425
|
+
const { handleListener: _0x396f91, addListener: _0xd63d09, removeListener: _0x5219aa, clearListener: _0x2d1072 } = _0x1dbe74[_0x2b0dcf(423)](createHandleListener);
|
|
426
|
+
_0x3f2a4b["_onresponse"] = _0x396f91, _0x3f2a4b[_0x59aa79(438)] = _0xd63d09, _0x3f2a4b["removeResponseListener"] = _0x5219aa, _0x3f2a4b["clearResponseListener"] = _0x2d1072;
|
|
394
427
|
}
|
|
395
428
|
{
|
|
396
|
-
const { handleListener:
|
|
397
|
-
|
|
429
|
+
const { handleListener: _0x22f5be, addListener: _0x3da798, removeListener: _0x288ae5, clearListener: _0x351358 } = _0x1dbe74[_0x2b0dcf(489)](createHandleListener);
|
|
430
|
+
_0x3f2a4b[_0x2b0dcf(432)] = _0x22f5be, _0x3f2a4b[_0x59aa79(473)] = _0x3da798, _0x3f2a4b["removeRequestListener"] = _0x288ae5, _0x3f2a4b["clearRequestListener"] = _0x351358;
|
|
398
431
|
}
|
|
399
432
|
{
|
|
400
|
-
const { handleListener:
|
|
401
|
-
|
|
433
|
+
const { handleListener: _0x2ac8fa, addListener: _0x7c4ea0, removeListener: _0x5e1228, clearListener: _0x2230ce } = _0x1dbe74["jsmFN"](createHandleListener);
|
|
434
|
+
_0x3f2a4b["fallbackNotificationHandler"] = _0x2ac8fa, _0x3f2a4b[_0x2b0dcf(444)] = _0x7c4ea0, _0x3f2a4b["removeNotificationListener"] = _0x5e1228, _0x3f2a4b[_0x59aa79(426)] = _0x2230ce;
|
|
402
435
|
}
|
|
403
436
|
};
|
|
404
|
-
|
|
405
|
-
const
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
const
|
|
421
|
-
|
|
422
|
-
}), _0xef50a3["tqDZP"](typeof _0x392ad7, _0xef50a3[_0x2ff689(380)]) && _0xef50a3[_0x39ee68(397)](_0x392ad7), _0x4eae35[_0x2ff689(327)]((_0x4b3e63) => {
|
|
423
|
-
const { method: _0x52cc8d } = _0x4b3e63, _0x1d4650 = _0x28c085["get"](_0x52cc8d);
|
|
424
|
-
_0xef50a3["tqDZP"](typeof _0x1d4650, _0xef50a3["cjSoZ"]) && _0x1d4650(_0x4b3e63);
|
|
437
|
+
const initClientHandler = (_0x44fc4b, { beforeInit: _0x2f7bcf, afterInit: _0x3a8b46 } = {}) => {
|
|
438
|
+
const _0xd1a2a = _0x21a3, _0x2c5aa6 = _0x21a3, _0xd894da = { "HucXo": function(_0x4f3317, _0x48b59e) {
|
|
439
|
+
return _0x4f3317 === _0x48b59e;
|
|
440
|
+
}, "HicFO": _0xd1a2a(468), "JMaxV": function(_0x38cdf8) {
|
|
441
|
+
return _0x38cdf8();
|
|
442
|
+
}, "DclXr": function(_0x2d9c7c, _0x40079a) {
|
|
443
|
+
return _0x2d9c7c(_0x40079a);
|
|
444
|
+
}, "UynHf": function(_0xe96982, _0x5d6dbc) {
|
|
445
|
+
return _0xe96982 === _0x5d6dbc;
|
|
446
|
+
}, "yCyFn": function(_0x2d408b) {
|
|
447
|
+
return _0x2d408b();
|
|
448
|
+
} }, _0x2ed60f = new Map(_0x44fc4b["_notificationHandlers"]);
|
|
449
|
+
_0x44fc4b[_0xd1a2a(454)]["clear"](), _0x44fc4b["_notificationHandlers"]["clear"](), _0xd894da["HucXo"](typeof _0x2f7bcf, _0xd894da["HicFO"]) && _0xd894da[_0xd1a2a(435)](_0x2f7bcf), _0xd894da[_0xd1a2a(467)](_0x44fc4b[_0xd1a2a(449)][_0x2c5aa6(428)], _0xd1a2a(449)) && (_0x44fc4b[_0x2c5aa6(413)] = _0x44fc4b[_0x2c5aa6(449)]), _0xd894da["DclXr"](setClientListener, _0x44fc4b), _0x44fc4b[_0x2c5aa6(438)]((_0x2331a6) => {
|
|
450
|
+
const _0x34d91a = _0xd1a2a;
|
|
451
|
+
_0x44fc4b["originalOnResponse"][_0x34d91a(440)](_0x44fc4b, _0x2331a6);
|
|
452
|
+
}), _0xd894da[_0xd1a2a(429)](typeof _0x3a8b46, _0xd894da["HicFO"]) && _0xd894da[_0x2c5aa6(425)](_0x3a8b46), _0x44fc4b[_0x2c5aa6(444)]((_0x339f8e) => {
|
|
453
|
+
const _0x4a50fe = _0x2c5aa6, { method: _0x325e41 } = _0x339f8e, _0x11bd8a = _0x2ed60f[_0x4a50fe(483)](_0x325e41);
|
|
454
|
+
_0xd894da[_0x4a50fe(467)](typeof _0x11bd8a, "function") && _0x11bd8a(_0x339f8e);
|
|
425
455
|
});
|
|
426
456
|
};
|
|
427
|
-
const
|
|
428
|
-
(function(
|
|
429
|
-
const
|
|
457
|
+
const _0x580c11 = _0x3345;
|
|
458
|
+
(function(_0x478e44, _0xa6dc8a) {
|
|
459
|
+
const _0x25e00b = _0x3345, _0x47302c = _0x3345, _0x2eda2a = _0x478e44();
|
|
430
460
|
while (!![]) {
|
|
431
461
|
try {
|
|
432
|
-
const
|
|
433
|
-
if (
|
|
434
|
-
else
|
|
435
|
-
} catch (
|
|
436
|
-
|
|
462
|
+
const _0x494140 = parseInt(_0x25e00b(215)) / (886 + 503 * 15 + -8430) * (-parseInt(_0x47302c(217)) / (-8610 + 2472 + -6140 * -1)) + parseInt(_0x25e00b(216)) / (3238 * -1 + -3707 + 3474 * 2) + parseInt(_0x25e00b(210)) / (-37 * -228 + 1 * 8449 + -5627 * 3) * (parseInt(_0x47302c(223)) / (-7747 + -4788 + 1 * 12540)) + -parseInt(_0x47302c(214)) / (4967 + 1364 + -6325) * (parseInt(_0x47302c(220)) / (4 * 1044 + -3 * 1182 + -623)) + parseInt(_0x47302c(212)) / (-2957 * 3 + 1472 + -1 * -7407) * (parseInt(_0x25e00b(228)) / (-1937 + -1990 + 3936)) + parseInt(_0x25e00b(219)) / (-173 * 57 + -25 * 296 + 101 * 171) + parseInt(_0x25e00b(222)) / (-8629 + -58 * -157 + -466) * (parseInt(_0x25e00b(224)) / (-7707 + 181 * -29 + 12968));
|
|
463
|
+
if (_0x494140 === _0xa6dc8a) break;
|
|
464
|
+
else _0x2eda2a["push"](_0x2eda2a["shift"]());
|
|
465
|
+
} catch (_0x46fc95) {
|
|
466
|
+
_0x2eda2a["push"](_0x2eda2a["shift"]());
|
|
437
467
|
}
|
|
438
468
|
}
|
|
439
|
-
})(
|
|
440
|
-
|
|
441
|
-
const
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
return
|
|
446
|
-
},
|
|
469
|
+
})(_0x15b2, 995159 + -6 * -266138 + -1619768);
|
|
470
|
+
const randomUUID$1 = () => {
|
|
471
|
+
const _0xb079cb = _0x3345, _0x528f08 = _0x3345, _0x5a8a43 = {};
|
|
472
|
+
_0x5a8a43["svuxn"] = function(_0x193cff, _0x4c5d10) {
|
|
473
|
+
return _0x193cff & _0x4c5d10;
|
|
474
|
+
}, _0x5a8a43["ZUPdr"] = function(_0x332e8b, _0x121e9f) {
|
|
475
|
+
return _0x332e8b === _0x121e9f;
|
|
476
|
+
}, _0x5a8a43[_0xb079cb(227)] = function(_0x255fbc, _0x2ab97f) {
|
|
477
|
+
return _0x255fbc === _0x2ab97f;
|
|
478
|
+
}, _0x5a8a43["SpRzi"] = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx";
|
|
479
|
+
const _0x43115c = _0x5a8a43;
|
|
480
|
+
if (_0x43115c[_0x528f08(227)](typeof crypto, "object") && crypto[_0xb079cb(211)]) return crypto["randomUUID"]();
|
|
481
|
+
return _0x43115c["SpRzi"]["replace"](/[xy]/g, (_0x362ab3) => {
|
|
482
|
+
const _0x14d41e = _0xb079cb, _0x2776e = _0x43115c["svuxn"](crypto["getRandomValues"](new Uint8Array(-3798 + 8571 * -1 + 12370))[5599 + -7924 + -25 * -93], 46 * -149 + -1470 + 8339 * 1), _0x3ff335 = _0x43115c[_0x14d41e(225)](_0x362ab3, "x") ? _0x2776e : _0x43115c[_0x14d41e(209)](_0x2776e, 28 * -139 + 58 * -157 + -1 * -13001) | 813 * 10 + -3707 + 883 * -5;
|
|
483
|
+
return _0x3ff335["toString"](-1 * -1851 + 6493 + -8328);
|
|
484
|
+
});
|
|
485
|
+
}, randomBytes = (_0x4e1e74) => {
|
|
486
|
+
const _0x52a103 = _0x3345, _0x49e565 = _0x3345, _0x133a67 = new Uint8Array(_0x4e1e74);
|
|
487
|
+
return crypto[_0x52a103(221)](_0x133a67), Array[_0x49e565(218)](_0x133a67, (_0x268787) => _0x268787[_0x49e565(226)](39 * 181 + 4365 + 4 * -2852)["padStart"](7831 + 1119 + 2237 * -4, "0"))[_0x52a103(213)]("");
|
|
488
|
+
}, _0x5e2e0a = {};
|
|
489
|
+
_0x5e2e0a[_0x580c11(211)] = randomUUID$1, _0x5e2e0a["randomBytes"] = randomBytes;
|
|
490
|
+
function _0x3345(_0x7cf9, _0x178965) {
|
|
491
|
+
const _0x30367e = _0x15b2();
|
|
492
|
+
return _0x3345 = function(_0x5db3dc, _0x53b88a) {
|
|
493
|
+
_0x5db3dc = _0x5db3dc - (-7373 + 7187 * 1 + 395);
|
|
494
|
+
let _0x1b99a4 = _0x30367e[_0x5db3dc];
|
|
495
|
+
return _0x1b99a4;
|
|
496
|
+
}, _0x3345(_0x7cf9, _0x178965);
|
|
447
497
|
}
|
|
448
|
-
function
|
|
449
|
-
const
|
|
450
|
-
|
|
451
|
-
return
|
|
498
|
+
function _0x15b2() {
|
|
499
|
+
const _0x18a9ba = ["join", "2500590yHdCUG", "3CzpgOE", "219762yRRBUK", "592022JqIdxi", "from", "6033730pSHJFF", "28gKZiuO", "getRandomValues", "147169GUBreL", "5fFOMNB", "1140KVOWlq", "ZUPdr", "toString", "DBGzc", "45351XtLuDF", "svuxn", "9892WpQPGF", "randomUUID", "2504EaskHQ"];
|
|
500
|
+
_0x15b2 = function() {
|
|
501
|
+
return _0x18a9ba;
|
|
452
502
|
};
|
|
453
|
-
return
|
|
503
|
+
return _0x15b2();
|
|
454
504
|
}
|
|
455
|
-
|
|
456
|
-
const
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
return
|
|
461
|
-
},
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
return _0x2305bc["dHTfU"]["replace"](/[xy]/g, (_0x47a253) => {
|
|
467
|
-
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;
|
|
468
|
-
return _0x5cd225["toString"](9449 + 4 * -461 + -7589);
|
|
469
|
-
});
|
|
470
|
-
}, randomBytes = (_0x2added) => {
|
|
471
|
-
const _0x3977c7 = _0x4f47, _0x2f0d95 = _0x4f47, _0x516c9f = new Uint8Array(_0x2added);
|
|
472
|
-
return crypto["getRandomValues"](_0x516c9f), Array[_0x3977c7(401)](_0x516c9f, (_0x145cf8) => _0x145cf8[_0x2f0d95(403)](-3 * 1739 + -6509 + 2 * 5871)[_0x3977c7(387)](6365 + 9124 + -15487, "0"))["join"]("");
|
|
473
|
-
}, _0xf24c8f = {};
|
|
474
|
-
_0xf24c8f[_0x1c80bf(391)] = randomUUID$1, _0xf24c8f[_0x53d80a(396)] = randomBytes;
|
|
475
|
-
const _0x4b5fcc = _0x47a7;
|
|
476
|
-
(function(_0x564ad7, _0x4857af) {
|
|
477
|
-
const _0x465eed = _0x47a7, _0xa45919 = _0x47a7, _0x1574ce = _0x564ad7();
|
|
505
|
+
function _0xd139(_0x296853, _0x37f015) {
|
|
506
|
+
const _0x5da840 = _0x3ca7();
|
|
507
|
+
return _0xd139 = function(_0x54e7ad, _0x50f639) {
|
|
508
|
+
_0x54e7ad = _0x54e7ad - (-1483 * 3 + -5564 + 20 * 513);
|
|
509
|
+
let _0x14a7dc = _0x5da840[_0x54e7ad];
|
|
510
|
+
return _0x14a7dc;
|
|
511
|
+
}, _0xd139(_0x296853, _0x37f015);
|
|
512
|
+
}
|
|
513
|
+
const _0x403f63 = _0xd139, _0x165645 = _0xd139;
|
|
514
|
+
(function(_0x1a9ffe, _0x259fb9) {
|
|
515
|
+
const _0x1f17e3 = _0xd139, _0x385b90 = _0xd139, _0x2090d1 = _0x1a9ffe();
|
|
478
516
|
while (!![]) {
|
|
479
517
|
try {
|
|
480
|
-
const
|
|
481
|
-
if (
|
|
482
|
-
else
|
|
483
|
-
} catch (
|
|
484
|
-
|
|
518
|
+
const _0x575940 = parseInt(_0x1f17e3(302)) / (483 * -9 + -8479 + 127 * 101) + -parseInt(_0x385b90(249)) / (-109 * -51 + 8949 + -14506) + -parseInt(_0x1f17e3(291)) / (155 * 4 + -7609 + -2 * -3496) + -parseInt(_0x1f17e3(292)) / (-4223 + 1 * -2293 + 6520) * (parseInt(_0x1f17e3(264)) / (-2453 * -1 + 2607 + -5055)) + -parseInt(_0x385b90(273)) / (5458 + -70 * -15 + -6502) * (parseInt(_0x1f17e3(266)) / (-1 * -739 + -3 * 2669 + -7275 * -1)) + parseInt(_0x1f17e3(300)) / (-1069 + 1 * 9049 + -7972) * (parseInt(_0x1f17e3(269)) / (602 * 11 + 72 * -73 + -1357)) + parseInt(_0x385b90(255)) / (-11 * 888 + 2728 + 7050) * (parseInt(_0x1f17e3(284)) / (-6908 + 3298 + 3621));
|
|
519
|
+
if (_0x575940 === _0x259fb9) break;
|
|
520
|
+
else _0x2090d1["push"](_0x2090d1["shift"]());
|
|
521
|
+
} catch (_0x44a878) {
|
|
522
|
+
_0x2090d1["push"](_0x2090d1["shift"]());
|
|
485
523
|
}
|
|
486
524
|
}
|
|
487
|
-
})(
|
|
488
|
-
const forwardProxyClient = (
|
|
489
|
-
const
|
|
490
|
-
return
|
|
491
|
-
}, "
|
|
492
|
-
return
|
|
525
|
+
})(_0x3ca7, -4 * 308317 + 753182 * 2 + 658196);
|
|
526
|
+
const forwardProxyClient = (_0x1ea5f5, _0x520513) => {
|
|
527
|
+
const _0x4011aa = _0xd139, _0x1a38f1 = _0xd139, _0x3229df = { "olCWX": function(_0x3559a9, _0xb8cee4, _0x220269) {
|
|
528
|
+
return _0x3559a9(_0xb8cee4, _0x220269);
|
|
529
|
+
}, "sfXDX": function(_0x22e678, _0x1ef66b, _0x7c6104) {
|
|
530
|
+
return _0x22e678(_0x1ef66b, _0x7c6104);
|
|
531
|
+
}, "ksWFu": function(_0x38c085, _0x1d6cc2, _0x3fe508) {
|
|
532
|
+
return _0x38c085(_0x1d6cc2, _0x3fe508);
|
|
493
533
|
} };
|
|
494
|
-
forwardServerOnRequest
|
|
495
|
-
const
|
|
496
|
-
|
|
497
|
-
const
|
|
498
|
-
|
|
534
|
+
_0x3229df[_0x4011aa(283)](forwardServerOnRequest, _0x1ea5f5, _0x520513), forwardServerOnNotification(_0x1ea5f5, _0x520513);
|
|
535
|
+
const _0x536214 = _0x3229df[_0x1a38f1(283)](forwardClientOnRequest, _0x520513, _0x1ea5f5), _0x237731 = _0x3229df[_0x1a38f1(294)](forwardClientOnResponse, _0x520513, _0x1ea5f5), _0x1aedc5 = _0x3229df[_0x4011aa(277)](forwardClientOnNotification, _0x520513, _0x1ea5f5);
|
|
536
|
+
_0x520513["addRequestListener"](_0x536214), _0x520513["addResponseListener"](_0x237731), _0x520513[_0x1a38f1(287)](_0x1aedc5), _0x1ea5f5["onclose"] = () => {
|
|
537
|
+
const _0x57d432 = _0x4011aa, _0x4835a5 = _0x1a38f1;
|
|
538
|
+
_0x520513[_0x57d432(247)](_0x536214), _0x520513["removeResponseListener"](_0x237731), _0x520513[_0x4835a5(252)](_0x1aedc5);
|
|
499
539
|
};
|
|
500
|
-
}, initWebClientHandler = (
|
|
501
|
-
const
|
|
502
|
-
return
|
|
503
|
-
}, "
|
|
504
|
-
return
|
|
505
|
-
} },
|
|
540
|
+
}, initWebClientHandler = (_0x24e6ba, _0x45ee98, _0x2fd3cf) => {
|
|
541
|
+
const _0x29ec4a = { "QhPqi": function(_0x344930, _0xb2d719) {
|
|
542
|
+
return _0x344930 instanceof _0xb2d719;
|
|
543
|
+
}, "AIICR": "close", "Qalmc": function(_0x26674c, _0x5ed231, _0x343f29) {
|
|
544
|
+
return _0x26674c(_0x5ed231, _0x343f29);
|
|
545
|
+
} }, _0x1fb849 = () => {
|
|
506
546
|
var _a;
|
|
507
|
-
|
|
508
|
-
_0x441bc3["pMiva"](_0x5699a0, SSEClientTransport) && ((_a = _0x5699a0["_eventSource"]) == null ? void 0 : _a["addEventListener"](_0x441bc3[_0x42afa2(547)], () => {
|
|
547
|
+
_0x29ec4a["QhPqi"](_0x2fd3cf, SSEClientTransport) && ((_a = _0x2fd3cf["_eventSource"]) == null ? void 0 : _a["addEventListener"](_0x29ec4a["AIICR"], () => {
|
|
509
548
|
var _a2;
|
|
510
|
-
const
|
|
511
|
-
(_a2 =
|
|
512
|
-
})), forwardProxyClient
|
|
513
|
-
},
|
|
514
|
-
|
|
549
|
+
const _0x1ba592 = _0xd139;
|
|
550
|
+
(_a2 = _0x2fd3cf[_0x1ba592(295)]) == null ? void 0 : _a2["close"]();
|
|
551
|
+
})), _0x29ec4a["Qalmc"](forwardProxyClient, _0x24e6ba, _0x45ee98);
|
|
552
|
+
}, _0x4a0202 = {};
|
|
553
|
+
_0x4a0202["afterInit"] = _0x1fb849, _0x29ec4a["Qalmc"](initClientHandler, _0x45ee98, _0x4a0202);
|
|
515
554
|
};
|
|
516
|
-
const sseOptions = (
|
|
517
|
-
const
|
|
518
|
-
return
|
|
519
|
-
} },
|
|
520
|
-
|
|
521
|
-
const
|
|
522
|
-
|
|
523
|
-
const
|
|
524
|
-
|
|
525
|
-
const
|
|
526
|
-
const
|
|
527
|
-
Object["entries"](
|
|
528
|
-
|
|
529
|
-
_0x54dc09[_0xef4bbf(527)](_0x57dbc7, _0x5102e6);
|
|
555
|
+
const sseOptions = (_0x2c2b0f, _0x4a1aaf = _0x5e2e0a[_0x403f63(299)]()) => {
|
|
556
|
+
const _0x2e1fa7 = _0x403f63, _0x4f1838 = _0x403f63, _0x4fadc3 = { "RVabx": function(_0x31b09b, _0x923e4b, _0x265c1d) {
|
|
557
|
+
return _0x31b09b(_0x923e4b, _0x265c1d);
|
|
558
|
+
}, "crCTs": "include" }, _0x5397e6 = {};
|
|
559
|
+
_0x5397e6["sse-session-id"] = _0x4a1aaf;
|
|
560
|
+
const _0x355e50 = _0x5397e6, _0x110370 = {};
|
|
561
|
+
_0x110370["sse-session-id"] = _0x4a1aaf;
|
|
562
|
+
const _0x4feb9e = {};
|
|
563
|
+
_0x4feb9e["headers"] = _0x110370, _0x4feb9e["credentials"] = _0x4fadc3[_0x2e1fa7(304)];
|
|
564
|
+
const _0x44ea69 = { "requestInit": _0x4feb9e, "eventSourceInit": { async "fetch"(_0x2d0fa2, _0x199dc2) {
|
|
565
|
+
const _0x239fd1 = _0x2e1fa7, _0x163e42 = _0x2e1fa7, _0x5d0da6 = new Headers((_0x199dc2 == null ? void 0 : _0x199dc2[_0x239fd1(268)]) || {});
|
|
566
|
+
Object["entries"](_0x355e50)["forEach"](([_0x2bf60a, _0x3ac0cd]) => {
|
|
567
|
+
_0x5d0da6["set"](_0x2bf60a, _0x3ac0cd);
|
|
530
568
|
});
|
|
531
|
-
const
|
|
532
|
-
return
|
|
569
|
+
const _0x28ee4a = { ..._0x199dc2 };
|
|
570
|
+
return _0x28ee4a["headers"] = _0x5d0da6, _0x4fadc3[_0x163e42(279)](fetch, _0x2d0fa2, _0x28ee4a);
|
|
533
571
|
}, "withCredentials": !![] } };
|
|
534
|
-
return
|
|
572
|
+
return _0x2c2b0f && (_0x44ea69[_0x2e1fa7(280)]["headers"]["Authorization"] = "Bearer " + _0x2c2b0f, _0x355e50["Authorization"] = _0x4f1838(256) + _0x2c2b0f), _0x44ea69;
|
|
535
573
|
};
|
|
536
|
-
const streamOptions = (
|
|
537
|
-
const
|
|
538
|
-
|
|
539
|
-
const
|
|
540
|
-
|
|
541
|
-
const
|
|
542
|
-
|
|
543
|
-
const
|
|
544
|
-
|
|
545
|
-
const
|
|
546
|
-
return
|
|
574
|
+
const streamOptions = (_0x27268d, _0x1026f7 = _0x5e2e0a[_0x403f63(299)]()) => {
|
|
575
|
+
const _0x389ce1 = _0x165645, _0x2509c8 = _0x403f63, _0x48d7ba = {};
|
|
576
|
+
_0x48d7ba[_0x389ce1(271)] = "include";
|
|
577
|
+
const _0x5c5397 = _0x48d7ba, _0x7ae183 = {};
|
|
578
|
+
_0x7ae183["stream-session-id"] = _0x1026f7;
|
|
579
|
+
const _0x38a8f7 = {};
|
|
580
|
+
_0x38a8f7[_0x2509c8(268)] = _0x7ae183, _0x38a8f7["credentials"] = _0x5c5397[_0x389ce1(271)];
|
|
581
|
+
const _0xc40100 = {};
|
|
582
|
+
_0xc40100["requestInit"] = _0x38a8f7;
|
|
583
|
+
const _0x10ae35 = _0xc40100;
|
|
584
|
+
return _0x27268d && (_0x10ae35[_0x2509c8(280)][_0x389ce1(268)][_0x2509c8(301)] = _0x389ce1(256) + _0x27268d), _0x10ae35;
|
|
547
585
|
};
|
|
548
|
-
const attemptConnection = async (
|
|
549
|
-
const
|
|
550
|
-
return
|
|
551
|
-
}, "
|
|
552
|
-
return
|
|
553
|
-
} },
|
|
586
|
+
const attemptConnection = async (_0x41629e, _0x2a8fc8, _0x27619d) => {
|
|
587
|
+
const _0x5e5775 = _0x403f63, _0x1fcac6 = _0x403f63, _0x2e462b = { "rRtFD": function(_0x5df490) {
|
|
588
|
+
return _0x5df490();
|
|
589
|
+
}, "ToRAF": function(_0x56a4b1, _0x56b87a) {
|
|
590
|
+
return _0x56a4b1 instanceof _0x56b87a;
|
|
591
|
+
} }, _0x340445 = _0x2e462b[_0x5e5775(276)](_0x27619d);
|
|
554
592
|
try {
|
|
555
|
-
return await
|
|
556
|
-
} catch (
|
|
557
|
-
if (
|
|
558
|
-
const
|
|
559
|
-
return await
|
|
560
|
-
} else throw
|
|
593
|
+
return await _0x41629e[_0x1fcac6(260)](_0x340445), _0x340445;
|
|
594
|
+
} catch (_0x243af0) {
|
|
595
|
+
if (_0x2e462b[_0x5e5775(275)](_0x243af0, UnauthorizedError)) {
|
|
596
|
+
const _0x3b090e = await _0x2a8fc8();
|
|
597
|
+
return await _0x340445[_0x5e5775(257)](_0x3b090e), await attemptConnection(_0x41629e, _0x2a8fc8, _0x27619d);
|
|
598
|
+
} else throw _0x243af0;
|
|
561
599
|
}
|
|
562
600
|
};
|
|
563
|
-
|
|
564
|
-
const
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
return
|
|
569
|
-
},
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
const _0xae6017 = _0x4b5fcc, _0x3dddee = _0x4b5fcc, _0x11d77d = {};
|
|
573
|
-
_0x11d77d["RsKXs"] = function(_0x35f130, _0x386a12) {
|
|
574
|
-
return _0x35f130 in _0x386a12;
|
|
575
|
-
}, _0x11d77d["PBhps"] = "waitForOAuthCode", _0x11d77d[_0xae6017(535)] = "function", _0x11d77d[_0xae6017(507)] = "waitForOAuthCode need to be provided when authProvider is provided";
|
|
576
|
-
const _0x2562e6 = _0x11d77d;
|
|
577
|
-
if (_0x2562e6["RsKXs"](_0x2562e6[_0x3dddee(551)], _0x3ea3cc)) return _0x3ea3cc[_0x3dddee(523)];
|
|
601
|
+
const getWaitForOAuthCodeFunction = (_0x27ed52, _0x2067ca) => {
|
|
602
|
+
const _0x328421 = _0x165645, _0x26eb22 = _0x165645, _0x34907f = {};
|
|
603
|
+
_0x34907f[_0x328421(267)] = function(_0x5c4b81, _0x5e707d) {
|
|
604
|
+
return _0x5c4b81 in _0x5e707d;
|
|
605
|
+
}, _0x34907f["timcZ"] = "waitForOAuthCode", _0x34907f[_0x328421(253)] = function(_0x2557aa, _0x57bd0c) {
|
|
606
|
+
return _0x2557aa === _0x57bd0c;
|
|
607
|
+
}, _0x34907f["ufiEQ"] = _0x328421(285), _0x34907f[_0x26eb22(250)] = _0x328421(293);
|
|
608
|
+
const _0x213dac = _0x34907f;
|
|
609
|
+
if (_0x213dac["oGmBG"](_0x213dac[_0x328421(258)], _0x27ed52)) return _0x27ed52[_0x26eb22(278)];
|
|
578
610
|
else {
|
|
579
|
-
if (typeof
|
|
611
|
+
if (_0x213dac[_0x26eb22(253)](typeof _0x2067ca, _0x213dac["ufiEQ"])) return _0x2067ca;
|
|
580
612
|
}
|
|
581
|
-
throw new Error(
|
|
582
|
-
};
|
|
583
|
-
const createSseProxy = async (_0x3a7e67) => {
|
|
584
|
-
const _0x436c50 = _0x4b5fcc, _0x54de6e = _0x4b5fcc, _0x15dc58 = { "TFSRn": function(_0x3d2e7e, _0x561712, _0x2439e9) {
|
|
585
|
-
return _0x3d2e7e(_0x561712, _0x2439e9);
|
|
586
|
-
}, "HwvVa": "mcp-sse-proxy-client", "ufTHS": function(_0x14fa54) {
|
|
587
|
-
return _0x14fa54();
|
|
588
|
-
}, "WIVYl": function(_0x538291, _0x3c8264, _0x52c29b, _0x1d8414) {
|
|
589
|
-
return _0x538291(_0x3c8264, _0x52c29b, _0x1d8414);
|
|
590
|
-
}, "jniGY": "sessionId" }, { client: _0x25d054, url: _0x2828f0, token: _0x367a86, sessionId: _0x397571, authProvider: _0x16a780, requestInit: _0xd2fc7a, eventSourceInit: _0x3321f4, waitForOAuthCode: _0xe2483b } = _0x3a7e67, _0x507895 = {};
|
|
591
|
-
_0x507895["authProvider"] = _0x16a780, _0x507895["requestInit"] = _0xd2fc7a, _0x507895["eventSourceInit"] = _0x3321f4;
|
|
592
|
-
const _0x497c77 = _0x507895, _0x1a290e = _0x397571 || _0xf24c8f["randomUUID"](), _0x3d01da = _0x15dc58[_0x436c50(506)](sseOptions, _0x367a86, _0x1a290e);
|
|
593
|
-
if (_0xd2fc7a) {
|
|
594
|
-
const _0x6e0637 = { ..._0x3d01da["requestInit"], ..._0xd2fc7a };
|
|
595
|
-
_0x6e0637["headers"] = { ..._0x3d01da[_0x436c50(544)]["headers"], ..._0xd2fc7a["headers"] }, _0x497c77["requestInit"] = _0x6e0637;
|
|
596
|
-
} else _0x497c77[_0x54de6e(544)] = _0x3d01da["requestInit"];
|
|
597
|
-
if (_0x3321f4) {
|
|
598
|
-
const _0x143351 = { ..._0x3d01da[_0x436c50(559)], ..._0x3321f4 };
|
|
599
|
-
_0x497c77["eventSourceInit"] = _0x143351;
|
|
600
|
-
} else _0x497c77["eventSourceInit"] = _0x3d01da["eventSourceInit"];
|
|
601
|
-
const _0x4d6715 = {};
|
|
602
|
-
_0x4d6715["listChanged"] = !![];
|
|
603
|
-
const _0x6e6fc2 = {};
|
|
604
|
-
_0x6e6fc2["roots"] = _0x4d6715, _0x6e6fc2["sampling"] = {}, _0x6e6fc2[_0x436c50(511)] = {};
|
|
605
|
-
const _0x4ab62c = _0x6e6fc2, _0x278492 = {};
|
|
606
|
-
_0x278492[_0x54de6e(536)] = _0x15dc58["HwvVa"], _0x278492["version"] = _0x436c50(526);
|
|
607
|
-
const _0x53bd61 = {};
|
|
608
|
-
_0x53bd61["capabilities"] = _0x4ab62c;
|
|
609
|
-
const _0x4512ab = new Client(_0x278492, _0x53bd61), _0x2362cc = () => new SSEClientTransport(new URL(_0x2828f0), _0x497c77);
|
|
610
|
-
let _0x5a6b4b = _0x15dc58[_0x54de6e(504)](_0x2362cc);
|
|
611
|
-
if (_0x16a780) {
|
|
612
|
-
const _0xffec8d = _0x15dc58[_0x436c50(506)](getWaitForOAuthCodeFunction, _0x16a780, _0xe2483b);
|
|
613
|
-
_0x5a6b4b = await _0x15dc58[_0x54de6e(513)](attemptConnection, _0x4512ab, _0xffec8d, _0x2362cc);
|
|
614
|
-
} else await _0x4512ab[_0x436c50(538)](_0x5a6b4b);
|
|
615
|
-
_0x15dc58[_0x54de6e(513)](initWebClientHandler, _0x4512ab, _0x25d054, _0x5a6b4b), _0x5a6b4b[_0x54de6e(557)] = _0x5a6b4b[_0x54de6e(542)]["searchParams"][_0x54de6e(532)](_0x15dc58["jniGY"]);
|
|
616
|
-
const _0x5ba2fa = {};
|
|
617
|
-
return _0x5ba2fa["transport"] = _0x5a6b4b, _0x5ba2fa["sessionId"] = _0x5a6b4b[_0x436c50(557)], _0x5ba2fa;
|
|
613
|
+
throw new Error(_0x213dac["daYBw"]);
|
|
618
614
|
};
|
|
619
|
-
function
|
|
620
|
-
const
|
|
621
|
-
|
|
622
|
-
return
|
|
615
|
+
function _0x3ca7() {
|
|
616
|
+
const _0x532cf0 = ["oGmBG", "headers", "1233BqDPfE", "eventSourceInit", "jmVYh", "wfHUn", "1336686qzpbXm", "_endpoint", "ToRAF", "rRtFD", "ksWFu", "waitForOAuthCode", "RVabx", "requestInit", "mcp-sse-proxy-client", "CfBXU", "olCWX", "341WrxLOu", "function", "sessionId", "addNotificationListener", "version", "GKDjq", "roots", "5390433vAXkON", "4NpGpPF", "waitForOAuthCode need to be provided when authProvider is provided", "sfXDX", "_eventSource", "PdsSn", "get", "sampling", "randomUUID", "4064jocfPO", "Authorization", "452565rqIeHi", "elicitation", "crCTs", "authProvider", "removeRequestListener", "1.0.0", "104070FoHgyi", "daYBw", "capabilities", "removeNotificationListener", "lauIp", "listChanged", "1255910ovFXHu", "Bearer ", "finishAuth", "timcZ", "eZwNI", "connect", "JzpWy", "tUMle", "kdowC", "379385gxVFVP", "&token=", "49TIzdXg"];
|
|
617
|
+
_0x3ca7 = function() {
|
|
618
|
+
return _0x532cf0;
|
|
623
619
|
};
|
|
624
|
-
return
|
|
620
|
+
return _0x3ca7();
|
|
625
621
|
}
|
|
626
|
-
const
|
|
627
|
-
const
|
|
628
|
-
return
|
|
629
|
-
}, "
|
|
630
|
-
return
|
|
631
|
-
}, "
|
|
632
|
-
return
|
|
633
|
-
}, "
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
const
|
|
645
|
-
|
|
646
|
-
const
|
|
647
|
-
|
|
648
|
-
const
|
|
649
|
-
|
|
650
|
-
const
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
622
|
+
const createSseProxy = async (_0x5dad8d) => {
|
|
623
|
+
const _0x6930f9 = _0x165645, _0x38c9ed = _0x403f63, _0x1054a4 = { "GKDjq": function(_0x930cd2, _0x3f85df, _0x2f35cf) {
|
|
624
|
+
return _0x930cd2(_0x3f85df, _0x2f35cf);
|
|
625
|
+
}, "JzpWy": _0x6930f9(281), "mcbiU": "1.0.0", "CfBXU": function(_0x546789) {
|
|
626
|
+
return _0x546789();
|
|
627
|
+
}, "kdowC": function(_0x37d1bc, _0x148d68, _0x2ffdbe, _0x3ee52e) {
|
|
628
|
+
return _0x37d1bc(_0x148d68, _0x2ffdbe, _0x3ee52e);
|
|
629
|
+
}, "KkViY": "sessionId" }, { client: _0x433dd1, url: _0x1eda8b, token: _0x251623, sessionId: _0x36c001, authProvider: _0xce05bf, requestInit: _0x8a64c, eventSourceInit: _0x948e9b, waitForOAuthCode: _0x1ba260 } = _0x5dad8d, _0x116205 = {};
|
|
630
|
+
_0x116205[_0x38c9ed(305)] = _0xce05bf, _0x116205["requestInit"] = _0x8a64c, _0x116205["eventSourceInit"] = _0x948e9b;
|
|
631
|
+
const _0x42169d = _0x116205, _0x8ac254 = _0x36c001 || _0x5e2e0a[_0x38c9ed(299)](), _0x116d99 = _0x1054a4[_0x6930f9(289)](sseOptions, _0x251623, _0x8ac254);
|
|
632
|
+
if (_0x8a64c) {
|
|
633
|
+
const _0x3e2fb5 = { ..._0x116d99["requestInit"], ..._0x8a64c };
|
|
634
|
+
_0x3e2fb5[_0x38c9ed(268)] = { ..._0x116d99[_0x38c9ed(280)][_0x6930f9(268)], ..._0x8a64c["headers"] }, _0x42169d["requestInit"] = _0x3e2fb5;
|
|
635
|
+
} else _0x42169d["requestInit"] = _0x116d99[_0x6930f9(280)];
|
|
636
|
+
if (_0x948e9b) {
|
|
637
|
+
const _0x120e99 = { ..._0x116d99[_0x6930f9(270)], ..._0x948e9b };
|
|
638
|
+
_0x42169d["eventSourceInit"] = _0x120e99;
|
|
639
|
+
} else _0x42169d["eventSourceInit"] = _0x116d99[_0x6930f9(270)];
|
|
640
|
+
const _0x181b46 = {};
|
|
641
|
+
_0x181b46[_0x6930f9(254)] = !![];
|
|
642
|
+
const _0x34b990 = {};
|
|
643
|
+
_0x34b990["roots"] = _0x181b46, _0x34b990[_0x6930f9(298)] = {}, _0x34b990[_0x38c9ed(303)] = {};
|
|
644
|
+
const _0xae9fa3 = _0x34b990, _0x596f6c = {};
|
|
645
|
+
_0x596f6c["name"] = _0x1054a4[_0x38c9ed(261)], _0x596f6c[_0x6930f9(288)] = _0x1054a4["mcbiU"];
|
|
646
|
+
const _0x1d069d = {};
|
|
647
|
+
_0x1d069d[_0x6930f9(251)] = _0xae9fa3;
|
|
648
|
+
const _0x535586 = new Client(_0x596f6c, _0x1d069d), _0x22fbe4 = () => new SSEClientTransport(new URL(_0x1eda8b), _0x42169d);
|
|
649
|
+
let _0x218d55 = _0x1054a4[_0x6930f9(282)](_0x22fbe4);
|
|
650
|
+
if (_0xce05bf) {
|
|
651
|
+
const _0x7daa42 = getWaitForOAuthCodeFunction(_0xce05bf, _0x1ba260);
|
|
652
|
+
_0x218d55 = await _0x1054a4[_0x6930f9(263)](attemptConnection, _0x535586, _0x7daa42, _0x22fbe4);
|
|
653
|
+
} else await _0x535586["connect"](_0x218d55);
|
|
654
|
+
initWebClientHandler(_0x535586, _0x433dd1, _0x218d55), _0x218d55["sessionId"] = _0x218d55[_0x38c9ed(274)]["searchParams"][_0x6930f9(297)](_0x1054a4["KkViY"]);
|
|
655
|
+
const _0x1e6e14 = {};
|
|
656
|
+
return _0x1e6e14["transport"] = _0x218d55, _0x1e6e14["sessionId"] = _0x218d55[_0x38c9ed(286)], _0x1e6e14;
|
|
659
657
|
};
|
|
660
|
-
const
|
|
661
|
-
const
|
|
662
|
-
return
|
|
663
|
-
}
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
const
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
658
|
+
const createStreamProxy = async (_0x4f646e) => {
|
|
659
|
+
const _0x5a2739 = _0x165645, _0x5e63dc = _0x403f63, _0xcfe8cd = { "wfHUn": function(_0x2225ad, _0xfa5dfb, _0x55fa5e) {
|
|
660
|
+
return _0x2225ad(_0xfa5dfb, _0x55fa5e);
|
|
661
|
+
}, "tUMle": "mcp-stream-proxy-client", "omKPe": _0x5a2739(248), "rSiEq": function(_0x127846) {
|
|
662
|
+
return _0x127846();
|
|
663
|
+
}, "PdsSn": function(_0x5d2722, _0x3d81e4, _0x3e465a, _0x2565f) {
|
|
664
|
+
return _0x5d2722(_0x3d81e4, _0x3e465a, _0x2565f);
|
|
665
|
+
} }, { client: _0x3e58d0, url: _0x522ec2, token: _0x3f14fe, sessionId: _0x427bff, authProvider: _0x56df02, requestInit: _0x1359a9, reconnectionOptions: _0x18665b, waitForOAuthCode: _0x462857 } = _0x4f646e, _0x348121 = {};
|
|
666
|
+
_0x348121["authProvider"] = _0x56df02, _0x348121["requestInit"] = _0x1359a9, _0x348121["reconnectionOptions"] = _0x18665b;
|
|
667
|
+
const _0x226c6d = _0x348121, _0x11ca16 = _0x427bff || _0x5e2e0a["randomUUID"](), _0x50fe4d = _0xcfe8cd[_0x5e63dc(272)](streamOptions, _0x3f14fe, _0x11ca16);
|
|
668
|
+
if (_0x1359a9) {
|
|
669
|
+
const _0x817452 = { ..._0x50fe4d[_0x5a2739(280)], ..._0x1359a9 };
|
|
670
|
+
_0x817452["headers"] = { ..._0x50fe4d["requestInit"][_0x5a2739(268)], ..._0x1359a9["headers"] }, _0x226c6d["requestInit"] = _0x817452;
|
|
671
|
+
} else _0x226c6d[_0x5e63dc(280)] = _0x50fe4d[_0x5e63dc(280)];
|
|
672
|
+
const _0x2fba8f = {};
|
|
673
|
+
_0x2fba8f[_0x5e63dc(254)] = !![];
|
|
674
|
+
const _0x22ac24 = {};
|
|
675
|
+
_0x22ac24["roots"] = _0x2fba8f, _0x22ac24[_0x5a2739(298)] = {}, _0x22ac24[_0x5a2739(303)] = {};
|
|
676
|
+
const _0x41416e = _0x22ac24, _0x552da2 = {};
|
|
677
|
+
_0x552da2["name"] = _0xcfe8cd[_0x5a2739(262)], _0x552da2["version"] = _0xcfe8cd["omKPe"];
|
|
678
|
+
const _0x227535 = {};
|
|
679
|
+
_0x227535["capabilities"] = _0x41416e;
|
|
680
|
+
const _0x4af9f7 = new Client(_0x552da2, _0x227535), _0x1fd81c = () => new StreamableHTTPClientTransport(new URL(_0x522ec2), _0x226c6d);
|
|
681
|
+
let _0x37668d = _0xcfe8cd["rSiEq"](_0x1fd81c);
|
|
682
|
+
if (_0x56df02) {
|
|
683
|
+
const _0x2124dc = _0xcfe8cd[_0x5a2739(272)](getWaitForOAuthCodeFunction, _0x56df02, _0x462857);
|
|
684
|
+
_0x37668d = await _0xcfe8cd[_0x5a2739(296)](attemptConnection, _0x4af9f7, _0x2124dc, _0x1fd81c);
|
|
685
|
+
} else await _0x4af9f7[_0x5a2739(260)](_0x37668d);
|
|
686
|
+
_0xcfe8cd["PdsSn"](initWebClientHandler, _0x4af9f7, _0x3e58d0, _0x37668d);
|
|
687
|
+
const _0x53d06e = {};
|
|
688
|
+
return _0x53d06e["transport"] = _0x37668d, _0x53d06e[_0x5e63dc(286)] = _0x37668d[_0x5e63dc(286)], _0x53d06e;
|
|
675
689
|
};
|
|
676
|
-
const
|
|
677
|
-
function
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
690
|
+
const createSocketProxy = async (_0x3188e7) => {
|
|
691
|
+
const _0xcba973 = _0x403f63, _0x7cc6b8 = _0x403f63, _0x1794ed = { "eZwNI": function(_0x20c7c1, _0x4ee4c2, _0x30a920, _0x12c640) {
|
|
692
|
+
return _0x20c7c1(_0x4ee4c2, _0x30a920, _0x12c640);
|
|
693
|
+
} }, { client: _0x34311d, url: _0x59bf13, token: _0x50a51e, sessionId: _0x3819a7 } = _0x3188e7, _0x324d20 = {};
|
|
694
|
+
_0x324d20[_0xcba973(254)] = !![];
|
|
695
|
+
const _0x5bab41 = {};
|
|
696
|
+
_0x5bab41[_0x7cc6b8(290)] = _0x324d20, _0x5bab41["sampling"] = {}, _0x5bab41["elicitation"] = {};
|
|
697
|
+
const _0xdea7c0 = _0x5bab41, _0x17beb6 = {};
|
|
698
|
+
_0x17beb6["name"] = "mcp-socket-proxy-client", _0x17beb6["version"] = _0x7cc6b8(248);
|
|
699
|
+
const _0x207436 = {};
|
|
700
|
+
_0x207436[_0x7cc6b8(251)] = _0xdea7c0;
|
|
701
|
+
const _0x3f5681 = new Client(_0x17beb6, _0x207436), _0x1bf37a = _0x3819a7 || _0x5e2e0a[_0x7cc6b8(299)](), _0x42c1f0 = new WebSocketClientTransport(new URL(_0x59bf13 + "?sessionId=" + _0x1bf37a + _0x7cc6b8(265) + _0x50a51e));
|
|
702
|
+
await _0x3f5681["connect"](_0x42c1f0), _0x1794ed[_0xcba973(259)](initWebClientHandler, _0x3f5681, _0x34311d, _0x42c1f0);
|
|
703
|
+
const _0x468f52 = {};
|
|
704
|
+
return _0x468f52["transport"] = _0x42c1f0, _0x468f52[_0x7cc6b8(286)] = _0x1bf37a, _0x468f52;
|
|
705
|
+
};
|
|
706
|
+
const _0x5d6a74 = _0x155f, _0x2395ea = _0x155f;
|
|
707
|
+
(function(_0x3da861, _0x2c4f80) {
|
|
708
|
+
const _0x23b8e2 = _0x155f, _0x15f147 = _0x155f, _0x15c426 = _0x3da861();
|
|
687
709
|
while (!![]) {
|
|
688
710
|
try {
|
|
689
|
-
const
|
|
690
|
-
if (
|
|
691
|
-
else
|
|
692
|
-
} catch (
|
|
693
|
-
|
|
711
|
+
const _0x5d3e1f = parseInt(_0x23b8e2(216)) / (433 * 12 + 1 * -6701 + 2 * 753) + -parseInt(_0x15f147(219)) / (4036 + -3 * 467 + 2633 * -1) + -parseInt(_0x23b8e2(203)) / (-4 * -2157 + -4 * -2357 + -2579 * 7) * (-parseInt(_0x15f147(204)) / (-1 * 1772 + -1797 * -1 + -21)) + -parseInt(_0x15f147(199)) / (-2620 * -1 + -8051 + 5436) * (parseInt(_0x23b8e2(193)) / (4561 + 9591 + 11 * -1286)) + -parseInt(_0x23b8e2(211)) / (-78 * 22 + 4996 + -3273 * 1) * (-parseInt(_0x23b8e2(192)) / (6019 + -4328 + -1683)) + -parseInt(_0x15f147(221)) / (-79 * 107 + 1252 * 1 + 7210) + parseInt(_0x15f147(201)) / (-6495 + 59 * -158 + -323 * -49) * (parseInt(_0x23b8e2(220)) / (14 * 15 + 7748 + -7947));
|
|
712
|
+
if (_0x5d3e1f === _0x2c4f80) break;
|
|
713
|
+
else _0x15c426["push"](_0x15c426["shift"]());
|
|
714
|
+
} catch (_0x2b3f48) {
|
|
715
|
+
_0x15c426["push"](_0x15c426["shift"]());
|
|
694
716
|
}
|
|
695
717
|
}
|
|
696
|
-
})(
|
|
697
|
-
function
|
|
698
|
-
const
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
718
|
+
})(_0x3878, 1297719 + -42747 * -22 + -1289197);
|
|
719
|
+
function _0x155f(_0x3f5eae, _0x28ccfd) {
|
|
720
|
+
const _0x487ed6 = _0x3878();
|
|
721
|
+
return _0x155f = function(_0x51a1e2, _0x500344) {
|
|
722
|
+
_0x51a1e2 = _0x51a1e2 - (-4158 * 1 + -2 * 581 + -1 * -5510);
|
|
723
|
+
let _0x5539be = _0x487ed6[_0x51a1e2];
|
|
724
|
+
return _0x5539be;
|
|
725
|
+
}, _0x155f(_0x3f5eae, _0x28ccfd);
|
|
703
726
|
}
|
|
704
727
|
const generateStateFunction = () => {
|
|
705
|
-
return
|
|
728
|
+
return _0x5e2e0a["randomBytes"](-5442 + 118 * -28 + -382 * -23);
|
|
706
729
|
};
|
|
707
730
|
class AuthClientProvider {
|
|
708
|
-
constructor(
|
|
709
|
-
const
|
|
731
|
+
constructor(_0x7541fa) {
|
|
732
|
+
const _0x3e5455 = _0x155f, _0x411c0f = _0x155f, _0x213ad5 = { "HbwOh": function(_0x3f4e36) {
|
|
733
|
+
return _0x3f4e36();
|
|
734
|
+
} };
|
|
710
735
|
this["_callBackPromise"] = {};
|
|
711
|
-
const { clientMetadata:
|
|
712
|
-
this[
|
|
736
|
+
const { clientMetadata: _0x37e711, state: _0x5e7a53, redirectCallback: _0x581887, getAuthCodeByState: _0x239b36, waitForOAuthCode: _0x16f628 } = _0x7541fa;
|
|
737
|
+
this["_clientMetadata"] = _0x37e711, this[_0x3e5455(206)] = _0x37e711["redirect_uris"][-10 * 629 + 1 * 7646 + -1356], this[_0x411c0f(197)] = _0x5e7a53 || _0x213ad5["HbwOh"](generateStateFunction), this["_redirectCallback"] = _0x581887 || this[_0x411c0f(202)], this[_0x411c0f(195)] = _0x239b36 || this[_0x3e5455(191)], this["waitForOAuthCode"] = _0x16f628 || this["waitForOAuthCodeFunction"]();
|
|
713
738
|
}
|
|
714
|
-
async ["redirectCallbackFunction"](
|
|
739
|
+
async ["redirectCallbackFunction"](_0x111429) {
|
|
715
740
|
var _a, _b, _c, _d, _e, _f;
|
|
716
|
-
const
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
!
|
|
720
|
-
const
|
|
721
|
-
if (!
|
|
722
|
-
(_d = (_c = this[
|
|
741
|
+
const _0xda4917 = _0x155f, _0x299f05 = _0x155f, _0x33c445 = {};
|
|
742
|
+
_0x33c445[_0xda4917(198)] = "GET";
|
|
743
|
+
const _0x21bb65 = await fetch(_0x111429, _0x33c445);
|
|
744
|
+
!_0x21bb65["ok"] && ((_b = (_a = this[_0x299f05(207)])[_0x299f05(196)]) == null ? void 0 : _b.call(_a, _0xda4917(208) + _0x21bb65[_0x299f05(205)]));
|
|
745
|
+
const _0x49289c = await this[_0x299f05(195)](this["_redirectUrl"], this[_0xda4917(197)]);
|
|
746
|
+
if (!_0x49289c["ok"]) {
|
|
747
|
+
(_d = (_c = this[_0xda4917(207)])["reject"]) == null ? void 0 : _d.call(_c, "Failed to fetch auth code: " + _0x49289c[_0x299f05(205)]);
|
|
723
748
|
return;
|
|
724
749
|
}
|
|
725
|
-
const
|
|
726
|
-
(_f = (_e = this[
|
|
750
|
+
const _0x12013d = await _0x49289c["json"]();
|
|
751
|
+
(_f = (_e = this["_callBackPromise"])["resolve"]) == null ? void 0 : _f.call(_e, _0x12013d["code"]);
|
|
727
752
|
}
|
|
728
|
-
async [
|
|
729
|
-
const
|
|
730
|
-
|
|
731
|
-
const
|
|
732
|
-
|
|
733
|
-
const
|
|
734
|
-
return
|
|
753
|
+
async [_0x5d6a74(191)](_0x24164a, _0x2684e7) {
|
|
754
|
+
const _0x2cbcf5 = _0x5d6a74, _0x12b20b = {};
|
|
755
|
+
_0x12b20b["xAOmI"] = "POST";
|
|
756
|
+
const _0x4cc43f = _0x12b20b, _0x3a3763 = {};
|
|
757
|
+
_0x3a3763["Content-Type"] = _0x2cbcf5(217);
|
|
758
|
+
const _0x53a66f = {};
|
|
759
|
+
return _0x53a66f["state"] = _0x2684e7, fetch(_0x24164a, { "method": _0x4cc43f["xAOmI"], "headers": _0x3a3763, "body": new URLSearchParams(_0x53a66f) });
|
|
735
760
|
}
|
|
736
761
|
["waitForOAuthCodeFunction"]() {
|
|
737
|
-
const
|
|
738
|
-
return () => new Promise((
|
|
739
|
-
const
|
|
740
|
-
|
|
762
|
+
const _0x1ca4ed = this["_callBackPromise"];
|
|
763
|
+
return () => new Promise((_0x1030cc, _0x539f31) => {
|
|
764
|
+
const _0x2c12d5 = _0x155f;
|
|
765
|
+
_0x1ca4ed["resolve"] = _0x1030cc, _0x1ca4ed[_0x2c12d5(196)] = _0x539f31;
|
|
741
766
|
});
|
|
742
767
|
}
|
|
743
768
|
get ["redirectUrl"]() {
|
|
744
|
-
const
|
|
745
|
-
return this[
|
|
769
|
+
const _0x31ba8b = _0x5d6a74;
|
|
770
|
+
return this[_0x31ba8b(206)];
|
|
746
771
|
}
|
|
747
|
-
get [
|
|
772
|
+
get [_0x2395ea(190)]() {
|
|
748
773
|
return this["_clientMetadata"];
|
|
749
774
|
}
|
|
750
|
-
[
|
|
751
|
-
|
|
775
|
+
[_0x5d6a74(213)]() {
|
|
776
|
+
const _0x4de20c = _0x5d6a74;
|
|
777
|
+
return this[_0x4de20c(197)];
|
|
752
778
|
}
|
|
753
|
-
[
|
|
754
|
-
const
|
|
755
|
-
return this[
|
|
779
|
+
[_0x2395ea(218)]() {
|
|
780
|
+
const _0x487d24 = _0x2395ea;
|
|
781
|
+
return this[_0x487d24(200)];
|
|
756
782
|
}
|
|
757
|
-
[
|
|
758
|
-
|
|
759
|
-
this[_0x2f8a8e(444)] = _0x48ae19;
|
|
783
|
+
[_0x5d6a74(194)](_0x1ddce1) {
|
|
784
|
+
this["_clientInformation"] = _0x1ddce1;
|
|
760
785
|
}
|
|
761
|
-
[
|
|
762
|
-
const
|
|
763
|
-
return this[
|
|
786
|
+
["tokens"]() {
|
|
787
|
+
const _0x15a6fa = _0x2395ea;
|
|
788
|
+
return this[_0x15a6fa(210)];
|
|
764
789
|
}
|
|
765
|
-
["saveTokens"](
|
|
766
|
-
|
|
790
|
+
["saveTokens"](_0x2abe82) {
|
|
791
|
+
const _0x3a88e4 = _0x2395ea;
|
|
792
|
+
this[_0x3a88e4(210)] = _0x2abe82;
|
|
767
793
|
}
|
|
768
|
-
[
|
|
769
|
-
|
|
770
|
-
this[_0x43d6aa(443)](_0x3b8777);
|
|
794
|
+
["redirectToAuthorization"](_0xa7df50) {
|
|
795
|
+
this["_redirectCallback"](_0xa7df50);
|
|
771
796
|
}
|
|
772
|
-
["saveCodeVerifier"](
|
|
773
|
-
this["_codeVerifier"] =
|
|
797
|
+
["saveCodeVerifier"](_0x2163a6) {
|
|
798
|
+
this["_codeVerifier"] = _0x2163a6;
|
|
774
799
|
}
|
|
775
|
-
[
|
|
776
|
-
const
|
|
777
|
-
|
|
778
|
-
|
|
800
|
+
[_0x5d6a74(212)]() {
|
|
801
|
+
const _0x49e0fc = _0x5d6a74, _0x461a37 = {};
|
|
802
|
+
_0x461a37[_0x49e0fc(215)] = _0x49e0fc(214);
|
|
803
|
+
const _0x200fe3 = _0x461a37;
|
|
804
|
+
if (!this[_0x49e0fc(209)]) throw new Error(_0x200fe3["mMdVl"]);
|
|
805
|
+
return this[_0x49e0fc(209)];
|
|
779
806
|
}
|
|
780
807
|
}
|
|
781
|
-
|
|
782
|
-
|
|
808
|
+
function _0x3878() {
|
|
809
|
+
const _0x43619a = ["370aKMzOb", "redirectCallbackFunction", "6AWGiLu", "697420WEpDtk", "statusText", "_redirectUrl", "_callBackPromise", "Failed to redirect: ", "_codeVerifier", "_tokens", "21ofrYNd", "codeVerifier", "state", "No code verifier saved", "mMdVl", "1546908KURscU", "application/x-www-form-urlencoded", "clientInformation", "2551694UzDoIS", "571637jVsNJQ", "4355271orhxAD", "clientMetadata", "getAuthCodeByStateFunction", "1400360ybYjeP", "30zRTJNb", "saveClientInformation", "_getAuthCodeByState", "reject", "_state", "method", "1634810cQPomO", "_clientInformation"];
|
|
810
|
+
_0x3878 = function() {
|
|
811
|
+
return _0x43619a;
|
|
812
|
+
};
|
|
813
|
+
return _0x3878();
|
|
814
|
+
}
|
|
815
|
+
(function(_0x3939bd, _0x20a19c) {
|
|
816
|
+
var _0x4403de = _0x275e, _0x27ff39 = _0x275e, _0x55a20b = _0x3939bd();
|
|
783
817
|
while (!![]) {
|
|
784
818
|
try {
|
|
785
|
-
var
|
|
786
|
-
if (
|
|
787
|
-
else
|
|
788
|
-
} catch (
|
|
789
|
-
|
|
819
|
+
var _0x6b5cfe = parseInt(_0x4403de(291)) / (2899 + 8885 + 11783 * -1) + -parseInt(_0x4403de(295)) / (9470 + 4321 + 1 * -13789) * (parseInt(_0x4403de(288)) / (7018 + -2 * 207 + -7 * 943)) + parseInt(_0x4403de(290)) / (951 * 7 + 3954 * -2 + 1255 * 1) * (parseInt(_0x4403de(296)) / (7894 + 4576 + -12465)) + -parseInt(_0x27ff39(289)) / (8155 + -2779 + -5370) + parseInt(_0x4403de(293)) / (-2063 * -3 + -495 + -5687) * (-parseInt(_0x27ff39(294)) / (-91 * -11 + 4 * 2180 + -9713)) + parseInt(_0x27ff39(287)) / (-3006 + 3593 * 1 + -578) + parseInt(_0x27ff39(292)) / (-3955 + -6641 + 10606);
|
|
820
|
+
if (_0x6b5cfe === _0x20a19c) break;
|
|
821
|
+
else _0x55a20b["push"](_0x55a20b["shift"]());
|
|
822
|
+
} catch (_0x38beb8) {
|
|
823
|
+
_0x55a20b["push"](_0x55a20b["shift"]());
|
|
790
824
|
}
|
|
791
825
|
}
|
|
792
|
-
})(
|
|
793
|
-
function
|
|
794
|
-
var
|
|
795
|
-
|
|
796
|
-
return
|
|
826
|
+
})(_0x204d, 262 * -2438 + 1346066 * -1 + 2 * 1373311);
|
|
827
|
+
function _0x204d() {
|
|
828
|
+
var _0x54e54d = ["279100FsqxFu", "7326315yxcNFg", "50823VTWXXj", "6441948uoPUwt", "92BSiBRu", "1361711dyawqa", "5202960gnlAWp", "7tNVFlv", "11056792usEcvw", "90CRWXmt"];
|
|
829
|
+
_0x204d = function() {
|
|
830
|
+
return _0x54e54d;
|
|
797
831
|
};
|
|
798
|
-
return
|
|
832
|
+
return _0x204d();
|
|
799
833
|
}
|
|
800
|
-
function
|
|
801
|
-
var
|
|
802
|
-
return
|
|
803
|
-
|
|
804
|
-
var
|
|
805
|
-
return
|
|
806
|
-
},
|
|
834
|
+
function _0x275e(_0x25fced, _0x3ae797) {
|
|
835
|
+
var _0x266459 = _0x204d();
|
|
836
|
+
return _0x275e = function(_0x2ae679, _0x528716) {
|
|
837
|
+
_0x2ae679 = _0x2ae679 - (6359 + 5503 + -11575);
|
|
838
|
+
var _0x462119 = _0x266459[_0x2ae679];
|
|
839
|
+
return _0x462119;
|
|
840
|
+
}, _0x275e(_0x25fced, _0x3ae797);
|
|
807
841
|
}
|
|
808
842
|
class WebMcpServer {
|
|
809
843
|
constructor(serverInfo, options) {
|